diff --git a/sources/net.sf.j2s.core/dist/swingjs/SwingJS-site.zip b/sources/net.sf.j2s.core/dist/swingjs/SwingJS-site.zip index 2429dab8b..52042b8a2 100644 Binary files a/sources/net.sf.j2s.core/dist/swingjs/SwingJS-site.zip and b/sources/net.sf.j2s.core/dist/swingjs/SwingJS-site.zip differ diff --git a/sources/net.sf.j2s.core/dist/swingjs/timestamp b/sources/net.sf.j2s.core/dist/swingjs/timestamp index 853575982..62e636da7 100644 --- a/sources/net.sf.j2s.core/dist/swingjs/timestamp +++ b/sources/net.sf.j2s.core/dist/swingjs/timestamp @@ -1 +1 @@ -20190703091927 +20190724061400 diff --git a/sources/net.sf.j2s.core/dist/swingjs/ver/3.2.4/SwingJS-site.zip b/sources/net.sf.j2s.core/dist/swingjs/ver/3.2.4/SwingJS-site.zip index 2429dab8b..52042b8a2 100644 Binary files a/sources/net.sf.j2s.core/dist/swingjs/ver/3.2.4/SwingJS-site.zip and b/sources/net.sf.j2s.core/dist/swingjs/ver/3.2.4/SwingJS-site.zip differ diff --git a/sources/net.sf.j2s.core/dist/swingjs/ver/3.2.4/timestamp b/sources/net.sf.j2s.core/dist/swingjs/ver/3.2.4/timestamp index 853575982..62e636da7 100644 --- a/sources/net.sf.j2s.core/dist/swingjs/ver/3.2.4/timestamp +++ b/sources/net.sf.j2s.core/dist/swingjs/ver/3.2.4/timestamp @@ -1 +1 @@ -20190703091927 +20190724061400 diff --git a/sources/net.sf.j2s.java.core/TODO.txt b/sources/net.sf.j2s.java.core/TODO.txt index 9bd942d70..c3f6ad55d 100644 --- a/sources/net.sf.j2s.java.core/TODO.txt +++ b/sources/net.sf.j2s.java.core/TODO.txt @@ -1,3 +1,6 @@ +2019.07.07 Why do we have to run rootPane.addNotify after init()? + This is causing two full creations of components. + 2019.07.01 working on JSEditorPaneUI tab business 2019.07.01 AppContext.getApplet(name) initial work 2019.07.01 working on JTable key navigation events diff --git a/sources/net.sf.j2s.java.core/core/coreswingjs.js b/sources/net.sf.j2s.java.core/core/coreswingjs.js new file mode 100644 index 000000000..e82a775dd --- /dev/null +++ b/sources/net.sf.j2s.java.core/core/coreswingjs.js @@ -0,0 +1,79255 @@ +(function(Clazz,Clazz_setTVer,Clazz_array,Clazz_assert,Clazz_clone,Clazz_exceptionOf,Clazz_forName,Clazz_getClass,Clazz_instanceOf,Clazz_load,Clazz_new_,Clazz_newClass,Clazz_newEnumConst,Clazz_newInstance,Clazz_newInterface,Clazz_newMeth,Clazz_newPackage,Clazz_super_){(function(){var P$=Clazz_newPackage("java.applet"),I$=[]; +var C$=Clazz_newClass(P$, "Applet", null, 'swingjs.a2s.Applet'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.superclazz.c$.apply(this, []); +C$.$init$.apply(this); +}, 1); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:11 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.applet"),I$=[]; +var C$=Clazz_newInterface(P$, "AppletContext"); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:11 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.applet"),I$=[]; +var C$=Clazz_newInterface(P$, "AppletStub"); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:11 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.applet"),I$=[[0,'java.net.URL','javax.swing.RepaintManager','sun.applet.AppletAudioClip','java.util.Locale']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "JSApplet", null, 'java.awt.JSPanel'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.temporaryLostComponent=null; +this.stub=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +Clazz_super_(C$, this,1); +}, 1); + +Clazz_newMeth(C$, 'isFocusableWindow$', function () { +return true; +}); + +Clazz_newMeth(C$, 'getModalBlocker$', function () { +return null; +}); + +Clazz_newMeth(C$, 'addWindowListener$java_awt_event_WindowListener', function (w) { +}); + +Clazz_newMeth(C$, 'addOwnedWindow$java_awt_Window', function (w) { +}); + +Clazz_newMeth(C$, 'removeOwnedWindow$java_awt_Window', function (weakWindow) { +}); + +Clazz_newMeth(C$, 'getTemporaryLostComponent$', function () { +return this.temporaryLostComponent; +}); + +Clazz_newMeth(C$, 'setTemporaryLostComponent$java_awt_Component', function (component) { +var previousComp=this.temporaryLostComponent; +if (component == null || component.canBeFocusOwner$() ) { +this.temporaryLostComponent=component; +} else { +this.temporaryLostComponent=null; +}return previousComp; +}); + +Clazz_newMeth(C$, 'setStub$java_applet_AppletStub', function (stub) { +this.stub=stub; +}); + +Clazz_newMeth(C$, 'isActive$', function () { +if (this.stub != null ) { +return this.stub.isActive$(); +} else { +return false; +}}); + +Clazz_newMeth(C$, 'getDocumentBase$', function () { +return this.stub.getDocumentBase$(); +}); + +Clazz_newMeth(C$, 'getCodeBase$', function () { +if (this.stub != null ) return this.stub.getCodeBase$(); +var path=this.getClass$().getName$().replace$CharSequence$CharSequence(".", "/"); +try { +return Clazz_new_($I$(1).c$$S,["http://./" + path.substring$I$I(0, path.lastIndexOf$S("/") + 1)]); +} catch (e) { +if (Clazz_exceptionOf(e,"java.net.MalformedURLException")){ +return null; +} else { +throw e; +} +} +}); + +Clazz_newMeth(C$, 'getParameter$S', function (name) { +return this.stub.getParameter$S(name); +}); + +Clazz_newMeth(C$, 'getAppletContext$', function () { +return this.stub.getAppletContext$(); +}); + +Clazz_newMeth(C$, 'setVisible$Z', function (b) { +C$.superclazz.prototype.setVisible$Z.apply(this, [b]); +if (b) this.秘repaint$(); +}); + +Clazz_newMeth(C$, 'resize$I$I', function (width, height) { +if (this.stub == null ) this.秘resizeOriginal$I$I(width, height); +}); + +Clazz_newMeth(C$, 'resizeHTML$I$I', function (width, height) { +if (this.秘appletViewer != null ) { +this.秘appletViewer.html5Applet._resizeApplet(Clazz_array(Integer.TYPE, -1, [width, height])); +if (this.stub != null ) { +var root=(this).getRootPane$(); +root.invalidate$(); +$I$(2).currentManager$java_awt_Component(this).addInvalidComponent$javax_swing_JComponent(root); +}}}); + +Clazz_newMeth(C$, '秘resizeOriginal$I$I', function (width, height) { +var d=this.size$(); +if ((d.width != width) || (d.height != height) ) { +C$.superclazz.prototype.resize$I$I.apply(this, [width, height]); +if (this.stub != null ) { +this.stub.appletResize$I$I(width, height); +}}}); + +Clazz_newMeth(C$, 'resize$java_awt_Dimension', function (d) { +this.resize$I$I(d.width, d.height); +}); + +Clazz_newMeth(C$, 'showStatus$S', function (msg) { +this.getAppletContext$().showStatus$S(msg); +}); + +Clazz_newMeth(C$, 'getImage$java_net_URL', function (url) { +return this.getAppletContext$().getImage$java_net_URL(url); +}); + +Clazz_newMeth(C$, 'getImage$java_net_URL$S', function (url, name) { +try { +return this.getImage$java_net_URL(Clazz_new_($I$(1).c$$java_net_URL$S,[url, name])); +} catch (e) { +if (Clazz_exceptionOf(e,"java.net.MalformedURLException")){ +return null; +} else { +throw e; +} +} +}); + +Clazz_newMeth(C$, 'newAudioClip$java_net_URL', function (url) { +return Clazz_new_($I$(3).c$$java_net_URL,[url]); +}, 1); + +Clazz_newMeth(C$, 'getAudioClip$java_net_URL', function (url) { +return this.getAppletContext$().getAudioClip$java_net_URL(url); +}); + +Clazz_newMeth(C$, 'getAudioClip$java_net_URL$S', function (url, name) { +try { +return this.getAudioClip$java_net_URL(Clazz_new_($I$(1).c$$java_net_URL$S,[url, name])); +} catch (e) { +if (Clazz_exceptionOf(e,"java.net.MalformedURLException")){ +return null; +} else { +throw e; +} +} +}); + +Clazz_newMeth(C$, 'getAppletInfo$', function () { +return null; +}); + +Clazz_newMeth(C$, 'getLocale$', function () { +var locale=C$.superclazz.prototype.getLocale$.apply(this, []); +if (locale == null ) { +return $I$(4).getDefault$(); +}return locale; +}); + +Clazz_newMeth(C$, 'getParameterInfo$', function () { +return null; +}); + +Clazz_newMeth(C$, 'play$java_net_URL', function (url) { +var clip=this.getAudioClip$java_net_URL(url); +if (clip != null ) { +clip.play$(); +}}); + +Clazz_newMeth(C$, 'play$java_net_URL$S', function (url, name) { +var clip=this.getAudioClip$java_net_URL$S(url, name); +if (clip != null ) { +clip.play$(); +}}); + +Clazz_newMeth(C$, 'init$', function () { +}); + +Clazz_newMeth(C$, 'start$', function () { +}); + +Clazz_newMeth(C$, 'stop$', function () { +}); + +Clazz_newMeth(C$, 'destroy$', function () { +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:11 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt"),I$=[]; +var C$=Clazz_newInterface(P$, "ActiveEvent"); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:11 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt"),I$=[]; +var C$=Clazz_newInterface(P$, "Adjustable"); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:11 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt"),I$=[]; +var C$=Clazz_newClass(P$, "AWTEvent", null, 'java.util.EventObject'); +C$.idnum=0; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.bdata=null; +this.id=0; +this.num=0; +this.consumed=false; +this.focusManagerIsDispatching=false; +this.isPosted=false; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.consumed=false; +this.focusManagerIsDispatching=false; +}, 1); + +Clazz_newMeth(C$, 'setPosted$', function () { +this.isPosted=true; +}); + +Clazz_newMeth(C$, 'getBData$', function () { +return this.bdata; +}); + +Clazz_newMeth(C$, 'setBData$BA', function (bdata) { +this.bdata=bdata; +}); + +Clazz_newMeth(C$, 'c$$java_awt_Event', function (event) { +C$.c$$O$I.apply(this, [event.target, event.id]); +}, 1); + +Clazz_newMeth(C$, 'c$$O$I', function (source, id) { +C$.superclazz.c$$O.apply(this, [source]); +C$.$init$.apply(this); +this.id=id; +this.num=++C$.idnum; +switch (id) { +case 1001: +case 701: +case 601: +case 900: +this.consumed=true; +break; +default: +} +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.superclazz.c$$O.apply(this, [null]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'setSource$O', function (newSource) { +if (this.source === newSource ) { +return; +}var comp=null; +if (Clazz_instanceOf(newSource, "java.awt.Component")) { +comp=newSource; +while (comp != null && comp.peer != null && (Clazz_instanceOf(comp.peer, "java.awt.peer.LightweightPeer")) ){ +comp=comp.parent; +} +}this.source=newSource; +}); + +Clazz_newMeth(C$, 'getID$', function () { +return this.id; +}); + +Clazz_newMeth(C$, 'toString', function () { +var srcName=null; +if (Clazz_instanceOf(this.source, "java.awt.Component")) { +srcName=(this.source).getName$(); +}return this.getClass$().getName$() + "[" + this.paramString$() + "] on " + (srcName != null ? srcName : this.source) ; +}); + +Clazz_newMeth(C$, 'paramString$', function () { +return ""; +}); + +Clazz_newMeth(C$, 'consume$', function () { +switch (this.id) { +case 401: +case 402: +case 501: +case 502: +case 503: +case 506: +case 504: +case 505: +case 507: +case 1100: +case 1101: +this.consumed=true; +break; +default: +} +}); + +Clazz_newMeth(C$, 'isConsumed$', function () { +return this.consumed; +}); + +Clazz_newMeth(C$, 'copyPrivateDataInto$java_awt_AWTEvent', function (that) { +that.bdata=this.bdata; +}); + +Clazz_newMeth(C$, 'dispatched$', function () { +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:11 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt"),I$=[]; +var C$=Clazz_newClass(P$, "AWTEventMulticaster", null, null, ['java.awt.event.ComponentListener', 'java.awt.event.ContainerListener', 'java.awt.event.FocusListener', 'java.awt.event.KeyListener', 'java.awt.event.MouseListener', 'java.awt.event.MouseMotionListener', 'java.awt.event.WindowListener', 'java.awt.event.WindowFocusListener', 'java.awt.event.WindowStateListener', 'java.awt.event.ActionListener', 'java.awt.event.ItemListener', 'java.awt.event.AdjustmentListener', 'java.awt.event.TextListener', 'java.awt.event.InputMethodListener', 'java.awt.event.HierarchyListener', 'java.awt.event.HierarchyBoundsListener', 'java.awt.event.MouseWheelListener']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.a=null; +this.b=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$java_util_EventListener$java_util_EventListener', function (a, b) { +C$.$init$.apply(this); +this.a=a; +this.b=b; +}, 1); + +Clazz_newMeth(C$, 'remove$java_util_EventListener', function (oldl) { +if (oldl === this.a ) return this.b; +if (oldl === this.b ) return this.a; +var a2=C$.removeInternal$java_util_EventListener$java_util_EventListener(this.a, oldl); +var b2=C$.removeInternal$java_util_EventListener$java_util_EventListener(this.b, oldl); +if (a2 === this.a && b2 === this.b ) { +return this; +}return C$.addInternal$java_util_EventListener$java_util_EventListener(a2, b2); +}); + +Clazz_newMeth(C$, 'componentResized$java_awt_event_ComponentEvent', function (e) { +(this.a).componentResized$java_awt_event_ComponentEvent(e); +(this.b).componentResized$java_awt_event_ComponentEvent(e); +}); + +Clazz_newMeth(C$, 'componentMoved$java_awt_event_ComponentEvent', function (e) { +(this.a).componentMoved$java_awt_event_ComponentEvent(e); +(this.b).componentMoved$java_awt_event_ComponentEvent(e); +}); + +Clazz_newMeth(C$, 'componentShown$java_awt_event_ComponentEvent', function (e) { +(this.a).componentShown$java_awt_event_ComponentEvent(e); +(this.b).componentShown$java_awt_event_ComponentEvent(e); +}); + +Clazz_newMeth(C$, 'componentHidden$java_awt_event_ComponentEvent', function (e) { +(this.a).componentHidden$java_awt_event_ComponentEvent(e); +(this.b).componentHidden$java_awt_event_ComponentEvent(e); +}); + +Clazz_newMeth(C$, 'componentAdded$java_awt_event_ContainerEvent', function (e) { +(this.a).componentAdded$java_awt_event_ContainerEvent(e); +(this.b).componentAdded$java_awt_event_ContainerEvent(e); +}); + +Clazz_newMeth(C$, 'componentRemoved$java_awt_event_ContainerEvent', function (e) { +(this.a).componentRemoved$java_awt_event_ContainerEvent(e); +(this.b).componentRemoved$java_awt_event_ContainerEvent(e); +}); + +Clazz_newMeth(C$, 'focusGained$java_awt_event_FocusEvent', function (e) { +(this.a).focusGained$java_awt_event_FocusEvent(e); +(this.b).focusGained$java_awt_event_FocusEvent(e); +}); + +Clazz_newMeth(C$, 'focusLost$java_awt_event_FocusEvent', function (e) { +(this.a).focusLost$java_awt_event_FocusEvent(e); +(this.b).focusLost$java_awt_event_FocusEvent(e); +}); + +Clazz_newMeth(C$, 'keyTyped$java_awt_event_KeyEvent', function (e) { +(this.a).keyTyped$java_awt_event_KeyEvent(e); +(this.b).keyTyped$java_awt_event_KeyEvent(e); +}); + +Clazz_newMeth(C$, 'keyPressed$java_awt_event_KeyEvent', function (e) { +(this.a).keyPressed$java_awt_event_KeyEvent(e); +(this.b).keyPressed$java_awt_event_KeyEvent(e); +}); + +Clazz_newMeth(C$, 'keyReleased$java_awt_event_KeyEvent', function (e) { +(this.a).keyReleased$java_awt_event_KeyEvent(e); +(this.b).keyReleased$java_awt_event_KeyEvent(e); +}); + +Clazz_newMeth(C$, 'mouseClicked$java_awt_event_MouseEvent', function (e) { +(this.a).mouseClicked$java_awt_event_MouseEvent(e); +(this.b).mouseClicked$java_awt_event_MouseEvent(e); +}); + +Clazz_newMeth(C$, 'mousePressed$java_awt_event_MouseEvent', function (e) { +(this.a).mousePressed$java_awt_event_MouseEvent(e); +(this.b).mousePressed$java_awt_event_MouseEvent(e); +}); + +Clazz_newMeth(C$, 'mouseReleased$java_awt_event_MouseEvent', function (e) { +(this.a).mouseReleased$java_awt_event_MouseEvent(e); +(this.b).mouseReleased$java_awt_event_MouseEvent(e); +}); + +Clazz_newMeth(C$, 'mouseEntered$java_awt_event_MouseEvent', function (e) { +(this.a).mouseEntered$java_awt_event_MouseEvent(e); +(this.b).mouseEntered$java_awt_event_MouseEvent(e); +}); + +Clazz_newMeth(C$, 'mouseExited$java_awt_event_MouseEvent', function (e) { +(this.a).mouseExited$java_awt_event_MouseEvent(e); +(this.b).mouseExited$java_awt_event_MouseEvent(e); +}); + +Clazz_newMeth(C$, 'mouseDragged$java_awt_event_MouseEvent', function (e) { +(this.a).mouseDragged$java_awt_event_MouseEvent(e); +(this.b).mouseDragged$java_awt_event_MouseEvent(e); +}); + +Clazz_newMeth(C$, 'mouseMoved$java_awt_event_MouseEvent', function (e) { +(this.a).mouseMoved$java_awt_event_MouseEvent(e); +(this.b).mouseMoved$java_awt_event_MouseEvent(e); +}); + +Clazz_newMeth(C$, 'windowOpened$java_awt_event_WindowEvent', function (e) { +(this.a).windowOpened$java_awt_event_WindowEvent(e); +(this.b).windowOpened$java_awt_event_WindowEvent(e); +}); + +Clazz_newMeth(C$, 'windowClosing$java_awt_event_WindowEvent', function (e) { +(this.a).windowClosing$java_awt_event_WindowEvent(e); +(this.b).windowClosing$java_awt_event_WindowEvent(e); +}); + +Clazz_newMeth(C$, 'windowClosed$java_awt_event_WindowEvent', function (e) { +(this.a).windowClosed$java_awt_event_WindowEvent(e); +(this.b).windowClosed$java_awt_event_WindowEvent(e); +}); + +Clazz_newMeth(C$, 'windowIconified$java_awt_event_WindowEvent', function (e) { +(this.a).windowIconified$java_awt_event_WindowEvent(e); +(this.b).windowIconified$java_awt_event_WindowEvent(e); +}); + +Clazz_newMeth(C$, 'windowDeiconified$java_awt_event_WindowEvent', function (e) { +(this.a).windowDeiconified$java_awt_event_WindowEvent(e); +(this.b).windowDeiconified$java_awt_event_WindowEvent(e); +}); + +Clazz_newMeth(C$, 'windowActivated$java_awt_event_WindowEvent', function (e) { +(this.a).windowActivated$java_awt_event_WindowEvent(e); +(this.b).windowActivated$java_awt_event_WindowEvent(e); +}); + +Clazz_newMeth(C$, 'windowDeactivated$java_awt_event_WindowEvent', function (e) { +(this.a).windowDeactivated$java_awt_event_WindowEvent(e); +(this.b).windowDeactivated$java_awt_event_WindowEvent(e); +}); + +Clazz_newMeth(C$, ['windowStateChanged$java_awt_event_WindowEvent','windowStateChanged$'], function (e) { +(this.a).windowStateChanged$(e); +(this.b).windowStateChanged$(e); +}); + +Clazz_newMeth(C$, 'windowGainedFocus$java_awt_event_WindowEvent', function (e) { +(this.a).windowGainedFocus$java_awt_event_WindowEvent(e); +(this.b).windowGainedFocus$java_awt_event_WindowEvent(e); +}); + +Clazz_newMeth(C$, 'windowLostFocus$java_awt_event_WindowEvent', function (e) { +(this.a).windowLostFocus$java_awt_event_WindowEvent(e); +(this.b).windowLostFocus$java_awt_event_WindowEvent(e); +}); + +Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) { +(this.a).actionPerformed$(e); +(this.b).actionPerformed$(e); +}); + +Clazz_newMeth(C$, ['itemStateChanged$java_awt_event_ItemEvent','itemStateChanged$'], function (e) { +(this.a).itemStateChanged$(e); +(this.b).itemStateChanged$(e); +}); + +Clazz_newMeth(C$, ['adjustmentValueChanged$java_awt_event_AdjustmentEvent','adjustmentValueChanged$'], function (e) { +(this.a).adjustmentValueChanged$(e); +(this.b).adjustmentValueChanged$(e); +}); + +Clazz_newMeth(C$, ['textValueChanged$java_awt_event_TextEvent','textValueChanged$'], function (e) { +(this.a).textValueChanged$(e); +(this.b).textValueChanged$(e); +}); + +Clazz_newMeth(C$, 'inputMethodTextChanged$java_awt_event_InputMethodEvent', function (e) { +(this.a).inputMethodTextChanged$java_awt_event_InputMethodEvent(e); +(this.b).inputMethodTextChanged$java_awt_event_InputMethodEvent(e); +}); + +Clazz_newMeth(C$, 'caretPositionChanged$java_awt_event_InputMethodEvent', function (e) { +(this.a).caretPositionChanged$java_awt_event_InputMethodEvent(e); +(this.b).caretPositionChanged$java_awt_event_InputMethodEvent(e); +}); + +Clazz_newMeth(C$, ['hierarchyChanged$java_awt_event_HierarchyEvent','hierarchyChanged$'], function (e) { +(this.a).hierarchyChanged$(e); +(this.b).hierarchyChanged$(e); +}); + +Clazz_newMeth(C$, 'ancestorMoved$java_awt_event_HierarchyEvent', function (e) { +(this.a).ancestorMoved$java_awt_event_HierarchyEvent(e); +(this.b).ancestorMoved$java_awt_event_HierarchyEvent(e); +}); + +Clazz_newMeth(C$, 'ancestorResized$java_awt_event_HierarchyEvent', function (e) { +(this.a).ancestorResized$java_awt_event_HierarchyEvent(e); +(this.b).ancestorResized$java_awt_event_HierarchyEvent(e); +}); + +Clazz_newMeth(C$, ['mouseWheelMoved$java_awt_event_MouseWheelEvent','mouseWheelMoved$'], function (e) { +(this.a).mouseWheelMoved$(e); +(this.b).mouseWheelMoved$(e); +}); + +Clazz_newMeth(C$, 'add$java_awt_event_ComponentListener$java_awt_event_ComponentListener', function (a, b) { +return C$.addInternal$java_util_EventListener$java_util_EventListener(a, b); +}, 1); + +Clazz_newMeth(C$, 'add$java_awt_event_ContainerListener$java_awt_event_ContainerListener', function (a, b) { +return C$.addInternal$java_util_EventListener$java_util_EventListener(a, b); +}, 1); + +Clazz_newMeth(C$, 'add$java_awt_event_FocusListener$java_awt_event_FocusListener', function (a, b) { +return C$.addInternal$java_util_EventListener$java_util_EventListener(a, b); +}, 1); + +Clazz_newMeth(C$, 'add$java_awt_event_KeyListener$java_awt_event_KeyListener', function (a, b) { +return C$.addInternal$java_util_EventListener$java_util_EventListener(a, b); +}, 1); + +Clazz_newMeth(C$, 'add$java_awt_event_MouseListener$java_awt_event_MouseListener', function (a, b) { +return C$.addInternal$java_util_EventListener$java_util_EventListener(a, b); +}, 1); + +Clazz_newMeth(C$, 'add$java_awt_event_MouseMotionListener$java_awt_event_MouseMotionListener', function (a, b) { +return C$.addInternal$java_util_EventListener$java_util_EventListener(a, b); +}, 1); + +Clazz_newMeth(C$, 'add$java_awt_event_WindowListener$java_awt_event_WindowListener', function (a, b) { +return C$.addInternal$java_util_EventListener$java_util_EventListener(a, b); +}, 1); + +Clazz_newMeth(C$, 'add$java_awt_event_WindowStateListener$java_awt_event_WindowStateListener', function (a, b) { +return C$.addInternal$java_util_EventListener$java_util_EventListener(a, b); +}, 1); + +Clazz_newMeth(C$, 'add$java_awt_event_WindowFocusListener$java_awt_event_WindowFocusListener', function (a, b) { +return C$.addInternal$java_util_EventListener$java_util_EventListener(a, b); +}, 1); + +Clazz_newMeth(C$, 'add$java_awt_event_ActionListener$java_awt_event_ActionListener', function (a, b) { +return C$.addInternal$java_util_EventListener$java_util_EventListener(a, b); +}, 1); + +Clazz_newMeth(C$, 'add$java_awt_event_ItemListener$java_awt_event_ItemListener', function (a, b) { +return C$.addInternal$java_util_EventListener$java_util_EventListener(a, b); +}, 1); + +Clazz_newMeth(C$, 'add$java_awt_event_AdjustmentListener$java_awt_event_AdjustmentListener', function (a, b) { +return C$.addInternal$java_util_EventListener$java_util_EventListener(a, b); +}, 1); + +Clazz_newMeth(C$, 'add$java_awt_event_TextListener$java_awt_event_TextListener', function (a, b) { +return C$.addInternal$java_util_EventListener$java_util_EventListener(a, b); +}, 1); + +Clazz_newMeth(C$, 'add$java_awt_event_InputMethodListener$java_awt_event_InputMethodListener', function (a, b) { +return C$.addInternal$java_util_EventListener$java_util_EventListener(a, b); +}, 1); + +Clazz_newMeth(C$, 'add$java_awt_event_HierarchyListener$java_awt_event_HierarchyListener', function (a, b) { +return C$.addInternal$java_util_EventListener$java_util_EventListener(a, b); +}, 1); + +Clazz_newMeth(C$, 'add$java_awt_event_HierarchyBoundsListener$java_awt_event_HierarchyBoundsListener', function (a, b) { +return C$.addInternal$java_util_EventListener$java_util_EventListener(a, b); +}, 1); + +Clazz_newMeth(C$, 'add$java_awt_event_MouseWheelListener$java_awt_event_MouseWheelListener', function (a, b) { +return C$.addInternal$java_util_EventListener$java_util_EventListener(a, b); +}, 1); + +Clazz_newMeth(C$, 'remove$java_awt_event_ComponentListener$java_awt_event_ComponentListener', function (l, oldl) { +return C$.removeInternal$java_util_EventListener$java_util_EventListener(l, oldl); +}, 1); + +Clazz_newMeth(C$, 'remove$java_awt_event_ContainerListener$java_awt_event_ContainerListener', function (l, oldl) { +return C$.removeInternal$java_util_EventListener$java_util_EventListener(l, oldl); +}, 1); + +Clazz_newMeth(C$, 'remove$java_awt_event_FocusListener$java_awt_event_FocusListener', function (l, oldl) { +return C$.removeInternal$java_util_EventListener$java_util_EventListener(l, oldl); +}, 1); + +Clazz_newMeth(C$, 'remove$java_awt_event_KeyListener$java_awt_event_KeyListener', function (l, oldl) { +return C$.removeInternal$java_util_EventListener$java_util_EventListener(l, oldl); +}, 1); + +Clazz_newMeth(C$, 'remove$java_awt_event_MouseListener$java_awt_event_MouseListener', function (l, oldl) { +return C$.removeInternal$java_util_EventListener$java_util_EventListener(l, oldl); +}, 1); + +Clazz_newMeth(C$, 'remove$java_awt_event_MouseMotionListener$java_awt_event_MouseMotionListener', function (l, oldl) { +return C$.removeInternal$java_util_EventListener$java_util_EventListener(l, oldl); +}, 1); + +Clazz_newMeth(C$, 'remove$java_awt_event_WindowListener$java_awt_event_WindowListener', function (l, oldl) { +return C$.removeInternal$java_util_EventListener$java_util_EventListener(l, oldl); +}, 1); + +Clazz_newMeth(C$, 'remove$java_awt_event_WindowStateListener$java_awt_event_WindowStateListener', function (l, oldl) { +return C$.removeInternal$java_util_EventListener$java_util_EventListener(l, oldl); +}, 1); + +Clazz_newMeth(C$, 'remove$java_awt_event_WindowFocusListener$java_awt_event_WindowFocusListener', function (l, oldl) { +return C$.removeInternal$java_util_EventListener$java_util_EventListener(l, oldl); +}, 1); + +Clazz_newMeth(C$, 'remove$java_awt_event_ActionListener$java_awt_event_ActionListener', function (l, oldl) { +return C$.removeInternal$java_util_EventListener$java_util_EventListener(l, oldl); +}, 1); + +Clazz_newMeth(C$, 'remove$java_awt_event_ItemListener$java_awt_event_ItemListener', function (l, oldl) { +return C$.removeInternal$java_util_EventListener$java_util_EventListener(l, oldl); +}, 1); + +Clazz_newMeth(C$, 'remove$java_awt_event_AdjustmentListener$java_awt_event_AdjustmentListener', function (l, oldl) { +return C$.removeInternal$java_util_EventListener$java_util_EventListener(l, oldl); +}, 1); + +Clazz_newMeth(C$, 'remove$java_awt_event_TextListener$java_awt_event_TextListener', function (l, oldl) { +return C$.removeInternal$java_util_EventListener$java_util_EventListener(l, oldl); +}, 1); + +Clazz_newMeth(C$, 'remove$java_awt_event_InputMethodListener$java_awt_event_InputMethodListener', function (l, oldl) { +return C$.removeInternal$java_util_EventListener$java_util_EventListener(l, oldl); +}, 1); + +Clazz_newMeth(C$, 'remove$java_awt_event_HierarchyListener$java_awt_event_HierarchyListener', function (l, oldl) { +return C$.removeInternal$java_util_EventListener$java_util_EventListener(l, oldl); +}, 1); + +Clazz_newMeth(C$, 'remove$java_awt_event_HierarchyBoundsListener$java_awt_event_HierarchyBoundsListener', function (l, oldl) { +return C$.removeInternal$java_util_EventListener$java_util_EventListener(l, oldl); +}, 1); + +Clazz_newMeth(C$, 'remove$java_awt_event_MouseWheelListener$java_awt_event_MouseWheelListener', function (l, oldl) { +return C$.removeInternal$java_util_EventListener$java_util_EventListener(l, oldl); +}, 1); + +Clazz_newMeth(C$, 'addInternal$java_util_EventListener$java_util_EventListener', function (a, b) { +if (a == null ) return b; +if (b == null ) return a; +return Clazz_new_(C$.c$$java_util_EventListener$java_util_EventListener,[a, b]); +}, 1); + +Clazz_newMeth(C$, 'removeInternal$java_util_EventListener$java_util_EventListener', function (l, oldl) { +if (l === oldl || l == null ) { +return null; +} else if (Clazz_instanceOf(l, "java.awt.AWTEventMulticaster")) { +return (l).remove$java_util_EventListener(oldl); +} else { +return l; +}}, 1); + +Clazz_newMeth(C$, 'getListenerCount$java_util_EventListener$Class', function (l, listenerType) { +if (Clazz_instanceOf(l, "java.awt.AWTEventMulticaster")) { +var mc=l; +return C$.getListenerCount$java_util_EventListener$Class(mc.a, listenerType) + C$.getListenerCount$java_util_EventListener$Class(mc.b, listenerType); +} else { +return listenerType.isInstance$O(l) ? 1 : 0; +}}, 1); + +Clazz_newMeth(C$, 'populateListenerArray$java_util_EventListenerA$java_util_EventListener$I', function (a, l, index) { +if (Clazz_instanceOf(l, "java.awt.AWTEventMulticaster")) { +var mc=l; +var lhs=C$.populateListenerArray$java_util_EventListenerA$java_util_EventListener$I(a, mc.a, index); +return C$.populateListenerArray$java_util_EventListenerA$java_util_EventListener$I(a, mc.b, lhs); +} else if (a.getClass$().getComponentType$().isInstance$O(l)) { +a[index]=l; +return index + 1; +} else { +return index; +}}, 1); + +Clazz_newMeth(C$, 'getListeners$java_util_EventListener$Class', function (l, listenerType) { +if (listenerType == null ) { +throw Clazz_new_(Clazz_load('NullPointerException').c$$S,["Listener type should not be null"]); +}var n=C$.getListenerCount$java_util_EventListener$Class(l, listenerType); +var result=Clazz_array(listenerType, n); +C$.populateListenerArray$java_util_EventListenerA$java_util_EventListener$I(result, l, 0); +return result; +}, 1); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:11 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt"),I$=[[0,'sun.awt.AppContext','java.util.HashMap','java.util.StringTokenizer','java.util.Collections','java.awt.VKCollection','StringBuilder']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "AWTKeyStroke"); +C$.modifierKeywords=null; +C$.vks=null; +C$.APP_CONTEXT_CACHE_KEY=null; +C$.APP_CONTEXT_KEYSTROKE_KEY=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.APP_CONTEXT_CACHE_KEY= Clazz_new_(); +C$.APP_CONTEXT_KEYSTROKE_KEY=Clazz_new_(C$); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.keyChar='\0'; +this.keyCode=0; +this.modifiers=0; +this.onKeyRelease=false; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.keyChar="\uffff"; +this.keyCode=0; +}, 1); + +Clazz_newMeth(C$, 'getAWTKeyStrokeClass$', function () { +var clazz=$I$(1).getAppContext$().get$O(Clazz_getClass(C$)); +if (clazz == null ) { +clazz=Clazz_getClass(C$); +$I$(1).getAppContext$().put$O$O(Clazz_getClass(C$), Clazz_getClass(C$)); +}return clazz; +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'c$$C$I$I$Z', function (keyChar, keyCode, modifiers, onKeyRelease) { +C$.$init$.apply(this); +this.keyChar=keyChar; +this.keyCode=keyCode; +this.modifiers=modifiers; +this.onKeyRelease=onKeyRelease; +}, 1); + +Clazz_newMeth(C$, 'registerSubclass$Class', function (subclass) { +if (subclass == null ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["subclass cannot be null"]); +}{ +var keyStrokeClass=$I$(1).getAppContext$().get$O(Clazz_getClass(C$)); +if (keyStrokeClass != null && keyStrokeClass.equals$O(subclass) ) { +return; +}}if (!Clazz_getClass(C$).isAssignableFrom$Class(subclass)) { +throw Clazz_new_(Clazz_load('ClassCastException').c$$S,["subclass is not derived from AWTKeyStroke"]); +}var ctor=C$.getCtor$Class(subclass); +var couldNotInstantiate="subclass could not be instantiated"; +if (ctor == null ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,[couldNotInstantiate]); +}try { +var stroke=ctor.newInstance$OA(null); +if (stroke == null ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,[couldNotInstantiate]); +}} catch (e$$) { +if (Clazz_exceptionOf(e$$,"NoSuchMethodError")){ +var e = e$$; +{ +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,[couldNotInstantiate]); +} +} else if (Clazz_exceptionOf(e$$,"ExceptionInInitializerError")){ +var e = e$$; +{ +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,[couldNotInstantiate]); +} +} else if (Clazz_exceptionOf(e$$,"InstantiationException")){ +var e = e$$; +{ +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,[couldNotInstantiate]); +} +} else if (Clazz_exceptionOf(e$$,"IllegalAccessException")){ +var e = e$$; +{ +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,[couldNotInstantiate]); +} +} else if (Clazz_exceptionOf(e$$,"java.lang.reflect.InvocationTargetException")){ +var e = e$$; +{ +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,[couldNotInstantiate]); +} +} else { +throw e$$; +} +} +{ +$I$(1).getAppContext$().put$O$O(Clazz_getClass(C$), subclass); +$I$(1).getAppContext$().remove$O(C$.APP_CONTEXT_CACHE_KEY); +$I$(1).getAppContext$().remove$O(C$.APP_CONTEXT_KEYSTROKE_KEY); +}}, 1); + +Clazz_newMeth(C$, 'getCtor$Class', function (clazz) { +try { +return clazz.getDeclaredConstructor$ClassA(null); +} catch (e) { +e.printStackTrace$(); +} +return null; +}, 1); + +Clazz_newMeth(C$, 'getCachedStroke$C$I$I$Z', function (keyChar, keyCode, modifiers, onKeyRelease) { +var cache=$I$(1).getAppContext$().get$O(C$.APP_CONTEXT_CACHE_KEY); +var cacheKey=$I$(1).getAppContext$().get$O(C$.APP_CONTEXT_KEYSTROKE_KEY); +if (cache == null ) { +cache=Clazz_new_($I$(2)); +$I$(1).getAppContext$().put$O$O(C$.APP_CONTEXT_CACHE_KEY, cache); +}if (cacheKey == null ) { +try { +var clazz=C$.getAWTKeyStrokeClass$(); +cacheKey=C$.getCtor$Class(clazz).newInstance$OA(null); +$I$(1).getAppContext$().put$O$O(C$.APP_CONTEXT_KEYSTROKE_KEY, cacheKey); +} catch (e$$) { +if (Clazz_exceptionOf(e$$,"InstantiationException")){ +var e = e$$; +{ +Clazz_assert(C$, this, function(){return (false)}); +} +} else if (Clazz_exceptionOf(e$$,"IllegalAccessException")){ +var e = e$$; +{ +Clazz_assert(C$, this, function(){return (false)}); +} +} else if (Clazz_exceptionOf(e$$,"java.lang.reflect.InvocationTargetException")){ +var e = e$$; +{ +Clazz_assert(C$, this, function(){return (false)}); +} +} else { +throw e$$; +} +} +}cacheKey.keyChar=keyChar; +cacheKey.keyCode=keyCode; +cacheKey.modifiers=C$.mapNewModifiers$I(C$.mapOldModifiers$I(modifiers)); +cacheKey.onKeyRelease=onKeyRelease; +var stroke=cache.get$O(cacheKey); +if (stroke == null ) { +stroke=cacheKey; +cache.put$TK$TV(stroke, stroke); +$I$(1).getAppContext$().remove$O(C$.APP_CONTEXT_KEYSTROKE_KEY); +}return stroke; +}, 1); + +Clazz_newMeth(C$, 'getAWTKeyStroke$C', function (keyChar) { +return C$.getCachedStroke$C$I$I$Z(keyChar, 0, 0, false); +}, 1); + +Clazz_newMeth(C$, 'getAWTKeyStroke$Character$I', function (keyChar, modifiers) { +if (keyChar == null ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["keyChar cannot be null"]); +}return C$.getCachedStroke$C$I$I$Z(keyChar.charValue$(), 0, modifiers, false); +}, 1); + +Clazz_newMeth(C$, 'getAWTKeyStroke$I$I$Z', function (keyCode, modifiers, onKeyRelease) { +return C$.getCachedStroke$C$I$I$Z("\uffff", keyCode, modifiers, onKeyRelease); +}, 1); + +Clazz_newMeth(C$, 'getAWTKeyStroke$I$I', function (keyCode, modifiers) { +return C$.getCachedStroke$C$I$I$Z("\uffff", keyCode, modifiers, false); +}, 1); + +Clazz_newMeth(C$, 'getAWTKeyStrokeForEvent$java_awt_event_KeyEvent', function (anEvent) { +var id=anEvent.getID$(); +switch (id) { +case 401: +case 402: +return C$.getCachedStroke$C$I$I$Z("\uffff", anEvent.getKeyCode$(), anEvent.getModifiers$(), (id == 402)); +case 400: +return C$.getCachedStroke$C$I$I$Z(anEvent.getKeyChar$(), 0, anEvent.getModifiers$(), false); +default: +return null; +} +}, 1); + +Clazz_newMeth(C$, 'getAWTKeyStroke$S', function (s) { +if (s == null ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["String cannot be null"]); +}var errmsg="String formatted incorrectly"; +var st=Clazz_new_($I$(3).c$$S$S,[s, " "]); +var mask=0; +var released=false; +var typed=false; +var pressed=false; +{ +if (C$.modifierKeywords == null ) { +var uninitializedMap=Clazz_new_($I$(2).c$$I$F,[8, 1.0]); +uninitializedMap.put$TK$TV("shift", Integer.valueOf$I(65)); +uninitializedMap.put$TK$TV("control", Integer.valueOf$I(130)); +uninitializedMap.put$TK$TV("ctrl", Integer.valueOf$I(130)); +uninitializedMap.put$TK$TV("meta", Integer.valueOf$I(260)); +uninitializedMap.put$TK$TV("alt", Integer.valueOf$I(520)); +uninitializedMap.put$TK$TV("altGraph", Integer.valueOf$I(8224)); +uninitializedMap.put$TK$TV("button1", Integer.valueOf$I(1024)); +uninitializedMap.put$TK$TV("button2", Integer.valueOf$I(2048)); +uninitializedMap.put$TK$TV("button3", Integer.valueOf$I(4096)); +C$.modifierKeywords=$I$(4).synchronizedMap$java_util_Map(uninitializedMap); +}}var count=st.countTokens$(); +for (var i=1; i <= count; i++) { +var token=st.nextToken$(); +if (typed) { +if (token.length$() != 1 || i != count ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["String formatted incorrectly"]); +}return C$.getCachedStroke$C$I$I$Z(token.charAt$I(0), 0, mask, false); +}if (pressed || released || i == count ) { +if (i != count) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["String formatted incorrectly"]); +}var keyCodeName="VK_" + token; +var keyCode=C$.getVKValue$S(keyCodeName); +return C$.getCachedStroke$C$I$I$Z("\uffff", keyCode, mask, released); +}if (token.equals$O("released")) { +released=true; +continue; +}if (token.equals$O("pressed")) { +pressed=true; +continue; +}if (token.equals$O("typed")) { +typed=true; +continue; +}var tokenMask=C$.modifierKeywords.get$O(token); +if (tokenMask != null ) { +mask|=tokenMask.intValue$(); +} else { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["String formatted incorrectly"]); +}} +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["String formatted incorrectly"]); +}, 1); + +Clazz_newMeth(C$, 'getVKCollection$', function () { +return (C$.vks == null ? (C$.vks=Clazz_new_($I$(5))) : C$.vks); +}, 1); + +Clazz_newMeth(C$, 'addKeyCode$S$I', function (key, keyCode) { +C$.getVKCollection$().put$S$Integer(key, Integer.valueOf$I(keyCode)); +}, 1); + +Clazz_newMeth(C$, 'getVKValue$S', function (key) { +var vkCollect=C$.getVKCollection$(); +var value=vkCollect.findCode$S(key); +if (value == null ) { +vkCollect.put$S$Integer(key, Integer.valueOf$I(-1)); +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["String formatted incorrectly"]); +}return value.intValue$(); +}, 1); + +Clazz_newMeth(C$, 'getKeyChar$', function () { +return this.keyChar; +}); + +Clazz_newMeth(C$, 'getKeyCode$', function () { +return this.keyCode; +}); + +Clazz_newMeth(C$, 'getModifiers$', function () { +return this.modifiers; +}); + +Clazz_newMeth(C$, 'isOnKeyRelease$', function () { +return this.onKeyRelease; +}); + +Clazz_newMeth(C$, 'getKeyEventType$', function () { +if (this.keyCode == 0) { +return 400; +} else { +return (this.onKeyRelease) ? 402 : 401; +}}); + +Clazz_newMeth(C$, 'hashCode$', function () { +return ((this.keyChar.$c()) + 1) * (2 * (this.keyCode + 1)) * (this.modifiers + 1) + (this.onKeyRelease ? 1 : 2); +}); + +Clazz_newMeth(C$, 'equals$O', function (anObject) { +if (Clazz_instanceOf(anObject, "java.awt.AWTKeyStroke")) { +var ks=anObject; +return (ks.keyChar == this.keyChar && ks.keyCode == this.keyCode && ks.onKeyRelease == this.onKeyRelease && ks.modifiers == this.modifiers ); +}return false; +}); + +Clazz_newMeth(C$, 'toString', function () { +if (this.keyCode == 0) { +return C$.getModifiersText$I(this.modifiers) + "typed " + this.keyChar ; +} else { +return C$.getModifiersText$I(this.modifiers) + (this.onKeyRelease ? "released" : "pressed") + " " + C$.getVKText$I(this.keyCode) ; +}}); + +Clazz_newMeth(C$, 'getModifiersText$I', function (modifiers) { +var buf=Clazz_new_($I$(6)); +if ((modifiers & 64) != 0) { +buf.append$S("shift "); +}if ((modifiers & 128) != 0) { +buf.append$S("ctrl "); +}if ((modifiers & 256) != 0) { +buf.append$S("meta "); +}if ((modifiers & 512) != 0) { +buf.append$S("alt "); +}if ((modifiers & 8192) != 0) { +buf.append$S("altGraph "); +}if ((modifiers & 1024) != 0) { +buf.append$S("button1 "); +}if ((modifiers & 2048) != 0) { +buf.append$S("button2 "); +}if ((modifiers & 4096) != 0) { +buf.append$S("button3 "); +}return buf.toString(); +}, 1); + +Clazz_newMeth(C$, 'getVKText$I', function (keyCode) { +var vkCollect=C$.getVKCollection$(); +var key=Integer.valueOf$I(keyCode); +var name=vkCollect.findName$Integer(key); +if (name != null ) { +return name.substring$I(3); +}return "UNKNOWN"; +}, 1); + +Clazz_newMeth(C$, 'readResolve$', function () { +{ +var newClass=this.getClass$(); +var awtKeyStrokeClass=C$.getAWTKeyStrokeClass$(); +if (!newClass.equals$O(awtKeyStrokeClass)) { +C$.registerSubclass$Class(newClass); +}return C$.getCachedStroke$C$I$I$Z(this.keyChar, this.keyCode, this.modifiers, this.onKeyRelease); +}}); + +Clazz_newMeth(C$, 'mapOldModifiers$I', function (modifiers) { +if ((modifiers & 1) != 0) { +modifiers|=64; +}if ((modifiers & 8) != 0) { +modifiers|=512; +}if ((modifiers & 32) != 0) { +modifiers|=8192; +}if ((modifiers & 2) != 0) { +modifiers|=128; +}if ((modifiers & 4) != 0) { +modifiers|=256; +}modifiers&=16320; +return modifiers; +}, 1); + +Clazz_newMeth(C$, 'mapNewModifiers$I', function (modifiers) { +if ((modifiers & 64) != 0) { +modifiers|=1; +}if ((modifiers & 512) != 0) { +modifiers|=8; +}if ((modifiers & 8192) != 0) { +modifiers|=32; +}if ((modifiers & 128) != 0) { +modifiers|=2; +}if ((modifiers & 256) != 0) { +modifiers|=4; +}return modifiers; +}, 1); +C$.$_ASSERT_ENABLED_ = ClassLoader.getClassAssertionStatus$(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:11 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt"),I$=[[0,'java.util.Arrays']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "BasicStroke", null, null, ['java.awt.Stroke', 'Cloneable']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.width=0; +this.join=0; +this.cap=0; +this.miterlimit=0; +this.dash=null; +this.dash_phase=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$F$I$I$F$FA$F', function (width, cap, join, miterlimit, dash, dash_phase) { +C$.$init$.apply(this); +if (width < 0.0 ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["negative width"]); +}if (cap != 0 && cap != 1 && cap != 2 ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["illegal end cap value"]); +}if (join == 0) { +if (miterlimit < 1.0 ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["miter limit < 1"]); +}} else if (join != 1 && join != 2 ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["illegal line join value"]); +}if (dash != null ) { +if (dash_phase < 0.0 ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["negative dash phase"]); +}var allzero=true; +for (var i=0; i < dash.length; i++) { +var d=dash[i]; +if (d > 0.0 ) { +allzero=false; +} else if (d < 0.0 ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["negative dash length"]); +}} +if (allzero) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["dash lengths all zero"]); +}}this.width=width; +this.cap=cap; +this.join=join; +this.miterlimit=miterlimit; +if (dash != null ) { +this.dash=dash.clone$(); +}this.dash_phase=dash_phase; +}, 1); + +Clazz_newMeth(C$, 'c$$F$I$I$F', function (width, cap, join, miterlimit) { +C$.c$$F$I$I$F$FA$F.apply(this, [width, cap, join, miterlimit, null, 0.0]); +}, 1); + +Clazz_newMeth(C$, 'c$$F$I$I', function (width, cap, join) { +C$.c$$F$I$I$F$FA$F.apply(this, [width, cap, join, 10.0, null, 0.0]); +}, 1); + +Clazz_newMeth(C$, 'c$$F', function (width) { +C$.c$$F$I$I$F$FA$F.apply(this, [width, 2, 0, 10.0, null, 0.0]); +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.c$$F$I$I$F$FA$F.apply(this, [1.0, 2, 0, 10.0, null, 0.0]); +}, 1); + +Clazz_newMeth(C$, ['createStrokedShape$java_awt_Shape','createStrokedShape$'], function (s) { +return s; +}); + +Clazz_newMeth(C$, 'getLineWidth$', function () { +return this.width; +}); + +Clazz_newMeth(C$, 'getEndCap$', function () { +return this.cap; +}); + +Clazz_newMeth(C$, 'getLineJoin$', function () { +return this.join; +}); + +Clazz_newMeth(C$, 'getMiterLimit$', function () { +return this.miterlimit; +}); + +Clazz_newMeth(C$, 'getDashArray$', function () { +if (this.dash == null ) { +return null; +}return this.dash.clone$(); +}); + +Clazz_newMeth(C$, 'getDashPhase$', function () { +return this.dash_phase; +}); + +Clazz_newMeth(C$, 'hashCode$', function () { +var hash=Float.floatToIntBits$F(this.width); +hash=hash * 31 + this.join; +hash=hash * 31 + this.cap; +hash=hash * 31 + Float.floatToIntBits$F(this.miterlimit); +if (this.dash != null ) { +hash=hash * 31 + Float.floatToIntBits$F(this.dash_phase); +for (var i=0; i < this.dash.length; i++) { +hash=hash * 31 + Float.floatToIntBits$F(this.dash[i]); +} +}return hash; +}); + +Clazz_newMeth(C$, 'equals$O', function (obj) { +if (!(Clazz_instanceOf(obj, "java.awt.BasicStroke"))) { +return false; +}var bs=obj; +if (this.width != bs.width ) { +return false; +}if (this.join != bs.join) { +return false; +}if (this.cap != bs.cap) { +return false; +}if (this.miterlimit != bs.miterlimit ) { +return false; +}if (this.dash != null ) { +if (this.dash_phase != bs.dash_phase ) { +return false; +}if (!$I$(1).equals$FA$FA(this.dash, bs.dash)) { +return false; +}} else if (bs.dash != null ) { +return false; +}return true; +}); + +Clazz_newMeth(C$, 'clone$', function () { +return Clazz_new_(C$.c$$F$I$I$F$FA$F,[this.width, this.cap, this.join, this.miterlimit, this.dash, this.dash_phase]); +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:12 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt"),p$1={},I$=[[0,'java.awt.Dimension']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "BorderLayout", null, null, ['java.awt.LayoutManager2', 'java.io.Serializable']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.hgap=0; +this.vgap=0; +this.north=null; +this.west=null; +this.east=null; +this.south=null; +this.center=null; +this.firstLine=null; +this.lastLine=null; +this.firstItem=null; +this.lastItem=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.c$$I$I.apply(this, [0, 0]); +}, 1); + +Clazz_newMeth(C$, 'c$$I$I', function (hgap, vgap) { +C$.$init$.apply(this); +this.hgap=hgap; +this.vgap=vgap; +}, 1); + +Clazz_newMeth(C$, 'getHgap$', function () { +return this.hgap; +}); + +Clazz_newMeth(C$, 'setHgap$I', function (hgap) { +this.hgap=hgap; +}); + +Clazz_newMeth(C$, 'getVgap$', function () { +return this.vgap; +}); + +Clazz_newMeth(C$, 'setVgap$I', function (vgap) { +this.vgap=vgap; +}); + +Clazz_newMeth(C$, 'addLayoutComponent$java_awt_Component$O', function (comp, constraints) { +/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(comp.getTreeLock$()); +{ +if ((constraints == null ) || (Clazz_instanceOf(constraints, "java.lang.String")) ) { +this.addLayoutComponent$S$java_awt_Component(constraints, comp); +} else { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["cannot add to layout: constraint must be a string (or null)"]); +}}}); + +Clazz_newMeth(C$, 'addLayoutComponent$S$java_awt_Component', function (name, comp) { +/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(comp.getTreeLock$()); +{ +if (name == null ) { +name="Center"; +}if ("Center".equals$O(name)) { +this.center=comp; +} else if ("North".equals$O(name)) { +this.north=comp; +} else if ("South".equals$O(name)) { +this.south=comp; +} else if ("East".equals$O(name)) { +this.east=comp; +} else if ("West".equals$O(name)) { +this.west=comp; +} else if ("First".equals$O(name)) { +this.firstLine=comp; +} else if ("Last".equals$O(name)) { +this.lastLine=comp; +} else if ("Before".equals$O(name)) { +this.firstItem=comp; +} else if ("After".equals$O(name)) { +this.lastItem=comp; +} else { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["cannot add to layout: unknown constraint: " + name]); +}}}); + +Clazz_newMeth(C$, 'removeLayoutComponent$java_awt_Component', function (comp) { +/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(comp.getTreeLock$()); +{ +if (comp === this.center ) { +this.center=null; +} else if (comp === this.north ) { +this.north=null; +} else if (comp === this.south ) { +this.south=null; +} else if (comp === this.east ) { +this.east=null; +} else if (comp === this.west ) { +this.west=null; +}if (comp === this.firstLine ) { +this.firstLine=null; +} else if (comp === this.lastLine ) { +this.lastLine=null; +} else if (comp === this.firstItem ) { +this.firstItem=null; +} else if (comp === this.lastItem ) { +this.lastItem=null; +}}}); + +Clazz_newMeth(C$, 'getLayoutComponent$O', function (constraints) { +if ("Center".equals$O(constraints)) { +return this.center; +} else if ("North".equals$O(constraints)) { +return this.north; +} else if ("South".equals$O(constraints)) { +return this.south; +} else if ("West".equals$O(constraints)) { +return this.west; +} else if ("East".equals$O(constraints)) { +return this.east; +} else if ("First".equals$O(constraints)) { +return this.firstLine; +} else if ("Last".equals$O(constraints)) { +return this.lastLine; +} else if ("Before".equals$O(constraints)) { +return this.firstItem; +} else if ("After".equals$O(constraints)) { +return this.lastItem; +} else { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["cannot get component: unknown constraint: " + constraints]); +}}); + +Clazz_newMeth(C$, 'getLayoutComponent$java_awt_Container$O', function (target, constraints) { +var ltr=target.getComponentOrientation$().isLeftToRight$(); +var result=null; +if ("North".equals$O(constraints)) { +result=(this.firstLine != null ) ? this.firstLine : this.north; +} else if ("South".equals$O(constraints)) { +result=(this.lastLine != null ) ? this.lastLine : this.south; +} else if ("West".equals$O(constraints)) { +result=ltr ? this.firstItem : this.lastItem; +if (result == null ) { +result=this.west; +}} else if ("East".equals$O(constraints)) { +result=ltr ? this.lastItem : this.firstItem; +if (result == null ) { +result=this.east; +}} else if ("Center".equals$O(constraints)) { +result=this.center; +} else { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["cannot get component: invalid constraint: " + constraints]); +}return result; +}); + +Clazz_newMeth(C$, 'getConstraints$java_awt_Component', function (comp) { +if (comp == null ) { +return null; +}if (comp === this.center ) { +return "Center"; +} else if (comp === this.north ) { +return "North"; +} else if (comp === this.south ) { +return "South"; +} else if (comp === this.west ) { +return "West"; +} else if (comp === this.east ) { +return "East"; +} else if (comp === this.firstLine ) { +return "First"; +} else if (comp === this.lastLine ) { +return "Last"; +} else if (comp === this.firstItem ) { +return "Before"; +} else if (comp === this.lastItem ) { +return "After"; +}return null; +}); + +Clazz_newMeth(C$, 'minimumLayoutSize$java_awt_Container', function (target) { +/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(target.getTreeLock$()); +{ +var dim=Clazz_new_($I$(1).c$$I$I,[0, 0]); +var ltr=target.getComponentOrientation$().isLeftToRight$(); +var c=null; +if ((c=p$1.getChild$S$Z.apply(this, ["East", ltr])) != null ) { +var d=c.getMinimumSize$(); +dim.width+=d.width + this.hgap; +dim.height=Math.max(d.height, dim.height); +}if ((c=p$1.getChild$S$Z.apply(this, ["West", ltr])) != null ) { +var d=c.getMinimumSize$(); +dim.width+=d.width + this.hgap; +dim.height=Math.max(d.height, dim.height); +}if ((c=p$1.getChild$S$Z.apply(this, ["Center", ltr])) != null ) { +var d=c.getMinimumSize$(); +dim.width+=d.width; +dim.height=Math.max(d.height, dim.height); +}if ((c=p$1.getChild$S$Z.apply(this, ["North", ltr])) != null ) { +var d=c.getMinimumSize$(); +dim.width=Math.max(d.width, dim.width); +dim.height+=d.height + this.vgap; +}if ((c=p$1.getChild$S$Z.apply(this, ["South", ltr])) != null ) { +var d=c.getMinimumSize$(); +dim.width=Math.max(d.width, dim.width); +dim.height+=d.height + this.vgap; +}var insets=target.getInsets$(); +dim.width+=insets.left + insets.right; +dim.height+=insets.top + insets.bottom; +return dim; +}}); + +Clazz_newMeth(C$, 'preferredLayoutSize$java_awt_Container', function (target) { +/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(target.getTreeLock$()); +{ +var dim=Clazz_new_($I$(1).c$$I$I,[0, 0]); +var ltr=target.getComponentOrientation$().isLeftToRight$(); +var c=null; +if ((c=p$1.getChild$S$Z.apply(this, ["East", ltr])) != null ) { +var d=c.getPreferredSize$(); +dim.width+=d.width + this.hgap; +dim.height=Math.max(d.height, dim.height); +}if ((c=p$1.getChild$S$Z.apply(this, ["West", ltr])) != null ) { +var d=c.getPreferredSize$(); +dim.width+=d.width + this.hgap; +dim.height=Math.max(d.height, dim.height); +}if ((c=p$1.getChild$S$Z.apply(this, ["Center", ltr])) != null ) { +var d=c.getPreferredSize$(); +dim.width+=d.width; +dim.height=Math.max(d.height, dim.height); +}if ((c=p$1.getChild$S$Z.apply(this, ["North", ltr])) != null ) { +var d=c.getPreferredSize$(); +dim.width=Math.max(d.width, dim.width); +dim.height+=d.height + this.vgap; +}if ((c=p$1.getChild$S$Z.apply(this, ["South", ltr])) != null ) { +var d=c.getPreferredSize$(); +dim.width=Math.max(d.width, dim.width); +dim.height+=d.height + this.vgap; +}var insets=target.getInsets$(); +dim.width+=insets.left + insets.right; +dim.height+=insets.top + insets.bottom; +return dim; +}}); + +Clazz_newMeth(C$, 'maximumLayoutSize$java_awt_Container', function (target) { +return Clazz_new_($I$(1).c$$I$I,[2147483647, 2147483647]); +}); + +Clazz_newMeth(C$, 'getLayoutAlignmentX$java_awt_Container', function (parent) { +return 0.5; +}); + +Clazz_newMeth(C$, 'getLayoutAlignmentY$java_awt_Container', function (parent) { +return 0.5; +}); + +Clazz_newMeth(C$, 'invalidateLayout$java_awt_Container', function (target) { +}); + +Clazz_newMeth(C$, 'layoutContainer$java_awt_Container', function (target) { +/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(target.getTreeLock$()); +{ +var insets=target.getInsets$(); +var top=insets.top; +var bottom=target.height - insets.bottom; +var left=insets.left; +var right=target.width - insets.right; +var ltr=target.getComponentOrientation$().isLeftToRight$(); +var c=null; +if ((c=p$1.getChild$S$Z.apply(this, ["North", ltr])) != null ) { +c.setSize$I$I(right - left, c.height); +var d=c.getPreferredSize$(); +c.setBounds$I$I$I$I(left, top, right - left, d.height); +top+=d.height + this.vgap; +}if ((c=p$1.getChild$S$Z.apply(this, ["South", ltr])) != null ) { +c.setSize$I$I(right - left, c.height); +var d=c.getPreferredSize$(); +c.setBounds$I$I$I$I(left, bottom - d.height, right - left, d.height); +bottom-=d.height + this.vgap; +}if ((c=p$1.getChild$S$Z.apply(this, ["East", ltr])) != null ) { +c.setSize$I$I(c.width, bottom - top); +var d=c.getPreferredSize$(); +c.setBounds$I$I$I$I(right - d.width, top, d.width, bottom - top); +right-=d.width + this.hgap; +}if ((c=p$1.getChild$S$Z.apply(this, ["West", ltr])) != null ) { +c.setSize$I$I(c.width, bottom - top); +var d=c.getPreferredSize$(); +c.setBounds$I$I$I$I(left, top, d.width, bottom - top); +left+=d.width + this.hgap; +}if ((c=p$1.getChild$S$Z.apply(this, ["Center", ltr])) != null ) { +c.setBounds$I$I$I$I(left, top, right - left, bottom - top); +}}}); + +Clazz_newMeth(C$, 'getChild$S$Z', function (key, ltr) { +var result=null; +if (key == "North") { +result=(this.firstLine != null ) ? this.firstLine : this.north; +} else if (key == "South") { +result=(this.lastLine != null ) ? this.lastLine : this.south; +} else if (key == "West") { +result=ltr ? this.firstItem : this.lastItem; +if (result == null ) { +result=this.west; +}} else if (key == "East") { +result=ltr ? this.lastItem : this.firstItem; +if (result == null ) { +result=this.east; +}} else if (key == "Center") { +result=this.center; +}if (result != null && !result.visible ) { +result=null; +}return result; +}, p$1); + +Clazz_newMeth(C$, 'toString', function () { +return this.getClass$().getName$() + "[hgap=" + this.hgap + ",vgap=" + this.vgap + "]" ; +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:12 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt"),I$=[[0,'java.awt.GraphicsEnvironment']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "Button", null, 'swingjs.a2s.Button'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.superclazz.c$.apply(this, []); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'c$$S', function (label) { +Clazz_super_(C$, this,1); +$I$(1).checkHeadless$(); +this.setText$S(label); +}, 1); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:12 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt"),I$=[[0,'java.awt.ColorPaintContext']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "Color", null, null, 'java.awt.Paint'); +C$.white=null; +C$.WHITE=null; +C$.lightGray=null; +C$.LIGHT_GRAY=null; +C$.gray=null; +C$.GRAY=null; +C$.darkGray=null; +C$.DARK_GRAY=null; +C$.black=null; +C$.none=null; +C$.BLACK=null; +C$.red=null; +C$.RED=null; +C$.pink=null; +C$.PINK=null; +C$.orange=null; +C$.ORANGE=null; +C$.yellow=null; +C$.YELLOW=null; +C$.green=null; +C$.GREEN=null; +C$.magenta=null; +C$.MAGENTA=null; +C$.cyan=null; +C$.CYAN=null; +C$.blue=null; +C$.BLUE=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.white=Clazz_new_(C$.c$$I$I$I,[255, 255, 255]); +C$.WHITE=C$.white; +C$.lightGray=Clazz_new_(C$.c$$I$I$I,[192, 192, 192]); +C$.LIGHT_GRAY=C$.lightGray; +C$.gray=Clazz_new_(C$.c$$I$I$I,[128, 128, 128]); +C$.GRAY=C$.gray; +C$.darkGray=Clazz_new_(C$.c$$I$I$I,[64, 64, 64]); +C$.DARK_GRAY=C$.darkGray; +C$.black=Clazz_new_(C$.c$$I$I$I,[0, 0, 0]); +C$.none=Clazz_new_(C$.c$$I$I$I,[0, 0, 1]); +C$.BLACK=C$.black; +C$.red=Clazz_new_(C$.c$$I$I$I,[255, 0, 0]); +C$.RED=C$.red; +C$.pink=Clazz_new_(C$.c$$I$I$I,[255, 175, 175]); +C$.PINK=C$.pink; +C$.orange=Clazz_new_(C$.c$$I$I$I,[255, 200, 0]); +C$.ORANGE=C$.orange; +C$.yellow=Clazz_new_(C$.c$$I$I$I,[255, 255, 0]); +C$.YELLOW=C$.yellow; +C$.green=Clazz_new_(C$.c$$I$I$I,[0, 255, 0]); +C$.GREEN=C$.green; +C$.magenta=Clazz_new_(C$.c$$I$I$I,[255, 0, 255]); +C$.MAGENTA=C$.magenta; +C$.cyan=Clazz_new_(C$.c$$I$I$I,[0, 255, 255]); +C$.CYAN=C$.cyan; +C$.blue=Clazz_new_(C$.c$$I$I$I,[0, 0, 255]); +C$.BLUE=C$.blue; +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.value=0; +this.frgbvalue=null; +this.falpha=0; +this.context=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.frgbvalue=null; +this.falpha=0.0; +}, 1); + +Clazz_newMeth(C$, 'testColorValueRange$I$I$I$I', function (r, g, b, a) { +var rangeError=false; +var badComponentString=""; +if (a < 0 || a > 255 ) { +rangeError=true; +badComponentString=badComponentString + " Alpha"; +}if (r < 0 || r > 255 ) { +rangeError=true; +badComponentString=badComponentString + " Red"; +}if (g < 0 || g > 255 ) { +rangeError=true; +badComponentString=badComponentString + " Green"; +}if (b < 0 || b > 255 ) { +rangeError=true; +badComponentString=badComponentString + " Blue"; +}if (rangeError == true ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["Color parameter outside of expected range:" + badComponentString]); +}}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'c$$I$I$I', function (r, g, b) { +C$.c$$I$I$I$I.apply(this, [r, g, b, 255]); +}, 1); + +Clazz_newMeth(C$, 'c$$I$I$I$I', function (r, g, b, a) { +C$.$init$.apply(this); +this.value=((a & 255) << 24) | ((r & 255) << 16) | ((g & 255) << 8) | ((b & 255) << 0) ; +C$.testColorValueRange$I$I$I$I(r, g, b, a); +}, 1); + +Clazz_newMeth(C$, 'c$$I', function (rgb) { +C$.$init$.apply(this); +this.value=-16777216 | rgb; +}, 1); + +Clazz_newMeth(C$, 'c$$I$Z', function (rgba, hasalpha) { +C$.$init$.apply(this); +if (hasalpha) { +this.value=rgba; +} else { +this.value=-16777216 | rgba; +}}, 1); + +Clazz_newMeth(C$, 'c$$F$F$F', function (r, g, b) { +C$.c$$F$F$F$F.apply(this, [r, g, b, 1.0]); +}, 1); + +Clazz_newMeth(C$, 'c$$F$F$F$F', function (r, g, b, a) { +C$.c$$I$I$I$I.apply(this, [((r * 255 + 0.5)|0), ((g * 255 + 0.5)|0), ((b * 255 + 0.5)|0), ((a * 255 + 0.5)|0)]); +this.frgbvalue=Clazz_array(Float.TYPE, [3]); +this.frgbvalue[0]=r; +this.frgbvalue[1]=g; +this.frgbvalue[2]=b; +this.falpha=a; +}, 1); + +Clazz_newMeth(C$, 'getRed$', function () { +return (this.getRGB$() >> 16) & 255; +}); + +Clazz_newMeth(C$, 'getGreen$', function () { +return (this.getRGB$() >> 8) & 255; +}); + +Clazz_newMeth(C$, 'getBlue$', function () { +return (this.getRGB$() >> 0) & 255; +}); + +Clazz_newMeth(C$, 'getAlpha$', function () { +return (this.getRGB$() >> 24) & 255; +}); + +Clazz_newMeth(C$, 'getRGB$', function () { +return this.value; +}); + +Clazz_newMeth(C$, 'brighter$', function () { +var r=this.getRed$(); +var g=this.getGreen$(); +var b=this.getBlue$(); +var i=3; +if (r == 0 && g == 0 && b == 0 ) { +return Clazz_new_(C$.c$$I$I$I,[i, i, i]); +}if (r > 0 && r < i ) r=i; +if (g > 0 && g < i ) g=i; +if (b > 0 && b < i ) b=i; +return Clazz_new_(C$.c$$I$I$I,[Math.min(((r / 0.7)|0), 255), Math.min(((g / 0.7)|0), 255), Math.min(((b / 0.7)|0), 255)]); +}); + +Clazz_newMeth(C$, 'darker$', function () { +return Clazz_new_(C$.c$$I$I$I,[Math.max(((this.getRed$() * 0.7)|0), 0), Math.max(((this.getGreen$() * 0.7)|0), 0), Math.max(((this.getBlue$() * 0.7)|0), 0)]); +}); + +Clazz_newMeth(C$, 'hashCode$', function () { +return this.value; +}); + +Clazz_newMeth(C$, 'equals$O', function (obj) { +return Clazz_instanceOf(obj, "java.awt.Color") && (obj).getRGB$() == this.getRGB$() ; +}); + +Clazz_newMeth(C$, 'toString', function () { +return this.getClass$().getName$() + "[r=" + this.getRed$() + ",g=" + this.getGreen$() + ",b=" + this.getBlue$() + "]" ; +}); + +Clazz_newMeth(C$, 'decode$S', function (nm) { +var intval=Integer.decode$S(nm); +var i=intval.intValue$(); +return Clazz_new_(C$.c$$I$I$I,[(i >> 16) & 255, (i >> 8) & 255, i & 255]); +}, 1); + +Clazz_newMeth(C$, 'getColor$S', function (nm) { +return C$.getColor$S$java_awt_Color(nm, null); +}, 1); + +Clazz_newMeth(C$, 'getColor$S$java_awt_Color', function (nm, v) { +try { +var i=(Integer.decode$S(nm)).intValue$(); +return Clazz_new_(C$.c$$I$I$I,[(i >> 16) & 255, (i >> 8) & 255, i & 255]); +} catch (e) { +if (Clazz_exceptionOf(e,"NumberFormatException")){ +return v; +} else { +throw e; +} +} +}, 1); + +Clazz_newMeth(C$, 'getColor$S$I', function (nm, v) { +var intval=Integer.getInteger$S(nm); +var i=(intval != null ) ? intval.intValue$() : v; +return Clazz_new_(C$.c$$I$I$I,[(i >> 16) & 255, (i >> 8) & 255, (i >> 0) & 255]); +}, 1); + +Clazz_newMeth(C$, 'HSBtoRGB$F$F$F', function (hue, saturation, brightness) { +var r=0; +var g=0; +var b=0; +if (saturation == 0 ) { +r=g=b=((brightness * 255.0 + 0.5)|0); +} else { +var h=(hue - Math.floor(hue)) * 6.0; +var f=h - Math.floor(h); +var p=brightness * (1.0 - saturation); +var q=brightness * (1.0 - saturation * f); +var t=brightness * (1.0 - (saturation * (1.0 - f))); +switch ((h|0)) { +case 0: +r=((brightness * 255.0 + 0.5)|0); +g=((t * 255.0 + 0.5)|0); +b=((p * 255.0 + 0.5)|0); +break; +case 1: +r=((q * 255.0 + 0.5)|0); +g=((brightness * 255.0 + 0.5)|0); +b=((p * 255.0 + 0.5)|0); +break; +case 2: +r=((p * 255.0 + 0.5)|0); +g=((brightness * 255.0 + 0.5)|0); +b=((t * 255.0 + 0.5)|0); +break; +case 3: +r=((p * 255.0 + 0.5)|0); +g=((q * 255.0 + 0.5)|0); +b=((brightness * 255.0 + 0.5)|0); +break; +case 4: +r=((t * 255.0 + 0.5)|0); +g=((p * 255.0 + 0.5)|0); +b=((brightness * 255.0 + 0.5)|0); +break; +case 5: +r=((brightness * 255.0 + 0.5)|0); +g=((p * 255.0 + 0.5)|0); +b=((q * 255.0 + 0.5)|0); +break; +} +}return -16777216 | (r << 16) | (g << 8) | (b << 0) ; +}, 1); + +Clazz_newMeth(C$, 'RGBtoHSB$I$I$I$FA', function (r, g, b, hsbvals) { +var hue; +var saturation; +var brightness; +if (hsbvals == null ) { +hsbvals=Clazz_array(Float.TYPE, [3]); +}var cmax=(r > g) ? r : g; +if (b > cmax) cmax=b; +var cmin=(r < g) ? r : g; +if (b < cmin) cmin=b; +brightness=(cmax) / 255.0; +if (cmax != 0) saturation=((cmax - cmin)) / (cmax); + else saturation=0; +if (saturation == 0 ) hue=0; + else { +var redc=((cmax - r)) / ((cmax - cmin)); +var greenc=((cmax - g)) / ((cmax - cmin)); +var bluec=((cmax - b)) / ((cmax - cmin)); +if (r == cmax) hue=bluec - greenc; + else if (g == cmax) hue=2.0 + redc - bluec; + else hue=4.0 + greenc - redc; +hue=hue / 6.0; +if (hue < 0 ) hue=hue + 1.0; +}hsbvals[0]=hue; +hsbvals[1]=saturation; +hsbvals[2]=brightness; +return hsbvals; +}, 1); + +Clazz_newMeth(C$, 'getHSBColor$F$F$F', function (h, s, b) { +return Clazz_new_(C$.c$$I,[C$.HSBtoRGB$F$F$F(h, s, b)]); +}, 1); + +Clazz_newMeth(C$, 'getRGBComponents$FA', function (compArray) { +var f; +if (compArray == null ) { +f=Clazz_array(Float.TYPE, [4]); +} else { +f=compArray; +}if (this.frgbvalue == null ) { +f[0]=(this.getRed$()) / 255.0; +f[1]=(this.getGreen$()) / 255.0; +f[2]=(this.getBlue$()) / 255.0; +f[3]=(this.getAlpha$()) / 255.0; +} else { +f[0]=this.frgbvalue[0]; +f[1]=this.frgbvalue[1]; +f[2]=this.frgbvalue[2]; +f[3]=this.falpha; +}return f; +}); + +Clazz_newMeth(C$, 'getRGBColorComponents$FA', function (compArray) { +var f; +if (compArray == null ) { +f=Clazz_array(Float.TYPE, [3]); +} else { +f=compArray; +}if (this.frgbvalue == null ) { +f[0]=(this.getRed$()) / 255.0; +f[1]=(this.getGreen$()) / 255.0; +f[2]=(this.getBlue$()) / 255.0; +} else { +f[0]=this.frgbvalue[0]; +f[1]=this.frgbvalue[1]; +f[2]=this.frgbvalue[2]; +}return f; +}); + +Clazz_newMeth(C$, 'getComponents$FA', function (compArray) { +if (this.frgbvalue == null ) return this.getRGBComponents$FA(compArray); +var f; +var n=this.frgbvalue.length; +if (compArray == null ) { +f=Clazz_array(Float.TYPE, [n + 1]); +} else { +f=compArray; +}for (var i=0; i < n; i++) { +f[i]=this.frgbvalue[i]; +} +f[n]=this.falpha; +return f; +}); + +Clazz_newMeth(C$, 'createContext$java_awt_image_ColorModel$java_awt_Rectangle$java_awt_geom_Rectangle2D$java_awt_geom_AffineTransform$java_awt_RenderingHints', function (cm, r, r2d, xform, hints) { +if (this.context == null || this.context.getRGB$() != this.getRGB$() ) { +this.context=Clazz_new_($I$(1).c$$I$java_awt_image_ColorModel,[this.getRGB$(), cm]); +}return this.context; +}); + +Clazz_newMeth(C$, 'getTransparency$', function () { +var alpha=this.getAlpha$(); +if (alpha == 255) { +return 1; +} else if (alpha == 0) { +return 2; +} else { +return 3; +}}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:12 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt.color"),I$=[]; +var C$=Clazz_newClass(P$, "ColorSpace"); +C$.sRGBspace=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.type=0; +this.numComponents=0; +this.compName=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.compName=null; +}, 1); + +Clazz_newMeth(C$, 'c$$I$I', function (type, numcomponents) { +C$.$init$.apply(this); +this.type=type; +this.numComponents=numcomponents; +}, 1); + +Clazz_newMeth(C$, 'getInstance$I', function (colorspace) { +var theColorSpace; +switch (colorspace) { +default: +case 1000: +if (C$.sRGBspace == null ) { +C$.sRGBspace=Clazz_new_(C$.c$$I$I,[5, 3]); +}theColorSpace=C$.sRGBspace; +break; +} +return theColorSpace; +}, 1); + +Clazz_newMeth(C$, 'isCS_sRGB$', function () { +return (this === C$.sRGBspace ); +}); + +Clazz_newMeth(C$, 'toRGB$FA', function (colorvalue) { +return colorvalue; +}); + +Clazz_newMeth(C$, 'fromRGB$FA', function (rgbvalue) { +return rgbvalue; +}); + +Clazz_newMeth(C$, 'getType$', function () { +return this.type; +}); + +Clazz_newMeth(C$, 'getNumComponents$', function () { +return this.numComponents; +}); + +Clazz_newMeth(C$, 'getName$I', function (idx) { +if ((idx < 0) || (idx > this.numComponents - 1) ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["Component index out of range: " + idx]); +}if (this.compName == null ) { +switch (this.type) { +case 0: +this.compName=Clazz_array(String, -1, ["X", "Y", "Z"]); +break; +case 1: +this.compName=Clazz_array(String, -1, ["L", "a", "b"]); +break; +case 2: +this.compName=Clazz_array(String, -1, ["L", "u", "v"]); +break; +case 3: +this.compName=Clazz_array(String, -1, ["Y", "Cb", "Cr"]); +break; +case 4: +this.compName=Clazz_array(String, -1, ["Y", "x", "y"]); +break; +case 5: +this.compName=Clazz_array(String, -1, ["Red", "Green", "Blue"]); +break; +case 6: +this.compName=Clazz_array(String, -1, ["Gray"]); +break; +case 7: +this.compName=Clazz_array(String, -1, ["Hue", "Saturation", "Value"]); +break; +case 8: +this.compName=Clazz_array(String, -1, ["Hue", "Lightness", "Saturation"]); +break; +case 9: +this.compName=Clazz_array(String, -1, ["Cyan", "Magenta", "Yellow", "Black"]); +break; +case 11: +this.compName=Clazz_array(String, -1, ["Cyan", "Magenta", "Yellow"]); +break; +default: +var tmp=Clazz_array(String, [this.numComponents]); +for (var i=0; i < tmp.length; i++) { +tmp[i]="Unnamed color component(" + i + ")" ; +} +this.compName=tmp; +} +}return this.compName[idx]; +}); + +Clazz_newMeth(C$, 'getMinValue$I', function (component) { +if ((component < 0) || (component > this.numComponents - 1) ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["Component index out of range: " + component]); +}return 0.0; +}); + +Clazz_newMeth(C$, 'getMaxValue$I', function (component) { +if ((component < 0) || (component > this.numComponents - 1) ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["Component index out of range: " + component]); +}return 1.0; +}); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:18 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt"),p$1={},I$=[[0,'java.util.HashMap','java.awt.ComponentOrientation','java.util.Set','sun.awt.AppContext','swingjs.JSToolkit','java.awt.Toolkit','java.awt.Point','java.awt.KeyboardFocusManager','java.awt.event.ComponentEvent','java.util.Locale','java.awt.Dimension','java.awt.Rectangle',['java.awt.Component','.BaselineResizeBehavior'],'java.awt.Cursor','java.awt.event.PaintEvent','java.awt.EventQueue','java.awt.event.MouseWheelEvent','java.awt.AWTEventMulticaster','java.awt.event.ComponentListener','java.awt.event.FocusListener','java.awt.event.HierarchyListener','java.awt.event.HierarchyEvent','java.awt.event.HierarchyBoundsListener','java.awt.event.KeyListener','java.awt.event.MouseListener','java.awt.event.MouseMotionListener','java.awt.event.MouseWheelListener','java.awt.event.InputMethodListener','java.beans.PropertyChangeListener','Boolean','java.util.Collections','java.util.HashSet',['sun.awt.CausedFocusEvent','.Cause'],'javax.swing.JComponent',['java.awt.Component','.DummyRequestFocusController'],'java.beans.PropertyChangeSupport','sun.awt.SunToolkit']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "Component", function(){ +Clazz_newInstance(this, arguments,0,C$); +}, null, 'java.awt.image.ImageObserver'); +C$.focusTraversalKeyPropertyNames=null; +C$.isInc=false; +C$.incRate=0; +C$.coalesceMap=null; +C$.requestFocusController=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.focusTraversalKeyPropertyNames=Clazz_array(String, -1, ["forwardFocusTraversalKeys", "backwardFocusTraversalKeys", "upCycleFocusTraversalKeys", "downCycleFocusTraversalKeys"]); +C$.coalesceMap=Clazz_new_($I$(1)); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.peer=null; +this.parent=null; +this.appContext=null; +this.x=0; +this.y=0; +this.width=0; +this.height=0; +this.foreground=null; +this.background=null; +this.font=null; +this.peerFont=null; +this.cursor=null; +this.locale=null; +this.visible=false; +this.enabled=false; +this.valid=false; +this.popups=null; +this.name=null; +this.nameExplicitlySet=false; +this.focusable=false; +this.isFocusTraversableOverridden=0; +this.秘isFocusableSet=false; +this.focusTraversalKeys=null; +this.focusTraversalKeysEnabled=false; +this.minSize=null; +this.minSizeSet=false; +this.prefSize=null; +this.prefSizeSet=false; +this.maxSize=null; +this.maxSizeSet=false; +this.componentOrientation=null; +this.newEventsOnly=false; +this.componentListener=null; +this.focusListener=null; +this.hierarchyListener=null; +this.hierarchyBoundsListener=null; +this.keyListener=null; +this.mouseListener=null; +this.mouseMotionListener=null; +this.mouseWheelListener=null; +this.inputMethodListener=null; +this.windowClosingException=null; +this.eventMask=0; +this.changeSupport=null; +this.changeSupportLock=null; +this.isPacked=false; +this.boundsOp=0; +this.isAddNotifyComplete=false; +this.backgroundEraseDisabled=false; +this.dropTarget=null; +this.graphicsConfig=null; +this.isWindow=false; +this.eventCache=null; +this.coalescingEnabled=false; +this.秘j2sInvalidateOnAdd=false; +this.autoFocusTransferOnDisposal=false; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.visible=true; +this.enabled=true; +this.valid=false; +this.nameExplicitlySet=false; +this.focusable=true; +this.isFocusTraversableOverridden=0; +this.focusTraversalKeysEnabled=true; +this.componentOrientation=$I$(2).UNKNOWN; +this.newEventsOnly=false; +this.windowClosingException=null; +this.eventMask=4096; +this.changeSupportLock= Clazz_new_(); +this.isPacked=false; +this.boundsOp=3; +this.isAddNotifyComplete=false; +this.coalescingEnabled=p$1.checkCoalescing.apply(this, []); +this.秘j2sInvalidateOnAdd=true; +this.autoFocusTransferOnDisposal=true; +}, 1); + +Clazz_newMeth(C$, 'getAppContext$', function () { +return this.appContext; +}); + +Clazz_newMeth(C$, 'getChangeSupportLock', function () { +return this.changeSupportLock; +}, p$1); + +Clazz_newMeth(C$, 'getBoundsOp$', function () { +return this.boundsOp; +}); + +Clazz_newMeth(C$, 'setBoundsOp$I', function (op) { +if (op == 5) { +this.boundsOp=3; +} else if (this.boundsOp == 3) { +this.boundsOp=op; +}}); + +Clazz_newMeth(C$, 'setBackgroundEraseDisabled$Z', function (disabled) { +this.backgroundEraseDisabled=disabled; +}); + +Clazz_newMeth(C$, 'getBackgroundEraseDisabled$', function () { +return this.backgroundEraseDisabled; +}); + +Clazz_newMeth(C$, 'requestFocusInWindow$java_awt_Component$sun_awt_CausedFocusEvent_Cause', function (comp, cause) { +return comp.requestFocusInWindow$sun_awt_CausedFocusEvent_Cause(cause); +}); + +Clazz_newMeth(C$, 'requestFocus$java_awt_Component$sun_awt_CausedFocusEvent_Cause', function (comp, cause) { +comp.requestFocus$sun_awt_CausedFocusEvent_Cause(cause); +}); + +Clazz_newMeth(C$, 'c$', function () { +C$.$init$.apply(this); +this.setAppContext$(); +}, 1); + +Clazz_newMeth(C$, 'initializeFocusTraversalKeys$', function () { +this.focusTraversalKeys=Clazz_array($I$(3), [3]); +}); + +Clazz_newMeth(C$, 'setAppContext$', function () { +this.appContext=$I$(4).getAppContext$(); +}); + +Clazz_newMeth(C$, 'constructComponentName$', function () { +return null; +}); + +Clazz_newMeth(C$, 'getName$', function () { +if (this.name == null && !this.nameExplicitlySet ) { +{ +if (this.name == null && !this.nameExplicitlySet ) this.name=this.constructComponentName$(); +}}return this.name; +}); + +Clazz_newMeth(C$, 'setName$S', function (name) { +var oldName; +{ +oldName=this.name; +this.name=name; +this.nameExplicitlySet=true; +}this.firePropertyChange$S$O$O("name", oldName, name); +}); + +Clazz_newMeth(C$, 'getParent$', function () { +return this.getParent_NoClientCode$(); +}); + +Clazz_newMeth(C$, 'getParent_NoClientCode$', function () { +return this.parent; +}); + +Clazz_newMeth(C$, 'getContainer$', function () { +return this.getParent$(); +}); + +Clazz_newMeth(C$, 'getPeer$', function () { +return (this.isDisplayable$() ? this.peer : null); +}); + +Clazz_newMeth(C$, 'setDropTarget$java_awt_dnd_DropTarget', function (dt) { +if (dt === this.dropTarget || (this.dropTarget != null && this.dropTarget.equals$O(dt) ) ) return; +var old; +if ((old=this.dropTarget) != null ) { +if (this.peer != null ) this.dropTarget.removeNotify$java_awt_peer_ComponentPeer(this.peer); +var t=this.dropTarget; +this.dropTarget=null; +try { +t.setComponent$java_awt_Component(null); +} catch (iae) { +if (Clazz_exceptionOf(iae,"IllegalArgumentException")){ +} else { +throw iae; +} +} +}if ((this.dropTarget=dt) != null ) { +try { +this.dropTarget.setComponent$java_awt_Component(this); +if (this.peer != null ) this.dropTarget.addNotify$java_awt_peer_ComponentPeer(this.peer); +} catch (iae) { +if (Clazz_exceptionOf(iae,"IllegalArgumentException")){ +if (old != null ) { +try { +old.setComponent$java_awt_Component(this); +if (this.peer != null ) this.dropTarget.addNotify$java_awt_peer_ComponentPeer(this.peer); +} catch (iae1) { +if (Clazz_exceptionOf(iae1,"IllegalArgumentException")){ +} else { +throw iae1; +} +} +}} else { +throw iae; +} +} +}}); + +Clazz_newMeth(C$, 'getDropTarget$', function () { +return this.dropTarget; +}); + +Clazz_newMeth(C$, 'getGraphicsConfiguration$', function () { +return $I$(5).getGraphicsConfiguration$(); +}); + +Clazz_newMeth(C$, 'resetGC$', function () { +}); + +Clazz_newMeth(C$, 'getToolkit$', function () { +return $I$(6).getDefaultToolkit$(); +}); + +Clazz_newMeth(C$, 'isValid$', function () { +return this.valid; +}); + +Clazz_newMeth(C$, 'isDisplayable$', function () { +return true; +}); + +Clazz_newMeth(C$, 'isVisible$', function () { +return this.isVisible_NoClientCode$(); +}); + +Clazz_newMeth(C$, 'isVisible_NoClientCode$', function () { +return this.visible; +}); + +Clazz_newMeth(C$, 'isRecursivelyVisible$', function () { +return this.visible && (this.parent == null || this.parent.isRecursivelyVisible$() ) ; +}); + +Clazz_newMeth(C$, 'pointRelativeToComponent$java_awt_Point', function (absolute) { +var compCoords=this.getLocationOnScreen$(); +return Clazz_new_($I$(7).c$$I$I,[absolute.x - compCoords.x, absolute.y - compCoords.y]); +}); + +Clazz_newMeth(C$, 'getMousePosition$', function () { +return null; +}); + +Clazz_newMeth(C$, 'isSameOrAncestorOf$java_awt_Component$Z', function (comp, allowChildren) { +return comp === this ; +}); + +Clazz_newMeth(C$, 'isShowing$', function () { +if (this.visible) { +var parent=this.parent; +return (parent == null ) || parent.isShowing$() ; +}return false; +}); + +Clazz_newMeth(C$, 'isEnabled$', function () { +return this.isEnabledImpl$(); +}); + +Clazz_newMeth(C$, 'isEnabledImpl$', function () { +return this.enabled; +}); + +Clazz_newMeth(C$, 'setEnabled$Z', function (b) { +this.enable$Z(b); +}); + +Clazz_newMeth(C$, 'enable$', function () { +if (!this.enabled) { +this.enabled=true; +if (this.peer != null ) { +this.peer.setEnabled$Z(true); +if (this.visible) { +this.updateCursorImmediately$(); +}}}}); + +Clazz_newMeth(C$, 'enable$Z', function (b) { +if (b) { +this.enable$(); +} else { +this.disable$(); +}}); + +Clazz_newMeth(C$, 'disable$', function () { +if (this.enabled) { +$I$(8).clearMostRecentFocusOwner$java_awt_Component(this); +this.enabled=false; +if (this.peer != null ) { +this.peer.setEnabled$Z(false); +if (this.visible) { +this.updateCursorImmediately$(); +}}}}); + +Clazz_newMeth(C$, 'isDoubleBuffered$', function () { +return false; +}); + +Clazz_newMeth(C$, 'enableInputMethods$Z', function (enable) { +if (enable) { +if ((this.eventMask & 4096) != 0) return; +if (this.isFocusOwner$()) { +}this.eventMask|=4096; +} else { +if ((this.eventMask & 4096) != 0) { +}this.eventMask&=~4096; +}}); + +Clazz_newMeth(C$, 'setVisible$Z', function (b) { +if (b) { +this.show$(); +} else { +this.hide$(); +}}); + +Clazz_newMeth(C$, 'show$Z', function (b) { +this.setVisible$Z(b); +}); + +Clazz_newMeth(C$, 'show$', function () { +if (!this.visible) { +this.visible=true; +this.updatePeerVisibility$Z(true); +if (this.componentListener != null || (this.eventMask & 1) != 0 || $I$(6).enabledOnToolkit$J(1) ) { +var e=Clazz_new_($I$(9).c$$java_awt_Component$I,[this, 102]); +$I$(6).getEventQueue$().postEvent$java_awt_AWTEvent(e); +}}var parent=this.parent; +if (parent != null ) { +parent.invalidate$(); +}}); + +Clazz_newMeth(C$, 'updatePeerVisibility$Z', function (isVisible) { +this.updatePeerVisibilityOrig$Z(isVisible); +}); + +Clazz_newMeth(C$, 'updatePeerVisibilityOrig$Z', function (isVisible) { +this.peer.setVisible$Z(isVisible); +this.createHierarchyEvents$I$java_awt_Component$java_awt_Container$J$Z(1400, this, this.parent, 4, $I$(6).enabledOnToolkit$J(32768)); +if (Clazz_instanceOf(this.peer, "java.awt.peer.LightweightPeer")) { +(this).秘repaint$(); +}this.updateCursorImmediately$(); +}); + +Clazz_newMeth(C$, 'getOrCreatePeer$', function () { +return this.peer; +}); + +Clazz_newMeth(C$, 'containsFocus$', function () { +return this.isFocusOwner$(); +}); + +Clazz_newMeth(C$, 'clearMostRecentFocusOwnerOnHide$', function () { +$I$(8).clearMostRecentFocusOwner$java_awt_Component(this); +}); + +Clazz_newMeth(C$, 'clearCurrentFocusCycleRootOnHide$', function () { +}); + +Clazz_newMeth(C$, 'hide$', function () { +this.isPacked=false; +if (this.visible) { +this.clearCurrentFocusCycleRootOnHide$(); +this.clearMostRecentFocusOwnerOnHide$(); +this.visible=false; +this.mixOnHiding$Z(this.isLightweight$()); +if (this.containsFocus$() && $I$(8).isAutoFocusTransferEnabled$() ) { +this.transferFocus$Z(true); +}this.updatePeerVisibility$Z(false); +if (this.componentListener != null || (this.eventMask & 1) != 0 || $I$(6).enabledOnToolkit$J(1) ) { +var e=Clazz_new_($I$(9).c$$java_awt_Component$I,[this, 103]); +$I$(6).getEventQueue$().postEvent$java_awt_AWTEvent(e); +}}var parent=this.parent; +if (!this.isWindow && parent != null ) { +parent.invalidate$(); +}}); + +Clazz_newMeth(C$, 'getForeground$', function () { +return this.getForeground_NoClient$(); +}); + +Clazz_newMeth(C$, 'getForeground_NoClient$', function () { +var foreground=this.foreground; +if (foreground != null ) { +return foreground; +}var parent=this.parent; +return (parent != null ) ? parent.getForeground$() : null; +}); + +Clazz_newMeth(C$, 'setForeground$java_awt_Color', function (c) { +var oldColor=this.foreground; +this.foreground=c; +if (this.peer != null ) { +c=this.getForeground$(); +if (c != null ) { +this.peer.setForeground$java_awt_Color(c); +}}this.firePropertyChange$S$O$O("foreground", oldColor, c); +}); + +Clazz_newMeth(C$, 'isForegroundSet$', function () { +return (this.foreground != null ); +}); + +Clazz_newMeth(C$, 'getBackground$', function () { +return this.getBackground_NoClient$(); +}); + +Clazz_newMeth(C$, 'getBackground_NoClient$', function () { +var background=this.background; +if (background != null ) { +return background; +}var parent=this.parent; +return (parent != null ) ? parent.getBackground$() : null; +}); + +Clazz_newMeth(C$, 'setBackground$java_awt_Color', function (c) { +var oldColor=this.background; +this.background=c; +if (this.peer != null ) { +c=this.getBackground$(); +if (c != null ) { +this.peer.setBackground$java_awt_Color(c); +}}this.firePropertyChange$S$O$O("background", oldColor, c); +}); + +Clazz_newMeth(C$, 'isBackgroundSet$', function () { +return (this.background != null ); +}); + +Clazz_newMeth(C$, 'getFont$', function () { +return this.getFont_NoClientCode$(); +}); + +Clazz_newMeth(C$, 'getFont_NoClientCode$', function () { +var font=this.font; +if (font != null ) { +return font; +}var parent=this.parent; +if (parent != null ) return parent.getFont_NoClientCode$(); +return null; +}); + +Clazz_newMeth(C$, 'setFont$java_awt_Font', function (f) { +var oldFont; +var newFont; +oldFont=this.font; +newFont=this.font=f; +if (this.peer != null ) { +f=this.getFont$(); +if (f != null ) { +this.peer.setFont$java_awt_Font(f); +this.peerFont=f; +}}this.firePropertyChange$S$O$O("font", oldFont, newFont); +if (f !== oldFont && (oldFont == null || !oldFont.equals$O(f) ) ) { +this.invalidateIfValid$(); +}}); + +Clazz_newMeth(C$, 'isFontSet$', function () { +return this.font != null ; +}); + +Clazz_newMeth(C$, 'getLocale$', function () { +var locale=this.locale; +if (locale != null ) { +return locale; +}return $I$(10).ENGLISH; +}); + +Clazz_newMeth(C$, 'setLocale$java_util_Locale', function (l) { +var oldValue=this.locale; +this.locale=l; +this.firePropertyChange$S$O$O("locale", oldValue, l); +this.invalidateIfValid$(); +}); + +Clazz_newMeth(C$, 'getLocation$', function () { +return this.location$(); +}); + +Clazz_newMeth(C$, 'getLocationOnScreen$', function () { +return this.getLocationOnScreen_NoTreeLock$(); +}); + +Clazz_newMeth(C$, 'getLocationOnScreen_NoTreeLock$', function () { +if (this.isShowing$()) { +if (this.isLightweight$()) { +var host=this.getNativeContainer$(); +var pt=host.peer.getLocationOnScreen$(); +for (var c=this; c !== host ; c=c.getParent$()) { +pt.x+=c.x; +pt.y+=c.y; +} +return pt; +} else { +var pt=this.peer.getLocationOnScreen$(); +return pt; +}} else { +throw Clazz_new_(Clazz_load('java.awt.IllegalComponentStateException').c$$S,["component must be showing on the screen to determine its location"]); +}}); + +Clazz_newMeth(C$, 'location$', function () { +return p$1.location_NoClientCode.apply(this, []); +}); + +Clazz_newMeth(C$, 'location_NoClientCode', function () { +return Clazz_new_($I$(7).c$$I$I,[this.x, this.y]); +}, p$1); + +Clazz_newMeth(C$, 'setLocation$I$I', function (x, y) { +this.setBoundsOp$I(1); +this.setBounds$I$I$I$I(x, y, this.width, this.height); +}); + +Clazz_newMeth(C$, 'move$I$I', function (x, y) { +this.setLocation$I$I(x, y); +}); + +Clazz_newMeth(C$, 'setLocation$java_awt_Point', function (p) { +this.setLocation$I$I(p.x, p.y); +}); + +Clazz_newMeth(C$, 'getSize$', function () { +return this.size$(); +}); + +Clazz_newMeth(C$, 'size$', function () { +return Clazz_new_($I$(11).c$$I$I,[this.width, this.height]); +}); + +Clazz_newMeth(C$, 'setSize$I$I', function (width, height) { +this.resize$I$I(width, height); +}); + +Clazz_newMeth(C$, 'resize$I$I', function (width, height) { +this.setBoundsOp$I(2); +this.setBounds$I$I$I$I(this.x, this.y, width, height); +}); + +Clazz_newMeth(C$, 'setSize$java_awt_Dimension', function (d) { +this.setSize$I$I(d.width, d.height); +}); + +Clazz_newMeth(C$, 'setBounds$I$I$I$I', function (x, y, width, height) { +this.reshape$I$I$I$I(x, y, width, height); +}); + +Clazz_newMeth(C$, 'setBounds$java_awt_Rectangle', function (r) { +this.setBounds$I$I$I$I(r.x, r.y, r.width, r.height); +}); + +Clazz_newMeth(C$, 'reshape$I$I$I$I', function (x, y, width, height) { +try { +this.setBoundsOp$I(3); +width=Math.max(0, width); +height=Math.max(0, height); +var resized=(this.width != width) || (this.height != height) ; +var moved=(this.x != x) || (this.y != y) ; +if (!resized && !moved ) { +return; +}var oldX=this.x; +var oldY=this.y; +var oldWidth=this.width; +var oldHeight=this.height; +this.x=x; +this.y=y; +this.width=width; +this.height=height; +if (resized) { +this.isPacked=false; +}var needNotify=true; +this.mixOnReshaping$(); +if (this.getOrCreatePeer$() != null ) { +p$1.reshapeNativePeer$I$I$I$I$I.apply(this, [x, y, width, height, this.getBoundsOp$()]); +resized=(oldWidth != this.width) || (oldHeight != this.height) ; +moved=(oldX != this.x) || (oldY != this.y) ; +if (this.isJ2SWindowButNotJInternalFrame$()) { +needNotify=false; +}if (resized) { +this.invalidate$(); +}if (this.parent != null ) { +this.parent.invalidateIfValid$(); +}}if (needNotify) { +p$1.notifyNewBounds$Z$Z.apply(this, [resized, moved]); +}if (resized) p$1.repaintParentIfNeeded$I$I$I$I.apply(this, [oldX, oldY, oldWidth, oldHeight]); +} finally { +this.setBoundsOp$I(5); +} +}); + +Clazz_newMeth(C$, 'repaintParentIfNeeded$I$I$I$I', function (oldX, oldY, oldWidth, oldHeight) { +if (this.parent != null && Clazz_instanceOf(this.peer, "java.awt.peer.LightweightPeer") && this.isShowing$() ) { +this.parent.repaint$I$I$I$I(oldX, oldY, oldWidth, oldHeight); +(this).秘repaint$(); +}}, p$1); + +Clazz_newMeth(C$, 'reshapeNativePeer$I$I$I$I$I', function (x, y, width, height, op) { +var nativeX=x; +var nativeY=y; +for (var c=this.parent; (c != null ) && (Clazz_instanceOf(c.peer, "java.awt.peer.LightweightPeer")) ; c=c.parent) { +nativeX+=c.x; +nativeY+=c.y; +} +this.peer.setBounds$I$I$I$I$I(nativeX, nativeY, width, height, op); +}, p$1); + +Clazz_newMeth(C$, 'notifyNewBounds$Z$Z', function (resized, moved) { +if (this.componentListener != null || (this.eventMask & 1) != 0 || $I$(6).enabledOnToolkit$J(1) ) { +if (resized) { +var e=Clazz_new_($I$(9).c$$java_awt_Component$I,[this, 101]); +$I$(6).getEventQueue$().postEvent$java_awt_AWTEvent(e); +}if (moved) { +var e=Clazz_new_($I$(9).c$$java_awt_Component$I,[this, 100]); +$I$(6).getEventQueue$().postEvent$java_awt_AWTEvent(e); +}} else { +if (Clazz_instanceOf(this, "java.awt.Container") && (this).countComponents$() > 0 ) { +var enabledOnToolkit=$I$(6).enabledOnToolkit$J(65536); +if (resized) { +(this).createChildHierarchyEvents$I$J$Z(1402, 0, enabledOnToolkit); +}if (moved) { +(this).createChildHierarchyEvents$I$J$Z(1401, 0, enabledOnToolkit); +}}}}, p$1); + +Clazz_newMeth(C$, 'getX$', function () { +return this.x; +}); + +Clazz_newMeth(C$, 'getY$', function () { +return this.y; +}); + +Clazz_newMeth(C$, 'getWidth$', function () { +return this.width; +}); + +Clazz_newMeth(C$, 'getHeight$', function () { +return this.height; +}); + +Clazz_newMeth(C$, 'getBounds$', function () { +return Clazz_new_($I$(12).c$$I$I$I$I,[this.x, this.y, this.width, this.height]); +}); + +Clazz_newMeth(C$, 'getBounds$java_awt_Rectangle', function (rv) { +if (rv == null ) return Clazz_new_($I$(12).c$$I$I$I$I,[this.getX$(), this.getY$(), this.getWidth$(), this.getHeight$()]); +rv.setBounds$I$I$I$I(this.getX$(), this.getY$(), this.getWidth$(), this.getHeight$()); +return rv; +}); + +Clazz_newMeth(C$, 'getSize$java_awt_Dimension', function (rv) { +if (rv == null ) { +return Clazz_new_($I$(11).c$$I$I,[this.getWidth$(), this.getHeight$()]); +} else { +rv.setSize$I$I(this.getWidth$(), this.getHeight$()); +return rv; +}}); + +Clazz_newMeth(C$, 'getLocation$java_awt_Point', function (rv) { +if (rv == null ) { +return Clazz_new_($I$(7).c$$I$I,[this.getX$(), this.getY$()]); +} else { +rv.setLocation$I$I(this.getX$(), this.getY$()); +return rv; +}}); + +Clazz_newMeth(C$, 'isOpaque$', function () { +return true; +}); + +Clazz_newMeth(C$, 'isLightweight$', function () { +return false; +}); + +Clazz_newMeth(C$, 'setPreferredSize$java_awt_Dimension', function (preferredSize) { +this.setPrefSizeComp$java_awt_Dimension(preferredSize); +}); + +Clazz_newMeth(C$, 'setPrefSizeComp$java_awt_Dimension', function (preferredSize) { +var old=(this.prefSizeSet ? this.prefSize : null); +this.prefSize=preferredSize; +this.prefSizeSet=(preferredSize != null ); +this.firePropertyChange$S$O$O("preferredSize", old, preferredSize); +}); + +Clazz_newMeth(C$, 'isPreferredSizeSet$', function () { +return this.prefSizeSet; +}); + +Clazz_newMeth(C$, 'getPreferredSize$', function () { +return this.preferredSize$(); +}); + +Clazz_newMeth(C$, 'preferredSize$', function () { +return this.prefSizeComp$(); +}); + +Clazz_newMeth(C$, 'prefSizeComp$', function () { +var dim=this.prefSize; +if (dim == null || !(this.isPreferredSizeSet$() || this.isValid$() ) ) { +dim=(this.width != 0 || this.height != 0 ? null : this.isDisplayable$() ? this.peer.getPreferredSize$() : this.getMinimumSize$()); +this.prefSize=dim; +}return (dim == null ? Clazz_new_($I$(11).c$$I$I,[this.width, this.height]) : Clazz_new_($I$(11).c$$java_awt_Dimension,[dim])); +}); + +Clazz_newMeth(C$, 'setMinimumSize$java_awt_Dimension', function (minimumSize) { +var old; +if (this.minSizeSet) { +old=this.minSize; +} else { +old=null; +}this.minSize=minimumSize; +this.minSizeSet=(minimumSize != null ); +this.firePropertyChange$S$O$O("minimumSize", old, minimumSize); +}); + +Clazz_newMeth(C$, 'isMinimumSizeSet$', function () { +return this.minSizeSet; +}); + +Clazz_newMeth(C$, 'getMinimumSize$', function () { +return this.minimumSize$(); +}); + +Clazz_newMeth(C$, 'minimumSize$', function () { +var dim=this.minSize; +if (dim == null || !(this.isMinimumSizeSet$() || this.isValid$() ) ) { +this.minSize=this.size$(); +dim=this.minSize; +}return Clazz_new_($I$(11).c$$java_awt_Dimension,[dim]); +}); + +Clazz_newMeth(C$, 'setMaximumSize$java_awt_Dimension', function (maximumSize) { +var old; +if (this.maxSizeSet) { +old=this.maxSize; +} else { +old=null; +}this.maxSize=maximumSize; +this.maxSizeSet=(maximumSize != null ); +this.firePropertyChange$S$O$O("maximumSize", old, maximumSize); +}); + +Clazz_newMeth(C$, 'isMaximumSizeSet$', function () { +return this.maxSizeSet; +}); + +Clazz_newMeth(C$, 'getMaximumSize$', function () { +return this.getMaxSizeComp$(); +}); + +Clazz_newMeth(C$, 'getMaxSizeComp$', function () { +if (this.isMaximumSizeSet$()) { +return Clazz_new_($I$(11).c$$java_awt_Dimension,[this.maxSize]); +}return Clazz_new_($I$(11).c$$I$I,[32767, 32767]); +}); + +Clazz_newMeth(C$, 'getAlignmentX$', function () { +return this.getAlignmentXComp$(); +}); + +Clazz_newMeth(C$, 'getAlignmentXComp$', function () { +return 0.5; +}); + +Clazz_newMeth(C$, 'getAlignmentY$', function () { +return this.getAlignmentYComp$(); +}); + +Clazz_newMeth(C$, 'getAlignmentYComp$', function () { +return 0.5; +}); + +Clazz_newMeth(C$, 'getBaseline$I$I', function (width, height) { +if (width < 0 || height < 0 ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["Width and height must be >= 0"]); +}return -1; +}); + +Clazz_newMeth(C$, 'getBaselineResizeBehavior$', function () { +return $I$(13).OTHER; +}); + +Clazz_newMeth(C$, 'doLayout$', function () { +this.layout$(); +}); + +Clazz_newMeth(C$, 'layout$', function () { +}); + +Clazz_newMeth(C$, 'validate$', function () { +/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$()); +{ +var peer=this.peer; +var wasValid=this.isValid$(); +if (!wasValid && peer != null ) { +var newfont=this.getFont$(); +var oldfont=this.peerFont; +if (newfont !== oldfont && (oldfont == null || !oldfont.equals$O(newfont) ) ) { +peer.setFont$java_awt_Font(newfont); +this.peerFont=newfont; +}peer.layout$(); +}this.valid=true; +if (!wasValid) { +this.mixOnValidating$(); +}}}); + +Clazz_newMeth(C$, 'invalidate$', function () { +this.invalidateComp$(); +}); + +Clazz_newMeth(C$, 'invalidateComp$', function () { +this.valid=false; +if (!this.isPreferredSizeSet$()) { +this.prefSize=null; +}if (!this.isMinimumSizeSet$()) { +this.minSize=null; +}if (!this.isMaximumSizeSet$()) { +this.maxSize=null; +}if (this.parent != null && this.秘j2sInvalidateOnAdd ) { +this.parent.invalidateIfValid$(); +}}); + +Clazz_newMeth(C$, 'invalidateIfValid$', function () { +if (this.isValid$()) { +this.invalidate$(); +}}); + +Clazz_newMeth(C$, 'getGraphics$', function () { +var g; +if ((g=(this.parent == null ? null : this.parent.getGraphics$())) != null ) g.setFont$java_awt_Font(this.getFont$()); +return g; +}); + +Clazz_newMeth(C$, 'getTreeLock$', function () { +return this; +}); + +Clazz_newMeth(C$, 'getFontMetrics$java_awt_Font', function (font) { +return font.getFontMetrics$(); +}); + +Clazz_newMeth(C$, 'setCursor$java_awt_Cursor', function (cursor) { +this.cursor=cursor; +this.updateCursorImmediately$(); +}); + +Clazz_newMeth(C$, 'updateCursorImmediately$', function () { +if (this.peer != null ) this.peer.updateCursorImmediately$(); +}); + +Clazz_newMeth(C$, 'getCursor$', function () { +return this.getCursor_NoClientCode$(); +}); + +Clazz_newMeth(C$, 'getCursor_NoClientCode$', function () { +var cursor=this.cursor; +if (cursor != null ) { +return cursor; +}var parent=this.parent; +if (parent != null ) { +return parent.getCursor_NoClientCode$(); +} else { +return $I$(14).getPredefinedCursor$I(0); +}}); + +Clazz_newMeth(C$, 'isCursorSet$', function () { +return (this.cursor != null ); +}); + +Clazz_newMeth(C$, 'paint$java_awt_Graphics', function (g) { +}); + +Clazz_newMeth(C$, 'update$java_awt_Graphics', function (g) { +this.paint$java_awt_Graphics(g); +}); + +Clazz_newMeth(C$, 'paintAll$java_awt_Graphics', function (g) { +}); + +Clazz_newMeth(C$, 'lightweightPaint$java_awt_Graphics', function (g) { +this.lwPaintComp$java_awt_Graphics(g); +}); + +Clazz_newMeth(C$, 'lwPaintComp$java_awt_Graphics', function (g) { +this.paint$java_awt_Graphics(g); +}); + +Clazz_newMeth(C$, 'paintHeavyweightComponents$java_awt_Graphics', function (g) { +}); + +Clazz_newMeth(C$, 'repaint$', function () { +this.repaint$J$I$I$I$I(0, 0, 0, this.width, this.height); +}); + +Clazz_newMeth(C$, 'repaint$J', function (tm) { +this.repaint$J$I$I$I$I(tm, 0, 0, this.width, this.height); +}); + +Clazz_newMeth(C$, 'repaint$I$I$I$I', function (x, y, width, height) { +this.repaint$J$I$I$I$I(0, x, y, width, height); +}); + +Clazz_newMeth(C$, 'repaint$J$I$I$I$I', function (tm, x, y, width, height) { +this.秘repaintCmp$J$I$I$I$I(tm, x, y, width, height); +}); + +Clazz_newMeth(C$, '秘repaintCmp$J$I$I$I$I', function (tm, x, y, width, height) { +if (this.canPaint$()) { +if (this.peer != null ) { +if (this.isVisible$() && width > 0 && height > 0 ) { +var e=Clazz_new_($I$(15).c$$java_awt_Component$I$java_awt_Rectangle,[this, 801, Clazz_new_($I$(12).c$$I$I$I$I,[x, y, width, height])]); +$I$(6).getEventQueue$().postEvent$java_awt_AWTEvent(e); +} else { +this.peer.setVisible$Z(false); +}}} else if (this.parent != null ) { +var px=this.x + ((x < 0) ? 0 : x); +var py=this.y + ((y < 0) ? 0 : y); +var pwidth=(width > this.width) ? this.width : width; +var pheight=(height > this.height) ? this.height : height; +this.parent.repaint$J$I$I$I$I(tm, px, py, pwidth, pheight); +}}); + +Clazz_newMeth(C$, 'canPaint$', function () { +return !(Clazz_instanceOf(this.peer, "java.awt.peer.LightweightPeer")); +}); + +Clazz_newMeth(C$, 'print$java_awt_Graphics', function (g) { +this.paint$java_awt_Graphics(g); +}); + +Clazz_newMeth(C$, 'printAll$java_awt_Graphics', function (g) { +}); + +Clazz_newMeth(C$, 'printHeavyweightComponents$java_awt_Graphics', function (g) { +}); + +Clazz_newMeth(C$, ['imageUpdate$java_awt_Image$I$I$I$I$I','imageUpdate$'], function (img, infoflags, x, y, w, h) { +return false; +}); + +Clazz_newMeth(C$, 'createImage$java_awt_image_ImageProducer', function (producer) { +return (this.isDisplayable$() ? (this.getToolkit$()).createImage$java_awt_Component$java_awt_image_ImageProducer(this, producer) : null); +}); + +Clazz_newMeth(C$, 'createImage$I$I', function (width, height) { +return (this.isDisplayable$() ? (this.getToolkit$()).createImage$java_awt_Component$I$I(this, width, height) : null); +}); + +Clazz_newMeth(C$, 'createVolatileImage$I$I', function (width, height) { +return null; +}); + +Clazz_newMeth(C$, 'createVolatileImage$I$I$java_awt_ImageCapabilities', function (width, height, caps) { +return this.createVolatileImage$I$I(width, height); +}); + +Clazz_newMeth(C$, 'prepareImage$java_awt_Image$java_awt_image_ImageObserver', function (image, observer) { +return this.prepareImage$java_awt_Image$I$I$java_awt_image_ImageObserver(image, -1, -1, observer); +}); + +Clazz_newMeth(C$, 'prepareImage$java_awt_Image$I$I$java_awt_image_ImageObserver', function (image, width, height, observer) { +return false; +}); + +Clazz_newMeth(C$, 'checkImage$java_awt_Image$java_awt_image_ImageObserver', function (image, observer) { +return this.checkImage$java_awt_Image$I$I$java_awt_image_ImageObserver(image, -1, -1, observer); +}); + +Clazz_newMeth(C$, 'checkImage$java_awt_Image$I$I$java_awt_image_ImageObserver', function (image, width, height, observer) { +return 35; +}); + +Clazz_newMeth(C$, 'setIgnoreRepaint$Z', function (ignoreRepaint) { +}); + +Clazz_newMeth(C$, 'getIgnoreRepaint$', function () { +return false; +}); + +Clazz_newMeth(C$, 'contains$java_awt_Point', function (p) { +return this.contains$I$I(p.x, p.y); +}); + +Clazz_newMeth(C$, 'contains$I$I', function (x, y) { +return this.inside$I$I(x, y); +}); + +Clazz_newMeth(C$, 'inside$I$I', function (x, y) { +return (x >= 0) && (x < this.width) && (y >= 0) && (y < this.height) ; +}); + +Clazz_newMeth(C$, 'getComponentAt$I$I', function (x, y) { +return this.locate$I$I(x, y); +}); + +Clazz_newMeth(C$, 'locate$I$I', function (x, y) { +return this.contains$I$I(x, y) ? this : null; +}); + +Clazz_newMeth(C$, 'getComponentAt$java_awt_Point', function (p) { +return this.getComponentAt$I$I(p.x, p.y); +}); + +Clazz_newMeth(C$, 'deliverEvent$java_awt_Event', function (e) { +this.postEvent$java_awt_Event(e); +}); + +Clazz_newMeth(C$, 'dispatchEvent$java_awt_AWTEvent', function (e) { +this.dispatchEventImpl$java_awt_AWTEvent(e); +}); + +Clazz_newMeth(C$, 'dispatchEventImpl$java_awt_AWTEvent', function (e) { +this.dispatchEventImplComp$java_awt_AWTEvent(e); +}); + +Clazz_newMeth(C$, 'dispatchEventImplComp$java_awt_AWTEvent', function (e) { +var id=e.getID$(); +if (!(Clazz_instanceOf(e, "java.awt.event.KeyEvent"))) { +$I$(16).setCurrentEventAndMostRecentTime$java_awt_AWTEvent(e); +}if (!e.focusManagerIsDispatching) { +if (e.isPosted) { +e=$I$(8).retargetFocusEvent$java_awt_AWTEvent(e); +e.isPosted=true; +}if ($I$(8).getCurrentKeyboardFocusManager$().dispatchEvent$java_awt_AWTEvent(e)) { +return; +}}var toolkit=$I$(6).getDefaultToolkit$(); +toolkit.notifyAWTEventListeners$java_awt_AWTEvent(e); +if (!e.isConsumed$()) { +if (Clazz_instanceOf(e, "java.awt.event.KeyEvent")) { +$I$(8).getCurrentKeyboardFocusManager$().processKeyEvent$java_awt_Component$java_awt_event_KeyEvent(this, e); +if (e.isConsumed$()) { +return; +}}}switch (id) { +case 801: +(this).秘update$(); +break; +case 401: +case 402: +var p=((Clazz_instanceOf(this, "java.awt.Container")) ? this : this.parent); +if (p != null ) { +p.preProcessKeyEvent$java_awt_event_KeyEvent(e); +}break; +case 201: +break; +default: +break; +} +if (this.newEventsOnly) { +if (this.eventEnabled$java_awt_AWTEvent(e)) { +this.processEvent$java_awt_AWTEvent(e); +}} else if (id == 507) { +this.autoProcessMouseWheel$java_awt_event_MouseWheelEvent(e); +}}); + +Clazz_newMeth(C$, 'autoProcessMouseWheel$java_awt_event_MouseWheelEvent', function (e) { +}); + +Clazz_newMeth(C$, 'dispatchMouseWheelToAncestor$java_awt_event_MouseWheelEvent', function (e) { +var newX; +var newY; +newX=e.getX$() + this.getX$(); +newY=e.getY$() + this.getY$(); +var newMWE; +/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$()); +{ +var anc=this.getParent$(); +while (anc != null && !anc.eventEnabled$java_awt_AWTEvent(e) ){ +newX+=anc.getX$(); +newY+=anc.getY$(); +if (!anc.isWindowOrJSApplet$()) { +anc=anc.getParent$(); +} else { +break; +}} +if (anc != null && anc.eventEnabled$java_awt_AWTEvent(e) ) { +newMWE=Clazz_new_($I$(17).c$$java_awt_Component$I$J$I$I$I$I$I$I$Z$I$I$I$D,[anc, e.getID$(), e.getWhen$(), e.getModifiers$(), newX, newY, e.getXOnScreen$(), e.getYOnScreen$(), e.getClickCount$(), e.isPopupTrigger$(), e.getScrollType$(), e.getScrollAmount$(), e.getWheelRotation$(), e.getPreciseWheelRotation$()]); +(e).copyPrivateDataInto$java_awt_AWTEvent(newMWE); +anc.dispatchEventToSelf$java_awt_AWTEvent(newMWE); +}}return true; +}); + +Clazz_newMeth(C$, 'checkWindowClosingException$', function () { +if (this.windowClosingException != null ) { +if (Clazz_instanceOf(this, "java.awt.JSDialog")) { +(this).interruptBlocking$(); +} else { +this.windowClosingException.fillInStackTrace$(); +this.windowClosingException.printStackTrace$(); +this.windowClosingException=null; +}return true; +}return false; +}); + +Clazz_newMeth(C$, 'areInputMethodsEnabled$', function () { +return ((this.eventMask & 4096) != 0) && ((this.eventMask & 8) != 0 || this.keyListener != null ) ; +}); + +Clazz_newMeth(C$, 'eventEnabled$java_awt_AWTEvent', function (e) { +return this.eventTypeEnabled$I(e.id); +}); + +Clazz_newMeth(C$, 'eventTypeEnabled$I', function (type) { +switch (type) { +case 100: +case 101: +case 102: +case 103: +if ((this.eventMask & 1) != 0 || this.componentListener != null ) { +return true; +}break; +case 1004: +case 1005: +if ((this.eventMask & 4) != 0 || this.focusListener != null ) { +return true; +}break; +case 401: +case 402: +case 400: +if ((this.eventMask & 8) != 0 || this.keyListener != null ) { +return true; +}break; +case 501: +case 502: +case 504: +case 505: +case 500: +if ((this.eventMask & 16) != 0 || this.mouseListener != null ) { +return true; +}break; +case 503: +case 506: +if ((this.eventMask & 32) != 0 || this.mouseMotionListener != null ) { +return true; +}break; +case 507: +if ((this.eventMask & 131072) != 0 || this.mouseWheelListener != null ) { +return true; +}break; +case 1100: +case 1101: +if ((this.eventMask & 2048) != 0 || this.inputMethodListener != null ) { +return true; +}break; +case 1400: +if ((this.eventMask & 32768) != 0 || this.hierarchyListener != null ) { +return true; +}break; +case 1401: +case 1402: +if ((this.eventMask & 65536) != 0 || this.hierarchyBoundsListener != null ) { +return true; +}break; +case 1001: +if ((this.eventMask & 128) != 0) { +return true; +}break; +case 900: +if ((this.eventMask & 1024) != 0) { +return true; +}break; +case 701: +if ((this.eventMask & 512) != 0) { +return true; +}break; +case 601: +if ((this.eventMask & 256) != 0) { +return true; +}break; +default: +break; +} +if (type > 1999) { +return true; +}return false; +}); + +Clazz_newMeth(C$, 'postEvent$java_awt_Event', function (e) { +if (this.handleEvent$java_awt_Event(e)) { +e.consume$(); +return true; +}var parent=this.parent; +var eventx=e.x; +var eventy=e.y; +if (parent != null ) { +e.translate$I$I(this.x, this.y); +if (parent.postEvent$java_awt_Event(e)) { +e.consume$(); +return true; +}e.x=eventx; +e.y=eventy; +}return false; +}); + +Clazz_newMeth(C$, 'addComponentListener$java_awt_event_ComponentListener', function (l) { +if (l == null ) { +return; +}this.componentListener=$I$(18).add$java_awt_event_ComponentListener$java_awt_event_ComponentListener(this.componentListener, l); +this.newEventsOnly=true; +}); + +Clazz_newMeth(C$, 'removeComponentListener$java_awt_event_ComponentListener', function (l) { +if (l == null ) { +return; +}this.componentListener=$I$(18).remove$java_awt_event_ComponentListener$java_awt_event_ComponentListener(this.componentListener, l); +}); + +Clazz_newMeth(C$, 'getComponentListeners$', function () { +return (this.getListeners$Class(Clazz_getClass($I$(19),['componentHidden$java_awt_event_ComponentEvent','componentMoved$java_awt_event_ComponentEvent','componentResized$java_awt_event_ComponentEvent','componentShown$java_awt_event_ComponentEvent']))); +}); + +Clazz_newMeth(C$, 'addFocusListener$java_awt_event_FocusListener', function (l) { +if (l == null ) { +return; +}this.focusListener=$I$(18).add$java_awt_event_FocusListener$java_awt_event_FocusListener(this.focusListener, l); +this.newEventsOnly=true; +}); + +Clazz_newMeth(C$, 'removeFocusListener$java_awt_event_FocusListener', function (l) { +if (l == null ) { +return; +}this.focusListener=$I$(18).remove$java_awt_event_FocusListener$java_awt_event_FocusListener(this.focusListener, l); +}); + +Clazz_newMeth(C$, 'getFocusListeners$', function () { +return (this.getListeners$Class(Clazz_getClass($I$(20),['focusGained$java_awt_event_FocusEvent','focusLost$java_awt_event_FocusEvent']))); +}); + +Clazz_newMeth(C$, 'addHierarchyListener$java_awt_event_HierarchyListener', function (l) { +}); + +Clazz_newMeth(C$, 'removeHierarchyListener$java_awt_event_HierarchyListener', function (l) { +}); + +Clazz_newMeth(C$, 'getHierarchyListeners$', function () { +return (this.getListeners$Class(Clazz_getClass($I$(21),['hierarchyChanged$java_awt_event_HierarchyEvent']))); +}); + +Clazz_newMeth(C$, 'addHierarchyBoundsListener$java_awt_event_HierarchyBoundsListener', function (l) { +if (l == null ) { +return; +}var notifyAncestors; +notifyAncestors=(this.hierarchyBoundsListener == null && (this.eventMask & 65536) == 0 ); +this.hierarchyBoundsListener=$I$(18).add$java_awt_event_HierarchyBoundsListener$java_awt_event_HierarchyBoundsListener(this.hierarchyBoundsListener, l); +notifyAncestors=(notifyAncestors && this.hierarchyBoundsListener != null ); +this.newEventsOnly=true; +if (notifyAncestors) { +/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$()); +{ +this.adjustListeningChildrenOnParent$J$I(65536, 1); +}}}); + +Clazz_newMeth(C$, 'removeHierarchyBoundsListener$java_awt_event_HierarchyBoundsListener', function (l) { +if (l == null ) { +return; +}var notifyAncestors; +{ +notifyAncestors=(this.hierarchyBoundsListener != null && (this.eventMask & 65536) == 0 ); +this.hierarchyBoundsListener=$I$(18).remove$java_awt_event_HierarchyBoundsListener$java_awt_event_HierarchyBoundsListener(this.hierarchyBoundsListener, l); +notifyAncestors=(notifyAncestors && this.hierarchyBoundsListener == null ); +}if (notifyAncestors) { +/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$()); +{ +this.adjustListeningChildrenOnParent$J$I(65536, -1); +}}}); + +Clazz_newMeth(C$, 'numListening$J', function (mask) { +return this.numListeningMask$J(mask); +}); + +Clazz_newMeth(C$, 'numListeningMask$J', function (mask) { +if ((mask == 32768 && (this.hierarchyListener != null || (this.eventMask & 32768) != 0 ) ) || (mask == 65536 && (this.hierarchyBoundsListener != null || (this.eventMask & 65536) != 0 ) ) ) { +return 1; +} else { +return 0; +}}); + +Clazz_newMeth(C$, 'countHierarchyMembers$', function () { +return 1; +}); + +Clazz_newMeth(C$, 'createHierarchyEvents$I$java_awt_Component$java_awt_Container$J$Z', function (id, changed, changedParent, changeFlags, enabledOnToolkit) { +return this.createHierEventsComp$I$java_awt_Component$java_awt_Container$J$Z(id, changed, changedParent, changeFlags, enabledOnToolkit); +}); + +Clazz_newMeth(C$, 'createHierEventsComp$I$java_awt_Component$java_awt_Container$J$Z', function (id, changed, changedParent, changeFlags, enabledOnToolkit) { +switch (id) { +case 1400: +if (this.hierarchyListener != null || (this.eventMask & 32768) != 0 || enabledOnToolkit ) { +var e=Clazz_new_($I$(22).c$$java_awt_Component$I$java_awt_Component$java_awt_Container$J,[this, id, changed, changedParent, changeFlags]); +this.dispatchEvent$java_awt_AWTEvent(e); +return 1; +}break; +case 1401: +case 1402: +if (this.hierarchyBoundsListener != null || (this.eventMask & 65536) != 0 || enabledOnToolkit ) { +var e=Clazz_new_($I$(22).c$$java_awt_Component$I$java_awt_Component$java_awt_Container,[this, id, changed, changedParent]); +this.dispatchEvent$java_awt_AWTEvent(e); +return 1; +}break; +default: +break; +} +return 0; +}); + +Clazz_newMeth(C$, 'getHierarchyBoundsListeners$', function () { +return (this.getListeners$Class(Clazz_getClass($I$(23),['ancestorMoved$java_awt_event_HierarchyEvent','ancestorResized$java_awt_event_HierarchyEvent']))); +}); + +Clazz_newMeth(C$, 'adjustListeningChildrenOnParent$J$I', function (mask, num) { +if (this.parent != null ) { +this.parent.adjustListeningChildren$J$I(mask, num); +}}); + +Clazz_newMeth(C$, 'addKeyListener$java_awt_event_KeyListener', function (l) { +if (l == null ) { +return; +}this.keyListener=$I$(18).add$java_awt_event_KeyListener$java_awt_event_KeyListener(this.keyListener, l); +this.newEventsOnly=true; +}); + +Clazz_newMeth(C$, 'removeKeyListener$java_awt_event_KeyListener', function (l) { +if (l == null ) { +return; +}this.keyListener=$I$(18).remove$java_awt_event_KeyListener$java_awt_event_KeyListener(this.keyListener, l); +}); + +Clazz_newMeth(C$, 'getKeyListeners$', function () { +return (this.getListeners$Class(Clazz_getClass($I$(24),['keyPressed$java_awt_event_KeyEvent','keyReleased$java_awt_event_KeyEvent','keyTyped$java_awt_event_KeyEvent']))); +}); + +Clazz_newMeth(C$, 'addMouseListener$java_awt_event_MouseListener', function (l) { +if (l == null ) { +return; +}this.mouseListener=$I$(18).add$java_awt_event_MouseListener$java_awt_event_MouseListener(this.mouseListener, l); +this.newEventsOnly=true; +}); + +Clazz_newMeth(C$, 'removeMouseListener$java_awt_event_MouseListener', function (l) { +if (l == null ) { +return; +}this.mouseListener=$I$(18).remove$java_awt_event_MouseListener$java_awt_event_MouseListener(this.mouseListener, l); +}); + +Clazz_newMeth(C$, 'getMouseListeners$', function () { +return (this.getListeners$Class(Clazz_getClass($I$(25),['mouseClicked$java_awt_event_MouseEvent','mouseEntered$java_awt_event_MouseEvent','mouseExited$java_awt_event_MouseEvent','mousePressed$java_awt_event_MouseEvent','mouseReleased$java_awt_event_MouseEvent']))); +}); + +Clazz_newMeth(C$, 'addMouseMotionListener$java_awt_event_MouseMotionListener', function (l) { +if (l == null ) { +return; +}this.mouseMotionListener=$I$(18).add$java_awt_event_MouseMotionListener$java_awt_event_MouseMotionListener(this.mouseMotionListener, l); +this.newEventsOnly=true; +}); + +Clazz_newMeth(C$, 'removeMouseMotionListener$java_awt_event_MouseMotionListener', function (l) { +if (l == null ) { +return; +}this.mouseMotionListener=$I$(18).remove$java_awt_event_MouseMotionListener$java_awt_event_MouseMotionListener(this.mouseMotionListener, l); +}); + +Clazz_newMeth(C$, 'getMouseMotionListeners$', function () { +return (this.getListeners$Class(Clazz_getClass($I$(26),['mouseDragged$java_awt_event_MouseEvent','mouseMoved$java_awt_event_MouseEvent']))); +}); + +Clazz_newMeth(C$, 'addMouseWheelListener$java_awt_event_MouseWheelListener', function (l) { +if (l == null ) { +return; +}this.mouseWheelListener=$I$(18).add$java_awt_event_MouseWheelListener$java_awt_event_MouseWheelListener(this.mouseWheelListener, l); +this.newEventsOnly=true; +}); + +Clazz_newMeth(C$, 'removeMouseWheelListener$java_awt_event_MouseWheelListener', function (l) { +if (l == null ) { +return; +}this.mouseWheelListener=$I$(18).remove$java_awt_event_MouseWheelListener$java_awt_event_MouseWheelListener(this.mouseWheelListener, l); +}); + +Clazz_newMeth(C$, 'getMouseWheelListeners$', function () { +return (this.getListeners$Class(Clazz_getClass($I$(27),['mouseWheelMoved$java_awt_event_MouseWheelEvent']))); +}); + +Clazz_newMeth(C$, 'addInputMethodListener$java_awt_event_InputMethodListener', function (l) { +if (l == null ) { +return; +}this.inputMethodListener=$I$(18).add$java_awt_event_InputMethodListener$java_awt_event_InputMethodListener(this.inputMethodListener, l); +this.newEventsOnly=true; +}); + +Clazz_newMeth(C$, 'removeInputMethodListener$java_awt_event_InputMethodListener', function (l) { +if (l == null ) { +return; +}this.inputMethodListener=$I$(18).remove$java_awt_event_InputMethodListener$java_awt_event_InputMethodListener(this.inputMethodListener, l); +}); + +Clazz_newMeth(C$, 'getInputMethodListeners$', function () { +return (this.getListeners$Class(Clazz_getClass($I$(28),['caretPositionChanged$java_awt_event_InputMethodEvent','inputMethodTextChanged$java_awt_event_InputMethodEvent']))); +}); + +Clazz_newMeth(C$, 'getListeners$Class', function (listenerType) { +return this.getListenersComp$Class(listenerType); +}); + +Clazz_newMeth(C$, 'getListenersComp$Class', function (listenerType) { +var l=null; +if (listenerType === Clazz_getClass($I$(19),['componentHidden$java_awt_event_ComponentEvent','componentMoved$java_awt_event_ComponentEvent','componentResized$java_awt_event_ComponentEvent','componentShown$java_awt_event_ComponentEvent']) ) { +l=this.componentListener; +} else if (listenerType === Clazz_getClass($I$(20),['focusGained$java_awt_event_FocusEvent','focusLost$java_awt_event_FocusEvent']) ) { +l=this.focusListener; +} else if (listenerType === Clazz_getClass($I$(21),['hierarchyChanged$java_awt_event_HierarchyEvent']) ) { +l=this.hierarchyListener; +} else if (listenerType === Clazz_getClass($I$(23),['ancestorMoved$java_awt_event_HierarchyEvent','ancestorResized$java_awt_event_HierarchyEvent']) ) { +l=this.hierarchyBoundsListener; +} else if (listenerType === Clazz_getClass($I$(24),['keyPressed$java_awt_event_KeyEvent','keyReleased$java_awt_event_KeyEvent','keyTyped$java_awt_event_KeyEvent']) ) { +l=this.keyListener; +} else if (listenerType === Clazz_getClass($I$(25),['mouseClicked$java_awt_event_MouseEvent','mouseEntered$java_awt_event_MouseEvent','mouseExited$java_awt_event_MouseEvent','mousePressed$java_awt_event_MouseEvent','mouseReleased$java_awt_event_MouseEvent']) ) { +l=this.mouseListener; +} else if (listenerType === Clazz_getClass($I$(26),['mouseDragged$java_awt_event_MouseEvent','mouseMoved$java_awt_event_MouseEvent']) ) { +l=this.mouseMotionListener; +} else if (listenerType === Clazz_getClass($I$(27),['mouseWheelMoved$java_awt_event_MouseWheelEvent']) ) { +l=this.mouseWheelListener; +} else if (listenerType === Clazz_getClass($I$(28),['caretPositionChanged$java_awt_event_InputMethodEvent','inputMethodTextChanged$java_awt_event_InputMethodEvent']) ) { +l=this.inputMethodListener; +} else if (listenerType === Clazz_getClass($I$(29),['propertyChange$java_beans_PropertyChangeEvent']) ) { +return this.getPropertyChangeListeners$(); +}return $I$(18).getListeners$java_util_EventListener$Class(l, listenerType); +}); + +Clazz_newMeth(C$, 'enableEvents$J', function (eventsToEnable) { +var notifyAncestors=0; +{ +if ((eventsToEnable & 32768) != 0 && this.hierarchyListener == null && (this.eventMask & 32768) == 0 ) { +notifyAncestors|=32768; +}if ((eventsToEnable & 65536) != 0 && this.hierarchyBoundsListener == null && (this.eventMask & 65536) == 0 ) { +notifyAncestors|=65536; +}this.eventMask|=eventsToEnable; +this.newEventsOnly=true; +}if (this.parent != null && Clazz_instanceOf(this.peer, "java.awt.peer.LightweightPeer") ) { +this.parent.proxyEnableEvents$J(this.eventMask); +}if (notifyAncestors != 0) { +/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$()); +{ +this.adjustListeningChildrenOnParent$J$I(notifyAncestors, 1); +}}}); + +Clazz_newMeth(C$, 'disableEvents$J', function (eventsToDisable) { +var notifyAncestors=0; +{ +if ((eventsToDisable & 32768) != 0 && this.hierarchyListener == null && (this.eventMask & 32768) != 0 ) { +notifyAncestors|=32768; +}if ((eventsToDisable & 65536) != 0 && this.hierarchyBoundsListener == null && (this.eventMask & 65536) != 0 ) { +notifyAncestors|=65536; +}this.eventMask&=~eventsToDisable; +}if (notifyAncestors != 0) { +/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$()); +{ +this.adjustListeningChildrenOnParent$J$I(notifyAncestors, -1); +}}}); + +Clazz_newMeth(C$, 'checkCoalescing', function () { +if (this.getClass$().getClassLoader$() == null ) { +return false; +}var clazz=this.getClass$(); +{ +var value=C$.coalesceMap.get$O(clazz); +if (value != null ) { +return value.booleanValue$(); +}var enabled=$I$(30).valueOf$Z(p$1.checkCoelescence.apply(this, [])); +C$.coalesceMap.put$TK$TV(clazz, enabled); +return enabled.booleanValue$(); +}}, p$1); + +Clazz_newMeth(C$, 'checkCoelescence', function () { +return this.coalesceEvents$java_awt_AWTEvent$java_awt_AWTEvent.exClazz != C$ ||false; +}, p$1); + +Clazz_newMeth(C$, 'isCoalescingEnabled$', function () { +return this.coalescingEnabled; +}); + +Clazz_newMeth(C$, 'coalesceEvents$java_awt_AWTEvent$java_awt_AWTEvent', function (existingEvent, newEvent) { +return null; +}); + +Clazz_newMeth(C$, 'processEvent$java_awt_AWTEvent', function (e) { +this.processEventComp$java_awt_AWTEvent(e); +}); + +Clazz_newMeth(C$, 'processEventComp$java_awt_AWTEvent', function (e) { +var isActiveRetarget=!!e.dispatch$ ||false; +if (isActiveRetarget || Clazz_instanceOf(e, "java.awt.ActiveEvent") ) { +(e).dispatch$(); +} else if (Clazz_instanceOf(e, "java.awt.event.FocusEvent")) { +this.processFocusEvent$java_awt_event_FocusEvent(e); +} else if (Clazz_instanceOf(e, "java.awt.event.MouseEvent")) { +switch (e.getID$()) { +case 501: +case 502: +case 500: +case 504: +case 505: +this.processMouseEvent$java_awt_event_MouseEvent(e); +break; +case 503: +case 506: +this.processMouseMotionEvent$java_awt_event_MouseEvent(e); +break; +case 507: +this.processMouseWheelEvent$java_awt_event_MouseWheelEvent(e); +break; +} +} else if (Clazz_instanceOf(e, "java.awt.event.KeyEvent")) { +this.processKeyEvent$java_awt_event_KeyEvent(e); +} else if (Clazz_instanceOf(e, "java.awt.event.ComponentEvent")) { +this.processComponentEvent$java_awt_event_ComponentEvent(e); +} else if (Clazz_instanceOf(e, "java.awt.event.InputMethodEvent")) { +this.processInputMethodEvent$java_awt_event_InputMethodEvent(e); +} else if (Clazz_instanceOf(e, "java.awt.event.HierarchyEvent")) { +switch (e.getID$()) { +case 1400: +this.processHierarchyEvent$java_awt_event_HierarchyEvent(e); +break; +case 1401: +case 1402: +this.processHierarchyBoundsEvent$java_awt_event_HierarchyEvent(e); +break; +} +}}); + +Clazz_newMeth(C$, 'processComponentEvent$java_awt_event_ComponentEvent', function (e) { +var listener=this.componentListener; +if (listener != null ) { +var id=e.getID$(); +switch (id) { +case 101: +listener.componentResized$java_awt_event_ComponentEvent(e); +break; +case 100: +listener.componentMoved$java_awt_event_ComponentEvent(e); +break; +case 102: +listener.componentShown$java_awt_event_ComponentEvent(e); +break; +case 103: +listener.componentHidden$java_awt_event_ComponentEvent(e); +break; +} +}}); + +Clazz_newMeth(C$, 'processFocusEvent$java_awt_event_FocusEvent', function (e) { +var listener=this.focusListener; +if (listener != null ) { +var id=e.getID$(); +switch (id) { +case 1004: +listener.focusGained$java_awt_event_FocusEvent(e); +break; +case 1005: +listener.focusLost$java_awt_event_FocusEvent(e); +break; +} +}}); + +Clazz_newMeth(C$, 'processKeyEvent$java_awt_event_KeyEvent', function (e) { +var listener=this.keyListener; +if (listener != null && ((this).秘isAWT$() || this.秘isFocusableSet || this.keyListener != null ) ) { +var id=e.getID$(); +switch (id) { +case 400: +listener.keyTyped$java_awt_event_KeyEvent(e); +break; +case 401: +listener.keyPressed$java_awt_event_KeyEvent(e); +break; +case 402: +listener.keyReleased$java_awt_event_KeyEvent(e); +break; +} +}}); + +Clazz_newMeth(C$, 'processMouseEvent$java_awt_event_MouseEvent', function (e) { +var listener=this.mouseListener; +if (listener != null ) { +var id=e.getID$(); +switch (id) { +case 501: +listener.mousePressed$java_awt_event_MouseEvent(e); +break; +case 502: +listener.mouseReleased$java_awt_event_MouseEvent(e); +break; +case 500: +listener.mouseClicked$java_awt_event_MouseEvent(e); +break; +case 505: +listener.mouseExited$java_awt_event_MouseEvent(e); +break; +case 504: +listener.mouseEntered$java_awt_event_MouseEvent(e); +break; +} +}}); + +Clazz_newMeth(C$, 'processMouseMotionEvent$java_awt_event_MouseEvent', function (e) { +var listener=this.mouseMotionListener; +if (listener != null ) { +var id=e.getID$(); +switch (id) { +case 503: +listener.mouseMoved$java_awt_event_MouseEvent(e); +break; +case 506: +listener.mouseDragged$java_awt_event_MouseEvent(e); +break; +} +}}); + +Clazz_newMeth(C$, 'processMouseWheelEvent$java_awt_event_MouseWheelEvent', function (e) { +var listener=this.mouseWheelListener; +if (listener != null ) { +var id=e.getID$(); +switch (id) { +case 507: +listener.mouseWheelMoved$(e); +break; +} +}}); + +Clazz_newMeth(C$, 'postsOldMouseEvents$', function () { +return false; +}); + +Clazz_newMeth(C$, 'processInputMethodEvent$java_awt_event_InputMethodEvent', function (e) { +var listener=this.inputMethodListener; +if (listener != null ) { +var id=e.getID$(); +switch (id) { +case 1100: +listener.inputMethodTextChanged$java_awt_event_InputMethodEvent(e); +break; +case 1101: +listener.caretPositionChanged$java_awt_event_InputMethodEvent(e); +break; +} +}}); + +Clazz_newMeth(C$, 'processHierarchyEvent$java_awt_event_HierarchyEvent', function (e) { +var listener=this.hierarchyListener; +if (listener != null ) { +var id=e.getID$(); +switch (id) { +case 1400: +listener.hierarchyChanged$(e); +break; +} +}}); + +Clazz_newMeth(C$, 'processHierarchyBoundsEvent$java_awt_event_HierarchyEvent', function (e) { +var listener=this.hierarchyBoundsListener; +if (listener != null ) { +var id=e.getID$(); +switch (id) { +case 1401: +listener.ancestorMoved$java_awt_event_HierarchyEvent(e); +break; +case 1402: +listener.ancestorResized$java_awt_event_HierarchyEvent(e); +break; +} +}}); + +Clazz_newMeth(C$, 'handleEvent$java_awt_Event', function (evt) { +switch (evt.id) { +case 504: +return this.mouseEnter$java_awt_Event$I$I(evt, evt.x, evt.y); +case 505: +return this.mouseExit$java_awt_Event$I$I(evt, evt.x, evt.y); +case 503: +return this.mouseMove$java_awt_Event$I$I(evt, evt.x, evt.y); +case 501: +return this.mouseDown$java_awt_Event$I$I(evt, evt.x, evt.y); +case 506: +return this.mouseDrag$java_awt_Event$I$I(evt, evt.x, evt.y); +case 502: +return this.mouseUp$java_awt_Event$I$I(evt, evt.x, evt.y); +case 401: +case 403: +return this.keyDown$java_awt_Event$I(evt, evt.key); +case 402: +case 404: +return this.keyUp$java_awt_Event$I(evt, evt.key); +case 1001: +return this.action$java_awt_Event$O(evt, evt.arg); +case 1004: +return this.gotFocus$java_awt_Event$O(evt, evt.arg); +case 1005: +return this.lostFocus$java_awt_Event$O(evt, evt.arg); +} +return false; +}); + +Clazz_newMeth(C$, 'mouseDown$java_awt_Event$I$I', function (evt, x, y) { +return false; +}); + +Clazz_newMeth(C$, 'mouseDrag$java_awt_Event$I$I', function (evt, x, y) { +return false; +}); + +Clazz_newMeth(C$, 'mouseUp$java_awt_Event$I$I', function (evt, x, y) { +return false; +}); + +Clazz_newMeth(C$, 'mouseMove$java_awt_Event$I$I', function (evt, x, y) { +return false; +}); + +Clazz_newMeth(C$, 'mouseEnter$java_awt_Event$I$I', function (evt, x, y) { +return false; +}); + +Clazz_newMeth(C$, 'mouseExit$java_awt_Event$I$I', function (evt, x, y) { +return false; +}); + +Clazz_newMeth(C$, 'keyDown$java_awt_Event$I', function (evt, key) { +return false; +}); + +Clazz_newMeth(C$, 'keyUp$java_awt_Event$I', function (evt, key) { +return false; +}); + +Clazz_newMeth(C$, 'action$java_awt_Event$O', function (evt, what) { +return false; +}); + +Clazz_newMeth(C$, 'addNotify$', function () { +/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$()); +{ +var peer=this.getOrCreatePeer$(); +if (this.parent != null ) { +var mask=0; +if ((this.mouseListener != null ) || ((this.eventMask & 16) != 0) ) { +mask|=16; +}if ((this.mouseMotionListener != null ) || ((this.eventMask & 32) != 0) ) { +mask|=32; +}if ((this.mouseWheelListener != null ) || ((this.eventMask & 131072) != 0) ) { +mask|=131072; +}if (this.focusListener != null || (this.eventMask & 4) != 0 ) { +mask|=4; +}if (this.keyListener != null || (this.eventMask & 8) != 0 ) { +mask|=8; +}if (mask != 0) { +this.parent.proxyEnableEvents$J(mask); +}}if (this.秘j2sInvalidateOnAdd) this.invalidate$(); +this.peerFont=this.getFont$(); +if (this.parent != null && this.parent.peer != null ) { +var parentContPeer=this.parent.peer; +}this.isAddNotifyComplete=true; +if (this.visible && peer != null ) { +if (peer.isDisposed &&true) peer.setVisible$Z(true); +}if (this.hierarchyListener != null || (this.eventMask & 32768) != 0 || $I$(6).enabledOnToolkit$J(32768) ) { +var e=Clazz_new_($I$(22).c$$java_awt_Component$I$java_awt_Component$java_awt_Container$J,[this, 1400, this, this.parent, 2 | ((this.isRecursivelyVisible$()) ? 4 : 0)]); +this.dispatchEvent$java_awt_AWTEvent(e); +}}}); + +Clazz_newMeth(C$, 'getNativeContainer$', function () { +var p=this.parent; +while (p != null && !(Clazz_instanceOf(p, "java.applet.JSApplet")) && Clazz_instanceOf(p.peer, "java.awt.peer.LightweightPeer") ){ +p=p.getParent$(); +} +return p; +}); + +Clazz_newMeth(C$, 'removeNotify$', function () { +this.removeNotifyComp$(); +}); + +Clazz_newMeth(C$, 'removeNotifyComp$', function () { +$I$(8).clearMostRecentFocusOwner$java_awt_Component(this); +if ($I$(8).getCurrentKeyboardFocusManager$().getPermanentFocusOwner$() === this ) { +$I$(8).getCurrentKeyboardFocusManager$().setGlobalPermanentFocusOwner$java_awt_Component(null); +}if (this.isFocusOwner$() && $I$(8).isAutoFocusTransferEnabledFor$java_awt_Component(this) ) { +this.transferFocus$Z(true); +}var p=this.getOrCreatePeer$(); +if (p != null ) { +if (this.visible) { +p.setVisible$Z(false); +}$I$(6).getEventQueue$().removeSourceEvents$O$Z(this, false); +$I$(8).getCurrentKeyboardFocusManager$().discardKeyEvents$java_awt_Component(this); +p.dispose$(); +this.isAddNotifyComplete=false; +}if (this.hierarchyListener != null || (this.eventMask & 32768) != 0 || $I$(6).enabledOnToolkit$J(32768) ) { +var e=Clazz_new_($I$(22).c$$java_awt_Component$I$java_awt_Component$java_awt_Container$J,[this, 1400, this, this.parent, 2 | ((this.isRecursivelyVisible$()) ? 4 : 0)]); +this.dispatchEvent$java_awt_AWTEvent(e); +}}); + +Clazz_newMeth(C$, 'gotFocus$java_awt_Event$O', function (evt, what) { +return false; +}); + +Clazz_newMeth(C$, 'lostFocus$java_awt_Event$O', function (evt, what) { +return false; +}); + +Clazz_newMeth(C$, 'isFocusTraversable$', function () { +if (this.isFocusTraversableOverridden == 0) { +this.isFocusTraversableOverridden=1; +}return this.focusable; +}); + +Clazz_newMeth(C$, 'isFocusable$', function () { +return this.isFocusTraversable$(); +}); + +Clazz_newMeth(C$, 'setFocusable$Z', function (focusable) { +var oldFocusable; +{ +oldFocusable=this.focusable; +this.focusable=focusable; +}this.isFocusTraversableOverridden=2; +this.秘isFocusableSet=true; +this.firePropertyChange$S$O$O("focusable", $I$(30).valueOf$Z(oldFocusable), $I$(30).valueOf$Z(focusable)); +if (oldFocusable && !focusable ) { +if (this.isFocusOwner$() && $I$(8).isAutoFocusTransferEnabled$() ) { +this.transferFocus$Z(true); +}$I$(8).clearMostRecentFocusOwner$java_awt_Component(this); +}}); + +Clazz_newMeth(C$, 'isFocusTraversableOverridden$', function () { +return (this.isFocusTraversableOverridden != 1); +}); + +Clazz_newMeth(C$, 'setFocusTraversalKeys$I$java_util_Set', function (id, keystrokes) { +if (id < 0 || id >= 3 ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["invalid focus traversal key identifier"]); +}this.setFocusTraversalKeys_NoIDCheck$I$java_util_Set(id, keystrokes); +}); + +Clazz_newMeth(C$, 'getFocusTraversalKeys$I', function (id) { +if (id < 0 || id >= 3 ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["invalid focus traversal key identifier"]); +}return this.getFocusTraversalKeys_NoIDCheck$I(id); +}); + +Clazz_newMeth(C$, 'setFocusTraversalKeys_NoIDCheck$I$java_util_Set', function (id, keystrokes) { +var oldKeys; +{ +if (this.focusTraversalKeys == null ) { +this.initializeFocusTraversalKeys$(); +}if (keystrokes != null ) { +for (var keystroke, $keystroke = keystrokes.iterator$(); $keystroke.hasNext$()&&((keystroke=($keystroke.next$())),1);) { +if (keystroke == null ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["cannot set null focus traversal key"]); +}if (keystroke.getKeyChar$() != "\uffff") { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["focus traversal keys cannot map to KEY_TYPED events"]); +}for (var i=0; i < this.focusTraversalKeys.length; i++) { +if (i == id) { +continue; +}if (this.getFocusTraversalKeys_NoIDCheck$I(i).contains$O(keystroke)) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["focus traversal keys must be unique for a Component"]); +}} +} +}oldKeys=this.focusTraversalKeys[id]; +this.focusTraversalKeys[id]=(keystrokes != null ) ? $I$(31).unmodifiableSet$java_util_Set(Clazz_new_($I$(32).c$$java_util_Collection,[keystrokes])) : null; +}this.firePropertyChange$S$O$O(C$.focusTraversalKeyPropertyNames[id], oldKeys, keystrokes); +}); + +Clazz_newMeth(C$, 'getFocusTraversalKeys_NoIDCheck$I', function (id) { +var keystrokes=(this.focusTraversalKeys != null ) ? this.focusTraversalKeys[id] : null; +if (keystrokes != null ) { +return keystrokes; +} else { +var parent=this.parent; +if (parent != null ) { +return parent.getFocusTraversalKeys$I(id); +} else { +return $I$(8).getCurrentKeyboardFocusManager$().getDefaultFocusTraversalKeys$I(id); +}}}); + +Clazz_newMeth(C$, 'areFocusTraversalKeysSet$I', function (id) { +if (id < 0 || id >= 3 ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["invalid focus traversal key identifier"]); +}return (this.focusTraversalKeys != null && this.focusTraversalKeys[id] != null ); +}); + +Clazz_newMeth(C$, 'setFocusTraversalKeysEnabled$Z', function (focusTraversalKeysEnabled) { +var oldFocusTraversalKeysEnabled; +{ +oldFocusTraversalKeysEnabled=this.focusTraversalKeysEnabled; +this.focusTraversalKeysEnabled=focusTraversalKeysEnabled; +}this.firePropertyChange$S$Z$Z("focusTraversalKeysEnabled", oldFocusTraversalKeysEnabled, focusTraversalKeysEnabled); +}); + +Clazz_newMeth(C$, 'getFocusTraversalKeysEnabled$', function () { +return this.focusTraversalKeysEnabled; +}); + +Clazz_newMeth(C$, 'requestFocus$', function () { +this.requestFocusHelper$Z$Z(false, true); +}); + +Clazz_newMeth(C$, 'requestFocus$sun_awt_CausedFocusEvent_Cause', function (cause) { +this.requestFocusHelper$Z$Z$sun_awt_CausedFocusEvent_Cause(false, true, cause); +}); + +Clazz_newMeth(C$, 'requestFocus$Z', function (temporary) { +return this.requestFocusHelper$Z$Z(temporary, true); +}); + +Clazz_newMeth(C$, 'requestFocus$Z$sun_awt_CausedFocusEvent_Cause', function (temporary, cause) { +return this.requestFocusHelper$Z$Z$sun_awt_CausedFocusEvent_Cause(temporary, true, cause); +}); + +Clazz_newMeth(C$, 'requestFocusInWindow$', function () { +return this.requestFocusHelper$Z$Z(false, false); +}); + +Clazz_newMeth(C$, 'requestFocusInWindow$sun_awt_CausedFocusEvent_Cause', function (cause) { +return this.requestFocusHelper$Z$Z$sun_awt_CausedFocusEvent_Cause(false, false, cause); +}); + +Clazz_newMeth(C$, 'requestFocusInWindow$Z', function (temporary) { +return this.requestFocusHelper$Z$Z(temporary, false); +}); + +Clazz_newMeth(C$, 'requestFocusInWindow$Z$sun_awt_CausedFocusEvent_Cause', function (temporary, cause) { +return this.requestFocusHelper$Z$Z$sun_awt_CausedFocusEvent_Cause(temporary, false, cause); +}); + +Clazz_newMeth(C$, 'requestFocusHelper$Z$Z', function (temporary, focusedWindowChangeAllowed) { +return this.requestFocusHelper$Z$Z$sun_awt_CausedFocusEvent_Cause(temporary, focusedWindowChangeAllowed, $I$(33).UNKNOWN); +}); + +Clazz_newMeth(C$, 'requestFocusHelper$Z$Z$sun_awt_CausedFocusEvent_Cause', function (temporary, focusedWindowChangeAllowed, cause) { +if (!p$1.isRequestFocusAccepted$Z$Z$sun_awt_CausedFocusEvent_Cause.apply(this, [temporary, focusedWindowChangeAllowed, cause])) { +return false; +}$I$(8).setMostRecentFocusOwner$java_awt_Component(this); +var window=this; +while ((window != null ) && !window.isWindowOrJSApplet$() ){ +if (!window.isVisible$()) { +return false; +}window=window.parent; +} +var peer=this.peer; +var heavyweight=(Clazz_instanceOf(peer, "java.awt.peer.LightweightPeer")) ? this.getNativeContainer$() : this; +if (heavyweight == null || !heavyweight.isVisible$() ) { +return false; +}peer=heavyweight.peer; +if (peer == null ) { +return false; +}var time=$I$(16).getMostRecentEventTime$(); +var success=peer.requestFocus$java_awt_Component$Z$Z$J$sun_awt_CausedFocusEvent_Cause(this, temporary, focusedWindowChangeAllowed, time, cause); +if (!success) { +$I$(8).getCurrentKeyboardFocusManager$sun_awt_AppContext(this.appContext).dequeueKeyEvents$J$java_awt_Component(time, this); +} else { +}return success; +}); + +Clazz_newMeth(C$, 'isWindowOrJSApplet$', function () { +return Clazz_instanceOf(this, "java.awt.Window") || Clazz_instanceOf(this, "java.applet.JSApplet") ; +}); + +Clazz_newMeth(C$, 'isJ2SWindowButNotJInternalFrame$', function () { +return Clazz_instanceOf(this, "java.awt.Window") && (this).getUIClassID$() != "InternalFrameUI" ; +}); + +Clazz_newMeth(C$, 'isRequestFocusAccepted$Z$Z$sun_awt_CausedFocusEvent_Cause', function (temporary, focusedWindowChangeAllowed, cause) { +if (!this.isFocusable$() || !this.isVisible$() ) { +return false; +}var peer=this.peer; +if (peer == null ) { +return false; +}var window=this.getContainingWindow$(); +if (window == null || !(window).isFocusableWindow$() ) { +return false; +}var focusOwner=$I$(8).getMostRecentFocusOwner$java_awt_Window(window); +if (focusOwner == null ) { +focusOwner=$I$(8).getCurrentKeyboardFocusManager$().getFocusOwner$(); +if (focusOwner != null && focusOwner.getContainingWindow$() !== window ) { +focusOwner=null; +}}if (focusOwner === this || focusOwner == null ) { +return true; +}if ($I$(33).ACTIVATION === cause ) { +return true; +}if (C$.requestFocusController == null ) C$.requestFocusController=$I$(34).focusController; +var ret=C$.requestFocusController.acceptRequestFocus$(focusOwner, this, temporary, focusedWindowChangeAllowed, cause); +return ret; +}, p$1); + +Clazz_newMeth(C$, 'setRequestFocusController$sun_awt_RequestFocusController', function (requestController) { +if (requestController == null ) { +C$.requestFocusController=Clazz_new_($I$(35)); +} else { +C$.requestFocusController=requestController; +}}, 1); + +Clazz_newMeth(C$, 'getFocusCycleRootAncestor$', function () { +var rootAncestor=this.parent; +while (rootAncestor != null && !rootAncestor.isFocusCycleRoot$() ){ +rootAncestor=rootAncestor.parent; +} +return rootAncestor; +}); + +Clazz_newMeth(C$, 'isFocusCycleRoot$java_awt_Container', function (container) { +return this.isFocusCycleRootComp$java_awt_Container(container); +}); + +Clazz_newMeth(C$, 'isFocusCycleRootComp$java_awt_Container', function (container) { +var rootAncestor=this.getFocusCycleRootAncestor$(); +return (rootAncestor === container ); +}); + +Clazz_newMeth(C$, 'getTraversalRoot$', function () { +return this.getFocusCycleRootAncestor$(); +}); + +Clazz_newMeth(C$, 'transferFocus$', function () { +this.nextFocus$(); +}); + +Clazz_newMeth(C$, 'nextFocus$', function () { +this.transferFocus$Z(false); +}); + +Clazz_newMeth(C$, 'transferFocus$Z', function (clearOnFailure) { +var toFocus=this.getNextFocusCandidate$(); +var res=false; +if (toFocus != null && !toFocus.isFocusOwner$() && toFocus !== this ) { +res=toFocus.requestFocusInWindow$sun_awt_CausedFocusEvent_Cause($I$(33).TRAVERSAL_FORWARD); +}if (clearOnFailure && !res ) { +$I$(8).getCurrentKeyboardFocusManager$().clearGlobalFocusOwner$(); +}return res; +}); + +Clazz_newMeth(C$, 'getNextFocusCandidate$', function () { +var rootAncestor=this.getTraversalRoot$(); +var comp=this; +while (rootAncestor != null && !(rootAncestor.isShowing$() && rootAncestor.canBeFocusOwner$() ) ){ +comp=rootAncestor; +rootAncestor=comp.getFocusCycleRootAncestor$(); +} +var candidate=null; +if (rootAncestor != null ) { +var policy=rootAncestor.getFocusTraversalPolicy$(); +var toFocus=policy.getComponentAfter$java_awt_Container$java_awt_Component(rootAncestor, comp); +if (toFocus == null ) { +toFocus=policy.getDefaultComponent$java_awt_Container(rootAncestor); +}candidate=toFocus; +}return candidate; +}); + +Clazz_newMeth(C$, 'transferFocusBackward$', function () { +this.transferFocusBackward$Z(false); +}); + +Clazz_newMeth(C$, 'transferFocusBackward$Z', function (clearOnFailure) { +var rootAncestor=this.getTraversalRoot$(); +var comp=this; +while (rootAncestor != null && !(rootAncestor.isShowing$() && rootAncestor.canBeFocusOwner$() ) ){ +comp=rootAncestor; +rootAncestor=comp.getFocusCycleRootAncestor$(); +} +var res=false; +if (rootAncestor != null ) { +var policy=rootAncestor.getFocusTraversalPolicy$(); +var toFocus=policy.getComponentBefore$java_awt_Container$java_awt_Component(rootAncestor, comp); +if (toFocus == null ) { +toFocus=policy.getDefaultComponent$java_awt_Container(rootAncestor); +}if (toFocus != null ) { +res=toFocus.requestFocusInWindow$sun_awt_CausedFocusEvent_Cause($I$(33).TRAVERSAL_BACKWARD); +}}if (!res) { +$I$(8).getCurrentKeyboardFocusManager$().clearGlobalFocusOwner$(); +}return res; +}); + +Clazz_newMeth(C$, 'transferFocusUpCycle$', function () { +var rootAncestor; +for (rootAncestor=this.getFocusCycleRootAncestor$(); rootAncestor != null && !(rootAncestor.isShowing$() && rootAncestor.isFocusable$() && rootAncestor.isEnabled$() ) ; rootAncestor=rootAncestor.getFocusCycleRootAncestor$()) { +} +if (rootAncestor != null ) { +var rootAncestorRootAncestor=rootAncestor.getFocusCycleRootAncestor$(); +$I$(8).getCurrentKeyboardFocusManager$().setGlobalCurrentFocusCycleRoot$java_awt_Container((rootAncestorRootAncestor != null ) ? rootAncestorRootAncestor : rootAncestor); +rootAncestor.requestFocus$sun_awt_CausedFocusEvent_Cause($I$(33).TRAVERSAL_UP); +} else { +var window=this.getContainingWindow$(); +if (window != null ) { +var toFocus=window.getFocusTraversalPolicy$().getDefaultComponent$java_awt_Container(window); +if (toFocus != null ) { +$I$(8).getCurrentKeyboardFocusManager$().setGlobalCurrentFocusCycleRoot$java_awt_Container(window); +toFocus.requestFocus$sun_awt_CausedFocusEvent_Cause($I$(33).TRAVERSAL_UP); +}}}}); + +Clazz_newMeth(C$, 'hasFocus$', function () { +return ($I$(8).getCurrentKeyboardFocusManager$().getFocusOwner$() === this ); +}); + +Clazz_newMeth(C$, 'isFocusOwner$', function () { +return this.hasFocus$(); +}); + +Clazz_newMeth(C$, 'setAutoFocusTransferOnDisposal$Z', function (value) { +this.autoFocusTransferOnDisposal=value; +}); + +Clazz_newMeth(C$, 'isAutoFocusTransferOnDisposal$', function () { +return this.autoFocusTransferOnDisposal; +}); + +Clazz_newMeth(C$, 'add$java_awt_PopupMenu', function (popup) { +popup.setInvoker$java_awt_Component(this); +}); + +Clazz_newMeth(C$, 'paramString$', function () { +return this.paramStringComp$(); +}); + +Clazz_newMeth(C$, 'paramStringComp$', function () { +var thisName=this.getName$(); +var str=(thisName != null ? thisName : ""); +str += ( +this.__JSID__ + +""); +if (!this.isValid$()) { +str += ",invalid"; +}if (!this.visible) { +str += ",hidden"; +}if (!this.enabled) { +str += ",disabled"; +}str += ",parent:" + (this.parent == null ? null : this.parent.getName$()) + "," + this.x + "," + this.y + "," + this.width + "x" + this.height ; +return str; +}); + +Clazz_newMeth(C$, 'toString', function () { +return this.getClass$().getName$() + "[" + this.paramString$() + "]" ; +}); + +Clazz_newMeth(C$, 'addPropertyChangeListener$java_beans_PropertyChangeListener', function (listener) { +/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(p$1.getChangeSupportLock.apply(this, [])); +{ +if (listener == null ) { +return; +}if (this.changeSupport == null ) { +this.changeSupport=Clazz_new_($I$(36).c$$O,[this]); +}this.changeSupport.addPropertyChangeListener$java_beans_PropertyChangeListener(listener); +}}); + +Clazz_newMeth(C$, 'removePropertyChangeListener$java_beans_PropertyChangeListener', function (listener) { +/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(p$1.getChangeSupportLock.apply(this, [])); +{ +if (listener == null || this.changeSupport == null ) { +return; +}this.changeSupport.removePropertyChangeListener$java_beans_PropertyChangeListener(listener); +}}); + +Clazz_newMeth(C$, 'getPropertyChangeListeners$', function () { +/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(p$1.getChangeSupportLock.apply(this, [])); +{ +if (this.changeSupport == null ) { +return Clazz_array($I$(29), [0]); +}return this.changeSupport.getPropertyChangeListeners$(); +}}); + +Clazz_newMeth(C$, 'addPropertyChangeListener$S$java_beans_PropertyChangeListener', function (propertyName, listener) { +/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(p$1.getChangeSupportLock.apply(this, [])); +{ +if (listener == null ) { +return; +}if (this.changeSupport == null ) { +this.changeSupport=Clazz_new_($I$(36).c$$O,[this]); +}this.changeSupport.addPropertyChangeListener$S$java_beans_PropertyChangeListener(propertyName, listener); +}}); + +Clazz_newMeth(C$, 'removePropertyChangeListener$S$java_beans_PropertyChangeListener', function (propertyName, listener) { +/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(p$1.getChangeSupportLock.apply(this, [])); +{ +if (listener == null || this.changeSupport == null ) { +return; +}this.changeSupport.removePropertyChangeListener$S$java_beans_PropertyChangeListener(propertyName, listener); +}}); + +Clazz_newMeth(C$, 'getPropertyChangeListeners$S', function (propertyName) { +/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(p$1.getChangeSupportLock.apply(this, [])); +{ +if (this.changeSupport == null ) { +return Clazz_array($I$(29), [0]); +}return this.changeSupport.getPropertyChangeListeners$S(propertyName); +}}); + +Clazz_newMeth(C$, 'firePropertyChange$S$O$O', function (propertyName, oldValue, newValue) { +var changeSupport; +/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(p$1.getChangeSupportLock.apply(this, [])); +{ +changeSupport=this.changeSupport; +}if (changeSupport == null || (oldValue != null && newValue != null && oldValue.equals$O(newValue) ) ) { +return; +}changeSupport.firePropertyChange$S$O$O(propertyName, oldValue, newValue); +}); + +Clazz_newMeth(C$, 'firePropertyChange$S$Z$Z', function (propertyName, oldValue, newValue) { +var changeSupport=this.changeSupport; +if (changeSupport == null || oldValue == newValue ) { +return; +}changeSupport.firePropertyChange$S$O$O(propertyName, $I$(30).valueOf$Z(oldValue), $I$(30).valueOf$Z(newValue)); +}); + +Clazz_newMeth(C$, 'firePropertyChange$S$I$I', function (propertyName, oldValue, newValue) { +var changeSupport=this.changeSupport; +if (changeSupport == null || oldValue == newValue ) { +return; +}changeSupport.firePropertyChange$S$O$O(propertyName, Integer.valueOf$I(oldValue), Integer.valueOf$I(newValue)); +}); + +Clazz_newMeth(C$, 'firePropertyChange$S$B$B', function (propertyName, oldValue, newValue) { +if (this.changeSupport == null || oldValue == newValue ) { +return; +}this.firePropertyChange$S$O$O(propertyName, Byte.valueOf$B(($b$[0] = oldValue, $b$[0])), Byte.valueOf$B(($b$[0] = newValue, $b$[0]))); +}); + +Clazz_newMeth(C$, 'firePropertyChange$S$C$C', function (propertyName, oldValue, newValue) { +if (this.changeSupport == null || oldValue == newValue ) { +return; +}this.firePropertyChange$S$O$O(propertyName, Clazz_new_(Character.c$$C,[oldValue]), Clazz_new_(Character.c$$C,[newValue])); +}); + +Clazz_newMeth(C$, 'firePropertyChange$S$H$H', function (propertyName, oldValue, newValue) { +if (this.changeSupport == null || oldValue == newValue ) { +return; +}this.firePropertyChange$S$O$O(propertyName, Short.valueOf$H(oldValue), Short.valueOf$H(newValue)); +}); + +Clazz_newMeth(C$, 'firePropertyChange$S$J$J', function (propertyName, oldValue, newValue) { +if (this.changeSupport == null || oldValue == newValue ) { +return; +}this.firePropertyChange$S$O$O(propertyName, Long.valueOf$J(oldValue), Long.valueOf$J(newValue)); +}); + +Clazz_newMeth(C$, 'firePropertyChange$S$F$F', function (propertyName, oldValue, newValue) { +if (this.changeSupport == null || oldValue == newValue ) { +return; +}this.firePropertyChange$S$O$O(propertyName, Float.valueOf$F(oldValue), Float.valueOf$F(newValue)); +}); + +Clazz_newMeth(C$, 'firePropertyChange$S$D$D', function (propertyName, oldValue, newValue) { +if (this.changeSupport == null || oldValue == newValue ) { +return; +}this.firePropertyChange$S$O$O(propertyName, Double.valueOf$D(oldValue), Double.valueOf$D(newValue)); +}); + +Clazz_newMeth(C$, 'setComponentOrientation$java_awt_ComponentOrientation', function (o) { +var oldValue=this.componentOrientation; +this.componentOrientation=o; +this.firePropertyChange$S$O$O("componentOrientation", oldValue, o); +this.invalidateIfValid$(); +}); + +Clazz_newMeth(C$, 'getComponentOrientation$', function () { +return this.componentOrientation; +}); + +Clazz_newMeth(C$, 'applyComponentOrientation$java_awt_ComponentOrientation', function (orientation) { +this.applyCompOrientComp$java_awt_ComponentOrientation(orientation); +}); + +Clazz_newMeth(C$, 'applyCompOrientComp$java_awt_ComponentOrientation', function (orientation) { +if (orientation == null ) { +throw Clazz_new_(Clazz_load('NullPointerException')); +}this.setComponentOrientation$java_awt_ComponentOrientation(orientation); +}); + +Clazz_newMeth(C$, 'canBeFocusOwner$', function () { +if (this.isEnabled$() && this.isDisplayable$() && this.isVisible$() && this.isFocusable$() ) { +return true; +}return false; +}); + +Clazz_newMeth(C$, 'canBeFocusOwnerRecursively$', function () { +if (!this.canBeFocusOwner$()) { +return false; +}if (this.parent != null ) { +return this.parent.canContainFocusOwner$java_awt_Component(this); +}return true; +}); + +Clazz_newMeth(C$, 'relocateComponent$', function () { +}); + +Clazz_newMeth(C$, 'getContainingWindow$', function () { +return $I$(37).getContainingWindow$java_awt_Component(this); +}); + +Clazz_newMeth(C$, 'isInstanceOf$O$S', function (obj, className) { +if (obj == null ) return false; +if (className == null ) return false; +var cls=obj.getClass$(); +while (cls != null ){ +if (cls.getName$().equals$O(className)) { +return true; +}cls=cls.getSuperclass$(); +} +return false; +}, 1); + +Clazz_newMeth(C$, 'areBoundsValid$', function () { +var cont=this.getContainer$(); +return cont == null || cont.isValid$() || cont.getLayout$() == null ; +}); + +Clazz_newMeth(C$, 'getLocationOnWindow$', function () { +var curLocation=this.getLocation$(); +for (var parent=this.getContainer$(); parent != null && !parent.isWindowOrJSApplet$() ; parent=parent.getContainer$()) { +curLocation.x+=parent.getX$(); +curLocation.y+=parent.getY$(); +} +return curLocation; +}); + +Clazz_newMeth(C$, 'getSiblingIndexAbove$', function () { +var parent=this.getContainer$(); +if (parent == null ) { +return -1; +}var nextAbove=parent.getComponentZOrder$java_awt_Component(this) - 1; +return nextAbove < 0 ? -1 : nextAbove; +}); + +Clazz_newMeth(C$, 'getSiblingIndexBelow$', function () { +var parent=this.getContainer$(); +if (parent == null ) { +return -1; +}var nextBelow=parent.getComponentZOrder$java_awt_Component(this) + 1; +return nextBelow >= parent.getComponentCount$() ? -1 : nextBelow; +}); + +Clazz_newMeth(C$, 'mixOnShowing$', function () { +}); + +Clazz_newMeth(C$, 'mixOnHiding$Z', function (isLightweight) { +}); + +Clazz_newMeth(C$, 'mixOnReshaping$', function () { +$I$(5).taintUI$java_awt_Component(this); +}); + +Clazz_newMeth(C$, 'mixOnZOrderChanging$I$I', function (oldZorder, newZorder) { +}); + +Clazz_newMeth(C$, 'mixOnValidating$', function () { +}); + +Clazz_newMeth(C$, 'doesClassImplement$Class$S', function (cls, interfaceName) { +if (cls == null ) return false; +for (var c, $c = 0, $$c = cls.getInterfaces$(); $c<$$c.length&&((c=($$c[$c])),1);$c++) { +if (c.getName$().equals$O(interfaceName)) { +return true; +}} +return C$.doesClassImplement$Class$S(cls.getSuperclass$(), interfaceName); +}, 1); + +Clazz_newMeth(C$, 'doesImplement$O$S', function (obj, interfaceName) { +if (obj == null ) return false; +if (interfaceName == null ) return false; +return C$.doesClassImplement$Class$S(obj.getClass$(), interfaceName); +}, 1); +var $b$ = new Int8Array(1); +; +(function(){var C$=Clazz_newClass(P$.Component, "AWTTreeLock", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.Component, "BaselineResizeBehavior", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'Enum'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +$vals=Clazz_array(C$,[0]); +Clazz_newEnumConst($vals, C$.c$, "CONSTANT_ASCENT", 0, []); +Clazz_newEnumConst($vals, C$.c$, "CONSTANT_DESCENT", 1, []); +Clazz_newEnumConst($vals, C$.c$, "CENTER_OFFSET", 2, []); +Clazz_newEnumConst($vals, C$.c$, "OTHER", 3, []); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$); +var $vals=[]; +Clazz_newMeth(C$, 'values$', function() { return $vals }, 1); +Clazz_newMeth(C$, 'valueOf$S', function(name) { for (var val in $vals){ if ($vals[val].name == name) return $vals[val]} return null }, 1); +})() +; +(function(){var C$=Clazz_newClass(P$.Component, "DummyRequestFocusController", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, null, 'sun.awt.RequestFocusController'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, ['acceptRequestFocus$java_awt_Component$java_awt_Component$Z$Z$sun_awt_CausedFocusEvent_Cause','acceptRequestFocus$'], function (from, to, temporary, focusedWindowChangeAllowed, cause) { +return true; +}); + +Clazz_newMeth(C$); +})() +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:13 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt"),I$=[[0,'java.util.Locale']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "ComponentOrientation"); +C$.LEFT_TO_RIGHT=null; +C$.RIGHT_TO_LEFT=null; +C$.UNKNOWN=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.LEFT_TO_RIGHT=Clazz_new_(C$.c$$I,[6]); +C$.RIGHT_TO_LEFT=Clazz_new_(C$.c$$I,[2]); +C$.UNKNOWN=Clazz_new_(C$.c$$I,[7]); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.orientation=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'isHorizontal$', function () { +return (this.orientation & 2) != 0; +}); + +Clazz_newMeth(C$, 'isLeftToRight$', function () { +return (this.orientation & 4) != 0; +}); + +Clazz_newMeth(C$, 'getOrientation$java_util_Locale', function (locale) { +var lang=locale.getLanguage$(); +if ("iw".equals$O(lang) || "ar".equals$O(lang) || "fa".equals$O(lang) || "ur".equals$O(lang) ) { +return C$.RIGHT_TO_LEFT; +} else { +return C$.LEFT_TO_RIGHT; +}}, 1); + +Clazz_newMeth(C$, 'getOrientation$java_util_ResourceBundle', function (bdl) { +var result=null; +try { +result=bdl.getObject$S("Orientation"); +} catch (e) { +if (Clazz_exceptionOf(e,"Exception")){ +} else { +throw e; +} +} +if (result == null ) { +result=C$.getOrientation$java_util_Locale(bdl.getLocale$()); +}if (result == null ) { +result=C$.getOrientation$java_util_Locale($I$(1).getDefault$()); +}return result; +}, 1); + +Clazz_newMeth(C$, 'c$$I', function (value) { +C$.$init$.apply(this); +this.orientation=value; +}, 1); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:13 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt"),p$1={},I$=[[0,'java.util.ArrayList']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "ContainerOrderFocusTraversalPolicy", null, 'java.awt.FocusTraversalPolicy', 'java.io.Serializable'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.FORWARD_TRAVERSAL=0; +this.BACKWARD_TRAVERSAL=0; +this.implicitDownCycleTraversal=false; +this.cachedRoot=null; +this.cachedCycle=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.FORWARD_TRAVERSAL=0; +this.BACKWARD_TRAVERSAL=1; +this.implicitDownCycleTraversal=true; +}, 1); + +Clazz_newMeth(C$, 'getFocusTraversalCycle$java_awt_Container', function (aContainer) { +var cycle=Clazz_new_($I$(1)); +p$1.enumerateCycle$java_awt_Container$java_util_List.apply(this, [aContainer, cycle]); +return cycle; +}, p$1); + +Clazz_newMeth(C$, 'getComponentIndex$java_util_List$java_awt_Component', function (cycle, aComponent) { +return cycle.indexOf$O(aComponent); +}, p$1); + +Clazz_newMeth(C$, 'enumerateCycle$java_awt_Container$java_util_List', function (container, cycle) { +if (!(container.isVisible$() && container.isDisplayable$() )) { +return; +}cycle.add$TE(container); +var components=container.getChildArray$(); +for (var i=0, n=container.getComponentCount$(); i < n; i++) { +var comp=components[i]; +if (Clazz_instanceOf(comp, "java.awt.Container")) { +var cont=comp; +if (!cont.isFocusCycleRoot$() && !cont.isFocusTraversalPolicyProvider$() ) { +p$1.enumerateCycle$java_awt_Container$java_util_List.apply(this, [cont, cycle]); +continue; +}}cycle.add$TE(comp); +} +}, p$1); + +Clazz_newMeth(C$, 'getTopmostProvider$java_awt_Container$java_awt_Component', function (focusCycleRoot, aComponent) { +var aCont=aComponent.getParent$(); +var ftp=null; +while (aCont !== focusCycleRoot && aCont != null ){ +if (aCont.isFocusTraversalPolicyProvider$()) { +ftp=aCont; +}aCont=aCont.getParent$(); +} +if (aCont == null ) { +return null; +}return ftp; +}, p$1); + +Clazz_newMeth(C$, 'getComponentDownCycle$java_awt_Component$I', function (comp, traversalDirection) { +var retComp=null; +if (Clazz_instanceOf(comp, "java.awt.Container")) { +var cont=comp; +if (cont.isFocusCycleRoot$()) { +if (this.getImplicitDownCycleTraversal$()) { +retComp=cont.getFocusTraversalPolicy$().getDefaultComponent$java_awt_Container(cont); +} else { +return null; +}} else if (cont.isFocusTraversalPolicyProvider$()) { +retComp=(traversalDirection == 0 ? cont.getFocusTraversalPolicy$().getDefaultComponent$java_awt_Container(cont) : cont.getFocusTraversalPolicy$().getLastComponent$java_awt_Container(cont)); +}}return retComp; +}, p$1); + +Clazz_newMeth(C$, 'getComponentAfter$java_awt_Container$java_awt_Component', function (aContainer, aComponent) { +if (aContainer == null || aComponent == null ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["aContainer and aComponent cannot be null"]); +}if (!aContainer.isFocusTraversalPolicyProvider$() && !aContainer.isFocusCycleRoot$() ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["aContainer should be focus cycle root or focus traversal policy provider"]); +} else if (aContainer.isFocusCycleRoot$() && !aComponent.isFocusCycleRoot$java_awt_Container(aContainer) ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["aContainer is not a focus cycle root of aComponent"]); +}if (!(aContainer.isVisible$() && aContainer.isDisplayable$() )) { +return null; +}var comp=p$1.getComponentDownCycle$java_awt_Component$I.apply(this, [aComponent, 0]); +if (comp != null ) { +return comp; +}var provider=p$1.getTopmostProvider$java_awt_Container$java_awt_Component.apply(this, [aContainer, aComponent]); +if (provider != null ) { +var policy=provider.getFocusTraversalPolicy$(); +var afterComp=policy.getComponentAfter$java_awt_Container$java_awt_Component(provider, aComponent); +if (afterComp != null ) { +return afterComp; +}aComponent=provider; +}var cycle=p$1.getFocusTraversalCycle$java_awt_Container.apply(this, [aContainer]); +var index=p$1.getComponentIndex$java_util_List$java_awt_Component.apply(this, [cycle, aComponent]); +if (index < 0) { +return this.getFirstComponent$java_awt_Container(aContainer); +}for (index++; index < cycle.size$(); index++) { +comp=cycle.get$I(index); +if (this.accept$java_awt_Component(comp)) { +return comp; +} else if ((comp=p$1.getComponentDownCycle$java_awt_Component$I.apply(this, [comp, 0])) != null ) { +return comp; +}} +if (aContainer.isFocusCycleRoot$()) { +this.cachedRoot=aContainer; +this.cachedCycle=cycle; +comp=this.getFirstComponent$java_awt_Container(aContainer); +this.cachedRoot=null; +this.cachedCycle=null; +return comp; +}return null; +}); + +Clazz_newMeth(C$, 'getComponentBefore$java_awt_Container$java_awt_Component', function (aContainer, aComponent) { +if (aContainer == null || aComponent == null ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["aContainer and aComponent cannot be null"]); +}if (!aContainer.isFocusTraversalPolicyProvider$() && !aContainer.isFocusCycleRoot$() ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["aContainer should be focus cycle root or focus traversal policy provider"]); +} else if (aContainer.isFocusCycleRoot$() && !aComponent.isFocusCycleRoot$java_awt_Container(aContainer) ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["aContainer is not a focus cycle root of aComponent"]); +}/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(aContainer.getTreeLock$()); +{ +if (!(aContainer.isVisible$() && aContainer.isDisplayable$() )) { +return null; +}var provider=p$1.getTopmostProvider$java_awt_Container$java_awt_Component.apply(this, [aContainer, aComponent]); +if (provider != null ) { +var policy=provider.getFocusTraversalPolicy$(); +var beforeComp=policy.getComponentBefore$java_awt_Container$java_awt_Component(provider, aComponent); +if (beforeComp != null ) { +return beforeComp; +}aComponent=provider; +if (this.accept$java_awt_Component(aComponent)) { +return aComponent; +}}var cycle=p$1.getFocusTraversalCycle$java_awt_Container.apply(this, [aContainer]); +var index=p$1.getComponentIndex$java_util_List$java_awt_Component.apply(this, [cycle, aComponent]); +if (index < 0) { +return this.getLastComponent$java_awt_Container(aContainer); +}var comp=null; +var tryComp=null; +for (index--; index >= 0; index--) { +comp=cycle.get$I(index); +if (comp !== aContainer && (tryComp=p$1.getComponentDownCycle$java_awt_Component$I.apply(this, [comp, 1])) != null ) { +return tryComp; +} else if (this.accept$java_awt_Component(comp)) { +return comp; +}} +if (aContainer.isFocusCycleRoot$()) { +this.cachedRoot=aContainer; +this.cachedCycle=cycle; +comp=this.getLastComponent$java_awt_Container(aContainer); +this.cachedRoot=null; +this.cachedCycle=null; +return comp; +}}return null; +}); + +Clazz_newMeth(C$, 'getFirstComponent$java_awt_Container', function (aContainer) { +var cycle; +if (aContainer == null ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["aContainer cannot be null"]); +}if (!(aContainer.isVisible$() && aContainer.isDisplayable$() )) { +return null; +}if (this.cachedRoot === aContainer ) { +cycle=this.cachedCycle; +} else { +cycle=p$1.getFocusTraversalCycle$java_awt_Container.apply(this, [aContainer]); +}if (cycle.size$() == 0) { +return null; +}for (var comp, $comp = cycle.iterator$(); $comp.hasNext$()&&((comp=($comp.next$())),1);) { +if (comp === aContainer ) continue; +if (this.accept$java_awt_Component(comp)) { +return comp; +} else if (comp !== aContainer && (comp=p$1.getComponentDownCycle$java_awt_Component$I.apply(this, [comp, 0])) != null ) { +return comp; +}} +return null; +}); + +Clazz_newMeth(C$, 'getLastComponent$java_awt_Container', function (aContainer) { +var cycle; +if (aContainer == null ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["aContainer cannot be null"]); +}/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(aContainer.getTreeLock$()); +{ +if (!(aContainer.isVisible$() && aContainer.isDisplayable$() )) { +return null; +}if (this.cachedRoot === aContainer ) { +cycle=this.cachedCycle; +} else { +cycle=p$1.getFocusTraversalCycle$java_awt_Container.apply(this, [aContainer]); +}if (cycle.size$() == 0) { +return null; +}for (var i=cycle.size$() - 1; i >= 0; i--) { +var comp=cycle.get$I(i); +if (this.accept$java_awt_Component(comp)) { +return comp; +} else if (Clazz_instanceOf(comp, "java.awt.Container") && comp !== aContainer ) { +var cont=comp; +if (cont.isFocusTraversalPolicyProvider$()) { +return cont.getFocusTraversalPolicy$().getLastComponent$java_awt_Container(cont); +}}} +}return null; +}); + +Clazz_newMeth(C$, 'getDefaultComponent$java_awt_Container', function (aContainer) { +return this.getFirstComponent$java_awt_Container(aContainer); +}); + +Clazz_newMeth(C$, 'setImplicitDownCycleTraversal$Z', function (implicitDownCycleTraversal) { +this.implicitDownCycleTraversal=implicitDownCycleTraversal; +}); + +Clazz_newMeth(C$, 'getImplicitDownCycleTraversal$', function () { +return this.implicitDownCycleTraversal; +}); + +Clazz_newMeth(C$, 'accept$java_awt_Component', function (aComponent) { +if (!aComponent.canBeFocusOwner$()) { +return false; +}if (!aComponent.isWindowOrJSApplet$()) { +for (var enableTest=aComponent.getParent$(); enableTest != null ; enableTest=enableTest.getParent$()) { +if (!(enableTest.isEnabled$() || enableTest.isLightweight$() )) { +return false; +}if (enableTest.isWindowOrJSApplet$()) { +break; +}} +}return true; +}); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:13 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt"),p$1={},p$2={},I$=[[0,'java.awt.Component','java.awt.Insets','javajs.util.Lst','java.awt.Toolkit','java.awt.event.ContainerEvent','java.awt.Dimension',['java.awt.GraphicsCallback','.PaintCallback'],['java.awt.GraphicsCallback','.PaintAllCallback'],['java.awt.GraphicsCallback','.PaintHeavyweightComponentsCallback'],'java.awt.AWTEventMulticaster','java.awt.event.ContainerListener',['java.awt.Container','.MouseEventTargetFilter'],'java.awt.LightweightDispatcher','java.awt.KeyboardFocusManager','swingjs.JSMouse','java.awt.event.MouseEvent','java.awt.event.MouseWheelEvent']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "Container", function(){ +Clazz_newInstance(this, arguments,0,C$); +}, 'java.awt.JSComponent'); +C$.EMPTY_ARRAY=null; +C$.NULL_INSETS=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.EMPTY_ARRAY=Clazz_array($I$(1), [0]); +C$.NULL_INSETS=Clazz_new_($I$(2).c$$I$I$I$I,[0, 0, 0, 0]); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.component=null; +this.秘childArray=null; +this.秘childTainted=false; +this.layoutMgr=null; +this.dispatcher=null; +this.focusTraversalPolicy=null; +this.focusCycleRoot=false; +this.focusTraversalPolicyProvider=false; +this.containerListener=null; +this.listeningChildren=0; +this.listeningBoundsChildren=0; +this.descendantsCount=0; +this.preserveBackgroundColor=null; +this.numOfHWComponents=0; +this.numOfLWComponents=0; +this.modalComp=null; +this.modalAppContext=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.focusCycleRoot=false; +this.preserveBackgroundColor=null; +this.numOfHWComponents=0; +this.numOfLWComponents=0; +}, 1); + +Clazz_newMeth(C$, 'getChildArray$', function () { +var n=this.component.size$(); +if (n == 0) return C$.EMPTY_ARRAY; +if (this.秘childArray != null && !this.秘childTainted ) return this.秘childArray; +this.秘childTainted=false; +return this.component.toArray$TTA(this.秘childArray != null && this.秘childArray.length > n ? this.秘childArray : (this.秘childArray=Clazz_array($I$(1), [n * 2]))); +}); + +Clazz_newMeth(C$, 'c$', function () { +Clazz_super_(C$, this,1); +this.component=Clazz_new_($I$(3)); +this.秘paintClass=this.秘updateClass=C$ ||null; +}, 1); + +Clazz_newMeth(C$, 'initializeFocusTraversalKeys$', function () { +}); + +Clazz_newMeth(C$, 'getComponentCount$', function () { +return this.countComponents$(); +}); + +Clazz_newMeth(C$, 'countComponents$', function () { +return this.component.size$(); +}); + +Clazz_newMeth(C$, 'getComponent$I', function (n) { +if ((n < 0) || (n >= this.component.size$()) ) { +throw Clazz_new_(Clazz_load('ArrayIndexOutOfBoundsException').c$$S,["No such child: " + n]); +}return this.component.get$I(n); +}); + +Clazz_newMeth(C$, 'getComponents$', function () { +return this.getComponents_NoClientCode$(); +}); + +Clazz_newMeth(C$, 'getComponents_NoClientCode$', function () { +return this.component.toArray$TTA(C$.EMPTY_ARRAY); +}); + +Clazz_newMeth(C$, 'getInsets$', function () { +return (Clazz_instanceOf(this.peer, "java.awt.peer.ContainerPeer") ? this.秘getInsetsC$() : C$.NULL_INSETS); +}); + +Clazz_newMeth(C$, '秘getInsetsC$', function () { +var i=(this.peer == null ? null : (this.peer).getInsets$()); +return (i == null ? C$.NULL_INSETS : i); +}); + +Clazz_newMeth(C$, 'insets$', function () { +return this.getInsets$(); +}); + +Clazz_newMeth(C$, 'add$java_awt_Component', function (comp) { +this.addImpl$java_awt_Component$O$I(comp, null, -1); +return comp; +}); + +Clazz_newMeth(C$, 'add$S$java_awt_Component', function (name, comp) { +this.addImpl$java_awt_Component$O$I(comp, name, -1); +return comp; +}); + +Clazz_newMeth(C$, 'add$java_awt_Component$I', function (comp, index) { +this.addImpl$java_awt_Component$O$I(comp, null, index); +return comp; +}); + +Clazz_newMeth(C$, 'checkAddToSelf$java_awt_Component', function (comp) { +if (Clazz_instanceOf(comp, "java.awt.Container")) { +for (var cn=this; cn != null ; cn=cn.parent) { +if (cn === comp ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["adding container\'s parent to itself"]); +}} +}}, p$1); + +Clazz_newMeth(C$, 'removeDelicately$java_awt_Component$java_awt_Container$I', function (comp, newParent, newIndex) { +var index=this.getComponentZOrder$java_awt_Component(comp); +var needRemoveNotify=C$.isRemoveNotifyNeeded$java_awt_Component$java_awt_Container$java_awt_Container(comp, this, newParent); +if (needRemoveNotify) { +comp.removeNotify$(); +}if (newParent !== this ) { +if (this.layoutMgr != null ) { +this.layoutMgr.removeLayoutComponent$java_awt_Component(comp); +}this.adjustListeningChildren$J$I(32768, -comp.numListening$J(32768)); +this.adjustListeningChildren$J$I(65536, -comp.numListening$J(65536)); +this.adjustDescendants$I(-(comp.countHierarchyMembers$())); +comp.parent=null; +this.component.removeItemAt$I(index); +this.秘childTainted=true; +this.invalidateIfValid$(); +} else { +this.component.removeItemAt$I(index); +this.component.add$I$TE(newIndex, comp); +this.秘childTainted=true; +}if (comp.parent == null ) { +if (this.containerListener != null || (this.eventMask & 2) != 0 || $I$(4).enabledOnToolkit$J(2) ) { +var e=Clazz_new_($I$(5).c$$java_awt_Component$I$java_awt_Component,[this, 301, comp]); +this.dispatchEvent$java_awt_AWTEvent(e); +}comp.createHierarchyEvents$I$java_awt_Component$java_awt_Container$J$Z(1400, comp, this, 1, $I$(4).enabledOnToolkit$J(32768)); +if (this.layoutMgr == null && this.isDisplayable$() && this.isVisible$() ) { +this.updateCursorImmediately$(); +}}return needRemoveNotify; +}, p$1); + +Clazz_newMeth(C$, 'canContainFocusOwner$java_awt_Component', function (focusOwnerCandidate) { +if (!(this.isEnabled$() && this.isDisplayable$() && this.isVisible$() && this.isFocusable$() )) { +return false; +}if (this.isFocusCycleRoot$()) { +var policy=this.getFocusTraversalPolicy$(); +if (Clazz_instanceOf(policy, "java.awt.DefaultFocusTraversalPolicy")) { +if (!(policy).accept$java_awt_Component(focusOwnerCandidate)) { +return false; +}}}/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$()); +{ +if (this.parent != null ) { +return this.parent.canContainFocusOwner$java_awt_Component(focusOwnerCandidate); +}}return true; +}); + +Clazz_newMeth(C$, 'hasHeavyweightDescendants$', function () { +return this.numOfHWComponents > 0; +}); + +Clazz_newMeth(C$, 'hasLightweightDescendants$', function () { +return this.numOfLWComponents > 0; +}); + +Clazz_newMeth(C$, 'getHeavyweightContainer$', function () { +if (this.peer != null && !(Clazz_instanceOf(this.peer, "java.awt.peer.LightweightPeer")) ) { +return this; +} else { +return this.getNativeContainer$(); +}}); + +Clazz_newMeth(C$, 'isRemoveNotifyNeeded$java_awt_Component$java_awt_Container$java_awt_Container', function (comp, oldContainer, newContainer) { +return false; +}, 1); + +Clazz_newMeth(C$, 'setComponentZOrder$java_awt_Component$I', function (comp, index) { +/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$()); +{ +var curParent=comp.parent; +var oldZindex=this.getComponentZOrder$java_awt_Component(comp); +if (curParent === this && index == oldZindex ) { +return; +}var peerRecreated=(curParent != null ) ? p$1.removeDelicately$java_awt_Component$java_awt_Container$I.apply(curParent, [comp, this, index]) : false; +p$1.addDelicately$java_awt_Component$java_awt_Container$I.apply(this, [comp, curParent, index]); +if (!peerRecreated && oldZindex != -1 ) { +comp.mixOnZOrderChanging$I$I(oldZindex, index); +}this.秘updateUIZOrder$(); +}}); + +Clazz_newMeth(C$, 'reparentTraverse$java_awt_peer_ContainerPeer$java_awt_Container', function (parentPeer, child) { +p$1.checkTreeLock.apply(this, []); +for (var i=0; i < child.getComponentCount$(); i++) { +var comp=child.getComponent$I(i); +if (comp.isLightweight$()) { +if (Clazz_instanceOf(comp, "java.awt.Container")) { +p$1.reparentTraverse$java_awt_peer_ContainerPeer$java_awt_Container.apply(this, [parentPeer, comp]); +}} else { +comp.getPeer$().reparent$java_awt_peer_ContainerPeer(parentPeer); +}} +}, p$1); + +Clazz_newMeth(C$, 'reparentChild$java_awt_Component', function (comp) { +if (comp == null ) { +return; +}if (comp.isLightweight$()) { +if (Clazz_instanceOf(comp, "java.awt.Container")) { +p$1.reparentTraverse$java_awt_peer_ContainerPeer$java_awt_Container.apply(this, [this.getPeer$(), comp]); +}} else { +comp.getPeer$().reparent$java_awt_peer_ContainerPeer(this.getPeer$()); +}}, p$1); + +Clazz_newMeth(C$, 'addDelicately$java_awt_Component$java_awt_Container$I', function (comp, curParent, index) { +p$1.checkTreeLock.apply(this, []); +if (curParent === this ) { +if (index < this.component.size$()) { +this.component.set$I$TE(index, comp); +this.秘childTainted=true; +}} else { +if (index == -1) { +this.component.add$TE(comp); +} else { +this.component.add$I$TE(index, comp); +}this.秘childTainted=true; +comp.parent=this; +this.adjustListeningChildren$J$I(32768, comp.numListening$J(32768)); +this.adjustListeningChildren$J$I(65536, comp.numListening$J(65536)); +this.adjustDescendants$I(comp.countHierarchyMembers$()); +}this.invalidateIfValid$(); +if (this.peer != null ) { +if (comp.peer == null ) { +comp.addNotify$(); +} else { +var newNativeContainer=this.getHeavyweightContainer$(); +var oldNativeContainer=curParent.getHeavyweightContainer$(); +if (oldNativeContainer !== newNativeContainer ) { +p$1.reparentChild$java_awt_Component.apply(newNativeContainer, [comp]); +}if (!comp.isLightweight$() && this.isLightweight$() ) { +comp.relocateComponent$(); +}}}if (curParent !== this ) { +if (this.layoutMgr != null ) { +if (Clazz_instanceOf(this.layoutMgr, "java.awt.LayoutManager2")) { +(this.layoutMgr).addLayoutComponent$java_awt_Component$O(comp, null); +} else { +this.layoutMgr.addLayoutComponent$S$java_awt_Component(null, comp); +}}if (this.containerListener != null || (this.eventMask & 2) != 0 || $I$(4).enabledOnToolkit$J(2) ) { +var e=Clazz_new_($I$(5).c$$java_awt_Component$I$java_awt_Component,[this, 300, comp]); +this.dispatchEvent$java_awt_AWTEvent(e); +}comp.createHierarchyEvents$I$java_awt_Component$java_awt_Container$J$Z(1400, comp, this, 1, $I$(4).enabledOnToolkit$J(32768)); +} else { +comp.createHierarchyEvents$I$java_awt_Component$java_awt_Container$J$Z(1400, comp, this, 1400, $I$(4).enabledOnToolkit$J(32768)); +}if (this.peer != null && this.layoutMgr == null && this.isVisible$() ) { +this.updateCursorImmediately$(); +}}, p$1); + +Clazz_newMeth(C$, 'checkTreeLock', function () { +}, p$1); + +Clazz_newMeth(C$, 'getComponentZOrder$java_awt_Component', function (comp) { +if (comp == null ) { +return -1; +}/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$()); +{ +if (comp.parent !== this ) { +return -1; +}return this.component.indexOf$O(comp); +}}); + +Clazz_newMeth(C$, 'add$java_awt_Component$O', function (comp, constraints) { +this.addImpl$java_awt_Component$O$I(comp, constraints, -1); +}); + +Clazz_newMeth(C$, 'add$java_awt_Component$O$I', function (comp, constraints, index) { +this.addImpl$java_awt_Component$O$I(comp, constraints, index); +return comp; +}); + +Clazz_newMeth(C$, 'addImpl$java_awt_Component$O$I', function (comp, constraints, index) { +this.addImplCont$java_awt_Component$O$I(comp, constraints, index); +}); + +Clazz_newMeth(C$, 'addImplCont$java_awt_Component$O$I', function (comp, constraints, index) { +/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$()); +{ +if (comp.getWrap$ && !this.isWrapper$ ||false) { +comp=(comp).秘getWrap$(); +comp.background=comp.foreground=null; +}if (index > this.component.size$() || (index < 0 && index != -1 ) ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["illegal component position"]); +}p$1.checkAddToSelf$java_awt_Component.apply(this, [comp]); +if (comp.isJ2SWindowButNotJInternalFrame$()) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["adding a window to a container"]); +}if (comp.parent != null ) { +comp.parent.remove$java_awt_Component(comp); +if (index > this.component.size$()) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["illegal component position"]); +}}if (index == -1) { +this.component.add$TE(comp); +} else { +this.component.add$I$TE(index, comp); +}this.秘childTainted=true; +comp.parent=this; +this.adjustListeningChildren$J$I(32768, comp.numListening$J(32768)); +this.adjustListeningChildren$J$I(65536, comp.numListening$J(65536)); +this.adjustDescendants$I(comp.countHierarchyMembers$()); +this.invalidateIfValid$(); +if (this.peer != null ) { +comp.addNotify$(); +}if (this.layoutMgr != null ) { +if (Clazz_instanceOf(this.layoutMgr, "java.awt.LayoutManager2")) { +(this.layoutMgr).addLayoutComponent$java_awt_Component$O(comp, constraints); +} else if (Clazz_instanceOf(constraints, "java.lang.String")) { +this.layoutMgr.addLayoutComponent$S$java_awt_Component(constraints, comp); +}}if (this.containerListener != null || (this.eventMask & 2) != 0 || $I$(4).enabledOnToolkit$J(2) ) { +var e=Clazz_new_($I$(5).c$$java_awt_Component$I$java_awt_Component,[this, 300, comp]); +this.dispatchEvent$java_awt_AWTEvent(e); +}comp.createHierarchyEvents$I$java_awt_Component$java_awt_Container$J$Z(1400, comp, this, 1, $I$(4).enabledOnToolkit$J(32768)); +if (this.peer != null && this.layoutMgr == null && this.isVisible$() ) { +this.updateCursorImmediately$(); +}}}); + +Clazz_newMeth(C$, 'checkGD$S', function (stringID) { +}); + +Clazz_newMeth(C$, 'remove$I', function (index) { +/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$()); +{ +if (index < 0 || index >= this.component.size$() ) { +throw Clazz_new_(Clazz_load('ArrayIndexOutOfBoundsException').c$$I,[index]); +}var comp=this.component.get$I(index); +if (this.peer != null ) { +comp.removeNotify$(); +}if (this.layoutMgr != null ) { +this.layoutMgr.removeLayoutComponent$java_awt_Component(comp); +}this.adjustListeningChildren$J$I(32768, -comp.numListening$J(32768)); +this.adjustListeningChildren$J$I(65536, -comp.numListening$J(65536)); +this.adjustDescendants$I(-(comp.countHierarchyMembers$())); +comp.parent=null; +this.component.removeItemAt$I(index); +this.秘childTainted=true; +this.invalidateIfValid$(); +if (this.containerListener != null || (this.eventMask & 2) != 0 || $I$(4).enabledOnToolkit$J(2) ) { +var e=Clazz_new_($I$(5).c$$java_awt_Component$I$java_awt_Component,[this, 301, comp]); +this.dispatchEvent$java_awt_AWTEvent(e); +}comp.createHierarchyEvents$I$java_awt_Component$java_awt_Container$J$Z(1400, comp, this, 1, $I$(4).enabledOnToolkit$J(32768)); +if (this.peer != null && this.layoutMgr == null && this.isVisible$() ) { +this.updateCursorImmediately$(); +}}}); + +Clazz_newMeth(C$, 'remove$java_awt_Component', function (comp) { +/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$()); +{ +if (comp.getWrap$ && !this.isWrapper$ ||false) { +comp=(comp).秘getWrap$(); +}if (comp.parent === this ) { +var index=this.component.indexOf$O(comp); +if (index >= 0) { +this.remove$I(index); +}}}}); + +Clazz_newMeth(C$, 'removeAll$', function () { +/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$()); +{ +this.adjustListeningChildren$J$I(32768, -this.listeningChildren); +this.adjustListeningChildren$J$I(65536, -this.listeningBoundsChildren); +this.adjustDescendants$I(-this.descendantsCount); +while (!this.component.isEmpty$()){ +var comp=this.component.removeItemAt$I(this.component.size$() - 1); +if (this.peer != null ) { +comp.removeNotify$(); +}if (this.layoutMgr != null ) { +this.layoutMgr.removeLayoutComponent$java_awt_Component(comp); +}comp.parent=null; +if (this.containerListener != null || (this.eventMask & 2) != 0 || $I$(4).enabledOnToolkit$J(2) ) { +var e=Clazz_new_($I$(5).c$$java_awt_Component$I$java_awt_Component,[this, 301, comp]); +this.dispatchEvent$java_awt_AWTEvent(e); +}comp.createHierarchyEvents$I$java_awt_Component$java_awt_Container$J$Z(1400, comp, this, 1, $I$(4).enabledOnToolkit$J(32768)); +} +if (this.peer != null && this.layoutMgr == null && this.isVisible$() ) { +this.updateCursorImmediately$(); +}this.invalidateIfValid$(); +}C$.superclazz.prototype.removeAll$.apply(this, []); +}); + +Clazz_newMeth(C$, 'numListening$J', function (mask) { +var superListening=this.numListeningMask$J(mask); +if (mask == 32768) { +return this.listeningChildren + superListening; +} else if (mask == 65536) { +return this.listeningBoundsChildren + superListening; +} else { +return superListening; +}}); + +Clazz_newMeth(C$, 'adjustListeningChildren$J$I', function (mask, num) { +if (num == 0) return; +if ((mask & 32768) != 0) { +this.listeningChildren+=num; +}if ((mask & 65536) != 0) { +this.listeningBoundsChildren+=num; +}this.adjustListeningChildrenOnParent$J$I(mask, num); +}); + +Clazz_newMeth(C$, 'adjustDescendants$I', function (num) { +if (num == 0) return; +this.descendantsCount+=num; +this.adjustDecendantsOnParent$I(num); +}); + +Clazz_newMeth(C$, 'adjustDecendantsOnParent$I', function (num) { +if (this.parent != null ) { +this.parent.adjustDescendants$I(num); +}}); + +Clazz_newMeth(C$, 'countHierarchyMembers$', function () { +return this.descendantsCount + 1; +}); + +Clazz_newMeth(C$, 'getListenersCount$I$Z', function (id, enabledOnToolkit) { +if (enabledOnToolkit) { +return this.descendantsCount; +}switch (id) { +case 1400: +return this.listeningChildren; +case 1401: +case 1402: +return this.listeningBoundsChildren; +default: +return 0; +} +}, p$1); + +Clazz_newMeth(C$, 'createHierarchyEvents$I$java_awt_Component$java_awt_Container$J$Z', function (id, changed, changedParent, changeFlags, enabledOnToolkit) { +var listeners=p$1.getListenersCount$I$Z.apply(this, [id, enabledOnToolkit]); +for (var count=listeners, i=0; count > 0; i++) { +count-=this.component.get$I(i).createHierarchyEvents$I$java_awt_Component$java_awt_Container$J$Z(id, changed, changedParent, changeFlags, enabledOnToolkit); +} +return listeners + this.createHierEventsComp$I$java_awt_Component$java_awt_Container$J$Z(id, changed, changedParent, changeFlags, enabledOnToolkit); +}); + +Clazz_newMeth(C$, 'createChildHierarchyEvents$I$J$Z', function (id, changeFlags, enabledOnToolkit) { +if (this.component.isEmpty$()) { +return; +}var listeners=p$1.getListenersCount$I$Z.apply(this, [id, enabledOnToolkit]); +for (var count=listeners, i=0; count > 0; i++) { +count-=this.component.get$I(i).createHierarchyEvents$I$java_awt_Component$java_awt_Container$J$Z(id, this, this.parent, changeFlags, enabledOnToolkit); +} +}); + +Clazz_newMeth(C$, 'getLayout$', function () { +return this.layoutMgr; +}); + +Clazz_newMeth(C$, 'setLayout$java_awt_LayoutManager', function (mgr) { +this.layoutMgr=mgr; +this.invalidateIfValid$(); +}); + +Clazz_newMeth(C$, 'doLayout$', function () { +this.layout$(); +}); + +Clazz_newMeth(C$, 'layout$', function () { +if (this.layoutMgr != null ) this.layoutMgr.layoutContainer$java_awt_Container(this); +}); + +Clazz_newMeth(C$, 'invalidate$', function () { +var layoutMgr=this.layoutMgr; +if (Clazz_instanceOf(layoutMgr, "java.awt.LayoutManager2")) { +var lm=layoutMgr; +lm.invalidateLayout$java_awt_Container(this); +}this.invalidateComp$(); +}); + +Clazz_newMeth(C$, 'validate$', function () { +if (!this.isValid$() && this.peer != null ) { +/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$()); +{ +var n=this.component.size$(); +if (!this.isValid$() && this.peer != null && n > 0 ) { +var p=null; +if (Clazz_instanceOf(this.peer, "java.awt.peer.ContainerPeer")) p=this.peer; +if (p != null ) p.beginValidate$(); +this.validateTree$(); +if (p != null ) { +p.endValidate$(); +if (this.isVisible$()) this.updateCursorImmediately$(); +}}}}}); + +Clazz_newMeth(C$, 'repackContainer$', function () { +var newSize=this.getPreferredSize$(); +if (this.peer != null ) { +this.setClientSize$I$I(newSize.width, newSize.height); +}this.validate$(); +}); + +Clazz_newMeth(C$, 'setClientSize$I$I', function (w, h) { +/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$()); +{ +this.setBoundsOp$I(4); +this.setBounds$I$I$I$I(this.x, this.y, w, h); +}}); + +Clazz_newMeth(C$, 'validateTree$', function () { +if (!this.isValid$()) { +if (Clazz_instanceOf(this.peer, "java.awt.peer.ContainerPeer")) { +(this.peer).beginLayout$(); +}this.doLayout$(); +for (var i=0; i < this.component.size$(); i++) { +var comp=this.component.get$I(i); +if ((Clazz_instanceOf(comp, "java.awt.Container")) && !comp.isValid$() ) { +(comp).validateTree$(); +} else { +comp.validate$(); +}} +if (Clazz_instanceOf(this.peer, "java.awt.peer.ContainerPeer")) { +(this.peer).endLayout$(); +}}C$.superclazz.prototype.validate$.apply(this, []); +}); + +Clazz_newMeth(C$, 'invalidateTree$', function () { +/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$()); +{ +for (var i=0; i < this.component.size$(); i++) { +var comp=this.component.get$I(i); +if (Clazz_instanceOf(comp, "java.awt.Container")) { +(comp).invalidateTree$(); +} else { +comp.invalidateIfValid$(); +}} +this.invalidateIfValid$(); +}}); + +Clazz_newMeth(C$, 'setFont$java_awt_Font', function (f) { +var oldfont=this.getFont$(); +C$.superclazz.prototype.setFont$java_awt_Font.apply(this, [f]); +var newfont=this.getFont$(); +if (newfont !== oldfont && (oldfont == null || !oldfont.equals$O(newfont) ) ) { +this.invalidateTree$(); +}}); + +Clazz_newMeth(C$, 'getPreferredSize$', function () { +return this.preferredSize$(); +}); + +Clazz_newMeth(C$, 'preferredSize$', function () { +return this.preferredSizeContainer$(); +}); + +Clazz_newMeth(C$, 'preferredSizeContainer$', function () { +var dim=this.prefSize; +if (dim == null || !(this.isPreferredSizeSet$() || this.isValid$() ) ) { +/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$()); +{ +this.prefSize=(this.layoutMgr != null ? this.layoutMgr.preferredLayoutSize$java_awt_Container(this) : this.prefSizeComp$()); +dim=this.prefSize; +}}return (dim == null ? null : Clazz_new_($I$(6).c$$java_awt_Dimension,[dim])); +}); + +Clazz_newMeth(C$, 'getMinimumSize$', function () { +var dim=this.minSize; +if (dim == null || !(this.isMinimumSizeSet$() || this.isValid$() ) ) { +/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$()); +{ +this.minSize=(this.layoutMgr != null ) ? this.layoutMgr.minimumLayoutSize$java_awt_Container(this) : this.minimumSize$(); +dim=this.minSize; +}}if (dim != null ) { +return Clazz_new_($I$(6).c$$java_awt_Dimension,[dim]); +} else { +return dim; +}}); + +Clazz_newMeth(C$, 'getMaximumSize$', function () { +var dim=this.maxSize; +if (dim == null || !(this.isMaximumSizeSet$() || this.isValid$() ) ) { +/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$()); +{ +if (Clazz_instanceOf(this.layoutMgr, "java.awt.LayoutManager2")) { +var lm=this.layoutMgr; +this.maxSize=lm.maximumLayoutSize$java_awt_Container(this); +} else { +this.maxSize=this.getMaxSizeComp$(); +}dim=this.maxSize; +}}if (dim != null ) { +return Clazz_new_($I$(6).c$$java_awt_Dimension,[dim]); +} else { +return dim; +}}); + +Clazz_newMeth(C$, 'getAlignmentX$', function () { +var xAlign; +if (Clazz_instanceOf(this.layoutMgr, "java.awt.LayoutManager2")) { +/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$()); +{ +var lm=this.layoutMgr; +xAlign=lm.getLayoutAlignmentX$java_awt_Container(this); +}} else { +xAlign=this.getAlignmentXComp$(); +}return xAlign; +}); + +Clazz_newMeth(C$, 'getAlignmentY$', function () { +var yAlign; +if (Clazz_instanceOf(this.layoutMgr, "java.awt.LayoutManager2")) { +/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$()); +{ +var lm=this.layoutMgr; +yAlign=lm.getLayoutAlignmentY$java_awt_Container(this); +}} else { +yAlign=this.getAlignmentYComp$(); +}return yAlign; +}); + +Clazz_newMeth(C$, 'paint$java_awt_Graphics', function (g) { +this.paintContainer$java_awt_Graphics(g); +}); + +Clazz_newMeth(C$, 'paintContainer$java_awt_Graphics', function (g) { +$I$(7).getInstance$().runComponents$I$java_awt_ComponentA$java_awt_Graphics$I(this.getComponentCount$(), this.getChildArray$(), g, 2); +}); + +Clazz_newMeth(C$, 'update$java_awt_Graphics', function (g) { +this.updateContainer$java_awt_Graphics(g); +}); + +Clazz_newMeth(C$, 'updateContainer$java_awt_Graphics', function (g) { +if (this.isShowing$()) { +g.clearRect$I$I$I$I(0, 0, this.width, this.height); +this.paint$java_awt_Graphics(g); +}}); + +Clazz_newMeth(C$, 'paintComponents$java_awt_Graphics', function (g) { +if (this.isShowing$()) { +$I$(8).getInstance$().runComponents$I$java_awt_ComponentA$java_awt_Graphics$I(this.getComponentCount$(), this.getChildArray$(), g, 4); +}}); + +Clazz_newMeth(C$, 'lightweightPaint$java_awt_Graphics', function (g) { +this.lwPaintComp$java_awt_Graphics(g); +this.paintHeavyweightComponents$java_awt_Graphics(g); +}); + +Clazz_newMeth(C$, 'paintHeavyweightComponents$java_awt_Graphics', function (g) { +if (this.isShowing$()) { +$I$(9).getInstance$().runComponents$I$java_awt_ComponentA$java_awt_Graphics$I(this.getComponentCount$(), this.getChildArray$(), g, 3); +}}); + +Clazz_newMeth(C$, 'addContainerListener$java_awt_event_ContainerListener', function (l) { +if (l == null ) { +return; +}this.containerListener=$I$(10).add$java_awt_event_ContainerListener$java_awt_event_ContainerListener(this.containerListener, l); +this.newEventsOnly=true; +}); + +Clazz_newMeth(C$, 'removeContainerListener$java_awt_event_ContainerListener', function (l) { +if (l == null ) { +return; +}this.containerListener=$I$(10).remove$java_awt_event_ContainerListener$java_awt_event_ContainerListener(this.containerListener, l); +}); + +Clazz_newMeth(C$, 'getContainerListeners$', function () { +return (this.getListeners$Class(Clazz_getClass($I$(11),['componentAdded$java_awt_event_ContainerEvent','componentRemoved$java_awt_event_ContainerEvent']))); +}); + +Clazz_newMeth(C$, 'getListeners$Class', function (listenerType) { +var l=null; +if (listenerType === Clazz_getClass($I$(11),['componentAdded$java_awt_event_ContainerEvent','componentRemoved$java_awt_event_ContainerEvent']) ) { +l=this.containerListener; +} else { +return this.getListenersComp$Class(listenerType); +}return $I$(10).getListeners$java_util_EventListener$Class(l, listenerType); +}); + +Clazz_newMeth(C$, 'eventEnabled$java_awt_AWTEvent', function (e) { +var id=e.getID$(); +if (id == 300 || id == 301 ) { +if ((this.eventMask & 2) != 0 || this.containerListener != null ) { +return true; +}return false; +}return this.eventTypeEnabled$I(e.id); +}); + +Clazz_newMeth(C$, 'processEvent$java_awt_AWTEvent', function (e) { +this.processEventCont$java_awt_AWTEvent(e); +}); + +Clazz_newMeth(C$, 'processEventCont$java_awt_AWTEvent', function (e) { +if (Clazz_instanceOf(e, "java.awt.event.ContainerEvent")) { +this.processContainerEvent$java_awt_event_ContainerEvent(e); +return; +}this.processEventComp$java_awt_AWTEvent(e); +}); + +Clazz_newMeth(C$, 'processContainerEvent$java_awt_event_ContainerEvent', function (e) { +var listener=this.containerListener; +if (listener != null ) { +switch (e.getID$()) { +case 300: +listener.componentAdded$java_awt_event_ContainerEvent(e); +break; +case 301: +listener.componentRemoved$java_awt_event_ContainerEvent(e); +break; +} +}}); + +Clazz_newMeth(C$, 'dispatchEventImpl$java_awt_AWTEvent', function (e) { +if ((this.dispatcher != null ) && this.dispatcher.dispatchEvent$java_awt_AWTEvent(e) ) { +return; +}this.dispatchEventImplComp$java_awt_AWTEvent(e); +/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$()); +{ +switch (e.getID$()) { +case 101: +break; +case 100: +break; +default: +break; +} +}}); + +Clazz_newMeth(C$, 'dispatchEventToSelf$java_awt_AWTEvent', function (e) { +this.dispatchEventImplComp$java_awt_AWTEvent(e); +}); + +Clazz_newMeth(C$, 'getMouseEventTarget$I$I$Z', function (x, y, includeSelf) { +return this.getMouseEventTarget$I$I$Z$java_awt_Container_EventTargetFilter$Z(x, y, includeSelf, $I$(12).FILTER, !true); +}); + +Clazz_newMeth(C$, 'getMouseEventTarget$I$I$Z$java_awt_Container_EventTargetFilter$Z', function (x, y, includeSelf, filter, searchHeavyweights) { +var comp=null; +if (comp == null || comp === this ) { +comp=p$1.getMouseEventTargetImpl$I$I$Z$java_awt_Container_EventTargetFilter$Z$Z.apply(this, [x, y, includeSelf, filter, !true, searchHeavyweights]); +}return comp; +}); + +Clazz_newMeth(C$, 'getMouseEventTargetImpl$I$I$Z$java_awt_Container_EventTargetFilter$Z$Z', function (x, y, includeSelf, filter, searchHeavyweightChildren, searchHeavyweightDescendants) { +/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$()); +{ +for (var i=0; i < this.component.size$(); i++) { +var comp=this.component.get$I(i); +if (comp != null && comp.visible && ((!searchHeavyweightChildren && Clazz_instanceOf(comp.peer, "java.awt.peer.LightweightPeer") ) || (searchHeavyweightChildren && !(Clazz_instanceOf(comp.peer, "java.awt.peer.LightweightPeer")) ) ) && comp.contains$I$I(x - comp.x, y - comp.y) ) { +if (Clazz_instanceOf(comp, "java.awt.Container")) { +var child=comp; +var deeper=child.getMouseEventTarget$I$I$Z$java_awt_Container_EventTargetFilter$Z(x - child.x, y - child.y, includeSelf, filter, searchHeavyweightDescendants); +if (deeper != null ) { +return deeper; +}} else { +if (filter == null || filter.accept$(comp) ) { +return comp; +}}}} +var isPeerOK; +var isMouseOverMe; +isPeerOK=includeSelf; +isMouseOverMe=this.contains$I$I(x, y); +if (isMouseOverMe && isPeerOK && (filter == null || filter.accept$(this) ) ) { +return this; +}return null; +}}, p$1); + +Clazz_newMeth(C$, 'proxyEnableEvents$J', function (events) { +if (this.parent != null ) { +this.parent.proxyEnableEvents$J(events); +}if (this.dispatcher != null ) { +this.dispatcher.enableEvents$J(events); +}}); + +Clazz_newMeth(C$, 'deliverEvent$java_awt_Event', function (e) { +var comp=this.getComponentAt$I$I(e.x, e.y); +if ((comp != null ) && (comp !== this ) ) { +e.translate$I$I(-comp.x, -comp.y); +comp.deliverEvent$java_awt_Event(e); +} else { +this.postEvent$java_awt_Event(e); +}}); + +Clazz_newMeth(C$, 'getComponentAt$I$I', function (x, y) { +return this.locate$I$I(x, y); +}); + +Clazz_newMeth(C$, 'locate$I$I', function (x, y) { +if (!this.contains$I$I(x, y)) { +return null; +}/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$()); +{ +for (var i=0; i < this.component.size$(); i++) { +var comp=this.component.get$I(i); +if (comp != null && Clazz_instanceOf(comp.peer, "java.awt.peer.LightweightPeer") ) { +if (comp.contains$I$I(x - comp.x, y - comp.y)) { +return comp; +}}} +}return this; +}); + +Clazz_newMeth(C$, 'getComponentAt$java_awt_Point', function (p) { +return this.getComponentAt$I$I(p.x, p.y); +}); + +Clazz_newMeth(C$, 'getMousePosition$Z', function (allowChildren) { +return null; +}); + +Clazz_newMeth(C$, 'isSameOrAncestorOf$java_awt_Component$Z', function (comp, allowChildren) { +return this === comp || (allowChildren && p$1.isParentOf$java_awt_Component.apply(this, [comp]) ) ; +}); + +Clazz_newMeth(C$, 'findComponentAt$I$I', function (x, y) { +/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$()); +{ +return this.findComponentAt$I$I$Z(x, y, true); +}}); + +Clazz_newMeth(C$, 'findComponentAt$I$I$Z', function (x, y, ignoreEnabled) { +return null; +}); + +Clazz_newMeth(C$, 'findComponentAt$java_awt_Point', function (p) { +return this.findComponentAt$I$I(p.x, p.y); +}); + +Clazz_newMeth(C$, 'addNotify$', function () { +C$.superclazz.prototype.addNotify$.apply(this, []); +if (!(Clazz_instanceOf(this.peer, "java.awt.peer.LightweightPeer"))) { +this.setDispatcher$(); +}for (var i=0; i < this.component.size$(); i++) { +this.component.get$I(i).addNotify$(); +} +}); + +Clazz_newMeth(C$, 'setDispatcher$', function () { +if (this.dispatcher != null ) return; +this.dispatcher=Clazz_new_($I$(13).c$$java_awt_Container,[this]); +}); + +Clazz_newMeth(C$, 'removeNotify$', function () { +for (var i=this.component.size$(); --i >= 0; ) { +var comp=this.component.get$I(i); +if (comp != null ) { +comp.setAutoFocusTransferOnDisposal$Z(false); +comp.removeNotify$(); +comp.setAutoFocusTransferOnDisposal$Z(true); +}} +if (this.containsFocus$() && $I$(14).isAutoFocusTransferEnabledFor$java_awt_Component(this) ) { +if (!this.transferFocus$Z(false)) { +this.transferFocusBackward$Z(true); +}}if (this.dispatcher != null ) { +this.dispatcher.dispose$(); +this.dispatcher=null; +}this.removeNotifyComp$(); +}); + +Clazz_newMeth(C$, 'isAncestorOf$java_awt_Component', function (c) { +var p; +if (c == null || ((p=c.getParent$()) == null ) ) { +return false; +}while (p != null ){ +if (p === this ) { +return true; +}p=p.getParent$(); +} +return false; +}); + +Clazz_newMeth(C$, 'paramString$', function () { +var str=this.paramStringComp$(); +var layoutMgr=this.layoutMgr; +if (layoutMgr != null ) { +str += ",layout=" + layoutMgr.getClass$().getName$(); +}return str; +}); + +Clazz_newMeth(C$, 'setFocusTraversalKeys$I$java_util_Set', function (id, keystrokes) { +if (id < 0 || id >= 4 ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["invalid focus traversal key identifier"]); +}this.setFocusTraversalKeys_NoIDCheck$I$java_util_Set(id, keystrokes); +}); + +Clazz_newMeth(C$, 'getFocusTraversalKeys$I', function (id) { +if (id < 0 || id >= 4 ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["invalid focus traversal key identifier"]); +}return this.getFocusTraversalKeys_NoIDCheck$I(id); +}); + +Clazz_newMeth(C$, 'areFocusTraversalKeysSet$I', function (id) { +if (id < 0 || id >= 4 ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["invalid focus traversal key identifier"]); +}return (this.focusTraversalKeys != null && this.focusTraversalKeys[id] != null ); +}); + +Clazz_newMeth(C$, 'isFocusCycleRoot$java_awt_Container', function (container) { +if (this.isFocusCycleRoot$() && container === this ) { +return true; +} else { +return this.isFocusCycleRootComp$java_awt_Container(container); +}}); + +Clazz_newMeth(C$, 'findTraversalRoot', function () { +var currentFocusCycleRoot=$I$(14).getCurrentKeyboardFocusManager$().getCurrentFocusCycleRoot$(); +var root; +if (currentFocusCycleRoot === this ) { +root=this; +} else { +root=this.getFocusCycleRootAncestor$(); +if (root == null ) { +root=this; +}}if (root !== currentFocusCycleRoot ) { +$I$(14).getCurrentKeyboardFocusManager$().setGlobalCurrentFocusCycleRoot$java_awt_Container(root); +}return root; +}, p$1); + +Clazz_newMeth(C$, 'containsFocus$', function () { +var focusOwner=$I$(14).getCurrentKeyboardFocusManager$().getFocusOwner$(); +return p$1.isParentOf$java_awt_Component.apply(this, [focusOwner]); +}); + +Clazz_newMeth(C$, 'isParentOf$java_awt_Component', function (comp) { +while (comp != null && comp !== this && !comp.isWindowOrJSApplet$() ){ +comp=comp.getParent$(); +} +return (comp === this ); +}, p$1); + +Clazz_newMeth(C$, 'clearMostRecentFocusOwnerOnHide$', function () { +var reset=false; +var window=null; +/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$()); +{ +window=this.getContainingWindow$(); +if (window != null ) { +var comp=$I$(14).getMostRecentFocusOwner$java_awt_Window(window); +reset=((comp === this ) || p$1.isParentOf$java_awt_Component.apply(this, [comp]) ); +{ +var storedComp=window.getTemporaryLostComponent$(); +if (p$1.isParentOf$java_awt_Component.apply(this, [storedComp]) || storedComp === this ) { +window.setTemporaryLostComponent$java_awt_Component(null); +}}}}if (reset) { +$I$(14).setMostRecentFocusOwner$java_awt_Window$java_awt_Component(window, null); +}}); + +Clazz_newMeth(C$, 'clearCurrentFocusCycleRootOnHide$', function () { +var kfm=$I$(14).getCurrentKeyboardFocusManager$(); +var cont=kfm.getCurrentFocusCycleRoot$(); +if (cont === this || p$1.isParentOf$java_awt_Component.apply(this, [cont]) ) { +kfm.setGlobalCurrentFocusCycleRoot$java_awt_Container(null); +}}); + +Clazz_newMeth(C$, 'getTraversalRoot$', function () { +if (this.isFocusCycleRoot$()) { +return p$1.findTraversalRoot.apply(this, []); +}return C$.superclazz.prototype.getTraversalRoot$.apply(this, []); +}); + +Clazz_newMeth(C$, 'setFocusTraversalPolicy$java_awt_FocusTraversalPolicy', function (policy) { +var oldPolicy; +{ +oldPolicy=this.focusTraversalPolicy; +this.focusTraversalPolicy=policy; +}this.firePropertyChange$S$O$O("focusTraversalPolicy", oldPolicy, policy); +}); + +Clazz_newMeth(C$, 'getFocusTraversalPolicy$', function () { +if (!this.isFocusTraversalPolicyProvider$() && !this.isFocusCycleRoot$() ) { +return null; +}var policy=this.focusTraversalPolicy; +if (policy != null ) { +return policy; +}var rootAncestor=this.getFocusCycleRootAncestor$(); +if (rootAncestor != null ) { +return rootAncestor.getFocusTraversalPolicy$(); +} else if (this.秘isAWT$()) { +return $I$(14).getCurrentKeyboardFocusManager$().getDefaultAWTFocusTraversalPolicy$(); +} else { +return $I$(14).getCurrentKeyboardFocusManager$().getDefaultFocusTraversalPolicy$(); +}}); + +Clazz_newMeth(C$, 'isFocusTraversalPolicySet$', function () { +return (this.focusTraversalPolicy != null ); +}); + +Clazz_newMeth(C$, 'setFocusCycleRoot$Z', function (focusCycleRoot) { +var oldFocusCycleRoot; +{ +oldFocusCycleRoot=this.focusCycleRoot; +this.focusCycleRoot=focusCycleRoot; +}this.firePropertyChange$S$Z$Z("focusCycleRoot", oldFocusCycleRoot, focusCycleRoot); +}); + +Clazz_newMeth(C$, 'isFocusCycleRoot$', function () { +return this.focusCycleRoot; +}); + +Clazz_newMeth(C$, 'setFocusTraversalPolicyProvider$Z', function (provider) { +var oldProvider; +{ +oldProvider=this.focusTraversalPolicyProvider; +this.focusTraversalPolicyProvider=provider; +}this.firePropertyChange$S$Z$Z("focusTraversalPolicyProvider", oldProvider, provider); +}); + +Clazz_newMeth(C$, 'isFocusTraversalPolicyProvider$', function () { +return this.focusTraversalPolicyProvider; +}); + +Clazz_newMeth(C$, 'transferFocusDownCycle$', function () { +}); + +Clazz_newMeth(C$, 'preProcessKeyEvent$java_awt_event_KeyEvent', function (e) { +var parent=this.parent; +if (parent != null ) { +parent.preProcessKeyEvent$java_awt_event_KeyEvent(e); +}}); + +Clazz_newMeth(C$, 'postProcessKeyEvent$java_awt_event_KeyEvent', function (e) { +var parent=this.parent; +if (parent != null ) { +parent.postProcessKeyEvent$java_awt_event_KeyEvent(e); +}}); + +Clazz_newMeth(C$, 'postsOldMouseEvents$', function () { +return true; +}); + +Clazz_newMeth(C$, 'applyComponentOrientation$java_awt_ComponentOrientation', function (o) { +this.applyCompOrientComp$java_awt_ComponentOrientation(o); +/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$()); +{ +for (var i=0; i < this.component.size$(); i++) { +var comp=this.component.get$I(i); +comp.applyComponentOrientation$java_awt_ComponentOrientation(o); +} +}}); + +Clazz_newMeth(C$, 'addPropertyChangeListener$java_beans_PropertyChangeListener', function (listener) { +C$.superclazz.prototype.addPropertyChangeListener$java_beans_PropertyChangeListener.apply(this, [listener]); +}); + +Clazz_newMeth(C$, 'addPropertyChangeListener$S$java_beans_PropertyChangeListener', function (propertyName, listener) { +C$.superclazz.prototype.addPropertyChangeListener$S$java_beans_PropertyChangeListener.apply(this, [propertyName, listener]); +}); +; +(function(){var C$=Clazz_newInterface(P$.Container, "EventTargetFilter", function(){ +}); +})() +; +(function(){var C$=Clazz_newClass(P$.Container, "MouseEventTargetFilter", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, null, [['java.awt.Container','java.awt.Container.EventTargetFilter']]); +C$.FILTER=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.FILTER=Clazz_new_(C$); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, ['accept$java_awt_Component','accept$'], function (comp) { +return (comp.eventMask & 32) != 0 || (comp.eventMask & 16) != 0 || (comp.eventMask & 131072) != 0 || comp.mouseListener != null || comp.mouseMotionListener != null || comp.mouseWheelListener != null ; +}); +})() +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 13:00:45 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt"),I$=[[0,'swingjs.JSToolkit']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "Cursor"); +C$.predefined=null; +C$.predefinedPrivate=null; +C$.cursorProperties=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.predefined=Clazz_array(C$, [14]); +C$.predefinedPrivate=Clazz_array(C$, [14]); +C$.cursorProperties=Clazz_array(String, -2, [Clazz_array(String, -1, ["AWT.DefaultCursor", "Default Cursor"]), Clazz_array(String, -1, ["AWT.CrosshairCursor", "Crosshair Cursor"]), Clazz_array(String, -1, ["AWT.TextCursor", "Text Cursor"]), Clazz_array(String, -1, ["AWT.WaitCursor", "Wait Cursor"]), Clazz_array(String, -1, ["AWT.SWResizeCursor", "Southwest Resize Cursor"]), Clazz_array(String, -1, ["AWT.SEResizeCursor", "Southeast Resize Cursor"]), Clazz_array(String, -1, ["AWT.NWResizeCursor", "Northwest Resize Cursor"]), Clazz_array(String, -1, ["AWT.NEResizeCursor", "Northeast Resize Cursor"]), Clazz_array(String, -1, ["AWT.NResizeCursor", "North Resize Cursor"]), Clazz_array(String, -1, ["AWT.SResizeCursor", "South Resize Cursor"]), Clazz_array(String, -1, ["AWT.WResizeCursor", "West Resize Cursor"]), Clazz_array(String, -1, ["AWT.EResizeCursor", "East Resize Cursor"]), Clazz_array(String, -1, ["AWT.HandCursor", "Hand Cursor"]), Clazz_array(String, -1, ["AWT.MoveCursor", "Move Cursor"])]); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.type=0; +this.name=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.type=0; +}, 1); + +Clazz_newMeth(C$, 'getPredefinedCursor$I', function (type) { +if (type < 0 || type > 13 ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["illegal cursor type"]); +}var c=C$.predefinedPrivate[type]; +if (c == null ) { +C$.predefinedPrivate[type]=c=Clazz_new_(C$.c$$I,[type]); +}if (C$.predefined[type] == null ) { +C$.predefined[type]=c; +}return c; +}, 1); + +Clazz_newMeth(C$, 'getSystemCustomCursor$S', function (name) { +return null; +}, 1); + +Clazz_newMeth(C$, 'getDefaultCursor$', function () { +return C$.getPredefinedCursor$I(0); +}, 1); + +Clazz_newMeth(C$, 'c$$I', function (type) { +C$.$init$.apply(this); +if (type < 0 || type > 13 ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["illegal cursor type"]); +}this.type=type; +this.name="TODO_CURSOR"; +this.name=$I$(1).getCursorName$java_awt_Cursor(this); +}, 1); + +Clazz_newMeth(C$, 'c$$S', function (name) { +C$.$init$.apply(this); +this.type=-1; +this.name=name; +}, 1); + +Clazz_newMeth(C$, 'getType$', function () { +return this.type; +}); + +Clazz_newMeth(C$, 'getName$', function () { +return this.name; +}); + +Clazz_newMeth(C$, 'toString', function () { +return this.getClass$().getName$() + "[" + this.getName$() + "]" ; +}); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:13 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt"),I$=[]; +var C$=Clazz_newClass(P$, "DefaultFocusTraversalPolicy", null, 'java.awt.ContainerOrderFocusTraversalPolicy'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'accept$java_awt_Component', function (aComponent) { +if (!(aComponent.isVisible$() && aComponent.isDisplayable$() && aComponent.isEnabled$() )) { +return false; +}if (!aComponent.isWindowOrJSApplet$()) { +for (var enableTest=aComponent.getParent$(); enableTest != null ; enableTest=enableTest.getParent$()) { +if (!(enableTest.isEnabled$() || enableTest.isLightweight$() )) { +return false; +}if (enableTest.isWindowOrJSApplet$()) { +break; +}} +}var focusable=aComponent.isFocusable$(); +if (aComponent.isFocusTraversableOverridden$()) { +return focusable; +}var peer=aComponent.getPeer$(); +return (peer != null && peer.isFocusable$() ); +}); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:13 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt"),p$1={},I$=[[0,'java.awt.KeyboardFocusManager','java.util.LinkedList',['sun.awt.CausedFocusEvent','.Cause'],'sun.awt.AppContext',['java.awt.DefaultKeyboardFocusManager','.DefaultKeyboardFocusManagerSentEvent'],'sun.awt.SunToolkit','java.awt.SequencedEvent','java.awt.event.WindowEvent','sun.awt.CausedFocusEvent','java.awt.EventQueue','java.awt.AWTKeyStroke',['java.awt.DefaultKeyboardFocusManager','.TypeAheadMarker']]],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "DefaultKeyboardFocusManager", function(){ +Clazz_newInstance(this, arguments,0,C$); +}, 'java.awt.KeyboardFocusManager'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.realOppositeWindowWR=null; +this.realOppositeComponentWR=null; +this.inSendMessage=0; +this.enqueuedKeyEvents=null; +this.typeAheadMarkers=null; +this.consumeNextKeyTyped=false; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.realOppositeWindowWR=null; +this.realOppositeComponentWR=null; +this.enqueuedKeyEvents=Clazz_new_($I$(2)); +this.typeAheadMarkers=Clazz_new_($I$(2)); +}, 1); + +Clazz_newMeth(C$, 'getOwningFrameDialog$java_awt_Window', function (window) { +var owindow; +while (window != null && !(Clazz_instanceOf((owindow=window), "javax.swing.JApplet") || Clazz_instanceOf(window, "java.awt.JSFrame") || Clazz_instanceOf(window, "java.awt.JSDialog") ) ){ +window=window.getParent$(); +} +return window; +}, p$1); + +Clazz_newMeth(C$, 'restoreFocus$java_awt_event_FocusEvent$java_awt_Window', function (fe, newFocusedWindow) { +var realOppositeComponent=this.realOppositeComponentWR; +var vetoedComponent=fe.getComponent$(); +if (newFocusedWindow != null && p$1.restoreFocus$java_awt_Window$java_awt_Component$Z.apply(this, [newFocusedWindow, vetoedComponent, false]) ) { +} else if (realOppositeComponent != null && p$1.doRestoreFocus$java_awt_Component$java_awt_Component$Z.apply(this, [realOppositeComponent, vetoedComponent, false]) ) { +} else if (fe.getOppositeComponent$() != null && p$1.doRestoreFocus$java_awt_Component$java_awt_Component$Z.apply(this, [fe.getOppositeComponent$(), vetoedComponent, false]) ) { +} else { +this.clearGlobalFocusOwnerPriv$(); +}}, p$1); + +Clazz_newMeth(C$, 'restoreFocus$java_awt_event_WindowEvent', function (we) { +var realOppositeWindow=this.realOppositeWindowWR; +if (realOppositeWindow != null && p$1.restoreFocus$java_awt_Window$java_awt_Component$Z.apply(this, [realOppositeWindow, null, false]) ) { +} else if (we.getOppositeWindow$() != null && p$1.restoreFocus$java_awt_Window$java_awt_Component$Z.apply(this, [we.getOppositeWindow$(), null, false]) ) { +} else { +this.clearGlobalFocusOwnerPriv$(); +}}, p$1); + +Clazz_newMeth(C$, 'restoreFocus$java_awt_Window$java_awt_Component$Z', function (aWindow, vetoedComponent, clearOnFailure) { +var toFocus=$I$(1).getMostRecentFocusOwner$java_awt_Window(aWindow); +if (toFocus != null && toFocus !== vetoedComponent && p$1.doRestoreFocus$java_awt_Component$java_awt_Component$Z.apply(this, [toFocus, vetoedComponent, false]) ) { +return true; +} else if (clearOnFailure) { +this.clearGlobalFocusOwnerPriv$(); +return true; +} else { +return false; +}}, p$1); + +Clazz_newMeth(C$, 'restoreFocus$java_awt_Component$Z', function (toFocus, clearOnFailure) { +return p$1.doRestoreFocus$java_awt_Component$java_awt_Component$Z.apply(this, [toFocus, null, clearOnFailure]); +}, p$1); + +Clazz_newMeth(C$, 'doRestoreFocus$java_awt_Component$java_awt_Component$Z', function (toFocus, vetoedComponent, clearOnFailure) { +if (toFocus !== vetoedComponent && toFocus.isShowing$() && toFocus.canBeFocusOwner$() && toFocus.requestFocus$Z$sun_awt_CausedFocusEvent_Cause(false, $I$(3).ROLLBACK) ) { +return true; +} else { +var nextFocus=toFocus.getNextFocusCandidate$(); +if (nextFocus != null && nextFocus !== vetoedComponent && nextFocus.requestFocusInWindow$sun_awt_CausedFocusEvent_Cause($I$(3).ROLLBACK) ) { +return true; +} else if (clearOnFailure) { +this.clearGlobalFocusOwnerPriv$(); +return true; +} else { +return false; +}}}, p$1); + +Clazz_newMeth(C$, 'sendMessage$java_awt_Component$java_awt_AWTEvent', function (target, e) { +e.isPosted=true; +var myAppContext=$I$(4).getAppContext$(); +var targetAppContext=target.appContext; +var se=Clazz_new_($I$(5).c$$java_awt_AWTEvent$sun_awt_AppContext,[e, myAppContext]); +if (myAppContext === targetAppContext ) { +se.dispatch$(); +} else { +if (targetAppContext.isDisposed$()) { +return false; +}se.dispatch$(); +}return se.dispatched; +}, 1); + +Clazz_newMeth(C$, 'repostIfFollowsKeyEvents$java_awt_event_WindowEvent', function (e) { +if (!(Clazz_instanceOf(e, "sun.awt.TimedWindowEvent"))) { +return false; +}var we=e; +var time=we.getWhen$(); +{ +var ke=this.enqueuedKeyEvents.isEmpty$() ? null : this.enqueuedKeyEvents.getFirst$(); +if (ke != null && time >= ke.getWhen$() ) { +var marker=this.typeAheadMarkers.isEmpty$() ? null : this.typeAheadMarkers.getFirst$(); +if (marker != null ) { +var toplevel=marker.untilFocused.getContainingWindow$(); +if (toplevel != null && toplevel.isFocused$() ) { +$I$(6).postEvent$sun_awt_AppContext$java_awt_AWTEvent($I$(4).getAppContext$(), Clazz_new_($I$(7).c$$java_awt_AWTEvent,[e])); +return true; +}}}}return false; +}, p$1); + +Clazz_newMeth(C$, 'dispatchEvent$java_awt_AWTEvent', function (e) { +switch (e.getID$()) { +case 501: +case 500: +(this.peer).checkFrameFocusOnMouseDown$java_awt_AWTEvent(e); +return false; +case 502: +return false; +case 207: +{ +if (p$1.repostIfFollowsKeyEvents$java_awt_event_WindowEvent.apply(this, [e])) { +break; +}var we=e; +var oldFocusedWindow=this.getGlobalFocusedWindow$(); +var newFocusedWindow=we.getWindow$(); +if (newFocusedWindow === oldFocusedWindow ) { +break; +}if (!(newFocusedWindow.isFocusableWindow$() && newFocusedWindow.isVisible$() && newFocusedWindow.isDisplayable$() )) { +p$1.restoreFocus$java_awt_event_WindowEvent.apply(this, [we]); +break; +}if (oldFocusedWindow != null ) { +var isEventDispatched=C$.sendMessage$java_awt_Component$java_awt_AWTEvent(oldFocusedWindow, Clazz_new_($I$(8).c$$java_awt_Window$I$java_awt_Window,[oldFocusedWindow, 208, newFocusedWindow])); +if (!isEventDispatched) { +this.setGlobalFocusOwner$java_awt_Component(null); +this.setGlobalFocusedWindow$java_awt_Window(null); +}}var newActiveWindow=p$1.getOwningFrameDialog$java_awt_Window.apply(this, [newFocusedWindow]); +var currentActiveWindow=this.getGlobalActiveWindow$(); +if (newActiveWindow !== currentActiveWindow ) { +C$.sendMessage$java_awt_Component$java_awt_AWTEvent(newActiveWindow, Clazz_new_($I$(8).c$$java_awt_Window$I$java_awt_Window,[newActiveWindow, 205, currentActiveWindow])); +if (newActiveWindow !== this.getGlobalActiveWindow$() ) { +p$1.restoreFocus$java_awt_event_WindowEvent.apply(this, [we]); +break; +}}this.setGlobalFocusedWindow$java_awt_Window(newFocusedWindow); +if (newFocusedWindow !== this.getGlobalFocusedWindow$() ) { +p$1.restoreFocus$java_awt_event_WindowEvent.apply(this, [we]); +break; +}if (this.inSendMessage == 0) { +var toFocus=$I$(1).getMostRecentFocusOwner$java_awt_Window(newFocusedWindow); +if ((toFocus == null ) && newFocusedWindow.isFocusableWindow$() ) { +toFocus=newFocusedWindow.getFocusTraversalPolicy$().getInitialComponent$java_awt_Window(newFocusedWindow); +}var tempLost=null; +{ +tempLost=newFocusedWindow.setTemporaryLostComponent$java_awt_Component(null); +}if (tempLost != null ) { +tempLost.requestFocusInWindow$sun_awt_CausedFocusEvent_Cause($I$(3).ACTIVATION); +}if (toFocus != null && toFocus !== tempLost ) { +toFocus.requestFocusInWindow$sun_awt_CausedFocusEvent_Cause($I$(3).ACTIVATION); +}}var realOppositeWindow=this.realOppositeWindowWR; +if (realOppositeWindow !== we.getOppositeWindow$() ) { +we=Clazz_new_($I$(8).c$$java_awt_Window$I$java_awt_Window,[newFocusedWindow, 207, realOppositeWindow]); +}return p$1.typeAheadAssertions$java_awt_Component$java_awt_AWTEvent.apply(this, [newFocusedWindow, we]); +}case 205: +{ +var we=e; +var oldActiveWindow=this.getGlobalActiveWindow$(); +var newActiveWindow=we.getWindow$(); +if (oldActiveWindow === newActiveWindow ) { +break; +}if (oldActiveWindow != null ) { +var isEventDispatched=C$.sendMessage$java_awt_Component$java_awt_AWTEvent(oldActiveWindow, Clazz_new_($I$(8).c$$java_awt_Window$I$java_awt_Window,[oldActiveWindow, 206, newActiveWindow])); +if (!isEventDispatched) { +this.setGlobalActiveWindow$java_awt_Window(null); +}if (this.getGlobalActiveWindow$() != null ) { +break; +}}this.setGlobalActiveWindow$java_awt_Window(newActiveWindow); +if (newActiveWindow !== this.getGlobalActiveWindow$() ) { +break; +}return p$1.typeAheadAssertions$java_awt_Component$java_awt_AWTEvent.apply(this, [newActiveWindow, we]); +}case 1004: +{ +var fe=e; +var cause=(Clazz_instanceOf(fe, "sun.awt.CausedFocusEvent")) ? (fe).getCause$() : $I$(3).UNKNOWN; +var oldFocusOwner=this.getGlobalFocusOwner$(); +var newFocusOwner=fe.getComponent$(); +if (oldFocusOwner === newFocusOwner ) { +this.dequeueKeyEvents$J$java_awt_Component(-1, newFocusOwner); +break; +}if (oldFocusOwner != null ) { +var isEventDispatched=C$.sendMessage$java_awt_Component$java_awt_AWTEvent(oldFocusOwner, Clazz_new_($I$(9).c$$java_awt_Component$I$Z$java_awt_Component$sun_awt_CausedFocusEvent_Cause,[oldFocusOwner, 1005, fe.isTemporary$(), newFocusOwner, cause])); +if (!isEventDispatched) { +this.setGlobalFocusOwner$java_awt_Component(null); +if (!fe.isTemporary$()) { +this.setGlobalPermanentFocusOwner$java_awt_Component(null); +}}}var newFocusedWindow=$I$(6).getContainingWindow$java_awt_Component(newFocusOwner); +var currentFocusedWindow=this.getGlobalFocusedWindow$(); +if (newFocusedWindow != null && newFocusedWindow !== currentFocusedWindow ) { +C$.sendMessage$java_awt_Component$java_awt_AWTEvent(newFocusedWindow, Clazz_new_($I$(8).c$$java_awt_Window$I$java_awt_Window,[newFocusedWindow, 207, currentFocusedWindow])); +if (newFocusedWindow !== this.getGlobalFocusedWindow$() ) { +this.dequeueKeyEvents$J$java_awt_Component(-1, newFocusOwner); +break; +}}if (!(newFocusOwner.isFocusable$() && newFocusOwner.isShowing$() && (newFocusOwner.isEnabled$() || cause.equals$O($I$(3).UNKNOWN) ) )) { +this.dequeueKeyEvents$J$java_awt_Component(-1, newFocusOwner); +if ($I$(1).isAutoFocusTransferEnabled$()) { +if (newFocusedWindow == null ) { +p$1.restoreFocus$java_awt_event_FocusEvent$java_awt_Window.apply(this, [fe, currentFocusedWindow]); +} else { +p$1.restoreFocus$java_awt_event_FocusEvent$java_awt_Window.apply(this, [fe, newFocusedWindow]); +}P$.KeyboardFocusManager.setMostRecentFocusOwner$java_awt_Window$java_awt_Component(newFocusedWindow, null); +}break; +}this.setGlobalFocusOwner$java_awt_Component(newFocusOwner); +if (newFocusOwner !== this.getGlobalFocusOwner$() ) { +this.dequeueKeyEvents$J$java_awt_Component(-1, newFocusOwner); +if ($I$(1).isAutoFocusTransferEnabled$()) { +p$1.restoreFocus$java_awt_event_FocusEvent$java_awt_Window.apply(this, [fe, newFocusedWindow]); +}break; +}if (!fe.isTemporary$()) { +this.setGlobalPermanentFocusOwner$java_awt_Component(newFocusOwner); +if (newFocusOwner !== this.getGlobalPermanentFocusOwner$() ) { +this.dequeueKeyEvents$J$java_awt_Component(-1, newFocusOwner); +if ($I$(1).isAutoFocusTransferEnabled$()) { +p$1.restoreFocus$java_awt_event_FocusEvent$java_awt_Window.apply(this, [fe, newFocusedWindow]); +}break; +}}var realOppositeComponent=this.realOppositeComponentWR; +if (realOppositeComponent != null && realOppositeComponent !== fe.getOppositeComponent$() ) { +fe=Clazz_new_($I$(9).c$$java_awt_Component$I$Z$java_awt_Component$sun_awt_CausedFocusEvent_Cause,[newFocusOwner, 1004, fe.isTemporary$(), realOppositeComponent, cause]); +(fe).isPosted=true; +}return p$1.typeAheadAssertions$java_awt_Component$java_awt_AWTEvent.apply(this, [newFocusOwner, fe]); +}case 1005: +{ +var fe=e; +var currentFocusOwner=this.getGlobalFocusOwner$(); +if (currentFocusOwner == null ) { +break; +}if (currentFocusOwner === fe.getOppositeComponent$() ) { +break; +}this.setGlobalFocusOwner$java_awt_Component(null); +if (this.getGlobalFocusOwner$() != null ) { +p$1.restoreFocus$java_awt_Component$Z.apply(this, [currentFocusOwner, true]); +break; +}if (!fe.isTemporary$()) { +this.setGlobalPermanentFocusOwner$java_awt_Component(null); +if (this.getGlobalPermanentFocusOwner$() != null ) { +p$1.restoreFocus$java_awt_Component$Z.apply(this, [currentFocusOwner, true]); +break; +}} else { +var owningWindow=currentFocusOwner.getContainingWindow$(); +if (owningWindow != null ) { +owningWindow.setTemporaryLostComponent$java_awt_Component(currentFocusOwner); +}}this.setNativeFocusOwner$java_awt_Component(null); +fe.setSource$O(currentFocusOwner); +this.realOppositeComponentWR=(fe.getOppositeComponent$() != null ) ? currentFocusOwner : null; +return p$1.typeAheadAssertions$java_awt_Component$java_awt_AWTEvent.apply(this, [currentFocusOwner, fe]); +}case 206: +{ +var we=e; +var currentActiveWindow=this.getGlobalActiveWindow$(); +if (currentActiveWindow == null ) { +break; +}if (currentActiveWindow !== e.getSource$() ) { +break; +}this.setGlobalActiveWindow$java_awt_Window(null); +if (this.getGlobalActiveWindow$() != null ) { +break; +}we.setSource$O(currentActiveWindow); +return p$1.typeAheadAssertions$java_awt_Component$java_awt_AWTEvent.apply(this, [currentActiveWindow, we]); +}case 208: +{ +if (p$1.repostIfFollowsKeyEvents$java_awt_event_WindowEvent.apply(this, [e])) { +break; +}var we=e; +var currentFocusedWindow=this.getGlobalFocusedWindow$(); +var losingFocusWindow=we.getWindow$(); +var activeWindow=this.getGlobalActiveWindow$(); +var oppositeWindow=we.getOppositeWindow$(); +if (currentFocusedWindow == null ) { +break; +}if (this.inSendMessage == 0 && losingFocusWindow === activeWindow && oppositeWindow === currentFocusedWindow ) { +break; +}var currentFocusOwner=this.getGlobalFocusOwner$(); +if (currentFocusOwner != null ) { +var oppositeComp=null; +if (oppositeWindow != null ) { +oppositeComp=oppositeWindow.getTemporaryLostComponent$(); +if (oppositeComp == null ) { +oppositeComp=oppositeWindow.getMostRecentFocusOwner$(); +}}if (oppositeComp == null ) { +oppositeComp=oppositeWindow; +}C$.sendMessage$java_awt_Component$java_awt_AWTEvent(currentFocusOwner, Clazz_new_($I$(9).c$$java_awt_Component$I$Z$java_awt_Component$sun_awt_CausedFocusEvent_Cause,[currentFocusOwner, 1005, true, oppositeComp, $I$(3).ACTIVATION])); +}this.setGlobalFocusedWindow$java_awt_Window(null); +if (this.getGlobalFocusedWindow$() != null ) { +p$1.restoreFocus$java_awt_Window$java_awt_Component$Z.apply(this, [currentFocusedWindow, null, true]); +break; +}we.setSource$O(currentFocusedWindow); +this.realOppositeWindowWR=(oppositeWindow != null ) ? currentFocusedWindow : null; +p$1.typeAheadAssertions$java_awt_Component$java_awt_AWTEvent.apply(this, [currentFocusedWindow, we]); +if (oppositeWindow == null ) { +C$.sendMessage$java_awt_Component$java_awt_AWTEvent(activeWindow, Clazz_new_($I$(8).c$$java_awt_Window$I$java_awt_Window,[activeWindow, 206, null])); +if (this.getGlobalActiveWindow$() != null ) { +p$1.restoreFocus$java_awt_Window$java_awt_Component$Z.apply(this, [currentFocusedWindow, null, true]); +}}break; +}case 400: +case 401: +case 402: +return p$1.typeAheadAssertions$java_awt_Component$java_awt_AWTEvent.apply(this, [null, e]); +default: +return false; +} +return true; +}); + +Clazz_newMeth(C$, ['dispatchKeyEvent$java_awt_event_KeyEvent','dispatchKeyEvent$'], function (e) { +var focusOwner=((e).isPosted) ? this.getFocusOwner$() : e.getComponent$(); +if (focusOwner != null && focusOwner.isShowing$() && focusOwner.canBeFocusOwner$() ) { +if (!e.isConsumed$()) { +var comp=e.getComponent$(); +if (comp != null && comp.isEnabled$() ) { +this.redispatchEvent$java_awt_Component$java_awt_AWTEvent(comp, e); +}}}var stopPostProcessing=false; +var processors=this.getKeyEventPostProcessors$(); +if (processors != null ) { +for (var iter=processors.iterator$(); !stopPostProcessing && iter.hasNext$() ; ) { +stopPostProcessing=iter.next$().postProcessKeyEvent$(e); +} +}if (!stopPostProcessing) { +this.postProcessKeyEvent$java_awt_event_KeyEvent(e); +}var source=e.getComponent$(); +var peer=source.getPeer$(); +if (peer == null || Clazz_instanceOf(peer, "java.awt.peer.LightweightPeer") ) { +var target=source.getNativeContainer$(); +if (target != null ) { +peer=target.getPeer$(); +}}if (peer != null ) { +peer.handleEvent$java_awt_AWTEvent(e); +}return true; +}); + +Clazz_newMeth(C$, ['postProcessKeyEvent$java_awt_event_KeyEvent','postProcessKeyEvent$'], function (e) { +if (!e.isConsumed$()) { +var target=e.getComponent$(); +var p=(Clazz_instanceOf(target, "java.awt.Container") ? target : target.getParent$()); +if (p != null ) { +p.postProcessKeyEvent$java_awt_event_KeyEvent(e); +}}return true; +}); + +Clazz_newMeth(C$, 'pumpApprovedKeyEvents', function () { +var ke; +do { +ke=null; +{ +if (this.enqueuedKeyEvents.size$() != 0) { +ke=this.enqueuedKeyEvents.getFirst$(); +if (this.typeAheadMarkers.size$() != 0) { +var marker=this.typeAheadMarkers.getFirst$(); +if (ke.getWhen$() > marker.after) { +ke=null; +}}if (ke != null ) { +this.enqueuedKeyEvents.removeFirst$(); +}}}if (ke != null ) { +p$1.preDispatchKeyEvent$java_awt_event_KeyEvent.apply(this, [ke]); +}} while (ke != null ); +}, p$1); + +Clazz_newMeth(C$, 'typeAheadAssertions$java_awt_Component$java_awt_AWTEvent', function (target, e) { +p$1.pumpApprovedKeyEvents.apply(this, []); +switch (e.getID$()) { +case 400: +case 401: +case 402: +{ +var ke=e; +{ +if (e.isPosted && this.typeAheadMarkers.size$() != 0 ) { +var marker=this.typeAheadMarkers.getFirst$(); +if (ke.getWhen$() > marker.after) { +this.enqueuedKeyEvents.addLast$TE(ke); +return true; +}}}return p$1.preDispatchKeyEvent$java_awt_event_KeyEvent.apply(this, [ke]); +}case 1004: +{ +var found=false; +if (p$1.hasMarker$java_awt_Component.apply(this, [target])) { +for (var iter=this.typeAheadMarkers.iterator$(); iter.hasNext$(); ) { +if (iter.next$().untilFocused === target ) { +found=true; +} else if (found) { +break; +}iter.remove$(); +} +} else { +}}this.redispatchEvent$java_awt_Component$java_awt_AWTEvent(target, e); +p$1.pumpApprovedKeyEvents.apply(this, []); +return true; +default: +this.redispatchEvent$java_awt_Component$java_awt_AWTEvent(target, e); +return true; +} +}, p$1); + +Clazz_newMeth(C$, 'hasMarker$java_awt_Component', function (comp) { +for (var iter=this.typeAheadMarkers.iterator$(); iter.hasNext$(); ) { +if (iter.next$().untilFocused === comp ) { +return true; +}} +return false; +}, p$1); + +Clazz_newMeth(C$, 'clearMarkers$', function () { +{ +this.typeAheadMarkers.clear$(); +}}); + +Clazz_newMeth(C$, 'preDispatchKeyEvent$java_awt_event_KeyEvent', function (ke) { +if ((ke).isPosted) { +var focusOwner=this.getFocusOwner$(); +ke.setSource$O(((focusOwner != null ) ? focusOwner : this.getFocusedWindow$())); +}if (ke.getSource$() == null ) { +return true; +}$I$(10).setCurrentEventAndMostRecentTime$java_awt_AWTEvent(ke); +var dispatchers=this.getKeyEventDispatchers$(); +if (dispatchers != null ) { +for (var iter=dispatchers.iterator$(); iter.hasNext$(); ) { +if (iter.next$().dispatchKeyEvent$(ke)) { +return true; +}} +}return this.dispatchKeyEvent$java_awt_event_KeyEvent(ke); +}, p$1); + +Clazz_newMeth(C$, 'consumeNextKeyTyped$java_awt_event_KeyEvent', function (e) { +this.consumeNextKeyTyped=true; +}); + +Clazz_newMeth(C$, 'consumeTraversalKey$java_awt_event_KeyEvent', function (e) { +e.consume$(); +this.consumeNextKeyTyped=(e.getID$() == 401) && !e.isActionKey$() ; +}, p$1); + +Clazz_newMeth(C$, 'consumeProcessedKeyEvent$java_awt_event_KeyEvent', function (e) { +if ((e.getID$() == 400) && this.consumeNextKeyTyped ) { +e.consume$(); +this.consumeNextKeyTyped=false; +return true; +}return false; +}, p$1); + +Clazz_newMeth(C$, 'processKeyEvent$java_awt_Component$java_awt_event_KeyEvent', function (focusedComponent, e) { +if (p$1.consumeProcessedKeyEvent$java_awt_event_KeyEvent.apply(this, [e])) { +return; +}if (e.getID$() == 400) { +return; +}if (focusedComponent.getFocusTraversalKeysEnabled$() && !e.isConsumed$() ) { +var stroke=$I$(11).getAWTKeyStrokeForEvent$java_awt_event_KeyEvent(e); +var oppStroke=$I$(11).getAWTKeyStroke$I$I$Z(stroke.getKeyCode$(), stroke.getModifiers$(), !stroke.isOnKeyRelease$()); +var toTest; +var contains; +var containsOpp; +toTest=focusedComponent.getFocusTraversalKeys$I(0); +contains=toTest.contains$O(stroke); +containsOpp=toTest.contains$O(oppStroke); +if (contains || containsOpp ) { +p$1.consumeTraversalKey$java_awt_event_KeyEvent.apply(this, [e]); +if (contains) { +this.focusNextComponent$java_awt_Component(focusedComponent); +}return; +} else if (e.getID$() == 401) { +this.consumeNextKeyTyped=false; +}toTest=focusedComponent.getFocusTraversalKeys$I(1); +contains=toTest.contains$O(stroke); +containsOpp=toTest.contains$O(oppStroke); +if (contains || containsOpp ) { +p$1.consumeTraversalKey$java_awt_event_KeyEvent.apply(this, [e]); +if (contains) { +this.focusPreviousComponent$java_awt_Component(focusedComponent); +}return; +}toTest=focusedComponent.getFocusTraversalKeys$I(2); +contains=toTest.contains$O(stroke); +containsOpp=toTest.contains$O(oppStroke); +if (contains || containsOpp ) { +p$1.consumeTraversalKey$java_awt_event_KeyEvent.apply(this, [e]); +if (contains) { +this.upFocusCycle$java_awt_Component(focusedComponent); +}return; +}if (!((Clazz_instanceOf(focusedComponent, "java.awt.Container")) && (focusedComponent).isFocusCycleRoot$() )) { +return; +}toTest=focusedComponent.getFocusTraversalKeys$I(3); +contains=toTest.contains$O(stroke); +containsOpp=toTest.contains$O(oppStroke); +if (contains || containsOpp ) { +p$1.consumeTraversalKey$java_awt_event_KeyEvent.apply(this, [e]); +if (contains) { +this.downFocusCycle$java_awt_Container(focusedComponent); +}}}}); + +Clazz_newMeth(C$, 'enqueueKeyEvents$J$java_awt_Component', function (after, untilFocused) { +if (untilFocused == null ) { +return; +}var insertionIndex=0; +var i=this.typeAheadMarkers.size$(); +var iter=this.typeAheadMarkers.listIterator$I(i); +for (; i > 0; i--) { +var marker=iter.previous$(); +if (marker.after <= after) { +insertionIndex=i; +break; +}} +this.typeAheadMarkers.add$I$TE(insertionIndex, Clazz_new_($I$(12).c$$J$java_awt_Component,[after, untilFocused])); +}); + +Clazz_newMeth(C$, 'dequeueKeyEvents$J$java_awt_Component', function (after, untilFocused) { +if (untilFocused == null ) { +return; +}var marker; +var iter=this.typeAheadMarkers.listIterator$I((after >= 0) ? this.typeAheadMarkers.size$() : 0); +if (after < 0) { +while (iter.hasNext$()){ +marker=iter.next$(); +if (marker.untilFocused === untilFocused ) { +iter.remove$(); +return; +}} +} else { +while (iter.hasPrevious$()){ +marker=iter.previous$(); +if (marker.untilFocused === untilFocused && marker.after == after ) { +iter.remove$(); +return; +}} +}}); + +Clazz_newMeth(C$, 'discardKeyEvents$java_awt_Component', function (comp) { +if (comp == null ) { +return; +}var start=-1; +for (var iter=this.typeAheadMarkers.iterator$(); iter.hasNext$(); ) { +var marker=iter.next$(); +var toTest=marker.untilFocused; +var match=(toTest === comp ); +while (!match && toTest != null && !(Clazz_instanceOf(toTest, "java.awt.Window")) ){ +toTest=toTest.getParent$(); +match=(toTest === comp ); +} +if (match) { +if (start < 0) { +start=marker.after; +}iter.remove$(); +} else if (start >= 0) { +p$1.purgeStampedEvents$J$J.apply(this, [start, marker.after]); +start=-1; +}} +p$1.purgeStampedEvents$J$J.apply(this, [start, -1]); +}); + +Clazz_newMeth(C$, 'purgeStampedEvents$J$J', function (start, end) { +if (start < 0) { +return; +}for (var iter=this.enqueuedKeyEvents.iterator$(); iter.hasNext$(); ) { +var ke=iter.next$(); +var time=ke.getWhen$(); +if (start < time && (end < 0 || time <= end ) ) { +iter.remove$(); +}if (end >= 0 && time > end ) { +break; +}} +}, p$1); + +Clazz_newMeth(C$, 'focusPreviousComponent$java_awt_Component', function (aComponent) { +if (aComponent != null ) { +aComponent.transferFocusBackward$(); +}}); + +Clazz_newMeth(C$, 'focusNextComponent$java_awt_Component', function (aComponent) { +if (aComponent != null ) { +aComponent.transferFocus$(); +}}); + +Clazz_newMeth(C$, 'upFocusCycle$java_awt_Component', function (aComponent) { +if (aComponent != null ) { +aComponent.transferFocusUpCycle$(); +}}); + +Clazz_newMeth(C$, 'downFocusCycle$java_awt_Container', function (aContainer) { +if (aContainer != null && aContainer.isFocusCycleRoot$() ) { +aContainer.transferFocusDownCycle$(); +}}); +; +(function(){var C$=Clazz_newClass(P$.DefaultKeyboardFocusManager, "TypeAheadMarker", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.after=0; +this.untilFocused=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$J$java_awt_Component', function (after, untilFocused) { +C$.$init$.apply(this); +this.after=after; +this.untilFocused=untilFocused; +}, 1); + +Clazz_newMeth(C$, 'toString', function () { +return ">>> Marker after " + this.after + " on " + this.untilFocused ; +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.DefaultKeyboardFocusManager, "DefaultKeyboardFocusManagerSentEvent", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'java.awt.SentEvent'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_AWTEvent$sun_awt_AppContext', function (nested, toNotify) { +C$.superclazz.c$$java_awt_AWTEvent$sun_awt_AppContext.apply(this, [nested, toNotify]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'dispatch$', function () { +var manager=$I$(1).getCurrentKeyboardFocusManager$(); +var defaultManager=(Clazz_instanceOf(manager, "java.awt.DefaultKeyboardFocusManager")) ? manager : null; +if (defaultManager != null ) { +{ +defaultManager.inSendMessage++; +}}C$.superclazz.prototype.dispatch$.apply(this, []); +if (defaultManager != null ) { +{ +defaultManager.inSendMessage--; +}}}); + +Clazz_newMeth(C$); +})() + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:14 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt"),I$=[[0,['java.awt.Dialog','.ModalityType']]],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "Dialog", function(){ +Clazz_newInstance(this, arguments,0,C$); +}, 'swingjs.a2s.Dialog'); +C$.DEFAULT_MODALITY_TYPE=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.DEFAULT_MODALITY_TYPE=$I$(1).APPLICATION_MODAL; +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Frame', function (owner) { +C$.superclazz.c$$java_awt_Frame.apply(this, [owner]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Frame$Z', function (owner, modal) { +C$.superclazz.c$$java_awt_Frame$Z.apply(this, [owner, modal]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Frame$S', function (owner, title) { +C$.superclazz.c$$java_awt_Frame$S.apply(this, [owner, title]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Frame$S$Z', function (owner, title, modal) { +C$.superclazz.c$$java_awt_Frame$S$Z.apply(this, [owner, title, modal]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Frame$S$Z$java_awt_GraphicsConfiguration', function (owner, title, modal, gc) { +C$.superclazz.c$$java_awt_Frame$S$Z$java_awt_GraphicsConfiguration.apply(this, [owner, title, modal, gc]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Dialog', function (owner) { +C$.superclazz.c$$java_awt_Dialog.apply(this, [owner]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Dialog$S', function (owner, title) { +C$.superclazz.c$$java_awt_Dialog$S$Z.apply(this, [owner, title, false]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Dialog$S$Z', function (owner, title, modal) { +C$.superclazz.c$$java_awt_Dialog$S$Z.apply(this, [owner, title, modal]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Dialog$S$Z$java_awt_GraphicsConfiguration', function (owner, title, modal, gc) { +C$.superclazz.c$$java_awt_Dialog$S$Z$java_awt_GraphicsConfiguration.apply(this, [owner, title, modal, gc]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Window', function (owner) { +C$.superclazz.c$$java_awt_Window.apply(this, [owner]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Window$S', function (owner, title) { +C$.superclazz.c$$java_awt_Window$S.apply(this, [owner, title]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Window$java_awt_Dialog_ModalityType', function (owner, modalityType) { +C$.superclazz.c$$java_awt_Window$java_awt_Dialog_ModalityType.apply(this, [owner, modalityType]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Window$S$java_awt_Dialog_ModalityType', function (owner, title, modalityType) { +C$.superclazz.c$$java_awt_Window$S$java_awt_Dialog_ModalityType.apply(this, [owner, title, modalityType]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Window$S$java_awt_Dialog_ModalityType$java_awt_GraphicsConfiguration', function (owner, title, modalityType, gc) { +C$.superclazz.c$$java_awt_Window$S$java_awt_Dialog_ModalityType$java_awt_GraphicsConfiguration.apply(this, [owner, title, modalityType, gc]); +C$.$init$.apply(this); +}, 1); +; +(function(){var C$=Clazz_newClass(P$.Dialog, "ModalityType", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'Enum'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +$vals=Clazz_array(C$,[0]); +Clazz_newEnumConst($vals, C$.c$, "MODELESS", 0, []); +Clazz_newEnumConst($vals, C$.c$, "DOCUMENT_MODAL", 1, []); +Clazz_newEnumConst($vals, C$.c$, "APPLICATION_MODAL", 2, []); +Clazz_newEnumConst($vals, C$.c$, "TOOLKIT_MODAL", 3, []); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$); +var $vals=[]; +Clazz_newMeth(C$, 'values$', function() { return $vals }, 1); +Clazz_newMeth(C$, 'valueOf$S', function(name) { for (var val in $vals){ if ($vals[val].name == name) return $vals[val]} return null }, 1); +})() +; +(function(){var C$=Clazz_newClass(P$.Dialog, "ModalExclusionType", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'Enum'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +$vals=Clazz_array(C$,[0]); +Clazz_newEnumConst($vals, C$.c$, "NO_EXCLUDE", 0, []); +Clazz_newEnumConst($vals, C$.c$, "APPLICATION_EXCLUDE", 1, []); +Clazz_newEnumConst($vals, C$.c$, "TOOLKIT_EXCLUDE", 2, []); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$); +var $vals=[]; +Clazz_newMeth(C$, 'values$', function() { return $vals }, 1); +Clazz_newMeth(C$, 'valueOf$S', function(name) { for (var val in $vals){ if ($vals[val].name == name) return $vals[val]} return null }, 1); +})() + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:14 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt"),I$=[]; +var C$=Clazz_newClass(P$, "Dimension", null, 'java.awt.geom.Dimension2D'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.width=0; +this.height=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.c$$I$I.apply(this, [0, 0]); +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Dimension', function (d) { +C$.c$$I$I.apply(this, [d.width, d.height]); +}, 1); + +Clazz_newMeth(C$, 'c$$I$I', function (width, height) { +Clazz_super_(C$, this,1); +this.width=width; +this.height=height; +}, 1); + +Clazz_newMeth(C$, 'getWidth$', function () { +return this.width; +}); + +Clazz_newMeth(C$, 'getHeight$', function () { +return this.height; +}); + +Clazz_newMeth(C$, 'getSize$', function () { +return Clazz_new_(C$.c$$I$I,[this.width, this.height]); +}); + +Clazz_newMeth(C$, 'setSize$java_awt_Dimension', function (d) { +this.width=d.width; +this.height=d.height; +}); + +Clazz_newMeth(C$, 'setSize$I$I', function (width, height) { +this.width=width; +this.height=height; +}); + +Clazz_newMeth(C$, 'setSize$D$D', function (width, height) { +this.width=(Math.ceil(width)|0); +this.height=(Math.ceil(height)|0); +}); + +Clazz_newMeth(C$, 'equals$O', function (obj) { +if (Clazz_instanceOf(obj, "java.awt.Dimension")) { +var d=obj; +return (this.width == d.width) && (this.height == d.height) ; +}return false; +}); + +Clazz_newMeth(C$, 'hashCode$', function () { +var sum=this.width + this.height; +return (sum * (sum + 1)/2|0) + this.width; +}); + +Clazz_newMeth(C$, 'toString', function () { +return this.getClass$().getName$() + "[width=" + this.width + ",height=" + this.height + "]" ; +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:14 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt.dnd.peer"),I$=[]; +var C$=Clazz_newInterface(P$, "DropTargetPeer"); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:20 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt.event"),I$=[]; +var C$=Clazz_newInterface(P$, "ActionListener", null, null, 'java.util.EventListener'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:20 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt.event"),I$=[]; +var C$=Clazz_newClass(P$, "AdjustmentEvent", null, 'java.awt.AWTEvent'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.adjustable=null; +this.value=0; +this.adjustmentType=0; +this.isAdjusting=false; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Adjustable$I$I$I', function (source, id, type, value) { +C$.c$$java_awt_Adjustable$I$I$I$Z.apply(this, [source, id, type, value, false]); +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Adjustable$I$I$I$Z', function (source, id, type, value, isAdjusting) { +C$.superclazz.c$$O$I.apply(this, [source, id]); +C$.$init$.apply(this); +this.adjustable=source; +this.adjustmentType=type; +this.value=value; +this.isAdjusting=isAdjusting; +}, 1); + +Clazz_newMeth(C$, 'getAdjustable$', function () { +return this.adjustable; +}); + +Clazz_newMeth(C$, 'getValue$', function () { +return this.value; +}); + +Clazz_newMeth(C$, 'getAdjustmentType$', function () { +return this.adjustmentType; +}); + +Clazz_newMeth(C$, 'getValueIsAdjusting$', function () { +return this.isAdjusting; +}); + +Clazz_newMeth(C$, 'paramString$', function () { +var typeStr; +switch (this.id) { +case 601: +typeStr="ADJUSTMENT_VALUE_CHANGED"; +break; +default: +typeStr="unknown type"; +} +var adjTypeStr; +switch (this.adjustmentType) { +case 1: +adjTypeStr="UNIT_INCREMENT"; +break; +case 2: +adjTypeStr="UNIT_DECREMENT"; +break; +case 4: +adjTypeStr="BLOCK_INCREMENT"; +break; +case 3: +adjTypeStr="BLOCK_DECREMENT"; +break; +case 5: +adjTypeStr="TRACK"; +break; +default: +adjTypeStr="unknown type"; +} +return typeStr + ",adjType=" + adjTypeStr + ",value=" + this.value + ",isAdjusting=" + this.isAdjusting ; +}); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:20 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt.event"),I$=[]; +var C$=Clazz_newInterface(P$, "AdjustmentListener", null, null, 'java.util.EventListener'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:20 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt.event"),I$=[]; +var C$=Clazz_newInterface(P$, "AWTEventListener", null, null, 'java.util.EventListener'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:20 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt.event"),I$=[]; +var C$=Clazz_newClass(P$, "ComponentAdapter", null, null, 'java.awt.event.ComponentListener'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'componentResized$java_awt_event_ComponentEvent', function (e) { +}); + +Clazz_newMeth(C$, 'componentMoved$java_awt_event_ComponentEvent', function (e) { +}); + +Clazz_newMeth(C$, 'componentShown$java_awt_event_ComponentEvent', function (e) { +}); + +Clazz_newMeth(C$, 'componentHidden$java_awt_event_ComponentEvent', function (e) { +}); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:20 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt.event"),I$=[]; +var C$=Clazz_newClass(P$, "ComponentEvent", null, 'java.awt.AWTEvent'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Component$I', function (source, id) { +C$.superclazz.c$$O$I.apply(this, [source, id]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.superclazz.c$.apply(this, []); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'getComponent$', function () { +return (Clazz_instanceOf(this.source, "java.awt.Component")) ? this.source : null; +}); + +Clazz_newMeth(C$, 'paramString$', function () { +var typeStr; +var b=(this.source != null ? (this.source).getBounds$() : null); +switch (this.id) { +case 102: +typeStr="COMPONENT_SHOWN"; +break; +case 103: +typeStr="COMPONENT_HIDDEN"; +break; +case 100: +typeStr="COMPONENT_MOVED (" + b.x + "," + b.y + " " + b.width + "x" + b.height + ")" ; +break; +case 101: +typeStr="COMPONENT_RESIZED (" + b.x + "," + b.y + " " + b.width + "x" + b.height + ")" ; +break; +default: +typeStr="unknown type"; +} +return typeStr; +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:20 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt.event"),I$=[]; +var C$=Clazz_newInterface(P$, "ComponentListener", null, null, 'java.util.EventListener'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:20 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt.event"),I$=[]; +var C$=Clazz_newInterface(P$, "ContainerListener", null, null, 'java.util.EventListener'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:20 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt.event"),I$=[[0,'sun.awt.SunToolkit','sun.awt.AppContext']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "FocusEvent", null, 'java.awt.event.ComponentEvent'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.temporary=false; +this.opposite=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Component$I$Z$java_awt_Component', function (source, id, temporary, opposite) { +C$.superclazz.c$$java_awt_Component$I.apply(this, [source, id]); +C$.$init$.apply(this); +this.temporary=temporary; +this.opposite=opposite; +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Component$I$Z', function (source, id, temporary) { +C$.c$$java_awt_Component$I$Z$java_awt_Component.apply(this, [source, id, temporary, null]); +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Component$I', function (source, id) { +C$.c$$java_awt_Component$I$Z.apply(this, [source, id, false]); +}, 1); + +Clazz_newMeth(C$, 'isTemporary$', function () { +return this.temporary; +}); + +Clazz_newMeth(C$, 'getOppositeComponent$', function () { +if (this.opposite == null ) { +return null; +}return ($I$(1).targetToAppContext$O(this.opposite) === $I$(2).getAppContext$() ) ? this.opposite : null; +}); + +Clazz_newMeth(C$, 'paramString$', function () { +var typeStr; +switch (this.id) { +case 1004: +typeStr="FOCUS_GAINED"; +break; +case 1005: +typeStr="FOCUS_LOST"; +break; +default: +typeStr="unknown type"; +} +return typeStr + (this.temporary ? ",temporary" : ",permanent") + ",opposite=" + this.getOppositeComponent$() ; +}); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:20 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt.event"),I$=[]; +var C$=Clazz_newInterface(P$, "FocusListener", null, null, 'java.util.EventListener'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:20 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt.event"),I$=[]; +var C$=Clazz_newInterface(P$, "HierarchyBoundsListener", null, null, 'java.util.EventListener'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:20 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt.event"),I$=[]; +var C$=Clazz_newInterface(P$, "HierarchyListener", null, null, 'java.util.EventListener'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:20 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt.event"),I$=[[0,'swingjs.JSMouse','StringBuilder','java.awt.Toolkit']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "InputEvent", null, 'java.awt.event.ComponentEvent'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.when=0; +this.modifiers=0; +this.canAccessSystemClipboard=false; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Component$I$J$I', function (source, id, when, modifiers) { +C$.superclazz.c$$java_awt_Component$I.apply(this, [source, id]); +C$.$init$.apply(this); +this.when=when; +this.modifiers=modifiers; +this.canAccessSystemClipboard=false; +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.superclazz.c$.apply(this, []); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'isShiftDown$', function () { +return (this.modifiers & 1) != 0; +}); + +Clazz_newMeth(C$, 'isControlDown$', function () { +return (this.modifiers & 2) != 0; +}); + +Clazz_newMeth(C$, 'isMetaDown$', function () { +return (this.modifiers & 4) != 0; +}); + +Clazz_newMeth(C$, 'isAltDown$', function () { +return (this.modifiers & 8) != 0; +}); + +Clazz_newMeth(C$, 'isAltGraphDown$', function () { +return (this.modifiers & 32) != 0; +}); + +Clazz_newMeth(C$, 'getWhen$', function () { +return this.when; +}); + +Clazz_newMeth(C$, 'getModifiers$', function () { +return this.modifiers & (-16321); +}); + +Clazz_newMeth(C$, 'getModifiersEx$', function () { +return this.modifiers & ~63; +}); + +Clazz_newMeth(C$, 'consume$', function () { +$I$(1).checkConsume$java_awt_event_InputEvent(this); +this.consumed=true; +}); + +Clazz_newMeth(C$, 'isConsumed$', function () { +return this.consumed; +}); + +Clazz_newMeth(C$, 'getModifiersExText$I', function (modifiers) { +var buf=Clazz_new_($I$(2)); +if ((modifiers & 256) != 0) { +buf.append$S($I$(3).getProperty$S$S("AWT.meta", "Meta")); +buf.append$S("+"); +}if ((modifiers & 128) != 0) { +buf.append$S($I$(3).getProperty$S$S("AWT.control", "Ctrl")); +buf.append$S("+"); +}if ((modifiers & 512) != 0) { +buf.append$S($I$(3).getProperty$S$S("AWT.alt", "Alt")); +buf.append$S("+"); +}if ((modifiers & 64) != 0) { +buf.append$S($I$(3).getProperty$S$S("AWT.shift", "Shift")); +buf.append$S("+"); +}if ((modifiers & 8192) != 0) { +buf.append$S($I$(3).getProperty$S$S("AWT.altGraph", "Alt Graph")); +buf.append$S("+"); +}if ((modifiers & 1024) != 0) { +buf.append$S($I$(3).getProperty$S$S("AWT.button1", "Button1")); +buf.append$S("+"); +}if ((modifiers & 2048) != 0) { +buf.append$S($I$(3).getProperty$S$S("AWT.button2", "Button2")); +buf.append$S("+"); +}if ((modifiers & 4096) != 0) { +buf.append$S($I$(3).getProperty$S$S("AWT.button3", "Button3")); +buf.append$S("+"); +}if (buf.length$() > 0) { +buf.setLength$I(buf.length$() - 1); +}return buf.toString(); +}, 1); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:20 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt.event"),I$=[]; +var C$=Clazz_newInterface(P$, "InputMethodListener", null, null, 'java.util.EventListener'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:20 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt.event"),I$=[]; +var C$=Clazz_newClass(P$, "InvocationEvent", null, 'java.awt.AWTEvent', 'java.awt.ActiveEvent'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.runnable=null; +this.notifier=null; +this.catchExceptions=false; +this.exception=null; +this.throwable=null; +this.when=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.exception=null; +this.throwable=null; +}, 1); + +Clazz_newMeth(C$, 'c$$O$Runnable', function (source, runnable) { +C$.c$$O$I$Runnable$O$Z.apply(this, [source, 1200, runnable, null, false]); +}, 1); + +Clazz_newMeth(C$, 'c$$O$Runnable$O$Z', function (source, runnable, notifier, catchThrowables) { +C$.c$$O$I$Runnable$O$Z.apply(this, [source, 1200, runnable, notifier, catchThrowables]); +}, 1); + +Clazz_newMeth(C$, 'c$$O$I$Runnable$O$Z', function (source, id, runnable, notifier, catchThrowables) { +C$.superclazz.c$$O$I.apply(this, [source, id]); +C$.$init$.apply(this); +this.runnable=runnable; +this.notifier=notifier; +this.catchExceptions=catchThrowables; +this.when=System.currentTimeMillis$(); +}, 1); + +Clazz_newMeth(C$, 'dispatch$', function () { +if (this.catchExceptions) { +try { +this.runnable.run$(); +} catch (t) { +if (Clazz_instanceOf(t, "java.lang.Exception")) { +this.exception=t; +}this.throwable=t; +} +} else { +this.runnable.run$(); +}if (this.notifier != null ) { +{ +this.notifier.notifyAll$(); +}}}); + +Clazz_newMeth(C$, 'getException$', function () { +return (this.catchExceptions) ? this.exception : null; +}); + +Clazz_newMeth(C$, 'getThrowable$', function () { +return (this.catchExceptions) ? this.throwable : null; +}); + +Clazz_newMeth(C$, 'getWhen$', function () { +return this.when; +}); + +Clazz_newMeth(C$, 'paramString$', function () { +var typeStr; +switch (this.id) { +case 1200: +typeStr="INVOCATION_DEFAULT"; +break; +default: +typeStr="unknown type"; +} +return typeStr + ",runnable=" + this.runnable + ",notifier=" + this.notifier + ",catchExceptions=" + this.catchExceptions + ",when=" + this.when ; +}); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:20 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt.event"),I$=[]; +var C$=Clazz_newClass(P$, "ItemEvent", null, 'java.awt.AWTEvent'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.item=null; +this.stateChange=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_ItemSelectable$I$O$I', function (source, id, item, stateChange) { +C$.superclazz.c$$O$I.apply(this, [source, id]); +C$.$init$.apply(this); +this.item=item; +this.stateChange=stateChange; +}, 1); + +Clazz_newMeth(C$, 'getItemSelectable$', function () { +return this.source; +}); + +Clazz_newMeth(C$, 'getItem$', function () { +return this.item; +}); + +Clazz_newMeth(C$, 'getStateChange$', function () { +return this.stateChange; +}); + +Clazz_newMeth(C$, 'paramString$', function () { +var typeStr; +switch (this.id) { +case 701: +typeStr="ITEM_STATE_CHANGED"; +break; +default: +typeStr="unknown type"; +} +var stateStr; +switch (this.stateChange) { +case 1: +stateStr="SELECTED"; +break; +case 2: +stateStr="DESELECTED"; +break; +default: +stateStr="unknown type"; +} +return typeStr + ",item=" + this.item + ",stateChange=" + stateStr ; +}); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:20 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt.event"),I$=[]; +var C$=Clazz_newInterface(P$, "ItemListener", null, null, 'java.util.EventListener'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:20 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt.event"),I$=[]; +var C$=Clazz_newInterface(P$, "KeyListener", null, null, 'java.util.EventListener'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:20 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt.event"),p$1={},I$=[[0,'java.awt.Point','StringBuilder','java.awt.Toolkit']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "MouseEvent", null, 'java.awt.event.InputEvent'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.x=0; +this.y=0; +this.xAbs=0; +this.yAbs=0; +this.clickCount=0; +this.button=0; +this.popupTrigger=false; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.popupTrigger=false; +}, 1); + +Clazz_newMeth(C$, 'getLocationOnScreen$', function () { +return Clazz_new_($I$(1).c$$I$I,[this.xAbs, this.yAbs]); +}); + +Clazz_newMeth(C$, 'getXOnScreen$', function () { +return this.xAbs; +}); + +Clazz_newMeth(C$, 'getYOnScreen$', function () { +return this.yAbs; +}); + +Clazz_newMeth(C$, 'c$$java_awt_Component$I$J$I$I$I$I$Z$I', function (source, id, when, modifiers, x, y, clickCount, popupTrigger, button) { +C$.c$$java_awt_Component$I$J$I$I$I$I$I$I$Z$I.apply(this, [source, id, when, modifiers, x, y, 0, 0, clickCount, popupTrigger, button]); +var eventLocationOnScreen=Clazz_new_($I$(1).c$$I$I,[0, 0]); +try { +eventLocationOnScreen=source.getLocationOnScreen$(); +this.xAbs=eventLocationOnScreen.x + x; +this.yAbs=eventLocationOnScreen.y + y; +} catch (e) { +if (Clazz_exceptionOf(e,"java.awt.IllegalComponentStateException")){ +this.xAbs=0; +this.yAbs=0; +} else { +throw e; +} +} +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Component$I$J$I$I$I$I$Z', function (source, id, when, modifiers, x, y, clickCount, popupTrigger) { +C$.c$$java_awt_Component$I$J$I$I$I$I$Z$I.apply(this, [source, id, when, modifiers, x, y, clickCount, popupTrigger, 0]); +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Component$I$J$I$I$I$I$I$I$Z$I', function (source, id, when, modifiers, x, y, xAbs, yAbs, clickCount, popupTrigger, button) { +C$.superclazz.c$$java_awt_Component$I$J$I.apply(this, [source, id, when, modifiers]); +C$.$init$.apply(this); +this.x=x; +this.y=y; +this.xAbs=xAbs; +this.yAbs=yAbs; +this.clickCount=clickCount; +this.popupTrigger=popupTrigger; +if (button < 0 || button > 3 ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["Invalid button value"]); +}this.button=button; +if ((this.getModifiers$() != 0) && (this.getModifiersEx$() == 0) ) { +p$1.setNewModifiers.apply(this, []); +} else if ((this.getModifiers$() == 0) && (this.getModifiersEx$() != 0 || button != 0 ) ) { +p$1.setOldModifiers.apply(this, []); +}}, 1); + +Clazz_newMeth(C$, 'getX$', function () { +return this.x; +}); + +Clazz_newMeth(C$, 'getY$', function () { +return this.y; +}); + +Clazz_newMeth(C$, 'getPoint$', function () { +var x; +var y; +{ +x=this.x; +y=this.y; +}return Clazz_new_($I$(1).c$$I$I,[x, y]); +}); + +Clazz_newMeth(C$, 'translatePoint$I$I', function (x, y) { +this.x+=x; +this.y+=y; +}); + +Clazz_newMeth(C$, 'getClickCount$', function () { +return this.clickCount; +}); + +Clazz_newMeth(C$, 'getButton$', function () { +return this.button; +}); + +Clazz_newMeth(C$, 'isPopupTrigger$', function () { +return this.popupTrigger; +}); + +Clazz_newMeth(C$, 'getMouseModifiersText$I', function (modifiers) { +var buf=Clazz_new_($I$(2)); +if ((modifiers & 8) != 0) { +buf.append$S($I$(3).getProperty$S$S("AWT.alt", "Alt")); +buf.append$S("+"); +}if ((modifiers & 4) != 0) { +buf.append$S($I$(3).getProperty$S$S("AWT.meta", "Meta")); +buf.append$S("+"); +}if ((modifiers & 2) != 0) { +buf.append$S($I$(3).getProperty$S$S("AWT.control", "Ctrl")); +buf.append$S("+"); +}if ((modifiers & 1) != 0) { +buf.append$S($I$(3).getProperty$S$S("AWT.shift", "Shift")); +buf.append$S("+"); +}if ((modifiers & 32) != 0) { +buf.append$S($I$(3).getProperty$S$S("AWT.altGraph", "Alt Graph")); +buf.append$S("+"); +}if ((modifiers & 16) != 0) { +buf.append$S($I$(3).getProperty$S$S("AWT.button1", "Button1")); +buf.append$S("+"); +}if ((modifiers & 8) != 0) { +buf.append$S($I$(3).getProperty$S$S("AWT.button2", "Button2")); +buf.append$S("+"); +}if ((modifiers & 4) != 0) { +buf.append$S($I$(3).getProperty$S$S("AWT.button3", "Button3")); +buf.append$S("+"); +}if (buf.length$() > 0) { +buf.setLength$I(buf.length$() - 1); +}return buf.toString(); +}, 1); + +Clazz_newMeth(C$, 'paramString$', function () { +var str=Clazz_new_($I$(2).c$$I,[80]); +str.append$S(C$.getIdString$I(this.id)); +str.append$S(",(" + this.x).append$S("," + this.y).append$S("," + this.when).append$S(")"); +str.append$S(",absolute(").append$S("" + this.xAbs).append$S(",").append$S("" + this.yAbs).append$S(")"); +str.append$S(",button=").append$S("" + this.getButton$()); +if (this.getModifiers$() != 0) { +str.append$S(",modifiers=").append$S(C$.getMouseModifiersText$I(this.modifiers)); +}if (this.getModifiersEx$() != 0) { +str.append$S(",extModifiers=").append$S(P$.InputEvent.getModifiersExText$I(this.modifiers)); +}str.append$S(",clickCount=").append$S("" + this.clickCount); +return str.toString(); +}); + +Clazz_newMeth(C$, 'getIdString$I', function (id) { +switch (id) { +case 501: +return "MOUSE_PRESSED"; +case 502: +return "MOUSE_RELEASED"; +case 500: +return "MOUSE_CLICKED"; +case 504: +return "MOUSE_ENTERED"; +case 505: +return "MOUSE_EXITED"; +case 503: +return "MOUSE_MOVED"; +case 506: +return "MOUSE_DRAGGED"; +case 507: +return "MOUSE_WHEEL"; +default: +return "unknown type"; +} +}, 1); + +Clazz_newMeth(C$, 'setNewModifiers', function () { +if (this.id == 501 || this.id == 502 || this.id == 500 ) { +if ((this.modifiers & 16) != 0) { +this.button=1; +this.modifiers&=~4; +if (this.id != 501) { +this.modifiers&=~1024; +}} else if ((this.modifiers & 4) != 0) { +this.button=3; +this.modifiers&=~16; +if (this.id != 501) { +this.modifiers&=~(4352); +}} else if ((this.modifiers & 8) != 0) { +this.button=2; +this.modifiers&=~16; +if (this.id != 501) { +this.modifiers&=~2048; +}}if ((this.modifiers & 8) != 0) { +this.modifiers|=512; +}if ((this.modifiers & 1) != 0) { +this.modifiers|=64; +}if ((this.modifiers & 2) != 0) { +this.modifiers|=128; +}if ((this.modifiers & 32) != 0) { +this.modifiers|=8192; +}if (this.id == 501) { +if ((this.modifiers & 16) != 0) { +this.modifiers|=1024; +}if ((this.modifiers & 8) != 0) { +this.modifiers|=2048; +}if ((this.modifiers & 4) != 0) { +this.modifiers|=4096; +}if ((this.modifiers & 4) != 0) { +this.modifiers|=256; +}}}}, p$1); + +Clazz_newMeth(C$, 'setOldModifiers', function () { +if (this.id == 501 || this.id == 502 || this.id == 500 ) { +switch (this.button) { +case 1: +this.modifiers|=16; +break; +case 2: +this.modifiers|=8; +break; +case 3: +this.modifiers|=4; +break; +} +} else { +if ((this.modifiers & 1024) != 0) { +this.modifiers|=16; +}if ((this.modifiers & 2048) != 0) { +this.modifiers|=8; +}if ((this.modifiers & 4096) != 0) { +this.modifiers|=4; +}}if ((this.modifiers & 512) != 0) { +this.modifiers|=8; +}if ((this.modifiers & 256) != 0) { +this.modifiers|=4; +}if ((this.modifiers & 64) != 0) { +this.modifiers|=1; +}if ((this.modifiers & 128) != 0) { +this.modifiers|=2; +}if ((this.modifiers & 8192) != 0) { +this.modifiers|=32; +}}, p$1); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:20 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt.event"),I$=[]; +var C$=Clazz_newInterface(P$, "MouseListener", null, null, 'java.util.EventListener'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:20 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt.event"),I$=[]; +var C$=Clazz_newInterface(P$, "MouseMotionListener", null, null, 'java.util.EventListener'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:20 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt.event"),I$=[]; +var C$=Clazz_newInterface(P$, "MouseWheelListener", null, null, 'java.util.EventListener'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:20 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt.event"),I$=[]; +var C$=Clazz_newInterface(P$, "TextListener", null, null, 'java.util.EventListener'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:20 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt.event"),I$=[]; +var C$=Clazz_newClass(P$, "WindowAdapter", null, null, ['java.awt.event.WindowListener', 'java.awt.event.WindowStateListener', 'java.awt.event.WindowFocusListener']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'windowOpened$java_awt_event_WindowEvent', function (e) { +}); + +Clazz_newMeth(C$, 'windowClosing$java_awt_event_WindowEvent', function (e) { +}); + +Clazz_newMeth(C$, 'windowClosed$java_awt_event_WindowEvent', function (e) { +}); + +Clazz_newMeth(C$, 'windowIconified$java_awt_event_WindowEvent', function (e) { +}); + +Clazz_newMeth(C$, 'windowDeiconified$java_awt_event_WindowEvent', function (e) { +}); + +Clazz_newMeth(C$, 'windowActivated$java_awt_event_WindowEvent', function (e) { +}); + +Clazz_newMeth(C$, 'windowDeactivated$java_awt_event_WindowEvent', function (e) { +}); + +Clazz_newMeth(C$, ['windowStateChanged$java_awt_event_WindowEvent','windowStateChanged$'], function (e) { +}); + +Clazz_newMeth(C$, 'windowGainedFocus$java_awt_event_WindowEvent', function (e) { +}); + +Clazz_newMeth(C$, 'windowLostFocus$java_awt_event_WindowEvent', function (e) { +}); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:20 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt.event"),I$=[[0,'sun.awt.SunToolkit','sun.awt.AppContext']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "WindowEvent", null, 'java.awt.event.ComponentEvent'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.opposite=null; +this.oldState=0; +this.newState=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Window$I$java_awt_Window$I$I', function (source, id, opposite, oldState, newState) { +C$.superclazz.c$$java_awt_Component$I.apply(this, [source, id]); +C$.$init$.apply(this); +this.opposite=opposite; +this.oldState=oldState; +this.newState=newState; +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Window$I$java_awt_Window', function (source, id, opposite) { +C$.c$$java_awt_Window$I$java_awt_Window$I$I.apply(this, [source, id, opposite, 0, 0]); +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Window$I$I$I', function (source, id, oldState, newState) { +C$.c$$java_awt_Window$I$java_awt_Window$I$I.apply(this, [source, id, null, oldState, newState]); +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Window$I', function (source, id) { +C$.c$$java_awt_Window$I$java_awt_Window$I$I.apply(this, [source, id, null, 0, 0]); +}, 1); + +Clazz_newMeth(C$, 'getWindow$', function () { +return ((this.source).isWindowOrJSApplet$()) ? this.source : null; +}); + +Clazz_newMeth(C$, 'getOppositeWindow$', function () { +if (this.opposite == null ) { +return null; +}return ($I$(1).targetToAppContext$O(this.opposite) === $I$(2).getAppContext$() ) ? this.opposite : null; +}); + +Clazz_newMeth(C$, 'getOldState$', function () { +return this.oldState; +}); + +Clazz_newMeth(C$, 'getNewState$', function () { +return this.newState; +}); + +Clazz_newMeth(C$, 'paramString$', function () { +var typeStr; +switch (this.id) { +case 200: +typeStr="WINDOW_OPENED"; +break; +case 201: +typeStr="WINDOW_CLOSING"; +break; +case 202: +typeStr="WINDOW_CLOSED"; +break; +case 203: +typeStr="WINDOW_ICONIFIED"; +break; +case 204: +typeStr="WINDOW_DEICONIFIED"; +break; +case 205: +typeStr="WINDOW_ACTIVATED"; +break; +case 206: +typeStr="WINDOW_DEACTIVATED"; +break; +case 207: +typeStr="WINDOW_GAINED_FOCUS"; +break; +case 208: +typeStr="WINDOW_LOST_FOCUS"; +break; +case 209: +typeStr="WINDOW_STATE_CHANGED"; +break; +default: +typeStr="unknown type"; +} +typeStr += ",opposite=" + this.getOppositeWindow$() + ",oldState=" + this.oldState + ",newState=" + this.newState ; +return typeStr; +}); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:20 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt.event"),I$=[]; +var C$=Clazz_newInterface(P$, "WindowFocusListener", null, null, 'java.util.EventListener'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:20 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt.event"),I$=[]; +var C$=Clazz_newInterface(P$, "WindowListener", null, null, 'java.util.EventListener'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:20 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt.event"),I$=[]; +var C$=Clazz_newInterface(P$, "WindowStateListener", null, null, 'java.util.EventListener'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:20 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt"),p$1={},I$=[[0,'java.awt.Component',['java.awt.EventFilter','.FilterAction'],'sun.awt.SunToolkit','javajs.util.Lst','swingjs.JSToolkit',['java.awt.EventDispatchThread','.StopDispatchEvent'],'Thread',['java.awt.EventDispatchThread','.HierarchyEventFilter'],'sun.awt.AWTAutoShutdown']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "EventDispatchThread", function(){ +Clazz_newInstance(this, arguments,0,C$); +}, 'javajs.util.JSThread'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.theQueue=null; +this.eventFilters=null; +this.modalFiltersCount=0; +this.filter=null; +this.cond=null; +this.id=0; +this.doDispatch=false; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.eventFilters=Clazz_new_($I$(4)); +this.modalFiltersCount=0; +this.doDispatch=true; +}, 1); + +Clazz_newMeth(C$, 'myInit$', function () { +this.addEventFilter$java_awt_EventFilter(this.filter); +return true; +}); + +Clazz_newMeth(C$, 'isLooping$', function () { +return (this.doDispatch && (this.cond == null || this.cond.evaluate$() ) && !this.isInterrupted$() || (this.doDispatch=false) ); +}); + +Clazz_newMeth(C$, 'myLoop$', function () { +var myid=this.id; +var r=((P$.EventDispatchThread$1|| +(function(){var C$=Clazz_newClass(P$, "EventDispatchThread$1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'Runnable', 1); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'run$', function () { +this.b$['java.awt.EventDispatchThread'].pumpOneEventForFilters$I.apply(this.b$['java.awt.EventDispatchThread'], [this.$finals$.myid]); +}); +})() +), Clazz_new_(P$.EventDispatchThread$1.$init$, [this, {myid: myid}])); +var me=this; +var mode=1; +var f=function() {r.run$();me.run1$I(mode)} ||null; +$I$(5).dispatch$O$I$I(f, 0, 0); +return (this.doDispatch=false); +}); + +Clazz_newMeth(C$, 'getDelayMillis$', function () { +return 0; +}); + +Clazz_newMeth(C$, 'whenDone$', function () { +}); + +Clazz_newMeth(C$, 'doFinally$', function () { +if (!this.doDispatch) p$1.finish.apply(this, []); +}); + +Clazz_newMeth(C$, 'onException$Exception', function (e) { +}); + +Clazz_newMeth(C$, 'c$$ThreadGroup$S$java_awt_EventQueue', function (group, name, queue) { +C$.superclazz.c$$ThreadGroup$S.apply(this, [group, name]); +C$.$init$.apply(this); +this.theQueue=queue; +}, 1); + +Clazz_newMeth(C$, 'stopDispatchingImpl$Z', function (wait) { +var stopEvent=Clazz_new_($I$(6), [this, null]); +if ($I$(7).currentThread$() !== this ) { +this.theQueue.postEventPrivate$java_awt_AWTEvent(stopEvent); +if (wait) { +try { +this.join$(); +} catch (e) { +if (Clazz_exceptionOf(e,"InterruptedException")){ +} else { +throw e; +} +} +}} else { +stopEvent.dispatch$(); +}{ +if (this.theQueue.getDispatchThread$() === this ) { +this.theQueue.detachDispatchThread$(); +}}}); + +Clazz_newMeth(C$, 'stopDispatching$', function () { +this.stopDispatchingImpl$Z(true); +}); + +Clazz_newMeth(C$, 'stopDispatchingLater$', function () { +this.stopDispatchingImpl$Z(false); +}); + +Clazz_newMeth(C$, 'start$', function () { +C$.superclazz.prototype.start$.apply(this, []); +}); + +Clazz_newMeth(C$, 'run$', function () { +this.pumpEvents$I$java_awt_Conditional(-1, null); +}); + +Clazz_newMeth(C$, 'pumpEvents$I$java_awt_Conditional', function (id, cond) { +this.pumpEventsForHierarchy$I$java_awt_Conditional$java_awt_Component(id, cond, null); +}); + +Clazz_newMeth(C$, 'pumpEventsForHierarchy$I$java_awt_Conditional$java_awt_Component', function (id, cond, modalComponent) { +this.pumpEventsForFilter$I$java_awt_Conditional$java_awt_EventFilter(id, cond, Clazz_new_($I$(8).c$$java_awt_Component,[modalComponent])); +}); + +Clazz_newMeth(C$, 'pumpEventsForFilter$I$java_awt_Conditional$java_awt_EventFilter', function (id, cond, filter) { +this.filter=filter; +this.cond=cond; +this.id=id; +this.run1$I(0); +}); + +Clazz_newMeth(C$, 'dispatchAndReturn$Runnable$I', function (r, mode) { +var me=this; +var f=function() {r.run$();me.run1$I(mode)}||null; +$I$(5).dispatch$O$I$I(f, 0, 0); +}); + +Clazz_newMeth(C$, 'finish', function () { +this.doDispatch=false; +this.removeEventFilter$java_awt_EventFilter(this.filter); +{ +if (this.theQueue.getDispatchThread$() === this ) { +this.theQueue.detachDispatchThread$(); +}if (this.theQueue.peekEvent$() != null || !$I$(3).isPostEventQueueEmpty$() ) { +this.theQueue.initDispatchThread$(); +}$I$(9).getInstance$().notifyThreadFree$Thread(this); +}}, p$1); + +Clazz_newMeth(C$, 'addEventFilter$java_awt_EventFilter', function (filter) { +{ +if (!this.eventFilters.contains$O(filter)) { +if (Clazz_instanceOf(filter, "java.awt.ModalEventFilter")) { +var newFilter=filter; +var k=0; +for (k=0; k < this.eventFilters.size$(); k++) { +var f=this.eventFilters.get$I(k); +if (Clazz_instanceOf(f, "java.awt.ModalEventFilter")) { +var cf=f; +if (cf.compareTo$java_awt_ModalEventFilter(newFilter) > 0) { +break; +}}} +this.eventFilters.add$I$TE(k, filter); +this.modalFiltersCount++; +} else { +this.eventFilters.addLast$TV(filter); +}}}}); + +Clazz_newMeth(C$, 'removeEventFilter$java_awt_EventFilter', function (filter) { +{ +if (this.eventFilters.contains$O(filter)) { +if (Clazz_instanceOf(filter, "java.awt.ModalEventFilter")) { +this.modalFiltersCount--; +}this.eventFilters.removeObj$O(filter); +}}}); + +Clazz_newMeth(C$, 'pumpOneEventForFilters$I', function (id) { +try { +var event; +var eventOK; +do { +event=(id == -1) ? this.theQueue.getNextEvent$() : this.theQueue.getNextEventForID$I(id); +if (event == null ) return (this.doDispatch=false); +eventOK=true; +{ +for (var i=this.eventFilters.size$() - 1; i >= 0; i--) { +var f=this.eventFilters.get$I(i); +var accept=f.acceptEvent$(event); +if (accept === $I$(2).REJECT ) { +eventOK=false; +break; +} else if (accept === $I$(2).ACCEPT_IMMEDIATELY ) { +break; +}} +}if (!eventOK) { +event.consume$(); +}} while (eventOK == false ); +this.theQueue.dispatchEvent$java_awt_AWTEvent(event); +return this.doDispatch=true; +} catch (e$$) { +if (Clazz_exceptionOf(e$$,"ThreadDeath")){ +var death = e$$; +{ +return this.doDispatch=false; +} +} else if (Clazz_exceptionOf(e$$,"InterruptedException")){ +var interruptedException = e$$; +{ +return this.doDispatch=false; +} +} else { +var e = e$$; +{ +p$1.processException$Throwable$Z.apply(this, [e, this.modalFiltersCount > 0]); +} +} +} +return this.doDispatch=true; +}); + +Clazz_newMeth(C$, 'processException$Throwable$Z', function (e, isModal) { +if (!p$1.handleException$Throwable.apply(this, [e])) { +if (isModal) { +System.err.println$S("Exception occurred during event dispatching:"); +e.printStackTrace$(); +} else if (Clazz_instanceOf(e, "java.lang.RuntimeException")) { +throw e; +} else if (Clazz_instanceOf(e, "java.lang.Error")) { +throw e; +} else { +var isTypeError=(!!e.stack ||false); +if (isTypeError) { +e.printStackTrace$(); +}}}}, p$1); + +Clazz_newMeth(C$, 'handleException$Throwable', function (thrown) { +return false; +}, p$1); + +Clazz_newMeth(C$, 'isDispatching$java_awt_EventQueue', function (eq) { +return this.theQueue.equals$O(eq); +}); + +Clazz_newMeth(C$, 'getEventQueue$', function () { +return this.theQueue; +}); +; +(function(){var C$=Clazz_newClass(P$.EventDispatchThread, "StopDispatchEvent", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, 'java.awt.AWTEvent', 'java.awt.ActiveEvent'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.superclazz.c$$O$I.apply(this, [this.this$0, 0]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'dispatch$', function () { +this.this$0.doDispatch=false; +}); +})() +; +(function(){var C$=Clazz_newClass(P$.EventDispatchThread, "HierarchyEventFilter", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, null, 'java.awt.EventFilter'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.modalComponent=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Component', function (modalComponent) { +C$.$init$.apply(this); +this.modalComponent=modalComponent; +}, 1); + +Clazz_newMeth(C$, ['acceptEvent$java_awt_AWTEvent','acceptEvent$'], function (event) { +if (this.modalComponent != null ) { +var eventID=event.getID$(); +var mouseEvent=(eventID >= 500) && (eventID <= 507) ; +var actionEvent=(eventID >= 1001) && (eventID <= 1001) ; +var windowClosingEvent=(eventID == 201); +if ($I$(1).isInstanceOf$O$S(this.modalComponent, "javax.swing.JInternalFrame")) { +return windowClosingEvent ? $I$(2).REJECT : $I$(2).ACCEPT; +}if (mouseEvent || actionEvent || windowClosingEvent ) { +var o=event.getSource$(); +if (Clazz_instanceOf(o, "sun.awt.ModalExclude")) { +return $I$(2).ACCEPT; +} else if (Clazz_instanceOf(o, "java.awt.Component")) { +var c=o; +var modalExcluded=false; +if (Clazz_instanceOf(this.modalComponent, "java.awt.Container")) { +while (c !== this.modalComponent && c != null ){ +if ((Clazz_instanceOf(c, "java.awt.Window")) && ($I$(3).isModalExcluded$java_awt_Window(c)) ) { +modalExcluded=true; +break; +}c=c.getParent$(); +} +}if (!modalExcluded && (c !== this.modalComponent ) ) { +return $I$(2).REJECT; +}}}}return $I$(2).ACCEPT; +}); + +Clazz_newMeth(C$); +})() + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:14 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt"),I$=[]; +var C$=Clazz_newInterface(P$, "EventFilter", function(){ +}); +; +(function(){var C$=Clazz_newClass(P$.EventFilter, "FilterAction", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'Enum'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +$vals=Clazz_array(C$,[0]); +Clazz_newEnumConst($vals, C$.c$, "ACCEPT", 0, []); +Clazz_newEnumConst($vals, C$.c$, "REJECT", 1, []); +Clazz_newEnumConst($vals, C$.c$, "ACCEPT_IMMEDIATELY", 2, []); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$); +var $vals=[]; +Clazz_newMeth(C$, 'values$', function() { return $vals }, 1); +Clazz_newMeth(C$, 'valueOf$S', function(name) { for (var val in $vals){ if ($vals[val].name == name) return $vals[val]} return null }, 1); +})() +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:14 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt"),p$1={},I$=[[0,'java.awt.Queue','Thread','sun.awt.SunToolkit','sun.awt.AWTAutoShutdown','java.awt.EventQueueItem','swingjs.JSToolkit','java.awt.Toolkit','sun.awt.AppContext','java.awt.EventDispatchThread','java.awt.event.InvocationEvent','Error']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "EventQueue"); +C$.threadInitNumber=0; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.queues=null; +this.nextQueue=null; +this.previousQueue=null; +this.dispatchThread=null; +this.threadGroup=null; +this.mostRecentEventTime=0; +this.currentEvent=null; +this.waitForID=0; +this.name=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.queues=Clazz_array($I$(1), [4]); +this.threadGroup=$I$(2).currentThread$().getThreadGroup$(); +this.mostRecentEventTime=System.currentTimeMillis$(); +this.name="AWT-EventQueue-" + C$.nextThreadNum$(); +}, 1); + +Clazz_newMeth(C$, 'nextThreadNum$', function () { +return C$.threadInitNumber++; +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.$init$.apply(this); +for (var i=0; i < 4; i++) { +this.queues[i]=Clazz_new_($I$(1)); +} +}, 1); + +Clazz_newMeth(C$, 'postEvent$java_awt_AWTEvent', function (event) { +$I$(3).flushPendingEvents$(); +this.postEventPrivate$java_awt_AWTEvent(event); +}); + +Clazz_newMeth(C$, 'postEventPrivate$java_awt_AWTEvent', function (theEvent) { +theEvent.isPosted=true; +{ +if (this.dispatchThread == null && this.nextQueue == null ) { +if (theEvent.getSource$() === $I$(4).getInstance$() ) { +return; +} else { +this.initDispatchThread$(); +}}if (this.nextQueue != null ) { +this.nextQueue.postEventPrivate$java_awt_AWTEvent(theEvent); +return; +}p$1.postEventNow$java_awt_AWTEvent$I.apply(this, [theEvent, C$.getPriority$java_awt_AWTEvent(theEvent)]); +}}); + +Clazz_newMeth(C$, 'getPriority$java_awt_AWTEvent', function (theEvent) { +if (Clazz_instanceOf(theEvent, "sun.awt.PeerEvent")) { +var flags=(theEvent).getFlags$(); +if ((flags & 2) != 0) return 3; +if ((flags & 1) != 0) return 2; +if ((flags & 4) != 0) return 0; +}switch (theEvent.getID$()) { +case 1201: +case 800: +case 801: +return 0; +default: +return 1; +} +}, 1); + +Clazz_newMeth(C$, 'postEventNow$java_awt_AWTEvent$I', function (theEvent, priority) { +if (p$1.coalesceEvent$java_awt_AWTEvent$I.apply(this, [theEvent, priority])) { +return; +}var newItem=Clazz_new_($I$(5).c$$java_awt_AWTEvent,[theEvent]); +p$1.cacheEQItem$java_awt_EventQueueItem.apply(this, [newItem]); +if (this.queues[priority].head == null ) { +var shouldNotify=p$1.noEvents.apply(this, []); +this.queues[priority].head=this.queues[priority].tail=newItem; +if (shouldNotify) { +if (theEvent.getSource$() !== $I$(4).getInstance$() ) { +$I$(4).getInstance$().notifyThreadBusy$Thread(this.dispatchThread); +}}} else { +this.queues[priority].tail.next=newItem; +this.queues[priority].tail=newItem; +}}, p$1); + +Clazz_newMeth(C$, 'coalescePaintEvent$java_awt_event_PaintEvent', function (e) { +var cache=(e.getSource$()).eventCache; +if (cache == null ) { +return false; +}var index=C$.eventToCacheIndex$java_awt_AWTEvent(e); +if (index != -1 && cache[index] != null ) { +var merged=p$1.mergePaintEvents$java_awt_event_PaintEvent$java_awt_event_PaintEvent.apply(this, [e, cache[index].event]); +if (merged != null ) { +cache[index].event=merged; +return true; +}}return false; +}, p$1); + +Clazz_newMeth(C$, 'mergePaintEvents$java_awt_event_PaintEvent$java_awt_event_PaintEvent', function (a, b) { +var aRect=a.getUpdateRect$(); +var bRect=b.getUpdateRect$(); +if (bRect.contains$java_awt_Rectangle(aRect)) { +return b; +}if (aRect.contains$java_awt_Rectangle(bRect)) { +return a; +}return null; +}, p$1); + +Clazz_newMeth(C$, 'coalesceMouseEvent$java_awt_event_MouseEvent', function (e) { +var cache=(e.getSource$()).eventCache; +if (cache == null ) { +return false; +}var index=C$.eventToCacheIndex$java_awt_AWTEvent(e); +if (index != -1 && cache[index] != null ) { +cache[index].event=e; +return true; +}return false; +}, p$1); + +Clazz_newMeth(C$, 'coalescePeerEvent$sun_awt_PeerEvent', function (e) { +var cache=(e.getSource$()).eventCache; +if (cache == null ) { +return false; +}var index=C$.eventToCacheIndex$java_awt_AWTEvent(e); +if (index != -1 && cache[index] != null ) { +e=e.coalesceEvents$sun_awt_PeerEvent(cache[index].event); +if (e != null ) { +cache[index].event=e; +return true; +} else { +cache[index]=null; +}}return false; +}, p$1); + +Clazz_newMeth(C$, 'coalesceOtherEvent$java_awt_AWTEvent$I', function (e, priority) { +var id=e.getID$(); +var source=e.getSource$(); +for (var entry=this.queues[priority].head; entry != null ; entry=entry.next) { +if (entry.event.getSource$() === source && entry.id == id ) { +var coalescedEvent=source.coalesceEvents$java_awt_AWTEvent$java_awt_AWTEvent(entry.event, e); +if (coalescedEvent != null ) { +entry.event=coalescedEvent; +return true; +}}} +return false; +}, p$1); + +Clazz_newMeth(C$, 'coalesceEvent$java_awt_AWTEvent$I', function (e, priority) { +if (!(Clazz_instanceOf(e.getSource$(), "java.awt.Component"))) { +return false; +}if (Clazz_instanceOf(e, "sun.awt.PeerEvent")) { +return p$1.coalescePeerEvent$sun_awt_PeerEvent.apply(this, [e]); +}if ((e.getSource$()).isCoalescingEnabled$() && p$1.coalesceOtherEvent$java_awt_AWTEvent$I.apply(this, [e, priority]) ) { +return true; +}if (Clazz_instanceOf(e, "java.awt.event.PaintEvent")) { +return p$1.coalescePaintEvent$java_awt_event_PaintEvent.apply(this, [e]); +}if (Clazz_instanceOf(e, "java.awt.event.MouseEvent")) { +return p$1.coalesceMouseEvent$java_awt_event_MouseEvent.apply(this, [e]); +}return false; +}, p$1); + +Clazz_newMeth(C$, 'cacheEQItem$java_awt_EventQueueItem', function (entry) { +var index=C$.eventToCacheIndex$java_awt_AWTEvent(entry.event); +if (index != -1 && Clazz_instanceOf(entry.event.getSource$(), "java.awt.Component") ) { +var source=entry.event.getSource$(); +if (source.eventCache == null ) { +source.eventCache=Clazz_array($I$(5), [5]); +}source.eventCache[index]=entry; +}}, p$1); + +Clazz_newMeth(C$, 'uncacheEQItem$java_awt_EventQueueItem', function (entry) { +var index=C$.eventToCacheIndex$java_awt_AWTEvent(entry.event); +if (index != -1 && Clazz_instanceOf(entry.event.getSource$(), "java.awt.Component") ) { +var source=entry.event.getSource$(); +if (source.eventCache == null ) { +return; +}source.eventCache[index]=null; +}}, p$1); + +Clazz_newMeth(C$, 'eventToCacheIndex$java_awt_AWTEvent', function (e) { +switch (e.getID$()) { +case 800: +return 0; +case 801: +return 1; +case 503: +return 2; +case 506: +return 3; +default: +return -1; +} +}, 1); + +Clazz_newMeth(C$, 'noEvents', function () { +for (var i=0; i < 4; i++) { +if (this.queues[i].head != null ) { +return false; +}} +return true; +}, p$1); + +Clazz_newMeth(C$, 'getNextEvent$', function () { +$I$(3).flushPendingEvents$(); +{ +for (var i=3; i >= 0; i--) { +if (this.queues[i].head != null ) { +var entry=this.queues[i].head; +this.queues[i].head=entry.next; +if (entry.next == null ) { +this.queues[i].tail=null; +}p$1.uncacheEQItem$java_awt_EventQueueItem.apply(this, [entry]); +return entry.event; +}} +$I$(4).getInstance$().notifyThreadFree$Thread(this.dispatchThread); +}return null; +}); + +Clazz_newMeth(C$, 'getNextEventForID$I', function (id) { +$I$(3).flushPendingEvents$(); +{ +for (var i=0; i < 4; i++) { +for (var entry=this.queues[i].head, prev=null; entry != null ; prev=entry, entry=entry.next) { +if (entry.id == id) { +if (prev == null ) { +this.queues[i].head=entry.next; +} else { +prev.next=entry.next; +}if (this.queues[i].tail === entry ) { +this.queues[i].tail=prev; +}p$1.uncacheEQItem$java_awt_EventQueueItem.apply(this, [entry]); +return entry.event; +}} +} +this.waitForID=id; +this.waitForID=0; +}return null; +}); + +Clazz_newMeth(C$, 'peekEvent$', function () { +for (var i=3; i >= 0; i--) { +if (this.queues[i].head != null ) { +return this.queues[i].head.event; +}} +return null; +}); + +Clazz_newMeth(C$, 'peekEvent$I', function (id) { +for (var i=3; i >= 0; i--) { +var q=this.queues[i].head; +for (; q != null ; q=q.next) { +if (q.id == id) { +return q.event; +}} +} +return null; +}); + +Clazz_newMeth(C$, 'dispatchEvent$java_awt_AWTEvent', function (event) { +var src=event.getSource$(); +p$1.dispatchEventImpl$java_awt_AWTEvent$O$Z.apply(this, [event, src, true]); +}); + +Clazz_newMeth(C$, 'dispatchEventAndWait$java_awt_AWTEvent$O', function (event, src) { +p$1.dispatchEventImpl$java_awt_AWTEvent$O$Z.apply(this, [event, src, true]); +}); + +Clazz_newMeth(C$, 'dispatchEventImpl$java_awt_AWTEvent$O$Z', function (event, src, andWait) { +event.isPosted=true; +if (Clazz_instanceOf(event, "java.awt.ActiveEvent")) { +p$1.setCurrentEventAndMostRecentTimeImpl$java_awt_AWTEvent.apply(this, [event]); +$I$(6).dispatchEvent$java_awt_AWTEvent$O$Z(event, null, andWait); +} else if (Clazz_instanceOf(src, "java.awt.Component")) { +$I$(6).dispatchEvent$java_awt_AWTEvent$O$Z(event, src, andWait); +event.dispatched$(); +} else if (Clazz_instanceOf(src, "sun.awt.AWTAutoShutdown")) { +if (p$1.noEvents.apply(this, [])) { +this.dispatchThread.stopDispatching$(); +}} else { +System.err.println$S("unable to dispatch event: " + event); +}}, p$1); + +Clazz_newMeth(C$, 'getMostRecentEventTime$', function () { +return 0; +}, 1); + +Clazz_newMeth(C$, 'getMostRecentEventTimeEx$', function () { +return this.mostRecentEventTime; +}); + +Clazz_newMeth(C$, 'getCurrentEvent$', function () { +return p$1.getCurrentEventImpl.apply($I$(7).getEventQueue$(), []); +}, 1); + +Clazz_newMeth(C$, 'getCurrentEventImpl', function () { +return ($I$(6).isDispatchThread$() ? (this.currentEvent) : null); +}, p$1); + +Clazz_newMeth(C$, 'push$java_awt_EventQueue', function (newEventQueue) { +if (this.nextQueue != null ) { +this.nextQueue.push$java_awt_EventQueue(newEventQueue); +return; +}{ +while (this.peekEvent$() != null ){ +try { +newEventQueue.postEventPrivate$java_awt_AWTEvent(this.getNextEvent$()); +} catch (ie) { +if (Clazz_exceptionOf(ie,"InterruptedException")){ +} else { +throw ie; +} +} +} +newEventQueue.previousQueue=this; +}if (this.dispatchThread != null ) { +this.dispatchThread.stopDispatchingLater$(); +}this.nextQueue=newEventQueue; +var appContext=$I$(8).getAppContext$(); +if (appContext.get$O($I$(8).EVENT_QUEUE_KEY) === this ) { +appContext.put$O$O($I$(8).EVENT_QUEUE_KEY, newEventQueue); +}}); + +Clazz_newMeth(C$, 'pop$', function () { +var prev=this.previousQueue; +/*sync org.eclipse.jdt.core.dom.ConditionalExpression*/((prev != null ) ? prev : this); +{ +{ +if (this.nextQueue != null ) { +this.nextQueue.pop$(); +return; +}if (this.previousQueue == null ) { +throw Clazz_new_(Clazz_load('java.util.EmptyStackException')); +}this.previousQueue.nextQueue=null; +while (this.peekEvent$() != null ){ +try { +this.previousQueue.postEventPrivate$java_awt_AWTEvent(this.getNextEvent$()); +} catch (ie) { +if (Clazz_exceptionOf(ie,"InterruptedException")){ +} else { +throw ie; +} +} +} +var appContext=$I$(8).getAppContext$(); +if (appContext.get$O($I$(8).EVENT_QUEUE_KEY) === this ) { +appContext.put$O$O($I$(8).EVENT_QUEUE_KEY, this.previousQueue); +}this.previousQueue=null; +}}var dt=this.dispatchThread; +if (dt != null ) { +dt.stopDispatching$(); +}}); + +Clazz_newMeth(C$, 'isDispatchThread$', function () { +return $I$(6).isDispatchThread$(); +}, 1); + +Clazz_newMeth(C$, 'initDispatchThread$', function () { +{ +if (this.dispatchThread == null ) { +var t=Clazz_new_($I$(9).c$$ThreadGroup$S$java_awt_EventQueue,[this.threadGroup, this.name, this]); +$I$(4).getInstance$().notifyThreadBusy$Thread(t); +this.dispatchThread=t; +this.dispatchThread.start$(); +}}}); + +Clazz_newMeth(C$, 'detachDispatchThread$', function () { +this.dispatchThread=null; +}); + +Clazz_newMeth(C$, 'getDispatchThread$', function () { +return this.dispatchThread; +}); + +Clazz_newMeth(C$, 'removeSourceEvents$O$Z', function (source, removeAllEvents) { +$I$(3).flushPendingEvents$(); +{ +for (var i=0; i < 4; i++) { +var entry=this.queues[i].head; +var prev=null; +while (entry != null ){ +if ((entry.event.getSource$() === source ) && (removeAllEvents || !(Clazz_instanceOf(entry.event, "java.awt.SequencedEvent") || Clazz_instanceOf(entry.event, "java.awt.SentEvent") || Clazz_instanceOf(entry.event, "java.awt.event.FocusEvent") || Clazz_instanceOf(entry.event, "java.awt.event.WindowEvent") || Clazz_instanceOf(entry.event, "java.awt.event.KeyEvent") || Clazz_instanceOf(entry.event, "java.awt.event.InputMethodEvent") ) ) ) { +if (Clazz_instanceOf(entry.event, "java.awt.SequencedEvent")) { +(entry.event).dispose$(); +}if (Clazz_instanceOf(entry.event, "java.awt.SentEvent")) { +(entry.event).dispose$(); +}if (prev == null ) { +this.queues[i].head=entry.next; +} else { +prev.next=entry.next; +}p$1.uncacheEQItem$java_awt_EventQueueItem.apply(this, [entry]); +} else { +prev=entry; +}entry=entry.next; +} +this.queues[i].tail=prev; +} +}}); + +Clazz_newMeth(C$, 'setCurrentEventAndMostRecentTime$java_awt_AWTEvent', function (e) { +p$1.setCurrentEventAndMostRecentTimeImpl$java_awt_AWTEvent.apply($I$(7).getEventQueue$(), [e]); +}, 1); + +Clazz_newMeth(C$, 'setCurrentEventAndMostRecentTimeImpl$java_awt_AWTEvent', function (e) { +if ($I$(6).isDispatchThread$()) { +return; +}this.currentEvent=e; +var mostRecentEventTime2=-9223372036854775808; +if (Clazz_instanceOf(e, "java.awt.event.InputEvent")) { +var ie=e; +mostRecentEventTime2=ie.getWhen$(); +} else if (Clazz_instanceOf(e, "java.awt.event.InputMethodEvent")) { +var ime=e; +mostRecentEventTime2=ime.getWhen$(); +} else if (Clazz_instanceOf(e, "java.awt.event.ActionEvent")) { +var ae=e; +mostRecentEventTime2=ae.getWhen$(); +} else if (Clazz_instanceOf(e, "java.awt.event.InvocationEvent")) { +var ie=e; +mostRecentEventTime2=ie.getWhen$(); +}this.mostRecentEventTime=Math.max(this.mostRecentEventTime, mostRecentEventTime2); +}, p$1); + +Clazz_newMeth(C$, 'invokeLater$Runnable', function (runnable) { +$I$(7).getEventQueue$().postEvent$java_awt_AWTEvent(Clazz_new_($I$(10).c$$O$I$Runnable$O$Z,[$I$(7).getDefaultToolkit$(), 1200, runnable, null, false])); +}, 1); + +Clazz_newMeth(C$, 'invokeAndWait$Runnable', function (runnable) { +C$.invokeAndWaitStatic$O$Runnable($I$(7).getDefaultToolkit$(), runnable); +}, 1); + +Clazz_newMeth(C$, 'invokeAndWaitStatic$O$Runnable', function (source, runnable) { +if (C$.isDispatchThread$()) { +throw Clazz_new_($I$(11).c$$S,["Cannot call invokeAndWait from the event dispatcher thread"]); +}var event=Clazz_new_($I$(10).c$$O$I$Runnable$O$Z,[source, 1200, runnable, null, true]); +$I$(6).dispatchEvent$java_awt_AWTEvent$O$Z(event, null, true); +var eventThrowable=event.getThrowable$(); +if (eventThrowable != null ) { +throw Clazz_new_(Clazz_load('java.lang.reflect.InvocationTargetException').c$$Throwable,[eventThrowable]); +}}, 1); + +Clazz_newMeth(C$, 'wakeup$Z', function (isShutdown) { +{ +if (this.nextQueue != null ) { +this.nextQueue.wakeup$Z(isShutdown); +} else if (this.dispatchThread != null ) { +try { +this.dispatchThread.start$(); +} catch (e) { +if (Clazz_exceptionOf(e,"IllegalThreadStateException")){ +this.dispatchThread.run$(); +} else { +throw e; +} +} +} else if (!isShutdown) { +this.initDispatchThread$(); +}}}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:14 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt"),I$=[]; +var C$=Clazz_newClass(P$, "EventQueueItem"); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.event=null; +this.id=0; +this.next=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_AWTEvent', function (evt) { +C$.$init$.apply(this); +this.event=evt; +this.id=evt.getID$(); +}, 1); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:14 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt"),p$1={},I$=[[0,'java.awt.Dimension']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "FlowLayout", null, null, ['java.awt.LayoutManager', 'java.io.Serializable']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.align=0; +this.newAlign=0; +this.hgap=0; +this.vgap=0; +this.alignOnBaseline=false; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.c$$I$I$I.apply(this, [1, 5, 5]); +}, 1); + +Clazz_newMeth(C$, 'c$$I', function (align) { +C$.c$$I$I$I.apply(this, [align, 5, 5]); +}, 1); + +Clazz_newMeth(C$, 'c$$I$I$I', function (align, hgap, vgap) { +C$.$init$.apply(this); +this.hgap=hgap; +this.vgap=vgap; +this.setAlignment$I(align); +}, 1); + +Clazz_newMeth(C$, 'getAlignment$', function () { +return this.newAlign; +}); + +Clazz_newMeth(C$, 'setAlignment$I', function (align) { +this.newAlign=align; +switch (align) { +case 3: +this.align=0; +break; +case 4: +this.align=2; +break; +default: +this.align=align; +break; +} +}); + +Clazz_newMeth(C$, 'getHgap$', function () { +return this.hgap; +}); + +Clazz_newMeth(C$, 'setHgap$I', function (hgap) { +this.hgap=hgap; +}); + +Clazz_newMeth(C$, 'getVgap$', function () { +return this.vgap; +}); + +Clazz_newMeth(C$, 'setVgap$I', function (vgap) { +this.vgap=vgap; +}); + +Clazz_newMeth(C$, 'setAlignOnBaseline$Z', function (alignOnBaseline) { +this.alignOnBaseline=alignOnBaseline; +}); + +Clazz_newMeth(C$, 'getAlignOnBaseline$', function () { +return this.alignOnBaseline; +}); + +Clazz_newMeth(C$, 'addLayoutComponent$S$java_awt_Component', function (name, comp) { +}); + +Clazz_newMeth(C$, 'removeLayoutComponent$java_awt_Component', function (comp) { +}); + +Clazz_newMeth(C$, 'preferredLayoutSize$java_awt_Container', function (target) { +/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(target.getTreeLock$()); +{ +var dim=Clazz_new_($I$(1).c$$I$I,[0, 0]); +var nmembers=target.getComponentCount$(); +var firstVisibleComponent=true; +var useBaseline=this.getAlignOnBaseline$(); +var maxAscent=0; +var maxDescent=0; +for (var i=0; i < nmembers; i++) { +var m=target.getComponent$I(i); +if (m.isVisible$()) { +var d=m.getPreferredSize$(); +dim.height=Math.max(dim.height, d.height); +if (firstVisibleComponent) { +firstVisibleComponent=false; +} else { +dim.width+=this.hgap; +}dim.width+=d.width; +if (useBaseline) { +var baseline=m.getBaseline$I$I(d.width, d.height); +if (baseline >= 0) { +maxAscent=Math.max(maxAscent, baseline); +maxDescent=Math.max(maxDescent, d.height - baseline); +}}}} +if (useBaseline) { +dim.height=Math.max(maxAscent + maxDescent, dim.height); +}var insets=target.getInsets$(); +dim.width+=insets.left + insets.right + this.hgap * 2 ; +dim.height+=insets.top + insets.bottom + this.vgap * 2 ; +return dim; +}}); + +Clazz_newMeth(C$, 'minimumLayoutSize$java_awt_Container', function (target) { +/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(target.getTreeLock$()); +{ +var useBaseline=this.getAlignOnBaseline$(); +var dim=Clazz_new_($I$(1).c$$I$I,[0, 0]); +var nmembers=target.getComponentCount$(); +var maxAscent=0; +var maxDescent=0; +var firstVisibleComponent=true; +for (var i=0; i < nmembers; i++) { +var m=target.getComponent$I(i); +if (m.visible) { +var d=m.getMinimumSize$(); +dim.height=Math.max(dim.height, d.height); +if (firstVisibleComponent) { +firstVisibleComponent=false; +} else { +dim.width+=this.hgap; +}dim.width+=d.width; +if (useBaseline) { +var baseline=m.getBaseline$I$I(d.width, d.height); +if (baseline >= 0) { +maxAscent=Math.max(maxAscent, baseline); +maxDescent=Math.max(maxDescent, dim.height - baseline); +}}}} +if (useBaseline) { +dim.height=Math.max(maxAscent + maxDescent, dim.height); +}var insets=target.getInsets$(); +dim.width+=insets.left + insets.right + this.hgap * 2 ; +dim.height+=insets.top + insets.bottom + this.vgap * 2 ; +return dim; +}}); + +Clazz_newMeth(C$, 'moveComponents$java_awt_Container$I$I$I$I$I$I$Z$Z$IA$IA', function (target, x, y, width, height, rowStart, rowEnd, ltr, useBaseline, ascent, descent) { +switch (this.newAlign) { +case 0: +x+=ltr ? 0 : width; +break; +case 1: +x+=(width/2|0); +break; +case 2: +x+=ltr ? width : 0; +break; +case 3: +break; +case 4: +x+=width; +break; +} +var maxAscent=0; +var nonbaselineHeight=0; +var baselineOffset=0; +if (useBaseline) { +var maxDescent=0; +for (var i=rowStart; i < rowEnd; i++) { +var m=target.getComponent$I(i); +if (m.visible) { +if (ascent[i] >= 0) { +maxAscent=Math.max(maxAscent, ascent[i]); +maxDescent=Math.max(maxDescent, descent[i]); +} else { +nonbaselineHeight=Math.max(m.getHeight$(), nonbaselineHeight); +}}} +height=Math.max(maxAscent + maxDescent, nonbaselineHeight); +baselineOffset=((height - maxAscent - maxDescent )/2|0); +}for (var i=rowStart; i < rowEnd; i++) { +var m=target.getComponent$I(i); +if (m.isVisible$()) { +var cy; +if (useBaseline && ascent[i] >= 0 ) { +cy=y + baselineOffset + maxAscent - ascent[i]; +} else { +cy=y + ((height - m.height)/2|0); +}if (ltr) { +m.setLocation$I$I(x, cy); +} else { +m.setLocation$I$I(target.width - x - m.width , cy); +}x+=m.width + this.hgap; +}} +return height; +}, p$1); + +Clazz_newMeth(C$, 'layoutContainer$java_awt_Container', function (target) { +/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(target.getTreeLock$()); +{ +var insets=target.getInsets$(); +var maxwidth=target.width - (insets.left + insets.right + this.hgap * 2 ); +var nmembers=target.getComponentCount$(); +var x=0; +var y=insets.top + this.vgap; +var rowh=0; +var start=0; +var ltr=target.getComponentOrientation$().isLeftToRight$(); +var useBaseline=this.getAlignOnBaseline$(); +var ascent=null; +var descent=null; +if (useBaseline) { +ascent=Clazz_array(Integer.TYPE, [nmembers]); +descent=Clazz_array(Integer.TYPE, [nmembers]); +}for (var i=0; i < nmembers; i++) { +var m=target.getComponent$I(i); +if (m.isVisible$()) { +var d=m.getPreferredSize$(); +m.setSize$I$I(d.width, d.height); +if (useBaseline) { +var baseline=m.getBaseline$I$I(d.width, d.height); +if (baseline >= 0) { +ascent[i]=baseline; +descent[i]=d.height - baseline; +} else { +ascent[i]=-1; +}}if ((x == 0) || ((x + d.width) <= maxwidth) ) { +if (x > 0) { +x+=this.hgap; +}x+=d.width; +rowh=Math.max(rowh, d.height); +} else { +rowh=p$1.moveComponents$java_awt_Container$I$I$I$I$I$I$Z$Z$IA$IA.apply(this, [target, insets.left + this.hgap, y, maxwidth - x, rowh, start, i, ltr, useBaseline, ascent, descent]); +x=d.width; +y+=this.vgap + rowh; +rowh=d.height; +start=i; +}}} +p$1.moveComponents$java_awt_Container$I$I$I$I$I$I$Z$Z$IA$IA.apply(this, [target, insets.left + this.hgap, y, maxwidth - x, rowh, start, nmembers, ltr, useBaseline, ascent, descent]); +}}); + +Clazz_newMeth(C$, 'toString', function () { +var str=""; +switch (this.align) { +case 0: +str=",align=left"; +break; +case 1: +str=",align=center"; +break; +case 2: +str=",align=right"; +break; +case 3: +str=",align=leading"; +break; +case 4: +str=",align=trailing"; +break; +} +return this.getClass$().getName$() + "[hgap=" + this.hgap + ",vgap=" + this.vgap + str + "]" ; +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:14 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt"),I$=[]; +var C$=Clazz_newClass(P$, "FocusTraversalPolicy"); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'getInitialComponent$java_awt_Window', function (window) { +if (window == null ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["window cannot be equal to null."]); +}var def=this.getDefaultComponent$java_awt_Container(window); +if (def == null && window.isFocusableWindow$() ) { +def=window; +}return def; +}); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:14 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt"),p$1={},I$=[[0,'swingjs.JSFontMetrics','sun.font.AttributeValues','sun.font.EAttribute','java.awt.font.TextAttribute','java.awt.geom.AffineTransform','swingjs.JSToolkit','sun.font.AttributeMap',['java.text.AttributedCharacterIterator','.Attribute'],'javajs.util.SB',['java.awt.geom.Rectangle2D','.Float'],'java.util.Hashtable','swingjs.JSLineMetrics']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "Font"); +C$.haveMasks=false; +C$.RECOGNIZED_MASK=0; +C$.PRIMARY_MASK=0; +C$.SECONDARY_MASK=0; +C$.LAYOUT_MASK=0; +C$.EXTRA_MASK=0; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.fm=null; +this.family=null; +this.name=null; +this.style=0; +this.size=0; +this.pointSize=0; +this.font2DHandle=null; +this.values=null; +this.hasLayoutAttributes=false; +this.createdFont=false; +this.nonIdentityTx=false; +this.hash=0; +this.mapLineMetrics=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.createdFont=false; +}, 1); + +Clazz_newMeth(C$, 'getFontMetrics$', function () { +if (this.fm == null ) ((this.fm=Clazz_new_($I$(1)))).setFont$java_awt_Font(this); +return this.fm; +}); + +Clazz_newMeth(C$, 'setFontMetrics$java_awt_FontMetrics', function (fm) { +this.fm=fm; +}); + +Clazz_newMeth(C$, 'getAttributeValues', function () { +if (this.values == null ) { +C$.initMasks$(); +this.values=Clazz_new_($I$(2)); +this.values.setFamily$S(this.name); +this.values.setSize$F(this.pointSize); +if ((this.style & 1) != 0) { +this.values.setWeight$F(2); +}if ((this.style & 2) != 0) { +this.values.setPosture$F(0.2); +}this.values.defineAll$I(C$.PRIMARY_MASK); +}return this.values; +}, p$1); + +Clazz_newMeth(C$, 'c$$S$I$I', function (name, style, size) { +C$.$init$.apply(this); +this.name=(name != null ) ? name : "Default"; +this.style=(style & ~0x03) == 0 ? style : 0; +this.size=size; +this.pointSize=size; +}, 1); + +Clazz_newMeth(C$, 'c$$sun_font_AttributeValues$S$I$Z$sun_font_Font2DHandle', function (values, oldName, oldStyle, created, handle) { +C$.$init$.apply(this); +this.createdFont=created; +if (created) { +this.font2DHandle=handle; +var newName=null; +if (oldName != null ) { +newName=values.getFamily$(); +if (oldName.equals$O(newName)) newName=null; +}var newStyle=0; +if (oldStyle == -1) { +newStyle=-1; +} else { +if (values.getWeight$() >= 2.0 ) newStyle=1; +if (values.getPosture$() >= 0.2 ) newStyle|=2; +if (oldStyle == newStyle) newStyle=-1; +}if (newName != null ) { +this.createdFont=false; +this.font2DHandle=null; +}}p$1.initFromValues$sun_font_AttributeValues.apply(this, [values]); +}, 1); + +Clazz_newMeth(C$, 'c$$java_util_Map', function (attributes) { +C$.$init$.apply(this); +C$.initMasks$(); +p$1.initFromValues$sun_font_AttributeValues.apply(this, [$I$(2).fromMap$java_util_Map$I(attributes, C$.RECOGNIZED_MASK)]); +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Font', function (font) { +C$.$init$.apply(this); +if (font.values != null ) { +p$1.initFromValues$sun_font_AttributeValues.apply(this, [p$1.getAttributeValues.apply(font, []).clone$()]); +} else { +this.name=font.name; +this.style=font.style; +this.size=font.size; +this.pointSize=font.pointSize; +}}, 1); + +Clazz_newMeth(C$, 'initMasks$', function () { +if (C$.haveMasks) return; +C$.RECOGNIZED_MASK=$I$(2).MASK_ALL & ~$I$(2).getMask$sun_font_EAttribute($I$(3).EFONT); +C$.PRIMARY_MASK=$I$(2).getMask$sun_font_EAttributeA([$I$(3).EFAMILY, $I$(3).EWEIGHT, $I$(3).EWIDTH, $I$(3).EPOSTURE, $I$(3).ESIZE, $I$(3).ETRANSFORM, $I$(3).ESUPERSCRIPT, $I$(3).ETRACKING]); +C$.SECONDARY_MASK=C$.RECOGNIZED_MASK & ~C$.PRIMARY_MASK; +C$.LAYOUT_MASK=$I$(2).getMask$sun_font_EAttributeA([$I$(3).ECHAR_REPLACEMENT, $I$(3).EFOREGROUND, $I$(3).EBACKGROUND, $I$(3).EUNDERLINE, $I$(3).ESTRIKETHROUGH, $I$(3).ERUN_DIRECTION, $I$(3).EBIDI_EMBEDDING, $I$(3).EJUSTIFICATION, $I$(3).EINPUT_METHOD_HIGHLIGHT, $I$(3).EINPUT_METHOD_UNDERLINE, $I$(3).ESWAP_COLORS, $I$(3).ENUMERIC_SHAPING, $I$(3).EKERNING, $I$(3).ELIGATURES, $I$(3).ETRACKING]); +C$.EXTRA_MASK=$I$(2).getMask$sun_font_EAttributeA([$I$(3).ETRANSFORM, $I$(3).ESUPERSCRIPT, $I$(3).EWIDTH]); +C$.haveMasks=true; +}, 1); + +Clazz_newMeth(C$, 'initFromValues$sun_font_AttributeValues', function (values) { +this.values=values; +C$.initMasks$(); +values.defineAll$I(C$.PRIMARY_MASK); +this.name=values.getFamily$(); +this.pointSize=values.getSize$(); +this.size=((values.getSize$() + 0.5)|0); +if (values.getWeight$() >= 2.0 ) this.style|=1; +if (values.getPosture$() >= 0.2 ) this.style|=2; +this.nonIdentityTx=values.anyNonDefault$I(C$.EXTRA_MASK); +this.hasLayoutAttributes=values.anyNonDefault$I(C$.LAYOUT_MASK); +}, p$1); + +Clazz_newMeth(C$, 'getFont$java_util_Map', function (attributes) { +C$.initMasks$(); +if (Clazz_instanceOf(attributes, "sun.font.AttributeMap") && (attributes).getValues$() != null ) { +var values=(attributes).getValues$(); +if (values.isNonDefault$sun_font_EAttribute($I$(3).EFONT)) { +var font=values.getFont$(); +if (!values.anyDefined$I(C$.SECONDARY_MASK)) { +return font; +}values=p$1.getAttributeValues.apply(font, []).clone$(); +values.merge$java_util_Map$I(attributes, C$.SECONDARY_MASK); +return Clazz_new_(C$.c$$sun_font_AttributeValues$S$I$Z$sun_font_Font2DHandle,[values, font.name, font.style, font.createdFont, font.font2DHandle]); +}return Clazz_new_(C$.c$$java_util_Map,[attributes]); +}var font=attributes.get$O($I$(4).FONT); +if (font != null ) { +if (attributes.size$() > 1) { +var values=p$1.getAttributeValues.apply(font, []).clone$(); +values.merge$java_util_Map$I(attributes, C$.SECONDARY_MASK); +return Clazz_new_(C$.c$$sun_font_AttributeValues$S$I$Z$sun_font_Font2DHandle,[values, font.name, font.style, font.createdFont, font.font2DHandle]); +}return font; +}return Clazz_new_(C$.c$$java_util_Map,[attributes]); +}, 1); + +Clazz_newMeth(C$, 'getTransform$', function () { +return Clazz_new_($I$(5)); +}); + +Clazz_newMeth(C$, 'getFamily$', function () { +return (this.family == null ? this.family=$I$(6).getFontFamily$java_awt_Font(this) : this.family); +}); + +Clazz_newMeth(C$, 'getPSName$', function () { +switch (this.name) { +case "TimesRoman": +this.name="Serif"; +break; +case "Helvetica": +this.name="SansSerif"; +break; +case "Courier": +this.name="Monospaced"; +break; +default: +case "Monospaced": +case "Serif": +case "SansSerif": +case "Dialog": +case "DialogInput": +break; +} +return this.name + (this.isPlain$() ? ".plain" : "." + (this.isBold$() ? "bold" : "") + (this.isItalic$() ? "italic" : "") ); +}); + +Clazz_newMeth(C$, 'getName$', function () { +return this.name; +}); + +Clazz_newMeth(C$, 'getFontName$', function () { +return this.name; +}); + +Clazz_newMeth(C$, 'getStyle$', function () { +return this.style; +}); + +Clazz_newMeth(C$, 'getSize$', function () { +return this.size; +}); + +Clazz_newMeth(C$, 'getSize2D$', function () { +return this.pointSize; +}); + +Clazz_newMeth(C$, 'isPlain$', function () { +return this.style == 0; +}); + +Clazz_newMeth(C$, 'isBold$', function () { +return (this.style & 1) != 0; +}); + +Clazz_newMeth(C$, 'isItalic$', function () { +return (this.style & 2) != 0; +}); + +Clazz_newMeth(C$, 'isTransformed$', function () { +return this.nonIdentityTx; +}); + +Clazz_newMeth(C$, 'hasLayoutAttributes$', function () { +return this.hasLayoutAttributes; +}); + +Clazz_newMeth(C$, 'getFont$S', function (nm) { +return C$.getFont$S$java_awt_Font(nm, null); +}, 1); + +Clazz_newMeth(C$, 'decode$S', function (str) { +var fontName=str; +var styleName=""; +var fontSize=12; +var fontStyle=0; +if (str == null ) { +return Clazz_new_(C$.c$$S$I$I,["Dialog", fontStyle, fontSize]); +}var lastHyphen=str.lastIndexOf$I("-"); +var lastSpace=str.lastIndexOf$I(" "); +var sepChar=(lastHyphen > lastSpace) ? "-" : " "; +var sizeIndex=str.lastIndexOf$I(sepChar); +var styleIndex=str.lastIndexOf$I$I(sepChar, sizeIndex - 1); +var strlen=str.length$(); +if (sizeIndex > 0 && sizeIndex + 1 < strlen ) { +try { +fontSize=Integer.valueOf$S(str.substring$I(sizeIndex + 1)).intValue$(); +if (fontSize <= 0) { +fontSize=12; +}} catch (e) { +if (Clazz_exceptionOf(e,"NumberFormatException")){ +styleIndex=sizeIndex; +sizeIndex=strlen; +if (str.charAt$I(sizeIndex - 1) == sepChar) { +sizeIndex--; +}} else { +throw e; +} +} +}if (styleIndex >= 0 && styleIndex + 1 < strlen ) { +styleName=str.substring$I$I(styleIndex + 1, sizeIndex); +styleName=styleName.toLowerCase$(); +if (styleName.equals$O("bolditalic")) { +fontStyle=3; +} else if (styleName.equals$O("italic")) { +fontStyle=2; +} else if (styleName.equals$O("bold")) { +fontStyle=1; +} else if (styleName.equals$O("plain")) { +fontStyle=0; +} else { +styleIndex=sizeIndex; +if (str.charAt$I(styleIndex - 1) == sepChar) { +styleIndex--; +}}fontName=str.substring$I$I(0, styleIndex); +} else { +var fontEnd=strlen; +if (styleIndex > 0) { +fontEnd=styleIndex; +} else if (sizeIndex > 0) { +fontEnd=sizeIndex; +}if (fontEnd > 0 && str.charAt$I(fontEnd - 1) == sepChar ) { +fontEnd--; +}fontName=str.substring$I$I(0, fontEnd); +}return Clazz_new_(C$.c$$S$I$I,[fontName, fontStyle, fontSize]); +}, 1); + +Clazz_newMeth(C$, 'getFont$S$java_awt_Font', function (nm, font) { +var str=null; +try { +str=System.getProperty$S(nm); +} catch (e) { +if (Clazz_exceptionOf(e,"SecurityException")){ +} else { +throw e; +} +} +if (str == null ) { +return font; +}return C$.decode$S(str); +}, 1); + +Clazz_newMeth(C$, 'hashCode$', function () { +if (this.hash == 0) { +this.hash=this.name.hashCode$() ^ this.style ^ this.size ; +}return this.hash; +}); + +Clazz_newMeth(C$, 'equals$O', function (obj) { +if (obj === this ) { +return true; +}if (obj != null ) { +try { +var font=obj; +if (this.size == font.size && this.style == font.style && this.nonIdentityTx == font.nonIdentityTx && this.hasLayoutAttributes == font.hasLayoutAttributes && this.pointSize == font.pointSize && this.name.equals$O(font.name) ) { +return true; +}} catch (e) { +if (Clazz_exceptionOf(e,"ClassCastException")){ +} else { +throw e; +} +} +}return false; +}); + +Clazz_newMeth(C$, 'toString', function () { +var strStyle; +if (this.isBold$()) { +strStyle=this.isItalic$() ? "bolditalic" : "bold"; +} else { +strStyle=this.isItalic$() ? "italic" : "plain"; +}return this.getClass$().getName$() + "[family=" + this.getFamily$() + ",name=" + this.name + ",style=" + strStyle + ",size=" + this.size + "]" ; +}); + +Clazz_newMeth(C$, 'getAttributes$', function () { +return Clazz_new_($I$(7).c$$sun_font_AttributeValues,[p$1.getAttributeValues.apply(this, [])]); +}); + +Clazz_newMeth(C$, 'getAvailableAttributes$', function () { +var attributes=Clazz_array($I$(8), -1, [$I$(4).FAMILY, $I$(4).WEIGHT, $I$(4).WIDTH, $I$(4).SIZE, $I$(4).UNDERLINE, $I$(4).STRIKETHROUGH]); +return attributes; +}); + +Clazz_newMeth(C$, 'deriveFont$I$F', function (style, sizePts) { +var f=Clazz_new_(C$.c$$S$I$I,[this.name, style, ((sizePts + 0.5)|0)]); +f.pointSize=sizePts; +return f; +}); + +Clazz_newMeth(C$, 'deriveFont$F', function (sizePts) { +var f=Clazz_new_(C$.c$$S$I$I,[this.name, this.style, ((sizePts + 0.5)|0)]); +f.pointSize=sizePts; +return f; +}); + +Clazz_newMeth(C$, 'deriveFont$I', function (style) { +return Clazz_new_(C$.c$$S$I$I,[this.name, style, this.size]); +}); + +Clazz_newMeth(C$, 'hasUniformLineMetrics$', function () { +return false; +}); + +Clazz_newMeth(C$, 'getStringBounds$S$java_awt_font_FontRenderContext', function (str, frc) { +return this.getStringBoundsStr$S$I$I(str, 0, -1); +}); + +Clazz_newMeth(C$, 'getStringBounds$S$I$I$java_awt_font_FontRenderContext', function (str, beginIndex, limit, frc) { +return this.getStringBoundsStr$S$I$I(str, beginIndex, limit); +}); + +Clazz_newMeth(C$, 'getStringBounds$CA$I$I$java_awt_font_FontRenderContext', function (chars, beginIndex, limit, frc) { +var sb=Clazz_new_($I$(9)); +sb.appendCB$CA$I$I(chars, beginIndex, limit); +return this.getStringBoundsStr$S$I$I(sb.toString(), 0, -1); +}); + +Clazz_newMeth(C$, 'getStringBoundsStr$S$I$I', function (s, i, j) { +if (j >= i) s=s.substring$I$I(i, j); +var fm=this.getFontMetrics$(); +var dec=fm.getDescent$(); +var asc=fm.getAscent$(); +var width=fm.stringWidth$S(s); +return Clazz_new_($I$(10).c$$F$F$F$F,[0, -dec, width, asc + dec]); +}); + +Clazz_newMeth(C$, 'finalize$', function () { +}); + +Clazz_newMeth(C$, 'getLineMetrics$S', function (s) { +if (this.mapLineMetrics == null ) this.mapLineMetrics=Clazz_new_($I$(11)); +var lm=this.mapLineMetrics.get$O(s); +return (lm == null ? Clazz_new_($I$(12).c$$java_awt_Font$S,[this, s]) : lm); +}, p$1); + +Clazz_newMeth(C$, 'getLineMetrics$java_text_CharacterIterator$I$I$O', function (ci, beginIndex, limit, object) { +return null; +}); + +Clazz_newMeth(C$, 'getLineMetrics$CA$I$I$O', function (chars, beginIndex, limit, object) { +return null; +}); + +Clazz_newMeth(C$, 'getLineMetrics$S$I$I$O', function (str, beginIndex, limit, object) { +return null; +}); + +Clazz_newMeth(C$, 'getLineMetrics$S$O', function (str, object) { +return null; +}); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:14 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt.font"),I$=[[0,'java.awt.geom.AffineTransform','java.awt.RenderingHints']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "FontRenderContext"); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.tx=null; +this.aaHintValue=null; +this.fmHintValue=null; +this.defaulting=false; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.$init$.apply(this); +this.defaulting=true; +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_geom_AffineTransform$Z$Z', function (tx, isAntiAliased, usesFractionalMetrics) { +C$.$init$.apply(this); +if (tx != null && !tx.isIdentity$() ) { +this.tx=Clazz_new_($I$(1).c$$java_awt_geom_AffineTransform,[tx]); +}}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_geom_AffineTransform$O$O', function (tx, aaHint, fmHint) { +C$.$init$.apply(this); +if (tx != null && !tx.isIdentity$() ) { +this.tx=Clazz_new_($I$(1).c$$java_awt_geom_AffineTransform,[tx]); +}this.aaHintValue=aaHint; +this.fmHintValue=fmHint; +}, 1); + +Clazz_newMeth(C$, 'isTransformed$', function () { +if (!this.defaulting) { +return this.tx != null ; +} else { +return !this.getTransform$().isIdentity$(); +}}); + +Clazz_newMeth(C$, 'getTransformType$', function () { +if (!this.defaulting) { +if (this.tx == null ) { +return 0; +} else { +return this.tx.getType$(); +}} else { +return this.getTransform$().getType$(); +}}); + +Clazz_newMeth(C$, 'getTransform$', function () { +return (this.tx == null ) ? Clazz_new_($I$(1)) : Clazz_new_($I$(1).c$$java_awt_geom_AffineTransform,[this.tx]); +}); + +Clazz_newMeth(C$, 'isAntiAliased$', function () { +return !(this.aaHintValue === $I$(2).VALUE_TEXT_ANTIALIAS_OFF || this.aaHintValue === $I$(2).VALUE_TEXT_ANTIALIAS_DEFAULT ); +}); + +Clazz_newMeth(C$, 'usesFractionalMetrics$', function () { +return !(this.fmHintValue === $I$(2).VALUE_FRACTIONALMETRICS_OFF || this.fmHintValue === $I$(2).VALUE_FRACTIONALMETRICS_DEFAULT ); +}); + +Clazz_newMeth(C$, 'getAntiAliasingHint$', function () { +if (this.defaulting) { +if (this.isAntiAliased$()) { +return $I$(2).VALUE_TEXT_ANTIALIAS_ON; +} else { +return $I$(2).VALUE_TEXT_ANTIALIAS_OFF; +}}return this.aaHintValue; +}); + +Clazz_newMeth(C$, 'getFractionalMetricsHint$', function () { +if (this.defaulting) { +if (this.usesFractionalMetrics$()) { +return $I$(2).VALUE_FRACTIONALMETRICS_ON; +} else { +return $I$(2).VALUE_FRACTIONALMETRICS_OFF; +}}return this.fmHintValue; +}); + +Clazz_newMeth(C$, 'equals$O', function (obj) { +try { +return this.equals$java_awt_font_FontRenderContext(obj); +} catch (e) { +if (Clazz_exceptionOf(e,"ClassCastException")){ +return false; +} else { +throw e; +} +} +}); + +Clazz_newMeth(C$, 'equals$java_awt_font_FontRenderContext', function (rhs) { +if (this === rhs ) { +return true; +}if (rhs == null ) { +return false; +}if (!rhs.defaulting && !this.defaulting ) { +if (rhs.aaHintValue === this.aaHintValue && rhs.fmHintValue === this.fmHintValue ) { +return this.tx == null ? rhs.tx == null : this.tx.equals$O(rhs.tx); +}return false; +} else { +return rhs.getAntiAliasingHint$() === this.getAntiAliasingHint$() && rhs.getFractionalMetricsHint$() === this.getFractionalMetricsHint$() && rhs.getTransform$().equals$O(this.getTransform$()) ; +}}); + +Clazz_newMeth(C$, 'hashCode$', function () { +var hash=this.tx == null ? 0 : this.tx.hashCode$(); +if (this.defaulting) { +hash+=this.getAntiAliasingHint$().hashCode$(); +hash+=this.getFractionalMetricsHint$().hashCode$(); +} else { +hash+=this.aaHintValue.hashCode$(); +hash+=this.fmHintValue.hashCode$(); +}return hash; +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:21 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt"),p$1={},I$=[[0,'java.awt.font.FontRenderContext']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "FontMetrics"); +C$.DEFAULT_FRC=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.DEFAULT_FRC=Clazz_new_($I$(1).c$$java_awt_geom_AffineTransform$Z$Z,[null, false, false]); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.font=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Font', function (font) { +C$.$init$.apply(this); +this.font=font; +}, 1); + +Clazz_newMeth(C$, 'getFont$', function () { +return this.font; +}); + +Clazz_newMeth(C$, 'getFontRenderContext$', function () { +return C$.DEFAULT_FRC; +}); + +Clazz_newMeth(C$, 'getHeight$', function () { +return this.getLeading$() + this.getAscent$() + this.getDescent$() ; +}); + +Clazz_newMeth(C$, 'getMaxAscent$', function () { +return this.getAscent$(); +}); + +Clazz_newMeth(C$, 'getMaxDescent$', function () { +return this.getDescent$(); +}); + +Clazz_newMeth(C$, 'getMaxDecent$', function () { +return this.getMaxDescent$(); +}); + +Clazz_newMeth(C$, 'getMaxAdvance$', function () { +return this.charWidth$C("M"); +}); + +Clazz_newMeth(C$, 'charsWidth$CA$I$I', function (data, off, len) { +return this.stringWidth$S( String.instantialize(data, off, len)); +}); + +Clazz_newMeth(C$, 'bytesWidth$BA$I$I', function (data, off, len) { +return this.stringWidth$S( String.instantialize(data, 0, off, len)); +}); + +Clazz_newMeth(C$, 'getStringBounds$S$java_awt_Graphics', function (str, context) { +return this.font.getStringBounds$S$java_awt_font_FontRenderContext(str, p$1.myFRC$java_awt_Graphics.apply(this, [context])); +}); + +Clazz_newMeth(C$, 'getStringBounds$S$I$I$java_awt_Graphics', function (str, beginIndex, limit, context) { +return this.font.getStringBounds$S$I$I$java_awt_font_FontRenderContext(str, beginIndex, limit, p$1.myFRC$java_awt_Graphics.apply(this, [context])); +}); + +Clazz_newMeth(C$, 'getStringBounds$CA$I$I$java_awt_Graphics', function (chars, beginIndex, limit, context) { +return this.font.getStringBounds$CA$I$I$java_awt_font_FontRenderContext(chars, beginIndex, limit, p$1.myFRC$java_awt_Graphics.apply(this, [context])); +}); + +Clazz_newMeth(C$, 'myFRC$java_awt_Graphics', function (context) { +return null; +}, p$1); + +Clazz_newMeth(C$, 'toString', function () { +return this.getClass$().getName$() + "[font=" + this.getFont$() + "ascent=" + this.getAscent$() + ", descent=" + this.getDescent$() + ", height=" + this.getHeight$() + "]" ; +}); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:14 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt"),I$=[]; +var C$=Clazz_newClass(P$, "Frame", null, 'swingjs.a2s.Frame'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.superclazz.c$.apply(this, []); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_GraphicsConfiguration', function (gc) { +C$.superclazz.c$$java_awt_GraphicsConfiguration.apply(this, [gc]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'c$$S', function (title) { +C$.superclazz.c$$S.apply(this, [title]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'c$$S$java_awt_GraphicsConfiguration', function (title, gc) { +C$.superclazz.c$$S$java_awt_GraphicsConfiguration.apply(this, [title, gc]); +C$.$init$.apply(this); +}, 1); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:14 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt.geom"),p$1={},I$=[[0,'InternalError',['java.awt.geom.Point2D','.Double'],['java.awt.geom.Point2D','.Float'],'javajs.util.AU',['java.awt.geom.Path2D','.Double']]],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "AffineTransform", null, null, ['Cloneable', 'java.io.Serializable']); +C$.rot90conversion=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.rot90conversion=Clazz_array(Integer.TYPE, -1, [4, 5, 4, 5, 2, 3, 6, 7]); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.m00=0; +this.m10=0; +this.m01=0; +this.m11=0; +this.m02=0; +this.m12=0; +this.state=0; +this.type=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$D$D$D$D$D$D$I', function (m00, m10, m01, m11, m02, m12, state) { +C$.$init$.apply(this); +this.m00=m00; +this.m10=m10; +this.m01=m01; +this.m11=m11; +this.m02=m02; +this.m12=m12; +this.state=state; +this.type=-1; +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.$init$.apply(this); +this.m00=this.m11=1.0; +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_geom_AffineTransform', function (Tx) { +C$.$init$.apply(this); +this.m00=Tx.m00; +this.m10=Tx.m10; +this.m01=Tx.m01; +this.m11=Tx.m11; +this.m02=Tx.m02; +this.m12=Tx.m12; +this.state=Tx.state; +this.type=Tx.type; +}, 1); + +Clazz_newMeth(C$, 'c$$F$F$F$F$F$F', function (m00, m10, m01, m11, m02, m12) { +C$.$init$.apply(this); +this.m00=m00; +this.m10=m10; +this.m01=m01; +this.m11=m11; +this.m02=m02; +this.m12=m12; +this.updateState$(); +}, 1); + +Clazz_newMeth(C$, 'c$$FA', function (flatmatrix) { +C$.$init$.apply(this); +this.m00=flatmatrix[0]; +this.m10=flatmatrix[1]; +this.m01=flatmatrix[2]; +this.m11=flatmatrix[3]; +if (flatmatrix.length > 5) { +this.m02=flatmatrix[4]; +this.m12=flatmatrix[5]; +}this.updateState$(); +}, 1); + +Clazz_newMeth(C$, 'c$$D$D$D$D$D$D', function (m00, m10, m01, m11, m02, m12) { +C$.$init$.apply(this); +this.m00=m00; +this.m10=m10; +this.m01=m01; +this.m11=m11; +this.m02=m02; +this.m12=m12; +this.updateState$(); +}, 1); + +Clazz_newMeth(C$, 'c$$DA', function (flatmatrix) { +C$.$init$.apply(this); +this.m00=flatmatrix[0]; +this.m10=flatmatrix[1]; +this.m01=flatmatrix[2]; +this.m11=flatmatrix[3]; +if (flatmatrix.length > 5) { +this.m02=flatmatrix[4]; +this.m12=flatmatrix[5]; +}this.updateState$(); +}, 1); + +Clazz_newMeth(C$, 'getTranslateInstance$D$D', function (tx, ty) { +var Tx=Clazz_new_(C$); +Tx.setToTranslation$D$D(tx, ty); +return Tx; +}, 1); + +Clazz_newMeth(C$, 'getRotateInstance$D', function (theta) { +var Tx=Clazz_new_(C$); +p$1.setToRotationTheta$D.apply(Tx, [theta]); +return Tx; +}, 1); + +Clazz_newMeth(C$, 'getRotateInstance$D$D$D', function (theta, anchorx, anchory) { +var Tx=Clazz_new_(C$); +p$1.setToRotationThetaXY$D$D$D.apply(Tx, [theta, anchorx, anchory]); +return Tx; +}, 1); + +Clazz_newMeth(C$, 'getRotateInstance$D$D', function (vecx, vecy) { +var Tx=Clazz_new_(C$); +p$1.setToRotationXY$D$D.apply(Tx, [vecx, vecy]); +return Tx; +}, 1); + +Clazz_newMeth(C$, 'getRotateInstance$D$D$D$D', function (vecx, vecy, anchorx, anchory) { +var Tx=Clazz_new_(C$); +p$1.setToRotationV2XY$D$D$D$D.apply(Tx, [vecx, vecy, anchorx, anchory]); +return Tx; +}, 1); + +Clazz_newMeth(C$, 'getQuadrantRotateInstance$I', function (numquadrants) { +var Tx=Clazz_new_(C$); +Tx.setToQuadrantRotation$I(numquadrants); +return Tx; +}, 1); + +Clazz_newMeth(C$, 'getQuadrantRotateInstance$I$D$D', function (numquadrants, anchorx, anchory) { +var Tx=Clazz_new_(C$); +Tx.setToQuadrantRotation$I$D$D(numquadrants, anchorx, anchory); +return Tx; +}, 1); + +Clazz_newMeth(C$, 'getScaleInstance$D$D', function (sx, sy) { +var Tx=Clazz_new_(C$); +Tx.setToScale$D$D(sx, sy); +return Tx; +}, 1); + +Clazz_newMeth(C$, 'getShearInstance$D$D', function (shx, shy) { +var Tx=Clazz_new_(C$); +Tx.setToShear$D$D(shx, shy); +return Tx; +}, 1); + +Clazz_newMeth(C$, 'getType$', function () { +if (this.type == -1) { +p$1.calculateType.apply(this, []); +}return this.type; +}); + +Clazz_newMeth(C$, 'calculateType', function () { +var ret=0; +var sgn0; +var sgn1; +var M0; +var M1; +var M2; +var M3; +this.updateState$(); +switch (this.state) { +default: +p$1.stateError.apply(this, []); +case (7): +ret=1; +case (6): +if ((M0=this.m00) * (M2=this.m01) + (M3=this.m10) * (M1=this.m11) != 0 ) { +this.type=32; +return; +}sgn0=(M0 >= 0.0 ); +sgn1=(M1 >= 0.0 ); +if (sgn0 == sgn1 ) { +if (M0 != M1 || M2 != -M3 ) { +ret|=(20); +} else if (M0 * M1 - M2 * M3 != 1.0 ) { +ret|=(18); +} else { +ret|=16; +}} else { +if (M0 != -M1 || M2 != M3 ) { +ret|=(84); +} else if (M0 * M1 - M2 * M3 != 1.0 ) { +ret|=(82); +} else { +ret|=(80); +}}break; +case (5): +ret=1; +case (4): +sgn0=((M0=this.m01) >= 0.0 ); +sgn1=((M1=this.m10) >= 0.0 ); +if (sgn0 != sgn1 ) { +if (M0 != -M1 ) { +ret|=(12); +} else if (M0 != 1.0 && M0 != -1.0 ) { +ret|=(10); +} else { +ret|=8; +}} else { +if (M0 == M1 ) { +ret|=(74); +} else { +ret|=(76); +}}break; +case (3): +ret=1; +case (2): +sgn0=((M0=this.m00) >= 0.0 ); +sgn1=((M1=this.m11) >= 0.0 ); +if (sgn0 == sgn1 ) { +if (sgn0) { +if (M0 == M1 ) { +ret|=2; +} else { +ret|=4; +}} else { +if (M0 != M1 ) { +ret|=(12); +} else if (M0 != -1.0 ) { +ret|=(10); +} else { +ret|=8; +}}} else { +if (M0 == -M1 ) { +if (M0 == 1.0 || M0 == -1.0 ) { +ret|=64; +} else { +ret|=(66); +}} else { +ret|=(68); +}}break; +case (1): +ret=1; +break; +case (0): +break; +} +this.type=ret; +}, p$1); + +Clazz_newMeth(C$, 'getDeterminant$', function () { +switch (this.state) { +default: +p$1.stateError.apply(this, []); +case (7): +case (6): +return this.m00 * this.m11 - this.m01 * this.m10; +case (5): +case (4): +return -(this.m01 * this.m10); +case (3): +case (2): +return this.m00 * this.m11; +case (1): +case (0): +return 1.0; +} +}); + +Clazz_newMeth(C$, 'updateState$', function () { +if (this.m01 == 0.0 && this.m10 == 0.0 ) { +if (this.m00 == 1.0 && this.m11 == 1.0 ) { +if (this.m02 == 0.0 && this.m12 == 0.0 ) { +this.state=0; +this.type=0; +} else { +this.state=1; +this.type=1; +}} else { +if (this.m02 == 0.0 && this.m12 == 0.0 ) { +this.state=2; +this.type=-1; +} else { +this.state=(3); +this.type=-1; +}}} else { +if (this.m00 == 0.0 && this.m11 == 0.0 ) { +if (this.m02 == 0.0 && this.m12 == 0.0 ) { +this.state=4; +this.type=-1; +} else { +this.state=(5); +this.type=-1; +}} else { +if (this.m02 == 0.0 && this.m12 == 0.0 ) { +this.state=(6); +this.type=-1; +} else { +this.state=(7); +this.type=-1; +}}}}); + +Clazz_newMeth(C$, 'stateError', function () { +throw Clazz_new_($I$(1).c$$S,["missing case in transform state switch"]); +}, p$1); + +Clazz_newMeth(C$, 'getMatrix$DA', function (flatmatrix) { +flatmatrix[0]=this.m00; +flatmatrix[1]=this.m10; +flatmatrix[2]=this.m01; +flatmatrix[3]=this.m11; +if (flatmatrix.length > 5) { +flatmatrix[4]=this.m02; +flatmatrix[5]=this.m12; +}}); + +Clazz_newMeth(C$, 'getScaleX$', function () { +return this.m00; +}); + +Clazz_newMeth(C$, 'getScaleY$', function () { +return this.m11; +}); + +Clazz_newMeth(C$, 'getShearX$', function () { +return this.m01; +}); + +Clazz_newMeth(C$, 'getShearY$', function () { +return this.m10; +}); + +Clazz_newMeth(C$, 'getTranslateX$', function () { +return this.m02; +}); + +Clazz_newMeth(C$, 'getTranslateY$', function () { +return this.m12; +}); + +Clazz_newMeth(C$, 'translate$D$D', function (tx, ty) { +switch (this.state) { +default: +p$1.stateError.apply(this, []); +case (7): +this.m02=tx * this.m00 + ty * this.m01 + this.m02; +this.m12=tx * this.m10 + ty * this.m11 + this.m12; +if (this.m02 == 0.0 && this.m12 == 0.0 ) { +this.state=6; +if (this.type != -1) { +this.type-=1; +}}return; +case (6): +this.m02=tx * this.m00 + ty * this.m01; +this.m12=tx * this.m10 + ty * this.m11; +if (this.m02 != 0.0 || this.m12 != 0.0 ) { +this.state=7; +this.type|=1; +}return; +case (5): +this.m02=ty * this.m01 + this.m02; +this.m12=tx * this.m10 + this.m12; +if (this.m02 == 0.0 && this.m12 == 0.0 ) { +this.state=4; +if (this.type != -1) { +this.type-=1; +}}return; +case (4): +this.m02=ty * this.m01; +this.m12=tx * this.m10; +if (this.m02 != 0.0 || this.m12 != 0.0 ) { +this.state=5; +this.type|=1; +}return; +case (3): +this.m02=tx * this.m00 + this.m02; +this.m12=ty * this.m11 + this.m12; +if (this.m02 == 0.0 && this.m12 == 0.0 ) { +this.state=2; +if (this.type != -1) { +this.type-=1; +}}return; +case (2): +this.m02=tx * this.m00; +this.m12=ty * this.m11; +if (this.m02 != 0.0 || this.m12 != 0.0 ) { +this.state=3; +this.type|=1; +}return; +case (1): +this.m02=tx + this.m02; +this.m12=ty + this.m12; +if (this.m02 == 0.0 && this.m12 == 0.0 ) { +this.state=0; +this.type=0; +}return; +case (0): +this.m02=tx; +this.m12=ty; +if (tx != 0.0 || ty != 0.0 ) { +this.state=1; +this.type=1; +}return; +} +}); + +Clazz_newMeth(C$, 'rotate90', function () { +var M0=this.m00; +this.m00=this.m01; +this.m01=-M0; +M0=this.m10; +this.m10=this.m11; +this.m11=-M0; +var state=C$.rot90conversion[this.state]; +if ((state & (6)) == 2 && this.m00 == 1.0 && this.m11 == 1.0 ) { +state-=2; +}this.state=state; +this.type=-1; +}, p$1); + +Clazz_newMeth(C$, 'rotate180', function () { +this.m00=-this.m00; +this.m11=-this.m11; +var state=this.state; +if ((state & (4)) != 0) { +this.m01=-this.m01; +this.m10=-this.m10; +} else { +if (this.m00 == 1.0 && this.m11 == 1.0 ) { +this.state=state & ~2; +} else { +this.state=state | 2; +}}this.type=-1; +}, p$1); + +Clazz_newMeth(C$, 'rotate270', function () { +var M0=this.m00; +this.m00=-this.m01; +this.m01=M0; +M0=this.m10; +this.m10=-this.m11; +this.m11=M0; +var state=C$.rot90conversion[this.state]; +if ((state & (6)) == 2 && this.m00 == 1.0 && this.m11 == 1.0 ) { +state-=2; +}this.state=state; +this.type=-1; +}, p$1); + +Clazz_newMeth(C$, 'rotate$D', function (theta) { +var sin=Math.sin(theta); +if (sin == 1.0 ) { +p$1.rotate90.apply(this, []); +} else if (sin == -1.0 ) { +p$1.rotate270.apply(this, []); +} else { +var cos=Math.cos(theta); +if (cos == -1.0 ) { +p$1.rotate180.apply(this, []); +} else if (cos != 1.0 ) { +var M0; +var M1; +M0=this.m00; +M1=this.m01; +this.m00=cos * M0 + sin * M1; +this.m01=-sin * M0 + cos * M1; +M0=this.m10; +M1=this.m11; +this.m10=cos * M0 + sin * M1; +this.m11=-sin * M0 + cos * M1; +this.updateState$(); +}}}); + +Clazz_newMeth(C$, 'rotate$D$D$D', function (theta, anchorx, anchory) { +this.translate$D$D(anchorx, anchory); +this.rotate$D(theta); +this.translate$D$D(-anchorx, -anchory); +}); + +Clazz_newMeth(C$, 'rotate$D$D', function (vecx, vecy) { +if (vecy == 0.0 ) { +if (vecx < 0.0 ) { +p$1.rotate180.apply(this, []); +}} else if (vecx == 0.0 ) { +if (vecy > 0.0 ) { +p$1.rotate90.apply(this, []); +} else { +p$1.rotate270.apply(this, []); +}} else { +var len=Math.sqrt(vecx * vecx + vecy * vecy); +var sin=vecy / len; +var cos=vecx / len; +var M0; +var M1; +M0=this.m00; +M1=this.m01; +this.m00=cos * M0 + sin * M1; +this.m01=-sin * M0 + cos * M1; +M0=this.m10; +M1=this.m11; +this.m10=cos * M0 + sin * M1; +this.m11=-sin * M0 + cos * M1; +this.updateState$(); +}}); + +Clazz_newMeth(C$, 'rotate$D$D$D$D', function (vecx, vecy, anchorx, anchory) { +this.translate$D$D(anchorx, anchory); +this.rotate$D$D(vecx, vecy); +this.translate$D$D(-anchorx, -anchory); +}); + +Clazz_newMeth(C$, 'quadrantRotate$I', function (numquadrants) { +switch (numquadrants & 3) { +case 0: +break; +case 1: +p$1.rotate90.apply(this, []); +break; +case 2: +p$1.rotate180.apply(this, []); +break; +case 3: +p$1.rotate270.apply(this, []); +break; +} +}); + +Clazz_newMeth(C$, 'quadrantRotate$I$D$D', function (numquadrants, anchorx, anchory) { +switch (numquadrants & 3) { +case 0: +return; +case 1: +this.m02 += anchorx * (this.m00 - this.m01) + anchory * (this.m01 + this.m00); +this.m12 += anchorx * (this.m10 - this.m11) + anchory * (this.m11 + this.m10); +p$1.rotate90.apply(this, []); +break; +case 2: +this.m02 += anchorx * (this.m00 + this.m00) + anchory * (this.m01 + this.m01); +this.m12 += anchorx * (this.m10 + this.m10) + anchory * (this.m11 + this.m11); +p$1.rotate180.apply(this, []); +break; +case 3: +this.m02 += anchorx * (this.m00 + this.m01) + anchory * (this.m01 - this.m00); +this.m12 += anchorx * (this.m10 + this.m11) + anchory * (this.m11 - this.m10); +p$1.rotate270.apply(this, []); +break; +} +if (this.m02 == 0.0 && this.m12 == 0.0 ) { +this.state&=~1; +} else { +this.state|=1; +}}); + +Clazz_newMeth(C$, 'scale$D$D', function (sx, sy) { +var state=this.state; +switch (state) { +default: +p$1.stateError.apply(this, []); +case (7): +case (6): +this.m00 *= sx; +this.m11 *= sy; +case (5): +case (4): +this.m01 *= sy; +this.m10 *= sx; +if (this.m01 == 0 && this.m10 == 0 ) { +state&=1; +if (this.m00 == 1.0 && this.m11 == 1.0 ) { +this.type=(state == 0 ? 0 : 1); +} else { +state|=2; +this.type=-1; +}this.state=state; +}return; +case (3): +case (2): +this.m00 *= sx; +this.m11 *= sy; +if (this.m00 == 1.0 && this.m11 == 1.0 ) { +this.state=(state&=1); +this.type=(state == 0 ? 0 : 1); +} else { +this.type=-1; +}return; +case (1): +case (0): +this.m00=sx; +this.m11=sy; +if (sx != 1.0 || sy != 1.0 ) { +this.state=state | 2; +this.type=-1; +}return; +} +}); + +Clazz_newMeth(C$, 'shear$D$D', function (shx, shy) { +var state=this.state; +switch (state) { +default: +p$1.stateError.apply(this, []); +case (7): +case (6): +var M0; +var M1; +M0=this.m00; +M1=this.m01; +this.m00=M0 + M1 * shy; +this.m01=M0 * shx + M1; +M0=this.m10; +M1=this.m11; +this.m10=M0 + M1 * shy; +this.m11=M0 * shx + M1; +this.updateState$(); +return; +case (5): +case (4): +this.m00=this.m01 * shy; +this.m11=this.m10 * shx; +if (this.m00 != 0.0 || this.m11 != 0.0 ) { +this.state=state | 2; +}this.type=-1; +return; +case (3): +case (2): +this.m01=this.m00 * shx; +this.m10=this.m11 * shy; +if (this.m01 != 0.0 || this.m10 != 0.0 ) { +this.state=state | 4; +}this.type=-1; +return; +case (1): +case (0): +this.m01=shx; +this.m10=shy; +if (this.m01 != 0.0 || this.m10 != 0.0 ) { +this.state=state | 2 | 4 ; +this.type=-1; +}return; +} +}); + +Clazz_newMeth(C$, 'setToIdentity$', function () { +this.m00=this.m11=1.0; +this.m10=this.m01=this.m02=this.m12=0.0; +this.state=0; +this.type=0; +}); + +Clazz_newMeth(C$, 'setToTranslation$D$D', function (tx, ty) { +this.m00=1.0; +this.m10=0.0; +this.m01=0.0; +this.m11=1.0; +this.m02=tx; +this.m12=ty; +if (tx != 0.0 || ty != 0.0 ) { +this.state=1; +this.type=1; +} else { +this.state=0; +this.type=0; +}}); + +Clazz_newMeth(C$, 'setToRotation$D', function (theta) { +p$1.setToRotationTheta$D.apply(this, [theta]); +}); + +Clazz_newMeth(C$, 'setToRotationTheta$D', function (theta) { +var sin=Math.sin(theta); +var cos; +if (sin == 1.0 || sin == -1.0 ) { +cos=0.0; +this.state=4; +this.type=8; +} else { +cos=Math.cos(theta); +if (cos == -1.0 ) { +sin=0.0; +this.state=2; +this.type=8; +} else if (cos == 1.0 ) { +sin=0.0; +this.state=0; +this.type=0; +} else { +this.state=6; +this.type=16; +}}this.m00=cos; +this.m10=sin; +this.m01=-sin; +this.m11=cos; +this.m02=0.0; +this.m12=0.0; +}, p$1); + +Clazz_newMeth(C$, 'setToRotation$D$D$D', function (theta, anchorx, anchory) { +p$1.setToRotationThetaXY$D$D$D.apply(this, [theta, anchorx, anchory]); +}); + +Clazz_newMeth(C$, 'setToRotationThetaXY$D$D$D', function (theta, anchorx, anchory) { +p$1.setToRotationTheta$D.apply(this, [theta]); +var sin=this.m10; +var oneMinusCos=1.0 - this.m00; +this.m02=anchorx * oneMinusCos + anchory * sin; +this.m12=anchory * oneMinusCos - anchorx * sin; +if (this.m02 != 0.0 || this.m12 != 0.0 ) { +this.state|=1; +this.type|=1; +}}, p$1); + +Clazz_newMeth(C$, 'setToRotation$D$D', function (vecx, vecy) { +p$1.setToRotationXY$D$D.apply(this, [vecx, vecy]); +}); + +Clazz_newMeth(C$, 'setToRotationXY$D$D', function (vecx, vecy) { +var sin; +var cos; +if (vecy == 0 ) { +sin=0.0; +if (vecx < 0.0 ) { +cos=-1.0; +this.state=2; +this.type=8; +} else { +cos=1.0; +this.state=0; +this.type=0; +}} else if (vecx == 0 ) { +cos=0.0; +sin=(vecy > 0.0 ) ? 1.0 : -1.0; +this.state=4; +this.type=8; +} else { +var len=Math.sqrt(vecx * vecx + vecy * vecy); +cos=vecx / len; +sin=vecy / len; +this.state=6; +this.type=16; +}this.m00=cos; +this.m10=sin; +this.m01=-sin; +this.m11=cos; +this.m02=0.0; +this.m12=0.0; +}, p$1); + +Clazz_newMeth(C$, 'setToRotation$D$D$D$D', function (vecx, vecy, anchorx, anchory) { +p$1.setToRotationV2XY$D$D$D$D.apply(this, [vecx, vecy, anchorx, anchory]); +}); + +Clazz_newMeth(C$, 'setToRotationV2XY$D$D$D$D', function (vecx, vecy, anchorx, anchory) { +p$1.setToRotationXY$D$D.apply(this, [vecx, vecy]); +var sin=this.m10; +var oneMinusCos=1.0 - this.m00; +this.m02=anchorx * oneMinusCos + anchory * sin; +this.m12=anchory * oneMinusCos - anchorx * sin; +if (this.m02 != 0.0 || this.m12 != 0.0 ) { +this.state|=1; +this.type|=1; +}}, p$1); + +Clazz_newMeth(C$, 'setToQuadrantRotation$I', function (numquadrants) { +switch (numquadrants & 3) { +case 0: +this.m00=1.0; +this.m10=0.0; +this.m01=0.0; +this.m11=1.0; +this.m02=0.0; +this.m12=0.0; +this.state=0; +this.type=0; +break; +case 1: +this.m00=0.0; +this.m10=1.0; +this.m01=-1.0; +this.m11=0.0; +this.m02=0.0; +this.m12=0.0; +this.state=4; +this.type=8; +break; +case 2: +this.m00=-1.0; +this.m10=0.0; +this.m01=0.0; +this.m11=-1.0; +this.m02=0.0; +this.m12=0.0; +this.state=2; +this.type=8; +break; +case 3: +this.m00=0.0; +this.m10=-1.0; +this.m01=1.0; +this.m11=0.0; +this.m02=0.0; +this.m12=0.0; +this.state=4; +this.type=8; +break; +} +}); + +Clazz_newMeth(C$, 'setToQuadrantRotation$I$D$D', function (numquadrants, anchorx, anchory) { +switch (numquadrants & 3) { +case 0: +this.m00=1.0; +this.m10=0.0; +this.m01=0.0; +this.m11=1.0; +this.m02=0.0; +this.m12=0.0; +this.state=0; +this.type=0; +break; +case 1: +this.m00=0.0; +this.m10=1.0; +this.m01=-1.0; +this.m11=0.0; +this.m02=anchorx + anchory; +this.m12=anchory - anchorx; +if (this.m02 == 0.0 && this.m12 == 0.0 ) { +this.state=4; +this.type=8; +} else { +this.state=5; +this.type=9; +}break; +case 2: +this.m00=-1.0; +this.m10=0.0; +this.m01=0.0; +this.m11=-1.0; +this.m02=anchorx + anchorx; +this.m12=anchory + anchory; +if (this.m02 == 0.0 && this.m12 == 0.0 ) { +this.state=2; +this.type=8; +} else { +this.state=3; +this.type=9; +}break; +case 3: +this.m00=0.0; +this.m10=-1.0; +this.m01=1.0; +this.m11=0.0; +this.m02=anchorx - anchory; +this.m12=anchory + anchorx; +if (this.m02 == 0.0 && this.m12 == 0.0 ) { +this.state=4; +this.type=8; +} else { +this.state=5; +this.type=9; +}break; +} +}); + +Clazz_newMeth(C$, 'setToScale$D$D', function (sx, sy) { +this.m00=sx; +this.m10=0.0; +this.m01=0.0; +this.m11=sy; +this.m02=0.0; +this.m12=0.0; +if (sx != 1.0 || sy != 1.0 ) { +this.state=2; +this.type=-1; +} else { +this.state=0; +this.type=0; +}}); + +Clazz_newMeth(C$, 'setToShear$D$D', function (shx, shy) { +this.m00=1.0; +this.m01=shx; +this.m10=shy; +this.m11=1.0; +this.m02=0.0; +this.m12=0.0; +if (shx != 0.0 || shy != 0.0 ) { +this.state=(6); +this.type=-1; +} else { +this.state=0; +this.type=0; +}}); + +Clazz_newMeth(C$, 'setTransform$java_awt_geom_AffineTransform', function (t) { +this.m00=t.m00; +this.m10=t.m10; +this.m01=t.m01; +this.m11=t.m11; +this.m02=t.m02; +this.m12=t.m12; +this.state=t.state; +this.type=t.type; +}); + +Clazz_newMeth(C$, 'setTransform$D$D$D$D$D$D', function (m00, m10, m01, m11, m02, m12) { +this.m00=m00; +this.m10=m10; +this.m01=m01; +this.m11=m11; +this.m02=m02; +this.m12=m12; +this.updateState$(); +}); + +Clazz_newMeth(C$, 'concatenate$java_awt_geom_AffineTransform', function (Tx) { +var M0; +var M1; +var T00; +var T01; +var T10; +var T11; +var T02; +var T12; +var mystate=this.state; +var txstate=Tx.state; +switch ((txstate << 3) | mystate) { +case (0): +case (1): +case (2): +case (3): +case (4): +case (5): +case (6): +case (7): +return; +case (56): +this.m01=Tx.m01; +this.m10=Tx.m10; +case (24): +this.m00=Tx.m00; +this.m11=Tx.m11; +case (8): +this.m02=Tx.m02; +this.m12=Tx.m12; +this.state=txstate; +this.type=Tx.type; +return; +case (48): +this.m01=Tx.m01; +this.m10=Tx.m10; +case (16): +this.m00=Tx.m00; +this.m11=Tx.m11; +this.state=txstate; +this.type=Tx.type; +return; +case (40): +this.m02=Tx.m02; +this.m12=Tx.m12; +case (32): +this.m01=Tx.m01; +this.m10=Tx.m10; +this.m00=this.m11=0.0; +this.state=txstate; +this.type=Tx.type; +return; +case (15): +case (14): +case (13): +case (12): +case (11): +case (10): +case (9): +this.translate$D$D(Tx.m02, Tx.m12); +return; +case (23): +case (22): +case (21): +case (20): +case (19): +case (18): +case (17): +this.scale$D$D(Tx.m00, Tx.m11); +return; +case (39): +case (38): +T01=Tx.m01; +T10=Tx.m10; +M0=this.m00; +this.m00=this.m01 * T10; +this.m01=M0 * T01; +M0=this.m10; +this.m10=this.m11 * T10; +this.m11=M0 * T01; +this.type=-1; +return; +case (37): +case (36): +this.m00=this.m01 * Tx.m10; +this.m01=0.0; +this.m11=this.m10 * Tx.m01; +this.m10=0.0; +this.state=mystate ^ (6); +this.type=-1; +return; +case (35): +case (34): +this.m01=this.m00 * Tx.m01; +this.m00=0.0; +this.m10=this.m11 * Tx.m10; +this.m11=0.0; +this.state=mystate ^ (6); +this.type=-1; +return; +case (33): +this.m00=0.0; +this.m01=Tx.m01; +this.m10=Tx.m10; +this.m11=0.0; +this.state=5; +this.type=-1; +return; +} +T00=Tx.m00; +T01=Tx.m01; +T02=Tx.m02; +T10=Tx.m10; +T11=Tx.m11; +T12=Tx.m12; +switch (mystate) { +default: +p$1.stateError.apply(this, []); +case (6): +this.state=mystate | txstate; +case (7): +M0=this.m00; +M1=this.m01; +this.m00=T00 * M0 + T10 * M1; +this.m01=T01 * M0 + T11 * M1; +this.m02 += T02 * M0 + T12 * M1; +M0=this.m10; +M1=this.m11; +this.m10=T00 * M0 + T10 * M1; +this.m11=T01 * M0 + T11 * M1; +this.m12 += T02 * M0 + T12 * M1; +this.type=-1; +return; +case (5): +case (4): +M0=this.m01; +this.m00=T10 * M0; +this.m01=T11 * M0; +this.m02 += T12 * M0; +M0=this.m10; +this.m10=T00 * M0; +this.m11=T01 * M0; +this.m12 += T02 * M0; +break; +case (3): +case (2): +M0=this.m00; +this.m00=T00 * M0; +this.m01=T01 * M0; +this.m02 += T02 * M0; +M0=this.m11; +this.m10=T10 * M0; +this.m11=T11 * M0; +this.m12 += T12 * M0; +break; +case (1): +this.m00=T00; +this.m01=T01; +this.m02 += T02; +this.m10=T10; +this.m11=T11; +this.m12 += T12; +this.state=txstate | 1; +this.type=-1; +return; +} +this.updateState$(); +}); + +Clazz_newMeth(C$, 'preConcatenate$java_awt_geom_AffineTransform', function (Tx) { +var M0; +var M1; +var T00; +var T01; +var T10; +var T11; +var T02; +var T12; +var mystate=this.state; +var txstate=Tx.state; +switch ((txstate << 3) | mystate) { +case (0): +case (1): +case (2): +case (3): +case (4): +case (5): +case (6): +case (7): +return; +case (8): +case (10): +case (12): +case (14): +this.m02=Tx.m02; +this.m12=Tx.m12; +this.state=mystate | 1; +this.type|=1; +return; +case (9): +case (11): +case (13): +case (15): +this.m02=this.m02 + Tx.m02; +this.m12=this.m12 + Tx.m12; +return; +case (17): +case (16): +this.state=mystate | 2; +case (23): +case (22): +case (21): +case (20): +case (19): +case (18): +T00=Tx.m00; +T11=Tx.m11; +if ((mystate & 4) != 0) { +this.m01=this.m01 * T00; +this.m10=this.m10 * T11; +if ((mystate & 2) != 0) { +this.m00=this.m00 * T00; +this.m11=this.m11 * T11; +}} else { +this.m00=this.m00 * T00; +this.m11=this.m11 * T11; +}if ((mystate & 1) != 0) { +this.m02=this.m02 * T00; +this.m12=this.m12 * T11; +}this.type=-1; +return; +case (37): +case (36): +mystate=mystate | 2; +case (33): +case (32): +case (35): +case (34): +this.state=mystate ^ 4; +case (39): +case (38): +T01=Tx.m01; +T10=Tx.m10; +M0=this.m00; +this.m00=this.m10 * T01; +this.m10=M0 * T10; +M0=this.m01; +this.m01=this.m11 * T01; +this.m11=M0 * T10; +M0=this.m02; +this.m02=this.m12 * T01; +this.m12=M0 * T10; +this.type=-1; +return; +} +T00=Tx.m00; +T01=Tx.m01; +T02=Tx.m02; +T10=Tx.m10; +T11=Tx.m11; +T12=Tx.m12; +switch (mystate) { +default: +p$1.stateError.apply(this, []); +case (7): +M0=this.m02; +M1=this.m12; +T02 += M0 * T00 + M1 * T01; +T12 += M0 * T10 + M1 * T11; +case (6): +this.m02=T02; +this.m12=T12; +M0=this.m00; +M1=this.m10; +this.m00=M0 * T00 + M1 * T01; +this.m10=M0 * T10 + M1 * T11; +M0=this.m01; +M1=this.m11; +this.m01=M0 * T00 + M1 * T01; +this.m11=M0 * T10 + M1 * T11; +break; +case (5): +M0=this.m02; +M1=this.m12; +T02 += M0 * T00 + M1 * T01; +T12 += M0 * T10 + M1 * T11; +case (4): +this.m02=T02; +this.m12=T12; +M0=this.m10; +this.m00=M0 * T01; +this.m10=M0 * T11; +M0=this.m01; +this.m01=M0 * T00; +this.m11=M0 * T10; +break; +case (3): +M0=this.m02; +M1=this.m12; +T02 += M0 * T00 + M1 * T01; +T12 += M0 * T10 + M1 * T11; +case (2): +this.m02=T02; +this.m12=T12; +M0=this.m00; +this.m00=M0 * T00; +this.m10=M0 * T10; +M0=this.m11; +this.m01=M0 * T01; +this.m11=M0 * T11; +break; +case (1): +M0=this.m02; +M1=this.m12; +T02 += M0 * T00 + M1 * T01; +T12 += M0 * T10 + M1 * T11; +case (0): +this.m02=T02; +this.m12=T12; +this.m00=T00; +this.m10=T10; +this.m01=T01; +this.m11=T11; +this.state=mystate | txstate; +this.type=-1; +return; +} +this.updateState$(); +}); + +Clazz_newMeth(C$, 'createInverse$', function () { +var det; +switch (this.state) { +default: +p$1.stateError.apply(this, []); +case (7): +det=this.m00 * this.m11 - this.m01 * this.m10; +if (Math.abs(det) <= 4.9E-324 ) { +throw Clazz_new_(Clazz_load('java.awt.geom.NoninvertibleTransformException').c$$S,["Determinant is " + new Double(det).toString()]); +}return Clazz_new_(C$.c$$D$D$D$D$D$D$I,[this.m11 / det, -this.m10 / det, -this.m01 / det, this.m00 / det, (this.m01 * this.m12 - this.m11 * this.m02) / det, (this.m10 * this.m02 - this.m00 * this.m12) / det, (7)]); +case (6): +det=this.m00 * this.m11 - this.m01 * this.m10; +if (Math.abs(det) <= 4.9E-324 ) { +throw Clazz_new_(Clazz_load('java.awt.geom.NoninvertibleTransformException').c$$S,["Determinant is " + new Double(det).toString()]); +}return Clazz_new_(C$.c$$D$D$D$D$D$D$I,[this.m11 / det, -this.m10 / det, -this.m01 / det, this.m00 / det, 0.0, 0.0, (6)]); +case (5): +if (this.m01 == 0.0 || this.m10 == 0.0 ) { +throw Clazz_new_(Clazz_load('java.awt.geom.NoninvertibleTransformException').c$$S,["Determinant is 0"]); +}return Clazz_new_(C$.c$$D$D$D$D$D$D$I,[0.0, 1.0 / this.m01, 1.0 / this.m10, 0.0, -this.m12 / this.m10, -this.m02 / this.m01, (5)]); +case (4): +if (this.m01 == 0.0 || this.m10 == 0.0 ) { +throw Clazz_new_(Clazz_load('java.awt.geom.NoninvertibleTransformException').c$$S,["Determinant is 0"]); +}return Clazz_new_(C$.c$$D$D$D$D$D$D$I,[0.0, 1.0 / this.m01, 1.0 / this.m10, 0.0, 0.0, 0.0, (4)]); +case (3): +if (this.m00 == 0.0 || this.m11 == 0.0 ) { +throw Clazz_new_(Clazz_load('java.awt.geom.NoninvertibleTransformException').c$$S,["Determinant is 0"]); +}return Clazz_new_(C$.c$$D$D$D$D$D$D$I,[1.0 / this.m00, 0.0, 0.0, 1.0 / this.m11, -this.m02 / this.m00, -this.m12 / this.m11, (3)]); +case (2): +if (this.m00 == 0.0 || this.m11 == 0.0 ) { +throw Clazz_new_(Clazz_load('java.awt.geom.NoninvertibleTransformException').c$$S,["Determinant is 0"]); +}return Clazz_new_(C$.c$$D$D$D$D$D$D$I,[1.0 / this.m00, 0.0, 0.0, 1.0 / this.m11, 0.0, 0.0, (2)]); +case (1): +return Clazz_new_(C$.c$$D$D$D$D$D$D$I,[1.0, 0.0, 0.0, 1.0, -this.m02, -this.m12, (1)]); +case (0): +return Clazz_new_(C$); +} +}); + +Clazz_newMeth(C$, 'invert$', function () { +var M00; +var M01; +var M02; +var M10; +var M11; +var M12; +var det; +switch (this.state) { +default: +p$1.stateError.apply(this, []); +case (7): +M00=this.m00; +M01=this.m01; +M02=this.m02; +M10=this.m10; +M11=this.m11; +M12=this.m12; +det=M00 * M11 - M01 * M10; +if (Math.abs(det) <= 4.9E-324 ) { +throw Clazz_new_(Clazz_load('java.awt.geom.NoninvertibleTransformException').c$$S,["Determinant is " + new Double(det).toString()]); +}this.m00=M11 / det; +this.m10=-M10 / det; +this.m01=-M01 / det; +this.m11=M00 / det; +this.m02=(M01 * M12 - M11 * M02) / det; +this.m12=(M10 * M02 - M00 * M12) / det; +break; +case (6): +M00=this.m00; +M01=this.m01; +M10=this.m10; +M11=this.m11; +det=M00 * M11 - M01 * M10; +if (Math.abs(det) <= 4.9E-324 ) { +throw Clazz_new_(Clazz_load('java.awt.geom.NoninvertibleTransformException').c$$S,["Determinant is " + new Double(det).toString()]); +}this.m00=M11 / det; +this.m10=-M10 / det; +this.m01=-M01 / det; +this.m11=M00 / det; +break; +case (5): +M01=this.m01; +M02=this.m02; +M10=this.m10; +M12=this.m12; +if (M01 == 0.0 || M10 == 0.0 ) { +throw Clazz_new_(Clazz_load('java.awt.geom.NoninvertibleTransformException').c$$S,["Determinant is 0"]); +}this.m10=1.0 / M01; +this.m01=1.0 / M10; +this.m02=-M12 / M10; +this.m12=-M02 / M01; +break; +case (4): +M01=this.m01; +M10=this.m10; +if (M01 == 0.0 || M10 == 0.0 ) { +throw Clazz_new_(Clazz_load('java.awt.geom.NoninvertibleTransformException').c$$S,["Determinant is 0"]); +}this.m10=1.0 / M01; +this.m01=1.0 / M10; +break; +case (3): +M00=this.m00; +M02=this.m02; +M11=this.m11; +M12=this.m12; +if (M00 == 0.0 || M11 == 0.0 ) { +throw Clazz_new_(Clazz_load('java.awt.geom.NoninvertibleTransformException').c$$S,["Determinant is 0"]); +}this.m00=1.0 / M00; +this.m11=1.0 / M11; +this.m02=-M02 / M00; +this.m12=-M12 / M11; +break; +case (2): +M00=this.m00; +M11=this.m11; +if (M00 == 0.0 || M11 == 0.0 ) { +throw Clazz_new_(Clazz_load('java.awt.geom.NoninvertibleTransformException').c$$S,["Determinant is 0"]); +}this.m00=1.0 / M00; +this.m11=1.0 / M11; +break; +case (1): +this.m02=-this.m02; +this.m12=-this.m12; +break; +case (0): +break; +} +}); + +Clazz_newMeth(C$, 'transform$java_awt_geom_Point2D$java_awt_geom_Point2D', function (ptSrc, ptDst) { +if (ptDst == null ) { +if (Clazz_instanceOf(ptSrc, "java.awt.geom.Point2D.Double")) { +ptDst=Clazz_new_($I$(2)); +} else { +ptDst=Clazz_new_($I$(3)); +}}var x=ptSrc.getX$(); +var y=ptSrc.getY$(); +switch (this.state) { +default: +p$1.stateError.apply(this, []); +case (7): +ptDst.setLocation$D$D(x * this.m00 + y * this.m01 + this.m02, x * this.m10 + y * this.m11 + this.m12); +return ptDst; +case (6): +ptDst.setLocation$D$D(x * this.m00 + y * this.m01, x * this.m10 + y * this.m11); +return ptDst; +case (5): +ptDst.setLocation$D$D(y * this.m01 + this.m02, x * this.m10 + this.m12); +return ptDst; +case (4): +ptDst.setLocation$D$D(y * this.m01, x * this.m10); +return ptDst; +case (3): +ptDst.setLocation$D$D(x * this.m00 + this.m02, y * this.m11 + this.m12); +return ptDst; +case (2): +ptDst.setLocation$D$D(x * this.m00, y * this.m11); +return ptDst; +case (1): +ptDst.setLocation$D$D(x + this.m02, y + this.m12); +return ptDst; +case (0): +ptDst.setLocation$D$D(x, y); +return ptDst; +} +}); + +Clazz_newMeth(C$, 'transform$java_awt_geom_Point2DA$I$java_awt_geom_Point2DA$I$I', function (ptSrc, srcOff, ptDst, dstOff, numPts) { +p$1.transformPts$java_awt_geom_Point2DA$I$java_awt_geom_Point2DA$I$I.apply(this, [ptSrc, srcOff, ptDst, dstOff, numPts]); +}); + +Clazz_newMeth(C$, 'transformPts$java_awt_geom_Point2DA$I$java_awt_geom_Point2DA$I$I', function (ptSrc, srcOff, ptDst, dstOff, numPts) { +var state=this.state; +while (--numPts >= 0){ +var src=ptSrc[srcOff++]; +var x=src.getX$(); +var y=src.getY$(); +var dst=ptDst[dstOff++]; +if (dst == null ) { +if (Clazz_instanceOf(src, "java.awt.geom.Point2D.Double")) { +dst=Clazz_new_($I$(2)); +} else { +dst=Clazz_new_($I$(3)); +}ptDst[dstOff - 1]=dst; +}switch (state) { +default: +p$1.stateError.apply(this, []); +case (7): +dst.setLocation$D$D(x * this.m00 + y * this.m01 + this.m02, x * this.m10 + y * this.m11 + this.m12); +break; +case (6): +dst.setLocation$D$D(x * this.m00 + y * this.m01, x * this.m10 + y * this.m11); +break; +case (5): +dst.setLocation$D$D(y * this.m01 + this.m02, x * this.m10 + this.m12); +break; +case (4): +dst.setLocation$D$D(y * this.m01, x * this.m10); +break; +case (3): +dst.setLocation$D$D(x * this.m00 + this.m02, y * this.m11 + this.m12); +break; +case (2): +dst.setLocation$D$D(x * this.m00, y * this.m11); +break; +case (1): +dst.setLocation$D$D(x + this.m02, y + this.m12); +break; +case (0): +dst.setLocation$D$D(x, y); +break; +} +} +}, p$1); + +Clazz_newMeth(C$, 'transform$FA$I$FA$I$I', function (srcPts, srcOff, dstPts, dstOff, numPts) { +var M00; +var M01; +var M02; +var M10; +var M11; +var M12; +if (dstPts === srcPts && dstOff > srcOff && dstOff < srcOff + numPts * 2 ) { +System.arraycopy$O$I$O$I$I(srcPts, srcOff, dstPts, dstOff, numPts * 2); +srcOff=dstOff; +}switch (this.state) { +default: +p$1.stateError.apply(this, []); +case (7): +M00=this.m00; +M01=this.m01; +M02=this.m02; +M10=this.m10; +M11=this.m11; +M12=this.m12; +while (--numPts >= 0){ +var x=srcPts[srcOff++]; +var y=srcPts[srcOff++]; +dstPts[dstOff++]=(M00 * x + M01 * y + M02); +dstPts[dstOff++]=(M10 * x + M11 * y + M12); +} +return; +case (6): +M00=this.m00; +M01=this.m01; +M10=this.m10; +M11=this.m11; +while (--numPts >= 0){ +var x=srcPts[srcOff++]; +var y=srcPts[srcOff++]; +dstPts[dstOff++]=(M00 * x + M01 * y); +dstPts[dstOff++]=(M10 * x + M11 * y); +} +return; +case (5): +M01=this.m01; +M02=this.m02; +M10=this.m10; +M12=this.m12; +while (--numPts >= 0){ +var x=srcPts[srcOff++]; +dstPts[dstOff++]=(M01 * srcPts[srcOff++] + M02); +dstPts[dstOff++]=(M10 * x + M12); +} +return; +case (4): +M01=this.m01; +M10=this.m10; +while (--numPts >= 0){ +var x=srcPts[srcOff++]; +dstPts[dstOff++]=(M01 * srcPts[srcOff++]); +dstPts[dstOff++]=(M10 * x); +} +return; +case (3): +M00=this.m00; +M02=this.m02; +M11=this.m11; +M12=this.m12; +while (--numPts >= 0){ +dstPts[dstOff++]=(M00 * srcPts[srcOff++] + M02); +dstPts[dstOff++]=(M11 * srcPts[srcOff++] + M12); +} +return; +case (2): +M00=this.m00; +M11=this.m11; +while (--numPts >= 0){ +dstPts[dstOff++]=(M00 * srcPts[srcOff++]); +dstPts[dstOff++]=(M11 * srcPts[srcOff++]); +} +return; +case (1): +M02=this.m02; +M12=this.m12; +while (--numPts >= 0){ +dstPts[dstOff++]=(srcPts[srcOff++] + M02); +dstPts[dstOff++]=(srcPts[srcOff++] + M12); +} +return; +case (0): +if (srcPts !== dstPts || srcOff != dstOff ) { +System.arraycopy$O$I$O$I$I(srcPts, srcOff, dstPts, dstOff, numPts * 2); +}return; +} +}); + +Clazz_newMeth(C$, 'transform$DA$I$DA$I$I', function (srcPts, srcOff, dstPts, dstOff, numPts) { +if (numPts == 0) return; +if (!$I$(4).isAD$O(srcPts)) { +var src=srcPts; +var dst=dstPts; +this.transform$java_awt_geom_Point2DA$I$java_awt_geom_Point2DA$I$I(src, srcOff, dst, dstOff, numPts); +return; +}var M00; +var M01; +var M02; +var M10; +var M11; +var M12; +if (dstPts === srcPts && dstOff > srcOff && dstOff < srcOff + numPts * 2 ) { +System.arraycopy$O$I$O$I$I(srcPts, srcOff, dstPts, dstOff, numPts * 2); +srcOff=dstOff; +}switch (this.state) { +default: +p$1.stateError.apply(this, []); +case (7): +M00=this.m00; +M01=this.m01; +M02=this.m02; +M10=this.m10; +M11=this.m11; +M12=this.m12; +while (--numPts >= 0){ +var x=srcPts[srcOff++]; +var y=srcPts[srcOff++]; +dstPts[dstOff++]=M00 * x + M01 * y + M02; +dstPts[dstOff++]=M10 * x + M11 * y + M12; +} +return; +case (6): +M00=this.m00; +M01=this.m01; +M10=this.m10; +M11=this.m11; +while (--numPts >= 0){ +var x=srcPts[srcOff++]; +var y=srcPts[srcOff++]; +dstPts[dstOff++]=M00 * x + M01 * y; +dstPts[dstOff++]=M10 * x + M11 * y; +} +return; +case (5): +M01=this.m01; +M02=this.m02; +M10=this.m10; +M12=this.m12; +while (--numPts >= 0){ +var x=srcPts[srcOff++]; +dstPts[dstOff++]=M01 * srcPts[srcOff++] + M02; +dstPts[dstOff++]=M10 * x + M12; +} +return; +case (4): +M01=this.m01; +M10=this.m10; +while (--numPts >= 0){ +var x=srcPts[srcOff++]; +dstPts[dstOff++]=M01 * srcPts[srcOff++]; +dstPts[dstOff++]=M10 * x; +} +return; +case (3): +M00=this.m00; +M02=this.m02; +M11=this.m11; +M12=this.m12; +while (--numPts >= 0){ +dstPts[dstOff++]=M00 * srcPts[srcOff++] + M02; +dstPts[dstOff++]=M11 * srcPts[srcOff++] + M12; +} +return; +case (2): +M00=this.m00; +M11=this.m11; +while (--numPts >= 0){ +dstPts[dstOff++]=M00 * srcPts[srcOff++]; +dstPts[dstOff++]=M11 * srcPts[srcOff++]; +} +return; +case (1): +M02=this.m02; +M12=this.m12; +while (--numPts >= 0){ +dstPts[dstOff++]=srcPts[srcOff++] + M02; +dstPts[dstOff++]=srcPts[srcOff++] + M12; +} +return; +case (0): +if (srcPts !== dstPts || srcOff != dstOff ) { +System.arraycopy$O$I$O$I$I(srcPts, srcOff, dstPts, dstOff, numPts * 2); +}return; +} +}); + +Clazz_newMeth(C$, 'transform$FA$I$DA$I$I', function (srcPts, srcOff, dstPts, dstOff, numPts) { +var M00; +var M01; +var M02; +var M10; +var M11; +var M12; +switch (this.state) { +default: +p$1.stateError.apply(this, []); +case (7): +M00=this.m00; +M01=this.m01; +M02=this.m02; +M10=this.m10; +M11=this.m11; +M12=this.m12; +while (--numPts >= 0){ +var x=srcPts[srcOff++]; +var y=srcPts[srcOff++]; +dstPts[dstOff++]=M00 * x + M01 * y + M02; +dstPts[dstOff++]=M10 * x + M11 * y + M12; +} +return; +case (6): +M00=this.m00; +M01=this.m01; +M10=this.m10; +M11=this.m11; +while (--numPts >= 0){ +var x=srcPts[srcOff++]; +var y=srcPts[srcOff++]; +dstPts[dstOff++]=M00 * x + M01 * y; +dstPts[dstOff++]=M10 * x + M11 * y; +} +return; +case (5): +M01=this.m01; +M02=this.m02; +M10=this.m10; +M12=this.m12; +while (--numPts >= 0){ +var x=srcPts[srcOff++]; +dstPts[dstOff++]=M01 * srcPts[srcOff++] + M02; +dstPts[dstOff++]=M10 * x + M12; +} +return; +case (4): +M01=this.m01; +M10=this.m10; +while (--numPts >= 0){ +var x=srcPts[srcOff++]; +dstPts[dstOff++]=M01 * srcPts[srcOff++]; +dstPts[dstOff++]=M10 * x; +} +return; +case (3): +M00=this.m00; +M02=this.m02; +M11=this.m11; +M12=this.m12; +while (--numPts >= 0){ +dstPts[dstOff++]=M00 * srcPts[srcOff++] + M02; +dstPts[dstOff++]=M11 * srcPts[srcOff++] + M12; +} +return; +case (2): +M00=this.m00; +M11=this.m11; +while (--numPts >= 0){ +dstPts[dstOff++]=M00 * srcPts[srcOff++]; +dstPts[dstOff++]=M11 * srcPts[srcOff++]; +} +return; +case (1): +M02=this.m02; +M12=this.m12; +while (--numPts >= 0){ +dstPts[dstOff++]=srcPts[srcOff++] + M02; +dstPts[dstOff++]=srcPts[srcOff++] + M12; +} +return; +case (0): +while (--numPts >= 0){ +dstPts[dstOff++]=srcPts[srcOff++]; +dstPts[dstOff++]=srcPts[srcOff++]; +} +return; +} +}); + +Clazz_newMeth(C$, 'transform$DA$I$FA$I$I', function (srcPts, srcOff, dstPts, dstOff, numPts) { +var M00; +var M01; +var M02; +var M10; +var M11; +var M12; +switch (this.state) { +default: +p$1.stateError.apply(this, []); +case (7): +M00=this.m00; +M01=this.m01; +M02=this.m02; +M10=this.m10; +M11=this.m11; +M12=this.m12; +while (--numPts >= 0){ +var x=srcPts[srcOff++]; +var y=srcPts[srcOff++]; +dstPts[dstOff++]=(M00 * x + M01 * y + M02); +dstPts[dstOff++]=(M10 * x + M11 * y + M12); +} +return; +case (6): +M00=this.m00; +M01=this.m01; +M10=this.m10; +M11=this.m11; +while (--numPts >= 0){ +var x=srcPts[srcOff++]; +var y=srcPts[srcOff++]; +dstPts[dstOff++]=(M00 * x + M01 * y); +dstPts[dstOff++]=(M10 * x + M11 * y); +} +return; +case (5): +M01=this.m01; +M02=this.m02; +M10=this.m10; +M12=this.m12; +while (--numPts >= 0){ +var x=srcPts[srcOff++]; +dstPts[dstOff++]=(M01 * srcPts[srcOff++] + M02); +dstPts[dstOff++]=(M10 * x + M12); +} +return; +case (4): +M01=this.m01; +M10=this.m10; +while (--numPts >= 0){ +var x=srcPts[srcOff++]; +dstPts[dstOff++]=(M01 * srcPts[srcOff++]); +dstPts[dstOff++]=(M10 * x); +} +return; +case (3): +M00=this.m00; +M02=this.m02; +M11=this.m11; +M12=this.m12; +while (--numPts >= 0){ +dstPts[dstOff++]=(M00 * srcPts[srcOff++] + M02); +dstPts[dstOff++]=(M11 * srcPts[srcOff++] + M12); +} +return; +case (2): +M00=this.m00; +M11=this.m11; +while (--numPts >= 0){ +dstPts[dstOff++]=(M00 * srcPts[srcOff++]); +dstPts[dstOff++]=(M11 * srcPts[srcOff++]); +} +return; +case (1): +M02=this.m02; +M12=this.m12; +while (--numPts >= 0){ +dstPts[dstOff++]=(srcPts[srcOff++] + M02); +dstPts[dstOff++]=(srcPts[srcOff++] + M12); +} +return; +case (0): +while (--numPts >= 0){ +dstPts[dstOff++]=(srcPts[srcOff++]); +dstPts[dstOff++]=(srcPts[srcOff++]); +} +return; +} +}); + +Clazz_newMeth(C$, 'inverseTransform$java_awt_geom_Point2D$java_awt_geom_Point2D', function (ptSrc, ptDst) { +if (ptDst == null ) { +if (Clazz_instanceOf(ptSrc, "java.awt.geom.Point2D.Double")) { +ptDst=Clazz_new_($I$(2)); +} else { +ptDst=Clazz_new_($I$(3)); +}}var x=ptSrc.getX$(); +var y=ptSrc.getY$(); +switch (this.state) { +default: +p$1.stateError.apply(this, []); +case (7): +x -= this.m02; +y -= this.m12; +case (6): +var det=this.m00 * this.m11 - this.m01 * this.m10; +if (Math.abs(det) <= 4.9E-324 ) { +throw Clazz_new_(Clazz_load('java.awt.geom.NoninvertibleTransformException').c$$S,["Determinant is " + new Double(det).toString()]); +}ptDst.setLocation$D$D((x * this.m11 - y * this.m01) / det, (y * this.m00 - x * this.m10) / det); +return ptDst; +case (5): +x -= this.m02; +y -= this.m12; +case (4): +if (this.m01 == 0.0 || this.m10 == 0.0 ) { +throw Clazz_new_(Clazz_load('java.awt.geom.NoninvertibleTransformException').c$$S,["Determinant is 0"]); +}ptDst.setLocation$D$D(y / this.m10, x / this.m01); +return ptDst; +case (3): +x -= this.m02; +y -= this.m12; +case (2): +if (this.m00 == 0.0 || this.m11 == 0.0 ) { +throw Clazz_new_(Clazz_load('java.awt.geom.NoninvertibleTransformException').c$$S,["Determinant is 0"]); +}ptDst.setLocation$D$D(x / this.m00, y / this.m11); +return ptDst; +case (1): +ptDst.setLocation$D$D(x - this.m02, y - this.m12); +return ptDst; +case (0): +ptDst.setLocation$D$D(x, y); +return ptDst; +} +}); + +Clazz_newMeth(C$, 'inverseTransform$DA$I$DA$I$I', function (srcPts, srcOff, dstPts, dstOff, numPts) { +var M00; +var M01; +var M02; +var M10; +var M11; +var M12; +var det; +if (dstPts === srcPts && dstOff > srcOff && dstOff < srcOff + numPts * 2 ) { +System.arraycopy$O$I$O$I$I(srcPts, srcOff, dstPts, dstOff, numPts * 2); +srcOff=dstOff; +}switch (this.state) { +default: +p$1.stateError.apply(this, []); +case (7): +M00=this.m00; +M01=this.m01; +M02=this.m02; +M10=this.m10; +M11=this.m11; +M12=this.m12; +det=M00 * M11 - M01 * M10; +if (Math.abs(det) <= 4.9E-324 ) { +throw Clazz_new_(Clazz_load('java.awt.geom.NoninvertibleTransformException').c$$S,["Determinant is " + new Double(det).toString()]); +}while (--numPts >= 0){ +var x=srcPts[srcOff++] - M02; +var y=srcPts[srcOff++] - M12; +dstPts[dstOff++]=(x * M11 - y * M01) / det; +dstPts[dstOff++]=(y * M00 - x * M10) / det; +} +return; +case (6): +M00=this.m00; +M01=this.m01; +M10=this.m10; +M11=this.m11; +det=M00 * M11 - M01 * M10; +if (Math.abs(det) <= 4.9E-324 ) { +throw Clazz_new_(Clazz_load('java.awt.geom.NoninvertibleTransformException').c$$S,["Determinant is " + new Double(det).toString()]); +}while (--numPts >= 0){ +var x=srcPts[srcOff++]; +var y=srcPts[srcOff++]; +dstPts[dstOff++]=(x * M11 - y * M01) / det; +dstPts[dstOff++]=(y * M00 - x * M10) / det; +} +return; +case (5): +M01=this.m01; +M02=this.m02; +M10=this.m10; +M12=this.m12; +if (M01 == 0.0 || M10 == 0.0 ) { +throw Clazz_new_(Clazz_load('java.awt.geom.NoninvertibleTransformException').c$$S,["Determinant is 0"]); +}while (--numPts >= 0){ +var x=srcPts[srcOff++] - M02; +dstPts[dstOff++]=(srcPts[srcOff++] - M12) / M10; +dstPts[dstOff++]=x / M01; +} +return; +case (4): +M01=this.m01; +M10=this.m10; +if (M01 == 0.0 || M10 == 0.0 ) { +throw Clazz_new_(Clazz_load('java.awt.geom.NoninvertibleTransformException').c$$S,["Determinant is 0"]); +}while (--numPts >= 0){ +var x=srcPts[srcOff++]; +dstPts[dstOff++]=srcPts[srcOff++] / M10; +dstPts[dstOff++]=x / M01; +} +return; +case (3): +M00=this.m00; +M02=this.m02; +M11=this.m11; +M12=this.m12; +if (M00 == 0.0 || M11 == 0.0 ) { +throw Clazz_new_(Clazz_load('java.awt.geom.NoninvertibleTransformException').c$$S,["Determinant is 0"]); +}while (--numPts >= 0){ +dstPts[dstOff++]=(srcPts[srcOff++] - M02) / M00; +dstPts[dstOff++]=(srcPts[srcOff++] - M12) / M11; +} +return; +case (2): +M00=this.m00; +M11=this.m11; +if (M00 == 0.0 || M11 == 0.0 ) { +throw Clazz_new_(Clazz_load('java.awt.geom.NoninvertibleTransformException').c$$S,["Determinant is 0"]); +}while (--numPts >= 0){ +dstPts[dstOff++]=srcPts[srcOff++] / M00; +dstPts[dstOff++]=srcPts[srcOff++] / M11; +} +return; +case (1): +M02=this.m02; +M12=this.m12; +while (--numPts >= 0){ +dstPts[dstOff++]=srcPts[srcOff++] - M02; +dstPts[dstOff++]=srcPts[srcOff++] - M12; +} +return; +case (0): +if (srcPts !== dstPts || srcOff != dstOff ) { +System.arraycopy$O$I$O$I$I(srcPts, srcOff, dstPts, dstOff, numPts * 2); +}return; +} +}); + +Clazz_newMeth(C$, 'deltaTransform$java_awt_geom_Point2D$java_awt_geom_Point2D', function (ptSrc, ptDst) { +if (ptDst == null ) { +if (Clazz_instanceOf(ptSrc, "java.awt.geom.Point2D.Double")) { +ptDst=Clazz_new_($I$(2)); +} else { +ptDst=Clazz_new_($I$(3)); +}}var x=ptSrc.getX$(); +var y=ptSrc.getY$(); +switch (this.state) { +default: +p$1.stateError.apply(this, []); +case (7): +case (6): +ptDst.setLocation$D$D(x * this.m00 + y * this.m01, x * this.m10 + y * this.m11); +return ptDst; +case (5): +case (4): +ptDst.setLocation$D$D(y * this.m01, x * this.m10); +return ptDst; +case (3): +case (2): +ptDst.setLocation$D$D(x * this.m00, y * this.m11); +return ptDst; +case (1): +case (0): +ptDst.setLocation$D$D(x, y); +return ptDst; +} +}); + +Clazz_newMeth(C$, 'deltaTransform$DA$I$DA$I$I', function (srcPts, srcOff, dstPts, dstOff, numPts) { +var M00; +var M01; +var M10; +var M11; +if (dstPts === srcPts && dstOff > srcOff && dstOff < srcOff + numPts * 2 ) { +System.arraycopy$O$I$O$I$I(srcPts, srcOff, dstPts, dstOff, numPts * 2); +srcOff=dstOff; +}switch (this.state) { +default: +p$1.stateError.apply(this, []); +case (7): +case (6): +M00=this.m00; +M01=this.m01; +M10=this.m10; +M11=this.m11; +while (--numPts >= 0){ +var x=srcPts[srcOff++]; +var y=srcPts[srcOff++]; +dstPts[dstOff++]=x * M00 + y * M01; +dstPts[dstOff++]=x * M10 + y * M11; +} +return; +case (5): +case (4): +M01=this.m01; +M10=this.m10; +while (--numPts >= 0){ +var x=srcPts[srcOff++]; +dstPts[dstOff++]=srcPts[srcOff++] * M01; +dstPts[dstOff++]=x * M10; +} +return; +case (3): +case (2): +M00=this.m00; +M11=this.m11; +while (--numPts >= 0){ +dstPts[dstOff++]=srcPts[srcOff++] * M00; +dstPts[dstOff++]=srcPts[srcOff++] * M11; +} +return; +case (1): +case (0): +if (srcPts !== dstPts || srcOff != dstOff ) { +System.arraycopy$O$I$O$I$I(srcPts, srcOff, dstPts, dstOff, numPts * 2); +}return; +} +}); + +Clazz_newMeth(C$, 'createTransformedShape$java_awt_Shape', function (pSrc) { +if (pSrc == null ) { +return null; +}return Clazz_new_($I$(5).c$$java_awt_Shape$java_awt_geom_AffineTransform,[pSrc, this]); +}); + +Clazz_newMeth(C$, '_matround$D', function (matval) { +return Math.rint(matval * 1.0E15) / 1.0E15; +}, 1); + +Clazz_newMeth(C$, 'toString', function () { +return ("AffineTransform[[" + new Double(C$._matround$D(this.m00)).toString() + ", " + new Double(C$._matround$D(this.m01)).toString() + ", " + new Double(C$._matround$D(this.m02)).toString() + "], [" + new Double(C$._matround$D(this.m10)).toString() + ", " + new Double(C$._matround$D(this.m11)).toString() + ", " + new Double(C$._matround$D(this.m12)).toString() + "]]" ); +}); + +Clazz_newMeth(C$, 'isIdentity$', function () { +return (this.state == 0 || (this.getType$() == 0) ); +}); + +Clazz_newMeth(C$, 'clone$', function () { +try { +return Clazz_clone(this); +} catch (e) { +if (Clazz_exceptionOf(e,"CloneNotSupportedException")){ +throw Clazz_new_($I$(1)); +} else { +throw e; +} +} +}); + +Clazz_newMeth(C$, 'hashCode$', function () { +var bits=Double.doubleToLongBits$D(this.m00); +bits=bits * 31 + Double.doubleToLongBits$D(this.m01); +bits=bits * 31 + Double.doubleToLongBits$D(this.m02); +bits=bits * 31 + Double.doubleToLongBits$D(this.m10); +bits=bits * 31 + Double.doubleToLongBits$D(this.m11); +bits=bits * 31 + Double.doubleToLongBits$D(this.m12); +return (((bits|0)) ^ (((bits >> 32)|0))); +}); + +Clazz_newMeth(C$, 'equals$O', function (obj) { +if (!(Clazz_instanceOf(obj, "java.awt.geom.AffineTransform"))) { +return false; +}var a=obj; +return ((this.m00 == a.m00 ) && (this.m01 == a.m01 ) && (this.m02 == a.m02 ) && (this.m10 == a.m10 ) && (this.m11 == a.m11 ) && (this.m12 == a.m12 ) ); +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:21 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt.geom"),I$=[[0,'InternalError']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "Dimension2D", null, null, 'Cloneable'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'setSize$java_awt_geom_Dimension2D', function (d) { +this.setSize$D$D(d.getWidth$(), d.getHeight$()); +}); + +Clazz_newMeth(C$, 'clone$', function () { +try { +return Clazz_clone(this); +} catch (e) { +if (Clazz_exceptionOf(e,"CloneNotSupportedException")){ +throw Clazz_new_($I$(1)); +} else { +throw e; +} +} +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:22 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt.geom"),p$1={},I$=[[0,['java.awt.geom.Path2D','.Iterator'],'java.util.Arrays',['java.awt.geom.Point2D','.Float'],'sun.awt.geom.Curve',['java.awt.geom.Rectangle2D','.Float'],['java.awt.geom.Path2D','.Float','.CopyIterator'],['java.awt.geom.Path2D','.Float','.TxIterator'],['java.awt.geom.Point2D','.Double'],['java.awt.geom.Rectangle2D','.Double'],['java.awt.geom.Path2D','.Double','.CopyIterator'],['java.awt.geom.Path2D','.Double','.TxIterator'],'java.awt.geom.FlatteningPathIterator']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "Path2D", function(){ +Clazz_newInstance(this, arguments,0,C$); +}, null, ['java.awt.Shape', 'Cloneable']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.pointTypes=null; +this.numTypes=0; +this.numCoords=0; +this.windingRule=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'c$$I$I', function (rule, initialTypes) { +C$.$init$.apply(this); +this.setWindingRule$I(rule); +this.pointTypes=Clazz_array(Byte.TYPE, [initialTypes]); +}, 1); + +Clazz_newMeth(C$, 'closePath$', function () { +if (this.numTypes == 0 || this.pointTypes[this.numTypes - 1] != 4 ) { +this.needRoom$Z$I(true, 0); +this.pointTypes[this.numTypes++]=(4|0); +}}); + +Clazz_newMeth(C$, 'append$java_awt_Shape$Z', function (s, connect) { +this.append$java_awt_geom_PathIterator$Z(s.getPathIterator$java_awt_geom_AffineTransform(null), connect); +}); + +Clazz_newMeth(C$, 'getWindingRule$', function () { +return this.windingRule; +}); + +Clazz_newMeth(C$, 'setWindingRule$I', function (rule) { +if (rule != 0 && rule != 1 ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["winding rule must be WIND_EVEN_ODD or WIND_NON_ZERO"]); +}this.windingRule=rule; +}); + +Clazz_newMeth(C$, 'getCurrentPoint$', function () { +var index=this.numCoords; +if (this.numTypes < 1 || index < 1 ) { +return null; +}if (this.pointTypes[this.numTypes - 1] == 4) { + loop : for (var i=this.numTypes - 2; i > 0; i--) { +switch (this.pointTypes[i]) { +case 0: +break loop; +case 1: +index-=2; +break; +case 2: +index-=4; +break; +case 3: +index-=6; +break; +case 4: +break; +} +} +}return this.getPoint$I(index - 2); +}); + +Clazz_newMeth(C$, 'reset$', function () { +this.numTypes=this.numCoords=0; +}); + +Clazz_newMeth(C$, 'createTransformedShape$java_awt_geom_AffineTransform', function (at) { +var p2d=this.clone$(); +if (at != null ) { +p2d.transform$java_awt_geom_AffineTransform(at); +}return p2d; +}); + +Clazz_newMeth(C$, 'getBounds$', function () { +return this.getBounds2D$().getBounds$(); +}); + +Clazz_newMeth(C$, 'contains$java_awt_geom_PathIterator$D$D', function (pi, x, y) { +if (x * 0.0 + y * 0.0 == 0.0 ) { +var mask=(pi.getWindingRule$() == 1 ? -1 : 1); +var cross=$I$(4).pointCrossingsForPath$java_awt_geom_PathIterator$D$D(pi, x, y); +return ((cross & mask) != 0); +} else { +return false; +}}, 1); + +Clazz_newMeth(C$, 'contains$java_awt_geom_PathIterator$java_awt_geom_Point2D', function (pi, p) { +return C$.contains$java_awt_geom_PathIterator$D$D(pi, p.getX$(), p.getY$()); +}, 1); + +Clazz_newMeth(C$, 'contains$D$D', function (x, y) { +if (x * 0.0 + y * 0.0 == 0.0 ) { +if (this.numTypes < 2) { +return false; +}var mask=(this.windingRule == 1 ? -1 : 1); +return ((this.pointCrossings$D$D(x, y) & mask) != 0); +} else { +return false; +}}); + +Clazz_newMeth(C$, 'contains$java_awt_geom_Point2D', function (p) { +return this.contains$D$D(p.getX$(), p.getY$()); +}); + +Clazz_newMeth(C$, 'contains$java_awt_geom_PathIterator$D$D$D$D', function (pi, x, y, w, h) { +if (java.lang.Double.isNaN$D(x + w) || java.lang.Double.isNaN$D(y + h) ) { +return false; +}if (w <= 0 || h <= 0 ) { +return false; +}var mask=(pi.getWindingRule$() == 1 ? -1 : 2); +var crossings=$I$(4).rectCrossingsForPath$java_awt_geom_PathIterator$D$D$D$D(pi, x, y, x + w, y + h); +return (crossings != -2147483648 && (crossings & mask) != 0 ); +}, 1); + +Clazz_newMeth(C$, 'contains$java_awt_geom_PathIterator$java_awt_geom_Rectangle2D', function (pi, r) { +return C$.contains$java_awt_geom_PathIterator$D$D$D$D(pi, r.getX$(), r.getY$(), r.getWidth$(), r.getHeight$()); +}, 1); + +Clazz_newMeth(C$, 'contains$D$D$D$D', function (x, y, w, h) { +if (java.lang.Double.isNaN$D(x + w) || java.lang.Double.isNaN$D(y + h) ) { +return false; +}if (w <= 0 || h <= 0 ) { +return false; +}var mask=(this.windingRule == 1 ? -1 : 2); +var crossings=this.rectCrossings$D$D$D$D(x, y, x + w, y + h); +return (crossings != -2147483648 && (crossings & mask) != 0 ); +}); + +Clazz_newMeth(C$, 'contains$java_awt_geom_Rectangle2D', function (r) { +return this.contains$D$D$D$D(r.getX$(), r.getY$(), r.getWidth$(), r.getHeight$()); +}); + +Clazz_newMeth(C$, 'intersects$java_awt_geom_PathIterator$D$D$D$D', function (pi, x, y, w, h) { +if (java.lang.Double.isNaN$D(x + w) || java.lang.Double.isNaN$D(y + h) ) { +return false; +}if (w <= 0 || h <= 0 ) { +return false; +}var mask=(pi.getWindingRule$() == 1 ? -1 : 2); +var crossings=$I$(4).rectCrossingsForPath$java_awt_geom_PathIterator$D$D$D$D(pi, x, y, x + w, y + h); +return (crossings == -2147483648 || (crossings & mask) != 0 ); +}, 1); + +Clazz_newMeth(C$, 'intersects$java_awt_geom_PathIterator$java_awt_geom_Rectangle2D', function (pi, r) { +return C$.intersects$java_awt_geom_PathIterator$D$D$D$D(pi, r.getX$(), r.getY$(), r.getWidth$(), r.getHeight$()); +}, 1); + +Clazz_newMeth(C$, 'intersects$D$D$D$D', function (x, y, w, h) { +if (java.lang.Double.isNaN$D(x + w) || java.lang.Double.isNaN$D(y + h) ) { +return false; +}if (w <= 0 || h <= 0 ) { +return false; +}var mask=(this.windingRule == 1 ? -1 : 2); +var crossings=this.rectCrossings$D$D$D$D(x, y, x + w, y + h); +return (crossings == -2147483648 || (crossings & mask) != 0 ); +}); + +Clazz_newMeth(C$, 'intersects$java_awt_geom_Rectangle2D', function (r) { +return this.intersects$D$D$D$D(r.getX$(), r.getY$(), r.getWidth$(), r.getHeight$()); +}); + +Clazz_newMeth(C$, 'getPathIterator$java_awt_geom_AffineTransform$D', function (at, flatness) { +return Clazz_new_($I$(12).c$$java_awt_geom_PathIterator$D,[this.getPathIterator$java_awt_geom_AffineTransform(at), flatness]); +}); +; +(function(){var C$=Clazz_newClass(P$.Path2D, "Iterator", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, null, 'java.awt.geom.PathIterator'); +C$.curvecoords=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.curvecoords=Clazz_array(Integer.TYPE, -1, [2, 2, 4, 6, 0]); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.typeIdx=0; +this.pointIdx=0; +this.path=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_geom_Path2D', function (path) { +C$.$init$.apply(this); +this.path=path; +}, 1); + +Clazz_newMeth(C$, 'getWindingRule$', function () { +return this.path.getWindingRule$(); +}); + +Clazz_newMeth(C$, 'isDone$', function () { +return (this.typeIdx >= this.path.numTypes); +}); + +Clazz_newMeth(C$, 'next$', function () { +var type=this.path.pointTypes[this.typeIdx++]; +this.pointIdx+=C$.curvecoords[type]; +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.Path2D, "Float", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'java.awt.geom.Path2D'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.floatCoords=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.c$$I$I.apply(this, [1, 20]); +}, 1); + +Clazz_newMeth(C$, 'c$$I', function (rule) { +C$.c$$I$I.apply(this, [rule, 20]); +}, 1); + +Clazz_newMeth(C$, 'c$$I$I', function (rule, initialCapacity) { +Clazz_super_(C$, this,1); +this.setWindingRule$I(rule); +this.pointTypes=Clazz_array(Byte.TYPE, [initialCapacity]); +this.floatCoords=Clazz_array(Float.TYPE, [initialCapacity * 2]); +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Shape', function (s) { +C$.c$$java_awt_Shape$java_awt_geom_AffineTransform.apply(this, [s, null]); +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Shape$java_awt_geom_AffineTransform', function (s, at) { +Clazz_super_(C$, this,1); +p$1.setPath$java_awt_Shape$java_awt_geom_AffineTransform.apply(this, [s, at]); +}, 1); + +Clazz_newMeth(C$, 'setPath$java_awt_Shape$java_awt_geom_AffineTransform', function (s, at) { +if (Clazz_instanceOf(s, "java.awt.geom.Path2D")) { +var p2d=s; +this.setWindingRule$I(p2d.windingRule); +this.numTypes=p2d.numTypes; +this.pointTypes=$I$(2).copyOf$BA$I(p2d.pointTypes, p2d.pointTypes.length); +this.numCoords=p2d.numCoords; +this.floatCoords=p2d.cloneCoordsFloat$java_awt_geom_AffineTransform(at); +} else { +var pi=s.getPathIterator$java_awt_geom_AffineTransform(at); +this.setWindingRule$I(pi.getWindingRule$()); +this.pointTypes=Clazz_array(Byte.TYPE, [20]); +this.floatCoords=Clazz_array(Float.TYPE, [40]); +this.append$java_awt_geom_PathIterator$Z(pi, false); +}}, p$1); + +Clazz_newMeth(C$, 'cloneCoordsFloat$java_awt_geom_AffineTransform', function (at) { +var ret; +if (at == null ) { +ret=$I$(2).copyOf$FA$I(this.floatCoords, this.floatCoords.length); +} else { +ret=Clazz_array(Float.TYPE, [this.floatCoords.length]); +at.transform$FA$I$FA$I$I(this.floatCoords, 0, ret, 0, (this.numCoords/2|0)); +}return ret; +}); + +Clazz_newMeth(C$, 'cloneCoordsDouble$java_awt_geom_AffineTransform', function (at) { +var ret=Clazz_array(Double.TYPE, [this.floatCoords.length]); +if (at == null ) { +for (var i=0; i < this.numCoords; i++) { +ret[i]=this.floatCoords[i]; +} +} else { +at.transform$FA$I$DA$I$I(this.floatCoords, 0, ret, 0, (this.numCoords/2|0)); +}return ret; +}); + +Clazz_newMeth(C$, 'append$F$F', function (x, y) { +this.floatCoords[this.numCoords++]=x; +this.floatCoords[this.numCoords++]=y; +}); + +Clazz_newMeth(C$, 'append$D$D', function (x, y) { +this.floatCoords[this.numCoords++]=x; +this.floatCoords[this.numCoords++]=y; +}); + +Clazz_newMeth(C$, 'append$java_awt_geom_PathIterator$Z', function (pi, connect) { +var coords=Clazz_array(Float.TYPE, [6]); +while (!pi.isDone$()){ +switch (pi.currentSegment$FA(coords)) { +case 0: +if (!connect || this.numTypes < 1 || this.numCoords < 1 ) { +this.moveTo$F$F(coords[0], coords[1]); +break; +}if (this.pointTypes[this.numTypes - 1] != 4 && this.floatCoords[this.numCoords - 2] == coords[0] && this.floatCoords[this.numCoords - 1] == coords[1] ) { +break; +}case 1: +this.lineTo$F$F(coords[0], coords[1]); +break; +case 2: +this.quadTo$F$F$F$F(coords[0], coords[1], coords[2], coords[3]); +break; +case 3: +this.curveTo$F$F$F$F$F$F(coords[0], coords[1], coords[2], coords[3], coords[4], coords[5]); +break; +case 4: +this.closePath$(); +break; +} +pi.next$(); +connect=false; +} +}); + +Clazz_newMeth(C$, 'getPoint$I', function (coordindex) { +return Clazz_new_($I$(3).c$$F$F,[this.floatCoords[coordindex], this.floatCoords[coordindex + 1]]); +}); + +Clazz_newMeth(C$, 'needRoom$Z$I', function (needMove, newCoords) { +if (needMove && this.numTypes == 0 ) { +throw Clazz_new_(Clazz_load('java.awt.geom.IllegalPathStateException').c$$S,["missing initial moveto in path definition"]); +}var size=this.pointTypes.length; +if (this.numTypes >= size) { +var grow=size; +if (grow > 500) { +grow=500; +}this.pointTypes=$I$(2).copyOf$BA$I(this.pointTypes, size + grow); +}size=this.floatCoords.length; +if (this.numCoords + newCoords > size) { +var grow=size; +if (grow > 1000) { +grow=1000; +}if (grow < newCoords) { +grow=newCoords; +}this.floatCoords=$I$(2).copyOf$FA$I(this.floatCoords, size + grow); +}}); + +Clazz_newMeth(C$, 'moveTo$D$D', function (x, y) { +if (this.numTypes > 0 && this.pointTypes[this.numTypes - 1] == 0 ) { +this.floatCoords[this.numCoords - 2]=x; +this.floatCoords[this.numCoords - 1]=y; +} else { +this.needRoom$Z$I(false, 2); +this.pointTypes[this.numTypes++]=(0|0); +this.floatCoords[this.numCoords++]=x; +this.floatCoords[this.numCoords++]=y; +}}); + +Clazz_newMeth(C$, 'moveTo$F$F', function (x, y) { +if (this.numTypes > 0 && this.pointTypes[this.numTypes - 1] == 0 ) { +this.floatCoords[this.numCoords - 2]=x; +this.floatCoords[this.numCoords - 1]=y; +} else { +this.needRoom$Z$I(false, 2); +this.pointTypes[this.numTypes++]=(0|0); +this.floatCoords[this.numCoords++]=x; +this.floatCoords[this.numCoords++]=y; +}}); + +Clazz_newMeth(C$, 'lineTo$D$D', function (x, y) { +this.needRoom$Z$I(true, 2); +this.pointTypes[this.numTypes++]=(1|0); +this.floatCoords[this.numCoords++]=x; +this.floatCoords[this.numCoords++]=y; +}); + +Clazz_newMeth(C$, 'lineTo$F$F', function (x, y) { +this.needRoom$Z$I(true, 2); +this.pointTypes[this.numTypes++]=(1|0); +this.floatCoords[this.numCoords++]=x; +this.floatCoords[this.numCoords++]=y; +}); + +Clazz_newMeth(C$, 'quadTo$D$D$D$D', function (x1, y1, x2, y2) { +this.needRoom$Z$I(true, 4); +this.pointTypes[this.numTypes++]=(2|0); +this.floatCoords[this.numCoords++]=x1; +this.floatCoords[this.numCoords++]=y1; +this.floatCoords[this.numCoords++]=x2; +this.floatCoords[this.numCoords++]=y2; +}); + +Clazz_newMeth(C$, 'quadTo$F$F$F$F', function (x1, y1, x2, y2) { +this.needRoom$Z$I(true, 4); +this.pointTypes[this.numTypes++]=(2|0); +this.floatCoords[this.numCoords++]=x1; +this.floatCoords[this.numCoords++]=y1; +this.floatCoords[this.numCoords++]=x2; +this.floatCoords[this.numCoords++]=y2; +}); + +Clazz_newMeth(C$, 'curveTo$D$D$D$D$D$D', function (x1, y1, x2, y2, x3, y3) { +this.needRoom$Z$I(true, 6); +this.pointTypes[this.numTypes++]=(3|0); +this.floatCoords[this.numCoords++]=x1; +this.floatCoords[this.numCoords++]=y1; +this.floatCoords[this.numCoords++]=x2; +this.floatCoords[this.numCoords++]=y2; +this.floatCoords[this.numCoords++]=x3; +this.floatCoords[this.numCoords++]=y3; +}); + +Clazz_newMeth(C$, 'curveTo$F$F$F$F$F$F', function (x1, y1, x2, y2, x3, y3) { +this.needRoom$Z$I(true, 6); +this.pointTypes[this.numTypes++]=(3|0); +this.floatCoords[this.numCoords++]=x1; +this.floatCoords[this.numCoords++]=y1; +this.floatCoords[this.numCoords++]=x2; +this.floatCoords[this.numCoords++]=y2; +this.floatCoords[this.numCoords++]=x3; +this.floatCoords[this.numCoords++]=y3; +}); + +Clazz_newMeth(C$, 'pointCrossings$D$D', function (px, py) { +var movx; +var movy; +var curx; +var cury; +var endx; +var endy; +var coords=this.floatCoords; +curx=movx=coords[0]; +cury=movy=coords[1]; +var crossings=0; +var ci=2; +for (var i=1; i < this.numTypes; i++) { +switch (this.pointTypes[i]) { +case 0: +if (cury != movy ) { +crossings+=$I$(4).pointCrossingsForLine$D$D$D$D$D$D(px, py, curx, cury, movx, movy); +}movx=curx=coords[ci++]; +movy=cury=coords[ci++]; +break; +case 1: +crossings+=$I$(4).pointCrossingsForLine$D$D$D$D$D$D(px, py, curx, cury, endx=coords[ci++], endy=coords[ci++]); +curx=endx; +cury=endy; +break; +case 2: +crossings+=$I$(4).pointCrossingsForQuad$D$D$D$D$D$D$D$D$I(px, py, curx, cury, coords[ci++], coords[ci++], endx=coords[ci++], endy=coords[ci++], 0); +curx=endx; +cury=endy; +break; +case 3: +crossings+=$I$(4).pointCrossingsForCubic$D$D$D$D$D$D$D$D$D$D$I(px, py, curx, cury, coords[ci++], coords[ci++], coords[ci++], coords[ci++], endx=coords[ci++], endy=coords[ci++], 0); +curx=endx; +cury=endy; +break; +case 4: +if (cury != movy ) { +crossings+=$I$(4).pointCrossingsForLine$D$D$D$D$D$D(px, py, curx, cury, movx, movy); +}curx=movx; +cury=movy; +break; +} +} +if (cury != movy ) { +crossings+=$I$(4).pointCrossingsForLine$D$D$D$D$D$D(px, py, curx, cury, movx, movy); +}return crossings; +}); + +Clazz_newMeth(C$, 'rectCrossings$D$D$D$D', function (rxmin, rymin, rxmax, rymax) { +var coords=this.floatCoords; +var curx; +var cury; +var movx; +var movy; +var endx; +var endy; +curx=movx=coords[0]; +cury=movy=coords[1]; +var crossings=0; +var ci=2; +for (var i=1; crossings != -2147483648 && i < this.numTypes ; i++) { +switch (this.pointTypes[i]) { +case 0: +if (curx != movx || cury != movy ) { +crossings=$I$(4).rectCrossingsForLine$I$D$D$D$D$D$D$D$D(crossings, rxmin, rymin, rxmax, rymax, curx, cury, movx, movy); +}movx=curx=coords[ci++]; +movy=cury=coords[ci++]; +break; +case 1: +crossings=$I$(4).rectCrossingsForLine$I$D$D$D$D$D$D$D$D(crossings, rxmin, rymin, rxmax, rymax, curx, cury, endx=coords[ci++], endy=coords[ci++]); +curx=endx; +cury=endy; +break; +case 2: +crossings=$I$(4).rectCrossingsForQuad$I$D$D$D$D$D$D$D$D$D$D$I(crossings, rxmin, rymin, rxmax, rymax, curx, cury, coords[ci++], coords[ci++], endx=coords[ci++], endy=coords[ci++], 0); +curx=endx; +cury=endy; +break; +case 3: +crossings=$I$(4).rectCrossingsForCubic$I$D$D$D$D$D$D$D$D$D$D$D$D$I(crossings, rxmin, rymin, rxmax, rymax, curx, cury, coords[ci++], coords[ci++], coords[ci++], coords[ci++], endx=coords[ci++], endy=coords[ci++], 0); +curx=endx; +cury=endy; +break; +case 4: +if (curx != movx || cury != movy ) { +crossings=$I$(4).rectCrossingsForLine$I$D$D$D$D$D$D$D$D(crossings, rxmin, rymin, rxmax, rymax, curx, cury, movx, movy); +}curx=movx; +cury=movy; +break; +} +} +if (crossings != -2147483648 && (curx != movx || cury != movy ) ) { +crossings=$I$(4).rectCrossingsForLine$I$D$D$D$D$D$D$D$D(crossings, rxmin, rymin, rxmax, rymax, curx, cury, movx, movy); +}return crossings; +}); + +Clazz_newMeth(C$, 'transform$java_awt_geom_AffineTransform', function (at) { +at.transform$FA$I$FA$I$I(this.floatCoords, 0, this.floatCoords, 0, (this.numCoords/2|0)); +}); + +Clazz_newMeth(C$, 'getBounds2D$', function () { +var x1; +var y1; +var x2; +var y2; +var i=this.numCoords; +if (i > 0) { +y1=y2=this.floatCoords[--i]; +x1=x2=this.floatCoords[--i]; +while (i > 0){ +var y=this.floatCoords[--i]; +var x=this.floatCoords[--i]; +if (x < x1 ) x1=x; +if (y < y1 ) y1=y; +if (x > x2 ) x2=x; +if (y > y2 ) y2=y; +} +} else { +x1=y1=x2=y2=0.0; +}return Clazz_new_($I$(5).c$$F$F$F$F,[x1, y1, x2 - x1, y2 - y1]); +}); + +Clazz_newMeth(C$, 'getPathIterator$java_awt_geom_AffineTransform', function (at) { +if (at == null ) { +return Clazz_new_($I$(6).c$$java_awt_geom_Path2D_Float,[this]); +} else { +return Clazz_new_($I$(7).c$$java_awt_geom_Path2D_Float$java_awt_geom_AffineTransform,[this, at]); +}}); + +Clazz_newMeth(C$, 'clone$', function () { +return Clazz_new_(C$.c$$java_awt_Shape,[this]); +}); +; +(function(){var C$=Clazz_newClass(P$.Path2D.Float, "CopyIterator", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, ['java.awt.geom.Path2D','.Iterator']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.floatCoords=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_geom_Path2D_Float', function (p2df) { +C$.superclazz.c$$java_awt_geom_Path2D.apply(this, [p2df]); +C$.$init$.apply(this); +this.floatCoords=p2df.floatCoords; +}, 1); + +Clazz_newMeth(C$, 'currentSegment$FA', function (coords) { +var type=this.path.pointTypes[this.typeIdx]; +var numCoords=$I$(1).curvecoords[type]; +if (numCoords > 0) { +System.arraycopy$O$I$O$I$I(this.floatCoords, this.pointIdx, coords, 0, numCoords); +}return type; +}); + +Clazz_newMeth(C$, 'currentSegment$DA', function (coords) { +var type=this.path.pointTypes[this.typeIdx]; +var numCoords=$I$(1).curvecoords[type]; +if (numCoords > 0) { +for (var i=0; i < numCoords; i++) { +coords[i]=this.floatCoords[this.pointIdx + i]; +} +}return type; +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.Path2D.Float, "TxIterator", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, ['java.awt.geom.Path2D','.Iterator']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.floatCoords=null; +this.affine=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_geom_Path2D_Float$java_awt_geom_AffineTransform', function (p2df, at) { +C$.superclazz.c$$java_awt_geom_Path2D.apply(this, [p2df]); +C$.$init$.apply(this); +this.floatCoords=p2df.floatCoords; +this.affine=at; +}, 1); + +Clazz_newMeth(C$, 'currentSegment$FA', function (coords) { +var type=this.path.pointTypes[this.typeIdx]; +var numCoords=$I$(1).curvecoords[type]; +if (numCoords > 0) { +this.affine.transform$FA$I$FA$I$I(this.floatCoords, this.pointIdx, coords, 0, (numCoords/2|0)); +}return type; +}); + +Clazz_newMeth(C$, 'currentSegment$DA', function (coords) { +var type=this.path.pointTypes[this.typeIdx]; +var numCoords=$I$(1).curvecoords[type]; +if (numCoords > 0) { +this.affine.transform$FA$I$DA$I$I(this.floatCoords, this.pointIdx, coords, 0, (numCoords/2|0)); +}return type; +}); + +Clazz_newMeth(C$); +})() +})() +; +(function(){var C$=Clazz_newClass(P$.Path2D, "Double", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'java.awt.geom.Path2D'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.doubleCoords=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.c$$I$I.apply(this, [1, 20]); +}, 1); + +Clazz_newMeth(C$, 'c$$I', function (rule) { +C$.c$$I$I.apply(this, [rule, 20]); +}, 1); + +Clazz_newMeth(C$, 'c$$I$I', function (rule, initialCapacity) { +C$.superclazz.c$$I$I.apply(this, [rule, initialCapacity]); +C$.$init$.apply(this); +this.doubleCoords=Clazz_array(Double.TYPE, [initialCapacity * 2]); +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Shape', function (s) { +C$.c$$java_awt_Shape$java_awt_geom_AffineTransform.apply(this, [s, null]); +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Shape$java_awt_geom_AffineTransform', function (s, at) { +Clazz_super_(C$, this,1); +if (Clazz_instanceOf(s, "java.awt.geom.Path2D")) { +var p2d=s; +this.setWindingRule$I(p2d.windingRule); +this.numTypes=p2d.numTypes; +this.pointTypes=$I$(2).copyOf$BA$I(p2d.pointTypes, p2d.pointTypes.length); +this.numCoords=p2d.numCoords; +this.doubleCoords=p2d.cloneCoordsDouble$java_awt_geom_AffineTransform(at); +} else { +var pi=s.getPathIterator$java_awt_geom_AffineTransform(at); +this.setWindingRule$I(pi.getWindingRule$()); +this.pointTypes=Clazz_array(Byte.TYPE, [20]); +this.doubleCoords=Clazz_array(Double.TYPE, [40]); +this.append$java_awt_geom_PathIterator$Z(pi, false); +}}, 1); + +Clazz_newMeth(C$, 'cloneCoordsFloat$java_awt_geom_AffineTransform', function (at) { +var ret=Clazz_array(Float.TYPE, [this.doubleCoords.length]); +if (at == null ) { +for (var i=0; i < this.numCoords; i++) { +ret[i]=this.doubleCoords[i]; +} +} else { +at.transform$DA$I$FA$I$I(this.doubleCoords, 0, ret, 0, (this.numCoords/2|0)); +}return ret; +}); + +Clazz_newMeth(C$, 'cloneCoordsDouble$java_awt_geom_AffineTransform', function (at) { +var ret; +if (at == null ) { +ret=$I$(2).copyOf$DA$I(this.doubleCoords, this.doubleCoords.length); +} else { +ret=Clazz_array(Double.TYPE, [this.doubleCoords.length]); +at.transform$DA$I$DA$I$I(this.doubleCoords, 0, ret, 0, (this.numCoords/2|0)); +}return ret; +}); + +Clazz_newMeth(C$, 'append$F$F', function (x, y) { +this.doubleCoords[this.numCoords++]=x; +this.doubleCoords[this.numCoords++]=y; +}); + +Clazz_newMeth(C$, 'append$D$D', function (x, y) { +this.doubleCoords[this.numCoords++]=x; +this.doubleCoords[this.numCoords++]=y; +}); + +Clazz_newMeth(C$, 'append$java_awt_geom_PathIterator$Z', function (pi, connect) { +var coords=Clazz_array(Double.TYPE, [6]); +while (!pi.isDone$()){ +switch (pi.currentSegment$DA(coords)) { +case 0: +if (!connect || this.numTypes < 1 || this.numCoords < 1 ) { +this.moveTo$D$D(coords[0], coords[1]); +break; +}if (this.pointTypes[this.numTypes - 1] != 4 && this.doubleCoords[this.numCoords - 2] == coords[0] && this.doubleCoords[this.numCoords - 1] == coords[1] ) { +break; +}case 1: +this.lineTo$D$D(coords[0], coords[1]); +break; +case 2: +this.quadTo$D$D$D$D(coords[0], coords[1], coords[2], coords[3]); +break; +case 3: +this.curveTo$D$D$D$D$D$D(coords[0], coords[1], coords[2], coords[3], coords[4], coords[5]); +break; +case 4: +this.closePath$(); +break; +} +pi.next$(); +connect=false; +} +}); + +Clazz_newMeth(C$, 'getPoint$I', function (coordindex) { +return Clazz_new_($I$(8).c$$D$D,[this.doubleCoords[coordindex], this.doubleCoords[coordindex + 1]]); +}); + +Clazz_newMeth(C$, 'needRoom$Z$I', function (needMove, newCoords) { +if (needMove && this.numTypes == 0 ) { +throw Clazz_new_(Clazz_load('java.awt.geom.IllegalPathStateException').c$$S,["missing initial moveto in path definition"]); +}var size=this.pointTypes.length; +if (this.numTypes >= size) { +var grow=size; +if (grow > 500) { +grow=500; +}this.pointTypes=$I$(2).copyOf$BA$I(this.pointTypes, size + grow); +}size=this.doubleCoords.length; +if (this.numCoords + newCoords > size) { +var grow=size; +if (grow > 1000) { +grow=1000; +}if (grow < newCoords) { +grow=newCoords; +}this.doubleCoords=$I$(2).copyOf$DA$I(this.doubleCoords, size + grow); +}}); + +Clazz_newMeth(C$, 'moveTo$D$D', function (x, y) { +if (this.numTypes > 0 && this.pointTypes[this.numTypes - 1] == 0 ) { +this.doubleCoords[this.numCoords - 2]=x; +this.doubleCoords[this.numCoords - 1]=y; +} else { +this.needRoom$Z$I(false, 2); +this.pointTypes[this.numTypes++]=(0|0); +this.doubleCoords[this.numCoords++]=x; +this.doubleCoords[this.numCoords++]=y; +}}); + +Clazz_newMeth(C$, 'lineTo$D$D', function (x, y) { +this.needRoom$Z$I(true, 2); +this.pointTypes[this.numTypes++]=(1|0); +this.doubleCoords[this.numCoords++]=x; +this.doubleCoords[this.numCoords++]=y; +}); + +Clazz_newMeth(C$, 'quadTo$D$D$D$D', function (x1, y1, x2, y2) { +this.needRoom$Z$I(true, 4); +this.pointTypes[this.numTypes++]=(2|0); +this.doubleCoords[this.numCoords++]=x1; +this.doubleCoords[this.numCoords++]=y1; +this.doubleCoords[this.numCoords++]=x2; +this.doubleCoords[this.numCoords++]=y2; +}); + +Clazz_newMeth(C$, 'curveTo$D$D$D$D$D$D', function (x1, y1, x2, y2, x3, y3) { +this.needRoom$Z$I(true, 6); +this.pointTypes[this.numTypes++]=(3|0); +this.doubleCoords[this.numCoords++]=x1; +this.doubleCoords[this.numCoords++]=y1; +this.doubleCoords[this.numCoords++]=x2; +this.doubleCoords[this.numCoords++]=y2; +this.doubleCoords[this.numCoords++]=x3; +this.doubleCoords[this.numCoords++]=y3; +}); + +Clazz_newMeth(C$, 'pointCrossings$D$D', function (px, py) { +var movx; +var movy; +var curx; +var cury; +var endx; +var endy; +var coords=this.doubleCoords; +curx=movx=coords[0]; +cury=movy=coords[1]; +var crossings=0; +var ci=2; +for (var i=1; i < this.numTypes; i++) { +switch (this.pointTypes[i]) { +case 0: +if (cury != movy ) { +crossings+=$I$(4).pointCrossingsForLine$D$D$D$D$D$D(px, py, curx, cury, movx, movy); +}movx=curx=coords[ci++]; +movy=cury=coords[ci++]; +break; +case 1: +crossings+=$I$(4).pointCrossingsForLine$D$D$D$D$D$D(px, py, curx, cury, endx=coords[ci++], endy=coords[ci++]); +curx=endx; +cury=endy; +break; +case 2: +crossings+=$I$(4).pointCrossingsForQuad$D$D$D$D$D$D$D$D$I(px, py, curx, cury, coords[ci++], coords[ci++], endx=coords[ci++], endy=coords[ci++], 0); +curx=endx; +cury=endy; +break; +case 3: +crossings+=$I$(4).pointCrossingsForCubic$D$D$D$D$D$D$D$D$D$D$I(px, py, curx, cury, coords[ci++], coords[ci++], coords[ci++], coords[ci++], endx=coords[ci++], endy=coords[ci++], 0); +curx=endx; +cury=endy; +break; +case 4: +if (cury != movy ) { +crossings+=$I$(4).pointCrossingsForLine$D$D$D$D$D$D(px, py, curx, cury, movx, movy); +}curx=movx; +cury=movy; +break; +} +} +if (cury != movy ) { +crossings+=$I$(4).pointCrossingsForLine$D$D$D$D$D$D(px, py, curx, cury, movx, movy); +}return crossings; +}); + +Clazz_newMeth(C$, 'rectCrossings$D$D$D$D', function (rxmin, rymin, rxmax, rymax) { +var coords=this.doubleCoords; +var curx; +var cury; +var movx; +var movy; +var endx; +var endy; +curx=movx=coords[0]; +cury=movy=coords[1]; +var crossings=0; +var ci=2; +for (var i=1; crossings != -2147483648 && i < this.numTypes ; i++) { +switch (this.pointTypes[i]) { +case 0: +if (curx != movx || cury != movy ) { +crossings=$I$(4).rectCrossingsForLine$I$D$D$D$D$D$D$D$D(crossings, rxmin, rymin, rxmax, rymax, curx, cury, movx, movy); +}movx=curx=coords[ci++]; +movy=cury=coords[ci++]; +break; +case 1: +endx=coords[ci++]; +endy=coords[ci++]; +crossings=$I$(4).rectCrossingsForLine$I$D$D$D$D$D$D$D$D(crossings, rxmin, rymin, rxmax, rymax, curx, cury, endx, endy); +curx=endx; +cury=endy; +break; +case 2: +crossings=$I$(4).rectCrossingsForQuad$I$D$D$D$D$D$D$D$D$D$D$I(crossings, rxmin, rymin, rxmax, rymax, curx, cury, coords[ci++], coords[ci++], endx=coords[ci++], endy=coords[ci++], 0); +curx=endx; +cury=endy; +break; +case 3: +crossings=$I$(4).rectCrossingsForCubic$I$D$D$D$D$D$D$D$D$D$D$D$D$I(crossings, rxmin, rymin, rxmax, rymax, curx, cury, coords[ci++], coords[ci++], coords[ci++], coords[ci++], endx=coords[ci++], endy=coords[ci++], 0); +curx=endx; +cury=endy; +break; +case 4: +if (curx != movx || cury != movy ) { +crossings=$I$(4).rectCrossingsForLine$I$D$D$D$D$D$D$D$D(crossings, rxmin, rymin, rxmax, rymax, curx, cury, movx, movy); +}curx=movx; +cury=movy; +break; +} +} +if (crossings != -2147483648 && (curx != movx || cury != movy ) ) { +crossings=$I$(4).rectCrossingsForLine$I$D$D$D$D$D$D$D$D(crossings, rxmin, rymin, rxmax, rymax, curx, cury, movx, movy); +}return crossings; +}); + +Clazz_newMeth(C$, 'transform$java_awt_geom_AffineTransform', function (at) { +at.transform$DA$I$DA$I$I(this.doubleCoords, 0, this.doubleCoords, 0, (this.numCoords/2|0)); +}); + +Clazz_newMeth(C$, 'getBounds2D$', function () { +var x1; +var y1; +var x2; +var y2; +var i=this.numCoords; +if (i > 0) { +y1=y2=this.doubleCoords[--i]; +x1=x2=this.doubleCoords[--i]; +while (i > 0){ +var y=this.doubleCoords[--i]; +var x=this.doubleCoords[--i]; +if (x < x1 ) x1=x; +if (y < y1 ) y1=y; +if (x > x2 ) x2=x; +if (y > y2 ) y2=y; +} +} else { +x1=y1=x2=y2=0.0; +}return Clazz_new_($I$(9).c$$D$D$D$D,[x1, y1, x2 - x1, y2 - y1]); +}); + +Clazz_newMeth(C$, 'getPathIterator$java_awt_geom_AffineTransform', function (at) { +if (at == null ) { +return Clazz_new_($I$(10).c$$java_awt_geom_Path2D_Double,[this]); +} else { +return Clazz_new_($I$(11).c$$java_awt_geom_Path2D_Double$java_awt_geom_AffineTransform,[this, at]); +}}); + +Clazz_newMeth(C$, 'clone$', function () { +return Clazz_new_(C$.c$$java_awt_Shape,[this]); +}); +; +(function(){var C$=Clazz_newClass(P$.Path2D.Double, "CopyIterator", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, ['java.awt.geom.Path2D','.Iterator']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.doubleCoords=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_geom_Path2D_Double', function (p2dd) { +C$.superclazz.c$$java_awt_geom_Path2D.apply(this, [p2dd]); +C$.$init$.apply(this); +this.doubleCoords=p2dd.doubleCoords; +}, 1); + +Clazz_newMeth(C$, 'currentSegment$FA', function (coords) { +var type=this.path.pointTypes[this.typeIdx]; +var numCoords=$I$(1).curvecoords[type]; +if (numCoords > 0) { +for (var i=0; i < numCoords; i++) { +coords[i]=this.doubleCoords[this.pointIdx + i]; +} +}return type; +}); + +Clazz_newMeth(C$, 'currentSegment$DA', function (coords) { +var type=this.path.pointTypes[this.typeIdx]; +var numCoords=$I$(1).curvecoords[type]; +if (numCoords > 0) { +System.arraycopy$O$I$O$I$I(this.doubleCoords, this.pointIdx, coords, 0, numCoords); +}return type; +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.Path2D.Double, "TxIterator", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, ['java.awt.geom.Path2D','.Iterator']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.doubleCoords=null; +this.affine=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_geom_Path2D_Double$java_awt_geom_AffineTransform', function (p2dd, at) { +C$.superclazz.c$$java_awt_geom_Path2D.apply(this, [p2dd]); +C$.$init$.apply(this); +this.doubleCoords=p2dd.doubleCoords; +this.affine=at; +}, 1); + +Clazz_newMeth(C$, 'currentSegment$FA', function (coords) { +var type=this.path.pointTypes[this.typeIdx]; +var numCoords=$I$(1).curvecoords[type]; +if (numCoords > 0) { +this.affine.transform$DA$I$FA$I$I(this.doubleCoords, this.pointIdx, coords, 0, (numCoords/2|0)); +}return type; +}); + +Clazz_newMeth(C$, 'currentSegment$DA', function (coords) { +var type=this.path.pointTypes[this.typeIdx]; +var numCoords=$I$(1).curvecoords[type]; +if (numCoords > 0) { +this.affine.transform$DA$I$DA$I$I(this.doubleCoords, this.pointIdx, coords, 0, (numCoords/2|0)); +}return type; +}); + +Clazz_newMeth(C$); +})() +})() +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:22 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt.geom"),I$=[]; +var C$=Clazz_newInterface(P$, "PathIterator"); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:22 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt.geom"),I$=[[0,'InternalError']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "Point2D", function(){ +Clazz_newInstance(this, arguments,0,C$); +}, null, 'Cloneable'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'setLocation$java_awt_geom_Point2D', function (p) { +this.setLocation$D$D(p.getX$(), p.getY$()); +}); + +Clazz_newMeth(C$, 'distanceSq$D$D$D$D', function (x1, y1, x2, y2) { +x1 -= x2; +y1 -= y2; +return (x1 * x1 + y1 * y1); +}, 1); + +Clazz_newMeth(C$, 'distance$D$D$D$D', function (x1, y1, x2, y2) { +x1 -= x2; +y1 -= y2; +return Math.sqrt(x1 * x1 + y1 * y1); +}, 1); + +Clazz_newMeth(C$, 'distanceSq$D$D', function (px, py) { +px -= this.getX$(); +py -= this.getY$(); +return (px * px + py * py); +}); + +Clazz_newMeth(C$, 'distanceSq$java_awt_geom_Point2D', function (pt) { +var px=pt.getX$() - this.getX$(); +var py=pt.getY$() - this.getY$(); +return (px * px + py * py); +}); + +Clazz_newMeth(C$, 'distance$D$D', function (px, py) { +px -= this.getX$(); +py -= this.getY$(); +return Math.sqrt(px * px + py * py); +}); + +Clazz_newMeth(C$, 'distance$java_awt_geom_Point2D', function (pt) { +var px=pt.getX$() - this.getX$(); +var py=pt.getY$() - this.getY$(); +return Math.sqrt(px * px + py * py); +}); + +Clazz_newMeth(C$, 'hashCode$', function () { +var bits=java.lang.Double.doubleToLongBits$D(this.getX$()); +bits^=java.lang.Double.doubleToLongBits$D(this.getY$()) * 31; +return (((bits|0)) ^ (((bits >> 32)|0))); +}); + +Clazz_newMeth(C$, 'clone$', function () { +try { +return Clazz_clone(this); +} catch (e) { +if (Clazz_exceptionOf(e,"CloneNotSupportedException")){ +throw Clazz_new_($I$(1)); +} else { +throw e; +} +} +}); +; +(function(){var C$=Clazz_newClass(P$.Point2D, "Float", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'java.awt.geom.Point2D'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.x=0; +this.y=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +Clazz_super_(C$, this,1); +}, 1); + +Clazz_newMeth(C$, 'c$$F$F', function (x, y) { +Clazz_super_(C$, this,1); +this.x=x; +this.y=y; +}, 1); + +Clazz_newMeth(C$, 'getX$', function () { +return this.x; +}); + +Clazz_newMeth(C$, 'getY$', function () { +return this.y; +}); + +Clazz_newMeth(C$, 'setLocation$D$D', function (x, y) { +this.x=x; +this.y=y; +}); + +Clazz_newMeth(C$, 'setLocation$F$F', function (x, y) { +this.x=x; +this.y=y; +}); + +Clazz_newMeth(C$, 'toString', function () { +return "Point2D.Float[" + new Float(this.x).toString() + ", " + new Float(this.y).toString() + "]" ; +}); +})() +; +(function(){var C$=Clazz_newClass(P$.Point2D, "Double", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'java.awt.geom.Point2D'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.x=0; +this.y=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +Clazz_super_(C$, this,1); +}, 1); + +Clazz_newMeth(C$, 'c$$D$D', function (x, y) { +Clazz_super_(C$, this,1); +this.x=x; +this.y=y; +}, 1); + +Clazz_newMeth(C$, 'getX$', function () { +return this.x; +}); + +Clazz_newMeth(C$, 'getY$', function () { +return this.y; +}); + +Clazz_newMeth(C$, 'setLocation$D$D', function (x, y) { +this.x=x; +this.y=y; +}); + +Clazz_newMeth(C$, 'toString', function () { +return "Point2D.Double[" + new Double(this.x).toString() + ", " + new Double(this.y).toString() + "]" ; +}); +})() +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:22 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt.geom"),I$=[[0,['java.awt.geom.Rectangle2D','.Double'],'java.awt.geom.Rectangle2D','java.awt.geom.RectIterator']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "Rectangle2D", function(){ +Clazz_newInstance(this, arguments,0,C$); +}, 'java.awt.geom.RectangularShape'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.iterator=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +Clazz_super_(C$, this,1); +}, 1); + +Clazz_newMeth(C$, 'setRect$java_awt_geom_Rectangle2D', function (r) { +this.setRect$D$D$D$D(r.getX$(), r.getY$(), r.getWidth$(), r.getHeight$()); +}); + +Clazz_newMeth(C$, 'intersectsLine$D$D$D$D', function (x1, y1, x2, y2) { +var out1; +var out2; +if ((out2=this.outcode$D$D(x2, y2)) == 0) { +return true; +}while ((out1=this.outcode$D$D(x1, y1)) != 0){ +if ((out1 & out2) != 0) { +return false; +}if ((out1 & (5)) != 0) { +var x=this.getX$(); +if ((out1 & 4) != 0) { +x += this.getWidth$(); +}y1=y1 + (x - x1) * (y2 - y1) / (x2 - x1); +x1=x; +} else { +var y=this.getY$(); +if ((out1 & 8) != 0) { +y += this.getHeight$(); +}x1=x1 + (y - y1) * (x2 - x1) / (y2 - y1); +y1=y; +}} +return true; +}); + +Clazz_newMeth(C$, 'intersectsLine$java_awt_geom_Line2D', function (l) { +return this.intersectsLine$D$D$D$D(l.getX1$(), l.getY1$(), l.getX2$(), l.getY2$()); +}); + +Clazz_newMeth(C$, 'outcode$java_awt_geom_Point2D', function (p) { +return this.outcode$D$D(p.getX$(), p.getY$()); +}); + +Clazz_newMeth(C$, 'setFrame$D$D$D$D', function (x, y, w, h) { +this.setRect$D$D$D$D(x, y, w, h); +}); + +Clazz_newMeth(C$, 'contains$D$D', function (x, y) { +var x0=this.getX$(); +var y0=this.getY$(); +return (x >= x0 && y >= y0 && x < x0 + this.getWidth$() && y < y0 + this.getHeight$() ); +}); + +Clazz_newMeth(C$, 'intersects$D$D$D$D', function (x, y, w, h) { +if (this.isEmpty$() || w <= 0 || h <= 0 ) { +return false; +}var x0=this.getX$(); +var y0=this.getY$(); +return (x + w > x0 && y + h > y0 && x < x0 + this.getWidth$() && y < y0 + this.getHeight$() ); +}); + +Clazz_newMeth(C$, 'contains$D$D$D$D', function (x, y, w, h) { +if (this.isEmpty$() || w <= 0 || h <= 0 ) { +return false; +}var x0=this.getX$(); +var y0=this.getY$(); +return (x >= x0 && y >= y0 && (x + w) <= x0 + this.getWidth$() && (y + h) <= y0 + this.getHeight$() ); +}); + +Clazz_newMeth(C$, 'intersect$java_awt_geom_Rectangle2D$java_awt_geom_Rectangle2D$java_awt_geom_Rectangle2D', function (src1, src2, dest) { +var x1=Math.max(src1.getMinX$(), src2.getMinX$()); +var y1=Math.max(src1.getMinY$(), src2.getMinY$()); +var x2=Math.min(src1.getMaxX$(), src2.getMaxX$()); +var y2=Math.min(src1.getMaxY$(), src2.getMaxY$()); +dest.setFrame$D$D$D$D(x1, y1, x2 - x1, y2 - y1); +}, 1); + +Clazz_newMeth(C$, 'union$java_awt_geom_Rectangle2D$java_awt_geom_Rectangle2D$java_awt_geom_Rectangle2D', function (src1, src2, dest) { +var x1=Math.min(src1.getMinX$(), src2.getMinX$()); +var y1=Math.min(src1.getMinY$(), src2.getMinY$()); +var x2=Math.max(src1.getMaxX$(), src2.getMaxX$()); +var y2=Math.max(src1.getMaxY$(), src2.getMaxY$()); +dest.setFrameFromDiagonal$D$D$D$D(x1, y1, x2, y2); +}, 1); + +Clazz_newMeth(C$, 'add$D$D', function (newx, newy) { +var x1=Math.min(this.getMinX$(), newx); +var x2=Math.max(this.getMaxX$(), newx); +var y1=Math.min(this.getMinY$(), newy); +var y2=Math.max(this.getMaxY$(), newy); +this.setRect$D$D$D$D(x1, y1, x2 - x1, y2 - y1); +}); + +Clazz_newMeth(C$, 'add$java_awt_geom_Point2D', function (pt) { +this.add$D$D(pt.getX$(), pt.getY$()); +}); + +Clazz_newMeth(C$, 'add$java_awt_geom_Rectangle2D', function (r) { +var x1=Math.min(this.getMinX$(), r.getMinX$()); +var x2=Math.max(this.getMaxX$(), r.getMaxX$()); +var y1=Math.min(this.getMinY$(), r.getMinY$()); +var y2=Math.max(this.getMaxY$(), r.getMaxY$()); +this.setRect$D$D$D$D(x1, y1, x2 - x1, y2 - y1); +}); + +Clazz_newMeth(C$, 'getPathIterator$java_awt_geom_AffineTransform', function (at) { +return (this.iterator == null ? this.iterator=Clazz_new_($I$(3)) : this.iterator).set$java_awt_geom_Rectangle2D$java_awt_geom_AffineTransform(this, at); +}); + +Clazz_newMeth(C$, 'getPathIterator$java_awt_geom_AffineTransform$D', function (at, flatness) { +return (this.iterator == null ? this.iterator=Clazz_new_($I$(3)) : this.iterator).set$java_awt_geom_Rectangle2D$java_awt_geom_AffineTransform(this, at); +}); + +Clazz_newMeth(C$, 'hashCode$', function () { +var bits=java.lang.Double.doubleToLongBits$D(this.getX$()); +bits+=java.lang.Double.doubleToLongBits$D(this.getY$()) * 37; +bits+=java.lang.Double.doubleToLongBits$D(this.getWidth$()) * 43; +bits+=java.lang.Double.doubleToLongBits$D(this.getHeight$()) * 47; +return (((bits|0)) ^ (((bits >> 32)|0))); +}); + +Clazz_newMeth(C$, 'equals$O', function (obj) { +if (obj === this ) { +return true; +}if (Clazz_instanceOf(obj, "java.awt.geom.Rectangle2D")) { +var r2d=obj; +return ((this.getX$() == r2d.getX$() ) && (this.getY$() == r2d.getY$() ) && (this.getWidth$() == r2d.getWidth$() ) && (this.getHeight$() == r2d.getHeight$() ) ); +}return false; +}); +; +(function(){var C$=Clazz_newClass(P$.Rectangle2D, "Float", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'java.awt.geom.Rectangle2D'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.x=0; +this.y=0; +this.width=0; +this.height=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +Clazz_super_(C$, this,1); +}, 1); + +Clazz_newMeth(C$, 'c$$F$F$F$F', function (x, y, w, h) { +Clazz_super_(C$, this,1); +this.setRect$F$F$F$F(x, y, w, h); +}, 1); + +Clazz_newMeth(C$, 'getX$', function () { +return this.x; +}); + +Clazz_newMeth(C$, 'getY$', function () { +return this.y; +}); + +Clazz_newMeth(C$, 'getWidth$', function () { +return this.width; +}); + +Clazz_newMeth(C$, 'getHeight$', function () { +return this.height; +}); + +Clazz_newMeth(C$, 'isEmpty$', function () { +return (this.width <= 0.0 ) || (this.height <= 0.0 ) ; +}); + +Clazz_newMeth(C$, 'setRect$F$F$F$F', function (x, y, w, h) { +this.x=x; +this.y=y; +this.width=w; +this.height=h; +}); + +Clazz_newMeth(C$, 'setRect$D$D$D$D', function (x, y, w, h) { +this.x=x; +this.y=y; +this.width=w; +this.height=h; +}); + +Clazz_newMeth(C$, 'setRect$java_awt_geom_Rectangle2D', function (r) { +this.x=r.getX$(); +this.y=r.getY$(); +this.width=r.getWidth$(); +this.height=r.getHeight$(); +}); + +Clazz_newMeth(C$, 'outcode$D$D', function (x, y) { +var out=0; +if (this.width <= 0 ) { +out|=5; +} else if (x < this.x ) { +out|=1; +} else if (x > this.x + this.width ) { +out|=4; +}if (this.height <= 0 ) { +out|=10; +} else if (y < this.y ) { +out|=2; +} else if (y > this.y + this.height ) { +out|=8; +}return out; +}); + +Clazz_newMeth(C$, 'getBounds2D$', function () { +return Clazz_new_(C$.c$$F$F$F$F,[this.x, this.y, this.width, this.height]); +}); + +Clazz_newMeth(C$, 'createIntersection$java_awt_geom_Rectangle2D', function (r) { +var dest; +if (Clazz_instanceOf(r, "java.awt.geom.Rectangle2D.Float")) { +dest=Clazz_new_(C$); +} else { +dest=Clazz_new_($I$(1)); +}$I$(2).intersect$java_awt_geom_Rectangle2D$java_awt_geom_Rectangle2D$java_awt_geom_Rectangle2D(this, r, dest); +return dest; +}); + +Clazz_newMeth(C$, 'createUnion$java_awt_geom_Rectangle2D', function (r) { +var dest; +if (Clazz_instanceOf(r, "java.awt.geom.Rectangle2D.Float")) { +dest=Clazz_new_(C$); +} else { +dest=Clazz_new_($I$(1)); +}$I$(2).union$java_awt_geom_Rectangle2D$java_awt_geom_Rectangle2D$java_awt_geom_Rectangle2D(this, r, dest); +return dest; +}); + +Clazz_newMeth(C$, 'toString', function () { +return this.getClass$().getName$() + "[x=" + new Float(this.x).toString() + ",y=" + new Float(this.y).toString() + ",w=" + new Float(this.width).toString() + ",h=" + new Float(this.height).toString() + "]" ; +}); +})() +; +(function(){var C$=Clazz_newClass(P$.Rectangle2D, "Double", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'java.awt.geom.Rectangle2D'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.x=0; +this.y=0; +this.width=0; +this.height=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +Clazz_super_(C$, this,1); +}, 1); + +Clazz_newMeth(C$, 'c$$D$D$D$D', function (x, y, w, h) { +Clazz_super_(C$, this,1); +this.setRect$D$D$D$D(x, y, w, h); +}, 1); + +Clazz_newMeth(C$, 'getX$', function () { +return this.x; +}); + +Clazz_newMeth(C$, 'getY$', function () { +return this.y; +}); + +Clazz_newMeth(C$, 'getWidth$', function () { +return this.width; +}); + +Clazz_newMeth(C$, 'getHeight$', function () { +return this.height; +}); + +Clazz_newMeth(C$, 'isEmpty$', function () { +return (this.width <= 0.0 ) || (this.height <= 0.0 ) ; +}); + +Clazz_newMeth(C$, 'setRect$D$D$D$D', function (x, y, w, h) { +this.x=x; +this.y=y; +this.width=w; +this.height=h; +}); + +Clazz_newMeth(C$, 'setRect$java_awt_geom_Rectangle2D', function (r) { +this.x=r.getX$(); +this.y=r.getY$(); +this.width=r.getWidth$(); +this.height=r.getHeight$(); +}); + +Clazz_newMeth(C$, 'outcode$D$D', function (x, y) { +var out=0; +if (this.width <= 0 ) { +out|=5; +} else if (x < this.x ) { +out|=1; +} else if (x > this.x + this.width ) { +out|=4; +}if (this.height <= 0 ) { +out|=10; +} else if (y < this.y ) { +out|=2; +} else if (y > this.y + this.height ) { +out|=8; +}return out; +}); + +Clazz_newMeth(C$, 'getBounds2D$', function () { +return Clazz_new_(C$.c$$D$D$D$D,[this.x, this.y, this.width, this.height]); +}); + +Clazz_newMeth(C$, 'createIntersection$java_awt_geom_Rectangle2D', function (r) { +var dest=Clazz_new_(C$); +$I$(2).intersect$java_awt_geom_Rectangle2D$java_awt_geom_Rectangle2D$java_awt_geom_Rectangle2D(this, r, dest); +return dest; +}); + +Clazz_newMeth(C$, 'createUnion$java_awt_geom_Rectangle2D', function (r) { +var dest=Clazz_new_(C$); +$I$(2).union$java_awt_geom_Rectangle2D$java_awt_geom_Rectangle2D$java_awt_geom_Rectangle2D(this, r, dest); +return dest; +}); + +Clazz_newMeth(C$, 'toString', function () { +return this.getClass$().getName$() + "[x=" + new Double(this.x).toString() + ",y=" + new Double(this.y).toString() + ",w=" + new Double(this.width).toString() + ",h=" + new Double(this.height).toString() + "]" ; +}); +})() +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:22 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt.geom"),I$=[[0,['java.awt.geom.Rectangle2D','.Double'],'java.awt.Rectangle','java.awt.geom.FlatteningPathIterator','InternalError']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "RectangularShape", null, null, ['java.awt.Shape', 'Cloneable']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'getMinX$', function () { +return this.getX$(); +}); + +Clazz_newMeth(C$, 'getMinY$', function () { +return this.getY$(); +}); + +Clazz_newMeth(C$, 'getMaxX$', function () { +return this.getX$() + this.getWidth$(); +}); + +Clazz_newMeth(C$, 'getMaxY$', function () { +return this.getY$() + this.getHeight$(); +}); + +Clazz_newMeth(C$, 'getCenterX$', function () { +return this.getX$() + this.getWidth$() / 2.0; +}); + +Clazz_newMeth(C$, 'getCenterY$', function () { +return this.getY$() + this.getHeight$() / 2.0; +}); + +Clazz_newMeth(C$, 'getFrame$', function () { +return Clazz_new_($I$(1).c$$D$D$D$D,[this.getX$(), this.getY$(), this.getWidth$(), this.getHeight$()]); +}); + +Clazz_newMeth(C$, 'setFrame$java_awt_geom_Point2D$java_awt_geom_Dimension2D', function (loc, size) { +this.setFrame$D$D$D$D(loc.getX$(), loc.getY$(), size.getWidth$(), size.getHeight$()); +}); + +Clazz_newMeth(C$, 'setFrame$java_awt_geom_Rectangle2D', function (r) { +this.setFrame$D$D$D$D(r.getX$(), r.getY$(), r.getWidth$(), r.getHeight$()); +}); + +Clazz_newMeth(C$, 'setFrameFromDiagonal$D$D$D$D', function (x1, y1, x2, y2) { +if (x2 < x1 ) { +var t=x1; +x1=x2; +x2=t; +}if (y2 < y1 ) { +var t=y1; +y1=y2; +y2=t; +}this.setFrame$D$D$D$D(x1, y1, x2 - x1, y2 - y1); +}); + +Clazz_newMeth(C$, 'setFrameFromDiagonal$java_awt_geom_Point2D$java_awt_geom_Point2D', function (p1, p2) { +this.setFrameFromDiagonal$D$D$D$D(p1.getX$(), p1.getY$(), p2.getX$(), p2.getY$()); +}); + +Clazz_newMeth(C$, 'setFrameFromCenter$D$D$D$D', function (centerX, centerY, cornerX, cornerY) { +var halfW=Math.abs(cornerX - centerX); +var halfH=Math.abs(cornerY - centerY); +this.setFrame$D$D$D$D(centerX - halfW, centerY - halfH, halfW * 2.0, halfH * 2.0); +}); + +Clazz_newMeth(C$, 'setFrameFromCenter$java_awt_geom_Point2D$java_awt_geom_Point2D', function (center, corner) { +this.setFrameFromCenter$D$D$D$D(center.getX$(), center.getY$(), corner.getX$(), corner.getY$()); +}); + +Clazz_newMeth(C$, 'contains$java_awt_geom_Point2D', function (p) { +return this.contains$D$D(p.getX$(), p.getY$()); +}); + +Clazz_newMeth(C$, 'intersects$java_awt_geom_Rectangle2D', function (r) { +return this.intersects$D$D$D$D(r.getX$(), r.getY$(), r.getWidth$(), r.getHeight$()); +}); + +Clazz_newMeth(C$, 'contains$java_awt_geom_Rectangle2D', function (r) { +return this.contains$D$D$D$D(r.getX$(), r.getY$(), r.getWidth$(), r.getHeight$()); +}); + +Clazz_newMeth(C$, 'getBounds$', function () { +var width=this.getWidth$(); +var height=this.getHeight$(); +if (width < 0 || height < 0 ) { +return Clazz_new_($I$(2)); +}var x=this.getX$(); +var y=this.getY$(); +var x1=Math.floor(x); +var y1=Math.floor(y); +var x2=Math.ceil(x + width); +var y2=Math.ceil(y + height); +return Clazz_new_($I$(2).c$$I$I$I$I,[(x1|0), (y1|0), ((x2 - x1)|0), ((y2 - y1)|0)]); +}); + +Clazz_newMeth(C$, 'getPathIterator$java_awt_geom_AffineTransform$D', function (at, flatness) { +return Clazz_new_($I$(3).c$$java_awt_geom_PathIterator$D,[this.getPathIterator$java_awt_geom_AffineTransform(at), flatness]); +}); + +Clazz_newMeth(C$, 'clone$', function () { +try { +return Clazz_clone(this); +} catch (e) { +if (Clazz_exceptionOf(e,"CloneNotSupportedException")){ +throw Clazz_new_($I$(4)); +} else { +throw e; +} +} +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:22 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt.geom"),I$=[]; +var C$=Clazz_newClass(P$, "RectIterator", null, null, 'java.awt.geom.PathIterator'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.x=0; +this.y=0; +this.w=0; +this.h=0; +this.affine=null; +this.index=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'set$java_awt_geom_Rectangle2D$java_awt_geom_AffineTransform', function (r, at) { +this.x=r.getX$(); +this.y=r.getY$(); +this.w=r.getWidth$(); +this.h=r.getHeight$(); +this.affine=at; +this.index=(this.w < 0 || this.h < 0 ? 6 : 0); +return this; +}); + +Clazz_newMeth(C$, 'getWindingRule$', function () { +return 1; +}); + +Clazz_newMeth(C$, 'isDone$', function () { +return this.index > 5; +}); + +Clazz_newMeth(C$, 'next$', function () { +this.index++; +}); + +Clazz_newMeth(C$, 'currentSegment$FA', function (coords) { +if (this.isDone$()) { +throw Clazz_new_(Clazz_load('java.util.NoSuchElementException').c$$S,["rect iterator out of bounds"]); +}if (this.index == 5) { +return 4; +}coords[0]=this.x; +coords[1]=this.y; +if (this.index == 1 || this.index == 2 ) { +coords[0] += this.w; +}if (this.index == 2 || this.index == 3 ) { +coords[1] += this.h; +}if (this.affine != null ) { +this.affine.transform$FA$I$FA$I$I(coords, 0, coords, 0, 1); +}return (this.index == 0 ? 0 : 1); +}); + +Clazz_newMeth(C$, 'currentSegment$DA', function (coords) { +if (this.isDone$()) { +throw Clazz_new_(Clazz_load('java.util.NoSuchElementException').c$$S,["rect iterator out of bounds"]); +}if (this.index == 5) { +return 4; +}coords[0]=this.x; +coords[1]=this.y; +if (this.index == 1 || this.index == 2 ) { +coords[0] += this.w; +}if (this.index == 2 || this.index == 3 ) { +coords[1] += this.h; +}if (this.affine != null ) { +this.affine.transform$DA$I$DA$I$I(coords, 0, coords, 0, 1); +}return (this.index == 0 ? 0 : 1); +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:22 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt"),I$=[]; +var C$=Clazz_newClass(P$, "GraphicsCallback", function(){ +Clazz_newInstance(this, arguments,0,C$); +}, 'sun.awt.SunGraphicsCallback'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); +; +(function(){var C$=Clazz_newClass(P$.GraphicsCallback, "PaintCallback", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'java.awt.GraphicsCallback'); +C$.instance=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.instance=Clazz_new_(C$); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +Clazz_super_(C$, this,1); +}, 1); + +Clazz_newMeth(C$, 'run$java_awt_Component$java_awt_Graphics', function (comp, cg) { +comp.paint$java_awt_Graphics(cg); +}); + +Clazz_newMeth(C$, 'getInstance$', function () { +return C$.instance; +}, 1); +})() +; +(function(){var C$=Clazz_newClass(P$.GraphicsCallback, "PaintAllCallback", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'java.awt.GraphicsCallback'); +C$.instance=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.instance=Clazz_new_(C$); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +Clazz_super_(C$, this,1); +}, 1); + +Clazz_newMeth(C$, 'run$java_awt_Component$java_awt_Graphics', function (comp, cg) { +comp.paintAll$java_awt_Graphics(cg); +}); + +Clazz_newMeth(C$, 'getInstance$', function () { +return C$.instance; +}, 1); +})() +; +(function(){var C$=Clazz_newClass(P$.GraphicsCallback, "PaintHeavyweightComponentsCallback", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'java.awt.GraphicsCallback'); +C$.instance=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.instance=Clazz_new_(C$); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +Clazz_super_(C$, this,1); +}, 1); + +Clazz_newMeth(C$, 'run$java_awt_Component$java_awt_Graphics', function (comp, cg) { +if (comp.isLightweight$()) { +comp.paintHeavyweightComponents$java_awt_Graphics(cg); +} else { +comp.paintAll$java_awt_Graphics(cg); +}}); + +Clazz_newMeth(C$, 'getInstance$', function () { +return C$.instance; +}, 1); +})() + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:15 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt"),I$=[[0,'swingjs.api.Interface','java.awt.image.ColorModel','java.awt.image.WritableRaster','Boolean','java.util.Hashtable']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "GraphicsConfiguration"); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'createCompatibleImage$I$I$I', function (width, height, transparency) { +if (this.getColorModel$().getTransparency$() == transparency) { +return this.createCompatibleImage$I$I(width, height); +}var cm=this.getColorModel$I(transparency); +if (cm == null ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["Unknown transparency: " + transparency]); +}var wr=cm.createCompatibleWritableRaster$I$I(width, height); +return this.newBufferedImage$java_awt_image_ColorModel$java_awt_image_WritableRaster$Z$java_util_Hashtable(cm, wr, cm.isAlphaPremultiplied$(), null); +}); + +Clazz_newMeth(C$, 'newBufferedImage$java_awt_image_ColorModel$java_awt_image_WritableRaster$Z$java_util_Hashtable', function (cm, wr, alphaPremultiplied, properties) { +return $I$(1).getInstanceWithParams$S$ClassA$OA("java.awt.image.BufferedImage", Clazz_array(Class, -1, [Clazz_getClass($I$(2)), Clazz_getClass($I$(3)), Clazz_getClass($I$(4)), Clazz_getClass($I$(5))]), Clazz_array(java.lang.Object, -1, [cm, wr, alphaPremultiplied ? $I$(4).TRUE : $I$(4).FALSE, properties])); +}); + +Clazz_newMeth(C$, 'createCompatibleVolatileImage$I$I', function (width, height) { +var vi=null; +try { +vi=this.createCompatibleVolatileImage$I$I$java_awt_ImageCapabilities$I(width, height, null, 1); +} catch (e) { +if (Clazz_exceptionOf(e,"java.awt.AWTException")){ +Clazz_assert(C$, this, function(){return false}); +} else { +throw e; +} +} +return vi; +}); + +Clazz_newMeth(C$, 'createCompatibleVolatileImage$I$I$I', function (width, height, transparency) { +var vi=null; +try { +vi=this.createCompatibleVolatileImage$I$I$java_awt_ImageCapabilities$I(width, height, null, transparency); +} catch (e) { +if (Clazz_exceptionOf(e,"java.awt.AWTException")){ +Clazz_assert(C$, this, function(){return false}); +} else { +throw e; +} +} +return vi; +}); + +Clazz_newMeth(C$, 'createCompatibleVolatileImage$I$I$java_awt_ImageCapabilities$I', function (width, height, caps, transparency) { +var vi=$I$(1).getInstanceWithParams$S$ClassA$OA("sun.awt.image.SunVolatileImage", Clazz_array(Class, -1, [Clazz_getClass(C$), Clazz_getClass(Integer), Clazz_getClass(Integer), Clazz_getClass($I$(4)), Clazz_getClass(java.lang.Object), Clazz_getClass(Integer)]), Clazz_array(java.lang.Object, -1, [this, Integer.valueOf$I(width), Integer.valueOf$I(height), caps, Integer.valueOf$I(transparency)])); +if (caps != null && caps.isAccelerated$() && !vi.getCapabilities$().isAccelerated$() ) { +throw Clazz_new_(Clazz_load('java.awt.AWTException').c$$S,["Supplied image capabilities could not be met by this graphics configuration."]); +}return vi; +}); + +Clazz_newMeth(C$, 'isTranslucencyCapable$', function () { +return false; +}); +C$.$_ASSERT_ENABLED_ = ClassLoader.getClassAssertionStatus$(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:15 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt"),I$=[[0,'java.awt.DisplayMode',['java.awt.GraphicsDevice','.WindowTranslucency']]],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "GraphicsDevice", function(){ +Clazz_newInstance(this, arguments,0,C$); +}); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.fullScreenWindow=null; +this.windowedModeBounds=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'getBestConfiguration$O', function (gct) { +return this.getDefaultConfiguration$(); +}); + +Clazz_newMeth(C$, 'isFullScreenSupported$', function () { +return false; +}); + +Clazz_newMeth(C$, 'setFullScreenWindow$java_awt_Window', function (w) { +}); + +Clazz_newMeth(C$, 'getFullScreenWindow$', function () { +return null; +}); + +Clazz_newMeth(C$, 'isDisplayChangeSupported$', function () { +return false; +}); + +Clazz_newMeth(C$, 'setDisplayMode$O', function (dm) { +throw Clazz_new_(Clazz_load('UnsupportedOperationException').c$$S,["Cannot change display mode"]); +}); + +Clazz_newMeth(C$, 'getDisplayMode$', function () { +var gc=this.getDefaultConfiguration$(); +var r=gc.getBounds$(); +var cm=gc.getColorModel$(); +return Clazz_new_($I$(1).c$$I$I$I$I,[r.width, r.height, cm.getPixelSize$(), 0]); +}); + +Clazz_newMeth(C$, 'getDisplayModes$', function () { +return Clazz_array($I$(1), -1, [this.getDisplayMode$()]); +}); + +Clazz_newMeth(C$, 'getAvailableAcceleratedMemory$', function () { +return -1; +}); + +Clazz_newMeth(C$, 'isWindowTranslucencySupported$java_awt_GraphicsDevice_WindowTranslucency', function (translucencyKind) { +switch (translucencyKind) { +case $I$(2).PERPIXEL_TRANSPARENT: +return C$.isWindowShapingSupported$(); +case $I$(2).TRANSLUCENT: +return C$.isWindowOpacitySupported$(); +case $I$(2).PERPIXEL_TRANSLUCENT: +return this.isWindowPerpixelTranslucencySupported$(); +} +return false; +}); + +Clazz_newMeth(C$, 'isWindowShapingSupported$', function () { +return false; +}, 1); + +Clazz_newMeth(C$, 'isWindowOpacitySupported$', function () { +return false; +}, 1); + +Clazz_newMeth(C$, 'isWindowPerpixelTranslucencySupported$', function () { +return true; +}); + +Clazz_newMeth(C$, 'getTranslucencyCapableGC$', function () { +var defaultGC=this.getDefaultConfiguration$(); +if (defaultGC.isTranslucencyCapable$()) { +return defaultGC; +}var configs=this.getConfigurations$(); +for (var j=0; j < configs.length; j++) { +if (configs[j].isTranslucencyCapable$()) { +return configs[j]; +}} +return null; +}); +; +(function(){var C$=Clazz_newClass(P$.GraphicsDevice, "WindowTranslucency", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'Enum'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +$vals=Clazz_array(C$,[0]); +Clazz_newEnumConst($vals, C$.c$, "PERPIXEL_TRANSPARENT", 0, []); +Clazz_newEnumConst($vals, C$.c$, "TRANSLUCENT", 1, []); +Clazz_newEnumConst($vals, C$.c$, "PERPIXEL_TRANSLUCENT", 2, []); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$); +var $vals=[]; +Clazz_newMeth(C$, 'values$', function() { return $vals }, 1); +Clazz_newMeth(C$, 'valueOf$S', function(name) { for (var val in $vals){ if ($vals[val].name == name) return $vals[val]} return null }, 1); +})() +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:15 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt"),I$=[[0,'swingjs.JSUtil']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "GraphicsEnvironment"); +C$.localEnv=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'getLocalGraphicsEnvironment$', function () { +if (C$.localEnv == null ) { +C$.localEnv=$I$(1).getInstance$S("swingjs.JSGraphicsEnvironment"); +}return C$.localEnv; +}, 1); + +Clazz_newMeth(C$, 'isHeadless$', function () { +return false; +}, 1); + +Clazz_newMeth(C$, 'getHeadlessProperty$', function () { +return false; +}, 1); + +Clazz_newMeth(C$, 'checkHeadless$', function () { +}, 1); + +Clazz_newMeth(C$, 'isHeadlessInstance$', function () { +return C$.getHeadlessProperty$(); +}); + +Clazz_newMeth(C$, 'registerFont$java_awt_Font', function (font) { +return true; +}); + +Clazz_newMeth(C$, 'preferLocaleFonts$', function () { +}); + +Clazz_newMeth(C$, 'preferProportionalFonts$', function () { +}); + +Clazz_newMeth(C$, 'getCenterPoint$', function () { +return null; +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:15 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt.image"),I$=[]; +var C$=Clazz_newInterface(P$, "ImageObserver"); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:23 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt"),I$=[[0,'InternalError']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "Insets", null, null, ['Cloneable', 'java.io.Serializable']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.top=0; +this.left=0; +this.bottom=0; +this.right=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$I$I$I$I', function (top, left, bottom, right) { +C$.$init$.apply(this); +this.top=top; +this.left=left; +this.bottom=bottom; +this.right=right; +}, 1); + +Clazz_newMeth(C$, 'set$I$I$I$I', function (top, left, bottom, right) { +this.top=top; +this.left=left; +this.bottom=bottom; +this.right=right; +}); + +Clazz_newMeth(C$, 'equals$O', function (obj) { +if (Clazz_instanceOf(obj, "java.awt.Insets")) { +var insets=obj; +return ((this.top == insets.top) && (this.left == insets.left) && (this.bottom == insets.bottom) && (this.right == insets.right) ); +}return false; +}); + +Clazz_newMeth(C$, 'hashCode$', function () { +var sum1=this.left + this.bottom; +var sum2=this.right + this.top; +var val1=(sum1 * (sum1 + 1)/2|0) + this.left; +var val2=(sum2 * (sum2 + 1)/2|0) + this.top; +var sum3=val1 + val2; +return (sum3 * (sum3 + 1)/2|0) + val2; +}); + +Clazz_newMeth(C$, 'toString', function () { +return this.getClass$().getName$() + "[top=" + this.top + ",left=" + this.left + ",bottom=" + this.bottom + ",right=" + this.right + "]" ; +}); + +Clazz_newMeth(C$, 'clone$', function () { +try { +return Clazz_clone(this); +} catch (e) { +if (Clazz_exceptionOf(e,"CloneNotSupportedException")){ +throw Clazz_new_($I$(1)); +} else { +throw e; +} +} +}); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:15 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt"),I$=[]; +var C$=Clazz_newInterface(P$, "ItemSelectable"); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:15 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt"),I$=[[0,'Thread','java.awt.Container','java.awt.Insets','javax.swing.JComponent','swingjs.JSFrameViewer','Boolean','javax.swing.UIManager','swingjs.plaf.JSComponentUI','java.util.Arrays','swingjs.JSUtil']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "JSComponent", function(){ +Clazz_newInstance(this, arguments,0,C$); +}, 'java.awt.Component'); +C$.秘incr=0; +C$.秘isRepaint=false; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.秘isRepaint=true; +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.秘isAppletFrame=false; +this.秘isFramedApplet=false; +this.秘htmlName=null; +this.秘num=0; +this.秘tempInsets=null; +this.秘gtemp=null; +this.秘isRootPane=false; +this.秘isContentPane=false; +this.秘appletViewer=null; +this.秘frameViewer=null; +this.秘topFrameViewer=null; +this.秘canvas=null; +this.ui=null; +this.秘uiClassID=null; +this.秘peerVis=null; +this.秘border=null; +this.秘iPaintMyself=0; +this.秘iPaintMyselfEntirely=false; +this.秘repaintAsUpdate=false; +this.秘paintClass=null; +this.秘updateClass=null; +this.秘isDesktop=false; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.秘appletViewer=($I$(1).currentThread$()).秘appletViewer; +this.秘iPaintMyself=0; +this.秘repaintAsUpdate=true; +}, 1); + +Clazz_newMeth(C$, '秘getUI$', function () { +return this.ui; +}); + +Clazz_newMeth(C$, '秘paintsSelfEntirely$', function () { +return this.秘iPaintMyselfEntirely; +}); + +Clazz_newMeth(C$, '秘setIsRepaint$Z', function (b) { +C$.秘isRepaint=b; +}, 1); + +Clazz_newMeth(C$, 'repaint$', function () { +if (this.秘isAWT$()) { +this.秘repaintCmp$J$I$I$I$I(0, 0, 0, this.width, this.height); +} else { +this.repaint$J$I$I$I$I(0, 0, 0, this.width, this.height); +}}); + +Clazz_newMeth(C$, '秘resizeOriginal$I$I', function (width, height) { +this.resize$I$I(width, height); +}); + +Clazz_newMeth(C$, '秘ensurePropertyChangeListener$java_awt_Component$java_awt_Component', function (c, listener) { +if (Clazz_instanceOf(listener, "java.beans.PropertyChangeListener")) { +c.removePropertyChangeListener$java_beans_PropertyChangeListener(listener); +c.addPropertyChangeListener$java_beans_PropertyChangeListener(listener); +} else if (listener != null ) { +System.err.println$S("JSComponent: " + listener + " is not a PropertyChangeListener -- modal dialog will fail." ); +}}, 1); + +Clazz_newMeth(C$, '秘getChildArray$java_awt_Container', function (c) { +return (c == null ? $I$(2).EMPTY_ARRAY : c.getChildArray$()); +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.superclazz.c$.apply(this, []); +C$.$init$.apply(this); +this.秘num=++C$.秘incr; +}, 1); + +Clazz_newMeth(C$, 'getGraphics$', function () { +if (this.width == 0 || this.height == 0 || !this.isVisible$() ) return null; +var g; +if (this.秘frameViewer != null ) { +g=this.秘frameViewer.getGraphics$().create$(); +if (this.秘isContentPane) { +if (this.秘tempInsets == null ) this.秘tempInsets=Clazz_new_($I$(3).c$$I$I$I$I,[0, 0, 0, 0]); +(this).getRootPane$().getInsets$java_awt_Insets(this.秘tempInsets); +if (this.秘tempInsets.left != 0 || this.秘tempInsets.top != 0 ) g.translate$I$I(this.秘tempInsets.left, this.秘tempInsets.top); +}return g; +}if (this.parent == null ) { +return null; +}g=this.parent.getGraphics$(); +if (g == null ) return null; +if (!$I$(4).isComponentObtainingGraphicsFrom$java_awt_Component(null) && !this.秘paintsSelf$() ) { +this.秘setPaintsSelf$I(1); +(this.ui).clearPaintPath$(); +}g.translate$I$I(this.x, (this.秘isContentPane ? 0 : this.y)); +g.clipRect$I$I$I$I(0, 0, this.width, this.height); +g.setFont$java_awt_Font(this.getFont$()); +return g; +}); + +Clazz_newMeth(C$, 'addNotify$', function () { +if (this.秘paintsSelf$() && this.ui != null ) (this.ui).clearPaintPath$(); +C$.superclazz.prototype.addNotify$.apply(this, []); +}); + +Clazz_newMeth(C$, 'setFrameViewer$swingjs_JSFrameViewer', function (viewer) { +return this.秘frameViewer=(viewer == null ? viewer=Clazz_new_($I$(5)).setForWindow$javax_swing_RootPaneContainer(this) : viewer); +}); + +Clazz_newMeth(C$, 'getFrameViewer$', function () { +var parent=null; +return (this.秘topFrameViewer != null ? this.秘topFrameViewer : this.秘frameViewer != null ? this.秘topFrameViewer=this.秘frameViewer : (parent=this.getParent$()) == null ? null : (this.秘topFrameViewer=parent.getFrameViewer$())); +}); + +Clazz_newMeth(C$, 'getHTMLName$S', function (uid) { +return (this.秘htmlName == null ? this.秘htmlName=this.appContext.getThreadGroup$().getName$() + "_" + uid + "_" + this.秘num : this.秘htmlName); +}); + +Clazz_newMeth(C$, 'getUIClassID$', function () { +return (this.秘uiClassID == null ? this.秘uiClassID="ComponentUI" : this.秘uiClassID); +}); + +Clazz_newMeth(C$, 'setUIClassID$S', function (id) { +this.秘uiClassID=id; +}); + +Clazz_newMeth(C$, 'setUI$javax_swing_plaf_ComponentUI', function (ui) { +this.ui=ui; +}); + +Clazz_newMeth(C$, 'getUI$', function () { +return this.ui; +}); + +Clazz_newMeth(C$, 'isDisplayable$', function () { +return C$.秘getTopInvokableAncestor$java_awt_Component$Z(this, false) != null ; +}); + +Clazz_newMeth(C$, 'updatePeerVisibility$Z', function (isVisible) { +if (this.getOrCreatePeer$() == null ) this.秘peerVis=(isVisible ? $I$(6).TRUE : $I$(6).FALSE); + else this.updatePeerVisibilityOrig$Z(isVisible); +}); + +Clazz_newMeth(C$, 'getOrCreatePeer$', function () { +return (this.ui == null ? null : this.peer == null ? (this.peer=this.getToolkit$().createComponent$java_awt_Component(this)) : this.peer); +}); + +Clazz_newMeth(C$, 'updateUI$', function () { +if (this.秘uiClassID == null ) this.秘uiClassID=this.getUIClassID$(); +if (this.ui == null ) this.setUI$javax_swing_plaf_ComponentUI($I$(7).getUI$java_awt_Component(this)); +}); + +Clazz_newMeth(C$, '秘getJSGraphic2D$java_awt_Graphics', function (g) { +return (g.mark$ ? g :null); +}); + +Clazz_newMeth(C$, '秘isAWT$', function () { +return (!!this.isAWT$ ||false); +}); + +Clazz_newMeth(C$, '秘setIsAWT$', function () { + +this.isAWT$ = true; +}); + +Clazz_newMeth(C$, 'isBackgroundSet$', function () { +return (this.background == null ? false : this.isAWT$ ||false ? !(Clazz_instanceOf(this.background, "javax.swing.plaf.UIResource")) : true); +}); + +Clazz_newMeth(C$, 'isForegroundSet$', function () { +return (this.foreground == null ? false : this.isAWT$ ||false ? !(Clazz_instanceOf(this.foreground, "javax.swing.plaf.UIResource")) : true); +}); + +Clazz_newMeth(C$, 'isFontSet$', function () { +return ((this.font == null ? null : new Boolean(this.isAWT$ ||false ? !(Clazz_instanceOf(this.font, "javax.swing.plaf.FontUIResource")) : true))).booleanValue$(); +}); + +Clazz_newMeth(C$, '秘updateUIZOrder$', function () { +var n=(this).getComponentCount$(); +if (n < 2) return; +var components=C$.秘getChildArray$java_awt_Container(this); +var zorders=Clazz_array(Integer.TYPE, [n]); +for (var i=0; i < n; i++) zorders[i]=$I$(8).getInheritedZ$javax_swing_JComponent(components[i]); + +$I$(9).sort$IA(zorders); +for (var i=0; i < n; i++) components[i].秘getUI$().setZ$I(zorders[n - 1 - i ]); + +}); + +Clazz_newMeth(C$, 'invalidateComp$', function () { +C$.superclazz.prototype.invalidateComp$.apply(this, []); +if (this.ui != null ) (this.ui).invalidate$(); +}); + +Clazz_newMeth(C$, 'validate$', function () { +var wasValid=this.isValid$(); +C$.superclazz.prototype.validate$.apply(this, []); +if (this.ui != null && !wasValid ) (this.ui).endValidate$(); +}); + +Clazz_newMeth(C$, '秘paintWithBackgroundCheck$java_awt_Graphics', function (g) { +var jcg=this.秘getJSGraphic2D$java_awt_Graphics(g); +this.秘checkBackgroundPainted$swingjs_JSGraphics2D$Z(jcg, true); +this.paint$java_awt_Graphics(g); +this.秘checkBackgroundPainted$swingjs_JSGraphics2D$Z(jcg, false); +}); + +Clazz_newMeth(C$, '秘paintContainerBackgroundCheck$java_awt_Graphics', function (g) { +var jcg=this.秘getJSGraphic2D$java_awt_Graphics(g); +this.秘checkBackgroundPainted$swingjs_JSGraphics2D$Z(jcg, true); +(this).paintContainer$java_awt_Graphics(g); +this.秘checkBackgroundPainted$swingjs_JSGraphics2D$Z(jcg, false); +}); + +Clazz_newMeth(C$, 'addKeyListener$java_awt_event_KeyListener', function (l) { +C$.superclazz.prototype.addKeyListener$java_awt_event_KeyListener.apply(this, [l]); +if (l != null && this.ui != null ) (this.ui).enableJSKeys$Z(true); +}); + +Clazz_newMeth(C$, 'removeKeyListener$java_awt_event_KeyListener', function (l) { +C$.superclazz.prototype.removeKeyListener$java_awt_event_KeyListener.apply(this, [l]); +if (this.keyListener == null && this.ui != null ) (this.ui).enableJSKeys$Z(false); +}); + +Clazz_newMeth(C$, '秘jsInputMapSet$', function () { +if (this.ui != null ) (this.ui).enableJSKeys$Z(true); +}); + +Clazz_newMeth(C$, '秘getTopInvokableAncestor$java_awt_Component$Z', function (c, andFocusable) { +for (var p=c; p != null ; p=C$.秘nextHigher$java_awt_Component(p)) { +if (p.isWindowOrJSApplet$() && (!andFocusable || (p).isFocusableWindow$() ) ) { +return p; +}} +return null; +}, 1); + +Clazz_newMeth(C$, '秘nextHigher$java_awt_Component', function (c) { +var p=c.getParent$(); +if (p == null && Clazz_instanceOf(c, "javax.swing.JPopupMenu") ) p=(c).getInvoker$(); +return p; +}, 1); + +Clazz_newMeth(C$, '秘isFocusSetAndEnabled$', function () { +return this.秘isFocusableSet && this.isFocusable$() ; +}); + +Clazz_newMeth(C$, '秘checkBackgroundPainted$swingjs_JSGraphics2D$Z', function (jsg, init) { +if (jsg == null || init ) { +this.秘gtemp=jsg; +(this.ui).paintBackground$swingjs_JSGraphics2D(jsg); +return; +}this.秘gtemp=null; +}); + +Clazz_newMeth(C$, '秘setPaintsSelf$I', function (flag) { +flag=(this.秘iPaintMyself == 2 ? 2 : (this.秘iPaintMyself=flag)); +var r; +return (flag == -1 || (r=(this).getRootPane$()) == null || r.秘paintsSelf$() ? flag : r.秘setPaintsSelf$I(1)); +}); + +Clazz_newMeth(C$, '秘paintsSelf$', function () { +if (this.秘iPaintMyself == 0) { +this.秘iPaintMyself=this.秘setPaintsSelf$I((this.秘iPaintMyselfEntirely=($I$(10).isOverridden$O$S$Class(this, "paint$java_awt_Graphics", this.秘paintClass) || $I$(10).isOverridden$O$S$Class(this, "paintComponent$java_awt_Graphics", javax.swing.JComponent ||null) || $I$(10).isOverridden$O$S$Class(this, "update$java_awt_Graphics", this.秘updateClass) || $I$(10).isOverridden$O$S$Class(this, "paintContainer$java_awt_Graphics", java.awt.Container ||null) )) || this.秘paintsBorder$() && $I$(10).isOverridden$O$S$Class(this.秘border, "paintBorder$java_awt_Component$java_awt_Graphics$I$I$I$I", this.秘border.秘paintClass) ? 1 : -1); +}return (this.秘iPaintMyself != -1); +}); + +Clazz_newMeth(C$, '秘paintsBorder$', function () { +return (this.秘border != null && !(Clazz_instanceOf(this.秘border, "javax.swing.plaf.BorderUIResource.CompoundBorderUIResource")) ); +}); + +Clazz_newMeth(C$, '秘selfOrChildIsPainted$', function () { +return this.秘paintsSelf$(); +}); + +Clazz_newMeth(C$, 'removeAll$', function () { +this.秘setPaintsSelf$I(0); +(this).paintImmediately$I$I$I$I(0, 0, this.width, this.height); +}); + +Clazz_newMeth(C$, 'canPaint$', function () { +return (C$.秘isRepaint && this.秘repaintAsUpdate && this.秘isAWT$() || !(Clazz_instanceOf(this.peer, "java.awt.peer.LightweightPeer")) ); +}); + +Clazz_newMeth(C$, '秘update$', function () { +var g=this.getGraphics$(); +try { +this.update$java_awt_Graphics(g); +} finally { +g.dispose$(); +} +}); + +Clazz_newMeth(C$, '秘paint$java_awt_Graphics', function (g) { +if (C$.秘isRepaint && this.秘isAWT$() && this.秘repaintAsUpdate ) { +this.update$java_awt_Graphics(g); +} else { +this.paint$java_awt_Graphics(g); +}}); + +Clazz_newMeth(C$, '秘repaint$', function () { +if (this.秘isAWT$()) { +this.秘repaintAsUpdate=false; +try { +C$.superclazz.prototype.repaint$.apply(this, []); +} finally { +this.秘repaintAsUpdate=true; +} +} else { +this.repaint$(); +}}); + +Clazz_newMeth(C$, '秘setIsDesktop$', function () { +this.秘isDesktop=true; +}); + +Clazz_newMeth(C$, '秘isDesktop$', function () { +return this.秘isDesktop; +}); + +Clazz_newMeth(C$, '秘frameAddNodify$javax_swing_JRootPane', function (rootPane) { +this.addNotify$(); +rootPane.addNotify$(); +}); +; +(function(){var C$=Clazz_newInterface(P$.JSComponent, "A2SComponentWrapper", function(){ +}); +})() +; +(function(){var C$=Clazz_newInterface(P$.JSComponent, "A2SWrappedComponent", function(){ +}); +})() +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 13:00:47 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt"),p$1={},I$=[[0,'java.util.ArrayList','java.awt.Dialog',['java.awt.Dialog','.ModalityType'],'java.awt.Toolkit','java.awt.Window','java.awt.event.ComponentEvent']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "JSDialog", null, 'java.awt.Window'); +C$.modalDialogs=null; +C$.$nameCounter=0; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.modalDialogs=Clazz_new_($I$(1)); +C$.$nameCounter=0; +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.blockedWindows=null; +this.resizable=false; +this.undecorated=false; +this.initialized=false; +this.modal=false; +this.modalityType=null; +this.title=null; +this.modalFilter=null; +this.isInHide=false; +this.isInDispose=false; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.blockedWindows=Clazz_new_($I$(1)); +this.resizable=true; +this.undecorated=false; +this.initialized=false; +this.isInHide=false; +this.isInDispose=false; +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_JSFrame', function (owner) { +C$.c$$java_awt_JSFrame$S$Z.apply(this, [owner, "", false]); +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Frame', function (owner) { +C$.c$$java_awt_Frame$S$Z.apply(this, [owner, "", false]); +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_JSFrame$Z', function (owner, modal) { +C$.c$$java_awt_JSFrame$S$Z.apply(this, [owner, "", modal]); +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Frame$Z', function (owner, modal) { +C$.c$$java_awt_Frame$S$Z.apply(this, [owner, "", modal]); +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_JSFrame$S', function (owner, title) { +C$.c$$java_awt_JSFrame$S$Z.apply(this, [owner, title, false]); +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Frame$S', function (owner, title) { +C$.c$$java_awt_Frame$S$Z.apply(this, [owner, title, false]); +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_JSFrame$S$Z', function (owner, title, modal) { +C$.c$$java_awt_Window$S$java_awt_Dialog_ModalityType.apply(this, [owner, title, modal ? $I$(2).DEFAULT_MODALITY_TYPE : $I$(3).MODELESS]); +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Frame$S$Z', function (owner, title, modal) { +C$.c$$java_awt_Window$S$java_awt_Dialog_ModalityType.apply(this, [owner, title, modal ? $I$(2).DEFAULT_MODALITY_TYPE : $I$(3).MODELESS]); +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_JSFrame$S$Z$java_awt_GraphicsConfiguration', function (owner, title, modal, gc) { +C$.c$$java_awt_Window$S$java_awt_Dialog_ModalityType$java_awt_GraphicsConfiguration.apply(this, [owner, title, modal ? $I$(2).DEFAULT_MODALITY_TYPE : $I$(3).MODELESS, gc]); +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Frame$S$Z$java_awt_GraphicsConfiguration', function (owner, title, modal, gc) { +C$.c$$java_awt_Window$S$java_awt_Dialog_ModalityType$java_awt_GraphicsConfiguration.apply(this, [owner, title, modal ? $I$(2).DEFAULT_MODALITY_TYPE : $I$(3).MODELESS, gc]); +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_JSDialog', function (owner) { +C$.c$$java_awt_JSDialog$S$Z.apply(this, [owner, "", false]); +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Dialog', function (owner) { +C$.c$$java_awt_Dialog$S$Z.apply(this, [owner, "", false]); +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_JSDialog$S', function (owner, title) { +C$.c$$java_awt_JSDialog$S$Z.apply(this, [owner, title, false]); +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Dialog$S', function (owner, title) { +C$.c$$java_awt_Dialog$S$Z.apply(this, [owner, title, false]); +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_JSDialog$S$Z', function (owner, title, modal) { +C$.c$$java_awt_Window$S$java_awt_Dialog_ModalityType.apply(this, [owner, title, modal ? $I$(2).DEFAULT_MODALITY_TYPE : $I$(3).MODELESS]); +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Dialog$S$Z', function (owner, title, modal) { +C$.c$$java_awt_Window$S$java_awt_Dialog_ModalityType.apply(this, [owner, title, modal ? $I$(2).DEFAULT_MODALITY_TYPE : $I$(3).MODELESS]); +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_JSDialog$S$Z$java_awt_GraphicsConfiguration', function (owner, title, modal, gc) { +C$.c$$java_awt_Window$S$java_awt_Dialog_ModalityType$java_awt_GraphicsConfiguration.apply(this, [owner, title, modal ? $I$(2).DEFAULT_MODALITY_TYPE : $I$(3).MODELESS, gc]); +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Dialog$S$Z$java_awt_GraphicsConfiguration', function (owner, title, modal, gc) { +C$.c$$java_awt_Window$S$java_awt_Dialog_ModalityType$java_awt_GraphicsConfiguration.apply(this, [owner, title, modal ? $I$(2).DEFAULT_MODALITY_TYPE : $I$(3).MODELESS, gc]); +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Window', function (owner) { +C$.c$$java_awt_Window$S$java_awt_Dialog_ModalityType.apply(this, [owner, null, $I$(3).MODELESS]); +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Window$S', function (owner, title) { +C$.c$$java_awt_Window$S$java_awt_Dialog_ModalityType.apply(this, [owner, title, $I$(3).MODELESS]); +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Window$java_awt_Dialog_ModalityType', function (owner, modalityType) { +C$.c$$java_awt_Window$S$java_awt_Dialog_ModalityType.apply(this, [owner, null, modalityType]); +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Window$S$java_awt_Dialog_ModalityType', function (owner, title, modalityType) { +C$.superclazz.c$$java_awt_Window.apply(this, [owner]); +C$.$init$.apply(this); +if ((owner != null ) && !(Clazz_instanceOf(owner, "java.awt.JSFrame")) && !(Clazz_instanceOf(owner, "java.awt.JSDialog")) ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["Wrong parent window"]); +}this.title=title; +this.setModalityType$java_awt_Dialog_ModalityType(modalityType); +this.initialized=true; +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Window$S$java_awt_Dialog_ModalityType$java_awt_GraphicsConfiguration', function (owner, title, modalityType, gc) { +C$.superclazz.c$$java_awt_Window$java_awt_GraphicsConfiguration.apply(this, [owner, gc]); +C$.$init$.apply(this); +if ((owner != null ) && !(Clazz_instanceOf(owner, "java.awt.JSFrame")) && !(Clazz_instanceOf(owner, "java.awt.JSDialog")) ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["wrong owner window"]); +}this.title=title; +this.setModalityType$java_awt_Dialog_ModalityType(modalityType); +this.initialized=true; +}, 1); + +Clazz_newMeth(C$, 'constructComponentName$', function () { +return "dialog" + C$.$nameCounter++; +}); + +Clazz_newMeth(C$, 'addNotify$', function () { +/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$()); +{ +this.getOrCreatePeer$(); +if (this.parent != null ) { +this.parent.addNotify$(); +}C$.superclazz.prototype.addNotify$.apply(this, []); +}}); + +Clazz_newMeth(C$, 'getOrCreatePeer$', function () { +return (this.ui == null ? null : this.peer == null ? (this.peer=this.getToolkit$().createDialog$java_awt_Dialog(this)) : this.peer); +}); + +Clazz_newMeth(C$, 'isModal$', function () { +return this.isModal_NoClientCode$(); +}); + +Clazz_newMeth(C$, 'isModal_NoClientCode$', function () { +return this.modalityType !== $I$(3).MODELESS ; +}); + +Clazz_newMeth(C$, 'setModal$Z', function (modal) { +this.modal=modal; +this.setModalityType$java_awt_Dialog_ModalityType(modal ? $I$(2).DEFAULT_MODALITY_TYPE : $I$(3).MODELESS); +}); + +Clazz_newMeth(C$, 'getModalityType$', function () { +return this.modalityType; +}); + +Clazz_newMeth(C$, 'setModalityType$java_awt_Dialog_ModalityType', function (type) { +if (type == null ) { +type=$I$(3).MODELESS; +}if (!$I$(4).getDefaultToolkit$().isModalityTypeSupported$java_awt_Dialog_ModalityType(type)) { +type=$I$(3).MODELESS; +}if (this.modalityType === type ) { +return; +}this.modalityType=type; +this.modal=(this.modalityType !== $I$(3).MODELESS ); +}); + +Clazz_newMeth(C$, 'getTitle$', function () { +return this.title; +}); + +Clazz_newMeth(C$, 'setTitle$S', function (title) { +var oldTitle=this.title; +{ +this.title=title; +var peer=this.peer; +if (peer != null ) { +peer.setTitle$S(title); +}}this.firePropertyChange$S$O$O("title", oldTitle, title); +}); + +Clazz_newMeth(C$, 'conditionalShow$java_awt_Component$Long', function (toFocus, time) { +var retval; +P$.Window.closeSplashScreen$(); +if (this.ui != null && (this.ui).isDisposed ) this.addNotify$(); +this.validate$(); +if (this.visible) { +this.toFront$(); +retval=false; +} else { +retval=true; +C$.superclazz.prototype.show$.apply(this, []); +if (toFocus != null && time != null && this.isFocusable$() && this.isEnabled$() && !this.isModalBlocked$() ) { +}if (this.isModalBlocked$()) { +this.modalBlocker.toFront$(); +}for (var i=0; i < this.ownedWindowList.size$(); i++) { +var child=this.ownedWindowList.elementAt$I(i); +if ((child != null ) && child.showWithParent ) { +child.show$(); +child.showWithParent=false; +}} +$I$(5).updateChildFocusableWindowState$java_awt_Window(this); +this.createHierarchyEvents$I$java_awt_Component$java_awt_Container$J$Z(1400, this, this.parent, 4, $I$(4).enabledOnToolkit$J(32768)); +if (this.componentListener != null || (this.eventMask & 1) != 0 || $I$(4).enabledOnToolkit$J(1) ) { +var e=Clazz_new_($I$(6).c$$java_awt_Component$I,[this, 102]); +$I$(4).getEventQueue$().postEvent$java_awt_AWTEvent(e); +}}if (retval && (this.state & 1) == 0 ) { +this.postWindowEvent$I(200); +this.state|=1; +}return retval; +}, p$1); + +Clazz_newMeth(C$, 'setVisible$Z', function (b) { +C$.superclazz.prototype.setVisible$Z.apply(this, [b]); +}); + +Clazz_newMeth(C$, 'show$', function () { +if (!this.initialized) { +throw Clazz_new_(Clazz_load('IllegalStateException').c$$S,["The dialog component has not been initialized properly"]); +}this.beforeFirstShow=false; +if (!this.isModal$()) { +p$1.conditionalShow$java_awt_Component$Long.apply(this, [null, null]); +} else { +p$1.conditionalShow$java_awt_Component$Long.apply(this, [null, null]); +}}); + +Clazz_newMeth(C$, 'interruptBlocking$', function () { +if (this.isModal$()) { +this.disposeImpl$(); +} else if (this.windowClosingException != null ) { +this.windowClosingException.fillInStackTrace$(); +this.windowClosingException.printStackTrace$(); +this.windowClosingException=null; +}}); + +Clazz_newMeth(C$, 'isResizable$', function () { +return this.resizable; +}); + +Clazz_newMeth(C$, 'setResizable$Z', function (resizable) { +var testvalid=false; +{ +this.resizable=resizable; +var peer=this.peer; +if (peer != null ) { +peer.setResizable$Z(resizable); +testvalid=true; +}}if (testvalid) { +this.invalidateIfValid$(); +}}); + +Clazz_newMeth(C$, 'setUndecorated$Z', function (undecorated) { +/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$()); +{ +if (this.isDisplayable$()) { +throw Clazz_new_(Clazz_load('java.awt.IllegalComponentStateException').c$$S,["The dialog is displayable."]); +}this.undecorated=undecorated; +}}); + +Clazz_newMeth(C$, 'isUndecorated$', function () { +return this.undecorated; +}); + +Clazz_newMeth(C$, 'paramString$', function () { +var str=C$.superclazz.prototype.paramString$.apply(this, []) + "," + this.modalityType ; +if (this.title != null ) { +str += ",title=" + this.title; +}return str; +}); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 13:00:46 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt"),p$1={},I$=[[0,'java.awt.Cursor','java.awt.Window']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "JSFrame", null, 'java.awt.Window'); +C$.$nameCounter=0; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.$nameCounter=0; +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.maximizedBounds=null; +this.title=null; +this.resizable=false; +this.undecorated=false; +this.mbManagement=false; +this.$state=0; +this.ownedWindows=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.title="Untitled"; +this.resizable=true; +this.undecorated=false; +this.mbManagement=false; +this.$state=0; +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +Clazz_super_(C$, this,1); +this.initTitleGC$S$java_awt_GraphicsConfiguration(null, null); +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_GraphicsConfiguration', function (gc) { +Clazz_super_(C$, this,1); +this.initTitleGC$S$java_awt_GraphicsConfiguration(null, gc); +}, 1); + +Clazz_newMeth(C$, 'c$$S', function (title) { +Clazz_super_(C$, this,1); +this.initTitleGC$S$java_awt_GraphicsConfiguration(title, null); +}, 1); + +Clazz_newMeth(C$, 'c$$S$java_awt_GraphicsConfiguration', function (title, gc) { +Clazz_super_(C$, this,1); +this.initTitleGC$S$java_awt_GraphicsConfiguration(title, gc); +}, 1); + +Clazz_newMeth(C$, 'initTitleGC$S$java_awt_GraphicsConfiguration', function (title, gc) { +this.title=(title == null ? "" : title); +this.initWinGC$java_awt_Window$java_awt_GraphicsConfiguration(null, gc); +}); + +Clazz_newMeth(C$, 'constructComponentName$', function () { +return "frame" + C$.$nameCounter++; +}); + +Clazz_newMeth(C$, 'addNotify$', function () { +this.getOrCreatePeer$(); +var p=this.peer; +if (p != null ) p.setMaximizedBounds$java_awt_Rectangle(this.maximizedBounds); +C$.superclazz.prototype.addNotify$.apply(this, []); +}); + +Clazz_newMeth(C$, 'getOrCreatePeer$', function () { +return (this.ui == null ? null : this.peer == null ? (this.peer=this.getToolkit$().createFrame$java_awt_JSFrame(this)) : this.peer); +}); + +Clazz_newMeth(C$, 'getTitle$', function () { +return this.title; +}); + +Clazz_newMeth(C$, 'setTitle$S', function (title) { +var oldTitle=this.title; +if (title == null ) { +title=""; +}{ +this.title=title; +var peer=this.peer; +if (peer != null ) { +peer.setTitle$S(title); +}}this.firePropertyChange$S$O$O("title", oldTitle, title); +}); + +Clazz_newMeth(C$, 'getIconImage$', function () { +var icons=this.icons; +if (icons != null ) { +if (icons.size$() > 0) { +return icons.get$I(0); +}}return null; +}); + +Clazz_newMeth(C$, 'setIconImage$java_awt_Image', function (image) { +C$.superclazz.prototype.setIconImage$java_awt_Image.apply(this, [image]); +}); + +Clazz_newMeth(C$, 'isResizable$', function () { +return this.resizable; +}); + +Clazz_newMeth(C$, 'setResizable$Z', function (resizable) { +var oldResizable=this.resizable; +{ +this.resizable=resizable; +}this.firePropertyChange$S$Z$Z("resizable", oldResizable, resizable); +}); + +Clazz_newMeth(C$, 'setState$I', function (state) { +var current=this.getExtendedState$(); +if (state == 1 && (current & 1) == 0 ) { +this.setExtendedState$I(current | 1); +} else if (state == 0 && (current & 1) != 0 ) { +this.setExtendedState$I(current & ~1); +}}); + +Clazz_newMeth(C$, 'setExtendedState$I', function (state) { +if (!p$1.isFrameStateSupported$I.apply(this, [state])) { +return; +}this.$state=state; +}); + +Clazz_newMeth(C$, 'isFrameStateSupported$I', function (state) { +if (!this.getToolkit$().isFrameStateSupported$I(state)) { +if (((state & 1) != 0) && !this.getToolkit$().isFrameStateSupported$I(1) ) { +return false; +} else { +state&=~1; +}return this.getToolkit$().isFrameStateSupported$I(state); +}return true; +}, p$1); + +Clazz_newMeth(C$, 'getState$', function () { +return (this.getExtendedState$() & 1) != 0 ? 1 : 0; +}); + +Clazz_newMeth(C$, 'getExtendedState$', function () { +return this.$state; +}); + +Clazz_newMeth(C$, 'setMaximizedBounds$java_awt_Rectangle', function (bounds) { +this.maximizedBounds=bounds; +}); + +Clazz_newMeth(C$, 'getMaximizedBounds$', function () { +return this.maximizedBounds; +}); + +Clazz_newMeth(C$, 'setUndecorated$Z', function (undecorated) { +this.undecorated=undecorated; +}); + +Clazz_newMeth(C$, 'isUndecorated$', function () { +return this.undecorated; +}); + +Clazz_newMeth(C$, 'removeNotify$', function () { +C$.superclazz.prototype.removeNotify$.apply(this, []); +}); + +Clazz_newMeth(C$, 'postProcessKeyEvent$java_awt_event_KeyEvent', function (e) { +C$.superclazz.prototype.postProcessKeyEvent$java_awt_event_KeyEvent.apply(this, [e]); +}); + +Clazz_newMeth(C$, 'paramString$', function () { +var str=C$.superclazz.prototype.paramString$.apply(this, []); +if (this.title != null ) { +str += ",title=" + this.title; +}if (this.resizable) { +str += ",resizable"; +}this.getExtendedState$(); +if (this.$state == 0) { +str += ",normal"; +} else { +if ((this.$state & 1) != 0) { +str += ",iconified"; +}if ((this.$state & 6) == 6) { +str += ",maximized"; +} else if ((this.$state & 2) != 0) { +str += ",maximized_horiz"; +} else if ((this.$state & 4) != 0) { +str += ",maximized_vert"; +}}return str; +}); + +Clazz_newMeth(C$, 'setCursor$I', function (cursorType) { +if (cursorType < 0 || cursorType > 13 ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["illegal cursor type"]); +}this.setCursor$java_awt_Cursor($I$(1).getPredefinedCursor$I(cursorType)); +}); + +Clazz_newMeth(C$, 'getCursorType$', function () { +return (this.getCursor$().getType$()); +}); + +Clazz_newMeth(C$, 'getFrames$', function () { +var allWindows=$I$(2).getWindows$(); +var frameCount=0; +for (var w, $w = 0, $$w = allWindows; $w<$$w.length&&((w=($$w[$w])),1);$w++) { +if (Clazz_instanceOf(w, "java.awt.JSFrame")) { +frameCount++; +}} +var frames=Clazz_array(C$, [frameCount]); +var c=0; +for (var w, $w = 0, $$w = allWindows; $w<$$w.length&&((w=($$w[$w])),1);$w++) { +if (Clazz_instanceOf(w, "java.awt.JSFrame")) { +frames[c++]=w; +}} +return frames; +}, 1); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:16 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt"),I$=[[0,'java.awt.FlowLayout']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "JSPanel", null, 'java.awt.Container'); +C$.nameCounter=0; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.nameCounter=0; +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.c$$java_awt_LayoutManager.apply(this, [Clazz_new_($I$(1))]); +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_LayoutManager', function (layout) { +Clazz_super_(C$, this,1); +this.setAppContext$(); +this.setLayout$java_awt_LayoutManager(layout); +}, 1); + +Clazz_newMeth(C$, 'constructComponentName$', function () { +return "panel" + C$.nameCounter++; +}); + +Clazz_newMeth(C$, 'addNotify$', function () { +this.getOrCreatePeer$(); +C$.superclazz.prototype.addNotify$.apply(this, []); +}); + +Clazz_newMeth(C$, 'getOrCreatePeer$', function () { +return (this.ui == null ? null : this.peer == null ? (this.peer=this.getToolkit$().createPanel$java_awt_Panel(this)) : this.peer); +}); + +Clazz_newMeth(C$, 'isFocusCycleRoot$', function () { +return true; +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:16 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt"),p$1={},I$=[[0,'java.util.LinkedList',['java.awt.KeyboardFocusManager','.LightweightFocusRequest'],'java.awt.AWTKeyStroke','java.util.HashMap','java.awt.DefaultFocusTraversalPolicy','java.util.Set','sun.awt.AppContext','java.awt.DefaultKeyboardFocusManager','Boolean','java.util.StringTokenizer','java.util.Collections','java.util.HashSet','java.awt.Toolkit','java.awt.GraphicsEnvironment','java.beans.PropertyChangeSupport','java.beans.VetoableChangeSupport','sun.awt.SunToolkit',['java.awt.KeyboardFocusManager','.HeavyweightFocusRequest'],['sun.awt.CausedFocusEvent','.Cause'],'java.awt.event.FocusEvent','sun.awt.CausedFocusEvent','java.awt.EventQueue']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "KeyboardFocusManager", function(){ +Clazz_newInstance(this, arguments,0,C$); +}, null, ['java.awt.KeyEventDispatcher', 'java.awt.KeyEventPostProcessor']); +C$.focusOwner=null; +C$.permanentFocusOwner=null; +C$.focusedWindow=null; +C$.activeWindow=null; +C$.defaultFocusTraversalKeyPropertyNames=null; +C$.defaultFocusTraversalKeyStrokes=null; +C$.currentFocusCycleRoot=null; +C$.mostRecentFocusOwners=null; +C$.heavyweightRequests=null; +C$.currentLightweightRequests=null; +C$.clearingCurrentLightweightRequests=false; +C$.allowSyncFocusRequests=false; +C$.newFocusOwner=null; +C$.disableRestoreFocus=false; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.defaultFocusTraversalKeyPropertyNames=Clazz_array(String, -1, ["forwardDefaultFocusTraversalKeys", "backwardDefaultFocusTraversalKeys", "upCycleDefaultFocusTraversalKeys", "downCycleDefaultFocusTraversalKeys"]); +C$.defaultFocusTraversalKeyStrokes=Clazz_array($I$(3), -2, [Clazz_array($I$(3), -1, [$I$(3).getAWTKeyStroke$I$I$Z(9, 0, false), $I$(3).getAWTKeyStroke$I$I$Z(9, 130, false)]), Clazz_array($I$(3), -1, [$I$(3).getAWTKeyStroke$I$I$Z(9, 65, false), $I$(3).getAWTKeyStroke$I$I$Z(9, 195, false)]), Clazz_array($I$(3), -1, []), Clazz_array($I$(3), -1, [])]); +C$.mostRecentFocusOwners=Clazz_new_($I$(4)); +C$.heavyweightRequests=Clazz_new_($I$(1)); +C$.allowSyncFocusRequests=true; +C$.newFocusOwner=null; +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.peer=null; +this.defaultPolicy=null; +this.defaultPolicyAWT=null; +this.defaultFocusTraversalKeys=null; +this.vetoableSupport=null; +this.changeSupport=null; +this.keyEventDispatchers=null; +this.keyEventPostProcessors=null; +this.currentSequencedEvent=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.defaultPolicyAWT=Clazz_new_($I$(5)); +this.defaultFocusTraversalKeys=Clazz_array($I$(6), [4]); +this.currentSequencedEvent=null; +}, 1); + +Clazz_newMeth(C$, 'getCurrentKeyboardFocusManager$', function () { +return C$.getCurrentKeyboardFocusManager$sun_awt_AppContext($I$(7).getAppContext$()); +}, 1); + +Clazz_newMeth(C$, 'getCurrentKeyboardFocusManager$sun_awt_AppContext', function (appcontext) { +var manager=appcontext.get$O(Clazz_getClass(C$)); +if (manager == null ) { +manager=Clazz_new_($I$(8)); +appcontext.put$O$O(Clazz_getClass(C$), manager); +}return manager; +}, 1); + +Clazz_newMeth(C$, 'setCurrentKeyboardFocusManager$java_awt_KeyboardFocusManager', function (newManager) { +var oldManager=null; +{ +var appcontext=$I$(7).getAppContext$(); +if (newManager != null ) { +oldManager=C$.getCurrentKeyboardFocusManager$sun_awt_AppContext(appcontext); +appcontext.put$O$O(Clazz_getClass(C$), newManager); +} else { +oldManager=C$.getCurrentKeyboardFocusManager$sun_awt_AppContext(appcontext); +appcontext.remove$O(Clazz_getClass(C$)); +}}if (oldManager != null ) { +oldManager.firePropertyChange$S$O$O("managingFocus", $I$(9).TRUE, $I$(9).FALSE); +}if (newManager != null ) { +newManager.firePropertyChange$S$O$O("managingFocus", $I$(9).FALSE, $I$(9).TRUE); +}}, 1); + +Clazz_newMeth(C$, 'setCurrentSequencedEvent$java_awt_SequencedEvent', function (current) { +{ +Clazz_assert(C$, this, function(){return (current == null || this.currentSequencedEvent == null )}); +this.currentSequencedEvent=current; +}}); + +Clazz_newMeth(C$, 'getCurrentSequencedEvent$', function () { +{ +return this.currentSequencedEvent; +}}); + +Clazz_newMeth(C$, 'initFocusTraversalKeysSet$S$java_util_Set', function (value, targetSet) { +var tokens=Clazz_new_($I$(10).c$$S$S,[value, ","]); +while (tokens.hasMoreTokens$()){ +targetSet.add$TE($I$(3).getAWTKeyStroke$S(tokens.nextToken$())); +} +return (targetSet.isEmpty$()) ? $I$(11).EMPTY_SET : $I$(11).unmodifiableSet$java_util_Set(targetSet); +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.$init$.apply(this); +for (var i=0; i < 4; i++) { +var work_set=Clazz_new_($I$(12)); +for (var j=0; j < C$.defaultFocusTraversalKeyStrokes[i].length; j++) { +work_set.add$TE(C$.defaultFocusTraversalKeyStrokes[i][j]); +} +this.defaultFocusTraversalKeys[i]=(work_set.isEmpty$()) ? $I$(11).EMPTY_SET : $I$(11).unmodifiableSet$java_util_Set(work_set); +} +p$1.initPeer.apply(this, []); +}, 1); + +Clazz_newMeth(C$, 'initPeer', function () { +var tk=$I$(13).getDefaultToolkit$(); +var peerProvider=tk; +this.peer=peerProvider.getKeyboardFocusManagerPeer$(); +}, p$1); + +Clazz_newMeth(C$, 'getFocusOwner$', function () { +if (C$.focusOwner == null ) { +return null; +}return (C$.focusOwner.appContext === $I$(7).getAppContext$() ) ? C$.focusOwner : null; +}); + +Clazz_newMeth(C$, 'getGlobalFocusOwner$', function () { +return C$.focusOwner; +}); + +Clazz_newMeth(C$, 'setGlobalFocusOwner$java_awt_Component', function (focusOwner) { +var oldFocusOwner=null; +var shouldFire=false; +if (focusOwner == null || focusOwner.isFocusable$() ) { +p$1.checkKFMSecurity.apply(this, []); +oldFocusOwner=this.getFocusOwner$(); +try { +this.fireVetoableChange$S$O$O("focusOwner", oldFocusOwner, focusOwner); +} catch (e) { +if (Clazz_exceptionOf(e,"java.beans.PropertyVetoException")){ +return; +} else { +throw e; +} +} +C$.focusOwner=focusOwner; +if (focusOwner != null && (this.getCurrentFocusCycleRoot$() == null || !focusOwner.isFocusCycleRoot$java_awt_Container(this.getCurrentFocusCycleRoot$()) ) ) { +var rootAncestor=focusOwner.getFocusCycleRootAncestor$(); +if (rootAncestor == null && focusOwner.isWindowOrJSApplet$() ) { +rootAncestor=focusOwner; +}if (rootAncestor != null ) { +this.setGlobalCurrentFocusCycleRootPriv$java_awt_Container(rootAncestor); +}}shouldFire=true; +}if (shouldFire) { +this.firePropertyChange$S$O$O("focusOwner", oldFocusOwner, focusOwner); +}}); + +Clazz_newMeth(C$, 'clearFocusOwner$', function () { +if (this.getFocusOwner$() != null ) { +this.clearGlobalFocusOwner$(); +}}); + +Clazz_newMeth(C$, 'clearGlobalFocusOwner$', function () { +if (!$I$(14).isHeadless$()) { +$I$(13).getDefaultToolkit$(); +p$1._clearGlobalFocusOwner.apply(this, []); +}}); + +Clazz_newMeth(C$, '_clearGlobalFocusOwner', function () { +var activeWindow=C$.markClearGlobalFocusOwner$(); +this.peer.clearGlobalFocusOwner$java_awt_Window(activeWindow); +}, p$1); + +Clazz_newMeth(C$, 'clearGlobalFocusOwnerPriv$', function () { +this.clearGlobalFocusOwner$(); +}); + +Clazz_newMeth(C$, 'getNativeFocusOwner$', function () { +return this.peer.getCurrentFocusOwner$(); +}); + +Clazz_newMeth(C$, 'setNativeFocusOwner$java_awt_Component', function (comp) { +this.peer.setCurrentFocusOwner$java_awt_Component(comp); +}); + +Clazz_newMeth(C$, 'getNativeFocusedWindow$', function () { +return this.peer.getCurrentFocusedWindow$(); +}); + +Clazz_newMeth(C$, 'getPermanentFocusOwner$', function () { +{ +if (C$.permanentFocusOwner == null ) { +return null; +}return (C$.permanentFocusOwner.appContext === $I$(7).getAppContext$() ) ? C$.permanentFocusOwner : null; +}}); + +Clazz_newMeth(C$, 'getGlobalPermanentFocusOwner$', function () { +{ +p$1.checkKFMSecurity.apply(this, []); +return C$.permanentFocusOwner; +}}); + +Clazz_newMeth(C$, 'setGlobalPermanentFocusOwner$java_awt_Component', function (permanentFocusOwner) { +var oldPermanentFocusOwner=null; +var shouldFire=false; +if (permanentFocusOwner == null || permanentFocusOwner.isFocusable$() ) { +{ +p$1.checkKFMSecurity.apply(this, []); +oldPermanentFocusOwner=this.getPermanentFocusOwner$(); +try { +this.fireVetoableChange$S$O$O("permanentFocusOwner", oldPermanentFocusOwner, permanentFocusOwner); +} catch (e) { +if (Clazz_exceptionOf(e,"java.beans.PropertyVetoException")){ +return; +} else { +throw e; +} +} +C$.permanentFocusOwner=permanentFocusOwner; +C$.setMostRecentFocusOwner$java_awt_Component(permanentFocusOwner); +shouldFire=true; +}}if (shouldFire) { +this.firePropertyChange$S$O$O("permanentFocusOwner", oldPermanentFocusOwner, permanentFocusOwner); +}}); + +Clazz_newMeth(C$, 'getFocusedWindow$', function () { +{ +if (C$.focusedWindow == null ) { +return null; +}return (C$.focusedWindow.appContext === $I$(7).getAppContext$() ) ? C$.focusedWindow : null; +}}); + +Clazz_newMeth(C$, 'getGlobalFocusedWindow$', function () { +{ +p$1.checkKFMSecurity.apply(this, []); +return C$.focusedWindow; +}}); + +Clazz_newMeth(C$, 'setGlobalFocusedWindow$java_awt_Window', function (focusedWindow) { +var oldFocusedWindow=null; +var shouldFire=false; +if (focusedWindow == null || focusedWindow.isFocusableWindow$() ) { +oldFocusedWindow=this.getFocusedWindow$(); +try { +this.fireVetoableChange$S$O$O("focusedWindow", oldFocusedWindow, focusedWindow); +} catch (e) { +if (Clazz_exceptionOf(e,"java.beans.PropertyVetoException")){ +return; +} else { +throw e; +} +} +C$.focusedWindow=focusedWindow; +shouldFire=true; +}if (shouldFire) { +this.firePropertyChange$S$O$O("focusedWindow", oldFocusedWindow, focusedWindow); +}}); + +Clazz_newMeth(C$, 'getActiveWindow$', function () { +{ +if (C$.activeWindow == null ) { +return null; +}return (C$.activeWindow.appContext === $I$(7).getAppContext$() ) ? C$.activeWindow : null; +}}); + +Clazz_newMeth(C$, 'getGlobalActiveWindow$', function () { +{ +p$1.checkKFMSecurity.apply(this, []); +return C$.activeWindow; +}}); + +Clazz_newMeth(C$, 'setGlobalActiveWindow$java_awt_Window', function (activeWindow) { +var oldActiveWindow; +{ +p$1.checkKFMSecurity.apply(this, []); +oldActiveWindow=this.getActiveWindow$(); +try { +this.fireVetoableChange$S$O$O("activeWindow", oldActiveWindow, activeWindow); +} catch (e) { +if (Clazz_exceptionOf(e,"java.beans.PropertyVetoException")){ +return; +} else { +throw e; +} +} +C$.activeWindow=activeWindow; +}this.firePropertyChange$S$O$O("activeWindow", oldActiveWindow, activeWindow); +}); + +Clazz_newMeth(C$, 'getDefaultFocusTraversalPolicy$', function () { +return this.defaultPolicy; +}); + +Clazz_newMeth(C$, 'getDefaultAWTFocusTraversalPolicy$', function () { +return (this.defaultPolicyAWT == null ? this.defaultPolicyAWT=Clazz_new_($I$(5)) : this.defaultPolicyAWT); +}); + +Clazz_newMeth(C$, 'setDefaultFocusTraversalPolicy$java_awt_FocusTraversalPolicy', function (defaultPolicy) { +if (defaultPolicy == null ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["default focus traversal policy cannot be null"]); +}var oldPolicy; +{ +oldPolicy=this.defaultPolicy; +this.defaultPolicy=defaultPolicy; +}this.firePropertyChange$S$O$O("defaultFocusTraversalPolicy", oldPolicy, defaultPolicy); +}); + +Clazz_newMeth(C$, 'setDefaultFocusTraversalKeys$I$java_util_Set', function (id, keystrokes) { +if (id < 0 || id >= 4 ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["invalid focus traversal key identifier"]); +}if (keystrokes == null ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["cannot set null Set of default focus traversal keys"]); +}var oldKeys; +{ +for (var keystroke, $keystroke = keystrokes.iterator$(); $keystroke.hasNext$()&&((keystroke=($keystroke.next$())),1);) { +if (keystroke == null ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["cannot set null focus traversal key"]); +}if (keystroke.getKeyChar$() != "\uffff") { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["focus traversal keys cannot map to KEY_TYPED events"]); +}for (var i=0; i < 4; i++) { +if (i == id) { +continue; +}if (this.defaultFocusTraversalKeys[i].contains$O(keystroke)) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["focus traversal keys must be unique for a Component"]); +}} +} +oldKeys=this.defaultFocusTraversalKeys[id]; +this.defaultFocusTraversalKeys[id]=$I$(11).unmodifiableSet$java_util_Set(Clazz_new_($I$(12).c$$java_util_Collection,[keystrokes])); +}this.firePropertyChange$S$O$O(C$.defaultFocusTraversalKeyPropertyNames[id], oldKeys, keystrokes); +}); + +Clazz_newMeth(C$, 'getDefaultFocusTraversalKeys$I', function (id) { +if (id < 0 || id >= 4 ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["invalid focus traversal key identifier"]); +}return this.defaultFocusTraversalKeys[id]; +}); + +Clazz_newMeth(C$, 'getCurrentFocusCycleRoot$', function () { +{ +if (C$.currentFocusCycleRoot == null ) { +return null; +}return (C$.currentFocusCycleRoot.appContext === $I$(7).getAppContext$() ) ? C$.currentFocusCycleRoot : null; +}}); + +Clazz_newMeth(C$, 'getGlobalCurrentFocusCycleRoot$', function () { +{ +p$1.checkKFMSecurity.apply(this, []); +return C$.currentFocusCycleRoot; +}}); + +Clazz_newMeth(C$, 'setGlobalCurrentFocusCycleRoot$java_awt_Container', function (newFocusCycleRoot) { +var oldFocusCycleRoot; +{ +oldFocusCycleRoot=this.getCurrentFocusCycleRoot$(); +C$.currentFocusCycleRoot=newFocusCycleRoot; +}this.firePropertyChange$S$O$O("currentFocusCycleRoot", oldFocusCycleRoot, newFocusCycleRoot); +}); + +Clazz_newMeth(C$, 'setGlobalCurrentFocusCycleRootPriv$java_awt_Container', function (newFocusCycleRoot) { +this.setGlobalCurrentFocusCycleRoot$java_awt_Container(newFocusCycleRoot); +}); + +Clazz_newMeth(C$, 'addPropertyChangeListener$java_beans_PropertyChangeListener', function (listener) { +if (listener != null ) { +{ +if (this.changeSupport == null ) { +this.changeSupport=Clazz_new_($I$(15).c$$O,[this]); +}this.changeSupport.addPropertyChangeListener$java_beans_PropertyChangeListener(listener); +}}}); + +Clazz_newMeth(C$, 'removePropertyChangeListener$java_beans_PropertyChangeListener', function (listener) { +if (listener != null ) { +{ +if (this.changeSupport != null ) { +this.changeSupport.removePropertyChangeListener$java_beans_PropertyChangeListener(listener); +}}}}); + +Clazz_newMeth(C$, 'getPropertyChangeListeners$', function () { +if (this.changeSupport == null ) { +this.changeSupport=Clazz_new_($I$(15).c$$O,[this]); +}return this.changeSupport.getPropertyChangeListeners$(); +}); + +Clazz_newMeth(C$, 'addPropertyChangeListener$S$java_beans_PropertyChangeListener', function (propertyName, listener) { +if (listener != null ) { +{ +if (this.changeSupport == null ) { +this.changeSupport=Clazz_new_($I$(15).c$$O,[this]); +}this.changeSupport.addPropertyChangeListener$S$java_beans_PropertyChangeListener(propertyName, listener); +}}}); + +Clazz_newMeth(C$, 'removePropertyChangeListener$S$java_beans_PropertyChangeListener', function (propertyName, listener) { +if (listener != null ) { +{ +if (this.changeSupport != null ) { +this.changeSupport.removePropertyChangeListener$S$java_beans_PropertyChangeListener(propertyName, listener); +}}}}); + +Clazz_newMeth(C$, 'getPropertyChangeListeners$S', function (propertyName) { +if (this.changeSupport == null ) { +this.changeSupport=Clazz_new_($I$(15).c$$O,[this]); +}return this.changeSupport.getPropertyChangeListeners$S(propertyName); +}); + +Clazz_newMeth(C$, 'firePropertyChange$S$O$O', function (propertyName, oldValue, newValue) { +if (oldValue === newValue ) { +return; +}var changeSupport=this.changeSupport; +if (changeSupport != null ) { +changeSupport.firePropertyChange$S$O$O(propertyName, oldValue, newValue); +}}); + +Clazz_newMeth(C$, 'addVetoableChangeListener$java_beans_VetoableChangeListener', function (listener) { +if (listener != null ) { +{ +if (this.vetoableSupport == null ) { +this.vetoableSupport=Clazz_new_($I$(16).c$$O,[this]); +}this.vetoableSupport.addVetoableChangeListener$java_beans_VetoableChangeListener(listener); +}}}); + +Clazz_newMeth(C$, 'removeVetoableChangeListener$java_beans_VetoableChangeListener', function (listener) { +if (listener != null ) { +{ +if (this.vetoableSupport != null ) { +this.vetoableSupport.removeVetoableChangeListener$java_beans_VetoableChangeListener(listener); +}}}}); + +Clazz_newMeth(C$, 'getVetoableChangeListeners$', function () { +if (this.vetoableSupport == null ) { +this.vetoableSupport=Clazz_new_($I$(16).c$$O,[this]); +}return this.vetoableSupport.getVetoableChangeListeners$(); +}); + +Clazz_newMeth(C$, 'addVetoableChangeListener$S$java_beans_VetoableChangeListener', function (propertyName, listener) { +if (listener != null ) { +{ +if (this.vetoableSupport == null ) { +this.vetoableSupport=Clazz_new_($I$(16).c$$O,[this]); +}this.vetoableSupport.addVetoableChangeListener$S$java_beans_VetoableChangeListener(propertyName, listener); +}}}); + +Clazz_newMeth(C$, 'removeVetoableChangeListener$S$java_beans_VetoableChangeListener', function (propertyName, listener) { +if (listener != null ) { +{ +if (this.vetoableSupport != null ) { +this.vetoableSupport.removeVetoableChangeListener$S$java_beans_VetoableChangeListener(propertyName, listener); +}}}}); + +Clazz_newMeth(C$, 'getVetoableChangeListeners$S', function (propertyName) { +if (this.vetoableSupport == null ) { +this.vetoableSupport=Clazz_new_($I$(16).c$$O,[this]); +}return this.vetoableSupport.getVetoableChangeListeners$S(propertyName); +}); + +Clazz_newMeth(C$, 'fireVetoableChange$S$O$O', function (propertyName, oldValue, newValue) { +if (oldValue === newValue ) { +return; +}var vetoableSupport=this.vetoableSupport; +if (vetoableSupport != null ) { +vetoableSupport.fireVetoableChange$S$O$O(propertyName, oldValue, newValue); +}}); + +Clazz_newMeth(C$, 'addKeyEventDispatcher$java_awt_KeyEventDispatcher', function (dispatcher) { +if (dispatcher != null ) { +{ +if (this.keyEventDispatchers == null ) { +this.keyEventDispatchers=Clazz_new_($I$(1)); +}this.keyEventDispatchers.add$TE(dispatcher); +}}}); + +Clazz_newMeth(C$, 'removeKeyEventDispatcher$java_awt_KeyEventDispatcher', function (dispatcher) { +if (dispatcher != null ) { +{ +if (this.keyEventDispatchers != null ) { +this.keyEventDispatchers.remove$O(dispatcher); +}}}}); + +Clazz_newMeth(C$, 'getKeyEventDispatchers$', function () { +return (this.keyEventDispatchers != null ) ? this.keyEventDispatchers.clone$() : null; +}); + +Clazz_newMeth(C$, 'addKeyEventPostProcessor$java_awt_KeyEventPostProcessor', function (processor) { +if (processor != null ) { +{ +if (this.keyEventPostProcessors == null ) { +this.keyEventPostProcessors=Clazz_new_($I$(1)); +}this.keyEventPostProcessors.add$TE(processor); +}}}); + +Clazz_newMeth(C$, 'removeKeyEventPostProcessor$java_awt_KeyEventPostProcessor', function (processor) { +if (processor != null ) { +{ +if (this.keyEventPostProcessors != null ) { +this.keyEventPostProcessors.remove$O(processor); +}}}}); + +Clazz_newMeth(C$, 'getKeyEventPostProcessors$', function () { +return (this.keyEventPostProcessors != null ) ? this.keyEventPostProcessors.clone$() : null; +}); + +Clazz_newMeth(C$, 'setMostRecentFocusOwner$java_awt_Component', function (component) { +var window=component; +while (window != null && !window.isWindowOrJSApplet$() ){ +window=window.parent; +} +if (window != null ) { +C$.setMostRecentFocusOwner$java_awt_Window$java_awt_Component(window, component); +}}, 1); + +Clazz_newMeth(C$, 'setMostRecentFocusOwner$java_awt_Window$java_awt_Component', function (window, component) { +C$.mostRecentFocusOwners.put$TK$TV(window, component); +}, 1); + +Clazz_newMeth(C$, 'clearMostRecentFocusOwner$java_awt_Component', function (comp) { +var window; +if (comp == null ) { +return; +}window=comp.getParent$(); +while (window != null && !window.isWindowOrJSApplet$() ){ +window=window.getParent$(); +} +if ((window != null ) && (C$.getMostRecentFocusOwner$java_awt_Window(window) === comp ) ) { +C$.setMostRecentFocusOwner$java_awt_Window$java_awt_Component(window, null); +}if (window != null ) { +var realWindow=window; +if (realWindow.getTemporaryLostComponent$() === comp ) { +realWindow.setTemporaryLostComponent$java_awt_Component(null); +}}}, 1); + +Clazz_newMeth(C$, 'getMostRecentFocusOwner$java_awt_Window', function (window) { +return C$.mostRecentFocusOwners.get$O(window); +}, 1); + +Clazz_newMeth(C$, 'redispatchEvent$java_awt_Component$java_awt_AWTEvent', function (target, e) { +e.focusManagerIsDispatching=true; +target.dispatchEvent$java_awt_AWTEvent(e); +e.focusManagerIsDispatching=false; +}); + +Clazz_newMeth(C$, 'focusNextComponent$', function () { +var focusOwner=this.getFocusOwner$(); +if (focusOwner != null ) { +this.focusNextComponent$java_awt_Component(focusOwner); +}}); + +Clazz_newMeth(C$, 'focusPreviousComponent$', function () { +var focusOwner=this.getFocusOwner$(); +if (focusOwner != null ) { +this.focusPreviousComponent$java_awt_Component(focusOwner); +}}); + +Clazz_newMeth(C$, 'upFocusCycle$', function () { +var focusOwner=this.getFocusOwner$(); +if (focusOwner != null ) { +this.upFocusCycle$java_awt_Component(focusOwner); +}}); + +Clazz_newMeth(C$, 'downFocusCycle$', function () { +var focusOwner=this.getFocusOwner$(); +if (Clazz_instanceOf(focusOwner, "java.awt.Container")) { +this.downFocusCycle$java_awt_Container(focusOwner); +}}); + +Clazz_newMeth(C$, 'dumpRequests$', function () { +System.err.println$S(">>> Requests dump, time: " + System.currentTimeMillis$()); +{ +for (var req, $req = C$.heavyweightRequests.iterator$(); $req.hasNext$()&&((req=($req.next$())),1);) { +System.err.println$S(">>> Req: " + req); +} +}System.err.println$S(""); +}); + +Clazz_newMeth(C$, 'processSynchronousLightweightTransfer$java_awt_Component$java_awt_Component$Z$Z$J', function (heavyweight, descendant, temporary, focusedWindowChangeAllowed, time) { +var parentWindow=$I$(17).getContainingWindow$java_awt_Component(heavyweight); +if (parentWindow == null || !parentWindow.syncLWRequests ) { +return false; +}if (descendant == null ) { +descendant=heavyweight; +}var manager=C$.getCurrentKeyboardFocusManager$sun_awt_AppContext($I$(17).targetToAppContext$O(descendant)); +var currentFocusOwnerEvent=null; +var newFocusOwnerEvent=null; +var currentFocusOwner=manager.getGlobalFocusOwner$(); +{ +var hwFocusRequest=C$.getLastHWRequest$(); +if (hwFocusRequest == null && heavyweight === manager.getNativeFocusOwner$() && C$.allowSyncFocusRequests ) { +if (descendant === currentFocusOwner ) { +return true; +}manager.enqueueKeyEvents$J$java_awt_Component(time, descendant); +hwFocusRequest=Clazz_new_($I$(18).c$$java_awt_Component$java_awt_Component$Z$sun_awt_CausedFocusEvent_Cause,[heavyweight, descendant, temporary, $I$(19).UNKNOWN]); +C$.heavyweightRequests.add$TE(hwFocusRequest); +if (currentFocusOwner != null ) { +currentFocusOwnerEvent=Clazz_new_($I$(20).c$$java_awt_Component$I$Z$java_awt_Component,[currentFocusOwner, 1005, temporary, descendant]); +}newFocusOwnerEvent=Clazz_new_($I$(20).c$$java_awt_Component$I$Z$java_awt_Component,[descendant, 1004, temporary, currentFocusOwner]); +}}var result=false; +var clearing=C$.clearingCurrentLightweightRequests; +var caughtEx=null; +try { +C$.clearingCurrentLightweightRequests=false; +{ +if (currentFocusOwnerEvent != null && currentFocusOwner != null ) { +(currentFocusOwnerEvent).isPosted=true; +caughtEx=C$.dispatchAndCatchException$Throwable$java_awt_Component$java_awt_event_FocusEvent(caughtEx, currentFocusOwner, currentFocusOwnerEvent); +result=true; +}if (newFocusOwnerEvent != null && descendant != null ) { +(newFocusOwnerEvent).isPosted=true; +caughtEx=C$.dispatchAndCatchException$Throwable$java_awt_Component$java_awt_event_FocusEvent(caughtEx, descendant, newFocusOwnerEvent); +result=true; +}}} finally { +C$.clearingCurrentLightweightRequests=clearing; +} +if (Clazz_instanceOf(caughtEx, "java.lang.RuntimeException")) { +throw caughtEx; +} else if (Clazz_instanceOf(caughtEx, "java.lang.Error")) { +throw caughtEx; +}return result; +}, 1); + +Clazz_newMeth(C$, 'shouldNativelyFocusHeavyweight$java_awt_Component$java_awt_Component$Z$Z$J$sun_awt_CausedFocusEvent_Cause', function (heavyweight, descendant, temporary, focusedWindowChangeAllowed, time, cause) { +if (descendant == null ) { +descendant=heavyweight; +}var manager=C$.getCurrentKeyboardFocusManager$sun_awt_AppContext($I$(17).targetToAppContext$O(descendant)); +var thisManager=C$.getCurrentKeyboardFocusManager$(); +var currentFocusOwner=thisManager.getGlobalFocusOwner$(); +var nativeFocusOwner=thisManager.getNativeFocusOwner$(); +var nativeFocusedWindow=thisManager.getNativeFocusedWindow$(); +{ +var hwFocusRequest=C$.getLastHWRequest$(); +if (hwFocusRequest == null && heavyweight === nativeFocusOwner && heavyweight.getContainingWindow$() === nativeFocusedWindow ) { +if (descendant === currentFocusOwner ) { +return 0; +}manager.enqueueKeyEvents$J$java_awt_Component(time, descendant); +hwFocusRequest=Clazz_new_($I$(18).c$$java_awt_Component$java_awt_Component$Z$sun_awt_CausedFocusEvent_Cause,[heavyweight, descendant, temporary, cause]); +C$.heavyweightRequests.add$TE(hwFocusRequest); +if (currentFocusOwner != null ) { +var currentFocusOwnerEvent=Clazz_new_($I$(21).c$$java_awt_Component$I$Z$java_awt_Component$sun_awt_CausedFocusEvent_Cause,[currentFocusOwner, 1005, temporary, descendant, cause]); +$I$(17).postEvent$sun_awt_AppContext$java_awt_AWTEvent(currentFocusOwner.appContext, currentFocusOwnerEvent); +}var newFocusOwnerEvent=Clazz_new_($I$(21).c$$java_awt_Component$I$Z$java_awt_Component$sun_awt_CausedFocusEvent_Cause,[descendant, 1004, temporary, currentFocusOwner, cause]); +$I$(17).postEvent$sun_awt_AppContext$java_awt_AWTEvent(descendant.appContext, newFocusOwnerEvent); +return 1; +} else if (hwFocusRequest != null && hwFocusRequest.heavyweight === heavyweight ) { +if (hwFocusRequest.addLightweightRequest$java_awt_Component$Z$sun_awt_CausedFocusEvent_Cause(descendant, temporary, cause)) { +manager.enqueueKeyEvents$J$java_awt_Component(time, descendant); +}return 1; +} else { +if (!focusedWindowChangeAllowed) { +if (hwFocusRequest === $I$(18).CLEAR_GLOBAL_FOCUS_OWNER ) { +var size=C$.heavyweightRequests.size$(); +hwFocusRequest=((size >= 2) ? C$.heavyweightRequests.get$I(size - 2) : null); +}if (C$.focusedWindowChanged$java_awt_Component$java_awt_Component(heavyweight, (hwFocusRequest != null ) ? hwFocusRequest.heavyweight : nativeFocusedWindow)) { +return 0; +}}manager.enqueueKeyEvents$J$java_awt_Component(time, descendant); +C$.heavyweightRequests.add$TE(Clazz_new_($I$(18).c$$java_awt_Component$java_awt_Component$Z$sun_awt_CausedFocusEvent_Cause,[heavyweight, descendant, temporary, cause])); +return 2; +}}}, 1); + +Clazz_newMeth(C$, 'markClearGlobalFocusOwner$', function () { +var nativeFocusedWindow=C$.getCurrentKeyboardFocusManager$().getNativeFocusedWindow$(); +{ +var hwFocusRequest=C$.getLastHWRequest$(); +if (hwFocusRequest === $I$(18).CLEAR_GLOBAL_FOCUS_OWNER ) { +return null; +}C$.heavyweightRequests.add$TE($I$(18).CLEAR_GLOBAL_FOCUS_OWNER); +var activeWindow=((hwFocusRequest != null ) ? $I$(17).getContainingWindow$java_awt_Component(hwFocusRequest.heavyweight) : nativeFocusedWindow); +while (activeWindow != null && !(Clazz_instanceOf(activeWindow, "javax.swing.JFrame") || Clazz_instanceOf(activeWindow, "javax.swing.JDialog") || Clazz_instanceOf(activeWindow, "java.applet.JSApplet") ) ){ +activeWindow=activeWindow.getParent_NoClientCode$(); +} +return activeWindow; +}}, 1); + +Clazz_newMeth(C$, 'getCurrentWaitingRequest$java_awt_Component', function (parent) { +{ +var hwFocusRequest=C$.getFirstHWRequest$(); +if (hwFocusRequest != null ) { +if (hwFocusRequest.heavyweight === parent ) { +var lwFocusRequest=hwFocusRequest.lightweightRequests.getFirst$(); +if (lwFocusRequest != null ) { +return lwFocusRequest.component; +}}}}return null; +}); + +Clazz_newMeth(C$, 'isAutoFocusTransferEnabled$', function () { +{ +return (C$.heavyweightRequests.size$() == 0) && !C$.disableRestoreFocus && (null == C$.currentLightweightRequests ) ; +}}, 1); + +Clazz_newMeth(C$, 'isAutoFocusTransferEnabledFor$java_awt_Component', function (comp) { +return C$.isAutoFocusTransferEnabled$() && comp.isAutoFocusTransferOnDisposal$() ; +}, 1); + +Clazz_newMeth(C$, 'dispatchAndCatchException$Throwable$java_awt_Component$java_awt_event_FocusEvent', function (ex, comp, event) { +var retEx=null; +try { +comp.dispatchEvent$java_awt_AWTEvent(event); +} catch (e$$) { +if (Clazz_exceptionOf(e$$,"RuntimeException")){ +var re = e$$; +{ +retEx=re; +} +} else if (Clazz_exceptionOf(e$$,"Error")){ +var er = e$$; +{ +retEx=er; +} +} else { +throw e$$; +} +} +if (retEx != null ) { +if (ex != null ) { +C$.handleException$Throwable(ex); +}return retEx; +}return ex; +}, 1); + +Clazz_newMeth(C$, 'handleException$Throwable', function (ex) { +ex.printStackTrace$(); +}, 1); + +Clazz_newMeth(C$, 'processCurrentLightweightRequests$', function () { +var manager=C$.getCurrentKeyboardFocusManager$(); +var localLightweightRequests=null; +var globalFocusOwner=manager.getGlobalFocusOwner$(); +if ((globalFocusOwner != null ) && (globalFocusOwner.appContext !== $I$(7).getAppContext$() ) ) { +return; +}{ +if (C$.currentLightweightRequests != null ) { +C$.clearingCurrentLightweightRequests=true; +C$.disableRestoreFocus=true; +localLightweightRequests=C$.currentLightweightRequests; +C$.allowSyncFocusRequests=(localLightweightRequests.size$() < 2); +C$.currentLightweightRequests=null; +} else { +return; +}}var caughtEx=null; +try { +if (localLightweightRequests != null ) { +var lastFocusOwner=null; +var currentFocusOwner=null; +for (var iter=localLightweightRequests.iterator$(); iter.hasNext$(); ) { +currentFocusOwner=manager.getGlobalFocusOwner$(); +var lwFocusRequest=iter.next$(); +if (!iter.hasNext$()) { +C$.disableRestoreFocus=false; +}var currentFocusOwnerEvent=null; +if (currentFocusOwner != null ) { +currentFocusOwnerEvent=Clazz_new_($I$(21).c$$java_awt_Component$I$Z$java_awt_Component$sun_awt_CausedFocusEvent_Cause,[currentFocusOwner, 1005, lwFocusRequest.temporary, lwFocusRequest.component, lwFocusRequest.cause]); +}var newFocusOwnerEvent=Clazz_new_($I$(21).c$$java_awt_Component$I$Z$java_awt_Component$sun_awt_CausedFocusEvent_Cause,[lwFocusRequest.component, 1004, lwFocusRequest.temporary, currentFocusOwner == null ? lastFocusOwner : currentFocusOwner, lwFocusRequest.cause]); +if (currentFocusOwner != null ) { +(currentFocusOwnerEvent).isPosted=true; +caughtEx=C$.dispatchAndCatchException$Throwable$java_awt_Component$java_awt_event_FocusEvent(caughtEx, currentFocusOwner, currentFocusOwnerEvent); +}(newFocusOwnerEvent).isPosted=true; +caughtEx=C$.dispatchAndCatchException$Throwable$java_awt_Component$java_awt_event_FocusEvent(caughtEx, lwFocusRequest.component, newFocusOwnerEvent); +if (manager.getGlobalFocusOwner$() === lwFocusRequest.component ) { +lastFocusOwner=lwFocusRequest.component; +}} +}} finally { +C$.clearingCurrentLightweightRequests=false; +C$.disableRestoreFocus=false; +localLightweightRequests=null; +C$.allowSyncFocusRequests=true; +} +if (Clazz_instanceOf(caughtEx, "java.lang.RuntimeException")) { +throw caughtEx; +} else if (Clazz_instanceOf(caughtEx, "java.lang.Error")) { +throw caughtEx; +}}, 1); + +Clazz_newMeth(C$, 'retargetUnexpectedFocusEvent$java_awt_event_FocusEvent', function (fe) { +{ +if (C$.removeFirstRequest$()) { +return C$.retargetFocusEvent$java_awt_AWTEvent(fe); +}var source=fe.getComponent$(); +var opposite=fe.getOppositeComponent$(); +var temporary=false; +if (fe.getID$() == 1005 && (opposite == null || C$.isTemporary$java_awt_Component$java_awt_Component(opposite, source) ) ) { +temporary=true; +}return Clazz_new_($I$(21).c$$java_awt_Component$I$Z$java_awt_Component$sun_awt_CausedFocusEvent_Cause,[source, fe.getID$(), temporary, opposite, $I$(19).NATIVE_SYSTEM]); +}}, 1); + +Clazz_newMeth(C$, 'retargetFocusGained$java_awt_event_FocusEvent', function (fe) { +Clazz_assert(C$, this, function(){return (fe.getID$() == 1004)}); +var currentFocusOwner=C$.getCurrentKeyboardFocusManager$().getGlobalFocusOwner$(); +var source=fe.getComponent$(); +var opposite=fe.getOppositeComponent$(); +var nativeSource=C$.getHeavyweight$java_awt_Component(source); +{ +var hwFocusRequest=C$.getFirstHWRequest$(); +if (hwFocusRequest === $I$(18).CLEAR_GLOBAL_FOCUS_OWNER ) { +return C$.retargetUnexpectedFocusEvent$java_awt_event_FocusEvent(fe); +}if (source != null && nativeSource == null && hwFocusRequest != null ) { +if (source === hwFocusRequest.getFirstLightweightRequest$().component ) { +source=hwFocusRequest.heavyweight; +nativeSource=source; +}}if (hwFocusRequest != null && nativeSource === hwFocusRequest.heavyweight ) { +C$.heavyweightRequests.removeFirst$(); +var lwFocusRequest=hwFocusRequest.lightweightRequests.removeFirst$(); +var newSource=lwFocusRequest.component; +if (currentFocusOwner != null ) { +C$.newFocusOwner=newSource; +}var temporary=(opposite == null || C$.isTemporary$java_awt_Component$java_awt_Component(newSource, opposite) ) ? false : lwFocusRequest.temporary; +if (hwFocusRequest.lightweightRequests.size$() > 0) { +C$.currentLightweightRequests=hwFocusRequest.lightweightRequests; +$I$(22).invokeLater$Runnable(((P$.KeyboardFocusManager$1|| +(function(){var C$=Clazz_newClass(P$, "KeyboardFocusManager$1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'Runnable', 1); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'run$', function () { +P$.KeyboardFocusManager.processCurrentLightweightRequests$(); +}); +})() +), Clazz_new_(P$.KeyboardFocusManager$1.$init$, [this, null]))); +}return Clazz_new_($I$(21).c$$java_awt_Component$I$Z$java_awt_Component$sun_awt_CausedFocusEvent_Cause,[newSource, 1004, temporary, opposite, lwFocusRequest.cause]); +}if (currentFocusOwner != null && currentFocusOwner.getContainingWindow$() === source && (hwFocusRequest == null || source !== hwFocusRequest.heavyweight ) ) { +return Clazz_new_($I$(21).c$$java_awt_Component$I$Z$java_awt_Component$sun_awt_CausedFocusEvent_Cause,[currentFocusOwner, 1004, false, null, $I$(19).ACTIVATION]); +}return C$.retargetUnexpectedFocusEvent$java_awt_event_FocusEvent(fe); +}}, 1); + +Clazz_newMeth(C$, 'retargetFocusLost$java_awt_event_FocusEvent', function (fe) { +Clazz_assert(C$, this, function(){return (fe.getID$() == 1005)}); +var currentFocusOwner=C$.getCurrentKeyboardFocusManager$().getGlobalFocusOwner$(); +var opposite=fe.getOppositeComponent$(); +var nativeOpposite=C$.getHeavyweight$java_awt_Component(opposite); +{ +var hwFocusRequest=C$.getFirstHWRequest$(); +if (hwFocusRequest === $I$(18).CLEAR_GLOBAL_FOCUS_OWNER ) { +if (currentFocusOwner != null ) { +C$.heavyweightRequests.removeFirst$(); +return Clazz_new_($I$(21).c$$java_awt_Component$I$Z$java_awt_Component$sun_awt_CausedFocusEvent_Cause,[currentFocusOwner, 1005, false, null, $I$(19).CLEAR_GLOBAL_FOCUS_OWNER]); +}} else if (opposite == null ) { +if (currentFocusOwner != null ) { +return Clazz_new_($I$(21).c$$java_awt_Component$I$Z$java_awt_Component$sun_awt_CausedFocusEvent_Cause,[currentFocusOwner, 1005, true, null, $I$(19).ACTIVATION]); +} else { +return fe; +}} else if (hwFocusRequest != null && (nativeOpposite === hwFocusRequest.heavyweight || nativeOpposite == null && opposite === hwFocusRequest.getFirstLightweightRequest$().component ) ) { +if (currentFocusOwner == null ) { +return fe; +}var lwFocusRequest=hwFocusRequest.lightweightRequests.getFirst$(); +var temporary=C$.isTemporary$java_awt_Component$java_awt_Component(opposite, currentFocusOwner) ? true : lwFocusRequest.temporary; +return Clazz_new_($I$(21).c$$java_awt_Component$I$Z$java_awt_Component$sun_awt_CausedFocusEvent_Cause,[currentFocusOwner, 1005, temporary, lwFocusRequest.component, lwFocusRequest.cause]); +} else if (C$.focusedWindowChanged$java_awt_Component$java_awt_Component(opposite, currentFocusOwner)) { +if (!fe.isTemporary$() && currentFocusOwner != null ) { +fe=Clazz_new_($I$(21).c$$java_awt_Component$I$Z$java_awt_Component$sun_awt_CausedFocusEvent_Cause,[currentFocusOwner, 1005, true, opposite, $I$(19).ACTIVATION]); +}return fe; +}return C$.retargetUnexpectedFocusEvent$java_awt_event_FocusEvent(fe); +}}, 1); + +Clazz_newMeth(C$, 'retargetFocusEvent$java_awt_AWTEvent', function (event) { +if (C$.clearingCurrentLightweightRequests) { +return event; +}var manager=C$.getCurrentKeyboardFocusManager$(); +{ +if (C$.newFocusOwner != null && event.getID$() == 1005 ) { +var fe=event; +if (manager.getGlobalFocusOwner$() === fe.getComponent$() && fe.getOppositeComponent$() === C$.newFocusOwner ) { +C$.newFocusOwner=null; +return event; +}}}C$.processCurrentLightweightRequests$(); +switch (event.getID$()) { +case 1004: +{ +event=C$.retargetFocusGained$java_awt_event_FocusEvent(event); +break; +}case 1005: +{ +event=C$.retargetFocusLost$java_awt_event_FocusEvent(event); +break; +}default: +} +return event; +}, 1); + +Clazz_newMeth(C$, 'clearMarkers$', function () { +}); + +Clazz_newMeth(C$, 'removeFirstRequest$', function () { +var manager=C$.getCurrentKeyboardFocusManager$(); +{ +var hwFocusRequest=C$.getFirstHWRequest$(); +if (hwFocusRequest != null ) { +C$.heavyweightRequests.removeFirst$(); +if (hwFocusRequest.lightweightRequests != null ) { +for (var lwIter=hwFocusRequest.lightweightRequests.iterator$(); lwIter.hasNext$(); ) { +manager.dequeueKeyEvents$J$java_awt_Component(-1, lwIter.next$().component); +} +}}if (C$.heavyweightRequests.size$() == 0) { +manager.clearMarkers$(); +}return (C$.heavyweightRequests.size$() > 0); +}}, 1); + +Clazz_newMeth(C$, 'removeLastFocusRequest$java_awt_Component', function (heavyweight) { +var manager=C$.getCurrentKeyboardFocusManager$(); +{ +var hwFocusRequest=C$.getLastHWRequest$(); +if (hwFocusRequest != null && hwFocusRequest.heavyweight === heavyweight ) { +C$.heavyweightRequests.removeLast$(); +}if (C$.heavyweightRequests.size$() == 0) { +manager.clearMarkers$(); +}}}, 1); + +Clazz_newMeth(C$, 'focusedWindowChanged$java_awt_Component$java_awt_Component', function (to, from) { +var wto=$I$(17).getContainingWindow$java_awt_Component(to); +var wfrom=$I$(17).getContainingWindow$java_awt_Component(from); +if (wto == null && wfrom == null ) { +return true; +}if (wto == null ) { +return true; +}if (wfrom == null ) { +return true; +}return (wto !== wfrom ); +}, 1); + +Clazz_newMeth(C$, 'isTemporary$java_awt_Component$java_awt_Component', function (to, from) { +var wto=$I$(17).getContainingWindow$java_awt_Component(to); +var wfrom=$I$(17).getContainingWindow$java_awt_Component(from); +if (wto == null && wfrom == null ) { +return false; +}if (wto == null ) { +return true; +}if (wfrom == null ) { +return false; +}return (wto !== wfrom ); +}, 1); + +Clazz_newMeth(C$, 'getHeavyweight$java_awt_Component', function (comp) { +if (comp == null || comp.getPeer$() == null ) { +return null; +} else if (Clazz_instanceOf(comp.getPeer$(), "java.awt.peer.LightweightPeer")) { +return comp.getNativeContainer$(); +} else { +return comp; +}}, 1); + +Clazz_newMeth(C$, 'isProxyActiveImpl$java_awt_event_KeyEvent', function (e) { +return e.isProxyActive ||false; +}, 1); + +Clazz_newMeth(C$, 'isProxyActive$java_awt_event_KeyEvent', function (e) { +if (!$I$(14).isHeadless$()) { +return C$.isProxyActiveImpl$java_awt_event_KeyEvent(e); +} else { +return false; +}}, 1); + +Clazz_newMeth(C$, 'getLastHWRequest$', function () { +{ +return (C$.heavyweightRequests.size$() > 0) ? C$.heavyweightRequests.getLast$() : null; +}}, 1); + +Clazz_newMeth(C$, 'getFirstHWRequest$', function () { +{ +return (C$.heavyweightRequests.size$() > 0) ? C$.heavyweightRequests.getFirst$() : null; +}}, 1); + +Clazz_newMeth(C$, 'checkKFMSecurity', function () { +}, p$1); +C$.$_ASSERT_ENABLED_ = ClassLoader.getClassAssertionStatus$(C$); +; +(function(){var C$=Clazz_newClass(P$.KeyboardFocusManager, "LightweightFocusRequest", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.component=null; +this.temporary=false; +this.cause=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Component$Z$sun_awt_CausedFocusEvent_Cause', function (component, temporary, cause) { +C$.$init$.apply(this); +this.component=component; +this.temporary=temporary; +this.cause=cause; +}, 1); + +Clazz_newMeth(C$, 'toString', function () { +return "LightweightFocusRequest[component=" + this.component + ",temporary=" + this.temporary + ", cause=" + this.cause + "]" ; +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.KeyboardFocusManager, "HeavyweightFocusRequest", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}); +C$.CLEAR_GLOBAL_FOCUS_OWNER=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.CLEAR_GLOBAL_FOCUS_OWNER=Clazz_new_(C$); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.heavyweight=null; +this.lightweightRequests=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.$init$.apply(this); +this.heavyweight=null; +this.lightweightRequests=null; +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Component$java_awt_Component$Z$sun_awt_CausedFocusEvent_Cause', function (heavyweight, descendant, temporary, cause) { +C$.$init$.apply(this); +this.heavyweight=heavyweight; +this.lightweightRequests=Clazz_new_($I$(1)); +this.addLightweightRequest$java_awt_Component$Z$sun_awt_CausedFocusEvent_Cause(descendant, temporary, cause); +}, 1); + +Clazz_newMeth(C$, 'addLightweightRequest$java_awt_Component$Z$sun_awt_CausedFocusEvent_Cause', function (descendant, temporary, cause) { +var lastDescendant=((this.lightweightRequests.size$() > 0) ? this.lightweightRequests.getLast$().component : null); +if (descendant !== lastDescendant ) { +this.lightweightRequests.add$TE(Clazz_new_($I$(2).c$$java_awt_Component$Z$sun_awt_CausedFocusEvent_Cause,[descendant, temporary, cause])); +return true; +} else { +return false; +}}); + +Clazz_newMeth(C$, 'getFirstLightweightRequest$', function () { +if (this === C$.CLEAR_GLOBAL_FOCUS_OWNER ) { +return null; +}return this.lightweightRequests.getFirst$(); +}); + +Clazz_newMeth(C$, 'toString', function () { +var first=true; +var str="HeavyweightFocusRequest[heavweight=" + this.heavyweight + ",lightweightRequests=" ; +if (this.lightweightRequests == null ) { +str += null; +} else { +str += "["; +for (var lwRequest, $lwRequest = this.lightweightRequests.iterator$(); $lwRequest.hasNext$()&&((lwRequest=($lwRequest.next$())),1);) { +if (first) { +first=false; +} else { +str += ","; +}str += lwRequest; +} +str += "]"; +}str += "]"; +return str; +}); +})() +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:16 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt"),I$=[]; +var C$=Clazz_newInterface(P$, "KeyEventDispatcher"); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:16 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt"),I$=[]; +var C$=Clazz_newInterface(P$, "KeyEventPostProcessor"); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:16 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt"),I$=[]; +var C$=Clazz_newClass(P$, "Label", null, 'swingjs.a2s.Label'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.superclazz.c$.apply(this, []); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'c$$S', function (text) { +C$.c$$S$I.apply(this, [text, 0]); +}, 1); + +Clazz_newMeth(C$, 'c$$S$I', function (text, alignment) { +C$.superclazz.c$$S$I.apply(this, [text, alignment]); +C$.$init$.apply(this); +}, 1); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:16 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt"),I$=[]; +var C$=Clazz_newInterface(P$, "LayoutManager"); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:16 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt"),I$=[]; +var C$=Clazz_newInterface(P$, "LayoutManager2", null, null, 'java.awt.LayoutManager'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:16 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt"),p$1={},p$2={},I$=[[0,'java.awt.Component','java.awt.Insets','javajs.util.Lst','java.awt.Toolkit','java.awt.event.ContainerEvent','java.awt.Dimension',['java.awt.GraphicsCallback','.PaintCallback'],['java.awt.GraphicsCallback','.PaintAllCallback'],['java.awt.GraphicsCallback','.PaintHeavyweightComponentsCallback'],'java.awt.AWTEventMulticaster','java.awt.event.ContainerListener',['java.awt.Container','.MouseEventTargetFilter'],'java.awt.LightweightDispatcher','java.awt.KeyboardFocusManager','swingjs.JSMouse','java.awt.event.MouseEvent','java.awt.event.MouseWheelEvent']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "LightweightDispatcher", null, null, 'java.awt.event.AWTEventListener'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.targetLastDown=null; +this.targetLastKnown=null; +this.nativeContainer=null; +this.mouseEventTarget=null; +this.targetLastEntered=null; +this.isMouseInNativeContainer=false; +this.eventMask=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.isMouseInNativeContainer=false; +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Container', function (nativeContainer) { +C$.$init$.apply(this); +this.nativeContainer=nativeContainer; +this.mouseEventTarget=null; +this.eventMask=0; +}, 1); + +Clazz_newMeth(C$, 'dispose$', function () { +p$2.stopListeningForOtherDrags.apply(this, []); +this.mouseEventTarget=null; +}); + +Clazz_newMeth(C$, 'enableEvents$J', function (events) { +this.eventMask|=events; +}); + +Clazz_newMeth(C$, 'dispatchEvent$java_awt_AWTEvent', function (e) { +var ret=false; +if (Clazz_instanceOf(e, "java.awt.event.MouseEvent") && (this.eventMask & 131120) != 0 ) { +var me=e; +ret=p$2.processMouseEvent$java_awt_event_MouseEvent.apply(this, [me]); +}return ret; +}); + +Clazz_newMeth(C$, 'isMouseGrab$java_awt_event_MouseEvent', function (e) { +var modifiers=e.getModifiersEx$(); +if (e.getID$() == 501 || e.getID$() == 502 ) { +switch (e.getButton$()) { +case 1: +modifiers^=1024; +break; +case 2: +modifiers^=2048; +break; +case 3: +modifiers^=4096; +break; +} +}return ((modifiers & (7168)) != 0); +}, p$2); + +Clazz_newMeth(C$, 'processMouseEvent$java_awt_event_MouseEvent', function (e) { +var id=e.getID$(); +var mouseOver=this.nativeContainer.getMouseEventTarget$I$I$Z(e.getX$(), e.getY$(), true); +p$2.trackMouseEnterExit$java_awt_Component$java_awt_event_MouseEvent.apply(this, [mouseOver, e]); +var actualTarget; +switch (id) { +case 506: +case 502: +actualTarget=this.targetLastDown; +break; +case 505: +actualTarget=this.targetLastKnown; +break; +default: +actualTarget=$I$(15).getJ2SEventTarget$java_awt_event_MouseEvent(e); +break; +} +this.targetLastKnown=(actualTarget == null ? mouseOver : actualTarget); +if (id == 501) this.targetLastDown=this.targetLastKnown; +if (actualTarget != null ) this.mouseEventTarget=actualTarget; + else if (!p$2.isMouseGrab$java_awt_event_MouseEvent.apply(this, [e]) && id != 500 ) { +this.mouseEventTarget=(mouseOver !== this.nativeContainer ) ? mouseOver : null; +}if (this.mouseEventTarget != null ) { +switch (id) { +case 504: +case 505: +if ($I$(15).getJ2SEventTarget$java_awt_event_MouseEvent(e) === this.mouseEventTarget ) this.retargetMouseEvent$java_awt_Component$I$java_awt_event_MouseEvent(this.mouseEventTarget, id, e); +break; +case 501: +this.checkInternalFrameMouseDown$java_awt_JSComponent(e.getSource$()); +this.retargetMouseEvent$java_awt_Component$I$java_awt_event_MouseEvent(this.mouseEventTarget, id, e); +break; +case 502: +this.targetLastDown=null; +this.retargetMouseEvent$java_awt_Component$I$java_awt_event_MouseEvent(this.mouseEventTarget, id, e); +break; +case 500: +this.targetLastDown=null; +if (mouseOver === this.mouseEventTarget ) { +this.retargetMouseEvent$java_awt_Component$I$java_awt_event_MouseEvent(mouseOver, id, e); +}break; +case 503: +this.retargetMouseEvent$java_awt_Component$I$java_awt_event_MouseEvent(this.mouseEventTarget, id, e); +break; +case 506: +if (p$2.isMouseGrab$java_awt_event_MouseEvent.apply(this, [e])) { +this.retargetMouseEvent$java_awt_Component$I$java_awt_event_MouseEvent(this.mouseEventTarget, id, e); +}break; +case 507: +this.retargetMouseEvent$java_awt_Component$I$java_awt_event_MouseEvent(mouseOver, id, e); +break; +} +e.consume$(); +}return e.isConsumed$(); +}, p$2); + +Clazz_newMeth(C$, 'checkInternalFrameMouseDown$java_awt_JSComponent', function (c) { +var fv=c.getFrameViewer$(); +var top=fv.getTopComponent$(); +if (top.getUIClassID$() == "InternalFrameUI") try { +(top).setSelected$Z(true); +} catch (e) { +if (Clazz_exceptionOf(e,"java.beans.PropertyVetoException")){ +} else { +throw e; +} +} +}); + +Clazz_newMeth(C$, 'trackMouseEnterExit$java_awt_Component$java_awt_event_MouseEvent', function (targetOver, e) { +var targetEnter=null; +var id=e.getID$(); +if (Clazz_instanceOf(e, "java.awt.ActiveEvent")) { +this.targetLastEntered=null; +return; +}if (id == 505) { +this.isMouseInNativeContainer=false; +p$2.stopListeningForOtherDrags.apply(this, []); +} else if (id != 506 && id != 1500 && this.isMouseInNativeContainer == false ) { +this.isMouseInNativeContainer=true; +p$2.startListeningForOtherDrags.apply(this, []); +}if (this.isMouseInNativeContainer) { +targetEnter=targetOver; +}if (this.targetLastEntered === targetEnter ) { +return; +}if (this.targetLastEntered != null ) { +this.retargetMouseEvent$java_awt_Component$I$java_awt_event_MouseEvent(this.targetLastEntered, 505, e); +}if (id == 505) { +e.consume$(); +}if (targetEnter != null ) { +this.retargetMouseEvent$java_awt_Component$I$java_awt_event_MouseEvent(targetEnter, 504, e); +}if (id == 504) { +e.consume$(); +}this.targetLastEntered=targetEnter; +}, p$2); + +Clazz_newMeth(C$, 'startListeningForOtherDrags', function () { +}, p$2); + +Clazz_newMeth(C$, 'stopListeningForOtherDrags', function () { +}, p$2); + +Clazz_newMeth(C$, ['eventDispatched$java_awt_AWTEvent','eventDispatched$'], function (e) { +var isForeignDrag=(Clazz_instanceOf(e, "java.awt.event.MouseEvent")) && (e.id == 506) && (e.getSource$() !== this.nativeContainer ) ; +if (!isForeignDrag) { +return; +}var srcEvent=e; +var me; +/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.nativeContainer.getTreeLock$()); +{ +var srcComponent=srcEvent.getComponent$(); +if (!srcComponent.isShowing$()) { +return; +}var c=this.nativeContainer; +while (c != null && !(Clazz_instanceOf(c, "java.awt.Window")) ){ +c=c.getParent_NoClientCode$(); +} +if ((c == null ) || (c).isModalBlocked$() ) { +return; +}me=Clazz_new_($I$(16).c$$java_awt_Component$I$J$I$I$I$I$I$I$Z$I,[this.nativeContainer, 1500, srcEvent.getWhen$(), srcEvent.getModifiersEx$() | srcEvent.getModifiers$(), srcEvent.getX$(), srcEvent.getY$(), srcEvent.getXOnScreen$(), srcEvent.getYOnScreen$(), srcEvent.getClickCount$(), srcEvent.isPopupTrigger$(), srcEvent.getButton$()]); +(srcEvent).copyPrivateDataInto$java_awt_AWTEvent(me); +}var targetOver=this.nativeContainer.getMouseEventTarget$I$I$Z(me.getX$(), me.getY$(), true); +p$2.trackMouseEnterExit$java_awt_Component$java_awt_event_MouseEvent.apply(this, [targetOver, me]); +}); + +Clazz_newMeth(C$, 'retargetMouseEvent$java_awt_Component$I$java_awt_event_MouseEvent', function (target, id, e) { +if (target == null ) { +return; +}var x=e.getX$(); +var y=e.getY$(); +var component=target; +var p=(target).秘getUI$().getTargetParent$(); +if (p != null ) { +target=component=p; +}for (; component != null && component !== this.nativeContainer ; component=component.getParent$()) { +x-=component.x; +y-=component.y; +if ((component).getUIClassID$() == "PopupMenuUI") break; +} +var retargeted; +if (component != null ) { +if (id == 507) { +retargeted=Clazz_new_($I$(17).c$$java_awt_Component$I$J$I$I$I$I$I$I$Z$I$I$I$D,[target, id, e.getWhen$(), e.getModifiersEx$() | e.getModifiers$(), x, y, e.getXOnScreen$(), e.getYOnScreen$(), e.getClickCount$(), e.isPopupTrigger$(), (e).getScrollType$(), (e).getScrollAmount$(), (e).getWheelRotation$(), (e).getPreciseWheelRotation$()]); +} else { +retargeted=Clazz_new_($I$(16).c$$java_awt_Component$I$J$I$I$I$I$I$I$Z$I,[target, id, e.getWhen$(), e.getModifiersEx$() | e.getModifiers$(), x, y, e.getXOnScreen$(), e.getYOnScreen$(), e.getClickCount$(), e.isPopupTrigger$(), e.getButton$()]); +}(e).copyPrivateDataInto$java_awt_AWTEvent(retargeted); +if (target === this.nativeContainer ) { +(target).dispatchEventToSelf$java_awt_AWTEvent(retargeted); +} else { +if (this.nativeContainer.modalComp != null ) { +if ((this.nativeContainer.modalComp).isAncestorOf$java_awt_Component(target)) { +target.dispatchEvent$java_awt_AWTEvent(retargeted); +} else { +e.consume$(); +}} else { +target.dispatchEvent$java_awt_AWTEvent(retargeted); +$I$(15).setPropagation$java_awt_Component$java_awt_event_MouseEvent(target, e); +}}}}); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 13:00:45 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt"),I$=[]; +var C$=Clazz_newInterface(P$, "Paint", null, null, 'java.awt.Transparency'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:17 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt"),I$=[]; +var C$=Clazz_newClass(P$, "Panel", null, 'swingjs.a2s.Panel'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.superclazz.c$.apply(this, []); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_LayoutManager', function (layout) { +C$.superclazz.c$$java_awt_LayoutManager.apply(this, [layout]); +C$.$init$.apply(this); +}, 1); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:17 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt.peer"),I$=[]; +var C$=Clazz_newInterface(P$, "ComponentPeer"); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:24 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt.peer"),I$=[]; +var C$=Clazz_newInterface(P$, "ContainerPeer", null, null, 'java.awt.peer.ComponentPeer'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:24 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt.peer"),I$=[]; +var C$=Clazz_newInterface(P$, "FramePeer", null, null, 'java.awt.peer.WindowPeer'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:24 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt.peer"),I$=[]; +var C$=Clazz_newInterface(P$, "KeyboardFocusManagerPeer"); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:24 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt.peer"),I$=[]; +var C$=Clazz_newInterface(P$, "LightweightPeer", null, null, 'java.awt.peer.ComponentPeer'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:24 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt.peer"),I$=[]; +var C$=Clazz_newInterface(P$, "WindowPeer", null, null, 'java.awt.peer.ContainerPeer'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:24 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt"),I$=[]; +var C$=Clazz_newClass(P$, "Point", null, 'java.awt.geom.Point2D'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.x=0; +this.y=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.c$$I$I.apply(this, [0, 0]); +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Point', function (p) { +C$.c$$I$I.apply(this, [p.x, p.y]); +}, 1); + +Clazz_newMeth(C$, 'c$$I$I', function (x, y) { +Clazz_super_(C$, this,1); +this.x=x; +this.y=y; +}, 1); + +Clazz_newMeth(C$, 'getX$', function () { +return this.x; +}); + +Clazz_newMeth(C$, 'getY$', function () { +return this.y; +}); + +Clazz_newMeth(C$, 'getLocation$', function () { +return Clazz_new_(C$.c$$I$I,[this.x, this.y]); +}); + +Clazz_newMeth(C$, 'setLocation$java_awt_Point', function (p) { +this.setLocation$I$I(p.x, p.y); +}); + +Clazz_newMeth(C$, 'setLocation$I$I', function (x, y) { +this.move$I$I(x, y); +}); + +Clazz_newMeth(C$, 'setLocation$D$D', function (x, y) { +this.x=(Math.floor(x + 0.5)|0); +this.y=(Math.floor(y + 0.5)|0); +}); + +Clazz_newMeth(C$, 'move$I$I', function (x, y) { +this.x=x; +this.y=y; +}); + +Clazz_newMeth(C$, 'translate$I$I', function (dx, dy) { +this.x+=dx; +this.y+=dy; +}); + +Clazz_newMeth(C$, 'equals$O', function (obj) { +if (Clazz_instanceOf(obj, "java.awt.Point")) { +var pt=obj; +return (this.x == pt.x) && (this.y == pt.y) ; +}return C$.superclazz.prototype.equals$O.apply(this, [obj]); +}); + +Clazz_newMeth(C$, 'toString', function () { +return this.getClass$().getName$() + "[x=" + this.x + ",y=" + this.y + "]" ; +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:17 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt"),I$=[]; +var C$=Clazz_newClass(P$, "Queue"); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.head=null; +this.tail=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:14 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt"),I$=[[0,'java.awt.Point','java.awt.Dimension',['java.awt.geom.Rectangle2D','.Double'],'java.awt.geom.Rectangle2D']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "Rectangle", null, 'java.awt.geom.Rectangle2D', 'java.awt.Shape'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.x=0; +this.y=0; +this.width=0; +this.height=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.c$$I$I$I$I.apply(this, [0, 0, 0, 0]); +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Rectangle', function (r) { +C$.c$$I$I$I$I.apply(this, [r.x, r.y, r.width, r.height]); +}, 1); + +Clazz_newMeth(C$, 'c$$I$I$I$I', function (x, y, width, height) { +Clazz_super_(C$, this,1); +this.x=x; +this.y=y; +this.width=width; +this.height=height; +}, 1); + +Clazz_newMeth(C$, 'c$$I$I', function (width, height) { +C$.c$$I$I$I$I.apply(this, [0, 0, width, height]); +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Point$java_awt_Dimension', function (p, d) { +C$.c$$I$I$I$I.apply(this, [p.x, p.y, d.width, d.height]); +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Point', function (p) { +C$.c$$I$I$I$I.apply(this, [p.x, p.y, 0, 0]); +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Dimension', function (d) { +C$.c$$I$I$I$I.apply(this, [0, 0, d.width, d.height]); +}, 1); + +Clazz_newMeth(C$, 'getX$', function () { +return this.x; +}); + +Clazz_newMeth(C$, 'getY$', function () { +return this.y; +}); + +Clazz_newMeth(C$, 'getWidth$', function () { +return this.width; +}); + +Clazz_newMeth(C$, 'getHeight$', function () { +return this.height; +}); + +Clazz_newMeth(C$, 'getBounds$', function () { +return Clazz_new_(C$.c$$I$I$I$I,[this.x, this.y, this.width, this.height]); +}); + +Clazz_newMeth(C$, 'getBounds2D$', function () { +return Clazz_new_(C$.c$$I$I$I$I,[this.x, this.y, this.width, this.height]); +}); + +Clazz_newMeth(C$, 'setBounds$java_awt_Rectangle', function (r) { +this.reshape$I$I$I$I(r.x, r.y, r.width, r.height); +}); + +Clazz_newMeth(C$, 'setBounds$I$I$I$I', function (x, y, width, height) { +this.reshape$I$I$I$I(x, y, width, height); +}); + +Clazz_newMeth(C$, 'setRect$D$D$D$D', function (x, y, width, height) { +var newx; +var newy; +var neww; +var newh; +if (x > 4.294967294E9 ) { +newx=2147483647; +neww=-1; +} else { +newx=C$.clip$D$Z(x, false); +if (width >= 0 ) width += x - newx; +neww=C$.clip$D$Z(width, width >= 0 ); +}if (y > 4.294967294E9 ) { +newy=2147483647; +newh=-1; +} else { +newy=C$.clip$D$Z(y, false); +if (height >= 0 ) height += y - newy; +newh=C$.clip$D$Z(height, height >= 0 ); +}this.reshape$I$I$I$I(newx, newy, neww, newh); +}); + +Clazz_newMeth(C$, 'clip$D$Z', function (v, doceil) { +if (v <= -2147483648 ) { +return -2147483648; +}if (v >= 2147483647 ) { +return 2147483647; +}return ((doceil ? Math.ceil(v) : Math.floor(v))|0); +}, 1); + +Clazz_newMeth(C$, 'reshape$I$I$I$I', function (x, y, width, height) { +this.x=x; +this.y=y; +this.width=width; +this.height=height; +}); + +Clazz_newMeth(C$, 'getLocation$', function () { +return Clazz_new_($I$(1).c$$I$I,[this.x, this.y]); +}); + +Clazz_newMeth(C$, 'setLocation$java_awt_Point', function (p) { +this.setLocation$I$I(p.x, p.y); +}); + +Clazz_newMeth(C$, 'setLocation$I$I', function (x, y) { +this.move$I$I(x, y); +}); + +Clazz_newMeth(C$, 'move$I$I', function (x, y) { +this.x=x; +this.y=y; +}); + +Clazz_newMeth(C$, 'translate$I$I', function (dx, dy) { +var oldv=this.x; +var newv=oldv + dx; +if (dx < 0) { +if (newv > oldv) { +if (this.width >= 0) { +this.width+=newv - -2147483648; +}newv=-2147483648; +}} else { +if (newv < oldv) { +if (this.width >= 0) { +this.width+=newv - 2147483647; +if (this.width < 0) this.width=2147483647; +}newv=2147483647; +}}this.x=newv; +oldv=this.y; +newv=oldv + dy; +if (dy < 0) { +if (newv > oldv) { +if (this.height >= 0) { +this.height+=newv - -2147483648; +}newv=-2147483648; +}} else { +if (newv < oldv) { +if (this.height >= 0) { +this.height+=newv - 2147483647; +if (this.height < 0) this.height=2147483647; +}newv=2147483647; +}}this.y=newv; +}); + +Clazz_newMeth(C$, 'getSize$', function () { +return Clazz_new_($I$(2).c$$I$I,[this.width, this.height]); +}); + +Clazz_newMeth(C$, 'setSize$java_awt_Dimension', function (d) { +this.setSize$I$I(d.width, d.height); +}); + +Clazz_newMeth(C$, 'setSize$I$I', function (width, height) { +this.resize$I$I(width, height); +}); + +Clazz_newMeth(C$, 'resize$I$I', function (width, height) { +this.width=width; +this.height=height; +}); + +Clazz_newMeth(C$, 'contains$java_awt_Point', function (p) { +return this.contains$I$I(p.x, p.y); +}); + +Clazz_newMeth(C$, 'contains$I$I', function (x, y) { +return this.inside$I$I(x, y); +}); + +Clazz_newMeth(C$, 'contains$java_awt_Rectangle', function (r) { +return this.contains$I$I$I$I(r.x, r.y, r.width, r.height); +}); + +Clazz_newMeth(C$, 'contains$I$I$I$I', function (X, Y, W, H) { +var w=this.width; +var h=this.height; +if ((w | h | W | H ) < 0) { +return false; +}var x=this.x; +var y=this.y; +if (X < x || Y < y ) { +return false; +}w+=x; +W+=X; +if (W <= X) { +if (w >= x || W > w ) return false; +} else { +if (w >= x && W > w ) return false; +}h+=y; +H+=Y; +if (H <= Y) { +if (h >= y || H > h ) return false; +} else { +if (h >= y && H > h ) return false; +}return true; +}); + +Clazz_newMeth(C$, 'inside$I$I', function (X, Y) { +var w=this.width; +var h=this.height; +if ((w | h) < 0) { +return false; +}var x=this.x; +var y=this.y; +if (X < x || Y < y ) { +return false; +}w+=x; +h+=y; +return ((w < x || w > X ) && (h < y || h > Y ) ); +}); + +Clazz_newMeth(C$, 'intersects$java_awt_Rectangle', function (r) { +var tw=this.width; +var th=this.height; +var rw=r.width; +var rh=r.height; +if (rw <= 0 || rh <= 0 || tw <= 0 || th <= 0 ) { +return false; +}var tx=this.x; +var ty=this.y; +var rx=r.x; +var ry=r.y; +rw+=rx; +rh+=ry; +tw+=tx; +th+=ty; +return ((rw < rx || rw > tx ) && (rh < ry || rh > ty ) && (tw < tx || tw > rx ) && (th < ty || th > ry ) ); +}); + +Clazz_newMeth(C$, 'intersection$java_awt_Rectangle', function (r) { +var tx1=this.x; +var ty1=this.y; +var rx1=r.x; +var ry1=r.y; +var tx2=tx1; +tx2+=this.width; +var ty2=ty1; +ty2+=this.height; +var rx2=rx1; +rx2+=r.width; +var ry2=ry1; +ry2+=r.height; +if (tx1 < rx1) tx1=rx1; +if (ty1 < ry1) ty1=ry1; +if (tx2 > rx2) tx2=rx2; +if (ty2 > ry2) ty2=ry2; +tx2-=tx1; +ty2-=ty1; +if (tx2 < -2147483648) tx2=-2147483648; +if (ty2 < -2147483648) ty2=-2147483648; +return Clazz_new_(C$.c$$I$I$I$I,[tx1, ty1, (tx2|0), (ty2|0)]); +}); + +Clazz_newMeth(C$, 'union$java_awt_Rectangle', function (r) { +var tx2=this.width; +var ty2=this.height; +if ((tx2 | ty2) < 0) { +return Clazz_new_(C$.c$$java_awt_Rectangle,[r]); +}var rx2=r.width; +var ry2=r.height; +if ((rx2 | ry2) < 0) { +return Clazz_new_(C$.c$$java_awt_Rectangle,[this]); +}var tx1=this.x; +var ty1=this.y; +tx2+=tx1; +ty2+=ty1; +var rx1=r.x; +var ry1=r.y; +rx2+=rx1; +ry2+=ry1; +if (tx1 > rx1) tx1=rx1; +if (ty1 > ry1) ty1=ry1; +if (tx2 < rx2) tx2=rx2; +if (ty2 < ry2) ty2=ry2; +tx2-=tx1; +ty2-=ty1; +if (tx2 > 2147483647) tx2=2147483647; +if (ty2 > 2147483647) ty2=2147483647; +return Clazz_new_(C$.c$$I$I$I$I,[tx1, ty1, (tx2|0), (ty2|0)]); +}); + +Clazz_newMeth(C$, 'add$I$I', function (newx, newy) { +if ((this.width | this.height) < 0) { +this.x=newx; +this.y=newy; +this.width=this.height=0; +return; +}var x1=this.x; +var y1=this.y; +var x2=this.width; +var y2=this.height; +x2+=x1; +y2+=y1; +if (x1 > newx) x1=newx; +if (y1 > newy) y1=newy; +if (x2 < newx) x2=newx; +if (y2 < newy) y2=newy; +x2-=x1; +y2-=y1; +if (x2 > 2147483647) x2=2147483647; +if (y2 > 2147483647) y2=2147483647; +this.reshape$I$I$I$I(x1, y1, (x2|0), (y2|0)); +}); + +Clazz_newMeth(C$, 'add$java_awt_Point', function (pt) { +this.add$I$I(pt.x, pt.y); +}); + +Clazz_newMeth(C$, 'add$java_awt_Rectangle', function (r) { +var tx2=this.width; +var ty2=this.height; +if ((tx2 | ty2) < 0) { +this.reshape$I$I$I$I(r.x, r.y, r.width, r.height); +}var rx2=r.width; +var ry2=r.height; +if ((rx2 | ry2) < 0) { +return; +}var tx1=this.x; +var ty1=this.y; +tx2+=tx1; +ty2+=ty1; +var rx1=r.x; +var ry1=r.y; +rx2+=rx1; +ry2+=ry1; +if (tx1 > rx1) tx1=rx1; +if (ty1 > ry1) ty1=ry1; +if (tx2 < rx2) tx2=rx2; +if (ty2 < ry2) ty2=ry2; +tx2-=tx1; +ty2-=ty1; +if (tx2 > 2147483647) tx2=2147483647; +if (ty2 > 2147483647) ty2=2147483647; +this.reshape$I$I$I$I(tx1, ty1, (tx2|0), (ty2|0)); +}); + +Clazz_newMeth(C$, 'grow$I$I', function (h, v) { +var x0=this.x; +var y0=this.y; +var x1=this.width; +var y1=this.height; +x1+=x0; +y1+=y0; +x0-=h; +y0-=v; +x1+=h; +y1+=v; +if (x1 < x0) { +x1-=x0; +if (x1 < -2147483648) x1=-2147483648; +if (x0 < -2147483648) x0=-2147483648; + else if (x0 > 2147483647) x0=2147483647; +} else { +if (x0 < -2147483648) x0=-2147483648; + else if (x0 > 2147483647) x0=2147483647; +x1-=x0; +if (x1 < -2147483648) x1=-2147483648; + else if (x1 > 2147483647) x1=2147483647; +}if (y1 < y0) { +y1-=y0; +if (y1 < -2147483648) y1=-2147483648; +if (y0 < -2147483648) y0=-2147483648; + else if (y0 > 2147483647) y0=2147483647; +} else { +if (y0 < -2147483648) y0=-2147483648; + else if (y0 > 2147483647) y0=2147483647; +y1-=y0; +if (y1 < -2147483648) y1=-2147483648; + else if (y1 > 2147483647) y1=2147483647; +}this.reshape$I$I$I$I((x0|0), (y0|0), (x1|0), (y1|0)); +}); + +Clazz_newMeth(C$, 'isEmpty$', function () { +return (this.width <= 0) || (this.height <= 0) ; +}); + +Clazz_newMeth(C$, 'outcode$D$D', function (x, y) { +var out=0; +if (this.width <= 0) { +out|=5; +} else if (x < this.x ) { +out|=1; +} else if (x > this.x + this.width ) { +out|=4; +}if (this.height <= 0) { +out|=10; +} else if (y < this.y ) { +out|=2; +} else if (y > this.y + this.height ) { +out|=8; +}return out; +}); + +Clazz_newMeth(C$, 'createIntersection$java_awt_geom_Rectangle2D', function (r) { +if (Clazz_instanceOf(r, "java.awt.Rectangle")) { +return this.intersection$java_awt_Rectangle(r); +}var dest=Clazz_new_($I$(3)); +$I$(4).intersect$java_awt_geom_Rectangle2D$java_awt_geom_Rectangle2D$java_awt_geom_Rectangle2D(this, r, dest); +return dest; +}); + +Clazz_newMeth(C$, 'createUnion$java_awt_geom_Rectangle2D', function (r) { +if (Clazz_instanceOf(r, "java.awt.Rectangle")) { +return this.union$java_awt_Rectangle(r); +}var dest=Clazz_new_($I$(3)); +$I$(4).union$java_awt_geom_Rectangle2D$java_awt_geom_Rectangle2D$java_awt_geom_Rectangle2D(this, r, dest); +return dest; +}); + +Clazz_newMeth(C$, 'equals$O', function (obj) { +if (Clazz_instanceOf(obj, "java.awt.Rectangle")) { +var r=obj; +return ((this.x == r.x) && (this.y == r.y) && (this.width == r.width) && (this.height == r.height) ); +}return C$.superclazz.prototype.equals$O.apply(this, [obj]); +}); + +Clazz_newMeth(C$, 'toString', function () { +return this.getClass$().getName$() + "[x=" + this.x + ",y=" + this.y + ",width=" + this.width + ",height=" + this.height + "]" ; +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:17 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt"),p$1={},I$=[[0,'java.util.HashMap','InternalError',['java.awt.RenderingHints','.SunKey'],['java.awt.RenderingHints','.Value'],['java.awt.RenderingHints','.LCDContrastKey'],'java.util.Collections']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "RenderingHints", function(){ +Clazz_newInstance(this, arguments,0,C$); +}, null, ['java.util.Map', 'Cloneable']); +C$.KEY_RENDERING=null; +C$.VALUE_RENDER_SPEED=null; +C$.VALUE_RENDER_QUALITY=null; +C$.VALUE_RENDER_DEFAULT=null; +C$.KEY_ANTIALIASING=null; +C$.VALUE_ANTIALIAS_ON=null; +C$.VALUE_ANTIALIAS_OFF=null; +C$.VALUE_ANTIALIAS_DEFAULT=null; +C$.KEY_FRACTIONALMETRICS=null; +C$.VALUE_FRACTIONALMETRICS_ON=null; +C$.VALUE_FRACTIONALMETRICS_OFF=null; +C$.VALUE_FRACTIONALMETRICS_DEFAULT=null; +C$.KEY_DITHERING=null; +C$.VALUE_DITHER_ENABLE=null; +C$.VALUE_DITHER_DISABLE=null; +C$.VALUE_DITHER_DEFAULT=null; +C$.KEY_INTERPOLATION=null; +C$.VALUE_INTERPOLATION_NEAREST_NEIGHBOR=null; +C$.VALUE_INTERPOLATION_BILINEAR=null; +C$.VALUE_INTERPOLATION_BICUBIC=null; +C$.KEY_ALPHA_INTERPOLATION=null; +C$.VALUE_ALPHA_INTERPOLATION_SPEED=null; +C$.VALUE_ALPHA_INTERPOLATION_QUALITY=null; +C$.VALUE_ALPHA_INTERPOLATION_DEFAULT=null; +C$.KEY_COLOR_RENDERING=null; +C$.VALUE_COLOR_RENDER_SPEED=null; +C$.VALUE_COLOR_RENDER_QUALITY=null; +C$.VALUE_COLOR_RENDER_DEFAULT=null; +C$.KEY_STROKE_CONTROL=null; +C$.VALUE_STROKE_DEFAULT=null; +C$.VALUE_STROKE_NORMALIZE=null; +C$.VALUE_STROKE_PURE=null; +C$.KEY_TEXT_ANTIALIASING=null; +C$.VALUE_TEXT_ANTIALIAS_ON=null; +C$.VALUE_TEXT_ANTIALIAS_OFF=null; +C$.VALUE_TEXT_ANTIALIAS_DEFAULT=null; +C$.VALUE_TEXT_ANTIALIAS_GASP=null; +C$.VALUE_TEXT_ANTIALIAS_LCD_HRGB=null; +C$.VALUE_TEXT_ANTIALIAS_LCD_HBGR=null; +C$.VALUE_TEXT_ANTIALIAS_LCD_VRGB=null; +C$.VALUE_TEXT_ANTIALIAS_LCD_VBGR=null; +C$.KEY_TEXT_ANTIALIAS_LCD_CONTRAST=null; +C$.KEY_TEXT_LCD_CONTRAST=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.KEY_RENDERING=Clazz_new_($I$(3).c$$I$S,[0, "Global rendering quality key"]); +C$.VALUE_RENDER_SPEED=Clazz_new_($I$(4).c$$java_awt_RenderingHints_SunKey$I$S,[C$.KEY_RENDERING, 1, "Fastest rendering methods"]); +C$.VALUE_RENDER_QUALITY=Clazz_new_($I$(4).c$$java_awt_RenderingHints_SunKey$I$S,[C$.KEY_RENDERING, 2, "Highest quality rendering methods"]); +C$.VALUE_RENDER_DEFAULT=Clazz_new_($I$(4).c$$java_awt_RenderingHints_SunKey$I$S,[C$.KEY_RENDERING, 0, "Default rendering methods"]); +C$.KEY_ANTIALIASING=Clazz_new_($I$(3).c$$I$S,[1, "Global antialiasing enable key"]); +C$.VALUE_ANTIALIAS_ON=Clazz_new_($I$(4).c$$java_awt_RenderingHints_SunKey$I$S,[C$.KEY_ANTIALIASING, 2, "Antialiased rendering mode"]); +C$.VALUE_ANTIALIAS_OFF=Clazz_new_($I$(4).c$$java_awt_RenderingHints_SunKey$I$S,[C$.KEY_ANTIALIASING, 1, "Nonantialiased rendering mode"]); +C$.VALUE_ANTIALIAS_DEFAULT=Clazz_new_($I$(4).c$$java_awt_RenderingHints_SunKey$I$S,[C$.KEY_ANTIALIASING, 0, "Default antialiasing rendering mode"]); +C$.KEY_FRACTIONALMETRICS=Clazz_new_($I$(3).c$$I$S,[3, "Fractional metrics enable key"]); +C$.VALUE_FRACTIONALMETRICS_ON=Clazz_new_($I$(4).c$$java_awt_RenderingHints_SunKey$I$S,[C$.KEY_FRACTIONALMETRICS, 2, "Fractional text metrics mode"]); +C$.VALUE_FRACTIONALMETRICS_OFF=Clazz_new_($I$(4).c$$java_awt_RenderingHints_SunKey$I$S,[C$.KEY_FRACTIONALMETRICS, 1, "Integer text metrics mode"]); +C$.VALUE_FRACTIONALMETRICS_DEFAULT=Clazz_new_($I$(4).c$$java_awt_RenderingHints_SunKey$I$S,[C$.KEY_FRACTIONALMETRICS, 0, "Default fractional text metrics mode"]); +C$.KEY_DITHERING=Clazz_new_($I$(3).c$$I$S,[4, "Dithering quality key"]); +C$.VALUE_DITHER_ENABLE=Clazz_new_($I$(4).c$$java_awt_RenderingHints_SunKey$I$S,[C$.KEY_DITHERING, 2, "Dithered rendering mode"]); +C$.VALUE_DITHER_DISABLE=Clazz_new_($I$(4).c$$java_awt_RenderingHints_SunKey$I$S,[C$.KEY_DITHERING, 1, "Nondithered rendering mode"]); +C$.VALUE_DITHER_DEFAULT=Clazz_new_($I$(4).c$$java_awt_RenderingHints_SunKey$I$S,[C$.KEY_DITHERING, 0, "Default dithering mode"]); +C$.KEY_INTERPOLATION=Clazz_new_($I$(3).c$$I$S,[5, "Image interpolation method key"]); +C$.VALUE_INTERPOLATION_NEAREST_NEIGHBOR=Clazz_new_($I$(4).c$$java_awt_RenderingHints_SunKey$I$S,[C$.KEY_INTERPOLATION, 0, "Nearest Neighbor image interpolation mode"]); +C$.VALUE_INTERPOLATION_BILINEAR=Clazz_new_($I$(4).c$$java_awt_RenderingHints_SunKey$I$S,[C$.KEY_INTERPOLATION, 1, "Bilinear image interpolation mode"]); +C$.VALUE_INTERPOLATION_BICUBIC=Clazz_new_($I$(4).c$$java_awt_RenderingHints_SunKey$I$S,[C$.KEY_INTERPOLATION, 2, "Bicubic image interpolation mode"]); +C$.KEY_ALPHA_INTERPOLATION=Clazz_new_($I$(3).c$$I$S,[6, "Alpha blending interpolation method key"]); +C$.VALUE_ALPHA_INTERPOLATION_SPEED=Clazz_new_($I$(4).c$$java_awt_RenderingHints_SunKey$I$S,[C$.KEY_ALPHA_INTERPOLATION, 1, "Fastest alpha blending methods"]); +C$.VALUE_ALPHA_INTERPOLATION_QUALITY=Clazz_new_($I$(4).c$$java_awt_RenderingHints_SunKey$I$S,[C$.KEY_ALPHA_INTERPOLATION, 2, "Highest quality alpha blending methods"]); +C$.VALUE_ALPHA_INTERPOLATION_DEFAULT=Clazz_new_($I$(4).c$$java_awt_RenderingHints_SunKey$I$S,[C$.KEY_ALPHA_INTERPOLATION, 0, "Default alpha blending methods"]); +C$.KEY_COLOR_RENDERING=Clazz_new_($I$(3).c$$I$S,[7, "Color rendering quality key"]); +C$.VALUE_COLOR_RENDER_SPEED=Clazz_new_($I$(4).c$$java_awt_RenderingHints_SunKey$I$S,[C$.KEY_COLOR_RENDERING, 1, "Fastest color rendering mode"]); +C$.VALUE_COLOR_RENDER_QUALITY=Clazz_new_($I$(4).c$$java_awt_RenderingHints_SunKey$I$S,[C$.KEY_COLOR_RENDERING, 2, "Highest quality color rendering mode"]); +C$.VALUE_COLOR_RENDER_DEFAULT=Clazz_new_($I$(4).c$$java_awt_RenderingHints_SunKey$I$S,[C$.KEY_COLOR_RENDERING, 0, "Default color rendering mode"]); +C$.KEY_STROKE_CONTROL=Clazz_new_($I$(3).c$$I$S,[8, "Stroke normalization control key"]); +C$.VALUE_STROKE_DEFAULT=Clazz_new_($I$(4).c$$java_awt_RenderingHints_SunKey$I$S,[C$.KEY_STROKE_CONTROL, 0, "Default stroke normalization"]); +C$.VALUE_STROKE_NORMALIZE=Clazz_new_($I$(4).c$$java_awt_RenderingHints_SunKey$I$S,[C$.KEY_STROKE_CONTROL, 1, "Normalize strokes for consistent rendering"]); +C$.VALUE_STROKE_PURE=Clazz_new_($I$(4).c$$java_awt_RenderingHints_SunKey$I$S,[C$.KEY_STROKE_CONTROL, 2, "Pure stroke conversion for accurate paths"]); +C$.KEY_TEXT_ANTIALIASING=Clazz_new_($I$(3).c$$I$S,[2, "Text-specific antialiasing enable key"]); +C$.VALUE_TEXT_ANTIALIAS_ON=Clazz_new_($I$(4).c$$java_awt_RenderingHints_SunKey$I$S,[C$.KEY_TEXT_ANTIALIASING, 2, "Antialiased text mode"]); +C$.VALUE_TEXT_ANTIALIAS_OFF=Clazz_new_($I$(4).c$$java_awt_RenderingHints_SunKey$I$S,[C$.KEY_TEXT_ANTIALIASING, 1, "Nonantialiased text mode"]); +C$.VALUE_TEXT_ANTIALIAS_DEFAULT=Clazz_new_($I$(4).c$$java_awt_RenderingHints_SunKey$I$S,[C$.KEY_TEXT_ANTIALIASING, 0, "Default antialiasing text mode"]); +C$.VALUE_TEXT_ANTIALIAS_GASP=Clazz_new_($I$(4).c$$java_awt_RenderingHints_SunKey$I$S,[C$.KEY_TEXT_ANTIALIASING, 3, "gasp antialiasing text mode"]); +C$.VALUE_TEXT_ANTIALIAS_LCD_HRGB=Clazz_new_($I$(4).c$$java_awt_RenderingHints_SunKey$I$S,[C$.KEY_TEXT_ANTIALIASING, 4, "LCD HRGB antialiasing text mode"]); +C$.VALUE_TEXT_ANTIALIAS_LCD_HBGR=Clazz_new_($I$(4).c$$java_awt_RenderingHints_SunKey$I$S,[C$.KEY_TEXT_ANTIALIASING, 5, "LCD HBGR antialiasing text mode"]); +C$.VALUE_TEXT_ANTIALIAS_LCD_VRGB=Clazz_new_($I$(4).c$$java_awt_RenderingHints_SunKey$I$S,[C$.KEY_TEXT_ANTIALIASING, 6, "LCD VRGB antialiasing text mode"]); +C$.VALUE_TEXT_ANTIALIAS_LCD_VBGR=Clazz_new_($I$(4).c$$java_awt_RenderingHints_SunKey$I$S,[C$.KEY_TEXT_ANTIALIASING, 7, "LCD VBGR antialiasing text mode"]); +C$.KEY_TEXT_ANTIALIAS_LCD_CONTRAST=Clazz_new_($I$(5).c$$I$S,[100, "Text-specific LCD contrast key"]); +C$.KEY_TEXT_LCD_CONTRAST=C$.KEY_TEXT_ANTIALIAS_LCD_CONTRAST; +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.hintmap=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.hintmap=Clazz_new_($I$(1).c$$I,[7]); +}, 1); + +Clazz_newMeth(C$, 'c$$java_util_Map', function (init) { +C$.$init$.apply(this); +if (init != null ) { +this.hintmap.putAll$java_util_Map(init); +}}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_RenderingHints_Key$O', function (key, value) { +C$.$init$.apply(this); +if (key != null ) this.hintmap.put$TK$TV(key, value); +}, 1); + +Clazz_newMeth(C$, 'size$', function () { +return this.hintmap.size$(); +}); + +Clazz_newMeth(C$, 'isEmpty$', function () { +return this.hintmap.isEmpty$(); +}); + +Clazz_newMeth(C$, 'containsKey$O', function (key) { +return this.hintmap.containsKey$O(key); +}); + +Clazz_newMeth(C$, 'containsValue$O', function (value) { +return this.hintmap.containsValue$O(value); +}); + +Clazz_newMeth(C$, 'get$O', function (key) { +return this.hintmap.get$O(key); +}); + +Clazz_newMeth(C$, ['put$O$O','put$TK$TV'], function (key, value) { +if (!(key).isCompatibleValue$O(value)) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,[value + " incompatible with " + key ]); +}return this.hintmap.put$TK$TV(key, value); +}); + +Clazz_newMeth(C$, 'add$java_awt_RenderingHints', function (hints) { +this.hintmap.putAll$java_util_Map(hints.hintmap); +}); + +Clazz_newMeth(C$, 'clear$', function () { +this.hintmap.clear$(); +}); + +Clazz_newMeth(C$, 'remove$O', function (key) { +return this.hintmap.remove$O(key); +}); + +Clazz_newMeth(C$, 'putAll$java_util_Map', function (m) { +if (Clazz_getClass(C$).isInstance$O(m)) { +for (var entry, $entry = m.entrySet$().iterator$(); $entry.hasNext$()&&((entry=($entry.next$())),1);) this.hintmap.put$TK$TV(entry.getKey$(), entry.getValue$()); + +} else { +for (var entry, $entry = m.entrySet$().iterator$(); $entry.hasNext$()&&((entry=($entry.next$())),1);) this.put$O$O(entry.getKey$(), entry.getValue$()); + +}}); + +Clazz_newMeth(C$, 'keySet$', function () { +return this.hintmap.keySet$(); +}); + +Clazz_newMeth(C$, 'values$', function () { +return this.hintmap.values$(); +}); + +Clazz_newMeth(C$, 'entrySet$', function () { +return $I$(6).unmodifiableMap$java_util_Map(this.hintmap).entrySet$(); +}); + +Clazz_newMeth(C$, 'equals$O', function (o) { +if (Clazz_instanceOf(o, "java.awt.RenderingHints")) { +return this.hintmap.equals$O((o).hintmap); +} else if (Clazz_instanceOf(o, "java.util.Map")) { +return this.hintmap.equals$O(o); +}return false; +}); + +Clazz_newMeth(C$, 'hashCode$', function () { +return this.hintmap.hashCode$(); +}); + +Clazz_newMeth(C$, 'clone$', function () { +var rh; +try { +rh=Clazz_clone(this); +if (this.hintmap != null ) { +rh.hintmap=this.hintmap.clone$(); +}} catch (e) { +if (Clazz_exceptionOf(e,"CloneNotSupportedException")){ +throw Clazz_new_($I$(2)); +} else { +throw e; +} +} +return rh; +}); + +Clazz_newMeth(C$, 'toString', function () { +if (this.hintmap == null ) { +return this.getClass$().getName$() + "@" + Integer.toHexString$I(this.hashCode$()) + " (0 hints)" ; +}return this.hintmap.toString(); +}); +; +(function(){var C$=Clazz_newClass(P$.RenderingHints, "Key", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}); +C$.identitymap=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.identitymap=Clazz_new_($I$(1).c$$I,[17]); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.privatekey=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'getIdentity', function () { +return this.getClass$().getName$() + "@" + Integer.toHexString$I(System.identityHashCode$O(this.getClass$())) + ":" + Integer.toHexString$I(this.privatekey) ; +}, p$1); + +Clazz_newMeth(C$, 'recordIdentity$java_awt_RenderingHints_Key', function (k) { +var identity=p$1.getIdentity.apply(k, []); +var otherref=C$.identitymap.get$O(identity); +if (otherref != null ) { +var otherkey=otherref; +if (otherkey != null && otherkey.getClass$() === k.getClass$() ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,[identity + " already registered"]); +}}C$.identitymap.put$TK$TV(identity, k); +}, p$1); + +Clazz_newMeth(C$, 'c$$I', function (privatekey) { +C$.$init$.apply(this); +this.privatekey=privatekey; +p$1.recordIdentity$java_awt_RenderingHints_Key.apply(this, [this]); +}, 1); + +Clazz_newMeth(C$, 'intKey$', function () { +return this.privatekey; +}); + +Clazz_newMeth(C$, 'hashCode$', function () { +return C$.superclazz.prototype.hashCode$.apply(this, []); +}); + +Clazz_newMeth(C$, 'equals$O', function (o) { +return this === o ; +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.RenderingHints, "SunKey", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, ['java.awt.RenderingHints','.Key']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.description=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$I$S', function (privatekey, description) { +C$.superclazz.c$$I.apply(this, [privatekey]); +C$.$init$.apply(this); +this.description=description; +}, 1); + +Clazz_newMeth(C$, 'getIndex$', function () { +return this.privatekey; +}); + +Clazz_newMeth(C$, 'toString', function () { +return this.description; +}); + +Clazz_newMeth(C$, 'isCompatibleValue$O', function (val) { +if (Clazz_instanceOf(val, "java.awt.RenderingHints.Value")) { +return (val).isCompatibleKey$java_awt_RenderingHints_SunKey(this); +}return false; +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.RenderingHints, "Value", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}); +C$.ValueObjects=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.ValueObjects=Clazz_array(C$, [9, 8]); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.myKey=null; +this.index=0; +this.description=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'register$java_awt_RenderingHints_SunKey$java_awt_RenderingHints_Value', function (key, value) { +var kindex=key.getIndex$(); +var vindex=value.getIndex$(); +if (C$.ValueObjects[kindex][vindex] != null ) { +throw Clazz_new_($I$(2).c$$S,["duplicate index: " + vindex]); +}C$.ValueObjects[kindex][vindex]=value; +}, 1); + +Clazz_newMeth(C$, 'get$I$I', function (keyindex, valueindex) { +return C$.ValueObjects[keyindex][valueindex]; +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_RenderingHints_SunKey$I$S', function (key, index, description) { +C$.$init$.apply(this); +this.myKey=key; +this.index=index; +this.description=description; +C$.register$java_awt_RenderingHints_SunKey$java_awt_RenderingHints_Value(key, this); +}, 1); + +Clazz_newMeth(C$, 'getIndex$', function () { +return this.index; +}); + +Clazz_newMeth(C$, 'toString', function () { +return this.description; +}); + +Clazz_newMeth(C$, 'isCompatibleKey$java_awt_RenderingHints_SunKey', function (k) { +return this.myKey === k ; +}); + +Clazz_newMeth(C$, 'hashCode$', function () { +return this.description.hashCode$(); +}); + +Clazz_newMeth(C$, 'equals$O', function (o) { +return this === o ; +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.RenderingHints, "LCDContrastKey", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, ['java.awt.RenderingHints','.SunKey']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$I$S', function (privatekey, description) { +C$.superclazz.c$$I$S.apply(this, [privatekey, description]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'isCompatibleValue$O', function (val) { +if (Clazz_instanceOf(val, "java.lang.Integer")) { +var ival=(val).intValue$(); +return ival >= 100 && ival <= 250 ; +}return false; +}); + +Clazz_newMeth(C$); +})() + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:17 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt"),I$=[]; +var C$=Clazz_newClass(P$, "Scrollbar", null, 'swingjs.a2s.Scrollbar'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.superclazz.c$.apply(this, []); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'c$$I', function (orientation) { +C$.superclazz.c$$I.apply(this, [orientation]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'c$$I$I$I$I$I', function (orientation, value, visible, minimum, maximum) { +C$.superclazz.c$$I$I$I$I$I.apply(this, [orientation, value, visible, minimum, maximum]); +C$.$init$.apply(this); +}, 1); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:18 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt"),I$=[]; +var C$=Clazz_newClass(P$, "ScrollPane", null, 'swingjs.a2s.ScrollPane'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.superclazz.c$.apply(this, []); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'c$$I', function (scrollbarDisplayPolicy) { +C$.superclazz.c$$I.apply(this, [scrollbarDisplayPolicy]); +C$.$init$.apply(this); +}, 1); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:17 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt"),I$=[]; +var C$=Clazz_newInterface(P$, "Shape"); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:18 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt"),I$=[]; +var C$=Clazz_newInterface(P$, "Stroke"); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:18 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt"),I$=[]; +var C$=Clazz_newClass(P$, "TextArea", null, 'swingjs.a2s.TextArea'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.superclazz.c$.apply(this, []); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'c$$S', function (text) { +C$.superclazz.c$$S.apply(this, [text]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'c$$I$I', function (rows, columns) { +C$.superclazz.c$$I$I.apply(this, [rows, columns]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'c$$S$I$I', function (text, rows, columns) { +C$.superclazz.c$$S$I$I.apply(this, [text, rows, columns]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'c$$S$I$I$I', function (text, rows, columns, scrollbars) { +C$.superclazz.c$$S$I$I$I.apply(this, [text, rows, columns, scrollbars]); +C$.$init$.apply(this); +}, 1); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:18 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt"),I$=[]; +var C$=Clazz_newInterface(P$, "TextComponent"); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:18 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt"),I$=[]; +var C$=Clazz_newClass(P$, "TextField", null, 'swingjs.a2s.TextField'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.superclazz.c$.apply(this, []); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'c$$S', function (text) { +C$.superclazz.c$$S.apply(this, [text]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'c$$I', function (columns) { +C$.superclazz.c$$I.apply(this, [columns]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'c$$S$I', function (text, columns) { +C$.superclazz.c$$S$I.apply(this, [text, columns]); +C$.$init$.apply(this); +}, 1); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:18 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt"),I$=[[0,'java.util.HashMap','sun.awt.NullComponentPeer','java.awt.Insets','swingjs.JSToolkit','java.awt.GraphicsEnvironment','java.awt.Cursor',['java.awt.Toolkit','.SelectiveAWTEventListener'],['java.awt.Toolkit','.ToolkitEventMulticaster'],'java.awt.AWTEventMulticaster','java.awt.event.AWTEventListener','java.awt.event.AWTEventListenerProxy','java.util.ArrayList','java.beans.PropertyChangeSupport']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "Toolkit", function(){ +Clazz_newInstance(this, arguments,0,C$); +}); +C$.lightweightMarker=null; +C$.toolkit=null; +C$.resources=null; +C$.enabledOnToolkitMask=0; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.desktopProperties=null; +this.desktopPropsSupport=null; +this.calls=null; +this.eventListener=null; +this.listener2SelectiveListener=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.desktopProperties=Clazz_new_($I$(1)); +this.desktopPropsSupport=C$.createPropertyChangeSupport$java_awt_Toolkit(this); +this.calls=Clazz_array(Integer.TYPE, [32]); +this.eventListener=null; +this.listener2SelectiveListener=Clazz_new_($I$(1)); +}, 1); + +Clazz_newMeth(C$, 'createComponent$java_awt_Component', function (target) { +if (C$.lightweightMarker == null ) { +C$.lightweightMarker=Clazz_new_($I$(2)); +}return C$.lightweightMarker; +}); + +Clazz_newMeth(C$, 'loadSystemColors$IA', function (systemColors) { +}); + +Clazz_newMeth(C$, 'setDynamicLayout$Z', function (dynamic) { +}); + +Clazz_newMeth(C$, 'isDynamicLayoutSet$', function () { +if (this !== C$.getDefaultToolkit$() ) { +return C$.getDefaultToolkit$().isDynamicLayoutSet$(); +} else { +return false; +}}); + +Clazz_newMeth(C$, 'isDynamicLayoutActive$', function () { +if (this !== C$.getDefaultToolkit$() ) { +return C$.getDefaultToolkit$().isDynamicLayoutActive$(); +} else { +return false; +}}); + +Clazz_newMeth(C$, 'getScreenInsets$java_awt_GraphicsConfiguration', function (gc) { +if (this !== C$.getDefaultToolkit$() ) { +return C$.getDefaultToolkit$().getScreenInsets$java_awt_GraphicsConfiguration(gc); +} else { +return Clazz_new_($I$(3).c$$I$I$I$I,[0, 0, 0, 0]); +}}); + +Clazz_newMeth(C$, 'getDefaultToolkit$', function () { +return (C$.toolkit == null ? C$.toolkit=Clazz_new_($I$(4)) : C$.toolkit); +}, 1); + +Clazz_newMeth(C$, 'createImage$BA', function (imagedata) { +return this.createImage$BA$I$I(imagedata, 0, imagedata.length); +}); + +Clazz_newMeth(C$, 'getPrintJob$java_awt_JSFrame$S$java_awt_JobAttributes$java_awt_PageAttributes', function (frame, jobtitle, jobAttributes, pageAttributes) { +if (this !== C$.getDefaultToolkit$() ) { +return C$.getDefaultToolkit$().getPrintJob$java_awt_JSFrame$S$java_awt_JobAttributes$java_awt_PageAttributes(frame, jobtitle, jobAttributes, pageAttributes); +} else { +return this.getPrintJob$java_awt_JSFrame$S$java_util_Properties(frame, jobtitle, null); +}}); + +Clazz_newMeth(C$, 'getPrintJob$java_awt_Frame$S$java_awt_JobAttributes$java_awt_PageAttributes', function (frame, jobtitle, jobAttributes, pageAttributes) { +if (this !== C$.getDefaultToolkit$() ) { +return C$.getDefaultToolkit$().getPrintJob$java_awt_Frame$S$java_awt_JobAttributes$java_awt_PageAttributes(frame, jobtitle, jobAttributes, pageAttributes); +} else { +return this.getPrintJob$java_awt_Frame$S$java_util_Properties(frame, jobtitle, null); +}}); + +Clazz_newMeth(C$, 'getSystemSelection$', function () { +if (this !== C$.getDefaultToolkit$() ) { +return C$.getDefaultToolkit$().getSystemSelection$(); +} else { +$I$(5).checkHeadless$(); +return null; +}}); + +Clazz_newMeth(C$, 'getMenuShortcutKeyMask$', function () { +return 2; +}); + +Clazz_newMeth(C$, 'getNativeContainer$java_awt_Component', function (c) { +return null; +}, 1); + +Clazz_newMeth(C$, 'createCustomCursor$java_awt_Image$java_awt_Point$S', function (cursor, hotSpot, name) { +return (name == null ? Clazz_new_($I$(6).c$$I,[0]) : Clazz_new_($I$(6).c$$S,[name])); +}); + +Clazz_newMeth(C$, 'isFrameStateSupported$I', function (state) { +return (state == 0); +}); + +Clazz_newMeth(C$, 'getProperty$S$S', function (key, defaultValue) { +if (C$.resources != null ) { +try { +return C$.resources.getString$S(key); +} catch (e) { +if (Clazz_exceptionOf(e,"java.util.MissingResourceException")){ +} else { +throw e; +} +} +}return defaultValue; +}, 1); + +Clazz_newMeth(C$, 'getSystemEventQueue$', function () { +return this.getSystemEventQueueImpl$(); +}); + +Clazz_newMeth(C$, 'getEventQueue$', function () { +return C$.getDefaultToolkit$().getSystemEventQueueImpl$(); +}, 1); + +Clazz_newMeth(C$, 'createDragGestureRecognizer$Class$java_awt_dnd_DragSource$java_awt_Component$I$java_awt_dnd_DragGestureListener', function (abstractRecognizerClass, ds, c, srcActions, dgl) { +return null; +}); + +Clazz_newMeth(C$, 'getDesktopProperty$S', function (propertyName) { +if (this.desktopProperties.isEmpty$()) { +this.initializeDesktopProperties$(); +}var value; +if (propertyName.equals$O("awt.dynamicLayoutSupported")) { +value=this.lazilyLoadDesktopProperty$S(propertyName); +return value; +}value=this.desktopProperties.get$O(propertyName); +if (value == null ) { +value=this.lazilyLoadDesktopProperty$S(propertyName); +if (value != null ) { +this.setDesktopProperty$S$O(propertyName, value); +}}if (Clazz_instanceOf(value, "java.awt.RenderingHints")) { +value=(value).clone$(); +}return value; +}); + +Clazz_newMeth(C$, 'setDesktopProperty$S$O', function (name, newValue) { +var oldValue; +{ +oldValue=this.desktopProperties.get$O(name); +this.desktopProperties.put$TK$TV(name, newValue); +}this.desktopPropsSupport.firePropertyChange$S$O$O(name, oldValue, newValue); +}); + +Clazz_newMeth(C$, 'lazilyLoadDesktopProperty$S', function (name) { +return null; +}); + +Clazz_newMeth(C$, 'initializeDesktopProperties$', function () { +}); + +Clazz_newMeth(C$, 'addPropertyChangeListener$S$java_beans_PropertyChangeListener', function (name, pcl) { +this.desktopPropsSupport.addPropertyChangeListener$S$java_beans_PropertyChangeListener(name, pcl); +}); + +Clazz_newMeth(C$, 'removePropertyChangeListener$S$java_beans_PropertyChangeListener', function (name, pcl) { +this.desktopPropsSupport.removePropertyChangeListener$S$java_beans_PropertyChangeListener(name, pcl); +}); + +Clazz_newMeth(C$, 'getPropertyChangeListeners$', function () { +return this.desktopPropsSupport.getPropertyChangeListeners$(); +}); + +Clazz_newMeth(C$, 'getPropertyChangeListeners$S', function (propertyName) { +return this.desktopPropsSupport.getPropertyChangeListeners$S(propertyName); +}); + +Clazz_newMeth(C$, 'isAlwaysOnTopSupported$', function () { +return true; +}); + +Clazz_newMeth(C$, 'deProxyAWTEventListener$java_awt_event_AWTEventListener', function (l) { +var localL=l; +if (localL == null ) { +return null; +}if (Clazz_instanceOf(l, "java.awt.event.AWTEventListenerProxy")) { +localL=(l).getListener$(); +}return localL; +}, 1); + +Clazz_newMeth(C$, 'addAWTEventListener$java_awt_event_AWTEventListener$J', function (listener, eventMask) { +var localL=C$.deProxyAWTEventListener$java_awt_event_AWTEventListener(listener); +if (localL == null ) { +return; +}{ +var selectiveListener=this.listener2SelectiveListener.get$O(localL); +if (selectiveListener == null ) { +selectiveListener=Clazz_new_($I$(7).c$$java_awt_event_AWTEventListener$J, [this, null, localL, eventMask]); +this.listener2SelectiveListener.put$TK$TV(localL, selectiveListener); +this.eventListener=$I$(8).add$java_awt_event_AWTEventListener$java_awt_event_AWTEventListener(this.eventListener, selectiveListener); +}selectiveListener.orEventMasks$J(eventMask); +C$.enabledOnToolkitMask|=eventMask; +var mask=eventMask; +for (var i=0; i < 32; i++) { +if (mask == 0) { +break; +}if ((mask & 1) != 0) { +this.calls[i]++; +}mask>>>=1; +} +}}); + +Clazz_newMeth(C$, 'removeAWTEventListener$java_awt_event_AWTEventListener', function (listener) { +var localL=C$.deProxyAWTEventListener$java_awt_event_AWTEventListener(listener); +if (listener == null ) { +return; +}{ +var selectiveListener=this.listener2SelectiveListener.get$O(localL); +if (selectiveListener != null ) { +this.listener2SelectiveListener.remove$O(localL); +var listenerCalls=selectiveListener.getCalls$(); +for (var i=0; i < 32; i++) { +this.calls[i]-=listenerCalls[i]; +if (this.calls[i] == 0) { +C$.enabledOnToolkitMask&=~(1 << i); +}} +}this.eventListener=$I$(8).remove$java_awt_event_AWTEventListener$java_awt_event_AWTEventListener(this.eventListener, (selectiveListener == null ) ? localL : selectiveListener); +}}); + +Clazz_newMeth(C$, 'enabledOnToolkit$J', function (eventMask) { +return (C$.enabledOnToolkitMask & eventMask) != 0; +}, 1); + +Clazz_newMeth(C$, 'countAWTEventListeners$J', function (eventMask) { +var ci=0; +for (; eventMask != 0; eventMask>>>=1, ci++) { +} +ci--; +return this.calls[ci]; +}); + +Clazz_newMeth(C$, 'getAWTEventListeners$', function () { +{ +var la=$I$(9).getListeners$java_util_EventListener$Class(this.eventListener, Clazz_getClass($I$(10),['eventDispatched$java_awt_AWTEvent'])); +var ret=Clazz_array($I$(10), [la.length]); +for (var i=0; i < la.length; i++) { +var sael=la[i]; +var tempL=sael.getListener$(); +ret[i]=Clazz_new_($I$(11).c$$J$java_awt_event_AWTEventListener,[sael.getEventMask$(), tempL]); +} +return ret; +}}); + +Clazz_newMeth(C$, 'getAWTEventListeners$J', function (eventMask) { +{ +var la=$I$(9).getListeners$java_util_EventListener$Class(this.eventListener, Clazz_getClass($I$(10),['eventDispatched$java_awt_AWTEvent'])); +var list=Clazz_new_($I$(12).c$$I,[la.length]); +for (var i=0; i < la.length; i++) { +var sael=la[i]; +if ((sael.getEventMask$() & eventMask) == eventMask) { +list.add$TE(Clazz_new_($I$(11).c$$J$java_awt_event_AWTEventListener,[sael.getEventMask$(), sael.getListener$()])); +}} +return list.toArray$TTA(Clazz_array($I$(10), [0])); +}}); + +Clazz_newMeth(C$, 'notifyAWTEventListeners$java_awt_AWTEvent', function (theEvent) { +var eventListener=this.eventListener; +if (eventListener != null ) { +eventListener.eventDispatched$(theEvent); +}}); + +Clazz_newMeth(C$, 'createPropertyChangeSupport$java_awt_Toolkit', function (toolkit) { +return Clazz_new_($I$(13).c$$O,[toolkit]); +}, 1); +; +(function(){var C$=Clazz_newClass(P$.Toolkit, "ToolkitEventMulticaster", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'java.awt.AWTEventMulticaster', 'java.awt.event.AWTEventListener'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_event_AWTEventListener$java_awt_event_AWTEventListener', function (a, b) { +C$.superclazz.c$$java_util_EventListener$java_util_EventListener.apply(this, [a, b]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'add$java_awt_event_AWTEventListener$java_awt_event_AWTEventListener', function (a, b) { +if (a == null ) return b; +if (b == null ) return a; +return Clazz_new_(C$.c$$java_awt_event_AWTEventListener$java_awt_event_AWTEventListener,[a, b]); +}, 1); + +Clazz_newMeth(C$, 'remove$java_awt_event_AWTEventListener$java_awt_event_AWTEventListener', function (l, oldl) { +return P$.AWTEventMulticaster.removeInternal$java_util_EventListener$java_util_EventListener(l, oldl); +}, 1); + +Clazz_newMeth(C$, 'remove$java_util_EventListener', function (oldl) { +if (oldl === this.a ) return this.b; +if (oldl === this.b ) return this.a; +var a2=P$.AWTEventMulticaster.removeInternal$java_util_EventListener$java_util_EventListener(this.a, oldl); +var b2=P$.AWTEventMulticaster.removeInternal$java_util_EventListener$java_util_EventListener(this.b, oldl); +if (a2 === this.a && b2 === this.b ) { +return this; +}return C$.add$java_awt_event_AWTEventListener$java_awt_event_AWTEventListener(a2, b2); +}); + +Clazz_newMeth(C$, ['eventDispatched$java_awt_AWTEvent','eventDispatched$'], function (event) { +(this.a).eventDispatched$(event); +(this.b).eventDispatched$(event); +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.Toolkit, "SelectiveAWTEventListener", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, null, 'java.awt.event.AWTEventListener'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.listener=null; +this.eventMask=0; +this.calls=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.calls=Clazz_array(Integer.TYPE, [32]); +}, 1); + +Clazz_newMeth(C$, 'getListener$', function () { +return this.listener; +}); + +Clazz_newMeth(C$, 'getEventMask$', function () { +return this.eventMask; +}); + +Clazz_newMeth(C$, 'getCalls$', function () { +return this.calls; +}); + +Clazz_newMeth(C$, 'orEventMasks$J', function (mask) { +this.eventMask|=mask; +for (var i=0; i < 32; i++) { +if (mask == 0) { +break; +}if ((mask & 1) != 0) { +this.calls[i]++; +}mask>>>=1; +} +}); + +Clazz_newMeth(C$, 'c$$java_awt_event_AWTEventListener$J', function (l, mask) { +C$.$init$.apply(this); +this.listener=l; +this.eventMask=mask; +}, 1); + +Clazz_newMeth(C$, ['eventDispatched$java_awt_AWTEvent','eventDispatched$'], function (event) { +var eventBit=0; +if (((eventBit=this.eventMask & 1) != 0 && event.id >= 100 && event.id <= 103 ) || ((eventBit=this.eventMask & 2) != 0 && event.id >= 300 && event.id <= 301 ) || ((eventBit=this.eventMask & 4) != 0 && event.id >= 1004 && event.id <= 1005 ) || ((eventBit=this.eventMask & 8) != 0 && event.id >= 400 && event.id <= 402 ) || ((eventBit=this.eventMask & 131072) != 0 && event.id == 507 ) || ((eventBit=this.eventMask & 32) != 0 && (event.id == 503 || event.id == 506 ) ) || ((eventBit=this.eventMask & 16) != 0 && event.id != 503 && event.id != 506 && event.id != 507 && event.id >= 500 && event.id <= 507 ) || ((eventBit=this.eventMask & 64) != 0 && (event.id >= 200 && event.id <= 209 ) ) || ((eventBit=this.eventMask & 128) != 0 && event.id >= 1001 && event.id <= 1001 ) || ((eventBit=this.eventMask & 256) != 0 && event.id >= 601 && event.id <= 601 ) || ((eventBit=this.eventMask & 512) != 0 && event.id >= 701 && event.id <= 701 ) || ((eventBit=this.eventMask & 1024) != 0 && event.id >= 900 && event.id <= 900 ) || ((eventBit=this.eventMask & 2048) != 0 && event.id >= 1100 && event.id <= 1101 ) || ((eventBit=this.eventMask & 8192) != 0 && event.id >= 800 && event.id <= 801 ) || ((eventBit=this.eventMask & 16384) != 0 && event.id >= 1200 && event.id <= 1201 ) || ((eventBit=this.eventMask & 32768) != 0 && event.id == 1400 ) || ((eventBit=this.eventMask & 65536) != 0 && (event.id == 1401 || event.id == 1402 ) ) || ((eventBit=this.eventMask & 262144) != 0 && event.id == 209 ) || ((eventBit=this.eventMask & 524288) != 0 && (event.id == 207 || event.id == 208 ) ) ) { +var ci=0; +for (var eMask=eventBit; eMask != 0; eMask>>>=1, ci++) { +} +ci--; +for (var i=0; i < this.calls[ci]; i++) { +this.listener.eventDispatched$(event); +} +}}); + +Clazz_newMeth(C$); +})() + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:18 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt"),I$=[]; +var C$=Clazz_newInterface(P$, "Transparency"); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:18 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.awt"),p$1={},I$=[[0,'java.awt.Color','java.util.Vector','java.awt.Cursor','java.awt.BorderLayout',['java.awt.Dialog','.ModalExclusionType'],'java.util.ArrayList','swingjs.JSUtil','java.awt.Toolkit','java.awt.event.WindowEvent','java.util.Locale','java.util.Arrays','sun.awt.AppContext','java.awt.AWTEventMulticaster','java.awt.event.WindowListener','java.awt.event.WindowFocusListener','java.awt.event.WindowStateListener','java.awt.KeyboardFocusManager','java.awt.ComponentOrientation','java.util.ResourceBundle','swingjs.JSToolkit','java.awt.GraphicsEnvironment','java.awt.Point']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "Window", null, 'javax.swing.JComponent'); +C$.systemSyncLWRequests=false; +C$.nameCounter=0; +C$.TRANSPARENT_BACKGROUND_COLOR=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.systemSyncLWRequests=false; +C$.nameCounter=0; +C$.TRANSPARENT_BACKGROUND_COLOR=Clazz_new_($I$(1).c$$I$I$I$I,[0, 0, 0, 0]); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.warningString=null; +this.icons=null; +this.temporaryLostComponent=null; +this.syncLWRequests=false; +this.beforeFirstShow=false; +this.state=0; +this.alwaysOnTop=false; +this.ownedWindowList=null; +this.showWithParent=false; +this.modalBlocker=null; +this.modalExclusionType=null; +this.windowListener=null; +this.windowStateListener=null; +this.windowFocusListener=null; +this.focusableWindowState=false; +this.isInShow=false; +this.opacity=0; +this.shape=null; +this.isTrayIconWindow=false; +this._disposed=false; +this.opaque=false; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.syncLWRequests=false; +this.beforeFirstShow=true; +this.ownedWindowList=Clazz_new_($I$(2)); +this.focusableWindowState=true; +this.isInShow=false; +this.opacity=1.0; +this.shape=null; +this.isTrayIconWindow=false; +this.opaque=true; +}, 1); + +Clazz_newMeth(C$, 'setOpaque$java_awt_Window$Z', function (window, opaque) { +var bg=window.getBackground$(); +if (bg == null ) { +bg=Clazz_new_($I$(1).c$$I$I$I$I,[0, 0, 0, 0]); +}window.setBackground$java_awt_Color(Clazz_new_($I$(1).c$$I$I$I$I,[bg.getRed$(), bg.getGreen$(), bg.getBlue$(), opaque ? 255 : 0])); +}); + +Clazz_newMeth(C$, 'updateWindow$', function () { +}); + +Clazz_newMeth(C$, 'setLWRequestStatus$Z', function (status) { +this.syncLWRequests=status; +}); + +Clazz_newMeth(C$, 'isAutoRequestFocus$', function () { +return true; +}); + +Clazz_newMeth(C$, 'isTrayIconWindow$', function () { +return this.isTrayIconWindow; +}); + +Clazz_newMeth(C$, 'setTrayIconWindow$Z', function (isTrayIconWindow) { +this.isTrayIconWindow=isTrayIconWindow; +}); + +Clazz_newMeth(C$, 'c$', function () { +C$.c$$java_awt_Window$java_awt_GraphicsConfiguration.apply(this, [null, null]); +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_GraphicsConfiguration', function (gc) { +C$.c$$java_awt_Window$java_awt_GraphicsConfiguration.apply(this, [null, gc]); +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Window', function (owner) { +C$.c$$java_awt_Window$java_awt_GraphicsConfiguration.apply(this, [owner, null]); +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Window$java_awt_GraphicsConfiguration', function (owner, gc) { +Clazz_super_(C$, this,1); +this.秘paintClass=this.秘updateClass=C$ ||null; +this.initWinGC$java_awt_Window$java_awt_GraphicsConfiguration(owner, gc); +}, 1); + +Clazz_newMeth(C$, 'initWinGC$java_awt_Window$java_awt_GraphicsConfiguration', function (owner, gc) { +this.setAppContext$(); +this.isWindow=true; +this.parent=owner; +if (owner != null ) owner.addOwnedWindow$java_awt_Window(this); +this.syncLWRequests=C$.systemSyncLWRequests; +p$1.addToWindowList.apply(this, []); +this.cursor=$I$(3).getPredefinedCursor$I(0); +this.visible=false; +this.setLayout$java_awt_LayoutManager(Clazz_new_($I$(4))); +this.modalExclusionType=$I$(5).NO_EXCLUDE; +}); + +Clazz_newMeth(C$, 'constructComponentName$', function () { +{ +return "win" + C$.nameCounter++; +}}); + +Clazz_newMeth(C$, 'getIconImages$', function () { +var icons=this.icons; +if (icons == null || icons.size$() == 0 ) { +return Clazz_new_($I$(6)); +}return Clazz_new_($I$(6).c$$java_util_Collection,[icons]); +}); + +Clazz_newMeth(C$, 'setIconImages$java_util_List', function (icons) { +this.icons=(icons == null ) ? Clazz_new_($I$(6)) : Clazz_new_($I$(6).c$$java_util_Collection,[icons]); +this.firePropertyChange$S$O$O("iconImage", null, null); +}); + +Clazz_newMeth(C$, 'setIconImage$java_awt_Image', function (image) { +var imageList=Clazz_new_($I$(6)); +if (image != null ) { +imageList.add$TE(image); +}this.setIconImages$java_util_List(imageList); +}); + +Clazz_newMeth(C$, 'addNotify$', function () { +var parent=this.parent; +if (parent != null && parent.getPeer$() == null ) parent.addNotify$(); +this.getOrCreatePeer$(); +$I$(7).getAppletViewer$().addWindow$java_awt_Window(this); +C$.superclazz.prototype.addNotify$.apply(this, []); +}); + +Clazz_newMeth(C$, 'getOrCreatePeer$', function () { +return (this.ui == null ? null : this.peer == null ? (this.peer=this.getToolkit$().createWindow$java_awt_Window(this)) : this.peer); +}); + +Clazz_newMeth(C$, 'removeNotify$', function () { +$I$(7).getAppletViewer$().allWindows.removeObj$O(this); +C$.superclazz.prototype.removeNotify$.apply(this, []); +}); + +Clazz_newMeth(C$, 'pack$', function () { +var parent=this.parent; +if (parent != null && parent.getPeer$() == null ) { +parent.addNotify$(); +}if (this.peer == null ) { +this.addNotify$(); +}if (this.beforeFirstShow) { +this.isPacked=true; +}this.repackContainer$(); +}); + +Clazz_newMeth(C$, 'setMinimumSize$java_awt_Dimension', function (minimumSize) { +/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$()); +{ +C$.superclazz.prototype.setMinimumSize$java_awt_Dimension.apply(this, [minimumSize]); +var size=this.getSize$(); +if (this.isMinimumSizeSet$()) { +if (size.width < minimumSize.width || size.height < minimumSize.height ) { +var nw=Math.max(this.width, minimumSize.width); +var nh=Math.max(this.height, minimumSize.height); +this.setSize$I$I(nw, nh); +}}}}); + +Clazz_newMeth(C$, 'setSize$java_awt_Dimension', function (d) { +C$.superclazz.prototype.setSize$java_awt_Dimension.apply(this, [d]); +}); + +Clazz_newMeth(C$, 'setSize$I$I', function (width, height) { +C$.superclazz.prototype.setSize$I$I.apply(this, [width, height]); +}); + +Clazz_newMeth(C$, 'reshape$I$I$I$I', function (x, y, width, height) { +if (this.isMinimumSizeSet$()) { +var minSize=this.getMinimumSize$(); +if (width < minSize.width) { +width=minSize.width; +}if (height < minSize.height) { +height=minSize.height; +}}C$.superclazz.prototype.reshape$I$I$I$I.apply(this, [x, y, width, height]); +}); + +Clazz_newMeth(C$, 'closeSplashScreen$', function () { +}, 1); + +Clazz_newMeth(C$, 'paint$java_awt_Graphics', function (g) { +this.paintContainer$java_awt_Graphics(g); +}); + +Clazz_newMeth(C$, 'update$java_awt_Graphics', function (g) { +this.updateContainer$java_awt_Graphics(g); +}); + +Clazz_newMeth(C$, 'printAll$java_awt_Graphics', function (g) { +C$.superclazz.prototype.printAll$java_awt_Graphics.apply(this, [g]); +}); + +Clazz_newMeth(C$, 'getPreferredSize$', function () { +return this.preferredSize$(); +}); + +Clazz_newMeth(C$, 'setVisible$Z', function (b) { +if (b) { +this.show$(); +this.秘repaint$(); +} else { +this.hide$(); +}}); + +Clazz_newMeth(C$, 'show$', function () { +if (this.ui != null && (this.ui).isDisposed ) this.addNotify$(); +this.validate$(); +this.isInShow=true; +if (this.visible) { +this.toFront$(); +} else { +this.beforeFirstShow=false; +C$.closeSplashScreen$(); +C$.superclazz.prototype.show$.apply(this, []); +for (var i=0; i < this.ownedWindowList.size$(); i++) { +var child=this.ownedWindowList.elementAt$I(i); +if ((child != null ) && child.showWithParent ) { +child.show$(); +child.showWithParent=false; +}} +if (Clazz_instanceOf(this, "java.awt.JSFrame") || Clazz_instanceOf(this, "java.awt.JSDialog") ) { +C$.updateChildFocusableWindowState$java_awt_Window(this); +}}this.isInShow=false; +if ((this.state & 1) == 0) { +this.秘repaint$(); +this.postWindowEvent$I(200); +this.state|=1; +}}); + +Clazz_newMeth(C$, 'updateChildFocusableWindowState$java_awt_Window', function (w) { +for (var i=0; i < w.ownedWindowList.size$(); i++) { +var child=w.ownedWindowList.elementAt$I(i); +if (child != null ) { +C$.updateChildFocusableWindowState$java_awt_Window(child); +}} +}, 1); + +Clazz_newMeth(C$, 'postWindowEvent$I', function (id) { +if (this.windowListener != null || (this.eventMask & 64) != 0 || $I$(8).enabledOnToolkit$J(64) ) { +var e=Clazz_new_($I$(9).c$$java_awt_Window$I,[this, id]); +$I$(8).getEventQueue$().postEvent$java_awt_AWTEvent(e); +}}); + +Clazz_newMeth(C$, 'hide$', function () { +{ +for (var i=0; i < this.ownedWindowList.size$(); i++) { +var child=this.ownedWindowList.elementAt$I(i); +if ((child != null ) && child.visible ) { +child.hide$(); +child.showWithParent=true; +}} +}C$.superclazz.prototype.hide$.apply(this, []); +}); + +Clazz_newMeth(C$, 'clearMostRecentFocusOwnerOnHide$', function () { +}); + +Clazz_newMeth(C$, 'dispose$', function () { +this.doDispose$(); +}); + +Clazz_newMeth(C$, 'disposeImpl$', function () { +this.dispose$(); +if (!this._disposed && this.getPeer$() != null ) { +this.doDispose$(); +}}); + +Clazz_newMeth(C$, 'doDispose$', function () { +this._disposed=true; +var me=this; +var action=((P$.Window$1|| +(function(){var C$=Clazz_newClass(P$, "Window$1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'Runnable', 1); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'run$', function () { +var parent=this.b$['java.awt.Window'].getOwner$.apply(this.b$['java.awt.Window'], []); +if (parent != null ) { +parent.removeOwnedWindow$java_awt_Window(this.$finals$.me); +}var ui=this.$finals$.me.getUI$(); +if (ui != null ) { +ui.reinstallUI$javax_swing_JComponent$javax_swing_JComponent(this.$finals$.me, null); +}var ownedWindowArray; +{ +ownedWindowArray=Clazz_array(java.lang.Object, [this.b$['java.awt.Window'].ownedWindowList.size$()]); +this.b$['java.awt.Window'].ownedWindowList.copyInto$OA(ownedWindowArray); +}for (var i=0; i < ownedWindowArray.length; i++) { +var child=ownedWindowArray[i]; +if (child != null ) child.disposeImpl$(); +} +this.b$['java.awt.Window'].hide$.apply(this.b$['java.awt.Window'], []); +this.b$['java.awt.Window'].beforeFirstShow=true; +this.b$['java.awt.Window'].removeNotify$.apply(this.b$['java.awt.Window'], []); +this.b$['java.awt.Container'].clearCurrentFocusCycleRootOnHide$.apply(this.b$['java.awt.Container'], []); +}); +})() +), Clazz_new_(P$.Window$1.$init$, [this, {me: me}])); +action.run$(); +this.postWindowEvent$I(202); +}); + +Clazz_newMeth(C$, 'adjustListeningChildrenOnParent$J$I', function (mask, num) { +}); + +Clazz_newMeth(C$, 'adjustDecendantsOnParent$I', function (num) { +}); + +Clazz_newMeth(C$, 'toFront$', function () { +this.toFront_NoClientCode$(); +}); + +Clazz_newMeth(C$, 'toFront_NoClientCode$', function () { +if (this.visible) { +var peer=this.peer; +if (peer != null ) { +peer.toFront$(); +}if (this.isModalBlocked$()) { +this.modalBlocker.toFront_NoClientCode$(); +}for (var i=0; i < this.ownedWindowList.size$(); i++) { +if (this.ownedWindowList.get$I(i).isVisible$()) this.ownedWindowList.get$I(i).toFront$(); +} +}}); + +Clazz_newMeth(C$, 'toBack$', function () { +this.toBack_NoClientCode$(); +}); + +Clazz_newMeth(C$, 'toBack_NoClientCode$', function () { +if (this.isAlwaysOnTop$()) { +try { +this.setAlwaysOnTop$Z(false); +} catch (e) { +if (Clazz_exceptionOf(e,"SecurityException")){ +} else { +throw e; +} +} +}}); + +Clazz_newMeth(C$, 'getToolkit$', function () { +return $I$(8).getDefaultToolkit$(); +}); + +Clazz_newMeth(C$, 'getWarningString$', function () { +return this.warningString; +}); + +Clazz_newMeth(C$, 'getLocale$', function () { +if (this.locale == null ) { +return $I$(10).getDefault$(); +}return this.locale; +}); + +Clazz_newMeth(C$, 'setCursor$java_awt_Cursor', function (cursor) { +if (cursor == null ) { +cursor=$I$(3).getPredefinedCursor$I(0); +}C$.superclazz.prototype.setCursor$java_awt_Cursor.apply(this, [cursor]); +}); + +Clazz_newMeth(C$, 'getOwner$', function () { +return this.getOwner_NoClientCode$(); +}); + +Clazz_newMeth(C$, 'getOwner_NoClientCode$', function () { +return this.parent; +}); + +Clazz_newMeth(C$, 'getOwnedWindows$', function () { +return this.getOwnedWindows_NoClientCode$(); +}); + +Clazz_newMeth(C$, 'getOwnedWindows_NoClientCode$', function () { +var realCopy; +{ +var fullSize=this.ownedWindowList.size$(); +var realSize=0; +var fullCopy=Clazz_array(C$, [fullSize]); +for (var i=0; i < fullSize; i++) { +fullCopy[realSize]=this.ownedWindowList.elementAt$I(i); +if (fullCopy[realSize] != null ) { +realSize++; +}} +if (fullSize != realSize) { +realCopy=$I$(11).copyOf$TTA$I(fullCopy, realSize); +} else { +realCopy=fullCopy; +}}return realCopy; +}); + +Clazz_newMeth(C$, 'isModalBlocked$', function () { +return this.modalBlocker != null ; +}); + +Clazz_newMeth(C$, 'setModalBlocked$java_awt_JSDialog$Z$Z', function (blocker, blocked, peerCall) { +this.modalBlocker=blocked ? blocker : null; +if (peerCall) { +var peer=this.peer; +if (peer != null ) { +peer.setModalBlocked$java_awt_JSDialog$Z(blocker, blocked); +}}}); + +Clazz_newMeth(C$, 'setModalBlocked$java_awt_Dialog$Z$Z', function (blocker, blocked, peerCall) { +this.setModalBlocked$java_awt_JSDialog$Z$Z(blocker, blocked, peerCall); +}); + +Clazz_newMeth(C$, 'getModalBlocker$', function () { +return this.modalBlocker; +}); + +Clazz_newMeth(C$, 'getAllWindows$', function () { +var v=Clazz_new_($I$(6)); +v.addAll$java_util_Collection($I$(7).getAppletViewer$().allWindows); +return v; +}, 1); + +Clazz_newMeth(C$, 'getAllUnblockedWindows$', function () { +var allWindows=$I$(7).getAppletViewer$().allWindows; +var unblocked=Clazz_new_($I$(6)); +for (var i=0; i < allWindows.size$(); i++) { +var w=allWindows.get$I(i); +if (!w.isModalBlocked$()) { +unblocked.add$TE(w); +}} +return unblocked; +}, 1); + +Clazz_newMeth(C$, 'getWindows$sun_awt_AppContext', function (appContext) { +{ +var realCopy; +var windowList=appContext.get$O(Clazz_getClass(C$)); +if (windowList != null ) { +var fullSize=windowList.size$(); +var realSize=0; +var fullCopy=Clazz_array(C$, [fullSize]); +for (var i=0; i < fullSize; i++) { +var w=windowList.get$I(i); +if (w != null ) { +fullCopy[realSize++]=w; +}} +if (fullSize != realSize) { +realCopy=$I$(11).copyOf$TTA$I(fullCopy, realSize); +} else { +realCopy=fullCopy; +}} else { +realCopy=Clazz_array(C$, [0]); +}return realCopy; +}}, 1); + +Clazz_newMeth(C$, 'getWindows$', function () { +return C$.getWindows$sun_awt_AppContext($I$(12).getAppContext$()); +}, 1); + +Clazz_newMeth(C$, 'getOwnerlessWindows$', function () { +var allWindows=C$.getWindows$(); +var ownerlessCount=0; +for (var w, $w = 0, $$w = allWindows; $w<$$w.length&&((w=($$w[$w])),1);$w++) { +if (w.getOwner$() == null ) { +ownerlessCount++; +}} +var ownerless=Clazz_array(C$, [ownerlessCount]); +var c=0; +for (var w, $w = 0, $$w = allWindows; $w<$$w.length&&((w=($$w[$w])),1);$w++) { +if (w.getOwner$() == null ) { +ownerless[c++]=w; +}} +return ownerless; +}, 1); + +Clazz_newMeth(C$, 'getDocumentRoot$', function () { +/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$()); +{ +var w=this; +while (w.getOwner$() != null ){ +w=w.getOwner$(); +} +return w; +}}); + +Clazz_newMeth(C$, 'setModalExclusionType$java_awt_Dialog_ModalExclusionType', function (exclusionType) { +if (exclusionType == null ) { +exclusionType=$I$(5).NO_EXCLUDE; +}if (!$I$(8).getDefaultToolkit$().isModalExclusionTypeSupported$java_awt_Dialog_ModalExclusionType(exclusionType)) { +exclusionType=$I$(5).NO_EXCLUDE; +}if (this.modalExclusionType === exclusionType ) { +return; +}this.modalExclusionType=exclusionType; +}); + +Clazz_newMeth(C$, 'getModalExclusionType$', function () { +return this.modalExclusionType; +}); + +Clazz_newMeth(C$, 'isModalExcluded$java_awt_Dialog_ModalExclusionType', function (exclusionType) { +if ((this.modalExclusionType != null ) && this.modalExclusionType.compareTo$TE(exclusionType) >= 0 ) { +return true; +}var owner=this.getOwner_NoClientCode$(); +return (owner != null ) && owner.isModalExcluded$java_awt_Dialog_ModalExclusionType(exclusionType) ; +}); + +Clazz_newMeth(C$, 'addWindowListener$java_awt_event_WindowListener', function (l) { +if (l == null ) { +return; +}this.newEventsOnly=true; +this.windowListener=$I$(13).add$java_awt_event_WindowListener$java_awt_event_WindowListener(this.windowListener, l); +}); + +Clazz_newMeth(C$, 'addWindowStateListener$java_awt_event_WindowStateListener', function (l) { +if (l == null ) { +return; +}this.windowStateListener=$I$(13).add$java_awt_event_WindowStateListener$java_awt_event_WindowStateListener(this.windowStateListener, l); +this.newEventsOnly=true; +}); + +Clazz_newMeth(C$, 'addWindowFocusListener$java_awt_event_WindowFocusListener', function (l) { +if (l == null ) { +return; +}this.windowFocusListener=$I$(13).add$java_awt_event_WindowFocusListener$java_awt_event_WindowFocusListener(this.windowFocusListener, l); +this.newEventsOnly=true; +}); + +Clazz_newMeth(C$, 'removeWindowListener$java_awt_event_WindowListener', function (l) { +if (l == null ) { +return; +}this.windowListener=$I$(13).remove$java_awt_event_WindowListener$java_awt_event_WindowListener(this.windowListener, l); +}); + +Clazz_newMeth(C$, 'removeWindowStateListener$java_awt_event_WindowStateListener', function (l) { +if (l == null ) { +return; +}this.windowStateListener=$I$(13).remove$java_awt_event_WindowStateListener$java_awt_event_WindowStateListener(this.windowStateListener, l); +}); + +Clazz_newMeth(C$, 'removeWindowFocusListener$java_awt_event_WindowFocusListener', function (l) { +if (l == null ) { +return; +}this.windowFocusListener=$I$(13).remove$java_awt_event_WindowFocusListener$java_awt_event_WindowFocusListener(this.windowFocusListener, l); +}); + +Clazz_newMeth(C$, 'getWindowListeners$', function () { +return (this.getListeners$Class(Clazz_getClass($I$(14),['windowActivated$java_awt_event_WindowEvent','windowClosed$java_awt_event_WindowEvent','windowClosing$java_awt_event_WindowEvent','windowDeactivated$java_awt_event_WindowEvent','windowDeiconified$java_awt_event_WindowEvent','windowIconified$java_awt_event_WindowEvent','windowOpened$java_awt_event_WindowEvent']))); +}); + +Clazz_newMeth(C$, 'getWindowFocusListeners$', function () { +return (this.getListeners$Class(Clazz_getClass($I$(15),['windowGainedFocus$java_awt_event_WindowEvent','windowLostFocus$java_awt_event_WindowEvent']))); +}); + +Clazz_newMeth(C$, 'getWindowStateListeners$', function () { +return (this.getListeners$Class(Clazz_getClass($I$(16),['windowStateChanged$java_awt_event_WindowEvent']))); +}); + +Clazz_newMeth(C$, 'getListeners$Class', function (listenerType) { +var l=null; +if (listenerType === Clazz_getClass($I$(15),['windowGainedFocus$java_awt_event_WindowEvent','windowLostFocus$java_awt_event_WindowEvent']) ) { +l=this.windowFocusListener; +} else if (listenerType === Clazz_getClass($I$(16),['windowStateChanged$java_awt_event_WindowEvent']) ) { +l=this.windowStateListener; +} else if (listenerType === Clazz_getClass($I$(14),['windowActivated$java_awt_event_WindowEvent','windowClosed$java_awt_event_WindowEvent','windowClosing$java_awt_event_WindowEvent','windowDeactivated$java_awt_event_WindowEvent','windowDeiconified$java_awt_event_WindowEvent','windowIconified$java_awt_event_WindowEvent','windowOpened$java_awt_event_WindowEvent']) ) { +l=this.windowListener; +} else { +return C$.superclazz.prototype.getListeners$Class.apply(this, [listenerType]); +}return $I$(13).getListeners$java_util_EventListener$Class(l, listenerType); +}); + +Clazz_newMeth(C$, 'eventEnabled$java_awt_AWTEvent', function (e) { +switch (e.id) { +case 200: +case 201: +case 202: +case 203: +case 204: +case 205: +case 206: +if ((this.eventMask & 64) != 0 || this.windowListener != null ) { +return true; +}return false; +case 207: +case 208: +if ((this.eventMask & 524288) != 0 || this.windowFocusListener != null ) { +return true; +}return false; +case 209: +if ((this.eventMask & 262144) != 0 || this.windowStateListener != null ) { +return true; +}return false; +default: +break; +} +return C$.superclazz.prototype.eventEnabled$java_awt_AWTEvent.apply(this, [e]); +}); + +Clazz_newMeth(C$, 'processEvent$java_awt_AWTEvent', function (e) { +if (Clazz_instanceOf(e, "java.awt.event.WindowEvent")) { +switch (e.getID$()) { +case 200: +case 201: +case 202: +case 203: +case 204: +case 205: +case 206: +this.processWindowEvent$java_awt_event_WindowEvent(e); +break; +case 207: +case 208: +this.processWindowFocusEvent$java_awt_event_WindowEvent(e); +break; +case 209: +this.processWindowStateEvent$java_awt_event_WindowEvent(e); +default: +break; +} +return; +}this.processEventCont$java_awt_AWTEvent(e); +}); + +Clazz_newMeth(C$, 'processWindowEvent$java_awt_event_WindowEvent', function (e) { +var listener=this.windowListener; +if (listener != null ) { +switch (e.getID$()) { +case 200: +listener.windowOpened$java_awt_event_WindowEvent(e); +break; +case 201: +listener.windowClosing$java_awt_event_WindowEvent(e); +break; +case 202: +listener.windowClosed$java_awt_event_WindowEvent(e); +break; +case 203: +listener.windowIconified$java_awt_event_WindowEvent(e); +break; +case 204: +listener.windowDeiconified$java_awt_event_WindowEvent(e); +break; +case 205: +listener.windowActivated$java_awt_event_WindowEvent(e); +break; +case 206: +listener.windowDeactivated$java_awt_event_WindowEvent(e); +break; +default: +break; +} +}}); + +Clazz_newMeth(C$, 'processWindowFocusEvent$java_awt_event_WindowEvent', function (e) { +var listener=this.windowFocusListener; +if (listener != null ) { +switch (e.getID$()) { +case 207: +listener.windowGainedFocus$java_awt_event_WindowEvent(e); +break; +case 208: +listener.windowLostFocus$java_awt_event_WindowEvent(e); +break; +default: +break; +} +}}); + +Clazz_newMeth(C$, 'processWindowStateEvent$java_awt_event_WindowEvent', function (e) { +var listener=this.windowStateListener; +if (listener != null ) { +switch (e.getID$()) { +case 209: +listener.windowStateChanged$(e); +break; +default: +break; +} +}}); + +Clazz_newMeth(C$, 'preProcessKeyEvent$java_awt_event_KeyEvent', function (e) { +}); + +Clazz_newMeth(C$, 'postProcessKeyEvent$java_awt_event_KeyEvent', function (e) { +}); + +Clazz_newMeth(C$, 'setAlwaysOnTop$Z', function (alwaysOnTop) { +var oldAlwaysOnTop; +{ +oldAlwaysOnTop=this.alwaysOnTop; +this.alwaysOnTop=alwaysOnTop; +}if (oldAlwaysOnTop != alwaysOnTop ) { +if (this.isAlwaysOnTopSupported$()) { +}this.firePropertyChange$S$Z$Z("alwaysOnTop", oldAlwaysOnTop, alwaysOnTop); +}}); + +Clazz_newMeth(C$, 'isAlwaysOnTopSupported$', function () { +return $I$(8).getDefaultToolkit$().isAlwaysOnTopSupported$(); +}); + +Clazz_newMeth(C$, 'isAlwaysOnTop$', function () { +return this.alwaysOnTop; +}); + +Clazz_newMeth(C$, 'getFocusOwner$', function () { +return (this.isFocused$()) ? $I$(17).getCurrentKeyboardFocusManager$().getFocusOwner$() : null; +}); + +Clazz_newMeth(C$, 'getMostRecentFocusOwner$', function () { +if (this.isFocused$()) { +return this.getFocusOwner$(); +} else { +var mostRecent=$I$(17).getMostRecentFocusOwner$java_awt_Window(this); +if (mostRecent != null ) { +return mostRecent; +} else { +return (this.isFocusableWindow$()) ? this.getFocusTraversalPolicy$().getInitialComponent$java_awt_Window(this) : null; +}}}); + +Clazz_newMeth(C$, 'isActive$', function () { +return ($I$(17).getCurrentKeyboardFocusManager$().getActiveWindow$() === this ); +}); + +Clazz_newMeth(C$, 'isFocused$', function () { +return ($I$(17).getCurrentKeyboardFocusManager$().getGlobalFocusedWindow$() === this ); +}); + +Clazz_newMeth(C$, 'getFocusTraversalKeys$I', function (id) { +if (id < 0 || id >= 4 ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["invalid focus traversal key identifier"]); +}var keystrokes=(this.focusTraversalKeys != null ) ? this.focusTraversalKeys[id] : null; +if (keystrokes != null ) { +return keystrokes; +} else { +return $I$(17).getCurrentKeyboardFocusManager$().getDefaultFocusTraversalKeys$I(id); +}}); + +Clazz_newMeth(C$, 'setFocusCycleRoot$Z', function (focusCycleRoot) { +}); + +Clazz_newMeth(C$, 'isFocusCycleRoot$', function () { +return true; +}); + +Clazz_newMeth(C$, 'getFocusCycleRootAncestor$', function () { +return null; +}); + +Clazz_newMeth(C$, 'isFocusableWindow$', function () { +if (!this.getFocusableWindowState$()) { +return false; +}if (Clazz_instanceOf(this, "java.awt.JSFrame") || Clazz_instanceOf(this, "java.awt.JSDialog") ) { +return true; +}if (this.getFocusTraversalPolicy$().getDefaultComponent$java_awt_Container(this) == null ) { +return false; +}for (var owner=this.getOwner$(); owner != null ; owner=owner.getOwner$()) { +if (Clazz_instanceOf(owner, "java.awt.JSFrame") || Clazz_instanceOf(owner, "java.awt.JSDialog") ) { +return owner.isShowing$(); +}} +return false; +}); + +Clazz_newMeth(C$, 'getFocusableWindowState$', function () { +return this.focusableWindowState; +}); + +Clazz_newMeth(C$, 'setFocusableWindowState$Z', function (focusableWindowState) { +var oldFocusableWindowState; +{ +oldFocusableWindowState=this.focusableWindowState; +this.focusableWindowState=focusableWindowState; +}this.firePropertyChange$S$Z$Z("focusableWindowState", oldFocusableWindowState, focusableWindowState); +if (oldFocusableWindowState && !focusableWindowState && this.isFocused$() ) { +for (var owner=this.getOwner$(); owner != null ; owner=owner.getOwner$()) { +} +}}); + +Clazz_newMeth(C$, 'addPropertyChangeListener$java_beans_PropertyChangeListener', function (listener) { +C$.superclazz.prototype.addPropertyChangeListener$java_beans_PropertyChangeListener.apply(this, [listener]); +}); + +Clazz_newMeth(C$, 'addPropertyChangeListener$S$java_beans_PropertyChangeListener', function (propertyName, listener) { +C$.superclazz.prototype.addPropertyChangeListener$S$java_beans_PropertyChangeListener.apply(this, [propertyName, listener]); +}); + +Clazz_newMeth(C$, 'dispatchEventImpl$java_awt_AWTEvent', function (e) { +if (e.getID$() == 101) { +this.invalidate$(); +this.validate$(); +}C$.superclazz.prototype.dispatchEventImpl$java_awt_AWTEvent.apply(this, [e]); +}); + +Clazz_newMeth(C$, 'postEvent$java_awt_Event', function (e) { +if (this.handleEvent$java_awt_Event(e)) { +e.consume$(); +return true; +}return false; +}); + +Clazz_newMeth(C$, 'isShowing$', function () { +return this.visible; +}); + +Clazz_newMeth(C$, 'applyResourceBundle$java_util_ResourceBundle', function (rb) { +this.applyComponentOrientation$java_awt_ComponentOrientation($I$(18).getOrientation$java_util_ResourceBundle(rb)); +}); + +Clazz_newMeth(C$, 'applyResourceBundle$S', function (rbName) { +this.applyResourceBundle$java_util_ResourceBundle($I$(19).getBundle$S(rbName)); +}); + +Clazz_newMeth(C$, 'addOwnedWindow$java_awt_Window', function (weakWindow) { +if (weakWindow != null ) { +{ +if (!this.ownedWindowList.contains$O(weakWindow)) { +this.ownedWindowList.addElement$TE(weakWindow); +}}}}); + +Clazz_newMeth(C$, 'removeOwnedWindow$java_awt_Window', function (weakWindow) { +if (weakWindow != null ) { +this.ownedWindowList.removeElement$O(weakWindow); +}}); + +Clazz_newMeth(C$, 'connectOwnedWindow$java_awt_Window', function (child) { +child.parent=this; +this.addOwnedWindow$java_awt_Window(child); +}); + +Clazz_newMeth(C$, 'addToWindowList', function () { +var windowList=this.appContext.get$O(Clazz_getClass(C$)); +if (windowList == null ) { +windowList=Clazz_new_($I$(2)); +this.appContext.put$O$O(Clazz_getClass(C$), windowList); +}windowList.add$TE(this); +}, p$1); + +Clazz_newMeth(C$, 'getGraphicsConfiguration$', function () { +if (this.graphicsConfig == null ) this.graphicsConfig=$I$(20).getGraphicsConfiguration$(); +return this.graphicsConfig; +}); + +Clazz_newMeth(C$, 'resetGC$', function () { +}); + +Clazz_newMeth(C$, 'setLocationRelativeTo$java_awt_Component', function (c) { +var root=null; +if (c != null ) { +if (c.isWindowOrJSApplet$()) { +root=c; +} else { +var parent; +for (parent=c.getParent$(); parent != null ; parent=parent.getParent$()) { +if (parent.isWindowOrJSApplet$()) { +root=parent; +break; +}} +}}if ((c != null && !c.isShowing$() ) || root == null || !root.isShowing$() ) { +var paneSize=this.getSize$(); +var centerPoint=$I$(21).getLocalGraphicsEnvironment$().getCenterPoint$(); +this.setLocation$I$I(centerPoint.x - (paneSize.width/2|0), centerPoint.y - (paneSize.height/2|0)); +} else { +var invokerSize=c.getSize$(); +var invokerScreenLocation=c.getLocationOnScreen$(); +var windowBounds=this.getBounds$(); +var dx=invokerScreenLocation.x + ((invokerSize.width - windowBounds.width) >> 1); +var dy=invokerScreenLocation.y + ((invokerSize.height - windowBounds.height) >> 1); +var ss=root.getGraphicsConfiguration$().getBounds$(); +if (dy + windowBounds.height > ss.y + ss.height) { +dy=ss.y + ss.height - windowBounds.height; +if (invokerScreenLocation.x - ss.x + (invokerSize.width/2|0) < (ss.width/2|0)) { +dx=invokerScreenLocation.x + invokerSize.width; +} else { +dx=invokerScreenLocation.x - windowBounds.width; +}}if (dx + windowBounds.width > ss.x + ss.width) { +dx=ss.x + ss.width - windowBounds.width; +}if (dx < ss.x) dx=ss.x; +if (dy < ss.y) dy=ss.y; +this.setLocation$I$I(dx, dy); +}}); + +Clazz_newMeth(C$, 'deliverMouseWheelToAncestor$java_awt_event_MouseWheelEvent', function (e) { +}); + +Clazz_newMeth(C$, 'dispatchMouseWheelToAncestor$java_awt_event_MouseWheelEvent', function (e) { +return false; +}); + +Clazz_newMeth(C$, 'getTemporaryLostComponent$', function () { +return this.temporaryLostComponent; +}); + +Clazz_newMeth(C$, 'setTemporaryLostComponent$java_awt_Component', function (component) { +var previousComp=this.temporaryLostComponent; +if (component == null || component.canBeFocusOwner$() ) { +this.temporaryLostComponent=component; +} else { +this.temporaryLostComponent=null; +}return previousComp; +}); + +Clazz_newMeth(C$, 'canContainFocusOwner$java_awt_Component', function (focusOwnerCandidate) { +return C$.superclazz.prototype.canContainFocusOwner$java_awt_Component.apply(this, [focusOwnerCandidate]) && this.isFocusableWindow$() ; +}); + +Clazz_newMeth(C$, 'setBounds$I$I$I$I', function (x, y, width, height) { +C$.superclazz.prototype.setBounds$I$I$I$I.apply(this, [x, y, width, height]); +}); + +Clazz_newMeth(C$, 'setBounds$java_awt_Rectangle', function (r) { +this.setBounds$I$I$I$I(r.x, r.y, r.width, r.height); +}); + +Clazz_newMeth(C$, 'isRecursivelyVisible$', function () { +return this.visible; +}); + +Clazz_newMeth(C$, 'getOpacity$', function () { +/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$()); +{ +return this.opacity; +}}); + +Clazz_newMeth(C$, 'setOpacity$F', function (opacity) { +/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$()); +{ +if (opacity < 0.0 || opacity > 1.0 ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["The value of opacity should be in the range [0.0f .. 1.0f]."]); +}this.opacity=opacity; +}}); + +Clazz_newMeth(C$, 'getShape$', function () { +/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$()); +{ +return this.shape; +}}); + +Clazz_newMeth(C$, 'setShape$java_awt_Shape', function (shape) { +/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$()); +{ +this.shape=shape; +}}); + +Clazz_newMeth(C$, 'isOpaque$', function () { +return this.opaque; +}); + +Clazz_newMeth(C$, 'setOpaque$Z', function (opaque) { +/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$()); +{ +C$.setLayersOpaque$java_awt_Component$Z(this, opaque); +this.opaque=opaque; +var peer=this.getPeer$(); +if (peer != null ) { +peer.setOpaque$Z(opaque); +}}}); + +Clazz_newMeth(C$, 'setLayersOpaque$java_awt_Component$Z', function (component, isOpaque) { +if (Clazz_instanceOf(component, "javax.swing.RootPaneContainer")) { +var rpc=component; +var root=rpc.getRootPane$(); +var lp=root.getLayeredPane$(); +var c=root.getContentPane$(); +var content=(Clazz_instanceOf(c, "javax.swing.JComponent") ? c : null); +lp.setOpaque$Z(isOpaque); +root.setOpaque$Z(isOpaque); +root.setDoubleBuffered$Z(isOpaque); +if (content != null ) { +content.setOpaque$Z(isOpaque); +content.setDoubleBuffered$Z(isOpaque); +var numChildren=content.getComponentCount$(); +if (numChildren > 0) { +var child=content.getComponent$I(0); +if (Clazz_instanceOf(child, "javax.swing.RootPaneContainer")) { +C$.setLayersOpaque$java_awt_Component$Z(child, isOpaque); +}}}}var bg=component.getBackground$(); +var hasTransparentBg=C$.TRANSPARENT_BACKGROUND_COLOR.equals$O(bg); +var container=null; +if (Clazz_instanceOf(component, "java.awt.Container")) { +container=component; +}if (isOpaque) { +if (hasTransparentBg) { +var newColor=null; +if (container != null && container.preserveBackgroundColor != null ) { +newColor=container.preserveBackgroundColor; +} else { +newColor=Clazz_new_($I$(1).c$$I$I$I,[255, 255, 255]); +}component.setBackground$java_awt_Color(newColor); +}} else { +if (!hasTransparentBg && container != null ) { +container.preserveBackgroundColor=bg; +}component.setBackground$java_awt_Color(C$.TRANSPARENT_BACKGROUND_COLOR); +}}, 1); + +Clazz_newMeth(C$, 'getContainer$', function () { +return null; +}); + +Clazz_newMeth(C$, 'mixOnReshaping$', function () { +}); + +Clazz_newMeth(C$, 'getLocationOnWindow$', function () { +return Clazz_new_($I$(22).c$$I$I,[0, 0]); +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 13:00:42 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.beans"),I$=[[0,'java.util.HashMap','java.util.ArrayList','java.util.Collections']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "ChangeListenerMap"); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.map=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'add$S$TL', function (name, listener) { +if (this.map == null ) { +this.map=Clazz_new_($I$(1)); +}var array=this.map.get$O(name); +var size=(array != null ) ? array.length : 0; +var clone=this.newArray$I(size + 1); +clone[size]=listener; +if (array != null ) { +System.arraycopy$O$I$O$I$I(array, 0, clone, 0, size); +}this.map.put$TK$TV(name, clone); +}); + +Clazz_newMeth(C$, 'remove$S$TL', function (name, listener) { +if (this.map != null ) { +var array=this.map.get$O(name); +if (array != null ) { +for (var i=0; i < array.length; i++) { +if (listener.equals$O(array[i])) { +var size=array.length - 1; +if (size > 0) { +var clone=this.newArray$I(size); +System.arraycopy$O$I$O$I$I(array, 0, clone, 0, i); +System.arraycopy$O$I$O$I$I(array, i + 1, clone, i, size - i); +this.map.put$TK$TV(name, clone); +} else { +this.map.remove$O(name); +if (this.map.isEmpty$()) { +this.map=null; +}}break; +}} +}}}); + +Clazz_newMeth(C$, 'get$S', function (name) { +return (this.map != null ) ? this.map.get$O(name) : null; +}); + +Clazz_newMeth(C$, 'set$S$TLA', function (name, listeners) { +if (listeners != null ) { +if (this.map == null ) { +this.map=Clazz_new_($I$(1)); +}this.map.put$TK$TV(name, listeners); +} else if (this.map != null ) { +this.map.remove$O(name); +if (this.map.isEmpty$()) { +this.map=null; +}}}); + +Clazz_newMeth(C$, 'getListeners$', function () { +if (this.map == null ) { +return this.newArray$I(0); +}var list=Clazz_new_($I$(2)); +var listeners=this.map.get$O(null); +if (listeners != null ) { +for (var listener, $listener = 0, $$listener = listeners; $listener<$$listener.length&&((listener=($$listener[$listener])),1);$listener++) { +list.add$TE(listener); +} +}for (var entry, $entry = this.map.entrySet$().iterator$(); $entry.hasNext$()&&((entry=($entry.next$())),1);) { +var name=entry.getKey$(); +if (name != null ) { +for (var listener, $listener = 0, $$listener = entry.getValue$(); $listener<$$listener.length&&((listener=($$listener[$listener])),1);$listener++) { +list.add$TE(this.newProxy$S$TL(name, listener)); +} +}} +return list.toArray$TTA(this.newArray$I(list.size$())); +}); + +Clazz_newMeth(C$, 'getListeners$S', function (name) { +if (name != null ) { +var listeners=this.get$S(name); +if (listeners != null ) { +return listeners.clone$(); +}}return this.newArray$I(0); +}); + +Clazz_newMeth(C$, 'hasListeners$S', function (name) { +if (this.map == null ) { +return false; +}var array=this.map.get$O(null); +return (array != null ) || ((name != null ) && (null != this.map.get$O(name) ) ) ; +}); + +Clazz_newMeth(C$, 'getEntries$', function () { +return (this.map != null ) ? this.map.entrySet$() : $I$(3).emptySet$(); +}); + +Clazz_newMeth(C$, 'extract$TL', function (listener) { +while (Clazz_instanceOf(listener, "java.util.EventListenerProxy")){ +var proxy=listener; +listener=proxy.getListener$(); +} +return listener; +}); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:24 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.beans"),I$=[]; +var C$=Clazz_newClass(P$, "PropertyChangeEvent", null, 'java.util.EventObject'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.propertyName=null; +this.newValue=null; +this.oldValue=null; +this.propagationId=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$O$S$O$O', function (source, propertyName, oldValue, newValue) { +C$.superclazz.c$$O.apply(this, [source]); +C$.$init$.apply(this); +this.propertyName=propertyName; +this.newValue=newValue; +this.oldValue=oldValue; +}, 1); + +Clazz_newMeth(C$, 'getPropertyName$', function () { +return this.propertyName; +}); + +Clazz_newMeth(C$, 'getNewValue$', function () { +return this.newValue; +}); + +Clazz_newMeth(C$, 'getOldValue$', function () { +return this.oldValue; +}); + +Clazz_newMeth(C$, 'setPropagationId$O', function (propagationId) { +this.propagationId=propagationId; +}); + +Clazz_newMeth(C$, 'getPropagationId$', function () { +return this.propagationId; +}); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:25 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.beans"),I$=[]; +var C$=Clazz_newInterface(P$, "PropertyChangeListener", null, null, 'java.util.EventListener'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:25 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.beans"),p$1={},I$=[[0,'java.beans.PropertyChangeListener','java.beans.PropertyChangeListenerProxy',['java.beans.PropertyChangeSupport','.PropertyChangeListenerMap'],'java.beans.PropertyChangeEvent','Boolean','java.beans.IndexedPropertyChangeEvent']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "PropertyChangeSupport", function(){ +Clazz_newInstance(this, arguments,0,C$); +}); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.map=null; +this.source=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.map=Clazz_new_($I$(3)); +}, 1); + +Clazz_newMeth(C$, 'c$$O', function (sourceBean) { +C$.$init$.apply(this); +if (sourceBean == null ) { +throw Clazz_new_(Clazz_load('NullPointerException')); +}this.source=sourceBean; +}, 1); + +Clazz_newMeth(C$, 'addPropertyChangeListener$java_beans_PropertyChangeListener', function (listener) { +if (listener == null ) { +return; +}if (Clazz_instanceOf(listener, "java.beans.PropertyChangeListenerProxy")) { +var proxy=listener; +this.addPropertyChangeListener$S$java_beans_PropertyChangeListener(proxy.getPropertyName$(), proxy.getListener$()); +} else { +this.map.add$S$TL(null, listener); +}}); + +Clazz_newMeth(C$, 'removePropertyChangeListener$java_beans_PropertyChangeListener', function (listener) { +if (listener == null ) { +return; +}if (Clazz_instanceOf(listener, "java.beans.PropertyChangeListenerProxy")) { +var proxy=listener; +this.removePropertyChangeListener$S$java_beans_PropertyChangeListener(proxy.getPropertyName$(), proxy.getListener$()); +} else { +this.map.remove$S$TL(null, listener); +}}); + +Clazz_newMeth(C$, 'getPropertyChangeListeners$', function () { +return this.map.getListeners$(); +}); + +Clazz_newMeth(C$, 'addPropertyChangeListener$S$java_beans_PropertyChangeListener', function (propertyName, listener) { +if (listener == null || propertyName == null ) { +return; +}listener=this.map.extract$TL(listener); +if (listener != null ) { +this.map.add$S$TL(propertyName, listener); +}}); + +Clazz_newMeth(C$, 'removePropertyChangeListener$S$java_beans_PropertyChangeListener', function (propertyName, listener) { +if (listener == null || propertyName == null ) { +return; +}listener=this.map.extract$TL(listener); +if (listener != null ) { +this.map.remove$S$TL(propertyName, listener); +}}); + +Clazz_newMeth(C$, 'getPropertyChangeListeners$S', function (propertyName) { +return this.map.getListeners$S(propertyName); +}); + +Clazz_newMeth(C$, 'firePropertyChange$S$O$O', function (propertyName, oldValue, newValue) { +if (oldValue != null && newValue != null && oldValue.equals$O(newValue) ) { +return; +}this.firePropertyChange$java_beans_PropertyChangeEvent(Clazz_new_($I$(4).c$$O$S$O$O,[this.source, propertyName, oldValue, newValue])); +}); + +Clazz_newMeth(C$, 'firePropertyChange$S$I$I', function (propertyName, oldValue, newValue) { +if (oldValue == newValue) { +return; +}this.firePropertyChange$S$O$O(propertyName, Integer.valueOf$I(oldValue), Integer.valueOf$I(newValue)); +}); + +Clazz_newMeth(C$, 'firePropertyChange$S$Z$Z', function (propertyName, oldValue, newValue) { +if (oldValue == newValue ) { +return; +}this.firePropertyChange$S$O$O(propertyName, $I$(5).valueOf$Z(oldValue), $I$(5).valueOf$Z(newValue)); +}); + +Clazz_newMeth(C$, 'firePropertyChange$java_beans_PropertyChangeEvent', function (evt) { +var oldValue=evt.getOldValue$(); +var newValue=evt.getNewValue$(); +var propertyName=evt.getPropertyName$(); +if (oldValue != null && newValue != null && oldValue.equals$O(newValue) ) { +return; +}var common=this.map.get$S(null); +var named=(propertyName != null ) ? this.map.get$S(propertyName) : null; +p$1.fire$java_beans_PropertyChangeListenerA$java_beans_PropertyChangeEvent.apply(this, [common, evt]); +p$1.fire$java_beans_PropertyChangeListenerA$java_beans_PropertyChangeEvent.apply(this, [named, evt]); +}); + +Clazz_newMeth(C$, 'fire$java_beans_PropertyChangeListenerA$java_beans_PropertyChangeEvent', function (listeners, event) { +if (listeners != null ) { +for (var i=0, n=listeners.length; i < n; i++) listeners[i].propertyChange$(event); + +}}, p$1); + +Clazz_newMeth(C$, 'fireIndexedPropertyChange$S$I$O$O', function (propertyName, index, oldValue, newValue) { +this.firePropertyChange$java_beans_PropertyChangeEvent(Clazz_new_($I$(6).c$$O$S$O$O$I,[this.source, propertyName, oldValue, newValue, index])); +}); + +Clazz_newMeth(C$, 'fireIndexedPropertyChange$S$I$I$I', function (propertyName, index, oldValue, newValue) { +if (oldValue == newValue) { +return; +}this.fireIndexedPropertyChange$S$I$O$O(propertyName, index, Integer.valueOf$I(oldValue), Integer.valueOf$I(newValue)); +}); + +Clazz_newMeth(C$, 'fireIndexedPropertyChange$S$I$Z$Z', function (propertyName, index, oldValue, newValue) { +if (oldValue == newValue ) { +return; +}this.fireIndexedPropertyChange$S$I$O$O(propertyName, index, $I$(5).valueOf$Z(oldValue), $I$(5).valueOf$Z(newValue)); +}); + +Clazz_newMeth(C$, 'hasListeners$S', function (propertyName) { +return this.map.hasListeners$S(propertyName); +}); +; +(function(){var C$=Clazz_newClass(P$.PropertyChangeSupport, "PropertyChangeListenerMap", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'java.beans.ChangeListenerMap'); +C$.EMPTY=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.EMPTY=Clazz_array($I$(1), -1, []); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'newArray$I', function (length) { +return (0 < length) ? Clazz_array($I$(1), [length]) : C$.EMPTY; +}); + +Clazz_newMeth(C$, ['newProxy$S$java_beans_PropertyChangeListener','newProxy$S$TL'], function (name, listener) { +return Clazz_new_($I$(2).c$$S$java_beans_PropertyChangeListener,[name, listener]); +}); + +Clazz_newMeth(C$); +})() + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:25 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=java.lang,p$1={},I$=[[0,'org.apache.harmony.luni.util.Msg']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "AbstractStringBuilder"); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.value=null; +this.count=0; +this.shared=false; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'getValue$', function () { +return this.value; +}); + +Clazz_newMeth(C$, 'shareValue$', function () { +this.shared=true; +return this.value; +}); + +Clazz_newMeth(C$, 'set$CA$I', function (val, len) { +if (val == null ) val=Clazz_array(Character.TYPE, [0]); +if (val.length < len) throw Clazz_new_(Clazz_load('java.io.InvalidObjectException').c$$S,[$I$(1).getString$S("K0199")]); +this.shared=false; +this.value=val; +this.count=len; +}); + +Clazz_newMeth(C$, 'c$', function () { +C$.$init$.apply(this); +this.value=Clazz_array(Character.TYPE, [16]); +}, 1); + +Clazz_newMeth(C$, 'c$$I', function (capacity) { +C$.$init$.apply(this); +if (capacity < 0) throw Clazz_new_(Clazz_load('NegativeArraySizeException')); +this.value=Clazz_array(Character.TYPE, [capacity]); +}, 1); + +Clazz_newMeth(C$, 'c$$S', function (string) { +C$.$init$.apply(this); +if (string == null ) throw Clazz_new_(Clazz_load('NullPointerException')); +this.count=string.length$(); +this.shared=false; +this.value=Clazz_array(Character.TYPE, [this.count + 16]); +string.getChars$I$I$CA$I(0, this.count, this.value, 0); +}, 1); + +Clazz_newMeth(C$, 'enlargeBuffer$I', function (min) { +var twice=(this.value.length << 1) + 2; +var newData=Clazz_array(Character.TYPE, [min > twice ? min : twice]); +System.arraycopy$O$I$O$I$I(this.value, 0, newData, 0, this.count); +this.value=newData; +this.shared=false; +}, p$1); + +Clazz_newMeth(C$, 'appendNull$', function () { +var newSize=this.count + 4; +if (newSize > this.value.length) { +p$1.enlargeBuffer$I.apply(this, [newSize]); +} else if (this.shared) { +this.value=this.value.clone$(); +this.shared=false; +}this.value[this.count++]="n"; +this.value[this.count++]="u"; +this.value[this.count++]="l"; +this.value[this.count++]="l"; +}); + +Clazz_newMeth(C$, 'append0$CA', function (chars) { +var newSize=this.count + chars.length; +if (newSize > this.value.length) { +p$1.enlargeBuffer$I.apply(this, [newSize]); +} else if (this.shared) { +this.value=this.value.clone$(); +this.shared=false; +}System.arraycopy$O$I$O$I$I(chars, 0, this.value, this.count, chars.length); +this.count=newSize; +}); + +Clazz_newMeth(C$, 'append0$CA$I$I', function (chars, start, length) { +if (chars == null ) { +throw Clazz_new_(Clazz_load('NullPointerException')); +}if (start >= 0 && 0 <= length && length <= chars.length - start ) { +var newSize=this.count + length; +if (newSize > this.value.length) { +p$1.enlargeBuffer$I.apply(this, [newSize]); +} else if (this.shared) { +this.value=this.value.clone$(); +this.shared=false; +}System.arraycopy$O$I$O$I$I(chars, start, this.value, this.count, length); +this.count=newSize; +} else { +throw Clazz_new_(Clazz_load('ArrayIndexOutOfBoundsException')); +}}); + +Clazz_newMeth(C$, 'append0$C', function (ch) { +if (this.count == this.value.length) { +p$1.enlargeBuffer$I.apply(this, [this.count + 1]); +}if (this.shared) { +this.value=this.value.clone$(); +this.shared=false; +}this.value[this.count++]=ch; +}); + +Clazz_newMeth(C$, 'append0$S', function (string) { +if (string == null ) { +this.appendNull$(); +return; +}var adding=string.length$(); +var newSize=this.count + adding; +if (newSize > this.value.length) { +p$1.enlargeBuffer$I.apply(this, [newSize]); +} else if (this.shared) { +this.value=this.value.clone$(); +this.shared=false; +}string.getChars$I$I$CA$I(0, adding, this.value, this.count); +this.count=newSize; +}); + +Clazz_newMeth(C$, 'append0$CharSequence$I$I', function (s, start, end) { +if (s == null ) s="null"; +if (start < 0 || end < 0 || start > end || end > s.length$() ) throw Clazz_new_(Clazz_load('IndexOutOfBoundsException')); +this.append0$S(s.subSequence$I$I(start, end).toString()); +}); + +Clazz_newMeth(C$, 'capacity$', function () { +return this.value.length; +}); + +Clazz_newMeth(C$, 'charAt$I', function (index) { +if (index < 0 || index >= this.count ) throw Clazz_new_(Clazz_load('StringIndexOutOfBoundsException').c$$I,[index]); +return this.value[index]; +}); + +Clazz_newMeth(C$, 'delete0$I$I', function (start, end) { +if (start >= 0) { +if (end > this.count) { +end=this.count; +}if (end == start) { +return; +}if (end > start) { +var length=this.count - end; +if (length > 0) { +if (!this.shared) { +System.arraycopy$O$I$O$I$I(this.value, end, this.value, start, length); +} else { +var newData=Clazz_array(Character.TYPE, [this.value.length]); +System.arraycopy$O$I$O$I$I(this.value, 0, newData, 0, start); +System.arraycopy$O$I$O$I$I(this.value, end, newData, start, length); +this.value=newData; +this.shared=false; +}}this.count-=end - start; +return; +}}throw Clazz_new_(Clazz_load('StringIndexOutOfBoundsException')); +}); + +Clazz_newMeth(C$, 'deleteCharAt0$I', function (location) { +if (0 > location || location >= this.count ) throw Clazz_new_(Clazz_load('StringIndexOutOfBoundsException').c$$I,[location]); +var length=this.count - location - 1 ; +if (length > 0) { +if (!this.shared) { +System.arraycopy$O$I$O$I$I(this.value, location + 1, this.value, location, length); +} else { +var newData=Clazz_array(Character.TYPE, [this.value.length]); +System.arraycopy$O$I$O$I$I(this.value, 0, newData, 0, location); +System.arraycopy$O$I$O$I$I(this.value, location + 1, newData, location, length); +this.value=newData; +this.shared=false; +}}this.count--; +}); + +Clazz_newMeth(C$, 'ensureCapacity$I', function (min) { +if (min > this.value.length) { +p$1.enlargeBuffer$I.apply(this, [min]); +}}); + +Clazz_newMeth(C$, 'getChars$I$I$CA$I', function (start, end, dest, destStart) { +if (start > this.count || end > this.count || start > end ) { +throw Clazz_new_(Clazz_load('StringIndexOutOfBoundsException')); +}System.arraycopy$O$I$O$I$I(this.value, start, dest, destStart, end - start); +}); + +Clazz_newMeth(C$, 'insert0$I$CA', function (index, chars) { +if (0 > index || index > this.count ) { +throw Clazz_new_(Clazz_load('StringIndexOutOfBoundsException').c$$I,[index]); +}if (chars.length != 0) { +p$1.move$I$I.apply(this, [chars.length, index]); +System.arraycopy$O$I$O$I$I(chars, 0, this.value, index, chars.length); +this.count+=chars.length; +}}); + +Clazz_newMeth(C$, 'insert0$I$CA$I$I', function (index, chars, start, length) { +if (0 <= index && index <= this.count ) { +if (start >= 0 && 0 <= length && length <= chars.length - start ) { +if (length != 0) { +p$1.move$I$I.apply(this, [length, index]); +System.arraycopy$O$I$O$I$I(chars, start, this.value, index, length); +this.count+=length; +}return; +}throw Clazz_new_(Clazz_load('StringIndexOutOfBoundsException').c$$S,["offset " + start + ", len " + length + ", array.length " + chars.length ]); +}throw Clazz_new_(Clazz_load('StringIndexOutOfBoundsException').c$$I,[index]); +}); + +Clazz_newMeth(C$, 'insert0$I$C', function (index, ch) { +if (0 > index || index > this.count ) { +throw Clazz_new_(Clazz_load('ArrayIndexOutOfBoundsException').c$$I,[index]); +}p$1.move$I$I.apply(this, [1, index]); +this.value[index]=ch; +this.count++; +}); + +Clazz_newMeth(C$, 'insert0$I$S', function (index, string) { +if (0 <= index && index <= this.count ) { +if (string == null ) string="null"; +var min=string.length$(); +if (min != 0) { +p$1.move$I$I.apply(this, [min, index]); +string.getChars$I$I$CA$I(0, min, this.value, index); +this.count+=min; +}} else { +throw Clazz_new_(Clazz_load('StringIndexOutOfBoundsException').c$$I,[index]); +}}); + +Clazz_newMeth(C$, 'insert0$I$CharSequence$I$I', function (index, s, start, end) { +if (s == null ) s="null"; +if (index < 0 || index > this.count || start < 0 || end < 0 || start > end || end > s.length$() ) throw Clazz_new_(Clazz_load('IndexOutOfBoundsException')); +this.insert0$I$S(index, s.subSequence$I$I(start, end).toString()); +}); + +Clazz_newMeth(C$, 'length$', function () { +return this.count; +}); + +Clazz_newMeth(C$, 'move$I$I', function (size, index) { +var newSize; +if (this.value.length - this.count >= size) { +if (!this.shared) { +System.arraycopy$O$I$O$I$I(this.value, index, this.value, index + size, this.count - index); +return; +}newSize=this.value.length; +} else { +var a=this.count + size; +var b=(this.value.length << 1) + 2; +newSize=a > b ? a : b; +}var newData=Clazz_array(Character.TYPE, [newSize]); +System.arraycopy$O$I$O$I$I(this.value, 0, newData, 0, index); +System.arraycopy$O$I$O$I$I(this.value, index, newData, index + size, this.count - index); +this.value=newData; +this.shared=false; +}, p$1); + +Clazz_newMeth(C$, 'replace0$I$I$S', function (start, end, string) { +if (start >= 0) { +if (end > this.count) end=this.count; +if (end > start) { +var stringLength=string.length$(); +var diff=end - start - stringLength ; +if (diff > 0) { +if (!this.shared) { +System.arraycopy$O$I$O$I$I(this.value, end, this.value, start + stringLength, this.count - end); +} else { +var newData=Clazz_array(Character.TYPE, [this.value.length]); +System.arraycopy$O$I$O$I$I(this.value, 0, newData, 0, start); +System.arraycopy$O$I$O$I$I(this.value, end, newData, start + stringLength, this.count - end); +this.value=newData; +this.shared=false; +}} else if (diff < 0) { +p$1.move$I$I.apply(this, [-diff, end]); +} else if (this.shared) { +this.value=this.value.clone$(); +this.shared=false; +}string.getChars$I$I$CA$I(0, stringLength, this.value, start); +this.count-=diff; +return; +}if (start == end) { +if (string == null ) throw Clazz_new_(Clazz_load('NullPointerException')); +this.insert0$I$S(start, string); +return; +}}throw Clazz_new_(Clazz_load('StringIndexOutOfBoundsException')); +}); + +Clazz_newMeth(C$, 'reverse0$', function () { +if (this.count < 2) { +return; +}if (!this.shared) { +for (var i=0, end=this.count, mid=(this.count/2|0); i < mid; i++) { +var temp=this.value[--end]; +this.value[end]=this.value[i]; +this.value[i]=temp; +} +} else { +var newData=Clazz_array(Character.TYPE, [this.value.length]); +for (var i=0, end=this.count; i < this.count; i++) { +newData[--end]=this.value[i]; +} +this.value=newData; +this.shared=false; +}}); + +Clazz_newMeth(C$, 'setCharAt$I$C', function (index, ch) { +if (0 > index || index >= this.count ) { +throw Clazz_new_(Clazz_load('StringIndexOutOfBoundsException').c$$I,[index]); +}if (this.shared) { +this.value=this.value.clone$(); +this.shared=false; +}this.value[index]=ch; +}); + +Clazz_newMeth(C$, 'setLength$I', function (length) { +if (length < 0) throw Clazz_new_(Clazz_load('StringIndexOutOfBoundsException').c$$I,[length]); +if (this.count < length) { +if (length > this.value.length) { +p$1.enlargeBuffer$I.apply(this, [length]); +} else { +if (this.shared) { +var newData=Clazz_array(Character.TYPE, [this.value.length]); +System.arraycopy$O$I$O$I$I(this.value, 0, newData, 0, this.count); +this.value=newData; +this.shared=false; +} else { +for (var i=this.count; i < length; i++) { +this.value[i]=String.fromCharCode(0); +} +}}}this.count=length; +}); + +Clazz_newMeth(C$, 'substring$I', function (start) { +if (0 <= start && start <= this.count ) { +if (start == this.count) return ""; +this.shared=true; +return String.instantialize(this.value, start, this.count - start); +}throw Clazz_new_(Clazz_load('StringIndexOutOfBoundsException').c$$I,[start]); +}); + +Clazz_newMeth(C$, 'substring$I$I', function (start, end) { +if (0 <= start && start <= end && end <= this.count ) { +if (start == end) return ""; +this.shared=true; +return String.instantialize(this.value, start, end - start); +}throw Clazz_new_(Clazz_load('StringIndexOutOfBoundsException')); +}); + +Clazz_newMeth(C$, 'toString', function () { +if (this.count == 0) return ""; +if (this.count >= 256 && this.count <= (this.value.length >> 1) ) return String.instantialize(this.value, 0, this.count); +this.shared=true; +return String.instantialize(this.value, 0, this.count); +}); + +Clazz_newMeth(C$, 'subSequence$I$I', function (start, end) { +return this.substring$I$I(start, end); +}); + +Clazz_newMeth(C$, 'indexOf$S', function (string) { +return this.indexOf$S$I(string, 0); +}); + +Clazz_newMeth(C$, 'indexOf$S$I', function (subString, start) { +if (start < 0) start=0; +var subCount=subString.length$(); +if (subCount > 0) { +if (subCount + start > this.count) return -1; +var firstChar=subString.charAt$I(0); +while (true){ +var i=start; +var found=false; +for (; i < this.count; i++) if (this.value[i] == firstChar) { +found=true; +break; +} +if (!found || subCount + i > this.count ) return -1; +var o1=i; +var o2=0; +while (++o2 < subCount && this.value[++o1] == subString.charAt$I(o2) ){ +} +if (o2 == subCount) return i; +start=i + 1; +} +}return (start < this.count || start == 0 ) ? start : this.count; +}); + +Clazz_newMeth(C$, 'lastIndexOf$S', function (string) { +return this.lastIndexOf$S$I(string, this.count); +}); + +Clazz_newMeth(C$, 'lastIndexOf$S$I', function (subString, start) { +var subCount=subString.length$(); +if (subCount <= this.count && start >= 0 ) { +if (subCount > 0) { +if (start > this.count - subCount) start=this.count - subCount; +var firstChar=subString.charAt$I(0); +while (true){ +var i=start; +var found=false; +for (; i >= 0; --i) if (this.value[i] == firstChar) { +found=true; +break; +} +if (!found) return -1; +var o1=i; +var o2=0; +while (++o2 < subCount && this.value[++o1] == subString.charAt$I(o2) ){ +} +if (o2 == subCount) return i; +start=i - 1; +} +}return start < this.count ? start : this.count; +}return -1; +}); + +Clazz_newMeth(C$, 'trimToSize$', function () { +if (this.count < this.value.length) { +var newValue=Clazz_array(Character.TYPE, [this.count]); +System.arraycopy$O$I$O$I$I(this.value, 0, newValue, 0, this.count); +this.value=newValue; +this.shared=false; +}}); + +Clazz_newMeth(C$, 'codePointAt$I', function (index) { +if (index < 0 || index >= this.count ) throw Clazz_new_(Clazz_load('StringIndexOutOfBoundsException').c$$I,[index]); +return Character.codePointAt$CA$I$I(this.value, index, this.count); +}); + +Clazz_newMeth(C$, 'codePointBefore$I', function (index) { +if (index < 1 || index > this.count ) throw Clazz_new_(Clazz_load('StringIndexOutOfBoundsException').c$$I,[index]); +return Character.codePointBefore$CA$I(this.value, index); +}); + +Clazz_newMeth(C$, 'codePointCount$I$I', function (beginIndex, endIndex) { +if (beginIndex < 0 || endIndex > this.count || beginIndex > endIndex ) throw Clazz_new_(Clazz_load('StringIndexOutOfBoundsException')); +return Character.codePointCount$CA$I$I(this.value, beginIndex, endIndex - beginIndex); +}); + +Clazz_newMeth(C$, 'offsetByCodePoints$I$I', function (index, codePointOffset) { +return Character.offsetByCodePoints$CA$I$I$I$I(this.value, 0, this.count, index, codePointOffset); +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:27 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=java.lang,p$1={},I$=[[0,'java.lang.reflect.Method','java.util.Arrays','java.lang.reflect.TypeVariable','swingjs.JSUtil','java.lang.reflect.Field','java.lang.reflect.Constructor','Boolean','Void','java.util.HashMap']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "Class", function(){ +Clazz_newInstance(this, arguments,0,C$); +}, null, ['java.io.Serializable', 'java.lang.reflect.GenericDeclaration']); +C$.initted=false; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.initted=false; +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.$clazz$=null; +this.$methodList$=null; +this.name=null; +this.fields=null; +this.classRedefinedCount=0; +this.lastRedefinedCount=0; +this.enumConstants=null; +this.enumConstantDirectory=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.classRedefinedCount=0; +this.lastRedefinedCount=0; +this.enumConstants=null; +this.enumConstantDirectory=null; +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'toString', function () { +return (this.isInterface$() ? "interface " : (this.isPrimitive$() ? "" : "class ")) + this.getName$(); +}); + +Clazz_newMeth(C$, 'forName$S', function (className) { +return C$.forName0$S$Z$ClassLoader(className, true, null); +}, 1); + +Clazz_newMeth(C$, 'forName$S$Z$ClassLoader', function (name, initialize, loader) { +return C$.forName0$S$Z$ClassLoader(name, initialize, loader); +}, 1); + +Clazz_newMeth(C$, 'forName0$S$Z$ClassLoader', function (name, initialize, loader) { +{ +return Clazz_forName(name, initialize, loader); +} +}, 1); + +Clazz_newMeth(C$, 'newInstance$', function () { +{ +return new this.$clazz$; +} +}); + +Clazz_newMeth(C$, 'isInstance$O', function (obj) { +{ +return Clazz_instanceOf(obj, this.$clazz$); +} +}); + +Clazz_newMeth(C$, 'isAssignableFrom$Class', function (cls) { +{ +return(Clazz_instanceOf(cls.$clazz$, this.$clazz$)); +} +}); + +Clazz_newMeth(C$, 'isInterface$', function () { +{ +return this.$clazz$.$isInterface; +} +}); + +Clazz_newMeth(C$, 'isArray$', function () { +{ +return !!this.$clazz$.__ARRAYTYPE; +} +}); + +Clazz_newMeth(C$, 'isPrimitive$', function () { +{ +return !!this.__PRIMITIVE; +} +}); + +Clazz_newMeth(C$, 'isAnnotation$', function () { +return (this.getModifiers$() & 8192) != 0; +}); + +Clazz_newMeth(C$, 'isSynthetic$', function () { +return (this.getModifiers$() & 4096) != 0; +}); + +Clazz_newMeth(C$, 'getName$', function () { +if (this.name == null ) this.name=p$1.getName0.apply(this, []); +return this.name; +}); + +Clazz_newMeth(C$, 'getName0', function () { +var code=""; + +code = this.$clazz$.__CLASS_NAME$__ || this.$clazz$.__CLASS_NAME__; +if (code) return code; +code = this.$clazz$.__PARAMCODE; +switch (code) { +case "S": +code="String"; +break; +case "I": +code="Integer"; +break; +case "H": +code="Short"; +break; +case "B": +code="Byte"; +break; +case "L": +code="Long"; +break; +case "C": +code="Character"; +break; +default: +return null; +} +return "java.lang." + code; +}, p$1); + +Clazz_newMeth(C$, 'getClassLoader$', function () { +var cl=this.getClassLoader0$(); + +cl.baseClass = this; +return cl; +}); + +Clazz_newMeth(C$, 'getClassLoader0$', function () { +var loader=null; +{ +var baseFolder = Clazz._Loader.getJ2SLibBase(); +loader = Clazz._Loader.requireLoaderByBase(baseFolder); +var me = this; +loader.getResourceAsStream$S = function(s) { return me.getResourceAsStream$S(s.indexOf("/") == 0 ? s : "/" + s) }; +loader.getResource$S = function(s) { return me.getResource$S(s.indexOf("/") == 0 ? s : "/" + s) }; +} +return loader; +}); + +Clazz_newMeth(C$, 'getTypeParameters$', function () { +return Clazz_array($I$(3), [0]); +}); + +Clazz_newMeth(C$, 'getSuperclass$', function () { +{ +if (this.$clazz$ == java.lang.Object) return null; +return Clazz_getClass(this.$clazz$.superclazz || java.lang.Object); +} +}); + +Clazz_newMeth(C$, 'getInterfaces$', function () { +$I$(4).notImplemented$S(null); +return Clazz_array(Class, [0]); +}); + +Clazz_newMeth(C$, 'getComponentType$', function () { +return null; +}); + +Clazz_newMeth(C$, 'getModifiers$', function () { +return 1 | (this.isEnum$() ? 16384 : this.isInterface$() ? 512 : 0); +}); + +Clazz_newMeth(C$, 'getSigners$', function () { +$I$(4).notImplemented$S(null); +return Clazz_array(java.lang.Object, [0]); +}); + +Clazz_newMeth(C$, 'setSigners$OA', function (signers) { +$I$(4).notImplemented$S(null); +}); + +Clazz_newMeth(C$, 'getDeclaringClass$', function () { +$I$(4).notImplemented$S(null); +return null; +}); + +Clazz_newMeth(C$, 'getSimpleName$', function () { +if (this.isArray$()) return this.getComponentType$().getSimpleName$() + "[]"; +var name=""; +{ +name = (this.$clazz$.__ANON ? "" : this.$clazz$.__CLASS_NAME__); +} +return name.substring$I(name.lastIndexOf$S(".") + 1); +}); + +Clazz_newMeth(C$, 'getCanonicalName$', function () { +if (this.isArray$()) { +var canonicalName=this.getComponentType$().getCanonicalName$(); +if (canonicalName != null ) return canonicalName + "[]"; + else return null; +}if (p$1.isLocalOrAnonymousClass.apply(this, [])) return null; +var name=null; + +name = this.$clazz$.__CLASS_NAME__ || null; +return name; +}); + +Clazz_newMeth(C$, 'isAnonymousClass$', function () { +return "".equals$O(this.getSimpleName$()); +}); + +Clazz_newMeth(C$, 'isLocalClass$', function () { +{ +return !!this.$clazz$.__LOCAL; +} +}); + +Clazz_newMeth(C$, 'isLocalOrAnonymousClass', function () { +{ +return !!this.$clazz$.__ISANON || !!this.$clazz$.__LOCAL; +} +}, p$1); + +Clazz_newMeth(C$, 'getClasses$', function () { +return null; +}); + +Clazz_newMeth(C$, 'getFields$', function () { +if (this.fields != null ) return this.fields; +this.fields=Clazz_array($I$(5), [0]); +var _static=8; +var cl=this.$clazz$ ||null; +var proto=cl.prototype ||null; +p$1.addFields$O$reflect_FieldA$I.apply(this, [proto, this.fields, 0]); +p$1.addFields$O$reflect_FieldA$I.apply(this, [cl, this.fields, _static]); +return this.fields; +}); + +Clazz_newMeth(C$, 'getMethods$', function () { +return (p$1.privateGetPublicMethods.apply(this, [])); +}); + +Clazz_newMeth(C$, 'getConstructors$', function () { +return null; +}); + +Clazz_newMeth(C$, 'getField$S', function (name) { +this.getFields$(); +for (var i=this.fields.length; --i >= 0; ) { +if (this.fields[i].jsName == name) return this.fields[i]; +} +throw Clazz_new_(Clazz_load('NoSuchFieldException').c$$S,["field " + name]); +}); + +Clazz_newMeth(C$, 'addFields$O$reflect_FieldA$I', function (c, f, modifiers) { +var m=null; +for (m in c) { if (!modifiers && this.$clazz$[m]) continue; +if (this.excludeField$S(m)) continue; +var o = c[m]; +switch (typeof o) { case "object": if (o && o.__CLASS_NAME__) continue; +case "number": case "boolean": case "string":p$1.addField$reflect_FieldA$S$I.apply(this, [f, m, modifiers]); + +break; +} } +}, p$1); + +Clazz_newMeth(C$, 'excludeField$S', function (name) { +return (name == "prototype" || name.startsWith$S("__") ); +}); + +Clazz_newMeth(C$, 'addField$reflect_FieldA$S$I', function (fields, m, modifiers) { +var f=Clazz_new_($I$(5).c$$Class$S$I,[this, m, modifiers]); + +fields.push(f); +}, p$1); + +Clazz_newMeth(C$, 'getMethod$S$ClassA', function (name, paramTypes) { +var m=Clazz_new_($I$(1).c$$Class$S$ClassA$Class$ClassA$I,[this, name, paramTypes, null, null, 0]); +if (!this.isInterface$()) { +var o=null; +var qname=name + C$.argumentTypesToString$ClassA(paramTypes); + +o = this.$clazz$; +o = o[qname] || o.prototype && o.prototype[qname]; +if (o == null ) throw Clazz_new_(Clazz_load('NoSuchMethodException').c$$S,[this.getName$() + "." + qname ]); +}return m; +}); + +Clazz_newMeth(C$, 'getConstructor$ClassA', function (parameterTypes) { +var x=parameterTypes; +if (parameterTypes == null ) parameterTypes=Clazz_array(Class, [0]); +return Clazz_new_($I$(6).c$$Class$ClassA$ClassA$I,[this, parameterTypes, Clazz_array(Class, [0]), 0]); +}); + +Clazz_newMeth(C$, 'getDeclaredClasses$', function () { +return this.getClasses$(); +}); + +Clazz_newMeth(C$, 'getDeclaredFields$', function () { +return this.getFields$(); +}); + +Clazz_newMeth(C$, 'getDeclaredMethods$', function () { +return this.getMethods$(); +}); + +Clazz_newMeth(C$, 'getDeclaredConstructors$', function () { +return this.getConstructors$(); +}); + +Clazz_newMeth(C$, 'getDeclaredField$S', function (name) { +return this.getField$S(name); +}); + +Clazz_newMeth(C$, 'getDeclaredMethod$S$ClassA', function (name, parameterTypes) { +return this.getMethod$S$ClassA(name, parameterTypes); +}); + +Clazz_newMeth(C$, 'getDeclaredConstructor$ClassA', function (parameterTypes) { +return this.getConstructor$ClassA(parameterTypes); +}); + +Clazz_newMeth(C$, 'getResourceAsStream$S', function (name) { +var clazzName=this.$clazz$.__CLASS_NAME$__ || this.$clazz$.__CLASS_NAME__ ||""; +var data=null; +var fname=null; + +if (!name) return null; +name = name.replace (/\\/g, '/'); +var baseFolder = null; +fname = name; +if (arguments.length == 2 && name.indexOf ('/') != 0) { // additional argument +name = "/" + name; +} if (name.indexOf ('/') == 0) { if (arguments.length == 2) // additional argument +baseFolder = arguments[1]; +if (!baseFolder) baseFolder = Clazz._Loader.getJ2SLibBase(); +if (baseFolder.charAt(baseFolder.length - 1) != '/') baseFolder += "/"; +fname = baseFolder + name.substring (1); +} else { baseFolder = Clazz._Loader.getJ2SLibBase(); // getClass().getClassLoader() uses full path +fname = baseFolder; +if (this.$_$base == null) { // getClass().getResource() will be here +var pkgs = clazzName.split("."); +var fname = baseFolder; +if (fname.charAt(fname.length - 1) != '/') fname += "/"; +var map = Clazz._allPackage; +for (var i = 0; i < pkgs.length - 1; i++) { if (!(map = map[pkgs[i]])) break; +fname += pkgs[i] + "/"; +} } fname += name; +} var url = null; +var javapath = fname; +try { if (fname.indexOf(":/") < 0) { var d = document.location.href.split("?")[0].split("/"); +d[d.length - 1] = fname; +fname = d.join("/"); +} Clazz_load("java.net.URL"); +url = Clazz_new_(java.net.URL.c$$S,[fname]); +} catch (e) { return null; +} var fileCache = J2S.getSetJavaFileCache(null); +data = fileCache && fileCache.get$O(javapath); +if (data == null ) data=$I$(4).J2S.getFileData(fname.toString(), null, true, true); +{ +if (data == null || data == "error" || data.indexOf && data.indexOf("[Exception") == 0) return null; +var bytes = (data.__BYTESIZE == 1 ? data : J2S._strToBytes(data)); +Clazz_load("java.io.BufferedInputStream"); +Clazz_load("java.io.ByteArrayInputStream"); +var is = Clazz_new_(java.io.BufferedInputStream.c$$java_io_InputStream, [Clazz_new_(java.io.ByteArrayInputStream.c$$BA, [bytes])]); +is.url = url; +url._streamData = is; +return is; +} +}); + +Clazz_newMeth(C$, 'getResource$S', function (name) { +{ +var stream = this.getResourceAsStream$S(name); +return(stream ? stream.url : null); +} +}); + +Clazz_newMeth(C$, 'getPrimitiveClass$S', function (name) { +switch (name) { +case "boolean": +return $I$(7).TYPE; +case "byte": +return Byte.TYPE; +case "char": +return Character.TYPE; +case "short": +return Short.TYPE; +case "int": +return Integer.TYPE; +case "long": +return Long.TYPE; +case "float": +return Float.TYPE; +case "double": +return Double.TYPE; +default: +return null; +} +}, 1); + +Clazz_newMeth(C$, 'privateGetPublicMethods', function () { +var ms; +if (this.$methodList$ != null ) { +ms=Clazz_array($I$(1), [this.$methodList$.length]); +for (var i=ms.length; --i >= 0; ) { +ms[i]=Clazz_new_($I$(1).c$$Class$S$ClassA$Class$ClassA$I,[this, this.$methodList$[i], null, Clazz_getClass($I$(8)), null, 1]); +} +return ms; +}ms=Clazz_array($I$(1), [0]); +{ +var p = this.$clazz$.prototype; +for (var attr in p) { if (typeof p[attr] == "function" && !p[attr].__CLASS_NAME__ && p[attr] != this.$clazz$[attr] && p[attr].exClazz == this.$clazz$) { // there are polynormical methods. +ms.push(Clazz_new_(Clazz_load('java.lang.reflect.Method').c$$Class$S$ClassA$Class$ClassA$I, [this, attr, [], java.lang.Void, [], 1])); +} } p = this.$clazz$; +for (var attr in p) { if (typeof p[attr] == "function" && !p[attr].__CLASS_NAME__ && p[attr].exClazz == this.$clazz$) { ms.push(Clazz_new_(Clazz_load('java.lang.reflect.Method').c$$Class$S$ClassA$Class$ClassA$I, [this, attr, [], java.lang.Void, [], 1 | 8])); +} } +} +return ms; +}, p$1); + +Clazz_newMeth(C$, 'arrayContentsEq$OA$OA', function (a1, a2) { +if (a1 == null ) { +return a2 == null || a2.length == 0 ; +}if (a2 == null ) { +return a1.length == 0; +}if (a1.length != a2.length) { +return false; +}for (var i=0; i < a1.length; i++) { +if (a1[i] !== a2[i] ) { +return false; +}} +return true; +}, 1); + +Clazz_newMeth(C$, 'argumentTypesToString$ClassA', function (parameterTypes) { +if (parameterTypes == null ) return "$"; +var s=""; +for (var i=0; i < parameterTypes.length; i++) s += "$" + (Clazz._getParamCode(parameterTypes[i]) ||null); + +return s; +}, 1); + +Clazz_newMeth(C$, 'isEnum$', function () { +{ +return this.$clazz$.$isEnum; +} +}); + +Clazz_newMeth(C$, 'getEnumConstants$', function () { +return this.getEnumConstantsShared$(); +}); + +Clazz_newMeth(C$, 'getEnumConstantsShared$', function () { +if (this.enumConstants == null ) { +if (this.isEnum$()) this.enumConstants=this.$clazz$.values$() ||null; +}return this.enumConstants; +}); + +Clazz_newMeth(C$, 'enumConstantDirectory$', function () { +if (this.enumConstantDirectory == null ) { +var universe=this.getEnumConstantsShared$(); +if (universe == null ) throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,[this.getName$() + " is not an enum type"]); +var m=Clazz_new_($I$(9).c$$I,[2 * universe.length]); +for (var constant, $constant = 0, $$constant = universe; $constant<$$constant.length&&((constant=($$constant[$constant])),1);$constant++) m.put$TK$TV((constant).name$(), constant); + +this.enumConstantDirectory=m; +}return this.enumConstantDirectory; +}); + +Clazz_newMeth(C$, 'cast$O', function (obj) { +if (obj != null && !this.isInstance$O(obj) ) throw Clazz_new_(Clazz_load('ClassCastException').c$$S,[p$1.cannotCastMsg$O.apply(this, [obj])]); +return obj; +}); + +Clazz_newMeth(C$, 'cannotCastMsg$O', function (obj) { +return "Cannot cast " + obj.getClass$().getName$() + " to " + this.getName$() ; +}, p$1); + +Clazz_newMeth(C$, 'hashCode$', function () { +var name=null; + +name = this.$clazz$.__CLASS_NAME__ || this.$clazz$.toString(); +return name.hashCode$(); +}); + +Clazz_newMeth(C$, 'equals$O', function (o) { + +return o.__CLASS_NAME__ == "java.lang.Class" && o.$clazz$ == this.$clazz$; +return false; +}); + +Clazz_newMeth(C$, 'getArgumentArray$ClassA$OA$Z', function (types, args, isProxy) { +var a=Clazz_array(java.lang.Object, [args == null ? 0 : args.length]); +if (args != null && (types != null || isProxy ) ) for (var i=args.length; --i >= 0; ) a[i]=(isProxy ? args[i] : (types[i].__PRIMITIVE && args[i].valueOf ? args[i].valueOf() : args[i]) ||null); + +return a; +}, 1); + +Clazz_newMeth(C$, 'getPackage$', function () { +return null; +}); + +Clazz_newMeth(C$, 'getAnnotation$Class', function (c) { +return null; +}); + +Clazz_newMeth(C$, 'getJ2SSuperclassFor$Class', function (cl) { +var c=null; +{ +c = cl.getSuperclass$ && cl.getSuperclass$(); +} +if (c == null && cl !== Clazz_getClass(java.lang.Object) ) { +c=Clazz_getClass(java.lang.Object); +}return c; +}, 1); +; +(function(){var C$=Clazz_newClass(P$.Class, "JSClass", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.__CLASS_NAME__=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.Class, "MethodArray", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.methods=null; +this.length=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.$init$.apply(this); +this.methods=Clazz_array($I$(1), [20]); +this.length=0; +}, 1); + +Clazz_newMeth(C$, 'add$reflect_Method', function (m) { +if (this.length == this.methods.length) { +this.methods=$I$(2).copyOf$TTA$I(this.methods, 2 * this.methods.length); +}this.methods[this.length++]=m; +}); + +Clazz_newMeth(C$, 'addAll$reflect_MethodA', function (ma) { +for (var i=0; i < ma.length; i++) { +this.add$reflect_Method(ma[i]); +} +}); + +Clazz_newMeth(C$, 'addAll$Class_MethodArray', function (ma) { +for (var i=0; i < ma.length$(); i++) { +this.add$reflect_Method(ma.get$I(i)); +} +}); + +Clazz_newMeth(C$, 'addIfNotPresent$reflect_Method', function (newMethod) { +for (var i=0; i < this.length; i++) { +var m=this.methods[i]; +if (m === newMethod || (m != null && m.equals$O(newMethod) ) ) { +return; +}} +this.add$reflect_Method(newMethod); +}); + +Clazz_newMeth(C$, 'addAllIfNotPresent$Class_MethodArray', function (newMethods) { +for (var i=0; i < newMethods.length$(); i++) { +var m=newMethods.get$I(i); +if (m != null ) { +this.addIfNotPresent$reflect_Method(m); +}} +}); + +Clazz_newMeth(C$, 'length$', function () { +return this.length; +}); + +Clazz_newMeth(C$, 'get$I', function (i) { +return this.methods[i]; +}); + +Clazz_newMeth(C$, 'removeByNameAndSignature$reflect_Method', function (toRemove) { +for (var i=0; i < this.length; i++) { +var m=this.methods[i]; +if (m != null && m.getReturnType$() === toRemove.getReturnType$() && m.getName$() == toRemove.getName$() && Class.arrayContentsEq$OA$OA(m.getParameterTypes$(), toRemove.getParameterTypes$()) ) { +this.methods[i]=null; +}} +}); + +Clazz_newMeth(C$, 'compactAndTrim$', function () { +var newPos=0; +for (var pos=0; pos < this.length; pos++) { +var m=this.methods[pos]; +if (m != null ) { +if (pos != newPos) { +this.methods[newPos]=m; +}newPos++; +}} +if (newPos != this.methods.length) { +this.methods=$I$(2).copyOf$TTA$I(this.methods, newPos); +}}); + +Clazz_newMeth(C$, 'getArray$', function () { +return this.methods; +}); +})() +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:27 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=java.lang,I$=[]; +var C$=Clazz_newClass(P$, "Enum", null, null, ['Comparable', 'java.io.Serializable']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.name=null; +this.ordinal=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'name$', function () { +return this.name; +}); + +Clazz_newMeth(C$, 'ordinal$', function () { +return this.ordinal; +}); + +Clazz_newMeth(C$, 'c$$S$I', function (name, ordinal) { +C$.$init$.apply(this); +this.name=name; +this.ordinal=ordinal; +}, 1); + +Clazz_newMeth(C$, 'toString', function () { +return this.name; +}); + +Clazz_newMeth(C$, 'equals$O', function (other) { +return this === other ; +}); + +Clazz_newMeth(C$, 'hashCode$', function () { +return C$.superclazz.prototype.hashCode$.apply(this, []); +}); + +Clazz_newMeth(C$, 'clone$', function () { +throw Clazz_new_(Clazz_load('CloneNotSupportedException')); +}); + +Clazz_newMeth(C$, ['compareTo$TE','compareTo$','compareTo$TT'], function (o) { +var other=o; +var self=this; +if (self.getClass$() !== other.getClass$() && self.getDeclaringClass$() !== other.getDeclaringClass$() ) throw Clazz_new_(Clazz_load('ClassCastException')); +return self.ordinal - other.ordinal; +}); + +Clazz_newMeth(C$, 'getDeclaringClass$', function () { +var clazz=this.getClass$(); +var zuper=clazz.getSuperclass$(); +return ((zuper === Clazz_getClass(C$) ) ? clazz : zuper); +}); + +Clazz_newMeth(C$, 'valueOf$Class$S', function (enumType, name) { +var result=null; +{ +result = enumType.$clazz$[name]; +} +if (result != null ) return result; +if (name == null ) throw Clazz_new_(Clazz_load('NullPointerException').c$$S,["Name is null"]); +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["No enum const " + enumType + "." + name ]); +}, 1); + +Clazz_newMeth(C$, 'finalize$', function () { +}); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:27 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=java.lang,I$=[[0,'java.util.Objects','java.util.Spliterators']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newInterface(P$, "Iterable"); +C$.$defaults$ = function(C$){ + +Clazz_newMeth(C$, 'forEach$java_util_function_Consumer', function (action) { +$I$(1).requireNonNull$TT(action); +for (var t, $t = this.iterator$(); $t.hasNext$()&&((t=($t.next$())),1);) { +action.accept$(t); +} +}); + +Clazz_newMeth(C$, 'spliterator$', function () { +return $I$(2).spliteratorUnknownSize$java_util_Iterator$I(this.iterator$(), 0); +}); +};})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:27 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=java.lang.reflect,I$=[]; +var C$=Clazz_newClass(P$, "Constructor", null, 'java.lang.reflect.AccessibleObject', ['java.lang.reflect.GenericDeclaration', 'java.lang.reflect.Member']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.Class_=null; +this.parameterTypes=null; +this.exceptionTypes=null; +this.modifiers=0; +this.signature=null; +this.constr=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$Class$ClassA$ClassA$I', function (declaringClass, parameterTypes, checkedExceptions, modifiers) { +Clazz_super_(C$, this,1); +this.Class_=declaringClass; +this.parameterTypes=parameterTypes; +this.exceptionTypes=checkedExceptions; +this.modifiers=modifiers; +this.parameterTypes=parameterTypes; +this.signature="c$" + Class.argumentTypesToString$ClassA(parameterTypes); +this.constr=this.Class_.$clazz$[this.signature] ||null; +}, 1); + +Clazz_newMeth(C$, 'newInstance$OA', function (args) { +if (this.constr != null ) { +var a=Class.getArgumentArray$ClassA$OA$Z(this.parameterTypes, args, false); +var instance=Clazz_new_(this.constr, a) ||null; +if (instance != null ) return instance; +}var message="Constructor " + this.getDeclaringClass$().getName$() + "." + this.signature + " was not found" ; +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,[message]); +}); + +Clazz_newMeth(C$, 'getTypeParameters$', function () { +return null; +}); + +Clazz_newMeth(C$, 'toGenericString$', function () { +return null; +}); + +Clazz_newMeth(C$, 'getGenericParameterTypes$', function () { +return null; +}); + +Clazz_newMeth(C$, 'getGenericExceptionTypes$', function () { +return null; +}); + +Clazz_newMeth(C$, 'getParameterAnnotations$', function () { +return null; +}); + +Clazz_newMeth(C$, 'isVarArgs$', function () { +return false; +}); + +Clazz_newMeth(C$, 'isSynthetic$', function () { +return false; +}); + +Clazz_newMeth(C$, 'equals$O', function (object) { +if (object != null && Clazz_instanceOf(object, "java.lang.reflect.Constructor") ) { +var other=object; +if (this.getDeclaringClass$() === other.getDeclaringClass$() ) { +var params1=this.parameterTypes; +var params2=other.parameterTypes; +if (params1.length == params2.length) { +for (var i=0; i < params1.length; i++) { +if (params1[i] !== params2[i] ) return false; +} +return true; +}}}return false; +}); + +Clazz_newMeth(C$, 'getDeclaringClass$', function () { +return this.Class_; +}); + +Clazz_newMeth(C$, 'getExceptionTypes$', function () { +return this.exceptionTypes; +}); + +Clazz_newMeth(C$, 'getModifiers$', function () { +return this.modifiers; +}); + +Clazz_newMeth(C$, 'getName$', function () { +return this.getDeclaringClass$().getName$(); +}); + +Clazz_newMeth(C$, 'getParameterTypes$', function () { +return this.parameterTypes; +}); + +Clazz_newMeth(C$, 'hashCode$', function () { +return this.getDeclaringClass$().getName$().hashCode$(); +}); + +Clazz_newMeth(C$, 'toString', function () { +return this.Class_.getName$() + "." + this.signature ; +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:29 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=java.lang.reflect,I$=[[0,'Boolean']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "Method", null, 'java.lang.reflect.AccessibleObject', ['java.lang.reflect.GenericDeclaration', 'java.lang.reflect.Member']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.signature=null; +this.Class_=null; +this.name=null; +this.returnType=null; +this.parameterTypes=null; +this.exceptionTypes=null; +this.modifiers=0; +this.isProxy=false; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.modifiers=0; +}, 1); + +Clazz_newMeth(C$, 'c$$Class$S$ClassA$Class$ClassA$I', function (declaringClass, name, parameterTypes, returnType, checkedExceptions, modifiers) { +Clazz_super_(C$, this,1); +this.Class_=declaringClass; +this.name=name; +this.parameterTypes=parameterTypes; +this.returnType=returnType; +this.exceptionTypes=checkedExceptions; +this.modifiers=modifiers; +this.signature=name + Class.argumentTypesToString$ClassA(parameterTypes); +}, 1); + +Clazz_newMeth(C$, 'invoke$O$OA', function (receiver, args) { +var a=Class.getArgumentArray$ClassA$OA$Z(this.parameterTypes, args, this.isProxy); +var c=(this.isProxy ? receiver : this.Class_); +var m=null; +var val=null; + +if (!this.isProxy) c = c.$clazz$; +m= c[this.signature] || c.prototype && c.prototype[this.signature]; +val = (m == null ? null : m.apply(receiver,a)); +if (val != null && !this.isProxy) val = this.wrap$O(val); +if (m == null ) { +var message="Method " + this.getDeclaringClass$().getName$() + "." + this.signature + " was not found" ; +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,[message]); +}return val; +}); + +Clazz_newMeth(C$, 'wrap$O', function (o) { +switch (typeof o ||"") { +case "number": +var d=(1 ? o :0); +return new Double((d == (d|0) ? (Integer.valueOf$I((d|0))).intValue$() : (Double.valueOf$D(d)).doubleValue$())); +case "boolean": +return $I$(1).valueOf$Z(o ||false); +} +return o; +}); + +Clazz_newMeth(C$, 'getTypeParameters$', function () { +return null; +}); + +Clazz_newMeth(C$, 'toGenericString$', function () { +return null; +}); + +Clazz_newMeth(C$, 'getGenericParameterTypes$', function () { +return null; +}); + +Clazz_newMeth(C$, 'getGenericExceptionTypes$', function () { +return null; +}); + +Clazz_newMeth(C$, 'getGenericReturnType$', function () { +return null; +}); + +Clazz_newMeth(C$, 'getParameterAnnotations$', function () { +return null; +}); + +Clazz_newMeth(C$, 'isVarArgs$', function () { +return false; +}); + +Clazz_newMeth(C$, 'isBridge$', function () { +return false; +}); + +Clazz_newMeth(C$, 'isSynthetic$', function () { +return false; +}); + +Clazz_newMeth(C$, 'getDefaultValue$', function () { +return null; +}); + +Clazz_newMeth(C$, 'equals$O', function (object) { +if (object != null && Clazz_instanceOf(object, "java.lang.reflect.Method") ) { +var other=object; +if ((this.getDeclaringClass$() === other.getDeclaringClass$() ) && (this.getName$() == other.getName$()) ) { +var params1=this.parameterTypes; +var params2=other.parameterTypes; +if (params1.length == params2.length) { +for (var i=0; i < params1.length; i++) { +if (params1[i] !== params2[i] ) return false; +} +return true; +}}}return false; +}); + +Clazz_newMeth(C$, 'getDeclaringClass$', function () { +return this.Class_; +}); + +Clazz_newMeth(C$, 'getExceptionTypes$', function () { +return this.exceptionTypes; +}); + +Clazz_newMeth(C$, 'getModifiers$', function () { +return this.modifiers; +}); + +Clazz_newMeth(C$, 'getName$', function () { +return this.name; +}); + +Clazz_newMeth(C$, 'getParameterTypes$', function () { +return this.parameterTypes; +}); + +Clazz_newMeth(C$, 'getReturnType$', function () { +return this.returnType; +}); + +Clazz_newMeth(C$, 'getSignature$', function () { +return this.signature; +}); + +Clazz_newMeth(C$, 'hashCode$', function () { +return this.getDeclaringClass$().getName$().hashCode$() ^ this.getName$().hashCode$(); +}); + +Clazz_newMeth(C$, 'toString', function () { +return this.Class_.getName$() + "." + this.name ; +}); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:29 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=java.lang,p$1={}; +var C$=Clazz_newClass(P$, "StringBuffer", null, 'AbstractStringBuilder', ['Appendable', 'java.io.Serializable', 'CharSequence']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.superclazz.c$.apply(this, []); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'c$$I', function (capacity) { +C$.superclazz.c$$I.apply(this, [capacity]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'c$$S', function (string) { +C$.superclazz.c$$S.apply(this, [string]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'c$$CharSequence', function (cs) { +C$.superclazz.c$$S.apply(this, [cs == null ? null : cs.toString()]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'append$Z', function (b) { +return this.append$S(b ? "true" : "false"); +}); + +Clazz_newMeth(C$, 'append$C', function (ch) { +this.append0$C(ch); +return this; +}); + +Clazz_newMeth(C$, 'append$D', function (d) { +return this.append$S(Double.toString$D(d)); +}); + +Clazz_newMeth(C$, 'append$F', function (f) { +return this.append$S(Float.toString$F(f)); +}); + +Clazz_newMeth(C$, 'append$I', function (i) { +return this.append$S(Integer.toString$I(i)); +}); + +Clazz_newMeth(C$, 'append$J', function (l) { +return this.append$S(Long.toString$J(l)); +}); + +Clazz_newMeth(C$, 'append$O', function (obj) { +if (obj == null ) { +this.appendNull$(); +} else { +this.append0$S(obj.toString()); +}return this; +}); + +Clazz_newMeth(C$, 'append$S', function (string) { +this.append0$S(string); +return this; +}); + +Clazz_newMeth(C$, 'append$StringBuffer', function (sb) { +if (sb == null ) { +this.appendNull$(); +} else { +{ +this.append0$CA$I$I(sb.getValue$(), 0, sb.length$()); +}}return this; +}); + +Clazz_newMeth(C$, 'append$CA', function (chars) { +this.append0$CA(chars); +return this; +}); + +Clazz_newMeth(C$, 'append$CA$I$I', function (chars, start, length) { +this.append0$CA$I$I(chars, start, length); +return this; +}); + +Clazz_newMeth(C$, 'append$CharSequence', function (s) { +if (s == null ) { +this.appendNull$(); +} else { +this.append0$S(s.toString()); +}return this; +}); + +Clazz_newMeth(C$, 'append$CharSequence$I$I', function (s, start, end) { +this.append0$CharSequence$I$I(s, start, end); +return this; +}); + +Clazz_newMeth(C$, 'appendCodePoint$I', function (codePoint) { +return this.append$CA(Character.toChars$I(codePoint)); +}); + +Clazz_newMeth(C$, 'charAt$I', function (index) { +return C$.superclazz.prototype.charAt$I.apply(this, [index]); +}); + +Clazz_newMeth(C$, 'codePointAt$I', function (index) { +return C$.superclazz.prototype.codePointAt$I.apply(this, [index]); +}); + +Clazz_newMeth(C$, 'codePointBefore$I', function (index) { +return C$.superclazz.prototype.codePointBefore$I.apply(this, [index]); +}); + +Clazz_newMeth(C$, 'codePointCount$I$I', function (beginIndex, endIndex) { +return C$.superclazz.prototype.codePointCount$I$I.apply(this, [beginIndex, endIndex]); +}); + +Clazz_newMeth(C$, 'delete$I$I', function (start, end) { +this.delete0$I$I(start, end); +return this; +}); + +Clazz_newMeth(C$, 'deleteCharAt$I', function (location) { +this.deleteCharAt0$I(location); +return this; +}); + +Clazz_newMeth(C$, 'ensureCapacity$I', function (min) { +C$.superclazz.prototype.ensureCapacity$I.apply(this, [min]); +}); + +Clazz_newMeth(C$, 'getChars$I$I$CA$I', function (start, end, buffer, idx) { +C$.superclazz.prototype.getChars$I$I$CA$I.apply(this, [start, end, buffer, idx]); +}); + +Clazz_newMeth(C$, 'indexOf$S$I', function (subString, start) { +return C$.superclazz.prototype.indexOf$S$I.apply(this, [subString, start]); +}); + +Clazz_newMeth(C$, 'insert$I$C', function (index, ch) { +this.insert0$I$C(index, ch); +return this; +}); + +Clazz_newMeth(C$, 'insert$I$Z', function (index, b) { +return this.insert$I$S(index, b ? "true" : "false"); +}); + +Clazz_newMeth(C$, 'insert$I$I', function (index, i) { +return this.insert$I$S(index, Integer.toString$I(i)); +}); + +Clazz_newMeth(C$, 'insert$I$J', function (index, l) { +return this.insert$I$S(index, Long.toString$J(l)); +}); + +Clazz_newMeth(C$, 'insert$I$D', function (index, d) { +return this.insert$I$S(index, Double.toString$D(d)); +}); + +Clazz_newMeth(C$, 'insert$I$F', function (index, f) { +return this.insert$I$S(index, Float.toString$F(f)); +}); + +Clazz_newMeth(C$, 'insert$I$O', function (index, obj) { +return this.insert$I$S(index, obj == null ? "null" : obj.toString()); +}); + +Clazz_newMeth(C$, 'insert$I$S', function (index, string) { +this.insert0$I$S(index, string); +return this; +}); + +Clazz_newMeth(C$, 'insert$I$CA', function (index, chars) { +this.insert0$I$CA(index, chars); +return this; +}); + +Clazz_newMeth(C$, 'insert$I$CA$I$I', function (index, chars, start, length) { +this.insert0$I$CA$I$I(index, chars, start, length); +return this; +}); + +Clazz_newMeth(C$, 'insert$I$CharSequence', function (index, s) { +this.insert0$I$S(index, s == null ? "null" : s.toString()); +return this; +}); + +Clazz_newMeth(C$, 'insert$I$CharSequence$I$I', function (index, s, start, end) { +this.insert0$I$CharSequence$I$I(index, s, start, end); +return this; +}); + +Clazz_newMeth(C$, 'lastIndexOf$S$I', function (subString, start) { +return C$.superclazz.prototype.lastIndexOf$S$I.apply(this, [subString, start]); +}); + +Clazz_newMeth(C$, 'offsetByCodePoints$I$I', function (index, codePointOffset) { +return C$.superclazz.prototype.offsetByCodePoints$I$I.apply(this, [index, codePointOffset]); +}); + +Clazz_newMeth(C$, 'replace$I$I$S', function (start, end, string) { +this.replace0$I$I$S(start, end, string); +return this; +}); + +Clazz_newMeth(C$, 'reverse$', function () { +this.reverse0$(); +return this; +}); + +Clazz_newMeth(C$, 'setCharAt$I$C', function (index, ch) { +C$.superclazz.prototype.setCharAt$I$C.apply(this, [index, ch]); +}); + +Clazz_newMeth(C$, 'setLength$I', function (length) { +C$.superclazz.prototype.setLength$I.apply(this, [length]); +}); + +Clazz_newMeth(C$, 'subSequence$I$I', function (start, end) { +return C$.superclazz.prototype.substring$I$I.apply(this, [start, end]); +}); + +Clazz_newMeth(C$, 'substring$I', function (start) { +return C$.superclazz.prototype.substring$I.apply(this, [start]); +}); + +Clazz_newMeth(C$, 'substring$I$I', function (start, end) { +return C$.superclazz.prototype.substring$I$I.apply(this, [start, end]); +}); + +Clazz_newMeth(C$, 'toString', function () { +return C$.superclazz.prototype.toString.apply(this, []); +}); + +Clazz_newMeth(C$, 'trimToSize$', function () { +C$.superclazz.prototype.trimToSize$.apply(this, []); +}); + +Clazz_newMeth(C$, 'writeObject$java_io_ObjectOutputStream', function (out) { +var fields=out.putFields$(); +fields.put$S$I("count", this.length$()); +fields.put$S$Z("shared", false); +fields.put$S$O("value", this.getValue$()); +out.writeFields$(); +}, p$1); + +Clazz_newMeth(C$, 'readObject$java_io_ObjectInputStream', function ($in) { +var fields=$in.readFields$(); +var count=fields.get$S$I("count", 0); +var value=fields.get$S$O("value", null); +this.set$CA$I(value, count); +}, p$1); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:28 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=java.lang,p$1={}; +var C$=Clazz_newClass(P$, "StringBuilder", null, 'AbstractStringBuilder', ['Appendable', 'CharSequence', 'java.io.Serializable']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.superclazz.c$.apply(this, []); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'c$$I', function (capacity) { +C$.superclazz.c$$I.apply(this, [capacity]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'c$$CharSequence', function (seq) { +C$.superclazz.c$$S.apply(this, [seq.toString()]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'c$$S', function (str) { +C$.superclazz.c$$S.apply(this, [str]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'append$Z', function (b) { +this.append0$S(b ? "true" : "false"); +return this; +}); + +Clazz_newMeth(C$, 'append$C', function (c) { +this.append0$C(c); +return this; +}); + +Clazz_newMeth(C$, 'append$I', function (i) { +this.append0$S(Integer.toString$I(i)); +return this; +}); + +Clazz_newMeth(C$, 'append$J', function (lng) { +this.append0$S(Long.toString$J(lng)); +return this; +}); + +Clazz_newMeth(C$, 'append$F', function (f) { +this.append0$S(Float.toString$F(f)); +return this; +}); + +Clazz_newMeth(C$, 'append$D', function (d) { +this.append0$S(Double.toString$D(d)); +return this; +}); + +Clazz_newMeth(C$, 'append$O', function (obj) { +if (obj == null ) { +this.appendNull$(); +} else { +this.append0$S(obj.toString()); +}return this; +}); + +Clazz_newMeth(C$, 'append$S', function (str) { +this.append0$S(str); +return this; +}); + +Clazz_newMeth(C$, 'append$StringBuffer', function (sb) { +if (sb == null ) { +this.appendNull$(); +} else { +this.append0$CA$I$I(sb.getValue$(), 0, sb.length$()); +}return this; +}); + +Clazz_newMeth(C$, 'append$CA', function (ch) { +this.append0$CA(ch); +return this; +}); + +Clazz_newMeth(C$, 'append$CA$I$I', function (str, offset, len) { +this.append0$CA$I$I(str, offset, len); +return this; +}); + +Clazz_newMeth(C$, 'append$CharSequence', function (csq) { +if (csq == null ) { +this.appendNull$(); +} else { +this.append0$S(csq.toString()); +}return this; +}); + +Clazz_newMeth(C$, 'append$CharSequence$I$I', function (csq, start, end) { +this.append0$CharSequence$I$I(csq, start, end); +return this; +}); + +Clazz_newMeth(C$, 'appendCodePoint$I', function (codePoint) { +this.append0$CA(Character.toChars$I(codePoint)); +return this; +}); + +Clazz_newMeth(C$, 'delete$I$I', function (start, end) { +this.delete0$I$I(start, end); +return this; +}); + +Clazz_newMeth(C$, 'deleteCharAt$I', function (index) { +this.deleteCharAt0$I(index); +return this; +}); + +Clazz_newMeth(C$, 'insert$I$Z', function (offset, b) { +this.insert0$I$S(offset, b ? "true" : "false"); +return this; +}); + +Clazz_newMeth(C$, 'insert$I$C', function (offset, c) { +this.insert0$I$C(offset, c); +return this; +}); + +Clazz_newMeth(C$, 'insert$I$I', function (offset, i) { +this.insert0$I$S(offset, Integer.toString$I(i)); +return this; +}); + +Clazz_newMeth(C$, 'insert$I$J', function (offset, l) { +this.insert0$I$S(offset, Long.toString$J(l)); +return this; +}); + +Clazz_newMeth(C$, 'insert$I$F', function (offset, f) { +this.insert0$I$S(offset, Float.toString$F(f)); +return this; +}); + +Clazz_newMeth(C$, 'insert$I$D', function (offset, d) { +this.insert0$I$S(offset, Double.toString$D(d)); +return this; +}); + +Clazz_newMeth(C$, 'insert$I$O', function (offset, obj) { +this.insert0$I$S(offset, obj == null ? "null" : obj.toString()); +return this; +}); + +Clazz_newMeth(C$, 'insert$I$S', function (offset, str) { +this.insert0$I$S(offset, str); +return this; +}); + +Clazz_newMeth(C$, 'insert$I$CA', function (offset, ch) { +this.insert0$I$CA(offset, ch); +return this; +}); + +Clazz_newMeth(C$, 'insert$I$CA$I$I', function (offset, str, strOffset, strLen) { +this.insert0$I$CA$I$I(offset, str, strOffset, strLen); +return this; +}); + +Clazz_newMeth(C$, 'insert$I$CharSequence', function (offset, s) { +this.insert0$I$S(offset, s == null ? "null" : s.toString()); +return this; +}); + +Clazz_newMeth(C$, 'insert$I$CharSequence$I$I', function (offset, s, start, end) { +this.insert0$I$CharSequence$I$I(offset, s, start, end); +return this; +}); + +Clazz_newMeth(C$, 'replace$I$I$S', function (start, end, str) { +this.replace0$I$I$S(start, end, str); +return this; +}); + +Clazz_newMeth(C$, 'reverse$', function () { +this.reverse0$(); +return this; +}); + +Clazz_newMeth(C$, 'toString', function () { +return C$.superclazz.prototype.toString.apply(this, []); +}); + +Clazz_newMeth(C$, 'readObject$java_io_ObjectInputStream', function ($in) { +$in.defaultReadObject$(); +var count=$in.readInt$(); +var value=$in.readObject$(); +this.set$CA$I(value, count); +}, p$1); + +Clazz_newMeth(C$, 'writeObject$java_io_ObjectOutputStream', function (out) { +out.defaultWriteObject$(); +out.writeInt$I(this.length$()); +out.writeObject$O(this.getValue$()); +}, p$1); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:28 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=java.lang,p$1={},I$=[[0,'ThreadGroup','swingjs.JSToolkit','ThreadDeath','NoSuchMethodError','swingjs.JSUtil','java.util.HashMap',['Thread','.State']]],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "Thread", function(){ +Clazz_newInstance(this, arguments,0,C$); +}, null, 'Runnable'); +C$.threadInitNumber=0; +C$.threadSeqNumber=0; +C$.thisThread=null; +C$.defaultUncaughtExceptionHandler=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.name=null; +this.priority=0; +this.daemon=false; +this.target=null; +this.group=null; +this.tid=0; +this.threadStatus=0; +this.parkBlocker=null; +this.stopBeforeStart=false; +this.throwableFromStop=null; +this.me=null; +this.started=false; +this.uncaughtExceptionHandler=null; +this.interrupted=false; +this.stopped=false; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.priority=5; +this.daemon=false; +this.threadStatus=0; +}, 1); + +Clazz_newMeth(C$, 'nextThreadNum$', function () { +return C$.threadInitNumber++; +}, 1); + +Clazz_newMeth(C$, 'nextThreadID$', function () { +return ++C$.threadSeqNumber; +}, 1); + +Clazz_newMeth(C$, 'currentThread$', function () { +{ +if (java.lang.Thread.thisThread === "working") return null; +} +if (C$.thisThread == null ) { +{ +java.lang.Thread.thisThread = "working"; +java.lang.Thread.thisThread = Clazz_new_(java.lang.Thread.c$$S, ["master"]); +var name = J2S._applets["master"]._id; var g = Clazz_new_(Clazz_load('swingjs.JSThreadGroup').c$$ThreadGroup$S, [null, name]); java.lang.Thread.thisThread = Clazz_new_(Clazz_load("javajs.util.JSThread").c$$ThreadGroup$S, [g, name]); +} +C$.thisThread.setPriority$I(5); +}return C$.thisThread; +}, 1); + +Clazz_newMeth(C$, 'yield$', function () { +}, 1); + +Clazz_newMeth(C$, 'sleep$J', function (millis) { +}, 1); + +Clazz_newMeth(C$, 'sleep$J$I', function (millis, nanos) { +if (millis < 0) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["timeout value is negative"]); +}if (nanos < 0 || nanos > 999999 ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["nanosecond timeout value out of range"]); +}if (nanos >= 500000 || (nanos != 0 && millis == 0 ) ) { +millis++; +}C$.sleep$J(millis); +}, 1); + +Clazz_newMeth(C$, 'init$ThreadGroup$Runnable$S$J', function (g, target, name, stackSize) { +p$1.init$ThreadGroup$Runnable$S$J$O.apply(this, [g, target, name, stackSize, null]); +}, p$1); + +Clazz_newMeth(C$, 'init$ThreadGroup$Runnable$S$J$O', function (g, target, name, stackSize, acc) { +var parent=(C$.thisThread == null ? null : C$.thisThread); +if (g == null ) { +if (g == null && parent != null && !parent.equals$O("working") ) { +g=parent.getThreadGroup$(); +}}if (g == null ) { +g=this.newThreadGroup$ThreadGroup$S(null, name); +parent=this; +}g.checkAccess$(); +g.addUnstarted$(); +this.group=g; +this.priority=parent.getPriority$(); +this.name=name; +this.target=target; +this.setPriority$I(this.priority); +this.tid=C$.nextThreadID$(); +this.me=this; +}, p$1); + +Clazz_newMeth(C$, 'newThreadGroup$ThreadGroup$S', function (group, name) { +return Clazz_new_($I$(1).c$$ThreadGroup$S,[group, name]); +}); + +Clazz_newMeth(C$, 'c$', function () { +C$.$init$.apply(this); +p$1.init$ThreadGroup$Runnable$S$J.apply(this, [null, null, "Thread-" + C$.nextThreadNum$(), 0]); +}, 1); + +Clazz_newMeth(C$, 'c$$Runnable', function (target) { +C$.$init$.apply(this); +p$1.init$ThreadGroup$Runnable$S$J.apply(this, [null, target, "Thread-" + C$.nextThreadNum$(), 0]); +}, 1); + +Clazz_newMeth(C$, 'c$$ThreadGroup$Runnable', function (group, target) { +C$.$init$.apply(this); +p$1.init$ThreadGroup$Runnable$S$J.apply(this, [group, target, "Thread-" + C$.nextThreadNum$(), 0]); +}, 1); + +Clazz_newMeth(C$, 'c$$S', function (name) { +C$.$init$.apply(this); +p$1.init$ThreadGroup$Runnable$S$J.apply(this, [null, null, name, 0]); +}, 1); + +Clazz_newMeth(C$, 'c$$ThreadGroup$S', function (group, name) { +C$.$init$.apply(this); +p$1.init$ThreadGroup$Runnable$S$J.apply(this, [group, null, name, 0]); +}, 1); + +Clazz_newMeth(C$, 'c$$Runnable$S', function (target, name) { +C$.$init$.apply(this); +p$1.init$ThreadGroup$Runnable$S$J.apply(this, [null, target, name, 0]); +}, 1); + +Clazz_newMeth(C$, 'c$$ThreadGroup$Runnable$S', function (group, target, name) { +C$.$init$.apply(this); +p$1.init$ThreadGroup$Runnable$S$J.apply(this, [group, target, name, 0]); +}, 1); + +Clazz_newMeth(C$, 'c$$ThreadGroup$Runnable$S$J', function (group, target, name, stackSize) { +C$.$init$.apply(this); +p$1.init$ThreadGroup$Runnable$S$J.apply(this, [group, target, name, stackSize]); +}, 1); + +Clazz_newMeth(C$, 'start$', function () { +if (this.threadStatus != 0 || this !== this.me ) throw Clazz_new_(Clazz_load('IllegalThreadStateException')); +this.group.add$Thread(this); +p$1.start0.apply(this, []); +if (this.stopBeforeStart) { +p$1.stop0$O.apply(this, [this.throwableFromStop]); +}}); + +Clazz_newMeth(C$, 'start0', function () { +this.started=true; +$I$(2).dispatch$O$I$I(this, 0, 0); +}, p$1); + +Clazz_newMeth(C$, 'run$', function () { +if (this.target != null ) { +this.target.run$(); +}}); + +Clazz_newMeth(C$, 'stop$', function () { +if ((this.threadStatus != 0) && !this.isAlive$() ) { +return; +}p$1.stop1$Throwable.apply(this, [Clazz_new_($I$(3))]); +}); + +Clazz_newMeth(C$, 'stop$Throwable', function (obj) { +p$1.stop1$Throwable.apply(this, [obj]); +}); + +Clazz_newMeth(C$, 'stop1$Throwable', function (th) { +if (this.threadStatus != 0) { +this.resume$(); +p$1.stop0$O.apply(this, [th]); +} else { +if (th == null ) { +throw Clazz_new_(Clazz_load('NullPointerException')); +}this.stopBeforeStart=true; +this.throwableFromStop=th; +}}, p$1); + +Clazz_newMeth(C$, 'interrupt$', function () { +p$1.interrupt0.apply(this, []); +}); + +Clazz_newMeth(C$, 'interrupted$', function () { +return p$1.isInterruptedB$Z.apply(C$.currentThread$(), [true]); +}, 1); + +Clazz_newMeth(C$, 'isInterrupted$', function () { +return p$1.isInterruptedB$Z.apply(this, [false]); +}); + +Clazz_newMeth(C$, 'isInterruptedB$Z', function (clearInterrupted) { +var wasInt=this.interrupted; +if (clearInterrupted) this.interrupted=false; +return wasInt; +}, p$1); + +Clazz_newMeth(C$, 'destroy$', function () { +throw Clazz_new_($I$(4)); +}); + +Clazz_newMeth(C$, 'isAlive$', function () { +return this.started && !this.stopped ; +}); + +Clazz_newMeth(C$, 'suspend$', function () { +this.checkAccess$(); +p$1.suspend0.apply(this, []); +}); + +Clazz_newMeth(C$, 'resume$', function () { +this.checkAccess$(); +p$1.resume0.apply(this, []); +}); + +Clazz_newMeth(C$, 'setPriority$I', function (newPriority) { +var g; +this.checkAccess$(); +if (newPriority > 10 || newPriority < 1 ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException')); +}if ((g=this.getThreadGroup$()) != null ) { +if (newPriority > g.getMaxPriority$()) { +newPriority=g.getMaxPriority$(); +}p$1.setPriority0$I.apply(this, [this.priority=newPriority]); +}}); + +Clazz_newMeth(C$, 'getPriority$', function () { +return this.priority; +}); + +Clazz_newMeth(C$, 'setName$S', function (name) { +this.checkAccess$(); +this.name=name; +}); + +Clazz_newMeth(C$, 'getName$', function () { +return this.name; +}); + +Clazz_newMeth(C$, 'getThreadGroup$', function () { +return this.group; +}); + +Clazz_newMeth(C$, 'activeCount$', function () { +return C$.currentThread$().getThreadGroup$().activeCount$(); +}, 1); + +Clazz_newMeth(C$, 'enumerate$ThreadA', function (tarray) { +return C$.currentThread$().getThreadGroup$().enumerate$ThreadA(tarray); +}, 1); + +Clazz_newMeth(C$, 'countStackFrames$', function () { +return 0; +}); + +Clazz_newMeth(C$, 'join$J', function (millis) { +var base=System.currentTimeMillis$(); +var now=0; +if (millis < 0) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["timeout value is negative"]); +}$I$(5).warn$S("Cannot wait in Thread"); +if (millis == 0) { +while (this.isAlive$()){ +this.wait$J(0); +} +} else { +while (this.isAlive$()){ +var delay=millis - now; +if (delay <= 0) { +break; +}this.wait$J(delay); +now=System.currentTimeMillis$() - base; +} +}}); + +Clazz_newMeth(C$, 'join$J$I', function (millis, nanos) { +if (millis < 0) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["timeout value is negative"]); +}if (nanos < 0 || nanos > 999999 ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["nanosecond timeout value out of range"]); +}if (nanos >= 500000 || (nanos != 0 && millis == 0 ) ) { +millis++; +}this.join$J(millis); +}); + +Clazz_newMeth(C$, 'join$', function () { +this.join$J(0); +}); + +Clazz_newMeth(C$, 'dumpStack$', function () { +Clazz_new_(Clazz_load('Exception').c$$S,["Stack trace"]).printStackTrace$(); +}, 1); + +Clazz_newMeth(C$, 'setDaemon$Z', function (on) { +this.checkAccess$(); +if (this.isAlive$()) { +throw Clazz_new_(Clazz_load('IllegalThreadStateException')); +}this.daemon=on; +}); + +Clazz_newMeth(C$, 'isDaemon$', function () { +return this.daemon; +}); + +Clazz_newMeth(C$, 'checkAccess$', function () { +}); + +Clazz_newMeth(C$, 'toString', function () { +var group=this.getThreadGroup$(); +if (group != null ) { +return "Thread[" + this.getName$() + "," + this.getPriority$() + "," + group.getName$() + "]" ; +} else { +return "Thread[" + this.getName$() + "," + this.getPriority$() + "," + "" + "]" ; +}}); + +Clazz_newMeth(C$, 'getContextClassLoader$', function () { +var cl=Clazz_getClass($I$(5)).getClassLoader$(); + +cl.baseClass = {getName$:function(){return "swingjs"}}; +return cl; +}); + +Clazz_newMeth(C$, 'setContextClassLoader$ClassLoader', function (cl) { +}); + +Clazz_newMeth(C$, 'holdsLock$O', function (obj) { +return false; +}, 1); + +Clazz_newMeth(C$, 'getStackTrace$', function () { +return (Clazz_new_(Clazz_load('Exception'))).getStackTrace$(); +}); + +Clazz_newMeth(C$, 'getAllStackTraces$', function () { +var threads=C$.getThreads$(); +var traces=C$.dumpThreads$ThreadA(threads); +var m=Clazz_new_($I$(6).c$$I,[threads.length]); +for (var i=0; i < threads.length; i++) { +var stackTrace=traces[i]; +if (stackTrace != null ) { +m.put$TK$TV(threads[i], stackTrace); +}} +return m; +}, 1); + +Clazz_newMeth(C$, 'dumpThreads$ThreadA', function (threads) { +return null; +}, 1); + +Clazz_newMeth(C$, 'getThreads$', function () { +return null; +}, 1); + +Clazz_newMeth(C$, 'getId$', function () { +return this.tid; +}); + +Clazz_newMeth(C$, 'getState$', function () { +switch (this.threadStatus) { +case 0: +return $I$(7).NEW; +case 1: +return $I$(7).RUNNABLE; +case 2: +default: +return $I$(7).TERMINATED; +case 3: +return $I$(7).TIMED_WAITING; +case 4: +return $I$(7).WAITING; +} +}); + +Clazz_newMeth(C$, 'setDefaultUncaughtExceptionHandler$Thread_UncaughtExceptionHandler', function (eh) { +C$.defaultUncaughtExceptionHandler=eh; +}, 1); + +Clazz_newMeth(C$, 'getDefaultUncaughtExceptionHandler$', function () { +return C$.defaultUncaughtExceptionHandler; +}, 1); + +Clazz_newMeth(C$, 'getUncaughtExceptionHandler$', function () { +return this.uncaughtExceptionHandler != null ? this.uncaughtExceptionHandler : this.group; +}); + +Clazz_newMeth(C$, 'setUncaughtExceptionHandler$Thread_UncaughtExceptionHandler', function (eh) { +this.checkAccess$(); +this.uncaughtExceptionHandler=eh; +}); + +Clazz_newMeth(C$, 'setPriority0$I', function (newPriority) { +}, p$1); + +Clazz_newMeth(C$, 'stop0$O', function (o) { +this.stopped=true; +}, p$1); + +Clazz_newMeth(C$, 'suspend0', function () { +}, p$1); + +Clazz_newMeth(C$, 'resume0', function () { +}, p$1); + +Clazz_newMeth(C$, 'interrupt0', function () { +this.interrupted=true; +}, p$1); +; +(function(){var C$=Clazz_newClass(P$.Thread, "State", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'Enum'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +$vals=Clazz_array(C$,[0]); +Clazz_newEnumConst($vals, C$.c$, "NEW", 0, []); +Clazz_newEnumConst($vals, C$.c$, "RUNNABLE", 1, []); +Clazz_newEnumConst($vals, C$.c$, "BLOCKED", 2, []); +Clazz_newEnumConst($vals, C$.c$, "WAITING", 3, []); +Clazz_newEnumConst($vals, C$.c$, "TIMED_WAITING", 4, []); +Clazz_newEnumConst($vals, C$.c$, "TERMINATED", 5, []); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$); +var $vals=[]; +Clazz_newMeth(C$, 'values$', function() { return $vals }, 1); +Clazz_newMeth(C$, 'valueOf$S', function(name) { for (var val in $vals){ if ($vals[val].name == name) return $vals[val]} return null }, 1); +})() +; +(function(){var C$=Clazz_newInterface(P$.Thread, "UncaughtExceptionHandler", function(){ +}); +})() +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:28 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=java.lang,p$1={},I$=[[0,'Thread','java.util.Arrays']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "ThreadGroup", null, null, [['Thread','Thread.UncaughtExceptionHandler']]); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.parent=null; +this.name=null; +this.maxPriority=0; +this.destroyed=false; +this.daemon=false; +this.vmAllowSuspension=false; +this.nUnstartedThreads=0; +this.nthreads=0; +this.threads=null; +this.ngroups=0; +this.groups=null; +this.秘html5Applet=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.maxPriority=10; +this.nUnstartedThreads=0; +}, 1); + +Clazz_newMeth(C$, 'c$$S', function (name) { +C$.c$$ThreadGroup$S.apply(this, [$I$(1).currentThread$().getThreadGroup$(), name]); +}, 1); + +Clazz_newMeth(C$, 'c$$ThreadGroup$S', function (parent, name) { +C$.$init$.apply(this); +this.name=name; +this.parent=parent; +if (parent != null ) { +this.maxPriority=parent.maxPriority; +this.daemon=parent.daemon; +this.vmAllowSuspension=parent.vmAllowSuspension; +p$1.add$ThreadGroup.apply(parent, [this]); +}}, 1); + +Clazz_newMeth(C$, 'getName$', function () { +return this.name; +}); + +Clazz_newMeth(C$, 'getParent$', function () { +if (this.parent != null ) this.parent.checkAccess$(); +return this.parent; +}); + +Clazz_newMeth(C$, 'getMaxPriority$', function () { +return this.maxPriority; +}); + +Clazz_newMeth(C$, 'isDaemon$', function () { +return this.daemon; +}); + +Clazz_newMeth(C$, 'isDestroyed$', function () { +return this.destroyed; +}); + +Clazz_newMeth(C$, 'setDaemon$Z', function (daemon) { +this.checkAccess$(); +this.daemon=daemon; +}); + +Clazz_newMeth(C$, 'setMaxPriority$I', function (pri) { +var ngroupsSnapshot; +var groupsSnapshot; +{ +this.checkAccess$(); +if (pri < 1 || pri > 10 ) { +return; +}this.maxPriority=(this.parent != null ) ? Math.min(pri, this.parent.maxPriority) : pri; +ngroupsSnapshot=this.ngroups; +if (this.groups != null ) { +groupsSnapshot=$I$(2).copyOf$TTA$I(this.groups, ngroupsSnapshot); +} else { +groupsSnapshot=null; +}}for (var i=0; i < ngroupsSnapshot; i++) { +groupsSnapshot[i].setMaxPriority$I(pri); +} +}); + +Clazz_newMeth(C$, 'parentOf$ThreadGroup', function (g) { +for (; g != null ; g=g.parent) { +if (g === this ) { +return true; +}} +return false; +}); + +Clazz_newMeth(C$, 'checkAccess$', function () { +}); + +Clazz_newMeth(C$, 'activeCount$', function () { +var result; +var ngroupsSnapshot; +var groupsSnapshot; +{ +if (this.destroyed) { +return 0; +}result=this.nthreads; +ngroupsSnapshot=this.ngroups; +if (this.groups != null ) { +groupsSnapshot=$I$(2).copyOf$TTA$I(this.groups, ngroupsSnapshot); +} else { +groupsSnapshot=null; +}}for (var i=0; i < ngroupsSnapshot; i++) { +result+=groupsSnapshot[i].activeCount$(); +} +return result; +}); + +Clazz_newMeth(C$, 'enumerate$ThreadA', function (list) { +this.checkAccess$(); +return p$1.enumerate$ThreadA$I$Z.apply(this, [list, 0, true]); +}); + +Clazz_newMeth(C$, 'enumerate$ThreadA$Z', function (list, recurse) { +this.checkAccess$(); +return p$1.enumerate$ThreadA$I$Z.apply(this, [list, 0, recurse]); +}); + +Clazz_newMeth(C$, 'enumerate$ThreadA$I$Z', function (list, n, recurse) { +var ngroupsSnapshot=0; +var groupsSnapshot=null; +{ +if (this.destroyed) { +return 0; +}var nt=this.nthreads; +if (nt > list.length - n) { +nt=list.length - n; +}for (var i=0; i < nt; i++) { +if (this.threads[i].isAlive$()) { +list[n++]=this.threads[i]; +}} +if (recurse) { +ngroupsSnapshot=this.ngroups; +if (this.groups != null ) { +groupsSnapshot=$I$(2).copyOf$TTA$I(this.groups, ngroupsSnapshot); +} else { +groupsSnapshot=null; +}}}if (recurse) { +for (var i=0; i < ngroupsSnapshot; i++) { +n=p$1.enumerate$ThreadA$I$Z.apply(groupsSnapshot[i], [list, n, true]); +} +}return n; +}, p$1); + +Clazz_newMeth(C$, 'activeGroupCount$', function () { +var ngroupsSnapshot; +var groupsSnapshot; +{ +if (this.destroyed) { +return 0; +}ngroupsSnapshot=this.ngroups; +if (this.groups != null ) { +groupsSnapshot=$I$(2).copyOf$TTA$I(this.groups, ngroupsSnapshot); +} else { +groupsSnapshot=null; +}}var n=ngroupsSnapshot; +for (var i=0; i < ngroupsSnapshot; i++) { +n+=groupsSnapshot[i].activeGroupCount$(); +} +return n; +}); + +Clazz_newMeth(C$, 'enumerate$ThreadGroupA', function (list) { +this.checkAccess$(); +return p$1.enumerate$ThreadGroupA$I$Z.apply(this, [list, 0, true]); +}); + +Clazz_newMeth(C$, 'enumerate$ThreadGroupA$Z', function (list, recurse) { +this.checkAccess$(); +return p$1.enumerate$ThreadGroupA$I$Z.apply(this, [list, 0, recurse]); +}); + +Clazz_newMeth(C$, 'enumerate$ThreadGroupA$I$Z', function (list, n, recurse) { +var ngroupsSnapshot=0; +var groupsSnapshot=null; +{ +if (this.destroyed) { +return 0; +}var ng=this.ngroups; +if (ng > list.length - n) { +ng=list.length - n; +}if (ng > 0) { +System.arraycopy$O$I$O$I$I(this.groups, 0, list, n, ng); +n+=ng; +}if (recurse) { +ngroupsSnapshot=this.ngroups; +if (this.groups != null ) { +groupsSnapshot=$I$(2).copyOf$TTA$I(this.groups, ngroupsSnapshot); +} else { +groupsSnapshot=null; +}}}if (recurse) { +for (var i=0; i < ngroupsSnapshot; i++) { +n=p$1.enumerate$ThreadGroupA$I$Z.apply(groupsSnapshot[i], [list, n, true]); +} +}return n; +}, p$1); + +Clazz_newMeth(C$, 'stop$', function () { +if (p$1.stopOrSuspend$Z.apply(this, [false])) $I$(1).currentThread$().stop$(); +}); + +Clazz_newMeth(C$, 'interrupt$', function () { +var ngroupsSnapshot; +var groupsSnapshot; +{ +this.checkAccess$(); +for (var i=0; i < this.nthreads; i++) { +this.threads[i].interrupt$(); +} +ngroupsSnapshot=this.ngroups; +if (this.groups != null ) { +groupsSnapshot=$I$(2).copyOf$TTA$I(this.groups, ngroupsSnapshot); +} else { +groupsSnapshot=null; +}}for (var i=0; i < ngroupsSnapshot; i++) { +groupsSnapshot[i].interrupt$(); +} +}); + +Clazz_newMeth(C$, 'suspend$', function () { +if (p$1.stopOrSuspend$Z.apply(this, [true])) $I$(1).currentThread$().suspend$(); +}); + +Clazz_newMeth(C$, 'stopOrSuspend$Z', function (suspend) { +var suicide=false; +var us=$I$(1).currentThread$(); +var ngroupsSnapshot; +var groupsSnapshot=null; +{ +this.checkAccess$(); +for (var i=0; i < this.nthreads; i++) { +if (this.threads[i] === us ) suicide=true; + else if (suspend) this.threads[i].suspend$(); + else this.threads[i].stop$(); +} +ngroupsSnapshot=this.ngroups; +if (this.groups != null ) { +groupsSnapshot=$I$(2).copyOf$TTA$I(this.groups, ngroupsSnapshot); +}}for (var i=0; i < ngroupsSnapshot; i++) suicide=p$1.stopOrSuspend$Z.apply(groupsSnapshot[i], [suspend]) || suicide ; + +return suicide; +}, p$1); + +Clazz_newMeth(C$, 'resume$', function () { +var ngroupsSnapshot; +var groupsSnapshot; +{ +this.checkAccess$(); +for (var i=0; i < this.nthreads; i++) { +this.threads[i].resume$(); +} +ngroupsSnapshot=this.ngroups; +if (this.groups != null ) { +groupsSnapshot=$I$(2).copyOf$TTA$I(this.groups, ngroupsSnapshot); +} else { +groupsSnapshot=null; +}}for (var i=0; i < ngroupsSnapshot; i++) { +groupsSnapshot[i].resume$(); +} +}); + +Clazz_newMeth(C$, 'destroy$', function () { +var ngroupsSnapshot; +var groupsSnapshot; +{ +this.checkAccess$(); +if (this.destroyed || (this.nthreads > 0) ) { +throw Clazz_new_(Clazz_load('IllegalThreadStateException')); +}ngroupsSnapshot=this.ngroups; +if (this.groups != null ) { +groupsSnapshot=$I$(2).copyOf$TTA$I(this.groups, ngroupsSnapshot); +} else { +groupsSnapshot=null; +}if (this.parent != null ) { +this.destroyed=true; +this.ngroups=0; +this.groups=null; +this.nthreads=0; +this.threads=null; +}}for (var i=0; i < ngroupsSnapshot; i+=1) { +groupsSnapshot[i].destroy$(); +} +if (this.parent != null ) { +p$1.remove$ThreadGroup.apply(this.parent, [this]); +}}); + +Clazz_newMeth(C$, 'add$ThreadGroup', function (g) { +{ +if (this.destroyed) { +throw Clazz_new_(Clazz_load('IllegalThreadStateException')); +}if (this.groups == null ) { +this.groups=Clazz_array(C$, [4]); +} else if (this.ngroups == this.groups.length) { +this.groups=$I$(2).copyOf$TTA$I(this.groups, this.ngroups * 2); +}this.groups[this.ngroups]=g; +this.ngroups++; +}}, p$1); + +Clazz_newMeth(C$, 'remove$ThreadGroup', function (g) { +{ +if (this.destroyed) { +return; +}for (var i=0; i < this.ngroups; i++) { +if (this.groups[i] === g ) { +this.ngroups-=1; +System.arraycopy$O$I$O$I$I(this.groups, i + 1, this.groups, i, this.ngroups - i); +this.groups[this.ngroups]=null; +break; +}} +if (this.nthreads == 0) { +this.notifyAll$(); +}if (this.daemon && (this.nthreads == 0) && (this.nUnstartedThreads == 0) && (this.ngroups == 0) ) { +this.destroy$(); +}}}, p$1); + +Clazz_newMeth(C$, 'addUnstarted$', function () { +{ +if (this.destroyed) { +throw Clazz_new_(Clazz_load('IllegalThreadStateException')); +}this.nUnstartedThreads++; +}}); + +Clazz_newMeth(C$, 'add$Thread', function (t) { +{ +if (this.destroyed) { +throw Clazz_new_(Clazz_load('IllegalThreadStateException')); +}if (this.threads == null ) { +this.threads=Clazz_array($I$(1), [4]); +} else if (this.nthreads == this.threads.length) { +this.threads=$I$(2).copyOf$TTA$I(this.threads, this.nthreads * 2); +}this.threads[this.nthreads]=t; +this.nthreads++; +this.nUnstartedThreads--; +}}); + +Clazz_newMeth(C$, 'remove$Thread', function (t) { +{ +if (this.destroyed) { +return; +}for (var i=0; i < this.nthreads; i++) { +if (this.threads[i] === t ) { +System.arraycopy$O$I$O$I$I(this.threads, i + 1, this.threads, i, --this.nthreads - i); +this.threads[this.nthreads]=null; +break; +}} +if (this.nthreads == 0) { +this.notifyAll$(); +}if (this.daemon && (this.nthreads == 0) && (this.nUnstartedThreads == 0) && (this.ngroups == 0) ) { +this.destroy$(); +}}}); + +Clazz_newMeth(C$, ['uncaughtException$Thread$Throwable','uncaughtException$'], function (t, e) { +if (this.parent != null ) { +this.parent.uncaughtException$Thread$Throwable(t, e); +} else { +var ueh=$I$(1).getDefaultUncaughtExceptionHandler$(); +if (ueh != null ) { +ueh.uncaughtException$(t, e); +} else if (!(Clazz_instanceOf(e, "java.lang.ThreadDeath"))) { +System.err.print$S("Exception in thread \"" + t.getName$() + "\" " ); +e.printStackTrace$java_io_PrintStream(System.err); +}}}); + +Clazz_newMeth(C$, 'toString', function () { +return this.getClass$().getName$() + "[name=" + this.getName$() + ",maxpri=" + this.maxPriority + ",html5Applet=" + this.秘html5Applet + "]" ; +}); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:28 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.math"),I$=[]; +var C$=Clazz_newClass(P$, "RoundingMode", null, 'Enum'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +$vals=Clazz_array(C$,[0]); +Clazz_newEnumConst($vals, C$.c$$I, "UP", 0, [0]); +Clazz_newEnumConst($vals, C$.c$$I, "DOWN", 1, [1]); +Clazz_newEnumConst($vals, C$.c$$I, "CEILING", 2, [2]); +Clazz_newEnumConst($vals, C$.c$$I, "FLOOR", 3, [3]); +Clazz_newEnumConst($vals, C$.c$$I, "HALF_UP", 4, [4]); +Clazz_newEnumConst($vals, C$.c$$I, "HALF_DOWN", 5, [5]); +Clazz_newEnumConst($vals, C$.c$$I, "HALF_EVEN", 6, [6]); +Clazz_newEnumConst($vals, C$.c$$I, "UNNECESSARY", 7, [7]); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.oldMode=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$I', function (oldMode) { +C$.$init$.apply(this); +this.oldMode=oldMode; +}, 1); + +Clazz_newMeth(C$, 'valueOf$I', function (rm) { +switch (rm) { +case 0: +return C$.UP; +case 1: +return C$.DOWN; +case 2: +return C$.CEILING; +case 3: +return C$.FLOOR; +case 4: +return C$.HALF_UP; +case 5: +return C$.HALF_DOWN; +case 6: +return C$.HALF_EVEN; +case 7: +return C$.UNNECESSARY; +default: +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["argument out of range"]); +} +}, 1); + +Clazz_newMeth(C$); +var $vals=[]; +Clazz_newMeth(C$, 'values$', function() { return $vals }, 1); +Clazz_newMeth(C$, 'valueOf$S', function(name) { for (var val in $vals){ if ($vals[val].name == name) return $vals[val]} return null }, 1); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:30 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.net"),p$1={},I$=[[0,'java.util.Hashtable','java.net.Parts','javajs.util.AjaxURLConnection','Error']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "URL"); +C$.factory=null; +C$.handlers=null; +C$.streamHandlerLock=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.handlers=Clazz_new_($I$(1)); +C$.streamHandlerLock= Clazz_new_(); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.protocol=null; +this.host=null; +this.port=0; +this.file=null; +this.query=null; +this.authority=null; +this.path=null; +this.userInfo=null; +this.ref=null; +this.handler=null; +this._streamData=null; +this.hashCode=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.port=-1; +this.hashCode=-1; +}, 1); + +Clazz_newMeth(C$, 'c$$S$S$I$S', function (protocol, host, port, file) { +C$.c$$S$S$I$S$java_net_URLStreamHandler.apply(this, [protocol, host, port, file, null]); +}, 1); + +Clazz_newMeth(C$, 'c$$S$S$S', function (protocol, host, file) { +C$.c$$S$S$I$S.apply(this, [protocol, host, -1, file]); +}, 1); + +Clazz_newMeth(C$, 'c$$S$S$I$S$java_net_URLStreamHandler', function (protocol, host, port, file, handler) { +C$.$init$.apply(this); +protocol=protocol.toLowerCase$(); +this.protocol=protocol; +if (host != null ) { +if (host.indexOf$I(":") >= 0 && !host.startsWith$S("[") ) { +host="[" + host + "]" ; +}this.host=host; +if (port < -1) { +throw Clazz_new_(Clazz_load('java.net.MalformedURLException').c$$S,["Invalid port number :" + port]); +}this.port=port; +this.authority=(port == -1) ? host : host + ":" + port ; +}var parts=Clazz_new_($I$(2).c$$S,[file]); +this.path=parts.getPath$(); +this.query=parts.getQuery$(); +if (this.query != null ) { +this.file=this.path + "?" + this.query ; +} else { +this.file=this.path; +}this.ref=parts.getRef$(); +if (handler == null && (handler=C$.getURLStreamHandler$S(protocol)) == null ) { +throw Clazz_new_(Clazz_load('java.net.MalformedURLException').c$$S,["unknown protocol: " + protocol]); +}this.handler=handler; +}, 1); + +Clazz_newMeth(C$, 'c$$S', function (spec) { +C$.c$$java_net_URL$S$java_net_URLStreamHandler.apply(this, [null, spec, null]); +}, 1); + +Clazz_newMeth(C$, 'c$$java_net_URL$S', function (context, spec) { +C$.c$$java_net_URL$S$java_net_URLStreamHandler.apply(this, [context, spec, null]); +}, 1); + +Clazz_newMeth(C$, 'c$$java_net_URL$S$java_net_URLStreamHandler', function (context, spec, handler) { +C$.$init$.apply(this); +var original=spec; +var i; +var limit; +var c; +var start=0; +var newProtocol=null; +var aRef=false; +var isRelative=false; +try { +limit=spec.length$(); +while ((limit > 0) && (spec.charAt$I(limit - 1) <= " ") ){ +limit--; +} +while ((start < limit) && (spec.charAt$I(start) <= " ") ){ +start++; +} +if (spec.regionMatches$Z$I$S$I$I(true, start, "url:", 0, 4)) { +start+=4; +}if (start < spec.length$() && spec.charAt$I(start) == "#" ) { +aRef=true; +}for (i=start; !aRef && (i < limit) && ((c=spec.charAt$I(i).$c()) != 47 ) ; i++) { +if (c == 58 ) { +var s=spec.substring$I$I(start, i).toLowerCase$(); +if (p$1.isValidProtocol$S.apply(this, [s])) { +newProtocol=s; +start=i + 1; +}break; +}} +this.protocol=newProtocol; +if ((context != null ) && ((newProtocol == null ) || newProtocol.equalsIgnoreCase$S(context.protocol) ) ) { +if (handler == null ) { +handler=context.handler; +}if (context.path != null && context.path.startsWith$S("/") ) newProtocol=null; +if (newProtocol == null ) { +this.protocol=context.protocol; +this.authority=context.authority; +this.userInfo=context.userInfo; +this.host=context.host; +this.port=context.port; +this.file=context.file; +this.path=context.path; +isRelative=true; +}}if (this.protocol == null ) { +throw Clazz_new_(Clazz_load('java.net.MalformedURLException').c$$S,["no protocol: " + original]); +}if (handler == null && (handler=C$.getURLStreamHandler$S(this.protocol)) == null ) { +throw Clazz_new_(Clazz_load('java.net.MalformedURLException').c$$S,["unknown protocol: " + this.protocol]); +}this.handler=handler; +i=spec.indexOf$I$I("#", start); +if (i >= 0) { +this.ref=spec.substring$I$I(i + 1, limit); +limit=i; +}if (isRelative && start == limit ) { +this.query=context.query; +if (this.ref == null ) { +this.ref=context.ref; +}}handler.parseURL$java_net_URL$S$I$I(this, spec, start, limit); +} catch (e$$) { +if (Clazz_exceptionOf(e$$,"java.net.MalformedURLException")){ +var e = e$$; +{ +throw e; +} +} else if (Clazz_exceptionOf(e$$,"Exception")){ +var e = e$$; +{ +var exception=Clazz_new_(Clazz_load('java.net.MalformedURLException').c$$S,[e.getMessage$()]); +exception.initCause$Throwable(e); +throw exception; +} +} else { +throw e$$; +} +} +}, 1); + +Clazz_newMeth(C$, 'isValidProtocol$S', function (protocol) { +var len=protocol.length$(); +if (len < 1) return false; +var c=protocol.charAt$I(0); +if (!Character.isLetter$C(c)) return false; +for (var i=1; i < len; i++) { +c=protocol.charAt$I(i); +if (!Character.isLetterOrDigit$C(c) && c != "." && c != "+" && c != "-" ) { +return false; +}} +return true; +}, p$1); + +Clazz_newMeth(C$, 'set5$S$S$I$S$S', function (protocol, host, port, file, ref) { +{ +this.protocol=protocol; +this.host=host; +this.authority=port == -1 ? host : host + ":" + port ; +this.port=port; +this.file=file; +this.ref=ref; +this.hashCode=-1; +var q=file.lastIndexOf$I("?"); +if (q != -1) { +this.query=file.substring$I(q + 1); +this.path=file.substring$I$I(0, q); +} else this.path=file; +}}); + +Clazz_newMeth(C$, 'set$S$S$I$S$S$S$S$S', function (protocol, host, port, authority, userInfo, path, query, ref) { +{ +this.protocol=protocol; +this.host=host; +this.port=port; +this.file=query == null ? path : path + "?" + query ; +this.userInfo=userInfo; +this.path=path; +this.ref=ref; +this.hashCode=-1; +this.query=query; +this.authority=authority; +}}); + +Clazz_newMeth(C$, 'getQuery$', function () { +return this.query; +}); + +Clazz_newMeth(C$, 'getPath$', function () { +return this.path; +}); + +Clazz_newMeth(C$, 'getUserInfo$', function () { +return this.userInfo; +}); + +Clazz_newMeth(C$, 'getAuthority$', function () { +return this.authority; +}); + +Clazz_newMeth(C$, 'getPort$', function () { +return this.port; +}); + +Clazz_newMeth(C$, 'getDefaultPort$', function () { +return this.handler.getDefaultPort$(); +}); + +Clazz_newMeth(C$, 'getProtocol$', function () { +return this.protocol; +}); + +Clazz_newMeth(C$, 'getHost$', function () { +return this.host; +}); + +Clazz_newMeth(C$, 'getFile$', function () { +return this.file; +}); + +Clazz_newMeth(C$, 'getRef$', function () { +return this.ref; +}); + +Clazz_newMeth(C$, 'equals$O', function (obj) { +if (!(Clazz_instanceOf(obj, "java.net.URL"))) return false; +var u2=obj; +return this.handler.equals2$java_net_URL$java_net_URL(this, u2); +}); + +Clazz_newMeth(C$, 'hashCode$', function () { +if (this.hashCode != -1) return this.hashCode; +this.hashCode=this.handler.hashCode$java_net_URL(this); +return this.hashCode; +}); + +Clazz_newMeth(C$, 'sameFile$java_net_URL', function (other) { +return this.handler.sameFile$java_net_URL$java_net_URL(this, other); +}); + +Clazz_newMeth(C$, 'toString', function () { +return this.toExternalForm$(); +}); + +Clazz_newMeth(C$, 'toExternalForm$', function () { +return this.handler.toExternalForm$java_net_URL(this); +}); + +Clazz_newMeth(C$, 'openConnection$', function () { +return this.handler.openConnection$java_net_URL(this); +}); + +Clazz_newMeth(C$, 'openStream$', function () { +return this.openConnection$().getInputStream$(); +}); + +Clazz_newMeth(C$, 'getContent$', function () { +var bis=$I$(3).getAttachedStreamData$java_net_URL$Z(this, false); +return (bis == null ? this.openConnection$().getInputStream$() : bis); +}); + +Clazz_newMeth(C$, 'setURLStreamHandlerFactory$java_net_URLStreamHandlerFactory', function (fac) { +{ +if (C$.factory != null ) { +throw Clazz_new_($I$(4).c$$S,["factory already defined"]); +}var security=System.getSecurityManager$(); +if (security != null ) { +security.checkSetFactory$(); +}C$.handlers.clear$(); +C$.factory=fac; +}}, 1); + +Clazz_newMeth(C$, 'getURLStreamHandler$S', function (protocol) { +var handler=C$.handlers.get$O(protocol); +if (handler == null ) { +if (C$.factory == null ) { +try { +C$.setURLStreamHandlerFactory$java_net_URLStreamHandlerFactory(Clazz_forName("javajs.util.AjaxURLStreamHandlerFactory").newInstance$()); +} catch (e) { +if (Clazz_exceptionOf(e,"Exception")){ +} else { +throw e; +} +} +}if (C$.factory != null ) { +handler=C$.factory.createURLStreamHandler$(protocol); +}}return handler; +}, 1); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:30 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.net"),I$=[]; +var C$=Clazz_newInterface(P$, "URLStreamHandlerFactory"); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:30 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.text"),I$=[]; +var C$=Clazz_newInterface(P$, "CharacterIterator", null, null, 'Cloneable'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:37 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.text"),p$1={},I$=[[0,'java.text.FieldPosition','java.util.Hashtable','java.text.DigitList','java.util.Locale','sun.util.resources.LocaleData','java.text.DecimalFormatSymbols',['java.text.NumberFormat','.Field'],'java.text.CharacterIteratorFieldDelegate','StringBuffer','java.text.ParsePosition','InternalError','java.util.ArrayList']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "DecimalFormat", null, 'java.text.NumberFormat'); +C$.EmptyFieldPositionArray=null; +C$.$cachedLocaleData=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.EmptyFieldPositionArray=Clazz_array($I$(1), [0]); +C$.$cachedLocaleData=Clazz_new_($I$(2).c$$I,[3]); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.digitList=null; +this.positivePrefix=null; +this.positiveSuffix=null; +this.negativePrefix=null; +this.negativeSuffix=null; +this.posPrefixPattern=null; +this.posSuffixPattern=null; +this.negPrefixPattern=null; +this.negSuffixPattern=null; +this.multiplier=0; +this.groupingSize=0; +this.decimalSeparatorAlwaysShown=false; +this.parseBigDecimal=false; +this.isCurrencyFormat=false; +this.symbols=null; +this.useExponentialNotation=false; +this.positivePrefixFieldPositions=null; +this.positiveSuffixFieldPositions=null; +this.negativePrefixFieldPositions=null; +this.negativeSuffixFieldPositions=null; +this.minExponentDigits=0; +this.$maximumIntegerDigits=0; +this.$minimumIntegerDigits=0; +this.$maximumFractionDigits=0; +this.$minimumFractionDigits=0; +this.roundingMode=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.digitList=Clazz_new_($I$(3)); +this.positivePrefix=""; +this.positiveSuffix=""; +this.negativePrefix="-"; +this.negativeSuffix=""; +this.multiplier=1; +this.groupingSize=($b$[0] = 3, $b$[0]); +this.decimalSeparatorAlwaysShown=false; +this.parseBigDecimal=false; +this.isCurrencyFormat=false; +this.symbols=null; +this.$maximumIntegerDigits=C$.superclazz.prototype.getMaximumIntegerDigits$.apply(this, []); +this.$minimumIntegerDigits=C$.superclazz.prototype.getMinimumIntegerDigits$.apply(this, []); +this.$maximumFractionDigits=C$.superclazz.prototype.getMaximumFractionDigits$.apply(this, []); +this.$minimumFractionDigits=C$.superclazz.prototype.getMinimumFractionDigits$.apply(this, []); +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +Clazz_super_(C$, this,1); +var def=$I$(4).getDefault$(); +var pattern=C$.$cachedLocaleData.get$O(def); +if (pattern == null ) { +var rb=$I$(5).getNumberFormatData$java_util_Locale(def); +var all=rb.getStringArray$S("NumberPatterns"); +pattern=all[0]; +C$.$cachedLocaleData.put$TK$TV(def, pattern); +}this.symbols=Clazz_new_($I$(6).c$$java_util_Locale,[def]); +p$1.applyPattern$S$Z.apply(this, [pattern, false]); +}, 1); + +Clazz_newMeth(C$, 'c$$S', function (pattern) { +Clazz_super_(C$, this,1); +this.symbols=Clazz_new_($I$(6).c$$java_util_Locale,[$I$(4).getDefault$()]); +p$1.applyPattern$S$Z.apply(this, [pattern, false]); +}, 1); + +Clazz_newMeth(C$, 'c$$S$java_text_DecimalFormatSymbols', function (pattern, symbols) { +Clazz_super_(C$, this,1); +this.symbols=symbols.clone$(); +p$1.applyPattern$S$Z.apply(this, [pattern, false]); +}, 1); + +Clazz_newMeth(C$, 'format$O$StringBuffer$java_text_FieldPosition', function (number, toAppendTo, pos) { +if (Clazz_instanceOf(number, "java.lang.Long") || Clazz_instanceOf(number, "java.lang.Integer") || Clazz_instanceOf(number, "java.lang.Short") || Clazz_instanceOf(number, "java.lang.Byte") ) { +return this.format$J$StringBuffer$java_text_FieldPosition((number).longValue$(), toAppendTo, pos); +} else if (Clazz_instanceOf(number, "java.lang.Number")) { +return this.format$D$StringBuffer$java_text_FieldPosition((number).doubleValue$(), toAppendTo, pos); +} else { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["Cannot format given Object as a Number"]); +}}); + +Clazz_newMeth(C$, 'format$D$StringBuffer$java_text_FieldPosition', function (number, result, fieldPosition) { +fieldPosition.setBeginIndex$I(0); +fieldPosition.setEndIndex$I(0); +var isInt=(number == (number|0) && Math.abs(number) < 2147483647 ); +if (isInt) return p$1.formatLong$J$StringBuffer$java_text_Format_FieldDelegate.apply(this, [(number|0), result, fieldPosition.getFieldDelegate$()]); + else return p$1.formatDouble$D$StringBuffer$java_text_Format_FieldDelegate.apply(this, [number, result, fieldPosition.getFieldDelegate$()]); +}); + +Clazz_newMeth(C$, 'formatDouble$D$StringBuffer$java_text_Format_FieldDelegate', function (number, result, delegate) { +if (Double.isNaN$D(number) || (Double.isInfinite$D(number) && this.multiplier == 0 ) ) { +var iFieldStart=result.length$(); +result.append$S(this.symbols.getNaN$()); +delegate.formatted$I$java_text_Format_Field$O$I$I$StringBuffer(0, $I$(7).INTEGER, $I$(7).INTEGER, iFieldStart, result.length$(), result); +return result; +}var isNegative=!!(((number < 0.0 ) || (number == 0.0 && 1 / number < 0.0 ) ) ^ (this.multiplier < 0)); +if (this.multiplier != 1) { +number *= this.multiplier; +}if (Double.isInfinite$D(number)) { +if (isNegative) { +p$1.append$StringBuffer$S$java_text_Format_FieldDelegate$java_text_FieldPositionA$java_text_Format_Field.apply(this, [result, this.negativePrefix, delegate, p$1.getNegativePrefixFieldPositions.apply(this, []), $I$(7).SIGN]); +} else { +p$1.append$StringBuffer$S$java_text_Format_FieldDelegate$java_text_FieldPositionA$java_text_Format_Field.apply(this, [result, this.positivePrefix, delegate, p$1.getPositivePrefixFieldPositions.apply(this, []), $I$(7).SIGN]); +}var iFieldStart=result.length$(); +result.append$S(this.symbols.getInfinity$()); +delegate.formatted$I$java_text_Format_Field$O$I$I$StringBuffer(0, $I$(7).INTEGER, $I$(7).INTEGER, iFieldStart, result.length$(), result); +if (isNegative) { +p$1.append$StringBuffer$S$java_text_Format_FieldDelegate$java_text_FieldPositionA$java_text_Format_Field.apply(this, [result, this.negativeSuffix, delegate, p$1.getNegativeSuffixFieldPositions.apply(this, []), $I$(7).SIGN]); +} else { +p$1.append$StringBuffer$S$java_text_Format_FieldDelegate$java_text_FieldPositionA$java_text_Format_Field.apply(this, [result, this.positiveSuffix, delegate, p$1.getPositiveSuffixFieldPositions.apply(this, []), $I$(7).SIGN]); +}return result; +}if (isNegative) { +number=-number; +}Clazz_assert(C$, this, function(){return (number >= 0 && !Double.isInfinite$D(number) )}); +{ +var maxIntDigits=C$.superclazz.prototype.getMaximumIntegerDigits$.apply(this, []); +var minIntDigits=C$.superclazz.prototype.getMinimumIntegerDigits$.apply(this, []); +var maxFraDigits=C$.superclazz.prototype.getMaximumFractionDigits$.apply(this, []); +var minFraDigits=C$.superclazz.prototype.getMinimumFractionDigits$.apply(this, []); +this.digitList.set$Z$D$I$Z(isNegative, number, this.useExponentialNotation ? maxIntDigits + maxFraDigits : maxFraDigits, !this.useExponentialNotation); +return p$1.subformat$StringBuffer$java_text_Format_FieldDelegate$Z$Z$I$I$I$I.apply(this, [result, delegate, isNegative, false, maxIntDigits, minIntDigits, maxFraDigits, minFraDigits]); +}}, p$1); + +Clazz_newMeth(C$, 'format$J$StringBuffer$java_text_FieldPosition', function (number, result, fieldPosition) { +fieldPosition.setBeginIndex$I(0); +fieldPosition.setEndIndex$I(0); +return p$1.formatLong$J$StringBuffer$java_text_Format_FieldDelegate.apply(this, [number, result, fieldPosition.getFieldDelegate$()]); +}); + +Clazz_newMeth(C$, 'formatLong$J$StringBuffer$java_text_Format_FieldDelegate', function (number, result, delegate) { +var isNegative=(number < 0); +if (isNegative) { +number=-number; +}if (number < 0) { +} else if (this.multiplier != 1 && this.multiplier != 0 ) { +var cutoff=(9223372036854775807/this.multiplier|0); +if (cutoff < 0) { +cutoff=-cutoff; +}}number*=this.multiplier; +if (number == 0) { +isNegative=false; +} else { +if (this.multiplier < 0) { +number=-number; +isNegative=!isNegative; +}}{ +var maxIntDigits=C$.superclazz.prototype.getMaximumIntegerDigits$.apply(this, []); +var minIntDigits=C$.superclazz.prototype.getMinimumIntegerDigits$.apply(this, []); +var maxFraDigits=C$.superclazz.prototype.getMaximumFractionDigits$.apply(this, []); +var minFraDigits=C$.superclazz.prototype.getMinimumFractionDigits$.apply(this, []); +this.digitList.setLong$Z$J$I(isNegative, number, this.useExponentialNotation ? maxIntDigits + maxFraDigits : 0); +return p$1.subformat$StringBuffer$java_text_Format_FieldDelegate$Z$Z$I$I$I$I.apply(this, [result, delegate, isNegative, true, maxIntDigits, minIntDigits, maxFraDigits, minFraDigits]); +}}, p$1); + +Clazz_newMeth(C$, 'formatToCharacterIterator$O', function (obj) { +var delegate=Clazz_new_($I$(8)); +var sb=Clazz_new_($I$(9)); +if (Clazz_instanceOf(obj, "java.lang.Double") || Clazz_instanceOf(obj, "java.lang.Float") ) { +p$1.formatDouble$D$StringBuffer$java_text_Format_FieldDelegate.apply(this, [(obj).doubleValue$(), sb, delegate]); +} else if (Clazz_instanceOf(obj, "java.lang.Long") || Clazz_instanceOf(obj, "java.lang.Integer") || Clazz_instanceOf(obj, "java.lang.Short") || Clazz_instanceOf(obj, "java.lang.Byte") ) { +p$1.formatLong$J$StringBuffer$java_text_Format_FieldDelegate.apply(this, [(obj).longValue$(), sb, delegate]); +} else if (obj == null ) { +throw Clazz_new_(Clazz_load('NullPointerException').c$$S,["formatToCharacterIterator must be passed non-null object"]); +} else { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["Cannot format given Object as a Number"]); +}return delegate.getIterator$S(sb.toString()); +}); + +Clazz_newMeth(C$, 'subformat$StringBuffer$java_text_Format_FieldDelegate$Z$Z$I$I$I$I', function (result, delegate, isNegative, isInteger, maxIntDigits, minIntDigits, maxFraDigits, minFraDigits) { +var zero=this.symbols.getZeroDigit$(); +var zeroDelta=zero.$c() - 48; +var grouping=this.symbols.getGroupingSeparator$(); +var decimal=this.isCurrencyFormat ? this.symbols.getMonetaryDecimalSeparator$() : this.symbols.getDecimalSeparator$(); +if (this.digitList.isZero$()) { +this.digitList.decimalAt=0; +}if (isNegative) { +p$1.append$StringBuffer$S$java_text_Format_FieldDelegate$java_text_FieldPositionA$java_text_Format_Field.apply(this, [result, this.negativePrefix, delegate, p$1.getNegativePrefixFieldPositions.apply(this, []), $I$(7).SIGN]); +} else { +p$1.append$StringBuffer$S$java_text_Format_FieldDelegate$java_text_FieldPositionA$java_text_Format_Field.apply(this, [result, this.positivePrefix, delegate, p$1.getPositivePrefixFieldPositions.apply(this, []), $I$(7).SIGN]); +}if (this.useExponentialNotation) { +var iFieldStart=result.length$(); +var iFieldEnd=-1; +var fFieldStart=-1; +var exponent=this.digitList.decimalAt; +var repeat=maxIntDigits; +var minimumIntegerDigits=minIntDigits; +if (repeat > 1 && repeat > minIntDigits ) { +if (exponent >= 1) { +exponent=(((exponent - 1)/repeat|0)) * repeat; +} else { +exponent=(((exponent - repeat)/repeat|0)) * repeat; +}minimumIntegerDigits=1; +} else { +exponent-=minimumIntegerDigits; +}var minimumDigits=minIntDigits + minFraDigits; +if (minimumDigits < 0) { +minimumDigits=2147483647; +}var integerDigits=this.digitList.isZero$() ? minimumIntegerDigits : this.digitList.decimalAt - exponent; +if (minimumDigits < integerDigits) { +minimumDigits=integerDigits; +}var totalDigits=this.digitList.count; +if (minimumDigits > totalDigits) { +totalDigits=minimumDigits; +}var addedDecimalSeparator=false; +for (var i=0; i < totalDigits; ++i) { +if (i == integerDigits) { +iFieldEnd=result.length$(); +result.append$C(decimal); +addedDecimalSeparator=true; +fFieldStart=result.length$(); +}result.append$C((i < this.digitList.count) ? String.fromCharCode(((this.digitList.digits[i]).$c() + zeroDelta)) : zero); +} +if (this.decimalSeparatorAlwaysShown && totalDigits == integerDigits ) { +iFieldEnd=result.length$(); +result.append$C(decimal); +addedDecimalSeparator=true; +fFieldStart=result.length$(); +}if (iFieldEnd == -1) { +iFieldEnd=result.length$(); +}delegate.formatted$I$java_text_Format_Field$O$I$I$StringBuffer(0, $I$(7).INTEGER, $I$(7).INTEGER, iFieldStart, iFieldEnd, result); +if (addedDecimalSeparator) { +delegate.formatted$java_text_Format_Field$O$I$I$StringBuffer($I$(7).DECIMAL_SEPARATOR, $I$(7).DECIMAL_SEPARATOR, iFieldEnd, fFieldStart, result); +}if (fFieldStart == -1) { +fFieldStart=result.length$(); +}delegate.formatted$I$java_text_Format_Field$O$I$I$StringBuffer(1, $I$(7).FRACTION, $I$(7).FRACTION, fFieldStart, result.length$(), result); +var fieldStart=result.length$(); +result.append$S(this.symbols.getExponentSeparator$()); +delegate.formatted$java_text_Format_Field$O$I$I$StringBuffer($I$(7).EXPONENT_SYMBOL, $I$(7).EXPONENT_SYMBOL, fieldStart, result.length$(), result); +if (this.digitList.isZero$()) { +exponent=0; +}var negativeExponent=exponent < 0; +if (negativeExponent) { +exponent=-exponent; +fieldStart=result.length$(); +result.append$C(this.symbols.getMinusSign$()); +delegate.formatted$java_text_Format_Field$O$I$I$StringBuffer($I$(7).EXPONENT_SIGN, $I$(7).EXPONENT_SIGN, fieldStart, result.length$(), result); +}this.digitList.setExp$Z$J(negativeExponent, exponent); +var eFieldStart=result.length$(); +for (var i=this.digitList.decimalAt; i < this.minExponentDigits; ++i) { +result.append$C(zero); +} +for (var i=0; i < this.digitList.decimalAt; ++i) { +result.append$C((i < this.digitList.count) ? String.fromCharCode(((this.digitList.digits[i]).$c() + zeroDelta)) : zero); +} +delegate.formatted$java_text_Format_Field$O$I$I$StringBuffer($I$(7).EXPONENT, $I$(7).EXPONENT, eFieldStart, result.length$(), result); +} else { +var iFieldStart=result.length$(); +var count=minIntDigits; +var digitIndex=0; +if (this.digitList.decimalAt > 0 && count < this.digitList.decimalAt ) { +count=this.digitList.decimalAt; +}if (count > maxIntDigits) { +count=maxIntDigits; +digitIndex=this.digitList.decimalAt - count; +}var sizeBeforeIntegerPart=result.length$(); +for (var i=count - 1; i >= 0; --i) { +if (i < this.digitList.decimalAt && digitIndex < this.digitList.count ) { +result.append$C(String.fromCharCode(((this.digitList.digits[digitIndex++]).$c() + zeroDelta))); +} else { +result.append$C(zero); +}if (this.isGroupingUsed$() && i > 0 && (this.groupingSize != 0) && (i % this.groupingSize == 0) ) { +var gStart=result.length$(); +result.append$C(grouping); +delegate.formatted$java_text_Format_Field$O$I$I$StringBuffer($I$(7).GROUPING_SEPARATOR, $I$(7).GROUPING_SEPARATOR, gStart, result.length$(), result); +}} +var fractionPresent=(minFraDigits > 0) || (!isInteger && digitIndex < this.digitList.count ) ; +if (!fractionPresent && result.length$() == sizeBeforeIntegerPart ) { +result.append$C(zero); +}delegate.formatted$I$java_text_Format_Field$O$I$I$StringBuffer(0, $I$(7).INTEGER, $I$(7).INTEGER, iFieldStart, result.length$(), result); +var sStart=result.length$(); +if (this.decimalSeparatorAlwaysShown || fractionPresent ) { +result.append$C(decimal); +}if (sStart != result.length$()) { +delegate.formatted$java_text_Format_Field$O$I$I$StringBuffer($I$(7).DECIMAL_SEPARATOR, $I$(7).DECIMAL_SEPARATOR, sStart, result.length$(), result); +}var fFieldStart=result.length$(); +for (var i=0; i < maxFraDigits; ++i) { +if (i >= minFraDigits && (isInteger || digitIndex >= this.digitList.count ) ) { +break; +}if (-1 - i > (this.digitList.decimalAt - 1)) { +result.append$C(zero); +continue; +}if (!isInteger && digitIndex < this.digitList.count ) { +result.append$C(String.fromCharCode(((this.digitList.digits[digitIndex++]).$c() + zeroDelta))); +} else { +result.append$C(zero); +}} +delegate.formatted$I$java_text_Format_Field$O$I$I$StringBuffer(1, $I$(7).FRACTION, $I$(7).FRACTION, fFieldStart, result.length$(), result); +}if (isNegative) { +p$1.append$StringBuffer$S$java_text_Format_FieldDelegate$java_text_FieldPositionA$java_text_Format_Field.apply(this, [result, this.negativeSuffix, delegate, p$1.getNegativeSuffixFieldPositions.apply(this, []), $I$(7).SIGN]); +} else { +p$1.append$StringBuffer$S$java_text_Format_FieldDelegate$java_text_FieldPositionA$java_text_Format_Field.apply(this, [result, this.positiveSuffix, delegate, p$1.getPositiveSuffixFieldPositions.apply(this, []), $I$(7).SIGN]); +}return result; +}, p$1); + +Clazz_newMeth(C$, 'append$StringBuffer$S$java_text_Format_FieldDelegate$java_text_FieldPositionA$java_text_Format_Field', function (result, string, delegate, positions, signAttribute) { +var start=result.length$(); +if (string.length$() > 0) { +result.append$S(string); +for (var counter=0, max=positions.length; counter < max; counter++) { +var fp=positions[counter]; +var attribute=fp.getFieldAttribute$(); +if (attribute === $I$(7).SIGN ) { +attribute=signAttribute; +}delegate.formatted$java_text_Format_Field$O$I$I$StringBuffer(attribute, attribute, start + fp.getBeginIndex$(), start + fp.getEndIndex$(), result); +} +}}, p$1); + +Clazz_newMeth(C$, 'parse$S$java_text_ParsePosition', function (text, pos) { +if (text.regionMatches$I$S$I$I(pos.index, this.symbols.getNaN$(), 0, this.symbols.getNaN$().length$())) { +pos.index=pos.index + this.symbols.getNaN$().length$(); +return new Double(NaN); +}var status=Clazz_array(Boolean.TYPE, [2]); +if (!p$1.subparse$S$java_text_ParsePosition$S$S$java_text_DigitList$Z$ZA.apply(this, [text, pos, this.positivePrefix, this.negativePrefix, this.digitList, false, status])) { +return null; +}if (status[0]) { +if (status[1] == (this.multiplier >= 0) ) { +return new Double(Infinity); +} else { +return new Double(-Infinity); +}}if (this.multiplier == 0) { +if (this.digitList.isZero$()) { +return new Double(NaN); +} else if (status[1]) { +return new Double(Infinity); +} else { +return new Double(-Infinity); +}}var gotDouble=true; +var gotLongMinimum=false; +var doubleResult=0.0; +var longResult=0; +if (this.digitList.fitsIntoLong$Z$Z(status[1], this.isParseIntegerOnly$())) { +gotDouble=false; +longResult=this.digitList.getLong$(); +if (longResult < 0) { +gotLongMinimum=true; +}} else { +doubleResult=this.digitList.getDouble$(); +}if (this.multiplier != 1) { +if (gotDouble) { +doubleResult /= this.multiplier; +} else { +if (longResult % this.multiplier == 0) { +longResult=(longResult/this.multiplier|0); +} else { +doubleResult=(longResult) / this.multiplier; +gotDouble=true; +}}}if (!status[1] && !gotLongMinimum ) { +doubleResult=-doubleResult; +longResult=-longResult; +}if (this.multiplier != 1 && gotDouble ) { +longResult=(doubleResult|0); +gotDouble=((doubleResult != longResult ) || (doubleResult == 0.0 && 1 / doubleResult < 0.0 ) ) && !this.isParseIntegerOnly$() ; +}return gotDouble ? new Double(doubleResult) : new Long(longResult); +}); + +Clazz_newMeth(C$, 'subparse$S$java_text_ParsePosition$S$S$java_text_DigitList$Z$ZA', function (text, parsePosition, positivePrefix, negativePrefix, digits, isExponent, status) { +var position=parsePosition.index; +var oldStart=parsePosition.index; +var backup; +var gotPositive; +var gotNegative; +gotPositive=text.regionMatches$I$S$I$I(position, positivePrefix, 0, positivePrefix.length$()); +gotNegative=text.regionMatches$I$S$I$I(position, negativePrefix, 0, negativePrefix.length$()); +if (gotPositive && gotNegative ) { +if (positivePrefix.length$() > negativePrefix.length$()) { +gotNegative=false; +} else if (positivePrefix.length$() < negativePrefix.length$()) { +gotPositive=false; +}}if (gotPositive) { +position+=positivePrefix.length$(); +} else if (gotNegative) { +position+=negativePrefix.length$(); +} else { +parsePosition.errorIndex=position; +return false; +}status[0]=false; +if (!isExponent && text.regionMatches$I$S$I$I(position, this.symbols.getInfinity$(), 0, this.symbols.getInfinity$().length$()) ) { +position+=this.symbols.getInfinity$().length$(); +status[0]=true; +} else { +digits.decimalAt=digits.count=0; +var zero=this.symbols.getZeroDigit$(); +var decimal=this.isCurrencyFormat ? this.symbols.getMonetaryDecimalSeparator$() : this.symbols.getDecimalSeparator$(); +var grouping=this.symbols.getGroupingSeparator$(); +var exponentString=this.symbols.getExponentSeparator$(); +var sawDecimal=false; +var sawExponent=false; +var sawDigit=false; +var exponent=0; +var digitCount=0; +backup=-1; +for (; position < text.length$(); ++position) { +var ch=text.charAt$I(position); +var digit=ch.$c() - zero.$c(); +if (digit < 0 || digit > 9 ) { +digit=Character.digit$C$I(ch, 10); +}if (digit == 0) { +backup=-1; +sawDigit=true; +if (digits.count == 0) { +if (!sawDecimal) { +continue; +}--digits.decimalAt; +} else { +++digitCount; +digits.append$C(String.fromCharCode((digit + 48))); +}} else if (digit > 0 && digit <= 9 ) { +sawDigit=true; +++digitCount; +digits.append$C(String.fromCharCode((digit + 48))); +backup=-1; +} else if (!isExponent && ch == decimal ) { +if (this.isParseIntegerOnly$() || sawDecimal ) { +break; +}digits.decimalAt=digitCount; +sawDecimal=true; +} else if (!isExponent && ch == grouping && this.isGroupingUsed$() ) { +if (sawDecimal) { +break; +}backup=position; +} else if (!isExponent && text.regionMatches$I$S$I$I(position, exponentString, 0, exponentString.length$()) && !sawExponent ) { +var pos=Clazz_new_($I$(10).c$$I,[position + exponentString.length$()]); +var stat=Clazz_array(Boolean.TYPE, [2]); +var exponentDigits=Clazz_new_($I$(3)); +if (p$1.subparse$S$java_text_ParsePosition$S$S$java_text_DigitList$Z$ZA.apply(this, [text, pos, "", Character.toString$C(this.symbols.getMinusSign$()), exponentDigits, true, stat]) && exponentDigits.fitsIntoLong$Z$Z(stat[1], true) ) { +position=pos.index; +exponent=(exponentDigits.getLong$()|0); +if (!stat[1]) { +exponent=-exponent; +}sawExponent=true; +}break; +} else { +break; +}} +if (backup != -1) { +position=backup; +}if (!sawDecimal) { +digits.decimalAt=digitCount; +}digits.decimalAt+=exponent; +if (!sawDigit && digitCount == 0 ) { +parsePosition.index=oldStart; +parsePosition.errorIndex=oldStart; +return false; +}}if (!isExponent) { +if (gotPositive) { +gotPositive=text.regionMatches$I$S$I$I(position, this.positiveSuffix, 0, this.positiveSuffix.length$()); +}if (gotNegative) { +gotNegative=text.regionMatches$I$S$I$I(position, this.negativeSuffix, 0, this.negativeSuffix.length$()); +}if (gotPositive && gotNegative ) { +if (this.positiveSuffix.length$() > this.negativeSuffix.length$()) { +gotNegative=false; +} else if (this.positiveSuffix.length$() < this.negativeSuffix.length$()) { +gotPositive=false; +}}if (gotPositive == gotNegative ) { +parsePosition.errorIndex=position; +return false; +}parsePosition.index=position + (gotPositive ? this.positiveSuffix.length$() : this.negativeSuffix.length$()); +} else { +parsePosition.index=position; +}status[1]=gotPositive; +if (parsePosition.index == oldStart) { +parsePosition.errorIndex=position; +return false; +}return true; +}, p$1); + +Clazz_newMeth(C$, 'getDecimalFormatSymbols$', function () { +try { +return this.symbols.clone$(); +} catch (foo) { +if (Clazz_exceptionOf(foo,"Exception")){ +return null; +} else { +throw foo; +} +} +}); + +Clazz_newMeth(C$, 'setDecimalFormatSymbols$java_text_DecimalFormatSymbols', function (newSymbols) { +try { +this.symbols=newSymbols.clone$(); +p$1.expandAffixes.apply(this, []); +} catch (foo) { +if (Clazz_exceptionOf(foo,"Exception")){ +} else { +throw foo; +} +} +}); + +Clazz_newMeth(C$, 'getPositivePrefix$', function () { +return this.positivePrefix; +}); + +Clazz_newMeth(C$, 'setPositivePrefix$S', function (newValue) { +this.positivePrefix=newValue; +this.posPrefixPattern=null; +this.positivePrefixFieldPositions=null; +}); + +Clazz_newMeth(C$, 'getPositivePrefixFieldPositions', function () { +if (this.positivePrefixFieldPositions == null ) { +if (this.posPrefixPattern != null ) { +this.positivePrefixFieldPositions=p$1.expandAffix$S.apply(this, [this.posPrefixPattern]); +} else { +this.positivePrefixFieldPositions=C$.EmptyFieldPositionArray; +}}return this.positivePrefixFieldPositions; +}, p$1); + +Clazz_newMeth(C$, 'getNegativePrefix$', function () { +return this.negativePrefix; +}); + +Clazz_newMeth(C$, 'setNegativePrefix$S', function (newValue) { +this.negativePrefix=newValue; +this.negPrefixPattern=null; +}); + +Clazz_newMeth(C$, 'getNegativePrefixFieldPositions', function () { +if (this.negativePrefixFieldPositions == null ) { +if (this.negPrefixPattern != null ) { +this.negativePrefixFieldPositions=p$1.expandAffix$S.apply(this, [this.negPrefixPattern]); +} else { +this.negativePrefixFieldPositions=C$.EmptyFieldPositionArray; +}}return this.negativePrefixFieldPositions; +}, p$1); + +Clazz_newMeth(C$, 'getPositiveSuffix$', function () { +return this.positiveSuffix; +}); + +Clazz_newMeth(C$, 'setPositiveSuffix$S', function (newValue) { +this.positiveSuffix=newValue; +this.posSuffixPattern=null; +}); + +Clazz_newMeth(C$, 'getPositiveSuffixFieldPositions', function () { +if (this.positiveSuffixFieldPositions == null ) { +if (this.posSuffixPattern != null ) { +this.positiveSuffixFieldPositions=p$1.expandAffix$S.apply(this, [this.posSuffixPattern]); +} else { +this.positiveSuffixFieldPositions=C$.EmptyFieldPositionArray; +}}return this.positiveSuffixFieldPositions; +}, p$1); + +Clazz_newMeth(C$, 'getNegativeSuffix$', function () { +return this.negativeSuffix; +}); + +Clazz_newMeth(C$, 'setNegativeSuffix$S', function (newValue) { +this.negativeSuffix=newValue; +this.negSuffixPattern=null; +}); + +Clazz_newMeth(C$, 'getNegativeSuffixFieldPositions', function () { +if (this.negativeSuffixFieldPositions == null ) { +if (this.negSuffixPattern != null ) { +this.negativeSuffixFieldPositions=p$1.expandAffix$S.apply(this, [this.negSuffixPattern]); +} else { +this.negativeSuffixFieldPositions=C$.EmptyFieldPositionArray; +}}return this.negativeSuffixFieldPositions; +}, p$1); + +Clazz_newMeth(C$, 'getMultiplier$', function () { +return this.multiplier; +}); + +Clazz_newMeth(C$, 'setMultiplier$I', function (newValue) { +this.multiplier=newValue; +}); + +Clazz_newMeth(C$, 'getGroupingSize$', function () { +return this.groupingSize; +}); + +Clazz_newMeth(C$, 'setGroupingSize$I', function (newValue) { +this.groupingSize=($b$[0] = (newValue|0), $b$[0]); +}); + +Clazz_newMeth(C$, 'isDecimalSeparatorAlwaysShown$', function () { +return this.decimalSeparatorAlwaysShown; +}); + +Clazz_newMeth(C$, 'setDecimalSeparatorAlwaysShown$Z', function (newValue) { +this.decimalSeparatorAlwaysShown=newValue; +}); + +Clazz_newMeth(C$, 'isParseBigDecimal$', function () { +return this.parseBigDecimal; +}); + +Clazz_newMeth(C$, 'setParseBigDecimal$Z', function (newValue) { +this.parseBigDecimal=newValue; +}); + +Clazz_newMeth(C$, 'clone$', function () { +try { +var other=C$.superclazz.prototype.clone$.apply(this, []); +other.symbols=this.symbols.clone$(); +other.digitList=this.digitList.clone$(); +return other; +} catch (e) { +if (Clazz_exceptionOf(e,"Exception")){ +throw Clazz_new_($I$(11)); +} else { +throw e; +} +} +}); + +Clazz_newMeth(C$, 'equals$O', function (obj) { +if (obj == null ) return false; +if (!C$.superclazz.prototype.equals$O.apply(this, [obj])) return false; +var other=obj; +return ((this.posPrefixPattern == other.posPrefixPattern && this.positivePrefix.equals$O(other.positivePrefix) ) || (this.posPrefixPattern != null && this.posPrefixPattern.equals$O(other.posPrefixPattern) ) ) && ((this.posSuffixPattern == other.posSuffixPattern && this.positiveSuffix.equals$O(other.positiveSuffix) ) || (this.posSuffixPattern != null && this.posSuffixPattern.equals$O(other.posSuffixPattern) ) ) && ((this.negPrefixPattern == other.negPrefixPattern && this.negativePrefix.equals$O(other.negativePrefix) ) || (this.negPrefixPattern != null && this.negPrefixPattern.equals$O(other.negPrefixPattern) ) ) && ((this.negSuffixPattern == other.negSuffixPattern && this.negativeSuffix.equals$O(other.negativeSuffix) ) || (this.negSuffixPattern != null && this.negSuffixPattern.equals$O(other.negSuffixPattern) ) ) && this.multiplier == other.multiplier && this.groupingSize == other.groupingSize && this.decimalSeparatorAlwaysShown == other.decimalSeparatorAlwaysShown && this.parseBigDecimal == other.parseBigDecimal && this.useExponentialNotation == other.useExponentialNotation && (!this.useExponentialNotation || this.minExponentDigits == other.minExponentDigits ) && this.$maximumIntegerDigits == other.$maximumIntegerDigits && this.$minimumIntegerDigits == other.$minimumIntegerDigits && this.$maximumFractionDigits == other.$maximumFractionDigits && this.$minimumFractionDigits == other.$minimumFractionDigits && this.roundingMode === other.roundingMode && this.symbols.equals$O(other.symbols) ; +}); + +Clazz_newMeth(C$, 'hashCode$', function () { +return C$.superclazz.prototype.hashCode$.apply(this, []) * 37 + this.positivePrefix.hashCode$(); +}); + +Clazz_newMeth(C$, 'toPattern$', function () { +return p$1.toPattern$Z.apply(this, [false]); +}); + +Clazz_newMeth(C$, 'toLocalizedPattern$', function () { +return p$1.toPattern$Z.apply(this, [true]); +}); + +Clazz_newMeth(C$, 'expandAffixes', function () { +var buffer=Clazz_new_($I$(9)); +if (this.posPrefixPattern != null ) { +this.positivePrefix=p$1.expandAffix$S$StringBuffer.apply(this, [this.posPrefixPattern, buffer]); +this.positivePrefixFieldPositions=null; +}if (this.posSuffixPattern != null ) { +this.positiveSuffix=p$1.expandAffix$S$StringBuffer.apply(this, [this.posSuffixPattern, buffer]); +this.positiveSuffixFieldPositions=null; +}if (this.negPrefixPattern != null ) { +this.negativePrefix=p$1.expandAffix$S$StringBuffer.apply(this, [this.negPrefixPattern, buffer]); +this.negativePrefixFieldPositions=null; +}if (this.negSuffixPattern != null ) { +this.negativeSuffix=p$1.expandAffix$S$StringBuffer.apply(this, [this.negSuffixPattern, buffer]); +this.negativeSuffixFieldPositions=null; +}}, p$1); + +Clazz_newMeth(C$, 'expandAffix$S$StringBuffer', function (pattern, buffer) { +buffer.setLength$I(0); +for (var i=0; i < pattern.length$(); ) { +var c=pattern.charAt$I(i++); +if (c == "\'") { +c=pattern.charAt$I(i++); +switch (c.$c()) { +case 164: +if (i < pattern.length$() && pattern.charAt$I(i) == "\u00a4" ) { +++i; +buffer.append$S(this.symbols.getInternationalCurrencySymbol$()); +} else { +buffer.append$S(this.symbols.getCurrencySymbol$()); +}continue; +case 37: +c=this.symbols.getPercent$(); +break; +case 8240: +c=this.symbols.getPerMill$(); +break; +case 45: +c=this.symbols.getMinusSign$(); +break; +} +}buffer.append$C(c); +} +return buffer.toString(); +}, p$1); + +Clazz_newMeth(C$, 'expandAffix$S', function (pattern) { +var positions=null; +var stringIndex=0; +for (var i=0; i < pattern.length$(); ) { +var c=pattern.charAt$I(i++); +if (c == "\'") { +var field=-1; +var fieldID=null; +c=pattern.charAt$I(i++); +switch (c.$c()) { +case 164: +var string; +if (i < pattern.length$() && pattern.charAt$I(i) == "\u00a4" ) { +++i; +string=this.symbols.getInternationalCurrencySymbol$(); +} else { +string=this.symbols.getCurrencySymbol$(); +}if (string.length$() > 0) { +if (positions == null ) { +positions=Clazz_new_($I$(12).c$$I,[2]); +}var fp=Clazz_new_($I$(1).c$$java_text_Format_Field,[$I$(7).CURRENCY]); +fp.setBeginIndex$I(stringIndex); +fp.setEndIndex$I(stringIndex + string.length$()); +positions.add$TE(fp); +stringIndex+=string.length$(); +}continue; +case 37: +c=this.symbols.getPercent$(); +field=-1; +fieldID=$I$(7).PERCENT; +break; +case 8240: +c=this.symbols.getPerMill$(); +field=-1; +fieldID=$I$(7).PERMILLE; +break; +case 45: +c=this.symbols.getMinusSign$(); +field=-1; +fieldID=$I$(7).SIGN; +break; +} +if (fieldID != null ) { +if (positions == null ) { +positions=Clazz_new_($I$(12).c$$I,[2]); +}var fp=Clazz_new_($I$(1).c$$java_text_Format_Field$I,[fieldID, field]); +fp.setBeginIndex$I(stringIndex); +fp.setEndIndex$I(stringIndex + 1); +positions.add$TE(fp); +}}stringIndex++; +} +if (positions != null ) { +return positions.toArray$TTA(C$.EmptyFieldPositionArray); +}return C$.EmptyFieldPositionArray; +}, p$1); + +Clazz_newMeth(C$, 'appendAffix$StringBuffer$S$S$Z', function (buffer, affixPattern, expAffix, localized) { +if (affixPattern == null ) { +p$1.appendAffix$StringBuffer$S$Z.apply(this, [buffer, expAffix, localized]); +} else { +var i; +for (var pos=0; pos < affixPattern.length$(); pos=i) { +i=affixPattern.indexOf$I$I("\'", pos); +if (i < 0) { +p$1.appendAffix$StringBuffer$S$Z.apply(this, [buffer, affixPattern.substring$I(pos), localized]); +break; +}if (i > pos) { +p$1.appendAffix$StringBuffer$S$Z.apply(this, [buffer, affixPattern.substring$I$I(pos, i), localized]); +}var c=affixPattern.charAt$I(++i); +++i; +if (c == "\'") { +buffer.append$C(c); +} else if (c == "\u00a4" && i < affixPattern.length$() && affixPattern.charAt$I(i) == "\u00a4" ) { +++i; +buffer.append$C(c); +} else if (localized) { +switch (c.$c()) { +case 37: +c=this.symbols.getPercent$(); +break; +case 8240: +c=this.symbols.getPerMill$(); +break; +case 45: +c=this.symbols.getMinusSign$(); +break; +} +}buffer.append$C(c); +} +}}, p$1); + +Clazz_newMeth(C$, 'appendAffix$StringBuffer$S$Z', function (buffer, affix, localized) { +var needQuote; +if (localized) { +needQuote=affix.indexOf$I(this.symbols.getZeroDigit$()) >= 0 || affix.indexOf$I(this.symbols.getGroupingSeparator$()) >= 0 || affix.indexOf$I(this.symbols.getDecimalSeparator$()) >= 0 || affix.indexOf$I(this.symbols.getPercent$()) >= 0 || affix.indexOf$I(this.symbols.getPerMill$()) >= 0 || affix.indexOf$I(this.symbols.getDigit$()) >= 0 || affix.indexOf$I(this.symbols.getPatternSeparator$()) >= 0 || affix.indexOf$I(this.symbols.getMinusSign$()) >= 0 || affix.indexOf$I("\u00a4") >= 0 ; +} else { +needQuote=affix.indexOf$I("0") >= 0 || affix.indexOf$I(",") >= 0 || affix.indexOf$I(".") >= 0 || affix.indexOf$I("%") >= 0 || affix.indexOf$I("\u2030") >= 0 || affix.indexOf$I("#") >= 0 || affix.indexOf$I(";") >= 0 || affix.indexOf$I("-") >= 0 || affix.indexOf$I("\u00a4") >= 0 ; +}if (needQuote) buffer.append$C("\'"); +if (affix.indexOf$I("\'") < 0) buffer.append$S(affix); + else { +for (var j=0; j < affix.length$(); ++j) { +var c=affix.charAt$I(j); +buffer.append$C(c); +if (c == "\'") buffer.append$C(c); +} +}if (needQuote) buffer.append$C("\'"); +}, p$1); + +Clazz_newMeth(C$, 'toPattern$Z', function (localized) { +var result=Clazz_new_($I$(9)); +for (var j=1; j >= 0; --j) { +if (j == 1) p$1.appendAffix$StringBuffer$S$S$Z.apply(this, [result, this.posPrefixPattern, this.positivePrefix, localized]); + else p$1.appendAffix$StringBuffer$S$S$Z.apply(this, [result, this.negPrefixPattern, this.negativePrefix, localized]); +var i; +var digitCount=this.useExponentialNotation ? this.getMaximumIntegerDigits$() : Math.max(this.groupingSize, this.getMinimumIntegerDigits$()) + 1; +for (i=digitCount; i > 0; --i) { +if (i != digitCount && this.isGroupingUsed$() && this.groupingSize != 0 && i % this.groupingSize == 0 ) { +result.append$C(localized ? this.symbols.getGroupingSeparator$() : ","); +}result.append$C(i <= this.getMinimumIntegerDigits$() ? (localized ? this.symbols.getZeroDigit$() : "0") : (localized ? this.symbols.getDigit$() : "#")); +} +if (this.getMaximumFractionDigits$() > 0 || this.decimalSeparatorAlwaysShown ) result.append$C(localized ? this.symbols.getDecimalSeparator$() : "."); +for (i=0; i < this.getMaximumFractionDigits$(); ++i) { +if (i < this.getMinimumFractionDigits$()) { +result.append$C(localized ? this.symbols.getZeroDigit$() : "0"); +} else { +result.append$C(localized ? this.symbols.getDigit$() : "#"); +}} +if (this.useExponentialNotation) { +result.append$S(localized ? this.symbols.getExponentSeparator$() : "E"); +for (i=0; i < this.minExponentDigits; ++i) result.append$C(localized ? this.symbols.getZeroDigit$() : "0"); + +}if (j == 1) { +p$1.appendAffix$StringBuffer$S$S$Z.apply(this, [result, this.posSuffixPattern, this.positiveSuffix, localized]); +if ((this.negSuffixPattern == this.posSuffixPattern && this.negativeSuffix.equals$O(this.positiveSuffix) ) || (this.negSuffixPattern != null && this.negSuffixPattern.equals$O(this.posSuffixPattern) ) ) { +if ((this.negPrefixPattern != null && this.posPrefixPattern != null && this.negPrefixPattern.equals$O("'-" + this.posPrefixPattern) ) || (this.negPrefixPattern == this.posPrefixPattern && this.negativePrefix.equals$O(this.symbols.getMinusSign$() + this.positivePrefix) ) ) break; +}result.append$C(localized ? this.symbols.getPatternSeparator$() : ";"); +} else p$1.appendAffix$StringBuffer$S$S$Z.apply(this, [result, this.negSuffixPattern, this.negativeSuffix, localized]); +} +return result.toString(); +}, p$1); + +Clazz_newMeth(C$, 'applyPattern$S', function (pattern) { +p$1.applyPattern$S$Z.apply(this, [pattern, false]); +}); + +Clazz_newMeth(C$, 'applyLocalizedPattern$S', function (pattern) { +p$1.applyPattern$S$Z.apply(this, [pattern, true]); +}); + +Clazz_newMeth(C$, 'applyPattern$S$Z', function (pattern, localized) { +var zeroDigit="0"; +var groupingSeparator=","; +var decimalSeparator="."; +var percent="%"; +var perMill="\u2030"; +var digit="#"; +var separator=";"; +var exponent="E"; +var minus="-"; +if (localized) { +zeroDigit=this.symbols.getZeroDigit$(); +groupingSeparator=this.symbols.getGroupingSeparator$(); +decimalSeparator=this.symbols.getDecimalSeparator$(); +percent=this.symbols.getPercent$(); +perMill=this.symbols.getPerMill$(); +digit=this.symbols.getDigit$(); +separator=this.symbols.getPatternSeparator$(); +exponent=this.symbols.getExponentSeparator$(); +minus=this.symbols.getMinusSign$(); +}var gotNegative=false; +this.decimalSeparatorAlwaysShown=false; +this.isCurrencyFormat=false; +this.useExponentialNotation=false; +var phaseOneLength=0; +var start=0; +for (var j=1; j >= 0 && start < pattern.length$() ; --j) { +var inQuote=false; +var prefix=Clazz_new_($I$(9)); +var suffix=Clazz_new_($I$(9)); +var decimalPos=-1; +var multiplier=1; +var digitLeftCount=0; +var zeroDigitCount=0; +var digitRightCount=0; +var groupingCount=($b$[0] = -1, $b$[0]); +var phase=0; +var affix=prefix; +for (var pos=start; pos < pattern.length$(); ++pos) { +var ch=pattern.charAt$I(pos); +switch (phase) { +case 0: +case 2: +if (inQuote) { +if (ch == "\'") { +if ((pos + 1) < pattern.length$() && pattern.charAt$I(pos + 1) == "\'" ) { +++pos; +affix.append$S("\'\'"); +} else { +inQuote=false; +}continue; +}} else { +if (ch == digit || ch == zeroDigit || ch == groupingSeparator || ch == decimalSeparator ) { +phase=1; +--pos; +continue; +} else if (ch == "\u00a4") { +var doubled=(pos + 1) < pattern.length$() && pattern.charAt$I(pos + 1) == "\u00a4" ; +if (doubled) { +++pos; +}this.isCurrencyFormat=true; +affix.append$S(doubled ? "\'\u00a4\u00a4" : "\'\u00a4"); +continue; +} else if (ch == "\'") { +if (ch == "\'") { +if ((pos + 1) < pattern.length$() && pattern.charAt$I(pos + 1) == "\'" ) { +++pos; +affix.append$S("\'\'"); +} else { +inQuote=true; +}continue; +}} else if (ch == separator) { +if (phase == 0 || j == 0 ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["Unquoted special character '" + ch + "' in pattern \"" + pattern + '"' ]); +}start=pos + 1; +pos=pattern.length$(); +continue; +} else if (ch == percent) { +if (multiplier != 1) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["Too many percent/per mille characters in pattern \"" + pattern + '"' ]); +}multiplier=100; +affix.append$S("\'%"); +continue; +} else if (ch == perMill) { +if (multiplier != 1) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["Too many percent/per mille characters in pattern \"" + pattern + '"' ]); +}multiplier=1000; +affix.append$S("\'\u2030"); +continue; +} else if (ch == minus) { +affix.append$S("\'-"); +continue; +}}affix.append$C(ch); +break; +case 1: +if (j == 1) { +++phaseOneLength; +} else { +if (--phaseOneLength == 0) { +phase=2; +affix=suffix; +}continue; +}if (ch == digit) { +if (zeroDigitCount > 0) { +++digitRightCount; +} else { +++digitLeftCount; +}if (groupingCount >= 0 && decimalPos < 0 ) { +(($b$[0]=++groupingCount,groupingCount=$b$[0],$b$[0])); +}} else if (ch == zeroDigit) { +if (digitRightCount > 0) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["Unexpected '0' in pattern \"" + pattern + '"' ]); +}++zeroDigitCount; +if (groupingCount >= 0 && decimalPos < 0 ) { +(($b$[0]=++groupingCount,groupingCount=$b$[0],$b$[0])); +}} else if (ch == groupingSeparator) { +groupingCount=($b$[0] = 0, $b$[0]); +} else if (ch == decimalSeparator) { +if (decimalPos >= 0) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["Multiple decimal separators in pattern \"" + pattern + '"' ]); +}decimalPos=digitLeftCount + zeroDigitCount + digitRightCount ; +} else if (pattern.regionMatches$I$S$I$I(pos, exponent, 0, exponent.length$())) { +if (this.useExponentialNotation) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["Multiple exponential symbols in pattern \"" + pattern + '"' ]); +}this.useExponentialNotation=true; +this.minExponentDigits=($b$[0] = 0, $b$[0]); +pos=pos + exponent.length$(); +while (pos < pattern.length$() && pattern.charAt$I(pos) == zeroDigit ){ +(($b$[0]=++this.minExponentDigits,this.minExponentDigits=$b$[0],$b$[0])); +++phaseOneLength; +++pos; +} +if ((digitLeftCount + zeroDigitCount) < 1 || this.minExponentDigits < 1 ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["Malformed exponential pattern \"" + pattern + '"' ]); +}phase=2; +affix=suffix; +--pos; +continue; +} else { +phase=2; +affix=suffix; +--pos; +--phaseOneLength; +continue; +}break; +} +} +if (zeroDigitCount == 0 && digitLeftCount > 0 && decimalPos >= 0 ) { +var n=decimalPos; +if (n == 0) { +++n; +}digitRightCount=digitLeftCount - n; +digitLeftCount=n - 1; +zeroDigitCount=1; +}if ((decimalPos < 0 && digitRightCount > 0 ) || (decimalPos >= 0 && (decimalPos < digitLeftCount || decimalPos > (digitLeftCount + zeroDigitCount) ) ) || groupingCount == 0 || inQuote ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["Malformed pattern \"" + pattern + '"' ]); +}if (j == 1) { +this.posPrefixPattern=prefix.toString(); +this.posSuffixPattern=suffix.toString(); +this.negPrefixPattern=this.posPrefixPattern; +this.negSuffixPattern=this.posSuffixPattern; +var digitTotalCount=digitLeftCount + zeroDigitCount + digitRightCount ; +var effectiveDecimalPos=decimalPos >= 0 ? decimalPos : digitTotalCount; +this.setMinimumIntegerDigits$I(effectiveDecimalPos - digitLeftCount); +this.setMaximumIntegerDigits$I(this.useExponentialNotation ? digitLeftCount + this.getMinimumIntegerDigits$() : 2147483647); +this.setMaximumFractionDigits$I(decimalPos >= 0 ? (digitTotalCount - decimalPos) : 0); +this.setMinimumFractionDigits$I(decimalPos >= 0 ? (digitLeftCount + zeroDigitCount - decimalPos) : 0); +this.setGroupingUsed$Z(groupingCount > 0); +this.groupingSize=($b$[0] = (groupingCount > 0) ? (groupingCount|0) : (0|0), $b$[0]); +this.multiplier=multiplier; +this.setDecimalSeparatorAlwaysShown$Z(decimalPos == 0 || decimalPos == digitTotalCount ); +} else { +this.negPrefixPattern=prefix.toString(); +this.negSuffixPattern=suffix.toString(); +gotNegative=true; +}} +if (pattern.length$() == 0) { +this.posPrefixPattern=this.posSuffixPattern=""; +this.setMinimumIntegerDigits$I(0); +this.setMaximumIntegerDigits$I(2147483647); +this.setMinimumFractionDigits$I(0); +this.setMaximumFractionDigits$I(2147483647); +}if (!gotNegative || (this.negPrefixPattern.equals$O(this.posPrefixPattern) && this.negSuffixPattern.equals$O(this.posSuffixPattern) ) ) { +this.negSuffixPattern=this.posSuffixPattern; +this.negPrefixPattern="'-" + this.posPrefixPattern; +}p$1.expandAffixes.apply(this, []); +}, p$1); + +Clazz_newMeth(C$, 'setMaximumIntegerDigits$I', function (newValue) { +this.$maximumIntegerDigits=Math.min(Math.max(0, newValue), 2147483647); +C$.superclazz.prototype.setMaximumIntegerDigits$I.apply(this, [(this.$maximumIntegerDigits > 309) ? 309 : this.$maximumIntegerDigits]); +if (this.$minimumIntegerDigits > this.$maximumIntegerDigits) { +this.$minimumIntegerDigits=this.$maximumIntegerDigits; +C$.superclazz.prototype.setMinimumIntegerDigits$I.apply(this, [(this.$minimumIntegerDigits > 309) ? 309 : this.$minimumIntegerDigits]); +}}); + +Clazz_newMeth(C$, 'setMinimumIntegerDigits$I', function (newValue) { +this.$minimumIntegerDigits=Math.min(Math.max(0, newValue), 2147483647); +C$.superclazz.prototype.setMinimumIntegerDigits$I.apply(this, [(this.$minimumIntegerDigits > 309) ? 309 : this.$minimumIntegerDigits]); +if (this.$minimumIntegerDigits > this.$maximumIntegerDigits) { +this.$maximumIntegerDigits=this.$minimumIntegerDigits; +C$.superclazz.prototype.setMaximumIntegerDigits$I.apply(this, [(this.$maximumIntegerDigits > 309) ? 309 : this.$maximumIntegerDigits]); +}}); + +Clazz_newMeth(C$, 'setMaximumFractionDigits$I', function (newValue) { +this.$maximumFractionDigits=Math.min(Math.max(0, newValue), 2147483647); +C$.superclazz.prototype.setMaximumFractionDigits$I.apply(this, [(this.$maximumFractionDigits > 340) ? 340 : this.$maximumFractionDigits]); +if (this.$minimumFractionDigits > this.$maximumFractionDigits) { +this.$minimumFractionDigits=this.$maximumFractionDigits; +C$.superclazz.prototype.setMinimumFractionDigits$I.apply(this, [(this.$minimumFractionDigits > 340) ? 340 : this.$minimumFractionDigits]); +}}); + +Clazz_newMeth(C$, 'setMinimumFractionDigits$I', function (newValue) { +this.$minimumFractionDigits=Math.min(Math.max(0, newValue), 2147483647); +C$.superclazz.prototype.setMinimumFractionDigits$I.apply(this, [(this.$minimumFractionDigits > 340) ? 340 : this.$minimumFractionDigits]); +if (this.$minimumFractionDigits > this.$maximumFractionDigits) { +this.$maximumFractionDigits=this.$minimumFractionDigits; +C$.superclazz.prototype.setMaximumFractionDigits$I.apply(this, [(this.$maximumFractionDigits > 340) ? 340 : this.$maximumFractionDigits]); +}}); + +Clazz_newMeth(C$, 'getMaximumIntegerDigits$', function () { +return this.$maximumIntegerDigits; +}); + +Clazz_newMeth(C$, 'getMinimumIntegerDigits$', function () { +return this.$minimumIntegerDigits; +}); + +Clazz_newMeth(C$, 'getMaximumFractionDigits$', function () { +return this.$maximumFractionDigits; +}); + +Clazz_newMeth(C$, 'getMinimumFractionDigits$', function () { +return this.$minimumFractionDigits; +}); + +Clazz_newMeth(C$, 'getRoundingMode$', function () { +return this.roundingMode; +}); + +Clazz_newMeth(C$, 'setRoundingMode$java_math_RoundingMode', function (roundingMode) { +if (roundingMode == null ) { +throw Clazz_new_(Clazz_load('NullPointerException')); +}this.roundingMode=roundingMode; +this.digitList.setRoundingMode$java_math_RoundingMode(roundingMode); +}); + +Clazz_newMeth(C$, 'adjustForCurrencyDefaultFractionDigits$', function () { +var digits=2; +var oldMinDigits=this.getMinimumFractionDigits$(); +if (oldMinDigits == this.getMaximumFractionDigits$()) { +this.setMinimumFractionDigits$I(digits); +this.setMaximumFractionDigits$I(digits); +} else { +this.setMinimumFractionDigits$I(Math.min(digits, oldMinDigits)); +this.setMaximumFractionDigits$I(digits); +}}); +C$.$_ASSERT_ENABLED_ = ClassLoader.getClassAssertionStatus$(C$); +var $b$ = new Int8Array(1); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:37 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.text"),p$1={},I$=[[0,'java.util.Hashtable','java.util.Locale','InternalError','sun.util.resources.LocaleData']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "DecimalFormatSymbols", null, null, 'Cloneable'); +C$.cachedLocaleData=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.cachedLocaleData=Clazz_new_($I$(1).c$$I,[3]); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.zeroDigit='\0'; +this.groupingSeparator='\0'; +this.decimalSeparator='\0'; +this.perMill='\0'; +this.percent='\0'; +this.digit='\0'; +this.patternSeparator='\0'; +this.infinity=null; +this.NaN=null; +this.minusSign='\0'; +this.currencySymbol=null; +this.intlCurrencySymbol=null; +this.monetarySeparator='\0'; +this.exponential='\0'; +this.exponentialSeparator=null; +this.locale=null; +this.serialVersionOnStream=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.serialVersionOnStream=3; +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.$init$.apply(this); +p$1.initialize$java_util_Locale.apply(this, [$I$(2).getDefault$()]); +}, 1); + +Clazz_newMeth(C$, 'c$$java_util_Locale', function (locale) { +C$.$init$.apply(this); +p$1.initialize$java_util_Locale.apply(this, [locale]); +}, 1); + +Clazz_newMeth(C$, 'getInstance$', function () { +return C$.getInstance$java_util_Locale($I$(2).getDefault$()); +}, 1); + +Clazz_newMeth(C$, 'getInstance$java_util_Locale', function (locale) { +return Clazz_new_(C$.c$$java_util_Locale,[locale]); +}, 1); + +Clazz_newMeth(C$, 'getZeroDigit$', function () { +return this.zeroDigit; +}); + +Clazz_newMeth(C$, 'setZeroDigit$C', function (zeroDigit) { +this.zeroDigit=zeroDigit; +}); + +Clazz_newMeth(C$, 'getGroupingSeparator$', function () { +return this.groupingSeparator; +}); + +Clazz_newMeth(C$, 'setGroupingSeparator$C', function (groupingSeparator) { +this.groupingSeparator=groupingSeparator; +}); + +Clazz_newMeth(C$, 'getDecimalSeparator$', function () { +return this.decimalSeparator; +}); + +Clazz_newMeth(C$, 'setDecimalSeparator$C', function (decimalSeparator) { +this.decimalSeparator=decimalSeparator; +}); + +Clazz_newMeth(C$, 'getPerMill$', function () { +return this.perMill; +}); + +Clazz_newMeth(C$, 'setPerMill$C', function (perMill) { +this.perMill=perMill; +}); + +Clazz_newMeth(C$, 'getPercent$', function () { +return this.percent; +}); + +Clazz_newMeth(C$, 'setPercent$C', function (percent) { +this.percent=percent; +}); + +Clazz_newMeth(C$, 'getDigit$', function () { +return this.digit; +}); + +Clazz_newMeth(C$, 'setDigit$C', function (digit) { +this.digit=digit; +}); + +Clazz_newMeth(C$, 'getPatternSeparator$', function () { +return this.patternSeparator; +}); + +Clazz_newMeth(C$, 'setPatternSeparator$C', function (patternSeparator) { +this.patternSeparator=patternSeparator; +}); + +Clazz_newMeth(C$, 'getInfinity$', function () { +return this.infinity; +}); + +Clazz_newMeth(C$, 'setInfinity$S', function (infinity) { +this.infinity=infinity; +}); + +Clazz_newMeth(C$, 'getNaN$', function () { +return this.NaN; +}); + +Clazz_newMeth(C$, 'setNaN$S', function (NaN) { +this.NaN=NaN; +}); + +Clazz_newMeth(C$, 'getMinusSign$', function () { +return this.minusSign; +}); + +Clazz_newMeth(C$, 'setMinusSign$C', function (minusSign) { +this.minusSign=minusSign; +}); + +Clazz_newMeth(C$, 'getCurrencySymbol$', function () { +return this.currencySymbol; +}); + +Clazz_newMeth(C$, 'setCurrencySymbol$S', function (currency) { +this.currencySymbol=currency; +}); + +Clazz_newMeth(C$, 'getInternationalCurrencySymbol$', function () { +return this.intlCurrencySymbol; +}); + +Clazz_newMeth(C$, 'setInternationalCurrencySymbol$S', function (currencyCode) { +this.intlCurrencySymbol=currencyCode; +}); + +Clazz_newMeth(C$, 'getMonetaryDecimalSeparator$', function () { +return this.monetarySeparator; +}); + +Clazz_newMeth(C$, 'setMonetaryDecimalSeparator$C', function (sep) { +this.monetarySeparator=sep; +}); + +Clazz_newMeth(C$, 'getExponentialSymbol$', function () { +return this.exponential; +}); + +Clazz_newMeth(C$, 'getExponentSeparator$', function () { +return this.exponentialSeparator; +}); + +Clazz_newMeth(C$, 'setExponentialSymbol$C', function (exp) { +this.exponential=exp; +}); + +Clazz_newMeth(C$, 'setExponentSeparator$S', function (exp) { +if (exp == null ) { +throw Clazz_new_(Clazz_load('NullPointerException')); +}this.exponentialSeparator=exp; +}); + +Clazz_newMeth(C$, 'clone$', function () { +try { +return Clazz_clone(this); +} catch (e) { +if (Clazz_exceptionOf(e,"CloneNotSupportedException")){ +throw Clazz_new_($I$(3)); +} else { +throw e; +} +} +}); + +Clazz_newMeth(C$, 'equals$O', function (obj) { +if (obj == null ) return false; +if (this === obj ) return true; +if (this.getClass$() !== obj.getClass$() ) return false; +var other=obj; +return (this.zeroDigit == other.zeroDigit && this.groupingSeparator == other.groupingSeparator && this.decimalSeparator == other.decimalSeparator && this.percent == other.percent && this.perMill == other.perMill && this.digit == other.digit && this.minusSign == other.minusSign && this.patternSeparator == other.patternSeparator && this.infinity.equals$O(other.infinity) && this.NaN.equals$O(other.NaN) && this.currencySymbol.equals$O(other.currencySymbol) && this.intlCurrencySymbol.equals$O(other.intlCurrencySymbol) && this.monetarySeparator == other.monetarySeparator && this.exponentialSeparator.equals$O(other.exponentialSeparator) && this.locale.equals$O(other.locale) ); +}); + +Clazz_newMeth(C$, 'hashCode$', function () { +var result=this.zeroDigit.$c(); +result=result * 37 + this.groupingSeparator.$c(); +result=result * 37 + this.decimalSeparator.$c(); +return result; +}); + +Clazz_newMeth(C$, 'initialize$java_util_Locale', function (locale) { +this.locale=locale; +var needCacheUpdate=false; +var data=C$.cachedLocaleData.get$O(locale); +if (data == null ) { +data=Clazz_array(java.lang.Object, [3]); +var rb=$I$(4).getNumberFormatData$java_util_Locale(locale); +data[0]=rb.getStringArray$S("NumberElements"); +needCacheUpdate=true; +}var numberElements=data[0]; +this.decimalSeparator=numberElements[0].charAt$I(0); +this.groupingSeparator=numberElements[1].charAt$I(0); +this.patternSeparator=numberElements[2].charAt$I(0); +this.percent=numberElements[3].charAt$I(0); +this.zeroDigit=numberElements[4].charAt$I(0); +this.digit=numberElements[5].charAt$I(0); +this.minusSign=numberElements[6].charAt$I(0); +this.exponential=numberElements[7].charAt$I(0); +this.exponentialSeparator=numberElements[7]; +this.perMill=numberElements[8].charAt$I(0); +this.infinity=numberElements[9]; +this.NaN=numberElements[10]; +this.intlCurrencySymbol="\u00a4"; +this.currencySymbol="$"; +this.monetarySeparator=this.decimalSeparator; +if (needCacheUpdate) { +C$.cachedLocaleData.put$TK$TV(locale, data); +}}, p$1); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:37 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.text"),p$1={},I$=[[0,'java.math.RoundingMode','InternalError','StringBuffer']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "DigitList", null, null, 'Cloneable'); +C$.LONG_MIN_REP=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.LONG_MIN_REP="9223372036854775808".toCharArray$(); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.decimalAt=0; +this.count=0; +this.digits=null; +this.data=null; +this.roundingMode=null; +this.isNegative=false; +this.tempBuffer=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.decimalAt=0; +this.count=0; +this.digits=Clazz_array(Character.TYPE, [19]); +this.roundingMode=$I$(1).HALF_EVEN; +this.isNegative=false; +}, 1); + +Clazz_newMeth(C$, 'isZero$', function () { +for (var i=0; i < this.count; ++i) { +if (this.digits[i] != "0") { +return false; +}} +return true; +}); + +Clazz_newMeth(C$, 'setRoundingMode$java_math_RoundingMode', function (r) { +this.roundingMode=r; +}); + +Clazz_newMeth(C$, 'clear$', function () { +this.decimalAt=0; +this.count=0; +}); + +Clazz_newMeth(C$, 'append$C', function (digit) { +if (this.count == this.digits.length) { +var data=Clazz_array(Character.TYPE, [this.count + 100]); +System.arraycopy$O$I$O$I$I(this.digits, 0, data, 0, this.count); +this.digits=data; +}this.digits[this.count++]=digit; +}); + +Clazz_newMeth(C$, 'getDouble$', function () { +if (this.count == 0) { +return 0.0; +}var temp=p$1.getStringBuffer.apply(this, []); +temp.append$C("."); +temp.append$CA$I$I(this.digits, 0, this.count); +temp.append$C("E"); +temp.append$S("" + this.decimalAt); +return Double.parseDouble$S(temp.toString()); +}); + +Clazz_newMeth(C$, 'getLong$', function () { +if (this.count == 0) { +return 0; +}if (p$1.isLongMIN_VALUE.apply(this, [])) { +return -9223372036854775808; +}var temp=p$1.getStringBuffer.apply(this, []); +temp.append$CA$I$I(this.digits, 0, this.count); +for (var i=this.count; i < this.decimalAt; ++i) { +temp.append$C("0"); +} +return Long.parseLong$S(temp.toString()); +}); + +Clazz_newMeth(C$, 'fitsIntoLong$Z$Z', function (isPositive, ignoreNegativeZero) { +while (this.count > 0 && this.digits[this.count - 1] == "0" ){ +--this.count; +} +if (this.count == 0) { +return isPositive || ignoreNegativeZero ; +}if (this.decimalAt < this.count || this.decimalAt > 19 ) { +return false; +}if (this.decimalAt < 19) return true; +for (var i=0; i < this.count; ++i) { +var dig=this.digits[i]; +var max=C$.LONG_MIN_REP[i]; +if (dig > max) return false; +if (dig < max) return true; +} +if (this.count < this.decimalAt) return true; +return !isPositive; +}); + +Clazz_newMeth(C$, 'setDouble$Z$D$I', function (isNegative, source, maximumFractionDigits) { +this.set$Z$D$I$Z(isNegative, source, maximumFractionDigits, true); +}); + +Clazz_newMeth(C$, 'set$Z$D$I$Z', function (isNegative, source, maximumDigits, fixedPoint) { +this.set$Z$S$I$Z(isNegative, Double.toString$D(source), maximumDigits, fixedPoint); +}); + +Clazz_newMeth(C$, 'set$Z$S$I$Z', function (isNegative, s, maximumDigits, fixedPoint) { +this.isNegative=isNegative; +var len=s.length$(); +var source=p$1.getDataChars$I.apply(this, [len]); +s.getChars$I$I$CA$I(0, len, source, 0); +this.decimalAt=-1; +this.count=0; +var exponent=0; +var leadingZerosAfterDecimal=0; +var nonZeroDigitSeen=false; +for (var i=0; i < len; ) { +var c=source[i++]; +if (c == ".") { +this.decimalAt=this.count; +} else if (c == "e" || c == "E" ) { +exponent=C$.parseInt$CA$I$I(source, i, len); +break; +} else { +if (!nonZeroDigitSeen) { +nonZeroDigitSeen=(c != "0"); +if (!nonZeroDigitSeen && this.decimalAt != -1 ) ++leadingZerosAfterDecimal; +}if (nonZeroDigitSeen) { +this.digits[this.count++]=c; +}}} +if (this.decimalAt == -1) { +this.decimalAt=this.count; +}if (nonZeroDigitSeen) { +this.decimalAt+=exponent - leadingZerosAfterDecimal; +}if (fixedPoint) { +if (-this.decimalAt > maximumDigits) { +this.count=0; +return; +} else if (-this.decimalAt == maximumDigits) { +if (p$1.shouldRoundUp$I.apply(this, [0])) { +this.count=1; +++this.decimalAt; +this.digits[0]="1"; +} else { +this.count=0; +}return; +}}while (this.count > 1 && this.digits[this.count - 1] == "0" ){ +--this.count; +} +p$1.round$I.apply(this, [fixedPoint ? (maximumDigits + this.decimalAt) : maximumDigits]); +}); + +Clazz_newMeth(C$, 'round$I', function (maximumDigits) { +if (maximumDigits >= 0 && maximumDigits < this.count ) { +if (p$1.shouldRoundUp$I.apply(this, [maximumDigits])) { +for (; ; ) { +--maximumDigits; +if (maximumDigits < 0) { +this.digits[0]="1"; +++this.decimalAt; +maximumDigits=0; +break; +}(this.digits[maximumDigits]=String.fromCharCode(this.digits[maximumDigits].$c()+1)); +if (this.digits[maximumDigits] <= "9") break; +} +++maximumDigits; +}this.count=maximumDigits; +while (this.count > 1 && this.digits[this.count - 1] == "0" ){ +--this.count; +} +}}, p$1); + +Clazz_newMeth(C$, 'shouldRoundUp$I', function (maximumDigits) { +if (maximumDigits < this.count) { +switch (this.roundingMode) { +case $I$(1).UP: +for (var i=maximumDigits; i < this.count; ++i) { +if (this.digits[i] != "0") { +return true; +}} +break; +case $I$(1).DOWN: +break; +case $I$(1).CEILING: +for (var i=maximumDigits; i < this.count; ++i) { +if (this.digits[i] != "0") { +return !this.isNegative; +}} +break; +case $I$(1).FLOOR: +for (var i=maximumDigits; i < this.count; ++i) { +if (this.digits[i] != "0") { +return this.isNegative; +}} +break; +case $I$(1).HALF_UP: +if (this.digits[maximumDigits] >= "5") { +return true; +}break; +case $I$(1).HALF_DOWN: +if (this.digits[maximumDigits] > "5") { +return true; +} else if (this.digits[maximumDigits] == "5") { +for (var i=maximumDigits + 1; i < this.count; ++i) { +if (this.digits[i] != "0") { +return true; +}} +}break; +case $I$(1).HALF_EVEN: +if (this.digits[maximumDigits] > "5") { +return true; +} else if (this.digits[maximumDigits] == "5") { +for (var i=maximumDigits + 1; i < this.count; ++i) { +if (this.digits[i] != "0") { +return true; +}} +return maximumDigits > 0 && ((this.digits[maximumDigits - 1]).$c() % 2 != 0) ; +}break; +case $I$(1).UNNECESSARY: +for (var i=maximumDigits; i < this.count; ++i) { +if (this.digits[i] != "0") { +throw Clazz_new_(Clazz_load('ArithmeticException').c$$S,["Rounding needed with the rounding mode being set to RoundingMode.UNNECESSARY"]); +}} +break; +default: +Clazz_assert(C$, this, function(){return false}); +} +}return false; +}, p$1); + +Clazz_newMeth(C$, 'setExp$Z$J', function (isNegative, source) { +this.setLong$Z$J$I(isNegative, source, 0); +}); + +Clazz_newMeth(C$, 'setLong$Z$J$I', function (isNegative, source, maximumDigits) { +this.isNegative=isNegative; +if (source <= 0) { +if (source == -9223372036854775808) { +this.decimalAt=this.count=19; +System.arraycopy$O$I$O$I$I(C$.LONG_MIN_REP, 0, this.digits, 0, this.count); +} else { +this.decimalAt=this.count=0; +}} else { +var left=19; +var right; +while (source >= 1){ +this.digits[--left]=String.fromCharCode((48 + (source % 10))); +source=(source/10|0); +} +this.decimalAt=19 - left; +for (right=18; this.digits[right] == "0"; --right) ; +this.count=right - left + 1; +System.arraycopy$O$I$O$I$I(this.digits, left, this.digits, 0, this.count); +}if (maximumDigits > 0) p$1.round$I.apply(this, [maximumDigits]); +}); + +Clazz_newMeth(C$, 'equals$O', function (obj) { +if (this === obj ) return true; +if (!(Clazz_instanceOf(obj, "java.text.DigitList"))) return false; +var other=obj; +if (this.count != other.count || this.decimalAt != other.decimalAt ) return false; +for (var i=0; i < this.count; i++) if (this.digits[i] != other.digits[i]) return false; + +return true; +}); + +Clazz_newMeth(C$, 'hashCode$', function () { +var hashcode=this.decimalAt; +for (var i=0; i < this.count; i++) { +hashcode=hashcode * 37 + (this.digits[i]).$c(); +} +return hashcode; +}); + +Clazz_newMeth(C$, 'clone$', function () { +try { +var other=Clazz_clone(this); +var newDigits=Clazz_array(Character.TYPE, [this.digits.length]); +System.arraycopy$O$I$O$I$I(this.digits, 0, newDigits, 0, this.digits.length); +other.digits=newDigits; +other.tempBuffer=null; +return other; +} catch (e) { +if (Clazz_exceptionOf(e,"CloneNotSupportedException")){ +throw Clazz_new_($I$(2)); +} else { +throw e; +} +} +}); + +Clazz_newMeth(C$, 'isLongMIN_VALUE', function () { +if (this.decimalAt != this.count || this.count != 19 ) { +return false; +}for (var i=0; i < this.count; ++i) { +if (this.digits[i] != C$.LONG_MIN_REP[i]) return false; +} +return true; +}, p$1); + +Clazz_newMeth(C$, 'parseInt$CA$I$I', function (str, offset, strLen) { +var c; +var positive=true; +if ((c=str[offset]) == "-") { +positive=false; +offset++; +} else if (c == "+") { +offset++; +}var value=0; +while (offset < strLen){ +c=str[offset++]; +if (c >= "0" && c <= "9" ) { +value=value * 10 + (c.$c() - 48); +} else { +break; +}} +return positive ? value : -value; +}, 1); + +Clazz_newMeth(C$, 'toString', function () { +if (this.isZero$()) { +return "0"; +}var buf=p$1.getStringBuffer.apply(this, []); +buf.append$S("0."); +buf.append$CA$I$I(this.digits, 0, this.count); +buf.append$S("x10^"); +buf.append$S("" + this.decimalAt); +return buf.toString(); +}); + +Clazz_newMeth(C$, 'getStringBuffer', function () { +if (this.tempBuffer == null ) { +this.tempBuffer=Clazz_new_($I$(3).c$$I,[19]); +} else { +this.tempBuffer.setLength$I(0); +}return this.tempBuffer; +}, p$1); + +Clazz_newMeth(C$, 'getDataChars$I', function (length) { +if (this.data == null || this.data.length < length ) { +this.data=Clazz_array(Character.TYPE, [length]); +}return this.data; +}, p$1); +C$.$_ASSERT_ENABLED_ = ClassLoader.getClassAssertionStatus$(C$); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:37 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.text"),p$1={},I$=[[0,['java.text.FieldPosition','.Delegate']]],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "FieldPosition", function(){ +Clazz_newInstance(this, arguments,0,C$); +}); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.field=0; +this.endIndex=0; +this.beginIndex=0; +this.attribute=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.field=0; +this.endIndex=0; +this.beginIndex=0; +}, 1); + +Clazz_newMeth(C$, 'c$$I', function (field) { +C$.$init$.apply(this); +this.field=field; +}, 1); + +Clazz_newMeth(C$, 'c$$java_text_Format_Field', function (attribute) { +C$.c$$java_text_Format_Field$I.apply(this, [attribute, -1]); +}, 1); + +Clazz_newMeth(C$, 'c$$java_text_Format_Field$I', function (attribute, fieldID) { +C$.$init$.apply(this); +this.attribute=attribute; +this.field=fieldID; +}, 1); + +Clazz_newMeth(C$, 'getFieldAttribute$', function () { +return this.attribute; +}); + +Clazz_newMeth(C$, 'getField$', function () { +return this.field; +}); + +Clazz_newMeth(C$, 'getBeginIndex$', function () { +return this.beginIndex; +}); + +Clazz_newMeth(C$, 'getEndIndex$', function () { +return this.endIndex; +}); + +Clazz_newMeth(C$, 'setBeginIndex$I', function (bi) { +this.beginIndex=bi; +}); + +Clazz_newMeth(C$, 'setEndIndex$I', function (ei) { +this.endIndex=ei; +}); + +Clazz_newMeth(C$, 'getFieldDelegate$', function () { +return Clazz_new_($I$(1), [this, null]); +}); + +Clazz_newMeth(C$, 'equals$O', function (obj) { +if (obj == null ) return false; +if (!(Clazz_instanceOf(obj, "java.text.FieldPosition"))) return false; +var other=obj; +if (this.attribute == null ) { +if (other.attribute != null ) { +return false; +}} else if (!this.attribute.equals$O(other.attribute)) { +return false; +}return (this.beginIndex == other.beginIndex && this.endIndex == other.endIndex && this.field == other.field ); +}); + +Clazz_newMeth(C$, 'hashCode$', function () { +return (this.field << 24) | (this.beginIndex << 16) | this.endIndex ; +}); + +Clazz_newMeth(C$, 'toString', function () { +return this.getClass$().getName$() + "[field=" + this.field + ",attribute=" + this.attribute + ",beginIndex=" + this.beginIndex + ",endIndex=" + this.endIndex + ']' ; +}); + +Clazz_newMeth(C$, 'matchesField$java_text_Format_Field', function (attribute) { +if (this.attribute != null ) { +return this.attribute.equals$O(attribute); +}return false; +}, p$1); + +Clazz_newMeth(C$, 'matchesField$java_text_Format_Field$I', function (attribute, field) { +if (this.attribute != null ) { +return this.attribute.equals$O(attribute); +}return (field == this.field); +}, p$1); +; +(function(){var C$=Clazz_newClass(P$.FieldPosition, "Delegate", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, null, [['java.text.Format','java.text.Format.FieldDelegate']]); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.encounteredField=false; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'formatted$java_text_Format_Field$O$I$I$StringBuffer', function (attr, value, start, end, buffer) { +if (!this.encounteredField && p$1.matchesField$java_text_Format_Field.apply(this.this$0, [attr]) ) { +this.this$0.setBeginIndex$I.apply(this.this$0, [start]); +this.this$0.setEndIndex$I.apply(this.this$0, [end]); +this.encounteredField=(start != end); +}}); + +Clazz_newMeth(C$, 'formatted$I$java_text_Format_Field$O$I$I$StringBuffer', function (fieldID, attr, value, start, end, buffer) { +if (!this.encounteredField && p$1.matchesField$java_text_Format_Field$I.apply(this.this$0, [attr, fieldID]) ) { +this.this$0.setBeginIndex$I.apply(this.this$0, [start]); +this.this$0.setEndIndex$I.apply(this.this$0, [end]); +this.encounteredField=(start != end); +}}); + +Clazz_newMeth(C$); +})() + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:37 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.text"),I$=[[0,'StringBuffer','java.text.FieldPosition','java.text.ParsePosition','java.text.AttributedString']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "Format", function(){ +Clazz_newInstance(this, arguments,0,C$); +}, null, ['java.io.Serializable', 'Cloneable']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'format$O', function (obj) { +return this.format$O$StringBuffer$java_text_FieldPosition(obj, Clazz_new_($I$(1)), Clazz_new_($I$(2).c$$I,[0])).toString(); +}); + +Clazz_newMeth(C$, 'formatToCharacterIterator$O', function (obj) { +return this.createAttributedCharacterIterator$S(this.format$O(obj)); +}); + +Clazz_newMeth(C$, 'parseObject$S', function (source) { +var pos=Clazz_new_($I$(3).c$$I,[0]); +var result=this.parseObject$S$java_text_ParsePosition(source, pos); +if (pos.index == 0) { +throw Clazz_new_(Clazz_load('java.text.ParseException').c$$S$I,["Format.parseObject(String) failed", pos.errorIndex]); +}return result; +}); + +Clazz_newMeth(C$, 'clone$', function () { +try { +return Clazz_clone(this); +} catch (e) { +if (Clazz_exceptionOf(e,"CloneNotSupportedException")){ +return null; +} else { +throw e; +} +} +}); + +Clazz_newMeth(C$, 'createAttributedCharacterIterator$S', function (s) { +var as=Clazz_new_($I$(4).c$$S,[s]); +return as.getIterator$(); +}); + +Clazz_newMeth(C$, 'createAttributedCharacterIterator$java_text_AttributedCharacterIteratorA', function (iterators) { +var as=Clazz_new_($I$(4).c$$java_text_AttributedCharacterIteratorA,[iterators]); +return as.getIterator$(); +}); + +Clazz_newMeth(C$, 'createAttributedCharacterIterator$S$java_text_AttributedCharacterIterator_Attribute$O', function (string, key, value) { +var as=Clazz_new_($I$(4).c$$S,[string]); +as.addAttribute$java_text_AttributedCharacterIterator_Attribute$O(key, value); +return as.getIterator$(); +}); + +Clazz_newMeth(C$, 'createAttributedCharacterIterator$java_text_AttributedCharacterIterator$java_text_AttributedCharacterIterator_Attribute$O', function (iterator, key, value) { +var as=Clazz_new_($I$(4).c$$java_text_AttributedCharacterIterator,[iterator]); +as.addAttribute$java_text_AttributedCharacterIterator_Attribute$O(key, value); +return as.getIterator$(); +}); +; +(function(){var C$=Clazz_newClass(P$.Format, "Field", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, ['java.text.AttributedCharacterIterator','.Attribute']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$S', function (name) { +C$.superclazz.c$$S.apply(this, [name]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newInterface(P$.Format, "FieldDelegate", function(){ +}); +})() +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:37 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("java.text"),I$=[[0,'java.util.HashMap','java.util.Hashtable','StringBuffer','java.text.DontCareFieldPosition','java.text.ParsePosition','java.util.Locale','sun.util.resources.LocaleData','java.text.DecimalFormatSymbols','java.text.DecimalFormat']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "NumberFormat", function(){ +Clazz_newInstance(this, arguments,0,C$); +}, 'java.text.Format'); +C$.cachedLocaleData=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.cachedLocaleData=Clazz_new_($I$(2).c$$I,[3]); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.groupingUsed=false; +this.maxFractionDigits=0; +this.parseIntegerOnly=false; +this.maximumIntegerDigits=0; +this.minimumIntegerDigits=0; +this.maximumFractionDigits=0; +this.minimumFractionDigits=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.groupingUsed=true; +this.maxFractionDigits=($b$[0] = 3, $b$[0]); +this.parseIntegerOnly=false; +this.maximumIntegerDigits=40; +this.minimumIntegerDigits=1; +this.maximumFractionDigits=3; +this.minimumFractionDigits=0; +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +Clazz_super_(C$, this,1); +}, 1); + +Clazz_newMeth(C$, 'format$O$StringBuffer$java_text_FieldPosition', function (number, toAppendTo, pos) { +if (Clazz_instanceOf(number, "java.lang.Long") || Clazz_instanceOf(number, "java.lang.Integer") || Clazz_instanceOf(number, "java.lang.Short") || Clazz_instanceOf(number, "java.lang.Byte") ) { +return this.format$J$StringBuffer$java_text_FieldPosition((number).longValue$(), toAppendTo, pos); +} else if (Clazz_instanceOf(number, "java.lang.Number")) { +return this.format$D$StringBuffer$java_text_FieldPosition((number).doubleValue$(), toAppendTo, pos); +} else { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["Cannot format given Object as a Number"]); +}}); + +Clazz_newMeth(C$, 'parseObject$S$java_text_ParsePosition', function (source, pos) { +return this.parse$S$java_text_ParsePosition(source, pos); +}); + +Clazz_newMeth(C$, 'format$D', function (number) { +return this.format$D$StringBuffer$java_text_FieldPosition(number, Clazz_new_($I$(3)), $I$(4).INSTANCE).toString(); +}); + +Clazz_newMeth(C$, 'format$J', function (number) { +return this.format$J$StringBuffer$java_text_FieldPosition(number, Clazz_new_($I$(3)), $I$(4).INSTANCE).toString(); +}); + +Clazz_newMeth(C$, 'parse$S', function (source) { +var parsePosition=Clazz_new_($I$(5).c$$I,[0]); +var result=this.parse$S$java_text_ParsePosition(source, parsePosition); +if (parsePosition.index == 0) { +throw Clazz_new_(Clazz_load('java.text.ParseException').c$$S$I,["Unparseable number: \"" + source + "\"" , parsePosition.errorIndex]); +}return result; +}); + +Clazz_newMeth(C$, 'isParseIntegerOnly$', function () { +return this.parseIntegerOnly; +}); + +Clazz_newMeth(C$, 'setParseIntegerOnly$Z', function (value) { +this.parseIntegerOnly=value; +}); + +Clazz_newMeth(C$, 'getInstance$', function () { +return C$.getInstance$java_util_Locale$I($I$(6).getDefault$(), 0); +}, 1); + +Clazz_newMeth(C$, 'getInstance$java_util_Locale', function (inLocale) { +return C$.getInstance$java_util_Locale$I(inLocale, 0); +}, 1); + +Clazz_newMeth(C$, 'getNumberInstance$', function () { +return C$.getInstance$java_util_Locale$I($I$(6).getDefault$(), 0); +}, 1); + +Clazz_newMeth(C$, 'getNumberInstance$java_util_Locale', function (inLocale) { +return C$.getInstance$java_util_Locale$I(inLocale, 0); +}, 1); + +Clazz_newMeth(C$, 'getIntegerInstance$', function () { +return C$.getInstance$java_util_Locale$I($I$(6).getDefault$(), 4); +}, 1); + +Clazz_newMeth(C$, 'getIntegerInstance$java_util_Locale', function (inLocale) { +return C$.getInstance$java_util_Locale$I(inLocale, 4); +}, 1); + +Clazz_newMeth(C$, 'getCurrencyInstance$', function () { +return C$.getInstance$java_util_Locale$I($I$(6).getDefault$(), 1); +}, 1); + +Clazz_newMeth(C$, 'getCurrencyInstance$java_util_Locale', function (inLocale) { +return C$.getInstance$java_util_Locale$I(inLocale, 1); +}, 1); + +Clazz_newMeth(C$, 'getPercentInstance$', function () { +return C$.getInstance$java_util_Locale$I($I$(6).getDefault$(), 2); +}, 1); + +Clazz_newMeth(C$, 'getPercentInstance$java_util_Locale', function (inLocale) { +return C$.getInstance$java_util_Locale$I(inLocale, 2); +}, 1); + +Clazz_newMeth(C$, 'getScientificInstance$', function () { +return C$.getInstance$java_util_Locale$I($I$(6).getDefault$(), 3); +}, 1); + +Clazz_newMeth(C$, 'getScientificInstance$java_util_Locale', function (inLocale) { +return C$.getInstance$java_util_Locale$I(inLocale, 3); +}, 1); + +Clazz_newMeth(C$, 'hashCode$', function () { +return this.maximumIntegerDigits * 37 + this.maxFractionDigits; +}); + +Clazz_newMeth(C$, 'equals$O', function (obj) { +if (obj == null ) { +return false; +}if (this === obj ) { +return true; +}if (this.getClass$() !== obj.getClass$() ) { +return false; +}var other=obj; +return (this.maximumIntegerDigits == other.maximumIntegerDigits && this.minimumIntegerDigits == other.minimumIntegerDigits && this.maximumFractionDigits == other.maximumFractionDigits && this.minimumFractionDigits == other.minimumFractionDigits && this.groupingUsed == other.groupingUsed && this.parseIntegerOnly == other.parseIntegerOnly ); +}); + +Clazz_newMeth(C$, 'clone$', function () { +var other=C$.superclazz.prototype.clone$.apply(this, []); +return other; +}); + +Clazz_newMeth(C$, 'isGroupingUsed$', function () { +return this.groupingUsed; +}); + +Clazz_newMeth(C$, 'setGroupingUsed$Z', function (newValue) { +this.groupingUsed=newValue; +}); + +Clazz_newMeth(C$, 'getMaximumIntegerDigits$', function () { +return this.maximumIntegerDigits; +}); + +Clazz_newMeth(C$, 'setMaximumIntegerDigits$I', function (newValue) { +this.maximumIntegerDigits=Math.max(0, newValue); +if (this.minimumIntegerDigits > this.maximumIntegerDigits) { +this.minimumIntegerDigits=this.maximumIntegerDigits; +}}); + +Clazz_newMeth(C$, 'getMinimumIntegerDigits$', function () { +return this.minimumIntegerDigits; +}); + +Clazz_newMeth(C$, 'setMinimumIntegerDigits$I', function (newValue) { +this.minimumIntegerDigits=Math.max(0, newValue); +if (this.minimumIntegerDigits > this.maximumIntegerDigits) { +this.maximumIntegerDigits=this.minimumIntegerDigits; +}}); + +Clazz_newMeth(C$, 'getMaximumFractionDigits$', function () { +return this.maximumFractionDigits; +}); + +Clazz_newMeth(C$, 'setMaximumFractionDigits$I', function (newValue) { +this.maximumFractionDigits=Math.max(0, newValue); +if (this.maximumFractionDigits < this.minimumFractionDigits) { +this.minimumFractionDigits=this.maximumFractionDigits; +}}); + +Clazz_newMeth(C$, 'getMinimumFractionDigits$', function () { +return this.minimumFractionDigits; +}); + +Clazz_newMeth(C$, 'setMinimumFractionDigits$I', function (newValue) { +this.minimumFractionDigits=Math.max(0, newValue); +if (this.maximumFractionDigits < this.minimumFractionDigits) { +this.maximumFractionDigits=this.minimumFractionDigits; +}}); + +Clazz_newMeth(C$, 'getRoundingMode$', function () { +throw Clazz_new_(Clazz_load('UnsupportedOperationException')); +}); + +Clazz_newMeth(C$, 'setRoundingMode$java_math_RoundingMode', function (roundingMode) { +throw Clazz_new_(Clazz_load('UnsupportedOperationException')); +}); + +Clazz_newMeth(C$, 'getInstance$java_util_Locale$I', function (desiredLocale, choice) { +var numberPatterns=C$.cachedLocaleData.get$O(desiredLocale); +if (numberPatterns == null ) { +var resource=$I$(7).getNumberFormatData$java_util_Locale(desiredLocale); +numberPatterns=resource.getStringArray$S("NumberPatterns"); +C$.cachedLocaleData.put$TK$TV(desiredLocale, numberPatterns); +}var symbols=$I$(8).getInstance$java_util_Locale(desiredLocale); +var entry=(choice == 4) ? 0 : choice; +var format=Clazz_new_($I$(9).c$$S$java_text_DecimalFormatSymbols,[numberPatterns[entry], symbols]); +if (choice == 4) { +format.setMaximumFractionDigits$I(0); +format.setDecimalSeparatorAlwaysShown$Z(false); +format.setParseIntegerOnly$Z(true); +} else if (choice == 1) { +format.adjustForCurrencyDefaultFractionDigits$(); +}return format; +}, 1); +var $b$ = new Int8Array(1); +; +(function(){var C$=Clazz_newClass(P$.NumberFormat, "Field", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, ['java.text.Format','.Field']); +C$.$instanceMap=null; +C$.INTEGER=null; +C$.FRACTION=null; +C$.EXPONENT=null; +C$.DECIMAL_SEPARATOR=null; +C$.SIGN=null; +C$.GROUPING_SEPARATOR=null; +C$.EXPONENT_SYMBOL=null; +C$.PERCENT=null; +C$.PERMILLE=null; +C$.CURRENCY=null; +C$.EXPONENT_SIGN=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.$instanceMap=Clazz_new_($I$(1).c$$I,[11]); +C$.INTEGER=Clazz_new_(C$.c$$S,["integer"]); +C$.FRACTION=Clazz_new_(C$.c$$S,["fraction"]); +C$.EXPONENT=Clazz_new_(C$.c$$S,["exponent"]); +C$.DECIMAL_SEPARATOR=Clazz_new_(C$.c$$S,["decimal separator"]); +C$.SIGN=Clazz_new_(C$.c$$S,["sign"]); +C$.GROUPING_SEPARATOR=Clazz_new_(C$.c$$S,["grouping separator"]); +C$.EXPONENT_SYMBOL=Clazz_new_(C$.c$$S,["exponent symbol"]); +C$.PERCENT=Clazz_new_(C$.c$$S,["percent"]); +C$.PERMILLE=Clazz_new_(C$.c$$S,["per mille"]); +C$.CURRENCY=Clazz_new_(C$.c$$S,["currency"]); +C$.EXPONENT_SIGN=Clazz_new_(C$.c$$S,["exponent sign"]); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$S', function (name) { +C$.superclazz.c$$S.apply(this, [name]); +C$.$init$.apply(this); +if (this.getClass$() === Clazz_getClass(C$) ) { +C$.$instanceMap.put$TK$TV(name, this); +}}, 1); + +Clazz_newMeth(C$); +})() +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:38 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=java.util,I$=[[0,'java.util.Arrays','java.lang.reflect.Array','OutOfMemoryError','java.util.Objects','StringBuilder']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "AbstractCollection", null, null, 'java.util.Collection'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'isEmpty$', function () { +return this.size$() == 0; +}); + +Clazz_newMeth(C$, 'contains$O', function (o) { +var it=this.iterator$(); +if (o == null ) { +while (it.hasNext$())if (it.next$() == null ) return true; + +} else { +while (it.hasNext$())if (o.equals$O(it.next$())) return true; + +}return false; +}); + +Clazz_newMeth(C$, 'toArray$', function () { +var r=Clazz_array(java.lang.Object, [this.size$()]); +var it=this.iterator$(); +for (var i=0; i < r.length; i++) { +if (!it.hasNext$()) return $I$(1).copyOf$TTA$I(r, i); +r[i]=it.next$(); +} +return it.hasNext$() ? C$.finishToArray$TTA$java_util_Iterator(r, it) : r; +}); + +Clazz_newMeth(C$, 'toArray$TTA', function (a) { +var size=this.size$(); +var r=a.length >= size ? a : Clazz_array(a.getClass$().getComponentType$(), size); +var it=this.iterator$(); +for (var i=0; i < r.length; i++) { +if (!it.hasNext$()) { +if (a === r ) { +r[i]=null; +} else if (a.length < i) { +return $I$(1).copyOf$TTA$I(r, i); +} else { +System.arraycopy$O$I$O$I$I(r, 0, a, 0, i); +if (a.length > i) { +a[i]=null; +}}return a; +}r[i]=it.next$(); +} +return it.hasNext$() ? C$.finishToArray$TTA$java_util_Iterator(r, it) : r; +}); + +Clazz_newMeth(C$, 'finishToArray$TTA$java_util_Iterator', function (r, it) { +var i=r.length; +while (it.hasNext$()){ +var cap=r.length; +if (i == cap) { +var newCap=cap + (cap >> 1) + 1 ; +if (newCap - 2147483639 > 0) newCap=C$.hugeCapacity$I(cap + 1); +r=$I$(1).copyOf$TTA$I(r, newCap); +}r[i++]=it.next$(); +} +return (i == r.length) ? r : $I$(1).copyOf$TTA$I(r, i); +}, 1); + +Clazz_newMeth(C$, 'hugeCapacity$I', function (minCapacity) { +if (minCapacity < 0) throw Clazz_new_($I$(3).c$$S,["Required array size too large"]); +return (minCapacity > 2147483639) ? 2147483647 : 2147483639; +}, 1); + +Clazz_newMeth(C$, ['add$TE'], function (e) { +throw Clazz_new_(Clazz_load('UnsupportedOperationException')); +}); + +Clazz_newMeth(C$, 'remove$O', function (o) { +var it=this.iterator$(); +if (o == null ) { +while (it.hasNext$()){ +if (it.next$() == null ) { +it.remove$(); +return true; +}} +} else { +while (it.hasNext$()){ +if (o.equals$O(it.next$())) { +it.remove$(); +return true; +}} +}return false; +}); + +Clazz_newMeth(C$, 'containsAll$java_util_Collection', function (c) { +for (var e, $e = c.iterator$(); $e.hasNext$()&&((e=($e.next$())),1);) if (!this.contains$O(e)) return false; + +return true; +}); + +Clazz_newMeth(C$, 'addAll$java_util_Collection', function (c) { +var modified=false; +for (var e, $e = c.iterator$(); $e.hasNext$()&&((e=($e.next$())),1);) if (this.add$TE(e)) modified=true; + +return modified; +}); + +Clazz_newMeth(C$, 'removeAll$java_util_Collection', function (c) { +$I$(4).requireNonNull$TT(c); +var modified=false; +var it=this.iterator$(); +while (it.hasNext$()){ +if (c.contains$O(it.next$())) { +it.remove$(); +modified=true; +}} +return modified; +}); + +Clazz_newMeth(C$, 'retainAll$java_util_Collection', function (c) { +$I$(4).requireNonNull$TT(c); +var modified=false; +var it=this.iterator$(); +while (it.hasNext$()){ +if (!c.contains$O(it.next$())) { +it.remove$(); +modified=true; +}} +return modified; +}); + +Clazz_newMeth(C$, 'clear$', function () { +var it=this.iterator$(); +while (it.hasNext$()){ +it.next$(); +it.remove$(); +} +}); + +Clazz_newMeth(C$, 'toString', function () { +var it=this.iterator$(); +if (!it.hasNext$()) return "[]"; +var sb=Clazz_new_($I$(5)); +sb.append$C("["); +for (; ; ) { +var e=it.next$(); +sb.append$O(e === this ? "(this Collection)" : e); +if (!it.hasNext$()) return sb.append$C("]").toString(); +sb.append$C(",").append$C(" "); +} +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:38 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=java.util,p$1={},p$2={},I$=[[0,['java.util.AbstractList','.Itr'],['java.util.AbstractList','.ListItr'],'java.util.RandomAccessSubList','java.util.SubList']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "AbstractList", function(){ +Clazz_newInstance(this, arguments,0,C$); +}, 'java.util.AbstractCollection', 'java.util.List'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.modCount=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.modCount=0; +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +Clazz_super_(C$, this,1); +}, 1); + +Clazz_newMeth(C$, ['add$TE'], function (e) { +this.add$I$TE(this.size$(), e); +return true; +}); + +Clazz_newMeth(C$, 'set$I$TE', function (index, element) { +throw Clazz_new_(Clazz_load('UnsupportedOperationException')); +}); + +Clazz_newMeth(C$, 'add$I$TE', function (index, element) { +throw Clazz_new_(Clazz_load('UnsupportedOperationException')); +}); + +Clazz_newMeth(C$, 'remove$I', function (index) { +throw Clazz_new_(Clazz_load('UnsupportedOperationException')); +}); + +Clazz_newMeth(C$, 'indexOf$O', function (o) { +var it=this.listIterator$(); +if (o == null ) { +while (it.hasNext$())if (it.next$() == null ) return it.previousIndex$(); + +} else { +while (it.hasNext$())if (o.equals$O(it.next$())) return it.previousIndex$(); + +}return -1; +}); + +Clazz_newMeth(C$, 'lastIndexOf$O', function (o) { +var it=this.listIterator$I(this.size$()); +if (o == null ) { +while (it.hasPrevious$())if (it.previous$() == null ) return it.nextIndex$(); + +} else { +while (it.hasPrevious$())if (o.equals$O(it.previous$())) return it.nextIndex$(); + +}return -1; +}); + +Clazz_newMeth(C$, 'clear$', function () { +this.removeRange$I$I(0, this.size$()); +}); + +Clazz_newMeth(C$, 'addAll$I$java_util_Collection', function (index, c) { +p$1.rangeCheckForAdd$I.apply(this, [index]); +var modified=false; +for (var e, $e = c.iterator$(); $e.hasNext$()&&((e=($e.next$())),1);) { +this.add$I$TE(index++, e); +modified=true; +} +return modified; +}); + +Clazz_newMeth(C$, 'iterator$', function () { +return Clazz_new_($I$(1), [this, null]); +}); + +Clazz_newMeth(C$, 'listIterator$', function () { +return this.listIterator$I(0); +}); + +Clazz_newMeth(C$, 'listIterator$I', function (index) { +p$1.rangeCheckForAdd$I.apply(this, [index]); +return Clazz_new_($I$(2).c$$I, [this, null, index]); +}); + +Clazz_newMeth(C$, 'subList$I$I', function (fromIndex, toIndex) { +return (Clazz_instanceOf(this, "java.util.RandomAccess") ? Clazz_new_($I$(3).c$$java_util_AbstractList$I$I,[this, fromIndex, toIndex]) : Clazz_new_($I$(4).c$$java_util_AbstractList$I$I,[this, fromIndex, toIndex])); +}); + +Clazz_newMeth(C$, 'equals$O', function (o) { +if (o === this ) return true; +if (!(Clazz_instanceOf(o, "java.util.List"))) return false; +var e1=this.listIterator$(); +var e2=(o).listIterator$(); +while (e1.hasNext$() && e2.hasNext$() ){ +var o1=e1.next$(); +var o2=e2.next$(); +if (!(o1 == null ? o2 == null : o1.equals$O(o2))) return false; +} +return !(e1.hasNext$() || e2.hasNext$() ); +}); + +Clazz_newMeth(C$, 'hashCode$', function () { +var hashCode=1; +for (var e, $e = this.iterator$(); $e.hasNext$()&&((e=($e.next$())),1);) hashCode=31 * hashCode + (e == null ? 0 : e.hashCode$()); + +return hashCode; +}); + +Clazz_newMeth(C$, 'removeRange$I$I', function (fromIndex, toIndex) { +var it=this.listIterator$I(fromIndex); +for (var i=0, n=toIndex - fromIndex; i < n; i++) { +it.next$(); +it.remove$(); +} +}); + +Clazz_newMeth(C$, 'rangeCheckForAdd$I', function (index) { +if (index < 0 || index > this.size$() ) throw Clazz_new_(Clazz_load('IndexOutOfBoundsException').c$$S,[p$1.outOfBoundsMsg$I.apply(this, [index])]); +}, p$1); + +Clazz_newMeth(C$, 'outOfBoundsMsg$I', function (index) { +return "Index: " + index + ", Size: " + this.size$() ; +}, p$1); +; +(function(){var C$=Clazz_newClass(P$.AbstractList, "Itr", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, null, 'java.util.Iterator'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.cursor=0; +this.lastRet=0; +this.expectedModCount=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.cursor=0; +this.lastRet=-1; +this.expectedModCount=this.this$0.modCount; +}, 1); + +Clazz_newMeth(C$, 'hasNext$', function () { +return this.cursor != this.b$['java.util.AbstractCollection'].size$.apply(this.b$['java.util.AbstractCollection'], []); +}); + +Clazz_newMeth(C$, 'next$', function () { +this.checkForComodification$(); +try { +var i=this.cursor; +var next=this.b$['java.util.AbstractList'].get$I.apply(this.b$['java.util.AbstractList'], [i]); +this.lastRet=i; +this.cursor=i + 1; +return next; +} catch (e) { +if (Clazz_exceptionOf(e,"IndexOutOfBoundsException")){ +this.checkForComodification$(); +throw Clazz_new_(Clazz_load('java.util.NoSuchElementException')); +} else { +throw e; +} +} +}); + +Clazz_newMeth(C$, 'remove$', function () { +if (this.lastRet < 0) throw Clazz_new_(Clazz_load('IllegalStateException')); +this.checkForComodification$(); +try { +this.b$['java.util.AbstractList'].remove$I.apply(this.b$['java.util.AbstractList'], [this.lastRet]); +if (this.lastRet < this.cursor) this.cursor--; +this.lastRet=-1; +this.expectedModCount=this.this$0.modCount; +} catch (e) { +if (Clazz_exceptionOf(e,"IndexOutOfBoundsException")){ +throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +} else { +throw e; +} +} +}); + +Clazz_newMeth(C$, 'checkForComodification$', function () { +if (this.this$0.modCount != this.expectedModCount) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.AbstractList, "ListItr", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, ['java.util.AbstractList','.Itr'], 'java.util.ListIterator'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$I', function (index) { +Clazz_super_(C$, this,1); +this.cursor=index; +}, 1); + +Clazz_newMeth(C$, 'hasPrevious$', function () { +return this.cursor != 0; +}); + +Clazz_newMeth(C$, 'previous$', function () { +this.checkForComodification$(); +try { +var i=this.cursor - 1; +var previous=this.b$['java.util.AbstractList'].get$I.apply(this.b$['java.util.AbstractList'], [i]); +this.lastRet=this.cursor=i; +return previous; +} catch (e) { +if (Clazz_exceptionOf(e,"IndexOutOfBoundsException")){ +this.checkForComodification$(); +throw Clazz_new_(Clazz_load('java.util.NoSuchElementException')); +} else { +throw e; +} +} +}); + +Clazz_newMeth(C$, 'nextIndex$', function () { +return this.cursor; +}); + +Clazz_newMeth(C$, 'previousIndex$', function () { +return this.cursor - 1; +}); + +Clazz_newMeth(C$, ['set$TE'], function (e) { +if (this.lastRet < 0) throw Clazz_new_(Clazz_load('IllegalStateException')); +this.checkForComodification$(); +try { +this.b$['java.util.AbstractList'].set$I$TE.apply(this.b$['java.util.AbstractList'], [this.lastRet, e]); +this.expectedModCount=this.this$0.modCount; +} catch (ex) { +if (Clazz_exceptionOf(ex,"IndexOutOfBoundsException")){ +throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +} else { +throw ex; +} +} +}); + +Clazz_newMeth(C$, ['add$TE'], function (e) { +this.checkForComodification$(); +try { +var i=this.cursor; +this.b$['java.util.AbstractList'].add$I$TE.apply(this.b$['java.util.AbstractList'], [i, e]); +this.lastRet=-1; +this.cursor=i + 1; +this.expectedModCount=this.this$0.modCount; +} catch (ex) { +if (Clazz_exceptionOf(ex,"IndexOutOfBoundsException")){ +throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +} else { +throw ex; +} +} +}); + +Clazz_newMeth(C$); +})() +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:38 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=java.util,I$=[[0,'java.util.AbstractSet','java.util.AbstractCollection','StringBuilder']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "AbstractMap", function(){ +Clazz_newInstance(this, arguments,0,C$); +}, null, 'java.util.Map'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.keySet=null; +this.values=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'size$', function () { +return this.entrySet$().size$(); +}); + +Clazz_newMeth(C$, 'isEmpty$', function () { +return this.size$() == 0; +}); + +Clazz_newMeth(C$, 'containsValue$O', function (value) { +var i=this.entrySet$().iterator$(); +if (value == null ) { +while (i.hasNext$()){ +var e=i.next$(); +if (e.getValue$() == null ) return true; +} +} else { +while (i.hasNext$()){ +var e=i.next$(); +if (value.equals$O(e.getValue$())) return true; +} +}return false; +}); + +Clazz_newMeth(C$, 'containsKey$O', function (key) { +var i=this.entrySet$().iterator$(); +if (key == null ) { +while (i.hasNext$()){ +var e=i.next$(); +if (e.getKey$() == null ) return true; +} +} else { +while (i.hasNext$()){ +var e=i.next$(); +if (key.equals$O(e.getKey$())) return true; +} +}return false; +}); + +Clazz_newMeth(C$, 'get$O', function (key) { +var i=this.entrySet$().iterator$(); +if (key == null ) { +while (i.hasNext$()){ +var e=i.next$(); +if (e.getKey$() == null ) return e.getValue$(); +} +} else { +while (i.hasNext$()){ +var e=i.next$(); +if (key.equals$O(e.getKey$())) return e.getValue$(); +} +}return null; +}); + +Clazz_newMeth(C$, ['put$TK$TV'], function (key, value) { +throw Clazz_new_(Clazz_load('UnsupportedOperationException')); +}); + +Clazz_newMeth(C$, 'remove$O', function (key) { +var i=this.entrySet$().iterator$(); +var correctEntry=null; +if (key == null ) { +while (correctEntry == null && i.hasNext$() ){ +var e=i.next$(); +if (e.getKey$() == null ) correctEntry=e; +} +} else { +while (correctEntry == null && i.hasNext$() ){ +var e=i.next$(); +if (key.equals$O(e.getKey$())) correctEntry=e; +} +}var oldValue=null; +if (correctEntry != null ) { +oldValue=correctEntry.getValue$(); +i.remove$(); +}return oldValue; +}); + +Clazz_newMeth(C$, 'putAll$java_util_Map', function (m) { +for (var e, $e = m.entrySet$().iterator$(); $e.hasNext$()&&((e=($e.next$())),1);) this.put$TK$TV(e.getKey$(), e.getValue$()); + +}); + +Clazz_newMeth(C$, 'clear$', function () { +this.entrySet$().clear$(); +}); + +Clazz_newMeth(C$, 'keySet$', function () { +if (this.keySet == null ) { +this.keySet=((P$.AbstractMap$1|| +(function(){var C$=Clazz_newClass(P$, "AbstractMap$1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, Clazz_load('java.util.AbstractSet'), null, 1); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'iterator$', function () { +return ((P$.AbstractMap$1$1|| +(function(){var C$=Clazz_newClass(P$, "AbstractMap$1$1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'java.util.Iterator', 1); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.i=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.i=this.b$['java.util.AbstractMap'].entrySet$.apply(this.b$['java.util.AbstractMap'], []).iterator$(); +}, 1); + +Clazz_newMeth(C$, 'hasNext$', function () { +return this.i.hasNext$(); +}); + +Clazz_newMeth(C$, 'next$', function () { +return this.i.next$().getKey$(); +}); + +Clazz_newMeth(C$, 'remove$', function () { +this.i.remove$(); +}); +})() +), Clazz_new_(P$.AbstractMap$1$1.$init$, [this, null])); +}); + +Clazz_newMeth(C$, 'size$', function () { +return this.b$['java.util.AbstractMap'].size$.apply(this.b$['java.util.AbstractMap'], []); +}); + +Clazz_newMeth(C$, 'isEmpty$', function () { +return this.b$['java.util.AbstractMap'].isEmpty$.apply(this.b$['java.util.AbstractMap'], []); +}); + +Clazz_newMeth(C$, 'clear$', function () { +this.b$['java.util.AbstractMap'].clear$.apply(this.b$['java.util.AbstractMap'], []); +}); + +Clazz_newMeth(C$, 'contains$O', function (k) { +return this.b$['java.util.AbstractMap'].containsKey$O.apply(this.b$['java.util.AbstractMap'], [k]); +}); +})() +), Clazz_new_($I$(1), [this, null],P$.AbstractMap$1)); +}return this.keySet; +}); + +Clazz_newMeth(C$, 'values$', function () { +if (this.values == null ) { +this.values=((P$.AbstractMap$2|| +(function(){var C$=Clazz_newClass(P$, "AbstractMap$2", function(){Clazz_newInstance(this, arguments[0],1,C$);}, Clazz_load('java.util.AbstractCollection'), null, 1); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'iterator$', function () { +return ((P$.AbstractMap$2$1|| +(function(){var C$=Clazz_newClass(P$, "AbstractMap$2$1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'java.util.Iterator', 1); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.i=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.i=this.b$['java.util.AbstractMap'].entrySet$.apply(this.b$['java.util.AbstractMap'], []).iterator$(); +}, 1); + +Clazz_newMeth(C$, 'hasNext$', function () { +return this.i.hasNext$(); +}); + +Clazz_newMeth(C$, 'next$', function () { +return this.i.next$().getValue$(); +}); + +Clazz_newMeth(C$, 'remove$', function () { +this.i.remove$(); +}); +})() +), Clazz_new_(P$.AbstractMap$2$1.$init$, [this, null])); +}); + +Clazz_newMeth(C$, 'size$', function () { +return this.b$['java.util.AbstractMap'].size$.apply(this.b$['java.util.AbstractMap'], []); +}); + +Clazz_newMeth(C$, 'isEmpty$', function () { +return this.b$['java.util.AbstractMap'].isEmpty$.apply(this.b$['java.util.AbstractMap'], []); +}); + +Clazz_newMeth(C$, 'clear$', function () { +this.b$['java.util.AbstractMap'].clear$.apply(this.b$['java.util.AbstractMap'], []); +}); + +Clazz_newMeth(C$, 'contains$O', function (v) { +return this.b$['java.util.AbstractMap'].containsValue$O.apply(this.b$['java.util.AbstractMap'], [v]); +}); +})() +), Clazz_new_($I$(2), [this, null],P$.AbstractMap$2)); +}return this.values; +}); + +Clazz_newMeth(C$, 'equals$O', function (o) { +if (o === this ) return true; +if (!(Clazz_instanceOf(o, "java.util.Map"))) return false; +var m=o; +if (m.size$() != this.size$()) return false; +try { +var i=this.entrySet$().iterator$(); +while (i.hasNext$()){ +var e=i.next$(); +var key=e.getKey$(); +var value=e.getValue$(); +if (value == null ) { +if (!(m.get$O(key) == null && m.containsKey$O(key) )) return false; +} else { +if (!value.equals$O(m.get$O(key))) return false; +}} +} catch (e$$) { +if (Clazz_exceptionOf(e$$,"ClassCastException")){ +var unused = e$$; +{ +return false; +} +} else if (Clazz_exceptionOf(e$$,"NullPointerException")){ +var unused = e$$; +{ +return false; +} +} else { +throw e$$; +} +} +return true; +}); + +Clazz_newMeth(C$, 'hashCode$', function () { +var h=0; +var i=this.entrySet$().iterator$(); +while (i.hasNext$())h+=i.next$().hashCode$(); + +return h; +}); + +Clazz_newMeth(C$, 'toString', function () { +var i=this.entrySet$().iterator$(); +if (!i.hasNext$()) return "{}"; +var sb=Clazz_new_($I$(3)); +sb.append$C("{"); +for (; ; ) { +var e=i.next$(); +var key=e.getKey$(); +var value=e.getValue$(); +sb.append$O(key === this ? "(this Map)" : key); +sb.append$C("="); +sb.append$O(value === this ? "(this Map)" : value); +if (!i.hasNext$()) return sb.append$C("}").toString(); +sb.append$C(",").append$C(" "); +} +}); + +Clazz_newMeth(C$, 'clone$', function () { +var result=Clazz_clone(this); +result.keySet=null; +result.values=null; +return result; +}); + +Clazz_newMeth(C$, 'eq$O$O', function (o1, o2) { +return o1 == null ? o2 == null : o1.equals$O(o2); +}, 1); +; +(function(){var C$=Clazz_newClass(P$.AbstractMap, "SimpleEntry", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, null, [['java.util.Map','java.util.Map.Entry'], 'java.io.Serializable']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.key=null; +this.value=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, ['c$$TK$TV'], function (key, value) { +C$.$init$.apply(this); +this.key=key; +this.value=value; +}, 1); + +Clazz_newMeth(C$, 'c$$java_util_Map_Entry', function (entry) { +C$.$init$.apply(this); +this.key=entry.getKey$(); +this.value=entry.getValue$(); +}, 1); + +Clazz_newMeth(C$, 'getKey$', function () { +return this.key; +}); + +Clazz_newMeth(C$, 'getValue$', function () { +return this.value; +}); + +Clazz_newMeth(C$, ['setValue$TV'], function (value) { +var oldValue=this.value; +this.value=value; +return oldValue; +}); + +Clazz_newMeth(C$, 'equals$O', function (o) { +if (!(Clazz_instanceOf(o, "java.util.Map.Entry"))) return false; +var e=o; +return P$.AbstractMap.eq$O$O(this.key, e.getKey$()) && P$.AbstractMap.eq$O$O(this.value, e.getValue$()) ; +}); + +Clazz_newMeth(C$, 'hashCode$', function () { +return (this.key == null ? 0 : this.key.hashCode$()) ^ (this.value == null ? 0 : this.value.hashCode$()); +}); + +Clazz_newMeth(C$, 'toString', function () { +return this.key + "=" + this.value ; +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.AbstractMap, "SimpleImmutableEntry", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, null, [['java.util.Map','java.util.Map.Entry'], 'java.io.Serializable']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.key=null; +this.value=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, ['c$$TK$TV'], function (key, value) { +C$.$init$.apply(this); +this.key=key; +this.value=value; +}, 1); + +Clazz_newMeth(C$, 'c$$java_util_Map_Entry', function (entry) { +C$.$init$.apply(this); +this.key=entry.getKey$(); +this.value=entry.getValue$(); +}, 1); + +Clazz_newMeth(C$, 'getKey$', function () { +return this.key; +}); + +Clazz_newMeth(C$, 'getValue$', function () { +return this.value; +}); + +Clazz_newMeth(C$, ['setValue$TV'], function (value) { +throw Clazz_new_(Clazz_load('UnsupportedOperationException')); +}); + +Clazz_newMeth(C$, 'equals$O', function (o) { +if (!(Clazz_instanceOf(o, "java.util.Map.Entry"))) return false; +var e=o; +return P$.AbstractMap.eq$O$O(this.key, e.getKey$()) && P$.AbstractMap.eq$O$O(this.value, e.getValue$()) ; +}); + +Clazz_newMeth(C$, 'hashCode$', function () { +return (this.key == null ? 0 : this.key.hashCode$()) ^ (this.value == null ? 0 : this.value.hashCode$()); +}); + +Clazz_newMeth(C$, 'toString', function () { +return this.key + "=" + this.value ; +}); + +Clazz_newMeth(C$); +})() +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:38 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=java.util,I$=[]; +var C$=Clazz_newClass(P$, "AbstractSequentialList", null, 'java.util.AbstractList'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +Clazz_super_(C$, this,1); +}, 1); + +Clazz_newMeth(C$, 'get$I', function (index) { +try { +return this.listIterator$I(index).next$(); +} catch (exc) { +if (Clazz_exceptionOf(exc,"java.util.NoSuchElementException")){ +throw Clazz_new_(Clazz_load('IndexOutOfBoundsException').c$$S,["Index: " + index]); +} else { +throw exc; +} +} +}); + +Clazz_newMeth(C$, 'set$I$TE', function (index, element) { +try { +var e=this.listIterator$I(index); +var oldVal=e.next$(); +e.set$TE(element); +return oldVal; +} catch (exc) { +if (Clazz_exceptionOf(exc,"java.util.NoSuchElementException")){ +throw Clazz_new_(Clazz_load('IndexOutOfBoundsException').c$$S,["Index: " + index]); +} else { +throw exc; +} +} +}); + +Clazz_newMeth(C$, 'add$I$TE', function (index, element) { +try { +this.listIterator$I(index).add$TE(element); +} catch (exc) { +if (Clazz_exceptionOf(exc,"java.util.NoSuchElementException")){ +throw Clazz_new_(Clazz_load('IndexOutOfBoundsException').c$$S,["Index: " + index]); +} else { +throw exc; +} +} +}); + +Clazz_newMeth(C$, 'remove$I', function (index) { +try { +var e=this.listIterator$I(index); +var outCast=e.next$(); +e.remove$(); +return outCast; +} catch (exc) { +if (Clazz_exceptionOf(exc,"java.util.NoSuchElementException")){ +throw Clazz_new_(Clazz_load('IndexOutOfBoundsException').c$$S,["Index: " + index]); +} else { +throw exc; +} +} +}); + +Clazz_newMeth(C$, 'addAll$I$java_util_Collection', function (index, c) { +try { +var modified=false; +var e1=this.listIterator$I(index); +var e2=c.iterator$(); +while (e2.hasNext$()){ +e1.add$TE(e2.next$()); +modified=true; +} +return modified; +} catch (exc) { +if (Clazz_exceptionOf(exc,"java.util.NoSuchElementException")){ +throw Clazz_new_(Clazz_load('IndexOutOfBoundsException').c$$S,["Index: " + index]); +} else { +throw exc; +} +} +}); + +Clazz_newMeth(C$, 'iterator$', function () { +return this.listIterator$(); +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:38 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=java.util,I$=[[0,'java.util.Objects']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "AbstractSet", null, 'java.util.AbstractCollection', 'java.util.Set'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +Clazz_super_(C$, this,1); +}, 1); + +Clazz_newMeth(C$, 'equals$O', function (o) { +if (o === this ) return true; +if (!(Clazz_instanceOf(o, "java.util.Set"))) return false; +var c=o; +if (c.size$() != this.size$()) return false; +try { +return this.containsAll$java_util_Collection(c); +} catch (e$$) { +if (Clazz_exceptionOf(e$$,"ClassCastException")){ +var unused = e$$; +{ +return false; +} +} else if (Clazz_exceptionOf(e$$,"NullPointerException")){ +var unused = e$$; +{ +return false; +} +} else { +throw e$$; +} +} +}); + +Clazz_newMeth(C$, 'hashCode$', function () { +var h=0; +var i=this.iterator$(); +while (i.hasNext$()){ +var obj=i.next$(); +if (obj != null ) h+=obj.hashCode$(); +} +return h; +}); + +Clazz_newMeth(C$, 'removeAll$java_util_Collection', function (c) { +$I$(1).requireNonNull$TT(c); +var modified=false; +if (this.size$() > c.size$()) { +for (var i=c.iterator$(); i.hasNext$(); ) modified|=this.remove$O(i.next$()); + +} else { +for (var i=this.iterator$(); i.hasNext$(); ) { +if (c.contains$O(i.next$())) { +i.remove$(); +modified=true; +}} +}return modified; +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:38 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=java.util,p$1={},p$2={},I$=[[0,'java.util.Objects',['java.util.ArrayList','.ArrayListSpliterator'],'java.util.Arrays','OutOfMemoryError','InternalError',['java.util.ArrayList','.ListItr'],['java.util.ArrayList','.Itr'],['java.util.ArrayList','.SubList'],'java.util.BitSet']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "ArrayList", function(){ +Clazz_newInstance(this, arguments,0,C$); +}, 'java.util.AbstractList', ['java.util.List', 'java.util.RandomAccess', 'Cloneable', 'java.io.Serializable']); +C$.EMPTY_ELEMENTDATA=null; +C$.DEFAULTCAPACITY_EMPTY_ELEMENTDATA=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.EMPTY_ELEMENTDATA=Clazz_array(java.lang.Object, -1, []); +C$.DEFAULTCAPACITY_EMPTY_ELEMENTDATA=Clazz_array(java.lang.Object, -1, []); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.elementData=null; +this.size=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$I', function (initialCapacity) { +Clazz_super_(C$, this,1); +if (initialCapacity > 0) { +this.elementData=Clazz_array(java.lang.Object, [initialCapacity]); +} else if (initialCapacity == 0) { +this.elementData=C$.EMPTY_ELEMENTDATA; +} else { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["Illegal Capacity: " + initialCapacity]); +}}, 1); + +Clazz_newMeth(C$, 'c$', function () { +Clazz_super_(C$, this,1); +this.elementData=C$.DEFAULTCAPACITY_EMPTY_ELEMENTDATA; +}, 1); + +Clazz_newMeth(C$, 'c$$java_util_Collection', function (c) { +Clazz_super_(C$, this,1); +this.elementData=c.toArray$(); +if ((this.size=this.elementData.length) != 0) { +if (this.elementData.getClass$() !== Clazz_array(java.lang.Object, -1) ) this.elementData=$I$(3).copyOf$TUA$I$Class(this.elementData, this.size, Clazz_array(java.lang.Object, -1)); +} else { +this.elementData=C$.EMPTY_ELEMENTDATA; +}}, 1); + +Clazz_newMeth(C$, 'trimToSize$', function () { +this.modCount++; +if (this.size < this.elementData.length) { +this.elementData=(this.size == 0) ? C$.EMPTY_ELEMENTDATA : $I$(3).copyOf$TTA$I(this.elementData, this.size); +}}); + +Clazz_newMeth(C$, 'ensureCapacity$I', function (minCapacity) { +var minExpand=(this.elementData !== C$.DEFAULTCAPACITY_EMPTY_ELEMENTDATA ) ? 0 : 10; +if (minCapacity > minExpand) { +p$1.ensureExplicitCapacity$I.apply(this, [minCapacity]); +}}); + +Clazz_newMeth(C$, 'ensureCapacityInternal$I', function (minCapacity) { +if (this.elementData === C$.DEFAULTCAPACITY_EMPTY_ELEMENTDATA ) { +minCapacity=Math.max(10, minCapacity); +}p$1.ensureExplicitCapacity$I.apply(this, [minCapacity]); +}, p$1); + +Clazz_newMeth(C$, 'ensureExplicitCapacity$I', function (minCapacity) { +this.modCount++; +if (minCapacity - this.elementData.length > 0) p$1.grow$I.apply(this, [minCapacity]); +}, p$1); + +Clazz_newMeth(C$, 'grow$I', function (minCapacity) { +var oldCapacity=this.elementData.length; +var newCapacity=oldCapacity + (oldCapacity >> 1); +if (newCapacity - minCapacity < 0) newCapacity=minCapacity; +if (newCapacity - 2147483639 > 0) newCapacity=C$.hugeCapacity$I(minCapacity); +this.elementData=$I$(3).copyOf$TTA$I(this.elementData, newCapacity); +}, p$1); + +Clazz_newMeth(C$, 'hugeCapacity$I', function (minCapacity) { +if (minCapacity < 0) throw Clazz_new_($I$(4)); +return (minCapacity > 2147483639) ? 2147483647 : 2147483639; +}, 1); + +Clazz_newMeth(C$, 'size$', function () { +return this.size; +}); + +Clazz_newMeth(C$, 'isEmpty$', function () { +return this.size == 0; +}); + +Clazz_newMeth(C$, 'contains$O', function (o) { +return this.indexOf$O(o) >= 0; +}); + +Clazz_newMeth(C$, 'indexOf$O', function (o) { +if (o == null ) { +for (var i=0; i < this.size; i++) if (this.elementData[i] == null ) return i; + +} else { +for (var i=0; i < this.size; i++) if (o.equals$O(this.elementData[i])) return i; + +}return -1; +}); + +Clazz_newMeth(C$, 'lastIndexOf$O', function (o) { +if (o == null ) { +for (var i=this.size - 1; i >= 0; i--) if (this.elementData[i] == null ) return i; + +} else { +for (var i=this.size - 1; i >= 0; i--) if (o.equals$O(this.elementData[i])) return i; + +}return -1; +}); + +Clazz_newMeth(C$, 'clone$', function () { +try { +var v=Clazz_clone(this); +v.elementData=$I$(3).copyOf$TTA$I(this.elementData, this.size); +v.modCount=0; +return v; +} catch (e) { +if (Clazz_exceptionOf(e,"CloneNotSupportedException")){ +throw Clazz_new_($I$(5).c$$Throwable,[e]); +} else { +throw e; +} +} +}); + +Clazz_newMeth(C$, 'toArray$', function () { +return $I$(3).copyOf$TTA$I(this.elementData, this.size); +}); + +Clazz_newMeth(C$, 'toArray$TTA', function (a) { +if (a.length < this.size) return $I$(3).copyOf$TUA$I$Class(this.elementData, this.size, a.getClass$()); +System.arraycopy$O$I$O$I$I(this.elementData, 0, a, 0, this.size); +if (a.length > this.size) a[this.size]=null; +return a; +}); + +Clazz_newMeth(C$, 'elementData$I', function (index) { +return this.elementData[index]; +}); + +Clazz_newMeth(C$, 'get$I', function (index) { +p$1.rangeCheck$I.apply(this, [index]); +return this.elementData$I(index); +}); + +Clazz_newMeth(C$, 'set$I$TE', function (index, element) { +p$1.rangeCheck$I.apply(this, [index]); +var oldValue=this.elementData$I(index); +this.elementData[index]=element; +return oldValue; +}); + +Clazz_newMeth(C$, ['add$TE'], function (e) { +p$1.ensureCapacityInternal$I.apply(this, [this.size + 1]); +this.elementData[this.size++]=e; +return true; +}); + +Clazz_newMeth(C$, 'add$I$TE', function (index, element) { +p$1.rangeCheckForAdd$I.apply(this, [index]); +p$1.ensureCapacityInternal$I.apply(this, [this.size + 1]); +System.arraycopy$O$I$O$I$I(this.elementData, index, this.elementData, index + 1, this.size - index); +this.elementData[index]=element; +this.size++; +}); + +Clazz_newMeth(C$, 'remove$I', function (index) { +p$1.rangeCheck$I.apply(this, [index]); +this.modCount++; +var oldValue=this.elementData$I(index); +var numMoved=this.size - index - 1 ; +if (numMoved > 0) System.arraycopy$O$I$O$I$I(this.elementData, index + 1, this.elementData, index, numMoved); +this.elementData[--this.size]=null; +return oldValue; +}); + +Clazz_newMeth(C$, 'remove$O', function (o) { +if (o == null ) { +for (var index=0; index < this.size; index++) if (this.elementData[index] == null ) { +p$1.fastRemove$I.apply(this, [index]); +return true; +} +} else { +for (var index=0; index < this.size; index++) if (o.equals$O(this.elementData[index])) { +p$1.fastRemove$I.apply(this, [index]); +return true; +} +}return false; +}); + +Clazz_newMeth(C$, 'fastRemove$I', function (index) { +this.modCount++; +var numMoved=this.size - index - 1 ; +if (numMoved > 0) System.arraycopy$O$I$O$I$I(this.elementData, index + 1, this.elementData, index, numMoved); +this.elementData[--this.size]=null; +}, p$1); + +Clazz_newMeth(C$, 'clear$', function () { +this.modCount++; +for (var i=0; i < this.size; i++) this.elementData[i]=null; + +this.size=0; +}); + +Clazz_newMeth(C$, 'addAll$java_util_Collection', function (c) { +var a=c.toArray$(); +var numNew=a.length; +p$1.ensureCapacityInternal$I.apply(this, [this.size + numNew]); +System.arraycopy$O$I$O$I$I(a, 0, this.elementData, this.size, numNew); +this.size+=numNew; +return numNew != 0; +}); + +Clazz_newMeth(C$, 'addAll$I$java_util_Collection', function (index, c) { +p$1.rangeCheckForAdd$I.apply(this, [index]); +var a=c.toArray$(); +var numNew=a.length; +p$1.ensureCapacityInternal$I.apply(this, [this.size + numNew]); +var numMoved=this.size - index; +if (numMoved > 0) System.arraycopy$O$I$O$I$I(this.elementData, index, this.elementData, index + numNew, numMoved); +System.arraycopy$O$I$O$I$I(a, 0, this.elementData, index, numNew); +this.size+=numNew; +return numNew != 0; +}); + +Clazz_newMeth(C$, 'removeRange$I$I', function (fromIndex, toIndex) { +this.modCount++; +var numMoved=this.size - toIndex; +System.arraycopy$O$I$O$I$I(this.elementData, toIndex, this.elementData, fromIndex, numMoved); +var newSize=this.size - (toIndex - fromIndex); +for (var i=newSize; i < this.size; i++) { +this.elementData[i]=null; +} +this.size=newSize; +}); + +Clazz_newMeth(C$, 'rangeCheck$I', function (index) { +if (index >= this.size) throw Clazz_new_(Clazz_load('IndexOutOfBoundsException').c$$S,[p$1.outOfBoundsMsg$I.apply(this, [index])]); +}, p$1); + +Clazz_newMeth(C$, 'rangeCheckForAdd$I', function (index) { +if (index > this.size || index < 0 ) throw Clazz_new_(Clazz_load('IndexOutOfBoundsException').c$$S,[p$1.outOfBoundsMsg$I.apply(this, [index])]); +}, p$1); + +Clazz_newMeth(C$, 'outOfBoundsMsg$I', function (index) { +return "Index: " + index + ", Size: " + this.size ; +}, p$1); + +Clazz_newMeth(C$, 'removeAll$java_util_Collection', function (c) { +$I$(1).requireNonNull$TT(c); +return p$1.batchRemove$java_util_Collection$Z.apply(this, [c, false]); +}); + +Clazz_newMeth(C$, 'retainAll$java_util_Collection', function (c) { +$I$(1).requireNonNull$TT(c); +return p$1.batchRemove$java_util_Collection$Z.apply(this, [c, true]); +}); + +Clazz_newMeth(C$, 'batchRemove$java_util_Collection$Z', function (c, complement) { +var elementData=this.elementData; +var r=0; +var w=0; +var modified=false; +try { +for (; r < this.size; r++) if (c.contains$O(elementData[r]) == complement ) elementData[w++]=elementData[r]; + +} finally { +if (r != this.size) { +System.arraycopy$O$I$O$I$I(elementData, r, elementData, w, this.size - r); +w+=this.size - r; +}if (w != this.size) { +for (var i=w; i < this.size; i++) elementData[i]=null; + +this.modCount+=this.size - w; +this.size=w; +modified=true; +}} +return modified; +}, p$1); + +Clazz_newMeth(C$, 'writeObject$java_io_ObjectOutputStream', function (s) { +var expectedModCount=this.modCount; +s.defaultWriteObject$(); +s.writeInt$I(this.size); +for (var i=0; i < this.size; i++) { +s.writeObject$O(this.elementData[i]); +} +if (this.modCount != expectedModCount) { +throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +}}, p$1); + +Clazz_newMeth(C$, 'readObject$java_io_ObjectInputStream', function (s) { +this.elementData=C$.EMPTY_ELEMENTDATA; +s.defaultReadObject$(); +s.readInt$(); +if (this.size > 0) { +p$1.ensureCapacityInternal$I.apply(this, [this.size]); +var a=this.elementData; +for (var i=0; i < this.size; i++) { +a[i]=s.readObject$(); +} +}}, p$1); + +Clazz_newMeth(C$, 'listIterator$I', function (index) { +if (index < 0 || index > this.size ) throw Clazz_new_(Clazz_load('IndexOutOfBoundsException').c$$S,["Index: " + index]); +return Clazz_new_($I$(6).c$$I, [this, null, index]); +}); + +Clazz_newMeth(C$, 'listIterator$', function () { +return Clazz_new_($I$(6).c$$I, [this, null, 0]); +}); + +Clazz_newMeth(C$, 'iterator$', function () { +return Clazz_new_($I$(7), [this, null]); +}); + +Clazz_newMeth(C$, 'subList$I$I', function (fromIndex, toIndex) { +C$.subListRangeCheck$I$I$I(fromIndex, toIndex, this.size); +return Clazz_new_($I$(8).c$$java_util_AbstractList$I$I$I, [this, null, this, 0, fromIndex, toIndex]); +}); + +Clazz_newMeth(C$, 'subListRangeCheck$I$I$I', function (fromIndex, toIndex, size) { +if (fromIndex < 0) throw Clazz_new_(Clazz_load('IndexOutOfBoundsException').c$$S,["fromIndex = " + fromIndex]); +if (toIndex > size) throw Clazz_new_(Clazz_load('IndexOutOfBoundsException').c$$S,["toIndex = " + toIndex]); +if (fromIndex > toIndex) throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["fromIndex(" + fromIndex + ") > toIndex(" + toIndex + ")" ]); +}, 1); + +Clazz_newMeth(C$, 'forEach$java_util_function_Consumer', function (action) { +$I$(1).requireNonNull$TT(action); +var expectedModCount=this.modCount; +var elementData=this.elementData; +var size=this.size; +for (var i=0; this.modCount == expectedModCount && i < size ; i++) { +action.accept$(elementData[i]); +} +if (this.modCount != expectedModCount) { +throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +}}); + +Clazz_newMeth(C$, 'spliterator$', function () { +return Clazz_new_($I$(2).c$$java_util_ArrayList$I$I$I,[this, 0, -1, 0]); +}); + +Clazz_newMeth(C$, 'removeIf$java_util_function_Predicate', function (filter) { +$I$(1).requireNonNull$TT(filter); +var removeCount=0; +var removeSet=Clazz_new_($I$(9).c$$I,[this.size]); +var expectedModCount=this.modCount; +var size=this.size; +for (var i=0; this.modCount == expectedModCount && i < size ; i++) { +var element=this.elementData[i]; +if (filter.test$(element)) { +removeSet.set$I(i); +removeCount++; +}} +if (this.modCount != expectedModCount) { +throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +}var anyToRemove=removeCount > 0; +if (anyToRemove) { +var newSize=size - removeCount; +for (var i=0, j=0; (i < size) && (j < newSize) ; i++, j++) { +i=removeSet.nextClearBit$I(i); +this.elementData[j]=this.elementData[i]; +} +for (var k=newSize; k < size; k++) { +this.elementData[k]=null; +} +this.size=newSize; +if (this.modCount != expectedModCount) { +throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +}this.modCount++; +}return anyToRemove; +}); + +Clazz_newMeth(C$, 'replaceAll$java_util_function_UnaryOperator', function (operator) { +$I$(1).requireNonNull$TT(operator); +var expectedModCount=this.modCount; +var size=this.size; +for (var i=0; this.modCount == expectedModCount && i < size ; i++) { +this.elementData[i]=operator.apply$(this.elementData[i]); +} +if (this.modCount != expectedModCount) { +throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +}this.modCount++; +}); + +Clazz_newMeth(C$, 'sort$java_util_Comparator', function (c) { +var expectedModCount=this.modCount; +$I$(3).sort$TTA$I$I$java_util_Comparator(this.elementData, 0, this.size, c); +if (this.modCount != expectedModCount) { +throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +}this.modCount++; +}); +; +(function(){var C$=Clazz_newClass(P$.ArrayList, "Itr", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, null, 'java.util.Iterator'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.cursor=0; +this.lastRet=0; +this.expectedModCount=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.lastRet=-1; +this.expectedModCount=this.this$0.modCount; +}, 1); + +Clazz_newMeth(C$, 'hasNext$', function () { +return this.cursor != this.this$0.size; +}); + +Clazz_newMeth(C$, 'next$', function () { +this.checkForComodification$(); +var i=this.cursor; +if (i >= this.this$0.size) throw Clazz_new_(Clazz_load('java.util.NoSuchElementException')); +var elementData=this.b$['java.util.ArrayList'].elementData; +if (i >= elementData.length) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +this.cursor=i + 1; +return elementData[this.lastRet=i]; +}); + +Clazz_newMeth(C$, 'remove$', function () { +if (this.lastRet < 0) throw Clazz_new_(Clazz_load('IllegalStateException')); +this.checkForComodification$(); +try { +this.b$['java.util.ArrayList'].remove$I.apply(this.b$['java.util.ArrayList'], [this.lastRet]); +this.cursor=this.lastRet; +this.lastRet=-1; +this.expectedModCount=this.this$0.modCount; +} catch (ex) { +if (Clazz_exceptionOf(ex,"IndexOutOfBoundsException")){ +throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +} else { +throw ex; +} +} +}); + +Clazz_newMeth(C$, 'forEachRemaining$java_util_function_Consumer', function (consumer) { +$I$(1).requireNonNull$TT(consumer); +var size=this.b$['java.util.ArrayList'].size; +var i=this.cursor; +if (i >= size) { +return; +}var elementData=this.b$['java.util.ArrayList'].elementData; +if (i >= elementData.length) { +throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +}while (i != size && this.this$0.modCount == this.expectedModCount ){ +consumer.accept$(elementData[i++]); +} +this.cursor=i; +this.lastRet=i - 1; +this.checkForComodification$(); +}); + +Clazz_newMeth(C$, 'checkForComodification$', function () { +if (this.this$0.modCount != this.expectedModCount) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.ArrayList, "ListItr", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, ['java.util.ArrayList','.Itr'], 'java.util.ListIterator'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$I', function (index) { +C$.superclazz.c$.apply(this, []); +C$.$init$.apply(this); +this.cursor=index; +}, 1); + +Clazz_newMeth(C$, 'hasPrevious$', function () { +return this.cursor != 0; +}); + +Clazz_newMeth(C$, 'nextIndex$', function () { +return this.cursor; +}); + +Clazz_newMeth(C$, 'previousIndex$', function () { +return this.cursor - 1; +}); + +Clazz_newMeth(C$, 'previous$', function () { +this.checkForComodification$(); +var i=this.cursor - 1; +if (i < 0) throw Clazz_new_(Clazz_load('java.util.NoSuchElementException')); +var elementData=this.b$['java.util.ArrayList'].elementData; +if (i >= elementData.length) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +this.cursor=i; +return elementData[this.lastRet=i]; +}); + +Clazz_newMeth(C$, ['set$TE'], function (e) { +if (this.lastRet < 0) throw Clazz_new_(Clazz_load('IllegalStateException')); +this.checkForComodification$(); +try { +this.b$['java.util.ArrayList'].set$I$TE.apply(this.b$['java.util.ArrayList'], [this.lastRet, e]); +} catch (ex) { +if (Clazz_exceptionOf(ex,"IndexOutOfBoundsException")){ +throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +} else { +throw ex; +} +} +}); + +Clazz_newMeth(C$, ['add$TE'], function (e) { +this.checkForComodification$(); +try { +var i=this.cursor; +this.b$['java.util.ArrayList'].add$I$TE.apply(this.b$['java.util.ArrayList'], [i, e]); +this.cursor=i + 1; +this.lastRet=-1; +this.expectedModCount=this.this$0.modCount; +} catch (ex) { +if (Clazz_exceptionOf(ex,"IndexOutOfBoundsException")){ +throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +} else { +throw ex; +} +} +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.ArrayList, "SubList", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, 'java.util.AbstractList', 'java.util.RandomAccess'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.parent=null; +this.parentOffset=0; +this.offset=0; +this.size=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$java_util_AbstractList$I$I$I', function (parent, offset, fromIndex, toIndex) { +Clazz_super_(C$, this,1); +this.parent=parent; +this.parentOffset=fromIndex; +this.offset=offset + fromIndex; +this.size=toIndex - fromIndex; +this.modCount=this.b$['java.util.ArrayList'].modCount; +}, 1); + +Clazz_newMeth(C$, 'set$I$TE', function (index, e) { +p$1.rangeCheck$I.apply(this, [index]); +p$1.checkForComodification.apply(this, []); +var oldValue=this.b$['java.util.ArrayList'].elementData$I.apply(this.b$['java.util.ArrayList'], [this.offset + index]); +this.b$['java.util.ArrayList'].elementData[this.offset + index]=e; +return oldValue; +}); + +Clazz_newMeth(C$, 'get$I', function (index) { +p$1.rangeCheck$I.apply(this, [index]); +p$1.checkForComodification.apply(this, []); +return this.b$['java.util.ArrayList'].elementData$I.apply(this.b$['java.util.ArrayList'], [this.offset + index]); +}); + +Clazz_newMeth(C$, 'size$', function () { +p$1.checkForComodification.apply(this, []); +return this.size; +}); + +Clazz_newMeth(C$, 'add$I$TE', function (index, e) { +p$1.rangeCheckForAdd$I.apply(this, [index]); +p$1.checkForComodification.apply(this, []); +this.parent.add$I$TE(this.parentOffset + index, e); +this.modCount=this.parent.modCount; +this.size++; +}); + +Clazz_newMeth(C$, 'remove$I', function (index) { +p$1.rangeCheck$I.apply(this, [index]); +p$1.checkForComodification.apply(this, []); +var result=this.parent.remove$I(this.parentOffset + index); +this.modCount=this.parent.modCount; +this.size--; +return result; +}); + +Clazz_newMeth(C$, 'removeRange$I$I', function (fromIndex, toIndex) { +p$1.checkForComodification.apply(this, []); +this.parent.removeRange$I$I(this.parentOffset + fromIndex, this.parentOffset + toIndex); +this.modCount=this.parent.modCount; +this.size-=toIndex - fromIndex; +}); + +Clazz_newMeth(C$, 'addAll$java_util_Collection', function (c) { +return this.addAll$I$java_util_Collection(this.size, c); +}); + +Clazz_newMeth(C$, 'addAll$I$java_util_Collection', function (index, c) { +p$1.rangeCheckForAdd$I.apply(this, [index]); +var cSize=c.size$(); +if (cSize == 0) return false; +p$1.checkForComodification.apply(this, []); +this.parent.addAll$I$java_util_Collection(this.parentOffset + index, c); +this.modCount=this.parent.modCount; +this.size+=cSize; +return true; +}); + +Clazz_newMeth(C$, 'iterator$', function () { +return this.listIterator$(); +}); + +Clazz_newMeth(C$, 'listIterator$I', function (index) { +p$1.checkForComodification.apply(this, []); +p$1.rangeCheckForAdd$I.apply(this, [index]); +var offset=this.offset; +return ((P$.ArrayList$SubList$1|| +(function(){var C$=Clazz_newClass(P$, "ArrayList$SubList$1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'java.util.ListIterator', 1); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.cursor=0; +this.lastRet=0; +this.expectedModCount=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.cursor=this.$finals$.index; +this.lastRet=-1; +this.expectedModCount=this.b$['java.util.ArrayList'].modCount; +}, 1); + +Clazz_newMeth(C$, 'hasNext$', function () { +return this.cursor != this.b$['java.util.ArrayList.SubList'].size; +}); + +Clazz_newMeth(C$, 'next$', function () { +this.checkForComodification$(); +var i=this.cursor; +if (i >= this.b$['java.util.ArrayList.SubList'].size) throw Clazz_new_(Clazz_load('java.util.NoSuchElementException')); +var elementData=this.b$['java.util.ArrayList'].elementData; +if (this.$finals$.offset + i >= elementData.length) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +this.cursor=i + 1; +return elementData[this.$finals$.offset + (this.lastRet=i)]; +}); + +Clazz_newMeth(C$, 'hasPrevious$', function () { +return this.cursor != 0; +}); + +Clazz_newMeth(C$, 'previous$', function () { +this.checkForComodification$(); +var i=this.cursor - 1; +if (i < 0) throw Clazz_new_(Clazz_load('java.util.NoSuchElementException')); +var elementData=this.b$['java.util.ArrayList'].elementData; +if (this.$finals$.offset + i >= elementData.length) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +this.cursor=i; +return elementData[this.$finals$.offset + (this.lastRet=i)]; +}); + +Clazz_newMeth(C$, 'forEachRemaining$java_util_function_Consumer', function (consumer) { +$I$(1).requireNonNull$TT(consumer); +var size=this.b$['java.util.ArrayList.SubList'].size; +var i=this.cursor; +if (i >= size) { +return; +}var elementData=this.b$['java.util.ArrayList'].elementData; +if (this.$finals$.offset + i >= elementData.length) { +throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +}while (i != size && this.b$['java.util.ArrayList.SubList'].modCount == this.expectedModCount ){ +consumer.accept$(elementData[this.$finals$.offset + (i++)]); +} +this.lastRet=this.cursor=i; +this.checkForComodification$(); +}); + +Clazz_newMeth(C$, 'nextIndex$', function () { +return this.cursor; +}); + +Clazz_newMeth(C$, 'previousIndex$', function () { +return this.cursor - 1; +}); + +Clazz_newMeth(C$, 'remove$', function () { +if (this.lastRet < 0) throw Clazz_new_(Clazz_load('IllegalStateException')); +this.checkForComodification$(); +try { +this.b$['java.util.ArrayList.SubList'].remove$I.apply(this.b$['java.util.ArrayList.SubList'], [this.lastRet]); +this.cursor=this.lastRet; +this.lastRet=-1; +this.expectedModCount=this.b$['java.util.ArrayList'].modCount; +} catch (ex) { +if (Clazz_exceptionOf(ex,"IndexOutOfBoundsException")){ +throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +} else { +throw ex; +} +} +}); + +Clazz_newMeth(C$, ['set$TE'], function (e) { +if (this.lastRet < 0) throw Clazz_new_(Clazz_load('IllegalStateException')); +this.checkForComodification$(); +try { +this.b$['java.util.ArrayList'].set$I$TE.apply(this.b$['java.util.ArrayList'], [this.$finals$.offset + this.lastRet, e]); +} catch (ex) { +if (Clazz_exceptionOf(ex,"IndexOutOfBoundsException")){ +throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +} else { +throw ex; +} +} +}); + +Clazz_newMeth(C$, ['add$TE'], function (e) { +this.checkForComodification$(); +try { +var i=this.cursor; +this.b$['java.util.ArrayList.SubList'].add$I$TE.apply(this.b$['java.util.ArrayList.SubList'], [i, e]); +this.cursor=i + 1; +this.lastRet=-1; +this.expectedModCount=this.b$['java.util.ArrayList'].modCount; +} catch (ex) { +if (Clazz_exceptionOf(ex,"IndexOutOfBoundsException")){ +throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +} else { +throw ex; +} +} +}); + +Clazz_newMeth(C$, 'checkForComodification$', function () { +if (this.expectedModCount != this.b$['java.util.ArrayList'].modCount) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +}); +})() +), Clazz_new_(P$.ArrayList$SubList$1.$init$, [this, {index: index, offset: offset}])); +}); + +Clazz_newMeth(C$, 'subList$I$I', function (fromIndex, toIndex) { +P$.ArrayList.subListRangeCheck$I$I$I(fromIndex, toIndex, this.size); +return Clazz_new_(C$.c$$java_util_AbstractList$I$I$I, [this, null, this, this.offset, fromIndex, toIndex]); +}); + +Clazz_newMeth(C$, 'rangeCheck$I', function (index) { +if (index < 0 || index >= this.size ) throw Clazz_new_(Clazz_load('IndexOutOfBoundsException').c$$S,[p$1.outOfBoundsMsg$I.apply(this, [index])]); +}, p$1); + +Clazz_newMeth(C$, 'rangeCheckForAdd$I', function (index) { +if (index < 0 || index > this.size ) throw Clazz_new_(Clazz_load('IndexOutOfBoundsException').c$$S,[p$1.outOfBoundsMsg$I.apply(this, [index])]); +}, p$1); + +Clazz_newMeth(C$, 'outOfBoundsMsg$I', function (index) { +return "Index: " + index + ", Size: " + this.size ; +}, p$1); + +Clazz_newMeth(C$, 'checkForComodification', function () { +if (this.b$['java.util.ArrayList'].modCount != this.modCount) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +}, p$1); + +Clazz_newMeth(C$, 'spliterator$', function () { +p$1.checkForComodification.apply(this, []); +return Clazz_new_($I$(2).c$$java_util_ArrayList$I$I$I,[this.b$['java.util.ArrayList'], this.offset, this.offset + this.size, this.modCount]); +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.ArrayList, "ArrayListSpliterator", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, null, 'java.util.Spliterator'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.list=null; +this.index=0; +this.fence=0; +this.expectedModCount=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$java_util_ArrayList$I$I$I', function (list, origin, fence, expectedModCount) { +C$.$init$.apply(this); +this.list=list; +this.index=origin; +this.fence=fence; +this.expectedModCount=expectedModCount; +}, 1); + +Clazz_newMeth(C$, 'getFence', function () { +var hi; +var lst; +if ((hi=this.fence) < 0) { +if ((lst=this.list) == null ) hi=this.fence=0; + else { +this.expectedModCount=lst.modCount; +hi=this.fence=lst.size; +}}return hi; +}, p$2); + +Clazz_newMeth(C$, 'trySplit$', function () { +var hi=p$2.getFence.apply(this, []); +var lo=this.index; +var mid=(lo + hi) >>> 1; +return (lo >= mid) ? null : Clazz_new_(C$.c$$java_util_ArrayList$I$I$I,[this.list, lo, this.index=mid, this.expectedModCount]); +}); + +Clazz_newMeth(C$, 'tryAdvance$java_util_function_Consumer', function (action) { +if (action == null ) throw Clazz_new_(Clazz_load('NullPointerException')); +var hi=p$2.getFence.apply(this, []); +var i=this.index; +if (i < hi) { +this.index=i + 1; +var e=this.list.elementData[i]; +action.accept$(e); +if (this.list.modCount != this.expectedModCount) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +return true; +}return false; +}); + +Clazz_newMeth(C$, 'forEachRemaining$java_util_function_Consumer', function (action) { +var i; +var hi; +var mc; +var lst; +var a; +if (action == null ) throw Clazz_new_(Clazz_load('NullPointerException')); +if ((lst=this.list) != null && (a=lst.elementData) != null ) { +if ((hi=this.fence) < 0) { +mc=lst.modCount; +hi=lst.size; +} else mc=this.expectedModCount; +if ((i=this.index) >= 0 && (this.index=hi) <= a.length ) { +for (; i < hi; ++i) { +var e=a[i]; +action.accept$(e); +} +if (lst.modCount == mc) return; +}}throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +}); + +Clazz_newMeth(C$, 'estimateSize$', function () { +return (p$2.getFence.apply(this, []) - this.index); +}); + +Clazz_newMeth(C$, 'characteristics$', function () { +return 16464; +}); + +Clazz_newMeth(C$); +})() +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:38 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=java.util,I$=[[0,'java.util.Objects','java.util.Arrays','java.util.Spliterators','java.util.DualPivotQuicksort','java.util.concurrent.ForkJoinPool',['java.util.ArraysParallelSortHelpers','.FJByte','.Sorter'],['java.util.ArraysParallelSortHelpers','.FJChar','.Sorter'],['java.util.ArraysParallelSortHelpers','.FJShort','.Sorter'],['java.util.ArraysParallelSortHelpers','.FJInt','.Sorter'],['java.util.ArraysParallelSortHelpers','.FJLong','.Sorter'],['java.util.ArraysParallelSortHelpers','.FJFloat','.Sorter'],['java.util.ArraysParallelSortHelpers','.FJDouble','.Sorter'],'java.util.TimSort',['java.util.Arrays','.NaturalOrder'],['java.util.ArraysParallelSortHelpers','.FJObject','.Sorter'],'java.lang.reflect.Array',['java.util.Arrays','.LegacyMergeSort'],'java.util.ComparableTimSort',['java.util.ArrayPrefixHelpers','.CumulateTask'],['java.util.ArrayPrefixHelpers','.LongCumulateTask'],['java.util.ArrayPrefixHelpers','.DoubleCumulateTask'],['java.util.ArrayPrefixHelpers','.IntCumulateTask'],['java.util.Arrays','.ArrayList'],'StringBuilder','java.util.HashSet','java.util.stream.IntStream','java.util.stream.StreamSupport']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "Arrays", function(){ +Clazz_newInstance(this, arguments,0,C$); +}); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'rangeCheck$I$I$I', function (arrayLength, fromIndex, toIndex) { +if (fromIndex > toIndex) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["fromIndex(" + fromIndex + ") > toIndex(" + toIndex + ")" ]); +}if (fromIndex < 0) { +throw Clazz_new_(Clazz_load('ArrayIndexOutOfBoundsException').c$$I,[fromIndex]); +}if (toIndex > arrayLength) { +throw Clazz_new_(Clazz_load('ArrayIndexOutOfBoundsException').c$$I,[toIndex]); +}}, 1); + +Clazz_newMeth(C$, 'sort$IA', function (a) { +$I$(4).sort$IA$I$I$IA$I$I(a, 0, a.length - 1, null, 0, 0); +}, 1); + +Clazz_newMeth(C$, 'sort$IA$I$I', function (a, fromIndex, toIndex) { +C$.rangeCheck$I$I$I(a.length, fromIndex, toIndex); +$I$(4).sort$IA$I$I$IA$I$I(a, fromIndex, toIndex - 1, null, 0, 0); +}, 1); + +Clazz_newMeth(C$, 'sort$JA', function (a) { +$I$(4).sort$JA$I$I$JA$I$I(a, 0, a.length - 1, null, 0, 0); +}, 1); + +Clazz_newMeth(C$, 'sort$JA$I$I', function (a, fromIndex, toIndex) { +C$.rangeCheck$I$I$I(a.length, fromIndex, toIndex); +$I$(4).sort$JA$I$I$JA$I$I(a, fromIndex, toIndex - 1, null, 0, 0); +}, 1); + +Clazz_newMeth(C$, 'sort$HA', function (a) { +$I$(4).sort$HA$I$I$HA$I$I(a, 0, a.length - 1, null, 0, 0); +}, 1); + +Clazz_newMeth(C$, 'sort$HA$I$I', function (a, fromIndex, toIndex) { +C$.rangeCheck$I$I$I(a.length, fromIndex, toIndex); +$I$(4).sort$HA$I$I$HA$I$I(a, fromIndex, toIndex - 1, null, 0, 0); +}, 1); + +Clazz_newMeth(C$, 'sort$CA', function (a) { +$I$(4).sort$CA$I$I$CA$I$I(a, 0, a.length - 1, null, 0, 0); +}, 1); + +Clazz_newMeth(C$, 'sort$CA$I$I', function (a, fromIndex, toIndex) { +C$.rangeCheck$I$I$I(a.length, fromIndex, toIndex); +$I$(4).sort$CA$I$I$CA$I$I(a, fromIndex, toIndex - 1, null, 0, 0); +}, 1); + +Clazz_newMeth(C$, 'sort$BA', function (a) { +$I$(4).sort$BA$I$I(a, 0, a.length - 1); +}, 1); + +Clazz_newMeth(C$, 'sort$BA$I$I', function (a, fromIndex, toIndex) { +C$.rangeCheck$I$I$I(a.length, fromIndex, toIndex); +$I$(4).sort$BA$I$I(a, fromIndex, toIndex - 1); +}, 1); + +Clazz_newMeth(C$, 'sort$FA', function (a) { +$I$(4).sort$FA$I$I$FA$I$I(a, 0, a.length - 1, null, 0, 0); +}, 1); + +Clazz_newMeth(C$, 'sort$FA$I$I', function (a, fromIndex, toIndex) { +C$.rangeCheck$I$I$I(a.length, fromIndex, toIndex); +$I$(4).sort$FA$I$I$FA$I$I(a, fromIndex, toIndex - 1, null, 0, 0); +}, 1); + +Clazz_newMeth(C$, 'sort$DA', function (a) { +$I$(4).sort$DA$I$I$DA$I$I(a, 0, a.length - 1, null, 0, 0); +}, 1); + +Clazz_newMeth(C$, 'sort$DA$I$I', function (a, fromIndex, toIndex) { +C$.rangeCheck$I$I$I(a.length, fromIndex, toIndex); +$I$(4).sort$DA$I$I$DA$I$I(a, fromIndex, toIndex - 1, null, 0, 0); +}, 1); + +Clazz_newMeth(C$, 'parallelSort$BA', function (a) { +var n=a.length; +var p; +var g; +if (n <= 8192 || (p=$I$(5).getCommonPoolParallelism$()) == 1 ) $I$(4).sort$BA$I$I(a, 0, n - 1); + else Clazz_new_($I$(6).c$$java_util_concurrent_CountedCompleter$BA$BA$I$I$I$I,[null, a, Clazz_array(Byte.TYPE, [n]), 0, n, 0, ((g=(n/(p << 2)|0)) <= 8192) ? 8192 : g]).invoke$(); +}, 1); + +Clazz_newMeth(C$, 'parallelSort$BA$I$I', function (a, fromIndex, toIndex) { +C$.rangeCheck$I$I$I(a.length, fromIndex, toIndex); +var n=toIndex - fromIndex; +var p; +var g; +if (n <= 8192 || (p=$I$(5).getCommonPoolParallelism$()) == 1 ) $I$(4).sort$BA$I$I(a, fromIndex, toIndex - 1); + else Clazz_new_($I$(6).c$$java_util_concurrent_CountedCompleter$BA$BA$I$I$I$I,[null, a, Clazz_array(Byte.TYPE, [n]), fromIndex, n, 0, ((g=(n/(p << 2)|0)) <= 8192) ? 8192 : g]).invoke$(); +}, 1); + +Clazz_newMeth(C$, 'parallelSort$CA', function (a) { +var n=a.length; +var p; +var g; +if (n <= 8192 || (p=$I$(5).getCommonPoolParallelism$()) == 1 ) $I$(4).sort$CA$I$I$CA$I$I(a, 0, n - 1, null, 0, 0); + else Clazz_new_($I$(7).c$$java_util_concurrent_CountedCompleter$CA$CA$I$I$I$I,[null, a, Clazz_array(Character.TYPE, [n]), 0, n, 0, ((g=(n/(p << 2)|0)) <= 8192) ? 8192 : g]).invoke$(); +}, 1); + +Clazz_newMeth(C$, 'parallelSort$CA$I$I', function (a, fromIndex, toIndex) { +C$.rangeCheck$I$I$I(a.length, fromIndex, toIndex); +var n=toIndex - fromIndex; +var p; +var g; +if (n <= 8192 || (p=$I$(5).getCommonPoolParallelism$()) == 1 ) $I$(4).sort$CA$I$I$CA$I$I(a, fromIndex, toIndex - 1, null, 0, 0); + else Clazz_new_($I$(7).c$$java_util_concurrent_CountedCompleter$CA$CA$I$I$I$I,[null, a, Clazz_array(Character.TYPE, [n]), fromIndex, n, 0, ((g=(n/(p << 2)|0)) <= 8192) ? 8192 : g]).invoke$(); +}, 1); + +Clazz_newMeth(C$, 'parallelSort$HA', function (a) { +var n=a.length; +var p; +var g; +if (n <= 8192 || (p=$I$(5).getCommonPoolParallelism$()) == 1 ) $I$(4).sort$HA$I$I$HA$I$I(a, 0, n - 1, null, 0, 0); + else Clazz_new_($I$(8).c$$java_util_concurrent_CountedCompleter$HA$HA$I$I$I$I,[null, a, Clazz_array(Short.TYPE, [n]), 0, n, 0, ((g=(n/(p << 2)|0)) <= 8192) ? 8192 : g]).invoke$(); +}, 1); + +Clazz_newMeth(C$, 'parallelSort$HA$I$I', function (a, fromIndex, toIndex) { +C$.rangeCheck$I$I$I(a.length, fromIndex, toIndex); +var n=toIndex - fromIndex; +var p; +var g; +if (n <= 8192 || (p=$I$(5).getCommonPoolParallelism$()) == 1 ) $I$(4).sort$HA$I$I$HA$I$I(a, fromIndex, toIndex - 1, null, 0, 0); + else Clazz_new_($I$(8).c$$java_util_concurrent_CountedCompleter$HA$HA$I$I$I$I,[null, a, Clazz_array(Short.TYPE, [n]), fromIndex, n, 0, ((g=(n/(p << 2)|0)) <= 8192) ? 8192 : g]).invoke$(); +}, 1); + +Clazz_newMeth(C$, 'parallelSort$IA', function (a) { +var n=a.length; +var p; +var g; +if (n <= 8192 || (p=$I$(5).getCommonPoolParallelism$()) == 1 ) $I$(4).sort$IA$I$I$IA$I$I(a, 0, n - 1, null, 0, 0); + else Clazz_new_($I$(9).c$$java_util_concurrent_CountedCompleter$IA$IA$I$I$I$I,[null, a, Clazz_array(Integer.TYPE, [n]), 0, n, 0, ((g=(n/(p << 2)|0)) <= 8192) ? 8192 : g]).invoke$(); +}, 1); + +Clazz_newMeth(C$, 'parallelSort$IA$I$I', function (a, fromIndex, toIndex) { +C$.rangeCheck$I$I$I(a.length, fromIndex, toIndex); +var n=toIndex - fromIndex; +var p; +var g; +if (n <= 8192 || (p=$I$(5).getCommonPoolParallelism$()) == 1 ) $I$(4).sort$IA$I$I$IA$I$I(a, fromIndex, toIndex - 1, null, 0, 0); + else Clazz_new_($I$(9).c$$java_util_concurrent_CountedCompleter$IA$IA$I$I$I$I,[null, a, Clazz_array(Integer.TYPE, [n]), fromIndex, n, 0, ((g=(n/(p << 2)|0)) <= 8192) ? 8192 : g]).invoke$(); +}, 1); + +Clazz_newMeth(C$, 'parallelSort$JA', function (a) { +var n=a.length; +var p; +var g; +if (n <= 8192 || (p=$I$(5).getCommonPoolParallelism$()) == 1 ) $I$(4).sort$JA$I$I$JA$I$I(a, 0, n - 1, null, 0, 0); + else Clazz_new_($I$(10).c$$java_util_concurrent_CountedCompleter$JA$JA$I$I$I$I,[null, a, Clazz_array(Long.TYPE, [n]), 0, n, 0, ((g=(n/(p << 2)|0)) <= 8192) ? 8192 : g]).invoke$(); +}, 1); + +Clazz_newMeth(C$, 'parallelSort$JA$I$I', function (a, fromIndex, toIndex) { +C$.rangeCheck$I$I$I(a.length, fromIndex, toIndex); +var n=toIndex - fromIndex; +var p; +var g; +if (n <= 8192 || (p=$I$(5).getCommonPoolParallelism$()) == 1 ) $I$(4).sort$JA$I$I$JA$I$I(a, fromIndex, toIndex - 1, null, 0, 0); + else Clazz_new_($I$(10).c$$java_util_concurrent_CountedCompleter$JA$JA$I$I$I$I,[null, a, Clazz_array(Long.TYPE, [n]), fromIndex, n, 0, ((g=(n/(p << 2)|0)) <= 8192) ? 8192 : g]).invoke$(); +}, 1); + +Clazz_newMeth(C$, 'parallelSort$FA', function (a) { +var n=a.length; +var p; +var g; +if (n <= 8192 || (p=$I$(5).getCommonPoolParallelism$()) == 1 ) $I$(4).sort$FA$I$I$FA$I$I(a, 0, n - 1, null, 0, 0); + else Clazz_new_($I$(11).c$$java_util_concurrent_CountedCompleter$FA$FA$I$I$I$I,[null, a, Clazz_array(Float.TYPE, [n]), 0, n, 0, ((g=(n/(p << 2)|0)) <= 8192) ? 8192 : g]).invoke$(); +}, 1); + +Clazz_newMeth(C$, 'parallelSort$FA$I$I', function (a, fromIndex, toIndex) { +C$.rangeCheck$I$I$I(a.length, fromIndex, toIndex); +var n=toIndex - fromIndex; +var p; +var g; +if (n <= 8192 || (p=$I$(5).getCommonPoolParallelism$()) == 1 ) $I$(4).sort$FA$I$I$FA$I$I(a, fromIndex, toIndex - 1, null, 0, 0); + else Clazz_new_($I$(11).c$$java_util_concurrent_CountedCompleter$FA$FA$I$I$I$I,[null, a, Clazz_array(Float.TYPE, [n]), fromIndex, n, 0, ((g=(n/(p << 2)|0)) <= 8192) ? 8192 : g]).invoke$(); +}, 1); + +Clazz_newMeth(C$, 'parallelSort$DA', function (a) { +var n=a.length; +var p; +var g; +if (n <= 8192 || (p=$I$(5).getCommonPoolParallelism$()) == 1 ) $I$(4).sort$DA$I$I$DA$I$I(a, 0, n - 1, null, 0, 0); + else Clazz_new_($I$(12).c$$java_util_concurrent_CountedCompleter$DA$DA$I$I$I$I,[null, a, Clazz_array(Double.TYPE, [n]), 0, n, 0, ((g=(n/(p << 2)|0)) <= 8192) ? 8192 : g]).invoke$(); +}, 1); + +Clazz_newMeth(C$, 'parallelSort$DA$I$I', function (a, fromIndex, toIndex) { +C$.rangeCheck$I$I$I(a.length, fromIndex, toIndex); +var n=toIndex - fromIndex; +var p; +var g; +if (n <= 8192 || (p=$I$(5).getCommonPoolParallelism$()) == 1 ) $I$(4).sort$DA$I$I$DA$I$I(a, fromIndex, toIndex - 1, null, 0, 0); + else Clazz_new_($I$(12).c$$java_util_concurrent_CountedCompleter$DA$DA$I$I$I$I,[null, a, Clazz_array(Double.TYPE, [n]), fromIndex, n, 0, ((g=(n/(p << 2)|0)) <= 8192) ? 8192 : g]).invoke$(); +}, 1); + +Clazz_newMeth(C$, 'parallelSort$TTA', function (a) { +var n=a.length; +var p; +var g; +if (n <= 8192 || (p=$I$(5).getCommonPoolParallelism$()) == 1 ) $I$(13).sort$TTA$I$I$java_util_Comparator$TTA$I$I(a, 0, n, $I$(14).INSTANCE, null, 0, 0); + else Clazz_new_($I$(15).c$$java_util_concurrent_CountedCompleter$TTA$TTA$I$I$I$I$java_util_Comparator,[null, a, Clazz_array(a.getClass$().getComponentType$(), n), 0, n, 0, ((g=(n/(p << 2)|0)) <= 8192) ? 8192 : g, $I$(14).INSTANCE]).invoke$(); +}, 1); + +Clazz_newMeth(C$, 'parallelSort$TTA$I$I', function (a, fromIndex, toIndex) { +C$.rangeCheck$I$I$I(a.length, fromIndex, toIndex); +var n=toIndex - fromIndex; +var p; +var g; +if (n <= 8192 || (p=$I$(5).getCommonPoolParallelism$()) == 1 ) $I$(13).sort$TTA$I$I$java_util_Comparator$TTA$I$I(a, fromIndex, toIndex, $I$(14).INSTANCE, null, 0, 0); + else Clazz_new_($I$(15).c$$java_util_concurrent_CountedCompleter$TTA$TTA$I$I$I$I$java_util_Comparator,[null, a, Clazz_array(a.getClass$().getComponentType$(), n), fromIndex, n, 0, ((g=(n/(p << 2)|0)) <= 8192) ? 8192 : g, $I$(14).INSTANCE]).invoke$(); +}, 1); + +Clazz_newMeth(C$, 'parallelSort$TTA$java_util_Comparator', function (a, cmp) { +if (cmp == null ) cmp=$I$(14).INSTANCE; +var n=a.length; +var p; +var g; +if (n <= 8192 || (p=$I$(5).getCommonPoolParallelism$()) == 1 ) $I$(13).sort$TTA$I$I$java_util_Comparator$TTA$I$I(a, 0, n, cmp, null, 0, 0); + else Clazz_new_($I$(15).c$$java_util_concurrent_CountedCompleter$TTA$TTA$I$I$I$I$java_util_Comparator,[null, a, Clazz_array(a.getClass$().getComponentType$(), n), 0, n, 0, ((g=(n/(p << 2)|0)) <= 8192) ? 8192 : g, cmp]).invoke$(); +}, 1); + +Clazz_newMeth(C$, 'parallelSort$TTA$I$I$java_util_Comparator', function (a, fromIndex, toIndex, cmp) { +C$.rangeCheck$I$I$I(a.length, fromIndex, toIndex); +if (cmp == null ) cmp=$I$(14).INSTANCE; +var n=toIndex - fromIndex; +var p; +var g; +if (n <= 8192 || (p=$I$(5).getCommonPoolParallelism$()) == 1 ) $I$(13).sort$TTA$I$I$java_util_Comparator$TTA$I$I(a, fromIndex, toIndex, cmp, null, 0, 0); + else Clazz_new_($I$(15).c$$java_util_concurrent_CountedCompleter$TTA$TTA$I$I$I$I$java_util_Comparator,[null, a, Clazz_array(a.getClass$().getComponentType$(), n), fromIndex, n, 0, ((g=(n/(p << 2)|0)) <= 8192) ? 8192 : g, cmp]).invoke$(); +}, 1); + +Clazz_newMeth(C$, 'sort$OA', function (a) { +if ($I$(17).userRequested) C$.legacyMergeSort$OA(a); + else $I$(18).sort$OA$I$I$OA$I$I(a, 0, a.length, null, 0, 0); +}, 1); + +Clazz_newMeth(C$, 'legacyMergeSort$OA', function (a) { +var aux=a.clone$(); +C$.mergeSort$OA$OA$I$I$I(aux, a, 0, a.length, 0); +}, 1); + +Clazz_newMeth(C$, 'sort$OA$I$I', function (a, fromIndex, toIndex) { +C$.rangeCheck$I$I$I(a.length, fromIndex, toIndex); +if ($I$(17).userRequested) C$.legacyMergeSort$OA$I$I(a, fromIndex, toIndex); + else $I$(18).sort$OA$I$I$OA$I$I(a, fromIndex, toIndex, null, 0, 0); +}, 1); + +Clazz_newMeth(C$, 'legacyMergeSort$OA$I$I', function (a, fromIndex, toIndex) { +var aux=C$.copyOfRange$TTA$I$I(a, fromIndex, toIndex); +C$.mergeSort$OA$OA$I$I$I(aux, a, fromIndex, toIndex, -fromIndex); +}, 1); + +Clazz_newMeth(C$, 'mergeSort$OA$OA$I$I$I', function (src, dest, low, high, off) { +var length=high - low; +if (length < 7) { +for (var i=low; i < high; i++) for (var j=i; j > low && (dest[j - 1]).compareTo$(dest[j]) > 0 ; j--) C$.swap$OA$I$I(dest, j, j - 1); + + +return; +}var destLow=low; +var destHigh=high; +low+=off; +high+=off; +var mid=(low + high) >>> 1; +C$.mergeSort$OA$OA$I$I$I(dest, src, low, mid, -off); +C$.mergeSort$OA$OA$I$I$I(dest, src, mid, high, -off); +if ((src[mid - 1]).compareTo$(src[mid]) <= 0) { +System.arraycopy$O$I$O$I$I(src, low, dest, destLow, length); +return; +}for (var i=destLow, p=low, q=mid; i < destHigh; i++) { +if (q >= high || p < mid && (src[p]).compareTo$(src[q]) <= 0 ) dest[i]=src[p++]; + else dest[i]=src[q++]; +} +}, 1); + +Clazz_newMeth(C$, 'swap$OA$I$I', function (x, a, b) { +var t=x[a]; +x[a]=x[b]; +x[b]=t; +}, 1); + +Clazz_newMeth(C$, 'sort$TTA$java_util_Comparator', function (a, c) { +if (c == null ) { +C$.sort$OA(a); +} else { +if ($I$(17).userRequested) C$.legacyMergeSort$TTA$java_util_Comparator(a, c); + else $I$(13).sort$TTA$I$I$java_util_Comparator$TTA$I$I(a, 0, a.length, c, null, 0, 0); +}}, 1); + +Clazz_newMeth(C$, 'legacyMergeSort$TTA$java_util_Comparator', function (a, c) { +var aux=a.clone$(); +if (c == null ) C$.mergeSort$OA$OA$I$I$I(aux, a, 0, a.length, 0); + else C$.mergeSort$OA$OA$I$I$I$java_util_Comparator(aux, a, 0, a.length, 0, c); +}, 1); + +Clazz_newMeth(C$, 'sort$TTA$I$I$java_util_Comparator', function (a, fromIndex, toIndex, c) { +if (c == null ) { +C$.sort$OA$I$I(a, fromIndex, toIndex); +} else { +C$.rangeCheck$I$I$I(a.length, fromIndex, toIndex); +if ($I$(17).userRequested) C$.legacyMergeSort$TTA$I$I$java_util_Comparator(a, fromIndex, toIndex, c); + else $I$(13).sort$TTA$I$I$java_util_Comparator$TTA$I$I(a, fromIndex, toIndex, c, null, 0, 0); +}}, 1); + +Clazz_newMeth(C$, 'legacyMergeSort$TTA$I$I$java_util_Comparator', function (a, fromIndex, toIndex, c) { +var aux=C$.copyOfRange$TTA$I$I(a, fromIndex, toIndex); +if (c == null ) C$.mergeSort$OA$OA$I$I$I(aux, a, fromIndex, toIndex, -fromIndex); + else C$.mergeSort$OA$OA$I$I$I$java_util_Comparator(aux, a, fromIndex, toIndex, -fromIndex, c); +}, 1); + +Clazz_newMeth(C$, 'mergeSort$OA$OA$I$I$I$java_util_Comparator', function (src, dest, low, high, off, c) { +var length=high - low; +if (length < 7) { +for (var i=low; i < high; i++) for (var j=i; j > low && c.compare$(dest[j - 1], dest[j]) > 0 ; j--) C$.swap$OA$I$I(dest, j, j - 1); + + +return; +}var destLow=low; +var destHigh=high; +low+=off; +high+=off; +var mid=(low + high) >>> 1; +C$.mergeSort$OA$OA$I$I$I$java_util_Comparator(dest, src, low, mid, -off, c); +C$.mergeSort$OA$OA$I$I$I$java_util_Comparator(dest, src, mid, high, -off, c); +if (c.compare$(src[mid - 1], src[mid]) <= 0) { +System.arraycopy$O$I$O$I$I(src, low, dest, destLow, length); +return; +}for (var i=destLow, p=low, q=mid; i < destHigh; i++) { +if (q >= high || p < mid && c.compare$(src[p], src[q]) <= 0 ) dest[i]=src[p++]; + else dest[i]=src[q++]; +} +}, 1); + +Clazz_newMeth(C$, 'parallelPrefix$TTA$java_util_function_BinaryOperator', function (array, op) { +$I$(1).requireNonNull$TT(op); +if (array.length > 0) Clazz_new_($I$(19).c$$java_util_ArrayPrefixHelpers_CumulateTask$java_util_function_BinaryOperator$TTA$I$I,[null, op, array, 0, array.length]).invoke$(); +}, 1); + +Clazz_newMeth(C$, 'parallelPrefix$TTA$I$I$java_util_function_BinaryOperator', function (array, fromIndex, toIndex, op) { +$I$(1).requireNonNull$TT(op); +C$.rangeCheck$I$I$I(array.length, fromIndex, toIndex); +if (fromIndex < toIndex) Clazz_new_($I$(19).c$$java_util_ArrayPrefixHelpers_CumulateTask$java_util_function_BinaryOperator$TTA$I$I,[null, op, array, fromIndex, toIndex]).invoke$(); +}, 1); + +Clazz_newMeth(C$, 'parallelPrefix$JA$java_util_function_LongBinaryOperator', function (array, op) { +$I$(1).requireNonNull$TT(op); +if (array.length > 0) Clazz_new_($I$(20).c$$java_util_ArrayPrefixHelpers_LongCumulateTask$java_util_function_LongBinaryOperator$JA$I$I,[null, op, array, 0, array.length]).invoke$(); +}, 1); + +Clazz_newMeth(C$, 'parallelPrefix$JA$I$I$java_util_function_LongBinaryOperator', function (array, fromIndex, toIndex, op) { +$I$(1).requireNonNull$TT(op); +C$.rangeCheck$I$I$I(array.length, fromIndex, toIndex); +if (fromIndex < toIndex) Clazz_new_($I$(20).c$$java_util_ArrayPrefixHelpers_LongCumulateTask$java_util_function_LongBinaryOperator$JA$I$I,[null, op, array, fromIndex, toIndex]).invoke$(); +}, 1); + +Clazz_newMeth(C$, 'parallelPrefix$DA$java_util_function_DoubleBinaryOperator', function (array, op) { +$I$(1).requireNonNull$TT(op); +if (array.length > 0) Clazz_new_($I$(21).c$$java_util_ArrayPrefixHelpers_DoubleCumulateTask$java_util_function_DoubleBinaryOperator$DA$I$I,[null, op, array, 0, array.length]).invoke$(); +}, 1); + +Clazz_newMeth(C$, 'parallelPrefix$DA$I$I$java_util_function_DoubleBinaryOperator', function (array, fromIndex, toIndex, op) { +$I$(1).requireNonNull$TT(op); +C$.rangeCheck$I$I$I(array.length, fromIndex, toIndex); +if (fromIndex < toIndex) Clazz_new_($I$(21).c$$java_util_ArrayPrefixHelpers_DoubleCumulateTask$java_util_function_DoubleBinaryOperator$DA$I$I,[null, op, array, fromIndex, toIndex]).invoke$(); +}, 1); + +Clazz_newMeth(C$, 'parallelPrefix$IA$java_util_function_IntBinaryOperator', function (array, op) { +$I$(1).requireNonNull$TT(op); +if (array.length > 0) Clazz_new_($I$(22).c$$java_util_ArrayPrefixHelpers_IntCumulateTask$java_util_function_IntBinaryOperator$IA$I$I,[null, op, array, 0, array.length]).invoke$(); +}, 1); + +Clazz_newMeth(C$, 'parallelPrefix$IA$I$I$java_util_function_IntBinaryOperator', function (array, fromIndex, toIndex, op) { +$I$(1).requireNonNull$TT(op); +C$.rangeCheck$I$I$I(array.length, fromIndex, toIndex); +if (fromIndex < toIndex) Clazz_new_($I$(22).c$$java_util_ArrayPrefixHelpers_IntCumulateTask$java_util_function_IntBinaryOperator$IA$I$I,[null, op, array, fromIndex, toIndex]).invoke$(); +}, 1); + +Clazz_newMeth(C$, 'binarySearch$JA$J', function (a, key) { +return C$.binarySearch0$JA$I$I$J(a, 0, a.length, key); +}, 1); + +Clazz_newMeth(C$, 'binarySearch$JA$I$I$J', function (a, fromIndex, toIndex, key) { +C$.rangeCheck$I$I$I(a.length, fromIndex, toIndex); +return C$.binarySearch0$JA$I$I$J(a, fromIndex, toIndex, key); +}, 1); + +Clazz_newMeth(C$, 'binarySearch0$JA$I$I$J', function (a, fromIndex, toIndex, key) { +var low=fromIndex; +var high=toIndex - 1; +while (low <= high){ +var mid=(low + high) >>> 1; +var midVal=a[mid]; +if (midVal < key) low=mid + 1; + else if (midVal > key) high=mid - 1; + else return mid; +} +return -(low + 1); +}, 1); + +Clazz_newMeth(C$, 'binarySearch$IA$I', function (a, key) { +return C$.binarySearch0$IA$I$I$I(a, 0, a.length, key); +}, 1); + +Clazz_newMeth(C$, 'binarySearch$IA$I$I$I', function (a, fromIndex, toIndex, key) { +C$.rangeCheck$I$I$I(a.length, fromIndex, toIndex); +return C$.binarySearch0$IA$I$I$I(a, fromIndex, toIndex, key); +}, 1); + +Clazz_newMeth(C$, 'binarySearch0$IA$I$I$I', function (a, fromIndex, toIndex, key) { +var low=fromIndex; +var high=toIndex - 1; +while (low <= high){ +var mid=(low + high) >>> 1; +var midVal=a[mid]; +if (midVal < key) low=mid + 1; + else if (midVal > key) high=mid - 1; + else return mid; +} +return -(low + 1); +}, 1); + +Clazz_newMeth(C$, 'binarySearch$HA$H', function (a, key) { +return C$.binarySearch0$HA$I$I$H(a, 0, a.length, key); +}, 1); + +Clazz_newMeth(C$, 'binarySearch$HA$I$I$H', function (a, fromIndex, toIndex, key) { +C$.rangeCheck$I$I$I(a.length, fromIndex, toIndex); +return C$.binarySearch0$HA$I$I$H(a, fromIndex, toIndex, key); +}, 1); + +Clazz_newMeth(C$, 'binarySearch0$HA$I$I$H', function (a, fromIndex, toIndex, key) { +var low=fromIndex; +var high=toIndex - 1; +while (low <= high){ +var mid=(low + high) >>> 1; +var midVal=a[mid]; +if (midVal < key) low=mid + 1; + else if (midVal > key) high=mid - 1; + else return mid; +} +return -(low + 1); +}, 1); + +Clazz_newMeth(C$, 'binarySearch$CA$C', function (a, key) { +return C$.binarySearch0$CA$I$I$C(a, 0, a.length, key); +}, 1); + +Clazz_newMeth(C$, 'binarySearch$CA$I$I$C', function (a, fromIndex, toIndex, key) { +C$.rangeCheck$I$I$I(a.length, fromIndex, toIndex); +return C$.binarySearch0$CA$I$I$C(a, fromIndex, toIndex, key); +}, 1); + +Clazz_newMeth(C$, 'binarySearch0$CA$I$I$C', function (a, fromIndex, toIndex, key) { +var low=fromIndex; +var high=toIndex - 1; +while (low <= high){ +var mid=(low + high) >>> 1; +var midVal=a[mid]; +if (midVal < key) low=mid + 1; + else if (midVal > key) high=mid - 1; + else return mid; +} +return -(low + 1); +}, 1); + +Clazz_newMeth(C$, 'binarySearch$BA$B', function (a, key) { +return C$.binarySearch0$BA$I$I$B(a, 0, a.length, ($b$[0] = key, $b$[0])); +}, 1); + +Clazz_newMeth(C$, 'binarySearch$BA$I$I$B', function (a, fromIndex, toIndex, key) { +C$.rangeCheck$I$I$I(a.length, fromIndex, toIndex); +return C$.binarySearch0$BA$I$I$B(a, fromIndex, toIndex, ($b$[0] = key, $b$[0])); +}, 1); + +Clazz_newMeth(C$, 'binarySearch0$BA$I$I$B', function (a, fromIndex, toIndex, key) { +var low=fromIndex; +var high=toIndex - 1; +while (low <= high){ +var mid=(low + high) >>> 1; +var midVal=($b$[0] = a[mid], $b$[0]); +if (midVal < key) low=mid + 1; + else if (midVal > key) high=mid - 1; + else return mid; +} +return -(low + 1); +}, 1); + +Clazz_newMeth(C$, 'binarySearch$DA$D', function (a, key) { +return C$.binarySearch0$DA$I$I$D(a, 0, a.length, key); +}, 1); + +Clazz_newMeth(C$, 'binarySearch$DA$I$I$D', function (a, fromIndex, toIndex, key) { +C$.rangeCheck$I$I$I(a.length, fromIndex, toIndex); +return C$.binarySearch0$DA$I$I$D(a, fromIndex, toIndex, key); +}, 1); + +Clazz_newMeth(C$, 'binarySearch0$DA$I$I$D', function (a, fromIndex, toIndex, key) { +var low=fromIndex; +var high=toIndex - 1; +while (low <= high){ +var mid=(low + high) >>> 1; +var midVal=a[mid]; +if (midVal < key ) low=mid + 1; + else if (midVal > key ) high=mid - 1; + else { +var midBits=Double.doubleToLongBits$D(midVal); +var keyBits=Double.doubleToLongBits$D(key); +if (midBits == keyBits) return mid; + else if (midBits < keyBits) low=mid + 1; + else high=mid - 1; +}} +return -(low + 1); +}, 1); + +Clazz_newMeth(C$, 'binarySearch$FA$F', function (a, key) { +return C$.binarySearch0$FA$I$I$F(a, 0, a.length, key); +}, 1); + +Clazz_newMeth(C$, 'binarySearch$FA$I$I$F', function (a, fromIndex, toIndex, key) { +C$.rangeCheck$I$I$I(a.length, fromIndex, toIndex); +return C$.binarySearch0$FA$I$I$F(a, fromIndex, toIndex, key); +}, 1); + +Clazz_newMeth(C$, 'binarySearch0$FA$I$I$F', function (a, fromIndex, toIndex, key) { +var low=fromIndex; +var high=toIndex - 1; +while (low <= high){ +var mid=(low + high) >>> 1; +var midVal=a[mid]; +if (midVal < key ) low=mid + 1; + else if (midVal > key ) high=mid - 1; + else { +var midBits=Float.floatToIntBits$F(midVal); +var keyBits=Float.floatToIntBits$F(key); +if (midBits == keyBits) return mid; + else if (midBits < keyBits) low=mid + 1; + else high=mid - 1; +}} +return -(low + 1); +}, 1); + +Clazz_newMeth(C$, 'binarySearch$OA$O', function (a, key) { +return C$.binarySearch0$OA$I$I$O(a, 0, a.length, key); +}, 1); + +Clazz_newMeth(C$, 'binarySearch$OA$I$I$O', function (a, fromIndex, toIndex, key) { +C$.rangeCheck$I$I$I(a.length, fromIndex, toIndex); +return C$.binarySearch0$OA$I$I$O(a, fromIndex, toIndex, key); +}, 1); + +Clazz_newMeth(C$, 'binarySearch0$OA$I$I$O', function (a, fromIndex, toIndex, key) { +var low=fromIndex; +var high=toIndex - 1; +while (low <= high){ +var mid=(low + high) >>> 1; +var midVal=a[mid]; +var cmp=midVal.compareTo$(key); +if (cmp < 0) low=mid + 1; + else if (cmp > 0) high=mid - 1; + else return mid; +} +return -(low + 1); +}, 1); + +Clazz_newMeth(C$, 'binarySearch$TTA$TT$java_util_Comparator', function (a, key, c) { +return C$.binarySearch0$TTA$I$I$TT$java_util_Comparator(a, 0, a.length, key, c); +}, 1); + +Clazz_newMeth(C$, 'binarySearch$TTA$I$I$TT$java_util_Comparator', function (a, fromIndex, toIndex, key, c) { +C$.rangeCheck$I$I$I(a.length, fromIndex, toIndex); +return C$.binarySearch0$TTA$I$I$TT$java_util_Comparator(a, fromIndex, toIndex, key, c); +}, 1); + +Clazz_newMeth(C$, 'binarySearch0$TTA$I$I$TT$java_util_Comparator', function (a, fromIndex, toIndex, key, c) { +if (c == null ) { +return C$.binarySearch0$OA$I$I$O(a, fromIndex, toIndex, key); +}var low=fromIndex; +var high=toIndex - 1; +while (low <= high){ +var mid=(low + high) >>> 1; +var midVal=a[mid]; +var cmp=c.compare$(midVal, key); +if (cmp < 0) low=mid + 1; + else if (cmp > 0) high=mid - 1; + else return mid; +} +return -(low + 1); +}, 1); + +Clazz_newMeth(C$, 'equals$JA$JA', function (a, a2) { +if (a === a2 ) return true; +if (a == null || a2 == null ) return false; +var length=a.length; +if (a2.length != length) return false; +for (var i=0; i < length; i++) if (a[i] != a2[i]) return false; + +return true; +}, 1); + +Clazz_newMeth(C$, 'equals$IA$IA', function (a, a2) { +if (a === a2 ) return true; +if (a == null || a2 == null ) return false; +var length=a.length; +if (a2.length != length) return false; +for (var i=0; i < length; i++) if (a[i] != a2[i]) return false; + +return true; +}, 1); + +Clazz_newMeth(C$, 'equals$HA$HA', function (a, a2) { +if (a === a2 ) return true; +if (a == null || a2 == null ) return false; +var length=a.length; +if (a2.length != length) return false; +for (var i=0; i < length; i++) if (a[i] != a2[i]) return false; + +return true; +}, 1); + +Clazz_newMeth(C$, 'equals$CA$CA', function (a, a2) { +if (a === a2 ) return true; +if (a == null || a2 == null ) return false; +var length=a.length; +if (a2.length != length) return false; +for (var i=0; i < length; i++) if (a[i] != a2[i]) return false; + +return true; +}, 1); + +Clazz_newMeth(C$, 'equals$BA$BA', function (a, a2) { +if (a === a2 ) return true; +if (a == null || a2 == null ) return false; +var length=a.length; +if (a2.length != length) return false; +for (var i=0; i < length; i++) if (a[i] != a2[i]) return false; + +return true; +}, 1); + +Clazz_newMeth(C$, 'equals$ZA$ZA', function (a, a2) { +if (a === a2 ) return true; +if (a == null || a2 == null ) return false; +var length=a.length; +if (a2.length != length) return false; +for (var i=0; i < length; i++) if (a[i] != a2[i] ) return false; + +return true; +}, 1); + +Clazz_newMeth(C$, 'equals$DA$DA', function (a, a2) { +if (a === a2 ) return true; +if (a == null || a2 == null ) return false; +var length=a.length; +if (a2.length != length) return false; +for (var i=0; i < length; i++) if (Double.doubleToLongBits$D(a[i]) != Double.doubleToLongBits$D(a2[i])) return false; + +return true; +}, 1); + +Clazz_newMeth(C$, 'equals$FA$FA', function (a, a2) { +if (a === a2 ) return true; +if (a == null || a2 == null ) return false; +var length=a.length; +if (a2.length != length) return false; +for (var i=0; i < length; i++) if (Float.floatToIntBits$F(a[i]) != Float.floatToIntBits$F(a2[i])) return false; + +return true; +}, 1); + +Clazz_newMeth(C$, 'equals$OA$OA', function (a, a2) { +if (a === a2 ) return true; +if (a == null || a2 == null ) return false; +var length=a.length; +if (a2.length != length) return false; +for (var i=0; i < length; i++) { +var o1=a[i]; +var o2=a2[i]; +if (!(o1 == null ? o2 == null : o1.equals$O(o2))) return false; +} +return true; +}, 1); + +Clazz_newMeth(C$, 'fill$JA$J', function (a, val) { +for (var i=0, len=a.length; i < len; i++) a[i]=val; + +}, 1); + +Clazz_newMeth(C$, 'fill$JA$I$I$J', function (a, fromIndex, toIndex, val) { +C$.rangeCheck$I$I$I(a.length, fromIndex, toIndex); +for (var i=fromIndex; i < toIndex; i++) a[i]=val; + +}, 1); + +Clazz_newMeth(C$, 'fill$IA$I', function (a, val) { +for (var i=0, len=a.length; i < len; i++) a[i]=val; + +}, 1); + +Clazz_newMeth(C$, 'fill$IA$I$I$I', function (a, fromIndex, toIndex, val) { +C$.rangeCheck$I$I$I(a.length, fromIndex, toIndex); +for (var i=fromIndex; i < toIndex; i++) a[i]=val; + +}, 1); + +Clazz_newMeth(C$, 'fill$HA$H', function (a, val) { +for (var i=0, len=a.length; i < len; i++) a[i]=val; + +}, 1); + +Clazz_newMeth(C$, 'fill$HA$I$I$H', function (a, fromIndex, toIndex, val) { +C$.rangeCheck$I$I$I(a.length, fromIndex, toIndex); +for (var i=fromIndex; i < toIndex; i++) a[i]=val; + +}, 1); + +Clazz_newMeth(C$, 'fill$CA$C', function (a, val) { +for (var i=0, len=a.length; i < len; i++) a[i]=val; + +}, 1); + +Clazz_newMeth(C$, 'fill$CA$I$I$C', function (a, fromIndex, toIndex, val) { +C$.rangeCheck$I$I$I(a.length, fromIndex, toIndex); +for (var i=fromIndex; i < toIndex; i++) a[i]=val; + +}, 1); + +Clazz_newMeth(C$, 'fill$BA$B', function (a, val) { +for (var i=0, len=a.length; i < len; i++) a[i]=(val|0); + +}, 1); + +Clazz_newMeth(C$, 'fill$BA$I$I$B', function (a, fromIndex, toIndex, val) { +C$.rangeCheck$I$I$I(a.length, fromIndex, toIndex); +for (var i=fromIndex; i < toIndex; i++) a[i]=(val|0); + +}, 1); + +Clazz_newMeth(C$, 'fill$ZA$Z', function (a, val) { +for (var i=0, len=a.length; i < len; i++) a[i]=val; + +}, 1); + +Clazz_newMeth(C$, 'fill$ZA$I$I$Z', function (a, fromIndex, toIndex, val) { +C$.rangeCheck$I$I$I(a.length, fromIndex, toIndex); +for (var i=fromIndex; i < toIndex; i++) a[i]=val; + +}, 1); + +Clazz_newMeth(C$, 'fill$DA$D', function (a, val) { +for (var i=0, len=a.length; i < len; i++) a[i]=val; + +}, 1); + +Clazz_newMeth(C$, 'fill$DA$I$I$D', function (a, fromIndex, toIndex, val) { +C$.rangeCheck$I$I$I(a.length, fromIndex, toIndex); +for (var i=fromIndex; i < toIndex; i++) a[i]=val; + +}, 1); + +Clazz_newMeth(C$, 'fill$FA$F', function (a, val) { +for (var i=0, len=a.length; i < len; i++) a[i]=val; + +}, 1); + +Clazz_newMeth(C$, 'fill$FA$I$I$F', function (a, fromIndex, toIndex, val) { +C$.rangeCheck$I$I$I(a.length, fromIndex, toIndex); +for (var i=fromIndex; i < toIndex; i++) a[i]=val; + +}, 1); + +Clazz_newMeth(C$, 'fill$OA$O', function (a, val) { +for (var i=0, len=a.length; i < len; i++) a[i]=val; + +}, 1); + +Clazz_newMeth(C$, 'fill$OA$I$I$O', function (a, fromIndex, toIndex, val) { +C$.rangeCheck$I$I$I(a.length, fromIndex, toIndex); +for (var i=fromIndex; i < toIndex; i++) a[i]=val; + +}, 1); + +Clazz_newMeth(C$, 'copyOf$TTA$I', function (original, newLength) { +return C$.copyOf$TUA$I$Class(original, newLength, original.getClass$()); +}, 1); + +Clazz_newMeth(C$, 'copyOf$TUA$I$Class', function (original, newLength, newType) { +var copy=(newType === Clazz_array(java.lang.Object, -1) ) ? Clazz_array(java.lang.Object, [newLength]) : Clazz_array(newType.getComponentType$(), newLength); +System.arraycopy$O$I$O$I$I(original, 0, copy, 0, Math.min(original.length, newLength)); +return copy; +}, 1); + +Clazz_newMeth(C$, 'copyOf$BA$I', function (original, newLength) { +var copy=Clazz_array(Byte.TYPE, [newLength]); +System.arraycopy$O$I$O$I$I(original, 0, copy, 0, Math.min(original.length, newLength)); +return copy; +}, 1); + +Clazz_newMeth(C$, 'copyOf$HA$I', function (original, newLength) { +var copy=Clazz_array(Short.TYPE, [newLength]); +System.arraycopy$O$I$O$I$I(original, 0, copy, 0, Math.min(original.length, newLength)); +return copy; +}, 1); + +Clazz_newMeth(C$, 'copyOf$IA$I', function (original, newLength) { +var copy=Clazz_array(Integer.TYPE, [newLength]); +System.arraycopy$O$I$O$I$I(original, 0, copy, 0, Math.min(original.length, newLength)); +return copy; +}, 1); + +Clazz_newMeth(C$, 'copyOf$JA$I', function (original, newLength) { +var copy=Clazz_array(Long.TYPE, [newLength]); +System.arraycopy$O$I$O$I$I(original, 0, copy, 0, Math.min(original.length, newLength)); +return copy; +}, 1); + +Clazz_newMeth(C$, 'copyOf$CA$I', function (original, newLength) { +var copy=Clazz_array(Character.TYPE, [newLength]); +System.arraycopy$O$I$O$I$I(original, 0, copy, 0, Math.min(original.length, newLength)); +return copy; +}, 1); + +Clazz_newMeth(C$, 'copyOf$FA$I', function (original, newLength) { +var copy=Clazz_array(Float.TYPE, [newLength]); +System.arraycopy$O$I$O$I$I(original, 0, copy, 0, Math.min(original.length, newLength)); +return copy; +}, 1); + +Clazz_newMeth(C$, 'copyOf$DA$I', function (original, newLength) { +var copy=Clazz_array(Double.TYPE, [newLength]); +System.arraycopy$O$I$O$I$I(original, 0, copy, 0, Math.min(original.length, newLength)); +return copy; +}, 1); + +Clazz_newMeth(C$, 'copyOf$ZA$I', function (original, newLength) { +var copy=Clazz_array(Boolean.TYPE, [newLength]); +System.arraycopy$O$I$O$I$I(original, 0, copy, 0, Math.min(original.length, newLength)); +return copy; +}, 1); + +Clazz_newMeth(C$, 'copyOfRange$TTA$I$I', function (original, from, to) { +return C$.copyOfRange$TUA$I$I$Class(original, from, to, original.getClass$()); +}, 1); + +Clazz_newMeth(C$, 'copyOfRange$TUA$I$I$Class', function (original, from, to, newType) { +var newLength=to - from; +if (newLength < 0) throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,[from + " > " + to ]); +var copy=(newType === Clazz_array(java.lang.Object, -1) ) ? Clazz_array(java.lang.Object, [newLength]) : Clazz_array(newType.getComponentType$(), newLength); +System.arraycopy$O$I$O$I$I(original, from, copy, 0, Math.min(original.length - from, newLength)); +return copy; +}, 1); + +Clazz_newMeth(C$, 'copyOfRange$BA$I$I', function (original, from, to) { +var newLength=to - from; +if (newLength < 0) throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,[from + " > " + to ]); +var copy=Clazz_array(Byte.TYPE, [newLength]); +System.arraycopy$O$I$O$I$I(original, from, copy, 0, Math.min(original.length - from, newLength)); +return copy; +}, 1); + +Clazz_newMeth(C$, 'copyOfRange$HA$I$I', function (original, from, to) { +var newLength=to - from; +if (newLength < 0) throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,[from + " > " + to ]); +var copy=Clazz_array(Short.TYPE, [newLength]); +System.arraycopy$O$I$O$I$I(original, from, copy, 0, Math.min(original.length - from, newLength)); +return copy; +}, 1); + +Clazz_newMeth(C$, 'copyOfRange$IA$I$I', function (original, from, to) { +var newLength=to - from; +if (newLength < 0) throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,[from + " > " + to ]); +var copy=Clazz_array(Integer.TYPE, [newLength]); +System.arraycopy$O$I$O$I$I(original, from, copy, 0, Math.min(original.length - from, newLength)); +return copy; +}, 1); + +Clazz_newMeth(C$, 'copyOfRange$JA$I$I', function (original, from, to) { +var newLength=to - from; +if (newLength < 0) throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,[from + " > " + to ]); +var copy=Clazz_array(Long.TYPE, [newLength]); +System.arraycopy$O$I$O$I$I(original, from, copy, 0, Math.min(original.length - from, newLength)); +return copy; +}, 1); + +Clazz_newMeth(C$, 'copyOfRange$CA$I$I', function (original, from, to) { +var newLength=to - from; +if (newLength < 0) throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,[from + " > " + to ]); +var copy=Clazz_array(Character.TYPE, [newLength]); +System.arraycopy$O$I$O$I$I(original, from, copy, 0, Math.min(original.length - from, newLength)); +return copy; +}, 1); + +Clazz_newMeth(C$, 'copyOfRange$FA$I$I', function (original, from, to) { +var newLength=to - from; +if (newLength < 0) throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,[from + " > " + to ]); +var copy=Clazz_array(Float.TYPE, [newLength]); +System.arraycopy$O$I$O$I$I(original, from, copy, 0, Math.min(original.length - from, newLength)); +return copy; +}, 1); + +Clazz_newMeth(C$, 'copyOfRange$DA$I$I', function (original, from, to) { +var newLength=to - from; +if (newLength < 0) throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,[from + " > " + to ]); +var copy=Clazz_array(Double.TYPE, [newLength]); +System.arraycopy$O$I$O$I$I(original, from, copy, 0, Math.min(original.length - from, newLength)); +return copy; +}, 1); + +Clazz_newMeth(C$, 'copyOfRange$ZA$I$I', function (original, from, to) { +var newLength=to - from; +if (newLength < 0) throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,[from + " > " + to ]); +var copy=Clazz_array(Boolean.TYPE, [newLength]); +System.arraycopy$O$I$O$I$I(original, from, copy, 0, Math.min(original.length - from, newLength)); +return copy; +}, 1); + +Clazz_newMeth(C$, 'asList$TTA', function (a) { +return Clazz_new_($I$(23).c$$TEA,[a]); +}, 1); + +Clazz_newMeth(C$, 'hashCode$JA', function (a) { +if (a == null ) return 0; +var result=1; +for (var element, $element = 0, $$element = a; $element<$$element.length&&((element=($$element[$element])),1);$element++) { +var elementHash=((element ^ (element >>> 32))|0); +result=31 * result + elementHash; +} +return result; +}, 1); + +Clazz_newMeth(C$, 'hashCode$IA', function (a) { +if (a == null ) return 0; +var result=1; +for (var element, $element = 0, $$element = a; $element<$$element.length&&((element=($$element[$element])),1);$element++) result=31 * result + element; + +return result; +}, 1); + +Clazz_newMeth(C$, 'hashCode$HA', function (a) { +if (a == null ) return 0; +var result=1; +for (var element, $element = 0, $$element = a; $element<$$element.length&&((element=($$element[$element])),1);$element++) result=31 * result + element; + +return result; +}, 1); + +Clazz_newMeth(C$, 'hashCode$CA', function (a) { +if (a == null ) return 0; +var result=1; +for (var element, $element = 0, $$element = a; $element<$$element.length&&((element=($$element[$element])),1);$element++) result=31 * result + element.$c(); + +return result; +}, 1); + +Clazz_newMeth(C$, 'hashCode$BA', function (a) { +if (a == null ) return 0; +var result=1; +for (var element, $element = 0, $$element = a; $element<$$element.length&&((element=($$element[$element])),1);$element++) result=31 * result + element; + +return result; +}, 1); + +Clazz_newMeth(C$, 'hashCode$ZA', function (a) { +if (a == null ) return 0; +var result=1; +for (var element, $element = 0, $$element = a; $element<$$element.length&&((element=($$element[$element])),1);$element++) result=31 * result + (element ? 1231 : 1237); + +return result; +}, 1); + +Clazz_newMeth(C$, 'hashCode$FA', function (a) { +if (a == null ) return 0; +var result=1; +for (var element, $element = 0, $$element = a; $element<$$element.length&&((element=($$element[$element])),1);$element++) result=31 * result + Float.floatToIntBits$F(element); + +return result; +}, 1); + +Clazz_newMeth(C$, 'hashCode$DA', function (a) { +if (a == null ) return 0; +var result=1; +for (var element, $element = 0, $$element = a; $element<$$element.length&&((element=($$element[$element])),1);$element++) { +var bits=Double.doubleToLongBits$D(element); +result=31 * result + ((bits ^ (bits >>> 32))|0); +} +return result; +}, 1); + +Clazz_newMeth(C$, 'hashCode$OA', function (a) { +if (a == null ) return 0; +var result=1; +for (var element, $element = 0, $$element = a; $element<$$element.length&&((element=($$element[$element])),1);$element++) result=31 * result + (element == null ? 0 : element.hashCode$()); + +return result; +}, 1); + +Clazz_newMeth(C$, 'deepHashCode$OA', function (a) { +if (a == null ) return 0; +var result=1; +for (var element, $element = 0, $$element = a; $element<$$element.length&&((element=($$element[$element])),1);$element++) { +var elementHash=0; +if (Clazz_instanceOf(element, Clazz_array(java.lang.Object, -1))) elementHash=C$.deepHashCode$OA(element); + else if (Clazz_instanceOf(element, Clazz_array(Byte.TYPE, -1))) elementHash=C$.hashCode$BA(element); + else if (Clazz_instanceOf(element, Clazz_array(Short.TYPE, -1))) elementHash=C$.hashCode$HA(element); + else if (Clazz_instanceOf(element, Clazz_array(Integer.TYPE, -1))) elementHash=C$.hashCode$IA(element); + else if (Clazz_instanceOf(element, Clazz_array(Long.TYPE, -1))) elementHash=C$.hashCode$JA(element); + else if (Clazz_instanceOf(element, Clazz_array(Character.TYPE, -1))) elementHash=C$.hashCode$CA(element); + else if (Clazz_instanceOf(element, Clazz_array(Float.TYPE, -1))) elementHash=C$.hashCode$FA(element); + else if (Clazz_instanceOf(element, Clazz_array(Double.TYPE, -1))) elementHash=C$.hashCode$DA(element); + else if (Clazz_instanceOf(element, Clazz_array(Boolean.TYPE, -1))) elementHash=C$.hashCode$ZA(element); + else if (element != null ) elementHash=element.hashCode$(); +result=31 * result + elementHash; +} +return result; +}, 1); + +Clazz_newMeth(C$, 'deepEquals$OA$OA', function (a1, a2) { +if (a1 === a2 ) return true; +if (a1 == null || a2 == null ) return false; +var length=a1.length; +if (a2.length != length) return false; +for (var i=0; i < length; i++) { +var e1=a1[i]; +var e2=a2[i]; +if (e1 === e2 ) continue; +if (e1 == null ) return false; +var eq=C$.deepEquals0$O$O(e1, e2); +if (!eq) return false; +} +return true; +}, 1); + +Clazz_newMeth(C$, 'deepEquals0$O$O', function (e1, e2) { +Clazz_assert(C$, this, function(){return e1 != null }); +var eq; +if (Clazz_instanceOf(e1, Clazz_array(java.lang.Object, -1)) && Clazz_instanceOf(e2, Clazz_array(java.lang.Object, -1)) ) eq=C$.deepEquals$OA$OA(e1, e2); + else if (Clazz_instanceOf(e1, Clazz_array(Byte.TYPE, -1)) && Clazz_instanceOf(e2, Clazz_array(Byte.TYPE, -1)) ) eq=C$.equals$BA$BA(e1, e2); + else if (Clazz_instanceOf(e1, Clazz_array(Short.TYPE, -1)) && Clazz_instanceOf(e2, Clazz_array(Short.TYPE, -1)) ) eq=C$.equals$HA$HA(e1, e2); + else if (Clazz_instanceOf(e1, Clazz_array(Integer.TYPE, -1)) && Clazz_instanceOf(e2, Clazz_array(Integer.TYPE, -1)) ) eq=C$.equals$IA$IA(e1, e2); + else if (Clazz_instanceOf(e1, Clazz_array(Long.TYPE, -1)) && Clazz_instanceOf(e2, Clazz_array(Long.TYPE, -1)) ) eq=C$.equals$JA$JA(e1, e2); + else if (Clazz_instanceOf(e1, Clazz_array(Character.TYPE, -1)) && Clazz_instanceOf(e2, Clazz_array(Character.TYPE, -1)) ) eq=C$.equals$CA$CA(e1, e2); + else if (Clazz_instanceOf(e1, Clazz_array(Float.TYPE, -1)) && Clazz_instanceOf(e2, Clazz_array(Float.TYPE, -1)) ) eq=C$.equals$FA$FA(e1, e2); + else if (Clazz_instanceOf(e1, Clazz_array(Double.TYPE, -1)) && Clazz_instanceOf(e2, Clazz_array(Double.TYPE, -1)) ) eq=C$.equals$DA$DA(e1, e2); + else if (Clazz_instanceOf(e1, Clazz_array(Boolean.TYPE, -1)) && Clazz_instanceOf(e2, Clazz_array(Boolean.TYPE, -1)) ) eq=C$.equals$ZA$ZA(e1, e2); + else eq=e1.equals$O(e2); +return eq; +}, 1); + +Clazz_newMeth(C$, 'toString$JA', function (a) { +if (a == null ) return "null"; +var iMax=a.length - 1; +if (iMax == -1) return "[]"; +var b=Clazz_new_($I$(24)); +b.append$C("["); +for (var i=0; ; i++) { +b.append$J(a[i]); +if (i == iMax) return b.append$C("]").toString(); +b.append$S(", "); +} +}, 1); + +Clazz_newMeth(C$, 'toString$IA', function (a) { +if (a == null ) return "null"; +var iMax=a.length - 1; +if (iMax == -1) return "[]"; +var b=Clazz_new_($I$(24)); +b.append$C("["); +for (var i=0; ; i++) { +b.append$I(a[i]); +if (i == iMax) return b.append$C("]").toString(); +b.append$S(", "); +} +}, 1); + +Clazz_newMeth(C$, 'toString$HA', function (a) { +if (a == null ) return "null"; +var iMax=a.length - 1; +if (iMax == -1) return "[]"; +var b=Clazz_new_($I$(24)); +b.append$C("["); +for (var i=0; ; i++) { +b.append$I(a[i]); +if (i == iMax) return b.append$C("]").toString(); +b.append$S(", "); +} +}, 1); + +Clazz_newMeth(C$, 'toString$CA', function (a) { +if (a == null ) return "null"; +var iMax=a.length - 1; +if (iMax == -1) return "[]"; +var b=Clazz_new_($I$(24)); +b.append$C("["); +for (var i=0; ; i++) { +b.append$C(a[i]); +if (i == iMax) return b.append$C("]").toString(); +b.append$S(", "); +} +}, 1); + +Clazz_newMeth(C$, 'toString$BA', function (a) { +if (a == null ) return "null"; +var iMax=a.length - 1; +if (iMax == -1) return "[]"; +var b=Clazz_new_($I$(24)); +b.append$C("["); +for (var i=0; ; i++) { +b.append$I(a[i]); +if (i == iMax) return b.append$C("]").toString(); +b.append$S(", "); +} +}, 1); + +Clazz_newMeth(C$, 'toString$ZA', function (a) { +if (a == null ) return "null"; +var iMax=a.length - 1; +if (iMax == -1) return "[]"; +var b=Clazz_new_($I$(24)); +b.append$C("["); +for (var i=0; ; i++) { +b.append$Z(a[i]); +if (i == iMax) return b.append$C("]").toString(); +b.append$S(", "); +} +}, 1); + +Clazz_newMeth(C$, 'toString$FA', function (a) { +if (a == null ) return "null"; +var iMax=a.length - 1; +if (iMax == -1) return "[]"; +var b=Clazz_new_($I$(24)); +b.append$C("["); +for (var i=0; ; i++) { +b.append$F(a[i]); +if (i == iMax) return b.append$C("]").toString(); +b.append$S(", "); +} +}, 1); + +Clazz_newMeth(C$, 'toString$DA', function (a) { +if (a == null ) return "null"; +var iMax=a.length - 1; +if (iMax == -1) return "[]"; +var b=Clazz_new_($I$(24)); +b.append$C("["); +for (var i=0; ; i++) { +b.append$D(a[i]); +if (i == iMax) return b.append$C("]").toString(); +b.append$S(", "); +} +}, 1); + +Clazz_newMeth(C$, 'toString$OA', function (a) { +if (a == null ) return "null"; +var iMax=a.length - 1; +if (iMax == -1) return "[]"; +var b=Clazz_new_($I$(24)); +b.append$C("["); +for (var i=0; ; i++) { +b.append$S(String.valueOf$O(a[i])); +if (i == iMax) return b.append$C("]").toString(); +b.append$S(", "); +} +}, 1); + +Clazz_newMeth(C$, 'deepToString$OA', function (a) { +if (a == null ) return "null"; +var bufLen=20 * a.length; +if (a.length != 0 && bufLen <= 0 ) bufLen=2147483647; +var buf=Clazz_new_($I$(24).c$$I,[bufLen]); +C$.deepToString$OA$StringBuilder$java_util_Set(a, buf, Clazz_new_($I$(25))); +return buf.toString(); +}, 1); + +Clazz_newMeth(C$, 'deepToString$OA$StringBuilder$java_util_Set', function (a, buf, dejaVu) { +if (a == null ) { +buf.append$S("null"); +return; +}var iMax=a.length - 1; +if (iMax == -1) { +buf.append$S("[]"); +return; +}dejaVu.add$TE(a); +buf.append$C("["); +for (var i=0; ; i++) { +var element=a[i]; +if (element == null ) { +buf.append$S("null"); +} else { +var eClass=element.getClass$(); +if (eClass.isArray$()) { +if (eClass === Clazz_array(Byte.TYPE, -1) ) buf.append$S(C$.toString$BA(element)); + else if (eClass === Clazz_array(Short.TYPE, -1) ) buf.append$S(C$.toString$HA(element)); + else if (eClass === Clazz_array(Integer.TYPE, -1) ) buf.append$S(C$.toString$IA(element)); + else if (eClass === Clazz_array(Long.TYPE, -1) ) buf.append$S(C$.toString$JA(element)); + else if (eClass === Clazz_array(Character.TYPE, -1) ) buf.append$S(C$.toString$CA(element)); + else if (eClass === Clazz_array(Float.TYPE, -1) ) buf.append$S(C$.toString$FA(element)); + else if (eClass === Clazz_array(Double.TYPE, -1) ) buf.append$S(C$.toString$DA(element)); + else if (eClass === Clazz_array(Boolean.TYPE, -1) ) buf.append$S(C$.toString$ZA(element)); + else { +if (dejaVu.contains$O(element)) buf.append$S("[...]"); + else C$.deepToString$OA$StringBuilder$java_util_Set(element, buf, dejaVu); +}} else { +buf.append$S(element.toString()); +}}if (i == iMax) break; +buf.append$S(", "); +} +buf.append$C("]"); +dejaVu.remove$O(a); +}, 1); + +Clazz_newMeth(C$, 'setAll$TTA$java_util_function_IntFunction', function (array, generator) { +$I$(1).requireNonNull$TT(generator); +for (var i=0; i < array.length; i++) array[i]=generator.apply$(i); + +}, 1); + +Clazz_newMeth(C$, 'parallelSetAll$TTA$java_util_function_IntFunction', function (array, generator) { +$I$(1).requireNonNull$TT(generator); +$I$(26).range$I$I(0, array.length).parallel$().forEach$java_util_function_IntConsumer(((P$.Arrays$lambda1|| +(function(){var C$=Clazz_newClass(P$, "Arrays$lambda1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'java.util.function.IntConsumer', 1); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); +/*lambda_E*/ +Clazz_newMeth(C$, 'accept$', function (i) { +this.$finals$.array[i]=this.$finals$.generator.apply$(i); +}); +})() +), Clazz_new_(P$.Arrays$lambda1.$init$, [this, {array: array, generator: generator}]))); +}, 1); + +Clazz_newMeth(C$, 'setAll$IA$java_util_function_IntUnaryOperator', function (array, generator) { +$I$(1).requireNonNull$TT(generator); +for (var i=0; i < array.length; i++) array[i]=generator.applyAsInt$(i); + +}, 1); + +Clazz_newMeth(C$, 'parallelSetAll$IA$java_util_function_IntUnaryOperator', function (array, generator) { +$I$(1).requireNonNull$TT(generator); +$I$(26).range$I$I(0, array.length).parallel$().forEach$java_util_function_IntConsumer(((P$.Arrays$lambda2|| +(function(){var C$=Clazz_newClass(P$, "Arrays$lambda2", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'java.util.function.IntConsumer', 1); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); +/*lambda_E*/ +Clazz_newMeth(C$, 'accept$', function (i) { +this.$finals$.array[i]=this.$finals$.generator.applyAsInt$(i); +}); +})() +), Clazz_new_(P$.Arrays$lambda2.$init$, [this, {array: array, generator: generator}]))); +}, 1); + +Clazz_newMeth(C$, 'setAll$JA$java_util_function_IntToLongFunction', function (array, generator) { +$I$(1).requireNonNull$TT(generator); +for (var i=0; i < array.length; i++) array[i]=generator.applyAsLong$(i); + +}, 1); + +Clazz_newMeth(C$, 'parallelSetAll$JA$java_util_function_IntToLongFunction', function (array, generator) { +$I$(1).requireNonNull$TT(generator); +$I$(26).range$I$I(0, array.length).parallel$().forEach$java_util_function_IntConsumer(((P$.Arrays$lambda3|| +(function(){var C$=Clazz_newClass(P$, "Arrays$lambda3", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'java.util.function.IntConsumer', 1); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); +/*lambda_E*/ +Clazz_newMeth(C$, 'accept$', function (i) { +this.$finals$.array[i]=this.$finals$.generator.applyAsLong$(i); +}); +})() +), Clazz_new_(P$.Arrays$lambda3.$init$, [this, {array: array, generator: generator}]))); +}, 1); + +Clazz_newMeth(C$, 'setAll$DA$java_util_function_IntToDoubleFunction', function (array, generator) { +$I$(1).requireNonNull$TT(generator); +for (var i=0; i < array.length; i++) array[i]=generator.applyAsDouble$(i); + +}, 1); + +Clazz_newMeth(C$, 'parallelSetAll$DA$java_util_function_IntToDoubleFunction', function (array, generator) { +$I$(1).requireNonNull$TT(generator); +$I$(26).range$I$I(0, array.length).parallel$().forEach$java_util_function_IntConsumer(((P$.Arrays$lambda4|| +(function(){var C$=Clazz_newClass(P$, "Arrays$lambda4", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'java.util.function.IntConsumer', 1); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); +/*lambda_E*/ +Clazz_newMeth(C$, 'accept$', function (i) { +this.$finals$.array[i]=this.$finals$.generator.applyAsDouble$(i); +}); +})() +), Clazz_new_(P$.Arrays$lambda4.$init$, [this, {array: array, generator: generator}]))); +}, 1); + +Clazz_newMeth(C$, 'spliterator$TTA', function (array) { +return $I$(3).spliterator$OA$I(array, 1040); +}, 1); + +Clazz_newMeth(C$, 'spliterator$TTA$I$I', function (array, startInclusive, endExclusive) { +return $I$(3).spliterator$OA$I$I$I(array, startInclusive, endExclusive, 1040); +}, 1); + +Clazz_newMeth(C$, 'spliterator$IA', function (array) { +return $I$(3).spliterator$IA$I(array, 1040); +}, 1); + +Clazz_newMeth(C$, 'spliterator$IA$I$I', function (array, startInclusive, endExclusive) { +return $I$(3).spliterator$IA$I$I$I(array, startInclusive, endExclusive, 1040); +}, 1); + +Clazz_newMeth(C$, 'spliterator$JA', function (array) { +return $I$(3).spliterator$JA$I(array, 1040); +}, 1); + +Clazz_newMeth(C$, 'spliterator$JA$I$I', function (array, startInclusive, endExclusive) { +return $I$(3).spliterator$JA$I$I$I(array, startInclusive, endExclusive, 1040); +}, 1); + +Clazz_newMeth(C$, 'spliterator$DA', function (array) { +return $I$(3).spliterator$DA$I(array, 1040); +}, 1); + +Clazz_newMeth(C$, 'spliterator$DA$I$I', function (array, startInclusive, endExclusive) { +return $I$(3).spliterator$DA$I$I$I(array, startInclusive, endExclusive, 1040); +}, 1); + +Clazz_newMeth(C$, 'stream$TTA', function (array) { +return C$.stream$TTA$I$I(array, 0, array.length); +}, 1); + +Clazz_newMeth(C$, 'stream$TTA$I$I', function (array, startInclusive, endExclusive) { +return $I$(27).stream$java_util_Spliterator$Z(C$.spliterator$TTA$I$I(array, startInclusive, endExclusive), false); +}, 1); + +Clazz_newMeth(C$, 'stream$IA', function (array) { +return C$.stream$IA$I$I(array, 0, array.length); +}, 1); + +Clazz_newMeth(C$, 'stream$IA$I$I', function (array, startInclusive, endExclusive) { +return $I$(27).intStream$java_util_Spliterator_OfInt$Z(C$.spliterator$IA$I$I(array, startInclusive, endExclusive), false); +}, 1); + +Clazz_newMeth(C$, 'stream$JA', function (array) { +return C$.stream$JA$I$I(array, 0, array.length); +}, 1); + +Clazz_newMeth(C$, 'stream$JA$I$I', function (array, startInclusive, endExclusive) { +return $I$(27).longStream$java_util_Spliterator_OfLong$Z(C$.spliterator$JA$I$I(array, startInclusive, endExclusive), false); +}, 1); + +Clazz_newMeth(C$, 'stream$DA', function (array) { +return C$.stream$DA$I$I(array, 0, array.length); +}, 1); + +Clazz_newMeth(C$, 'stream$DA$I$I', function (array, startInclusive, endExclusive) { +return $I$(27).doubleStream$java_util_Spliterator_OfDouble$Z(C$.spliterator$DA$I$I(array, startInclusive, endExclusive), false); +}, 1); +C$.$_ASSERT_ENABLED_ = ClassLoader.getClassAssertionStatus$(C$); +var $b$ = new Int8Array(1); +; +(function(){var C$=Clazz_newClass(P$.Arrays, "NaturalOrder", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, null, 'java.util.Comparator'); +C$.INSTANCE=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.INSTANCE=Clazz_new_(C$); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, ['compare$O$O','compare$','compare$TT$TT'], function (first, second) { +return (first).compareTo$(second); +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.Arrays, "LegacyMergeSort", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}); +C$.userRequested=false; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.userRequested=false; +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.Arrays, "ArrayList", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'java.util.AbstractList', ['java.util.RandomAccess', 'java.io.Serializable']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.a=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$TEA', function (array) { +Clazz_super_(C$, this,1); +this.a=$I$(1).requireNonNull$TT(array); +}, 1); + +Clazz_newMeth(C$, 'size$', function () { +return this.a.length; +}); + +Clazz_newMeth(C$, 'toArray$', function () { +return this.a.clone$(); +}); + +Clazz_newMeth(C$, 'toArray$TTA', function (a) { +var size=this.size$(); +if (a.length < size) return $I$(2).copyOf$TUA$I$Class(this.a, size, a.getClass$()); +System.arraycopy$O$I$O$I$I(this.a, 0, a, 0, size); +if (a.length > size) a[size]=null; +return a; +}); + +Clazz_newMeth(C$, 'get$I', function (index) { +return this.a[index]; +}); + +Clazz_newMeth(C$, 'set$I$TE', function (index, element) { +var oldValue=this.a[index]; +this.a[index]=element; +return oldValue; +}); + +Clazz_newMeth(C$, 'indexOf$O', function (o) { +var a=this.a; +if (o == null ) { +for (var i=0; i < a.length; i++) if (a[i] == null ) return i; + +} else { +for (var i=0; i < a.length; i++) if (o.equals$O(a[i])) return i; + +}return -1; +}); + +Clazz_newMeth(C$, 'contains$O', function (o) { +return this.indexOf$O(o) != -1; +}); + +Clazz_newMeth(C$, 'spliterator$', function () { +return $I$(3).spliterator$OA$I(this.a, 16); +}); + +Clazz_newMeth(C$, 'forEach$java_util_function_Consumer', function (action) { +$I$(1).requireNonNull$TT(action); +for (var e, $e = 0, $$e = this.a; $e<$$e.length&&((e=($$e[$e])),1);$e++) { +action.accept$(e); +} +}); + +Clazz_newMeth(C$, 'replaceAll$java_util_function_UnaryOperator', function (operator) { +$I$(1).requireNonNull$TT(operator); +var a=this.a; +for (var i=0; i < a.length; i++) { +a[i]=operator.apply$(a[i]); +} +}); + +Clazz_newMeth(C$, 'sort$java_util_Comparator', function (c) { +$I$(2).sort$TTA$java_util_Comparator(this.a, c); +}); + +Clazz_newMeth(C$); +})() +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:39 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=java.util,I$=[[0,'java.util.Objects','java.util.Spliterators','java.util.stream.StreamSupport']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newInterface(P$, "Collection", null, null, 'Iterable'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} +C$.$defaults$ = function(C$){ + +Clazz_newMeth(C$, 'removeIf$java_util_function_Predicate', function (filter) { +$I$(1).requireNonNull$TT(filter); +var removed=false; +var each=this.iterator$(); +while (each.hasNext$()){ +if (filter.test$(each.next$())) { +each.remove$(); +removed=true; +}} +return removed; +}); + +Clazz_newMeth(C$, 'spliterator$', function () { +return $I$(2).spliterator$java_util_Collection$I(this, 0); +}); + +Clazz_newMeth(C$, 'stream$', function () { +return $I$(3).stream$java_util_Spliterator$Z(this.spliterator$(), false); +}); + +Clazz_newMeth(C$, 'parallelStream$', function () { +return $I$(3).stream$java_util_Spliterator$Z(this.spliterator$(), true); +}); +};})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:39 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=java.util,p$1={},p$2={},p$3={},p$4={},p$5={},p$6={},p$7={},p$8={},p$9={},p$10={},p$11={},p$12={},p$13={},p$14={},p$15={},p$16={},p$17={},I$=[[0,'java.util.TreeSet',['java.util.Collections','.UnmodifiableNavigableSet'],['java.util.Collections','.UnmodifiableNavigableSet','.EmptyNavigableSet'],['java.util.Collections','.UnmodifiableRandomAccessList'],['java.util.Collections','.UnmodifiableList'],'java.util.Objects',['java.util.Collections','.UnmodifiableMap','.UnmodifiableEntrySet','.UnmodifiableEntry'],['java.util.Collections','.UnmodifiableMap','.UnmodifiableEntrySet','.UnmodifiableEntrySetSpliterator'],'java.util.stream.StreamSupport','java.util.Arrays',['java.util.Collections','.UnmodifiableMap','.UnmodifiableEntrySet'],'java.util.TreeMap',['java.util.Collections','.UnmodifiableNavigableMap'],['java.util.Collections','.UnmodifiableNavigableMap','.EmptyNavigableMap'],['java.util.Collections','.SynchronizedRandomAccessList'],['java.util.Collections','.SynchronizedList'],['java.util.Collections','.SynchronizedSet'],['java.util.Collections','.SynchronizedCollection'],['java.util.Collections','.SynchronizedNavigableSet'],['java.util.AbstractMap','.SimpleImmutableEntry'],['java.util.Collections','.CheckedMap','.CheckedEntrySet','.CheckedEntry'],'java.util.ArrayList',['java.util.Collections','.CheckedMap','.CheckedEntrySet'],'java.util.Spliterators','java.util.Collections','java.lang.reflect.Array','java.util.stream.IntStream','java.util.Comparator','Boolean',['java.util.Collections','.EmptySet'],['java.util.Collections','.EmptyList'],['java.util.Collections','.EmptyMap'],'java.util.Random',['java.util.Collections','.UnmodifiableCollection'],['java.util.Collections','.UnmodifiableSet'],['java.util.Collections','.UnmodifiableSortedSet'],['java.util.Collections','.UnmodifiableMap'],['java.util.Collections','.UnmodifiableSortedMap'],['java.util.Collections','.SynchronizedSortedSet'],['java.util.Collections','.SynchronizedMap'],['java.util.Collections','.SynchronizedSortedMap'],['java.util.Collections','.SynchronizedNavigableMap'],['java.util.Collections','.CheckedCollection'],['java.util.Collections','.CheckedQueue'],['java.util.Collections','.CheckedSet'],['java.util.Collections','.CheckedSortedSet'],['java.util.Collections','.CheckedNavigableSet'],['java.util.Collections','.CheckedRandomAccessList'],['java.util.Collections','.CheckedList'],['java.util.Collections','.CheckedMap'],['java.util.Collections','.CheckedSortedMap'],['java.util.Collections','.CheckedNavigableMap'],['java.util.Collections','.EmptyIterator'],['java.util.Collections','.EmptyListIterator'],['java.util.Collections','.EmptyEnumeration'],['java.util.Collections','.SingletonSet'],['java.util.Collections','.SingletonList'],['java.util.Collections','.SingletonMap'],['java.util.Collections','.CopiesList'],['java.util.Collections','.ReverseComparator'],['java.util.Collections','.ReverseComparator2'],['java.util.Collections','.SetFromMap'],['java.util.Collections','.AsLIFOQueue']]],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "Collections", function(){ +Clazz_newInstance(this, arguments,0,C$); +}); +C$.r=null; +C$.EMPTY_SET=null; +C$.EMPTY_LIST=null; +C$.EMPTY_MAP=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.EMPTY_SET=Clazz_new_($I$(30)); +C$.EMPTY_LIST=Clazz_new_($I$(31)); +C$.EMPTY_MAP=Clazz_new_($I$(32)); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'sort$java_util_List', function (list) { +list.sort$java_util_Comparator(null); +}, 1); + +Clazz_newMeth(C$, 'sort$java_util_List$java_util_Comparator', function (list, c) { +list.sort$java_util_Comparator(c); +}, 1); + +Clazz_newMeth(C$, 'binarySearch$java_util_List$TT', function (list, key) { +if (Clazz_instanceOf(list, "java.util.RandomAccess") || list.size$() < 5000 ) return C$.indexedBinarySearch$java_util_List$TT(list, key); + else return C$.iteratorBinarySearch$java_util_List$TT(list, key); +}, 1); + +Clazz_newMeth(C$, 'indexedBinarySearch$java_util_List$TT', function (list, key) { +var low=0; +var high=list.size$() - 1; +while (low <= high){ +var mid=(low + high) >>> 1; +var midVal=list.get$I(mid); +var cmp=midVal.compareTo$(key); +if (cmp < 0) low=mid + 1; + else if (cmp > 0) high=mid - 1; + else return mid; +} +return -(low + 1); +}, 1); + +Clazz_newMeth(C$, 'iteratorBinarySearch$java_util_List$TT', function (list, key) { +var low=0; +var high=list.size$() - 1; +var i=list.listIterator$(); +while (low <= high){ +var mid=(low + high) >>> 1; +var midVal=C$.get$java_util_ListIterator$I(i, mid); +var cmp=midVal.compareTo$(key); +if (cmp < 0) low=mid + 1; + else if (cmp > 0) high=mid - 1; + else return mid; +} +return -(low + 1); +}, 1); + +Clazz_newMeth(C$, 'get$java_util_ListIterator$I', function (i, index) { +var obj=null; +var pos=i.nextIndex$(); +if (pos <= index) { +do { +obj=i.next$(); +} while (pos++ < index); +} else { +do { +obj=i.previous$(); +} while (--pos > index); +}return obj; +}, 1); + +Clazz_newMeth(C$, 'binarySearch$java_util_List$TT$java_util_Comparator', function (list, key, c) { +if (c == null ) return C$.binarySearch$java_util_List$TT(list, key); +if (Clazz_instanceOf(list, "java.util.RandomAccess") || list.size$() < 5000 ) return C$.indexedBinarySearch$java_util_List$TT$java_util_Comparator(list, key, c); + else return C$.iteratorBinarySearch$java_util_List$TT$java_util_Comparator(list, key, c); +}, 1); + +Clazz_newMeth(C$, 'indexedBinarySearch$java_util_List$TT$java_util_Comparator', function (l, key, c) { +var low=0; +var high=l.size$() - 1; +while (low <= high){ +var mid=(low + high) >>> 1; +var midVal=l.get$I(mid); +var cmp=c.compare$(midVal, key); +if (cmp < 0) low=mid + 1; + else if (cmp > 0) high=mid - 1; + else return mid; +} +return -(low + 1); +}, 1); + +Clazz_newMeth(C$, 'iteratorBinarySearch$java_util_List$TT$java_util_Comparator', function (l, key, c) { +var low=0; +var high=l.size$() - 1; +var i=l.listIterator$(); +while (low <= high){ +var mid=(low + high) >>> 1; +var midVal=C$.get$java_util_ListIterator$I(i, mid); +var cmp=c.compare$(midVal, key); +if (cmp < 0) low=mid + 1; + else if (cmp > 0) high=mid - 1; + else return mid; +} +return -(low + 1); +}, 1); + +Clazz_newMeth(C$, 'reverse$java_util_List', function (list) { +var size=list.size$(); +if (size < 18 || Clazz_instanceOf(list, "java.util.RandomAccess") ) { +for (var i=0, mid=size >> 1, j=size - 1; i < mid; i++, j--) C$.swap$java_util_List$I$I(list, i, j); + +} else { +var fwd=list.listIterator$(); +var rev=list.listIterator$I(size); +for (var i=0, mid=list.size$() >> 1; i < mid; i++) { +var tmp=fwd.next$(); +fwd.set$TE(rev.previous$()); +rev.set$TE(tmp); +} +}}, 1); + +Clazz_newMeth(C$, 'shuffle$java_util_List', function (list) { +var rnd=C$.r; +if (rnd == null ) C$.r=rnd=Clazz_new_($I$(33)); +C$.shuffle$java_util_List$java_util_Random(list, rnd); +}, 1); + +Clazz_newMeth(C$, 'shuffle$java_util_List$java_util_Random', function (list, rnd) { +var size=list.size$(); +if (size < 5 || Clazz_instanceOf(list, "java.util.RandomAccess") ) { +for (var i=size; i > 1; i--) C$.swap$java_util_List$I$I(list, i - 1, rnd.nextInt$I(i)); + +} else { +var arr=list.toArray$(); +for (var i=size; i > 1; i--) C$.swap$OA$I$I(arr, i - 1, rnd.nextInt$I(i)); + +var it=list.listIterator$(); +for (var i=0; i < arr.length; i++) { +it.next$(); +it.set$TE(arr[i]); +} +}}, 1); + +Clazz_newMeth(C$, 'swap$java_util_List$I$I', function (list, i, j) { +var l=list; +l.set$I$TE(i, l.set$I$TE(j, l.get$I(i))); +}, 1); + +Clazz_newMeth(C$, 'swap$OA$I$I', function (arr, i, j) { +var tmp=arr[i]; +arr[i]=arr[j]; +arr[j]=tmp; +}, 1); + +Clazz_newMeth(C$, 'fill$java_util_List$TT', function (list, obj) { +var size=list.size$(); +if (size < 25 || Clazz_instanceOf(list, "java.util.RandomAccess") ) { +for (var i=0; i < size; i++) list.set$I$TE(i, obj); + +} else { +var itr=list.listIterator$(); +for (var i=0; i < size; i++) { +itr.next$(); +itr.set$TE(obj); +} +}}, 1); + +Clazz_newMeth(C$, 'copy$java_util_List$java_util_List', function (dest, src) { +var srcSize=src.size$(); +if (srcSize > dest.size$()) throw Clazz_new_(Clazz_load('IndexOutOfBoundsException').c$$S,["Source does not fit in dest"]); +if (srcSize < 10 || (Clazz_instanceOf(src, "java.util.RandomAccess") && Clazz_instanceOf(dest, "java.util.RandomAccess") ) ) { +for (var i=0; i < srcSize; i++) dest.set$I$TE(i, src.get$I(i)); + +} else { +var di=dest.listIterator$(); +var si=src.listIterator$(); +for (var i=0; i < srcSize; i++) { +di.next$(); +di.set$TE(si.next$()); +} +}}, 1); + +Clazz_newMeth(C$, 'min$java_util_Collection', function (coll) { +var i=coll.iterator$(); +var candidate=i.next$(); +while (i.hasNext$()){ +var next=i.next$(); +if (next.compareTo$(candidate) < 0) candidate=next; +} +return candidate; +}, 1); + +Clazz_newMeth(C$, 'min$java_util_Collection$java_util_Comparator', function (coll, comp) { +if (comp == null ) return C$.min$java_util_Collection(coll); +var i=coll.iterator$(); +var candidate=i.next$(); +while (i.hasNext$()){ +var next=i.next$(); +if (comp.compare$(next, candidate) < 0) candidate=next; +} +return candidate; +}, 1); + +Clazz_newMeth(C$, 'max$java_util_Collection', function (coll) { +var i=coll.iterator$(); +var candidate=i.next$(); +while (i.hasNext$()){ +var next=i.next$(); +if (next.compareTo$(candidate) > 0) candidate=next; +} +return candidate; +}, 1); + +Clazz_newMeth(C$, 'max$java_util_Collection$java_util_Comparator', function (coll, comp) { +if (comp == null ) return C$.max$java_util_Collection(coll); +var i=coll.iterator$(); +var candidate=i.next$(); +while (i.hasNext$()){ +var next=i.next$(); +if (comp.compare$(next, candidate) > 0) candidate=next; +} +return candidate; +}, 1); + +Clazz_newMeth(C$, 'rotate$java_util_List$I', function (list, distance) { +if (Clazz_instanceOf(list, "java.util.RandomAccess") || list.size$() < 100 ) C$.rotate1$java_util_List$I(list, distance); + else C$.rotate2$java_util_List$I(list, distance); +}, 1); + +Clazz_newMeth(C$, 'rotate1$java_util_List$I', function (list, distance) { +var size=list.size$(); +if (size == 0) return; +distance=distance % size; +if (distance < 0) distance+=size; +if (distance == 0) return; +for (var cycleStart=0, nMoved=0; nMoved != size; cycleStart++) { +var displaced=list.get$I(cycleStart); +var i=cycleStart; +do { +i+=distance; +if (i >= size) i-=size; +displaced=list.set$I$TE(i, displaced); +nMoved++; +} while (i != cycleStart); +} +}, 1); + +Clazz_newMeth(C$, 'rotate2$java_util_List$I', function (list, distance) { +var size=list.size$(); +if (size == 0) return; +var mid=-distance % size; +if (mid < 0) mid+=size; +if (mid == 0) return; +C$.reverse$java_util_List(list.subList$I$I(0, mid)); +C$.reverse$java_util_List(list.subList$I$I(mid, size)); +C$.reverse$java_util_List(list); +}, 1); + +Clazz_newMeth(C$, 'replaceAll$java_util_List$TT$TT', function (list, oldVal, newVal) { +var result=false; +var size=list.size$(); +if (size < 11 || Clazz_instanceOf(list, "java.util.RandomAccess") ) { +if (oldVal == null ) { +for (var i=0; i < size; i++) { +if (list.get$I(i) == null ) { +list.set$I$TE(i, newVal); +result=true; +}} +} else { +for (var i=0; i < size; i++) { +if (oldVal.equals$O(list.get$I(i))) { +list.set$I$TE(i, newVal); +result=true; +}} +}} else { +var itr=list.listIterator$(); +if (oldVal == null ) { +for (var i=0; i < size; i++) { +if (itr.next$() == null ) { +itr.set$TE(newVal); +result=true; +}} +} else { +for (var i=0; i < size; i++) { +if (oldVal.equals$O(itr.next$())) { +itr.set$TE(newVal); +result=true; +}} +}}return result; +}, 1); + +Clazz_newMeth(C$, 'indexOfSubList$java_util_List$java_util_List', function (source, target) { +var sourceSize=source.size$(); +var targetSize=target.size$(); +var maxCandidate=sourceSize - targetSize; +if (sourceSize < 35 || (Clazz_instanceOf(source, "java.util.RandomAccess") && Clazz_instanceOf(target, "java.util.RandomAccess") ) ) { + nextCand : for (var candidate=0; candidate <= maxCandidate; candidate++) { +for (var i=0, j=candidate; i < targetSize; i++, j++) if (!C$.eq$O$O(target.get$I(i), source.get$I(j))) continue nextCand; + +return candidate; +} +} else { +var si=source.listIterator$(); + nextCand : for (var candidate=0; candidate <= maxCandidate; candidate++) { +var ti=target.listIterator$(); +for (var i=0; i < targetSize; i++) { +if (!C$.eq$O$O(ti.next$(), si.next$())) { +for (var j=0; j < i; j++) si.previous$(); + +continue nextCand; +}} +return candidate; +} +}return -1; +}, 1); + +Clazz_newMeth(C$, 'lastIndexOfSubList$java_util_List$java_util_List', function (source, target) { +var sourceSize=source.size$(); +var targetSize=target.size$(); +var maxCandidate=sourceSize - targetSize; +if (sourceSize < 35 || Clazz_instanceOf(source, "java.util.RandomAccess") ) { + nextCand : for (var candidate=maxCandidate; candidate >= 0; candidate--) { +for (var i=0, j=candidate; i < targetSize; i++, j++) if (!C$.eq$O$O(target.get$I(i), source.get$I(j))) continue nextCand; + +return candidate; +} +} else { +if (maxCandidate < 0) return -1; +var si=source.listIterator$I(maxCandidate); + nextCand : for (var candidate=maxCandidate; candidate >= 0; candidate--) { +var ti=target.listIterator$(); +for (var i=0; i < targetSize; i++) { +if (!C$.eq$O$O(ti.next$(), si.next$())) { +if (candidate != 0) { +for (var j=0; j <= i + 1; j++) si.previous$(); + +}continue nextCand; +}} +return candidate; +} +}return -1; +}, 1); + +Clazz_newMeth(C$, 'unmodifiableCollection$java_util_Collection', function (c) { +return Clazz_new_($I$(34).c$$java_util_Collection,[c]); +}, 1); + +Clazz_newMeth(C$, 'unmodifiableSet$java_util_Set', function (s) { +return Clazz_new_($I$(35).c$$java_util_Set,[s]); +}, 1); + +Clazz_newMeth(C$, 'unmodifiableSortedSet$java_util_SortedSet', function (s) { +return Clazz_new_($I$(36).c$$java_util_SortedSet,[s]); +}, 1); + +Clazz_newMeth(C$, 'unmodifiableNavigableSet$java_util_NavigableSet', function (s) { +return Clazz_new_($I$(2).c$$java_util_NavigableSet,[s]); +}, 1); + +Clazz_newMeth(C$, 'unmodifiableList$java_util_List', function (list) { +return (Clazz_instanceOf(list, "java.util.RandomAccess") ? Clazz_new_($I$(4).c$$java_util_List,[list]) : Clazz_new_($I$(5).c$$java_util_List,[list])); +}, 1); + +Clazz_newMeth(C$, 'unmodifiableMap$java_util_Map', function (m) { +return Clazz_new_($I$(37).c$$java_util_Map,[m]); +}, 1); + +Clazz_newMeth(C$, 'unmodifiableSortedMap$java_util_SortedMap', function (m) { +return Clazz_new_($I$(38).c$$java_util_SortedMap,[m]); +}, 1); + +Clazz_newMeth(C$, 'unmodifiableNavigableMap$java_util_NavigableMap', function (m) { +return Clazz_new_($I$(13).c$$java_util_NavigableMap,[m]); +}, 1); + +Clazz_newMeth(C$, 'synchronizedCollection$java_util_Collection', function (c) { +return Clazz_new_($I$(18).c$$java_util_Collection,[c]); +}, 1); + +Clazz_newMeth(C$, 'synchronizedCollection$java_util_Collection$O', function (c, mutex) { +return Clazz_new_($I$(18).c$$java_util_Collection$O,[c, mutex]); +}, 1); + +Clazz_newMeth(C$, 'synchronizedSet$java_util_Set', function (s) { +return Clazz_new_($I$(17).c$$java_util_Set,[s]); +}, 1); + +Clazz_newMeth(C$, 'synchronizedSet$java_util_Set$O', function (s, mutex) { +return Clazz_new_($I$(17).c$$java_util_Set$O,[s, mutex]); +}, 1); + +Clazz_newMeth(C$, 'synchronizedSortedSet$java_util_SortedSet', function (s) { +return Clazz_new_($I$(39).c$$java_util_SortedSet,[s]); +}, 1); + +Clazz_newMeth(C$, 'synchronizedNavigableSet$java_util_NavigableSet', function (s) { +return Clazz_new_($I$(19).c$$java_util_NavigableSet,[s]); +}, 1); + +Clazz_newMeth(C$, 'synchronizedList$java_util_List', function (list) { +return (Clazz_instanceOf(list, "java.util.RandomAccess") ? Clazz_new_($I$(15).c$$java_util_List,[list]) : Clazz_new_($I$(16).c$$java_util_List,[list])); +}, 1); + +Clazz_newMeth(C$, 'synchronizedList$java_util_List$O', function (list, mutex) { +return (Clazz_instanceOf(list, "java.util.RandomAccess") ? Clazz_new_($I$(15).c$$java_util_List$O,[list, mutex]) : Clazz_new_($I$(16).c$$java_util_List$O,[list, mutex])); +}, 1); + +Clazz_newMeth(C$, 'synchronizedMap$java_util_Map', function (m) { +return Clazz_new_($I$(40).c$$java_util_Map,[m]); +}, 1); + +Clazz_newMeth(C$, 'synchronizedSortedMap$java_util_SortedMap', function (m) { +return Clazz_new_($I$(41).c$$java_util_SortedMap,[m]); +}, 1); + +Clazz_newMeth(C$, 'synchronizedNavigableMap$java_util_NavigableMap', function (m) { +return Clazz_new_($I$(42).c$$java_util_NavigableMap,[m]); +}, 1); + +Clazz_newMeth(C$, 'checkedCollection$java_util_Collection$Class', function (c, type) { +return Clazz_new_($I$(43).c$$java_util_Collection$Class,[c, type]); +}, 1); + +Clazz_newMeth(C$, 'zeroLengthArray$Class', function (type) { +return Clazz_array(type, 0); +}, 1); + +Clazz_newMeth(C$, 'checkedQueue$java_util_Queue$Class', function (queue, type) { +return Clazz_new_($I$(44).c$$java_util_Queue$Class,[queue, type]); +}, 1); + +Clazz_newMeth(C$, 'checkedSet$java_util_Set$Class', function (s, type) { +return Clazz_new_($I$(45).c$$java_util_Set$Class,[s, type]); +}, 1); + +Clazz_newMeth(C$, 'checkedSortedSet$java_util_SortedSet$Class', function (s, type) { +return Clazz_new_($I$(46).c$$java_util_SortedSet$Class,[s, type]); +}, 1); + +Clazz_newMeth(C$, 'checkedNavigableSet$java_util_NavigableSet$Class', function (s, type) { +return Clazz_new_($I$(47).c$$java_util_NavigableSet$Class,[s, type]); +}, 1); + +Clazz_newMeth(C$, 'checkedList$java_util_List$Class', function (list, type) { +return (Clazz_instanceOf(list, "java.util.RandomAccess") ? Clazz_new_($I$(48).c$$java_util_List$Class,[list, type]) : Clazz_new_($I$(49).c$$java_util_List$Class,[list, type])); +}, 1); + +Clazz_newMeth(C$, 'checkedMap$java_util_Map$Class$Class', function (m, keyType, valueType) { +return Clazz_new_($I$(50).c$$java_util_Map$Class$Class,[m, keyType, valueType]); +}, 1); + +Clazz_newMeth(C$, 'checkedSortedMap$java_util_SortedMap$Class$Class', function (m, keyType, valueType) { +return Clazz_new_($I$(51).c$$java_util_SortedMap$Class$Class,[m, keyType, valueType]); +}, 1); + +Clazz_newMeth(C$, 'checkedNavigableMap$java_util_NavigableMap$Class$Class', function (m, keyType, valueType) { +return Clazz_new_($I$(52).c$$java_util_NavigableMap$Class$Class,[m, keyType, valueType]); +}, 1); + +Clazz_newMeth(C$, 'emptyIterator$', function () { +return $I$(53).EMPTY_ITERATOR; +}, 1); + +Clazz_newMeth(C$, 'emptyListIterator$', function () { +return $I$(54).$EMPTY_ITERATOR; +}, 1); + +Clazz_newMeth(C$, 'emptyEnumeration$', function () { +return $I$(55).EMPTY_ENUMERATION; +}, 1); + +Clazz_newMeth(C$, 'emptySet$', function () { +return C$.EMPTY_SET; +}, 1); + +Clazz_newMeth(C$, 'emptySortedSet$', function () { +return $I$(2).EMPTY_NAVIGABLE_SET; +}, 1); + +Clazz_newMeth(C$, 'emptyNavigableSet$', function () { +return $I$(2).EMPTY_NAVIGABLE_SET; +}, 1); + +Clazz_newMeth(C$, 'emptyList$', function () { +return C$.EMPTY_LIST; +}, 1); + +Clazz_newMeth(C$, 'emptyMap$', function () { +return C$.EMPTY_MAP; +}, 1); + +Clazz_newMeth(C$, 'emptySortedMap$', function () { +return $I$(13).EMPTY_NAVIGABLE_MAP; +}, 1); + +Clazz_newMeth(C$, 'emptyNavigableMap$', function () { +return $I$(13).EMPTY_NAVIGABLE_MAP; +}, 1); + +Clazz_newMeth(C$, 'singleton$TT', function (o) { +return Clazz_new_($I$(56).c$$TE,[o]); +}, 1); + +Clazz_newMeth(C$, 'singletonIterator$TE', function (e) { +return ((P$.Collections$1|| +(function(){var C$=Clazz_newClass(P$, "Collections$1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'java.util.Iterator', 1); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.hasNext=false; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.hasNext=true; +}, 1); + +Clazz_newMeth(C$, 'hasNext$', function () { +return this.hasNext; +}); + +Clazz_newMeth(C$, 'next$', function () { +if (this.hasNext) { +this.hasNext=false; +return this.$finals$.e; +}throw Clazz_new_(Clazz_load('java.util.NoSuchElementException')); +}); + +Clazz_newMeth(C$, 'remove$', function () { +throw Clazz_new_(Clazz_load('UnsupportedOperationException')); +}); + +Clazz_newMeth(C$, 'forEachRemaining$java_util_function_Consumer', function (action) { +$I$(6).requireNonNull$TT(action); +if (this.hasNext) { +action.accept$(this.$finals$.e); +this.hasNext=false; +}}); +})() +), Clazz_new_(P$.Collections$1.$init$, [this, {e: e}])); +}, 1); + +Clazz_newMeth(C$, 'singletonSpliterator$TT', function (element) { +return ((P$.Collections$2|| +(function(){var C$=Clazz_newClass(P$, "Collections$2", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'java.util.Spliterator', 1); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.est=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.est=1; +}, 1); + +Clazz_newMeth(C$, 'trySplit$', function () { +return null; +}); + +Clazz_newMeth(C$, 'tryAdvance$java_util_function_Consumer', function (consumer) { +$I$(6).requireNonNull$TT(consumer); +if (this.est > 0) { +this.est--; +consumer.accept$(this.$finals$.element); +return true; +}return false; +}); + +Clazz_newMeth(C$, 'forEachRemaining$java_util_function_Consumer', function (consumer) { +this.tryAdvance$java_util_function_Consumer(consumer); +}); + +Clazz_newMeth(C$, 'estimateSize$', function () { +return this.est; +}); + +Clazz_newMeth(C$, 'characteristics$', function () { +var value=(this.$finals$.element != null ) ? 256 : 0; +return value | 64 | 16384 | 1024 | 1 | 16 ; +}); +})() +), Clazz_new_(P$.Collections$2.$init$, [this, {element: element}])); +}, 1); + +Clazz_newMeth(C$, 'singletonList$TT', function (o) { +return Clazz_new_($I$(57).c$$TE,[o]); +}, 1); + +Clazz_newMeth(C$, 'singletonMap$TK$TV', function (key, value) { +return Clazz_new_($I$(58).c$$TK$TV,[key, value]); +}, 1); + +Clazz_newMeth(C$, 'nCopies$I$TT', function (n, o) { +if (n < 0) throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["List length = " + n]); +return Clazz_new_($I$(59).c$$I$TE,[n, o]); +}, 1); + +Clazz_newMeth(C$, 'reverseOrder$', function () { +return $I$(60).REVERSE_ORDER; +}, 1); + +Clazz_newMeth(C$, 'reverseOrder$java_util_Comparator', function (cmp) { +if (cmp == null ) return C$.reverseOrder$(); +if (Clazz_instanceOf(cmp, "java.util.Collections.ReverseComparator2")) return (cmp).cmp; +return Clazz_new_($I$(61).c$$java_util_Comparator,[cmp]); +}, 1); + +Clazz_newMeth(C$, 'enumeration$java_util_Collection', function (c) { +return ((P$.Collections$3|| +(function(){var C$=Clazz_newClass(P$, "Collections$3", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'java.util.Enumeration', 1); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.i=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.i=this.$finals$.c.iterator$(); +}, 1); + +Clazz_newMeth(C$, 'hasMoreElements$', function () { +return this.i.hasNext$(); +}); + +Clazz_newMeth(C$, 'nextElement$', function () { +return this.i.next$(); +}); +})() +), Clazz_new_(P$.Collections$3.$init$, [this, {c: c}])); +}, 1); + +Clazz_newMeth(C$, 'list$java_util_Enumeration', function (e) { +var l=Clazz_new_($I$(22)); +while (e.hasMoreElements$())l.add$TE(e.nextElement$()); + +return l; +}, 1); + +Clazz_newMeth(C$, 'eq$O$O', function (o1, o2) { +return o1 == null ? o2 == null : o1.equals$O(o2); +}, 1); + +Clazz_newMeth(C$, 'frequency$java_util_Collection$O', function (c, o) { +var result=0; +if (o == null ) { +for (var e, $e = c.iterator$(); $e.hasNext$()&&((e=($e.next$())),1);) if (e == null ) result++; + +} else { +for (var e, $e = c.iterator$(); $e.hasNext$()&&((e=($e.next$())),1);) if (o.equals$O(e)) result++; + +}return result; +}, 1); + +Clazz_newMeth(C$, 'disjoint$java_util_Collection$java_util_Collection', function (c1, c2) { +var contains=c2; +var iterate=c1; +if (Clazz_instanceOf(c1, "java.util.Set")) { +iterate=c2; +contains=c1; +} else if (!(Clazz_instanceOf(c2, "java.util.Set"))) { +var c1size=c1.size$(); +var c2size=c2.size$(); +if (c1size == 0 || c2size == 0 ) { +return true; +}if (c1size > c2size) { +iterate=c2; +contains=c1; +}}for (var e, $e = iterate.iterator$(); $e.hasNext$()&&((e=($e.next$())),1);) { +if (contains.contains$O(e)) { +return false; +}} +return true; +}, 1); + +Clazz_newMeth(C$, 'addAll$java_util_Collection$TTA', function (c, elements) { +var result=false; +for (var element, $element = 0, $$element = elements; $element<$$element.length&&((element=($$element[$element])),1);$element++) result|=c.add$TE(element); + +return result; +}, 1); + +Clazz_newMeth(C$, 'newSetFromMap$java_util_Map', function (map) { +return Clazz_new_($I$(62).c$$java_util_Map,[map]); +}, 1); + +Clazz_newMeth(C$, 'asLifoQueue$java_util_Deque', function (deque) { +return Clazz_new_($I$(63).c$$java_util_Deque,[deque]); +}, 1); +; +(function(){var C$=Clazz_newClass(P$.Collections, "UnmodifiableCollection", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, null, ['java.util.Collection', 'java.io.Serializable']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.c=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$java_util_Collection', function (c) { +C$.$init$.apply(this); +if (c == null ) throw Clazz_new_(Clazz_load('NullPointerException')); +this.c=c; +}, 1); + +Clazz_newMeth(C$, 'size$', function () { +return this.c.size$(); +}); + +Clazz_newMeth(C$, 'isEmpty$', function () { +return this.c.isEmpty$(); +}); + +Clazz_newMeth(C$, 'contains$O', function (o) { +return this.c.contains$O(o); +}); + +Clazz_newMeth(C$, 'toArray$', function () { +return this.c.toArray$(); +}); + +Clazz_newMeth(C$, 'toArray$TTA', function (a) { +return this.c.toArray$TTA(a); +}); + +Clazz_newMeth(C$, 'toString', function () { +return this.c.toString(); +}); + +Clazz_newMeth(C$, 'iterator$', function () { +return ((P$.Collections$UnmodifiableCollection$1|| +(function(){var C$=Clazz_newClass(P$, "Collections$UnmodifiableCollection$1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'java.util.Iterator', 1); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.i=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.i=this.b$['java.util.Collections.UnmodifiableCollection'].c.iterator$(); +}, 1); + +Clazz_newMeth(C$, 'hasNext$', function () { +return this.i.hasNext$(); +}); + +Clazz_newMeth(C$, 'next$', function () { +return this.i.next$(); +}); + +Clazz_newMeth(C$, 'remove$', function () { +throw Clazz_new_(Clazz_load('UnsupportedOperationException')); +}); + +Clazz_newMeth(C$, ['forEachRemaining$java_util_function_Consumer','forEachRemaining$'], function (action) { +this.i.forEachRemaining$java_util_function_Consumer(action); +}); +})() +), Clazz_new_(P$.Collections$UnmodifiableCollection$1.$init$, [this, null])); +}); + +Clazz_newMeth(C$, ['add$TE'], function (e) { +throw Clazz_new_(Clazz_load('UnsupportedOperationException')); +}); + +Clazz_newMeth(C$, 'remove$O', function (o) { +throw Clazz_new_(Clazz_load('UnsupportedOperationException')); +}); + +Clazz_newMeth(C$, 'containsAll$java_util_Collection', function (coll) { +return this.c.containsAll$java_util_Collection(coll); +}); + +Clazz_newMeth(C$, 'addAll$java_util_Collection', function (coll) { +throw Clazz_new_(Clazz_load('UnsupportedOperationException')); +}); + +Clazz_newMeth(C$, 'removeAll$java_util_Collection', function (coll) { +throw Clazz_new_(Clazz_load('UnsupportedOperationException')); +}); + +Clazz_newMeth(C$, 'retainAll$java_util_Collection', function (coll) { +throw Clazz_new_(Clazz_load('UnsupportedOperationException')); +}); + +Clazz_newMeth(C$, 'clear$', function () { +throw Clazz_new_(Clazz_load('UnsupportedOperationException')); +}); + +Clazz_newMeth(C$, 'forEach$java_util_function_Consumer', function (action) { +this.c.forEach$java_util_function_Consumer(action); +}); + +Clazz_newMeth(C$, 'removeIf$java_util_function_Predicate', function (filter) { +throw Clazz_new_(Clazz_load('UnsupportedOperationException')); +}); + +Clazz_newMeth(C$, 'spliterator$', function () { +return this.c.spliterator$(); +}); + +Clazz_newMeth(C$, 'stream$', function () { +return this.c.stream$(); +}); + +Clazz_newMeth(C$, 'parallelStream$', function () { +return this.c.parallelStream$(); +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.Collections, "UnmodifiableSet", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, ['java.util.Collections','.UnmodifiableCollection'], ['java.util.Set', 'java.io.Serializable']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$java_util_Set', function (s) { +C$.superclazz.c$$java_util_Collection.apply(this, [s]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'equals$O', function (o) { +return o === this || this.c.equals$O(o) ; +}); + +Clazz_newMeth(C$, 'hashCode$', function () { +return this.c.hashCode$(); +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.Collections, "UnmodifiableSortedSet", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, ['java.util.Collections','.UnmodifiableSet'], ['java.util.SortedSet', 'java.io.Serializable']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.ss=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$java_util_SortedSet', function (s) { +C$.superclazz.c$$java_util_Set.apply(this, [s]); +C$.$init$.apply(this); +this.ss=s; +}, 1); + +Clazz_newMeth(C$, 'comparator$', function () { +return this.ss.comparator$(); +}); + +Clazz_newMeth(C$, ['subSet$TE$TE'], function (fromElement, toElement) { +return Clazz_new_(C$.c$$java_util_SortedSet,[this.ss.subSet$TE$TE(fromElement, toElement)]); +}); + +Clazz_newMeth(C$, ['headSet$TE'], function (toElement) { +return Clazz_new_(C$.c$$java_util_SortedSet,[this.ss.headSet$TE(toElement)]); +}); + +Clazz_newMeth(C$, ['tailSet$TE'], function (fromElement) { +return Clazz_new_(C$.c$$java_util_SortedSet,[this.ss.tailSet$TE(fromElement)]); +}); + +Clazz_newMeth(C$, 'first$', function () { +return this.ss.first$(); +}); + +Clazz_newMeth(C$, 'last$', function () { +return this.ss.last$(); +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.Collections, "UnmodifiableNavigableSet", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, ['java.util.Collections','.UnmodifiableSortedSet'], ['java.util.NavigableSet', 'java.io.Serializable']); +C$.EMPTY_NAVIGABLE_SET=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.EMPTY_NAVIGABLE_SET=Clazz_new_($I$(3)); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.ns=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$java_util_NavigableSet', function (s) { +C$.superclazz.c$$java_util_SortedSet.apply(this, [s]); +C$.$init$.apply(this); +this.ns=s; +}, 1); + +Clazz_newMeth(C$, ['lower$TE'], function (e) { +return this.ns.lower$TE(e); +}); + +Clazz_newMeth(C$, ['floor$TE'], function (e) { +return this.ns.floor$TE(e); +}); + +Clazz_newMeth(C$, ['ceiling$TE'], function (e) { +return this.ns.ceiling$TE(e); +}); + +Clazz_newMeth(C$, ['higher$TE'], function (e) { +return this.ns.higher$TE(e); +}); + +Clazz_newMeth(C$, 'pollFirst$', function () { +throw Clazz_new_(Clazz_load('UnsupportedOperationException')); +}); + +Clazz_newMeth(C$, 'pollLast$', function () { +throw Clazz_new_(Clazz_load('UnsupportedOperationException')); +}); + +Clazz_newMeth(C$, 'descendingSet$', function () { +return Clazz_new_(C$.c$$java_util_NavigableSet,[this.ns.descendingSet$()]); +}); + +Clazz_newMeth(C$, 'descendingIterator$', function () { +return this.descendingSet$().iterator$(); +}); + +Clazz_newMeth(C$, ['subSet$TE$Z$TE$Z'], function (fromElement, fromInclusive, toElement, toInclusive) { +return Clazz_new_(C$.c$$java_util_NavigableSet,[this.ns.subSet$TE$Z$TE$Z(fromElement, fromInclusive, toElement, toInclusive)]); +}); + +Clazz_newMeth(C$, ['headSet$TE$Z'], function (toElement, inclusive) { +return Clazz_new_(C$.c$$java_util_NavigableSet,[this.ns.headSet$TE$Z(toElement, inclusive)]); +}); + +Clazz_newMeth(C$, ['tailSet$TE$Z'], function (fromElement, inclusive) { +return Clazz_new_(C$.c$$java_util_NavigableSet,[this.ns.tailSet$TE$Z(fromElement, inclusive)]); +}); +; +(function(){var C$=Clazz_newClass(P$.Collections.UnmodifiableNavigableSet, "EmptyNavigableSet", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, ['java.util.Collections','.UnmodifiableNavigableSet'], 'java.io.Serializable'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.superclazz.c$$java_util_NavigableSet.apply(this, [Clazz_new_($I$(1))]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'readResolve', function () { +return $I$(2).EMPTY_NAVIGABLE_SET; +}, p$1); +})() + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.Collections, "UnmodifiableList", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, ['java.util.Collections','.UnmodifiableCollection'], 'java.util.List'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.list=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$java_util_List', function (list) { +C$.superclazz.c$$java_util_Collection.apply(this, [list]); +C$.$init$.apply(this); +this.list=list; +}, 1); + +Clazz_newMeth(C$, 'equals$O', function (o) { +return o === this || this.list.equals$O(o) ; +}); + +Clazz_newMeth(C$, 'hashCode$', function () { +return this.list.hashCode$(); +}); + +Clazz_newMeth(C$, 'get$I', function (index) { +return this.list.get$I(index); +}); + +Clazz_newMeth(C$, 'set$I$TE', function (index, element) { +throw Clazz_new_(Clazz_load('UnsupportedOperationException')); +}); + +Clazz_newMeth(C$, 'add$I$TE', function (index, element) { +throw Clazz_new_(Clazz_load('UnsupportedOperationException')); +}); + +Clazz_newMeth(C$, 'remove$I', function (index) { +throw Clazz_new_(Clazz_load('UnsupportedOperationException')); +}); + +Clazz_newMeth(C$, 'indexOf$O', function (o) { +return this.list.indexOf$O(o); +}); + +Clazz_newMeth(C$, 'lastIndexOf$O', function (o) { +return this.list.lastIndexOf$O(o); +}); + +Clazz_newMeth(C$, 'addAll$I$java_util_Collection', function (index, c) { +throw Clazz_new_(Clazz_load('UnsupportedOperationException')); +}); + +Clazz_newMeth(C$, 'replaceAll$java_util_function_UnaryOperator', function (operator) { +throw Clazz_new_(Clazz_load('UnsupportedOperationException')); +}); + +Clazz_newMeth(C$, 'sort$java_util_Comparator', function (c) { +throw Clazz_new_(Clazz_load('UnsupportedOperationException')); +}); + +Clazz_newMeth(C$, 'listIterator$', function () { +return this.listIterator$I(0); +}); + +Clazz_newMeth(C$, 'listIterator$I', function (index) { +return ((P$.Collections$UnmodifiableList$1|| +(function(){var C$=Clazz_newClass(P$, "Collections$UnmodifiableList$1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'java.util.ListIterator', 1); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.i=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.i=this.b$['java.util.Collections.UnmodifiableList'].list.listIterator$I(this.$finals$.index); +}, 1); + +Clazz_newMeth(C$, 'hasNext$', function () { +return this.i.hasNext$(); +}); + +Clazz_newMeth(C$, 'next$', function () { +return this.i.next$(); +}); + +Clazz_newMeth(C$, 'hasPrevious$', function () { +return this.i.hasPrevious$(); +}); + +Clazz_newMeth(C$, 'previous$', function () { +return this.i.previous$(); +}); + +Clazz_newMeth(C$, 'nextIndex$', function () { +return this.i.nextIndex$(); +}); + +Clazz_newMeth(C$, 'previousIndex$', function () { +return this.i.previousIndex$(); +}); + +Clazz_newMeth(C$, 'remove$', function () { +throw Clazz_new_(Clazz_load('UnsupportedOperationException')); +}); + +Clazz_newMeth(C$, ['set$TE'], function (e) { +throw Clazz_new_(Clazz_load('UnsupportedOperationException')); +}); + +Clazz_newMeth(C$, ['add$TE'], function (e) { +throw Clazz_new_(Clazz_load('UnsupportedOperationException')); +}); + +Clazz_newMeth(C$, 'forEachRemaining$java_util_function_Consumer', function (action) { +this.i.forEachRemaining$java_util_function_Consumer(action); +}); +})() +), Clazz_new_(P$.Collections$UnmodifiableList$1.$init$, [this, {index: index}])); +}); + +Clazz_newMeth(C$, 'subList$I$I', function (fromIndex, toIndex) { +return Clazz_new_(C$.c$$java_util_List,[this.list.subList$I$I(fromIndex, toIndex)]); +}); + +Clazz_newMeth(C$, 'readResolve', function () { +return (Clazz_instanceOf(this.list, "java.util.RandomAccess") ? Clazz_new_($I$(4).c$$java_util_List,[this.list]) : this); +}, p$2); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.Collections, "UnmodifiableRandomAccessList", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, ['java.util.Collections','.UnmodifiableList'], 'java.util.RandomAccess'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$java_util_List', function (list) { +C$.superclazz.c$$java_util_List.apply(this, [list]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'subList$I$I', function (fromIndex, toIndex) { +return Clazz_new_(C$.c$$java_util_List,[this.list.subList$I$I(fromIndex, toIndex)]); +}); + +Clazz_newMeth(C$, 'writeReplace', function () { +return Clazz_new_($I$(5).c$$java_util_List,[this.list]); +}, p$3); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.Collections, "UnmodifiableMap", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, null, ['java.util.Map', 'java.io.Serializable']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.m=null; +this.keySet=null; +this.entrySet=null; +this.values=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$java_util_Map', function (m) { +C$.$init$.apply(this); +if (m == null ) throw Clazz_new_(Clazz_load('NullPointerException')); +this.m=m; +}, 1); + +Clazz_newMeth(C$, 'size$', function () { +return this.m.size$(); +}); + +Clazz_newMeth(C$, 'isEmpty$', function () { +return this.m.isEmpty$(); +}); + +Clazz_newMeth(C$, 'containsKey$O', function (key) { +return this.m.containsKey$O(key); +}); + +Clazz_newMeth(C$, 'containsValue$O', function (val) { +return this.m.containsValue$O(val); +}); + +Clazz_newMeth(C$, 'get$O', function (key) { +return this.m.get$O(key); +}); + +Clazz_newMeth(C$, ['put$TK$TV'], function (key, value) { +throw Clazz_new_(Clazz_load('UnsupportedOperationException')); +}); + +Clazz_newMeth(C$, 'remove$O', function (key) { +throw Clazz_new_(Clazz_load('UnsupportedOperationException')); +}); + +Clazz_newMeth(C$, 'putAll$java_util_Map', function (m) { +throw Clazz_new_(Clazz_load('UnsupportedOperationException')); +}); + +Clazz_newMeth(C$, 'clear$', function () { +throw Clazz_new_(Clazz_load('UnsupportedOperationException')); +}); + +Clazz_newMeth(C$, 'keySet$', function () { +if (this.keySet == null ) this.keySet=P$.Collections.unmodifiableSet$java_util_Set(this.m.keySet$()); +return this.keySet; +}); + +Clazz_newMeth(C$, 'entrySet$', function () { +if (this.entrySet == null ) this.entrySet=Clazz_new_($I$(11).c$$java_util_Set,[this.m.entrySet$()]); +return this.entrySet; +}); + +Clazz_newMeth(C$, 'values$', function () { +if (this.values == null ) this.values=P$.Collections.unmodifiableCollection$java_util_Collection(this.m.values$()); +return this.values; +}); + +Clazz_newMeth(C$, 'equals$O', function (o) { +return o === this || this.m.equals$O(o) ; +}); + +Clazz_newMeth(C$, 'hashCode$', function () { +return this.m.hashCode$(); +}); + +Clazz_newMeth(C$, 'toString', function () { +return this.m.toString(); +}); + +Clazz_newMeth(C$, ['getOrDefault$O$TV'], function (k, defaultValue) { +return (this.m).getOrDefault$O$TV(k, defaultValue); +}); + +Clazz_newMeth(C$, 'forEach$java_util_function_BiConsumer', function (action) { +this.m.forEach$java_util_function_BiConsumer(action); +}); + +Clazz_newMeth(C$, 'replaceAll$java_util_function_BiFunction', function ($function) { +throw Clazz_new_(Clazz_load('UnsupportedOperationException')); +}); + +Clazz_newMeth(C$, ['putIfAbsent$TK$TV'], function (key, value) { +throw Clazz_new_(Clazz_load('UnsupportedOperationException')); +}); + +Clazz_newMeth(C$, 'remove$O$O', function (key, value) { +throw Clazz_new_(Clazz_load('UnsupportedOperationException')); +}); + +Clazz_newMeth(C$, ['replace$TK$TV$TV'], function (key, oldValue, newValue) { +throw Clazz_new_(Clazz_load('UnsupportedOperationException')); +}); + +Clazz_newMeth(C$, ['replace$TK$TV'], function (key, value) { +throw Clazz_new_(Clazz_load('UnsupportedOperationException')); +}); + +Clazz_newMeth(C$, ['computeIfAbsent$TK$java_util_function_Function'], function (key, mappingFunction) { +throw Clazz_new_(Clazz_load('UnsupportedOperationException')); +}); + +Clazz_newMeth(C$, ['computeIfPresent$TK$java_util_function_BiFunction'], function (key, remappingFunction) { +throw Clazz_new_(Clazz_load('UnsupportedOperationException')); +}); + +Clazz_newMeth(C$, ['compute$TK$java_util_function_BiFunction'], function (key, remappingFunction) { +throw Clazz_new_(Clazz_load('UnsupportedOperationException')); +}); + +Clazz_newMeth(C$, ['merge$TK$TV$java_util_function_BiFunction'], function (key, value, remappingFunction) { +throw Clazz_new_(Clazz_load('UnsupportedOperationException')); +}); +; +(function(){var C$=Clazz_newClass(P$.Collections.UnmodifiableMap, "UnmodifiableEntrySet", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, ['java.util.Collections','.UnmodifiableSet']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$java_util_Set', function (s) { +C$.superclazz.c$$java_util_Set.apply(this, [s]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, ['entryConsumer$java_util_function_Consumer'], function (action) { +return ((P$.Collections$UnmodifiableMap$UnmodifiableEntrySet$lambda1|| +(function(){var C$=Clazz_newClass(P$, "Collections$UnmodifiableMap$UnmodifiableEntrySet$lambda1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'java.util.function.Consumer', 1); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); +/*lambda_E*/ +Clazz_newMeth(C$, ['accept$'], function (e) { return (this.$finals$.action.accept$(Clazz_new_($I$(7).c$$java_util_Map_Entry,[e])));}); +})() +), Clazz_new_(P$.Collections$UnmodifiableMap$UnmodifiableEntrySet$lambda1.$init$, [this, {action: action}])); +}, 1); + +Clazz_newMeth(C$, ['forEach$java_util_function_Consumer'], function (action) { +$I$(6).requireNonNull$TT(action); +this.c.forEach$java_util_function_Consumer(C$.entryConsumer$java_util_function_Consumer(action)); +}); + +Clazz_newMeth(C$, 'spliterator$', function () { +return Clazz_new_($I$(8).c$$java_util_Spliterator,[this.c.spliterator$()]); +}); + +Clazz_newMeth(C$, 'stream$', function () { +return $I$(9).stream$java_util_Spliterator$Z(this.spliterator$(), false); +}); + +Clazz_newMeth(C$, 'parallelStream$', function () { +return $I$(9).stream$java_util_Spliterator$Z(this.spliterator$(), true); +}); + +Clazz_newMeth(C$, 'iterator$', function () { +return ((P$.Collections$UnmodifiableMap$UnmodifiableEntrySet$1|| +(function(){var C$=Clazz_newClass(P$, "Collections$UnmodifiableMap$UnmodifiableEntrySet$1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'java.util.Iterator', 1); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.i=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.i=this.b$['java.util.Collections.UnmodifiableMap.UnmodifiableEntrySet'].c.iterator$(); +}, 1); + +Clazz_newMeth(C$, 'hasNext$', function () { +return this.i.hasNext$(); +}); + +Clazz_newMeth(C$, 'next$', function () { +return Clazz_new_($I$(7).c$$java_util_Map_Entry,[this.i.next$()]); +}); + +Clazz_newMeth(C$, 'remove$', function () { +throw Clazz_new_(Clazz_load('UnsupportedOperationException')); +}); +})() +), Clazz_new_(P$.Collections$UnmodifiableMap$UnmodifiableEntrySet$1.$init$, [this, null])); +}); + +Clazz_newMeth(C$, 'toArray$', function () { +var a=this.c.toArray$(); +for (var i=0; i < a.length; i++) a[i]=Clazz_new_($I$(7).c$$java_util_Map_Entry,[a[i]]); + +return a; +}); + +Clazz_newMeth(C$, 'toArray$TTA', function (a) { +var arr=this.c.toArray$TTA(a.length == 0 ? a : $I$(10).copyOf$TTA$I(a, 0)); +for (var i=0; i < arr.length; i++) arr[i]=Clazz_new_($I$(7).c$$java_util_Map_Entry,[arr[i]]); + +if (arr.length > a.length) return arr; +System.arraycopy$O$I$O$I$I(arr, 0, a, 0, arr.length); +if (a.length > arr.length) a[arr.length]=null; +return a; +}); + +Clazz_newMeth(C$, 'contains$O', function (o) { +if (!(Clazz_instanceOf(o, "java.util.Map.Entry"))) return false; +return this.c.contains$O(Clazz_new_($I$(7).c$$java_util_Map_Entry,[o])); +}); + +Clazz_newMeth(C$, 'containsAll$java_util_Collection', function (coll) { +for (var e, $e = coll.iterator$(); $e.hasNext$()&&((e=($e.next$())),1);) { +if (!this.contains$O(e)) return false; +} +return true; +}); + +Clazz_newMeth(C$, 'equals$O', function (o) { +if (o === this ) return true; +if (!(Clazz_instanceOf(o, "java.util.Set"))) return false; +var s=o; +if (s.size$() != this.c.size$()) return false; +return this.containsAll$java_util_Collection(s); +}); +; +(function(){var C$=Clazz_newClass(P$.Collections.UnmodifiableMap.UnmodifiableEntrySet, "UnmodifiableEntrySetSpliterator", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, null, 'java.util.Spliterator'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.s=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, ['c$$java_util_Spliterator'], function (s) { +C$.$init$.apply(this); +this.s=s; +}, 1); + +Clazz_newMeth(C$, ['tryAdvance$java_util_function_Consumer'], function (action) { +$I$(6).requireNonNull$TT(action); +return this.s.tryAdvance$java_util_function_Consumer(P$.Collections.UnmodifiableMap.UnmodifiableEntrySet.entryConsumer$java_util_function_Consumer(action)); +}); + +Clazz_newMeth(C$, ['forEachRemaining$java_util_function_Consumer'], function (action) { +$I$(6).requireNonNull$TT(action); +this.s.forEachRemaining$java_util_function_Consumer(P$.Collections.UnmodifiableMap.UnmodifiableEntrySet.entryConsumer$java_util_function_Consumer(action)); +}); + +Clazz_newMeth(C$, 'trySplit$', function () { +var split=this.s.trySplit$(); +return split == null ? null : Clazz_new_(C$.c$$java_util_Spliterator,[split]); +}); + +Clazz_newMeth(C$, 'estimateSize$', function () { +return this.s.estimateSize$(); +}); + +Clazz_newMeth(C$, 'getExactSizeIfKnown$', function () { +return this.s.getExactSizeIfKnown$(); +}); + +Clazz_newMeth(C$, 'characteristics$', function () { +return this.s.characteristics$(); +}); + +Clazz_newMeth(C$, 'hasCharacteristics$I', function (characteristics) { +return this.s.hasCharacteristics$I(characteristics); +}); + +Clazz_newMeth(C$, 'getComparator$', function () { +return this.s.getComparator$(); +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.Collections.UnmodifiableMap.UnmodifiableEntrySet, "UnmodifiableEntry", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, null, [['java.util.Map','java.util.Map.Entry']]); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.e=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$java_util_Map_Entry', function (e) { +C$.$init$.apply(this); +this.e=$I$(6).requireNonNull$TT(e); +}, 1); + +Clazz_newMeth(C$, 'getKey$', function () { +return this.e.getKey$(); +}); + +Clazz_newMeth(C$, 'getValue$', function () { +return this.e.getValue$(); +}); + +Clazz_newMeth(C$, ['setValue$TV'], function (value) { +throw Clazz_new_(Clazz_load('UnsupportedOperationException')); +}); + +Clazz_newMeth(C$, 'hashCode$', function () { +return this.e.hashCode$(); +}); + +Clazz_newMeth(C$, 'equals$O', function (o) { +if (this === o ) return true; +if (!(Clazz_instanceOf(o, "java.util.Map.Entry"))) return false; +var t=o; +return P$.Collections.eq$O$O(this.e.getKey$(), t.getKey$()) && P$.Collections.eq$O$O(this.e.getValue$(), t.getValue$()) ; +}); + +Clazz_newMeth(C$, 'toString', function () { +return this.e.toString(); +}); + +Clazz_newMeth(C$); +})() + +Clazz_newMeth(C$); +})() + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.Collections, "UnmodifiableSortedMap", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, ['java.util.Collections','.UnmodifiableMap'], ['java.util.SortedMap', 'java.io.Serializable']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.sm=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$java_util_SortedMap', function (m) { +C$.superclazz.c$$java_util_Map.apply(this, [m]); +C$.$init$.apply(this); +this.sm=m; +}, 1); + +Clazz_newMeth(C$, 'comparator$', function () { +return this.sm.comparator$(); +}); + +Clazz_newMeth(C$, ['subMap$TK$TK'], function (fromKey, toKey) { +return Clazz_new_(C$.c$$java_util_SortedMap,[this.sm.subMap$TK$TK(fromKey, toKey)]); +}); + +Clazz_newMeth(C$, ['headMap$TK'], function (toKey) { +return Clazz_new_(C$.c$$java_util_SortedMap,[this.sm.headMap$TK(toKey)]); +}); + +Clazz_newMeth(C$, ['tailMap$TK'], function (fromKey) { +return Clazz_new_(C$.c$$java_util_SortedMap,[this.sm.tailMap$TK(fromKey)]); +}); + +Clazz_newMeth(C$, 'firstKey$', function () { +return this.sm.firstKey$(); +}); + +Clazz_newMeth(C$, 'lastKey$', function () { +return this.sm.lastKey$(); +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.Collections, "UnmodifiableNavigableMap", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, ['java.util.Collections','.UnmodifiableSortedMap'], ['java.util.NavigableMap', 'java.io.Serializable']); +C$.EMPTY_NAVIGABLE_MAP=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.EMPTY_NAVIGABLE_MAP=Clazz_new_($I$(14)); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.nm=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$java_util_NavigableMap', function (m) { +C$.superclazz.c$$java_util_SortedMap.apply(this, [m]); +C$.$init$.apply(this); +this.nm=m; +}, 1); + +Clazz_newMeth(C$, ['lowerKey$TK'], function (key) { +return this.nm.lowerKey$TK(key); +}); + +Clazz_newMeth(C$, ['floorKey$TK'], function (key) { +return this.nm.floorKey$TK(key); +}); + +Clazz_newMeth(C$, ['ceilingKey$TK'], function (key) { +return this.nm.ceilingKey$TK(key); +}); + +Clazz_newMeth(C$, ['higherKey$TK'], function (key) { +return this.nm.higherKey$TK(key); +}); + +Clazz_newMeth(C$, ['lowerEntry$TK'], function (key) { +var lower=this.nm.lowerEntry$TK(key); +return (null != lower ) ? Clazz_new_($I$(7).c$$java_util_Map_Entry,[lower]) : null; +}); + +Clazz_newMeth(C$, ['floorEntry$TK'], function (key) { +var floor=this.nm.floorEntry$TK(key); +return (null != floor ) ? Clazz_new_($I$(7).c$$java_util_Map_Entry,[floor]) : null; +}); + +Clazz_newMeth(C$, ['ceilingEntry$TK'], function (key) { +var ceiling=this.nm.ceilingEntry$TK(key); +return (null != ceiling ) ? Clazz_new_($I$(7).c$$java_util_Map_Entry,[ceiling]) : null; +}); + +Clazz_newMeth(C$, ['higherEntry$TK'], function (key) { +var higher=this.nm.higherEntry$TK(key); +return (null != higher ) ? Clazz_new_($I$(7).c$$java_util_Map_Entry,[higher]) : null; +}); + +Clazz_newMeth(C$, 'firstEntry$', function () { +var first=this.nm.firstEntry$(); +return (null != first ) ? Clazz_new_($I$(7).c$$java_util_Map_Entry,[first]) : null; +}); + +Clazz_newMeth(C$, 'lastEntry$', function () { +var last=this.nm.lastEntry$(); +return (null != last ) ? Clazz_new_($I$(7).c$$java_util_Map_Entry,[last]) : null; +}); + +Clazz_newMeth(C$, 'pollFirstEntry$', function () { +throw Clazz_new_(Clazz_load('UnsupportedOperationException')); +}); + +Clazz_newMeth(C$, 'pollLastEntry$', function () { +throw Clazz_new_(Clazz_load('UnsupportedOperationException')); +}); + +Clazz_newMeth(C$, 'descendingMap$', function () { +return P$.Collections.unmodifiableNavigableMap$java_util_NavigableMap(this.nm.descendingMap$()); +}); + +Clazz_newMeth(C$, 'navigableKeySet$', function () { +return P$.Collections.unmodifiableNavigableSet$java_util_NavigableSet(this.nm.navigableKeySet$()); +}); + +Clazz_newMeth(C$, 'descendingKeySet$', function () { +return P$.Collections.unmodifiableNavigableSet$java_util_NavigableSet(this.nm.descendingKeySet$()); +}); + +Clazz_newMeth(C$, ['subMap$TK$Z$TK$Z'], function (fromKey, fromInclusive, toKey, toInclusive) { +return P$.Collections.unmodifiableNavigableMap$java_util_NavigableMap(this.nm.subMap$TK$Z$TK$Z(fromKey, fromInclusive, toKey, toInclusive)); +}); + +Clazz_newMeth(C$, ['headMap$TK$Z'], function (toKey, inclusive) { +return P$.Collections.unmodifiableNavigableMap$java_util_NavigableMap(this.nm.headMap$TK$Z(toKey, inclusive)); +}); + +Clazz_newMeth(C$, ['tailMap$TK$Z'], function (fromKey, inclusive) { +return P$.Collections.unmodifiableNavigableMap$java_util_NavigableMap(this.nm.tailMap$TK$Z(fromKey, inclusive)); +}); +; +(function(){var C$=Clazz_newClass(P$.Collections.UnmodifiableNavigableMap, "EmptyNavigableMap", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, ['java.util.Collections','.UnmodifiableNavigableMap'], 'java.io.Serializable'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.superclazz.c$$java_util_NavigableMap.apply(this, [Clazz_new_($I$(12))]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'navigableKeySet$', function () { +return P$.Collections.emptyNavigableSet$(); +}); + +Clazz_newMeth(C$, 'readResolve', function () { +return $I$(13).EMPTY_NAVIGABLE_MAP; +}, p$4); +})() + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.Collections, "SynchronizedCollection", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, null, ['java.util.Collection', 'java.io.Serializable']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.c=null; +this.mutex=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$java_util_Collection', function (c) { +C$.$init$.apply(this); +this.c=$I$(6).requireNonNull$TT(c); +this.mutex=this; +}, 1); + +Clazz_newMeth(C$, 'c$$java_util_Collection$O', function (c, mutex) { +C$.$init$.apply(this); +this.c=$I$(6).requireNonNull$TT(c); +this.mutex=$I$(6).requireNonNull$TT(mutex); +}, 1); + +Clazz_newMeth(C$, 'size$', function () { +{ +return this.c.size$(); +}}); + +Clazz_newMeth(C$, 'isEmpty$', function () { +{ +return this.c.isEmpty$(); +}}); + +Clazz_newMeth(C$, 'contains$O', function (o) { +{ +return this.c.contains$O(o); +}}); + +Clazz_newMeth(C$, 'toArray$', function () { +{ +return this.c.toArray$(); +}}); + +Clazz_newMeth(C$, 'toArray$TTA', function (a) { +{ +return this.c.toArray$TTA(a); +}}); + +Clazz_newMeth(C$, 'iterator$', function () { +return this.c.iterator$(); +}); + +Clazz_newMeth(C$, ['add$TE'], function (e) { +{ +return this.c.add$TE(e); +}}); + +Clazz_newMeth(C$, 'remove$O', function (o) { +{ +return this.c.remove$O(o); +}}); + +Clazz_newMeth(C$, 'containsAll$java_util_Collection', function (coll) { +{ +return this.c.containsAll$java_util_Collection(coll); +}}); + +Clazz_newMeth(C$, 'addAll$java_util_Collection', function (coll) { +{ +return this.c.addAll$java_util_Collection(coll); +}}); + +Clazz_newMeth(C$, 'removeAll$java_util_Collection', function (coll) { +{ +return this.c.removeAll$java_util_Collection(coll); +}}); + +Clazz_newMeth(C$, 'retainAll$java_util_Collection', function (coll) { +{ +return this.c.retainAll$java_util_Collection(coll); +}}); + +Clazz_newMeth(C$, 'clear$', function () { +{ +this.c.clear$(); +}}); + +Clazz_newMeth(C$, 'toString', function () { +{ +return this.c.toString(); +}}); + +Clazz_newMeth(C$, 'forEach$java_util_function_Consumer', function (consumer) { +{ +this.c.forEach$java_util_function_Consumer(consumer); +}}); + +Clazz_newMeth(C$, 'removeIf$java_util_function_Predicate', function (filter) { +{ +return this.c.removeIf$java_util_function_Predicate(filter); +}}); + +Clazz_newMeth(C$, 'spliterator$', function () { +return this.c.spliterator$(); +}); + +Clazz_newMeth(C$, 'stream$', function () { +return this.c.stream$(); +}); + +Clazz_newMeth(C$, 'parallelStream$', function () { +return this.c.parallelStream$(); +}); + +Clazz_newMeth(C$, 'writeObject$java_io_ObjectOutputStream', function (s) { +{ +s.defaultWriteObject$(); +}}, p$5); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.Collections, "SynchronizedSet", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, ['java.util.Collections','.SynchronizedCollection'], 'java.util.Set'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$java_util_Set', function (s) { +C$.superclazz.c$$java_util_Collection.apply(this, [s]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'c$$java_util_Set$O', function (s, mutex) { +C$.superclazz.c$$java_util_Collection$O.apply(this, [s, mutex]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'equals$O', function (o) { +if (this === o ) return true; +{ +return this.c.equals$O(o); +}}); + +Clazz_newMeth(C$, 'hashCode$', function () { +{ +return this.c.hashCode$(); +}}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.Collections, "SynchronizedSortedSet", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, ['java.util.Collections','.SynchronizedSet'], 'java.util.SortedSet'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.ss=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$java_util_SortedSet', function (s) { +C$.superclazz.c$$java_util_Set.apply(this, [s]); +C$.$init$.apply(this); +this.ss=s; +}, 1); + +Clazz_newMeth(C$, 'c$$java_util_SortedSet$O', function (s, mutex) { +C$.superclazz.c$$java_util_Set$O.apply(this, [s, mutex]); +C$.$init$.apply(this); +this.ss=s; +}, 1); + +Clazz_newMeth(C$, 'comparator$', function () { +{ +return this.ss.comparator$(); +}}); + +Clazz_newMeth(C$, ['subSet$TE$TE'], function (fromElement, toElement) { +{ +return Clazz_new_(C$.c$$java_util_SortedSet$O,[this.ss.subSet$TE$TE(fromElement, toElement), this.mutex]); +}}); + +Clazz_newMeth(C$, ['headSet$TE'], function (toElement) { +{ +return Clazz_new_(C$.c$$java_util_SortedSet$O,[this.ss.headSet$TE(toElement), this.mutex]); +}}); + +Clazz_newMeth(C$, ['tailSet$TE'], function (fromElement) { +{ +return Clazz_new_(C$.c$$java_util_SortedSet$O,[this.ss.tailSet$TE(fromElement), this.mutex]); +}}); + +Clazz_newMeth(C$, 'first$', function () { +{ +return this.ss.first$(); +}}); + +Clazz_newMeth(C$, 'last$', function () { +{ +return this.ss.last$(); +}}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.Collections, "SynchronizedNavigableSet", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, ['java.util.Collections','.SynchronizedSortedSet'], 'java.util.NavigableSet'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.ns=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$java_util_NavigableSet', function (s) { +C$.superclazz.c$$java_util_SortedSet.apply(this, [s]); +C$.$init$.apply(this); +this.ns=s; +}, 1); + +Clazz_newMeth(C$, 'c$$java_util_NavigableSet$O', function (s, mutex) { +C$.superclazz.c$$java_util_SortedSet$O.apply(this, [s, mutex]); +C$.$init$.apply(this); +this.ns=s; +}, 1); + +Clazz_newMeth(C$, ['lower$TE'], function (e) { +{ +return this.ns.lower$TE(e); +}}); + +Clazz_newMeth(C$, ['floor$TE'], function (e) { +{ +return this.ns.floor$TE(e); +}}); + +Clazz_newMeth(C$, ['ceiling$TE'], function (e) { +{ +return this.ns.ceiling$TE(e); +}}); + +Clazz_newMeth(C$, ['higher$TE'], function (e) { +{ +return this.ns.higher$TE(e); +}}); + +Clazz_newMeth(C$, 'pollFirst$', function () { +{ +return this.ns.pollFirst$(); +}}); + +Clazz_newMeth(C$, 'pollLast$', function () { +{ +return this.ns.pollLast$(); +}}); + +Clazz_newMeth(C$, 'descendingSet$', function () { +{ +return Clazz_new_(C$.c$$java_util_NavigableSet$O,[this.ns.descendingSet$(), this.mutex]); +}}); + +Clazz_newMeth(C$, 'descendingIterator$', function () { +{ +return this.descendingSet$().iterator$(); +}}); + +Clazz_newMeth(C$, ['subSet$TE$TE'], function (fromElement, toElement) { +{ +return Clazz_new_(C$.c$$java_util_NavigableSet$O,[this.ns.subSet$TE$Z$TE$Z(fromElement, true, toElement, false), this.mutex]); +}}); + +Clazz_newMeth(C$, ['headSet$TE'], function (toElement) { +{ +return Clazz_new_(C$.c$$java_util_NavigableSet$O,[this.ns.headSet$TE$Z(toElement, false), this.mutex]); +}}); + +Clazz_newMeth(C$, ['tailSet$TE'], function (fromElement) { +{ +return Clazz_new_(C$.c$$java_util_NavigableSet$O,[this.ns.tailSet$TE$Z(fromElement, true), this.mutex]); +}}); + +Clazz_newMeth(C$, ['subSet$TE$Z$TE$Z'], function (fromElement, fromInclusive, toElement, toInclusive) { +{ +return Clazz_new_(C$.c$$java_util_NavigableSet$O,[this.ns.subSet$TE$Z$TE$Z(fromElement, fromInclusive, toElement, toInclusive), this.mutex]); +}}); + +Clazz_newMeth(C$, ['headSet$TE$Z'], function (toElement, inclusive) { +{ +return Clazz_new_(C$.c$$java_util_NavigableSet$O,[this.ns.headSet$TE$Z(toElement, inclusive), this.mutex]); +}}); + +Clazz_newMeth(C$, ['tailSet$TE$Z'], function (fromElement, inclusive) { +{ +return Clazz_new_(C$.c$$java_util_NavigableSet$O,[this.ns.tailSet$TE$Z(fromElement, inclusive), this.mutex]); +}}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.Collections, "SynchronizedList", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, ['java.util.Collections','.SynchronizedCollection'], 'java.util.List'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.list=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$java_util_List', function (list) { +C$.superclazz.c$$java_util_Collection.apply(this, [list]); +C$.$init$.apply(this); +this.list=list; +}, 1); + +Clazz_newMeth(C$, 'c$$java_util_List$O', function (list, mutex) { +C$.superclazz.c$$java_util_Collection$O.apply(this, [list, mutex]); +C$.$init$.apply(this); +this.list=list; +}, 1); + +Clazz_newMeth(C$, 'equals$O', function (o) { +if (this === o ) return true; +{ +return this.list.equals$O(o); +}}); + +Clazz_newMeth(C$, 'hashCode$', function () { +{ +return this.list.hashCode$(); +}}); + +Clazz_newMeth(C$, 'get$I', function (index) { +{ +return this.list.get$I(index); +}}); + +Clazz_newMeth(C$, 'set$I$TE', function (index, element) { +{ +return this.list.set$I$TE(index, element); +}}); + +Clazz_newMeth(C$, 'add$I$TE', function (index, element) { +{ +this.list.add$I$TE(index, element); +}}); + +Clazz_newMeth(C$, 'remove$I', function (index) { +{ +return this.list.remove$I(index); +}}); + +Clazz_newMeth(C$, 'indexOf$O', function (o) { +{ +return this.list.indexOf$O(o); +}}); + +Clazz_newMeth(C$, 'lastIndexOf$O', function (o) { +{ +return this.list.lastIndexOf$O(o); +}}); + +Clazz_newMeth(C$, 'addAll$I$java_util_Collection', function (index, c) { +{ +return this.list.addAll$I$java_util_Collection(index, c); +}}); + +Clazz_newMeth(C$, 'listIterator$', function () { +return this.list.listIterator$(); +}); + +Clazz_newMeth(C$, 'listIterator$I', function (index) { +return this.list.listIterator$I(index); +}); + +Clazz_newMeth(C$, 'subList$I$I', function (fromIndex, toIndex) { +{ +return Clazz_new_(C$.c$$java_util_List$O,[this.list.subList$I$I(fromIndex, toIndex), this.mutex]); +}}); + +Clazz_newMeth(C$, 'replaceAll$java_util_function_UnaryOperator', function (operator) { +{ +this.list.replaceAll$java_util_function_UnaryOperator(operator); +}}); + +Clazz_newMeth(C$, 'sort$java_util_Comparator', function (c) { +{ +this.list.sort$java_util_Comparator(c); +}}); + +Clazz_newMeth(C$, 'readResolve', function () { +return (Clazz_instanceOf(this.list, "java.util.RandomAccess") ? Clazz_new_($I$(15).c$$java_util_List,[this.list]) : this); +}, p$6); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.Collections, "SynchronizedRandomAccessList", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, ['java.util.Collections','.SynchronizedList'], 'java.util.RandomAccess'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$java_util_List', function (list) { +C$.superclazz.c$$java_util_List.apply(this, [list]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'c$$java_util_List$O', function (list, mutex) { +C$.superclazz.c$$java_util_List$O.apply(this, [list, mutex]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'subList$I$I', function (fromIndex, toIndex) { +{ +return Clazz_new_(C$.c$$java_util_List$O,[this.list.subList$I$I(fromIndex, toIndex), this.mutex]); +}}); + +Clazz_newMeth(C$, 'writeReplace', function () { +return Clazz_new_($I$(16).c$$java_util_List,[this.list]); +}, p$7); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.Collections, "SynchronizedMap", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, null, ['java.util.Map', 'java.io.Serializable']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.m=null; +this.mutex=null; +this.keySet=null; +this.entrySet=null; +this.values=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, ['c$$java_util_Map'], function (m) { +C$.$init$.apply(this); +this.m=$I$(6).requireNonNull$TT(m); +this.mutex=this; +}, 1); + +Clazz_newMeth(C$, ['c$$java_util_Map$O'], function (m, mutex) { +C$.$init$.apply(this); +this.m=m; +this.mutex=mutex; +}, 1); + +Clazz_newMeth(C$, 'size$', function () { +{ +return this.m.size$(); +}}); + +Clazz_newMeth(C$, 'isEmpty$', function () { +{ +return this.m.isEmpty$(); +}}); + +Clazz_newMeth(C$, 'containsKey$O', function (key) { +{ +return this.m.containsKey$O(key); +}}); + +Clazz_newMeth(C$, 'containsValue$O', function (value) { +{ +return this.m.containsValue$O(value); +}}); + +Clazz_newMeth(C$, 'get$O', function (key) { +{ +return this.m.get$O(key); +}}); + +Clazz_newMeth(C$, ['put$TK$TV'], function (key, value) { +{ +return this.m.put$TK$TV(key, value); +}}); + +Clazz_newMeth(C$, 'remove$O', function (key) { +{ +return this.m.remove$O(key); +}}); + +Clazz_newMeth(C$, 'putAll$java_util_Map', function (map) { +{ +this.m.putAll$java_util_Map(map); +}}); + +Clazz_newMeth(C$, 'clear$', function () { +{ +this.m.clear$(); +}}); + +Clazz_newMeth(C$, 'keySet$', function () { +{ +if (this.keySet == null ) this.keySet=Clazz_new_($I$(17).c$$java_util_Set$O,[this.m.keySet$(), this.mutex]); +return this.keySet; +}}); + +Clazz_newMeth(C$, 'entrySet$', function () { +{ +if (this.entrySet == null ) this.entrySet=Clazz_new_($I$(17).c$$java_util_Set$O,[this.m.entrySet$(), this.mutex]); +return this.entrySet; +}}); + +Clazz_newMeth(C$, 'values$', function () { +{ +if (this.values == null ) this.values=Clazz_new_($I$(18).c$$java_util_Collection$O,[this.m.values$(), this.mutex]); +return this.values; +}}); + +Clazz_newMeth(C$, 'equals$O', function (o) { +if (this === o ) return true; +{ +return this.m.equals$O(o); +}}); + +Clazz_newMeth(C$, 'hashCode$', function () { +{ +return this.m.hashCode$(); +}}); + +Clazz_newMeth(C$, 'toString', function () { +{ +return this.m.toString(); +}}); + +Clazz_newMeth(C$, ['getOrDefault$O$TV'], function (k, defaultValue) { +{ +return this.m.getOrDefault$O$TV(k, defaultValue); +}}); + +Clazz_newMeth(C$, 'forEach$java_util_function_BiConsumer', function (action) { +{ +this.m.forEach$java_util_function_BiConsumer(action); +}}); + +Clazz_newMeth(C$, 'replaceAll$java_util_function_BiFunction', function ($function) { +{ +this.m.replaceAll$java_util_function_BiFunction($function); +}}); + +Clazz_newMeth(C$, ['putIfAbsent$TK$TV'], function (key, value) { +{ +return this.m.putIfAbsent$TK$TV(key, value); +}}); + +Clazz_newMeth(C$, 'remove$O$O', function (key, value) { +{ +return this.m.remove$O$O(key, value); +}}); + +Clazz_newMeth(C$, ['replace$TK$TV$TV'], function (key, oldValue, newValue) { +{ +return this.m.replace$TK$TV$TV(key, oldValue, newValue); +}}); + +Clazz_newMeth(C$, ['replace$TK$TV'], function (key, value) { +{ +return this.m.replace$TK$TV(key, value); +}}); + +Clazz_newMeth(C$, ['computeIfAbsent$TK$java_util_function_Function'], function (key, mappingFunction) { +{ +return this.m.computeIfAbsent$TK$java_util_function_Function(key, mappingFunction); +}}); + +Clazz_newMeth(C$, ['computeIfPresent$TK$java_util_function_BiFunction'], function (key, remappingFunction) { +{ +return this.m.computeIfPresent$TK$java_util_function_BiFunction(key, remappingFunction); +}}); + +Clazz_newMeth(C$, ['compute$TK$java_util_function_BiFunction'], function (key, remappingFunction) { +{ +return this.m.compute$TK$java_util_function_BiFunction(key, remappingFunction); +}}); + +Clazz_newMeth(C$, ['merge$TK$TV$java_util_function_BiFunction'], function (key, value, remappingFunction) { +{ +return this.m.merge$TK$TV$java_util_function_BiFunction(key, value, remappingFunction); +}}); + +Clazz_newMeth(C$, 'writeObject$java_io_ObjectOutputStream', function (s) { +{ +s.defaultWriteObject$(); +}}, p$8); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.Collections, "SynchronizedSortedMap", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, ['java.util.Collections','.SynchronizedMap'], 'java.util.SortedMap'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.sm=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, ['c$$java_util_SortedMap'], function (m) { +C$.superclazz.c$$java_util_Map.apply(this, [m]); +C$.$init$.apply(this); +this.sm=m; +}, 1); + +Clazz_newMeth(C$, ['c$$java_util_SortedMap$O'], function (m, mutex) { +C$.superclazz.c$$java_util_Map$O.apply(this, [m, mutex]); +C$.$init$.apply(this); +this.sm=m; +}, 1); + +Clazz_newMeth(C$, 'comparator$', function () { +{ +return this.sm.comparator$(); +}}); + +Clazz_newMeth(C$, ['subMap$TK$TK'], function (fromKey, toKey) { +{ +return Clazz_new_(C$.c$$java_util_SortedMap$O,[this.sm.subMap$TK$TK(fromKey, toKey), this.mutex]); +}}); + +Clazz_newMeth(C$, ['headMap$TK'], function (toKey) { +{ +return Clazz_new_(C$.c$$java_util_SortedMap$O,[this.sm.headMap$TK(toKey), this.mutex]); +}}); + +Clazz_newMeth(C$, ['tailMap$TK'], function (fromKey) { +{ +return Clazz_new_(C$.c$$java_util_SortedMap$O,[this.sm.tailMap$TK(fromKey), this.mutex]); +}}); + +Clazz_newMeth(C$, 'firstKey$', function () { +{ +return this.sm.firstKey$(); +}}); + +Clazz_newMeth(C$, 'lastKey$', function () { +{ +return this.sm.lastKey$(); +}}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.Collections, "SynchronizedNavigableMap", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, ['java.util.Collections','.SynchronizedSortedMap'], 'java.util.NavigableMap'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.nm=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, ['c$$java_util_NavigableMap'], function (m) { +C$.superclazz.c$$java_util_SortedMap.apply(this, [m]); +C$.$init$.apply(this); +this.nm=m; +}, 1); + +Clazz_newMeth(C$, ['c$$java_util_NavigableMap$O'], function (m, mutex) { +C$.superclazz.c$$java_util_SortedMap$O.apply(this, [m, mutex]); +C$.$init$.apply(this); +this.nm=m; +}, 1); + +Clazz_newMeth(C$, ['lowerEntry$TK'], function (key) { +{ +return this.nm.lowerEntry$TK(key); +}}); + +Clazz_newMeth(C$, ['lowerKey$TK'], function (key) { +{ +return this.nm.lowerKey$TK(key); +}}); + +Clazz_newMeth(C$, ['floorEntry$TK'], function (key) { +{ +return this.nm.floorEntry$TK(key); +}}); + +Clazz_newMeth(C$, ['floorKey$TK'], function (key) { +{ +return this.nm.floorKey$TK(key); +}}); + +Clazz_newMeth(C$, ['ceilingEntry$TK'], function (key) { +{ +return this.nm.ceilingEntry$TK(key); +}}); + +Clazz_newMeth(C$, ['ceilingKey$TK'], function (key) { +{ +return this.nm.ceilingKey$TK(key); +}}); + +Clazz_newMeth(C$, ['higherEntry$TK'], function (key) { +{ +return this.nm.higherEntry$TK(key); +}}); + +Clazz_newMeth(C$, ['higherKey$TK'], function (key) { +{ +return this.nm.higherKey$TK(key); +}}); + +Clazz_newMeth(C$, 'firstEntry$', function () { +{ +return this.nm.firstEntry$(); +}}); + +Clazz_newMeth(C$, 'lastEntry$', function () { +{ +return this.nm.lastEntry$(); +}}); + +Clazz_newMeth(C$, 'pollFirstEntry$', function () { +{ +return this.nm.pollFirstEntry$(); +}}); + +Clazz_newMeth(C$, 'pollLastEntry$', function () { +{ +return this.nm.pollLastEntry$(); +}}); + +Clazz_newMeth(C$, 'descendingMap$', function () { +{ +return Clazz_new_(C$.c$$java_util_NavigableMap$O,[this.nm.descendingMap$(), this.mutex]); +}}); + +Clazz_newMeth(C$, 'keySet$', function () { +return this.navigableKeySet$(); +}); + +Clazz_newMeth(C$, 'navigableKeySet$', function () { +{ +return Clazz_new_($I$(19).c$$java_util_NavigableSet$O,[this.nm.navigableKeySet$(), this.mutex]); +}}); + +Clazz_newMeth(C$, 'descendingKeySet$', function () { +{ +return Clazz_new_($I$(19).c$$java_util_NavigableSet$O,[this.nm.descendingKeySet$(), this.mutex]); +}}); + +Clazz_newMeth(C$, ['subMap$TK$TK'], function (fromKey, toKey) { +{ +return Clazz_new_(C$.c$$java_util_NavigableMap$O,[this.nm.subMap$TK$Z$TK$Z(fromKey, true, toKey, false), this.mutex]); +}}); + +Clazz_newMeth(C$, ['headMap$TK'], function (toKey) { +{ +return Clazz_new_(C$.c$$java_util_NavigableMap$O,[this.nm.headMap$TK$Z(toKey, false), this.mutex]); +}}); + +Clazz_newMeth(C$, ['tailMap$TK'], function (fromKey) { +{ +return Clazz_new_(C$.c$$java_util_NavigableMap$O,[this.nm.tailMap$TK$Z(fromKey, true), this.mutex]); +}}); + +Clazz_newMeth(C$, ['subMap$TK$Z$TK$Z'], function (fromKey, fromInclusive, toKey, toInclusive) { +{ +return Clazz_new_(C$.c$$java_util_NavigableMap$O,[this.nm.subMap$TK$Z$TK$Z(fromKey, fromInclusive, toKey, toInclusive), this.mutex]); +}}); + +Clazz_newMeth(C$, ['headMap$TK$Z'], function (toKey, inclusive) { +{ +return Clazz_new_(C$.c$$java_util_NavigableMap$O,[this.nm.headMap$TK$Z(toKey, inclusive), this.mutex]); +}}); + +Clazz_newMeth(C$, ['tailMap$TK$Z'], function (fromKey, inclusive) { +{ +return Clazz_new_(C$.c$$java_util_NavigableMap$O,[this.nm.tailMap$TK$Z(fromKey, inclusive), this.mutex]); +}}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.Collections, "CheckedCollection", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, null, ['java.util.Collection', 'java.io.Serializable']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.c=null; +this.type=null; +this.zeroLengthElementArray=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'typeCheck$O', function (o) { +if (o != null && !this.type.isInstance$O(o) ) throw Clazz_new_(Clazz_load('ClassCastException').c$$S,[p$9.badElementMsg$O.apply(this, [o])]); +return o; +}); + +Clazz_newMeth(C$, 'badElementMsg$O', function (o) { +return "Attempt to insert " + o.getClass$() + " element into collection with element type " + this.type ; +}, p$9); + +Clazz_newMeth(C$, 'c$$java_util_Collection$Class', function (c, type) { +C$.$init$.apply(this); +this.c=$I$(6).requireNonNull$TT$S(c, "c"); +this.type=$I$(6).requireNonNull$TT$S(type, "type"); +}, 1); + +Clazz_newMeth(C$, 'size$', function () { +return this.c.size$(); +}); + +Clazz_newMeth(C$, 'isEmpty$', function () { +return this.c.isEmpty$(); +}); + +Clazz_newMeth(C$, 'contains$O', function (o) { +return this.c.contains$O(o); +}); + +Clazz_newMeth(C$, 'toArray$', function () { +return this.c.toArray$(); +}); + +Clazz_newMeth(C$, 'toArray$TTA', function (a) { +return this.c.toArray$TTA(a); +}); + +Clazz_newMeth(C$, 'toString', function () { +return this.c.toString(); +}); + +Clazz_newMeth(C$, 'remove$O', function (o) { +return this.c.remove$O(o); +}); + +Clazz_newMeth(C$, 'clear$', function () { +this.c.clear$(); +}); + +Clazz_newMeth(C$, 'containsAll$java_util_Collection', function (coll) { +return this.c.containsAll$java_util_Collection(coll); +}); + +Clazz_newMeth(C$, 'removeAll$java_util_Collection', function (coll) { +return this.c.removeAll$java_util_Collection(coll); +}); + +Clazz_newMeth(C$, 'retainAll$java_util_Collection', function (coll) { +return this.c.retainAll$java_util_Collection(coll); +}); + +Clazz_newMeth(C$, 'iterator$', function () { +var it=this.c.iterator$(); +return ((P$.Collections$CheckedCollection$1|| +(function(){var C$=Clazz_newClass(P$, "Collections$CheckedCollection$1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'java.util.Iterator', 1); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'hasNext$', function () { +return this.$finals$.it.hasNext$(); +}); + +Clazz_newMeth(C$, 'next$', function () { +return this.$finals$.it.next$(); +}); + +Clazz_newMeth(C$, 'remove$', function () { +this.$finals$.it.remove$(); +}); +})() +), Clazz_new_(P$.Collections$CheckedCollection$1.$init$, [this, {it: it}])); +}); + +Clazz_newMeth(C$, ['add$TE'], function (e) { +return this.c.add$TE(this.typeCheck$O(e)); +}); + +Clazz_newMeth(C$, 'zeroLengthElementArray', function () { +return this.zeroLengthElementArray != null ? this.zeroLengthElementArray : (this.zeroLengthElementArray=P$.Collections.zeroLengthArray$Class(this.type)); +}, p$9); + +Clazz_newMeth(C$, 'checkedCopyOf$java_util_Collection', function (coll) { +var a; +try { +var z=p$9.zeroLengthElementArray.apply(this, []); +a=coll.toArray$TTA(z); +if (a.getClass$() !== z.getClass$() ) a=$I$(10).copyOf$TUA$I$Class(a, a.length, z.getClass$()); +} catch (ignore) { +if (Clazz_exceptionOf(ignore,"ArrayStoreException")){ +a=coll.toArray$().clone$(); +for (var o, $o = 0, $$o = a; $o<$$o.length&&((o=($$o[$o])),1);$o++) this.typeCheck$O(o); + +} else { +throw ignore; +} +} +return $I$(10).asList$TTA(a); +}); + +Clazz_newMeth(C$, 'addAll$java_util_Collection', function (coll) { +return this.c.addAll$java_util_Collection(this.checkedCopyOf$java_util_Collection(coll)); +}); + +Clazz_newMeth(C$, 'forEach$java_util_function_Consumer', function (action) { +this.c.forEach$java_util_function_Consumer(action); +}); + +Clazz_newMeth(C$, 'removeIf$java_util_function_Predicate', function (filter) { +return this.c.removeIf$java_util_function_Predicate(filter); +}); + +Clazz_newMeth(C$, 'spliterator$', function () { +return this.c.spliterator$(); +}); + +Clazz_newMeth(C$, 'stream$', function () { +return this.c.stream$(); +}); + +Clazz_newMeth(C$, 'parallelStream$', function () { +return this.c.parallelStream$(); +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.Collections, "CheckedQueue", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, ['java.util.Collections','.CheckedCollection'], ['java.util.Queue', 'java.io.Serializable']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.queue=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$java_util_Queue$Class', function (queue, elementType) { +C$.superclazz.c$$java_util_Collection$Class.apply(this, [queue, elementType]); +C$.$init$.apply(this); +this.queue=queue; +}, 1); + +Clazz_newMeth(C$, 'element$', function () { +return this.queue.element$(); +}); + +Clazz_newMeth(C$, 'equals$O', function (o) { +return o === this || this.c.equals$O(o) ; +}); + +Clazz_newMeth(C$, 'hashCode$', function () { +return this.c.hashCode$(); +}); + +Clazz_newMeth(C$, 'peek$', function () { +return this.queue.peek$(); +}); + +Clazz_newMeth(C$, 'poll$', function () { +return this.queue.poll$(); +}); + +Clazz_newMeth(C$, 'remove$', function () { +return this.queue.remove$(); +}); + +Clazz_newMeth(C$, ['offer$TE'], function (e) { +return this.queue.offer$TE(this.typeCheck$O(e)); +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.Collections, "CheckedSet", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, ['java.util.Collections','.CheckedCollection'], ['java.util.Set', 'java.io.Serializable']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$java_util_Set$Class', function (s, elementType) { +C$.superclazz.c$$java_util_Collection$Class.apply(this, [s, elementType]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'equals$O', function (o) { +return o === this || this.c.equals$O(o) ; +}); + +Clazz_newMeth(C$, 'hashCode$', function () { +return this.c.hashCode$(); +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.Collections, "CheckedSortedSet", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, ['java.util.Collections','.CheckedSet'], ['java.util.SortedSet', 'java.io.Serializable']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.ss=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$java_util_SortedSet$Class', function (s, type) { +C$.superclazz.c$$java_util_Set$Class.apply(this, [s, type]); +C$.$init$.apply(this); +this.ss=s; +}, 1); + +Clazz_newMeth(C$, 'comparator$', function () { +return this.ss.comparator$(); +}); + +Clazz_newMeth(C$, 'first$', function () { +return this.ss.first$(); +}); + +Clazz_newMeth(C$, 'last$', function () { +return this.ss.last$(); +}); + +Clazz_newMeth(C$, ['subSet$TE$TE'], function (fromElement, toElement) { +return P$.Collections.checkedSortedSet$java_util_SortedSet$Class(this.ss.subSet$TE$TE(fromElement, toElement), this.type); +}); + +Clazz_newMeth(C$, ['headSet$TE'], function (toElement) { +return P$.Collections.checkedSortedSet$java_util_SortedSet$Class(this.ss.headSet$TE(toElement), this.type); +}); + +Clazz_newMeth(C$, ['tailSet$TE'], function (fromElement) { +return P$.Collections.checkedSortedSet$java_util_SortedSet$Class(this.ss.tailSet$TE(fromElement), this.type); +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.Collections, "CheckedNavigableSet", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, ['java.util.Collections','.CheckedSortedSet'], ['java.util.NavigableSet', 'java.io.Serializable']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.ns=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$java_util_NavigableSet$Class', function (s, type) { +C$.superclazz.c$$java_util_SortedSet$Class.apply(this, [s, type]); +C$.$init$.apply(this); +this.ns=s; +}, 1); + +Clazz_newMeth(C$, ['lower$TE'], function (e) { +return this.ns.lower$TE(e); +}); + +Clazz_newMeth(C$, ['floor$TE'], function (e) { +return this.ns.floor$TE(e); +}); + +Clazz_newMeth(C$, ['ceiling$TE'], function (e) { +return this.ns.ceiling$TE(e); +}); + +Clazz_newMeth(C$, ['higher$TE'], function (e) { +return this.ns.higher$TE(e); +}); + +Clazz_newMeth(C$, 'pollFirst$', function () { +return this.ns.pollFirst$(); +}); + +Clazz_newMeth(C$, 'pollLast$', function () { +return this.ns.pollLast$(); +}); + +Clazz_newMeth(C$, 'descendingSet$', function () { +return P$.Collections.checkedNavigableSet$java_util_NavigableSet$Class(this.ns.descendingSet$(), this.type); +}); + +Clazz_newMeth(C$, 'descendingIterator$', function () { +return P$.Collections.checkedNavigableSet$java_util_NavigableSet$Class(this.ns.descendingSet$(), this.type).iterator$(); +}); + +Clazz_newMeth(C$, ['subSet$TE$TE'], function (fromElement, toElement) { +return P$.Collections.checkedNavigableSet$java_util_NavigableSet$Class(this.ns.subSet$TE$Z$TE$Z(fromElement, true, toElement, false), this.type); +}); + +Clazz_newMeth(C$, ['headSet$TE'], function (toElement) { +return P$.Collections.checkedNavigableSet$java_util_NavigableSet$Class(this.ns.headSet$TE$Z(toElement, false), this.type); +}); + +Clazz_newMeth(C$, ['tailSet$TE'], function (fromElement) { +return P$.Collections.checkedNavigableSet$java_util_NavigableSet$Class(this.ns.tailSet$TE$Z(fromElement, true), this.type); +}); + +Clazz_newMeth(C$, ['subSet$TE$Z$TE$Z'], function (fromElement, fromInclusive, toElement, toInclusive) { +return P$.Collections.checkedNavigableSet$java_util_NavigableSet$Class(this.ns.subSet$TE$Z$TE$Z(fromElement, fromInclusive, toElement, toInclusive), this.type); +}); + +Clazz_newMeth(C$, ['headSet$TE$Z'], function (toElement, inclusive) { +return P$.Collections.checkedNavigableSet$java_util_NavigableSet$Class(this.ns.headSet$TE$Z(toElement, inclusive), this.type); +}); + +Clazz_newMeth(C$, ['tailSet$TE$Z'], function (fromElement, inclusive) { +return P$.Collections.checkedNavigableSet$java_util_NavigableSet$Class(this.ns.tailSet$TE$Z(fromElement, inclusive), this.type); +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.Collections, "CheckedList", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, ['java.util.Collections','.CheckedCollection'], 'java.util.List'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.list=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$java_util_List$Class', function (list, type) { +C$.superclazz.c$$java_util_Collection$Class.apply(this, [list, type]); +C$.$init$.apply(this); +this.list=list; +}, 1); + +Clazz_newMeth(C$, 'equals$O', function (o) { +return o === this || this.list.equals$O(o) ; +}); + +Clazz_newMeth(C$, 'hashCode$', function () { +return this.list.hashCode$(); +}); + +Clazz_newMeth(C$, 'get$I', function (index) { +return this.list.get$I(index); +}); + +Clazz_newMeth(C$, 'remove$I', function (index) { +return this.list.remove$I(index); +}); + +Clazz_newMeth(C$, 'indexOf$O', function (o) { +return this.list.indexOf$O(o); +}); + +Clazz_newMeth(C$, 'lastIndexOf$O', function (o) { +return this.list.lastIndexOf$O(o); +}); + +Clazz_newMeth(C$, 'set$I$TE', function (index, element) { +return this.list.set$I$TE(index, this.typeCheck$O(element)); +}); + +Clazz_newMeth(C$, 'add$I$TE', function (index, element) { +this.list.add$I$TE(index, this.typeCheck$O(element)); +}); + +Clazz_newMeth(C$, 'addAll$I$java_util_Collection', function (index, c) { +return this.list.addAll$I$java_util_Collection(index, this.checkedCopyOf$java_util_Collection(c)); +}); + +Clazz_newMeth(C$, 'listIterator$', function () { +return this.listIterator$I(0); +}); + +Clazz_newMeth(C$, 'listIterator$I', function (index) { +var i=this.list.listIterator$I(index); +return ((P$.Collections$CheckedList$1|| +(function(){var C$=Clazz_newClass(P$, "Collections$CheckedList$1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'java.util.ListIterator', 1); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'hasNext$', function () { +return this.$finals$.i.hasNext$(); +}); + +Clazz_newMeth(C$, 'next$', function () { +return this.$finals$.i.next$(); +}); + +Clazz_newMeth(C$, 'hasPrevious$', function () { +return this.$finals$.i.hasPrevious$(); +}); + +Clazz_newMeth(C$, 'previous$', function () { +return this.$finals$.i.previous$(); +}); + +Clazz_newMeth(C$, 'nextIndex$', function () { +return this.$finals$.i.nextIndex$(); +}); + +Clazz_newMeth(C$, 'previousIndex$', function () { +return this.$finals$.i.previousIndex$(); +}); + +Clazz_newMeth(C$, 'remove$', function () { +this.$finals$.i.remove$(); +}); + +Clazz_newMeth(C$, ['set$TE'], function (e) { +this.$finals$.i.set$TE(this.b$['java.util.Collections.CheckedCollection'].typeCheck$O.apply(this.b$['java.util.Collections.CheckedCollection'], [e])); +}); + +Clazz_newMeth(C$, ['add$TE'], function (e) { +this.$finals$.i.add$TE(this.b$['java.util.Collections.CheckedCollection'].typeCheck$O.apply(this.b$['java.util.Collections.CheckedCollection'], [e])); +}); + +Clazz_newMeth(C$, 'forEachRemaining$java_util_function_Consumer', function (action) { +this.$finals$.i.forEachRemaining$java_util_function_Consumer(action); +}); +})() +), Clazz_new_(P$.Collections$CheckedList$1.$init$, [this, {i: i}])); +}); + +Clazz_newMeth(C$, 'subList$I$I', function (fromIndex, toIndex) { +return Clazz_new_(C$.c$$java_util_List$Class,[this.list.subList$I$I(fromIndex, toIndex), this.type]); +}); + +Clazz_newMeth(C$, 'replaceAll$java_util_function_UnaryOperator', function (operator) { +$I$(6).requireNonNull$TT(operator); +this.list.replaceAll$java_util_function_UnaryOperator(((P$.Collections$CheckedList$lambda1|| +(function(){var C$=Clazz_newClass(P$, "Collections$CheckedList$lambda1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'java.util.function.UnaryOperator', 1); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); +/*lambda_E*/ +Clazz_newMeth(C$, ['apply$'], function (e) { return (this.b$['java.util.Collections.CheckedCollection'].typeCheck$O.apply(this.b$['java.util.Collections.CheckedCollection'], [this.$finals$.operator.apply$(e)]));}); +})() +), Clazz_new_(P$.Collections$CheckedList$lambda1.$init$, [this, {operator: operator}]))); +}); + +Clazz_newMeth(C$, 'sort$java_util_Comparator', function (c) { +this.list.sort$java_util_Comparator(c); +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.Collections, "CheckedRandomAccessList", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, ['java.util.Collections','.CheckedList'], 'java.util.RandomAccess'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$java_util_List$Class', function (list, type) { +C$.superclazz.c$$java_util_List$Class.apply(this, [list, type]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'subList$I$I', function (fromIndex, toIndex) { +return Clazz_new_(C$.c$$java_util_List$Class,[this.list.subList$I$I(fromIndex, toIndex), this.type]); +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.Collections, "CheckedMap", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, null, ['java.util.Map', 'java.io.Serializable']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.m=null; +this.keyType=null; +this.valueType=null; +this.entrySet=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'typeCheck$O$O', function (key, value) { +if (key != null && !this.keyType.isInstance$O(key) ) throw Clazz_new_(Clazz_load('ClassCastException').c$$S,[p$12.badKeyMsg$O.apply(this, [key])]); +if (value != null && !this.valueType.isInstance$O(value) ) throw Clazz_new_(Clazz_load('ClassCastException').c$$S,[p$12.badValueMsg$O.apply(this, [value])]); +}, p$12); + +Clazz_newMeth(C$, 'typeCheck$java_util_function_BiFunction', function (func) { +$I$(6).requireNonNull$TT(func); +return ((P$.Collections$CheckedMap$lambda1|| +(function(){var C$=Clazz_newClass(P$, "Collections$CheckedMap$lambda1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'java.util.function.BiFunction', 1); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); +/*lambda_E*/ +Clazz_newMeth(C$, 'apply$', function (k, v) { +var newValue=this.$finals$.func.apply$(k, v); +p$12.typeCheck$O$O.apply(this.b$['java.util.Collections.CheckedMap'], [k, newValue]); +return newValue; +}); +})() +), Clazz_new_(P$.Collections$CheckedMap$lambda1.$init$, [this, {func: func}])); +}, p$12); + +Clazz_newMeth(C$, 'badKeyMsg$O', function (key) { +return "Attempt to insert " + key.getClass$() + " key into map with key type " + this.keyType ; +}, p$12); + +Clazz_newMeth(C$, 'badValueMsg$O', function (value) { +return "Attempt to insert " + value.getClass$() + " value into map with value type " + this.valueType ; +}, p$12); + +Clazz_newMeth(C$, ['c$$java_util_Map$Class$Class'], function (m, keyType, valueType) { +C$.$init$.apply(this); +this.m=$I$(6).requireNonNull$TT(m); +this.keyType=$I$(6).requireNonNull$TT(keyType); +this.valueType=$I$(6).requireNonNull$TT(valueType); +}, 1); + +Clazz_newMeth(C$, 'size$', function () { +return this.m.size$(); +}); + +Clazz_newMeth(C$, 'isEmpty$', function () { +return this.m.isEmpty$(); +}); + +Clazz_newMeth(C$, 'containsKey$O', function (key) { +return this.m.containsKey$O(key); +}); + +Clazz_newMeth(C$, 'containsValue$O', function (v) { +return this.m.containsValue$O(v); +}); + +Clazz_newMeth(C$, 'get$O', function (key) { +return this.m.get$O(key); +}); + +Clazz_newMeth(C$, 'remove$O', function (key) { +return this.m.remove$O(key); +}); + +Clazz_newMeth(C$, 'clear$', function () { +this.m.clear$(); +}); + +Clazz_newMeth(C$, 'keySet$', function () { +return this.m.keySet$(); +}); + +Clazz_newMeth(C$, 'values$', function () { +return this.m.values$(); +}); + +Clazz_newMeth(C$, 'equals$O', function (o) { +return o === this || this.m.equals$O(o) ; +}); + +Clazz_newMeth(C$, 'hashCode$', function () { +return this.m.hashCode$(); +}); + +Clazz_newMeth(C$, 'toString', function () { +return this.m.toString(); +}); + +Clazz_newMeth(C$, ['put$TK$TV'], function (key, value) { +p$12.typeCheck$O$O.apply(this, [key, value]); +return this.m.put$TK$TV(key, value); +}); + +Clazz_newMeth(C$, 'putAll$java_util_Map', function (t) { +var entries=t.entrySet$().toArray$(); +var checked=Clazz_new_($I$(22).c$$I,[entries.length]); +for (var o, $o = 0, $$o = entries; $o<$$o.length&&((o=($$o[$o])),1);$o++) { +var e=o; +var k=e.getKey$(); +var v=e.getValue$(); +p$12.typeCheck$O$O.apply(this, [k, v]); +checked.add$TE(Clazz_new_($I$(20).c$$TK$TV,[k, v])); +} +for (var e, $e = checked.iterator$(); $e.hasNext$()&&((e=($e.next$())),1);) this.m.put$TK$TV(e.getKey$(), e.getValue$()); + +}); + +Clazz_newMeth(C$, 'entrySet$', function () { +if (this.entrySet == null ) this.entrySet=Clazz_new_($I$(23).c$$java_util_Set$Class,[this.m.entrySet$(), this.valueType]); +return this.entrySet; +}); + +Clazz_newMeth(C$, 'forEach$java_util_function_BiConsumer', function (action) { +this.m.forEach$java_util_function_BiConsumer(action); +}); + +Clazz_newMeth(C$, 'replaceAll$java_util_function_BiFunction', function ($function) { +this.m.replaceAll$java_util_function_BiFunction(p$12.typeCheck$java_util_function_BiFunction.apply(this, [$function])); +}); + +Clazz_newMeth(C$, ['putIfAbsent$TK$TV'], function (key, value) { +p$12.typeCheck$O$O.apply(this, [key, value]); +return this.m.putIfAbsent$TK$TV(key, value); +}); + +Clazz_newMeth(C$, 'remove$O$O', function (key, value) { +return this.m.remove$O$O(key, value); +}); + +Clazz_newMeth(C$, ['replace$TK$TV$TV'], function (key, oldValue, newValue) { +p$12.typeCheck$O$O.apply(this, [key, newValue]); +return this.m.replace$TK$TV$TV(key, oldValue, newValue); +}); + +Clazz_newMeth(C$, ['replace$TK$TV'], function (key, value) { +p$12.typeCheck$O$O.apply(this, [key, value]); +return this.m.replace$TK$TV(key, value); +}); + +Clazz_newMeth(C$, ['computeIfAbsent$TK$java_util_function_Function'], function (key, mappingFunction) { +$I$(6).requireNonNull$TT(mappingFunction); +return this.m.computeIfAbsent$TK$java_util_function_Function(key, ((P$.Collections$CheckedMap$lambda2|| +(function(){var C$=Clazz_newClass(P$, "Collections$CheckedMap$lambda2", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'java.util.function.Function', 1); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); +/*lambda_E*/ +Clazz_newMeth(C$, 'apply$', function (k) { +var value=this.$finals$.mappingFunction.apply$(k); +p$12.typeCheck$O$O.apply(this.b$['java.util.Collections.CheckedMap'], [k, value]); +return value; +}); +})() +), Clazz_new_(P$.Collections$CheckedMap$lambda2.$init$, [this, {mappingFunction: mappingFunction}]))); +}); + +Clazz_newMeth(C$, ['computeIfPresent$TK$java_util_function_BiFunction'], function (key, remappingFunction) { +return this.m.computeIfPresent$TK$java_util_function_BiFunction(key, p$12.typeCheck$java_util_function_BiFunction.apply(this, [remappingFunction])); +}); + +Clazz_newMeth(C$, ['compute$TK$java_util_function_BiFunction'], function (key, remappingFunction) { +return this.m.compute$TK$java_util_function_BiFunction(key, p$12.typeCheck$java_util_function_BiFunction.apply(this, [remappingFunction])); +}); + +Clazz_newMeth(C$, ['merge$TK$TV$java_util_function_BiFunction'], function (key, value, remappingFunction) { +$I$(6).requireNonNull$TT(remappingFunction); +return this.m.merge$TK$TV$java_util_function_BiFunction(key, value, ((P$.Collections$CheckedMap$lambda3|| +(function(){var C$=Clazz_newClass(P$, "Collections$CheckedMap$lambda3", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'java.util.function.BiFunction', 1); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); +/*lambda_E*/ +Clazz_newMeth(C$, 'apply$', function (v1, v2) { +var newValue=this.$finals$.remappingFunction.apply$(v1, v2); +p$12.typeCheck$O$O.apply(this.b$['java.util.Collections.CheckedMap'], [null, newValue]); +return newValue; +}); +})() +), Clazz_new_(P$.Collections$CheckedMap$lambda3.$init$, [this, {remappingFunction: remappingFunction}]))); +}); +; +(function(){var C$=Clazz_newClass(P$.Collections.CheckedMap, "CheckedEntrySet", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, null, 'java.util.Set'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.s=null; +this.valueType=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, ['c$$java_util_Set$Class'], function (s, valueType) { +C$.$init$.apply(this); +this.s=s; +this.valueType=valueType; +}, 1); + +Clazz_newMeth(C$, 'size$', function () { +return this.s.size$(); +}); + +Clazz_newMeth(C$, 'isEmpty$', function () { +return this.s.isEmpty$(); +}); + +Clazz_newMeth(C$, 'toString', function () { +return this.s.toString(); +}); + +Clazz_newMeth(C$, 'hashCode$', function () { +return this.s.hashCode$(); +}); + +Clazz_newMeth(C$, 'clear$', function () { +this.s.clear$(); +}); + +Clazz_newMeth(C$, ['add$java_util_Map_Entry','add$TE'], function (e) { +throw Clazz_new_(Clazz_load('UnsupportedOperationException')); +}); + +Clazz_newMeth(C$, ['addAll$java_util_Collection'], function (coll) { +throw Clazz_new_(Clazz_load('UnsupportedOperationException')); +}); + +Clazz_newMeth(C$, 'iterator$', function () { +var i=this.s.iterator$(); +var valueType=this.valueType; +return ((P$.Collections$CheckedMap$CheckedEntrySet$1|| +(function(){var C$=Clazz_newClass(P$, "Collections$CheckedMap$CheckedEntrySet$1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'java.util.Iterator', 1); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'hasNext$', function () { +return this.$finals$.i.hasNext$(); +}); + +Clazz_newMeth(C$, 'remove$', function () { +this.$finals$.i.remove$(); +}); + +Clazz_newMeth(C$, 'next$', function () { +return P$.Collections.CheckedMap.CheckedEntrySet.checkedEntry$java_util_Map_Entry$Class(this.$finals$.i.next$(), this.$finals$.valueType); +}); +})() +), Clazz_new_(P$.Collections$CheckedMap$CheckedEntrySet$1.$init$, [this, {i: i, valueType: valueType}])); +}); + +Clazz_newMeth(C$, 'toArray$', function () { +var source=this.s.toArray$(); +var dest=(Clazz_getClass($I$(21)).isInstance$O(source.getClass$().getComponentType$()) ? source : Clazz_array(java.lang.Object, [source.length])); +for (var i=0; i < source.length; i++) dest[i]=C$.checkedEntry$java_util_Map_Entry$Class(source[i], this.valueType); + +return dest; +}); + +Clazz_newMeth(C$, 'toArray$TTA', function (a) { +var arr=this.s.toArray$TTA(a.length == 0 ? a : $I$(10).copyOf$TTA$I(a, 0)); +for (var i=0; i < arr.length; i++) arr[i]=C$.checkedEntry$java_util_Map_Entry$Class(arr[i], this.valueType); + +if (arr.length > a.length) return arr; +System.arraycopy$O$I$O$I$I(arr, 0, a, 0, arr.length); +if (a.length > arr.length) a[arr.length]=null; +return a; +}); + +Clazz_newMeth(C$, 'contains$O', function (o) { +if (!(Clazz_instanceOf(o, "java.util.Map.Entry"))) return false; +var e=o; +return this.s.contains$O((Clazz_instanceOf(e, "java.util.Collections.CheckedMap.CheckedEntrySet.CheckedEntry")) ? e : C$.checkedEntry$java_util_Map_Entry$Class(e, this.valueType)); +}); + +Clazz_newMeth(C$, 'containsAll$java_util_Collection', function (c) { +for (var o, $o = c.iterator$(); $o.hasNext$()&&((o=($o.next$())),1);) if (!this.contains$O(o)) return false; + +return true; +}); + +Clazz_newMeth(C$, 'remove$O', function (o) { +if (!(Clazz_instanceOf(o, "java.util.Map.Entry"))) return false; +return this.s.remove$O(Clazz_new_($I$(20).c$$java_util_Map_Entry,[o])); +}); + +Clazz_newMeth(C$, 'removeAll$java_util_Collection', function (c) { +return p$11.batchRemove$java_util_Collection$Z.apply(this, [c, false]); +}); + +Clazz_newMeth(C$, 'retainAll$java_util_Collection', function (c) { +return p$11.batchRemove$java_util_Collection$Z.apply(this, [c, true]); +}); + +Clazz_newMeth(C$, 'batchRemove$java_util_Collection$Z', function (c, complement) { +$I$(6).requireNonNull$TT(c); +var modified=false; +var it=this.iterator$(); +while (it.hasNext$()){ +if (c.contains$O(it.next$()) != complement ) { +it.remove$(); +modified=true; +}} +return modified; +}, p$11); + +Clazz_newMeth(C$, 'equals$O', function (o) { +if (o === this ) return true; +if (!(Clazz_instanceOf(o, "java.util.Set"))) return false; +var that=o; +return that.size$() == this.s.size$() && this.containsAll$java_util_Collection(that) ; +}); + +Clazz_newMeth(C$, ['checkedEntry$java_util_Map_Entry$Class'], function (e, valueType) { +return Clazz_new_($I$(21).c$$java_util_Map_Entry$Class,[e, valueType]); +}, 1); +; +(function(){var C$=Clazz_newClass(P$.Collections.CheckedMap.CheckedEntrySet, "CheckedEntry", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, null, [['java.util.Map','java.util.Map.Entry']]); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.e=null; +this.valueType=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, ['c$$java_util_Map_Entry$Class'], function (e, valueType) { +C$.$init$.apply(this); +this.e=$I$(6).requireNonNull$TT(e); +this.valueType=$I$(6).requireNonNull$TT(valueType); +}, 1); + +Clazz_newMeth(C$, 'getKey$', function () { +return this.e.getKey$(); +}); + +Clazz_newMeth(C$, 'getValue$', function () { +return this.e.getValue$(); +}); + +Clazz_newMeth(C$, 'hashCode$', function () { +return this.e.hashCode$(); +}); + +Clazz_newMeth(C$, 'toString', function () { +return this.e.toString(); +}); + +Clazz_newMeth(C$, ['setValue$TV'], function (value) { +if (value != null && !this.valueType.isInstance$O(value) ) throw Clazz_new_(Clazz_load('ClassCastException').c$$S,[p$10.badValueMsg$O.apply(this, [value])]); +return this.e.setValue$TV(value); +}); + +Clazz_newMeth(C$, 'badValueMsg$O', function (value) { +return "Attempt to insert " + value.getClass$() + " value into map with value type " + this.valueType ; +}, p$10); + +Clazz_newMeth(C$, 'equals$O', function (o) { +if (o === this ) return true; +if (!(Clazz_instanceOf(o, "java.util.Map.Entry"))) return false; +return this.e.equals$O(Clazz_new_($I$(20).c$$java_util_Map_Entry,[o])); +}); + +Clazz_newMeth(C$); +})() + +Clazz_newMeth(C$); +})() + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.Collections, "CheckedSortedMap", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, ['java.util.Collections','.CheckedMap'], ['java.util.SortedMap', 'java.io.Serializable']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.sm=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, ['c$$java_util_SortedMap$Class$Class'], function (m, keyType, valueType) { +C$.superclazz.c$$java_util_Map$Class$Class.apply(this, [m, keyType, valueType]); +C$.$init$.apply(this); +this.sm=m; +}, 1); + +Clazz_newMeth(C$, 'comparator$', function () { +return this.sm.comparator$(); +}); + +Clazz_newMeth(C$, 'firstKey$', function () { +return this.sm.firstKey$(); +}); + +Clazz_newMeth(C$, 'lastKey$', function () { +return this.sm.lastKey$(); +}); + +Clazz_newMeth(C$, ['subMap$TK$TK'], function (fromKey, toKey) { +return P$.Collections.checkedSortedMap$java_util_SortedMap$Class$Class(this.sm.subMap$TK$TK(fromKey, toKey), this.keyType, this.valueType); +}); + +Clazz_newMeth(C$, ['headMap$TK'], function (toKey) { +return P$.Collections.checkedSortedMap$java_util_SortedMap$Class$Class(this.sm.headMap$TK(toKey), this.keyType, this.valueType); +}); + +Clazz_newMeth(C$, ['tailMap$TK'], function (fromKey) { +return P$.Collections.checkedSortedMap$java_util_SortedMap$Class$Class(this.sm.tailMap$TK(fromKey), this.keyType, this.valueType); +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.Collections, "CheckedNavigableMap", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, ['java.util.Collections','.CheckedSortedMap'], ['java.util.NavigableMap', 'java.io.Serializable']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.nm=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, ['c$$java_util_NavigableMap$Class$Class'], function (m, keyType, valueType) { +C$.superclazz.c$$java_util_SortedMap$Class$Class.apply(this, [m, keyType, valueType]); +C$.$init$.apply(this); +this.nm=m; +}, 1); + +Clazz_newMeth(C$, 'comparator$', function () { +return this.nm.comparator$(); +}); + +Clazz_newMeth(C$, 'firstKey$', function () { +return this.nm.firstKey$(); +}); + +Clazz_newMeth(C$, 'lastKey$', function () { +return this.nm.lastKey$(); +}); + +Clazz_newMeth(C$, ['lowerEntry$TK'], function (key) { +var lower=this.nm.lowerEntry$TK(key); +return (null != lower ) ? Clazz_new_($I$(21).c$$java_util_Map_Entry$Class,[lower, this.valueType]) : null; +}); + +Clazz_newMeth(C$, ['lowerKey$TK'], function (key) { +return this.nm.lowerKey$TK(key); +}); + +Clazz_newMeth(C$, ['floorEntry$TK'], function (key) { +var floor=this.nm.floorEntry$TK(key); +return (null != floor ) ? Clazz_new_($I$(21).c$$java_util_Map_Entry$Class,[floor, this.valueType]) : null; +}); + +Clazz_newMeth(C$, ['floorKey$TK'], function (key) { +return this.nm.floorKey$TK(key); +}); + +Clazz_newMeth(C$, ['ceilingEntry$TK'], function (key) { +var ceiling=this.nm.ceilingEntry$TK(key); +return (null != ceiling ) ? Clazz_new_($I$(21).c$$java_util_Map_Entry$Class,[ceiling, this.valueType]) : null; +}); + +Clazz_newMeth(C$, ['ceilingKey$TK'], function (key) { +return this.nm.ceilingKey$TK(key); +}); + +Clazz_newMeth(C$, ['higherEntry$TK'], function (key) { +var higher=this.nm.higherEntry$TK(key); +return (null != higher ) ? Clazz_new_($I$(21).c$$java_util_Map_Entry$Class,[higher, this.valueType]) : null; +}); + +Clazz_newMeth(C$, ['higherKey$TK'], function (key) { +return this.nm.higherKey$TK(key); +}); + +Clazz_newMeth(C$, 'firstEntry$', function () { +var first=this.nm.firstEntry$(); +return (null != first ) ? Clazz_new_($I$(21).c$$java_util_Map_Entry$Class,[first, this.valueType]) : null; +}); + +Clazz_newMeth(C$, 'lastEntry$', function () { +var last=this.nm.lastEntry$(); +return (null != last ) ? Clazz_new_($I$(21).c$$java_util_Map_Entry$Class,[last, this.valueType]) : null; +}); + +Clazz_newMeth(C$, 'pollFirstEntry$', function () { +var entry=this.nm.pollFirstEntry$(); +return (null == entry ) ? null : Clazz_new_($I$(21).c$$java_util_Map_Entry$Class,[entry, this.valueType]); +}); + +Clazz_newMeth(C$, 'pollLastEntry$', function () { +var entry=this.nm.pollLastEntry$(); +return (null == entry ) ? null : Clazz_new_($I$(21).c$$java_util_Map_Entry$Class,[entry, this.valueType]); +}); + +Clazz_newMeth(C$, 'descendingMap$', function () { +return P$.Collections.checkedNavigableMap$java_util_NavigableMap$Class$Class(this.nm.descendingMap$(), this.keyType, this.valueType); +}); + +Clazz_newMeth(C$, 'keySet$', function () { +return this.navigableKeySet$(); +}); + +Clazz_newMeth(C$, 'navigableKeySet$', function () { +return P$.Collections.checkedNavigableSet$java_util_NavigableSet$Class(this.nm.navigableKeySet$(), this.keyType); +}); + +Clazz_newMeth(C$, 'descendingKeySet$', function () { +return P$.Collections.checkedNavigableSet$java_util_NavigableSet$Class(this.nm.descendingKeySet$(), this.keyType); +}); + +Clazz_newMeth(C$, ['subMap$TK$TK'], function (fromKey, toKey) { +return P$.Collections.checkedNavigableMap$java_util_NavigableMap$Class$Class(this.nm.subMap$TK$Z$TK$Z(fromKey, true, toKey, false), this.keyType, this.valueType); +}); + +Clazz_newMeth(C$, ['headMap$TK'], function (toKey) { +return P$.Collections.checkedNavigableMap$java_util_NavigableMap$Class$Class(this.nm.headMap$TK$Z(toKey, false), this.keyType, this.valueType); +}); + +Clazz_newMeth(C$, ['tailMap$TK'], function (fromKey) { +return P$.Collections.checkedNavigableMap$java_util_NavigableMap$Class$Class(this.nm.tailMap$TK$Z(fromKey, true), this.keyType, this.valueType); +}); + +Clazz_newMeth(C$, ['subMap$TK$Z$TK$Z'], function (fromKey, fromInclusive, toKey, toInclusive) { +return P$.Collections.checkedNavigableMap$java_util_NavigableMap$Class$Class(this.nm.subMap$TK$Z$TK$Z(fromKey, fromInclusive, toKey, toInclusive), this.keyType, this.valueType); +}); + +Clazz_newMeth(C$, ['headMap$TK$Z'], function (toKey, inclusive) { +return P$.Collections.checkedNavigableMap$java_util_NavigableMap$Class$Class(this.nm.headMap$TK$Z(toKey, inclusive), this.keyType, this.valueType); +}); + +Clazz_newMeth(C$, ['tailMap$TK$Z'], function (fromKey, inclusive) { +return P$.Collections.checkedNavigableMap$java_util_NavigableMap$Class$Class(this.nm.tailMap$TK$Z(fromKey, inclusive), this.keyType, this.valueType); +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.Collections, "EmptyIterator", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, null, 'java.util.Iterator'); +C$.EMPTY_ITERATOR=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.EMPTY_ITERATOR=Clazz_new_(C$); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'hasNext$', function () { +return false; +}); + +Clazz_newMeth(C$, 'next$', function () { +throw Clazz_new_(Clazz_load('java.util.NoSuchElementException')); +}); + +Clazz_newMeth(C$, 'remove$', function () { +throw Clazz_new_(Clazz_load('IllegalStateException')); +}); + +Clazz_newMeth(C$, 'forEachRemaining$java_util_function_Consumer', function (action) { +$I$(6).requireNonNull$TT(action); +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.Collections, "EmptyListIterator", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, ['java.util.Collections','.EmptyIterator'], 'java.util.ListIterator'); +C$.$EMPTY_ITERATOR=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.$EMPTY_ITERATOR=Clazz_new_(C$); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'hasPrevious$', function () { +return false; +}); + +Clazz_newMeth(C$, 'previous$', function () { +throw Clazz_new_(Clazz_load('java.util.NoSuchElementException')); +}); + +Clazz_newMeth(C$, 'nextIndex$', function () { +return 0; +}); + +Clazz_newMeth(C$, 'previousIndex$', function () { +return -1; +}); + +Clazz_newMeth(C$, ['set$TE'], function (e) { +throw Clazz_new_(Clazz_load('IllegalStateException')); +}); + +Clazz_newMeth(C$, ['add$TE'], function (e) { +throw Clazz_new_(Clazz_load('UnsupportedOperationException')); +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.Collections, "EmptyEnumeration", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, null, 'java.util.Enumeration'); +C$.EMPTY_ENUMERATION=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.EMPTY_ENUMERATION=Clazz_new_(C$); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'hasMoreElements$', function () { +return false; +}); + +Clazz_newMeth(C$, 'nextElement$', function () { +throw Clazz_new_(Clazz_load('java.util.NoSuchElementException')); +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.Collections, "EmptySet", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'java.util.AbstractSet', 'java.io.Serializable'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'iterator$', function () { +return P$.Collections.emptyIterator$(); +}); + +Clazz_newMeth(C$, 'size$', function () { +return 0; +}); + +Clazz_newMeth(C$, 'isEmpty$', function () { +return true; +}); + +Clazz_newMeth(C$, 'contains$O', function (obj) { +return false; +}); + +Clazz_newMeth(C$, 'containsAll$java_util_Collection', function (c) { +return c.isEmpty$(); +}); + +Clazz_newMeth(C$, 'toArray$', function () { +return Clazz_array(java.lang.Object, [0]); +}); + +Clazz_newMeth(C$, 'toArray$TTA', function (a) { +if (a.length > 0) a[0]=null; +return a; +}); + +Clazz_newMeth(C$, 'forEach$java_util_function_Consumer', function (action) { +$I$(6).requireNonNull$TT(action); +}); + +Clazz_newMeth(C$, 'removeIf$java_util_function_Predicate', function (filter) { +$I$(6).requireNonNull$TT(filter); +return false; +}); + +Clazz_newMeth(C$, 'spliterator$', function () { +return $I$(24).emptySpliterator$(); +}); + +Clazz_newMeth(C$, 'readResolve', function () { +return $I$(25).EMPTY_SET; +}, p$13); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.Collections, "EmptyList", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'java.util.AbstractList', ['java.util.RandomAccess', 'java.io.Serializable']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'iterator$', function () { +return P$.Collections.emptyIterator$(); +}); + +Clazz_newMeth(C$, 'listIterator$', function () { +return P$.Collections.emptyListIterator$(); +}); + +Clazz_newMeth(C$, 'size$', function () { +return 0; +}); + +Clazz_newMeth(C$, 'isEmpty$', function () { +return true; +}); + +Clazz_newMeth(C$, 'contains$O', function (obj) { +return false; +}); + +Clazz_newMeth(C$, 'containsAll$java_util_Collection', function (c) { +return c.isEmpty$(); +}); + +Clazz_newMeth(C$, 'toArray$', function () { +return Clazz_array(java.lang.Object, [0]); +}); + +Clazz_newMeth(C$, 'toArray$TTA', function (a) { +if (a.length > 0) a[0]=null; +return a; +}); + +Clazz_newMeth(C$, 'get$I', function (index) { +throw Clazz_new_(Clazz_load('IndexOutOfBoundsException').c$$S,["Index: " + index]); +}); + +Clazz_newMeth(C$, 'equals$O', function (o) { +return (Clazz_instanceOf(o, "java.util.List")) && (o).isEmpty$() ; +}); + +Clazz_newMeth(C$, 'hashCode$', function () { +return 1; +}); + +Clazz_newMeth(C$, 'removeIf$java_util_function_Predicate', function (filter) { +$I$(6).requireNonNull$TT(filter); +return false; +}); + +Clazz_newMeth(C$, 'replaceAll$java_util_function_UnaryOperator', function (operator) { +$I$(6).requireNonNull$TT(operator); +}); + +Clazz_newMeth(C$, 'sort$java_util_Comparator', function (c) { +}); + +Clazz_newMeth(C$, 'forEach$java_util_function_Consumer', function (action) { +$I$(6).requireNonNull$TT(action); +}); + +Clazz_newMeth(C$, 'spliterator$', function () { +return $I$(24).emptySpliterator$(); +}); + +Clazz_newMeth(C$, 'readResolve', function () { +return $I$(25).EMPTY_LIST; +}, p$14); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.Collections, "EmptyMap", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'java.util.AbstractMap', 'java.io.Serializable'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'size$', function () { +return 0; +}); + +Clazz_newMeth(C$, 'isEmpty$', function () { +return true; +}); + +Clazz_newMeth(C$, 'containsKey$O', function (key) { +return false; +}); + +Clazz_newMeth(C$, 'containsValue$O', function (value) { +return false; +}); + +Clazz_newMeth(C$, 'get$O', function (key) { +return null; +}); + +Clazz_newMeth(C$, 'keySet$', function () { +return P$.Collections.emptySet$(); +}); + +Clazz_newMeth(C$, 'values$', function () { +return P$.Collections.emptySet$(); +}); + +Clazz_newMeth(C$, 'entrySet$', function () { +return P$.Collections.emptySet$(); +}); + +Clazz_newMeth(C$, 'equals$O', function (o) { +return (Clazz_instanceOf(o, "java.util.Map")) && (o).isEmpty$() ; +}); + +Clazz_newMeth(C$, 'hashCode$', function () { +return 0; +}); + +Clazz_newMeth(C$, ['getOrDefault$O$TV'], function (k, defaultValue) { +return defaultValue; +}); + +Clazz_newMeth(C$, 'forEach$java_util_function_BiConsumer', function (action) { +$I$(6).requireNonNull$TT(action); +}); + +Clazz_newMeth(C$, 'replaceAll$java_util_function_BiFunction', function ($function) { +$I$(6).requireNonNull$TT($function); +}); + +Clazz_newMeth(C$, ['putIfAbsent$TK$TV'], function (key, value) { +throw Clazz_new_(Clazz_load('UnsupportedOperationException')); +}); + +Clazz_newMeth(C$, 'remove$O$O', function (key, value) { +throw Clazz_new_(Clazz_load('UnsupportedOperationException')); +}); + +Clazz_newMeth(C$, ['replace$TK$TV$TV'], function (key, oldValue, newValue) { +throw Clazz_new_(Clazz_load('UnsupportedOperationException')); +}); + +Clazz_newMeth(C$, ['replace$TK$TV'], function (key, value) { +throw Clazz_new_(Clazz_load('UnsupportedOperationException')); +}); + +Clazz_newMeth(C$, ['computeIfAbsent$TK$java_util_function_Function'], function (key, mappingFunction) { +throw Clazz_new_(Clazz_load('UnsupportedOperationException')); +}); + +Clazz_newMeth(C$, ['computeIfPresent$TK$java_util_function_BiFunction'], function (key, remappingFunction) { +throw Clazz_new_(Clazz_load('UnsupportedOperationException')); +}); + +Clazz_newMeth(C$, ['compute$TK$java_util_function_BiFunction'], function (key, remappingFunction) { +throw Clazz_new_(Clazz_load('UnsupportedOperationException')); +}); + +Clazz_newMeth(C$, ['merge$TK$TV$java_util_function_BiFunction'], function (key, value, remappingFunction) { +throw Clazz_new_(Clazz_load('UnsupportedOperationException')); +}); + +Clazz_newMeth(C$, 'readResolve', function () { +return $I$(25).EMPTY_MAP; +}, p$15); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.Collections, "SingletonSet", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'java.util.AbstractSet', 'java.io.Serializable'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.element=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, ['c$$TE'], function (e) { +Clazz_super_(C$, this,1); +this.element=e; +}, 1); + +Clazz_newMeth(C$, 'iterator$', function () { +return P$.Collections.singletonIterator$TE(this.element); +}); + +Clazz_newMeth(C$, 'size$', function () { +return 1; +}); + +Clazz_newMeth(C$, 'contains$O', function (o) { +return P$.Collections.eq$O$O(o, this.element); +}); + +Clazz_newMeth(C$, 'forEach$java_util_function_Consumer', function (action) { +action.accept$(this.element); +}); + +Clazz_newMeth(C$, 'spliterator$', function () { +return P$.Collections.singletonSpliterator$TT(this.element); +}); + +Clazz_newMeth(C$, 'removeIf$java_util_function_Predicate', function (filter) { +throw Clazz_new_(Clazz_load('UnsupportedOperationException')); +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.Collections, "SingletonList", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'java.util.AbstractList', ['java.util.RandomAccess', 'java.io.Serializable']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.element=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, ['c$$TE'], function (obj) { +Clazz_super_(C$, this,1); +this.element=obj; +}, 1); + +Clazz_newMeth(C$, 'iterator$', function () { +return P$.Collections.singletonIterator$TE(this.element); +}); + +Clazz_newMeth(C$, 'size$', function () { +return 1; +}); + +Clazz_newMeth(C$, 'contains$O', function (obj) { +return P$.Collections.eq$O$O(obj, this.element); +}); + +Clazz_newMeth(C$, 'get$I', function (index) { +if (index != 0) throw Clazz_new_(Clazz_load('IndexOutOfBoundsException').c$$S,["Index: " + index + ", Size: 1" ]); +return this.element; +}); + +Clazz_newMeth(C$, 'forEach$java_util_function_Consumer', function (action) { +action.accept$(this.element); +}); + +Clazz_newMeth(C$, 'removeIf$java_util_function_Predicate', function (filter) { +throw Clazz_new_(Clazz_load('UnsupportedOperationException')); +}); + +Clazz_newMeth(C$, 'replaceAll$java_util_function_UnaryOperator', function (operator) { +throw Clazz_new_(Clazz_load('UnsupportedOperationException')); +}); + +Clazz_newMeth(C$, 'sort$java_util_Comparator', function (c) { +}); + +Clazz_newMeth(C$, 'spliterator$', function () { +return P$.Collections.singletonSpliterator$TT(this.element); +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.Collections, "SingletonMap", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'java.util.AbstractMap', 'java.io.Serializable'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.k=null; +this.v=null; +this.$keySet=null; +this.entrySet=null; +this.$values=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, ['c$$TK$TV'], function (key, value) { +Clazz_super_(C$, this,1); +this.k=key; +this.v=value; +}, 1); + +Clazz_newMeth(C$, 'size$', function () { +return 1; +}); + +Clazz_newMeth(C$, 'isEmpty$', function () { +return false; +}); + +Clazz_newMeth(C$, 'containsKey$O', function (key) { +return P$.Collections.eq$O$O(key, this.k); +}); + +Clazz_newMeth(C$, 'containsValue$O', function (value) { +return P$.Collections.eq$O$O(value, this.v); +}); + +Clazz_newMeth(C$, 'get$O', function (key) { +return (P$.Collections.eq$O$O(key, this.k) ? this.v : null); +}); + +Clazz_newMeth(C$, 'keySet$', function () { +if (this.$keySet == null ) this.$keySet=P$.Collections.singleton$TT(this.k); +return this.$keySet; +}); + +Clazz_newMeth(C$, 'entrySet$', function () { +if (this.entrySet == null ) this.entrySet=$I$(25).singleton$TT(Clazz_new_($I$(20).c$$TK$TV,[this.k, this.v])); +return this.entrySet; +}); + +Clazz_newMeth(C$, 'values$', function () { +if (this.$values == null ) this.$values=P$.Collections.singleton$TT(this.v); +return this.$values; +}); + +Clazz_newMeth(C$, ['getOrDefault$O$TV'], function (key, defaultValue) { +return P$.Collections.eq$O$O(key, this.k) ? this.v : defaultValue; +}); + +Clazz_newMeth(C$, 'forEach$java_util_function_BiConsumer', function (action) { +action.accept$(this.k, this.v); +}); + +Clazz_newMeth(C$, 'replaceAll$java_util_function_BiFunction', function ($function) { +throw Clazz_new_(Clazz_load('UnsupportedOperationException')); +}); + +Clazz_newMeth(C$, ['putIfAbsent$TK$TV'], function (key, value) { +throw Clazz_new_(Clazz_load('UnsupportedOperationException')); +}); + +Clazz_newMeth(C$, 'remove$O$O', function (key, value) { +throw Clazz_new_(Clazz_load('UnsupportedOperationException')); +}); + +Clazz_newMeth(C$, ['replace$TK$TV$TV'], function (key, oldValue, newValue) { +throw Clazz_new_(Clazz_load('UnsupportedOperationException')); +}); + +Clazz_newMeth(C$, ['replace$TK$TV'], function (key, value) { +throw Clazz_new_(Clazz_load('UnsupportedOperationException')); +}); + +Clazz_newMeth(C$, ['computeIfAbsent$TK$java_util_function_Function'], function (key, mappingFunction) { +throw Clazz_new_(Clazz_load('UnsupportedOperationException')); +}); + +Clazz_newMeth(C$, ['computeIfPresent$TK$java_util_function_BiFunction'], function (key, remappingFunction) { +throw Clazz_new_(Clazz_load('UnsupportedOperationException')); +}); + +Clazz_newMeth(C$, ['compute$TK$java_util_function_BiFunction'], function (key, remappingFunction) { +throw Clazz_new_(Clazz_load('UnsupportedOperationException')); +}); + +Clazz_newMeth(C$, ['merge$TK$TV$java_util_function_BiFunction'], function (key, value, remappingFunction) { +throw Clazz_new_(Clazz_load('UnsupportedOperationException')); +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.Collections, "CopiesList", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'java.util.AbstractList', ['java.util.RandomAccess', 'java.io.Serializable']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.n=0; +this.element=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$I$TE', function (n, e) { +Clazz_super_(C$, this,1); +Clazz_assert(C$, this, function(){return n >= 0}); +this.n=n; +this.element=e; +}, 1); + +Clazz_newMeth(C$, 'size$', function () { +return this.n; +}); + +Clazz_newMeth(C$, 'contains$O', function (obj) { +return this.n != 0 && P$.Collections.eq$O$O(obj, this.element) ; +}); + +Clazz_newMeth(C$, 'indexOf$O', function (o) { +return this.contains$O(o) ? 0 : -1; +}); + +Clazz_newMeth(C$, 'lastIndexOf$O', function (o) { +return this.contains$O(o) ? this.n - 1 : -1; +}); + +Clazz_newMeth(C$, 'get$I', function (index) { +if (index < 0 || index >= this.n ) throw Clazz_new_(Clazz_load('IndexOutOfBoundsException').c$$S,["Index: " + index + ", Size: " + this.n ]); +return this.element; +}); + +Clazz_newMeth(C$, 'toArray$', function () { +var a=Clazz_array(java.lang.Object, [this.n]); +if (this.element != null ) $I$(10).fill$OA$I$I$O(a, 0, this.n, this.element); +return a; +}); + +Clazz_newMeth(C$, 'toArray$TTA', function (a) { +var n=this.n; +if (a.length < n) { +a=Clazz_array(a.getClass$().getComponentType$(), n); +if (this.element != null ) $I$(10).fill$OA$I$I$O(a, 0, n, this.element); +} else { +$I$(10).fill$OA$I$I$O(a, 0, n, this.element); +if (a.length > n) a[n]=null; +}return a; +}); + +Clazz_newMeth(C$, 'subList$I$I', function (fromIndex, toIndex) { +if (fromIndex < 0) throw Clazz_new_(Clazz_load('IndexOutOfBoundsException').c$$S,["fromIndex = " + fromIndex]); +if (toIndex > this.n) throw Clazz_new_(Clazz_load('IndexOutOfBoundsException').c$$S,["toIndex = " + toIndex]); +if (fromIndex > toIndex) throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["fromIndex(" + fromIndex + ") > toIndex(" + toIndex + ")" ]); +return Clazz_new_(C$.c$$I$TE,[toIndex - fromIndex, this.element]); +}); + +Clazz_newMeth(C$, 'stream$', function () { +return $I$(27).range$I$I(0, this.n).mapToObj$java_util_function_IntFunction(((P$.Collections$CopiesList$lambda1|| +(function(){var C$=Clazz_newClass(P$, "Collections$CopiesList$lambda1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'java.util.function.IntFunction', 1); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); +/*lambda_E*/ +Clazz_newMeth(C$, 'apply$', function (i) { return (this.element);}); +})() +), Clazz_new_(P$.Collections$CopiesList$lambda1.$init$, [this, null]))); +}); + +Clazz_newMeth(C$, 'parallelStream$', function () { +return $I$(27).range$I$I(0, this.n).parallel$().mapToObj$java_util_function_IntFunction(((P$.Collections$CopiesList$lambda2|| +(function(){var C$=Clazz_newClass(P$, "Collections$CopiesList$lambda2", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'java.util.function.IntFunction', 1); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); +/*lambda_E*/ +Clazz_newMeth(C$, 'apply$', function (i) { return (this.element);}); +})() +), Clazz_new_(P$.Collections$CopiesList$lambda2.$init$, [this, null]))); +}); + +Clazz_newMeth(C$, 'spliterator$', function () { +return this.stream$().spliterator$(); +}); +C$.$_ASSERT_ENABLED_ = ClassLoader.getClassAssertionStatus$(C$); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.Collections, "ReverseComparator", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, null, ['java.util.Comparator', 'java.io.Serializable']); +C$.REVERSE_ORDER=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.REVERSE_ORDER=Clazz_new_(C$); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, ['compare$Comparable$Comparable','compare$','compare$TT$TT'], function (c1, c2) { +return c2.compareTo$(c1); +}); + +Clazz_newMeth(C$, 'readResolve', function () { +return $I$(25).reverseOrder$(); +}, p$16); + +Clazz_newMeth(C$, 'reversed$', function () { +return $I$(28).naturalOrder$(); +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.Collections, "ReverseComparator2", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, null, ['java.util.Comparator', 'java.io.Serializable']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.cmp=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$java_util_Comparator', function (cmp) { +C$.$init$.apply(this); +Clazz_assert(C$, this, function(){return cmp != null }); +this.cmp=cmp; +}, 1); + +Clazz_newMeth(C$, ['compare$TT$TT','compare$'], function (t1, t2) { +return this.cmp.compare$(t2, t1); +}); + +Clazz_newMeth(C$, 'equals$O', function (o) { +return (o === this ) || (Clazz_instanceOf(o, "java.util.Collections.ReverseComparator2") && this.cmp.equals$O((o).cmp) ) ; +}); + +Clazz_newMeth(C$, 'hashCode$', function () { +return this.cmp.hashCode$() ^ -2147483648; +}); + +Clazz_newMeth(C$, 'reversed$', function () { +return this.cmp; +}); +C$.$_ASSERT_ENABLED_ = ClassLoader.getClassAssertionStatus$(C$); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.Collections, "SetFromMap", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'java.util.AbstractSet', ['java.util.Set', 'java.io.Serializable']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.m=null; +this.s=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$java_util_Map', function (map) { +Clazz_super_(C$, this,1); +if (!map.isEmpty$()) throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["Map is non-empty"]); +this.m=map; +this.s=map.keySet$(); +}, 1); + +Clazz_newMeth(C$, 'clear$', function () { +this.m.clear$(); +}); + +Clazz_newMeth(C$, 'size$', function () { +return this.m.size$(); +}); + +Clazz_newMeth(C$, 'isEmpty$', function () { +return this.m.isEmpty$(); +}); + +Clazz_newMeth(C$, 'contains$O', function (o) { +return this.m.containsKey$O(o); +}); + +Clazz_newMeth(C$, 'remove$O', function (o) { +return this.m.remove$O(o) != null ; +}); + +Clazz_newMeth(C$, ['add$TE'], function (e) { +return this.m.put$TK$TV(e, $I$(29).TRUE) == null ; +}); + +Clazz_newMeth(C$, 'iterator$', function () { +return this.s.iterator$(); +}); + +Clazz_newMeth(C$, 'toArray$', function () { +return this.s.toArray$(); +}); + +Clazz_newMeth(C$, 'toArray$TTA', function (a) { +return this.s.toArray$TTA(a); +}); + +Clazz_newMeth(C$, 'toString', function () { +return this.s.toString(); +}); + +Clazz_newMeth(C$, 'hashCode$', function () { +return this.s.hashCode$(); +}); + +Clazz_newMeth(C$, 'equals$O', function (o) { +return o === this || this.s.equals$O(o) ; +}); + +Clazz_newMeth(C$, 'containsAll$java_util_Collection', function (c) { +return this.s.containsAll$java_util_Collection(c); +}); + +Clazz_newMeth(C$, 'removeAll$java_util_Collection', function (c) { +return this.s.removeAll$java_util_Collection(c); +}); + +Clazz_newMeth(C$, 'retainAll$java_util_Collection', function (c) { +return this.s.retainAll$java_util_Collection(c); +}); + +Clazz_newMeth(C$, 'forEach$java_util_function_Consumer', function (action) { +this.s.forEach$java_util_function_Consumer(action); +}); + +Clazz_newMeth(C$, 'removeIf$java_util_function_Predicate', function (filter) { +return this.s.removeIf$java_util_function_Predicate(filter); +}); + +Clazz_newMeth(C$, 'spliterator$', function () { +return this.s.spliterator$(); +}); + +Clazz_newMeth(C$, 'stream$', function () { +return this.s.stream$(); +}); + +Clazz_newMeth(C$, 'parallelStream$', function () { +return this.s.parallelStream$(); +}); + +Clazz_newMeth(C$, 'readObject$java_io_ObjectInputStream', function (stream) { +stream.defaultReadObject$(); +this.s=this.m.keySet$(); +}, p$17); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.Collections, "AsLIFOQueue", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'java.util.AbstractQueue', ['java.util.Queue', 'java.io.Serializable']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.q=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$java_util_Deque', function (q) { +Clazz_super_(C$, this,1); +this.q=q; +}, 1); + +Clazz_newMeth(C$, ['add$TE'], function (e) { +this.q.addFirst$TE(e); +return true; +}); + +Clazz_newMeth(C$, ['offer$TE'], function (e) { +return this.q.offerFirst$TE(e); +}); + +Clazz_newMeth(C$, 'poll$', function () { +return this.q.pollFirst$(); +}); + +Clazz_newMeth(C$, 'remove$', function () { +return this.q.removeFirst$(); +}); + +Clazz_newMeth(C$, 'peek$', function () { +return this.q.peekFirst$(); +}); + +Clazz_newMeth(C$, 'element$', function () { +return this.q.getFirst$(); +}); + +Clazz_newMeth(C$, 'clear$', function () { +this.q.clear$(); +}); + +Clazz_newMeth(C$, 'size$', function () { +return this.q.size$(); +}); + +Clazz_newMeth(C$, 'isEmpty$', function () { +return this.q.isEmpty$(); +}); + +Clazz_newMeth(C$, 'contains$O', function (o) { +return this.q.contains$O(o); +}); + +Clazz_newMeth(C$, 'remove$O', function (o) { +return this.q.remove$O(o); +}); + +Clazz_newMeth(C$, 'iterator$', function () { +return this.q.iterator$(); +}); + +Clazz_newMeth(C$, 'toArray$', function () { +return this.q.toArray$(); +}); + +Clazz_newMeth(C$, 'toArray$TTA', function (a) { +return this.q.toArray$TTA(a); +}); + +Clazz_newMeth(C$, 'toString', function () { +return this.q.toString(); +}); + +Clazz_newMeth(C$, 'containsAll$java_util_Collection', function (c) { +return this.q.containsAll$java_util_Collection(c); +}); + +Clazz_newMeth(C$, 'removeAll$java_util_Collection', function (c) { +return this.q.removeAll$java_util_Collection(c); +}); + +Clazz_newMeth(C$, 'retainAll$java_util_Collection', function (c) { +return this.q.retainAll$java_util_Collection(c); +}); + +Clazz_newMeth(C$, 'forEach$java_util_function_Consumer', function (action) { +this.q.forEach$java_util_function_Consumer(action); +}); + +Clazz_newMeth(C$, 'removeIf$java_util_function_Predicate', function (filter) { +return this.q.removeIf$java_util_function_Predicate(filter); +}); + +Clazz_newMeth(C$, 'spliterator$', function () { +return this.q.spliterator$(); +}); + +Clazz_newMeth(C$, 'stream$', function () { +return this.q.stream$(); +}); + +Clazz_newMeth(C$, 'parallelStream$', function () { +return this.q.parallelStream$(); +}); + +Clazz_newMeth(C$); +})() +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:39 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=java.util,I$=[[0,'java.util.Collections','java.util.Objects',['java.util.Comparators','.NaturalOrderComparator'],['java.util.Comparators','.NullComparator']]],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newInterface(P$, "Comparator"); + +Clazz_newMeth(C$, 'reverseOrder$', function () { +return $I$(1).reverseOrder$(); +}, 1); + +Clazz_newMeth(C$, 'naturalOrder$', function () { +return $I$(3).INSTANCE; +}, 1); + +Clazz_newMeth(C$, 'nullsFirst$java_util_Comparator', function (comparator) { +return Clazz_new_($I$(4).c$$Z$java_util_Comparator,[true, comparator]); +}, 1); + +Clazz_newMeth(C$, 'nullsLast$java_util_Comparator', function (comparator) { +return Clazz_new_($I$(4).c$$Z$java_util_Comparator,[false, comparator]); +}, 1); + +Clazz_newMeth(C$, 'comparing$java_util_function_Function$java_util_Comparator', function (keyExtractor, keyComparator) { +$I$(2).requireNonNull$TT(keyExtractor); +$I$(2).requireNonNull$TT(keyComparator); +return ((P$.Comparator$lambda2|| +(function(){var C$=Clazz_newClass(P$, "Comparator$lambda2", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, '', 1); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); +/*lambda_E*/ +Clazz_newMeth(C$, ['compare$'], function (c1, c2) { return (this.$finals$.keyComparator.compare$(this.$finals$.keyExtractor.apply$(c1), this.$finals$.keyExtractor.apply$(c2)));}); +})() +), Clazz_new_(P$.Comparator$lambda2.$init$, [this, {keyComparator: keyComparator, keyExtractor: keyExtractor}])); +}, 1); + +Clazz_newMeth(C$, 'comparing$java_util_function_Function', function (keyExtractor) { +$I$(2).requireNonNull$TT(keyExtractor); +return ((P$.Comparator$lambda3|| +(function(){var C$=Clazz_newClass(P$, "Comparator$lambda3", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, '', 1); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); +/*lambda_E*/ +Clazz_newMeth(C$, ['compare$'], function (c1, c2) { return (this.$finals$.keyExtractor.apply$(c1).compareTo$(this.$finals$.keyExtractor.apply$(c2)));}); +})() +), Clazz_new_(P$.Comparator$lambda3.$init$, [this, {keyExtractor: keyExtractor}])); +}, 1); + +Clazz_newMeth(C$, 'comparingInt$java_util_function_ToIntFunction', function (keyExtractor) { +$I$(2).requireNonNull$TT(keyExtractor); +return ((P$.Comparator$lambda4|| +(function(){var C$=Clazz_newClass(P$, "Comparator$lambda4", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, '', 1); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); +/*lambda_E*/ +Clazz_newMeth(C$, ['compare$'], function (c1, c2) { return (Integer.compare$I$I(this.$finals$.keyExtractor.applyAsInt$(c1), this.$finals$.keyExtractor.applyAsInt$(c2)));}); +})() +), Clazz_new_(P$.Comparator$lambda4.$init$, [this, {keyExtractor: keyExtractor}])); +}, 1); + +Clazz_newMeth(C$, 'comparingLong$java_util_function_ToLongFunction', function (keyExtractor) { +$I$(2).requireNonNull$TT(keyExtractor); +return ((P$.Comparator$lambda5|| +(function(){var C$=Clazz_newClass(P$, "Comparator$lambda5", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, '', 1); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); +/*lambda_E*/ +Clazz_newMeth(C$, ['compare$'], function (c1, c2) { return (Long.compare$J$J(this.$finals$.keyExtractor.applyAsLong$(c1), this.$finals$.keyExtractor.applyAsLong$(c2)));}); +})() +), Clazz_new_(P$.Comparator$lambda5.$init$, [this, {keyExtractor: keyExtractor}])); +}, 1); + +Clazz_newMeth(C$, 'comparingDouble$java_util_function_ToDoubleFunction', function (keyExtractor) { +$I$(2).requireNonNull$TT(keyExtractor); +return ((P$.Comparator$lambda6|| +(function(){var C$=Clazz_newClass(P$, "Comparator$lambda6", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, '', 1); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); +/*lambda_E*/ +Clazz_newMeth(C$, ['compare$'], function (c1, c2) { return (Double.compare$D$D(this.$finals$.keyExtractor.applyAsDouble$(c1), this.$finals$.keyExtractor.applyAsDouble$(c2)));}); +})() +), Clazz_new_(P$.Comparator$lambda6.$init$, [this, {keyExtractor: keyExtractor}])); +}, 1); +C$.$defaults$ = function(C$){ + +Clazz_newMeth(C$, 'reversed$', function () { +return $I$(1).reverseOrder$java_util_Comparator(this); +}); + +Clazz_newMeth(C$, 'thenComparing$java_util_Comparator', function (other) { +$I$(2).requireNonNull$TT(other); +return ((P$.Comparator$lambda1|| +(function(){var C$=Clazz_newClass(P$, "Comparator$lambda1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, '', 1); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); +/*lambda_E*/ +Clazz_newMeth(C$, ['compare$'], function (c1, c2) { +var res=this.compare$(c1, c2); +return (res != 0) ? res : this.$finals$.other.compare$(c1, c2); +}); +})() +), Clazz_new_(P$.Comparator$lambda1.$init$, [this, {other: other}])); +}); + +Clazz_newMeth(C$, 'thenComparing$java_util_function_Function$java_util_Comparator', function (keyExtractor, keyComparator) { +return this.thenComparing$java_util_Comparator(C$.comparing$java_util_function_Function$java_util_Comparator(keyExtractor, keyComparator)); +}); + +Clazz_newMeth(C$, 'thenComparing$java_util_function_Function', function (keyExtractor) { +return this.thenComparing$java_util_Comparator(C$.comparing$java_util_function_Function(keyExtractor)); +}); + +Clazz_newMeth(C$, 'thenComparingInt$java_util_function_ToIntFunction', function (keyExtractor) { +return this.thenComparing$java_util_Comparator(C$.comparingInt$java_util_function_ToIntFunction(keyExtractor)); +}); + +Clazz_newMeth(C$, 'thenComparingLong$java_util_function_ToLongFunction', function (keyExtractor) { +return this.thenComparing$java_util_Comparator(C$.comparingLong$java_util_function_ToLongFunction(keyExtractor)); +}); + +Clazz_newMeth(C$, 'thenComparingDouble$java_util_function_ToDoubleFunction', function (keyExtractor) { +return this.thenComparing$java_util_Comparator(C$.comparingDouble$java_util_function_ToDoubleFunction(keyExtractor)); +}); +};})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:40 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=java.util,I$=[]; +var C$=Clazz_newInterface(P$, "Deque", null, null, 'java.util.Queue'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:40 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=java.util,I$=[]; +var C$=Clazz_newClass(P$, "Dictionary"); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.$init$.apply(this); +}, 1); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:40 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=java.util,I$=[]; +var C$=Clazz_newInterface(P$, "Enumeration"); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:40 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=java.util,I$=[]; +var C$=Clazz_newInterface(P$, "EventListener"); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:40 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=java.util,I$=[]; +var C$=Clazz_newClass(P$, "EventObject", null, null, 'java.io.Serializable'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.source=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$O', function (source) { +C$.$init$.apply(this); +if (source == null ) throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["null source"]); +this.source=source; +}, 1); + +Clazz_newMeth(C$, 'getSource$', function () { +return this.source; +}); + +Clazz_newMeth(C$, 'toString', function () { +return this.getClass$().getName$() + "[source=" + this.source + "]" ; +}); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:40 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=java.util,p$1={},I$=[[0,'java.util.Objects',['java.util.HashMap','.KeyIterator'],['java.util.HashMap','.KeySpliterator'],['java.util.HashMap','.ValueIterator'],['java.util.HashMap','.ValueSpliterator'],['java.util.HashMap','.EntryIterator'],['java.util.HashMap','.EntrySpliterator'],['java.util.HashMap','.Node'],['java.util.HashMap','.KeySet'],['java.util.HashMap','.Values'],['java.util.HashMap','.EntrySet'],'InternalError',['java.util.HashMap','.TreeNode']]],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "HashMap", function(){ +Clazz_newInstance(this, arguments,0,C$); +}, 'java.util.AbstractMap', ['java.util.Map', 'Cloneable', 'java.io.Serializable']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.table=null; +this.entrySet=null; +this.size=0; +this.modCount=0; +this.threshold=0; +this.loadFactor=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'hash$O', function (key) { +var h; +return (key == null ) ? 0 : (h=key.hashCode$()) ^ (h >>> 16); +}, 1); + +Clazz_newMeth(C$, 'comparableClassFor$O', function (x) { +if (Clazz_instanceOf(x, "java.lang.Comparable")) { +return x.getClass$(); +}return null; +}, 1); + +Clazz_newMeth(C$, 'compareComparables$Class$O$O', function (kc, k, x) { +return (x == null || x.getClass$() !== kc ? 0 : (k).compareTo$(x)); +}, 1); + +Clazz_newMeth(C$, 'tableSizeFor$I', function (cap) { +var n=cap - 1; +n|=n >>> 1; +n|=n >>> 2; +n|=n >>> 4; +n|=n >>> 8; +n|=n >>> 16; +return (n < 0) ? 1 : (n >= 1073741824) ? 1073741824 : n + 1; +}, 1); + +Clazz_newMeth(C$, 'c$$I$F', function (initialCapacity, loadFactor) { +Clazz_super_(C$, this,1); +if (initialCapacity < 0) throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["Illegal initial capacity: " + initialCapacity]); +if (initialCapacity > 1073741824) initialCapacity=1073741824; +if (loadFactor <= 0 || Float.isNaN$F(loadFactor) ) throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["Illegal load factor: " + new Float(loadFactor).toString()]); +this.loadFactor=loadFactor; +this.threshold=C$.tableSizeFor$I(initialCapacity); +}, 1); + +Clazz_newMeth(C$, 'c$$I', function (initialCapacity) { +C$.c$$I$F.apply(this, [initialCapacity, 0.75]); +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +Clazz_super_(C$, this,1); +this.loadFactor=0.75; +}, 1); + +Clazz_newMeth(C$, 'c$$java_util_Map', function (m) { +Clazz_super_(C$, this,1); +this.loadFactor=0.75; +this.putMapEntries$java_util_Map$Z(m, false); +}, 1); + +Clazz_newMeth(C$, 'putMapEntries$java_util_Map$Z', function (m, evict) { +var s=m.size$(); +if (s > 0) { +if (this.table == null ) { +var ft=(s / this.loadFactor) + 1.0; +var t=((ft < 1.07374182E9 ) ? (ft|0) : 1073741824); +if (t > this.threshold) this.threshold=C$.tableSizeFor$I(t); +} else if (s > this.threshold) this.resize$(); +for (var e, $e = m.entrySet$().iterator$(); $e.hasNext$()&&((e=($e.next$())),1);) { +var key=e.getKey$(); +var value=e.getValue$(); +this.putVal$I$TK$TV$Z$Z(C$.hash$O(key), key, value, false, evict); +} +}}); + +Clazz_newMeth(C$, 'size$', function () { +return this.size; +}); + +Clazz_newMeth(C$, 'isEmpty$', function () { +return this.size == 0; +}); + +Clazz_newMeth(C$, 'get$O', function (key) { +var e; +return (e=this.getNode$I$O(C$.hash$O(key), key)) == null ? null : e.value; +}); + +Clazz_newMeth(C$, ['getNode$I$O'], function (hash, key) { +var tab; +var first; +var e; +var n; +var k; +if ((tab=this.table) != null && (n=tab.length) > 0 && (first=tab[(n - 1) & hash]) != null ) { +if (first.hash == hash && ((k=first.key) === key || (key != null && key.equals$O(k) ) ) ) return first; +if ((e=first.next_) != null ) { +if (Clazz_instanceOf(first, "java.util.HashMap.TreeNode")) return (first).getTreeNode$I$O(hash, key); +do { +if (e.hash == hash && ((k=e.key) === key || (key != null && key.equals$O(k) ) ) ) return e; +} while ((e=e.next_) != null ); +}}return null; +}); + +Clazz_newMeth(C$, 'containsKey$O', function (key) { +return this.getNode$I$O(C$.hash$O(key), key) != null ; +}); + +Clazz_newMeth(C$, ['put$TK$TV'], function (key, value) { +return this.putVal$I$TK$TV$Z$Z(C$.hash$O(key), key, value, false, true); +}); + +Clazz_newMeth(C$, ['putVal$I$TK$TV$Z$Z'], function (hash, key, value, onlyIfAbsent, evict) { +var tab; +var p; +var n; +var i; +if ((tab=this.table) == null || (n=tab.length) == 0 ) n=(tab=this.resize$()).length; +if ((p=tab[i=(n - 1) & hash]) == null ) tab[i]=this.newNode$I$TK$TV$java_util_HashMap_Node(hash, key, value, null); + else { +var e; +var k; +if (p.hash == hash && ((k=p.key) === key || (key != null && key.equals$O(k) ) ) ) e=p; + else if (Clazz_instanceOf(p, "java.util.HashMap.TreeNode")) e=(p).putTreeVal$java_util_HashMap$java_util_HashMap_NodeA$I$TK$TV(this, tab, hash, key, value); + else { +for (var binCount=0; ; ++binCount) { +if ((e=p.next_) == null ) { +p.next_=this.newNode$I$TK$TV$java_util_HashMap_Node(hash, key, value, null); +if (binCount >= 7) this.treeifyBin$java_util_HashMap_NodeA$I(tab, hash); +break; +}if (e.hash == hash && ((k=e.key) === key || (key != null && key.equals$O(k) ) ) ) break; +p=e; +} +}if (e != null ) { +var oldValue=e.value; +if (!onlyIfAbsent || oldValue == null ) e.value=value; +this.afterNodeAccess$java_util_HashMap_Node(e); +return oldValue; +}}++this.modCount; +if (++this.size > this.threshold) this.resize$(); +this.afterNodeInsertion$Z(evict); +return null; +}); + +Clazz_newMeth(C$, 'resize$', function () { +var oldTab=this.table; +var oldCap=(oldTab == null ) ? 0 : oldTab.length; +var oldThr=this.threshold; +var newCap; +var newThr=0; +if (oldCap > 0) { +if (oldCap >= 1073741824) { +this.threshold=2147483647; +return oldTab; +} else if ((newCap=oldCap << 1) < 1073741824 && oldCap >= 16 ) newThr=oldThr << 1; +} else if (oldThr > 0) newCap=oldThr; + else { +newCap=16; +newThr=12; +}if (newThr == 0) { +var ft=newCap * this.loadFactor; +newThr=(newCap < 1073741824 && ft < 1.07374182E9 ? (ft|0) : 2147483647); +}this.threshold=newThr; +var newTab=Clazz_array($I$(8), [newCap]); +this.table=newTab; +if (oldTab != null ) { +for (var j=0; j < oldCap; ++j) { +var e; +if ((e=oldTab[j]) != null ) { +oldTab[j]=null; +if (e.next_ == null ) newTab[e.hash & (newCap - 1)]=e; + else if (Clazz_instanceOf(e, "java.util.HashMap.TreeNode")) (e).split$java_util_HashMap$java_util_HashMap_NodeA$I$I(this, newTab, j, oldCap); + else { +var loHead=null; +var loTail=null; +var hiHead=null; +var hiTail=null; +var next; +do { +next=e.next_; +if ((e.hash & oldCap) == 0) { +if (loTail == null ) loHead=e; + else loTail.next_=e; +loTail=e; +} else { +if (hiTail == null ) hiHead=e; + else hiTail.next_=e; +hiTail=e; +}} while ((e=next) != null ); +if (loTail != null ) { +loTail.next_=null; +newTab[j]=loHead; +}if (hiTail != null ) { +hiTail.next_=null; +newTab[j + oldCap]=hiHead; +}}}} +}return newTab; +}); + +Clazz_newMeth(C$, ['treeifyBin$java_util_HashMap_NodeA$I'], function (tab, hash) { +var n; +var index; +var e; +if (tab == null || (n=tab.length) < 64 ) this.resize$(); + else if ((e=tab[index=(n - 1) & hash]) != null ) { +var hd=null; +var tl=null; +do { +var p=this.replacementTreeNode$java_util_HashMap_Node$java_util_HashMap_Node(e, null); +if (tl == null ) hd=p; + else { +p.prev=tl; +tl.next_=p; +}tl=p; +} while ((e=e.next_) != null ); +if ((tab[index]=hd) != null ) hd.treeify$java_util_HashMap_NodeA(tab); +}}); + +Clazz_newMeth(C$, 'putAll$java_util_Map', function (m) { +this.putMapEntries$java_util_Map$Z(m, true); +}); + +Clazz_newMeth(C$, 'remove$O', function (key) { +var e; +return (e=this.removeNode$I$O$O$Z$Z(C$.hash$O(key), key, null, false, true)) == null ? null : e.value; +}); + +Clazz_newMeth(C$, ['removeNode$I$O$O$Z$Z'], function (hash, key, value, matchValue, movable) { +var tab; +var p; +var n; +var index; +if ((tab=this.table) != null && (n=tab.length) > 0 && (p=tab[index=(n - 1) & hash]) != null ) { +var node=null; +var e; +var k; +var v; +if (p.hash == hash && ((k=p.key) === key || (key != null && key.equals$O(k) ) ) ) node=p; + else if ((e=p.next_) != null ) { +if (Clazz_instanceOf(p, "java.util.HashMap.TreeNode")) node=(p).getTreeNode$I$O(hash, key); + else { +do { +if (e.hash == hash && ((k=e.key) === key || (key != null && key.equals$O(k) ) ) ) { +node=e; +break; +}p=e; +} while ((e=e.next_) != null ); +}}if (node != null && (!matchValue || (v=node.value) === value || (value != null && value.equals$O(v) ) ) ) { +if (Clazz_instanceOf(node, "java.util.HashMap.TreeNode")) (node).removeTreeNode$java_util_HashMap$java_util_HashMap_NodeA$Z(this, tab, movable); + else if (node === p ) tab[index]=node.next_; + else p.next_=node.next_; +++this.modCount; +--this.size; +this.afterNodeRemoval$java_util_HashMap_Node(node); +return node; +}}return null; +}); + +Clazz_newMeth(C$, 'clear$', function () { +var tab; +this.modCount++; +if ((tab=this.table) != null && this.size > 0 ) { +this.size=0; +for (var i=0; i < tab.length; ++i) tab[i]=null; + +}}); + +Clazz_newMeth(C$, 'containsValue$O', function (value) { +var tab; +var v; +if ((tab=this.table) != null && this.size > 0 ) { +for (var i=0; i < tab.length; ++i) { +for (var e=tab[i]; e != null ; e=e.next_) { +if ((v=e.value) === value || (value != null && value.equals$O(v) ) ) return true; +} +} +}return false; +}); + +Clazz_newMeth(C$, 'keySet$', function () { +var ks; +return (ks=this.keySet) == null ? (this.keySet=Clazz_new_($I$(9), [this, null])) : ks; +}); + +Clazz_newMeth(C$, 'values$', function () { +var vs; +return (vs=this.values) == null ? (this.values=Clazz_new_($I$(10), [this, null])) : vs; +}); + +Clazz_newMeth(C$, 'entrySet$', function () { +var es; +return (es=this.entrySet) == null ? (this.entrySet=Clazz_new_($I$(11), [this, null])) : es; +}); + +Clazz_newMeth(C$, ['getOrDefault$O$TV'], function (key, defaultValue) { +var e; +return (e=this.getNode$I$O(C$.hash$O(key), key)) == null ? defaultValue : e.value; +}); + +Clazz_newMeth(C$, ['putIfAbsent$TK$TV'], function (key, value) { +return this.putVal$I$TK$TV$Z$Z(C$.hash$O(key), key, value, true, true); +}); + +Clazz_newMeth(C$, 'remove$O$O', function (key, value) { +return this.removeNode$I$O$O$Z$Z(C$.hash$O(key), key, value, true, true) != null ; +}); + +Clazz_newMeth(C$, ['replace$TK$TV$TV'], function (key, oldValue, newValue) { +var e; +var v; +if ((e=this.getNode$I$O(C$.hash$O(key), key)) != null && ((v=e.value) === oldValue || (v != null && v.equals$O(oldValue) ) ) ) { +e.value=newValue; +this.afterNodeAccess$java_util_HashMap_Node(e); +return true; +}return false; +}); + +Clazz_newMeth(C$, ['replace$TK$TV'], function (key, value) { +var e; +if ((e=this.getNode$I$O(C$.hash$O(key), key)) != null ) { +var oldValue=e.value; +e.value=value; +this.afterNodeAccess$java_util_HashMap_Node(e); +return oldValue; +}return null; +}); + +Clazz_newMeth(C$, ['computeIfAbsent$TK$java_util_function_Function'], function (key, mappingFunction) { +if (mappingFunction == null ) throw Clazz_new_(Clazz_load('NullPointerException')); +var hash=C$.hash$O(key); +var tab; +var first; +var n; +var i; +var binCount=0; +var t=null; +var old=null; +if (this.size > this.threshold || (tab=this.table) == null || (n=tab.length) == 0 ) n=(tab=this.resize$()).length; +if ((first=tab[i=(n - 1) & hash]) != null ) { +if (Clazz_instanceOf(first, "java.util.HashMap.TreeNode")) old=(t=first).getTreeNode$I$O(hash, key); + else { +var e=first; +var k; +do { +if (e.hash == hash && ((k=e.key) === key || (key != null && key.equals$O(k) ) ) ) { +old=e; +break; +}++binCount; +} while ((e=e.next_) != null ); +}var oldValue; +if (old != null && (oldValue=old.value) != null ) { +this.afterNodeAccess$java_util_HashMap_Node(old); +return oldValue; +}}var v=mappingFunction.apply$(key); +if (v == null ) { +return null; +} else if (old != null ) { +old.value=v; +this.afterNodeAccess$java_util_HashMap_Node(old); +return v; +} else if (t != null ) t.putTreeVal$java_util_HashMap$java_util_HashMap_NodeA$I$TK$TV(this, tab, hash, key, v); + else { +tab[i]=this.newNode$I$TK$TV$java_util_HashMap_Node(hash, key, v, first); +if (binCount >= 7) this.treeifyBin$java_util_HashMap_NodeA$I(tab, hash); +}++this.modCount; +++this.size; +this.afterNodeInsertion$Z(true); +return v; +}); + +Clazz_newMeth(C$, ['computeIfPresent$TK$java_util_function_BiFunction'], function (key, remappingFunction) { +if (remappingFunction == null ) throw Clazz_new_(Clazz_load('NullPointerException')); +var e; +var oldValue; +var hash=C$.hash$O(key); +if ((e=this.getNode$I$O(hash, key)) != null && (oldValue=e.value) != null ) { +var v=remappingFunction.apply$(key, oldValue); +if (v != null ) { +e.value=v; +this.afterNodeAccess$java_util_HashMap_Node(e); +return v; +} else this.removeNode$I$O$O$Z$Z(hash, key, null, false, true); +}return null; +}); + +Clazz_newMeth(C$, ['compute$TK$java_util_function_BiFunction'], function (key, remappingFunction) { +if (remappingFunction == null ) throw Clazz_new_(Clazz_load('NullPointerException')); +var hash=C$.hash$O(key); +var tab; +var first; +var n; +var i; +var binCount=0; +var t=null; +var old=null; +if (this.size > this.threshold || (tab=this.table) == null || (n=tab.length) == 0 ) n=(tab=this.resize$()).length; +if ((first=tab[i=(n - 1) & hash]) != null ) { +if (Clazz_instanceOf(first, "java.util.HashMap.TreeNode")) old=(t=first).getTreeNode$I$O(hash, key); + else { +var e=first; +var k; +do { +if (e.hash == hash && ((k=e.key) === key || (key != null && key.equals$O(k) ) ) ) { +old=e; +break; +}++binCount; +} while ((e=e.next_) != null ); +}}var oldValue=(old == null ) ? null : old.value; +var v=remappingFunction.apply$(key, oldValue); +if (old != null ) { +if (v != null ) { +old.value=v; +this.afterNodeAccess$java_util_HashMap_Node(old); +} else this.removeNode$I$O$O$Z$Z(hash, key, null, false, true); +} else if (v != null ) { +if (t != null ) t.putTreeVal$java_util_HashMap$java_util_HashMap_NodeA$I$TK$TV(this, tab, hash, key, v); + else { +tab[i]=this.newNode$I$TK$TV$java_util_HashMap_Node(hash, key, v, first); +if (binCount >= 7) this.treeifyBin$java_util_HashMap_NodeA$I(tab, hash); +}++this.modCount; +++this.size; +this.afterNodeInsertion$Z(true); +}return v; +}); + +Clazz_newMeth(C$, ['merge$TK$TV$java_util_function_BiFunction'], function (key, value, remappingFunction) { +if (value == null ) throw Clazz_new_(Clazz_load('NullPointerException')); +if (remappingFunction == null ) throw Clazz_new_(Clazz_load('NullPointerException')); +var hash=C$.hash$O(key); +var tab; +var first; +var n; +var i; +var binCount=0; +var t=null; +var old=null; +if (this.size > this.threshold || (tab=this.table) == null || (n=tab.length) == 0 ) n=(tab=this.resize$()).length; +if ((first=tab[i=(n - 1) & hash]) != null ) { +if (Clazz_instanceOf(first, "java.util.HashMap.TreeNode")) old=(t=first).getTreeNode$I$O(hash, key); + else { +var e=first; +var k; +do { +if (e.hash == hash && ((k=e.key) === key || (key != null && key.equals$O(k) ) ) ) { +old=e; +break; +}++binCount; +} while ((e=e.next_) != null ); +}}if (old != null ) { +var v; +if (old.value != null ) v=remappingFunction.apply$(old.value, value); + else v=value; +if (v != null ) { +old.value=v; +this.afterNodeAccess$java_util_HashMap_Node(old); +} else this.removeNode$I$O$O$Z$Z(hash, key, null, false, true); +return v; +}if (value != null ) { +if (t != null ) t.putTreeVal$java_util_HashMap$java_util_HashMap_NodeA$I$TK$TV(this, tab, hash, key, value); + else { +tab[i]=this.newNode$I$TK$TV$java_util_HashMap_Node(hash, key, value, first); +if (binCount >= 7) this.treeifyBin$java_util_HashMap_NodeA$I(tab, hash); +}++this.modCount; +++this.size; +this.afterNodeInsertion$Z(true); +}return value; +}); + +Clazz_newMeth(C$, 'forEach$java_util_function_BiConsumer', function (action) { +var tab; +if (action == null ) throw Clazz_new_(Clazz_load('NullPointerException')); +if (this.size > 0 && (tab=this.table) != null ) { +var mc=this.modCount; +for (var i=0; i < tab.length; ++i) { +for (var e=tab[i]; e != null ; e=e.next_) action.accept$(e.key, e.value); + +} +if (this.modCount != mc) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +}}); + +Clazz_newMeth(C$, 'replaceAll$java_util_function_BiFunction', function ($function) { +var tab; +if ($function == null ) throw Clazz_new_(Clazz_load('NullPointerException')); +if (this.size > 0 && (tab=this.table) != null ) { +var mc=this.modCount; +for (var i=0; i < tab.length; ++i) { +for (var e=tab[i]; e != null ; e=e.next_) { +e.value=$function.apply$(e.key, e.value); +} +} +if (this.modCount != mc) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +}}); + +Clazz_newMeth(C$, 'clone$', function () { +var result; +try { +result=C$.superclazz.prototype.clone$.apply(this, []); +} catch (e) { +if (Clazz_exceptionOf(e,"CloneNotSupportedException")){ +throw Clazz_new_($I$(12).c$$Throwable,[e]); +} else { +throw e; +} +} +result.reinitialize$(); +result.putMapEntries$java_util_Map$Z(this, false); +return result; +}); + +Clazz_newMeth(C$, 'loadFactor$', function () { +return this.loadFactor; +}); + +Clazz_newMeth(C$, 'capacity$', function () { +return (this.table != null ) ? this.table.length : (this.threshold > 0) ? this.threshold : 16; +}); + +Clazz_newMeth(C$, 'writeObject$java_io_ObjectOutputStream', function (s) { +var buckets=this.capacity$(); +s.defaultWriteObject$(); +s.writeInt$I(buckets); +s.writeInt$I(this.size); +this.internalWriteEntries$java_io_ObjectOutputStream(s); +}, p$1); + +Clazz_newMeth(C$, 'readObject$java_io_ObjectInputStream', function (s) { +s.defaultReadObject$(); +this.reinitialize$(); +if (this.loadFactor <= 0 || Float.isNaN$F(this.loadFactor) ) throw Clazz_new_(Clazz_load('java.io.InvalidObjectException').c$$S,["Illegal load factor: " + new Float(this.loadFactor).toString()]); +s.readInt$(); +var mappings=s.readInt$(); +if (mappings < 0) throw Clazz_new_(Clazz_load('java.io.InvalidObjectException').c$$S,["Illegal mappings count: " + mappings]); + else if (mappings > 0) { +var lf=Math.min(Math.max(0.25, this.loadFactor), 4.0); +var fc=mappings / lf + 1.0; +var cap=((fc < 16 ) ? 16 : (fc >= 1073741824 ) ? 1073741824 : C$.tableSizeFor$I((fc|0))); +var ft=cap * lf; +this.threshold=((cap < 1073741824 && ft < 1073741824 ) ? (ft|0) : 2147483647); +var tab=Clazz_array($I$(8), [cap]); +this.table=tab; +for (var i=0; i < mappings; i++) { +var key=s.readObject$(); +var value=s.readObject$(); +this.putVal$I$TK$TV$Z$Z(C$.hash$O(key), key, value, false, false); +} +}}, p$1); + +Clazz_newMeth(C$, ['newNode$I$TK$TV$java_util_HashMap_Node'], function (hash, key, value, next) { +return Clazz_new_($I$(8).c$$I$TK$TV$java_util_HashMap_Node,[hash, key, value, next]); +}); + +Clazz_newMeth(C$, ['replacementNode$java_util_HashMap_Node$java_util_HashMap_Node'], function (p, next) { +return Clazz_new_($I$(8).c$$I$TK$TV$java_util_HashMap_Node,[p.hash, p.key, p.value, next]); +}); + +Clazz_newMeth(C$, ['newTreeNode$I$TK$TV$java_util_HashMap_Node'], function (hash, key, value, next) { +return Clazz_new_($I$(13).c$$I$TK$TV$java_util_HashMap_Node,[hash, key, value, next]); +}); + +Clazz_newMeth(C$, ['replacementTreeNode$java_util_HashMap_Node$java_util_HashMap_Node'], function (p, next) { +return Clazz_new_($I$(13).c$$I$TK$TV$java_util_HashMap_Node,[p.hash, p.key, p.value, next]); +}); + +Clazz_newMeth(C$, 'reinitialize$', function () { +this.table=null; +this.entrySet=null; +this.keySet=null; +this.values=null; +this.modCount=0; +this.threshold=0; +this.size=0; +}); + +Clazz_newMeth(C$, ['afterNodeAccess$java_util_HashMap_Node'], function (p) { +}); + +Clazz_newMeth(C$, 'afterNodeInsertion$Z', function (evict) { +}); + +Clazz_newMeth(C$, ['afterNodeRemoval$java_util_HashMap_Node'], function (p) { +}); + +Clazz_newMeth(C$, 'internalWriteEntries$java_io_ObjectOutputStream', function (s) { +var tab; +if (this.size > 0 && (tab=this.table) != null ) { +for (var i=0; i < tab.length; ++i) { +for (var e=tab[i]; e != null ; e=e.next_) { +s.writeObject$O(e.key); +s.writeObject$O(e.value); +} +} +}}); +; +(function(){var C$=Clazz_newClass(P$.HashMap, "Node", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, null, [['java.util.Map','java.util.Map.Entry']]); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.hash=0; +this.key=null; +this.value=null; +this.next_=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, ['c$$I$TK$TV$java_util_HashMap_Node'], function (hash, key, value, next) { +C$.$init$.apply(this); +this.hash=hash; +this.key=key; +this.value=value; +this.next_=next; +}, 1); + +Clazz_newMeth(C$, 'getKey$', function () { +return this.key; +}); + +Clazz_newMeth(C$, 'getValue$', function () { +return this.value; +}); + +Clazz_newMeth(C$, 'toString', function () { +return this.key + "=" + this.value ; +}); + +Clazz_newMeth(C$, 'hashCode$', function () { +return $I$(1).hashCode$O(this.key) ^ $I$(1).hashCode$O(this.value); +}); + +Clazz_newMeth(C$, ['setValue$TV'], function (newValue) { +var oldValue=this.value; +this.value=newValue; +return oldValue; +}); + +Clazz_newMeth(C$, 'equals$O', function (o) { +if (o === this ) return true; +if (Clazz_instanceOf(o, "java.util.Map.Entry")) { +var e=o; +if ($I$(1).equals$O$O(this.key, e.getKey$()) && $I$(1).equals$O$O(this.value, e.getValue$()) ) return true; +}return false; +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.HashMap, "KeySet", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, 'java.util.AbstractSet'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'size$', function () { +return this.this$0.size; +}); + +Clazz_newMeth(C$, 'clear$', function () { +this.b$['java.util.HashMap'].clear$.apply(this.b$['java.util.HashMap'], []); +}); + +Clazz_newMeth(C$, 'iterator$', function () { +return Clazz_new_($I$(2), [this, null]); +}); + +Clazz_newMeth(C$, 'contains$O', function (o) { +return this.b$['java.util.HashMap'].containsKey$O.apply(this.b$['java.util.HashMap'], [o]); +}); + +Clazz_newMeth(C$, 'remove$O', function (key) { +return this.b$['java.util.HashMap'].removeNode$I$O$O$Z$Z.apply(this.b$['java.util.HashMap'], [P$.HashMap.hash$O(key), key, null, false, true]) != null ; +}); + +Clazz_newMeth(C$, 'spliterator$', function () { +return Clazz_new_($I$(3).c$$java_util_HashMap$I$I$I$I,[this.b$['java.util.HashMap'], 0, -1, 0, 0]); +}); + +Clazz_newMeth(C$, 'forEach$java_util_function_Consumer', function (action) { +var tab; +if (action == null ) throw Clazz_new_(Clazz_load('NullPointerException')); +if (this.this$0.size > 0 && (tab=this.this$0.table) != null ) { +var mc=this.this$0.modCount; +for (var i=0; i < tab.length; ++i) { +for (var e=tab[i]; e != null ; e=e.next_) action.accept$(e.key); + +} +if (this.this$0.modCount != mc) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +}}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.HashMap, "Values", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, 'java.util.AbstractCollection'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'size$', function () { +return this.this$0.size; +}); + +Clazz_newMeth(C$, 'clear$', function () { +this.b$['java.util.HashMap'].clear$.apply(this.b$['java.util.HashMap'], []); +}); + +Clazz_newMeth(C$, 'iterator$', function () { +return Clazz_new_($I$(4), [this, null]); +}); + +Clazz_newMeth(C$, 'contains$O', function (o) { +return this.b$['java.util.HashMap'].containsValue$O.apply(this.b$['java.util.HashMap'], [o]); +}); + +Clazz_newMeth(C$, 'spliterator$', function () { +return Clazz_new_($I$(5).c$$java_util_HashMap$I$I$I$I,[this.b$['java.util.HashMap'], 0, -1, 0, 0]); +}); + +Clazz_newMeth(C$, 'forEach$java_util_function_Consumer', function (action) { +var tab; +if (action == null ) throw Clazz_new_(Clazz_load('NullPointerException')); +if (this.this$0.size > 0 && (tab=this.this$0.table) != null ) { +var mc=this.this$0.modCount; +for (var i=0; i < tab.length; ++i) { +for (var e=tab[i]; e != null ; e=e.next_) action.accept$(e.value); + +} +if (this.this$0.modCount != mc) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +}}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.HashMap, "EntrySet", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, 'java.util.AbstractSet'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'size$', function () { +return this.this$0.size; +}); + +Clazz_newMeth(C$, 'clear$', function () { +this.b$['java.util.HashMap'].clear$.apply(this.b$['java.util.HashMap'], []); +}); + +Clazz_newMeth(C$, 'iterator$', function () { +return Clazz_new_($I$(6), [this, null]); +}); + +Clazz_newMeth(C$, 'contains$O', function (o) { +if (!(Clazz_instanceOf(o, "java.util.Map.Entry"))) return false; +var e=o; +var key=e.getKey$(); +var candidate=this.b$['java.util.HashMap'].getNode$I$O.apply(this.b$['java.util.HashMap'], [P$.HashMap.hash$O(key), key]); +return candidate != null && candidate.equals$O(e) ; +}); + +Clazz_newMeth(C$, 'remove$O', function (o) { +if (Clazz_instanceOf(o, "java.util.Map.Entry")) { +var e=o; +var key=e.getKey$(); +var value=e.getValue$(); +return this.b$['java.util.HashMap'].removeNode$I$O$O$Z$Z.apply(this.b$['java.util.HashMap'], [P$.HashMap.hash$O(key), key, value, true, true]) != null ; +}return false; +}); + +Clazz_newMeth(C$, 'spliterator$', function () { +return Clazz_new_($I$(7).c$$java_util_HashMap$I$I$I$I,[this.b$['java.util.HashMap'], 0, -1, 0, 0]); +}); + +Clazz_newMeth(C$, 'forEach$java_util_function_Consumer', function (action) { +var tab; +if (action == null ) throw Clazz_new_(Clazz_load('NullPointerException')); +if (this.this$0.size > 0 && (tab=this.this$0.table) != null ) { +var mc=this.this$0.modCount; +for (var i=0; i < tab.length; ++i) { +for (var e=tab[i]; e != null ; e=e.next_) action.accept$(e); + +} +if (this.this$0.modCount != mc) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +}}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.HashMap, "HashIterator", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.next_=null; +this.current=null; +this.expectedModCount=0; +this.index=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.$init$.apply(this); +this.expectedModCount=this.this$0.modCount; +var t=this.this$0.table; +this.current=this.next_=null; +this.index=0; +if (t != null && this.this$0.size > 0 ) { +do { +} while (this.index < t.length && (this.next_=t[this.index++]) == null ); +}}, 1); + +Clazz_newMeth(C$, 'hasNext$', function () { +return this.next_ != null ; +}); + +Clazz_newMeth(C$, 'nextNode$', function () { +var t; +var e=this.next_; +if (this.this$0.modCount != this.expectedModCount) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +if (e == null ) throw Clazz_new_(Clazz_load('java.util.NoSuchElementException')); +if ((this.next_=(this.current=e).next_) == null && (t=this.this$0.table) != null ) { +do { +} while (this.index < t.length && (this.next_=t[this.index++]) == null ); +}return e; +}); + +Clazz_newMeth(C$, 'remove$', function () { +var p=this.current; +if (p == null ) throw Clazz_new_(Clazz_load('IllegalStateException')); +if (this.this$0.modCount != this.expectedModCount) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +this.current=null; +var key=p.key; +this.b$['java.util.HashMap'].removeNode$I$O$O$Z$Z.apply(this.b$['java.util.HashMap'], [P$.HashMap.hash$O(key), key, null, false, false]); +this.expectedModCount=this.this$0.modCount; +}); +})() +; +(function(){var C$=Clazz_newClass(P$.HashMap, "KeyIterator", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, ['java.util.HashMap','.HashIterator'], 'java.util.Iterator'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'next$', function () { +return this.nextNode$().key; +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.HashMap, "ValueIterator", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, ['java.util.HashMap','.HashIterator'], 'java.util.Iterator'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'next$', function () { +return this.nextNode$().value; +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.HashMap, "EntryIterator", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, ['java.util.HashMap','.HashIterator'], 'java.util.Iterator'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'next$', function () { +return this.nextNode$(); +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.HashMap, "HashMapSpliterator", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.map=null; +this.current=null; +this.index=0; +this.fence=0; +this.est=0; +this.expectedModCount=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$java_util_HashMap$I$I$I$I', function (m, origin, fence, est, expectedModCount) { +C$.$init$.apply(this); +this.map=m; +this.index=origin; +this.fence=fence; +this.est=est; +this.expectedModCount=expectedModCount; +}, 1); + +Clazz_newMeth(C$, 'getFence$', function () { +var hi; +if ((hi=this.fence) < 0) { +var m=this.map; +this.est=m.size; +this.expectedModCount=m.modCount; +var tab=m.table; +hi=this.fence=(tab == null ) ? 0 : tab.length; +}return hi; +}); + +Clazz_newMeth(C$, 'estimateSize$', function () { +this.getFence$(); +return this.est; +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.HashMap, "KeySpliterator", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, ['java.util.HashMap','.HashMapSpliterator'], 'java.util.Spliterator'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, ['c$$java_util_HashMap$I$I$I$I'], function (m, origin, fence, est, expectedModCount) { +C$.superclazz.c$$java_util_HashMap$I$I$I$I.apply(this, [m, origin, fence, est, expectedModCount]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'trySplit$', function () { +var hi=this.getFence$(); +var lo=this.index; +var mid=(lo + hi) >>> 1; +return (lo >= mid || this.current != null ) ? null : Clazz_new_(C$.c$$java_util_HashMap$I$I$I$I,[this.map, lo, this.index=mid, this.est>>>=1, this.expectedModCount]); +}); + +Clazz_newMeth(C$, 'forEachRemaining$java_util_function_Consumer', function (action) { +var i; +var hi; +var mc; +if (action == null ) throw Clazz_new_(Clazz_load('NullPointerException')); +var m=this.map; +var tab=m.table; +if ((hi=this.fence) < 0) { +mc=this.expectedModCount=m.modCount; +hi=this.fence=(tab == null ) ? 0 : tab.length; +} else mc=this.expectedModCount; +if (tab != null && tab.length >= hi && (i=this.index) >= 0 && (i < (this.index=hi) || this.current != null ) ) { +var p=this.current; +this.current=null; +do { +if (p == null ) p=tab[i++]; + else { +action.accept$(p.key); +p=p.next_; +}} while (p != null || i < hi ); +if (m.modCount != mc) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +}}); + +Clazz_newMeth(C$, 'tryAdvance$java_util_function_Consumer', function (action) { +var hi; +if (action == null ) throw Clazz_new_(Clazz_load('NullPointerException')); +var tab=this.map.table; +if (tab != null && tab.length >= (hi=this.getFence$()) && this.index >= 0 ) { +while (this.current != null || this.index < hi ){ +if (this.current == null ) this.current=tab[this.index++]; + else { +var k=this.current.key; +this.current=this.current.next_; +action.accept$(k); +if (this.map.modCount != this.expectedModCount) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +return true; +}} +}return false; +}); + +Clazz_newMeth(C$, 'characteristics$', function () { +return (this.fence < 0 || this.est == this.map.size ? 64 : 0) | 1; +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.HashMap, "ValueSpliterator", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, ['java.util.HashMap','.HashMapSpliterator'], 'java.util.Spliterator'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, ['c$$java_util_HashMap$I$I$I$I'], function (m, origin, fence, est, expectedModCount) { +C$.superclazz.c$$java_util_HashMap$I$I$I$I.apply(this, [m, origin, fence, est, expectedModCount]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'trySplit$', function () { +var hi=this.getFence$(); +var lo=this.index; +var mid=(lo + hi) >>> 1; +return (lo >= mid || this.current != null ) ? null : Clazz_new_(C$.c$$java_util_HashMap$I$I$I$I,[this.map, lo, this.index=mid, this.est>>>=1, this.expectedModCount]); +}); + +Clazz_newMeth(C$, 'forEachRemaining$java_util_function_Consumer', function (action) { +var i; +var hi; +var mc; +if (action == null ) throw Clazz_new_(Clazz_load('NullPointerException')); +var m=this.map; +var tab=m.table; +if ((hi=this.fence) < 0) { +mc=this.expectedModCount=m.modCount; +hi=this.fence=(tab == null ) ? 0 : tab.length; +} else mc=this.expectedModCount; +if (tab != null && tab.length >= hi && (i=this.index) >= 0 && (i < (this.index=hi) || this.current != null ) ) { +var p=this.current; +this.current=null; +do { +if (p == null ) p=tab[i++]; + else { +action.accept$(p.value); +p=p.next_; +}} while (p != null || i < hi ); +if (m.modCount != mc) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +}}); + +Clazz_newMeth(C$, 'tryAdvance$java_util_function_Consumer', function (action) { +var hi; +if (action == null ) throw Clazz_new_(Clazz_load('NullPointerException')); +var tab=this.map.table; +if (tab != null && tab.length >= (hi=this.getFence$()) && this.index >= 0 ) { +while (this.current != null || this.index < hi ){ +if (this.current == null ) this.current=tab[this.index++]; + else { +var v=this.current.value; +this.current=this.current.next_; +action.accept$(v); +if (this.map.modCount != this.expectedModCount) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +return true; +}} +}return false; +}); + +Clazz_newMeth(C$, 'characteristics$', function () { +return (this.fence < 0 || this.est == this.map.size ? 64 : 0); +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.HashMap, "EntrySpliterator", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, ['java.util.HashMap','.HashMapSpliterator'], 'java.util.Spliterator'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, ['c$$java_util_HashMap$I$I$I$I'], function (m, origin, fence, est, expectedModCount) { +C$.superclazz.c$$java_util_HashMap$I$I$I$I.apply(this, [m, origin, fence, est, expectedModCount]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'trySplit$', function () { +var hi=this.getFence$(); +var lo=this.index; +var mid=(lo + hi) >>> 1; +return (lo >= mid || this.current != null ) ? null : Clazz_new_(C$.c$$java_util_HashMap$I$I$I$I,[this.map, lo, this.index=mid, this.est>>>=1, this.expectedModCount]); +}); + +Clazz_newMeth(C$, ['forEachRemaining$java_util_function_Consumer'], function (action) { +var i; +var hi; +var mc; +if (action == null ) throw Clazz_new_(Clazz_load('NullPointerException')); +var m=this.map; +var tab=m.table; +if ((hi=this.fence) < 0) { +mc=this.expectedModCount=m.modCount; +hi=this.fence=(tab == null ) ? 0 : tab.length; +} else mc=this.expectedModCount; +if (tab != null && tab.length >= hi && (i=this.index) >= 0 && (i < (this.index=hi) || this.current != null ) ) { +var p=this.current; +this.current=null; +do { +if (p == null ) p=tab[i++]; + else { +action.accept$(p); +p=p.next_; +}} while (p != null || i < hi ); +if (m.modCount != mc) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +}}); + +Clazz_newMeth(C$, ['tryAdvance$java_util_function_Consumer'], function (action) { +var hi; +if (action == null ) throw Clazz_new_(Clazz_load('NullPointerException')); +var tab=this.map.table; +if (tab != null && tab.length >= (hi=this.getFence$()) && this.index >= 0 ) { +while (this.current != null || this.index < hi ){ +if (this.current == null ) this.current=tab[this.index++]; + else { +var e=this.current; +this.current=this.current.next_; +action.accept$(e); +if (this.map.modCount != this.expectedModCount) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +return true; +}} +}return false; +}); + +Clazz_newMeth(C$, 'characteristics$', function () { +return (this.fence < 0 || this.est == this.map.size ? 64 : 0) | 1; +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.HashMap, "TreeNode", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, ['java.util.LinkedHashMap','.Entry']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.parent=null; +this.left=null; +this.right=null; +this.prev=null; +this.red=false; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, ['c$$I$TK$TV$java_util_HashMap_Node'], function (hash, key, val, next) { +C$.superclazz.c$$I$TK$TV$java_util_HashMap_Node.apply(this, [hash, key, val, next]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'root$', function () { +for (var r=this, p; ; ) { +if ((p=r.parent) == null ) return r; +r=p; +} +}); + +Clazz_newMeth(C$, ['moveRootToFront$java_util_HashMap_NodeA$java_util_HashMap_TreeNode'], function (tab, root) { +var n; +if (root != null && tab != null && (n=tab.length) > 0 ) { +var index=(n - 1) & root.hash; +var first=tab[index]; +if (root !== first ) { +var rn; +tab[index]=root; +var rp=root.prev; +if ((rn=root.next_) != null ) (rn).prev=rp; +if (rp != null ) rp.next_=rn; +if (first != null ) first.prev=root; +root.next_=first; +root.prev=null; +}Clazz_assert(C$, this, function(){return C$.checkInvariants$java_util_HashMap_TreeNode(root)}); +}}, 1); + +Clazz_newMeth(C$, ['find$I$O$Class'], function (h, k, kc) { +var p=this; +do { +var ph; +var dir; +var pk; +var pl=p.left; +var pr=p.right; +var q; +if ((ph=p.hash) > h) p=pl; + else if (ph < h) p=pr; + else if ((pk=p.key) === k || (k != null && k.equals$O(pk) ) ) return p; + else if (pl == null ) p=pr; + else if (pr == null ) p=pl; + else if ((kc != null || (kc=P$.HashMap.comparableClassFor$O(k)) != null ) && (dir=P$.HashMap.compareComparables$Class$O$O(kc, k, pk)) != 0 ) p=(dir < 0) ? pl : pr; + else if ((q=pr.find$I$O$Class(h, k, kc)) != null ) return q; + else p=pl; +} while (p != null ); +return null; +}); + +Clazz_newMeth(C$, ['getTreeNode$I$O'], function (h, k) { +return ((this.parent != null ) ? this.root$() : this).find$I$O$Class(h, k, null); +}); + +Clazz_newMeth(C$, 'tieBreakOrder$O$O', function (a, b) { +var d; +if (a == null || b == null || (d=a.getClass$().getName$().compareTo$S(b.getClass$().getName$())) == 0 ) d=(System.identityHashCode$O(a) <= System.identityHashCode$O(b) ? -1 : 1); +return d; +}, 1); + +Clazz_newMeth(C$, ['treeify$java_util_HashMap_NodeA'], function (tab) { +var root=null; +for (var x=this, next; x != null ; x=next) { +next=x.next_; +x.left=x.right=null; +if (root == null ) { +x.parent=null; +x.red=false; +root=x; +} else { +var k=x.key; +var h=x.hash; +var kc=null; +for (var p=root; ; ) { +var dir; +var ph; +var pk=p.key; +if ((ph=p.hash) > h) dir=-1; + else if (ph < h) dir=1; + else if ((kc == null && (kc=P$.HashMap.comparableClassFor$O(k)) == null ) || (dir=P$.HashMap.compareComparables$Class$O$O(kc, k, pk)) == 0 ) dir=C$.tieBreakOrder$O$O(k, pk); +var xp=p; +if ((p=(dir <= 0) ? p.left : p.right) == null ) { +x.parent=xp; +if (dir <= 0) xp.left=x; + else xp.right=x; +root=C$.balanceInsertion$java_util_HashMap_TreeNode$java_util_HashMap_TreeNode(root, x); +break; +}} +}} +C$.moveRootToFront$java_util_HashMap_NodeA$java_util_HashMap_TreeNode(tab, root); +}); + +Clazz_newMeth(C$, ['untreeify$java_util_HashMap'], function (map) { +var hd=null; +var tl=null; +for (var q=this; q != null ; q=q.next_) { +var p=map.replacementNode$java_util_HashMap_Node$java_util_HashMap_Node(q, null); +if (tl == null ) hd=p; + else tl.next_=p; +tl=p; +} +return hd; +}); + +Clazz_newMeth(C$, ['putTreeVal$java_util_HashMap$java_util_HashMap_NodeA$I$TK$TV'], function (map, tab, h, k, v) { +var kc=null; +var searched=false; +var root=(this.parent != null ) ? this.root$() : this; +for (var p=root; ; ) { +var dir; +var ph; +var pk; +if ((ph=p.hash) > h) dir=-1; + else if (ph < h) dir=1; + else if ((pk=p.key) === k || (k != null && k.equals$O(pk) ) ) return p; + else if ((kc == null && (kc=P$.HashMap.comparableClassFor$O(k)) == null ) || (dir=P$.HashMap.compareComparables$Class$O$O(kc, k, pk)) == 0 ) { +if (!searched) { +var q; +var ch; +searched=true; +if (((ch=p.left) != null && (q=ch.find$I$O$Class(h, k, kc)) != null ) || ((ch=p.right) != null && (q=ch.find$I$O$Class(h, k, kc)) != null ) ) return q; +}dir=C$.tieBreakOrder$O$O(k, pk); +}var xp=p; +if ((p=(dir <= 0) ? p.left : p.right) == null ) { +var xpn=xp.next_; +var x=map.newTreeNode$I$TK$TV$java_util_HashMap_Node(h, k, v, xpn); +if (dir <= 0) xp.left=x; + else xp.right=x; +xp.next_=x; +x.parent=x.prev=xp; +if (xpn != null ) (xpn).prev=x; +C$.moveRootToFront$java_util_HashMap_NodeA$java_util_HashMap_TreeNode(tab, C$.balanceInsertion$java_util_HashMap_TreeNode$java_util_HashMap_TreeNode(root, x)); +return null; +}} +}); + +Clazz_newMeth(C$, ['removeTreeNode$java_util_HashMap$java_util_HashMap_NodeA$Z'], function (map, tab, movable) { +var n; +if (tab == null || (n=tab.length) == 0 ) return; +var index=(n - 1) & this.hash; +var first=tab[index]; +var root=first; +var rl; +var succ=this.next_; +var pred=this.prev; +if (pred == null ) tab[index]=first=succ; + else pred.next_=succ; +if (succ != null ) succ.prev=pred; +if (first == null ) return; +if (root.parent != null ) root=root.root$(); +if (root == null || root.right == null || (rl=root.left) == null || rl.left == null ) { +tab[index]=first.untreeify$java_util_HashMap(map); +return; +}var p=this; +var pl=this.left; +var pr=this.right; +var replacement; +if (pl != null && pr != null ) { +var s=pr; +var sl; +while ((sl=s.left) != null )s=sl; + +var c=s.red; +s.red=p.red; +p.red=c; +var sr=s.right; +var pp=p.parent; +if (s === pr ) { +p.parent=s; +s.right=p; +} else { +var sp=s.parent; +if ((p.parent=sp) != null ) { +if (s === sp.left ) sp.left=p; + else sp.right=p; +}if ((s.right=pr) != null ) pr.parent=s; +}p.left=null; +if ((p.right=sr) != null ) sr.parent=p; +if ((s.left=pl) != null ) pl.parent=s; +if ((s.parent=pp) == null ) root=s; + else if (p === pp.left ) pp.left=s; + else pp.right=s; +if (sr != null ) replacement=sr; + else replacement=p; +} else if (pl != null ) replacement=pl; + else if (pr != null ) replacement=pr; + else replacement=p; +if (replacement !== p ) { +var pp=replacement.parent=p.parent; +if (pp == null ) root=replacement; + else if (p === pp.left ) pp.left=replacement; + else pp.right=replacement; +p.left=p.right=p.parent=null; +}var r=p.red ? root : C$.balanceDeletion$java_util_HashMap_TreeNode$java_util_HashMap_TreeNode(root, replacement); +if (replacement === p ) { +var pp=p.parent; +p.parent=null; +if (pp != null ) { +if (p === pp.left ) pp.left=null; + else if (p === pp.right ) pp.right=null; +}}if (movable) C$.moveRootToFront$java_util_HashMap_NodeA$java_util_HashMap_TreeNode(tab, r); +}); + +Clazz_newMeth(C$, ['split$java_util_HashMap$java_util_HashMap_NodeA$I$I'], function (map, tab, index, bit) { +var b=this; +var loHead=null; +var loTail=null; +var hiHead=null; +var hiTail=null; +var lc=0; +var hc=0; +for (var e=b, next; e != null ; e=next) { +next=e.next_; +e.next_=null; +if ((e.hash & bit) == 0) { +if ((e.prev=loTail) == null ) loHead=e; + else loTail.next_=e; +loTail=e; +++lc; +} else { +if ((e.prev=hiTail) == null ) hiHead=e; + else hiTail.next_=e; +hiTail=e; +++hc; +}} +if (loHead != null ) { +if (lc <= 6) tab[index]=loHead.untreeify$java_util_HashMap(map); + else { +tab[index]=loHead; +if (hiHead != null ) loHead.treeify$java_util_HashMap_NodeA(tab); +}}if (hiHead != null ) { +if (hc <= 6) tab[index + bit]=hiHead.untreeify$java_util_HashMap(map); + else { +tab[index + bit]=hiHead; +if (loHead != null ) hiHead.treeify$java_util_HashMap_NodeA(tab); +}}}); + +Clazz_newMeth(C$, ['rotateLeft$java_util_HashMap_TreeNode$java_util_HashMap_TreeNode'], function (root, p) { +var r; +var pp; +var rl; +if (p != null && (r=p.right) != null ) { +if ((rl=p.right=r.left) != null ) rl.parent=p; +if ((pp=r.parent=p.parent) == null ) (root=r).red=false; + else if (pp.left === p ) pp.left=r; + else pp.right=r; +r.left=p; +p.parent=r; +}return root; +}, 1); + +Clazz_newMeth(C$, ['rotateRight$java_util_HashMap_TreeNode$java_util_HashMap_TreeNode'], function (root, p) { +var l; +var pp; +var lr; +if (p != null && (l=p.left) != null ) { +if ((lr=p.left=l.right) != null ) lr.parent=p; +if ((pp=l.parent=p.parent) == null ) (root=l).red=false; + else if (pp.right === p ) pp.right=l; + else pp.left=l; +l.right=p; +p.parent=l; +}return root; +}, 1); + +Clazz_newMeth(C$, ['balanceInsertion$java_util_HashMap_TreeNode$java_util_HashMap_TreeNode'], function (root, x) { +x.red=true; +for (var xp, xpp, xppl, xppr; ; ) { +if ((xp=x.parent) == null ) { +x.red=false; +return x; +} else if (!xp.red || (xpp=xp.parent) == null ) return root; +if (xp === (xppl=xpp.left) ) { +if ((xppr=xpp.right) != null && xppr.red ) { +xppr.red=false; +xp.red=false; +xpp.red=true; +x=xpp; +} else { +if (x === xp.right ) { +root=C$.rotateLeft$java_util_HashMap_TreeNode$java_util_HashMap_TreeNode(root, x=xp); +xpp=(xp=x.parent) == null ? null : xp.parent; +}if (xp != null ) { +xp.red=false; +if (xpp != null ) { +xpp.red=true; +root=C$.rotateRight$java_util_HashMap_TreeNode$java_util_HashMap_TreeNode(root, xpp); +}}}} else { +if (xppl != null && xppl.red ) { +xppl.red=false; +xp.red=false; +xpp.red=true; +x=xpp; +} else { +if (x === xp.left ) { +root=C$.rotateRight$java_util_HashMap_TreeNode$java_util_HashMap_TreeNode(root, x=xp); +xpp=(xp=x.parent) == null ? null : xp.parent; +}if (xp != null ) { +xp.red=false; +if (xpp != null ) { +xpp.red=true; +root=C$.rotateLeft$java_util_HashMap_TreeNode$java_util_HashMap_TreeNode(root, xpp); +}}}}} +}, 1); + +Clazz_newMeth(C$, ['balanceDeletion$java_util_HashMap_TreeNode$java_util_HashMap_TreeNode'], function (root, x) { +for (var xp, xpl, xpr; ; ) { +if (x == null || x === root ) return root; + else if ((xp=x.parent) == null ) { +x.red=false; +return x; +} else if (x.red) { +x.red=false; +return root; +} else if ((xpl=xp.left) === x ) { +if ((xpr=xp.right) != null && xpr.red ) { +xpr.red=false; +xp.red=true; +root=C$.rotateLeft$java_util_HashMap_TreeNode$java_util_HashMap_TreeNode(root, xp); +xpr=(xp=x.parent) == null ? null : xp.right; +}if (xpr == null ) x=xp; + else { +var sl=xpr.left; +var sr=xpr.right; +if ((sr == null || !sr.red ) && (sl == null || !sl.red ) ) { +xpr.red=true; +x=xp; +} else { +if (sr == null || !sr.red ) { +if (sl != null ) sl.red=false; +xpr.red=true; +root=C$.rotateRight$java_util_HashMap_TreeNode$java_util_HashMap_TreeNode(root, xpr); +xpr=(xp=x.parent) == null ? null : xp.right; +}if (xpr != null ) { +xpr.red=(xp == null ) ? false : xp.red; +if ((sr=xpr.right) != null ) sr.red=false; +}if (xp != null ) { +xp.red=false; +root=C$.rotateLeft$java_util_HashMap_TreeNode$java_util_HashMap_TreeNode(root, xp); +}x=root; +}}} else { +if (xpl != null && xpl.red ) { +xpl.red=false; +xp.red=true; +root=C$.rotateRight$java_util_HashMap_TreeNode$java_util_HashMap_TreeNode(root, xp); +xpl=(xp=x.parent) == null ? null : xp.left; +}if (xpl == null ) x=xp; + else { +var sl=xpl.left; +var sr=xpl.right; +if ((sl == null || !sl.red ) && (sr == null || !sr.red ) ) { +xpl.red=true; +x=xp; +} else { +if (sl == null || !sl.red ) { +if (sr != null ) sr.red=false; +xpl.red=true; +root=C$.rotateLeft$java_util_HashMap_TreeNode$java_util_HashMap_TreeNode(root, xpl); +xpl=(xp=x.parent) == null ? null : xp.left; +}if (xpl != null ) { +xpl.red=(xp == null ) ? false : xp.red; +if ((sl=xpl.left) != null ) sl.red=false; +}if (xp != null ) { +xp.red=false; +root=C$.rotateRight$java_util_HashMap_TreeNode$java_util_HashMap_TreeNode(root, xp); +}x=root; +}}}} +}, 1); + +Clazz_newMeth(C$, ['checkInvariants$java_util_HashMap_TreeNode'], function (t) { +var tp=t.parent; +var tl=t.left; +var tr=t.right; +var tb=t.prev; +var tn=t.next_; +if (tb != null && tb.next_ !== t ) return false; +if (tn != null && tn.prev !== t ) return false; +if (tp != null && t !== tp.left && t !== tp.right ) return false; +if (tl != null && (tl.parent !== t || tl.hash > t.hash ) ) return false; +if (tr != null && (tr.parent !== t || tr.hash < t.hash ) ) return false; +if (t.red && tl != null && tl.red && tr != null && tr.red ) return false; +if (tl != null && !C$.checkInvariants$java_util_HashMap_TreeNode(tl) ) return false; +if (tr != null && !C$.checkInvariants$java_util_HashMap_TreeNode(tr) ) return false; +return true; +}, 1); +C$.$_ASSERT_ENABLED_ = ClassLoader.getClassAssertionStatus$(C$); + +Clazz_newMeth(C$); +})() +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:41 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=java.util,p$1={},I$=[[0,'java.util.HashMap','java.util.LinkedHashMap','InternalError',['java.util.HashMap','.KeySpliterator']]],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "HashSet", null, 'java.util.AbstractSet', ['java.util.Set', 'Cloneable', 'java.io.Serializable']); +C$.PRESENT=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.PRESENT= Clazz_new_(); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.map=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +Clazz_super_(C$, this,1); +this.map=Clazz_new_($I$(1)); +}, 1); + +Clazz_newMeth(C$, 'c$$java_util_Collection', function (c) { +Clazz_super_(C$, this,1); +this.map=Clazz_new_($I$(1).c$$I,[Math.max(((c.size$() / 0.75)|0) + 1, 16)]); +this.addAll$java_util_Collection(c); +}, 1); + +Clazz_newMeth(C$, 'c$$I$F', function (initialCapacity, loadFactor) { +Clazz_super_(C$, this,1); +this.map=Clazz_new_($I$(1).c$$I$F,[initialCapacity, loadFactor]); +}, 1); + +Clazz_newMeth(C$, 'c$$I', function (initialCapacity) { +Clazz_super_(C$, this,1); +this.map=Clazz_new_($I$(1).c$$I,[initialCapacity]); +}, 1); + +Clazz_newMeth(C$, 'c$$I$F$Z', function (initialCapacity, loadFactor, dummy) { +Clazz_super_(C$, this,1); +this.map=Clazz_new_($I$(2).c$$I$F,[initialCapacity, loadFactor]); +}, 1); + +Clazz_newMeth(C$, 'iterator$', function () { +return this.map.keySet$().iterator$(); +}); + +Clazz_newMeth(C$, 'size$', function () { +return this.map.size$(); +}); + +Clazz_newMeth(C$, 'isEmpty$', function () { +return this.map.isEmpty$(); +}); + +Clazz_newMeth(C$, 'contains$O', function (o) { +return this.map.containsKey$O(o); +}); + +Clazz_newMeth(C$, ['add$TE'], function (e) { +return this.map.put$TK$TV(e, C$.PRESENT) == null ; +}); + +Clazz_newMeth(C$, 'remove$O', function (o) { +return this.map.remove$O(o) === C$.PRESENT ; +}); + +Clazz_newMeth(C$, 'clear$', function () { +this.map.clear$(); +}); + +Clazz_newMeth(C$, 'clone$', function () { +try { +var newSet=Clazz_clone(this); +newSet.map=this.map.clone$(); +return newSet; +} catch (e) { +if (Clazz_exceptionOf(e,"CloneNotSupportedException")){ +throw Clazz_new_($I$(3).c$$Throwable,[e]); +} else { +throw e; +} +} +}); + +Clazz_newMeth(C$, 'writeObject$java_io_ObjectOutputStream', function (s) { +s.defaultWriteObject$(); +s.writeInt$I(this.map.capacity$()); +s.writeFloat$F(this.map.loadFactor$()); +s.writeInt$I(this.map.size$()); +for (var e, $e = this.map.keySet$().iterator$(); $e.hasNext$()&&((e=($e.next$())),1);) s.writeObject$O(e); + +}, p$1); + +Clazz_newMeth(C$, 'readObject$java_io_ObjectInputStream', function (s) { +s.defaultReadObject$(); +var capacity=s.readInt$(); +if (capacity < 0) { +throw Clazz_new_(Clazz_load('java.io.InvalidObjectException').c$$S,["Illegal capacity: " + capacity]); +}var loadFactor=s.readFloat$(); +if (loadFactor <= 0 || Float.isNaN$F(loadFactor) ) { +throw Clazz_new_(Clazz_load('java.io.InvalidObjectException').c$$S,["Illegal load factor: " + new Float(loadFactor).toString()]); +}var size=s.readInt$(); +if (size < 0) { +throw Clazz_new_(Clazz_load('java.io.InvalidObjectException').c$$S,["Illegal size: " + size]); +}capacity=(Math.min(size * Math.min(1 / loadFactor, 4.0), 1073741824)|0); +this.map=(Clazz_instanceOf((this), "java.util.LinkedHashSet") ? Clazz_new_($I$(2).c$$I$F,[capacity, loadFactor]) : Clazz_new_($I$(1).c$$I$F,[capacity, loadFactor])); +for (var i=0; i < size; i++) { +var e=s.readObject$(); +this.map.put$TK$TV(e, C$.PRESENT); +} +}, p$1); + +Clazz_newMeth(C$, 'spliterator$', function () { +return Clazz_new_($I$(4).c$$java_util_HashMap$I$I$I$I,[this.map, 0, -1, 0, 0]); +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:41 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=java.util,p$1={},I$=[[0,'java.util.Objects',['java.util.Hashtable','.Entry'],'InternalError','StringBuilder','java.util.Collections',['java.util.Hashtable','.Enumerator'],['java.util.Hashtable','.KeySet'],['java.util.Hashtable','.EntrySet'],['java.util.Hashtable','.ValueCollection']]],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "Hashtable", function(){ +Clazz_newInstance(this, arguments,0,C$); +}, 'java.util.Dictionary', ['java.util.Map', 'Cloneable', 'java.io.Serializable']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.table=null; +this.count=0; +this.threshold=0; +this.loadFactor=0; +this.modCount=0; +this.keySet=null; +this.entrySet=null; +this.values=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.modCount=0; +}, 1); + +Clazz_newMeth(C$, 'c$$I$F', function (initialCapacity, loadFactor) { +Clazz_super_(C$, this,1); +if (initialCapacity < 0) throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["Illegal Capacity: " + initialCapacity]); +if (loadFactor <= 0 || Float.isNaN$F(loadFactor) ) throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["Illegal Load: " + new Float(loadFactor).toString()]); +if (initialCapacity == 0) initialCapacity=1; +this.loadFactor=loadFactor; +this.table=Clazz_array($I$(2), [initialCapacity]); +this.threshold=(Math.min(initialCapacity * loadFactor, 2147483640)|0); +}, 1); + +Clazz_newMeth(C$, 'c$$I', function (initialCapacity) { +C$.c$$I$F.apply(this, [initialCapacity, 0.75]); +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.c$$I$F.apply(this, [11, 0.75]); +}, 1); + +Clazz_newMeth(C$, 'c$$java_util_Map', function (t) { +C$.c$$I$F.apply(this, [Math.max(2 * t.size$(), 11), 0.75]); +this.putAll$java_util_Map(t); +}, 1); + +Clazz_newMeth(C$, 'size$', function () { +return this.count; +}); + +Clazz_newMeth(C$, 'isEmpty$', function () { +return this.count == 0; +}); + +Clazz_newMeth(C$, 'keys$', function () { +return p$1.getEnumeration$I.apply(this, [0]); +}); + +Clazz_newMeth(C$, 'elements$', function () { +return p$1.getEnumeration$I.apply(this, [1]); +}); + +Clazz_newMeth(C$, 'contains$O', function (value) { +if (value == null ) { +throw Clazz_new_(Clazz_load('NullPointerException')); +}var tab=this.table; +for (var i=tab.length; i-- > 0; ) { +for (var e=tab[i]; e != null ; e=e.next_) { +if (e.value.equals$O(value)) { +return true; +}} +} +return false; +}); + +Clazz_newMeth(C$, 'containsValue$O', function (value) { +return this.contains$O(value); +}); + +Clazz_newMeth(C$, 'containsKey$O', function (key) { +var tab=this.table; +var hash=key.hashCode$(); +var index=(hash & 2147483647) % tab.length; +for (var e=tab[index]; e != null ; e=e.next_) { +if ((e.hash == hash) && e.key.equals$O(key) ) { +return true; +}} +return false; +}); + +Clazz_newMeth(C$, 'get$O', function (key) { +var tab=this.table; +var hash=key.hashCode$(); +var index=(hash & 2147483647) % tab.length; +for (var e=tab[index]; e != null ; e=e.next_) { +if ((e.hash == hash) && e.key.equals$O(key) ) { +return e.value; +}} +return null; +}); + +Clazz_newMeth(C$, 'rehash$', function () { +var oldCapacity=this.table.length; +var oldMap=this.table; +var newCapacity=(oldCapacity << 1) + 1; +if (newCapacity - 2147483639 > 0) { +if (oldCapacity == 2147483639) return; +newCapacity=2147483639; +}var newMap=Clazz_array($I$(2), [newCapacity]); +this.modCount++; +this.threshold=(Math.min(newCapacity * this.loadFactor, 2147483640)|0); +this.table=newMap; +for (var i=oldCapacity; i-- > 0; ) { +for (var old=oldMap[i]; old != null ; ) { +var e=old; +old=old.next_; +var index=(e.hash & 2147483647) % newCapacity; +e.next_=newMap[index]; +newMap[index]=e; +} +} +}); + +Clazz_newMeth(C$, ['addEntry$I$TK$TV$I'], function (hash, key, value, index) { +this.modCount++; +var tab=this.table; +if (this.count >= this.threshold) { +this.rehash$(); +tab=this.table; +hash=key.hashCode$(); +index=(hash & 2147483647) % tab.length; +}var e=tab[index]; +tab[index]=Clazz_new_($I$(2).c$$I$TK$TV$java_util_Hashtable_Entry,[hash, key, value, e]); +this.count++; +}, p$1); + +Clazz_newMeth(C$, ['put$TK$TV'], function (key, value) { +if (value == null ) { +throw Clazz_new_(Clazz_load('NullPointerException')); +}var tab=this.table; +var hash=key.hashCode$(); +var index=(hash & 2147483647) % tab.length; +var entry=tab[index]; +for (; entry != null ; entry=entry.next_) { +if ((entry.hash == hash) && entry.key.equals$O(key) ) { +var old=entry.value; +entry.value=value; +return old; +}} +p$1.addEntry$I$TK$TV$I.apply(this, [hash, key, value, index]); +return null; +}); + +Clazz_newMeth(C$, 'remove$O', function (key) { +var tab=this.table; +var hash=key.hashCode$(); +var index=(hash & 2147483647) % tab.length; +var e=tab[index]; +for (var prev=null; e != null ; prev=e, e=e.next_) { +if ((e.hash == hash) && e.key.equals$O(key) ) { +this.modCount++; +if (prev != null ) { +prev.next_=e.next_; +} else { +tab[index]=e.next_; +}this.count--; +var oldValue=e.value; +e.value=null; +return oldValue; +}} +return null; +}); + +Clazz_newMeth(C$, 'putAll$java_util_Map', function (t) { +for (var e, $e = t.entrySet$().iterator$(); $e.hasNext$()&&((e=($e.next$())),1);) this.put$TK$TV(e.getKey$(), e.getValue$()); + +}); + +Clazz_newMeth(C$, 'clear$', function () { +var tab=this.table; +this.modCount++; +for (var index=tab.length; --index >= 0; ) tab[index]=null; + +this.count=0; +}); + +Clazz_newMeth(C$, 'clone$', function () { +try { +var t=Clazz_clone(this); +t.table=Clazz_array($I$(2), [this.table.length]); +for (var i=this.table.length; i-- > 0; ) { +t.table[i]=(this.table[i] != null ) ? this.table[i].clone$() : null; +} +t.keySet=null; +t.entrySet=null; +t.values=null; +t.modCount=0; +return t; +} catch (e) { +if (Clazz_exceptionOf(e,"CloneNotSupportedException")){ +throw Clazz_new_($I$(3).c$$Throwable,[e]); +} else { +throw e; +} +} +}); + +Clazz_newMeth(C$, 'toString', function () { +var max=this.size$() - 1; +if (max == -1) return "{}"; +var sb=Clazz_new_($I$(4)); +var it=this.entrySet$().iterator$(); +sb.append$C("{"); +for (var i=0; ; i++) { +var e=it.next$(); +var key=e.getKey$(); +var value=e.getValue$(); +sb.append$S(key === this ? "(this Map)" : key.toString()); +sb.append$C("="); +sb.append$S(value === this ? "(this Map)" : value.toString()); +if (i == max) return sb.append$C("}").toString(); +sb.append$S(", "); +} +}); + +Clazz_newMeth(C$, 'getEnumeration$I', function (type) { +if (this.count == 0) { +return $I$(5).emptyEnumeration$(); +} else { +return Clazz_new_($I$(6).c$$I$Z, [this, null, type, false]); +}}, p$1); + +Clazz_newMeth(C$, 'getIterator$I', function (type) { +if (this.count == 0) { +return $I$(5).emptyIterator$(); +} else { +return Clazz_new_($I$(6).c$$I$Z, [this, null, type, true]); +}}, p$1); + +Clazz_newMeth(C$, 'keySet$', function () { +if (this.keySet == null ) this.keySet=$I$(5).synchronizedSet$java_util_Set$O(Clazz_new_($I$(7), [this, null]), this); +return this.keySet; +}); + +Clazz_newMeth(C$, 'entrySet$', function () { +if (this.entrySet == null ) this.entrySet=$I$(5).synchronizedSet$java_util_Set$O(Clazz_new_($I$(8), [this, null]), this); +return this.entrySet; +}); + +Clazz_newMeth(C$, 'values$', function () { +if (this.values == null ) this.values=$I$(5).synchronizedCollection$java_util_Collection$O(Clazz_new_($I$(9), [this, null]), this); +return this.values; +}); + +Clazz_newMeth(C$, 'equals$O', function (o) { +if (o === this ) return true; +if (!(Clazz_instanceOf(o, "java.util.Map"))) return false; +var t=o; +if (t.size$() != this.size$()) return false; +try { +var i=this.entrySet$().iterator$(); +while (i.hasNext$()){ +var e=i.next$(); +var key=e.getKey$(); +var value=e.getValue$(); +if (value == null ) { +if (!(t.get$O(key) == null && t.containsKey$O(key) )) return false; +} else { +if (!value.equals$O(t.get$O(key))) return false; +}} +} catch (e$$) { +if (Clazz_exceptionOf(e$$,"ClassCastException")){ +var unused = e$$; +{ +return false; +} +} else if (Clazz_exceptionOf(e$$,"NullPointerException")){ +var unused = e$$; +{ +return false; +} +} else { +throw e$$; +} +} +return true; +}); + +Clazz_newMeth(C$, 'hashCode$', function () { +var h=0; +if (this.count == 0 || this.loadFactor < 0 ) return h; +this.loadFactor=-this.loadFactor; +var tab=this.table; +for (var entry, $entry = 0, $$entry = tab; $entry<$$entry.length&&((entry=($$entry[$entry])),1);$entry++) { +while (entry != null ){ +h+=entry.hashCode$(); +entry=entry.next_; +} +} +this.loadFactor=-this.loadFactor; +return h; +}); + +Clazz_newMeth(C$, ['getOrDefault$O$TV'], function (key, defaultValue) { +var result=this.get$O(key); +return (null == result ) ? defaultValue : result; +}); + +Clazz_newMeth(C$, 'forEach$java_util_function_BiConsumer', function (action) { +$I$(1).requireNonNull$TT(action); +var expectedModCount=this.modCount; +var tab=this.table; +for (var entry, $entry = 0, $$entry = tab; $entry<$$entry.length&&((entry=($$entry[$entry])),1);$entry++) { +while (entry != null ){ +action.accept$(entry.key, entry.value); +entry=entry.next_; +if (expectedModCount != this.modCount) { +throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +}} +} +}); + +Clazz_newMeth(C$, 'replaceAll$java_util_function_BiFunction', function ($function) { +$I$(1).requireNonNull$TT($function); +var expectedModCount=this.modCount; +var tab=this.table; +for (var entry, $entry = 0, $$entry = tab; $entry<$$entry.length&&((entry=($$entry[$entry])),1);$entry++) { +while (entry != null ){ +entry.value=$I$(1).requireNonNull$TT($function.apply$(entry.key, entry.value)); +entry=entry.next_; +if (expectedModCount != this.modCount) { +throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +}} +} +}); + +Clazz_newMeth(C$, ['putIfAbsent$TK$TV'], function (key, value) { +$I$(1).requireNonNull$TT(value); +var tab=this.table; +var hash=key.hashCode$(); +var index=(hash & 2147483647) % tab.length; +var entry=tab[index]; +for (; entry != null ; entry=entry.next_) { +if ((entry.hash == hash) && entry.key.equals$O(key) ) { +var old=entry.value; +if (old == null ) { +entry.value=value; +}return old; +}} +p$1.addEntry$I$TK$TV$I.apply(this, [hash, key, value, index]); +return null; +}); + +Clazz_newMeth(C$, 'remove$O$O', function (key, value) { +$I$(1).requireNonNull$TT(value); +var tab=this.table; +var hash=key.hashCode$(); +var index=(hash & 2147483647) % tab.length; +var e=tab[index]; +for (var prev=null; e != null ; prev=e, e=e.next_) { +if ((e.hash == hash) && e.key.equals$O(key) && e.value.equals$O(value) ) { +this.modCount++; +if (prev != null ) { +prev.next_=e.next_; +} else { +tab[index]=e.next_; +}this.count--; +e.value=null; +return true; +}} +return false; +}); + +Clazz_newMeth(C$, ['replace$TK$TV$TV'], function (key, oldValue, newValue) { +$I$(1).requireNonNull$TT(oldValue); +$I$(1).requireNonNull$TT(newValue); +var tab=this.table; +var hash=key.hashCode$(); +var index=(hash & 2147483647) % tab.length; +var e=tab[index]; +for (; e != null ; e=e.next_) { +if ((e.hash == hash) && e.key.equals$O(key) ) { +if (e.value.equals$O(oldValue)) { +e.value=newValue; +return true; +} else { +return false; +}}} +return false; +}); + +Clazz_newMeth(C$, ['replace$TK$TV'], function (key, value) { +$I$(1).requireNonNull$TT(value); +var tab=this.table; +var hash=key.hashCode$(); +var index=(hash & 2147483647) % tab.length; +var e=tab[index]; +for (; e != null ; e=e.next_) { +if ((e.hash == hash) && e.key.equals$O(key) ) { +var oldValue=e.value; +e.value=value; +return oldValue; +}} +return null; +}); + +Clazz_newMeth(C$, ['computeIfAbsent$TK$java_util_function_Function'], function (key, mappingFunction) { +$I$(1).requireNonNull$TT(mappingFunction); +var tab=this.table; +var hash=key.hashCode$(); +var index=(hash & 2147483647) % tab.length; +var e=tab[index]; +for (; e != null ; e=e.next_) { +if (e.hash == hash && e.key.equals$O(key) ) { +return e.value; +}} +var newValue=mappingFunction.apply$(key); +if (newValue != null ) { +p$1.addEntry$I$TK$TV$I.apply(this, [hash, key, newValue, index]); +}return newValue; +}); + +Clazz_newMeth(C$, ['computeIfPresent$TK$java_util_function_BiFunction'], function (key, remappingFunction) { +$I$(1).requireNonNull$TT(remappingFunction); +var tab=this.table; +var hash=key.hashCode$(); +var index=(hash & 2147483647) % tab.length; +var e=tab[index]; +for (var prev=null; e != null ; prev=e, e=e.next_) { +if (e.hash == hash && e.key.equals$O(key) ) { +var newValue=remappingFunction.apply$(key, e.value); +if (newValue == null ) { +this.modCount++; +if (prev != null ) { +prev.next_=e.next_; +} else { +tab[index]=e.next_; +}this.count--; +} else { +e.value=newValue; +}return newValue; +}} +return null; +}); + +Clazz_newMeth(C$, ['compute$TK$java_util_function_BiFunction'], function (key, remappingFunction) { +$I$(1).requireNonNull$TT(remappingFunction); +var tab=this.table; +var hash=key.hashCode$(); +var index=(hash & 2147483647) % tab.length; +var e=tab[index]; +for (var prev=null; e != null ; prev=e, e=e.next_) { +if (e.hash == hash && $I$(1).equals$O$O(e.key, key) ) { +var newValue=remappingFunction.apply$(key, e.value); +if (newValue == null ) { +this.modCount++; +if (prev != null ) { +prev.next_=e.next_; +} else { +tab[index]=e.next_; +}this.count--; +} else { +e.value=newValue; +}return newValue; +}} +var newValue=remappingFunction.apply$(key, null); +if (newValue != null ) { +p$1.addEntry$I$TK$TV$I.apply(this, [hash, key, newValue, index]); +}return newValue; +}); + +Clazz_newMeth(C$, ['merge$TK$TV$java_util_function_BiFunction'], function (key, value, remappingFunction) { +$I$(1).requireNonNull$TT(remappingFunction); +var tab=this.table; +var hash=key.hashCode$(); +var index=(hash & 2147483647) % tab.length; +var e=tab[index]; +for (var prev=null; e != null ; prev=e, e=e.next_) { +if (e.hash == hash && e.key.equals$O(key) ) { +var newValue=remappingFunction.apply$(e.value, value); +if (newValue == null ) { +this.modCount++; +if (prev != null ) { +prev.next_=e.next_; +} else { +tab[index]=e.next_; +}this.count--; +} else { +e.value=newValue; +}return newValue; +}} +if (value != null ) { +p$1.addEntry$I$TK$TV$I.apply(this, [hash, key, value, index]); +}return value; +}); + +Clazz_newMeth(C$, 'writeObject$java_io_ObjectOutputStream', function (s) { +var entryStack=null; +{ +s.defaultWriteObject$(); +s.writeInt$I(this.table.length); +s.writeInt$I(this.count); +for (var index=0; index < this.table.length; index++) { +var entry=this.table[index]; +while (entry != null ){ +entryStack=Clazz_new_($I$(2).c$$I$TK$TV$java_util_Hashtable_Entry,[0, entry.key, entry.value, entryStack]); +entry=entry.next_; +} +} +}while (entryStack != null ){ +s.writeObject$O(entryStack.key); +s.writeObject$O(entryStack.value); +entryStack=entryStack.next_; +} +}, p$1); + +Clazz_newMeth(C$, 'readObject$java_io_ObjectInputStream', function (s) { +s.defaultReadObject$(); +var origlength=s.readInt$(); +var elements=s.readInt$(); +var length=((elements * this.loadFactor)|0) + ((elements/20|0)) + 3 ; +if (length > elements && (length & 1) == 0 ) length--; +if (origlength > 0 && length > origlength ) length=origlength; +this.table=Clazz_array($I$(2), [length]); +this.threshold=(Math.min(length * this.loadFactor, 2147483640)|0); +this.count=0; +for (; elements > 0; elements--) { +var key=s.readObject$(); +var value=s.readObject$(); +p$1.reconstitutionPut$java_util_Hashtable_EntryA$TK$TV.apply(this, [this.table, key, value]); +} +}, p$1); + +Clazz_newMeth(C$, ['reconstitutionPut$java_util_Hashtable_EntryA$TK$TV'], function (tab, key, value) { +if (value == null ) { +throw Clazz_new_(Clazz_load('java.io.StreamCorruptedException')); +}var hash=key.hashCode$(); +var index=(hash & 2147483647) % tab.length; +for (var e=tab[index]; e != null ; e=e.next_) { +if ((e.hash == hash) && e.key.equals$O(key) ) { +throw Clazz_new_(Clazz_load('java.io.StreamCorruptedException')); +}} +var e=tab[index]; +tab[index]=Clazz_new_($I$(2).c$$I$TK$TV$java_util_Hashtable_Entry,[hash, key, value, e]); +this.count++; +}, p$1); +; +(function(){var C$=Clazz_newClass(P$.Hashtable, "KeySet", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, 'java.util.AbstractSet'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'iterator$', function () { +return p$1.getIterator$I.apply(this.b$['java.util.Hashtable'], [0]); +}); + +Clazz_newMeth(C$, 'size$', function () { +return this.this$0.count; +}); + +Clazz_newMeth(C$, 'contains$O', function (o) { +return this.b$['java.util.Hashtable'].containsKey$O.apply(this.b$['java.util.Hashtable'], [o]); +}); + +Clazz_newMeth(C$, 'remove$O', function (o) { +return this.b$['java.util.Hashtable'].remove$O.apply(this.b$['java.util.Hashtable'], [o]) != null ; +}); + +Clazz_newMeth(C$, 'clear$', function () { +this.b$['java.util.Hashtable'].clear$.apply(this.b$['java.util.Hashtable'], []); +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.Hashtable, "EntrySet", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, 'java.util.AbstractSet'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'iterator$', function () { +return p$1.getIterator$I.apply(this.b$['java.util.Hashtable'], [2]); +}); + +Clazz_newMeth(C$, ['add$java_util_Map_Entry','add$TE'], function (o) { +return C$.superclazz.prototype.add$TE.apply(this, [o]); +}); + +Clazz_newMeth(C$, 'contains$O', function (o) { +if (!(Clazz_instanceOf(o, "java.util.Map.Entry"))) return false; +var entry=o; +var key=entry.getKey$(); +var tab=this.this$0.table; +var hash=key.hashCode$(); +var index=(hash & 2147483647) % tab.length; +for (var e=tab[index]; e != null ; e=e.next_) if (e.hash == hash && e.equals$O(entry) ) return true; + +return false; +}); + +Clazz_newMeth(C$, 'remove$O', function (o) { +if (!(Clazz_instanceOf(o, "java.util.Map.Entry"))) return false; +var entry=o; +var key=entry.getKey$(); +var tab=this.this$0.table; +var hash=key.hashCode$(); +var index=(hash & 2147483647) % tab.length; +var e=tab[index]; +for (var prev=null; e != null ; prev=e, e=e.next_) { +if (e.hash == hash && e.equals$O(entry) ) { +this.this$0.modCount++; +if (prev != null ) prev.next_=e.next_; + else tab[index]=e.next_; +this.this$0.count--; +e.value=null; +return true; +}} +return false; +}); + +Clazz_newMeth(C$, 'size$', function () { +return this.this$0.count; +}); + +Clazz_newMeth(C$, 'clear$', function () { +this.b$['java.util.Hashtable'].clear$.apply(this.b$['java.util.Hashtable'], []); +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.Hashtable, "ValueCollection", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, 'java.util.AbstractCollection'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'iterator$', function () { +return p$1.getIterator$I.apply(this.b$['java.util.Hashtable'], [1]); +}); + +Clazz_newMeth(C$, 'size$', function () { +return this.this$0.count; +}); + +Clazz_newMeth(C$, 'contains$O', function (o) { +return this.b$['java.util.Hashtable'].containsValue$O.apply(this.b$['java.util.Hashtable'], [o]); +}); + +Clazz_newMeth(C$, 'clear$', function () { +this.b$['java.util.Hashtable'].clear$.apply(this.b$['java.util.Hashtable'], []); +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.Hashtable, "Entry", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, null, [['java.util.Map','java.util.Map.Entry']]); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.hash=0; +this.key=null; +this.value=null; +this.next_=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, ['c$$I$TK$TV$java_util_Hashtable_Entry'], function (hash, key, value, next) { +C$.$init$.apply(this); +this.hash=hash; +this.key=key; +this.value=value; +this.next_=next; +}, 1); + +Clazz_newMeth(C$, 'clone$', function () { +return Clazz_new_(C$.c$$I$TK$TV$java_util_Hashtable_Entry,[this.hash, this.key, this.value, (this.next_ == null ? null : this.next_.clone$())]); +}); + +Clazz_newMeth(C$, 'getKey$', function () { +return this.key; +}); + +Clazz_newMeth(C$, 'getValue$', function () { +return this.value; +}); + +Clazz_newMeth(C$, ['setValue$TV'], function (value) { +if (value == null ) throw Clazz_new_(Clazz_load('NullPointerException')); +var oldValue=this.value; +this.value=value; +return oldValue; +}); + +Clazz_newMeth(C$, 'equals$O', function (o) { +if (!(Clazz_instanceOf(o, "java.util.Map.Entry"))) return false; +var e=o; +return (this.key == null ? e.getKey$() == null : this.key.equals$O(e.getKey$())) && (this.value == null ? e.getValue$() == null : this.value.equals$O(e.getValue$())) ; +}); + +Clazz_newMeth(C$, 'hashCode$', function () { +return this.hash ^ $I$(1).hashCode$O(this.value); +}); + +Clazz_newMeth(C$, 'toString', function () { +return this.key.toString() + "=" + this.value.toString() ; +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.Hashtable, "Enumerator", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, null, ['java.util.Enumeration', 'java.util.Iterator']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.table=null; +this.index=0; +this.entry=null; +this.lastReturned=null; +this.type=0; +this.iterator=false; +this.expectedModCount=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.table=this.b$['java.util.Hashtable'].table; +this.index=this.table.length; +this.expectedModCount=this.this$0.modCount; +}, 1); + +Clazz_newMeth(C$, 'c$$I$Z', function (type, iterator) { +C$.$init$.apply(this); +this.type=type; +this.iterator=iterator; +}, 1); + +Clazz_newMeth(C$, 'hasMoreElements$', function () { +var e=this.entry; +var i=this.index; +var t=this.table; +while (e == null && i > 0 ){ +e=t[--i]; +} +this.entry=e; +this.index=i; +return e != null ; +}); + +Clazz_newMeth(C$, 'nextElement$', function () { +var et=this.entry; +var i=this.index; +var t=this.table; +while (et == null && i > 0 ){ +et=t[--i]; +} +this.entry=et; +this.index=i; +if (et != null ) { +var e=this.lastReturned=this.entry; +this.entry=e.next_; +return this.type == 0 ? e.key : (this.type == 1 ? e.value : e); +}throw Clazz_new_(Clazz_load('java.util.NoSuchElementException').c$$S,["Hashtable Enumerator"]); +}); + +Clazz_newMeth(C$, 'hasNext$', function () { +return this.hasMoreElements$(); +}); + +Clazz_newMeth(C$, 'next$', function () { +if (this.this$0.modCount != this.expectedModCount) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +return this.nextElement$(); +}); + +Clazz_newMeth(C$, 'remove$', function () { +if (!this.iterator) throw Clazz_new_(Clazz_load('UnsupportedOperationException')); +if (this.lastReturned == null ) throw Clazz_new_(Clazz_load('IllegalStateException').c$$S,["Hashtable Enumerator"]); +if (this.this$0.modCount != this.expectedModCount) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +{ +var tab=this.b$['java.util.Hashtable'].table; +var index=(this.lastReturned.hash & 2147483647) % tab.length; +var e=tab[index]; +for (var prev=null; e != null ; prev=e, e=e.next_) { +if (e === this.lastReturned ) { +this.this$0.modCount++; +this.expectedModCount++; +if (prev == null ) tab[index]=e.next_; + else prev.next_=e.next_; +this.this$0.count--; +this.lastReturned=null; +return; +}} +throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +}}); + +Clazz_newMeth(C$); +})() +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:41 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=java.util,p$1={},I$=[[0,['java.util.IdentityHashMap','.EntryIterator','.Entry'],['java.util.IdentityHashMap','.KeyIterator'],'java.util.Objects','java.lang.reflect.Array',['java.util.IdentityHashMap','.KeySpliterator'],['java.util.IdentityHashMap','.ValueIterator'],['java.util.IdentityHashMap','.ValueSpliterator'],['java.util.IdentityHashMap','.EntryIterator'],['java.util.AbstractMap','.SimpleEntry'],['java.util.IdentityHashMap','.EntrySpliterator'],['java.util.AbstractMap','.SimpleImmutableEntry'],'InternalError',['java.util.IdentityHashMap','.KeySet'],['java.util.IdentityHashMap','.Values'],['java.util.IdentityHashMap','.EntrySet']]],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "IdentityHashMap", function(){ +Clazz_newInstance(this, arguments,0,C$); +}, 'java.util.AbstractMap', ['java.util.Map', 'java.io.Serializable', 'Cloneable']); +C$.NULL_KEY=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.NULL_KEY= Clazz_new_(); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.table=null; +this.size=0; +this.modCount=0; +this.entrySet=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'maskNull$O', function (key) { +return (key == null ? C$.NULL_KEY : key); +}, 1); + +Clazz_newMeth(C$, 'unmaskNull$O', function (key) { +return (key === C$.NULL_KEY ? null : key); +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +Clazz_super_(C$, this,1); +p$1.init$I.apply(this, [32]); +}, 1); + +Clazz_newMeth(C$, 'c$$I', function (expectedMaxSize) { +Clazz_super_(C$, this,1); +if (expectedMaxSize < 0) throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["expectedMaxSize is negative: " + expectedMaxSize]); +p$1.init$I.apply(this, [C$.capacity$I(expectedMaxSize)]); +}, 1); + +Clazz_newMeth(C$, 'capacity$I', function (expectedMaxSize) { +return (expectedMaxSize > 178956970) ? 536870912 : (expectedMaxSize <= 2) ? 4 : Integer.highestOneBit$I(expectedMaxSize + (expectedMaxSize << 1)); +}, 1); + +Clazz_newMeth(C$, 'init$I', function (initCapacity) { +this.table=Clazz_array(java.lang.Object, [2 * initCapacity]); +}, p$1); + +Clazz_newMeth(C$, 'c$$java_util_Map', function (m) { +C$.c$$I.apply(this, [(((1 + m.size$()) * 1.1)|0)]); +this.putAll$java_util_Map(m); +}, 1); + +Clazz_newMeth(C$, 'size$', function () { +return this.size; +}); + +Clazz_newMeth(C$, 'isEmpty$', function () { +return this.size == 0; +}); + +Clazz_newMeth(C$, 'hash$O$I', function (x, length) { +var h=System.identityHashCode$O(x); +return ((h << 1) - (h << 8)) & (length - 1); +}, 1); + +Clazz_newMeth(C$, 'nextKeyIndex$I$I', function (i, len) { +return (i + 2 < len ? i + 2 : 0); +}, 1); + +Clazz_newMeth(C$, 'get$O', function (key) { +var k=C$.maskNull$O(key); +var tab=this.table; +var len=tab.length; +var i=C$.hash$O$I(k, len); +while (true){ +var item=tab[i]; +if (item === k ) return tab[i + 1]; +if (item == null ) return null; +i=C$.nextKeyIndex$I$I(i, len); +} +}); + +Clazz_newMeth(C$, 'containsKey$O', function (key) { +var k=C$.maskNull$O(key); +var tab=this.table; +var len=tab.length; +var i=C$.hash$O$I(k, len); +while (true){ +var item=tab[i]; +if (item === k ) return true; +if (item == null ) return false; +i=C$.nextKeyIndex$I$I(i, len); +} +}); + +Clazz_newMeth(C$, 'containsValue$O', function (value) { +var tab=this.table; +for (var i=1; i < tab.length; i+=2) if (tab[i] === value && tab[i - 1] != null ) return true; + +return false; +}); + +Clazz_newMeth(C$, 'containsMapping$O$O', function (key, value) { +var k=C$.maskNull$O(key); +var tab=this.table; +var len=tab.length; +var i=C$.hash$O$I(k, len); +while (true){ +var item=tab[i]; +if (item === k ) return tab[i + 1] === value ; +if (item == null ) return false; +i=C$.nextKeyIndex$I$I(i, len); +} +}, p$1); + +Clazz_newMeth(C$, ['put$TK$TV'], function (key, value) { +var k=C$.maskNull$O(key); + retryAfterResize : for (; ; ) { +var tab=this.table; +var len=tab.length; +var i=C$.hash$O$I(k, len); +for (var item; (item=tab[i]) != null ; i=C$.nextKeyIndex$I$I(i, len)) { +if (item === k ) { +var oldValue=tab[i + 1]; +tab[i + 1]=value; +return oldValue; +}} +var s=this.size + 1; +if (s + (s << 1) > len && p$1.resize$I.apply(this, [len]) ) continue retryAfterResize; +this.modCount++; +tab[i]=k; +tab[i + 1]=value; +this.size=s; +return null; +} +}); + +Clazz_newMeth(C$, 'resize$I', function (newCapacity) { +var newLength=newCapacity * 2; +var oldTable=this.table; +var oldLength=oldTable.length; +if (oldLength == 1073741824) { +if (this.size == 536870911) throw Clazz_new_(Clazz_load('IllegalStateException').c$$S,["Capacity exhausted."]); +return false; +}if (oldLength >= newLength) return false; +var newTable=Clazz_array(java.lang.Object, [newLength]); +for (var j=0; j < oldLength; j+=2) { +var key=oldTable[j]; +if (key != null ) { +var value=oldTable[j + 1]; +oldTable[j]=null; +oldTable[j + 1]=null; +var i=C$.hash$O$I(key, newLength); +while (newTable[i] != null )i=C$.nextKeyIndex$I$I(i, newLength); + +newTable[i]=key; +newTable[i + 1]=value; +}} +this.table=newTable; +return true; +}, p$1); + +Clazz_newMeth(C$, 'putAll$java_util_Map', function (m) { +var n=m.size$(); +if (n == 0) return; +if (n > this.size) p$1.resize$I.apply(this, [C$.capacity$I(n)]); +for (var e, $e = m.entrySet$().iterator$(); $e.hasNext$()&&((e=($e.next$())),1);) this.put$TK$TV(e.getKey$(), e.getValue$()); + +}); + +Clazz_newMeth(C$, 'remove$O', function (key) { +var k=C$.maskNull$O(key); +var tab=this.table; +var len=tab.length; +var i=C$.hash$O$I(k, len); +while (true){ +var item=tab[i]; +if (item === k ) { +this.modCount++; +this.size--; +var oldValue=tab[i + 1]; +tab[i + 1]=null; +tab[i]=null; +p$1.closeDeletion$I.apply(this, [i]); +return oldValue; +}if (item == null ) return null; +i=C$.nextKeyIndex$I$I(i, len); +} +}); + +Clazz_newMeth(C$, 'removeMapping$O$O', function (key, value) { +var k=C$.maskNull$O(key); +var tab=this.table; +var len=tab.length; +var i=C$.hash$O$I(k, len); +while (true){ +var item=tab[i]; +if (item === k ) { +if (tab[i + 1] !== value ) return false; +this.modCount++; +this.size--; +tab[i]=null; +tab[i + 1]=null; +p$1.closeDeletion$I.apply(this, [i]); +return true; +}if (item == null ) return false; +i=C$.nextKeyIndex$I$I(i, len); +} +}, p$1); + +Clazz_newMeth(C$, 'closeDeletion$I', function (d) { +var tab=this.table; +var len=tab.length; +var item; +for (var i=C$.nextKeyIndex$I$I(d, len); (item=tab[i]) != null ; i=C$.nextKeyIndex$I$I(i, len)) { +var r=C$.hash$O$I(item, len); +if ((i < r && (r <= d || d <= i ) ) || (r <= d && d <= i ) ) { +tab[d]=item; +tab[d + 1]=tab[i + 1]; +tab[i]=null; +tab[i + 1]=null; +d=i; +}} +}, p$1); + +Clazz_newMeth(C$, 'clear$', function () { +this.modCount++; +var tab=this.table; +for (var i=0; i < tab.length; i++) tab[i]=null; + +this.size=0; +}); + +Clazz_newMeth(C$, 'equals$O', function (o) { +if (o === this ) { +return true; +} else if (Clazz_instanceOf(o, "java.util.IdentityHashMap")) { +var m=o; +if (m.size$() != this.size) return false; +var tab=m.table; +for (var i=0; i < tab.length; i+=2) { +var k=tab[i]; +if (k != null && !p$1.containsMapping$O$O.apply(this, [k, tab[i + 1]]) ) return false; +} +return true; +} else if (Clazz_instanceOf(o, "java.util.Map")) { +var m=o; +return this.entrySet$().equals$O(m.entrySet$()); +} else { +return false; +}}); + +Clazz_newMeth(C$, 'hashCode$', function () { +var result=0; +var tab=this.table; +for (var i=0; i < tab.length; i+=2) { +var key=tab[i]; +if (key != null ) { +var k=C$.unmaskNull$O(key); +result+=System.identityHashCode$O(k) ^ System.identityHashCode$O(tab[i + 1]); +}} +return result; +}); + +Clazz_newMeth(C$, 'clone$', function () { +try { +var m=C$.superclazz.prototype.clone$.apply(this, []); +m.entrySet=null; +m.table=this.table.clone$(); +return m; +} catch (e) { +if (Clazz_exceptionOf(e,"CloneNotSupportedException")){ +throw Clazz_new_($I$(12).c$$Throwable,[e]); +} else { +throw e; +} +} +}); + +Clazz_newMeth(C$, 'keySet$', function () { +var ks=this.keySet; +if (ks != null ) return ks; + else return this.keySet=Clazz_new_($I$(13), [this, null]); +}); + +Clazz_newMeth(C$, 'values$', function () { +var vs=this.values; +if (vs != null ) return vs; + else return this.values=Clazz_new_($I$(14), [this, null]); +}); + +Clazz_newMeth(C$, 'entrySet$', function () { +var es=this.entrySet; +if (es != null ) return es; + else return this.entrySet=Clazz_new_($I$(15), [this, null]); +}); + +Clazz_newMeth(C$, 'writeObject$java_io_ObjectOutputStream', function (s) { +s.defaultWriteObject$(); +s.writeInt$I(this.size); +var tab=this.table; +for (var i=0; i < tab.length; i+=2) { +var key=tab[i]; +if (key != null ) { +s.writeObject$O(C$.unmaskNull$O(key)); +s.writeObject$O(tab[i + 1]); +}} +}, p$1); + +Clazz_newMeth(C$, 'readObject$java_io_ObjectInputStream', function (s) { +s.defaultReadObject$(); +var size=s.readInt$(); +if (size < 0) throw Clazz_new_(Clazz_load('java.io.StreamCorruptedException').c$$S,["Illegal mappings count: " + size]); +p$1.init$I.apply(this, [C$.capacity$I(size)]); +for (var i=0; i < size; i++) { +var key=s.readObject$(); +var value=s.readObject$(); +p$1.putForCreate$TK$TV.apply(this, [key, value]); +} +}, p$1); + +Clazz_newMeth(C$, ['putForCreate$TK$TV'], function (key, value) { +var k=C$.maskNull$O(key); +var tab=this.table; +var len=tab.length; +var i=C$.hash$O$I(k, len); +var item; +while ((item=tab[i]) != null ){ +if (item === k ) throw Clazz_new_(Clazz_load('java.io.StreamCorruptedException')); +i=C$.nextKeyIndex$I$I(i, len); +} +tab[i]=k; +tab[i + 1]=value; +}, p$1); + +Clazz_newMeth(C$, 'forEach$java_util_function_BiConsumer', function (action) { +$I$(3).requireNonNull$TT(action); +var expectedModCount=this.modCount; +var t=this.table; +for (var index=0; index < t.length; index+=2) { +var k=t[index]; +if (k != null ) { +action.accept$(C$.unmaskNull$O(k), t[index + 1]); +}if (this.modCount != expectedModCount) { +throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +}} +}); + +Clazz_newMeth(C$, 'replaceAll$java_util_function_BiFunction', function ($function) { +$I$(3).requireNonNull$TT($function); +var expectedModCount=this.modCount; +var t=this.table; +for (var index=0; index < t.length; index+=2) { +var k=t[index]; +if (k != null ) { +t[index + 1]=$function.apply$(C$.unmaskNull$O(k), t[index + 1]); +}if (this.modCount != expectedModCount) { +throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +}} +}); +; +(function(){var C$=Clazz_newClass(P$.IdentityHashMap, "IdentityHashMapIterator", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, null, 'java.util.Iterator'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.index=0; +this.expectedModCount=0; +this.lastReturnedIndex=0; +this.indexValid=false; +this.traversalTable=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.index=(this.this$0.size != 0 ? 0 : this.this$0.table.length); +this.expectedModCount=this.this$0.modCount; +this.lastReturnedIndex=-1; +this.traversalTable=this.this$0.table; +}, 1); + +Clazz_newMeth(C$, 'hasNext$', function () { +var tab=this.traversalTable; +for (var i=this.index; i < tab.length; i+=2) { +var key=tab[i]; +if (key != null ) { +this.index=i; +return this.indexValid=true; +}} +this.index=tab.length; +return false; +}); + +Clazz_newMeth(C$, 'nextIndex$', function () { +if (this.this$0.modCount != this.expectedModCount) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +if (!this.indexValid && !this.hasNext$() ) throw Clazz_new_(Clazz_load('java.util.NoSuchElementException')); +this.indexValid=false; +this.lastReturnedIndex=this.index; +this.index+=2; +return this.lastReturnedIndex; +}); + +Clazz_newMeth(C$, 'remove$', function () { +if (this.lastReturnedIndex == -1) throw Clazz_new_(Clazz_load('IllegalStateException')); +if (this.this$0.modCount != this.expectedModCount) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +this.expectedModCount=++this.this$0.modCount; +var deletedSlot=this.lastReturnedIndex; +this.lastReturnedIndex=-1; +this.index=deletedSlot; +this.indexValid=false; +var tab=this.traversalTable; +var len=tab.length; +var d=deletedSlot; +var key=tab[d]; +tab[d]=null; +tab[d + 1]=null; +if (tab !== this.b$['java.util.IdentityHashMap'].table ) { +this.b$['java.util.IdentityHashMap'].remove$O.apply(this.b$['java.util.IdentityHashMap'], [key]); +this.expectedModCount=this.this$0.modCount; +return; +}this.this$0.size--; +var item; +for (var i=P$.IdentityHashMap.nextKeyIndex$I$I(d, len); (item=tab[i]) != null ; i=P$.IdentityHashMap.nextKeyIndex$I$I(i, len)) { +var r=P$.IdentityHashMap.hash$O$I(item, len); +if ((i < r && (r <= d || d <= i ) ) || (r <= d && d <= i ) ) { +if (i < deletedSlot && d >= deletedSlot && this.traversalTable === this.b$['java.util.IdentityHashMap'].table ) { +var remaining=len - deletedSlot; +var newTable=Clazz_array(java.lang.Object, [remaining]); +System.arraycopy$O$I$O$I$I(tab, deletedSlot, newTable, 0, remaining); +this.traversalTable=newTable; +this.index=0; +}tab[d]=item; +tab[d + 1]=tab[i + 1]; +tab[i]=null; +tab[i + 1]=null; +d=i; +}} +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.IdentityHashMap, "KeyIterator", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, ['java.util.IdentityHashMap','.IdentityHashMapIterator']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'next$', function () { +return P$.IdentityHashMap.unmaskNull$O(this.traversalTable[this.nextIndex$()]); +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.IdentityHashMap, "ValueIterator", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, ['java.util.IdentityHashMap','.IdentityHashMapIterator']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'next$', function () { +return this.traversalTable[this.nextIndex$() + 1]; +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.IdentityHashMap, "EntryIterator", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, ['java.util.IdentityHashMap','.IdentityHashMapIterator']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.lastReturnedEntry=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'next$', function () { +this.lastReturnedEntry=Clazz_new_($I$(1).c$$I, [this, null, this.nextIndex$()]); +return this.lastReturnedEntry; +}); + +Clazz_newMeth(C$, 'remove$', function () { +this.lastReturnedIndex=((null == this.lastReturnedEntry ) ? -1 : this.lastReturnedEntry.index); +C$.superclazz.prototype.remove$.apply(this, []); +this.lastReturnedEntry.index=this.lastReturnedIndex; +this.lastReturnedEntry=null; +}); +; +(function(){var C$=Clazz_newClass(P$.IdentityHashMap.EntryIterator, "Entry", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, null, [['java.util.Map','java.util.Map.Entry']]); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.index=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$I', function (index) { +C$.$init$.apply(this); +this.index=index; +}, 1); + +Clazz_newMeth(C$, 'getKey$', function () { +p$1.checkIndexForEntryUse.apply(this, []); +return P$.IdentityHashMap.unmaskNull$O(this.this$0.traversalTable[this.index]); +}); + +Clazz_newMeth(C$, 'getValue$', function () { +p$1.checkIndexForEntryUse.apply(this, []); +return this.this$0.traversalTable[this.index + 1]; +}); + +Clazz_newMeth(C$, ['setValue$TV'], function (value) { +p$1.checkIndexForEntryUse.apply(this, []); +var oldValue=this.this$0.traversalTable[this.index + 1]; +this.this$0.traversalTable[this.index + 1]=value; +if (this.this$0.traversalTable !== this.b$['java.util.IdentityHashMap'].table ) this.b$['java.util.IdentityHashMap'].put$TK$TV.apply(this.b$['java.util.IdentityHashMap'], [this.this$0.traversalTable[this.index], value]); +return oldValue; +}); + +Clazz_newMeth(C$, 'equals$O', function (o) { +if (this.index < 0) return C$.superclazz.prototype.equals$O.apply(this, [o]); +if (!(Clazz_instanceOf(o, "java.util.Map.Entry"))) return false; +var e=o; +return (e.getKey$() === P$.IdentityHashMap.unmaskNull$O(this.this$0.traversalTable[this.index]) && e.getValue$() === this.this$0.traversalTable[this.index + 1] ); +}); + +Clazz_newMeth(C$, 'hashCode$', function () { +if (this.this$0.lastReturnedIndex < 0) return C$.superclazz.prototype.hashCode$.apply(this, []); +return (System.identityHashCode$O(P$.IdentityHashMap.unmaskNull$O(this.this$0.traversalTable[this.index])) ^ System.identityHashCode$O(this.this$0.traversalTable[this.index + 1])); +}); + +Clazz_newMeth(C$, 'toString', function () { +if (this.index < 0) return C$.superclazz.prototype.toString.apply(this, []); +return (P$.IdentityHashMap.unmaskNull$O(this.this$0.traversalTable[this.index]) + "=" + this.this$0.traversalTable[this.index + 1] ); +}); + +Clazz_newMeth(C$, 'checkIndexForEntryUse', function () { +if (this.index < 0) throw Clazz_new_(Clazz_load('IllegalStateException').c$$S,["Entry was removed"]); +}, p$1); + +Clazz_newMeth(C$); +})() + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.IdentityHashMap, "KeySet", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, 'java.util.AbstractSet'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'iterator$', function () { +return Clazz_new_($I$(2), [this, null]); +}); + +Clazz_newMeth(C$, 'size$', function () { +return this.this$0.size; +}); + +Clazz_newMeth(C$, 'contains$O', function (o) { +return this.b$['java.util.IdentityHashMap'].containsKey$O.apply(this.b$['java.util.IdentityHashMap'], [o]); +}); + +Clazz_newMeth(C$, 'remove$O', function (o) { +var oldSize=this.this$0.size; +this.b$['java.util.IdentityHashMap'].remove$O.apply(this.b$['java.util.IdentityHashMap'], [o]); +return this.this$0.size != oldSize; +}); + +Clazz_newMeth(C$, 'removeAll$java_util_Collection', function (c) { +$I$(3).requireNonNull$TT(c); +var modified=false; +for (var i=this.iterator$(); i.hasNext$(); ) { +if (c.contains$O(i.next$())) { +i.remove$(); +modified=true; +}} +return modified; +}); + +Clazz_newMeth(C$, 'clear$', function () { +this.b$['java.util.IdentityHashMap'].clear$.apply(this.b$['java.util.IdentityHashMap'], []); +}); + +Clazz_newMeth(C$, 'hashCode$', function () { +var result=0; +for (var key, $key = this.iterator$(); $key.hasNext$()&&((key=($key.next$())),1);) result+=System.identityHashCode$O(key); + +return result; +}); + +Clazz_newMeth(C$, 'toArray$', function () { +return this.toArray$TTA(Clazz_array(java.lang.Object, [0])); +}); + +Clazz_newMeth(C$, 'toArray$TTA', function (a) { +var expectedModCount=this.this$0.modCount; +var size=this.size$(); +if (a.length < size) a=Clazz_array(a.getClass$().getComponentType$(), size); +var tab=this.this$0.table; +var ti=0; +for (var si=0; si < tab.length; si+=2) { +var key; +if ((key=tab[si]) != null ) { +if (ti >= size) { +throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +}a[ti++]=P$.IdentityHashMap.unmaskNull$O(key); +}} +if (ti < size || expectedModCount != this.this$0.modCount ) { +throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +}if (ti < a.length) { +a[ti]=null; +}return a; +}); + +Clazz_newMeth(C$, 'spliterator$', function () { +return Clazz_new_($I$(5).c$$java_util_IdentityHashMap$I$I$I$I,[this.b$['java.util.IdentityHashMap'], 0, -1, 0, 0]); +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.IdentityHashMap, "Values", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, 'java.util.AbstractCollection'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'iterator$', function () { +return Clazz_new_($I$(6), [this, null]); +}); + +Clazz_newMeth(C$, 'size$', function () { +return this.this$0.size; +}); + +Clazz_newMeth(C$, 'contains$O', function (o) { +return this.b$['java.util.IdentityHashMap'].containsValue$O.apply(this.b$['java.util.IdentityHashMap'], [o]); +}); + +Clazz_newMeth(C$, 'remove$O', function (o) { +for (var i=this.iterator$(); i.hasNext$(); ) { +if (i.next$() === o ) { +i.remove$(); +return true; +}} +return false; +}); + +Clazz_newMeth(C$, 'clear$', function () { +this.b$['java.util.IdentityHashMap'].clear$.apply(this.b$['java.util.IdentityHashMap'], []); +}); + +Clazz_newMeth(C$, 'toArray$', function () { +return this.toArray$TTA(Clazz_array(java.lang.Object, [0])); +}); + +Clazz_newMeth(C$, 'toArray$TTA', function (a) { +var expectedModCount=this.this$0.modCount; +var size=this.size$(); +if (a.length < size) a=Clazz_array(a.getClass$().getComponentType$(), size); +var tab=this.this$0.table; +var ti=0; +for (var si=0; si < tab.length; si+=2) { +if (tab[si] != null ) { +if (ti >= size) { +throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +}a[ti++]=tab[si + 1]; +}} +if (ti < size || expectedModCount != this.this$0.modCount ) { +throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +}if (ti < a.length) { +a[ti]=null; +}return a; +}); + +Clazz_newMeth(C$, 'spliterator$', function () { +return Clazz_new_($I$(7).c$$java_util_IdentityHashMap$I$I$I$I,[this.b$['java.util.IdentityHashMap'], 0, -1, 0, 0]); +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.IdentityHashMap, "EntrySet", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, 'java.util.AbstractSet'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'iterator$', function () { +return Clazz_new_($I$(8), [this, null]); +}); + +Clazz_newMeth(C$, 'contains$O', function (o) { +if (!(Clazz_instanceOf(o, "java.util.Map.Entry"))) return false; +var entry=o; +return p$1.containsMapping$O$O.apply(this.b$['java.util.IdentityHashMap'], [entry.getKey$(), entry.getValue$()]); +}); + +Clazz_newMeth(C$, 'remove$O', function (o) { +if (!(Clazz_instanceOf(o, "java.util.Map.Entry"))) return false; +var entry=o; +return p$1.removeMapping$O$O.apply(this.b$['java.util.IdentityHashMap'], [entry.getKey$(), entry.getValue$()]); +}); + +Clazz_newMeth(C$, 'size$', function () { +return this.this$0.size; +}); + +Clazz_newMeth(C$, 'clear$', function () { +this.b$['java.util.IdentityHashMap'].clear$.apply(this.b$['java.util.IdentityHashMap'], []); +}); + +Clazz_newMeth(C$, 'removeAll$java_util_Collection', function (c) { +$I$(3).requireNonNull$TT(c); +var modified=false; +for (var i=this.iterator$(); i.hasNext$(); ) { +if (c.contains$O(i.next$())) { +i.remove$(); +modified=true; +}} +return modified; +}); + +Clazz_newMeth(C$, 'toArray$', function () { +return this.toArray$TTA(Clazz_array(java.lang.Object, [0])); +}); + +Clazz_newMeth(C$, 'toArray$TTA', function (a) { +var expectedModCount=this.this$0.modCount; +var size=this.size$(); +if (a.length < size) a=Clazz_array(a.getClass$().getComponentType$(), size); +var tab=this.this$0.table; +var ti=0; +for (var si=0; si < tab.length; si+=2) { +var key; +if ((key=tab[si]) != null ) { +if (ti >= size) { +throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +}a[ti++]=Clazz_new_($I$(9).c$$TK$TV,[P$.IdentityHashMap.unmaskNull$O(key), tab[si + 1]]); +}} +if (ti < size || expectedModCount != this.this$0.modCount ) { +throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +}if (ti < a.length) { +a[ti]=null; +}return a; +}); + +Clazz_newMeth(C$, 'spliterator$', function () { +return Clazz_new_($I$(10).c$$java_util_IdentityHashMap$I$I$I$I,[this.b$['java.util.IdentityHashMap'], 0, -1, 0, 0]); +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.IdentityHashMap, "IdentityHashMapSpliterator", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.map=null; +this.index=0; +this.fence=0; +this.est=0; +this.expectedModCount=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$java_util_IdentityHashMap$I$I$I$I', function (map, origin, fence, est, expectedModCount) { +C$.$init$.apply(this); +this.map=map; +this.index=origin; +this.fence=fence; +this.est=est; +this.expectedModCount=expectedModCount; +}, 1); + +Clazz_newMeth(C$, 'getFence$', function () { +var hi; +if ((hi=this.fence) < 0) { +this.est=this.map.size; +this.expectedModCount=this.map.modCount; +hi=this.fence=this.map.table.length; +}return hi; +}); + +Clazz_newMeth(C$, 'estimateSize$', function () { +this.getFence$(); +return this.est; +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.IdentityHashMap, "KeySpliterator", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, ['java.util.IdentityHashMap','.IdentityHashMapSpliterator'], 'java.util.Spliterator'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, ['c$$java_util_IdentityHashMap$I$I$I$I'], function (map, origin, fence, est, expectedModCount) { +C$.superclazz.c$$java_util_IdentityHashMap$I$I$I$I.apply(this, [map, origin, fence, est, expectedModCount]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'trySplit$', function () { +var hi=this.getFence$(); +var lo=this.index; +var mid=((lo + hi) >>> 1) & ~1; +return (lo >= mid) ? null : Clazz_new_(C$.c$$java_util_IdentityHashMap$I$I$I$I,[this.map, lo, this.index=mid, this.est>>>=1, this.expectedModCount]); +}); + +Clazz_newMeth(C$, 'forEachRemaining$java_util_function_Consumer', function (action) { +if (action == null ) throw Clazz_new_(Clazz_load('NullPointerException')); +var i; +var hi; +var mc; +var key; +var m; +var a; +if ((m=this.map) != null && (a=m.table) != null && (i=this.index) >= 0 && (this.index=hi=this.getFence$()) <= a.length ) { +for (; i < hi; i+=2) { +if ((key=a[i]) != null ) action.accept$(P$.IdentityHashMap.unmaskNull$O(key)); +} +if (m.modCount == this.expectedModCount) return; +}throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +}); + +Clazz_newMeth(C$, 'tryAdvance$java_util_function_Consumer', function (action) { +if (action == null ) throw Clazz_new_(Clazz_load('NullPointerException')); +var a=this.map.table; +var hi=this.getFence$(); +while (this.index < hi){ +var key=a[this.index]; +this.index+=2; +if (key != null ) { +action.accept$(P$.IdentityHashMap.unmaskNull$O(key)); +if (this.map.modCount != this.expectedModCount) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +return true; +}} +return false; +}); + +Clazz_newMeth(C$, 'characteristics$', function () { +return (this.fence < 0 || this.est == this.map.size ? 64 : 0) | 1; +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.IdentityHashMap, "ValueSpliterator", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, ['java.util.IdentityHashMap','.IdentityHashMapSpliterator'], 'java.util.Spliterator'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, ['c$$java_util_IdentityHashMap$I$I$I$I'], function (m, origin, fence, est, expectedModCount) { +C$.superclazz.c$$java_util_IdentityHashMap$I$I$I$I.apply(this, [m, origin, fence, est, expectedModCount]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'trySplit$', function () { +var hi=this.getFence$(); +var lo=this.index; +var mid=((lo + hi) >>> 1) & ~1; +return (lo >= mid) ? null : Clazz_new_(C$.c$$java_util_IdentityHashMap$I$I$I$I,[this.map, lo, this.index=mid, this.est>>>=1, this.expectedModCount]); +}); + +Clazz_newMeth(C$, 'forEachRemaining$java_util_function_Consumer', function (action) { +if (action == null ) throw Clazz_new_(Clazz_load('NullPointerException')); +var i; +var hi; +var mc; +var m; +var a; +if ((m=this.map) != null && (a=m.table) != null && (i=this.index) >= 0 && (this.index=hi=this.getFence$()) <= a.length ) { +for (; i < hi; i+=2) { +if (a[i] != null ) { +var v=a[i + 1]; +action.accept$(v); +}} +if (m.modCount == this.expectedModCount) return; +}throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +}); + +Clazz_newMeth(C$, 'tryAdvance$java_util_function_Consumer', function (action) { +if (action == null ) throw Clazz_new_(Clazz_load('NullPointerException')); +var a=this.map.table; +var hi=this.getFence$(); +while (this.index < hi){ +var key=a[this.index]; +var v=a[this.index + 1]; +this.index+=2; +if (key != null ) { +action.accept$(v); +if (this.map.modCount != this.expectedModCount) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +return true; +}} +return false; +}); + +Clazz_newMeth(C$, 'characteristics$', function () { +return (this.fence < 0 || this.est == this.map.size ? 64 : 0); +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.IdentityHashMap, "EntrySpliterator", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, ['java.util.IdentityHashMap','.IdentityHashMapSpliterator'], 'java.util.Spliterator'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, ['c$$java_util_IdentityHashMap$I$I$I$I'], function (m, origin, fence, est, expectedModCount) { +C$.superclazz.c$$java_util_IdentityHashMap$I$I$I$I.apply(this, [m, origin, fence, est, expectedModCount]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'trySplit$', function () { +var hi=this.getFence$(); +var lo=this.index; +var mid=((lo + hi) >>> 1) & ~1; +return (lo >= mid) ? null : Clazz_new_(C$.c$$java_util_IdentityHashMap$I$I$I$I,[this.map, lo, this.index=mid, this.est>>>=1, this.expectedModCount]); +}); + +Clazz_newMeth(C$, ['forEachRemaining$java_util_function_Consumer'], function (action) { +if (action == null ) throw Clazz_new_(Clazz_load('NullPointerException')); +var i; +var hi; +var mc; +var m; +var a; +if ((m=this.map) != null && (a=m.table) != null && (i=this.index) >= 0 && (this.index=hi=this.getFence$()) <= a.length ) { +for (; i < hi; i+=2) { +var key=a[i]; +if (key != null ) { +var k=P$.IdentityHashMap.unmaskNull$O(key); +var v=a[i + 1]; +action.accept$(Clazz_new_($I$(11).c$$TK$TV,[k, v])); +}} +if (m.modCount == this.expectedModCount) return; +}throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +}); + +Clazz_newMeth(C$, ['tryAdvance$java_util_function_Consumer'], function (action) { +if (action == null ) throw Clazz_new_(Clazz_load('NullPointerException')); +var a=this.map.table; +var hi=this.getFence$(); +while (this.index < hi){ +var key=a[this.index]; +var v=a[this.index + 1]; +this.index+=2; +if (key != null ) { +var k=P$.IdentityHashMap.unmaskNull$O(key); +action.accept$(Clazz_new_($I$(11).c$$TK$TV,[k, v])); +if (this.map.modCount != this.expectedModCount) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +return true; +}} +return false; +}); + +Clazz_newMeth(C$, 'characteristics$', function () { +return (this.fence < 0 || this.est == this.map.size ? 64 : 0) | 1; +}); + +Clazz_newMeth(C$); +})() +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:41 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=java.util,I$=[[0,'java.util.Objects']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newInterface(P$, "Iterator"); +C$.$defaults$ = function(C$){ + +Clazz_newMeth(C$, 'remove$', function () { +throw Clazz_new_(Clazz_load('UnsupportedOperationException').c$$S,["remove"]); +}); + +Clazz_newMeth(C$, 'forEachRemaining$java_util_function_Consumer', function (action) { +$I$(1).requireNonNull$TT(action); +while (this.hasNext$())action.accept$(this.next$()); + +}); +};})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:41 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=java.util,p$1={},I$=[[0,['java.util.LinkedHashMap','.LinkedKeyIterator'],'java.util.Spliterators',['java.util.LinkedHashMap','.LinkedValueIterator'],['java.util.LinkedHashMap','.LinkedEntryIterator'],['java.util.LinkedHashMap','.Entry'],['java.util.HashMap','.TreeNode'],['java.util.LinkedHashMap','.LinkedKeySet'],['java.util.LinkedHashMap','.LinkedValues'],['java.util.LinkedHashMap','.LinkedEntrySet']]],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "LinkedHashMap", function(){ +Clazz_newInstance(this, arguments,0,C$); +}, 'java.util.HashMap', 'java.util.Map'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.head=null; +this.tail=null; +this.accessOrder=false; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, ['linkNodeLast$java_util_LinkedHashMap_Entry'], function (p) { +var last=this.tail; +this.tail=p; +if (last == null ) this.head=p; + else { +p.before=last; +last.after=p; +}}, p$1); + +Clazz_newMeth(C$, ['transferLinks$java_util_LinkedHashMap_Entry$java_util_LinkedHashMap_Entry'], function (src, dst) { +var b=dst.before=src.before; +var a=dst.after=src.after; +if (b == null ) this.head=dst; + else b.after=dst; +if (a == null ) this.tail=dst; + else a.before=dst; +}, p$1); + +Clazz_newMeth(C$, 'reinitialize$', function () { +C$.superclazz.prototype.reinitialize$.apply(this, []); +this.head=this.tail=null; +}); + +Clazz_newMeth(C$, ['newNode$I$TK$TV$java_util_HashMap_Node'], function (hash, key, value, e) { +var p=Clazz_new_($I$(5).c$$I$TK$TV$java_util_HashMap_Node,[hash, key, value, e]); +p$1.linkNodeLast$java_util_LinkedHashMap_Entry.apply(this, [p]); +return p; +}); + +Clazz_newMeth(C$, ['replacementNode$java_util_HashMap_Node$java_util_HashMap_Node'], function (p, next) { +var q=p; +var t=Clazz_new_($I$(5).c$$I$TK$TV$java_util_HashMap_Node,[q.hash, q.key, q.value, next]); +p$1.transferLinks$java_util_LinkedHashMap_Entry$java_util_LinkedHashMap_Entry.apply(this, [q, t]); +return t; +}); + +Clazz_newMeth(C$, ['newTreeNode$I$TK$TV$java_util_HashMap_Node'], function (hash, key, value, next) { +var p=Clazz_new_($I$(6).c$$I$TK$TV$java_util_HashMap_Node,[hash, key, value, next]); +p$1.linkNodeLast$java_util_LinkedHashMap_Entry.apply(this, [p]); +return p; +}); + +Clazz_newMeth(C$, ['replacementTreeNode$java_util_HashMap_Node$java_util_HashMap_Node'], function (p, next) { +var q=p; +var t=Clazz_new_($I$(6).c$$I$TK$TV$java_util_HashMap_Node,[q.hash, q.key, q.value, next]); +p$1.transferLinks$java_util_LinkedHashMap_Entry$java_util_LinkedHashMap_Entry.apply(this, [q, t]); +return t; +}); + +Clazz_newMeth(C$, ['afterNodeRemoval$java_util_HashMap_Node'], function (e) { +var p=e; +var b=p.before; +var a=p.after; +p.before=p.after=null; +if (b == null ) this.head=a; + else b.after=a; +if (a == null ) this.tail=b; + else a.before=b; +}); + +Clazz_newMeth(C$, 'afterNodeInsertion$Z', function (evict) { +var first; +if (evict && (first=this.head) != null && this.removeEldestEntry$java_util_Map_Entry(first) ) { +var key=first.key; +this.removeNode$I$O$O$Z$Z(P$.HashMap.hash$O(key), key, null, false, true); +}}); + +Clazz_newMeth(C$, ['afterNodeAccess$java_util_HashMap_Node'], function (e) { +var last; +if (this.accessOrder && (last=this.tail) !== e ) { +var p=e; +var b=p.before; +var a=p.after; +p.after=null; +if (b == null ) this.head=a; + else b.after=a; +if (a != null ) a.before=b; + else last=b; +if (last == null ) this.head=p; + else { +p.before=last; +last.after=p; +}this.tail=p; +++this.modCount; +}}); + +Clazz_newMeth(C$, 'internalWriteEntries$java_io_ObjectOutputStream', function (s) { +for (var e=this.head; e != null ; e=e.after) { +s.writeObject$O(e.key); +s.writeObject$O(e.value); +} +}); + +Clazz_newMeth(C$, 'c$$I$F', function (initialCapacity, loadFactor) { +C$.superclazz.c$$I$F.apply(this, [initialCapacity, loadFactor]); +C$.$init$.apply(this); +this.accessOrder=false; +}, 1); + +Clazz_newMeth(C$, 'c$$I', function (initialCapacity) { +C$.superclazz.c$$I.apply(this, [initialCapacity]); +C$.$init$.apply(this); +this.accessOrder=false; +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.superclazz.c$.apply(this, []); +C$.$init$.apply(this); +this.accessOrder=false; +}, 1); + +Clazz_newMeth(C$, 'c$$java_util_Map', function (m) { +C$.superclazz.c$.apply(this, []); +C$.$init$.apply(this); +this.accessOrder=false; +this.putMapEntries$java_util_Map$Z(m, false); +}, 1); + +Clazz_newMeth(C$, 'c$$I$F$Z', function (initialCapacity, loadFactor, accessOrder) { +C$.superclazz.c$$I$F.apply(this, [initialCapacity, loadFactor]); +C$.$init$.apply(this); +this.accessOrder=accessOrder; +}, 1); + +Clazz_newMeth(C$, 'containsValue$O', function (value) { +for (var e=this.head; e != null ; e=e.after) { +var v=e.value; +if (v === value || (value != null && value.equals$O(v) ) ) return true; +} +return false; +}); + +Clazz_newMeth(C$, 'get$O', function (key) { +var e; +if ((e=this.getNode$I$O(P$.HashMap.hash$O(key), key)) == null ) return null; +if (this.accessOrder) this.afterNodeAccess$java_util_HashMap_Node(e); +return e.value; +}); + +Clazz_newMeth(C$, ['getOrDefault$O$TV'], function (key, defaultValue) { +var e; +if ((e=this.getNode$I$O(P$.HashMap.hash$O(key), key)) == null ) return defaultValue; +if (this.accessOrder) this.afterNodeAccess$java_util_HashMap_Node(e); +return e.value; +}); + +Clazz_newMeth(C$, 'clear$', function () { +C$.superclazz.prototype.clear$.apply(this, []); +this.head=this.tail=null; +}); + +Clazz_newMeth(C$, ['removeEldestEntry$java_util_Map_Entry'], function (eldest) { +return false; +}); + +Clazz_newMeth(C$, 'keySet$', function () { +var ks; +return (ks=this.keySet) == null ? (this.keySet=Clazz_new_($I$(7), [this, null])) : ks; +}); + +Clazz_newMeth(C$, 'values$', function () { +var vs; +return (vs=this.values) == null ? (this.values=Clazz_new_($I$(8), [this, null])) : vs; +}); + +Clazz_newMeth(C$, 'entrySet$', function () { +var es; +return (es=this.entrySet) == null ? (this.entrySet=Clazz_new_($I$(9), [this, null])) : es; +}); + +Clazz_newMeth(C$, 'forEach$java_util_function_BiConsumer', function (action) { +if (action == null ) throw Clazz_new_(Clazz_load('NullPointerException')); +var mc=this.modCount; +for (var e=this.head; e != null ; e=e.after) action.accept$(e.key, e.value); + +if (this.modCount != mc) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +}); + +Clazz_newMeth(C$, 'replaceAll$java_util_function_BiFunction', function ($function) { +if ($function == null ) throw Clazz_new_(Clazz_load('NullPointerException')); +var mc=this.modCount; +for (var e=this.head; e != null ; e=e.after) e.value=$function.apply$(e.key, e.value); + +if (this.modCount != mc) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +}); +; +(function(){var C$=Clazz_newClass(P$.LinkedHashMap, "Entry", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, ['java.util.HashMap','.Node']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.before=null; +this.after=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, ['c$$I$TK$TV$java_util_HashMap_Node'], function (hash, key, value, next) { +C$.superclazz.c$$I$TK$TV$java_util_HashMap_Node.apply(this, [hash, key, value, next]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.LinkedHashMap, "LinkedKeySet", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, 'java.util.AbstractSet'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'size$', function () { +return this.this$0.size; +}); + +Clazz_newMeth(C$, 'clear$', function () { +this.b$['java.util.LinkedHashMap'].clear$.apply(this.b$['java.util.LinkedHashMap'], []); +}); + +Clazz_newMeth(C$, 'iterator$', function () { +return Clazz_new_($I$(1), [this, null]); +}); + +Clazz_newMeth(C$, 'contains$O', function (o) { +return this.b$['java.util.HashMap'].containsKey$O.apply(this.b$['java.util.HashMap'], [o]); +}); + +Clazz_newMeth(C$, 'remove$O', function (key) { +return this.b$['java.util.HashMap'].removeNode$I$O$O$Z$Z.apply(this.b$['java.util.HashMap'], [P$.HashMap.hash$O(key), key, null, false, true]) != null ; +}); + +Clazz_newMeth(C$, 'spliterator$', function () { +return $I$(2).spliterator$java_util_Collection$I(this, 81); +}); + +Clazz_newMeth(C$, 'forEach$java_util_function_Consumer', function (action) { +if (action == null ) throw Clazz_new_(Clazz_load('NullPointerException')); +var mc=this.this$0.modCount; +for (var e=this.this$0.head; e != null ; e=e.after) action.accept$(e.key); + +if (this.this$0.modCount != mc) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.LinkedHashMap, "LinkedValues", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, 'java.util.AbstractCollection'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'size$', function () { +return this.this$0.size; +}); + +Clazz_newMeth(C$, 'clear$', function () { +this.b$['java.util.LinkedHashMap'].clear$.apply(this.b$['java.util.LinkedHashMap'], []); +}); + +Clazz_newMeth(C$, 'iterator$', function () { +return Clazz_new_($I$(3), [this, null]); +}); + +Clazz_newMeth(C$, 'contains$O', function (o) { +return this.b$['java.util.LinkedHashMap'].containsValue$O.apply(this.b$['java.util.LinkedHashMap'], [o]); +}); + +Clazz_newMeth(C$, 'spliterator$', function () { +return $I$(2).spliterator$java_util_Collection$I(this, 80); +}); + +Clazz_newMeth(C$, 'forEach$java_util_function_Consumer', function (action) { +if (action == null ) throw Clazz_new_(Clazz_load('NullPointerException')); +var mc=this.this$0.modCount; +for (var e=this.this$0.head; e != null ; e=e.after) action.accept$(e.value); + +if (this.this$0.modCount != mc) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.LinkedHashMap, "LinkedEntrySet", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, 'java.util.AbstractSet'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'size$', function () { +return this.this$0.size; +}); + +Clazz_newMeth(C$, 'clear$', function () { +this.b$['java.util.LinkedHashMap'].clear$.apply(this.b$['java.util.LinkedHashMap'], []); +}); + +Clazz_newMeth(C$, 'iterator$', function () { +return Clazz_new_($I$(4), [this, null]); +}); + +Clazz_newMeth(C$, 'contains$O', function (o) { +if (!(Clazz_instanceOf(o, "java.util.Map.Entry"))) return false; +var e=o; +var key=e.getKey$(); +var candidate=this.b$['java.util.HashMap'].getNode$I$O.apply(this.b$['java.util.HashMap'], [P$.HashMap.hash$O(key), key]); +return candidate != null && candidate.equals$O(e) ; +}); + +Clazz_newMeth(C$, 'remove$O', function (o) { +if (Clazz_instanceOf(o, "java.util.Map.Entry")) { +var e=o; +var key=e.getKey$(); +var value=e.getValue$(); +return this.b$['java.util.HashMap'].removeNode$I$O$O$Z$Z.apply(this.b$['java.util.HashMap'], [P$.HashMap.hash$O(key), key, value, true, true]) != null ; +}return false; +}); + +Clazz_newMeth(C$, 'spliterator$', function () { +return $I$(2).spliterator$java_util_Collection$I(this, 81); +}); + +Clazz_newMeth(C$, 'forEach$java_util_function_Consumer', function (action) { +if (action == null ) throw Clazz_new_(Clazz_load('NullPointerException')); +var mc=this.this$0.modCount; +for (var e=this.this$0.head; e != null ; e=e.after) action.accept$(e); + +if (this.this$0.modCount != mc) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.LinkedHashMap, "LinkedHashIterator", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.nextItem=null; +this.current=null; +this.expectedModCount=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.$init$.apply(this); +this.nextItem=this.this$0.head; +this.expectedModCount=this.this$0.modCount; +this.current=null; +}, 1); + +Clazz_newMeth(C$, 'hasNext$', function () { +return this.nextItem != null ; +}); + +Clazz_newMeth(C$, 'nextNode$', function () { +var e=this.nextItem; +if (this.this$0.modCount != this.expectedModCount) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +if (e == null ) throw Clazz_new_(Clazz_load('java.util.NoSuchElementException')); +this.current=e; +this.nextItem=e.after; +return e; +}); + +Clazz_newMeth(C$, 'remove$', function () { +var p=this.current; +if (p == null ) throw Clazz_new_(Clazz_load('IllegalStateException')); +if (this.this$0.modCount != this.expectedModCount) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +this.current=null; +var key=p.key; +this.b$['java.util.HashMap'].removeNode$I$O$O$Z$Z.apply(this.b$['java.util.HashMap'], [P$.HashMap.hash$O(key), key, null, false, false]); +this.expectedModCount=this.this$0.modCount; +}); +})() +; +(function(){var C$=Clazz_newClass(P$.LinkedHashMap, "LinkedKeyIterator", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, ['java.util.LinkedHashMap','.LinkedHashIterator'], 'java.util.Iterator'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'next$', function () { +return this.nextNode$().getKey$(); +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.LinkedHashMap, "LinkedValueIterator", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, ['java.util.LinkedHashMap','.LinkedHashIterator'], 'java.util.Iterator'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'next$', function () { +return this.nextNode$().value; +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.LinkedHashMap, "LinkedEntryIterator", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, ['java.util.LinkedHashMap','.LinkedHashIterator'], 'java.util.Iterator'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'next$', function () { +return this.nextNode$(); +}); + +Clazz_newMeth(C$); +})() +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:42 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=java.util,p$1={},I$=[[0,'java.util.Objects',['java.util.LinkedList','.ListItr'],'java.util.Spliterators',['java.util.LinkedList','.Node'],['java.util.LinkedList','.DescendingIterator'],'InternalError','java.lang.reflect.Array',['java.util.LinkedList','.LLSpliterator']]],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "LinkedList", function(){ +Clazz_newInstance(this, arguments,0,C$); +}, 'java.util.AbstractSequentialList', ['java.util.List', 'java.util.Deque', 'Cloneable', 'java.io.Serializable']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.size=0; +this.first=null; +this.last=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.size=0; +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +Clazz_super_(C$, this,1); +}, 1); + +Clazz_newMeth(C$, 'c$$java_util_Collection', function (c) { +C$.c$.apply(this, []); +this.addAll$java_util_Collection(c); +}, 1); + +Clazz_newMeth(C$, ['linkFirst$TE'], function (e) { +var f=this.first; +var newNode=Clazz_new_($I$(4).c$$java_util_LinkedList_Node$TE$java_util_LinkedList_Node,[null, e, f]); +this.first=newNode; +if (f == null ) this.last=newNode; + else f.prev=newNode; +this.size++; +this.modCount++; +}, p$1); + +Clazz_newMeth(C$, ['linkLast$TE'], function (e) { +var l=this.last; +var newNode=Clazz_new_($I$(4).c$$java_util_LinkedList_Node$TE$java_util_LinkedList_Node,[l, e, null]); +this.last=newNode; +if (l == null ) this.first=newNode; + else l.next_=newNode; +this.size++; +this.modCount++; +}); + +Clazz_newMeth(C$, ['linkBefore$TE$java_util_LinkedList_Node'], function (e, succ) { +var pred=succ.prev; +var newNode=Clazz_new_($I$(4).c$$java_util_LinkedList_Node$TE$java_util_LinkedList_Node,[pred, e, succ]); +succ.prev=newNode; +if (pred == null ) this.first=newNode; + else pred.next_=newNode; +this.size++; +this.modCount++; +}); + +Clazz_newMeth(C$, 'unlinkFirst$java_util_LinkedList_Node', function (f) { +var element=f.item; +var next=f.next_; +f.item=null; +f.next_=null; +this.first=next; +if (next == null ) this.last=null; + else next.prev=null; +this.size--; +this.modCount++; +return element; +}, p$1); + +Clazz_newMeth(C$, 'unlinkLast$java_util_LinkedList_Node', function (l) { +var element=l.item; +var prev=l.prev; +l.item=null; +l.prev=null; +this.last=prev; +if (prev == null ) this.first=null; + else prev.next_=null; +this.size--; +this.modCount++; +return element; +}, p$1); + +Clazz_newMeth(C$, 'unlink$java_util_LinkedList_Node', function (x) { +var element=x.item; +var next=x.next_; +var prev=x.prev; +if (prev == null ) { +this.first=next; +} else { +prev.next_=next; +x.prev=null; +}if (next == null ) { +this.last=prev; +} else { +next.prev=prev; +x.next_=null; +}x.item=null; +this.size--; +this.modCount++; +return element; +}); + +Clazz_newMeth(C$, 'getFirst$', function () { +var f=this.first; +if (f == null ) throw Clazz_new_(Clazz_load('java.util.NoSuchElementException')); +return f.item; +}); + +Clazz_newMeth(C$, 'getLast$', function () { +var l=this.last; +if (l == null ) throw Clazz_new_(Clazz_load('java.util.NoSuchElementException')); +return l.item; +}); + +Clazz_newMeth(C$, 'removeFirst$', function () { +var f=this.first; +if (f == null ) throw Clazz_new_(Clazz_load('java.util.NoSuchElementException')); +return p$1.unlinkFirst$java_util_LinkedList_Node.apply(this, [f]); +}); + +Clazz_newMeth(C$, 'removeLast$', function () { +var l=this.last; +if (l == null ) throw Clazz_new_(Clazz_load('java.util.NoSuchElementException')); +return p$1.unlinkLast$java_util_LinkedList_Node.apply(this, [l]); +}); + +Clazz_newMeth(C$, ['addFirst$TE'], function (e) { +p$1.linkFirst$TE.apply(this, [e]); +}); + +Clazz_newMeth(C$, ['addLast$TE'], function (e) { +this.linkLast$TE(e); +}); + +Clazz_newMeth(C$, 'contains$O', function (o) { +return this.indexOf$O(o) != -1; +}); + +Clazz_newMeth(C$, 'size$', function () { +return this.size; +}); + +Clazz_newMeth(C$, ['add$TE'], function (e) { +this.linkLast$TE(e); +return true; +}); + +Clazz_newMeth(C$, 'remove$O', function (o) { +if (o == null ) { +for (var x=this.first; x != null ; x=x.next_) { +if (x.item == null ) { +this.unlink$java_util_LinkedList_Node(x); +return true; +}} +} else { +for (var x=this.first; x != null ; x=x.next_) { +if (o.equals$O(x.item)) { +this.unlink$java_util_LinkedList_Node(x); +return true; +}} +}return false; +}); + +Clazz_newMeth(C$, 'addAll$java_util_Collection', function (c) { +return this.addAll$I$java_util_Collection(this.size, c); +}); + +Clazz_newMeth(C$, 'addAll$I$java_util_Collection', function (index, c) { +p$1.checkPositionIndex$I.apply(this, [index]); +var a=c.toArray$(); +var numNew=a.length; +if (numNew == 0) return false; +var pred; +var succ; +if (index == this.size) { +succ=null; +pred=this.last; +} else { +succ=this.node$I(index); +pred=succ.prev; +}for (var o, $o = 0, $$o = a; $o<$$o.length&&((o=($$o[$o])),1);$o++) { +var e=o; +var newNode=Clazz_new_($I$(4).c$$java_util_LinkedList_Node$TE$java_util_LinkedList_Node,[pred, e, null]); +if (pred == null ) this.first=newNode; + else pred.next_=newNode; +pred=newNode; +} +if (succ == null ) { +this.last=pred; +} else { +pred.next_=succ; +succ.prev=pred; +}this.size+=numNew; +this.modCount++; +return true; +}); + +Clazz_newMeth(C$, 'clear$', function () { +for (var x=this.first; x != null ; ) { +var next=x.next_; +x.item=null; +x.next_=null; +x.prev=null; +x=next; +} +this.first=this.last=null; +this.size=0; +this.modCount++; +}); + +Clazz_newMeth(C$, 'get$I', function (index) { +p$1.checkElementIndex$I.apply(this, [index]); +return this.node$I(index).item; +}); + +Clazz_newMeth(C$, 'set$I$TE', function (index, element) { +p$1.checkElementIndex$I.apply(this, [index]); +var x=this.node$I(index); +var oldVal=x.item; +x.item=element; +return oldVal; +}); + +Clazz_newMeth(C$, 'add$I$TE', function (index, element) { +p$1.checkPositionIndex$I.apply(this, [index]); +if (index == this.size) this.linkLast$TE(element); + else this.linkBefore$TE$java_util_LinkedList_Node(element, this.node$I(index)); +}); + +Clazz_newMeth(C$, 'remove$I', function (index) { +p$1.checkElementIndex$I.apply(this, [index]); +return this.unlink$java_util_LinkedList_Node(this.node$I(index)); +}); + +Clazz_newMeth(C$, 'isElementIndex$I', function (index) { +return index >= 0 && index < this.size ; +}, p$1); + +Clazz_newMeth(C$, 'isPositionIndex$I', function (index) { +return index >= 0 && index <= this.size ; +}, p$1); + +Clazz_newMeth(C$, 'outOfBoundsMsg$I', function (index) { +return "Index: " + index + ", Size: " + this.size ; +}, p$1); + +Clazz_newMeth(C$, 'checkElementIndex$I', function (index) { +if (!p$1.isElementIndex$I.apply(this, [index])) throw Clazz_new_(Clazz_load('IndexOutOfBoundsException').c$$S,[p$1.outOfBoundsMsg$I.apply(this, [index])]); +}, p$1); + +Clazz_newMeth(C$, 'checkPositionIndex$I', function (index) { +if (!p$1.isPositionIndex$I.apply(this, [index])) throw Clazz_new_(Clazz_load('IndexOutOfBoundsException').c$$S,[p$1.outOfBoundsMsg$I.apply(this, [index])]); +}, p$1); + +Clazz_newMeth(C$, 'node$I', function (index) { +if (index < (this.size >> 1)) { +var x=this.first; +for (var i=0; i < index; i++) x=x.next_; + +return x; +} else { +var x=this.last; +for (var i=this.size - 1; i > index; i--) x=x.prev; + +return x; +}}); + +Clazz_newMeth(C$, 'indexOf$O', function (o) { +var index=0; +if (o == null ) { +for (var x=this.first; x != null ; x=x.next_) { +if (x.item == null ) return index; +index++; +} +} else { +for (var x=this.first; x != null ; x=x.next_) { +if (o.equals$O(x.item)) return index; +index++; +} +}return -1; +}); + +Clazz_newMeth(C$, 'lastIndexOf$O', function (o) { +var index=this.size; +if (o == null ) { +for (var x=this.last; x != null ; x=x.prev) { +index--; +if (x.item == null ) return index; +} +} else { +for (var x=this.last; x != null ; x=x.prev) { +index--; +if (o.equals$O(x.item)) return index; +} +}return -1; +}); + +Clazz_newMeth(C$, 'peek$', function () { +var f=this.first; +return (f == null ) ? null : f.item; +}); + +Clazz_newMeth(C$, 'element$', function () { +return this.getFirst$(); +}); + +Clazz_newMeth(C$, 'poll$', function () { +var f=this.first; +return (f == null ) ? null : p$1.unlinkFirst$java_util_LinkedList_Node.apply(this, [f]); +}); + +Clazz_newMeth(C$, 'remove$', function () { +return this.removeFirst$(); +}); + +Clazz_newMeth(C$, ['offer$TE'], function (e) { +return this.add$TE(e); +}); + +Clazz_newMeth(C$, ['offerFirst$TE'], function (e) { +this.addFirst$TE(e); +return true; +}); + +Clazz_newMeth(C$, ['offerLast$TE'], function (e) { +this.addLast$TE(e); +return true; +}); + +Clazz_newMeth(C$, 'peekFirst$', function () { +var f=this.first; +return (f == null ) ? null : f.item; +}); + +Clazz_newMeth(C$, 'peekLast$', function () { +var l=this.last; +return (l == null ) ? null : l.item; +}); + +Clazz_newMeth(C$, 'pollFirst$', function () { +var f=this.first; +return (f == null ) ? null : p$1.unlinkFirst$java_util_LinkedList_Node.apply(this, [f]); +}); + +Clazz_newMeth(C$, 'pollLast$', function () { +var l=this.last; +return (l == null ) ? null : p$1.unlinkLast$java_util_LinkedList_Node.apply(this, [l]); +}); + +Clazz_newMeth(C$, ['push$TE'], function (e) { +this.addFirst$TE(e); +}); + +Clazz_newMeth(C$, 'pop$', function () { +return this.removeFirst$(); +}); + +Clazz_newMeth(C$, 'removeFirstOccurrence$O', function (o) { +return this.remove$O(o); +}); + +Clazz_newMeth(C$, 'removeLastOccurrence$O', function (o) { +if (o == null ) { +for (var x=this.last; x != null ; x=x.prev) { +if (x.item == null ) { +this.unlink$java_util_LinkedList_Node(x); +return true; +}} +} else { +for (var x=this.last; x != null ; x=x.prev) { +if (o.equals$O(x.item)) { +this.unlink$java_util_LinkedList_Node(x); +return true; +}} +}return false; +}); + +Clazz_newMeth(C$, 'listIterator$I', function (index) { +p$1.checkPositionIndex$I.apply(this, [index]); +return Clazz_new_($I$(2).c$$I, [this, null, index]); +}); + +Clazz_newMeth(C$, 'descendingIterator$', function () { +return Clazz_new_($I$(5), [this, null]); +}); + +Clazz_newMeth(C$, 'superClone', function () { +try { +return Clazz_clone(this); +} catch (e) { +if (Clazz_exceptionOf(e,"CloneNotSupportedException")){ +throw Clazz_new_($I$(6).c$$Throwable,[e]); +} else { +throw e; +} +} +}, p$1); + +Clazz_newMeth(C$, 'clone$', function () { +var clone=p$1.superClone.apply(this, []); +clone.first=clone.last=null; +clone.size=0; +clone.modCount=0; +for (var x=this.first; x != null ; x=x.next_) clone.add$TE(x.item); + +return clone; +}); + +Clazz_newMeth(C$, 'toArray$', function () { +var result=Clazz_array(java.lang.Object, [this.size]); +var i=0; +for (var x=this.first; x != null ; x=x.next_) result[i++]=x.item; + +return result; +}); + +Clazz_newMeth(C$, 'toArray$TTA', function (a) { +if (a.length < this.size) a=Clazz_array(a.getClass$().getComponentType$(), this.size); +var i=0; +var result=a; +for (var x=this.first; x != null ; x=x.next_) result[i++]=x.item; + +if (a.length > this.size) a[this.size]=null; +return a; +}); + +Clazz_newMeth(C$, 'writeObject$java_io_ObjectOutputStream', function (s) { +s.defaultWriteObject$(); +s.writeInt$I(this.size); +for (var x=this.first; x != null ; x=x.next_) s.writeObject$O(x.item); + +}, p$1); + +Clazz_newMeth(C$, 'readObject$java_io_ObjectInputStream', function (s) { +s.defaultReadObject$(); +var size=s.readInt$(); +for (var i=0; i < size; i++) this.linkLast$TE(s.readObject$()); + +}, p$1); + +Clazz_newMeth(C$, 'spliterator$', function () { +return Clazz_new_($I$(8).c$$java_util_LinkedList$I$I,[this, -1, 0]); +}); +; +(function(){var C$=Clazz_newClass(P$.LinkedList, "ListItr", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, null, 'java.util.ListIterator'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.lastReturned=null; +this.next=null; +this.nextIndex=0; +this.expectedModCount=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.expectedModCount=this.this$0.modCount; +}, 1); + +Clazz_newMeth(C$, 'c$$I', function (index) { +C$.$init$.apply(this); +this.next=(index == this.this$0.size) ? null : this.b$['java.util.LinkedList'].node$I.apply(this.b$['java.util.LinkedList'], [index]); +this.nextIndex=index; +}, 1); + +Clazz_newMeth(C$, 'hasNext$', function () { +return this.nextIndex < this.this$0.size; +}); + +Clazz_newMeth(C$, 'next$', function () { +this.checkForComodification$(); +if (!this.hasNext$()) throw Clazz_new_(Clazz_load('java.util.NoSuchElementException')); +this.lastReturned=this.next; +this.next=this.next.next_; +this.nextIndex++; +return this.lastReturned.item; +}); + +Clazz_newMeth(C$, 'hasPrevious$', function () { +return this.nextIndex > 0; +}); + +Clazz_newMeth(C$, 'previous$', function () { +this.checkForComodification$(); +if (!this.hasPrevious$()) throw Clazz_new_(Clazz_load('java.util.NoSuchElementException')); +this.lastReturned=this.next=(this.next == null ) ? this.this$0.last : this.next.prev; +this.nextIndex--; +return this.lastReturned.item; +}); + +Clazz_newMeth(C$, 'nextIndex$', function () { +return this.nextIndex; +}); + +Clazz_newMeth(C$, 'previousIndex$', function () { +return this.nextIndex - 1; +}); + +Clazz_newMeth(C$, 'remove$', function () { +this.checkForComodification$(); +if (this.lastReturned == null ) throw Clazz_new_(Clazz_load('IllegalStateException')); +var lastNext=this.lastReturned.next_; +this.b$['java.util.LinkedList'].unlink$java_util_LinkedList_Node.apply(this.b$['java.util.LinkedList'], [this.lastReturned]); +if (this.next === this.lastReturned ) this.next=lastNext; + else this.nextIndex--; +this.lastReturned=null; +this.expectedModCount++; +}); + +Clazz_newMeth(C$, ['set$TE'], function (e) { +if (this.lastReturned == null ) throw Clazz_new_(Clazz_load('IllegalStateException')); +this.checkForComodification$(); +this.lastReturned.item=e; +}); + +Clazz_newMeth(C$, ['add$TE'], function (e) { +this.checkForComodification$(); +this.lastReturned=null; +if (this.next == null ) this.b$['java.util.LinkedList'].linkLast$TE.apply(this.b$['java.util.LinkedList'], [e]); + else this.b$['java.util.LinkedList'].linkBefore$TE$java_util_LinkedList_Node.apply(this.b$['java.util.LinkedList'], [e, this.next]); +this.nextIndex++; +this.expectedModCount++; +}); + +Clazz_newMeth(C$, 'forEachRemaining$java_util_function_Consumer', function (action) { +$I$(1).requireNonNull$TT(action); +while (this.this$0.modCount == this.expectedModCount && this.nextIndex < this.this$0.size ){ +action.accept$(this.next.item); +this.lastReturned=this.next; +this.next=this.next.next_; +this.nextIndex++; +} +this.checkForComodification$(); +}); + +Clazz_newMeth(C$, 'checkForComodification$', function () { +if (this.this$0.modCount != this.expectedModCount) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.LinkedList, "Node", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.item=null; +this.next_=null; +this.prev=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$java_util_LinkedList_Node$TE$java_util_LinkedList_Node', function (prev, element, next) { +C$.$init$.apply(this); +this.item=element; +this.next_=next; +this.prev=prev; +}, 1); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.LinkedList, "DescendingIterator", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, null, 'java.util.Iterator'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.itr=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.itr=Clazz_new_($I$(2).c$$I, [this, null, this.b$['java.util.LinkedList'].size$.apply(this.b$['java.util.LinkedList'], [])]); +}, 1); + +Clazz_newMeth(C$, 'hasNext$', function () { +return this.itr.hasPrevious$(); +}); + +Clazz_newMeth(C$, 'next$', function () { +return this.itr.previous$(); +}); + +Clazz_newMeth(C$, 'remove$', function () { +this.itr.remove$(); +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.LinkedList, "LLSpliterator", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, null, 'java.util.Spliterator'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.list=null; +this.current=null; +this.est=0; +this.expectedModCount=0; +this.batch=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$java_util_LinkedList$I$I', function (list, est, expectedModCount) { +C$.$init$.apply(this); +this.list=list; +this.est=est; +this.expectedModCount=expectedModCount; +}, 1); + +Clazz_newMeth(C$, 'getEst$', function () { +var s; +var lst; +if ((s=this.est) < 0) { +if ((lst=this.list) == null ) s=this.est=0; + else { +this.expectedModCount=lst.modCount; +this.current=lst.first; +s=this.est=lst.size; +}}return s; +}); + +Clazz_newMeth(C$, 'estimateSize$', function () { +return this.getEst$(); +}); + +Clazz_newMeth(C$, 'trySplit$', function () { +var p; +var s=this.getEst$(); +if (s > 1 && (p=this.current) != null ) { +var n=this.batch + 1024; +if (n > s) n=s; +if (n > 33554432) n=33554432; +var a=Clazz_array(java.lang.Object, [n]); +var j=0; +do { +a[j++]=p.item; +} while ((p=p.next_) != null && j < n ); +this.current=p; +this.batch=j; +this.est=s - j; +return $I$(3).spliterator$OA$I$I$I(a, 0, j, 16); +}return null; +}); + +Clazz_newMeth(C$, 'forEachRemaining$java_util_function_Consumer', function (action) { +var p; +var n; +if (action == null ) throw Clazz_new_(Clazz_load('NullPointerException')); +if ((n=this.getEst$()) > 0 && (p=this.current) != null ) { +this.current=null; +this.est=0; +do { +var e=p.item; +p=p.next_; +action.accept$(e); +} while (p != null && --n > 0 ); +}if (this.list.modCount != this.expectedModCount) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +}); + +Clazz_newMeth(C$, 'tryAdvance$java_util_function_Consumer', function (action) { +var p; +if (action == null ) throw Clazz_new_(Clazz_load('NullPointerException')); +if (this.getEst$() > 0 && (p=this.current) != null ) { +--this.est; +var e=p.item; +this.current=p.next_; +action.accept$(e); +if (this.list.modCount != this.expectedModCount) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +return true; +}return false; +}); + +Clazz_newMeth(C$, 'characteristics$', function () { +return 16464; +}); + +Clazz_newMeth(C$); +})() +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:42 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=java.util,I$=[[0,'java.util.Objects','java.util.Arrays','java.util.Spliterators']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newInterface(P$, "List", null, null, 'java.util.Collection'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} +C$.$defaults$ = function(C$){ + +Clazz_newMeth(C$, 'replaceAll$java_util_function_UnaryOperator', function (operator) { +$I$(1).requireNonNull$TT(operator); +var li=this.listIterator$(); +while (li.hasNext$()){ +li.set$TE(operator.apply$(li.next$())); +} +}); + +Clazz_newMeth(C$, 'sort$java_util_Comparator', function (c) { +var a=this.toArray$(); +$I$(2).sort$TTA$java_util_Comparator(a, c); +var i=this.listIterator$(); +for (var e, $e = 0, $$e = a; $e<$$e.length&&((e=($$e[$e])),1);$e++) { +i.next$(); +i.set$TE(e); +} +}); + +Clazz_newMeth(C$, 'spliterator$', function () { +return $I$(3).spliterator$java_util_Collection$I(this, 16); +}); +};})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:42 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=java.util,p$1={},I$=[[0,'sun.util.ResourceBundleEnumeration','java.util.HashMap']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "ListResourceBundle", null, 'java.util.ResourceBundle'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.lookup=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.lookup=null; +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +Clazz_super_(C$, this,1); +}, 1); + +Clazz_newMeth(C$, 'handleGetObject$S', function (key) { +if (this.lookup == null ) { +p$1.loadLookup.apply(this, []); +}if (key == null ) { +throw Clazz_new_(Clazz_load('NullPointerException')); +}return this.lookup.get$O(key); +}); + +Clazz_newMeth(C$, 'getKeys$', function () { +if (this.lookup == null ) { +p$1.loadLookup.apply(this, []); +}var parent=this.parent; +return Clazz_new_($I$(1).c$$java_util_Set$java_util_Enumeration,[this.lookup.keySet$(), (parent != null ) ? parent.getKeys$() : null]); +}); + +Clazz_newMeth(C$, 'handleKeySet$', function () { +if (this.lookup == null ) { +p$1.loadLookup.apply(this, []); +}return this.lookup.keySet$(); +}); + +Clazz_newMeth(C$, 'loadLookup', function () { +if (this.lookup != null ) return; +var contents=this.getContents$(); +var temp=Clazz_new_($I$(2).c$$I,[contents.length]); +for (var i=0; i < contents.length; ++i) { +var key=contents[i][0]; +var value=contents[i][1]; +if (key == null || value == null ) { +throw Clazz_new_(Clazz_load('NullPointerException')); +}temp.put$TK$TV(key, value); +} +this.lookup=temp; +}, p$1); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:42 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=java.util,p$1={},I$=[[0,'java.util.HashMap','StringBuilder','InternalError']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "Locale", null, null, ['Cloneable', 'java.io.Serializable']); +C$.cache=null; +C$.ENGLISH=null; +C$.UK=null; +C$.US=null; +C$.ROOT=null; +C$.defaultLocale=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.cache=Clazz_new_($I$(1).c$$I,[32]); +C$.ENGLISH=C$.createSingleton$S$S$S("en__", "en", ""); +C$.UK=C$.createSingleton$S$S$S("en_GB_", "en", "US"); +C$.US=C$.createSingleton$S$S$S("en_US_", "en", "US"); +C$.ROOT=C$.createSingleton$S$S$S("__", "", ""); +C$.defaultLocale=null; +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.language=null; +this.country=null; +this.variant=null; +this.hashCodeValue=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.hashCodeValue=0; +}, 1); + +Clazz_newMeth(C$, 'c$$S$S$S', function (language, country, variant) { +C$.$init$.apply(this); +this.language=language.toLowerCase$().intern$(); +this.country=country.toUpperCase$().intern$(); +this.variant=variant.toUpperCase$().intern$(); +}, 1); + +Clazz_newMeth(C$, 'c$$S$S', function (language, country) { +C$.c$$S$S$S.apply(this, [language, country, ""]); +}, 1); + +Clazz_newMeth(C$, 'c$$S', function (language) { +C$.c$$S$S$S.apply(this, [language, "", ""]); +}, 1); + +Clazz_newMeth(C$, 'c$$S$S$Z', function (language, country, flag) { +C$.$init$.apply(this); +this.language=language; +this.country=country; +this.variant=""; +}, 1); + +Clazz_newMeth(C$, 'createSingleton$S$S$S', function (key, language, country) { +var locale=Clazz_new_(C$.c$$S$S$Z,[language, country, false]); +C$.cache.put$TK$TV(key, locale); +return locale; +}, 1); + +Clazz_newMeth(C$, 'getInstance$S$S$S', function (language, country, variant) { +if (language == null || country == null || variant == null ) { +throw Clazz_new_(Clazz_load('NullPointerException')); +}var sb=Clazz_new_($I$(2)); +sb.append$S(language).append$C("_").append$S(country).append$C("_").append$S(variant); +var key=sb.toString(); +var locale=C$.cache.get$O(key); +if (locale == null ) { +locale=Clazz_new_(C$.c$$S$S$S,[language, country, variant]); +var l=C$.cache.put$TK$TV(key, locale); +if (l != null ) { +locale=l; +}}return locale; +}, 1); + +Clazz_newMeth(C$, 'getDefault$', function () { +if (C$.defaultLocale == null ) { +C$.defaultLocale=Clazz_new_(C$.c$$S$S$S,["en", "US", ""]); +}return C$.defaultLocale; +}, 1); + +Clazz_newMeth(C$, 'setDefault$java_util_Locale', function (newLocale) { +if (newLocale == null ) throw Clazz_new_(Clazz_load('NullPointerException').c$$S,["Can\'t set default locale to NULL"]); +C$.defaultLocale=newLocale; +}, 1); + +Clazz_newMeth(C$, 'getLanguage$', function () { +return this.language; +}); + +Clazz_newMeth(C$, 'getCountry$', function () { +return this.country; +}); + +Clazz_newMeth(C$, 'getVariant$', function () { +return this.variant; +}); + +Clazz_newMeth(C$, 'toString', function () { +var l=this.language.length$() != 0; +var c=this.country.length$() != 0; +var v=this.variant.length$() != 0; +var result=Clazz_new_($I$(2).c$$S,[this.language]); +if (c || (l && v ) ) { +result.append$C("_").append$S(this.country); +}if (v && (l || c ) ) { +result.append$C("_").append$S(this.variant); +}return result.toString(); +}); + +Clazz_newMeth(C$, 'getDisplayLanguage$', function () { +return this.getDisplayLanguage$java_util_Locale(C$.getDefault$()); +}); + +Clazz_newMeth(C$, 'getDisplayLanguage$java_util_Locale', function (inLocale) { +return p$1.getDisplayString$S$java_util_Locale$I.apply(this, [this.language, inLocale, 0]); +}); + +Clazz_newMeth(C$, 'getDisplayCountry$', function () { +return this.getDisplayCountry$java_util_Locale(C$.getDefault$()); +}); + +Clazz_newMeth(C$, 'getDisplayCountry$java_util_Locale', function (inLocale) { +return p$1.getDisplayString$S$java_util_Locale$I.apply(this, [this.country, inLocale, 1]); +}); + +Clazz_newMeth(C$, 'getDisplayString$S$java_util_Locale$I', function (code, inLocale, type) { +if (code.length$() == 0) { +return ""; +}if (inLocale == null ) { +throw Clazz_new_(Clazz_load('NullPointerException')); +}return inLocale.toString(); +}, p$1); + +Clazz_newMeth(C$, 'getDisplayVariant$', function () { +return this.getDisplayVariant$java_util_Locale(C$.getDefault$()); +}); + +Clazz_newMeth(C$, 'getDisplayVariant$java_util_Locale', function (inLocale) { +if (this.variant.length$() == 0) return ""; +return this.variant; +}); + +Clazz_newMeth(C$, 'getDisplayName$', function () { +return this.getDisplayName$java_util_Locale(C$.getDefault$()); +}); + +Clazz_newMeth(C$, 'getDisplayName$java_util_Locale', function (inLocale) { +return inLocale.toString(); +}); + +Clazz_newMeth(C$, 'clone$', function () { +try { +var that=Clazz_clone(this); +return that; +} catch (e) { +if (Clazz_exceptionOf(e,"CloneNotSupportedException")){ +throw Clazz_new_($I$(3)); +} else { +throw e; +} +} +}); + +Clazz_newMeth(C$, 'hashCode$', function () { +var hc=this.hashCodeValue; +if (hc == 0) { +hc=(this.language.hashCode$() << 8) ^ this.country.hashCode$() ^ (this.variant.hashCode$() << 4) ; +this.hashCodeValue=hc; +}return hc; +}); + +Clazz_newMeth(C$, 'equals$O', function (obj) { +if (this === obj ) return true; +if (!(Clazz_instanceOf(obj, "java.util.Locale"))) return false; +var other=obj; +return this.language == other.language && this.country == other.country && this.variant == other.variant ; +}); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:42 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=java.util,I$=[[0,'java.util.Objects']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newInterface(P$, "Map", function(){ +}); +C$.$defaults$ = function(C$){ + +Clazz_newMeth(C$, 'getOrDefault$O$TV', function (key, defaultValue) { +var v; +return (((v=this.get$O(key)) != null ) || this.containsKey$O(key) ) ? v : defaultValue; +}); + +Clazz_newMeth(C$, 'forEach$java_util_function_BiConsumer', function (action) { +$I$(1).requireNonNull$TT(action); +for (var entry, $entry = this.entrySet$().iterator$(); $entry.hasNext$()&&((entry=($entry.next$())),1);) { +var k; +var v; +try { +k=entry.getKey$(); +v=entry.getValue$(); +} catch (ise) { +if (Clazz_exceptionOf(ise,"IllegalStateException")){ +throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException').c$$Throwable,[ise]); +} else { +throw ise; +} +} +action.accept$(k, v); +} +}); + +Clazz_newMeth(C$, 'replaceAll$java_util_function_BiFunction', function ($function) { +$I$(1).requireNonNull$TT($function); +for (var entry, $entry = this.entrySet$().iterator$(); $entry.hasNext$()&&((entry=($entry.next$())),1);) { +var k; +var v; +try { +k=entry.getKey$(); +v=entry.getValue$(); +} catch (ise) { +if (Clazz_exceptionOf(ise,"IllegalStateException")){ +throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException').c$$Throwable,[ise]); +} else { +throw ise; +} +} +v=$function.apply$(k, v); +try { +entry.setValue$TV(v); +} catch (ise) { +if (Clazz_exceptionOf(ise,"IllegalStateException")){ +throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException').c$$Throwable,[ise]); +} else { +throw ise; +} +} +} +}); + +Clazz_newMeth(C$, 'putIfAbsent$TK$TV', function (key, value) { +var v=this.get$O(key); +if (v == null ) { +v=this.put$TK$TV(key, value); +}return v; +}); + +Clazz_newMeth(C$, 'remove$O$O', function (key, value) { +var curValue=this.get$O(key); +if (!$I$(1).equals$O$O(curValue, value) || (curValue == null && !this.containsKey$O(key) ) ) { +return false; +}this.remove$O(key); +return true; +}); + +Clazz_newMeth(C$, 'replace$TK$TV$TV', function (key, oldValue, newValue) { +var curValue=this.get$O(key); +if (!$I$(1).equals$O$O(curValue, oldValue) || (curValue == null && !this.containsKey$O(key) ) ) { +return false; +}this.put$TK$TV(key, newValue); +return true; +}); + +Clazz_newMeth(C$, 'replace$TK$TV', function (key, value) { +var curValue; +if (((curValue=this.get$O(key)) != null ) || this.containsKey$O(key) ) { +curValue=this.put$TK$TV(key, value); +}return curValue; +}); + +Clazz_newMeth(C$, 'computeIfAbsent$TK$java_util_function_Function', function (key, mappingFunction) { +$I$(1).requireNonNull$TT(mappingFunction); +var v; +if ((v=this.get$O(key)) == null ) { +var newValue; +if ((newValue=mappingFunction.apply$(key)) != null ) { +this.put$TK$TV(key, newValue); +return newValue; +}}return v; +}); + +Clazz_newMeth(C$, 'computeIfPresent$TK$java_util_function_BiFunction', function (key, remappingFunction) { +$I$(1).requireNonNull$TT(remappingFunction); +var oldValue; +if ((oldValue=this.get$O(key)) != null ) { +var newValue=remappingFunction.apply$(key, oldValue); +if (newValue != null ) { +this.put$TK$TV(key, newValue); +return newValue; +} else { +this.remove$O(key); +return null; +}} else { +return null; +}}); + +Clazz_newMeth(C$, 'compute$TK$java_util_function_BiFunction', function (key, remappingFunction) { +$I$(1).requireNonNull$TT(remappingFunction); +var oldValue=this.get$O(key); +var newValue=remappingFunction.apply$(key, oldValue); +if (newValue == null ) { +if (oldValue != null || this.containsKey$O(key) ) { +this.remove$O(key); +return null; +} else { +return null; +}} else { +this.put$TK$TV(key, newValue); +return newValue; +}}); + +Clazz_newMeth(C$, 'merge$TK$TV$java_util_function_BiFunction', function (key, value, remappingFunction) { +$I$(1).requireNonNull$TT(remappingFunction); +$I$(1).requireNonNull$TT(value); +var oldValue=this.get$O(key); +var newValue=(oldValue == null ) ? value : remappingFunction.apply$(oldValue, value); +if (newValue == null ) { +this.remove$O(key); +} else { +this.put$TK$TV(key, newValue); +}return newValue; +}); +};; +(function(){var C$=Clazz_newInterface(P$.Map, "Entry", function(){ +}); + +Clazz_newMeth(C$, 'comparingByKey$', function () { +return ((P$.Map$Entry$lambda1|| +(function(){var C$=Clazz_newClass(P$, "Map$Entry$lambda1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, '', 1); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); +/*lambda_E*/ +Clazz_newMeth(C$, ['compare$'], function (c1, c2) { return (c1.getKey$().compareTo$(c2.getKey$()));}); +})() +), Clazz_new_(P$.Map$Entry$lambda1.$init$, [this, null])); +}, 1); + +Clazz_newMeth(C$, 'comparingByValue$', function () { +return ((P$.Map$Entry$lambda2|| +(function(){var C$=Clazz_newClass(P$, "Map$Entry$lambda2", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, '', 1); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); +/*lambda_E*/ +Clazz_newMeth(C$, ['compare$'], function (c1, c2) { return (c1.getValue$().compareTo$(c2.getValue$()));}); +})() +), Clazz_new_(P$.Map$Entry$lambda2.$init$, [this, null])); +}, 1); + +Clazz_newMeth(C$, 'comparingByKey$java_util_Comparator', function (cmp) { +$I$(1).requireNonNull$TT(cmp); +return ((P$.Map$Entry$lambda3|| +(function(){var C$=Clazz_newClass(P$, "Map$Entry$lambda3", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, '', 1); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); +/*lambda_E*/ +Clazz_newMeth(C$, ['compare$'], function (c1, c2) { return (this.$finals$.cmp.compare$(c1.getKey$(), c2.getKey$()));}); +})() +), Clazz_new_(P$.Map$Entry$lambda3.$init$, [this, {cmp: cmp}])); +}, 1); + +Clazz_newMeth(C$, 'comparingByValue$java_util_Comparator', function (cmp) { +$I$(1).requireNonNull$TT(cmp); +return ((P$.Map$Entry$lambda4|| +(function(){var C$=Clazz_newClass(P$, "Map$Entry$lambda4", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, '', 1); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); +/*lambda_E*/ +Clazz_newMeth(C$, ['compare$'], function (c1, c2) { return (this.$finals$.cmp.compare$(c1.getValue$(), c2.getValue$()));}); +})() +), Clazz_new_(P$.Map$Entry$lambda4.$init$, [this, {cmp: cmp}])); +}, 1); +})() +; +(function(){var C$=Clazz_newInterface(P$.Map, "Entry", function(){ +}); + +Clazz_newMeth(C$, 'comparingByKey$', function () { +return ((P$.Map$Entry$lambda1|| +(function(){var C$=Clazz_newClass(P$, "Map$Entry$lambda1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, '', 1); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); +/*lambda_E*/ +Clazz_newMeth(C$, ['compare$'], function (c1, c2) { return (c1.getKey$().compareTo$(c2.getKey$()));}); +})() +), Clazz_new_(P$.Map$Entry$lambda1.$init$, [this, null])); +}, 1); + +Clazz_newMeth(C$, 'comparingByValue$', function () { +return ((P$.Map$Entry$lambda2|| +(function(){var C$=Clazz_newClass(P$, "Map$Entry$lambda2", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, '', 1); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); +/*lambda_E*/ +Clazz_newMeth(C$, ['compare$'], function (c1, c2) { return (c1.getValue$().compareTo$(c2.getValue$()));}); +})() +), Clazz_new_(P$.Map$Entry$lambda2.$init$, [this, null])); +}, 1); + +Clazz_newMeth(C$, 'comparingByKey$java_util_Comparator', function (cmp) { +$I$(1).requireNonNull$TT(cmp); +return ((P$.Map$Entry$lambda3|| +(function(){var C$=Clazz_newClass(P$, "Map$Entry$lambda3", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, '', 1); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); +/*lambda_E*/ +Clazz_newMeth(C$, ['compare$'], function (c1, c2) { return (this.$finals$.cmp.compare$(c1.getKey$(), c2.getKey$()));}); +})() +), Clazz_new_(P$.Map$Entry$lambda3.$init$, [this, {cmp: cmp}])); +}, 1); + +Clazz_newMeth(C$, 'comparingByValue$java_util_Comparator', function (cmp) { +$I$(1).requireNonNull$TT(cmp); +return ((P$.Map$Entry$lambda4|| +(function(){var C$=Clazz_newClass(P$, "Map$Entry$lambda4", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, '', 1); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); +/*lambda_E*/ +Clazz_newMeth(C$, ['compare$'], function (c1, c2) { return (this.$finals$.cmp.compare$(c1.getValue$(), c2.getValue$()));}); +})() +), Clazz_new_(P$.Map$Entry$lambda4.$init$, [this, {cmp: cmp}])); +}, 1); +})() +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:42 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=java.util,I$=[[0,'AssertionError','java.util.Arrays']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "Objects"); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.$init$.apply(this); +throw Clazz_new_($I$(1).c$$O,["No java.util.Objects instances for you!"]); +}, 1); + +Clazz_newMeth(C$, 'equals$O$O', function (a, b) { +return (a === b ) || (a != null && a.equals$O(b) ) ; +}, 1); + +Clazz_newMeth(C$, 'deepEquals$O$O', function (a, b) { +if (a === b ) return true; + else if (a == null || b == null ) return false; + else return $I$(2).deepEquals0$O$O(a, b); +}, 1); + +Clazz_newMeth(C$, 'hashCode$O', function (o) { +return o != null ? o.hashCode$() : 0; +}, 1); + +Clazz_newMeth(C$, 'hash$OA', function (values) { +return $I$(2).hashCode$OA(values); +}, 1); + +Clazz_newMeth(C$, 'toString$O', function (o) { +return String.valueOf$O(o); +}, 1); + +Clazz_newMeth(C$, 'toString$O$S', function (o, nullDefault) { +return (o != null ) ? o.toString() : nullDefault; +}, 1); + +Clazz_newMeth(C$, 'compare$TT$TT$java_util_Comparator', function (a, b, c) { +return (a === b ) ? 0 : c.compare$(a, b); +}, 1); + +Clazz_newMeth(C$, 'requireNonNull$TT', function (obj) { +if (obj == null ) throw Clazz_new_(Clazz_load('NullPointerException')); +return obj; +}, 1); + +Clazz_newMeth(C$, 'requireNonNull$TT$S', function (obj, message) { +if (obj == null ) throw Clazz_new_(Clazz_load('NullPointerException').c$$S,[message]); +return obj; +}, 1); + +Clazz_newMeth(C$, 'isNull$O', function (obj) { +return obj == null ; +}, 1); + +Clazz_newMeth(C$, 'nonNull$O', function (obj) { +return obj != null ; +}, 1); + +Clazz_newMeth(C$, 'requireNonNull$TT$java_util_function_Supplier', function (obj, messageSupplier) { +if (obj == null ) throw Clazz_new_(Clazz_load('NullPointerException').c$$S,[messageSupplier.get$()]); +return obj; +}, 1); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:42 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=java.util,I$=[]; +var C$=Clazz_newInterface(P$, "Queue", null, null, 'java.util.Collection'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:43 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=java.util,I$=[[0,'swingjs.JSUtil']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "Random", null, null, 'java.io.Serializable'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +{ + +(function (pool, math, width, chunks, significance, overflow, startdenom) { var copyright = "Copyright 2010 David Bau, all rights reserved. (BSD)" // +// seedrandom() +// This is the seedrandom function described above. +// +math['seedrandom'] = function seedrandom(seed, use_entropy) { var key = []; +var arc4; +// Flatten the seed string or build one from local entropy if needed. +seed = mixkey(flatten( use_entropy ? [seed, pool] : arguments.length ? seed : [new Date().getTime(), pool, window], 3), key); +// Use the seed to initialize an ARC4 generator. +arc4 = new ARC4(key); +// Mix the randomness into accumulated entropy. +mixkey(arc4.S, pool); +// Override Math.random +// This function returns a random double in [0, 1) that contains +// randomness in every bit of the mantissa of the IEEE 754 value. +math['random'] = function random() { // Closure to return a random double: +var n = arc4.g(chunks); // Start with a numerator n < 2 ^ 48 +var d = startdenom; // and denominator d = 2 ^ 48. +var x = 0; // and no 'extra last byte'. +while (n < significance) { // Fill up all significant digits by +n = (n + x) * width; // shifting numerator and +d *= width; // denominator and generating a +x = arc4.g(1); // new least-significant-byte. +} while (n >= overflow) { // To avoid rounding up, before adding +n /= 2; // last byte, shift everything +d /= 2; // right using integer math until +x >>>= 1; // we have exactly the desired bits. +} return (n + x) / d; // Form the number within [0, 1). +}; +// Return the seed that was used +return seed; +}; +// +// ARC4 +// +// An ARC4 implementation. The constructor takes a key in the form of +// an array of at most (width) integers that should be 0 <= x < (width). +// +// The g(count) method returns a pseudorandom integer that concatenates +// the next (count) outputs from ARC4. Its return value is a number x +// that is in the range 0 <= x < (width ^ count). +// +function ARC4(key) { var t, u, me = this, keylen = key.length; +var i = 0, j = me.i = me.j = me.m = 0; +me.S = []; +me.c = []; +// The empty key [] is treated as [0]. +if (!keylen) { key = [keylen++]; } // Set up S using the standard key scheduling algorithm. +while (i < width) { me.S[i] = i++; } for (i = 0; i < width; i++) { t = me.S[i]; +j = lowbits(j + t + key[i % keylen]); +u = me.S[j]; +me.S[i] = u; +me.S[j] = t; +} // The "g" method returns the next (count) outputs as one number. +me.g = function getnext(count) { var s = me.S; +var i = lowbits(me.i + 1); var t = s[i]; +var j = lowbits(me.j + t); var u = s[j]; +s[i] = u; +s[j] = t; +var r = s[lowbits(t + u)]; +while (--count) { i = lowbits(i + 1); t = s[i]; +j = lowbits(j + t); u = s[j]; +s[i] = u; +s[j] = t; +r = r * width + s[lowbits(t + u)]; +} me.i = i; +me.j = j; +return r; +}; +// For robust unpredictability discard an initial batch of values. +// See http://www.rsa.com/rsalabs/node.asp?id=2009 +me.g(width); +} // +// flatten() +// Converts an object tree to nested arrays of strings. +// +function flatten(obj, depth, result, prop) { result = []; +if (depth && typeof(obj) == 'object') { for (prop in obj) { if (prop.indexOf('S') < 5) { // Avoid FF3 bug (local/sessionStorage) +try { result.push(flatten(obj[prop], depth - 1)); } catch (e) {} } } } return result.length ? result : '' + obj; +} // +// mixkey() +// Mixes a string seed into a key that is an array of integers, and +// returns a shortened string seed that is equivalent to the result key. +// +function mixkey(seed, key, smear, j) { seed += ''; // Ensure the seed is a string +smear = 0; +for (j = 0; j < seed.length; j++) { key[lowbits(j)] = lowbits((smear ^= key[lowbits(j)] * 19) + seed.charCodeAt(j)); +} seed = ''; +for (j in key) { seed += String.fromCharCode(key[j]); } return seed; +} // +// lowbits() +// A quick "n mod width" for width a power of 2. +// +function lowbits(n) { return n & (width - 1); } // +// The following constants are related to IEEE 754 limits. +// +startdenom = math.pow(width, chunks); +significance = math.pow(2, significance); +overflow = significance * 2; +// +// When seedrandom.js is loaded, we immediately mix a few bits +// from the built-in RNG into the entropy pool. Because we do +// not want to intefere with determinstic PRNG state later, +// seedrandom will not call math.random on its own again after +// initialization. +// +mixkey(math.random(), pool); +// End anonymous scope, and pass initial values. +})( [], // pool: entropy pool starts empty +Math, // math: package containing random, pow, and seedrandom +256, // width: each RC4 output is 0 <= x < 256 +6, // chunks: at least six RC4 outputs for each double +52 // significance: there are 52 significant digits in a double +); +}; +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.haveNextNextGaussian=false; +this.seed=0; +this.nextNextGaussian=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.haveNextNextGaussian=false; +this.nextNextGaussian=0; +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.$init$.apply(this); +this.setSeed$J(System.currentTimeMillis$()); +}, 1); + +Clazz_newMeth(C$, 'c$$J', function (seed) { +C$.$init$.apply(this); +this.setSeed$J(seed); +}, 1); + +Clazz_newMeth(C$, 'next$I', function (bits) { +this.seed=(this.seed * 25214903917 + 11) & (281474976710655); +return ((this.seed >>> (48 - bits))|0); +}); + +Clazz_newMeth(C$, 'nextBoolean$', function () { +{ +return Math.random () > 0.5; +} +}); + +Clazz_newMeth(C$, 'nextBytes$BA', function (buf) { +{ +var rand=0; +var count=0; +var loop=0; +while (count < buf.length){ +if (loop == 0) { +rand=this.nextInt$(); +loop=3; +} else { +loop--; +}buf[count++]=((rand|0)|0); +rand>>=8; +} +}}); + +Clazz_newMeth(C$, 'nextDouble$', function () { +{ +return Math.random (); +} +}); + +Clazz_newMeth(C$, 'nextFloat$', function () { +{ +return Math.random (); +} +}); + +Clazz_newMeth(C$, 'nextGaussian$', function () { +if (this.haveNextNextGaussian) { +this.haveNextNextGaussian=false; +return this.nextNextGaussian; +}var v1; +var v2; +var s; +do { +v1=2 * this.nextDouble$() - 1; +v2=2 * this.nextDouble$() - 1; +s=v1 * v1 + v2 * v2; +} while (s >= 1 ); +var norm=Math.sqrt(-2 * Math.log(s) / s); +this.nextNextGaussian=v2 * norm; +this.haveNextNextGaussian=true; +return v1 * norm; +}); + +Clazz_newMeth(C$, 'nextInt$', function () { +{ +return Math.random()*0x100000000 | 0; +} +}); + +Clazz_newMeth(C$, 'nextInt$I', function (n) { +if (n > 0) { +{ +return Math.random() * n|0 +} +}throw Clazz_new_(Clazz_load('IllegalArgumentException')); +}); + +Clazz_newMeth(C$, 'nextLong$', function () { +$I$(1).notImplemented$S(null); +return this.nextInt$(); +}); + +Clazz_newMeth(C$, 'setSeed$J', function (seed) { + +Math.seedrandom(seed); +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:43 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=java.util,I$=[]; +var C$=Clazz_newInterface(P$, "RandomAccess"); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:43 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=java.util,p$1={},p$2={},I$=[[0,'InternalError','java.util.Collections','java.util.Arrays',['java.util.ResourceBundle','.SingleFormatControl'],['java.util.ResourceBundle','.NoFallbackControl'],'java.util.ArrayList','java.util.Locale','swingjs.api.Interface','swingjs.JSUtil','StringBuilder',['java.util.ResourceBundle','.Control'],'java.util.HashMap',['java.util.ResourceBundle','.CacheKey'],'Thread','java.util.HashSet']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "ResourceBundle", function(){ +Clazz_newInstance(this, arguments,0,C$); +}); +C$.NONEXISTENT_BUNDLE=null; +C$.cacheList=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.NONEXISTENT_BUNDLE=((P$.ResourceBundle$1|| +(function(){var C$=Clazz_newClass(P$, "ResourceBundle$1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, Clazz_load('java.util.ResourceBundle'), null, 1); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'getKeys$', function () { +return null; +}); + +Clazz_newMeth(C$, 'handleGetObject$S', function (key) { +return null; +}); + +Clazz_newMeth(C$, 'toString', function () { +return "NONEXISTENT_BUNDLE"; +}); +})() +), Clazz_new_(C$, [this, null],P$.ResourceBundle$1)); +C$.cacheList=Clazz_new_($I$(12).c$$I,[32]); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.parent=null; +this.locale=null; +this.expired=false; +this.keySet=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.parent=null; +this.locale=null; +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'getString$S', function (key) { +return this.getObject$S(key); +}); + +Clazz_newMeth(C$, 'getStringArray$S', function (key) { +return this.getObject$S(key); +}); + +Clazz_newMeth(C$, 'getObject$S', function (key) { +var obj=this.handleGetObject$S(key); +if (obj == null ) { +if (this.parent != null ) { +obj=this.parent.getObject$S(key); +}if (obj == null ) throw Clazz_new_(Clazz_load('java.util.MissingResourceException').c$$S$S$S,["Can't find resource for bundle " + this.getClass$().getName$() + ", key " + key , this.getClass$().getName$(), key]); +}return obj; +}); + +Clazz_newMeth(C$, 'getLocale$', function () { +return this.locale; +}); + +Clazz_newMeth(C$, 'setParent$java_util_ResourceBundle', function (parent) { +Clazz_assert(C$, this, function(){return parent !== C$.NONEXISTENT_BUNDLE }); +this.parent=parent; +}); + +Clazz_newMeth(C$, 'getBundle$S', function (baseName) { +return C$.getBundleImpl$S$java_util_Locale$O$java_util_ResourceBundle_Control(baseName, $I$(7).getDefault$(), null, $I$(11).INSTANCE); +}, 1); + +Clazz_newMeth(C$, 'getBundle$S$java_util_ResourceBundle_Control', function (baseName, control) { +return C$.getBundleImpl$S$java_util_Locale$O$java_util_ResourceBundle_Control(baseName, $I$(7).getDefault$(), null, control); +}, 1); + +Clazz_newMeth(C$, 'getBundle$S$java_util_Locale', function (baseName, locale) { +return C$.getBundleImpl$S$java_util_Locale$O$java_util_ResourceBundle_Control(baseName, locale, null, $I$(11).INSTANCE); +}, 1); + +Clazz_newMeth(C$, 'getBundle$S$java_util_Locale$java_util_ResourceBundle_Control', function (baseName, targetLocale, control) { +return C$.getBundleImpl$S$java_util_Locale$O$java_util_ResourceBundle_Control(baseName, targetLocale, null, control); +}, 1); + +Clazz_newMeth(C$, 'getBundle$S$java_util_Locale$O', function (baseName, locale, loader) { +return C$.getBundleImpl$S$java_util_Locale$O$java_util_ResourceBundle_Control(baseName, locale, null, $I$(11).INSTANCE); +}, 1); + +Clazz_newMeth(C$, 'getBundle$S$O$O$java_util_ResourceBundle_Control', function (baseName, targetLocale, loader, control) { +if (targetLocale == null ) targetLocale=$I$(7).getDefault$(); +if (control == null ) control=$I$(11).getControl$java_util_List($I$(11).FORMAT_PROPERTIES); +return C$.getBundleImpl$S$java_util_Locale$O$java_util_ResourceBundle_Control(baseName, targetLocale, loader, control); +}, 1); + +Clazz_newMeth(C$, 'getBundleImpl$S$java_util_Locale$O$java_util_ResourceBundle_Control', function (baseName, locale, loader, control) { +if (control == null ) { +throw Clazz_new_(Clazz_load('NullPointerException').c$$S,["ResourceBundle locale or control is null"]); +}var cacheKey=Clazz_new_($I$(13).c$$S$java_util_Locale$O,[baseName, locale, loader]); +var bundle=null; +var bundleRef=C$.cacheList.get$O(cacheKey); +if (bundleRef != null ) { +bundle=bundleRef; +bundleRef=null; +}if (C$.isValidBundle$java_util_ResourceBundle(bundle)) { +return bundle; +}var formats=control.getFormats$S(baseName); +var baseBundle=null; +for (var targetLocale=locale; targetLocale != null ; targetLocale=control.getFallbackLocale$S$java_util_Locale(baseName, targetLocale)) { +var candidateLocales=control.getCandidateLocales$S$java_util_Locale(baseName, targetLocale); +bundle=C$.findBundle$java_util_ResourceBundle_CacheKey$java_util_List$java_util_List$I$java_util_ResourceBundle_Control$java_util_ResourceBundle(cacheKey, candidateLocales, formats, 0, control, baseBundle); +if (C$.isValidBundle$java_util_ResourceBundle(bundle)) { +var isBaseBundle=$I$(7).ROOT.equals$O(bundle.locale); +if (!isBaseBundle || bundle.locale.equals$O(locale) || (candidateLocales.size$() == 1 && bundle.locale.equals$O(candidateLocales.get$I(0)) ) ) { +break; +}if (isBaseBundle && baseBundle == null ) { +baseBundle=bundle; +}}} +if (bundle == null ) { +if (baseBundle == null ) { +C$.throwMissingResourceException$S$java_util_Locale$Throwable(baseName, locale, p$1.getCause.apply(cacheKey, [])); +}bundle=baseBundle; +}return bundle; +}, 1); + +Clazz_newMeth(C$, 'findBundle$java_util_ResourceBundle_CacheKey$java_util_List$java_util_List$I$java_util_ResourceBundle_Control$java_util_ResourceBundle', function (cacheKey, candidateLocales, formats, index, control, baseBundle) { +var targetLocale=candidateLocales.get$I(index); +var parent=null; +if (index != candidateLocales.size$() - 1) { +parent=C$.findBundle$java_util_ResourceBundle_CacheKey$java_util_List$java_util_List$I$java_util_ResourceBundle_Control$java_util_ResourceBundle(cacheKey, candidateLocales, formats, index + 1, control, baseBundle); +} else if (baseBundle != null && $I$(7).ROOT.equals$O(targetLocale) ) { +return baseBundle; +}var expiredBundle=false; +cacheKey.setLocale$java_util_Locale(targetLocale); +var bundle=C$.findBundleInCache$java_util_ResourceBundle_CacheKey$java_util_ResourceBundle_Control(cacheKey, control); +if (C$.isValidBundle$java_util_ResourceBundle(bundle)) { +expiredBundle=bundle.expired; +if (!expiredBundle) { +if (bundle.parent === parent ) { +return bundle; +}var bundleRef=C$.cacheList.get$O(cacheKey); +if (bundleRef != null && bundleRef === bundle ) { +C$.cacheList.remove$O(cacheKey); +}}}if (bundle !== C$.NONEXISTENT_BUNDLE ) { +var constKey=cacheKey.clone$(); +try { +try { +bundle=C$.loadBundle$java_util_ResourceBundle_CacheKey$java_util_List$java_util_ResourceBundle_Control$Z(cacheKey, formats, control, expiredBundle); +if (bundle != null ) { +if (bundle.parent == null ) { +bundle.setParent$java_util_ResourceBundle(parent); +}bundle.locale=targetLocale; +bundle=C$.putBundleInCache$java_util_ResourceBundle_CacheKey$java_util_ResourceBundle$java_util_ResourceBundle_Control(cacheKey, bundle, control); +return bundle; +}C$.putBundleInCache$java_util_ResourceBundle_CacheKey$java_util_ResourceBundle$java_util_ResourceBundle_Control(cacheKey, C$.NONEXISTENT_BUNDLE, control); +} finally { +} +} finally { +if (Clazz_instanceOf(p$1.getCause.apply(constKey, []), "java.lang.InterruptedException")) { +$I$(14).currentThread$().interrupt$(); +}} +}return parent; +}, 1); + +Clazz_newMeth(C$, 'loadBundle$java_util_ResourceBundle_CacheKey$java_util_List$java_util_ResourceBundle_Control$Z', function (cacheKey, formats, control, reload) { +var targetLocale=cacheKey.getLocale$(); +var bundle=null; +var size=formats.size$(); +for (var i=0; i < size; i++) { +var format=formats.get$I(i); +try { +bundle=control.newBundle$S$java_util_Locale$S$O$Z(cacheKey.getName$(), targetLocale, format, null, reload); +} catch (e$$) { +if (Clazz_exceptionOf(e$$,"LinkageError")){ +var error = e$$; +{ +p$1.setCause$Throwable.apply(cacheKey, [error]); +} +} else if (Clazz_exceptionOf(e$$,"Exception")){ +var cause = e$$; +{ +p$1.setCause$Throwable.apply(cacheKey, [cause]); +} +} else { +throw e$$; +} +} +if (bundle != null ) { +cacheKey.setFormat$S(format); +bundle.locale=targetLocale; +bundle.expired=false; +break; +}} +return bundle; +}, 1); + +Clazz_newMeth(C$, 'isValidBundle$java_util_ResourceBundle', function (bundle) { +return bundle != null && bundle !== C$.NONEXISTENT_BUNDLE ; +}, 1); + +Clazz_newMeth(C$, 'throwMissingResourceException$S$java_util_Locale$Throwable', function (baseName, locale, cause) { +if (Clazz_instanceOf(cause, "java.util.MissingResourceException")) { +cause=null; +}throw Clazz_new_(Clazz_load('java.util.MissingResourceException').c$$S$S$S$Throwable,["Can't find bundle for base name " + baseName + ", locale " + locale , baseName + "_" + locale , "", cause]); +}, 1); + +Clazz_newMeth(C$, 'findBundleInCache$java_util_ResourceBundle_CacheKey$java_util_ResourceBundle_Control', function (cacheKey, control) { +var bundleRef=C$.cacheList.get$O(cacheKey); +if (bundleRef == null ) { +return null; +}var bundle=bundleRef; +return bundle; +}, 1); + +Clazz_newMeth(C$, 'putBundleInCache$java_util_ResourceBundle_CacheKey$java_util_ResourceBundle$java_util_ResourceBundle_Control', function (cacheKey, bundle, control) { +var key=cacheKey.clone$(); +C$.cacheList.put$TK$TV(key, bundle); +return bundle; +}, 1); + +Clazz_newMeth(C$, 'clearCache$', function () { +C$.cacheList.clear$(); +}, 1); + +Clazz_newMeth(C$, 'containsKey$S', function (key) { +if (key == null ) { +throw Clazz_new_(Clazz_load('NullPointerException')); +}for (var rb=this; rb != null ; rb=rb.parent) { +if (rb.handleKeySet$().contains$O(key)) { +return true; +}} +return false; +}); + +Clazz_newMeth(C$, 'keySet$', function () { +var keys=Clazz_new_($I$(15)); +for (var rb=this; rb != null ; rb=rb.parent) { +keys.addAll$java_util_Collection(rb.handleKeySet$()); +} +return keys; +}); + +Clazz_newMeth(C$, 'handleKeySet$', function () { +if (this.keySet == null ) { +{ +if (this.keySet == null ) { +var keys=Clazz_new_($I$(15)); +var enumKeys=this.getKeys$(); +while (enumKeys.hasMoreElements$()){ +var key=enumKeys.nextElement$(); +if (this.handleGetObject$S(key) != null ) { +keys.add$TE(key); +}} +this.keySet=keys; +}}}return this.keySet; +}); +C$.$_ASSERT_ENABLED_ = ClassLoader.getClassAssertionStatus$(C$); +; +(function(){var C$=Clazz_newClass(P$.ResourceBundle, "CacheKey", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, null, 'Cloneable'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.name=null; +this.locale=null; +this.format=null; +this.cause=null; +this.hashCodeCache=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$S$java_util_Locale$O', function (baseName, locale, loader) { +C$.$init$.apply(this); +this.name=baseName; +this.locale=locale; +if (this.name != null ) p$1.calculateHashCode.apply(this, []); +}, 1); + +Clazz_newMeth(C$, 'getName$', function () { +return this.name; +}); + +Clazz_newMeth(C$, 'getLocale$', function () { +return this.locale; +}); + +Clazz_newMeth(C$, 'setLocale$java_util_Locale', function (locale) { +if (!this.locale.equals$O(locale)) { +this.locale=locale; +p$1.calculateHashCode.apply(this, []); +}return this; +}); + +Clazz_newMeth(C$, 'equals$O', function (other) { +if (this === other ) { +return true; +}try { +var otherEntry=other; +if (this.hashCodeCache != otherEntry.hashCodeCache) { +return false; +}if (!this.name.equals$O(otherEntry.name)) { +return false; +}if (!this.locale.equals$O(otherEntry.locale)) { +return false; +}return true; +} catch (e$$) { +if (Clazz_exceptionOf(e$$,"NullPointerException")){ +var e = e$$; +{ +} +} else if (Clazz_exceptionOf(e$$,"ClassCastException")){ +var e = e$$; +{ +} +} else { +throw e$$; +} +} +return false; +}); + +Clazz_newMeth(C$, 'hashCode$', function () { +return this.hashCodeCache; +}); + +Clazz_newMeth(C$, 'calculateHashCode', function () { +this.hashCodeCache=this.name.hashCode$() << 3; +this.hashCodeCache^=this.locale.hashCode$(); +}, p$1); + +Clazz_newMeth(C$, 'clone$', function () { +try { +var clone=Clazz_clone(this); +clone.cause=null; +return clone; +} catch (e) { +if (Clazz_exceptionOf(e,"CloneNotSupportedException")){ +throw Clazz_new_($I$(1)); +} else { +throw e; +} +} +}); + +Clazz_newMeth(C$, 'setFormat$S', function (format) { +this.format=format; +}); + +Clazz_newMeth(C$, 'setCause$Throwable', function (cause) { +if (this.cause == null ) { +this.cause=cause; +} else { +if (Clazz_instanceOf(this.cause, "java.lang.ClassNotFoundException")) { +this.cause=cause; +}}}, p$1); + +Clazz_newMeth(C$, 'getCause', function () { +return this.cause; +}, p$1); + +Clazz_newMeth(C$, 'toString', function () { +var l=this.locale.toString(); +if (l.length$() == 0) { +if (this.locale.getVariant$().length$() != 0) { +l="__" + this.locale.getVariant$(); +} else { +l="\"\""; +}}return "CacheKey[" + this.name + ", lc=" + l + "(format=" + this.format + ")]" ; +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.ResourceBundle, "Control", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}); +C$.FORMAT_DEFAULT=null; +C$.FORMAT_CLASS=null; +C$.FORMAT_PROPERTIES=null; +C$.INSTANCE=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.FORMAT_DEFAULT=$I$(2).unmodifiableList$java_util_List($I$(3).asList$TTA(["java.class", "java.properties"])); +C$.FORMAT_CLASS=$I$(2).unmodifiableList$java_util_List($I$(3).asList$TTA(["java.class"])); +C$.FORMAT_PROPERTIES=$I$(2).unmodifiableList$java_util_List($I$(3).asList$TTA(["java.properties"])); +C$.INSTANCE=Clazz_new_(C$); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'getControl$java_util_List', function (formats) { +if (formats.equals$O(C$.FORMAT_PROPERTIES)) { +return $I$(4).PROPERTIES_ONLY; +}if (formats.equals$O(C$.FORMAT_CLASS)) { +return $I$(4).CLASS_ONLY; +}if (formats.equals$O(C$.FORMAT_DEFAULT)) { +return C$.INSTANCE; +}throw Clazz_new_(Clazz_load('IllegalArgumentException')); +}, 1); + +Clazz_newMeth(C$, 'getNoFallbackControl$java_util_List', function (formats) { +if (formats.equals$O(C$.FORMAT_DEFAULT)) { +return $I$(5).NO_FALLBACK; +}if (formats.equals$O(C$.FORMAT_PROPERTIES)) { +return $I$(5).PROPERTIES_ONLY_NO_FALLBACK; +}if (formats.equals$O(C$.FORMAT_CLASS)) { +return $I$(5).CLASS_ONLY_NO_FALLBACK; +}throw Clazz_new_(Clazz_load('IllegalArgumentException')); +}, 1); + +Clazz_newMeth(C$, 'getFormats$S', function (baseName) { +if (baseName == null ) { +throw Clazz_new_(Clazz_load('NullPointerException')); +}return C$.FORMAT_PROPERTIES; +}); + +Clazz_newMeth(C$, 'getCandidateLocales$S$java_util_Locale', function (baseName, locale) { +if (baseName == null ) { +throw Clazz_new_(Clazz_load('NullPointerException')); +}var language=locale.getLanguage$(); +var country=locale.getCountry$(); +var variant=locale.getVariant$(); +var locales=Clazz_new_($I$(6).c$$I,[4]); +if (variant.length$() > 0) { +locales.add$TE(locale); +}if (country.length$() > 0) { +locales.add$TE((locales.size$() == 0) ? locale : $I$(7).getInstance$S$S$S(language, country, "")); +}if (language.length$() > 0) { +locales.add$TE((locales.size$() == 0) ? locale : $I$(7).getInstance$S$S$S(language, "", "")); +}locales.add$TE($I$(7).ROOT); +return locales; +}); + +Clazz_newMeth(C$, 'getFallbackLocale$S$java_util_Locale', function (baseName, locale) { +if (baseName == null ) { +throw Clazz_new_(Clazz_load('NullPointerException')); +}var defaultLocale=$I$(7).getDefault$(); +return locale.equals$O(defaultLocale) ? null : defaultLocale; +}); + +Clazz_newMeth(C$, 'newBundle$S$java_util_Locale$S$O$Z', function (baseName, locale, format, loader, reload) { +var bundleName=this.toBundleName$S$java_util_Locale(baseName, locale); +var bundle=null; +if (format.equals$O("java.class")) { +bundle=$I$(8).getInstance$S$Z(bundleName, true); +} else if (format.equals$O("java.properties")) { +var resourceName=p$2.toResourceName0$S$S.apply(this, [bundleName, "properties"]); +var stream; +if (resourceName == null || (stream=$I$(9).getCachedResourceAsStream$S(resourceName)) == null ) return null; +try { +bundle=p$2.newPropertyBundle$java_io_InputStream.apply(this, [stream]); +} finally { +stream.close$(); +} +} else { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["unknown format: " + format]); +}return bundle; +}); + +Clazz_newMeth(C$, 'getBundle$S', function (baseName) { +return P$.ResourceBundle.getBundleImpl$S$java_util_Locale$O$java_util_ResourceBundle_Control(baseName, $I$(7).getDefault$(), null, C$.INSTANCE); +}, 1); + +Clazz_newMeth(C$, 'newPropertyBundle$java_io_InputStream', function (stream) { +return ($I$(8).getInstance$S$Z("java.util.PropertyResourceBundle", false)).setStream$java_io_InputStream(stream); +}, p$2); + +Clazz_newMeth(C$, 'getTimeToLive$S$java_util_Locale', function (baseName, locale) { +if (baseName == null || locale == null ) { +throw Clazz_new_(Clazz_load('NullPointerException')); +}return -2; +}); + +Clazz_newMeth(C$, 'toBundleName$S$java_util_Locale', function (baseName, locale) { +if (locale === $I$(7).ROOT ) { +return baseName; +}var language=locale.getLanguage$(); +var country=locale.getCountry$(); +var variant=locale.getVariant$(); +if (language == "" && country == "" && variant == "" ) { +return baseName; +}var sb=Clazz_new_($I$(10).c$$S,[baseName]); +sb.append$C("_"); +if (variant != "") { +sb.append$S(language).append$C("_").append$S(country).append$C("_").append$S(variant); +} else if (country != "") { +sb.append$S(language).append$C("_").append$S(country); +} else { +sb.append$S(language); +}return sb.toString(); +}); + +Clazz_newMeth(C$, 'toResourceName$S$S', function (bundleName, suffix) { +var sb=Clazz_new_($I$(10).c$$I,[bundleName.length$() + 1 + suffix.length$() ]); +sb.append$S(bundleName.replace$C$C(".", "/")).append$C(".").append$S(suffix); +return sb.toString(); +}); + +Clazz_newMeth(C$, 'toResourceName0$S$S', function (bundleName, suffix) { +if (bundleName.contains$CharSequence("://")) { +return null; +} else { +return this.toResourceName$S$S(bundleName, suffix); +}}, p$2); +})() +; +(function(){var C$=Clazz_newClass(P$.ResourceBundle, "SingleFormatControl", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, ['java.util.ResourceBundle','.Control']); +C$.PROPERTIES_ONLY=null; +C$.CLASS_ONLY=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.PROPERTIES_ONLY=Clazz_new_(C$.c$$java_util_List,[$I$(11).FORMAT_PROPERTIES]); +C$.CLASS_ONLY=Clazz_new_(C$.c$$java_util_List,[$I$(11).FORMAT_CLASS]); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.formats=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$java_util_List', function (formats) { +Clazz_super_(C$, this,1); +this.formats=formats; +}, 1); + +Clazz_newMeth(C$, 'getFormats$S', function (baseName) { +if (baseName == null ) { +throw Clazz_new_(Clazz_load('NullPointerException')); +}return this.formats; +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.ResourceBundle, "NoFallbackControl", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, ['java.util.ResourceBundle','.SingleFormatControl']); +C$.NO_FALLBACK=null; +C$.PROPERTIES_ONLY_NO_FALLBACK=null; +C$.CLASS_ONLY_NO_FALLBACK=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.NO_FALLBACK=Clazz_new_(C$.c$$java_util_List,[$I$(11).FORMAT_DEFAULT]); +C$.PROPERTIES_ONLY_NO_FALLBACK=Clazz_new_(C$.c$$java_util_List,[$I$(11).FORMAT_PROPERTIES]); +C$.CLASS_ONLY_NO_FALLBACK=Clazz_new_(C$.c$$java_util_List,[$I$(11).FORMAT_CLASS]); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$java_util_List', function (formats) { +C$.superclazz.c$$java_util_List.apply(this, [formats]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'getFallbackLocale$S$java_util_Locale', function (baseName, locale) { +if (baseName == null || locale == null ) { +throw Clazz_new_(Clazz_load('NullPointerException')); +}return null; +}); + +Clazz_newMeth(C$); +})() +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:43 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=java.util,I$=[[0,'java.util.Spliterators']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newInterface(P$, "Set", null, null, 'java.util.Collection'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} +C$.$defaults$ = function(C$){ + +Clazz_newMeth(C$, 'spliterator$', function () { +return $I$(1).spliterator$java_util_Collection$I(this, 1); +}); +};})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:43 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=java.util,p$1={},I$=[[0,'java.lang.reflect.Array']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "TimSort"); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.a=null; +this.c=null; +this.minGallop=0; +this.tmp=null; +this.tmpBase=0; +this.tmpLen=0; +this.stackSize=0; +this.runBase=null; +this.runLen=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.minGallop=7; +this.stackSize=0; +}, 1); + +Clazz_newMeth(C$, 'c$$TTA$java_util_Comparator$TTA$I$I', function (a, c, work, workBase, workLen) { +C$.$init$.apply(this); +this.a=a; +this.c=c; +var len=a.length; +var tlen=(len < 512) ? len >>> 1 : 256; +if (work == null || workLen < tlen || workBase + tlen > work.length ) { +var newArray=Clazz_array(a.getClass$().getComponentType$(), tlen); +this.tmp=newArray; +this.tmpBase=0; +this.tmpLen=tlen; +} else { +this.tmp=work; +this.tmpBase=workBase; +this.tmpLen=workLen; +}var stackLen=(len < 120 ? 5 : len < 1542 ? 10 : len < 119151 ? 24 : 49); +this.runBase=Clazz_array(Integer.TYPE, [stackLen]); +this.runLen=Clazz_array(Integer.TYPE, [stackLen]); +}, 1); + +Clazz_newMeth(C$, 'sort$TTA$I$I$java_util_Comparator$TTA$I$I', function (a, lo, hi, c, work, workBase, workLen) { +Clazz_assert(C$, this, function(){return c != null && a != null && lo >= 0 && lo <= hi && hi <= a.length }); +var nRemaining=hi - lo; +if (nRemaining < 2) return; +if (nRemaining < 32) { +var initRunLen=C$.countRunAndMakeAscending$TTA$I$I$java_util_Comparator(a, lo, hi, c); +C$.binarySort$TTA$I$I$I$java_util_Comparator(a, lo, hi, lo + initRunLen, c); +return; +}var ts=Clazz_new_(C$.c$$TTA$java_util_Comparator$TTA$I$I,[a, c, work, workBase, workLen]); +var minRun=C$.minRunLength$I(nRemaining); +do { +var runLen=C$.countRunAndMakeAscending$TTA$I$I$java_util_Comparator(a, lo, hi, c); +if (runLen < minRun) { +var force=nRemaining <= minRun ? nRemaining : minRun; +C$.binarySort$TTA$I$I$I$java_util_Comparator(a, lo, lo + force, lo + runLen, c); +runLen=force; +}p$1.pushRun$I$I.apply(ts, [lo, runLen]); +p$1.mergeCollapse.apply(ts, []); +lo+=runLen; +nRemaining-=runLen; +} while (nRemaining != 0); +Clazz_assert(C$, this, function(){return lo == hi}); +p$1.mergeForceCollapse.apply(ts, []); +Clazz_assert(C$, this, function(){return ts.stackSize == 1}); +}, 1); + +Clazz_newMeth(C$, 'binarySort$TTA$I$I$I$java_util_Comparator', function (a, lo, hi, start, c) { +Clazz_assert(C$, this, function(){return lo <= start && start <= hi }); +if (start == lo) start++; +for (; start < hi; start++) { +var pivot=a[start]; +var left=lo; +var right=start; +Clazz_assert(C$, this, function(){return left <= right}); +while (left < right){ +var mid=(left + right) >>> 1; +if (c.compare$(pivot, a[mid]) < 0) right=mid; + else left=mid + 1; +} +Clazz_assert(C$, this, function(){return left == right}); +var n=start - left; +switch (n) { +case 2: +a[left + 2]=a[left + 1]; +case 1: +a[left + 1]=a[left]; +break; +default: +System.arraycopy$O$I$O$I$I(a, left, a, left + 1, n); +} +a[left]=pivot; +} +}, 1); + +Clazz_newMeth(C$, 'countRunAndMakeAscending$TTA$I$I$java_util_Comparator', function (a, lo, hi, c) { +Clazz_assert(C$, this, function(){return lo < hi}); +var runHi=lo + 1; +if (runHi == hi) return 1; +if (c.compare$(a[runHi++], a[lo]) < 0) { +while (runHi < hi && c.compare$(a[runHi], a[runHi - 1]) < 0 )runHi++; + +C$.reverseRange$OA$I$I(a, lo, runHi); +} else { +while (runHi < hi && c.compare$(a[runHi], a[runHi - 1]) >= 0 )runHi++; + +}return runHi - lo; +}, 1); + +Clazz_newMeth(C$, 'reverseRange$OA$I$I', function (a, lo, hi) { +hi--; +while (lo < hi){ +var t=a[lo]; +a[lo++]=a[hi]; +a[hi--]=t; +} +}, 1); + +Clazz_newMeth(C$, 'minRunLength$I', function (n) { +Clazz_assert(C$, this, function(){return n >= 0}); +var r=0; +while (n >= 32){ +r|=(n & 1); +n>>=1; +} +return n + r; +}, 1); + +Clazz_newMeth(C$, 'pushRun$I$I', function (runBase, runLen) { +this.runBase[this.stackSize]=runBase; +this.runLen[this.stackSize]=runLen; +this.stackSize++; +}, p$1); + +Clazz_newMeth(C$, 'mergeCollapse', function () { +while (this.stackSize > 1){ +var n=this.stackSize - 2; +if (n > 0 && this.runLen[n - 1] <= this.runLen[n] + this.runLen[n + 1] ) { +if (this.runLen[n - 1] < this.runLen[n + 1]) n--; +p$1.mergeAt$I.apply(this, [n]); +} else if (this.runLen[n] <= this.runLen[n + 1]) { +p$1.mergeAt$I.apply(this, [n]); +} else { +break; +}} +}, p$1); + +Clazz_newMeth(C$, 'mergeForceCollapse', function () { +while (this.stackSize > 1){ +var n=this.stackSize - 2; +if (n > 0 && this.runLen[n - 1] < this.runLen[n + 1] ) n--; +p$1.mergeAt$I.apply(this, [n]); +} +}, p$1); + +Clazz_newMeth(C$, 'mergeAt$I', function (i) { +Clazz_assert(C$, this, function(){return this.stackSize >= 2}); +Clazz_assert(C$, this, function(){return i >= 0}); +Clazz_assert(C$, this, function(){return i == this.stackSize - 2 || i == this.stackSize - 3 }); +var base1=this.runBase[i]; +var len1=this.runLen[i]; +var base2=this.runBase[i + 1]; +var len2=this.runLen[i + 1]; +Clazz_assert(C$, this, function(){return len1 > 0 && len2 > 0 }); +Clazz_assert(C$, this, function(){return base1 + len1 == base2}); +this.runLen[i]=len1 + len2; +if (i == this.stackSize - 3) { +this.runBase[i + 1]=this.runBase[i + 2]; +this.runLen[i + 1]=this.runLen[i + 2]; +}this.stackSize--; +var k=C$.gallopRight$TT$TTA$I$I$I$java_util_Comparator(this.a[base2], this.a, base1, len1, 0, this.c); +Clazz_assert(C$, this, function(){return k >= 0}); +base1+=k; +len1-=k; +if (len1 == 0) return; +len2=C$.gallopLeft$TT$TTA$I$I$I$java_util_Comparator(this.a[base1 + len1 - 1], this.a, base2, len2, len2 - 1, this.c); +Clazz_assert(C$, this, function(){return len2 >= 0}); +if (len2 == 0) return; +if (len1 <= len2) p$1.mergeLo$I$I$I$I.apply(this, [base1, len1, base2, len2]); + else p$1.mergeHi$I$I$I$I.apply(this, [base1, len1, base2, len2]); +}, p$1); + +Clazz_newMeth(C$, 'gallopLeft$TT$TTA$I$I$I$java_util_Comparator', function (key, a, base, len, hint, c) { +Clazz_assert(C$, this, function(){return len > 0 && hint >= 0 && hint < len }); +var lastOfs=0; +var ofs=1; +if (c.compare$(key, a[base + hint]) > 0) { +var maxOfs=len - hint; +while (ofs < maxOfs && c.compare$(key, a[base + hint + ofs ]) > 0 ){ +lastOfs=ofs; +ofs=(ofs << 1) + 1; +if (ofs <= 0) ofs=maxOfs; +} +if (ofs > maxOfs) ofs=maxOfs; +lastOfs+=hint; +ofs+=hint; +} else { +var maxOfs=hint + 1; +while (ofs < maxOfs && c.compare$(key, a[base + hint - ofs]) <= 0 ){ +lastOfs=ofs; +ofs=(ofs << 1) + 1; +if (ofs <= 0) ofs=maxOfs; +} +if (ofs > maxOfs) ofs=maxOfs; +var tmp=lastOfs; +lastOfs=hint - ofs; +ofs=hint - tmp; +}Clazz_assert(C$, this, function(){return -1 <= lastOfs && lastOfs < ofs && ofs <= len }); +lastOfs++; +while (lastOfs < ofs){ +var m=lastOfs + ((ofs - lastOfs) >>> 1); +if (c.compare$(key, a[base + m]) > 0) lastOfs=m + 1; + else ofs=m; +} +Clazz_assert(C$, this, function(){return lastOfs == ofs}); +return ofs; +}, 1); + +Clazz_newMeth(C$, 'gallopRight$TT$TTA$I$I$I$java_util_Comparator', function (key, a, base, len, hint, c) { +Clazz_assert(C$, this, function(){return len > 0 && hint >= 0 && hint < len }); +var ofs=1; +var lastOfs=0; +if (c.compare$(key, a[base + hint]) < 0) { +var maxOfs=hint + 1; +while (ofs < maxOfs && c.compare$(key, a[base + hint - ofs]) < 0 ){ +lastOfs=ofs; +ofs=(ofs << 1) + 1; +if (ofs <= 0) ofs=maxOfs; +} +if (ofs > maxOfs) ofs=maxOfs; +var tmp=lastOfs; +lastOfs=hint - ofs; +ofs=hint - tmp; +} else { +var maxOfs=len - hint; +while (ofs < maxOfs && c.compare$(key, a[base + hint + ofs ]) >= 0 ){ +lastOfs=ofs; +ofs=(ofs << 1) + 1; +if (ofs <= 0) ofs=maxOfs; +} +if (ofs > maxOfs) ofs=maxOfs; +lastOfs+=hint; +ofs+=hint; +}Clazz_assert(C$, this, function(){return -1 <= lastOfs && lastOfs < ofs && ofs <= len }); +lastOfs++; +while (lastOfs < ofs){ +var m=lastOfs + ((ofs - lastOfs) >>> 1); +if (c.compare$(key, a[base + m]) < 0) ofs=m; + else lastOfs=m + 1; +} +Clazz_assert(C$, this, function(){return lastOfs == ofs}); +return ofs; +}, 1); + +Clazz_newMeth(C$, 'mergeLo$I$I$I$I', function (base1, len1, base2, len2) { +Clazz_assert(C$, this, function(){return len1 > 0 && len2 > 0 && base1 + len1 == base2 }); +var a=this.a; +var tmp=p$1.ensureCapacity$I.apply(this, [len1]); +var cursor1=this.tmpBase; +var cursor2=base2; +var dest=base1; +System.arraycopy$O$I$O$I$I(a, base1, tmp, cursor1, len1); +a[dest++]=a[cursor2++]; +if (--len2 == 0) { +System.arraycopy$O$I$O$I$I(tmp, cursor1, a, dest, len1); +return; +}if (len1 == 1) { +System.arraycopy$O$I$O$I$I(a, cursor2, a, dest, len2); +a[dest + len2]=tmp[cursor1]; +return; +}var c=this.c; +var minGallop=this.minGallop; + outer : while (true){ +var count1=0; +var count2=0; +do { +Clazz_assert(C$, this, function(){return len1 > 1 && len2 > 0 }); +if (c.compare$(a[cursor2], tmp[cursor1]) < 0) { +a[dest++]=a[cursor2++]; +count2++; +count1=0; +if (--len2 == 0) break outer; +} else { +a[dest++]=tmp[cursor1++]; +count1++; +count2=0; +if (--len1 == 1) break outer; +}} while ((count1 | count2) < minGallop); +do { +Clazz_assert(C$, this, function(){return len1 > 1 && len2 > 0 }); +count1=C$.gallopRight$TT$TTA$I$I$I$java_util_Comparator(a[cursor2], tmp, cursor1, len1, 0, c); +if (count1 != 0) { +System.arraycopy$O$I$O$I$I(tmp, cursor1, a, dest, count1); +dest+=count1; +cursor1+=count1; +len1-=count1; +if (len1 <= 1) break outer; +}a[dest++]=a[cursor2++]; +if (--len2 == 0) break outer; +count2=C$.gallopLeft$TT$TTA$I$I$I$java_util_Comparator(tmp[cursor1], a, cursor2, len2, 0, c); +if (count2 != 0) { +System.arraycopy$O$I$O$I$I(a, cursor2, a, dest, count2); +dest+=count2; +cursor2+=count2; +len2-=count2; +if (len2 == 0) break outer; +}a[dest++]=tmp[cursor1++]; +if (--len1 == 1) break outer; +minGallop--; +} while (!!(count1 >= 7 | count2 >= 7)); +if (minGallop < 0) minGallop=0; +minGallop+=2; +} +this.minGallop=minGallop < 1 ? 1 : minGallop; +if (len1 == 1) { +Clazz_assert(C$, this, function(){return len2 > 0}); +System.arraycopy$O$I$O$I$I(a, cursor2, a, dest, len2); +a[dest + len2]=tmp[cursor1]; +} else if (len1 == 0) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["Comparison method violates its general contract!"]); +} else { +Clazz_assert(C$, this, function(){return len2 == 0}); +Clazz_assert(C$, this, function(){return len1 > 1}); +System.arraycopy$O$I$O$I$I(tmp, cursor1, a, dest, len1); +}}, p$1); + +Clazz_newMeth(C$, 'mergeHi$I$I$I$I', function (base1, len1, base2, len2) { +Clazz_assert(C$, this, function(){return len1 > 0 && len2 > 0 && base1 + len1 == base2 }); +var a=this.a; +var tmp=p$1.ensureCapacity$I.apply(this, [len2]); +var tmpBase=this.tmpBase; +System.arraycopy$O$I$O$I$I(a, base2, tmp, tmpBase, len2); +var cursor1=base1 + len1 - 1; +var cursor2=tmpBase + len2 - 1; +var dest=base2 + len2 - 1; +a[dest--]=a[cursor1--]; +if (--len1 == 0) { +System.arraycopy$O$I$O$I$I(tmp, tmpBase, a, dest - (len2 - 1), len2); +return; +}if (len2 == 1) { +dest-=len1; +cursor1-=len1; +System.arraycopy$O$I$O$I$I(a, cursor1 + 1, a, dest + 1, len1); +a[dest]=tmp[cursor2]; +return; +}var c=this.c; +var minGallop=this.minGallop; + outer : while (true){ +var count1=0; +var count2=0; +do { +Clazz_assert(C$, this, function(){return len1 > 0 && len2 > 1 }); +if (c.compare$(tmp[cursor2], a[cursor1]) < 0) { +a[dest--]=a[cursor1--]; +count1++; +count2=0; +if (--len1 == 0) break outer; +} else { +a[dest--]=tmp[cursor2--]; +count2++; +count1=0; +if (--len2 == 1) break outer; +}} while ((count1 | count2) < minGallop); +do { +Clazz_assert(C$, this, function(){return len1 > 0 && len2 > 1 }); +count1=len1 - C$.gallopRight$TT$TTA$I$I$I$java_util_Comparator(tmp[cursor2], a, base1, len1, len1 - 1, c); +if (count1 != 0) { +dest-=count1; +cursor1-=count1; +len1-=count1; +System.arraycopy$O$I$O$I$I(a, cursor1 + 1, a, dest + 1, count1); +if (len1 == 0) break outer; +}a[dest--]=tmp[cursor2--]; +if (--len2 == 1) break outer; +count2=len2 - C$.gallopLeft$TT$TTA$I$I$I$java_util_Comparator(a[cursor1], tmp, tmpBase, len2, len2 - 1, c); +if (count2 != 0) { +dest-=count2; +cursor2-=count2; +len2-=count2; +System.arraycopy$O$I$O$I$I(tmp, cursor2 + 1, a, dest + 1, count2); +if (len2 <= 1) break outer; +}a[dest--]=a[cursor1--]; +if (--len1 == 0) break outer; +minGallop--; +} while (!!(count1 >= 7 | count2 >= 7)); +if (minGallop < 0) minGallop=0; +minGallop+=2; +} +this.minGallop=minGallop < 1 ? 1 : minGallop; +if (len2 == 1) { +Clazz_assert(C$, this, function(){return len1 > 0}); +dest-=len1; +cursor1-=len1; +System.arraycopy$O$I$O$I$I(a, cursor1 + 1, a, dest + 1, len1); +a[dest]=tmp[cursor2]; +} else if (len2 == 0) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["Comparison method violates its general contract!"]); +} else { +Clazz_assert(C$, this, function(){return len1 == 0}); +Clazz_assert(C$, this, function(){return len2 > 0}); +System.arraycopy$O$I$O$I$I(tmp, tmpBase, a, dest - (len2 - 1), len2); +}}, p$1); + +Clazz_newMeth(C$, 'ensureCapacity$I', function (minCapacity) { +if (this.tmpLen < minCapacity) { +var newSize=minCapacity; +newSize|=newSize >> 1; +newSize|=newSize >> 2; +newSize|=newSize >> 4; +newSize|=newSize >> 8; +newSize|=newSize >> 16; +newSize++; +if (newSize < 0) newSize=minCapacity; + else newSize=Math.min(newSize, this.a.length >>> 1); +var newArray=Clazz_array(this.a.getClass$().getComponentType$(), newSize); +this.tmp=newArray; +this.tmpLen=newSize; +this.tmpBase=0; +}return this.tmp; +}, p$1); +C$.$_ASSERT_ENABLED_ = ClassLoader.getClassAssertionStatus$(C$); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:44 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=java.util,p$1={},p$2={},I$=[[0,'java.util.Objects','java.util.Arrays','OutOfMemoryError','InternalError','java.util.Collections',['java.util.Vector','.ListItr'],['java.util.Vector','.Itr'],'java.util.BitSet',['java.util.Vector','.VectorSpliterator']]],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "Vector", function(){ +Clazz_newInstance(this, arguments,0,C$); +}, 'java.util.AbstractList', ['java.util.List', 'java.util.RandomAccess', 'Cloneable', 'java.io.Serializable']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.elementData=null; +this.elementCount=0; +this.capacityIncrement=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$I$I', function (initialCapacity, capacityIncrement) { +C$.superclazz.c$.apply(this, []); +C$.$init$.apply(this); +if (initialCapacity < 0) throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["Illegal Capacity: " + initialCapacity]); +this.elementData=Clazz_array(java.lang.Object, [initialCapacity]); +this.capacityIncrement=capacityIncrement; +}, 1); + +Clazz_newMeth(C$, 'c$$I', function (initialCapacity) { +C$.c$$I$I.apply(this, [initialCapacity, 0]); +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.c$$I.apply(this, [10]); +}, 1); + +Clazz_newMeth(C$, 'c$$java_util_Collection', function (c) { +Clazz_super_(C$, this,1); +this.elementData=c.toArray$(); +this.elementCount=this.elementData.length; +if (this.elementData.getClass$() !== Clazz_array(java.lang.Object, -1) ) this.elementData=$I$(2).copyOf$TUA$I$Class(this.elementData, this.elementCount, Clazz_array(java.lang.Object, -1)); +}, 1); + +Clazz_newMeth(C$, 'copyInto$OA', function (anArray) { +System.arraycopy$O$I$O$I$I(this.elementData, 0, anArray, 0, this.elementCount); +}); + +Clazz_newMeth(C$, 'trimToSize$', function () { +this.modCount++; +var oldCapacity=this.elementData.length; +if (this.elementCount < oldCapacity) { +this.elementData=$I$(2).copyOf$TTA$I(this.elementData, this.elementCount); +}}); + +Clazz_newMeth(C$, 'ensureCapacity$I', function (minCapacity) { +if (minCapacity > 0) { +this.modCount++; +p$2.ensureCapacityHelper$I.apply(this, [minCapacity]); +}}); + +Clazz_newMeth(C$, 'ensureCapacityHelper$I', function (minCapacity) { +if (minCapacity - this.elementData.length > 0) p$2.grow$I.apply(this, [minCapacity]); +}, p$2); + +Clazz_newMeth(C$, 'grow$I', function (minCapacity) { +var oldCapacity=this.elementData.length; +var newCapacity=oldCapacity + ((this.capacityIncrement > 0) ? this.capacityIncrement : oldCapacity); +if (newCapacity - minCapacity < 0) newCapacity=minCapacity; +if (newCapacity - 2147483639 > 0) newCapacity=C$.hugeCapacity$I(minCapacity); +this.elementData=$I$(2).copyOf$TTA$I(this.elementData, newCapacity); +}, p$2); + +Clazz_newMeth(C$, 'hugeCapacity$I', function (minCapacity) { +if (minCapacity < 0) throw Clazz_new_($I$(3)); +return (minCapacity > 2147483639) ? 2147483647 : 2147483639; +}, 1); + +Clazz_newMeth(C$, 'setSize$I', function (newSize) { +this.modCount++; +if (newSize > this.elementCount) { +p$2.ensureCapacityHelper$I.apply(this, [newSize]); +} else { +for (var i=newSize; i < this.elementCount; i++) { +this.elementData[i]=null; +} +}this.elementCount=newSize; +}); + +Clazz_newMeth(C$, 'capacity$', function () { +return this.elementData.length; +}); + +Clazz_newMeth(C$, 'size$', function () { +return this.elementCount; +}); + +Clazz_newMeth(C$, 'isEmpty$', function () { +return this.elementCount == 0; +}); + +Clazz_newMeth(C$, 'elements$', function () { +return ((P$.Vector$1|| +(function(){var C$=Clazz_newClass(P$, "Vector$1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'java.util.Enumeration', 1); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.count=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.count=0; +}, 1); + +Clazz_newMeth(C$, 'hasMoreElements$', function () { +return this.count < this.b$['java.util.Vector'].elementCount; +}); + +Clazz_newMeth(C$, 'nextElement$', function () { +{ +if (this.count < this.b$['java.util.Vector'].elementCount) { +return this.b$['java.util.Vector'].elementData$I.apply(this.b$['java.util.Vector'], [this.count++]); +}}throw Clazz_new_(Clazz_load('java.util.NoSuchElementException').c$$S,["Vector Enumeration"]); +}); +})() +), Clazz_new_(P$.Vector$1.$init$, [this, null])); +}); + +Clazz_newMeth(C$, 'contains$O', function (o) { +return this.indexOf$O$I(o, 0) >= 0; +}); + +Clazz_newMeth(C$, 'indexOf$O', function (o) { +return this.indexOf$O$I(o, 0); +}); + +Clazz_newMeth(C$, 'indexOf$O$I', function (o, index) { +if (o == null ) { +for (var i=index; i < this.elementCount; i++) if (this.elementData[i] == null ) return i; + +} else { +for (var i=index; i < this.elementCount; i++) if (o.equals$O(this.elementData[i])) return i; + +}return -1; +}); + +Clazz_newMeth(C$, 'lastIndexOf$O', function (o) { +return this.lastIndexOf$O$I(o, this.elementCount - 1); +}); + +Clazz_newMeth(C$, 'lastIndexOf$O$I', function (o, index) { +if (index >= this.elementCount) throw Clazz_new_(Clazz_load('IndexOutOfBoundsException').c$$S,[index + " >= " + this.elementCount ]); +if (o == null ) { +for (var i=index; i >= 0; i--) if (this.elementData[i] == null ) return i; + +} else { +for (var i=index; i >= 0; i--) if (o.equals$O(this.elementData[i])) return i; + +}return -1; +}); + +Clazz_newMeth(C$, 'elementAt$I', function (index) { +if (index >= this.elementCount) { +throw Clazz_new_(Clazz_load('ArrayIndexOutOfBoundsException').c$$S,[index + " >= " + this.elementCount ]); +}return this.elementData$I(index); +}); + +Clazz_newMeth(C$, 'firstElement$', function () { +if (this.elementCount == 0) { +throw Clazz_new_(Clazz_load('java.util.NoSuchElementException')); +}return this.elementData$I(0); +}); + +Clazz_newMeth(C$, 'lastElement$', function () { +if (this.elementCount == 0) { +throw Clazz_new_(Clazz_load('java.util.NoSuchElementException')); +}return this.elementData$I(this.elementCount - 1); +}); + +Clazz_newMeth(C$, ['setElementAt$TE$I'], function (obj, index) { +if (index >= this.elementCount) { +throw Clazz_new_(Clazz_load('ArrayIndexOutOfBoundsException').c$$S,[index + " >= " + this.elementCount ]); +}this.elementData[index]=obj; +}); + +Clazz_newMeth(C$, 'removeElementAt$I', function (index) { +this.modCount++; +if (index >= this.elementCount) { +throw Clazz_new_(Clazz_load('ArrayIndexOutOfBoundsException').c$$S,[index + " >= " + this.elementCount ]); +} else if (index < 0) { +throw Clazz_new_(Clazz_load('ArrayIndexOutOfBoundsException').c$$I,[index]); +}var j=this.elementCount - index - 1 ; +if (j > 0) { +System.arraycopy$O$I$O$I$I(this.elementData, index + 1, this.elementData, index, j); +}this.elementCount--; +this.elementData[this.elementCount]=null; +}); + +Clazz_newMeth(C$, ['insertElementAt$TE$I'], function (obj, index) { +this.modCount++; +if (index > this.elementCount) { +throw Clazz_new_(Clazz_load('ArrayIndexOutOfBoundsException').c$$S,[index + " > " + this.elementCount ]); +}p$2.ensureCapacityHelper$I.apply(this, [this.elementCount + 1]); +System.arraycopy$O$I$O$I$I(this.elementData, index, this.elementData, index + 1, this.elementCount - index); +this.elementData[index]=obj; +this.elementCount++; +}); + +Clazz_newMeth(C$, ['addElement$TE'], function (obj) { +this.modCount++; +p$2.ensureCapacityHelper$I.apply(this, [this.elementCount + 1]); +this.elementData[this.elementCount++]=obj; +}); + +Clazz_newMeth(C$, 'removeElement$O', function (obj) { +this.modCount++; +var i=this.indexOf$O(obj); +if (i >= 0) { +this.removeElementAt$I(i); +return true; +}return false; +}); + +Clazz_newMeth(C$, 'removeAllElements$', function () { +this.modCount++; +for (var i=0; i < this.elementCount; i++) this.elementData[i]=null; + +this.elementCount=0; +}); + +Clazz_newMeth(C$, 'clone$', function () { +try { +var v=Clazz_clone(this); +v.elementData=$I$(2).copyOf$TTA$I(this.elementData, this.elementCount); +v.modCount=0; +return v; +} catch (e) { +if (Clazz_exceptionOf(e,"CloneNotSupportedException")){ +throw Clazz_new_($I$(4).c$$Throwable,[e]); +} else { +throw e; +} +} +}); + +Clazz_newMeth(C$, 'toArray$', function () { +return $I$(2).copyOf$TTA$I(this.elementData, this.elementCount); +}); + +Clazz_newMeth(C$, 'toArray$TTA', function (a) { +if (a.length < this.elementCount) return $I$(2).copyOf$TUA$I$Class(this.elementData, this.elementCount, a.getClass$()); +System.arraycopy$O$I$O$I$I(this.elementData, 0, a, 0, this.elementCount); +if (a.length > this.elementCount) a[this.elementCount]=null; +return a; +}); + +Clazz_newMeth(C$, 'elementData$I', function (index) { +return this.elementData[index]; +}); + +Clazz_newMeth(C$, 'get$I', function (index) { +if (index >= this.elementCount) throw Clazz_new_(Clazz_load('ArrayIndexOutOfBoundsException').c$$I,[index]); +return this.elementData$I(index); +}); + +Clazz_newMeth(C$, 'set$I$TE', function (index, element) { +if (index >= this.elementCount) throw Clazz_new_(Clazz_load('ArrayIndexOutOfBoundsException').c$$I,[index]); +var oldValue=this.elementData$I(index); +this.elementData[index]=element; +return oldValue; +}); + +Clazz_newMeth(C$, ['add$TE'], function (e) { +this.modCount++; +p$2.ensureCapacityHelper$I.apply(this, [this.elementCount + 1]); +this.elementData[this.elementCount++]=e; +return true; +}); + +Clazz_newMeth(C$, 'remove$O', function (o) { +return this.removeElement$O(o); +}); + +Clazz_newMeth(C$, 'add$I$TE', function (index, element) { +this.insertElementAt$TE$I(element, index); +}); + +Clazz_newMeth(C$, 'remove$I', function (index) { +this.modCount++; +if (index >= this.elementCount) throw Clazz_new_(Clazz_load('ArrayIndexOutOfBoundsException').c$$I,[index]); +var oldValue=this.elementData$I(index); +var numMoved=this.elementCount - index - 1 ; +if (numMoved > 0) System.arraycopy$O$I$O$I$I(this.elementData, index + 1, this.elementData, index, numMoved); +this.elementData[--this.elementCount]=null; +return oldValue; +}); + +Clazz_newMeth(C$, 'clear$', function () { +this.removeAllElements$(); +}); + +Clazz_newMeth(C$, 'containsAll$java_util_Collection', function (c) { +return C$.superclazz.prototype.containsAll$java_util_Collection.apply(this, [c]); +}); + +Clazz_newMeth(C$, 'addAll$java_util_Collection', function (c) { +this.modCount++; +var a=c.toArray$(); +var numNew=a.length; +p$2.ensureCapacityHelper$I.apply(this, [this.elementCount + numNew]); +System.arraycopy$O$I$O$I$I(a, 0, this.elementData, this.elementCount, numNew); +this.elementCount+=numNew; +return numNew != 0; +}); + +Clazz_newMeth(C$, 'removeAll$java_util_Collection', function (c) { +return C$.superclazz.prototype.removeAll$java_util_Collection.apply(this, [c]); +}); + +Clazz_newMeth(C$, 'retainAll$java_util_Collection', function (c) { +return C$.superclazz.prototype.retainAll$java_util_Collection.apply(this, [c]); +}); + +Clazz_newMeth(C$, 'addAll$I$java_util_Collection', function (index, c) { +this.modCount++; +if (index < 0 || index > this.elementCount ) throw Clazz_new_(Clazz_load('ArrayIndexOutOfBoundsException').c$$I,[index]); +var a=c.toArray$(); +var numNew=a.length; +p$2.ensureCapacityHelper$I.apply(this, [this.elementCount + numNew]); +var numMoved=this.elementCount - index; +if (numMoved > 0) System.arraycopy$O$I$O$I$I(this.elementData, index, this.elementData, index + numNew, numMoved); +System.arraycopy$O$I$O$I$I(a, 0, this.elementData, index, numNew); +this.elementCount+=numNew; +return numNew != 0; +}); + +Clazz_newMeth(C$, 'equals$O', function (o) { +return C$.superclazz.prototype.equals$O.apply(this, [o]); +}); + +Clazz_newMeth(C$, 'hashCode$', function () { +return C$.superclazz.prototype.hashCode$.apply(this, []); +}); + +Clazz_newMeth(C$, 'toString', function () { +return C$.superclazz.prototype.toString.apply(this, []); +}); + +Clazz_newMeth(C$, 'subList$I$I', function (fromIndex, toIndex) { +return $I$(5).synchronizedList$java_util_List$O(C$.superclazz.prototype.subList$I$I.apply(this, [fromIndex, toIndex]), this); +}); + +Clazz_newMeth(C$, 'removeRange$I$I', function (fromIndex, toIndex) { +this.modCount++; +var numMoved=this.elementCount - toIndex; +System.arraycopy$O$I$O$I$I(this.elementData, toIndex, this.elementData, fromIndex, numMoved); +var newElementCount=this.elementCount - (toIndex - fromIndex); +while (this.elementCount != newElementCount)this.elementData[--this.elementCount]=null; + +}); + +Clazz_newMeth(C$, 'writeObject$java_io_ObjectOutputStream', function (s) { +var fields=s.putFields$(); +var data; +{ +fields.put$S$I("capacityIncrement", this.capacityIncrement); +fields.put$S$I("elementCount", this.elementCount); +data=this.elementData.clone$(); +}fields.put$S$O("elementData", data); +s.writeFields$(); +}, p$2); + +Clazz_newMeth(C$, 'listIterator$I', function (index) { +if (index < 0 || index > this.elementCount ) throw Clazz_new_(Clazz_load('IndexOutOfBoundsException').c$$S,["Index: " + index]); +return Clazz_new_($I$(6).c$$I, [this, null, index]); +}); + +Clazz_newMeth(C$, 'listIterator$', function () { +return Clazz_new_($I$(6).c$$I, [this, null, 0]); +}); + +Clazz_newMeth(C$, 'iterator$', function () { +return Clazz_new_($I$(7), [this, null]); +}); + +Clazz_newMeth(C$, 'forEach$java_util_function_Consumer', function (action) { +$I$(1).requireNonNull$TT(action); +var expectedModCount=this.modCount; +var elementData=this.elementData; +var elementCount=this.elementCount; +for (var i=0; this.modCount == expectedModCount && i < elementCount ; i++) { +action.accept$(elementData[i]); +} +if (this.modCount != expectedModCount) { +throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +}}); + +Clazz_newMeth(C$, 'removeIf$java_util_function_Predicate', function (filter) { +$I$(1).requireNonNull$TT(filter); +var removeCount=0; +var size=this.elementCount; +var removeSet=Clazz_new_($I$(8).c$$I,[size]); +var expectedModCount=this.modCount; +for (var i=0; this.modCount == expectedModCount && i < size ; i++) { +var element=this.elementData[i]; +if (filter.test$(element)) { +removeSet.set$I(i); +removeCount++; +}} +if (this.modCount != expectedModCount) { +throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +}var anyToRemove=removeCount > 0; +if (anyToRemove) { +var newSize=size - removeCount; +for (var i=0, j=0; (i < size) && (j < newSize) ; i++, j++) { +i=removeSet.nextClearBit$I(i); +this.elementData[j]=this.elementData[i]; +} +for (var k=newSize; k < size; k++) { +this.elementData[k]=null; +} +this.elementCount=newSize; +if (this.modCount != expectedModCount) { +throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +}this.modCount++; +}return anyToRemove; +}); + +Clazz_newMeth(C$, 'replaceAll$java_util_function_UnaryOperator', function (operator) { +$I$(1).requireNonNull$TT(operator); +var expectedModCount=this.modCount; +var size=this.elementCount; +for (var i=0; this.modCount == expectedModCount && i < size ; i++) { +this.elementData[i]=operator.apply$(this.elementData[i]); +} +if (this.modCount != expectedModCount) { +throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +}this.modCount++; +}); + +Clazz_newMeth(C$, 'sort$java_util_Comparator', function (c) { +var expectedModCount=this.modCount; +$I$(2).sort$TTA$I$I$java_util_Comparator(this.elementData, 0, this.elementCount, c); +if (this.modCount != expectedModCount) { +throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +}this.modCount++; +}); + +Clazz_newMeth(C$, 'spliterator$', function () { +return Clazz_new_($I$(9).c$$java_util_Vector$OA$I$I$I,[this, null, 0, -1, 0]); +}); +; +(function(){var C$=Clazz_newClass(P$.Vector, "Itr", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, null, 'java.util.Iterator'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.cursor=0; +this.lastRet=0; +this.expectedModCount=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.lastRet=-1; +this.expectedModCount=this.this$0.modCount; +}, 1); + +Clazz_newMeth(C$, 'hasNext$', function () { +return this.cursor != this.this$0.elementCount; +}); + +Clazz_newMeth(C$, 'next$', function () { +{ +this.checkForComodification$(); +var i=this.cursor; +if (i >= this.this$0.elementCount) throw Clazz_new_(Clazz_load('java.util.NoSuchElementException')); +this.cursor=i + 1; +return this.b$['java.util.Vector'].elementData$I.apply(this.b$['java.util.Vector'], [this.lastRet=i]); +}}); + +Clazz_newMeth(C$, 'remove$', function () { +if (this.lastRet == -1) throw Clazz_new_(Clazz_load('IllegalStateException')); +{ +this.checkForComodification$(); +this.b$['java.util.Vector'].remove$I.apply(this.b$['java.util.Vector'], [this.lastRet]); +this.expectedModCount=this.this$0.modCount; +}this.cursor=this.lastRet; +this.lastRet=-1; +}); + +Clazz_newMeth(C$, 'forEachRemaining$java_util_function_Consumer', function (action) { +$I$(1).requireNonNull$TT(action); +{ +var size=this.this$0.elementCount; +var i=this.cursor; +if (i >= size) { +return; +}var elementData=this.b$['java.util.Vector'].elementData; +if (i >= elementData.length) { +throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +}while (i != size && this.this$0.modCount == this.expectedModCount ){ +action.accept$(elementData[i++]); +} +this.cursor=i; +this.lastRet=i - 1; +this.checkForComodification$(); +}}); + +Clazz_newMeth(C$, 'checkForComodification$', function () { +if (this.this$0.modCount != this.expectedModCount) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.Vector, "ListItr", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, ['java.util.Vector','.Itr'], 'java.util.ListIterator'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$I', function (index) { +C$.superclazz.c$.apply(this, []); +C$.$init$.apply(this); +this.cursor=index; +}, 1); + +Clazz_newMeth(C$, 'hasPrevious$', function () { +return this.cursor != 0; +}); + +Clazz_newMeth(C$, 'nextIndex$', function () { +return this.cursor; +}); + +Clazz_newMeth(C$, 'previousIndex$', function () { +return this.cursor - 1; +}); + +Clazz_newMeth(C$, 'previous$', function () { +{ +this.checkForComodification$(); +var i=this.cursor - 1; +if (i < 0) throw Clazz_new_(Clazz_load('java.util.NoSuchElementException')); +this.cursor=i; +return this.b$['java.util.Vector'].elementData$I.apply(this.b$['java.util.Vector'], [this.lastRet=i]); +}}); + +Clazz_newMeth(C$, ['set$TE'], function (e) { +if (this.lastRet == -1) throw Clazz_new_(Clazz_load('IllegalStateException')); +{ +this.checkForComodification$(); +this.b$['java.util.Vector'].set$I$TE.apply(this.b$['java.util.Vector'], [this.lastRet, e]); +}}); + +Clazz_newMeth(C$, ['add$TE'], function (e) { +var i=this.cursor; +{ +this.checkForComodification$(); +this.b$['java.util.Vector'].add$I$TE.apply(this.b$['java.util.Vector'], [i, e]); +this.expectedModCount=this.this$0.modCount; +}this.cursor=i + 1; +this.lastRet=-1; +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.Vector, "VectorSpliterator", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, null, 'java.util.Spliterator'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.list=null; +this.array=null; +this.index=0; +this.fence=0; +this.expectedModCount=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$java_util_Vector$OA$I$I$I', function (list, array, origin, fence, expectedModCount) { +C$.$init$.apply(this); +this.list=list; +this.array=array; +this.index=origin; +this.fence=fence; +this.expectedModCount=expectedModCount; +}, 1); + +Clazz_newMeth(C$, 'getFence', function () { +var hi; +if ((hi=this.fence) < 0) { +{ +this.array=this.list.elementData; +this.expectedModCount=this.list.modCount; +hi=this.fence=this.list.elementCount; +}}return hi; +}, p$1); + +Clazz_newMeth(C$, 'trySplit$', function () { +var hi=p$1.getFence.apply(this, []); +var lo=this.index; +var mid=(lo + hi) >>> 1; +return (lo >= mid) ? null : Clazz_new_(C$.c$$java_util_Vector$OA$I$I$I,[this.list, this.array, lo, this.index=mid, this.expectedModCount]); +}); + +Clazz_newMeth(C$, 'tryAdvance$java_util_function_Consumer', function (action) { +var i; +if (action == null ) throw Clazz_new_(Clazz_load('NullPointerException')); +if (p$1.getFence.apply(this, []) > (i=this.index)) { +this.index=i + 1; +action.accept$(this.array[i]); +if (this.list.modCount != this.expectedModCount) throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +return true; +}return false; +}); + +Clazz_newMeth(C$, 'forEachRemaining$java_util_function_Consumer', function (action) { +var i; +var hi; +var lst; +var a; +if (action == null ) throw Clazz_new_(Clazz_load('NullPointerException')); +if ((lst=this.list) != null ) { +if ((hi=this.fence) < 0) { +{ +this.expectedModCount=lst.modCount; +a=this.array=lst.elementData; +hi=this.fence=lst.elementCount; +}} else a=this.array; +if (a != null && (i=this.index) >= 0 && (this.index=hi) <= a.length ) { +while (i < hi)action.accept$(a[i++]); + +if (lst.modCount == this.expectedModCount) return; +}}throw Clazz_new_(Clazz_load('java.util.ConcurrentModificationException')); +}); + +Clazz_newMeth(C$, 'estimateSize$', function () { +return (p$1.getFence.apply(this, []) - this.index); +}); + +Clazz_newMeth(C$, 'characteristics$', function () { +return 16464; +}); + +Clazz_newMeth(C$); +})() +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:44 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javajs.api"),I$=[]; +var C$=Clazz_newInterface(P$, "JSFunction"); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:54 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javajs.util"),p$1={},I$=[[0,'java.util.Hashtable',['javajs.util.AjaxURLConnection','.AjaxHttpsURLConnection'],'java.io.ByteArrayOutputStream','javajs.util.Rdr']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "AjaxURLConnection", function(){ +Clazz_newInstance(this, arguments,0,C$); +}, 'java.net.HttpURLConnection'); +C$.urlCache=null; +C$.NETWORK_ERROR=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.urlCache=Clazz_new_($I$(1)); +C$.NETWORK_ERROR=Clazz_array(Integer.TYPE, -1, [78, 101, 116, 119, 111, 114, 107, 69, 114, 114, 111, 114]); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.bytesOut=null; +this.postOut=null; +this.streamOut=null; +this.ajax=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.postOut=""; +}, 1); + +Clazz_newMeth(C$, 'newConnection$java_net_URL', function (url) { +return (url.getProtocol$() == "https" ? Clazz_new_($I$(2).c$$java_net_URL,[url]) : Clazz_new_(C$.c$$java_net_URL,[url])); +}, 1); + +Clazz_newMeth(C$, 'c$$java_net_URL', function (url) { +C$.superclazz.c$$java_net_URL.apply(this, [url]); +C$.$init$.apply(this); +this.ajax=url.ajax ||null; +}, 1); + +Clazz_newMeth(C$, 'doAjax$Z', function (isBinary) { +if (this.streamOut != null ) { +this.bytesOut=this.streamOut.toByteArray$(); +this.streamOut=null; +}var J2S=self.J2S ||null; +var info=null; + +info = this.ajax || {}; +if (!info.dataType) { info.isBinary = !!isBinary; +} +var result=J2S.doAjax(this.url.toString(), this.postOut, this.bytesOut, info); +var isEmpty=false; + +isEmpty = (!result || result.length == 2 && result[0] == 13 && result[1] == 10); +if (isEmpty) result = new Int8Array; +this.responseCode=isEmpty ? 404 : info.xhr.status ||0; +return result; +}, p$1); + +Clazz_newMeth(C$, 'connect$', function () { +}); + +Clazz_newMeth(C$, 'outputBytes$BA', function (bytes) { +this.bytesOut=bytes; +}); + +Clazz_newMeth(C$, 'outputString$S', function (post) { +this.postOut=post; +}); + +Clazz_newMeth(C$, 'getOutputStream$', function () { +return this.streamOut=Clazz_new_($I$(3)); +}); + +Clazz_newMeth(C$, 'getInputStream$', function () { +this.responseCode=-1; +var is=p$1.getInputStreamAndResponse$java_net_URL$Z.apply(this, [this.url, false]); +if (is == null ) throw Clazz_new_(Clazz_load('java.io.FileNotFoundException').c$$S,["opening " + this.url]); +return is; +}); + +Clazz_newMeth(C$, 'getInputStreamAndResponse$java_net_URL$Z', function (url, allowNWError) { +var is=C$.getAttachedStreamData$java_net_URL$Z(url, false); +if (is != null || this.getUseCaches$() && (is=p$1.getCachedStream$java_net_URL$Z.apply(this, [url, allowNWError])) != null ) { +return is; +}is=C$.attachStreamData$java_net_URL$O(url, p$1.doAjax$Z.apply(this, [this.ajax == null ])); +if (this.getUseCaches$() && is != null ) { +p$1.isNetworkError$java_io_BufferedInputStream.apply(this, [is]); +p$1.setCachedStream$java_net_URL.apply(this, [url]); +return is; +}p$1.isNetworkError$java_io_BufferedInputStream.apply(this, [is]); +return is; +}, p$1); + +Clazz_newMeth(C$, 'getCachedStream$java_net_URL$Z', function (url, allowNWError) { +var data=C$.urlCache.get$O(url.toString()); +if (data == null ) return null; +var isAjax=url.ajax ||false; +var bis=C$.getBIS$O$Z(data, isAjax); +return (!p$1.isNetworkError$java_io_BufferedInputStream.apply(this, [bis]) || allowNWError ? bis : null); +}, p$1); + +Clazz_newMeth(C$, 'getBIS$O$Z', function (data, isJSON) { +if (data == null ) return null; +if (!isJSON) return $I$(4).toBIS$O(data); +var bis=$I$(4).toBIS$O(""); + +bis._jsonData = data; +return bis; +}, 1); + +Clazz_newMeth(C$, 'setCachedStream$java_net_URL', function (url) { +var data=url._streamData ||null; +if (data != null ) { +var code=this.responseCode; + +data._responseCode = code; +C$.urlCache.put$TK$TV(url.toString(), data); +}}, p$1); + +Clazz_newMeth(C$, 'isNetworkError$java_io_BufferedInputStream', function (is) { +if (is != null ) { +this.responseCode=200; +if (is._jsonData ||false) return false; +is.mark$I(15); +var bytes=Clazz_array(Byte.TYPE, [13]); +try { +is.read$BA(bytes); +is.reset$(); +for (var i=C$.NETWORK_ERROR.length; --i >= 0; ) if (bytes[i] != C$.NETWORK_ERROR[i]) return false; + +} catch (e) { +if (Clazz_exceptionOf(e,"java.io.IOException")){ +} else { +throw e; +} +} +}this.responseCode=404; +return true; +}, p$1); + +Clazz_newMeth(C$, 'getAttachedStreamData$java_net_URL$Z', function (url, andDelete) { +var data=null; +var isJSON=false; + +data = url._streamData; if (andDelete) url._streamData = null; +isJSON = (data && url.ajax && url.ajax.dataType == "json") +return C$.getBIS$O$Z(data, isJSON); +}, 1); + +Clazz_newMeth(C$, 'attachStreamData$java_net_URL$O', function (url, o) { + +url._streamData = o; +return C$.getBIS$O$Z(o, url.ajax ||false); +}, 1); + +Clazz_newMeth(C$, 'getContents$', function () { +return p$1.doAjax$Z.apply(this, [false]); +}); + +Clazz_newMeth(C$, 'getResponseCode$', function () { +if (this.responseCode == -1) { +try { +p$1.getInputStreamAndResponse$java_net_URL$Z.apply(this, [this.url, true]); +} catch (e) { +if (Clazz_exceptionOf(e,"Exception")){ +} else { +throw e; +} +} +}return this.responseCode; +}); + +Clazz_newMeth(C$, 'disconnect$', function () { +}); + +Clazz_newMeth(C$, 'usingProxy$', function () { +return false; +}); + +Clazz_newMeth(C$, 'getContentLength$', function () { +try { +var is=this.getInputStream$(); +return is.available$(); +} catch (e) { +if (Clazz_exceptionOf(e,"java.io.IOException")){ +return -1; +} else { +throw e; +} +} +}); +; +(function(){var C$=Clazz_newClass(P$.AjaxURLConnection, "AjaxHttpsURLConnection", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'javajs.util.AjaxURLConnection'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +{ + +C$.implementz = [Clazz_load("javax.net.ssl.HttpsURLConnection")]; +}; +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$java_net_URL', function (url) { +C$.superclazz.c$$java_net_URL.apply(this, [url]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$); +})() + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:54 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javajs.util"),I$=[[0,'java.util.Hashtable','javajs.util.AjaxURLStreamHandler']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "AjaxURLStreamHandlerFactory", null, null, 'java.net.URLStreamHandlerFactory'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.htFactories=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.htFactories=Clazz_new_($I$(1)); +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, ['createURLStreamHandler$S','createURLStreamHandler$'], function (protocol) { +var fac=this.htFactories.get$O(protocol); +if (fac == null ) this.htFactories.put$TK$TV(protocol, fac=Clazz_new_($I$(2).c$$S,[protocol])); +return (fac.protocol == null ? null : fac); +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:54 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javajs.util"),I$=[[0,'java.lang.reflect.Array','javajs.util.T3','java.util.Arrays','javajs.util.Lst','java.util.Hashtable']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "AU"); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'ensureLength$O$I', function (array, minimumLength) { +return (array != null && C$.getLength$O(array) >= minimumLength ? array : C$.arrayCopyObject$O$I(array, minimumLength)); +}, 1); + +Clazz_newMeth(C$, 'ensureLengthS$SA$I', function (array, minimumLength) { +return (array != null && array.length >= minimumLength ? array : C$.arrayCopyS$SA$I(array, minimumLength)); +}, 1); + +Clazz_newMeth(C$, 'ensureLengthA$FA$I', function (array, minimumLength) { +return (array != null && array.length >= minimumLength ? array : C$.arrayCopyF$FA$I(array, minimumLength)); +}, 1); + +Clazz_newMeth(C$, 'ensureLengthI$IA$I', function (array, minimumLength) { +return (array != null && array.length >= minimumLength ? array : C$.arrayCopyI$IA$I(array, minimumLength)); +}, 1); + +Clazz_newMeth(C$, 'ensureLengthShort$HA$I', function (array, minimumLength) { +return (array != null && array.length >= minimumLength ? array : C$.arrayCopyShort$HA$I(array, minimumLength)); +}, 1); + +Clazz_newMeth(C$, 'ensureLengthByte$BA$I', function (array, minimumLength) { +return (array != null && array.length >= minimumLength ? array : C$.arrayCopyByte$BA$I(array, minimumLength)); +}, 1); + +Clazz_newMeth(C$, 'doubleLength$O', function (array) { +return C$.arrayCopyObject$O$I(array, (array == null ? 16 : 2 * C$.getLength$O(array))); +}, 1); + +Clazz_newMeth(C$, 'doubleLengthS$SA', function (array) { +return C$.arrayCopyS$SA$I(array, (array == null ? 16 : 2 * array.length)); +}, 1); + +Clazz_newMeth(C$, 'doubleLengthF$FA', function (array) { +return C$.arrayCopyF$FA$I(array, (array == null ? 16 : 2 * array.length)); +}, 1); + +Clazz_newMeth(C$, 'doubleLengthI$IA', function (array) { +return C$.arrayCopyI$IA$I(array, (array == null ? 16 : 2 * array.length)); +}, 1); + +Clazz_newMeth(C$, 'doubleLengthShort$HA', function (array) { +return C$.arrayCopyShort$HA$I(array, (array == null ? 16 : 2 * array.length)); +}, 1); + +Clazz_newMeth(C$, 'doubleLengthByte$BA', function (array) { +return C$.arrayCopyByte$BA$I(array, (array == null ? 16 : 2 * array.length)); +}, 1); + +Clazz_newMeth(C$, 'doubleLengthBool$ZA', function (array) { +return C$.arrayCopyBool$ZA$I(array, (array == null ? 16 : 2 * array.length)); +}, 1); + +Clazz_newMeth(C$, 'deleteElements$O$I$I', function (array, firstElement, nElements) { +if (nElements == 0 || array == null ) return array; +var oldLength=C$.getLength$O(array); +if (firstElement >= oldLength) return array; +var n=oldLength - (firstElement + nElements); +if (n < 0) n=0; +var t=C$.newInstanceO$O$I(array, firstElement + n); +if (firstElement > 0) System.arraycopy$O$I$O$I$I(array, 0, t, 0, firstElement); +if (n > 0) System.arraycopy$O$I$O$I$I(array, firstElement + nElements, t, firstElement, n); +return t; +}, 1); + +Clazz_newMeth(C$, 'arrayCopyObject$O$I', function (array, newLength) { +var oldLength=(array == null ? -1 : C$.getLength$O(array)); +if (newLength < 0) newLength=oldLength; +if (newLength == oldLength) return array; +{ +if (newLength < oldLength) return Clazz_array(-1, array, 0, newLength); +} +var t=C$.newInstanceO$O$I(array, newLength); +if (oldLength > 0) System.arraycopy$O$I$O$I$I(array, 0, t, 0, oldLength < newLength ? oldLength : newLength); +return t; +}, 1); + +Clazz_newMeth(C$, 'newInstanceO$O$I', function (array, n) { +return Clazz_array(array.getClass$().getComponentType$(), n); +}, 1); + +Clazz_newMeth(C$, 'getLength$O', function (array) { +{ +return array.length +} +}, 1); + +Clazz_newMeth(C$, 'arrayCopyS$SA$I', function (array, newLength) { +var oldLength=(array == null ? -1 : array.length); +if (newLength < 0) newLength=oldLength; +{ +if (newLength < oldLength) return Clazz_array(-1, array, 0, newLength); +} +var t=Clazz_array(String, [newLength]); +if (array != null ) { +System.arraycopy$O$I$O$I$I(array, 0, t, 0, oldLength < newLength ? oldLength : newLength); +}return t; +}, 1); + +Clazz_newMeth(C$, 'arrayCopyII$IAA$I', function (array, newLength) { +var t=C$.newInt2$I(newLength); +if (array != null ) { +var oldLength=array.length; +System.arraycopy$O$I$O$I$I(array, 0, t, 0, oldLength < newLength ? oldLength : newLength); +}return t; +}, 1); + +Clazz_newMeth(C$, 'arrayCopyPt$javajs_util_T3A$I', function (array, newLength) { +if (newLength < 0) newLength=array.length; +var t=Clazz_array($I$(2), [newLength]); +if (array != null ) { +var oldLength=array.length; +System.arraycopy$O$I$O$I$I(array, 0, t, 0, oldLength < newLength ? oldLength : newLength); +}return t; +}, 1); + +Clazz_newMeth(C$, 'arrayCopyF$FA$I', function (array, newLength) { +var oldLength=(array == null ? -1 : array.length); +if (newLength < 0) newLength=oldLength; +{ +if (newLength < oldLength) return Clazz_array(-1, array, 0, newLength); +} +var t=Clazz_array(Float.TYPE, [newLength]); +if (array != null ) { +System.arraycopy$O$I$O$I$I(array, 0, t, 0, oldLength < newLength ? oldLength : newLength); +}return t; +}, 1); + +Clazz_newMeth(C$, 'arrayCopyI$IA$I', function (array, newLength) { +var oldLength=(array == null ? -1 : array.length); +if (newLength < 0) newLength=oldLength; +{ +if (newLength < oldLength) return Clazz_array(-1, array, 0, newLength); +} +var t=Clazz_array(Integer.TYPE, [newLength]); +if (array != null ) { +System.arraycopy$O$I$O$I$I(array, 0, t, 0, oldLength < newLength ? oldLength : newLength); +}return t; +}, 1); + +Clazz_newMeth(C$, 'arrayCopyRangeI$IA$I$I', function (array, i0, n) { +if (array == null ) return null; +var oldLength=array.length; +if (n == -1) n=oldLength; +if (n == -2) n=(oldLength/2|0); +{ +return Clazz_array(-1, array, i0, n); +} +}, 1); + +Clazz_newMeth(C$, 'arrayCopyRangeRevI$IA$I$I', function (array, i0, n) { +if (array == null ) return null; +{ +return Clazz_array(-1, array, i0, n).reverse(); +} +}, 1); + +Clazz_newMeth(C$, 'arrayCopyShort$HA$I', function (array, newLength) { +var oldLength=(array == null ? -1 : array.length); +if (newLength < 0) newLength=oldLength; +{ +if (newLength < oldLength) return Clazz_array(-1, array, 0, newLength); +} +var t=Clazz_array(Short.TYPE, [newLength]); +if (array != null ) { +System.arraycopy$O$I$O$I$I(array, 0, t, 0, oldLength < newLength ? oldLength : newLength); +}return t; +}, 1); + +Clazz_newMeth(C$, 'arrayCopyByte$BA$I', function (array, newLength) { +var oldLength=(array == null ? -1 : array.length); +if (newLength < 0) newLength=oldLength; +{ +if (newLength < oldLength) return Clazz_array(-1, array, 0, newLength); +} +var t=Clazz_array(Byte.TYPE, [newLength]); +if (array != null ) { +System.arraycopy$O$I$O$I$I(array, 0, t, 0, oldLength < newLength ? oldLength : newLength); +}return t; +}, 1); + +Clazz_newMeth(C$, 'arrayCopyBool$ZA$I', function (array, newLength) { +var oldLength=(array == null ? -1 : array.length); +if (newLength < 0) newLength=oldLength; +{ +if (newLength < oldLength) return Clazz_array(-1, array, 0, newLength); +} +var t=Clazz_array(Boolean.TYPE, [newLength]); +if (array != null ) { +System.arraycopy$O$I$O$I$I(array, 0, t, 0, oldLength < newLength ? oldLength : newLength); +}return t; +}, 1); + +Clazz_newMeth(C$, 'swapInt$IA$I$I', function (array, indexA, indexB) { +var t=array[indexA]; +array[indexA]=array[indexB]; +array[indexB]=t; +}, 1); + +Clazz_newMeth(C$, 'dumpArray$S$FAA$I$I$I$I', function (msg, A, x1, x2, y1, y2) { +var s="dumpArray: " + msg + "\n" ; +for (var x=x1; x <= x2; x++) s += "\t*" + x + "*" ; + +for (var y=y2; y >= y1; y--) { +s += "\n*" + y + "*" ; +for (var x=x1; x <= x2; x++) s += "\t" + (new Float(x < A.length && y < A[x].length ? A[x][y] : NaN).toString()); + +} +return s; +}, 1); + +Clazz_newMeth(C$, 'dumpIntArray$IA$I', function (A, n) { +var str=""; +for (var i=0; i < n; i++) str += " " + A[i]; + +return str; +}, 1); + +Clazz_newMeth(C$, 'sortedItem$javajs_util_Lst$I', function (v, n) { +if (v.size$() == 0) return null; +if (v.size$() == 1) return v.get$I(0); +var keys=v.toArray$TTA(Clazz_array(String, [v.size$()])); +$I$(3).sort$OA(keys); +return keys[n % keys.length]; +}, 1); + +Clazz_newMeth(C$, 'createArrayOfArrayList$I', function (size) { +return Clazz_array($I$(4), [size]); +}, 1); + +Clazz_newMeth(C$, 'createArrayOfHashtable$I', function (size) { +return Clazz_array($I$(5), [size]); +}, 1); + +Clazz_newMeth(C$, 'swap$OA$I$I', function (o, i, j) { +var oi=o[i]; +o[i]=o[j]; +o[j]=oi; +}, 1); + +Clazz_newMeth(C$, 'newFloat2$I', function (n) { +return Clazz_array(Float.TYPE, [n, null]); +}, 1); + +Clazz_newMeth(C$, 'newBool2$I', function (n) { +return Clazz_array(Boolean.TYPE, [n, null]); +}, 1); + +Clazz_newMeth(C$, 'newInt2$I', function (n) { +return Clazz_array(Integer.TYPE, [n, null]); +}, 1); + +Clazz_newMeth(C$, 'newInt3$I$I', function (nx, ny) { +return (ny < 0 ? Clazz_array(Integer.TYPE, [nx, null, null]) : Clazz_array(Integer.TYPE, [nx, ny, null])); +}, 1); + +Clazz_newMeth(C$, 'newFloat3$I$I', function (nx, ny) { +return (ny < 0 ? Clazz_array(Float.TYPE, [nx, null, null]) : Clazz_array(Float.TYPE, [nx, ny, null])); +}, 1); + +Clazz_newMeth(C$, 'newInt4$I', function (n) { +return Clazz_array(Integer.TYPE, [n, null, null, null]); +}, 1); + +Clazz_newMeth(C$, 'newShort2$I', function (n) { +return Clazz_array(Short.TYPE, [n, null]); +}, 1); + +Clazz_newMeth(C$, 'newByte2$I', function (n) { +return Clazz_array(Byte.TYPE, [n, null]); +}, 1); + +Clazz_newMeth(C$, 'newDouble2$I', function (n) { +return Clazz_array(Double.TYPE, [n, null]); +}, 1); + +Clazz_newMeth(C$, 'removeMapKeys$java_util_Map$S', function (map, root) { +var list=Clazz_new_($I$(4)); +for (var key, $key = map.keySet$().iterator$(); $key.hasNext$()&&((key=($key.next$())),1);) if (key.startsWith$S(root)) list.addLast$TV(key); + +for (var i=list.size$(); --i >= 0; ) map.remove$O(list.get$I(i)); + +return list.size$(); +}, 1); + +Clazz_newMeth(C$, 'isAS$O', function (x) { +return Clazz_instanceOf(x, Clazz_array(String, -1)); +}, 1); + +Clazz_newMeth(C$, 'isASS$O', function (x) { +return Clazz_instanceOf(x, Clazz_array(String, -2)); +}, 1); + +Clazz_newMeth(C$, 'isAP$O', function (x) { +return Clazz_instanceOf(x, Clazz_array($I$(2), -1)); +}, 1); + +Clazz_newMeth(C$, 'isAF$O', function (x) { +return Clazz_instanceOf(x, Clazz_array(Float.TYPE, -1)); +}, 1); + +Clazz_newMeth(C$, 'isAFloat$O', function (x) { +return Clazz_instanceOf(x, Clazz_array(Float, -1)); +}, 1); + +Clazz_newMeth(C$, 'isAD$O', function (x) { +return Clazz_instanceOf(x, Clazz_array(Double.TYPE, -1)); +}, 1); + +Clazz_newMeth(C$, 'isADD$O', function (x) { +return Clazz_instanceOf(x, Clazz_array(Double.TYPE, -2)); +}, 1); + +Clazz_newMeth(C$, 'isAB$O', function (x) { +return Clazz_instanceOf(x, Clazz_array(Byte.TYPE, -1)); +}, 1); + +Clazz_newMeth(C$, 'isAI$O', function (x) { +return Clazz_instanceOf(x, Clazz_array(Integer.TYPE, -1)); +}, 1); + +Clazz_newMeth(C$, 'isAII$O', function (x) { +return (Clazz_instanceOf(x, Clazz_array(Integer.TYPE, -2))); +}, 1); + +Clazz_newMeth(C$, 'isAFF$O', function (x) { +return Clazz_instanceOf(x, Clazz_array(Float.TYPE, -2)); +}, 1); + +Clazz_newMeth(C$, 'isAFFF$O', function (x) { +return Clazz_instanceOf(x, Clazz_array(Float.TYPE, -3)); +}, 1); + +Clazz_newMeth(C$, 'ensureSignedBytes$BA', function (b) { +if (b != null ) { +{ +for (var i = b.length; --i >= 0;) { var j = b[i] & 0xFF; if (j >= 0x80) j -= 0x100; b[i] = j; } +} +}return b; +}, 1); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:54 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javajs.util"); +var C$=Clazz_newClass(P$, "JSThread", null, 'Thread'); +C$.threadCount=0; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.threadCount=0; +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.isJS=false; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.isJS=true ||false; +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.c$$ThreadGroup$S.apply(this, [null, "JSThread-" + (++C$.threadCount)]); +}, 1); + +Clazz_newMeth(C$, 'c$$S', function (name) { +C$.c$$ThreadGroup$S.apply(this, [null, name]); +}, 1); + +Clazz_newMeth(C$, 'c$$ThreadGroup$S', function (group, name) { +C$.superclazz.c$$ThreadGroup$S.apply(this, [group, name]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'run$', function () { +this.run1$I(0); +}); + +Clazz_newMeth(C$, 'start$', function () { +{ +Clazz_load("swingjs.JSToolkit").dispatch$O$I$I(this, 1, 0); +} +}); + +Clazz_newMeth(C$, 'run1$I', function (state) { +var executeFinally=true; +try { +while (!Thread.interrupted$()){ +switch (state) { +case 0: +if (!this.myInit$()) return; +state=1; +continue; +case 1: +if (!this.isLooping$()) { +state=2; +continue; +}if (this.myLoop$() && this.sleepAndReturn$I$I(this.getDelayMillis$(), state) ) { +executeFinally=false; +return; +}continue; +case 2: +this.whenDone$(); +return; +} +} +} catch (e) { +if (Clazz_exceptionOf(e,"Exception")){ +this.onException$Exception(e); +state=2; +} else { +throw e; +} +} finally { +if (executeFinally) this.doFinally$(); +} +}); + +Clazz_newMeth(C$, 'sleepAndReturn$I$I', function (delay, state) { +if (!this.isJS) { +Thread.sleep$J(delay); +return false; +}var me=this; +var r=((P$.JSThread$1|| +(function(){var C$=Clazz_newClass(P$, "JSThread$1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'Runnable', 1); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'run$', function () { +this.$finals$.me.run1$I(this.$finals$.state); +}); +})() +), Clazz_new_(P$.JSThread$1.$init$, [this, {me: me, state: state}])); +{ +setTimeout( function() { java.awt.Toolkit.getDefaultToolkit$().getSystemEventQueue$().postEvent$java_awt_AWTEvent( Clazz_new_(java.awt.event.InvocationEvent.c$$O$Runnable,[me, r]))}, delay); +} +return true; +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:55 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javajs.util"),I$=[]; +var C$=Clazz_newClass(P$, "Lst", null, 'java.util.ArrayList'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.superclazz.c$.apply(this, []); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, ['addLast$TV'], function (v) { +return C$.superclazz.prototype.add$TE.apply(this, [v]); +}); + +Clazz_newMeth(C$, 'removeItemAt$I', function (location) { +return C$.superclazz.prototype.remove$I.apply(this, [location]); +}); + +Clazz_newMeth(C$, 'removeObj$O', function (v) { +return C$.superclazz.prototype.remove$O.apply(this, [v]); +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:55 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javajs.util"),I$=[[0,'javajs.util.DF','javajs.util.SB','javajs.util.AU','java.lang.reflect.Array']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "PT"); +C$.tensScale=null; +C$.decimalScale=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.tensScale=Clazz_array(Float.TYPE, -1, [10.0, 100.0, 1000.0, 10000.0, 100000.0, 1000000.0]); +C$.decimalScale=Clazz_array(Float.TYPE, -1, [0.1, 0.01, 0.001, 1.0E-4, 1.0E-5, 1.0E-6, 1.0E-7, 1.0E-8, 1.0E-9]); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'parseInt$S', function (str) { +return C$.parseIntNext$S$IA(str, Clazz_array(Integer.TYPE, -1, [0])); +}, 1); + +Clazz_newMeth(C$, 'parseIntNext$S$IA', function (str, next) { +var cch=str.length$(); +if (next[0] < 0 || next[0] >= cch ) return -2147483648; +return C$.parseIntChecked$S$I$IA(str, cch, next); +}, 1); + +Clazz_newMeth(C$, 'parseIntChecked$S$I$IA', function (str, ichMax, next) { +var digitSeen=false; +var value=0; +var ich=next[0]; +if (ich < 0) return -2147483648; +var ch; +while (ich < ichMax && C$.isWhiteSpace$S$I(str, ich) )++ich; + +var negative=false; +if (ich < ichMax && (str.charCodeAt$I(ich)) == 45 ) { +negative=true; +++ich; +}while (ich < ichMax && (ch=str.charAt$I(ich).$c()) >= 48 && ch <= 57 ){ +value=value * 10 + (ch - 48); +digitSeen=true; +++ich; +} +if (!digitSeen) value=-2147483648; + else if (negative) value=-value; +next[0]=ich; +return value; +}, 1); + +Clazz_newMeth(C$, 'isWhiteSpace$S$I', function (str, ich) { +var ch; +return (ich >= 0 && ((ch=str.charAt$I(ich)) == " " || ch == "\t" || ch == "\n" ) ); +}, 1); + +Clazz_newMeth(C$, 'parseFloatChecked$S$I$IA$Z', function (str, ichMax, next, isStrict) { +var digitSeen=false; +var ich=next[0]; +if (isStrict && str.indexOf$I("\n") != str.lastIndexOf$I("\n") ) return NaN; +while (ich < ichMax && C$.isWhiteSpace$S$I(str, ich) )++ich; + +var negative=false; +if (ich < ichMax && str.charAt$I(ich) == "-" ) { +++ich; +negative=true; +}var ch=0; +var ival=0.0; +var ival2=0.0; +while (ich < ichMax && (ch=str.charAt$I(ich).$c()) >= 48 && ch <= 57 ){ +ival=(ival * 10.0) + (ch - 48) * 1.0; +++ich; +digitSeen=true; +} +var isDecimal=false; +var iscale=0; +var nzero=(ival == 0 ? -1 : 0); +if (ch == 46 ) { +isDecimal=true; +while (++ich < ichMax && (ch=str.charAt$I(ich).$c()) >= 48 && ch <= 57 ){ +digitSeen=true; +if (nzero < 0) { +if (ch == 48) { +nzero--; +continue; +}nzero=-nzero; +}if (iscale < C$.decimalScale.length) { +ival2=(ival2 * 10.0) + (ch - 48) * 1.0; +iscale++; +}} +}var value; +if (!digitSeen) { +value=NaN; +} else if (ival2 > 0 ) { +value=ival2 * C$.decimalScale[iscale - 1]; +if (nzero > 1) { +if (nzero - 2 < C$.decimalScale.length) { +value *= C$.decimalScale[nzero - 2]; +} else { +value *= Math.pow(10, 1 - nzero); +}} else { +value += ival; +}} else { +value=ival; +}var isExponent=false; +if (ich < ichMax && (ch == 69 || ch == 101 || ch == 68 ) ) { +isExponent=true; +if (++ich >= ichMax) return NaN; +ch=str.charAt$I(ich).$c(); +if ((ch == 43 ) && (++ich >= ichMax) ) return NaN; +next[0]=ich; +var exponent=C$.parseIntChecked$S$I$IA(str, ichMax, next); +if (exponent == -2147483648) return NaN; +if (exponent > 0 && exponent <= C$.tensScale.length ) value *= C$.tensScale[exponent - 1]; + else if (exponent < 0 && -exponent <= C$.decimalScale.length ) value *= C$.decimalScale[-exponent - 1]; + else if (exponent != 0) value *= Math.pow(10, exponent); +} else { +next[0]=ich; +}if (negative) value=-value; +if (value == Infinity ) value=3.4028235E38; +return (!isStrict || (!isExponent || isDecimal ) && C$.checkTrailingText$S$I$I(str, next[0], ichMax) ? value : NaN); +}, 1); + +Clazz_newMeth(C$, 'checkTrailingText$S$I$I', function (str, ich, ichMax) { +var ch; +while (ich < ichMax && (C$.isWhitespace$C(ch=str.charAt$I(ich)) || ch == ";" ) )++ich; + +return (ich == ichMax); +}, 1); + +Clazz_newMeth(C$, 'parseFloatArray$S', function (str) { +return C$.parseFloatArrayNext$S$IA$FA$S$S(str, Clazz_array(Integer.TYPE, [1]), null, null, null); +}, 1); + +Clazz_newMeth(C$, 'parseFloatArrayInfested$SA$FA', function (tokens, data) { +var len=data.length; +var nTokens=tokens.length; +var n=0; +var max=0; +for (var i=0; i >= 0 && i < len && n < nTokens ; i++) { +var f; +while (Float.isNaN$F(f=C$.parseFloat$S(tokens[n++])) && n < nTokens ){ +} +if (!Float.isNaN$F(f)) data[(max=i)]=f; +if (n == nTokens) break; +} +return max + 1; +}, 1); + +Clazz_newMeth(C$, 'parseFloatArrayNext$S$IA$FA$S$S', function (str, next, f, strStart, strEnd) { +var n=0; +var pt=next[0]; +if (pt >= 0) { +if (strStart != null ) { +var p=str.indexOf$S$I(strStart, pt); +if (p >= 0) next[0]=p + strStart.length$(); +}str=str.substring$I(next[0]); +pt=(strEnd == null ? -1 : str.indexOf$S(strEnd)); +if (pt < 0) pt=str.length$(); + else str=str.substring$I$I(0, pt); +next[0]+=pt + 1; +var tokens=C$.getTokens$S(str); +if (f == null ) f=Clazz_array(Float.TYPE, [tokens.length]); +n=C$.parseFloatArrayInfested$SA$FA(tokens, f); +}if (f == null ) return Clazz_array(Float.TYPE, [0]); +for (var i=n; i < f.length; i++) f[i]=NaN; + +return f; +}, 1); + +Clazz_newMeth(C$, 'parseFloatRange$S$I$IA', function (str, ichMax, next) { +var cch=str.length$(); +if (ichMax > cch) ichMax=cch; +if (next[0] < 0 || next[0] >= ichMax ) return NaN; +return C$.parseFloatChecked$S$I$IA$Z(str, ichMax, next, false); +}, 1); + +Clazz_newMeth(C$, 'parseFloatNext$S$IA', function (str, next) { +var cch=(str == null ? -1 : str.length$()); +return (next[0] < 0 || next[0] >= cch ? NaN : C$.parseFloatChecked$S$I$IA$Z(str, cch, next, false)); +}, 1); + +Clazz_newMeth(C$, 'parseFloatStrict$S', function (str) { +var cch=str.length$(); +if (cch == 0) return NaN; +return C$.parseFloatChecked$S$I$IA$Z(str, cch, Clazz_array(Integer.TYPE, -1, [0]), true); +}, 1); + +Clazz_newMeth(C$, 'parseFloat$S', function (str) { +return C$.parseFloatNext$S$IA(str, Clazz_array(Integer.TYPE, -1, [0])); +}, 1); + +Clazz_newMeth(C$, 'parseIntRadix$S$I', function (s, i) { +return Integer.parseInt$S$I(s, i); +}, 1); + +Clazz_newMeth(C$, 'getTokens$S', function (line) { +return C$.getTokensAt$S$I(line, 0); +}, 1); + +Clazz_newMeth(C$, 'parseToken$S', function (str) { +return C$.parseTokenNext$S$IA(str, Clazz_array(Integer.TYPE, -1, [0])); +}, 1); + +Clazz_newMeth(C$, 'parseTrimmed$S', function (str) { +return C$.parseTrimmedRange$S$I$I(str, 0, str.length$()); +}, 1); + +Clazz_newMeth(C$, 'parseTrimmedAt$S$I', function (str, ichStart) { +return C$.parseTrimmedRange$S$I$I(str, ichStart, str.length$()); +}, 1); + +Clazz_newMeth(C$, 'parseTrimmedRange$S$I$I', function (str, ichStart, ichMax) { +var cch=str.length$(); +if (ichMax < cch) cch=ichMax; +if (cch < ichStart) return ""; +return C$.parseTrimmedChecked$S$I$I(str, ichStart, cch); +}, 1); + +Clazz_newMeth(C$, 'getTokensAt$S$I', function (line, ich) { +if (line == null ) return null; +var cchLine=line.length$(); +if (ich < 0 || ich > cchLine ) return null; +var tokenCount=C$.countTokens$S$I(line, ich); +var tokens=Clazz_array(String, [tokenCount]); +var next=Clazz_array(Integer.TYPE, [1]); +next[0]=ich; +for (var i=0; i < tokenCount; ++i) tokens[i]=C$.parseTokenChecked$S$I$IA(line, cchLine, next); + +return tokens; +}, 1); + +Clazz_newMeth(C$, 'countChar$S$C', function (line, c) { +var n=0; +for (var i=line.lastIndexOf$I(c) + 1; --i >= 0; ) if (line.charAt$I(i) == c) n++; + +return n; +}, 1); + +Clazz_newMeth(C$, 'countTokens$S$I', function (line, ich) { +var tokenCount=0; +if (line != null ) { +var ichMax=line.length$(); +while (true){ +while (ich < ichMax && C$.isWhiteSpace$S$I(line, ich) )++ich; + +if (ich == ichMax) break; +++tokenCount; +do { +++ich; +} while (ich < ichMax && !C$.isWhiteSpace$S$I(line, ich) ); +} +}return tokenCount; +}, 1); + +Clazz_newMeth(C$, 'parseTokenNext$S$IA', function (str, next) { +var cch=str.length$(); +return (next[0] < 0 || next[0] >= cch ? null : C$.parseTokenChecked$S$I$IA(str, cch, next)); +}, 1); + +Clazz_newMeth(C$, 'parseTokenRange$S$I$IA', function (str, ichMax, next) { +var cch=str.length$(); +if (ichMax > cch) ichMax=cch; +return (next[0] < 0 || next[0] >= ichMax ? null : C$.parseTokenChecked$S$I$IA(str, ichMax, next)); +}, 1); + +Clazz_newMeth(C$, 'parseTokenChecked$S$I$IA', function (str, ichMax, next) { +var ich=next[0]; +while (ich < ichMax && C$.isWhiteSpace$S$I(str, ich) )++ich; + +var ichNonWhite=ich; +while (ich < ichMax && !C$.isWhiteSpace$S$I(str, ich) )++ich; + +next[0]=ich; +return (ichNonWhite == ich ? null : str.substring$I$I(ichNonWhite, ich)); +}, 1); + +Clazz_newMeth(C$, 'parseTrimmedChecked$S$I$I', function (str, ich, ichMax) { +while (ich < ichMax && C$.isWhiteSpace$S$I(str, ich) )++ich; + +var ichLast=ichMax - 1; +while (ichLast >= ich && C$.isWhiteSpace$S$I(str, ichLast) )--ichLast; + +return (ichLast < ich ? "" : str.substring$I$I(ich, ichLast + 1)); +}, 1); + +Clazz_newMeth(C$, 'parseIntRange$S$I$IA', function (str, ichMax, next) { +var cch=str.length$(); +if (ichMax > cch) ichMax=cch; +return (next[0] < 0 || next[0] >= ichMax ? -2147483648 : C$.parseIntChecked$S$I$IA(str, ichMax, next)); +}, 1); + +Clazz_newMeth(C$, 'parseFloatArrayData$SA$FA', function (tokens, data) { +C$.parseFloatArrayDataN$SA$FA$I(tokens, data, data.length); +}, 1); + +Clazz_newMeth(C$, 'parseFloatArrayDataN$SA$FA$I', function (tokens, data, nData) { +for (var i=nData; --i >= 0; ) data[i]=(i >= tokens.length ? NaN : C$.parseFloat$S(tokens[i])); + +}, 1); + +Clazz_newMeth(C$, 'split$S$S', function (text, run) { +if (text.length$() == 0) return Clazz_array(String, [0]); +var n=1; +var i=text.indexOf$S(run); +var lines; +var runLen=run.length$(); +if (i < 0 || runLen == 0 ) { +lines=Clazz_array(String, [1]); +lines[0]=text; +return lines; +}var len=text.length$() - runLen; +for (; i >= 0 && i < len ; n++) i=text.indexOf$S$I(run, i + runLen); + +lines=Clazz_array(String, [n]); +i=0; +var ipt=0; +var pt=0; +for (; (ipt=text.indexOf$S$I(run, i)) >= 0 && pt + 1 < n ; ) { +lines[pt++]=text.substring$I$I(i, ipt); +i=ipt + runLen; +} +if (text.indexOf$S$I(run, len) != len) len+=runLen; +lines[pt]=text.substring$I$I(i, len); +return lines; +}, 1); + +Clazz_newMeth(C$, 'getQuotedStringAt$S$I', function (line, ipt0) { +var next=Clazz_array(Integer.TYPE, -1, [ipt0]); +return C$.getQuotedStringNext$S$IA(line, next); +}, 1); + +Clazz_newMeth(C$, 'getQuotedStringNext$S$IA', function (line, next) { +var i=next[0]; +if (i < 0 || (i=line.indexOf$S$I("\"", i)) < 0 ) return ""; +var pt=i + 1; +var len=line.length$(); +while (++i < len && line.charAt$I(i) != "\"" )if (line.charAt$I(i) == "\\") i++; + +next[0]=i + 1; +return line.substring$I$I(pt, i); +}, 1); + +Clazz_newMeth(C$, 'getQuotedOrUnquotedAttribute$S$S', function (line, key) { +if (line == null || key == null ) return null; +var pt=line.toLowerCase$().indexOf$S(key.toLowerCase$() + "="); +if (pt < 0 || (pt=pt + key.length$() + 1 ) >= line.length$() ) return ""; +var c=line.charAt$I(pt); +switch (c.$c()) { +case 39: +case 34: +pt++; +break; +default: +c=" "; +line += " "; +} +var pt1=line.indexOf$I$I(c, pt); +return (pt1 < 0 ? null : line.substring$I$I(pt, pt1)); +}, 1); + +Clazz_newMeth(C$, 'getCSVString$S$IA', function (line, next) { +var i=next[1]; +if (i < 0 || (i=line.indexOf$S$I("\"", i)) < 0 ) return null; +var pt=next[0]=i; +var len=line.length$(); +var escaped=false; +var haveEscape=false; +while (++i < len && (line.charAt$I(i) != "\"" || (escaped=(i + 1 < len && line.charAt$I(i + 1) == "\"" )) ) )if (escaped) { +escaped=false; +haveEscape=true; +i++; +} +if (i >= len) { +next[1]=-1; +return null; +}next[1]=i + 1; +var s=line.substring$I$I(pt + 1, i); +return (haveEscape ? C$.rep$S$S$S(C$.rep$S$S$S(s, "\"\"", "\u0000"), "\u0000", "\"") : s); +}, 1); + +Clazz_newMeth(C$, 'isOneOf$S$S', function (key, semiList) { +if (semiList.length$() == 0) return false; +if (semiList.charAt$I(0) != ";") semiList=";" + semiList + ";" ; +return key.indexOf$S(";") < 0 && semiList.indexOf$S(';' + key + ';' ) >= 0 ; +}, 1); + +Clazz_newMeth(C$, 'getQuotedAttribute$S$S', function (info, name) { +var i=info.indexOf$S(name + "="); +return (i < 0 ? null : C$.getQuotedStringAt$S$I(info, i)); +}, 1); + +Clazz_newMeth(C$, 'approx$F$F', function (f, n) { +return Math.round(f * n) / n; +}, 1); + +Clazz_newMeth(C$, 'rep$S$S$S', function (str, strFrom, strTo) { +if (str == null || strFrom.length$() == 0 || str.indexOf$S(strFrom) < 0 ) return str; +var isOnce=(strTo.indexOf$S(strFrom) >= 0); +do { +str=str.replace$CharSequence$CharSequence(strFrom, strTo); +} while (!isOnce && str.indexOf$S(strFrom) >= 0 ); +return str; +}, 1); + +Clazz_newMeth(C$, 'formatF$F$I$I$Z$Z', function (value, width, precision, alignLeft, zeroPad) { +return C$.formatS$S$I$I$Z$Z($I$(1).formatDecimal$F$I(value, precision), width, 0, alignLeft, zeroPad); +}, 1); + +Clazz_newMeth(C$, 'formatD$D$I$I$Z$Z$Z', function (value, width, precision, alignLeft, zeroPad, allowOverflow) { +return C$.formatS$S$I$I$Z$Z($I$(1).formatDecimal$F$I(value, -1 - precision), width, 0, alignLeft, zeroPad); +}, 1); + +Clazz_newMeth(C$, 'formatS$S$I$I$Z$Z', function (value, width, precision, alignLeft, zeroPad) { +if (value == null ) return ""; +var len=value.length$(); +if (precision != 2147483647 && precision > 0 && precision < len ) value=value.substring$I$I(0, precision); + else if (precision < 0 && len + precision >= 0 ) value=value.substring$I(len + precision + 1 ); +var padLength=width - value.length$(); +if (padLength <= 0) return value; +var isNeg=(zeroPad && !alignLeft && value.charAt$I(0) == "-" ); +var padChar=(zeroPad ? "0" : " "); +var padChar0=(isNeg ? "-" : padChar); +var sb=Clazz_new_($I$(2)); +if (alignLeft) sb.append$S(value); +sb.appendC$C(padChar0); +for (var i=padLength; --i > 0; ) sb.appendC$C(padChar); + +if (!alignLeft) sb.append$S(isNeg ? padChar + value.substring$I(1) : value); +return sb.toString(); +}, 1); + +Clazz_newMeth(C$, 'replaceWithCharacter$S$S$C', function (str, strFrom, chTo) { +if (str == null ) return null; +for (var i=strFrom.length$(); --i >= 0; ) str=str.replace$C$C(strFrom.charAt$I(i), chTo); + +return str; +}, 1); + +Clazz_newMeth(C$, 'replaceAllCharacters$S$S$S', function (str, strFrom, strTo) { +for (var i=strFrom.length$(); --i >= 0; ) { +var chFrom=strFrom.substring$I$I(i, i + 1); +str=C$.rep$S$S$S(str, chFrom, strTo); +} +return str; +}, 1); + +Clazz_newMeth(C$, 'trim$S$S', function (str, chars) { +if (str == null || str.length$() == 0 ) return str; +if (chars.length$() == 0) return str.trim$(); +var len=str.length$(); +var k=0; +while (k < len && chars.indexOf$I(str.charAt$I(k)) >= 0 )k++; + +var m=str.length$() - 1; +while (m > k && chars.indexOf$I(str.charAt$I(m)) >= 0 )m--; + +return str.substring$I$I(k, m + 1); +}, 1); + +Clazz_newMeth(C$, 'trimQuotes$S', function (value) { +return (value != null && value.length$() > 1 && value.startsWith$S("\"") && value.endsWith$S("\"") ? value.substring$I$I(1, value.length$() - 1) : value); +}, 1); + +Clazz_newMeth(C$, 'isNonStringPrimitive$O', function (info) { +return Clazz_instanceOf(info, "java.lang.Number") || Clazz_instanceOf(info, "java.lang.Boolean") ; +}, 1); + +Clazz_newMeth(C$, 'toJSON$S$O', function (infoType, info) { +if (info == null ) return C$.packageJSON$S$S(infoType, null); +if (C$.isNonStringPrimitive$O(info)) return C$.packageJSON$S$S(infoType, info.toString()); +var s=null; +var sb=null; +while (true){ +if (Clazz_instanceOf(info, "java.lang.String")) { +s=info; +{ +if (typeof s == "undefined") s = "null" +} +if (s.indexOf$S("{\"") != 0) { +s=C$.esc$S(s); +}break; +}if (Clazz_instanceOf(info, "javajs.api.JSONEncodable")) { +if ((s=(info).toJSON$()) == null ) s="null"; +break; +}sb=Clazz_new_($I$(2)); +if (Clazz_instanceOf(info, "java.util.Map")) { +sb.append$S("{ "); +var sep=""; +for (var key, $key = (info).keySet$().iterator$(); $key.hasNext$()&&((key=($key.next$())),1);) { +sb.append$S(sep).append$S(C$.packageJSON$S$S(key, C$.toJSON$S$O(null, (info).get$O(key)))); +sep=","; +} +sb.append$S(" }"); +break; +}if (Clazz_instanceOf(info, "javajs.util.Lst")) { +sb.append$S("[ "); +var n=(info).size$(); +for (var i=0; i < n; i++) { +if (i > 0) sb.appendC$C(","); +sb.append$S(C$.toJSON$S$O(null, (info).get$I(i))); +} +sb.append$S(" ]"); +break; +}if (Clazz_instanceOf(info, "javajs.util.M34")) { +var len=(Clazz_instanceOf(info, "javajs.util.M4") ? 4 : 3); +var x=Clazz_array(Float.TYPE, [len]); +var m=info; +sb.appendC$C("["); +for (var i=0; i < len; i++) { +if (i > 0) sb.appendC$C(","); +m.getRow$I$FA(i, x); +sb.append$S(C$.toJSON$S$O(null, x)); +} +sb.appendC$C("]"); +break; +}s=C$.nonArrayString$O(info); +if (s == null ) { +sb.append$S("["); +var n=$I$(3).getLength$O(info); +for (var i=0; i < n; i++) { +if (i > 0) sb.appendC$C(","); +sb.append$S(C$.toJSON$S$O(null, $I$(4).get$O$I(info, i))); +} +sb.append$S("]"); +break; +}info=info.toString(); +} +return C$.packageJSON$S$S(infoType, (s == null ? sb.toString() : s)); +}, 1); + +Clazz_newMeth(C$, 'nonArrayString$O', function (x) { +{ +return (x.constructor == Array || x.BYTES_PER_ELEMENT ? null : x.toString()); +} +}, 1); + +Clazz_newMeth(C$, 'byteArrayToJSON$BA', function (data) { +var sb=Clazz_new_($I$(2)); +sb.append$S("["); +var n=data.length; +for (var i=0; i < n; i++) { +if (i > 0) sb.appendC$C(","); +sb.appendI$I(data[i] & 255); +} +sb.append$S("]"); +return sb.toString(); +}, 1); + +Clazz_newMeth(C$, 'packageJSON$S$S', function (infoType, info) { +return (infoType == null ? info : "\"" + infoType + "\": " + info ); +}, 1); + +Clazz_newMeth(C$, 'escapeUrl$S', function (url) { +url=C$.rep$S$S$S(url, "\n", ""); +url=C$.rep$S$S$S(url, "%", "%25"); +url=C$.rep$S$S$S(url, "#", "%23"); +url=C$.rep$S$S$S(url, "[", "%5B"); +url=C$.rep$S$S$S(url, "\\", "%5C"); +url=C$.rep$S$S$S(url, "]", "%5D"); +url=C$.rep$S$S$S(url, " ", "%20"); +return url; +}, 1); + +Clazz_newMeth(C$, 'esc$S', function (str) { +if (str == null || str.length$() == 0 ) return "\"\""; +var haveEscape=false; +var i=0; +for (; i < "\\\\\tt\rr\nn\"\"".length$(); i+=2) if (str.indexOf$I("\\\\\tt\rr\nn\"\"".charAt$I(i)) >= 0) { +haveEscape=true; +break; +} +if (haveEscape) while (i < "\\\\\tt\rr\nn\"\"".length$()){ +var pt=-1; +var ch="\\\\\tt\rr\nn\"\"".charAt$I(i++); +var ch2="\\\\\tt\rr\nn\"\"".charAt$I(i++); +var sb=Clazz_new_($I$(2)); +var pt0=0; +while ((pt=str.indexOf$I$I(ch, pt + 1)) >= 0){ +sb.append$S(str.substring$I$I(pt0, pt)).appendC$C("\\").appendC$C(ch2); +pt0=pt + 1; +} +sb.append$S(str.substring$I$I(pt0, str.length$())); +str=sb.toString(); +} +return "\"" + C$.escUnicode$S(str) + "\"" ; +}, 1); + +Clazz_newMeth(C$, 'escUnicode$S', function (str) { +for (var i=str.length$(); --i >= 0; ) if ((str.charCodeAt$I(i)) > 127 ) { +var s="0000" + Integer.toHexString$I(str.charAt$I(i).$c()); +str=str.substring$I$I(0, i) + "\\u" + s.substring$I(s.length$() - 4) + str.substring$I(i + 1) ; +} +return str; +}, 1); + +Clazz_newMeth(C$, 'escF$F', function (f) { +var sf="" + new Float(f).toString(); +{ +if (sf.indexOf(".") < 0 && sf.indexOf("e") < 0 && sf.indexOf("N") < 0 && sf.indexOf("n") < 0) sf += ".0"; +} +return sf; +}, 1); + +Clazz_newMeth(C$, 'join$SA$C$I', function (s, c, i0) { +if (s.length < i0) return null; +var sb=Clazz_new_($I$(2)); +sb.append$S(s[i0++]); +for (var i=i0; i < s.length; i++) sb.appendC$C(c).append$S(s[i]); + +return sb.toString(); +}, 1); + +Clazz_newMeth(C$, 'isLike$S$S', function (a, b) { +var areEqual=a.equals$O(b); +if (areEqual) return true; +var isStart=b.startsWith$S("*"); +var isEnd=b.endsWith$S("*"); +return (!isStart && !isEnd ) ? areEqual : isStart && isEnd ? b.length$() == 1 || a.contains$CharSequence(b.substring$I$I(1, b.length$() - 1)) : isStart ? a.endsWith$S(b.substring$I(1)) : a.startsWith$S(b.substring$I$I(0, b.length$() - 1)); +}, 1); + +Clazz_newMeth(C$, 'getMapValueNoCase$java_util_Map$S', function (h, key) { +if ("this".equals$O(key)) return h; +var val=h.get$O(key); +if (val == null ) for (var e, $e = h.entrySet$().iterator$(); $e.hasNext$()&&((e=($e.next$())),1);) if (e.getKey$().equalsIgnoreCase$S(key)) return e.getValue$(); + +return val; +}, 1); + +Clazz_newMeth(C$, 'clean$S', function (s) { +return C$.rep$S$S$S(C$.replaceAllCharacters$S$S$S(s, " \t\n\r", " "), " ", " ").trim$(); +}, 1); + +Clazz_newMeth(C$, 'fdup$S$I$I', function (f, pt, n) { +var ch; +var count=0; +for (var i=pt; --i >= 1; ) { +if (C$.isDigit$C(ch=f.charAt$I(i))) continue; +switch (ch.$c()) { +case 46: +if (count++ != 0) return f; +continue; +case 45: +if (i != 1 && f.charAt$I(i - 1) != "." ) return f; +continue; +default: +return f; +} +} +var s=f.substring$I$I(0, pt + 1); +var sb=Clazz_new_($I$(2)); +for (var i=0; i < n; i++) sb.append$S(s); + +sb.append$S(f.substring$I(pt + 1)); +return sb.toString(); +}, 1); + +Clazz_newMeth(C$, 'formatString$S$S$S$F$D$Z', function (strFormat, key, strT, floatT, doubleT, doOne) { +if (strFormat == null ) return null; +if ("".equals$O(strFormat)) return ""; +var len=key.length$(); +if (strFormat.indexOf$S("%") < 0 || len == 0 || strFormat.indexOf$S(key) < 0 ) return strFormat; +var strLabel=""; +var ich; +var ichPercent; +var ichKey; +for (ich=0; (ichPercent=strFormat.indexOf$I$I("%", ich)) >= 0 && (ichKey=strFormat.indexOf$S$I(key, ichPercent + 1)) >= 0 ; ) { +if (ich != ichPercent) strLabel += strFormat.substring$I$I(ich, ichPercent); +ich=ichPercent + 1; +if (ichKey > ichPercent + 6) { +strLabel += "%"; +continue; +}try { +var alignLeft=false; +if (strFormat.charAt$I(ich) == "-") { +alignLeft=true; +++ich; +}var zeroPad=false; +if (strFormat.charAt$I(ich) == "0") { +zeroPad=true; +++ich; +}var ch; +var width=0; +while ((ch=strFormat.charAt$I(ich)) >= "0" && (ch <= "9") ){ +width=(10 * width) + (ch.$c() - 48); +++ich; +} +var precision=2147483647; +var isExponential=false; +if (strFormat.charAt$I(ich) == ".") { +++ich; +if ((ch=strFormat.charAt$I(ich)) == "-") { +isExponential=(strT == null ); +++ich; +}if ((ch=strFormat.charAt$I(ich)) >= "0" && ch <= "9" ) { +precision=ch.$c() - 48; +++ich; +}if (isExponential) precision=-precision; +}var st=strFormat.substring$I$I(ich, ich + len); +if (!st.equals$O(key)) { +ich=ichPercent + 1; +strLabel += "%"; +continue; +}ich+=len; +if (!Float.isNaN$F(floatT)) strLabel += C$.formatF$F$I$I$Z$Z(floatT, width, precision, alignLeft, zeroPad); + else if (strT != null ) strLabel += C$.formatS$S$I$I$Z$Z(strT, width, precision, alignLeft, zeroPad); + else if (!Double.isNaN$D(doubleT)) strLabel += C$.formatD$D$I$I$Z$Z$Z(doubleT, width, precision - 1, alignLeft, zeroPad, true); +if (doOne) break; +} catch (ioobe) { +if (Clazz_exceptionOf(ioobe,"IndexOutOfBoundsException")){ +ich=ichPercent; +break; +} else { +throw ioobe; +} +} +} +strLabel += strFormat.substring$I(ich); +return strLabel; +}, 1); + +Clazz_newMeth(C$, 'formatStringS$S$S$S', function (strFormat, key, strT) { +return C$.formatString$S$S$S$F$D$Z(strFormat, key, strT, NaN, NaN, false); +}, 1); + +Clazz_newMeth(C$, 'formatStringF$S$S$F', function (strFormat, key, floatT) { +return C$.formatString$S$S$S$F$D$Z(strFormat, key, null, floatT, NaN, false); +}, 1); + +Clazz_newMeth(C$, 'formatStringI$S$S$I', function (strFormat, key, intT) { +return C$.formatString$S$S$S$F$D$Z(strFormat, key, "" + intT, NaN, NaN, false); +}, 1); + +Clazz_newMeth(C$, 'sprintf$S$S$OA', function (strFormat, list, values) { +if (values == null ) return strFormat; +var n=list.length$(); +if (n == values.length) try { +for (var o=0; o < n; o++) { +if (values[o] == null ) continue; +switch ((list.charCodeAt$I(o))) { +case 115: +strFormat=C$.formatString$S$S$S$F$D$Z(strFormat, "s", values[o], NaN, NaN, true); +break; +case 102: +strFormat=C$.formatString$S$S$S$F$D$Z(strFormat, "f", null, (values[o]).floatValue$(), NaN, true); +break; +case 105: +strFormat=C$.formatString$S$S$S$F$D$Z(strFormat, "d", "" + values[o], NaN, NaN, true); +strFormat=C$.formatString$S$S$S$F$D$Z(strFormat, "i", "" + values[o], NaN, NaN, true); +break; +case 100: +strFormat=C$.formatString$S$S$S$F$D$Z(strFormat, "e", null, NaN, (values[o]).doubleValue$(), true); +break; +case 112: +var pVal=values[o]; +strFormat=C$.formatString$S$S$S$F$D$Z(strFormat, "p", null, pVal.x, NaN, true); +strFormat=C$.formatString$S$S$S$F$D$Z(strFormat, "p", null, pVal.y, NaN, true); +strFormat=C$.formatString$S$S$S$F$D$Z(strFormat, "p", null, pVal.z, NaN, true); +break; +case 113: +var qVal=values[o]; +strFormat=C$.formatString$S$S$S$F$D$Z(strFormat, "q", null, qVal.x, NaN, true); +strFormat=C$.formatString$S$S$S$F$D$Z(strFormat, "q", null, qVal.y, NaN, true); +strFormat=C$.formatString$S$S$S$F$D$Z(strFormat, "q", null, qVal.z, NaN, true); +strFormat=C$.formatString$S$S$S$F$D$Z(strFormat, "q", null, qVal.w, NaN, true); +break; +case 83: +var sVal=values[o]; +for (var i=0; i < sVal.length; i++) strFormat=C$.formatString$S$S$S$F$D$Z(strFormat, "s", sVal[i], NaN, NaN, true); + +break; +case 70: +var fVal=values[o]; +for (var i=0; i < fVal.length; i++) strFormat=C$.formatString$S$S$S$F$D$Z(strFormat, "f", null, fVal[i], NaN, true); + +break; +case 73: +var iVal=values[o]; +for (var i=0; i < iVal.length; i++) strFormat=C$.formatString$S$S$S$F$D$Z(strFormat, "d", "" + iVal[i], NaN, NaN, true); + +for (var i=0; i < iVal.length; i++) strFormat=C$.formatString$S$S$S$F$D$Z(strFormat, "i", "" + iVal[i], NaN, NaN, true); + +break; +case 68: +var dVal=values[o]; +for (var i=0; i < dVal.length; i++) strFormat=C$.formatString$S$S$S$F$D$Z(strFormat, "e", null, NaN, dVal[i], true); + +} +} +return C$.rep$S$S$S(strFormat, "%%", "%"); +} catch (e) { +if (Clazz_exceptionOf(e,"Exception")){ +} else { +throw e; +} +} +System.out.println$S("TextFormat.sprintf error " + list + " " + strFormat ); +return C$.rep$S$S$S(strFormat, "%", "?"); +}, 1); + +Clazz_newMeth(C$, 'formatCheck$S', function (strFormat) { +if (strFormat == null || strFormat.indexOf$I("p") < 0 && strFormat.indexOf$I("q") < 0 ) return strFormat; +strFormat=C$.rep$S$S$S(strFormat, "%%", "\u0001"); +strFormat=C$.rep$S$S$S(strFormat, "%p", "%6.2p"); +strFormat=C$.rep$S$S$S(strFormat, "%q", "%6.2q"); +var format=C$.split$S$S(strFormat, "%"); +var sb=Clazz_new_($I$(2)); +sb.append$S(format[0]); +for (var i=1; i < format.length; i++) { +var f="%" + format[i]; +var pt; +if (f.length$() >= 3) { +if ((pt=f.indexOf$I("p")) >= 0) f=C$.fdup$S$I$I(f, pt, 3); +if ((pt=f.indexOf$I("q")) >= 0) f=C$.fdup$S$I$I(f, pt, 4); +}sb.append$S(f); +} +return sb.toString().replace$C$C("\u0001", "%"); +}, 1); + +Clazz_newMeth(C$, 'leftJustify$javajs_util_SB$S$S', function (s, s1, s2) { +s.append$S(s2); +var n=s1.length$() - s2.length$(); +if (n > 0) s.append$S(s1.substring$I$I(0, n)); +}, 1); + +Clazz_newMeth(C$, 'rightJustify$javajs_util_SB$S$S', function (s, s1, s2) { +var n=s1.length$() - s2.length$(); +if (n > 0) s.append$S(s1.substring$I$I(0, n)); +s.append$S(s2); +}, 1); + +Clazz_newMeth(C$, 'safeTruncate$F$I', function (f, n) { +if (f > -0.001 && f < 0.001 ) f=0; +return (new Float(f).toString() + " ").substring$I$I(0, n); +}, 1); + +Clazz_newMeth(C$, 'isWild$S', function (s) { +return s != null && (s.indexOf$S("*") >= 0 || s.indexOf$S("?") >= 0 ) ; +}, 1); + +Clazz_newMeth(C$, 'isMatch$S$S$Z$Z', function (search, match, checkStar, allowInitialStar) { +if (search.equals$O(match)) return true; +var mLen=match.length$(); +if (mLen == 0) return false; +var isStar0=(checkStar && allowInitialStar ? match.charAt$I(0) == "*" : false); +if (mLen == 1 && isStar0 ) return true; +var isStar1=(checkStar && match.endsWith$S("*") ); +var haveQ=(match.indexOf$I("?") >= 0); +if (!haveQ) { +if (isStar0) return (isStar1 ? (mLen < 3 || search.indexOf$S(match.substring$I$I(1, mLen - 1)) >= 0 ) : search.endsWith$S(match.substring$I(1))); + else if (isStar1) return search.startsWith$S(match.substring$I$I(0, mLen - 1)); +}var sLen=search.length$(); +var qqqq="????"; +var nq=4; +while (nq < sLen){ +qqqq += qqqq; +nq+=4; +} +if (checkStar) { +if (isStar0) { +match=qqqq + match.substring$I(1); +mLen+=nq - 1; +}if (isStar1) { +match=match.substring$I$I(0, mLen - 1) + qqqq; +mLen+=nq - 1; +}}if (mLen < sLen) return false; +var ich=0; +while (mLen > sLen){ +if (allowInitialStar && match.charAt$I(ich) == "?" ) { +++ich; +} else if (match.charAt$I(ich + mLen - 1) != "?") { +return false; +}--mLen; +} +for (var i=sLen; --i >= 0; ) { +var chm=match.charAt$I(ich + i); +if (chm == "?") continue; +var chs=search.charAt$I(i); +if (chm != chs && (chm != "\u0001" || chs != "?" ) ) return false; +} +return true; +}, 1); + +Clazz_newMeth(C$, 'replaceQuotedStrings$S$javajs_util_Lst$javajs_util_Lst', function (s, list, newList) { +var n=list.size$(); +for (var i=0; i < n; i++) { +var name=list.get$I(i); +var newName=newList.get$I(i); +if (!newName.equals$O(name)) s=C$.rep$S$S$S(s, "\"" + name + "\"" , "\"" + newName + "\"" ); +} +return s; +}, 1); + +Clazz_newMeth(C$, 'replaceStrings$S$javajs_util_Lst$javajs_util_Lst', function (s, list, newList) { +var n=list.size$(); +for (var i=0; i < n; i++) { +var name=list.get$I(i); +var newName=newList.get$I(i); +if (!newName.equals$O(name)) s=C$.rep$S$S$S(s, name, newName); +} +return s; +}, 1); + +Clazz_newMeth(C$, 'isDigit$C', function (ch) { +var c=ch.$c(); +return (48 <= c && c <= 57 ); +}, 1); + +Clazz_newMeth(C$, 'isUpperCase$C', function (ch) { +var c=ch.$c(); +return (65 <= c && c <= 90 ); +}, 1); + +Clazz_newMeth(C$, 'isLowerCase$C', function (ch) { +var c=ch.$c(); +return (97 <= c && c <= 122 ); +}, 1); + +Clazz_newMeth(C$, 'isLetter$C', function (ch) { +var c=ch.$c(); +return (65 <= c && c <= 90 || 97 <= c && c <= 122 ); +}, 1); + +Clazz_newMeth(C$, 'isLetterOrDigit$C', function (ch) { +var c=ch.$c(); +return (65 <= c && c <= 90 || 97 <= c && c <= 122 || 48 <= c && c <= 57 ); +}, 1); + +Clazz_newMeth(C$, 'isWhitespace$C', function (ch) { +var c=ch.$c(); +return (c >= 28 && c <= 32 || c >= 9 && c <= 13 ); +}, 1); + +Clazz_newMeth(C$, 'fixPtFloats$javajs_util_T3$F', function (pt, f) { +pt.x=Math.round(pt.x * f) / f; +pt.y=Math.round(pt.y * f) / f; +pt.z=Math.round(pt.z * f) / f; +}, 1); + +Clazz_newMeth(C$, 'fixDouble$D$D', function (d, f) { +return Math.round(d * f) / f; +}, 1); + +Clazz_newMeth(C$, 'parseFloatFraction$S', function (s) { +var pt=s.indexOf$S("/"); +return (pt < 0 ? C$.parseFloat$S(s) : C$.parseFloat$S(s.substring$I$I(0, pt)) / C$.parseFloat$S(s.substring$I(pt + 1))); +}, 1); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:55 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javajs.util"),I$=[]; +var C$=Clazz_newClass(P$, "SB"); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.sb=null; +this.s=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.$init$.apply(this); +{ +this.s = ""; +} +}, 1); + +Clazz_newMeth(C$, 'newN$I', function (n) { +{ +return new javajs.util.SB(); +} +}, 1); + +Clazz_newMeth(C$, 'newS$S', function (s) { +{ +var sb = new javajs.util.SB(); +sb.s = s; +return sb; +} +}, 1); + +Clazz_newMeth(C$, 'append$S', function (s) { +{ +this.s += s +} +return this; +}); + +Clazz_newMeth(C$, 'appendC$C', function (c) { +{ +this.s += c; +} +return this; +}); + +Clazz_newMeth(C$, 'appendI$I', function (i) { +{ +this.s += i +} +return this; +}); + +Clazz_newMeth(C$, 'appendB$Z', function (b) { +{ +this.s += b +} +return this; +}); + +Clazz_newMeth(C$, 'appendF$F', function (f) { +{ +var sf = "" + f; +if (sf.indexOf(".") < 0 && sf.indexOf("e") < 0) sf += ".0" ; +this.s += sf; +} +return this; +}); + +Clazz_newMeth(C$, 'appendD$D', function (d) { +{ +var sf = "" + d; +if (sf.indexOf(".") < 0 && sf.indexOf("e") < 0) sf += ".0" ; +this.s += sf; +} +return this; +}); + +Clazz_newMeth(C$, 'appendSB$javajs_util_SB', function (buf) { +{ +this.s += buf.s; +} +return this; +}); + +Clazz_newMeth(C$, 'appendO$O', function (data) { +if (data != null ) { +{ +this.s += data.toString(); +} +}return this; +}); + +Clazz_newMeth(C$, 'appendCB$CA$I$I', function (cb, off, len) { +{ +this.s += cb.slice(off,off+len).join(""); +} +}); + +Clazz_newMeth(C$, 'toString', function () { +{ +return this.s; +} +}); + +Clazz_newMeth(C$, 'length$', function () { +{ +return this.s.length; +} +}); + +Clazz_newMeth(C$, 'indexOf$S', function (s) { +{ +return this.s.indexOf(s); +} +}); + +Clazz_newMeth(C$, 'charAt$I', function (i) { +{ +return this.s.charAt(i); +} +}); + +Clazz_newMeth(C$, 'charCodeAt$I', function (i) { +{ +return this.s.charCodeAt(i); +} +}); + +Clazz_newMeth(C$, 'setLength$I', function (n) { +{ +this.s = this.s.substring(0, n); +} +}); + +Clazz_newMeth(C$, 'lastIndexOf$S', function (s) { +{ +return this.s.lastIndexOf(s); +} +}); + +Clazz_newMeth(C$, 'indexOf2$S$I', function (s, i) { +{ +return this.s.indexOf(s, i); +} +}); + +Clazz_newMeth(C$, 'substring$I', function (i) { +{ +return this.s.substring(i); +} +}); + +Clazz_newMeth(C$, 'substring2$I$I', function (i, j) { +{ +return this.s.substring(i, j); +} +}); + +Clazz_newMeth(C$, 'toBytes$I$I', function (off, len) { +if (len == 0) return Clazz_array(Byte.TYPE, [0]); +var cs; +{ +cs = "UTF-8"; +} +return (len > 0 ? this.substring2$I$I(off, off + len) : off == 0 ? this.toString() : this.substring2$I$I(off, this.length$() - off)).getBytes$java_nio_charset_Charset(cs); +}); + +Clazz_newMeth(C$, 'replace$I$I$S', function (start, end, str) { +{ +this.s = this.s.substring(0, start) + str + this.s.substring(end); +} +}); + +Clazz_newMeth(C$, 'insert$I$S', function (offset, str) { +this.replace$I$I$S(offset, offset, str); +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:55 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.net.ssl"),I$=[]; +var C$=Clazz_newInterface(P$, "HttpsURLConnection"); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:56 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing"),I$=[[0,'Boolean','javax.swing.ArrayTable','javax.swing.event.SwingPropertyChangeSupport','java.beans.PropertyChangeListener']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "AbstractAction", null, null, ['javax.swing.Action', 'Cloneable']); +C$.RECONFIGURE_ON_NULL=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.enabled=false; +this.arrayTable=null; +this.changeSupport=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.enabled=true; +}, 1); + +Clazz_newMeth(C$, 'shouldReconfigure$java_beans_PropertyChangeEvent', function (e) { +if (e.getPropertyName$() == null ) { +C$.RECONFIGURE_ON_NULL=new Boolean(false); +}return false; +}, 1); + +Clazz_newMeth(C$, 'setEnabledFromAction$javax_swing_JComponent$javax_swing_Action', function (c, a) { +c.setEnabled$Z((a != null ) ? a.isEnabled$() : true); +}, 1); + +Clazz_newMeth(C$, 'setToolTipTextFromAction$javax_swing_JComponent$javax_swing_Action', function (c, a) { +c.setToolTipText$S(a != null ? a.getValue$S("ShortDescription") : null); +}, 1); + +Clazz_newMeth(C$, 'hasSelectedKey$javax_swing_Action', function (a) { +return (a != null && a.getValue$S("SwingSelectedKey") != null ); +}, 1); + +Clazz_newMeth(C$, 'isSelected$javax_swing_Action', function (a) { +return $I$(1).TRUE.equals$O(a.getValue$S("SwingSelectedKey")); +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'c$$S', function (name) { +C$.$init$.apply(this); +this.putValue$S$O("Name", name); +}, 1); + +Clazz_newMeth(C$, 'c$$S$javax_swing_Icon', function (name, icon) { +C$.c$$S.apply(this, [name]); +this.putValue$S$O("SmallIcon", icon); +}, 1); + +Clazz_newMeth(C$, 'getValue$S', function (key) { +if (key == "enabled") { +return new Boolean(this.enabled); +}if (this.arrayTable == null ) { +return null; +}return this.arrayTable.get$O(key); +}); + +Clazz_newMeth(C$, 'putValue$S$O', function (key, newValue) { +var oldValue=null; +if (key == "enabled") { +if (newValue == null || !(Clazz_instanceOf(newValue, "java.lang.Boolean")) ) { +newValue=new Boolean(false); +}oldValue=new Boolean(this.enabled); +this.enabled=(newValue).booleanValue$(); +} else { +if (this.arrayTable == null ) { +this.arrayTable=Clazz_new_($I$(2)); +}if (this.arrayTable.containsKey$O(key)) oldValue=this.arrayTable.get$O(key); +if (newValue == null ) { +this.arrayTable.remove$O(key); +} else { +this.arrayTable.put$O$O(key, newValue); +}}this.firePropertyChange$S$O$O(key, oldValue, newValue); +}); + +Clazz_newMeth(C$, 'isEnabled$', function () { +return this.enabled; +}); + +Clazz_newMeth(C$, 'setEnabled$Z', function (newValue) { +var oldValue=this.enabled; +if (oldValue != newValue ) { +this.enabled=newValue; +this.firePropertyChange$S$O$O("enabled", $I$(1).valueOf$Z(oldValue), $I$(1).valueOf$Z(newValue)); +}}); + +Clazz_newMeth(C$, 'getKeys$', function () { +if (this.arrayTable == null ) { +return null; +}var keys=Clazz_array(java.lang.Object, [this.arrayTable.size$()]); +this.arrayTable.getKeys$OA(keys); +return keys; +}); + +Clazz_newMeth(C$, 'firePropertyChange$S$O$O', function (propertyName, oldValue, newValue) { +if (this.changeSupport == null || (oldValue != null && newValue != null && oldValue.equals$O(newValue) ) ) { +return; +}this.changeSupport.firePropertyChange$S$O$O(propertyName, oldValue, newValue); +}); + +Clazz_newMeth(C$, 'addPropertyChangeListener$java_beans_PropertyChangeListener', function (listener) { +if (this.changeSupport == null ) { +this.changeSupport=Clazz_new_($I$(3).c$$O,[this]); +}this.changeSupport.addPropertyChangeListener$java_beans_PropertyChangeListener(listener); +}); + +Clazz_newMeth(C$, 'removePropertyChangeListener$java_beans_PropertyChangeListener', function (listener) { +if (this.changeSupport == null ) { +return; +}this.changeSupport.removePropertyChangeListener$java_beans_PropertyChangeListener(listener); +}); + +Clazz_newMeth(C$, 'getPropertyChangeListeners$', function () { +if (this.changeSupport == null ) { +return Clazz_array($I$(4), [0]); +}return this.changeSupport.getPropertyChangeListeners$(); +}); + +Clazz_newMeth(C$, 'clone$', function () { +var newAction=Clazz_clone(this); +{ +if (this.arrayTable != null ) { +newAction.arrayTable=this.arrayTable.clone$(); +}}return newAction; +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:57 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing"),p$1={},I$=[[0,'javax.swing.AbstractAction','javax.swing.UIManager','java.awt.event.ActionListener',['javax.swing.AbstractButton','.ButtonActionPropertyChangeListener'],'javax.swing.SwingUtilities','javax.swing.OverlayLayout','javax.swing.event.ChangeListener','javax.swing.event.ChangeEvent','java.awt.event.ActionEvent','java.awt.event.ItemListener','java.awt.event.ItemEvent',['javax.swing.AbstractButton','.Handler']]],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "AbstractButton", function(){ +Clazz_newInstance(this, arguments,0,C$); +}, 'javax.swing.JComponent', ['java.awt.ItemSelectable', 'javax.swing.SwingConstants']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.model=null; +this.text=null; +this.margin=null; +this.defaultMargin=null; +this.defaultIcon=null; +this.pressedIcon=null; +this.disabledIcon=null; +this.selectedIcon=null; +this.disabledSelectedIcon=null; +this.rolloverIcon=null; +this.rolloverSelectedIcon=null; +this.paintBorder=false; +this.paintFocus=false; +this.rolloverEnabled=false; +this.contentAreaFilled=false; +this.verticalAlignment=0; +this.horizontalAlignment=0; +this.verticalTextPosition=0; +this.horizontalTextPosition=0; +this.iconTextGap=0; +this.mnemonic=0; +this.mnemonicIndex=0; +this.multiClickThreshhold=0; +this.borderPaintedSet=false; +this.rolloverEnabledSet=false; +this.iconTextGapSet=false; +this.contentAreaFilledSet=false; +this.setLayout=false; +this.defaultCapable=false; +this.handler=null; +this.changeListener=null; +this.actionListener=null; +this.itemListener=null; +this.changeEvent=null; +this.hideActionText=false; +this.action=null; +this.actionPropertyChangeListener=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.model=null; +this.text=""; +this.margin=null; +this.defaultMargin=null; +this.defaultIcon=null; +this.pressedIcon=null; +this.disabledIcon=null; +this.selectedIcon=null; +this.disabledSelectedIcon=null; +this.rolloverIcon=null; +this.rolloverSelectedIcon=null; +this.paintBorder=true; +this.paintFocus=true; +this.rolloverEnabled=false; +this.contentAreaFilled=true; +this.verticalAlignment=0; +this.horizontalAlignment=0; +this.verticalTextPosition=0; +this.horizontalTextPosition=11; +this.iconTextGap=4; +this.mnemonicIndex=-1; +this.multiClickThreshhold=0; +this.borderPaintedSet=false; +this.rolloverEnabledSet=false; +this.iconTextGapSet=false; +this.contentAreaFilledSet=false; +this.setLayout=false; +this.defaultCapable=true; +this.changeListener=null; +this.actionListener=null; +this.itemListener=null; +this.hideActionText=false; +}, 1); + +Clazz_newMeth(C$, 'setHideActionText$Z', function (hideActionText) { +if (hideActionText != this.hideActionText ) { +this.hideActionText=hideActionText; +if (this.getAction$() != null ) { +p$1.setTextFromAction$javax_swing_Action$Z.apply(this, [this.getAction$(), false]); +}this.firePropertyChange$S$Z$Z("hideActionText", !hideActionText, hideActionText); +}}); + +Clazz_newMeth(C$, 'getHideActionText$', function () { +return this.hideActionText; +}); + +Clazz_newMeth(C$, 'getText$', function () { +return this.text; +}); + +Clazz_newMeth(C$, 'setText$S', function (text) { +var oldValue=this.text; +this.text=text; +this.firePropertyChange$S$O$O("text", oldValue, text); +p$1.updateDisplayedMnemonicIndex$S$I.apply(this, [text, this.getMnemonic$()]); +if (text == null || oldValue == null || !text.equals$O(oldValue) ) { +if (this.秘isAWT$()) { +this.invalidateIfValid$(); +} else { +this.revalidate$(); +this.秘repaint$(); +}}}); + +Clazz_newMeth(C$, 'isSelected$', function () { +return this.model.isSelected$(); +}); + +Clazz_newMeth(C$, 'setSelected$Z', function (b) { +this.model.setSelected$Z(b); +}); + +Clazz_newMeth(C$, 'doClick$', function () { +this.doClick$I(68); +}); + +Clazz_newMeth(C$, 'doClick$I', function (pressTime) { +(this.ui).abstractButtonFocusHack$(); +this.model.setArmed$Z(true); +this.model.setPressed$Z(true); +this.model.setPressed$Z(false); +this.model.setArmed$Z(false); +}); + +Clazz_newMeth(C$, 'setMargin$java_awt_Insets', function (m) { +if (Clazz_instanceOf(m, "javax.swing.plaf.UIResource")) { +this.defaultMargin=m; +} else if (Clazz_instanceOf(this.margin, "javax.swing.plaf.UIResource")) { +this.defaultMargin=this.margin; +}if (m == null && this.defaultMargin != null ) { +m=this.defaultMargin; +}var old=this.margin; +this.margin=m; +this.firePropertyChange$S$O$O("margin", old, m); +if (old == null || !old.equals$O(m) ) { +this.revalidate$(); +this.秘repaint$(); +}}); + +Clazz_newMeth(C$, 'getMargin$', function () { +return (this.margin == null ) ? null : this.margin.clone$(); +}); + +Clazz_newMeth(C$, 'getIcon$', function () { +return this.defaultIcon; +}); + +Clazz_newMeth(C$, 'setIcon$javax_swing_Icon', function (defaultIcon) { +var oldValue=this.defaultIcon; +this.defaultIcon=defaultIcon; +if (defaultIcon !== oldValue && (Clazz_instanceOf(this.disabledIcon, "javax.swing.plaf.UIResource")) ) { +this.disabledIcon=null; +}this.firePropertyChange$S$O$O("icon", oldValue, defaultIcon); +if (defaultIcon !== oldValue ) { +if (defaultIcon == null || oldValue == null || defaultIcon.getIconWidth$() != oldValue.getIconWidth$() || defaultIcon.getIconHeight$() != oldValue.getIconHeight$() ) { +this.revalidate$(); +}this.秘repaint$(); +}}); + +Clazz_newMeth(C$, 'getPressedIcon$', function () { +return this.pressedIcon; +}); + +Clazz_newMeth(C$, 'setPressedIcon$javax_swing_Icon', function (pressedIcon) { +var oldValue=this.pressedIcon; +this.pressedIcon=pressedIcon; +this.firePropertyChange$S$O$O("pressedIcon", oldValue, pressedIcon); +if (pressedIcon !== oldValue ) { +if (this.getModel$().isPressed$()) { +this.秘repaint$(); +}}}); + +Clazz_newMeth(C$, 'getSelectedIcon$', function () { +return this.selectedIcon; +}); + +Clazz_newMeth(C$, 'setSelectedIcon$javax_swing_Icon', function (selectedIcon) { +var oldValue=this.selectedIcon; +this.selectedIcon=selectedIcon; +if (selectedIcon !== oldValue && Clazz_instanceOf(this.disabledSelectedIcon, "javax.swing.plaf.UIResource") ) { +this.disabledSelectedIcon=null; +}this.firePropertyChange$S$O$O("selectedIcon", oldValue, selectedIcon); +if (selectedIcon !== oldValue ) { +if (this.isSelected$()) { +this.秘repaint$(); +}}}); + +Clazz_newMeth(C$, 'getRolloverIcon$', function () { +return this.rolloverIcon; +}); + +Clazz_newMeth(C$, 'setRolloverIcon$javax_swing_Icon', function (rolloverIcon) { +var oldValue=this.rolloverIcon; +this.rolloverIcon=rolloverIcon; +this.firePropertyChange$S$O$O("rolloverIcon", oldValue, rolloverIcon); +this.setRolloverEnabled$Z(true); +if (rolloverIcon !== oldValue ) { +this.秘repaint$(); +}}); + +Clazz_newMeth(C$, 'getRolloverSelectedIcon$', function () { +return this.rolloverSelectedIcon; +}); + +Clazz_newMeth(C$, 'setRolloverSelectedIcon$javax_swing_Icon', function (rolloverSelectedIcon) { +var oldValue=this.rolloverSelectedIcon; +this.rolloverSelectedIcon=rolloverSelectedIcon; +this.firePropertyChange$S$O$O("rolloverSelectedIcon", oldValue, rolloverSelectedIcon); +this.setRolloverEnabled$Z(true); +if (rolloverSelectedIcon !== oldValue ) { +if (this.isSelected$()) { +this.秘repaint$(); +}}}); + +Clazz_newMeth(C$, 'getDisabledIcon$', function () { +if (this.disabledIcon == null ) { +this.disabledIcon=$I$(2).getLookAndFeel$().getDisabledIcon$javax_swing_JComponent$javax_swing_Icon(this, this.getIcon$()); +if (this.disabledIcon != null ) { +this.firePropertyChange$S$O$O("disabledIcon", null, this.disabledIcon); +}}return this.disabledIcon; +}); + +Clazz_newMeth(C$, 'setDisabledIcon$javax_swing_Icon', function (disabledIcon) { +var oldValue=this.disabledIcon; +this.disabledIcon=disabledIcon; +this.firePropertyChange$S$O$O("disabledIcon", oldValue, disabledIcon); +if (disabledIcon !== oldValue ) { +if (!this.isEnabled$()) { +this.秘repaint$(); +}}}); + +Clazz_newMeth(C$, 'getDisabledSelectedIcon$', function () { +if (this.disabledSelectedIcon == null ) { +if (this.selectedIcon != null ) { +this.disabledSelectedIcon=$I$(2).getLookAndFeel$().getDisabledSelectedIcon$javax_swing_JComponent$javax_swing_Icon(this, this.getSelectedIcon$()); +} else { +return this.getDisabledIcon$(); +}}return this.disabledSelectedIcon; +}); + +Clazz_newMeth(C$, 'setDisabledSelectedIcon$javax_swing_Icon', function (disabledSelectedIcon) { +var oldValue=this.disabledSelectedIcon; +this.disabledSelectedIcon=disabledSelectedIcon; +this.firePropertyChange$S$O$O("disabledSelectedIcon", oldValue, disabledSelectedIcon); +if (disabledSelectedIcon !== oldValue ) { +if (disabledSelectedIcon == null || oldValue == null || disabledSelectedIcon.getIconWidth$() != oldValue.getIconWidth$() || disabledSelectedIcon.getIconHeight$() != oldValue.getIconHeight$() ) { +this.revalidate$(); +}if (!this.isEnabled$() && this.isSelected$() ) { +this.秘repaint$(); +}}}); + +Clazz_newMeth(C$, 'getVerticalAlignment$', function () { +return this.verticalAlignment; +}); + +Clazz_newMeth(C$, 'setVerticalAlignment$I', function (alignment) { +if (alignment == this.verticalAlignment) return; +var oldValue=this.verticalAlignment; +this.verticalAlignment=this.checkVerticalKey$I$S(alignment, "verticalAlignment"); +this.firePropertyChange$S$I$I("verticalAlignment", oldValue, this.verticalAlignment); +this.秘repaint$(); +}); + +Clazz_newMeth(C$, 'getHorizontalAlignment$', function () { +return this.horizontalAlignment; +}); + +Clazz_newMeth(C$, 'setHorizontalAlignment$I', function (alignment) { +if (alignment == this.horizontalAlignment) return; +var oldValue=this.horizontalAlignment; +this.horizontalAlignment=this.checkHorizontalKey$I$S(alignment, "horizontalAlignment"); +this.firePropertyChange$S$I$I("horizontalAlignment", oldValue, this.horizontalAlignment); +this.秘repaint$(); +}); + +Clazz_newMeth(C$, 'getVerticalTextPosition$', function () { +return this.verticalTextPosition; +}); + +Clazz_newMeth(C$, 'setVerticalTextPosition$I', function (textPosition) { +if (textPosition == this.verticalTextPosition) return; +var oldValue=this.verticalTextPosition; +this.verticalTextPosition=this.checkVerticalKey$I$S(textPosition, "verticalTextPosition"); +this.firePropertyChange$S$I$I("verticalTextPosition", oldValue, this.verticalTextPosition); +this.revalidate$(); +this.秘repaint$(); +}); + +Clazz_newMeth(C$, 'getHorizontalTextPosition$', function () { +return this.horizontalTextPosition; +}); + +Clazz_newMeth(C$, 'setHorizontalTextPosition$I', function (textPosition) { +if (textPosition == this.horizontalTextPosition) return; +var oldValue=this.horizontalTextPosition; +this.horizontalTextPosition=this.checkHorizontalKey$I$S(textPosition, "horizontalTextPosition"); +this.firePropertyChange$S$I$I("horizontalTextPosition", oldValue, this.horizontalTextPosition); +this.revalidate$(); +this.秘repaint$(); +}); + +Clazz_newMeth(C$, 'getIconTextGap$', function () { +return this.iconTextGap; +}); + +Clazz_newMeth(C$, 'setIconTextGap$I', function (iconTextGap) { +var oldValue=this.iconTextGap; +this.iconTextGap=iconTextGap; +this.iconTextGapSet=true; +this.firePropertyChange$S$I$I("iconTextGap", oldValue, iconTextGap); +if (iconTextGap != oldValue) { +this.revalidate$(); +this.秘repaint$(); +}}); + +Clazz_newMeth(C$, 'checkHorizontalKey$I$S', function (key, exception) { +if ((key == 2) || (key == 0) || (key == 4) || (key == 10) || (key == 11) ) { +return key; +} else { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,[exception]); +}}); + +Clazz_newMeth(C$, 'checkVerticalKey$I$S', function (key, exception) { +if ((key == 1) || (key == 0) || (key == 3) ) { +return key; +} else { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,[exception]); +}}); + +Clazz_newMeth(C$, 'removeNotify$', function () { +C$.superclazz.prototype.removeNotify$.apply(this, []); +if (this.isRolloverEnabled$()) { +this.getModel$().setRollover$Z(false); +}}); + +Clazz_newMeth(C$, 'setActionCommand$S', function (actionCommand) { +this.getModel$().setActionCommand$S(actionCommand); +}); + +Clazz_newMeth(C$, 'getActionCommand$', function () { +var ac=this.getModel$().getActionCommand$(); +if (ac == null ) { +ac=this.getText$(); +}return ac; +}); + +Clazz_newMeth(C$, 'setAction$javax_swing_Action', function (a) { +var oldValue=this.getAction$(); +if (this.action == null || !this.action.equals$O(a) ) { +this.action=a; +if (oldValue != null ) { +this.removeActionListener$java_awt_event_ActionListener(oldValue); +oldValue.removePropertyChangeListener$java_beans_PropertyChangeListener(this.actionPropertyChangeListener); +this.actionPropertyChangeListener=null; +}this.configurePropertiesFromAction$javax_swing_Action(this.action); +if (this.action != null ) { +if (!p$1.isListener$Class$java_awt_event_ActionListener.apply(this, [Clazz_getClass($I$(3),['actionPerformed$java_awt_event_ActionEvent']), this.action])) { +this.addActionListener$java_awt_event_ActionListener(this.action); +}this.actionPropertyChangeListener=this.createActionPropertyChangeListener$javax_swing_Action(this.action); +this.action.addPropertyChangeListener$java_beans_PropertyChangeListener(this.actionPropertyChangeListener); +}this.firePropertyChange$S$O$O("action", oldValue, this.action); +}}); + +Clazz_newMeth(C$, 'isListener$Class$java_awt_event_ActionListener', function (c, a) { +var isListener=false; +var listeners=this.listenerList.getListenerList$(); +for (var i=listeners.length - 2; i >= 0; i-=2) { +if (listeners[i] === c && listeners[i + 1] === a ) { +isListener=true; +}} +return isListener; +}, p$1); + +Clazz_newMeth(C$, 'getAction$', function () { +return this.action; +}); + +Clazz_newMeth(C$, 'configurePropertiesFromAction$javax_swing_Action', function (a) { +p$1.setMnemonicFromAction$javax_swing_Action.apply(this, [a]); +p$1.setTextFromAction$javax_swing_Action$Z.apply(this, [a, false]); +$I$(1).setToolTipTextFromAction$javax_swing_JComponent$javax_swing_Action(this, a); +this.setIconFromAction$javax_swing_Action(a); +p$1.setActionCommandFromAction$javax_swing_Action.apply(this, [a]); +$I$(1).setEnabledFromAction$javax_swing_JComponent$javax_swing_Action(this, a); +if ($I$(1).hasSelectedKey$javax_swing_Action(a) && this.shouldUpdateSelectedStateFromAction$() ) { +p$1.setSelectedFromAction$javax_swing_Action.apply(this, [a]); +}p$1.setDisplayedMnemonicIndexFromAction$javax_swing_Action$Z.apply(this, [a, false]); +}); + +Clazz_newMeth(C$, 'clientPropertyChanged$O$O$O', function (key, oldValue, newValue) { +if (key === "hideActionText" ) { +var current=(Clazz_instanceOf(newValue, "java.lang.Boolean")) ? (newValue).booleanValue$() : false; +if (this.getHideActionText$() != current ) { +this.setHideActionText$Z(current); +}}}); + +Clazz_newMeth(C$, 'shouldUpdateSelectedStateFromAction$', function () { +return false; +}); + +Clazz_newMeth(C$, 'actionPropertyChanged$javax_swing_Action$S', function (action, propertyName) { +if (propertyName == "Name") { +p$1.setTextFromAction$javax_swing_Action$Z.apply(this, [action, true]); +} else if (propertyName == "enabled") { +$I$(1).setEnabledFromAction$javax_swing_JComponent$javax_swing_Action(this, action); +} else if (propertyName == "ShortDescription") { +$I$(1).setToolTipTextFromAction$javax_swing_JComponent$javax_swing_Action(this, action); +} else if (propertyName == "SmallIcon") { +this.smallIconChanged$javax_swing_Action(action); +} else if (propertyName == "MnemonicKey") { +p$1.setMnemonicFromAction$javax_swing_Action.apply(this, [action]); +} else if (propertyName == "ActionCommandKey") { +p$1.setActionCommandFromAction$javax_swing_Action.apply(this, [action]); +} else if (propertyName == "SwingSelectedKey" && $I$(1).hasSelectedKey$javax_swing_Action(action) && this.shouldUpdateSelectedStateFromAction$() ) { +p$1.setSelectedFromAction$javax_swing_Action.apply(this, [action]); +} else if (propertyName == "SwingDisplayedMnemonicIndexKey") { +p$1.setDisplayedMnemonicIndexFromAction$javax_swing_Action$Z.apply(this, [action, true]); +} else if (propertyName == "SwingLargeIconKey") { +this.largeIconChanged$javax_swing_Action(action); +}}); + +Clazz_newMeth(C$, 'setDisplayedMnemonicIndexFromAction$javax_swing_Action$Z', function (a, fromPropertyChange) { +var iValue=(a == null ) ? null : a.getValue$S("SwingDisplayedMnemonicIndexKey"); +if (fromPropertyChange || iValue != null ) { +var value; +if (iValue == null ) { +value=-1; +} else { +value=(iValue).intValue$(); +var text=this.getText$(); +if (text == null || value >= text.length$() ) { +value=-1; +}}this.setDisplayedMnemonicIndex$I(value); +}}, p$1); + +Clazz_newMeth(C$, 'setMnemonicFromAction$javax_swing_Action', function (a) { +var n=(a == null ) ? null : a.getValue$S("MnemonicKey"); +this.setMnemonic$I((n == null ) ? "\u0000".$c() : (n).intValue$()); +}, p$1); + +Clazz_newMeth(C$, 'setTextFromAction$javax_swing_Action$Z', function (a, propertyChange) { +var hideText=this.getHideActionText$(); +if (!propertyChange) { +this.setText$S((a != null && !hideText ) ? a.getValue$S("Name") : null); +} else if (!hideText) { +this.setText$S(a.getValue$S("Name")); +}}, p$1); + +Clazz_newMeth(C$, 'setIconFromAction$javax_swing_Action', function (a) { +var icon=null; +if (a != null ) { +icon=a.getValue$S("SwingLargeIconKey"); +if (icon == null ) { +icon=a.getValue$S("SmallIcon"); +}}this.setIcon$javax_swing_Icon(icon); +}); + +Clazz_newMeth(C$, 'smallIconChanged$javax_swing_Action', function (a) { +if (a.getValue$S("SwingLargeIconKey") == null ) { +this.setIconFromAction$javax_swing_Action(a); +}}); + +Clazz_newMeth(C$, 'largeIconChanged$javax_swing_Action', function (a) { +this.setIconFromAction$javax_swing_Action(a); +}); + +Clazz_newMeth(C$, 'setActionCommandFromAction$javax_swing_Action', function (a) { +this.setActionCommand$S((a != null ) ? a.getValue$S("ActionCommandKey") : null); +}, p$1); + +Clazz_newMeth(C$, 'setSelectedFromAction$javax_swing_Action', function (a) { +var selected=false; +if (a != null ) { +selected=$I$(1).isSelected$javax_swing_Action(a); +}if (selected != this.isSelected$() ) { +this.setSelected$Z(selected); +if (!selected && this.isSelected$() ) { +if (Clazz_instanceOf(this.getModel$(), "javax.swing.DefaultButtonModel")) { +var group=(this.getModel$()).getGroup$(); +if (group != null ) { +group.clearSelection$(); +}}}}}, p$1); + +Clazz_newMeth(C$, 'createActionPropertyChangeListener$javax_swing_Action', function (a) { +return this.createActionPropertyChangeListener0$javax_swing_Action(a); +}); + +Clazz_newMeth(C$, 'createActionPropertyChangeListener0$javax_swing_Action', function (a) { +return Clazz_new_($I$(4).c$$javax_swing_AbstractButton$javax_swing_Action,[this, a]); +}); + +Clazz_newMeth(C$, 'isBorderPainted$', function () { +return this.paintBorder && this.秘paintsBorder$() ; +}); + +Clazz_newMeth(C$, 'setBorderPainted$Z', function (b) { +var oldValue=this.paintBorder; +this.paintBorder=b; +this.borderPaintedSet=true; +this.firePropertyChange$S$Z$Z("borderPainted", oldValue, this.paintBorder); +if (b != oldValue ) { +this.revalidate$(); +this.秘repaint$(); +}}); + +Clazz_newMeth(C$, 'paintBorder$java_awt_Graphics', function (g) { +if (this.isBorderPainted$()) { +C$.superclazz.prototype.paintBorder$java_awt_Graphics.apply(this, [g]); +}}); + +Clazz_newMeth(C$, 'isFocusPainted$', function () { +return this.paintFocus; +}); + +Clazz_newMeth(C$, 'setFocusPainted$Z', function (b) { +var oldValue=this.paintFocus; +this.paintFocus=b; +this.firePropertyChange$S$Z$Z("focusPainted", oldValue, this.paintFocus); +if (b != oldValue && this.isFocusOwner$() ) { +this.revalidate$(); +this.秘repaint$(); +}}); + +Clazz_newMeth(C$, 'isContentAreaFilled$', function () { +return this.contentAreaFilled; +}); + +Clazz_newMeth(C$, 'setContentAreaFilled$Z', function (b) { +var oldValue=this.contentAreaFilled; +this.contentAreaFilled=b; +this.contentAreaFilledSet=true; +this.firePropertyChange$S$Z$Z("contentAreaFilled", oldValue, this.contentAreaFilled); +if (b != oldValue ) { +this.秘repaint$(); +}}); + +Clazz_newMeth(C$, 'isRolloverEnabled$', function () { +return this.rolloverEnabled; +}); + +Clazz_newMeth(C$, 'setRolloverEnabled$Z', function (b) { +var oldValue=this.rolloverEnabled; +this.rolloverEnabled=b; +this.rolloverEnabledSet=true; +this.firePropertyChange$S$Z$Z("rolloverEnabled", oldValue, this.rolloverEnabled); +if (b != oldValue ) { +this.秘repaint$(); +}}); + +Clazz_newMeth(C$, 'getMnemonic$', function () { +return this.mnemonic; +}); + +Clazz_newMeth(C$, 'setMnemonic$I', function (mnemonic) { +this.model.setMnemonic$I(mnemonic); +p$1.updateMnemonicProperties.apply(this, []); +}); + +Clazz_newMeth(C$, 'setMnemonic$C', function (mnemonic) { +var vk=mnemonic.$c(); +if (vk >= 97 && vk <= 122 ) vk-=(32); +this.setMnemonic$I(vk); +}); + +Clazz_newMeth(C$, 'setDisplayedMnemonicIndex$I', function (index) { +var oldValue=this.mnemonicIndex; +if (index == -1) { +this.mnemonicIndex=-1; +} else { +var text=this.getText$(); +var textLength=(text == null ) ? 0 : text.length$(); +if (index < -1 || index >= textLength ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["index == " + index]); +}}this.mnemonicIndex=index; +this.firePropertyChange$S$I$I("displayedMnemonicIndex", oldValue, index); +if (index != oldValue) { +this.revalidate$(); +this.秘repaint$(); +}}); + +Clazz_newMeth(C$, 'getDisplayedMnemonicIndex$', function () { +return this.mnemonicIndex; +}); + +Clazz_newMeth(C$, 'updateDisplayedMnemonicIndex$S$I', function (text, mnemonic) { +this.setDisplayedMnemonicIndex$I($I$(5).findDisplayedMnemonicIndex$S$I(text, mnemonic)); +}, p$1); + +Clazz_newMeth(C$, 'updateMnemonicProperties', function () { +var newMnemonic=this.model.getMnemonic$(); +if (this.mnemonic != newMnemonic) { +var oldValue=this.mnemonic; +this.mnemonic=newMnemonic; +this.firePropertyChange$S$I$I("mnemonic", oldValue, this.mnemonic); +p$1.updateDisplayedMnemonicIndex$S$I.apply(this, [this.getText$(), this.mnemonic]); +this.revalidate$(); +this.秘repaint$(); +}}, p$1); + +Clazz_newMeth(C$, 'setMultiClickThreshhold$J', function (threshhold) { +if (threshhold < 0) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["threshhold must be >= 0"]); +}this.multiClickThreshhold=threshhold; +}); + +Clazz_newMeth(C$, 'getMultiClickThreshhold$', function () { +return this.multiClickThreshhold; +}); + +Clazz_newMeth(C$, 'getModel$', function () { +return this.model; +}); + +Clazz_newMeth(C$, 'setModel$javax_swing_ButtonModel', function (newModel) { +var oldModel=this.getModel$(); +if (oldModel != null ) { +oldModel.removeChangeListener$javax_swing_event_ChangeListener(this.changeListener); +oldModel.removeActionListener$java_awt_event_ActionListener(this.actionListener); +oldModel.removeItemListener$java_awt_event_ItemListener(this.itemListener); +this.changeListener=null; +this.actionListener=null; +this.itemListener=null; +}this.model=newModel; +if (newModel != null ) { +var isAWT=this.秘isAWT$(); +this.changeListener=this.createChangeListener$(); +this.actionListener=this.createActionListener$(); +this.itemListener=this.createItemListener$(); +newModel.addChangeListener$javax_swing_event_ChangeListener(this.changeListener); +newModel.addActionListener$java_awt_event_ActionListener(this.actionListener); +newModel.addItemListener$java_awt_event_ItemListener(this.itemListener); +p$1.updateMnemonicProperties.apply(this, []); +C$.superclazz.prototype.setEnabled$Z.apply(this, [newModel.isEnabled$()]); +} else { +this.mnemonic="\u0000".$c(); +}p$1.updateDisplayedMnemonicIndex$S$I.apply(this, [this.getText$(), this.mnemonic]); +this.firePropertyChange$S$O$O("model", oldModel, newModel); +if (newModel !== oldModel ) { +this.revalidate$(); +this.秘repaint$(); +}}); + +Clazz_newMeth(C$, 'getUI$', function () { +return this.ui; +}); + +Clazz_newMeth(C$, 'setUI$javax_swing_plaf_ButtonUI', function (ui) { +C$.superclazz.prototype.setUI$javax_swing_plaf_ComponentUI.apply(this, [ui]); +if (Clazz_instanceOf(this.disabledIcon, "javax.swing.plaf.UIResource")) { +this.setDisabledIcon$javax_swing_Icon(null); +}if (Clazz_instanceOf(this.disabledSelectedIcon, "javax.swing.plaf.UIResource")) { +this.setDisabledSelectedIcon$javax_swing_Icon(null); +}}); + +Clazz_newMeth(C$, 'addImpl$java_awt_Component$O$I', function (comp, constraints, index) { +if (!this.setLayout) { +this.setLayout$java_awt_LayoutManager(Clazz_new_($I$(6).c$$java_awt_Container,[this])); +}this.addImplCont$java_awt_Component$O$I(comp, constraints, index); +}); + +Clazz_newMeth(C$, 'setLayout$java_awt_LayoutManager', function (mgr) { +this.setLayout=true; +C$.superclazz.prototype.setLayout$java_awt_LayoutManager.apply(this, [mgr]); +}); + +Clazz_newMeth(C$, 'addChangeListener$javax_swing_event_ChangeListener', function (l) { +this.listenerList.add$Class$TT(Clazz_getClass($I$(7),['stateChanged$javax_swing_event_ChangeEvent']), l); +}); + +Clazz_newMeth(C$, 'removeChangeListener$javax_swing_event_ChangeListener', function (l) { +this.listenerList.remove$Class$TT(Clazz_getClass($I$(7),['stateChanged$javax_swing_event_ChangeEvent']), l); +}); + +Clazz_newMeth(C$, 'getChangeListeners$', function () { +return (this.listenerList.getListeners$Class(Clazz_getClass($I$(7),['stateChanged$javax_swing_event_ChangeEvent']))); +}); + +Clazz_newMeth(C$, 'fireStateChanged$', function () { +var listeners=this.listenerList.getListenerList$(); +for (var i=listeners.length - 2; i >= 0; i-=2) { +if (listeners[i] === Clazz_getClass($I$(7),['stateChanged$javax_swing_event_ChangeEvent']) ) { +if (this.changeEvent == null ) this.changeEvent=Clazz_new_($I$(8).c$$O,[this]); +(listeners[i + 1]).stateChanged$(this.changeEvent); +}} +}); + +Clazz_newMeth(C$, 'addActionListener$java_awt_event_ActionListener', function (l) { +this.listenerList.add$Class$TT(Clazz_getClass($I$(3),['actionPerformed$java_awt_event_ActionEvent']), l); +}); + +Clazz_newMeth(C$, 'removeActionListener$java_awt_event_ActionListener', function (l) { +if ((l != null ) && (this.getAction$() === l ) ) { +this.setAction$javax_swing_Action(null); +} else { +this.listenerList.remove$Class$TT(Clazz_getClass($I$(3),['actionPerformed$java_awt_event_ActionEvent']), l); +}}); + +Clazz_newMeth(C$, 'getActionListeners$', function () { +return (this.listenerList.getListeners$Class(Clazz_getClass($I$(3),['actionPerformed$java_awt_event_ActionEvent']))); +}); + +Clazz_newMeth(C$, 'createChangeListener$', function () { +return p$1.getHandler.apply(this, []); +}); + +Clazz_newMeth(C$, 'fireActionPerformed$java_awt_event_ActionEvent', function (event) { +var listeners=this.listenerList.getListenerList$(); +var e=null; +for (var i=listeners.length - 2; i >= 0; i-=2) { +if (listeners[i] === Clazz_getClass($I$(3),['actionPerformed$java_awt_event_ActionEvent']) ) { +if (e == null ) { +var actionCommand=event.getActionCommand$(); +if (actionCommand == null ) { +actionCommand=this.getActionCommand$(); +}e=Clazz_new_($I$(9).c$$O$I$S$J$I,[this, 1001, actionCommand, event.getWhen$(), event.getModifiers$()]); +}(listeners[i + 1]).actionPerformed$(e); +}} +}); + +Clazz_newMeth(C$, 'fireItemStateChanged$java_awt_event_ItemEvent', function (event) { +var listeners=this.listenerList.getListenerList$(); +var e=null; +for (var i=listeners.length - 2; i >= 0; i-=2) { +if (listeners[i] === Clazz_getClass($I$(10),['itemStateChanged$java_awt_event_ItemEvent']) ) { +if (e == null ) { +e=Clazz_new_($I$(11).c$$java_awt_ItemSelectable$I$O$I,[this, 701, this, event.getStateChange$()]); +}(listeners[i + 1]).itemStateChanged$(e); +}} +}); + +Clazz_newMeth(C$, 'createActionListener$', function () { +return p$1.getHandler.apply(this, []); +}); + +Clazz_newMeth(C$, 'createItemListener$', function () { +return p$1.getHandler.apply(this, []); +}); + +Clazz_newMeth(C$, 'setEnabled$Z', function (b) { +if (!b && this.model.isRollover$() ) { +this.model.setRollover$Z(false); +}C$.superclazz.prototype.setEnabled$Z.apply(this, [b]); +this.model.setEnabled$Z(b); +}); + +Clazz_newMeth(C$, 'getLabel$', function () { +return this.getText$(); +}); + +Clazz_newMeth(C$, 'setLabel$S', function (label) { +this.setText$S(label); +}); + +Clazz_newMeth(C$, 'addItemListener$java_awt_event_ItemListener', function (l) { +this.listenerList.add$Class$TT(Clazz_getClass($I$(10),['itemStateChanged$java_awt_event_ItemEvent']), l); +}); + +Clazz_newMeth(C$, 'removeItemListener$java_awt_event_ItemListener', function (l) { +this.listenerList.remove$Class$TT(Clazz_getClass($I$(10),['itemStateChanged$java_awt_event_ItemEvent']), l); +}); + +Clazz_newMeth(C$, 'getItemListeners$', function () { +return this.listenerList.getListeners$Class(Clazz_getClass($I$(10),['itemStateChanged$java_awt_event_ItemEvent'])); +}); + +Clazz_newMeth(C$, 'getSelectedObjects$', function () { +if (this.isSelected$() == false ) { +return null; +}var selectedObjects=Clazz_array(java.lang.Object, [1]); +selectedObjects[0]=this.getText$(); +return selectedObjects; +}); + +Clazz_newMeth(C$, 'init$S$javax_swing_Icon', function (text, icon) { +if (text != null ) { +this.setText$S(text); +}if (icon != null ) { +this.setIcon$javax_swing_Icon(icon); +}this.updateUI$(); +this.setAlignmentX$F(0.0); +this.setAlignmentY$F(0.5); +}); + +Clazz_newMeth(C$, ['imageUpdate$java_awt_Image$I$I$I$I$I','imageUpdate$'], function (img, infoflags, x, y, w, h) { +var iconDisplayed=this.getIcon$(); +if (iconDisplayed == null ) { +return false; +}if (!this.model.isEnabled$()) { +if (this.model.isSelected$()) { +iconDisplayed=this.getDisabledSelectedIcon$(); +} else { +iconDisplayed=this.getDisabledIcon$(); +}} else if (this.model.isPressed$() && this.model.isArmed$() ) { +iconDisplayed=this.getPressedIcon$(); +} else if (this.isRolloverEnabled$() && this.model.isRollover$() ) { +if (this.model.isSelected$()) { +iconDisplayed=this.getRolloverSelectedIcon$(); +} else { +iconDisplayed=this.getRolloverIcon$(); +}} else if (this.model.isSelected$()) { +iconDisplayed=this.getSelectedIcon$(); +}if (!$I$(5).doesIconReferenceImage$javax_swing_Icon$java_awt_Image(iconDisplayed, img)) { +return false; +}return C$.superclazz.prototype.imageUpdate$java_awt_Image$I$I$I$I$I.apply(this, [img, infoflags, x, y, w, h]); +}); + +Clazz_newMeth(C$, 'setUIProperty$S$O', function (propertyName, value) { +if (propertyName == "borderPainted") { +if (!this.borderPaintedSet) { +this.setBorderPainted$Z((value).booleanValue$()); +this.borderPaintedSet=false; +}} else if (propertyName == "rolloverEnabled") { +if (!this.rolloverEnabledSet) { +this.setRolloverEnabled$Z((value).booleanValue$()); +this.rolloverEnabledSet=false; +}} else if (propertyName == "iconTextGap") { +if (!this.iconTextGapSet) { +this.setIconTextGap$I((value).intValue$()); +this.iconTextGapSet=false; +}} else if (propertyName == "contentAreaFilled") { +if (!this.contentAreaFilledSet) { +this.setContentAreaFilled$Z((value).booleanValue$()); +this.contentAreaFilledSet=false; +}} else { +C$.superclazz.prototype.setUIProperty$S$O.apply(this, [propertyName, value]); +}}); + +Clazz_newMeth(C$, 'paramString$', function () { +var defaultIconString=((this.defaultIcon != null ) && (this.defaultIcon !== this ) ? this.defaultIcon.toString() : ""); +var pressedIconString=((this.pressedIcon != null ) && (this.pressedIcon !== this ) ? this.pressedIcon.toString() : ""); +var disabledIconString=((this.disabledIcon != null ) && (this.disabledIcon !== this ) ? this.disabledIcon.toString() : ""); +var selectedIconString=((this.selectedIcon != null ) && (this.selectedIcon !== this ) ? this.selectedIcon.toString() : ""); +var disabledSelectedIconString=((this.disabledSelectedIcon != null ) && (this.disabledSelectedIcon !== this ) ? this.disabledSelectedIcon.toString() : ""); +var rolloverIconString=((this.rolloverIcon != null ) && (this.rolloverIcon !== this ) ? this.rolloverIcon.toString() : ""); +var rolloverSelectedIconString=((this.rolloverSelectedIcon != null ) && (this.rolloverSelectedIcon !== this ) ? this.rolloverSelectedIcon.toString() : ""); +var paintBorderString=(this.paintBorder ? "true" : "false"); +var paintFocusString=(this.paintFocus ? "true" : "false"); +var rolloverEnabledString=(this.rolloverEnabled ? "true" : "false"); +return C$.superclazz.prototype.paramString$.apply(this, []) + ",defaultIcon=" + defaultIconString + ",disabledIcon=" + disabledIconString + ",disabledSelectedIcon=" + disabledSelectedIconString + ",margin=" + this.margin + ",paintBorder=" + paintBorderString + ",paintFocus=" + paintFocusString + ",pressedIcon=" + pressedIconString + ",rolloverEnabled=" + rolloverEnabledString + ",rolloverIcon=" + rolloverIconString + ",rolloverSelectedIcon=" + rolloverSelectedIconString + ",selectedIcon=" + selectedIconString + ",text=" + this.text ; +}); + +Clazz_newMeth(C$, 'getHandler', function () { +if (this.handler == null ) { +this.handler=Clazz_new_($I$(12), [this, null]); +}return this.handler; +}, p$1); +; +(function(){var C$=Clazz_newClass(P$.AbstractButton, "ButtonActionPropertyChangeListener", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'javax.swing.ActionPropertyChangeListener'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$javax_swing_AbstractButton$javax_swing_Action', function (b, a) { +C$.superclazz.c$$TT$javax_swing_Action.apply(this, [b, a]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, ['actionPropertyChanged$javax_swing_AbstractButton$javax_swing_Action$java_beans_PropertyChangeEvent','actionPropertyChanged$TT$javax_swing_Action$java_beans_PropertyChangeEvent'], function (button, action, e) { +if ($I$(1).shouldReconfigure$java_beans_PropertyChangeEvent(e)) { +button.configurePropertiesFromAction$javax_swing_Action(action); +} else { +button.actionPropertyChanged$javax_swing_Action$S(action, e.getPropertyName$()); +}}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.AbstractButton, "ButtonChangeListener", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, null, 'javax.swing.event.ChangeListener'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, ['stateChanged$javax_swing_event_ChangeEvent','stateChanged$'], function (e) { +p$1.getHandler.apply(this.this$0, []).stateChanged$javax_swing_event_ChangeEvent(e); +}); +})() +; +(function(){var C$=Clazz_newClass(P$.AbstractButton, "Handler", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, null, ['java.awt.event.ActionListener', 'javax.swing.event.ChangeListener', 'java.awt.event.ItemListener']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, ['stateChanged$javax_swing_event_ChangeEvent','stateChanged$'], function (e) { +p$1.updateMnemonicProperties.apply(this.this$0, []); +if (this.b$['java.awt.Component'].isEnabled$.apply(this.b$['java.awt.Component'], []) != this.this$0.model.isEnabled$() ) { +this.this$0.setEnabled$Z.apply(this.this$0, [this.this$0.model.isEnabled$()]); +}this.this$0.fireStateChanged$.apply(this.this$0, []); +this.b$['java.awt.JSComponent'].秘repaint$.apply(this.b$['java.awt.JSComponent'], []); +}); + +Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (event) { +this.this$0.fireActionPerformed$java_awt_event_ActionEvent.apply(this.this$0, [event]); +}); + +Clazz_newMeth(C$, ['itemStateChanged$java_awt_event_ItemEvent','itemStateChanged$'], function (event) { +this.this$0.fireItemStateChanged$java_awt_event_ItemEvent.apply(this.this$0, [event]); +if (this.this$0.shouldUpdateSelectedStateFromAction$.apply(this.this$0, [])) { +var action=this.this$0.getAction$.apply(this.this$0, []); +if (action != null && $I$(1).hasSelectedKey$javax_swing_Action(action) ) { +var selected=this.this$0.isSelected$.apply(this.this$0, []); +var isActionSelected=$I$(1).isSelected$javax_swing_Action(action); +if (isActionSelected != selected ) { +action.putValue$S$O("SwingSelectedKey", new Boolean(selected)); +}}}}); + +Clazz_newMeth(C$); +})() + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 13:00:45 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing"),I$=[[0,'javax.swing.event.EventListenerList','javax.swing.event.ListDataListener','javax.swing.event.ListDataEvent']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "AbstractListModel", null, null, 'javax.swing.ListModel'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.listenerList=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.listenerList=Clazz_new_($I$(1)); +}, 1); + +Clazz_newMeth(C$, 'addListDataListener$javax_swing_event_ListDataListener', function (l) { +this.listenerList.add$Class$TT(Clazz_getClass($I$(2),['contentsChanged$javax_swing_event_ListDataEvent','intervalAdded$javax_swing_event_ListDataEvent','intervalRemoved$javax_swing_event_ListDataEvent']), l); +}); + +Clazz_newMeth(C$, 'removeListDataListener$javax_swing_event_ListDataListener', function (l) { +this.listenerList.remove$Class$TT(Clazz_getClass($I$(2),['contentsChanged$javax_swing_event_ListDataEvent','intervalAdded$javax_swing_event_ListDataEvent','intervalRemoved$javax_swing_event_ListDataEvent']), l); +}); + +Clazz_newMeth(C$, 'getListDataListeners$', function () { +return this.listenerList.getListeners$Class(Clazz_getClass($I$(2),['contentsChanged$javax_swing_event_ListDataEvent','intervalAdded$javax_swing_event_ListDataEvent','intervalRemoved$javax_swing_event_ListDataEvent'])); +}); + +Clazz_newMeth(C$, 'fireContentsChanged$O$I$I', function (source, index0, index1) { +var listeners=this.listenerList.getListenerList$(); +var e=null; +for (var i=listeners.length - 2; i >= 0; i-=2) { +if (listeners[i] === Clazz_getClass($I$(2),['contentsChanged$javax_swing_event_ListDataEvent','intervalAdded$javax_swing_event_ListDataEvent','intervalRemoved$javax_swing_event_ListDataEvent']) ) { +if (e == null ) { +e=Clazz_new_($I$(3).c$$O$I$I$I,[source, 0, index0, index1]); +}(listeners[i + 1]).contentsChanged$javax_swing_event_ListDataEvent(e); +}} +}); + +Clazz_newMeth(C$, 'fireIntervalAdded$O$I$I', function (source, index0, index1) { +var listeners=this.listenerList.getListenerList$(); +var e=null; +for (var i=listeners.length - 2; i >= 0; i-=2) { +if (listeners[i] === Clazz_getClass($I$(2),['contentsChanged$javax_swing_event_ListDataEvent','intervalAdded$javax_swing_event_ListDataEvent','intervalRemoved$javax_swing_event_ListDataEvent']) ) { +if (e == null ) { +e=Clazz_new_($I$(3).c$$O$I$I$I,[source, 1, index0, index1]); +}(listeners[i + 1]).intervalAdded$javax_swing_event_ListDataEvent(e); +}} +}); + +Clazz_newMeth(C$, 'fireIntervalRemoved$O$I$I', function (source, index0, index1) { +var listeners=this.listenerList.getListenerList$(); +var e=null; +for (var i=listeners.length - 2; i >= 0; i-=2) { +if (listeners[i] === Clazz_getClass($I$(2),['contentsChanged$javax_swing_event_ListDataEvent','intervalAdded$javax_swing_event_ListDataEvent','intervalRemoved$javax_swing_event_ListDataEvent']) ) { +if (e == null ) { +e=Clazz_new_($I$(3).c$$O$I$I$I,[source, 2, index0, index1]); +}(listeners[i + 1]).intervalRemoved$javax_swing_event_ListDataEvent(e); +}} +}); + +Clazz_newMeth(C$, 'getListeners$Class', function (listenerType) { +return this.listenerList.getListeners$Class(listenerType); +}); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:57 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing"),I$=[]; +var C$=Clazz_newInterface(P$, "Action", null, null, 'java.awt.event.ActionListener'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:57 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing"),I$=[[0,'javax.swing.ArrayTable','java.util.HashMap']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "ActionMap"); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.arrayTable=null; +this.parent=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'setParent$javax_swing_ActionMap', function (map) { +this.parent=map; +}); + +Clazz_newMeth(C$, 'getParent$', function () { +return this.parent; +}); + +Clazz_newMeth(C$, 'put$O$javax_swing_Action', function (key, action) { +if (key == null ) { +return; +}if (action == null ) { +this.remove$O(key); +} else { +if (this.arrayTable == null ) { +this.arrayTable=Clazz_new_($I$(1)); +}this.arrayTable.put$O$O(key, action); +}}); + +Clazz_newMeth(C$, 'get$O', function (key) { +var value=(this.arrayTable == null ) ? null : this.arrayTable.get$O(key); +if (value == null ) { +var parent=this.getParent$(); +if (parent != null ) { +return parent.get$O(key); +}}return value; +}); + +Clazz_newMeth(C$, 'remove$O', function (key) { +if (this.arrayTable != null ) { +this.arrayTable.remove$O(key); +}}); + +Clazz_newMeth(C$, 'clear$', function () { +if (this.arrayTable != null ) { +this.arrayTable.clear$(); +}}); + +Clazz_newMeth(C$, 'keys$', function () { +if (this.arrayTable == null ) { +return null; +}return this.arrayTable.getKeys$OA(null); +}); + +Clazz_newMeth(C$, 'size$', function () { +if (this.arrayTable == null ) { +return 0; +}return this.arrayTable.size$(); +}); + +Clazz_newMeth(C$, 'allKeys$', function () { +var count=this.size$(); +var parent=this.getParent$(); +if (count == 0) { +if (parent != null ) { +return parent.allKeys$(); +}return this.keys$(); +}if (parent == null ) { +return this.keys$(); +}var keys=this.keys$(); +var pKeys=parent.allKeys$(); +if (pKeys == null ) { +return keys; +}if (keys == null ) { +return pKeys; +}var keyMap=Clazz_new_($I$(2)); +var counter; +for (counter=keys.length - 1; counter >= 0; counter--) { +keyMap.put$TK$TV(keys[counter], keys[counter]); +} +for (counter=pKeys.length - 1; counter >= 0; counter--) { +keyMap.put$TK$TV(pKeys[counter], pKeys[counter]); +} +return keyMap.keySet$().toArray$(); +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:57 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing"),I$=[[0,'javax.swing.event.EventListenerList','javax.swing.event.AncestorListener','javax.swing.event.AncestorEvent']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "AncestorNotifier", null, null, ['java.awt.event.ComponentListener', 'java.beans.PropertyChangeListener']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.firstInvisibleAncestor=null; +this.listenerList=null; +this.root=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.listenerList=Clazz_new_($I$(1)); +}, 1); + +Clazz_newMeth(C$, 'c$$javax_swing_JComponent', function (root) { +C$.$init$.apply(this); +this.root=root; +this.addListeners$java_awt_Component$Z(root, true); +}, 1); + +Clazz_newMeth(C$, 'addAncestorListener$javax_swing_event_AncestorListener', function (l) { +this.listenerList.add$Class$TT(Clazz_getClass($I$(2),['ancestorAdded$javax_swing_event_AncestorEvent','ancestorMoved$javax_swing_event_AncestorEvent','ancestorRemoved$javax_swing_event_AncestorEvent']), l); +}); + +Clazz_newMeth(C$, 'removeAncestorListener$javax_swing_event_AncestorListener', function (l) { +this.listenerList.remove$Class$TT(Clazz_getClass($I$(2),['ancestorAdded$javax_swing_event_AncestorEvent','ancestorMoved$javax_swing_event_AncestorEvent','ancestorRemoved$javax_swing_event_AncestorEvent']), l); +}); + +Clazz_newMeth(C$, 'getAncestorListeners$', function () { +return this.listenerList.getListeners$Class(Clazz_getClass($I$(2),['ancestorAdded$javax_swing_event_AncestorEvent','ancestorMoved$javax_swing_event_AncestorEvent','ancestorRemoved$javax_swing_event_AncestorEvent'])); +}); + +Clazz_newMeth(C$, 'fireAncestorAdded$javax_swing_JComponent$I$java_awt_Container$java_awt_Container', function (source, id, ancestor, ancestorParent) { +var listeners=this.listenerList.getListenerList$(); +for (var i=listeners.length - 2; i >= 0; i-=2) { +if (listeners[i] === Clazz_getClass($I$(2),['ancestorAdded$javax_swing_event_AncestorEvent','ancestorMoved$javax_swing_event_AncestorEvent','ancestorRemoved$javax_swing_event_AncestorEvent']) ) { +var ancestorEvent=Clazz_new_($I$(3).c$$javax_swing_JComponent$I$java_awt_Container$java_awt_Container,[source, id, ancestor, ancestorParent]); +(listeners[i + 1]).ancestorAdded$javax_swing_event_AncestorEvent(ancestorEvent); +}} +}); + +Clazz_newMeth(C$, 'fireAncestorRemoved$javax_swing_JComponent$I$java_awt_Container$java_awt_Container', function (source, id, ancestor, ancestorParent) { +var listeners=this.listenerList.getListenerList$(); +for (var i=listeners.length - 2; i >= 0; i-=2) { +if (listeners[i] === Clazz_getClass($I$(2),['ancestorAdded$javax_swing_event_AncestorEvent','ancestorMoved$javax_swing_event_AncestorEvent','ancestorRemoved$javax_swing_event_AncestorEvent']) ) { +var ancestorEvent=Clazz_new_($I$(3).c$$javax_swing_JComponent$I$java_awt_Container$java_awt_Container,[source, id, ancestor, ancestorParent]); +(listeners[i + 1]).ancestorRemoved$javax_swing_event_AncestorEvent(ancestorEvent); +}} +}); + +Clazz_newMeth(C$, 'fireAncestorMoved$javax_swing_JComponent$I$java_awt_Container$java_awt_Container', function (source, id, ancestor, ancestorParent) { +var listeners=this.listenerList.getListenerList$(); +for (var i=listeners.length - 2; i >= 0; i-=2) { +if (listeners[i] === Clazz_getClass($I$(2),['ancestorAdded$javax_swing_event_AncestorEvent','ancestorMoved$javax_swing_event_AncestorEvent','ancestorRemoved$javax_swing_event_AncestorEvent']) ) { +var ancestorEvent=Clazz_new_($I$(3).c$$javax_swing_JComponent$I$java_awt_Container$java_awt_Container,[source, id, ancestor, ancestorParent]); +(listeners[i + 1]).ancestorMoved$javax_swing_event_AncestorEvent(ancestorEvent); +}} +}); + +Clazz_newMeth(C$, 'removeAllListeners$', function () { +this.removeListeners$java_awt_Component(this.root); +}); + +Clazz_newMeth(C$, 'addListeners$java_awt_Component$Z', function (ancestor, addToFirst) { +var a; +this.firstInvisibleAncestor=null; +for (a=ancestor; this.firstInvisibleAncestor == null ; a=a.getParent$()) { +if (addToFirst || a !== ancestor ) { +a.addComponentListener$java_awt_event_ComponentListener(this); +if (Clazz_instanceOf(a, "javax.swing.JComponent")) { +var jAncestor=a; +jAncestor.addPropertyChangeListener$java_beans_PropertyChangeListener(this); +}}if (!a.isVisible$() || a.getParent$() == null || a.isWindowOrJSApplet$() ) { +this.firstInvisibleAncestor=a; +}} +if (this.firstInvisibleAncestor != null && this.firstInvisibleAncestor.isWindowOrJSApplet$() && this.firstInvisibleAncestor.isVisible$() ) { +this.firstInvisibleAncestor=null; +}}); + +Clazz_newMeth(C$, 'removeListeners$java_awt_Component', function (ancestor) { +var a; +for (a=ancestor; a != null ; a=a.getParent$()) { +a.removeComponentListener$java_awt_event_ComponentListener(this); +if (Clazz_instanceOf(a, "javax.swing.JComponent")) { +var jAncestor=a; +jAncestor.removePropertyChangeListener$java_beans_PropertyChangeListener(this); +}if (a === this.firstInvisibleAncestor || a.isWindowOrJSApplet$() ) { +break; +}} +}); + +Clazz_newMeth(C$, 'componentResized$java_awt_event_ComponentEvent', function (e) { +}); + +Clazz_newMeth(C$, 'componentMoved$java_awt_event_ComponentEvent', function (e) { +var source=e.getComponent$(); +this.fireAncestorMoved$javax_swing_JComponent$I$java_awt_Container$java_awt_Container(this.root, 3, source, source.getParent$()); +}); + +Clazz_newMeth(C$, 'componentShown$java_awt_event_ComponentEvent', function (e) { +var ancestor=e.getComponent$(); +if (ancestor === this.firstInvisibleAncestor ) { +this.addListeners$java_awt_Component$Z(ancestor, false); +if (this.firstInvisibleAncestor == null ) { +this.fireAncestorAdded$javax_swing_JComponent$I$java_awt_Container$java_awt_Container(this.root, 1, ancestor, ancestor.getParent$()); +}}}); + +Clazz_newMeth(C$, 'componentHidden$java_awt_event_ComponentEvent', function (e) { +var ancestor=e.getComponent$(); +var needsNotify=this.firstInvisibleAncestor == null ; +if (!ancestor.isWindowOrJSApplet$()) { +this.removeListeners$java_awt_Component(ancestor.getParent$()); +}this.firstInvisibleAncestor=ancestor; +if (needsNotify) { +this.fireAncestorRemoved$javax_swing_JComponent$I$java_awt_Container$java_awt_Container(this.root, 2, ancestor, ancestor.getParent$()); +}}); + +Clazz_newMeth(C$, ['propertyChange$java_beans_PropertyChangeEvent','propertyChange$'], function (evt) { +var s=evt.getPropertyName$(); +if (s != null && (s.equals$O("parent") || s.equals$O("ancestor") ) ) { +var component=evt.getSource$(); +if (evt.getNewValue$() != null ) { +if (component === this.firstInvisibleAncestor ) { +this.addListeners$java_awt_Component$Z(component, false); +if (this.firstInvisibleAncestor == null ) { +this.fireAncestorAdded$javax_swing_JComponent$I$java_awt_Container$java_awt_Container(this.root, 1, component, component.getParent$()); +}}} else { +var needsNotify=this.firstInvisibleAncestor == null ; +var oldParent=evt.getOldValue$(); +this.removeListeners$java_awt_Component(oldParent); +this.firstInvisibleAncestor=component; +if (needsNotify) { +this.fireAncestorRemoved$javax_swing_JComponent$I$java_awt_Container$java_awt_Container(this.root, 2, component, oldParent); +}}}}); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:57 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing"),p$1={},I$=[[0,'java.util.Hashtable']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "ArrayTable", null, null, 'Cloneable'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.table=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.table=null; +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'put$O$O', function (key, value) { +if (this.table == null ) { +this.table=Clazz_array(java.lang.Object, -1, [key, value]); +} else { +var size=this.size$(); +if (size < 8) { +if (this.containsKey$O(key)) { +var tmp=this.table; +for (var i=0; i < tmp.length - 1; i+=2) { +if (tmp[i].equals$O(key)) { +tmp[i + 1]=value; +break; +}} +} else { +var array=this.table; +var i=array.length; +var tmp=Clazz_array(java.lang.Object, [i + 2]); +System.arraycopy$O$I$O$I$I(array, 0, tmp, 0, i); +tmp[i]=key; +tmp[i + 1]=value; +this.table=tmp; +}} else { +if ((size == 8) && p$1.isArray.apply(this, []) ) { +p$1.grow.apply(this, []); +}(this.table).put$TK$TV(key, value); +}}}); + +Clazz_newMeth(C$, 'get$O', function (key) { +var value=null; +if (this.table != null ) { +if (p$1.isArray.apply(this, [])) { +var array=this.table; +for (var i=0; i < array.length - 1; i+=2) { +if (array[i].equals$O(key)) { +value=array[i + 1]; +break; +}} +} else { +value=(this.table).get$O(key); +}}return value; +}); + +Clazz_newMeth(C$, 'size$', function () { +var size; +if (this.table == null ) return 0; +if (p$1.isArray.apply(this, [])) { +size=((this.table).length/2|0); +} else { +size=(this.table).size$(); +}return size; +}); + +Clazz_newMeth(C$, 'containsKey$O', function (key) { +var contains=false; +if (this.table != null ) { +if (p$1.isArray.apply(this, [])) { +var array=this.table; +for (var i=0; i < array.length - 1; i+=2) { +if (array[i].equals$O(key)) { +contains=true; +break; +}} +} else { +contains=(this.table).containsKey$O(key); +}}return contains; +}); + +Clazz_newMeth(C$, 'remove$O', function (key) { +var value=null; +if (key == null ) { +return null; +}if (this.table != null ) { +if (p$1.isArray.apply(this, [])) { +var index=-1; +var array=this.table; +for (var i=array.length - 2; i >= 0; i-=2) { +if (array[i].equals$O(key)) { +index=i; +value=array[i + 1]; +break; +}} +if (index != -1) { +var tmp=Clazz_array(java.lang.Object, [array.length - 2]); +System.arraycopy$O$I$O$I$I(array, 0, tmp, 0, index); +if (index < tmp.length) System.arraycopy$O$I$O$I$I(array, index + 2, tmp, index, tmp.length - index); +this.table=(tmp.length == 0) ? null : tmp; +}} else { +value=(this.table).remove$O(key); +}if (this.size$() == 7 && !p$1.isArray.apply(this, []) ) { +p$1.shrink.apply(this, []); +}}return value; +}); + +Clazz_newMeth(C$, 'clear$', function () { +this.table=null; +}); + +Clazz_newMeth(C$, 'clone$', function () { +var newArrayTable=Clazz_new_(C$); +if (p$1.isArray.apply(this, [])) { +var array=this.table; +for (var i=0; i < array.length - 1; i+=2) { +newArrayTable.put$O$O(array[i], array[i + 1]); +} +} else { +var tmp=this.table; +var keys=tmp.keys$(); +while (keys.hasMoreElements$()){ +var o=keys.nextElement$(); +newArrayTable.put$O$O(o, tmp.get$O(o)); +} +}return newArrayTable; +}); + +Clazz_newMeth(C$, 'getKeys$OA', function (keys) { +if (this.table == null ) { +return null; +}if (p$1.isArray.apply(this, [])) { +var array=this.table; +if (keys == null ) { +keys=Clazz_array(java.lang.Object, [(array.length/2|0)]); +}for (var i=0, index=0; i < array.length - 1; i+=2, index++) { +keys[index]=array[i]; +} +} else { +var tmp=this.table; +var enum_=tmp.keys$(); +var counter=tmp.size$(); +if (keys == null ) { +keys=Clazz_array(java.lang.Object, [counter]); +}while (counter > 0){ +keys[--counter]=enum_.nextElement$(); +} +}return keys; +}); + +Clazz_newMeth(C$, 'isArray', function () { +return (Clazz_instanceOf(this.table, Clazz_array(java.lang.Object, -1))); +}, p$1); + +Clazz_newMeth(C$, 'grow', function () { +var array=this.table; +var tmp=Clazz_new_($I$(1).c$$I,[(array.length/2|0)]); +for (var i=0; i < array.length; i+=2) { +tmp.put$TK$TV(array[i], array[i + 1]); +} +this.table=tmp; +}, p$1); + +Clazz_newMeth(C$, 'shrink', function () { +var tmp=this.table; +var array=Clazz_array(java.lang.Object, [tmp.size$() * 2]); +var keys=tmp.keys$(); +var j=0; +while (keys.hasMoreElements$()){ +var o=keys.nextElement$(); +array[j]=o; +array[j + 1]=tmp.get$O(o); +j+=2; +} +this.table=array; +}, p$1); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:57 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing.border"),I$=[[0,'java.awt.Insets','java.awt.Rectangle',['java.awt.Component','.BaselineResizeBehavior']]],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "AbstractBorder", null, null, 'javax.swing.border.Border'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.秘paintClass=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.秘paintClass=C$ ||null; +}, 1); + +Clazz_newMeth(C$, 'paintBorder$java_awt_Component$java_awt_Graphics$I$I$I$I', function (c, g, x, y, width, height) { +}); + +Clazz_newMeth(C$, 'getBorderInsets$java_awt_Component', function (c) { +return Clazz_new_($I$(1).c$$I$I$I$I,[0, 0, 0, 0]); +}); + +Clazz_newMeth(C$, 'getBorderInsets$java_awt_Component$java_awt_Insets', function (c, insets) { +insets.left=insets.top=insets.right=insets.bottom=0; +return insets; +}); + +Clazz_newMeth(C$, 'isBorderOpaque$', function () { +return false; +}); + +Clazz_newMeth(C$, 'getInteriorRectangle$java_awt_Component$I$I$I$I', function (c, x, y, width, height) { +return C$.getInteriorRectangle$java_awt_Component$javax_swing_border_Border$I$I$I$I(c, this, x, y, width, height); +}); + +Clazz_newMeth(C$, 'getInteriorRectangle$java_awt_Component$javax_swing_border_Border$I$I$I$I', function (c, b, x, y, width, height) { +var insets; +if (b != null ) insets=b.getBorderInsets$java_awt_Component(c); + else insets=Clazz_new_($I$(1).c$$I$I$I$I,[0, 0, 0, 0]); +return Clazz_new_($I$(2).c$$I$I$I$I,[x + insets.left, y + insets.top, width - insets.right - insets.left , height - insets.top - insets.bottom ]); +}, 1); + +Clazz_newMeth(C$, 'getBaseline$java_awt_Component$I$I', function (c, width, height) { +if (width < 0 || height < 0 ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["Width and height must be >= 0"]); +}return -1; +}); + +Clazz_newMeth(C$, 'getBaselineResizeBehavior$java_awt_Component', function (c) { +if (c == null ) { +throw Clazz_new_(Clazz_load('NullPointerException').c$$S,["Component must be non-null"]); +}return $I$(3).OTHER; +}); + +Clazz_newMeth(C$, 'isLeftToRight$java_awt_Component', function (c) { +return c.getComponentOrientation$().isLeftToRight$(); +}, 1); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:09 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing.border"),I$=[[0,'java.awt.Insets']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "BevelBorder", null, 'javax.swing.border.AbstractBorder'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.bevelType=0; +this.highlightOuter=null; +this.highlightInner=null; +this.shadowInner=null; +this.shadowOuter=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$I', function (bevelType) { +Clazz_super_(C$, this,1); +this.bevelType=bevelType; +}, 1); + +Clazz_newMeth(C$, 'c$$I$java_awt_Color$java_awt_Color', function (bevelType, highlight, shadow) { +C$.c$$I$java_awt_Color$java_awt_Color$java_awt_Color$java_awt_Color.apply(this, [bevelType, highlight.brighter$(), highlight, shadow, shadow.brighter$()]); +}, 1); + +Clazz_newMeth(C$, 'c$$I$java_awt_Color$java_awt_Color$java_awt_Color$java_awt_Color', function (bevelType, highlightOuterColor, highlightInnerColor, shadowOuterColor, shadowInnerColor) { +C$.c$$I.apply(this, [bevelType]); +this.highlightOuter=highlightOuterColor; +this.highlightInner=highlightInnerColor; +this.shadowOuter=shadowOuterColor; +this.shadowInner=shadowInnerColor; +}, 1); + +Clazz_newMeth(C$, 'paintBorder$java_awt_Component$java_awt_Graphics$I$I$I$I', function (c, g, x, y, width, height) { +if (this.bevelType == 0) { +this.paintRaisedBevel$java_awt_Component$java_awt_Graphics$I$I$I$I(c, g, x, y, width, height); +} else if (this.bevelType == 1) { +this.paintLoweredBevel$java_awt_Component$java_awt_Graphics$I$I$I$I(c, g, x, y, width, height); +}}); + +Clazz_newMeth(C$, 'getBorderInsets$java_awt_Component', function (c) { +return Clazz_new_($I$(1).c$$I$I$I$I,[2, 2, 2, 2]); +}); + +Clazz_newMeth(C$, 'getBorderInsets$java_awt_Component$java_awt_Insets', function (c, insets) { +insets.left=insets.top=insets.right=insets.bottom=2; +return insets; +}); + +Clazz_newMeth(C$, 'getHighlightOuterColor$java_awt_Component', function (c) { +var highlight=this.getHighlightOuterColor$(); +return highlight != null ? highlight : c.getBackground$().brighter$().brighter$(); +}); + +Clazz_newMeth(C$, 'getHighlightInnerColor$java_awt_Component', function (c) { +var highlight=this.getHighlightInnerColor$(); +return highlight != null ? highlight : c.getBackground$().brighter$(); +}); + +Clazz_newMeth(C$, 'getShadowInnerColor$java_awt_Component', function (c) { +var shadow=this.getShadowInnerColor$(); +return shadow != null ? shadow : c.getBackground$().darker$(); +}); + +Clazz_newMeth(C$, 'getShadowOuterColor$java_awt_Component', function (c) { +var shadow=this.getShadowOuterColor$(); +return shadow != null ? shadow : c.getBackground$().darker$().darker$(); +}); + +Clazz_newMeth(C$, 'getHighlightOuterColor$', function () { +return this.highlightOuter; +}); + +Clazz_newMeth(C$, 'getHighlightInnerColor$', function () { +return this.highlightInner; +}); + +Clazz_newMeth(C$, 'getShadowInnerColor$', function () { +return this.shadowInner; +}); + +Clazz_newMeth(C$, 'getShadowOuterColor$', function () { +return this.shadowOuter; +}); + +Clazz_newMeth(C$, 'getBevelType$', function () { +return this.bevelType; +}); + +Clazz_newMeth(C$, 'isBorderOpaque$', function () { +return true; +}); + +Clazz_newMeth(C$, 'paintRaisedBevel$java_awt_Component$java_awt_Graphics$I$I$I$I', function (c, g, x, y, width, height) { +var oldColor=g.getColor$(); +var h=height; +var w=width; +g.translate$I$I(x, y); +g.setColor$java_awt_Color(this.getHighlightOuterColor$java_awt_Component(c)); +g.drawLine$I$I$I$I(0, 0, 0, h - 2); +g.drawLine$I$I$I$I(1, 0, w - 2, 0); +g.setColor$java_awt_Color(this.getHighlightInnerColor$java_awt_Component(c)); +g.drawLine$I$I$I$I(1, 1, 1, h - 3); +g.drawLine$I$I$I$I(2, 1, w - 3, 1); +g.setColor$java_awt_Color(this.getShadowOuterColor$java_awt_Component(c)); +g.drawLine$I$I$I$I(0, h - 1, w - 1, h - 1); +g.drawLine$I$I$I$I(w - 1, 0, w - 1, h - 2); +g.setColor$java_awt_Color(this.getShadowInnerColor$java_awt_Component(c)); +g.drawLine$I$I$I$I(1, h - 2, w - 2, h - 2); +g.drawLine$I$I$I$I(w - 2, 1, w - 2, h - 3); +g.translate$I$I(-x, -y); +g.setColor$java_awt_Color(oldColor); +}); + +Clazz_newMeth(C$, 'paintLoweredBevel$java_awt_Component$java_awt_Graphics$I$I$I$I', function (c, g, x, y, width, height) { +var oldColor=g.getColor$(); +var h=height; +var w=width; +g.translate$I$I(x, y); +g.setColor$java_awt_Color(this.getShadowInnerColor$java_awt_Component(c)); +g.drawLine$I$I$I$I(0, 0, 0, h - 1); +g.drawLine$I$I$I$I(1, 0, w - 1, 0); +g.setColor$java_awt_Color(this.getShadowOuterColor$java_awt_Component(c)); +g.drawLine$I$I$I$I(1, 1, 1, h - 2); +g.drawLine$I$I$I$I(2, 1, w - 2, 1); +g.setColor$java_awt_Color(this.getHighlightOuterColor$java_awt_Component(c)); +g.drawLine$I$I$I$I(1, h - 1, w - 1, h - 1); +g.drawLine$I$I$I$I(w - 1, 1, w - 1, h - 2); +g.setColor$java_awt_Color(this.getHighlightInnerColor$java_awt_Component(c)); +g.drawLine$I$I$I$I(2, h - 2, w - 2, h - 2); +g.drawLine$I$I$I$I(w - 2, 2, w - 2, h - 3); +g.translate$I$I(-x, -y); +g.setColor$java_awt_Color(oldColor); +}); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:09 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing.border"),I$=[]; +var C$=Clazz_newInterface(P$, "Border"); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:09 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing.border"),I$=[[0,'java.awt.Insets']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "CompoundBorder", null, 'javax.swing.border.AbstractBorder'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.outsideBorder=null; +this.insideBorder=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +Clazz_super_(C$, this,1); +this.outsideBorder=null; +this.insideBorder=null; +}, 1); + +Clazz_newMeth(C$, 'c$$javax_swing_border_Border$javax_swing_border_Border', function (outsideBorder, insideBorder) { +Clazz_super_(C$, this,1); +this.outsideBorder=outsideBorder; +this.insideBorder=insideBorder; +}, 1); + +Clazz_newMeth(C$, 'isBorderOpaque$', function () { +return (this.outsideBorder == null || this.outsideBorder.isBorderOpaque$() ) && (this.insideBorder == null || this.insideBorder.isBorderOpaque$() ) ; +}); + +Clazz_newMeth(C$, 'paintBorder$java_awt_Component$java_awt_Graphics$I$I$I$I', function (c, g, x, y, width, height) { +var nextInsets; +var px; +var py; +var pw; +var ph; +px=x; +py=y; +pw=width; +ph=height; +if (this.outsideBorder != null ) { +this.outsideBorder.paintBorder$java_awt_Component$java_awt_Graphics$I$I$I$I(c, g, px, py, pw, ph); +nextInsets=this.outsideBorder.getBorderInsets$java_awt_Component(c); +px+=nextInsets.left; +py+=nextInsets.top; +pw=pw - nextInsets.right - nextInsets.left ; +ph=ph - nextInsets.bottom - nextInsets.top ; +}if (this.insideBorder != null ) this.insideBorder.paintBorder$java_awt_Component$java_awt_Graphics$I$I$I$I(c, g, px, py, pw, ph); +}); + +Clazz_newMeth(C$, 'getBorderInsets$java_awt_Component$java_awt_Insets', function (c, insets) { +var nextInsets; +insets.top=insets.left=insets.right=insets.bottom=0; +if (this.outsideBorder != null ) { +nextInsets=this.outsideBorder.getBorderInsets$java_awt_Component(c); +insets.top+=nextInsets.top; +insets.left+=nextInsets.left; +insets.right+=nextInsets.right; +insets.bottom+=nextInsets.bottom; +}if (this.insideBorder != null ) { +nextInsets=this.insideBorder.getBorderInsets$java_awt_Component(c); +insets.top+=nextInsets.top; +insets.left+=nextInsets.left; +insets.right+=nextInsets.right; +insets.bottom+=nextInsets.bottom; +}return insets; +}); + +Clazz_newMeth(C$, 'getBorderInsets$java_awt_Component', function (c) { +return this.getBorderInsets$java_awt_Component$java_awt_Insets(c, Clazz_new_($I$(1).c$$I$I$I$I,[0, 0, 0, 0])); +}); + +Clazz_newMeth(C$, 'getOutsideBorder$', function () { +return this.outsideBorder; +}); + +Clazz_newMeth(C$, 'getInsideBorder$', function () { +return this.insideBorder; +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:09 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing.border"),I$=[[0,'java.awt.Insets']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "EmptyBorder", null, 'javax.swing.border.AbstractBorder'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.left=0; +this.right=0; +this.top=0; +this.bottom=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$I$I$I$I', function (top, left, bottom, right) { +Clazz_super_(C$, this,1); +this.top=top; +this.right=right; +this.bottom=bottom; +this.left=left; +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Insets', function (borderInsets) { +Clazz_super_(C$, this,1); +this.top=borderInsets.top; +this.right=borderInsets.right; +this.bottom=borderInsets.bottom; +this.left=borderInsets.left; +}, 1); + +Clazz_newMeth(C$, 'getBorderInsets$java_awt_Component', function (c) { +return this.getBorderInsets$(); +}); + +Clazz_newMeth(C$, 'getBorderInsets$java_awt_Component$java_awt_Insets', function (c, insets) { +insets.left=this.left; +insets.top=this.top; +insets.right=this.right; +insets.bottom=this.bottom; +return insets; +}); + +Clazz_newMeth(C$, 'getBorderInsets$', function () { +return Clazz_new_($I$(1).c$$I$I$I$I,[this.top, this.left, this.bottom, this.right]); +}); + +Clazz_newMeth(C$, 'isBorderOpaque$', function () { +return false; +}); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:09 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing.border"),I$=[[0,'java.awt.Insets']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "EtchedBorder", null, 'javax.swing.border.AbstractBorder'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.etchType=0; +this.highlight=null; +this.shadow=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.c$$I.apply(this, [1]); +}, 1); + +Clazz_newMeth(C$, 'c$$I', function (etchType) { +C$.c$$I$java_awt_Color$java_awt_Color.apply(this, [etchType, null, null]); +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Color$java_awt_Color', function (highlight, shadow) { +C$.c$$I$java_awt_Color$java_awt_Color.apply(this, [1, highlight, shadow]); +}, 1); + +Clazz_newMeth(C$, 'c$$I$java_awt_Color$java_awt_Color', function (etchType, highlight, shadow) { +Clazz_super_(C$, this,1); +this.etchType=etchType; +this.highlight=highlight; +this.shadow=shadow; +}, 1); + +Clazz_newMeth(C$, 'paintBorder$java_awt_Component$java_awt_Graphics$I$I$I$I', function (c, g, x, y, width, height) { +var w=width; +var h=height; +g.translate$I$I(x, y); +g.setColor$java_awt_Color(this.etchType == 1 ? this.getShadowColor$java_awt_Component(c) : this.getHighlightColor$java_awt_Component(c)); +g.drawRect$I$I$I$I(0, 0, w - 2, h - 2); +g.setColor$java_awt_Color(this.etchType == 1 ? this.getHighlightColor$java_awt_Component(c) : this.getShadowColor$java_awt_Component(c)); +g.drawLine$I$I$I$I(1, h - 3, 1, 1); +g.drawLine$I$I$I$I(1, 1, w - 3, 1); +g.drawLine$I$I$I$I(0, h - 1, w - 1, h - 1); +g.drawLine$I$I$I$I(w - 1, h - 1, w - 1, 0); +g.translate$I$I(-x, -y); +}); + +Clazz_newMeth(C$, 'getBorderInsets$java_awt_Component', function (c) { +return Clazz_new_($I$(1).c$$I$I$I$I,[2, 2, 2, 2]); +}); + +Clazz_newMeth(C$, 'getBorderInsets$java_awt_Component$java_awt_Insets', function (c, insets) { +insets.left=insets.top=insets.right=insets.bottom=2; +return insets; +}); + +Clazz_newMeth(C$, 'isBorderOpaque$', function () { +return true; +}); + +Clazz_newMeth(C$, 'getEtchType$', function () { +return this.etchType; +}); + +Clazz_newMeth(C$, 'getHighlightColor$java_awt_Component', function (c) { +return this.highlight != null ? this.highlight : c.getBackground$().brighter$(); +}); + +Clazz_newMeth(C$, 'getHighlightColor$', function () { +return this.highlight; +}); + +Clazz_newMeth(C$, 'getShadowColor$java_awt_Component', function (c) { +return this.shadow != null ? this.shadow : c.getBackground$().darker$(); +}); + +Clazz_newMeth(C$, 'getShadowColor$', function () { +return this.shadow; +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:09 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing.border"),I$=[[0,'java.awt.Color',['java.awt.geom.RoundRectangle2D','.Float'],['java.awt.geom.Rectangle2D','.Float'],['java.awt.geom.Path2D','.Float'],'java.awt.Insets']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "LineBorder", null, 'javax.swing.border.AbstractBorder'); +C$.blackLine=null; +C$.grayLine=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.thickness=0; +this.lineColor=null; +this.roundedCorners=false; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'createBlackLineBorder$', function () { +if (C$.blackLine == null ) { +C$.blackLine=Clazz_new_(C$.c$$java_awt_Color$I,[$I$(1).black, 1]); +}return C$.blackLine; +}, 1); + +Clazz_newMeth(C$, 'createGrayLineBorder$', function () { +if (C$.grayLine == null ) { +C$.grayLine=Clazz_new_(C$.c$$java_awt_Color$I,[$I$(1).gray, 1]); +}return C$.grayLine; +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Color', function (color) { +C$.c$$java_awt_Color$I$Z.apply(this, [color, 1, false]); +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Color$I', function (color, thickness) { +C$.c$$java_awt_Color$I$Z.apply(this, [color, thickness, false]); +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Color$I$Z', function (color, thickness, roundedCorners) { +Clazz_super_(C$, this,1); +this.lineColor=color; +this.thickness=thickness; +this.roundedCorners=roundedCorners; +}, 1); + +Clazz_newMeth(C$, 'paintBorder$java_awt_Component$java_awt_Graphics$I$I$I$I', function (c, g, x, y, width, height) { +if ((this.thickness > 0)) { +var g2d=g; +var oldColor=g2d.getColor$(); +g2d.setColor$java_awt_Color(this.lineColor); +var outer; +var inner; +var offs=this.thickness; +var size=offs + offs; +if (this.roundedCorners) { +var arc=offs + size; +outer=Clazz_new_($I$(2).c$$F$F$F$F$F$F,[x, y, width, height, arc, arc]); +inner=Clazz_new_($I$(2).c$$F$F$F$F$F$F,[x + offs, y + offs, width - size, height - size, arc, arc]); +} else { +outer=Clazz_new_($I$(3).c$$F$F$F$F,[x - 0.5, y - 0.5, width + 1, height + 1]); +inner=Clazz_new_($I$(3).c$$F$F$F$F,[x + offs - 0.5, y + offs - 0.5, width - size + 1, height - size + 1]); +}var path=Clazz_new_($I$(4).c$$I,[0]); +path.append$java_awt_Shape$Z(outer, false); +path.append$java_awt_Shape$Z(inner, false); +g2d.fill$java_awt_Shape(path); +g2d.setColor$java_awt_Color(oldColor); +}}); + +Clazz_newMeth(C$, 'getBorderInsets$java_awt_Component', function (c) { +return Clazz_new_($I$(5).c$$I$I$I$I,[this.thickness, this.thickness, this.thickness, this.thickness]); +}); + +Clazz_newMeth(C$, 'getBorderInsets$java_awt_Component$java_awt_Insets', function (c, insets) { +insets.left=insets.top=insets.right=insets.bottom=this.thickness; +return insets; +}); + +Clazz_newMeth(C$, 'getLineColor$', function () { +return this.lineColor; +}); + +Clazz_newMeth(C$, 'getThickness$', function () { +return this.thickness; +}); + +Clazz_newMeth(C$, 'getRoundedCorners$', function () { +return this.roundedCorners; +}); + +Clazz_newMeth(C$, 'isBorderOpaque$', function () { +return !this.roundedCorners; +}); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:09 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing"),I$=[[0,'javax.swing.border.BevelBorder','javax.swing.border.EtchedBorder','javax.swing.border.EmptyBorder','javax.swing.border.LineBorder','javax.swing.border.TitledBorder','javax.swing.border.CompoundBorder','javax.swing.border.MatteBorder']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "BorderFactory"); +C$.sharedRaisedBevel=null; +C$.sharedLoweredBevel=null; +C$.sharedEtchedBorder=null; +C$.sharedRaisedEtchedBorder=null; +C$.emptyBorder=null; +C$.html5Border=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.sharedRaisedBevel=Clazz_new_($I$(1).c$$I,[0]); +C$.sharedLoweredBevel=Clazz_new_($I$(1).c$$I,[1]); +C$.sharedEtchedBorder=Clazz_new_($I$(2)); +C$.emptyBorder=Clazz_new_($I$(3).c$$I$I$I$I,[0, 0, 0, 0]); +C$.html5Border=Clazz_new_($I$(3).c$$I$I$I$I,[0, 0, 0, 0]); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'createLineBorder$java_awt_Color', function (color) { +return Clazz_new_($I$(4).c$$java_awt_Color$I,[color, 1]); +}, 1); + +Clazz_newMeth(C$, 'createLineBorder$java_awt_Color$I', function (color, thickness) { +return Clazz_new_($I$(4).c$$java_awt_Color$I,[color, thickness]); +}, 1); + +Clazz_newMeth(C$, 'createRaisedBevelBorder$', function () { +return C$.createSharedBevel$I(0); +}, 1); + +Clazz_newMeth(C$, 'createLoweredBevelBorder$', function () { +return C$.createSharedBevel$I(1); +}, 1); + +Clazz_newMeth(C$, 'createBevelBorder$I', function (type) { +return C$.createSharedBevel$I(type); +}, 1); + +Clazz_newMeth(C$, 'createBevelBorder$I$java_awt_Color$java_awt_Color', function (type, highlight, shadow) { +return Clazz_new_($I$(1).c$$I$java_awt_Color$java_awt_Color,[type, highlight, shadow]); +}, 1); + +Clazz_newMeth(C$, 'createBevelBorder$I$java_awt_Color$java_awt_Color$java_awt_Color$java_awt_Color', function (type, highlightOuter, highlightInner, shadowOuter, shadowInner) { +return Clazz_new_($I$(1).c$$I$java_awt_Color$java_awt_Color$java_awt_Color$java_awt_Color,[type, highlightOuter, highlightInner, shadowOuter, shadowInner]); +}, 1); + +Clazz_newMeth(C$, 'createSharedBevel$I', function (type) { +if (type == 0) { +return C$.sharedRaisedBevel; +} else if (type == 1) { +return C$.sharedLoweredBevel; +}return null; +}, 1); + +Clazz_newMeth(C$, 'createEtchedBorder$', function () { +return C$.sharedEtchedBorder; +}, 1); + +Clazz_newMeth(C$, 'createEtchedBorder$java_awt_Color$java_awt_Color', function (highlight, shadow) { +return Clazz_new_($I$(2).c$$java_awt_Color$java_awt_Color,[highlight, shadow]); +}, 1); + +Clazz_newMeth(C$, 'createEtchedBorder$I', function (type) { +switch (type) { +case 0: +if (C$.sharedRaisedEtchedBorder == null ) { +C$.sharedRaisedEtchedBorder=Clazz_new_($I$(2).c$$I,[0]); +}return C$.sharedRaisedEtchedBorder; +case 1: +return C$.sharedEtchedBorder; +default: +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["type must be one of EtchedBorder.RAISED or EtchedBorder.LOWERED"]); +} +}, 1); + +Clazz_newMeth(C$, 'createEtchedBorder$I$java_awt_Color$java_awt_Color', function (type, highlight, shadow) { +return Clazz_new_($I$(2).c$$I$java_awt_Color$java_awt_Color,[type, highlight, shadow]); +}, 1); + +Clazz_newMeth(C$, 'createTitledBorder$S', function (title) { +return Clazz_new_($I$(5).c$$S,[title]); +}, 1); + +Clazz_newMeth(C$, 'createTitledBorder$javax_swing_border_Border', function (border) { +return Clazz_new_($I$(5).c$$javax_swing_border_Border,[border]); +}, 1); + +Clazz_newMeth(C$, 'createTitledBorder$javax_swing_border_Border$S', function (border, title) { +return Clazz_new_($I$(5).c$$javax_swing_border_Border$S,[border, title]); +}, 1); + +Clazz_newMeth(C$, 'createTitledBorder$javax_swing_border_Border$S$I$I', function (border, title, titleJustification, titlePosition) { +return Clazz_new_($I$(5).c$$javax_swing_border_Border$S$I$I,[border, title, titleJustification, titlePosition]); +}, 1); + +Clazz_newMeth(C$, 'createTitledBorder$javax_swing_border_Border$S$I$I$java_awt_Font', function (border, title, titleJustification, titlePosition, titleFont) { +return Clazz_new_($I$(5).c$$javax_swing_border_Border$S$I$I$java_awt_Font,[border, title, titleJustification, titlePosition, titleFont]); +}, 1); + +Clazz_newMeth(C$, 'createTitledBorder$javax_swing_border_Border$S$I$I$java_awt_Font$java_awt_Color', function (border, title, titleJustification, titlePosition, titleFont, titleColor) { +return Clazz_new_($I$(5).c$$javax_swing_border_Border$S$I$I$java_awt_Font$java_awt_Color,[border, title, titleJustification, titlePosition, titleFont, titleColor]); +}, 1); + +Clazz_newMeth(C$, 'createEmptyBorder$', function () { +return C$.emptyBorder; +}, 1); + +Clazz_newMeth(C$, 'createHTML5Border$', function () { +return C$.html5Border; +}, 1); + +Clazz_newMeth(C$, 'createEmptyBorder$I$I$I$I', function (top, left, bottom, right) { +return Clazz_new_($I$(3).c$$I$I$I$I,[top, left, bottom, right]); +}, 1); + +Clazz_newMeth(C$, 'createCompoundBorder$', function () { +return Clazz_new_($I$(6)); +}, 1); + +Clazz_newMeth(C$, 'createCompoundBorder$javax_swing_border_Border$javax_swing_border_Border', function (outsideBorder, insideBorder) { +return Clazz_new_($I$(6).c$$javax_swing_border_Border$javax_swing_border_Border,[outsideBorder, insideBorder]); +}, 1); + +Clazz_newMeth(C$, 'createMatteBorder$I$I$I$I$java_awt_Color', function (top, left, bottom, right, color) { +return Clazz_new_($I$(7).c$$I$I$I$I$java_awt_Color,[top, left, bottom, right, color]); +}, 1); + +Clazz_newMeth(C$, 'createMatteBorder$I$I$I$I$javax_swing_Icon', function (top, left, bottom, right, tileIcon) { +return Clazz_new_($I$(7).c$$I$I$I$I$javax_swing_Icon,[top, left, bottom, right, tileIcon]); +}, 1); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:58 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing"),I$=[]; +var C$=Clazz_newInterface(P$, "BoundedRangeModel"); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:58 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing"),p$1={},I$=[[0,'java.awt.AWTError','java.awt.Dimension','javax.swing.SizeRequirements']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "BoxLayout", null, null, 'java.awt.LayoutManager2'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.axis=0; +this.target=null; +this.xChildren=null; +this.yChildren=null; +this.xTotal=null; +this.yTotal=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Container$I$java_io_PrintStream', function (target, axis, dbg) { +C$.c$$java_awt_Container$I.apply(this, [target, axis]); +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Container$I', function (target, axis) { +C$.$init$.apply(this); +if (axis != 0 && axis != 1 && axis != 2 && axis != 3 ) { +throw Clazz_new_($I$(1).c$$S,["Invalid axis"]); +}this.axis=axis; +this.target=target; +}, 1); + +Clazz_newMeth(C$, 'getTarget$', function () { +return this.target; +}); + +Clazz_newMeth(C$, 'getAxis$', function () { +return this.axis; +}); + +Clazz_newMeth(C$, 'invalidateLayout$java_awt_Container', function (target) { +this.checkContainer$java_awt_Container(target); +this.xChildren=null; +this.yChildren=null; +this.xTotal=null; +this.yTotal=null; +}); + +Clazz_newMeth(C$, 'addLayoutComponent$S$java_awt_Component', function (name, comp) { +this.invalidateLayout$java_awt_Container(comp.getParent$()); +}); + +Clazz_newMeth(C$, 'removeLayoutComponent$java_awt_Component', function (comp) { +this.invalidateLayout$java_awt_Container(comp.getParent$()); +}); + +Clazz_newMeth(C$, 'addLayoutComponent$java_awt_Component$O', function (comp, constraints) { +this.invalidateLayout$java_awt_Container(comp.getParent$()); +}); + +Clazz_newMeth(C$, 'preferredLayoutSize$java_awt_Container', function (target) { +var size; +{ +this.checkContainer$java_awt_Container(target); +this.checkRequests$(); +size=Clazz_new_($I$(2).c$$I$I,[this.xTotal.preferred, this.yTotal.preferred]); +}var insets=target.getInsets$(); +size.width=(Math.min(size.width + insets.left + insets.right , 2147483647)|0); +size.height=(Math.min(size.height + insets.top + insets.bottom , 2147483647)|0); +return size; +}); + +Clazz_newMeth(C$, 'minimumLayoutSize$java_awt_Container', function (target) { +var size; +{ +this.checkContainer$java_awt_Container(target); +this.checkRequests$(); +size=Clazz_new_($I$(2).c$$I$I,[this.xTotal.minimum, this.yTotal.minimum]); +}var insets=target.getInsets$(); +size.width=(Math.min(size.width + insets.left + insets.right , 2147483647)|0); +size.height=(Math.min(size.height + insets.top + insets.bottom , 2147483647)|0); +return size; +}); + +Clazz_newMeth(C$, 'maximumLayoutSize$java_awt_Container', function (target) { +var size; +{ +this.checkContainer$java_awt_Container(target); +this.checkRequests$(); +size=Clazz_new_($I$(2).c$$I$I,[this.xTotal.maximum, this.yTotal.maximum]); +}var insets=target.getInsets$(); +size.width=(Math.min(size.width + insets.left + insets.right , 2147483647)|0); +size.height=(Math.min(size.height + insets.top + insets.bottom , 2147483647)|0); +return size; +}); + +Clazz_newMeth(C$, 'getLayoutAlignmentX$java_awt_Container', function (target) { +this.checkContainer$java_awt_Container(target); +this.checkRequests$(); +return this.xTotal.alignment; +}); + +Clazz_newMeth(C$, 'getLayoutAlignmentY$java_awt_Container', function (target) { +this.checkContainer$java_awt_Container(target); +this.checkRequests$(); +return this.yTotal.alignment; +}); + +Clazz_newMeth(C$, 'layoutContainer$java_awt_Container', function (target) { +this.checkContainer$java_awt_Container(target); +var nChildren=target.getComponentCount$(); +var xOffsets=Clazz_array(Integer.TYPE, [nChildren]); +var xSpans=Clazz_array(Integer.TYPE, [nChildren]); +var yOffsets=Clazz_array(Integer.TYPE, [nChildren]); +var ySpans=Clazz_array(Integer.TYPE, [nChildren]); +var alloc=target.getSize$(); +var $in=target.getInsets$(); +alloc.width-=$in.left + $in.right; +alloc.height-=$in.top + $in.bottom; +var o=target.getComponentOrientation$(); +var absoluteAxis=p$1.resolveAxis$I$java_awt_ComponentOrientation.apply(this, [this.axis, o]); +var ltr=(absoluteAxis != this.axis) ? o.isLeftToRight$() : true; +{ +this.checkRequests$(); +if (absoluteAxis == 0) { +$I$(3).calcTiled$I$javax_swing_SizeRequirements$javax_swing_SizeRequirementsA$IA$IA$Z(alloc.width, this.xTotal, this.xChildren, xOffsets, xSpans, ltr); +$I$(3).calcAligned$I$javax_swing_SizeRequirements$javax_swing_SizeRequirementsA$IA$IA$Z(alloc.height, this.yTotal, this.yChildren, yOffsets, ySpans, true); +} else { +$I$(3).calcAligned$I$javax_swing_SizeRequirements$javax_swing_SizeRequirementsA$IA$IA$Z(alloc.width, this.xTotal, this.xChildren, xOffsets, xSpans, ltr); +$I$(3).calcTiled$I$javax_swing_SizeRequirements$javax_swing_SizeRequirementsA$IA$IA$Z(alloc.height, this.yTotal, this.yChildren, yOffsets, ySpans, true); +}}for (var i=0; i < nChildren; i++) { +var c=target.getComponent$I(i); +c.setBounds$I$I$I$I((Math.min($in.left + xOffsets[i], 2147483647)|0), (Math.min($in.top + yOffsets[i], 2147483647)|0), xSpans[i], ySpans[i]); +} +}); + +Clazz_newMeth(C$, 'checkContainer$java_awt_Container', function (target) { +if (this.target !== target ) { +throw Clazz_new_($I$(1).c$$S,["BoxLayout can\'t be shared"]); +}}); + +Clazz_newMeth(C$, 'checkRequests$', function () { +if (this.xChildren == null || this.yChildren == null ) { +var n=this.target.getComponentCount$(); +this.xChildren=Clazz_array($I$(3), [n]); +this.yChildren=Clazz_array($I$(3), [n]); +for (var i=0; i < n; i++) { +var c=this.target.getComponent$I(i); +if (!c.isVisible$()) { +this.xChildren[i]=Clazz_new_($I$(3).c$$I$I$I$F,[0, 0, 0, c.getAlignmentX$()]); +this.yChildren[i]=Clazz_new_($I$(3).c$$I$I$I$F,[0, 0, 0, c.getAlignmentY$()]); +continue; +}var min=c.getMinimumSize$(); +var typ=c.getPreferredSize$(); +var max=c.getMaximumSize$(); +this.xChildren[i]=Clazz_new_($I$(3).c$$I$I$I$F,[min.width, typ.width, max.width, c.getAlignmentX$()]); +this.yChildren[i]=Clazz_new_($I$(3).c$$I$I$I$F,[min.height, typ.height, max.height, c.getAlignmentY$()]); +} +var absoluteAxis=p$1.resolveAxis$I$java_awt_ComponentOrientation.apply(this, [this.axis, this.target.getComponentOrientation$()]); +if (absoluteAxis == 0) { +this.xTotal=$I$(3).getTiledSizeRequirements$javax_swing_SizeRequirementsA(this.xChildren); +this.yTotal=$I$(3).getAlignedSizeRequirements$javax_swing_SizeRequirementsA(this.yChildren); +} else { +this.xTotal=$I$(3).getAlignedSizeRequirements$javax_swing_SizeRequirementsA(this.xChildren); +this.yTotal=$I$(3).getTiledSizeRequirements$javax_swing_SizeRequirementsA(this.yChildren); +}}}); + +Clazz_newMeth(C$, 'resolveAxis$I$java_awt_ComponentOrientation', function (axis, o) { +var absoluteAxis; +if (axis == 2) { +absoluteAxis=o.isHorizontal$() ? 0 : 1; +} else if (axis == 3) { +absoluteAxis=o.isHorizontal$() ? 1 : 0; +} else { +absoluteAxis=axis; +}return absoluteAxis; +}, p$1); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:58 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing"),I$=[[0,'java.util.Vector']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "ButtonGroup"); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.buttons=null; +this.selection=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.buttons=Clazz_new_($I$(1)); +this.selection=null; +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'add$javax_swing_AbstractButton', function (b) { +if (b == null ) { +return; +}this.buttons.addElement$TE(b); +if (b.isSelected$()) { +if (this.selection == null ) { +this.selection=b.getModel$(); +} else { +b.setSelected$Z(false); +}}b.getModel$().setGroup$javax_swing_ButtonGroup(this); +}); + +Clazz_newMeth(C$, 'remove$javax_swing_AbstractButton', function (b) { +if (b == null ) { +return; +}this.buttons.removeElement$O(b); +if (b.getModel$() === this.selection ) { +this.selection=null; +}b.getModel$().setGroup$javax_swing_ButtonGroup(null); +}); + +Clazz_newMeth(C$, 'clearSelection$', function () { +if (this.selection != null ) { +var oldSelection=this.selection; +this.selection=null; +oldSelection.setSelected$Z(false); +}}); + +Clazz_newMeth(C$, 'getElements$', function () { +return this.buttons.elements$(); +}); + +Clazz_newMeth(C$, 'getSelection$', function () { +return this.selection; +}); + +Clazz_newMeth(C$, 'setSelected$javax_swing_ButtonModel$Z', function (m, b) { +if (b && m != null && m !== this.selection ) { +var oldSelection=this.selection; +this.selection=m; +if (oldSelection != null ) { +oldSelection.setSelected$Z(false); +}m.setSelected$Z(true); +}}); + +Clazz_newMeth(C$, 'isSelected$javax_swing_ButtonModel', function (m) { +return (m === this.selection ); +}); + +Clazz_newMeth(C$, 'getButtonCount$', function () { +if (this.buttons == null ) { +return 0; +} else { +return this.buttons.size$(); +}}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:58 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing"),I$=[]; +var C$=Clazz_newInterface(P$, "ButtonModel", null, null, 'java.awt.ItemSelectable'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:58 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing"),I$=[]; +var C$=Clazz_newClass(P$, "ClientPropertyKey", null, 'Enum'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +$vals=Clazz_array(C$,[0]); +Clazz_newEnumConst($vals, C$.c$$Z, "JComponent_INPUT_VERIFIER", 0, [true]); +Clazz_newEnumConst($vals, C$.c$$Z, "JComponent_TRANSFER_HANDLER", 1, [true]); +Clazz_newEnumConst($vals, C$.c$$Z, "JComponent_ANCESTOR_NOTIFIER", 2, [true]); +Clazz_newEnumConst($vals, C$.c$$Z, "PopupFactory_FORCE_HEAVYWEIGHT_POPUP", 3, [true]); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.reportValueNotSerializable=false; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'getJComponent_TRANSFER_HANDLER$', function () { +return C$.JComponent_TRANSFER_HANDLER; +}); + +Clazz_newMeth(C$, 'c$', function () { +C$.c$$Z.apply(this, [false]); +}, 1); + +Clazz_newMeth(C$, 'c$$Z', function (reportValueNotSerializable) { +C$.$init$.apply(this); +this.reportValueNotSerializable=reportValueNotSerializable; +}, 1); + +Clazz_newMeth(C$, 'getReportValueNotSerializable$', function () { +return this.reportValueNotSerializable; +}); +var $vals=[]; +Clazz_newMeth(C$, 'values$', function() { return $vals }, 1); +Clazz_newMeth(C$, 'valueOf$S', function(name) { for (var val in $vals){ if ($vals[val].name == name) return $vals[val]} return null }, 1); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:58 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing"),I$=[]; +var C$=Clazz_newInterface(P$, "ComboBoxModel", null, null, 'javax.swing.ListModel'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:58 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing"),I$=[[0,'javax.swing.event.EventListenerList','javax.swing.event.ChangeListener','javax.swing.event.ChangeEvent']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "DefaultBoundedRangeModel", null, null, 'javax.swing.BoundedRangeModel'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.changeEvent=null; +this.listenerList=null; +this.value=0; +this.extent=0; +this.min=0; +this.max=0; +this.isAdjusting=false; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.changeEvent=null; +this.listenerList=Clazz_new_($I$(1)); +this.value=0; +this.extent=0; +this.min=0; +this.max=100; +this.isAdjusting=false; +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'c$$I$I$I$I', function (value, extent, min, max) { +C$.$init$.apply(this); +if ((max >= min) && (value >= min) && ((value + extent) >= value) && ((value + extent) <= max) ) { +this.value=value; +this.extent=extent; +this.min=min; +this.max=max; +} else { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["invalid range properties"]); +}}, 1); + +Clazz_newMeth(C$, 'getValue$', function () { +return this.value; +}); + +Clazz_newMeth(C$, 'getExtent$', function () { +return this.extent; +}); + +Clazz_newMeth(C$, 'getMinimum$', function () { +return this.min; +}); + +Clazz_newMeth(C$, 'getMaximum$', function () { +return this.max; +}); + +Clazz_newMeth(C$, 'setValue$I', function (n) { +n=Math.min(n, 2147483647 - this.extent); +var newValue=Math.max(n, this.min); +if (newValue + this.extent > this.max) { +newValue=this.max - this.extent; +}this.setRangeProperties$I$I$I$I$Z(newValue, this.extent, this.min, this.max, this.isAdjusting); +}); + +Clazz_newMeth(C$, 'setExtent$I', function (n) { +var newExtent=Math.max(0, n); +if (this.value + newExtent > this.max) { +newExtent=this.max - this.value; +}this.setRangeProperties$I$I$I$I$Z(this.value, newExtent, this.min, this.max, this.isAdjusting); +}); + +Clazz_newMeth(C$, 'setMinimum$I', function (n) { +var newMax=Math.max(n, this.max); +var newValue=Math.max(n, this.value); +var newExtent=Math.min(newMax - newValue, this.extent); +this.setRangeProperties$I$I$I$I$Z(newValue, newExtent, n, newMax, this.isAdjusting); +}); + +Clazz_newMeth(C$, 'setMaximum$I', function (n) { +var newMin=Math.min(n, this.min); +var newExtent=Math.min(n - newMin, this.extent); +var newValue=Math.min(n - newExtent, this.value); +this.setRangeProperties$I$I$I$I$Z(newValue, newExtent, newMin, n, this.isAdjusting); +}); + +Clazz_newMeth(C$, 'setValueIsAdjusting$Z', function (b) { +this.setRangeProperties$I$I$I$I$Z(this.value, this.extent, this.min, this.max, b); +}); + +Clazz_newMeth(C$, 'getValueIsAdjusting$', function () { +return this.isAdjusting; +}); + +Clazz_newMeth(C$, 'setRangeProperties$I$I$I$I$Z', function (newValue, newExtent, newMin, newMax, adjusting) { +if (newMin > newMax) { +newMin=newMax; +}if (newValue > newMax) { +newMax=newValue; +}if (newValue < newMin) { +newMin=newValue; +}if ((newExtent + newValue) > newMax) { +newExtent=newMax - newValue; +}if (newExtent < 0) { +newExtent=0; +}var isChange=(newValue != this.value) || (newExtent != this.extent) || (newMin != this.min) || (newMax != this.max) || (adjusting != this.isAdjusting ) ; +if (isChange) { +this.value=newValue; +this.extent=newExtent; +this.min=newMin; +this.max=newMax; +this.isAdjusting=adjusting; +this.fireStateChanged$(); +}}); + +Clazz_newMeth(C$, 'addChangeListener$javax_swing_event_ChangeListener', function (l) { +this.listenerList.add$Class$TT(Clazz_getClass($I$(2),['stateChanged$javax_swing_event_ChangeEvent']), l); +}); + +Clazz_newMeth(C$, 'removeChangeListener$javax_swing_event_ChangeListener', function (l) { +this.listenerList.remove$Class$TT(Clazz_getClass($I$(2),['stateChanged$javax_swing_event_ChangeEvent']), l); +}); + +Clazz_newMeth(C$, 'getChangeListeners$', function () { +return this.listenerList.getListeners$Class(Clazz_getClass($I$(2),['stateChanged$javax_swing_event_ChangeEvent'])); +}); + +Clazz_newMeth(C$, 'fireStateChanged$', function () { +var listeners=this.listenerList.getListenerList$(); +for (var i=listeners.length - 2; i >= 0; i-=2) { +if (listeners[i] === Clazz_getClass($I$(2),['stateChanged$javax_swing_event_ChangeEvent']) ) { +if (this.changeEvent == null ) { +this.changeEvent=Clazz_new_($I$(3).c$$O,[this]); +}(listeners[i + 1]).stateChanged$(this.changeEvent); +}} +}); + +Clazz_newMeth(C$, 'toString', function () { +var modelString="value=" + this.getValue$() + ", " + "extent=" + this.getExtent$() + ", " + "min=" + this.getMinimum$() + ", " + "max=" + this.getMaximum$() + ", " + "adj=" + this.getValueIsAdjusting$() ; +return this.getClass$().getName$() + "[" + modelString + "]" ; +}); + +Clazz_newMeth(C$, 'getListeners$Class', function (listenerType) { +return this.listenerList.getListeners$Class(listenerType); +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:58 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing"),I$=[[0,'javax.swing.event.EventListenerList','javax.swing.UIManager','java.awt.event.ItemEvent','java.awt.EventQueue','java.awt.event.ActionEvent','javax.swing.event.ChangeListener','javax.swing.event.ChangeEvent','java.awt.event.ActionListener','java.awt.event.ItemListener']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "DefaultButtonModel", null, null, 'javax.swing.ButtonModel'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.stateMask=0; +this.actionCommand=null; +this.group=null; +this.mnemonic=0; +this.changeEvent=null; +this.listenerList=null; +this.menuItem=false; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.stateMask=0; +this.actionCommand=null; +this.group=null; +this.mnemonic=0; +this.changeEvent=null; +this.listenerList=Clazz_new_($I$(1)); +this.menuItem=false; +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.$init$.apply(this); +this.stateMask=0; +this.setEnabled$Z(true); +}, 1); + +Clazz_newMeth(C$, 'setActionCommand$S', function (actionCommand) { +this.actionCommand=actionCommand; +}); + +Clazz_newMeth(C$, 'getActionCommand$', function () { +return this.actionCommand; +}); + +Clazz_newMeth(C$, 'isArmed$', function () { +return (this.stateMask & 1) != 0; +}); + +Clazz_newMeth(C$, 'isSelected$', function () { +return (this.stateMask & 2) != 0; +}); + +Clazz_newMeth(C$, 'isEnabled$', function () { +return (this.stateMask & 8) != 0; +}); + +Clazz_newMeth(C$, 'isPressed$', function () { +return (this.stateMask & 4) != 0; +}); + +Clazz_newMeth(C$, 'isRollover$', function () { +return (this.stateMask & 16) != 0; +}); + +Clazz_newMeth(C$, 'setArmed$Z', function (b) { +if (this.isMenuItem$() && $I$(2).getBoolean$O("MenuItem.disabledAreNavigable") ) { +if ((this.isArmed$() == b )) { +return; +}} else { +if ((this.isArmed$() == b ) || !this.isEnabled$() ) { +return; +}}if (b) { +this.stateMask|=1; +} else { +this.stateMask&=~1; +}this.fireStateChanged$(); +}); + +Clazz_newMeth(C$, 'setEnabled$Z', function (b) { +if (this.isEnabled$() == b ) { +return; +}if (b) { +this.stateMask|=8; +} else { +this.stateMask&=~8; +this.stateMask&=~1; +this.stateMask&=~4; +}this.fireStateChanged$(); +}); + +Clazz_newMeth(C$, 'setSelected$Z', function (b) { +if (!this.setStateNoFire$Z(b)) return; +this.fireItemStateChanged$java_awt_event_ItemEvent(Clazz_new_($I$(3).c$$java_awt_ItemSelectable$I$O$I,[this, 701, this, b ? 1 : 2])); +this.fireStateChanged$(); +}); + +Clazz_newMeth(C$, 'setStateNoFire$Z', function (b) { +if (this.isSelected$() == b ) { +return false; +}if (b) { +this.stateMask|=2; +} else { +this.stateMask&=~2; +}return true; +}); + +Clazz_newMeth(C$, 'setPressed$Z', function (b) { +if ((this.isPressed$() == b ) || !this.isEnabled$() ) { +return; +}if (b) { +this.stateMask|=4; +} else { +this.stateMask&=~4; +}if (!this.isPressed$() && this.isArmed$() ) { +var modifiers=0; +var currentEvent=$I$(4).getCurrentEvent$(); +if (Clazz_instanceOf(currentEvent, "java.awt.event.InputEvent")) { +modifiers=(currentEvent).getModifiers$(); +} else if (Clazz_instanceOf(currentEvent, "java.awt.event.ActionEvent")) { +modifiers=(currentEvent).getModifiers$(); +}this.fireActionPerformed$java_awt_event_ActionEvent(Clazz_new_($I$(5).c$$O$I$S$J$I,[this, 1001, this.getActionCommand$(), $I$(4).getMostRecentEventTime$(), modifiers])); +}this.fireStateChanged$(); +}); + +Clazz_newMeth(C$, 'setRollover$Z', function (b) { +if ((this.isRollover$() == b ) || !this.isEnabled$() ) { +return; +}if (b) { +this.stateMask|=16; +} else { +this.stateMask&=~16; +}this.fireStateChanged$(); +}); + +Clazz_newMeth(C$, 'setMnemonic$I', function (key) { +this.mnemonic=key; +this.fireStateChanged$(); +}); + +Clazz_newMeth(C$, 'getMnemonic$', function () { +return this.mnemonic; +}); + +Clazz_newMeth(C$, 'addChangeListener$javax_swing_event_ChangeListener', function (l) { +this.listenerList.add$Class$TT(Clazz_getClass($I$(6),['stateChanged$javax_swing_event_ChangeEvent']), l); +}); + +Clazz_newMeth(C$, 'removeChangeListener$javax_swing_event_ChangeListener', function (l) { +this.listenerList.remove$Class$TT(Clazz_getClass($I$(6),['stateChanged$javax_swing_event_ChangeEvent']), l); +}); + +Clazz_newMeth(C$, 'getChangeListeners$', function () { +return this.listenerList.getListeners$Class(Clazz_getClass($I$(6),['stateChanged$javax_swing_event_ChangeEvent'])); +}); + +Clazz_newMeth(C$, 'fireStateChanged$', function () { +var listeners=this.listenerList.getListenerList$(); +for (var i=listeners.length - 2; i >= 0; i-=2) { +if (listeners[i] === Clazz_getClass($I$(6),['stateChanged$javax_swing_event_ChangeEvent']) ) { +if (this.changeEvent == null ) this.changeEvent=Clazz_new_($I$(7).c$$O,[this]); +(listeners[i + 1]).stateChanged$(this.changeEvent); +}} +}); + +Clazz_newMeth(C$, 'addActionListener$java_awt_event_ActionListener', function (l) { +this.listenerList.add$Class$TT(Clazz_getClass($I$(8),['actionPerformed$java_awt_event_ActionEvent']), l); +}); + +Clazz_newMeth(C$, 'removeActionListener$java_awt_event_ActionListener', function (l) { +this.listenerList.remove$Class$TT(Clazz_getClass($I$(8),['actionPerformed$java_awt_event_ActionEvent']), l); +}); + +Clazz_newMeth(C$, 'getActionListeners$', function () { +return this.listenerList.getListeners$Class(Clazz_getClass($I$(8),['actionPerformed$java_awt_event_ActionEvent'])); +}); + +Clazz_newMeth(C$, 'fireActionPerformed$java_awt_event_ActionEvent', function (e) { +var listeners=this.listenerList.getListenerList$(); +for (var i=listeners.length - 2; i >= 0; i-=2) { +if (listeners[i] === Clazz_getClass($I$(8),['actionPerformed$java_awt_event_ActionEvent']) ) { +(listeners[i + 1]).actionPerformed$(e); +}} +}); + +Clazz_newMeth(C$, 'addItemListener$java_awt_event_ItemListener', function (l) { +this.listenerList.add$Class$TT(Clazz_getClass($I$(9),['itemStateChanged$java_awt_event_ItemEvent']), l); +}); + +Clazz_newMeth(C$, 'removeItemListener$java_awt_event_ItemListener', function (l) { +this.listenerList.remove$Class$TT(Clazz_getClass($I$(9),['itemStateChanged$java_awt_event_ItemEvent']), l); +}); + +Clazz_newMeth(C$, 'getItemListeners$', function () { +return this.listenerList.getListeners$Class(Clazz_getClass($I$(9),['itemStateChanged$java_awt_event_ItemEvent'])); +}); + +Clazz_newMeth(C$, 'fireItemStateChanged$java_awt_event_ItemEvent', function (e) { +var listeners=this.listenerList.getListenerList$(); +for (var i=listeners.length - 2; i >= 0; i-=2) { +if (listeners[i] === Clazz_getClass($I$(9),['itemStateChanged$java_awt_event_ItemEvent']) ) { +(listeners[i + 1]).itemStateChanged$(e); +}} +}); + +Clazz_newMeth(C$, 'getListeners$Class', function (listenerType) { +return this.listenerList.getListeners$Class(listenerType); +}); + +Clazz_newMeth(C$, 'getSelectedObjects$', function () { +return null; +}); + +Clazz_newMeth(C$, 'setGroup$javax_swing_ButtonGroup', function (group) { +this.group=group; +}); + +Clazz_newMeth(C$, 'getGroup$', function () { +return this.group; +}); + +Clazz_newMeth(C$, 'isMenuItem$', function () { +return this.menuItem; +}); + +Clazz_newMeth(C$, 'setMenuItem$Z', function (menuItem) { +this.menuItem=menuItem; +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:58 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing"),I$=[[0,'java.util.Vector']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "DefaultComboBoxModel", null, 'javax.swing.AbstractListModel', 'javax.swing.MutableComboBoxModel'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.objects=null; +this.selectedObject=null; +this.秘isQuiet=false; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +Clazz_super_(C$, this,1); +this.objects=Clazz_new_($I$(1)); +}, 1); + +Clazz_newMeth(C$, 'c$$TEA', function (items) { +Clazz_super_(C$, this,1); +this.objects=Clazz_new_($I$(1)); +this.objects.ensureCapacity$I(items.length); +var i; +var c; +for (i=0, c=items.length; i < c; i++) this.objects.addElement$TE(items[i]); + +if (this.getSize$() > 0) { +this.selectedObject=this.getElementAt$I(0); +}}, 1); + +Clazz_newMeth(C$, 'c$$java_util_Vector', function (v) { +Clazz_super_(C$, this,1); +this.objects=v; +if (this.getSize$() > 0) { +this.selectedObject=this.getElementAt$I(0); +}}, 1); + +Clazz_newMeth(C$, 'setSelectedItem$O', function (anObject) { +if ((this.selectedObject != null && !this.selectedObject.equals$O(anObject) ) || this.selectedObject == null && anObject != null ) { +this.selectedObject=anObject; +if (this.秘isQuiet) { +} else { +this.fireContentsChanged$O$I$I(this, -1, -1); +}}}); + +Clazz_newMeth(C$, 'getSelectedItem$', function () { +return this.selectedObject; +}); + +Clazz_newMeth(C$, 'getSize$', function () { +return this.objects.size$(); +}); + +Clazz_newMeth(C$, 'getElementAt$I', function (index) { +if (index >= 0 && index < this.objects.size$() ) return this.objects.elementAt$I(index); + else return null; +}); + +Clazz_newMeth(C$, 'getIndexOf$O', function (anObject) { +return this.objects.indexOf$O(anObject); +}); + +Clazz_newMeth(C$, ['addElement$TE'], function (anObject) { +this.objects.addElement$TE(anObject); +this.fireIntervalAdded$O$I$I(this, this.objects.size$() - 1, this.objects.size$() - 1); +if (this.objects.size$() == 1 && this.selectedObject == null && anObject != null ) { +this.秘setSelectedItemQuiet$O(anObject); +}}); + +Clazz_newMeth(C$, ['insertElementAt$TE$I'], function (anObject, index) { +this.objects.insertElementAt$TE$I(anObject, index); +this.fireIntervalAdded$O$I$I(this, index, index); +}); + +Clazz_newMeth(C$, 'removeElementAt$I', function (index) { +if (this.getElementAt$I(index) === this.selectedObject ) this.秘setSelectedItemQuiet$O(index > 0 ? this.getElementAt$I(index - 1) : this.getSize$() == 1 ? null : this.getElementAt$I(index + 1)); +this.objects.removeElementAt$I(index); +this.fireIntervalRemoved$O$I$I(this, index, index); +}); + +Clazz_newMeth(C$, 'removeElement$O', function (anObject) { +var index=this.objects.indexOf$O(anObject); +if (index != -1) { +this.removeElementAt$I(index); +}}); + +Clazz_newMeth(C$, 'removeAllElements$', function () { +if (this.objects.size$() > 0) { +var firstIndex=0; +var lastIndex=this.objects.size$() - 1; +this.objects.removeAllElements$(); +this.selectedObject=null; +this.fireIntervalRemoved$O$I$I(this, firstIndex, lastIndex); +} else { +this.selectedObject=null; +}}); + +Clazz_newMeth(C$, '秘setSelectedItemQuiet$O', function (o) { +this.秘isQuiet=(!!this.isAWT$ ||false); +this.setSelectedItem$O(o); +this.秘isQuiet=false; +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:58 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing"),I$=[[0,'javax.swing.event.EventListenerList','javax.swing.event.ChangeListener','javax.swing.event.ChangeEvent']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "DefaultSingleSelectionModel", null, null, 'javax.swing.SingleSelectionModel'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.changeEvent=null; +this.listenerList=null; +this.index=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.changeEvent=null; +this.listenerList=Clazz_new_($I$(1)); +this.index=-1; +}, 1); + +Clazz_newMeth(C$, 'getSelectedIndex$', function () { +return this.index; +}); + +Clazz_newMeth(C$, 'setSelectedIndex$I', function (index) { +if (this.index != index) { +this.index=index; +this.fireStateChanged$(); +}}); + +Clazz_newMeth(C$, 'clearSelection$', function () { +this.setSelectedIndex$I(-1); +}); + +Clazz_newMeth(C$, 'isSelected$', function () { +var ret=false; +if (this.getSelectedIndex$() != -1) { +ret=true; +}return ret; +}); + +Clazz_newMeth(C$, 'addChangeListener$javax_swing_event_ChangeListener', function (l) { +this.listenerList.add$Class$TT(Clazz_getClass($I$(2),['stateChanged$javax_swing_event_ChangeEvent']), l); +}); + +Clazz_newMeth(C$, 'removeChangeListener$javax_swing_event_ChangeListener', function (l) { +this.listenerList.remove$Class$TT(Clazz_getClass($I$(2),['stateChanged$javax_swing_event_ChangeEvent']), l); +}); + +Clazz_newMeth(C$, 'getChangeListeners$', function () { +return this.listenerList.getListeners$Class(Clazz_getClass($I$(2),['stateChanged$javax_swing_event_ChangeEvent'])); +}); + +Clazz_newMeth(C$, 'fireStateChanged$', function () { +var listeners=this.listenerList.getListenerList$(); +for (var i=listeners.length - 2; i >= 0; i-=2) { +if (listeners[i] === Clazz_getClass($I$(2),['stateChanged$javax_swing_event_ChangeEvent']) ) { +if (this.changeEvent == null ) this.changeEvent=Clazz_new_($I$(3).c$$O,[this]); +(listeners[i + 1]).stateChanged$(this.changeEvent); +}} +}); + +Clazz_newMeth(C$, 'getListeners$Class', function (listenerType) { +return this.listenerList.getListeners$Class(listenerType); +}); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:59 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing"),I$=[]; +var C$=Clazz_newClass(P$, "DropMode", null, 'Enum'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +$vals=Clazz_array(C$,[0]); +Clazz_newEnumConst($vals, C$.c$, "USE_SELECTION", 0, []); +Clazz_newEnumConst($vals, C$.c$, "ON", 1, []); +Clazz_newEnumConst($vals, C$.c$, "INSERT", 2, []); +Clazz_newEnumConst($vals, C$.c$, "INSERT_ROWS", 3, []); +Clazz_newEnumConst($vals, C$.c$, "INSERT_COLS", 4, []); +Clazz_newEnumConst($vals, C$.c$, "ON_OR_INSERT", 5, []); +Clazz_newEnumConst($vals, C$.c$, "ON_OR_INSERT_ROWS", 6, []); +Clazz_newEnumConst($vals, C$.c$, "ON_OR_INSERT_COLS", 7, []); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$); +var $vals=[]; +Clazz_newMeth(C$, 'values$', function() { return $vals }, 1); +Clazz_newMeth(C$, 'valueOf$S', function(name) { for (var val in $vals){ if ($vals[val].name == name) return $vals[val]} return null }, 1); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:59 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing.event"),I$=[]; +var C$=Clazz_newClass(P$, "AncestorEvent", null, 'java.awt.AWTEvent'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.ancestor=null; +this.ancestorParent=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$javax_swing_JComponent$I$java_awt_Container$java_awt_Container', function (source, id, ancestor, ancestorParent) { +C$.superclazz.c$$O$I.apply(this, [source, id]); +C$.$init$.apply(this); +this.ancestor=ancestor; +this.ancestorParent=ancestorParent; +}, 1); + +Clazz_newMeth(C$, 'getAncestor$', function () { +return this.ancestor; +}); + +Clazz_newMeth(C$, 'getAncestorParent$', function () { +return this.ancestorParent; +}); + +Clazz_newMeth(C$, 'getComponent$', function () { +return this.getSource$(); +}); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:10 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing.event"),I$=[]; +var C$=Clazz_newInterface(P$, "AncestorListener", null, null, 'java.util.EventListener'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:10 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing.event"),I$=[]; +var C$=Clazz_newClass(P$, "CaretEvent", null, 'java.util.EventObject'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$O', function (source) { +C$.superclazz.c$$O.apply(this, [source]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:10 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing.event"),I$=[]; +var C$=Clazz_newInterface(P$, "CaretListener", null, null, 'java.util.EventListener'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:10 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing.event"),I$=[]; +var C$=Clazz_newClass(P$, "ChangeEvent", null, 'java.util.EventObject'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$O', function (source) { +C$.superclazz.c$$O.apply(this, [source]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:10 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing.event"),I$=[]; +var C$=Clazz_newInterface(P$, "ChangeListener", null, null, 'java.util.EventListener'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:10 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing.event"),I$=[]; +var C$=Clazz_newInterface(P$, "DocumentEvent", function(){ +}); +; +(function(){var C$=Clazz_newClass(P$.DocumentEvent, "EventType", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}); +C$.INSERT=null; +C$.REMOVE=null; +C$.CHANGE=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.INSERT=Clazz_new_(C$.c$$S,["INSERT"]); +C$.REMOVE=Clazz_new_(C$.c$$S,["REMOVE"]); +C$.CHANGE=Clazz_new_(C$.c$$S,["CHANGE"]); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.typeString=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$S', function (s) { +C$.$init$.apply(this); +this.typeString=s; +}, 1); + +Clazz_newMeth(C$, 'toString', function () { +return this.typeString; +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newInterface(P$.DocumentEvent, "ElementChange", function(){ +}); +})() +; +(function(){var C$=Clazz_newClass(P$.DocumentEvent, "EventType", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}); +C$.INSERT=null; +C$.REMOVE=null; +C$.CHANGE=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.INSERT=Clazz_new_(C$.c$$S,["INSERT"]); +C$.REMOVE=Clazz_new_(C$.c$$S,["REMOVE"]); +C$.CHANGE=Clazz_new_(C$.c$$S,["CHANGE"]); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.typeString=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$S', function (s) { +C$.$init$.apply(this); +this.typeString=s; +}, 1); + +Clazz_newMeth(C$, 'toString', function () { +return this.typeString; +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newInterface(P$.DocumentEvent, "ElementChange", function(){ +}); +})() +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:10 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing.event"),I$=[]; +var C$=Clazz_newInterface(P$, "DocumentListener", null, null, 'java.util.EventListener'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:10 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing.event"),p$1={},I$=[[0,'java.lang.reflect.Array']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "EventListenerList"); +C$.NULL_ARRAY=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.NULL_ARRAY=Clazz_array(java.lang.Object, [0]); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.listenerList=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.listenerList=C$.NULL_ARRAY; +}, 1); + +Clazz_newMeth(C$, 'getListenerList$', function () { +return this.listenerList; +}); + +Clazz_newMeth(C$, 'getListeners$Class', function (t) { +var lList=this.listenerList; +var n=p$1.getListenerCount$OA$Class.apply(this, [lList, t]); +var result=Clazz_array(t, n); +var j=0; +for (var i=lList.length - 2; i >= 0; i-=2) { +if (lList[i] === t ) { +result[j++]=lList[i + 1]; +}} +return result; +}); + +Clazz_newMeth(C$, 'getListenerCount$', function () { +return (this.listenerList.length/2|0); +}); + +Clazz_newMeth(C$, 'getListenerCount$Class', function (t) { +var lList=this.listenerList; +return p$1.getListenerCount$OA$Class.apply(this, [lList, t]); +}); + +Clazz_newMeth(C$, 'getListenerCount$OA$Class', function (list, t) { +var count=0; +for (var i=0; i < list.length; i+=2) { +if (t === list[i] ) count++; +} +return count; +}, p$1); + +Clazz_newMeth(C$, 'add$Class$TT', function (t, l) { +if (l == null ) { +return; +}if (this.listenerList === C$.NULL_ARRAY ) { +this.listenerList=Clazz_array(java.lang.Object, -1, [t, l]); +} else { +var i=this.listenerList.length; +var tmp=Clazz_array(java.lang.Object, [i + 2]); +System.arraycopy$O$I$O$I$I(this.listenerList, 0, tmp, 0, i); +tmp[i]=t; +tmp[i + 1]=l; +this.listenerList=tmp; +}}); + +Clazz_newMeth(C$, 'remove$Class$TT', function (t, l) { +if (l == null ) { +return; +}var index=-1; +for (var i=this.listenerList.length - 2; i >= 0; i-=2) { +if ((this.listenerList[i] === t ) && (this.listenerList[i + 1].equals$O(l) == true ) ) { +index=i; +break; +}} +if (index != -1) { +var tmp=Clazz_array(java.lang.Object, [this.listenerList.length - 2]); +System.arraycopy$O$I$O$I$I(this.listenerList, 0, tmp, 0, index); +if (index < tmp.length) System.arraycopy$O$I$O$I$I(this.listenerList, index + 2, tmp, index, tmp.length - index); +this.listenerList=(tmp.length == 0) ? C$.NULL_ARRAY : tmp; +}}); + +Clazz_newMeth(C$, 'toString', function () { +var lList=this.listenerList; +var s="EventListenerList: "; +s += (lList.length/2|0) + " listeners: "; +for (var i=0; i <= lList.length - 2; i+=2) { +s += " type " + (lList[i]).getName$(); +s += " listener " + lList[i + 1]; +} +return s; +}); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:10 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing.event"),I$=[]; +var C$=Clazz_newClass(P$, "ListDataEvent", null, 'java.util.EventObject'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.type=0; +this.index0=0; +this.index1=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'getType$', function () { +return this.type; +}); + +Clazz_newMeth(C$, 'getIndex0$', function () { +return this.index0; +}); + +Clazz_newMeth(C$, 'getIndex1$', function () { +return this.index1; +}); + +Clazz_newMeth(C$, 'c$$O$I$I$I', function (source, type, index0, index1) { +C$.superclazz.c$$O.apply(this, [source]); +C$.$init$.apply(this); +this.type=type; +this.index0=Math.min(index0, index1); +this.index1=Math.max(index0, index1); +}, 1); + +Clazz_newMeth(C$, 'toString', function () { +return this.getClass$().getName$() + "[type=" + this.type + ",index0=" + this.index0 + ",index1=" + this.index1 + "]" ; +}); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:10 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing.event"),I$=[]; +var C$=Clazz_newInterface(P$, "ListDataListener", null, null, 'java.util.EventListener'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:10 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing.event"),I$=[]; +var C$=Clazz_newClass(P$, "UndoableEditEvent", null, 'java.util.EventObject'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.myEdit=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$O$javax_swing_undo_UndoableEdit', function (source, edit) { +C$.superclazz.c$$O.apply(this, [source]); +C$.$init$.apply(this); +this.myEdit=edit; +}, 1); + +Clazz_newMeth(C$, 'getEdit$', function () { +return this.myEdit; +}); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:11 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing.event"),I$=[]; +var C$=Clazz_newInterface(P$, "UndoableEditListener", null, null, 'java.util.EventListener'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:11 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing"),I$=[[0,'java.awt.KeyboardFocusManager','javax.swing.DelegatingDefaultFocusManager','java.awt.DefaultFocusTraversalPolicy']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "FocusManager", null, 'java.awt.DefaultKeyboardFocusManager'); +C$.enabled=false; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.enabled=true; +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'getCurrentManager$', function () { +var manager=$I$(1).getCurrentKeyboardFocusManager$(); +if (Clazz_instanceOf(manager, "javax.swing.FocusManager")) { +return manager; +} else { +return Clazz_new_($I$(2).c$$java_awt_KeyboardFocusManager,[manager]); +}}, 1); + +Clazz_newMeth(C$, 'setCurrentManager$javax_swing_FocusManager', function (aFocusManager) { +var toSet=(Clazz_instanceOf(aFocusManager, "javax.swing.DelegatingDefaultFocusManager")) ? (aFocusManager).getDelegate$() : aFocusManager; +$I$(1).setCurrentKeyboardFocusManager$java_awt_KeyboardFocusManager(toSet); +}, 1); + +Clazz_newMeth(C$, 'disableSwingFocusManager$', function () { +if (C$.enabled) { +C$.enabled=false; +$I$(1).getCurrentKeyboardFocusManager$().setDefaultFocusTraversalPolicy$java_awt_FocusTraversalPolicy(Clazz_new_($I$(3))); +}}, 1); + +Clazz_newMeth(C$, 'isFocusManagerEnabled$', function () { +return C$.enabled; +}, 1); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:59 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing"),I$=[]; +var C$=Clazz_newClass(P$, "InternalFrameFocusTraversalPolicy", null, 'java.awt.FocusTraversalPolicy'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'getInitialComponent$javax_swing_JInternalFrame', function (frame) { +return this.getDefaultComponent$java_awt_Container(frame); +}); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:59 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing"),I$=[[0,'java.util.LinkedList']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "LayoutComparator", null, null, ['java.util.Comparator', 'java.io.Serializable']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.horizontal=false; +this.leftToRight=false; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.horizontal=true; +this.leftToRight=true; +}, 1); + +Clazz_newMeth(C$, 'setComponentOrientation$java_awt_ComponentOrientation', function (orientation) { +this.horizontal=orientation.isHorizontal$(); +this.leftToRight=orientation.isLeftToRight$(); +}); + +Clazz_newMeth(C$, ['compare$O$O','compare$','compare$TT$TT'], function (o1, o2) { +var a=o1; +var b=o2; +if (a === b ) { +return 0; +}if (a.getParent$() !== b.getParent$() ) { +var aAncestory; +var bAncestory; +for (aAncestory=Clazz_new_($I$(1)); a != null ; a=a.getParent$()) { +aAncestory.add$TE(a); +if (a.isWindowOrJSApplet$()) { +break; +}} +if (a == null ) { +throw Clazz_new_(Clazz_load('ClassCastException')); +}for (bAncestory=Clazz_new_($I$(1)); b != null ; b=b.getParent$()) { +bAncestory.add$TE(b); +if (b.isWindowOrJSApplet$()) { +break; +}} +if (b == null ) { +throw Clazz_new_(Clazz_load('ClassCastException')); +}for (var aIter=aAncestory.listIterator$I(aAncestory.size$()), bIter=bAncestory.listIterator$I(bAncestory.size$()); ; ) { +if (aIter.hasPrevious$()) { +a=aIter.previous$(); +} else { +return -1; +}if (bIter.hasPrevious$()) { +b=bIter.previous$(); +} else { +return 1; +}if (a !== b ) { +break; +}} +}var ax=a.getX$(); +var ay=a.getY$(); +var bx=b.getX$(); +var by=b.getY$(); +var ap=a.getParent$(); +var bp=b.getParent$(); +var zOrder=(ap == null ? 1 : bp == null ? -1 : ap.getComponentZOrder$java_awt_Component(a) - bp.getComponentZOrder$java_awt_Component(b)); +if (this.horizontal) { +if (this.leftToRight) { +if (Math.abs(ay - by) < 10) { +return (ax < bx) ? -1 : ((ax > bx) ? 1 : zOrder); +} else { +return (ay < by) ? -1 : 1; +}} else { +if (Math.abs(ay - by) < 10) { +return (ax > bx) ? -1 : ((ax < bx) ? 1 : zOrder); +} else { +return (ay < by) ? -1 : 1; +}}} else { +if (this.leftToRight) { +if (Math.abs(ax - bx) < 10) { +return (ay < by) ? -1 : ((ay > by) ? 1 : zOrder); +} else { +return (ax < bx) ? -1 : 1; +}} else { +if (Math.abs(ax - bx) < 10) { +return (ay < by) ? -1 : ((ay > by) ? 1 : zOrder); +} else { +return (ax > bx) ? -1 : 1; +}}}}); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:06 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing"),I$=[[0,'javax.swing.SwingDefaultFocusTraversalPolicy','javax.swing.LayoutComparator']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "LayoutFocusTraversalPolicy", null, 'javax.swing.SortingFocusTraversalPolicy', 'java.io.Serializable'); +C$.$fitnessTestPolicy=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.$fitnessTestPolicy=Clazz_new_($I$(1)); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.superclazz.c$$java_util_Comparator.apply(this, [Clazz_new_($I$(2))]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'c$$java_util_Comparator', function (c) { +C$.superclazz.c$$java_util_Comparator.apply(this, [c]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'getComponentAfter$java_awt_Container$java_awt_Component', function (aContainer, aComponent) { +if (aContainer == null || aComponent == null ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["aContainer and aComponent cannot be null"]); +}var comparator=this.getComparator$(); +if (Clazz_instanceOf(comparator, "javax.swing.LayoutComparator")) { +(comparator).setComponentOrientation$java_awt_ComponentOrientation(aContainer.getComponentOrientation$()); +}return C$.superclazz.prototype.getComponentAfter$java_awt_Container$java_awt_Component.apply(this, [aContainer, aComponent]); +}); + +Clazz_newMeth(C$, 'getComponentBefore$java_awt_Container$java_awt_Component', function (aContainer, aComponent) { +if (aContainer == null || aComponent == null ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["aContainer and aComponent cannot be null"]); +}var comparator=this.getComparator$(); +if (Clazz_instanceOf(comparator, "javax.swing.LayoutComparator")) { +(comparator).setComponentOrientation$java_awt_ComponentOrientation(aContainer.getComponentOrientation$()); +}return C$.superclazz.prototype.getComponentBefore$java_awt_Container$java_awt_Component.apply(this, [aContainer, aComponent]); +}); + +Clazz_newMeth(C$, 'getFirstComponent$java_awt_Container', function (aContainer) { +if (aContainer == null ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["aContainer cannot be null"]); +}var comparator=this.getComparator$(); +if (Clazz_instanceOf(comparator, "javax.swing.LayoutComparator")) { +(comparator).setComponentOrientation$java_awt_ComponentOrientation(aContainer.getComponentOrientation$()); +}return C$.superclazz.prototype.getFirstComponent$java_awt_Container.apply(this, [aContainer]); +}); + +Clazz_newMeth(C$, 'getLastComponent$java_awt_Container', function (aContainer) { +if (aContainer == null ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["aContainer cannot be null"]); +}var comparator=this.getComparator$(); +if (Clazz_instanceOf(comparator, "javax.swing.LayoutComparator")) { +(comparator).setComponentOrientation$java_awt_ComponentOrientation(aContainer.getComponentOrientation$()); +}return C$.superclazz.prototype.getLastComponent$java_awt_Container.apply(this, [aContainer]); +}); + +Clazz_newMeth(C$, 'accept$java_awt_Component', function (aComponent) { +if (!C$.superclazz.prototype.accept$java_awt_Component.apply(this, [aComponent])) { +return false; +} else if (Clazz_instanceOf(aComponent, "javax.swing.JTable")) { +return false; +} else if (Clazz_instanceOf(aComponent, "javax.swing.JComboBox")) { +var box=aComponent; +return (box.getUI$()).isFocusTraversable$javax_swing_JComboBox(box); +} else if (Clazz_instanceOf(aComponent, "javax.swing.JComponent")) { +var jComponent=aComponent; +var inputMap=jComponent.getInputMap$I$Z(0, false); +while (inputMap != null && inputMap.size$() == 0 ){ +inputMap=inputMap.getParent$(); +} +if (inputMap != null ) { +return true; +}}return C$.$fitnessTestPolicy.accept$java_awt_Component(aComponent); +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:06 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing"),p$1={},I$=[[0,'javax.swing.SwingContainerOrderFocusTraversalPolicy','java.util.ArrayList','java.util.Collections']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "SortingFocusTraversalPolicy", null, 'javax.swing.InternalFrameFocusTraversalPolicy'); +C$.fitnessTestPolicy=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.fitnessTestPolicy=Clazz_new_($I$(1)); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.comparator=null; +this.implicitDownCycleTraversal=false; +this.cachedRoot=null; +this.cachedCycle=null; +this.FORWARD_TRAVERSAL=0; +this.BACKWARD_TRAVERSAL=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.implicitDownCycleTraversal=true; +this.FORWARD_TRAVERSAL=0; +this.BACKWARD_TRAVERSAL=1; +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +Clazz_super_(C$, this,1); +}, 1); + +Clazz_newMeth(C$, 'c$$java_util_Comparator', function (comparator) { +Clazz_super_(C$, this,1); +this.comparator=comparator; +}, 1); + +Clazz_newMeth(C$, 'getFocusTraversalCycle$java_awt_Container', function (aContainer) { +var cycle=Clazz_new_($I$(2)); +p$1.enumerateAndSortCycle$java_awt_Container$java_util_List.apply(this, [aContainer, cycle]); +return cycle; +}, p$1); + +Clazz_newMeth(C$, 'getComponentIndex$java_util_List$java_awt_Component', function (cycle, aComponent) { +var index; +try { +index=$I$(3).binarySearch$java_util_List$TT$java_util_Comparator(cycle, aComponent, this.comparator); +} catch (e) { +if (Clazz_exceptionOf(e,"ClassCastException")){ +return -1; +} else { +throw e; +} +} +if (index < 0) { +index=cycle.indexOf$O(aComponent); +}return index; +}, p$1); + +Clazz_newMeth(C$, 'enumerateAndSortCycle$java_awt_Container$java_util_List', function (focusCycleRoot, cycle) { +if (focusCycleRoot.isShowing$()) { +p$1.enumerateCycle$java_awt_Container$java_util_List.apply(this, [focusCycleRoot, cycle]); +$I$(3).sort$java_util_List$java_util_Comparator(cycle, this.comparator); +}}, p$1); + +Clazz_newMeth(C$, 'enumerateCycle$java_awt_Container$java_util_List', function (container, cycle) { +if (!(container.isVisible$() && container.isDisplayable$() )) { +return; +}cycle.add$TE(container); +var components=container.getComponents$(); +for (var comp, $comp = 0, $$comp = components; $comp<$$comp.length&&((comp=($$comp[$comp])),1);$comp++) { +if (Clazz_instanceOf(comp, "java.awt.Container")) { +var cont=comp; +if (!cont.isFocusCycleRoot$() && !cont.isFocusTraversalPolicyProvider$() && !((Clazz_instanceOf(cont, "javax.swing.JComponent")) && (cont).isManagingFocus$() ) ) { +p$1.enumerateCycle$java_awt_Container$java_util_List.apply(this, [cont, cycle]); +continue; +}}cycle.add$TE(comp); +} +}, p$1); + +Clazz_newMeth(C$, 'getTopmostProvider$java_awt_Container$java_awt_Component', function (focusCycleRoot, aComponent) { +var aCont=aComponent.getParent$(); +var ftp=null; +while (aCont !== focusCycleRoot && aCont != null ){ +if (aCont.isFocusTraversalPolicyProvider$()) { +ftp=aCont; +}aCont=aCont.getParent$(); +} +if (aCont == null ) { +return null; +}return ftp; +}); + +Clazz_newMeth(C$, 'getComponentDownCycle$java_awt_Component$I', function (comp, traversalDirection) { +var retComp=null; +if (Clazz_instanceOf(comp, "java.awt.Container")) { +var cont=comp; +if (cont.isFocusCycleRoot$()) { +if (this.getImplicitDownCycleTraversal$()) { +retComp=cont.getFocusTraversalPolicy$().getDefaultComponent$java_awt_Container(cont); +} else { +return null; +}} else if (cont.isFocusTraversalPolicyProvider$()) { +retComp=(traversalDirection == 0 ? cont.getFocusTraversalPolicy$().getDefaultComponent$java_awt_Container(cont) : cont.getFocusTraversalPolicy$().getLastComponent$java_awt_Container(cont)); +}}return retComp; +}, p$1); + +Clazz_newMeth(C$, 'getComponentAfter$java_awt_Container$java_awt_Component', function (aContainer, aComponent) { +if (aContainer == null || aComponent == null ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["aContainer and aComponent cannot be null"]); +}if (!aContainer.isFocusTraversalPolicyProvider$() && !aContainer.isFocusCycleRoot$() ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["aContainer should be focus cycle root or focus traversal policy provider"]); +} else if (aContainer.isFocusCycleRoot$() && !aComponent.isFocusCycleRoot$java_awt_Container(aContainer) ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["aContainer is not a focus cycle root of aComponent"]); +}var comp=p$1.getComponentDownCycle$java_awt_Component$I.apply(this, [aComponent, 0]); +if (comp != null ) { +return comp; +}var provider=this.getTopmostProvider$java_awt_Container$java_awt_Component(aContainer, aComponent); +if (provider != null ) { +var policy=provider.getFocusTraversalPolicy$(); +var afterComp=policy.getComponentAfter$java_awt_Container$java_awt_Component(provider, aComponent); +if (afterComp != null ) { +comp=afterComp; +}aComponent=provider; +}if (comp == null ) { +var cycle=p$1.getFocusTraversalCycle$java_awt_Container.apply(this, [aContainer]); +var index=p$1.getComponentIndex$java_util_List$java_awt_Component.apply(this, [cycle, aComponent]); +if (index < 0) { +comp=this.getFirstComponent$java_awt_Container(aContainer); +} else { +for (index++; index < cycle.size$(); index++) { +comp=cycle.get$I(index); +if (this.accept$java_awt_Component(comp)) { +break; +} else if ((comp=p$1.getComponentDownCycle$java_awt_Component$I.apply(this, [comp, 0])) != null ) { +break; +}} +}if (comp == null && aContainer.isFocusCycleRoot$() ) { +this.cachedRoot=aContainer; +this.cachedCycle=cycle; +comp=this.getFirstComponent$java_awt_Container(aContainer); +this.cachedRoot=null; +this.cachedCycle=null; +}}return comp; +}); + +Clazz_newMeth(C$, 'getComponentBefore$java_awt_Container$java_awt_Component', function (aContainer, aComponent) { +if (aContainer == null || aComponent == null ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["aContainer and aComponent cannot be null"]); +}if (!aContainer.isFocusTraversalPolicyProvider$() && !aContainer.isFocusCycleRoot$() ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["aContainer should be focus cycle root or focus traversal policy provider"]); +} else if (aContainer.isFocusCycleRoot$() && !aComponent.isFocusCycleRoot$java_awt_Container(aContainer) ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["aContainer is not a focus cycle root of aComponent"]); +}var provider=this.getTopmostProvider$java_awt_Container$java_awt_Component(aContainer, aComponent); +if (provider != null ) { +var policy=provider.getFocusTraversalPolicy$(); +var beforeComp=policy.getComponentBefore$java_awt_Container$java_awt_Component(provider, aComponent); +if (beforeComp != null ) { +return beforeComp; +}aComponent=provider; +if (this.accept$java_awt_Component(aComponent)) { +return aComponent; +}}var cycle=p$1.getFocusTraversalCycle$java_awt_Container.apply(this, [aContainer]); +var index=p$1.getComponentIndex$java_util_List$java_awt_Component.apply(this, [cycle, aComponent]); +if (index < 0) { +return this.getLastComponent$java_awt_Container(aContainer); +}var comp; +var tryComp; +for (index--; index >= 0; index--) { +comp=cycle.get$I(index); +if (comp !== aContainer && (tryComp=p$1.getComponentDownCycle$java_awt_Component$I.apply(this, [comp, 1])) != null ) { +return tryComp; +} else if (this.accept$java_awt_Component(comp)) { +return comp; +}} +if (aContainer.isFocusCycleRoot$()) { +this.cachedRoot=aContainer; +this.cachedCycle=cycle; +comp=this.getLastComponent$java_awt_Container(aContainer); +this.cachedRoot=null; +this.cachedCycle=null; +return comp; +}return null; +}); + +Clazz_newMeth(C$, 'getFirstComponent$java_awt_Container', function (aContainer) { +var cycle; +if (aContainer == null ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["aContainer cannot be null"]); +}if (this.cachedRoot === aContainer ) { +cycle=this.cachedCycle; +} else { +cycle=p$1.getFocusTraversalCycle$java_awt_Container.apply(this, [aContainer]); +}if (cycle.size$() == 0) { +return null; +}for (var comp, $comp = cycle.iterator$(); $comp.hasNext$()&&((comp=($comp.next$())),1);) { +if (this.accept$java_awt_Component(comp)) { +return comp; +} else if (comp !== aContainer && (comp=p$1.getComponentDownCycle$java_awt_Component$I.apply(this, [comp, 0])) != null ) { +return comp; +}} +return null; +}); + +Clazz_newMeth(C$, 'getLastComponent$java_awt_Container', function (aContainer) { +var cycle; +if (aContainer == null ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["aContainer cannot be null"]); +}if (this.cachedRoot === aContainer ) { +cycle=this.cachedCycle; +} else { +cycle=p$1.getFocusTraversalCycle$java_awt_Container.apply(this, [aContainer]); +}if (cycle.size$() == 0) { +return null; +}for (var i=cycle.size$() - 1; i >= 0; i--) { +var comp=cycle.get$I(i); +if (this.accept$java_awt_Component(comp)) { +return comp; +} else if (Clazz_instanceOf(comp, "java.awt.Container") && comp !== aContainer ) { +var cont=comp; +if (cont.isFocusTraversalPolicyProvider$()) { +return cont.getFocusTraversalPolicy$().getLastComponent$java_awt_Container(cont); +}}} +return null; +}); + +Clazz_newMeth(C$, 'getDefaultComponent$java_awt_Container', function (aContainer) { +return this.getFirstComponent$java_awt_Container(aContainer); +}); + +Clazz_newMeth(C$, 'setImplicitDownCycleTraversal$Z', function (implicitDownCycleTraversal) { +this.implicitDownCycleTraversal=implicitDownCycleTraversal; +}); + +Clazz_newMeth(C$, 'getImplicitDownCycleTraversal$', function () { +return this.implicitDownCycleTraversal; +}); + +Clazz_newMeth(C$, 'setComparator$java_util_Comparator', function (comparator) { +this.comparator=comparator; +}); + +Clazz_newMeth(C$, 'getComparator$', function () { +return this.comparator; +}); + +Clazz_newMeth(C$, 'accept$java_awt_Component', function (aComponent) { +return C$.fitnessTestPolicy.accept$java_awt_Component(aComponent); +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:07 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing"),I$=[]; +var C$=Clazz_newClass(P$, "SwingContainerOrderFocusTraversalPolicy", null, 'java.awt.ContainerOrderFocusTraversalPolicy'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'accept$java_awt_Component', function (aComponent) { +return C$.superclazz.prototype.accept$java_awt_Component.apply(this, [aComponent]); +}); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:07 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing"),I$=[]; +var C$=Clazz_newClass(P$, "SwingDefaultFocusTraversalPolicy", null, 'java.awt.DefaultFocusTraversalPolicy'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'accept$java_awt_Component', function (aComponent) { +return C$.superclazz.prototype.accept$java_awt_Component.apply(this, [aComponent]); +}); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:06 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing"),I$=[[0,'javax.swing.ArrayTable','javax.swing.KeyStroke','java.util.HashMap']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "InputMap"); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.arrayTable=null; +this.parent=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'setParent$javax_swing_InputMap', function (map) { +this.parent=map; +}); + +Clazz_newMeth(C$, 'getParent$', function () { +return this.parent; +}); + +Clazz_newMeth(C$, 'put$javax_swing_KeyStroke$O', function (keyStroke, actionMapKey) { +if (keyStroke == null ) { +return; +}if (actionMapKey == null ) { +this.remove$javax_swing_KeyStroke(keyStroke); +} else { +if (this.arrayTable == null ) { +this.arrayTable=Clazz_new_($I$(1)); +}this.arrayTable.put$O$O(keyStroke, actionMapKey); +}}); + +Clazz_newMeth(C$, 'get$javax_swing_KeyStroke', function (keyStroke) { +if (this.arrayTable == null ) { +var parent=this.getParent$(); +if (parent != null ) { +return parent.get$javax_swing_KeyStroke(keyStroke); +}return null; +}var value=this.arrayTable.get$O(keyStroke); +if (value == null ) { +var parent=this.getParent$(); +if (parent != null ) { +return parent.get$javax_swing_KeyStroke(keyStroke); +}}return value; +}); + +Clazz_newMeth(C$, 'remove$javax_swing_KeyStroke', function (key) { +if (this.arrayTable != null ) { +this.arrayTable.remove$O(key); +}}); + +Clazz_newMeth(C$, 'clear$', function () { +if (this.arrayTable != null ) { +this.arrayTable.clear$(); +}}); + +Clazz_newMeth(C$, 'keys$', function () { +if (this.arrayTable == null ) { +return null; +}var keys=Clazz_array($I$(2), [this.arrayTable.size$()]); +this.arrayTable.getKeys$OA(keys); +return keys; +}); + +Clazz_newMeth(C$, 'size$', function () { +if (this.arrayTable == null ) { +return 0; +}return this.arrayTable.size$(); +}); + +Clazz_newMeth(C$, 'allKeys$', function () { +var count=this.size$(); +var parent=this.getParent$(); +if (count == 0) { +if (parent != null ) { +return parent.allKeys$(); +}return this.keys$(); +}if (parent == null ) { +return this.keys$(); +}var keys=this.keys$(); +var pKeys=parent.allKeys$(); +if (pKeys == null ) { +return keys; +}if (keys == null ) { +return pKeys; +}var keyMap=Clazz_new_($I$(3)); +var counter; +for (counter=keys.length - 1; counter >= 0; counter--) { +keyMap.put$TK$TV(keys[counter], keys[counter]); +} +for (counter=pKeys.length - 1; counter >= 0; counter--) { +keyMap.put$TK$TV(pKeys[counter], pKeys[counter]); +} +var allKeys=Clazz_array($I$(2), [keyMap.size$()]); +return keyMap.keySet$().toArray$TTA(allKeys); +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:59 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing"),p$1={},I$=[[0,'java.awt.Color','javax.swing.JComponent','java.awt.BorderLayout','javax.swing.JRootPane','javax.swing.SwingUtilities','javax.swing.RepaintManager']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "JApplet", null, 'java.applet.JSApplet', 'javax.swing.RootPaneContainer'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.rootPane=null; +this.rootPaneCheckingEnabled=false; +this.transferHandler=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.rootPaneCheckingEnabled=false; +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.superclazz.c$.apply(this, []); +C$.$init$.apply(this); +this.秘paintClass=this.秘updateClass=C$ ||null; +this.setFrameViewer$swingjs_JSFrameViewer(this.秘appletViewer); +p$1.setJApplet.apply(this, []); +this.updateUI$(); +}, 1); + +Clazz_newMeth(C$, 'getUIClassID$', function () { +return "AppletUI"; +}); + +Clazz_newMeth(C$, 'setPanelUIClassID$', function () { +}); + +Clazz_newMeth(C$, 'setJApplet', function () { +this.setRootPane$javax_swing_JRootPane(this.createRootPane$()); +this.rootPane.setFrameViewer$swingjs_JSFrameViewer(this.秘appletViewer); +this.setForeground$java_awt_Color($I$(1).black); +this.setBackground$java_awt_Color($I$(1).white); +this.setLocale$java_util_Locale($I$(2).getDefaultLocale$()); +this.setLayout$java_awt_LayoutManager(Clazz_new_($I$(3))); +this.setRootPaneCheckingEnabled$Z(true); +this.setFocusTraversalPolicyProvider$Z(true); +this.enableEvents$J(8); +}, p$1); + +Clazz_newMeth(C$, 'createRootPane$', function () { +var rp=Clazz_new_($I$(4).c$$S$Z$java_awt_Container,["", true, this]); +rp.setOpaque$Z(true); +return rp; +}); + +Clazz_newMeth(C$, 'setTransferHandler$javax_swing_TransferHandler', function (newHandler) { +var oldHandler=this.transferHandler; +this.transferHandler=newHandler; +$I$(5).installSwingDropTargetAsNecessary$java_awt_Component$javax_swing_TransferHandler(this, this.transferHandler); +this.firePropertyChange$S$O$O("transferHandler", oldHandler, newHandler); +}); + +Clazz_newMeth(C$, 'getTransferHandler$', function () { +return this.transferHandler; +}); + +Clazz_newMeth(C$, 'paint$java_awt_Graphics', function (g) { +(g).setBackground$java_awt_Color(this.getBackground$()); +(g).setColor$java_awt_Color(this.getForeground$()); +this.rootPane.paint$java_awt_Graphics(g); +}); + +Clazz_newMeth(C$, 'update$java_awt_Graphics', function (g) { +this.paint$java_awt_Graphics(g); +}); + +Clazz_newMeth(C$, 'setJMenuBar$javax_swing_JMenuBar', function (menuBar) { +this.getRootPane$().setMenuBar$javax_swing_JMenuBar(menuBar); +}); + +Clazz_newMeth(C$, 'getJMenuBar$', function () { +return this.getRootPane$().getMenuBar$(); +}); + +Clazz_newMeth(C$, 'isRootPaneCheckingEnabled$', function () { +return this.rootPaneCheckingEnabled; +}); + +Clazz_newMeth(C$, 'setRootPaneCheckingEnabled$Z', function (enabled) { +this.rootPaneCheckingEnabled=enabled; +}); + +Clazz_newMeth(C$, 'addImpl$java_awt_Component$O$I', function (comp, constraints, index) { +if (this.isRootPaneCheckingEnabled$()) { +this.getContentPane$().add$java_awt_Component$O$I(comp, constraints, index); +return; +}this.addImplCont$java_awt_Component$O$I(comp, constraints, index); +}); + +Clazz_newMeth(C$, 'remove$java_awt_Component', function (comp) { +if (comp === this.rootPane ) { +C$.superclazz.prototype.remove$java_awt_Component.apply(this, [comp]); +} else { +this.getContentPane$().remove$java_awt_Component(comp); +}}); + +Clazz_newMeth(C$, 'setLayout$java_awt_LayoutManager', function (manager) { +if (this.isRootPaneCheckingEnabled$()) { +this.getContentPane$().setLayout$java_awt_LayoutManager(manager); +} else { +C$.superclazz.prototype.setLayout$java_awt_LayoutManager.apply(this, [manager]); +}}); + +Clazz_newMeth(C$, 'getRootPane$', function () { +return this.rootPane; +}); + +Clazz_newMeth(C$, 'setRootPane$javax_swing_JRootPane', function (root) { +if (this.rootPane != null ) { +this.remove$java_awt_Component(this.rootPane); +}this.rootPane=root; +if (this.rootPane != null ) { +var checkingEnabled=this.isRootPaneCheckingEnabled$(); +try { +this.setRootPaneCheckingEnabled$Z(false); +this.add$java_awt_Component$O(this.rootPane, "Center"); +} finally { +this.setRootPaneCheckingEnabled$Z(checkingEnabled); +} +}}); + +Clazz_newMeth(C$, 'getContentPane$', function () { +return this.getRootPane$().getContentPane$(); +}); + +Clazz_newMeth(C$, 'setContentPane$java_awt_Container', function (contentPane) { +this.getRootPane$().setContentPane$java_awt_Container(contentPane); +}); + +Clazz_newMeth(C$, 'getLayeredPane$', function () { +return this.getRootPane$().getLayeredPane$(); +}); + +Clazz_newMeth(C$, 'setLayeredPane$javax_swing_JLayeredPane', function (layeredPane) { +this.getRootPane$().setLayeredPane$javax_swing_JLayeredPane(layeredPane); +}); + +Clazz_newMeth(C$, 'getGlassPane$', function () { +return this.getRootPane$().getGlassPane$(); +}); + +Clazz_newMeth(C$, 'setGlassPane$java_awt_Component', function (glassPane) { +this.getRootPane$().setGlassPane$java_awt_Component(glassPane); +}); + +Clazz_newMeth(C$, 'getGraphics$', function () { +$I$(2).getGraphicsInvoked$java_awt_Component(this); +return C$.superclazz.prototype.getGraphics$.apply(this, []); +}); + +Clazz_newMeth(C$, 'repaint$J$I$I$I$I', function (time, x, y, width, height) { +if ((!this.秘isAWT$() || !this.canPaint$() ) && $I$(6).HANDLE_TOP_LEVEL_PAINT ) { +$I$(6).currentManager$java_awt_Component(this).addDirtyRegion$java_applet_JSApplet$I$I$I$I(this, x, y, width, height); +} else { +C$.superclazz.prototype.repaint$J$I$I$I$I.apply(this, [time, x, y, width, height]); +}}); + +Clazz_newMeth(C$, 'repaintNow$', function () { +this.repaint$J$I$I$I$I(100, 0, 0, this.getWidth$(), this.getHeight$()); +}); + +Clazz_newMeth(C$, 'paramString$', function () { +var rootPaneString=(this.rootPane != null ? this.rootPane.toString() : ""); +var rootPaneCheckingEnabledString=(this.rootPaneCheckingEnabled ? "true" : "false"); +return C$.superclazz.prototype.paramString$.apply(this, []) + ",rootPane=" + rootPaneString + ",rootPaneCheckingEnabled=" + rootPaneCheckingEnabledString ; +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:59 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing"),I$=[[0,'javax.swing.DefaultButtonModel','javax.swing.SwingUtilities']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "JButton", null, 'javax.swing.AbstractButton'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.c$$S$javax_swing_Icon.apply(this, [null, null]); +}, 1); + +Clazz_newMeth(C$, 'c$$javax_swing_Icon', function (icon) { +C$.c$$S$javax_swing_Icon.apply(this, [null, icon]); +}, 1); + +Clazz_newMeth(C$, 'c$$S', function (text) { +C$.c$$S$javax_swing_Icon.apply(this, [text, null]); +}, 1); + +Clazz_newMeth(C$, 'c$$javax_swing_Action', function (a) { +C$.c$.apply(this, []); +this.setAction$javax_swing_Action(a); +}, 1); + +Clazz_newMeth(C$, 'c$$S$javax_swing_Icon', function (text, icon) { +Clazz_super_(C$, this,1); +this.setModel$(); +this.init$S$javax_swing_Icon(text, icon); +this.setOpaque$Z(true); +}, 1); + +Clazz_newMeth(C$, 'setModel$', function () { +this.setModel$javax_swing_ButtonModel(Clazz_new_($I$(1))); +}); + +Clazz_newMeth(C$, 'getUIClassID$', function () { +return "ButtonUI"; +}); + +Clazz_newMeth(C$, 'isDefaultButton$', function () { +var root=$I$(2).getRootPane$java_awt_Component(this); +if (root != null ) { +return root.getDefaultButton$() === this ; +}return false; +}); + +Clazz_newMeth(C$, 'isDefaultCapable$', function () { +return this.defaultCapable; +}); + +Clazz_newMeth(C$, 'setDefaultCapable$Z', function (defaultCapable) { +var oldDefaultCapable=this.defaultCapable; +this.defaultCapable=defaultCapable; +this.firePropertyChange$S$Z$Z("defaultCapable", oldDefaultCapable, defaultCapable); +}); + +Clazz_newMeth(C$, 'removeNotify$', function () { +var root=$I$(2).getRootPane$java_awt_Component(this); +if (root != null && root.getDefaultButton$() === this ) { +root.setDefaultButton$javax_swing_JButton(null); +}C$.superclazz.prototype.removeNotify$.apply(this, []); +}); + +Clazz_newMeth(C$, 'paramString$', function () { +var defaultCapableString=(this.defaultCapable ? "true" : "false"); +return C$.superclazz.prototype.paramString$.apply(this, []) + ",defaultCapable=" + defaultCapableString ; +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:59 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing"),I$=[[0,'Boolean']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "JCheckBox", null, 'javax.swing.JToggleButton'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.flat=false; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.flat=false; +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.c$$S$javax_swing_Icon$Z.apply(this, [null, null, false]); +}, 1); + +Clazz_newMeth(C$, 'c$$javax_swing_Icon', function (icon) { +C$.c$$S$javax_swing_Icon$Z.apply(this, [null, icon, false]); +}, 1); + +Clazz_newMeth(C$, 'c$$javax_swing_Icon$Z', function (icon, selected) { +C$.c$$S$javax_swing_Icon$Z.apply(this, [null, icon, selected]); +}, 1); + +Clazz_newMeth(C$, 'c$$S', function (text) { +C$.c$$S$javax_swing_Icon$Z.apply(this, [text, null, false]); +}, 1); + +Clazz_newMeth(C$, 'c$$javax_swing_Action', function (a) { +C$.c$.apply(this, []); +this.setAction$javax_swing_Action(a); +}, 1); + +Clazz_newMeth(C$, 'c$$S$Z', function (text, selected) { +C$.c$$S$javax_swing_Icon$Z.apply(this, [text, null, selected]); +}, 1); + +Clazz_newMeth(C$, 'c$$S$javax_swing_Icon', function (text, icon) { +C$.c$$S$javax_swing_Icon$Z.apply(this, [text, icon, false]); +}, 1); + +Clazz_newMeth(C$, 'c$$S$javax_swing_Icon$Z', function (text, icon, selected) { +C$.superclazz.c$$S$javax_swing_Icon$Z.apply(this, [text, icon, selected]); +C$.$init$.apply(this); +this.setUIProperty$S$O("borderPainted", $I$(1).FALSE); +this.setHorizontalAlignment$I(10); +}, 1); + +Clazz_newMeth(C$, 'getUIClassID$', function () { +return "CheckBoxUI"; +}); + +Clazz_newMeth(C$, 'setBorderPaintedFlat$Z', function (b) { +var oldValue=this.flat; +this.flat=b; +this.firePropertyChange$S$Z$Z("borderPaintedFlat", oldValue, this.flat); +if (b != oldValue ) { +this.revalidate$(); +this.秘repaint$(); +}}); + +Clazz_newMeth(C$, 'isBorderPaintedFlat$', function () { +return this.flat; +}); + +Clazz_newMeth(C$, 'setIconFromAction$javax_swing_Action', function (a) { +}); + +Clazz_newMeth(C$, 'paramString$', function () { +return C$.superclazz.prototype.paramString$.apply(this, []); +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:59 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing"),I$=[[0,['javax.swing.JToggleButton','.ToggleButtonModel']]],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "JCheckBoxMenuItem", null, 'javax.swing.JMenuItem', 'javax.swing.SwingConstants'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.c$$S$javax_swing_Icon$Z.apply(this, [null, null, false]); +}, 1); + +Clazz_newMeth(C$, 'c$$javax_swing_Icon', function (icon) { +C$.c$$S$javax_swing_Icon$Z.apply(this, [null, icon, false]); +}, 1); + +Clazz_newMeth(C$, 'c$$S', function (text) { +C$.c$$S$javax_swing_Icon$Z.apply(this, [text, null, false]); +}, 1); + +Clazz_newMeth(C$, 'c$$javax_swing_Action', function (a) { +C$.c$.apply(this, []); +this.setAction$javax_swing_Action(a); +}, 1); + +Clazz_newMeth(C$, 'c$$S$javax_swing_Icon', function (text, icon) { +C$.c$$S$javax_swing_Icon$Z.apply(this, [text, icon, false]); +}, 1); + +Clazz_newMeth(C$, 'c$$S$Z', function (text, b) { +C$.c$$S$javax_swing_Icon$Z.apply(this, [text, null, b]); +}, 1); + +Clazz_newMeth(C$, 'c$$S$javax_swing_Icon$Z', function (text, icon, b) { +C$.superclazz.c$$S$javax_swing_Icon.apply(this, [text, icon]); +C$.$init$.apply(this); +this.setSelected$Z(b); +this.setFocusable$Z(false); +}, 1); + +Clazz_newMeth(C$, 'getUIClassID$', function () { +return "CheckBoxMenuItemUI"; +}); + +Clazz_newMeth(C$, 'setModel$', function () { +this.setModel$javax_swing_ButtonModel(Clazz_new_($I$(1))); +}); + +Clazz_newMeth(C$, 'getState$', function () { +return this.isSelected$(); +}); + +Clazz_newMeth(C$, 'setState$Z', function (b) { +this.setSelected$Z(b); +}); + +Clazz_newMeth(C$, 'getSelectedObjects$', function () { +if (this.isSelected$() == false ) return null; +var selectedObjects=Clazz_array(java.lang.Object, [1]); +selectedObjects[0]=this.getText$(); +return selectedObjects; +}); + +Clazz_newMeth(C$, 'paramString$', function () { +return C$.superclazz.prototype.paramString$.apply(this, []); +}); + +Clazz_newMeth(C$, 'shouldUpdateSelectedStateFromAction$', function () { +return true; +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:26:59 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing"),p$1={},I$=[[0,'javax.swing.AbstractAction','javax.swing.JPopupMenu','javax.swing.DefaultComboBoxModel','javax.swing.SwingUtilities','java.awt.event.ItemListener','java.awt.event.ActionListener','javax.swing.event.PopupMenuListener','javax.swing.event.PopupMenuEvent',['javax.swing.JComboBox','.ComboBoxActionPropertyChangeListener'],'java.awt.EventQueue','java.awt.event.ActionEvent','java.awt.event.ItemEvent',['javax.swing.JComboBox','.DefaultKeySelectionManager']]],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "JComboBox", function(){ +Clazz_newInstance(this, arguments,0,C$); +}, 'javax.swing.JComponent', ['java.awt.ItemSelectable', 'javax.swing.event.ListDataListener', 'java.awt.event.ActionListener']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +{ + +this.c$$TEA = C$.c$$OA; +this.prototype.setPrototypeDisplayValue$TE = this.prototype.setPrototypeDisplayValue$O; +this.prototype.addItem$TE = this.prototype.addItem$O; +this.prototype.insertItemAt$TE$I = this.prototype.insertItemAt$O$I; +}; +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.dataModel=null; +this.renderer=null; +this.editor=null; +this.maximumRowCount=0; +this.isEditable=false; +this.keySelectionManager=null; +this.actionCommand=null; +this.lightWeightPopupEnabled=false; +this.selectedItemReminder=null; +this.prototypeDisplayValue=null; +this.firingActionEvent=false; +this.selectingItem=false; +this.秘isEditorCleared=false; +this.action=null; +this.actionPropertyChangeListener=null; +this.秘trigger=false; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.maximumRowCount=8; +this.isEditable=false; +this.keySelectionManager=null; +this.actionCommand="comboBoxChanged"; +this.lightWeightPopupEnabled=$I$(2).getDefaultLightWeightPopupEnabled$(); +this.selectedItemReminder=null; +this.firingActionEvent=false; +this.selectingItem=false; +}, 1); + +Clazz_newMeth(C$, 'c$$javax_swing_ComboBoxModel', function (aModel) { +C$.superclazz.c$.apply(this, []); +C$.$init$.apply(this); +this.setModel$javax_swing_ComboBoxModel(aModel); +p$1.initComboBox.apply(this, []); +}, 1); + +Clazz_newMeth(C$, 'c$$OA', function (items) { +C$.superclazz.c$.apply(this, []); +C$.$init$.apply(this); +this.setModel$javax_swing_ComboBoxModel(Clazz_new_($I$(3).c$$TEA,[items])); +p$1.initComboBox.apply(this, []); +}, 1); + +Clazz_newMeth(C$, 'c$$java_util_Vector', function (items) { +C$.superclazz.c$.apply(this, []); +C$.$init$.apply(this); +this.setModel$javax_swing_ComboBoxModel(Clazz_new_($I$(3).c$$java_util_Vector,[items])); +p$1.initComboBox.apply(this, []); +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.superclazz.c$.apply(this, []); +C$.$init$.apply(this); +this.setModel$javax_swing_ComboBoxModel(Clazz_new_($I$(3))); +p$1.initComboBox.apply(this, []); +}, 1); + +Clazz_newMeth(C$, 'initComboBox', function () { +this.installAncestorListener$(); +this.setUIProperty$S$O("opaque", new Boolean(true)); +this.updateUI$(); +}, p$1); + +Clazz_newMeth(C$, 'getUIClassID$', function () { +return "ComboBoxUI"; +}); + +Clazz_newMeth(C$, 'installAncestorListener$', function () { +this.addAncestorListener$javax_swing_event_AncestorListener(((P$.JComboBox$1|| +(function(){var C$=Clazz_newClass(P$, "JComboBox$1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'javax.swing.event.AncestorListener', 1); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'ancestorAdded$javax_swing_event_AncestorEvent', function (event) { +this.b$['javax.swing.JComboBox'].hidePopup$.apply(this.b$['javax.swing.JComboBox'], []); +}); + +Clazz_newMeth(C$, 'ancestorRemoved$javax_swing_event_AncestorEvent', function (event) { +this.b$['javax.swing.JComboBox'].hidePopup$.apply(this.b$['javax.swing.JComboBox'], []); +}); + +Clazz_newMeth(C$, 'ancestorMoved$javax_swing_event_AncestorEvent', function (event) { +if (event.getSource$() !== this.b$['javax.swing.JComboBox'] ) this.b$['javax.swing.JComboBox'].hidePopup$.apply(this.b$['javax.swing.JComboBox'], []); +}); +})() +), Clazz_new_(P$.JComboBox$1.$init$, [this, null]))); +}); + +Clazz_newMeth(C$, 'updateUI$', function () { +C$.superclazz.prototype.updateUI$.apply(this, []); +var renderer=this.getRenderer$(); +if (Clazz_instanceOf(renderer, "java.awt.Component")) { +$I$(4).updateComponentTreeUI$java_awt_Component(renderer); +}}); + +Clazz_newMeth(C$, 'setModel$javax_swing_ComboBoxModel', function (aModel) { +var oldModel=this.dataModel; +if (oldModel != null ) { +oldModel.removeListDataListener$javax_swing_event_ListDataListener(this); +}this.dataModel=aModel; +this.dataModel.addListDataListener$javax_swing_event_ListDataListener(this); +var isAWT=this.秘isAWT$(); + +aModel.isAWT$ = isAWT; +this.selectedItemReminder=this.dataModel.getSelectedItem$(); +this.firePropertyChange$S$O$O("model", oldModel, this.dataModel); +}); + +Clazz_newMeth(C$, 'getModel$', function () { +return this.dataModel; +}); + +Clazz_newMeth(C$, 'setLightWeightPopupEnabled$Z', function (aFlag) { +var oldFlag=this.lightWeightPopupEnabled; +this.lightWeightPopupEnabled=aFlag; +this.firePropertyChange$S$Z$Z("lightWeightPopupEnabled", oldFlag, this.lightWeightPopupEnabled); +}); + +Clazz_newMeth(C$, 'isLightWeightPopupEnabled$', function () { +return this.lightWeightPopupEnabled; +}); + +Clazz_newMeth(C$, 'setEditable$Z', function (aFlag) { +var oldFlag=this.isEditable; +this.isEditable=aFlag; +this.firePropertyChange$S$Z$Z("editable", oldFlag, this.isEditable); +}); + +Clazz_newMeth(C$, 'isEditable$', function () { +return this.isEditable; +}); + +Clazz_newMeth(C$, 'setMaximumRowCount$I', function (count) { +var oldCount=this.maximumRowCount; +this.maximumRowCount=count; +this.firePropertyChange$S$I$I("maximumRowCount", oldCount, this.maximumRowCount); +}); + +Clazz_newMeth(C$, 'getMaximumRowCount$', function () { +return this.maximumRowCount; +}); + +Clazz_newMeth(C$, 'setRenderer$javax_swing_ListCellRenderer', function (aRenderer) { +var oldRenderer=this.renderer; +this.renderer=aRenderer; +this.firePropertyChange$S$O$O("renderer", oldRenderer, this.renderer); +this.invalidate$(); +}); + +Clazz_newMeth(C$, 'getRenderer$', function () { +return this.renderer; +}); + +Clazz_newMeth(C$, 'setEditor$javax_swing_ComboBoxEditor', function (anEditor) { +var oldEditor=this.editor; +this.秘isEditorCleared=(this.editor == null ); +if (this.editor != null ) { +this.editor.removeActionListener$java_awt_event_ActionListener(this); +}this.editor=anEditor; +if (this.editor != null ) { +this.editor.addActionListener$java_awt_event_ActionListener(this); +}this.firePropertyChange$S$O$O("editor", oldEditor, this.editor); +}); + +Clazz_newMeth(C$, 'getEditor$', function () { +if (this.editor == null && !this.秘isEditorCleared ) this.setEditor$javax_swing_ComboBoxEditor((this.ui).createEditor$()); +return this.editor; +}); + +Clazz_newMeth(C$, 'setSelectedItem$O', function (anObject) { +var oldSelection=this.selectedItemReminder; +var objectToSelect=anObject; +if (oldSelection == null || !oldSelection.equals$O(anObject) ) { +if (anObject != null && !this.isEditable$() ) { +var found=false; +for (var i=0; i < this.dataModel.getSize$(); i++) { +var element=this.dataModel.getElementAt$I(i); +if (anObject.equals$O(element)) { +found=true; +objectToSelect=element; +break; +}} +if (!found) { +return; +}}this.selectingItem=true; +if (this.秘trigger || this.秘isAWT$() ) { +this.dataModel.setSelectedItem$O(objectToSelect); +} else { +(this.dataModel).秘setSelectedItemQuiet$O(objectToSelect); +}this.selectingItem=false; +if (this.selectedItemReminder !== this.dataModel.getSelectedItem$() ) { +this.selectedItemChanged$(); +}}this.fireActionEvent$(); +}); + +Clazz_newMeth(C$, 'getSelectedItem$', function () { +return this.dataModel.getSelectedItem$(); +}); + +Clazz_newMeth(C$, 'setSelectedIndex$I', function (anIndex) { +var size=this.dataModel.getSize$(); +if (anIndex == -1) { +this.setSelectedItem$O(null); +} else if (anIndex < -1 || anIndex >= size ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["setSelectedIndex: " + anIndex + " out of bounds" ]); +} else { +this.setSelectedItem$O(this.dataModel.getElementAt$I(anIndex)); +}}); + +Clazz_newMeth(C$, 'getSelectedIndex$', function () { +var sObject=this.dataModel.getSelectedItem$(); +var i; +var c; +var obj; +for (i=0, c=this.dataModel.getSize$(); i < c; i++) { +obj=this.dataModel.getElementAt$I(i); +if (obj != null && obj.equals$O(sObject) ) return i; +} +return -1; +}); + +Clazz_newMeth(C$, 'getPrototypeDisplayValue$', function () { +return this.prototypeDisplayValue; +}); + +Clazz_newMeth(C$, 'setPrototypeDisplayValue$O', function (prototypeDisplayValue) { +var oldValue=this.prototypeDisplayValue; +this.prototypeDisplayValue=prototypeDisplayValue; +this.firePropertyChange$S$O$O("prototypeDisplayValue", oldValue, prototypeDisplayValue); +}); + +Clazz_newMeth(C$, 'addItem$O', function (anObject) { +this.checkMutableComboBoxModel$(); +(this.dataModel).addElement$TE(anObject); +}); + +Clazz_newMeth(C$, 'insertItemAt$O$I', function (anObject, index) { +this.checkMutableComboBoxModel$(); +(this.dataModel).insertElementAt$TE$I(anObject, index); +}); + +Clazz_newMeth(C$, 'removeItem$O', function (anObject) { +this.checkMutableComboBoxModel$(); +(this.dataModel).removeElement$O(anObject); +}); + +Clazz_newMeth(C$, 'removeItemAt$I', function (anIndex) { +this.checkMutableComboBoxModel$(); +(this.dataModel).removeElementAt$I(anIndex); +}); + +Clazz_newMeth(C$, 'removeAllItems$', function () { +this.checkMutableComboBoxModel$(); +var model=this.dataModel; +var size=model.getSize$(); +if (Clazz_instanceOf(model, "javax.swing.DefaultComboBoxModel")) { +(model).removeAllElements$(); +} else { +for (var i=0; i < size; ++i) { +var element=model.getElementAt$I(0); +model.removeElement$O(element); +} +}this.selectedItemReminder=null; +if (this.isEditable$()) { +this.editor.setItem$O(null); +}}); + +Clazz_newMeth(C$, 'checkMutableComboBoxModel$', function () { +if (!(Clazz_instanceOf(this.dataModel, "javax.swing.MutableComboBoxModel"))) throw Clazz_new_(Clazz_load('RuntimeException').c$$S,["Cannot use this method with a non-Mutable data model."]); +}); + +Clazz_newMeth(C$, 'showPopup$', function () { +this.setPopupVisible$Z(true); +}); + +Clazz_newMeth(C$, 'hidePopup$', function () { +this.setPopupVisible$Z(false); +}); + +Clazz_newMeth(C$, 'setPopupVisible$Z', function (v) { +(this.getUI$()).setPopupVisible$javax_swing_JComboBox$Z(this, v); +}); + +Clazz_newMeth(C$, 'isPopupVisible$', function () { +return (this.getUI$()).isPopupVisible$javax_swing_JComboBox(this); +}); + +Clazz_newMeth(C$, 'addItemListener$java_awt_event_ItemListener', function (aListener) { +this.listenerList.add$Class$TT(Clazz_getClass($I$(5),['itemStateChanged$java_awt_event_ItemEvent']), aListener); +}); + +Clazz_newMeth(C$, 'removeItemListener$java_awt_event_ItemListener', function (aListener) { +this.listenerList.remove$Class$TT(Clazz_getClass($I$(5),['itemStateChanged$java_awt_event_ItemEvent']), aListener); +}); + +Clazz_newMeth(C$, 'getItemListeners$', function () { +return this.listenerList.getListeners$Class(Clazz_getClass($I$(5),['itemStateChanged$java_awt_event_ItemEvent'])); +}); + +Clazz_newMeth(C$, 'addActionListener$java_awt_event_ActionListener', function (l) { +this.listenerList.add$Class$TT(Clazz_getClass($I$(6),['actionPerformed$java_awt_event_ActionEvent']), l); +}); + +Clazz_newMeth(C$, 'removeActionListener$java_awt_event_ActionListener', function (l) { +if ((l != null ) && (this.getAction$() === l ) ) { +this.setAction$javax_swing_Action(null); +} else { +this.listenerList.remove$Class$TT(Clazz_getClass($I$(6),['actionPerformed$java_awt_event_ActionEvent']), l); +}}); + +Clazz_newMeth(C$, 'getActionListeners$', function () { +return this.listenerList.getListeners$Class(Clazz_getClass($I$(6),['actionPerformed$java_awt_event_ActionEvent'])); +}); + +Clazz_newMeth(C$, 'addPopupMenuListener$javax_swing_event_PopupMenuListener', function (l) { +this.listenerList.add$Class$TT(Clazz_getClass($I$(7),['popupMenuCanceled$javax_swing_event_PopupMenuEvent','popupMenuWillBecomeInvisible$javax_swing_event_PopupMenuEvent','popupMenuWillBecomeVisible$javax_swing_event_PopupMenuEvent']), l); +}); + +Clazz_newMeth(C$, 'removePopupMenuListener$javax_swing_event_PopupMenuListener', function (l) { +this.listenerList.remove$Class$TT(Clazz_getClass($I$(7),['popupMenuCanceled$javax_swing_event_PopupMenuEvent','popupMenuWillBecomeInvisible$javax_swing_event_PopupMenuEvent','popupMenuWillBecomeVisible$javax_swing_event_PopupMenuEvent']), l); +}); + +Clazz_newMeth(C$, 'getPopupMenuListeners$', function () { +return this.listenerList.getListeners$Class(Clazz_getClass($I$(7),['popupMenuCanceled$javax_swing_event_PopupMenuEvent','popupMenuWillBecomeInvisible$javax_swing_event_PopupMenuEvent','popupMenuWillBecomeVisible$javax_swing_event_PopupMenuEvent'])); +}); + +Clazz_newMeth(C$, 'firePopupMenuWillBecomeVisible$', function () { +var listeners=this.listenerList.getListenerList$(); +var e=null; +for (var i=listeners.length - 2; i >= 0; i-=2) { +if (listeners[i] === Clazz_getClass($I$(7),['popupMenuCanceled$javax_swing_event_PopupMenuEvent','popupMenuWillBecomeInvisible$javax_swing_event_PopupMenuEvent','popupMenuWillBecomeVisible$javax_swing_event_PopupMenuEvent']) ) { +if (e == null ) e=Clazz_new_($I$(8).c$$O,[this]); +(listeners[i + 1]).popupMenuWillBecomeVisible$javax_swing_event_PopupMenuEvent(e); +}} +}); + +Clazz_newMeth(C$, 'firePopupMenuWillBecomeInvisible$', function () { +var listeners=this.listenerList.getListenerList$(); +var e=null; +for (var i=listeners.length - 2; i >= 0; i-=2) { +if (listeners[i] === Clazz_getClass($I$(7),['popupMenuCanceled$javax_swing_event_PopupMenuEvent','popupMenuWillBecomeInvisible$javax_swing_event_PopupMenuEvent','popupMenuWillBecomeVisible$javax_swing_event_PopupMenuEvent']) ) { +if (e == null ) e=Clazz_new_($I$(8).c$$O,[this]); +(listeners[i + 1]).popupMenuWillBecomeInvisible$javax_swing_event_PopupMenuEvent(e); +}} +}); + +Clazz_newMeth(C$, 'firePopupMenuCanceled$', function () { +var listeners=this.listenerList.getListenerList$(); +var e=null; +for (var i=listeners.length - 2; i >= 0; i-=2) { +if (listeners[i] === Clazz_getClass($I$(7),['popupMenuCanceled$javax_swing_event_PopupMenuEvent','popupMenuWillBecomeInvisible$javax_swing_event_PopupMenuEvent','popupMenuWillBecomeVisible$javax_swing_event_PopupMenuEvent']) ) { +if (e == null ) e=Clazz_new_($I$(8).c$$O,[this]); +(listeners[i + 1]).popupMenuCanceled$javax_swing_event_PopupMenuEvent(e); +}} +}); + +Clazz_newMeth(C$, 'setActionCommand$S', function (aCommand) { +this.actionCommand=aCommand; +}); + +Clazz_newMeth(C$, 'getActionCommand$', function () { +return this.actionCommand; +}); + +Clazz_newMeth(C$, 'setAction$javax_swing_Action', function (a) { +var oldValue=this.getAction$(); +if (this.action == null || !this.action.equals$O(a) ) { +this.action=a; +if (oldValue != null ) { +this.removeActionListener$java_awt_event_ActionListener(oldValue); +oldValue.removePropertyChangeListener$java_beans_PropertyChangeListener(this.actionPropertyChangeListener); +this.actionPropertyChangeListener=null; +}this.configurePropertiesFromAction$javax_swing_Action(this.action); +if (this.action != null ) { +if (!p$1.isListener$Class$java_awt_event_ActionListener.apply(this, [Clazz_getClass($I$(6),['actionPerformed$java_awt_event_ActionEvent']), this.action])) { +this.addActionListener$java_awt_event_ActionListener(this.action); +}this.actionPropertyChangeListener=this.createActionPropertyChangeListener$javax_swing_Action(this.action); +this.action.addPropertyChangeListener$java_beans_PropertyChangeListener(this.actionPropertyChangeListener); +}this.firePropertyChange$S$O$O("action", oldValue, this.action); +}}); + +Clazz_newMeth(C$, 'isListener$Class$java_awt_event_ActionListener', function (c, a) { +var isListener=false; +var listeners=this.listenerList.getListenerList$(); +for (var i=listeners.length - 2; i >= 0; i-=2) { +if (listeners[i] === c && listeners[i + 1] === a ) { +isListener=true; +}} +return isListener; +}, p$1); + +Clazz_newMeth(C$, 'getAction$', function () { +return this.action; +}); + +Clazz_newMeth(C$, 'configurePropertiesFromAction$javax_swing_Action', function (a) { +$I$(1).setEnabledFromAction$javax_swing_JComponent$javax_swing_Action(this, a); +$I$(1).setToolTipTextFromAction$javax_swing_JComponent$javax_swing_Action(this, a); +p$1.setActionCommandFromAction$javax_swing_Action.apply(this, [a]); +}); + +Clazz_newMeth(C$, 'createActionPropertyChangeListener$javax_swing_Action', function (a) { +return Clazz_new_($I$(9).c$$javax_swing_JComboBox$javax_swing_Action,[this, a]); +}); + +Clazz_newMeth(C$, 'actionPropertyChanged$javax_swing_Action$S', function (action, propertyName) { +if (propertyName == "ActionCommandKey") { +p$1.setActionCommandFromAction$javax_swing_Action.apply(this, [action]); +} else if (propertyName == "enabled") { +$I$(1).setEnabledFromAction$javax_swing_JComponent$javax_swing_Action(this, action); +} else if ("ShortDescription" == propertyName) { +$I$(1).setToolTipTextFromAction$javax_swing_JComponent$javax_swing_Action(this, action); +}}); + +Clazz_newMeth(C$, 'setActionCommandFromAction$javax_swing_Action', function (a) { +this.setActionCommand$S((a != null ) ? a.getValue$S("ActionCommandKey") : null); +}, p$1); + +Clazz_newMeth(C$, 'fireItemStateChanged$java_awt_event_ItemEvent', function (e) { +var listeners=this.listenerList.getListenerList$(); +for (var i=listeners.length - 2; i >= 0; i-=2) { +if (listeners[i] === Clazz_getClass($I$(5),['itemStateChanged$java_awt_event_ItemEvent']) ) { +(listeners[i + 1]).itemStateChanged$(e); +}} +}); + +Clazz_newMeth(C$, 'fireActionEvent$', function () { +if (!this.firingActionEvent) { +this.firingActionEvent=true; +var e=null; +var listeners=this.listenerList.getListenerList$(); +var mostRecentEventTime=$I$(10).getMostRecentEventTime$(); +var modifiers=0; +var currentEvent=$I$(10).getCurrentEvent$(); +if (Clazz_instanceOf(currentEvent, "java.awt.event.InputEvent")) { +modifiers=(currentEvent).getModifiers$(); +} else if (Clazz_instanceOf(currentEvent, "java.awt.event.ActionEvent")) { +modifiers=(currentEvent).getModifiers$(); +}for (var i=listeners.length - 2; i >= 0; i-=2) { +if (listeners[i] === Clazz_getClass($I$(6),['actionPerformed$java_awt_event_ActionEvent']) ) { +if (e == null ) e=Clazz_new_($I$(11).c$$O$I$S$J$I,[this, 1001, this.getActionCommand$(), mostRecentEventTime, modifiers]); +(listeners[i + 1]).actionPerformed$(e); +}} +this.firingActionEvent=false; +}}); + +Clazz_newMeth(C$, 'selectedItemChanged$', function () { +if (this.selectedItemReminder != null ) { +if (!this.秘isAWT$()) { +this.fireItemStateChanged$java_awt_event_ItemEvent(Clazz_new_($I$(12).c$$java_awt_ItemSelectable$I$O$I,[this, 701, this.selectedItemReminder, 2])); +} else { +this.firePropertyChange$S$O$O("updateSwingJS", this.selectedItemReminder, this.getSelectedItem$()); +}}this.selectedItemReminder=this.dataModel.getSelectedItem$(); +if (this.selectedItemReminder != null ) { +this.fireItemStateChanged$java_awt_event_ItemEvent(Clazz_new_($I$(12).c$$java_awt_ItemSelectable$I$O$I,[this, 701, this.selectedItemReminder, 1])); +}}); + +Clazz_newMeth(C$, 'getSelectedObjects$', function () { +var selectedObject=this.getSelectedItem$(); +if (selectedObject == null ) return Clazz_array(java.lang.Object, [0]); + else { +var result=Clazz_array(java.lang.Object, [1]); +result[0]=selectedObject; +return result; +}}); + +Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) { +var newItem=this.getEditor$().getItem$(); +this.setPopupVisible$Z(false); +this.getModel$().setSelectedItem$O(newItem); +var oldCommand=this.getActionCommand$(); +this.setActionCommand$S("comboBoxEdited"); +this.fireActionEvent$(); +this.setActionCommand$S(oldCommand); +}); + +Clazz_newMeth(C$, 'contentsChanged$javax_swing_event_ListDataEvent', function (e) { +var oldSelection=this.selectedItemReminder; +var newSelection=this.dataModel.getSelectedItem$(); +if (oldSelection == null || !oldSelection.equals$O(newSelection) ) { +this.selectedItemChanged$(); +if (!this.selectingItem) { +this.fireActionEvent$(); +}}}); + +Clazz_newMeth(C$, 'intervalAdded$javax_swing_event_ListDataEvent', function (e) { +if (this.selectedItemReminder !== this.dataModel.getSelectedItem$() ) { +this.selectedItemChanged$(); +}}); + +Clazz_newMeth(C$, 'intervalRemoved$javax_swing_event_ListDataEvent', function (e) { +this.contentsChanged$javax_swing_event_ListDataEvent(e); +}); + +Clazz_newMeth(C$, 'selectWithKeyChar$C', function (keyChar) { +var index; +if (this.keySelectionManager == null ) this.keySelectionManager=this.createDefaultKeySelectionManager$(); +index=this.keySelectionManager.selectionForKey$(keyChar, this.getModel$()); +if (index != -1) { +this.setSelectedIndex$I(index); +return true; +} else return false; +}); + +Clazz_newMeth(C$, 'setEnabled$Z', function (b) { +C$.superclazz.prototype.setEnabled$Z.apply(this, [b]); +this.firePropertyChange$S$Z$Z("enabled", !this.isEnabled$(), this.isEnabled$()); +}); + +Clazz_newMeth(C$, 'configureEditor$javax_swing_ComboBoxEditor$O', function (anEditor, anItem) { +anEditor.setItem$O(anItem); +}); + +Clazz_newMeth(C$, 'processKeyEvent$java_awt_event_KeyEvent', function (e) { +if (e.getKeyCode$() == 9) { +this.hidePopup$(); +}C$.superclazz.prototype.processKeyEvent$java_awt_event_KeyEvent.apply(this, [e]); +}); + +Clazz_newMeth(C$, 'setKeySelectionManager$javax_swing_JComboBox_KeySelectionManager', function (aManager) { +this.keySelectionManager=aManager; +}); + +Clazz_newMeth(C$, 'getKeySelectionManager$', function () { +return this.keySelectionManager; +}); + +Clazz_newMeth(C$, 'getItemCount$', function () { +return this.dataModel.getSize$(); +}); + +Clazz_newMeth(C$, 'getItemAt$I', function (index) { +return this.dataModel.getElementAt$I(index); +}); + +Clazz_newMeth(C$, 'createDefaultKeySelectionManager$', function () { +return Clazz_new_($I$(13), [this, null]); +}); + +Clazz_newMeth(C$, 'paramString$', function () { +var selectedItemReminderString=(this.selectedItemReminder != null ? this.selectedItemReminder.toString() : ""); +var isEditableString=(this.isEditable ? "true" : "false"); +var lightWeightPopupEnabledString=(this.lightWeightPopupEnabled ? "true" : "false"); +return C$.superclazz.prototype.paramString$.apply(this, []) + ",isEditable=" + isEditableString + ",lightWeightPopupEnabled=" + lightWeightPopupEnabledString + ",maximumRowCount=" + this.maximumRowCount + ",selectedItemReminder=" + selectedItemReminderString ; +}); + +Clazz_newMeth(C$, '秘setTrigger$Z', function (b) { +this.秘trigger=b; +}); +; +(function(){var C$=Clazz_newClass(P$.JComboBox, "ComboBoxActionPropertyChangeListener", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'javax.swing.ActionPropertyChangeListener'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$javax_swing_JComboBox$javax_swing_Action', function (b, a) { +C$.superclazz.c$$TT$javax_swing_Action.apply(this, [b, a]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, ['actionPropertyChanged$javax_swing_JComboBox$javax_swing_Action$java_beans_PropertyChangeEvent','actionPropertyChanged$TT$javax_swing_Action$java_beans_PropertyChangeEvent'], function (cb, action, e) { +if ($I$(1).shouldReconfigure$java_beans_PropertyChangeEvent(e)) { +cb.configurePropertiesFromAction$javax_swing_Action(action); +} else { +cb.actionPropertyChanged$javax_swing_Action$S(action, e.getPropertyName$()); +}}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newInterface(P$.JComboBox, "KeySelectionManager", function(){ +}); +})() +; +(function(){var C$=Clazz_newClass(P$.JComboBox, "DefaultKeySelectionManager", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, null, [['javax.swing.JComboBox','javax.swing.JComboBox.KeySelectionManager']]); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, ['selectionForKey$C$javax_swing_ComboBoxModel','selectionForKey$'], function (aKey, aModel) { +var i; +var c; +var currentSelection=-1; +var selectedItem=aModel.getSelectedItem$(); +var v; +var pattern; +if (selectedItem != null ) { +for (i=0, c=aModel.getSize$(); i < c; i++) { +if (selectedItem === aModel.getElementAt$I(i) ) { +currentSelection=i; +break; +}} +}pattern=("" + aKey).toLowerCase$(); +aKey=pattern.charAt$I(0); +for (i=++currentSelection, c=aModel.getSize$(); i < c; i++) { +var elem=aModel.getElementAt$I(i); +if (elem != null && elem.toString() != null ) { +v=elem.toString().toLowerCase$(); +if (v.length$() > 0 && v.charAt$I(0) == aKey ) return i; +}} +for (i=0; i < currentSelection; i++) { +var elem=aModel.getElementAt$I(i); +if (elem != null && elem.toString() != null ) { +v=elem.toString().toLowerCase$(); +if (v.length$() > 0 && v.charAt$I(0) == aKey ) return i; +}} +return -1; +}); + +Clazz_newMeth(C$); +})() +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:00 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing"),p$1={},I$=[[0,'javax.swing.SwingUtilities',['javax.swing.JComponent','.IntVector'],'javajs.util.Lst','javax.swing.JComponent','javax.swing.event.EventListenerList','java.util.HashSet','javax.swing.KeyStroke','java.awt.Rectangle','javax.swing.RepaintManager','javax.swing.LegacyGlueFocusTraversalPolicy','sun.font.FontDesignMetrics','java.awt.Insets','javax.swing.ClientPropertyKey',['javax.swing.JComponent','.ActionStandin'],'java.util.Hashtable','javax.swing.KeyboardManager','javax.swing.InputMap','javax.swing.ComponentInputMap','javax.swing.ActionMap',['java.awt.Component','.BaselineResizeBehavior'],'java.util.Locale',['javax.swing.JComponent','.KeyboardState'],'javax.swing.Popup','javax.swing.ToolTipManager','javax.swing.JToolTip','javax.swing.Autoscroller','javax.swing.ArrayTable','swingjs.JSUtil','javax.swing.AncestorNotifier','javax.swing.event.AncestorListener','java.beans.PropertyChangeListener','java.util.ArrayList','java.awt.JSComponent']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "JComponent", function(){ +Clazz_newInstance(this, arguments,0,C$); +}, 'java.awt.Container'); +C$.managingFocusForwardTraversalKeys=null; +C$.managingFocusBackwardTraversalKeys=null; +C$.DEBUG_GRAPHICS_LOADED=false; +C$.INPUT_VERIFIER_SOURCE_KEY=null; +C$._tempRect=null; +C$.componentObtainingGraphicsFrom=null; +C$.focusController=null; +C$.JComponent_TRANSFER_HANDLER=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.INPUT_VERIFIER_SOURCE_KEY= Clazz_new_(); +C$._tempRect=Clazz_new_($I$(3)); +C$.focusController=((P$.JComponent$1|| +(function(){var C$=Clazz_newClass(P$, "JComponent$1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'sun.awt.RequestFocusController', 1); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, ['acceptRequestFocus$java_awt_Component$java_awt_Component$Z$Z$sun_awt_CausedFocusEvent_Cause','acceptRequestFocus$'], function (from, to, temporary, focusedWindowChangeAllowed, cause) { +if ((to == null ) || !(Clazz_instanceOf(to, "javax.swing.JComponent")) ) { +return true; +}if ((from == null ) || !(Clazz_instanceOf(from, "javax.swing.JComponent")) ) { +return true; +}var target=to; +if (!target.getVerifyInputWhenFocusTarget$()) { +return true; +}var jFocusOwner=from; +var iv=jFocusOwner.getInputVerifier$(); +if (iv == null ) { +return true; +} else { +var currentSource=$I$(1).appContextGet$O($I$(4).INPUT_VERIFIER_SOURCE_KEY); +if (currentSource === jFocusOwner ) { +return true; +}$I$(1).appContextPut$O$O($I$(4).INPUT_VERIFIER_SOURCE_KEY, jFocusOwner); +try { +return iv.shouldYieldFocus$javax_swing_JComponent(jFocusOwner); +} finally { +if (currentSource != null ) { +$I$(1).appContextPut$O$O($I$(4).INPUT_VERIFIER_SOURCE_KEY, currentSource); +} else { +$I$(1).appContextRemove$O($I$(4).INPUT_VERIFIER_SOURCE_KEY); +}} +}}); +})() +), Clazz_new_(P$.JComponent$1.$init$, [this, null])); +C$.JComponent_TRANSFER_HANDLER="transfer_handler"; +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.秘isAlignmentXSet=false; +this.秘alignmentX=0; +this.秘isAlignmentYSet=false; +this.秘alignmentY=0; +this.listenerList=null; +this.clientProperties=null; +this.autoscrolls=false; +this.flags=0; +this.verifyInputWhenFocusTarget=false; +this.paintingChild=null; +this.秘popupMenu=null; +this.focusInputMap=null; +this.ancestorInputMap=null; +this.windowInputMap=null; +this.actionMap=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.listenerList=Clazz_new_($I$(5)); +this.verifyInputWhenFocusTarget=true; +}, 1); + +Clazz_newMeth(C$, 'safelyGetGraphics$java_awt_Component$java_awt_Component', function (c, root) { +C$.componentObtainingGraphicsFrom=root; +var g=c.getGraphics$(); +C$.componentObtainingGraphicsFrom=null; +return g; +}, 1); + +Clazz_newMeth(C$, 'getGraphicsInvoked$java_awt_Component', function (root) { +if (!C$.isComponentObtainingGraphicsFrom$java_awt_Component(root)) { +var rootPane=(root).getRootPane$(); +if (rootPane != null ) { +rootPane.disableTrueDoubleBuffering$(); +}}}, 1); + +Clazz_newMeth(C$, 'isComponentObtainingGraphicsFrom$java_awt_Component', function (c) { +return (c == null && C$.componentObtainingGraphicsFrom != null || C$.componentObtainingGraphicsFrom === c ); +}, 1); + +Clazz_newMeth(C$, 'getManagingFocusForwardTraversalKeys$', function () { +{ +if (C$.managingFocusForwardTraversalKeys == null ) { +C$.managingFocusForwardTraversalKeys=Clazz_new_($I$(6).c$$I,[1]); +C$.managingFocusForwardTraversalKeys.add$TE($I$(7).getKeyStroke$I$I(9, 2)); +}}return C$.managingFocusForwardTraversalKeys; +}, 1); + +Clazz_newMeth(C$, 'getManagingFocusBackwardTraversalKeys$', function () { +{ +if (C$.managingFocusBackwardTraversalKeys == null ) { +C$.managingFocusBackwardTraversalKeys=Clazz_new_($I$(6).c$$I,[1]); +C$.managingFocusBackwardTraversalKeys.add$TE($I$(7).getKeyStroke$I$I(9, 3)); +}}return C$.managingFocusBackwardTraversalKeys; +}, 1); + +Clazz_newMeth(C$, 'fetchRectangle$', function () { +{ +var rect; +var size=C$._tempRect.size$(); +if (size > 0) { +rect=C$._tempRect.removeItemAt$I(size - 1); +} else { +rect=Clazz_new_($I$(8).c$$I$I$I$I,[0, 0, 0, 0]); +}return rect; +}}, 1); + +Clazz_newMeth(C$, 'recycleRectangle$java_awt_Rectangle', function (rect) { +{ +C$._tempRect.addLast$TV(rect); +}}, 1); + +Clazz_newMeth(C$, 'setInheritsPopupMenu$Z', function (value) { +var oldValue=p$1.getFlag$I.apply(this, [23]); +p$1.setFlag$I$Z.apply(this, [23, value]); +this.firePropertyChange$S$Z$Z("inheritsPopupMenu", oldValue, value); +}); + +Clazz_newMeth(C$, 'getInheritsPopupMenu$', function () { +return p$1.getFlag$I.apply(this, [23]); +}); + +Clazz_newMeth(C$, 'setComponentPopupMenu$javax_swing_JPopupMenu', function (popup) { +if (popup != null ) { +this.enableEvents$J(16); +}var oldPopup=this.秘popupMenu; +this.秘popupMenu=popup; +this.firePropertyChange$S$O$O("componentPopupMenu", oldPopup, popup); +}); + +Clazz_newMeth(C$, 'getComponentPopupMenu$', function () { +if (!this.getInheritsPopupMenu$()) { +return this.秘popupMenu; +}if (this.秘popupMenu == null ) { +var parent=this.getParent$(); +while (parent != null ){ +if (Clazz_instanceOf(parent, "javax.swing.JComponent")) { +return (parent).getComponentPopupMenu$(); +}if (parent.isWindowOrJSApplet$()) { +break; +}parent=parent.getParent$(); +} +return null; +}return this.秘popupMenu; +}); + +Clazz_newMeth(C$, 'c$', function () { +C$.superclazz.c$.apply(this, []); +C$.$init$.apply(this); +this.秘paintClass=this.秘updateClass=C$ ||null; +this.enableEvents$J(8); +if (this.isManagingFocus$()) { +}C$.superclazz.prototype.setLocale$java_util_Locale.apply(this, [C$.getDefaultLocale$()]); +}, 1); + +Clazz_newMeth(C$, 'getComponentGraphics$java_awt_Graphics', function (g) { +var componentGraphics=g; +componentGraphics.setColor$java_awt_Color(this.getForeground$()); +componentGraphics.setFont$java_awt_Font(this.getFont$()); +return componentGraphics; +}); + +Clazz_newMeth(C$, 'paintComponent$java_awt_Graphics', function (g) { +if (this.ui != null && g != null ) { +var scratchGraphics=g.create$(); +try { +this.ui.update$java_awt_Graphics$javax_swing_JComponent(scratchGraphics, this); +} finally { +scratchGraphics.dispose$(); +} +}}); + +Clazz_newMeth(C$, 'paintChildren$java_awt_Graphics', function (g) { +/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$()); +{ +var i=this.getComponentCount$() - 1; +if (i < 0) { +return; +}if (this.paintingChild != null && (Clazz_instanceOf(this.paintingChild, "javax.swing.JComponent")) ) { +for (; i >= 0; i--) { +if (this.getComponent$I(i) === this.paintingChild ) { +break; +}} +}var tmpRect=C$.fetchRectangle$(); +var tmpRect2=C$.fetchRectangle$(); +for (; i >= 0; i--) { +var jc=this.getComponent$I(i); +if (jc != null && jc.isVisible$() ) { +jc.getBounds$java_awt_Rectangle(tmpRect); +var isContentPane=jc.getRootPane$().getContentPane$() === jc ; +var vr=(tmpRect); +var jsg=g.create$I$I$I$I(tmpRect.x, (isContentPane ? 0 : tmpRect.y), vr.width, vr.height); +jsg.setColor$java_awt_Color(jc.getForeground$()); +jsg.setFont$java_awt_Font(jc.getFont$()); +var shouldSetFlagBack=false; +try { +jc.秘checkBackgroundPainted$swingjs_JSGraphics2D$Z(jsg, true); +jc.秘setIsRepaint$Z(false); +jc.秘paint$java_awt_Graphics(jsg); +jc.秘setIsRepaint$Z(true); +jc.秘checkBackgroundPainted$swingjs_JSGraphics2D$Z(this.秘getJSGraphic2D$java_awt_Graphics(jsg), false); +} finally { +jsg.dispose$(); +if (shouldSetFlagBack) { +p$1.setFlag$I$Z.apply((jc), [1, false]); +p$1.setFlag$I$Z.apply((jc), [2, false]); +}} +}} +C$.recycleRectangle$java_awt_Rectangle(tmpRect2); +C$.recycleRectangle$java_awt_Rectangle(tmpRect); +}}); + +Clazz_newMeth(C$, 'paintBorder$java_awt_Graphics', function (g) { +var border=this.getBorder$(); +if (border != null ) { +border.paintBorder$java_awt_Component$java_awt_Graphics$I$I$I$I(this, g, 0, 0, this.getWidth$(), this.getHeight$()); +}}); + +Clazz_newMeth(C$, 'update$java_awt_Graphics', function (g) { +this.paint$java_awt_Graphics(g); +}); + +Clazz_newMeth(C$, 'paint$java_awt_Graphics', function (g) { +var shouldClearPaintFlags=false; +if ((this.getWidth$() <= 0) || (this.getHeight$() <= 0) ) { +return; +}var componentGraphics=this.getComponentGraphics$java_awt_Graphics(g); +var cg=componentGraphics.create$(); +try { +if (this.getParent$() != null && !(Clazz_instanceOf(this.getParent$(), "javax.swing.JComponent")) ) { +p$1.adjustPaintFlags.apply(this, []); +shouldClearPaintFlags=true; +}var printing=p$1.getFlag$I.apply(this, [11]); +if (!printing) { +p$1.paintComponentSafely$java_awt_Graphics.apply(this, [cg]); +p$1.paintBorderSafely$java_awt_Graphics.apply(this, [cg]); +} else { +p$1.printComponentSafely$java_awt_Graphics.apply(this, [cg]); +p$1.printBorderSafely$java_awt_Graphics.apply(this, [cg]); +}if (!printing) { +this.paintChildren$java_awt_Graphics(cg); +} else { +this.printChildren$java_awt_Graphics(cg); +}} finally { +cg.dispose$(); +if (shouldClearPaintFlags) { +p$1.setFlag$I$Z.apply(this, [1, false]); +p$1.setFlag$I$Z.apply(this, [2, false]); +p$1.setFlag$I$Z.apply(this, [11, false]); +p$1.setFlag$I$Z.apply(this, [12, false]); +}} +}); + +Clazz_newMeth(C$, 'paintForceDoubleBuffered$java_awt_Graphics', function (g) { +var rm=$I$(9).currentManager$javax_swing_JComponent(this); +var clip=g.getClipBounds$(); +rm.beginPaint$(); +p$1.setFlag$I$Z.apply(this, [13, true]); +try { +rm.paint$javax_swing_JComponent$javax_swing_JComponent$java_awt_Graphics$I$I$I$I(this, this, g, clip.x, clip.y, clip.width, clip.height); +} finally { +rm.endPaint$(); +p$1.setFlag$I$Z.apply(this, [13, false]); +} +}); + +Clazz_newMeth(C$, 'isPainting$', function () { +var component=this; +while (component != null ){ +if (Clazz_instanceOf(component, "javax.swing.JComponent") && p$1.getFlag$I.apply((component), [1]) ) { +return true; +}component=component.getParent$(); +} +return false; +}); + +Clazz_newMeth(C$, 'adjustPaintFlags', function () { +var jparent=null; +var parent; +for (parent=this.getParent$(); parent != null ; parent=parent.getParent$()) { +if (Clazz_instanceOf(parent, "javax.swing.JComponent")) { +jparent=parent; +if (p$1.getFlag$I.apply(jparent, [1])) p$1.setFlag$I$Z.apply(this, [1, true]); +if (p$1.getFlag$I.apply(jparent, [2])) p$1.setFlag$I$Z.apply(this, [2, true]); +if (p$1.getFlag$I.apply(jparent, [11])) p$1.setFlag$I$Z.apply(this, [11, true]); +if (p$1.getFlag$I.apply(jparent, [12])) p$1.setFlag$I$Z.apply(this, [12, true]); +break; +}} +}, p$1); + +Clazz_newMeth(C$, 'printAll$java_awt_Graphics', function (g) { +p$1.setFlag$I$Z.apply(this, [12, true]); +try { +this.print$java_awt_Graphics(g); +} finally { +p$1.setFlag$I$Z.apply(this, [12, false]); +} +}); + +Clazz_newMeth(C$, 'print$java_awt_Graphics', function (g) { +p$1.setFlag$I$Z.apply(this, [11, true]); +this.firePropertyChange$S$Z$Z("paintingForPrint", false, true); +try { +this.paint$java_awt_Graphics(g); +} finally { +p$1.setFlag$I$Z.apply(this, [11, false]); +this.firePropertyChange$S$Z$Z("paintingForPrint", true, false); +} +}); + +Clazz_newMeth(C$, 'printComponent$java_awt_Graphics', function (g) { +this.paintComponent$java_awt_Graphics(g); +}); + +Clazz_newMeth(C$, 'printChildren$java_awt_Graphics', function (g) { +this.paintChildren$java_awt_Graphics(g); +}); + +Clazz_newMeth(C$, 'printBorder$java_awt_Graphics', function (g) { +this.paintBorder$java_awt_Graphics(g); +}); + +Clazz_newMeth(C$, 'isPaintingTile$', function () { +return p$1.getFlag$I.apply(this, [2]); +}); + +Clazz_newMeth(C$, 'isPaintingForPrint$', function () { +return p$1.getFlag$I.apply(this, [11]); +}); + +Clazz_newMeth(C$, 'isManagingFocus$', function () { +return false; +}); + +Clazz_newMeth(C$, 'registerNextFocusableComponent', function () { +p$1.registerNextFocusableComponent$java_awt_Component.apply(this, [this.getNextFocusableComponent$()]); +}, p$1); + +Clazz_newMeth(C$, 'registerNextFocusableComponent$java_awt_Component', function (nextFocusableComponent) { +if (nextFocusableComponent == null ) { +return; +}var nearestRoot=(this.isFocusCycleRoot$()) ? this : this.getFocusCycleRootAncestor$(); +var policy=nearestRoot.getFocusTraversalPolicy$(); +if (!(Clazz_instanceOf(policy, "javax.swing.LegacyGlueFocusTraversalPolicy"))) { +policy=Clazz_new_($I$(10).c$$java_awt_FocusTraversalPolicy,[policy]); +nearestRoot.setFocusTraversalPolicy$java_awt_FocusTraversalPolicy(policy); +}(policy).setNextFocusableComponent$java_awt_Component$java_awt_Component(this, nextFocusableComponent); +}, p$1); + +Clazz_newMeth(C$, 'deregisterNextFocusableComponent', function () { +var nextFocusableComponent=this.getNextFocusableComponent$(); +if (nextFocusableComponent == null ) { +return; +}var nearestRoot=(this.isFocusCycleRoot$()) ? this : this.getFocusCycleRootAncestor$(); +if (nearestRoot == null ) { +return; +}}, p$1); + +Clazz_newMeth(C$, 'setNextFocusableComponent$java_awt_Component', function (aComponent) { +var displayable=this.isDisplayable$(); +if (displayable) { +p$1.deregisterNextFocusableComponent.apply(this, []); +}this.putClientProperty$O$O("nextFocus", aComponent); +if (displayable) { +p$1.registerNextFocusableComponent$java_awt_Component.apply(this, [aComponent]); +}}); + +Clazz_newMeth(C$, 'getNextFocusableComponent$', function () { +return this.getClientProperty$O("nextFocus"); +}); + +Clazz_newMeth(C$, 'setRequestFocusEnabled$Z', function (requestFocusEnabled) { +p$1.setFlag$I$Z.apply(this, [22, !requestFocusEnabled]); +}); + +Clazz_newMeth(C$, 'isRequestFocusEnabled$', function () { +return !p$1.getFlag$I.apply(this, [22]); +}); + +Clazz_newMeth(C$, 'requestFocus$', function () { +C$.superclazz.prototype.requestFocus$.apply(this, []); +}); + +Clazz_newMeth(C$, 'requestFocus$Z', function (temporary) { +C$.superclazz.prototype.requestFocus$.apply(this, []); +return true; +}); + +Clazz_newMeth(C$, 'requestFocusInWindow$', function () { +return C$.superclazz.prototype.requestFocusInWindow$.apply(this, []); +}); + +Clazz_newMeth(C$, 'requestFocusInWindow$Z', function (temporary) { +return C$.superclazz.prototype.requestFocusInWindow$.apply(this, []); +}); + +Clazz_newMeth(C$, 'grabFocus$', function () { +this.requestFocus$(); +}); + +Clazz_newMeth(C$, 'setVerifyInputWhenFocusTarget$Z', function (verifyInputWhenFocusTarget) { +var oldVerifyInputWhenFocusTarget=this.verifyInputWhenFocusTarget; +this.verifyInputWhenFocusTarget=verifyInputWhenFocusTarget; +this.firePropertyChange$S$Z$Z("verifyInputWhenFocusTarget", oldVerifyInputWhenFocusTarget, verifyInputWhenFocusTarget); +}); + +Clazz_newMeth(C$, 'getVerifyInputWhenFocusTarget$', function () { +return this.verifyInputWhenFocusTarget; +}); + +Clazz_newMeth(C$, 'getFontMetrics$java_awt_Font', function (font) { +return $I$(11).getMetrics$java_awt_Font(font); +}); + +Clazz_newMeth(C$, 'setPreferredSize$java_awt_Dimension', function (preferredSize) { +C$.superclazz.prototype.setPreferredSize$java_awt_Dimension.apply(this, [preferredSize]); +}); + +Clazz_newMeth(C$, 'getPreferredSize$', function () { +return this.getPrefSizeJComp$(); +}); + +Clazz_newMeth(C$, 'getPrefSizeJComp$', function () { +var size=(!this.isPreferredSizeSet$() && this.ui != null ? this.ui.getPreferredSize$javax_swing_JComponent(this) : null); +return (size == null ? this.preferredSize$() : size); +}); + +Clazz_newMeth(C$, 'setMaximumSize$java_awt_Dimension', function (maximumSize) { +C$.superclazz.prototype.setMaximumSize$java_awt_Dimension.apply(this, [maximumSize]); +}); + +Clazz_newMeth(C$, 'getMaximumSize$', function () { +if (this.isMaximumSizeSet$()) { +return C$.superclazz.prototype.getMaximumSize$.apply(this, []); +}var size=null; +if (this.ui != null ) { +size=this.ui.getMaximumSize$javax_swing_JComponent(this); +}return (size != null ) ? size : C$.superclazz.prototype.getMaximumSize$.apply(this, []); +}); + +Clazz_newMeth(C$, 'setMinimumSize$java_awt_Dimension', function (minimumSize) { +C$.superclazz.prototype.setMinimumSize$java_awt_Dimension.apply(this, [minimumSize]); +}); + +Clazz_newMeth(C$, 'getMinimumSize$', function () { +if (this.isMinimumSizeSet$()) { +return C$.superclazz.prototype.getMinimumSize$.apply(this, []); +}var size=null; +if (this.ui != null ) { +size=this.ui.getMinimumSize$javax_swing_JComponent(this); +}return (size != null ) ? size : C$.superclazz.prototype.getMinimumSize$.apply(this, []); +}); + +Clazz_newMeth(C$, 'contains$I$I', function (x, y) { +return (this.ui != null ) ? this.ui.contains$javax_swing_JComponent$I$I(this, x, y) : this.inside$I$I(x, y); +}); + +Clazz_newMeth(C$, 'setBorder$javax_swing_border_Border', function (border) { +var oldBorder=this.秘border; +this.秘border=border; +this.firePropertyChange$S$O$O("border", oldBorder, border); +if (border !== oldBorder ) { +if (border == null || oldBorder == null || !(border.getBorderInsets$java_awt_Component(this).equals$O(oldBorder.getBorderInsets$java_awt_Component(this))) ) { +this.revalidate$(); +}this.秘repaint$(); +}}); + +Clazz_newMeth(C$, 'getBorder$', function () { +return this.秘border; +}); + +Clazz_newMeth(C$, 'getInsets$', function () { +if (this.秘border != null ) { +return this.秘border.getBorderInsets$java_awt_Component(this); +}return C$.superclazz.prototype.getInsets$.apply(this, []); +}); + +Clazz_newMeth(C$, 'getInsets$java_awt_Insets', function (insets) { +var $in=null; +if (insets == null ) { +insets=Clazz_new_($I$(12).c$$I$I$I$I,[0, 0, 0, 0]); +}if (this.isAWT || this.isAWTContainer ||false) { +$in=this.getInsets$(); +} else { +if (this.秘border == null ) { +insets.left=insets.top=insets.right=insets.bottom=0; +} else { +if (Clazz_instanceOf(this.秘border, "javax.swing.border.AbstractBorder")) { +$in=(this.秘border).getBorderInsets$java_awt_Component$java_awt_Insets(this, insets); +}$in=this.秘border.getBorderInsets$java_awt_Component(this); +}}if ($in != null ) { +insets.left=$in.left; +insets.right=$in.right; +insets.top=$in.top; +insets.bottom=$in.bottom; +}return insets; +}); + +Clazz_newMeth(C$, 'getAlignmentY$', function () { +if (this.秘isAlignmentYSet) { +return this.秘alignmentY; +}return C$.superclazz.prototype.getAlignmentY$.apply(this, []); +}); + +Clazz_newMeth(C$, 'setAlignmentY$F', function (alignmentY) { +this.秘alignmentY=alignmentY > 1.0 ? 1.0 : alignmentY < 0.0 ? 0.0 : alignmentY; +this.秘isAlignmentYSet=true; +}); + +Clazz_newMeth(C$, 'getAlignmentX$', function () { +if (this.秘isAlignmentXSet) { +return this.秘alignmentX; +}return C$.superclazz.prototype.getAlignmentX$.apply(this, []); +}); + +Clazz_newMeth(C$, 'setAlignmentX$F', function (alignmentX) { +this.秘alignmentX=alignmentX > 1.0 ? 1.0 : alignmentX < 0.0 ? 0.0 : alignmentX; +this.秘isAlignmentXSet=true; +}); + +Clazz_newMeth(C$, 'setInputVerifier$javax_swing_InputVerifier', function (inputVerifier) { +var oldInputVerifier=this.getClientProperty$O($I$(13).JComponent_INPUT_VERIFIER); +this.putClientProperty$O$O($I$(13).JComponent_INPUT_VERIFIER, inputVerifier); +this.firePropertyChange$S$O$O("inputVerifier", oldInputVerifier, inputVerifier); +}); + +Clazz_newMeth(C$, 'getInputVerifier$', function () { +return this.getClientProperty$O($I$(13).JComponent_INPUT_VERIFIER); +}); + +Clazz_newMeth(C$, 'getGraphics$', function () { +return C$.superclazz.prototype.getGraphics$.apply(this, []); +}); + +Clazz_newMeth(C$, 'registerKeyboardAction$java_awt_event_ActionListener$S$javax_swing_KeyStroke$I', function (anAction, aCommand, aKeyStroke, aCondition) { +var inputMap=this.getInputMap$I$Z(aCondition, true); +if (inputMap != null ) { +var actionMap=this.getActionMap$Z(true); +var action=Clazz_new_($I$(14).c$$java_awt_event_ActionListener$S, [this, null, anAction, aCommand]); +inputMap.put$javax_swing_KeyStroke$O(aKeyStroke, action); +if (actionMap != null ) { +actionMap.put$O$javax_swing_Action(action, action); +}}}); + +Clazz_newMeth(C$, 'registerWithKM$', function () { +p$1.registerWithKeyboardManager$Z.apply(this, [false]); +}); + +Clazz_newMeth(C$, 'registerWithKeyboardManager$Z', function (onlyIfNew) { +if (java.awt.JSComponent.秘getTopInvokableAncestor$java_awt_Component$Z(this, true) == null ) return; +var inputMap=this.getInputMap$I$Z(2, false); +var strokes; +var registered=this.getClientProperty$O("_WhenInFocusedWindow"); +if (inputMap != null ) { +strokes=inputMap.allKeys$(); +if (strokes != null ) { +for (var counter=strokes.length - 1; counter >= 0; counter--) { +if (!onlyIfNew || registered == null || registered.get$O(strokes[counter]) == null ) { +p$1.registerWithKeyboardManager$javax_swing_KeyStroke.apply(this, [strokes[counter]]); +}if (registered != null ) { +registered.remove$O(strokes[counter]); +}} +}} else { +strokes=null; +}if (registered != null && registered.size$() > 0 ) { +var keys=registered.keys$(); +while (keys.hasMoreElements$()){ +var ks=keys.nextElement$(); +p$1.unregisterWithKeyboardManager$javax_swing_KeyStroke.apply(this, [ks]); +} +registered.clear$(); +}if (strokes != null && strokes.length > 0 ) { +if (registered == null ) { +registered=Clazz_new_($I$(15).c$$I,[strokes.length]); +this.putClientProperty$O$O("_WhenInFocusedWindow", registered); +}for (var counter=strokes.length - 1; counter >= 0; counter--) { +registered.put$TK$TV(strokes[counter], strokes[counter]); +} +} else { +this.putClientProperty$O$O("_WhenInFocusedWindow", null); +}}, p$1); + +Clazz_newMeth(C$, 'unregisterWithKeyboardManager', function () { +var registered=this.getClientProperty$O("_WhenInFocusedWindow"); +if (registered != null && registered.size$() > 0 ) { +var keys=registered.keys$(); +while (keys.hasMoreElements$()){ +var ks=keys.nextElement$(); +p$1.unregisterWithKeyboardManager$javax_swing_KeyStroke.apply(this, [ks]); +} +}this.putClientProperty$O$O("_WhenInFocusedWindow", null); +}, p$1); + +Clazz_newMeth(C$, 'componentInputMapChanged$javax_swing_ComponentInputMap', function (inputMap) { +var km=this.getInputMap$I$Z(2, false); +while (km !== inputMap && km != null ){ +km=km.getParent$(); +} +if (km != null ) { +p$1.registerWithKeyboardManager$Z.apply(this, [false]); +}}); + +Clazz_newMeth(C$, 'registerWithKeyboardManager$javax_swing_KeyStroke', function (aKeyStroke) { +$I$(16).getCurrentManager$().registerKeyStroke$javax_swing_KeyStroke$javax_swing_JComponent(aKeyStroke, this); +}, p$1); + +Clazz_newMeth(C$, 'unregisterWithKeyboardManager$javax_swing_KeyStroke', function (aKeyStroke) { +$I$(16).getCurrentManager$().unregisterKeyStroke$javax_swing_KeyStroke$javax_swing_JComponent(aKeyStroke, this); +}, p$1); + +Clazz_newMeth(C$, 'registerKeyboardAction$java_awt_event_ActionListener$javax_swing_KeyStroke$I', function (anAction, aKeyStroke, aCondition) { +this.registerKeyboardAction$java_awt_event_ActionListener$S$javax_swing_KeyStroke$I(anAction, null, aKeyStroke, aCondition); +}); + +Clazz_newMeth(C$, 'unregisterKeyboardAction$javax_swing_KeyStroke', function (aKeyStroke) { +var am=this.getActionMap$Z(false); +for (var counter=0; counter < 3; counter++) { +var km=this.getInputMap$I$Z(counter, false); +if (km != null ) { +var actionID=km.get$javax_swing_KeyStroke(aKeyStroke); +if (am != null && actionID != null ) { +am.remove$O(actionID); +}km.remove$javax_swing_KeyStroke(aKeyStroke); +}} +}); + +Clazz_newMeth(C$, 'getRegisteredKeyStrokes$', function () { +var counts=Clazz_array(Integer.TYPE, [3]); +var strokes=Clazz_array($I$(7), [3, null]); +for (var counter=0; counter < 3; counter++) { +var km=this.getInputMap$I$Z(counter, false); +strokes[counter]=(km != null ) ? km.allKeys$() : null; +counts[counter]=(strokes[counter] != null ) ? strokes[counter].length : 0; +} +var retValue=Clazz_array($I$(7), [counts[0] + counts[1] + counts[2] ]); +for (var counter=0, last=0; counter < 3; counter++) { +if (counts[counter] > 0) { +System.arraycopy$O$I$O$I$I(strokes[counter], 0, retValue, last, counts[counter]); +last+=counts[counter]; +}} +return retValue; +}); + +Clazz_newMeth(C$, 'getConditionForKeyStroke$javax_swing_KeyStroke', function (aKeyStroke) { +for (var counter=0; counter < 3; counter++) { +var inputMap=this.getInputMap$I$Z(counter, false); +if (inputMap != null && inputMap.get$javax_swing_KeyStroke(aKeyStroke) != null ) { +return counter; +}} +return -1; +}); + +Clazz_newMeth(C$, 'getActionForKeyStroke$javax_swing_KeyStroke', function (aKeyStroke) { +var am=this.getActionMap$Z(false); +if (am == null ) { +return null; +}for (var counter=0; counter < 3; counter++) { +var inputMap=this.getInputMap$I$Z(counter, false); +if (inputMap != null ) { +var actionBinding=inputMap.get$javax_swing_KeyStroke(aKeyStroke); +if (actionBinding != null ) { +var action=am.get$O(actionBinding); +if (Clazz_instanceOf(action, "javax.swing.JComponent.ActionStandin")) { +return (action).actionListener; +}return action; +}}} +return null; +}); + +Clazz_newMeth(C$, 'resetKeyboardActions$', function () { +for (var counter=0; counter < 3; counter++) { +var inputMap=this.getInputMap$I$Z(counter, false); +if (inputMap != null ) { +inputMap.clear$(); +}} +var am=this.getActionMap$Z(false); +if (am != null ) { +am.clear$(); +}}); + +Clazz_newMeth(C$, 'setInputMap$I$javax_swing_InputMap', function (condition, map) { +switch (condition) { +case 2: +if (map != null && !(Clazz_instanceOf(map, "javax.swing.ComponentInputMap")) ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["WHEN_IN_FOCUSED_WINDOW InputMaps must be of type ComponentInputMap"]); +}this.windowInputMap=map; +p$1.setFlag$I$Z.apply(this, [7, true]); +p$1.registerWithKeyboardManager$Z.apply(this, [false]); +break; +case 1: +this.ancestorInputMap=map; +p$1.setFlag$I$Z.apply(this, [6, true]); +break; +case 0: +this.focusInputMap=map; +p$1.setFlag$I$Z.apply(this, [5, true]); +break; +default: +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["condition must be one of JComponent.WHEN_IN_FOCUSED_WINDOW, JComponent.WHEN_FOCUSED or JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT"]); +} +}); + +Clazz_newMeth(C$, 'getInputMap$I', function (condition) { +return this.getInputMap$I$Z(condition, true); +}); + +Clazz_newMeth(C$, 'getInputMap$', function () { +return this.getInputMap$I$Z(0, true); +}); + +Clazz_newMeth(C$, 'setActionMap$javax_swing_ActionMap', function (am) { +this.actionMap=am; +p$1.setFlag$I$Z.apply(this, [8, true]); +}); + +Clazz_newMeth(C$, 'getActionMap$', function () { +return this.getActionMap$Z(true); +}); + +Clazz_newMeth(C$, 'getInputMap$I$Z', function (condition, create) { +switch (condition) { +case 0: +if (p$1.getFlag$I.apply(this, [5])) { +return this.focusInputMap; +}if (create) { +var km=Clazz_new_($I$(17)); +this.setInputMap$I$javax_swing_InputMap(condition, km); +this.秘jsInputMapSet$(); +return km; +}break; +case 1: +if (p$1.getFlag$I.apply(this, [6])) { +return this.ancestorInputMap; +}if (create) { +var km=Clazz_new_($I$(17)); +this.setInputMap$I$javax_swing_InputMap(condition, km); +return km; +}break; +case 2: +if (p$1.getFlag$I.apply(this, [7])) { +return this.windowInputMap; +}if (create) { +var km=Clazz_new_($I$(18).c$$javax_swing_JComponent,[this]); +this.setInputMap$I$javax_swing_InputMap(condition, km); +return km; +}break; +default: +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["condition must be one of JComponent.WHEN_IN_FOCUSED_WINDOW, JComponent.WHEN_FOCUSED or JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT"]); +} +return null; +}); + +Clazz_newMeth(C$, 'getActionMap$Z', function (create) { +if (p$1.getFlag$I.apply(this, [8])) { +return this.actionMap; +}if (create) { +var am=Clazz_new_($I$(19)); +this.setActionMap$javax_swing_ActionMap(am); +return am; +}return null; +}); + +Clazz_newMeth(C$, 'getBaseline$I$I', function (width, height) { +C$.superclazz.prototype.getBaseline$I$I.apply(this, [width, height]); +if (this.ui != null ) { +return this.ui.getBaseline$javax_swing_JComponent$I$I(this, width, height); +}return -1; +}); + +Clazz_newMeth(C$, 'getBaselineResizeBehavior$', function () { +if (this.ui != null ) { +return this.ui.getBaselineResizeBehavior$javax_swing_JComponent(this); +}return $I$(20).OTHER; +}); + +Clazz_newMeth(C$, 'requestDefaultFocus$', function () { +var nearestRoot=(this.isFocusCycleRoot$()) ? this : this.getFocusCycleRootAncestor$(); +if (nearestRoot == null ) { +return false; +}return false; +}); + +Clazz_newMeth(C$, 'setVisible$Z', function (aFlag) { +if (aFlag != this.isVisible$() ) { +C$.superclazz.prototype.setVisible$Z.apply(this, [aFlag]); +var parent=this.getParent$(); +if (parent != null ) { +var r=this.getBounds$(); +parent.repaint$I$I$I$I(r.x, r.y, r.width, r.height); +}this.revalidate$(); +}}); + +Clazz_newMeth(C$, 'setEnabled$Z', function (enabled) { +var oldEnabled=this.isEnabled$(); +C$.superclazz.prototype.setEnabled$Z.apply(this, [enabled]); +this.firePropertyChange$S$Z$Z("enabled", oldEnabled, enabled); +if (enabled != oldEnabled ) { +this.秘repaint$(); +}}); + +Clazz_newMeth(C$, 'setForeground$java_awt_Color', function (fg) { +var oldFg=this.getForeground$(); +C$.superclazz.prototype.setForeground$java_awt_Color.apply(this, [fg]); +if ((oldFg != null ) ? !oldFg.equals$O(fg) : ((fg != null ) && !fg.equals$O(oldFg) )) { +this.秘repaint$(); +}}); + +Clazz_newMeth(C$, 'setBackground$java_awt_Color', function (bg) { +var oldBg=this.getBackground$(); +C$.superclazz.prototype.setBackground$java_awt_Color.apply(this, [bg]); +if ((oldBg != null ) ? !oldBg.equals$O(bg) : ((bg != null ) && !bg.equals$O(oldBg) )) { +this.秘repaint$(); +}}); + +Clazz_newMeth(C$, 'setFont$java_awt_Font', function (font) { +var oldFont=this.getFont$(); +C$.superclazz.prototype.setFont$java_awt_Font.apply(this, [font]); +if (font !== oldFont ) { +this.revalidate$(); +this.秘repaint$(); +}}); + +Clazz_newMeth(C$, 'getDefaultLocale$', function () { +var l=$I$(1).appContextGet$O("JComponent.defaultLocale"); +if (l == null ) { +l=$I$(21).getDefault$(); +C$.setDefaultLocale$java_util_Locale(l); +}return l; +}, 1); + +Clazz_newMeth(C$, 'setDefaultLocale$java_util_Locale', function (l) { +$I$(1).appContextPut$O$O("JComponent.defaultLocale", l); +}, 1); + +Clazz_newMeth(C$, 'processComponentKeyEvent$java_awt_event_KeyEvent', function (e) { +}); + +Clazz_newMeth(C$, 'processKeyEvent$java_awt_event_KeyEvent', function (e) { +var shouldProcessKey; +C$.superclazz.prototype.processKeyEvent$java_awt_event_KeyEvent.apply(this, [e]); +if (!e.isConsumed$()) { +this.processComponentKeyEvent$java_awt_event_KeyEvent(e); +}shouldProcessKey=$I$(22).shouldProcess$java_awt_event_KeyEvent(e); +if (e.isConsumed$()) { +return; +}if (shouldProcessKey && this.processKeyBindings$java_awt_event_KeyEvent$Z(e, e.getID$() == 401) ) { +e.consume$(); +}}); + +Clazz_newMeth(C$, 'processKeyBinding$javax_swing_KeyStroke$java_awt_event_KeyEvent$I$Z', function (ks, e, condition, pressed) { +var map=this.getInputMap$I$Z(condition, false); +var am=this.getActionMap$Z(false); +if (map != null && am != null && this.isEnabled$() ) { +var binding=map.get$javax_swing_KeyStroke(ks); +var action=(binding == null ) ? null : am.get$O(binding); +if (action != null ) { +return $I$(1).notifyAction$javax_swing_Action$javax_swing_KeyStroke$java_awt_event_KeyEvent$O$I(action, ks, e, this, e.getModifiers$()); +}}return false; +}); + +Clazz_newMeth(C$, 'processKeyBindings$java_awt_event_KeyEvent$Z', function (e, pressed) { +if (!$I$(1).isValidKeyEventForKeyBindings$java_awt_event_KeyEvent(e)) { +return false; +}var ks; +if (e.getID$() == 400) { +ks=$I$(7).getKeyStroke$C(e.getKeyChar$()); +} else { +ks=$I$(7).getKeyStroke$I$I$Z(e.getKeyCode$(), e.getModifiers$(), (pressed ? false : true)); +}if (this.processKeyBinding$javax_swing_KeyStroke$java_awt_event_KeyEvent$I$Z(ks, e, 0, pressed)) return true; +var parent=this; +while (parent != null && !parent.isWindowOrJSApplet$() ){ +if (Clazz_instanceOf(parent, "javax.swing.JComponent")) { +if ((parent).processKeyBinding$javax_swing_KeyStroke$java_awt_event_KeyEvent$I$Z(ks, e, 1, pressed)) return true; +}parent=parent.getParent$(); +} +if (parent != null ) { +return C$.processKeyBindingsForAllComponents$java_awt_event_KeyEvent$java_awt_Container$Z(e, parent, pressed); +}return false; +}); + +Clazz_newMeth(C$, 'processKeyBindingsForAllComponents$java_awt_event_KeyEvent$java_awt_Container$Z', function (e, container, pressed) { +while (true){ +if ($I$(16).getCurrentManager$().fireKeyboardAction$java_awt_event_KeyEvent$Z$java_awt_Container(e, pressed, container)) { +return true; +}if ($I$(23).isHeavyWeight$java_awt_Container(container)) { +container=(container).getOwner$(); +} else { +return false; +}} +}, 1); + +Clazz_newMeth(C$, 'setToolTipText$S', function (text) { +var oldText=this.getToolTipText$(); +this.putClientProperty$O$O("ToolTipText", text); +var toolTipManager=$I$(24).sharedInstance$(); +if (text != null ) { +if (oldText == null ) { +toolTipManager.registerComponent$javax_swing_JComponent(this); +}} else { +toolTipManager.unregisterComponent$javax_swing_JComponent(this); +}}); + +Clazz_newMeth(C$, 'getToolTipText$', function () { +return this.getClientProperty$O("ToolTipText"); +}); + +Clazz_newMeth(C$, 'getToolTipText$java_awt_event_MouseEvent', function (event) { +return this.getToolTipText$(); +}); + +Clazz_newMeth(C$, 'getToolTipLocation$java_awt_event_MouseEvent', function (event) { +return null; +}); + +Clazz_newMeth(C$, 'getPopupLocation$java_awt_event_MouseEvent', function (event) { +return null; +}); + +Clazz_newMeth(C$, 'createToolTip$', function () { +var tip=Clazz_new_($I$(25)); +tip.setComponent$javax_swing_JComponent(this); +return tip; +}); + +Clazz_newMeth(C$, 'scrollRectToVisible$java_awt_Rectangle', function (aRect) { +var parent; +var dx=this.getX$(); +var dy=this.getY$(); +for (parent=this.getParent$(); !(parent == null ) && !(Clazz_instanceOf(parent, "javax.swing.JComponent")) && !(Clazz_instanceOf(parent, "javax.swing.CellRendererPane")) ; parent=parent.getParent$()) { +var bounds=parent.getBounds$(); +dx+=bounds.x; +dy+=bounds.y; +} +if (!(parent == null ) && !(Clazz_instanceOf(parent, "javax.swing.CellRendererPane")) ) { +aRect.x+=dx; +aRect.y+=dy; +(parent).scrollRectToVisible$java_awt_Rectangle(aRect); +aRect.x-=dx; +aRect.y-=dy; +}}); + +Clazz_newMeth(C$, 'setAutoscrolls$Z', function (autoscrolls) { +p$1.setFlag$I$Z.apply(this, [25, true]); +if (this.autoscrolls != autoscrolls ) { +this.autoscrolls=autoscrolls; +if (autoscrolls) { +this.enableEvents$J(16); +this.enableEvents$J(32); +} else { +$I$(26).stop$javax_swing_JComponent(this); +}}}); + +Clazz_newMeth(C$, 'getAutoscrolls$', function () { +return this.autoscrolls; +}); + +Clazz_newMeth(C$, 'processMouseEvent$java_awt_event_MouseEvent', function (e) { +if (this.autoscrolls && e.getID$() == 502 ) { +$I$(26).stop$javax_swing_JComponent(this); +}C$.superclazz.prototype.processMouseEvent$java_awt_event_MouseEvent.apply(this, [e]); +}); + +Clazz_newMeth(C$, 'processMouseMotionEvent$java_awt_event_MouseEvent', function (e) { +var dispatch=true; +if (this.autoscrolls && e.getID$() == 506 ) { +dispatch=!$I$(26).isRunning$javax_swing_JComponent(this); +$I$(26).processMouseDragged$java_awt_event_MouseEvent(e); +}if (dispatch) { +C$.superclazz.prototype.processMouseMotionEvent$java_awt_event_MouseEvent.apply(this, [e]); +}}); + +Clazz_newMeth(C$, 'superProcessMouseMotionEvent$java_awt_event_MouseEvent', function (e) { +C$.superclazz.prototype.processMouseMotionEvent$java_awt_event_MouseEvent.apply(this, [e]); +}); + +Clazz_newMeth(C$, 'setCreatedDoubleBuffer$Z', function (newValue) { +p$1.setFlag$I$Z.apply(this, [9, newValue]); +}); + +Clazz_newMeth(C$, 'getCreatedDoubleBuffer$', function () { +return p$1.getFlag$I.apply(this, [9]); +}); + +Clazz_newMeth(C$, 'getTitledBorderText$', function () { +var border=this.getBorder$(); +if (Clazz_instanceOf(border, "javax.swing.border.TitledBorder")) { +return (border).getTitle$(); +} else { +return null; +}}); + +Clazz_newMeth(C$, 'getClientProperties', function () { +if (this.clientProperties == null ) { +this.clientProperties=Clazz_new_($I$(27)); +}return this.clientProperties; +}, p$1); + +Clazz_newMeth(C$, 'getClientProperty$O', function (key) { +return (this.clientProperties == null ? null : this.clientProperties.get$O(key)); +}); + +Clazz_newMeth(C$, 'putClientProperty$O$O', function (key, value) { +if (value == null && this.clientProperties == null ) { +return; +}var clientProperties=p$1.getClientProperties.apply(this, []); +var oldValue; +{ +oldValue=clientProperties.get$O(key); +if (value != null ) { +clientProperties.put$O$O(key, value); +} else if (oldValue != null ) { +clientProperties.remove$O(key); +} else { +return; +}}this.clientPropertyChanged$O$O$O(key, oldValue, value); +this.firePropertyChange$S$O$O(key.toString(), oldValue, value); +}); + +Clazz_newMeth(C$, 'clientPropertyChanged$O$O$O', function (key, oldValue, newValue) { +}); + +Clazz_newMeth(C$, 'setUI$javax_swing_plaf_ComponentUI', function (newUI) { +var oldUI=this.ui; +p$1.uninstallUIAndProperties.apply(this, []); +this.ui=newUI; +if (oldUI != null ) { +this.revalidate$(); +this.秘repaint$(); +}}); + +Clazz_newMeth(C$, 'uninstallUIAndProperties', function () { +if (this.ui != null ) { +(this.ui).reinstallUI$javax_swing_JComponent$javax_swing_JComponent(this, null); +}}, p$1); + +Clazz_newMeth(C$, 'setUIProperty$S$O', function (propertyName, value) { +if (propertyName == "opaque") { +if (!p$1.getFlag$I.apply(this, [24])) { +this.setOpaque$Z((value).booleanValue$()); +p$1.setFlag$I$Z.apply(this, [24, false]); +}} else if (propertyName == "autoscrolls") { +if (!p$1.getFlag$I.apply(this, [25])) { +this.setAutoscrolls$Z((value).booleanValue$()); +p$1.setFlag$I$Z.apply(this, [25, false]); +}} else if (propertyName == "focusTraversalKeysForward") { +if (!p$1.getFlag$I.apply(this, [26])) { +C$.superclazz.prototype.setFocusTraversalKeys$I$java_util_Set.apply(this, [0, value]); +}} else if (propertyName == "focusTraversalKeysBackward") { +if (!p$1.getFlag$I.apply(this, [27])) { +C$.superclazz.prototype.setFocusTraversalKeys$I$java_util_Set.apply(this, [1, value]); +}} else { +System.out.println$S(this.getClass$().getName$() + " property \"" + propertyName + "\" cannot be set using this method" + $I$(28).getStackTrace$I(5) ); +}}); + +Clazz_newMeth(C$, 'setFocusTraversalKeys$I$java_util_Set', function (id, keystrokes) { +if (id == 0) { +p$1.setFlag$I$Z.apply(this, [26, true]); +} else if (id == 1) { +p$1.setFlag$I$Z.apply(this, [27, true]); +}C$.superclazz.prototype.setFocusTraversalKeys$I$java_util_Set.apply(this, [id, keystrokes]); +}); + +Clazz_newMeth(C$, 'isLightweightComponent$java_awt_Component', function (c) { +{ +return(!c.rootPane); +} +}, 1); + +Clazz_newMeth(C$, 'isOpaque$', function () { +return p$1.getFlag$I.apply(this, [3]); +}); + +Clazz_newMeth(C$, 'setOpaque$Z', function (isOpaque) { +var oldValue=p$1.getFlag$I.apply(this, [3]); +p$1.setFlag$I$Z.apply(this, [3, isOpaque]); +p$1.setFlag$I$Z.apply(this, [24, true]); +this.firePropertyChange$S$Z$Z("opaque", oldValue, isOpaque); +}); + +Clazz_newMeth(C$, 'rectangleIsObscured$I$I$I$I', function (x, y, width, height) { +var numChildren=this.getComponentCount$(); +for (var i=0; i < numChildren; i++) { +var child=this.getComponent$I(i); +var cx; +var cy; +var cw; +var ch; +cx=child.getX$(); +cy=child.getY$(); +cw=child.getWidth$(); +ch=child.getHeight$(); +if (x >= cx && (x + width) <= (cx + cw) && y >= cy && (y + height) <= (cy + ch) && child.isVisible$() ) { +if (Clazz_instanceOf(child, "javax.swing.JComponent")) { +return (child).isOpaque$(); +} else { +return false; +}}} +return false; +}); + +Clazz_newMeth(C$, 'computeVisibleRect$java_awt_Component$java_awt_Rectangle', function (c, visibleRect) { +var p=c.getParent$(); +var bounds=c.getBounds$(); +if (p == null || p.isWindowOrJSApplet$() ) { +visibleRect.setBounds$I$I$I$I(0, 0, bounds.width, bounds.height); +} else { +C$.computeVisibleRect$java_awt_Component$java_awt_Rectangle(p, visibleRect); +visibleRect.x-=bounds.x; +visibleRect.y-=bounds.y; +$I$(1).computeIntersection$I$I$I$I$java_awt_Rectangle(0, 0, bounds.width, bounds.height, visibleRect); +}}, 1); + +Clazz_newMeth(C$, 'computeVisibleRect$java_awt_Rectangle', function (visibleRect) { +C$.computeVisibleRect$java_awt_Component$java_awt_Rectangle(this, visibleRect); +}); + +Clazz_newMeth(C$, 'getVisibleRect$', function () { +var visibleRect=Clazz_new_($I$(8)); +this.computeVisibleRect$java_awt_Rectangle(visibleRect); +return visibleRect; +}); + +Clazz_newMeth(C$, 'getTopLevelAncestor$', function () { +for (var p=this; p != null ; p=p.getParent$()) { +if (p.isWindowOrJSApplet$()) { +return p; +}} +return null; +}); + +Clazz_newMeth(C$, 'getAncestorNotifier', function () { +return this.getClientProperty$O($I$(13).JComponent_ANCESTOR_NOTIFIER); +}, p$1); + +Clazz_newMeth(C$, 'addAncestorListener$javax_swing_event_AncestorListener', function (listener) { +var ancestorNotifier=p$1.getAncestorNotifier.apply(this, []); +if (ancestorNotifier == null ) { +ancestorNotifier=Clazz_new_($I$(29).c$$javax_swing_JComponent,[this]); +this.putClientProperty$O$O($I$(13).JComponent_ANCESTOR_NOTIFIER, ancestorNotifier); +}ancestorNotifier.addAncestorListener$javax_swing_event_AncestorListener(listener); +}); + +Clazz_newMeth(C$, 'removeAncestorListener$javax_swing_event_AncestorListener', function (listener) { +var ancestorNotifier=p$1.getAncestorNotifier.apply(this, []); +if (ancestorNotifier == null ) { +return; +}ancestorNotifier.removeAncestorListener$javax_swing_event_AncestorListener(listener); +if (ancestorNotifier.listenerList.getListenerList$().length == 0) { +ancestorNotifier.removeAllListeners$(); +this.putClientProperty$O$O($I$(13).JComponent_ANCESTOR_NOTIFIER, null); +}}); + +Clazz_newMeth(C$, 'getAncestorListeners$', function () { +var ancestorNotifier=p$1.getAncestorNotifier.apply(this, []); +if (ancestorNotifier == null ) { +return Clazz_array($I$(30), [0]); +}return ancestorNotifier.getAncestorListeners$(); +}); + +Clazz_newMeth(C$, 'getListeners$Class', function (listenerType) { +var result; +if (listenerType === Clazz_getClass($I$(30),['ancestorAdded$javax_swing_event_AncestorEvent','ancestorMoved$javax_swing_event_AncestorEvent','ancestorRemoved$javax_swing_event_AncestorEvent']) ) { +result=this.getAncestorListeners$(); +} else if (listenerType === Clazz_getClass($I$(31),['propertyChange$java_beans_PropertyChangeEvent']) ) { +result=this.getPropertyChangeListeners$(); +} else { +result=this.listenerList.getListeners$Class(listenerType); +}if (result.length == 0) { +return C$.superclazz.prototype.getListeners$Class.apply(this, [listenerType]); +}return result; +}); + +Clazz_newMeth(C$, 'addNotify$', function () { +C$.superclazz.prototype.addNotify$.apply(this, []); +this.firePropertyChange$S$O$O("ancestor", null, this.getParent$()); +p$1.registerWithKeyboardManager$Z.apply(this, [false]); +p$1.registerNextFocusableComponent.apply(this, []); +}); + +Clazz_newMeth(C$, 'removeNotify$', function () { +C$.superclazz.prototype.removeNotify$.apply(this, []); +this.firePropertyChange$S$O$O("ancestor", this.getParent$(), null); +p$1.unregisterWithKeyboardManager.apply(this, []); +p$1.deregisterNextFocusableComponent.apply(this, []); +if (this.getCreatedDoubleBuffer$()) { +$I$(9).currentManager$javax_swing_JComponent(this).resetDoubleBuffer$(); +this.setCreatedDoubleBuffer$Z(false); +}if (this.autoscrolls) { +$I$(26).stop$javax_swing_JComponent(this); +}}); + +Clazz_newMeth(C$, 'repaint$J$I$I$I$I', function (tm, x, y, width, height) { +$I$(9).currentManager$javax_swing_JComponent(this).addDirtyRegion$javax_swing_JComponent$I$I$I$I(this, x, y, width, height); +}); + +Clazz_newMeth(C$, 'repaint$java_awt_Rectangle', function (r) { +this.repaint$J$I$I$I$I(0, r.x, r.y, r.width, r.height); +}); + +Clazz_newMeth(C$, 'revalidate$', function () { +if (this.ui != null ) (this.ui).setTainted$(); +if (this.getParent$() == null ) { +return; +}if ($I$(1).isEventDispatchThread$()) { +this.invalidate$(); +if (!this.秘isAWT$()) $I$(9).currentManager$javax_swing_JComponent(this).addInvalidComponent$javax_swing_JComponent(this); +} else { +if (p$1.getFlag$I.apply(this, [28])) { +return; +}p$1.setFlag$I$Z.apply(this, [28, true]); +var callRevalidate=((P$.JComponent$2|| +(function(){var C$=Clazz_newClass(P$, "JComponent$2", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'Runnable', 1); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'run$', function () { +p$1.setFlag$I$Z.apply(this.b$['javax.swing.JComponent'], [28, false]); +this.b$['javax.swing.JComponent'].revalidate$.apply(this.b$['javax.swing.JComponent'], []); +}); +})() +), Clazz_new_(P$.JComponent$2.$init$, [this, null])); +$I$(1).invokeLater$Runnable(callRevalidate); +}}); + +Clazz_newMeth(C$, 'isValidateRoot$', function () { +return false; +}); + +Clazz_newMeth(C$, 'isOptimizedDrawingEnabled$', function () { +return true; +}); + +Clazz_newMeth(C$, 'isPaintingOrigin$', function () { +return false; +}); + +Clazz_newMeth(C$, 'paintImmediately$I$I$I$I', function (x, y, w, h) { +var c=this; +var parent; +if (!this.isShowing$()) { +return; +}while (!this.isOpaque$()){ +parent=c.getParent$(); +if (parent != null ) { +x+=c.getX$(); +y+=c.getY$(); +c=parent; +} else { +break; +}if (!(Clazz_instanceOf(c, "javax.swing.JComponent"))) { +break; +}} +if (Clazz_instanceOf(c, "javax.swing.JComponent")) { +(c)._paintImmediately$I$I$I$I(x, y, w, h); +} else { +c.repaint$I$I$I$I(x, y, w, h); +}}); + +Clazz_newMeth(C$, 'paintImmediately$java_awt_Rectangle', function (r) { +this.paintImmediately$I$I$I$I(r.x, r.y, r.width, r.height); +}); + +Clazz_newMeth(C$, 'alwaysOnTop$', function () { +return false; +}); + +Clazz_newMeth(C$, 'setPaintingChild$java_awt_Component', function (paintingChild) { +this.paintingChild=paintingChild; +}); + +Clazz_newMeth(C$, '_paintImmediately$I$I$I$I', function (x, y, w, h) { +var g; +var c; +var tmpX; +var tmpY; +var tmpWidth; +var tmpHeight; +var offsetX=0; +var offsetY=0; +var hasBuffer=false; +var bufferedComponent=null; +var paintingComponent=this; +var path=Clazz_new_($I$(32).c$$I,[7]); +var pIndex=-1; +var pCount=0; +tmpX=tmpY=tmpWidth=tmpHeight=0; +var paintImmediatelyClip=C$.fetchRectangle$(); +paintImmediatelyClip.x=x; +paintImmediatelyClip.y=y; +paintImmediatelyClip.width=w; +paintImmediatelyClip.height=h; +var ontop=this.alwaysOnTop$() && this.isOpaque$() ; +if (ontop) { +$I$(1).computeIntersection$I$I$I$I$java_awt_Rectangle(0, 0, this.getWidth$(), this.getHeight$(), paintImmediatelyClip); +if (paintImmediatelyClip.width == 0) { +C$.recycleRectangle$java_awt_Rectangle(paintImmediatelyClip); +return; +}}var child; +for (c=this, child=null; c != null && !c.isWindowOrJSApplet$() ; child=c, c=c.getParent$()) { +var jc=(Clazz_instanceOf(c, "javax.swing.JComponent")) ? c : null; +path.add$TE(c); +if (!ontop && jc != null && !jc.isOptimizedDrawingEnabled$() ) { +var resetPC; +if (c !== this ) { +if (jc.isPaintingOrigin$()) { +resetPC=true; +} else { +var children=$I$(33).秘getChildArray$java_awt_Container(c); +var i=0; +for (var n=c.getComponentCount$(); i < n; i++) { +if (children[i] === child ) break; +} +switch (p$1.getObscuredState$I$I$I$I$I.apply(jc, [i, paintImmediatelyClip.x, paintImmediatelyClip.y, paintImmediatelyClip.width, paintImmediatelyClip.height])) { +case 0: +resetPC=false; +break; +case 2: +C$.recycleRectangle$java_awt_Rectangle(paintImmediatelyClip); +return; +default: +resetPC=true; +break; +} +}} else { +resetPC=false; +}if (resetPC) { +paintingComponent=jc; +pIndex=pCount; +offsetX=offsetY=0; +hasBuffer=false; +}}pCount++; +if (!ontop) { +var bx=c.getX$(); +var by=c.getY$(); +tmpWidth=c.getWidth$(); +tmpHeight=c.getHeight$(); +$I$(1).computeIntersection$I$I$I$I$java_awt_Rectangle(tmpX, tmpY, tmpWidth, tmpHeight, paintImmediatelyClip); +paintImmediatelyClip.x+=bx; +paintImmediatelyClip.y+=by; +offsetX+=bx; +offsetY+=by; +}} +if (c == null || paintImmediatelyClip.width <= 0 || paintImmediatelyClip.height <= 0 ) { +C$.recycleRectangle$java_awt_Rectangle(paintImmediatelyClip); +return; +}if (paintingComponent.秘isContentPane && !paintingComponent.isOpaque$() ) { +paintingComponent=paintingComponent.getRootPane$(); +}p$1.setFlag$I$Z.apply(paintingComponent, [13, true]); +paintImmediatelyClip.x-=offsetX; +paintImmediatelyClip.y-=offsetY; +if (paintingComponent !== this ) { +var comp; +var i=pIndex; +for (; i > 0; i--) { +comp=path.get$I(i); +if (Clazz_instanceOf(comp, "javax.swing.JComponent")) { +(comp).setPaintingChild$java_awt_Component(path.get$I(i - 1)); +}} +}try { +g=C$.safelyGetGraphics$java_awt_Component$java_awt_Component(paintingComponent, c); +try { +if (hasBuffer) { +var rm=$I$(9).currentManager$javax_swing_JComponent(bufferedComponent); +rm.beginPaint$(); +try { +rm.paint$javax_swing_JComponent$javax_swing_JComponent$java_awt_Graphics$I$I$I$I(paintingComponent, bufferedComponent, g, paintImmediatelyClip.x, paintImmediatelyClip.y, paintImmediatelyClip.width, paintImmediatelyClip.height); +} finally { +rm.endPaint$(); +} +} else { +if (!this.秘isRootPane) g.setClip$I$I$I$I(paintImmediatelyClip.x, paintImmediatelyClip.y, paintImmediatelyClip.width, paintImmediatelyClip.height); +paintingComponent.秘paintWithBackgroundCheck$java_awt_Graphics(g); +}} finally { +g.dispose$(); +} +} finally { +if (paintingComponent !== this ) { +var comp; +var i=pIndex; +for (; i > 0; i--) { +comp=path.get$I(i); +if (Clazz_instanceOf(comp, "javax.swing.JComponent")) { +(comp).setPaintingChild$java_awt_Component(null); +}} +}p$1.setFlag$I$Z.apply(paintingComponent, [13, false]); +} +C$.recycleRectangle$java_awt_Rectangle(paintImmediatelyClip); +}); + +Clazz_newMeth(C$, 'paintToOffscreen$java_awt_Graphics$I$I$I$I$I$I', function (g, x, y, w, h, maxX, maxY) { +try { +p$1.setFlag$I$Z.apply(this, [1, true]); +if ((y + h) < maxY || (x + w) < maxX ) { +p$1.setFlag$I$Z.apply(this, [2, true]); +}if (p$1.getFlag$I.apply(this, [13])) { +this.paint$java_awt_Graphics(g); +} else { +if (!this.rectangleIsObscured$I$I$I$I(x, y, w, h)) { +p$1.paintComponentSafely$java_awt_Graphics.apply(this, [g]); +p$1.paintBorderSafely$java_awt_Graphics.apply(this, [g]); +}this.paintChildren$java_awt_Graphics(g); +}} finally { +p$1.setFlag$I$Z.apply(this, [1, false]); +p$1.setFlag$I$Z.apply(this, [2, false]); +} +}); + +Clazz_newMeth(C$, 'getObscuredState$I$I$I$I$I', function (compIndex, x, y, width, height) { +var retValue=0; +var tmpRect=C$.fetchRectangle$(); +for (var i=compIndex - 1; i >= 0; i--) { +var sibling=this.getComponent$I(i); +if (!sibling.isVisible$()) { +continue; +}var siblingRect; +var opaque; +if (Clazz_instanceOf(sibling, "javax.swing.JComponent")) { +opaque=(sibling).isOpaque$(); +if (!opaque) { +if (retValue == 1) { +continue; +}}} else { +opaque=true; +}siblingRect=sibling.getBounds$java_awt_Rectangle(tmpRect); +if (opaque && x >= siblingRect.x && (x + width) <= (siblingRect.x + siblingRect.width) && y >= siblingRect.y && (y + height) <= (siblingRect.y + siblingRect.height) ) { +C$.recycleRectangle$java_awt_Rectangle(tmpRect); +return 2; +} else if (retValue == 0 && !((x + width <= siblingRect.x) || (y + height <= siblingRect.y) || (x >= siblingRect.x + siblingRect.width) || (y >= siblingRect.y + siblingRect.height) ) ) { +retValue=1; +}} +C$.recycleRectangle$java_awt_Rectangle(tmpRect); +return retValue; +}, p$1); + +Clazz_newMeth(C$, 'checkIfChildObscuredBySibling$', function () { +return true; +}); + +Clazz_newMeth(C$, 'setFlag$I$Z', function (aFlag, aValue) { +if (aValue) { +this.flags|=(1 << aFlag); +} else { +this.flags&=~(1 << aFlag); +}}, p$1); + +Clazz_newMeth(C$, 'getFlag$I', function (aFlag) { +var mask=(1 << aFlag); +return ((this.flags & mask) == mask); +}, p$1); + +Clazz_newMeth(C$, 'setDoubleBuffered$Z', function (aFlag) { +}); + +Clazz_newMeth(C$, 'isDoubleBuffered$', function () { +return p$1.getFlag$I.apply(this, [0]); +}); + +Clazz_newMeth(C$, 'getRootPane$', function () { +return $I$(1).getRootPane$java_awt_Component(this); +}); + +Clazz_newMeth(C$, 'paramString$', function () { +var preferredSizeString=(this.isPreferredSizeSet$() ? this.getPreferredSize$().toString() : ""); +var minimumSizeString=(this.isMinimumSizeSet$() ? this.getMinimumSize$().toString() : ""); +var maximumSizeString=(this.isMaximumSizeSet$() ? this.getMaximumSize$().toString() : ""); +var borderString=(this.秘border == null ? "" : (this.秘border === this ? "this" : this.秘border.toString())); +return C$.superclazz.prototype.paramString$.apply(this, []) + ",alignmentX=" + new Float(this.秘alignmentX).toString() + ",alignmentY=" + new Float(this.秘alignmentY).toString() + ",border=" + borderString + ",flags=" + this.flags + ",maximumSize=" + maximumSizeString + ",minimumSize=" + minimumSizeString + ",preferredSize=" + preferredSizeString ; +}); + +Clazz_newMeth(C$, 'isActionStandin$javax_swing_Action', function (action) { +return Clazz_instanceOf(action, "javax.swing.JComponent.ActionStandin"); +}, 1); + +Clazz_newMeth(C$, 'dropLocationForPoint$java_awt_Point', function (p) { +return null; +}); + +Clazz_newMeth(C$, 'setTransferHandler$javax_swing_TransferHandler', function (newHandler) { +var oldHandler=this.getClientProperty$O(C$.JComponent_TRANSFER_HANDLER); +this.putClientProperty$O$O(C$.JComponent_TRANSFER_HANDLER, newHandler); +$I$(1).installSwingDropTargetAsNecessary$java_awt_Component$javax_swing_TransferHandler(this, newHandler); +this.firePropertyChange$S$O$O("transferHandler", oldHandler, newHandler); +}); + +Clazz_newMeth(C$, 'getTransferHandler$', function () { +return null; +}); + +Clazz_newMeth(C$, 'setDropLocation$javax_swing_TransferHandler_DropLocation$O$Z', function (dropLocation, state, forDrop) { +return null; +}); + +Clazz_newMeth(C$, 'dndDone$', function () { +}); + +Clazz_newMeth(C$, 'paintComponentSafely$java_awt_Graphics', function (g) { +var jsg=this.秘getJSGraphic2D$java_awt_Graphics(g); +var nSave=(jsg == null ? 0 : jsg.mark$()); +this.秘checkBackgroundPainted$swingjs_JSGraphics2D$Z(jsg, true); +this.paintComponent$java_awt_Graphics(g); +this.秘checkBackgroundPainted$swingjs_JSGraphics2D$Z(jsg, false); +if (jsg != null ) { +jsg.reset$I(nSave); +}}, p$1); + +Clazz_newMeth(C$, 'printComponentSafely$java_awt_Graphics', function (g) { +var jsg=this.秘getJSGraphic2D$java_awt_Graphics(g); +var nSave=(jsg == null ? 0 : jsg.mark$()); +this.printComponent$java_awt_Graphics(g); +if (jsg != null ) jsg.reset$I(nSave); +}, p$1); + +Clazz_newMeth(C$, 'paintBorderSafely$java_awt_Graphics', function (g) { +if (this.getBorder$() == null ) return; +var jsg=this.秘getJSGraphic2D$java_awt_Graphics(g); +var nSave=(jsg == null ? 0 : jsg.mark$()); +this.paintBorder$java_awt_Graphics(g); +if (jsg != null ) jsg.reset$I(nSave); +}, p$1); + +Clazz_newMeth(C$, 'printBorderSafely$java_awt_Graphics', function (g) { +if (this.getBorder$() == null ) return; +var jsg=this.秘getJSGraphic2D$java_awt_Graphics(g); +var nSave=(jsg == null ? 0 : jsg.mark$()); +this.printBorder$java_awt_Graphics(g); +if (jsg != null ) jsg.reset$I(nSave); +}, p$1); +; +(function(){var C$=Clazz_newClass(P$.JComponent, "ActionStandin", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, null, 'javax.swing.Action'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.actionListener=null; +this.command=null; +this.action=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_event_ActionListener$S', function (actionListener, command) { +C$.$init$.apply(this); +this.actionListener=actionListener; +if (Clazz_instanceOf(actionListener, "javax.swing.Action")) { +this.action=actionListener; +} else { +this.action=null; +}this.command=command; +}, 1); + +Clazz_newMeth(C$, 'getValue$S', function (key) { +if (key != null ) { +if (key.equals$O("ActionCommandKey")) { +return this.command; +}if (this.action != null ) { +return this.action.getValue$S(key); +}if (key.equals$O("Name")) { +return "ActionStandin"; +}}return null; +}); + +Clazz_newMeth(C$, 'isEnabled$', function () { +if (this.actionListener == null ) { +return false; +}if (this.action == null ) { +return true; +}return this.action.isEnabled$(); +}); + +Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (ae) { +if (this.actionListener != null ) { +this.actionListener.actionPerformed$(ae); +}}); + +Clazz_newMeth(C$, 'putValue$S$O', function (key, value) { +}); + +Clazz_newMeth(C$, 'setEnabled$Z', function (b) { +}); + +Clazz_newMeth(C$, 'addPropertyChangeListener$java_beans_PropertyChangeListener', function (listener) { +}); + +Clazz_newMeth(C$, 'removePropertyChangeListener$java_beans_PropertyChangeListener', function (listener) { +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.JComponent, "IntVector", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.array=null; +this.count=0; +this.capacity=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.array=(null|0); +this.count=0; +this.capacity=0; +}, 1); + +Clazz_newMeth(C$, 'size$', function () { +return this.count; +}); + +Clazz_newMeth(C$, 'elementAt$I', function (index) { +return this.array[index]; +}); + +Clazz_newMeth(C$, 'addElement$I', function (value) { +if (this.count == this.capacity) { +this.capacity=(this.capacity + 2) * 2; +var newarray=Clazz_array(Integer.TYPE, [this.capacity]); +if (this.count > 0) { +System.arraycopy$O$I$O$I$I(this.array, 0, newarray, 0, this.count); +}this.array=newarray; +}this.array[this.count++]=value; +}); + +Clazz_newMeth(C$, 'setElementAt$I$I', function (value, index) { +this.array[index]=value; +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.JComponent, "KeyboardState", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}); +C$.keyCodesKey=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.keyCodesKey=Clazz_getClass(C$); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'getKeyCodeArray$', function () { +var iv=$I$(1).appContextGet$O(C$.keyCodesKey); +if (iv == null ) { +iv=Clazz_new_($I$(2)); +$I$(1).appContextPut$O$O(C$.keyCodesKey, iv); +}return iv; +}, 1); + +Clazz_newMeth(C$, 'registerKeyPressed$I', function (keyCode) { +var kca=C$.getKeyCodeArray$(); +var count=kca.size$(); +var i; +for (i=0; i < count; i++) { +if (kca.elementAt$I(i) == -1) { +kca.setElementAt$I$I(keyCode, i); +return; +}} +kca.addElement$I(keyCode); +}, 1); + +Clazz_newMeth(C$, 'registerKeyReleased$I', function (keyCode) { +var kca=C$.getKeyCodeArray$(); +var count=kca.size$(); +var i; +for (i=0; i < count; i++) { +if (kca.elementAt$I(i) == keyCode) { +kca.setElementAt$I$I(-1, i); +return; +}} +}, 1); + +Clazz_newMeth(C$, 'keyIsPressed$I', function (keyCode) { +var kca=C$.getKeyCodeArray$(); +var count=kca.size$(); +var i; +for (i=0; i < count; i++) { +if (kca.elementAt$I(i) == keyCode) { +return true; +}} +return false; +}, 1); + +Clazz_newMeth(C$, 'shouldProcess$java_awt_event_KeyEvent', function (e) { +switch (e.getID$()) { +case 401: +if (!C$.keyIsPressed$I(e.getKeyCode$())) { +C$.registerKeyPressed$I(e.getKeyCode$()); +}return true; +case 402: +if (C$.keyIsPressed$I(e.getKeyCode$()) || e.getKeyCode$() == 154 ) { +C$.registerKeyReleased$I(e.getKeyCode$()); +return true; +}return false; +case 400: +return true; +default: +return false; +} +}, 1); + +Clazz_newMeth(C$); +})() +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 13:00:44 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing"),I$=[[0,'javax.swing.JComponent','javax.swing.UIManager','javax.swing.JRootPane','javax.swing.SwingUtilities','javax.swing.RepaintManager','Boolean']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "JFrame", null, 'java.awt.JSFrame', ['javax.swing.WindowConstants', 'javax.swing.RootPaneContainer']); +C$.defaultLookAndFeelDecoratedKey=null; +C$.frameCount=0; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.defaultLookAndFeelDecoratedKey= Clazz_new_(); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.defaultCloseOperation=0; +this.transferHandler=null; +this.rootPane=null; +this.rootPaneCheckingEnabled=false; +this._boundsFrozen=false; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.defaultCloseOperation=1; +this.rootPaneCheckingEnabled=false; +}, 1); + +Clazz_newMeth(C$, 'add$java_awt_Component$O', function (comp, constraints) { +if (Clazz_instanceOf(comp, "javax.swing.JApplet")) { +this.秘isAppletFrame=true; +(comp).getLayeredPane$().秘isFramedApplet=true; +}C$.superclazz.prototype.add$java_awt_Component$O.apply(this, [comp, constraints]); +}); + +Clazz_newMeth(C$, 'c$', function () { +C$.c$$S$java_awt_GraphicsConfiguration.apply(this, [null, null]); +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_GraphicsConfiguration', function (gc) { +C$.c$$S$java_awt_GraphicsConfiguration.apply(this, [null, gc]); +}, 1); + +Clazz_newMeth(C$, 'c$$S', function (title) { +C$.c$$S$java_awt_GraphicsConfiguration.apply(this, [title, null]); +}, 1); + +Clazz_newMeth(C$, 'c$$S$java_awt_GraphicsConfiguration', function (title, gc) { +Clazz_super_(C$, this,1); +this.秘paintClass=this.秘updateClass=C$ ||null; +this.initTitleGC$S$java_awt_GraphicsConfiguration(title, gc); +this.enableEvents$J(72); +this.setLocale$java_util_Locale($I$(1).getDefaultLocale$()); +this.setRootPane$javax_swing_JRootPane(this.createRootPane$()); +this.rootPane.setFrameViewer$swingjs_JSFrameViewer(this.setFrameViewer$swingjs_JSFrameViewer(null)); +this.setBackground$java_awt_Color($I$(2).getColor$O("control")); +this.setRootPaneCheckingEnabled$Z(true); +if (C$.isDefaultLookAndFeelDecorated$()) { +var supportsWindowDecorations=$I$(2).getLookAndFeel$().getSupportsWindowDecorations$(); +if (supportsWindowDecorations) { +this.setUndecorated$Z(true); +this.getRootPane$().setWindowDecorationStyle$I(1); +}}this.updateUI$(); +this.秘frameAddNodify$javax_swing_JRootPane(this.rootPane); +}, 1); + +Clazz_newMeth(C$, 'c$$O$O$O$O', function (object, object2, object3, object4) { +Clazz_super_(C$, this,1); +}, 1); + +Clazz_newMeth(C$, 'getUIClassID$', function () { +return "FrameUI"; +}); + +Clazz_newMeth(C$, 'createRootPane$', function () { +var rp=Clazz_new_($I$(3).c$$S$Z$java_awt_Container,["_Frame" + (++C$.frameCount), false, this]); +rp.setOpaque$Z(true); +return rp; +}); + +Clazz_newMeth(C$, 'processWindowEvent$java_awt_event_WindowEvent', function (e) { +C$.superclazz.prototype.processWindowEvent$java_awt_event_WindowEvent.apply(this, [e]); +if (e.getID$() == 201) { +switch (this.defaultCloseOperation) { +case 1: +this.setVisible$Z(false); +break; +case 2: +this.dispose$(); +break; +case 0: +default: +break; +case 3: +System.exit$I(0); +break; +} +}}); + +Clazz_newMeth(C$, 'setDefaultCloseOperation$I', function (operation) { +if (operation != 0 && operation != 1 && operation != 2 && operation != 3 ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["defaultCloseOperation must be one of: DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE, DISPOSE_ON_CLOSE, or EXIT_ON_CLOSE"]); +}if (this.defaultCloseOperation != operation) { +if (operation == 3) { +var security=System.getSecurityManager$(); +if (security != null ) { +security.checkExit$I(0); +}}var oldValue=this.defaultCloseOperation; +this.defaultCloseOperation=operation; +this.firePropertyChange$S$I$I("defaultCloseOperation", oldValue, operation); +}}); + +Clazz_newMeth(C$, 'getDefaultCloseOperation$', function () { +return this.defaultCloseOperation; +}); + +Clazz_newMeth(C$, 'setTransferHandler$javax_swing_TransferHandler', function (newHandler) { +var oldHandler=this.transferHandler; +this.transferHandler=newHandler; +$I$(4).installSwingDropTargetAsNecessary$java_awt_Component$javax_swing_TransferHandler(this, this.transferHandler); +this.firePropertyChange$S$O$O("transferHandler", oldHandler, newHandler); +}); + +Clazz_newMeth(C$, 'getTransferHandler$', function () { +return this.transferHandler; +}); + +Clazz_newMeth(C$, 'update$java_awt_Graphics', function (g) { +this.paint$java_awt_Graphics(g); +}); + +Clazz_newMeth(C$, 'paint$java_awt_Graphics', function (g) { +(g).setBackground$java_awt_Color(this.getBackground$()); +(g).setColor$java_awt_Color(this.getForeground$()); +C$.superclazz.prototype.paint$java_awt_Graphics.apply(this, [g]); +}); + +Clazz_newMeth(C$, 'setJMenuBar$javax_swing_JMenuBar', function (menubar) { +this.getRootPane$().setMenuBar$javax_swing_JMenuBar(menubar); +}); + +Clazz_newMeth(C$, 'getJMenuBar$', function () { +return this.getRootPane$().getMenuBar$(); +}); + +Clazz_newMeth(C$, 'isRootPaneCheckingEnabled$', function () { +return this.rootPaneCheckingEnabled; +}); + +Clazz_newMeth(C$, 'setRootPaneCheckingEnabled$Z', function (enabled) { +this.rootPaneCheckingEnabled=enabled; +}); + +Clazz_newMeth(C$, 'addImpl$java_awt_Component$O$I', function (comp, constraints, index) { +if (this.isRootPaneCheckingEnabled$()) { +this.getContentPane$().add$java_awt_Component$O$I(comp, constraints, index); +return; +}this.addImplCont$java_awt_Component$O$I(comp, constraints, index); +}); + +Clazz_newMeth(C$, 'remove$java_awt_Component', function (comp) { +if (comp === this.rootPane ) { +C$.superclazz.prototype.remove$java_awt_Component.apply(this, [comp]); +} else { +this.getContentPane$().remove$java_awt_Component(comp); +}}); + +Clazz_newMeth(C$, 'setLayout$java_awt_LayoutManager', function (manager) { +if (this.isRootPaneCheckingEnabled$()) { +this.getContentPane$().setLayout$java_awt_LayoutManager(manager); +} else { +C$.superclazz.prototype.setLayout$java_awt_LayoutManager.apply(this, [manager]); +}}); + +Clazz_newMeth(C$, 'getRootPane$', function () { +return this.rootPane; +}); + +Clazz_newMeth(C$, 'setRootPane$javax_swing_JRootPane', function (root) { +if (this.rootPane != null ) { +this.remove$java_awt_Component(this.rootPane); +}this.rootPane=root; +if (this.rootPane != null ) { +var checkingEnabled=this.isRootPaneCheckingEnabled$(); +try { +this.setRootPaneCheckingEnabled$Z(false); +this.add$java_awt_Component$O(this.rootPane, "Center"); +} finally { +this.setRootPaneCheckingEnabled$Z(checkingEnabled); +} +}}); + +Clazz_newMeth(C$, 'setIconImage$java_awt_Image', function (image) { +C$.superclazz.prototype.setIconImage$java_awt_Image.apply(this, [image]); +}); + +Clazz_newMeth(C$, 'getContentPane$', function () { +return this.getRootPane$().getContentPane$(); +}); + +Clazz_newMeth(C$, 'setContentPane$java_awt_Container', function (contentPane) { +this.getRootPane$().setContentPane$java_awt_Container(contentPane); +}); + +Clazz_newMeth(C$, 'getLayeredPane$', function () { +return this.getRootPane$().getLayeredPane$(); +}); + +Clazz_newMeth(C$, 'setLayeredPane$javax_swing_JLayeredPane', function (layeredPane) { +this.getRootPane$().setLayeredPane$javax_swing_JLayeredPane(layeredPane); +}); + +Clazz_newMeth(C$, 'getGlassPane$', function () { +return this.getRootPane$().getGlassPane$(); +}); + +Clazz_newMeth(C$, 'setGlassPane$java_awt_Component', function (glassPane) { +this.getRootPane$().setGlassPane$java_awt_Component(glassPane); +}); + +Clazz_newMeth(C$, 'getGraphics$', function () { +$I$(1).getGraphicsInvoked$java_awt_Component(this); +return C$.superclazz.prototype.getGraphics$.apply(this, []); +}); + +Clazz_newMeth(C$, 'repaint$J$I$I$I$I', function (time, x, y, width, height) { +if ($I$(5).HANDLE_TOP_LEVEL_PAINT) { +$I$(5).currentManager$javax_swing_JComponent(this).addDirtyRegion$java_awt_Window$I$I$I$I(this, x, y, width, height); +} else { +C$.superclazz.prototype.repaint$J$I$I$I$I.apply(this, [time, x, y, width, height]); +}}); + +Clazz_newMeth(C$, 'setDefaultLookAndFeelDecorated$Z', function (defaultLookAndFeelDecorated) { +if (defaultLookAndFeelDecorated) { +$I$(4).appContextPut$O$O(C$.defaultLookAndFeelDecoratedKey, $I$(6).TRUE); +} else { +$I$(4).appContextPut$O$O(C$.defaultLookAndFeelDecoratedKey, $I$(6).FALSE); +}}, 1); + +Clazz_newMeth(C$, 'isDefaultLookAndFeelDecorated$', function () { +var defaultLookAndFeelDecorated=$I$(4).appContextGet$O(C$.defaultLookAndFeelDecoratedKey); +if (defaultLookAndFeelDecorated == null ) { +defaultLookAndFeelDecorated=$I$(6).FALSE; +}return defaultLookAndFeelDecorated.booleanValue$(); +}, 1); + +Clazz_newMeth(C$, 'paramString$', function () { +var defaultCloseOperationString; +if (this.defaultCloseOperation == 1) { +defaultCloseOperationString="HIDE_ON_CLOSE"; +} else if (this.defaultCloseOperation == 2) { +defaultCloseOperationString="DISPOSE_ON_CLOSE"; +} else if (this.defaultCloseOperation == 0) { +defaultCloseOperationString="DO_NOTHING_ON_CLOSE"; +} else if (this.defaultCloseOperation == 3) { +defaultCloseOperationString="EXIT_ON_CLOSE"; +} else defaultCloseOperationString=""; +var rootPaneString=(this.rootPane != null ? this.rootPane.toString() : ""); +var rootPaneCheckingEnabledString=(this.rootPaneCheckingEnabled ? "true" : "false"); +return C$.superclazz.prototype.paramString$.apply(this, []) + ",defaultCloseOperation=" + defaultCloseOperationString + ",rootPane=" + rootPaneString + ",rootPaneCheckingEnabled=" + rootPaneCheckingEnabledString ; +}); + +Clazz_newMeth(C$, '_freezeBounds$I$I', function (w, h) { +this.setSize$I$I(w, h); +this._boundsFrozen=true; +this.resizable=false; +}); + +Clazz_newMeth(C$, 'reshape$I$I$I$I', function (x, y, width, height) { +if (!this._boundsFrozen) C$.superclazz.prototype.reshape$I$I$I$I.apply(this, [x, y, width, height]); +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:01 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing"),I$=[[0,'javax.swing.SwingUtilities','javax.swing.UIManager']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "JLabel", null, 'javax.swing.JComponent', 'javax.swing.SwingConstants'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.mnemonic=0; +this.mnemonicIndex=0; +this.text=null; +this.defaultIcon=null; +this.disabledIcon=null; +this.disabledIconSet=false; +this.verticalAlignment=0; +this.horizontalAlignment=0; +this.verticalTextPosition=0; +this.horizontalTextPosition=0; +this.iconTextGap=0; +this.labelFor=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.mnemonic="\u0000".$c(); +this.mnemonicIndex=-1; +this.text=""; +this.defaultIcon=null; +this.disabledIcon=null; +this.disabledIconSet=false; +this.verticalAlignment=0; +this.horizontalAlignment=10; +this.verticalTextPosition=0; +this.horizontalTextPosition=11; +this.iconTextGap=4; +this.labelFor=null; +}, 1); + +Clazz_newMeth(C$, 'c$$S$javax_swing_Icon$I', function (text, icon, horizontalAlignment) { +Clazz_super_(C$, this,1); +this.setText$S(text); +this.setIcon$javax_swing_Icon(icon); +this.setHorizontalAlignment$I(horizontalAlignment); +this.updateUI$(); +this.setAlignmentX$F(0.0); +}, 1); + +Clazz_newMeth(C$, 'getUIClassID$', function () { +return "LabelUI"; +}); + +Clazz_newMeth(C$, 'c$$S$I', function (text, horizontalAlignment) { +C$.c$$S$javax_swing_Icon$I.apply(this, [text, null, horizontalAlignment]); +}, 1); + +Clazz_newMeth(C$, 'c$$S', function (text) { +C$.c$$S$javax_swing_Icon$I.apply(this, [text, null, 10]); +}, 1); + +Clazz_newMeth(C$, 'c$$javax_swing_Icon$I', function (image, horizontalAlignment) { +C$.c$$S$javax_swing_Icon$I.apply(this, [null, image, horizontalAlignment]); +}, 1); + +Clazz_newMeth(C$, 'c$$javax_swing_Icon', function (image) { +C$.c$$S$javax_swing_Icon$I.apply(this, [null, image, 0]); +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.c$$S$javax_swing_Icon$I.apply(this, ["", null, 10]); +}, 1); + +Clazz_newMeth(C$, 'setUI$javax_swing_plaf_LabelUI', function (ui) { +C$.superclazz.prototype.setUI$javax_swing_plaf_ComponentUI.apply(this, [ui]); +if (!this.disabledIconSet && this.disabledIcon != null ) { +this.setDisabledIcon$javax_swing_Icon(null); +}}); + +Clazz_newMeth(C$, 'getText$', function () { +return this.text; +}); + +Clazz_newMeth(C$, 'setText$S', function (text) { +var oldValue=this.text; +this.text=text; +this.firePropertyChange$S$O$O("text", oldValue, text); +this.setDisplayedMnemonicIndex$I($I$(1).findDisplayedMnemonicIndex$S$I(text, this.getDisplayedMnemonic$())); +if (text == null || oldValue == null || !text.equals$O(oldValue) ) { +if (this.秘isAWT$()) { +this.invalidateIfValid$(); +} else { +this.revalidate$(); +this.秘repaint$(); +}}}); + +Clazz_newMeth(C$, 'getIcon$', function () { +return this.defaultIcon; +}); + +Clazz_newMeth(C$, 'setIcon$javax_swing_Icon', function (icon) { +var oldValue=this.defaultIcon; +this.defaultIcon=icon; +if (this.defaultIcon != null ) this.秘setPaintsSelf$I(2); +if ((this.defaultIcon !== oldValue ) && !this.disabledIconSet ) { +this.disabledIcon=null; +}this.firePropertyChange$S$O$O("icon", oldValue, this.defaultIcon); +if (this.defaultIcon !== oldValue ) { +if ((this.defaultIcon == null ) || (oldValue == null ) || (this.defaultIcon.getIconWidth$() != oldValue.getIconWidth$()) || (this.defaultIcon.getIconHeight$() != oldValue.getIconHeight$()) ) { +this.revalidate$(); +}this.秘repaint$(); +}}); + +Clazz_newMeth(C$, 'getDisabledIcon$', function () { +if (!this.disabledIconSet && this.disabledIcon == null && this.defaultIcon != null ) { +this.disabledIcon=$I$(2).getLookAndFeel$().getDisabledIcon$javax_swing_JComponent$javax_swing_Icon(this, this.defaultIcon); +if (this.disabledIcon != null ) { +this.firePropertyChange$S$O$O("disabledIcon", null, this.disabledIcon); +}}return this.disabledIcon; +}); + +Clazz_newMeth(C$, 'setDisabledIcon$javax_swing_Icon', function (disabledIcon) { +var oldValue=this.disabledIcon; +this.disabledIcon=disabledIcon; +this.disabledIconSet=(disabledIcon != null ); +this.firePropertyChange$S$O$O("disabledIcon", oldValue, disabledIcon); +if (disabledIcon !== oldValue ) { +if (disabledIcon == null || oldValue == null || disabledIcon.getIconWidth$() != oldValue.getIconWidth$() || disabledIcon.getIconHeight$() != oldValue.getIconHeight$() ) { +this.revalidate$(); +}if (!this.isEnabled$()) { +this.秘repaint$(); +}}}); + +Clazz_newMeth(C$, 'setDisplayedMnemonic$I', function (key) { +var oldKey=this.mnemonic; +this.mnemonic=key; +this.firePropertyChange$S$I$I("displayedMnemonic", oldKey, this.mnemonic); +this.setDisplayedMnemonicIndex$I($I$(1).findDisplayedMnemonicIndex$S$I(this.getText$(), this.mnemonic)); +if (key != oldKey) { +this.revalidate$(); +this.秘repaint$(); +}}); + +Clazz_newMeth(C$, 'setDisplayedMnemonic$C', function (aChar) { +var vk=aChar.$c(); +if (vk >= 97 && vk <= 122 ) vk-=(32); +this.setDisplayedMnemonic$I(vk); +}); + +Clazz_newMeth(C$, 'getDisplayedMnemonic$', function () { +return this.mnemonic; +}); + +Clazz_newMeth(C$, 'setDisplayedMnemonicIndex$I', function (index) { +var oldValue=this.mnemonicIndex; +if (index == -1) { +this.mnemonicIndex=-1; +} else { +var text=this.getText$(); +var textLength=(text == null ) ? 0 : text.length$(); +if (index < -1 || index >= textLength ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["index == " + index]); +}}this.mnemonicIndex=index; +this.firePropertyChange$S$I$I("displayedMnemonicIndex", oldValue, index); +if (index != oldValue) { +this.revalidate$(); +this.秘repaint$(); +}}); + +Clazz_newMeth(C$, 'getDisplayedMnemonicIndex$', function () { +return this.mnemonicIndex; +}); + +Clazz_newMeth(C$, 'checkHorizontalKey$I$S', function (key, message) { +if ((key == 2) || (key == 0) || (key == 4) || (key == 10) || (key == 11) ) { +return key; +} else { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,[message]); +}}); + +Clazz_newMeth(C$, 'checkVerticalKey$I$S', function (key, message) { +if ((key == 1) || (key == 0) || (key == 3) ) { +return key; +} else { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,[message]); +}}); + +Clazz_newMeth(C$, 'getIconTextGap$', function () { +return this.iconTextGap; +}); + +Clazz_newMeth(C$, 'setIconTextGap$I', function (iconTextGap) { +var oldValue=this.iconTextGap; +this.iconTextGap=iconTextGap; +this.firePropertyChange$S$I$I("iconTextGap", oldValue, iconTextGap); +if (iconTextGap != oldValue) { +this.revalidate$(); +this.秘repaint$(); +}}); + +Clazz_newMeth(C$, 'getVerticalAlignment$', function () { +return this.verticalAlignment; +}); + +Clazz_newMeth(C$, 'setVerticalAlignment$I', function (alignment) { +if (alignment == this.verticalAlignment) return; +var oldValue=this.verticalAlignment; +this.verticalAlignment=this.checkVerticalKey$I$S(alignment, "verticalAlignment"); +this.firePropertyChange$S$I$I("verticalAlignment", oldValue, this.verticalAlignment); +this.秘repaint$(); +}); + +Clazz_newMeth(C$, 'getHorizontalAlignment$', function () { +return this.horizontalAlignment; +}); + +Clazz_newMeth(C$, 'setHorizontalAlignment$I', function (alignment) { +if (alignment == this.horizontalAlignment) return; +var oldValue=this.horizontalAlignment; +this.horizontalAlignment=this.checkHorizontalKey$I$S(alignment, "horizontalAlignment"); +this.firePropertyChange$S$I$I("horizontalAlignment", oldValue, this.horizontalAlignment); +this.秘repaint$(); +}); + +Clazz_newMeth(C$, 'getVerticalTextPosition$', function () { +return this.verticalTextPosition; +}); + +Clazz_newMeth(C$, 'setVerticalTextPosition$I', function (textPosition) { +if (textPosition == this.verticalTextPosition) return; +var old=this.verticalTextPosition; +this.verticalTextPosition=this.checkVerticalKey$I$S(textPosition, "verticalTextPosition"); +this.firePropertyChange$S$I$I("verticalTextPosition", old, this.verticalTextPosition); +this.revalidate$(); +this.秘repaint$(); +}); + +Clazz_newMeth(C$, 'getHorizontalTextPosition$', function () { +return this.horizontalTextPosition; +}); + +Clazz_newMeth(C$, 'setHorizontalTextPosition$I', function (textPosition) { +var old=this.horizontalTextPosition; +this.horizontalTextPosition=this.checkHorizontalKey$I$S(textPosition, "horizontalTextPosition"); +this.firePropertyChange$S$I$I("horizontalTextPosition", old, this.horizontalTextPosition); +this.revalidate$(); +this.秘repaint$(); +}); + +Clazz_newMeth(C$, ['imageUpdate$java_awt_Image$I$I$I$I$I','imageUpdate$'], function (img, infoflags, x, y, w, h) { +if (!this.isShowing$() || !$I$(1).doesIconReferenceImage$javax_swing_Icon$java_awt_Image(this.getIcon$(), img) && !$I$(1).doesIconReferenceImage$javax_swing_Icon$java_awt_Image(this.disabledIcon, img) ) { +return false; +}return C$.superclazz.prototype.imageUpdate$java_awt_Image$I$I$I$I$I.apply(this, [img, infoflags, x, y, w, h]); +}); + +Clazz_newMeth(C$, 'paramString$', function () { +var textString=(this.text != null ? this.text : ""); +var defaultIconString=((this.defaultIcon != null ) && (this.defaultIcon !== this ) ? this.defaultIcon.toString() : ""); +var disabledIconString=((this.disabledIcon != null ) && (this.disabledIcon !== this ) ? this.disabledIcon.toString() : ""); +var labelForString=(this.labelFor != null ? this.labelFor.toString() : ""); +var verticalAlignmentString; +if (this.verticalAlignment == 1) { +verticalAlignmentString="TOP"; +} else if (this.verticalAlignment == 0) { +verticalAlignmentString="CENTER"; +} else if (this.verticalAlignment == 3) { +verticalAlignmentString="BOTTOM"; +} else verticalAlignmentString=""; +var horizontalAlignmentString; +if (this.horizontalAlignment == 2) { +horizontalAlignmentString="LEFT"; +} else if (this.horizontalAlignment == 0) { +horizontalAlignmentString="CENTER"; +} else if (this.horizontalAlignment == 4) { +horizontalAlignmentString="RIGHT"; +} else if (this.horizontalAlignment == 10) { +horizontalAlignmentString="LEADING"; +} else if (this.horizontalAlignment == 11) { +horizontalAlignmentString="TRAILING"; +} else horizontalAlignmentString=""; +var verticalTextPositionString; +if (this.verticalTextPosition == 1) { +verticalTextPositionString="TOP"; +} else if (this.verticalTextPosition == 0) { +verticalTextPositionString="CENTER"; +} else if (this.verticalTextPosition == 3) { +verticalTextPositionString="BOTTOM"; +} else verticalTextPositionString=""; +var horizontalTextPositionString; +if (this.horizontalTextPosition == 2) { +horizontalTextPositionString="LEFT"; +} else if (this.horizontalTextPosition == 0) { +horizontalTextPositionString="CENTER"; +} else if (this.horizontalTextPosition == 4) { +horizontalTextPositionString="RIGHT"; +} else if (this.horizontalTextPosition == 10) { +horizontalTextPositionString="LEADING"; +} else if (this.horizontalTextPosition == 11) { +horizontalTextPositionString="TRAILING"; +} else horizontalTextPositionString=""; +return C$.superclazz.prototype.paramString$.apply(this, []) + ",defaultIcon=" + defaultIconString + ",disabledIcon=" + disabledIconString + ",horizontalAlignment=" + horizontalAlignmentString + ",horizontalTextPosition=" + horizontalTextPositionString + ",iconTextGap=" + this.iconTextGap + ",labelFor=" + labelForString + ",text=" + textString + ",verticalAlignment=" + verticalAlignmentString + ",verticalTextPosition=" + verticalTextPositionString ; +}); + +Clazz_newMeth(C$, 'getLabelFor$', function () { +return this.labelFor; +}); + +Clazz_newMeth(C$, 'setLabelFor$java_awt_Component', function (c) { +var oldC=this.labelFor; +this.labelFor=c; +this.firePropertyChange$S$O$O("labelFor", oldC, c); +if (Clazz_instanceOf(oldC, "javax.swing.JComponent")) { +(oldC).putClientProperty$O$O("labeledBy", null); +}if (Clazz_instanceOf(c, "javax.swing.JComponent")) { +(c).putClientProperty$O$O("labeledBy", this); +}}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:01 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing"),p$1={},I$=[[0,'java.awt.JSComponent','java.awt.Component','java.awt.Color','java.util.Hashtable','java.util.ArrayList']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "JLayeredPane", null, 'javax.swing.JComponent'); +C$.DEFAULT_LAYER=null; +C$.PALETTE_LAYER=null; +C$.MODAL_LAYER=null; +C$.POPUP_LAYER=null; +C$.DRAG_LAYER=null; +C$.FRAME_CONTENT_LAYER=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.DEFAULT_LAYER= new Integer(0); +C$.PALETTE_LAYER= new Integer(100); +C$.MODAL_LAYER= new Integer(200); +C$.POPUP_LAYER= new Integer(300); +C$.DRAG_LAYER= new Integer(400); +C$.FRAME_CONTENT_LAYER= new Integer(-30000); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.componentToLayer=null; +this.optimizedDrawingPossible=false; +this.isAWT=false; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.optimizedDrawingPossible=true; +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.c$$Z.apply(this, [false]); +}, 1); + +Clazz_newMeth(C$, 'c$$Z', function (isAWTContainer) { +C$.superclazz.c$.apply(this, []); +C$.$init$.apply(this); +this.initLayeredPane$(); +this.isAWT=isAWTContainer; +this.秘paintClass=C$ ||null; +}, 1); + +Clazz_newMeth(C$, 'initLayeredPane$', function () { +this.updateUI$(); +this.setLayout$java_awt_LayoutManager(null); +}); + +Clazz_newMeth(C$, 'getUIClassID$', function () { +return "LayeredPaneUI"; +}); + +Clazz_newMeth(C$, 'validateOptimizedDrawing', function () { +var layeredComponentFound=false; +/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$()); +{ +var layer=null; +var children=$I$(1).秘getChildArray$java_awt_Container(this); +var n=this.getComponentCount$(); +for (var i=0; i < n; i++) { +var c=children[i]; +layer=null; +if ((Clazz_instanceOf(c, "javax.swing.JComponent") && (layer=(c).getClientProperty$O("layeredContainerLayer")) != null )) { +if (layer != null && layer.equals$O(C$.FRAME_CONTENT_LAYER) ) continue; +layeredComponentFound=true; +break; +}} +}if (layeredComponentFound) this.optimizedDrawingPossible=false; + else this.optimizedDrawingPossible=true; +}, p$1); + +Clazz_newMeth(C$, 'addImpl$java_awt_Component$O$I', function (comp, constraints, index) { +var layer=C$.DEFAULT_LAYER.intValue$(); +var pos; +if (Clazz_instanceOf(constraints, "java.lang.Integer")) { +layer=(constraints).intValue$(); +this.setLayer$java_awt_Component$I(comp, layer); +} else layer=C$.getLayer$java_awt_Component(comp); +pos=this.insertIndexForLayer$I$I(layer, index); +this.addImplCont$java_awt_Component$O$I(comp, constraints, pos); +comp.validate$(); +comp.repaint$(); +p$1.validateOptimizedDrawing.apply(this, []); +}); + +Clazz_newMeth(C$, 'remove$I', function (index) { +var c=this.getComponent$I(index); +C$.superclazz.prototype.remove$I.apply(this, [index]); +if (c != null && !(Clazz_instanceOf(c, "javax.swing.JComponent")) ) { +this.getComponentToLayer$().remove$O(c); +}p$1.validateOptimizedDrawing.apply(this, []); +}); + +Clazz_newMeth(C$, 'removeAll$', function () { +var children=$I$(1).秘getChildArray$java_awt_Container(this); +var n=this.getComponentCount$(); +var cToL=this.getComponentToLayer$(); +for (var counter=n - 1; counter >= 0; counter--) { +var c=children[counter]; +if (c != null && !(Clazz_instanceOf(c, "javax.swing.JComponent")) ) { +cToL.remove$O(c); +}} +C$.superclazz.prototype.removeAll$.apply(this, []); +}); + +Clazz_newMeth(C$, 'isOptimizedDrawingEnabled$', function () { +return this.optimizedDrawingPossible; +}); + +Clazz_newMeth(C$, 'putLayer$javax_swing_JComponent$I', function (c, layer) { +var layerObj; +layerObj= new Integer(layer); +c.putClientProperty$O$O("layeredContainerLayer", layerObj); +}, 1); + +Clazz_newMeth(C$, 'getLayer$javax_swing_JComponent', function (c) { +var i; +if ((i=c.getClientProperty$O("layeredContainerLayer")) != null ) return i.intValue$(); +return C$.DEFAULT_LAYER.intValue$(); +}, 1); + +Clazz_newMeth(C$, 'getLayeredPaneAbove$java_awt_Component', function (c) { +if (c == null ) return null; +var parent=c.getParent$(); +while (parent != null && !(Clazz_instanceOf(parent, "javax.swing.JLayeredPane")) )parent=parent.getParent$(); + +return parent; +}, 1); + +Clazz_newMeth(C$, 'setLayer$java_awt_Component$I', function (c, layer) { +this.setLayer$java_awt_Component$I$I(c, layer, -1); +}); + +Clazz_newMeth(C$, 'setLayer$java_awt_Component$I$I', function (c, layer, position) { +var layerObj; +layerObj=this.getObjectForLayer$I(layer); +if (layer == C$.getLayer$java_awt_Component(c) && position == this.getPosition$java_awt_Component(c) ) { +this.秘updateUIZOrder$(); +return; +}if (Clazz_instanceOf(c, "javax.swing.JComponent")) (c).putClientProperty$O$O("layeredContainerLayer", layerObj); + else this.getComponentToLayer$().put$TK$TV(c, layerObj); +if (c.getParent$() == null || c.getParent$() !== this ) { +return; +}this.setComponentZOrder$java_awt_Component$I(c, p$1.insertIndexForLayer$java_awt_Component$I$I.apply(this, [c, layer, position])); +}); + +Clazz_newMeth(C$, 'getLayer$java_awt_Component', function (c) { +var i; +if ((i=(c).getClientProperty$O("layeredContainerLayer")) != null ) return i.intValue$(); +return C$.DEFAULT_LAYER.intValue$(); +}, 1); + +Clazz_newMeth(C$, 'getIndexOf$java_awt_Component', function (c) { +var i; +var count; +count=this.getComponentCount$(); +for (i=0; i < count; i++) { +if (c === this.getComponent$I(i) ) return i; +} +return -1; +}); + +Clazz_newMeth(C$, 'moveToFront$java_awt_Component', function (c) { +this.setPosition$java_awt_Component$I(c, 0); +}); + +Clazz_newMeth(C$, 'moveToBack$java_awt_Component', function (c) { +this.setPosition$java_awt_Component$I(c, -1); +}); + +Clazz_newMeth(C$, 'setPosition$java_awt_Component$I', function (c, position) { +this.setLayer$java_awt_Component$I$I(c, C$.getLayer$java_awt_Component(c), position); +}); + +Clazz_newMeth(C$, 'getPosition$java_awt_Component', function (c) { +var i; +var count; +var startLayer; +var curLayer; +var startLocation; +var pos=0; +count=this.getComponentCount$(); +startLocation=this.getIndexOf$java_awt_Component(c); +if (startLocation == -1) return -1; +startLayer=C$.getLayer$java_awt_Component(c); +for (i=startLocation - 1; i >= 0; i--) { +curLayer=C$.getLayer$java_awt_Component(this.getComponent$I(i)); +if (curLayer == startLayer) pos++; + else return pos; +} +return pos; +}); + +Clazz_newMeth(C$, 'highestLayer$', function () { +if (this.getComponentCount$() > 0) return C$.getLayer$java_awt_Component(this.getComponent$I(0)); +return 0; +}); + +Clazz_newMeth(C$, 'lowestLayer$', function () { +var count=this.getComponentCount$(); +if (count > 0) return C$.getLayer$java_awt_Component(this.getComponent$I(count - 1)); +return 0; +}); + +Clazz_newMeth(C$, 'getComponentCountInLayer$I', function (layer) { +var i; +var count; +var curLayer; +var layerCount=0; +count=this.getComponentCount$(); +for (i=0; i < count; i++) { +curLayer=C$.getLayer$java_awt_Component(this.getComponent$I(i)); +if (curLayer == layer) { +layerCount++; +} else if (layerCount > 0 || curLayer < layer ) { +break; +}} +return layerCount; +}); + +Clazz_newMeth(C$, 'getComponentsInLayer$I', function (layer) { +var i; +var count; +var curLayer; +var layerCount=0; +var results; +results=Clazz_array($I$(2), [this.getComponentCountInLayer$I(layer)]); +count=this.getComponentCount$(); +for (i=0; i < count; i++) { +curLayer=C$.getLayer$java_awt_Component(this.getComponent$I(i)); +if (curLayer == layer) { +results[layerCount++]=this.getComponent$I(i); +} else if (layerCount > 0 || curLayer < layer ) { +break; +}} +return results; +}); + +Clazz_newMeth(C$, 'paint$java_awt_Graphics', function (g) { +if (this.isOpaque$()) { +var r=g.getClipBounds$(); +var c=this.getBackground$(); +if (c == null ) c=$I$(3).lightGray; +g.setColor$java_awt_Color(c); +if (r != null ) { +g.fillRect$I$I$I$I(r.x, r.y, r.width, r.height); +} else { +g.fillRect$I$I$I$I(0, 0, this.getWidth$(), this.getHeight$()); +}}C$.superclazz.prototype.paint$java_awt_Graphics.apply(this, [g]); +}); + +Clazz_newMeth(C$, 'getComponentToLayer$', function () { +if (this.componentToLayer == null ) this.componentToLayer=Clazz_new_($I$(4).c$$I,[4]); +return this.componentToLayer; +}); + +Clazz_newMeth(C$, 'getObjectForLayer$I', function (layer) { +var layerObj; +switch (layer) { +case 0: +layerObj=C$.DEFAULT_LAYER; +break; +case 100: +layerObj=C$.PALETTE_LAYER; +break; +case 200: +layerObj=C$.MODAL_LAYER; +break; +case 300: +layerObj=C$.POPUP_LAYER; +break; +case 400: +layerObj=C$.DRAG_LAYER; +break; +default: +layerObj= new Integer(layer); +} +return layerObj; +}); + +Clazz_newMeth(C$, 'insertIndexForLayer$I$I', function (layer, position) { +return p$1.insertIndexForLayer$java_awt_Component$I$I.apply(this, [null, layer, position]); +}); + +Clazz_newMeth(C$, 'insertIndexForLayer$java_awt_Component$I$I', function (comp, layer, position) { +var i; +var count; +var curLayer; +var layerStart=-1; +var layerEnd=-1; +var componentCount=this.getComponentCount$(); +var compList=Clazz_new_($I$(5).c$$I,[componentCount]); +for (var index=0; index < componentCount; index++) { +if (this.getComponent$I(index) !== comp ) { +compList.add$TE(this.getComponent$I(index)); +}} +count=compList.size$(); +for (i=0; i < count; i++) { +curLayer=C$.getLayer$java_awt_Component(compList.get$I(i)); +if (layerStart == -1 && curLayer == layer ) { +layerStart=i; +}if (curLayer < layer) { +if (i == 0) { +layerStart=0; +layerEnd=0; +} else { +layerEnd=i; +}break; +}} +if (layerStart == -1 && layerEnd == -1 ) return count; +if (layerStart != -1 && layerEnd == -1 ) layerEnd=count; +if (layerEnd != -1 && layerStart == -1 ) layerStart=layerEnd; +if (position == -1) return layerEnd; +if (position > -1 && layerStart + position <= layerEnd ) return layerStart + position; +return layerEnd; +}, p$1); + +Clazz_newMeth(C$, 'paramString$', function () { +var optimizedDrawingPossibleString=(this.optimizedDrawingPossible ? "true" : "false"); +return C$.superclazz.prototype.paramString$.apply(this, []) + ",optimizedDrawingPossible=" + optimizedDrawingPossibleString ; +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:02 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing"),p$1={},I$=[[0,'javax.swing.UIManager','java.awt.Toolkit','java.awt.Rectangle','javax.swing.SwingUtilities','java.awt.Point','javax.swing.JPopupMenu','javax.swing.JMenuItem',['javax.swing.JPopupMenu','.Separator'],'Error','java.awt.Container','java.awt.JSComponent','javax.swing.event.MenuListener','javax.swing.event.MenuEvent',['javax.swing.JMenu','.MenuChangeListener'],['javax.swing.JMenu','.WinListener'],'javax.swing.MenuElement','javax.swing.MenuSelectionManager','java.util.Vector']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "JMenu", function(){ +Clazz_newInstance(this, arguments,0,C$); +}, 'javax.swing.JMenuItem', 'javax.swing.MenuElement'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.popupMenu=null; +this.menuChangeListener=null; +this.menuEvent=null; +this.delay=0; +this.customMenuLocation=null; +this.popupListener=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.menuChangeListener=null; +this.menuEvent=null; +this.customMenuLocation=null; +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.c$$S.apply(this, [""]); +}, 1); + +Clazz_newMeth(C$, 'c$$S', function (s) { +C$.superclazz.c$$S.apply(this, [s]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'c$$javax_swing_Action', function (a) { +C$.c$.apply(this, []); +this.setAction$javax_swing_Action(a); +}, 1); + +Clazz_newMeth(C$, 'c$$S$Z', function (s, b) { +C$.c$$S.apply(this, [s]); +}, 1); + +Clazz_newMeth(C$, 'getUIClassID$', function () { +return "MenuUI"; +}); + +Clazz_newMeth(C$, 'initFocusability$', function () { +}); + +Clazz_newMeth(C$, 'updateUI$', function () { +C$.superclazz.prototype.updateUI$.apply(this, []); +if (this.popupMenu != null ) { +this.popupMenu.setUI$javax_swing_plaf_ComponentUI($I$(1).getUI$java_awt_Component(this.popupMenu)); +}}); + +Clazz_newMeth(C$, 'addNotify$', function () { +C$.superclazz.prototype.addNotify$.apply(this, []); +if (this.popupMenu != null ) this.popupMenu.addNotify$(); +}); + +Clazz_newMeth(C$, 'setModel$javax_swing_ButtonModel', function (newModel) { +var oldModel=this.getModel$(); +C$.superclazz.prototype.setModel$javax_swing_ButtonModel.apply(this, [newModel]); +if (oldModel != null && this.menuChangeListener != null ) { +oldModel.removeChangeListener$javax_swing_event_ChangeListener(this.menuChangeListener); +this.menuChangeListener=null; +}this.model=newModel; +if (newModel != null ) { +this.menuChangeListener=p$1.createMenuChangeListener.apply(this, []); +newModel.addChangeListener$javax_swing_event_ChangeListener(this.menuChangeListener); +}}); + +Clazz_newMeth(C$, 'isSelected$', function () { +return this.getModel$().isSelected$(); +}); + +Clazz_newMeth(C$, 'setSelected$Z', function (b) { +var model=this.getModel$(); +if (b != model.isSelected$() ) { +this.getModel$().setSelected$Z(b); +}}); + +Clazz_newMeth(C$, 'isPopupMenuVisible$', function () { +p$1.ensurePopupMenuCreated.apply(this, []); +return this.popupMenu.isVisible$(); +}); + +Clazz_newMeth(C$, 'setPopupMenuVisible$Z', function (b) { +var isVisible=this.isPopupMenuVisible$(); +if (b != isVisible && (this.isEnabled$() || !b ) ) { +p$1.ensurePopupMenuCreated.apply(this, []); +if (b && this.isShowing$() ) { +var p=p$1.getCustomMenuLocation.apply(this, []); +if (p == null ) { +p=this.getPopupMenuOrigin$(); +}this.getPopupMenu$().show$java_awt_Component$I$I(this, p.x, p.y); +} else { +this.getPopupMenu$().setVisible$Z(false); +}}}); + +Clazz_newMeth(C$, 'getPopupMenuOrigin$', function () { +var x=0; +var y=0; +var pm=this.getPopupMenu$(); +var s=this.getSize$(); +var pmSize=pm.getSize$(); +if (pmSize.width == 0) { +pmSize=pm.getPreferredSize$(); +}var position=this.getLocationOnScreen$(); +var toolkit=$I$(2).getDefaultToolkit$(); +var gc=this.getGraphicsConfiguration$(); +var screenBounds=Clazz_new_($I$(3).c$$java_awt_Dimension,[toolkit.getScreenSize$()]); +if (gc != null ) { +screenBounds=gc.getBounds$(); +var screenInsets=toolkit.getScreenInsets$java_awt_GraphicsConfiguration(gc); +screenBounds.width-=Math.abs(screenInsets.left + screenInsets.right); +screenBounds.height-=Math.abs(screenInsets.top + screenInsets.bottom); +position.x-=Math.abs(screenInsets.left); +position.y-=Math.abs(screenInsets.top); +}var parent=this.getParent$(); +if (Clazz_instanceOf(parent, "javax.swing.JPopupMenu")) { +var xOffset=$I$(1).getInt$O("Menu.submenuPopupOffsetX"); +var yOffset=$I$(1).getInt$O("Menu.submenuPopupOffsetY"); +if ($I$(4).isLeftToRight$java_awt_Component(this)) { +x=s.width + xOffset; +if (position.x + x + pmSize.width >= screenBounds.width + screenBounds.x && screenBounds.width - s.width < 2 * (position.x - screenBounds.x) ) { +x=0 - xOffset - pmSize.width ; +}} else { +x=0 - xOffset - pmSize.width ; +if (position.x + x < screenBounds.x && screenBounds.width - s.width > 2 * (position.x - screenBounds.x) ) { +x=s.width + xOffset; +}}y=yOffset; +if (position.y + y + pmSize.height >= screenBounds.height + screenBounds.y && screenBounds.height - s.height < 2 * (position.y - screenBounds.y) ) { +y=s.height - yOffset - pmSize.height ; +}} else { +var xOffset=$I$(1).getInt$O("Menu.menuPopupOffsetX"); +var yOffset=$I$(1).getInt$O("Menu.menuPopupOffsetY"); +if ($I$(4).isLeftToRight$java_awt_Component(this)) { +x=xOffset; +if (position.x + x + pmSize.width >= screenBounds.width + screenBounds.x && screenBounds.width - s.width < 2 * (position.x - screenBounds.x) ) { +x=s.width - xOffset - pmSize.width ; +}} else { +x=s.width - xOffset - pmSize.width ; +if (position.x + x < screenBounds.x && screenBounds.width - s.width > 2 * (position.x - screenBounds.x) ) { +x=xOffset; +}}y=s.height + yOffset; +if (position.y + y + pmSize.height >= screenBounds.height && screenBounds.height - s.height < 2 * (position.y - screenBounds.y) ) { +y=0 - yOffset - pmSize.height ; +}}return Clazz_new_($I$(5).c$$I$I,[x, y]); +}); + +Clazz_newMeth(C$, 'getDelay$', function () { +return this.delay; +}); + +Clazz_newMeth(C$, 'setDelay$I', function (d) { +if (d < 0) throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["Delay must be a positive integer"]); +this.delay=d; +}); + +Clazz_newMeth(C$, 'ensurePopupMenuCreated', function () { +if (this.popupMenu == null ) { +this.popupMenu=Clazz_new_($I$(6)); +this.popupMenu.setInvoker$java_awt_Component(this); +this.popupListener=this.createWinListener$javax_swing_JPopupMenu(this.popupMenu); +this.popupMenu.addNotify$(); +}}, p$1); + +Clazz_newMeth(C$, 'getCustomMenuLocation', function () { +return this.customMenuLocation; +}, p$1); + +Clazz_newMeth(C$, 'setMenuLocation$I$I', function (x, y) { +this.customMenuLocation=Clazz_new_($I$(5).c$$I$I,[x, y]); +if (this.popupMenu != null ) this.popupMenu.setLocation$I$I(x, y); +}); + +Clazz_newMeth(C$, 'add$javax_swing_JMenuItem', function (menuItem) { +p$1.ensurePopupMenuCreated.apply(this, []); +this.popupMenu.add$javax_swing_JMenuItem(menuItem); +this.firePropertyChange$S$O$O("JSitem", null, menuItem); +return menuItem; +}); + +Clazz_newMeth(C$, 'add$java_awt_Component', function (c) { +p$1.ensurePopupMenuCreated.apply(this, []); +this.popupMenu.add$java_awt_Component(c); +this.firePropertyChange$S$O$O("JSitem", null, c); +return c; +}); + +Clazz_newMeth(C$, 'add$java_awt_Component$I', function (c, index) { +p$1.ensurePopupMenuCreated.apply(this, []); +this.popupMenu.add$java_awt_Component$I(c, index); +this.firePropertyChange$S$O$O("JSitem", null, c); +return c; +}); + +Clazz_newMeth(C$, 'add$S', function (s) { +return this.add$javax_swing_JMenuItem(Clazz_new_($I$(7).c$$S,[s])); +}); + +Clazz_newMeth(C$, 'add$javax_swing_Action', function (a) { +var mi=this.createActionComponent$javax_swing_Action(a); +mi.setAction$javax_swing_Action(a); +this.add$javax_swing_JMenuItem(mi); +return mi; +}); + +Clazz_newMeth(C$, 'createActionComponent$javax_swing_Action', function (a) { +var mi=((P$.JMenu$1|| +(function(){var C$=Clazz_newClass(P$, "JMenu$1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, Clazz_load('javax.swing.JMenuItem'), null, 1); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'createActionPropertyChangeListener$javax_swing_Action', function (a) { +var pcl=this.b$['javax.swing.JMenu'].createActionChangeListener$javax_swing_JMenuItem.apply(this.b$['javax.swing.JMenu'], [this]); +if (pcl == null ) { +pcl=C$.superclazz.prototype.createActionPropertyChangeListener$javax_swing_Action.apply(this, [a]); +}return pcl; +}); +})() +), Clazz_new_($I$(7), [this, null],P$.JMenu$1)); +mi.setHorizontalTextPosition$I(11); +mi.setVerticalTextPosition$I(0); +return mi; +}); + +Clazz_newMeth(C$, 'createActionChangeListener$javax_swing_JMenuItem', function (b) { +return b.createActionPropertyChangeListener0$javax_swing_Action(b.getAction$()); +}); + +Clazz_newMeth(C$, 'addSeparator$', function () { +p$1.ensurePopupMenuCreated.apply(this, []); +this.popupMenu.addSeparator$(); +}); + +Clazz_newMeth(C$, 'insert$S$I', function (s, pos) { +if (pos < 0) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["index less than zero."]); +}p$1.ensurePopupMenuCreated.apply(this, []); +this.popupMenu.insert$java_awt_Component$I(Clazz_new_($I$(7).c$$S,[s]), pos); +}); + +Clazz_newMeth(C$, 'insert$javax_swing_JMenuItem$I', function (mi, pos) { +if (pos < 0) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["index less than zero."]); +}p$1.ensurePopupMenuCreated.apply(this, []); +this.popupMenu.insert$java_awt_Component$I(mi, pos); +return mi; +}); + +Clazz_newMeth(C$, 'insert$javax_swing_Action$I', function (a, pos) { +if (pos < 0) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["index less than zero."]); +}p$1.ensurePopupMenuCreated.apply(this, []); +var mi=Clazz_new_($I$(7).c$$javax_swing_Action,[a]); +mi.setHorizontalTextPosition$I(11); +mi.setVerticalTextPosition$I(0); +this.popupMenu.insert$java_awt_Component$I(mi, pos); +return mi; +}); + +Clazz_newMeth(C$, 'insertSeparator$I', function (index) { +if (index < 0) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["index less than zero."]); +}p$1.ensurePopupMenuCreated.apply(this, []); +var sep=Clazz_new_($I$(8)); +sep.秘j2sInvalidateOnAdd=false; +this.popupMenu.insert$java_awt_Component$I(sep, index); +}); + +Clazz_newMeth(C$, 'getItem$I', function (pos) { +if (pos < 0) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["index less than zero."]); +}var c=this.getMenuComponent$I(pos); +if (Clazz_instanceOf(c, "javax.swing.JMenuItem")) { +var mi=c; +return mi; +}return null; +}); + +Clazz_newMeth(C$, 'getItemCount$', function () { +return this.getMenuComponentCount$(); +}); + +Clazz_newMeth(C$, 'isTearOff$', function () { +throw Clazz_new_($I$(9).c$$S,["boolean isTearOff() {} not yet implemented"]); +}); + +Clazz_newMeth(C$, 'remove$javax_swing_JMenuItem', function (item) { +this.remove$java_awt_Component(item); +}); + +Clazz_newMeth(C$, 'remove$I', function (pos) { +if (pos < 0) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["index less than zero."]); +}if (pos > this.getItemCount$()) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["index greater than the number of items."]); +}if (this.popupMenu != null ) this.popupMenu.remove$I(pos); +}); + +Clazz_newMeth(C$, 'remove$java_awt_Component', function (c) { +if (this.popupMenu != null ) this.popupMenu.remove$java_awt_Component(c); +this.firePropertyChange$S$O$O("JSitem", c, null); +}); + +Clazz_newMeth(C$, 'removeAll$', function () { +if (this.popupMenu != null ) this.popupMenu.removeAll$(); +this.firePropertyChange$S$O$O("JSitem", this, null); +}); + +Clazz_newMeth(C$, 'getMenuComponentCount$', function () { +return (this.popupMenu == null ? 0 : this.popupMenu.getComponentCount$()); +}); + +Clazz_newMeth(C$, 'getMenuComponent$I', function (n) { +return (this.popupMenu == null ? null : this.popupMenu.getComponent$I(n)); +}); + +Clazz_newMeth(C$, 'getMenuComponents$', function () { +return (this.popupMenu == null ? $I$(10).EMPTY_ARRAY : this.popupMenu.getComponents$()); +}); + +Clazz_newMeth(C$, 'getMenuArray$', function () { +return $I$(11).秘getChildArray$java_awt_Container(this.popupMenu); +}); + +Clazz_newMeth(C$, 'isTopLevelMenu$', function () { +return (Clazz_instanceOf(this.getParent$(), "javax.swing.JMenuBar")); +}); + +Clazz_newMeth(C$, 'isMenuComponent$java_awt_Component', function (c) { +if (c === this ) return true; +if (Clazz_instanceOf(c, "javax.swing.JPopupMenu")) { +var comp=c; +if (comp === this.getPopupMenu$() ) return true; +}var ncomponents=this.getMenuComponentCount$(); +var component=this.getMenuArray$(); +for (var i=0; i < ncomponents; i++) { +var comp=component[i]; +if (comp === c ) return true; +if (Clazz_instanceOf(comp, "javax.swing.JMenu")) { +var subMenu=comp; +if (subMenu.isMenuComponent$java_awt_Component(c)) return true; +}} +return false; +}); + +Clazz_newMeth(C$, 'getPopupMenu$', function () { +p$1.ensurePopupMenuCreated.apply(this, []); +return this.popupMenu; +}); + +Clazz_newMeth(C$, 'addMenuListener$javax_swing_event_MenuListener', function (l) { +this.listenerList.add$Class$TT(Clazz_getClass($I$(12),['menuCanceled$javax_swing_event_MenuEvent','menuDeselected$javax_swing_event_MenuEvent','menuSelected$javax_swing_event_MenuEvent']), l); +}); + +Clazz_newMeth(C$, 'removeMenuListener$javax_swing_event_MenuListener', function (l) { +this.listenerList.remove$Class$TT(Clazz_getClass($I$(12),['menuCanceled$javax_swing_event_MenuEvent','menuDeselected$javax_swing_event_MenuEvent','menuSelected$javax_swing_event_MenuEvent']), l); +}); + +Clazz_newMeth(C$, 'getMenuListeners$', function () { +return this.listenerList.getListeners$Class(Clazz_getClass($I$(12),['menuCanceled$javax_swing_event_MenuEvent','menuDeselected$javax_swing_event_MenuEvent','menuSelected$javax_swing_event_MenuEvent'])); +}); + +Clazz_newMeth(C$, 'fireMenuSelected$', function () { +var listeners=this.listenerList.getListenerList$(); +for (var i=listeners.length - 2; i >= 0; i-=2) { +if (listeners[i] === Clazz_getClass($I$(12),['menuCanceled$javax_swing_event_MenuEvent','menuDeselected$javax_swing_event_MenuEvent','menuSelected$javax_swing_event_MenuEvent']) ) { +if (listeners[i + 1] == null ) { +throw Clazz_new_($I$(9).c$$S,[this.getText$() + " has a NULL Listener!! " + i ]); +} else { +if (this.menuEvent == null ) this.menuEvent=Clazz_new_($I$(13).c$$O,[this]); +(listeners[i + 1]).menuSelected$javax_swing_event_MenuEvent(this.menuEvent); +}}} +}); + +Clazz_newMeth(C$, 'fireMenuDeselected$', function () { +var listeners=this.listenerList.getListenerList$(); +for (var i=listeners.length - 2; i >= 0; i-=2) { +if (listeners[i] === Clazz_getClass($I$(12),['menuCanceled$javax_swing_event_MenuEvent','menuDeselected$javax_swing_event_MenuEvent','menuSelected$javax_swing_event_MenuEvent']) ) { +if (listeners[i + 1] == null ) { +throw Clazz_new_($I$(9).c$$S,[this.getText$() + " has a NULL Listener!! " + i ]); +} else { +if (this.menuEvent == null ) this.menuEvent=Clazz_new_($I$(13).c$$O,[this]); +(listeners[i + 1]).menuDeselected$javax_swing_event_MenuEvent(this.menuEvent); +}}} +}); + +Clazz_newMeth(C$, 'fireMenuCanceled$', function () { +var listeners=this.listenerList.getListenerList$(); +for (var i=listeners.length - 2; i >= 0; i-=2) { +if (listeners[i] === Clazz_getClass($I$(12),['menuCanceled$javax_swing_event_MenuEvent','menuDeselected$javax_swing_event_MenuEvent','menuSelected$javax_swing_event_MenuEvent']) ) { +if (listeners[i + 1] == null ) { +throw Clazz_new_($I$(9).c$$S,[this.getText$() + " has a NULL Listener!! " + i ]); +} else { +if (this.menuEvent == null ) this.menuEvent=Clazz_new_($I$(13).c$$O,[this]); +(listeners[i + 1]).menuCanceled$javax_swing_event_MenuEvent(this.menuEvent); +}}} +}); + +Clazz_newMeth(C$, 'configureAcceleratorFromAction$javax_swing_Action', function (a) { +}); + +Clazz_newMeth(C$, 'createMenuChangeListener', function () { +return Clazz_new_($I$(14), [this, null]); +}, p$1); + +Clazz_newMeth(C$, 'createWinListener$javax_swing_JPopupMenu', function (p) { +return Clazz_new_($I$(15).c$$javax_swing_JPopupMenu, [this, null, p]); +}); + +Clazz_newMeth(C$, 'menuSelectionChanged$Z', function (isIncluded) { +this.setSelected$Z(isIncluded); +}); + +Clazz_newMeth(C$, 'getSubElements$', function () { +if (this.popupMenu == null ) return Clazz_array($I$(16), [0]); + else { +var result=Clazz_array($I$(16), [1]); +result[0]=this.popupMenu; +return result; +}}); + +Clazz_newMeth(C$, 'getComponent$', function () { +return this; +}); + +Clazz_newMeth(C$, 'applyComponentOrientation$java_awt_ComponentOrientation', function (o) { +C$.superclazz.prototype.applyComponentOrientation$java_awt_ComponentOrientation.apply(this, [o]); +if (this.popupMenu != null ) { +var ncomponents=this.getMenuComponentCount$(); +for (var i=0; i < ncomponents; ++i) { +this.getMenuComponent$I(i).applyComponentOrientation$java_awt_ComponentOrientation(o); +} +this.popupMenu.setComponentOrientation$java_awt_ComponentOrientation(o); +}}); + +Clazz_newMeth(C$, 'setComponentOrientation$java_awt_ComponentOrientation', function (o) { +C$.superclazz.prototype.setComponentOrientation$java_awt_ComponentOrientation.apply(this, [o]); +if (this.popupMenu != null ) { +this.popupMenu.setComponentOrientation$java_awt_ComponentOrientation(o); +}}); + +Clazz_newMeth(C$, 'setAccelerator$javax_swing_KeyStroke', function (keyStroke) { +throw Clazz_new_($I$(9).c$$S,["setAccelerator() is not defined for JMenu. Use setMnemonic() instead."]); +}); + +Clazz_newMeth(C$, 'processKeyEvent$java_awt_event_KeyEvent', function (evt) { +$I$(17).defaultManager$().processKeyEvent$java_awt_event_KeyEvent(evt); +if (evt.isConsumed$()) return; +C$.superclazz.prototype.processKeyEvent$java_awt_event_KeyEvent.apply(this, [evt]); +}); + +Clazz_newMeth(C$, 'doClick$I', function (pressTime) { +var me=p$1.buildMenuElementArray$javax_swing_JMenu.apply(this, [this]); +if (me == null ) return; +$I$(17).defaultManager$().setSelectedPath$javax_swing_MenuElementA(me); +}); + +Clazz_newMeth(C$, 'buildMenuElementArray$javax_swing_JMenu', function (leaf) { +var elements=Clazz_new_($I$(18)); +var current=leaf.getPopupMenu$(); +var pop; +var menu; +var bar; +while (true){ +if (Clazz_instanceOf(current, "javax.swing.JPopupMenu")) { +pop=current; +elements.insertElementAt$TE$I(pop, 0); +current=pop.getInvoker$(); +} else if (Clazz_instanceOf(current, "javax.swing.JMenu")) { +menu=current; +elements.insertElementAt$TE$I(menu, 0); +current=menu.getParent$(); +} else if (Clazz_instanceOf(current, "javax.swing.JMenuBar")) { +bar=current; +elements.insertElementAt$TE$I(bar, 0); +var me=Clazz_array($I$(16), [elements.size$()]); +elements.copyInto$OA(me); +return me; +} else { +return null; +}} +}, p$1); + +Clazz_newMeth(C$, 'paramString$', function () { +return C$.superclazz.prototype.paramString$.apply(this, []); +}); +; +(function(){var C$=Clazz_newClass(P$.JMenu, "MenuChangeListener", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, null, 'javax.swing.event.ChangeListener'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.isSelected=false; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.isSelected=false; +}, 1); + +Clazz_newMeth(C$, ['stateChanged$javax_swing_event_ChangeEvent','stateChanged$'], function (e) { +var model=e.getSource$(); +var modelSelected=model.isSelected$(); +if (modelSelected != this.isSelected ) { +if (modelSelected == true ) { +this.this$0.fireMenuSelected$.apply(this.this$0, []); +} else { +this.this$0.fireMenuDeselected$.apply(this.this$0, []); +}this.isSelected=modelSelected; +}}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.JMenu, "WinListener", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, 'java.awt.event.WindowAdapter'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.popupMenu=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$javax_swing_JPopupMenu', function (p) { +Clazz_super_(C$, this,1); +this.popupMenu=p; +}, 1); + +Clazz_newMeth(C$, 'windowClosing$java_awt_event_WindowEvent', function (e) { +this.this$0.setSelected$Z.apply(this.this$0, [false]); +}); + +Clazz_newMeth(C$); +})() +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:02 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing"),I$=[[0,'javax.swing.DefaultSingleSelectionModel','Error','java.awt.JSComponent','java.awt.Insets','java.util.Vector','javax.swing.MenuElement','javax.swing.KeyboardManager']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "JMenuBar", null, 'javax.swing.JComponent', 'javax.swing.MenuElement'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.selectionModel=null; +this.paintBorder=false; +this.margin=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.paintBorder=false; +this.margin=null; +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.superclazz.c$.apply(this, []); +C$.$init$.apply(this); +this.setSelectionModel$javax_swing_SingleSelectionModel(Clazz_new_($I$(1))); +this.updateUI$(); +}, 1); + +Clazz_newMeth(C$, 'getUIClassID$', function () { +return "MenuBarUI"; +}); + +Clazz_newMeth(C$, 'getSelectionModel$', function () { +return this.selectionModel; +}); + +Clazz_newMeth(C$, 'setSelectionModel$javax_swing_SingleSelectionModel', function (model) { +var oldValue=this.selectionModel; +this.selectionModel=model; +this.firePropertyChange$S$O$O("selectionModel", oldValue, this.selectionModel); +}); + +Clazz_newMeth(C$, 'add$javax_swing_JMenu', function (c) { +C$.superclazz.prototype.add$java_awt_Component.apply(this, [c]); +return c; +}); + +Clazz_newMeth(C$, 'getMenu$I', function (index) { +var c=this.getComponentAtIndex$I(index); +if (Clazz_instanceOf(c, "javax.swing.JMenu")) return c; +return null; +}); + +Clazz_newMeth(C$, 'getMenuCount$', function () { +return this.getComponentCount$(); +}); + +Clazz_newMeth(C$, 'setHelpMenu$javax_swing_JMenu', function (menu) { +throw Clazz_new_($I$(2).c$$S,["setHelpMenu() not yet implemented."]); +}); + +Clazz_newMeth(C$, 'getHelpMenu$', function () { +throw Clazz_new_($I$(2).c$$S,["getHelpMenu() not yet implemented."]); +}); + +Clazz_newMeth(C$, 'getComponentAtIndex$I', function (i) { +if (i < 0 || i >= this.getComponentCount$() ) { +return null; +}return this.getComponent$I(i); +}); + +Clazz_newMeth(C$, 'getComponentIndex$java_awt_Component', function (c) { +var ncomponents=this.getComponentCount$(); +var components=$I$(3).秘getChildArray$java_awt_Container(this); +for (var i=0; i < ncomponents; i++) { +var comp=components[i]; +if (comp === c ) return i; +} +return -1; +}); + +Clazz_newMeth(C$, 'setSelected$java_awt_Component', function (sel) { +var model=this.getSelectionModel$(); +var index=this.getComponentIndex$java_awt_Component(sel); +model.setSelectedIndex$I(index); +}); + +Clazz_newMeth(C$, 'isSelected$', function () { +return this.selectionModel.isSelected$(); +}); + +Clazz_newMeth(C$, 'isBorderPainted$', function () { +return this.paintBorder; +}); + +Clazz_newMeth(C$, 'setBorderPainted$Z', function (b) { +{ + +} +}); + +Clazz_newMeth(C$, 'paintBorder$java_awt_Graphics', function (g) { +if (this.isBorderPainted$()) { +C$.superclazz.prototype.paintBorder$java_awt_Graphics.apply(this, [g]); +}}); + +Clazz_newMeth(C$, 'setMargin$java_awt_Insets', function (m) { +var old=this.margin; +this.margin=m; +this.firePropertyChange$S$O$O("margin", old, m); +if (old == null || !old.equals$O(m) ) { +this.revalidate$(); +this.秘repaint$(); +}}); + +Clazz_newMeth(C$, 'getMargin$', function () { +if (this.margin == null ) { +return Clazz_new_($I$(4).c$$I$I$I$I,[0, 0, 0, 0]); +} else { +return this.margin; +}}); + +Clazz_newMeth(C$, 'processMouseEvent$java_awt_event_MouseEvent$javax_swing_MenuElementA$javax_swing_MenuSelectionManager', function (event, path, manager) { +}); + +Clazz_newMeth(C$, 'processKeyEvent$java_awt_event_KeyEvent$javax_swing_MenuElementA$javax_swing_MenuSelectionManager', function (e, path, manager) { +}); + +Clazz_newMeth(C$, 'menuSelectionChanged$Z', function (isIncluded) { +}); + +Clazz_newMeth(C$, 'getSubElements$', function () { +var result; +var tmp=Clazz_new_($I$(5)); +var c=this.getComponentCount$(); +var i; +var m; +for (i=0; i < c; i++) { +m=this.getComponent$I(i); +if (Clazz_instanceOf(m, "javax.swing.MenuElement")) tmp.addElement$TE(m); +} +result=Clazz_array($I$(6), [tmp.size$()]); +for (i=0, c=tmp.size$(); i < c; i++) result[i]=tmp.elementAt$I(i); + +return result; +}); + +Clazz_newMeth(C$, 'getComponent$', function () { +return this; +}); + +Clazz_newMeth(C$, 'paramString$', function () { +var paintBorderString=(this.paintBorder ? "true" : "false"); +var marginString=(this.margin != null ? this.margin.toString() : ""); +return C$.superclazz.prototype.paramString$.apply(this, []) + ",margin=" + marginString + ",paintBorder=" + paintBorderString ; +}); + +Clazz_newMeth(C$, 'processKeyBinding$javax_swing_KeyStroke$java_awt_event_KeyEvent$I$Z', function (ks, e, condition, pressed) { +var retValue=C$.superclazz.prototype.processKeyBinding$javax_swing_KeyStroke$java_awt_event_KeyEvent$I$Z.apply(this, [ks, e, condition, pressed]); +if (!retValue) { +var subElements=this.getSubElements$(); +for (var i=0; i < subElements.length; i++) { +if (C$.processBindingForKeyStrokeRecursive$javax_swing_MenuElement$javax_swing_KeyStroke$java_awt_event_KeyEvent$I$Z(subElements[i], ks, e, condition, pressed)) { +return true; +}} +}return retValue; +}); + +Clazz_newMeth(C$, 'processBindingForKeyStrokeRecursive$javax_swing_MenuElement$javax_swing_KeyStroke$java_awt_event_KeyEvent$I$Z', function (elem, ks, e, condition, pressed) { +if (elem == null ) { +return false; +}var c=elem.getComponent$(); +if (!(c.isVisible$() || (Clazz_instanceOf(c, "javax.swing.JPopupMenu")) ) || !c.isEnabled$() ) { +return false; +}if (c != null && Clazz_instanceOf(c, "javax.swing.JComponent") && (c).processKeyBinding$javax_swing_KeyStroke$java_awt_event_KeyEvent$I$Z(ks, e, condition, pressed) ) { +return true; +}var subElements=elem.getSubElements$(); +for (var i=0; i < subElements.length; i++) { +if (C$.processBindingForKeyStrokeRecursive$javax_swing_MenuElement$javax_swing_KeyStroke$java_awt_event_KeyEvent$I$Z(subElements[i], ks, e, condition, pressed)) { +return true; +}} +return false; +}, 1); + +Clazz_newMeth(C$, 'addNotify$', function () { +C$.superclazz.prototype.addNotify$.apply(this, []); +$I$(7).getCurrentManager$().registerMenuBar$javax_swing_JMenuBar(this); +}); + +Clazz_newMeth(C$, 'removeNotify$', function () { +C$.superclazz.prototype.removeNotify$.apply(this, []); +$I$(7).getCurrentManager$().unregisterMenuBar$javax_swing_JMenuBar(this); +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:02 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing"),I$=[[0,'javax.swing.DefaultButtonModel',['javax.swing.JMenuItem','.MenuItemFocusListener'],'Boolean','javax.swing.UIManager','javax.swing.event.MenuDragMouseEvent','javax.swing.event.MenuKeyEvent','javax.swing.event.MenuDragMouseListener','javax.swing.event.MenuKeyListener','javax.swing.MenuElement']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "JMenuItem", function(){ +Clazz_newInstance(this, arguments,0,C$); +}, 'javax.swing.AbstractButton', 'javax.swing.MenuElement'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.isMouseDragged=false; +this.accelerator=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.isMouseDragged=false; +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.c$$S$javax_swing_Icon.apply(this, [null, null]); +}, 1); + +Clazz_newMeth(C$, 'c$$javax_swing_Icon', function (icon) { +C$.c$$S$javax_swing_Icon.apply(this, [null, icon]); +}, 1); + +Clazz_newMeth(C$, 'c$$S', function (text) { +C$.c$$S$javax_swing_Icon.apply(this, [text, null]); +}, 1); + +Clazz_newMeth(C$, 'c$$javax_swing_Action', function (a) { +C$.c$.apply(this, []); +this.setAction$javax_swing_Action(a); +}, 1); + +Clazz_newMeth(C$, 'c$$S$javax_swing_Icon', function (text, icon) { +Clazz_super_(C$, this,1); +this.setModel$(); +this.init$S$javax_swing_Icon(text, icon); +this.initFocusability$(); +}, 1); + +Clazz_newMeth(C$, 'c$$S$I', function (text, mnemonic) { +Clazz_super_(C$, this,1); +this.setModel$(); +this.init$S$javax_swing_Icon(text, null); +this.setMnemonic$I(mnemonic); +this.initFocusability$(); +}, 1); + +Clazz_newMeth(C$, 'setModel$', function () { +this.setModel$javax_swing_ButtonModel(Clazz_new_($I$(1))); +}); + +Clazz_newMeth(C$, 'setModel$javax_swing_ButtonModel', function (newModel) { +C$.superclazz.prototype.setModel$javax_swing_ButtonModel.apply(this, [newModel]); +if (Clazz_instanceOf(newModel, "javax.swing.DefaultButtonModel")) { +(newModel).setMenuItem$Z(true); +}}); + +Clazz_newMeth(C$, 'getUIClassID$', function () { +return "MenuItemUI"; +}); + +Clazz_newMeth(C$, 'init$S$javax_swing_Icon', function (text, icon) { +this.秘j2sInvalidateOnAdd=false; +this.updateUI$(); +if (text != null ) this.setText$S(text); +if (icon != null ) this.setIcon$javax_swing_Icon(icon); +this.addFocusListener$java_awt_event_FocusListener(Clazz_new_($I$(2))); +this.setUIProperty$S$O("borderPainted", $I$(3).FALSE); +this.setOpaque$Z(true); +this.setFocusPainted$Z(false); +this.setHorizontalTextPosition$I(11); +this.setHorizontalAlignment$I(10); +}); + +Clazz_newMeth(C$, 'initFocusability$', function () { +this.setFocusable$Z(false); +}); + +Clazz_newMeth(C$, 'setArmed$Z', function (b) { +var model=this.getModel$(); +if (model.isArmed$() != b ) { +model.setArmed$Z(b); +}}); + +Clazz_newMeth(C$, 'isArmed$', function () { +var model=this.getModel$(); +return model.isArmed$(); +}); + +Clazz_newMeth(C$, 'setEnabled$Z', function (b) { +if (!b && !$I$(4).getBoolean$O("MenuItem.disabledAreNavigable") ) { +this.setArmed$Z(false); +}C$.superclazz.prototype.setEnabled$Z.apply(this, [b]); +}); + +Clazz_newMeth(C$, 'alwaysOnTop$', function () { +return true; +}); + +Clazz_newMeth(C$, 'setAccelerator$javax_swing_KeyStroke', function (keyStroke) { +var oldAccelerator=this.accelerator; +this.accelerator=keyStroke; +this.秘repaint$(); +this.revalidate$(); +this.firePropertyChange$S$O$O("accelerator", oldAccelerator, this.accelerator); +}); + +Clazz_newMeth(C$, 'getAccelerator$', function () { +return this.accelerator; +}); + +Clazz_newMeth(C$, 'configurePropertiesFromAction$javax_swing_Action', function (a) { +C$.superclazz.prototype.configurePropertiesFromAction$javax_swing_Action.apply(this, [a]); +this.configureAcceleratorFromAction$javax_swing_Action(a); +}); + +Clazz_newMeth(C$, 'setIconFromAction$javax_swing_Action', function (a) { +var icon=null; +if (a != null ) { +icon=a.getValue$S("SmallIcon"); +}this.setIcon$javax_swing_Icon(icon); +}); + +Clazz_newMeth(C$, 'largeIconChanged$javax_swing_Action', function (a) { +}); + +Clazz_newMeth(C$, 'smallIconChanged$javax_swing_Action', function (a) { +this.setIconFromAction$javax_swing_Action(a); +}); + +Clazz_newMeth(C$, 'configureAcceleratorFromAction$javax_swing_Action', function (a) { +var ks=(a == null ) ? null : a.getValue$S("AcceleratorKey"); +this.setAccelerator$javax_swing_KeyStroke(ks); +}); + +Clazz_newMeth(C$, 'actionPropertyChanged$javax_swing_Action$S', function (action, propertyName) { +if (propertyName == "AcceleratorKey") { +this.configureAcceleratorFromAction$javax_swing_Action(action); +} else { +C$.superclazz.prototype.actionPropertyChanged$javax_swing_Action$S.apply(this, [action, propertyName]); +}}); + +Clazz_newMeth(C$, 'processMouseEvent$java_awt_event_MouseEvent$javax_swing_MenuElementA$javax_swing_MenuSelectionManager', function (e, path, manager) { +this.processMenuDragMouseEvent$javax_swing_event_MenuDragMouseEvent(Clazz_new_($I$(5).c$$java_awt_Component$I$J$I$I$I$I$I$I$Z$javax_swing_MenuElementA$javax_swing_MenuSelectionManager,[e.getComponent$(), e.getID$(), e.getWhen$(), e.getModifiers$(), e.getX$(), e.getY$(), e.getXOnScreen$(), e.getYOnScreen$(), e.getClickCount$(), e.isPopupTrigger$(), path, manager])); +}); + +Clazz_newMeth(C$, 'processKeyEvent$java_awt_event_KeyEvent$javax_swing_MenuElementA$javax_swing_MenuSelectionManager', function (e, path, manager) { +var mke=Clazz_new_($I$(6).c$$java_awt_Component$I$J$I$I$C$javax_swing_MenuElementA$javax_swing_MenuSelectionManager,[e.getComponent$(), e.getID$(), e.getWhen$(), e.getModifiers$(), e.getKeyCode$(), e.getKeyChar$(), path, manager]); +mke.bdata=e.bdata ||null; +this.processMenuKeyEvent$javax_swing_event_MenuKeyEvent(mke); +if (mke.isConsumed$()) { +e.consume$(); +}}); + +Clazz_newMeth(C$, 'processMenuDragMouseEvent$javax_swing_event_MenuDragMouseEvent', function (e) { +switch (e.getID$()) { +case 504: +this.isMouseDragged=false; +this.fireMenuDragMouseEntered$javax_swing_event_MenuDragMouseEvent(e); +break; +case 505: +this.isMouseDragged=false; +this.fireMenuDragMouseExited$javax_swing_event_MenuDragMouseEvent(e); +break; +case 506: +this.isMouseDragged=true; +this.fireMenuDragMouseDragged$javax_swing_event_MenuDragMouseEvent(e); +break; +case 502: +if (this.isMouseDragged) this.fireMenuDragMouseReleased$javax_swing_event_MenuDragMouseEvent(e); +break; +default: +break; +} +}); + +Clazz_newMeth(C$, 'processMenuKeyEvent$javax_swing_event_MenuKeyEvent', function (e) { +switch (e.getID$()) { +case 401: +this.fireMenuKeyPressed$javax_swing_event_MenuKeyEvent(e); +break; +case 402: +this.fireMenuKeyReleased$javax_swing_event_MenuKeyEvent(e); +break; +case 400: +this.fireMenuKeyTyped$javax_swing_event_MenuKeyEvent(e); +break; +default: +break; +} +}); + +Clazz_newMeth(C$, 'fireMenuDragMouseEntered$javax_swing_event_MenuDragMouseEvent', function (event) { +var listeners=this.listenerList.getListenerList$(); +for (var i=listeners.length - 2; i >= 0; i-=2) { +if (listeners[i] === Clazz_getClass($I$(7),['menuDragMouseDragged$javax_swing_event_MenuDragMouseEvent','menuDragMouseEntered$javax_swing_event_MenuDragMouseEvent','menuDragMouseExited$javax_swing_event_MenuDragMouseEvent','menuDragMouseReleased$javax_swing_event_MenuDragMouseEvent']) ) { +(listeners[i + 1]).menuDragMouseEntered$javax_swing_event_MenuDragMouseEvent(event); +}} +}); + +Clazz_newMeth(C$, 'fireMenuDragMouseExited$javax_swing_event_MenuDragMouseEvent', function (event) { +var listeners=this.listenerList.getListenerList$(); +for (var i=listeners.length - 2; i >= 0; i-=2) { +if (listeners[i] === Clazz_getClass($I$(7),['menuDragMouseDragged$javax_swing_event_MenuDragMouseEvent','menuDragMouseEntered$javax_swing_event_MenuDragMouseEvent','menuDragMouseExited$javax_swing_event_MenuDragMouseEvent','menuDragMouseReleased$javax_swing_event_MenuDragMouseEvent']) ) { +(listeners[i + 1]).menuDragMouseExited$javax_swing_event_MenuDragMouseEvent(event); +}} +}); + +Clazz_newMeth(C$, 'fireMenuDragMouseDragged$javax_swing_event_MenuDragMouseEvent', function (event) { +var listeners=this.listenerList.getListenerList$(); +for (var i=listeners.length - 2; i >= 0; i-=2) { +if (listeners[i] === Clazz_getClass($I$(7),['menuDragMouseDragged$javax_swing_event_MenuDragMouseEvent','menuDragMouseEntered$javax_swing_event_MenuDragMouseEvent','menuDragMouseExited$javax_swing_event_MenuDragMouseEvent','menuDragMouseReleased$javax_swing_event_MenuDragMouseEvent']) ) { +(listeners[i + 1]).menuDragMouseDragged$javax_swing_event_MenuDragMouseEvent(event); +}} +}); + +Clazz_newMeth(C$, 'fireMenuDragMouseReleased$javax_swing_event_MenuDragMouseEvent', function (event) { +var listeners=this.listenerList.getListenerList$(); +for (var i=listeners.length - 2; i >= 0; i-=2) { +if (listeners[i] === Clazz_getClass($I$(7),['menuDragMouseDragged$javax_swing_event_MenuDragMouseEvent','menuDragMouseEntered$javax_swing_event_MenuDragMouseEvent','menuDragMouseExited$javax_swing_event_MenuDragMouseEvent','menuDragMouseReleased$javax_swing_event_MenuDragMouseEvent']) ) { +(listeners[i + 1]).menuDragMouseReleased$javax_swing_event_MenuDragMouseEvent(event); +}} +}); + +Clazz_newMeth(C$, 'fireMenuKeyPressed$javax_swing_event_MenuKeyEvent', function (event) { +var listeners=this.listenerList.getListenerList$(); +for (var i=listeners.length - 2; i >= 0; i-=2) { +if (listeners[i] === Clazz_getClass($I$(8),['menuKeyPressed$javax_swing_event_MenuKeyEvent','menuKeyReleased$javax_swing_event_MenuKeyEvent','menuKeyTyped$javax_swing_event_MenuKeyEvent']) ) { +(listeners[i + 1]).menuKeyPressed$javax_swing_event_MenuKeyEvent(event); +}} +}); + +Clazz_newMeth(C$, 'fireMenuKeyReleased$javax_swing_event_MenuKeyEvent', function (event) { +var listeners=this.listenerList.getListenerList$(); +for (var i=listeners.length - 2; i >= 0; i-=2) { +if (listeners[i] === Clazz_getClass($I$(8),['menuKeyPressed$javax_swing_event_MenuKeyEvent','menuKeyReleased$javax_swing_event_MenuKeyEvent','menuKeyTyped$javax_swing_event_MenuKeyEvent']) ) { +(listeners[i + 1]).menuKeyReleased$javax_swing_event_MenuKeyEvent(event); +}} +}); + +Clazz_newMeth(C$, 'fireMenuKeyTyped$javax_swing_event_MenuKeyEvent', function (event) { +var listeners=this.listenerList.getListenerList$(); +for (var i=listeners.length - 2; i >= 0; i-=2) { +if (listeners[i] === Clazz_getClass($I$(8),['menuKeyPressed$javax_swing_event_MenuKeyEvent','menuKeyReleased$javax_swing_event_MenuKeyEvent','menuKeyTyped$javax_swing_event_MenuKeyEvent']) ) { +(listeners[i + 1]).menuKeyTyped$javax_swing_event_MenuKeyEvent(event); +}} +}); + +Clazz_newMeth(C$, 'menuSelectionChanged$Z', function (isIncluded) { +this.setArmed$Z(isIncluded); +}); + +Clazz_newMeth(C$, 'getSubElements$', function () { +return Clazz_array($I$(9), [0]); +}); + +Clazz_newMeth(C$, 'getComponent$', function () { +return this; +}); + +Clazz_newMeth(C$, 'addMenuDragMouseListener$javax_swing_event_MenuDragMouseListener', function (l) { +this.listenerList.add$Class$TT(Clazz_getClass($I$(7),['menuDragMouseDragged$javax_swing_event_MenuDragMouseEvent','menuDragMouseEntered$javax_swing_event_MenuDragMouseEvent','menuDragMouseExited$javax_swing_event_MenuDragMouseEvent','menuDragMouseReleased$javax_swing_event_MenuDragMouseEvent']), l); +}); + +Clazz_newMeth(C$, 'removeMenuDragMouseListener$javax_swing_event_MenuDragMouseListener', function (l) { +this.listenerList.remove$Class$TT(Clazz_getClass($I$(7),['menuDragMouseDragged$javax_swing_event_MenuDragMouseEvent','menuDragMouseEntered$javax_swing_event_MenuDragMouseEvent','menuDragMouseExited$javax_swing_event_MenuDragMouseEvent','menuDragMouseReleased$javax_swing_event_MenuDragMouseEvent']), l); +}); + +Clazz_newMeth(C$, 'getMenuDragMouseListeners$', function () { +return this.listenerList.getListeners$Class(Clazz_getClass($I$(7),['menuDragMouseDragged$javax_swing_event_MenuDragMouseEvent','menuDragMouseEntered$javax_swing_event_MenuDragMouseEvent','menuDragMouseExited$javax_swing_event_MenuDragMouseEvent','menuDragMouseReleased$javax_swing_event_MenuDragMouseEvent'])); +}); + +Clazz_newMeth(C$, 'addMenuKeyListener$javax_swing_event_MenuKeyListener', function (l) { +this.listenerList.add$Class$TT(Clazz_getClass($I$(8),['menuKeyPressed$javax_swing_event_MenuKeyEvent','menuKeyReleased$javax_swing_event_MenuKeyEvent','menuKeyTyped$javax_swing_event_MenuKeyEvent']), l); +}); + +Clazz_newMeth(C$, 'removeMenuKeyListener$javax_swing_event_MenuKeyListener', function (l) { +this.listenerList.remove$Class$TT(Clazz_getClass($I$(8),['menuKeyPressed$javax_swing_event_MenuKeyEvent','menuKeyReleased$javax_swing_event_MenuKeyEvent','menuKeyTyped$javax_swing_event_MenuKeyEvent']), l); +}); + +Clazz_newMeth(C$, 'getMenuKeyListeners$', function () { +return this.listenerList.getListeners$Class(Clazz_getClass($I$(8),['menuKeyPressed$javax_swing_event_MenuKeyEvent','menuKeyReleased$javax_swing_event_MenuKeyEvent','menuKeyTyped$javax_swing_event_MenuKeyEvent'])); +}); + +Clazz_newMeth(C$, 'paramString$', function () { +return C$.superclazz.prototype.paramString$.apply(this, []); +}); +; +(function(){var C$=Clazz_newClass(P$.JMenuItem, "MenuItemFocusListener", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, null, 'java.awt.event.FocusListener'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'focusGained$java_awt_event_FocusEvent', function (event) { +}); + +Clazz_newMeth(C$, 'focusLost$java_awt_event_FocusEvent', function (event) { +var mi=event.getSource$(); +if (mi.isFocusPainted$()) { +mi.秘repaint$(); +}}); + +Clazz_newMeth(C$); +})() +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:02 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing"),I$=[[0,'java.awt.FlowLayout','Boolean']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "JPanel", null, 'javax.swing.JComponent'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_LayoutManager$Z', function (layout, isDoubleBuffered) { +C$.c$$java_awt_LayoutManager$Z$Z.apply(this, [layout, isDoubleBuffered, false]); +}, 1); + +Clazz_newMeth(C$, 'getUIClassID$', function () { +return "PanelUI"; +}); + +Clazz_newMeth(C$, 'c$$java_awt_LayoutManager', function (layout) { +C$.c$$java_awt_LayoutManager$Z.apply(this, [layout, true]); +}, 1); + +Clazz_newMeth(C$, 'c$$Z', function (isDoubleBuffered) { +C$.c$$Z$Z.apply(this, [isDoubleBuffered, false]); +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.c$$Z$Z.apply(this, [true, false]); +}, 1); + +Clazz_newMeth(C$, 'c$$Z$Z', function (isDoubleBuffered, isAWTContainer) { +C$.c$$java_awt_LayoutManager$Z$Z.apply(this, [Clazz_new_($I$(1)), true, isAWTContainer]); +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_LayoutManager$Z$Z', function (layout, isDoubleBuffered, isAWTContainer) { +Clazz_super_(C$, this,1); +this.setLayout$java_awt_LayoutManager(layout); +if (isAWTContainer) this.秘setIsAWT$(); +this.setUIProperty$S$O("opaque", $I$(2).TRUE); +this.updateUI$(); +}, 1); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:02 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing"),p$1={},I$=[[0,'javax.swing.SwingUtilities','Boolean','javax.swing.DefaultSingleSelectionModel','javax.swing.MenuSelectionManager','javax.swing.JMenuItem','java.awt.Point','java.awt.GraphicsEnvironment',['javax.swing.JPopupMenu','.Separator'],'java.util.Vector','javax.swing.event.PopupMenuListener','javax.swing.event.MenuKeyListener','javax.swing.event.PopupMenuEvent','javax.swing.PopupFactory','java.awt.JSComponent','java.awt.Dimension','java.awt.Insets','javax.swing.event.MenuKeyEvent','javax.swing.MenuElement']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "JPopupMenu", function(){ +Clazz_newInstance(this, arguments,0,C$); +}, 'javax.swing.JComponent', 'javax.swing.MenuElement'); +C$.defaultLWPopupEnabledKey=null; +C$.popupPostionFixDisabled=false; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.defaultLWPopupEnabledKey= Clazz_new_(); +C$.popupPostionFixDisabled=false; +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.invoker=null; +this.popup=null; +this.frame=null; +this.desiredLocationX=0; +this.desiredLocationY=0; +this.haveLoc=false; +this.label=null; +this.paintBorder=false; +this.margin=null; +this.lightWeightPopup=false; +this.selectionModel=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.label=null; +this.paintBorder=true; +this.margin=null; +this.lightWeightPopup=true; +}, 1); + +Clazz_newMeth(C$, 'setDefaultLightWeightPopupEnabled$Z', function (aFlag) { +$I$(1).appContextPut$O$O(C$.defaultLWPopupEnabledKey, $I$(2).valueOf$Z(aFlag)); +}, 1); + +Clazz_newMeth(C$, 'getDefaultLightWeightPopupEnabled$', function () { +var b=$I$(1).appContextGet$O(C$.defaultLWPopupEnabledKey); +if (b == null ) { +$I$(1).appContextPut$O$O(C$.defaultLWPopupEnabledKey, $I$(2).TRUE); +return true; +}return b.booleanValue$(); +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.c$$S.apply(this, [null]); +}, 1); + +Clazz_newMeth(C$, 'c$$S', function (label) { +Clazz_super_(C$, this,1); +this.label=label; +this.lightWeightPopup=C$.getDefaultLightWeightPopupEnabled$(); +this.setSelectionModel$javax_swing_SingleSelectionModel(Clazz_new_($I$(3))); +this.enableEvents$J(16); +this.setOpaque$Z(true); +this.updateUI$(); +}, 1); + +Clazz_newMeth(C$, 'getUIClassID$', function () { +return "PopupMenuUI"; +}); + +Clazz_newMeth(C$, 'processFocusEvent$java_awt_event_FocusEvent', function (evt) { +C$.superclazz.prototype.processFocusEvent$java_awt_event_FocusEvent.apply(this, [evt]); +}); + +Clazz_newMeth(C$, 'processKeyEvent$java_awt_event_KeyEvent', function (evt) { +$I$(4).defaultManager$().processKeyEvent$java_awt_event_KeyEvent(evt); +if (evt.isConsumed$()) { +return; +}C$.superclazz.prototype.processKeyEvent$java_awt_event_KeyEvent.apply(this, [evt]); +}); + +Clazz_newMeth(C$, 'getSelectionModel$', function () { +return this.selectionModel; +}); + +Clazz_newMeth(C$, 'setSelectionModel$javax_swing_SingleSelectionModel', function (model) { +this.selectionModel=model; +}); + +Clazz_newMeth(C$, 'add$javax_swing_JMenuItem', function (menuItem) { +C$.superclazz.prototype.add$java_awt_Component.apply(this, [menuItem]); +return menuItem; +}); + +Clazz_newMeth(C$, 'add$S', function (s) { +return this.add$javax_swing_JMenuItem(Clazz_new_($I$(5).c$$S,[s])); +}); + +Clazz_newMeth(C$, 'add$javax_swing_Action', function (a) { +var mi=this.createActionComponent$javax_swing_Action(a); +mi.setAction$javax_swing_Action(a); +this.add$javax_swing_JMenuItem(mi); +return mi; +}); + +Clazz_newMeth(C$, 'adjustPopupLocationToFitScreen$I$I', function (xposition, yposition) { +var p=Clazz_new_($I$(6).c$$I$I,[xposition, yposition]); +if (C$.popupPostionFixDisabled == true || $I$(7).isHeadless$() ) return p; +return p; +}); + +Clazz_newMeth(C$, 'createActionComponent$javax_swing_Action', function (a) { +var mi=((P$.JPopupMenu$1|| +(function(){var C$=Clazz_newClass(P$, "JPopupMenu$1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, Clazz_load('javax.swing.JMenuItem'), null, 1); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'createActionPropertyChangeListener$javax_swing_Action', function (a) { +var pcl=this.b$['javax.swing.JPopupMenu'].createActionChangeListener$javax_swing_JMenuItem.apply(this.b$['javax.swing.JPopupMenu'], [this]); +if (pcl == null ) { +pcl=C$.superclazz.prototype.createActionPropertyChangeListener$javax_swing_Action.apply(this, [a]); +}return pcl; +}); +})() +), Clazz_new_($I$(5), [this, null],P$.JPopupMenu$1)); +mi.setHorizontalTextPosition$I(11); +mi.setVerticalTextPosition$I(0); +return mi; +}); + +Clazz_newMeth(C$, 'createActionChangeListener$javax_swing_JMenuItem', function (b) { +return b.createActionPropertyChangeListener0$javax_swing_Action(b.getAction$()); +}); + +Clazz_newMeth(C$, 'remove$I', function (pos) { +if (pos < 0) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["index less than zero."]); +}if (pos > this.getComponentCount$() - 1) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["index greater than the number of items."]); +}C$.superclazz.prototype.remove$I.apply(this, [pos]); +}); + +Clazz_newMeth(C$, 'setLightWeightPopupEnabled$Z', function (aFlag) { +this.lightWeightPopup=aFlag; +}); + +Clazz_newMeth(C$, 'isLightWeightPopupEnabled$', function () { +return this.lightWeightPopup; +}); + +Clazz_newMeth(C$, 'getLabel$', function () { +return this.label; +}); + +Clazz_newMeth(C$, 'setLabel$S', function (label) { +var oldValue=this.label; +this.label=label; +this.firePropertyChange$S$O$O("label", oldValue, label); +this.invalidate$(); +this.秘repaint$(); +}); + +Clazz_newMeth(C$, 'addSeparator$', function () { +var sep=Clazz_new_($I$(8)); +sep.秘j2sInvalidateOnAdd=false; +this.add$java_awt_Component(sep); +}); + +Clazz_newMeth(C$, 'insert$javax_swing_Action$I', function (a, index) { +var mi=this.createActionComponent$javax_swing_Action(a); +mi.setAction$javax_swing_Action(a); +this.insert$java_awt_Component$I(mi, index); +}); + +Clazz_newMeth(C$, 'insert$java_awt_Component$I', function (component, index) { +if (index < 0) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["index less than zero."]); +}var nitems=this.getComponentCount$(); +var tempItems=Clazz_new_($I$(9)); +for (var i=index; i < nitems; i++) { +tempItems.addElement$TE(this.getComponent$I(index)); +this.remove$I(index); +} +this.add$java_awt_Component(component); +for (var i=0; i < tempItems.size$(); i++) { +this.add$java_awt_Component(tempItems.elementAt$I(i)); +} +}); + +Clazz_newMeth(C$, 'addPopupMenuListener$javax_swing_event_PopupMenuListener', function (l) { +this.listenerList.add$Class$TT(Clazz_getClass($I$(10),['popupMenuCanceled$javax_swing_event_PopupMenuEvent','popupMenuWillBecomeInvisible$javax_swing_event_PopupMenuEvent','popupMenuWillBecomeVisible$javax_swing_event_PopupMenuEvent']), l); +}); + +Clazz_newMeth(C$, 'removePopupMenuListener$javax_swing_event_PopupMenuListener', function (l) { +this.listenerList.remove$Class$TT(Clazz_getClass($I$(10),['popupMenuCanceled$javax_swing_event_PopupMenuEvent','popupMenuWillBecomeInvisible$javax_swing_event_PopupMenuEvent','popupMenuWillBecomeVisible$javax_swing_event_PopupMenuEvent']), l); +}); + +Clazz_newMeth(C$, 'getPopupMenuListeners$', function () { +return this.listenerList.getListeners$Class(Clazz_getClass($I$(10),['popupMenuCanceled$javax_swing_event_PopupMenuEvent','popupMenuWillBecomeInvisible$javax_swing_event_PopupMenuEvent','popupMenuWillBecomeVisible$javax_swing_event_PopupMenuEvent'])); +}); + +Clazz_newMeth(C$, 'addMenuKeyListener$javax_swing_event_MenuKeyListener', function (l) { +this.listenerList.add$Class$TT(Clazz_getClass($I$(11),['menuKeyPressed$javax_swing_event_MenuKeyEvent','menuKeyReleased$javax_swing_event_MenuKeyEvent','menuKeyTyped$javax_swing_event_MenuKeyEvent']), l); +}); + +Clazz_newMeth(C$, 'removeMenuKeyListener$javax_swing_event_MenuKeyListener', function (l) { +this.listenerList.remove$Class$TT(Clazz_getClass($I$(11),['menuKeyPressed$javax_swing_event_MenuKeyEvent','menuKeyReleased$javax_swing_event_MenuKeyEvent','menuKeyTyped$javax_swing_event_MenuKeyEvent']), l); +}); + +Clazz_newMeth(C$, 'getMenuKeyListeners$', function () { +return this.listenerList.getListeners$Class(Clazz_getClass($I$(11),['menuKeyPressed$javax_swing_event_MenuKeyEvent','menuKeyReleased$javax_swing_event_MenuKeyEvent','menuKeyTyped$javax_swing_event_MenuKeyEvent'])); +}); + +Clazz_newMeth(C$, 'firePopupMenuWillBecomeVisible$', function () { +var listeners=this.listenerList.getListenerList$(); +var e=null; +for (var i=listeners.length - 2; i >= 0; i-=2) { +if (listeners[i] === Clazz_getClass($I$(10),['popupMenuCanceled$javax_swing_event_PopupMenuEvent','popupMenuWillBecomeInvisible$javax_swing_event_PopupMenuEvent','popupMenuWillBecomeVisible$javax_swing_event_PopupMenuEvent']) ) { +if (e == null ) e=Clazz_new_($I$(12).c$$O,[this]); +(listeners[i + 1]).popupMenuWillBecomeVisible$javax_swing_event_PopupMenuEvent(e); +}} +}); + +Clazz_newMeth(C$, 'firePopupMenuWillBecomeInvisible$', function () { +var listeners=this.listenerList.getListenerList$(); +var e=null; +for (var i=listeners.length - 2; i >= 0; i-=2) { +if (listeners[i] === Clazz_getClass($I$(10),['popupMenuCanceled$javax_swing_event_PopupMenuEvent','popupMenuWillBecomeInvisible$javax_swing_event_PopupMenuEvent','popupMenuWillBecomeVisible$javax_swing_event_PopupMenuEvent']) ) { +if (e == null ) e=Clazz_new_($I$(12).c$$O,[this]); +(listeners[i + 1]).popupMenuWillBecomeInvisible$javax_swing_event_PopupMenuEvent(e); +}} +}); + +Clazz_newMeth(C$, 'firePopupMenuCanceled$', function () { +var listeners=this.listenerList.getListenerList$(); +var e=null; +for (var i=listeners.length - 2; i >= 0; i-=2) { +if (listeners[i] === Clazz_getClass($I$(10),['popupMenuCanceled$javax_swing_event_PopupMenuEvent','popupMenuWillBecomeInvisible$javax_swing_event_PopupMenuEvent','popupMenuWillBecomeVisible$javax_swing_event_PopupMenuEvent']) ) { +if (e == null ) e=Clazz_new_($I$(12).c$$O,[this]); +(listeners[i + 1]).popupMenuCanceled$javax_swing_event_PopupMenuEvent(e); +}} +}); + +Clazz_newMeth(C$, 'alwaysOnTop$', function () { +return true; +}); + +Clazz_newMeth(C$, 'pack$', function () { +if (this.popup != null ) { +var pref=this.getPreferredSize$(); +if (pref == null || pref.width != this.getWidth$() || pref.height != this.getHeight$() ) { +this.popup=p$1.getPopup.apply(this, []); +} else { +this.validate$(); +}}}); + +Clazz_newMeth(C$, 'setVisible$Z', function (b) { +if (b == this.isVisible$() ) return; +this.getUI$().setVisible$Z(true); +if (!b) this.popup=null; +}); + +Clazz_newMeth(C$, 'getPopup', function () { +var oldPopup=this.popup; +if (oldPopup != null ) { +oldPopup.hide$(); +}var popupFactory=$I$(13).getSharedInstance$(); +if (this.isLightWeightPopupEnabled$()) { +popupFactory.setPopupType$I(0); +} else { +popupFactory.setPopupType$I(1); +}var p=this.adjustPopupLocationToFitScreen$I$I(this.desiredLocationX, this.desiredLocationY); +this.desiredLocationX=p.x; +this.desiredLocationY=p.y; +this.haveLoc=true; +var newPopup=(this.getUI$()).getPopup$javax_swing_JPopupMenu$I$I(this, this.desiredLocationX, this.desiredLocationY); +popupFactory.setPopupType$I(0); +newPopup.show$(); +return newPopup; +}, p$1); + +Clazz_newMeth(C$, 'isVisible$', function () { +return (this.ui).isJSPopupVisible$(); +}); + +Clazz_newMeth(C$, 'setLocation$I$I', function (x, y) { +var oldX=this.desiredLocationX; +var oldY=this.desiredLocationY; +this.haveLoc=true; +this.desiredLocationX=x; +this.desiredLocationY=y; +if (this.popup != null && (x != oldX || y != oldY ) ) { +this.popup=p$1.getPopup.apply(this, []); +}}); + +Clazz_newMeth(C$, 'isPopupMenu', function () { +return ((this.invoker != null ) && !(Clazz_instanceOf(this.invoker, "javax.swing.JMenu")) ); +}, p$1); + +Clazz_newMeth(C$, 'getInvoker$', function () { +return this.invoker; +}); + +Clazz_newMeth(C$, 'setInvoker$java_awt_Component', function (invoker) { +var oldInvoker=this.invoker; +this.invoker=invoker; +if ((oldInvoker !== this.invoker ) && (this.ui != null ) ) { +(this.ui).reinstallUI$javax_swing_JComponent$javax_swing_JComponent(this, invoker); +}this.invalidate$(); +}); + +Clazz_newMeth(C$, 'show$java_awt_Component$I$I', function (invoker, x, y) { +this.setInvoker$java_awt_Component(invoker); +var invokerOrigin; +if (invoker != null ) { +invokerOrigin=invoker.getLocationOnScreen$(); +var lx; +var ly; +lx=(invokerOrigin.x) + (x); +ly=(invokerOrigin.y) + (y); +if (lx > 2147483647) lx=2147483647; +if (lx < -2147483648) lx=-2147483648; +if (ly > 2147483647) ly=2147483647; +if (ly < -2147483648) ly=-2147483648; +this.setLocation$I$I((lx|0), (ly|0)); +} else { +this.setLocation$I$I(x, y); +}this.setVisible$Z(true); +}); + +Clazz_newMeth(C$, 'getRootPopupMenu$', function () { +var mp=this; +while ((mp != null ) && (p$1.isPopupMenu.apply(mp, []) != true ) && (mp.getInvoker$() != null ) && (mp.getInvoker$().getParent$() != null ) && (Clazz_instanceOf(mp.getInvoker$().getParent$(), "javax.swing.JPopupMenu")) ){ +mp=mp.getInvoker$().getParent$(); +} +return mp; +}); + +Clazz_newMeth(C$, 'getComponentAtIndex$I', function (i) { +return this.getComponent$I(i); +}); + +Clazz_newMeth(C$, 'getComponentIndex$java_awt_Component', function (c) { +var ncomponents=this.getComponentCount$(); +var components=$I$(14).秘getChildArray$java_awt_Container(this); +for (var i=0; i < ncomponents; i++) { +var comp=components[i]; +if (comp === c ) return i; +} +return -1; +}); + +Clazz_newMeth(C$, 'setPopupSize$java_awt_Dimension', function (d) { +var oldSize=this.getPreferredSize$(); +this.setPreferredSize$java_awt_Dimension(d); +if (this.popup != null ) { +var newSize=this.getPreferredSize$(); +if (!oldSize.equals$O(newSize)) { +this.popup=p$1.getPopup.apply(this, []); +}}}); + +Clazz_newMeth(C$, 'setPopupSize$I$I', function (width, height) { +this.setPopupSize$java_awt_Dimension(Clazz_new_($I$(15).c$$I$I,[width, height])); +}); + +Clazz_newMeth(C$, 'setSelected$java_awt_Component', function (sel) { +var model=this.getSelectionModel$(); +var index=this.getComponentIndex$java_awt_Component(sel); +model.setSelectedIndex$I(index); +}); + +Clazz_newMeth(C$, 'isBorderPainted$', function () { +return this.paintBorder; +}); + +Clazz_newMeth(C$, 'setBorderPainted$Z', function (b) { +this.paintBorder=b; +this.秘repaint$(); +}); + +Clazz_newMeth(C$, 'paintBorder$java_awt_Graphics', function (g) { +if (this.isBorderPainted$()) { +C$.superclazz.prototype.paintBorder$java_awt_Graphics.apply(this, [g]); +}}); + +Clazz_newMeth(C$, 'getMargin$', function () { +if (this.margin == null ) { +return Clazz_new_($I$(16).c$$I$I$I$I,[0, 0, 0, 0]); +} else { +return this.margin; +}}); + +Clazz_newMeth(C$, 'isSubPopupMenu$javax_swing_JPopupMenu', function (popup) { +var ncomponents=this.getComponentCount$(); +var components=$I$(14).秘getChildArray$java_awt_Container(this); +for (var i=0; i < ncomponents; i++) { +var comp=components[i]; +if (Clazz_instanceOf(comp, "javax.swing.JMenu")) { +var menu=comp; +var subPopup=menu.getPopupMenu$(); +if (subPopup === popup ) return true; +if (subPopup.isSubPopupMenu$javax_swing_JPopupMenu(popup)) return true; +}} +return false; +}); + +Clazz_newMeth(C$, 'paramString$', function () { +var labelString=(this.label != null ? this.label : ""); +var paintBorderString=(this.paintBorder ? "true" : "false"); +var marginString=(this.margin != null ? this.margin.toString() : ""); +var lightWeightPopupEnabledString=(this.isLightWeightPopupEnabled$() ? "true" : "false"); +return C$.superclazz.prototype.paramString$.apply(this, []) + ",desiredLocationX=" + this.desiredLocationX + ",desiredLocationY=" + this.desiredLocationY + ",label=" + labelString + ",lightWeightPopupEnabled=" + lightWeightPopupEnabledString + ",margin=" + marginString + ",paintBorder=" + paintBorderString ; +}); + +Clazz_newMeth(C$, 'processMouseEvent$java_awt_event_MouseEvent$javax_swing_MenuElementA$javax_swing_MenuSelectionManager', function (event, path, manager) { +}); + +Clazz_newMeth(C$, 'processKeyEvent$java_awt_event_KeyEvent$javax_swing_MenuElementA$javax_swing_MenuSelectionManager', function (e, path, manager) { +var mke=Clazz_new_($I$(17).c$$java_awt_Component$I$J$I$I$C$javax_swing_MenuElementA$javax_swing_MenuSelectionManager,[e.getComponent$(), e.getID$(), e.getWhen$(), e.getModifiers$(), e.getKeyCode$(), e.getKeyChar$(), path, manager]); +mke.bdata=e.bdata ||null; +p$1.processMenuKeyEvent$javax_swing_event_MenuKeyEvent.apply(this, [mke]); +if (mke.isConsumed$()) { +e.consume$(); +}}); + +Clazz_newMeth(C$, 'processMenuKeyEvent$javax_swing_event_MenuKeyEvent', function (e) { +switch (e.getID$()) { +case 401: +p$1.fireMenuKeyPressed$javax_swing_event_MenuKeyEvent.apply(this, [e]); +break; +case 402: +p$1.fireMenuKeyReleased$javax_swing_event_MenuKeyEvent.apply(this, [e]); +break; +case 400: +p$1.fireMenuKeyTyped$javax_swing_event_MenuKeyEvent.apply(this, [e]); +break; +default: +break; +} +}, p$1); + +Clazz_newMeth(C$, 'fireMenuKeyPressed$javax_swing_event_MenuKeyEvent', function (event) { +var listeners=this.listenerList.getListenerList$(); +for (var i=listeners.length - 2; i >= 0; i-=2) { +if (listeners[i] === Clazz_getClass($I$(11),['menuKeyPressed$javax_swing_event_MenuKeyEvent','menuKeyReleased$javax_swing_event_MenuKeyEvent','menuKeyTyped$javax_swing_event_MenuKeyEvent']) ) { +(listeners[i + 1]).menuKeyPressed$javax_swing_event_MenuKeyEvent(event); +}} +}, p$1); + +Clazz_newMeth(C$, 'fireMenuKeyReleased$javax_swing_event_MenuKeyEvent', function (event) { +var listeners=this.listenerList.getListenerList$(); +for (var i=listeners.length - 2; i >= 0; i-=2) { +if (listeners[i] === Clazz_getClass($I$(11),['menuKeyPressed$javax_swing_event_MenuKeyEvent','menuKeyReleased$javax_swing_event_MenuKeyEvent','menuKeyTyped$javax_swing_event_MenuKeyEvent']) ) { +(listeners[i + 1]).menuKeyReleased$javax_swing_event_MenuKeyEvent(event); +}} +}, p$1); + +Clazz_newMeth(C$, 'fireMenuKeyTyped$javax_swing_event_MenuKeyEvent', function (event) { +var listeners=this.listenerList.getListenerList$(); +for (var i=listeners.length - 2; i >= 0; i-=2) { +if (listeners[i] === Clazz_getClass($I$(11),['menuKeyPressed$javax_swing_event_MenuKeyEvent','menuKeyReleased$javax_swing_event_MenuKeyEvent','menuKeyTyped$javax_swing_event_MenuKeyEvent']) ) { +(listeners[i + 1]).menuKeyTyped$javax_swing_event_MenuKeyEvent(event); +}} +}, p$1); + +Clazz_newMeth(C$, 'menuSelectionChanged$Z', function (isIncluded) { +}); + +Clazz_newMeth(C$, 'getSubElements$', function () { +var result; +var tmp=Clazz_new_($I$(9)); +var c=this.getComponentCount$(); +var i; +var m; +for (i=0; i < c; i++) { +m=this.getComponent$I(i); +if (Clazz_instanceOf(m, "javax.swing.MenuElement")) tmp.addElement$TE(m); +} +result=Clazz_array($I$(18), [tmp.size$()]); +for (i=0, c=tmp.size$(); i < c; i++) result[i]=tmp.elementAt$I(i); + +return result; +}); + +Clazz_newMeth(C$, 'getComponent$', function () { +return this; +}); + +Clazz_newMeth(C$, 'isPopupTrigger$java_awt_event_MouseEvent', function (e) { +return (this.getUI$()).isPopupTrigger$java_awt_event_MouseEvent(e); +}); +; +(function(){var C$=Clazz_newClass(P$.JPopupMenu, "Separator", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'javax.swing.JSeparator'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.superclazz.c$$I.apply(this, [0]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'getUIClassID$', function () { +return "PopupMenuSeparatorUI"; +}); +})() +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 13:00:42 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing"),I$=[[0,['javax.swing.JToggleButton','.ToggleButtonModel']]],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "JRadioButtonMenuItem", null, 'javax.swing.JMenuItem'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.c$$S$javax_swing_Icon$Z.apply(this, [null, null, false]); +}, 1); + +Clazz_newMeth(C$, 'c$$javax_swing_Icon', function (icon) { +C$.c$$S$javax_swing_Icon$Z.apply(this, [null, icon, false]); +}, 1); + +Clazz_newMeth(C$, 'c$$S', function (text) { +C$.c$$S$javax_swing_Icon$Z.apply(this, [text, null, false]); +}, 1); + +Clazz_newMeth(C$, 'c$$javax_swing_Action', function (a) { +C$.c$.apply(this, []); +this.setAction$javax_swing_Action(a); +}, 1); + +Clazz_newMeth(C$, 'c$$S$javax_swing_Icon', function (text, icon) { +C$.c$$S$javax_swing_Icon$Z.apply(this, [text, icon, false]); +}, 1); + +Clazz_newMeth(C$, 'c$$S$Z', function (text, selected) { +C$.c$$S.apply(this, [text]); +this.setSelected$Z(selected); +}, 1); + +Clazz_newMeth(C$, 'c$$javax_swing_Icon$Z', function (icon, selected) { +C$.c$$S$javax_swing_Icon$Z.apply(this, [null, icon, selected]); +}, 1); + +Clazz_newMeth(C$, 'c$$S$javax_swing_Icon$Z', function (text, icon, selected) { +C$.superclazz.c$$S$javax_swing_Icon.apply(this, [text, icon]); +C$.$init$.apply(this); +this.setSelected$Z(selected); +this.setFocusable$Z(false); +}, 1); + +Clazz_newMeth(C$, 'getUIClassID$', function () { +return "RadioButtonMenuItemUI"; +}); + +Clazz_newMeth(C$, 'setModel$', function () { +this.setModel$javax_swing_ButtonModel(Clazz_new_($I$(1))); +}); + +Clazz_newMeth(C$, 'shouldUpdateSelectedStateFromAction$', function () { +return true; +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:03 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing"),I$=[[0,'javax.swing.SwingUtilities','java.awt.Dimension','sun.awt.AppContext','javax.swing.JLayeredPane','javax.swing.JPanel','java.awt.BorderLayout',['javax.swing.JRootPane','.RootLayout']]],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "JRootPane", function(){ +Clazz_newInstance(this, arguments,0,C$); +}, 'javax.swing.JComponent'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.isAWT=false; +this.windowDecorationStyle=0; +this.menuBar=null; +this.contentPane=null; +this.layeredPane=null; +this.glassPane=null; +this.defaultButton=null; +this.defaultPressAction=null; +this.defaultReleaseAction=null; +this.useTrueDoubleBuffering=false; +this.paneCount=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.isAWT=false; +this.useTrueDoubleBuffering=true; +}, 1); + +Clazz_newMeth(C$, 'c$$S$Z$java_awt_Container', function (prefix, isApplet, container) { +Clazz_super_(C$, this,1); +this.秘isRootPane=true; +this.isAWT=Clazz_instanceOf(container, "swingjs.a2s.A2SContainer"); +this.setName$S($I$(3).getAppContext$().getThreadGroup$().getName$() + prefix + (++this.paneCount) + ".JRootPane" ); +this.setGlassPane$java_awt_Component(this.createGlassPane$()); +this.setLayeredPane$javax_swing_JLayeredPane(this.createLayeredPane$()); +this.setContentPane$java_awt_Container(this.createContentPane$()); +this.setLayout$java_awt_LayoutManager(this.createRootLayout$()); +this.setFocusable$Z(false); +this.updateUI$(); +}, 1); + +Clazz_newMeth(C$, 'getUIClassID$', function () { +return "RootPaneUI"; +}); + +Clazz_newMeth(C$, 'setDoubleBuffered$Z', function (aFlag) { +}); + +Clazz_newMeth(C$, 'getWindowDecorationStyle$', function () { +return this.windowDecorationStyle; +}); + +Clazz_newMeth(C$, 'setWindowDecorationStyle$I', function (windowDecorationStyle) { +if (windowDecorationStyle < 0 || windowDecorationStyle > 8 ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["Invalid decoration style"]); +}var oldWindowDecorationStyle=this.getWindowDecorationStyle$(); +this.windowDecorationStyle=windowDecorationStyle; +this.firePropertyChange$S$I$I("windowDecorationStyle", oldWindowDecorationStyle, windowDecorationStyle); +}); + +Clazz_newMeth(C$, 'createLayeredPane$', function () { +var p=Clazz_new_($I$(4).c$$Z,[this.isAWT]); +p.setName$S(this.getName$() + ".layeredPane"); +return p; +}); + +Clazz_newMeth(C$, 'createContentPane$', function () { +var c=Clazz_new_($I$(5).c$$Z$Z,[true, this.isAWT]); +c.setName$S(this.getName$() + ".contentPane"); +c.setLayout$java_awt_LayoutManager(((P$.JRootPane$1|| +(function(){var C$=Clazz_newClass(P$, "JRootPane$1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, Clazz_load('java.awt.BorderLayout'), null, 1); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'addLayoutComponent$java_awt_Component$O', function (comp, constraints) { +if (constraints == null ) { +constraints="Center"; +}C$.superclazz.prototype.addLayoutComponent$java_awt_Component$O.apply(this, [comp, constraints]); +}); +})() +), Clazz_new_($I$(6), [this, null],P$.JRootPane$1))); +return c; +}); + +Clazz_newMeth(C$, 'createGlassPane$', function () { +var c=Clazz_new_($I$(5)); +c.setName$S(this.getName$() + ".glassPane"); +c.setVisible$Z(false); +c.setOpaque$Z(false); +return c; +}); + +Clazz_newMeth(C$, 'createRootLayout$', function () { +return Clazz_new_($I$(7), [this, null]); +}); + +Clazz_newMeth(C$, 'setJMenuBar$javax_swing_JMenuBar', function (menu) { +if (this.menuBar != null && this.menuBar.getParent$() === this.layeredPane ) this.layeredPane.remove$java_awt_Component(this.menuBar); +this.menuBar=menu; +if (this.menuBar != null ) this.layeredPane.add$java_awt_Component$O(this.menuBar, $I$(4).FRAME_CONTENT_LAYER); +}); + +Clazz_newMeth(C$, 'setMenuBar$javax_swing_JMenuBar', function (menu) { +if (this.menuBar != null && this.menuBar.getParent$() === this.layeredPane ) this.layeredPane.remove$java_awt_Component(this.menuBar); +this.menuBar=menu; +if (this.menuBar != null ) this.layeredPane.add$java_awt_Component$O(this.menuBar, $I$(4).FRAME_CONTENT_LAYER); +}); + +Clazz_newMeth(C$, 'getJMenuBar$', function () { +return this.menuBar; +}); + +Clazz_newMeth(C$, 'getMenuBar$', function () { +return this.menuBar; +}); + +Clazz_newMeth(C$, 'setContentPane$java_awt_Container', function (content) { +if (content == null ) throw Clazz_new_(Clazz_load('java.awt.IllegalComponentStateException').c$$S,["contentPane cannot be set to null."]); +if (this.contentPane != null && this.contentPane.getParent$() === this.layeredPane ) this.layeredPane.remove$java_awt_Component(this.contentPane); +this.contentPane=content; +content.秘isContentPane=true; +this.layeredPane.add$java_awt_Component$O(this.contentPane, $I$(4).FRAME_CONTENT_LAYER); +}); + +Clazz_newMeth(C$, 'getContentPane$', function () { +return this.contentPane; +}); + +Clazz_newMeth(C$, 'setLayeredPane$javax_swing_JLayeredPane', function (layered) { +if (layered == null ) throw Clazz_new_(Clazz_load('java.awt.IllegalComponentStateException').c$$S,["layeredPane cannot be set to null."]); +if (this.layeredPane != null && this.layeredPane.getParent$() === this ) this.remove$java_awt_Component(this.layeredPane); +this.layeredPane=layered; +this.add$java_awt_Component$I(this.layeredPane, -1); +}); + +Clazz_newMeth(C$, 'getLayeredPane$', function () { +return this.layeredPane; +}); + +Clazz_newMeth(C$, 'setGlassPane$java_awt_Component', function (glass) { +if (glass == null ) { +throw Clazz_new_(Clazz_load('NullPointerException').c$$S,["glassPane cannot be set to null."]); +}var visible=false; +if (this.glassPane != null && this.glassPane.getParent$() === this ) { +this.remove$java_awt_Component(this.glassPane); +visible=this.glassPane.isVisible$(); +}glass.setVisible$Z(visible); +this.glassPane=glass; +this.add$java_awt_Component$I(this.glassPane, 0); +if (visible) { +this.秘repaint$(); +}}); + +Clazz_newMeth(C$, 'getGlassPane$', function () { +return this.glassPane; +}); + +Clazz_newMeth(C$, 'isValidateRoot$', function () { +return true; +}); + +Clazz_newMeth(C$, 'isOptimizedDrawingEnabled$', function () { +return !this.glassPane.isVisible$(); +}); + +Clazz_newMeth(C$, 'addNotify$', function () { +C$.superclazz.prototype.addNotify$.apply(this, []); +this.enableEvents$J(8); +}); + +Clazz_newMeth(C$, 'removeNotify$', function () { +C$.superclazz.prototype.removeNotify$.apply(this, []); +}); + +Clazz_newMeth(C$, 'setDefaultButton$javax_swing_JButton', function (defaultButton) { +var oldDefault=this.defaultButton; +if (oldDefault !== defaultButton ) { +this.defaultButton=defaultButton; +if (oldDefault != null ) { +oldDefault.秘repaint$(); +}if (defaultButton != null ) { +defaultButton.秘repaint$(); +}}this.firePropertyChange$S$O$O("defaultButton", oldDefault, defaultButton); +}); + +Clazz_newMeth(C$, 'getDefaultButton$', function () { +return this.defaultButton; +}); + +Clazz_newMeth(C$, 'setUseTrueDoubleBuffering$Z', function (useTrueDoubleBuffering) { +this.useTrueDoubleBuffering=useTrueDoubleBuffering; +}); + +Clazz_newMeth(C$, 'getUseTrueDoubleBuffering$', function () { +return this.useTrueDoubleBuffering; +}); + +Clazz_newMeth(C$, 'disableTrueDoubleBuffering$', function () { +}); + +Clazz_newMeth(C$, 'addImpl$java_awt_Component$O$I', function (comp, constraints, index) { +this.addImplCont$java_awt_Component$O$I(comp, constraints, index); +if (this.glassPane != null && this.glassPane.getParent$() === this && this.getComponent$I(0) !== this.glassPane ) { +this.add$java_awt_Component$I(this.glassPane, 0); +}}); + +Clazz_newMeth(C$, 'paramString$', function () { +return C$.superclazz.prototype.paramString$.apply(this, []); +}); + +Clazz_newMeth(C$, 'getInsets$', function () { +return C$.superclazz.prototype.getInsets$.apply(this, []); +}); + +Clazz_newMeth(C$, 'setFrameViewer$swingjs_JSFrameViewer', function (v) { +this.layeredPane.setFrameViewer$swingjs_JSFrameViewer(v); +this.contentPane.setFrameViewer$swingjs_JSFrameViewer(v); +if (this.glassPane != null ) this.glassPane.setFrameViewer$swingjs_JSFrameViewer(v); +return C$.superclazz.prototype.setFrameViewer$swingjs_JSFrameViewer.apply(this, [v]); +}); +; +(function(){var C$=Clazz_newClass(P$.JRootPane, "DefaultAction", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'javax.swing.AbstractAction'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.owner=null; +this.root=null; +this.press=false; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$javax_swing_JRootPane$Z', function (root, press) { +Clazz_super_(C$, this,1); +this.root=root; +this.press=press; +}, 1); + +Clazz_newMeth(C$, 'setOwner$javax_swing_JButton', function (owner) { +this.owner=owner; +}); + +Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) { +if (this.owner != null && $I$(1).getRootPane$java_awt_Component(this.owner) === this.root ) { +var model=this.owner.getModel$(); +if (this.press) { +model.setArmed$Z(true); +model.setPressed$Z(true); +} else { +model.setPressed$Z(false); +}}}); + +Clazz_newMeth(C$, 'isEnabled$', function () { +return this.owner.getModel$().isEnabled$(); +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.JRootPane, "RootLayout", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, null, 'java.awt.LayoutManager2'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'preferredLayoutSize$java_awt_Container', function (parent) { +var rd; +var mbd; +var i=this.this$0.getInsets$.apply(this.this$0, []); +if (this.this$0.contentPane != null ) { +rd=this.this$0.contentPane.getPreferredSize$(); +} else { +rd=parent.getSize$(); +}if (this.this$0.menuBar != null && this.this$0.menuBar.isVisible$() ) { +mbd=this.this$0.menuBar.getPreferredSize$(); +} else { +mbd=Clazz_new_($I$(2).c$$I$I,[0, 0]); +}return Clazz_new_($I$(2).c$$I$I,[Math.max(rd.width, mbd.width) + i.left + i.right , rd.height + mbd.height + i.top + i.bottom ]); +}); + +Clazz_newMeth(C$, 'minimumLayoutSize$java_awt_Container', function (parent) { +var rd; +var mbd; +var i=this.this$0.getInsets$.apply(this.this$0, []); +if (this.this$0.contentPane != null ) { +rd=this.this$0.contentPane.getMinimumSize$(); +} else { +rd=parent.getSize$(); +}if (this.this$0.menuBar != null && this.this$0.menuBar.isVisible$() ) { +mbd=this.this$0.menuBar.getMinimumSize$(); +} else { +mbd=Clazz_new_($I$(2).c$$I$I,[0, 0]); +}return Clazz_new_($I$(2).c$$I$I,[Math.max(rd.width, mbd.width) + i.left + i.right , rd.height + mbd.height + i.top + i.bottom ]); +}); + +Clazz_newMeth(C$, 'maximumLayoutSize$java_awt_Container', function (target) { +var rd; +var mbd; +var i=this.this$0.getInsets$.apply(this.this$0, []); +if (this.this$0.menuBar != null && this.this$0.menuBar.isVisible$() ) { +mbd=this.this$0.menuBar.getMaximumSize$(); +} else { +mbd=Clazz_new_($I$(2).c$$I$I,[0, 0]); +}if (this.this$0.contentPane != null ) { +rd=this.this$0.contentPane.getMaximumSize$(); +} else { +rd=Clazz_new_($I$(2).c$$I$I,[2147483647, 2147483647 - i.top - i.bottom - mbd.height - 1 ]); +}return Clazz_new_($I$(2).c$$I$I,[Math.min(rd.width, mbd.width) + i.left + i.right , rd.height + mbd.height + i.top + i.bottom ]); +}); + +Clazz_newMeth(C$, 'layoutContainer$java_awt_Container', function (parent) { +var b=parent.getBounds$(); +var i=this.this$0.getInsets$.apply(this.this$0, []); +var contentY=0; +var w=b.width - i.right - i.left ; +var h=b.height - i.top - i.bottom ; +if (this.this$0.layeredPane != null ) { +this.this$0.layeredPane.setBounds$I$I$I$I(i.left, i.top, w, h); +}if (this.this$0.glassPane != null ) { +this.this$0.glassPane.setBounds$I$I$I$I(i.left, i.top, w, h); +}if (this.this$0.menuBar != null && this.this$0.menuBar.isVisible$() ) { +var mbd=this.this$0.menuBar.getPreferredSize$(); +this.this$0.menuBar.setBounds$I$I$I$I(0, 0, w, mbd.height); +contentY+=mbd.height; +}if (this.this$0.contentPane != null ) { +this.this$0.contentPane.setBounds$I$I$I$I(0, contentY, w, h - contentY); +}}); + +Clazz_newMeth(C$, 'addLayoutComponent$S$java_awt_Component', function (name, comp) { +}); + +Clazz_newMeth(C$, 'removeLayoutComponent$java_awt_Component', function (comp) { +}); + +Clazz_newMeth(C$, 'addLayoutComponent$java_awt_Component$O', function (comp, constraints) { +}); + +Clazz_newMeth(C$, 'getLayoutAlignmentX$java_awt_Container', function (target) { +return 0.0; +}); + +Clazz_newMeth(C$, 'getLayoutAlignmentY$java_awt_Container', function (target) { +return 0.0; +}); + +Clazz_newMeth(C$, 'invalidateLayout$java_awt_Container', function (target) { +}); + +Clazz_newMeth(C$); +})() + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:03 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing"),p$1={},I$=[[0,'javax.swing.DefaultBoundedRangeModel',['javax.swing.JScrollBar','.ModelListener'],'java.awt.event.AdjustmentListener','java.awt.event.AdjustmentEvent','java.awt.Dimension','java.awt.JSComponent']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "JScrollBar", function(){ +Clazz_newInstance(this, arguments,0,C$); +}, 'javax.swing.JComponent', 'java.awt.Adjustable'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.fwdAdjustmentEvents=null; +this.model=null; +this.orientation=0; +this.unitIncrement=0; +this.blockIncrement=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'checkOrientation$I', function (orientation) { +switch (orientation) { +case 1: +case 0: +break; +default: +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["orientation must be one of: VERTICAL, HORIZONTAL"]); +} +}, p$1); + +Clazz_newMeth(C$, 'c$$I$I$I$I$I', function (orientation, value, extent, min, max) { +Clazz_super_(C$, this,1); +p$1.checkOrientation$I.apply(this, [orientation]); +this.unitIncrement=1; +this.blockIncrement=(extent == 0) ? 1 : extent; +this.orientation=orientation; +this.model=Clazz_new_($I$(1).c$$I$I$I$I,[value, extent, min, max]); +this.model.addChangeListener$javax_swing_event_ChangeListener(this.fwdAdjustmentEvents=Clazz_new_($I$(2), [this, null])); +this.setRequestFocusEnabled$Z(false); +this.updateUI$(); +}, 1); + +Clazz_newMeth(C$, 'getUIClassID$', function () { +return "ScrollBarUI"; +}); + +Clazz_newMeth(C$, 'c$$I', function (orientation) { +C$.c$$I$I$I$I$I.apply(this, [orientation, 0, 10, 0, 100]); +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.c$$I.apply(this, [1]); +}, 1); + +Clazz_newMeth(C$, 'addChangeListener$javax_swing_event_ChangeListener', function (l) { +this.model.addChangeListener$javax_swing_event_ChangeListener(l); +}); + +Clazz_newMeth(C$, 'removeChangeListener$javax_swing_event_ChangeListener', function (l) { +this.model.removeChangeListener$javax_swing_event_ChangeListener(l); +}); + +Clazz_newMeth(C$, 'getOrientation$', function () { +return this.orientation; +}); + +Clazz_newMeth(C$, 'setOrientation$I', function (orientation) { +p$1.checkOrientation$I.apply(this, [orientation]); +var oldValue=this.orientation; +this.orientation=orientation; +this.firePropertyChange$S$I$I("orientation", oldValue, orientation); +if (orientation != oldValue) { +this.revalidate$(); +}}); + +Clazz_newMeth(C$, 'getModel$', function () { +return this.model; +}); + +Clazz_newMeth(C$, 'setModel$javax_swing_BoundedRangeModel', function (newModel) { +var oldModel=this.model; +if (this.model != null ) { +this.model.removeChangeListener$javax_swing_event_ChangeListener(this.fwdAdjustmentEvents); +}this.model=newModel; +if (this.model != null ) { +this.model.addChangeListener$javax_swing_event_ChangeListener(this.fwdAdjustmentEvents); +}this.firePropertyChange$S$O$O("model", oldModel, this.model); +}); + +Clazz_newMeth(C$, 'getUnitIncrement$I', function (direction) { +return this.unitIncrement; +}); + +Clazz_newMeth(C$, 'setUnitIncrement$I', function (unitIncrement) { +var oldValue=this.unitIncrement; +this.unitIncrement=unitIncrement; +this.firePropertyChange$S$I$I("unitIncrement", oldValue, unitIncrement); +}); + +Clazz_newMeth(C$, 'getBlockIncrement$I', function (direction) { +return this.blockIncrement; +}); + +Clazz_newMeth(C$, 'setBlockIncrement$I', function (blockIncrement) { +var oldValue=this.blockIncrement; +this.blockIncrement=blockIncrement; +this.firePropertyChange$S$I$I("blockIncrement", oldValue, blockIncrement); +}); + +Clazz_newMeth(C$, 'getUnitIncrement$', function () { +return this.unitIncrement; +}); + +Clazz_newMeth(C$, 'getBlockIncrement$', function () { +return this.blockIncrement; +}); + +Clazz_newMeth(C$, 'getValue$', function () { +return this.getModel$().getValue$(); +}); + +Clazz_newMeth(C$, 'setValue$I', function (value) { +var m=this.getModel$(); +m.setValue$I(value); +}); + +Clazz_newMeth(C$, 'getVisibleAmount$', function () { +return this.getModel$().getExtent$(); +}); + +Clazz_newMeth(C$, 'setVisibleAmount$I', function (extent) { +this.getModel$().setExtent$I(extent); +}); + +Clazz_newMeth(C$, 'getMinimum$', function () { +return this.getModel$().getMinimum$(); +}); + +Clazz_newMeth(C$, 'setMinimum$I', function (minimum) { +this.getModel$().setMinimum$I(minimum); +}); + +Clazz_newMeth(C$, 'getMaximum$', function () { +return this.getModel$().getMaximum$(); +}); + +Clazz_newMeth(C$, 'setMaximum$I', function (maximum) { +this.getModel$().setMaximum$I(maximum); +}); + +Clazz_newMeth(C$, 'getValueIsAdjusting$', function () { +return this.getModel$().getValueIsAdjusting$(); +}); + +Clazz_newMeth(C$, 'setValueIsAdjusting$Z', function (b) { +var m=this.getModel$(); +m.setValueIsAdjusting$Z(b); +}); + +Clazz_newMeth(C$, 'setValues$I$I$I$I', function (newValue, newExtent, newMin, newMax) { +var m=this.getModel$(); +m.setRangeProperties$I$I$I$I$Z(newValue, newExtent, newMin, newMax, m.getValueIsAdjusting$()); +}); + +Clazz_newMeth(C$, 'addAdjustmentListener$java_awt_event_AdjustmentListener', function (l) { +this.listenerList.add$Class$TT(Clazz_getClass($I$(3),['adjustmentValueChanged$java_awt_event_AdjustmentEvent']), l); +}); + +Clazz_newMeth(C$, 'removeAdjustmentListener$java_awt_event_AdjustmentListener', function (l) { +this.listenerList.remove$Class$TT(Clazz_getClass($I$(3),['adjustmentValueChanged$java_awt_event_AdjustmentEvent']), l); +}); + +Clazz_newMeth(C$, 'getAdjustmentListeners$', function () { +return this.listenerList.getListeners$Class(Clazz_getClass($I$(3),['adjustmentValueChanged$java_awt_event_AdjustmentEvent'])); +}); + +Clazz_newMeth(C$, 'fireAdjustmentValueChanged$I$I$I', function (id, type, value) { +this.fireAdjustmentValueChanged$I$I$I$Z(id, type, value, this.getValueIsAdjusting$()); +}); + +Clazz_newMeth(C$, 'fireAdjustmentValueChanged$I$I$I$Z', function (id, type, value, isAdjusting) { +var listeners=this.listenerList.getListenerList$(); +var e=null; +for (var i=listeners.length - 2; i >= 0; i-=2) { +if (listeners[i] === Clazz_getClass($I$(3),['adjustmentValueChanged$java_awt_event_AdjustmentEvent']) ) { +if (e == null ) { +e=Clazz_new_($I$(4).c$$java_awt_Adjustable$I$I$I$Z,[this, id, type, value, isAdjusting]); +}(listeners[i + 1]).adjustmentValueChanged$(e); +}} +}); + +Clazz_newMeth(C$, 'getMinimumSize$', function () { +var pref=this.getPreferredSize$(); +if (this.orientation == 1) { +return Clazz_new_($I$(5).c$$I$I,[pref.width, 5]); +} else { +return Clazz_new_($I$(5).c$$I$I,[5, pref.height]); +}}); + +Clazz_newMeth(C$, 'getMaximumSize$', function () { +var pref=this.getPreferredSize$(); +if (this.getOrientation$() == 1) { +return Clazz_new_($I$(5).c$$I$I,[pref.width, 32767]); +} else { +return Clazz_new_($I$(5).c$$I$I,[32767, pref.height]); +}}); + +Clazz_newMeth(C$, 'setEnabled$Z', function (x) { +C$.superclazz.prototype.setEnabled$Z.apply(this, [x]); +var n=this.getComponentCount$(); +var components=$I$(6).秘getChildArray$java_awt_Container(this); +for (var i=0; i < n; i++) { +components[i].setEnabled$Z(x); +} +}); + +Clazz_newMeth(C$, 'paramString$', function () { +var orientationString=(this.orientation == 0 ? "HORIZONTAL" : "VERTICAL"); +return C$.superclazz.prototype.paramString$.apply(this, []) + ",blockIncrement=" + this.blockIncrement + ",orientation=" + orientationString + ",unitIncrement=" + this.unitIncrement ; +}); +; +(function(){var C$=Clazz_newClass(P$.JScrollBar, "ModelListener", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, null, 'javax.swing.event.ChangeListener'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, ['stateChanged$javax_swing_event_ChangeEvent','stateChanged$'], function (e) { +var obj=e.getSource$(); +if (Clazz_instanceOf(obj, "javax.swing.BoundedRangeModel")) { +var id=601; +var type=5; +var model=obj; +var value=model.getValue$(); +var isAdjusting=model.getValueIsAdjusting$(); +this.this$0.fireAdjustmentValueChanged$I$I$I$Z.apply(this.this$0, [id, type, value, isAdjusting]); +}}); + +Clazz_newMeth(C$); +})() +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:03 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing"),I$=[[0,'Boolean',['javax.swing.ScrollPaneLayout','.UIResource'],'java.awt.Point','java.awt.Rectangle','javax.swing.SwingUtilities',['javax.swing.JScrollPane','.ScrollBar'],'javax.swing.JViewport','java.awt.Container']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "JScrollPane", function(){ +Clazz_newInstance(this, arguments,0,C$); +}, 'javax.swing.JComponent', 'javax.swing.ScrollPaneConstants'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.viewportBorder=null; +this.verticalScrollBarPolicy=0; +this.horizontalScrollBarPolicy=0; +this.viewport=null; +this.verticalScrollBar=null; +this.horizontalScrollBar=null; +this.rowHeader=null; +this.columnHeader=null; +this.lowerLeft=null; +this.lowerRight=null; +this.upperLeft=null; +this.upperRight=null; +this.wheelScrollState=false; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.verticalScrollBarPolicy=20; +this.horizontalScrollBarPolicy=30; +this.wheelScrollState=true; +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Component$I$I', function (view, vsbPolicy, hsbPolicy) { +Clazz_super_(C$, this,1); +this.setLayout$java_awt_LayoutManager(Clazz_new_($I$(2))); +this.setVerticalScrollBarPolicy$I(vsbPolicy); +this.setHorizontalScrollBarPolicy$I(hsbPolicy); +this.setViewport$javax_swing_JViewport(this.createViewport$()); +this.setVerticalScrollBar$javax_swing_JScrollBar(this.createVerticalScrollBar$()); +this.setHorizontalScrollBar$javax_swing_JScrollBar(this.createHorizontalScrollBar$()); +if (view != null ) { +this.setViewportView$java_awt_Component(view); +}if (!this.getComponentOrientation$().isLeftToRight$()) { +this.viewport.setViewPosition$java_awt_Point(Clazz_new_($I$(3).c$$I$I,[2147483647, 0])); +}this.setUIProperty$S$O("opaque", new Boolean(true)); +this.updateUI$(); +}, 1); + +Clazz_newMeth(C$, 'getUIClassID$', function () { +return "ScrollPaneUI"; +}); + +Clazz_newMeth(C$, 'c$$java_awt_Component', function (view) { +C$.c$$java_awt_Component$I$I.apply(this, [view, 20, 30]); +}, 1); + +Clazz_newMeth(C$, 'c$$I$I', function (vsbPolicy, hsbPolicy) { +C$.c$$java_awt_Component$I$I.apply(this, [null, vsbPolicy, hsbPolicy]); +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.c$$java_awt_Component$I$I.apply(this, [null, 20, 30]); +}, 1); + +Clazz_newMeth(C$, 'setLayout$java_awt_LayoutManager', function (layout) { +if (Clazz_instanceOf(layout, "javax.swing.ScrollPaneLayout")) { +C$.superclazz.prototype.setLayout$java_awt_LayoutManager.apply(this, [layout]); +(layout).syncWithScrollPane$javax_swing_JScrollPane(this); +} else if (layout == null ) { +C$.superclazz.prototype.setLayout$java_awt_LayoutManager.apply(this, [layout]); +} else { +var s="layout of JScrollPane must be a ScrollPaneLayout"; +throw Clazz_new_(Clazz_load('ClassCastException').c$$S,[s]); +}}); + +Clazz_newMeth(C$, 'isValidateRoot$', function () { +return true; +}); + +Clazz_newMeth(C$, 'getVerticalScrollBarPolicy$', function () { +return this.verticalScrollBarPolicy; +}); + +Clazz_newMeth(C$, 'setVerticalScrollBarPolicy$I', function (policy) { +switch (policy) { +case 20: +case 21: +case 22: +break; +default: +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["invalid verticalScrollBarPolicy"]); +} +var old=this.verticalScrollBarPolicy; +this.verticalScrollBarPolicy=policy; +this.firePropertyChange$S$I$I("verticalScrollBarPolicy", old, policy); +this.revalidate$(); +this.秘repaint$(); +}); + +Clazz_newMeth(C$, 'getHorizontalScrollBarPolicy$', function () { +return this.horizontalScrollBarPolicy; +}); + +Clazz_newMeth(C$, 'setHorizontalScrollBarPolicy$I', function (policy) { +switch (policy) { +case 30: +case 31: +case 32: +break; +default: +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["invalid horizontalScrollBarPolicy"]); +} +var old=this.horizontalScrollBarPolicy; +this.horizontalScrollBarPolicy=policy; +this.firePropertyChange$S$I$I("horizontalScrollBarPolicy", old, policy); +this.revalidate$(); +this.秘repaint$(); +}); + +Clazz_newMeth(C$, 'getViewportBorder$', function () { +return this.viewportBorder; +}); + +Clazz_newMeth(C$, 'setViewportBorder$javax_swing_border_Border', function (viewportBorder) { +var oldValue=this.viewportBorder; +this.viewportBorder=viewportBorder; +this.firePropertyChange$S$O$O("viewportBorder", oldValue, viewportBorder); +}); + +Clazz_newMeth(C$, 'getViewportBorderBounds$', function () { +var borderR=Clazz_new_($I$(4).c$$java_awt_Dimension,[this.getSize$()]); +var insets=this.getInsets$(); +borderR.x=insets.left; +borderR.y=insets.top; +borderR.width-=insets.left + insets.right; +borderR.height-=insets.top + insets.bottom; +var leftToRight=$I$(5).isLeftToRight$java_awt_Component(this); +var colHead=this.getColumnHeader$(); +if ((colHead != null ) && (colHead.isVisible$()) ) { +var colHeadHeight=colHead.getHeight$(); +borderR.y+=colHeadHeight; +borderR.height-=colHeadHeight; +}var rowHead=this.getRowHeader$(); +if ((rowHead != null ) && (rowHead.isVisible$()) ) { +var rowHeadWidth=rowHead.getWidth$(); +if (leftToRight) { +borderR.x+=rowHeadWidth; +}borderR.width-=rowHeadWidth; +}var vsb=this.getVerticalScrollBar$(); +if ((vsb != null ) && (vsb.isVisible$()) ) { +var vsbWidth=vsb.getWidth$(); +if (!leftToRight) { +borderR.x+=vsbWidth; +}borderR.width-=vsbWidth; +}var hsb=this.getHorizontalScrollBar$(); +if ((hsb != null ) && (hsb.isVisible$()) ) { +borderR.height-=hsb.getHeight$(); +}return borderR; +}); + +Clazz_newMeth(C$, 'createHorizontalScrollBar$', function () { +return Clazz_new_($I$(6).c$$I, [this, null, 0]); +}); + +Clazz_newMeth(C$, 'getHorizontalScrollBar$', function () { +return this.horizontalScrollBar; +}); + +Clazz_newMeth(C$, 'setHorizontalScrollBar$javax_swing_JScrollBar', function (horizontalScrollBar) { +var old=this.getHorizontalScrollBar$(); +this.horizontalScrollBar=horizontalScrollBar; +if (horizontalScrollBar != null ) { +this.add$java_awt_Component$O(horizontalScrollBar, "HORIZONTAL_SCROLLBAR"); +} else if (old != null ) { +this.remove$java_awt_Component(old); +}this.firePropertyChange$S$O$O("horizontalScrollBar", old, horizontalScrollBar); +this.revalidate$(); +this.秘repaint$(); +}); + +Clazz_newMeth(C$, 'createVerticalScrollBar$', function () { +return Clazz_new_($I$(6).c$$I, [this, null, 1]); +}); + +Clazz_newMeth(C$, 'getVerticalScrollBar$', function () { +return this.verticalScrollBar; +}); + +Clazz_newMeth(C$, 'setVerticalScrollBar$javax_swing_JScrollBar', function (verticalScrollBar) { +var old=this.getVerticalScrollBar$(); +this.verticalScrollBar=verticalScrollBar; +this.add$java_awt_Component$O(verticalScrollBar, "VERTICAL_SCROLLBAR"); +this.firePropertyChange$S$O$O("verticalScrollBar", old, verticalScrollBar); +this.revalidate$(); +this.秘repaint$(); +}); + +Clazz_newMeth(C$, 'createViewport$', function () { +return Clazz_new_($I$(7)); +}); + +Clazz_newMeth(C$, 'getViewport$', function () { +return this.viewport; +}); + +Clazz_newMeth(C$, 'setViewport$javax_swing_JViewport', function (viewport) { +var old=this.getViewport$(); +this.viewport=viewport; +if (viewport != null ) { +this.add$java_awt_Component$O(viewport, "VIEWPORT"); +} else if (old != null ) { +this.remove$java_awt_Component(old); +}this.firePropertyChange$S$O$O("viewport", old, viewport); +this.revalidate$(); +this.秘repaint$(); +}); + +Clazz_newMeth(C$, 'setViewportView$java_awt_Component', function (view) { +if (this.getViewport$() == null ) { +this.setViewport$javax_swing_JViewport(this.createViewport$()); +}this.getViewport$().setView$java_awt_Component(view); +}); + +Clazz_newMeth(C$, 'getRowHeader$', function () { +return this.rowHeader; +}); + +Clazz_newMeth(C$, 'setRowHeader$javax_swing_JViewport', function (rowHeader) { +var old=this.getRowHeader$(); +this.rowHeader=rowHeader; +if (rowHeader != null ) { +this.add$java_awt_Component$O(rowHeader, "ROW_HEADER"); +} else if (old != null ) { +this.remove$java_awt_Component(old); +}this.firePropertyChange$S$O$O("rowHeader", old, rowHeader); +this.revalidate$(); +this.秘repaint$(); +}); + +Clazz_newMeth(C$, 'setRowHeaderView$java_awt_Component', function (view) { +if (this.getRowHeader$() == null ) { +this.setRowHeader$javax_swing_JViewport(this.createViewport$()); +}this.getRowHeader$().setView$java_awt_Component(view); +}); + +Clazz_newMeth(C$, 'getColumnHeader$', function () { +return this.columnHeader; +}); + +Clazz_newMeth(C$, 'setColumnHeader$javax_swing_JViewport', function (columnHeader) { +var old=this.getColumnHeader$(); +this.columnHeader=columnHeader; +if (columnHeader != null ) { +this.add$java_awt_Component$O(columnHeader, "COLUMN_HEADER"); +} else if (old != null ) { +this.remove$java_awt_Component(old); +}this.firePropertyChange$S$O$O("columnHeader", old, columnHeader); +this.revalidate$(); +this.秘repaint$(); +}); + +Clazz_newMeth(C$, 'setColumnHeaderView$java_awt_Component', function (view) { +if (this.getColumnHeader$() == null ) { +this.setColumnHeader$javax_swing_JViewport(this.createViewport$()); +}this.getColumnHeader$().setView$java_awt_Component(view); +}); + +Clazz_newMeth(C$, 'getCorner$S', function (key) { +var isLeftToRight=this.getComponentOrientation$().isLeftToRight$(); +if (key.equals$O("LOWER_LEADING_CORNER")) { +key=isLeftToRight ? "LOWER_LEFT_CORNER" : "LOWER_RIGHT_CORNER"; +} else if (key.equals$O("LOWER_TRAILING_CORNER")) { +key=isLeftToRight ? "LOWER_RIGHT_CORNER" : "LOWER_LEFT_CORNER"; +} else if (key.equals$O("UPPER_LEADING_CORNER")) { +key=isLeftToRight ? "UPPER_LEFT_CORNER" : "UPPER_RIGHT_CORNER"; +} else if (key.equals$O("UPPER_TRAILING_CORNER")) { +key=isLeftToRight ? "UPPER_RIGHT_CORNER" : "UPPER_LEFT_CORNER"; +}if (key.equals$O("LOWER_LEFT_CORNER")) { +return this.lowerLeft; +} else if (key.equals$O("LOWER_RIGHT_CORNER")) { +return this.lowerRight; +} else if (key.equals$O("UPPER_LEFT_CORNER")) { +return this.upperLeft; +} else if (key.equals$O("UPPER_RIGHT_CORNER")) { +return this.upperRight; +} else { +return null; +}}); + +Clazz_newMeth(C$, 'setCorner$S$java_awt_Component', function (key, corner) { +var old; +var isLeftToRight=this.getComponentOrientation$().isLeftToRight$(); +if (key.equals$O("LOWER_LEADING_CORNER")) { +key=isLeftToRight ? "LOWER_LEFT_CORNER" : "LOWER_RIGHT_CORNER"; +} else if (key.equals$O("LOWER_TRAILING_CORNER")) { +key=isLeftToRight ? "LOWER_RIGHT_CORNER" : "LOWER_LEFT_CORNER"; +} else if (key.equals$O("UPPER_LEADING_CORNER")) { +key=isLeftToRight ? "UPPER_LEFT_CORNER" : "UPPER_RIGHT_CORNER"; +} else if (key.equals$O("UPPER_TRAILING_CORNER")) { +key=isLeftToRight ? "UPPER_RIGHT_CORNER" : "UPPER_LEFT_CORNER"; +}if (key.equals$O("LOWER_LEFT_CORNER")) { +old=this.lowerLeft; +this.lowerLeft=corner; +} else if (key.equals$O("LOWER_RIGHT_CORNER")) { +old=this.lowerRight; +this.lowerRight=corner; +} else if (key.equals$O("UPPER_LEFT_CORNER")) { +old=this.upperLeft; +this.upperLeft=corner; +} else if (key.equals$O("UPPER_RIGHT_CORNER")) { +old=this.upperRight; +this.upperRight=corner; +} else { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["invalid corner key"]); +}if (old != null ) { +this.remove$java_awt_Component(old); +}if (corner != null ) { +this.add$java_awt_Component$O(corner, key); +}this.firePropertyChange$S$O$O(key, old, corner); +this.revalidate$(); +this.秘repaint$(); +}); + +Clazz_newMeth(C$, 'setComponentOrientation$java_awt_ComponentOrientation', function (co) { +C$.superclazz.prototype.setComponentOrientation$java_awt_ComponentOrientation.apply(this, [co]); +if (this.verticalScrollBar != null ) this.verticalScrollBar.setComponentOrientation$java_awt_ComponentOrientation(co); +if (this.horizontalScrollBar != null ) this.horizontalScrollBar.setComponentOrientation$java_awt_ComponentOrientation(co); +}); + +Clazz_newMeth(C$, 'isWheelScrollingEnabled$', function () { +return this.wheelScrollState; +}); + +Clazz_newMeth(C$, 'setWheelScrollingEnabled$Z', function (handleWheel) { +var old=this.wheelScrollState; +this.wheelScrollState=handleWheel; +this.firePropertyChange$S$Z$Z("wheelScrollingEnabled", old, handleWheel); +}); + +Clazz_newMeth(C$, 'getInsets$', function () { +var peer=this.peer; +var i=(peer).getInsets$(); +return (i == null ? $I$(8).NULL_INSETS : i); +}); +; +(function(){var C$=Clazz_newClass(P$.JScrollPane, "ScrollBar", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, 'javax.swing.JScrollBar', 'javax.swing.plaf.UIResource'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.unitIncrementSet=false; +this.blockIncrementSet=false; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$I', function (orientation) { +C$.superclazz.c$$I.apply(this, [orientation]); +C$.$init$.apply(this); +this.putClientProperty$O$O("JScrollBar.fastWheelScrolling", $I$(1).TRUE); +}, 1); + +Clazz_newMeth(C$, 'setUnitIncrement$I', function (unitIncrement) { +this.unitIncrementSet=true; +this.putClientProperty$O$O("JScrollBar.fastWheelScrolling", null); +C$.superclazz.prototype.setUnitIncrement$I.apply(this, [unitIncrement]); +}); + +Clazz_newMeth(C$, 'getUnitIncrement$I', function (direction) { +var vp=this.this$0.getViewport$.apply(this.this$0, []); +if (!this.unitIncrementSet && (vp != null ) && (Clazz_instanceOf(vp.getView$(), "javax.swing.Scrollable")) ) { +var view=(vp.getView$()); +var vr=vp.getViewRect$(); +return view.getScrollableUnitIncrement$java_awt_Rectangle$I$I(vr, this.getOrientation$(), direction); +} else { +return C$.superclazz.prototype.getUnitIncrement$I.apply(this, [direction]); +}}); + +Clazz_newMeth(C$, 'setBlockIncrement$I', function (blockIncrement) { +this.blockIncrementSet=true; +this.putClientProperty$O$O("JScrollBar.fastWheelScrolling", null); +C$.superclazz.prototype.setBlockIncrement$I.apply(this, [blockIncrement]); +}); + +Clazz_newMeth(C$, 'getBlockIncrement$I', function (direction) { +var vp=this.this$0.getViewport$.apply(this.this$0, []); +if (this.blockIncrementSet || vp == null ) { +return C$.superclazz.prototype.getBlockIncrement$I.apply(this, [direction]); +} else if (Clazz_instanceOf(vp.getView$(), "javax.swing.Scrollable")) { +var view=(vp.getView$()); +var vr=vp.getViewRect$(); +return view.getScrollableBlockIncrement$java_awt_Rectangle$I$I(vr, this.getOrientation$(), direction); +} else if (this.getOrientation$() == 1) { +return vp.getExtentSize$().height; +} else { +return vp.getExtentSize$().width; +}}); + +Clazz_newMeth(C$); +})() +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:03 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing"),p$1={}; +var C$=Clazz_newClass(P$, "JSeparator", null, 'javax.swing.JComponent', 'javax.swing.SwingConstants'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.orientation=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.orientation=0; +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.c$$I.apply(this, [0]); +}, 1); + +Clazz_newMeth(C$, 'c$$I', function (orientation) { +Clazz_super_(C$, this,1); +p$1.checkOrientation$I.apply(this, [orientation]); +this.orientation=orientation; +this.setFocusable$Z(false); +this.updateUI$(); +}, 1); + +Clazz_newMeth(C$, 'getUIClassID$', function () { +return "SeparatorUI"; +}); + +Clazz_newMeth(C$, 'getOrientation$', function () { +return this.orientation; +}); + +Clazz_newMeth(C$, 'setOrientation$I', function (orientation) { +if (this.orientation == orientation) { +return; +}var oldValue=this.orientation; +p$1.checkOrientation$I.apply(this, [orientation]); +this.orientation=orientation; +this.firePropertyChange$S$I$I("orientation", oldValue, orientation); +this.revalidate$(); +this.秘repaint$(); +}); + +Clazz_newMeth(C$, 'checkOrientation$I', function (orientation) { +switch (orientation) { +case 1: +case 0: +break; +default: +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["orientation must be one of: VERTICAL, HORIZONTAL"]); +} +}, p$1); + +Clazz_newMeth(C$, 'paramString$', function () { +var orientationString=(this.orientation == 0 ? "HORIZONTAL" : "VERTICAL"); +return C$.superclazz.prototype.paramString$.apply(this, []) + ",orientation=" + orientationString ; +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:03 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing"),I$=[[0,'javax.swing.text.PlainDocument','java.awt.Dimension']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "JTextArea", null, 'javax.swing.text.JTextComponent'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.rows=0; +this.columns=0; +this.columnWidth=0; +this.rowHeight=0; +this.wrap=false; +this.word=false; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.c$$javax_swing_text_Document$S$I$I.apply(this, [null, null, 0, 0]); +}, 1); + +Clazz_newMeth(C$, 'c$$S', function (text) { +C$.c$$javax_swing_text_Document$S$I$I.apply(this, [null, text, 0, 0]); +}, 1); + +Clazz_newMeth(C$, 'c$$I$I', function (rows, columns) { +C$.c$$javax_swing_text_Document$S$I$I.apply(this, [null, null, rows, columns]); +}, 1); + +Clazz_newMeth(C$, 'c$$S$I$I', function (text, rows, columns) { +C$.c$$javax_swing_text_Document$S$I$I.apply(this, [null, text, rows, columns]); +}, 1); + +Clazz_newMeth(C$, 'c$$javax_swing_text_Document', function (doc) { +C$.c$$javax_swing_text_Document$S$I$I.apply(this, [doc, null, 0, 0]); +}, 1); + +Clazz_newMeth(C$, 'c$$javax_swing_text_Document$S$I$I', function (doc, text, rows, columns) { +Clazz_super_(C$, this,1); +this.setFocusTraversalKeysEnabled$Z(false); +this.rows=rows; +this.columns=columns; +if (doc == null ) { +doc=this.createDefaultModel$(); +}this.setDocument$javax_swing_text_Document(doc); +if (text != null ) { +this.setText$S(text); +this.select$I$I(0, 0); +}if (rows < 0) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["rows: " + rows]); +}if (columns < 0) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["columns: " + columns]); +}}, 1); + +Clazz_newMeth(C$, 'getUIClassID$', function () { +return "TextAreaUI"; +}); + +Clazz_newMeth(C$, 'createDefaultModel$', function () { +return Clazz_new_($I$(1)); +}); + +Clazz_newMeth(C$, 'setTabSize$I', function (size) { +var doc=this.getDocument$(); +if (doc != null ) { +var old=this.getTabSize$(); +doc.putProperty$O$O("tabSize", new Integer(size)); +this.firePropertyChange$S$I$I("tabSize", old, size); +}}); + +Clazz_newMeth(C$, 'getTabSize$', function () { +var size=8; +var doc=this.getDocument$(); +if (doc != null ) { +var i=doc.getProperty$O("tabSize"); +if (i != null ) { +size=i.intValue$(); +}}return size; +}); + +Clazz_newMeth(C$, 'setLineWrap$Z', function (wrap) { +var old=this.wrap; +this.wrap=wrap; +this.firePropertyChange$S$Z$Z("lineWrap", old, wrap); +}); + +Clazz_newMeth(C$, 'getLineWrap$', function () { +return this.wrap; +}); + +Clazz_newMeth(C$, 'setWrapStyleWord$Z', function (word) { +var old=this.word; +this.word=word; +this.firePropertyChange$S$Z$Z("wrapStyleWord", old, word); +}); + +Clazz_newMeth(C$, 'getWrapStyleWord$', function () { +return this.word; +}); + +Clazz_newMeth(C$, 'getLineOfOffset$I', function (offset) { +var doc=this.getDocument$(); +if (offset < 0) { +throw Clazz_new_(Clazz_load('javax.swing.text.BadLocationException').c$$S$I,["Can\'t translate offset to line", -1]); +} else if (offset > doc.getLength$()) { +throw Clazz_new_(Clazz_load('javax.swing.text.BadLocationException').c$$S$I,["Can\'t translate offset to line", doc.getLength$() + 1]); +} else { +var map=this.getDocument$().getDefaultRootElement$(); +return map.getElementIndex$I(offset); +}}); + +Clazz_newMeth(C$, 'getLineCount$', function () { +var map=this.getDocument$().getDefaultRootElement$(); +return map.getElementCount$(); +}); + +Clazz_newMeth(C$, 'getLineStartOffset$I', function (line) { +var lineCount=this.getLineCount$(); +if (line < 0) { +throw Clazz_new_(Clazz_load('javax.swing.text.BadLocationException').c$$S$I,["Negative line", -1]); +} else if (line >= lineCount) { +throw Clazz_new_(Clazz_load('javax.swing.text.BadLocationException').c$$S$I,["No such line", this.getDocument$().getLength$() + 1]); +} else { +var map=this.getDocument$().getDefaultRootElement$(); +var lineElem=map.getElement$I(line); +return lineElem.getStartOffset$(); +}}); + +Clazz_newMeth(C$, 'getLineEndOffset$I', function (line) { +var lineCount=this.getLineCount$(); +if (line < 0) { +throw Clazz_new_(Clazz_load('javax.swing.text.BadLocationException').c$$S$I,["Negative line", -1]); +} else if (line >= lineCount) { +throw Clazz_new_(Clazz_load('javax.swing.text.BadLocationException').c$$S$I,["No such line", this.getDocument$().getLength$() + 1]); +} else { +var map=this.getDocument$().getDefaultRootElement$(); +var lineElem=map.getElement$I(line); +var endOffset=lineElem.getEndOffset$(); +return ((line == lineCount - 1) ? (endOffset - 1) : endOffset); +}}); + +Clazz_newMeth(C$, 'insert$S$I', function (str, pos) { +var doc=this.getDocument$(); +if (doc != null ) { +try { +doc.insertString$I$S$javax_swing_text_AttributeSet(pos, str, null); +} catch (e) { +if (Clazz_exceptionOf(e,"javax.swing.text.BadLocationException")){ +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,[e.getMessage$()]); +} else { +throw e; +} +} +}}); + +Clazz_newMeth(C$, 'append$S', function (str) { +var doc=this.getDocument$(); +if (doc != null ) { +try { +doc.insertString$I$S$javax_swing_text_AttributeSet(doc.getLength$(), str, null); +} catch (e) { +if (Clazz_exceptionOf(e,"javax.swing.text.BadLocationException")){ +} else { +throw e; +} +} +}}); + +Clazz_newMeth(C$, 'replaceRange$S$I$I', function (str, start, end) { +if (end < start) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["end before start"]); +}var doc=this.getDocument$(); +if (doc != null ) { +try { +if (Clazz_instanceOf(doc, "javax.swing.text.AbstractDocument")) { +(doc).replace$I$I$S$javax_swing_text_AttributeSet$javax_swing_text_JTextComponent(start, end - start, str, null, this); +} else { +doc.remove$I$I(start, end - start); +doc.insertString$I$S$javax_swing_text_AttributeSet(start, str, null); +}} catch (e) { +if (Clazz_exceptionOf(e,"javax.swing.text.BadLocationException")){ +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,[e.getMessage$()]); +} else { +throw e; +} +} +}}); + +Clazz_newMeth(C$, 'getRows$', function () { +return this.rows; +}); + +Clazz_newMeth(C$, 'setRows$I', function (rows) { +var oldVal=this.rows; +if (rows < 0) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["rows less than zero."]); +}if (rows != oldVal) { +this.rows=rows; +this.invalidate$(); +}}); + +Clazz_newMeth(C$, 'getRowHeight$', function () { +if (this.rowHeight == 0) { +var metrics=this.getFontMetrics$java_awt_Font(this.getFont$()); +this.rowHeight=metrics.getHeight$(); +}return this.rowHeight; +}); + +Clazz_newMeth(C$, 'getColumns$', function () { +return this.columns; +}); + +Clazz_newMeth(C$, 'setColumns$I', function (columns) { +var oldVal=this.columns; +if (columns < 0) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["columns less than zero."]); +}if (columns != oldVal) { +this.columns=columns; +this.invalidate$(); +}}); + +Clazz_newMeth(C$, 'getColumnWidth$', function () { +if (this.columnWidth == 0) { +var metrics=this.getFontMetrics$java_awt_Font(this.getFont$()); +this.columnWidth=metrics.charWidth$C("m"); +}return this.columnWidth; +}); + +Clazz_newMeth(C$, 'getPreferredSize$', function () { +return this.getSizeJS$java_awt_Dimension$I$I$I(this.getPrefSizeJComp$(), 400, this.rows, this.columns); +}); + +Clazz_newMeth(C$, 'getSizeJS$java_awt_Dimension$I$I$I', function (d, n, rows, columns) { +var w=10; +var h=10; +if (d == null ) { +d=Clazz_new_($I$(2).c$$I$I,[n, n]); +} else { +w=d.width; +h=d.height; +}if (columns != 0) { +d.width=Math.max(w, this.getJ2SWidth$I(columns)); +}if (rows != 0) { +var insets=this.getInsets$(); +d.height=Math.max(h, rows * this.getRowHeight$() + insets.top + insets.bottom); +}return d; +}); + +Clazz_newMeth(C$, 'getJ2SWidth$I', function (columns) { +var insets=this.getInsets$(); +return columns * this.getColumnWidth$() + insets.left + insets.right; +}); + +Clazz_newMeth(C$, 'setFont$java_awt_Font', function (f) { +C$.superclazz.prototype.setFont$java_awt_Font.apply(this, [f]); +this.rowHeight=0; +this.columnWidth=0; +}); + +Clazz_newMeth(C$, 'paramString$', function () { +var wrapString=(this.wrap ? "true" : "false"); +var wordString=(this.word ? "true" : "false"); +return C$.superclazz.prototype.paramString$.apply(this, []) + ",colums=" + this.columns + ",columWidth=" + this.columnWidth + ",rows=" + this.rows + ",rowHeight=" + this.rowHeight + ",word=" + wordString + ",wrap=" + wrapString ; +}); + +Clazz_newMeth(C$, 'getScrollableTracksViewportWidth$', function () { +return (this.wrap) ? true : C$.superclazz.prototype.getScrollableTracksViewportWidth$.apply(this, []); +}); + +Clazz_newMeth(C$, 'getPreferredScrollableViewportSize$', function () { +var size=C$.superclazz.prototype.getPreferredScrollableViewportSize$.apply(this, []); +size=(size == null ) ? Clazz_new_($I$(2).c$$I$I,[400, 400]) : size; +var insets=this.getInsets$(); +size.width=(this.columns == 0) ? size.width : this.columns * this.getColumnWidth$() + insets.left + insets.right; +size.height=(this.rows == 0) ? size.height : this.rows * this.getRowHeight$() + insets.top + insets.bottom; +return size; +}); + +Clazz_newMeth(C$, 'getScrollableUnitIncrement$java_awt_Rectangle$I$I', function (visibleRect, orientation, direction) { +switch (orientation) { +case 1: +return this.getRowHeight$(); +case 0: +return this.getColumnWidth$(); +default: +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["Invalid orientation: " + orientation]); +} +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:04 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing"),p$1={},I$=[[0,'javax.swing.AbstractAction','javax.swing.Action',['javax.swing.JTextField','.NotifyAction'],'Boolean','javax.swing.text.PlainDocument','java.awt.event.ActionListener','java.awt.EventQueue','java.awt.event.ActionEvent',['javax.swing.JTextField','.TextFieldActionPropertyChangeListener'],'javax.swing.text.TextAction']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "JTextField", function(){ +Clazz_newInstance(this, arguments,0,C$); +}, 'javax.swing.text.JTextComponent', 'javax.swing.SwingConstants'); +C$.defaultActions=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.defaultActions=Clazz_array($I$(2), -1, [Clazz_new_($I$(3))]); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.action=null; +this.actionPropertyChangeListener=null; +this.horizontalAlignment=0; +this.columns=0; +this.columnWidth=0; +this.command=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.horizontalAlignment=10; +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.c$$javax_swing_text_Document$S$I.apply(this, [null, null, 0]); +}, 1); + +Clazz_newMeth(C$, 'c$$S', function (text) { +C$.c$$javax_swing_text_Document$S$I.apply(this, [null, text, 0]); +}, 1); + +Clazz_newMeth(C$, 'c$$I', function (columns) { +C$.c$$javax_swing_text_Document$S$I.apply(this, [null, null, columns]); +}, 1); + +Clazz_newMeth(C$, 'c$$S$I', function (text, columns) { +C$.c$$javax_swing_text_Document$S$I.apply(this, [null, text, columns]); +}, 1); + +Clazz_newMeth(C$, 'c$$javax_swing_text_Document$S$I', function (doc, text, columns) { +Clazz_super_(C$, this,1); +if (columns < 0) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["columns less than zero."]); +}this.columns=columns; +if (doc == null ) { +doc=this.createDefaultModel$(); +}this.setDocument$javax_swing_text_Document(doc); +if (text != null ) { +this.setText$S(text); +}}, 1); + +Clazz_newMeth(C$, 'getUIClassID$', function () { +return "TextFieldUI"; +}); + +Clazz_newMeth(C$, 'setDocument$javax_swing_text_Document', function (doc) { +if (doc != null ) { +doc.putProperty$O$O("filterNewlines", $I$(4).TRUE); +}C$.superclazz.prototype.setDocument$javax_swing_text_Document.apply(this, [doc]); +}); + +Clazz_newMeth(C$, 'isValidateRoot$', function () { +var parent=this.getParent$(); +if (Clazz_instanceOf(parent, "javax.swing.JViewport")) { +return false; +}return true; +}); + +Clazz_newMeth(C$, 'getHorizontalAlignment$', function () { +return this.horizontalAlignment; +}); + +Clazz_newMeth(C$, 'setHorizontalAlignment$I', function (alignment) { +if (alignment == this.horizontalAlignment) return; +var oldValue=this.horizontalAlignment; +if ((alignment == 2) || (alignment == 0) || (alignment == 4) || (alignment == 10) || (alignment == 11) ) { +this.horizontalAlignment=alignment; +} else { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["horizontalAlignment"]); +}this.firePropertyChange$S$I$I("horizontalAlignment", oldValue, this.horizontalAlignment); +this.invalidate$(); +this.秘repaint$(); +}); + +Clazz_newMeth(C$, 'createDefaultModel$', function () { +return Clazz_new_($I$(5)); +}); + +Clazz_newMeth(C$, 'getColumns$', function () { +return this.columns; +}); + +Clazz_newMeth(C$, 'setColumns$I', function (columns) { +var oldVal=this.columns; +if (columns < 0) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["columns less than zero."]); +}if (columns != oldVal) { +this.columns=columns; +this.invalidate$(); +}}); + +Clazz_newMeth(C$, 'getColumnWidth$', function () { +if (this.columnWidth == 0) { +var metrics=this.getFontMetrics$java_awt_Font(this.getFont$()); +this.columnWidth=metrics.charWidth$C("m"); +}return this.columnWidth; +}); + +Clazz_newMeth(C$, 'getPreferredSize$', function () { +return this.getPrefSizeJTF$(); +}); + +Clazz_newMeth(C$, 'getPrefSizeJTF$', function () { +return this.getPrefSizeJTF$I(this.columns); +}); + +Clazz_newMeth(C$, 'getPrefSizeJTF$I', function (columns) { +var size=(!this.isPreferredSizeSet$() && this.ui != null ? this.ui.getPreferredSize$javax_swing_JComponent(this) : null); +if (size == null ) size=C$.superclazz.prototype.preferredSize$.apply(this, []); +if (columns != 0) { +size.width=this.getJ2SWidth$I(columns); +}return size; +}); + +Clazz_newMeth(C$, 'getJ2SWidth$I', function (columns) { +var insets=this.getInsets$(); +return columns * this.getColumnWidth$() + insets.left + insets.right; +}); + +Clazz_newMeth(C$, 'getMinimumSizeJTF$I', function (columns) { +var size=C$.superclazz.prototype.getMinimumSize$.apply(this, []); +if (columns != 0) { +size.width=this.getJ2SWidth$I(columns); +}return size; +}); + +Clazz_newMeth(C$, 'setFont$java_awt_Font', function (f) { +C$.superclazz.prototype.setFont$java_awt_Font.apply(this, [f]); +this.columnWidth=0; +}); + +Clazz_newMeth(C$, 'addActionListener$java_awt_event_ActionListener', function (l) { +this.listenerList.add$Class$TT(Clazz_getClass($I$(6),['actionPerformed$java_awt_event_ActionEvent']), l); +}); + +Clazz_newMeth(C$, 'removeActionListener$java_awt_event_ActionListener', function (l) { +if ((l != null ) && (this.getAction$() === l ) ) { +this.setAction$javax_swing_Action(null); +} else { +this.listenerList.remove$Class$TT(Clazz_getClass($I$(6),['actionPerformed$java_awt_event_ActionEvent']), l); +}}); + +Clazz_newMeth(C$, 'getActionListeners$', function () { +return this.listenerList.getListeners$Class(Clazz_getClass($I$(6),['actionPerformed$java_awt_event_ActionEvent'])); +}); + +Clazz_newMeth(C$, 'fireActionPerformed$', function () { +var listeners=this.listenerList.getListenerList$(); +var modifiers=0; +var currentEvent=$I$(7).getCurrentEvent$(); +if (Clazz_instanceOf(currentEvent, "java.awt.event.InputEvent")) { +modifiers=(currentEvent).getModifiers$(); +} else if (Clazz_instanceOf(currentEvent, "java.awt.event.ActionEvent")) { +modifiers=(currentEvent).getModifiers$(); +}var e=Clazz_new_($I$(8).c$$O$I$S$J$I,[this, 1001, (this.command != null ) ? this.command : this.getText$(), $I$(7).getMostRecentEventTime$(), modifiers]); +for (var i=listeners.length - 2; i >= 0; i-=2) { +if (listeners[i] === Clazz_getClass($I$(6),['actionPerformed$java_awt_event_ActionEvent']) ) { +(listeners[i + 1]).actionPerformed$(e); +}} +}); + +Clazz_newMeth(C$, 'setActionCommand$S', function (command) { +this.command=command; +}); + +Clazz_newMeth(C$, 'setAction$javax_swing_Action', function (a) { +var oldValue=this.getAction$(); +if (this.action == null || !this.action.equals$O(a) ) { +this.action=a; +if (oldValue != null ) { +this.removeActionListener$java_awt_event_ActionListener(oldValue); +oldValue.removePropertyChangeListener$java_beans_PropertyChangeListener(this.actionPropertyChangeListener); +this.actionPropertyChangeListener=null; +}this.configurePropertiesFromAction$javax_swing_Action(this.action); +if (this.action != null ) { +if (!p$1.isListener$Class$java_awt_event_ActionListener.apply(this, [Clazz_getClass($I$(6),['actionPerformed$java_awt_event_ActionEvent']), this.action])) { +this.addActionListener$java_awt_event_ActionListener(this.action); +}this.actionPropertyChangeListener=this.createActionPropertyChangeListener$javax_swing_Action(this.action); +this.action.addPropertyChangeListener$java_beans_PropertyChangeListener(this.actionPropertyChangeListener); +}this.firePropertyChange$S$O$O("action", oldValue, this.action); +}}); + +Clazz_newMeth(C$, 'isListener$Class$java_awt_event_ActionListener', function (c, a) { +var isListener=false; +var listeners=this.listenerList.getListenerList$(); +for (var i=listeners.length - 2; i >= 0; i-=2) { +if (listeners[i] === c && listeners[i + 1] === a ) { +isListener=true; +}} +return isListener; +}, p$1); + +Clazz_newMeth(C$, 'getAction$', function () { +return this.action; +}); + +Clazz_newMeth(C$, 'configurePropertiesFromAction$javax_swing_Action', function (a) { +$I$(1).setEnabledFromAction$javax_swing_JComponent$javax_swing_Action(this, a); +$I$(1).setToolTipTextFromAction$javax_swing_JComponent$javax_swing_Action(this, a); +p$1.setActionCommandFromAction$javax_swing_Action.apply(this, [a]); +}); + +Clazz_newMeth(C$, 'actionPropertyChanged$javax_swing_Action$S', function (action, propertyName) { +if (propertyName == "ActionCommandKey") { +p$1.setActionCommandFromAction$javax_swing_Action.apply(this, [action]); +} else if (propertyName == "enabled") { +$I$(1).setEnabledFromAction$javax_swing_JComponent$javax_swing_Action(this, action); +} else if (propertyName == "ShortDescription") { +$I$(1).setToolTipTextFromAction$javax_swing_JComponent$javax_swing_Action(this, action); +}}); + +Clazz_newMeth(C$, 'setActionCommandFromAction$javax_swing_Action', function (action) { +this.setActionCommand$S((action == null ) ? null : action.getValue$S("ActionCommandKey")); +}, p$1); + +Clazz_newMeth(C$, 'createActionPropertyChangeListener$javax_swing_Action', function (a) { +return Clazz_new_($I$(9).c$$javax_swing_JTextField$javax_swing_Action,[this, a]); +}); + +Clazz_newMeth(C$, 'getActions$', function () { +return $I$(10).augmentList$javax_swing_ActionA$javax_swing_ActionA(C$.superclazz.prototype.getActions$.apply(this, []), C$.defaultActions); +}); + +Clazz_newMeth(C$, 'postActionEvent$', function () { +this.fireActionPerformed$(); +}); + +Clazz_newMeth(C$, 'hasActionListener$', function () { +var listeners=this.listenerList.getListenerList$(); +for (var i=listeners.length - 2; i >= 0; i-=2) { +if (listeners[i] === Clazz_getClass($I$(6),['actionPerformed$java_awt_event_ActionEvent']) ) { +return true; +}} +return false; +}); + +Clazz_newMeth(C$, 'paramString$', function () { +var horizontalAlignmentString; +if (this.horizontalAlignment == 2) { +horizontalAlignmentString="LEFT"; +} else if (this.horizontalAlignment == 0) { +horizontalAlignmentString="CENTER"; +} else if (this.horizontalAlignment == 4) { +horizontalAlignmentString="RIGHT"; +} else if (this.horizontalAlignment == 10) { +horizontalAlignmentString="LEADING"; +} else if (this.horizontalAlignment == 11) { +horizontalAlignmentString="TRAILING"; +} else horizontalAlignmentString=""; +var commandString=(this.command != null ? this.command : ""); +return C$.superclazz.prototype.paramString$.apply(this, []) + ",columns=" + this.columns + ",columnWidth=" + this.columnWidth + ",command=" + commandString + ",horizontalAlignment=" + horizontalAlignmentString ; +}); +; +(function(){var C$=Clazz_newClass(P$.JTextField, "TextFieldActionPropertyChangeListener", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'javax.swing.ActionPropertyChangeListener'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$javax_swing_JTextField$javax_swing_Action', function (tf, a) { +C$.superclazz.c$$TT$javax_swing_Action.apply(this, [tf, a]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, ['actionPropertyChanged$javax_swing_JTextField$javax_swing_Action$java_beans_PropertyChangeEvent','actionPropertyChanged$TT$javax_swing_Action$java_beans_PropertyChangeEvent'], function (textField, action, e) { +if ($I$(1).shouldReconfigure$java_beans_PropertyChangeEvent(e)) { +textField.configurePropertiesFromAction$javax_swing_Action(action); +} else { +textField.actionPropertyChanged$javax_swing_Action$S(action, e.getPropertyName$()); +}}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.JTextField, "NotifyAction", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'javax.swing.text.TextAction'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.superclazz.c$$S.apply(this, ["notify-field-accept"]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) { +var target=e.getSource$(); +if (Clazz_instanceOf(target, "javax.swing.JTextField")) { +var field=target; +field.postActionEvent$(); +}}); + +Clazz_newMeth(C$, 'isEnabled$', function () { +var target=this.getFocusedComponent$(); +if (Clazz_instanceOf(target, "javax.swing.JTextField")) { +return (target).hasActionListener$(); +}return false; +}); +})() +; +(function(){var C$=Clazz_newClass(P$.JTextField, "ScrollRepainter", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, null, 'javax.swing.event.ChangeListener'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, ['stateChanged$javax_swing_event_ChangeEvent','stateChanged$'], function (e) { +this.b$['java.awt.JSComponent'].秘repaint$.apply(this.b$['java.awt.JSComponent'], []); +}); + +Clazz_newMeth(C$); +})() +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:05 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing"),I$=[[0,'java.awt.event.ItemEvent','java.awt.EventQueue','java.awt.event.ActionEvent',['javax.swing.JToggleButton','.ToggleButtonModel']]],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "JToggleButton", function(){ +Clazz_newInstance(this, arguments,0,C$); +}, 'javax.swing.AbstractButton'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.c$$S$javax_swing_Icon$Z.apply(this, [null, null, false]); +}, 1); + +Clazz_newMeth(C$, 'c$$javax_swing_Icon', function (icon) { +C$.c$$S$javax_swing_Icon$Z.apply(this, [null, icon, false]); +}, 1); + +Clazz_newMeth(C$, 'c$$javax_swing_Icon$Z', function (icon, selected) { +C$.c$$S$javax_swing_Icon$Z.apply(this, [null, icon, selected]); +}, 1); + +Clazz_newMeth(C$, 'c$$S', function (text) { +C$.c$$S$javax_swing_Icon$Z.apply(this, [text, null, false]); +}, 1); + +Clazz_newMeth(C$, 'c$$S$Z', function (text, selected) { +C$.c$$S$javax_swing_Icon$Z.apply(this, [text, null, selected]); +}, 1); + +Clazz_newMeth(C$, 'c$$javax_swing_Action', function (a) { +C$.c$.apply(this, []); +this.setAction$javax_swing_Action(a); +}, 1); + +Clazz_newMeth(C$, 'c$$S$javax_swing_Icon', function (text, icon) { +C$.c$$S$javax_swing_Icon$Z.apply(this, [text, icon, false]); +}, 1); + +Clazz_newMeth(C$, 'c$$S$javax_swing_Icon$Z', function (text, icon, selected) { +Clazz_super_(C$, this,1); +this.setModel$(); +this.model.setSelected$Z(selected); +this.init$S$javax_swing_Icon(text, icon); +this.setOpaque$Z(true); +}, 1); + +Clazz_newMeth(C$, 'setModel$', function () { +this.setModel$javax_swing_ButtonModel(Clazz_new_($I$(4))); +}); + +Clazz_newMeth(C$, 'getUIClassID$', function () { +return "ToggleButtonUI"; +}); + +Clazz_newMeth(C$, 'shouldUpdateSelectedStateFromAction$', function () { +return true; +}); + +Clazz_newMeth(C$, 'paramString$', function () { +return C$.superclazz.prototype.paramString$.apply(this, []); +}); +; +(function(){var C$=Clazz_newClass(P$.JToggleButton, "ToggleButtonModel", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'javax.swing.DefaultButtonModel'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +Clazz_super_(C$, this,1); +}, 1); + +Clazz_newMeth(C$, 'isSelected$', function () { +return (this.stateMask & 2) != 0; +}); + +Clazz_newMeth(C$, 'setSelected$Z', function (b) { +var group=this.getGroup$(); +if (group != null ) { +group.setSelected$javax_swing_ButtonModel$Z(this, b); +b=group.isSelected$javax_swing_ButtonModel(this); +}if (this.isSelected$() == b ) { +return; +}if (b) { +this.stateMask|=2; +} else { +this.stateMask&=~2; +}this.fireStateChanged$(); +this.fireItemStateChanged$java_awt_event_ItemEvent(Clazz_new_($I$(1).c$$java_awt_ItemSelectable$I$O$I,[this, 701, this, this.isSelected$() ? 1 : 2])); +}); + +Clazz_newMeth(C$, 'setPressed$Z', function (b) { +if ((this.isPressed$() == b ) || !this.isEnabled$() ) { +return; +}if (!b && this.isArmed$() ) { +this.setSelected$Z(!this.isSelected$()); +}if (b) { +this.stateMask|=4; +} else { +this.stateMask&=~4; +}this.fireStateChanged$(); +if (!this.isPressed$() && this.isArmed$() ) { +var modifiers=0; +var currentEvent=$I$(2).getCurrentEvent$(); +if (Clazz_instanceOf(currentEvent, "java.awt.event.InputEvent")) { +modifiers=(currentEvent).getModifiers$(); +} else if (Clazz_instanceOf(currentEvent, "java.awt.event.ActionEvent")) { +modifiers=(currentEvent).getModifiers$(); +}this.fireActionPerformed$java_awt_event_ActionEvent(Clazz_new_($I$(3).c$$O$I$S$J$I,[this, 1001, this.getActionCommand$(), $I$(2).getMostRecentEventTime$(), modifiers])); +}}); +})() +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:05 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing"),p$1={},I$=[[0,'javax.swing.RepaintManager','java.awt.Insets','java.awt.Point','java.awt.Dimension','java.awt.Rectangle','javax.swing.JComponent','javax.swing.SwingUtilities',['javax.swing.JViewport','.ViewListener'],'javax.swing.ViewportLayout','javax.swing.event.ChangeListener','javax.swing.event.ChangeEvent','java.awt.JSComponent']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "JViewport", function(){ +Clazz_newInstance(this, arguments,0,C$); +}, 'javax.swing.JComponent', [['java.awt.JSComponent','java.awt.JSComponent.A2SComponentWrapper']]); +C$.EnableWindowBlit=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.EnableWindowBlit="EnableWindowBlit"; +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.isViewSizeSet=false; +this.lastPaintPosition=null; +this.backingStore=false; +this.backingStoreImage=null; +this.scrollUnderway=false; +this.viewListener=null; +this.changeEvent=null; +this.scrollMode=0; +this.repaintAll=false; +this.waitingForRepaint=false; +this.inBlitPaint=false; +this.hasHadValidView=false; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.isViewSizeSet=false; +this.lastPaintPosition=null; +this.backingStore=false; +this.backingStoreImage=null; +this.scrollUnderway=false; +this.viewListener=null; +this.changeEvent=null; +this.scrollMode=1; +}, 1); + +Clazz_newMeth(C$, '秘isWrapper$', function () { +}); + +Clazz_newMeth(C$, 'c$', function () { +C$.superclazz.c$.apply(this, []); +C$.$init$.apply(this); +this.setLayout$java_awt_LayoutManager(this.createLayoutManager$()); +this.setOpaque$Z(true); +this.updateUI$(); +this.setInheritsPopupMenu$Z(true); +}, 1); + +Clazz_newMeth(C$, 'getUIClassID$', function () { +return "ViewportUI"; +}); + +Clazz_newMeth(C$, 'addImpl$java_awt_Component$O$I', function (child, constraints, index) { +this.setView$java_awt_Component(child); +}); + +Clazz_newMeth(C$, 'remove$java_awt_Component', function (child) { +child.removeComponentListener$java_awt_event_ComponentListener(this.viewListener); +C$.superclazz.prototype.remove$java_awt_Component.apply(this, [child]); +}); + +Clazz_newMeth(C$, 'scrollRectToVisible$java_awt_Rectangle', function (contentRect) { +var view=this.getView$(); +if (view == null ) { +return; +} else { +if (!view.isValid$()) { +p$1.validateView.apply(this, []); +}var dx=0; +var dy=0; +dx=p$1.positionAdjustment$I$I$I.apply(this, [this.getWidth$(), contentRect.width, contentRect.x]); +dy=p$1.positionAdjustment$I$I$I.apply(this, [this.getHeight$(), contentRect.height, contentRect.y]); +if (dx != 0 || dy != 0 ) { +var viewPosition=this.getViewPosition$(); +var viewSize=view.getSize$(); +var startX=viewPosition.x; +var startY=viewPosition.y; +var extent=this.getExtentSize$(); +viewPosition.x-=dx; +viewPosition.y-=dy; +if (view.isValid$()) { +if (this.getParent$().getComponentOrientation$().isLeftToRight$()) { +if (viewPosition.x + extent.width > viewSize.width) { +viewPosition.x=Math.max(0, viewSize.width - extent.width); +} else if (viewPosition.x < 0) { +viewPosition.x=0; +}} else { +if (extent.width > viewSize.width) { +viewPosition.x=viewSize.width - extent.width; +} else { +viewPosition.x=Math.max(0, Math.min(viewSize.width - extent.width, viewPosition.x)); +}}if (viewPosition.y + extent.height > viewSize.height) { +viewPosition.y=Math.max(0, viewSize.height - extent.height); +} else if (viewPosition.y < 0) { +viewPosition.y=0; +}}if (viewPosition.x != startX || viewPosition.y != startY ) { +this.setViewPosition$java_awt_Point(viewPosition); +this.scrollUnderway=false; +}}}}); + +Clazz_newMeth(C$, 'validateView', function () { +var validateRoot=null; +for (var c=this; c != null ; c=c.getParent$()) { +if ((Clazz_instanceOf(c, "javax.swing.CellRendererPane")) || !c.isLightweight$() ) { +return; +}if ((Clazz_instanceOf(c, "javax.swing.JComponent")) && ((c).isValidateRoot$()) ) { +validateRoot=c; +break; +}} +if (validateRoot == null ) { +return; +}var root=null; +for (var c=validateRoot; c != null ; c=c.getParent$()) { +if (!c.isLightweight$()) { +return; +}if (c.isWindowOrJSApplet$()) { +root=c; +break; +}} +if (root == null ) { +return; +}validateRoot.validate$(); +var rm=$I$(1).currentManager$javax_swing_JComponent(this); +if (rm != null ) { +rm.removeInvalidComponent$javax_swing_JComponent(validateRoot); +}}, p$1); + +Clazz_newMeth(C$, 'positionAdjustment$I$I$I', function (parentWidth, childWidth, childAt) { +if (childAt >= 0 && childWidth + childAt <= parentWidth ) { +return 0; +}if (childAt <= 0 && childWidth + childAt >= parentWidth ) { +return 0; +}if (childAt > 0 && childWidth <= parentWidth ) { +return -childAt + parentWidth - childWidth; +}if (childAt >= 0 && childWidth >= parentWidth ) { +return -childAt; +}if (childAt <= 0 && childWidth <= parentWidth ) { +return -childAt; +}if (childAt < 0 && childWidth >= parentWidth ) { +return -childAt + parentWidth - childWidth; +}return 0; +}, p$1); + +Clazz_newMeth(C$, 'setBorder$javax_swing_border_Border', function (border) { +if (border != null ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["JViewport.setBorder() not supported"]); +}}); + +Clazz_newMeth(C$, 'getInsets$', function () { +return Clazz_new_($I$(2).c$$I$I$I$I,[1, 1, 1, 1]); +}); + +Clazz_newMeth(C$, 'getInsets$java_awt_Insets', function (insets) { +insets.left=insets.top=insets.right=insets.bottom=0; +return insets; +}); + +Clazz_newMeth(C$, 'getBackingStoreGraphics$java_awt_Graphics', function (g) { +var bsg=this.backingStoreImage.getGraphics$(); +bsg.setColor$java_awt_Color(g.getColor$()); +bsg.setFont$java_awt_Font(g.getFont$()); +bsg.setClip$java_awt_Shape(g.getClipBounds$()); +return bsg; +}, p$1); + +Clazz_newMeth(C$, 'paintViaBackingStore$java_awt_Graphics', function (g) { +var bsg=p$1.getBackingStoreGraphics$java_awt_Graphics.apply(this, [g]); +try { +C$.superclazz.prototype.paint$java_awt_Graphics.apply(this, [bsg]); +(g).drawImagePriv$java_awt_Image$I$I$java_awt_image_ImageObserver(this.backingStoreImage, 0, 0, this); +} finally { +bsg.dispose$(); +} +}, p$1); + +Clazz_newMeth(C$, 'paintViaBackingStore$java_awt_Graphics$java_awt_Rectangle', function (g, oClip) { +var bsg=p$1.getBackingStoreGraphics$java_awt_Graphics.apply(this, [g]); +try { +C$.superclazz.prototype.paint$java_awt_Graphics.apply(this, [bsg]); +g.setClip$java_awt_Shape(oClip); +(g).drawImagePriv$java_awt_Image$I$I$java_awt_image_ImageObserver(this.backingStoreImage, 0, 0, this); +} finally { +bsg.dispose$(); +} +}, p$1); + +Clazz_newMeth(C$, 'isOptimizedDrawingEnabled$', function () { +return false; +}); + +Clazz_newMeth(C$, 'isPaintingOrigin$', function () { +if (this.scrollMode == 2) { +return true; +}return false; +}); + +Clazz_newMeth(C$, 'getViewLocation', function () { +var view=this.getView$(); +if (view != null ) { +return view.getLocation$(); +} else { +return Clazz_new_($I$(3).c$$I$I,[0, 0]); +}}, p$1); + +Clazz_newMeth(C$, 'paint$java_awt_Graphics', function (g) { +var width=this.getWidth$(); +var height=this.getHeight$(); +if ((width <= 0) || (height <= 0) ) { +return; +}if (this.inBlitPaint) { +C$.superclazz.prototype.paint$java_awt_Graphics.apply(this, [g]); +return; +}if (this.repaintAll) { +this.repaintAll=false; +} else if (this.waitingForRepaint) { +var clipB=g.getClipBounds$(); +if (clipB.width >= this.getWidth$() && clipB.height >= this.getHeight$() ) { +this.waitingForRepaint=false; +}}if (!this.backingStore || p$1.isBlitting.apply(this, []) || this.getView$() == null ) { +C$.superclazz.prototype.paint$java_awt_Graphics.apply(this, [g]); +this.lastPaintPosition=p$1.getViewLocation.apply(this, []); +return; +}var viewBounds=this.getView$().getBounds$(); +if (!this.isOpaque$()) { +g.clipRect$I$I$I$I(0, 0, viewBounds.width, viewBounds.height); +}if (this.backingStoreImage == null ) { +this.backingStoreImage=this.createImage$I$I(width, height); +var clip=g.getClipBounds$(); +if (clip.width != width || clip.height != height ) { +if (!this.isOpaque$()) { +g.setClip$I$I$I$I(0, 0, Math.min(viewBounds.width, width), Math.min(viewBounds.height, height)); +} else { +g.setClip$I$I$I$I(0, 0, width, height); +}p$1.paintViaBackingStore$java_awt_Graphics$java_awt_Rectangle.apply(this, [g, clip]); +} else { +p$1.paintViaBackingStore$java_awt_Graphics.apply(this, [g]); +}} else { +if (!this.scrollUnderway || this.lastPaintPosition.equals$O(p$1.getViewLocation.apply(this, [])) ) { +p$1.paintViaBackingStore$java_awt_Graphics.apply(this, [g]); +} else { +var blitFrom=Clazz_new_($I$(3)); +var blitTo=Clazz_new_($I$(3)); +var blitSize=Clazz_new_($I$(4)); +var blitPaint=Clazz_new_($I$(5)); +var newLocation=p$1.getViewLocation.apply(this, []); +var dx=newLocation.x - this.lastPaintPosition.x; +var dy=newLocation.y - this.lastPaintPosition.y; +var canBlit=this.computeBlit$I$I$java_awt_Point$java_awt_Point$java_awt_Dimension$java_awt_Rectangle(dx, dy, blitFrom, blitTo, blitSize, blitPaint); +if (!canBlit) { +p$1.paintViaBackingStore$java_awt_Graphics.apply(this, [g]); +} else { +var bdx=blitTo.x - blitFrom.x; +var bdy=blitTo.y - blitFrom.y; +var clip=g.getClipBounds$(); +g.setClip$I$I$I$I(0, 0, width, height); +var bsg=p$1.getBackingStoreGraphics$java_awt_Graphics.apply(this, [g]); +try { +bsg.copyArea$I$I$I$I$I$I(blitFrom.x, blitFrom.y, blitSize.width, blitSize.height, bdx, bdy); +g.setClip$I$I$I$I(clip.x, clip.y, clip.width, clip.height); +var r=viewBounds.intersection$java_awt_Rectangle(blitPaint); +bsg.setClip$java_awt_Shape(r); +C$.superclazz.prototype.paint$java_awt_Graphics.apply(this, [bsg]); +(g).drawImagePriv$java_awt_Image$I$I$java_awt_image_ImageObserver(this.backingStoreImage, 0, 0, this); +} finally { +bsg.dispose$(); +} +}}}this.lastPaintPosition=p$1.getViewLocation.apply(this, []); +this.scrollUnderway=false; +}); + +Clazz_newMeth(C$, 'reshape$I$I$I$I', function (x, y, w, h) { +var sizeChanged=(this.getWidth$() != w) || (this.getHeight$() != h) ; +if (sizeChanged) { +this.backingStoreImage=null; +}C$.superclazz.prototype.reshape$I$I$I$I.apply(this, [x, y, w, h]); +if (sizeChanged) { +this.fireStateChanged$(); +}}); + +Clazz_newMeth(C$, 'setScrollMode$I', function (mode) { +this.scrollMode=mode; +if (mode == 2) { +this.backingStore=true; +} else { +this.backingStore=false; +}}); + +Clazz_newMeth(C$, 'getScrollMode$', function () { +return this.scrollMode; +}); + +Clazz_newMeth(C$, 'isBackingStoreEnabled$', function () { +return this.scrollMode == 2; +}); + +Clazz_newMeth(C$, 'setBackingStoreEnabled$Z', function (enabled) { +if (enabled) { +this.setScrollMode$I(2); +} else { +this.setScrollMode$I(1); +}}); + +Clazz_newMeth(C$, 'isBlitting', function () { +var view=this.getView$(); +return (this.scrollMode == 1) && (Clazz_instanceOf(view, "javax.swing.JComponent")) && (view).isOpaque$() ; +}, p$1); + +Clazz_newMeth(C$, 'getView$', function () { +return (this.getComponentCount$() > 0) ? this.getComponent$I(0) : null; +}); + +Clazz_newMeth(C$, 'setView$java_awt_Component', function (view) { +var n=this.getComponentCount$(); +for (var i=n - 1; i >= 0; i--) { +this.remove$java_awt_Component(this.getComponent$I(i)); +} +this.isViewSizeSet=false; +if (view != null ) { +this.addImplCont$java_awt_Component$O$I(view, null, -1); +this.viewListener=this.createViewListener$(); +view.addComponentListener$java_awt_event_ComponentListener(this.viewListener); +}if (this.hasHadValidView) { +this.fireStateChanged$(); +} else if (view != null ) { +this.hasHadValidView=true; +}this.revalidate$(); +this.秘repaint$(); +}); + +Clazz_newMeth(C$, 'getViewSize$', function () { +var view=this.getView$(); +if (view == null ) { +return Clazz_new_($I$(4).c$$I$I,[0, 0]); +} else if (this.isViewSizeSet) { +return view.getSize$(); +} else { +return view.getPreferredSize$(); +}}); + +Clazz_newMeth(C$, 'setViewSize$java_awt_Dimension', function (newSize) { +var view=this.getView$(); +if (view != null ) { +var oldSize=view.getSize$(); +if (!newSize.equals$O(oldSize)) { +this.scrollUnderway=false; +view.setSize$java_awt_Dimension(newSize); +this.isViewSizeSet=true; +this.fireStateChanged$(); +}}}); + +Clazz_newMeth(C$, 'getViewPosition$', function () { +var view=this.getView$(); +if (view != null ) { +var p=view.getLocation$(); +p.x=-p.x; +p.y=-p.y; +return p; +} else { +return Clazz_new_($I$(3).c$$I$I,[0, 0]); +}}); + +Clazz_newMeth(C$, 'setViewPosition$java_awt_Point', function (p) { +var view=this.getView$(); +if (view == null ) { +return; +}var oldX; +var oldY; +var x=p.x; +var y=p.y; +if (Clazz_instanceOf(view, "javax.swing.JComponent")) { +var c=view; +oldX=c.getX$(); +oldY=c.getY$(); +} else { +var r=view.getBounds$(); +oldX=r.x; +oldY=r.y; +}var newX=-x; +var newY=-y; +if ((oldX != newX) || (oldY != newY) ) { +if (!this.waitingForRepaint && p$1.isBlitting.apply(this, []) && p$1.canUseWindowBlitter.apply(this, []) ) { +var rm=$I$(1).currentManager$javax_swing_JComponent(this); +var jview=view; +var dirty=rm.getDirtyRegion$javax_swing_JComponent(jview); +if (dirty == null || !dirty.contains$java_awt_Rectangle(jview.getVisibleRect$()) ) { +rm.beginPaint$(); +var g=$I$(6).safelyGetGraphics$java_awt_Component$java_awt_Component(this, $I$(7).getRoot$java_awt_Component(this)); +try { +p$1.flushViewDirtyRegion$java_awt_Graphics$java_awt_Rectangle.apply(this, [g, dirty]); +view.setLocation$I$I(newX, newY); +g.setClip$I$I$I$I(0, 0, this.getWidth$(), Math.min(this.getHeight$(), jview.getHeight$())); +this.repaintAll=(p$1.windowBlitPaint$java_awt_Graphics.apply(this, [g]) && p$1.needsRepaintAfterBlit.apply(this, []) ); +rm.markCompletelyClean$javax_swing_JComponent(this.getParent$()); +rm.markCompletelyClean$javax_swing_JComponent(this); +rm.markCompletelyClean$javax_swing_JComponent(jview); +} finally { +g.dispose$(); +rm.endPaint$(); +} +} else { +view.setLocation$I$I(newX, newY); +this.repaintAll=false; +}} else { +this.scrollUnderway=true; +view.setLocation$I$I(newX, newY); +this.repaintAll=false; +}this.fireStateChanged$(); +}}); + +Clazz_newMeth(C$, 'getViewRect$', function () { +return Clazz_new_($I$(5).c$$java_awt_Point$java_awt_Dimension,[this.getViewPosition$(), this.getExtentSize$()]); +}); + +Clazz_newMeth(C$, 'computeBlit$I$I$java_awt_Point$java_awt_Point$java_awt_Dimension$java_awt_Rectangle', function (dx, dy, blitFrom, blitTo, blitSize, blitPaint) { +{ +return false; +} +}); + +Clazz_newMeth(C$, 'getExtentSize$', function () { +return this.getSize$(); +}); + +Clazz_newMeth(C$, 'toViewCoordinates$java_awt_Dimension', function (size) { +return Clazz_new_($I$(4).c$$java_awt_Dimension,[size]); +}); + +Clazz_newMeth(C$, 'toViewCoordinates$java_awt_Point', function (p) { +return Clazz_new_($I$(3).c$$java_awt_Point,[p]); +}); + +Clazz_newMeth(C$, 'setExtentSize$java_awt_Dimension', function (newExtent) { +var oldExtent=this.getExtentSize$(); +if (!newExtent.equals$O(oldExtent)) { +this.setSize$java_awt_Dimension(newExtent); +this.fireStateChanged$(); +}}); + +Clazz_newMeth(C$, 'createViewListener$', function () { +return Clazz_new_($I$(8), [this, null]); +}); + +Clazz_newMeth(C$, 'createLayoutManager$', function () { +return $I$(9).SHARED_INSTANCE; +}); + +Clazz_newMeth(C$, 'addChangeListener$javax_swing_event_ChangeListener', function (l) { +this.listenerList.add$Class$TT(Clazz_getClass($I$(10),['stateChanged$javax_swing_event_ChangeEvent']), l); +}); + +Clazz_newMeth(C$, 'removeChangeListener$javax_swing_event_ChangeListener', function (l) { +this.listenerList.remove$Class$TT(Clazz_getClass($I$(10),['stateChanged$javax_swing_event_ChangeEvent']), l); +}); + +Clazz_newMeth(C$, 'getChangeListeners$', function () { +return this.listenerList.getListeners$Class(Clazz_getClass($I$(10),['stateChanged$javax_swing_event_ChangeEvent'])); +}); + +Clazz_newMeth(C$, 'fireStateChanged$', function () { +var listeners=this.listenerList.getListenerList$(); +for (var i=listeners.length - 2; i >= 0; i-=2) { +if (listeners[i] === Clazz_getClass($I$(10),['stateChanged$javax_swing_event_ChangeEvent']) ) { +if (this.changeEvent == null ) { +this.changeEvent=Clazz_new_($I$(11).c$$O,[this]); +}(listeners[i + 1]).stateChanged$(this.changeEvent); +}} +}); + +Clazz_newMeth(C$, 'repaint$J$I$I$I$I', function (tm, x, y, w, h) { +var parent=this.getParent$(); +if (parent != null ) parent.repaint$J$I$I$I$I(tm, x + this.getX$(), y + this.getY$(), w, h); + else C$.superclazz.prototype.repaint$J$I$I$I$I.apply(this, [tm, x, y, w, h]); +}); + +Clazz_newMeth(C$, 'paramString$', function () { +var isViewSizeSetString=(this.isViewSizeSet ? "true" : "false"); +var lastPaintPositionString=(this.lastPaintPosition != null ? this.lastPaintPosition.toString() : ""); +var scrollUnderwayString=(this.scrollUnderway ? "true" : "false"); +return C$.superclazz.prototype.paramString$.apply(this, []) + ",isViewSizeSet=" + isViewSizeSetString + ",lastPaintPosition=" + lastPaintPositionString + ",scrollUnderway=" + scrollUnderwayString ; +}); + +Clazz_newMeth(C$, 'firePropertyChange$S$O$O', function (propertyName, oldValue, newValue) { +C$.superclazz.prototype.firePropertyChange$S$O$O.apply(this, [propertyName, oldValue, newValue]); +if (propertyName.equals$O(C$.EnableWindowBlit)) { +if (newValue != null ) { +this.setScrollMode$I(1); +} else { +this.setScrollMode$I(0); +}}}); + +Clazz_newMeth(C$, 'needsRepaintAfterBlit', function () { +var heavyParent=this.getParent$(); +while (heavyParent != null && heavyParent.isLightweight$() ){ +heavyParent=heavyParent.getParent$(); +} +if (heavyParent != null ) { +}return true; +}, p$1); + +Clazz_newMeth(C$, 'flushViewDirtyRegion$java_awt_Graphics$java_awt_Rectangle', function (g, dirty) { +var view=this.getView$(); +if (dirty != null && dirty.width > 0 && dirty.height > 0 ) { +dirty.x+=view.getX$(); +dirty.y+=view.getY$(); +var clip=g.getClipBounds$(); +if (clip == null ) { +g.setClip$I$I$I$I(0, 0, this.getWidth$(), this.getHeight$()); +}g.clipRect$I$I$I$I(dirty.x, dirty.y, dirty.width, dirty.height); +clip=g.getClipBounds$(); +if (clip.width > 0 && clip.height > 0 ) { +p$1.paintView$java_awt_Graphics.apply(this, [g]); +}}}, p$1); + +Clazz_newMeth(C$, 'windowBlitPaint$java_awt_Graphics', function (g) { +var width=this.getWidth$(); +var height=this.getHeight$(); +if ((width == 0) || (height == 0) ) { +return false; +}var retValue; +var view=this.getView$(); +if (this.lastPaintPosition == null || this.lastPaintPosition.equals$O(p$1.getViewLocation.apply(this, [])) ) { +p$1.paintView$java_awt_Graphics.apply(this, [g]); +retValue=false; +} else { +var blitFrom=Clazz_new_($I$(3)); +var blitTo=Clazz_new_($I$(3)); +var blitSize=Clazz_new_($I$(4)); +var blitPaint=Clazz_new_($I$(5)); +var newLocation=p$1.getViewLocation.apply(this, []); +var dx=newLocation.x - this.lastPaintPosition.x; +var dy=newLocation.y - this.lastPaintPosition.y; +var canBlit=this.computeBlit$I$I$java_awt_Point$java_awt_Point$java_awt_Dimension$java_awt_Rectangle(dx, dy, blitFrom, blitTo, blitSize, blitPaint); +if (!canBlit) { +p$1.paintView$java_awt_Graphics.apply(this, [g]); +retValue=false; +} else { +var r=view.getBounds$().intersection$java_awt_Rectangle(blitPaint); +r.x-=view.getX$(); +r.y-=view.getY$(); +p$1.blitDoubleBuffered$javax_swing_JComponent$java_awt_Graphics$I$I$I$I$I$I$I$I$I$I.apply(this, [view, g, r.x, r.y, r.width, r.height, blitFrom.x, blitFrom.y, blitTo.x, blitTo.y, blitSize.width, blitSize.height]); +retValue=true; +}}this.lastPaintPosition=p$1.getViewLocation.apply(this, []); +return retValue; +}, p$1); + +Clazz_newMeth(C$, 'blitDoubleBuffered$javax_swing_JComponent$java_awt_Graphics$I$I$I$I$I$I$I$I$I$I', function (view, g, clipX, clipY, clipW, clipH, blitFromX, blitFromY, blitToX, blitToY, blitW, blitH) { +var x=view.getX$(); +var y=view.getY$(); +g.translate$I$I(x, y); +g.setClip$I$I$I$I(clipX, clipY, clipW, clipH); +view.paintForceDoubleBuffered$java_awt_Graphics(g); +g.translate$I$I(-x, -y); +}, p$1); + +Clazz_newMeth(C$, 'paintView$java_awt_Graphics', function (g) { +var clip=g.getClipBounds$(); +var view=this.getView$(); +if (view.getWidth$() >= this.getWidth$()) { +var x=view.getX$(); +var y=view.getY$(); +g.translate$I$I(x, y); +g.setClip$I$I$I$I(clip.x - x, clip.y - y, clip.width, clip.height); +view.paintForceDoubleBuffered$java_awt_Graphics(g); +g.translate$I$I(-x, -y); +g.setClip$I$I$I$I(clip.x, clip.y, clip.width, clip.height); +} else { +try { +this.inBlitPaint=true; +this.paintForceDoubleBuffered$java_awt_Graphics(g); +} finally { +this.inBlitPaint=false; +} +}}, p$1); + +Clazz_newMeth(C$, 'canUseWindowBlitter', function () { +if (!this.isShowing$() || (!(Clazz_instanceOf(this.getParent$(), "javax.swing.JComponent")) && !(Clazz_instanceOf(this.getView$(), "javax.swing.JComponent")) ) ) { +return false; +}if (this.isPainting$()) { +return false; +}var dirtyRegion=$I$(1).currentManager$javax_swing_JComponent(this).getDirtyRegion$javax_swing_JComponent(this.getParent$()); +if (dirtyRegion != null && dirtyRegion.width > 0 && dirtyRegion.height > 0 ) { +return false; +}var clip=Clazz_new_($I$(5).c$$I$I$I$I,[0, 0, this.getWidth$(), this.getHeight$()]); +var oldClip=Clazz_new_($I$(5)); +var tmp2=null; +var parent; +var lastParent=null; +var x; +var y; +var w; +var h; +for (parent=this; parent != null && P$.JComponent.isLightweightComponent$java_awt_Component(parent) ; parent=parent.getParent$()) { +x=parent.getX$(); +y=parent.getY$(); +w=parent.getWidth$(); +h=parent.getHeight$(); +oldClip.setBounds$java_awt_Rectangle(clip); +$I$(7).computeIntersection$I$I$I$I$java_awt_Rectangle(0, 0, w, h, clip); +if (!clip.equals$O(oldClip)) return false; +if (lastParent != null && Clazz_instanceOf(parent, "javax.swing.JComponent") && !(parent).isOptimizedDrawingEnabled$() ) { +var comps=$I$(12).秘getChildArray$java_awt_Container(parent); +var index=0; +for (var i=parent.getComponentCount$() - 1; i >= 0; i--) { +if (comps[i] === lastParent ) { +index=i - 1; +break; +}} +while (index >= 0){ +tmp2=comps[index].getBounds$java_awt_Rectangle(tmp2); +if (tmp2.intersects$java_awt_Rectangle(clip)) return false; +index--; +} +}clip.x+=x; +clip.y+=y; +lastParent=parent; +} +if (parent == null ) { +return false; +}return true; +}, p$1); +; +(function(){var C$=Clazz_newClass(P$.JViewport, "ViewListener", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, 'java.awt.event.ComponentAdapter'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'componentResized$java_awt_event_ComponentEvent', function (e) { +this.this$0.fireStateChanged$.apply(this.this$0, []); +this.b$['javax.swing.JComponent'].revalidate$.apply(this.b$['javax.swing.JComponent'], []); +}); + +Clazz_newMeth(C$); +})() +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:05 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing"),p$1={},I$=[[0,'java.util.Hashtable','java.util.Vector','Thread',['javax.swing.KeyboardManager','.ComponentKeyStrokePair'],'javax.swing.KeyStroke','javax.swing.JMenuBar','java.awt.JSComponent']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "KeyboardManager", function(){ +Clazz_newInstance(this, arguments,0,C$); +}); +C$.currentManager=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.currentManager=Clazz_new_(C$); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.containerMap=null; +this.componentKeyStrokeMap=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.containerMap=Clazz_new_($I$(1)); +this.componentKeyStrokeMap=Clazz_new_($I$(1)); +}, 1); + +Clazz_newMeth(C$, 'getCurrentManager$', function () { +return C$.currentManager; +}, 1); + +Clazz_newMeth(C$, 'setCurrentManager$javax_swing_KeyboardManager', function (km) { +C$.currentManager=km; +}, 1); + +Clazz_newMeth(C$, 'registerKeyStroke$javax_swing_KeyStroke$javax_swing_JComponent', function (k, c) { +var keyMap=p$1.getKeyMap$javax_swing_JComponent$javax_swing_KeyStroke.apply(this, [c, k]); +if (keyMap == null ) return; +var tmp=keyMap.get$O(k); +if (tmp == null ) { +keyMap.put$TK$TV(k, c); +} else if (Clazz_instanceOf(tmp, "java.util.Vector")) { +var v=tmp; +if (!v.contains$O(c)) { +v.addElement$TE(c); +}} else if (Clazz_instanceOf(tmp, "javax.swing.JComponent")) { +if (tmp !== c ) { +var v=Clazz_new_($I$(2)); +v.addElement$TE(tmp); +v.addElement$TE(c); +keyMap.put$TK$TV(k, v); +}} else { +System.out.println$S("Unexpected condition in registerKeyStroke"); +$I$(3).dumpStack$(); +}}); + +Clazz_newMeth(C$, 'unregisterKeyStroke$javax_swing_KeyStroke$javax_swing_JComponent', function (ks, c) { +var ckp=Clazz_new_($I$(4).c$$O$O, [this, null, c, ks]); +var topContainer=this.componentKeyStrokeMap.get$O(ckp); +if (topContainer == null ) { +return; +}var keyMap=this.containerMap.get$O(topContainer); +if (keyMap == null ) { +$I$(3).dumpStack$(); +return; +}var tmp=keyMap.get$O(ks); +if (tmp == null ) { +$I$(3).dumpStack$(); +return; +}if (Clazz_instanceOf(tmp, "javax.swing.JComponent") && tmp === c ) { +keyMap.remove$O(ks); +} else if (Clazz_instanceOf(tmp, "java.util.Vector")) { +var v=tmp; +v.removeElement$O(c); +if (v.isEmpty$()) { +keyMap.remove$O(ks); +}}if (keyMap.isEmpty$()) { +this.containerMap.remove$O(topContainer); +}this.componentKeyStrokeMap.remove$O(ckp); +}); + +Clazz_newMeth(C$, 'fireKeyboardAction$java_awt_event_KeyEvent$Z$java_awt_Container', function (e, pressed, topAncestor) { +if (e.isConsumed$()) { +System.out.println$S("Aquired pre-used event!"); +$I$(3).dumpStack$(); +}var ks; +if (e.getID$() == 400) { +ks=$I$(5).getKeyStroke$C(e.getKeyChar$()); +} else { +ks=$I$(5).getKeyStroke$I$I$Z(e.getKeyCode$(), e.getModifiers$(), !pressed); +}var keyMap=this.containerMap.get$O(topAncestor); +if (keyMap != null ) { +var tmp=keyMap.get$O(ks); +if (tmp == null ) { +} else if (Clazz_instanceOf(tmp, "javax.swing.JComponent")) { +var c=tmp; +if (c.isShowing$() && c.isEnabled$() ) { +this.fireBinding$javax_swing_JComponent$javax_swing_KeyStroke$java_awt_event_KeyEvent$Z(c, ks, e, pressed); +}} else if (Clazz_instanceOf(tmp, "java.util.Vector")) { +var v=tmp; +for (var counter=v.size$() - 1; counter >= 0; counter--) { +var c=v.elementAt$I(counter); +if (c.isShowing$() && c.isEnabled$() ) { +this.fireBinding$javax_swing_JComponent$javax_swing_KeyStroke$java_awt_event_KeyEvent$Z(c, ks, e, pressed); +if (e.isConsumed$()) return true; +}} +} else { +System.out.println$S("Unexpected condition in fireKeyboardAction " + tmp); +$I$(3).dumpStack$(); +}}if (e.isConsumed$()) { +return true; +}if (keyMap != null ) { +var v=keyMap.get$O(Clazz_getClass($I$(6))); +if (v != null ) { +var iter=v.elements$(); +while (iter.hasMoreElements$()){ +var mb=iter.nextElement$(); +if (mb.isShowing$() && mb.isEnabled$() ) { +this.fireBinding$javax_swing_JComponent$javax_swing_KeyStroke$java_awt_event_KeyEvent$Z(mb, ks, e, pressed); +if (e.isConsumed$()) { +return true; +}}} +}}return e.isConsumed$(); +}); + +Clazz_newMeth(C$, 'fireBinding$javax_swing_JComponent$javax_swing_KeyStroke$java_awt_event_KeyEvent$Z', function (c, ks, e, pressed) { +if (c.processKeyBinding$javax_swing_KeyStroke$java_awt_event_KeyEvent$I$Z(ks, e, 2, pressed)) { +e.consume$(); +}}); + +Clazz_newMeth(C$, 'registerMenuBar$javax_swing_JMenuBar', function (mb) { +var keyMap=p$1.getKeyMap$javax_swing_JComponent$javax_swing_KeyStroke.apply(this, [mb, null]); +if (keyMap == null ) return; +var menuBars=keyMap.get$O(Clazz_getClass($I$(6))); +if (menuBars == null ) { +menuBars=Clazz_new_($I$(2)); +keyMap.put$TK$TV(Clazz_getClass($I$(6)), menuBars); +}if (!menuBars.contains$O(mb)) { +menuBars.addElement$TE(mb); +}}); + +Clazz_newMeth(C$, 'getKeyMap$javax_swing_JComponent$javax_swing_KeyStroke', function (c, k) { +var top=$I$(7).秘getTopInvokableAncestor$java_awt_Component$Z(c, true); +if (top == null ) { +return null; +}var keyMap=this.containerMap.get$O(top); +if (keyMap == null ) { +keyMap=this.registerNewTopContainer$java_awt_Container(top); +}if (k != null ) this.componentKeyStrokeMap.put$TK$TV(Clazz_new_($I$(4).c$$O$O, [this, null, c, k]), top); +return keyMap; +}, p$1); + +Clazz_newMeth(C$, 'unregisterMenuBar$javax_swing_JMenuBar', function (mb) { +var top=$I$(7).秘getTopInvokableAncestor$java_awt_Component$Z(mb, true); +if (top == null ) { +return; +}var keyMap=this.containerMap.get$O(top); +if (keyMap != null ) { +var v=keyMap.get$O(Clazz_getClass($I$(6))); +if (v != null ) { +v.removeElement$O(mb); +if (v.isEmpty$()) { +keyMap.remove$O(Clazz_getClass($I$(6))); +if (keyMap.isEmpty$()) { +this.containerMap.remove$O(top); +}}}}}); + +Clazz_newMeth(C$, 'registerNewTopContainer$java_awt_Container', function (topContainer) { +var keyMap=Clazz_new_($I$(1)); +this.containerMap.put$TK$TV(topContainer, keyMap); +return keyMap; +}); +; +(function(){var C$=Clazz_newClass(P$.KeyboardManager, "ComponentKeyStrokePair", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.component=null; +this.keyStroke=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$O$O', function (comp, key) { +C$.$init$.apply(this); +this.component=comp; +this.keyStroke=key; +}, 1); + +Clazz_newMeth(C$, 'equals$O', function (o) { +if (!(Clazz_instanceOf(o, "javax.swing.KeyboardManager.ComponentKeyStrokePair"))) { +return false; +}var ckp=o; +return ((this.component.equals$O(ckp.component)) && (this.keyStroke.equals$O(ckp.keyStroke)) ); +}); + +Clazz_newMeth(C$, 'hashCode$', function () { +return this.component.hashCode$() * this.keyStroke.hashCode$(); +}); + +Clazz_newMeth(C$); +})() + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:06 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing"),I$=[]; +var C$=Clazz_newClass(P$, "KeyStroke", null, 'java.awt.AWTKeyStroke'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +Clazz_super_(C$, this,1); +}, 1); + +Clazz_newMeth(C$, 'c$$C$I$I$Z', function (keyChar, keyCode, modifiers, onKeyRelease) { +C$.superclazz.c$$C$I$I$Z.apply(this, [keyChar, keyCode, modifiers, onKeyRelease]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'getKeyStroke$C', function (keyChar) { +{ +java.awt.AWTKeyStroke.registerSubclass$Class(Clazz_getClass(C$)); +return java.awt.AWTKeyStroke.getAWTKeyStroke$C(keyChar); +}}, 1); + +Clazz_newMeth(C$, 'getKeyStroke$C$Z', function (keyChar, onKeyRelease) { +return Clazz_new_(C$.c$$C$I$I$Z,[keyChar, 0, 0, onKeyRelease]); +}, 1); + +Clazz_newMeth(C$, 'getKeyStroke$Character$I', function (keyChar, modifiers) { +{ +java.awt.AWTKeyStroke.registerSubclass$Class(Clazz_getClass(C$)); +return java.awt.AWTKeyStroke.getAWTKeyStroke$Character$I(keyChar, modifiers); +}}, 1); + +Clazz_newMeth(C$, 'getKeyStroke$I$I$Z', function (keyCode, modifiers, onKeyRelease) { +{ +java.awt.AWTKeyStroke.registerSubclass$Class(Clazz_getClass(C$)); +return java.awt.AWTKeyStroke.getAWTKeyStroke$I$I$Z(keyCode, modifiers, onKeyRelease); +}}, 1); + +Clazz_newMeth(C$, 'getKeyStroke$I$I', function (keyCode, modifiers) { +{ +java.awt.AWTKeyStroke.registerSubclass$Class(Clazz_getClass(C$)); +return java.awt.AWTKeyStroke.getAWTKeyStroke$I$I(keyCode, modifiers); +}}, 1); + +Clazz_newMeth(C$, 'getKeyStrokeForEvent$java_awt_event_KeyEvent', function (anEvent) { +{ +java.awt.AWTKeyStroke.registerSubclass$Class(Clazz_getClass(C$)); +return java.awt.AWTKeyStroke.getAWTKeyStrokeForEvent$java_awt_event_KeyEvent(anEvent); +}}, 1); + +Clazz_newMeth(C$, 'getKeyStroke$S', function (s) { +if (s == null || s.length$() == 0 ) { +return null; +}{ +java.awt.AWTKeyStroke.registerSubclass$Class(Clazz_getClass(C$)); +try { +return java.awt.AWTKeyStroke.getAWTKeyStroke$S(s); +} catch (e) { +if (Clazz_exceptionOf(e,"IllegalArgumentException")){ +return null; +} else { +throw e; +} +} +}}, 1); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:06 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing"),I$=[]; +var C$=Clazz_newInterface(P$, "ListModel"); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:06 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing"),I$=[[0,'javax.swing.UIManager','swingjs.JSUtil','javax.swing.plaf.InputMapUIResource','javax.swing.plaf.ComponentInputMapUIResource','javax.swing.KeyStroke','sun.swing.DefaultLayoutStyle']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "LookAndFeel"); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'installColors$javax_swing_JComponent$S$S', function (c, defaultBgName, defaultFgName) { +var bg=c.getBackground$(); +if (bg == null || Clazz_instanceOf(bg, "javax.swing.plaf.UIResource") ) c.setBackground$java_awt_Color($I$(1).getColor$O(defaultBgName)); +var fg=c.getForeground$(); +if (fg == null || Clazz_instanceOf(fg, "javax.swing.plaf.UIResource") ) c.setForeground$java_awt_Color($I$(1).getColor$O(defaultFgName)); +}, 1); + +Clazz_newMeth(C$, 'installColorsAndFont$javax_swing_JComponent$S$S$S', function (c, defaultBgName, defaultFgName, defaultFontName) { +if (c.isAWT ||c.秘isAWT$()) return; +var f=c.getFont$(); +if (f == null || Clazz_instanceOf(f, "javax.swing.plaf.UIResource") ) { +c.setFont$java_awt_Font($I$(1).getFont$O(defaultFontName)); +}if (defaultBgName != null ) C$.installColors$javax_swing_JComponent$S$S(c, defaultBgName, defaultFgName); +}, 1); + +Clazz_newMeth(C$, 'installBorder$javax_swing_JComponent$S', function (c, defaultBorderName) { +var b=c.getBorder$(); +if (b == null || Clazz_instanceOf(b, "javax.swing.plaf.UIResource") ) { +c.setBorder$javax_swing_border_Border($I$(1).getBorder$O(defaultBorderName)); +}}, 1); + +Clazz_newMeth(C$, 'uninstallBorder$javax_swing_JComponent', function (c) { +if (Clazz_instanceOf(c.getBorder$(), "javax.swing.plaf.UIResource")) { +c.setBorder$javax_swing_border_Border(null); +}}, 1); + +Clazz_newMeth(C$, 'installProperty$javax_swing_JComponent$S$O', function (c, propertyName, propertyValue) { +if (Clazz_instanceOf(c, "javax.swing.JPasswordField")) { +if (!(c).customSetUIProperty$S$O(propertyName, propertyValue)) { +c.setUIProperty$S$O(propertyName, propertyValue); +}} else { +c.setUIProperty$S$O(propertyName, propertyValue); +}}, 1); + +Clazz_newMeth(C$, 'makeKeyBindings$OA', function (keyBindingList) { +$I$(2).notImplemented$S(null); +return null; +}, 1); + +Clazz_newMeth(C$, 'makeInputMap$OA', function (keys) { +var retMap=Clazz_new_($I$(3)); +C$.loadKeyBindings$javax_swing_InputMap$OA(retMap, keys); +return retMap; +}, 1); + +Clazz_newMeth(C$, 'makeComponentInputMap$javax_swing_JComponent$OA', function (c, keys) { +var retMap=Clazz_new_($I$(4).c$$javax_swing_JComponent,[c]); +C$.loadKeyBindings$javax_swing_InputMap$OA(retMap, keys); +return retMap; +}, 1); + +Clazz_newMeth(C$, 'loadKeyBindings$javax_swing_InputMap$OA', function (retMap, keys) { +if (keys != null ) { +for (var counter=0, maxCounter=keys.length; counter < maxCounter; counter++) { +var keyStrokeO=keys[counter++]; +var ks=(Clazz_instanceOf(keyStrokeO, "javax.swing.KeyStroke")) ? keyStrokeO : $I$(5).getKeyStroke$S(keyStrokeO); +retMap.put$javax_swing_KeyStroke$O(ks, keys[counter]); +} +}}, 1); + +Clazz_newMeth(C$, 'makeIcon$Class$S', function (baseClass, gifFile) { +$I$(2).notImplemented$S(null); +return null; +}, 1); + +Clazz_newMeth(C$, 'getLayoutStyle$', function () { +return $I$(6).getInstance$(); +}); + +Clazz_newMeth(C$, 'provideErrorFeedback$java_awt_Component', function (component) { +$I$(2).notImplemented$S(null); +}); + +Clazz_newMeth(C$, 'getDesktopPropertyValue$S$O', function (systemPropertyName, fallbackValue) { +$I$(2).notImplemented$S(null); +return fallbackValue; +}, 1); + +Clazz_newMeth(C$, 'getDisabledIcon$javax_swing_JComponent$javax_swing_Icon', function (component, icon) { +$I$(2).notImplemented$S(null); +return null; +}); + +Clazz_newMeth(C$, 'getDisabledSelectedIcon$javax_swing_JComponent$javax_swing_Icon', function (component, icon) { +return this.getDisabledIcon$javax_swing_JComponent$javax_swing_Icon(component, icon); +}); + +Clazz_newMeth(C$, 'getSupportsWindowDecorations$', function () { +return false; +}); + +Clazz_newMeth(C$, 'initialize$', function () { +}); + +Clazz_newMeth(C$, 'uninitialize$', function () { +}); + +Clazz_newMeth(C$, 'getDefaults$', function () { +return null; +}); + +Clazz_newMeth(C$, 'toString', function () { +return "[" + this.getDescription$() + " - " + this.getClass$().getName$() + "]" ; +}); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:06 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing"),I$=[]; +var C$=Clazz_newInterface(P$, "MenuElement"); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:06 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing"),I$=[]; +var C$=Clazz_newInterface(P$, "MutableComboBoxModel", null, null, 'javax.swing.ComboBoxModel'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:06 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing.plaf"),I$=[]; +var C$=Clazz_newClass(P$, "ActionMapUIResource", null, 'javax.swing.ActionMap', 'javax.swing.plaf.UIResource'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +Clazz_super_(C$, this,1); +}, 1); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:11 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing.plaf.basic"),I$=[[0,'java.awt.Insets','javax.swing.plaf.basic.BasicGraphicsUtils','javax.swing.UIManager',['javax.swing.plaf.BorderUIResource','.CompoundBorderUIResource'],['javax.swing.plaf.basic.BasicBorders','.ButtonBorder'],['javax.swing.plaf.basic.BasicBorders','.MarginBorder'],['javax.swing.plaf.basic.BasicBorders','.RadioButtonBorder'],['javax.swing.plaf.basic.BasicBorders','.ToggleButtonBorder'],['javax.swing.plaf.basic.BasicBorders','.MenuBarBorder'],['javax.swing.plaf.basic.BasicBorders','.SplitPaneBorder'],['javax.swing.plaf.basic.BasicBorders','.FieldBorder'],['javax.swing.plaf.BorderUIResource','.LineBorderUIResource'],'java.awt.Color','javax.swing.border.BevelBorder','javax.swing.BorderFactory']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "BasicBorders", function(){ +Clazz_newInstance(this, arguments,0,C$); +}); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'getButtonBorder$', function () { +var table=$I$(3).getLookAndFeelDefaults$(); +var buttonBorder=Clazz_new_($I$(4).c$$javax_swing_border_Border$javax_swing_border_Border,[Clazz_new_($I$(5).c$$java_awt_Color$java_awt_Color$java_awt_Color$java_awt_Color,[table.getColor$O("Button.shadow"), table.getColor$O("Button.darkShadow"), table.getColor$O("Button.light"), table.getColor$O("Button.highlight")]), Clazz_new_($I$(6))]); +return buttonBorder; +}, 1); + +Clazz_newMeth(C$, 'getRadioButtonBorder$', function () { +var table=$I$(3).getLookAndFeelDefaults$(); +var radioButtonBorder=Clazz_new_($I$(4).c$$javax_swing_border_Border$javax_swing_border_Border,[Clazz_new_($I$(7).c$$java_awt_Color$java_awt_Color$java_awt_Color$java_awt_Color,[table.getColor$O("RadioButton.shadow"), table.getColor$O("RadioButton.darkShadow"), table.getColor$O("RadioButton.light"), table.getColor$O("RadioButton.highlight")]), Clazz_new_($I$(6))]); +return radioButtonBorder; +}, 1); + +Clazz_newMeth(C$, 'getToggleButtonBorder$', function () { +var table=$I$(3).getLookAndFeelDefaults$(); +var toggleButtonBorder=Clazz_new_($I$(4).c$$javax_swing_border_Border$javax_swing_border_Border,[Clazz_new_($I$(8).c$$java_awt_Color$java_awt_Color$java_awt_Color$java_awt_Color,[table.getColor$O("ToggleButton.shadow"), table.getColor$O("ToggleButton.darkShadow"), table.getColor$O("ToggleButton.light"), table.getColor$O("ToggleButton.highlight")]), Clazz_new_($I$(6))]); +return toggleButtonBorder; +}, 1); + +Clazz_newMeth(C$, 'getMenuBarBorder$', function () { +var table=$I$(3).getLookAndFeelDefaults$(); +var menuBarBorder=Clazz_new_($I$(9).c$$java_awt_Color$java_awt_Color,[table.getColor$O("MenuBar.shadow"), table.getColor$O("MenuBar.highlight")]); +return menuBarBorder; +}, 1); + +Clazz_newMeth(C$, 'getSplitPaneBorder$', function () { +var table=$I$(3).getLookAndFeelDefaults$(); +var splitPaneBorder=Clazz_new_($I$(10).c$$java_awt_Color$java_awt_Color,[table.getColor$O("SplitPane.highlight"), table.getColor$O("SplitPane.darkShadow")]); +return splitPaneBorder; +}, 1); + +Clazz_newMeth(C$, 'getTextFieldBorder$', function () { +var table=$I$(3).getLookAndFeelDefaults$(); +var textFieldBorder=Clazz_new_($I$(11).c$$java_awt_Color$java_awt_Color$java_awt_Color$java_awt_Color,[table.getColor$O("TextField.shadow"), table.getColor$O("TextField.darkShadow"), table.getColor$O("TextField.light"), table.getColor$O("TextField.highlight")]); +return textFieldBorder; +}, 1); + +Clazz_newMeth(C$, 'getProgressBarBorder$', function () { +var progressBarBorder=Clazz_new_($I$(12).c$$java_awt_Color$I,[$I$(13).green, 2]); +return progressBarBorder; +}, 1); + +Clazz_newMeth(C$, 'getInternalFrameBorder$', function () { +var table=$I$(3).getLookAndFeelDefaults$(); +var internalFrameBorder=Clazz_new_($I$(4).c$$javax_swing_border_Border$javax_swing_border_Border,[Clazz_new_($I$(14).c$$I$java_awt_Color$java_awt_Color$java_awt_Color$java_awt_Color,[0, table.getColor$O("InternalFrame.borderLight"), table.getColor$O("InternalFrame.borderHighlight"), table.getColor$O("InternalFrame.borderDarkShadow"), table.getColor$O("InternalFrame.borderShadow")]), $I$(15).createLineBorder$java_awt_Color$I(table.getColor$O("InternalFrame.borderColor"), 1)]); +return internalFrameBorder; +}, 1); +; +(function(){var C$=Clazz_newClass(P$.BasicBorders, "RolloverButtonBorder", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, ['javax.swing.plaf.basic.BasicBorders','.ButtonBorder']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Color$java_awt_Color$java_awt_Color$java_awt_Color', function (shadow, darkShadow, highlight, lightHighlight) { +C$.superclazz.c$$java_awt_Color$java_awt_Color$java_awt_Color$java_awt_Color.apply(this, [shadow, darkShadow, highlight, lightHighlight]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'paintBorder$java_awt_Component$java_awt_Graphics$I$I$I$I', function (c, g, x, y, w, h) { +var b=c; +var model=b.getModel$(); +var shade=this.shadow; +var p=b.getParent$(); +if (p != null && p.getBackground$().equals$O(this.shadow) ) { +shade=this.darkShadow; +}if ((model.isRollover$() && !(model.isPressed$() && !model.isArmed$() ) ) || model.isSelected$() ) { +var oldColor=g.getColor$(); +g.translate$I$I(x, y); +if (model.isPressed$() && model.isArmed$() || model.isSelected$() ) { +g.setColor$java_awt_Color(shade); +g.drawRect$I$I$I$I(0, 0, w - 1, h - 1); +g.setColor$java_awt_Color(this.lightHighlight); +g.drawLine$I$I$I$I(w - 1, 0, w - 1, h - 1); +g.drawLine$I$I$I$I(0, h - 1, w - 1, h - 1); +} else { +g.setColor$java_awt_Color(this.lightHighlight); +g.drawRect$I$I$I$I(0, 0, w - 1, h - 1); +g.setColor$java_awt_Color(shade); +g.drawLine$I$I$I$I(w - 1, 0, w - 1, h - 1); +g.drawLine$I$I$I$I(0, h - 1, w - 1, h - 1); +}g.translate$I$I(-x, -y); +g.setColor$java_awt_Color(oldColor); +}}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.BasicBorders, "RolloverMarginBorder", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'javax.swing.border.EmptyBorder'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.superclazz.c$$I$I$I$I.apply(this, [3, 3, 3, 3]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'getBorderInsets$java_awt_Component', function (c) { +return this.getBorderInsets$java_awt_Component$java_awt_Insets(c, Clazz_new_($I$(1).c$$I$I$I$I,[0, 0, 0, 0])); +}); + +Clazz_newMeth(C$, 'getBorderInsets$java_awt_Component$java_awt_Insets', function (c, insets) { +var margin=null; +if (Clazz_instanceOf(c, "javax.swing.AbstractButton")) { +margin=(c).getMargin$(); +}if (margin == null || Clazz_instanceOf(margin, "javax.swing.plaf.UIResource") ) { +insets.left=this.left; +insets.top=this.top; +insets.right=this.right; +insets.bottom=this.bottom; +} else { +insets.left=margin.left; +insets.top=margin.top; +insets.right=margin.right; +insets.bottom=margin.bottom; +}return insets; +}); +})() +; +(function(){var C$=Clazz_newClass(P$.BasicBorders, "ButtonBorder", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'javax.swing.border.EmptyBorder', 'javax.swing.plaf.UIResource'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.shadow=null; +this.darkShadow=null; +this.highlight=null; +this.lightHighlight=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'noPaint$', function () { +}); + +Clazz_newMeth(C$, 'c$$java_awt_Color$java_awt_Color$java_awt_Color$java_awt_Color', function (shadow, darkShadow, highlight, lightHighlight) { +C$.superclazz.c$$I$I$I$I.apply(this, [1, 1, 1, 1]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.BasicBorders, "ToggleButtonBorder", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, ['javax.swing.plaf.basic.BasicBorders','.ButtonBorder']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Color$java_awt_Color$java_awt_Color$java_awt_Color', function (shadow, darkShadow, highlight, lightHighlight) { +C$.superclazz.c$$java_awt_Color$java_awt_Color$java_awt_Color$java_awt_Color.apply(this, [shadow, darkShadow, highlight, lightHighlight]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.BasicBorders, "RadioButtonBorder", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, ['javax.swing.plaf.basic.BasicBorders','.ButtonBorder']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Color$java_awt_Color$java_awt_Color$java_awt_Color', function (shadow, darkShadow, highlight, lightHighlight) { +C$.superclazz.c$$java_awt_Color$java_awt_Color$java_awt_Color$java_awt_Color.apply(this, [shadow, darkShadow, highlight, lightHighlight]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.BasicBorders, "MenuBarBorder", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'javax.swing.border.AbstractBorder', 'javax.swing.plaf.UIResource'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.shadow=null; +this.highlight=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Color$java_awt_Color', function (shadow, highlight) { +Clazz_super_(C$, this,1); +this.shadow=shadow; +this.highlight=highlight; +}, 1); + +Clazz_newMeth(C$, 'paintBorder$java_awt_Component$java_awt_Graphics$I$I$I$I', function (c, g, x, y, width, height) { +var oldColor=g.getColor$(); +g.translate$I$I(x, y); +g.setColor$java_awt_Color(this.shadow); +g.drawLine$I$I$I$I(0, height - 2, width, height - 2); +g.setColor$java_awt_Color(this.highlight); +g.drawLine$I$I$I$I(0, height - 1, width, height - 1); +g.translate$I$I(-x, -y); +g.setColor$java_awt_Color(oldColor); +}); + +Clazz_newMeth(C$, 'getBorderInsets$java_awt_Component', function (c) { +return this.getBorderInsets$java_awt_Component$java_awt_Insets(c, Clazz_new_($I$(1).c$$I$I$I$I,[0, 0, 0, 0])); +}); + +Clazz_newMeth(C$, 'getBorderInsets$java_awt_Component$java_awt_Insets', function (c, insets) { +insets.top=0; +insets.left=0; +insets.bottom=2; +insets.right=0; +return insets; +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.BasicBorders, "MarginBorder", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'javax.swing.border.AbstractBorder', 'javax.swing.plaf.UIResource'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'getBorderInsets$java_awt_Component', function (c) { +return this.getBorderInsets$java_awt_Component$java_awt_Insets(c, Clazz_new_($I$(1).c$$I$I$I$I,[0, 0, 0, 0])); +}); + +Clazz_newMeth(C$, 'getBorderInsets$java_awt_Component$java_awt_Insets', function (c, insets) { +var margin=null; +if (Clazz_instanceOf(c, "javax.swing.AbstractButton")) { +var b=c; +margin=b.getMargin$(); +} else if (Clazz_instanceOf(c, "javax.swing.JToolBar")) { +var t=c; +margin=t.getMargin$(); +} else if (Clazz_instanceOf(c, "javax.swing.text.JTextComponent")) { +var t=c; +margin=t.getMargin$(); +}insets.top=margin != null ? margin.top : 0; +insets.left=margin != null ? margin.left : 0; +insets.bottom=margin != null ? margin.bottom : 0; +insets.right=margin != null ? margin.right : 0; +return insets; +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.BasicBorders, "FieldBorder", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'javax.swing.border.AbstractBorder', 'javax.swing.plaf.UIResource'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.shadow=null; +this.darkShadow=null; +this.highlight=null; +this.lightHighlight=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Color$java_awt_Color$java_awt_Color$java_awt_Color', function (shadow, darkShadow, highlight, lightHighlight) { +Clazz_super_(C$, this,1); +this.shadow=shadow; +this.highlight=highlight; +this.darkShadow=darkShadow; +this.lightHighlight=lightHighlight; +}, 1); + +Clazz_newMeth(C$, 'paintBorder$java_awt_Component$java_awt_Graphics$I$I$I$I', function (c, g, x, y, width, height) { +$I$(2).drawEtchedRect$java_awt_Graphics$I$I$I$I$java_awt_Color$java_awt_Color$java_awt_Color$java_awt_Color(g, x, y, width, height, this.shadow, this.darkShadow, this.highlight, this.lightHighlight); +}); + +Clazz_newMeth(C$, 'getBorderInsets$java_awt_Component', function (c) { +return this.getBorderInsets$java_awt_Component$java_awt_Insets(c, Clazz_new_($I$(1).c$$I$I$I$I,[0, 0, 0, 0])); +}); + +Clazz_newMeth(C$, 'getBorderInsets$java_awt_Component$java_awt_Insets', function (c, insets) { +var margin=null; +if (Clazz_instanceOf(c, "javax.swing.text.JTextComponent")) { +margin=(c).getMargin$(); +}insets.top=margin != null ? 2 + margin.top : 2; +insets.left=margin != null ? 2 + margin.left : 2; +insets.bottom=margin != null ? 2 + margin.bottom : 2; +insets.right=margin != null ? 2 + margin.right : 2; +return insets; +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.BasicBorders, "SplitPaneBorder", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, null, ['javax.swing.border.Border', 'javax.swing.plaf.UIResource']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.highlight=null; +this.shadow=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Color$java_awt_Color', function (highlight, shadow) { +C$.$init$.apply(this); +this.highlight=highlight; +this.shadow=shadow; +}, 1); + +Clazz_newMeth(C$, 'paintBorder$java_awt_Component$java_awt_Graphics$I$I$I$I', function (c, g, x, y, width, height) { +var child; +var cBounds; +var splitPane=c; +child=splitPane.getLeftComponent$(); +g.setColor$java_awt_Color(c.getBackground$()); +g.drawRect$I$I$I$I(x, y, width - 1, height - 1); +if (splitPane.getOrientation$() == 1) { +if (child != null ) { +cBounds=child.getBounds$(); +g.setColor$java_awt_Color(this.shadow); +g.drawLine$I$I$I$I(0, 0, cBounds.width + 1, 0); +g.drawLine$I$I$I$I(0, 1, 0, cBounds.height + 1); +g.setColor$java_awt_Color(this.highlight); +g.drawLine$I$I$I$I(0, cBounds.height + 1, cBounds.width + 1, cBounds.height + 1); +}child=splitPane.getRightComponent$(); +if (child != null ) { +cBounds=child.getBounds$(); +var maxX=cBounds.x + cBounds.width; +var maxY=cBounds.y + cBounds.height; +g.setColor$java_awt_Color(this.shadow); +g.drawLine$I$I$I$I(cBounds.x - 1, 0, maxX, 0); +g.setColor$java_awt_Color(this.highlight); +g.drawLine$I$I$I$I(cBounds.x - 1, maxY, maxX, maxY); +g.drawLine$I$I$I$I(maxX, 0, maxX, maxY + 1); +}} else { +if (child != null ) { +cBounds=child.getBounds$(); +g.setColor$java_awt_Color(this.shadow); +g.drawLine$I$I$I$I(0, 0, cBounds.width + 1, 0); +g.drawLine$I$I$I$I(0, 1, 0, cBounds.height); +g.setColor$java_awt_Color(this.highlight); +g.drawLine$I$I$I$I(1 + cBounds.width, 0, 1 + cBounds.width, cBounds.height + 1); +g.drawLine$I$I$I$I(0, cBounds.height + 1, 0, cBounds.height + 1); +}child=splitPane.getRightComponent$(); +if (child != null ) { +cBounds=child.getBounds$(); +var maxX=cBounds.x + cBounds.width; +var maxY=cBounds.y + cBounds.height; +g.setColor$java_awt_Color(this.shadow); +g.drawLine$I$I$I$I(0, cBounds.y - 1, 0, maxY); +g.drawLine$I$I$I$I(maxX, cBounds.y - 1, maxX, cBounds.y - 1); +g.setColor$java_awt_Color(this.highlight); +g.drawLine$I$I$I$I(0, maxY, cBounds.width + 1, maxY); +g.drawLine$I$I$I$I(maxX, cBounds.y, maxX, maxY); +}}}); + +Clazz_newMeth(C$, 'getBorderInsets$java_awt_Component', function (c) { +return Clazz_new_($I$(1).c$$I$I$I$I,[1, 1, 1, 1]); +}); + +Clazz_newMeth(C$, 'isBorderOpaque$', function () { +return true; +}); + +Clazz_newMeth(C$); +})() + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:13 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing.plaf"),I$=[[0,'javax.swing.border.CompoundBorder',['javax.swing.plaf.BorderUIResource','.EtchedBorderUIResource'],['javax.swing.plaf.BorderUIResource','.BevelBorderUIResource'],['javax.swing.plaf.BorderUIResource','.LineBorderUIResource'],'java.awt.Color']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "BorderUIResource", function(){ +Clazz_newInstance(this, arguments,0,C$); +}, null, ['javax.swing.border.Border', 'javax.swing.plaf.UIResource']); +C$.etched=null; +C$.loweredBevel=null; +C$.raisedBevel=null; +C$.blackLine=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.delegate=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'getEtchedBorderUIResource$', function () { +if (C$.etched == null ) { +C$.etched=Clazz_new_($I$(2)); +}return C$.etched; +}, 1); + +Clazz_newMeth(C$, 'getLoweredBevelBorderUIResource$', function () { +if (C$.loweredBevel == null ) { +C$.loweredBevel=Clazz_new_($I$(3).c$$I,[1]); +}return C$.loweredBevel; +}, 1); + +Clazz_newMeth(C$, 'getRaisedBevelBorderUIResource$', function () { +if (C$.raisedBevel == null ) { +C$.raisedBevel=Clazz_new_($I$(3).c$$I,[0]); +}return C$.raisedBevel; +}, 1); + +Clazz_newMeth(C$, 'getBlackLineBorderUIResource$', function () { +if (C$.blackLine == null ) { +C$.blackLine=Clazz_new_($I$(4).c$$java_awt_Color,[$I$(5).black]); +}return C$.blackLine; +}, 1); + +Clazz_newMeth(C$, 'c$$javax_swing_border_Border', function (delegate) { +C$.$init$.apply(this); +if (delegate == null ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["null border delegate argument"]); +}this.delegate=delegate; +}, 1); + +Clazz_newMeth(C$, 'paintBorder$java_awt_Component$java_awt_Graphics$I$I$I$I', function (c, g, x, y, width, height) { +this.delegate.paintBorder$java_awt_Component$java_awt_Graphics$I$I$I$I(c, g, x, y, width, height); +}); + +Clazz_newMeth(C$, 'getBorderInsets$java_awt_Component', function (c) { +return this.delegate.getBorderInsets$java_awt_Component(c); +}); + +Clazz_newMeth(C$, 'isBorderOpaque$', function () { +return this.delegate.isBorderOpaque$(); +}); +; +(function(){var C$=Clazz_newClass(P$.BorderUIResource, "CompoundBorderUIResource", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'javax.swing.border.CompoundBorder', 'javax.swing.plaf.UIResource'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$javax_swing_border_Border$javax_swing_border_Border', function (outsideBorder, insideBorder) { +C$.superclazz.c$$javax_swing_border_Border$javax_swing_border_Border.apply(this, [outsideBorder, insideBorder]); +C$.$init$.apply(this); +this.秘paintClass=Clazz_getClass($I$(1)); +}, 1); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.BorderUIResource, "EmptyBorderUIResource", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'javax.swing.border.EmptyBorder', 'javax.swing.plaf.UIResource'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$I$I$I$I', function (top, left, bottom, right) { +C$.superclazz.c$$I$I$I$I.apply(this, [top, left, bottom, right]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Insets', function (insets) { +C$.superclazz.c$$java_awt_Insets.apply(this, [insets]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.BorderUIResource, "LineBorderUIResource", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'javax.swing.border.LineBorder', 'javax.swing.plaf.UIResource'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Color', function (color) { +C$.superclazz.c$$java_awt_Color.apply(this, [color]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Color$I', function (color, thickness) { +C$.superclazz.c$$java_awt_Color$I.apply(this, [color, thickness]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.BorderUIResource, "BevelBorderUIResource", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'javax.swing.border.BevelBorder', 'javax.swing.plaf.UIResource'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$I', function (bevelType) { +C$.superclazz.c$$I.apply(this, [bevelType]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'c$$I$java_awt_Color$java_awt_Color', function (bevelType, highlight, shadow) { +C$.superclazz.c$$I$java_awt_Color$java_awt_Color.apply(this, [bevelType, highlight, shadow]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'c$$I$java_awt_Color$java_awt_Color$java_awt_Color$java_awt_Color', function (bevelType, highlightOuter, highlightInner, shadowOuter, shadowInner) { +C$.superclazz.c$$I$java_awt_Color$java_awt_Color$java_awt_Color$java_awt_Color.apply(this, [bevelType, highlightOuter, highlightInner, shadowOuter, shadowInner]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.BorderUIResource, "EtchedBorderUIResource", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'javax.swing.border.EtchedBorder', 'javax.swing.plaf.UIResource'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.superclazz.c$.apply(this, []); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'c$$I', function (etchType) { +C$.superclazz.c$$I.apply(this, [etchType]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Color$java_awt_Color', function (highlight, shadow) { +C$.superclazz.c$$java_awt_Color$java_awt_Color.apply(this, [highlight, shadow]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'c$$I$java_awt_Color$java_awt_Color', function (etchType, highlight, shadow) { +C$.superclazz.c$$I$java_awt_Color$java_awt_Color.apply(this, [etchType, highlight, shadow]); +C$.$init$.apply(this); +}, 1); +})() +; +(function(){var C$=Clazz_newClass(P$.BorderUIResource, "MatteBorderUIResource", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'javax.swing.border.MatteBorder', 'javax.swing.plaf.UIResource'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$I$I$I$I$java_awt_Color', function (top, left, bottom, right, color) { +C$.superclazz.c$$I$I$I$I$java_awt_Color.apply(this, [top, left, bottom, right, color]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'c$$I$I$I$I$javax_swing_Icon', function (top, left, bottom, right, tileIcon) { +C$.superclazz.c$$I$I$I$I$javax_swing_Icon.apply(this, [top, left, bottom, right, tileIcon]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'c$$javax_swing_Icon', function (tileIcon) { +C$.superclazz.c$$javax_swing_Icon.apply(this, [tileIcon]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.BorderUIResource, "TitledBorderUIResource", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'javax.swing.border.TitledBorder', 'javax.swing.plaf.UIResource'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$S', function (title) { +C$.superclazz.c$$S.apply(this, [title]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'c$$javax_swing_border_Border', function (border) { +C$.superclazz.c$$javax_swing_border_Border.apply(this, [border]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'c$$javax_swing_border_Border$S', function (border, title) { +C$.superclazz.c$$javax_swing_border_Border$S.apply(this, [border, title]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'c$$javax_swing_border_Border$S$I$I', function (border, title, titleJustification, titlePosition) { +C$.superclazz.c$$javax_swing_border_Border$S$I$I.apply(this, [border, title, titleJustification, titlePosition]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'c$$javax_swing_border_Border$S$I$I$java_awt_Font', function (border, title, titleJustification, titlePosition, titleFont) { +C$.superclazz.c$$javax_swing_border_Border$S$I$I$java_awt_Font.apply(this, [border, title, titleJustification, titlePosition, titleFont]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'c$$javax_swing_border_Border$S$I$I$java_awt_Font$java_awt_Color', function (border, title, titleJustification, titlePosition, titleFont, titleColor) { +C$.superclazz.c$$javax_swing_border_Border$S$I$I$java_awt_Font$java_awt_Color.apply(this, [border, title, titleJustification, titlePosition, titleFont, titleColor]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$); +})() + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:11 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing.plaf"),I$=[]; +var C$=Clazz_newClass(P$, "ColorUIResource", null, 'java.awt.Color', 'javax.swing.plaf.UIResource'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.superclazz.c$.apply(this, []); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'c$$I$I$I', function (r, g, b) { +C$.superclazz.c$$I$I$I.apply(this, [r, g, b]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'c$$I', function (rgb) { +C$.superclazz.c$$I.apply(this, [rgb]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'c$$F$F$F', function (r, g, b) { +C$.superclazz.c$$F$F$F.apply(this, [r, g, b]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Color', function (c) { +C$.superclazz.c$$I$Z.apply(this, [c.getRGB$(), (c.getRGB$() & -16777216) != -16777216]); +C$.$init$.apply(this); +}, 1); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:11 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing.plaf"),I$=[[0,'Error',['java.awt.Component','.BaselineResizeBehavior']]],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "ComponentUI", null, null, 'java.awt.peer.ComponentPeer'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'installUI$javax_swing_JComponent', function (component) { +}); + +Clazz_newMeth(C$, 'uninstallUI$javax_swing_JComponent', function (c) { +}); + +Clazz_newMeth(C$, 'paint$java_awt_Graphics$javax_swing_JComponent', function (g, c) { +}); + +Clazz_newMeth(C$, 'update$java_awt_Graphics$javax_swing_JComponent', function (g, c) { +}); + +Clazz_newMeth(C$, 'getPreferredSize$javax_swing_JComponent', function (c) { +return null; +}); + +Clazz_newMeth(C$, 'getMinimumSize$javax_swing_JComponent', function (c) { +return this.getPreferredSize$javax_swing_JComponent(c); +}); + +Clazz_newMeth(C$, 'getMaximumSize$javax_swing_JComponent', function (c) { +return this.getPreferredSize$javax_swing_JComponent(c); +}); + +Clazz_newMeth(C$, 'contains$javax_swing_JComponent$I$I', function (c, x, y) { +return c.inside$I$I(x, y); +}); + +Clazz_newMeth(C$, 'createUI$javax_swing_JComponent', function (c) { +throw Clazz_new_($I$(1).c$$S,["ComponentUI.createUI not implemented."]); +}, 1); + +Clazz_newMeth(C$, 'getBaseline$javax_swing_JComponent$I$I', function (c, width, height) { +return -1; +}); + +Clazz_newMeth(C$, 'getBaselineResizeBehavior$javax_swing_JComponent', function (c) { +return $I$(2).OTHER; +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:11 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing.plaf"),I$=[]; +var C$=Clazz_newClass(P$, "DimensionUIResource", null, 'java.awt.Dimension', 'javax.swing.plaf.UIResource'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$I$I', function (width, height) { +C$.superclazz.c$$I$I.apply(this, [width, height]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:11 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing.plaf"),I$=[]; +var C$=Clazz_newClass(P$, "FontUIResource", null, 'java.awt.Font', 'javax.swing.plaf.UIResource'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$S$I$I', function (name, style, size) { +C$.superclazz.c$$S$I$I.apply(this, [name, style, size]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Font', function (font) { +C$.superclazz.c$$java_awt_Font.apply(this, [font]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:11 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing.plaf"),I$=[]; +var C$=Clazz_newClass(P$, "InputMapUIResource", null, 'javax.swing.InputMap', 'javax.swing.plaf.UIResource'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +Clazz_super_(C$, this,1); +}, 1); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:11 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing.plaf"),I$=[]; +var C$=Clazz_newClass(P$, "InsetsUIResource", null, 'java.awt.Insets', 'javax.swing.plaf.UIResource'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$I$I$I$I', function (top, left, bottom, right) { +C$.superclazz.c$$I$I$I$I.apply(this, [top, left, bottom, right]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:11 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing.plaf"),I$=[]; +var C$=Clazz_newInterface(P$, "UIResource"); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:13 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing"),p$1={},I$=[[0,'java.util.HashMap','java.awt.Rectangle','sun.awt.AppContext','javax.swing.SwingUtilities',['javax.swing.RepaintManager','.ProcessingRunnable'],'java.util.IdentityHashMap','javajs.util.Lst','java.awt.Toolkit','java.util.HashSet','javax.swing.JComponent','StringBuffer','Thread','swingjs.JSToolkit','sun.awt.SunToolkit','java.awt.event.InvocationEvent']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "RepaintManager", function(){ +Clazz_newInstance(this, arguments,0,C$); +}); +C$.HANDLE_TOP_LEVEL_PAINT=false; +C$.repaintManagerKey=null; +C$.volatileImageBufferEnabled=false; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.HANDLE_TOP_LEVEL_PAINT=false; +C$.repaintManagerKey=Clazz_getClass(C$); +C$.volatileImageBufferEnabled=true; +{ +C$.volatileImageBufferEnabled=false; +var headless=false; +if (C$.volatileImageBufferEnabled && headless ) { +C$.volatileImageBufferEnabled=false; +}C$.HANDLE_TOP_LEVEL_PAINT=true; +}; +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.volatileMap=null; +this.hwDirtyComponents=null; +this.dirtyComponents=null; +this.tmpDirtyComponents=null; +this.invalidComponents=null; +this.runnableList=null; +this.paintDepth=0; +this.painting=false; +this.repaintRoot=null; +this.paintThread=null; +this.processingRunnable=null; +this.myComponent=null; +this.tmp=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.volatileMap=Clazz_new_($I$(1).c$$I,[1]); +this.paintDepth=0; +this.tmp=Clazz_new_($I$(2)); +}, 1); + +Clazz_newMeth(C$, 'currentManager$java_awt_Component', function (c) { +return C$.currentManager$java_awt_Component$sun_awt_AppContext(c, $I$(3).getAppContext$()); +}, 1); + +Clazz_newMeth(C$, 'currentManager$java_awt_Component$sun_awt_AppContext', function (c, appContext) { +var rm=appContext.get$O(C$.repaintManagerKey); +if (rm == null ) { +rm=Clazz_new_(C$); +p$1.set$java_awt_Component.apply(rm, [c]); +appContext.put$O$O(C$.repaintManagerKey, rm); +}return rm; +}, 1); + +Clazz_newMeth(C$, 'currentManager$javax_swing_JComponent', function (c) { +return C$.currentManager$java_awt_Component(c); +}, 1); + +Clazz_newMeth(C$, 'setCurrentManager$javax_swing_RepaintManager', function (aRepaintManager) { +if (aRepaintManager != null ) { +$I$(4).appContextPut$O$O(C$.repaintManagerKey, aRepaintManager); +} else { +$I$(4).appContextRemove$O(C$.repaintManagerKey); +}}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.$init$.apply(this); +p$1.setMaps.apply(this, []); +this.processingRunnable=Clazz_new_($I$(5), [this, null]); +}, 1); + +Clazz_newMeth(C$, 'set$java_awt_Component', function (c) { +this.myComponent=c; +p$1.setMaps.apply(this, []); +}, p$1); + +Clazz_newMeth(C$, 'setMaps', function () { +this.dirtyComponents=Clazz_new_($I$(6)); +this.tmpDirtyComponents=Clazz_new_($I$(6)); +this.hwDirtyComponents=Clazz_new_($I$(6)); +}, p$1); + +Clazz_newMeth(C$, 'addInvalidComponent$javax_swing_JComponent', function (invalidComponent) { +var validateRoot=null; +for (var c=invalidComponent; c != null ; c=c.getParent$()) { +if ((Clazz_instanceOf(c, "javax.swing.CellRendererPane"))) { +return; +}if (p$1.isStandardJComponent$java_awt_Component.apply(this, [c]) && ((c).isValidateRoot$()) ) { +validateRoot=c; +break; +}} +if (validateRoot == null ) { +return; +}var root=null; +for (var c=validateRoot; c != null ; c=c.getParent$()) { +if (!c.isVisible$()) { +return; +}if (c.isWindowOrJSApplet$()) { +root=c; +break; +}} +if (root == null ) { +return; +}if (this.invalidComponents == null ) { +this.invalidComponents=Clazz_new_($I$(7)); +} else { +var n=this.invalidComponents.size$(); +for (var i=0; i < n; i++) { +if (validateRoot === this.invalidComponents.get$I(i) ) { +return; +}} +}this.invalidComponents.add$TE(validateRoot); +p$1.scheduleProcessingRunnable$java_awt_Component.apply(this, [root]); +}); + +Clazz_newMeth(C$, 'isStandardJComponent$java_awt_Component', function (c) { +return (Clazz_instanceOf(c, "javax.swing.JComponent") && !(Clazz_instanceOf(c, "java.awt.Window")) ); +}, p$1); + +Clazz_newMeth(C$, 'removeInvalidComponent$javax_swing_JComponent', function (component) { +if (this.invalidComponents != null ) { +var index=this.invalidComponents.indexOf$O(component); +if (index != -1) { +this.invalidComponents.removeItemAt$I(index); +}}}); + +Clazz_newMeth(C$, 'addDirtyRegion0$java_awt_Container$I$I$I$I', function (c, x, y, w, h) { +if (w <= 0 || h <= 0 || c == null || c.getWidth$() <= 0 || c.getHeight$() <= 0 ) return; +if (p$1.extendDirtyRegion$java_awt_Component$I$I$I$I.apply(this, [c, x, y, w, h])) { +return; +}var root=null; +for (var p=c; p != null ; p=p.getParent$()) { +if (!p.isVisible$() || p.getPeer$() == null ) { +return; +}if (p.isWindowOrJSApplet$()) { +if (Clazz_instanceOf(p, "java.awt.JSFrame") && ((p).getExtendedState$() & 1) == 1 ) { +return; +}root=p; +break; +}} +if (root == null ) return; +{ +if (p$1.extendDirtyRegion$java_awt_Component$I$I$I$I.apply(this, [c, x, y, w, h])) { +return; +}this.dirtyComponents.put$TK$TV(c, Clazz_new_($I$(2).c$$I$I$I$I,[x, y, w, h])); +}p$1.scheduleProcessingRunnable$java_awt_Component.apply(this, [c]); +}, p$1); + +Clazz_newMeth(C$, 'addDirtyRegion$javax_swing_JComponent$I$I$I$I', function (c, x, y, w, h) { +p$1.addDirtyRegion0$java_awt_Container$I$I$I$I.apply(this, [c, x, y, w, h]); +}); + +Clazz_newMeth(C$, 'addDirtyRegion$java_awt_Window$I$I$I$I', function (window, x, y, w, h) { +p$1.addDirtyRegion0$java_awt_Container$I$I$I$I.apply(this, [window, x, y, w, h]); +}); + +Clazz_newMeth(C$, 'addDirtyRegion$java_applet_JSApplet$I$I$I$I', function (applet, x, y, w, h) { +p$1.addDirtyRegion0$java_awt_Container$I$I$I$I.apply(this, [applet, x, y, w, h]); +}); + +Clazz_newMeth(C$, 'scheduleHeavyWeightPaints$', function () { +var hws; +{ +if (this.hwDirtyComponents.size$() == 0) { +return; +}hws=this.hwDirtyComponents; +this.hwDirtyComponents=Clazz_new_($I$(6)); +}for (var hw, $hw = hws.keySet$().iterator$(); $hw.hasNext$()&&((hw=($hw.next$())),1);) { +var dirty=hws.get$O(hw); +if (hw.isWindowOrJSApplet$()) { +this.addDirtyRegion$java_awt_Window$I$I$I$I(hw, dirty.x, dirty.y, dirty.width, dirty.height); +} else { +p$1.addDirtyRegion0$java_awt_Container$I$I$I$I.apply(this, [hw, dirty.x, dirty.y, dirty.width, dirty.height]); +}} +}); + +Clazz_newMeth(C$, 'nativeAddDirtyRegion$sun_awt_AppContext$java_awt_Container$I$I$I$I', function (appContext, c, x, y, w, h) { +if (w > 0 && h > 0 ) { +{ +var dirty=this.hwDirtyComponents.get$O(c); +if (dirty == null ) { +this.hwDirtyComponents.put$TK$TV(c, Clazz_new_($I$(2).c$$I$I$I$I,[x, y, w, h])); +} else { +this.hwDirtyComponents.put$TK$TV(c, $I$(4).computeUnion$I$I$I$I$java_awt_Rectangle(x, y, w, h, dirty)); +}}p$1.scheduleProcessingRunnable$sun_awt_AppContext.apply(this, [appContext]); +}}); + +Clazz_newMeth(C$, 'extendDirtyRegion$java_awt_Component$I$I$I$I', function (c, x, y, w, h) { +var r=this.dirtyComponents.get$O(c); +if (r != null ) { +$I$(4).computeUnion$I$I$I$I$java_awt_Rectangle(x, y, w, h, r); +return true; +}return false; +}, p$1); + +Clazz_newMeth(C$, 'getDirtyRegion$javax_swing_JComponent', function (aComponent) { +var r=null; +{ +r=this.dirtyComponents.get$O(aComponent); +}if (r == null ) return Clazz_new_($I$(2).c$$I$I$I$I,[0, 0, 0, 0]); + else return Clazz_new_($I$(2).c$$java_awt_Rectangle,[r]); +}); + +Clazz_newMeth(C$, 'markCompletelyDirty$javax_swing_JComponent', function (aComponent) { +this.addDirtyRegion$javax_swing_JComponent$I$I$I$I(aComponent, 0, 0, 2147483647, 2147483647); +}); + +Clazz_newMeth(C$, 'markCompletelyClean$javax_swing_JComponent', function (aComponent) { +{ +this.dirtyComponents.remove$O(aComponent); +}}); + +Clazz_newMeth(C$, 'isCompletelyDirty$javax_swing_JComponent', function (aComponent) { +var r; +r=this.getDirtyRegion$javax_swing_JComponent(aComponent); +if (r.width == 2147483647 && r.height == 2147483647 ) return true; + else return false; +}); + +Clazz_newMeth(C$, 'validateInvalidComponents$', function () { +var ic; +{ +if (this.invalidComponents == null ) { +return; +}ic=this.invalidComponents; +this.invalidComponents=null; +}var n=ic.size$(); +for (var i=0; i < n; i++) { +var c=ic.get$I(i); +c.validate$(); +} +}); + +Clazz_newMeth(C$, 'prePaintDirtyRegions$', function () { +var dirtyComponents; +var runnableList; +{ +dirtyComponents=this.dirtyComponents; +runnableList=this.runnableList; +this.runnableList=null; +}if (runnableList != null ) { +for (var runnable, $runnable = runnableList.iterator$(); $runnable.hasNext$()&&((runnable=($runnable.next$())),1);) { +runnable.run$(); +} +}this.paintDirtyRegions$(); +if (dirtyComponents.size$() > 0) { +p$1.paintDirtyRegions1$java_util_Map.apply(this, [dirtyComponents]); +}}); + +Clazz_newMeth(C$, 'updateWindows$java_util_Map', function (dirtyComponents) { +var toolkit=$I$(8).getDefaultToolkit$(); +if (!(Clazz_instanceOf(toolkit, "sun.awt.SunToolkit") && (toolkit).needUpdateWindow$() )) { +return dirtyComponents; +}var windows=Clazz_new_($I$(9)); +var dirtyComps=dirtyComponents.keySet$(); +for (var it=dirtyComps.iterator$(); it.hasNext$(); ) { +var dirty=it.next$(); +var window=dirty.isWindowOrJSApplet$() ? dirty : $I$(4).getWindowAncestor$java_awt_Component(dirty); +if (window != null && !window.isOpaque$() ) { +it.remove$(); +windows.add$TE(window); +}} +return dirtyComponents; +}, p$1); + +Clazz_newMeth(C$, 'paintDirtyRegions$', function () { +{ +var tmp=this.tmpDirtyComponents; +this.tmpDirtyComponents=this.dirtyComponents; +this.dirtyComponents=tmp; +this.dirtyComponents.clear$(); +}p$1.paintDirtyRegions1$java_util_Map.apply(this, [this.tmpDirtyComponents]); +}); + +Clazz_newMeth(C$, 'paintDirtyRegions1$java_util_Map', function (tmpDirtyComponents) { +if (tmpDirtyComponents.isEmpty$()) { +return; +}p$1.updateWindows$java_util_Map.apply(this, [tmpDirtyComponents]); +var roots=Clazz_new_($I$(7)); +for (var dirty, $dirty = tmpDirtyComponents.keySet$().iterator$(); $dirty.hasNext$()&&((dirty=($dirty.next$())),1);) { +this.collectDirtyComponents$java_util_Map$java_awt_Component$java_util_List(tmpDirtyComponents, dirty, roots); +} +var count=roots.size$(); +this.painting=true; +try { +for (var j=0; j < count; j++) { +var i=j; +var dirtyComponent=roots.get$I(j); +var rect=tmpDirtyComponents.get$O(dirtyComponent); +var localBoundsH=dirtyComponent.getHeight$(); +var localBoundsW=dirtyComponent.getWidth$(); +$I$(4).computeIntersection$I$I$I$I$java_awt_Rectangle(0, 0, localBoundsW, localBoundsH, rect); +if (p$1.isStandardJComponent$java_awt_Component.apply(this, [dirtyComponent])) { +(dirtyComponent).paintImmediately$I$I$I$I(rect.x, rect.y, rect.width, rect.height); +} else if (dirtyComponent.isShowing$()) { +var g=$I$(10).safelyGetGraphics$java_awt_Component$java_awt_Component(dirtyComponent, dirtyComponent); +if (g != null ) { +try { +(dirtyComponent).秘paintWithBackgroundCheck$java_awt_Graphics(g); +} finally { +g.dispose$(); +} +}}if (this.repaintRoot != null ) { +p$1.adjustRoots$javax_swing_JComponent$javajs_util_Lst$I.apply(this, [this.repaintRoot, roots, i + 1]); +count=roots.size$(); +this.repaintRoot.paintImmediately$I$I$I$I(0, 0, this.repaintRoot.getWidth$(), this.repaintRoot.getHeight$()); +this.repaintRoot=null; +}} +} finally { +this.painting=false; +} +tmpDirtyComponents.clear$(); +}, p$1); + +Clazz_newMeth(C$, 'adjustRoots$javax_swing_JComponent$javajs_util_Lst$I', function (root, roots, index) { +for (var i=roots.size$() - 1; i >= index; i--) { +var c=roots.get$I(i); +for (; ; ) { +if (c === root || c == null || !p$1.isStandardJComponent$java_awt_Component.apply(this, [c]) ) { +break; +}c=c.getParent$(); +} +if (c === root ) { +roots.removeItemAt$I(i); +}} +}, p$1); + +Clazz_newMeth(C$, 'collectDirtyComponents$java_util_Map$java_awt_Component$java_util_List', function (dirtyComponents, dirtyComponent, roots) { +var dx; +var dy; +var rootDx; +var rootDy; +var component; +var rootDirtyComponent; +var parent; +component=rootDirtyComponent=dirtyComponent; +var x=dirtyComponent.getX$(); +var y=dirtyComponent.getY$(); +var w=dirtyComponent.getWidth$(); +var h=dirtyComponent.getHeight$(); +dx=rootDx=0; +dy=rootDy=0; +this.tmp.setBounds$java_awt_Rectangle(dirtyComponents.get$O(dirtyComponent)); +$I$(4).computeIntersection$I$I$I$I$java_awt_Rectangle(0, 0, w, h, this.tmp); +if (this.tmp.isEmpty$()) { +return; +}for (; ; ) { +if (!p$1.isStandardJComponent$java_awt_Component.apply(this, [component])) break; +parent=component.getParent$(); +if (parent == null ) break; +component=parent; +dx+=x; +dy+=y; +this.tmp.x+=x; +this.tmp.y+=y; +x=component.getX$(); +y=component.getY$(); +w=component.getWidth$(); +h=component.getHeight$(); +this.tmp=$I$(4).computeIntersection$I$I$I$I$java_awt_Rectangle(0, 0, w, h, this.tmp); +if (this.tmp.isEmpty$()) { +return; +}if (dirtyComponents.get$O(component) != null ) { +rootDirtyComponent=component; +rootDx=dx; +rootDy=dy; +}} +if (dirtyComponent !== rootDirtyComponent ) { +var r; +this.tmp.x+=rootDx - dx; +this.tmp.y+=rootDy - dy; +r=dirtyComponents.get$O(rootDirtyComponent); +$I$(4).computeUnion$I$I$I$I$java_awt_Rectangle(this.tmp.x, this.tmp.y, this.tmp.width, this.tmp.height, r); +}if (!roots.contains$O(rootDirtyComponent)) roots.add$TE(rootDirtyComponent); +}); + +Clazz_newMeth(C$, 'toString', function () { +var sb=Clazz_new_($I$(11)); +if (this.dirtyComponents != null ) sb.append$S("" + this.dirtyComponents); +return sb.toString(); +}); + +Clazz_newMeth(C$, 'getOffscreenBuffer$java_awt_Component$I$I', function (c, proposedWidth, proposedHeight) { +return null; +}); + +Clazz_newMeth(C$, 'getVolatileOffscreenBuffer$java_awt_Component$I$I', function (c, proposedWidth, proposedHeight) { +var config=c.getGraphicsConfiguration$(); +var maxSize=this.getDoubleBufferMaximumSize$(); +var width=proposedWidth < 1 ? 1 : (proposedWidth > maxSize.width ? maxSize.width : proposedWidth); +var height=proposedHeight < 1 ? 1 : (proposedHeight > maxSize.height ? maxSize.height : proposedHeight); +var image=this.volatileMap.get$O(config); +if (image == null || image.getWidth$() < width || image.getHeight$() < height ) { +if (image != null ) { +image.flush$(); +}image=config.createCompatibleVolatileImage$I$I(width, height); +this.volatileMap.put$TK$TV(config, image); +}return image; +}); + +Clazz_newMeth(C$, 'setDoubleBufferMaximumSize$java_awt_Dimension', function (d) { +}); + +Clazz_newMeth(C$, 'getDoubleBufferMaximumSize$', function () { +return null; +}); + +Clazz_newMeth(C$, 'setDoubleBufferingEnabled$Z', function (aFlag) { +}); + +Clazz_newMeth(C$, 'resetDoubleBuffer$', function () { +}); + +Clazz_newMeth(C$, 'resetVolatileDoubleBuffer$java_awt_GraphicsConfiguration', function (gc) { +var image=this.volatileMap.remove$O(gc); +if (image != null ) { +image.flush$(); +}}); + +Clazz_newMeth(C$, 'useVolatileDoubleBuffer$', function () { +return C$.volatileImageBufferEnabled; +}); + +Clazz_newMeth(C$, 'isPaintingThread', function () { +return ($I$(12).currentThread$() === this.paintThread ); +}, p$1); + +Clazz_newMeth(C$, 'paint$javax_swing_JComponent$javax_swing_JComponent$java_awt_Graphics$I$I$I$I', function (paintingComponent, bufferComponent, g, x, y, w, h) { +paintingComponent.paintToOffscreen$java_awt_Graphics$I$I$I$I$I$I(g, x, y, w, h, x + w, y + h); +}); + +Clazz_newMeth(C$, 'beginPaint$', function () { +var multiThreadedPaint=false; +var paintDepth=0; +var currentThread=$I$(12).currentThread$(); +{ +paintDepth=this.paintDepth; +if (this.paintThread == null || currentThread === this.paintThread ) { +this.paintThread=currentThread; +this.paintDepth++; +} else { +multiThreadedPaint=true; +}}}); + +Clazz_newMeth(C$, 'endPaint$', function () { +if (p$1.isPaintingThread.apply(this, [])) { +}}); + +Clazz_newMeth(C$, 'doubleBufferingChanged$javax_swing_JRootPane', function (rootPane) { +}); + +Clazz_newMeth(C$, 'scheduleProcessingRunnable$java_awt_Component', function (c) { +p$1.scheduleProcessingRunnable$sun_awt_AppContext.apply(this, [c.getAppContext$()]); +}, p$1); + +Clazz_newMeth(C$, 'scheduleProcessingRunnable$sun_awt_AppContext', function (context) { +if (this.processingRunnable.markPending$()) { +if ($I$(13).checkJ2SFlag$S("_debugPaint")) System.out.println$S("RepaintManager\n invalid:" + this.invalidComponents + "\n dirty:" + this.dirtyComponents ); + + +$I$(14).getSystemEventQueueImplPP$sun_awt_AppContext(context).postEvent$java_awt_AWTEvent(Clazz_new_($I$(15).c$$O$I$Runnable$O$Z,[$I$(8).getDefaultToolkit$(), 1200, this.processingRunnable, null, false])); +}}, p$1); +; +(function(){var C$=Clazz_newClass(P$.RepaintManager, "ProcessingRunnable", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, null, 'Runnable'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.pending=false; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'markPending$', function () { +if (!this.pending) { +this.pending=true; +return true; +}return false; +}); + +Clazz_newMeth(C$, 'run$', function () { +{ +this.pending=false; +}this.this$0.scheduleHeavyWeightPaints$.apply(this.this$0, []); +this.this$0.validateInvalidComponents$.apply(this.this$0, []); +this.this$0.prePaintDirtyRegions$.apply(this.this$0, []); +}); + +Clazz_newMeth(C$); +})() +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:07 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing"),I$=[]; +var C$=Clazz_newInterface(P$, "RootPaneContainer"); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:07 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing"),I$=[]; +var C$=Clazz_newInterface(P$, "Scrollable"); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:07 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing"),I$=[]; +var C$=Clazz_newInterface(P$, "ScrollPaneConstants"); +C$.VIEWPORT=null; +C$.VERTICAL_SCROLLBAR=null; +C$.HORIZONTAL_SCROLLBAR=null; +C$.ROW_HEADER=null; +C$.COLUMN_HEADER=null; +C$.LOWER_LEFT_CORNER=null; +C$.LOWER_RIGHT_CORNER=null; +C$.UPPER_LEFT_CORNER=null; +C$.UPPER_RIGHT_CORNER=null; +C$.LOWER_LEADING_CORNER=null; +C$.LOWER_TRAILING_CORNER=null; +C$.UPPER_LEADING_CORNER=null; +C$.UPPER_TRAILING_CORNER=null; +C$.VERTICAL_SCROLLBAR_POLICY=null; +C$.HORIZONTAL_SCROLLBAR_POLICY=null; +C$.VERTICAL_SCROLLBAR_AS_NEEDED=0; +C$.VERTICAL_SCROLLBAR_NEVER=0; +C$.VERTICAL_SCROLLBAR_ALWAYS=0; +C$.HORIZONTAL_SCROLLBAR_AS_NEEDED=0; +C$.HORIZONTAL_SCROLLBAR_NEVER=0; +C$.HORIZONTAL_SCROLLBAR_ALWAYS=0; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.VIEWPORT="VIEWPORT"; +C$.VERTICAL_SCROLLBAR="VERTICAL_SCROLLBAR"; +C$.HORIZONTAL_SCROLLBAR="HORIZONTAL_SCROLLBAR"; +C$.ROW_HEADER="ROW_HEADER"; +C$.COLUMN_HEADER="COLUMN_HEADER"; +C$.LOWER_LEFT_CORNER="LOWER_LEFT_CORNER"; +C$.LOWER_RIGHT_CORNER="LOWER_RIGHT_CORNER"; +C$.UPPER_LEFT_CORNER="UPPER_LEFT_CORNER"; +C$.UPPER_RIGHT_CORNER="UPPER_RIGHT_CORNER"; +C$.LOWER_LEADING_CORNER="LOWER_LEADING_CORNER"; +C$.LOWER_TRAILING_CORNER="LOWER_TRAILING_CORNER"; +C$.UPPER_LEADING_CORNER="UPPER_LEADING_CORNER"; +C$.UPPER_TRAILING_CORNER="UPPER_TRAILING_CORNER"; +C$.VERTICAL_SCROLLBAR_POLICY="VERTICAL_SCROLLBAR_POLICY"; +C$.HORIZONTAL_SCROLLBAR_POLICY="HORIZONTAL_SCROLLBAR_POLICY"; +C$.VERTICAL_SCROLLBAR_AS_NEEDED=20; +C$.VERTICAL_SCROLLBAR_NEVER=21; +C$.VERTICAL_SCROLLBAR_ALWAYS=22; +C$.HORIZONTAL_SCROLLBAR_AS_NEEDED=30; +C$.HORIZONTAL_SCROLLBAR_NEVER=31; +C$.HORIZONTAL_SCROLLBAR_ALWAYS=32; +} +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:07 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing"),p$1={},I$=[[0,'java.awt.Dimension','javax.swing.SwingUtilities','java.awt.Rectangle','java.awt.Insets','javax.swing.UIManager']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "ScrollPaneLayout", function(){ +Clazz_newInstance(this, arguments,0,C$); +}, null, ['java.awt.LayoutManager', 'javax.swing.ScrollPaneConstants']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.viewport=null; +this.vsb=null; +this.hsb=null; +this.rowHead=null; +this.colHead=null; +this.lowerLeft=null; +this.lowerRight=null; +this.upperLeft=null; +this.upperRight=null; +this.vsbPolicy=0; +this.hsbPolicy=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.vsbPolicy=20; +this.hsbPolicy=30; +}, 1); + +Clazz_newMeth(C$, 'syncWithScrollPane$javax_swing_JScrollPane', function (sp) { +this.viewport=sp.getViewport$(); +this.vsb=sp.getVerticalScrollBar$(); +this.hsb=sp.getHorizontalScrollBar$(); +this.rowHead=sp.getRowHeader$(); +this.colHead=sp.getColumnHeader$(); +this.lowerLeft=sp.getCorner$S("LOWER_LEFT_CORNER"); +this.lowerRight=sp.getCorner$S("LOWER_RIGHT_CORNER"); +this.upperLeft=sp.getCorner$S("UPPER_LEFT_CORNER"); +this.upperRight=sp.getCorner$S("UPPER_RIGHT_CORNER"); +this.vsbPolicy=sp.getVerticalScrollBarPolicy$(); +this.hsbPolicy=sp.getHorizontalScrollBarPolicy$(); +}); + +Clazz_newMeth(C$, 'addSingletonComponent$java_awt_Component$java_awt_Component', function (oldC, newC) { +if ((oldC != null ) && (oldC !== newC ) ) { +oldC.getParent$().remove$java_awt_Component(oldC); +}return newC; +}); + +Clazz_newMeth(C$, 'addLayoutComponent$S$java_awt_Component', function (s, c) { +if (s.equals$O("VIEWPORT")) { +this.viewport=this.addSingletonComponent$java_awt_Component$java_awt_Component(this.viewport, c); +} else if (s.equals$O("VERTICAL_SCROLLBAR")) { +this.vsb=this.addSingletonComponent$java_awt_Component$java_awt_Component(this.vsb, c); +} else if (s.equals$O("HORIZONTAL_SCROLLBAR")) { +this.hsb=this.addSingletonComponent$java_awt_Component$java_awt_Component(this.hsb, c); +} else if (s.equals$O("ROW_HEADER")) { +this.rowHead=this.addSingletonComponent$java_awt_Component$java_awt_Component(this.rowHead, c); +} else if (s.equals$O("COLUMN_HEADER")) { +this.colHead=this.addSingletonComponent$java_awt_Component$java_awt_Component(this.colHead, c); +} else if (s.equals$O("LOWER_LEFT_CORNER")) { +this.lowerLeft=this.addSingletonComponent$java_awt_Component$java_awt_Component(this.lowerLeft, c); +} else if (s.equals$O("LOWER_RIGHT_CORNER")) { +this.lowerRight=this.addSingletonComponent$java_awt_Component$java_awt_Component(this.lowerRight, c); +} else if (s.equals$O("UPPER_LEFT_CORNER")) { +this.upperLeft=this.addSingletonComponent$java_awt_Component$java_awt_Component(this.upperLeft, c); +} else if (s.equals$O("UPPER_RIGHT_CORNER")) { +this.upperRight=this.addSingletonComponent$java_awt_Component$java_awt_Component(this.upperRight, c); +} else { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["invalid layout key " + s]); +}}); + +Clazz_newMeth(C$, 'removeLayoutComponent$java_awt_Component', function (c) { +if (c === this.viewport ) { +this.viewport=null; +} else if (c === this.vsb ) { +this.vsb=null; +} else if (c === this.hsb ) { +this.hsb=null; +} else if (c === this.rowHead ) { +this.rowHead=null; +} else if (c === this.colHead ) { +this.colHead=null; +} else if (c === this.lowerLeft ) { +this.lowerLeft=null; +} else if (c === this.lowerRight ) { +this.lowerRight=null; +} else if (c === this.upperLeft ) { +this.upperLeft=null; +} else if (c === this.upperRight ) { +this.upperRight=null; +}}); + +Clazz_newMeth(C$, 'getVerticalScrollBarPolicy$', function () { +return this.vsbPolicy; +}); + +Clazz_newMeth(C$, 'setVerticalScrollBarPolicy$I', function (x) { +switch (x) { +case 20: +case 21: +case 22: +this.vsbPolicy=x; +break; +default: +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["invalid verticalScrollBarPolicy"]); +} +}); + +Clazz_newMeth(C$, 'getHorizontalScrollBarPolicy$', function () { +return this.hsbPolicy; +}); + +Clazz_newMeth(C$, 'setHorizontalScrollBarPolicy$I', function (x) { +switch (x) { +case 30: +case 31: +case 32: +this.hsbPolicy=x; +break; +default: +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["invalid horizontalScrollBarPolicy"]); +} +}); + +Clazz_newMeth(C$, 'getViewport$', function () { +return this.viewport; +}); + +Clazz_newMeth(C$, 'getHorizontalScrollBar$', function () { +return this.hsb; +}); + +Clazz_newMeth(C$, 'getVerticalScrollBar$', function () { +return this.vsb; +}); + +Clazz_newMeth(C$, 'getRowHeader$', function () { +return this.rowHead; +}); + +Clazz_newMeth(C$, 'getColumnHeader$', function () { +return this.colHead; +}); + +Clazz_newMeth(C$, 'getCorner$S', function (key) { +if (key.equals$O("LOWER_LEFT_CORNER")) { +return this.lowerLeft; +} else if (key.equals$O("LOWER_RIGHT_CORNER")) { +return this.lowerRight; +} else if (key.equals$O("UPPER_LEFT_CORNER")) { +return this.upperLeft; +} else if (key.equals$O("UPPER_RIGHT_CORNER")) { +return this.upperRight; +} else { +return null; +}}); + +Clazz_newMeth(C$, 'preferredLayoutSize$java_awt_Container', function (parent) { +var scrollPane=parent; +this.vsbPolicy=scrollPane.getVerticalScrollBarPolicy$(); +this.hsbPolicy=scrollPane.getHorizontalScrollBarPolicy$(); +var insets=parent.getInsets$(); +var prefWidth=insets.left + insets.right; +var prefHeight=insets.top + insets.bottom; +var extentSize=null; +var viewSize=null; +var view=null; +if (this.viewport != null ) { +extentSize=this.viewport.getPreferredSize$(); +view=this.viewport.getView$(); +if (view != null ) { +viewSize=view.getPreferredSize$(); +}}if (extentSize != null ) { +prefWidth+=extentSize.width; +prefHeight+=extentSize.height; +}var viewportBorder=scrollPane.getViewportBorder$(); +if (viewportBorder != null ) { +var vpbInsets=viewportBorder.getBorderInsets$java_awt_Component(parent); +prefWidth+=vpbInsets.left + vpbInsets.right; +prefHeight+=vpbInsets.top + vpbInsets.bottom; +}if ((this.rowHead != null ) && this.rowHead.isVisible$() ) { +prefWidth+=this.rowHead.getPreferredSize$().width; +}if ((this.colHead != null ) && this.colHead.isVisible$() ) { +prefHeight+=this.colHead.getPreferredSize$().height; +}if ((this.vsb != null ) && (this.vsbPolicy != 21) ) { +if (this.vsbPolicy == 22) { +prefWidth+=this.vsb.getPreferredSize$().width; +} else if ((viewSize != null ) && (extentSize != null ) ) { +var canScroll=true; +if (Clazz_instanceOf(view, "javax.swing.Scrollable")) { +canScroll=!(view).getScrollableTracksViewportHeight$(); +}if (canScroll && (viewSize.height > extentSize.height) ) { +prefWidth+=this.vsb.getPreferredSize$().width; +}}}if ((this.hsb != null ) && (this.hsbPolicy != 31) ) { +if (this.hsbPolicy == 32) { +prefHeight+=this.hsb.getPreferredSize$().height; +} else if ((viewSize != null ) && (extentSize != null ) ) { +var canScroll=true; +if (Clazz_instanceOf(view, "javax.swing.Scrollable")) { +canScroll=!(view).getScrollableTracksViewportWidth$(); +}if (canScroll && (viewSize.width > extentSize.width) ) { +prefHeight+=this.hsb.getPreferredSize$().height; +}}}return Clazz_new_($I$(1).c$$I$I,[prefWidth, prefHeight]); +}); + +Clazz_newMeth(C$, 'minimumLayoutSize$java_awt_Container', function (parent) { +var scrollPane=parent; +this.vsbPolicy=scrollPane.getVerticalScrollBarPolicy$(); +this.hsbPolicy=scrollPane.getHorizontalScrollBarPolicy$(); +var insets=parent.getInsets$(); +var minWidth=insets.left + insets.right; +var minHeight=insets.top + insets.bottom; +if (this.viewport != null ) { +var size=this.viewport.getMinimumSize$(); +minWidth+=size.width; +minHeight+=size.height; +}var viewportBorder=scrollPane.getViewportBorder$(); +if (viewportBorder != null ) { +var vpbInsets=viewportBorder.getBorderInsets$java_awt_Component(parent); +minWidth+=vpbInsets.left + vpbInsets.right; +minHeight+=vpbInsets.top + vpbInsets.bottom; +}if ((this.rowHead != null ) && this.rowHead.isVisible$() ) { +var size=this.rowHead.getMinimumSize$(); +minWidth+=size.width; +minHeight=Math.max(minHeight, size.height); +}if ((this.colHead != null ) && this.colHead.isVisible$() ) { +var size=this.colHead.getMinimumSize$(); +minWidth=Math.max(minWidth, size.width); +minHeight+=size.height; +}if ((this.vsb != null ) && (this.vsbPolicy != 21) ) { +var size=this.vsb.getMinimumSize$(); +minWidth+=size.width; +minHeight=Math.max(minHeight, size.height); +}if ((this.hsb != null ) && (this.hsbPolicy != 31) ) { +var size=this.hsb.getMinimumSize$(); +minWidth=Math.max(minWidth, size.width); +minHeight+=size.height; +}return Clazz_new_($I$(1).c$$I$I,[minWidth, minHeight]); +}); + +Clazz_newMeth(C$, 'layoutContainer$java_awt_Container', function (parent) { +var scrollPane=parent; +this.vsbPolicy=scrollPane.getVerticalScrollBarPolicy$(); +this.hsbPolicy=scrollPane.getHorizontalScrollBarPolicy$(); +var availR=scrollPane.getBounds$(); +availR.x=availR.y=0; +var insets=parent.getInsets$(); +availR.x=insets.left; +availR.y=insets.top; +availR.width-=insets.left + insets.right; +availR.height-=insets.top + insets.bottom; +var leftToRight=$I$(2).isLeftToRight$java_awt_Component(scrollPane); +var colHeadR=Clazz_new_($I$(3).c$$I$I$I$I,[0, availR.y, 0, 0]); +if ((this.colHead != null ) && (this.colHead.isVisible$()) ) { +var colHeadHeight=Math.min(availR.height, this.colHead.getPreferredSize$().height); +colHeadR.height=colHeadHeight; +availR.y+=colHeadHeight; +availR.height-=colHeadHeight; +}var rowHeadR=Clazz_new_($I$(3).c$$I$I$I$I,[0, 0, 0, 0]); +if ((this.rowHead != null ) && (this.rowHead.isVisible$()) ) { +var rowHeadWidth=Math.min(availR.width, this.rowHead.getPreferredSize$().width); +rowHeadR.width=rowHeadWidth; +availR.width-=rowHeadWidth; +if (leftToRight) { +rowHeadR.x=availR.x; +availR.x+=rowHeadWidth; +} else { +rowHeadR.x=availR.x + availR.width; +}}var viewportBorder=scrollPane.getViewportBorder$(); +var vpbInsets; +if (viewportBorder != null ) { +vpbInsets=viewportBorder.getBorderInsets$java_awt_Component(parent); +availR.x+=vpbInsets.left; +availR.y+=vpbInsets.top; +availR.width-=vpbInsets.left + vpbInsets.right; +availR.height-=vpbInsets.top + vpbInsets.bottom; +} else { +vpbInsets=Clazz_new_($I$(4).c$$I$I$I$I,[0, 0, 0, 0]); +}var view=(this.viewport != null ) ? this.viewport.getView$() : null; +var viewPrefSize=(view != null ) ? view.getPreferredSize$() : Clazz_new_($I$(1).c$$I$I,[0, 0]); +var extentSize=(this.viewport != null ) ? this.viewport.toViewCoordinates$java_awt_Dimension(availR.getSize$()) : Clazz_new_($I$(1).c$$I$I,[0, 0]); +var viewTracksViewportWidth=false; +var viewTracksViewportHeight=false; +var isEmpty=(availR.width < 0 || availR.height < 0 ); +var sv; +if (!isEmpty && Clazz_instanceOf(view, "javax.swing.Scrollable") ) { +sv=view; +viewTracksViewportWidth=sv.getScrollableTracksViewportWidth$(); +viewTracksViewportHeight=sv.getScrollableTracksViewportHeight$(); +} else { +sv=null; +}var vsbR=Clazz_new_($I$(3).c$$I$I$I$I,[0, availR.y - vpbInsets.top, 0, 0]); +var nobars=(Clazz_instanceOf(view, "javax.swing.JEditorPane") || Clazz_instanceOf(view, "javax.swing.JTextArea") ); +var vsbNeeded; +if (isEmpty || nobars ) { +vsbNeeded=false; +} else if (this.vsbPolicy == 22) { +vsbNeeded=true; +} else if (this.vsbPolicy == 21) { +vsbNeeded=false; +} else { +vsbNeeded=!viewTracksViewportHeight && (viewPrefSize.height > extentSize.height) ; +}if ((this.vsb != null ) && vsbNeeded ) { +p$1.adjustForVSB$Z$java_awt_Rectangle$java_awt_Rectangle$java_awt_Insets$Z.apply(this, [true, availR, vsbR, vpbInsets, leftToRight]); +extentSize=this.viewport.toViewCoordinates$java_awt_Dimension(availR.getSize$()); +}var hsbR=Clazz_new_($I$(3).c$$I$I$I$I,[availR.x - vpbInsets.left, 0, 0, 0]); +var hsbNeeded; +if (isEmpty || nobars ) { +hsbNeeded=false; +} else if (this.hsbPolicy == 32) { +hsbNeeded=true; +} else if (this.hsbPolicy == 31) { +hsbNeeded=false; +} else { +hsbNeeded=!viewTracksViewportWidth && (viewPrefSize.width > extentSize.width) ; +}if ((this.hsb != null ) && hsbNeeded ) { +p$1.adjustForHSB$Z$java_awt_Rectangle$java_awt_Rectangle$java_awt_Insets.apply(this, [true, availR, hsbR, vpbInsets]); +if ((this.vsb != null ) && !vsbNeeded && (this.vsbPolicy != 21) ) { +extentSize=this.viewport.toViewCoordinates$java_awt_Dimension(availR.getSize$()); +vsbNeeded=viewPrefSize.height > extentSize.height; +if (vsbNeeded) { +p$1.adjustForVSB$Z$java_awt_Rectangle$java_awt_Rectangle$java_awt_Insets$Z.apply(this, [true, availR, vsbR, vpbInsets, leftToRight]); +}}}if (this.viewport != null ) { +this.viewport.setBounds$java_awt_Rectangle(availR); +if (sv != null ) { +extentSize=this.viewport.toViewCoordinates$java_awt_Dimension(availR.getSize$()); +var oldHSBNeeded=hsbNeeded; +var oldVSBNeeded=vsbNeeded; +viewTracksViewportWidth=sv.getScrollableTracksViewportWidth$(); +viewTracksViewportHeight=sv.getScrollableTracksViewportHeight$(); +if (this.vsb != null && this.vsbPolicy == 20 ) { +var newVSBNeeded=!viewTracksViewportHeight && (viewPrefSize.height > extentSize.height) ; +if (newVSBNeeded != vsbNeeded ) { +vsbNeeded=newVSBNeeded; +p$1.adjustForVSB$Z$java_awt_Rectangle$java_awt_Rectangle$java_awt_Insets$Z.apply(this, [vsbNeeded, availR, vsbR, vpbInsets, leftToRight]); +extentSize=this.viewport.toViewCoordinates$java_awt_Dimension(availR.getSize$()); +}}if (this.hsb != null && this.hsbPolicy == 30 ) { +var newHSBbNeeded=!viewTracksViewportWidth && (viewPrefSize.width > extentSize.width) ; +if (newHSBbNeeded != hsbNeeded ) { +hsbNeeded=newHSBbNeeded; +p$1.adjustForHSB$Z$java_awt_Rectangle$java_awt_Rectangle$java_awt_Insets.apply(this, [hsbNeeded, availR, hsbR, vpbInsets]); +if ((this.vsb != null ) && !vsbNeeded && (this.vsbPolicy != 21) ) { +extentSize=this.viewport.toViewCoordinates$java_awt_Dimension(availR.getSize$()); +vsbNeeded=viewPrefSize.height > extentSize.height; +if (vsbNeeded) { +p$1.adjustForVSB$Z$java_awt_Rectangle$java_awt_Rectangle$java_awt_Insets$Z.apply(this, [true, availR, vsbR, vpbInsets, leftToRight]); +}}}}if (oldHSBNeeded != hsbNeeded || oldVSBNeeded != vsbNeeded ) { +this.viewport.setBounds$java_awt_Rectangle(availR); +}}}vsbR.height=availR.height + vpbInsets.top + vpbInsets.bottom ; +hsbR.width=availR.width + vpbInsets.left + vpbInsets.right ; +rowHeadR.height=availR.height + vpbInsets.top + vpbInsets.bottom ; +rowHeadR.y=availR.y - vpbInsets.top; +colHeadR.width=availR.width + vpbInsets.left + vpbInsets.right ; +colHeadR.x=availR.x - vpbInsets.left; +if (this.rowHead != null ) { +this.rowHead.setBounds$java_awt_Rectangle(rowHeadR); +}if (this.colHead != null ) { +this.colHead.setBounds$java_awt_Rectangle(colHeadR); +}if (this.vsb != null ) { +if (vsbNeeded) { +if (this.colHead != null && $I$(5).getBoolean$O("ScrollPane.fillUpperCorner") ) { +if ((leftToRight && this.upperRight == null ) || (!leftToRight && this.upperLeft == null ) ) { +vsbR.y=colHeadR.y; +vsbR.height+=colHeadR.height; +}}this.vsb.setVisible$Z(true); +this.vsb.setBounds$java_awt_Rectangle(vsbR); +} else { +this.vsb.setVisible$Z(false); +}}if (this.hsb != null ) { +if (hsbNeeded) { +if (this.rowHead != null && $I$(5).getBoolean$O("ScrollPane.fillLowerCorner") ) { +if ((leftToRight && this.lowerLeft == null ) || (!leftToRight && this.lowerRight == null ) ) { +if (leftToRight) { +hsbR.x=rowHeadR.x; +}hsbR.width+=rowHeadR.width; +}}this.hsb.setVisible$Z(true); +this.hsb.setBounds$java_awt_Rectangle(hsbR); +} else { +this.hsb.setVisible$Z(false); +}}if (this.lowerLeft != null ) { +this.lowerLeft.setBounds$I$I$I$I(leftToRight ? rowHeadR.x : vsbR.x, hsbR.y, leftToRight ? rowHeadR.width : vsbR.width, hsbR.height); +}if (this.lowerRight != null ) { +this.lowerRight.setBounds$I$I$I$I(leftToRight ? vsbR.x : rowHeadR.x, hsbR.y, leftToRight ? vsbR.width : rowHeadR.width, hsbR.height); +}if (this.upperLeft != null ) { +this.upperLeft.setBounds$I$I$I$I(leftToRight ? rowHeadR.x : vsbR.x, colHeadR.y, leftToRight ? rowHeadR.width : vsbR.width, colHeadR.height); +}if (this.upperRight != null ) { +this.upperRight.setBounds$I$I$I$I(leftToRight ? vsbR.x : rowHeadR.x, colHeadR.y, leftToRight ? vsbR.width : rowHeadR.width, colHeadR.height); +}}); + +Clazz_newMeth(C$, 'adjustForVSB$Z$java_awt_Rectangle$java_awt_Rectangle$java_awt_Insets$Z', function (wantsVSB, available, vsbR, vpbInsets, leftToRight) { +var oldWidth=vsbR.width; +if (wantsVSB) { +var vsbWidth=Math.max(0, Math.min(this.vsb.getPreferredSize$().width, available.width)); +available.width-=vsbWidth; +vsbR.width=vsbWidth; +if (leftToRight) { +vsbR.x=available.x + available.width + vpbInsets.right ; +} else { +vsbR.x=available.x - vpbInsets.left; +available.x+=vsbWidth; +}} else { +available.width+=oldWidth; +}}, p$1); + +Clazz_newMeth(C$, 'adjustForHSB$Z$java_awt_Rectangle$java_awt_Rectangle$java_awt_Insets', function (wantsHSB, available, hsbR, vpbInsets) { +var oldHeight=hsbR.height; +if (wantsHSB) { +var hsbHeight=Math.max(0, Math.min(available.height, this.hsb.getPreferredSize$().height)); +available.height-=hsbHeight; +hsbR.y=available.y + available.height + vpbInsets.bottom ; +hsbR.height=hsbHeight; +} else { +available.height+=oldHeight; +}}, p$1); + +Clazz_newMeth(C$, 'getViewportBorderBounds$javax_swing_JScrollPane', function (scrollpane) { +return scrollpane.getViewportBorderBounds$(); +}); +; +(function(){var C$=Clazz_newClass(P$.ScrollPaneLayout, "UIResource", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'javax.swing.ScrollPaneLayout', 'javax.swing.plaf.UIResource'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$); +})() + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:07 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing"),I$=[]; +var C$=Clazz_newInterface(P$, "SingleSelectionModel"); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:07 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing"),I$=[]; +var C$=Clazz_newClass(P$, "SizeRequirements"); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.minimum=0; +this.preferred=0; +this.maximum=0; +this.alignment=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.$init$.apply(this); +this.minimum=0; +this.preferred=0; +this.maximum=0; +this.alignment=0.5; +}, 1); + +Clazz_newMeth(C$, 'c$$I$I$I$F', function (min, pref, max, a) { +C$.$init$.apply(this); +this.minimum=min; +this.preferred=pref; +this.maximum=max; +this.alignment=a > 1.0 ? 1.0 : a < 0.0 ? 0.0 : a; +}, 1); + +Clazz_newMeth(C$, 'toString', function () { +return "[" + this.minimum + "," + this.preferred + "," + this.maximum + "]@" + new Float(this.alignment).toString() ; +}); + +Clazz_newMeth(C$, 'getTiledSizeRequirements$javax_swing_SizeRequirementsA', function (children) { +var total=Clazz_new_(C$); +for (var i=0; i < children.length; i++) { +var req=children[i]; +total.minimum=(Math.min(total.minimum + req.minimum, 2147483647)|0); +total.preferred=(Math.min(total.preferred + req.preferred, 2147483647)|0); +total.maximum=(Math.min(total.maximum + req.maximum, 2147483647)|0); +} +return total; +}, 1); + +Clazz_newMeth(C$, 'getAlignedSizeRequirements$javax_swing_SizeRequirementsA', function (children) { +var totalAscent=Clazz_new_(C$); +var totalDescent=Clazz_new_(C$); +for (var i=0; i < children.length; i++) { +var req=children[i]; +var ascent=((req.alignment * req.minimum)|0); +var descent=req.minimum - ascent; +totalAscent.minimum=Math.max(ascent, totalAscent.minimum); +totalDescent.minimum=Math.max(descent, totalDescent.minimum); +ascent=((req.alignment * req.preferred)|0); +descent=req.preferred - ascent; +totalAscent.preferred=Math.max(ascent, totalAscent.preferred); +totalDescent.preferred=Math.max(descent, totalDescent.preferred); +ascent=((req.alignment * req.maximum)|0); +descent=req.maximum - ascent; +totalAscent.maximum=Math.max(ascent, totalAscent.maximum); +totalDescent.maximum=Math.max(descent, totalDescent.maximum); +} +var min=(Math.min(totalAscent.minimum + totalDescent.minimum, 2147483647)|0); +var pref=(Math.min(totalAscent.preferred + totalDescent.preferred, 2147483647)|0); +var max=(Math.min(totalAscent.maximum + totalDescent.maximum, 2147483647)|0); +var alignment=0.0; +if (min > 0) { +alignment=totalAscent.minimum / min; +alignment=alignment > 1.0 ? 1.0 : alignment < 0.0 ? 0.0 : alignment; +}return Clazz_new_(C$.c$$I$I$I$F,[min, pref, max, alignment]); +}, 1); + +Clazz_newMeth(C$, 'calculateTiledPositions$I$javax_swing_SizeRequirements$javax_swing_SizeRequirementsA$IA$IA', function (allocated, total, children, offsets, spans) { +C$.calcTiled$I$javax_swing_SizeRequirements$javax_swing_SizeRequirementsA$IA$IA$Z(allocated, total, children, offsets, spans, true); +}, 1); + +Clazz_newMeth(C$, 'calculateTiledPositions$I$javax_swing_SizeRequirements$javax_swing_SizeRequirementsA$IA$IA$Z', function (allocated, total, children, offsets, spans, forward) { +C$.calcTiled$I$javax_swing_SizeRequirements$javax_swing_SizeRequirementsA$IA$IA$Z(allocated, total, children, offsets, spans, forward); +}, 1); + +Clazz_newMeth(C$, 'calcTiled$I$javax_swing_SizeRequirements$javax_swing_SizeRequirementsA$IA$IA$Z', function (allocated, total, children, offsets, spans, forward) { +var min=0; +var pref=0; +var max=0; +for (var i=0; i < children.length; i++) { +min+=children[i].minimum; +pref+=children[i].preferred; +max+=children[i].maximum; +} +if (allocated >= pref) { +C$.expandedTile$I$J$J$J$javax_swing_SizeRequirementsA$IA$IA$Z(allocated, min, pref, max, children, offsets, spans, forward); +} else { +C$.compressedTile$I$J$J$J$javax_swing_SizeRequirementsA$IA$IA$Z(allocated, min, pref, max, children, offsets, spans, forward); +}}, 1); + +Clazz_newMeth(C$, 'compressedTile$I$J$J$J$javax_swing_SizeRequirementsA$IA$IA$Z', function (allocated, min, pref, max, request, offsets, spans, forward) { +var totalPlay=Math.min(pref - allocated, pref - min); +var factor=(pref - min == 0) ? 0.0 : totalPlay / (pref - min); +var totalOffset; +if (forward) { +totalOffset=0; +for (var i=0; i < spans.length; i++) { +offsets[i]=totalOffset; +var req=request[i]; +var play=factor * (req.preferred - req.minimum); +spans[i]=((req.preferred - play)|0); +totalOffset=(Math.min(totalOffset + spans[i], 2147483647)|0); +} +} else { +totalOffset=allocated; +for (var i=0; i < spans.length; i++) { +var req=request[i]; +var play=factor * (req.preferred - req.minimum); +spans[i]=((req.preferred - play)|0); +offsets[i]=totalOffset - spans[i]; +totalOffset=(Math.max(totalOffset - spans[i], 0)|0); +} +}}, 1); + +Clazz_newMeth(C$, 'expandedTile$I$J$J$J$javax_swing_SizeRequirementsA$IA$IA$Z', function (allocated, min, pref, max, request, offsets, spans, forward) { +var totalPlay=Math.min(allocated - pref, max - pref); +var factor=(max - pref == 0) ? 0.0 : totalPlay / (max - pref); +var totalOffset; +if (forward) { +totalOffset=0; +for (var i=0; i < spans.length; i++) { +offsets[i]=totalOffset; +var req=request[i]; +var play=((factor * (req.maximum - req.preferred))|0); +spans[i]=(Math.min(req.preferred + play, 2147483647)|0); +totalOffset=(Math.min(totalOffset + spans[i], 2147483647)|0); +} +} else { +totalOffset=allocated; +for (var i=0; i < spans.length; i++) { +var req=request[i]; +var play=((factor * (req.maximum - req.preferred))|0); +spans[i]=(Math.min(req.preferred + play, 2147483647)|0); +offsets[i]=totalOffset - spans[i]; +totalOffset=(Math.max(totalOffset - spans[i], 0)|0); +} +}}, 1); + +Clazz_newMeth(C$, 'calculateAlignedPositions$I$javax_swing_SizeRequirements$javax_swing_SizeRequirementsA$IA$IA', function (allocated, total, children, offsets, spans) { +C$.calcAligned$I$javax_swing_SizeRequirements$javax_swing_SizeRequirementsA$IA$IA$Z(allocated, total, children, offsets, spans, true); +}, 1); + +Clazz_newMeth(C$, 'calcAligned$I$javax_swing_SizeRequirements$javax_swing_SizeRequirementsA$IA$IA$Z', function (allocated, total, children, offsets, spans, normal) { +var totalAlignment=normal ? total.alignment : 1.0 - total.alignment; +var totalAscent=((allocated * totalAlignment)|0); +var totalDescent=allocated - totalAscent; +for (var i=0; i < children.length; i++) { +var req=children[i]; +var alignment=normal ? req.alignment : 1.0 - req.alignment; +var maxAscent=((req.maximum * alignment)|0); +var maxDescent=req.maximum - maxAscent; +var ascent=Math.min(totalAscent, maxAscent); +var descent=Math.min(totalDescent, maxDescent); +offsets[i]=totalAscent - ascent; +spans[i]=(Math.min(ascent + descent, 2147483647)|0); +} +}, 1); + +Clazz_newMeth(C$, 'calculateAlignedPositions$I$javax_swing_SizeRequirements$javax_swing_SizeRequirementsA$IA$IA$Z', function (allocated, total, children, offsets, spans, normal) { +C$.calcAligned$I$javax_swing_SizeRequirements$javax_swing_SizeRequirementsA$IA$IA$Z(allocated, total, children, offsets, spans, normal); +}, 1); + +Clazz_newMeth(C$, 'adjustSizes$I$javax_swing_SizeRequirementsA', function (delta, children) { +return Clazz_array(Integer.TYPE, [0]); +}, 1); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:07 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing"),I$=[]; +var C$=Clazz_newInterface(P$, "SwingConstants"); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:08 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing"),I$=[]; +var C$=Clazz_newClass(P$, "SwingPaintEventDispatcher", null, 'sun.awt.PaintEventDispatcher'); +C$.ERASE_BACKGROUND=false; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.ERASE_BACKGROUND=false; +{ +C$.ERASE_BACKGROUND=true; +}; +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'createPaintEvent$java_awt_Component$I$I$I$I', function (component, x, y, w, h) { +return C$.superclazz.prototype.createPaintEvent$java_awt_Component$I$I$I$I.apply(this, [component, x, y, w, h]); +}); + +Clazz_newMeth(C$, 'shouldDoNativeBackgroundErase$java_awt_Component', function (c) { +return C$.ERASE_BACKGROUND || !(Clazz_instanceOf(c, "javax.swing.RootPaneContainer")) ; +}); + +Clazz_newMeth(C$, 'queueSurfaceDataReplacing$java_awt_Component$Runnable', function (c, r) { +if (Clazz_instanceOf(c, "javax.swing.RootPaneContainer")) { +return true; +}return C$.superclazz.prototype.queueSurfaceDataReplacing$java_awt_Component$Runnable.apply(this, [c, r]); +}); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:08 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing"),I$=[[0,'java.awt.GraphicsEnvironment',['javax.swing.TransferHandler','.SwingDropTarget'],'java.awt.Rectangle','java.awt.Point','Error','java.awt.JSComponent','java.awt.event.MouseWheelEvent','javax.swing.event.MenuDragMouseEvent','java.awt.event.MouseEvent','swingjs.api.js.DOMNode','sun.swing.SwingUtilities2','swingjs.api.Interface','java.awt.EventQueue','java.awt.KeyboardFocusManager','javax.swing.JComponent','java.awt.event.ActionEvent','swingjs.JSUtil',['javax.swing.SwingUtilities','.SharedOwnerFrame'],'sun.awt.AppContext','Thread']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "SwingUtilities", function(){ +Clazz_newInstance(this, arguments,0,C$); +}, null, 'javax.swing.SwingConstants'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'installSwingDropTargetAsNecessary$java_awt_Component$javax_swing_TransferHandler', function (c, t) { +var dropHandler=c.getDropTarget$(); +if ((dropHandler == null ) || (Clazz_instanceOf(dropHandler, "javax.swing.plaf.UIResource")) ) { +if (t == null ) { +c.setDropTarget$java_awt_dnd_DropTarget(null); +} else if (!$I$(1).isHeadless$()) { +c.setDropTarget$java_awt_dnd_DropTarget(Clazz_new_($I$(2).c$$java_awt_Component,[c])); +}}}, 1); + +Clazz_newMeth(C$, 'isRectangleContainingRectangle$java_awt_Rectangle$java_awt_Rectangle', function (a, b) { +if (b.x >= a.x && (b.x + b.width) <= (a.x + a.width) && b.y >= a.y && (b.y + b.height) <= (a.y + a.height) ) { +return true; +}return false; +}, 1); + +Clazz_newMeth(C$, 'getLocalBounds$java_awt_Component', function (aComponent) { +var b=Clazz_new_($I$(3).c$$java_awt_Rectangle,[aComponent.getBounds$()]); +b.x=b.y=0; +return b; +}, 1); + +Clazz_newMeth(C$, 'getWindowAncestor$java_awt_Component', function (c) { +for (var p=c.getParent$(); p != null ; p=p.getParent$()) { +if (p.isWindowOrJSApplet$()) { +return p; +}} +return null; +}, 1); + +Clazz_newMeth(C$, 'convertScreenLocationToParent$java_awt_Container$I$I', function (parent, x, y) { +for (var p=parent; p != null ; p=p.getParent$()) { +if (p != null && p.isWindowOrJSApplet$() ) { +var point=Clazz_new_($I$(4).c$$I$I,[x, y]); +C$.convertPointFromScreen$java_awt_Point$java_awt_Component(point, parent); +return point; +}} +throw Clazz_new_($I$(5).c$$S,["convertScreenLocationToParent: no window ancestor"]); +}, 1); + +Clazz_newMeth(C$, 'convertPoint$java_awt_Component$java_awt_Point$java_awt_Component', function (source, aPoint, destination) { +var p; +if (source == null && destination == null ) return aPoint; +if (source == null ) { +source=C$.getWindowAncestor$java_awt_Component(destination); +if (source == null ) throw Clazz_new_($I$(5).c$$S,["Source component not connected to component tree hierarchy"]); +}p=Clazz_new_($I$(4).c$$java_awt_Point,[aPoint]); +C$.convertPointToScreen$java_awt_Point$java_awt_Component(p, source); +if (destination == null ) { +destination=C$.getWindowAncestor$java_awt_Component(source); +if (destination == null ) throw Clazz_new_($I$(5).c$$S,["Destination component not connected to component tree hierarchy"]); +}C$.convertPointFromScreen$java_awt_Point$java_awt_Component(p, destination); +return p; +}, 1); + +Clazz_newMeth(C$, 'convertPoint$java_awt_Component$I$I$java_awt_Component', function (source, x, y, destination) { +var point=Clazz_new_($I$(4).c$$I$I,[x, y]); +return C$.convertPoint$java_awt_Component$java_awt_Point$java_awt_Component(source, point, destination); +}, 1); + +Clazz_newMeth(C$, 'convertRectangle$java_awt_Component$java_awt_Rectangle$java_awt_Component', function (source, aRectangle, destination) { +var point=Clazz_new_($I$(4).c$$I$I,[aRectangle.x, aRectangle.y]); +point=C$.convertPoint$java_awt_Component$java_awt_Point$java_awt_Component(source, point, destination); +return Clazz_new_($I$(3).c$$I$I$I$I,[point.x, point.y, aRectangle.width, aRectangle.height]); +}, 1); + +Clazz_newMeth(C$, 'getAncestorOfClass$Class$java_awt_Component', function (c, comp) { +if (comp == null || c == null ) return null; +var parent=comp.getParent$(); +while (parent != null && !(c.isInstance$O(parent)) )parent=parent.getParent$(); + +return parent; +}, 1); + +Clazz_newMeth(C$, 'getAncestorNamed$S$java_awt_Component', function (name, comp) { +if (comp == null || name == null ) return null; +var parent=comp.getParent$(); +while (parent != null && !(name.equals$O(parent.getName$())) )parent=parent.getParent$(); + +return parent; +}, 1); + +Clazz_newMeth(C$, 'getDeepestComponentAt$java_awt_Component$I$I', function (parent, x, y) { +if (!parent.contains$I$I(x, y)) { +return null; +}if (Clazz_instanceOf(parent, "java.awt.Container")) { +var components=$I$(6).秘getChildArray$java_awt_Container(parent); +for (var i=0, n=(parent).getComponentCount$(); i < n; i++) { +var comp=components[i]; +if (comp != null && comp.isVisible$() ) { +var loc=comp.getLocation$(); +if (Clazz_instanceOf(comp, "java.awt.Container")) { +comp=C$.getDeepestComponentAt$java_awt_Component$I$I(comp, x - loc.x, y - loc.y); +} else { +comp=comp.getComponentAt$I$I(x - loc.x, y - loc.y); +}if (comp != null && comp.isVisible$() ) { +return comp; +}}} +}return parent; +}, 1); + +Clazz_newMeth(C$, 'convertMouseEvent$java_awt_Component$java_awt_event_MouseEvent$java_awt_Component', function (source, sourceEvent, destination) { +var p=C$.convertPoint$java_awt_Component$java_awt_Point$java_awt_Component(source, Clazz_new_($I$(4).c$$I$I,[sourceEvent.getX$(), sourceEvent.getY$()]), destination); +var newSource; +if (destination != null ) newSource=destination; + else newSource=source; +var newEvent; +if (Clazz_instanceOf(sourceEvent, "java.awt.event.MouseWheelEvent")) { +var sourceWheelEvent=sourceEvent; +newEvent=Clazz_new_($I$(7).c$$java_awt_Component$I$J$I$I$I$I$I$I$Z$I$I$I,[newSource, sourceWheelEvent.getID$(), sourceWheelEvent.getWhen$(), sourceWheelEvent.getModifiers$(), p.x, p.y, sourceWheelEvent.getXOnScreen$(), sourceWheelEvent.getYOnScreen$(), sourceWheelEvent.getClickCount$(), sourceWheelEvent.isPopupTrigger$(), sourceWheelEvent.getScrollType$(), sourceWheelEvent.getScrollAmount$(), sourceWheelEvent.getWheelRotation$()]); +} else if (Clazz_instanceOf(sourceEvent, "javax.swing.event.MenuDragMouseEvent")) { +var sourceMenuDragEvent=sourceEvent; +newEvent=Clazz_new_($I$(8).c$$java_awt_Component$I$J$I$I$I$I$I$I$Z$javax_swing_MenuElementA$javax_swing_MenuSelectionManager,[newSource, sourceMenuDragEvent.getID$(), sourceMenuDragEvent.getWhen$(), sourceMenuDragEvent.getModifiers$(), p.x, p.y, sourceMenuDragEvent.getXOnScreen$(), sourceMenuDragEvent.getYOnScreen$(), sourceMenuDragEvent.getClickCount$(), sourceMenuDragEvent.isPopupTrigger$(), sourceMenuDragEvent.getPath$(), sourceMenuDragEvent.getMenuSelectionManager$()]); +} else { +newEvent=Clazz_new_($I$(9).c$$java_awt_Component$I$J$I$I$I$I$I$I$Z$I,[newSource, sourceEvent.getID$(), sourceEvent.getWhen$(), sourceEvent.getModifiers$(), p.x, p.y, sourceEvent.getXOnScreen$(), sourceEvent.getYOnScreen$(), sourceEvent.getClickCount$(), sourceEvent.isPopupTrigger$(), 0]); +}return newEvent; +}, 1); + +Clazz_newMeth(C$, 'convertPointToScreen$java_awt_Point$java_awt_Component', function (p, c) { +var x; +var y; +var done=false; +do { +if ((done=c.isWindowOrJSApplet$())) { +try { +var pp=c.getLocationOnScreen$(); +x=pp.x; +y=pp.y; +} catch (icse) { +if (Clazz_exceptionOf(icse,"java.awt.IllegalComponentStateException")){ +x=c.getX$(); +y=c.getY$(); +} else { +throw icse; +} +} +} else { +x=c.getX$(); +y=c.getY$(); +}p.x+=x; +p.y+=y; +c=c.getParent$(); +} while (c != null && !done ); +}, 1); + +Clazz_newMeth(C$, 'convertPointFromScreen$java_awt_Point$java_awt_Component', function (p, c) { +var x; +var y; +do { +if (c.isWindowOrJSApplet$()) { +try { +var pp=c.getLocationOnScreen$(); +x=pp.x; +y=pp.y; +} catch (icse) { +if (Clazz_exceptionOf(icse,"java.awt.IllegalComponentStateException")){ +x=c.getX$(); +y=c.getY$(); +} else { +throw icse; +} +} +} else { +x=c.getX$(); +y=c.getY$(); +}p.x-=x; +p.y-=y; +if (c.isWindowOrJSApplet$()) break; +c=c.getParent$(); +} while (c != null ); +}, 1); + +Clazz_newMeth(C$, 'windowForComponent$java_awt_Component', function (c) { +return C$.getWindowAncestor$java_awt_Component(c); +}, 1); + +Clazz_newMeth(C$, 'isDescendingFrom$java_awt_Component$java_awt_Component', function (a, b) { +if (a === b ) return true; +for (var p=a.getParent$(); p != null ; p=p.getParent$()) if (p === b ) return true; + +return false; +}, 1); + +Clazz_newMeth(C$, 'computeIntersection$I$I$I$I$java_awt_Rectangle', function (x, y, width, height, dest) { +var x1=(x > dest.x) ? x : dest.x; +var x2=((x + width) < (dest.x + dest.width)) ? (x + width) : (dest.x + dest.width); +var y1=(y > dest.y) ? y : dest.y; +var y2=((y + height) < (dest.y + dest.height) ? (y + height) : (dest.y + dest.height)); +dest.x=x1; +dest.y=y1; +dest.width=x2 - x1; +dest.height=y2 - y1; +if (dest.width < 0 || dest.height < 0 ) { +dest.x=dest.y=dest.width=dest.height=0; +}return dest; +}, 1); + +Clazz_newMeth(C$, 'computeUnion$I$I$I$I$java_awt_Rectangle', function (x, y, width, height, dest) { +var x1=(x < dest.x) ? x : dest.x; +var x2=((x + width) > (dest.x + dest.width)) ? (x + width) : (dest.x + dest.width); +var y1=(y < dest.y) ? y : dest.y; +var y2=((y + height) > (dest.y + dest.height)) ? (y + height) : (dest.y + dest.height); +dest.x=x1; +dest.y=y1; +dest.width=(x2 - x1); +dest.height=(y2 - y1); +return dest; +}, 1); + +Clazz_newMeth(C$, 'computeDifference$java_awt_Rectangle$java_awt_Rectangle', function (rectA, rectB) { +if (rectB == null || !rectA.intersects$java_awt_Rectangle(rectB) || C$.isRectangleContainingRectangle$java_awt_Rectangle$java_awt_Rectangle(rectB, rectA) ) { +return Clazz_array($I$(3), [0]); +}var t=Clazz_new_($I$(3)); +var a=null; +var b=null; +var c=null; +var d=null; +var result; +var rectCount=0; +if (C$.isRectangleContainingRectangle$java_awt_Rectangle$java_awt_Rectangle(rectA, rectB)) { +t.x=rectA.x; +t.y=rectA.y; +t.width=rectB.x - rectA.x; +t.height=rectA.height; +if (t.width > 0 && t.height > 0 ) { +a=Clazz_new_($I$(3).c$$java_awt_Rectangle,[t]); +rectCount++; +}t.x=rectB.x; +t.y=rectA.y; +t.width=rectB.width; +t.height=rectB.y - rectA.y; +if (t.width > 0 && t.height > 0 ) { +b=Clazz_new_($I$(3).c$$java_awt_Rectangle,[t]); +rectCount++; +}t.x=rectB.x; +t.y=rectB.y + rectB.height; +t.width=rectB.width; +t.height=rectA.y + rectA.height - (rectB.y + rectB.height); +if (t.width > 0 && t.height > 0 ) { +c=Clazz_new_($I$(3).c$$java_awt_Rectangle,[t]); +rectCount++; +}t.x=rectB.x + rectB.width; +t.y=rectA.y; +t.width=rectA.x + rectA.width - (rectB.x + rectB.width); +t.height=rectA.height; +if (t.width > 0 && t.height > 0 ) { +d=Clazz_new_($I$(3).c$$java_awt_Rectangle,[t]); +rectCount++; +}} else { +if (rectB.x <= rectA.x && rectB.y <= rectA.y ) { +if ((rectB.x + rectB.width) > (rectA.x + rectA.width)) { +t.x=rectA.x; +t.y=rectB.y + rectB.height; +t.width=rectA.width; +t.height=rectA.y + rectA.height - (rectB.y + rectB.height); +if (t.width > 0 && t.height > 0 ) { +a=t; +rectCount++; +}} else if ((rectB.y + rectB.height) > (rectA.y + rectA.height)) { +t.setBounds$I$I$I$I((rectB.x + rectB.width), rectA.y, (rectA.x + rectA.width) - (rectB.x + rectB.width), rectA.height); +if (t.width > 0 && t.height > 0 ) { +a=t; +rectCount++; +}} else { +t.setBounds$I$I$I$I((rectB.x + rectB.width), rectA.y, (rectA.x + rectA.width) - (rectB.x + rectB.width), (rectB.y + rectB.height) - rectA.y); +if (t.width > 0 && t.height > 0 ) { +a=Clazz_new_($I$(3).c$$java_awt_Rectangle,[t]); +rectCount++; +}t.setBounds$I$I$I$I(rectA.x, (rectB.y + rectB.height), rectA.width, (rectA.y + rectA.height) - (rectB.y + rectB.height)); +if (t.width > 0 && t.height > 0 ) { +b=Clazz_new_($I$(3).c$$java_awt_Rectangle,[t]); +rectCount++; +}}} else if (rectB.x <= rectA.x && (rectB.y + rectB.height) >= (rectA.y + rectA.height) ) { +if ((rectB.x + rectB.width) > (rectA.x + rectA.width)) { +t.setBounds$I$I$I$I(rectA.x, rectA.y, rectA.width, rectB.y - rectA.y); +if (t.width > 0 && t.height > 0 ) { +a=t; +rectCount++; +}} else { +t.setBounds$I$I$I$I(rectA.x, rectA.y, rectA.width, rectB.y - rectA.y); +if (t.width > 0 && t.height > 0 ) { +a=Clazz_new_($I$(3).c$$java_awt_Rectangle,[t]); +rectCount++; +}t.reshape$I$I$I$I((rectB.x + rectB.width), rectB.y, (rectA.x + rectA.width) - (rectB.x + rectB.width), (rectA.y + rectA.height) - rectB.y); +if (t.width > 0 && t.height > 0 ) { +b=Clazz_new_($I$(3).c$$java_awt_Rectangle,[t]); +rectCount++; +}}} else if (rectB.x <= rectA.x) { +if ((rectB.x + rectB.width) >= (rectA.x + rectA.width)) { +t.reshape$I$I$I$I(rectA.x, rectA.y, rectA.width, rectB.y - rectA.y); +if (t.width > 0 && t.height > 0 ) { +a=Clazz_new_($I$(3).c$$java_awt_Rectangle,[t]); +rectCount++; +}t.reshape$I$I$I$I(rectA.x, (rectB.y + rectB.height), rectA.width, (rectA.y + rectA.height) - (rectB.y + rectB.height)); +if (t.width > 0 && t.height > 0 ) { +b=Clazz_new_($I$(3).c$$java_awt_Rectangle,[t]); +rectCount++; +}} else { +t.reshape$I$I$I$I(rectA.x, rectA.y, rectA.width, rectB.y - rectA.y); +if (t.width > 0 && t.height > 0 ) { +a=Clazz_new_($I$(3).c$$java_awt_Rectangle,[t]); +rectCount++; +}t.reshape$I$I$I$I((rectB.x + rectB.width), rectB.y, (rectA.x + rectA.width) - (rectB.x + rectB.width), rectB.height); +if (t.width > 0 && t.height > 0 ) { +b=Clazz_new_($I$(3).c$$java_awt_Rectangle,[t]); +rectCount++; +}t.reshape$I$I$I$I(rectA.x, (rectB.y + rectB.height), rectA.width, (rectA.y + rectA.height) - (rectB.y + rectB.height)); +if (t.width > 0 && t.height > 0 ) { +c=Clazz_new_($I$(3).c$$java_awt_Rectangle,[t]); +rectCount++; +}}} else if (rectB.x <= (rectA.x + rectA.width) && (rectB.x + rectB.width) > (rectA.x + rectA.width) ) { +if (rectB.y <= rectA.y && (rectB.y + rectB.height) > (rectA.y + rectA.height) ) { +t.reshape$I$I$I$I(rectA.x, rectA.y, rectB.x - rectA.x, rectA.height); +if (t.width > 0 && t.height > 0 ) { +a=t; +rectCount++; +}} else if (rectB.y <= rectA.y) { +t.reshape$I$I$I$I(rectA.x, rectA.y, rectB.x - rectA.x, (rectB.y + rectB.height) - rectA.y); +if (t.width > 0 && t.height > 0 ) { +a=Clazz_new_($I$(3).c$$java_awt_Rectangle,[t]); +rectCount++; +}t.reshape$I$I$I$I(rectA.x, (rectB.y + rectB.height), rectA.width, (rectA.y + rectA.height) - (rectB.y + rectB.height)); +if (t.width > 0 && t.height > 0 ) { +b=Clazz_new_($I$(3).c$$java_awt_Rectangle,[t]); +rectCount++; +}} else if ((rectB.y + rectB.height) > (rectA.y + rectA.height)) { +t.reshape$I$I$I$I(rectA.x, rectA.y, rectA.width, rectB.y - rectA.y); +if (t.width > 0 && t.height > 0 ) { +a=Clazz_new_($I$(3).c$$java_awt_Rectangle,[t]); +rectCount++; +}t.reshape$I$I$I$I(rectA.x, rectB.y, rectB.x - rectA.x, (rectA.y + rectA.height) - rectB.y); +if (t.width > 0 && t.height > 0 ) { +b=Clazz_new_($I$(3).c$$java_awt_Rectangle,[t]); +rectCount++; +}} else { +t.reshape$I$I$I$I(rectA.x, rectA.y, rectA.width, rectB.y - rectA.y); +if (t.width > 0 && t.height > 0 ) { +a=Clazz_new_($I$(3).c$$java_awt_Rectangle,[t]); +rectCount++; +}t.reshape$I$I$I$I(rectA.x, rectB.y, rectB.x - rectA.x, rectB.height); +if (t.width > 0 && t.height > 0 ) { +b=Clazz_new_($I$(3).c$$java_awt_Rectangle,[t]); +rectCount++; +}t.reshape$I$I$I$I(rectA.x, (rectB.y + rectB.height), rectA.width, (rectA.y + rectA.height) - (rectB.y + rectB.height)); +if (t.width > 0 && t.height > 0 ) { +c=Clazz_new_($I$(3).c$$java_awt_Rectangle,[t]); +rectCount++; +}}} else if (rectB.x >= rectA.x && (rectB.x + rectB.width) <= (rectA.x + rectA.width) ) { +if (rectB.y <= rectA.y && (rectB.y + rectB.height) > (rectA.y + rectA.height) ) { +t.reshape$I$I$I$I(rectA.x, rectA.y, rectB.x - rectA.x, rectA.height); +if (t.width > 0 && t.height > 0 ) { +a=Clazz_new_($I$(3).c$$java_awt_Rectangle,[t]); +rectCount++; +}t.reshape$I$I$I$I((rectB.x + rectB.width), rectA.y, (rectA.x + rectA.width) - (rectB.x + rectB.width), rectA.height); +if (t.width > 0 && t.height > 0 ) { +b=Clazz_new_($I$(3).c$$java_awt_Rectangle,[t]); +rectCount++; +}} else if (rectB.y <= rectA.y) { +t.reshape$I$I$I$I(rectA.x, rectA.y, rectB.x - rectA.x, rectA.height); +if (t.width > 0 && t.height > 0 ) { +a=Clazz_new_($I$(3).c$$java_awt_Rectangle,[t]); +rectCount++; +}t.reshape$I$I$I$I(rectB.x, (rectB.y + rectB.height), rectB.width, (rectA.y + rectA.height) - (rectB.y + rectB.height)); +if (t.width > 0 && t.height > 0 ) { +b=Clazz_new_($I$(3).c$$java_awt_Rectangle,[t]); +rectCount++; +}t.reshape$I$I$I$I((rectB.x + rectB.width), rectA.y, (rectA.x + rectA.width) - (rectB.x + rectB.width), rectA.height); +if (t.width > 0 && t.height > 0 ) { +c=Clazz_new_($I$(3).c$$java_awt_Rectangle,[t]); +rectCount++; +}} else { +t.reshape$I$I$I$I(rectA.x, rectA.y, rectB.x - rectA.x, rectA.height); +if (t.width > 0 && t.height > 0 ) { +a=Clazz_new_($I$(3).c$$java_awt_Rectangle,[t]); +rectCount++; +}t.reshape$I$I$I$I(rectB.x, rectA.y, rectB.width, rectB.y - rectA.y); +if (t.width > 0 && t.height > 0 ) { +b=Clazz_new_($I$(3).c$$java_awt_Rectangle,[t]); +rectCount++; +}t.reshape$I$I$I$I((rectB.x + rectB.width), rectA.y, (rectA.x + rectA.width) - (rectB.x + rectB.width), rectA.height); +if (t.width > 0 && t.height > 0 ) { +c=Clazz_new_($I$(3).c$$java_awt_Rectangle,[t]); +rectCount++; +}}}}result=Clazz_array($I$(3), [rectCount]); +rectCount=0; +if (a != null ) result[rectCount++]=a; +if (b != null ) result[rectCount++]=b; +if (c != null ) result[rectCount++]=c; +if (d != null ) result[rectCount++]=d; +return result; +}, 1); + +Clazz_newMeth(C$, 'isLeftMouseButton$java_awt_event_MouseEvent', function (anEvent) { +return ((anEvent.getModifiers$() & 16) != 0); +}, 1); + +Clazz_newMeth(C$, 'isMiddleMouseButton$java_awt_event_MouseEvent', function (anEvent) { +return ((anEvent.getModifiers$() & 8) == 8); +}, 1); + +Clazz_newMeth(C$, 'isRightMouseButton$java_awt_event_MouseEvent', function (anEvent) { +return ((anEvent.getModifiers$() & 4) == 4); +}, 1); + +Clazz_newMeth(C$, 'layoutCompoundLabel$javax_swing_JComponent$java_awt_FontMetrics$S$javax_swing_Icon$I$I$I$I$java_awt_Rectangle$java_awt_Rectangle$java_awt_Rectangle$I', function (c, fm, text, icon, verticalAlignment, horizontalAlignment, verticalTextPosition, horizontalTextPosition, viewR, iconR, textR, textIconGap) { +var ui=c.秘getUI$(); +var ltr=(c == null || c.getComponentOrientation$().isLeftToRight$() ); +var hAlign; +var hTextPos; +if (ui.menuAnchorNode == null ) { +switch (horizontalAlignment) { +case 10: +hAlign=(ltr) ? 2 : 4; +break; +case 11: +hAlign=(ltr) ? 4 : 2; +break; +default: +hAlign=horizontalAlignment; +break; +} +switch (horizontalTextPosition) { +case 10: +hTextPos=(ltr) ? 2 : 4; +break; +case 11: +hTextPos=(ltr) ? 4 : 2; +break; +default: +hTextPos=horizontalTextPosition; +break; +} +} else { +hAlign=hTextPos=(ltr ? 2 : 4); +}return C$.layoutCompoundLabelImpl$javax_swing_JComponent$swingjs_plaf_JSComponentUI$java_awt_FontMetrics$S$javax_swing_Icon$I$I$I$I$java_awt_Rectangle$java_awt_Rectangle$java_awt_Rectangle$I(c, ui, fm, text, icon, verticalAlignment, hAlign, verticalTextPosition, hTextPos, viewR, iconR, textR, textIconGap); +}, 1); + +Clazz_newMeth(C$, 'layoutCompoundLabel$java_awt_FontMetrics$S$javax_swing_Icon$I$I$I$I$java_awt_Rectangle$java_awt_Rectangle$java_awt_Rectangle$I', function (fm, text, icon, verticalAlignment, horizontalAlignment, verticalTextPosition, horizontalTextPosition, viewR, iconR, textR, textIconGap) { +return C$.layoutCompoundLabelImpl$javax_swing_JComponent$swingjs_plaf_JSComponentUI$java_awt_FontMetrics$S$javax_swing_Icon$I$I$I$I$java_awt_Rectangle$java_awt_Rectangle$java_awt_Rectangle$I(null, null, fm, text, icon, verticalAlignment, horizontalAlignment, verticalTextPosition, horizontalTextPosition, viewR, iconR, textR, textIconGap); +}, 1); + +Clazz_newMeth(C$, 'layoutCompoundLabelImpl$javax_swing_JComponent$swingjs_plaf_JSComponentUI$java_awt_FontMetrics$S$javax_swing_Icon$I$I$I$I$java_awt_Rectangle$java_awt_Rectangle$java_awt_Rectangle$I', function (c, ui, fm, text, icon, verticalAlignment, horizontalAlignment, verticalTextPosition, horizontalTextPosition, viewR, iconR, textR, textIconGap) { +if (icon != null ) { +iconR.width=icon.getIconWidth$(); +iconR.height=icon.getIconHeight$(); +}var textIsEmpty=(text == null ) || text.equals$O("") ; +var lsb=0; +var rsb=0; +var gap; +var v=null; +if (textIsEmpty) { +textR.width=textR.height=0; +text=""; +gap=0; +} else { +var availTextWidth; +gap=(iconR.width == 0) ? 0 : textIconGap; +if (horizontalTextPosition == 0) { +availTextWidth=viewR.width; +} else { +availTextWidth=viewR.width - (iconR.width + gap); +}v=(c != null ? c.getClientProperty$O("html") : null); +if (v != null ) { +textR.width=Math.min(availTextWidth, (v.getPreferredSpan$I(0)|0)); +textR.height=(v.getPreferredSpan$I(1)|0); +} else { +if (ui.textNode == null ) { +textR.width=fm.stringWidth$S(text); +textR.height=fm.getHeight$(); +} else if (text.length$() == 0) { +textR.width=1; +textR.height=fm.getHeight$(); +} else { +var t=text.replace$C$C(" ", "\u00a0"); +if (t != text && (ui.textNode.innerHTML != t ||false) ) $I$(10).setAttr(ui.textNode, "innerHTML", t); +var d=ui.getHTMLSize$swingjs_api_js_DOMNode(ui.textNode); +textR.width=(d.width == 0 ? 1 : d.width); +textR.height=(d.height == 0 ? fm.getHeight$() : d.height); +}if (textR.width > availTextWidth) { +text=$I$(11).clipString$javax_swing_JComponent$java_awt_FontMetrics$S$I(c, fm, text, availTextWidth); +textR.width=$I$(11).stringWidth$javax_swing_JComponent$java_awt_FontMetrics$S(c, fm, text); +}}}if (verticalTextPosition == 1) { +if (horizontalTextPosition != 0) { +textR.y=0; +} else { +textR.y=-(textR.height + gap); +}} else if (verticalTextPosition == 0) { +textR.y=((iconR.height/2|0)) - ((textR.height/2|0)); +} else { +if (horizontalTextPosition != 0) { +textR.y=iconR.height - textR.height; +} else { +textR.y=(iconR.height + gap); +}}if (horizontalTextPosition == 2) { +textR.x=-(textR.width + gap); +} else if (horizontalTextPosition == 0) { +textR.x=((iconR.width/2|0)) - ((textR.width/2|0)); +} else { +textR.x=(iconR.width + gap); +}var labelR_x=Math.min(iconR.x, textR.x); +var labelR_width=Math.max(iconR.x + iconR.width, textR.x + textR.width) - labelR_x; +var labelR_y=Math.min(iconR.y, textR.y); +var labelR_height=Math.max(iconR.y + iconR.height, textR.y + textR.height) - labelR_y; +var dx; +var dy; +if (verticalAlignment == 1) { +dy=viewR.y - labelR_y; +} else if (verticalAlignment == 0) { +dy=(viewR.y + ((viewR.height/2|0))) - (labelR_y + ((labelR_height/2|0))); +} else { +dy=(viewR.y + viewR.height) - (labelR_y + labelR_height); +}if (horizontalAlignment == 2) { +dx=viewR.x - labelR_x; +} else if (horizontalAlignment == 4) { +dx=(viewR.x + viewR.width) - (labelR_x + labelR_width); +} else { +dx=(viewR.x + ((viewR.width/2|0))) - (labelR_x + ((labelR_width/2|0))); +}textR.x+=dx; +textR.y+=dy; +iconR.x+=dx; +iconR.y+=dy; +if (viewR.width == 32767) { +viewR.width=labelR_width; +viewR.height=labelR_height; +}return text; +}, 1); + +Clazz_newMeth(C$, 'paintComponent$java_awt_Graphics$java_awt_Component$java_awt_Container$I$I$I$I', function (g, c, p, x, y, w, h) { +C$.getCellRendererPane$java_awt_Component$java_awt_Container(c, p).paintComponent$java_awt_Graphics$java_awt_Component$java_awt_Container$I$I$I$I$Z(g, c, p, x, y, w, h, false); +}, 1); + +Clazz_newMeth(C$, 'paintComponent$java_awt_Graphics$java_awt_Component$java_awt_Container$java_awt_Rectangle', function (g, c, p, r) { +C$.paintComponent$java_awt_Graphics$java_awt_Component$java_awt_Container$I$I$I$I(g, c, p, r.x, r.y, r.width, r.height); +}, 1); + +Clazz_newMeth(C$, 'getCellRendererPane$java_awt_Component$java_awt_Container', function (c, p) { +var shell=c.getParent$(); +if (Clazz_instanceOf(shell, "javax.swing.CellRendererPane")) { +if (shell.getParent$() !== p ) { +p.add$java_awt_Component(shell); +}} else { +shell=$I$(12).getInstance$S$Z("javax.swing.CellRendererPane", false); +shell.add$java_awt_Component(c); +p.add$java_awt_Component(shell); +}return shell; +}, 1); + +Clazz_newMeth(C$, 'updateComponentTreeUI$java_awt_Component', function (c) { +C$.updateComponentTreeUI0$java_awt_Component(c); +c.invalidate$(); +c.validate$(); +(c).秘repaint$(); +}, 1); + +Clazz_newMeth(C$, 'updateComponentTreeUI0$java_awt_Component', function (c) { +if (Clazz_instanceOf(c, "javax.swing.JComponent")) { +var jc=c; +jc.updateUI$(); +var jpm=jc.getComponentPopupMenu$(); +if (jpm != null ) { +C$.updateComponentTreeUI$java_awt_Component(jpm); +}}var children=null; +var n=0; +if (Clazz_instanceOf(c, "javax.swing.JMenu")) { +children=(c).getMenuArray$(); +n=(c).getMenuComponentCount$(); +} else if (Clazz_instanceOf(c, "java.awt.Container")) { +children=$I$(6).秘getChildArray$java_awt_Container(c); +n=(c).getComponentCount$(); +}for (var i=0; i < n; i++) { +C$.updateComponentTreeUI0$java_awt_Component(children[i]); +} +}, 1); + +Clazz_newMeth(C$, 'invokeLater$Runnable', function (doRun) { +$I$(13).invokeLater$Runnable(doRun); +}, 1); + +Clazz_newMeth(C$, 'invokeAndWait$Runnable', function (doRun) { +$I$(13).invokeAndWait$Runnable(doRun); +}, 1); + +Clazz_newMeth(C$, 'isEventDispatchThread$', function () { +return $I$(13).isDispatchThread$(); +}, 1); + +Clazz_newMeth(C$, 'findFocusOwner$java_awt_Component', function (c) { +var focusOwner=$I$(14).getCurrentKeyboardFocusManager$().getFocusOwner$(); +for (var temp=focusOwner; temp != null ; temp=(temp.isWindowOrJSApplet$() ? null : temp.getParent$())) { +if (temp === c ) { +return focusOwner; +}} +return null; +}, 1); + +Clazz_newMeth(C$, 'getRootPane$java_awt_Component', function (c) { +if (Clazz_instanceOf(c, "javax.swing.RootPaneContainer")) { +return (c).getRootPane$(); +}for (; c != null ; c=c.getParent$()) { +if (Clazz_instanceOf(c, "javax.swing.JRootPane")) { +return c; +}} +return null; +}, 1); + +Clazz_newMeth(C$, 'getRoot$java_awt_Component', function (c) { +for (var p=c; p != null ; p=p.getParent$()) { +if (p.isWindowOrJSApplet$()) { +return p; +}} +return null; +}, 1); + +Clazz_newMeth(C$, 'isValidKeyEventForKeyBindings$java_awt_event_KeyEvent', function (e) { +if (e.getID$() == 400) { +var mod=e.getModifiers$(); +if (((mod & 8) != 0) && ((mod & 2) == 0) ) { +return false; +}} else { +switch (e.getKeyCode$()) { +case 16: +case 17: +case 18: +case 65406: +case 157: +return false; +} +}return true; +}, 1); + +Clazz_newMeth(C$, 'notifyAction$javax_swing_Action$javax_swing_KeyStroke$java_awt_event_KeyEvent$O$I', function (action, ks, event, sender, modifiers) { +if (action == null ) { +return false; +}if (Clazz_instanceOf(action, "sun.swing.UIAction")) { +if (!(action).isEnabled$O(sender)) { +return false; +}} else if (!action.isEnabled$()) { +return false; +}var commandO; +var stayNull; +commandO=action.getValue$S("ActionCommandKey"); +if (commandO == null && $I$(15).isActionStandin$javax_swing_Action(action) ) { +stayNull=true; +} else { +stayNull=false; +}var command; +if (commandO != null ) { +command=commandO.toString(); +} else if (!stayNull && event.getKeyChar$() != "\uffff" ) { +command=String.valueOf$C(event.getKeyChar$()); +} else { +command=null; +}action.actionPerformed$(Clazz_new_($I$(16).c$$O$I$S$J$I,[sender, 1001, command, event.getWhen$(), modifiers])); +return true; +}, 1); + +Clazz_newMeth(C$, 'replaceUIInputMap$javax_swing_JComponent$I$javax_swing_InputMap', function (component, type, uiInputMap) { +var map=component.getInputMap$I$Z(type, (uiInputMap != null )); +while (map != null ){ +var parent=map.getParent$(); +if (parent == null || (Clazz_instanceOf(parent, "javax.swing.plaf.UIResource")) ) { +map.setParent$javax_swing_InputMap(uiInputMap); +return; +}map=parent; +} +}, 1); + +Clazz_newMeth(C$, 'replaceUIActionMap$javax_swing_JComponent$javax_swing_ActionMap', function (component, uiActionMap) { +var map=component.getActionMap$Z((uiActionMap != null )); +while (map != null ){ +var parent=map.getParent$(); +if (parent == null || (Clazz_instanceOf(parent, "javax.swing.plaf.UIResource")) && (!(Clazz_instanceOf(uiActionMap, "javax.swing.plaf.UIResource")) || (uiActionMap._key == parent._key ||false) ) ) { +map.setParent$javax_swing_ActionMap(uiActionMap); +return; +}map=parent; +} +}, 1); + +Clazz_newMeth(C$, 'getUIInputMap$javax_swing_JComponent$I', function (component, condition) { +var map=component.getInputMap$I$Z(condition, false); +while (map != null ){ +var parent=map.getParent$(); +if (Clazz_instanceOf(parent, "javax.swing.plaf.UIResource")) { +return parent; +}map=parent; +} +return null; +}, 1); + +Clazz_newMeth(C$, 'getUIActionMap$javax_swing_JComponent', function (component) { +var map=component.getActionMap$Z(false); +while (map != null ){ +var parent=map.getParent$(); +if (Clazz_instanceOf(parent, "javax.swing.plaf.UIResource")) { +return parent; +}map=parent; +} +return null; +}, 1); + +Clazz_newMeth(C$, 'getSharedOwnerFrame$', function () { +var p=$I$(17).getAppletViewer$(); +var f=p.sharedOwnerFrame; +return (f == null ? (p.sharedOwnerFrame=Clazz_new_($I$(18))) : f); +}, 1); + +Clazz_newMeth(C$, 'getSharedOwnerFrameShutdownListener$', function () { +var sharedOwnerFrame=C$.getSharedOwnerFrame$(); +return sharedOwnerFrame; +}, 1); + +Clazz_newMeth(C$, 'appContextGet$O', function (key) { +return $I$(19).getAppContext$().get$O(key); +}, 1); + +Clazz_newMeth(C$, 'appContextPut$O$O', function (key, value) { +$I$(19).getAppContext$().put$O$O(key, value); +}, 1); + +Clazz_newMeth(C$, 'appContextRemove$O', function (key) { +$I$(19).getAppContext$().remove$O(key); +}, 1); + +Clazz_newMeth(C$, 'loadSystemClass$S', function (className) { +return Clazz_forName(className, true, $I$(20).currentThread$().getContextClassLoader$()); +}, 1); + +Clazz_newMeth(C$, 'isLeftToRight$java_awt_Component', function (c) { +return c.getComponentOrientation$().isLeftToRight$(); +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.$init$.apply(this); +throw Clazz_new_($I$(5).c$$S,["SwingUtilities is just a container for static methods"]); +}, 1); + +Clazz_newMeth(C$, 'doesIconReferenceImage$javax_swing_Icon$java_awt_Image', function (icon, image) { +var iconImage=(icon != null && (Clazz_instanceOf(icon, "javax.swing.ImageIcon")) ) ? (icon).getImage$() : null; +return (iconImage === image ); +}, 1); + +Clazz_newMeth(C$, 'findDisplayedMnemonicIndex$S$I', function (text, mnemonic) { +if (text == null || mnemonic == 0 ) { +return -1; +}var uc=Character.toUpperCase$C(String.fromCharCode(mnemonic)); +var lc=Character.toLowerCase$C(String.fromCharCode(mnemonic)); +var uci=text.indexOf$I(uc); +var lci=text.indexOf$I(lc); +if (uci == -1) { +return lci; +} else if (lci == -1) { +return uci; +} else { +return (lci < uci) ? lci : uci; +}}, 1); + +Clazz_newMeth(C$, 'calculateInnerArea$javax_swing_JComponent$java_awt_Rectangle', function (c, r) { +if (c == null ) { +return null; +}var rect=r; +var insets=c.getInsets$(); +if (rect == null ) { +rect=Clazz_new_($I$(3)); +}rect.x=insets.left; +rect.y=insets.top; +rect.width=c.getWidth$() - insets.left - insets.right ; +rect.height=c.getHeight$() - insets.top - insets.bottom ; +return rect; +}, 1); + +Clazz_newMeth(C$, 'updateRendererOrEditorUI$O', function (rendererOrEditor) { +if (rendererOrEditor == null ) { +return; +}var component=null; +if (Clazz_instanceOf(rendererOrEditor, "java.awt.Component")) { +component=rendererOrEditor; +}if (Clazz_instanceOf(rendererOrEditor, "javax.swing.DefaultCellEditor")) { +component=(rendererOrEditor).getComponent$(); +}if (component != null ) { +C$.updateComponentTreeUI$java_awt_Component(component); +}}, 1); + +Clazz_newMeth(C$, 'getUnwrappedParent$java_awt_Component', function (component) { +var parent=component.getParent$(); +while (Clazz_instanceOf(parent, "javax.swing.JLayer")){ +parent=parent.getParent$(); +} +return parent; +}, 1); +; +(function(){var C$=Clazz_newClass(P$.SwingUtilities, "SharedOwnerFrame", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'javax.swing.JFrame', 'java.awt.event.WindowListener'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.superclazz.c$$O$O$O$O.apply(this, [null, null, null, null]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'addNotify$', function () { +this.updateUI$(); +this.getOrCreatePeer$(); +C$.superclazz.prototype.addNotify$.apply(this, []); +this.installListeners$(); +}); + +Clazz_newMeth(C$, 'installListeners$', function () { +var windows=this.getOwnedWindows$(); +for (var ind=0; ind < windows.length; ind++) { +var window=windows[ind]; +if (window != null ) { +window.removeWindowListener$java_awt_event_WindowListener(this); +window.addWindowListener$java_awt_event_WindowListener(this); +}} +}); + +Clazz_newMeth(C$, 'windowClosed$java_awt_event_WindowEvent', function (e) { +var windows=this.getOwnedWindows$(); +for (var ind=0; ind < windows.length; ind++) { +var window=windows[ind]; +if (window != null ) { +if (window.isDisplayable$()) { +return; +}window.removeWindowListener$java_awt_event_WindowListener(this); +}this.dispose$(); +} +}); + +Clazz_newMeth(C$, 'windowOpened$java_awt_event_WindowEvent', function (e) { +}); + +Clazz_newMeth(C$, 'windowClosing$java_awt_event_WindowEvent', function (e) { +}); + +Clazz_newMeth(C$, 'windowIconified$java_awt_event_WindowEvent', function (e) { +}); + +Clazz_newMeth(C$, 'windowDeiconified$java_awt_event_WindowEvent', function (e) { +}); + +Clazz_newMeth(C$, 'windowActivated$java_awt_event_WindowEvent', function (e) { +}); + +Clazz_newMeth(C$, 'windowDeactivated$java_awt_event_WindowEvent', function (e) { +}); + +Clazz_newMeth(C$, 'show$', function () { +}); + +Clazz_newMeth(C$, 'dispose$', function () { +}); +})() +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 13:00:40 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing.text"),p$1={},p$2={},I$=[[0,'javax.swing.text.StyleConstants',['javax.swing.text.AbstractDocument','.AbstractElement'],'java.util.Vector','javax.swing.text.StateInvariantError','java.util.Hashtable',['javax.swing.text.AbstractDocument','.UndoRedoDocumentEvent'],['javax.swing.event.DocumentEvent','.EventType'],'javax.swing.UIManager','javax.swing.event.EventListenerList','javax.swing.text.StyleContext','javax.swing.event.DocumentListener','javax.swing.event.UndoableEditListener',['javax.swing.text.AbstractDocument','.DefaultDocumentEvent'],'javax.swing.text.Utilities','javax.swing.event.UndoableEditEvent','javax.swing.text.Element',['javax.swing.text.AbstractDocument','.DefaultFilterBypass'],'Boolean','javax.swing.text.SegmentCache',['javax.swing.text.AbstractDocument','.LeafElement'],['javax.swing.text.AbstractDocument','.BranchElement']]],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "AbstractDocument", function(){ +Clazz_newInstance(this, arguments,0,C$); +}, null, 'javax.swing.text.Document'); +C$.MultiByteProperty=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.MultiByteProperty="multiByte"; +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.documentProperties=null; +this.listenerList=null; +this.data=null; +this.context=null; +this.bidiRoot=null; +this.documentFilter=null; +this.filterBypass=null; +this.editor=null; +this.isAWT=false; +this.currentDot=0; +this.currentMark=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.documentProperties=null; +this.listenerList=Clazz_new_($I$(9)); +}, 1); + +Clazz_newMeth(C$, 'c$$javax_swing_text_AbstractDocument_Content', function (data) { +C$.c$$javax_swing_text_AbstractDocument_Content$javax_swing_text_AbstractDocument_AttributeContext.apply(this, [data, $I$(10).getDefaultStyleContext$()]); +}, 1); + +Clazz_newMeth(C$, 'c$$javax_swing_text_AbstractDocument_Content$javax_swing_text_AbstractDocument_AttributeContext', function (data, context) { +C$.$init$.apply(this); +this.data=data; +this.context=context; +}, 1); + +Clazz_newMeth(C$, 'getDocumentProperties$', function () { +if (this.documentProperties == null ) { +this.documentProperties=Clazz_new_($I$(5).c$$I,[2]); +}return this.documentProperties; +}); + +Clazz_newMeth(C$, 'setDocumentProperties$java_util_Dictionary', function (x) { +this.documentProperties=x; +}); + +Clazz_newMeth(C$, 'fireInsertUpdate$javax_swing_event_DocumentEvent', function (e) { +try { +var listeners=this.listenerList.getListenerList$(); +for (var i=listeners.length - 2; i >= 0; i-=2) { +if (listeners[i] === Clazz_getClass($I$(11),['changedUpdate$javax_swing_event_DocumentEvent','insertUpdate$javax_swing_event_DocumentEvent','removeUpdate$javax_swing_event_DocumentEvent']) ) { +(listeners[i + 1]).insertUpdate$javax_swing_event_DocumentEvent(e); +}} +} finally { +} +}); + +Clazz_newMeth(C$, 'fireChangedUpdate$javax_swing_event_DocumentEvent', function (e) { +try { +var listeners=this.listenerList.getListenerList$(); +for (var i=listeners.length - 2; i >= 0; i-=2) { +if (listeners[i] === Clazz_getClass($I$(11),['changedUpdate$javax_swing_event_DocumentEvent','insertUpdate$javax_swing_event_DocumentEvent','removeUpdate$javax_swing_event_DocumentEvent']) ) { +(listeners[i + 1]).changedUpdate$javax_swing_event_DocumentEvent(e); +}} +} finally { +} +}); + +Clazz_newMeth(C$, 'fireRemoveUpdate$javax_swing_event_DocumentEvent', function (e) { +try { +var listeners=this.listenerList.getListenerList$(); +for (var i=listeners.length - 2; i >= 0; i-=2) { +if (listeners[i] === Clazz_getClass($I$(11),['changedUpdate$javax_swing_event_DocumentEvent','insertUpdate$javax_swing_event_DocumentEvent','removeUpdate$javax_swing_event_DocumentEvent']) ) { +(listeners[i + 1]).removeUpdate$javax_swing_event_DocumentEvent(e); +}} +} finally { +} +}); + +Clazz_newMeth(C$, 'fireUndoableEditUpdate$javax_swing_event_UndoableEditEvent', function (e) { +var listeners=this.listenerList.getListenerList$(); +for (var i=listeners.length - 2; i >= 0; i-=2) { +if (listeners[i] === Clazz_getClass($I$(12),['undoableEditHappened$javax_swing_event_UndoableEditEvent']) ) { +(listeners[i + 1]).undoableEditHappened$(e); +}} +}); + +Clazz_newMeth(C$, 'getListeners$Class', function (listenerType) { +return this.listenerList.getListeners$Class(listenerType); +}); + +Clazz_newMeth(C$, 'getAsynchronousLoadPriority$', function () { +var loadPriority=this.getProperty$O("load priority"); +if (loadPriority != null ) { +return loadPriority.intValue$(); +}return -1; +}); + +Clazz_newMeth(C$, 'setAsynchronousLoadPriority$I', function (p) { +var loadPriority=(p >= 0) ? new Integer(p) : null; +this.putProperty$O$O("load priority", loadPriority); +}); + +Clazz_newMeth(C$, 'setDocumentFilter$javax_swing_text_DocumentFilter', function (filter) { +this.documentFilter=filter; +}); + +Clazz_newMeth(C$, 'getDocumentFilter$', function () { +return this.documentFilter; +}); + +Clazz_newMeth(C$, 'render$Runnable', function (r) { +try { +r.run$(); +} finally { +} +}); + +Clazz_newMeth(C$, 'getLength$', function () { +return this.data.length$() - 1; +}); + +Clazz_newMeth(C$, 'addDocumentListener$javax_swing_event_DocumentListener', function (listener) { +this.listenerList.add$Class$TT(Clazz_getClass($I$(11),['changedUpdate$javax_swing_event_DocumentEvent','insertUpdate$javax_swing_event_DocumentEvent','removeUpdate$javax_swing_event_DocumentEvent']), listener); +}); + +Clazz_newMeth(C$, 'removeDocumentListener$javax_swing_event_DocumentListener', function (listener) { +this.listenerList.remove$Class$TT(Clazz_getClass($I$(11),['changedUpdate$javax_swing_event_DocumentEvent','insertUpdate$javax_swing_event_DocumentEvent','removeUpdate$javax_swing_event_DocumentEvent']), listener); +}); + +Clazz_newMeth(C$, 'getDocumentListeners$', function () { +return this.listenerList.getListeners$Class(Clazz_getClass($I$(11),['changedUpdate$javax_swing_event_DocumentEvent','insertUpdate$javax_swing_event_DocumentEvent','removeUpdate$javax_swing_event_DocumentEvent'])); +}); + +Clazz_newMeth(C$, 'addUndoableEditListener$javax_swing_event_UndoableEditListener', function (listener) { +this.listenerList.add$Class$TT(Clazz_getClass($I$(12),['undoableEditHappened$javax_swing_event_UndoableEditEvent']), listener); +}); + +Clazz_newMeth(C$, 'removeUndoableEditListener$javax_swing_event_UndoableEditListener', function (listener) { +this.listenerList.remove$Class$TT(Clazz_getClass($I$(12),['undoableEditHappened$javax_swing_event_UndoableEditEvent']), listener); +}); + +Clazz_newMeth(C$, 'getUndoableEditListeners$', function () { +return this.listenerList.getListeners$Class(Clazz_getClass($I$(12),['undoableEditHappened$javax_swing_event_UndoableEditEvent'])); +}); + +Clazz_newMeth(C$, 'getProperty$O', function (key) { +return this.getDocumentProperties$().get$O(key); +}); + +Clazz_newMeth(C$, 'putProperty$O$O', function (key, value) { +if (value != null ) { +this.getDocumentProperties$().put$TK$TV(key, value); +} else { +this.getDocumentProperties$().remove$O(key); +}}); + +Clazz_newMeth(C$, 'remove$I$I', function (offs, len) { +var filter=this.getDocumentFilter$(); +this.writeLock$(); +try { +if (filter != null ) { +filter.remove$javax_swing_text_DocumentFilter_FilterBypass$I$I(p$2.getFilterBypass.apply(this, []), offs, len); +} else { +this.handleRemove$I$I(offs, len); +}} finally { +this.writeUnlock$(); +} +}); + +Clazz_newMeth(C$, 'handleRemove$I$I', function (offs, len) { +if (len > 0) { +if (offs < 0 || (offs + len) > this.getLength$() ) { +throw Clazz_new_(Clazz_load('javax.swing.text.BadLocationException').c$$S$I,["Invalid remove", this.getLength$() + 1]); +}var chng=Clazz_new_($I$(13).c$$I$I$javax_swing_event_DocumentEvent_EventType, [this, null, offs, len, $I$(7).REMOVE]); +var isComposedTextElement=false; +isComposedTextElement=$I$(14).isComposedTextElement$javax_swing_text_Document$I(this, offs); +this.removeUpdate$javax_swing_text_AbstractDocument_DefaultDocumentEvent(chng); +var u=this.data.remove$I$I(offs, len); +if (u != null ) { +chng.addEdit$javax_swing_undo_UndoableEdit(u); +}this.postRemoveUpdate$javax_swing_text_AbstractDocument_DefaultDocumentEvent(chng); +chng.end$(); +this.fireRemoveUpdate$javax_swing_event_DocumentEvent(chng); +if ((u != null ) && !isComposedTextElement ) { +this.fireUndoableEditUpdate$javax_swing_event_UndoableEditEvent(Clazz_new_($I$(15).c$$O$javax_swing_undo_UndoableEdit,[this, chng])); +}}}); + +Clazz_newMeth(C$, 'replace$I$I$S$javax_swing_text_AttributeSet', function (offset, length, text, attrs) { +if (length == 0 && (text == null || text.length$() == 0 ) ) { +return; +}var filter=this.getDocumentFilter$(); +this.writeLock$(); +try { +if (filter != null ) { +filter.replace$javax_swing_text_DocumentFilter_FilterBypass$I$I$S$javax_swing_text_AttributeSet(p$2.getFilterBypass.apply(this, []), offset, length, text, attrs); +} else { +if (length > 0) { +this.remove$I$I(offset, length); +}if (text != null && text.length$() > 0 ) { +this.insertString$I$S$javax_swing_text_AttributeSet(offset, text, attrs); +}}} finally { +this.writeUnlock$(); +} +}); + +Clazz_newMeth(C$, 'insertString$I$S$javax_swing_text_AttributeSet', function (offs, str, a) { +if ((str == null ) || (str.length$() == 0) ) { +return; +}var filter=this.getDocumentFilter$(); +this.writeLock$(); +try { +if (filter != null ) { +filter.insertString$javax_swing_text_DocumentFilter_FilterBypass$I$S$javax_swing_text_AttributeSet(p$2.getFilterBypass.apply(this, []), offs, str, a); +} else { +this.handleInsertString$I$S$javax_swing_text_AttributeSet(offs, str, a); +}} finally { +this.writeUnlock$(); +} +}); + +Clazz_newMeth(C$, 'handleInsertString$I$S$javax_swing_text_AttributeSet', function (offs, str, a) { +if ((str == null ) || (str.length$() == 0) ) { +return; +}var u=this.data.insertString$I$S(offs, str); +var e=Clazz_new_($I$(13).c$$I$I$javax_swing_event_DocumentEvent_EventType, [this, null, offs, str.length$(), $I$(7).INSERT]); +if (u != null ) { +e.addEdit$javax_swing_undo_UndoableEdit(u); +}this.insertUpdate$javax_swing_text_AbstractDocument_DefaultDocumentEvent$javax_swing_text_AttributeSet(e, a); +e.end$(); +this.fireInsertUpdate$javax_swing_event_DocumentEvent(e); +if (u != null && (a == null || !a.isDefined$O($I$(1).ComposedTextAttribute) ) ) { +this.fireUndoableEditUpdate$javax_swing_event_UndoableEditEvent(Clazz_new_($I$(15).c$$O$javax_swing_undo_UndoableEdit,[this, e])); +}}); + +Clazz_newMeth(C$, 'getText$I$I', function (offset, length) { +if (length < 0) { +throw Clazz_new_(Clazz_load('javax.swing.text.BadLocationException').c$$S$I,["Length must be positive", length]); +}var str=this.data.getString$I$I(offset, length); +return str; +}); + +Clazz_newMeth(C$, 'getText$I$I$javax_swing_text_Segment', function (offset, length, txt) { +if (length < 0) { +throw Clazz_new_(Clazz_load('javax.swing.text.BadLocationException').c$$S$I,["Length must be positive", length]); +}this.data.getChars$I$I$javax_swing_text_Segment(offset, length, txt); +}); + +Clazz_newMeth(C$, 'createPosition$I', function (offs) { +return this.data.createPosition$I(offs); +}); + +Clazz_newMeth(C$, 'getStartPosition$', function () { +var p; +try { +p=this.createPosition$I(0); +} catch (bl) { +if (Clazz_exceptionOf(bl,"javax.swing.text.BadLocationException")){ +p=null; +} else { +throw bl; +} +} +return p; +}); + +Clazz_newMeth(C$, 'getEndPosition$', function () { +var p; +try { +p=this.createPosition$I(this.data.length$()); +} catch (bl) { +if (Clazz_exceptionOf(bl,"javax.swing.text.BadLocationException")){ +p=null; +} else { +throw bl; +} +} +return p; +}); + +Clazz_newMeth(C$, 'getRootElements$', function () { +var elems=Clazz_array($I$(16), [2]); +elems[0]=this.getDefaultRootElement$(); +elems[1]=this.getBidiRootElement$(); +return elems; +}); + +Clazz_newMeth(C$, 'getFilterBypass', function () { +if (this.filterBypass == null ) { +this.filterBypass=Clazz_new_($I$(17), [this, null]); +}return this.filterBypass; +}, p$2); + +Clazz_newMeth(C$, 'getBidiRootElement$', function () { +return this.bidiRoot; +}); + +Clazz_newMeth(C$, 'isLeftToRight$I$I', function (p0, p1) { +return true; +}); + +Clazz_newMeth(C$, 'getAttributeContext$', function () { +return this.context; +}); + +Clazz_newMeth(C$, 'insertUpdate$javax_swing_text_AbstractDocument_DefaultDocumentEvent$javax_swing_text_AttributeSet', function (chng, attr) { +if (chng.type === $I$(7).INSERT && chng.getLength$() > 0 && !$I$(18).TRUE.equals$O(this.getProperty$O(C$.MultiByteProperty)) ) { +var segment=$I$(19).getSharedSegment$(); +try { +this.getText$I$I$javax_swing_text_Segment(chng.getOffset$(), chng.getLength$(), segment); +segment.first$(); +do { +if (segment.current$().$c() > 255) { +this.putProperty$O$O(C$.MultiByteProperty, $I$(18).TRUE); +break; +}} while (segment.next$() != "\uffff"); +} catch (ble) { +if (Clazz_exceptionOf(ble,"javax.swing.text.BadLocationException")){ +} else { +throw ble; +} +} +$I$(19).releaseSharedSegment$javax_swing_text_Segment(segment); +}}); + +Clazz_newMeth(C$, 'removeUpdate$javax_swing_text_AbstractDocument_DefaultDocumentEvent', function (chng) { +}); + +Clazz_newMeth(C$, 'postRemoveUpdate$javax_swing_text_AbstractDocument_DefaultDocumentEvent', function (chng) { +}); + +Clazz_newMeth(C$, 'getContent$', function () { +return this.data; +}); + +Clazz_newMeth(C$, 'createLeafElement$javax_swing_text_Element$javax_swing_text_AttributeSet$I$I', function (parent, a, p0, p1) { +return Clazz_new_($I$(20).c$$javax_swing_text_Element$javax_swing_text_AttributeSet$I$I, [this, null, parent, a, p0, p1]); +}); + +Clazz_newMeth(C$, 'createBranchElement$javax_swing_text_Element$javax_swing_text_AttributeSet', function (parent, a) { +return Clazz_new_($I$(21).c$$javax_swing_text_Element$javax_swing_text_AttributeSet, [this, null, parent, a]); +}); + +Clazz_newMeth(C$, 'writeLock$', function () { +}); + +Clazz_newMeth(C$, 'writeUnlock$', function () { +}); + +Clazz_newMeth(C$, 'readLock$', function () { +}); + +Clazz_newMeth(C$, 'readUnlock$', function () { +}); + +Clazz_newMeth(C$, 'replace$I$I$S$javax_swing_text_AttributeSet$javax_swing_text_JTextComponent', function (offset, length, text, attrs, c) { +this.editor=c; +this.isAWT=c.秘isAWT$(); +if (this.isAWT) { +this.currentDot=c.getCaret$().getDot$(); +this.currentMark=c.getCaret$().getMark$(); +}this.replace$I$I$S$javax_swing_text_AttributeSet(offset, length, text, attrs); +}); + +Clazz_newMeth(C$, 'resetAWTScroll$', function () { +if (this.isAWT) { +this.editor.getCaret$().setDot$I(this.currentMark); +this.editor.getCaret$().moveDot$I(this.currentDot); +}}); +; +(function(){var C$=Clazz_newInterface(P$.AbstractDocument, "Content", function(){ +}); +})() +; +(function(){var C$=Clazz_newInterface(P$.AbstractDocument, "AttributeContext", function(){ +}); +})() +; +(function(){var C$=Clazz_newClass(P$.AbstractDocument, "AbstractElement", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, null, ['javax.swing.text.Element', 'javax.swing.text.MutableAttributeSet', 'javax.swing.tree.TreeNode']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.parent=null; +this.attributes=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$javax_swing_text_Element$javax_swing_text_AttributeSet', function (parent, a) { +C$.$init$.apply(this); +this.parent=parent; +this.attributes=this.this$0.getAttributeContext$.apply(this.this$0, []).getEmptySet$(); +if (a != null ) { +this.addAttributes$javax_swing_text_AttributeSet(a); +}}, 1); + +Clazz_newMeth(C$, 'getAttributeCount$', function () { +return this.attributes.getAttributeCount$(); +}); + +Clazz_newMeth(C$, 'isDefined$O', function (attrName) { +return this.attributes.isDefined$O(attrName); +}); + +Clazz_newMeth(C$, 'isEqual$javax_swing_text_AttributeSet', function (attr) { +return this.attributes.isEqual$javax_swing_text_AttributeSet(attr); +}); + +Clazz_newMeth(C$, 'copyAttributes$', function () { +return this.attributes.copyAttributes$(); +}); + +Clazz_newMeth(C$, 'getAttribute$O', function (attrName) { +var value=this.attributes.getAttribute$O(attrName); +if (value == null ) { +var a=(this.parent != null ) ? this.parent.getAttributes$() : null; +if (a != null ) { +value=a.getAttribute$O(attrName); +}}return value; +}); + +Clazz_newMeth(C$, 'getAttributeNames$', function () { +return this.attributes.getAttributeNames$(); +}); + +Clazz_newMeth(C$, 'containsAttribute$O$O', function (name, value) { +return this.attributes.containsAttribute$O$O(name, value); +}); + +Clazz_newMeth(C$, 'containsAttributes$javax_swing_text_AttributeSet', function (attrs) { +return this.attributes.containsAttributes$javax_swing_text_AttributeSet(attrs); +}); + +Clazz_newMeth(C$, 'getResolveParent$', function () { +var a=this.attributes.getResolveParent$(); +if ((a == null ) && (this.parent != null ) ) { +a=this.parent.getAttributes$(); +}return a; +}); + +Clazz_newMeth(C$, 'addAttribute$O$O', function (name, value) { +p$1.checkForIllegalCast.apply(this, []); +var context=this.this$0.getAttributeContext$.apply(this.this$0, []); +this.attributes=context.addAttribute$javax_swing_text_AttributeSet$O$O(this.attributes, name, value); +}); + +Clazz_newMeth(C$, 'addAttributes$javax_swing_text_AttributeSet', function (attr) { +p$1.checkForIllegalCast.apply(this, []); +var context=this.this$0.getAttributeContext$.apply(this.this$0, []); +this.attributes=context.addAttributes$javax_swing_text_AttributeSet$javax_swing_text_AttributeSet(this.attributes, attr); +}); + +Clazz_newMeth(C$, 'removeAttribute$O', function (name) { +p$1.checkForIllegalCast.apply(this, []); +var context=this.this$0.getAttributeContext$.apply(this.this$0, []); +this.attributes=context.removeAttribute$javax_swing_text_AttributeSet$O(this.attributes, name); +}); + +Clazz_newMeth(C$, 'removeAttributes$java_util_Enumeration', function (names) { +p$1.checkForIllegalCast.apply(this, []); +var context=this.this$0.getAttributeContext$.apply(this.this$0, []); +this.attributes=context.removeAttributes$javax_swing_text_AttributeSet$java_util_Enumeration(this.attributes, names); +}); + +Clazz_newMeth(C$, 'removeAttributes$javax_swing_text_AttributeSet', function (attrs) { +p$1.checkForIllegalCast.apply(this, []); +var context=this.this$0.getAttributeContext$.apply(this.this$0, []); +if (attrs === this ) { +this.attributes=context.getEmptySet$(); +} else { +this.attributes=context.removeAttributes$javax_swing_text_AttributeSet$javax_swing_text_AttributeSet(this.attributes, attrs); +}}); + +Clazz_newMeth(C$, 'setResolveParent$javax_swing_text_AttributeSet', function (parent) { +p$1.checkForIllegalCast.apply(this, []); +var context=this.this$0.getAttributeContext$.apply(this.this$0, []); +if (parent != null ) { +this.attributes=context.addAttribute$javax_swing_text_AttributeSet$O$O(this.attributes, $I$(1).ResolveAttribute, parent); +} else { +this.attributes=context.removeAttribute$javax_swing_text_AttributeSet$O(this.attributes, $I$(1).ResolveAttribute); +}}); + +Clazz_newMeth(C$, 'checkForIllegalCast', function () { +}, p$1); + +Clazz_newMeth(C$, 'getDocument$', function () { +return this.this$0; +}); + +Clazz_newMeth(C$, 'getParentElement$', function () { +return this.parent; +}); + +Clazz_newMeth(C$, 'getAttributes$', function () { +return this; +}); + +Clazz_newMeth(C$, 'getName$', function () { +if (this.attributes.isDefined$O("$ename")) { +return this.attributes.getAttribute$O("$ename"); +}return null; +}); + +Clazz_newMeth(C$, 'getChildAt$I', function (childIndex) { +return this.getElement$I(childIndex); +}); + +Clazz_newMeth(C$, 'getChildCount$', function () { +return this.getElementCount$(); +}); + +Clazz_newMeth(C$, 'getParent$', function () { +return this.getParentElement$(); +}); + +Clazz_newMeth(C$, 'getIndex$javax_swing_tree_TreeNode', function (node) { +for (var counter=this.getChildCount$() - 1; counter >= 0; counter--) if (this.getChildAt$I(counter) === node ) return counter; + +return -1; +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.AbstractDocument, "BranchElement", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, ['javax.swing.text.AbstractDocument','.AbstractElement']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.children=null; +this.nchildren=0; +this.lastIndex=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$javax_swing_text_Element$javax_swing_text_AttributeSet', function (parent, a) { +C$.superclazz.c$$javax_swing_text_Element$javax_swing_text_AttributeSet.apply(this, [parent, a]); +C$.$init$.apply(this); +this.children=Clazz_array($I$(2), [1]); +this.nchildren=0; +this.lastIndex=-1; +}, 1); + +Clazz_newMeth(C$, 'positionToElement$I', function (pos) { +var index=this.getElementIndex$I(pos); +var child=this.children[index]; +var p0=child.getStartOffset$(); +var p1=child.getEndOffset$(); +if ((pos >= p0) && (pos < p1) ) { +return child; +}return null; +}); + +Clazz_newMeth(C$, 'replace$I$I$javax_swing_text_ElementA', function (offset, length, elems) { +var delta=elems.length - length; +var src=offset + length; +var nmove=this.nchildren - src; +var dest=src + delta; +if ((this.nchildren + delta) >= this.children.length) { +var newLength=Math.max(2 * this.children.length, this.nchildren + delta); +var newChildren=Clazz_array($I$(2), [newLength]); +System.arraycopy$O$I$O$I$I(this.children, 0, newChildren, 0, offset); +System.arraycopy$O$I$O$I$I(elems, 0, newChildren, offset, elems.length); +System.arraycopy$O$I$O$I$I(this.children, src, newChildren, dest, nmove); +this.children=newChildren; +} else { +System.arraycopy$O$I$O$I$I(this.children, src, this.children, dest, nmove); +System.arraycopy$O$I$O$I$I(elems, 0, this.children, offset, elems.length); +}this.nchildren=this.nchildren + delta; +}); + +Clazz_newMeth(C$, 'toString', function () { +return "BranchElement(" + this.getName$() + ") " + this.getStartOffset$() + "," + this.getEndOffset$() + "\n" ; +}); + +Clazz_newMeth(C$, 'getName$', function () { +var nm=C$.superclazz.prototype.getName$.apply(this, []); +if (nm == null ) { +nm="paragraph"; +}return nm; +}); + +Clazz_newMeth(C$, 'getStartOffset$', function () { +return this.children[0].getStartOffset$(); +}); + +Clazz_newMeth(C$, 'getEndOffset$', function () { +var child=(this.nchildren > 0) ? this.children[this.nchildren - 1] : this.children[0]; +return child.getEndOffset$(); +}); + +Clazz_newMeth(C$, 'getElement$I', function (index) { +if (index < this.nchildren) { +return this.children[index]; +}return null; +}); + +Clazz_newMeth(C$, 'getElementCount$', function () { +return this.nchildren; +}); + +Clazz_newMeth(C$, 'getElementIndex$I', function (offset) { +var index; +var lower=0; +var upper=this.nchildren - 1; +var mid=0; +var p0=this.getStartOffset$(); +var p1; +if (this.nchildren == 0) { +return 0; +}if (offset >= this.getEndOffset$()) { +return this.nchildren - 1; +}if ((this.lastIndex >= lower) && (this.lastIndex <= upper) ) { +var lastHit=this.children[this.lastIndex]; +p0=lastHit.getStartOffset$(); +p1=lastHit.getEndOffset$(); +if ((offset >= p0) && (offset < p1) ) { +return this.lastIndex; +}if (offset < p0) { +upper=this.lastIndex; +} else { +lower=this.lastIndex; +}}while (lower <= upper){ +mid=lower + (((upper - lower)/2|0)); +var elem=this.children[mid]; +p0=elem.getStartOffset$(); +p1=elem.getEndOffset$(); +if ((offset >= p0) && (offset < p1) ) { +index=mid; +this.lastIndex=index; +return index; +} else if (offset < p0) { +upper=mid - 1; +} else { +lower=mid + 1; +}} +if (offset < p0) { +index=mid; +} else { +index=mid + 1; +}this.lastIndex=index; +return index; +}); + +Clazz_newMeth(C$, 'isLeaf$', function () { +return false; +}); + +Clazz_newMeth(C$, 'getAllowsChildren$', function () { +return true; +}); + +Clazz_newMeth(C$, 'children$', function () { +if (this.nchildren == 0) return null; +var tempVector=Clazz_new_($I$(3).c$$I,[this.nchildren]); +for (var counter=0; counter < this.nchildren; counter++) tempVector.addElement$TE(this.children[counter]); + +return tempVector.elements$(); +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.AbstractDocument, "LeafElement", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, ['javax.swing.text.AbstractDocument','.AbstractElement']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.p0=null; +this.p1=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$javax_swing_text_Element$javax_swing_text_AttributeSet$I$I', function (parent, a, offs0, offs1) { +C$.superclazz.c$$javax_swing_text_Element$javax_swing_text_AttributeSet.apply(this, [parent, a]); +C$.$init$.apply(this); +try { +this.p0=this.this$0.createPosition$I.apply(this.this$0, [offs0]); +this.p1=this.this$0.createPosition$I.apply(this.this$0, [offs1]); +} catch (e) { +if (Clazz_exceptionOf(e,"javax.swing.text.BadLocationException")){ +this.p0=null; +this.p1=null; +throw Clazz_new_($I$(4).c$$S,["Can\'t create Position references"]); +} else { +throw e; +} +} +}, 1); + +Clazz_newMeth(C$, 'toString', function () { +return "LeafElement(" + this.getName$() + ") " + this.p0 + "," + this.p1 + "\n" ; +}); + +Clazz_newMeth(C$, 'getStartOffset$', function () { +return this.p0.getOffset$(); +}); + +Clazz_newMeth(C$, 'getEndOffset$', function () { +return this.p1.getOffset$(); +}); + +Clazz_newMeth(C$, 'getName$', function () { +var nm=C$.superclazz.prototype.getName$.apply(this, []); +if (nm == null ) { +nm="content"; +}return nm; +}); + +Clazz_newMeth(C$, 'getElementIndex$I', function (pos) { +return -1; +}); + +Clazz_newMeth(C$, 'getElement$I', function (index) { +return null; +}); + +Clazz_newMeth(C$, 'getElementCount$', function () { +return 0; +}); + +Clazz_newMeth(C$, 'isLeaf$', function () { +return true; +}); + +Clazz_newMeth(C$, 'getAllowsChildren$', function () { +return false; +}); + +Clazz_newMeth(C$, 'children$', function () { +return null; +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.AbstractDocument, "DefaultDocumentEvent", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, 'javax.swing.undo.CompoundEdit', 'javax.swing.event.DocumentEvent'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.offset=0; +this.length=0; +this.changeLookup=null; +this.type=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$I$I$javax_swing_event_DocumentEvent_EventType', function (offs, len, type) { +C$.superclazz.c$.apply(this, []); +C$.$init$.apply(this); +this.offset=offs; +this.length=len; +this.type=type; +}, 1); + +Clazz_newMeth(C$, 'toString', function () { +return this.edits.toString(); +}); + +Clazz_newMeth(C$, 'addEdit$javax_swing_undo_UndoableEdit', function (anEdit) { +if ((this.changeLookup == null ) && (this.edits.size$() > 10) ) { +this.changeLookup=Clazz_new_($I$(5)); +var n=this.edits.size$(); +for (var i=0; i < n; i++) { +var o=this.edits.elementAt$I(i); +if (Clazz_instanceOf(o, "javax.swing.event.DocumentEvent.ElementChange")) { +var ec=o; +this.changeLookup.put$TK$TV(ec.getElement$(), ec); +}} +}if ((this.changeLookup != null ) && (Clazz_instanceOf(anEdit, "javax.swing.event.DocumentEvent.ElementChange")) ) { +var ec=anEdit; +this.changeLookup.put$TK$TV(ec.getElement$(), ec); +}return C$.superclazz.prototype.addEdit$javax_swing_undo_UndoableEdit.apply(this, [anEdit]); +}); + +Clazz_newMeth(C$, 'redo$', function () { +this.this$0.writeLock$.apply(this.this$0, []); +try { +C$.superclazz.prototype.redo$.apply(this, []); +var ev=Clazz_new_($I$(6).c$$javax_swing_text_AbstractDocument_DefaultDocumentEvent$Z, [this, null, this, false]); +if (this.type === $I$(7).INSERT ) { +this.this$0.fireInsertUpdate$javax_swing_event_DocumentEvent.apply(this.this$0, [ev]); +} else if (this.type === $I$(7).REMOVE ) { +this.this$0.fireRemoveUpdate$javax_swing_event_DocumentEvent.apply(this.this$0, [ev]); +} else { +this.this$0.fireChangedUpdate$javax_swing_event_DocumentEvent.apply(this.this$0, [ev]); +}} finally { +this.this$0.writeUnlock$.apply(this.this$0, []); +} +}); + +Clazz_newMeth(C$, 'undo$', function () { +this.this$0.writeLock$.apply(this.this$0, []); +try { +C$.superclazz.prototype.undo$.apply(this, []); +var ev=Clazz_new_($I$(6).c$$javax_swing_text_AbstractDocument_DefaultDocumentEvent$Z, [this, null, this, true]); +if (this.type === $I$(7).REMOVE ) { +this.this$0.fireInsertUpdate$javax_swing_event_DocumentEvent.apply(this.this$0, [ev]); +} else if (this.type === $I$(7).INSERT ) { +this.this$0.fireRemoveUpdate$javax_swing_event_DocumentEvent.apply(this.this$0, [ev]); +} else { +this.this$0.fireChangedUpdate$javax_swing_event_DocumentEvent.apply(this.this$0, [ev]); +}} finally { +this.this$0.writeUnlock$.apply(this.this$0, []); +} +}); + +Clazz_newMeth(C$, 'isSignificant$', function () { +return true; +}); + +Clazz_newMeth(C$, 'getPresentationName$', function () { +var type=this.getType$(); +if (type === $I$(7).INSERT ) return $I$(8).getString$O("AbstractDocument.additionText"); +if (type === $I$(7).REMOVE ) return $I$(8).getString$O("AbstractDocument.deletionText"); +return $I$(8).getString$O("AbstractDocument.styleChangeText"); +}); + +Clazz_newMeth(C$, 'getUndoPresentationName$', function () { +return $I$(8).getString$O("AbstractDocument.undoText") + " " + this.getPresentationName$() ; +}); + +Clazz_newMeth(C$, 'getRedoPresentationName$', function () { +return $I$(8).getString$O("AbstractDocument.redoText") + " " + this.getPresentationName$() ; +}); + +Clazz_newMeth(C$, 'getType$', function () { +return this.type; +}); + +Clazz_newMeth(C$, 'getOffset$', function () { +return this.offset; +}); + +Clazz_newMeth(C$, 'getLength$', function () { +return this.length; +}); + +Clazz_newMeth(C$, 'getDocument$', function () { +return this.this$0; +}); + +Clazz_newMeth(C$, 'getChange$javax_swing_text_Element', function (elem) { +if (this.changeLookup != null ) { +return this.changeLookup.get$O(elem); +}var n=this.edits.size$(); +for (var i=0; i < n; i++) { +var o=this.edits.elementAt$I(i); +if (Clazz_instanceOf(o, "javax.swing.event.DocumentEvent.ElementChange")) { +var c=o; +if (elem.equals$O(c.getElement$())) { +return c; +}}} +return null; +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.AbstractDocument, "UndoRedoDocumentEvent", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, null, 'javax.swing.event.DocumentEvent'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.src=null; +this.type=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.src=null; +this.type=null; +}, 1); + +Clazz_newMeth(C$, 'c$$javax_swing_text_AbstractDocument_DefaultDocumentEvent$Z', function (src, isUndo) { +C$.$init$.apply(this); +this.src=src; +if (isUndo) { +if (src.getType$().equals$O($I$(7).INSERT)) { +this.type=$I$(7).REMOVE; +} else if (src.getType$().equals$O($I$(7).REMOVE)) { +this.type=$I$(7).INSERT; +} else { +this.type=src.getType$(); +}} else { +this.type=src.getType$(); +}}, 1); + +Clazz_newMeth(C$, 'getSource$', function () { +return this.src; +}); + +Clazz_newMeth(C$, 'getOffset$', function () { +return this.src.getOffset$(); +}); + +Clazz_newMeth(C$, 'getLength$', function () { +return this.src.getLength$(); +}); + +Clazz_newMeth(C$, 'getDocument$', function () { +return this.src.getDocument$(); +}); + +Clazz_newMeth(C$, 'getType$', function () { +return this.type; +}); + +Clazz_newMeth(C$, 'getChange$javax_swing_text_Element', function (elem) { +return this.src.getChange$javax_swing_text_Element(elem); +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.AbstractDocument, "ElementEdit", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'javax.swing.undo.AbstractUndoableEdit', [['javax.swing.event.DocumentEvent','javax.swing.event.DocumentEvent.ElementChange']]); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.e=null; +this.index=0; +this.removed=null; +this.added=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$javax_swing_text_Element$I$javax_swing_text_ElementA$javax_swing_text_ElementA', function (e, index, removed, added) { +C$.superclazz.c$.apply(this, []); +C$.$init$.apply(this); +this.e=e; +this.index=index; +this.removed=removed; +this.added=added; +}, 1); + +Clazz_newMeth(C$, 'getElement$', function () { +return this.e; +}); + +Clazz_newMeth(C$, 'getIndex$', function () { +return this.index; +}); + +Clazz_newMeth(C$, 'getChildrenRemoved$', function () { +return this.removed; +}); + +Clazz_newMeth(C$, 'getChildrenAdded$', function () { +return this.added; +}); + +Clazz_newMeth(C$, 'redo$', function () { +C$.superclazz.prototype.redo$.apply(this, []); +var tmp=this.removed; +this.removed=this.added; +this.added=tmp; +(this.e).replace$I$I$javax_swing_text_ElementA(this.index, this.removed.length, this.added); +}); + +Clazz_newMeth(C$, 'undo$', function () { +C$.superclazz.prototype.undo$.apply(this, []); +(this.e).replace$I$I$javax_swing_text_ElementA(this.index, this.added.length, this.removed); +var tmp=this.removed; +this.removed=this.added; +this.added=tmp; +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.AbstractDocument, "DefaultFilterBypass", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, ['javax.swing.text.DocumentFilter','.FilterBypass']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'getDocument$', function () { +return this.this$0; +}); + +Clazz_newMeth(C$, 'remove$I$I', function (offset, length) { +this.this$0.handleRemove$I$I.apply(this.this$0, [offset, length]); +}); + +Clazz_newMeth(C$, 'insertString$I$S$javax_swing_text_AttributeSet', function (offset, string, attr) { +this.this$0.handleInsertString$I$S$javax_swing_text_AttributeSet.apply(this.this$0, [offset, string, attr]); +}); + +Clazz_newMeth(C$, 'replace$I$I$S$javax_swing_text_AttributeSet', function (offset, length, text, attrs) { +this.this$0.handleRemove$I$I.apply(this.this$0, [offset, length]); +this.this$0.handleInsertString$I$S$javax_swing_text_AttributeSet.apply(this.this$0, [offset, text, attrs]); +}); + +Clazz_newMeth(C$); +})() + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:14 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing.text"),I$=[]; +var C$=Clazz_newInterface(P$, "AttributeSet", function(){ +}); +; +(function(){var C$=Clazz_newInterface(P$.AttributeSet, "FontAttribute", function(){ +}); +})() +; +(function(){var C$=Clazz_newInterface(P$.AttributeSet, "ColorAttribute", function(){ +}); +})() +; +(function(){var C$=Clazz_newInterface(P$.AttributeSet, "CharacterAttribute", function(){ +}); +})() +; +(function(){var C$=Clazz_newInterface(P$.AttributeSet, "ParagraphAttribute", function(){ +}); +})() +; +(function(){var C$=Clazz_newInterface(P$.AttributeSet, "FontAttribute", function(){ +}); +})() +; +(function(){var C$=Clazz_newInterface(P$.AttributeSet, "ColorAttribute", function(){ +}); +})() +; +(function(){var C$=Clazz_newInterface(P$.AttributeSet, "CharacterAttribute", function(){ +}); +})() +; +(function(){var C$=Clazz_newInterface(P$.AttributeSet, "ParagraphAttribute", function(){ +}); +})() +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:14 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing.text"),I$=[]; +var C$=Clazz_newInterface(P$, "Caret"); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:14 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing.text"),p$1={},I$=[[0,'javax.swing.SwingUtilities','javax.swing.text.Segment',['javax.swing.text.Position','.Bias'],'Boolean','javax.swing.event.EventListenerList',['javax.swing.text.DefaultCaret','.Handler'],'javax.swing.event.ChangeListener',['javax.swing.text.DefaultCaret','.SafeScroller'],'java.awt.Point','javax.swing.event.ChangeEvent',['javax.swing.text.DefaultCaret','.DefaultFilterBypass']]],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "DefaultCaret", function(){ +Clazz_newInstance(this, arguments,0,C$); +}, 'java.awt.Rectangle', ['javax.swing.text.Caret', 'java.awt.event.FocusListener', 'java.awt.event.MouseListener', 'java.awt.event.MouseMotionListener']); +C$.biasRet=null; +C$.selectWord=null; +C$.selectLine=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.biasRet=Clazz_array($I$(3), [1]); +C$.selectWord=null; +C$.selectLine=null; +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.working=false; +this.listenerList=null; +this.changeEvent=null; +this.component=null; +this.updatePolicy=0; +this.visible=false; +this.active=false; +this.dot=0; +this.mark=0; +this.selectionTag=null; +this.selectionVisible=false; +this.magicCaretPosition=null; +this.dotBias=null; +this.markBias=null; +this.dotLTR=false; +this.markLTR=false; +this.handler=null; +this.flagXPoints=null; +this.flagYPoints=null; +this.filterBypass=null; +this.ownsSelection=false; +this.forceCaretPositionChange=false; +this.shouldHandleRelease=false; +this.selectedWordEvent=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.listenerList=Clazz_new_($I$(5)); +this.changeEvent=null; +this.updatePolicy=0; +this.handler=Clazz_new_($I$(6), [this, null]); +this.flagXPoints=Clazz_array(Integer.TYPE, [3]); +this.flagYPoints=Clazz_array(Integer.TYPE, [3]); +this.selectedWordEvent=null; +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +Clazz_super_(C$, this,1); +}, 1); + +Clazz_newMeth(C$, 'install$javax_swing_text_JTextComponent', function (c) { +this.component=c; +var doc=c.getDocument$(); +this.dot=this.mark=0; +this.dotLTR=this.markLTR=true; +this.dotBias=this.markBias=$I$(3).Forward; +if (doc != null ) { +doc.addDocumentListener$javax_swing_event_DocumentListener(this.handler); +}c.addPropertyChangeListener$java_beans_PropertyChangeListener(this.handler); +c.addFocusListener$java_awt_event_FocusListener(this); +c.addMouseListener$java_awt_event_MouseListener(this); +c.addMouseMotionListener$java_awt_event_MouseMotionListener(this); +if (this.component.hasFocus$()) { +this.focusGained$java_awt_event_FocusEvent(null); +}}); + +Clazz_newMeth(C$, 'deinstall$javax_swing_text_JTextComponent', function (c) { +c.removeMouseListener$java_awt_event_MouseListener(this); +c.removeMouseMotionListener$java_awt_event_MouseMotionListener(this); +c.removeFocusListener$java_awt_event_FocusListener(this); +c.removePropertyChangeListener$java_beans_PropertyChangeListener(this.handler); +var doc=c.getDocument$(); +if (doc != null ) { +doc.removeDocumentListener$javax_swing_event_DocumentListener(this.handler); +}{ +this.component=null; +}}); + +Clazz_newMeth(C$, 'addChangeListener$javax_swing_event_ChangeListener', function (l) { +this.listenerList.add$Class$TT(Clazz_getClass($I$(7),['stateChanged$javax_swing_event_ChangeEvent']), l); +}); + +Clazz_newMeth(C$, 'removeChangeListener$javax_swing_event_ChangeListener', function (l) { +this.listenerList.remove$Class$TT(Clazz_getClass($I$(7),['stateChanged$javax_swing_event_ChangeEvent']), l); +}); + +Clazz_newMeth(C$, 'getChangeListeners$', function () { +return this.listenerList.getListeners$Class(Clazz_getClass($I$(7),['stateChanged$javax_swing_event_ChangeEvent'])); +}); + +Clazz_newMeth(C$, 'setUpdatePolicy$I', function (policy) { +this.updatePolicy=policy; +}); + +Clazz_newMeth(C$, 'getUpdatePolicy$', function () { +return this.updatePolicy; +}); + +Clazz_newMeth(C$, 'getComponent$', function () { +return this.component; +}); + +Clazz_newMeth(C$, 'repaint$', function () { +}); + +Clazz_newMeth(C$, 'adjustVisibility$java_awt_Rectangle', function (nloc) { +if (this.component == null ) { +return; +}if ($I$(1).isEventDispatchThread$()) { +this.component.scrollRectToVisible$java_awt_Rectangle(nloc); +} else { +$I$(1).invokeLater$Runnable(Clazz_new_($I$(8).c$$java_awt_Rectangle, [this, null, nloc])); +}}); + +Clazz_newMeth(C$, 'getSelectionPainter$', function () { +return null; +}); + +Clazz_newMeth(C$, 'positionCaret$java_awt_event_MouseEvent', function (e) { +var pt=Clazz_new_($I$(9).c$$I$I,[e.getX$(), e.getY$()]); +(this.component.getUI$()).viewToModel$javax_swing_text_JTextComponent$java_awt_Point$javax_swing_text_Position_BiasA(this.component, pt, C$.biasRet); +if (pt.x >= 0) { +if (C$.biasRet[0] == null ) C$.biasRet[0]=$I$(3).Forward; +this.setDot$I$javax_swing_text_Position_Bias(pt.x, C$.biasRet[0]); +if (pt.y != pt.x) this.moveDot$I$javax_swing_text_Position_Bias(pt.y, C$.biasRet[0]); +}}); + +Clazz_newMeth(C$, 'getPosition$java_awt_event_MouseEvent$javax_swing_text_Position_BiasA', function (e, biasret) { +var pt=Clazz_new_($I$(9).c$$I$I,[e.getX$(), e.getY$()]); +var pos=(this.component.getUI$()).viewToModel$javax_swing_text_JTextComponent$java_awt_Point$javax_swing_text_Position_BiasA(this.component, pt, C$.biasRet); +System.out.println$S("def caret getPos " + e.getID$() + " " + pt ); +return pos; +}, p$1); + +Clazz_newMeth(C$, 'moveCaret$java_awt_event_MouseEvent', function (e) { +this.positionCaret$java_awt_event_MouseEvent(e); +}); + +Clazz_newMeth(C$, 'focusGained$java_awt_event_FocusEvent', function (e) { +if (this.component.isEnabled$()) { +if (this.component.isEditable$()) { +this.setVisible$Z(true); +}this.setSelectionVisible$Z(true); +}}); + +Clazz_newMeth(C$, 'focusLost$java_awt_event_FocusEvent', function (e) { +this.setVisible$Z(false); +this.setSelectionVisible$Z(this.ownsSelection || e.isTemporary$() ); +}); + +Clazz_newMeth(C$, 'mouseClicked$java_awt_event_MouseEvent', function (e) { +}); + +Clazz_newMeth(C$, 'mousePressed$java_awt_event_MouseEvent', function (e) { +if ($I$(1).isLeftMouseButton$java_awt_event_MouseEvent(e)) { +if (e.isConsumed$()) { +this.shouldHandleRelease=true; +} else { +this.shouldHandleRelease=false; +this.adjustCaretAndFocus$java_awt_event_MouseEvent(e); +}}this.working=false; +}); + +Clazz_newMeth(C$, 'adjustCaretAndFocus$java_awt_event_MouseEvent', function (e) { +this.working=true; +p$1.adjustCaret$java_awt_event_MouseEvent.apply(this, [e]); +p$1.adjustFocus$Z.apply(this, [false]); +this.working=false; +}); + +Clazz_newMeth(C$, 'adjustCaret$java_awt_event_MouseEvent', function (e) { +if ((e.getModifiers$() & 1) != 0 && this.getDot$() != -1 ) { +this.moveCaret$java_awt_event_MouseEvent(e); +} else { +this.positionCaret$java_awt_event_MouseEvent(e); +}}, p$1); + +Clazz_newMeth(C$, 'adjustFocus$Z', function (inWindow) { +if ((this.component != null ) && this.component.isEnabled$() && this.component.isRequestFocusEnabled$() ) { +if (inWindow) { +this.component.requestFocusInWindow$(); +} else { +this.component.requestFocus$(); +}}}, p$1); + +Clazz_newMeth(C$, 'mouseReleased$java_awt_event_MouseEvent', function (e) { +var isLeft=$I$(1).isLeftMouseButton$java_awt_event_MouseEvent(e); +if (!e.isConsumed$() && this.shouldHandleRelease && isLeft ) { +this.adjustCaretAndFocus$java_awt_event_MouseEvent(e); +}}); + +Clazz_newMeth(C$, 'mouseEntered$java_awt_event_MouseEvent', function (e) { +}); + +Clazz_newMeth(C$, 'mouseExited$java_awt_event_MouseEvent', function (e) { +}); + +Clazz_newMeth(C$, 'mouseDragged$java_awt_event_MouseEvent', function (e) { +if ((!e.isConsumed$()) && $I$(1).isLeftMouseButton$java_awt_event_MouseEvent(e) ) { +this.moveCaret$java_awt_event_MouseEvent(e); +}}); + +Clazz_newMeth(C$, 'mouseMoved$java_awt_event_MouseEvent', function (e) { +}); + +Clazz_newMeth(C$, 'paint$java_awt_Graphics', function (g) { +if (this.isVisible$()) { +}}); + +Clazz_newMeth(C$, 'fireStateChanged$', function () { +var listeners=this.listenerList.getListenerList$(); +for (var i=listeners.length - 2; i >= 0; i-=2) { +if (listeners[i] === Clazz_getClass($I$(7),['stateChanged$javax_swing_event_ChangeEvent']) ) { +if (this.changeEvent == null ) this.changeEvent=Clazz_new_($I$(10).c$$O,[this]); +(listeners[i + 1]).stateChanged$(this.changeEvent); +}} +}); + +Clazz_newMeth(C$, 'getListeners$Class', function (listenerType) { +return this.listenerList.getListeners$Class(listenerType); +}); + +Clazz_newMeth(C$, 'setSelectionVisible$Z', function (vis) { +}); + +Clazz_newMeth(C$, 'isSelectionVisible$', function () { +return this.selectionVisible; +}); + +Clazz_newMeth(C$, 'isActive$', function () { +return this.active; +}); + +Clazz_newMeth(C$, 'isVisible$', function () { +return this.visible; +}); + +Clazz_newMeth(C$, 'setVisible$Z', function (e) { +if (this.component != null ) { +this.active=e; +var mapper=this.component.getUI$(); +if (this.visible != e ) { +this.visible=e; +}}}); + +Clazz_newMeth(C$, 'setBlinkRate$I', function (rate) { +}); + +Clazz_newMeth(C$, 'getBlinkRate$', function () { +return 0; +}); + +Clazz_newMeth(C$, 'getDot$', function () { +return this.dot; +}); + +Clazz_newMeth(C$, 'getMark$', function () { +return this.mark; +}); + +Clazz_newMeth(C$, 'setDot$I', function (dot) { +this.setDot$I$javax_swing_text_Position_Bias(dot, $I$(3).Forward); +}); + +Clazz_newMeth(C$, 'moveDot$I', function (dot) { +this.moveDot$I$javax_swing_text_Position_Bias(dot, $I$(3).Forward); +}); + +Clazz_newMeth(C$, 'moveDot$I$javax_swing_text_Position_Bias', function (dot, dotBias) { +if (dotBias == null ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["null bias"]); +}if (!this.component.isEnabled$()) { +this.setDot$I$javax_swing_text_Position_Bias(dot, dotBias); +return; +}if (dot != this.dot) { +var filter=this.component.getNavigationFilter$(); +if (filter == null ) { +this.handleMoveDot$I$javax_swing_text_Position_Bias(dot, dotBias); +} else { +filter.moveDot$javax_swing_text_NavigationFilter_FilterBypass$I$javax_swing_text_Position_Bias(p$1.getFilterBypass.apply(this, []), dot, dotBias); +}}}); + +Clazz_newMeth(C$, 'handleMoveDot$I$javax_swing_text_Position_Bias', function (dot, dotBias) { +this.changeCaretPosition$I$javax_swing_text_Position_Bias(dot, dotBias); +}); + +Clazz_newMeth(C$, 'setDot$I$javax_swing_text_Position_Bias', function (dot, dotBias) { +if (dotBias == null ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["null bias"]); +}var filter=this.component.getNavigationFilter$(); +if (filter != null ) { +filter.setDot$javax_swing_text_NavigationFilter_FilterBypass$I$javax_swing_text_Position_Bias(p$1.getFilterBypass.apply(this, []), dot, dotBias); +} else { +this.handleSetDot$I$javax_swing_text_Position_Bias(dot, dotBias); +}}); + +Clazz_newMeth(C$, 'handleSetDot$I$javax_swing_text_Position_Bias', function (dot, dotBias) { +var doc=this.component.getDocument$(); +if (doc != null ) { +dot=Math.min(dot, doc.getLength$()); +}dot=Math.max(dot, 0); +if (dot == 0) dotBias=$I$(3).Forward; +this.mark=dot; +if (this.dot != dot || this.dotBias !== dotBias || this.selectionTag != null || this.forceCaretPositionChange ) { +this.changeCaretPosition$I$javax_swing_text_Position_Bias(dot, dotBias); +}this.markBias=this.dotBias; +this.markLTR=this.dotLTR; +}); + +Clazz_newMeth(C$, 'getDotBias$', function () { +return this.dotBias; +}); + +Clazz_newMeth(C$, 'getMarkBias$', function () { +return this.markBias; +}); + +Clazz_newMeth(C$, 'isDotLeftToRight$', function () { +return this.dotLTR; +}); + +Clazz_newMeth(C$, 'isMarkLeftToRight$', function () { +return this.markLTR; +}); + +Clazz_newMeth(C$, 'isPositionLTR$I$javax_swing_text_Position_Bias', function (position, bias) { +var doc=this.component.getDocument$(); +if (Clazz_instanceOf(doc, "javax.swing.text.AbstractDocument")) { +if (bias === $I$(3).Backward && --position < 0 ) position=0; +return (doc).isLeftToRight$I$I(position, position); +}return true; +}); + +Clazz_newMeth(C$, 'guessBiasForOffset$I$javax_swing_text_Position_Bias$Z', function (offset, lastBias, lastLTR) { +if (lastLTR != this.isPositionLTR$I$javax_swing_text_Position_Bias(offset, lastBias) ) { +lastBias=$I$(3).Backward; +} else if (lastBias !== $I$(3).Backward && lastLTR != this.isPositionLTR$I$javax_swing_text_Position_Bias(offset, $I$(3).Backward) ) { +lastBias=$I$(3).Backward; +}if (lastBias === $I$(3).Backward && offset > 0 ) { +try { +var s=Clazz_new_($I$(2)); +this.component.getDocument$().getText$I$I$javax_swing_text_Segment(offset - 1, 1, s); +if (s.count > 0 && s.array[s.offset] == "\n" ) { +lastBias=$I$(3).Forward; +}} catch (ble) { +if (Clazz_exceptionOf(ble,"javax.swing.text.BadLocationException")){ +} else { +throw ble; +} +} +}return lastBias; +}); + +Clazz_newMeth(C$, 'changeCaretPosition$I$javax_swing_text_Position_Bias', function (dot, dotBias) { +this.dot=dot; +this.dotBias=dotBias; +this.dotLTR=this.isPositionLTR$I$javax_swing_text_Position_Bias(dot, dotBias); +this.fireStateChanged$(); +if (false && !this.working ) p$1.updateSystemSelection.apply(this, []); +this.setMagicCaretPosition$java_awt_Point(null); +}); + +Clazz_newMeth(C$, 'repaintNewCaret$', function () { +}); + +Clazz_newMeth(C$, 'updateSystemSelection', function () { +(this.component.ui).updateJSCursorFromCaret$(); +}, p$1); + +Clazz_newMeth(C$, 'ensureValidPosition$', function () { +var length=this.component.getDocument$().getLength$(); +if (this.dot > length || this.mark > length ) { +this.handleSetDot$I$javax_swing_text_Position_Bias(length, $I$(3).Forward); +}}); + +Clazz_newMeth(C$, 'setMagicCaretPosition$java_awt_Point', function (p) { +this.magicCaretPosition=p; +}); + +Clazz_newMeth(C$, 'getMagicCaretPosition$', function () { +return this.magicCaretPosition; +}); + +Clazz_newMeth(C$, 'equals$O', function (obj) { +return (this === obj ); +}); + +Clazz_newMeth(C$, 'toString', function () { +var s="Dot=(" + this.dot + ", " + this.dotBias + ")" ; +s += " Mark=(" + this.mark + ", " + this.markBias + ")" ; +return s; +}); + +Clazz_newMeth(C$, 'getFilterBypass', function () { +if (this.filterBypass == null ) { +this.filterBypass=Clazz_new_($I$(11), [this, null]); +}return this.filterBypass; +}, p$1); + +Clazz_newMeth(C$, '_contains$I$I$I$I', function (X, Y, W, H) { +var w=this.width; +var h=this.height; +if ((w | h | W | H ) < 0) { +return false; +}var x=this.x; +var y=this.y; +if (X < x || Y < y ) { +return false; +}if (W > 0) { +w+=x; +W+=X; +if (W <= X) { +if (w >= x || W > w ) return false; +} else { +if (w >= x && W > w ) return false; +}} else if ((x + w) < X) { +return false; +}if (H > 0) { +h+=y; +H+=Y; +if (H <= Y) { +if (h >= y || H > h ) return false; +} else { +if (h >= y && H > h ) return false; +}} else if ((y + h) < Y) { +return false; +}return true; +}, p$1); + +Clazz_newMeth(C$, 'getCaretWidth$I', function (height) { +return 1; +}); +; +(function(){var C$=Clazz_newClass(P$.DefaultCaret, "SafeScroller", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, null, 'Runnable'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.r=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Rectangle', function (r) { +C$.$init$.apply(this); +this.r=r; +}, 1); + +Clazz_newMeth(C$, 'run$', function () { +if (this.this$0.component != null ) { +this.this$0.component.scrollRectToVisible$java_awt_Rectangle(this.r); +}}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.DefaultCaret, "Handler", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, null, ['java.beans.PropertyChangeListener', 'javax.swing.event.DocumentListener', 'java.awt.event.ActionListener']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) { +if (this.this$0.width == 0 || this.this$0.height == 0 ) { +if (this.this$0.component != null ) { +}}this.this$0.visible=!this.this$0.visible; +}); + +Clazz_newMeth(C$, 'insertUpdate$javax_swing_event_DocumentEvent', function (e) { +if (this.this$0.getUpdatePolicy$.apply(this.this$0, []) == 1 || (this.this$0.getUpdatePolicy$.apply(this.this$0, []) == 0 && !$I$(1).isEventDispatchThread$() ) ) { +if ((e.getOffset$() <= this.this$0.dot || e.getOffset$() <= this.this$0.mark ) && this.this$0.selectionTag != null ) { +try { +this.this$0.component.getHighlighter$().changeHighlight$O$I$I(this.this$0.selectionTag, Math.min(this.this$0.dot, this.this$0.mark), Math.max(this.this$0.dot, this.this$0.mark)); +} catch (e1) { +if (Clazz_exceptionOf(e1,"javax.swing.text.BadLocationException")){ +e1.printStackTrace$(); +} else { +throw e1; +} +} +}return; +}var adjust=0; +var offset=e.getOffset$(); +var length=e.getLength$(); +var newDot=this.this$0.dot; +var changed=($s$[0] = 0, $s$[0]); +if (Clazz_instanceOf(e, "javax.swing.text.AbstractDocument.UndoRedoDocumentEvent")) { +this.this$0.setDot$I.apply(this.this$0, [offset + length]); +return; +}if (newDot >= offset) { +newDot+=length; +changed=($s$[0] = changed|(1), $s$[0]); +}var newMark=this.this$0.mark; +if (newMark >= offset) { +newMark+=length; +changed=($s$[0] = changed|(2), $s$[0]); +}if (changed != 0) { +var dotBias=this.this$0.dotBias; +if (this.this$0.dot == offset) { +var doc=this.this$0.component.getDocument$(); +var isNewline; +try { +var s=Clazz_new_($I$(2)); +doc.getText$I$I$javax_swing_text_Segment(newDot - 1, 1, s); +isNewline=(s.count > 0 && s.array[s.offset] == "\n" ); +} catch (ble) { +if (Clazz_exceptionOf(ble,"javax.swing.text.BadLocationException")){ +isNewline=false; +} else { +throw ble; +} +} +if (isNewline) { +dotBias=$I$(3).Forward; +} else { +dotBias=$I$(3).Backward; +}}if (newMark == newDot) { +this.this$0.setDot$I$javax_swing_text_Position_Bias.apply(this.this$0, [newDot, dotBias]); +this.this$0.ensureValidPosition$.apply(this.this$0, []); +} else { +this.this$0.setDot$I$javax_swing_text_Position_Bias.apply(this.this$0, [newMark, this.this$0.markBias]); +if (this.this$0.getDot$.apply(this.this$0, []) == newMark) { +this.this$0.moveDot$I$javax_swing_text_Position_Bias.apply(this.this$0, [newDot, dotBias]); +}this.this$0.ensureValidPosition$.apply(this.this$0, []); +}}}); + +Clazz_newMeth(C$, 'removeUpdate$javax_swing_event_DocumentEvent', function (e) { +if (this.this$0.getUpdatePolicy$.apply(this.this$0, []) == 1 || (this.this$0.getUpdatePolicy$.apply(this.this$0, []) == 0 && !$I$(1).isEventDispatchThread$() ) ) { +var length=this.this$0.component.getDocument$().getLength$(); +this.this$0.dot=Math.min(this.this$0.dot, length); +this.this$0.mark=Math.min(this.this$0.mark, length); +if ((e.getOffset$() < this.this$0.dot || e.getOffset$() < this.this$0.mark ) && this.this$0.selectionTag != null ) { +try { +this.this$0.component.getHighlighter$().changeHighlight$O$I$I(this.this$0.selectionTag, Math.min(this.this$0.dot, this.this$0.mark), Math.max(this.this$0.dot, this.this$0.mark)); +} catch (e1) { +if (Clazz_exceptionOf(e1,"javax.swing.text.BadLocationException")){ +e1.printStackTrace$(); +} else { +throw e1; +} +} +}return; +}var offs0=e.getOffset$(); +var offs1=offs0 + e.getLength$(); +var adjust=0; +var newDot=this.this$0.dot; +var adjustDotBias=false; +var newMark=this.this$0.mark; +var adjustMarkBias=false; +if (Clazz_instanceOf(e, "javax.swing.text.AbstractDocument.UndoRedoDocumentEvent")) { +this.this$0.setDot$I.apply(this.this$0, [offs0]); +return; +}if (newDot >= offs1) { +newDot-=(offs1 - offs0); +if (newDot == offs1) { +adjustDotBias=true; +}} else if (newDot >= offs0) { +newDot=offs0; +adjustDotBias=true; +}if (newMark >= offs1) { +newMark-=(offs1 - offs0); +if (newMark == offs1) { +adjustMarkBias=true; +}} else if (newMark >= offs0) { +newMark=offs0; +adjustMarkBias=true; +}if (newMark == newDot) { +this.this$0.forceCaretPositionChange=true; +try { +this.this$0.setDot$I$javax_swing_text_Position_Bias.apply(this.this$0, [newDot, this.this$0.guessBiasForOffset$I$javax_swing_text_Position_Bias$Z.apply(this.this$0, [newDot, this.this$0.dotBias, this.this$0.dotLTR])]); +} finally { +this.this$0.forceCaretPositionChange=false; +} +this.this$0.ensureValidPosition$.apply(this.this$0, []); +} else { +var dotBias=this.this$0.dotBias; +var markBias=this.this$0.markBias; +if (adjustDotBias) { +dotBias=this.this$0.guessBiasForOffset$I$javax_swing_text_Position_Bias$Z.apply(this.this$0, [newDot, dotBias, this.this$0.dotLTR]); +}if (adjustMarkBias) { +markBias=this.this$0.guessBiasForOffset$I$javax_swing_text_Position_Bias$Z.apply(this.this$0, [this.this$0.mark, markBias, this.this$0.markLTR]); +}this.this$0.setDot$I$javax_swing_text_Position_Bias.apply(this.this$0, [newMark, markBias]); +if (this.this$0.getDot$.apply(this.this$0, []) == newMark) { +this.this$0.moveDot$I$javax_swing_text_Position_Bias.apply(this.this$0, [newDot, dotBias]); +}this.this$0.ensureValidPosition$.apply(this.this$0, []); +}}); + +Clazz_newMeth(C$, 'changedUpdate$javax_swing_event_DocumentEvent', function (e) { +if (this.this$0.getUpdatePolicy$.apply(this.this$0, []) == 1 || (this.this$0.getUpdatePolicy$.apply(this.this$0, []) == 0 && !$I$(1).isEventDispatchThread$() ) ) { +return; +}if (Clazz_instanceOf(e, "javax.swing.text.AbstractDocument.UndoRedoDocumentEvent")) { +this.this$0.setDot$I.apply(this.this$0, [e.getOffset$() + e.getLength$()]); +}}); + +Clazz_newMeth(C$, ['propertyChange$java_beans_PropertyChangeEvent','propertyChange$'], function (evt) { +var oldValue=evt.getOldValue$(); +var newValue=evt.getNewValue$(); +if ((Clazz_instanceOf(oldValue, "javax.swing.text.Document")) || (Clazz_instanceOf(newValue, "javax.swing.text.Document")) ) { +this.this$0.setDot$I.apply(this.this$0, [0]); +if (oldValue != null ) { +(oldValue).removeDocumentListener$javax_swing_event_DocumentListener(this); +}if (newValue != null ) { +(newValue).addDocumentListener$javax_swing_event_DocumentListener(this); +}} else if ("enabled".equals$O(evt.getPropertyName$())) { +var enabled=evt.getNewValue$(); +if (this.this$0.component.isFocusOwner$()) { +if (enabled === $I$(4).TRUE ) { +if (this.this$0.component.isEditable$()) { +this.this$0.setVisible$Z.apply(this.this$0, [true]); +}this.this$0.setSelectionVisible$Z.apply(this.this$0, [true]); +} else { +this.this$0.setVisible$Z.apply(this.this$0, [false]); +this.this$0.setSelectionVisible$Z.apply(this.this$0, [false]); +}}}}); +var $s$ = new Int16Array(1); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.DefaultCaret, "DefaultFilterBypass", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, ['javax.swing.text.NavigationFilter','.FilterBypass']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'getCaret$', function () { +return this.this$0; +}); + +Clazz_newMeth(C$, 'setDot$I$javax_swing_text_Position_Bias', function (dot, bias) { +this.this$0.handleSetDot$I$javax_swing_text_Position_Bias.apply(this.this$0, [dot, bias]); +}); + +Clazz_newMeth(C$, 'moveDot$I$javax_swing_text_Position_Bias', function (dot, bias) { +this.this$0.handleMoveDot$I$javax_swing_text_Position_Bias.apply(this.this$0, [dot, bias]); +}); + +Clazz_newMeth(C$); +})() +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:15 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing.text"),p$1={},I$=[[0,'javax.swing.UIManager','java.awt.Rectangle','java.awt.Point',['javax.swing.text.Position','.Bias'],'javax.swing.text.Utilities',['javax.swing.text.DefaultEditorKit','.BeginWordAction'],['javax.swing.text.DefaultEditorKit','.EndWordAction'],['javax.swing.text.DefaultEditorKit','.BeginLineAction'],['javax.swing.text.DefaultEditorKit','.EndLineAction'],['javax.swing.text.DefaultEditorKit','.BeginParagraphAction'],['javax.swing.text.DefaultEditorKit','.EndParagraphAction'],'java.awt.ComponentOrientation','javax.swing.Action',['javax.swing.text.DefaultEditorKit','.InsertContentAction'],['javax.swing.text.DefaultEditorKit','.DeletePrevCharAction'],['javax.swing.text.DefaultEditorKit','.DeleteNextCharAction'],['javax.swing.text.DefaultEditorKit','.ReadOnlyAction'],['javax.swing.text.DefaultEditorKit','.WritableAction'],['javax.swing.text.DefaultEditorKit','.CutAction'],['javax.swing.text.DefaultEditorKit','.CopyAction'],['javax.swing.text.DefaultEditorKit','.PasteAction'],['javax.swing.text.DefaultEditorKit','.VerticalPageAction'],['javax.swing.text.DefaultEditorKit','.PageAction'],['javax.swing.text.DefaultEditorKit','.InsertBreakAction'],['javax.swing.text.DefaultEditorKit','.BeepAction'],['javax.swing.text.DefaultEditorKit','.NextVisualPositionAction'],['javax.swing.text.DefaultEditorKit','.PreviousWordAction'],['javax.swing.text.DefaultEditorKit','.NextWordAction'],['javax.swing.text.DefaultEditorKit','.BeginAction'],['javax.swing.text.DefaultEditorKit','.EndAction'],['javax.swing.text.DefaultEditorKit','.DefaultKeyTypedAction'],['javax.swing.text.DefaultEditorKit','.InsertTabAction'],['javax.swing.text.DefaultEditorKit','.SelectWordAction'],['javax.swing.text.DefaultEditorKit','.SelectLineAction'],['javax.swing.text.DefaultEditorKit','.SelectParagraphAction'],['javax.swing.text.DefaultEditorKit','.SelectAllAction'],['javax.swing.text.DefaultEditorKit','.UnselectAction'],['javax.swing.text.DefaultEditorKit','.ToggleComponentOrientationAction'],'javax.swing.text.PlainDocument','java.io.InputStreamReader','swingjs.api.Interface','java.io.OutputStream','javax.swing.text.Segment']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "DefaultEditorKit", function(){ +Clazz_newInstance(this, arguments,0,C$); +}, 'javax.swing.text.EditorKit'); +C$.defaultActions=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.defaultActions=Clazz_array($I$(13), -1, [Clazz_new_($I$(14)), Clazz_new_($I$(15)), Clazz_new_($I$(16)), Clazz_new_($I$(17)), Clazz_new_($I$(18)), Clazz_new_($I$(19)), Clazz_new_($I$(20)), Clazz_new_($I$(21)), Clazz_new_($I$(22).c$$S$I$Z,["page-up", -1, false]), Clazz_new_($I$(22).c$$S$I$Z,["page-down", 1, false]), Clazz_new_($I$(22).c$$S$I$Z,["selection-page-up", -1, true]), Clazz_new_($I$(22).c$$S$I$Z,["selection-page-down", 1, true]), Clazz_new_($I$(23).c$$S$Z$Z,["selection-page-left", true, true]), Clazz_new_($I$(23).c$$S$Z$Z,["selection-page-right", false, true]), Clazz_new_($I$(24)), Clazz_new_($I$(25)), Clazz_new_($I$(26).c$$S$Z$I,["caret-forward", false, 3]), Clazz_new_($I$(26).c$$S$Z$I,["caret-backward", false, 7]), Clazz_new_($I$(26).c$$S$Z$I,["selection-forward", true, 3]), Clazz_new_($I$(26).c$$S$Z$I,["selection-backward", true, 7]), Clazz_new_($I$(26).c$$S$Z$I,["caret-up", false, 1]), Clazz_new_($I$(26).c$$S$Z$I,["caret-down", false, 5]), Clazz_new_($I$(26).c$$S$Z$I,["selection-up", true, 1]), Clazz_new_($I$(26).c$$S$Z$I,["selection-down", true, 5]), Clazz_new_($I$(6).c$$S$Z,["caret-begin-word", false]), Clazz_new_($I$(7).c$$S$Z,["caret-end-word", false]), Clazz_new_($I$(6).c$$S$Z,["selection-begin-word", true]), Clazz_new_($I$(7).c$$S$Z,["selection-end-word", true]), Clazz_new_($I$(27).c$$S$Z,["caret-previous-word", false]), Clazz_new_($I$(28).c$$S$Z,["caret-next-word", false]), Clazz_new_($I$(27).c$$S$Z,["selection-previous-word", true]), Clazz_new_($I$(28).c$$S$Z,["selection-next-word", true]), Clazz_new_($I$(8).c$$S$Z,["caret-begin-line", false]), Clazz_new_($I$(9).c$$S$Z,["caret-end-line", false]), Clazz_new_($I$(8).c$$S$Z,["selection-begin-line", true]), Clazz_new_($I$(9).c$$S$Z,["selection-end-line", true]), Clazz_new_($I$(10).c$$S$Z,["caret-begin-paragraph", false]), Clazz_new_($I$(11).c$$S$Z,["caret-end-paragraph", false]), Clazz_new_($I$(10).c$$S$Z,["selection-begin-paragraph", true]), Clazz_new_($I$(11).c$$S$Z,["selection-end-paragraph", true]), Clazz_new_($I$(29).c$$S$Z,["caret-begin", false]), Clazz_new_($I$(30).c$$S$Z,["caret-end", false]), Clazz_new_($I$(29).c$$S$Z,["selection-begin", true]), Clazz_new_($I$(30).c$$S$Z,["selection-end", true]), Clazz_new_($I$(31)), Clazz_new_($I$(32)), Clazz_new_($I$(33)), Clazz_new_($I$(34)), Clazz_new_($I$(35)), Clazz_new_($I$(36)), Clazz_new_($I$(37)), Clazz_new_($I$(38))]); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +Clazz_super_(C$, this,1); +}, 1); + +Clazz_newMeth(C$, 'getContentType$', function () { +return "text/plain"; +}); + +Clazz_newMeth(C$, 'getViewFactory$', function () { +return null; +}); + +Clazz_newMeth(C$, 'getActions$', function () { +return C$.defaultActions; +}); + +Clazz_newMeth(C$, 'createCaret$', function () { +return null; +}); + +Clazz_newMeth(C$, 'createDefaultDocument$', function () { +return Clazz_new_($I$(39)); +}); + +Clazz_newMeth(C$, 'read$java_io_InputStream$javax_swing_text_Document$I', function ($in, doc, pos) { +this.read$java_io_Reader$javax_swing_text_Document$I(Clazz_new_($I$(40).c$$java_io_InputStream,[$in]), doc, pos); +}); + +Clazz_newMeth(C$, 'write$java_io_OutputStream$javax_swing_text_Document$I$I', function (out, doc, pos, len) { +var osw=$I$(41).getInstanceWithParams$S$ClassA$OA("java.io.OutputStreamWriter", Clazz_array(Class, -1, [Clazz_getClass($I$(42))]), Clazz_array(java.lang.Object, -1, [out])); +this.write$java_io_Writer$javax_swing_text_Document$I$I(osw, doc, pos, len); +osw.flush$(); +}); + +Clazz_newMeth(C$, 'getInputAttributes$', function () { +return null; +}); + +Clazz_newMeth(C$, 'read$java_io_Reader$javax_swing_text_Document$I', function ($in, doc, pos) { +var buff=Clazz_array(Character.TYPE, [4096]); +var nch; +var lastWasCR=false; +var isCRLF=false; +var isCR=false; +var last; +var wasEmpty=(doc.getLength$() == 0); +var attr=this.getInputAttributes$(); +while ((nch=$in.read$CA$I$I(buff, 0, buff.length)) != -1){ +last=0; +for (var counter=0; counter < nch; counter++) { +switch ((buff[counter]).$c()) { +case 13: +if (lastWasCR) { +isCR=true; +if (counter == 0) { +doc.insertString$I$S$javax_swing_text_AttributeSet(pos, "\n", attr); +pos++; +} else { +buff[counter - 1]="\n"; +}} else { +lastWasCR=true; +}break; +case 10: +if (lastWasCR) { +if (counter > (last + 1)) { +doc.insertString$I$S$javax_swing_text_AttributeSet(pos, String.instantialize(buff, last, counter - last - 1 ), attr); +pos+=(counter - last - 1 ); +}lastWasCR=false; +last=counter; +isCRLF=true; +}break; +default: +if (lastWasCR) { +isCR=true; +if (counter == 0) { +doc.insertString$I$S$javax_swing_text_AttributeSet(pos, "\n", attr); +pos++; +} else { +buff[counter - 1]="\n"; +}lastWasCR=false; +}break; +} +} +if (last < nch) { +if (lastWasCR) { +if (last < (nch - 1)) { +doc.insertString$I$S$javax_swing_text_AttributeSet(pos, String.instantialize(buff, last, nch - last - 1 ), attr); +pos+=(nch - last - 1 ); +}} else { +doc.insertString$I$S$javax_swing_text_AttributeSet(pos, String.instantialize(buff, last, nch - last), attr); +pos+=(nch - last); +}}} +if (lastWasCR) { +doc.insertString$I$S$javax_swing_text_AttributeSet(pos, "\n", attr); +isCR=true; +}if (wasEmpty) { +if (isCRLF) { +doc.putProperty$O$O("__EndOfLine__", "\r\n"); +} else if (isCR) { +doc.putProperty$O$O("__EndOfLine__", "\r"); +} else { +doc.putProperty$O$O("__EndOfLine__", "\n"); +}}}); + +Clazz_newMeth(C$, 'write$java_io_Writer$javax_swing_text_Document$I$I', function (out, doc, pos, len) { +if ((pos < 0) || ((pos + len) > doc.getLength$()) ) { +throw Clazz_new_(Clazz_load('javax.swing.text.BadLocationException').c$$S$I,["DefaultEditorKit.write", pos]); +}var data=Clazz_new_($I$(43)); +var nleft=len; +var offs=pos; +var endOfLineProperty=doc.getProperty$O("__EndOfLine__"); +if (endOfLineProperty == null ) { +try { +endOfLineProperty=System.getProperty$S("line.separator"); +} catch (se) { +if (Clazz_exceptionOf(se,"SecurityException")){ +} else { +throw se; +} +} +}var endOfLine; +if (Clazz_instanceOf(endOfLineProperty, "java.lang.String")) { +endOfLine=endOfLineProperty; +} else { +endOfLine=null; +}if (endOfLineProperty != null && !endOfLine.equals$O("\n") ) { +while (nleft > 0){ +var n=Math.min(nleft, 4096); +doc.getText$I$I$javax_swing_text_Segment(offs, n, data); +var last=data.offset; +var array=data.array; +var maxCounter=last + data.count; +for (var counter=last; counter < maxCounter; counter++) { +if (array[counter] == "\n") { +if (counter > last) { +out.write$CA$I$I(array, last, counter - last); +}out.write$S(endOfLine); +last=counter + 1; +}} +if (maxCounter > last) { +out.write$CA$I$I(array, last, maxCounter - last); +}offs+=n; +nleft-=n; +} +} else { +while (nleft > 0){ +var n=Math.min(nleft, 4096); +doc.getText$I$I$javax_swing_text_Segment(offs, n, data); +out.write$CA$I$I(data.array, data.offset, data.count); +offs+=n; +nleft-=n; +} +}out.flush$(); +}); +; +(function(){var C$=Clazz_newClass(P$.DefaultEditorKit, "DefaultKeyTypedAction", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'javax.swing.text.TextAction'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.superclazz.c$$S.apply(this, ["default-typed"]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) { +var target=this.getTextComponent$java_awt_event_ActionEvent(e); +if ((target != null ) && (e != null ) ) { +if ((!target.isEditable$()) || (!target.isEnabled$()) ) { +return; +}var content=e.getActionCommand$(); +var mod=e.getModifiers$(); +if ((content != null ) && (content.length$() > 0) && ((mod & 8) == (mod & 2)) ) { +var c=content.charAt$I(0); +if ((c.$c() >= 32 ) && (c.$c() != 127 ) ) { +target.replaceSelection$S(content); +}}}}); +})() +; +(function(){var C$=Clazz_newClass(P$.DefaultEditorKit, "InsertContentAction", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'javax.swing.text.TextAction'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.superclazz.c$$S.apply(this, ["insert-content"]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) { +var target=this.getTextComponent$java_awt_event_ActionEvent(e); +if ((target != null ) && (e != null ) ) { +if ((!target.isEditable$()) || (!target.isEnabled$()) ) { +$I$(1).getLookAndFeel$().provideErrorFeedback$java_awt_Component(target); +return; +}var content=e.getActionCommand$(); +if (content != null ) { +target.replaceSelection$S(content); +} else { +$I$(1).getLookAndFeel$().provideErrorFeedback$java_awt_Component(target); +}}}); +})() +; +(function(){var C$=Clazz_newClass(P$.DefaultEditorKit, "InsertBreakAction", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'javax.swing.text.TextAction'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.superclazz.c$$S.apply(this, ["insert-break"]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) { +var target=this.getTextComponent$java_awt_event_ActionEvent(e); +if (target != null ) { +if ((!target.isEditable$()) || (!target.isEnabled$()) ) { +$I$(1).getLookAndFeel$().provideErrorFeedback$java_awt_Component(target); +return; +}target.replaceSelection$S("\n"); +}}); +})() +; +(function(){var C$=Clazz_newClass(P$.DefaultEditorKit, "InsertTabAction", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'javax.swing.text.TextAction'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.superclazz.c$$S.apply(this, ["insert-tab"]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) { +var target=this.getTextComponent$java_awt_event_ActionEvent(e); +if (target != null ) { +if ((!target.isEditable$()) || (!target.isEnabled$()) ) { +$I$(1).getLookAndFeel$().provideErrorFeedback$java_awt_Component(target); +return; +}target.replaceSelection$S("\t"); +}}); +})() +; +(function(){var C$=Clazz_newClass(P$.DefaultEditorKit, "DeletePrevCharAction", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'javax.swing.text.TextAction'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.superclazz.c$$S.apply(this, ["delete-previous"]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) { +var target=this.getTextComponent$java_awt_event_ActionEvent(e); +var beep=true; +if ((target != null ) && (target.isEditable$()) ) { +try { +var doc=target.getDocument$(); +var caret=target.getCaret$(); +var dot=caret.getDot$(); +var mark=caret.getMark$(); +if (dot != mark) { +doc.remove$I$I(Math.min(dot, mark), Math.abs(dot - mark)); +beep=false; +} else if (dot > 0) { +var delChars=1; +if (dot > 1) { +var dotChars=doc.getText$I$I(dot - 2, 2); +var c0=dotChars.charAt$I(0); +var c1=dotChars.charAt$I(1); +if (c0 >= "\ud800" && c0 <= "\udbff" && c1 >= "\udc00" && c1 <= "\udfff" ) { +delChars=2; +}}doc.remove$I$I(dot - delChars, delChars); +beep=false; +}} catch (bl) { +if (Clazz_exceptionOf(bl,"javax.swing.text.BadLocationException")){ +} else { +throw bl; +} +} +}if (beep) { +$I$(1).getLookAndFeel$().provideErrorFeedback$java_awt_Component(target); +}}); +})() +; +(function(){var C$=Clazz_newClass(P$.DefaultEditorKit, "DeleteNextCharAction", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'javax.swing.text.TextAction'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.superclazz.c$$S.apply(this, ["delete-next"]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) { +var target=this.getTextComponent$java_awt_event_ActionEvent(e); +var beep=true; +if ((target != null ) && (target.isEditable$()) ) { +try { +var doc=target.getDocument$(); +var caret=target.getCaret$(); +var dot=caret.getDot$(); +var mark=caret.getMark$(); +if (dot != mark) { +doc.remove$I$I(Math.min(dot, mark), Math.abs(dot - mark)); +beep=false; +} else if (dot < doc.getLength$()) { +var delChars=1; +if (dot < doc.getLength$() - 1) { +var dotChars=doc.getText$I$I(dot, 2); +var c0=dotChars.charAt$I(0); +var c1=dotChars.charAt$I(1); +if (c0 >= "\ud800" && c0 <= "\udbff" && c1 >= "\udc00" && c1 <= "\udfff" ) { +delChars=2; +}}doc.remove$I$I(dot, delChars); +beep=false; +}} catch (bl) { +if (Clazz_exceptionOf(bl,"javax.swing.text.BadLocationException")){ +} else { +throw bl; +} +} +}if (beep) { +$I$(1).getLookAndFeel$().provideErrorFeedback$java_awt_Component(target); +}}); +})() +; +(function(){var C$=Clazz_newClass(P$.DefaultEditorKit, "ReadOnlyAction", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'javax.swing.text.TextAction'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.superclazz.c$$S.apply(this, ["set-read-only"]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) { +var target=this.getTextComponent$java_awt_event_ActionEvent(e); +if (target != null ) { +target.setEditable$Z(false); +}}); +})() +; +(function(){var C$=Clazz_newClass(P$.DefaultEditorKit, "WritableAction", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'javax.swing.text.TextAction'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.superclazz.c$$S.apply(this, ["set-writable"]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) { +var target=this.getTextComponent$java_awt_event_ActionEvent(e); +if (target != null ) { +target.setEditable$Z(true); +}}); +})() +; +(function(){var C$=Clazz_newClass(P$.DefaultEditorKit, "CutAction", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'javax.swing.text.TextAction'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.superclazz.c$$S.apply(this, ["cut-to-clipboard"]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) { +var target=this.getTextComponent$java_awt_event_ActionEvent(e); +if (target != null ) { +target.cut$(); +}}); +})() +; +(function(){var C$=Clazz_newClass(P$.DefaultEditorKit, "CopyAction", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'javax.swing.text.TextAction'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.superclazz.c$$S.apply(this, ["copy-to-clipboard"]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) { +var target=this.getTextComponent$java_awt_event_ActionEvent(e); +if (target != null ) { +target.copy$(); +}}); +})() +; +(function(){var C$=Clazz_newClass(P$.DefaultEditorKit, "PasteAction", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'javax.swing.text.TextAction'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.superclazz.c$$S.apply(this, ["paste-from-clipboard"]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) { +var target=this.getTextComponent$java_awt_event_ActionEvent(e); +if (target != null ) { +target.paste$(); +}}); +})() +; +(function(){var C$=Clazz_newClass(P$.DefaultEditorKit, "BeepAction", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'javax.swing.text.TextAction'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.superclazz.c$$S.apply(this, ["beep"]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) { +var target=this.getTextComponent$java_awt_event_ActionEvent(e); +$I$(1).getLookAndFeel$().provideErrorFeedback$java_awt_Component(target); +}); +})() +; +(function(){var C$=Clazz_newClass(P$.DefaultEditorKit, "VerticalPageAction", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'javax.swing.text.TextAction'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.select=false; +this.direction=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$S$I$Z', function (nm, direction, select) { +C$.superclazz.c$$S.apply(this, [nm]); +C$.$init$.apply(this); +this.select=select; +this.direction=direction; +}, 1); + +Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) { +var target=this.getTextComponent$java_awt_event_ActionEvent(e); +if (target != null ) { +var visible=target.getVisibleRect$(); +var newVis=Clazz_new_($I$(2).c$$java_awt_Rectangle,[visible]); +var selectedIndex=target.getCaretPosition$(); +var scrollAmount=this.direction * target.getScrollableBlockIncrement$java_awt_Rectangle$I$I(visible, 1, this.direction); +var initialY=visible.y; +var caret=target.getCaret$(); +var magicPosition=caret.getMagicCaretPosition$(); +if (selectedIndex != -1) { +try { +var dotBounds=target.modelToView$I(selectedIndex); +var x=(magicPosition != null ) ? magicPosition.x : dotBounds.x; +var h=dotBounds.height; +if (h > 0) { +scrollAmount=(scrollAmount/h|0) * h; +}newVis.y=p$1.constrainY$javax_swing_text_JTextComponent$I$I.apply(this, [target, initialY + scrollAmount, visible.height]); +var newIndex; +if (visible.contains$I$I(dotBounds.x, dotBounds.y)) { +newIndex=target.viewToModel$java_awt_Point(Clazz_new_($I$(3).c$$I$I,[x, p$1.constrainY$javax_swing_text_JTextComponent$I$I.apply(this, [target, dotBounds.y + scrollAmount, 0])])); +} else { +if (this.direction == -1) { +newIndex=target.viewToModel$java_awt_Point(Clazz_new_($I$(3).c$$I$I,[x, newVis.y])); +} else { +newIndex=target.viewToModel$java_awt_Point(Clazz_new_($I$(3).c$$I$I,[x, newVis.y + visible.height])); +}}newIndex=p$1.constrainOffset$javax_swing_text_JTextComponent$I.apply(this, [target, newIndex]); +if (newIndex != selectedIndex) { +p$1.adjustScrollIfNecessary$javax_swing_text_JTextComponent$java_awt_Rectangle$I$I.apply(this, [target, newVis, initialY, newIndex]); +if (this.select) { +target.moveCaretPosition$I(newIndex); +} else { +target.setCaretPosition$I(newIndex); +}}} catch (ble) { +if (Clazz_exceptionOf(ble,"javax.swing.text.BadLocationException")){ +} else { +throw ble; +} +} +} else { +newVis.y=p$1.constrainY$javax_swing_text_JTextComponent$I$I.apply(this, [target, initialY + scrollAmount, visible.height]); +}if (magicPosition != null ) { +caret.setMagicCaretPosition$java_awt_Point(magicPosition); +}target.scrollRectToVisible$java_awt_Rectangle(newVis); +}}); + +Clazz_newMeth(C$, 'constrainY$javax_swing_text_JTextComponent$I$I', function (target, y, vis) { +if (y < 0) { +y=0; +} else if (y + vis > target.getHeight$()) { +y=Math.max(0, target.getHeight$() - vis); +}return y; +}, p$1); + +Clazz_newMeth(C$, 'constrainOffset$javax_swing_text_JTextComponent$I', function (text, offset) { +var doc=text.getDocument$(); +if ((offset != 0) && (offset > doc.getLength$()) ) { +offset=doc.getLength$(); +}if (offset < 0) { +offset=0; +}return offset; +}, p$1); + +Clazz_newMeth(C$, 'adjustScrollIfNecessary$javax_swing_text_JTextComponent$java_awt_Rectangle$I$I', function (text, visible, initialY, index) { +try { +var dotBounds=text.modelToView$I(index); +if (dotBounds.y < visible.y || (dotBounds.y > (visible.y + visible.height)) || (dotBounds.y + dotBounds.height) > (visible.y + visible.height) ) { +var y; +if (dotBounds.y < visible.y) { +y=dotBounds.y; +} else { +y=dotBounds.y + dotBounds.height - visible.height; +}if ((this.direction == -1 && y < initialY ) || (this.direction == 1 && y > initialY ) ) { +visible.y=y; +}}} catch (ble) { +if (Clazz_exceptionOf(ble,"javax.swing.text.BadLocationException")){ +} else { +throw ble; +} +} +}, p$1); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.DefaultEditorKit, "PageAction", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'javax.swing.text.TextAction'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.select=false; +this.left=false; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$S$Z$Z', function (nm, left, select) { +C$.superclazz.c$$S.apply(this, [nm]); +C$.$init$.apply(this); +this.select=select; +this.left=left; +}, 1); + +Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) { +var target=this.getTextComponent$java_awt_event_ActionEvent(e); +if (target != null ) { +var selectedIndex; +var visible=Clazz_new_($I$(2)); +target.computeVisibleRect$java_awt_Rectangle(visible); +if (this.left) { +visible.x=Math.max(0, visible.x - visible.width); +} else { +visible.x+=visible.width; +}selectedIndex=target.getCaretPosition$(); +if (selectedIndex != -1) { +if (this.left) { +selectedIndex=target.viewToModel$java_awt_Point(Clazz_new_($I$(3).c$$I$I,[visible.x, visible.y])); +} else { +selectedIndex=target.viewToModel$java_awt_Point(Clazz_new_($I$(3).c$$I$I,[visible.x + visible.width - 1, visible.y + visible.height - 1])); +}var doc=target.getDocument$(); +if ((selectedIndex != 0) && (selectedIndex > (doc.getLength$() - 1)) ) { +selectedIndex=doc.getLength$() - 1; +} else if (selectedIndex < 0) { +selectedIndex=0; +}if (this.select) target.moveCaretPosition$I(selectedIndex); + else target.setCaretPosition$I(selectedIndex); +}}}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.DefaultEditorKit, "NextVisualPositionAction", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'javax.swing.text.TextAction'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.select=false; +this.direction=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$S$Z$I', function (nm, select, direction) { +C$.superclazz.c$$S.apply(this, [nm]); +C$.$init$.apply(this); +this.select=select; +this.direction=direction; +}, 1); + +Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) { +var target=this.getTextComponent$java_awt_event_ActionEvent(e); +if (target != null ) { +var caret=target.getCaret$(); +var bidiCaret=(Clazz_instanceOf(caret, "javax.swing.text.DefaultCaret")) ? caret : null; +var dot=caret.getDot$(); +var bias=Clazz_array($I$(4), [1]); +var magicPosition=caret.getMagicCaretPosition$(); +try { +if (magicPosition == null && (this.direction == 1 || this.direction == 5 ) ) { +var r=(bidiCaret != null ) ? (target.getUI$()).modelToView$javax_swing_text_JTextComponent$I$javax_swing_text_Position_Bias(target, dot, bidiCaret.getDotBias$()) : target.modelToView$I(dot); +magicPosition=Clazz_new_($I$(3).c$$I$I,[r.x, r.y]); +}var filter=target.getNavigationFilter$(); +if (filter != null ) { +dot=filter.getNextVisualPositionFrom$javax_swing_text_JTextComponent$I$javax_swing_text_Position_Bias$I$javax_swing_text_Position_BiasA(target, dot, (bidiCaret != null ) ? bidiCaret.getDotBias$() : $I$(4).Forward, this.direction, bias); +} else { +dot=(target.getUI$()).getNextVisualPositionFrom$javax_swing_text_JTextComponent$I$javax_swing_text_Position_Bias$I$javax_swing_text_Position_BiasA(target, dot, (bidiCaret != null ) ? bidiCaret.getDotBias$() : $I$(4).Forward, this.direction, bias); +}if (bias[0] == null ) { +bias[0]=$I$(4).Forward; +}if (bidiCaret != null ) { +if (this.select) { +bidiCaret.moveDot$I$javax_swing_text_Position_Bias(dot, bias[0]); +} else { +bidiCaret.setDot$I$javax_swing_text_Position_Bias(dot, bias[0]); +}} else { +if (this.select) { +caret.moveDot$I(dot); +} else { +caret.setDot$I(dot); +}}if (magicPosition != null && (this.direction == 1 || this.direction == 5 ) ) { +target.getCaret$().setMagicCaretPosition$java_awt_Point(magicPosition); +}} catch (ex) { +if (Clazz_exceptionOf(ex,"javax.swing.text.BadLocationException")){ +} else { +throw ex; +} +} +}}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.DefaultEditorKit, "BeginWordAction", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'javax.swing.text.TextAction'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.select=false; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$S$Z', function (nm, select) { +C$.superclazz.c$$S.apply(this, [nm]); +C$.$init$.apply(this); +this.select=select; +}, 1); + +Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) { +var target=this.getTextComponent$java_awt_event_ActionEvent(e); +if (target != null ) { +try { +var offs=target.getCaretPosition$(); +var begOffs=$I$(5).getWordStart$javax_swing_text_JTextComponent$I(target, offs); +if (this.select) { +target.moveCaretPosition$I(begOffs); +} else { +target.setCaretPosition$I(begOffs); +}} catch (bl) { +if (Clazz_exceptionOf(bl,"javax.swing.text.BadLocationException")){ +$I$(1).getLookAndFeel$().provideErrorFeedback$java_awt_Component(target); +} else { +throw bl; +} +} +}}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.DefaultEditorKit, "EndWordAction", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'javax.swing.text.TextAction'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.select=false; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$S$Z', function (nm, select) { +C$.superclazz.c$$S.apply(this, [nm]); +C$.$init$.apply(this); +this.select=select; +}, 1); + +Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) { +var target=this.getTextComponent$java_awt_event_ActionEvent(e); +if (target != null ) { +try { +var offs=target.getCaretPosition$(); +var endOffs=$I$(5).getWordEnd$javax_swing_text_JTextComponent$I(target, offs); +if (this.select) { +target.moveCaretPosition$I(endOffs); +} else { +target.setCaretPosition$I(endOffs); +}} catch (bl) { +if (Clazz_exceptionOf(bl,"javax.swing.text.BadLocationException")){ +$I$(1).getLookAndFeel$().provideErrorFeedback$java_awt_Component(target); +} else { +throw bl; +} +} +}}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.DefaultEditorKit, "PreviousWordAction", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'javax.swing.text.TextAction'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.select=false; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$S$Z', function (nm, select) { +C$.superclazz.c$$S.apply(this, [nm]); +C$.$init$.apply(this); +this.select=select; +}, 1); + +Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) { +var target=this.getTextComponent$java_awt_event_ActionEvent(e); +if (target != null ) { +var offs=target.getCaretPosition$(); +var failed=false; +try { +var curPara=$I$(5).getParagraphElement$javax_swing_text_JTextComponent$I(target, offs); +offs=$I$(5).getPreviousWord$javax_swing_text_JTextComponent$I(target, offs); +if (offs < curPara.getStartOffset$()) { +offs=$I$(5).getParagraphElement$javax_swing_text_JTextComponent$I(target, offs).getEndOffset$() - 1; +}} catch (bl) { +if (Clazz_exceptionOf(bl,"javax.swing.text.BadLocationException")){ +if (offs != 0) { +offs=0; +} else { +failed=true; +}} else { +throw bl; +} +} +if (!failed) { +if (this.select) { +target.moveCaretPosition$I(offs); +} else { +target.setCaretPosition$I(offs); +}} else { +$I$(1).getLookAndFeel$().provideErrorFeedback$java_awt_Component(target); +}}}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.DefaultEditorKit, "NextWordAction", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'javax.swing.text.TextAction'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.select=false; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$S$Z', function (nm, select) { +C$.superclazz.c$$S.apply(this, [nm]); +C$.$init$.apply(this); +this.select=select; +}, 1); + +Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) { +var target=this.getTextComponent$java_awt_event_ActionEvent(e); +if (target != null ) { +var offs=target.getCaretPosition$(); +var failed=false; +var oldOffs=offs; +var curPara=$I$(5).getParagraphElement$javax_swing_text_JTextComponent$I(target, offs); +try { +offs=$I$(5).getNextWord$javax_swing_text_JTextComponent$I(target, offs); +if (offs >= curPara.getEndOffset$() && oldOffs != curPara.getEndOffset$() - 1 ) { +offs=curPara.getEndOffset$() - 1; +}} catch (bl) { +if (Clazz_exceptionOf(bl,"javax.swing.text.BadLocationException")){ +var end=target.getDocument$().getLength$(); +if (offs != end) { +if (oldOffs != curPara.getEndOffset$() - 1) { +offs=curPara.getEndOffset$() - 1; +} else { +offs=end; +}} else { +failed=true; +}} else { +throw bl; +} +} +if (!failed) { +if (this.select) { +target.moveCaretPosition$I(offs); +} else { +target.setCaretPosition$I(offs); +}} else { +$I$(1).getLookAndFeel$().provideErrorFeedback$java_awt_Component(target); +}}}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.DefaultEditorKit, "BeginLineAction", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'javax.swing.text.TextAction'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.select=false; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$S$Z', function (nm, select) { +C$.superclazz.c$$S.apply(this, [nm]); +C$.$init$.apply(this); +this.select=select; +}, 1); + +Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) { +var target=this.getTextComponent$java_awt_event_ActionEvent(e); +if (target != null ) { +try { +var offs=target.getCaretPosition$(); +var begOffs=$I$(5).getRowStart$javax_swing_text_JTextComponent$I(target, offs); +if (this.select) { +target.moveCaretPosition$I(begOffs); +} else { +target.setCaretPosition$I(begOffs); +}} catch (bl) { +if (Clazz_exceptionOf(bl,"javax.swing.text.BadLocationException")){ +$I$(1).getLookAndFeel$().provideErrorFeedback$java_awt_Component(target); +} else { +throw bl; +} +} +}}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.DefaultEditorKit, "EndLineAction", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'javax.swing.text.TextAction'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.select=false; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$S$Z', function (nm, select) { +C$.superclazz.c$$S.apply(this, [nm]); +C$.$init$.apply(this); +this.select=select; +}, 1); + +Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) { +var target=this.getTextComponent$java_awt_event_ActionEvent(e); +if (target != null ) { +try { +var offs=target.getCaretPosition$(); +var endOffs=$I$(5).getRowEnd$javax_swing_text_JTextComponent$I(target, offs); +if (this.select) { +target.moveCaretPosition$I(endOffs); +} else { +target.setCaretPosition$I(endOffs); +}} catch (bl) { +if (Clazz_exceptionOf(bl,"javax.swing.text.BadLocationException")){ +$I$(1).getLookAndFeel$().provideErrorFeedback$java_awt_Component(target); +} else { +throw bl; +} +} +}}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.DefaultEditorKit, "BeginParagraphAction", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'javax.swing.text.TextAction'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.select=false; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$S$Z', function (nm, select) { +C$.superclazz.c$$S.apply(this, [nm]); +C$.$init$.apply(this); +this.select=select; +}, 1); + +Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) { +var target=this.getTextComponent$java_awt_event_ActionEvent(e); +if (target != null ) { +var offs=target.getCaretPosition$(); +var elem=$I$(5).getParagraphElement$javax_swing_text_JTextComponent$I(target, offs); +offs=elem.getStartOffset$(); +if (this.select) { +target.moveCaretPosition$I(offs); +} else { +target.setCaretPosition$I(offs); +}}}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.DefaultEditorKit, "EndParagraphAction", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'javax.swing.text.TextAction'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.select=false; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$S$Z', function (nm, select) { +C$.superclazz.c$$S.apply(this, [nm]); +C$.$init$.apply(this); +this.select=select; +}, 1); + +Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) { +var target=this.getTextComponent$java_awt_event_ActionEvent(e); +if (target != null ) { +var offs=target.getCaretPosition$(); +var elem=$I$(5).getParagraphElement$javax_swing_text_JTextComponent$I(target, offs); +offs=Math.min(target.getDocument$().getLength$(), elem.getEndOffset$()); +if (this.select) { +target.moveCaretPosition$I(offs); +} else { +target.setCaretPosition$I(offs); +}}}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.DefaultEditorKit, "BeginAction", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'javax.swing.text.TextAction'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.select=false; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$S$Z', function (nm, select) { +C$.superclazz.c$$S.apply(this, [nm]); +C$.$init$.apply(this); +this.select=select; +}, 1); + +Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) { +var target=this.getTextComponent$java_awt_event_ActionEvent(e); +if (target != null ) { +if (this.select) { +target.moveCaretPosition$I(0); +} else { +target.setCaretPosition$I(0); +}}}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.DefaultEditorKit, "EndAction", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'javax.swing.text.TextAction'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.select=false; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$S$Z', function (nm, select) { +C$.superclazz.c$$S.apply(this, [nm]); +C$.$init$.apply(this); +this.select=select; +}, 1); + +Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) { +var target=this.getTextComponent$java_awt_event_ActionEvent(e); +if (target != null ) { +var doc=target.getDocument$(); +var dot=doc.getLength$(); +if (this.select) { +target.moveCaretPosition$I(dot); +} else { +target.setCaretPosition$I(dot); +}}}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.DefaultEditorKit, "SelectWordAction", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'javax.swing.text.TextAction'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.start=null; +this.end=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.superclazz.c$$S.apply(this, ["select-word"]); +C$.$init$.apply(this); +this.start=Clazz_new_($I$(6).c$$S$Z,["pigdog", false]); +this.end=Clazz_new_($I$(7).c$$S$Z,["pigdog", true]); +}, 1); + +Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) { +this.start.actionPerformed$(e); +this.end.actionPerformed$(e); +}); +})() +; +(function(){var C$=Clazz_newClass(P$.DefaultEditorKit, "SelectLineAction", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'javax.swing.text.TextAction'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.start=null; +this.end=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.superclazz.c$$S.apply(this, ["select-line"]); +C$.$init$.apply(this); +this.start=Clazz_new_($I$(8).c$$S$Z,["pigdog", false]); +this.end=Clazz_new_($I$(9).c$$S$Z,["pigdog", true]); +}, 1); + +Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) { +this.start.actionPerformed$(e); +this.end.actionPerformed$(e); +}); +})() +; +(function(){var C$=Clazz_newClass(P$.DefaultEditorKit, "SelectParagraphAction", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'javax.swing.text.TextAction'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.start=null; +this.end=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.superclazz.c$$S.apply(this, ["select-paragraph"]); +C$.$init$.apply(this); +this.start=Clazz_new_($I$(10).c$$S$Z,["pigdog", false]); +this.end=Clazz_new_($I$(11).c$$S$Z,["pigdog", true]); +}, 1); + +Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) { +this.start.actionPerformed$(e); +this.end.actionPerformed$(e); +}); +})() +; +(function(){var C$=Clazz_newClass(P$.DefaultEditorKit, "SelectAllAction", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'javax.swing.text.TextAction'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.superclazz.c$$S.apply(this, ["select-all"]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) { +var target=this.getTextComponent$java_awt_event_ActionEvent(e); +if (target != null ) { +var doc=target.getDocument$(); +target.setCaretPosition$I(0); +target.moveCaretPosition$I(doc.getLength$()); +}}); +})() +; +(function(){var C$=Clazz_newClass(P$.DefaultEditorKit, "UnselectAction", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'javax.swing.text.TextAction'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.superclazz.c$$S.apply(this, ["unselect"]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) { +var target=this.getTextComponent$java_awt_event_ActionEvent(e); +if (target != null ) { +target.setCaretPosition$I(target.getCaretPosition$()); +}}); +})() +; +(function(){var C$=Clazz_newClass(P$.DefaultEditorKit, "ToggleComponentOrientationAction", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'javax.swing.text.TextAction'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.superclazz.c$$S.apply(this, ["toggle-componentOrientation"]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) { +var target=this.getTextComponent$java_awt_event_ActionEvent(e); +if (target != null ) { +var last=target.getComponentOrientation$(); +var next; +if (last === $I$(12).RIGHT_TO_LEFT ) next=$I$(12).LEFT_TO_RIGHT; + else next=$I$(12).RIGHT_TO_LEFT; +target.setComponentOrientation$java_awt_ComponentOrientation(next); +target.秘repaint$(); +}}); +})() +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:15 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing.text"),I$=[]; +var C$=Clazz_newInterface(P$, "Document"); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:15 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing.text"),I$=[]; +var C$=Clazz_newClass(P$, "EditorKit", null, null, 'Cloneable'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'clone$', function () { +var o; +try { +o=Clazz_clone(this); +} catch (cnse) { +if (Clazz_exceptionOf(cnse,"CloneNotSupportedException")){ +o=null; +} else { +throw cnse; +} +} +return o; +}); + +Clazz_newMeth(C$, 'install$javax_swing_JEditorPane', function (c) { +}); + +Clazz_newMeth(C$, 'deinstall$javax_swing_JEditorPane', function (c) { +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:15 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing.text"),I$=[]; +var C$=Clazz_newInterface(P$, "Element"); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:15 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing.text"),I$=[[0,['javax.swing.text.GapContent','.MarkData'],['javax.swing.text.GapContent','.MarkVector'],['javax.swing.text.GapContent','.InsertUndo'],['javax.swing.text.GapContent','.RemoveUndo'],'javax.swing.text.Segment',['javax.swing.text.GapContent','.StickyPosition'],'java.util.Vector',['javax.swing.text.GapContent','.UndoPosRef']]],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "GapContent", function(){ +Clazz_newInstance(this, arguments,0,C$); +}, 'javax.swing.text.GapVector', [['javax.swing.text.AbstractDocument','javax.swing.text.AbstractDocument.Content']]); +C$.empty=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.empty=Clazz_array(Character.TYPE, [0]); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.marks=null; +this.search=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.c$$I.apply(this, [10]); +}, 1); + +Clazz_newMeth(C$, 'c$$I', function (initialLength) { +C$.superclazz.c$$I.apply(this, [Math.max(initialLength, 2)]); +C$.$init$.apply(this); +var implied=Clazz_array(Character.TYPE, [1]); +implied[0]="\n"; +this.replace$I$I$O$I(0, 0, implied, implied.length); +this.marks=Clazz_new_($I$(2)); +this.search=Clazz_new_($I$(1).c$$I, [this, null, 0]); +}, 1); + +Clazz_newMeth(C$, 'allocateArray$I', function (len) { +return Clazz_array(Character.TYPE, [len]); +}); + +Clazz_newMeth(C$, 'getArrayLength$', function () { +var carray=this.getArray$(); +return carray.length; +}); + +Clazz_newMeth(C$, 'length$', function () { +var len=this.getArrayLength$() - (this.getGapEnd$() - this.getGapStart$()); +return len; +}); + +Clazz_newMeth(C$, 'insertString$I$S', function (where, str) { +if (where > this.length$() || where < 0 ) { +throw Clazz_new_(Clazz_load('javax.swing.text.BadLocationException').c$$S$I,["Invalid insert", this.length$()]); +}var chars=str.toCharArray$(); +this.replace$I$I$O$I(where, 0, chars, chars.length); +return Clazz_new_($I$(3).c$$I$I, [this, null, where, str.length$()]); +}); + +Clazz_newMeth(C$, 'remove$I$I', function (where, nitems) { +if (where + nitems >= this.length$()) { +throw Clazz_new_(Clazz_load('javax.swing.text.BadLocationException').c$$S$I,["Invalid remove", this.length$() + 1]); +}var removedString=this.getString$I$I(where, nitems); +var edit=Clazz_new_($I$(4).c$$I$S, [this, null, where, removedString]); +this.replace$I$I$O$I(where, nitems, C$.empty, 0); +return edit; +}); + +Clazz_newMeth(C$, 'getString$I$I', function (where, len) { +var s=Clazz_new_($I$(5)); +this.getChars$I$I$javax_swing_text_Segment(where, len, s); +return String.instantialize(s.array, s.offset, s.count); +}); + +Clazz_newMeth(C$, 'getChars$I$I$javax_swing_text_Segment', function (where, len, chars) { +var end=where + len; +if (where < 0 || end < 0 ) { +throw Clazz_new_(Clazz_load('javax.swing.text.BadLocationException').c$$S$I,["Invalid location", -1]); +}if (end > this.length$() || where > this.length$() ) { +throw Clazz_new_(Clazz_load('javax.swing.text.BadLocationException').c$$S$I,["Invalid location", this.length$() + 1]); +}var g0=this.getGapStart$(); +var g1=this.getGapEnd$(); +var array=this.getArray$(); +if ((where + len) <= g0) { +chars.array=array; +chars.offset=where; +} else if (where >= g0) { +chars.array=array; +chars.offset=g1 + where - g0; +} else { +var before=g0 - where; +if (chars.isPartialReturn$()) { +chars.array=array; +chars.offset=where; +chars.count=before; +return; +}chars.array=Clazz_array(Character.TYPE, [len]); +chars.offset=0; +System.arraycopy$O$I$O$I$I(array, where, chars.array, 0, before); +System.arraycopy$O$I$O$I$I(array, g1, chars.array, before, len - before); +}chars.count=len; +}); + +Clazz_newMeth(C$, 'createPosition$I', function (offset) { +var g0=this.getGapStart$(); +var g1=this.getGapEnd$(); +var index=(offset < g0) ? offset : offset + (g1 - g0); +this.search.index=index; +var sortIndex=this.findSortIndex$javax_swing_text_GapContent_MarkData(this.search); +var m; +var position; +if (sortIndex < this.marks.size$() && (m=this.marks.elementAt$I(sortIndex)).index == index && (position=m.getPosition$()) != null ) { +} else { +position=Clazz_new_($I$(6), [this, null]); +m=Clazz_new_($I$(1).c$$I$javax_swing_text_GapContent_StickyPosition, [this, null, index, position]); +position.setMark$javax_swing_text_GapContent_MarkData(m); +this.marks.insertElementAt$javax_swing_text_GapContent_MarkData$I(m, sortIndex); +}return position; +}); + +Clazz_newMeth(C$, 'shiftEnd$I', function (newSize) { +var oldGapEnd=this.getGapEnd$(); +C$.superclazz.prototype.shiftEnd$I.apply(this, [newSize]); +var dg=this.getGapEnd$() - oldGapEnd; +var adjustIndex=this.findMarkAdjustIndex$I(oldGapEnd); +var n=this.marks.size$(); +for (var i=adjustIndex; i < n; i++) { +var mark=this.marks.elementAt$I(i); +mark.index+=dg; +} +}); + +Clazz_newMeth(C$, 'getNewArraySize$I', function (reqSize) { +if (reqSize < 524288) { +return C$.superclazz.prototype.getNewArraySize$I.apply(this, [reqSize]); +} else { +return reqSize + 524288; +}}); + +Clazz_newMeth(C$, 'shiftGap$I', function (newGapStart) { +var oldGapStart=this.getGapStart$(); +var dg=newGapStart - oldGapStart; +var oldGapEnd=this.getGapEnd$(); +var newGapEnd=oldGapEnd + dg; +var gapSize=oldGapEnd - oldGapStart; +C$.superclazz.prototype.shiftGap$I.apply(this, [newGapStart]); +if (dg > 0) { +var adjustIndex=this.findMarkAdjustIndex$I(oldGapStart); +var n=this.marks.size$(); +for (var i=adjustIndex; i < n; i++) { +var mark=this.marks.elementAt$I(i); +if (mark.index >= newGapEnd) { +break; +}mark.index-=gapSize; +} +} else if (dg < 0) { +var adjustIndex=this.findMarkAdjustIndex$I(newGapStart); +var n=this.marks.size$(); +for (var i=adjustIndex; i < n; i++) { +var mark=this.marks.elementAt$I(i); +if (mark.index >= oldGapEnd) { +break; +}mark.index+=gapSize; +} +}this.resetMarksAtZero$(); +}); + +Clazz_newMeth(C$, 'resetMarksAtZero$', function () { +if (this.marks != null && this.getGapStart$() == 0 ) { +var g1=this.getGapEnd$(); +for (var counter=0, maxCounter=this.marks.size$(); counter < maxCounter; counter++) { +var mark=this.marks.elementAt$I(counter); +if (mark.index <= g1) { +mark.index=0; +} else { +break; +}} +}}); + +Clazz_newMeth(C$, 'shiftGapStartDown$I', function (newGapStart) { +var adjustIndex=this.findMarkAdjustIndex$I(newGapStart); +var n=this.marks.size$(); +var g0=this.getGapStart$(); +var g1=this.getGapEnd$(); +for (var i=adjustIndex; i < n; i++) { +var mark=this.marks.elementAt$I(i); +if (mark.index > g0) { +break; +}mark.index=g1; +} +C$.superclazz.prototype.shiftGapStartDown$I.apply(this, [newGapStart]); +this.resetMarksAtZero$(); +}); + +Clazz_newMeth(C$, 'shiftGapEndUp$I', function (newGapEnd) { +var adjustIndex=this.findMarkAdjustIndex$I(this.getGapEnd$()); +var n=this.marks.size$(); +for (var i=adjustIndex; i < n; i++) { +var mark=this.marks.elementAt$I(i); +if (mark.index >= newGapEnd) { +break; +}mark.index=newGapEnd; +} +C$.superclazz.prototype.shiftGapEndUp$I.apply(this, [newGapEnd]); +this.resetMarksAtZero$(); +}); + +Clazz_newMeth(C$, 'compare$javax_swing_text_GapContent_MarkData$javax_swing_text_GapContent_MarkData', function (o1, o2) { +if (o1.index < o2.index) { +return -1; +} else if (o1.index > o2.index) { +return 1; +} else { +return 0; +}}); + +Clazz_newMeth(C$, 'findMarkAdjustIndex$I', function (searchIndex) { +this.search.index=Math.max(searchIndex, 1); +var index=this.findSortIndex$javax_swing_text_GapContent_MarkData(this.search); +for (var i=index - 1; i >= 0; i--) { +var d=this.marks.elementAt$I(i); +if (d.index != this.search.index) { +break; +}index-=1; +} +return index; +}); + +Clazz_newMeth(C$, 'findSortIndex$javax_swing_text_GapContent_MarkData', function (o) { +var lower=0; +var upper=this.marks.size$() - 1; +var mid=0; +if (upper == -1) { +return 0; +}var cmp=0; +var last=this.marks.elementAt$I(upper); +cmp=this.compare$javax_swing_text_GapContent_MarkData$javax_swing_text_GapContent_MarkData(o, last); +if (cmp > 0) return upper + 1; +while (lower <= upper){ +mid=lower + (((upper - lower)/2|0)); +var entry=this.marks.elementAt$I(mid); +cmp=this.compare$javax_swing_text_GapContent_MarkData$javax_swing_text_GapContent_MarkData(o, entry); +if (cmp == 0) { +return mid; +} else if (cmp < 0) { +upper=mid - 1; +} else { +lower=mid + 1; +}} +return (cmp < 0) ? mid : mid + 1; +}); + +Clazz_newMeth(C$, 'removeUnusedMarks$', function () { +var n=this.marks.size$(); +var cleaned=Clazz_new_($I$(2).c$$I,[n]); +for (var i=0; i < n; i++) { +var mark=this.marks.elementAt$I(i); +if (mark != null ) { +cleaned.addElement$javax_swing_text_GapContent_MarkData(mark); +}} +this.marks=cleaned; +}); + +Clazz_newMeth(C$, 'getPositionsInRange$java_util_Vector$I$I', function (v, offset, length) { +var endOffset=offset + length; +var startIndex; +var endIndex; +var g0=this.getGapStart$(); +var g1=this.getGapEnd$(); +if (offset < g0) { +if (offset == 0) { +startIndex=0; +} else { +startIndex=this.findMarkAdjustIndex$I(offset); +}if (endOffset >= g0) { +endIndex=this.findMarkAdjustIndex$I(endOffset + (g1 - g0) + 1 ); +} else { +endIndex=this.findMarkAdjustIndex$I(endOffset + 1); +}} else { +startIndex=this.findMarkAdjustIndex$I(offset + (g1 - g0)); +endIndex=this.findMarkAdjustIndex$I(endOffset + (g1 - g0) + 1 ); +}var placeIn=(v == null ) ? Clazz_new_($I$(7).c$$I,[Math.max(1, endIndex - startIndex)]) : v; +for (var counter=startIndex; counter < endIndex; counter++) { +placeIn.addElement$TE(Clazz_new_($I$(8).c$$javax_swing_text_GapContent_MarkData, [this, null, this.marks.elementAt$I(counter)])); +} +return placeIn; +}); + +Clazz_newMeth(C$, 'updateUndoPositions$java_util_Vector$I$I', function (positions, offset, length) { +var endOffset=offset + length; +var g1=this.getGapEnd$(); +var startIndex; +var endIndex=this.findMarkAdjustIndex$I(g1 + 1); +if (offset != 0) { +startIndex=this.findMarkAdjustIndex$I(g1); +} else { +startIndex=0; +}for (var counter=positions.size$() - 1; counter >= 0; counter--) { +var ref=positions.elementAt$I(counter); +ref.resetLocation$I$I(endOffset, g1); +} +if (startIndex < endIndex) { +var sorted=Clazz_array(java.lang.Object, [endIndex - startIndex]); +var addIndex=0; +var counter; +if (offset == 0) { +for (counter=startIndex; counter < endIndex; counter++) { +var mark=this.marks.elementAt$I(counter); +if (mark.index == 0) { +sorted[addIndex++]=mark; +}} +for (counter=startIndex; counter < endIndex; counter++) { +var mark=this.marks.elementAt$I(counter); +if (mark.index != 0) { +sorted[addIndex++]=mark; +}} +} else { +for (counter=startIndex; counter < endIndex; counter++) { +var mark=this.marks.elementAt$I(counter); +if (mark.index != g1) { +sorted[addIndex++]=mark; +}} +for (counter=startIndex; counter < endIndex; counter++) { +var mark=this.marks.elementAt$I(counter); +if (mark.index == g1) { +sorted[addIndex++]=mark; +}} +}this.marks.replaceRange$I$I$OA(startIndex, endIndex, sorted); +}}); +; +(function(){var C$=Clazz_newClass(P$.GapContent, "MarkData", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.ref=null; +this.index=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$I', function (index) { +C$.$init$.apply(this); +this.index=index; +}, 1); + +Clazz_newMeth(C$, 'c$$I$javax_swing_text_GapContent_StickyPosition', function (index, position) { +C$.$init$.apply(this); +this.ref=position; +this.index=index; +}, 1); + +Clazz_newMeth(C$, 'getOffset$', function () { +var g0=this.b$['javax.swing.text.GapVector'].getGapStart$.apply(this.b$['javax.swing.text.GapVector'], []); +var g1=this.b$['javax.swing.text.GapVector'].getGapEnd$.apply(this.b$['javax.swing.text.GapVector'], []); +var offs=(this.index < g0) ? this.index : this.index - (g1 - g0); +return Math.max(offs, 0); +}); + +Clazz_newMeth(C$, 'getPosition$', function () { +return this.ref; +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.GapContent, "StickyPosition", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, null, 'javax.swing.text.Position'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.mark=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'setMark$javax_swing_text_GapContent_MarkData', function (mark) { +this.mark=mark; +}); + +Clazz_newMeth(C$, 'getOffset$', function () { +return this.mark.getOffset$(); +}); + +Clazz_newMeth(C$, 'toString', function () { +return Integer.toString$I(this.getOffset$()); +}); +})() +; +(function(){var C$=Clazz_newClass(P$.GapContent, "MarkVector", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'javax.swing.text.GapVector'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.oneMark=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.oneMark=Clazz_array($I$(1), [1]); +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.superclazz.c$.apply(this, []); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'c$$I', function (size) { +C$.superclazz.c$$I.apply(this, [size]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'allocateArray$I', function (len) { +return Clazz_array($I$(1), [len]); +}); + +Clazz_newMeth(C$, 'getArrayLength$', function () { +var marks=this.getArray$(); +return marks.length; +}); + +Clazz_newMeth(C$, 'size$', function () { +var len=this.getArrayLength$() - (this.getGapEnd$() - this.getGapStart$()); +return len; +}); + +Clazz_newMeth(C$, 'insertElementAt$javax_swing_text_GapContent_MarkData$I', function (m, index) { +this.oneMark[0]=m; +this.replace$I$I$O$I(index, 0, this.oneMark, 1); +}); + +Clazz_newMeth(C$, 'addElement$javax_swing_text_GapContent_MarkData', function (m) { +this.insertElementAt$javax_swing_text_GapContent_MarkData$I(m, this.size$()); +}); + +Clazz_newMeth(C$, 'elementAt$I', function (index) { +var g0=this.getGapStart$(); +var g1=this.getGapEnd$(); +var array=this.getArray$(); +if (index < g0) { +return array[index]; +} else { +index+=g1 - g0; +return array[index]; +}}); + +Clazz_newMeth(C$, 'replaceRange$I$I$OA', function (start, end, marks) { +var g0=this.getGapStart$(); +var g1=this.getGapEnd$(); +var index=start; +var newIndex=0; +var array=this.getArray$(); +if (start >= g0) { +index+=(g1 - g0); +end+=(g1 - g0); +} else if (end >= g0) { +end+=(g1 - g0); +while (index < g0){ +array[index++]=marks[newIndex++]; +} +index=g1; +} else { +while (index < end){ +array[index++]=marks[newIndex++]; +} +}while (index < end){ +array[index++]=marks[newIndex++]; +} +}); +})() +; +(function(){var C$=Clazz_newClass(P$.GapContent, "UndoPosRef", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.undoLocation=0; +this.rec=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$javax_swing_text_GapContent_MarkData', function (rec) { +C$.$init$.apply(this); +this.rec=rec; +this.undoLocation=rec.getOffset$(); +}, 1); + +Clazz_newMeth(C$, 'resetLocation$I$I', function (endOffset, g1) { +if (this.undoLocation != endOffset) { +this.rec.index=this.undoLocation; +} else { +this.rec.index=g1; +}}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.GapContent, "InsertUndo", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, 'javax.swing.undo.AbstractUndoableEdit'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.offset=0; +this.length=0; +this.string=null; +this.posRefs=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$I$I', function (offset, length) { +C$.superclazz.c$.apply(this, []); +C$.$init$.apply(this); +this.offset=offset; +this.length=length; +}, 1); + +Clazz_newMeth(C$, 'undo$', function () { +C$.superclazz.prototype.undo$.apply(this, []); +try { +this.posRefs=this.this$0.getPositionsInRange$java_util_Vector$I$I.apply(this.this$0, [null, this.offset, this.length]); +this.string=this.this$0.getString$I$I.apply(this.this$0, [this.offset, this.length]); +this.this$0.remove$I$I.apply(this.this$0, [this.offset, this.length]); +} catch (bl) { +if (Clazz_exceptionOf(bl,"javax.swing.text.BadLocationException")){ +throw Clazz_new_(Clazz_load('javax.swing.undo.CannotUndoException')); +} else { +throw bl; +} +} +}); + +Clazz_newMeth(C$, 'redo$', function () { +C$.superclazz.prototype.redo$.apply(this, []); +try { +this.this$0.insertString$I$S.apply(this.this$0, [this.offset, this.string]); +this.string=null; +if (this.posRefs != null ) { +this.this$0.updateUndoPositions$java_util_Vector$I$I.apply(this.this$0, [this.posRefs, this.offset, this.length]); +this.posRefs=null; +}} catch (bl) { +if (Clazz_exceptionOf(bl,"javax.swing.text.BadLocationException")){ +throw Clazz_new_(Clazz_load('javax.swing.undo.CannotRedoException')); +} else { +throw bl; +} +} +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.GapContent, "RemoveUndo", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, 'javax.swing.undo.AbstractUndoableEdit'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.offset=0; +this.length=0; +this.string=null; +this.posRefs=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$I$S', function (offset, string) { +C$.superclazz.c$.apply(this, []); +C$.$init$.apply(this); +this.offset=offset; +this.string=string; +this.length=string.length$(); +this.posRefs=this.this$0.getPositionsInRange$java_util_Vector$I$I.apply(this.this$0, [null, offset, this.length]); +}, 1); + +Clazz_newMeth(C$, 'undo$', function () { +C$.superclazz.prototype.undo$.apply(this, []); +try { +this.this$0.insertString$I$S.apply(this.this$0, [this.offset, this.string]); +if (this.posRefs != null ) { +this.this$0.updateUndoPositions$java_util_Vector$I$I.apply(this.this$0, [this.posRefs, this.offset, this.length]); +this.posRefs=null; +}this.string=null; +} catch (bl) { +if (Clazz_exceptionOf(bl,"javax.swing.text.BadLocationException")){ +throw Clazz_new_(Clazz_load('javax.swing.undo.CannotUndoException')); +} else { +throw bl; +} +} +}); + +Clazz_newMeth(C$, 'redo$', function () { +C$.superclazz.prototype.redo$.apply(this, []); +try { +this.string=this.this$0.getString$I$I.apply(this.this$0, [this.offset, this.length]); +this.posRefs=this.this$0.getPositionsInRange$java_util_Vector$I$I.apply(this.this$0, [null, this.offset, this.length]); +this.this$0.remove$I$I.apply(this.this$0, [this.offset, this.length]); +} catch (bl) { +if (Clazz_exceptionOf(bl,"javax.swing.text.BadLocationException")){ +throw Clazz_new_(Clazz_load('javax.swing.undo.CannotRedoException')); +} else { +throw bl; +} +} +}); + +Clazz_newMeth(C$); +})() +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:15 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing.text"); +var C$=Clazz_newClass(P$, "GapVector"); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.array=null; +this.g0=0; +this.g1=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.c$$I.apply(this, [10]); +}, 1); + +Clazz_newMeth(C$, 'c$$I', function (initialLength) { +C$.$init$.apply(this); +this.array=this.allocateArray$I(initialLength); +this.g0=0; +this.g1=initialLength; +}, 1); + +Clazz_newMeth(C$, 'getArray$', function () { +return this.array; +}); + +Clazz_newMeth(C$, 'getGapStart$', function () { +return this.g0; +}); + +Clazz_newMeth(C$, 'getGapEnd$', function () { +return this.g1; +}); + +Clazz_newMeth(C$, 'replace$I$I$O$I', function (position, rmSize, addItems, addSize) { +var addOffset=0; +if (addSize == 0) { +this.close$I$I(position, rmSize); +return; +} else if (rmSize > addSize) { +this.close$I$I(position + addSize, rmSize - addSize); +} else { +var endSize=addSize - rmSize; +var end=this.open$I$I(position + rmSize, endSize); +System.arraycopy$O$I$O$I$I(addItems, rmSize, this.array, end, endSize); +addSize=rmSize; +}System.arraycopy$O$I$O$I$I(addItems, addOffset, this.array, position, addSize); +}); + +Clazz_newMeth(C$, 'close$I$I', function (position, nItems) { +if (nItems == 0) return; +var end=position + nItems; +var new_gs=(this.g1 - this.g0) + nItems; +if (end <= this.g0) { +if (this.g0 != end) { +this.shiftGap$I(end); +}this.shiftGapStartDown$I(this.g0 - nItems); +} else if (position >= this.g0) { +if (this.g0 != position) { +this.shiftGap$I(position); +}this.shiftGapEndUp$I(this.g0 + new_gs); +} else { +this.shiftGapStartDown$I(position); +this.shiftGapEndUp$I(this.g0 + new_gs); +}}); + +Clazz_newMeth(C$, 'open$I$I', function (position, nItems) { +var gapSize=this.g1 - this.g0; +if (nItems == 0) { +if (position > this.g0) position+=gapSize; +return position; +}this.shiftGap$I(position); +if (nItems >= gapSize) { +this.shiftEnd$I(this.getArrayLength$() - gapSize + nItems); +gapSize=this.g1 - this.g0; +}this.g0=this.g0 + nItems; +return position; +}); + +Clazz_newMeth(C$, 'resize$I', function (nsize) { +var narray=this.allocateArray$I(nsize); +System.arraycopy$O$I$O$I$I(this.array, 0, narray, 0, Math.min(nsize, this.getArrayLength$())); +this.array=narray; +}); + +Clazz_newMeth(C$, 'shiftEnd$I', function (newSize) { +var oldSize=this.getArrayLength$(); +var oldGapEnd=this.g1; +var upperSize=oldSize - oldGapEnd; +var arrayLength=this.getNewArraySize$I(newSize); +var newGapEnd=arrayLength - upperSize; +this.resize$I(arrayLength); +this.g1=newGapEnd; +if (upperSize != 0) { +System.arraycopy$O$I$O$I$I(this.array, oldGapEnd, this.array, newGapEnd, upperSize); +}}); + +Clazz_newMeth(C$, 'getNewArraySize$I', function (reqSize) { +return (reqSize + 1) * 2; +}); + +Clazz_newMeth(C$, 'shiftGap$I', function (newGapStart) { +if (newGapStart == this.g0) { +return; +}var oldGapStart=this.g0; +var dg=newGapStart - oldGapStart; +var oldGapEnd=this.g1; +var newGapEnd=oldGapEnd + dg; +this.g0=newGapStart; +this.g1=newGapEnd; +if (dg > 0) { +System.arraycopy$O$I$O$I$I(this.array, oldGapEnd, this.array, oldGapStart, dg); +} else if (dg < 0) { +System.arraycopy$O$I$O$I$I(this.array, newGapStart, this.array, newGapEnd, -dg); +}}); + +Clazz_newMeth(C$, 'shiftGapStartDown$I', function (newGapStart) { +this.g0=newGapStart; +}); + +Clazz_newMeth(C$, 'shiftGapEndUp$I', function (newGapEnd) { +this.g1=newGapEnd; +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:15 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing.text"),p$1={},I$=[[0,'java.awt.Point','java.util.Hashtable','javax.swing.KeyStroke','javax.swing.Action','java.util.Vector',['javax.swing.text.JTextComponent','.KeymapWrapper'],'sun.awt.AppContext','javax.swing.text.JTextComponent','javax.swing.DropMode',['javax.swing.text.JTextComponent','.MutableCaretEvent'],'javax.swing.event.CaretListener',['javax.swing.text.Position','.Bias'],['javax.swing.text.JTextComponent','.DropLocation'],'Boolean',['javax.swing.text.JTextComponent','.KeymapActionMap'],['javax.swing.text.JTextComponent','.DefaultKeymap'],'java.util.HashMap',['javax.swing.text.DefaultEditorKit','.DefaultKeyTypedAction'],'swingjs.JSUtil']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "JTextComponent", function(){ +Clazz_newInstance(this, arguments,0,C$); +}, 'javax.swing.JComponent', ['java.awt.TextComponent', 'javax.swing.Scrollable']); +C$.overrideMap=null; +C$.KEYMAP_TABLE=null; +C$.FOCUSED_COMPONENT=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.KEYMAP_TABLE= Clazz_new_(); +C$.FOCUSED_COMPONENT= Clazz_new_(); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.model=null; +this.caret=null; +this.navigationFilter=null; +this.highlighter=null; +this.keymap=null; +this.caretEvent=null; +this.caretColor=null; +this.selectionColor=null; +this.selectedTextColor=null; +this.disabledTextColor=null; +this.editable=false; +this.margin=null; +this.focusAccelerator='\0'; +this.dragEnabled=false; +this.dropMode=null; +this.dropLocation=null; +this.composedTextAttribute=null; +this.composedTextContent=null; +this.composedTextStart=null; +this.composedTextEnd=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.dropMode=$I$(9).USE_SELECTION; +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +Clazz_super_(C$, this,1); +this.enableEvents$J(2056); +this.caretEvent=Clazz_new_($I$(10).c$$javax_swing_text_JTextComponent,[this]); +this.addMouseListener$java_awt_event_MouseListener(this.caretEvent); +this.addFocusListener$java_awt_event_FocusListener(this.caretEvent); +this.setEditable$Z(true); +this.setDragEnabled$Z(false); +this.setLayout$java_awt_LayoutManager(null); +this.updateUI$(); +this.setOpaque$Z(true); +}, 1); + +Clazz_newMeth(C$, 'updateUI$', function () { +C$.superclazz.prototype.updateUI$.apply(this, []); +this.invalidate$(); +}); + +Clazz_newMeth(C$, 'addCaretListener$javax_swing_event_CaretListener', function (listener) { +this.listenerList.add$Class$TT(Clazz_getClass($I$(11),['caretUpdate$javax_swing_event_CaretEvent']), listener); +}); + +Clazz_newMeth(C$, 'removeCaretListener$javax_swing_event_CaretListener', function (listener) { +this.listenerList.remove$Class$TT(Clazz_getClass($I$(11),['caretUpdate$javax_swing_event_CaretEvent']), listener); +}); + +Clazz_newMeth(C$, 'getCaretListeners$', function () { +return this.listenerList.getListeners$Class(Clazz_getClass($I$(11),['caretUpdate$javax_swing_event_CaretEvent'])); +}); + +Clazz_newMeth(C$, 'fireCaretUpdate$javax_swing_event_CaretEvent', function (e) { +var listeners=this.listenerList.getListenerList$(); +for (var i=listeners.length - 2; i >= 0; i-=2) { +if (listeners[i] === Clazz_getClass($I$(11),['caretUpdate$javax_swing_event_CaretEvent']) ) { +(listeners[i + 1]).caretUpdate$(e); +}} +}); + +Clazz_newMeth(C$, 'setDocument$javax_swing_text_Document', function (doc) { +var old=this.model; +try { +this.model=doc; +this.firePropertyChange$S$O$O("document", old, doc); +} finally { +} +this.revalidate$(); +this.秘repaint$(); +}); + +Clazz_newMeth(C$, 'getDocument$', function () { +return this.model; +}); + +Clazz_newMeth(C$, 'setComponentOrientation$java_awt_ComponentOrientation', function (o) { +C$.superclazz.prototype.setComponentOrientation$java_awt_ComponentOrientation.apply(this, [o]); +}); + +Clazz_newMeth(C$, 'getActions$', function () { +if (this.getUI$() == null ) return null; +return (this.getUI$()).getEditorKit$javax_swing_text_JTextComponent(this).getActions$(); +}); + +Clazz_newMeth(C$, 'setMargin$java_awt_Insets', function (m) { +var old=this.margin; +this.margin=m; +this.firePropertyChange$S$O$O("margin", old, m); +this.invalidate$(); +}); + +Clazz_newMeth(C$, 'getMargin$', function () { +return this.margin; +}); + +Clazz_newMeth(C$, 'setNavigationFilter$javax_swing_text_NavigationFilter', function (filter) { +this.navigationFilter=filter; +}); + +Clazz_newMeth(C$, 'getNavigationFilter$', function () { +return this.navigationFilter; +}); + +Clazz_newMeth(C$, 'getCaret$', function () { +return this.caret; +}); + +Clazz_newMeth(C$, 'setCaret$javax_swing_text_Caret', function (c) { +if (this.caret != null ) { +this.caret.removeChangeListener$javax_swing_event_ChangeListener(this.caretEvent); +this.caret.deinstall$javax_swing_text_JTextComponent(this); +}var old=this.caret; +this.caret=c; +if (this.caret != null ) { +this.caret.install$javax_swing_text_JTextComponent(this); +this.caret.addChangeListener$javax_swing_event_ChangeListener(this.caretEvent); +}this.firePropertyChange$S$O$O("caret", old, this.caret); +}); + +Clazz_newMeth(C$, 'getHighlighter$', function () { +return this.highlighter; +}); + +Clazz_newMeth(C$, 'setHighlighter$javax_swing_text_Highlighter', function (h) { +if (this.highlighter != null ) { +this.highlighter.deinstall$javax_swing_text_JTextComponent(this); +}var old=this.highlighter; +this.highlighter=h; +if (this.highlighter != null ) { +this.highlighter.install$javax_swing_text_JTextComponent(this); +}this.firePropertyChange$S$O$O("highlighter", old, h); +}); + +Clazz_newMeth(C$, 'setKeymap$javax_swing_text_Keymap', function (map) { +var old=this.keymap; +this.keymap=map; +this.firePropertyChange$S$O$O("keymap", old, this.keymap); +this.updateInputMap$javax_swing_text_Keymap$javax_swing_text_Keymap(old, map); +}); + +Clazz_newMeth(C$, 'setDragEnabled$Z', function (b) { +this.dragEnabled=b; +}); + +Clazz_newMeth(C$, 'getDragEnabled$', function () { +return this.dragEnabled; +}); + +Clazz_newMeth(C$, 'setDropMode$javax_swing_DropMode', function (dropMode) { +if (dropMode != null ) { +switch (dropMode) { +case $I$(9).USE_SELECTION: +case $I$(9).INSERT: +this.dropMode=dropMode; +return; +} +}throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,[dropMode + ": Unsupported drop mode for text"]); +}); + +Clazz_newMeth(C$, 'getDropMode$', function () { +return this.dropMode; +}); + +Clazz_newMeth(C$, 'dropLocationForPoint$java_awt_Point', function (p) { +var bias=Clazz_array($I$(12), [1]); +var index=(this.getUI$()).viewToModel$javax_swing_text_JTextComponent$java_awt_Point$javax_swing_text_Position_BiasA(this, p, bias); +if (bias[0] == null ) { +bias[0]=$I$(12).Forward; +}return Clazz_new_($I$(13).c$$java_awt_Point$I$javax_swing_text_Position_Bias,[p, index, bias[0]]); +}); + +Clazz_newMeth(C$, 'setDropLocation$javax_swing_TransferHandler_DropLocation$O$Z', function (location, state, forDrop) { +var retVal=null; +var textLocation=location; +if (this.dropMode === $I$(9).USE_SELECTION ) { +if (textLocation == null ) { +if (state != null ) { +var vals=state; +if (!forDrop) { +if (Clazz_instanceOf(this.caret, "javax.swing.text.DefaultCaret")) { +(this.caret).setDot$I$javax_swing_text_Position_Bias((vals[0]).intValue$(), vals[3]); +(this.caret).moveDot$I$javax_swing_text_Position_Bias((vals[1]).intValue$(), vals[4]); +} else { +this.caret.setDot$I((vals[0]).intValue$()); +this.caret.moveDot$I((vals[1]).intValue$()); +}}this.caret.setVisible$Z((vals[2]).booleanValue$()); +}} else { +if (this.dropLocation == null ) { +var visible; +if (Clazz_instanceOf(this.caret, "javax.swing.text.DefaultCaret")) { +var dc=this.caret; +visible=dc.isActive$(); +retVal=Clazz_array(java.lang.Object, -1, [Integer.valueOf$I(dc.getMark$()), Integer.valueOf$I(dc.getDot$()), $I$(14).valueOf$Z(visible), dc.getMarkBias$(), dc.getDotBias$()]); +} else { +visible=this.caret.isVisible$(); +retVal=Clazz_array(java.lang.Object, -1, [Integer.valueOf$I(this.caret.getMark$()), Integer.valueOf$I(this.caret.getDot$()), $I$(14).valueOf$Z(visible)]); +}this.caret.setVisible$Z(true); +} else { +retVal=state; +}if (Clazz_instanceOf(this.caret, "javax.swing.text.DefaultCaret")) { +(this.caret).setDot$I$javax_swing_text_Position_Bias(textLocation.getIndex$(), textLocation.getBias$()); +} else { +this.caret.setDot$I(textLocation.getIndex$()); +}}} else { +if (textLocation == null ) { +if (state != null ) { +this.caret.setVisible$Z((state).booleanValue$()); +}} else { +if (this.dropLocation == null ) { +var visible=Clazz_instanceOf(this.caret, "javax.swing.text.DefaultCaret") ? (this.caret).isActive$() : this.caret.isVisible$(); +retVal=$I$(14).valueOf$Z(visible); +this.caret.setVisible$Z(false); +} else { +retVal=state; +}}}var old=this.dropLocation; +this.dropLocation=textLocation; +this.firePropertyChange$S$O$O("dropLocation", old, this.dropLocation); +return retVal; +}); + +Clazz_newMeth(C$, 'getDropLocation$', function () { +return this.dropLocation; +}); + +Clazz_newMeth(C$, 'updateInputMap$javax_swing_text_Keymap$javax_swing_text_Keymap', function (oldKm, newKm) { +var km=this.getInputMap$I(0); +var last=km; +while (km != null && !(Clazz_instanceOf(km, "javax.swing.text.JTextComponent.KeymapWrapper")) ){ +last=km; +km=km.getParent$(); +} +if (km != null ) { +if (newKm == null ) { +if (last !== km ) { +last.setParent$javax_swing_InputMap(km.getParent$()); +} else { +last.setParent$javax_swing_InputMap(null); +}} else { +var newKM=Clazz_new_($I$(6).c$$javax_swing_text_Keymap,[newKm]); +last.setParent$javax_swing_InputMap(newKM); +if (last !== km ) { +newKM.setParent$javax_swing_InputMap(km.getParent$()); +}}} else if (newKm != null ) { +km=this.getInputMap$I(0); +if (km != null ) { +var newKM=Clazz_new_($I$(6).c$$javax_swing_text_Keymap,[newKm]); +newKM.setParent$javax_swing_InputMap(km.getParent$()); +km.setParent$javax_swing_InputMap(newKM); +}}var am=this.getActionMap$(); +var lastAM=am; +while (am != null && !(Clazz_instanceOf(am, "javax.swing.text.JTextComponent.KeymapActionMap")) ){ +lastAM=am; +am=am.getParent$(); +} +if (am != null ) { +if (newKm == null ) { +if (lastAM !== am ) { +lastAM.setParent$javax_swing_ActionMap(am.getParent$()); +} else { +lastAM.setParent$javax_swing_ActionMap(null); +}} else { +var newAM=Clazz_new_($I$(15).c$$javax_swing_text_Keymap,[newKm]); +lastAM.setParent$javax_swing_ActionMap(newAM); +if (lastAM !== am ) { +newAM.setParent$javax_swing_ActionMap(am.getParent$()); +}}} else if (newKm != null ) { +am=this.getActionMap$(); +if (am != null ) { +var newAM=Clazz_new_($I$(15).c$$javax_swing_text_Keymap,[newKm]); +newAM.setParent$javax_swing_ActionMap(am.getParent$()); +am.setParent$javax_swing_ActionMap(newAM); +}}}); + +Clazz_newMeth(C$, 'getKeymap$', function () { +return this.keymap; +}); + +Clazz_newMeth(C$, 'addKeymap$S$javax_swing_text_Keymap', function (nm, parent) { +var map=Clazz_new_($I$(16).c$$S$javax_swing_text_Keymap,[nm, parent]); +if (nm != null ) { +C$.getKeymapTable$().put$TK$TV(nm, map); +}return map; +}, 1); + +Clazz_newMeth(C$, 'removeKeymap$S', function (nm) { +return C$.getKeymapTable$().remove$O(nm); +}, 1); + +Clazz_newMeth(C$, 'getKeymap$S', function (nm) { +return C$.getKeymapTable$().get$O(nm); +}, 1); + +Clazz_newMeth(C$, 'getKeymapTable$', function () { +{ +var appContext=$I$(7).getAppContext$(); +var keymapTable=appContext.get$O(C$.KEYMAP_TABLE); +if (keymapTable == null ) { +keymapTable=Clazz_new_($I$(17).c$$I,[17]); +appContext.put$O$O(C$.KEYMAP_TABLE, keymapTable); +var binding=C$.addKeymap$S$javax_swing_text_Keymap("default", null); +binding.setDefaultAction$javax_swing_Action(Clazz_new_($I$(18))); +}return keymapTable; +}}, 1); + +Clazz_newMeth(C$, 'loadKeymap$javax_swing_text_Keymap$javax_swing_text_JTextComponent_KeyBindingA$javax_swing_ActionA', function (map, bindings, actions) { +var h=Clazz_new_($I$(2)); +for (var i=0; i < actions.length; i++) { +var a=actions[i]; +var value=a.getValue$S("Name"); +h.put$TK$TV((value != null ? value : ""), a); +} +for (var i=0; i < bindings.length; i++) { +var a=h.get$O(bindings[i].actionName); +if (a != null ) { +map.addActionForKeyStroke$javax_swing_KeyStroke$javax_swing_Action(bindings[i].key, a); +}} +}, 1); + +Clazz_newMeth(C$, 'getCaretColor$', function () { +return this.caretColor; +}); + +Clazz_newMeth(C$, 'setCaretColor$java_awt_Color', function (c) { +var old=this.caretColor; +this.caretColor=c; +this.firePropertyChange$S$O$O("caretColor", old, this.caretColor); +}); + +Clazz_newMeth(C$, 'getSelectionColor$', function () { +return this.selectionColor; +}); + +Clazz_newMeth(C$, 'setSelectionColor$java_awt_Color', function (c) { +var old=this.selectionColor; +this.selectionColor=c; +this.firePropertyChange$S$O$O("selectionColor", old, this.selectionColor); +}); + +Clazz_newMeth(C$, 'getSelectedTextColor$', function () { +return this.selectedTextColor; +}); + +Clazz_newMeth(C$, 'setSelectedTextColor$java_awt_Color', function (c) { +var old=this.selectedTextColor; +this.selectedTextColor=c; +this.firePropertyChange$S$O$O("selectedTextColor", old, this.selectedTextColor); +}); + +Clazz_newMeth(C$, 'getDisabledTextColor$', function () { +return this.disabledTextColor; +}); + +Clazz_newMeth(C$, 'setDisabledTextColor$java_awt_Color', function (c) { +var old=this.disabledTextColor; +this.disabledTextColor=c; +this.firePropertyChange$S$O$O("disabledTextColor", old, this.disabledTextColor); +}); + +Clazz_newMeth(C$, 'replaceSelection$S', function (content) { +var doc=this.getDocument$(); +if (doc != null ) { +try { +var composedTextSaved=p$1.saveComposedText$I.apply(this, [this.caret.getDot$()]); +var p0=Math.min(this.caret.getDot$(), this.caret.getMark$()); +var p1=Math.max(this.caret.getDot$(), this.caret.getMark$()); +if (Clazz_instanceOf(doc, "javax.swing.text.AbstractDocument")) { +(doc).replace$I$I$S$javax_swing_text_AttributeSet$javax_swing_text_JTextComponent(p0, p1 - p0, content, null, this); +} else { +if (p0 != p1) { +doc.remove$I$I(p0, p1 - p0); +}if (content != null && content.length$() > 0 ) { +doc.insertString$I$S$javax_swing_text_AttributeSet(p0, content, null); +}}if (composedTextSaved) { +p$1.restoreComposedText.apply(this, []); +}} catch (e) { +if (Clazz_exceptionOf(e,"javax.swing.text.BadLocationException")){ +$I$(19).alert$O("SWINGJS BAD LOCATION EXCEPTION (replace):" + e.getMessage$() + $I$(19).getStackTrace$I(-10) ); +} else { +throw e; +} +} +}}); + +Clazz_newMeth(C$, 'getText$I$I', function (offs, len) { +return this.getDocument$().getText$I$I(offs, len); +}); + +Clazz_newMeth(C$, 'modelToView$I', function (pos) { +return (this.getUI$()).modelToView$javax_swing_text_JTextComponent$I(this, pos); +}); + +Clazz_newMeth(C$, 'viewToModel$java_awt_Point', function (pt) { +return (this.getUI$()).viewToModel$javax_swing_text_JTextComponent$java_awt_Point(this, pt); +}); + +Clazz_newMeth(C$, 'cut$', function () { +}); + +Clazz_newMeth(C$, 'copy$', function () { +}); + +Clazz_newMeth(C$, 'paste$', function () { +}); + +Clazz_newMeth(C$, 'moveCaretPosition$I', function (pos) { +var doc=this.getDocument$(); +if (doc != null ) { +if (pos > doc.getLength$() || pos < 0 ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["bad position: " + pos]); +}this.caret.moveDot$I(pos); +}}); + +Clazz_newMeth(C$, 'setFocusAccelerator$C', function (aKey) { +aKey=Character.toUpperCase$C(aKey); +var old=this.focusAccelerator; +this.focusAccelerator=aKey; +this.firePropertyChange$S$C$C("focusAcceleratorKey", old, this.focusAccelerator); +this.firePropertyChange$S$C$C("focusAccelerator", old, this.focusAccelerator); +}); + +Clazz_newMeth(C$, 'getFocusAccelerator$', function () { +return this.focusAccelerator; +}); + +Clazz_newMeth(C$, 'read$java_io_Reader$O', function ($in, desc) { +var kit=(this.getUI$()).getEditorKit$javax_swing_text_JTextComponent(this); +var doc=kit.createDefaultDocument$(); +if (desc != null ) { +doc.putProperty$O$O("stream", desc); +}try { +kit.read$java_io_Reader$javax_swing_text_Document$I($in, doc, 0); +this.setDocument$javax_swing_text_Document(doc); +} catch (e) { +if (Clazz_exceptionOf(e,"javax.swing.text.BadLocationException")){ +throw Clazz_new_(Clazz_load('java.io.IOException').c$$S,[e.getMessage$()]); +} else { +throw e; +} +} +}); + +Clazz_newMeth(C$, 'write$java_io_Writer', function (out) { +var doc=this.getDocument$(); +try { +(this.getUI$()).getEditorKit$javax_swing_text_JTextComponent(this).write$java_io_Writer$javax_swing_text_Document$I$I(out, doc, 0, doc.getLength$()); +} catch (e) { +if (Clazz_exceptionOf(e,"javax.swing.text.BadLocationException")){ +throw Clazz_new_(Clazz_load('java.io.IOException').c$$S,[e.getMessage$()]); +} else { +throw e; +} +} +}); + +Clazz_newMeth(C$, 'removeNotify$', function () { +C$.superclazz.prototype.removeNotify$.apply(this, []); +if (C$.getFocusedComponent$() === this ) { +$I$(7).getAppContext$().remove$O(C$.FOCUSED_COMPONENT); +}}); + +Clazz_newMeth(C$, 'setCaretPosition$I', function (position) { +var doc=this.getDocument$(); +if (doc != null ) { +if (position > doc.getLength$() || position < 0 ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["bad position: " + position]); +}this.caret.setDot$I(position); +}}); + +Clazz_newMeth(C$, 'getCaretPosition$', function () { +return this.caret.getDot$(); +}); + +Clazz_newMeth(C$, 'setText$S', function (t) { +try { +var doc=this.getDocument$(); +if (Clazz_instanceOf(doc, "javax.swing.text.AbstractDocument")) { +(doc).replace$I$I$S$javax_swing_text_AttributeSet$javax_swing_text_JTextComponent(0, doc.getLength$(), t, null, this); +} else { +doc.remove$I$I(0, doc.getLength$()); +doc.insertString$I$S$javax_swing_text_AttributeSet(0, t, null); +}} catch (e) { +if (Clazz_exceptionOf(e,"javax.swing.text.BadLocationException")){ +$I$(19).alert$O("SWINGJS BAD LOCATION EXCEPTION (setText):" + e.getMessage$() + $I$(19).getStackTrace$I(-10) ); +} else { +throw e; +} +} +}); + +Clazz_newMeth(C$, 'getText$', function () { +var doc=this.getDocument$(); +var txt; +try { +txt=doc.getText$I$I(0, doc.getLength$()); +} catch (e) { +if (Clazz_exceptionOf(e,"javax.swing.text.BadLocationException")){ +txt=null; +} else { +throw e; +} +} +return txt; +}); + +Clazz_newMeth(C$, 'getSelectedText$', function () { +var txt=null; +var p0=Math.min(this.caret.getDot$(), this.caret.getMark$()); +var p1=Math.max(this.caret.getDot$(), this.caret.getMark$()); +if (p0 != p1) { +try { +var doc=this.getDocument$(); +txt=doc.getText$I$I(p0, p1 - p0); +} catch (e) { +if (Clazz_exceptionOf(e,"javax.swing.text.BadLocationException")){ +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,[e.getMessage$()]); +} else { +throw e; +} +} +}return txt; +}); + +Clazz_newMeth(C$, 'isEditable$', function () { +return this.editable; +}); + +Clazz_newMeth(C$, 'setEditable$Z', function (b) { +if (b != this.editable ) { +var oldVal=this.editable; +this.editable=b; +this.firePropertyChange$S$O$O("editable", $I$(14).valueOf$Z(oldVal), $I$(14).valueOf$Z(this.editable)); +this.秘repaint$(); +}}); + +Clazz_newMeth(C$, 'getSelectionStart$', function () { +var start=Math.min(this.caret.getDot$(), this.caret.getMark$()); +return start; +}); + +Clazz_newMeth(C$, 'setSelectionStart$I', function (selectionStart) { +this.select$I$I(selectionStart, this.getSelectionEnd$()); +}); + +Clazz_newMeth(C$, 'getSelectionEnd$', function () { +var end=Math.max(this.caret.getDot$(), this.caret.getMark$()); +return end; +}); + +Clazz_newMeth(C$, 'setSelectionEnd$I', function (selectionEnd) { +this.select$I$I(this.getSelectionStart$(), selectionEnd); +}); + +Clazz_newMeth(C$, 'select$I$I', function (selectionStart, selectionEnd) { +var docLength=this.getDocument$().getLength$(); +if (selectionStart < 0) { +selectionStart=0; +}if (selectionStart > docLength) { +selectionStart=docLength; +}if (selectionEnd > docLength) { +selectionEnd=docLength; +}if (selectionEnd < selectionStart) { +selectionEnd=selectionStart; +}this.setCaretPosition$I(selectionStart); +this.moveCaretPosition$I(selectionEnd); +}); + +Clazz_newMeth(C$, 'selectAll$', function () { +var doc=this.getDocument$(); +if (doc != null ) { +this.setCaretPosition$I(0); +this.moveCaretPosition$I(doc.getLength$()); +}}); + +Clazz_newMeth(C$, 'getToolTipText$java_awt_event_MouseEvent', function (event) { +var retValue=C$.superclazz.prototype.getToolTipText$java_awt_event_MouseEvent.apply(this, [event]); +if (retValue == null ) { +var ui=(this.getUI$()); +if (ui != null ) { +retValue=ui.getToolTipText$javax_swing_text_JTextComponent$java_awt_Point(this, Clazz_new_($I$(1).c$$I$I,[event.getX$(), event.getY$()])); +}}return retValue; +}); + +Clazz_newMeth(C$, 'getPreferredScrollableViewportSize$', function () { +return this.getPreferredSize$(); +}); + +Clazz_newMeth(C$, 'getScrollableUnitIncrement$java_awt_Rectangle$I$I', function (visibleRect, orientation, direction) { +switch (orientation) { +case 1: +return (visibleRect.height/10|0); +case 0: +return (visibleRect.width/10|0); +default: +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["Invalid orientation: " + orientation]); +} +}); + +Clazz_newMeth(C$, 'getScrollableBlockIncrement$java_awt_Rectangle$I$I', function (visibleRect, orientation, direction) { +switch (orientation) { +case 1: +return visibleRect.height; +case 0: +return visibleRect.width; +default: +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["Invalid orientation: " + orientation]); +} +}); + +Clazz_newMeth(C$, 'getScrollableTracksViewportWidth$', function () { +if (Clazz_instanceOf(this.getParent$(), "javax.swing.JViewport")) { +return ((this.getParent$()).getWidth$() > this.getPreferredSize$().width); +}return false; +}); + +Clazz_newMeth(C$, 'getScrollableTracksViewportHeight$', function () { +if (Clazz_instanceOf(this.getParent$(), "javax.swing.JViewport")) { +return ((this.getParent$()).getHeight$() > this.getPreferredSize$().height); +}return false; +}); + +Clazz_newMeth(C$, 'paramString$', function () { +var editableString=(this.editable ? "true" : "false"); +var caretColorString=(this.caretColor != null ? this.caretColor.toString() : ""); +var selectionColorString=(this.selectionColor != null ? this.selectionColor.toString() : ""); +var selectedTextColorString=(this.selectedTextColor != null ? this.selectedTextColor.toString() : ""); +var disabledTextColorString=(this.disabledTextColor != null ? this.disabledTextColor.toString() : ""); +var marginString=(this.margin != null ? this.margin.toString() : ""); +return C$.superclazz.prototype.paramString$.apply(this, []) + ",caretColor=" + caretColorString + ",disabledTextColor=" + disabledTextColorString + ",editable=" + editableString + ",margin=" + marginString + ",selectedTextColor=" + selectedTextColorString + ",selectionColor=" + selectionColorString ; +}); + +Clazz_newMeth(C$, 'getFocusedComponent$', function () { +return $I$(7).getAppContext$().get$O(C$.FOCUSED_COMPONENT); +}, 1); + +Clazz_newMeth(C$, 'addInputMethodListener$java_awt_event_InputMethodListener', function (l) { +C$.superclazz.prototype.addInputMethodListener$java_awt_event_InputMethodListener.apply(this, [l]); +if (l != null ) { +}}); + +Clazz_newMeth(C$, 'saveComposedText$I', function (pos) { +if (this.composedTextExists$()) { +var start=this.composedTextStart.getOffset$(); +var len=this.composedTextEnd.getOffset$() - this.composedTextStart.getOffset$(); +if (pos >= start && pos <= start + len ) { +try { +this.getDocument$().remove$I$I(start, len); +return true; +} catch (ble) { +if (Clazz_exceptionOf(ble,"javax.swing.text.BadLocationException")){ +} else { +throw ble; +} +} +}}return false; +}, p$1); + +Clazz_newMeth(C$, 'restoreComposedText', function () { +var doc=this.getDocument$(); +try { +doc.insertString$I$S$javax_swing_text_AttributeSet(this.caret.getDot$(), this.composedTextContent, this.composedTextAttribute); +this.composedTextStart=doc.createPosition$I(this.caret.getDot$() - this.composedTextContent.length$()); +this.composedTextEnd=doc.createPosition$I(this.caret.getDot$()); +} catch (ble) { +if (Clazz_exceptionOf(ble,"javax.swing.text.BadLocationException")){ +} else { +throw ble; +} +} +}, p$1); + +Clazz_newMeth(C$, 'composedTextExists$', function () { +return (this.composedTextStart != null ); +}); + +Clazz_newMeth(C$, 'setTextFromUI$S', function (val) { +this.setText$S(val); +}); +; +(function(){var C$=Clazz_newClass(P$.JTextComponent, "KeyBinding", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.key=null; +this.actionName=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$javax_swing_KeyStroke$S', function (key, actionName) { +C$.$init$.apply(this); +this.key=key; +this.actionName=actionName; +}, 1); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.JTextComponent, "DropLocation", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, ['javax.swing.TransferHandler','.DropLocation']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.index=0; +this.bias=null; +this.$dropPoint=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Point$I$javax_swing_text_Position_Bias', function (p, index, bias) { +C$.superclazz.c$$java_awt_Point.apply(this, [p]); +C$.$init$.apply(this); +this.$dropPoint=Clazz_new_($I$(1).c$$java_awt_Point,[p]); +this.index=index; +this.bias=bias; +}, 1); + +Clazz_newMeth(C$, 'getIndex$', function () { +return this.index; +}); + +Clazz_newMeth(C$, 'getBias$', function () { +return this.bias; +}); + +Clazz_newMeth(C$, 'toString', function () { +return this.getClass$().getName$() + "[dropPoint=" + this.getDropPoint$() + "," + "index=" + this.index + "," + "bias=" + this.bias + "]" ; +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.JTextComponent, "DefaultKeymap", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, null, 'javax.swing.text.Keymap'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.nm=null; +this.parent=null; +this.bindings=null; +this.defaultAction=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$S$javax_swing_text_Keymap', function (nm, parent) { +C$.$init$.apply(this); +this.nm=nm; +this.parent=parent; +this.bindings=Clazz_new_($I$(2)); +}, 1); + +Clazz_newMeth(C$, 'getDefaultAction$', function () { +if (this.defaultAction != null ) { +return this.defaultAction; +}return (this.parent != null ) ? this.parent.getDefaultAction$() : null; +}); + +Clazz_newMeth(C$, 'setDefaultAction$javax_swing_Action', function (a) { +this.defaultAction=a; +}); + +Clazz_newMeth(C$, 'getName$', function () { +return this.nm; +}); + +Clazz_newMeth(C$, 'getAction$javax_swing_KeyStroke', function (key) { +var a=this.bindings.get$O(key); +if ((a == null ) && (this.parent != null ) ) { +a=this.parent.getAction$javax_swing_KeyStroke(key); +}return a; +}); + +Clazz_newMeth(C$, 'getBoundKeyStrokes$', function () { +var keys=Clazz_array($I$(3), [this.bindings.size$()]); +var i=0; +for (var e=this.bindings.keys$(); e.hasMoreElements$(); ) { +keys[i++]=e.nextElement$(); +} +return keys; +}); + +Clazz_newMeth(C$, 'getBoundActions$', function () { +var actions=Clazz_array($I$(4), [this.bindings.size$()]); +var i=0; +for (var e=this.bindings.elements$(); e.hasMoreElements$(); ) { +actions[i++]=e.nextElement$(); +} +return actions; +}); + +Clazz_newMeth(C$, 'getKeyStrokesForAction$javax_swing_Action', function (a) { +if (a == null ) { +return null; +}var retValue=null; +var keyStrokes=null; +for (var enum_=this.bindings.keys$(); enum_.hasMoreElements$(); ) { +var key=enum_.nextElement$(); +if (this.bindings.get$O(key) === a ) { +if (keyStrokes == null ) { +keyStrokes=Clazz_new_($I$(5)); +}keyStrokes.addElement$TE(key); +}} +if (this.parent != null ) { +var pStrokes=this.parent.getKeyStrokesForAction$javax_swing_Action(a); +if (pStrokes != null ) { +var rCount=0; +for (var counter=pStrokes.length - 1; counter >= 0; counter--) { +if (this.isLocallyDefined$javax_swing_KeyStroke(pStrokes[counter])) { +pStrokes[counter]=null; +rCount++; +}} +if (rCount > 0 && rCount < pStrokes.length ) { +if (keyStrokes == null ) { +keyStrokes=Clazz_new_($I$(5)); +}for (var counter=pStrokes.length - 1; counter >= 0; counter--) { +if (pStrokes[counter] != null ) { +keyStrokes.addElement$TE(pStrokes[counter]); +}} +} else if (rCount == 0) { +if (keyStrokes == null ) { +retValue=pStrokes; +} else { +retValue=Clazz_array($I$(3), [keyStrokes.size$() + pStrokes.length]); +keyStrokes.copyInto$OA(retValue); +System.arraycopy$O$I$O$I$I(pStrokes, 0, retValue, keyStrokes.size$(), pStrokes.length); +keyStrokes=null; +}}}}if (keyStrokes != null ) { +retValue=Clazz_array($I$(3), [keyStrokes.size$()]); +keyStrokes.copyInto$OA(retValue); +}return retValue; +}); + +Clazz_newMeth(C$, 'isLocallyDefined$javax_swing_KeyStroke', function (key) { +return this.bindings.containsKey$O(key); +}); + +Clazz_newMeth(C$, 'addActionForKeyStroke$javax_swing_KeyStroke$javax_swing_Action', function (key, a) { +this.bindings.put$TK$TV(key, a); +}); + +Clazz_newMeth(C$, 'removeKeyStrokeBinding$javax_swing_KeyStroke', function (key) { +this.bindings.remove$O(key); +}); + +Clazz_newMeth(C$, 'removeBindings$', function () { +this.bindings.clear$(); +}); + +Clazz_newMeth(C$, 'getResolveParent$', function () { +return this.parent; +}); + +Clazz_newMeth(C$, 'setResolveParent$javax_swing_text_Keymap', function (parent) { +this.parent=parent; +}); + +Clazz_newMeth(C$, 'toString', function () { +return "Keymap[" + this.nm + "]" + this.bindings ; +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.JTextComponent, "KeymapWrapper", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'javax.swing.InputMap'); +C$.DefaultActionKey=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.DefaultActionKey= Clazz_new_(); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.keymap=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$javax_swing_text_Keymap', function (keymap) { +Clazz_super_(C$, this,1); +this.keymap=keymap; +}, 1); + +Clazz_newMeth(C$, 'keys$', function () { +var sKeys=C$.superclazz.prototype.keys$.apply(this, []); +var keymapKeys=this.keymap.getBoundKeyStrokes$(); +var sCount=(sKeys == null ) ? 0 : sKeys.length; +var keymapCount=(keymapKeys == null ) ? 0 : keymapKeys.length; +if (sCount == 0) { +return keymapKeys; +}if (keymapCount == 0) { +return sKeys; +}var retValue=Clazz_array($I$(3), [sCount + keymapCount]); +System.arraycopy$O$I$O$I$I(sKeys, 0, retValue, 0, sCount); +System.arraycopy$O$I$O$I$I(keymapKeys, 0, retValue, sCount, keymapCount); +return retValue; +}); + +Clazz_newMeth(C$, 'size$', function () { +var keymapStrokes=this.keymap.getBoundKeyStrokes$(); +var keymapCount=(keymapStrokes == null ) ? 0 : keymapStrokes.length; +return C$.superclazz.prototype.size$.apply(this, []) + keymapCount; +}); + +Clazz_newMeth(C$, 'get$javax_swing_KeyStroke', function (keyStroke) { +var retValue=this.keymap.getAction$javax_swing_KeyStroke(keyStroke); +if (retValue == null ) { +retValue=C$.superclazz.prototype.get$javax_swing_KeyStroke.apply(this, [keyStroke]); +if (retValue == null && keyStroke.getKeyChar$() != "\uffff" && this.keymap.getDefaultAction$() != null ) { +retValue=C$.DefaultActionKey; +}}return retValue; +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.JTextComponent, "KeymapActionMap", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'javax.swing.ActionMap'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.keymap=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$javax_swing_text_Keymap', function (keymap) { +Clazz_super_(C$, this,1); +this.keymap=keymap; +}, 1); + +Clazz_newMeth(C$, 'keys$', function () { +var sKeys=C$.superclazz.prototype.keys$.apply(this, []); +var keymapKeys=this.keymap.getBoundActions$(); +var sCount=(sKeys == null ) ? 0 : sKeys.length; +var keymapCount=(keymapKeys == null ) ? 0 : keymapKeys.length; +var hasDefault=(this.keymap.getDefaultAction$() != null ); +if (hasDefault) { +keymapCount++; +}if (sCount == 0) { +if (hasDefault) { +var retValue=Clazz_array(java.lang.Object, [keymapCount]); +if (keymapCount > 1) { +System.arraycopy$O$I$O$I$I(keymapKeys, 0, retValue, 0, keymapCount - 1); +}retValue[keymapCount - 1]=$I$(6).DefaultActionKey; +return retValue; +}return keymapKeys; +}if (keymapCount == 0) { +return sKeys; +}var retValue=Clazz_array(java.lang.Object, [sCount + keymapCount]); +System.arraycopy$O$I$O$I$I(sKeys, 0, retValue, 0, sCount); +if (hasDefault) { +if (keymapCount > 1) { +System.arraycopy$O$I$O$I$I(keymapKeys, 0, retValue, sCount, keymapCount - 1); +}retValue[sCount + keymapCount - 1]=$I$(6).DefaultActionKey; +} else { +System.arraycopy$O$I$O$I$I(keymapKeys, 0, retValue, sCount, keymapCount); +}return retValue; +}); + +Clazz_newMeth(C$, 'size$', function () { +var actions=this.keymap.getBoundActions$(); +var keymapCount=(actions == null ) ? 0 : actions.length; +if (this.keymap.getDefaultAction$() != null ) { +keymapCount++; +}return C$.superclazz.prototype.size$.apply(this, []) + keymapCount; +}); + +Clazz_newMeth(C$, 'get$O', function (key) { +var retValue=C$.superclazz.prototype.get$O.apply(this, [key]); +if (retValue == null ) { +if (key === $I$(6).DefaultActionKey ) { +retValue=this.keymap.getDefaultAction$(); +} else if (Clazz_instanceOf(key, "javax.swing.Action")) { +retValue=key; +}}return retValue; +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.JTextComponent, "MutableCaretEvent", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'javax.swing.event.CaretEvent', ['javax.swing.event.ChangeListener', 'java.awt.event.FocusListener', 'java.awt.event.MouseListener']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.dragActive=false; +this.dot=0; +this.mark=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$javax_swing_text_JTextComponent', function (c) { +C$.superclazz.c$$O.apply(this, [c]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'fire$', function () { +var c=this.getSource$(); +if (c != null ) { +var caret=c.getCaret$(); +if (caret != null ) { +this.dot=caret.getDot$(); +this.mark=caret.getMark$(); +c.fireCaretUpdate$javax_swing_event_CaretEvent(this); +}}}); + +Clazz_newMeth(C$, 'toString', function () { +return "dot=" + this.dot + "," + "mark=" + this.mark ; +}); + +Clazz_newMeth(C$, 'getDot$', function () { +return this.dot; +}); + +Clazz_newMeth(C$, 'getMark$', function () { +return this.mark; +}); + +Clazz_newMeth(C$, ['stateChanged$javax_swing_event_ChangeEvent','stateChanged$'], function (e) { +if (!this.dragActive) { +this.fire$(); +}}); + +Clazz_newMeth(C$, 'focusGained$java_awt_event_FocusEvent', function (fe) { +$I$(7).getAppContext$().put$O$O($I$(8).FOCUSED_COMPONENT, fe.getSource$()); +}); + +Clazz_newMeth(C$, 'focusLost$java_awt_event_FocusEvent', function (fe) { +}); + +Clazz_newMeth(C$, 'mousePressed$java_awt_event_MouseEvent', function (e) { +this.dragActive=true; +}); + +Clazz_newMeth(C$, 'mouseReleased$java_awt_event_MouseEvent', function (e) { +this.dragActive=false; +this.fire$(); +}); + +Clazz_newMeth(C$, 'mouseClicked$java_awt_event_MouseEvent', function (e) { +}); + +Clazz_newMeth(C$, 'mouseEntered$java_awt_event_MouseEvent', function (e) { +}); + +Clazz_newMeth(C$, 'mouseExited$java_awt_event_MouseEvent', function (e) { +}); + +Clazz_newMeth(C$); +})() +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:16 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing.text"),I$=[]; +var C$=Clazz_newInterface(P$, "MutableAttributeSet", null, null, 'javax.swing.text.AttributeSet'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:16 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing.text"),p$1={},I$=[[0,'java.util.Vector','javax.swing.text.GapContent','Boolean','StringBuffer','javax.swing.text.Element','javax.swing.text.Segment',['javax.swing.text.AbstractDocument','.ElementEdit'],'javax.swing.text.Utilities','Error',['javax.swing.text.AbstractDocument','.BranchElement']]],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "PlainDocument", null, 'javax.swing.text.AbstractDocument'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.defaultRoot=null; +this.added=null; +this.removed=null; +this.s=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.added=Clazz_new_($I$(1)); +this.removed=Clazz_new_($I$(1)); +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.c$$javax_swing_text_AbstractDocument_Content.apply(this, [Clazz_new_($I$(2))]); +}, 1); + +Clazz_newMeth(C$, 'c$$javax_swing_text_AbstractDocument_Content', function (c) { +C$.superclazz.c$$javax_swing_text_AbstractDocument_Content.apply(this, [c]); +C$.$init$.apply(this); +this.putProperty$O$O("tabSize", new Integer(8)); +this.defaultRoot=this.createDefaultRoot$(); +}, 1); + +Clazz_newMeth(C$, 'insertString$I$S$javax_swing_text_AttributeSet', function (offs, str, a) { +var filterNewlines=this.getProperty$O("filterNewlines"); +if ((Clazz_instanceOf(filterNewlines, "java.lang.Boolean")) && filterNewlines.equals$O($I$(3).TRUE) ) { +if ((str != null ) && (str.indexOf$I("\n") >= 0) ) { +var filtered=Clazz_new_($I$(4).c$$S,[str]); +var n=filtered.length$(); +for (var i=0; i < n; i++) { +if (filtered.charAt$I(i) == "\n") { +filtered.setCharAt$I$C(i, " "); +}} +str=filtered.toString(); +}}C$.superclazz.prototype.insertString$I$S$javax_swing_text_AttributeSet.apply(this, [offs, str, a]); +}); + +Clazz_newMeth(C$, 'getDefaultRootElement$', function () { +return this.defaultRoot; +}); + +Clazz_newMeth(C$, 'createDefaultRoot$', function () { +var map=this.createBranchElement$javax_swing_text_Element$javax_swing_text_AttributeSet(null, null); +var line=this.createLeafElement$javax_swing_text_Element$javax_swing_text_AttributeSet$I$I(map, null, 0, 1); +var lines=Clazz_array($I$(5), [1]); +lines[0]=line; +map.replace$I$I$javax_swing_text_ElementA(0, 0, lines); +return map; +}); + +Clazz_newMeth(C$, 'getParagraphElement$I', function (pos) { +var lineMap=this.getDefaultRootElement$(); +return lineMap.getElement$I(lineMap.getElementIndex$I(pos)); +}); + +Clazz_newMeth(C$, 'insertUpdate$javax_swing_text_AbstractDocument_DefaultDocumentEvent$javax_swing_text_AttributeSet', function (chng, attr) { +this.removed.removeAllElements$(); +this.added.removeAllElements$(); +var lineMap=this.getDefaultRootElement$(); +var offset=chng.getOffset$(); +var length=chng.getLength$(); +if (offset > 0) { +offset-=1; +length+=1; +}var index=lineMap.getElementIndex$I(offset); +var rmCandidate=lineMap.getElement$I(index); +var rmOffs0=rmCandidate.getStartOffset$(); +var rmOffs1=rmCandidate.getEndOffset$(); +var lastOffset=rmOffs0; +try { +if (this.s == null ) { +this.s=Clazz_new_($I$(6)); +}this.getContent$().getChars$I$I$javax_swing_text_Segment(offset, length, this.s); +var hasBreaks=false; +for (var i=0; i < length; i++) { +var c=this.s.array[this.s.offset + i]; +if (c == "\n") { +var breakOffset=offset + i + 1 ; +this.added.addElement$TE(this.createLeafElement$javax_swing_text_Element$javax_swing_text_AttributeSet$I$I(lineMap, null, lastOffset, breakOffset)); +lastOffset=breakOffset; +hasBreaks=true; +}} +if (hasBreaks) { +this.removed.addElement$TE(rmCandidate); +if ((offset + length == rmOffs1) && (lastOffset != rmOffs1) && ((index + 1) < lineMap.getElementCount$()) ) { +var e=lineMap.getElement$I(index + 1); +this.removed.addElement$TE(e); +rmOffs1=e.getEndOffset$(); +}if (lastOffset < rmOffs1) { +this.added.addElement$TE(this.createLeafElement$javax_swing_text_Element$javax_swing_text_AttributeSet$I$I(lineMap, null, lastOffset, rmOffs1)); +}var aelems=Clazz_array($I$(5), [this.added.size$()]); +this.added.copyInto$OA(aelems); +var relems=Clazz_array($I$(5), [this.removed.size$()]); +this.removed.copyInto$OA(relems); +var ee=Clazz_new_($I$(7).c$$javax_swing_text_Element$I$javax_swing_text_ElementA$javax_swing_text_ElementA,[lineMap, index, relems, aelems]); +chng.addEdit$javax_swing_undo_UndoableEdit(ee); +lineMap.replace$I$I$javax_swing_text_ElementA(index, relems.length, aelems); +}if ($I$(8).isComposedTextAttributeDefined$javax_swing_text_AttributeSet(attr)) { +p$1.insertComposedTextUpdate$javax_swing_text_AbstractDocument_DefaultDocumentEvent$javax_swing_text_AttributeSet.apply(this, [chng, attr]); +}} catch (e) { +if (Clazz_exceptionOf(e,"javax.swing.text.BadLocationException")){ +throw Clazz_new_($I$(9).c$$S,["Internal error: " + e.toString()]); +} else { +throw e; +} +} +C$.superclazz.prototype.insertUpdate$javax_swing_text_AbstractDocument_DefaultDocumentEvent$javax_swing_text_AttributeSet.apply(this, [chng, attr]); +}); + +Clazz_newMeth(C$, 'removeUpdate$javax_swing_text_AbstractDocument_DefaultDocumentEvent', function (chng) { +this.removed.removeAllElements$(); +var map=this.getDefaultRootElement$(); +var offset=chng.getOffset$(); +var length=chng.getLength$(); +var line0=map.getElementIndex$I(offset); +var line1=map.getElementIndex$I(offset + length); +if (line0 != line1) { +for (var i=line0; i <= line1; i++) { +this.removed.addElement$TE(map.getElement$I(i)); +} +var p0=map.getElement$I(line0).getStartOffset$(); +var p1=map.getElement$I(line1).getEndOffset$(); +var aelems=Clazz_array($I$(5), [1]); +aelems[0]=this.createLeafElement$javax_swing_text_Element$javax_swing_text_AttributeSet$I$I(map, null, p0, p1); +var relems=Clazz_array($I$(5), [this.removed.size$()]); +this.removed.copyInto$OA(relems); +var ee=Clazz_new_($I$(7).c$$javax_swing_text_Element$I$javax_swing_text_ElementA$javax_swing_text_ElementA,[map, line0, relems, aelems]); +chng.addEdit$javax_swing_undo_UndoableEdit(ee); +map.replace$I$I$javax_swing_text_ElementA(line0, relems.length, aelems); +} else { +var line=map.getElement$I(line0); +if (!line.isLeaf$()) { +var leaf=line.getElement$I(line.getElementIndex$I(offset)); +if ($I$(8).isComposedTextElement$javax_swing_text_Element(leaf)) { +var aelem=Clazz_array($I$(5), [1]); +aelem[0]=this.createLeafElement$javax_swing_text_Element$javax_swing_text_AttributeSet$I$I(map, null, line.getStartOffset$(), line.getEndOffset$()); +var relem=Clazz_array($I$(5), [1]); +relem[0]=line; +var ee=Clazz_new_($I$(7).c$$javax_swing_text_Element$I$javax_swing_text_ElementA$javax_swing_text_ElementA,[map, line0, relem, aelem]); +chng.addEdit$javax_swing_undo_UndoableEdit(ee); +map.replace$I$I$javax_swing_text_ElementA(line0, 1, aelem); +}}}C$.superclazz.prototype.removeUpdate$javax_swing_text_AbstractDocument_DefaultDocumentEvent.apply(this, [chng]); +}); + +Clazz_newMeth(C$, 'insertComposedTextUpdate$javax_swing_text_AbstractDocument_DefaultDocumentEvent$javax_swing_text_AttributeSet', function (chng, attr) { +this.added.removeAllElements$(); +var lineMap=this.getDefaultRootElement$(); +var offset=chng.getOffset$(); +var length=chng.getLength$(); +var index=lineMap.getElementIndex$I(offset); +var elem=lineMap.getElement$I(index); +var elemStart=elem.getStartOffset$(); +var elemEnd=elem.getEndOffset$(); +var abelem=Clazz_array($I$(10), [1]); +abelem[0]=this.createBranchElement$javax_swing_text_Element$javax_swing_text_AttributeSet(lineMap, null); +var relem=Clazz_array($I$(5), [1]); +relem[0]=elem; +if (elemStart != offset) this.added.addElement$TE(this.createLeafElement$javax_swing_text_Element$javax_swing_text_AttributeSet$I$I(abelem[0], null, elemStart, offset)); +this.added.addElement$TE(this.createLeafElement$javax_swing_text_Element$javax_swing_text_AttributeSet$I$I(abelem[0], attr, offset, offset + length)); +if (elemEnd != offset + length) this.added.addElement$TE(this.createLeafElement$javax_swing_text_Element$javax_swing_text_AttributeSet$I$I(abelem[0], null, offset + length, elemEnd)); +var alelem=Clazz_array($I$(5), [this.added.size$()]); +this.added.copyInto$OA(alelem); +var ee=Clazz_new_($I$(7).c$$javax_swing_text_Element$I$javax_swing_text_ElementA$javax_swing_text_ElementA,[lineMap, index, relem, abelem]); +chng.addEdit$javax_swing_undo_UndoableEdit(ee); +abelem[0].replace$I$I$javax_swing_text_ElementA(0, 0, alelem); +lineMap.replace$I$I$javax_swing_text_ElementA(index, 1, abelem); +}, p$1); + +Clazz_newMeth(C$, 'render$Runnable', function (r) { +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:16 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing.text"),p$1={},I$=[[0,'javax.swing.text.Segment','javax.swing.text.SegmentCache','javax.swing.text.Utilities',['javax.swing.text.Position','.Bias'],['javax.swing.event.DocumentEvent','.EventType'],'java.awt.Rectangle']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "PlainView", null, 'javax.swing.text.View', 'javax.swing.text.TabExpander'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.metrics=null; +this.longLine=null; +this.font=null; +this.lineBuffer=null; +this.tabSize=0; +this.tabBase=0; +this.sel0=0; +this.sel1=0; +this.unselected=null; +this.selected=null; +this.firstLineOffset=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$javax_swing_text_Element', function (elem) { +C$.superclazz.c$$javax_swing_text_Element.apply(this, [elem]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'getTabSize$', function () { +var i=this.getDocument$().getProperty$O("tabSize"); +var size=(i != null ) ? i.intValue$() : 8; +return size; +}); + +Clazz_newMeth(C$, 'getLineBuffer$', function () { +if (this.lineBuffer == null ) { +this.lineBuffer=Clazz_new_($I$(1)); +}return this.lineBuffer; +}); + +Clazz_newMeth(C$, 'updateMetrics$', function () { +var host=this.getContainer$(); +var f=host.getFont$(); +if (this.font !== f ) { +p$1.calculateLongestLine.apply(this, []); +this.tabSize=this.getTabSize$() * this.metrics.charWidth$C("m"); +}}); + +Clazz_newMeth(C$, 'getPreferredSpan$I', function (axis) { +this.updateMetrics$(); +switch (axis) { +case 0: +return p$1.getLineWidth$javax_swing_text_Element.apply(this, [this.longLine]); +case 1: +return this.getElement$().getElementCount$() * this.metrics.getHeight$(); +default: +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["Invalid axis: " + axis]); +} +}); + +Clazz_newMeth(C$, 'paint$java_awt_Graphics$java_awt_Shape', function (g, a) { +}); + +Clazz_newMeth(C$, 'adjustPaintRegion$java_awt_Shape', function (a) { +return a; +}); + +Clazz_newMeth(C$, 'modelToView$I$java_awt_Shape$javax_swing_text_Position_Bias', function (pos, a, b) { +var doc=this.getDocument$(); +var map=this.getElement$(); +var lineIndex=map.getElementIndex$I(pos); +if (lineIndex < 0) { +return this.lineToRect$java_awt_Shape$I(a, 0); +}var lineArea=this.lineToRect$java_awt_Shape$I(a, lineIndex); +this.tabBase=lineArea.x; +var line=map.getElement$I(lineIndex); +var p0=line.getStartOffset$(); +var s=$I$(2).getSharedSegment$(); +doc.getText$I$I$javax_swing_text_Segment(p0, pos - p0, s); +var xOffs=$I$(3).getTabbedTextWidth$javax_swing_text_Segment$java_awt_FontMetrics$I$javax_swing_text_TabExpander$I(s, this.metrics, this.tabBase, this, p0); +$I$(2).releaseSharedSegment$javax_swing_text_Segment(s); +lineArea.x+=xOffs; +lineArea.width=1; +lineArea.height=this.metrics.getHeight$(); +return lineArea; +}); + +Clazz_newMeth(C$, 'viewToModel$F$F$java_awt_Shape$javax_swing_text_Position_BiasA', function (fx, fy, a, bias) { +bias[0]=$I$(4).Forward; +var alloc=a.getBounds$(); +var doc=this.getDocument$(); +var x=(fx|0); +var y=(fy|0); +if (y < alloc.y) { +return this.getStartOffset$(); +} else if (y > alloc.y + alloc.height) { +return this.getEndOffset$() - 1; +} else { +var map=doc.getDefaultRootElement$(); +var fontHeight=this.metrics.getHeight$(); +var lineIndex=(fontHeight > 0 ? Math.abs(((y - alloc.y)/fontHeight|0)) : map.getElementCount$() - 1); +if (lineIndex >= map.getElementCount$()) { +return this.getEndOffset$() - 1; +}var line=map.getElement$I(lineIndex); +if (lineIndex == 0) { +alloc.x+=this.firstLineOffset; +alloc.width-=this.firstLineOffset; +}if (x < alloc.x) { +return line.getStartOffset$(); +} else if (x > alloc.x + alloc.width) { +return line.getEndOffset$() - 1; +} else { +try { +var p0=line.getStartOffset$(); +var p1=line.getEndOffset$() - 1; +var s=$I$(2).getSharedSegment$(); +doc.getText$I$I$javax_swing_text_Segment(p0, p1 - p0, s); +this.tabBase=alloc.x; +var offs=p0 + $I$(3).getTabbedTextOffset$javax_swing_text_Segment$java_awt_FontMetrics$I$I$javax_swing_text_TabExpander$I(s, this.metrics, this.tabBase, x, this, p0); +$I$(2).releaseSharedSegment$javax_swing_text_Segment(s); +return offs; +} catch (e) { +if (Clazz_exceptionOf(e,"javax.swing.text.BadLocationException")){ +return -1; +} else { +throw e; +} +} +}}}); + +Clazz_newMeth(C$, 'insertUpdate$javax_swing_event_DocumentEvent$java_awt_Shape$javax_swing_text_ViewFactory', function (changes, a, f) { +this.updateDamage$javax_swing_event_DocumentEvent$java_awt_Shape$javax_swing_text_ViewFactory(changes, a, f); +}); + +Clazz_newMeth(C$, 'removeUpdate$javax_swing_event_DocumentEvent$java_awt_Shape$javax_swing_text_ViewFactory', function (changes, a, f) { +this.updateDamage$javax_swing_event_DocumentEvent$java_awt_Shape$javax_swing_text_ViewFactory(changes, a, f); +}); + +Clazz_newMeth(C$, 'changedUpdate$javax_swing_event_DocumentEvent$java_awt_Shape$javax_swing_text_ViewFactory', function (changes, a, f) { +this.updateDamage$javax_swing_event_DocumentEvent$java_awt_Shape$javax_swing_text_ViewFactory(changes, a, f); +}); + +Clazz_newMeth(C$, 'setSize$F$F', function (width, height) { +C$.superclazz.prototype.setSize$F$F.apply(this, [width, height]); +this.updateMetrics$(); +}); + +Clazz_newMeth(C$, ['nextTabStop$F$I','nextTabStop$'], function (x, tabOffset) { +if (this.tabSize == 0) { +return x; +}var ntabs=((((x|0)) - this.tabBase)/this.tabSize|0); +return this.tabBase + ((ntabs + 1) * this.tabSize); +}); + +Clazz_newMeth(C$, 'updateDamage$javax_swing_event_DocumentEvent$java_awt_Shape$javax_swing_text_ViewFactory', function (changes, a, f) { +var host=this.getContainer$(); +this.updateMetrics$(); +var elem=this.getElement$(); +var ec=changes.getChange$javax_swing_text_Element(elem); +var added=(ec != null ) ? ec.getChildrenAdded$() : null; +var removed=(ec != null ) ? ec.getChildrenRemoved$() : null; +if (((added != null ) && (added.length > 0) ) || ((removed != null ) && (removed.length > 0) ) ) { +if (added != null ) { +var currWide=p$1.getLineWidth$javax_swing_text_Element.apply(this, [this.longLine]); +for (var i=0; i < added.length; i++) { +var w=p$1.getLineWidth$javax_swing_text_Element.apply(this, [added[i]]); +if (w > currWide) { +currWide=w; +this.longLine=added[i]; +}} +}if (removed != null ) { +for (var i=0; i < removed.length; i++) { +if (removed[i] === this.longLine ) { +p$1.calculateLongestLine.apply(this, []); +break; +}} +}this.preferenceChanged$javax_swing_text_View$Z$Z(null, true, true); +(host).秘repaint$(); +} else { +var map=this.getElement$(); +var line=map.getElementIndex$I(changes.getOffset$()); +this.damageLineRange$I$I$java_awt_Shape$java_awt_Component(line, line, a, host); +if (changes.getType$() === $I$(5).INSERT ) { +var w=p$1.getLineWidth$javax_swing_text_Element.apply(this, [this.longLine]); +var e=map.getElement$I(line); +if (e === this.longLine ) { +this.preferenceChanged$javax_swing_text_View$Z$Z(null, true, false); +} else if (p$1.getLineWidth$javax_swing_text_Element.apply(this, [e]) > w) { +this.longLine=e; +this.preferenceChanged$javax_swing_text_View$Z$Z(null, true, false); +}} else if (changes.getType$() === $I$(5).REMOVE ) { +if (map.getElement$I(line) === this.longLine ) { +p$1.calculateLongestLine.apply(this, []); +this.preferenceChanged$javax_swing_text_View$Z$Z(null, true, false); +}}}}); + +Clazz_newMeth(C$, 'damageLineRange$I$I$java_awt_Shape$java_awt_Component', function (line0, line1, a, host) { +if (a != null ) { +var area0=this.lineToRect$java_awt_Shape$I(a, line0); +var area1=this.lineToRect$java_awt_Shape$I(a, line1); +if ((area0 != null ) && (area1 != null ) ) { +var damage=area0.union$java_awt_Rectangle(area1); +host.repaint$I$I$I$I(damage.x, damage.y, damage.width, damage.height); +} else { +(host).秘repaint$(); +}}}); + +Clazz_newMeth(C$, 'lineToRect$java_awt_Shape$I', function (a, line) { +var r=null; +this.updateMetrics$(); +if (this.metrics != null ) { +var alloc=a.getBounds$(); +if (line == 0) { +alloc.x+=this.firstLineOffset; +alloc.width-=this.firstLineOffset; +}r=Clazz_new_($I$(6).c$$I$I$I$I,[alloc.x, alloc.y + (line * this.metrics.getHeight$()), alloc.width, this.metrics.getHeight$()]); +}return r; +}); + +Clazz_newMeth(C$, 'calculateLongestLine', function () { +var c=this.getContainer$(); +this.font=c.getFont$(); +this.metrics=c.getFontMetrics$java_awt_Font(this.font); +var lines=this.getElement$(); +var n=lines.getElementCount$(); +var maxWidth=-1; +for (var i=0; i < n; i++) { +var line=lines.getElement$I(i); +var w=p$1.getLineWidth$javax_swing_text_Element.apply(this, [line]); +if (w > maxWidth) { +maxWidth=w; +this.longLine=line; +}} +}, p$1); + +Clazz_newMeth(C$, 'getLineWidth$javax_swing_text_Element', function (line) { +if (line == null ) { +return 0; +}var p0=line.getStartOffset$(); +var p1=line.getEndOffset$(); +var w; +var s=$I$(2).getSharedSegment$(); +try { +line.getDocument$().getText$I$I$javax_swing_text_Segment(p0, p1 - p0, s); +w=$I$(3).getTabbedTextWidth$javax_swing_text_Segment$java_awt_FontMetrics$I$javax_swing_text_TabExpander$I(s, this.metrics, this.tabBase, this, p0); +} catch (ble) { +if (Clazz_exceptionOf(ble,"javax.swing.text.BadLocationException")){ +w=0; +} else { +throw ble; +} +} +$I$(2).releaseSharedSegment$javax_swing_text_Segment(s); +return w; +}, p$1); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:16 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing.text"),I$=[]; +var C$=Clazz_newInterface(P$, "Position", function(){ +}); +; +(function(){var C$=Clazz_newClass(P$.Position, "Bias", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}); +C$.Forward=null; +C$.Backward=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.Forward=Clazz_new_(C$.c$$S,["Forward"]); +C$.Backward=Clazz_new_(C$.c$$S,["Backward"]); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.name=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'toString', function () { +return this.name; +}); + +Clazz_newMeth(C$, 'c$$S', function (name) { +C$.$init$.apply(this); +this.name=name; +}, 1); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.Position, "Bias", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}); +C$.Forward=null; +C$.Backward=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.Forward=Clazz_new_(C$.c$$S,["Forward"]); +C$.Backward=Clazz_new_(C$.c$$S,["Backward"]); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.name=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'toString', function () { +return this.name; +}); + +Clazz_newMeth(C$, 'c$$S', function (name) { +C$.$init$.apply(this); +this.name=name; +}, 1); + +Clazz_newMeth(C$); +})() +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:16 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing.text"),I$=[]; +var C$=Clazz_newClass(P$, "Segment", null, null, ['Cloneable', 'java.text.CharacterIterator', 'CharSequence']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.array=null; +this.offset=0; +this.count=0; +this.partialReturn=false; +this.pos=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.c$$CA$I$I.apply(this, [null, 0, 0]); +}, 1); + +Clazz_newMeth(C$, 'c$$CA$I$I', function (array, offset, count) { +C$.$init$.apply(this); +this.array=array; +this.offset=offset; +this.count=count; +this.partialReturn=false; +}, 1); + +Clazz_newMeth(C$, 'setPartialReturn$Z', function (p) { +this.partialReturn=p; +}); + +Clazz_newMeth(C$, 'isPartialReturn$', function () { +return this.partialReturn; +}); + +Clazz_newMeth(C$, 'toString', function () { +if (this.array != null ) { +return String.instantialize(this.array, this.offset, this.count); +}return String.instantialize(); +}); + +Clazz_newMeth(C$, 'first$', function () { +this.pos=this.offset; +if (this.count != 0) { +return this.array[this.pos]; +}return "\uffff"; +}); + +Clazz_newMeth(C$, 'last$', function () { +this.pos=this.offset + this.count; +if (this.count != 0) { +this.pos-=1; +return this.array[this.pos]; +}return "\uffff"; +}); + +Clazz_newMeth(C$, 'current$', function () { +if (this.count != 0 && this.pos < this.offset + this.count ) { +return this.array[this.pos]; +}return "\uffff"; +}); + +Clazz_newMeth(C$, 'next$', function () { +this.pos+=1; +var end=this.offset + this.count; +if (this.pos >= end) { +this.pos=end; +return "\uffff"; +}return this.current$(); +}); + +Clazz_newMeth(C$, 'previous$', function () { +if (this.pos == this.offset) { +return "\uffff"; +}this.pos-=1; +return this.current$(); +}); + +Clazz_newMeth(C$, 'setIndex$I', function (position) { +var end=this.offset + this.count; +if ((position < this.offset) || (position > end) ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["bad position: " + position]); +}this.pos=position; +if ((this.pos != end) && (this.count != 0) ) { +return this.array[this.pos]; +}return "\uffff"; +}); + +Clazz_newMeth(C$, 'getBeginIndex$', function () { +return this.offset; +}); + +Clazz_newMeth(C$, 'getEndIndex$', function () { +return this.offset + this.count; +}); + +Clazz_newMeth(C$, 'getIndex$', function () { +return this.pos; +}); + +Clazz_newMeth(C$, 'charAt$I', function (index) { +if (index < 0 || index >= this.count ) { +throw Clazz_new_(Clazz_load('StringIndexOutOfBoundsException').c$$I,[index]); +}return this.array[this.offset + index]; +}); + +Clazz_newMeth(C$, 'length$', function () { +return this.count; +}); + +Clazz_newMeth(C$, 'subSequence$I$I', function (start, end) { +if (start < 0) { +throw Clazz_new_(Clazz_load('StringIndexOutOfBoundsException').c$$I,[start]); +}if (end > this.count) { +throw Clazz_new_(Clazz_load('StringIndexOutOfBoundsException').c$$I,[end]); +}if (start > end) { +throw Clazz_new_(Clazz_load('StringIndexOutOfBoundsException').c$$I,[end - start]); +}var segment=Clazz_new_(C$); +segment.array=this.array; +segment.offset=this.offset + start; +segment.count=end - start; +return segment; +}); + +Clazz_newMeth(C$, 'clone$', function () { +var o; +try { +o=Clazz_clone(this); +} catch (cnse) { +if (Clazz_exceptionOf(cnse,"CloneNotSupportedException")){ +o=null; +} else { +throw cnse; +} +} +return o; +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:16 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing.text"),I$=[[0,'javajs.util.Lst',['javax.swing.text.SegmentCache','.CachedSegment']]],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "SegmentCache", function(){ +Clazz_newInstance(this, arguments,0,C$); +}); +C$.sharedCache=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.segments=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'getSharedInstance$', function () { +if (C$.sharedCache == null ) C$.sharedCache=Clazz_new_(C$); +return C$.sharedCache; +}, 1); + +Clazz_newMeth(C$, 'getSharedSegment$', function () { +return C$.getSharedInstance$().getSegment$(); +}, 1); + +Clazz_newMeth(C$, 'releaseSharedSegment$javax_swing_text_Segment', function (segment) { +C$.getSharedInstance$().releaseSegment$javax_swing_text_Segment(segment); +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.$init$.apply(this); +this.segments=Clazz_new_($I$(1)); +}, 1); + +Clazz_newMeth(C$, 'getSegment$', function () { +{ +var size=this.segments.size$(); +if (size > 0) { +return this.segments.removeItemAt$I(size - 1); +}}return Clazz_new_($I$(2)); +}); + +Clazz_newMeth(C$, 'releaseSegment$javax_swing_text_Segment', function (segment) { +if (Clazz_instanceOf(segment, "javax.swing.text.SegmentCache.CachedSegment")) { +{ +segment.array=null; +segment.count=0; +this.segments.add$TE(segment); +}}}); +; +(function(){var C$=Clazz_newClass(P$.SegmentCache, "CachedSegment", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'javax.swing.text.Segment'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$); +})() +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:16 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing.text"),I$=[[0,['javax.swing.text.SimpleAttributeSet','.EmptyAttributeSet'],'java.util.Hashtable','javax.swing.text.StyleConstants']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "SimpleAttributeSet", function(){ +Clazz_newInstance(this, arguments,0,C$); +}, null, ['javax.swing.text.MutableAttributeSet', 'Cloneable']); +C$.EMPTY=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.EMPTY=Clazz_new_($I$(1)); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.table=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.table=Clazz_new_($I$(2).c$$I,[3]); +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'c$$javax_swing_text_AttributeSet', function (source) { +C$.$init$.apply(this); +this.addAttributes$javax_swing_text_AttributeSet(source); +}, 1); + +Clazz_newMeth(C$, 'isEmpty$', function () { +return this.table.isEmpty$(); +}); + +Clazz_newMeth(C$, 'getAttributeCount$', function () { +return this.table.size$(); +}); + +Clazz_newMeth(C$, 'isDefined$O', function (attrName) { +return this.table.containsKey$O(attrName); +}); + +Clazz_newMeth(C$, 'isEqual$javax_swing_text_AttributeSet', function (attr) { +return ((this.getAttributeCount$() == attr.getAttributeCount$()) && this.containsAttributes$javax_swing_text_AttributeSet(attr) ); +}); + +Clazz_newMeth(C$, 'copyAttributes$', function () { +return this.clone$(); +}); + +Clazz_newMeth(C$, 'getAttributeNames$', function () { +return this.table.keys$(); +}); + +Clazz_newMeth(C$, 'getAttribute$O', function (name) { +var value=this.table.get$O(name); +if (value == null ) { +var parent=this.getResolveParent$(); +if (parent != null ) { +value=parent.getAttribute$O(name); +}}return value; +}); + +Clazz_newMeth(C$, 'containsAttribute$O$O', function (name, value) { +return value.equals$O(this.getAttribute$O(name)); +}); + +Clazz_newMeth(C$, 'containsAttributes$javax_swing_text_AttributeSet', function (attributes) { +var result=true; +var names=attributes.getAttributeNames$(); +while (result && names.hasMoreElements$() ){ +var name=names.nextElement$(); +result=attributes.getAttribute$O(name).equals$O(this.getAttribute$O(name)); +} +return result; +}); + +Clazz_newMeth(C$, 'addAttribute$O$O', function (name, value) { +this.table.put$TK$TV(name, value); +}); + +Clazz_newMeth(C$, 'addAttributes$javax_swing_text_AttributeSet', function (attributes) { +var names=attributes.getAttributeNames$(); +while (names.hasMoreElements$()){ +var name=names.nextElement$(); +this.addAttribute$O$O(name, attributes.getAttribute$O(name)); +} +}); + +Clazz_newMeth(C$, 'removeAttribute$O', function (name) { +this.table.remove$O(name); +}); + +Clazz_newMeth(C$, 'removeAttributes$java_util_Enumeration', function (names) { +while (names.hasMoreElements$())this.removeAttribute$O(names.nextElement$()); + +}); + +Clazz_newMeth(C$, 'removeAttributes$javax_swing_text_AttributeSet', function (attributes) { +if (attributes === this ) { +this.table.clear$(); +} else { +var names=attributes.getAttributeNames$(); +while (names.hasMoreElements$()){ +var name=names.nextElement$(); +var value=attributes.getAttribute$O(name); +if (value.equals$O(this.getAttribute$O(name))) this.removeAttribute$O(name); +} +}}); + +Clazz_newMeth(C$, 'getResolveParent$', function () { +return this.table.get$O($I$(3).ResolveAttribute); +}); + +Clazz_newMeth(C$, 'setResolveParent$javax_swing_text_AttributeSet', function (parent) { +this.addAttribute$O$O($I$(3).ResolveAttribute, parent); +}); + +Clazz_newMeth(C$, 'clone$', function () { +var attr; +try { +attr=Clazz_clone(this); +attr.table=this.table.clone$(); +} catch (cnse) { +if (Clazz_exceptionOf(cnse,"CloneNotSupportedException")){ +attr=null; +} else { +throw cnse; +} +} +return attr; +}); + +Clazz_newMeth(C$, 'hashCode$', function () { +return this.table.hashCode$(); +}); + +Clazz_newMeth(C$, 'equals$O', function (obj) { +if (this === obj ) { +return true; +}if (Clazz_instanceOf(obj, "javax.swing.text.AttributeSet")) { +var attrs=obj; +return this.isEqual$javax_swing_text_AttributeSet(attrs); +}return false; +}); + +Clazz_newMeth(C$, 'toString', function () { +var s=""; +var names=this.getAttributeNames$(); +while (names.hasMoreElements$()){ +var key=names.nextElement$(); +var value=this.getAttribute$O(key); +if (Clazz_instanceOf(value, "javax.swing.text.AttributeSet")) { +s=s + key + "=**AttributeSet** " ; +} else { +s=s + key + "=" + value + " " ; +}} +return s; +}); +; +(function(){var C$=Clazz_newClass(P$.SimpleAttributeSet, "EmptyAttributeSet", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, null, 'javax.swing.text.AttributeSet'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'getAttributeCount$', function () { +return 0; +}); + +Clazz_newMeth(C$, 'isDefined$O', function (attrName) { +return false; +}); + +Clazz_newMeth(C$, 'isEqual$javax_swing_text_AttributeSet', function (attr) { +return (attr.getAttributeCount$() == 0); +}); + +Clazz_newMeth(C$, 'copyAttributes$', function () { +return this; +}); + +Clazz_newMeth(C$, 'getAttribute$O', function (key) { +return null; +}); + +Clazz_newMeth(C$, 'getAttributeNames$', function () { +return ((P$.SimpleAttributeSet$EmptyAttributeSet$1|| +(function(){var C$=Clazz_newClass(P$, "SimpleAttributeSet$EmptyAttributeSet$1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'java.util.Enumeration', 1); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'hasMoreElements$', function () { +return false; +}); + +Clazz_newMeth(C$, 'nextElement$', function () { +throw Clazz_new_(Clazz_load('java.util.NoSuchElementException')); +}); +})() +), Clazz_new_(P$.SimpleAttributeSet$EmptyAttributeSet$1.$init$, [this, null])); +}); + +Clazz_newMeth(C$, 'containsAttribute$O$O', function (name, value) { +return false; +}); + +Clazz_newMeth(C$, 'containsAttributes$javax_swing_text_AttributeSet', function (attributes) { +return (attributes.getAttributeCount$() == 0); +}); + +Clazz_newMeth(C$, 'getResolveParent$', function () { +return null; +}); + +Clazz_newMeth(C$, 'equals$O', function (obj) { +if (this === obj ) { +return true; +}return ((Clazz_instanceOf(obj, "javax.swing.text.AttributeSet")) && ((obj).getAttributeCount$() == 0) ); +}); + +Clazz_newMeth(C$, 'hashCode$', function () { +return 0; +}); + +Clazz_newMeth(C$); +})() +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:16 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing.text"),I$=[]; +var C$=Clazz_newInterface(P$, "Style", null, null, 'javax.swing.text.MutableAttributeSet'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:17 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing.text"),I$=[[0,['javax.swing.text.StyleConstants','.CharacterConstants'],['javax.swing.text.StyleConstants','.FontConstants'],['javax.swing.text.StyleConstants','.ColorConstants'],['javax.swing.text.StyleConstants','.ParagraphConstants'],'Boolean','java.awt.Color']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "StyleConstants", function(){ +Clazz_newInstance(this, arguments,0,C$); +}); +C$.NameAttribute=null; +C$.ResolveAttribute=null; +C$.ModelAttribute=null; +C$.BidiLevel=null; +C$.FontFamily=null; +C$.Family=null; +C$.FontSize=null; +C$.Size=null; +C$.Bold=null; +C$.Italic=null; +C$.Underline=null; +C$.StrikeThrough=null; +C$.Superscript=null; +C$.Subscript=null; +C$.Foreground=null; +C$.Background=null; +C$.ComponentAttribute=null; +C$.IconAttribute=null; +C$.ComposedTextAttribute=null; +C$.FirstLineIndent=null; +C$.LeftIndent=null; +C$.RightIndent=null; +C$.LineSpacing=null; +C$.SpaceAbove=null; +C$.SpaceBelow=null; +C$.Alignment=null; +C$.TabSet=null; +C$.Orientation=null; +C$.keys=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.NameAttribute=Clazz_new_(C$.c$$S,["name"]); +C$.ResolveAttribute=Clazz_new_(C$.c$$S,["resolver"]); +C$.ModelAttribute=Clazz_new_(C$.c$$S,["model"]); +C$.BidiLevel=Clazz_new_($I$(1).c$$S,["bidiLevel"]); +C$.FontFamily=Clazz_new_($I$(2).c$$S,["family"]); +C$.Family=C$.FontFamily; +C$.FontSize=Clazz_new_($I$(2).c$$S,["size"]); +C$.Size=C$.FontSize; +C$.Bold=Clazz_new_($I$(2).c$$S,["bold"]); +C$.Italic=Clazz_new_($I$(2).c$$S,["italic"]); +C$.Underline=Clazz_new_($I$(1).c$$S,["underline"]); +C$.StrikeThrough=Clazz_new_($I$(1).c$$S,["strikethrough"]); +C$.Superscript=Clazz_new_($I$(1).c$$S,["superscript"]); +C$.Subscript=Clazz_new_($I$(1).c$$S,["subscript"]); +C$.Foreground=Clazz_new_($I$(3).c$$S,["foreground"]); +C$.Background=Clazz_new_($I$(3).c$$S,["background"]); +C$.ComponentAttribute=Clazz_new_($I$(1).c$$S,["component"]); +C$.IconAttribute=Clazz_new_($I$(1).c$$S,["icon"]); +C$.ComposedTextAttribute=Clazz_new_(C$.c$$S,["composed text"]); +C$.FirstLineIndent=Clazz_new_($I$(4).c$$S,["FirstLineIndent"]); +C$.LeftIndent=Clazz_new_($I$(4).c$$S,["LeftIndent"]); +C$.RightIndent=Clazz_new_($I$(4).c$$S,["RightIndent"]); +C$.LineSpacing=Clazz_new_($I$(4).c$$S,["LineSpacing"]); +C$.SpaceAbove=Clazz_new_($I$(4).c$$S,["SpaceAbove"]); +C$.SpaceBelow=Clazz_new_($I$(4).c$$S,["SpaceBelow"]); +C$.Alignment=Clazz_new_($I$(4).c$$S,["Alignment"]); +C$.TabSet=Clazz_new_($I$(4).c$$S,["TabSet"]); +C$.Orientation=Clazz_new_($I$(4).c$$S,["Orientation"]); +C$.keys=Clazz_array(java.lang.Object, -1, [C$.NameAttribute, C$.ResolveAttribute, C$.BidiLevel, C$.FontFamily, C$.FontSize, C$.Bold, C$.Italic, C$.Underline, C$.StrikeThrough, C$.Superscript, C$.Subscript, C$.Foreground, C$.Background, C$.ComponentAttribute, C$.IconAttribute, C$.FirstLineIndent, C$.LeftIndent, C$.RightIndent, C$.LineSpacing, C$.SpaceAbove, C$.SpaceBelow, C$.Alignment, C$.TabSet, C$.Orientation, C$.ModelAttribute, C$.ComposedTextAttribute]); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.representation=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'toString', function () { +return this.representation; +}); + +Clazz_newMeth(C$, 'getBidiLevel$javax_swing_text_AttributeSet', function (a) { +var o=a.getAttribute$O(C$.BidiLevel); +if (o != null ) { +return o.intValue$(); +}return 0; +}, 1); + +Clazz_newMeth(C$, 'setBidiLevel$javax_swing_text_MutableAttributeSet$I', function (a, o) { +a.addAttribute$O$O(C$.BidiLevel, new Integer(o)); +}, 1); + +Clazz_newMeth(C$, 'getComponent$javax_swing_text_AttributeSet', function (a) { +return a.getAttribute$O(C$.ComponentAttribute); +}, 1); + +Clazz_newMeth(C$, 'setComponent$javax_swing_text_MutableAttributeSet$java_awt_Component', function (a, c) { +a.addAttribute$O$O("$ename", "component"); +a.addAttribute$O$O(C$.ComponentAttribute, c); +}, 1); + +Clazz_newMeth(C$, 'getIcon$javax_swing_text_AttributeSet', function (a) { +return a.getAttribute$O(C$.IconAttribute); +}, 1); + +Clazz_newMeth(C$, 'setIcon$javax_swing_text_MutableAttributeSet$javax_swing_Icon', function (a, c) { +a.addAttribute$O$O("$ename", "icon"); +a.addAttribute$O$O(C$.IconAttribute, c); +}, 1); + +Clazz_newMeth(C$, 'getFontFamily$javax_swing_text_AttributeSet', function (a) { +var family=a.getAttribute$O(C$.FontFamily); +if (family == null ) { +family="Monospaced"; +}return family; +}, 1); + +Clazz_newMeth(C$, 'setFontFamily$javax_swing_text_MutableAttributeSet$S', function (a, fam) { +a.addAttribute$O$O(C$.FontFamily, fam); +}, 1); + +Clazz_newMeth(C$, 'getFontSize$javax_swing_text_AttributeSet', function (a) { +var size=a.getAttribute$O(C$.FontSize); +if (size != null ) { +return size.intValue$(); +}return 12; +}, 1); + +Clazz_newMeth(C$, 'setFontSize$javax_swing_text_MutableAttributeSet$I', function (a, s) { +a.addAttribute$O$O(C$.FontSize, new Integer(s)); +}, 1); + +Clazz_newMeth(C$, 'isBold$javax_swing_text_AttributeSet', function (a) { +var bold=a.getAttribute$O(C$.Bold); +if (bold != null ) { +return bold.booleanValue$(); +}return false; +}, 1); + +Clazz_newMeth(C$, 'setBold$javax_swing_text_MutableAttributeSet$Z', function (a, b) { +a.addAttribute$O$O(C$.Bold, $I$(5).valueOf$Z(b)); +}, 1); + +Clazz_newMeth(C$, 'isItalic$javax_swing_text_AttributeSet', function (a) { +var italic=a.getAttribute$O(C$.Italic); +if (italic != null ) { +return italic.booleanValue$(); +}return false; +}, 1); + +Clazz_newMeth(C$, 'setItalic$javax_swing_text_MutableAttributeSet$Z', function (a, b) { +a.addAttribute$O$O(C$.Italic, $I$(5).valueOf$Z(b)); +}, 1); + +Clazz_newMeth(C$, 'isUnderline$javax_swing_text_AttributeSet', function (a) { +var underline=a.getAttribute$O(C$.Underline); +if (underline != null ) { +return underline.booleanValue$(); +}return false; +}, 1); + +Clazz_newMeth(C$, 'isStrikeThrough$javax_swing_text_AttributeSet', function (a) { +var strike=a.getAttribute$O(C$.StrikeThrough); +if (strike != null ) { +return strike.booleanValue$(); +}return false; +}, 1); + +Clazz_newMeth(C$, 'isSuperscript$javax_swing_text_AttributeSet', function (a) { +var superscript=a.getAttribute$O(C$.Superscript); +if (superscript != null ) { +return superscript.booleanValue$(); +}return false; +}, 1); + +Clazz_newMeth(C$, 'isSubscript$javax_swing_text_AttributeSet', function (a) { +var subscript=a.getAttribute$O(C$.Subscript); +if (subscript != null ) { +return subscript.booleanValue$(); +}return false; +}, 1); + +Clazz_newMeth(C$, 'setUnderline$javax_swing_text_MutableAttributeSet$Z', function (a, b) { +a.addAttribute$O$O(C$.Underline, $I$(5).valueOf$Z(b)); +}, 1); + +Clazz_newMeth(C$, 'setStrikeThrough$javax_swing_text_MutableAttributeSet$Z', function (a, b) { +a.addAttribute$O$O(C$.StrikeThrough, $I$(5).valueOf$Z(b)); +}, 1); + +Clazz_newMeth(C$, 'setSuperscript$javax_swing_text_MutableAttributeSet$Z', function (a, b) { +a.addAttribute$O$O(C$.Superscript, $I$(5).valueOf$Z(b)); +}, 1); + +Clazz_newMeth(C$, 'setSubscript$javax_swing_text_MutableAttributeSet$Z', function (a, b) { +a.addAttribute$O$O(C$.Subscript, $I$(5).valueOf$Z(b)); +}, 1); + +Clazz_newMeth(C$, 'getForeground$javax_swing_text_AttributeSet', function (a) { +var fg=a.getAttribute$O(C$.Foreground); +if (fg == null ) { +fg=$I$(6).none; +}return fg; +}, 1); + +Clazz_newMeth(C$, 'setForeground$javax_swing_text_MutableAttributeSet$java_awt_Color', function (a, fg) { +a.addAttribute$O$O(C$.Foreground, fg); +}, 1); + +Clazz_newMeth(C$, 'getBackground$javax_swing_text_AttributeSet', function (a) { +var fg=a.getAttribute$O(C$.Background); +if (fg == null ) { +fg=$I$(6).none; +}return fg; +}, 1); + +Clazz_newMeth(C$, 'setBackground$javax_swing_text_MutableAttributeSet$java_awt_Color', function (a, fg) { +a.addAttribute$O$O(C$.Background, fg); +}, 1); + +Clazz_newMeth(C$, 'getFirstLineIndent$javax_swing_text_AttributeSet', function (a) { +var indent=a.getAttribute$O(C$.FirstLineIndent); +if (indent != null ) { +return indent.floatValue$(); +}return 0; +}, 1); + +Clazz_newMeth(C$, 'setFirstLineIndent$javax_swing_text_MutableAttributeSet$F', function (a, i) { +a.addAttribute$O$O(C$.FirstLineIndent, new Float(i)); +}, 1); + +Clazz_newMeth(C$, 'getRightIndent$javax_swing_text_AttributeSet', function (a) { +var indent=a.getAttribute$O(C$.RightIndent); +if (indent != null ) { +return indent.floatValue$(); +}return 0; +}, 1); + +Clazz_newMeth(C$, 'setRightIndent$javax_swing_text_MutableAttributeSet$F', function (a, i) { +a.addAttribute$O$O(C$.RightIndent, new Float(i)); +}, 1); + +Clazz_newMeth(C$, 'getLeftIndent$javax_swing_text_AttributeSet', function (a) { +var indent=a.getAttribute$O(C$.LeftIndent); +if (indent != null ) { +return indent.floatValue$(); +}return 0; +}, 1); + +Clazz_newMeth(C$, 'setLeftIndent$javax_swing_text_MutableAttributeSet$F', function (a, i) { +a.addAttribute$O$O(C$.LeftIndent, new Float(i)); +}, 1); + +Clazz_newMeth(C$, 'getLineSpacing$javax_swing_text_AttributeSet', function (a) { +var space=a.getAttribute$O(C$.LineSpacing); +if (space != null ) { +return space.floatValue$(); +}return 0; +}, 1); + +Clazz_newMeth(C$, 'setLineSpacing$javax_swing_text_MutableAttributeSet$F', function (a, i) { +a.addAttribute$O$O(C$.LineSpacing, new Float(i)); +}, 1); + +Clazz_newMeth(C$, 'getSpaceAbove$javax_swing_text_AttributeSet', function (a) { +var space=a.getAttribute$O(C$.SpaceAbove); +if (space != null ) { +return space.floatValue$(); +}return 0; +}, 1); + +Clazz_newMeth(C$, 'setSpaceAbove$javax_swing_text_MutableAttributeSet$F', function (a, i) { +a.addAttribute$O$O(C$.SpaceAbove, new Float(i)); +}, 1); + +Clazz_newMeth(C$, 'getSpaceBelow$javax_swing_text_AttributeSet', function (a) { +var space=a.getAttribute$O(C$.SpaceBelow); +if (space != null ) { +return space.floatValue$(); +}return 0; +}, 1); + +Clazz_newMeth(C$, 'setSpaceBelow$javax_swing_text_MutableAttributeSet$F', function (a, i) { +a.addAttribute$O$O(C$.SpaceBelow, new Float(i)); +}, 1); + +Clazz_newMeth(C$, 'getAlignment$javax_swing_text_AttributeSet', function (a) { +var align=a.getAttribute$O(C$.Alignment); +if (align != null ) { +return align.intValue$(); +}return 0; +}, 1); + +Clazz_newMeth(C$, 'setAlignment$javax_swing_text_MutableAttributeSet$I', function (a, align) { +a.addAttribute$O$O(C$.Alignment, new Integer(align)); +}, 1); + +Clazz_newMeth(C$, 'getTabSet$javax_swing_text_AttributeSet', function (a) { +var tabs=a.getAttribute$O(C$.TabSet); +return tabs; +}, 1); + +Clazz_newMeth(C$, 'setTabSet$javax_swing_text_MutableAttributeSet$javax_swing_text_TabSet', function (a, tabs) { +a.addAttribute$O$O(C$.TabSet, tabs); +}, 1); + +Clazz_newMeth(C$, 'c$$S', function (representation) { +C$.$init$.apply(this); +this.representation=representation; +}, 1); +; +(function(){var C$=Clazz_newClass(P$.StyleConstants, "ParagraphConstants", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'javax.swing.text.StyleConstants', [['javax.swing.text.AttributeSet','javax.swing.text.AttributeSet.ParagraphAttribute']]); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$S', function (representation) { +C$.superclazz.c$$S.apply(this, [representation]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.StyleConstants, "CharacterConstants", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'javax.swing.text.StyleConstants', [['javax.swing.text.AttributeSet','javax.swing.text.AttributeSet.CharacterAttribute']]); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$S', function (representation) { +C$.superclazz.c$$S.apply(this, [representation]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.StyleConstants, "ColorConstants", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'javax.swing.text.StyleConstants', [['javax.swing.text.AttributeSet','javax.swing.text.AttributeSet.ColorAttribute'], ['javax.swing.text.AttributeSet','javax.swing.text.AttributeSet.CharacterAttribute']]); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$S', function (representation) { +C$.superclazz.c$$S.apply(this, [representation]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.StyleConstants, "FontConstants", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'javax.swing.text.StyleConstants', [['javax.swing.text.AttributeSet','javax.swing.text.AttributeSet.FontAttribute'], ['javax.swing.text.AttributeSet','javax.swing.text.AttributeSet.CharacterAttribute']]); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$S', function (representation) { +C$.superclazz.c$$S.apply(this, [representation]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$); +})() + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:17 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing.text"),p$1={},p$2={},I$=[[0,'javax.swing.text.StyleConstants',['javax.swing.text.StyleContext','.KeyEnumeration'],'java.util.Vector','javax.swing.event.EventListenerList','javax.swing.event.ChangeListener','javax.swing.event.ChangeEvent',['javax.swing.text.StyleContext','.FontKey'],'java.util.Hashtable','java.util.Collections','java.util.HashMap','javax.swing.text.SimpleAttributeSet',['javax.swing.text.StyleContext','.NamedStyle'],'java.awt.Font','javax.swing.SwingUtilities',['javax.swing.text.StyleContext','.SmallAttributeSet']]],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "StyleContext", function(){ +Clazz_newInstance(this, arguments,0,C$); +}, null, [['javax.swing.text.AbstractDocument','javax.swing.text.AbstractDocument.AttributeContext']]); +C$.defaultContext=null; +C$.freezeKeyMap=null; +C$.thawKeyMap=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +{ +}; +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.styles=null; +this.fontSearch=null; +this.fontTable=null; +this.attributesPool=null; +this.search=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.fontSearch=Clazz_new_($I$(7).c$$S$I$I,[null, 0, 0]); +this.fontTable=Clazz_new_($I$(8)); +this.attributesPool=$I$(9).synchronizedMap$java_util_Map(Clazz_new_($I$(10))); +this.search=Clazz_new_($I$(11)); +}, 1); + +Clazz_newMeth(C$, 'getDefaultStyleContext$', function () { +if (C$.defaultContext == null ) { +C$.defaultContext=Clazz_new_(C$); +}return C$.defaultContext; +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.$init$.apply(this); +this.styles=Clazz_new_($I$(12).c$$javax_swing_text_Style, [this, null, null]); +this.addStyle$S$javax_swing_text_Style("default", null); +}, 1); + +Clazz_newMeth(C$, 'addStyle$S$javax_swing_text_Style', function (nm, parent) { +var style=Clazz_new_($I$(12).c$$S$javax_swing_text_Style, [this, null, nm, parent]); +if (nm != null ) { +this.styles.addAttribute$O$O(nm, style); +}return style; +}); + +Clazz_newMeth(C$, 'removeStyle$S', function (nm) { +this.styles.removeAttribute$O(nm); +}); + +Clazz_newMeth(C$, 'getStyle$S', function (nm) { +return this.styles.getAttribute$O(nm); +}); + +Clazz_newMeth(C$, 'getStyleNames$', function () { +return this.styles.getAttributeNames$(); +}); + +Clazz_newMeth(C$, 'addChangeListener$javax_swing_event_ChangeListener', function (l) { +this.styles.addChangeListener$javax_swing_event_ChangeListener(l); +}); + +Clazz_newMeth(C$, 'removeChangeListener$javax_swing_event_ChangeListener', function (l) { +this.styles.removeChangeListener$javax_swing_event_ChangeListener(l); +}); + +Clazz_newMeth(C$, 'getChangeListeners$', function () { +return (this.styles).getChangeListeners$(); +}); + +Clazz_newMeth(C$, 'getFont$javax_swing_text_AttributeSet', function (attr) { +var style=0; +if ($I$(1).isBold$javax_swing_text_AttributeSet(attr)) { +style|=1; +}if ($I$(1).isItalic$javax_swing_text_AttributeSet(attr)) { +style|=2; +}var family=$I$(1).getFontFamily$javax_swing_text_AttributeSet(attr); +var size=$I$(1).getFontSize$javax_swing_text_AttributeSet(attr); +if ($I$(1).isSuperscript$javax_swing_text_AttributeSet(attr) || $I$(1).isSubscript$javax_swing_text_AttributeSet(attr) ) { +size-=2; +}return this.getFont$S$I$I(family, style, size); +}); + +Clazz_newMeth(C$, 'getForeground$javax_swing_text_AttributeSet', function (attr) { +return $I$(1).getForeground$javax_swing_text_AttributeSet(attr); +}); + +Clazz_newMeth(C$, 'getBackground$javax_swing_text_AttributeSet', function (attr) { +return $I$(1).getBackground$javax_swing_text_AttributeSet(attr); +}); + +Clazz_newMeth(C$, 'getFont$S$I$I', function (family, style, size) { +this.fontSearch.setValue$S$I$I(family, style, size); +var f=this.fontTable.get$O(this.fontSearch); +if (f == null ) { +var defaultStyle=this.getStyle$S("default"); +if (defaultStyle != null ) { +var FONT_ATTRIBUTE_KEY="FONT_ATTRIBUTE_KEY"; +var defaultFont=defaultStyle.getAttribute$O("FONT_ATTRIBUTE_KEY"); +if (defaultFont != null && defaultFont.getFamily$().equalsIgnoreCase$S(family) ) { +f=defaultFont.deriveFont$I$F(style, size); +}}if (f == null ) { +f=Clazz_new_($I$(13).c$$S$I$I,[family, style, size]); +}var key=Clazz_new_($I$(7).c$$S$I$I,[family, style, size]); +this.fontTable.put$TK$TV(key, f); +}return f; +}); + +Clazz_newMeth(C$, 'getFontMetrics$java_awt_Font', function (f) { +return f.getFontMetrics$(); +}); + +Clazz_newMeth(C$, 'addAttribute$javax_swing_text_AttributeSet$O$O', function (old, name, value) { +if ((old.getAttributeCount$() + 1) <= this.getCompressionThreshold$()) { +this.search.removeAttributes$javax_swing_text_AttributeSet(this.search); +this.search.addAttributes$javax_swing_text_AttributeSet(old); +this.search.addAttribute$O$O(name, value); +this.reclaim$javax_swing_text_AttributeSet(old); +return this.getImmutableUniqueSet$(); +}var ma=this.getMutableAttributeSet$javax_swing_text_AttributeSet(old); +ma.addAttribute$O$O(name, value); +return ma; +}); + +Clazz_newMeth(C$, 'addAttributes$javax_swing_text_AttributeSet$javax_swing_text_AttributeSet', function (old, attr) { +if ((old.getAttributeCount$() + attr.getAttributeCount$()) <= this.getCompressionThreshold$()) { +this.search.removeAttributes$javax_swing_text_AttributeSet(this.search); +this.search.addAttributes$javax_swing_text_AttributeSet(old); +this.search.addAttributes$javax_swing_text_AttributeSet(attr); +this.reclaim$javax_swing_text_AttributeSet(old); +return this.getImmutableUniqueSet$(); +}var ma=this.getMutableAttributeSet$javax_swing_text_AttributeSet(old); +ma.addAttributes$javax_swing_text_AttributeSet(attr); +return ma; +}); + +Clazz_newMeth(C$, 'removeAttribute$javax_swing_text_AttributeSet$O', function (old, name) { +if ((old.getAttributeCount$() - 1) <= this.getCompressionThreshold$()) { +this.search.removeAttributes$javax_swing_text_AttributeSet(this.search); +this.search.addAttributes$javax_swing_text_AttributeSet(old); +this.search.removeAttribute$O(name); +this.reclaim$javax_swing_text_AttributeSet(old); +return this.getImmutableUniqueSet$(); +}var ma=this.getMutableAttributeSet$javax_swing_text_AttributeSet(old); +ma.removeAttribute$O(name); +return ma; +}); + +Clazz_newMeth(C$, 'removeAttributes$javax_swing_text_AttributeSet$java_util_Enumeration', function (old, names) { +if (old.getAttributeCount$() <= this.getCompressionThreshold$()) { +this.search.removeAttributes$javax_swing_text_AttributeSet(this.search); +this.search.addAttributes$javax_swing_text_AttributeSet(old); +this.search.removeAttributes$java_util_Enumeration(names); +this.reclaim$javax_swing_text_AttributeSet(old); +return this.getImmutableUniqueSet$(); +}var ma=this.getMutableAttributeSet$javax_swing_text_AttributeSet(old); +ma.removeAttributes$java_util_Enumeration(names); +return ma; +}); + +Clazz_newMeth(C$, 'removeAttributes$javax_swing_text_AttributeSet$javax_swing_text_AttributeSet', function (old, attrs) { +if (old.getAttributeCount$() <= this.getCompressionThreshold$()) { +this.search.removeAttributes$javax_swing_text_AttributeSet(this.search); +this.search.addAttributes$javax_swing_text_AttributeSet(old); +this.search.removeAttributes$javax_swing_text_AttributeSet(attrs); +this.reclaim$javax_swing_text_AttributeSet(old); +return this.getImmutableUniqueSet$(); +}var ma=this.getMutableAttributeSet$javax_swing_text_AttributeSet(old); +ma.removeAttributes$javax_swing_text_AttributeSet(attrs); +return ma; +}); + +Clazz_newMeth(C$, 'getEmptySet$', function () { +return $I$(11).EMPTY; +}); + +Clazz_newMeth(C$, 'reclaim$javax_swing_text_AttributeSet', function (a) { +if ($I$(14).isEventDispatchThread$()) { +this.attributesPool.size$(); +}}); + +Clazz_newMeth(C$, 'getCompressionThreshold$', function () { +return 9; +}); + +Clazz_newMeth(C$, 'createSmallAttributeSet$javax_swing_text_AttributeSet', function (a) { +return Clazz_new_($I$(15).c$$javax_swing_text_AttributeSet, [this, null, a]); +}); + +Clazz_newMeth(C$, 'createLargeAttributeSet$javax_swing_text_AttributeSet', function (a) { +return Clazz_new_($I$(11).c$$javax_swing_text_AttributeSet,[a]); +}); + +Clazz_newMeth(C$, 'removeUnusedSets$', function () { +this.attributesPool.size$(); +}); + +Clazz_newMeth(C$, 'getImmutableUniqueSet$', function () { +var key=this.createSmallAttributeSet$javax_swing_text_AttributeSet(this.search); +return key; +}); + +Clazz_newMeth(C$, 'getMutableAttributeSet$javax_swing_text_AttributeSet', function (a) { +if (Clazz_instanceOf(a, "javax.swing.text.MutableAttributeSet") && a !== $I$(11).EMPTY ) { +return a; +}return this.createLargeAttributeSet$javax_swing_text_AttributeSet(a); +}); + +Clazz_newMeth(C$, 'toString', function () { +this.removeUnusedSets$(); +var s=""; +var iterator=this.attributesPool.keySet$().iterator$(); +while (iterator.hasNext$()){ +var set=iterator.next$(); +s=s + set + "\n" ; +} +return s; +}); + +Clazz_newMeth(C$, 'registerStaticAttributeKey$O', function (key) { +var ioFmt=key.getClass$().getName$() + "." + key.toString() ; +if (C$.freezeKeyMap == null ) { +C$.freezeKeyMap=Clazz_new_($I$(8)); +C$.thawKeyMap=Clazz_new_($I$(8)); +}C$.freezeKeyMap.put$TK$TV(key, ioFmt); +C$.thawKeyMap.put$TK$TV(ioFmt, key); +}, 1); + +Clazz_newMeth(C$, 'getStaticAttribute$O', function (key) { +if (C$.thawKeyMap == null || key == null ) { +return null; +}return C$.thawKeyMap.get$O(key); +}, 1); + +Clazz_newMeth(C$, 'getStaticAttributeKey$O', function (key) { +return key.getClass$().getName$() + "." + key.toString() ; +}, 1); +; +(function(){var C$=Clazz_newClass(P$.StyleContext, "SmallAttributeSet", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, null, 'javax.swing.text.AttributeSet'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.attributes=null; +this.resolveParent=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$OA', function (attributes) { +C$.$init$.apply(this); +this.attributes=attributes; +p$1.updateResolveParent.apply(this, []); +}, 1); + +Clazz_newMeth(C$, 'c$$javax_swing_text_AttributeSet', function (attrs) { +C$.$init$.apply(this); +var n=attrs.getAttributeCount$(); +var tbl=Clazz_array(java.lang.Object, [2 * n]); +var names=attrs.getAttributeNames$(); +var i=0; +while (names.hasMoreElements$()){ +tbl[i]=names.nextElement$(); +tbl[i + 1]=attrs.getAttribute$O(tbl[i]); +i+=2; +} +this.attributes=tbl; +p$1.updateResolveParent.apply(this, []); +}, 1); + +Clazz_newMeth(C$, 'updateResolveParent', function () { +this.resolveParent=null; +var tbl=this.attributes; +for (var i=0; i < tbl.length; i+=2) { +if (tbl[i] === $I$(1).ResolveAttribute ) { +this.resolveParent=tbl[i + 1]; +break; +}} +}, p$1); + +Clazz_newMeth(C$, 'getLocalAttribute$O', function (nm) { +if (nm === $I$(1).ResolveAttribute ) { +return this.resolveParent; +}var tbl=this.attributes; +for (var i=0; i < tbl.length; i+=2) { +if (nm.equals$O(tbl[i])) { +return tbl[i + 1]; +}} +return null; +}); + +Clazz_newMeth(C$, 'toString', function () { +var s="{"; +var tbl=this.attributes; +for (var i=0; i < tbl.length; i+=2) { +if (Clazz_instanceOf(tbl[i + 1], "javax.swing.text.AttributeSet")) { +s=s + tbl[i] + "=" + "AttributeSet" + "," ; +} else { +s=s + tbl[i] + "=" + tbl[i + 1] + "," ; +}} +s=s + "}"; +return s; +}); + +Clazz_newMeth(C$, 'hashCode$', function () { +var code=0; +var tbl=this.attributes; +for (var i=1; i < tbl.length; i+=2) { +code^=tbl[i].hashCode$(); +} +return code; +}); + +Clazz_newMeth(C$, 'equals$O', function (obj) { +if (Clazz_instanceOf(obj, "javax.swing.text.AttributeSet")) { +var attrs=obj; +return ((this.getAttributeCount$() == attrs.getAttributeCount$()) && this.containsAttributes$javax_swing_text_AttributeSet(attrs) ); +}return false; +}); + +Clazz_newMeth(C$, 'clone$', function () { +return this; +}); + +Clazz_newMeth(C$, 'getAttributeCount$', function () { +return (this.attributes.length/2|0); +}); + +Clazz_newMeth(C$, 'isDefined$O', function (key) { +var a=this.attributes; +var n=a.length; +for (var i=0; i < n; i+=2) { +if (key.equals$O(a[i])) { +return true; +}} +return false; +}); + +Clazz_newMeth(C$, 'isEqual$javax_swing_text_AttributeSet', function (attr) { +if (Clazz_instanceOf(attr, "javax.swing.text.StyleContext.SmallAttributeSet")) { +return attr === this ; +}return ((this.getAttributeCount$() == attr.getAttributeCount$()) && this.containsAttributes$javax_swing_text_AttributeSet(attr) ); +}); + +Clazz_newMeth(C$, 'copyAttributes$', function () { +return this; +}); + +Clazz_newMeth(C$, 'getAttribute$O', function (key) { +var value=this.getLocalAttribute$O(key); +if (value == null ) { +var parent=this.getResolveParent$(); +if (parent != null ) value=parent.getAttribute$O(key); +}return value; +}); + +Clazz_newMeth(C$, 'getAttributeNames$', function () { +return Clazz_new_($I$(2).c$$OA, [this, null, this.attributes]); +}); + +Clazz_newMeth(C$, 'containsAttribute$O$O', function (name, value) { +return value.equals$O(this.getAttribute$O(name)); +}); + +Clazz_newMeth(C$, 'containsAttributes$javax_swing_text_AttributeSet', function (attrs) { +var result=true; +var names=attrs.getAttributeNames$(); +while (result && names.hasMoreElements$() ){ +var name=names.nextElement$(); +result=attrs.getAttribute$O(name).equals$O(this.getAttribute$O(name)); +} +return result; +}); + +Clazz_newMeth(C$, 'getResolveParent$', function () { +return this.resolveParent; +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.StyleContext, "KeyEnumeration", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, null, 'java.util.Enumeration'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.attr=null; +this.i=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$OA', function (attr) { +C$.$init$.apply(this); +this.attr=attr; +this.i=0; +}, 1); + +Clazz_newMeth(C$, 'hasMoreElements$', function () { +return this.i < this.attr.length; +}); + +Clazz_newMeth(C$, 'nextElement$', function () { +if (this.i < this.attr.length) { +var o=this.attr[this.i]; +this.i+=2; +return o; +}throw Clazz_new_(Clazz_load('java.util.NoSuchElementException')); +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.StyleContext, "KeyBuilder", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.keys=null; +this.data=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.keys=Clazz_new_($I$(3)); +this.data=Clazz_new_($I$(3)); +}, 1); + +Clazz_newMeth(C$, 'initialize$javax_swing_text_AttributeSet', function (a) { +if (Clazz_instanceOf(a, "javax.swing.text.StyleContext.SmallAttributeSet")) { +p$2.initialize$OA.apply(this, [(a).attributes]); +} else { +this.keys.removeAllElements$(); +this.data.removeAllElements$(); +var names=a.getAttributeNames$(); +while (names.hasMoreElements$()){ +var name=names.nextElement$(); +this.addAttribute$O$O(name, a.getAttribute$O(name)); +} +}}); + +Clazz_newMeth(C$, 'initialize$OA', function (sorted) { +this.keys.removeAllElements$(); +this.data.removeAllElements$(); +var n=sorted.length; +for (var i=0; i < n; i+=2) { +this.keys.addElement$TE(sorted[i]); +this.data.addElement$TE(sorted[i + 1]); +} +}, p$2); + +Clazz_newMeth(C$, 'createTable$', function () { +var n=this.keys.size$(); +var tbl=Clazz_array(java.lang.Object, [2 * n]); +for (var i=0; i < n; i++) { +var offs=2 * i; +tbl[offs]=this.keys.elementAt$I(i); +tbl[offs + 1]=this.data.elementAt$I(i); +} +return tbl; +}); + +Clazz_newMeth(C$, 'getCount$', function () { +return this.keys.size$(); +}); + +Clazz_newMeth(C$, 'addAttribute$O$O', function (key, value) { +this.keys.addElement$TE(key); +this.data.addElement$TE(value); +}); + +Clazz_newMeth(C$, 'addAttributes$javax_swing_text_AttributeSet', function (attr) { +if (Clazz_instanceOf(attr, "javax.swing.text.StyleContext.SmallAttributeSet")) { +var tbl=(attr).attributes; +var n=tbl.length; +for (var i=0; i < n; i+=2) { +this.addAttribute$O$O(tbl[i], tbl[i + 1]); +} +} else { +var names=attr.getAttributeNames$(); +while (names.hasMoreElements$()){ +var name=names.nextElement$(); +this.addAttribute$O$O(name, attr.getAttribute$O(name)); +} +}}); + +Clazz_newMeth(C$, 'removeAttribute$O', function (key) { +var n=this.keys.size$(); +for (var i=0; i < n; i++) { +if (this.keys.elementAt$I(i).equals$O(key)) { +this.keys.removeElementAt$I(i); +this.data.removeElementAt$I(i); +return; +}} +}); + +Clazz_newMeth(C$, 'removeAttributes$java_util_Enumeration', function (names) { +while (names.hasMoreElements$()){ +var name=names.nextElement$(); +this.removeAttribute$O(name); +} +}); + +Clazz_newMeth(C$, 'removeAttributes$javax_swing_text_AttributeSet', function (attr) { +var names=attr.getAttributeNames$(); +while (names.hasMoreElements$()){ +var name=names.nextElement$(); +var value=attr.getAttribute$O(name); +p$2.removeSearchAttribute$O$O.apply(this, [name, value]); +} +}); + +Clazz_newMeth(C$, 'removeSearchAttribute$O$O', function (ikey, value) { +var n=this.keys.size$(); +for (var i=0; i < n; i++) { +if (this.keys.elementAt$I(i).equals$O(ikey)) { +if (this.data.elementAt$I(i).equals$O(value)) { +this.keys.removeElementAt$I(i); +this.data.removeElementAt$I(i); +}return; +}} +}, p$2); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.StyleContext, "FontKey", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.family=null; +this.style=0; +this.size=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$S$I$I', function (family, style, size) { +C$.$init$.apply(this); +this.setValue$S$I$I(family, style, size); +}, 1); + +Clazz_newMeth(C$, 'setValue$S$I$I', function (family, style, size) { +this.family=(family != null ) ? family.intern$() : null; +this.style=style; +this.size=size; +}); + +Clazz_newMeth(C$, 'hashCode$', function () { +var fhash=(this.family != null ) ? this.family.hashCode$() : 0; +return fhash ^ this.style ^ this.size ; +}); + +Clazz_newMeth(C$, 'equals$O', function (obj) { +if (Clazz_instanceOf(obj, "javax.swing.text.StyleContext.FontKey")) { +var font=obj; +return (this.size == font.size) && (this.style == font.style) && (this.family == font.family) ; +}return false; +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.StyleContext, "NamedStyle", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, null, 'javax.swing.text.Style'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.listenerList=null; +this.changeEvent=null; +this.attributes=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.listenerList=Clazz_new_($I$(4)); +this.changeEvent=null; +}, 1); + +Clazz_newMeth(C$, 'c$$S$javax_swing_text_Style', function (name, parent) { +C$.$init$.apply(this); +this.attributes=this.this$0.getEmptySet$.apply(this.this$0, []); +if (name != null ) { +this.setName$S(name); +}if (parent != null ) { +this.setResolveParent$javax_swing_text_AttributeSet(parent); +}}, 1); + +Clazz_newMeth(C$, 'c$$javax_swing_text_Style', function (parent) { +C$.c$$S$javax_swing_text_Style.apply(this, [null, parent]); +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.$init$.apply(this); +this.attributes=this.this$0.getEmptySet$.apply(this.this$0, []); +}, 1); + +Clazz_newMeth(C$, 'toString', function () { +return "NamedStyle:" + this.getName$() + " " + this.attributes ; +}); + +Clazz_newMeth(C$, 'getName$', function () { +if (this.isDefined$O($I$(1).NameAttribute)) { +return this.getAttribute$O($I$(1).NameAttribute).toString(); +}return null; +}); + +Clazz_newMeth(C$, 'setName$S', function (name) { +if (name != null ) { +this.addAttribute$O$O($I$(1).NameAttribute, name); +}}); + +Clazz_newMeth(C$, 'addChangeListener$javax_swing_event_ChangeListener', function (l) { +this.listenerList.add$Class$TT(Clazz_getClass($I$(5),['stateChanged$javax_swing_event_ChangeEvent']), l); +}); + +Clazz_newMeth(C$, 'removeChangeListener$javax_swing_event_ChangeListener', function (l) { +this.listenerList.remove$Class$TT(Clazz_getClass($I$(5),['stateChanged$javax_swing_event_ChangeEvent']), l); +}); + +Clazz_newMeth(C$, 'getChangeListeners$', function () { +return this.listenerList.getListeners$Class(Clazz_getClass($I$(5),['stateChanged$javax_swing_event_ChangeEvent'])); +}); + +Clazz_newMeth(C$, 'fireStateChanged$', function () { +var listeners=this.listenerList.getListenerList$(); +for (var i=listeners.length - 2; i >= 0; i-=2) { +if (listeners[i] === Clazz_getClass($I$(5),['stateChanged$javax_swing_event_ChangeEvent']) ) { +if (this.changeEvent == null ) this.changeEvent=Clazz_new_($I$(6).c$$O,[this]); +(listeners[i + 1]).stateChanged$(this.changeEvent); +}} +}); + +Clazz_newMeth(C$, 'getListeners$Class', function (listenerType) { +return this.listenerList.getListeners$Class(listenerType); +}); + +Clazz_newMeth(C$, 'getAttributeCount$', function () { +return this.attributes.getAttributeCount$(); +}); + +Clazz_newMeth(C$, 'isDefined$O', function (attrName) { +return this.attributes.isDefined$O(attrName); +}); + +Clazz_newMeth(C$, 'isEqual$javax_swing_text_AttributeSet', function (attr) { +return this.attributes.isEqual$javax_swing_text_AttributeSet(attr); +}); + +Clazz_newMeth(C$, 'copyAttributes$', function () { +var a=Clazz_new_(C$, [this, null]); +a.attributes=this.attributes.copyAttributes$(); +return a; +}); + +Clazz_newMeth(C$, 'getAttribute$O', function (attrName) { +return this.attributes.getAttribute$O(attrName); +}); + +Clazz_newMeth(C$, 'getAttributeNames$', function () { +return this.attributes.getAttributeNames$(); +}); + +Clazz_newMeth(C$, 'containsAttribute$O$O', function (name, value) { +return this.attributes.containsAttribute$O$O(name, value); +}); + +Clazz_newMeth(C$, 'containsAttributes$javax_swing_text_AttributeSet', function (attrs) { +return this.attributes.containsAttributes$javax_swing_text_AttributeSet(attrs); +}); + +Clazz_newMeth(C$, 'getResolveParent$', function () { +return this.attributes.getResolveParent$(); +}); + +Clazz_newMeth(C$, 'addAttribute$O$O', function (name, value) { +var context=this.this$0; +this.attributes=context.addAttribute$javax_swing_text_AttributeSet$O$O(this.attributes, name, value); +this.fireStateChanged$(); +}); + +Clazz_newMeth(C$, 'addAttributes$javax_swing_text_AttributeSet', function (attr) { +var context=this.this$0; +this.attributes=context.addAttributes$javax_swing_text_AttributeSet$javax_swing_text_AttributeSet(this.attributes, attr); +this.fireStateChanged$(); +}); + +Clazz_newMeth(C$, 'removeAttribute$O', function (name) { +var context=this.this$0; +this.attributes=context.removeAttribute$javax_swing_text_AttributeSet$O(this.attributes, name); +this.fireStateChanged$(); +}); + +Clazz_newMeth(C$, 'removeAttributes$java_util_Enumeration', function (names) { +var context=this.this$0; +this.attributes=context.removeAttributes$javax_swing_text_AttributeSet$java_util_Enumeration(this.attributes, names); +this.fireStateChanged$(); +}); + +Clazz_newMeth(C$, 'removeAttributes$javax_swing_text_AttributeSet', function (attrs) { +var context=this.this$0; +if (attrs === this ) { +this.attributes=context.getEmptySet$(); +} else { +this.attributes=context.removeAttributes$javax_swing_text_AttributeSet$javax_swing_text_AttributeSet(this.attributes, attrs); +}this.fireStateChanged$(); +}); + +Clazz_newMeth(C$, 'setResolveParent$javax_swing_text_AttributeSet', function (parent) { +if (parent != null ) { +this.addAttribute$O$O($I$(1).ResolveAttribute, parent); +} else { +this.removeAttribute$O($I$(1).ResolveAttribute); +}}); +})() +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:17 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing.text"),I$=[]; +var C$=Clazz_newInterface(P$, "TabExpander"); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:17 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing.text"),I$=[[0,'java.util.Hashtable','javax.swing.Action','javax.swing.text.JTextComponent']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "TextAction", null, 'javax.swing.AbstractAction'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$S', function (name) { +C$.superclazz.c$$S.apply(this, [name]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'getTextComponent$java_awt_event_ActionEvent', function (e) { +if (e != null ) { +var o=e.getSource$(); +if (Clazz_instanceOf(o, "javax.swing.text.JTextComponent")) { +return o; +}}return this.getFocusedComponent$(); +}); + +Clazz_newMeth(C$, 'augmentList$javax_swing_ActionA$javax_swing_ActionA', function (list1, list2) { +var h=Clazz_new_($I$(1)); +if (list1 != null ) for (var i=0; i < list1.length; i++) { +var a=list1[i]; +var value=a.getValue$S("Name"); +h.put$TK$TV((value != null ? value : ""), a); +} +for (var i=0; i < list2.length; i++) { +var a=list2[i]; +var value=a.getValue$S("Name"); +h.put$TK$TV((value != null ? value : ""), a); +} +var actions=Clazz_array($I$(2), [h.size$()]); +var index=0; +for (var e=h.elements$(); e.hasMoreElements$(); ) { +actions[index++]=e.nextElement$(); +} +return actions; +}, 1); + +Clazz_newMeth(C$, 'getFocusedComponent$', function () { +return $I$(3).getFocusedComponent$(); +}); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:17 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing.text"),I$=[[0,'javax.swing.text.StyleConstants',['javax.swing.text.Position','.Bias']]],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "Utilities"); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'getJComponent$javax_swing_text_View', function (view) { +if (view != null ) { +var component=view.getContainer$(); +if (Clazz_instanceOf(component, "javax.swing.JComponent")) { +return component; +}}return null; +}, 1); + +Clazz_newMeth(C$, 'getTabbedTextWidth$javax_swing_text_Segment$java_awt_FontMetrics$I$javax_swing_text_TabExpander$I', function (s, metrics, x, e, startOffset) { +return C$.getTabbedTextWidth$javax_swing_text_View$javax_swing_text_Segment$java_awt_FontMetrics$I$javax_swing_text_TabExpander$I$IA(null, s, metrics, x, e, startOffset, null); +}, 1); + +Clazz_newMeth(C$, 'getTabbedTextWidth$javax_swing_text_View$javax_swing_text_Segment$java_awt_FontMetrics$I$javax_swing_text_TabExpander$I$IA', function (view, s, metrics, x, e, startOffset, justificationData) { +var nextX=x; +var txt=s.array; +var txtOffset=s.offset; +var n=s.offset + s.count; +var charCount=0; +var spaceAddon=0; +var spaceAddonLeftoverEnd=-1; +var startJustifiableContent=0; +var endJustifiableContent=0; +if (justificationData != null ) { +var offset=-startOffset + txtOffset; +var parent=null; +if (view != null && (parent=view.getParent$()) != null ) { +offset+=parent.getStartOffset$(); +}spaceAddon=justificationData[0]; +spaceAddonLeftoverEnd=justificationData[1] + offset; +startJustifiableContent=justificationData[2] + offset; +endJustifiableContent=justificationData[3] + offset; +}for (var i=txtOffset; i < n; i++) { +if (txt[i] == "\t" || ((spaceAddon != 0 || i <= spaceAddonLeftoverEnd ) && (txt[i] == " ") && startJustifiableContent <= i && i <= endJustifiableContent ) ) { +nextX+=metrics.charsWidth$CA$I$I(txt, i - charCount, charCount); +charCount=0; +if (txt[i] == "\t") { +if (e != null ) { +nextX=(e.nextTabStop$(nextX, startOffset + i - txtOffset)|0); +} else { +nextX+=metrics.charWidth$C(" "); +}} else if (txt[i] == " ") { +nextX+=metrics.charWidth$C(" ") + spaceAddon; +if (i <= spaceAddonLeftoverEnd) { +nextX++; +}}} else if (txt[i] == "\n") { +nextX+=metrics.charsWidth$CA$I$I(txt, i - charCount, charCount); +charCount=0; +} else { +charCount++; +}} +nextX+=metrics.charsWidth$CA$I$I(txt, n - charCount, charCount); +return nextX - x; +}, 1); + +Clazz_newMeth(C$, 'getTabbedTextOffset$javax_swing_text_Segment$java_awt_FontMetrics$I$I$javax_swing_text_TabExpander$I', function (s, metrics, x0, x, e, startOffset) { +return C$.getTabbedTextOffset$javax_swing_text_Segment$java_awt_FontMetrics$I$I$javax_swing_text_TabExpander$I$Z(s, metrics, x0, x, e, startOffset, true); +}, 1); + +Clazz_newMeth(C$, 'getTabbedTextOffset$javax_swing_text_View$javax_swing_text_Segment$java_awt_FontMetrics$I$I$javax_swing_text_TabExpander$I$IA', function (view, s, metrics, x0, x, e, startOffset, justificationData) { +return C$.getTabbedTextOffset$javax_swing_text_View$javax_swing_text_Segment$java_awt_FontMetrics$I$I$javax_swing_text_TabExpander$I$Z$IA(view, s, metrics, x0, x, e, startOffset, true, justificationData); +}, 1); + +Clazz_newMeth(C$, 'getTabbedTextOffset$javax_swing_text_Segment$java_awt_FontMetrics$I$I$javax_swing_text_TabExpander$I$Z', function (s, metrics, x0, x, e, startOffset, round) { +return C$.getTabbedTextOffset$javax_swing_text_View$javax_swing_text_Segment$java_awt_FontMetrics$I$I$javax_swing_text_TabExpander$I$Z$IA(null, s, metrics, x0, x, e, startOffset, round, null); +}, 1); + +Clazz_newMeth(C$, 'getTabbedTextOffset$javax_swing_text_View$javax_swing_text_Segment$java_awt_FontMetrics$I$I$javax_swing_text_TabExpander$I$Z$IA', function (view, s, metrics, x0, x, e, startOffset, round, justificationData) { +if (x0 >= x) { +return 0; +}var currX=x0; +var nextX=currX; +var txt=s.array; +var txtOffset=s.offset; +var txtCount=s.count; +var spaceAddon=0; +var spaceAddonLeftoverEnd=-1; +var startJustifiableContent=0; +var endJustifiableContent=0; +if (justificationData != null ) { +var offset=-startOffset + txtOffset; +var parent=null; +if (view != null && (parent=view.getParent$()) != null ) { +offset+=parent.getStartOffset$(); +}spaceAddon=justificationData[0]; +spaceAddonLeftoverEnd=justificationData[1] + offset; +startJustifiableContent=justificationData[2] + offset; +endJustifiableContent=justificationData[3] + offset; +}var n=s.offset + s.count; +for (var i=s.offset; i < n; i++) { +if (txt[i] == "\t" || ((spaceAddon != 0 || i <= spaceAddonLeftoverEnd ) && (txt[i] == " ") && startJustifiableContent <= i && i <= endJustifiableContent ) ) { +if (txt[i] == "\t") { +if (e != null ) { +nextX=(e.nextTabStop$(nextX, startOffset + i - txtOffset)|0); +} else { +nextX+=metrics.charWidth$C(" "); +}} else if (txt[i] == " ") { +nextX+=metrics.charWidth$C(" ") + spaceAddon; +if (i <= spaceAddonLeftoverEnd) { +nextX++; +}}} else { +nextX+=metrics.charWidth$C(txt[i]); +}if ((x >= currX) && (x < nextX) ) { +if ((round == false ) || ((x - currX) < (nextX - x)) ) { +return i - txtOffset; +} else { +return i + 1 - txtOffset; +}}currX=nextX; +} +return txtCount; +}, 1); + +Clazz_newMeth(C$, 'getBreakLocation$javax_swing_text_Segment$java_awt_FontMetrics$I$I$javax_swing_text_TabExpander$I', function (s, metrics, x0, x, e, startOffset) { +return 0; +}, 1); + +Clazz_newMeth(C$, 'getRowStart$javax_swing_text_JTextComponent$I', function (c, offs) { +var r=c.modelToView$I(offs); +if (r == null ) { +return -1; +}var lastOffs=offs; +var y=r.y; +while ((r != null ) && (y == r.y) ){ +if (r.height != 0) { +offs=lastOffs; +}lastOffs-=1; +r=(lastOffs >= 0) ? c.modelToView$I(lastOffs) : null; +} +return offs; +}, 1); + +Clazz_newMeth(C$, 'getRowEnd$javax_swing_text_JTextComponent$I', function (c, offs) { +var r=c.modelToView$I(offs); +if (r == null ) { +return -1; +}var n=c.getDocument$().getLength$(); +var lastOffs=offs; +var y=r.y; +while ((r != null ) && (y == r.y) ){ +if (r.height != 0) { +offs=lastOffs; +}lastOffs+=1; +r=(lastOffs <= n) ? c.modelToView$I(lastOffs) : null; +} +return offs; +}, 1); + +Clazz_newMeth(C$, 'getPositionAbove$javax_swing_text_JTextComponent$I$I', function (c, offs, x) { +var lastOffs=C$.getRowStart$javax_swing_text_JTextComponent$I(c, offs) - 1; +if (lastOffs < 0) { +return -1; +}var bestSpan=2147483647; +var y=0; +var r=null; +if (lastOffs >= 0) { +r=c.modelToView$I(lastOffs); +y=r.y; +}while ((r != null ) && (y == r.y) ){ +var span=Math.abs(r.x - x); +if (span < bestSpan) { +offs=lastOffs; +bestSpan=span; +}lastOffs-=1; +r=(lastOffs >= 0) ? c.modelToView$I(lastOffs) : null; +} +return offs; +}, 1); + +Clazz_newMeth(C$, 'getPositionBelow$javax_swing_text_JTextComponent$I$I', function (c, offs, x) { +var lastOffs=C$.getRowEnd$javax_swing_text_JTextComponent$I(c, offs) + 1; +if (lastOffs <= 0) { +return -1; +}var bestSpan=2147483647; +var n=c.getDocument$().getLength$(); +var y=0; +var r=null; +if (lastOffs <= n) { +r=c.modelToView$I(lastOffs); +y=r.y; +}while ((r != null ) && (y == r.y) ){ +var span=Math.abs(x - r.x); +if (span < bestSpan) { +offs=lastOffs; +bestSpan=span; +}lastOffs+=1; +r=(lastOffs <= n) ? c.modelToView$I(lastOffs) : null; +} +return offs; +}, 1); + +Clazz_newMeth(C$, 'getWordStart$javax_swing_text_JTextComponent$I', function (c, offs) { +return 0; +}, 1); + +Clazz_newMeth(C$, 'getWordEnd$javax_swing_text_JTextComponent$I', function (c, offs) { +return 0; +}, 1); + +Clazz_newMeth(C$, 'getNextWord$javax_swing_text_JTextComponent$I', function (c, offs) { +var nextWord; +var line=C$.getParagraphElement$javax_swing_text_JTextComponent$I(c, offs); +for (nextWord=C$.getNextWordInParagraph$javax_swing_text_JTextComponent$javax_swing_text_Element$I$Z(c, line, offs, false); nextWord == -1; nextWord=C$.getNextWordInParagraph$javax_swing_text_JTextComponent$javax_swing_text_Element$I$Z(c, line, offs, true)) { +offs=line.getEndOffset$(); +line=C$.getParagraphElement$javax_swing_text_JTextComponent$I(c, offs); +} +return nextWord; +}, 1); + +Clazz_newMeth(C$, 'getNextWordInParagraph$javax_swing_text_JTextComponent$javax_swing_text_Element$I$Z', function (c, line, offs, first) { +return 0; +}, 1); + +Clazz_newMeth(C$, 'getPreviousWord$javax_swing_text_JTextComponent$I', function (c, offs) { +var prevWord; +var line=C$.getParagraphElement$javax_swing_text_JTextComponent$I(c, offs); +for (prevWord=C$.getPrevWordInParagraph$javax_swing_text_JTextComponent$javax_swing_text_Element$I(c, line, offs); prevWord == -1; prevWord=C$.getPrevWordInParagraph$javax_swing_text_JTextComponent$javax_swing_text_Element$I(c, line, offs)) { +offs=line.getStartOffset$() - 1; +line=C$.getParagraphElement$javax_swing_text_JTextComponent$I(c, offs); +} +return prevWord; +}, 1); + +Clazz_newMeth(C$, 'getPrevWordInParagraph$javax_swing_text_JTextComponent$javax_swing_text_Element$I', function (c, line, offs) { +return 0; +}, 1); + +Clazz_newMeth(C$, 'getParagraphElement$javax_swing_text_JTextComponent$I', function (c, offs) { +var doc=c.getDocument$(); +if (Clazz_instanceOf(doc, "javax.swing.text.StyledDocument")) { +return (doc).getParagraphElement$I(offs); +}var map=doc.getDefaultRootElement$(); +var index=map.getElementIndex$I(offs); +var paragraph=map.getElement$I(index); +if ((offs >= paragraph.getStartOffset$()) && (offs < paragraph.getEndOffset$()) ) { +return paragraph; +}return null; +}, 1); + +Clazz_newMeth(C$, 'isComposedTextElement$javax_swing_text_Document$I', function (doc, offset) { +var elem=doc.getDefaultRootElement$(); +while (!elem.isLeaf$()){ +elem=elem.getElement$I(elem.getElementIndex$I(offset)); +} +return C$.isComposedTextElement$javax_swing_text_Element(elem); +}, 1); + +Clazz_newMeth(C$, 'isComposedTextElement$javax_swing_text_Element', function (elem) { +var as=elem.getAttributes$(); +return C$.isComposedTextAttributeDefined$javax_swing_text_AttributeSet(as); +}, 1); + +Clazz_newMeth(C$, 'isComposedTextAttributeDefined$javax_swing_text_AttributeSet', function (as) { +return ((as != null ) && (as.isDefined$O($I$(1).ComposedTextAttribute)) ); +}, 1); + +Clazz_newMeth(C$, 'isLeftToRight$java_awt_Component', function (c) { +return c.getComponentOrientation$().isLeftToRight$(); +}, 1); + +Clazz_newMeth(C$, 'getNextVisualPositionFrom$javax_swing_text_View$I$javax_swing_text_Position_Bias$java_awt_Shape$I$javax_swing_text_Position_BiasA', function (v, pos, b, alloc, direction, biasRet) { +if (v.getViewCount$() == 0) { +return pos; +}var top=(direction == 1 || direction == 7 ); +var retValue; +if (pos == -1) { +var childIndex=(top) ? v.getViewCount$() - 1 : 0; +var child=v.getView$I(childIndex); +var childBounds=v.getChildAllocation$I$java_awt_Shape(childIndex, alloc); +retValue=child.getNextVisualPositionFrom$I$javax_swing_text_Position_Bias$java_awt_Shape$I$javax_swing_text_Position_BiasA(pos, b, childBounds, direction, biasRet); +if (retValue == -1 && !top && v.getViewCount$() > 1 ) { +child=v.getView$I(1); +childBounds=v.getChildAllocation$I$java_awt_Shape(1, alloc); +retValue=child.getNextVisualPositionFrom$I$javax_swing_text_Position_Bias$java_awt_Shape$I$javax_swing_text_Position_BiasA(-1, biasRet[0], childBounds, direction, biasRet); +}} else { +var increment=(top) ? -1 : 1; +var childIndex; +if (b === $I$(2).Backward && pos > 0 ) { +childIndex=v.getViewIndex$I$javax_swing_text_Position_Bias(pos - 1, $I$(2).Forward); +} else { +childIndex=v.getViewIndex$I$javax_swing_text_Position_Bias(pos, $I$(2).Forward); +}var child=v.getView$I(childIndex); +var childBounds=v.getChildAllocation$I$java_awt_Shape(childIndex, alloc); +retValue=child.getNextVisualPositionFrom$I$javax_swing_text_Position_Bias$java_awt_Shape$I$javax_swing_text_Position_BiasA(pos, b, childBounds, direction, biasRet); +if ((direction == 3 || direction == 7 ) && (Clazz_instanceOf(v, "javax.swing.text.CompositeView")) && (v).flipEastAndWestAtEnds$I$javax_swing_text_Position_Bias(pos, b) ) { +increment*=-1; +}childIndex+=increment; +if (retValue == -1 && childIndex >= 0 && childIndex < v.getViewCount$() ) { +child=v.getView$I(childIndex); +childBounds=v.getChildAllocation$I$java_awt_Shape(childIndex, alloc); +retValue=child.getNextVisualPositionFrom$I$javax_swing_text_Position_Bias$java_awt_Shape$I$javax_swing_text_Position_BiasA(-1, b, childBounds, direction, biasRet); +if (retValue == pos && biasRet[0] !== b ) { +return C$.getNextVisualPositionFrom$javax_swing_text_View$I$javax_swing_text_Position_Bias$java_awt_Shape$I$javax_swing_text_Position_BiasA(v, pos, biasRet[0], alloc, direction, biasRet); +}} else if (retValue != -1 && biasRet[0] !== b && ((increment == 1 && child.getEndOffset$() == retValue ) || (increment == -1 && child.getStartOffset$() == retValue ) ) && childIndex >= 0 && childIndex < v.getViewCount$() ) { +child=v.getView$I(childIndex); +childBounds=v.getChildAllocation$I$java_awt_Shape(childIndex, alloc); +var originalBias=biasRet[0]; +var nextPos=child.getNextVisualPositionFrom$I$javax_swing_text_Position_Bias$java_awt_Shape$I$javax_swing_text_Position_BiasA(-1, b, childBounds, direction, biasRet); +if (biasRet[0] === b ) { +retValue=nextPos; +} else { +biasRet[0]=originalBias; +}}}return retValue; +}, 1); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:17 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing.text"),I$=[[0,['javax.swing.text.Position','.Bias'],'javax.swing.text.Utilities','java.awt.Rectangle',['javax.swing.event.DocumentEvent','.EventType']]],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "View", null, null, 'javax.swing.SwingConstants'); +C$.sharedBiasReturn=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.sharedBiasReturn=Clazz_array($I$(1), [1]); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.parent=null; +this.elem=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$javax_swing_text_Element', function (elem) { +C$.$init$.apply(this); +this.elem=elem; +}, 1); + +Clazz_newMeth(C$, 'getParent$', function () { +return this.parent; +}); + +Clazz_newMeth(C$, 'isVisible$', function () { +return true; +}); + +Clazz_newMeth(C$, 'getMinimumSpan$I', function (axis) { +var w=this.getResizeWeight$I(axis); +if (w == 0) { +return this.getPreferredSpan$I(axis); +}return 0; +}); + +Clazz_newMeth(C$, 'getMaximumSpan$I', function (axis) { +var w=this.getResizeWeight$I(axis); +if (w == 0) { +return this.getPreferredSpan$I(axis); +}return 2147483647; +}); + +Clazz_newMeth(C$, 'preferenceChanged$javax_swing_text_View$Z$Z', function (child, width, height) { +var parent=this.getParent$(); +if (parent != null ) { +parent.preferenceChanged$javax_swing_text_View$Z$Z(this, width, height); +}}); + +Clazz_newMeth(C$, 'getAlignment$I', function (axis) { +return 0.5; +}); + +Clazz_newMeth(C$, 'setParent$javax_swing_text_View', function (parent) { +if (parent == null ) { +for (var i=0; i < this.getViewCount$(); i++) { +if (this.getView$I(i).getParent$() === this ) { +this.getView$I(i).setParent$javax_swing_text_View(null); +}} +}this.parent=parent; +}); + +Clazz_newMeth(C$, 'getViewCount$', function () { +return 0; +}); + +Clazz_newMeth(C$, 'getView$I', function (n) { +return null; +}); + +Clazz_newMeth(C$, 'removeAll$', function () { +this.replace$I$I$javax_swing_text_ViewA(0, this.getViewCount$(), null); +}); + +Clazz_newMeth(C$, 'remove$I', function (i) { +this.replace$I$I$javax_swing_text_ViewA(i, 1, null); +}); + +Clazz_newMeth(C$, 'insert$I$javax_swing_text_View', function (offs, v) { +var one=Clazz_array(C$, [1]); +one[0]=v; +this.replace$I$I$javax_swing_text_ViewA(offs, 0, one); +}); + +Clazz_newMeth(C$, 'append$javax_swing_text_View', function (v) { +var one=Clazz_array(C$, [1]); +one[0]=v; +this.replace$I$I$javax_swing_text_ViewA(this.getViewCount$(), 0, one); +}); + +Clazz_newMeth(C$, 'replace$I$I$javax_swing_text_ViewA', function (offset, length, views) { +}); + +Clazz_newMeth(C$, 'getViewIndex$I$javax_swing_text_Position_Bias', function (pos, b) { +return -1; +}); + +Clazz_newMeth(C$, 'getChildAllocation$I$java_awt_Shape', function (index, a) { +return null; +}); + +Clazz_newMeth(C$, 'getNextVisualPositionFrom$I$javax_swing_text_Position_Bias$java_awt_Shape$I$javax_swing_text_Position_BiasA', function (pos, b, a, direction, biasRet) { +biasRet[0]=$I$(1).Forward; +switch (direction) { +case 1: +case 5: +{ +if (pos == -1) { +pos=(direction == 1) ? Math.max(0, this.getEndOffset$() - 1) : this.getStartOffset$(); +break; +}var target=this.getContainer$(); +var c=(target != null ) ? target.getCaret$() : null; +var mcp; +if (c != null ) { +mcp=c.getMagicCaretPosition$(); +} else { +mcp=null; +}var x; +if (mcp == null ) { +var loc=target.modelToView$I(pos); +x=(loc == null ) ? 0 : loc.x; +} else { +x=mcp.x; +}if (direction == 1) { +pos=$I$(2).getPositionAbove$javax_swing_text_JTextComponent$I$I(target, pos, x); +} else { +pos=$I$(2).getPositionBelow$javax_swing_text_JTextComponent$I$I(target, pos, x); +}}break; +case 7: +if (pos == -1) { +pos=Math.max(0, this.getEndOffset$() - 1); +} else { +pos=Math.max(0, pos - 1); +}break; +case 3: +if (pos == -1) { +pos=this.getStartOffset$(); +} else { +pos=Math.min(pos + 1, this.getDocument$().getLength$()); +}break; +default: +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["Bad direction: " + direction]); +} +return pos; +}); + +Clazz_newMeth(C$, 'modelToView$I$javax_swing_text_Position_Bias$I$javax_swing_text_Position_Bias$java_awt_Shape', function (p0, b0, p1, b1, a) { +var s0=this.modelToView$I$java_awt_Shape$javax_swing_text_Position_Bias(p0, a, b0); +var s1; +if (p1 == this.getEndOffset$()) { +try { +s1=this.modelToView$I$java_awt_Shape$javax_swing_text_Position_Bias(p1, a, b1); +} catch (ble) { +if (Clazz_exceptionOf(ble,"javax.swing.text.BadLocationException")){ +s1=null; +} else { +throw ble; +} +} +if (s1 == null ) { +var alloc=(Clazz_instanceOf(a, "java.awt.Rectangle")) ? a : a.getBounds$(); +s1=Clazz_new_($I$(3).c$$I$I$I$I,[alloc.x + alloc.width - 1, alloc.y, 1, alloc.height]); +}} else { +s1=this.modelToView$I$java_awt_Shape$javax_swing_text_Position_Bias(p1, a, b1); +}var r0=s0.getBounds$(); +var r1=(Clazz_instanceOf(s1, "java.awt.Rectangle")) ? s1 : s1.getBounds$(); +if (r0.y != r1.y) { +var alloc=(Clazz_instanceOf(a, "java.awt.Rectangle")) ? a : a.getBounds$(); +r0.x=alloc.x; +r0.width=alloc.width; +}r0.add$java_awt_Rectangle(r1); +return r0; +}); + +Clazz_newMeth(C$, 'insertUpdate$javax_swing_event_DocumentEvent$java_awt_Shape$javax_swing_text_ViewFactory', function (e, a, f) { +if (this.getViewCount$() > 0) { +var elem=this.getElement$(); +var ec=e.getChange$javax_swing_text_Element(elem); +if (ec != null ) { +if (!this.updateChildren$javax_swing_event_DocumentEvent_ElementChange$javax_swing_event_DocumentEvent$javax_swing_text_ViewFactory(ec, e, f)) { +ec=null; +}}this.forwardUpdate$javax_swing_event_DocumentEvent_ElementChange$javax_swing_event_DocumentEvent$java_awt_Shape$javax_swing_text_ViewFactory(ec, e, a, f); +this.updateLayout$javax_swing_event_DocumentEvent_ElementChange$javax_swing_event_DocumentEvent$java_awt_Shape(ec, e, a); +}}); + +Clazz_newMeth(C$, 'removeUpdate$javax_swing_event_DocumentEvent$java_awt_Shape$javax_swing_text_ViewFactory', function (e, a, f) { +if (this.getViewCount$() > 0) { +var elem=this.getElement$(); +var ec=e.getChange$javax_swing_text_Element(elem); +if (ec != null ) { +if (!this.updateChildren$javax_swing_event_DocumentEvent_ElementChange$javax_swing_event_DocumentEvent$javax_swing_text_ViewFactory(ec, e, f)) { +ec=null; +}}this.forwardUpdate$javax_swing_event_DocumentEvent_ElementChange$javax_swing_event_DocumentEvent$java_awt_Shape$javax_swing_text_ViewFactory(ec, e, a, f); +this.updateLayout$javax_swing_event_DocumentEvent_ElementChange$javax_swing_event_DocumentEvent$java_awt_Shape(ec, e, a); +}}); + +Clazz_newMeth(C$, 'changedUpdate$javax_swing_event_DocumentEvent$java_awt_Shape$javax_swing_text_ViewFactory', function (e, a, f) { +if (this.getViewCount$() > 0) { +var elem=this.getElement$(); +var ec=e.getChange$javax_swing_text_Element(elem); +if (ec != null ) { +if (!this.updateChildren$javax_swing_event_DocumentEvent_ElementChange$javax_swing_event_DocumentEvent$javax_swing_text_ViewFactory(ec, e, f)) { +ec=null; +}}this.forwardUpdate$javax_swing_event_DocumentEvent_ElementChange$javax_swing_event_DocumentEvent$java_awt_Shape$javax_swing_text_ViewFactory(ec, e, a, f); +this.updateLayout$javax_swing_event_DocumentEvent_ElementChange$javax_swing_event_DocumentEvent$java_awt_Shape(ec, e, a); +}}); + +Clazz_newMeth(C$, 'getDocument$', function () { +return this.elem.getDocument$(); +}); + +Clazz_newMeth(C$, 'getStartOffset$', function () { +return this.elem.getStartOffset$(); +}); + +Clazz_newMeth(C$, 'getEndOffset$', function () { +return this.elem.getEndOffset$(); +}); + +Clazz_newMeth(C$, 'getElement$', function () { +return this.elem; +}); + +Clazz_newMeth(C$, 'getGraphics$', function () { +var c=this.getContainer$(); +return c.getGraphics$(); +}); + +Clazz_newMeth(C$, 'getAttributes$', function () { +return this.elem.getAttributes$(); +}); + +Clazz_newMeth(C$, 'breakView$I$I$F$F', function (axis, offset, pos, len) { +return this; +}); + +Clazz_newMeth(C$, 'createFragment$I$I', function (p0, p1) { +return this; +}); + +Clazz_newMeth(C$, 'getBreakWeight$I$F$F', function (axis, pos, len) { +if (len > this.getPreferredSpan$I(axis) ) { +return 1000; +}return 0; +}); + +Clazz_newMeth(C$, 'getResizeWeight$I', function (axis) { +return 0; +}); + +Clazz_newMeth(C$, 'setSize$F$F', function (width, height) { +}); + +Clazz_newMeth(C$, 'getContainer$', function () { +var v=this.getParent$(); +return (v != null ) ? v.getContainer$() : null; +}); + +Clazz_newMeth(C$, 'getViewFactory$', function () { +var v=this.getParent$(); +return (v != null ) ? v.getViewFactory$() : null; +}); + +Clazz_newMeth(C$, 'getToolTipText$F$F$java_awt_Shape', function (x, y, allocation) { +var viewIndex=this.getViewIndex$F$F$java_awt_Shape(x, y, allocation); +if (viewIndex >= 0) { +allocation=this.getChildAllocation$I$java_awt_Shape(viewIndex, allocation); +var rect=(Clazz_instanceOf(allocation, "java.awt.Rectangle")) ? allocation : allocation.getBounds$(); +if (rect.contains$D$D(x, y)) { +return this.getView$I(viewIndex).getToolTipText$F$F$java_awt_Shape(x, y, allocation); +}}return null; +}); + +Clazz_newMeth(C$, 'getViewIndex$F$F$java_awt_Shape', function (x, y, allocation) { +for (var counter=this.getViewCount$() - 1; counter >= 0; counter--) { +var childAllocation=this.getChildAllocation$I$java_awt_Shape(counter, allocation); +if (childAllocation != null ) { +var rect=(Clazz_instanceOf(childAllocation, "java.awt.Rectangle")) ? childAllocation : childAllocation.getBounds$(); +if (rect.contains$D$D(x, y)) { +return counter; +}}} +return -1; +}); + +Clazz_newMeth(C$, 'updateChildren$javax_swing_event_DocumentEvent_ElementChange$javax_swing_event_DocumentEvent$javax_swing_text_ViewFactory', function (ec, e, f) { +var removedElems=ec.getChildrenRemoved$(); +var addedElems=ec.getChildrenAdded$(); +var added=null; +if (addedElems != null ) { +added=Clazz_array(C$, [addedElems.length]); +for (var i=0; i < addedElems.length; i++) { +added[i]=f.create$(addedElems[i]); +} +}var nremoved=0; +var index=ec.getIndex$(); +if (removedElems != null ) { +nremoved=removedElems.length; +}this.replace$I$I$javax_swing_text_ViewA(index, nremoved, added); +return true; +}); + +Clazz_newMeth(C$, 'forwardUpdate$javax_swing_event_DocumentEvent_ElementChange$javax_swing_event_DocumentEvent$java_awt_Shape$javax_swing_text_ViewFactory', function (ec, e, a, f) { +var pos=e.getOffset$(); +var index0=this.getViewIndex$I$javax_swing_text_Position_Bias(pos, $I$(1).Forward); +if (index0 == -1 && e.getType$() === $I$(4).REMOVE && pos >= this.getEndOffset$() ) { +index0=this.getViewCount$() - 1; +}var index1=index0; +var v=(index0 >= 0) ? this.getView$I(index0) : null; +if (v != null ) { +if ((v.getStartOffset$() == pos) && (pos > 0) ) { +index0=Math.max(index0 - 1, 0); +}}if (e.getType$() !== $I$(4).REMOVE ) { +index1=this.getViewIndex$I$javax_swing_text_Position_Bias(pos + e.getLength$(), $I$(1).Forward); +if (index1 < 0) { +index1=this.getViewCount$() - 1; +}}var hole0=index1 + 1; +var hole1=hole0; +var addedElems=(ec != null ) ? ec.getChildrenAdded$() : null; +if ((addedElems != null ) && (addedElems.length > 0) ) { +hole0=ec.getIndex$(); +hole1=hole0 + addedElems.length - 1; +}index0=Math.max(index0, 0); +for (var i=index0; i <= index1; i++) { +if (!((i >= hole0) && (i <= hole1) )) { +v=this.getView$I(i); +if (v != null ) { +var childAlloc=this.getChildAllocation$I$java_awt_Shape(i, a); +this.forwardUpdateToView$javax_swing_text_View$javax_swing_event_DocumentEvent$java_awt_Shape$javax_swing_text_ViewFactory(v, e, childAlloc, f); +}}} +}); + +Clazz_newMeth(C$, 'forwardUpdateToView$javax_swing_text_View$javax_swing_event_DocumentEvent$java_awt_Shape$javax_swing_text_ViewFactory', function (v, e, a, f) { +var type=e.getType$(); +if (type === $I$(4).INSERT ) { +v.insertUpdate$javax_swing_event_DocumentEvent$java_awt_Shape$javax_swing_text_ViewFactory(e, a, f); +} else if (type === $I$(4).REMOVE ) { +v.removeUpdate$javax_swing_event_DocumentEvent$java_awt_Shape$javax_swing_text_ViewFactory(e, a, f); +} else { +v.changedUpdate$javax_swing_event_DocumentEvent$java_awt_Shape$javax_swing_text_ViewFactory(e, a, f); +}}); + +Clazz_newMeth(C$, 'updateLayout$javax_swing_event_DocumentEvent_ElementChange$javax_swing_event_DocumentEvent$java_awt_Shape', function (ec, e, a) { +if ((ec != null ) && (a != null ) ) { +this.preferenceChanged$javax_swing_text_View$Z$Z(null, true, true); +var host=this.getContainer$(); +if (host != null ) { +host.秘repaint$(); +}}}); + +Clazz_newMeth(C$, 'modelToView$I$java_awt_Shape', function (pos, a) { +return this.modelToView$I$java_awt_Shape$javax_swing_text_Position_Bias(pos, a, $I$(1).Forward); +}); + +Clazz_newMeth(C$, 'viewToModel$F$F$java_awt_Shape', function (x, y, a) { +C$.sharedBiasReturn[0]=$I$(1).Forward; +return this.viewToModel$F$F$java_awt_Shape$javax_swing_text_Position_BiasA(x, y, a, C$.sharedBiasReturn); +}); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:17 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing.tree"),I$=[]; +var C$=Clazz_newInterface(P$, "TreeNode"); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:18 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing"),p$1={},I$=[[0,'javax.swing.LookAndFeel','java.util.Locale','java.util.HashMap','javax.swing.SwingUtilities','Error','swingjs.JSToolkit','javax.swing.event.SwingPropertyChangeSupport','java.beans.PropertyChangeListener','java.util.Vector']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "UIDefaults", function(){ +Clazz_newInstance(this, arguments,0,C$); +}, 'java.util.Hashtable'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.changeSupport=null; +this.resourceBundles=null; +this.defaultLocale=null; +this.resourceCache=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.defaultLocale=$I$(2).getDefault$(); +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.c$$I$F.apply(this, [700, 0.75]); +}, 1); + +Clazz_newMeth(C$, 'c$$I$F', function (initialCapacity, loadFactor) { +C$.superclazz.c$$I$F.apply(this, [initialCapacity, loadFactor]); +C$.$init$.apply(this); +this.resourceCache=Clazz_new_($I$(3)); +}, 1); + +Clazz_newMeth(C$, 'c$$OA', function (keyValueList) { +C$.superclazz.c$$I.apply(this, [(keyValueList.length/2|0)]); +C$.$init$.apply(this); +for (var i=0; i < keyValueList.length; i+=2) { +C$.superclazz.prototype.put$TK$TV.apply(this, [keyValueList[i], keyValueList[i + 1]]); +} +}, 1); + +Clazz_newMeth(C$, 'get$O', function (key) { +var value=p$1.getFromHashtable$O.apply(this, [key]); +return (value != null ) ? value : p$1.getFromResourceBundle$O$java_util_Locale.apply(this, [key, null]); +}); + +Clazz_newMeth(C$, 'getFromHashtable$O', function (key) { +var value=C$.superclazz.prototype.get$O.apply(this, [key]); +if (value == null && (Clazz_instanceOf(key, "java.lang.String")) ) { +var skey=key; +if (skey.endsWith$S(".font") || skey.endsWith$S(".background") || skey.endsWith$S(".foreground") ) value=C$.superclazz.prototype.get$O.apply(this, ["*" + skey.substring$I(skey.lastIndexOf$S("."))]); +}if (!(Clazz_instanceOf(value, "javax.swing.UIDefaults.ActiveValue")) && !(Clazz_instanceOf(value, "javax.swing.UIDefaults.LazyValue")) ) { +return value; +}if (Clazz_instanceOf(value, "javax.swing.UIDefaults.LazyValue")) { +try { +value=(value).createValue$(this); +} finally { +if (value == null ) { +C$.superclazz.prototype.remove$O.apply(this, [key]); +} else { +C$.superclazz.prototype.put$TK$TV.apply(this, [key, value]); +}} +} else { +value=(value).createValue$(this); +}return value; +}, p$1); + +Clazz_newMeth(C$, 'get$O$java_util_Locale', function (key, l) { +var value=p$1.getFromHashtable$O.apply(this, [key]); +return (value != null ) ? value : p$1.getFromResourceBundle$O$java_util_Locale.apply(this, [key, l]); +}); + +Clazz_newMeth(C$, 'getFromResourceBundle$O$java_util_Locale', function (key, l) { +if (this.resourceBundles == null || this.resourceBundles.isEmpty$() || !(Clazz_instanceOf(key, "java.lang.String")) ) { +return null; +}if (l == null ) { +if (this.defaultLocale == null ) return null; + else l=this.defaultLocale; +}{ +return p$1.getResourceCache$java_util_Locale.apply(this, [l]).get$O(key); +}}, p$1); + +Clazz_newMeth(C$, 'getResourceCache$java_util_Locale', function (l) { +return null; +}, p$1); + +Clazz_newMeth(C$, ['put$O$O','put$TK$TV'], function (key, value) { +var oldValue=(value == null ) ? C$.superclazz.prototype.remove$O.apply(this, [key]) : C$.superclazz.prototype.put$TK$TV.apply(this, [key, value]); +if (Clazz_instanceOf(key, "java.lang.String")) { +this.firePropertyChange$S$O$O(key, oldValue, value); +}return oldValue; +}); + +Clazz_newMeth(C$, 'putDefaults$OA', function (keyValueList) { +for (var i=0, max=keyValueList.length; i < max; i+=2) { +var value=keyValueList[i + 1]; +if (value == null ) { +C$.superclazz.prototype.remove$O.apply(this, [keyValueList[i]]); +} else { +C$.superclazz.prototype.put$TK$TV.apply(this, [keyValueList[i], value]); +}} +this.firePropertyChange$S$O$O("UIDefaults", null, null); +}); + +Clazz_newMeth(C$, 'getFont$O', function (key) { +var value=this.get$O(key); +return (Clazz_instanceOf(value, "java.awt.Font")) ? value : null; +}); + +Clazz_newMeth(C$, 'getFont$O$java_util_Locale', function (key, l) { +var value=this.get$O$java_util_Locale(key, l); +return (Clazz_instanceOf(value, "java.awt.Font")) ? value : null; +}); + +Clazz_newMeth(C$, 'getColor$O', function (key) { +var value=this.get$O(key); +return (Clazz_instanceOf(value, "java.awt.Color")) ? value : null; +}); + +Clazz_newMeth(C$, 'getColor$O$java_util_Locale', function (key, l) { +var value=this.get$O$java_util_Locale(key, l); +return (Clazz_instanceOf(value, "java.awt.Color")) ? value : null; +}); + +Clazz_newMeth(C$, 'getIcon$O', function (key) { +var value=this.get$O(key); +return (Clazz_instanceOf(value, "javax.swing.Icon")) ? value : null; +}); + +Clazz_newMeth(C$, 'getIcon$O$java_util_Locale', function (key, l) { +var value=this.get$O$java_util_Locale(key, l); +return (Clazz_instanceOf(value, "javax.swing.Icon")) ? value : null; +}); + +Clazz_newMeth(C$, 'getBorder$O', function (key) { +var value=this.get$O(key); +return (Clazz_instanceOf(value, "javax.swing.border.Border")) ? value : null; +}); + +Clazz_newMeth(C$, 'getBorder$O$java_util_Locale', function (key, l) { +var value=this.get$O$java_util_Locale(key, l); +return (Clazz_instanceOf(value, "javax.swing.border.Border")) ? value : null; +}); + +Clazz_newMeth(C$, 'getString$O', function (key) { +var value=this.get$O(key); +return (Clazz_instanceOf(value, "java.lang.String")) ? value : null; +}); + +Clazz_newMeth(C$, 'getString$O$java_util_Locale', function (key, l) { +var value=this.get$O$java_util_Locale(key, l); +return (Clazz_instanceOf(value, "java.lang.String")) ? value : null; +}); + +Clazz_newMeth(C$, 'getInt$O', function (key) { +var value=this.get$O(key); +return (Clazz_instanceOf(value, "java.lang.Integer")) ? (value).intValue$() : 0; +}); + +Clazz_newMeth(C$, 'getInt$O$java_util_Locale', function (key, l) { +var value=this.get$O$java_util_Locale(key, l); +return (Clazz_instanceOf(value, "java.lang.Integer")) ? (value).intValue$() : 0; +}); + +Clazz_newMeth(C$, 'getBoolean$O', function (key) { +var value=this.get$O(key); +return (Clazz_instanceOf(value, "java.lang.Boolean")) ? (value).booleanValue$() : false; +}); + +Clazz_newMeth(C$, 'getBoolean$O$java_util_Locale', function (key, l) { +var value=this.get$O$java_util_Locale(key, l); +return (Clazz_instanceOf(value, "java.lang.Boolean")) ? (value).booleanValue$() : false; +}); + +Clazz_newMeth(C$, 'getInsets$O', function (key) { +var value=this.get$O(key); +return (Clazz_instanceOf(value, "java.awt.Insets")) ? value : null; +}); + +Clazz_newMeth(C$, 'getInsets$O$java_util_Locale', function (key, l) { +var value=this.get$O$java_util_Locale(key, l); +return (Clazz_instanceOf(value, "java.awt.Insets")) ? value : null; +}); + +Clazz_newMeth(C$, 'getDimension$O', function (key) { +var value=this.get$O(key); +return (Clazz_instanceOf(value, "java.awt.Dimension")) ? value : null; +}); + +Clazz_newMeth(C$, 'getDimension$O$java_util_Locale', function (key, l) { +var value=this.get$O$java_util_Locale(key, l); +return (Clazz_instanceOf(value, "java.awt.Dimension")) ? value : null; +}); + +Clazz_newMeth(C$, 'getUIClass$S$ClassLoader', function (uiClassID, uiClassLoader) { +try { +var className=this.get$O(uiClassID); +if (className != null ) { +var cls=this.get$O(className); +if (cls == null ) { +if (uiClassLoader == null ) { +cls=$I$(4).loadSystemClass$S(className); +} else { +cls=uiClassLoader.loadClass$S(className); +}if (cls != null ) { +this.put$O$O(className, cls); +}}return cls; +}} catch (e$$) { +if (Clazz_exceptionOf(e$$,"ClassNotFoundException")){ +var e = e$$; +{ +return null; +} +} else if (Clazz_exceptionOf(e$$,"ClassCastException")){ +var e = e$$; +{ +return null; +} +} else { +throw e$$; +} +} +return null; +}); + +Clazz_newMeth(C$, 'getUIClass$S', function (uiClassID) { +return this.getUIClass$S$ClassLoader(uiClassID, null); +}); + +Clazz_newMeth(C$, 'getUIError$S', function (msg) { +System.err.println$S("UIDefaults.getUI() failed: " + msg); +try { +throw Clazz_new_($I$(5)); +} catch (e) { +e.printStackTrace$(); +} +}); + +Clazz_newMeth(C$, 'getUI$javax_swing_JComponent', function (target) { +return $I$(6).getComponentUI$javax_swing_JComponent(target); +}); + +Clazz_newMeth(C$, 'addPropertyChangeListener$java_beans_PropertyChangeListener', function (listener) { +if (this.changeSupport == null ) { +this.changeSupport=Clazz_new_($I$(7).c$$O,[this]); +}this.changeSupport.addPropertyChangeListener$java_beans_PropertyChangeListener(listener); +}); + +Clazz_newMeth(C$, 'removePropertyChangeListener$java_beans_PropertyChangeListener', function (listener) { +if (this.changeSupport != null ) { +this.changeSupport.removePropertyChangeListener$java_beans_PropertyChangeListener(listener); +}}); + +Clazz_newMeth(C$, 'getPropertyChangeListeners$', function () { +if (this.changeSupport == null ) { +return Clazz_array($I$(8), [0]); +}return this.changeSupport.getPropertyChangeListeners$(); +}); + +Clazz_newMeth(C$, 'firePropertyChange$S$O$O', function (propertyName, oldValue, newValue) { +if (this.changeSupport != null ) { +this.changeSupport.firePropertyChange$S$O$O(propertyName, oldValue, newValue); +}}); + +Clazz_newMeth(C$, 'addResourceBundle$S', function (bundleName) { +if (bundleName == null ) { +return; +}if (this.resourceBundles == null ) { +this.resourceBundles=Clazz_new_($I$(9).c$$I,[5]); +}if (!this.resourceBundles.contains$O(bundleName)) { +this.resourceBundles.add$TE(bundleName); +this.resourceCache.clear$(); +}}); + +Clazz_newMeth(C$, 'removeResourceBundle$S', function (bundleName) { +if (this.resourceBundles != null ) { +this.resourceBundles.remove$O(bundleName); +}this.resourceCache.clear$(); +}); + +Clazz_newMeth(C$, 'setDefaultLocale$java_util_Locale', function (l) { +this.defaultLocale=l; +}); + +Clazz_newMeth(C$, 'getDefaultLocale$', function () { +return this.defaultLocale; +}); +; +(function(){var C$=Clazz_newInterface(P$.UIDefaults, "LazyValue", function(){ +}); +})() +; +(function(){var C$=Clazz_newInterface(P$.UIDefaults, "ActiveValue", function(){ +}); +})() +; +(function(){var C$=Clazz_newClass(P$.UIDefaults, "LazyInputMap", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, null, [['javax.swing.UIDefaults','javax.swing.UIDefaults.LazyValue']]); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.bindings=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$OA', function (bindings) { +C$.$init$.apply(this); +this.bindings=bindings; +}, 1); + +Clazz_newMeth(C$, ['createValue$javax_swing_UIDefaults','createValue$'], function (table) { +if (this.bindings != null ) { +var km=$I$(1).makeInputMap$OA(this.bindings); +return km; +}return null; +}); + +Clazz_newMeth(C$); +})() +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 13:00:41 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing"),I$=[[0,'java.util.ArrayList',['javax.swing.UIManager','.LookAndFeelInfo'],'swingjs.JSUtil','javax.swing.SwingUtilities','java.util.Locale','java.beans.PropertyChangeListener','swingjs.JSToolkit','javax.swing.FocusManager','java.awt.KeyboardFocusManager','javax.swing.LayoutFocusTraversalPolicy','javax.swing.RepaintManager','sun.awt.PaintEventDispatcher','javax.swing.SwingPaintEventDispatcher']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "UIManager", function(){ +Clazz_newInstance(this, arguments,0,C$); +}); +C$.installedLAFs=null; +C$.laf=null; +C$.uid=null; +C$.focusInitialized=false; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +{ +var iLAFs=Clazz_new_($I$(1).c$$I,[4]); +iLAFs.add$TE(Clazz_new_($I$(2).c$$S$S,["HTML5", "swingjs.plaf.HTML5LookAndFeel"])); +C$.installedLAFs=iLAFs.toArray$TTA(Clazz_array($I$(2), [iLAFs.size$()])); +}; +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'getLookAndFeelDefaults$', function () { +return C$.uid; +}, 1); + +Clazz_newMeth(C$, 'getInstalledLookAndFeels$', function () { +return C$.installedLAFs; +}, 1); + +Clazz_newMeth(C$, 'setInstalledLookAndFeels$javax_swing_UIManager_LookAndFeelInfoA', function (infos) { +$I$(3).notImplemented$S(null); +}, 1); + +Clazz_newMeth(C$, 'installLookAndFeel$javax_swing_UIManager_LookAndFeelInfo', function (info) { +$I$(3).notImplemented$S(null); +}, 1); + +Clazz_newMeth(C$, 'installLookAndFeel$S$S', function (name, className) { +$I$(3).notImplemented$S(null); +}, 1); + +Clazz_newMeth(C$, 'getLookAndFeel$', function () { +return (C$.laf == null ? (C$.laf=$I$(3).getInstance$S("swingjs.plaf.HTML5LookAndFeel")) : C$.laf); +}, 1); + +Clazz_newMeth(C$, 'setLookAndFeel$javax_swing_LookAndFeel', function (newLookAndFeel) { +}, 1); + +Clazz_newMeth(C$, 'setLookAndFeel$S', function (className) { +var lnfClass=$I$(4).loadSystemClass$S(className); +C$.setLookAndFeel$javax_swing_LookAndFeel((lnfClass.newInstance$())); +}, 1); + +Clazz_newMeth(C$, 'getSystemLookAndFeelClassName$', function () { +return C$.getCrossPlatformLookAndFeelClassName$(); +}, 1); + +Clazz_newMeth(C$, 'getCrossPlatformLookAndFeelClassName$', function () { +return "swingjs.plaf.HTML5LookAndFeel"; +}, 1); + +Clazz_newMeth(C$, 'getDefaults$', function () { +C$.maybeInitialize$(); +return C$.uid; +}, 1); + +Clazz_newMeth(C$, 'getFont$O', function (key) { +return C$.getDefaults$().getFont$O(key); +}, 1); + +Clazz_newMeth(C$, 'getFont$O$java_util_Locale', function (key, l) { +return C$.getDefaults$().getFont$O$java_util_Locale(key, l); +}, 1); + +Clazz_newMeth(C$, 'getColor$O', function (key) { +return C$.getDefaults$().getColor$O(key); +}, 1); + +Clazz_newMeth(C$, 'getColor$O$java_util_Locale', function (key, l) { +return C$.getDefaults$().getColor$O$java_util_Locale(key, l); +}, 1); + +Clazz_newMeth(C$, 'getIcon$O', function (key) { +return C$.getDefaults$().getIcon$O(key); +}, 1); + +Clazz_newMeth(C$, 'getIcon$O$java_util_Locale', function (key, l) { +return C$.getDefaults$().getIcon$O$java_util_Locale(key, l); +}, 1); + +Clazz_newMeth(C$, 'getBorder$O', function (key) { +return C$.getDefaults$().getBorder$O(key); +}, 1); + +Clazz_newMeth(C$, 'getBorder$O$java_util_Locale', function (key, l) { +return C$.getDefaults$().getBorder$O$java_util_Locale(key, l); +}, 1); + +Clazz_newMeth(C$, 'getString$O', function (key) { +return C$.getDefaults$().getString$O(key); +}, 1); + +Clazz_newMeth(C$, 'getString$O$java_util_Locale', function (key, l) { +return C$.getDefaults$().getString$O$java_util_Locale(key, l); +}, 1); + +Clazz_newMeth(C$, 'getString$O$java_awt_Component', function (key, c) { +var l=(c == null ) ? $I$(5).getDefault$() : c.getLocale$(); +return C$.getString$O$java_util_Locale(key, l); +}, 1); + +Clazz_newMeth(C$, 'getInt$O', function (key) { +return C$.getDefaults$().getInt$O(key); +}, 1); + +Clazz_newMeth(C$, 'getInt$O$java_util_Locale', function (key, l) { +return C$.getDefaults$().getInt$O$java_util_Locale(key, l); +}, 1); + +Clazz_newMeth(C$, 'getBoolean$O', function (key) { +return C$.getDefaults$().getBoolean$O(key); +}, 1); + +Clazz_newMeth(C$, 'getBoolean$O$java_util_Locale', function (key, l) { +return C$.getDefaults$().getBoolean$O$java_util_Locale(key, l); +}, 1); + +Clazz_newMeth(C$, 'getInsets$O', function (key) { +return C$.getDefaults$().getInsets$O(key); +}, 1); + +Clazz_newMeth(C$, 'getInsets$O$java_util_Locale', function (key, l) { +return C$.getDefaults$().getInsets$O$java_util_Locale(key, l); +}, 1); + +Clazz_newMeth(C$, 'getDimension$O', function (key) { +return C$.getDefaults$().getDimension$O(key); +}, 1); + +Clazz_newMeth(C$, 'getDimension$O$java_util_Locale', function (key, l) { +return C$.getDefaults$().getDimension$O$java_util_Locale(key, l); +}, 1); + +Clazz_newMeth(C$, 'get$O', function (key) { +return C$.getDefaults$().get$O(key); +}, 1); + +Clazz_newMeth(C$, 'get$O$java_util_Locale', function (key, l) { +return C$.getDefaults$().get$O$java_util_Locale(key, l); +}, 1); + +Clazz_newMeth(C$, 'put$O$O', function (key, value) { +return C$.getDefaults$().put$O$O(key, value); +}, 1); + +Clazz_newMeth(C$, 'getUI$java_awt_Component', function (target) { +C$.maybeInitialize$(); +C$.maybeInitializeFocusPolicy$javax_swing_JComponent(target); +var ui=C$.getDefaults$().getUI$javax_swing_JComponent(target); +if (ui == null ) System.out.println$S("SwingJS interface has not been implemented for " + target.getClass$().getName$()); +return ui; +}, 1); + +Clazz_newMeth(C$, 'addPropertyChangeListener$java_beans_PropertyChangeListener', function (listener) { +}, 1); + +Clazz_newMeth(C$, 'removePropertyChangeListener$java_beans_PropertyChangeListener', function (listener) { +}, 1); + +Clazz_newMeth(C$, 'getPropertyChangeListeners$', function () { +return Clazz_array($I$(6), [0]); +}, 1); + +Clazz_newMeth(C$, 'maybeInitialize$', function () { +if (C$.uid == null ) { +C$.uid=$I$(7).getLookAndFeelDefaults$(); +C$.initialize$(); +}}, 1); + +Clazz_newMeth(C$, 'maybeInitializeFocusPolicy$javax_swing_JComponent', function (comp) { +if (Clazz_instanceOf(comp, "javax.swing.JRootPane")) { +if (!C$.focusInitialized) { +C$.focusInitialized=true; +if ($I$(8).isFocusManagerEnabled$()) { +$I$(9).getCurrentKeyboardFocusManager$().setDefaultFocusTraversalPolicy$java_awt_FocusTraversalPolicy(Clazz_new_($I$(10))); +}}}}, 1); + +Clazz_newMeth(C$, 'initialize$', function () { +if ($I$(11).HANDLE_TOP_LEVEL_PAINT) { +$I$(12).setPaintEventDispatcher$sun_awt_PaintEventDispatcher(Clazz_new_($I$(13))); +}}, 1); +; +(function(){var C$=Clazz_newClass(P$.UIManager, "LookAndFeelInfo", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.name=null; +this.className=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$S$S', function (name, className) { +C$.$init$.apply(this); +this.name=name; +this.className=className; +}, 1); + +Clazz_newMeth(C$, 'getName$', function () { +return this.name; +}); + +Clazz_newMeth(C$, 'getClassName$', function () { +return this.className; +}); + +Clazz_newMeth(C$, 'toString', function () { +return this.getClass$().getName$() + "[" + this.getName$() + " " + this.getClassName$() + "]" ; +}); + +Clazz_newMeth(C$); +})() + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:09 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing.undo"),I$=[[0,'javax.swing.UIManager']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "AbstractUndoableEdit", null, null, 'javax.swing.undo.UndoableEdit'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.hasBeenDone=false; +this.alive=false; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.$init$.apply(this); +this.hasBeenDone=true; +this.alive=true; +}, 1); + +Clazz_newMeth(C$, 'die$', function () { +this.alive=false; +}); + +Clazz_newMeth(C$, 'undo$', function () { +if (!this.canUndo$()) { +throw Clazz_new_(Clazz_load('javax.swing.undo.CannotUndoException')); +}this.hasBeenDone=false; +}); + +Clazz_newMeth(C$, 'canUndo$', function () { +return this.alive && this.hasBeenDone ; +}); + +Clazz_newMeth(C$, 'redo$', function () { +if (!this.canRedo$()) { +throw Clazz_new_(Clazz_load('javax.swing.undo.CannotRedoException')); +}this.hasBeenDone=true; +}); + +Clazz_newMeth(C$, 'canRedo$', function () { +return this.alive && !this.hasBeenDone ; +}); + +Clazz_newMeth(C$, 'addEdit$javax_swing_undo_UndoableEdit', function (anEdit) { +return false; +}); + +Clazz_newMeth(C$, 'replaceEdit$javax_swing_undo_UndoableEdit', function (anEdit) { +return false; +}); + +Clazz_newMeth(C$, 'isSignificant$', function () { +return true; +}); + +Clazz_newMeth(C$, 'getPresentationName$', function () { +return ""; +}); + +Clazz_newMeth(C$, 'getUndoPresentationName$', function () { +var name=this.getPresentationName$(); +if (!"".equals$O(name)) { +name=$I$(1).getString$O("AbstractUndoableEdit.undoText") + " " + name ; +} else { +name=$I$(1).getString$O("AbstractUndoableEdit.undoText"); +}return name; +}); + +Clazz_newMeth(C$, 'getRedoPresentationName$', function () { +var name=this.getPresentationName$(); +if (!"".equals$O(name)) { +name=$I$(1).getString$O("AbstractUndoableEdit.redoText") + " " + name ; +} else { +name=$I$(1).getString$O("AbstractUndoableEdit.redoText"); +}return name; +}); + +Clazz_newMeth(C$, 'toString', function () { +return C$.superclazz.prototype.toString.apply(this, []) + " hasBeenDone: " + this.hasBeenDone + " alive: " + this.alive ; +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:18 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing.undo"),I$=[[0,'java.util.Vector']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "CompoundEdit", null, 'javax.swing.undo.AbstractUndoableEdit'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.inProgress=false; +this.edits=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.superclazz.c$.apply(this, []); +C$.$init$.apply(this); +this.inProgress=true; +this.edits=Clazz_new_($I$(1)); +}, 1); + +Clazz_newMeth(C$, 'undo$', function () { +C$.superclazz.prototype.undo$.apply(this, []); +var i=this.edits.size$(); +while (i-- > 0){ +var e=this.edits.elementAt$I(i); +e.undo$(); +} +}); + +Clazz_newMeth(C$, 'redo$', function () { +C$.superclazz.prototype.redo$.apply(this, []); +var cursor=this.edits.elements$(); +while (cursor.hasMoreElements$()){ +(cursor.nextElement$()).redo$(); +} +}); + +Clazz_newMeth(C$, 'lastEdit$', function () { +var count=this.edits.size$(); +if (count > 0) return this.edits.elementAt$I(count - 1); + else return null; +}); + +Clazz_newMeth(C$, 'die$', function () { +var size=this.edits.size$(); +for (var i=size - 1; i >= 0; i--) { +var e=this.edits.elementAt$I(i); +e.die$(); +} +C$.superclazz.prototype.die$.apply(this, []); +}); + +Clazz_newMeth(C$, 'addEdit$javax_swing_undo_UndoableEdit', function (anEdit) { +if (!this.inProgress) { +return false; +} else { +var last=this.lastEdit$(); +if (last == null ) { +this.edits.addElement$TE(anEdit); +} else if (!last.addEdit$javax_swing_undo_UndoableEdit(anEdit)) { +if (anEdit.replaceEdit$javax_swing_undo_UndoableEdit(last)) { +this.edits.removeElementAt$I(this.edits.size$() - 1); +}this.edits.addElement$TE(anEdit); +}return true; +}}); + +Clazz_newMeth(C$, 'end$', function () { +this.inProgress=false; +}); + +Clazz_newMeth(C$, 'canUndo$', function () { +return !this.isInProgress$() && C$.superclazz.prototype.canUndo$.apply(this, []) ; +}); + +Clazz_newMeth(C$, 'canRedo$', function () { +return !this.isInProgress$() && C$.superclazz.prototype.canRedo$.apply(this, []) ; +}); + +Clazz_newMeth(C$, 'isInProgress$', function () { +return this.inProgress; +}); + +Clazz_newMeth(C$, 'isSignificant$', function () { +var cursor=this.edits.elements$(); +while (cursor.hasMoreElements$()){ +if ((cursor.nextElement$()).isSignificant$()) { +return true; +}} +return false; +}); + +Clazz_newMeth(C$, 'getPresentationName$', function () { +var last=this.lastEdit$(); +if (last != null ) { +return last.getPresentationName$(); +} else { +return C$.superclazz.prototype.getPresentationName$.apply(this, []); +}}); + +Clazz_newMeth(C$, 'getUndoPresentationName$', function () { +var last=this.lastEdit$(); +if (last != null ) { +return last.getUndoPresentationName$(); +} else { +return C$.superclazz.prototype.getUndoPresentationName$.apply(this, []); +}}); + +Clazz_newMeth(C$, 'getRedoPresentationName$', function () { +var last=this.lastEdit$(); +if (last != null ) { +return last.getRedoPresentationName$(); +} else { +return C$.superclazz.prototype.getRedoPresentationName$.apply(this, []); +}}); + +Clazz_newMeth(C$, 'toString', function () { +return C$.superclazz.prototype.toString.apply(this, []) + " inProgress: " + this.inProgress + " edits: " + this.edits ; +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:18 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing.undo"),I$=[]; +var C$=Clazz_newInterface(P$, "UndoableEdit"); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:18 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing"),I$=[[0,'java.awt.Dimension']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "ViewportLayout", null, null, 'java.awt.LayoutManager'); +C$.SHARED_INSTANCE=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.SHARED_INSTANCE=Clazz_new_(C$); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'addLayoutComponent$S$java_awt_Component', function (name, c) { +}); + +Clazz_newMeth(C$, 'removeLayoutComponent$java_awt_Component', function (c) { +}); + +Clazz_newMeth(C$, 'preferredLayoutSize$java_awt_Container', function (parent) { +var view=(parent).getView$(); +if (view == null ) { +return Clazz_new_($I$(1).c$$I$I,[0, 0]); +} else if (Clazz_instanceOf(view, "javax.swing.Scrollable")) { +return (view).getPreferredScrollableViewportSize$(); +} else { +return view.getPreferredSize$(); +}}); + +Clazz_newMeth(C$, 'minimumLayoutSize$java_awt_Container', function (parent) { +return Clazz_new_($I$(1).c$$I$I,[4, 4]); +}); + +Clazz_newMeth(C$, 'layoutContainer$java_awt_Container', function (parent) { +var vp=parent; +var view=vp.getView$(); +var scrollableView=null; +if (view == null ) { +return; +} else if (Clazz_instanceOf(view, "javax.swing.Scrollable")) { +scrollableView=view; +}var viewPrefSize=view.getPreferredSize$(); +var vpSize=vp.getSize$(); +var extentSize=vp.toViewCoordinates$java_awt_Dimension(vpSize); +var viewSize=Clazz_new_($I$(1).c$$java_awt_Dimension,[viewPrefSize]); +if (scrollableView != null ) { +if (scrollableView.getScrollableTracksViewportWidth$()) { +viewSize.width=vpSize.width; +}if (scrollableView.getScrollableTracksViewportHeight$()) { +viewSize.height=vpSize.height; +}}var viewPosition=vp.getViewPosition$(); +if (scrollableView == null || vp.getParent$() == null || vp.getParent$().getComponentOrientation$().isLeftToRight$() ) { +if ((viewPosition.x + extentSize.width) > viewSize.width) { +viewPosition.x=Math.max(0, viewSize.width - extentSize.width); +}} else { +if (extentSize.width > viewSize.width) { +viewPosition.x=viewSize.width - extentSize.width; +} else { +viewPosition.x=Math.max(0, Math.min(viewSize.width - extentSize.width, viewPosition.x)); +}}if ((viewPosition.y + extentSize.height) > viewSize.height) { +viewPosition.y=Math.max(0, viewSize.height - extentSize.height); +}if (scrollableView == null ) { +if ((viewPosition.x == 0) && (vpSize.width > viewPrefSize.width) ) { +viewSize.width=vpSize.width; +}if ((viewPosition.y == 0) && (vpSize.height > viewPrefSize.height) ) { +viewSize.height=vpSize.height; +}}vp.setViewPosition$java_awt_Point(viewPosition); +vp.setViewSize$java_awt_Dimension(viewSize); +}); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:09 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("javax.swing"),I$=[]; +var C$=Clazz_newInterface(P$, "WindowConstants"); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:09 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("sun.awt"),I$=[[0,'StringBuffer','java.util.Collections','java.util.IdentityHashMap','java.util.HashMap','java.util.HashSet','Thread','sun.awt.SunToolkit','sun.awt.MostRecentThreadAppContext','sun.awt.MostRecentKeyValue','java.beans.PropertyChangeListener','java.beans.PropertyChangeSupport']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "AppContext"); +C$.EVENT_QUEUE_KEY=null; +C$.threadGroup2appContext=null; +C$.numAppContexts=0; +C$.mostRecentThreadAppContext=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.EVENT_QUEUE_KEY=Clazz_new_($I$(1).c$$S,["EventQueue"]); +C$.threadGroup2appContext=$I$(2).synchronizedMap$java_util_Map(Clazz_new_($I$(3))); +C$.numAppContexts=0; +C$.mostRecentThreadAppContext=null; +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.table=null; +this.threadGroup=null; +this.changeSupport=null; +this.isDisposed=false; +this.contextClassLoader=null; +this.mostRecentKeyValue=null; +this.shadowMostRecentKeyValue=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.table=Clazz_new_($I$(4)); +this.changeSupport=null; +this.isDisposed=false; +this.mostRecentKeyValue=null; +this.shadowMostRecentKeyValue=null; +}, 1); + +Clazz_newMeth(C$, 'getAppContexts$', function () { +return Clazz_new_($I$(5).c$$java_util_Collection,[C$.threadGroup2appContext.values$()]); +}, 1); + +Clazz_newMeth(C$, 'isDisposed$', function () { +return this.isDisposed; +}); + +Clazz_newMeth(C$, 'c$$ThreadGroup', function (threadGroup) { +C$.$init$.apply(this); +C$.numAppContexts++; +this.threadGroup=threadGroup; +C$.threadGroup2appContext.put$TK$TV(threadGroup, this); +this.contextClassLoader=this ||null; +}, 1); + +Clazz_newMeth(C$, 'getAppContext$', function () { +var currentThread=$I$(6).currentThread$(); +var appContext=null; +var recent=C$.mostRecentThreadAppContext; +if ((recent != null ) && (recent.thread === currentThread ) ) { +appContext=recent.appContext; +} else { +var currentThreadGroup=currentThread.getThreadGroup$(); +var threadGroup=currentThreadGroup; +appContext=C$.threadGroup2appContext.get$O(threadGroup); +while (appContext == null ){ +threadGroup=threadGroup.getParent$(); +if (threadGroup == null ) { +appContext=$I$(7).createNewAppContext$(); +break; +}appContext=C$.threadGroup2appContext.get$O(threadGroup); +} +for (var tg=currentThreadGroup; tg !== threadGroup ; tg=tg.getParent$()) { +C$.threadGroup2appContext.put$TK$TV(tg, appContext); +} +C$.mostRecentThreadAppContext=Clazz_new_($I$(8).c$$Thread$sun_awt_AppContext,[currentThread, appContext]); +}return appContext; +}, 1); + +Clazz_newMeth(C$, 'isMainContext$sun_awt_AppContext', function (ctx) { +return false; +}, 1); + +Clazz_newMeth(C$, 'dispose$', function () { +}); + +Clazz_newMeth(C$, 'get$O', function (key) { +{ +var recent=this.mostRecentKeyValue; +if ((recent != null ) && (recent.key === key ) ) { +return recent.value; +}var value=this.table.get$O(key); +if (this.mostRecentKeyValue == null ) { +this.mostRecentKeyValue=Clazz_new_($I$(9).c$$O$O,[key, value]); +this.shadowMostRecentKeyValue=Clazz_new_($I$(9).c$$O$O,[key, value]); +} else { +var auxKeyValue=this.mostRecentKeyValue; +this.shadowMostRecentKeyValue.setPair$O$O(key, value); +this.mostRecentKeyValue=this.shadowMostRecentKeyValue; +this.shadowMostRecentKeyValue=auxKeyValue; +}return value; +}}); + +Clazz_newMeth(C$, 'put$O$O', function (key, value) { +{ +var recent=this.mostRecentKeyValue; +if ((recent != null ) && (recent.key === key ) ) recent.value=value; +return this.table.put$TK$TV(key, value); +}}); + +Clazz_newMeth(C$, 'remove$O', function (key) { +{ +var recent=this.mostRecentKeyValue; +if ((recent != null ) && (recent.key === key ) ) recent.value=null; +return this.table.remove$O(key); +}}); + +Clazz_newMeth(C$, 'getThreadGroup$', function () { +return this.threadGroup; +}); + +Clazz_newMeth(C$, 'getContextClassLoader$', function () { +return this.contextClassLoader; +}); + +Clazz_newMeth(C$, 'toString', function () { +return this.getClass$().getName$() + "[threadGroup=" + this.threadGroup.getName$() + "]" ; +}); + +Clazz_newMeth(C$, 'getPropertyChangeListeners$', function () { +if (this.changeSupport == null ) { +return Clazz_array($I$(10), [0]); +}return this.changeSupport.getPropertyChangeListeners$(); +}); + +Clazz_newMeth(C$, 'addPropertyChangeListener$S$java_beans_PropertyChangeListener', function (propertyName, listener) { +if (listener == null ) { +return; +}if (this.changeSupport == null ) { +this.changeSupport=Clazz_new_($I$(11).c$$O,[this]); +}this.changeSupport.addPropertyChangeListener$S$java_beans_PropertyChangeListener(propertyName, listener); +}); + +Clazz_newMeth(C$, 'removePropertyChangeListener$S$java_beans_PropertyChangeListener', function (propertyName, listener) { +if (listener == null || this.changeSupport == null ) { +return; +}this.changeSupport.removePropertyChangeListener$S$java_beans_PropertyChangeListener(propertyName, listener); +}); + +Clazz_newMeth(C$, 'getPropertyChangeListeners$S', function (propertyName) { +if (this.changeSupport == null ) { +return Clazz_array($I$(10), [0]); +}return this.changeSupport.getPropertyChangeListeners$S(propertyName); +}); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:25 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("sun.awt"),I$=[]; +var C$=Clazz_newClass(P$, "AWTAccessor", function(){ +Clazz_newInstance(this, arguments,0,C$); +}); +C$.componentAccessor=null; +C$.kfmAccessor=null; +C$.windowAccessor=null; +C$.awtEventAccessor=null; +C$.eventQueueAccessor=null; +C$.defaultKeyboardFocusManagerAccessor=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'setDefaultKeyboardFocusManagerAccessor$sun_awt_AWTAccessor_DefaultKeyboardFocusManagerAccessor', function (dkfma) { +C$.defaultKeyboardFocusManagerAccessor=dkfma; +}, 1); + +Clazz_newMeth(C$, 'setKeyboardFocusManagerAccessor$sun_awt_AWTAccessor_KeyboardFocusManagerAccessor', function (kfma) { +C$.kfmAccessor=kfma; +}, 1); + +Clazz_newMeth(C$, 'getKeyboardFocusManagerAccessor$', function () { +return C$.kfmAccessor; +}, 1); + +Clazz_newMeth(C$, 'setWindowAccessor$sun_awt_AWTAccessor_WindowAccessor', function (wa) { +C$.windowAccessor=wa; +}, 1); + +Clazz_newMeth(C$, 'getWindowAccessor$', function () { +return C$.windowAccessor; +}, 1); + +Clazz_newMeth(C$, 'setComponentAccessor$sun_awt_AWTAccessor_ComponentAccessor', function (ca) { +C$.componentAccessor=ca; +}, 1); + +Clazz_newMeth(C$, 'getComponentAccessor$', function () { +return C$.componentAccessor; +}, 1); + +Clazz_newMeth(C$, 'setAWTEventAccessor$sun_awt_AWTAccessor_AWTEventAccessor', function (aea) { +C$.awtEventAccessor=aea; +}, 1); + +Clazz_newMeth(C$, 'getAWTEventAccessor$', function () { +return C$.awtEventAccessor; +}, 1); + +Clazz_newMeth(C$, 'setEventQueueAccessor$sun_awt_AWTAccessor_EventQueueAccessor', function (eqa) { +C$.eventQueueAccessor=eqa; +}, 1); + +Clazz_newMeth(C$, 'getEventQueueAccessor$', function () { +return C$.eventQueueAccessor; +}, 1); +; +(function(){var C$=Clazz_newInterface(P$.AWTAccessor, "WindowAccessor", function(){ +}); +})() +; +(function(){var C$=Clazz_newInterface(P$.AWTAccessor, "ComponentAccessor", function(){ +}); +})() +; +(function(){var C$=Clazz_newInterface(P$.AWTAccessor, "KeyboardFocusManagerAccessor", function(){ +}); +})() +; +(function(){var C$=Clazz_newInterface(P$.AWTAccessor, "AWTEventAccessor", function(){ +}); +})() +; +(function(){var C$=Clazz_newInterface(P$.AWTAccessor, "EventQueueAccessor", function(){ +}); +})() +; +(function(){var C$=Clazz_newInterface(P$.AWTAccessor, "CursorAccessor", function(){ +}); +})() +; +(function(){var C$=Clazz_newInterface(P$.AWTAccessor, "ClientPropertyKeyAccessor", function(){ +}); +})() +; +(function(){var C$=Clazz_newInterface(P$.AWTAccessor, "DefaultKeyboardFocusManagerAccessor", function(){ +}); +})() +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-06-27 10:17:53 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("sun.awt"),p$1={},I$=[[0,'java.util.HashSet','java.util.IdentityHashMap','java.awt.AWTEvent']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "AWTAutoShutdown", null, null, 'Runnable'); +C$.theInstance=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.busyThreadSet=null; +this.toolkitThreadBusy=false; +this.peerMap=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.busyThreadSet=Clazz_new_($I$(1).c$$I,[7]); +this.toolkitThreadBusy=false; +this.peerMap=Clazz_new_($I$(2)); +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'getInstance$', function () { +return (C$.theInstance == null ? (C$.theInstance=Clazz_new_(C$)) : C$.theInstance); +}, 1); + +Clazz_newMeth(C$, 'notifyToolkitThreadBusy$', function () { +p$1.setToolkitBusy$Z.apply(C$.getInstance$(), [true]); +}, 1); + +Clazz_newMeth(C$, 'notifyToolkitThreadFree$', function () { +p$1.setToolkitBusy$Z.apply(C$.getInstance$(), [false]); +}, 1); + +Clazz_newMeth(C$, 'notifyThreadBusy$Thread', function (thread) { +this.busyThreadSet.add$TE(thread); +}); + +Clazz_newMeth(C$, 'notifyThreadFree$Thread', function (thread) { +this.busyThreadSet.remove$O(thread); +}); + +Clazz_newMeth(C$, 'notifyPeerMapUpdated$', function () { +if (!p$1.isReadyToShutdown.apply(this, [])) { +p$1.activateBlockerThread.apply(this, []); +}}); + +Clazz_newMeth(C$, 'isReadyToShutdown', function () { +return (!this.toolkitThreadBusy && this.peerMap.isEmpty$() && this.busyThreadSet.isEmpty$() ); +}, p$1); + +Clazz_newMeth(C$, 'setToolkitBusy$Z', function (busy) { +if (busy != this.toolkitThreadBusy ) { +if (busy != this.toolkitThreadBusy ) { +if (busy) { +this.toolkitThreadBusy=busy; +} else { +this.toolkitThreadBusy=busy; +}}}}, p$1); + +Clazz_newMeth(C$, 'run$', function () { +}); + +Clazz_newMeth(C$, 'getShutdownEvent$', function () { +return ((P$.AWTAutoShutdown$1|| +(function(){var C$=Clazz_newClass(P$, "AWTAutoShutdown$1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, Clazz_load('java.awt.AWTEvent'), null, 1); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); +})() +), Clazz_new_($I$(3).c$$O$I, [this, null, C$.getInstance$(), 0],P$.AWTAutoShutdown$1)); +}, 1); + +Clazz_newMeth(C$, 'activateBlockerThread', function () { +}, p$1); + +Clazz_newMeth(C$, 'registerPeer$O$O', function (target, peer) { +this.peerMap.put$TK$TV(target, peer); +this.notifyPeerMapUpdated$(); +}); + +Clazz_newMeth(C$, 'unregisterPeer$O$O', function (target, peer) { +if (this.peerMap.get$O(target) === peer ) { +this.peerMap.remove$O(target); +}}); + +Clazz_newMeth(C$, 'getPeer$O', function (target) { +return this.peerMap.get$O(target); +}); + +Clazz_newMeth(C$, 'dumpPeers$java_util_logging_Logger', function (aLog) { +aLog.fine$S("Mapped peers:"); +for (var key, $key = this.peerMap.keySet$().iterator$(); $key.hasNext$()&&((key=($key.next$())),1);) { +aLog.fine$S(key + "->" + this.peerMap.get$O(key) ); +} +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:25 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("sun.awt"),I$=[[0,['sun.awt.CausedFocusEvent','.Cause']]],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "CausedFocusEvent", function(){ +Clazz_newInstance(this, arguments,0,C$); +}, 'java.awt.event.FocusEvent'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.cause=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'getCause$', function () { +return this.cause; +}); + +Clazz_newMeth(C$, 'toString', function () { +return "java.awt.FocusEvent[" + C$.superclazz.prototype.paramString$.apply(this, []) + ",cause=" + this.cause + "] on " + this.getSource$() ; +}); + +Clazz_newMeth(C$, 'c$$java_awt_Component$I$Z$java_awt_Component$sun_awt_CausedFocusEvent_Cause', function (source, id, temporary, opposite, cause) { +C$.superclazz.c$$java_awt_Component$I$Z$java_awt_Component.apply(this, [source, id, temporary, opposite]); +C$.$init$.apply(this); +if (cause == null ) { +cause=$I$(1).UNKNOWN; +}this.cause=cause; +}, 1); + +Clazz_newMeth(C$, 'retarget$java_awt_event_FocusEvent$java_awt_Component', function (e, newSource) { +if (e == null ) return null; +return Clazz_new_(C$.c$$java_awt_Component$I$Z$java_awt_Component$sun_awt_CausedFocusEvent_Cause,[newSource, e.getID$(), e.isTemporary$(), e.getOppositeComponent$(), (Clazz_instanceOf(e, "sun.awt.CausedFocusEvent")) ? (e).getCause$() : $I$(1).RETARGETED]); +}, 1); +; +(function(){var C$=Clazz_newClass(P$.CausedFocusEvent, "Cause", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'Enum'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +$vals=Clazz_array(C$,[0]); +Clazz_newEnumConst($vals, C$.c$, "UNKNOWN", 0, []); +Clazz_newEnumConst($vals, C$.c$, "MOUSE_EVENT", 1, []); +Clazz_newEnumConst($vals, C$.c$, "TRAVERSAL", 2, []); +Clazz_newEnumConst($vals, C$.c$, "TRAVERSAL_UP", 3, []); +Clazz_newEnumConst($vals, C$.c$, "TRAVERSAL_DOWN", 4, []); +Clazz_newEnumConst($vals, C$.c$, "TRAVERSAL_FORWARD", 5, []); +Clazz_newEnumConst($vals, C$.c$, "TRAVERSAL_BACKWARD", 6, []); +Clazz_newEnumConst($vals, C$.c$, "MANUAL_REQUEST", 7, []); +Clazz_newEnumConst($vals, C$.c$, "AUTOMATIC_TRAVERSE", 8, []); +Clazz_newEnumConst($vals, C$.c$, "ROLLBACK", 9, []); +Clazz_newEnumConst($vals, C$.c$, "NATIVE_SYSTEM", 10, []); +Clazz_newEnumConst($vals, C$.c$, "ACTIVATION", 11, []); +Clazz_newEnumConst($vals, C$.c$, "CLEAR_GLOBAL_FOCUS_OWNER", 12, []); +Clazz_newEnumConst($vals, C$.c$, "RETARGETED", 13, []); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$); +var $vals=[]; +Clazz_newMeth(C$, 'values$', function() { return $vals }, 1); +Clazz_newMeth(C$, 'valueOf$S', function(name) { for (var val in $vals){ if ($vals[val].name == name) return $vals[val]} return null }, 1); +})() + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:25 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("sun.awt"),I$=[]; +var C$=Clazz_newInterface(P$, "ComponentFactory"); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:25 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("sun.awt"),I$=[]; +var C$=Clazz_newInterface(P$, "KeyboardFocusManagerPeerProvider"); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:25 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("sun.awt"),I$=[]; +var C$=Clazz_newClass(P$, "MostRecentKeyValue"); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.key=null; +this.value=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$O$O', function (k, v) { +C$.$init$.apply(this); +this.key=k; +this.value=v; +}, 1); + +Clazz_newMeth(C$, 'setPair$O$O', function (k, v) { +this.key=k; +this.value=v; +}); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:25 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("sun.awt"),I$=[]; +var C$=Clazz_newClass(P$, "MostRecentThreadAppContext"); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.thread=null; +this.appContext=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$Thread$sun_awt_AppContext', function (key, value) { +C$.$init$.apply(this); +this.thread=key; +this.appContext=value; +}, 1); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:25 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("sun.awt"),I$=[[0,'java.awt.event.PaintEvent','java.awt.Rectangle']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "PaintEventDispatcher"); +C$.dispatcher=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'setPaintEventDispatcher$sun_awt_PaintEventDispatcher', function (dispatcher) { +{ +C$.dispatcher=dispatcher; +}}, 1); + +Clazz_newMeth(C$, 'getPaintEventDispatcher$', function () { +{ +if (C$.dispatcher == null ) { +C$.dispatcher=Clazz_new_(C$); +}return C$.dispatcher; +}}, 1); + +Clazz_newMeth(C$, 'createPaintEvent$java_awt_Component$I$I$I$I', function (target, x, y, w, h) { +return Clazz_new_($I$(1).c$$java_awt_Component$I$java_awt_Rectangle,[target, 800, Clazz_new_($I$(2).c$$I$I$I$I,[x, y, w, h])]); +}); + +Clazz_newMeth(C$, 'shouldDoNativeBackgroundErase$java_awt_Component', function (c) { +return true; +}); + +Clazz_newMeth(C$, 'queueSurfaceDataReplacing$java_awt_Component$Runnable', function (c, r) { +return false; +}); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:25 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("sun.awt"),I$=[[0,'sun.awt.EventQueueItem','sun.awt.SunToolkit']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "PostEventQueue"); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.queueHead=null; +this.queueTail=null; +this.eventQueue=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.queueHead=null; +this.queueTail=null; +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_EventQueue', function (eq) { +C$.$init$.apply(this); +this.eventQueue=eq; +}, 1); + +Clazz_newMeth(C$, 'noEvents$', function () { +return this.queueHead == null ; +}); + +Clazz_newMeth(C$, 'flush$', function () { +if (this.queueHead != null ) { +var tempQueue; +{ +tempQueue=this.queueHead; +this.queueHead=this.queueTail=null; +while (tempQueue != null ){ +this.eventQueue.postEvent$java_awt_AWTEvent(tempQueue.event); +tempQueue=tempQueue.next; +} +}}}); + +Clazz_newMeth(C$, 'postEvent$java_awt_AWTEvent', function (event) { +var item=Clazz_new_($I$(1).c$$java_awt_AWTEvent,[event]); +{ +if (this.queueHead == null ) { +this.queueHead=this.queueTail=item; +} else { +this.queueTail.next=item; +this.queueTail=item; +}}$I$(2).wakeupEventQueue$java_awt_EventQueue$Z(this.eventQueue, false); +}); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:25 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("sun.awt"),I$=[]; +var C$=Clazz_newInterface(P$, "RequestFocusController"); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:25 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("sun.awt"),I$=[[0,'java.util.HashMap','java.awt.EventQueue','sun.awt.AppContext','sun.awt.PostEventQueue','Thread','sun.awt.AWTAutoShutdown','sun.awt.PeerEvent','java.awt.Toolkit','java.awt.Dimension','sun.font.FontDesignMetrics','java.util.Locale']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "SunToolkit", null, 'java.awt.Toolkit', ['sun.awt.WindowClosingSupport', 'sun.awt.WindowClosingListener', 'sun.awt.ComponentFactory']); +C$.appContextMap=null; +C$.imgCache=null; +C$.startupLocale=null; +C$.dataTransfererClassName=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.appContextMap=Clazz_new_($I$(1)); +C$.imgCache=Clazz_new_($I$(1)); +C$.startupLocale=null; +C$.dataTransfererClassName=null; +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.windowClosingListener=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.windowClosingListener=null; +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +Clazz_super_(C$, this,1); +var eventQueue; +eventQueue=Clazz_new_($I$(2)); +var appContext=$I$(3).getAppContext$(); +if (appContext != null ) { +appContext.put$O$O($I$(3).EVENT_QUEUE_KEY, eventQueue); +var postEventQueue=Clazz_new_($I$(4).c$$java_awt_EventQueue,[eventQueue]); +appContext.put$O$O("PostEventQueue", postEventQueue); +}}, 1); + +Clazz_newMeth(C$, 'useBufferPerWindow$', function () { +return false; +}); + +Clazz_newMeth(C$, 'createNewAppContext$', function () { +var threadGroup=$I$(5).currentThread$().getThreadGroup$(); +return C$.createNewAppContext$ThreadGroup(threadGroup); +}, 1); + +Clazz_newMeth(C$, 'createNewAppContext$ThreadGroup', function (threadGroup) { +var eventQueue; +var eqName=System.getProperty$S$S("AWT.EventQueueClass", "java.awt.EventQueue"); +try { +eventQueue=Clazz_forName(eqName).newInstance$(); +} catch (e) { +if (Clazz_exceptionOf(e,"Exception")){ +System.err.println$S("Failed loading " + eqName + ": " + e ); +eventQueue=Clazz_new_($I$(2)); +} else { +throw e; +} +} +var appContext=Clazz_new_($I$(3).c$$ThreadGroup,[threadGroup]); +appContext.put$O$O($I$(3).EVENT_QUEUE_KEY, eventQueue); +var postEventQueue=Clazz_new_($I$(4).c$$java_awt_EventQueue,[eventQueue]); +appContext.put$O$O("PostEventQueue", postEventQueue); +return appContext; +}, 1); + +Clazz_newMeth(C$, 'wakeupEventQueue$java_awt_EventQueue$Z', function (q, isShutdown) { +q.wakeup$Z(isShutdown); +}, 1); + +Clazz_newMeth(C$, 'targetToPeer$O', function (target) { +if (target != null ) { +return $I$(6).getInstance$().getPeer$O(target); +}return null; +}, 1); + +Clazz_newMeth(C$, 'targetCreatedPeer$O$O', function (target, peer) { +if (target != null && peer != null ) { +$I$(6).getInstance$().registerPeer$O$O(target, peer); +}}, 1); + +Clazz_newMeth(C$, 'targetDisposedPeer$O$O', function (target, peer) { +if (target != null && peer != null ) { +$I$(6).getInstance$().unregisterPeer$O$O(target, peer); +}}, 1); + +Clazz_newMeth(C$, 'setAppContext$O$sun_awt_AppContext', function (target, context) { +return false; +}, 1); + +Clazz_newMeth(C$, 'getAppContext$O', function (target) { +if (Clazz_instanceOf(target, "java.awt.Component")) { +{ +return target.appContext; +} +} else { +return null; +}}, 1); + +Clazz_newMeth(C$, 'targetToAppContext$O', function (target) { +if (target == null ) { +return null; +}var context=C$.getAppContext$O(target); +if (context == null ) { +context=C$.appContextMap.get$O(target); +}return context; +}, 1); + +Clazz_newMeth(C$, 'setLWRequestStatus$java_awt_Window$Z', function (changed, status) { +changed.setLWRequestStatus$Z(status); +}, 1); + +Clazz_newMeth(C$, 'checkAndSetPolicy$java_awt_Container$Z', function (cont, isSwingCont) { +}, 1); + +Clazz_newMeth(C$, 'insertTargetMapping$O$sun_awt_AppContext', function (target, appContext) { +if (!C$.setAppContext$O$sun_awt_AppContext(target, appContext)) { +C$.appContextMap.put$TK$TV(target, appContext); +}}, 1); + +Clazz_newMeth(C$, 'postEvent$sun_awt_AppContext$java_awt_AWTEvent', function (appContext, event) { +if (event == null ) { +throw Clazz_new_(Clazz_load('NullPointerException')); +}var postEventQueue=appContext.get$O("PostEventQueue"); +if (postEventQueue != null ) { +postEventQueue.postEvent$java_awt_AWTEvent(event); +}}, 1); + +Clazz_newMeth(C$, 'postPriorityEvent$java_awt_AWTEvent', function (e) { +var pe=Clazz_new_($I$(7).c$$O$Runnable$J,[$I$(8).getDefaultToolkit$(), ((P$.SunToolkit$1|| +(function(){var C$=Clazz_newClass(P$, "SunToolkit$1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'Runnable', 1); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'run$', function () { +this.$finals$.e.setPosted$(); +(this.$finals$.e.getSource$()).dispatchEvent$java_awt_AWTEvent(this.$finals$.e); +}); +})() +), Clazz_new_(P$.SunToolkit$1.$init$, [this, {e: e}])), 2]); +C$.postEvent$sun_awt_AppContext$java_awt_AWTEvent(C$.targetToAppContext$O(e.getSource$()), pe); +}, 1); + +Clazz_newMeth(C$, 'flushPendingEvents$', function () { +var appContext=$I$(3).getAppContext$(); +var postEventQueue=appContext.get$O("PostEventQueue"); +if (postEventQueue != null ) { +postEventQueue.flush$(); +}}, 1); + +Clazz_newMeth(C$, 'isPostEventQueueEmpty$', function () { +var appContext=$I$(3).getAppContext$(); +var postEventQueue=appContext.get$O("PostEventQueue"); +return (postEventQueue == null || postEventQueue.noEvents$() ); +}, 1); + +Clazz_newMeth(C$, 'executeOnEventHandlerThread$O$Runnable', function (target, runnable) { +C$.executeOnEventHandlerThread$sun_awt_PeerEvent(Clazz_new_($I$(7).c$$O$Runnable$J,[target, runnable, 1])); +}, 1); + +Clazz_newMeth(C$, 'executeOnEventHandlerThread$O$Runnable$J', function (target, runnable, when) { +C$.executeOnEventHandlerThread$sun_awt_PeerEvent(((P$.SunToolkit$2|| +(function(){var C$=Clazz_newClass(P$, "SunToolkit$2", function(){Clazz_newInstance(this, arguments[0],1,C$);}, Clazz_load('sun.awt.PeerEvent'), null, 1); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'getWhen$', function () { +return this.$finals$.when; +}); +})() +), Clazz_new_($I$(7).c$$O$Runnable$J, [this, {when: when}, target, runnable, 1],P$.SunToolkit$2))); +}, 1); + +Clazz_newMeth(C$, 'executeOnEventHandlerThread$sun_awt_PeerEvent', function (peerEvent) { +C$.postEvent$sun_awt_AppContext$java_awt_AWTEvent(C$.targetToAppContext$O(peerEvent.getSource$()), peerEvent); +}, 1); + +Clazz_newMeth(C$, 'invokeLaterOnAppContext$sun_awt_AppContext$Runnable', function (appContext, dispatcher) { +C$.postEvent$sun_awt_AppContext$java_awt_AWTEvent(appContext, Clazz_new_($I$(7).c$$O$Runnable$J,[$I$(8).getDefaultToolkit$(), dispatcher, 1])); +}, 1); + +Clazz_newMeth(C$, 'isDispatchThreadForAppContext$O', function (target) { +var appContext=C$.targetToAppContext$O(target); +var eq=appContext.get$O($I$(3).EVENT_QUEUE_KEY); +return eq.isDispatchThread$(); +}, 1); + +Clazz_newMeth(C$, 'getScreenSize$', function () { +return Clazz_new_($I$(9).c$$I$I,[this.getScreenWidth$(), this.getScreenHeight$()]); +}); + +Clazz_newMeth(C$, 'getFontMetrics$java_awt_Font', function (font) { +return $I$(10).getMetrics$java_awt_Font(font); +}); + +Clazz_newMeth(C$, 'getFontList$', function () { +var hardwiredFontList=Clazz_array(String, -1, ["Dialog", "SansSerif", "Serif", "Monospaced", "DialogInput"]); +return hardwiredFontList; +}); + +Clazz_newMeth(C$, 'createPanel$java_awt_Panel', function (target) { +return this.createComponent$java_awt_Component(target); +}); + +Clazz_newMeth(C$, 'disableBackgroundErase$java_awt_Component', function (component) { +component.setBackgroundEraseDisabled$Z(true); +}); + +Clazz_newMeth(C$, 'getSunAwtNoerasebackground$', function () { +return false; +}, 1); + +Clazz_newMeth(C$, 'getSunAwtErasebackgroundonresize$', function () { +return true; +}, 1); + +Clazz_newMeth(C$, 'setOverrideRedirect$java_awt_Window', function (target) { +}); + +Clazz_newMeth(C$, 'getImageFromHash$java_awt_Toolkit$java_net_URL', function (tk, url) { +var img=C$.imgCache.get$O(url); +if (img == null ) { +try { +img=tk.createImage$java_net_URL(url); +C$.imgCache.put$TK$TV(url, img); +} catch (e) { +if (Clazz_exceptionOf(e,"Exception")){ +} else { +throw e; +} +} +}return img; +}, 1); + +Clazz_newMeth(C$, 'getImageFromHash$java_awt_Toolkit$S', function (tk, filename) { +var img=C$.imgCache.get$O(filename); +if (img == null ) { +try { +tk.createImage$S(filename); +C$.imgCache.put$TK$TV(filename, img); +} catch (e) { +if (Clazz_exceptionOf(e,"Exception")){ +} else { +throw e; +} +} +}return img; +}, 1); + +Clazz_newMeth(C$, 'getImage$S', function (filename) { +return C$.getImageFromHash$java_awt_Toolkit$S(this, filename); +}); + +Clazz_newMeth(C$, 'getImage$java_net_URL', function (url) { +return C$.getImageFromHash$java_awt_Toolkit$java_net_URL(this, url); +}); + +Clazz_newMeth(C$, 'checkImage$java_awt_Image$I$I$java_awt_image_ImageObserver', function (img, w, h, o) { +return 0; +}); + +Clazz_newMeth(C$, 'prepareImage$java_awt_Image$I$I$java_awt_image_ImageObserver', function (img, w, h, o) { +if (w == 0 || h == 0 ) { +return true; +}return true; +}); + +Clazz_newMeth(C$, 'getSystemEventQueueImpl$', function () { +return C$.getSystemEventQueueImplPP$sun_awt_AppContext($I$(3).getAppContext$()); +}); + +Clazz_newMeth(C$, 'getSystemEventQueueImplPPS$', function () { +return C$.getSystemEventQueueImplPP$sun_awt_AppContext($I$(3).getAppContext$()); +}, 1); + +Clazz_newMeth(C$, 'getSystemEventQueueImplPP$sun_awt_AppContext', function (appContext) { +var theEventQueue=appContext.get$O($I$(3).EVENT_QUEUE_KEY); +return theEventQueue; +}, 1); + +Clazz_newMeth(C$, 'getNativeContainer$java_awt_Component', function (c) { +return $I$(8).getNativeContainer$java_awt_Component(c); +}, 1); + +Clazz_newMeth(C$, 'getFocusAcceleratorKeyMask$', function () { +return 8; +}); + +Clazz_newMeth(C$, 'enableInputMethodsForTextComponent$', function () { +return false; +}); + +Clazz_newMeth(C$, 'getStartupLocale$', function () { +if (C$.startupLocale == null ) { +C$.startupLocale=$I$(11).US; + + +}return C$.startupLocale; +}, 1); + +Clazz_newMeth(C$, 'getDefaultKeyboardLocale$', function () { +return C$.getStartupLocale$(); +}); + +Clazz_newMeth(C$, 'setDataTransfererClassName$S', function (className) { +C$.dataTransfererClassName=className; +}, 1); + +Clazz_newMeth(C$, 'getDataTransfererClassName$', function () { +if (C$.dataTransfererClassName == null ) { +$I$(8).getDefaultToolkit$(); +}return C$.dataTransfererClassName; +}, 1); + +Clazz_newMeth(C$, 'getWindowClosingListener$', function () { +return this.windowClosingListener; +}); + +Clazz_newMeth(C$, 'setWindowClosingListener$sun_awt_WindowClosingListener', function (wcl) { +this.windowClosingListener=wcl; +}); + +Clazz_newMeth(C$, 'windowClosingNotify$java_awt_event_WindowEvent', function (event) { +if (this.windowClosingListener != null ) { +return this.windowClosingListener.windowClosingNotify$java_awt_event_WindowEvent(event); +} else { +return null; +}}); + +Clazz_newMeth(C$, 'windowClosingDelivered$java_awt_event_WindowEvent', function (event) { +if (this.windowClosingListener != null ) { +return this.windowClosingListener.windowClosingDelivered$java_awt_event_WindowEvent(event); +} else { +return null; +}}); + +Clazz_newMeth(C$, 'isModalExcluded$java_awt_Window', function (window) { +return true; +}, 1); + +Clazz_newMeth(C$, 'getDesktopAAHints$', function () { +return null; +}); + +Clazz_newMeth(C$, 'getContainingWindow$java_awt_Component', function (comp) { +while (comp != null && !comp.isWindowOrJSApplet$() ){ +comp=comp.getParent$(); +} +return comp; +}, 1); + +Clazz_newMeth(C$, 'isNativeGTKAvailable$', function () { +return false; +}); + +Clazz_newMeth(C$, 'isWindowOpacitySupported$', function () { +return false; +}); + +Clazz_newMeth(C$, 'isWindowShapingSupported$', function () { +return false; +}); + +Clazz_newMeth(C$, 'isWindowTranslucencySupported$', function () { +return false; +}); + +Clazz_newMeth(C$, 'isTranslucencyCapable$java_awt_GraphicsConfiguration', function (gc) { +return false; +}); + +Clazz_newMeth(C$, 'needUpdateWindow$', function () { +return false; +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:25 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("sun.awt"),I$=[]; +var C$=Clazz_newInterface(P$, "WindowClosingListener"); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:25 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("sun.awt"),I$=[]; +var C$=Clazz_newInterface(P$, "WindowClosingSupport"); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:25 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("sun.font"),p$1={},I$=[[0,'sun.font.FontDesignMetrics','java.util.Hashtable',['sun.font.FontDesignMetrics','.KeyReference'],'swingjs.JSToolkit']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "FontDesignMetrics", function(){ +Clazz_newInstance(this, arguments,0,C$); +}, 'java.awt.FontMetrics'); +C$.roundingUpValue=0; +C$.metricsCache=null; +C$.recentMetrics=null; +C$.recentIndex=0; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.roundingUpValue=0.95; +C$.metricsCache=Clazz_new_($I$(2)); +C$.recentMetrics=Clazz_array(C$, [5]); +C$.recentIndex=0; +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.ascent=0; +this.descent=0; +this.leading=0; +this.height=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.ascent=-1; +this.height=-1; +}, 1); + +Clazz_newMeth(C$, 'getMetrics$java_awt_Font', function (font) { +var m=null; +var r; +r=C$.metricsCache.get$O(font); +if (r != null ) { +m=r.get$(); +}if (m == null ) { +m=Clazz_new_(C$.c$$java_awt_Font,[font]); +C$.metricsCache.put$TK$TV(font, Clazz_new_($I$(3).c$$O$O,[font, m])); +}for (var i=0; i < C$.recentMetrics.length; i++) { +if (C$.recentMetrics[i] === m ) { +return m; +}} +{ +C$.recentMetrics[C$.recentIndex++]=m; +if (C$.recentIndex == 5) { +C$.recentIndex=0; +}}return m; +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Font', function (font) { +C$.superclazz.c$$java_awt_Font.apply(this, [font]); +C$.$init$.apply(this); +this.font=font; +p$1.initMatrixAndMetrics.apply(this, []); +}, 1); + +Clazz_newMeth(C$, 'initMatrixAndMetrics', function () { +{ +//need to calculate ascent, descent, leading, and maxAdvance +} +}, p$1); + +Clazz_newMeth(C$, 'charWidth$C', function (ch) { +return this.stringWidth$S("" + ch); +}); + +Clazz_newMeth(C$, 'stringWidth$S', function (str) { +return ((0.5 + p$1.getWidth$S.apply(this, [str]))|0); +}); + +Clazz_newMeth(C$, 'getWidth$S', function (str) { +return $I$(4).getStringWidth$swingjs_api_js_HTML5CanvasContext2D$java_awt_Font$S(null, this.font, str); +}, p$1); + +Clazz_newMeth(C$, 'charsWidth$CA$I$I', function (data, off, len) { +var width=0; +if (len < 0) { +throw Clazz_new_(Clazz_load('IndexOutOfBoundsException').c$$S,["len=" + len]); +}var limit=off + len; +for (var i=off; i < limit; i++) { +var ch=data[i]; +width += this.stringWidth$S("" + ch); +} +return ((0.5 + width)|0); +}); + +Clazz_newMeth(C$, 'getWidths$', function () { +var widths=Clazz_array(Integer.TYPE, [256]); +return widths; +}); + +Clazz_newMeth(C$, 'getAscent$', function () { +p$1._getMetrics.apply(this, []); +return ((C$.roundingUpValue + this.ascent)|0); +}); + +Clazz_newMeth(C$, 'getDescent$', function () { +p$1._getMetrics.apply(this, []); +return ((C$.roundingUpValue + this.descent)|0); +}); + +Clazz_newMeth(C$, '_getMetrics', function () { +if (this.ascent >= 0 ) return; +this.ascent=this.font.getFontMetrics$().getAscent$(); +this.descent=this.font.getFontMetrics$().getDescent$(); +this.leading=this.font.getFontMetrics$().getLeading$(); +}, p$1); + +Clazz_newMeth(C$, 'getLeading$', function () { +p$1._getMetrics.apply(this, []); +return ((C$.roundingUpValue + this.descent + this.leading )|0) - ((C$.roundingUpValue + this.descent)|0); +}); + +Clazz_newMeth(C$, 'getHeight$', function () { +if (this.height < 0) { +this.height=this.getAscent$() + ((C$.roundingUpValue + this.descent + this.leading )|0); +}return this.height; +}); + +Clazz_newMeth(C$, 'charWidth$I', function (codePoint) { +if (!Character.isValidCodePoint$I(codePoint)) { +codePoint=65535; +}if (codePoint < 256) { +return this.getWidths$()[codePoint]; +} else { +var buffer=Clazz_array(Character.TYPE, [2]); +var len=Character.toChars$I$CA$I(codePoint, buffer, 0); +return this.charsWidth$CA$I$I(buffer, 0, len); +}}); +; +(function(){var C$=Clazz_newClass(P$.FontDesignMetrics, "KeyReference", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.key=null; +this.val=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$O$O', function (key, value) { +C$.$init$.apply(this); +this.key=key; +this.val=value; +}, 1); + +Clazz_newMeth(C$, 'get$', function () { +return this.val; +}); + +Clazz_newMeth(C$, 'dispose$', function () { +if ($I$(1).metricsCache.get$O(this.key) === this ) { +$I$(1).metricsCache.remove$O(this.key); +}}); + +Clazz_newMeth(C$); +})() + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:27 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("sun.swing"),I$=[[0,'sun.awt.AppContext','Thread','javax.swing.UIManager']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "DefaultLookup"); +C$.DEFAULT_LOOKUP_KEY=null; +C$.currentDefaultThread=null; +C$.currentDefaultLookup=null; +C$.isLookupSet=false; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.DEFAULT_LOOKUP_KEY= Clazz_new_(); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'setDefaultLookup$sun_swing_DefaultLookup', function (lookup) { +{ +if (!C$.isLookupSet && lookup == null ) { +return; +} else if (lookup == null ) { +lookup=Clazz_new_(C$); +}C$.isLookupSet=true; +$I$(1).getAppContext$().put$O$O(C$.DEFAULT_LOOKUP_KEY, lookup); +C$.currentDefaultThread=$I$(2).currentThread$(); +C$.currentDefaultLookup=lookup; +}}, 1); + +Clazz_newMeth(C$, 'get$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S', function (c, ui, key) { +var lookupSet; +{ +lookupSet=C$.isLookupSet; +}if (!lookupSet) { +return $I$(3).get$O$java_util_Locale(key, c.getLocale$()); +}var thisThread=$I$(2).currentThread$(); +var lookup; +{ +if (thisThread === C$.currentDefaultThread ) { +lookup=C$.currentDefaultLookup; +} else { +lookup=$I$(1).getAppContext$().get$O(C$.DEFAULT_LOOKUP_KEY); +if (lookup == null ) { +lookup=Clazz_new_(C$); +$I$(1).getAppContext$().put$O$O(C$.DEFAULT_LOOKUP_KEY, lookup); +}C$.currentDefaultThread=thisThread; +C$.currentDefaultLookup=lookup; +}}return lookup.getDefault$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S(c, ui, key); +}, 1); + +Clazz_newMeth(C$, 'getInt$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S$I', function (c, ui, key, defaultValue) { +var iValue=C$.get$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S(c, ui, key); +if (iValue == null || !(Clazz_instanceOf(iValue, "java.lang.Number")) ) { +return defaultValue; +}return (iValue).intValue$(); +}, 1); + +Clazz_newMeth(C$, 'getInt$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S', function (c, ui, key) { +return C$.getInt$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S$I(c, ui, key, -1); +}, 1); + +Clazz_newMeth(C$, 'getInsets$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S$java_awt_Insets', function (c, ui, key, defaultValue) { +var iValue=C$.get$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S(c, ui, key); +if (iValue == null || !(Clazz_instanceOf(iValue, "java.awt.Insets")) ) { +return defaultValue; +}return iValue; +}, 1); + +Clazz_newMeth(C$, 'getInsets$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S', function (c, ui, key) { +return C$.getInsets$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S$java_awt_Insets(c, ui, key, null); +}, 1); + +Clazz_newMeth(C$, 'getBoolean$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S$Z', function (c, ui, key, defaultValue) { +var iValue=C$.get$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S(c, ui, key); +if (iValue == null || !(Clazz_instanceOf(iValue, "java.lang.Boolean")) ) { +return defaultValue; +}return (iValue).booleanValue$(); +}, 1); + +Clazz_newMeth(C$, 'getBoolean$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S', function (c, ui, key) { +return C$.getBoolean$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S$Z(c, ui, key, false); +}, 1); + +Clazz_newMeth(C$, 'getColor$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S$java_awt_Color', function (c, ui, key, defaultValue) { +var iValue=C$.get$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S(c, ui, key); +if (iValue == null || !(Clazz_instanceOf(iValue, "java.awt.Color")) ) { +return defaultValue; +}return iValue; +}, 1); + +Clazz_newMeth(C$, 'getColor$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S', function (c, ui, key) { +return C$.getColor$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S$java_awt_Color(c, ui, key, null); +}, 1); + +Clazz_newMeth(C$, 'getIcon$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S$javax_swing_Icon', function (c, ui, key, defaultValue) { +var iValue=C$.get$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S(c, ui, key); +if (iValue == null || !(Clazz_instanceOf(iValue, "javax.swing.Icon")) ) { +return defaultValue; +}return iValue; +}, 1); + +Clazz_newMeth(C$, 'getIcon$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S', function (c, ui, key) { +return C$.getIcon$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S$javax_swing_Icon(c, ui, key, null); +}, 1); + +Clazz_newMeth(C$, 'getBorder$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S$javax_swing_border_Border', function (c, ui, key, defaultValue) { +var iValue=C$.get$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S(c, ui, key); +if (iValue == null || !(Clazz_instanceOf(iValue, "javax.swing.border.Border")) ) { +return defaultValue; +}return iValue; +}, 1); + +Clazz_newMeth(C$, 'getBorder$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S', function (c, ui, key) { +return C$.getBorder$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S$javax_swing_border_Border(c, ui, key, null); +}, 1); + +Clazz_newMeth(C$, 'getDefault$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S', function (c, ui, key) { +return $I$(3).get$O$java_util_Locale(key, c.getLocale$()); +}); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:31 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("sun.swing"),p$1={},I$=[[0,'Boolean','java.awt.Color']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "SwingLazyValue", null, null, [['javax.swing.UIDefaults','javax.swing.UIDefaults.LazyValue']]); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.className=null; +this.methodName=null; +this.args=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$S', function (c) { +C$.c$$S$S$OA.apply(this, [c, null, null]); +}, 1); + +Clazz_newMeth(C$, 'c$$S$S', function (c, m) { +C$.c$$S$S$OA.apply(this, [c, m, null]); +}, 1); + +Clazz_newMeth(C$, 'c$$S$OA', function (c, o) { +C$.c$$S$S$OA.apply(this, [c, null, o]); +}, 1); + +Clazz_newMeth(C$, 'c$$S$S$OA', function (c, m, o) { +C$.$init$.apply(this); +this.className=c; +this.methodName=m; +if (o != null ) { +this.args=o.clone$(); +}}, 1); + +Clazz_newMeth(C$, ['createValue$javax_swing_UIDefaults','createValue$'], function (table) { +try { +if (this.className.indexOf$S("$") > 0) { +var cname=this.className; + +Clazz_load(cname.replace("$","$.").split("$")); +}var c=Clazz_forName(this.className, true, null); +if (this.methodName != null ) { +var types=p$1.getClassArray$OA.apply(this, [this.args]); +var m=c.getMethod$S$ClassA(this.methodName, types); +return m.invoke$O$OA(c, this.args); +} else { +var types=p$1.getClassArray$OA.apply(this, [this.args]); +var constructor=c.getConstructor$ClassA(types); +return constructor.newInstance$OA(this.args); +}} catch (e) { +if (Clazz_exceptionOf(e,"Exception")){ +System.out.println$S("Error in sun.swing.SwingLazyValue.createValue for " + this.className); +} else { +throw e; +} +} +return null; +}); + +Clazz_newMeth(C$, 'getClassArray$OA', function (args) { +var types=null; +if (args != null ) { +types=Clazz_array(Class, [args.length]); +for (var i=0; i < args.length; i++) { +if (Clazz_instanceOf(args[i], "java.lang.Integer")) { +types[i]=Integer.TYPE; +} else if (Clazz_instanceOf(args[i], "java.lang.Boolean")) { +types[i]=$I$(1).TYPE; +} else if (Clazz_instanceOf(args[i], "javax.swing.plaf.ColorUIResource")) { +types[i]=Clazz_getClass($I$(2)); +} else { +types[i]=args[i].getClass$(); +}} +}return types; +}, p$1); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:31 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("sun.text.resources"),I$=[]; +var C$=Clazz_newClass(P$, "FormatData", null, 'java.util.ListResourceBundle'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'getContents$', function () { +return Clazz_array(java.lang.Object, -2, [Clazz_array(java.lang.Object, -1, ["MonthNames", Clazz_array(String, -1, ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", ""])]), Clazz_array(java.lang.Object, -1, ["MonthAbbreviations", Clazz_array(String, -1, ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", ""])]), Clazz_array(java.lang.Object, -1, ["DayNames", Clazz_array(String, -1, ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"])]), Clazz_array(java.lang.Object, -1, ["DayAbbreviations", Clazz_array(String, -1, ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"])]), Clazz_array(java.lang.Object, -1, ["AmPmMarkers", Clazz_array(String, -1, ["AM", "PM"])]), Clazz_array(java.lang.Object, -1, ["Eras", Clazz_array(String, -1, ["BC", "AD"])]), Clazz_array(java.lang.Object, -1, ["NumberPatterns", Clazz_array(String, -1, ["#,##0.###;-#,##0.###", "\u00a4#,##0.00;\'-\u00a4#,##0.00", "#,##0%"])]), Clazz_array(java.lang.Object, -1, ["NumberElements", Clazz_array(String, -1, [".", ",", ";", "%", "0", "#", "-", "E", "\u2030", "\u221e", "\ufffd"])]), Clazz_array(java.lang.Object, -1, ["DateTimePatterns", Clazz_array(String, -1, ["h:mm:ss a z", "h:mm:ss a z", "h:mm:ss a", "h:mm a", "EEEE, MMMM d, yyyy", "MMMM d, yyyy", "MMM d, yyyy", "M/d/yy", "{1} {0}"])]), Clazz_array(java.lang.Object, -1, ["DateTimePatternChars", "GyMdkHmsSEDFwWahKzZ"])]); +}); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:32 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("sun.text.resources"),I$=[]; +var C$=Clazz_newClass(P$, "FormatData_en", null, 'java.util.ListResourceBundle'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'getContents$', function () { +return Clazz_array(java.lang.Object, -2, [Clazz_array(java.lang.Object, -1, ["MonthNames", Clazz_array(String, -1, ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", ""])]), Clazz_array(java.lang.Object, -1, ["MonthAbbreviations", Clazz_array(String, -1, ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", ""])]), Clazz_array(java.lang.Object, -1, ["DayNames", Clazz_array(String, -1, ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"])]), Clazz_array(java.lang.Object, -1, ["DayAbbreviations", Clazz_array(String, -1, ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"])]), Clazz_array(java.lang.Object, -1, ["AmPmMarkers", Clazz_array(String, -1, ["AM", "PM"])]), Clazz_array(java.lang.Object, -1, ["Eras", Clazz_array(String, -1, ["BC", "AD"])]), Clazz_array(java.lang.Object, -1, ["NumberPatterns", Clazz_array(String, -1, ["#,##0.###;-#,##0.###", "\u00a4#,##0.00;(\u00a4#,##0.00)", "#,##0%"])]), Clazz_array(java.lang.Object, -1, ["NumberElements", Clazz_array(String, -1, [".", ",", ";", "%", "0", "#", "-", "E", "\u2030", "\u221e", "\ufffd"])]), Clazz_array(java.lang.Object, -1, ["DateTimePatterns", Clazz_array(String, -1, ["h:mm:ss a z", "h:mm:ss a z", "h:mm:ss a", "h:mm a", "EEEE, MMMM d, yyyy", "MMMM d, yyyy", "MMM d, yyyy", "M/d/yy", "{1} {0}"])]), Clazz_array(java.lang.Object, -1, ["DateTimePatternChars", "GyMdkHmsSEDFwWahKzZ"])]); +}); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:32 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("sun.util.resources"),I$=[[0,['java.util.ResourceBundle','.Control'],['sun.util.resources.LocaleData','.AvailableLocales'],'java.util.ResourceBundle',['sun.util.resources.LocaleData','.LocaleDataResourceBundleControl'],'java.util.Locale']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "LocaleData", function(){ +Clazz_newInstance(this, arguments,0,C$); +}); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'getAvailableLocales$', function () { +return $I$(2).localeList.clone$(); +}, 1); + +Clazz_newMeth(C$, 'getCalendarData$java_util_Locale', function (locale) { +return C$.getBundle$S$java_util_Locale("sun.util.resources.CalendarData", locale); +}, 1); + +Clazz_newMeth(C$, 'getDateFormatData$java_util_Locale', function (locale) { +return C$.getBundle$S$java_util_Locale("sun.text.resources.FormatData", locale); +}, 1); + +Clazz_newMeth(C$, 'getNumberFormatData$java_util_Locale', function (locale) { +return C$.getBundle$S$java_util_Locale("sun.text.resources.FormatData", locale); +}, 1); + +Clazz_newMeth(C$, 'getBundle$S$java_util_Locale', function (baseName, locale) { +return $I$(3).getBundle$S$java_util_Locale$java_util_ResourceBundle_Control(baseName, locale, $I$(4).getRBControlInstance$()); +}, 1); + +Clazz_newMeth(C$, 'createLocaleList$', function () { +return Clazz_array($I$(5), -1, [Clazz_new_($I$(5).c$$S$S$S,["en", "", ""])]); +}, 1); +; +(function(){var C$=Clazz_newClass(P$.LocaleData, "AvailableLocales", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}); +C$.localeList=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.localeList=P$.LocaleData.createLocaleList$(); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.LocaleData, "LocaleDataResourceBundleControl", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, ['java.util.ResourceBundle','.Control']); +C$.rbControlInstance=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.rbControlInstance=Clazz_new_(C$); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'getRBControlInstance$', function () { +return C$.rbControlInstance; +}, 1); + +Clazz_newMeth(C$, 'getFormats$S', function (baseName) { +if (baseName == null ) { +throw Clazz_new_(Clazz_load('NullPointerException')); +}return (baseName.indexOf$S("sun.util.resources.Calendar") >= 0 ? $I$(1).FORMAT_PROPERTIES : $I$(1).FORMAT_CLASS); +}); + +Clazz_newMeth(C$, 'getCandidateLocales$S$java_util_Locale', function (baseName, locale) { +var candidates=C$.superclazz.prototype.getCandidateLocales$S$java_util_Locale.apply(this, [baseName, locale]); +var localeString=" en "; +if (localeString.length$() == 0) { +return candidates; +}for (var l=candidates.iterator$(); l.hasNext$(); ) { +var lstr=l.next$().toString(); +if (lstr.length$() != 0 && localeString.indexOf$S(" " + lstr + " " ) == -1 ) { +l.remove$(); +}} +return candidates; +}); + +Clazz_newMeth(C$, 'getFallbackLocale$S$java_util_Locale', function (baseName, locale) { +if (baseName == null || locale == null ) { +throw Clazz_new_(Clazz_load('NullPointerException')); +}return null; +}); + +Clazz_newMeth(C$); +})() + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:32 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("swingjs.a2s"),I$=[[0,'swingjs.JSUtil']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newInterface(P$, "A2SContainer"); + +Clazz_newMeth(C$, 'fixAWTPaint$java_awt_Component$Class', function (c, cl) { +var f=$I$(1).getJ2SAlias$O$S(c, "paint$java_awt_Graphics"); +if (!$I$(1).isForClass$O$Class(f, cl) && f.toString().indexOf$S("C$.superclazz.prototype.paint$java_awt_Graphics.apply(this") < 0 ) { + +c.paint$java_awt_Graphics = function(g) { cl.$clazz$.prototype.paint$java_awt_Graphics.apply(c,[g]); +f.apply(c,[g]); +} +}}, 1); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:34 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("swingjs.a2s"),I$=[[0,'java.awt.Event','Boolean']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "A2SEvent", null, null, 'Runnable'); +C$.actionKeyCodes=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.actionKeyCodes=Clazz_array(Integer.TYPE, -2, [Clazz_array(Integer.TYPE, -1, [36, 1000]), Clazz_array(Integer.TYPE, -1, [35, 1001]), Clazz_array(Integer.TYPE, -1, [33, 1002]), Clazz_array(Integer.TYPE, -1, [34, 1003]), Clazz_array(Integer.TYPE, -1, [38, 1004]), Clazz_array(Integer.TYPE, -1, [40, 1005]), Clazz_array(Integer.TYPE, -1, [37, 1006]), Clazz_array(Integer.TYPE, -1, [39, 1007]), Clazz_array(Integer.TYPE, -1, [112, 1008]), Clazz_array(Integer.TYPE, -1, [113, 1009]), Clazz_array(Integer.TYPE, -1, [114, 1010]), Clazz_array(Integer.TYPE, -1, [115, 1011]), Clazz_array(Integer.TYPE, -1, [116, 1012]), Clazz_array(Integer.TYPE, -1, [117, 1013]), Clazz_array(Integer.TYPE, -1, [118, 1014]), Clazz_array(Integer.TYPE, -1, [119, 1015]), Clazz_array(Integer.TYPE, -1, [120, 1016]), Clazz_array(Integer.TYPE, -1, [121, 1017]), Clazz_array(Integer.TYPE, -1, [122, 1018]), Clazz_array(Integer.TYPE, -1, [123, 1019]), Clazz_array(Integer.TYPE, -1, [154, 1020]), Clazz_array(Integer.TYPE, -1, [145, 1021]), Clazz_array(Integer.TYPE, -1, [20, 1022]), Clazz_array(Integer.TYPE, -1, [144, 1023]), Clazz_array(Integer.TYPE, -1, [19, 1024]), Clazz_array(Integer.TYPE, -1, [155, 1025])]); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.e=null; +this.target=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_AWTEvent', function (e) { +C$.$init$.apply(this); +this.target=e.getSource$(); +this.e=C$.convertToOld$java_awt_AWTEvent(e); +}, 1); + +Clazz_newMeth(C$, 'run$', function () { +var e=this.e; +var target=this.target; +if (Clazz_instanceOf(target, "swingjs.a2s.A2SContainer")) { +var parent=(target).getMouseEventTarget$I$I$Z$java_awt_Container_EventTargetFilter$Z(e.x, e.y, true, null, false); +switch (e.id) { +case 506: +case 502: +parent=(target).getA2SListener$().lastTarget; +break; +case 501: +(target).getA2SListener$().lastTarget=parent; +break; +} +if (parent != null ) target=parent; +while (parent != null && parent !== this.target ){ +e.x-=parent.getX$(); +e.y-=parent.getY$(); +parent=parent.getParent$(); +} +} +setTimeout(function() { +target.postEvent$java_awt_Event(e); + +}); +}); + +Clazz_newMeth(C$, 'getOldEventKey$java_awt_event_KeyEvent', function (e) { +var keyCode=e.getKeyCode$(); +for (var i=0; i < C$.actionKeyCodes.length; i++) { +if (C$.actionKeyCodes[i][0] == keyCode) { +return C$.actionKeyCodes[i][1]; +}} +return e.getKeyChar$().$c(); +}, 1); + +Clazz_newMeth(C$, 'convertToOld$java_awt_AWTEvent', function (e) { +var src=e.getSource$(); +var id=e.getID$(); +var newid=id; +switch (id) { +case 401: +case 402: +var ke=e; +if (ke.isActionKey$()) { +newid=(id == 401 ? 403 : 404); +}var keyCode=ke.getKeyCode$(); +if (keyCode == 16 || keyCode == 17 || keyCode == 18 ) { +return null; +}return Clazz_new_($I$(1).c$$O$J$I$I$I$I$I,[src, ke.getWhen$(), newid, 0, 0, C$.getOldEventKey$java_awt_event_KeyEvent(ke), (ke.getModifiers$() & ~16)]); +case 500: +case 501: +case 502: +case 503: +case 506: +case 504: +case 505: +var me=e; +var olde=Clazz_new_($I$(1).c$$O$J$I$I$I$I$I,[src, me.getWhen$(), newid, me.getX$(), me.getY$(), 0, (me.getModifiers$() & ~16)]); +olde.clickCount=me.getClickCount$(); +return olde; +case 1004: +return Clazz_new_($I$(1).c$$O$I$O,[src, 1004, null]); +case 1005: +return Clazz_new_($I$(1).c$$O$I$O,[src, 1005, null]); +case 201: +case 203: +case 204: +return Clazz_new_($I$(1).c$$O$I$O,[src, newid, null]); +case 100: +if (Clazz_instanceOf(src, "swingjs.a2s.Frame") || Clazz_instanceOf(src, "swingjs.a2s.Dialog") ) { +var p=(src).getLocation$(); +return Clazz_new_($I$(1).c$$O$J$I$I$I$I$I,[src, 0, 205, p.x, p.y, 0, 0]); +}break; +case 1001: +var ae=e; +var cmd; +if (Clazz_instanceOf(src, "javax.swing.AbstractButton")) { +cmd=(src).getText$(); +} else if (Clazz_instanceOf(src, "swingjs.a2s.MenuItem")) { +cmd=(src).getText$(); +} else { +cmd=ae.getActionCommand$(); +}return Clazz_new_($I$(1).c$$O$J$I$I$I$I$I$O,[src, 0, newid, 0, 0, 0, ae.getModifiers$(), cmd]); +case 701: +var ie=e; +var arg; +if (Clazz_instanceOf(src, "swingjs.a2s.List")) { +newid=(ie.getStateChange$() == 1 ? 701 : 702); +arg=ie.getItem$(); +} else if (Clazz_instanceOf(src, "swingjs.a2s.Choice")) { +arg=ie.getItem$(); +} else { +newid=1001; +arg=$I$(2).valueOf$Z(ie.getStateChange$() == 1); +}return Clazz_new_($I$(1).c$$O$I$O,[src, newid, arg]); +case 601: +var aje=e; +switch (aje.getAdjustmentType$()) { +case 1: +newid=602; +break; +case 2: +newid=601; +break; +case 4: +newid=604; +break; +case 3: +newid=603; +break; +case 5: +if (aje.getValueIsAdjusting$()) { +newid=605; +} else { +newid=607; +}break; +default: +return null; +} +return Clazz_new_($I$(1).c$$O$I$O,[src, newid, Integer.valueOf$I(aje.getValue$())]); +default: +} +return null; +}, 1); + +Clazz_newMeth(C$, 'addListener$java_awt_Component', function (comp) { +var jc=(comp).getTopLevelAncestor$(); +if (jc == null || !(Clazz_instanceOf(jc, "swingjs.a2s.A2SContainer")) ) return; +var top=jc; +var listener=top.getA2SListener$(); +if (Clazz_instanceOf(comp, "javax.swing.AbstractButton")) { +if (!C$.isListener$java_util_EventListenerA$java_util_EventListener((comp).getActionListeners$(), listener)) (comp).addActionListener$java_awt_event_ActionListener(listener); +} else if (Clazz_instanceOf(comp, "swingjs.a2s.TextField")) { +if (!C$.isListener$java_util_EventListenerA$java_util_EventListener((comp).getActionListeners$(), listener)) (comp).addActionListener$java_awt_event_ActionListener(listener); +} else if (Clazz_instanceOf(comp, "javax.swing.JComboBox")) { +if (!C$.isListener$java_util_EventListenerA$java_util_EventListener((comp).getActionListeners$(), listener)) (comp).addActionListener$java_awt_event_ActionListener(listener); +if (!C$.isListener$java_util_EventListenerA$java_util_EventListener((comp).getItemListeners$(), listener)) (comp).addItemListener$java_awt_event_ItemListener(listener); +} else if (Clazz_instanceOf(comp, "javax.swing.JScrollBar")) { +if (!C$.isListener$java_util_EventListenerA$java_util_EventListener((comp).getAdjustmentListeners$(), listener)) (comp).addAdjustmentListener$java_awt_event_AdjustmentListener(listener); +}}, 1); + +Clazz_newMeth(C$, 'isListener$java_util_EventListenerA$java_util_EventListener', function (listeners, listener) { +if (listener == null ) return true; +for (var i=listeners.length; --i >= 0; ) if (listeners[i] === listener ) return true; + +return false; +}, 1); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:34 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("swingjs.a2s"),I$=[[0,'swingjs.a2s.A2SEvent']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "A2SListener", null, null, ['java.awt.event.AdjustmentListener', 'java.awt.event.ActionListener', 'java.awt.event.KeyListener', 'java.awt.event.MouseListener', 'java.awt.event.MouseMotionListener', 'java.awt.event.TextListener', 'javax.swing.event.ChangeListener', 'java.awt.event.ItemListener']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.lastTarget=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) { +Clazz_new_($I$(1).c$$java_awt_AWTEvent,[e]).run$(); +}); + +Clazz_newMeth(C$, 'mouseDragged$java_awt_event_MouseEvent', function (e) { +Clazz_new_($I$(1).c$$java_awt_AWTEvent,[e]).run$(); +}); + +Clazz_newMeth(C$, 'mouseMoved$java_awt_event_MouseEvent', function (e) { +Clazz_new_($I$(1).c$$java_awt_AWTEvent,[e]).run$(); +}); + +Clazz_newMeth(C$, 'mouseClicked$java_awt_event_MouseEvent', function (e) { +Clazz_new_($I$(1).c$$java_awt_AWTEvent,[e]).run$(); +}); + +Clazz_newMeth(C$, 'mousePressed$java_awt_event_MouseEvent', function (e) { +Clazz_new_($I$(1).c$$java_awt_AWTEvent,[e]).run$(); +}); + +Clazz_newMeth(C$, 'mouseReleased$java_awt_event_MouseEvent', function (e) { +Clazz_new_($I$(1).c$$java_awt_AWTEvent,[e]).run$(); +}); + +Clazz_newMeth(C$, 'mouseEntered$java_awt_event_MouseEvent', function (e) { +Clazz_new_($I$(1).c$$java_awt_AWTEvent,[e]).run$(); +}); + +Clazz_newMeth(C$, 'mouseExited$java_awt_event_MouseEvent', function (e) { +Clazz_new_($I$(1).c$$java_awt_AWTEvent,[e]).run$(); +}); + +Clazz_newMeth(C$, 'keyTyped$java_awt_event_KeyEvent', function (e) { +Clazz_new_($I$(1).c$$java_awt_AWTEvent,[e]).run$(); +}); + +Clazz_newMeth(C$, 'keyPressed$java_awt_event_KeyEvent', function (e) { +Clazz_new_($I$(1).c$$java_awt_AWTEvent,[e]).run$(); +}); + +Clazz_newMeth(C$, 'keyReleased$java_awt_event_KeyEvent', function (e) { +Clazz_new_($I$(1).c$$java_awt_AWTEvent,[e]).run$(); +}); + +Clazz_newMeth(C$, ['itemStateChanged$java_awt_event_ItemEvent','itemStateChanged$'], function (e) { +Clazz_new_($I$(1).c$$java_awt_AWTEvent,[e]).run$(); +}); + +Clazz_newMeth(C$, ['adjustmentValueChanged$java_awt_event_AdjustmentEvent','adjustmentValueChanged$'], function (e) { +Clazz_new_($I$(1).c$$java_awt_AWTEvent,[e]).run$(); +if (Clazz_instanceOf(e.getSource$(), "swingjs.a2s.Scrollbar")) (e.getSource$()).processAdjustmentEventA2S$java_awt_event_AdjustmentEvent(e); +}); + +Clazz_newMeth(C$, ['textValueChanged$java_awt_event_TextEvent','textValueChanged$'], function (e) { +System.out.println$S("AHAH! a2sListener textvalue changed " + e); +}); + +Clazz_newMeth(C$, ['stateChanged$javax_swing_event_ChangeEvent','stateChanged$'], function (e) { +System.out.println$S("Ahah a2slistener state changed " + e.getSource$()); +}); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:34 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("swingjs.a2s"),I$=[[0,'swingjs.a2s.A2SContainer','javax.swing.JApplet','swingjs.a2s.A2SListener','java.awt.FlowLayout','java.net.URL']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "Applet", null, 'javax.swing.JApplet', 'swingjs.a2s.A2SContainer'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.listener=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, ['isAWT$','isAWT'], function () { +}); + +Clazz_newMeth(C$, 'c$', function () { +C$.superclazz.c$.apply(this, []); +C$.$init$.apply(this); +$I$(1).fixAWTPaint$java_awt_Component$Class(this, Clazz_getClass($I$(2))); +this.listener=Clazz_new_($I$(3)); +this.addMouseListener$java_awt_event_MouseListener(this.listener); +this.addMouseMotionListener$java_awt_event_MouseMotionListener(this.listener); +this.setLayout$java_awt_LayoutManager(Clazz_new_($I$(4))); +(this.getContentPane$()).setOpaque$Z(false); +}, 1); + +Clazz_newMeth(C$, ['setBackground$java_awt_Color','setBackground'], function (c) { +C$.superclazz.prototype.setBackground$java_awt_Color.apply(this, [c]); +this.getRootPane$().setBackground$java_awt_Color(c); +this.getContentPane$().setBackground$java_awt_Color(c); +}); + +Clazz_newMeth(C$, ['getA2SListener$','getA2SListener'], function () { +return this.listener; +}); + +Clazz_newMeth(C$, ['getCodeBase$','getCodeBase'], function () { +var codeBase=C$.superclazz.prototype.getCodeBase$.apply(this, []).toString(); +if (codeBase.endsWith$S("/bin/")) { +var appletPath=this.getClass$().getName$(); +codeBase += appletPath.substring$I$I(0, appletPath.lastIndexOf$S(".") + 1).replace$C$C(".", "/"); +}try { +return Clazz_new_($I$(5).c$$S,[codeBase]); +} catch (e) { +if (Clazz_exceptionOf(e,"java.net.MalformedURLException")){ +return null; +} else { +throw e; +} +} +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:35 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("swingjs.a2s"),I$=[[0,'java.awt.Color','java.awt.Insets','swingjs.a2s.A2SEvent']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "Button", null, 'javax.swing.JButton'); +C$.bgcolor=null; +C$.awtInsets=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.bgcolor=Clazz_new_($I$(1).c$$I$I$I,[238, 238, 238]); +C$.awtInsets=Clazz_new_($I$(2).c$$I$I$I$I,[5, 6, 5, 6]); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'isAWT$', function () { +}); + +Clazz_newMeth(C$, 'c$', function () { +C$.c$$S.apply(this, [null]); +}, 1); + +Clazz_newMeth(C$, 'c$$S', function (text) { +C$.superclazz.c$$S.apply(this, [text]); +C$.$init$.apply(this); +if (!this.isBackgroundSet$()) this.setBackground$java_awt_Color(C$.bgcolor); +}, 1); + +Clazz_newMeth(C$, 'getMargin$', function () { +return C$.awtInsets; +}); + +Clazz_newMeth(C$, 'fireActionPerformed$java_awt_event_ActionEvent', function (event) { +$I$(3).addListener$java_awt_Component(this); +C$.superclazz.prototype.fireActionPerformed$java_awt_event_ActionEvent.apply(this, [event]); +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:35 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("swingjs.a2s"),I$=[[0,'java.awt.Insets']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "Label", null, 'javax.swing.JLabel'); +C$.awtInsets=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.awtInsets=Clazz_new_($I$(1).c$$I$I$I$I,[2, 2, 2, 2]); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'isAWT$', function () { +}); + +Clazz_newMeth(C$, 'c$', function () { +C$.c$$S$I.apply(this, ["", 0]); +}, 1); + +Clazz_newMeth(C$, 'c$$S', function (text) { +C$.c$$S$I.apply(this, [text, 0]); +}, 1); + +Clazz_newMeth(C$, 'c$$S$I', function (text, center) { +C$.superclazz.c$$S.apply(this, [text]); +C$.$init$.apply(this); + +this.getUI$().isAWT = true; +C$.superclazz.prototype.setBackground$java_awt_Color.apply(this, [null]); +this.setAlignment$I(center); +}, 1); + +Clazz_newMeth(C$, 'setText$S', function (text) { +C$.superclazz.prototype.setText$S.apply(this, [text]); +}); + +Clazz_newMeth(C$, 'setBackground$java_awt_Color', function (c) { +C$.superclazz.prototype.setBackground$java_awt_Color.apply(this, [c]); +this.setOpaque$Z(c != null ); +}); + +Clazz_newMeth(C$, 'getInsets$', function () { +return C$.awtInsets; +}); + +Clazz_newMeth(C$, 'getInsets$java_awt_Insets', function (s) { +s.top=C$.awtInsets.top; +s.left=C$.awtInsets.left; +s.bottom=C$.awtInsets.bottom; +s.right=C$.awtInsets.right; +return s; +}); + +Clazz_newMeth(C$, 'setAlignment$I', function (alignment) { +var xAlignment=0.0; +var yAlignment=0.5; +switch (alignment) { +case 0: +alignment=2; +xAlignment=0; +break; +case 2: +alignment=4; +xAlignment=1; +break; +case 1: +alignment=0; +xAlignment=0.5; +break; +} +this.setAlignmentX$F(xAlignment); +this.setAlignmentY$F(yAlignment); +this.setHorizontalAlignment$I(alignment); +this.setVerticalAlignment$I(0); +this.setVerticalTextPosition$I(0); +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:36 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("swingjs.a2s"),I$=[[0,'java.awt.FlowLayout','swingjs.a2s.A2SContainer','javax.swing.JComponent']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "Panel", null, 'javax.swing.JPanel'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'isAWT$', function () { +}); + +Clazz_newMeth(C$, 'isAWTContainer$', function () { +}); + +Clazz_newMeth(C$, 'c$', function () { +C$.c$$java_awt_LayoutManager.apply(this, [Clazz_new_($I$(1))]); +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_LayoutManager', function (layout) { +C$.superclazz.c$$java_awt_LayoutManager.apply(this, [layout]); +C$.$init$.apply(this); +this.subclassSetup$(); +this.setBackground$java_awt_Color(null); +this.setOpaque$Z(false); +$I$(2).fixAWTPaint$java_awt_Component$Class(this, Clazz_getClass($I$(3))); +}, 1); + +Clazz_newMeth(C$, 'subclassSetup$', function () { +}); + +Clazz_newMeth(C$, 'setBackground$java_awt_Color', function (c) { +C$.superclazz.prototype.setBackground$java_awt_Color.apply(this, [c]); +this.setOpaque$Z(c != null ); +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:36 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("swingjs.a2s"),I$=[[0,'swingjs.a2s.A2SEvent']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "Scrollbar", null, 'javax.swing.JScrollBar'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.fromUI=false; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'isAWT$', function () { +}); + +Clazz_newMeth(C$, 'c$', function () { +C$.c$$I.apply(this, [1]); +}, 1); + +Clazz_newMeth(C$, 'c$$I', function (direction) { +C$.c$$I$I$I$I$I.apply(this, [direction, 0, 10, 0, 100]); +}, 1); + +Clazz_newMeth(C$, 'c$$I$I$I$I$I', function (orientation, value, extent, min, max) { +C$.superclazz.c$$I$I$I$I$I.apply(this, [orientation, Math.max(Math.min(value, max), min), extent, min, max]); +C$.$init$.apply(this); +this.setOpaque$Z(true); +this.setBlockIncrement$I(10); +}, 1); + +Clazz_newMeth(C$, 'fireAdjustmentValueChanged$I$I$I$Z', function (id, type, value, adjusting) { +$I$(1).addListener$java_awt_Component(this); +if (!this.fromUI) return; +C$.superclazz.prototype.fireAdjustmentValueChanged$I$I$I$Z.apply(this, [id, type, value, adjusting]); +}); + +Clazz_newMeth(C$, 'setValueFromUI$I', function (val) { +this.fromUI=true; +this.setValue$I(val); +this.fromUI=false; +}); + +Clazz_newMeth(C$, 'processAdjustmentEventA2S$java_awt_event_AdjustmentEvent', function (e) { +if (this.fromUI) this.processAdjustmentEvent$java_awt_event_AdjustmentEvent(e); +}); + +Clazz_newMeth(C$, 'processAdjustmentEvent$java_awt_event_AdjustmentEvent', function (e) { +}); + +Clazz_newMeth(C$, 'setValueIsAdjustingFromUI$Z', function (b) { +this.fromUI=true; +this.setValueIsAdjusting$Z(b); +this.fromUI=false; +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:36 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("swingjs.a2s"),I$=[[0,'java.awt.Color','java.awt.Point','java.awt.Dimension']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "ScrollPane", null, 'javax.swing.JScrollPane'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'isAWT$', function () { +}); + +Clazz_newMeth(C$, 'isAWTContainer$', function () { +}); + +Clazz_newMeth(C$, 'c$', function () { +C$.c$$I.apply(this, [0]); +}, 1); + +Clazz_newMeth(C$, 'c$$I', function (scrollbars) { +C$.superclazz.c$.apply(this, []); +C$.$init$.apply(this); +switch (scrollbars) { +case 2: +this.setVerticalScrollBarPolicy$I(21); +this.setHorizontalScrollBarPolicy$I(31); +break; +case 1: +this.setVerticalScrollBarPolicy$I(22); +this.setHorizontalScrollBarPolicy$I(32); +break; +case 0: +break; +} +this.setBackground$java_awt_Color($I$(1).LIGHT_GRAY); +this.setOpaque$Z(true); +}, 1); + +Clazz_newMeth(C$, 'add$java_awt_Component', function (c) { +this.getViewport$().add$java_awt_Component(c); +return c; +}); + +Clazz_newMeth(C$, 'getVAdjustable$', function () { +return this.getVerticalScrollBar$(); +}); + +Clazz_newMeth(C$, 'getHAdjustable$', function () { +return this.getHorizontalScrollBar$(); +}); + +Clazz_newMeth(C$, 'setScrollPosition$I$I', function (x, y) { +/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$()); +{ +if (this.getComponentCount$() == 0) { +throw Clazz_new_(Clazz_load('NullPointerException').c$$S,["child is null"]); +}this.getHorizontalScrollBar$().setValue$I(x); +this.getVerticalScrollBar$().setValue$I(y); +}}); + +Clazz_newMeth(C$, 'setScrollPosition$java_awt_Point', function (p) { +this.setScrollPosition$I$I(p.x, p.y); +}); + +Clazz_newMeth(C$, 'getScrollPosition$', function () { +/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$()); +{ +if (this.getComponentCount$() == 0) { +throw Clazz_new_(Clazz_load('NullPointerException').c$$S,["child is null"]); +}return Clazz_new_($I$(2).c$$I$I,[this.getHorizontalScrollBar$().getValue$(), this.getVerticalScrollBar$().getValue$()]); +}}); + +Clazz_newMeth(C$, 'getViewportSize$', function () { +var i=this.getInsets$(); +return Clazz_new_($I$(3).c$$I$I,[this.width - i.right - i.left , this.height - i.top - i.bottom ]); +}); + +Clazz_newMeth(C$, 'getInsets$', function () { +return this.秘getInsetsC$(); +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:36 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("swingjs.a2s"),p$1={},I$=[[0,'java.awt.AWTEventMulticaster','java.awt.event.TextListener']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "TextArea", null, 'javax.swing.JTextArea'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.textListener=null; +this.horizontalScrollBarPolicy=0; +this.verticalScrollBarPolicy=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'isAWT$', function () { +}); + +Clazz_newMeth(C$, 'c$$I$I', function (rows, cols) { +C$.c$$S$I$I$I.apply(this, [null, rows, cols, 0]); +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.c$$S$I$I$I.apply(this, [null, 0, 0, 0]); +}, 1); + +Clazz_newMeth(C$, 'c$$S', function (text) { +C$.c$$S$I$I$I.apply(this, [text, 0, 0, 0]); +}, 1); + +Clazz_newMeth(C$, 'c$$S$I$I', function (text, rows, cols) { +C$.c$$S$I$I$I.apply(this, [text, rows, cols, 0]); +}, 1); + +Clazz_newMeth(C$, 'c$$S$I$I$I', function (text, rows, columns, scrollbars) { +C$.superclazz.c$$S$I$I.apply(this, [text, rows < 0 ? 0 : rows, columns < 0 ? 0 : columns]); +C$.$init$.apply(this); +this.setWrapStyleWord$Z(false); +this.setLineWrap$Z(false); +switch (scrollbars) { +case 0: +p$1.setVerticalScrollBarPolicy$I.apply(this, [20]); +p$1.setHorizontalScrollBarPolicy$I.apply(this, [30]); +break; +case 1: +this.setLineWrap$Z(true); +this.setWrapStyleWord$Z(true); +p$1.setVerticalScrollBarPolicy$I.apply(this, [20]); +p$1.setHorizontalScrollBarPolicy$I.apply(this, [31]); +break; +case 2: +p$1.setVerticalScrollBarPolicy$I.apply(this, [21]); +p$1.setHorizontalScrollBarPolicy$I.apply(this, [30]); +break; +case 3: +this.setLineWrap$Z(true); +this.setWrapStyleWord$Z(true); +p$1.setVerticalScrollBarPolicy$I.apply(this, [21]); +p$1.setHorizontalScrollBarPolicy$I.apply(this, [31]); +break; +} +}, 1); + +Clazz_newMeth(C$, 'getVerticalScrollBarPolicy$', function () { +return this.verticalScrollBarPolicy; +}); + +Clazz_newMeth(C$, 'setVerticalScrollBarPolicy$I', function (policy) { +var old=this.verticalScrollBarPolicy; +this.verticalScrollBarPolicy=policy; +this.firePropertyChange$S$I$I("verticalScrollBarPolicy", old, policy); +this.revalidate$(); +this.秘repaint$(); +}, p$1); + +Clazz_newMeth(C$, 'getHorizontalScrollBarPolicy$', function () { +return this.horizontalScrollBarPolicy; +}); + +Clazz_newMeth(C$, 'setHorizontalScrollBarPolicy$I', function (policy) { +var old=this.horizontalScrollBarPolicy; +this.horizontalScrollBarPolicy=policy; +this.firePropertyChange$S$I$I("horizontalScrollBarPolicy", old, policy); +this.revalidate$(); +this.秘repaint$(); +}, p$1); + +Clazz_newMeth(C$, 'getScrollbarVisibility$', function () { +var v=(this.getVerticalScrollBarPolicy$() != 21); +var h=(this.getHorizontalScrollBarPolicy$() != 31); +return (v && h ? 0 : v ? 1 : h ? 2 : 3); +}); + +Clazz_newMeth(C$, 'addTextListener$java_awt_event_TextListener', function (l) { +if (l == null ) { +return; +}this.textListener=$I$(1).add$java_awt_event_TextListener$java_awt_event_TextListener(this.textListener, l); +this.newEventsOnly=true; +}); + +Clazz_newMeth(C$, 'removeTextListener$java_awt_event_TextListener', function (l) { +if (l == null ) { +return; +}this.textListener=$I$(1).remove$java_awt_event_TextListener$java_awt_event_TextListener(this.textListener, l); +}); + +Clazz_newMeth(C$, 'getTextListeners$', function () { +return this.getListeners$Class(Clazz_getClass($I$(2),['textValueChanged$java_awt_event_TextEvent'])); +}); + +Clazz_newMeth(C$, 'getPreferredSize$I$I', function (rows, columns) { +return this.preferredSize$I$I(rows, columns); +}); + +Clazz_newMeth(C$, 'preferredSize$I$I', function (rows, columns) { +return C$.superclazz.prototype.getSizeJS$java_awt_Dimension$I$I$I.apply(this, [null, 400, rows, columns]); +}); + +Clazz_newMeth(C$, 'getPreferredSize$', function () { +return this.preferredSize$(); +}); + +Clazz_newMeth(C$, 'preferredSize$', function () { +return ((this.rows > 0) && (this.columns > 0) ) ? this.preferredSize$I$I(this.rows, this.columns) : C$.superclazz.prototype.preferredSize$.apply(this, []); +}); + +Clazz_newMeth(C$, 'getColumnWidth$', function () { +if (this.columnWidth == 0) { +var metrics=this.getFontMetrics$java_awt_Font(this.getFont$()); +this.columnWidth=metrics.charWidth$C("n"); +}return this.columnWidth; +}); + +Clazz_newMeth(C$, 'getMinimumSize$I$I', function (rows, columns) { +return this.minimumSize$I$I(rows, columns); +}); + +Clazz_newMeth(C$, 'minimumSize$I$I', function (rows, columns) { +return C$.superclazz.prototype.getSizeJS$java_awt_Dimension$I$I$I.apply(this, [null, 100, rows, columns]); +}); + +Clazz_newMeth(C$, 'getJ2SWidth$I', function (columns) { +return columns * this.getColumnWidth$() + 24; +}); + +Clazz_newMeth(C$, 'getMinimumSize$', function () { +return this.minimumSize$(); +}); + +Clazz_newMeth(C$, 'minimumSize$', function () { +/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$()); +{ +return ((this.rows > 0) && (this.columns > 0) ) ? this.minimumSize$I$I(this.rows, this.columns) : C$.superclazz.prototype.minimumSize$.apply(this, []); +}}); + +Clazz_newMeth(C$, 'getInputMethodRequests$', function () { +return null; +}); + +Clazz_newMeth(C$, 'setCaretPosition$I', function (pos) { +C$.superclazz.prototype.setCaretPosition$I.apply(this, [pos]); +C$.superclazz.prototype.requestFocusInWindow$.apply(this, []); +}); + +Clazz_newMeth(C$, 'awtDefaults$', function () { +}); + +Clazz_newMeth(C$, 'setTextFromUI$S', function (t) { +C$.superclazz.prototype.setText$S.apply(this, [t]); +}); + +Clazz_newMeth(C$, 'appendText$S', function (str) { +C$.superclazz.prototype.append$S.apply(this, [str]); +p$1.toEnd.apply(this, []); +}); + +Clazz_newMeth(C$, 'append$S', function (str) { +C$.superclazz.prototype.append$S.apply(this, [str]); +p$1.toEnd.apply(this, []); +}); + +Clazz_newMeth(C$, 'toEnd', function () { +C$.superclazz.prototype.setCaretPosition$I.apply(this, [C$.superclazz.prototype.getText$.apply(this, []).length$()]); +C$.superclazz.prototype.requestFocusInWindow$.apply(this, []); +this.firePropertyChange$S$O$O("JSToEnd", null, "JSToEnd"); +}, p$1); + +Clazz_newMeth(C$, 'replaceText$S$I$I', function (str, start, end) { +C$.superclazz.prototype.replaceRange$S$I$I.apply(this, [str, start, end]); +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:37 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("swingjs.a2s"),I$=[[0,'java.awt.Insets','java.awt.event.TextEvent','swingjs.a2s.A2SEvent']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "TextField", null, 'javax.swing.JTextField'); +C$.awtInsets=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.awtInsets=Clazz_new_($I$(1).c$$I$I$I$I,[0, 1, 0, 1]); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'isAWT$', function () { +}); + +Clazz_newMeth(C$, 'c$', function () { +C$.c$$S$I.apply(this, ["", 0]); +}, 1); + +Clazz_newMeth(C$, 'c$$S', function (text) { +C$.c$$S$I.apply(this, [text, (text != null ) ? text.length$() : 0]); +}, 1); + +Clazz_newMeth(C$, 'c$$I', function (width) { +C$.c$$S$I.apply(this, ["", width]); +}, 1); + +Clazz_newMeth(C$, 'c$$S$I', function (text, width) { +C$.superclazz.c$$S$I.apply(this, [text, width]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'getMargin$', function () { +return C$.awtInsets; +}); + +Clazz_newMeth(C$, 'addTextListener$java_awt_event_TextListener', function (textListener) { +this.getDocument$().addDocumentListener$javax_swing_event_DocumentListener(((P$.TextField$1|| +(function(){var C$=Clazz_newClass(P$, "TextField$1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'javax.swing.event.DocumentListener', 1); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'insertUpdate$javax_swing_event_DocumentEvent', function (e) { +this.$finals$.textListener.textValueChanged$(Clazz_new_($I$(2).c$$O$I,[this, 0])); +}); + +Clazz_newMeth(C$, 'removeUpdate$javax_swing_event_DocumentEvent', function (e) { +this.$finals$.textListener.textValueChanged$(Clazz_new_($I$(2).c$$O$I,[this, 0])); +}); + +Clazz_newMeth(C$, 'changedUpdate$javax_swing_event_DocumentEvent', function (e) { +this.$finals$.textListener.textValueChanged$(Clazz_new_($I$(2).c$$O$I,[this, 0])); +}); +})() +), Clazz_new_(P$.TextField$1.$init$, [this, {textListener: textListener}]))); +}); + +Clazz_newMeth(C$, 'getPreferredSize$', function () { +return this.preferredSize$I(this.columns); +}); + +Clazz_newMeth(C$, 'preferredSize$', function () { +return this.preferredSize$I(this.columns); +}); + +Clazz_newMeth(C$, 'getPreferredSize$I', function (columns) { +return this.preferredSize$I(columns); +}); + +Clazz_newMeth(C$, 'preferredSize$I', function (columns) { +return this.getPrefSizeJTF$I(columns); +}); + +Clazz_newMeth(C$, 'getMinimumSize$I', function (columns) { +return this.minimumSize$I(columns); +}); + +Clazz_newMeth(C$, 'minimumSize$I', function (columns) { +return this.getMinimumSizeJTF$I(columns); +}); + +Clazz_newMeth(C$, 'getMinimumSize$', function () { +return this.minimumSize$(); +}); + +Clazz_newMeth(C$, 'minimumSize$', function () { +/*sync org.eclipse.jdt.core.dom.MethodInvocation*/(this.getTreeLock$()); +{ +return (this.columns > 0) ? this.minimumSize$I(this.columns) : C$.superclazz.prototype.minimumSize$.apply(this, []); +}}); + +Clazz_newMeth(C$, 'getColumnWidth$', function () { +if (this.columnWidth == 0) { +var metrics=this.getFontMetrics$java_awt_Font(this.getFont$()); +this.columnWidth=metrics.charWidth$C("_"); +}return this.columnWidth; +}); + +Clazz_newMeth(C$, 'getJ2SWidth$I', function (columns) { +return columns * this.getColumnWidth$() + 24; +}); + +Clazz_newMeth(C$, 'fireActionPerformed$', function () { +$I$(3).addListener$java_awt_Component(this); +C$.superclazz.prototype.fireActionPerformed$.apply(this, []); +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:37 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("swingjs.api"),I$=[]; +var C$=Clazz_newClass(P$, "Interface"); +C$.instances=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.instances=""; +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'getInstanceWithParams$S$ClassA$OA', function (name, classes, params) { +try { +var cl=Clazz_forName(name); +return cl.getConstructor$ClassA(classes).newInstance$OA(params); +} catch (e) { +if (Clazz_exceptionOf(e,"Exception")){ +return null; +} else { +throw e; +} +} +}, 1); + +Clazz_newMeth(C$, 'getInstance$S$Z', function (name, isQuiet) { +var x=null; +{ +Clazz._isQuiet = isQuiet; +} +try { +if (!isQuiet && C$.instances.indexOf$S(name + ";") <= 0 ) { +System.out.println$S("swingjs.api.Interface creating instance of " + name); +C$.instances += name + ";"; +}var y=Clazz_forName(name); +if (y != null ) x=y.newInstance$(); +} catch (e) { +System.out.println$S("Swingjs.api.Interface Error creating instance for " + name + ": \n" + e ); +{ +if (e.stack)System.out.println(e.stack); +} +} finally { +{ +Clazz._isQuiet = false; +} +} +return x; +}, 1); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:37 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("swingjs.api.js"),I$=[[0,'swingjs.JSUtil']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "DOMNode"); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'createElement', function (key, id) { +var node=null; + +node = document.createElement(key); +id && (node.id = id); +return node; +}, 1); + +Clazz_newMeth(C$, 'getElement', function (id) { +return (document.getElementById(id) ||null); +}, 1); + +Clazz_newMeth(C$, 'createTextNode', function (text) { +return (document.createTextNode(text) ||null); +}, 1); + +Clazz_newMeth(C$, 'getParent', function (node) { +return (node.parentNode ||null); +}, 1); + +Clazz_newMeth(C$, 'getPreviousSibling', function (node) { +return (node.previousSibling ||null); +}, 1); + +Clazz_newMeth(C$, 'firstChild', function (node) { +return (node.firstChild ||null); +}, 1); + +Clazz_newMeth(C$, 'lastChild', function (node) { +return (node.lastChild ||null); +}, 1); + +Clazz_newMeth(C$, 'setZ', function (node, z) { +return C$.setStyles(node, ["z-index", "" + z]); +}, 1); + +Clazz_newMeth(C$, 'getAttr', function (node, attr) { +{ +if (!node) return null; +var a = node[attr]; +return (typeof a == "undefined" ? null : a); +} +}, 1); + +Clazz_newMeth(C$, 'getAttrInt', function (node, attr) { +return (node && node[attr] ||0); +}, 1); + +Clazz_newMeth(C$, 'getStyle', function (node, style) { +return (node && node.style[style] ||null); +}, 1); + +Clazz_newMeth(C$, 'getCSSRectangle', function (node, r) { + +r.x = parseInt(node.style.left.split("p")[0]); +r.y = parseInt(node.style.top.split("p")[0]); +r.width = parseInt(node.style.width.split("p")[0]); +r.height = parseInt(node.style.height.split("p")[0]); +}, 1); + +Clazz_newMeth(C$, 'setAttr', function (node, attr, val) { + +node[attr] = (val == "TRUE" ? true : val == "FALSE" ? false : val); +return node; +}, 1); + +Clazz_newMeth(C$, 'setAttrInt', function (node, attr, val) { + +node[attr] = val; +}, 1); + +Clazz_newMeth(C$, 'setAttrs', function (node, attr) { + +for (var i = 0; i < attr.length;) { var key = attr[i++]; +var val = attr[i++]; +key && (node[key] = val); +} +return node; +}, 1); + +Clazz_newMeth(C$, 'setStyles', function (node, attr) { + +if (node) for (var i = 0; i < attr.length;) { // +node.style[attr[i++]] = attr[i++]; +// +} +return node; +}, 1); + +Clazz_newMeth(C$, 'setSize', function (node, width, height) { +return C$.setStyles(node, ["width", width + "px", "height", height + "px"]); +}, 1); + +Clazz_newMeth(C$, 'setPositionAbsolute', function (node) { +return C$.setStyles(node, ["position", "absolute"]); +}, 1); + +Clazz_newMeth(C$, 'setVisible', function (node, visible) { +C$.setStyles(node, ["display", visible ? "block" : "none"]); +}, 1); + +Clazz_newMeth(C$, 'setTopLeftAbsolute', function (node, top, left) { +C$.setStyles(node, ["top", top + "px"]); +C$.setStyles(node, ["left", left + "px"]); +return C$.setStyles(node, ["position", "absolute"]); +}, 1); + +Clazz_newMeth(C$, 'setCursor', function (c, comp) { +var ui=(comp == null ? null : (comp).秘getUI$()); +var node=(ui == null ? null : ui.getDOMNode$()); + +if (node == null) {document.body.style.cursor = c} else { node.style.cursor = c } +}, 1); + +Clazz_newMeth(C$, 'getImageNode', function (img) { +return (img.秘canvas || img.秘imgNode ||null); +}, 1); + +Clazz_newMeth(C$, 'addHorizontalGap', function (domNode, gap) { +var label=C$.setStyles(C$.createElement("label", null), ["letter-spacing", gap + "px", "font-size", "0pt"]); +label.appendChild(C$.createTextNode(".")); +domNode.appendChild(label); +}, 1); + +Clazz_newMeth(C$, 'appendChildSafely', function (parent, node) { + +if (!parent || node.parentElement == parent) return; +parent.appendChild(node); +}, 1); + +Clazz_newMeth(C$, 'getAudioElement', function (filePath, isLoop) { +var clip=C$.setAttrs(C$.createElement("audio", null), ["controls", "true", (isLoop ? "loop" : null), (isLoop ? "true" : null), "src", filePath]); + +clip.play$ = clip.play; +clip.stop$ = clip.stop; +clip.loop$ = clip.loop; +return clip; +}, 1); + +Clazz_newMeth(C$, 'getHeight', function (node) { +return $I$(1).jQuery.$(node).height(); +}, 1); + +Clazz_newMeth(C$, 'getWidth', function (node) { +return $I$(1).jQuery.$(node).width(); +}, 1); + +Clazz_newMeth(C$, 'dispose', function (node) { +if (node != null ) $I$(1).jQuery.$(node).remove(); +}, 1); + +Clazz_newMeth(C$, 'remove', function (node) { +var p=C$.getParent(node); +if (p != null ) p.removeChild(node); +}, 1); + +Clazz_newMeth(C$, 'detachAll', function (node) { + +if(node) while(node.lastChild) node.removeChild(node.lastChild); +}, 1); + +Clazz_newMeth(C$, 'transferTo', function (node, container) { +if (node == null ) return null; +var p=C$.getParent(node); +try { +if (p != null ) $I$(1).jQuery.$(node).detach(); +} catch (e) { +} +if (container == null ) return p; +$I$(1).jQuery.$(container).append(node); +return container; +}, 1); + +Clazz_newMeth(C$, 'getComponentFor', function (node) { +if (node == null ) return null; +var ui=(node.ui || node["data-ui"] || node["data-component"] || node["data-textcomponent"] ||null); +return (ui == null ? null : ui.jc); +}, 1); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 13:00:46 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("swingjs.api.js"),I$=[]; +var C$=Clazz_newClass(P$, "HTML5CanvasContext2D", function(){ +Clazz_newInstance(this, arguments,0,C$); +}); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.imageData=null; +this._aSaved=null; +this.lineWidth=0; +this.font=null; +this.fillStyle=null; +this.strokeStyle=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'push', function (ctx, map) { +{ +(ctx._aSaved || (ctx._aSaved = [])).push(map); +return ctx._aSaved.length; +} +}, 1); + +Clazz_newMeth(C$, 'pop', function (ctx) { +{ +return (ctx._aSaved && ctx._aSaved.length > 0 ? ctx._aSaved.pop() : null); +} +}, 1); + +Clazz_newMeth(C$, 'getSavedLevel', function (ctx) { +{ +return (ctx._aSaved ? ctx._aSaved.length : 0); +} +}, 1); + +Clazz_newMeth(C$, 'getMatrix', function (ctx, transform) { +var m=ctx._m ||null; +if (m == null ) { +m=Clazz_array(Double.TYPE, [6]); + +ctx._m = m; +transform.getMatrix$DA(m); +}return m; +}, 1); +; +(function(){var C$=Clazz_newClass(P$.HTML5CanvasContext2D, "ImageData", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.data=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$); +})() + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:37 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("swingjs.api.js"),I$=[]; +var C$=Clazz_newInterface(P$, "JSInterface"); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:37 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("swingjs.api"),I$=[]; +var C$=Clazz_newInterface(P$, "JSMinimalAbstractDocument", null, null, 'javax.swing.text.Document'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-04-17 18:03:46 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("swingjs.jquery"),I$=[]; +var C$=Clazz_newClass(P$, "JQueryUI"); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +{ +{ +if (!jQuery.ui) try{ (function(e,t){function i(t,n){var r,i,o,u=t.nodeName.toLowerCase();return"area"===u?(r=t.parentNode,i=r.name,!t.href||!i||r.nodeName.toLowerCase()!=="map"?!1:(o=e("img[usemap=#"+i+"]")[0],!!o&&s(o))):(/input|select|textarea|button|object/.test(u)?!t.disabled:"a"===u?t.href||n:n)&&s(t)}function s(t){return e.expr.filters.visible(t)&&!e(t).parents().andSelf().filter(function(){return e.css(this,"visibility")==="hidden"}).length}var n=0,r=/^ui-id-\d+$/;e.ui=e.ui||{};if(e.ui.version)return;e.extend(e.ui,{version:"1.9.2",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),e.fn.extend({_focus:e.fn.focus,focus:function(t,n){return typeof t=="number"?this.each(function(){var r=this;setTimeout(function(){e(r).focus(),n&&n.call(r)},t)}):this._focus.apply(this,arguments)},scrollParent:function(){var t;return e.ui.ie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?t=this.parents().filter(function(){return/(relative|absolute|fixed)/.test(e.css(this,"position"))&&/(auto|scroll)/.test(e.css(this,"overflow")+e.css(this,"overflow-y")+e.css(this,"overflow-x"))}).eq(0):t=this.parents().filter(function(){return/(auto|scroll)/.test(e.css(this,"overflow")+e.css(this,"overflow-y")+e.css(this,"overflow-x"))}).eq(0),/fixed/.test(this.css("position"))||!t.length?e(document):t},zIndex:function(n){if(n!==t)return this.css("zIndex",n);if(this.length){var r=e(this[0]),i,s;while(r.length&&r[0]!==document){i=r.css("position");if(i==="absolute"||i==="relative"||i==="fixed"){s=parseInt(r.css("zIndex"),10);if(!isNaN(s)&&s!==0)return s}r=r.parent()}}return 0},uniqueId:function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++n)})},removeUniqueId:function(){return this.each(function(){r.test(this.id)&&e(this).removeAttr("id")})}}),e.extend(e.expr[":"],{data:e.expr.createPseudo?e.expr.createPseudo(function(t){return function(n){return!!e.data(n,t)}}):function(t,n,r){return!!e.data(t,r[3])},focusable:function(t){return i(t,!isNaN(e.attr(t,"tabindex")))},tabbable:function(t){var n=e.attr(t,"tabindex"),r=isNaN(n);return(r||n>=0)&&i(t,!r)}}),e(function(){var t=document.body,n=t.appendChild(n=document.createElement("div"));n.offsetHeight,e.extend(n.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0}),e.support.minHeight=n.offsetHeight===100,e.support.selectstart="onselectstart"in n,t.removeChild(n).style.display="none"}),e("").outerWidth(1).jquery||e.each(["Width","Height"],function(n,r){function u(t,n,r,s){return e.each(i,function(){n-=parseFloat(e.css(t,"padding"+this))||0,r&&(n-=parseFloat(e.css(t,"border"+this+"Width"))||0),s&&(n-=parseFloat(e.css(t,"margin"+this))||0)}),n}var i=r==="Width"?["Left","Right"]:["Top","Bottom"],s=r.toLowerCase(),o={innerWidth:e.fn.innerWidth,innerHeight:e.fn.innerHeight,outerWidth:e.fn.outerWidth,outerHeight:e.fn.outerHeight};e.fn["inner"+r]=function(n){return n===t?o["inner"+r].call(this):this.each(function(){e(this).css(s,u(this,n)+"px")})},e.fn["outer"+r]=function(t,n){return typeof t!="number"?o["outer"+r].call(this,t):this.each(function(){e(this).css(s,u(this,t,!0,n)+"px")})}}),e("").data("a-b","a").removeData("a-b").data("a-b")&&(e.fn.removeData=function(t){return function(n){return arguments.length?t.call(this,e.camelCase(n)):t.call(this)}}(e.fn.removeData)),function(){var t=/msie ([\w.]+)/.exec(navigator.userAgent.toLowerCase())||[];e.ui.ie=t.length?!0:!1,e.ui.ie6=parseFloat(t[1],10)===6}(),e.fn.extend({disableSelection:function(){return this.bind((e.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(e){e.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),e.extend(e.ui,{plugin:{add:function(t,n,r){var i,s=e.ui[t].prototype;for(i in r)s.plugins[i]=s.plugins[i]||[],s.plugins[i].push([n,r[i]])},call:function(e,t,n){var r,i=e.plugins[t];if(!i||!e.element[0].parentNode||e.element[0].parentNode.nodeType===11)return;for(r=0;r0?!0:(t[r]=1,i=t[r]>0,t[r]=0,i)},isOverAxis:function(e,t,n){return e>t&&e",options:{disabled:!1,create:null},_createWidget:function(t,r){r=e(r||this.defaultElement||this)[0],this.element=e(r),this.uuid=n++,this.eventNamespace="."+this.widgetName+this.uuid,this.options=e.widget.extend({},this.options,this._getCreateOptions(),t),this.bindings=e(),this.hoverable=e(),this.focusable=e(),r!==this&&(e.data(r,this.widgetName,this),e.data(r,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===r&&this.destroy()}}),this.document=e(r.style?r.ownerDocument:r.document||r),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:e.noop,_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(e.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled "+"ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:e.noop,widget:function(){return this.element},option:function(n,r){var i=n,s,o,u;if(arguments.length===0)return e.widget.extend({},this.options);if(typeof n=="string"){i={},s=n.split("."),n=s.shift();if(s.length){o=i[n]=e.widget.extend({},this.options[n]);for(u=0;u=9||!!t.button?this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,t)!==!1,this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted):this._mouseUp(t)},_mouseUp:function(t){return e(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,t.target===this._mouseDownEvent.target&&e.data(t.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(t)),!1},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(e){return this.mouseDelayMet},_mouseStart:function(e){},_mouseDrag:function(e){},_mouseStop:function(e){},_mouseCapture:function(e){return!0}}) })(jQuery); +}catch (e) { System.out.println("coremenu failed to load jQuery.ui.mouse -- jQuery version conflict?"); +} if (!jQuery.ui.position) try{ (function(e,t){function h(e,t,n){return[parseInt(e[0],10)*(l.test(e[0])?t/100:1),parseInt(e[1],10)*(l.test(e[1])?n/100:1)]}function p(t,n){return parseInt(e.css(t,n),10)||0}e.ui=e.ui||{};var n,r=Math.max,i=Math.abs,s=Math.round,o=/left|center|right/,u=/top|center|bottom/,a=/[\+\-]\d+%?/,f=/^\w+/,l=/%$/,c=e.fn.position;e.position={scrollbarWidth:function(){if(n!==t)return n;var r,i,s=e("
"),o=s.children()[0];return e("body").append(s),r=o.offsetWidth,s.css("overflow","scroll"),i=o.offsetWidth,r===i&&(i=s[0].clientWidth),s.remove(),n=r-i},getScrollInfo:function(t){var n=t.isWindow?"":t.element.css("overflow-x"),r=t.isWindow?"":t.element.css("overflow-y"),i=n==="scroll"||n==="auto"&&t.width0?"right":"center",vertical:u<0?"top":o>0?"bottom":"middle"};lr(i(o),i(u))?h.important="horizontal":h.important="vertical",t.using.call(this,e,h)}),a.offset(e.extend(C,{using:u}))})},e.ui.position={fit:{left:function(e,t){var n=t.within,i=n.isWindow?n.scrollLeft:n.offset.left,s=n.width,o=e.left-t.collisionPosition.marginLeft,u=i-o,a=o+t.collisionWidth-s-i,f;t.collisionWidth>s?u>0&&a<=0?(f=e.left+u+t.collisionWidth-s-i,e.left+=u-f):a>0&&u<=0?e.left=i:u>a?e.left=i+s-t.collisionWidth:e.left=i:u>0?e.left+=u:a>0?e.left-=a:e.left=r(e.left-o,e.left)},top:function(e,t){var n=t.within,i=n.isWindow?n.scrollTop:n.offset.top,s=t.within.height,o=e.top-t.collisionPosition.marginTop,u=i-o,a=o+t.collisionHeight-s-i,f;t.collisionHeight>s?u>0&&a<=0?(f=e.top+u+t.collisionHeight-s-i,e.top+=u-f):a>0&&u<=0?e.top=i:u>a?e.top=i+s-t.collisionHeight:e.top=i:u>0?e.top+=u:a>0?e.top-=a:e.top=r(e.top-o,e.top)}},flip:{left:function(e,t){var n=t.within,r=n.offset.left+n.scrollLeft,s=n.width,o=n.isWindow?n.scrollLeft:n.offset.left,u=e.left-t.collisionPosition.marginLeft,a=u-o,f=u+t.collisionWidth-s-o,l=t.my[0]==="left"?-t.elemWidth:t.my[0]==="right"?t.elemWidth:0,c=t.at[0]==="left"?t.targetWidth:t.at[0]==="right"?-t.targetWidth:0,h=-2*t.offset[0],p,d;if(a<0){p=e.left+l+c+h+t.collisionWidth-s-r;if(p<0||p0){d=e.left-t.collisionPosition.marginLeft+l+c+h-o;if(d>0||i(d)a&&(v<0||v0&&(d=e.top-t.collisionPosition.marginTop+c+h+p-o,e.top+c+h+p>f&&(d>0||i(d)10&&i<11,t.innerHTML="",n.removeChild(t)}(),e.uiBackCompat!==!1&&function(e){var n=e.fn.position;e.fn.position=function(r){if(!r||!r.offset)return n.call(this,r);var i=r.offset.split(" "),s=r.at.split(" ");return i.length===1&&(i[1]=i[0]),/^\d/.test(i[0])&&(i[0]="+"+i[0]),/^\d/.test(i[1])&&(i[1]="+"+i[1]),s.length===1&&(/left|center|right/.test(s[0])?s[1]="center":(s[1]=s[0],s[0]="center")),n.call(this,e.extend(r,{at:s[0]+i[0]+" "+s[1]+i[1],offset:t}))}}(jQuery) })(jQuery); +}catch (e) { System.out.println("coremenu failed to load jQuery.ui.position -- jQuery version conflict?"); +} +} +}; +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 11:19:01 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("swingjs"),p$1={},I$=[[0,'java.util.Hashtable','swingjs.JSUtil','java.util.Locale']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "JSApp"); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.params=null; +this.appletCodeBase=null; +this.appletIdiomaBase=null; +this.appletDocumentBase=null; +this.appletName=null; +this.htmlName=null; +this.main=null; +this.syncId=null; +this.testAsync=false; +this.async=false; +this.strJavaVersion=null; +this.strJavaVendor=null; +this.isApplet=false; +this.isFrame=false; +this.html5Applet=null; +this.fullName=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.fullName="Main"; +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'c$$java_util_Hashtable', function (params) { +C$.$init$.apply(this); +this.setAppParams$java_util_Hashtable(params); +}, 1); + +Clazz_newMeth(C$, 'getParameter$S', function (name) { +var s=this.params.get$O(name.toLowerCase$()); +return (s == null ? null : "" + s); +}); + +Clazz_newMeth(C$, 'setAppParams$java_util_Hashtable', function (params0) { +this.params=params0; +this.params=Clazz_new_($I$(1)); +for (var e, $e = params0.entrySet$().iterator$(); $e.hasNext$()&&((e=($e.next$())),1);) this.params.put$TK$TV(e.getKey$().toLowerCase$(), e.getValue$()); + +var language=this.getParameter$S("language"); +if (language == null ) language=$I$(2).J2S.getDefaultLanguage(false); +$I$(3).setDefault$java_util_Locale($I$(2).getDefaultLocale$S(language)); +this.htmlName=p$1.extract$S$S.apply(this, ["" + this.getParameter$S("name"), "_object"]); +this.appletName=p$1.extract$S$S.apply(this, [this.htmlName + "_", "_"]); +this.syncId=this.getParameter$S("syncId"); +this.fullName=this.htmlName + "__" + this.syncId + "__" ; +this.params.put$TK$TV("fullname", this.fullName); +var o=this.params.get$O("codepath"); +if (o == null ) o="../java/"; +this.appletCodeBase=o.toString(); +this.appletIdiomaBase=this.appletCodeBase.substring$I$I(0, this.appletCodeBase.lastIndexOf$S$I("/", this.appletCodeBase.length$() - 2) + 1) + "idioma"; +o=this.params.get$O("documentbase"); +this.appletDocumentBase=(o == null ? "" : o.toString()); +if (this.params.containsKey$O("maximumsize")) Math.max((this.params.get$O("maximumsize")).intValue$(), 100); +this.async=(this.testAsync || this.params.containsKey$O("async") ); +var applet=$I$(2).J2S.findApplet(this.htmlName); +var javaver=$I$(2).J2S.getJavaVersion(); +this.html5Applet=applet; +this.strJavaVersion=javaver; +this.strJavaVendor="Java2Script/Java 1.6 (HTML5)"; +o=this.params.get$O("assets"); +if (o != null ) $I$(2).loadJavaResourcesFromZip$ClassLoader$S$java_util_Map(this.getClass$().getClassLoader$(), o, null); +System.out.println$S("JSApp initialized"); +}); + +Clazz_newMeth(C$, 'extract$S$S', function (string, key) { +{ +return string.split(key)[0]; +} +return null; +}, p$1); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:32 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("swingjs"),I$=[[0,'swingjs.JSUtil']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "JSApplet", null, 'javax.swing.JApplet'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, ['runMain$S$SA','runMain'], function (className, args) { +var theClass=null; +try { +theClass=Clazz_forName(className); +} catch (e) { +if (Clazz_exceptionOf(e,"ClassNotFoundException")){ +System.out.println$S("Running main but cannot find class " + className); +$I$(1).alert$O("Cannot find class " + className + " for running main(args)" ); +e.printStackTrace$(); +return null; +} else { +throw e; +} +} +System.out.println$S("Running main(args) in class " + className); +{ +setTimeout(function(){theClass.$clazz$.main$SA.call(null, args || []);},1); +} +return theClass; +}); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-02-06 18:31:20 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("swingjs"),I$=[[0,'javax.swing.SwingUtilities']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "JSAppletThread", null, 'javajs.util.JSThread'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.秘appletViewer=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$swingjs_JSAppletViewer$ThreadGroup$S', function (ap, group, name) { +C$.superclazz.c$$ThreadGroup$S.apply(this, [group, name]); +C$.$init$.apply(this); +this.秘appletViewer=ap; +}, 1); + +Clazz_newMeth(C$, 'run1$I', function (mode) { +mode=this.秘appletViewer.run1$I(mode); +if (mode != 2) this.dispatchAndReturn$Runnable$I(null, mode); +}); + +Clazz_newMeth(C$, 'dispatchAndReturn$Runnable$I', function (r, mode) { +var m=mode; +$I$(1).invokeLater$Runnable(((P$.JSAppletThread$1|| +(function(){var C$=Clazz_newClass(P$, "JSAppletThread$1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'Runnable', 1); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'run$', function () { +this.b$['swingjs.JSAppletThread'].run1$I.apply(this.b$['swingjs.JSAppletThread'], [this.$finals$.m]); +}); +})() +), Clazz_new_(P$.JSAppletThread$1.$init$, [this, {m: m}]))); +}); + +Clazz_newMeth(C$, 'myInit$', function () { +return false; +}); + +Clazz_newMeth(C$, 'isLooping$', function () { +return false; +}); + +Clazz_newMeth(C$, 'myLoop$', function () { +return false; +}); + +Clazz_newMeth(C$, 'whenDone$', function () { +}); + +Clazz_newMeth(C$, 'getDelayMillis$', function () { +return 0; +}); + +Clazz_newMeth(C$, 'onException$Exception', function (e) { +}); + +Clazz_newMeth(C$, 'doFinally$', function () { +}); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:32 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("swingjs"),p$1={},I$=[[0,'java.net.URL','swingjs.api.Interface','java.awt.Dimension','javajs.util.Lst','java.awt.Insets','swingjs.JSThreadGroup','swingjs.JSAppletThread','Thread','sun.awt.SunToolkit','java.awt.Toolkit','swingjs.JSGraphicsConfiguration','sun.applet.AppletEventMulticaster','sun.applet.AppletEvent','javax.swing.JFrame','javax.swing.SwingUtilities','javax.imageio.ImageIO','java.util.ArrayList','swingjs.JSUtil','java.awt.Font','swingjs.JSFocusPeer','javajs.util.PT','swingjs.JSFrameViewer','swingjs.JSToolkit']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "JSAppletViewer", null, 'swingjs.JSFrameViewer', ['java.applet.AppletStub', 'java.applet.AppletContext']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +{ +try { +$I$(1).setURLStreamHandlerFactory$java_net_URLStreamHandlerFactory($I$(2).getInstance$S$Z("javajs.util.AjaxURLStreamHandlerFactory", false)); +} catch (e) { +} +}; +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.maximumSize=0; +this.graphicsConfig=null; +this.threadGroup=null; +this.myThread=null; +this.haveFrames=false; +this.defaultAppletSize=null; +this.currentAppletSize=null; +this.nextStatus=0; +this.status=0; +this.listeners=null; +this.allWindows=null; +this.sharedOwnerFrame=null; +this.appContext=null; +this.timerQueue=null; +this.isResizable=false; +this.haveResizable=false; +this.addFrame=false; +this.jAppletFrame=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.maximumSize=2147483647; +this.haveFrames=false; +this.defaultAppletSize=Clazz_new_($I$(3).c$$I$I,[10, 10]); +this.currentAppletSize=Clazz_new_($I$(3).c$$I$I,[10, 10]); +this.status=0; +this.allWindows=Clazz_new_($I$(4)); +}, 1); + +Clazz_newMeth(C$, 'addWindow$java_awt_Window', function (window) { +this.allWindows.removeObj$O(window); +this.allWindows.addLast$TV(window); +}); + +Clazz_newMeth(C$, 'c$$java_util_Hashtable', function (params) { +C$.superclazz.c$$java_util_Hashtable.apply(this, [params]); +C$.$init$.apply(this); +System.out.println$S("JSAppletViewer initializing2"); +this.isApplet=true; +this.appletViewer=this; +p$1.setDisplayParams$java_util_Hashtable.apply(this, [params]); +}, 1); + +Clazz_newMeth(C$, 'setDisplayParams$java_util_Hashtable', function (params) { +this.display=params.get$O("display"); +var s="" + params.get$O("isResizable"); +this.isResizable="true".equalsIgnoreCase$S(s); +this.haveResizable=(this.isResizable || "false".equalsIgnoreCase$S(s) ); +this.addFrame="true".equalsIgnoreCase$S("" + params.get$O("addFrame")); +this.insets=Clazz_new_($I$(5).c$$I$I$I$I,[0, 0, 0, 0]); +this.threadGroup=Clazz_new_($I$(6).c$$S,[this.appletName]); +this.myThread=Clazz_new_($I$(7).c$$swingjs_JSAppletViewer$ThreadGroup$S,[this, this.threadGroup, this.appletName]); +$I$(8).thisThread=(this.myThread); +this.appContext=$I$(9).createNewAppContext$(); +$I$(10).getDefaultToolkit$(); +Clazz_new_($I$(11)).getDevice$(); +}, p$1); + +Clazz_newMeth(C$, 'start$', function () { +if (this.status == 0) this.myThread.start$(); + else this.showStatus$S("already started"); +}); + +Clazz_newMeth(C$, 'addAppletListener$sun_applet_AppletListener', function (l) { +this.listeners=$I$(12).add$sun_applet_AppletListener$sun_applet_AppletListener(this.listeners, l); +}); + +Clazz_newMeth(C$, 'removeAppletListener$sun_applet_AppletListener', function (l) { +this.listeners=$I$(12).remove$sun_applet_AppletListener$sun_applet_AppletListener(this.listeners, l); +}); + +Clazz_newMeth(C$, 'dispatchAppletEvent$I$O', function (id, argument) { +if (this.listeners != null ) { +var evt=Clazz_new_($I$(13).c$$O$I$O,[this, id, argument]); +this.listeners.appletStateChanged$(evt); +}}); + +Clazz_newMeth(C$, 'isActive$', function () { +return true; +}); + +Clazz_newMeth(C$, 'appletResize$I$I', function (width, height) { +var currentSize=Clazz_new_($I$(3).c$$I$I,[this.currentAppletSize.width, this.currentAppletSize.height]); +this.currentAppletSize.width=width; +this.currentAppletSize.height=height; +this.applet.getRootPane$().setBounds$I$I$I$I(0, 0, this.getWidth$(), this.getHeight$()); +this.applet.getContentPane$().setBounds$I$I$I$I(0, 0, this.getWidth$(), this.getHeight$()); +this.applet.setBounds$I$I$I$I(0, 0, width, height); +(this.applet.getContentPane$()).revalidate$(); +if (this.addFrame) { +this.jAppletFrame=Clazz_new_($I$(14).c$$S,["SwingJS Applet Viewer"]); +var pane=this.applet.getContentPane$(); +this.jAppletFrame.setContentPane$java_awt_Container(pane); +this.applet.setVisible$Z(false); +this.jAppletFrame.pack$(); +this.jAppletFrame.setDefaultCloseOperation$I(2); +}$I$(15).invokeLater$Runnable(((P$.JSAppletViewer$1|| +(function(){var C$=Clazz_newClass(P$, "JSAppletViewer$1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'Runnable', 1); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'run$', function () { +this.b$['swingjs.JSAppletViewer'].applet.repaint$I$I$I$I(0, 0, this.b$['swingjs.JSAppletViewer'].getWidth$.apply(this.b$['swingjs.JSAppletViewer'], []), this.b$['swingjs.JSAppletViewer'].getHeight$.apply(this.b$['swingjs.JSAppletViewer'], [])); +this.b$['swingjs.JSAppletViewer'].dispatchAppletEvent$I$O.apply(this.b$['swingjs.JSAppletViewer'], [51234, this.$finals$.currentSize]); +}); +})() +), Clazz_new_(P$.JSAppletViewer$1.$init$, [this, {currentSize: currentSize}]))); +}); + +Clazz_newMeth(C$, 'getDocumentBase$', function () { +try { +return Clazz_new_($I$(1).c$$S,[this.params.get$O("documentbase")]); +} catch (e) { +if (Clazz_exceptionOf(e,"java.net.MalformedURLException")){ +return null; +} else { +throw e; +} +} +}); + +Clazz_newMeth(C$, 'getCodeBase$', function () { +try { +return Clazz_new_($I$(1).c$$S,[this.params.get$O("codepath")]); +} catch (e) { +if (Clazz_exceptionOf(e,"java.net.MalformedURLException")){ +return null; +} else { +throw e; +} +} +}); + +Clazz_newMeth(C$, 'getParameter$S', function (name) { +var s=C$.superclazz.prototype.getParameter$S.apply(this, [name]); +System.out.println$S("JSApp get parameter: " + name + " = " + s ); +return s; +}); + +Clazz_newMeth(C$, 'getAppletContext$', function () { +return this; +}); + +Clazz_newMeth(C$, 'getHeight$', function () { +return this.html5Applet._getHeight(); +}); + +Clazz_newMeth(C$, 'getWidth$', function () { +return this.html5Applet._getWidth(); +}); + +Clazz_newMeth(C$, 'setBounds$I$I$I$I', function (x, y, width, height) { +this.applet.reshape$I$I$I$I(x, y, width, height); +this.currentAppletSize.width=width; +this.currentAppletSize.height=height; +}); + +Clazz_newMeth(C$, 'getImage$java_net_URL', function (url) { +try { +return $I$(16).read$java_net_URL(url); +} catch (t) { +return null; +} +}); + +Clazz_newMeth(C$, 'getApplet$S', function (name) { +var applet=null; +name=name.toLowerCase$(); + +var applets = J2S._applets; +for (var a in applets) { if (a.toLowerCase() == "." + name) { return applets[a]._applet; +} } +return null; +}); + +Clazz_newMeth(C$, 'getApplets$', function () { +var appletList=Clazz_new_($I$(17)); + +var applets = J2S._applets; +for (var a in applets) { var app = applets[a]._applet; +if (app && !appletList.contains$O(app)) appletList.add$O(app); +} +return ((P$.JSAppletViewer$2|| +(function(){var C$=Clazz_newClass(P$, "JSAppletViewer$2", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'java.util.Enumeration', 1); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.i=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.i=0; +}, 1); + +Clazz_newMeth(C$, 'hasMoreElements$', function () { +return this.i < this.$finals$.appletList.size$(); +}); + +Clazz_newMeth(C$, 'nextElement$', function () { +if (this.i >= this.$finals$.appletList.size$()) throw Clazz_new_(Clazz_load('java.util.NoSuchElementException')); +return this.$finals$.appletList.get$I(this.i++); +}); +})() +), Clazz_new_(P$.JSAppletViewer$2.$init$, [this, {appletList: appletList}])); +}); + +Clazz_newMeth(C$, 'showDocument$java_net_URL', function (url) { +$I$(18).showWebPage$java_net_URL$O(url, null); +}); + +Clazz_newMeth(C$, 'showDocument$java_net_URL$S', function (url, target) { +$I$(18).showWebPage$java_net_URL$O(url, target); +}); + +Clazz_newMeth(C$, 'showStatus$S', function (status) { +$I$(18).log$S(status); + +Clazz._LoaderProgressMonitor.showStatus(status, true); +}); + +Clazz_newMeth(C$, 'showAppletStatus$S', function (status) { +this.getAppletContext$().showStatus$S(this.htmlName + " " + status ); +}, p$1); + +Clazz_newMeth(C$, 'showAppletException$Throwable', function (t) { + +p$1.showAppletStatus$S("error " + (t.getMessage ? t.getMessage$() : t)); +if (t.printStackTrace$) t.printStackTrace$(); +else System.out.println(t.stack); +}, p$1); + +Clazz_newMeth(C$, 'run1$I', function (mode) { +System.out.println$S("JSAppletViewer thread run1 mode=" + mode + " status=" + this.nextStatus ); +var ok=false; +switch (mode) { +case 0: +this.currentAppletSize.width=this.defaultAppletSize.width=this.getWidth$(); +this.currentAppletSize.height=this.defaultAppletSize.height=this.getHeight$(); +this.nextStatus=1; +ok=true; +break; +case 1: +switch (this.nextStatus) { +case 1: +if (this.status != 0) { +p$1.showAppletStatus$S.apply(this, ["notdisposed"]); +this.status=7; +break; +}System.out.println$S("JSAppletViewer runloader"); +p$1.runLoader.apply(this, []); +this.nextStatus=(this.main == null ? 2 : 76); +ok=true; +break; +case 2: +if (this.status != 1 && this.status != 5 ) { +p$1.showAppletStatus$S.apply(this, ["notloaded"]); +break; +}System.out.println$S("JSAppletViewer init"); +this.applet.setFont$java_awt_Font(Clazz_new_($I$(19).c$$S$I$I,["Dialog", 0, 12])); +this.applet.秘resizeOriginal$I$I(this.defaultAppletSize.width, this.defaultAppletSize.height); +this.applet.init$(); +this.applet.validate$(); +this.status=2; +p$1.showAppletStatus$S.apply(this, ["initialized"]); +this.nextStatus=3; +ok=true; +break; +case 3: +if (this.status != 2 && this.status != 4 ) { +p$1.showAppletStatus$S.apply(this, ["notstarted"]); +this.status=7; +break; +}this.applet.getRootPane$().addNotify$(); +System.out.println$S("JSAppletViewer start" + this.currentAppletSize); +this.applet.秘resizeOriginal$I$I(this.currentAppletSize.width, this.currentAppletSize.height); +this.applet.start$(); +this.status=3; +p$1.showAppletStatus$S.apply(this, ["started"]); +this.nextStatus=35; +ok=true; +break; +case 35: +this.applet.getContentPane$().setBounds$java_awt_Rectangle(this.applet.getBounds$()); +this.applet.setVisible$Z(true); +this.applet.validate$(); +p$1.showAppletStatus$S.apply(this, ["ready"]); +$I$(18).readyCallback$S$S$java_awt_JSComponent$swingjs_JSAppletViewer(this.appletName, this.fullName, this.applet, this); +if (this.isResizable && !this.addFrame && this.resizer == null ) { +this.resizer=($I$(18).getInstance$S("swingjs.plaf.Resizer")).set$swingjs_JSFrameViewer$javax_swing_RootPaneContainer(this, this.top); +if (this.resizer != null ) this.resizer.show$(); +}$I$(20).setFocusLast$java_applet_JSApplet(this.applet); +this.applet.秘repaint$(); +break; +case 4: +if (this.status == 3) { +this.status=4; +this.applet.setVisible$Z(false); +this.applet.stop$(); +p$1.showAppletStatus$S.apply(this, ["stopped"]); +} else { +p$1.showAppletStatus$S.apply(this, ["notstopped"]); +this.status=7; +}break; +case 5: +if (this.status == 4 || this.status == 2 ) { +this.status=5; +this.applet.destroy$(); +p$1.showAppletStatus$S.apply(this, ["destroyed"]); +} else { +p$1.showAppletStatus$S.apply(this, ["notdestroyed"]); +this.status=7; +}break; +case 75: +if (this.status == 5 || this.status == 1 ) { +p$1.showAppletStatus$S.apply(this, ["notdisposed"]); +this.status=7; +} else { +this.status=0; +this.applet=null; +p$1.showAppletStatus$S.apply(this, ["disposed"]); +}break; +case 76: +p$1.showAppletStatus$S.apply(this, ["running " + this.main]); +var args=this.params.get$O("args"); +if (Clazz_instanceOf(args, "java.lang.String")) args=$I$(21).split$S$S(args, " "); +(this.applet).runMain$swingjs_JSAppletViewer$SA(this, args); +break; +case 6: +break; +default: +System.out.println$S("unrecognized JSAppletViewer status: " + this.nextStatus); +break; +} +break; +default: +System.out.println$S("unrecognized JSAppletThread mode: " + mode); +break; +} +return (ok ? 1 : 2); +}); + +Clazz_newMeth(C$, 'runLoader', function () { +this.dispatchAppletEvent$I$O(51235, null); +this.status=1; +this.main=this.getParameter$S("main"); +var code=(this.main == null ? this.getParameter$S("code") : null); +try { +if (code == null && this.main == null ) { +System.err.println$S("runloader.err-- \"code\" or \"main\" must be specified."); +throw Clazz_new_(Clazz_load('InstantiationException').c$$S,["\"code\" or \"main\" must be specified."]); +}if (code == null ) code="swingjs.JSDummyApplet"; + else if (code.indexOf$S(".") < 0) code="_." + code; +this.top=this.applet=$I$(18).getInstance$S(code); +if (this.applet == null ) { +System.out.println$S(code + " could not be launched"); +this.status=7; +} else if (!(Clazz_instanceOf(this.applet, "javax.swing.JApplet"))) { +$I$(18).alert$O(code + " is not a JApplet!?"); +this.status=7; +}var name=this.htmlName; + +J2S._applets["." + name] = {_applet:this.applet}; +} catch (e$$) { +if (Clazz_exceptionOf(e$$,"InstantiationException")){ +var e = e$$; +{ +this.status=7; +p$1.showAppletException$Throwable.apply(this, [e]); +return; +} +} else if (Clazz_exceptionOf(e$$,"Exception")){ +var e = e$$; +{ +this.status=7; +p$1.showAppletException$Throwable.apply(this, [e]); +return; +} +} else if (Clazz_exceptionOf(e$$,"ThreadDeath")){ +var e = e$$; +{ +this.status=7; +p$1.showAppletStatus$S.apply(this, ["death"]); +return; +} +} else if (Clazz_exceptionOf(e$$,"Error")){ +var e = e$$; +{ +this.status=7; +p$1.showAppletException$Throwable.apply(this, [e]); +return; +} +} else { +throw e$$; +} +} finally { +this.dispatchAppletEvent$I$O(51236, null); +} +if (this.applet != null ) { +this.applet.setStub$java_applet_AppletStub(this); +this.applet.setVisible$Z(false); +this.applet.setDispatcher$(); +p$1.showAppletStatus$S.apply(this, ["loaded"]); +}}, p$1); + +Clazz_newMeth(C$, 'newFrameViewer$Z', function (forceNew) { +return (this.haveFrames || forceNew ? Clazz_new_($I$(22)) : null); +}); + +Clazz_newMeth(C$, 'getTimerQueue$', function () { +return (this.timerQueue == null ? (this.timerQueue=Clazz_new_($I$(17))) : this.timerQueue); +}); + +Clazz_newMeth(C$, 'exit$', function () { +for (var i=this.allWindows.size$(); --i >= 0; ) try { +this.allWindows.get$I(i).dispose$(); +} catch (e) { +} + +}); + +Clazz_newMeth(C$, 'getAudioClip$java_net_URL', function (url) { +return $I$(23).getAudioClip$java_net_URL(url); +}); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:33 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("swingjs"),p$1={},I$=[[0,'swingjs.JSUtil','Thread','java.awt.event.FocusEvent','swingjs.JSToolkit','java.awt.JSComponent','java.awt.event.WindowEvent','java.awt.KeyboardFocusManager']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "JSFocusPeer", null, null, 'java.awt.peer.KeyboardFocusManagerPeer'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.currentWindow=null; +this.currentFocusOwner=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'setCurrentFocusedWindow$java_awt_Window', function (win) { +this.currentWindow=win; +}); + +Clazz_newMeth(C$, 'clearGlobalFocusOwner$java_awt_Window', function (activeWindow) { +this.currentFocusOwner=null; +}); + +Clazz_newMeth(C$, 'getCurrentFocusedWindow$', function () { +var active=p$1.getAccessibleActiveElement.apply(this, []); +var o=$I$(1).jQuery.$(active).closest("swingjs-window"); +return this.currentWindow=C$.getAccessibleComponentFor$swingjs_api_js_DOMNode(o[0] ||null); +}); + +Clazz_newMeth(C$, 'getCurrentFocusOwner$O', function (related) { +this.currentFocusOwner=C$.getAccessibleComponentFor$swingjs_api_js_DOMNode(related == null ? p$1.getAccessibleActiveElement.apply(this, []) : related); +if (this.currentFocusOwner == null ) this.currentWindow=null; +return this.currentFocusOwner; +}); + +Clazz_newMeth(C$, 'setCurrentFocusOwner$java_awt_Component', function (comp) { +this.currentFocusOwner=comp; +if (comp == null ) return; +((comp).ui).focus$(); +}); + +Clazz_newMeth(C$, 'getAccessibleActiveElement', function () { +var node=C$.getActiveElement$(); +return (node == null || C$.getAccessibleComponentFor$swingjs_api_js_DOMNode(node) == null ? null : node); +}, p$1); + +Clazz_newMeth(C$, 'getActiveElement$', function () { +{ +var node = document.activeElement; +return (!node || node == document.body || !node.ui && !node["data-component"] ? null : node); +} +}, 1); + +Clazz_newMeth(C$, 'getAccessibleComponentFor$swingjs_api_js_DOMNode', function (node) { +var c=node && node.ui && node.ui.jc || node && node["data-component"]||null; +return (c != null && c.getAppContext$().getThreadGroup$() === $I$(2).currentThread$().getThreadGroup$() ? c : null); +}, 1); + +Clazz_newMeth(C$, 'handleJSMouseEventFocus$java_awt_AWTEvent', function (e) { +System.out.println$S("handling mouseeventfocus event " + e); +}); + +Clazz_newMeth(C$, 'getCurrentFocusOwner$', function () { +return this.getCurrentFocusOwner$O(null); +}); + +Clazz_newMeth(C$, 'handleJSFocus$O$O$Z', function (jco, related, focusGained) { +var c0=jco; +var e; +if (related == null ) { +e=Clazz_new_($I$(3).c$$java_awt_Component$I,[c0, focusGained ? 1004 : 1005]); +c0.dispatchEvent$java_awt_AWTEvent(e); +return; +}var other; +if (focusGained) { +other=C$.getAccessibleComponentFor$swingjs_api_js_DOMNode(related); +if (other != null && other !== c0 ) { +other.dispatchEvent$java_awt_AWTEvent(Clazz_new_($I$(3).c$$java_awt_Component$I$Z$java_awt_Component,[other, 1005, false, c0])); +}c0.dispatchEvent$java_awt_AWTEvent(Clazz_new_($I$(3).c$$java_awt_Component$I$Z$java_awt_Component,[c0, 1004, false, other])); +} else { +other=$I$(4).getCurrentFocusOwner$O(related); +c0.dispatchEvent$java_awt_AWTEvent(Clazz_new_($I$(3).c$$java_awt_Component$I$Z$java_awt_Component,[c0, 1005, false, other])); +if (other != null && other !== c0 ) other.dispatchEvent$java_awt_AWTEvent(Clazz_new_($I$(3).c$$java_awt_Component$I$Z$java_awt_Component,[other, 1004, false, c0])); +}}, 1); + +Clazz_newMeth(C$, 'checkFrameFocusOnMouseDown$java_awt_AWTEvent', function (e) { +var p=$I$(5).秘getTopInvokableAncestor$java_awt_Component$Z(e.getSource$(), true); +if (this.getCurrentFocusOwner$() != null && p === this.currentWindow ) return; +var w=this.currentWindow; +p.dispatchEvent$java_awt_AWTEvent(Clazz_new_($I$(6).c$$java_awt_Window$I,[p, 205])); +this.setCurrentFocusedWindow$java_awt_Window(p); +if (Clazz_instanceOf(p, "javax.swing.JInternalFrame")) { +try { +(p).setSelected$Z(true); +} catch (e1) { +if (Clazz_exceptionOf(e1,"java.beans.PropertyVetoException")){ +e1.printStackTrace$(); +} else { +throw e1; +} +} +} else if (Clazz_instanceOf(p, "java.awt.Window")) { +(p).toFront$(); +}if (p.秘isFocusSetAndEnabled$()) { +((p).ui).focus$(); +C$.handleJSFocus$O$O$Z(p, w, true); +}}); + +Clazz_newMeth(C$, 'focus$swingjs_api_js_DOMNode', function (focusNode) { + +focusNode.focus(); +}, 1); + +Clazz_newMeth(C$, 'setFocusLast$java_applet_JSApplet', function (applet) { +var c=$I$(7).getMostRecentFocusOwner$java_awt_Window(applet); +if (c != null ) c.requestFocus$(); +}, 1); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 13:00:48 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("swingjs"),I$=[[0,'swingjs.JSToolkit']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "JSFontMetrics", null, 'java.awt.FontMetrics'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.fwidths=null; +this.iwidths=null; +this.FIRST_PRINTABLE=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.FIRST_PRINTABLE=32; +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.superclazz.c$$java_awt_Font.apply(this, [null]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'setFont$java_awt_Font', function (f) { +this.font=f; +}); + +Clazz_newMeth(C$, 'getLeading$', function () { +return (this.font.getSize$()/20|0) + 1; +}); + +Clazz_newMeth(C$, 'getAscent$', function () { +return this.font.getSize$(); +}); + +Clazz_newMeth(C$, 'getDescent$', function () { +return (this.font.getSize$()/4|0) + 1; +}); + +Clazz_newMeth(C$, 'charWidth$C', function (pt) { +return (pt.$c() < 256 ? (this.getWidthsFloat$()[pt.$c()]|0) : this.stringWidth$S("" + pt)); +}); + +Clazz_newMeth(C$, 'charWidth$I', function (pt) { +{ +var spt; +return ((pt + 0 == pt ? pt : (pt = (spt = pt).charCodeAt(0))) < 256 ? (this.getWidthsFloat$()[pt] | 0) : this.stringWidth$S(isChar ? spt : String.fromCharCode(pt))); +} +}); + +Clazz_newMeth(C$, 'stringWidth$S', function (s) { +return ($I$(1).getStringWidth$swingjs_api_js_HTML5CanvasContext2D$java_awt_Font$S(null, this.font, s)|0); +}); + +Clazz_newMeth(C$, 'getWidths$', function () { +if (this.iwidths != null ) return this.iwidths; +this.iwidths=Clazz_array(Integer.TYPE, [256]); +this.getWidthsFloat$(); +for (var ch=this.FIRST_PRINTABLE; ch < 256; ch++) { +this.iwidths[ch]=(this.fwidths[ch]|0); +} +return this.iwidths; +}); + +Clazz_newMeth(C$, 'getWidthsFloat$', function () { +if (this.fwidths != null ) return this.fwidths; +this.fwidths=Clazz_array(Float.TYPE, [256]); +for (var ch=this.FIRST_PRINTABLE; ch < 256; ch++) { +this.fwidths[ch]=$I$(1).getStringWidth$swingjs_api_js_HTML5CanvasContext2D$java_awt_Font$S(null, this.font, "" + String.fromCharCode(ch)); +} +return this.fwidths; +}); + +Clazz_newMeth(C$, 'getLineMetrics$S$java_awt_Graphics', function (str, context) { +return this.font.getLineMetrics$S$O(str, null); +}); + +Clazz_newMeth(C$, 'getLineMetrics$S$I$I$java_awt_Graphics', function (str, beginIndex, limit, context) { +return this.font.getLineMetrics$S$I$I$O(str, beginIndex, limit, null); +}); + +Clazz_newMeth(C$, 'getLineMetrics$CA$I$I$java_awt_Graphics', function (chars, beginIndex, limit, context) { +return this.font.getLineMetrics$CA$I$I$O(chars, beginIndex, limit, null); +}); + +Clazz_newMeth(C$, 'getLineMetrics$java_text_CharacterIterator$I$I$java_awt_Graphics', function (ci, beginIndex, limit, context) { +return this.font.getLineMetrics$java_text_CharacterIterator$I$I$O(ci, beginIndex, limit, null); +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:33 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("swingjs"),p$1={},I$=[[0,'java.awt.Insets','swingjs.JSMouse','swingjs.JSGraphics2D','swingjs.api.js.DOMNode','swingjs.plaf.Resizer']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "JSFrameViewer", null, 'swingjs.JSApp', 'swingjs.api.js.JSInterface'); +C$.canvasCount=0; +C$.canvas00=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.jsgraphics=null; +this.top=null; +this.appletViewer=null; +this.resizer=null; +this.insets=null; +this.display=null; +this.applet=null; +this.mouse=null; +this.canvas=null; +this.frameID=null; +this.canvasId=null; +this.resizable=false; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.resizable=true; +}, 1); + +Clazz_newMeth(C$, 'getTopComponent$', function () { +return this.top; +}); + +Clazz_newMeth(C$, 'getInsets$', function () { +return this.insets; +}); + +Clazz_newMeth(C$, 'c$$java_util_Hashtable', function (params) { +C$.superclazz.c$$java_util_Hashtable.apply(this, [params]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.superclazz.c$.apply(this, []); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'setForWindow$javax_swing_RootPaneContainer', function (c) { +this.isFrame=true; +this.top=c; +this.appletViewer=(this.top).秘appletViewer; +if (Clazz_instanceOf(c, "javax.swing.JApplet")) this.applet=c; +this.fullName=this.appletViewer.fullName; +this.canvas=null; +this.jsgraphics=null; +this.insets=Clazz_new_($I$(1).c$$I$I$I$I,[20, 0, 0, 0]); +this.getGraphics$I$I$javax_swing_RootPaneContainer(0, 0, c); +return this; +}); + +Clazz_newMeth(C$, 'cacheFileByName$S$Z', function (fileName, isAdd) { +return 0; +}); + +Clazz_newMeth(C$, 'cachePut$S$O', function (key, data) { +}); + +Clazz_newMeth(C$, 'destroy$', function () { +}); + +Clazz_newMeth(C$, 'getFullName$', function () { +return this.fullName; +}); + +Clazz_newMeth(C$, 'openFileAsyncSpecial$S$I', function (fileName, flags) { +}); + +Clazz_newMeth(C$, 'processMouseEvent$I$I$I$I$J$O$I', function (id, x, y, modifiers, time, jqevent, scroll) { +p$1.getMouse.apply(this, []).processEvent$I$I$I$I$J$O$I(id, x, y, modifiers, time, jqevent, scroll); +return false; +}); + +Clazz_newMeth(C$, 'getMouse', function () { +return (this.mouse == null ? this.mouse=Clazz_new_($I$(2).c$$swingjs_JSFrameViewer,[this]) : this.mouse); +}, p$1); + +Clazz_newMeth(C$, 'processTwoPointGesture$FAAA', function (touches) { +p$1.getMouse.apply(this, []).processTwoPointGesture$FAAA(touches); +}); + +Clazz_newMeth(C$, 'setDisplay$swingjs_api_js_HTML5Canvas', function (canvas) { +this.canvas=canvas; +this.jsgraphics=null; +}); + +Clazz_newMeth(C$, 'setScreenDimension$I$I', function (width, height) { +this.setGraphics$java_awt_Graphics$I$I$javax_swing_RootPaneContainer((this.jsgraphics=null), width, height, this.top); +if (this.top != null ) (this.top).秘resizeOriginal$I$I(width, height); +}); + +Clazz_newMeth(C$, 'setGraphics$java_awt_Graphics$I$I$javax_swing_RootPaneContainer', function (g, width, height, window) { +return (g == null ? this.getGraphics$I$I$javax_swing_RootPaneContainer(width, height, window) : g); +}); + +Clazz_newMeth(C$, 'setStatusDragDropped$I$I$I$S', function (mode, x, y, fileName) { +return false; +}); + +Clazz_newMeth(C$, 'startHoverWatcher$Z', function (enable) { +}); + +Clazz_newMeth(C$, 'getGraphics$', function () { +return this.getGraphics$I$I$javax_swing_RootPaneContainer(0, 0, this.top); +}); + +Clazz_newMeth(C$, 'getGraphics$I$I$javax_swing_RootPaneContainer', function (wNew, hNew, window) { +if (window == null ) window=this.top; +if (window == null ) return null; +var c=window; +if (wNew == 0) { +wNew=Math.max(0, window.getContentPane$().getWidth$()); +hNew=Math.max(0, window.getContentPane$().getHeight$()); +}var wOld=0; +var hOld=0; +if (c.秘canvas != null ) { + +wOld = c.秘canvas.width; hOld = c.秘canvas.height; +}if (wNew >= 0 && hNew >= 0 && (wOld != wNew || hOld != hNew || c.秘canvas == null || this.jsgraphics == null ) ) { +this.jsgraphics=Clazz_new_($I$(3).c$$O,[c.秘canvas=p$1.newCanvas$I$I$javax_swing_RootPaneContainer.apply(this, [wNew, hNew, window])]); +}return this.jsgraphics; +}); + +Clazz_newMeth(C$, 'newCanvas$I$I$javax_swing_RootPaneContainer', function (width, height, window) { +if (this.isApplet) { +var c=this.html5Applet._getHtml5Canvas(); +if (c != null ) { +return this.canvas=c; +}}if (width == 0 || height == 0 ) { +width=height=0; +if (C$.canvas00 != null ) return C$.canvas00; +}var userFramedApplet=null; +var root=window.getRootPane$(); +var contentPane=window.getContentPane$(); +if (contentPane.getComponentCount$() > 0) { +var app=contentPane.getComponent$I(0); +if (Clazz_instanceOf(app, "javax.swing.JApplet")) root=(userFramedApplet=app).getRootPane$(); +}var rootNode=(root == null ? null : (root.getUI$()).domNode); +if (rootNode != null ) $I$(4).dispose(this.canvas); +this.display=this.canvasId=this.appletViewer.appletName + "秘canvas" + ++C$.canvasCount ; +this.canvas=$I$(4).createElement("canvas", this.canvasId); +if (userFramedApplet != null ) { +var appViewer=userFramedApplet.getFrameViewer$(); +appViewer.setDisplay$swingjs_api_js_HTML5Canvas(this.canvas); +}var iTop=(root == null ? 0 : root.getContentPane$().getY$()); +$I$(4).setTopLeftAbsolute(this.canvas, iTop, 0); +$I$(4).setStyles(this.canvas, ["width", width + "px", "height", height + "px"]); +if (width > 0) { +var ui=root.getParent$().秘getUI$(); +if (ui != null ) ui.updateDOMNode$(); +if (this.resizer != null ) this.resizer.setPosition$I$I(0, 0); +if (rootNode != null ) { +rootNode.appendChild(this.canvas); +}} else { +C$.canvas00=this.canvas; +} +this.canvas.width = width; this.canvas.height = height; +return this.canvas; +}, p$1); + +Clazz_newMeth(C$, 'setResizable$Z', function (tf) { +this.resizable=tf; +if (!this.isResizable$()) this.resizable=false; +if (this.resizer != null ) this.resizer.setEnabled$Z(this.resizable); + else if (this.resizable && p$1.newResizer.apply(this, []) != null ) this.resizer.setPosition$I$I(0, 0); +}); + +Clazz_newMeth(C$, 'isResizable$', function () { +return this.resizable && (!this.appletViewer.haveResizable || this.appletViewer.isResizable ) ; +}); + +Clazz_newMeth(C$, 'getResizer$', function () { +return (this.resizer != null || !this.isResizable$() ? this.resizer : p$1.newResizer.apply(this, [])); +}); + +Clazz_newMeth(C$, 'newResizer', function () { +this.resizer=Clazz_new_($I$(5)).set$swingjs_JSFrameViewer$javax_swing_RootPaneContainer(this, this.top); +if (this.resizer != null ) this.resizer.show$(); +return this.resizer; +}, p$1); + +Clazz_newMeth(C$, 'getDiv$S', function (id) { +{ +return J2S.$(this.html5Applet, id)[0]; +} +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 13:00:46 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("swingjs"),p$1={},I$=[[0,'java.awt.RenderingHints','java.util.Hashtable','java.awt.geom.AffineTransform','java.awt.BasicStroke','java.awt.Color','swingjs.JSToolkit',['java.awt.geom.RoundRectangle2D','.Double'],'swingjs.api.js.DOMNode','swingjs.JSGraphicsCompositor','swingjs.JSUtil','swingjs.api.js.HTML5CanvasContext2D','java.awt.Font','java.awt.Toolkit','java.awt.Rectangle','java.awt.AlphaComposite']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "JSGraphics2D", null, null, 'Cloneable'); +C$.pixelRatio=0; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.pixelRatio=(function () { var ctx = document.createElement("canvas").getContext("2d"), dpr = window.devicePixelRatio || 1, bsr = ctx.webkitBackingStorePixelRatio || ctx.mozBackingStorePixelRatio || ctx.msBackingStorePixelRatio || ctx.oBackingStorePixelRatio || ctx.backingStorePixelRatio || 1; return dpr / bsr; })() ||1; +{ +System.out.println$S("JSGraphics2D pixelRatio is " + new Float(C$.pixelRatio).toString()); +}; +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.constrainX=0; +this.constrainY=0; +this.width=0; +this.height=0; +this.canvas=null; +this.ctx=null; +this.gc=null; +this.currentStroke=null; +this.currentClip=null; +this.alphaComposite=null; +this.initialState=0; +this.isShifted=false; +this.font=null; +this.hints=null; +this.transform=null; +this.backgroundColor=null; +this.inPath=false; +this.foregroundColor=null; +this.rrect=null; +this.imageData=null; +this.buf8=null; +this.lastx=0; +this.lasty=0; +this.nx=0; +this.ny=0; +this.clearColorSaved=null; +this.clearing=false; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$O', function (canvas) { +C$.$init$.apply(this); +this.hints=Clazz_new_($I$(1).c$$java_util_Map,[Clazz_new_($I$(2))]); +this.canvas=canvas; +this.ctx=this.canvas.getContext("2d"); +this.transform=Clazz_new_($I$(3)); +this.setStroke$java_awt_Stroke(Clazz_new_($I$(4))); +{ +this.gc = SwingJS; this.width = canvas.width; this.height = canvas.height; +} +this.setAntialias$Z(true); +this.setClip$I$I$I$I(0, 0, this.width, this.height); +}, 1); + +Clazz_newMeth(C$, 'setAntialias$Z', function (tf) { + +this.ctx.mozImageSmoothingEnabled = false; +this.ctx.webkitImageSmoothingEnabled = false; +this.ctx.msImageSmoothingEnabled = false; +this.ctx.imageSmoothingEnabled = false; +this.isShifted=tf; +}); + +Clazz_newMeth(C$, 'getDeviceConfiguration$', function () { +return this.gc; +}); + +Clazz_newMeth(C$, 'drawLine$I$I$I$I', function (x0, y0, x1, y1) { +var inPath=this.inPath; +if (!inPath) { +if (x0 == x1 && y0 == y1 ) { +this.ctx.fillRect(x0, y0, 1, 1); +return; +}this.doStroke$Z(true); +}this.ctx.moveTo(x0, y0); +this.ctx.lineTo(x1, y1); +if (!inPath) this.doStroke$Z(false); +}); + +Clazz_newMeth(C$, 'drawOval$I$I$I$I', function (left, top, width, height) { +this.doStroke$Z(true); +if (width == height) p$1.doCirc$I$I$I.apply(this, [left, top, width]); + else p$1.doArc$D$D$D$D$D$D$I.apply(this, [left, top, width, height, 0, 360, 0]); +this.doStroke$Z(false); +}); + +Clazz_newMeth(C$, 'fillOval$I$I$I$I', function (left, top, width, height) { +this.ctx.beginPath(); +if (width == height) p$1.doCirc$I$I$I.apply(this, [left, top, width]); + else p$1.doArc$D$D$D$D$D$D$I.apply(this, [left, top, width, height, 0, 360, 1]); +this.ctx.fill(); +}); + +Clazz_newMeth(C$, 'doCirc$I$I$I', function (left, top, diameter) { +if (diameter <= 0) return; +var r=diameter / 2.0; +this.ctx.arc(left + r, top + r, r, 0, 6.283185307179586, false); +}, p$1); + +Clazz_newMeth(C$, 'drawArc$I$I$I$I$I$I', function (x, y, width, height, startAngle, arcAngle) { +this.doStroke$Z(true); +p$1.doArc$D$D$D$D$D$D$I.apply(this, [x, y, width, height, startAngle, arcAngle, 0]); +this.doStroke$Z(false); +}); + +Clazz_newMeth(C$, 'fillArc$I$I$I$I$I$I', function (centerX, centerY, width, height, startAngle, arcAngle) { +this.ctx.beginPath(); +p$1.doArc$D$D$D$D$D$D$I.apply(this, [centerX, centerY, width, height, startAngle, arcAngle, 1]); +this.ctx.fill(); +}); + +Clazz_newMeth(C$, 'doArc$D$D$D$D$D$D$I', function (x, y, width, height, startAngle, arcAngle, mode) { +if (width <= 0 || height <= 0 ) return; +this.ctx.save(); +{ +if (arcAngle < 0 ) { +startAngle += arcAngle; +arcAngle=-arcAngle; +}this.ctx.translate(x, y); +this.ctx.scale(width / 2, height / 2); +this.ctx.beginPath(); +this.ctx.arc(1, 1, 1, p$1.toRad$D.apply(this, [360 - startAngle]), p$1.toRad$D.apply(this, [360 - arcAngle - startAngle ]), true); +if (mode == 1) this.ctx.lineTo(1, 1); +}this.ctx.restore(); +}, p$1); + +Clazz_newMeth(C$, 'toRad$D', function (a) { +return a * (0.017453292519943295); +}, p$1); + +Clazz_newMeth(C$, 'clearRect$I$I$I$I', function (x, y, width, height) { +p$1.clearRectPriv$I$I$I$I.apply(this, [x, y, width, height]); +}); + +Clazz_newMeth(C$, 'clearRectPriv$I$I$I$I', function (x, y, w, h) { +this.ctx.clearRect(x, y, w, h); +if (!this.clearing) p$1.setGraphicsColor$java_awt_Color.apply(this, [this.backgroundColor == null ? $I$(5).WHITE : this.backgroundColor]); +this.fillRect$I$I$I$I(x, y, w, h); +if (!this.clearing) p$1.setGraphicsColor$java_awt_Color.apply(this, [this.foregroundColor]); +}, p$1); + +Clazz_newMeth(C$, 'drawPolygon$java_awt_Polygon', function (p) { +p$1.doPoly$IA$IA$I$I.apply(this, [p.xpoints, p.ypoints, p.npoints, 1]); +}); + +Clazz_newMeth(C$, 'drawPolygon$IA$IA$I', function (axPoints, ayPoints, nPoints) { +p$1.doPoly$IA$IA$I$I.apply(this, [axPoints, ayPoints, nPoints, 1]); +}); + +Clazz_newMeth(C$, 'drawPolyline$IA$IA$I', function (xPoints, yPoints, nPoints) { +p$1.doPoly$IA$IA$I$I.apply(this, [xPoints, yPoints, nPoints, 0]); +}); + +Clazz_newMeth(C$, 'fillPolygon$java_awt_Polygon', function (p) { +p$1.doPoly$IA$IA$I$I.apply(this, [p.xpoints, p.ypoints, p.npoints, 2]); +}); + +Clazz_newMeth(C$, 'fillPolygon$IA$IA$I', function (axPoints, ayPoints, nPoints) { +p$1.doPoly$IA$IA$I$I.apply(this, [axPoints, ayPoints, nPoints, 2]); +}); + +Clazz_newMeth(C$, 'doPoly$IA$IA$I$I', function (axPoints, ayPoints, nPoints, mode) { +this.ctx.beginPath(); +if (mode != 2) this.ctx.translate(0.5, 0.5); +this.ctx.moveTo(axPoints[0], ayPoints[0]); +for (var i=1; i < nPoints; i++) { +this.ctx.lineTo(axPoints[i], ayPoints[i]); +} +if (mode != 0) this.ctx.lineTo(axPoints[0], ayPoints[0]); +if (mode != 2) { +this.ctx.stroke(); +this.ctx.translate(-0.5, -0.5); +} else { +this.ctx.fill(); +}}, p$1); + +Clazz_newMeth(C$, 'drawRect$I$I$I$I', function (x, y, width, height) { +if (width <= 0 || height <= 0 ) return; +this.ctx.translate(0.5, 0.5); +this.ctx.beginPath(); +this.ctx.rect(x, y, width, height); +this.ctx.stroke(); +this.ctx.translate(-0.5, -0.5); +}); + +Clazz_newMeth(C$, 'fillRect$I$I$I$I', function (x, y, width, height) { +if (width <= 0 || height <= 0 ) return; +this.ctx.fillRect(x, y, width, height); +}); + +Clazz_newMeth(C$, 'draw3DRect$I$I$I$I$Z', function (x, y, width, height, raised) { +p$1.do3DRect$I$I$I$I$Z$I.apply(this, [x, y, width, height, raised, 1]); +}); + +Clazz_newMeth(C$, 'fill3DRect$I$I$I$I$Z', function (x, y, width, height, raised) { +p$1.do3DRect$I$I$I$I$Z$I.apply(this, [x, y, width, height, raised, 2]); +}); + +Clazz_newMeth(C$, 'do3DRect$I$I$I$I$Z$I', function (x, y, width, height, raised, mode) { +if (width <= 0 || height <= 0 ) return; +var p=this.getPaint$(); +var c=this.getColor$(); +var brighter=c.brighter$(); +var darker=c.darker$(); +if (!raised) { +this.setColor$java_awt_Color(darker); +} else if (p !== c ) { +this.setColor$java_awt_Color(c); +}if (mode == 2) this.fillRect$I$I$I$I(x + 1, y + 1, width - 2, height - 2); +this.setColor$java_awt_Color(raised ? brighter : darker); +this.fillRect$I$I$I$I(x, y, 1, height); +this.fillRect$I$I$I$I(x + 1, y, width - 2, 1); +this.setColor$java_awt_Color(raised ? darker : brighter); +this.fillRect$I$I$I$I(x + 1, y + height - 1, width - 1, 1); +this.fillRect$I$I$I$I(x + width - 1, y, 1, height - 1); +this.setPaint$java_awt_Paint(p); +}, p$1); + +Clazz_newMeth(C$, 'setFont$java_awt_Font', function (font) { +if (font === this.font ) return; +this.font=font; +if (font != null ) this.ctx.font=$I$(6).getCanvasFont$java_awt_Font(font); +}); + +Clazz_newMeth(C$, 'setStrokeBold$Z', function (tf) { +p$1.setLineWidth$D.apply(this, [tf ? 2.0 : 1.0]); +}); + +Clazz_newMeth(C$, 'setLineWidth$D', function (d) { +this.ctx.lineWidth=d; +}, p$1); + +Clazz_newMeth(C$, 'canDoLineTo$', function () { +return true; +}); + +Clazz_newMeth(C$, 'doStroke$Z', function (isBegin) { +this.inPath=isBegin; +if (isBegin) { +this.ctx.translate(0.5, 0.5); +this.ctx.beginPath(); +} else { +this.ctx.stroke(); +this.ctx.translate(-0.5, -0.5); +}}); + +Clazz_newMeth(C$, 'lineTo$I$I', function (x2, y2) { +if (this.inPath) { +this.ctx.lineTo(x2, y2); +} else { +this.ctx.translate(0.5, 0.5); +this.ctx.lineTo(x2, y2); +this.ctx.translate(-0.5, -0.5); +}}); + +Clazz_newMeth(C$, 'clip$java_awt_Shape', function (s) { +this.ctx.beginPath(); +p$1.doShape$java_awt_Shape.apply(this, [s]); +this.currentClip=s; +this.ctx.clip(); +}); + +Clazz_newMeth(C$, 'draw$java_awt_Shape', function (s) { +this.doStroke$Z(true); +p$1.doShape$java_awt_Shape.apply(this, [s]); +this.doStroke$Z(false); +}); + +Clazz_newMeth(C$, 'doShape$java_awt_Shape', function (s) { +var pts=Clazz_array(Double.TYPE, [6]); +var pi=s.getPathIterator$java_awt_geom_AffineTransform(null); +while (!pi.isDone$()){ +switch (pi.currentSegment$DA(pts)) { +case 0: +this.ctx.moveTo(pts[0], pts[1]); +break; +case 1: +this.ctx.lineTo(pts[0], pts[1]); +break; +case 2: +this.ctx.quadraticCurveTo(pts[0], pts[1], pts[2], pts[3]); +break; +case 3: +this.ctx.bezierCurveTo(pts[0], pts[1], pts[2], pts[3], pts[4], pts[5]); +break; +case 4: +this.ctx.closePath(); +break; +} +pi.next$(); +} +return pi.getWindingRule$(); +}, p$1); + +Clazz_newMeth(C$, 'fill$java_awt_Shape', function (s) { +this.ctx.beginPath(); +if (p$1.doShape$java_awt_Shape.apply(this, [s]) == 0) { +this.ctx.fill("evenodd"); +} + else this.ctx.fill(); +}); + +Clazz_newMeth(C$, 'drawRoundRect$I$I$I$I$I$I', function (x, y, width, height, arcWidth, arcHeight) { +p$1.doRoundRect$I$I$I$I$I$I$I.apply(this, [x, y, width, height, arcWidth, arcHeight, 1]); +}); + +Clazz_newMeth(C$, 'fillRoundRect$I$I$I$I$I$I', function (x, y, width, height, arcWidth, arcHeight) { +p$1.doRoundRect$I$I$I$I$I$I$I.apply(this, [x, y, width, height, arcWidth, arcHeight, 2]); +}); + +Clazz_newMeth(C$, 'doRoundRect$I$I$I$I$I$I$I', function (x, y, w, h, aw, ah, mode) { +if (this.rrect == null || this.rrect.getX$() != x || this.rrect.getY$() != y || this.rrect.getWidth$() != w || this.rrect.getHeight$() != h || this.rrect.getArcWidth$() != aw || this.rrect.getArcHeight$() != ah ) { +this.rrect=Clazz_new_($I$(7).c$$D$D$D$D$D$D,[x, y, w, h, aw, ah]); +}if (mode == 2) this.fill$java_awt_Shape(this.rrect); + else this.draw$java_awt_Shape(this.rrect); +}, p$1); + +Clazz_newMeth(C$, 'drawImage$java_awt_Image$I$I$java_awt_image_ImageObserver', function (img, x, y, observer) { +return this.drawImagePriv$java_awt_Image$I$I$java_awt_image_ImageObserver(img, x, y, observer); +}); + +Clazz_newMeth(C$, 'drawImage$java_awt_Image$I$I$I$I$java_awt_image_ImageObserver', function (img, x, y, width, height, observer) { +if (width <= 0 || height <= 0 ) return true; +if (img != null ) { +var imgNode=p$1.getImageNode$java_awt_Image.apply(this, [img]); +if (imgNode != null ) this.ctx.drawImage(imgNode, x, y, width, height); +if (observer != null ) p$1.observe$java_awt_Image$java_awt_image_ImageObserver$Z.apply(this, [img, observer, imgNode != null ]); +}return true; +}); + +Clazz_newMeth(C$, 'getImageNode$java_awt_Image', function (img) { +var imgNode=$I$(8).getImageNode(img); +return (imgNode == null ? $I$(9).createImageNode$java_awt_Image(img) : imgNode); +}, p$1); + +Clazz_newMeth(C$, 'observe$java_awt_Image$java_awt_image_ImageObserver$Z', function (img, observer, isOK) { +observer.imageUpdate$(img, (isOK ? 0 : 192), -1, -1, -1, -1); +}, p$1); + +Clazz_newMeth(C$, 'drawImage$java_awt_Image$I$I$I$I$java_awt_Color$java_awt_image_ImageObserver', function (img, x, y, width, height, bgcolor, observer) { +if (width <= 0 || height <= 0 ) return false; +return this.drawImage$java_awt_Image$I$I$I$I$java_awt_image_ImageObserver(img, x, y, width, height, observer); +}); + +Clazz_newMeth(C$, 'drawImage$java_awt_Image$I$I$I$I$I$I$I$I$java_awt_image_ImageObserver', function (img, dx1, dy1, dx2, dy2, sx1, sy1, sx2, sy2, observer) { +if (img != null ) { +var bytes=null; +var imgNode=p$1.getImageNode$java_awt_Image.apply(this, [img]); +if (imgNode != null ) this.ctx.drawImage(imgNode, sx1, sy1, sx2 - sx1, sy2 - sy1, dx1, dy1, dx2 - dx1, dy2 - dy1); +if (observer != null ) p$1.observe$java_awt_Image$java_awt_image_ImageObserver$Z.apply(this, [img, observer, imgNode != null ]); +}return true; +}); + +Clazz_newMeth(C$, 'drawImage$java_awt_Image$I$I$I$I$I$I$I$I$java_awt_Color$java_awt_image_ImageObserver', function (img, dx1, dy1, dx2, dy2, sx1, sy1, sx2, sy2, bgcolor, observer) { +$I$(10).notImplemented$S(null); +return this.drawImage$java_awt_Image$I$I$I$I$I$I$I$I$java_awt_image_ImageObserver(img, dx1, dy1, dx2, dy2, sx1, sy1, sx2, sy2, observer); +}); + +Clazz_newMeth(C$, 'drawImage$java_awt_Image$java_awt_geom_AffineTransform$java_awt_image_ImageObserver', function (img, xform, obs) { +return p$1.drawImageXT$java_awt_Image$java_awt_geom_AffineTransform$java_awt_image_ImageObserver.apply(this, [img, xform, obs]); +}); + +Clazz_newMeth(C$, 'drawRenderedImage$java_awt_image_RenderedImage$java_awt_geom_AffineTransform', function (img, xform) { +p$1.drawImageXT$java_awt_Image$java_awt_geom_AffineTransform$java_awt_image_ImageObserver.apply(this, [img, xform, null]); +}); + +Clazz_newMeth(C$, 'drawRenderableImage$java_awt_image_renderable_RenderableImage$java_awt_geom_AffineTransform', function (img, xform) { +p$1.drawImageXT$java_awt_Image$java_awt_geom_AffineTransform$java_awt_image_ImageObserver.apply(this, [img, xform, null]); +}); + +Clazz_newMeth(C$, 'drawImageXT$java_awt_Image$java_awt_geom_AffineTransform$java_awt_image_ImageObserver', function (img, xform, obs) { +this.ctx.save(); +p$1.transformCTX$java_awt_geom_AffineTransform.apply(this, [xform]); +var ret=this.drawImagePriv$java_awt_Image$I$I$java_awt_image_ImageObserver(img, 0, 0, obs); +this.ctx.restore(); +return ret; +}, p$1); + +Clazz_newMeth(C$, 'drawImagePriv$java_awt_Image$I$I$java_awt_image_ImageObserver', function (img, x, y, observer) { +if (img != null ) { +var pixels=null; +var isRGB=false; + +pixels = img.raster.秘pix ||img.秘pix; isRGB = (img.imageType == 1); +var imgNode=null; +var width=(img).getRaster$().getWidth$(); +var height=(img).getRaster$().getHeight$(); +if (pixels == null ) { +if ((imgNode=p$1.getImageNode$java_awt_Image.apply(this, [img])) != null ) this.ctx.drawImage(imgNode, x, y, width, height); +} else { +this.drawDirect$IA$I$I$I$I$Z(pixels, x, y, width, height, isRGB); +}if (observer != null ) p$1.observe$java_awt_Image$java_awt_image_ImageObserver$Z.apply(this, [img, observer, imgNode != null ]); +}return true; +}); + +Clazz_newMeth(C$, 'drawDirect$IA$I$I$I$I$Z', function (pixels, x, y, width, height, isRGB) { +if (this.buf8 == null || x != this.lastx || y != this.lasty || this.nx != width || this.ny != height ) { +this.imageData=this.ctx.getImageData(x, y, width, height); +this.buf8=this.imageData.data; +this.lastx=x; +this.lasty=y; +this.nx=width; +this.ny=height; +}for (var pt=0, i=0, n=Math.min((this.buf8.length/4|0), pixels.length); i < n; i++) { +var argb=pixels[i]; +this.buf8[pt++]=(argb >> 16) & 255; +this.buf8[pt++]=(argb >> 8) & 255; +this.buf8[pt++]=argb & 255; +this.buf8[pt++]=(isRGB ? 255 : (argb >> 24) & 255); +} +var m=$I$(11).getMatrix(this.ctx, this.transform); +if (m[0] != 1 || m[1] != 0 || m[2] != 0 || m[3] != 1 ) System.err.println$S("Unsupported transform"); +x=(x+(m[4])|0); +y=(y+(m[5])|0); +this.ctx.putImageData(this.imageData, x, y); +}); + +Clazz_newMeth(C$, 'hit$java_awt_Rectangle$java_awt_Shape$Z', function (rect, s, onStroke) { +$I$(10).notImplemented$S(null); +return false; +}); + +Clazz_newMeth(C$, 'getStroke$', function () { +return this.currentStroke; +}); + +Clazz_newMeth(C$, 'setStroke$java_awt_Stroke', function (s) { +if (!(Clazz_instanceOf(s, "java.awt.BasicStroke"))) return; +var b=this.currentStroke=s; +var dash=b.getDashArray$(); +var idash=Clazz_array(Integer.TYPE, [dash == null ? 0 : dash.length]); +for (var i=idash.length; --i >= 0; ) idash[i]=(dash[i]|0); + +this.ctx.setLineDash(idash); +p$1.setLineWidth$D.apply(this, [b.getLineWidth$()]); +var lineCap; +var lineJoin; +var miterLimit=-1; +switch (b.getEndCap$()) { +case 0: +lineCap="butt"; +break; +case 2: +lineCap="square"; +break; +case 1: +default: +lineCap="round"; +} +switch (b.getLineJoin$()) { +case 2: +lineJoin="bevel"; +break; +case 0: +lineJoin="miter"; +miterLimit=b.getMiterLimit$(); +break; +case 1: +lineJoin="round"; +} +{ +this.ctx.lineCap = lineCap; this.ctx.lineJoin = lineJoin; if (miterLimit >= 0) this.ctx.miterLimit = miterLimit; +} +}); + +Clazz_newMeth(C$, 'setRenderingHint$java_awt_RenderingHints_Key$O', function (hintKey, hintValue) { +this.hints.put$O$O(hintKey, hintValue); +}); + +Clazz_newMeth(C$, 'getRenderingHint$java_awt_RenderingHints_Key', function (hintKey) { +return this.hints.get$O(hintKey); +}); + +Clazz_newMeth(C$, 'setRenderingHints$java_util_Map', function (hints) { +this.hints=Clazz_new_($I$(1).c$$java_util_Map,[hints]); +}); + +Clazz_newMeth(C$, 'addRenderingHints$java_util_Map', function (hints) { +for (var e, $e = hints.entrySet$().iterator$(); $e.hasNext$()&&((e=($e.next$())),1);) this.hints.put$O$O(e.getKey$(), e.getValue$()); + +}); + +Clazz_newMeth(C$, 'getRenderingHints$', function () { +return this.hints; +}); + +Clazz_newMeth(C$, 'setBackground$java_awt_Color', function (c) { +this.backgroundColor=c; +}); + +Clazz_newMeth(C$, 'getBackground$', function () { +return this.backgroundColor; +}); + +Clazz_newMeth(C$, 'getColor$', function () { +return this.foregroundColor; +}); + +Clazz_newMeth(C$, 'setColor$java_awt_Color', function (c) { +if (this.clearing) { +this.clearColorSaved=c; +} else { +this.foregroundColor=c; +p$1.setGraphicsColor$java_awt_Color.apply(this, [c]); +}}); + +Clazz_newMeth(C$, 'setPaint$java_awt_Paint', function (paint) { +this.setColor$java_awt_Color(paint); +}); + +Clazz_newMeth(C$, 'getFont$', function () { +if (this.font == null ) this.font=Clazz_new_($I$(12).c$$S$I$I,["Arial", 0, 12]); +return this.font; +}); + +Clazz_newMeth(C$, 'getFontMetrics$', function () { +return this.getFontMetrics$java_awt_Font(this.getFont$()); +}); + +Clazz_newMeth(C$, 'getFontMetrics$java_awt_Font', function (f) { +return $I$(13).getDefaultToolkit$().getFontMetrics$java_awt_Font(f); +}); + +Clazz_newMeth(C$, 'clipRect$I$I$I$I', function (x, y, width, height) { +this.ctx.beginPath(); +this.ctx.rect(x, y, width, height); +p$1.setCurrentClip$I$I$I$I.apply(this, [x, y, width, height]); +this.ctx.clip(); +}); + +Clazz_newMeth(C$, 'setClip$I$I$I$I', function (x, y, width, height) { +p$1.setCurrentClip$I$I$I$I.apply(this, [x, y, width, height]); +this.ctx.beginPath(); +this.ctx.rect(x, y, width, height); +this.ctx.clip(); +}); + +Clazz_newMeth(C$, 'setCurrentClip$I$I$I$I', function (x, y, width, height) { +var r=(Clazz_instanceOf(this.currentClip, "java.awt.Rectangle") ? this.currentClip : null); +if (r == null || r.x != x || r.y != y || r.width != width || r.height != height ) this.currentClip=Clazz_new_($I$(14).c$$I$I$I$I,[x, y, width, height]); +}, p$1); + +Clazz_newMeth(C$, 'setClip$java_awt_Shape', function (clip) { +if (clip == null ) { +this.setClip$I$I$I$I(0, 0, this.width, this.height); +return; +}this.currentClip=clip; +this.ctx.beginPath(); +p$1.doShape$java_awt_Shape.apply(this, [clip]); +this.ctx.clip(); +}); + +Clazz_newMeth(C$, 'hitClip$I$I$I$I', function (x, y, width, height) { +var clipRect=this.getClipBounds$(); +if (clipRect == null ) { +return true; +}return clipRect.intersects$D$D$D$D(x, y, width, height); +}); + +Clazz_newMeth(C$, 'setGraphicsColor$java_awt_Color', function (c) { +if (c == null ) return; +this.ctx.fillStyle=this.ctx.strokeStyle=$I$(6).getCSSColor$java_awt_Color(c); +}, p$1); + +Clazz_newMeth(C$, 'copyArea$I$I$I$I$I$I', function (x, y, width, height, dx, dy) { +this.ctx.putImageData(this.ctx.getImageData(x, y, width, height), x + dx, y + dy); +}); + +Clazz_newMeth(C$, 'getClip$', function () { +return this.currentClip == null ? p$1.getClipBoundsImpl.apply(this, []) : this.currentClip; +}); + +Clazz_newMeth(C$, 'drawString$S$I$I', function (s, x, y) { +p$1.fillText$S$F$F.apply(this, [s, x, y]); +}); + +Clazz_newMeth(C$, 'drawChars$CA$I$I', function (chars, x, y) { +p$1.fillText$S$F$F.apply(this, [String.valueOf$CA(chars), x, y]); +}); + +Clazz_newMeth(C$, 'drawChars$CA$I$I$I$I', function (data, offset, length, x, y) { +this.drawString$S$I$I( String.instantialize(data, offset, length), x, y); +}); + +Clazz_newMeth(C$, 'drawBytes$BA$I$I$I$I', function (data, offset, length, x, y) { +this.drawString$S$I$I( String.instantialize(data, offset, length), x, y); +}); + +Clazz_newMeth(C$, 'drawString$S$F$F', function (str, x, y) { +p$1.fillText$S$F$F.apply(this, [str, x, y]); +}); + +Clazz_newMeth(C$, 'fillText$S$F$F', function (str, x, y) { +this.ctx.fillText(str, x, y); +}, p$1); + +Clazz_newMeth(C$, 'drawString$java_text_AttributedCharacterIterator$I$I', function (iterator, x, y) { +$I$(10).notImplemented$S(null); +}); + +Clazz_newMeth(C$, 'drawString$java_text_AttributedCharacterIterator$F$F', function (iterator, x, y) { +$I$(10).notImplemented$S(null); +}); + +Clazz_newMeth(C$, 'translate$D$D', function (tx, ty) { +$I$(10).notImplemented$S(null); +}); + +Clazz_newMeth(C$, 'shear$D$D', function (shx, shy) { +$I$(10).notImplemented$S(null); +}); + +Clazz_newMeth(C$, 'translate$I$I', function (x, y) { +this.ctx.translate(x, y); +this.transform.translate$D$D(x, y); +}); + +Clazz_newMeth(C$, 'rotate$D', function (radians) { +this.ctx.rotate(radians); +this.transform.rotate$D(radians); +}); + +Clazz_newMeth(C$, 'rotate$D$D$D', function (theta, x, y) { +this.ctx.translate(x, y); +this.ctx.rotate(theta); +this.ctx.translate(-x, -y); +this.transform.rotate$D$D$D(theta, x, y); +}); + +Clazz_newMeth(C$, 'scale$D$D', function (sx, sy) { +this.ctx.scale(sx, sy); +this.transform.scale$D$D(sx, sy); +}); + +Clazz_newMeth(C$, 'transform$java_awt_geom_AffineTransform', function (t) { +p$1.transformCTX$java_awt_geom_AffineTransform.apply(this, [t]); +this.transform.concatenate$java_awt_geom_AffineTransform(t); +}); + +Clazz_newMeth(C$, 'transformCTX$java_awt_geom_AffineTransform', function (t) { +{ +this.ctx.transform (t.m00, t.m10, t.m01, t.m11, t.m02, t.m12); +} +}, p$1); + +Clazz_newMeth(C$, 'setTransform$java_awt_geom_AffineTransform', function (t) { +{ +this.ctx.setTransform (t.m00, t.m10, t.m01, t.m11, t.m02, t.m12); +} +this.transform.setTransform$java_awt_geom_AffineTransform(t); +}); + +Clazz_newMeth(C$, 'getTransform$', function () { +return this.transform.clone$(); +}); + +Clazz_newMeth(C$, 'getPaint$', function () { +return this.getColor$(); +}); + +Clazz_newMeth(C$, 'getFontRenderContext$', function () { +return this.getFontMetrics$java_awt_Font(this.getFont$()).getFontRenderContext$(); +}); + +Clazz_newMeth(C$, 'setPaintMode$', function () { +this.setComposite$java_awt_Composite($I$(15).SrcOver); +}); + +Clazz_newMeth(C$, 'setXORMode$java_awt_Color', function (c) { +if (c == null ) throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["null XORColor"]); +this.setComposite$java_awt_Composite($I$(15).Xor); +}); + +Clazz_newMeth(C$, 'getClipRect$', function () { +return this.getClipBounds$(); +}); + +Clazz_newMeth(C$, 'getClipBounds$', function () { +return this.getClipBounds$java_awt_Rectangle(null); +}); + +Clazz_newMeth(C$, 'getClipBounds$java_awt_Rectangle', function (r) { +var clipRect=p$1.getClipBoundsImpl.apply(this, []); +if (r == null ) { +r=clipRect; +} else { +r.x=clipRect.x; +r.y=clipRect.y; +r.width=clipRect.width; +r.height=clipRect.height; +}return r; +}); + +Clazz_newMeth(C$, 'getClipBoundsImpl', function () { +if (this.currentClip == null ) { +this.currentClip=Clazz_new_($I$(14).c$$I$I$I$I,[0, 0, this.width, this.height]); +}return this.currentClip.getBounds$(); +}, p$1); + +Clazz_newMeth(C$, 'setComposite$java_awt_Composite', function (comp) { +if (comp === this.alphaComposite ) return; +var isAlpha=Clazz_instanceOf(comp, "java.awt.AlphaComposite"); +var newRule=(!isAlpha ? 0 : (comp).getRule$()); +var isValid=(isAlpha && this.alphaComposite == null || newRule != this.alphaComposite.getRule$() ); +if (isValid && $I$(9).setGraphicsCompositeAlpha$swingjs_JSGraphics2D$I(this, newRule) ) { +this.alphaComposite=comp; +}if (newRule == 1) { +this.clearColorSaved=this.foregroundColor; +this.setColor$java_awt_Color($I$(5).black); +this.clearing=true; +} else if (this.clearing) { +this.clearing=false; +this.setColor$java_awt_Color(this.clearColorSaved); +this.clearColorSaved=null; +}this.setAlpha$F(comp == null ? 1 : (comp).getAlpha$()); +}); + +Clazz_newMeth(C$, 'getComposite$', function () { +return this.alphaComposite; +}); + +Clazz_newMeth(C$, 'drawImage$java_awt_image_BufferedImage$java_awt_image_BufferedImageOp$I$I', function (img, op, x, y) { +$I$(9).drawImageOp$swingjs_JSGraphics2D$java_awt_image_BufferedImage$java_awt_image_BufferedImageOp$I$I(this, img, op, x, y); +}); + +Clazz_newMeth(C$, 'setAlpha$F', function (f) { +{ +this.ctx.globalAlpha = f; +} +}); + +Clazz_newMeth(C$, 'getCanvas$', function () { +return this.canvas; +}); + +Clazz_newMeth(C$, 'mark$', function () { +this.ctx.save(); +var map=Clazz_array(java.lang.Object, [7]); +var alpha=0; +{ +alpha = this.ctx.globalAlpha; +} +map[0]=Float.valueOf$F(alpha); +map[1]=this.alphaComposite; +map[2]=this.currentStroke; +map[3]=this.transform; +map[4]=this.font; +map[5]=this.currentClip; +return $I$(11).push(this.ctx, map); +}); + +Clazz_newMeth(C$, 'reset$I', function (n0) { +if (n0 < 1) n0=1; +while ($I$(11).getSavedLevel(this.ctx) >= n0){ +var map=$I$(11).pop(this.ctx); +this.setComposite$java_awt_Composite(map[1]); +var alpha=map[0]; +if (alpha != null ) this.setAlpha$F(alpha.floatValue$()); +this.setStroke$java_awt_Stroke(map[2]); +this.setTransform$java_awt_geom_AffineTransform(map[3]); +this.setFont$java_awt_Font(map[4]); +this.currentClip=map[5]; +this.ctx.restore(); +} +}); + +Clazz_newMeth(C$, 'create$I$I$I$I', function (x, y, width, height) { +var g=this.create$(); +if (g == null ) return null; +g.translate$I$I(x, y); +g.clipRect$I$I$I$I(0, 0, width, height); +return g; +}); + +Clazz_newMeth(C$, 'create$', function () { +return this.clone$(); +}); + +Clazz_newMeth(C$, 'clone$', function () { +var n=this.mark$(); +var g=this; +{ +g = Clazz_clone(this); +} +g.transform=Clazz_new_($I$(3).c$$java_awt_geom_AffineTransform,[this.transform]); +if (this.hints != null ) { +g.hints=this.hints.clone$(); +}g.setStroke$java_awt_Stroke(this.currentStroke.clone$()); +g.initialState=n; +return g; +}); + +Clazz_newMeth(C$, 'dispose$', function () { +this.reset$I(this.initialState); +}); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:33 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("swingjs"),I$=[[0,'java.awt.GraphicsEnvironment','swingjs.api.Interface','java.awt.image.ColorModel','java.awt.image.WritableRaster','Boolean','java.util.Hashtable','swingjs.JSUtil','java.awt.Rectangle']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "JSGraphicsConfiguration", null, 'java.awt.GraphicsConfiguration'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +Clazz_super_(C$, this,1); +System.out.println$S("JSGraphicsConfiguration initialized"); +}, 1); + +Clazz_newMeth(C$, 'getDevice$', function () { +return $I$(1).getLocalGraphicsEnvironment$().getDefaultScreenDevice$(); +}); + +Clazz_newMeth(C$, 'createCompatibleImage$I$I', function (width, height) { +var cm=this.getColorModel$(); +var wr=cm.createCompatibleWritableRaster$I$I(width, height); +return this.newBufferedImage$java_awt_image_ColorModel$java_awt_image_WritableRaster$Z$java_util_Hashtable(cm, wr, false, null); +}); + +Clazz_newMeth(C$, 'newBufferedImage$java_awt_image_ColorModel$java_awt_image_WritableRaster$Z$java_util_Hashtable', function (cm, wr, alphaPremultiplied, properties) { +return $I$(2).getInstanceWithParams$S$ClassA$OA("java.awt.image.BufferedImage", Clazz_array(Class, -1, [Clazz_getClass($I$(3)), Clazz_getClass($I$(4)), Clazz_getClass($I$(5)), Clazz_getClass($I$(6))]), Clazz_array(java.lang.Object, -1, [cm, wr, alphaPremultiplied ? $I$(5).TRUE : $I$(5).FALSE, properties])); +}); + +Clazz_newMeth(C$, 'getColorModel$', function () { +return $I$(3).getRGBdefault$(); +}); + +Clazz_newMeth(C$, 'getColorModel$I', function (transparency) { +return this.getColorModel$(); +}); + +Clazz_newMeth(C$, 'getDefaultTransform$', function () { +return $I$(2).getInstance$S$Z("java.awt.geom.AffineTransform", true); +}); + +Clazz_newMeth(C$, 'getNormalizingTransform$', function () { +return this.getDefaultTransform$(); +}); + +Clazz_newMeth(C$, 'getBounds$', function () { +var doc=document ||null; +var d=$I$(7).jQuery.$(doc); +return Clazz_new_($I$(8).c$$I$I,[d.width(), d.height()]); +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:33 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("swingjs"),I$=[[0,'java.awt.Font','java.awt.Toolkit','swingjs.JSUtil','java.awt.Point','java.awt.GraphicsDevice']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "JSGraphicsEnvironment", null, 'java.awt.GraphicsEnvironment'); +C$.device=null; +C$.availableFonts=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +Clazz_super_(C$, this,1); +System.out.println$S("JSGraphicsEnvironment initialized"); +}, 1); + +Clazz_newMeth(C$, 'createGraphics$java_awt_image_BufferedImage', function (img) { +return img.getImageGraphic$().create$(); +}); + +Clazz_newMeth(C$, 'getAllFonts$', function () { +if (C$.availableFonts == null ) { +var names=this.getAvailableFontFamilyNames$(); +C$.availableFonts=Clazz_array($I$(1), [names.length]); +for (var i=names.length; --i >= 0; ) C$.availableFonts[i]=Clazz_new_($I$(1).c$$S$I$I,[names[i], 0, 1]); + +}return C$.availableFonts; +}); + +Clazz_newMeth(C$, 'getAvailableFontFamilyNames$', function () { +return $I$(2).getDefaultToolkit$().getFontList$(); +}); + +Clazz_newMeth(C$, 'getAvailableFontFamilyNames$java_util_Locale', function (l) { +return $I$(2).getDefaultToolkit$().getFontList$(); +}); + +Clazz_newMeth(C$, 'getDefaultScreenDevice$', function () { +if (C$.device == null ) C$.device=$I$(3).getInstance$S("swingjs.JSScreenDevice"); +return C$.device; +}); + +Clazz_newMeth(C$, 'getCenterPoint$', function () { +var d=$I$(2).getDefaultToolkit$().getScreenSize$(); +return Clazz_new_($I$(4).c$$I$I,[(d.width/2|0), (d.height/2|0)]); +}); + +Clazz_newMeth(C$, 'getScreenDevices$', function () { +return Clazz_array($I$(5), -1, [this.getDefaultScreenDevice$()]); +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:33 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("swingjs"),p$1={},I$=[[0,'swingjs.JSUtil','swingjs.JSToolkit','java.awt.event.MouseWheelEvent','java.awt.event.MouseEvent','java.awt.Toolkit','swingjs.JSKeyEvent']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "JSMouse"); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.viewer=null; +this.jqevent=null; +this.mouse2=null; +this.isCtrlShiftMouseDown=false; +this.wheeling=false; +this.xWhenPressed=0; +this.yWhenPressed=0; +this.modifiersWhenPressed10=0; +this.lasttime=0; +this.lastx=0; +this.lasty=0; +this.clickCount=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$swingjs_JSFrameViewer', function (v) { +C$.$init$.apply(this); +this.viewer=v; +}, 1); + +Clazz_newMeth(C$, 'processEvent$I$I$I$I$J$O$I', function (id, x, y, modifiers, time, jqevent, scroll) { +this.jqevent=jqevent; +switch (id) { +case 401: +case 400: +case 402: +return p$1.keyAction$I$I$O$J.apply(this, [id, modifiers, jqevent, time]); +} +if (id != 507 && id != 503 ) modifiers=C$.applyLeftMouse$I(modifiers); +switch (id) { +case 507: +this.wheeled$J$I$I$I$I(time, x, y, scroll, modifiers); +break; +case 501: +this.xWhenPressed=x; +this.yWhenPressed=y; +this.modifiersWhenPressed10=modifiers & ~16320; +p$1.pressed$J$I$I$I$Z.apply(this, [time, x, y, modifiers, false]); +break; +case 506: +p$1.dragged$J$I$I$I.apply(this, [time, x, y, modifiers]); +break; +case 504: +case 505: +p$1.entry$J$I$I$I.apply(this, [time, x, y, id]); +break; +case 503: +p$1.moved$J$I$I$I.apply(this, [time, x, y, modifiers]); +break; +case 502: +p$1.released$J$I$I$I.apply(this, [time, x, y, modifiers & ~16320]); +if (x == this.xWhenPressed && y == this.yWhenPressed && (modifiers & ~16320) == this.modifiersWhenPressed10 && p$1.getButton$I.apply(this, [id]) != 1 ) { + +jqevent.type = jqevent.originalEvent.j2stype = "click"; +p$1.clicked$J$I$I$I$I.apply(this, [time, x, y, modifiers & ~16320, 1]); +}break; +case 500: +var n=jqevent.originalEvent.detail ||0; +p$1.clicked$J$I$I$I$I.apply(this, [time, x, y, modifiers & ~16320, n]); +break; +default: +return false; +} +return true; +}); + +Clazz_newMeth(C$, 'processTwoPointGesture$FAAA', function (touches) { +p$1.getMouse2.apply(this, []).processTwoPointGesture$FAAA(touches); +}); + +Clazz_newMeth(C$, 'getMouse2', function () { +return (this.mouse2 == null ? (this.mouse2=$I$(1).getInstance$S("swingjs.JSMouse2")).set$swingjs_JSMouse(this) : this.mouse2); +}, p$1); + +Clazz_newMeth(C$, 'translateXYBy$I$I', function (deltaX, deltaY) { +}); + +Clazz_newMeth(C$, 'mouseClicked$java_awt_event_MouseEvent', function (e) { +p$1.clicked$J$I$I$I$I.apply(this, [e.getWhen$(), e.getX$(), e.getY$(), e.getModifiers$(), e.getClickCount$()]); +}); + +Clazz_newMeth(C$, 'mouseEntered$java_awt_event_MouseEvent', function (e) { +p$1.entry$J$I$I$I.apply(this, [e.getWhen$(), e.getX$(), e.getY$(), 504]); +}); + +Clazz_newMeth(C$, 'mouseExited$java_awt_event_MouseEvent', function (e) { +p$1.entry$J$I$I$I.apply(this, [e.getWhen$(), e.getX$(), e.getY$(), 505]); +}); + +Clazz_newMeth(C$, 'mousePressed$java_awt_event_MouseEvent', function (e) { +p$1.pressed$J$I$I$I$Z.apply(this, [e.getWhen$(), e.getX$(), e.getY$(), e.getModifiers$(), e.isPopupTrigger$()]); +}); + +Clazz_newMeth(C$, 'mouseReleased$java_awt_event_MouseEvent', function (e) { +p$1.released$J$I$I$I.apply(this, [e.getWhen$(), e.getX$(), e.getY$(), e.getModifiers$()]); +}); + +Clazz_newMeth(C$, 'mouseDragged$java_awt_event_MouseEvent', function (e) { +var modifiers=e.getModifiers$(); +if ((modifiers & 28) == 0) modifiers|=16; +p$1.dragged$J$I$I$I.apply(this, [e.getWhen$(), e.getX$(), e.getY$(), modifiers]); +}); + +Clazz_newMeth(C$, 'mouseMoved$java_awt_event_MouseEvent', function (e) { +p$1.moved$J$I$I$I.apply(this, [e.getWhen$(), e.getX$(), e.getY$(), e.getModifiers$()]); +}); + +Clazz_newMeth(C$, 'mouseWheelMoved$java_awt_event_MouseWheelEvent', function (e) { +e.consume$(); +this.wheeled$J$I$I$I$I(e.getWhen$(), 0, 0, e.getWheelRotation$(), e.getModifiers$()); +}); + +Clazz_newMeth(C$, 'entry$J$I$I$I', function (time, x, y, id) { +this.wheeling=false; +p$1.mouseEnterExit$J$I$I$I.apply(this, [time, x, y, id]); +}, p$1); + +Clazz_newMeth(C$, 'clicked$J$I$I$I$I', function (time, x, y, modifiers, clickCount) { +p$1.mouseAction$I$J$I$I$I$I$I.apply(this, [500, time, x, y, clickCount, modifiers, 0]); +}, p$1); + +Clazz_newMeth(C$, 'moved$J$I$I$I', function (time, x, y, modifiers) { +if (this.isCtrlShiftMouseDown) p$1.mouseAction$I$J$I$I$I$I$I.apply(this, [506, time, x, y, 0, C$.applyLeftMouse$I(modifiers), 0]); + else p$1.mouseAction$I$J$I$I$I$I$I.apply(this, [503, time, x, y, 0, modifiers, 0]); +}, p$1); + +Clazz_newMeth(C$, 'wheeled$J$I$I$I$I', function (time, x, y, rotation, modifiers) { +this.wheeling=true; +p$1.mouseAction$I$J$I$I$I$I$I.apply(this, [507, time, x, y, 0, modifiers & ~28 | 32, rotation]); +}); + +Clazz_newMeth(C$, 'pressed$J$I$I$I$Z', function (time, x, y, modifiers, isPopupTrigger) { +this.isCtrlShiftMouseDown=((modifiers & (3)) == (3)); +this.wheeling=false; +p$1.mouseAction$I$J$I$I$I$I$I.apply(this, [501, time, x, y, 0, modifiers, 0]); +}, p$1); + +Clazz_newMeth(C$, 'released$J$I$I$I', function (time, x, y, modifiers) { +this.isCtrlShiftMouseDown=false; +this.wheeling=false; +p$1.mouseAction$I$J$I$I$I$I$I.apply(this, [502, time, x, y, 0, modifiers & ~16320, 0]); +}, p$1); + +Clazz_newMeth(C$, 'dragged$J$I$I$I', function (time, x, y, modifiers) { +if (this.wheeling) return; +if ((modifiers & 20) == 20) modifiers=modifiers & ~4 | 2; +p$1.mouseAction$I$J$I$I$I$I$I.apply(this, [506, time, x, y, 0, modifiers, 0]); +}, p$1); + +Clazz_newMeth(C$, 'applyLeftMouse$I', function (modifiers) { +return ((modifiers & 28) == 0) ? (modifiers | 16) : modifiers; +}, 1); + +Clazz_newMeth(C$, 'getButton$I', function (id) { +if (id != 503) { +var e=this.jqevent; +switch (e.button || e.buttons && (8 << e.buttons) ||1) { +case 1: +case 16: +return 1; +case 3: +case 128: +return 2; +case 2: +case 32: +return 3; +} +}return 0; +}, p$1); + +Clazz_newMeth(C$, 'mouseEnterExit$J$I$I$I', function (time, x, y, id) { +p$1.mouseAction$I$J$I$I$I$I$I.apply(this, [id, time, x, y, 0, 0, 0]); +}, p$1); + +Clazz_newMeth(C$, 'updateClickCount$I$J$I$I', function (id, time, x, y) { +var reset=(time - this.lasttime > 500 || Math.abs(x - this.lastx) > 3 || Math.abs(y - this.lasty) > 3 ); +this.lasttime=time; +this.lastx=x; +this.lasty=y; +var ret=this.clickCount; +switch (id) { +case 501: +ret=this.clickCount=(reset ? 1 : this.clickCount + 1); +break; +case 504: +case 505: +this.clickCount=0; +break; +case 503: +if (reset) this.clickCount=0; +break; +case 502: +case 506: +case -1: +break; +} +return ret; +}, p$1); + +Clazz_newMeth(C$, 'mouseAction$I$J$I$I$I$I$I', function (id, time, x, y, xcount, modifiers, dy) { +var button=p$1.getButton$I.apply(this, [id]); +var count=(xcount > 1 && id == 500 ? xcount : p$1.updateClickCount$I$J$I$I.apply(this, [id, time, x, y])); +var popupTrigger=C$.isPopupTrigger$I$I$Z(id, modifiers, $I$(2).isWin); +var source=this.viewer.getTopComponent$(); +var e; +if (id == 507) { +e=Clazz_new_($I$(3).c$$java_awt_Component$I$J$I$I$I$I$I$I$Z$I$I$I,[source, id, time, modifiers, x, y, x, y, count, popupTrigger, 0, 1, dy]); +} else { +e=Clazz_new_($I$(4).c$$java_awt_Component$I$J$I$I$I$I$I$I$Z$I,[source, id, time, modifiers, x, y, x, y, count, popupTrigger, button]); +}var bdata=Clazz_array(Byte.TYPE, [0]); +e.setBData$BA(bdata); +var jqevent=this.jqevent; +var c=null; + +bdata.jqevent = jqevent; bdata.source = c = jqevent.j2sretarget || jqevent.target["data-component"]; bdata.doPropagate = c && c.ui.j2sDoPropagate; +if (c == null ) { +$I$(5).getDefaultToolkit$().getSystemEventQueue$().postEvent$java_awt_AWTEvent(e); +} else { +(e.getSource$()).dispatchEvent$java_awt_AWTEvent(e); +}}, p$1); + +Clazz_newMeth(C$, 'setPropagation$java_awt_Component$java_awt_event_MouseEvent', function (target, e) { + +if (e.bdata && e.bdata.jqevent && target.ui.j2sDoPropagate) e.bdata.jqevent.doPropagate = true; +}, 1); + +Clazz_newMeth(C$, 'checkConsume$java_awt_event_InputEvent', function (e) { +var ui=(e.getSource$()).秘getUI$(); +if (e.bdata != null && ui != null && ui.buttonListener == null && ((!e.bdata.doPropagate ||false)) ) { +$I$(2).consumeEvent$O(e); +}}, 1); + +Clazz_newMeth(C$, 'getJ2SEventTarget$java_awt_event_MouseEvent', function (e) { +return e.bdata.source ||null; +}, 1); + +Clazz_newMeth(C$, 'isPopupTrigger$I$I$Z', function (id, mods, isWin) { +var rt=((mods & 4) != 0); +if (isWin) { +if (id != 502) return false; +return rt; +} else { +if (id != 501) return false; +var lt=((mods & 16) != 0); +var ctrl=((mods & 2) != 0); +return rt || (ctrl && lt ) ; +}}, 1); + +Clazz_newMeth(C$, 'keyAction$I$I$O$J', function (id, modifiers, jqevent, time) { +var c= +jqevent.target["data-shadowkeycomponent"] || jqevent.target["data-keycomponent"] +null; +return $I$(6).dispatchKeyEvent$javax_swing_JComponent$I$I$O$J(c, id, modifiers, jqevent, time); +}, p$1); + +Clazz_newMeth(C$, 'getScroll$O', function (ev) { +{ +var oe = ev.originalEvent; return (oe.detail ? oe.detail : (J2S.featureDetection.os == "mac" ? 1 : -1) * oe.wheelDelta); +} +}, 1); + +Clazz_newMeth(C$, 'getModifiers$O', function (ev) { +var shift=false; +var ctrl=false; +var meta=false; +var alt=false; +var altGraph=false; + +shift = ev.shiftKey; +ctrl = ev.ctrlKey; +alt = ev.altKey; +meta = ev.metaKey; +altGraph = ev.altGraphKey; +var modifiers=0; +if (shift) modifiers|=65; +if (ctrl) modifiers|=130; +if (alt) modifiers|=520; +if (meta) modifiers|=260; +if (altGraph) modifiers|=8224; +return modifiers; +}, 1); + +Clazz_newMeth(C$, 'fixEventType$O$I', function (jqevent, def) { +switch (jqevent.type ||"") { +case "keydown": +return 401; +case "keyup": +return 402; +case "keypress": +return 400; +case "click": +return 500; +case "mousedown": +case "touchstart": +return 501; +case "mouseup": +case "touchend": +return 502; +case "mousemove": +return 503; +case "mousedrag": +return 506; +case "mousewheel": +return 507; +case "mouseover": +case "mouseenter": +return 504; +case "mouseout": +case "mouseleave": +return 505; +} +return def; +}, 1); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 13:00:45 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("swingjs"),I$=[]; +var C$=Clazz_newClass(P$, "JSNullComponentPeer", null, null, 'java.awt.peer.LightweightPeer'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.target=null; +this.isNull=false; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.isNull=true; +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Component', function (target) { +C$.$init$.apply(this); +this.target=target; +}, 1); + +Clazz_newMeth(C$, 'isObscured$', function () { +return false; +}); + +Clazz_newMeth(C$, 'canDetermineObscurity$', function () { +return false; +}); + +Clazz_newMeth(C$, 'setVisible$Z', function (b) { +}); + +Clazz_newMeth(C$, 'setEnabled$Z', function (b) { +}); + +Clazz_newMeth(C$, 'paint$java_awt_Graphics', function (g) { +}); + +Clazz_newMeth(C$, 'repaint$J$I$I$I$I', function (tm, x, y, width, height) { +}); + +Clazz_newMeth(C$, 'print$java_awt_Graphics', function (g) { +}); + +Clazz_newMeth(C$, 'setBounds$I$I$I$I$I', function (x, y, width, height, op) { +}); + +Clazz_newMeth(C$, 'handleEvent$java_awt_AWTEvent', function (e) { +}); + +Clazz_newMeth(C$, 'coalescePaintEvent$java_awt_event_PaintEvent', function (e) { +}); + +Clazz_newMeth(C$, 'getLocationOnScreen$', function () { +return null; +}); + +Clazz_newMeth(C$, 'getPreferredSize$', function () { +return null; +}); + +Clazz_newMeth(C$, 'getMinimumSize$', function () { +return null; +}); + +Clazz_newMeth(C$, 'getColorModel$', function () { +return null; +}); + +Clazz_newMeth(C$, 'getToolkit$', function () { +return null; +}); + +Clazz_newMeth(C$, 'getGraphics$', function () { +return null; +}); + +Clazz_newMeth(C$, 'getFontMetrics$java_awt_Font', function (font) { +return null; +}); + +Clazz_newMeth(C$, 'dispose$', function () { +}); + +Clazz_newMeth(C$, 'setForeground$java_awt_Color', function (c) { +}); + +Clazz_newMeth(C$, 'setBackground$java_awt_Color', function (c) { +}); + +Clazz_newMeth(C$, 'setFont$java_awt_Font', function (f) { +}); + +Clazz_newMeth(C$, 'updateCursorImmediately$', function () { +}); + +Clazz_newMeth(C$, 'requestFocus$java_awt_Component$Z$Z$J$sun_awt_CausedFocusEvent_Cause', function (lightweightChild, temporary, focusedWindowChangeAllowed, time, cause) { +return false; +}); + +Clazz_newMeth(C$, 'isFocusable$', function () { +return false; +}); + +Clazz_newMeth(C$, 'createImage$java_awt_image_ImageProducer', function (producer) { +return null; +}); + +Clazz_newMeth(C$, 'createImage$I$I', function (width, height) { +return null; +}); + +Clazz_newMeth(C$, 'createVolatileImage$I$I', function (width, height) { +return null; +}); + +Clazz_newMeth(C$, 'prepareImage$java_awt_Image$I$I$java_awt_image_ImageObserver', function (img, w, h, o) { +return false; +}); + +Clazz_newMeth(C$, 'checkImage$java_awt_Image$I$I$java_awt_image_ImageObserver', function (img, w, h, o) { +return 0; +}); + +Clazz_newMeth(C$, 'getGraphicsConfiguration$', function () { +return null; +}); + +Clazz_newMeth(C$, 'handlesWheelScrolling$', function () { +return false; +}); + +Clazz_newMeth(C$, 'getBackBuffer$', function () { +return null; +}); + +Clazz_newMeth(C$, 'destroyBuffers$', function () { +}); + +Clazz_newMeth(C$, 'reparent$java_awt_peer_ContainerPeer', function (newContainer) { +}); + +Clazz_newMeth(C$, 'isReparentSupported$', function () { +return false; +}); + +Clazz_newMeth(C$, 'layout$', function () { +}); + +Clazz_newMeth(C$, 'getBounds$', function () { +return null; +}); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:34 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("swingjs"),I$=[[0,'java.awt.GraphicsConfiguration','swingjs.JSToolkit']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "JSScreenDevice", null, 'java.awt.GraphicsDevice'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +Clazz_super_(C$, this,1); +System.out.println$S("JSScreenDevice initialized"); +}, 1); + +Clazz_newMeth(C$, 'getType$', function () { +return 0; +}); + +Clazz_newMeth(C$, 'getIDstring$', function () { +return "swingjs.JSScreenDevice"; +}); + +Clazz_newMeth(C$, 'getConfigurations$', function () { +return Clazz_array($I$(1), -1, [this.getDefaultConfiguration$()]); +}); + +Clazz_newMeth(C$, 'getDefaultConfiguration$', function () { +return $I$(2).getGraphicsConfiguration$(); +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:34 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("swingjs"); +var C$=Clazz_newClass(P$, "JSThreadGroup", null, 'ThreadGroup'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$S', function (name) { +C$.superclazz.c$$S.apply(this, [name]); +C$.$init$.apply(this); +this.秘html5Applet=J2S._applets[name] ||null; +}, 1); + +Clazz_newMeth(C$, 'c$$ThreadGroup$S', function (parent, name) { +C$.superclazz.c$$ThreadGroup$S.apply(this, [parent, name]); +C$.$init$.apply(this); +this.秘html5Applet=J2S._applets[name] ||null; +}, 1); + +Clazz_newMeth(C$, 'getHtmlApplet$', function () { +return this.秘html5Applet; +}); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:34 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("swingjs"),p$1={},I$=[[0,'sun.awt.AppContext','swingjs.JSUtil','java.awt.image.ColorModel','javax.swing.UIManager','swingjs.api.Interface','Thread','javajs.util.PT','swingjs.JSNullComponentPeer','swingjs.JSImagekit','java.io.BufferedInputStream','java.io.ByteArrayInputStream','swingjs.JSFocusPeer','java.awt.Point']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "JSToolkit", null, 'sun.awt.SunToolkit', 'sun.awt.KeyboardFocusManagerPeerProvider'); +C$.isMac=false; +C$.isLinux=false; +C$.isUnix=false; +C$.isWin=false; +C$.defaultContext=null; +C$.uid=null; +C$.dispatchID=0; +C$.audioPlayer=null; +C$.systemClipboard=null; +C$.hardwiredFontList=null; +C$.focusManager=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +{ +{ +C$.isMac = (J2S.featureDetection.os == "mac"); +C$.isLinux = (J2S.featureDetection.os == "linux"); +C$.isUnix = (J2S.featureDetection.os == "unix"); +C$.isWin = (J2S.featureDetection.os == "win"); +} +}; +C$.dispatchID=0; +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.imageKit=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.superclazz.c$.apply(this, []); +C$.$init$.apply(this); +System.out.println$S("JSToolkit initialized"); +}, 1); + +Clazz_newMeth(C$, 'getPostEventQueue$Z', function (isPost) { +return (isPost ? $I$(1).getAppContext$().get$O("PostEventQueue") : $I$(1).getAppContext$().get$O($I$(1).EVENT_QUEUE_KEY)); +}, 1); + +Clazz_newMeth(C$, 'exit$', function () { + +Thread.thisThread.group.systemExited = true; +$I$(2).getAppletViewer$().exit$(); +}, 1); + +Clazz_newMeth(C$, 'getScreenSize$java_awt_Dimension', function (d) { +var jq=$I$(2).jQuery; +d.width=jq.$(window).width() ||0; +d.height=jq.$(window).height() ||0; +}, 1); + +Clazz_newMeth(C$, 'getScreenWidth$', function () { +var jq=$I$(2).jQuery; +return jq.$(window).width() ||0; +}); + +Clazz_newMeth(C$, 'getScreenHeight$', function () { +var jq=$I$(2).jQuery; +return jq.$(window).height() ||0; +}); + +Clazz_newMeth(C$, 'getScreenResolution$', function () { +return 96; +}); + +Clazz_newMeth(C$, 'getColorModel$', function () { +return $I$(3).getRGBdefault$(); +}); + +Clazz_newMeth(C$, 'sync$', function () { +}); + +Clazz_newMeth(C$, 'isModalExclusionTypeSupported$java_awt_Dialog_ModalExclusionType', function (modalExclusionType) { +return true; +}); + +Clazz_newMeth(C$, 'isModalityTypeSupported$java_awt_Dialog_ModalityType', function (modalityType) { +return true; +}); + +Clazz_newMeth(C$, 'isTraySupported$', function () { +return false; +}); + +Clazz_newMeth(C$, 'grab$java_awt_Window', function (w) { +}); + +Clazz_newMeth(C$, 'ungrab$java_awt_Window', function (w) { +}); + +Clazz_newMeth(C$, 'getPropertyObject$O$S$O', function (t, key, def) { +return def; +}, 1); + +Clazz_newMeth(C$, 'getGraphicsConfiguration$', function () { +var ap=$I$(2).getAppletViewer$(); +var gc=ap.graphicsConfig; +return (gc == null ? (gc=ap.graphicsConfig=$I$(2).getInstance$S("swingjs.JSGraphicsConfiguration")) : gc); +}, 1); + +Clazz_newMeth(C$, 'isFocused$java_awt_Window', function (window) { +return false; +}, 1); + +Clazz_newMeth(C$, 'getStringWidth$swingjs_api_js_HTML5CanvasContext2D$java_awt_Font$S', function (context, font, text) { +if (text == null || text.length$() == 0 ) return 0; +var fontInfo=C$.getCanvasFont$java_awt_Font(font); +if (context == null ) context=C$.getDefaultCanvasContext2d$(); +var w=0; +{ +context.font = fontInfo; +w = Math.ceil(context.measureText(text).width); +} +return w; +}, 1); + +Clazz_newMeth(C$, 'getDefaultCanvasContext2d$', function () { +{ +if (this.defaultContext == null) this.defaultContext = document.createElement( 'canvas' ).getContext('2d'); +} +return C$.defaultContext; +}, 1); + +Clazz_newMeth(C$, 'getCSSColor$java_awt_Color', function (c) { +var i=c.getRGB$() & 16777215; +var s=(i == 0 ? "000" : "000000" + Integer.toHexString$I(i)); +return "#" + s.substring$I(s.length$() - 6); +}, 1); + +Clazz_newMeth(C$, 'getLookAndFeelDefaults$', function () { +if (C$.uid == null ) C$.uid=$I$(4).getLookAndFeel$().getDefaults$(); +return C$.uid; +}, 1); + +Clazz_newMeth(C$, 'getComponentUI$javax_swing_JComponent', function (target) { +var id=(target).getUIClassID$(); +var ui=$I$(5).getInstance$S$Z("swingjs.plaf.JS" + id, true); +if (ui != null ) ui.set$javax_swing_JComponent(target); +return ui; +}, 1); + +Clazz_newMeth(C$, 'getSwingDivId$', function () { +return $I$(6).currentThread$().getName$() + "_swingdiv"; +}, 1); + +Clazz_newMeth(C$, 'dispatchSystemEvent$Runnable', function (runnable) { +var f=null; +{ +System.out.println("JST dispatchSystemEvent " + runnable.run$.toString()); f = function(_JSToolkit_dispatchSystemEvent) { System.out.println("JST running " + runnable.run$.toString());runnable.run$()}; +} +C$.dispatch$O$I$I(f, 0, 0); +}, 1); + +Clazz_newMeth(C$, 'dispatchEvent$java_awt_AWTEvent$O$Z', function (event, src, andWait) { +var f=null; +var id=++C$.dispatchID; + +f = function() { if (src == null) event.dispatch$(); else src.dispatchEvent$java_awt_AWTEvent(event); +}; +if (andWait) { +C$.invokeAndWait$javajs_api_JSFunction$I(f, id); +} else { +var ms=(C$.isMouseEvent$I(event.getID$()) ? -1 : 0); +C$.dispatch$O$I$I(f, ms, id); +}}, 1); + +Clazz_newMeth(C$, 'isMouseEvent$I', function (id) { +return (id >= 500 && id <= 507 ); +}, 1); + +Clazz_newMeth(C$, 'dispatch$O$I$I', function (f, msDelay, id) { +{ +var thread = Thread.thisThread; +if (thread.group.systemExited) return; +var thread0 = thread; +var id0 = SwingJS.eventID || 0; +var ff = function(_JSToolkit_setTimeout) { SwingJS.eventID = id; +java.lang.Thread.thisThread = thread; +try { if (f.run$) f.run$(); +else f(); +} catch (e) { var s = "JSToolkit.dispatch$I(" + id +"): " + e + "\n" + (e.getStackTrace$ ? e.getStackTrace$() + "\n" : "") + (!!e.stack ? e.stack : ""); +System.out.println(s); +alert(s); +} SwingJS.eventID = id0; +Thread.thisThread = thread0; +}; +return (msDelay == -1 ? ff() : setTimeout(ff, msDelay)); +} +}, 1); + +Clazz_newMeth(C$, 'invokeAndWait$javajs_api_JSFunction$I', function (f, id) { +{ +var thread = Thread.thisThread; +if (thread.group.systemExited) return; +var thread0 = thread; +(function(_JSToolkit_setTimeout) { var id0 = SwingJS.eventID || 0; +SwingJS.eventID = id; +java.lang.Thread.thisThread = thread; +if (f.run$) f.run$(); +else f(); +SwingJS.eventID = id0; +Thread.thisThread = thread0; +})(); +} +}, 1); + +Clazz_newMeth(C$, 'isDispatchThread$', function () { +{ +return (!!SwingJS.eventID); +} +}, 1); + +Clazz_newMeth(C$, 'setIsDispatchThread$Z', function (b) { + +SwingJS.eventID = (b ? 1 : 0); +}, 1); + +Clazz_newMeth(C$, 'getHTML5Applet$java_awt_Component', function (c) { +return (c.getAppContext$().getThreadGroup$()).getHtmlApplet$(); +}, 1); + +Clazz_newMeth(C$, 'taintUI$java_awt_Component', function (c) { +{ +c.getUI$ && c.getUI$() && c.getUI$().setTainted$(); +} +}, 1); + +Clazz_newMeth(C$, 'createComponent$java_awt_Component', function (target) { +var peer=C$.getUI$java_awt_Component$Z(target, true); +return peer; +}); + +Clazz_newMeth(C$, 'createDialog$java_awt_Dialog', function (target) { +var ui=target.getUI$(); +if (ui == null ) return null; +return (ui).setFrame$java_awt_Window$Z(target, true); +}); + +Clazz_newMeth(C$, 'createFrame$java_awt_JSFrame', function (target) { +var ui=target.getUI$(); +if (ui == null ) return null; +return (ui).setFrame$java_awt_Window$Z(target, true); +}); + +Clazz_newMeth(C$, 'createFrame$java_awt_Frame', function (target) { +var ui=target.getUI$(); +if (ui == null ) return null; +return (ui).setFrame$java_awt_Window$Z(target, true); +}); + +Clazz_newMeth(C$, 'createWindow$java_awt_Window', function (target) { +var ui=target.getUI$(); +if (ui == null ) return null; +return (ui).setFrame$java_awt_Window$Z(target, false); +}); + +Clazz_newMeth(C$, 'getUI$java_awt_Component$Z', function (c, isQuiet) { +var ui=(c).秘getUI$(); +if (ui == null ) { +(c).updateUI$(); +ui=(c).秘getUI$(); +}if (ui == null ) { +var s=c.getClass$().getName$(); +if (!$I$(7).isOneOf$S$S(s, ";javax.swing.Box$Filler;")) System.out.println$S("[JSToolkit] Component " + s + " has no corresponding JSComponentUI, class " + c.getClass$().getName$() ); +ui=Clazz_new_($I$(8).c$$java_awt_Component,[c]); +}return ui; +}, 1); + +Clazz_newMeth(C$, 'getImagekit', function () { +return (this.imageKit == null ? this.imageKit=$I$(5).getInstance$S$Z("swingjs.JSImagekit", false) : this.imageKit); +}, p$1); + +Clazz_newMeth(C$, 'getImage$S', function (filename) { +return this.createImage$S(filename); +}); + +Clazz_newMeth(C$, 'getImage$java_net_URL', function (url) { +return this.createImage$java_net_URL(url); +}); + +Clazz_newMeth(C$, 'createImage$java_awt_image_ImageProducer', function (producer) { +var kit=$I$(5).getInstance$S$Z("swingjs.JSImagekit", true); +producer.startProduction$java_awt_image_ImageConsumer(kit); +return kit.getCreatedImage$(); +}); + +Clazz_newMeth(C$, 'createImage$java_awt_Component$java_awt_image_ImageProducer', function (c, producer) { +return (this.createImage$java_awt_image_ImageProducer(producer)).setComponent$java_awt_Component(c); +}); + +Clazz_newMeth(C$, 'createImageIcon$java_awt_Component$javax_swing_Icon$S', function (c, icon, id) { +return $I$(9).createImageIcon$java_awt_Component$javax_swing_Icon$S(c, icon, id); +}, 1); + +Clazz_newMeth(C$, 'createImage$S', function (filename) { +return p$1.getImagekit.apply(this, []).createImageFromBytes$BA$I$I$S($I$(2).getSignedStreamBytes$java_io_BufferedInputStream(Clazz_new_($I$(10).c$$java_io_InputStream,[Clazz_new_($I$(11).c$$BA,[$I$(2).getFileAsBytes$O(filename)])])), 0, -1, filename); +}); + +Clazz_newMeth(C$, 'createImage$java_net_URL', function (url) { +var b=$I$(2).getURLInputStream$java_net_URL$Z(url, true); +return (b == null ? null : p$1.getImagekit.apply(this, []).createImageFromBytes$BA$I$I$S($I$(2).getSignedStreamBytes$java_io_BufferedInputStream(b), 0, -1, url.toString())); +}); + +Clazz_newMeth(C$, 'createImage$BA$I$I', function (data, imageoffset, imagelength) { +return p$1.getImagekit.apply(this, []).createImageFromBytes$BA$I$I$S(data, imageoffset, imagelength, null); +}); + +Clazz_newMeth(C$, 'createImage$java_awt_Component$I$I', function (c, width, height) { +return (this.createImage$BA$I$I(null, width, height)).setComponent$java_awt_Component(c); +}); + +Clazz_newMeth(C$, 'checkImage$java_awt_Image$I$I$java_awt_image_ImageObserver', function (image, width, height, observer) { +return 63; +}); + +Clazz_newMeth(C$, 'prepareImage$java_awt_Image$I$I$java_awt_image_ImageObserver', function (image, width, height, observer) { +return true; +}); + +Clazz_newMeth(C$, 'hasFocus$java_awt_Component', function (c) { +var ui=C$.getUI$java_awt_Component$Z(c, false); +return (ui != null && !ui.isNull && ui.hasFocus$() ); +}, 1); + +Clazz_newMeth(C$, 'requestFocus$java_awt_Component', function (c) { +var ui=C$.getUI$java_awt_Component$Z(c, false); +if (ui == null || ui.isNull || !ui.jc.isFocusable$() ) return false; +var r=((P$.JSToolkit$1|| +(function(){var C$=Clazz_newClass(P$, "JSToolkit$1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, 'Runnable', 1); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'run$', function () { +this.$finals$.ui.requestFocus$java_awt_Component$Z$Z$J$sun_awt_CausedFocusEvent_Cause(null, false, false, 0, null); +}); +})() +), Clazz_new_(P$.JSToolkit$1.$init$, [this, {ui: ui}])); +C$.dispatch$O$I$I(r, 50, 0); +return true; +}, 1); + +Clazz_newMeth(C$, 'getAudioPlayer$', function () { +return (C$.audioPlayer == null ? C$.audioPlayer=$I$(2).getInstance$S("swingjs.JSAudio") : C$.audioPlayer); +}, 1); + +Clazz_newMeth(C$, 'playAudio$BA$javax_sound_sampled_AudioFormat', function (data, audioFormat) { +C$.getAudioPlayer$().getAudio$BA$javax_sound_sampled_AudioFormat(data, audioFormat).play$(); +}, 1); + +Clazz_newMeth(C$, 'getAudioClip$java_net_URL', function (url) { +return C$.getAudioPlayer$().getAudioClip$java_net_URL(url); +}, 1); + +Clazz_newMeth(C$, 'playAudioFile$java_net_URL', function (url) { +C$.getAudioPlayer$().getAudioFileFromURL$java_net_URL(url).play$(); +}, 1); + +Clazz_newMeth(C$, 'getAudioLine$javax_sound_sampled_Line_Info', function (info) { +return C$.getAudioPlayer$().getAudioLine$javax_sound_sampled_Line_Info(info); +}, 1); + +Clazz_newMeth(C$, 'getTimerQueue$', function () { +return $I$(2).getAppletViewer$().getTimerQueue$(); +}, 1); + +Clazz_newMeth(C$, 'getFileFromDialog$swingjs_api_JSFileHandler$S', function (jsFileHandler, type) { +var f=null; +{ +f = function(data, fileName) { jsFileHandler.handleFileLoaded$BA$S(data, fileName) }; +} +$I$(2).J2S.getFileFromDialog(f, type); +}, 1); + +Clazz_newMeth(C$, 'killDispatched$I', function (html5Id) { +{ +clearTimeout(html5Id); +} +}, 1); + +Clazz_newMeth(C$, 'getSystemClipboard$', function () { +if (C$.systemClipboard == null ) C$.systemClipboard=$I$(2).getInstance$S("java.awt.datatransfer.Clipboard"); +return C$.systemClipboard; +}); + +Clazz_newMeth(C$, 'createDragSourceContextPeer$java_awt_dnd_DragGestureEvent', function (dge) { +return null; +}); + +Clazz_newMeth(C$, 'getCursorName$java_awt_Cursor', function (c) { +switch (c == null ? 0 : c.getType$()) { +case 1: +return "crosshair"; +case 3: +return "wait"; +case 2: +return "text"; +case 12: +return "grab"; +case 13: +return "move"; +case 8: +case 9: +return "ns-resize"; +case 7: +case 4: +return "nesw-resize"; +case 5: +case 6: +return "nwse-resize"; +case 11: +case 10: +return "ew-resize"; +case -1: +return c.getName$(); +case 0: +default: +return "default"; +} +}, 1); + +Clazz_newMeth(C$, 'getFontList$', function () { +if (C$.hardwiredFontList == null ) C$.hardwiredFontList=Clazz_array(String, -1, ["Dialog", "SansSerif", "Serif", "Monospaced", "DialogInput"]); +return C$.hardwiredFontList; +}); + +Clazz_newMeth(C$, 'getFontFamily$java_awt_Font', function (font) { +return font.getName$(); +}, 1); + +Clazz_newMeth(C$, 'getFontMetrics$java_awt_Font', function (font) { +return font.getFontMetrics$(); +}); + +Clazz_newMeth(C$, 'getCanvasFont$java_awt_Font', function (font) { +var strStyle=""; +if (font.isItalic$()) strStyle += "italic "; +if (font.isBold$()) strStyle += "bold "; +var family=C$.getCSSFontFamilyName$S(font.getFamily$()); +return strStyle + font.getSize$() + "px " + family ; +}, 1); + +Clazz_newMeth(C$, 'getCSSFontFamilyName$S', function (family) { +family=family.toLowerCase$(); +if (family.equals$O("sansserif") || family.equals$O("helvetica") || family.equals$O("dialog") || family.equals$O("dialoginput") ) family="Arial"; + else if (family.equals$O("monospaced")) family="monospace"; +return family; +}, 1); + +Clazz_newMeth(C$, 'getDateFormat$S', function (isoType) { +var prefix=""; +var suffix=""; +{ +if (isoType == null) { return ("" + (new Date())).split(" (")[0]; +} if (isoType.indexOf("8824") >= 0) { var d = new Date(); +var x = d.toString().split(" "); +var MM = "0" + (1 + d.getMonth()); MM = MM.substring(MM.length - 2); +var dd = "0" + d.getDate(); dd = dd.substring(dd.length - 2); +return x[3] + MM + dd + x[4].replace(/\:/g,"") + x[5].substring(3,6) + "'" + x[5].substring(6,8) + "'" } if (isoType.indexOf("8601") >= 0){ var d = new Date(); +var x = d.toString().split(" "); +// Firefox now doing this? +if (x.length == 1) return x; +var MM = "0" + (1 + d.getMonth()); MM = MM.substring(MM.length - 2); +var dd = "0" + d.getDate(); dd = dd.substring(dd.length - 2); +return x[3] + '-' + MM + '-' + dd + 'T' + x[4] } +} +}, 1); + +Clazz_newMeth(C$, 'beep$', function () { +System.out.println$S("JSToolkit.beep"); +}); + +Clazz_newMeth(C$, 'getPrintJob$java_awt_JSFrame$S$java_util_Properties', function (frame, jobtitle, props) { +var job=$I$(2).getInstance$S("swingjs.JSPrintJob"); +job.setProperties$S$java_util_Properties(jobtitle, props); +return job; +}); + +Clazz_newMeth(C$, 'getPrintJob$java_awt_Frame$S$java_util_Properties', function (frame, jobtitle, props) { +var job=$I$(2).getInstance$S("swingjs.JSPrintJob"); +job.setProperties$S$java_util_Properties(jobtitle, props); +return job; +}); + +Clazz_newMeth(C$, 'getPrintJob$java_awt_JSFrame$S$java_awt_JobAttributes$java_awt_PageAttributes', function (frame, jobtitle, jobAttributes, pageAttributes) { +var job=$I$(2).getInstance$S("swingjs.JSPrintJob"); +job.setAttributes$S$java_awt_JobAttributes$java_awt_PageAttributes(jobtitle, jobAttributes, pageAttributes); +return job; +}); + +Clazz_newMeth(C$, 'getPrintJob$java_awt_Frame$S$java_awt_JobAttributes$java_awt_PageAttributes', function (frame, jobtitle, jobAttributes, pageAttributes) { +var job=$I$(2).getInstance$S("swingjs.JSPrintJob"); +job.setAttributes$S$java_awt_JobAttributes$java_awt_PageAttributes(jobtitle, jobAttributes, pageAttributes); +return job; +}); + +Clazz_newMeth(C$, 'mapInputMethodHighlight$java_awt_im_InputMethodHighlight', function (hl) { +return null; +}); + +Clazz_newMeth(C$, 'getFocusPeer$', function () { +return (C$.focusManager == null ? C$.focusManager=Clazz_new_($I$(12)) : C$.focusManager); +}, 1); + +Clazz_newMeth(C$, 'getKeyboardFocusManagerPeer$', function () { +return C$.getFocusPeer$(); +}); + +Clazz_newMeth(C$, 'getCurrentFocusOwner$O', function (related) { +return (C$.getFocusPeer$()).getCurrentFocusOwner$O(related); +}, 1); + +Clazz_newMeth(C$, 'consumeEvent$O', function (e) { +var jqevent=null; +if (Clazz_instanceOf(e, "java.awt.event.InputEvent")) { +jqevent=e.bdata.jqevent ||null; +} else { +jqevent=e; +}if (jqevent == null ) return; + +jqevent.stopPropagation(); +jqevent.preventDefault(); +}, 1); + +Clazz_newMeth(C$, 'getMouseLocation$', function () { +return $I$(2).J2S.getMousePosition(Clazz_new_($I$(13))); +}, 1); + +Clazz_newMeth(C$, 'isOverWritten$javax_swing_JComponent$S', function (jc, method) { +var s=jc[method].exClazz.__CLASS_NAME__ ||""; +return s.indexOf$S("java") != 0 && s.indexOf$S("swingjs") != 0 ; +}, 1); + +Clazz_newMeth(C$, 'checkJ2SFlag$S', function (flag) { +return (J2S[flag] ||false); +}, 1); + +Clazz_newMeth(C$, 'getMenuShortcutKeyMask$', function () { +return (C$.isMac ? 4 : 2); +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 13:00:37 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("swingjs"),I$=[[0,'java.util.Hashtable','java.net.URL','javajs.util.Rdr','javajs.util.AU','java.io.BufferedInputStream','java.io.ByteArrayInputStream','swingjs.api.Interface','javajs.util.PT','Boolean','Thread','java.awt.Toolkit','java.util.Locale','javajs.util.AjaxURLConnection','swingjs.json.JSON','java.awt.Color']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "JSUtil"); +C$.debugging=false; +C$.J2S=null; +C$.fileCache=null; +C$.useCache=false; +C$.zipTools=null; +C$.jQuery=null; +C$.mapNotImpl=null; +C$.ctxTemp=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +{ +var j2sdebug=false; +var j2sself=null; +{ +j2sself = self.J2S; +j2sdebug = J2S._checkLoad || J2S._debugCode +} +C$.debugging=j2sdebug; +C$.J2S=j2sself; +}; +C$.useCache=true; +C$.jQuery=C$.getJQuery$(); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.$init$.apply(this); +System.out.println$S("JSUtil initialized"); +}, 1); + +Clazz_newMeth(C$, 'getFileCache$', function () { +if (C$.fileCache == null && (C$.fileCache=C$.J2S.getSetJavaFileCache(null)) == null ) { +C$.fileCache=Clazz_new_($I$(1)); +C$.J2S.getSetJavaFileCache(C$.fileCache); +}return C$.fileCache; +}, 1); + +Clazz_newMeth(C$, 'getCachedFileData$S', function (path) { +return (C$.useCache && C$.fileCache != null ? C$.fileCache.get$O(path) : null); +}, 1); + +Clazz_newMeth(C$, 'getFileContents$O$Z', function (uriOrJSFile, asBytes) { +if (Clazz_instanceOf(uriOrJSFile, "java.io.File")) { +var bytes=uriOrJSFile.秘bytes ||null; +if (bytes != null ) return bytes; +}var uri=uriOrJSFile.toString(); +var data=null; +if (asBytes && uri.indexOf$S(":/") < 0 ) { +data=C$.getCachedFileData$S(uri); +if (data != null ) return data; +if (!uri.startsWith$S("/")) uri="/" + uri; +uri="http://." + uri; +}if (data == null ) data=C$.getCachedFileData$S(uri); +if (data == null && !uri.startsWith$S("./") ) { +try { +var stream=Clazz_new_($I$(2).c$$S,[uri]).getContent$(); +data=(asBytes ? $I$(3).getStreamAsBytes$java_io_BufferedInputStream$javajs_util_OC(stream, null) : $I$(3).streamToUTF8String$java_io_BufferedInputStream(stream)); +} catch (e) { +if (Clazz_exceptionOf(e,"Exception")){ +data=C$.J2S.getFileData(uri, null, false, asBytes); +} else { +throw e; +} +} +}return data; +}, 1); + +Clazz_newMeth(C$, 'getFileAsString$S', function (filename) { +var data=C$.getFileContents$O$Z(filename, false); +return C$.ensureString$O(data); +}, 1); + +Clazz_newMeth(C$, 'getFileAsBytes$O$Z', function (file, checkNotFound) { +var data=C$.getFileAsBytes$O(file); +if (checkNotFound) { +if (data.length == 0) return null; +if (data.length == 2) { +if (data[0] == 13 && data[1] == 10 ) return null; +}if (data.length == 39) { +if ( String.instantialize(data).equals$O("NetworkError: A network error occurred.")) return null; +}System.out.println$S( String.instantialize(data)); +}return data; +}, 1); + +Clazz_newMeth(C$, 'getFileAsBytes$O', function (file) { +var data=C$.getFileContents$O$Z(file, true); +var b=null; +if (Clazz_instanceOf(data, Clazz_array(Byte.TYPE, -1))) b=data; + else if (Clazz_instanceOf(data, "java.lang.String")) b=(data).getBytes$(); + else if (Clazz_instanceOf(data, "javajs.util.SB")) b=$I$(3).getBytesFromSB$javajs_util_SB(data); + else if (Clazz_instanceOf(data, "java.io.InputStream")) try { +b=$I$(3).getLimitedStreamBytes$java_io_InputStream$J(data, -1); +} catch (e) { +if (Clazz_exceptionOf(e,"java.io.IOException")){ +} else { +throw e; +} +} +return $I$(4).ensureSignedBytes$BA(b); +}, 1); + +Clazz_newMeth(C$, 'haveCachedResource$S$Z', function (resourceName, isJavaPath) { +var path=C$.J2S.getResourcePath(resourceName, isJavaPath); +return (path != null && C$.getCachedFileData$S(path) != null ); +}, 1); + +Clazz_newMeth(C$, 'getJavaResource$S$Z$Z$Z', function (resourceName, isJavaPath, doCache, doProcess) { +System.out.println$S("JSUtil getting Java resource " + resourceName); +var path=C$.J2S.getResourcePath(resourceName, isJavaPath); +if (path == null ) return null; +var data=C$.getCachedFileData$S(path); +if (data == null && (data=C$.J2S.getFileData(path, null, false, false)) != null && C$.useCache && doCache ) C$.cacheFileData$S$O(path, data); +var sdata=C$.ensureString$O(data); +var ok=(sdata != null && sdata.indexOf$S("[Exception") != 0 ); +System.out.println$S("Processing " + path + " [" + (ok ? "" + sdata.length$() : sdata) + "]" ); +return (!ok ? null : !doProcess ? sdata : path.endsWith$S(".css") ? C$.processCSS$S$S(sdata, path) : path.endsWith$S(".js") ? C$.processJS$S$S(sdata, resourceName) : sdata); +}, 1); + +Clazz_newMeth(C$, 'getCachedResourceAsStream$S', function (name) { +System.out.println$S("JSUtil getting Java resource " + name); +var path=C$.J2S.getResourcePath(name, false); +if (path == null ) return null; +var stream; +var data=C$.getCachedFileData$S(path); +if (data == null ) { +stream=C$.getResourceAsStream$S(name); +data=stream && stream.$in.buf ||null; +} else { +stream=Clazz_new_($I$(5).c$$java_io_InputStream,[Clazz_new_($I$(6).c$$BA,[data])]); +}if (stream != null && C$.useCache ) C$.cacheFileData$S$O(path, data); +return stream; +}, 1); + +Clazz_newMeth(C$, 'cacheFileData$S$O', function (path, data) { +if (data == null ) { +System.out.println$S("JSUtil releasing cached bytes for " + path); +C$.getFileCache$().remove$O(path); +} else { +System.out.println$S("JSUtil caching bytes for " + path); +C$.getFileCache$().put$TK$TV(path, data); +}}, 1); + +Clazz_newMeth(C$, 'loadJavaResourcesFromZip$ClassLoader$S$java_util_Map', function (cl, zipFileName, mapByteData) { +if (mapByteData == null ) mapByteData=C$.getFileCache$(); +var fileList=""; +try { +var bis=Clazz_new_($I$(5).c$$java_io_InputStream,[cl.getResourceAsStream$S(zipFileName)]); +var prefix=C$.J2S.getResourcePath(null, true); +fileList=C$.getZipTools$().cacheZipContentsStatic$java_io_BufferedInputStream$S$java_util_Map$Z(bis, prefix, mapByteData, false); +} catch (e) { +if (Clazz_exceptionOf(e,"Exception")){ +System.out.println$S("JSUtil could not cache files from " + zipFileName); +return; +} else { +throw e; +} +} +if (C$.debugging) System.out.println$S("JSUtil loaded resources from " + zipFileName + ":\n" + fileList ); +}, 1); + +Clazz_newMeth(C$, 'getZipTools$', function () { +return (C$.zipTools == null ? (C$.zipTools=$I$(7).getInstance$S$Z("javajs.util.ZipTools", true)) : C$.zipTools); +}, 1); + +Clazz_newMeth(C$, 'loadStaticResource$S', function (file) { +var s="alert('" + file + "' was not found)" ; +if (!C$.J2S.isResourceLoaded(file, false)) { +s=C$.getJavaResource$S$Z$Z$Z(file, true, false, true); +C$.J2S.isResourceLoaded(file, true); +}return s; +}, 1); + +Clazz_newMeth(C$, 'isClassLoaded$S', function (className) { +return (Clazz._isClassDefined(className) ||false); +}, 1); + +Clazz_newMeth(C$, 'processCSS$S$S', function (css, path) { +if (path != null && css.indexOf$S("images/") >= 0 ) { +path=path.substring$I$I(0, path.lastIndexOf$S("/") + 1) + "images/"; +css=$I$(8).rep$S$S$S(css, "images/", path); +}C$.jQuery.$("head").append(C$.jQuery.$("" )); +return css; +}, 1); + +Clazz_newMeth(C$, 'processJS$S$S', function (js, resourceName) { +try { +{ +if (js.indexOf(";//# sourceURL=") < 0) js += ";//# sourceURL=" + J2S.thisApplet._j2sPath + "/" + resourceName; +eval(js); +} +} catch (e) { +C$.alert$O("error processing " + js); +return null; +} +return js; +}, 1); + +Clazz_newMeth(C$, 'ensureString$O', function (data) { +if (data == null ) return null; +if (Clazz_instanceOf(data, Clazz_array(Byte.TYPE, -1))) return $I$(3).bytesToUTF8String$BA(data); +if (Clazz_instanceOf(data, "java.lang.String") || Clazz_instanceOf(data, "javajs.util.SB") ) return data.toString(); +if (Clazz_instanceOf(data, "java.io.InputStream")) return $I$(3).streamToUTF8String$java_io_BufferedInputStream(Clazz_new_($I$(5).c$$java_io_InputStream,[data])); +return null; +}, 1); + +Clazz_newMeth(C$, 'getJQuery$', function () { +if (C$.jQuery != null ) return C$.jQuery; +{ +if (!window.jQuery) alert( "jQuery is required for SwingJS, but window.jQuery is not defined." ); jQuery.$ || (jQuery.$ = jQuery); return(jQuery); +} +}, 1); + +Clazz_newMeth(C$, 'parseJSONRaw$S', function (json) { +return C$.getJQuery$().parseJSON(json); +}, 1); + +Clazz_newMeth(C$, 'getStackTrace$I', function (n) { +return Clazz._getStackTrace(n) ||null; +}, 1); + +Clazz_newMeth(C$, 'getStackTrace$', function () { +{ +return Clazz._getStackTrace(); +} +}, 1); + +Clazz_newMeth(C$, 'notImplemented$S', function (msg) { +var s=null; +if (C$.mapNotImpl == null ) C$.mapNotImpl=Clazz_new_($I$(1)); +{ +s = arguments.callee.caller; +var cl = s.claxxOwner || s.exClazz; +s = (cl ? cl.__CLASS_NAME__ + "." : "") + arguments.callee.caller.exName; +} +if (C$.mapNotImpl.containsKey$O(s)) return; +C$.mapNotImpl.put$TK$TV(s, $I$(9).TRUE); +System.out.println$S(s + " has not been implemented in SwingJS. " + (msg == "" ? "" : (msg == null ? "" : msg) + C$.getStackTrace$I(-5)) ); +}, 1); + +Clazz_newMeth(C$, 'log$S', function (msg) { +{ +System.out.println(msg); +console.log(msg); +} +}, 1); + +Clazz_newMeth(C$, 'getInstance$S', function (className) { +return $I$(7).getInstance$S$Z(className, false); +}, 1); + +Clazz_newMeth(C$, 'getAppletViewer$', function () { +return ($I$(10).currentThread$()).秘appletViewer; +}, 1); + +Clazz_newMeth(C$, 'readyCallback$S$S$java_awt_JSComponent$swingjs_JSAppletViewer', function (aname, fname, applet, appletPanel) { +try { +C$.J2S.readyCallback(aname, fname, true, applet, appletPanel); +} catch (e) { +System.out.println$S("JSUtil Error running readyCallback method for " + fname + " -- check your page JavaScript" ); +} +}, 1); + +Clazz_newMeth(C$, 'getSignedStreamBytes$java_io_BufferedInputStream', function (bis) { +try { +return $I$(4).ensureSignedBytes$BA($I$(3).getStreamAsBytes$java_io_BufferedInputStream$javajs_util_OC(bis, null)); +} catch (e) { +if (Clazz_exceptionOf(e,"java.io.IOException")){ +return null; +} else { +throw e; +} +} +}, 1); + +Clazz_newMeth(C$, 'saveFile$S$O$S$S', function (fileName, data, mimeType, encoding) { +C$.J2S.saveFile(fileName, data, mimeType, encoding); +}, 1); + +Clazz_newMeth(C$, 'getResourceAsStream$S', function (name) { +return $I$(11).getDefaultToolkit$().getClass$().getClassLoader$().getResourceAsStream$S(name); +}, 1); + +Clazz_newMeth(C$, 'getResource$S', function (name) { +return $I$(11).getDefaultToolkit$().getClass$().getClassLoader$().getResource$S(name); +}, 1); + +Clazz_newMeth(C$, 'getDefaultLocale$S', function (language) { +var region; +var country; +var variant; +if (language == null ) language=C$.J2S.getDefaultLanguage(true); +language=language.replace$C$C("-", "_"); +if (language == null || language.length$() == 0 || language.equalsIgnoreCase$S("en") ) language="en_US"; +var i=language.indexOf$I("_"); +if (i > 0) { +region=language.substring$I(i + 1); +language=language.substring$I$I(0, i); +} else { +region=""; +}region=region.toUpperCase$(); +i=region.indexOf$I("_"); +if (i > 0) { +country=region.substring$I$I(0, i); +variant=region.substring$I(i + 1); +} else { +country=region; +variant=""; +}return Clazz_new_($I$(12).c$$S$S$S,[language, country, variant]); +}, 1); + +Clazz_newMeth(C$, 'getURLInputStream$java_net_URL$Z', function (url, andDelete) { +try { +var bis=$I$(13).getAttachedStreamData$java_net_URL$Z(url, andDelete); +return (bis == null ? url.openStream$() : bis); +} catch (e) { +if (Clazz_exceptionOf(e,"java.io.IOException")){ +} else { +throw e; +} +} +return null; +}, 1); + +Clazz_newMeth(C$, 'showWebPage$java_net_URL$O', function (url, target) { + +if (target) window.open(url.toString(), target); else window.open(url.toString()); +}, 1); + +Clazz_newMeth(C$, 'warn$S', function (msg) { +C$.alert$O(msg); +}, 1); + +Clazz_newMeth(C$, 'alert$O', function (object) { +{ +console.log("[JSUtil] " + object); +alert(object); +} +}, 1); + +Clazz_newMeth(C$, 'confirm$S', function (msg) { +{ +return confirm(msg); +} +}, 1); + +Clazz_newMeth(C$, 'prompt$S$S', function (msg, defaultRet) { +{ +return prompt(msg, defaultRet); +} +}, 1); + +Clazz_newMeth(C$, 'setAjax$java_net_URL', function (url) { +$I$(14).setAjax$java_net_URL(url); +}, 1); + +Clazz_newMeth(C$, 'setAjax$OA', function (params) { +return params.length == 1 ? $I$(14).setAjax$java_net_URL(params[0]) : $I$(14).setAjax$OA(params); +}, 1); + +Clazz_newMeth(C$, 'parseJSON$O', function (o) { +return $I$(14).parse$O(o); +}, 1); + +Clazz_newMeth(C$, 'getJSONReader$O', function (is) { +return $I$(14).getJSONReader$java_io_InputStream(is); +}, 1); + +Clazz_newMeth(C$, 'getJ2SAlias$O$S', function (c, name) { +return (c && c[name] ||null); +}, 1); + +Clazz_newMeth(C$, 'isForClass$O$Class', function (f, cl) { +return cl != null && (!f || f.exClazz == (cl.$clazz$ || cl) ||false) ; +}, 1); + +Clazz_newMeth(C$, 'isOverridden$O$S$Class', function (c, name, cl) { +return cl == null || c != null && !C$.isForClass$O$Class(C$.getJ2SAlias$O$S(c, name), cl) ; +}, 1); + +Clazz_newMeth(C$, 'getColorFromName$S', function (c) { +var rgb=null; + +if (C$.ctxTemp == null) { var d = document.createElement("canvas"); +d.height = d.width = 1; +C$.ctxTemp = d.getContext("2d"); +} C$.ctxTemp.fillStyle = c; +C$.ctxTemp.fillRect(0, 0, 1, 1); +rgb = C$.ctxTemp.getImageData(0, 0, 1, 1).data; +return Clazz_new_($I$(15).c$$I$I$I,[rgb[0], rgb[1], rgb[2]]); +}, 1); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:34 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("swingjs.plaf"),p$1={},I$=[[0,'javax.swing.MenuSelectionManager','swingjs.plaf.JSComponentUI','swingjs.plaf.ButtonListener','swingjs.plaf.JSPopupMenuUI','javax.swing.MenuElement',['swingjs.plaf.ButtonListener','.Actions'],'swingjs.plaf.LazyActionMap','javax.swing.SwingUtilities','javax.swing.UIManager','javax.swing.plaf.ComponentInputMapUIResource','sun.swing.DefaultLookup','javax.swing.KeyStroke']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "ButtonListener", function(){ +Clazz_newInstance(this, arguments,0,C$); +}, null, ['java.awt.event.MouseListener', 'java.awt.event.MouseMotionListener', 'java.awt.event.FocusListener', 'javax.swing.event.ChangeListener', 'java.beans.PropertyChangeListener']); +C$.crossMenuMnemonic=false; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.ui=null; +this.lastMnemonic=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'loadActionMap$swingjs_plaf_LazyActionMap', function (map) { +map.put$javax_swing_Action(Clazz_new_($I$(6).c$$S,["pressed"])); +map.put$javax_swing_Action(Clazz_new_($I$(6).c$$S,["released"])); +map.put$javax_swing_Action(Clazz_new_($I$(6).c$$S$javax_swing_JMenu$Z,["selectMenu", null, true])); +map.put$javax_swing_Action(Clazz_new_($I$(6).c$$S,["doClick"])); +}, 1); + +Clazz_newMeth(C$, 'c$$swingjs_plaf_JSButtonUI', function (ui) { +C$.$init$.apply(this); +this.ui=ui; +}, 1); + +Clazz_newMeth(C$, ['propertyChange$java_beans_PropertyChangeEvent','propertyChange$'], function (e) { +var prop=e.getPropertyName$(); +if (this.ui.isUIDisabled) return; +var b=e.getSource$(); +if (prop == "contentAreaFilled") { +this.checkOpacity$javax_swing_AbstractButton(b); +return; +}if (prop == "mnemonic") { +this.updateMnemonicBinding$javax_swing_AbstractButton(b); +}if (this.ui.isMenuItem || this.ui.isMenu ) { +switch (prop) { +case "labelFor": +case "displayedMnemonic": +case "accelerator": +case "ancestor": +this.updateAcceleratorBinding$javax_swing_JComponent(b); +this.updateMnemonicBinding$javax_swing_AbstractButton(b); +break; +} +}this.ui.propertyChangedFromListener$java_beans_PropertyChangeEvent$S(e, prop); +}); + +Clazz_newMeth(C$, 'checkOpacity$javax_swing_AbstractButton', function (b) { +b.setOpaque$Z(b.isContentAreaFilled$()); +}); + +Clazz_newMeth(C$, 'installKeyboardActions$javax_swing_JComponent', function (c) { +$I$(7).installLazyActionMap$javax_swing_JComponent$Class$S(c, Clazz_getClass(C$), "Button.actionMap"); +if (!this.ui.isMenu && !this.ui.isMenuItem ) { +var button=c; +this.updateMnemonicBinding$javax_swing_AbstractButton(button); +var km=this.getInputMap$I$javax_swing_JComponent(0, c); +$I$(8).replaceUIInputMap$javax_swing_JComponent$I$javax_swing_InputMap(c, 0, km); +return; +}if (this.ui.isMenu) C$.crossMenuMnemonic=$I$(9).getBoolean$O("Menu.crossMenuMnemonic"); +this.createInputMap$javax_swing_JComponent(c); +this.updateAcceleratorBinding$javax_swing_JComponent(c); +}); + +Clazz_newMeth(C$, 'createInputMap$javax_swing_JComponent', function (c) { +return Clazz_new_($I$(10).c$$javax_swing_JComponent,[c]); +}); + +Clazz_newMeth(C$, 'uninstallKeyboardActions$javax_swing_JComponent', function (c) { +$I$(8).replaceUIInputMap$javax_swing_JComponent$I$javax_swing_InputMap(c, 2, null); +$I$(8).replaceUIInputMap$javax_swing_JComponent$I$javax_swing_InputMap(c, 0, null); +$I$(8).replaceUIActionMap$javax_swing_JComponent$javax_swing_ActionMap(c, null); +}); + +Clazz_newMeth(C$, 'getInputMap$I$javax_swing_JComponent', function (condition, c) { +if (condition == 0) { +return $I$(11).get$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S(c, this.ui, this.ui.getPropertyPrefix$() + ".focusInputMap"); +}return null; +}); + +Clazz_newMeth(C$, 'updateMnemonicBinding$javax_swing_AbstractButton', function (b) { +var m=b.getMnemonic$(); +this.ui.updateDOMNode$(); +if (this.ui.isMenu && m != 0 && this.lastMnemonic != 0 ) { +this.ui.setMnemonic$I(m); +}if (m == this.lastMnemonic) return; +if (this.ui.isMenuItem || this.ui.isMenu ) { +var shortcutKeys=$I$(11).get$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S(this.ui.menuItem, this.ui, "Menu.shortcutKeys"); +if (shortcutKeys == null ) { +shortcutKeys=Clazz_array(Integer.TYPE, -1, [8]); +}var map=$I$(8).getUIInputMap$javax_swing_JComponent$I(this.ui.menuItem, 2); +if (this.lastMnemonic != 0 && map != null ) { +for (var shortcutKey, $shortcutKey = 0, $$shortcutKey = shortcutKeys; $shortcutKey<$$shortcutKey.length&&((shortcutKey=($$shortcutKey[$shortcutKey])),1);$shortcutKey++) { +map.remove$javax_swing_KeyStroke($I$(12).getKeyStroke$I$I$Z(this.lastMnemonic, shortcutKey, false)); +} +}if (m != 0) { +if (map == null ) { +map=this.createInputMap$javax_swing_JComponent(this.ui.menuItem); +$I$(8).replaceUIInputMap$javax_swing_JComponent$I$javax_swing_InputMap(this.ui.menuItem, 2, map); +}for (var i=shortcutKeys.length; --i >= 0; ) { +map.put$javax_swing_KeyStroke$O($I$(12).getKeyStroke$I$I$Z(m, shortcutKeys[i], false), this.ui.isMenu ? "selectMenu" : "doClick"); +} +}}this.lastMnemonic=m; +if (this.ui.isMenuItem || this.ui.isMenu ) { +return; +}var map=$I$(8).getUIInputMap$javax_swing_JComponent$I(b, 2); +if (m != 0) { +if (map == null ) { +map=Clazz_new_($I$(10).c$$javax_swing_JComponent,[b]); +$I$(8).replaceUIInputMap$javax_swing_JComponent$I$javax_swing_InputMap(b, 2, map); +}map.clear$(); +map.put$javax_swing_KeyStroke$O($I$(12).getKeyStroke$I$I$Z(m, 8, false), "pressed"); +map.put$javax_swing_KeyStroke$O($I$(12).getKeyStroke$I$I$Z(m, 8, true), "released"); +map.put$javax_swing_KeyStroke$O($I$(12).getKeyStroke$I$I$Z(m, 0, true), "released"); +} else if (map != null ) { +map.clear$(); +}}); + +Clazz_newMeth(C$, ['stateChanged$javax_swing_event_ChangeEvent','stateChanged$'], function (e) { +var b=e.getSource$(); +this.verifyButtonClick$javax_swing_AbstractButton$Z(b, false); +}); + +Clazz_newMeth(C$, 'focusGained$java_awt_event_FocusEvent', function (e) { +}); + +Clazz_newMeth(C$, 'focusLost$java_awt_event_FocusEvent', function (e) { +var b=e.getSource$(); +var model=b.getModel$(); +model.setArmed$Z(false); +model.setPressed$Z(false); +}); + +Clazz_newMeth(C$, 'mouseMoved$java_awt_event_MouseEvent', function (e) { +}); + +Clazz_newMeth(C$, 'mouseDragged$java_awt_event_MouseEvent', function (e) { +}); + +Clazz_newMeth(C$, 'mouseClicked$java_awt_event_MouseEvent', function (e) { +}); + +Clazz_newMeth(C$, 'mousePressed$java_awt_event_MouseEvent', function (e) { +if ($I$(8).isLeftMouseButton$java_awt_event_MouseEvent(e)) { +var b=e.getSource$(); +if (b.getUIClassID$() == "MenuUI" && (b).isTopLevelMenu$() ) { +(b).setPopupMenuVisible$Z(!(b).isPopupMenuVisible$()); +var root=(b.getTopLevelAncestor$()).getRootPane$(); +root.requestFocus$(); +}}}); + +Clazz_newMeth(C$, 'mouseReleased$java_awt_event_MouseEvent', function (e) { +if ($I$(8).isLeftMouseButton$java_awt_event_MouseEvent(e)) { +var b=e.getSource$(); +if (C$.checkHideMenus$javax_swing_AbstractButton(b)) return; +b.doClick$I(0); +this.verifyButtonClick$javax_swing_AbstractButton$Z(b, true); +}}); + +Clazz_newMeth(C$, 'checkHideMenus$javax_swing_AbstractButton', function (b) { +var s=b.getUIClassID$(); +if (s == "MenuUI") return true; +if (s.indexOf$S("MenuItemUI") >= 0) $I$(2).hideMenusAndToolTip$(); +return false; +}, 1); + +Clazz_newMeth(C$, 'mouseEntered$java_awt_event_MouseEvent', function (e) { +var b=e.getSource$(); +var model=b.getModel$(); +if (b.isRolloverEnabled$() && !$I$(8).isLeftMouseButton$java_awt_event_MouseEvent(e) ) { +model.setRollover$Z(true); +}if (model.isPressed$()) model.setArmed$Z(true); +}); + +Clazz_newMeth(C$, 'mouseExited$java_awt_event_MouseEvent', function (e) { +var b=e.getSource$(); +var model=b.getModel$(); +if (b.isRolloverEnabled$()) { +model.setRollover$Z(false); +}model.setArmed$Z(false); +}); + +Clazz_newMeth(C$, 'verifyButtonClick$javax_swing_AbstractButton$Z', function (b, delayed) { +var m=b.getModel$(); +var btn=this.ui.actionNode; +if (btn == null ) return true; +var state=m.isSelected$(); +{ +if (delayed) { setTimeout(function(){ btn && btn.checked != state && (btn.checked = state); }, 0); } else { btn.checked = state; } +} +return true; +}); + +Clazz_newMeth(C$, 'updateAcceleratorBinding$javax_swing_JComponent', function (jc) { +var a; +if (this.ui.isMenu && (this.ui.jc).isTopLevelMenu$() ) { +var i=(this.ui.jc).getMnemonic$(); +if (i == 0) return; +a=$I$(12).getKeyStroke$I$I$Z(i, 8, false); +} else { +a=this.ui.menuItem.getAccelerator$(); +}var map=$I$(8).getUIInputMap$javax_swing_JComponent$I(jc, 2); +if (map != null ) { +map.clear$(); +}if (a != null ) { +if (map == null ) { +map=this.createInputMap$javax_swing_JComponent(jc); +$I$(8).replaceUIInputMap$javax_swing_JComponent$I$javax_swing_InputMap(jc, 2, map); +}map.put$javax_swing_KeyStroke$O(a, "doClick"); +}}); +; +(function(){var C$=Clazz_newClass(P$.ButtonListener, "Actions", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'sun.swing.UIAction'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.menu=null; +this.force=false; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.force=false; +}, 1); + +Clazz_newMeth(C$, 'c$$S', function (name) { +C$.superclazz.c$$S.apply(this, [name]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) { +var b=e.getSource$(); +if (b.秘getUI$().isModalBlocked$()) return; +var model=b.getModel$(); +switch (this.getName$()) { +case "pressed": +model.setArmed$Z(true); +model.setPressed$Z(true); +if (!b.hasFocus$()) { +b.requestFocus$(); +}break; +case "released": +model.setPressed$Z(false); +model.setArmed$Z(false); +break; +case "doClick": +var mi=e.getSource$(); +$I$(1).defaultManager$().clearSelectedPath$(); +if (!P$.ButtonListener.checkHideMenus$javax_swing_AbstractButton(mi)) { +mi.doClick$(); +break; +}case "selectMenu": +var menu=p$1.getMenu$java_awt_event_ActionEvent.apply(this, [e]); +if (menu.isTopLevelMenu$()) { +$I$(2).hideMenusAndToolTip$(); +var p=menu.getPopupMenu$(); +menu.setPopupMenuVisible$Z(!p.isVisible$()); +return; +}if (!$I$(3).crossMenuMnemonic) { +var pm=$I$(4).getLastPopup$(); +if (pm != null && pm !== menu.getParent$() ) { +return; +}}var defaultManager=$I$(1).defaultManager$(); +if (this.force) { +var cnt=menu.getParent$(); +if (cnt != null && Clazz_instanceOf(cnt, "javax.swing.JMenuBar") ) { +var me; +var subElements; +subElements=menu.getPopupMenu$().getSubElements$(); +if (subElements.length > 0) { +me=Clazz_array($I$(5), [4]); +me[0]=cnt; +me[1]=menu; +me[2]=menu.getPopupMenu$(); +me[3]=subElements[0]; +} else { +me=Clazz_array($I$(5), [3]); +me[0]=cnt; +me[1]=menu; +me[2]=menu.getPopupMenu$(); +}defaultManager.setSelectedPath$javax_swing_MenuElementA(me); +}} else { +var path=defaultManager.getSelectedPath$(); +if (path.length > 0 && path[path.length - 1] === menu ) { +C$.appendPath$javax_swing_MenuElementA$javax_swing_MenuElement(path, menu.getPopupMenu$()); +}}break; +} +}); + +Clazz_newMeth(C$, 'isEnabled$O', function (sender) { +if (Clazz_instanceOf(sender, "javax.swing.JMenu")) { +return (sender).isEnabled$(); +}if (Clazz_instanceOf(sender, "javax.swing.JMenuItem")) { +return (sender).isEnabled$(); +}if (Clazz_instanceOf(sender, "javax.swing.AbstractButton") && !(sender).getModel$().isEnabled$() ) { +return false; +}return true; +}); + +Clazz_newMeth(C$, 'c$$S$javax_swing_JMenu$Z', function (key, menu, shouldForce) { +C$.superclazz.c$$S.apply(this, [key]); +C$.$init$.apply(this); +this.menu=menu; +this.force=shouldForce; +}, 1); + +Clazz_newMeth(C$, 'getMenu$java_awt_event_ActionEvent', function (e) { +if (Clazz_instanceOf(e.getSource$(), "javax.swing.JMenu")) { +return e.getSource$(); +}return this.menu; +}, p$1); + +Clazz_newMeth(C$, 'appendPath$javax_swing_MenuElementA$javax_swing_MenuElement', function (path, elem) { +var newPath=Clazz_array($I$(5), [path.length + 1]); +System.arraycopy$O$I$O$I$I(path, 0, newPath, 0, path.length); +newPath[path.length]=elem; +$I$(1).defaultManager$().setSelectedPath$javax_swing_MenuElementA(newPath); +}, 1); + +Clazz_newMeth(C$); +})() + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 13:34:20 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("swingjs.plaf"),I$=[[0,'java.awt.Dimension']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "DefaultMenuLayout", null, 'javax.swing.BoxLayout', 'javax.swing.plaf.UIResource'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$java_awt_Container$I', function (target, axis) { +C$.superclazz.c$$java_awt_Container$I.apply(this, [target, axis]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'preferredLayoutSize$java_awt_Container', function (target) { +if (Clazz_instanceOf(target, "javax.swing.JPopupMenu")) { +var popupMenu=target; +if (popupMenu.getComponentCount$() == 0) { +return Clazz_new_($I$(1).c$$I$I,[0, 0]); +}}C$.superclazz.prototype.invalidateLayout$java_awt_Container.apply(this, [target]); +return C$.superclazz.prototype.preferredLayoutSize$java_awt_Container.apply(this, [target]); +}); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:39 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("swingjs.plaf"),p$1={},I$=[[0,'javax.swing.plaf.FontUIResource','javax.swing.UIDefaults','java.awt.Color','javax.swing.plaf.ColorUIResource','sun.swing.SwingLazyValue','javax.swing.plaf.InsetsUIResource',['javax.swing.plaf.BorderUIResource','.EtchedBorderUIResource'],['javax.swing.DefaultListCellRenderer','.UIResource'],'javax.swing.plaf.DimensionUIResource',['javax.swing.plaf.BorderUIResource','.EmptyBorderUIResource'],['javax.swing.UIDefaults','.LazyInputMap'],'java.awt.Dimension','Boolean']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "HTML5LookAndFeel", null, 'javax.swing.LookAndFeel'); +C$.dialogPlain12=null; +C$.dialogBold12=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.dialogPlain12=Clazz_new_($I$(1).c$$S$I$I,["Dialog", 0, 12]); +C$.dialogBold12=Clazz_new_($I$(1).c$$S$I$I,["Dialog", 1, 12]); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +Clazz_super_(C$, this,1); +}, 1); + +Clazz_newMeth(C$, 'getDefaults$', function () { +var table=Clazz_new_($I$(2).c$$I$F,[610, 0.75]); +this.initClassDefaults$javax_swing_UIDefaults(table); +this.initSystemColorDefaults$javax_swing_UIDefaults(table); +this.initComponentDefaults$javax_swing_UIDefaults(table); +return table; +}); + +Clazz_newMeth(C$, 'initialize$', function () { +}); + +Clazz_newMeth(C$, 'installAWTEventListener$', function () { +}); + +Clazz_newMeth(C$, 'uninitialize$', function () { +}); + +Clazz_newMeth(C$, 'initClassDefaults$javax_swing_UIDefaults', function (table) { +var packageName="swingjs.plaf."; +var uiDefaults=Clazz_array(java.lang.Object, -1, ["ButtonUI", "swingjs.plaf.JSButtonUI", "CheckBoxUI", "swingjs.plaf.JSCheckBoxUI", "ColorChooserUI", "swingjs.plaf.JSColorChooserUI", "FormattedTextFieldUI", "swingjs.plaf.JSFormattedTextFieldUI", "MenuBarUI", "swingjs.plaf.JSMenuBarUI", "MenuUI", "swingjs.plaf.JSMenuUI", "MenuItemUI", "swingjs.plaf.JSMenuItemUI", "CheckBoxMenuItemUI", "swingjs.plaf.JSCheckBoxMenuItemUI", "RadioButtonMenuItemUI", "swingjs.plaf.JSRadioButtonMenuItemUI", "RadioButtonUI", "swingjs.plaf.JSRadioButtonUI", "ToggleButtonUI", "swingjs.plaf.JSToggleButtonUI", "PopupMenuUI", "swingjs.plaf.JSPopupMenuUI", "ProgressBarUI", "swingjs.plaf.JSProgressBarUI", "ScrollBarUI", "swingjs.plaf.JSScrollBarUI", "ScrollPaneUI", "swingjs.plaf.JSScrollPaneUI", "SplitPaneUI", "swingjs.plaf.JSSplitPaneUI", "SliderUI", "swingjs.plaf.JSSliderUI", "SeparatorUI", "swingjs.plaf.JSSeparatorUI", "SpinnerUI", "swingjs.plaf.JSSpinnerUI", "ToolBarSeparatorUI", "swingjs.plaf.JSToolBarSeparatorUI", "PopupMenuSeparatorUI", "swingjs.plaf.JSPopupMenuSeparatorUI", "TabbedPaneUI", "swingjs.plaf.JSTabbedPaneUI", "TextAreaUI", "swingjs.plaf.JSTextAreaUI", "TextFieldUI", "swingjs.plaf.JSTextFieldUI", "PasswordFieldUI", "swingjs.plaf.JSPasswordFieldUI", "TextPaneUI", "swingjs.plaf.JSTextPaneUI", "EditorPaneUI", "swingjs.plaf.JSEditorPaneUI", "TreeUI", "swingjs.plaf.JSTreeUI", "LabelUI", "swingjs.plaf.JSLabelUI", "ListUI", "swingjs.plaf.JSListUI", "ToolBarUI", "swingjs.plaf.JSToolBarUI", "ToolTipUI", "swingjs.plaf.JSToolTipUI", "ComboBoxUI", "swingjs.plaf.JSComboBoxUI", "TableUI", "swingjs.plaf.JSTableUI", "TableHeaderUI", "swingjs.plaf.JSTableHeaderUI", "InternalFrameUI", "swingjs.plaf.JSInternalFrameUI", "DesktopPaneUI", "swingjs.plaf.JSDesktopPaneUI", "DesktopIconUI", "swingjs.plaf.JSDesktopIconUI", "OptionPaneUI", "swingjs.plaf.JSOptionPaneUI", "PanelUI", "swingjs.plaf.JSPanelUI", "ViewportUI", "swingjs.plaf.JSViewportUI", "RootPaneUI", "swingjs.plaf.JSRootPaneUI"]); +table.putDefaults$OA(uiDefaults); +}); + +Clazz_newMeth(C$, 'initSystemColorDefaults$javax_swing_UIDefaults', function (table) { +var defaultSystemColors=Clazz_array(String, -1, ["window", "#FFFFFF", "windowBorder", "#000000", "windowText", "#333333", "menu", "#EEEEEE", "menuText", "#333333", "text", "#C0C0C0", "textText", "#333333", "textHighlight", "#B8CFE5", "textHighlightText", "#000000", "textInactiveText", "#808080", "control", "#EEEEEE", "controlText", "#333333", "controlHighlight", "#C0C0C0", "controlLtHighlight", "#B8CFE5", "controlShadow", "#808080", "controlDkShadow", "#000000", "scrollbar", "#E0E0E0", "info", "#FFFFE1", "infoText", "#000000"]); +this.loadSystemColors$javax_swing_UIDefaults$SA$Z(table, defaultSystemColors, this.isNativeLookAndFeel$()); +}); + +Clazz_newMeth(C$, 'loadSystemColors$javax_swing_UIDefaults$SA$Z', function (table, systemColors, useNative) { +for (var i=0; i < systemColors.length; i+=2) { +var color=$I$(3).black; +try { +color=$I$(3).decode$S(systemColors[i + 1]); +} catch (e) { +if (Clazz_exceptionOf(e,"NumberFormatException")){ +e.printStackTrace$(); +} else { +throw e; +} +} +table.put$O$O(systemColors[i], Clazz_new_($I$(4).c$$java_awt_Color,[color])); +} +}); + +Clazz_newMeth(C$, 'initResourceBundle$javax_swing_UIDefaults', function (table) { +}, p$1); + +Clazz_newMeth(C$, 'initComponentDefaults$javax_swing_UIDefaults', function (table) { +p$1.initResourceBundle$javax_swing_UIDefaults.apply(this, [table]); +var oneThousand= new Long(1000); +var twelve= new Integer(12); +var fontPlain= new Integer(0); +var serifPlain12=Clazz_new_($I$(1).c$$S$I$I,["Serif", 0, 12]); +var sansSerifPlain12=Clazz_new_($I$(1).c$$S$I$I,["SansSerif", 0, 12]); +var monospacedPlain12=Clazz_new_($I$(1).c$$S$I$I,["Monospaced", 0, 12]); +var sansSerifPlain18=Clazz_new_($I$(5).c$$S$S$OA,["javax.swing.plaf.FontUIResource", null, Clazz_array(java.lang.Object, -1, ["SansSerif", new Integer(0), Integer.valueOf$I(18)])]); +var red=Clazz_new_($I$(4).c$$java_awt_Color,[$I$(3).red]); +var black=Clazz_new_($I$(4).c$$java_awt_Color,[$I$(3).black]); +var white=Clazz_new_($I$(4).c$$java_awt_Color,[$I$(3).white]); +var gray=Clazz_new_($I$(4).c$$java_awt_Color,[$I$(3).gray]); +var darkGray=Clazz_new_($I$(4).c$$java_awt_Color,[$I$(3).darkGray]); +var scrollBarTrack=Clazz_new_($I$(4).c$$I$I$I,[224, 224, 224]); +var control=table.getColor$O("control"); +var controlDkShadow=table.getColor$O("controlDkShadow"); +var controlHighlight=table.getColor$O("controlHighlight"); +var controlLtHighlight=table.getColor$O("controlLtHighlight"); +var controlShadow=table.getColor$O("controlShadow"); +var controlText=table.getColor$O("controlText"); +var menu=table.getColor$O("menu"); +var menuText=table.getColor$O("menuText"); +var textHighlight=table.getColor$O("textHighlight"); +var textHighlightText=table.getColor$O("textHighlightText"); +var disabledTextColor=table.getColor$O("textInactiveText"); +var textText=table.getColor$O("textText"); +var window=table.getColor$O("window"); +var zeroInsets=Clazz_new_($I$(6).c$$I$I$I$I,[0, 0, 0, 0]); +var twoInsets=Clazz_new_($I$(6).c$$I$I$I$I,[2, 2, 2, 2]); +var threeInsets=Clazz_new_($I$(6).c$$I$I$I$I,[3, 3, 3, 3]); +var marginBorder=Clazz_new_($I$(5).c$$S,["javax.swing.plaf.basic.BasicBorders$MarginBorder"]); +var etchedBorder=Clazz_new_($I$(7)); +var loweredBevelBorder=Clazz_new_($I$(5).c$$S$S,["javax.swing.plaf.BorderUIResource", "getLoweredBevelBorderUIResource"]); +var blackLineBorder=Clazz_new_($I$(5).c$$S$S,["javax.swing.plaf.BorderUIResource", "getBlackLineBorderUIResource"]); +var buttonBorder=Clazz_new_($I$(5).c$$S$S,["javax.swing.plaf.basic.BasicBorders", "getButtonBorder"]); +var buttonToggleBorder=Clazz_new_($I$(5).c$$S$S,["javax.swing.plaf.basic.BasicBorders", "getToggleButtonBorder"]); +var radioButtonBorder=Clazz_new_($I$(5).c$$S$S,["javax.swing.plaf.basic.BasicBorders", "getRadioButtonBorder"]); +var listCellRendererActiveValue=((P$.HTML5LookAndFeel$1|| +(function(){var C$=Clazz_newClass(P$, "HTML5LookAndFeel$1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, null, [['javax.swing.UIDefaults','javax.swing.UIDefaults.ActiveValue']], 1); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, ['createValue$javax_swing_UIDefaults','createValue$'], function (table) { +return Clazz_new_($I$(8)); +}); +})() +), Clazz_new_(P$.HTML5LookAndFeel$1.$init$, [this, null])); +var optionPaneMinimumSize=Clazz_new_($I$(9).c$$I$I,[262, 90]); +var zero= new Integer(0); +var zeroBorder=Clazz_new_($I$(5).c$$S$OA,["javax.swing.plaf.BorderUIResource$EmptyBorderUIResource", Clazz_array(java.lang.Object, -1, [zero, zero, zero, zero])]); +var optionPaneBorder=Clazz_new_($I$(10).c$$I$I$I$I,[10, 10, 12, 10]); +var optionPaneButtonAreaBorder=Clazz_new_($I$(5).c$$S$OA,["javax.swing.plaf.BorderUIResource$EmptyBorderUIResource", Clazz_array(java.lang.Object, -1, [ new Integer(6), zero, zero, zero])]); +var toolBarSeparatorSize=Clazz_new_($I$(9).c$$I$I,[10, 10]); +var tabbedPaneTabInsets=Clazz_new_($I$(6).c$$I$I$I$I,[4, 4, 8, 4]); +var tabbedPaneTabPadInsets=Clazz_new_($I$(6).c$$I$I$I$I,[2, 2, 2, 1]); +var tabbedPaneTabAreaInsets=Clazz_new_($I$(6).c$$I$I$I$I,[3, 2, 0, 2]); +var tabbedPaneContentBorderInsets=Clazz_new_($I$(6).c$$I$I$I$I,[2, 2, 3, 3]); +var textFieldBorder=Clazz_new_($I$(5).c$$S$S,["javax.swing.plaf.basic.BasicBorders", "getTextFieldBorder"]); +var editorMargin=threeInsets; +var four= new Integer(4); +var defaults=Clazz_array(java.lang.Object, -1, ["*.font", C$.dialogPlain12, "*.background", control, "*.foreground", controlText, "Button.background", control, "Button.foreground", controlText, "Button.inactiveForeground", disabledTextColor, "Button.border", buttonBorder, "Button.margin", Clazz_new_($I$(6).c$$I$I$I$I,[2, 14, 2, 14]), "Button.textIconGap", four, "Button.focusInputMap", Clazz_new_($I$(11).c$$OA,[Clazz_array(java.lang.Object, -1, ["SPACE", "pressed", "released SPACE", "released", "ENTER", "pressed", "released ENTER", "released"])]), "ToggleButton.background", control, "ToggleButton.foreground", controlText, "ToggleButton.highlight", controlLtHighlight, "ToggleButton.border", buttonBorder, "ToggleButton.margin", Clazz_new_($I$(6).c$$I$I$I$I,[2, 14, 2, 14]), "ToggleButton.textIconGap", four, "ToggleButton.textShiftOffset", zero, "ToggleButton.focusInputMap", Clazz_new_($I$(11).c$$OA,[Clazz_array(java.lang.Object, -1, ["SPACE", "pressed", "released SPACE", "released"])]), "RadioButton.background", control, "RadioButton.foreground", controlText, "RadioButton.border", buttonBorder, "RadioButton.margin", twoInsets, "RadioButton.textIconGap", four, "RadioButton.textShiftOffset", zero, "RadioButton.focusInputMap", Clazz_new_($I$(11).c$$OA,[Clazz_array(java.lang.Object, -1, ["SPACE", "pressed", "released SPACE", "released", "ENTER", "pressed"])]), "CheckBox.background", control, "CheckBox.foreground", controlText, "CheckBox.border", buttonBorder, "CheckBox.margin", twoInsets, "CheckBox.textIconGap", four, "CheckBox.textShiftOffset", zero, "CheckBox.focusInputMap", Clazz_new_($I$(11).c$$OA,[Clazz_array(java.lang.Object, -1, ["SPACE", "pressed", "released SPACE", "released"])]), "ColorChooser.background", control, "ColorChooser.foreground", controlText, "ColorChooser.swatchesSwatchSize", Clazz_new_($I$(12).c$$I$I,[10, 10]), "ColorChooser.swatchesRecentSwatchSize", Clazz_new_($I$(12).c$$I$I,[10, 10]), "ColorChooser.swatchesDefaultRecentColor", control, "ComboBox.font", sansSerifPlain12, "ComboBox.background", window, "ComboBox.foreground", textText, "ComboBox.selectionBackground", textHighlight, "ComboBox.selectionForeground", textHighlightText, "ComboBox.disabledBackground", control, "ComboBox.disabledForeground", disabledTextColor, "ComboBox.timeFactor", oneThousand, "ComboBox.isEnterSelectablePopup", $I$(13).FALSE, "ComboBox.ancestorInputMap", Clazz_new_($I$(11).c$$OA,[Clazz_array(java.lang.Object, -1, ["ESCAPE", "hidePopup", "PAGE_UP", "pageUpPassThrough", "PAGE_DOWN", "pageDownPassThrough", "HOME", "homePassThrough", "END", "endPassThrough", "ENTER", "enterPressed"])]), "FileChooser.readOnly", $I$(13).FALSE, "InternalFrameTitlePane.iconifyButtonOpacity", $I$(13).TRUE, "InternalFrameTitlePane.maximizeButtonOpacity", $I$(13).TRUE, "InternalFrameTitlePane.closeButtonOpacity", $I$(13).TRUE, "Desktop.minOnScreenInsets", threeInsets, "Desktop.background", table.get$O("desktop"), "Label.font", C$.dialogBold12, "Label.background", control, "Label.foreground", controlText, "Label.inactiveForeground", disabledTextColor, "Label.border", null, "List.background", window, "List.foreground", textText, "List.selectionBackground", textHighlight, "List.selectionForeground", textHighlightText, "List.cellRenderer", listCellRendererActiveValue, "List.timeFactor", oneThousand, "List.focusInputMap", Clazz_new_($I$(11).c$$OA,[Clazz_array(java.lang.Object, -1, ["ctrl C", "copy", "ctrl V", "paste", "ctrl X", "cut", "COPY", "copy", "PASTE", "paste", "CUT", "cut", "control INSERT", "copy", "shift INSERT", "paste", "shift DELETE", "cut", "UP", "selectPreviousRow", "KP_UP", "selectPreviousRow", "shift UP", "selectPreviousRowExtendSelection", "shift KP_UP", "selectPreviousRowExtendSelection", "ctrl shift UP", "selectPreviousRowExtendSelection", "ctrl shift KP_UP", "selectPreviousRowExtendSelection", "ctrl UP", "selectPreviousRowChangeLead", "ctrl KP_UP", "selectPreviousRowChangeLead", "DOWN", "selectNextRow", "KP_DOWN", "selectNextRow", "shift DOWN", "selectNextRowExtendSelection", "shift KP_DOWN", "selectNextRowExtendSelection", "ctrl shift DOWN", "selectNextRowExtendSelection", "ctrl shift KP_DOWN", "selectNextRowExtendSelection", "ctrl DOWN", "selectNextRowChangeLead", "ctrl KP_DOWN", "selectNextRowChangeLead", "LEFT", "selectPreviousColumn", "KP_LEFT", "selectPreviousColumn", "shift LEFT", "selectPreviousColumnExtendSelection", "shift KP_LEFT", "selectPreviousColumnExtendSelection", "ctrl shift LEFT", "selectPreviousColumnExtendSelection", "ctrl shift KP_LEFT", "selectPreviousColumnExtendSelection", "ctrl LEFT", "selectPreviousColumnChangeLead", "ctrl KP_LEFT", "selectPreviousColumnChangeLead", "RIGHT", "selectNextColumn", "KP_RIGHT", "selectNextColumn", "shift RIGHT", "selectNextColumnExtendSelection", "shift KP_RIGHT", "selectNextColumnExtendSelection", "ctrl shift RIGHT", "selectNextColumnExtendSelection", "ctrl shift KP_RIGHT", "selectNextColumnExtendSelection", "ctrl RIGHT", "selectNextColumnChangeLead", "ctrl KP_RIGHT", "selectNextColumnChangeLead", "HOME", "selectFirstRow", "shift HOME", "selectFirstRowExtendSelection", "ctrl shift HOME", "selectFirstRowExtendSelection", "ctrl HOME", "selectFirstRowChangeLead", "END", "selectLastRow", "shift END", "selectLastRowExtendSelection", "ctrl shift END", "selectLastRowExtendSelection", "ctrl END", "selectLastRowChangeLead", "PAGE_UP", "scrollUp", "shift PAGE_UP", "scrollUpExtendSelection", "ctrl shift PAGE_UP", "scrollUpExtendSelection", "ctrl PAGE_UP", "scrollUpChangeLead", "PAGE_DOWN", "scrollDown", "shift PAGE_DOWN", "scrollDownExtendSelection", "ctrl shift PAGE_DOWN", "scrollDownExtendSelection", "ctrl PAGE_DOWN", "scrollDownChangeLead", "ctrl A", "selectAll", "ctrl SLASH", "selectAll", "ctrl BACK_SLASH", "clearSelection", "SPACE", "addToSelection", "ctrl SPACE", "toggleAndAnchor", "shift SPACE", "extendTo", "ctrl shift SPACE", "moveSelectionTo"])]), "List.focusInputMap.RightToLeft", Clazz_new_($I$(11).c$$OA,[Clazz_array(java.lang.Object, -1, ["LEFT", "selectNextColumn", "KP_LEFT", "selectNextColumn", "shift LEFT", "selectNextColumnExtendSelection", "shift KP_LEFT", "selectNextColumnExtendSelection", "ctrl shift LEFT", "selectNextColumnExtendSelection", "ctrl shift KP_LEFT", "selectNextColumnExtendSelection", "ctrl LEFT", "selectNextColumnChangeLead", "ctrl KP_LEFT", "selectNextColumnChangeLead", "RIGHT", "selectPreviousColumn", "KP_RIGHT", "selectPreviousColumn", "shift RIGHT", "selectPreviousColumnExtendSelection", "shift KP_RIGHT", "selectPreviousColumnExtendSelection", "ctrl shift RIGHT", "selectPreviousColumnExtendSelection", "ctrl shift KP_RIGHT", "selectPreviousColumnExtendSelection", "ctrl RIGHT", "selectPreviousColumnChangeLead", "ctrl KP_RIGHT", "selectPreviousColumnChangeLead"])]), "MenuBar.font", C$.dialogPlain12, "MenuBar.background", menu, "MenuBar.foreground", menuText, "MenuItem.font", C$.dialogPlain12, "MenuItem.background", menu, "MenuItem.foreground", menuText, "MenuItem.border", marginBorder, "MenuItem.borderPainted", $I$(13).FALSE, "MenuItem.margin", twoInsets, "RadioButtonMenuItem.font", C$.dialogPlain12, "RadioButtonMenuItem.background", menu, "RadioButtonMenuItem.foreground", menuText, "RadioButtonMenuItem.border", marginBorder, "RadioButtonMenuItem.margin", twoInsets, "CheckBoxMenuItem.font", C$.dialogPlain12, "CheckBoxMenuItem.background", menu, "CheckBoxMenuItem.foreground", menuText, "CheckBoxMenuItem.border", marginBorder, "CheckBoxMenuItem.borderPainted", $I$(13).FALSE, "CheckBoxMenuItem.margin", twoInsets, "Menu.background", menu, "Menu.foreground", menuText, "Menu.border", marginBorder, "Menu.borderPainted", $I$(13).FALSE, "Menu.margin", twoInsets, "Menu.crossMenuMnemonic", $I$(13).FALSE, "PopupMenu.background", menu, "PopupMenu.foreground", menuText, "PopupMenu.selectedWindowInputMapBindings", Clazz_array(java.lang.Object, -1, ["ESCAPE", "cancel", "DOWN", "selectNext", "KP_DOWN", "selectNext", "UP", "selectPrevious", "KP_UP", "selectPrevious", "LEFT", "selectParent", "KP_LEFT", "selectParent", "RIGHT", "selectChild", "KP_RIGHT", "selectChild", "ENTER", "return", "ctrl ENTER", "return", "SPACE", "return"]), "PopupMenu.consumeEventOnClose", $I$(13).FALSE, "OptionPane.yesButtonText", "Yes", "OptionPane.noButtonText", "No", "OptionPane.cancelButtonText", "Cancel", "OptionPane.okButtonText", "OK", "OptionPane.font", C$.dialogPlain12, "OptionPane.background", control, "OptionPane.foreground", controlText, "OptionPane.messageForeground", controlText, "OptionPane.border", optionPaneBorder, "OptionPane.messageAreaBorder", zeroBorder, "OptionPane.buttonAreaBorder", optionPaneButtonAreaBorder, "OptionPane.minimumSize", optionPaneMinimumSize, "Panel.font", C$.dialogPlain12, "Panel.background", control, "Panel.foreground", textText, "ProgressBar.cellLength", new Integer(1), "ProgressBar.cellSpacing", zero, "ProgressBar.repaintInterval", new Integer(50), "ProgressBar.cycleTime", new Integer(3000), "ProgressBar.horizontalSize", Clazz_new_($I$(9).c$$I$I,[146, 12]), "ProgressBar.verticalSize", Clazz_new_($I$(9).c$$I$I,[12, 146]), "ScrollBar.background", scrollBarTrack, "ScrollBar.foreground", control, "ScrollBar.width", new Integer(16), "ScrollPane.background", control, "ScrollPane.foreground", controlText, "ScrollPane.border", textFieldBorder, "Viewport.background", control, "Viewport.foreground", textText, "Slider.font", C$.dialogPlain12, "Slider.foreground", control, "Slider.background", control, "Slider.horizontalSize", Clazz_new_($I$(12).c$$I$I,[200, 21]), "Slider.verticalSize", Clazz_new_($I$(12).c$$I$I,[21, 200]), "Slider.minimumHorizontalSize", Clazz_new_($I$(12).c$$I$I,[36, 21]), "Slider.minimumVerticalSize", Clazz_new_($I$(12).c$$I$I,[21, 36]), "Slider.focusInputMap", Clazz_new_($I$(11).c$$OA,[Clazz_array(java.lang.Object, -1, ["RIGHT", "positiveUnitIncrement", "KP_RIGHT", "positiveUnitIncrement", "DOWN", "negativeUnitIncrement", "KP_DOWN", "negativeUnitIncrement", "PAGE_DOWN", "negativeBlockIncrement", "LEFT", "negativeUnitIncrement", "KP_LEFT", "negativeUnitIncrement", "UP", "positiveUnitIncrement", "KP_UP", "positiveUnitIncrement", "PAGE_UP", "positiveBlockIncrement", "HOME", "minScroll", "END", "maxScroll"])]), "Slider.focusInputMap.RightToLeft", Clazz_new_($I$(11).c$$OA,[Clazz_array(java.lang.Object, -1, ["RIGHT", "negativeUnitIncrement", "KP_RIGHT", "negativeUnitIncrement", "LEFT", "positiveUnitIncrement", "KP_LEFT", "positiveUnitIncrement"])]), "Spinner.font", sansSerifPlain12, "Spinner.background", control, "Spinner.foreground", control, "Spinner.arrowButtonSize", Clazz_new_($I$(12).c$$I$I,[16, 5]), "SplitPane.background", control, "SplitPane.dividerSize", new Integer(7), "SplitPaneDivider.draggingColor", darkGray, "TabbedPane.font", C$.dialogPlain12, "TabbedPane.background", control, "TabbedPane.foreground", controlText, "TabbedPane.highlight", controlLtHighlight, "TabbedPane.light", controlHighlight, "TabbedPane.shadow", controlShadow, "TabbedPane.darkShadow", controlDkShadow, "TabbedPane.selected", null, "TabbedPane.textIconGap", four, "TabbedPane.tabsOverlapBorder", $I$(13).FALSE, "TabbedPane.labelShift", new Integer(1), "TabbedPane.selectedLabelShift", new Integer(-1), "TabbedPane.tabInsets", tabbedPaneTabInsets, "TabbedPane.selectedTabPadInsets", tabbedPaneTabPadInsets, "TabbedPane.tabAreaInsets", tabbedPaneTabAreaInsets, "TabbedPane.contentBorderInsets", tabbedPaneContentBorderInsets, "TabbedPane.tabRunOverlay", new Integer(2), "TabbedPane.focusInputMap", Clazz_new_($I$(11).c$$OA,[Clazz_array(java.lang.Object, -1, ["RIGHT", "navigateRight", "KP_RIGHT", "navigateRight", "LEFT", "navigateLeft", "KP_LEFT", "navigateLeft", "UP", "navigateUp", "KP_UP", "navigateUp", "DOWN", "navigateDown", "KP_DOWN", "navigateDown", "ctrl DOWN", "requestFocusForVisibleComponent", "ctrl KP_DOWN", "requestFocusForVisibleComponent"])]), "Table.font", C$.dialogPlain12, "Table.foreground", controlText, "Table.background", white, "Table.selectionForeground", textHighlightText, "Table.selectionBackground", textHighlight, "Table.dropLineColor", controlShadow, "Table.dropLineShortColor", black, "Table.gridColor", controlShadow, "Table.focusCellBackground", window, "Table.focusCellForeground", controlText, "Table.scrollPaneBorder", loweredBevelBorder, "Table.ancestorInputMap", Clazz_new_($I$(11).c$$OA,[Clazz_array(java.lang.Object, -1, ["RIGHT", "selectNextColumn", "KP_RIGHT", "selectNextColumn", "shift RIGHT", "selectNextColumnExtendSelection", "shift KP_RIGHT", "selectNextColumnExtendSelection", "LEFT", "selectPreviousColumn", "KP_LEFT", "selectPreviousColumn", "shift LEFT", "selectPreviousColumnExtendSelection", "shift KP_LEFT", "selectPreviousColumnExtendSelection", "DOWN", "selectNextRow", "KP_DOWN", "selectNextRow", "shift DOWN", "selectNextRowExtendSelection", "shift KP_DOWN", "selectNextRowExtendSelection", "UP", "selectPreviousRow", "KP_UP", "selectPreviousRow", "shift UP", "selectPreviousRowExtendSelection", "shift KP_UP", "selectPreviousRowExtendSelection", "HOME", "selectFirstColumn", "shift HOME", "selectFirstColumnExtendSelection", "END", "selectLastColumn", "shift END", "selectLastColumnExtendSelection", "PAGE_UP", "scrollUpChangeSelection", "shift PAGE_UP", "scrollUpExtendSelection", "PAGE_DOWN", "scrollDownChangeSelection", "shift PAGE_DOWN", "scrollDownExtendSelection", "ENTER", "selectNextRowCell", "shift ENTER", "selectPreviousRowCell", "ctrl A", "selectAll", "ESCAPE", "cancel", "F2", "startEditing"])]), "Table.sortIconColor", controlShadow, "TableHeader.font", C$.dialogPlain12, "TableHeader.foreground", controlText, "TableHeader.background", control, "TextField.font", sansSerifPlain12, "TextField.background", window, "TextField.foreground", textText, "TextField.shadow", controlShadow, "TextField.darkShadow", controlDkShadow, "TextField.light", controlHighlight, "TextField.highlight", controlLtHighlight, "TextField.inactiveForeground", disabledTextColor, "TextField.inactiveBackground", control, "TextField.margin", zeroInsets, "FormattedTextField.font", sansSerifPlain12, "FormattedTextField.background", window, "FormattedTextField.foreground", textText, "FormattedTextField.inactiveForeground", disabledTextColor, "FormattedTextField.inactiveBackground", control, "FormattedTextField.caretForeground", textText, "FormattedTextField.margin", zeroInsets, "PasswordField.font", monospacedPlain12, "PasswordField.background", window, "PasswordField.foreground", textText, "PasswordField.inactiveForeground", disabledTextColor, "PasswordField.inactiveBackground", control, "PasswordField.margin", zeroInsets, "PasswordField.echoChar", new Character('*'), "TextArea.font", sansSerifPlain12, "TextArea.background", window, "TextArea.foreground", textText, "TextArea.inactiveForeground", disabledTextColor, "TextArea.margin", zeroInsets, "TextPane.font", serifPlain12, "TextPane.background", white, "TextPane.foreground", textText, "TextPane.inactiveForeground", disabledTextColor, "TextPane.margin", editorMargin, "EditorPane.font", serifPlain12, "EditorPane.background", white, "EditorPane.foreground", textText, "EditorPane.inactiveForeground", disabledTextColor, "EditorPane.margin", editorMargin, "TitledBorder.titleColor", controlText, "TitledBorder.border", etchedBorder, "ToolBar.font", C$.dialogPlain12, "ToolBar.background", control, "ToolBar.foreground", controlText, "ToolBar.shadow", controlShadow, "ToolBar.darkShadow", controlDkShadow, "ToolBar.light", controlHighlight, "ToolBar.highlight", controlLtHighlight, "ToolBar.dockingBackground", control, "ToolBar.dockingForeground", red, "ToolBar.floatingBackground", control, "ToolBar.floatingForeground", darkGray, "ToolBar.border", etchedBorder, "ToolBar.separatorSize", toolBarSeparatorSize, "ToolTip.font", sansSerifPlain18, "ToolTip.background", table.get$O("info"), "ToolTip.foreground", table.get$O("infoText"), "ToolTip.border", blackLineBorder, "Tree.paintLines", $I$(13).TRUE, "Tree.lineTypeDashed", $I$(13).FALSE, "Tree.background", window, "Tree.foreground", textText, "Tree.hash", gray, "Tree.textForeground", textText, "Tree.textBackground", table.get$O("text"), "Tree.selectionForeground", textHighlightText, "Tree.selectionBackground", textHighlight, "Tree.leftChildIndent", new Integer(7), "Tree.rightChildIndent", new Integer(13), "Tree.rowHeight", new Integer(16), "Tree.scrollsOnExpand", $I$(13).TRUE, "Tree.timeFactor", oneThousand, "Tree.focusInputMap.RightToLeft", Clazz_new_($I$(11).c$$OA,[Clazz_array(java.lang.Object, -1, ["RIGHT", "selectParent", "KP_RIGHT", "selectParent", "LEFT", "selectChild", "KP_LEFT", "selectChild"])]), "Tree.ancestorInputMap", Clazz_new_($I$(11).c$$OA,[Clazz_array(java.lang.Object, -1, ["ESCAPE", "cancel"])])]); +table.putDefaults$OA(defaults); +}); + +Clazz_newMeth(C$, 'getName$', function () { +return "SwingJS"; +}); + +Clazz_newMeth(C$, 'getID$', function () { +return "SwingJS"; +}); + +Clazz_newMeth(C$, 'getDescription$', function () { +return "SwingJS L&F"; +}); + +Clazz_newMeth(C$, 'isNativeLookAndFeel$', function () { +return true; +}); + +Clazz_newMeth(C$, 'isSupportedLookAndFeel$', function () { +return true; +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:39 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("swingjs.plaf"),I$=[[0,'javax.swing.LookAndFeel']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "JSAppletUI", null, 'swingjs.plaf.JSLightweightUI'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'updateDOMNode$', function () { +if (this.domNode == null ) { +this.containerNode=this.domNode=P$.JSComponentUI.newDOMObject$S$S$SA("div", this.id, []); +this.addClass$swingjs_api_js_DOMNode$S(this.domNode, "swingjs-window"); +}return this.updateDOMNodeCUI$(); +}); + +Clazz_newMeth(C$, 'installUI$javax_swing_JComponent', function (jc) { +$I$(1).installColorsAndFont$javax_swing_JComponent$S$S$S(jc, null, null, "Panel.font"); +}); + +Clazz_newMeth(C$, 'setVisible$Z', function (b) { +C$.superclazz.prototype.setVisible$Z.apply(this, [b]); +}); + +Clazz_newMeth(C$, ['propertyChange$java_beans_PropertyChangeEvent','propertyChange$'], function (e) { +}); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 13:00:47 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("swingjs.plaf"),I$=[[0,'swingjs.api.js.DOMNode','javax.swing.BorderFactory','swingjs.plaf.ButtonListener','javax.swing.UIManager','javax.swing.LookAndFeel','java.awt.Dimension','swingjs.plaf.JSLabelUI']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "JSButtonUI", null, 'swingjs.plaf.JSLightweightUI'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.menuItem=null; +this.button=null; +this.shiftOffset=0; +this.defaultTextShiftOffset=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.shiftOffset=0; +}, 1); + +Clazz_newMeth(C$, 'updateDOMNode$', function () { +if (this.domNode == null ) { +this.isSimpleButton=true; +this.allowPaintedBackground=false; +this.setDoPropagate$(); +this.domNode=this.enableNode=this.buttonNode=P$.JSComponentUI.newDOMObject$S$S$SA("button", this.id + "_dom", ["type", "button", "style", "padding:0"]); +this.addClass$swingjs_api_js_DOMNode$S(this.domNode, "j2sbutton"); +this.setFocusable$(); +$I$(1).setPositionAbsolute(this.domNode); +this.iconNode=null; +this.createButton$(); +}this.setupButton$(); +return this.updateDOMNodeCUI$(); +}); + +Clazz_newMeth(C$, 'createButton$', function () { +this.addCentering$swingjs_api_js_DOMNode(this.buttonNode); +this.setDataComponent$swingjs_api_js_DOMNode(this.buttonNode); +this.setDataComponent$swingjs_api_js_DOMNode(this.iconNode); +this.setDataComponent$swingjs_api_js_DOMNode(this.textNode); +this.setEnabled$Z(this.c.isEnabled$()); +}); + +Clazz_newMeth(C$, 'createItem$S$swingjs_api_js_DOMNode', function (type, buttonNode) { +var text=this.button.getText$(); +var icon=this.button.getIcon$(); +var gap=this.button.getIconTextGap$(); +this.isMenuSep=(("|").equals$O(text) || ("-").equals$O(text) ); +if (this.isMenuSep) { +text=null; +}this.itemNode=P$.JSComponentUI.newDOMObject$S$S$SA("li", this.id, []); +if (text == null && icon == null ) return this.itemNode; +this.menuAnchorNode=P$.JSComponentUI.newDOMObject$S$S$SA("div", this.id + "_a", []); +if (type != "_bar") { +this.addClass$swingjs_api_js_DOMNode$S(this.menuAnchorNode, "a"); +$I$(1).setStyles(this.menuAnchorNode, ["margin", "1px 2px 1px 2px"]); +}this.itemNode.appendChild(this.menuAnchorNode); +this.setDoPropagate$(); +if (buttonNode == null ) { +this.addCentering$swingjs_api_js_DOMNode(this.menuAnchorNode); +this.enableNode=this.itemNode; +this.setIconAndText$S$javax_swing_Icon$I$S("btn", icon, gap, text); +} else { +this.menuAnchorNode.appendChild(buttonNode); +this.setMenuItem$swingjs_api_js_DOMNode(buttonNode); +}this.setMenuItem$swingjs_api_js_DOMNode(this.menuAnchorNode); +this.setMenuItem$(); +this.setDataComponent$swingjs_api_js_DOMNode(this.menuAnchorNode); +this.setDataComponent$swingjs_api_js_DOMNode(this.itemNode); +return this.itemNode; +}); + +Clazz_newMeth(C$, 'setMenuItem$', function () { +this.setMenuItem$swingjs_api_js_DOMNode(this.itemNode); +this.setMenuItem$swingjs_api_js_DOMNode(this.iconNode); +this.setMenuItem$swingjs_api_js_DOMNode(this.textNode); +this.setMenuItem$swingjs_api_js_DOMNode(this.centeringNode); +}); + +Clazz_newMeth(C$, 'enableNode$swingjs_api_js_DOMNode$Z', function (node, b) { +if (this.isMenuItem) { +if (b) { +this.removeClass$swingjs_api_js_DOMNode$S(node, "ui-j2smenu-disabled ui-state-disabled"); +} else { +this.addClass$swingjs_api_js_DOMNode$S(node, "ui-j2smenu-disabled ui-state-disabled"); +}} else { +C$.superclazz.prototype.enableNode$swingjs_api_js_DOMNode$Z.apply(this, [node, b]); +}}); + +Clazz_newMeth(C$, 'setupButton$', function () { +this.setIconAndText$S$javax_swing_Icon$I$S("button", this.button.getIcon$(), this.button.getIconTextGap$(), this.button.getText$()); +if (this.button.getBorder$() == null || this.button.getBorder$() === $I$(2).emptyBorder ) $I$(1).setStyles(this.buttonNode, ["border", "none"]); + else if (this.button.getBorder$() === $I$(2).html5Border ) $I$(1).setStyles(this.buttonNode, ["border", null]); +if (!this.isMenuSep) { +this.setMnemonic$I(-1); +this.setAlignments$javax_swing_AbstractButton$Z(this.button, false); +this.updateCenteringNode$(); +}}); + +Clazz_newMeth(C$, ['handleJSEvent$O$I$O','handleJSEvent$'], function (target, eventType, jQueryEvent) { +if (eventType == 401) { +}if (this.actionNode == null ) if (this.menuItem == null ) { +switch (eventType) { +case 402: +var keyCode=jQueryEvent.keyCode ||0; +if (keyCode == 13 || keyCode == 32 ) { +this.button.doClick$(); +return true; +}} +} else { +switch (eventType) { +case 502: +this.menuItem.doClick$I(0); +return true; +} +}return false; +}); + +Clazz_newMeth(C$, 'installUI$javax_swing_JComponent', function (jc) { +this.button=jc; +this.installDefaults$javax_swing_AbstractButton(this.button); +this.installListeners$javax_swing_AbstractButton(this.button); +this.installKeyboardActions$javax_swing_AbstractButton(this.button); +}); + +Clazz_newMeth(C$, 'uninstallUI$javax_swing_JComponent', function (jc) { +this.uninstallKeyboardActions$javax_swing_AbstractButton(this.button); +this.uninstallListeners$javax_swing_AbstractButton(this.button); +}); + +Clazz_newMeth(C$, 'installListeners$javax_swing_AbstractButton', function (b) { +this.buttonListener=Clazz_new_($I$(3).c$$swingjs_plaf_JSButtonUI,[this]); +if (this.buttonListener != null ) { +b.addMouseListener$java_awt_event_MouseListener(this.buttonListener); +b.addMouseMotionListener$java_awt_event_MouseMotionListener(this.buttonListener); +b.addFocusListener$java_awt_event_FocusListener(this.buttonListener); +b.addPropertyChangeListener$java_beans_PropertyChangeListener(this.buttonListener); +b.addChangeListener$javax_swing_event_ChangeListener(this.buttonListener); +}}); + +Clazz_newMeth(C$, 'uninstallListeners$javax_swing_AbstractButton', function (b) { +var listener=this.getButtonListener$javax_swing_AbstractButton(b); +if (listener != null ) { +b.removeMouseListener$java_awt_event_MouseListener(listener); +b.removeMouseMotionListener$java_awt_event_MouseMotionListener(listener); +b.removeFocusListener$java_awt_event_FocusListener(listener); +b.removeChangeListener$javax_swing_event_ChangeListener(listener); +b.removePropertyChangeListener$java_beans_PropertyChangeListener(listener); +}}); + +Clazz_newMeth(C$, 'installKeyboardActions$javax_swing_AbstractButton', function (b) { +var listener=this.getButtonListener$javax_swing_AbstractButton(b); +if (listener != null ) { +listener.installKeyboardActions$javax_swing_JComponent(b); +}}); + +Clazz_newMeth(C$, 'uninstallKeyboardActions$javax_swing_AbstractButton', function (b) { +var listener=this.getButtonListener$javax_swing_AbstractButton(b); +if (listener != null ) { +listener.uninstallKeyboardActions$javax_swing_JComponent(b); +}}); + +Clazz_newMeth(C$, 'getButtonListener$javax_swing_AbstractButton', function (b) { +var listeners=b.getMouseMotionListeners$(); +if (listeners != null ) { +for (var counter=0; counter < listeners.length; counter++) { +if (Clazz_instanceOf(listeners[counter], "swingjs.plaf.ButtonListener")) { +return listeners[counter]; +}} +}return null; +}); + +Clazz_newMeth(C$, 'getPropertyPrefix$', function () { +return "Button"; +}); + +Clazz_newMeth(C$, 'installDefaults$javax_swing_AbstractButton', function (b) { +var pp=this.getPropertyPrefix$(); +this.defaultTextShiftOffset=$I$(4).getInt$O(pp + ".textShiftOffset"); +if (b.getMargin$() == null || (Clazz_instanceOf(b.getMargin$(), "javax.swing.plaf.UIResource")) ) { +b.setMargin$java_awt_Insets($I$(4).getInsets$O(pp + ".margin")); +}$I$(5).installColorsAndFont$javax_swing_JComponent$S$S$S(b, pp + ".background", pp + ".foreground", pp + ".font"); +$I$(5).installBorder$javax_swing_JComponent$S(b, pp + ".border"); +$I$(5).installProperty$javax_swing_JComponent$S$O(b, "iconTextGap", new Integer(4)); +}); + +Clazz_newMeth(C$, 'getCSSAdjustment$Z', function (addingCSS) { +return Clazz_new_($I$(6).c$$I$I,[(this.itemNode == null ? 0 : 10), 0]); +}); + +Clazz_newMeth(C$, 'setInnerComponentBounds$I$I', function (width, height) { +if (this.isSimpleButton) { +var i=this.getButtonOuterInsets$javax_swing_AbstractButton(this.button); +if (!(Clazz_instanceOf(this.button.getBorder$(), "javax.swing.plaf.UIResource"))) { +$I$(1).setTopLeftAbsolute(this.domNode, i.left, i.top); +$I$(1).setSize(this.domNode, width - i.left - i.right , height - i.top - i.bottom ); +$I$(1).setStyles(this.domNode, ["border", i.left + i.right + i.top + i.bottom > 0 ? "none" : null]); +}}}); + +Clazz_newMeth(C$, 'getHTMLSizePreferred$swingjs_api_js_DOMNode$Z', function (obj, addCSS) { +this.setAlignments$javax_swing_AbstractButton$Z(this.button, !addCSS); +return this.setHTMLSize1$swingjs_api_js_DOMNode$Z$Z(obj, addCSS, true); +}); + +Clazz_newMeth(C$, 'paint$java_awt_Graphics$javax_swing_JComponent', function (g, c) { +this.imagePersists=true; +if (this.jc.秘paintsSelfEntirely$()) $I$(1).setStyles(this.centeringNode, ["visibility", "visible"]); +C$.superclazz.prototype.paint$java_awt_Graphics$javax_swing_JComponent.apply(this, [g, c]); +}); + +Clazz_newMeth(C$, 'isFocusable$', function () { +return true; +}); + +Clazz_newMeth(C$, 'getPreferredSize$javax_swing_JComponent', function (jc) { +if (this.isAWT && this.isSimpleButton ) return $I$(7).getMinimumSizePeer$javax_swing_JComponent$O(jc, this.button); +return C$.superclazz.prototype.getPreferredSize$javax_swing_JComponent.apply(this, [jc]); +}); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 13:35:05 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("swingjs.plaf"),I$=[]; +var C$=Clazz_newClass(P$, "JSCheckBoxMenuItemUI", null, 'swingjs.plaf.JSCheckBoxUI'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.superclazz.c$.apply(this, []); +C$.$init$.apply(this); +this.isMenuItem=true; +this.actionItemOffset=-7; +}, 1); + +Clazz_newMeth(C$, 'getPropertyPrefix$', function () { +return "CheckBoxMenuItem"; +}); + +Clazz_newMeth(C$, 'installUI$javax_swing_JComponent', function (jc) { +this.menuItem=jc; +C$.superclazz.prototype.installUI$javax_swing_JComponent.apply(this, [jc]); +}); + +Clazz_newMeth(C$, 'isFocusable$', function () { +return false; +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 13:34:21 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("swingjs.plaf"),I$=[]; +var C$=Clazz_newClass(P$, "JSCheckBoxUI", null, 'swingjs.plaf.JSRadioButtonUI'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'getPropertyPrefix$', function () { +return (this.isAWT && (this.jc).isRadio$() ? "RadioButton" : "CheckBox"); +}); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 13:34:20 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("swingjs.plaf"),p$1={},p$2={},p$3={},I$=[[0,'javax.swing.UIManager','sun.swing.DefaultLookup','javax.swing.SwingUtilities','javax.swing.KeyStroke','java.awt.event.ActionEvent','Boolean','javax.swing.plaf.basic.BasicGraphicsUtils','java.awt.EventQueue',['javax.swing.text.Position','.Bias'],'swingjs.jquery.JQueryUI','swingjs.JSUtil','StringBuffer','javax.swing.CellRendererPane','java.awt.Dimension',['swingjs.plaf.JSComboBoxUI','.DefaultKeySelectionManager'],'javax.swing.LookAndFeel','sun.awt.AppContext','javax.swing.DefaultListCellRenderer',['swingjs.plaf.JSComboBoxUI','.Actions'],'swingjs.plaf.JSComboPopupList',['swingjs.plaf.BasicComboBoxRenderer','.UIResource'],['swingjs.plaf.BasicComboBoxEditor','.UIResource'],['swingjs.plaf.JSComboBoxUI','.Handler'],['java.awt.Component','.BaselineResizeBehavior'],'java.awt.Rectangle','swingjs.plaf.LazyActionMap']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "JSComboBoxUI", function(){ +Clazz_newInstance(this, arguments,0,C$); +}, 'swingjs.plaf.JSLightweightUI'); +C$.COMBO_UI_LIST_CELL_RENDERER_KEY=null; +C$.HIDE_POPUP_KEY=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +{ +var jqueryui=Clazz_getClass($I$(10)); +$I$(11).loadStaticResource$S("swingjs/jquery/j2sComboBox.js"); +}; +C$.COMBO_UI_LIST_CELL_RENDERER_KEY=Clazz_new_($I$(12).c$$S,["DefaultListCellRendererKey"]); +C$.HIDE_POPUP_KEY=Clazz_new_($I$(12).c$$S,["HidePopupKey"]); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.hasCustomRenderer=false; +this.renderer=null; +this.comboBox=null; +this.hasFocus=false; +this.isTableCellEditor=false; +this.listBox=null; +this.currentValuePane=null; +this.popup=null; +this.editor=null; +this.keyListener=null; +this.focusListener=null; +this.propertyChangeListener=null; +this.itemListener=null; +this.popupMouseListener=null; +this.popupMouseMotionListener=null; +this.popupKeyListener=null; +this.listDataListener=null; +this.handler=null; +this.timeFactor=0; +this.lastTime=0; +this.time=0; +this.keySelectionManager=null; +this.isMinimumSizeDirty=false; +this.cachedMinimumSize=null; +this.isDisplaySizeDirty=false; +this.cachedDisplaySize=null; +this.sameBaseline=false; +this.squareButton=false; +this.padding=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.hasFocus=false; +this.isTableCellEditor=false; +this.currentValuePane=Clazz_new_($I$(13)); +this.timeFactor=1000; +this.lastTime=0; +this.time=0; +this.isMinimumSizeDirty=true; +this.cachedMinimumSize=Clazz_new_($I$(14).c$$I$I,[0, 0]); +this.isDisplaySizeDirty=true; +this.cachedDisplaySize=Clazz_new_($I$(14).c$$I$I,[0, 0]); +this.squareButton=true; +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +Clazz_super_(C$, this,1); +this.isContainer=true; +this.allowPaintedBackground=false; +this.setDoc$(); +}, 1); + +Clazz_newMeth(C$, 'updateDOMNode$', function () { +this.comboBox=this.jc; +if (this.domNode == null ) { +this.domNode=this.focusNode=P$.JSComponentUI.newDOMObject$S$S$SA("div", this.id, []); +this.setDataShadowKeyComponent$swingjs_api_js_DOMNode$java_awt_Component(this.domNode, this.listBox); +}this.addFocusHandler$(); +this.setCssFont$swingjs_api_js_DOMNode$java_awt_Font(this.domNode, this.c.getFont$()); +this.popup.updateEnabled$(); +return this.updateDOMNodeCUI$(); +}); + +Clazz_newMeth(C$, 'setVisible$Z', function (b) { +if (this.isTainted) this.setHTMLElement$(); +C$.superclazz.prototype.setVisible$Z.apply(this, [b]); +if (b) this.popup.setComboVisible$Z(true); +}); + +Clazz_newMeth(C$, ['propertyChange$java_beans_PropertyChangeEvent','propertyChange$'], function (e) { +var name=e.getPropertyName$(); +switch (name) { +case "ancestor": +break; +case "updateSwingJS": +this.popup.updateState$java_util_EventObject$S(e, name); +return; +case "renderer": +this.renderer=e.getNewValue$(); +this.listBox.setCellRenderer$javax_swing_ListCellRenderer(this.renderer); +this.hasCustomRenderer=true; +return; +} +C$.superclazz.prototype.propertyChange$java_beans_PropertyChangeEvent.apply(this, [e]); +}); + +Clazz_newMeth(C$, 'getChildCount$', function () { +return 0; +}); + +Clazz_newMeth(C$, 'setEnabled$Z', function (b) { +this.popup.updateEnabled$(); +}); + +Clazz_newMeth(C$, 'installUI$javax_swing_JComponent', function (c) { +this.isMinimumSizeDirty=true; +this.comboBox=c; +this.installDefaults$(); +this.listBox=this.popup=this.createPopup$(); +this.listBox.setSelectionBackground$java_awt_Color(null); +this.listBox.addListSelectionListener$javax_swing_event_ListSelectionListener(p$1.getHandler.apply(this, [])); +this.comboBox.add$java_awt_Component(this.listBox); +var inTable=c.getClientProperty$O("JComboBox.isTableCellEditor"); +if (inTable != null ) { +this.isTableCellEditor=inTable.equals$O($I$(6).TRUE) ? true : false; +}if (this.comboBox.getRenderer$() == null || Clazz_instanceOf(this.comboBox.getRenderer$(), "javax.swing.plaf.UIResource") ) { +this.comboBox.setRenderer$javax_swing_ListCellRenderer(this.createRenderer$()); +}this.installListeners$(); +this.installComponents$(); +this.comboBox.setLayout$java_awt_LayoutManager(this.createLayoutManager$()); +this.comboBox.setRequestFocusEnabled$Z(true); +this.installKeyboardActions$(); +this.comboBox.putClientProperty$O$O("doNotCancelPopup", C$.HIDE_POPUP_KEY); +if (this.keySelectionManager == null || Clazz_instanceOf(this.keySelectionManager, "javax.swing.plaf.UIResource") ) { +this.keySelectionManager=Clazz_new_($I$(15), [this, null]); +}this.comboBox.setKeySelectionManager$javax_swing_JComboBox_KeySelectionManager(this.keySelectionManager); +}); + +Clazz_newMeth(C$, 'uninstallUI$javax_swing_JComponent', function (c) { +this.setPopupVisible$javax_swing_JComboBox$Z(this.comboBox, false); +this.popup.uninstallingUI$(); +this.uninstallKeyboardActions$(); +this.comboBox.setLayout$java_awt_LayoutManager(null); +this.uninstallComponents$(); +this.uninstallListeners$(); +this.uninstallDefaults$(); +if (this.comboBox.getRenderer$() == null || Clazz_instanceOf(this.comboBox.getRenderer$(), "javax.swing.plaf.UIResource") ) { +this.comboBox.setRenderer$javax_swing_ListCellRenderer(null); +}var comboBoxEditor=this.comboBox.editor &&this.comboBox.getEditor$(); +if (Clazz_instanceOf(comboBoxEditor, "javax.swing.plaf.UIResource")) { +if (comboBoxEditor.getEditorComponent$().hasFocus$()) { +this.comboBox.requestFocusInWindow$(); +}this.comboBox.setEditor$javax_swing_ComboBoxEditor(null); +}if (Clazz_instanceOf(this.keySelectionManager, "javax.swing.plaf.UIResource")) { +this.comboBox.setKeySelectionManager$javax_swing_JComboBox_KeySelectionManager(null); +}this.handler=null; +this.keyListener=null; +this.focusListener=null; +this.listDataListener=null; +this.propertyChangeListener=null; +this.popup=null; +this.listBox=null; +this.comboBox=null; +}); + +Clazz_newMeth(C$, 'installDefaults$', function () { +$I$(16).installColorsAndFont$javax_swing_JComponent$S$S$S(this.comboBox, "ComboBox.background", "ComboBox.foreground", "ComboBox.font"); +$I$(16).installBorder$javax_swing_JComponent$S(this.comboBox, "ComboBox.border"); +$I$(16).installProperty$javax_swing_JComponent$S$O(this.comboBox, "opaque", $I$(6).TRUE); +var l=$I$(1).get$O("ComboBox.timeFactor"); +this.timeFactor=l == null ? 1000 : l.longValue$(); +var b=$I$(1).get$O("ComboBox.squareButton"); +this.squareButton=b == null ? true : (b).booleanValue$(); +this.padding=$I$(1).getInsets$O("ComboBox.padding"); +}); + +Clazz_newMeth(C$, 'installListeners$', function () { +if ((this.itemListener=this.createItemListener$()) != null ) { +this.comboBox.addItemListener$java_awt_event_ItemListener(this.itemListener); +}if ((this.propertyChangeListener=this.createPropertyChangeListener$()) != null ) { +this.comboBox.addPropertyChangeListener$java_beans_PropertyChangeListener(this.propertyChangeListener); +}if ((this.keyListener=this.createKeyListener$()) != null ) { +this.comboBox.addKeyListener$java_awt_event_KeyListener(this.keyListener); +}if ((this.focusListener=this.createFocusListener$()) != null ) { +this.comboBox.addFocusListener$java_awt_event_FocusListener(this.focusListener); +}if ((this.popupMouseListener=this.popup.getMouseListener$()) != null ) { +this.comboBox.addMouseListener$java_awt_event_MouseListener(this.popupMouseListener); +}if ((this.popupMouseMotionListener=this.popup.getMouseMotionListener$()) != null ) { +this.comboBox.addMouseMotionListener$java_awt_event_MouseMotionListener(this.popupMouseMotionListener); +}if ((this.popupKeyListener=this.popup.getKeyListener$()) != null ) { +this.comboBox.addKeyListener$java_awt_event_KeyListener(this.popupKeyListener); +}if (this.comboBox.getModel$() != null ) { +if ((this.listDataListener=this.createListDataListener$()) != null ) { +this.comboBox.getModel$().addListDataListener$javax_swing_event_ListDataListener(this.listDataListener); +}}}); + +Clazz_newMeth(C$, 'uninstallDefaults$', function () { +$I$(16).installColorsAndFont$javax_swing_JComponent$S$S$S(this.comboBox, "ComboBox.background", "ComboBox.foreground", "ComboBox.font"); +$I$(16).uninstallBorder$javax_swing_JComponent(this.comboBox); +}); + +Clazz_newMeth(C$, 'uninstallListeners$', function () { +if (this.keyListener != null ) { +this.comboBox.removeKeyListener$java_awt_event_KeyListener(this.keyListener); +}if (this.itemListener != null ) { +this.comboBox.removeItemListener$java_awt_event_ItemListener(this.itemListener); +}if (this.propertyChangeListener != null ) { +this.comboBox.removePropertyChangeListener$java_beans_PropertyChangeListener(this.propertyChangeListener); +}if (this.focusListener != null ) { +this.comboBox.removeFocusListener$java_awt_event_FocusListener(this.focusListener); +}if (this.popupMouseListener != null ) { +this.comboBox.removeMouseListener$java_awt_event_MouseListener(this.popupMouseListener); +}if (this.popupMouseMotionListener != null ) { +this.comboBox.removeMouseMotionListener$java_awt_event_MouseMotionListener(this.popupMouseMotionListener); +}if (this.popupKeyListener != null ) { +this.comboBox.removeKeyListener$java_awt_event_KeyListener(this.popupKeyListener); +}if (this.comboBox.getModel$() != null ) { +if (this.listDataListener != null ) { +this.comboBox.getModel$().removeListDataListener$javax_swing_event_ListDataListener(this.listDataListener); +}}}); + +Clazz_newMeth(C$, 'getPropertyPrefix$', function () { +return "ComboBox"; +}); + +Clazz_newMeth(C$, 'getDisabledColors$S', function (pp) { +this.inactiveBackground=$I$(1).getColor$O(pp + "disabledBackground"); +this.inactiveForeground=$I$(1).getColor$O(pp + "disabledForeground"); +}); + +Clazz_newMeth(C$, 'getDefaultListCellRenderer$', function () { +var renderer=$I$(17).getAppContext$().get$O(C$.COMBO_UI_LIST_CELL_RENDERER_KEY); +if (renderer == null ) { +$I$(17).getAppContext$().put$O$O(C$.COMBO_UI_LIST_CELL_RENDERER_KEY, renderer=Clazz_new_($I$(18))); +}return renderer; +}, 1); + +Clazz_newMeth(C$, 'loadActionMap$swingjs_plaf_LazyActionMap', function (map) { +map.put$javax_swing_Action(Clazz_new_($I$(19).c$$S,["hidePopup"])); +map.put$javax_swing_Action(Clazz_new_($I$(19).c$$S,["pageDownPassThrough"])); +map.put$javax_swing_Action(Clazz_new_($I$(19).c$$S,["pageUpPassThrough"])); +map.put$javax_swing_Action(Clazz_new_($I$(19).c$$S,["homePassThrough"])); +map.put$javax_swing_Action(Clazz_new_($I$(19).c$$S,["endPassThrough"])); +map.put$javax_swing_Action(Clazz_new_($I$(19).c$$S,["selectNext"])); +map.put$javax_swing_Action(Clazz_new_($I$(19).c$$S,["selectNext2"])); +map.put$javax_swing_Action(Clazz_new_($I$(19).c$$S,["togglePopup"])); +map.put$javax_swing_Action(Clazz_new_($I$(19).c$$S,["spacePopup"])); +map.put$javax_swing_Action(Clazz_new_($I$(19).c$$S,["selectPrevious"])); +map.put$javax_swing_Action(Clazz_new_($I$(19).c$$S,["selectPrevious2"])); +map.put$javax_swing_Action(Clazz_new_($I$(19).c$$S,["enterPressed"])); +}, 1); + +Clazz_newMeth(C$, 'createPopup$', function () { +return Clazz_new_($I$(20).c$$swingjs_plaf_JSComboBoxUI,[this]); +}); + +Clazz_newMeth(C$, 'createKeyListener$', function () { +return p$1.getHandler.apply(this, []); +}); + +Clazz_newMeth(C$, 'createFocusListener$', function () { +return p$1.getHandler.apply(this, []); +}); + +Clazz_newMeth(C$, 'createListDataListener$', function () { +return p$1.getHandler.apply(this, []); +}); + +Clazz_newMeth(C$, 'createItemListener$', function () { +return p$1.getHandler.apply(this, []); +}); + +Clazz_newMeth(C$, 'createPropertyChangeListener$', function () { +return p$1.getHandler.apply(this, []); +}); + +Clazz_newMeth(C$, 'createLayoutManager$', function () { +return p$1.getHandler.apply(this, []); +}); + +Clazz_newMeth(C$, 'createRenderer$', function () { +return Clazz_new_($I$(21)); +}); + +Clazz_newMeth(C$, 'createEditor$', function () { +return Clazz_new_($I$(22)); +}); + +Clazz_newMeth(C$, 'getHandler', function () { +if (this.handler == null ) { +this.handler=Clazz_new_($I$(23), [this, null]); +}return this.handler; +}, p$1); + +Clazz_newMeth(C$, 'updateToolTipTextForChildren', function () { +var children=this.comboBox.getComponents$(); +for (var i=0; i < children.length; ++i) { +if (Clazz_instanceOf(children[i], "javax.swing.JComponent")) { +(children[i]).setToolTipText$S(this.comboBox.getToolTipText$()); +}} +}, p$1); + +Clazz_newMeth(C$, 'installComponents$', function () { +if (this.comboBox.isEditable$()) { +this.addEditor$(); +}this.comboBox.add$java_awt_Component(this.currentValuePane); +}); + +Clazz_newMeth(C$, 'uninstallComponents$', function () { +if (this.editor != null ) { +this.unconfigureEditor$(); +}this.comboBox.removeAll$(); +}); + +Clazz_newMeth(C$, 'addEditor$', function () { +this.removeEditor$(); +this.editor=this.comboBox.getEditor$().getEditorComponent$(); +if (this.editor != null ) { +this.configureEditor$(); +this.comboBox.add$java_awt_Component(this.editor); +if (this.comboBox.isFocusOwner$()) { +this.editor.requestFocusInWindow$(); +}}}); + +Clazz_newMeth(C$, 'removeEditor$', function () { +if (this.editor != null ) { +this.unconfigureEditor$(); +this.comboBox.remove$java_awt_Component(this.editor); +this.editor=null; +}}); + +Clazz_newMeth(C$, 'configureEditor$', function () { +this.editor.setEnabled$Z(this.comboBox.isEnabled$()); +this.editor.setFocusable$Z(this.comboBox.isFocusable$()); +this.editor.setFont$java_awt_Font(this.comboBox.getFont$()); +if (this.focusListener != null ) { +this.editor.addFocusListener$java_awt_event_FocusListener(this.focusListener); +}this.editor.addFocusListener$java_awt_event_FocusListener(p$1.getHandler.apply(this, [])); +this.comboBox.getEditor$().addActionListener$java_awt_event_ActionListener(p$1.getHandler.apply(this, [])); +if (Clazz_instanceOf(this.editor, "javax.swing.JComponent")) { +(this.editor).putClientProperty$O$O("doNotCancelPopup", C$.HIDE_POPUP_KEY); +(this.editor).setInheritsPopupMenu$Z(true); +}this.comboBox.configureEditor$javax_swing_ComboBoxEditor$O(this.comboBox.getEditor$(), this.comboBox.getSelectedItem$()); +this.editor.addPropertyChangeListener$java_beans_PropertyChangeListener(this.propertyChangeListener); +}); + +Clazz_newMeth(C$, 'unconfigureEditor$', function () { +if (this.focusListener != null ) { +this.editor.removeFocusListener$java_awt_event_FocusListener(this.focusListener); +}this.editor.removePropertyChangeListener$java_beans_PropertyChangeListener(this.propertyChangeListener); +this.editor.removeFocusListener$java_awt_event_FocusListener(p$1.getHandler.apply(this, [])); +this.comboBox.getEditor$().removeActionListener$java_awt_event_ActionListener(p$1.getHandler.apply(this, [])); +}); + +Clazz_newMeth(C$, 'isPopupVisible$javax_swing_JComboBox', function (c) { +return this.popup.isVisible$(); +}); + +Clazz_newMeth(C$, 'setPopupVisible$javax_swing_JComboBox$Z', function (c, v) { +this.popup.setPopupVisible$Z(v); +}); + +Clazz_newMeth(C$, 'isFocusTraversable$javax_swing_JComboBox', function (c) { +return !this.comboBox.isEditable$(); +}); + +Clazz_newMeth(C$, 'paint$java_awt_Graphics$javax_swing_JComponent', function (g, c) { +this.popup.updateCSS$(); +}); + +Clazz_newMeth(C$, 'getPreferredSize$javax_swing_JComponent', function (c) { +return this.getMinimumSize$javax_swing_JComponent(c); +}); + +Clazz_newMeth(C$, 'getMinimumSize$javax_swing_JComponent', function (c) { +if (!this.isMinimumSizeDirty) { +return Clazz_new_($I$(14).c$$java_awt_Dimension,[this.cachedMinimumSize]); +}var size=this.getDisplaySize$(); +var insets=c.getInsets$(); +var buttonWidth=20; +size.height+=insets.top + insets.bottom; +size.width+=insets.left + insets.right + buttonWidth + 10 ; +this.cachedMinimumSize.setSize$I$I(size.width, size.height); +this.isMinimumSizeDirty=false; +return Clazz_new_($I$(14).c$$java_awt_Dimension,[size]); +}); + +Clazz_newMeth(C$, 'getMaximumSize$javax_swing_JComponent', function (c) { +return Clazz_new_($I$(14).c$$I$I,[32767, 32767]); +}); + +Clazz_newMeth(C$, 'getBaseline$javax_swing_JComponent$I$I', function (c, width, height) { +C$.superclazz.prototype.getBaseline$javax_swing_JComponent$I$I.apply(this, [c, width, height]); +var baseline=-1; +this.getDisplaySize$(); +if (this.sameBaseline) { +var insets=c.getInsets$(); +height=height - insets.top - insets.bottom ; +if (!this.comboBox.isEditable$()) { +var renderer=this.comboBox.getRenderer$(); +if (renderer == null ) { +renderer=Clazz_new_($I$(18)); +}var value=null; +var prototypeValue=this.comboBox.getPrototypeDisplayValue$(); +if (prototypeValue != null ) { +value=prototypeValue; +} else if (this.comboBox.getModel$().getSize$() > 0) { +value=this.comboBox.getModel$().getElementAt$I(0); +}var component=renderer.getListCellRendererComponent$(this.listBox, value, -1, false, false); +if (Clazz_instanceOf(component, "javax.swing.JLabel")) { +var label=component; +var text=label.getText$(); +if ((text == null ) || text.isEmpty$() ) { +label.setText$S(" "); +}}if (Clazz_instanceOf(component, "javax.swing.JComponent")) { +component.setFont$java_awt_Font(this.comboBox.getFont$()); +}baseline=component.getBaseline$I$I(width, height); +} else { +baseline=this.editor.getBaseline$I$I(width, height); +}if (baseline > 0) { +baseline+=insets.top; +}}return baseline; +}); + +Clazz_newMeth(C$, 'getBaselineResizeBehavior$javax_swing_JComponent', function (c) { +C$.superclazz.prototype.getBaselineResizeBehavior$javax_swing_JComponent.apply(this, [c]); +this.getDisplaySize$(); +if (this.comboBox.isEditable$()) { +return this.editor.getBaselineResizeBehavior$(); +} else if (this.sameBaseline) { +var renderer=this.comboBox.getRenderer$(); +if (renderer == null ) { +renderer=Clazz_new_($I$(18)); +}var value=null; +var prototypeValue=this.comboBox.getPrototypeDisplayValue$(); +if (prototypeValue != null ) { +value=prototypeValue; +} else if (this.comboBox.getModel$().getSize$() > 0) { +value=this.comboBox.getModel$().getElementAt$I(0); +}if (value != null ) { +var component=renderer.getListCellRendererComponent$(this.listBox, value, -1, false, false); +return component.getBaselineResizeBehavior$(); +}}return $I$(24).OTHER; +}); + +Clazz_newMeth(C$, 'isNavigationKey$I', function (keyCode) { +return keyCode == 38 || keyCode == 40 || keyCode == 224 || keyCode == 225 ; +}); + +Clazz_newMeth(C$, 'isNavigationKey$I$I', function (keyCode, modifiers) { +var inputMap=this.comboBox.getInputMap$I(1); +var key=$I$(4).getKeyStroke$I$I(keyCode, modifiers); +if (inputMap != null && inputMap.get$javax_swing_KeyStroke(key) != null ) { +return true; +}return false; +}, p$1); + +Clazz_newMeth(C$, 'selectNextPossibleValue$', function () { +var si; +if (this.comboBox.isPopupVisible$()) { +si=this.listBox.getSelectedIndex$(); +} else { +si=this.comboBox.getSelectedIndex$(); +}if (si < this.comboBox.getModel$().getSize$() - 1) { +this.listBox.setSelectedIndex$I(si + 1); +this.listBox.ensureIndexIsVisible$I(si + 1); +if (!this.isTableCellEditor) { +if (!($I$(1).getBoolean$O("ComboBox.noActionOnKeyNavigation") && this.comboBox.isPopupVisible$() )) { +this.comboBox.setSelectedIndex$I(si + 1); +}}this.repaint$(); +}}); + +Clazz_newMeth(C$, 'selectPreviousPossibleValue$', function () { +var si; +if (this.comboBox.isPopupVisible$()) { +si=this.listBox.getSelectedIndex$(); +} else { +si=this.comboBox.getSelectedIndex$(); +}if (si > 0) { +this.listBox.setSelectedIndex$I(si - 1); +this.listBox.ensureIndexIsVisible$I(si - 1); +if (!this.isTableCellEditor) { +if (!($I$(1).getBoolean$O("ComboBox.noActionOnKeyNavigation") && this.comboBox.isPopupVisible$() )) { +this.comboBox.setSelectedIndex$I(si - 1); +}}this.repaint$(); +}}); + +Clazz_newMeth(C$, 'toggleOpenClose$', function () { +this.setPopupVisible$javax_swing_JComboBox$Z(this.comboBox, !this.isPopupVisible$javax_swing_JComboBox(this.comboBox)); +}); + +Clazz_newMeth(C$, 'rectangleForCurrentValue$', function () { +var width=this.comboBox.getWidth$(); +var height=this.comboBox.getHeight$(); +var insets=this.comboBox.getInsets$(); +var buttonSize=height - (insets.top + insets.bottom); +if ($I$(7).isLeftToRight$java_awt_Component(this.comboBox)) { +return Clazz_new_($I$(25).c$$I$I$I$I,[insets.left, insets.top, width - (insets.left + insets.right + buttonSize ), height - (insets.top + insets.bottom)]); +} else { +return Clazz_new_($I$(25).c$$I$I$I$I,[insets.left + buttonSize, insets.top, width - (insets.left + insets.right + buttonSize ), height - (insets.top + insets.bottom)]); +}}); + +Clazz_newMeth(C$, 'paintCurrentValue$java_awt_Graphics$java_awt_Rectangle$Z', function (g, bounds, hasFocus) { +}); + +Clazz_newMeth(C$, 'paintCurrentValueBackground$java_awt_Graphics$java_awt_Rectangle$Z', function (g, bounds, hasFocus) { +var t=g.getColor$(); +if (this.comboBox.isEnabled$()) g.setColor$java_awt_Color($I$(2).getColor$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S$java_awt_Color(this.comboBox, this, "ComboBox.background", null)); + else g.setColor$java_awt_Color($I$(2).getColor$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S$java_awt_Color(this.comboBox, this, "ComboBox.disabledBackground", null)); +g.fillRect$I$I$I$I(bounds.x, bounds.y, bounds.width, bounds.height); +g.setColor$java_awt_Color(t); +}); + +Clazz_newMeth(C$, 'repaintCurrentValue$', function () { +var r=this.rectangleForCurrentValue$(); +this.comboBox.repaint$I$I$I$I(r.x, r.y, r.width, r.height); +}); + +Clazz_newMeth(C$, 'getDefaultSize$', function () { +var d=this.getSizeForComponent$java_awt_Component(C$.getDefaultListCellRenderer$().getListCellRendererComponent$(this.listBox, " ", -1, false, false)); +return Clazz_new_($I$(14).c$$I$I,[d.width, d.height]); +}); + +Clazz_newMeth(C$, 'getDisplaySize$', function () { +if (!this.isDisplaySizeDirty) { +return Clazz_new_($I$(14).c$$java_awt_Dimension,[this.cachedDisplaySize]); +}var result=Clazz_new_($I$(14)); +this.renderer=this.comboBox.getRenderer$(); +if (this.renderer == null ) { +this.renderer=Clazz_new_($I$(18)); +}this.sameBaseline=true; +var prototypeValue=this.comboBox.getPrototypeDisplayValue$(); +if (prototypeValue != null ) { +result=this.getSizeForComponent$java_awt_Component(this.renderer.getListCellRendererComponent$(this.listBox, prototypeValue, -1, false, false)); +} else { +var model=this.comboBox.getModel$(); +var modelSize=model.getSize$(); +var baseline=-1; +var d; +if (modelSize > 0) { +for (var i=0; i < modelSize; i++) { +var value=model.getElementAt$I(i); +var c=this.renderer.getListCellRendererComponent$(this.listBox, value, -1, false, false); +d=this.getSizeForComponent$java_awt_Component(c); +if (this.sameBaseline && value != null && (!(Clazz_instanceOf(value, "java.lang.String")) || !"".equals$O(value) ) ) { +var newBaseline=c.getBaseline$I$I(d.width, d.height); +if (newBaseline == -1) { +this.sameBaseline=false; +} else if (baseline == -1) { +baseline=newBaseline; +} else if (baseline != newBaseline) { +this.sameBaseline=false; +}}result.width=Math.max(result.width, d.width); +result.height=Math.max(result.height, d.height); +} +} else { +result=this.getDefaultSize$(); +if (this.comboBox.isEditable$()) { +result.width=100; +}}}if (this.comboBox.isEditable$()) { +var d=this.editor.getPreferredSize$(); +result.width=Math.max(result.width, d.width); +result.height=Math.max(result.height, d.height); +}if (this.padding != null ) { +result.width+=this.padding.left + this.padding.right; +result.height+=this.padding.top + this.padding.bottom; +}this.cachedDisplaySize.setSize$I$I(result.width, result.height); +this.isDisplaySizeDirty=false; +return result; +}); + +Clazz_newMeth(C$, 'getSizeForComponent$java_awt_Component', function (comp) { +this.currentValuePane.add$java_awt_Component(comp); +comp.setFont$java_awt_Font(this.comboBox.getFont$()); +var ui=(comp).秘getUI$(); +ui.reInit$Z(true); +var d=comp.getPreferredSize$(); +comp.setSize$java_awt_Dimension(d); +this.currentValuePane.remove$java_awt_Component(comp); +return d; +}); + +Clazz_newMeth(C$, 'installKeyboardActions$', function () { +var km=this.getInputMap$I(1); +$I$(3).replaceUIInputMap$javax_swing_JComponent$I$javax_swing_InputMap(this.comboBox, 1, km); +$I$(26).installLazyActionMap$javax_swing_JComponent$Class$S(this.comboBox, Clazz_getClass(C$), "ComboBox.actionMap"); +}); + +Clazz_newMeth(C$, 'getInputMap$I', function (condition) { +if (condition == 1) { +var keyMap=$I$(2).get$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S(this.comboBox, this, "ComboBox.ancestorInputMap"); +var listMap=$I$(2).get$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S(this.comboBox, this, "List.focusInputMap"); +if (listMap == null ) return keyMap; +listMap.setParent$javax_swing_InputMap(keyMap); +return listMap; +}return null; +}); + +Clazz_newMeth(C$, 'isTableCellEditor$', function () { +return this.isTableCellEditor; +}); + +Clazz_newMeth(C$, 'uninstallKeyboardActions$', function () { +$I$(3).replaceUIInputMap$javax_swing_JComponent$I$javax_swing_InputMap(this.comboBox, 1, null); +$I$(3).replaceUIActionMap$javax_swing_JComponent$javax_swing_ActionMap(this.comboBox, null); +}); + +Clazz_newMeth(C$, 'repaint$', function () { +}); +; +(function(){var C$=Clazz_newClass(P$.JSComboBoxUI, "KeyHandler", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, 'java.awt.event.KeyAdapter'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'keyPressed$java_awt_event_KeyEvent', function (e) { +p$1.getHandler.apply(this.this$0, []).keyPressed$java_awt_event_KeyEvent(e); +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.JSComboBoxUI, "FocusHandler", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, null, 'java.awt.event.FocusListener'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'focusGained$java_awt_event_FocusEvent', function (e) { +p$1.getHandler.apply(this.this$0, []).focusGained$java_awt_event_FocusEvent(e); +}); + +Clazz_newMeth(C$, 'focusLost$java_awt_event_FocusEvent', function (e) { +p$1.getHandler.apply(this.this$0, []).focusLost$java_awt_event_FocusEvent(e); +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.JSComboBoxUI, "ListDataHandler", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, null, 'javax.swing.event.ListDataListener'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'contentsChanged$javax_swing_event_ListDataEvent', function (e) { +p$1.getHandler.apply(this.this$0, []).contentsChanged$javax_swing_event_ListDataEvent(e); +}); + +Clazz_newMeth(C$, 'intervalAdded$javax_swing_event_ListDataEvent', function (e) { +p$1.getHandler.apply(this.this$0, []).intervalAdded$javax_swing_event_ListDataEvent(e); +}); + +Clazz_newMeth(C$, 'intervalRemoved$javax_swing_event_ListDataEvent', function (e) { +p$1.getHandler.apply(this.this$0, []).intervalRemoved$javax_swing_event_ListDataEvent(e); +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.JSComboBoxUI, "ItemHandler", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, null, 'java.awt.event.ItemListener'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, ['itemStateChanged$java_awt_event_ItemEvent','itemStateChanged$'], function (e) { +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.JSComboBoxUI, "PropertyChangeHandler", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, null, 'java.beans.PropertyChangeListener'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, ['propertyChange$java_beans_PropertyChangeEvent','propertyChange$'], function (e) { +p$1.getHandler.apply(this.this$0, []).propertyChange$java_beans_PropertyChangeEvent(e); +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.JSComboBoxUI, "ComboBoxLayoutManager", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, null, 'java.awt.LayoutManager'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'addLayoutComponent$S$java_awt_Component', function (name, comp) { +}); + +Clazz_newMeth(C$, 'removeLayoutComponent$java_awt_Component', function (comp) { +}); + +Clazz_newMeth(C$, 'preferredLayoutSize$java_awt_Container', function (parent) { +return p$1.getHandler.apply(this.this$0, []).preferredLayoutSize$java_awt_Container(parent); +}); + +Clazz_newMeth(C$, 'minimumLayoutSize$java_awt_Container', function (parent) { +return p$1.getHandler.apply(this.this$0, []).minimumLayoutSize$java_awt_Container(parent); +}); + +Clazz_newMeth(C$, 'layoutContainer$java_awt_Container', function (parent) { +p$1.getHandler.apply(this.this$0, []).layoutContainer$java_awt_Container(parent); +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.JSComboBoxUI, "Actions", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'sun.swing.UIAction'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$S', function (name) { +C$.superclazz.c$$S.apply(this, [name]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) { +var key=this.getName$(); +var comboBox=e.getSource$(); +var ui=comboBox.getUI$(); +if (key == "hidePopup") { +comboBox.firePopupMenuCanceled$(); +comboBox.setPopupVisible$Z(false); +} else if (key == "pageDownPassThrough" || key == "pageUpPassThrough" || key == "homePassThrough" || key == "endPassThrough" ) { +var index=p$2.getNextIndex$javax_swing_JComboBox$S.apply(this, [comboBox, key]); +if (index >= 0 && index < comboBox.getItemCount$() ) { +if ($I$(1).getBoolean$O("ComboBox.noActionOnKeyNavigation") && comboBox.isPopupVisible$() ) { +ui.listBox.setSelectedIndex$I(index); +ui.listBox.ensureIndexIsVisible$I(index); +ui.repaint$(); +} else { +comboBox.setSelectedIndex$I(index); +}}} else if (key == "selectNext") { +if (comboBox.isShowing$()) { +if (comboBox.isPopupVisible$()) { +if (ui != null ) { +ui.selectNextPossibleValue$(); +}} else { +comboBox.setPopupVisible$Z(true); +}}} else if (key == "selectNext2") { +if (comboBox.isShowing$()) { +if ((comboBox.isEditable$() || (ui != null && ui.isTableCellEditor$() ) ) && !comboBox.isPopupVisible$() ) { +comboBox.setPopupVisible$Z(true); +} else { +if (ui != null ) { +ui.selectNextPossibleValue$(); +}}}} else if (key == "togglePopup" || key == "spacePopup" ) { +if (ui != null && (key == "togglePopup" || !comboBox.isEditable$() ) ) { +if (ui.isTableCellEditor$()) { +comboBox.setSelectedIndex$I(ui.listBox.getSelectedIndex$()); +} else { +comboBox.setPopupVisible$Z(!comboBox.isPopupVisible$()); +}}} else if (key == "selectPrevious") { +if (ui != null ) { +if (ui.isPopupVisible$javax_swing_JComboBox(comboBox)) { +ui.selectPreviousPossibleValue$(); +} else if ($I$(2).getBoolean$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S$Z(comboBox, ui, "ComboBox.showPopupOnNavigation", false)) { +ui.setPopupVisible$javax_swing_JComboBox$Z(comboBox, true); +}}} else if (key == "selectPrevious2") { +if (comboBox.isShowing$() && ui != null ) { +if (comboBox.isEditable$() && !comboBox.isPopupVisible$() ) { +comboBox.setPopupVisible$Z(true); +} else { +ui.selectPreviousPossibleValue$(); +}}} else if (key == "enterPressed") { +if (comboBox.isPopupVisible$()) { +if ($I$(1).getBoolean$O("ComboBox.noActionOnKeyNavigation")) { +var listItem=ui.listBox.getSelectedValue$(); +if (listItem != null ) { +comboBox.getEditor$().setItem$O(listItem); +comboBox.setSelectedItem$O(listItem); +}comboBox.setPopupVisible$Z(false); +} else { +var isEnterSelectablePopup=$I$(1).getBoolean$O("ComboBox.isEnterSelectablePopup"); +if (!comboBox.isEditable$() || isEnterSelectablePopup || ui.isTableCellEditor ) { +var listItem=ui.listBox.getSelectedValue$(); +if (listItem != null ) { +comboBox.getEditor$().setItem$O(listItem); +comboBox.setSelectedItem$O(listItem); +}}comboBox.setPopupVisible$Z(false); +}} else { +if (ui.isTableCellEditor && !comboBox.isEditable$() ) { +comboBox.setSelectedItem$O(comboBox.getSelectedItem$()); +}var root=$I$(3).getRootPane$java_awt_Component(comboBox); +if (root != null ) { +var im=root.getInputMap$I(2); +var am=root.getActionMap$(); +if (im != null && am != null ) { +var obj=im.get$javax_swing_KeyStroke($I$(4).getKeyStroke$I$I(10, 0)); +if (obj != null ) { +var action=am.get$O(obj); +if (action != null ) { +action.actionPerformed$(Clazz_new_($I$(5).c$$O$I$S$J$I,[root, e.getID$(), e.getActionCommand$(), e.getWhen$(), e.getModifiers$()])); +}}}}}}}); + +Clazz_newMeth(C$, 'getNextIndex$javax_swing_JComboBox$S', function (comboBox, key) { +var listHeight=comboBox.getMaximumRowCount$(); +var selectedIndex=comboBox.getSelectedIndex$(); +if ($I$(1).getBoolean$O("ComboBox.noActionOnKeyNavigation") && (Clazz_instanceOf(comboBox.getUI$(), "swingjs.plaf.JSComboBoxUI")) ) { +selectedIndex=(comboBox.getUI$()).listBox.getSelectedIndex$(); +}if (key == "pageUpPassThrough") { +var index=selectedIndex - listHeight; +return (index < 0 ? 0 : index); +} else if (key == "pageDownPassThrough") { +var index=selectedIndex + listHeight; +var max=comboBox.getItemCount$(); +return (index < max ? index : max - 1); +} else if (key == "homePassThrough") { +return 0; +} else if (key == "endPassThrough") { +return comboBox.getItemCount$() - 1; +}return comboBox.getSelectedIndex$(); +}, p$2); + +Clazz_newMeth(C$, 'isEnabled$O', function (c) { +if (this.getName$() == "hidePopup") { +return (c != null && (c).isPopupVisible$() ); +}return true; +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.JSComboBoxUI, "Handler", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, null, ['java.awt.event.ActionListener', 'java.awt.event.FocusListener', 'java.awt.event.KeyListener', 'java.awt.LayoutManager', 'javax.swing.event.ListDataListener', 'java.beans.PropertyChangeListener', 'javax.swing.event.ListSelectionListener', 'java.awt.event.ItemListener']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, ['itemStateChanged$java_awt_event_ItemEvent','itemStateChanged$'], function (e) { +this.this$0.popup.updateState$java_util_EventObject$S(e, null); +}); + +Clazz_newMeth(C$, ['propertyChange$java_beans_PropertyChangeEvent','propertyChange$'], function (e) { +var propertyName=e.getPropertyName$(); +if (e.getSource$() === this.this$0.editor ) { +if ("border".equals$O(propertyName)) { +this.this$0.isMinimumSizeDirty=true; +this.this$0.isDisplaySizeDirty=true; +this.this$0.comboBox.revalidate$(); +}} else { +var comboBox=e.getSource$(); +if (propertyName == "model") { +var newModel=e.getNewValue$(); +var oldModel=e.getOldValue$(); +if (oldModel != null && this.this$0.listDataListener != null ) { +oldModel.removeListDataListener$javax_swing_event_ListDataListener(this.this$0.listDataListener); +}if (newModel != null && this.this$0.listDataListener != null ) { +newModel.addListDataListener$javax_swing_event_ListDataListener(this.this$0.listDataListener); +}if (this.this$0.editor != null ) { +comboBox.configureEditor$javax_swing_ComboBoxEditor$O(comboBox.getEditor$(), comboBox.getSelectedItem$()); +}this.this$0.isMinimumSizeDirty=true; +this.this$0.isDisplaySizeDirty=true; +comboBox.revalidate$(); +this.this$0.listBox.setModel$javax_swing_ListModel(newModel); +this.b$['swingjs.plaf.JSComponentUI'].setTainted$Z.apply(this.b$['swingjs.plaf.JSComponentUI'], [true]); +this.this$0.updateDOMNode$.apply(this.this$0, []); +this.this$0.popup.updateList$(); +this.this$0.popup.updateSelectedIndex$(); +this.this$0.popup.updateCSS$(); +this.this$0.repaint$.apply(this.this$0, []); +} else if (propertyName == "editor" && comboBox.isEditable$() ) { +this.this$0.addEditor$.apply(this.this$0, []); +comboBox.revalidate$(); +} else if (propertyName == "editable") { +if (comboBox.isEditable$()) { +comboBox.setRequestFocusEnabled$Z(false); +this.this$0.addEditor$.apply(this.this$0, []); +} else { +comboBox.setRequestFocusEnabled$Z(true); +this.this$0.removeEditor$.apply(this.this$0, []); +}p$1.updateToolTipTextForChildren.apply(this.this$0, []); +comboBox.revalidate$(); +} else if (propertyName == "enabled") { +var enabled=comboBox.isEnabled$(); +if (this.this$0.editor != null ) this.this$0.editor.setEnabled$Z(enabled); +this.this$0.repaint$.apply(this.this$0, []); +} else if (propertyName == "focusable") { +var focusable=comboBox.isFocusable$(); +if (this.this$0.editor != null ) this.this$0.editor.setFocusable$Z(focusable); +this.this$0.repaint$.apply(this.this$0, []); +} else if (propertyName == "maximumRowCount") { +if (this.this$0.isPopupVisible$javax_swing_JComboBox.apply(this.this$0, [comboBox])) { +this.this$0.setPopupVisible$javax_swing_JComboBox$Z.apply(this.this$0, [comboBox, false]); +this.this$0.setPopupVisible$javax_swing_JComboBox$Z.apply(this.this$0, [comboBox, true]); +}} else if (propertyName == "font") { +this.this$0.listBox.setFont$java_awt_Font(comboBox.getFont$()); +if (this.this$0.editor != null ) { +this.this$0.editor.setFont$java_awt_Font(comboBox.getFont$()); +}this.this$0.isMinimumSizeDirty=true; +this.this$0.isDisplaySizeDirty=true; +comboBox.validate$(); +} else if (propertyName == "ToolTipText") { +p$1.updateToolTipTextForChildren.apply(this.this$0, []); +} else if (propertyName == "JComboBox.isTableCellEditor") { +var inTable=e.getNewValue$(); +this.this$0.isTableCellEditor=inTable.equals$O($I$(6).TRUE) ? true : false; +} else if (propertyName == "prototypeDisplayValue") { +this.this$0.isMinimumSizeDirty=true; +this.this$0.isDisplaySizeDirty=true; +comboBox.revalidate$(); +} else if (propertyName == "renderer") { +this.this$0.isMinimumSizeDirty=true; +this.this$0.isDisplaySizeDirty=true; +this.this$0.popup.updateList$(); +comboBox.revalidate$(); +}}}); + +Clazz_newMeth(C$, 'keyPressed$java_awt_event_KeyEvent', function (e) { +if (p$1.isNavigationKey$I$I.apply(this.this$0, [e.getKeyCode$(), e.getModifiers$()])) { +this.this$0.lastTime=0; +} else if (this.this$0.comboBox.isEnabled$() && this.this$0.comboBox.getModel$().getSize$() != 0 && p$3.isTypeAheadKey$java_awt_event_KeyEvent.apply(this, [e]) && e.getKeyChar$() != "\uffff" ) { +this.this$0.time=e.getWhen$(); +if (this.this$0.comboBox.selectWithKeyChar$C(e.getKeyChar$())) { +e.consume$(); +}}}); + +Clazz_newMeth(C$, 'keyTyped$java_awt_event_KeyEvent', function (e) { +}); + +Clazz_newMeth(C$, 'keyReleased$java_awt_event_KeyEvent', function (e) { +}); + +Clazz_newMeth(C$, 'isTypeAheadKey$java_awt_event_KeyEvent', function (e) { +return !e.isAltDown$() && !$I$(7).isMenuShortcutKeyDown$java_awt_event_InputEvent(e) ; +}, p$3); + +Clazz_newMeth(C$, 'focusGained$java_awt_event_FocusEvent', function (e) { +var comboBoxEditor=this.this$0.comboBox.getEditor$(); +if ((comboBoxEditor != null ) && (e.getSource$() === comboBoxEditor.getEditorComponent$() ) ) { +return; +}this.this$0.hasFocus=true; +this.this$0.repaint$.apply(this.this$0, []); +if (this.this$0.comboBox.isEditable$() && this.this$0.editor != null ) { +this.this$0.editor.requestFocus$(); +}}); + +Clazz_newMeth(C$, 'focusLost$java_awt_event_FocusEvent', function (e) { +var editor=this.this$0.comboBox.getEditor$(); +if ((editor != null ) && (e.getSource$() === editor.getEditorComponent$() ) ) { +var item=editor.getItem$(); +var selectedItem=this.this$0.comboBox.getSelectedItem$(); +if (!e.isTemporary$() && item != null && !item.equals$O((selectedItem == null ) ? "" : selectedItem) ) { +this.this$0.comboBox.actionPerformed$java_awt_event_ActionEvent(Clazz_new_($I$(5).c$$O$I$S$J$I,[editor, 0, "", $I$(8).getMostRecentEventTime$(), 0])); +}}this.this$0.hasFocus=false; +if (!e.isTemporary$()) { +this.this$0.setPopupVisible$javax_swing_JComboBox$Z.apply(this.this$0, [this.this$0.comboBox, false]); +}this.this$0.repaint$.apply(this.this$0, []); +}); + +Clazz_newMeth(C$, 'contentsChanged$javax_swing_event_ListDataEvent', function (e) { +if (!(e.getIndex0$() == -1 && e.getIndex1$() == -1 )) { +this.this$0.isMinimumSizeDirty=true; +this.this$0.comboBox.revalidate$(); +}if (this.this$0.comboBox.isEditable$() && this.this$0.editor != null ) { +this.this$0.comboBox.configureEditor$javax_swing_ComboBoxEditor$O(this.this$0.comboBox.getEditor$(), this.this$0.comboBox.getSelectedItem$()); +}this.this$0.isDisplaySizeDirty=true; +this.this$0.repaint$.apply(this.this$0, []); +}); + +Clazz_newMeth(C$, 'intervalAdded$javax_swing_event_ListDataEvent', function (e) { +this.contentsChanged$javax_swing_event_ListDataEvent(e); +}); + +Clazz_newMeth(C$, 'intervalRemoved$javax_swing_event_ListDataEvent', function (e) { +this.contentsChanged$javax_swing_event_ListDataEvent(e); +}); + +Clazz_newMeth(C$, 'addLayoutComponent$S$java_awt_Component', function (name, comp) { +}); + +Clazz_newMeth(C$, 'removeLayoutComponent$java_awt_Component', function (comp) { +}); + +Clazz_newMeth(C$, 'preferredLayoutSize$java_awt_Container', function (parent) { +return parent.getPreferredSize$(); +}); + +Clazz_newMeth(C$, 'minimumLayoutSize$java_awt_Container', function (parent) { +return parent.getMinimumSize$(); +}); + +Clazz_newMeth(C$, 'layoutContainer$java_awt_Container', function (parent) { +if (this.this$0.editor != null ) { +this.this$0.editor.setBounds$java_awt_Rectangle(this.this$0.rectangleForCurrentValue$.apply(this.this$0, [])); +}}); + +Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (evt) { +var item=this.this$0.comboBox.getEditor$().getItem$(); +if (item != null ) { +if (!this.this$0.comboBox.isPopupVisible$() && !item.equals$O(this.this$0.comboBox.getSelectedItem$()) ) { +this.this$0.comboBox.setSelectedItem$O(this.this$0.comboBox.getEditor$().getItem$()); +}var am=this.this$0.comboBox.getActionMap$(); +if (am != null ) { +var action=am.get$O("enterPressed"); +if (action != null ) { +action.actionPerformed$(Clazz_new_($I$(5).c$$O$I$S$I,[this.this$0.comboBox, evt.getID$(), evt.getActionCommand$(), evt.getModifiers$()])); +}}}}); + +Clazz_newMeth(C$, ['valueChanged$javax_swing_event_ListSelectionEvent','valueChanged$'], function (e) { +this.this$0.popup.updateHoverIndex$(); +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.JSComboBoxUI, "DefaultKeySelectionManager", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, null, [['javax.swing.JComboBox','javax.swing.JComboBox.KeySelectionManager'], 'javax.swing.plaf.UIResource']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.prefix=null; +this.typedString=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.prefix=""; +this.typedString=""; +}, 1); + +Clazz_newMeth(C$, ['selectionForKey$C$javax_swing_ComboBoxModel','selectionForKey$'], function (aKey, aModel) { +if (this.this$0.lastTime == 0) { +this.prefix=""; +this.typedString=""; +}var startingFromSelection=true; +var startIndex=this.this$0.comboBox.getSelectedIndex$(); +if (this.this$0.time - this.this$0.lastTime < this.this$0.timeFactor) { +this.typedString += aKey; +if ((this.prefix.length$() == 1) && (aKey == this.prefix.charAt$I(0)) ) { +startIndex++; +} else { +this.prefix=this.typedString; +}} else { +startIndex++; +this.typedString="" + aKey; +this.prefix=this.typedString; +}this.this$0.lastTime=this.this$0.time; +if (startIndex < 0 || startIndex >= aModel.getSize$() ) { +startingFromSelection=false; +startIndex=0; +}var index=this.this$0.listBox.getNextMatch$S$I$javax_swing_text_Position_Bias(this.prefix, startIndex, $I$(9).Forward); +if (index < 0 && startingFromSelection ) { +index=this.this$0.listBox.getNextMatch$S$I$javax_swing_text_Position_Bias(this.prefix, 0, $I$(9).Forward); +}return index; +}); + +Clazz_newMeth(C$); +})() +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 13:00:39 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("swingjs.plaf"),p$1={},I$=[[0,'swingjs.JSUtil','java.awt.Insets','java.awt.Color','swingjs.api.js.DOMNode','swingjs.JSToolkit','swingjs.plaf.JSPopupMenuUI','javax.swing.ToolTipManager','swingjs.JSFocusPeer','java.awt.JSComponent','java.awt.Cursor','java.awt.Dimension',['java.awt.Component','.BaselineResizeBehavior'],'javax.swing.UIManager','javajs.util.PT','java.awt.Rectangle','swingjs.plaf.HTML5LookAndFeel','java.awt.event.KeyEvent','java.awt.Point','java.awt.Toolkit']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "JSComponentUI", null, 'javax.swing.plaf.ComponentUI', ['swingjs.plaf.JSEventHandler', 'java.beans.PropertyChangeListener', 'javax.swing.event.ChangeListener', 'java.awt.dnd.peer.DropTargetPeer']); +C$.incr=0; +C$.debugging=false; +C$.frameZ=0; +C$.jquery=null; +C$.isMenuOpen=false; +C$.tempDiv=null; +C$.zeroInsets=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.frameZ=19000; +C$.jquery=$I$(1).getJQuery$(); +C$.zeroInsets=Clazz_new_($I$(2).c$$I$I$I$I,[0, 0, 0, 0]); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.J2S=null; +this.isNull=false; +this.id=null; +this.c=null; +this.jc=null; +this.label=null; +this.targetParent=null; +this.menu=null; +this.outerNode=null; +this.innerNode=null; +this.domNode=null; +this.centeringNode=null; +this.imageNode=null; +this.actionNode=null; +this.buttonNode=null; +this.enableNode=null; +this.enableNodes=null; +this.iconNode=null; +this.textNode=null; +this.accelNode=null; +this.valueNode=null; +this.focusNode=null; +this.itemNode=null; +this.containerNode=null; +this.textAlign=null; +this.iconHeight=0; +this.buttonListener=null; +this.menuAnchorNode=null; +this.draggable=false; +this.num=0; +this.isAWT=false; +this.isDummyFrame=false; +this.isTainted=false; +this.isPaintedOnly=false; +this.boundsSet=false; +this.isMenuItem=false; +this.isMenuSep=false; +this.isMenu=false; +this.isSimpleButton=false; +this.isLabel=false; +this.x=0; +this.y=0; +this.preferredSize=null; +this.jsActualWidth=0; +this.jsActualHeight=0; +this.dropTarget=null; +this.actionItemOffset=0; +this.mnemonicIndex=0; +this.isContainer=false; +this.isWindow=false; +this.isRootPane=false; +this.isPopupMenu=false; +this.isContentPane=false; +this.isLayeredPane=false; +this.isPanel=false; +this.isDesktop=false; +this.isTable=false; +this.parent=null; +this.currentText=null; +this.currentIcon=null; +this.currentGap=0; +this.scrollPaneUI=null; +this.classID=null; +this.body=null; +this.applet=null; +this.needPreferred=false; +this.width=0; +this.height=0; +this.waitImage=null; +this.colorUNKNOWN=null; +this.inactiveForeground=null; +this.inactiveBackground=null; +this.enabled=false; +this.isHTML=false; +this.allowTextAlignment=false; +this.menuTimer=0; +this.j2sDoPropagate=false; +this.notImplemented=false; +this.keysEnabled=false; +this.mnemonic=0; +this.awttop=null; +this.awtPeerBG=null; +this.awtPeerFG=null; +this.layingOut=false; +this.isDisposed=false; +this.cellComponent=null; +this.cellWidth=0; +this.cellHeight=0; +this.isUIDisabled=false; +this.actualHeight=0; +this.actualWidth=0; +this.allowPaintedBackground=false; +this.imagePersists=false; +this.allowDivOverflow=false; +this.ignoreFocus=false; +this.embeddingNode=null; +this.insets=null; +this.icon=null; +this.viewR=null; +this.iconR=null; +this.textR=null; +this.preferredDim=null; +this.isFullyCentered=false; +this.myCursor=null; +this.alignmentDisabled=false; +this.isLaidOut=false; +this.backgroundColor=null; +this.modalBlocked=false; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.J2S=$I$(1).J2S; +this.isTainted=true; +this.dropTarget=this; +this.mnemonicIndex=-1; +this.currentGap=2147483647; +this.colorUNKNOWN=Clazz_new_($I$(3)); +this.inactiveForeground=this.colorUNKNOWN; +this.inactiveBackground=this.colorUNKNOWN; +this.enabled=true; +this.allowTextAlignment=true; +this.allowPaintedBackground=true; +}, 1); + +Clazz_newMeth(C$, 'setTargetParent$javax_swing_JComponent', function (table) { +this.targetParent=table; +}); + +Clazz_newMeth(C$, 'getTargetParent$', function () { +return this.targetParent; +}); + +Clazz_newMeth(C$, 'saveCellNodes$swingjs_api_js_DOMNode$Z', function (td, isHeader) { +this.outerNode=null; +this.reInit$Z(true); +var nodes=Clazz_array($I$(4), -1, [this.domNode, this.innerNode, this.centeringNode, this.iconNode, this.textNode, this.accelNode, this.buttonNode, this.enableNode, (this.enableNodes == null ? null : this.enableNodes[0]), (this.enableNodes == null ? null : this.enableNodes[1]), (this.enableNodes == null ? null : this.enableNodes[2]), this.focusNode, this.actionNode, this.valueNode]); +$I$(4).setAttr(td, "data-nodes", nodes); +p$1.updateTableCell$swingjs_api_js_DOMNode$Z.apply(this, [td, isHeader]); +}); + +Clazz_newMeth(C$, 'updateTableCell$swingjs_api_js_DOMNode$Z', function (td, andAdd) { +var node=$I$(4).firstChild(td); +if (node !== this.domNode ) { +this.$$O(td).empty(); +node=null; +td.appendChild(this.domNode); +node=this.domNode; +$I$(4).setAttr(td, "domNode", node); +}this.domNode=this.outerNode=null; +}, p$1); + +Clazz_newMeth(C$, 'restoreCellNodes$swingjs_api_js_DOMNode', function (td) { +var nodes=$I$(4).getAttr(td, "data-nodes"); +if (nodes == null ) return; +this.domNode=nodes[0]; +this.innerNode=nodes[1]; +this.centeringNode=nodes[2]; +this.iconNode=nodes[3]; +this.textNode=nodes[4]; +this.accelNode=nodes[5]; +this.buttonNode=nodes[6]; +this.enableNode=nodes[7]; +if (nodes[8] != null ) { +this.enableNodes[0]=nodes[8]; +this.enableNodes[1]=nodes[9]; +this.enableNodes[2]=nodes[10]; +}this.focusNode=nodes[11]; +this.actionNode=nodes[12]; +this.valueNode=nodes[13]; +}); + +Clazz_newMeth(C$, 'setDraggable$javajs_api_JSFunction', function (f) { +this.draggable=true; +this.J2S.setDraggable(this.getDOMNode$(), f); +}); + +Clazz_newMeth(C$, 'setDoPropagate$', function () { +this.j2sDoPropagate=true; +}); + +Clazz_newMeth(C$, 'c$', function () { +Clazz_super_(C$, this,1); +this.setDoc$(); +}, 1); + +Clazz_newMeth(C$, 'setDoc$', function () { +this.body=document.body ||null; +C$.debugging=$I$(1).debugging; +}); + +Clazz_newMeth(C$, 'installJS$', function () { +{ +this.c.addChangeListener$javax_swing_event_ChangeListener && this.c.addChangeListener$javax_swing_event_ChangeListener(this); +} +if (this.buttonListener == null ) this.c.addPropertyChangeListener$java_beans_PropertyChangeListener(this); +}); + +Clazz_newMeth(C$, 'uninstallJS', function () { + +this.c && this.c.removeChangeListener$javax_swing_event_ChangeListener && this.c.removeChangeListener$javax_swing_event_ChangeListener(this); +if (this.c != null ) this.c.removePropertyChangeListener$java_beans_PropertyChangeListener(this); +if (this.outerNode != null ) { +$I$(4).dispose(this.outerNode); +this.outerNode=null; +}}, p$1); + +Clazz_newMeth(C$, '$$O', function (node) { +return C$.jquery.$(node); +}); + +Clazz_newMeth(C$, 'setComponent$javax_swing_JComponent', function (comp) { +this.c=this.jc=comp; +this.setUIDisabled$Z(comp == null ); +}, p$1); + +Clazz_newMeth(C$, 'set$javax_swing_JComponent', function (target) { +p$1.setComponent$javax_swing_JComponent.apply(this, [target]); +this.isAWT=this.jc.秘isAWT$(); +this.applet=$I$(5).getHTML5Applet$java_awt_Component(this.c); +this.newID$Z(false); +this.installUI$javax_swing_JComponent(target); +this.installJS$(); +if (this.needPreferred) this.getHTMLSizePreferred$swingjs_api_js_DOMNode$Z(this.updateDOMNode$(), false); +return this; +}); + +Clazz_newMeth(C$, 'newID$Z', function (forceNew) { +this.classID=this.c.getUIClassID$(); +this.notImplemented=(this.classID == "ComponentUI"); +if (this.id == null || forceNew ) { +this.num=++C$.incr; +this.id=this.c.getHTMLName$S(this.classID) + "_" + this.num ; +}}); + +Clazz_newMeth(C$, 'reInit$Z', function (getNew) { +this.setTainted$(); +if (this.domNode != null ) $I$(4).dispose(this.domNode); +this.domNode=null; +this.keysEnabled=false; +this.newID$Z(true); +return (getNew ? this.getDOMNode$() : null); +}); + +Clazz_newMeth(C$, 'setDataComponent$swingjs_api_js_DOMNode', function (button) { +$I$(4).setAttr(button, "data-component", this.c); +}); + +Clazz_newMeth(C$, 'setDataKeyComponent$swingjs_api_js_DOMNode', function (node) { +$I$(4).setAttr(node, "data-keycomponent", this.c); +}); + +Clazz_newMeth(C$, 'setDataShadowKeyComponent$swingjs_api_js_DOMNode$java_awt_Component', function (node, c) { +$I$(4).setAttr(node, "data-shadowkeycomponent", c); +}); + +Clazz_newMeth(C$, 'setDataFocusComponent$swingjs_api_js_DOMNode', function (node) { +$I$(4).setAttr(node, "data-focuscomponent", this.c); +}); + +Clazz_newMeth(C$, 'ignoreAllMouseEvents$swingjs_api_js_DOMNode', function (node) { +this.addClass$swingjs_api_js_DOMNode$S(node, "swingjs-ui"); +}); + +Clazz_newMeth(C$, 'hideMenusAndToolTip$', function () { +if (C$.isMenuOpen) $I$(6).closeAllMenus$(); +if (javax.swing.ToolTipManager ||false) $I$(7).j2sHideToolTip$(); +}, 1); + +Clazz_newMeth(C$, 'addClass$swingjs_api_js_DOMNode$S', function (node, cl) { +this.$$O(node).addClass(cl); +}); + +Clazz_newMeth(C$, 'removeClass$swingjs_api_js_DOMNode$S', function (node, cl) { +this.$$O(node).removeClass(cl); +}); + +Clazz_newMeth(C$, 'setDataUI$swingjs_api_js_DOMNode', function (node) { +$I$(4).setAttr(node, "data-ui", this); +this.addClass$swingjs_api_js_DOMNode$S(node, "data-ui"); +}); + +Clazz_newMeth(C$, 'setMenuItem$swingjs_api_js_DOMNode', function (node) { +if (node == null ) return; +this.addClass$swingjs_api_js_DOMNode$S(node, "ui-j2smenu-node"); +this.setDataComponent$swingjs_api_js_DOMNode(node); +}); + +Clazz_newMeth(C$, 'setJ2sMouseHandler$', function () { +this.J2S.unsetMouse(this.domNode); +if (this.domNode == null ) ;this.updateDOMNode$(); +$I$(4).setAttrs(this.domNode, ["applet", this.applet, "_frameViewer", this.jc.getFrameViewer$()]); +this.J2S.setMouse(this.domNode, true); +}); + +Clazz_newMeth(C$, 'enableJSKeys$Z', function (on) { +if (this.isUIDisabled) return; +if (!on) { +p$1.setTabIndex$I.apply(this, [-2147483648]); +} else if (this.keysEnabled) { +p$1.setTabIndex$I.apply(this, [-1]); +} else { +this.addFocusHandler$(); +}}); + +Clazz_newMeth(C$, 'addFocusHandler$', function () { +if (this.focusNode == null && (this.focusNode=this.domNode) == null ) return; +this.keysEnabled=true; +$I$(4).setAttrs(this.focusNode, ["applet", this.applet, "_frameViewer", this.jc.getFrameViewer$()]); +this.setDataKeyComponent$swingjs_api_js_DOMNode(this.focusNode); +this.J2S.setKeyListener(this.focusNode); +p$1.setTabIndex$I.apply(this, [-1]); +}); + +Clazz_newMeth(C$, 'setTabIndex$I', function (i) { +if (this.focusNode == null ) return; +if (i == -2147483648) { +this.focusNode.removeAttribute("tabindex"); +$I$(4).setAttr(this.focusNode, "ui", null); +} else { +this.focusNode.setAttribute("tabindex", "" + i); +$I$(4).setAttr(this.focusNode, "ui", this); +}}, p$1); + +Clazz_newMeth(C$, 'isFocusable$', function () { +return false; +}); + +Clazz_newMeth(C$, 'setFocusable$', function () { +if (this.focusNode == null ) this.addFocusHandler$(); +if (this.focusNode != null ) this.addJQueryFocusCallbacks$(); +return (this.focusNode != null ); +}); + +Clazz_newMeth(C$, 'hasFocus$', function () { +return document.activeElement == this.focusNode||false; +}); + +Clazz_newMeth(C$, 'requestFocus$java_awt_Component$Z$Z$J$sun_awt_CausedFocusEvent_Cause', function (lightweightChild, temporary, focusedWindowChangeAllowed, time, cause) { +if (lightweightChild == null ) return this.focus$(); +if (!this.jc.isFocusable$()) return false; +this.setFocusable$(); +return $I$(5).requestFocus$java_awt_Component(lightweightChild); +}); + +Clazz_newMeth(C$, 'focus$', function () { +if (this.focusNode == null || this.isUIDisabled ) return false; +$I$(8).focus$swingjs_api_js_DOMNode(this.focusNode); +return true; +}); + +Clazz_newMeth(C$, 'setComponentFocus$', function () { +this.jc.requestFocus$(); +var c=this.jc.getFocusTraversalPolicy$().getDefaultComponent$java_awt_Container(this.jc); +if (c != null ) c.requestFocus$(); +}); + +Clazz_newMeth(C$, 'addJQueryFocusCallbacks$', function () { +if (this.focusNode == null ) this.focusNode=this.domNode; +p$1.setTabIndex$I.apply(this, [-1]); +var node=this.$$O(this.focusNode); +node.unbind("focus blur"); +var me=this; +{ +node.focus(function(e) { //System.out.println("JSSCUI node.focus() callback " + me.id + " " + document.activeElement.id); +if (!me.ignoreFocus) me.handleJSFocus$O$O$Z(me.jc, e.relatedTarget, true); +me.ignoreFocus = false; +//System.out.println("JSSCUI focus " + me.id); +}); +node.blur(function(e) { try{ //System.out.println("JSSCUI node.blur() callback " + me.id + " " + document.activeElement.id); +me.handleJSFocus$O$O$Z(me.jc, e.relatedTarget, false); +//System.out.println("JSSCUI focus blur " + me.id + " " + document.activeElement.id); +}catch(e){ //System.out.println("JSSCUI focus error blur " + me.id); +} }); +} +}); + +Clazz_newMeth(C$, 'handleJSFocus$O$O$Z', function (jco, related, focusGained) { +$I$(8).handleJSFocus$O$O$Z(jco, related, focusGained); +}); + +Clazz_newMeth(C$, 'abstractButtonFocusHack$', function () { +var focused=$I$(5).getCurrentFocusOwner$O(null); +var focusedUI=focused && focused.ui ||null; +if (focusedUI != null && focusedUI !== this ) { +focusedUI.handleJSFocus$O$O$Z(this.jc, null, false); +this.handleJSFocus$O$O$Z(this.jc, null, true); +}}); + +Clazz_newMeth(C$, 'bindJSKeyEvents$swingjs_api_js_DOMNode$Z', function (node, addFocus) { +this.setDataUI$swingjs_api_js_DOMNode(node); +this.keysEnabled=true; +this.bindJQueryEvents$swingjs_api_js_DOMNode$S$I(node, "keydown keypress keyup" + (addFocus ? " focusout" : ""), -2); +if (addFocus) { +this.addJQueryFocusCallbacks$(); +}}); + +Clazz_newMeth(C$, 'bindJQueryEvents$swingjs_api_js_DOMNode$S$I', function (node, eventList, eventID) { +var me=this; +var f=null; +this.setDataUI$swingjs_api_js_DOMNode(node); +this.addClass$swingjs_api_js_DOMNode$S(node, "ui-events"); +{ +f = function(jqevent) { return me.handleJSEvent$O$I$O(node, eventID, jqevent) } +} +this.$$O(node).bind(eventList, f); +}); + +Clazz_newMeth(C$, ['handleJSEvent$O$I$O','handleJSEvent$'], function (target, eventType, jQueryEvent) { +return true; +}); + +Clazz_newMeth(C$, 'revalidate$', function () { +this.jc.revalidate$(); +}); + +Clazz_newMeth(C$, 'setTainted$', function () { +this.setTainted$Z(true); +}); + +Clazz_newMeth(C$, 'setTainted$Z', function (tf) { +this.isTainted=tf; +}); + +Clazz_newMeth(C$, ['stateChanged$javax_swing_event_ChangeEvent','stateChanged$'], function (e) { +}); + +Clazz_newMeth(C$, 'updatePropertyAncestor$Z', function (fromButtonListener) { +if (fromButtonListener) { +this.setTainted$(); +this.setHTMLElement$(); +}var p=this.jc.getParent$(); +while (p != null ){ +var parentui=(p == null ? null : p.秘getUI$()); +if (parentui != null ) { +parentui.setTainted$(); +if (fromButtonListener) { +parentui.setHTMLElement$(); +if (parentui.menu != null ) { +(parentui).updateMenu$Z(false); +} else if (parentui.isPopupMenu && p.getParent$() == null ) { +p=(p).getInvoker$(); +continue; +}}}p=p.getParent$(); +} +}, p$1); + +Clazz_newMeth(C$, ['propertyChange$java_beans_PropertyChangeEvent','propertyChange$'], function (e) { +if (this.isUIDisabled || this.domNode == null ) return; +var prop=e.getPropertyName$(); +var value=e.getNewValue$(); +if (prop == "ancestor") { +if (this.isAWT) p$1.setAWTFontAndColor$java_awt_Container.apply(this, [value]); +if (this.cellComponent != null ) return; +p$1.updatePropertyAncestor$Z.apply(this, [false]); +if (value == null ) return; +if (this.isDisposed && this.c.visible && e.getNewValue$() != null ) this.setVisible$Z(true); +}this.propertyChangedCUI$java_beans_PropertyChangeEvent$S(e, prop); +}); + +Clazz_newMeth(C$, 'setAWTFontAndColor$java_awt_Container', function (value) { +var top=$I$(9).秘getTopInvokableAncestor$java_awt_Component$Z(value, false); +if (top === this.awttop || (this.awttop=top) == null ) { +if (top == null ) { +this.awtPeerBG=this.awtPeerFG=null; +}return; +}this.setBackgroundImpl$java_awt_Color(this.awtPeerBG=this.getBackground$()); +this.setForegroundFor$swingjs_api_js_DOMNode$java_awt_Color(this.domNode, this.awtPeerFG=this.getForeground$()); +this.setFont$java_awt_Font(this.c.getFont$()); +}, p$1); + +Clazz_newMeth(C$, 'propertyChangedFromListener$java_beans_PropertyChangeEvent$S', function (e, prop) { +if (this.isUIDisabled) return; +switch (prop) { +case "ancestor": +if (this.cellComponent != null ) return; +p$1.updatePropertyAncestor$Z.apply(this, [true]); +break; +} +this.propertyChangedCUI$java_beans_PropertyChangeEvent$S(e, prop); +}); + +Clazz_newMeth(C$, 'propertyChangedCUI$java_beans_PropertyChangeEvent$S', function (e, prop) { +if (!this.isMenu && this.cellComponent == null ) this.getDOMNode$(); +switch (prop) { +case "preferredSize": +this.preferredSize=e.getNewValue$(); +return; +case "background": +this.setBackground$java_awt_Color(this.c.getBackground$()); +return; +case "foreground": +this.setForeground$java_awt_Color(this.c.getForeground$()); +return; +case "focusable": +this.setFocusable$(); +return; +case "opaque": +this.setBackground$java_awt_Color(this.c.getBackground$()); +return; +case "inverted": +this.updateDOMNode$(); +return; +case "text": +var val=(this.c).getText$(); +if (val == null ? this.currentText != null : !val.equals$O(this.currentText)) this.setIconAndText$S$javax_swing_Icon$I$S(prop, this.currentIcon, this.currentGap, val); +return; +case "iconTextGap": +if (this.iconNode != null ) { +var gap=(this.c).getIconTextGap$(); +if (this.currentGap != gap) this.setIconAndText$S$javax_swing_Icon$I$S(prop, this.currentIcon, gap, this.currentText); +}return; +case "icon": +if (this.centeringNode != null ) { +var icon=p$1.getIcon$java_awt_JSComponent$javax_swing_Icon.apply(this, [this.c, null]); +if (icon == null ? this.currentIcon != null : !icon.equals$O(this.currentIcon)) this.setIconAndText$S$javax_swing_Icon$I$S(prop, icon, this.currentGap, this.currentText); +}return; +case "mnemonic": +var newValue=(e.getNewValue$()).intValue$(); +this.setMnemonic$I(newValue); +this.setIconAndText$S$javax_swing_Icon$I$S(prop, this.currentIcon, this.currentGap, this.currentText); +return; +case "displayedMnemonicIndex": +this.mnemonicIndex=(e.getNewValue$()).intValue$(); +this.setIconAndText$S$javax_swing_Icon$I$S(prop, this.currentIcon, this.currentGap, this.currentText); +return; +default: +if (C$.debugging) System.out.println$S("JSComponentUI: unrecognized prop: " + this.id + " " + prop ); +} +}); + +Clazz_newMeth(C$, 'setMnemonic$I', function (newValue) { +if (newValue == this.mnemonic || this.domNode == null ) return; +if (newValue < 0) { +newValue=(this.isLabel ? (this.label == null ? -1 : this.label.getDisplayedMnemonic$()) : this.jc.getMnemonic$ && this.jc.getMnemonic$() ||-1); +}var node=(this.menuAnchorNode == null ? this.domNode : this.menuAnchorNode); +if (this.mnemonic > 0 && newValue != this.mnemonic ) this.removeClass$swingjs_api_js_DOMNode$S(node, "ui-mnem-" + Character.toLowerCase$I(this.mnemonic)); +if (newValue > 0) this.addClass$swingjs_api_js_DOMNode$S(node, "ui-mnem-" + Character.toLowerCase$I(newValue)); +this.mnemonic=newValue; +}); + +Clazz_newMeth(C$, 'setUIDisabled$Z', function (b) { +return this.isUIDisabled=b; +}); + +Clazz_newMeth(C$, 'checkAllowDivOverflow$', function () { +var root=this.jc.getRootPane$(); +this.allowDivOverflow=(root != null && "false".equals$O(root.getClientProperty$O("swingjs.overflow.hidden")) ); +}); + +Clazz_newMeth(C$, 'setAllowPaintedBackground$Z', function (TF) { +this.allowPaintedBackground=TF; +}); + +Clazz_newMeth(C$, 'getDOMNode$', function () { +return (this.isUIDisabled ? null : this.updateDOMNode$()); +}); + +Clazz_newMeth(C$, 'updateDOMNode$', function () { +if (this.domNode == null ) { +if (this.notImplemented) { +this.notImplemented=false; +var s=this.jc.getClass$().getName$(); +if (!s.equals$O("javax.swing.Box$Filler")) System.out.println$S("Swingjs WARNING: default JSComponentUI.updateDOMNode() is being used for " + s); +}this.domNode=$I$(4).createElement("div", this.id); +}return this.domNode; +}); + +Clazz_newMeth(C$, 'updateDOMNodeCUI$', function () { +if (this.myCursor !== p$1.getCursor.apply(this, []) ) this.setCursor$(); +return this.domNode; +}); + +Clazz_newMeth(C$, 'updateCursorImmediately$', function () { +if (this.isUIDisabled) return; +this.setHTMLElement$(); +this.setCursor$(); +}); + +Clazz_newMeth(C$, 'setCursor$', function () { +this.myCursor=p$1.getCursor.apply(this, []); +var curs=$I$(5).getCursorName$java_awt_Cursor(this.myCursor); +$I$(4).setStyles(this.outerNode, ["cursor", curs]); +$I$(4).setStyles(this.domNode, ["cursor", curs]); +this.setWaitImage$Z(curs == "wait"); +}); + +Clazz_newMeth(C$, 'getCursor', function () { +var cur=this.c.getCursor$(); +return (cur === $I$(10).getDefaultCursor$() ? null : cur); +}, p$1); + +Clazz_newMeth(C$, 'setWaitImage$Z', function (doShow) { +if (this.waitImage == null ) { +if (!doShow) return; +var path=(this.applet._j2sPath ||null) + "/img/cursor_wait.gif"; +this.waitImage=C$.newDOMObject$S$S$SA("image", this.id + "_waitImage", ["src", path]); +}if (doShow) this.$$O(this.waitImage).show(); + else this.$$O(this.waitImage).hide(); +}); + +Clazz_newMeth(C$, 'setCssFont$swingjs_api_js_DOMNode$java_awt_Font', function (obj, font) { +if (font != null ) { +var istyle=font.getStyle$(); +$I$(4).setStyles(obj, ["font-family", $I$(5).getCSSFontFamilyName$S(font.getFamily$()), "font-size", font.getSize$() + "px", "font-style", ((istyle & 2) == 0 ? "normal" : "italic"), "font-weight", ((istyle & 1) == 0 ? "normal" : "bold")]); +}this.enabled=!this.c.isEnabled$(); +this.setEnabled$Z(this.c.isEnabled$()); +return obj; +}); + +Clazz_newMeth(C$, 'newDOMObject$S$S$SA', function (key, id, attr) { +var obj=$I$(4).createElement(key, id); +for (var i=0; i < attr.length; ) $I$(4).setAttr(obj, attr[i++], attr[i++]); + +return obj; +}, 1); + +Clazz_newMeth(C$, 'wrap$S$S$swingjs_api_js_DOMNodeA', function (type, id, elements) { +var obj=C$.newDOMObject$S$S$SA(type, id + type, []); +for (var i=0; i < elements.length; i++) { +obj.appendChild(elements[i]); +} +return obj; +}, 1); + +Clazz_newMeth(C$, 'debugDump$swingjs_api_js_DOMNode', function (d) { +System.out.println$O($I$(4).getAttr(d, "outerHTML")); +}); + +Clazz_newMeth(C$, 'getHTMLSizePreferred$swingjs_api_js_DOMNode$Z', function (obj, addCSS) { +return this.setHTMLSize1$swingjs_api_js_DOMNode$Z$Z(this.centeringNode == null || obj !== this.domNode ? obj : this.centeringNode, addCSS, true); +}); + +Clazz_newMeth(C$, 'getHTMLSize$swingjs_api_js_DOMNode', function (obj) { +return this.setHTMLSize1$swingjs_api_js_DOMNode$Z$Z(obj, false, false); +}); + +Clazz_newMeth(C$, 'getIconSize$javax_swing_AbstractButton', function (b) { +return (this.iconNode == null || this.imageNode == null || b.getIcon$() == null ? null : this.getHTMLSize$swingjs_api_js_DOMNode(this.iconNode)); +}, p$1); + +Clazz_newMeth(C$, 'getTextSize$javax_swing_AbstractButton', function (b) { +if (this.textNode == null ) return null; +$I$(4).setStyles(this.textNode, ["padding", "0"]); +var t=b.getText$(); +if (this.isAWT && t == "" ) t="\u00a0"; +return (t == null || t == "" ? null : this.getHTMLSize$swingjs_api_js_DOMNode(this.textNode)); +}, p$1); + +Clazz_newMeth(C$, 'setHTMLSize1$swingjs_api_js_DOMNode$Z$Z', function (node, addCSS, usePreferred) { +if (node == null ) return null; +addCSS&=!this.isMenuItem; +var h; +var w; +var w0=null; +var h0=null; +var w0i=null; +var h0i=null; +var position=null; +var parentNode=null; +var hasFocus=false; +if (this.scrollPaneUI != null ) { +w=this.scrollPaneUI.c.getWidth$(); +h=this.scrollPaneUI.c.getHeight$(); +} else if (usePreferred && this.preferredSize != null ) { +w=this.preferredSize.width; +h=this.preferredSize.height; +position=node.style.position ||null; +} else if (usePreferred && this.preferredDim != null ) { +w=this.preferredDim.width; +h=this.preferredDim.height; +position=node.style.position ||null; +} else { +hasFocus=this.hasFocus$(); +if (!this.isMenuItem) { +var simpleButton=this.isSimpleButton; +var centerNode=this.centeringNode; +var dnode=this.domNode; +{ +w0 = node.style.width; h0 = node.style.height; position = node.style.position; +if (node == centerNode && simpleButton) { w0i = dNode.style.width; +h0i = dNode.style.height; } +} +}$I$(4).setStyles(node, ["position", null, "width", null, "height", null]); +if (this.innerNode != null ) $I$(4).setStyles(this.innerNode, ["width", null, "height", null]); +if (node === this.centeringNode ) { +if (!this.isHTML) { +$I$(4).setStyles(node, ["position", null]); +$I$(4).setStyles(this.textNode, ["position", null]); +$I$(4).setStyles(this.iconNode, ["position", null]); +}}if (C$.tempDiv == null ) { +C$.tempDiv=$I$(4).createElement("div", "_temp"); +$I$(4).setTopLeftAbsolute(C$.tempDiv, 0, -100000); +this.$$O(this.body).after(C$.tempDiv); +}parentNode=$I$(4).transferTo(node, null); +C$.tempDiv.appendChild(node); +var r=C$.tempDiv.getBoundingClientRect(); +C$.tempDiv.removeChild(node); +w=(Math.max(0, Math.ceil(r.width))|0); +h=(Math.max(0, Math.ceil(r.height))|0); +if (!usePreferred) { +this.actualWidth=w; +this.actualHeight=h; +}}var dim=this.getCSSAdjustment$Z(addCSS); +dim.width+=w; +dim.height+=h; +$I$(4).setStyles(node, ["position", null]); +if (w0 != null ) { +$I$(4).setStyles(node, ["width", w0, "height", h0]); +}if (position != null ) { +$I$(4).setStyles(node, ["position", position]); +}if (w0i != null ) { +$I$(4).setStyles(this.domNode, ["width", w0i, "height", h0i]); +}if (parentNode != null ) { +parentNode.appendChild(node); +if (hasFocus) { +this.ignoreFocus=true; +node.focus(); +}}return dim; +}); + +Clazz_newMeth(C$, 'getCSSAdjustment$Z', function (addingCSS) { +return Clazz_new_($I$(11).c$$I$I,[0, 0]); +}); + +Clazz_newMeth(C$, 'setHTMLElement$', function () { +return this.setHTMLElementCUI$(); +}); + +Clazz_newMeth(C$, 'setHTMLElementCUI$', function () { +if (this.isUIDisabled || !this.isTainted ) return this.outerNode; +if (this.isDummyFrame) { +this.isTainted=false; +return (this.outerNode=$I$(4).createElement("div", "dummyFrame")); +}this.updateDOMNode$(); +p$1.checkTransparent.apply(this, []); +var children=this.getChildren$(); +var n=this.getChildCount$(); +if (this.isMenuItem) { +this.outerNode=this.domNode; +if (n == 0) return this.outerNode; +}if (this.outerNode == null ) this.outerNode=C$.wrap$S$S$swingjs_api_js_DOMNodeA("div", this.id, [this.domNode]); +{ +this.outerNode.setAttribute("name", this.jc.__CLASS_NAME__); +} +p$1.setOuterLocationFromComponent.apply(this, []); +if (n > 0 && this.containerNode == null ) this.containerNode=this.outerNode; +if (this.isContainer || n > 0 ) { +if (this.isContainer && !this.isMenuItem && !this.isTable ) { +var w=this.getContainerWidth$(); +var h=this.getContainerHeight$(); +$I$(4).setSize(this.outerNode, w, h); +if (this.isPanel || this.isContentPane || this.isRootPane ) { +$I$(4).setStyles(this.outerNode, ["overflow", this.allowDivOverflow ? "visible" : "hidden"]); +if (this.isRootPane) { +if (this.jc.getFrameViewer$().isApplet) { +var cdiv=$I$(5).getHTML5Applet$java_awt_Component(this.jc)._getContentLayer(); +$I$(4).appendChildSafely(cdiv, this.outerNode); +}}}}if (n > 0) this.addChildrenToDOM$java_awt_ComponentA$I(children, n); +if (this.isWindow && this.jc.getWidth$() > 0 && this.isFrameIndependent$() ) { +$I$(4).transferTo(this.outerNode, this.body); +}} else { +$I$(4).setStyles(this.outerNode, ["overflow", "hidden"]); +}this.isTainted=false; +if (this.embeddingNode != null ) $I$(4).appendChildSafely(this.embeddingNode, this.outerNode); +return this.outerNode; +}); + +Clazz_newMeth(C$, 'isFrameIndependent$', function () { +return true; +}); + +Clazz_newMeth(C$, 'getChildren$', function () { +return $I$(9).秘getChildArray$java_awt_Container(this.jc); +}); + +Clazz_newMeth(C$, 'getChildCount$', function () { +return this.jc.getComponentCount$(); +}); + +Clazz_newMeth(C$, 'getContainerNode$I', function (i) { +return this.containerNode; +}); + +Clazz_newMeth(C$, 'addChildrenToDOM$java_awt_ComponentA$I', function (children, n) { +for (var i=0; i < n; i++) { +if (!this.isTable && children[i] == null ) break; +var ui=$I$(5).getUI$java_awt_Component$Z(children[i], false); +if (ui == null || ui.isNull || ui.isPaintedOnly ) { +continue; +}ui.parent=this; +if (ui.getOuterNode$() == null ) { +System.out.println$S("JSCUI addChildren no outer node for " + ui.id); +} else { +if (ui.domNode !== ui.outerNode && $I$(4).getParent(ui.domNode) == null ) ui.outerNode.appendChild(ui.domNode); +if (ui.embeddingNode == null && (!ui.isWindow || !ui.isFrameIndependent$() ) ) $I$(4).appendChildSafely(this.getContainerNode$I(i), ui.outerNode); +}} +}); + +Clazz_newMeth(C$, 'getContainerWidth$', function () { +return this.width=this.c.getWidth$(); +}); + +Clazz_newMeth(C$, 'getContainerHeight$', function () { +return this.height=this.c.getHeight$(); +}); + +Clazz_newMeth(C$, 'update$java_awt_Graphics$javax_swing_JComponent', function (g, c) { +if (this.isUIDisabled) return; +if (this.cellComponent == null ) { +this.setHTMLElement$(); +if (this.allowTextAlignment && this.centeringNode != null ) this.setAlignments$javax_swing_AbstractButton$Z(this.jc, false); +}this.paint$java_awt_Graphics$javax_swing_JComponent(g, c); +}); + +Clazz_newMeth(C$, 'paint$java_awt_Graphics', function (g) { +this.update$java_awt_Graphics$javax_swing_JComponent(g, this.jc); +}); + +Clazz_newMeth(C$, 'paint$java_awt_Graphics$javax_swing_JComponent', function (g, c) { +this.setOverflow$(); +if (this.imageNode != null && !this.imagePersists ) { +$I$(4).setStyles(this.imageNode, ["visibility", "hidden"]); +}}); + +Clazz_newMeth(C$, 'setOverflow$', function () { +if (this.textNode != null ) $I$(4).setStyles(this.textNode, ["overflow", "hidden"]); +}); + +Clazz_newMeth(C$, 'repaint$J$I$I$I$I', function (tm, x, y, width, height) { +}); + +Clazz_newMeth(C$, 'print$java_awt_Graphics', function (g) { +$I$(1).notImplemented$S(""); +}); + +Clazz_newMeth(C$, 'getMinimumSize$', function () { +return this.getMinimumSize$javax_swing_JComponent(this.jc); +}); + +Clazz_newMeth(C$, 'getPreferredSize$', function () { +return this.getPreferredSize$javax_swing_JComponent(this.jc); +}); + +Clazz_newMeth(C$, 'getPreferredSize$javax_swing_JComponent', function (jc) { +return this.getHTMLSizePreferred$swingjs_api_js_DOMNode$Z(this.updateDOMNode$(), false); +}); + +Clazz_newMeth(C$, 'contains$javax_swing_JComponent$I$I', function (c, x, y) { +return c.inside$I$I(x, y); +}); + +Clazz_newMeth(C$, 'createUI$javax_swing_JComponent', function (c) { +return null; +}, 1); + +Clazz_newMeth(C$, 'getBaseline$javax_swing_JComponent$I$I', function (c, width, height) { +if (c == null ) { +throw Clazz_new_(Clazz_load('NullPointerException').c$$S,["Component must be non-null"]); +}if (width < 0 || height < 0 ) { +throw Clazz_new_(Clazz_load('IllegalArgumentException').c$$S,["Width and height must be >= 0"]); +}return -1; +}); + +Clazz_newMeth(C$, 'getBaselineResizeBehavior$javax_swing_JComponent', function (c) { +if (c == null ) { +throw Clazz_new_(Clazz_load('NullPointerException').c$$S,["Component must be non-null"]); +}return $I$(12).OTHER; +}); + +Clazz_newMeth(C$, 'getJSTextValue$', function () { +return $I$(4).getAttr(this.domNode, this.valueNode == null ? "innerText" : "value"); +}); + +Clazz_newMeth(C$, 'getOuterNode$', function () { +return (this.outerNode == null && !this.isUIDisabled ? this.setHTMLElement$() : this.outerNode); +}); + +Clazz_newMeth(C$, 'setJSText$swingjs_api_js_DOMNode$S$S', function (obj, prop, val) { +return $I$(4).setAttr(obj, prop, val); +}); + +Clazz_newMeth(C$, 'isObscured$', function () { +$I$(1).notImplemented$S(""); +return false; +}); + +Clazz_newMeth(C$, 'canDetermineObscurity$', function () { +$I$(1).notImplemented$S(""); +return false; +}); + +Clazz_newMeth(C$, 'setVisible$Z', function (b) { +this.setVisible$swingjs_api_js_DOMNode$Z(this.getOuterNode$(), b); +}); + +Clazz_newMeth(C$, 'setVisible$swingjs_api_js_DOMNode$Z', function (node, b) { +if (this.isPaintedOnly) b=false; +if (!b && this.cellComponent != null ) return; +if (node == null ) node=this.domNode; +$I$(4).setVisible(node, b); +if (b) { +if (this.isDisposed) this.undisposeUI$swingjs_api_js_DOMNode(node); +}}); + +Clazz_newMeth(C$, 'setEnabled$Z', function (b) { +if (b == this.enabled ) return; +this.enabled=b; +if (this.enableNode != null ) this.enableNode$swingjs_api_js_DOMNode$Z(this.enableNode, b); + else if (this.enableNodes != null ) for (var i=0; i < this.enableNodes.length; i++) this.enableNode$swingjs_api_js_DOMNode$Z(this.enableNodes[i], b); + +}); + +Clazz_newMeth(C$, 'enableNode$swingjs_api_js_DOMNode$Z', function (node, b) { +if (node == null ) return; +$I$(4).setAttr(node, "disabled", (b ? "FALSE" : "TRUE")); +if (!b && this.inactiveForeground === this.colorUNKNOWN ) this.getDisabledColors$S(this.buttonNode == null ? this.getPropertyPrefix$() : "Button"); +if (this.jc.isOpaque$()) { +var bg=this.getBackground$(); +this.setBackgroundImpl$java_awt_Color(b || !(Clazz_instanceOf(bg, "javax.swing.plaf.UIResource")) || this.inactiveBackground == null ? bg : this.inactiveBackground); +}var fg=this.getForeground$(); +this.setForegroundFor$swingjs_api_js_DOMNode$java_awt_Color(this.domNode, b ? fg : this.getInactiveTextColor$java_awt_Color(fg)); +}); + +Clazz_newMeth(C$, 'getBackground$', function () { +return (this.awtPeerBG == null ? this.c.getBackground$() : this.awtPeerBG); +}); + +Clazz_newMeth(C$, 'getForeground$', function () { +return (this.awtPeerFG == null ? this.c.getForeground$() : this.awtPeerFG); +}); + +Clazz_newMeth(C$, 'getInactiveTextColor$java_awt_Color', function (fg) { +return (this.inactiveForeground == null ? fg : this.inactiveForeground); +}); + +Clazz_newMeth(C$, 'getDisabledColors$S', function (pp) { +this.inactiveBackground=$I$(13).getColor$O(pp + ".inactiveBackground"); +this.inactiveForeground=$I$(13).getColor$O(pp + ".inactiveForeground"); +}); + +Clazz_newMeth(C$, 'setBounds$I$I$I$I$I', function (x, y, width, height, op) { +if (this.isUIDisabled) return; +var isBounded=(width > 0 && height > 0 ); +if (isBounded && !this.boundsSet ) { +if (this.c.visible && this.cellComponent == null ) this.setVisible$Z(true); +this.boundsSet=true; +}switch (op) { +case 3: +case 1: +x=this.c.getX$(); +y=this.c.getY$(); +if (this.embeddingNode == null && (this.x != x || this.y != y ) ) { +this.x=x; +this.y=y; +}p$1.setOuterLocationFromComponent.apply(this, []); +if (op == 1) break; +case 4: +case 2: +if (this.scrollPaneUI != null ) { +width=Math.min(width, this.scrollPaneUI.c.getWidth$()); +height=Math.min(height, this.scrollPaneUI.c.getHeight$()); +}if (width > 0 && height > 0 ) p$1.setSizeFromComponent$I$I$I.apply(this, [width, height, op]); +break; +} +}); + +Clazz_newMeth(C$, 'setOuterLocationFromComponent', function () { +if (this.outerNode != null && !this.isMenuItem ) { +if (this.parent == null && this.jc.getParent$() != null && (this.parent=this.jc.getParent$().秘getUI$()) != null && this.parent.outerNode != null ) $I$(4).appendChildSafely(this.parent.outerNode, this.outerNode); +$I$(4).setPositionAbsolute(this.outerNode); +$I$(4).setStyles(this.outerNode, ["left", (this.x=this.c.getX$()) + "px", "top", (this.y=this.c.getY$()) + "px"]); +}}, p$1); + +Clazz_newMeth(C$, 'setSizeFromComponent$I$I$I', function (width, height, op) { +var size=this.getCSSAdjustment$Z(true); +this.width=width; +this.height=height; +if (this.domNode == null ) { +this.alignmentDisabled=true; +this.updateDOMNode$(); +this.alignmentDisabled=false; +}this.setJSDimensions$I$I(width + size.width, height + size.height); +this.setInnerComponentBounds$I$I(width, height); +}, p$1); + +Clazz_newMeth(C$, 'setJSDimensions$I$I', function (width, height) { +if (this.jsActualWidth > 0) width=this.jsActualWidth; +if (this.jsActualHeight > 0) height=this.jsActualHeight; +$I$(4).setSize(this.domNode, width, height); +if (this.outerNode != null ) { +$I$(4).setSize(this.outerNode, width, height); +}}); + +Clazz_newMeth(C$, 'setInnerComponentBounds$I$I', function (width, height) { +}); + +Clazz_newMeth(C$, 'getIcon$java_awt_JSComponent$javax_swing_Icon', function (c, icon) { +return (c == null || icon == null && (icon=(c).getIcon$()) == null ? null : icon.getIconWidth$() <= 0 || icon.getIconHeight$() <= 0 ? null : (Clazz_instanceOf(icon, "javax.swing.ImageIcon")) ? icon : $I$(5).createImageIcon$java_awt_Component$javax_swing_Icon$S(this.jc, icon, this.id + "tmpIcon")); +}, p$1); + +Clazz_newMeth(C$, 'fixText$S', function (t) { +if (t != null ) { +if (this.isHTML) { +} else if (this.valueNode == null ) { +t=(t.indexOf$S("\u0000") >= 0 ? $I$(14).rep$S$S$S(t, "\u0000", "") : t).replace$C$C(" ", "\u00a0"); +}}return t; +}); + +Clazz_newMeth(C$, 'setIconAndText$S$javax_swing_Icon$I$S', function (prop, icon, gap, text) { +if (this.iconNode == null && this.textNode == null ) return; +this.setMnemonic$I(-1); +this.actualWidth=this.actualHeight=0; +text=this.fixText$S(this.currentText=text); +this.currentGap=gap; +this.currentIcon=null; +this.imageNode=null; +if (this.iconNode != null ) { +icon=this.currentIcon=p$1.getIcon$java_awt_JSComponent$javax_swing_Icon.apply(this, [this.jc, icon]); +this.$$O(this.iconNode).empty(); +if (this.currentIcon != null ) { +this.imageNode=$I$(4).getImageNode(this.currentIcon.getImage$()); +this.iconNode.appendChild(this.imageNode); +this.iconHeight=icon.getIconHeight$(); +$I$(4).setStyles(this.imageNode, ["visibility", (this.isLabel ? "hidden" : null)]); +$I$(4).setStyles(this.iconNode, ["height", this.iconHeight + "px", "width", icon.getIconWidth$() + "px"]); +}}if (text == null ) { +text=""; +} else if (text == "") { +if (this.isAWT) text="\u00a0"; +}if (text != "") { +if (text == "\u0000") { +this.isPaintedOnly=true; +}$I$(4).setStyles(this.textNode, ["white-space", "nowrap"]); +if (icon == null ) { +if (this.iconNode != null && this.allowTextAlignment && this.isMenuItem && this.actionNode == null && text != null ) { +$I$(4).addHorizontalGap(this.iconNode, gap + 11); +}} else { +if (gap == 2147483647) gap=this.getDefaultIconTextGap$(); +if (gap != 0 && text != null ) $I$(4).addHorizontalGap(this.iconNode, gap); +}this.isHTML=false; +if (text.indexOf$S("") == 0) { +this.isHTML=true; +text=$I$(14).rep$S$S$S(text.substring$I(6), "
", ""); +text=$I$(14).rep$S$S$S(text, "", ""); +text=$I$(14).rep$S$S$S(text, "href=", "target=_blank href="); +} else if (this.jc.getClientProperty$O("html") != null ) { +this.isHTML=true; +} else if (this.mnemonicIndex >= 0) { +var i=this.mnemonicIndex; +this.isHTML=true; +if (i < text.length$()) text=text.substring$I$I(0, i) + "" + text.substring$I$I(i, i + 1) + "" + text.substring$I(i + 1) ; +}}var obj=null; +if (this.textNode != null ) { +prop="innerHTML"; +obj=this.textNode; +this.setCssFont$swingjs_api_js_DOMNode$java_awt_Font(this.domNode, this.getFont$()); +this.setCssFont$swingjs_api_js_DOMNode$java_awt_Font(this.textNode, this.getFont$()); +if (!this.isHTML) text=$I$(14).rep$S$S$S(text, "<", "<").replace$C$C(" ", "\u00a0"); +} else if (this.valueNode != null ) { +prop="value"; +obj=this.valueNode; +if (this.iconNode != null ) $I$(4).setVisible(obj, text != null ); +}if (obj != null ) { +this.setJSText$swingjs_api_js_DOMNode$S$S(obj, prop, text); +}if (this.valueNode != null ) { +this.setBackgroundImpl$java_awt_Color(this.c.getBackground$()); +}}); + +Clazz_newMeth(C$, 'getDefaultIconTextGap$', function () { +return 0; +}); + +Clazz_newMeth(C$, 'getJSInsets$', function () { +if (this.insets == null ) this.insets=Clazz_new_($I$(2).c$$I$I$I$I,[0, 0, 0, 0]); +this.insets=this.jc.getInsets$java_awt_Insets(this.insets); +}); + +Clazz_newMeth(C$, 'setButtonRectangles$Z', function (isPreferred) { +if (this.iconR == null ) { +this.iconR=Clazz_new_($I$(15)); +this.textR=Clazz_new_($I$(15)); +this.viewR=Clazz_new_($I$(15)); +}this.getJSInsets$(); +if (isPreferred) { +this.viewR.width=32767; +this.viewR.height=32767; +} else { +this.viewR.x=0; +this.viewR.y=0; +this.viewR.width=this.width - this.insets.right - this.insets.left ; +this.viewR.height=this.height - this.insets.bottom - this.insets.top ; +}this.iconR.width=-1; +if (this.isMenuItem && this.actionNode != null ) { +this.iconR.width=this.iconR.height=15; +} else if (this.icon == null && this.iconNode != null ) { +var d=this.getHTMLSize$swingjs_api_js_DOMNode(this.iconNode); +this.iconR.width=d.width; +this.iconR.height=d.height; +}this.iconR.x=this.iconR.y=this.textR.x=this.textR.y=0; +}); + +Clazz_newMeth(C$, 'addCentering$swingjs_api_js_DOMNode', function (node) { +if (this.iconNode == null ) this.iconNode=C$.newDOMObject$S$S$SA("span", this.id + "_icon", []); +this.textNode=C$.newDOMObject$S$S$SA("span", this.id + "_txt", []); +this.centeringNode=C$.newDOMObject$S$S$SA("span", this.id + "_ctr", []); +this.centeringNode.appendChild(this.iconNode); +this.centeringNode.appendChild(this.textNode); +node.appendChild(this.centeringNode); +}); + +Clazz_newMeth(C$, 'updateCenteringNode$', function () { +if (this.jc.秘paintsSelfEntirely$()) { +$I$(4).setStyles(this.centeringNode, ["visibility", "hidden"]); +$I$(4).setStyles(this.domNode, ["border", "none"]); +$I$(4).setStyles(this.domNode, ["background", "none"]); +}}); + +Clazz_newMeth(C$, 'setAlignments$javax_swing_AbstractButton$Z', function (b, justGetPreferred) { +if (this.alignmentDisabled) return; +var hTextPos=b.getHorizontalTextPosition$(); +var hAlign=b.getHorizontalAlignment$(); +var vAlign=b.getVerticalAlignment$(); +var vTextPos=b.getVerticalTextPosition$(); +this.getJSInsets$(); +var dimIcon=p$1.getIconSize$javax_swing_AbstractButton.apply(this, [b]); +var dimText=p$1.getTextSize$javax_swing_AbstractButton.apply(this, [b]); +var wIcon=(this.actionNode != null ? (this.isMenuItem ? 15 : 20) : dimIcon == null ? 0 : Math.max(0, dimIcon.width)); +var wText=(dimText == null ? 0 : dimText.width); +var gap=(wText == 0 || wIcon == 0 ? 0 : b.getIconTextGap$()); +var w0=this.cellComponent != null ? this.cellWidth : this.$$O(this.domNode).width(); +var w=w0; +if (w < wIcon + wText) { +w=wIcon + wText; +}var alignVCenter=(vAlign == 0); +var margins=(this.isLabel ? (this.isAWT ? b.getInsets$() : this.insets) : p$1.getButtonMargins$javax_swing_AbstractButton$Z.apply(this, [b, justGetPreferred])); +if (margins == null ) margins=C$.zeroInsets; +var myInsets=(this.isLabel || !this.isSimpleButton || justGetPreferred ? C$.zeroInsets : this.getButtonOuterInsets$javax_swing_AbstractButton(b)); +var h=(dimText == null ? 0 : dimText.height); +var ih=(dimIcon == null ? 0 : dimIcon.height); +var hCtr=Math.max(h, ih); +var wCtr=wIcon + gap + wText ; +var wAccel=0; +var accel=null; +var ltr=this.jc.getComponentOrientation$().isLeftToRight$(); +var alignLeft; +var alignRight; +var alignHCenter; +var textRight; +if (this.menuAnchorNode == null ) { +alignLeft=(w == 0 || hAlign == 2 || hAlign == (ltr ? 10 : 11) ); +alignRight=w != 0 && (hAlign == 4 || hAlign == (ltr ? 11 : 10) ) ; +alignHCenter=(!alignLeft && !alignRight ); +textRight=(hTextPos == 4 || hTextPos == (ltr ? 11 : 10) ); +} else { +alignLeft=ltr; +alignRight=!ltr; +alignHCenter=false; +textRight=ltr; +accel=(Clazz_instanceOf(b, "javax.swing.JMenuItem") ? p$1.getAccelStr$javax_swing_JMenuItem.apply(this, [b]) : null); +var accelNode=this.menuAnchorNode; +accelNode=accelNode.children[1] ||null; +if ((accelNode == null ) != (accel == null ) ) { +if (accel == null ) { +$I$(4).remove(accelNode); +} else { +this.menuAnchorNode.appendChild(accelNode=$I$(4).createElement("span", this.id + "_acc")); +this.addClass$swingjs_api_js_DOMNode$S(accelNode, "ui-j2smenu-accel"); +$I$(4).setAttr(accelNode, "role", "menuitem"); +$I$(4).setStyles(accelNode, ["font-size", "10px"]); +this.setMenuItem$swingjs_api_js_DOMNode(accelNode); +}}if (accel != null ) { +$I$(4).setStyles(accelNode, ["float", null]); +$I$(4).setAttr(accelNode, "innerHTML", accel); +wAccel=this.getHTMLSize$swingjs_api_js_DOMNode(accelNode).width; +$I$(4).setStyles(accelNode, ["float", ltr ? "right" : "left", "text-align", ltr ? "right" : "left", "margin", "0px 5px", "transform", "translateY(15%)"]); +}$I$(4).setStyles(this.menuAnchorNode, ["width", "90%", "min-width", new Double(Math.max(75, (wCtr + wAccel + margins.left + margins.right ) * 1.1)).toString() + "px"]); +}if (alignHCenter) { +switch (hTextPos) { +case 1: +case 3: +hCtr=ih + gap + h ; +case 0: +wCtr=Math.max(wIcon, wText); +if (w0 > 0 && w0 < w ) w=w0; +break; +} +}if (justGetPreferred) { +if (this.preferredDim == null ) this.preferredDim=Clazz_new_($I$(11)); +this.preferredDim.width=wCtr + margins.left + margins.right ; +this.preferredDim.height=hCtr + margins.top + margins.bottom ; +return; +}this.preferredDim=null; +var cssCtr=C$.getJSObject$(); +var cssTxt=C$.getJSObject$(); +var cssIcon=C$.getJSObject$(); +C$.addJSKeyVal$O$SA(cssCtr, ["position", "absolute", "top", null, "left", null, "transform", null, "width", wCtr + "px", "height", hCtr + "px"]); +C$.addJSKeyVal$O$SA(cssIcon, ["position", "absolute", "top", null, "left", null, "transform", null]); +C$.addJSKeyVal$O$SA(cssTxt, ["position", "absolute", "top", null, "left", null, "transform", null]); +this.isFullyCentered=(alignHCenter && alignVCenter && wIcon == 0 || wText == 0 && margins.left == margins.right && margins.top == margins.bottom && myInsets.left == myInsets.right && myInsets.top == myInsets.bottom ); +if (this.isFullyCentered) { +p$1.fullyCenter$O.apply(this, [cssCtr]); +p$1.fullyCenter$O.apply(this, [cssIcon]); +p$1.fullyCenter$O.apply(this, [cssTxt]); +} else { +var left=-1; +if (this.menuAnchorNode == null ) { +if (alignHCenter) { +switch (hTextPos) { +case 1: +case 3: +case 0: +C$.addJSKeyVal$O$SA(cssTxt, ["left", (((wCtr - wText)/2|0)) + "px"]); +C$.addJSKeyVal$O$SA(cssIcon, ["left", (((wCtr - wIcon)/2|0)) + "px"]); +break; +default: +var off=(wCtr/2|0); +if (textRight) { +C$.addJSKeyVal$O$SA(cssIcon, ["left", "0px"]); +C$.addJSKeyVal$O$SA(cssTxt, ["left", (gap + wIcon) + "px"]); +} else { +C$.addJSKeyVal$O$SA(cssTxt, ["left", off + "px"]); +C$.addJSKeyVal$O$SA(cssIcon, ["left", (gap + wText) + "px"]); +}break; +} +left=((w - wCtr + margins.left - margins.right + myInsets.left - myInsets.right)/2|0); +} else if (alignRight) { +left=w - wCtr - margins.right - myInsets.right - (this.cellComponent == null ? 0 : 2) ; +if (textRight) { +C$.addJSKeyVal$O$SA(cssTxt, ["left", (wCtr - wText) + "px"]); +C$.addJSKeyVal$O$SA(cssIcon, ["left", "0px"]); +} else { +C$.addJSKeyVal$O$SA(cssTxt, ["left", "0px"]); +C$.addJSKeyVal$O$SA(cssIcon, ["left", (wCtr - wIcon) + "px"]); +}} else { +left=margins.left + myInsets.left - (this.cellComponent == null ? 0 : 1); +if (textRight) { +var off=(!this.isMenuItem || ltr || this.actionNode != null ? 0 : this.actionItemOffset); +C$.addJSKeyVal$O$SA(cssIcon, ["left", off + "px"]); +C$.addJSKeyVal$O$SA(cssTxt, ["left", (wIcon + gap) + "px"]); +} else { +C$.addJSKeyVal$O$SA(cssTxt, ["left", (!this.isMenuItem ? 0 : ltr ? this.actionItemOffset : -3) + "px"]); +C$.addJSKeyVal$O$SA(cssIcon, ["left", (wText + gap) + "px"]); +}}C$.addJSKeyVal$O$SA(cssCtr, ["left", left + "px"]); +} else { +if (alignRight) { +$I$(4).setStyles(this.itemNode, ["text-align", "right"]); +C$.addJSKeyVal$O$SA(cssCtr, ["right", "0px"]); +C$.addJSKeyVal$O$SA(cssTxt, ["right", "23px"]); +C$.addJSKeyVal$O$SA(cssIcon, ["right", "0px"]); +} else { +$I$(4).setStyles(this.itemNode, ["text-align", "left"]); +C$.addJSKeyVal$O$SA(cssCtr, ["left", "0px"]); +C$.addJSKeyVal$O$SA(cssIcon, ["left", "0px"]); +C$.addJSKeyVal$O$SA(cssTxt, ["left", "23px"]); +}}h=this.c.getHeight$(); +if (h == 0) { +h=16; +}if (this.menuAnchorNode == null ) { +var top; +switch (vAlign) { +case 1: +top=margins.top + myInsets.top; +break; +case 3: +top=h - margins.bottom - myInsets.bottom - hCtr ; +break; +default: +case 0: +top=((h - hCtr + margins.top - margins.bottom + myInsets.top - myInsets.bottom)/2|0); +break; +} +C$.addJSKeyVal$O$SA(cssCtr, ["top", top + "px"]); +var itop; +var yoff=null; +var iscale=null; +switch (vTextPos) { +case 1: +top=itop=0; +break; +case 3: +top=itop=100; +break; +default: +case 0: +top=itop=50; +if (this.iconNode === this.actionNode ) { +itop=70; +iscale="scale(0.8,0.8)"; +}yoff="-50%"; +break; +} +C$.addJSKeyVal$O$SA(cssTxt, ["top", top + "%", "transform", "translateY(" + (yoff == null ? "-" + top + "%" : yoff + ")")]); +C$.addJSKeyVal$O$SA(cssIcon, ["top", top + "%", "transform", "translateY(-" + itop + "%)" + (iscale == null ? "" : iscale) ]); +} else { +$I$(4).setStyles(this.menuAnchorNode, ["height", h + "px"]); +C$.addJSKeyVal$O$SA(cssIcon, ["top", "50%", "transform", "translateY(-65%) scale(0.6,0.6)"]); +}}p$1.setCSS$O$swingjs_api_js_DOMNode.apply(this, [cssCtr, this.centeringNode]); +p$1.setCSS$O$swingjs_api_js_DOMNode.apply(this, [cssIcon, this.iconNode]); +p$1.setCSS$O$swingjs_api_js_DOMNode.apply(this, [cssTxt, this.textNode]); +if (this.cellComponent != null ) this.updateCellNode$(); +}); + +Clazz_newMeth(C$, 'fullyCenter$O', function (css) { +if (this.isSimpleButton) C$.addJSKeyVal$O$SA(css, ["width", null, "position", null, "padding", "0", "margin", "0 auto"]); + else C$.addJSKeyVal$O$SA(css, ["width", null, "top", "50%", "left", "50%", "transform", "translateX(-50%)translateY(-50%)translateY(0.5px)translateX(0.5px)", "position", "absolute"]); +}, p$1); + +Clazz_newMeth(C$, 'getJSObject$', function () { +return {} ||null; +}, 1); + +Clazz_newMeth(C$, 'addJSKeyVal$O$SA', function (o, kv) { +for (var i=0, n=kv.length; i < n; i++) { + +o[kv[i++]] = kv[i]; +} +}, 1); + +Clazz_newMeth(C$, 'setCSS$O$swingjs_api_js_DOMNode', function (css, node) { +if (node == null ) return; + +for (var a in css)node.style[a] = css[a]; +}, p$1); + +Clazz_newMeth(C$, 'updateCellNode$', function () { +if (this.cellWidth == 0 || this.cellHeight == 0 ) { +return; +}if (this.allowPaintedBackground) $I$(4).setStyles(this.domNode, ["background", "transparent"]); +if (Clazz_instanceOf(this.cellComponent, "javax.swing.JTable.BooleanRenderer") || this.cellComponent.getClientProperty$O("_jsBooleanEditor") != null ) { +$I$(4).setStyles(this.centeringNode, ["width", "100%", "height", "100%"]); +$I$(4).setStyles(this.buttonNode, ["width", "100%", "height", "100%"]); +$I$(4).setStyles(this.actionNode, ["position", "absolute", "width", "14px", "height", "14px", "top", ((this.cellHeight/2|0)) + "px"]); +var textAlign=(this.cellComponent).getHorizontalAlignment$(); +var width=this.cellWidth; +switch (textAlign) { +case 4: +case 11: +$I$(4).setStyles(this.actionNode, ["left", width + "px", "transform", "scale(0.75,0.75) translate(-25px,-20px)"]); +break; +case 2: +case 10: +$I$(4).setStyles(this.actionNode, ["left", "0px", "transform", "scale(0.75,0.75) translate(-5px,-20px)"]); +break; +case 0: +$I$(4).setStyles(this.actionNode, ["left", ((width/2|0)) + "px", "transform", "scale(0.75,0.75) translate(-15px,-15px)"]); +break; +} +}}); + +Clazz_newMeth(C$, 'getButtonMargins$javax_swing_AbstractButton$Z', function (b, includeOuter) { +return (includeOuter ? b.getInsets$() : Clazz_instanceOf(b.getBorder$(), "javax.swing.border.CompoundBorder") ? (b.getBorder$()).getInsideBorder$().getBorderInsets$java_awt_Component(b) : null); +}, p$1); + +Clazz_newMeth(C$, 'getButtonOuterInsets$javax_swing_AbstractButton', function (b) { +if (Clazz_instanceOf(b.getBorder$(), "javax.swing.border.CompoundBorder")) { +return (b.getBorder$()).getOutsideBorder$().getBorderInsets$java_awt_Component(b); +}return b.getInsets$(); +}); + +Clazz_newMeth(C$, 'getFont$', function () { +var f=this.c.getFont$(); +return (f == null ? $I$(16).dialogPlain12 : f); +}); + +Clazz_newMeth(C$, 'getAccelStr$javax_swing_JMenuItem', function (b) { +var ks=b.getAccelerator$(); +if (ks != null ) { +var k=$I$(17).getKeyText$I(ks.getKeyCode$()); +if (k == "Escape") k="Esc"; +var s=$I$(17).getKeyModifiersText$I(ks.getModifiers$()); +return s + (s == "" ? "" : "-") + k ; +}return null; +}, p$1); + +Clazz_newMeth(C$, 'handleEvent$java_awt_AWTEvent', function (e) { +}); + +Clazz_newMeth(C$, 'coalescePaintEvent$java_awt_event_PaintEvent', function (e) { +}); + +Clazz_newMeth(C$, 'getLocationOnScreen$', function () { +var offset=this.$$O(this.outerNode == null ? this.jc.getParent$().秘getUI$().outerNode : this.outerNode).offset(); +return Clazz_new_($I$(18).c$$I$I,[offset.left, offset.top]); +}); + +Clazz_newMeth(C$, 'getColorModel$', function () { +return $I$(19).getDefaultToolkit$().getColorModel$(); +}); + +Clazz_newMeth(C$, 'getToolkit$', function () { +return $I$(19).getDefaultToolkit$(); +}); + +Clazz_newMeth(C$, 'getGraphics$', function () { +return null; +}); + +Clazz_newMeth(C$, 'getFontMetrics$java_awt_Font', function (font) { +return this.c.getFontMetrics$java_awt_Font(font); +}); + +Clazz_newMeth(C$, 'dispose$', function () { +if (this.isUIDisabled) return; +if (this.cellComponent != null ) { +$I$(4).setVisible(this.domNode, false); +return; +}this.isDisposed=true; +$I$(4).dispose(this.domNode); +if (this.domNode !== this.outerNode ) $I$(4).dispose(this.outerNode); +}); + +Clazz_newMeth(C$, 'undisposeUI$swingjs_api_js_DOMNode', function (node) { +var parent=this.c.getParent$(); +if (node != null && parent != null ) { +var ui=this.c.getParent$().秘getUI$(); +if (ui.containerNode != null ) ui.containerNode.appendChild(node); +}if (this.outerNode != null && this.domNode != null && this.domNode !== this.outerNode ) { +this.outerNode.appendChild(this.domNode); +}this.isDisposed=false; +}); + +Clazz_newMeth(C$, 'setForegroundCUI$java_awt_Color', function (c) { +this.setForegroundFor$swingjs_api_js_DOMNode$java_awt_Color(this.domNode, c); +}); + +Clazz_newMeth(C$, 'setForegroundFor$swingjs_api_js_DOMNode$java_awt_Color', function (node, color) { +if (node != null ) $I$(4).setStyles(node, ["color", (color == null ? "rgba(0,0,0,0)" : $I$(5).getCSSColor$java_awt_Color(color == null ? $I$(3).black : color))]); +}); + +Clazz_newMeth(C$, 'setFont$java_awt_Font', function (f) { +}); + +Clazz_newMeth(C$, 'createImage$java_awt_image_ImageProducer', function (producer) { +$I$(1).notImplemented$S(""); +return null; +}); + +Clazz_newMeth(C$, 'createImage$I$I', function (width, height) { +$I$(1).notImplemented$S(""); +return null; +}); + +Clazz_newMeth(C$, 'createVolatileImage$I$I', function (width, height) { +$I$(1).notImplemented$S(""); +return null; +}); + +Clazz_newMeth(C$, 'prepareImage$java_awt_Image$I$I$java_awt_image_ImageObserver', function (img, w, h, o) { +$I$(1).notImplemented$S(""); +return false; +}); + +Clazz_newMeth(C$, 'checkImage$java_awt_Image$I$I$java_awt_image_ImageObserver', function (img, w, h, o) { +$I$(1).notImplemented$S(""); +return 0; +}); + +Clazz_newMeth(C$, 'getGraphicsConfiguration$', function () { +$I$(1).notImplemented$S(""); +return null; +}); + +Clazz_newMeth(C$, 'handlesWheelScrolling$', function () { +$I$(1).notImplemented$S(""); +return false; +}); + +Clazz_newMeth(C$, 'getBackBuffer$', function () { +$I$(1).notImplemented$S(""); +return null; +}); + +Clazz_newMeth(C$, 'destroyBuffers$', function () { +$I$(1).notImplemented$S(""); +}); + +Clazz_newMeth(C$, 'reparent$java_awt_peer_ContainerPeer', function (newContainer) { +$I$(1).notImplemented$S(""); +}); + +Clazz_newMeth(C$, 'isReparentSupported$', function () { +$I$(1).notImplemented$S(""); +return false; +}); + +Clazz_newMeth(C$, 'layout$', function () { +}); + +Clazz_newMeth(C$, 'getBounds$', function () { +$I$(1).notImplemented$S(""); +return null; +}); + +Clazz_newMeth(C$, 'getInheritedZ$javax_swing_JComponent', function (c) { +return c.秘getUI$().getInheritedZ$(); +}, 1); + +Clazz_newMeth(C$, 'getInheritedZ$', function () { +var node=this.domNode; +var base=9000; +var z=0; + +while (node && !node.style["z-index"]) node = node.parentElement; +!(z = +(node && node.style["z-index"])) && (z = base); +return z; +}); + +Clazz_newMeth(C$, 'setZ$I', function (z) { +$I$(4).setPositionAbsolute(this.domNode); +$I$(4).setZ(this.domNode, z); +$I$(4).setZ(this.outerNode, z); +}); + +Clazz_newMeth(C$, 'containerToFront$javax_swing_JComponent', function (c) { +var w=c.getRootPane$().getParent$(); +if (Clazz_instanceOf(w, "java.awt.Window")) (w).toFront$(); +}, 1); + +Clazz_newMeth(C$, 'getInsets$', function () { +return null; +}); + +Clazz_newMeth(C$, 'beginValidate$', function () { +}); + +Clazz_newMeth(C$, 'endValidate$', function () { +}); + +Clazz_newMeth(C$, 'beginLayout$', function () { +if (!this.boundsSet && !this.isContainer ) this.setVisible$Z(false); +this.isLaidOut=false; +this.layingOut=true; +}); + +Clazz_newMeth(C$, 'endLayout$', function () { +this.layingOut=false; +this.isLaidOut=true; +}); + +Clazz_newMeth(C$, 'getId$', function () { +return this.id; +}); + +Clazz_newMeth(C$, 'dumpEvent$java_util_EventObject', function (e) { +return e.toString(); +}); + +Clazz_newMeth(C$, 'toCSSString$java_awt_Color', function (c) { +var opacity=c.getAlpha$(); +if (opacity == 255) return "#" + C$.toRGBHexString$java_awt_Color(c); +var rgb=c.getRGB$(); +return "rgba(" + ((rgb >> 16) & 255) + "," + ((rgb >> 8) & 255) + "," + (rgb & 255) + "," + new Float(opacity / 255.0).toString() + ")"; +}, 1); + +Clazz_newMeth(C$, 'toRGBHexString$java_awt_Color', function (c) { +var rgb=c.getRGB$(); +if (rgb == 0) return "000000"; +var r="00" + Integer.toHexString$I((rgb >> 16) & 255); +r=r.substring$I(r.length$() - 2); +var g="00" + Integer.toHexString$I((rgb >> 8) & 255); +g=g.substring$I(g.length$() - 2); +var b="00" + Integer.toHexString$I(rgb & 255); +b=b.substring$I(b.length$() - 2); +return r + g + b ; +}, 1); + +Clazz_newMeth(C$, 'updateSceneGraph$javax_swing_JComponent$javax_swing_JComponent$swingjs_JSGraphics2D', function (comp, owner, g) { +var node=(comp.ui).outerNode; +var x=0; +var y=0; +{ +x = g.$transform.m02; y = g.$transform.m12; +if (x == node.lastSceneX && y == node.lastSceneY) return; +node.lastSceneX = x; node.lastSceneY = y; +} +$I$(4).setStyles(node, ["left", x + "px", "top", y + "px"]); +{ +if (node.parentElement == null) owner.ui.outerNode.appendChild(node); +} +}, 1); + +Clazz_newMeth(C$, 'getPropertyPrefix$', function () { +var s=this.jc.getUIClassID$(); +return (s == null ? null : s.substring$I$I(0, s.length$() - 2)); +}); + +Clazz_newMeth(C$, 'setPadding$java_awt_Insets', function (padding) { +$I$(4).setStyles(this.domNode, ["padding", padding == null ? "0px" : padding.top + "px " + padding.left + "px " + padding.bottom + "px " + padding.right + "px" ]); +}); + +Clazz_newMeth(C$, 'addDropTarget$java_awt_dnd_DropTarget', function (t) { +if (this.dropTarget === t ) return; +this.dropTarget=t; +p$1.setDropTarget$Z.apply(this, [true]); +}); + +Clazz_newMeth(C$, 'removeDropTarget$java_awt_dnd_DropTarget', function (t) { +if (this.dropTarget !== t ) return; +p$1.setDropTarget$Z.apply(this, [false]); +this.dropTarget=null; +}); + +Clazz_newMeth(C$, 'setDropTarget$Z', function (adding) { +if (this.dropTarget === this ) return; +this.J2S.setDragDropTarget(this.c, this.getDOMNode$(), this.dropTarget != null ); +}, p$1); + +Clazz_newMeth(C$, 'invalidate$', function () { +this.setTainted$(); +}); + +Clazz_newMeth(C$, 'checkStopPopupMenuTimer$O$I$O', function (target, eventType, jQueryEvent) { +if (target === this.domNode && eventType == -1 ) { +var type=(jQueryEvent.type ||""); +if (type.equals$O("mouseenter")) { +this.stopPopupMenuTimer$(); +}}}); + +Clazz_newMeth(C$, 'startPopupMenuTimer$', function () { +var ui=(this.jc).getPopupMenu$().getUI$(); +ui.menuTimer=setTimeout(function() { ui.hideMenu$()},1000) ||0; +}); + +Clazz_newMeth(C$, 'stopPopupMenuTimer$', function () { +var ui=(this.isPopupMenu ? this : this.jc.getParent$().getUI$()); +var timer=ui.menuTimer; +if (timer != 0) { + +clearTimeout(timer); +ui.menuTimer=0; +}}); + +Clazz_newMeth(C$, 'setRenderer$java_awt_JSComponent$I$I$swingjs_api_js_DOMNode', function (rendererComponent, width, height, td) { +p$1.setComponent$javax_swing_JComponent.apply(this, [rendererComponent]); +if (this.isUIDisabled) { +p$1.updateTableCell$swingjs_api_js_DOMNode$Z.apply(this, [td, true]); +return; +}this.cellComponent=rendererComponent; +if (width == 0) return; +this.cellWidth=width; +this.cellHeight=height; +}); + +Clazz_newMeth(C$, 'reinstallUI$javax_swing_JComponent$javax_swing_JComponent', function (oldC, newC) { +this.uninstallUI$javax_swing_JComponent(oldC); +p$1.uninstallJS.apply(this, []); +if (newC == null ) { +} else { +this.installJS$(); +this.installUI$javax_swing_JComponent(newC); +}}); + +Clazz_newMeth(C$, 'setForeground$java_awt_Color', function (c) { +this.awtPeerFG=null; +this.setForegroundFor$swingjs_api_js_DOMNode$java_awt_Color(this.domNode, c); +}); + +Clazz_newMeth(C$, 'setBackground$java_awt_Color', function (c) { +this.awtPeerBG=null; +this.setBackgroundImpl$java_awt_Color(c); +}); + +Clazz_newMeth(C$, 'setBackgroundImpl$java_awt_Color', function (color) { +if (this.domNode == null || this.isMenuItem || this.isUIDisabled ) return; +this.backgroundColor=color; +if ((this.jc.秘paintsSelf$() || (this.isContentPane || this.isLayeredPane ) && this.jc.秘setPaintsSelf$I(1) == 1 ) && this.jc.isOpaque$() ) { +this.clearPaintPath$(); +}this.paintBackground$swingjs_JSGraphics2D(this.jc.秘gtemp); +}); + +Clazz_newMeth(C$, 'checkTransparent', function () { +if (this.domNode != null && (this.cellComponent != null || !this.c.isOpaque$() ) ) p$1.setTransparent.apply(this, []); +}, p$1); + +Clazz_newMeth(C$, 'setTransparent', function () { +if (this.allowPaintedBackground) $I$(4).setStyles(this.domNode, ["background", "transparent"]); +}, p$1); + +Clazz_newMeth(C$, 'paintBackground$swingjs_JSGraphics2D', function (g) { +var isOpaque=this.c.isOpaque$(); +var paintsSelf=this.jc.秘paintsSelf$(); +var color=(this.backgroundColor == null ? this.getBackground$() : this.backgroundColor); +if (g == null ) { +if (!paintsSelf) this.setBackgroundDOM$swingjs_api_js_DOMNode$java_awt_Color(this.domNode, color); +} else if (this.allowPaintedBackground && isOpaque ) { +g.setBackground$java_awt_Color(color); +g.clearRect$I$I$I$I(0, 0, this.c.getWidth$(), this.c.getHeight$()); +isOpaque=this.cellComponent == null && !this.jc.秘paintsSelf$() ; +if (!isOpaque && this.isWindow ) { +var c=this.jc.getRootPane$().getContentPane$(); +c.秘setPaintsSelf$I(1); +p$1.setTransparent.apply((c.ui), []); +}}if (this.allowPaintedBackground && !isOpaque ) p$1.setTransparent.apply(this, []); + else p$1.checkTransparent.apply(this, []); +}); + +Clazz_newMeth(C$, 'setBackgroundDOM$swingjs_api_js_DOMNode$java_awt_Color', function (node, color) { +$I$(4).setStyles(node, ["background-color", color == null ? null : $I$(5).getCSSColor$java_awt_Color(color)]); +}); + +Clazz_newMeth(C$, 'clearPaintPath$', function () { +var c=this.jc; +while (c != null ){ +p$1.setTransparent.apply((c.ui), []); +c=c.getParent$(); +} +}); + +Clazz_newMeth(C$, 'isModalBlocked$', function () { +return $I$(9).秘getTopInvokableAncestor$java_awt_Component$Z(this.jc, false).秘getUI$().modalBlocked; +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 13:07:13 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("swingjs.plaf"),I$=[]; +var C$=Clazz_newInterface(P$, "JSEventHandler"); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:40 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("swingjs.plaf"),I$=[[0,'java.awt.Insets','swingjs.plaf.JSComponentUI','swingjs.api.js.DOMNode','java.awt.Toolkit','java.awt.Color','java.awt.event.ComponentEvent','java.awt.event.WindowEvent','javax.swing.LookAndFeel','java.awt.Rectangle']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "JSFrameUI", null, 'swingjs.plaf.JSWindowUI', 'java.awt.peer.FramePeer'); +C$.ZERO_INSETS=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.ZERO_INSETS=Clazz_new_($I$(1).c$$I$I$I$I,[0, 0, 0, 0]); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.frame=null; +this.state=0; +this.closerWrap=null; +this.isModal=false; +this.zModal=0; +this.isInternalFrame=false; +this.doEmbed=false; +this.bounds=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +Clazz_super_(C$, this,1); +$I$(2).frameZ+=1000; +this.z=$I$(2).frameZ; +this.isContainer=true; +this.defaultHeight=500; +this.defaultWidth=500; +this.setDoc$(); +}, 1); + +Clazz_newMeth(C$, 'updateDOMNode$', function () { +if (this.domNode == null ) { +this.containerNode=this.frameNode=this.domNode=P$.JSComponentUI.newDOMObject$S$S$SA("div", this.id + "_frame", []); +if (this.isDummyFrame) { +$I$(3).setVisible(this.domNode, false); +return this.domNode; +}var w=this.c.getWidth$(); +var h=this.c.getHeight$(); +if (w == 0) w=this.defaultWidth; +if (h == 0) h=this.defaultHeight; +$I$(3).setSize(this.frameNode, w, h); +$I$(3).setTopLeftAbsolute(this.frameNode, 0, 0); +var fname=this.frame.getName$(); +var node=$I$(3).getElement(fname + "-div"); +if (node != null ) { +this.embeddingNode=node; +this.doEmbed=($I$(3).getWidth(this.embeddingNode) > 0); +if (this.doEmbed) { +this.frame.setUndecorated$Z(true); +this.frame.setLocation$I$I(0, 0); +}var ew=$I$(3).getWidth(node); +var eh=$I$(3).getHeight(node); +if (ew > 0 && eh > 0 ) { +this.frame._freezeBounds$I$I(ew, eh); +}}this.setWindowClass$(); +if (!this.frame.isUndecorated$()) { +$I$(3).setStyles(this.frameNode, ["box-shadow", "0px 0px 10px gray", "box-sizing", "content-box"]); +this.titleBarNode=P$.JSComponentUI.newDOMObject$S$S$SA("div", this.id + "_titlebar", []); +$I$(3).setTopLeftAbsolute(this.titleBarNode, 0, 0); +$I$(3).setStyles(this.titleBarNode, ["background-color", "#E0E0E0", "height", "20px", "font-size", "14px", "font-family", "sans-serif", "font-weight", "bold"]); +this.titleNode=P$.JSComponentUI.newDOMObject$S$S$SA("label", this.id + "_title", []); +$I$(3).setTopLeftAbsolute(this.titleNode, 0, 0); +$I$(3).setStyles(this.titleNode, ["background-color", "#E0E0E0", "height", "20px", "overflow", "hidden"]); +this.closerWrap=P$.JSComponentUI.newDOMObject$S$S$SA("div", this.id + "_closerwrap", []); +$I$(3).setTopLeftAbsolute(this.closerWrap, 0, 0); +$I$(3).setStyles(this.closerWrap, ["text-align", "right"]); +this.closerNode=P$.JSComponentUI.newDOMObject$S$S$SA("label", this.id + "_closer", ["innerHTML", "X"]); +$I$(3).setStyles(this.closerNode, ["width", "20px", "height", "20px", "position", "absolute", "text-align", "center", "right", "0px"]); +this.frameNode.appendChild(this.titleBarNode); +this.titleBarNode.appendChild(this.titleNode); +this.titleBarNode.appendChild(this.closerWrap); +this.closerWrap.appendChild(this.closerNode); +$I$(3).setStyles(this.closerNode, ["background-color", "#DDD"]); +}this.bindWindowEvents$(); +if (this.isModal) { +this.modalNode=$I$(3).createElement("div", this.id + "_modaldiv"); +var screen=$I$(4).getDefaultToolkit$().getScreenSize$(); +$I$(3).setStyles(this.modalNode, ["background", P$.JSComponentUI.toCSSString$java_awt_Color(Clazz_new_($I$(5).c$$I$I$I$I,[100, 100, 100, 100]))]); +$I$(3).setTopLeftAbsolute(this.modalNode, 0, 0); +$I$(3).setSize(this.modalNode, screen.width, screen.height); +}var s=this.getInsets$(); +$I$(3).setTopLeftAbsolute(this.frameNode, 0, 0); +$I$(3).setAttrs(this.frameNode, ["width", "" + this.frame.getWidth$() + s.left + s.right , "height", "" + this.frame.getHeight$() + s.top + s.bottom ]); +this.addFocusHandler$(); +}var strColor=P$.JSComponentUI.toCSSString$java_awt_Color(this.c.getBackground$()); +$I$(3).setStyles(this.domNode, ["background-color", strColor]); +$I$(3).setStyles(this.frameNode, ["background", "#DDD"]); +$I$(3).setStyles(this.frameNode, ["color", P$.JSComponentUI.toCSSString$java_awt_Color(this.c.getForeground$())]); +this.setInnerComponentBounds$I$I(this.width, this.height); +this.setTitle$S(this.frame.getTitle$()); +if (!this.isDummyFrame) { +$I$(3).setVisible(this.domNode, this.jc.isVisible$()); +}return this.domNode; +}); + +Clazz_newMeth(C$, 'isFrameIndependent$', function () { +var c=this.frame.parent; +if (this.isInternalFrame && (c == null || c != null && c.getUIClassID$() != "DesktopPaneUI" ) ) return false; +var is=(this.isInternalFrame ? c == null || c.getWidth$() == 0 : !this.doEmbed); +return is; +}); + +Clazz_newMeth(C$, 'setZ$I', function (z) { +if (this.doEmbed) z=999; +C$.superclazz.prototype.setZ$I.apply(this, [z]); +}); + +Clazz_newMeth(C$, 'setDraggableEvents$', function () { +if (this.doEmbed || this.frame.isUndecorated$() ) return; +var fnode=this.frameNode; +var fGetFrameParent=null; +{ +var me = this; fGetFrameParent = function(mode, x, y) { switch(arguments.length) { case 1: if (mode == 501) me.selected$(); me.hideMenu$(); return $(fnode).parent(); case 3: if (mode == 506) { me.moveFrame$I$I(x, y); return null; } } return null; } +} +this.J2S.setDraggable(this.titleBarNode, fGetFrameParent); +}); + +Clazz_newMeth(C$, 'selected$', function () { +(this.jc).toFront$(); +}); + +Clazz_newMeth(C$, 'hideMenu$', function () { +P$.JSComponentUI.hideMenusAndToolTip$(); +}); + +Clazz_newMeth(C$, 'moveFrame$I$I', function (x, y) { +if (!this.isInternalFrame) { +x=Math.max(30 - this.frame.getWidth$(), x); +y=Math.max(0, y); +}this.frame.setLocation$I$I(x, y); +}); + +Clazz_newMeth(C$, 'getMoveCoords$I$I', function (x, y) { +return Clazz_array(Integer.TYPE, -1, [x, y]); +}); + +Clazz_newMeth(C$, 'notifyFrameMoved$', function () { +this.toFront$(); +$I$(4).getEventQueue$().postEvent$java_awt_AWTEvent(Clazz_new_($I$(6).c$$java_awt_Component$I,[this.frame, 100])); +}); + +Clazz_newMeth(C$, ['handleJSEvent$O$I$O','handleJSEvent$'], function (target, eventType, jQueryEvent) { +if (target === this.closerNode && eventType == -1 ) { +switch (jQueryEvent.type ||"") { +case "click": +var tbar=this.titleBarNode; +this.J2S.setDraggable(tbar, new Boolean(false)); +this.frameCloserAction$(); +return true; +case "mouseout": +$I$(3).setStyles(this.closerNode, ["background-color", "#DDD"]); +return true; +case "mouseenter": +$I$(3).setStyles(this.closerNode, ["background-color", "red"]); +return true; +} +}return false; +}); + +Clazz_newMeth(C$, 'frameCloserAction$', function () { +this.frame.dispatchEvent$java_awt_AWTEvent(Clazz_new_($I$(7).c$$java_awt_Window$I,[this.frame, 201])); +}); + +Clazz_newMeth(C$, 'closeFrame$', function () { +this.J2S.unsetMouse(this.frameNode); +this.$$O(this.frameNode).remove(); +this.$$O(this.outerNode).remove(); +}); + +Clazz_newMeth(C$, 'setInnerComponentBounds$I$I', function (width, height) { +$I$(3).setStyles(this.closerWrap, ["text-align", "right", "width", width + "px"]); +$I$(3).setStyles(this.titleNode, ["width", (width - 4) + "px", "height", "20px"]); +}); + +Clazz_newMeth(C$, 'installUI$javax_swing_JComponent', function (jc) { +C$.superclazz.prototype.installUI$javax_swing_JComponent.apply(this, [jc]); +this.frame=this.c; +this.isDummyFrame=jc.__CLASS_NAME__ == "javax.swing.SwingUtilities.SharedOwnerFrame" ||false; +this.frame.addWindowListener$java_awt_event_WindowListener(this); +this.frame.addComponentListener$java_awt_event_ComponentListener(this); +$I$(8).installColorsAndFont$javax_swing_JComponent$S$S$S(jc, "Frame.background", "Frame.foreground", "Frame.font"); +}); + +Clazz_newMeth(C$, 'uninstallUI$javax_swing_JComponent', function (jc) { +this.closeFrame$(); +this.frame.removeWindowListener$java_awt_event_WindowListener(this); +}); + +Clazz_newMeth(C$, 'setTitle$S', function (title) { +if (this.titleNode != null ) $I$(3).setAttr(this.titleNode, "innerHTML", title); +}); + +Clazz_newMeth(C$, 'setMenuBar$O', function (mb) { +}); + +Clazz_newMeth(C$, 'setResizable$Z', function (resizeable) { +}); + +Clazz_newMeth(C$, 'setState$I', function (state) { +this.state=state; +}); + +Clazz_newMeth(C$, 'getState$', function () { +return this.state; +}); + +Clazz_newMeth(C$, 'setMaximizedBounds$java_awt_Rectangle', function (bounds) { +}); + +Clazz_newMeth(C$, 'setBoundsPrivate$I$I$I$I', function (x, y, width, height) { +this.bounds=Clazz_new_($I$(9).c$$I$I$I$I,[x, y, width, height]); +}); + +Clazz_newMeth(C$, 'getBoundsPrivate$', function () { +return this.bounds; +}); + +Clazz_newMeth(C$, 'getInsets$', function () { +return (this.isDummyFrame ? null : this.frame.isUndecorated$() ? C$.ZERO_INSETS : this.jc.getFrameViewer$().getInsets$()); +}); + +Clazz_newMeth(C$, ['propertyChange$java_beans_PropertyChangeEvent','propertyChange$'], function (e) { +if (e.getPropertyName$().equals$O("resizable")) { +var resizable=(e.getNewValue$()).booleanValue$(); +if (this.jc.getFrameViewer$().isResizable$() == resizable ) return; +this.jc.getFrameViewer$().setResizable$Z(resizable); +}C$.superclazz.prototype.propertyChange$java_beans_PropertyChangeEvent.apply(this, [e]); +}); + +Clazz_newMeth(C$, 'setVisible$Z', function (b) { +if (this.isDummyFrame) b=false; +C$.superclazz.prototype.setVisible$Z.apply(this, [b]); +if (this.isModal) { +this.modalBlocked=b; +if (b) { +this.$$O(this.body).after(this.modalNode); +this.addClass$swingjs_api_js_DOMNode$S(this.modalNode, "swingjs-window"); +var sz=$I$(3).getStyle(this.domNode, "z-index"); +var z=(+sz ||this.getInheritedZ$()) - 1; +$I$(3).setZ(this.modalNode, z); +}$I$(3).setVisible(this.modalNode, b); +}$I$(3).setVisible(this.domNode, b); +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 13:00:43 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("swingjs.plaf"),I$=[[0,'java.awt.Dimension','javax.swing.SwingUtilities','java.awt.Toolkit']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "JSGraphicsUtils"); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'getPreferredButtonSize$javax_swing_AbstractButton$I', function (b, textIconGap) { +if (b.getComponentCount$() > 0) { +return null; +}var ui=b.秘getUI$(); +ui.setTainted$(); +var icon=b.getIcon$(); +var text=b.getText$(); +if (ui.isAWT && text == "" ) text="\u00a0"; +var font=ui.getFont$(); +if (font == null ) return Clazz_new_($I$(1).c$$I$I,[10, 12]); +var fm=b.getFontMetrics$java_awt_Font(font); +ui.setButtonRectangles$Z(true); +$I$(2).layoutCompoundLabel$javax_swing_JComponent$java_awt_FontMetrics$S$javax_swing_Icon$I$I$I$I$java_awt_Rectangle$java_awt_Rectangle$java_awt_Rectangle$I(b, fm, text, icon, b.getVerticalAlignment$(), b.getHorizontalAlignment$(), b.getVerticalTextPosition$(), b.getHorizontalTextPosition$(), ui.viewR, ui.iconR, ui.textR, textIconGap); +var r=ui.viewR; +var insets=ui.insets; +r.width+=insets.left + insets.right; +r.height+=insets.top + insets.bottom; +return r.getSize$(); +}, 1); + +Clazz_newMeth(C$, 'isLeftToRight$java_awt_Component', function (c) { +return c.getComponentOrientation$().isLeftToRight$(); +}, 1); + +Clazz_newMeth(C$, 'isMenuShortcutKeyDown$java_awt_event_InputEvent', function (event) { +return (event.getModifiers$() & $I$(3).getDefaultToolkit$().getMenuShortcutKeyMask$()) != 0; +}, 1); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 13:00:45 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("swingjs.plaf"),I$=[[0,'swingjs.api.js.DOMNode','javax.swing.LookAndFeel','swingjs.plaf.JSGraphicsUtils','java.awt.Dimension']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "JSLabelUI", null, 'swingjs.plaf.JSLightweightUI'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.gap=0; +this.text=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +Clazz_super_(C$, this,1); +this.setDoc$(); +this.isLabel=true; +}, 1); + +Clazz_newMeth(C$, 'updateDOMNode$', function () { +if (this.domNode == null ) { +this.enableNode=this.domNode=P$.JSComponentUI.newDOMObject$S$S$SA("label", this.id, []); +this.textNode=this.iconNode=null; +this.addCentering$swingjs_api_js_DOMNode(this.domNode); +}this.getIconAndText$(); +this.setIconAndText$S$javax_swing_Icon$I$S("label", this.icon, this.gap, this.text); +$I$(1).setStyles(this.domNode, ["position", "absolute", "width", this.c.getWidth$() + "px", "height", this.c.getHeight$() + "px"]); +this.updateCenteringNode$(); +if (this.allowTextAlignment) { +this.setAlignments$javax_swing_AbstractButton$Z(this.label, false); +}if (this.jc.isEnabled$()) this.setBackgroundImpl$java_awt_Color(this.jc.isOpaque$() ? this.getBackground$() : null); +return this.updateDOMNodeCUI$(); +}); + +Clazz_newMeth(C$, 'getIconAndText$', function () { +this.label=this.jc; +this.icon=this.label.getIcon$(); +this.gap=this.label.getIconTextGap$(); +this.text=this.label.getText$(); +}); + +Clazz_newMeth(C$, 'installUI$javax_swing_JComponent', function (jc) { +this.label=jc; +$I$(2).installColorsAndFont$javax_swing_JComponent$S$S$S(jc, "Label.background", "Label.foreground", "Label.font"); +}); + +Clazz_newMeth(C$, 'uninstallUI$javax_swing_JComponent', function (jc) { +}); + +Clazz_newMeth(C$, 'getMaximumSize$javax_swing_JComponent', function (jc) { +return this.getPreferredSize$javax_swing_JComponent(jc); +}); + +Clazz_newMeth(C$, 'paint$java_awt_Graphics$javax_swing_JComponent', function (g, c) { +if (this.jc.秘paintsSelfEntirely$()) $I$(1).setStyles(this.centeringNode, ["visibility", "visible"]); +C$.superclazz.prototype.paint$java_awt_Graphics$javax_swing_JComponent.apply(this, [g, c]); +$I$(1).setStyles(this.textNode, ["overflow", "hidden", "white-space", "nowrap"]); +if (this.icon != null ) { +$I$(1).setStyles(this.imageNode, ["visibility", null]); +var r=this.imageNode.getBoundingClientRect(); +var parent=null; +var isHidden=(r.width == 0); +if (isHidden) { +parent=$I$(1).getParent(this.domNode); +this.$$O("body").append(this.domNode); +r=this.imageNode.getBoundingClientRect(); +}var r0=this.domNode.getBoundingClientRect(); +if (isHidden) $I$(1).transferTo(this.domNode, parent); +$I$(1).setStyles(this.imageNode, ["visibility", "hidden"]); +this.icon.paintIcon$java_awt_Component$java_awt_Graphics$I$I(c, g, (r.x - r0.x), (r.y - r0.y)); +}}); + +Clazz_newMeth(C$, 'getPreferredSize$javax_swing_JComponent', function (jc) { +this.updateDOMNode$(); +return (this.isAWT ? C$.getMinimumSizePeer$javax_swing_JComponent$O(jc, this.label) : this.label == null ? C$.superclazz.prototype.getPreferredSize$javax_swing_JComponent.apply(this, [jc]) : $I$(3).getPreferredButtonSize$javax_swing_AbstractButton$I((jc), (jc).getIconTextGap$())); +}); + +Clazz_newMeth(C$, 'getMinimumSizePeer$javax_swing_JComponent$O', function (jc, label) { +var f=jc.getFont$(); +var s=null; +if (f == null ) return Clazz_new_($I$(4).c$$I$I,[14, 8]); +var fm=f.getFontMetrics$(); +s=(label).getText$(); +if (s == null ) s=""; +return Clazz_new_($I$(4).c$$I$I,[fm.stringWidth$S(s) + 14, fm.getHeight$() + 8]); +}, 1); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 13:32:38 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("swingjs.plaf"),I$=[]; +var C$=Clazz_newClass(P$, "JSLayeredPaneUI", null, 'swingjs.plaf.JSLightweightUI'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +Clazz_super_(C$, this,1); +this.isContainer=this.isLayeredPane=true; +}, 1); + +Clazz_newMeth(C$, 'updateDOMNode$', function () { +if (this.domNode == null ) { +this.containerNode=this.domNode=P$.JSComponentUI.newDOMObject$S$S$SA("div", this.id, []); +}return this.domNode; +}); + +Clazz_newMeth(C$, 'installUI$javax_swing_JComponent', function (jc) { +}); + +Clazz_newMeth(C$, 'uninstallUI$javax_swing_JComponent', function (jc) { +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 13:00:44 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("swingjs.plaf"),I$=[]; +var C$=Clazz_newClass(P$, "JSLightweightUI", null, 'swingjs.plaf.JSComponentUI', 'java.awt.peer.LightweightPeer'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 13:00:36 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("swingjs.plaf"),p$1={},I$=[[0,'javax.swing.MenuSelectionManager','javax.swing.MenuElement','swingjs.api.js.DOMNode','java.awt.Insets','java.awt.Dimension',['swingjs.plaf.JSMenuBarUI','.Actions'],'swingjs.plaf.DefaultMenuLayout','javax.swing.LookAndFeel','Boolean','javax.swing.SwingUtilities','swingjs.plaf.LazyActionMap','sun.swing.DefaultLookup',['swingjs.plaf.JSMenuBarUI','.Handler']]],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "JSMenuBarUI", function(){ +Clazz_newInstance(this, arguments,0,C$); +}, 'swingjs.plaf.JSPanelUI', 'java.awt.event.ContainerListener'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.menuBar=null; +this.changeListener=null; +this.containerListener=null; +this.handler=null; +this.installed=false; +this.keyListener=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +Clazz_super_(C$, this,1); +this.isContainer=true; +this.allowPaintedBackground=false; +this.setDoc$(); +}, 1); + +Clazz_newMeth(C$, 'updateDOMNode$', function () { +if (this.domNode == null ) { +this.containerNode=this.domNode=P$.JSComponentUI.newDOMObject$S$S$SA("div", this.id, []); +$I$(3).setTopLeftAbsolute(this.domNode, 0, 0); +}this.setBackgroundImpl$java_awt_Color(this.jc.isOpaque$() ? this.getBackground$() : null); +return this.updateDOMNodeCUI$(); +}); + +Clazz_newMeth(C$, 'propertyChangedFromListener$java_beans_PropertyChangeEvent$S', function (e, prop) { +C$.superclazz.prototype.propertyChangedFromListener$java_beans_PropertyChangeEvent$S.apply(this, [e, prop]); +}); + +Clazz_newMeth(C$, ['propertyChange$java_beans_PropertyChangeEvent','propertyChange$'], function (e) { +var prop=e.getPropertyName$(); +if (!this.installed && this.jc.getRootPane$() != null ) { +this.jc.getRootPane$().addKeyListener$java_awt_event_KeyListener(this.keyListener); +this.installed=true; +}C$.superclazz.prototype.propertyChange$java_beans_PropertyChangeEvent.apply(this, [e]); +}); + +Clazz_newMeth(C$, 'getContainerHeight$', function () { +var m=this.menuBar.getInsets$(); +return this.height=this.getFont$().getFontMetrics$().getHeight$() + m.top + m.bottom ; +}); + +Clazz_newMeth(C$, 'getInsets$', function () { +return Clazz_new_($I$(4).c$$I$I$I$I,[2, 10, 2, 10]); +}); + +Clazz_newMeth(C$, 'getPreferredSize$javax_swing_JComponent', function (jc) { +var d=Clazz_new_($I$(5).c$$I$I,[0, this.getContainerHeight$()]); +return d; +}); + +Clazz_newMeth(C$, 'componentAdded$java_awt_event_ContainerEvent', function (e) { +}); + +Clazz_newMeth(C$, 'componentRemoved$java_awt_event_ContainerEvent', function (e) { +$I$(3).detachAll(this.domNode); +this.setTainted$(); +this.setHTMLElement$(); +}); + +Clazz_newMeth(C$, 'loadActionMap$swingjs_plaf_LazyActionMap', function (map) { +map.put$javax_swing_Action(Clazz_new_($I$(6).c$$S,["takeFocus"])); +}, 1); + +Clazz_newMeth(C$, 'installUI$javax_swing_JComponent', function (c) { +this.menuBar=c; +this.installDefaults$(); +this.installListeners$(); +this.installKeyboardActions$(); +}); + +Clazz_newMeth(C$, 'installDefaults$', function () { +if (this.menuBar.getLayout$() == null || Clazz_instanceOf(this.menuBar.getLayout$(), "javax.swing.plaf.UIResource") ) { +this.menuBar.setLayout$java_awt_LayoutManager(Clazz_new_($I$(7).c$$java_awt_Container$I,[this.menuBar, 2])); +this.menuBar.addContainerListener$java_awt_event_ContainerListener(this); +}$I$(8).installProperty$javax_swing_JComponent$S$O(this.menuBar, "opaque", $I$(9).TRUE); +$I$(8).installBorder$javax_swing_JComponent$S(this.menuBar, "MenuBar.border"); +$I$(8).installColorsAndFont$javax_swing_JComponent$S$S$S(this.menuBar, "MenuBar.background", "MenuBar.foreground", "MenuBar.font"); +this.menuBar.setOpaque$Z(true); +}); + +Clazz_newMeth(C$, 'installListeners$', function () { +this.containerListener=this.createContainerListener$(); +this.changeListener=this.createChangeListener$(); +this.keyListener=this.createKeyListener$(); +for (var i=0; i < this.menuBar.getMenuCount$(); i++) { +var menu=this.menuBar.getMenu$I(i); +if (menu != null ) menu.getModel$().addChangeListener$javax_swing_event_ChangeListener(this.changeListener); +} +this.menuBar.addContainerListener$java_awt_event_ContainerListener(this.containerListener); +}); + +Clazz_newMeth(C$, 'installKeyboardActions$', function () { +var inputMap=this.getInputMap$I(2); +$I$(10).replaceUIInputMap$javax_swing_JComponent$I$javax_swing_InputMap(this.menuBar, 2, inputMap); +$I$(11).installLazyActionMap$javax_swing_JComponent$Class$S(this.menuBar, Clazz_getClass(C$), "MenuBar.actionMap"); +}); + +Clazz_newMeth(C$, 'getInputMap$I', function (condition) { +if (condition == 2) { +var bindings=$I$(12).get$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S(this.menuBar, this, "MenuBar.windowBindings"); +if (bindings != null ) { +return $I$(8).makeComponentInputMap$javax_swing_JComponent$OA(this.menuBar, bindings); +}}return null; +}); + +Clazz_newMeth(C$, 'uninstallUI$javax_swing_JComponent', function (c) { +this.uninstallDefaults$(); +this.uninstallListeners$(); +this.uninstallKeyboardActions$(); +this.menuBar=null; +}); + +Clazz_newMeth(C$, 'uninstallDefaults$', function () { +if (this.menuBar != null ) { +$I$(8).uninstallBorder$javax_swing_JComponent(this.menuBar); +}}); + +Clazz_newMeth(C$, 'uninstallListeners$', function () { +this.menuBar.removeContainerListener$java_awt_event_ContainerListener(this.containerListener); +for (var i=0; i < this.menuBar.getMenuCount$(); i++) { +var menu=this.menuBar.getMenu$I(i); +if (menu != null ) menu.getModel$().removeChangeListener$javax_swing_event_ChangeListener(this.changeListener); +} +this.containerListener=null; +this.changeListener=null; +this.handler=null; +}); + +Clazz_newMeth(C$, 'uninstallKeyboardActions$', function () { +$I$(10).replaceUIInputMap$javax_swing_JComponent$I$javax_swing_InputMap(this.menuBar, 2, null); +$I$(10).replaceUIActionMap$javax_swing_JComponent$javax_swing_ActionMap(this.menuBar, null); +}); + +Clazz_newMeth(C$, 'createContainerListener$', function () { +return p$1.getHandler.apply(this, []); +}); + +Clazz_newMeth(C$, 'createChangeListener$', function () { +return p$1.getHandler.apply(this, []); +}); + +Clazz_newMeth(C$, 'createKeyListener$', function () { +return p$1.getHandler.apply(this, []); +}); + +Clazz_newMeth(C$, 'getHandler', function () { +if (this.handler == null ) { +this.handler=Clazz_new_($I$(13), [this, null]); +}return this.handler; +}, p$1); +; +(function(){var C$=Clazz_newClass(P$.JSMenuBarUI, "Handler", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, null, ['javax.swing.event.ChangeListener', 'java.awt.event.ContainerListener', 'java.awt.event.KeyListener']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, ['stateChanged$javax_swing_event_ChangeEvent','stateChanged$'], function (e) { +var i; +var c; +for (i=0, c=this.this$0.menuBar.getMenuCount$(); i < c; i++) { +var menu=this.this$0.menuBar.getMenu$I(i); +if (menu != null && menu.isSelected$() ) { +this.this$0.menuBar.getSelectionModel$().setSelectedIndex$I(i); +break; +}} +}); + +Clazz_newMeth(C$, 'componentAdded$java_awt_event_ContainerEvent', function (e) { +var c=e.getChild$(); +if (Clazz_instanceOf(c, "javax.swing.JMenu")) (c).getModel$().addChangeListener$javax_swing_event_ChangeListener(this.this$0.changeListener); +}); + +Clazz_newMeth(C$, 'componentRemoved$java_awt_event_ContainerEvent', function (e) { +var c=e.getChild$(); +if (Clazz_instanceOf(c, "javax.swing.JMenu")) (c).getModel$().removeChangeListener$javax_swing_event_ChangeListener(this.this$0.changeListener); +}); + +Clazz_newMeth(C$, 'keyTyped$java_awt_event_KeyEvent', function (e) { +}); + +Clazz_newMeth(C$, 'keyPressed$java_awt_event_KeyEvent', function (e) { +var msm=$I$(1).defaultManager$(); +msm.setCurrentPath$javax_swing_JComponent(null); +msm.processKeyEvent$java_awt_event_KeyEvent(e); +}); + +Clazz_newMeth(C$, 'keyReleased$java_awt_event_KeyEvent', function (e) { +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.JSMenuBarUI, "Actions", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'sun.swing.UIAction'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$S', function (key) { +C$.superclazz.c$$S.apply(this, [key]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) { +var menuBar=e.getSource$(); +var defaultManager=$I$(1).defaultManager$(); +var me; +var subElements; +var menu=menuBar.getMenu$I(0); +if (menu != null ) { +me=Clazz_array($I$(2), [3]); +me[0]=menuBar; +me[1]=menu; +me[2]=menu.getPopupMenu$(); +defaultManager.setSelectedPath$javax_swing_MenuElementA(me); +}}); + +Clazz_newMeth(C$); +})() +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 13:00:40 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("swingjs.plaf"),I$=[[0,'swingjs.api.js.DOMNode','java.awt.Dimension','swingjs.plaf.JSPopupMenuUI']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "JSMenuItemUI", null, 'swingjs.plaf.JSButtonUI'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.menuKeyListener=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.superclazz.c$.apply(this, []); +C$.$init$.apply(this); +this.isMenuItem=true; +this.allowPaintedBackground=false; +}, 1); + +Clazz_newMeth(C$, 'updateDOMNode$', function () { +if (this.domNode == null ) { +this.domNode=this.createItem$S$swingjs_api_js_DOMNode("_item", null); +this.bindJQueryEvents$swingjs_api_js_DOMNode$S$I(this.domNode, "mouseenter", -1); +}$I$(1).setVisible(this.domNode, this.jc.isVisible$()); +this.setupButton$(); +return this.domNode; +}); + +Clazz_newMeth(C$, ['handleJSEvent$O$I$O','handleJSEvent$'], function (target, eventType, jQueryEvent) { +this.checkStopPopupMenuTimer$O$I$O(target, eventType, jQueryEvent); +return C$.superclazz.prototype.handleJSEvent$O$I$O.apply(this, [target, eventType, jQueryEvent]); +}); + +Clazz_newMeth(C$, 'getContainerHeight$', function () { +return this.height=25; +}); + +Clazz_newMeth(C$, 'getCSSAdjustment$Z', function (addingCSS) { +return Clazz_new_($I$(2).c$$I$I,[5, 0]); +}); + +Clazz_newMeth(C$, 'installUI$javax_swing_JComponent', function (jc) { +this.menuItem=jc; +C$.superclazz.prototype.installUI$javax_swing_JComponent.apply(this, [jc]); +}); + +Clazz_newMeth(C$, ['propertyChange$java_beans_PropertyChangeEvent','propertyChange$'], function (e) { +var prop=e.getPropertyName$(); +if (!this.jc.isVisible$() && prop != "ancestor" && this.jc.getParent$() == null ) return; +switch (prop) { +case "focusPainted": +case "focusable": +case "borderPainted": +case "opaque": +return; +} +C$.superclazz.prototype.propertyChange$java_beans_PropertyChangeEvent.apply(this, [e]); +if (prop == "ancestor") { +if (this.jc.getParent$() != null ) { +this.jc.getParent$().秘getUI$().setHTMLElement$(); +}}}); + +Clazz_newMeth(C$, 'getPropertyPrefix$', function () { +return "MenuItem"; +}); + +Clazz_newMeth(C$, 'processJ2SMenuCmd$OA', function (data) { +$I$(3).processJ2SMenuCmd$OA(data); +}); + +Clazz_newMeth(C$, 'isFocusable$', function () { +return false; +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 13:34:21 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("swingjs.plaf"),p$1={},I$=[[0,'swingjs.api.js.DOMNode','java.awt.Component','java.awt.JSComponent']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "JSMenuUI", null, 'swingjs.plaf.JSMenuItemUI'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.jm=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +Clazz_super_(C$, this,1); +this.isMenu=true; +this.setDoc$(); +}, 1); + +Clazz_newMeth(C$, 'updateDOMNode$', function () { +var isMenuBarMenu=this.jm.isTopLevelMenu$(); +if (this.domNode != null && this.isMenuItem == isMenuBarMenu ) { +this.outerNode=null; +if (isMenuBarMenu) $I$(1).detachAll((this.jc.getParent$().ui).domNode); +}if (this.domNode == null ) { +this.domNode=this.createItem$S$swingjs_api_js_DOMNode(isMenuBarMenu ? "_bar" : "_elem", null); +this.bindJQueryEvents$swingjs_api_js_DOMNode$S$I(this.domNode, "mouseenter mouseleave", -1); +}this.allowTextAlignment=this.isMenuItem=!isMenuBarMenu; +this.containerNode=(isMenuBarMenu ? null : this.domNode); +this.addClass$swingjs_api_js_DOMNode$S(this.domNode, isMenuBarMenu ? "j2s-menuBar-menu" : "j2s-popup-menu"); +this.removeClass$swingjs_api_js_DOMNode$S(this.domNode, !isMenuBarMenu ? "j2s-menuBar-menu" : "j2s-popup-menu"); +if (isMenuBarMenu) this.removeClass$swingjs_api_js_DOMNode$S(this.menuAnchorNode, "a"); + else this.addClass$swingjs_api_js_DOMNode$S(this.menuAnchorNode, "a"); +this.setCssFont$swingjs_api_js_DOMNode$java_awt_Font(this.domNode, this.c.getFont$()); +$I$(1).setVisible(this.domNode, this.jc.isVisible$()); +this.setIconAndText$S$javax_swing_Icon$I$S("menu", this.currentIcon, this.currentGap, this.currentText); +this.setAlignments$javax_swing_AbstractButton$Z(this.jm, false); +this.updateCenteringNode$(); +if (isMenuBarMenu) $I$(1).setStyles(this.textNode, ["left", "0px"]); +return this.domNode; +}); + +Clazz_newMeth(C$, 'propertyChangedFromListener$java_beans_PropertyChangeEvent$S', function (e, prop) { +C$.superclazz.prototype.propertyChangedFromListener$java_beans_PropertyChangeEvent$S.apply(this, [e, prop]); +}); + +Clazz_newMeth(C$, ['propertyChange$java_beans_PropertyChangeEvent','propertyChange$'], function (e) { +var prop=e.getPropertyName$(); +if (this.jc.isVisible$()) { +if (prop == "ancestor") { +p$1.rebuild.apply(this, []); +}}C$.superclazz.prototype.propertyChange$java_beans_PropertyChangeEvent.apply(this, [e]); +}); + +Clazz_newMeth(C$, 'rebuild', function () { +if (this.jc.getParent$() != null ) { +if (this.domNode != null && this.isMenuItem == this.jm.isTopLevelMenu$() ) { +this.outerNode=null; +this.reInit$Z(true); +return; +}}}, p$1); + +Clazz_newMeth(C$, 'installUI$javax_swing_JComponent', function (jc) { +this.jm=jc; +C$.superclazz.prototype.installUI$javax_swing_JComponent.apply(this, [jc]); +(this.menuItem).setDelay$I(200); +}); + +Clazz_newMeth(C$, 'uninstallUI$javax_swing_JComponent', function (jc) { +C$.superclazz.prototype.uninstallUI$javax_swing_JComponent.apply(this, [jc]); +}); + +Clazz_newMeth(C$, 'getChildren$', function () { +return (this.isMenuItem ? Clazz_array($I$(2), -1, [this.jm.getPopupMenu$()]) : $I$(3).秘getChildArray$java_awt_Container(this.jm)); +}); + +Clazz_newMeth(C$, 'getChildCount$', function () { +return (this.isMenuItem ? 1 : this.jc.getComponentCount$()); +}); + +Clazz_newMeth(C$, 'getPropertyPrefix$', function () { +return "Menu"; +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 13:34:20 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("swingjs.plaf"),I$=[[0,'swingjs.api.js.DOMNode','java.awt.Dimension','javax.swing.LookAndFeel']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "JSPanelUI", null, 'swingjs.plaf.JSLightweightUI', 'java.awt.peer.ContainerPeer'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.$frameZ=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.$frameZ=10000; +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +Clazz_super_(C$, this,1); +this.isContainer=this.isPanel=true; +this.setDoc$(); +}, 1); + +Clazz_newMeth(C$, 'updateDOMNode$', function () { +var root=this.jc.getRootPane$(); +if (this.domNode == null ) { +this.containerNode=this.domNode=P$.JSComponentUI.newDOMObject$S$S$SA("div", this.id, []); +if (root != null && root.getGlassPane$() === this.c ) $I$(1).setVisible(this.domNode, false); +}this.isContentPane=(root != null && this.jc === root.getContentPane$() ); +if (this.isContentPane) this.checkAllowDivOverflow$(); +return this.updateDOMNodeCUI$(); +}); + +Clazz_newMeth(C$, 'getHTMLSizePreferred$swingjs_api_js_DOMNode$Z', function (obj, addCSS) { +return Clazz_new_($I$(2).c$$I$I,[this.c.getWidth$(), this.c.getHeight$()]); +}); + +Clazz_newMeth(C$, 'installUI$javax_swing_JComponent', function (jc) { +$I$(3).installColorsAndFont$javax_swing_JComponent$S$S$S(jc, "Panel.background", "Panel.foreground", "Panel.font"); +}); + +Clazz_newMeth(C$, 'uninstallUI$javax_swing_JComponent', function (jc) { +}); + +Clazz_newMeth(C$, 'getPreferredSize$javax_swing_JComponent', function (jc) { +return null; +}); + +Clazz_newMeth(C$, 'getMinimumSize$javax_swing_JComponent', function (jc) { +return null; +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 13:00:35 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("swingjs.plaf"),I$=[]; +var C$=Clazz_newClass(P$, "JSPopupMenuSeparatorUI", null, 'swingjs.plaf.JSSeparatorUI'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.superclazz.c$.apply(this, []); +C$.$init$.apply(this); +this.isMenuItem=this.isMenuSep=true; +this.allowPaintedBackground=false; +}, 1); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 13:00:36 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("swingjs.plaf"),I$=[[0,'swingjs.plaf.JSPopupMenuUI','javax.swing.MenuSelectionManager','swingjs.jquery.JQueryUI','swingjs.JSUtil','swingjs.api.js.DOMNode','javax.swing.LookAndFeel',['swingjs.plaf.JSPopupMenuUI','.JSMenuKeyListener'],'javax.swing.UIManager','swingjs.plaf.JSComponentUI']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "JSPopupMenuUI", function(){ +Clazz_newInstance(this, arguments,0,C$); +}, 'swingjs.plaf.JSPanelUI', 'java.awt.event.ContainerListener'); +C$.j2sSwingMenu=null; +C$.np=0; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +{ +var jqueryui=Clazz_getClass($I$(3)); +}; +C$.np=0; +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.popupMenu=null; +this.menuKeyListener=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, ['propertyChange$java_beans_PropertyChangeEvent','propertyChange$'], function (e) { +C$.superclazz.prototype.propertyChange$java_beans_PropertyChangeEvent.apply(this, [e]); +}); + +Clazz_newMeth(C$, 'c$', function () { +Clazz_super_(C$, this,1); +if (C$.j2sSwingMenu == null ) { +$I$(4).loadStaticResource$S("swingjs/jquery/j2sMenu.js"); +C$.j2sSwingMenu=this.J2S.getSwing(); +}this.isContainer=true; +this.isMenuItem=true; +this.isPopupMenu=true; +this.setDoc$(); +}, 1); + +Clazz_newMeth(C$, 'updateDOMNode$', function () { +if (this.domNode == null ) { +this.containerNode=this.domNode=P$.JSComponentUI.newDOMObject$S$S$SA("ul", this.id, []); +this.bindJQueryEvents$swingjs_api_js_DOMNode$S$I(this.domNode, "mouseenter", -1); +}return this.updateDOMNodeCUI$(); +}); + +Clazz_newMeth(C$, 'componentAdded$java_awt_event_ContainerEvent', function (e) { +$I$(5).detachAll(this.outerNode); +this.setTainted$(); +this.setHTMLElement$(); +var child=e.getChild$(); +if (Clazz_instanceOf(child, "javax.swing.JMenuItem")) (e.getChild$()).addMenuKeyListener$javax_swing_event_MenuKeyListener(this.menuKeyListener); +}); + +Clazz_newMeth(C$, 'componentRemoved$java_awt_event_ContainerEvent', function (e) { +$I$(5).detachAll(this.outerNode); +this.setTainted$(); +this.setHTMLElement$(); +var child=e.getChild$(); +if (Clazz_instanceOf(child, "javax.swing.JMenuItem")) (e.getChild$()).removeMenuKeyListener$javax_swing_event_MenuKeyListener(this.menuKeyListener); +}); + +Clazz_newMeth(C$, ['handleJSEvent$O$I$O','handleJSEvent$'], function (target, eventType, jQueryEvent) { +this.checkStopPopupMenuTimer$O$I$O(target, eventType, jQueryEvent); +return C$.superclazz.prototype.handleJSEvent$O$I$O.apply(this, [target, eventType, jQueryEvent]); +}); + +Clazz_newMeth(C$, 'installUI$javax_swing_JComponent', function (jc) { +this.installDefaults$(); +this.installListeners$(); +}); + +Clazz_newMeth(C$, 'installDefaults$', function () { +this.popupMenu=this.jc; +(this.jc).addContainerListener$java_awt_event_ContainerListener(this); +$I$(6).installColorsAndFont$javax_swing_JComponent$S$S$S(this.jc, "PopupMenu.background", "PopupMenu.foreground", "PopupMenu.font"); +}); + +Clazz_newMeth(C$, 'uninstallUI$javax_swing_JComponent', function (jc) { +(jc).removeContainerListener$java_awt_event_ContainerListener(this); +this.uninstallListeners$(); +}); + +Clazz_newMeth(C$, 'uninstallListeners$', function () { +if (this.menuKeyListener != null ) { +this.popupMenu.removeMenuKeyListener$javax_swing_event_MenuKeyListener(this.menuKeyListener); +}}); + +Clazz_newMeth(C$, 'setVisible$Z', function (b) { +C$.closeAllMenus$(); +if (b) { +if (this.isTainted || this.menu == null || this.outerNode == null || $I$(5).firstChild(this.outerNode) == null ) { +if (this.menu == null ) { +this.setTainted$(); +this.setHTMLElement$(); +this.menu=this.jc; +C$.j2sSwingMenu.setMenu(this.menu); +this.isTainted=false; +} else { +this.updateMenu$Z(true); +}}var x=this.menu.desiredLocationX ||0; +var y=this.menu.desiredLocationY ||0; +this.setZ$I(P$.JSComponentUI.getInheritedZ$javax_swing_JComponent(this.menu.getInvoker$()) + 2); +C$.j2sSwingMenu.showMenu(this.menu, x, y); +}}); + +Clazz_newMeth(C$, 'dispose$', function () { +$I$(5).dispose(this.domNode); +$I$(5).dispose(this.outerNode); +if (this.menu != null ) C$.j2sSwingMenu.disposeMenu(this.menu); +}); + +Clazz_newMeth(C$, 'getPreferredSize$javax_swing_JComponent', function (jc) { +return null; +}); + +Clazz_newMeth(C$, 'updateMenu$Z', function (andShow) { +this.setTainted$(); +this.setHTMLElement$(); +C$.j2sSwingMenu.updateMenu(this.menu, andShow); +}); + +Clazz_newMeth(C$, 'installListeners$', function () { +if (this.menuKeyListener == null ) { +this.menuKeyListener=Clazz_new_($I$(7), [this, null]); +}this.popupMenu.addMenuKeyListener$javax_swing_event_MenuKeyListener(this.menuKeyListener); +if (Clazz_instanceOf(this.popupMenu.getInvoker$(), "javax.swing.JRootPane")) { +this.popupMenu.getInvoker$().addKeyListener$java_awt_event_KeyListener(this.menuKeyListener); +}}); + +Clazz_newMeth(C$, 'getLastPopup$', function () { +var msm=$I$(2).defaultManager$(); +var p=msm.getSelectedPath$(); +var popup=null; +for (var i=p.length - 1; popup == null && i >= 0 ; i--) { +if (Clazz_instanceOf(p[i], "javax.swing.JPopupMenu")) popup=p[i]; +} +return popup; +}, 1); + +Clazz_newMeth(C$, 'nextEnabledChild$javax_swing_MenuElementA$I$I', function (e, fromIndex, toIndex) { +for (var i=fromIndex; i <= toIndex; i++) { +if (e[i] != null ) { +var comp=e[i].getComponent$(); +if (comp != null && (comp.isEnabled$() || $I$(8).getBoolean$O("MenuItem.disabledAreNavigable") ) && comp.isVisible$() ) { +return e[i]; +}}} +return null; +}, 1); + +Clazz_newMeth(C$, 'previousEnabledChild$javax_swing_MenuElementA$I$I', function (e, fromIndex, toIndex) { +for (var i=fromIndex; i >= toIndex; i--) { +if (e[i] != null ) { +var comp=e[i].getComponent$(); +if (comp != null && (comp.isEnabled$() || $I$(8).getBoolean$O("MenuItem.disabledAreNavigable") ) && comp.isVisible$() ) { +return e[i]; +}}} +return null; +}, 1); + +Clazz_newMeth(C$, 'getInputMap$javax_swing_JPopupMenu$javax_swing_JComponent', function (popup, rootPane) { +var windowInputMap=null; +var bindings=$I$(8).get$O("PopupMenu.selectedWindowInputMapBindings"); +if (bindings != null ) { +windowInputMap=$I$(6).makeComponentInputMap$javax_swing_JComponent$OA(rootPane, bindings); +if (!popup.getComponentOrientation$().isLeftToRight$()) { +var km=$I$(8).get$O("PopupMenu.selectedWindowInputMapBindings.RightToLeft"); +if (km != null ) { +var rightToLeftInputMap=$I$(6).makeComponentInputMap$javax_swing_JComponent$OA(rootPane, km); +rightToLeftInputMap.setParent$javax_swing_InputMap(windowInputMap); +windowInputMap=rightToLeftInputMap; +}}}return windowInputMap; +}, 1); + +Clazz_newMeth(C$, 'findEnabledChild$javax_swing_MenuElementA$I$Z', function (e, fromIndex, forward) { +var result; +if (forward) { +result=C$.nextEnabledChild$javax_swing_MenuElementA$I$I(e, fromIndex + 1, e.length - 1); +if (result == null ) result=C$.nextEnabledChild$javax_swing_MenuElementA$I$I(e, 0, fromIndex - 1); +} else { +result=C$.previousEnabledChild$javax_swing_MenuElementA$I$I(e, fromIndex - 1, 0); +if (result == null ) result=C$.previousEnabledChild$javax_swing_MenuElementA$I$I(e, e.length - 1, fromIndex + 1); +}return result; +}, 1); + +Clazz_newMeth(C$, 'findEnabledChild$javax_swing_MenuElementA$javax_swing_MenuElement$Z', function (e, elem, forward) { +for (var i=0; i < e.length; i++) { +if (e[i] === elem ) { +return C$.findEnabledChild$javax_swing_MenuElementA$I$Z(e, i, forward); +}} +return null; +}, 1); + +Clazz_newMeth(C$, 'isJSPopupVisible$', function () { +return this.menu != null && this.menu.haveLoc && $I$(5).getStyle(this.domNode, "display") != "none" ; +}); + +Clazz_newMeth(C$, 'processJ2SMenuCmd$OA', function (data) { +var trigger=data[0]; +var j2smenu=data[1]; +var e=data[2]; +var t=data[3]; +var n=data[4]; +var m=j2smenu.activeMenu; +var mid=(m && m[0] && m[0].id ||null); +var id=(t && t[0] && t[0].id ||null); +var text=(t && t[0] && (t[0]["data-component"] && t[0]["data-component"].text || t[0]["data-ui"] && t[0]["data-ui"].jc.text) ||null); +var menu=null; +var ui; +var mui=(m[0]["data-ui"] ||null); +var debug=false; +switch (trigger) { +case "_openSubmenu": +C$.updateMenuSelection$O$Z(t, true); +break; +case "_closeSubmenus": +C$.updateMenuSelection$O$Z(t, false); +break; +case "onover": +case "onover1": +case "onover2": +case "onover3": +case "_activate": +case "_hide": +case "_move": +case "_show": +case "_startOpening": +case "clearOut": +case "collapse": +case "expand": +case "keyActivate": +case "noclickout": +case "onblur": +case "onclick": +case "onclick_out": +case "onfocus": +case "onleave": +case "blur": +case "onpress": +case "onrelease": +case "refresh": +case "select": +break; +case "focus": +$I$(9).isMenuOpen=true; +break; +case "collapseAll": +C$.closeAllMenus$(); +$I$(9).isMenuOpen=false; +j2smenu.options.jPopupMenu.visible=false; +(j2smenu.options.jPopupMenu.getInvoker$()).getRootPane$().requestFocus$(); +break; +case "_hideAllMenus": +C$.updateMenuSelection$O$Z(t, false); +break; +} +if (debug) System.out.println$S("JSPopupMenuUI processing " + (C$.np++) + " " + trigger + " for " + id + " " + text ); +}, 1); + +Clazz_newMeth(C$, 'updateMenuSelection$O$Z', function (t, isOpen) { +for (var i=t.length ||0; --i >= 0; ) { +var p=t[i]["data-component"] ||null; +if (p.isSelected$() != isOpen ) p.setSelected$Z(isOpen); +} +}, 1); + +Clazz_newMeth(C$, 'isPopupTrigger$java_awt_event_MouseEvent', function (e) { +return e.isPopupTrigger$(); +}); + +Clazz_newMeth(C$, 'closeAllMenus$', function () { +if ($I$(9).isMenuOpen) { +$I$(4).jQuery.$(".ui-j2smenu").hide(); +$I$(4).jQuery.$(".ui-j2smenu-node").removeClass("ui-state-active").removeClass("ui-state-focus"); +}}, 1); +; +(function(){var C$=Clazz_newClass(P$.JSPopupMenuUI, "JSMenuKeyListener", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, null, ['javax.swing.event.MenuKeyListener', 'java.awt.event.KeyListener']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'menuKeyTyped$javax_swing_event_MenuKeyEvent', function (e) { +}); + +Clazz_newMeth(C$, 'menuKeyPressed$javax_swing_event_MenuKeyEvent', function (e) { +var path=e.getPath$(); +var item=(path.length == 0 ? null : path[path.length - 1]); +if (Clazz_instanceOf(item, "javax.swing.JMenu")) { +$I$(1).j2sSwingMenu.getInstance(this.this$0.menu)._keydown(e.bdata.jqevent ||null); +e.consume$(); +} else if (Clazz_instanceOf(item, "javax.swing.JMenuItem")) { +(item).doClick$(); +e.consume$(); +P$.JSComponentUI.hideMenusAndToolTip$(); +}}); + +Clazz_newMeth(C$, 'menuKeyReleased$javax_swing_event_MenuKeyEvent', function (e) { +}); + +Clazz_newMeth(C$, 'keyTyped$java_awt_event_KeyEvent', function (e) { +}); + +Clazz_newMeth(C$, 'keyPressed$java_awt_event_KeyEvent', function (e) { +$I$(2).defaultManager$().processKeyEvent$java_awt_event_KeyEvent(e); +}); + +Clazz_newMeth(C$, 'keyReleased$java_awt_event_KeyEvent', function (e) { +}); + +Clazz_newMeth(C$); +})() +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 13:00:44 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("swingjs.plaf"),I$=[]; +var C$=Clazz_newClass(P$, "JSRadioButtonMenuItemUI", null, 'swingjs.plaf.JSRadioButtonUI'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.superclazz.c$.apply(this, []); +C$.$init$.apply(this); +this.isMenuItem=true; +this.allowPaintedBackground=false; +this.actionItemOffset=-8; +}, 1); + +Clazz_newMeth(C$, 'getPropertyPrefix$', function () { +return "RadioButtonMenuItem"; +}); + +Clazz_newMeth(C$, 'installUI$javax_swing_JComponent', function (jc) { +this.menuItem=jc; +C$.superclazz.prototype.installUI$javax_swing_JComponent.apply(this, [jc]); +}); + +Clazz_newMeth(C$, 'isFocusable$', function () { +return false; +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 13:34:20 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("swingjs.plaf"),I$=[[0,'swingjs.api.js.DOMNode']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "JSRadioButtonUI", null, 'swingjs.plaf.JSButtonUI'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'updateDOMNode$', function () { +var b=this.jc; +var doAll=false; +if (this.domNode == null ) { +doAll=true; +this.buttonNode=P$.JSComponentUI.newDOMObject$S$S$SA("label", this.id + "btn", []); +if (this.isMenuItem) { +this.domNode=this.createItem$S$swingjs_api_js_DOMNode("_item", this.buttonNode); +this.bindJQueryEvents$swingjs_api_js_DOMNode$S$I(this.domNode, "mouseenter", -1); +} else { +this.domNode=P$.JSComponentUI.newDOMObject$S$S$SA("div", this.id + "_dom", []); +this.domNode.appendChild(this.buttonNode); +this.focusNode=this.buttonNode; +}this.iconNode=null; +if (b.getIcon$() == null ) { +this.iconNode=this.actionNode=P$.JSComponentUI.newDOMObject$S$S$SA("input", this.id, ["type", (this.getPropertyPrefix$() == "RadioButton" ? "radio" : "checkbox"), "name", this.id]); +$I$(1).setAttr(this.buttonNode, "htmlFor", this.id); +} else { +if (this.actionNode != null ) $I$(1).dispose(this.actionNode); +}this.enableNodes=Clazz_array($I$(1), -1, [this.actionNode, this.buttonNode, null]); +this.createButton$(); +if (this.isMenuItem) this.setMenuItem$(); +}this.setupButton$javax_swing_JToggleButton$Z(b, doAll); +return this.updateDOMNodeCUI$(); +}); + +Clazz_newMeth(C$, 'getPropertyPrefix$', function () { +return "RadioButton"; +}); + +Clazz_newMeth(C$, 'installUI$javax_swing_JComponent', function (jc) { +this.getPropertyPrefix$(); +C$.superclazz.prototype.installUI$javax_swing_JComponent.apply(this, [jc]); +}); + +Clazz_newMeth(C$, ['handleJSEvent$O$I$O','handleJSEvent$'], function (target, eventType, jQueryEvent) { +this.checkStopPopupMenuTimer$O$I$O(target, eventType, jQueryEvent); +return C$.superclazz.prototype.handleJSEvent$O$I$O.apply(this, [target, eventType, jQueryEvent]); +}); + +Clazz_newMeth(C$, 'setupButton$javax_swing_JToggleButton$Z', function (b, doAll) { +$I$(1).setAttr(this.actionNode, "checked", b.isSelected$() ? "TRUE" : "FALSE"); +this.setCssFont$swingjs_api_js_DOMNode$java_awt_Font(this.textNode, this.c.getFont$()); +this.setIconAndText$S$javax_swing_Icon$I$S("radio", null, this.button.getIconTextGap$(), this.button.getText$()); +this.setAlignments$javax_swing_AbstractButton$Z(b, false); +if (doAll && !this.isMenuItem ) $I$(1).setPositionAbsolute(this.domNode); +}); + +Clazz_newMeth(C$, 'handleDOMEvent$O', function (e) { +(this.c).doClick$I(0); +}); + +Clazz_newMeth(C$, 'getDefaultIconTextGap$', function () { +return 4; +}); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 13:34:20 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("swingjs.plaf"),I$=[]; +var C$=Clazz_newClass(P$, "JSRootPaneUI", null, 'swingjs.plaf.JSLightweightUI'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.resizer=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'setResizer$swingjs_plaf_Resizer', function (resizer) { +this.resizer=resizer; +}); + +Clazz_newMeth(C$, 'c$', function () { +Clazz_super_(C$, this,1); +this.isRootPane=this.isContainer=true; +this.setDoc$(); +}, 1); + +Clazz_newMeth(C$, 'updateDOMNode$', function () { +if (this.domNode == null ) { +this.domNode=P$.JSComponentUI.newDOMObject$S$S$SA("div", this.id, []); +this.addFocusHandler$(); +}this.checkAllowDivOverflow$(); +return this.domNode; +}); + +Clazz_newMeth(C$, 'installUI$javax_swing_JComponent', function (jc) { +}); + +Clazz_newMeth(C$, 'uninstallUI$javax_swing_JComponent', function (jc) { +}); + +Clazz_newMeth(C$, 'getPreferredSize$javax_swing_JComponent', function (jc) { +return null; +}); + +Clazz_newMeth(C$, 'setInnerComponentBounds$I$I', function (width, height) { +var resizer=this.jc.getFrameViewer$().getResizer$(); +if (resizer != null ) resizer.setPosition$I$I(0, 0); +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 13:00:43 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("swingjs.plaf"),I$=[[0,'java.awt.Color','java.awt.Dimension','swingjs.api.js.DOMNode']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "JSScrollBarUI", null, 'swingjs.plaf.JSSliderUI'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.isInvisible=false; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'setScrollPaneUI$swingjs_plaf_JSScrollPaneUI', function (ui) { +this.myScrollPaneUI=ui; +}); + +Clazz_newMeth(C$, 'c$', function () { +C$.superclazz.c$.apply(this, []); +C$.$init$.apply(this); +this.isScrollBar=true; +this.allowPaintedBackground=false; +}, 1); + +Clazz_newMeth(C$, 'updateDOMNode$', function () { +C$.superclazz.prototype.updateDOMNode$.apply(this, []); +if (this.isAWT && !this.jc.isBackgroundSet$() ) { +this.jc.setBackground$java_awt_Color($I$(1).LIGHT_GRAY); +}return this.domNode; +}); + +Clazz_newMeth(C$, ['propertyChange$java_beans_PropertyChangeEvent','propertyChange$'], function (e) { +C$.superclazz.prototype.propertyChange$java_beans_PropertyChangeEvent.apply(this, [e]); +}); + +Clazz_newMeth(C$, ['stateChanged$javax_swing_event_ChangeEvent','stateChanged$'], function (e) { +C$.superclazz.prototype.stateChanged$javax_swing_event_ChangeEvent.apply(this, [e]); +this.setScrollBarExtentAndCSS$(); +}); + +Clazz_newMeth(C$, 'setValue$I', function (val) { +if (!this.isAWT) { +C$.superclazz.prototype.setValue$I.apply(this, [val]); +return; +}var sb=this.jc; +if (val != sb.getValue$()) (this.jc).setValueFromUI$I(val); +}); + +Clazz_newMeth(C$, 'setValueIsAdjusting$Z', function (b) { +if (!this.isAWT) { +C$.superclazz.prototype.setValueIsAdjusting$Z.apply(this, [b]); +return; +}(this.jc).setValueIsAdjustingFromUI$Z(b); +}); + +Clazz_newMeth(C$, 'getPreferredSize$javax_swing_JComponent', function (jc) { +var wh=(this.myScrollPaneUI == null ? 15 : this.myScrollPaneUI.scrollBarUIDisabled ? 0 : 13); +System.out.println$S("JSSCrollbarUI dim " + wh + " " + this.myScrollPaneUI ); +return Clazz_new_($I$(2).c$$I$I,[wh, wh]); +}); + +Clazz_newMeth(C$, 'setVisible$Z', function (b) { +this.isInvisible=(this.myScrollPaneUI != null && this.myScrollPaneUI.scrollBarUIDisabled ); +b&=!this.isInvisible; +$I$(3).setVisible(this.getOuterNode$(), b); +$I$(3).setVisible(this.jqSlider, b); +}); + +Clazz_newMeth(C$, 'setScrollBarExtentAndCSS$', function () { +var left; +var top; +var thickness; +var transform; +var leftt; +var sb=this.jc; +var extent=sb.getVisibleAmount$(); +this.setSliderAttr$S$F("visibleAmount", extent); +var isVertical=(this.orientation == "vertical"); +if (this.myScrollPaneUI == null ) { +var d=(isVertical ? sb.getWidth$() : sb.getHeight$()); +var t=(Math.min(d * 0.8, 12)|0); +left=top="50%"; +thickness=(new Double(Math.floor((t/2|0)) * 2 - 1).toString()) + "px"; +leftt="50%"; +transform="translate(" + (isVertical ? "X" : "Y") + ")" ; +} else { +left="0px"; +leftt="0px"; +top=(this.isAWT ? "4px" : "0px"); +thickness="12px"; +transform=null; +}if (isVertical) { +$I$(3).setStyles(this.sliderTrack, ["transform", transform, "left", left, "width", thickness]); +$I$(3).setStyles(this.sliderHandle, ["border", "none", "left", leftt, "margin-bottom", "0px", "width", thickness]); +} else { +$I$(3).setStyles(this.sliderTrack, ["top", top, "height", thickness]); +$I$(3).setStyles(this.sliderHandle, ["border", "none", "top", leftt, "margin-left", "0px", "height", thickness]); +}}); + +Clazz_newMeth(C$, 'scrollByBlock$I$I', function (direction, val0) { +var sb=this.jc; +var delta=sb.getBlockIncrement$(); +if (delta == -2147483648 && direction > 0 ) return; +delta*=(direction > 0 ? 1 : -1); +this.setValue$I(sb.getValue$() + delta); +}); + +Clazz_newMeth(C$, 'scrollByUnit$I', function (direction) { +var sb=this.jc; +var delta=sb.getUnitIncrement$(); +if (delta == -2147483648 && direction > 0 ) return; +delta*=(direction > 0 ? 1 : -1); +this.setValue$I(sb.getValue$() + delta); +}); + +Clazz_newMeth(C$, 'getUnitIncrement$', function () { +var sb=this.jc; +return sb.getUnitIncrement$(); +}); + +Clazz_newMeth(C$, 'scrollDueToClickInTrack$I$I', function (dir, val) { +this.scrollByBlock$I(dir); +}); + +Clazz_newMeth(C$, 'setOverflow$', function () { +if (this.myScrollPaneUI != null && this.myScrollPaneUI.scrollBarUIDisabled ) $I$(3).setStyles(this.domNode, ["display", "none"]); +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 13:00:49 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("swingjs.plaf"),p$1={},p$2={},p$3={},I$=[[0,'java.awt.Point','swingjs.api.js.DOMNode','java.awt.Dimension',['swingjs.plaf.JSScrollPaneUI','.Actions'],'sun.swing.DefaultLookup','javax.swing.LookAndFeel','javax.swing.UIManager','Boolean','javax.swing.SwingUtilities','swingjs.plaf.LazyActionMap',['swingjs.plaf.JSScrollPaneUI','.Handler'],['java.awt.Component','.BaselineResizeBehavior']]],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "JSScrollPaneUI", function(){ +Clazz_newInstance(this, arguments,0,C$); +}, 'swingjs.plaf.JSLightweightUI', ['java.beans.PropertyChangeListener', 'javax.swing.event.ChangeListener']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.scrolledComponent=null; +this.viewport=null; +this.scrolledUI=null; +this.horizBarUI=null; +this.vertBarUI=null; +this.scrollBarUIDisabled=false; +this.scrollpane=null; +this.vsbChangeListener=null; +this.hsbChangeListener=null; +this.viewportChangeListener=null; +this.spPropertyChangeListener=null; +this.vsbPropertyChangeListener=null; +this.hsbPropertyChangeListener=null; +this.handler=null; +this.setValueCalled=false; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.scrollBarUIDisabled=false; +this.setValueCalled=false; +}, 1); + +Clazz_newMeth(C$, 'updateDOMNode$', function () { +this.isContainer=true; +if (this.domNode == null ) { +this.domNode=P$.JSComponentUI.newDOMObject$S$S$SA("div", this.id, []); +if (this.scrolledComponent != null && this.scrolledComponent.秘isAWT$() ) $I$(2).setStyles(this.domNode, ["border", "solid black 1px", "box-sizing", "border-box"]); +}return this.updateDOMNodeCUI$(); +}); + +Clazz_newMeth(C$, 'jsSetViewPort$', function () { +this.viewport=this.scrollpane.getViewport$(); +var hscrollbar=this.scrollpane.getHorizontalScrollBar$(); +hscrollbar.addChangeListener$javax_swing_event_ChangeListener(this); +hscrollbar.addPropertyChangeListener$java_beans_PropertyChangeListener(this); +var vscrollbar=this.scrollpane.getVerticalScrollBar$(); +vscrollbar.addChangeListener$javax_swing_event_ChangeListener(this); +vscrollbar.addPropertyChangeListener$java_beans_PropertyChangeListener(this); +return p$3.setScrollComponent$javax_swing_JViewport$Z.apply(this, [this.viewport, true]); +}); + +Clazz_newMeth(C$, 'setScrollComponent$javax_swing_JViewport$Z', function (viewport, setSize) { +this.viewport=viewport; +var sc=viewport.getView$(); +if (sc == null || sc.ui == null ) return false; +if (sc !== this.scrolledComponent ) { +this.scrolledComponent=sc; +this.scrolledUI=sc.ui; +this.scrollBarUIDisabled=(Clazz_instanceOf(this.scrolledUI, "swingjs.plaf.JSTextViewUI")); +this.scrolledUI.scrollPaneUI=this; +if (setSize) $I$(2).setSize(this.scrolledUI.domNode, this.c.getWidth$(), this.c.getHeight$()); +}return true; +}, p$3); + +Clazz_newMeth(C$, ['stateChanged$javax_swing_event_ChangeEvent','stateChanged$'], function (e) { +if (this.scrolledComponent == null && !this.jsSetViewPort$() ) return; +if (Clazz_instanceOf(e.getSource$(), "javax.swing.BoundedRangeModel") && p$3.jsModelStateChanged$javax_swing_event_ChangeEvent.apply(this, [e]) ) { +return; +}this.getHandler$().stateChanged$javax_swing_event_ChangeEvent(e); +}); + +Clazz_newMeth(C$, 'getScrollBarPolicyCSS$I', function (policy) { +switch (policy % 10) { +default: +case 0: +return "auto"; +case 1: +return "none"; +case 2: +return "scroll"; +} +}, p$3); + +Clazz_newMeth(C$, 'getPreferredSize$javax_swing_JComponent', function (jc) { +return (this.isAWT && (jc.getWidth$() != 0 || jc.getHeight$() != 0 ) ? Clazz_new_($I$(3).c$$I$I,[jc.getWidth$(), jc.getHeight$()]) : null); +}); + +Clazz_newMeth(C$, 'loadActionMap$swingjs_plaf_LazyActionMap', function (map) { +map.put$javax_swing_Action(Clazz_new_($I$(4).c$$S,["scrollUp"])); +map.put$javax_swing_Action(Clazz_new_($I$(4).c$$S,["scrollDown"])); +map.put$javax_swing_Action(Clazz_new_($I$(4).c$$S,["scrollHome"])); +map.put$javax_swing_Action(Clazz_new_($I$(4).c$$S,["scrollEnd"])); +map.put$javax_swing_Action(Clazz_new_($I$(4).c$$S,["unitScrollUp"])); +map.put$javax_swing_Action(Clazz_new_($I$(4).c$$S,["unitScrollDown"])); +map.put$javax_swing_Action(Clazz_new_($I$(4).c$$S,["scrollLeft"])); +map.put$javax_swing_Action(Clazz_new_($I$(4).c$$S,["scrollRight"])); +map.put$javax_swing_Action(Clazz_new_($I$(4).c$$S,["unitScrollRight"])); +map.put$javax_swing_Action(Clazz_new_($I$(4).c$$S,["unitScrollLeft"])); +}, 1); + +Clazz_newMeth(C$, 'updateScrollBarExtents', function () { +var vp=this.scrollpane.getViewport$(); +if (vp == null ) return; +var vsb=this.scrollpane.getVerticalScrollBar$(); +var hsb=this.scrollpane.getHorizontalScrollBar$(); +if (vsb != null ) { +vsb.setVisibleAmount$I(vp.getHeight$()); +}if (hsb != null ) { +vsb.setVisibleAmount$I(vp.getWidth$()); +}}, p$3); + +Clazz_newMeth(C$, 'getMaximumSize$javax_swing_JComponent', function (jc) { +return Clazz_new_($I$(3).c$$I$I,[32767, 32767]); +}); + +Clazz_newMeth(C$, 'getInputMap$I', function (condition) { +if (condition == 1) { +var keyMap=$I$(5).get$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S(this.scrollpane, this, "ScrollPane.ancestorInputMap"); +var rtlKeyMap; +if (this.scrollpane.getComponentOrientation$().isLeftToRight$() || ((rtlKeyMap=$I$(5).get$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S(this.scrollpane, this, "ScrollPane.ancestorInputMap.RightToLeft")) == null ) ) { +return keyMap; +} else { +rtlKeyMap.setParent$javax_swing_InputMap(keyMap); +return rtlKeyMap; +}}return null; +}); + +Clazz_newMeth(C$, 'installUI$javax_swing_JComponent', function (jc) { +this.scrollpane=jc; +this.installDefaults$javax_swing_JScrollPane(this.scrollpane); +this.installListeners$javax_swing_JScrollPane(this.scrollpane); +this.installKeyboardActions$javax_swing_JScrollPane(this.scrollpane); +}); + +Clazz_newMeth(C$, 'installDefaults$javax_swing_JScrollPane', function (scrollpane) { +$I$(6).installBorder$javax_swing_JComponent$S(scrollpane, "ScrollPane.border"); +$I$(6).installColorsAndFont$javax_swing_JComponent$S$S$S(scrollpane, "ScrollPane.background", "ScrollPane.foreground", "ScrollPane.font"); +var vpBorder=scrollpane.getViewportBorder$(); +if ((vpBorder == null ) || (Clazz_instanceOf(vpBorder, "javax.swing.plaf.UIResource")) ) { +vpBorder=$I$(7).getBorder$O("ScrollPane.viewportBorder"); +scrollpane.setViewportBorder$javax_swing_border_Border(vpBorder); +}$I$(6).installProperty$javax_swing_JComponent$S$O(scrollpane, "opaque", $I$(8).TRUE); +}); + +Clazz_newMeth(C$, 'installListeners$javax_swing_JScrollPane', function (c) { +this.vsbChangeListener=this.createVSBChangeListener$(); +this.vsbPropertyChangeListener=p$3.createVSBPropertyChangeListener.apply(this, []); +this.hsbChangeListener=this.createHSBChangeListener$(); +this.hsbPropertyChangeListener=p$3.createHSBPropertyChangeListener.apply(this, []); +this.viewportChangeListener=this.createViewportChangeListener$(); +this.spPropertyChangeListener=this.createPropertyChangeListener$(); +var viewport=this.scrollpane.getViewport$(); +var vsb=this.scrollpane.getVerticalScrollBar$(); +var hsb=this.scrollpane.getHorizontalScrollBar$(); +if (viewport != null ) { +viewport.addChangeListener$javax_swing_event_ChangeListener(this.viewportChangeListener); +viewport.addPropertyChangeListener$java_beans_PropertyChangeListener(this); +}this.horizBarUI=this.vertBarUI=null; +p$3.updateScrollBar$javax_swing_JScrollBar$javax_swing_JScrollBar$javax_swing_event_ChangeListener$java_beans_PropertyChangeListener$Z.apply(this, [null, vsb, this.vsbChangeListener, this.vsbPropertyChangeListener, true]); +p$3.updateScrollBar$javax_swing_JScrollBar$javax_swing_JScrollBar$javax_swing_event_ChangeListener$java_beans_PropertyChangeListener$Z.apply(this, [null, hsb, this.hsbChangeListener, this.hsbPropertyChangeListener, false]); +this.scrollpane.addPropertyChangeListener$java_beans_PropertyChangeListener(this.spPropertyChangeListener); +}); + +Clazz_newMeth(C$, 'updateScrollBar$javax_swing_JScrollBar$javax_swing_JScrollBar$javax_swing_event_ChangeListener$java_beans_PropertyChangeListener$Z', function (sbOld, sbNew, cl, pcl, isVertical) { +if (sbOld != null ) { +if (isVertical) { +this.vertBarUI=null; +(sbOld.getUI$()).setScrollPaneUI$swingjs_plaf_JSScrollPaneUI(null); +} else { +this.horizBarUI=null; +(sbOld.getUI$()).setScrollPaneUI$swingjs_plaf_JSScrollPaneUI(null); +}if (cl != null ) { +sbOld.getModel$().removeChangeListener$javax_swing_event_ChangeListener(cl); +}if (pcl != null ) { +sbOld.removePropertyChangeListener$java_beans_PropertyChangeListener(pcl); +}}if (sbNew != null ) { +if (isVertical) { +this.vertBarUI=sbNew.getUI$(); +this.vertBarUI.setScrollPaneUI$swingjs_plaf_JSScrollPaneUI(this); +} else { +this.horizBarUI=sbNew.getUI$(); +this.horizBarUI.setScrollPaneUI$swingjs_plaf_JSScrollPaneUI(this); +}if (cl != null ) { +sbNew.getModel$().addChangeListener$javax_swing_event_ChangeListener(cl); +}if (pcl != null ) { +sbNew.addPropertyChangeListener$java_beans_PropertyChangeListener(pcl); +}}}, p$3); + +Clazz_newMeth(C$, 'installKeyboardActions$javax_swing_JScrollPane', function (c) { +var inputMap=this.getInputMap$I(1); +$I$(9).replaceUIInputMap$javax_swing_JComponent$I$javax_swing_InputMap(c, 1, inputMap); +$I$(10).installLazyActionMap$javax_swing_JComponent$Class$S(c, Clazz_getClass(C$), "ScrollPane.actionMap"); +}); + +Clazz_newMeth(C$, 'uninstallUI$javax_swing_JComponent', function (jc) { +this.uninstallDefaults$javax_swing_JScrollPane(this.scrollpane); +this.uninstallListeners$javax_swing_JComponent(this.scrollpane); +this.uninstallKeyboardActions$javax_swing_JScrollPane(this.scrollpane); +this.scrollpane=null; +}); + +Clazz_newMeth(C$, 'uninstallDefaults$javax_swing_JScrollPane', function (c) { +$I$(6).uninstallBorder$javax_swing_JComponent(this.scrollpane); +if (Clazz_instanceOf(this.scrollpane.getViewportBorder$(), "javax.swing.plaf.UIResource")) { +this.scrollpane.setViewportBorder$javax_swing_border_Border(null); +}}); + +Clazz_newMeth(C$, 'uninstallListeners$javax_swing_JComponent', function (c) { +var viewport=this.scrollpane.getViewport$(); +var vsb=this.scrollpane.getVerticalScrollBar$(); +var hsb=this.scrollpane.getHorizontalScrollBar$(); +if (viewport != null ) { +viewport.removeChangeListener$javax_swing_event_ChangeListener(this.viewportChangeListener); +}if (vsb != null ) { +vsb.getModel$().removeChangeListener$javax_swing_event_ChangeListener(this.vsbChangeListener); +vsb.removePropertyChangeListener$java_beans_PropertyChangeListener(this.vsbPropertyChangeListener); +}if (hsb != null ) { +hsb.getModel$().removeChangeListener$javax_swing_event_ChangeListener(this.hsbChangeListener); +hsb.removePropertyChangeListener$java_beans_PropertyChangeListener(this.hsbPropertyChangeListener); +}this.scrollpane.removePropertyChangeListener$java_beans_PropertyChangeListener(this.spPropertyChangeListener); +this.vsbChangeListener=null; +this.hsbChangeListener=null; +this.viewportChangeListener=null; +this.spPropertyChangeListener=null; +this.handler=null; +}); + +Clazz_newMeth(C$, 'uninstallKeyboardActions$javax_swing_JScrollPane', function (c) { +$I$(9).replaceUIActionMap$javax_swing_JComponent$javax_swing_ActionMap(c, null); +$I$(9).replaceUIInputMap$javax_swing_JComponent$I$javax_swing_InputMap(c, 1, null); +}); + +Clazz_newMeth(C$, 'getHandler$', function () { +if (this.handler == null ) { +this.handler=Clazz_new_($I$(11), [this, null]); +}return this.handler; +}); + +Clazz_newMeth(C$, 'syncScrollPaneWithViewport$', function () { +var viewport=this.scrollpane.getViewport$(); +var vsb=this.scrollpane.getVerticalScrollBar$(); +var hsb=this.scrollpane.getHorizontalScrollBar$(); +var rowHead=this.scrollpane.getRowHeader$(); +var colHead=this.scrollpane.getColumnHeader$(); +var ltr=this.scrollpane.getComponentOrientation$().isLeftToRight$(); +if (viewport != null ) { +var extentSize=viewport.getExtentSize$(); +var viewSize=viewport.getViewSize$(); +var viewPosition=viewport.getViewPosition$(); +if (vsb != null ) { +var extent=extentSize.height; +var max=viewSize.height; +var value=Math.max(0, Math.min(viewPosition.y, max - extent)); +vsb.setValues$I$I$I$I(value, extent, 0, max); +}if (hsb != null ) { +var extent=extentSize.width; +var max=viewSize.width; +var value; +if (ltr) { +value=Math.max(0, Math.min(viewPosition.x, max - extent)); +} else { +var currentValue=hsb.getValue$(); +if (this.setValueCalled && ((max - currentValue) == viewPosition.x) ) { +value=Math.max(0, Math.min(max - extent, currentValue)); +if (extent != 0) { +this.setValueCalled=false; +}} else { +if (extent > max) { +viewPosition.x=max - extent; +viewport.setViewPosition$java_awt_Point(viewPosition); +value=0; +} else { +value=Math.max(0, Math.min(max - extent, max - extent - viewPosition.x )); +}}}hsb.setValues$I$I$I$I(value, extent, 0, max); +}if (rowHead != null ) { +var p=rowHead.getViewPosition$(); +p.y=viewport.getViewPosition$().y; +p.x=0; +rowHead.setViewPosition$java_awt_Point(p); +}if (colHead != null ) { +var p=colHead.getViewPosition$(); +if (ltr) { +p.x=viewport.getViewPosition$().x; +} else { +p.x=Math.max(0, viewport.getViewPosition$().x); +}p.y=0; +colHead.setViewPosition$java_awt_Point(p); +}}}); + +Clazz_newMeth(C$, 'getBaseline$javax_swing_JComponent$I$I', function (c, width, height) { +var viewport=this.scrollpane.getViewport$(); +var spInsets=this.scrollpane.getInsets$(); +var y=spInsets.top; +height=height - spInsets.top - spInsets.bottom ; +width=width - spInsets.left - spInsets.right ; +var columnHeader=this.scrollpane.getColumnHeader$(); +if (columnHeader != null && columnHeader.isVisible$() ) { +var header=columnHeader.getView$(); +if (header != null && header.isVisible$() ) { +var headerPref=header.getPreferredSize$(); +var baseline=header.getBaseline$I$I(headerPref.width, headerPref.height); +if (baseline >= 0) { +return y + baseline; +}}var columnPref=columnHeader.getPreferredSize$(); +height-=columnPref.height; +y+=columnPref.height; +}var view=(viewport == null ) ? null : viewport.getView$(); +if (view != null && view.isVisible$() && view.getBaselineResizeBehavior$() === $I$(12).CONSTANT_ASCENT ) { +var viewportBorder=this.scrollpane.getViewportBorder$(); +if (viewportBorder != null ) { +var vpbInsets=viewportBorder.getBorderInsets$java_awt_Component(this.scrollpane); +y+=vpbInsets.top; +height=height - vpbInsets.top - vpbInsets.bottom ; +width=width - vpbInsets.left - vpbInsets.right ; +}if (view.getWidth$() > 0 && view.getHeight$() > 0 ) { +var min=view.getMinimumSize$(); +width=Math.max(min.width, view.getWidth$()); +height=Math.max(min.height, view.getHeight$()); +}if (width > 0 && height > 0 ) { +var baseline=view.getBaseline$I$I(width, height); +if (baseline > 0) { +return y + baseline; +}}}return -1; +}); + +Clazz_newMeth(C$, 'getInsets$', function () { +var b=this.scrollpane.getBorder$(); +if (b == null ) return null; +var i=b.getBorderInsets$java_awt_Component(this.scrollpane); +if (false && !this.layingOut ) { +i.right+=this.scrollpane.getVerticalScrollBar$().isVisible$() ? 12 : 0; +i.bottom+=this.scrollpane.getHorizontalScrollBar$().isVisible$() ? 12 : 0; +}return i; +}); + +Clazz_newMeth(C$, 'getBaselineResizeBehavior$javax_swing_JComponent', function (c) { +C$.superclazz.prototype.getBaselineResizeBehavior$javax_swing_JComponent.apply(this, [c]); +return $I$(12).CONSTANT_ASCENT; +}); + +Clazz_newMeth(C$, 'createViewportChangeListener$', function () { +return this.getHandler$(); +}); + +Clazz_newMeth(C$, 'createHSBPropertyChangeListener', function () { +return this.getHandler$(); +}, p$3); + +Clazz_newMeth(C$, 'createHSBChangeListener$', function () { +return this.getHandler$(); +}); + +Clazz_newMeth(C$, 'createVSBPropertyChangeListener', function () { +return this.getHandler$(); +}, p$3); + +Clazz_newMeth(C$, 'createVSBChangeListener$', function () { +return this.getHandler$(); +}); + +Clazz_newMeth(C$, 'updateScrollBarDisplayPolicy$java_beans_PropertyChangeEvent', function (e) { +this.scrollpane.revalidate$(); +this.scrollpane.秘repaint$(); +}); + +Clazz_newMeth(C$, 'updateViewport$java_beans_PropertyChangeEvent', function (e) { +var oldViewport=(e.getOldValue$()); +var newViewport=(e.getNewValue$()); +if (oldViewport != null ) { +oldViewport.removeChangeListener$javax_swing_event_ChangeListener(this.viewportChangeListener); +}if (newViewport != null ) { +var p=newViewport.getViewPosition$(); +if (this.scrollpane.getComponentOrientation$().isLeftToRight$()) { +p.x=Math.max(p.x, 0); +} else { +var max=newViewport.getViewSize$().width; +var extent=newViewport.getExtentSize$().width; +if (extent > max) { +p.x=max - extent; +} else { +p.x=Math.max(0, Math.min(max - extent, p.x)); +}}p.y=Math.max(p.y, 0); +newViewport.setViewPosition$java_awt_Point(p); +newViewport.addChangeListener$javax_swing_event_ChangeListener(this.viewportChangeListener); +}}); + +Clazz_newMeth(C$, 'updateRowHeader$java_beans_PropertyChangeEvent', function (e) { +var newRowHead=(e.getNewValue$()); +if (newRowHead != null ) { +var viewport=this.scrollpane.getViewport$(); +var p=newRowHead.getViewPosition$(); +p.y=(viewport != null ) ? viewport.getViewPosition$().y : 0; +newRowHead.setViewPosition$java_awt_Point(p); +}}); + +Clazz_newMeth(C$, 'updateColumnHeader$java_beans_PropertyChangeEvent', function (e) { +var newColHead=(e.getNewValue$()); +if (newColHead != null ) { +var viewport=this.scrollpane.getViewport$(); +var p=newColHead.getViewPosition$(); +if (viewport == null ) { +p.x=0; +} else { +if (this.scrollpane.getComponentOrientation$().isLeftToRight$()) { +p.x=viewport.getViewPosition$().x; +} else { +p.x=Math.max(0, viewport.getViewPosition$().x); +}}newColHead.setViewPosition$java_awt_Point(p); +this.scrollpane.add$java_awt_Component$O(newColHead, "COLUMN_HEADER"); +}}); + +Clazz_newMeth(C$, 'createPropertyChangeListener$', function () { +return this.getHandler$(); +}); + +Clazz_newMeth(C$, 'jsModelStateChanged$javax_swing_event_ChangeEvent', function (e) { +if (this.scrollBarUIDisabled) { +p$3.jsScrollComponentUsingCSS$Z.apply(this, [e.getSource$() === this.viewport ]); +return true; +}return false; +}, p$3); + +Clazz_newMeth(C$, 'jsScrollComponentUsingCSS$Z', function (isViewportChange) { +var r1=this.viewport.getBounds$(); +var r2=this.scrolledComponent.getBounds$(); +if (!r1.equals$O(r2) && !isViewportChange ) this.scrolledComponent.setBounds$java_awt_Rectangle(r1); +$I$(2).setStyles(this.scrolledUI.domNode, ["overflow-x", p$3.getScrollBarPolicyCSS$I.apply(this, [this.scrollpane.getHorizontalScrollBarPolicy$()]), "overflow-y", p$3.getScrollBarPolicyCSS$I.apply(this, [this.scrollpane.getVerticalScrollBarPolicy$()])]); +if (this.horizBarUI != null ) $I$(2).setVisible(this.horizBarUI.jqSlider, false); +if (this.vertBarUI != null ) $I$(2).setVisible(this.vertBarUI.jqSlider, false); +}, p$3); + +Clazz_newMeth(C$, 'notifyTableScrolling$', function () { +if (this.scrolledComponent != null && this.scrolledComponent.getUIClassID$() == "TableUI" ) { +(this.scrolledComponent.ui).setScrolling$(); +}}); + +Clazz_newMeth(C$, 'paint$java_awt_Graphics$javax_swing_JComponent', function (g, c) { +C$.superclazz.prototype.paint$java_awt_Graphics$javax_swing_JComponent.apply(this, [g, c]); +p$3.updateScrollBarExtents.apply(this, []); +}); +; +(function(){var C$=Clazz_newClass(P$.JSScrollPaneUI, "ViewportChangeHandler", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, null, 'javax.swing.event.ChangeListener'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, ['stateChanged$javax_swing_event_ChangeEvent','stateChanged$'], function (e) { +this.this$0.getHandler$.apply(this.this$0, []).stateChanged$javax_swing_event_ChangeEvent(e); +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.JSScrollPaneUI, "HSBChangeListener", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, null, 'javax.swing.event.ChangeListener'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, ['stateChanged$javax_swing_event_ChangeEvent','stateChanged$'], function (e) { +this.this$0.getHandler$.apply(this.this$0, []).stateChanged$javax_swing_event_ChangeEvent(e); +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.JSScrollPaneUI, "VSBChangeListener", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, null, 'javax.swing.event.ChangeListener'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, ['stateChanged$javax_swing_event_ChangeEvent','stateChanged$'], function (e) { +this.this$0.getHandler$.apply(this.this$0, []).stateChanged$javax_swing_event_ChangeEvent(e); +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.JSScrollPaneUI, "PropertyChangeHandler", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, null, 'java.beans.PropertyChangeListener'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, ['propertyChange$java_beans_PropertyChangeEvent','propertyChange$'], function (e) { +this.this$0.getHandler$.apply(this.this$0, []).propertyChange$java_beans_PropertyChangeEvent(e); +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.JSScrollPaneUI, "Actions", function(){ +Clazz_newInstance(this, arguments[0],false,C$); +}, 'sun.swing.UIAction'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$S', function (key) { +C$.superclazz.c$$S.apply(this, [key]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) { +var scrollpane=e.getSource$(); +var ltr=scrollpane.getComponentOrientation$().isLeftToRight$(); +var key=this.getName$(); +if (key == "scrollUp") { +p$1.scroll$javax_swing_JScrollPane$I$I$Z.apply(this, [scrollpane, 1, -1, true]); +} else if (key == "scrollDown") { +p$1.scroll$javax_swing_JScrollPane$I$I$Z.apply(this, [scrollpane, 1, 1, true]); +} else if (key == "scrollHome") { +p$1.scrollHome$javax_swing_JScrollPane.apply(this, [scrollpane]); +} else if (key == "scrollEnd") { +p$1.scrollEnd$javax_swing_JScrollPane.apply(this, [scrollpane]); +} else if (key == "unitScrollUp") { +p$1.scroll$javax_swing_JScrollPane$I$I$Z.apply(this, [scrollpane, 1, -1, false]); +} else if (key == "unitScrollDown") { +p$1.scroll$javax_swing_JScrollPane$I$I$Z.apply(this, [scrollpane, 1, 1, false]); +} else if (key == "scrollLeft") { +p$1.scroll$javax_swing_JScrollPane$I$I$Z.apply(this, [scrollpane, 0, ltr ? -1 : 1, true]); +} else if (key == "scrollRight") { +p$1.scroll$javax_swing_JScrollPane$I$I$Z.apply(this, [scrollpane, 0, ltr ? 1 : -1, true]); +} else if (key == "unitScrollLeft") { +p$1.scroll$javax_swing_JScrollPane$I$I$Z.apply(this, [scrollpane, 0, ltr ? -1 : 1, false]); +} else if (key == "unitScrollRight") { +p$1.scroll$javax_swing_JScrollPane$I$I$Z.apply(this, [scrollpane, 0, ltr ? 1 : -1, false]); +}}); + +Clazz_newMeth(C$, 'scrollEnd$javax_swing_JScrollPane', function (scrollpane) { +var vp=scrollpane.getViewport$(); +var view; +if (vp != null && (view=vp.getView$()) != null ) { +var visRect=vp.getViewRect$(); +var bounds=view.getBounds$(); +if (scrollpane.getComponentOrientation$().isLeftToRight$()) { +vp.setViewPosition$java_awt_Point(Clazz_new_($I$(1).c$$I$I,[bounds.width - visRect.width, bounds.height - visRect.height])); +} else { +vp.setViewPosition$java_awt_Point(Clazz_new_($I$(1).c$$I$I,[0, bounds.height - visRect.height])); +}}}, p$1); + +Clazz_newMeth(C$, 'scrollHome$javax_swing_JScrollPane', function (scrollpane) { +var vp=scrollpane.getViewport$(); +var view; +if (vp != null && (view=vp.getView$()) != null ) { +if (scrollpane.getComponentOrientation$().isLeftToRight$()) { +vp.setViewPosition$java_awt_Point(Clazz_new_($I$(1).c$$I$I,[0, 0])); +} else { +var visRect=vp.getViewRect$(); +var bounds=view.getBounds$(); +vp.setViewPosition$java_awt_Point(Clazz_new_($I$(1).c$$I$I,[bounds.width - visRect.width, 0])); +}}}, p$1); + +Clazz_newMeth(C$, 'scroll$javax_swing_JScrollPane$I$I$Z', function (scrollpane, orientation, direction, block) { +var vp=scrollpane.getViewport$(); +var view; +if (vp != null && (view=vp.getView$()) != null ) { +var visRect=vp.getViewRect$(); +var vSize=view.getSize$(); +var amount; +if (Clazz_instanceOf(view, "javax.swing.Scrollable")) { +if (block) { +amount=(view).getScrollableBlockIncrement$java_awt_Rectangle$I$I(visRect, orientation, direction); +} else { +amount=(view).getScrollableUnitIncrement$java_awt_Rectangle$I$I(visRect, orientation, direction); +}} else { +if (block) { +if (orientation == 1) { +amount=visRect.height; +} else { +amount=visRect.width; +}} else { +amount=10; +}}if (orientation == 1) { +visRect.y+=(amount * direction); +if ((visRect.y + visRect.height) > vSize.height) { +visRect.y=Math.max(0, vSize.height - visRect.height); +} else if (visRect.y < 0) { +visRect.y=0; +}} else { +if (scrollpane.getComponentOrientation$().isLeftToRight$()) { +visRect.x+=(amount * direction); +if ((visRect.x + visRect.width) > vSize.width) { +visRect.x=Math.max(0, vSize.width - visRect.width); +} else if (visRect.x < 0) { +visRect.x=0; +}} else { +visRect.x-=(amount * direction); +if (visRect.width > vSize.width) { +visRect.x=vSize.width - visRect.width; +} else { +visRect.x=Math.max(0, Math.min(vSize.width - visRect.width, visRect.x)); +}}}vp.setViewPosition$java_awt_Point(visRect.getLocation$()); +}}, p$1); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.JSScrollPaneUI, "Handler", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, null, ['javax.swing.event.ChangeListener', 'java.beans.PropertyChangeListener']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, ['stateChanged$javax_swing_event_ChangeEvent','stateChanged$'], function (e) { +var viewport=this.this$0.scrollpane.getViewport$(); +if (viewport != null ) { +if (e.getSource$() === viewport ) { +p$2.viewportStateChanged$javax_swing_event_ChangeEvent.apply(this, [e]); +} else { +var hsb=this.this$0.scrollpane.getHorizontalScrollBar$(); +if (hsb != null && e.getSource$() === hsb.getModel$() ) { +p$2.hsbStateChanged$javax_swing_JViewport$javax_swing_event_ChangeEvent.apply(this, [viewport, e]); +} else { +var vsb=this.this$0.scrollpane.getVerticalScrollBar$(); +if (vsb != null && e.getSource$() === vsb.getModel$() ) { +p$2.vsbStateChanged$javax_swing_JViewport$javax_swing_event_ChangeEvent.apply(this, [viewport, e]); +}}}}}); + +Clazz_newMeth(C$, 'vsbStateChanged$javax_swing_JViewport$javax_swing_event_ChangeEvent', function (viewport, e) { +var model=(e.getSource$()); +var p=viewport.getViewPosition$(); +p.y=model.getValue$(); +p$3.setScrollComponent$javax_swing_JViewport$Z.apply(this.this$0, [viewport, false]); +this.this$0.notifyTableScrolling$.apply(this.this$0, []); +viewport.setViewPosition$java_awt_Point(p); +this.this$0.scrollpane.getVerticalScrollBar$().setVisibleAmount$I(viewport.getHeight$()); +}, p$2); + +Clazz_newMeth(C$, 'hsbStateChanged$javax_swing_JViewport$javax_swing_event_ChangeEvent', function (viewport, e) { +var model=(e.getSource$()); +var p=viewport.getViewPosition$(); +p$3.setScrollComponent$javax_swing_JViewport$Z.apply(this.this$0, [viewport, false]); +this.this$0.notifyTableScrolling$.apply(this.this$0, []); +var value=model.getValue$(); +if (this.this$0.scrollpane.getComponentOrientation$().isLeftToRight$()) { +p.x=value; +} else { +var max=viewport.getViewSize$().width; +var extent=viewport.getExtentSize$().width; +var oldX=p.x; +p.x=max - extent - value ; +if ((extent == 0) && (value != 0) && (oldX == max) ) { +this.this$0.setValueCalled=true; +} else { +if ((extent != 0) && (oldX < 0) && (p.x == 0) ) { +p.x+=value; +}}}viewport.setViewPosition$java_awt_Point(p); +this.this$0.scrollpane.getHorizontalScrollBar$().setVisibleAmount$I(viewport.getWidth$()); +}, p$2); + +Clazz_newMeth(C$, 'viewportStateChanged$javax_swing_event_ChangeEvent', function (e) { +this.this$0.syncScrollPaneWithViewport$.apply(this.this$0, []); +if (!(Clazz_instanceOf(this.this$0.scrollpane.getViewport$().getView$(), "javax.swing.JTable")) && this.this$0.jc.秘selfOrChildIsPainted$() ) this.this$0.jc.秘repaint$(); +}, p$2); + +Clazz_newMeth(C$, ['propertyChange$java_beans_PropertyChangeEvent','propertyChange$'], function (e) { +if (e.getSource$() === this.this$0.scrollpane ) { +p$2.scrollPanePropertyChange$java_beans_PropertyChangeEvent.apply(this, [e]); +} else { +p$2.sbPropertyChange$java_beans_PropertyChangeEvent.apply(this, [e]); +}}); + +Clazz_newMeth(C$, 'scrollPanePropertyChange$java_beans_PropertyChangeEvent', function (e) { +var propertyName=e.getPropertyName$(); +switch (propertyName) { +case "verticalScrollBarDisplayPolicy": +this.this$0.updateScrollBarDisplayPolicy$java_beans_PropertyChangeEvent.apply(this.this$0, [e]); +break; +case "horizontalScrollBarDisplayPolicy": +this.this$0.updateScrollBarDisplayPolicy$java_beans_PropertyChangeEvent.apply(this.this$0, [e]); +break; +case "viewport": +this.this$0.updateViewport$java_beans_PropertyChangeEvent.apply(this.this$0, [e]); +break; +case "rowHeader": +this.this$0.updateRowHeader$java_beans_PropertyChangeEvent.apply(this.this$0, [e]); +break; +case "columnHeader": +this.this$0.updateColumnHeader$java_beans_PropertyChangeEvent.apply(this.this$0, [e]); +break; +case "verticalScrollBar": +this.updateVerticalScrollBar$java_beans_PropertyChangeEvent(e); +break; +case "horizontalScrollBar": +this.updateHorizontalScrollBar$java_beans_PropertyChangeEvent(e); +break; +case "componentOrientation": +this.this$0.scrollpane.revalidate$(); +this.this$0.scrollpane.秘repaint$(); +break; +} +}, p$2); + +Clazz_newMeth(C$, 'updateHorizontalScrollBar$java_beans_PropertyChangeEvent', function (pce) { +p$3.updateScrollBar$javax_swing_JScrollBar$javax_swing_JScrollBar$javax_swing_event_ChangeListener$java_beans_PropertyChangeListener$Z.apply(this.this$0, [pce.getOldValue$(), pce.getNewValue$(), this.this$0.hsbChangeListener, this.this$0.hsbPropertyChangeListener, false]); +}); + +Clazz_newMeth(C$, 'updateVerticalScrollBar$java_beans_PropertyChangeEvent', function (pce) { +p$3.updateScrollBar$javax_swing_JScrollBar$javax_swing_JScrollBar$javax_swing_event_ChangeListener$java_beans_PropertyChangeListener$Z.apply(this.this$0, [pce.getOldValue$(), pce.getNewValue$(), this.this$0.vsbChangeListener, this.this$0.vsbPropertyChangeListener, true]); +}); + +Clazz_newMeth(C$, 'sbPropertyChange$java_beans_PropertyChangeEvent', function (e) { +var propertyName=e.getPropertyName$(); +var source=e.getSource$(); +switch (propertyName) { +case "model": +var sb=this.this$0.scrollpane.getVerticalScrollBar$(); +var oldModel=e.getOldValue$(); +var cl=null; +if (source === sb ) { +cl=this.this$0.vsbChangeListener; +} else if (source === this.this$0.scrollpane.getHorizontalScrollBar$() ) { +sb=this.this$0.scrollpane.getHorizontalScrollBar$(); +cl=this.this$0.hsbChangeListener; +}if (cl != null ) { +if (oldModel != null ) { +oldModel.removeChangeListener$javax_swing_event_ChangeListener(cl); +}if (sb.getModel$() != null ) { +sb.getModel$().addChangeListener$javax_swing_event_ChangeListener(cl); +}}break; +case "componentOrientation": +if (source === this.this$0.scrollpane.getHorizontalScrollBar$() ) { +var hsb=this.this$0.scrollpane.getHorizontalScrollBar$(); +var viewport=this.this$0.scrollpane.getViewport$(); +var p=viewport.getViewPosition$(); +if (this.this$0.scrollpane.getComponentOrientation$().isLeftToRight$()) { +p.x=hsb.getValue$(); +} else { +p.x=viewport.getViewSize$().width - viewport.getExtentSize$().width - hsb.getValue$() ; +}viewport.setViewPosition$java_awt_Point(p); +}break; +} +}, p$2); + +Clazz_newMeth(C$); +})() + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 13:00:43 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("swingjs.plaf"),I$=[]; +var C$=Clazz_newClass(P$, "JSSeparatorUI", null, 'swingjs.plaf.JSLightweightUI'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'updateDOMNode$', function () { +if (this.domNode == null ) { +this.domNode=P$.JSComponentUI.newDOMObject$S$S$SA("label", this.id, []); +}return this.domNode; +}); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 13:00:35 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("swingjs.plaf"),p$1={},I$=[[0,'swingjs.jquery.JQueryUI','swingjs.JSUtil','swingjs.api.js.DOMNode','swingjs.plaf.JSComponentUI','java.awt.Color','swingjs.JSToolkit','javax.swing.LookAndFeel','java.awt.Dimension','sun.swing.DefaultLookup']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "JSSliderUI", null, 'swingjs.plaf.JSLightweightUI', ['java.beans.PropertyChangeListener', 'javax.swing.event.ChangeListener']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +{ +var jqueryui=Clazz_getClass($I$(1)); +$I$(2).loadStaticResource$S("swingjs/jquery/jquery-ui-j2sslider.css"); +$I$(2).loadStaticResource$S("swingjs/jquery/jquery-ui-j2sslider.js"); +}; +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.slider=null; +this.min=0; +this.max=0; +this.val=0; +this.majorSpacing=0; +this.minorSpacing=0; +this.paintTicks=false; +this.paintLabels=false; +this.snapToTicks=false; +this.labelTable=null; +this.orientation=null; +this.jqSlider=null; +this.z0=0; +this.model=null; +this.paintTrack=false; +this.myScrollPaneUI=null; +this.isScrollBar=false; +this.jScrollBar=null; +this.sliderTrack=null; +this.sliderHandle=null; +this.disabled=0; +this.myHeight=0; +this.isHoriz=false; +this.isVerticalScrollBar=false; +this.isInverted=false; +this.ticks=null; +this.noSnapping=false; +this.foreColor=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.z0=-2147483648; +this.paintTrack=true; +this.foreColor=null; +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +Clazz_super_(C$, this,1); +this.needPreferred=true; +this.setDoc$(); +}, 1); + +Clazz_newMeth(C$, 'updateDOMNode$', function () { +p$1.setSliderFields.apply(this, []); +this.min=this.slider.getMinimum$(); +this.max=this.slider.getMaximum$(); +this.val=this.slider.getValue$(); +if (!this.isScrollBar) { +this.minorSpacing=this.slider.getMinorTickSpacing$(); +this.majorSpacing=this.slider.getMajorTickSpacing$(); +this.paintTicks=this.slider.getPaintTicks$(); +this.paintLabels=this.slider.getPaintLabels$(); +this.paintTrack=this.slider.getPaintTrack$(); +this.snapToTicks=this.slider.getSnapToTicks$(); +}this.orientation=(this.slider.getOrientation$() == 1 ? "vertical" : "horizontal"); +this.model=this.slider.getModel$(); +var isHoriz=(this.slider.getOrientation$() == 0); +var isVerticalScrollBar=(this.isScrollBar && !isHoriz ); +var isInverted=isVerticalScrollBar || !this.isScrollBar && this.slider.getInverted$() ; +var isChanged=false; +if (isHoriz != this.isHoriz || isVerticalScrollBar != this.isVerticalScrollBar || isInverted != this.isInverted ) { +this.isHoriz=isHoriz; +this.isVerticalScrollBar=isVerticalScrollBar; +this.isInverted=isInverted; +isChanged=true; +}var isNew=(this.domNode == null ); +if (isNew) { +this.domNode=P$.JSComponentUI.wrap$S$S$swingjs_api_js_DOMNodeA("div", this.id + "_wrap", [this.jqSlider=$I$(3).createElement("div", this.id)]); +this.$$O(this.domNode).addClass("swingjs"); +this.$$O(this.domNode).addClass("ui-j2sslider-wrap"); +p$1.setJQuerySliderAndEvents.apply(this, []); +this.setTainted$(); +} else if (isChanged) { +p$1.disposeSlider.apply(this, []); +this.domNode.appendChild(this.jqSlider=$I$(3).createElement("div", this.id + (++$I$(4).incr))); +p$1.setJQuerySliderAndEvents.apply(this, []); +this.setTainted$(); +this.setInnerComponentBounds$I$I(this.jc.getWidth$(), this.jc.getHeight$()); +}p$1.setup$Z.apply(this, [isNew || isChanged ]); +this.setSlider$(); +this.setBackground$java_awt_Color(this.getBackground$()); +this.setForeground$java_awt_Color(this.getForeground$()); +return this.updateDOMNodeCUI$(); +}); + +Clazz_newMeth(C$, 'setForeground$java_awt_Color', function (c) { +if (!this.paintTicks && !this.paintLabels ) return; +if (this.awtPeerFG != null && !this.awtPeerFG.equals$O(c) ) this.awtPeerFG=null; +if (c == null || Clazz_instanceOf(c, "javax.swing.plaf.UIResource") ) c=$I$(5).black; +var s=$I$(6).getCSSColor$java_awt_Color(c); +if (this.foreColor == s) return; +this.foreColor=s; +if (this.paintTicks) { +$I$(3).setStyles(this.jqSlider, ["background-color", s]); +var tickClass="ui-j2sslider-tick-mark-" + (this.isHoriz ? "vert" : "horiz"); +this.$$O(this.domNode).find("." + tickClass).css(1?{backgroundColor:s} :"", ""); +}if (this.paintLabels) { +this.$$O(this.domNode).find("SPAN").css("color", s); +}}); + +Clazz_newMeth(C$, 'setBackground$java_awt_Color', function (c) { +if (this.awtPeerBG != null && !this.awtPeerBG.equals$O(c) ) this.awtPeerBG=null; +if (this.isScrollBar ? c != null : this.jc.isOpaque$()) { +if (this.paintTicks) { +} else { +var node=(this.myScrollPaneUI == null && !this.paintTicks ? this.jqSlider : this.sliderTrack); +$I$(3).setStyles(node, ["background-color", $I$(6).getCSSColor$java_awt_Color(c)]); +if (this.isScrollBar && $I$(5).WHITE.equals$O(c) ) $I$(3).setStyles(this.sliderHandle, ["background", "#ccc"]); +}}if (!this.isScrollBar) this.setBackgroundDOM$swingjs_api_js_DOMNode$java_awt_Color(this.outerNode, this.getBackground$()); +}); + +Clazz_newMeth(C$, 'paintBackground$swingjs_JSGraphics2D', function (g) { +}); + +Clazz_newMeth(C$, 'setBackgroundImpl$java_awt_Color', function (color) { +this.setBackground$java_awt_Color(color); +}); + +Clazz_newMeth(C$, 'disposeSlider', function () { +var slider=this.$$O(this.jqSlider); + +slider.j2sslider("destroy"); +$I$(3).dispose(this.jqSlider); +}, p$1); + +Clazz_newMeth(C$, 'installUI$javax_swing_JComponent', function (jc) { +p$1.setSliderFields.apply(this, []); +$I$(7).installColorsAndFont$javax_swing_JComponent$S$S$S(jc, "Slider.background", "Slider.foreground", "Slider.font"); +}); + +Clazz_newMeth(C$, 'setSliderFields', function () { +this.slider=this.jc; +if (this.isScrollBar) this.jScrollBar=this.jc; +}, p$1); + +Clazz_newMeth(C$, 'setJQuerySliderAndEvents', function () { +var slider=this.$$O(this.jqSlider); +{ +var me = this; +slider.j2sslider( { orientation: me.orientation, jslider: me.c, isScrollBar: me.isScrollBar, range: false, min: me.min, max: me.max, value: me.val, disabled: me.disabled, inverted: me.isInverted, change: function(jqevent, handle) { me.jqueryCallback$O$O(jqevent, handle); }, slide: function(jqevent, handle) { me.jqueryCallback$O$O(jqevent, handle); }, start: function(jqevent, handle) { me.jqueryStart$O$O(jqevent, handle); }, stop: function(jqevent, handle) { me.jqueryStop$O$O(jqevent, handle); } }); +} +}, p$1); + +Clazz_newMeth(C$, 'jqueryStart$O$O', function (event, ui) { +this.setValueIsAdjusting$Z(true); +}); + +Clazz_newMeth(C$, 'jqueryStop$O$O', function (event, ui) { +this.setValueIsAdjusting$Z(false); +if (this.isScrollBar || this.slider.getSnapToTicks$() ) this.jqueryCallback$O$O(event, ui); +}); + +Clazz_newMeth(C$, 'setValueIsAdjusting$Z', function (b) { +this.slider.setValueIsAdjusting$Z(b); +}); + +Clazz_newMeth(C$, 'jqueryCallback$O$O', function (event, ui) { +this.val=Math.round(ui.value ||0); +var ok=(this.noSnapping || !this.slider.getSnapToValue$() || this.slider.getValueIsAdjusting$() ); +this.setValue$I(ok ? this.val : p$1.snapTo$I.apply(this, [this.val])); +}); + +Clazz_newMeth(C$, 'setValue$I', function (val) { +if (val == this.slider.getValue$()) return; +this.slider.setValue$I(val); +}); + +Clazz_newMeth(C$, 'setEnabled$Z', function (b) { +C$.superclazz.prototype.setEnabled$Z.apply(this, [b]); +this.setSliderAttr$S$F("disabled", (this.disabled=(b ? 0 : 1))); +}); + +Clazz_newMeth(C$, 'setup$Z', function (isNew) { +this.sliderTrack=$I$(3).lastChild(this.domNode); +this.sliderHandle=$I$(3).firstChild(this.sliderTrack); +if (isNew) { +this.ignoreAllMouseEvents$swingjs_api_js_DOMNode(this.sliderHandle); +this.ignoreAllMouseEvents$swingjs_api_js_DOMNode(this.sliderTrack); +this.setDataComponent$swingjs_api_js_DOMNode(this.domNode); +this.setDataComponent$swingjs_api_js_DOMNode(this.sliderHandle); +}}, p$1); + +Clazz_newMeth(C$, 'setSliderAttr$S$F', function (key, val) { +this.noSnapping=true; +var id=null; +try { +var jsslider=this.$$O(this.jqSlider); + +id = this.jqSlider.id; +jsslider.j2sslider("option",key,val); +} catch (t) { +System.out.println$S(key + ":" + new Float(val).toString() + " could not be set for " + id ); +} +this.noSnapping=this.isScrollBar; +}); + +Clazz_newMeth(C$, 'setSlider$', function () { +this.setSliderAttr$S$F("min", this.min); +var max=this.max; +this.setSliderAttr$S$F("max", max); +this.setSliderAttr$S$F("value", this.val); +this.myHeight=10; +var barPlace=40; +if (this.isHoriz && this.slider.getBorder$() != null ) barPlace+=10; +var tickClass="ui-j2sslider-tick-mark" + (this.isHoriz ? "-vert" : "-horiz"); +this.$$O(this.domNode).find("." + tickClass).remove(); +this.$$O(this.domNode).find(".jslider-label").remove(); +this.getHTMLSizePreferred$swingjs_api_js_DOMNode$Z(this.jqSlider, false); +if (this.majorSpacing == 0 && this.minorSpacing == 0 || !this.paintTicks && !this.paintLabels ) { +if (this.myScrollPaneUI != null ) { +$I$(3).setStyles(this.sliderHandle, ["transform", null]); +$I$(3).setStyles(this.sliderTrack, ["transform", null]); +} else if (this.isHoriz) { +$I$(3).setStyles(this.sliderHandle, ["top", "50%", "transform", "translateY(-50%)"]); +$I$(3).setStyles(this.sliderTrack, ["top", "50%", "transform", "translateY(-50%)"]); +} else { +$I$(3).setStyles(this.sliderHandle, ["left", "50%", "transform", "translateX(-50%)"]); +$I$(3).setStyles(this.sliderTrack, ["left", "50%", "transform", "translateX(-50%)"]); +}return; +}var margin=10; +var length=(this.isHoriz ? this.slider.getWidth$() : this.slider.getHeight$()); +if (length <= 0) length=(this.isHoriz ? this.getPreferredHorizontalSize$().width : this.getPreferredVerticalSize$().height); +if (this.isHoriz) this.actualWidth=length; + else this.actualHeight=length; +length-=2 * margin; +if (this.paintTicks) { +if (this.minorSpacing == 0) this.minorSpacing=this.majorSpacing; +var check=(this.majorSpacing/this.minorSpacing|0); +var fracSpacing=this.minorSpacing * 1.0 / (max - this.min); +var numTicks=(((max - this.min)/this.minorSpacing|0)) + 1; +this.myHeight+=10; +this.ticks=Clazz_array(Integer.TYPE, [numTicks]); +for (var i=0; i < numTicks; i++) { +var node=$I$(3).createElement("div", this.id + "_t" + i ); +this.$$O(node).addClass("swingjs"); +this.$$O(node).addClass(tickClass); +var isMajor=(i % check == 0); +this.ticks[i]=this.minorSpacing * i + this.min; +var frac=(this.isHoriz == this.isInverted ? 1 - fracSpacing * i : fracSpacing * i); +var spt=(new Float(frac * length + margin).toString()) + "px"; +if (isMajor) this.$$O(node).css(this.isHoriz ? "height" : "width", "8px"); +this.$$O(node).css(this.isHoriz ? "left" : "top", spt); +this.domNode.insertBefore(node, this.sliderTrack); +} +if (!this.paintLabels) this.getHTMLSizePreferred$swingjs_api_js_DOMNode$Z(this.domNode, false); +}if (this.paintLabels) { +this.myHeight+=20; +this.labelTable=this.slider.getLabelTable$(); +var keys=this.labelTable.keys$(); +while (keys.hasMoreElements$()){ +var key=keys.nextElement$(); +var n=Integer.parseInt$S(key.toString()); +var label=this.labelTable.get$O(key); +var labelNode=(label.getUI$()).getOuterNode$(); +var frac=(n - this.min) * 1.0 / (max - this.min); +if (this.isHoriz == this.isInverted ) frac=1 - frac; +var px=(frac * length + margin); +var left; +var top; +if (this.isHoriz) { +top=20; +left=((px - (label.getWidth$()/2|0))|0); +} else { +top=((px - (label.getHeight$()/2|0))|0); +left=28; +}$I$(3).setTopLeftAbsolute(labelNode, top, left); +this.addClass$swingjs_api_js_DOMNode$S(labelNode, ".jslider-label"); +this.domNode.insertBefore(labelNode, this.sliderTrack); +} +}if (this.paintTicks) { +if (this.isHoriz) { +$I$(3).setStyles(this.sliderHandle, ["transform", "scaleX(0.5) rotateZ(45deg)", "top", "-8px"]); +$I$(3).setStyles(this.sliderTrack, ["height", "1px", "background", "black", "top", "12px", "border", "none"]); +this.setSliderAttr$S$F("scaleX", 0.5); +} else { +$I$(3).setStyles(this.sliderHandle, ["transform", "scaleY(0.5) rotateZ(45deg)", "left", "-10px", "margin-bottom", "-7px"]); +$I$(3).setStyles(this.sliderTrack, ["width", "1px", "left", "12px", "background", "black", "border", "none"]); +this.setSliderAttr$S$F("scaleY", 0.5); +}} else { +$I$(3).setStyles(this.sliderTrack, [this.isHoriz ? "top" : "left", barPlace + "%"]); +}if (this.isScrollBar) { +this.setScrollBarExtentAndCSS$(); +} else { +if (!this.isHoriz) $I$(3).setStyles(this.sliderTrack, ["height", length + "px"]); +}this.getHTMLSizePreferred$swingjs_api_js_DOMNode$Z(this.domNode, false); +}); + +Clazz_newMeth(C$, 'getHTMLSizePreferred$swingjs_api_js_DOMNode$Z', function (obj, addCSS) { +var d=20; +if (this.paintLabels) d+=10; +if (this.paintTicks) d+=10; +if (this.slider.getBorder$() != null ) d+=10; +return Clazz_new_($I$(8).c$$I$I,[(this.isHoriz ? this.actualWidth : d), (this.isHoriz ? d : this.actualHeight)]); +}); + +Clazz_newMeth(C$, ['stateChanged$javax_swing_event_ChangeEvent','stateChanged$'], function (e) { +var v; +if ((v=this.slider.getMinimum$()) != this.min) this.setSliderAttr$S$F("min", this.min=v); +if ((v=this.slider.getMaximum$()) != this.max) this.setSliderAttr$S$F("max", this.max=v); +if ((v=this.slider.getValue$()) != this.val) { +this.setSliderAttr$S$F("value", this.val=v); +}p$1.setup$Z.apply(this, [false]); +}); + +Clazz_newMeth(C$, 'setScrollBarExtentAndCSS$', function () { +}); + +Clazz_newMeth(C$, 'getMinimumSize$javax_swing_JComponent', function (jc) { +return (this.isScrollBar ? C$.superclazz.prototype.getMinimumSize$javax_swing_JComponent.apply(this, [jc]) : this.isHoriz ? p$1.getMinimumHorizontalSize.apply(this, []) : p$1.getMinimumVerticalSize.apply(this, [])); +}); + +Clazz_newMeth(C$, 'getMinimumHorizontalSize', function () { +var horizDim=$I$(9).get$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S(this.slider, this, "Slider.minimumHorizontalSize"); +if (horizDim == null ) { +horizDim=Clazz_new_($I$(8).c$$I$I,[36, this.paintLabels ? 35 : 21]); +}return horizDim; +}, p$1); + +Clazz_newMeth(C$, 'getMinimumVerticalSize', function () { +var vertDim=$I$(9).get$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S(this.slider, this, "Slider.minimumVerticalSize"); +if (vertDim == null ) { +vertDim=Clazz_new_($I$(8).c$$I$I,[this.paintLabels ? 35 : 21, 36]); +}return vertDim; +}, p$1); + +Clazz_newMeth(C$, 'getPreferredSize$javax_swing_JComponent', function (jc) { +return (this.isScrollBar ? C$.superclazz.prototype.getPreferredSize$javax_swing_JComponent.apply(this, [jc]) : this.isHoriz ? this.getPreferredHorizontalSize$() : this.getPreferredVerticalSize$()); +}); + +Clazz_newMeth(C$, 'getPreferredHorizontalSize$', function () { +var horizDim=$I$(9).get$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S(this.slider, this, "Slider.horizontalSize"); +return Clazz_new_($I$(8).c$$I$I,[horizDim.width, Math.max(horizDim.height, this.myHeight)]); +}); + +Clazz_newMeth(C$, 'getPreferredVerticalSize$', function () { +var vertDim=$I$(9).get$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S(this.slider, this, "Slider.verticalSize"); +return Clazz_new_($I$(8).c$$I$I,[Math.max(vertDim.height, this.myHeight), vertDim.width]); +}); + +Clazz_newMeth(C$, 'scrollDueToClickInTrack$I$I', function (dir, val) { +this.scrollByBlock$I$I(dir, val); +}); + +Clazz_newMeth(C$, 'scrollByBlock$I', function (direction) { +this.scrollByBlock$I$I(direction, 2147483647); +}); + +Clazz_newMeth(C$, 'scrollByBlock$I$I', function (direction, val0) { +var val=0; +var blockIncrement=-1; +if (this.slider.getSnapToTicks$()) { +var jsslider=this.$$O(this.jqSlider); +if (this.slider.getSnapToValue$()) { +val=val0; +} else { +blockIncrement=p$1.getTickSpacing.apply(this, []); +}} else { +blockIncrement=((this.slider.getMaximum$() - this.slider.getMinimum$())/10|0); +if (blockIncrement == 0) { +blockIncrement=1; +}}if (blockIncrement >= 0) val=this.slider.getValue$() + blockIncrement * ((direction > 0) ? 1 : direction == 0 ? 0 : -1); +this.setValue$I(p$1.snapTo$I.apply(this, [val])); +}); + +Clazz_newMeth(C$, 'snapTo$I', function (val) { +if (this.ticks != null && this.ticks.length > 2 && this.slider.getSnapToTicks$() ) { +var dc=2147483647; +var v=val; +for (var i=this.ticks.length; --i >= 0; ) { +var d=Math.abs(this.ticks[i] - val); +if (d < dc) { +dc=d; +v=this.ticks[i]; +}} +val=v; +}return val; +}, p$1); + +Clazz_newMeth(C$, 'scrollByUnit$I', function (direction) { +{ +var delta=((direction > 0) ? 1 : -1); +if (this.slider.getSnapToTicks$()) { +delta*=p$1.getTickSpacing.apply(this, []); +}this.setValue$I(this.slider.getValue$() + delta); +}}); + +Clazz_newMeth(C$, 'getUnitIncrement$', function () { +return -1; +}); + +Clazz_newMeth(C$, 'getTickSpacing', function () { +var majorTickSpacing=this.slider.getMajorTickSpacing$(); +var minorTickSpacing=this.slider.getMinorTickSpacing$(); +var result; +if (minorTickSpacing > 0) { +result=minorTickSpacing; +} else if (majorTickSpacing > 0) { +result=majorTickSpacing; +} else { +result=0; +}return result; +}, p$1); + +Clazz_newMeth(C$, 'setInnerComponentBounds$I$I', function (width, height) { +if (!this.paintTicks && !this.paintLabels ) { +var margin=(this.isScrollBar ? 6 : 10); +if (this.orientation == "vertical") { +$I$(3).setStyles(this.sliderTrack, ["height", (height - margin * 2) + "px"]); +} else if (this.isScrollBar) { +$I$(3).setStyles(this.sliderTrack, ["width", (width - margin * 2) + "px"]); +}this.setScrollBarExtentAndCSS$(); +}}); + +Clazz_newMeth(C$, 'setJSDimensions$I$I', function (width, height) { +C$.superclazz.prototype.setJSDimensions$I$I.apply(this, [width, height]); +$I$(3).setPositionAbsolute(this.domNode); +if (this.isHoriz) { +$I$(3).setStyles(this.domNode, ["top", (((height - this.myHeight)/2|0)) + "px", "height", this.myHeight + "px"]); +} else { +$I$(3).setStyles(this.domNode, ["left", (((width - this.myHeight)/2|0)) + "px", "width", this.myHeight + "px"]); +}}); + +Clazz_newMeth(C$, 'getMaximumSize$javax_swing_JComponent', function (jc) { +var d=C$.superclazz.prototype.getMaximumSize$javax_swing_JComponent.apply(this, [jc]); +return (d != null ? d : this.isHoriz ? Clazz_new_($I$(8).c$$I$I,[32767, 40]) : Clazz_new_($I$(8).c$$I$I,[40, 32767])); +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 13:00:39 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("swingjs.plaf"),p$1={},I$=[[0,'swingjs.api.js.DOMNode','javax.swing.text.WrappedPlainView','javax.swing.text.PlainView','java.awt.Point']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "JSTextAreaUI", null, 'swingjs.plaf.JSTextViewUI'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'updateDOMNode$', function () { +if (this.domNode == null ) { +this.valueNode=this.domNode=P$.JSComponentUI.newDOMObject$S$S$SA("textarea", this.id, ["spellcheck", "FALSE", "autocomplete", "off"]); +this.setupViewNode$(); +}var area=this.jc; +$I$(1).setStyles(this.domNode, ["white-space", null, "overflow-wrap", null]); +if (area.getLineWrap$()) { +$I$(1).setStyles(this.domNode, ["overflow-wrap", area.getWrapStyleWord$() ? null : "anywhere"]); +} else { +$I$(1).setStyles(this.domNode, ["white-space", "pre"]); +}this.textListener.checkDocument$(); +this.setCssFont$swingjs_api_js_DOMNode$java_awt_Font($I$(1).setAttr(this.domNode, "value", this.setCurrentText$()), this.c.getFont$()); +this.updateJSCursor$S("areaupdate"); +return C$.superclazz.prototype.updateDOMNode$.apply(this, []); +}); + +Clazz_newMeth(C$, ['propertyChange$java_beans_PropertyChangeEvent','propertyChange$'], function (e) { +var prop=e.getPropertyName$(); +switch (prop) { +case "ancestor": +this.setJ2sMouseHandler$(); +break; +case "JSToEnd": +p$1.toEnd.apply(this, []); +break; +} +C$.superclazz.prototype.propertyChange$java_beans_PropertyChangeEvent.apply(this, [e]); +}); + +Clazz_newMeth(C$, 'toEnd', function () { + +this.domNode.scrollTop = this.domNode.scrollHeight; +}, p$1); + +Clazz_newMeth(C$, 'updateRootView$', function () { +this.useRootView=true; +this.rootView.setView$javax_swing_text_View(this.create$javax_swing_text_Element(this.editor.getDocument$().getDefaultRootElement$())); +}); + +Clazz_newMeth(C$, 'getTextAreaTextSize$java_awt_Dimension', function (d) { +var sh=0; +var sw=0; +{ +var h = this.domNode.style.height; +this.domNode.style.height = null; +sh = this.domNode.scrollHeight; +this.domNode.style.height = h; +var w = this.domNode.style.width; +this.domNode.style.width = null; +sw = this.domNode.scrollWidth; +this.domNode.style.width = w; +} +d.width=sw; +d.height=sh; +}); + +Clazz_newMeth(C$, 'getPropertyPrefix$', function () { +return "TextArea"; +}); + +Clazz_newMeth(C$, 'setHTMLElement$', function () { +return $I$(1).setStyles(this.setHTMLElementCUI$(), ["position", "absolute"]); +}); + +Clazz_newMeth(C$, 'create$javax_swing_text_Element', function (elem) { +var area=this.c; +var v; +if (area.getLineWrap$()) { +v=Clazz_new_($I$(2).c$$javax_swing_text_Element$Z,[elem, area.getWrapStyleWord$()]); +} else { +v=Clazz_new_($I$(3).c$$javax_swing_text_Element,[elem]); +}return v; +}); + +Clazz_newMeth(C$, 'isFocusable$', function () { +return false; +}); + +Clazz_newMeth(C$, 'handleTab$O', function (jqEvent) { +var val=this.getJSTextValue$(); +var pt=Clazz_new_($I$(4)); +this.getJSMarkAndDot$java_awt_Point$I(pt, 0); +var x=Math.min(pt.x, pt.y); +var y=Math.max(pt.x, pt.y); +val=val.substring$I$I(0, x) + "\t" + val.substring$I(y) ; +this.editor.setTextFromUI$S(val); +pt.x=pt.y=++x; +this.setJSMarkAndDot$I$I$Z(x, x, false); +this.checkNewEditorTextValue$(); +this.setJavaMarkAndDot$java_awt_Point(pt); +return false; +}); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 13:00:38 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("swingjs.plaf"),I$=[[0,'swingjs.api.js.DOMNode','java.awt.Dimension','swingjs.JSToolkit','java.awt.event.ActionEvent']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "JSTextFieldUI", null, 'swingjs.plaf.JSTextUI'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.inputType=null; +this.textField=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.inputType="text"; +}, 1); + +Clazz_newMeth(C$, 'updateDOMNode$', function () { +this.textField=this.editor; +if (this.domNode == null ) { +this.allowPaintedBackground=false; +this.focusNode=this.enableNode=this.valueNode=this.domNode=$I$(1).setStyles(P$.JSComponentUI.newDOMObject$S$S$SA("input", this.id, ["type", this.inputType]), ["lineHeight", "0.8", "box-sizing", "border-box"]); +this.bindJSKeyEvents$swingjs_api_js_DOMNode$Z(this.focusNode, true); +}var insets=this.editor.getMargin$(); +this.setPadding$java_awt_Insets(insets); +this.textListener.checkDocument$(); +this.setCssFont$swingjs_api_js_DOMNode$java_awt_Font(this.setJSText$swingjs_api_js_DOMNode$S$S(this.focusNode, "value", this.setCurrentText$()), this.getFont$()); +return C$.superclazz.prototype.updateDOMNode$.apply(this, []); +}); + +Clazz_newMeth(C$, 'undisposeUI$swingjs_api_js_DOMNode', function (node) { +C$.superclazz.prototype.undisposeUI$swingjs_api_js_DOMNode.apply(this, [node]); +this.bindJSKeyEvents$swingjs_api_js_DOMNode$Z(this.focusNode, true); +}); + +Clazz_newMeth(C$, 'getCSSAdjustment$Z', function (addingCSS) { +return Clazz_new_($I$(2).c$$I$I,[0, addingCSS ? 0 : -2]); +}); + +Clazz_newMeth(C$, 'installUI$javax_swing_JComponent', function (jc) { +this.textField=jc; +C$.superclazz.prototype.installUI$javax_swing_JComponent.apply(this, [jc]); +}); + +Clazz_newMeth(C$, 'handleEnter$', function () { +var a=this.getActionMap$().get$O("notify-field-accept"); +if (a != null ) { +$I$(3).setIsDispatchThread$Z(true); +a.actionPerformed$(Clazz_new_($I$(4).c$$O$I$S$J$I,[this.c, 1001, "notify-field-accept", System.currentTimeMillis$(), 0])); +$I$(3).setIsDispatchThread$Z(false); +}return true; +}); + +Clazz_newMeth(C$, 'getPropertyPrefix$', function () { +return "TextField"; +}); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 13:00:47 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("swingjs.plaf"),I$=[[0,'Error','javax.swing.text.DefaultEditorKit','java.awt.Point',['swingjs.plaf.JSTextUI','.RootView'],'swingjs.JSToolkit','swingjs.JSKeyEvent','javax.swing.UIManager','javax.swing.text.DefaultCaret','javax.swing.SwingUtilities','javax.swing.plaf.InputMapUIResource','javax.swing.plaf.ActionMapUIResource','swingjs.plaf.TextListener','swingjs.api.js.DOMNode','swingjs.plaf.JSComponentUI','Boolean']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "JSTextUI", function(){ +Clazz_newInstance(this, arguments,0,C$); +}, 'swingjs.plaf.JSLightweightUI'); +C$.defaultKit=null; +C$.markDot=null; + +C$.$clinit$ = function() {Clazz_load(C$, 1); +C$.defaultKit=Clazz_new_($I$(2)); +C$.markDot=Clazz_new_($I$(3)); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.editor=null; +this.editable=false; +this.rootView=null; +this.textListener=null; +this.useRootView=false; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.editable=true; +this.rootView=Clazz_new_($I$(4), [this, null]); +this.useRootView=false; +}, 1); + +Clazz_newMeth(C$, 'updateDOMNode$', function () { +if (this.editor.isOpaque$() && this.editor.isEnabled$() ) this.setBackgroundImpl$java_awt_Color(this.getBackground$()); +this.setEditable$Z(this.editable); +return this.updateDOMNodeCUI$(); +}); + +Clazz_newMeth(C$, ['handleJSEvent$O$I$O','handleJSEvent$'], function (target, eventType, jQueryEvent) { +if ($I$(5).isMouseEvent$I(eventType)) { +return false; +}var b=this.checkAllowKey$O(jQueryEvent); +if (b != null ) return b.booleanValue$(); +var keyCode=jQueryEvent.keyCode ||0; +var keyEvent=null; +var ret=false; +switch (eventType) { +case -2: +keyEvent=$I$(6).newJSKeyEvent$javax_swing_JComponent$O$I$Z(this.editor, jQueryEvent, 0, false); +if (keyEvent == null ) return true; +switch (keyCode) { +case 18: + +jQueryEvent.preventDefault(); jQueryEvent.stopPropagation(); +case 16: +case 17: +ret=true; +} +eventType=keyEvent.getID$(); +break; +} +if (ret != true ) ret=this.textListener.handleJSTextEvent$swingjs_plaf_JSTextUI$I$O(this, eventType, jQueryEvent); +if (keyEvent != null ) { +this.editor.dispatchEvent$java_awt_AWTEvent(keyEvent); +if (keyEvent.isConsumed$()) { + +jQueryEvent.preventDefault(); jQueryEvent.stopPropagation(); +ret=true; +}}return ret; +}); + +Clazz_newMeth(C$, 'checkStopPropagation$O$Z', function (ev, handled) { +return false; +}); + +Clazz_newMeth(C$, 'installDefaults$', function () { +var prefix=this.getPropertyPrefix$(); +var f=this.editor.getFont$(); +if ((f == null && !this.isAWT ) || (Clazz_instanceOf(f, "javax.swing.plaf.UIResource")) ) { +this.editor.setFont$java_awt_Font($I$(7).getFont$O(prefix + ".font")); +}this.setColors$S(prefix); +var margin=this.editor.getMargin$(); +if (margin == null || Clazz_instanceOf(margin, "javax.swing.plaf.UIResource") ) { +this.editor.setMargin$java_awt_Insets($I$(7).getInsets$O(prefix + ".margin")); +}}); + +Clazz_newMeth(C$, 'setColors$S', function (prefix) { +var bg=this.editor.getBackground$(); +if ((bg == null ) || (Clazz_instanceOf(bg, "javax.swing.plaf.UIResource")) ) { +this.editor.setBackground$java_awt_Color($I$(7).getColor$O(prefix + ".background")); +}if (!this.isAWT) { +var fg=this.editor.getForeground$(); +if ((fg == null ) || (Clazz_instanceOf(fg, "javax.swing.plaf.UIResource")) ) { +this.editor.setForeground$java_awt_Color($I$(7).getColor$O(prefix + ".foreground")); +}}var dfg=this.editor.getDisabledTextColor$(); +if ((dfg == null ) || (Clazz_instanceOf(dfg, "javax.swing.plaf.UIResource")) ) { +this.editor.setDisabledTextColor$java_awt_Color($I$(7).getColor$O(prefix + ".inactiveForeground")); +}dfg=$I$(7).getColor$O(this.isAWT ? "control" : prefix + ".inactiveBackground"); +if (dfg != null ) this.inactiveBackground=dfg; +}); + +Clazz_newMeth(C$, 'installDefaults2$', function () { +var caret=this.editor.getCaret$(); +if (caret == null || Clazz_instanceOf(caret, "javax.swing.plaf.UIResource") ) { +this.editor.setCaret$javax_swing_text_Caret(((P$.JSTextUI$1|| +(function(){var C$=Clazz_newClass(P$, "JSTextUI$1", function(){Clazz_newInstance(this, arguments[0],1,C$);}, Clazz_load('javax.swing.text.DefaultCaret'), null, 1); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'paint$java_awt_Graphics', function (g) { +}); + +Clazz_newMeth(C$, 'isVisible$', function () { +return true; +}); + +Clazz_newMeth(C$, 'setVisible$Z', function (v) { +}); + +Clazz_newMeth(C$, 'isSelectionVisible$', function () { +return true; +}); + +Clazz_newMeth(C$, 'setSelectionVisible$Z', function (v) { +}); + +Clazz_newMeth(C$, 'setBlinkRate$I', function (rate) { +}); + +Clazz_newMeth(C$, 'getBlinkRate$', function () { +return 0; +}); + +Clazz_newMeth(C$, 'toString', function () { +return "caret[" + this.dot + "," + this.mark + "]" ; +}); +})() +), Clazz_new_($I$(8), [this, null],P$.JSTextUI$1))); +}}); + +Clazz_newMeth(C$, 'uninstallDefaults$', function () { +if (Clazz_instanceOf(this.editor.getCaretColor$(), "javax.swing.plaf.UIResource")) { +this.editor.setCaretColor$java_awt_Color(null); +}if (Clazz_instanceOf(this.editor.getSelectionColor$(), "javax.swing.plaf.UIResource")) { +this.editor.setSelectionColor$java_awt_Color(null); +}if (Clazz_instanceOf(this.editor.getDisabledTextColor$(), "javax.swing.plaf.UIResource")) { +this.editor.setDisabledTextColor$java_awt_Color(null); +}if (Clazz_instanceOf(this.editor.getSelectedTextColor$(), "javax.swing.plaf.UIResource")) { +this.editor.setSelectedTextColor$java_awt_Color(null); +}if (Clazz_instanceOf(this.editor.getBorder$(), "javax.swing.plaf.UIResource")) { +this.editor.setBorder$javax_swing_border_Border(null); +}if (Clazz_instanceOf(this.editor.getMargin$(), "javax.swing.plaf.UIResource")) { +this.editor.setMargin$java_awt_Insets(null); +}}); + +Clazz_newMeth(C$, 'installKeyboardActions$', function () { +var km=this.getInputMap$(); +if (km != null ) { +$I$(9).replaceUIInputMap$javax_swing_JComponent$I$javax_swing_InputMap(this.editor, 0, km); +}var map=this.getActionMap$(); +if (map != null ) { +$I$(9).replaceUIActionMap$javax_swing_JComponent$javax_swing_ActionMap(this.editor, map); +}}); + +Clazz_newMeth(C$, 'getInputMap$', function () { +var map=Clazz_new_($I$(10)); +return map; +}); + +Clazz_newMeth(C$, 'getActionMap$', function () { +var mapName=this.classID + ".actionMap"; +var map=$I$(7).get$O(mapName); +if (map == null ) { +map=this.createActionMap$(); +if (map != null ) { +$I$(7).getLookAndFeelDefaults$().put$O$O(mapName, map); +}}return map; +}); + +Clazz_newMeth(C$, 'createActionMap$', function () { +var map=Clazz_new_($I$(11)); +var actions=this.editor.getActions$(); +var n=(actions == null ? 0 : actions.length); +for (var i=0; i < n; i++) { +var a=actions[i]; +map.put$O$javax_swing_Action(a.getValue$S("Name"), a); +} +return map; +}); + +Clazz_newMeth(C$, 'uninstallKeyboardActions$', function () { +this.editor.setKeymap$javax_swing_text_Keymap(null); +$I$(9).replaceUIInputMap$javax_swing_JComponent$I$javax_swing_InputMap(this.editor, 2, null); +$I$(9).replaceUIActionMap$javax_swing_JComponent$javax_swing_ActionMap(this.editor, null); +}); + +Clazz_newMeth(C$, 'getComponent$', function () { +return this.editor; +}); + +Clazz_newMeth(C$, 'installUI$javax_swing_JComponent', function (jc) { +this.editor=jc; +this.textListener=Clazz_new_($I$(12).c$$swingjs_plaf_JSTextUI$javax_swing_text_JTextComponent,[this, this.editor]); +this.installDefaults$(); +this.installDefaults2$(); +this.installListeners$javax_swing_text_JTextComponent(this.editor); +this.installKeyboardActions$(); +}); + +Clazz_newMeth(C$, 'uninstallUI$javax_swing_JComponent', function (jc) { +this.uninstallDefaults$(); +jc.removeAll$(); +var lm=jc.getLayout$(); +if (Clazz_instanceOf(lm, "javax.swing.plaf.UIResource")) { +jc.setLayout$java_awt_LayoutManager(null); +}this.uninstallKeyboardActions$(); +this.uninstallListeners$javax_swing_text_JTextComponent(this.editor); +this.editor=null; +this.textListener=null; +}); + +Clazz_newMeth(C$, 'installListeners$javax_swing_text_JTextComponent', function (b) { +var listener=this.textListener; +b.addFocusListener$java_awt_event_FocusListener(listener); +b.addPropertyChangeListener$java_beans_PropertyChangeListener(listener); +b.addCaretListener$javax_swing_event_CaretListener(listener); +}); + +Clazz_newMeth(C$, 'uninstallListeners$javax_swing_text_JTextComponent', function (b) { +var listener=this.textListener; +b.removeFocusListener$java_awt_event_FocusListener(listener); +b.removePropertyChangeListener$java_beans_PropertyChangeListener(listener); +b.getDocument$().removeDocumentListener$javax_swing_event_DocumentListener(listener); +}); + +Clazz_newMeth(C$, 'updateRootView$', function () { +}); + +Clazz_newMeth(C$, 'getMinimumSize$javax_swing_JComponent', function (jc) { +var d=this.getPreferredSize$javax_swing_JComponent(jc); +var i=jc.getInsets$(); +d.width+=i.left + i.right; +d.height+=i.top + i.bottom; +return d; +}); + +Clazz_newMeth(C$, 'getRootView$javax_swing_text_JTextComponent', function (tc) { +return this.rootView; +}); + +Clazz_newMeth(C$, 'create$javax_swing_text_Element', function (elem) { +return null; +}); + +Clazz_newMeth(C$, 'getPreferredSize$javax_swing_JComponent', function (c) { +if (!this.useRootView) return C$.superclazz.prototype.getPreferredSize$javax_swing_JComponent.apply(this, [c]); +var i=c.getInsets$(); +var d=c.getSize$(); +if ((d.width > (i.left + i.right)) && (d.height > (i.top + i.bottom)) ) { +this.rootView.setSize$F$F(d.width - i.left - i.right , d.height - i.top - i.bottom ); +} else if (d.width == 0 && d.height == 0 ) { +this.rootView.setSize$F$F(2147483647, 2147483647); +}d.width=(Math.min((this.rootView.getPreferredSpan$I(0)|0) + i.left + i.right , 2147483647)|0); +d.height=(Math.min((this.rootView.getPreferredSpan$I(1)|0) + i.top + i.bottom , 2147483647)|0); +return d; +}); + +Clazz_newMeth(C$, 'getEditorKit$javax_swing_text_JTextComponent', function (tc) { +return C$.defaultKit; +}); + +Clazz_newMeth(C$, 'handleEnter$', function () { +return false; +}); + +Clazz_newMeth(C$, 'setEditable$Z', function (editable) { +this.editable=editable; +if (this.focusNode == null ) return; +this.setEditableCSS$(); +if (this.jc.isOpaque$()) { +var bg=this.getBackground$(); +this.setBackgroundImpl$java_awt_Color(editable || !(Clazz_instanceOf(bg, "javax.swing.plaf.UIResource")) || this.inactiveBackground === this.colorUNKNOWN ? bg : this.inactiveBackground); +}}); + +Clazz_newMeth(C$, 'setEditableCSS$', function () { +$I$(13).setAttr(this.focusNode, "readOnly", this.editable ? null : "TRUE"); +}); + +Clazz_newMeth(C$, 'getInactiveTextColor$java_awt_Color', function (fg) { +return (!this.editor.isEnabled$() ? this.editor.getDisabledTextColor$() : !this.editor.isEditable$() ? this.inactiveForeground : fg); +}); + +Clazz_newMeth(C$, 'setCurrentText$', function () { +return (this.editor.getDocument$() == null ? null : (this.currentText=this.editor.getText$())); +}); + +Clazz_newMeth(C$, 'checkNewEditorTextValue$', function () { +var val=this.getJSTextValue$(); +if (val.equals$O(this.fixText$S(this.currentText))) return false; +this.editor.setTextFromUI$S(val); +this.setCurrentText$(); +return true; +}); + +Clazz_newMeth(C$, 'setJSTextDelayed$', function () { +this.updateDOMNode$(); +}); + +Clazz_newMeth(C$, 'focus$', function () { +if (!C$.superclazz.prototype.focus$.apply(this, [])) return false; +if (this.haveFocus$()) { +} else { +this.updateJSCursor$S("focus"); +}return true; +}); + +Clazz_newMeth(C$, 'haveFocus$', function () { +return $I$(14).jquery.contains(this.focusNode, document.activeElement ||null); +}); + +Clazz_newMeth(C$, 'updateJSCursor$S', function (why) { +if (this.editor.getDocument$() == null || this.editor.getText$().length$() == 0 ) return; +if (this.isAWT && why != "focus" ) return; +var start=this.editor.getCaret$().getMark$(); +var end=this.editor.getCaret$().getDot$(); +this.setJSSelection$I$I$Z(start, end, start == end && why == "default" ); +}); + +Clazz_newMeth(C$, 'setJSSelection$I$I$Z', function (mark, dot, andScroll) { +var r1=this.getJSNodePt$swingjs_api_js_DOMNode$I$I(this.focusNode, -1, mark); +var r2=(r1 == null || dot == mark ? r1 : this.getJSNodePt$swingjs_api_js_DOMNode$I$I(this.focusNode, -1, dot)); +if (r1 != null && r2 != null ) this.jsSelect$OA$OA$Z(r1, r2, andScroll); +}); + +Clazz_newMeth(C$, 'getJSNodePt$swingjs_api_js_DOMNode$I$I', function (node, offset, pt) { +{ +return [null, pt]; +} +}); + +Clazz_newMeth(C$, 'jsSelect$OA$OA$Z', function (r1, r2, andScroll) { +this.setJSMarkAndDot$I$I$Z(r1[1] ||0, r2[1] ||0, andScroll); +}); + +Clazz_newMeth(C$, 'setJSMarkAndDot$I$I$Z', function (mark, dot, andScroll) { +try { +this.focusNode.setSelectionRange(Math.min(mark, dot), Math.max(mark, dot), (mark == dot ? "none" : mark < dot ? "forward" : "backward")); +} catch (e) { +} +}); + +Clazz_newMeth(C$, 'getJSMarkAndDot$java_awt_Point$I', function (pt, keyCode) { +var node=this.focusNode; +var start=node.selectionStart ||0; +var end=node.selectionEnd ||1; +pt.x=start; +pt.y=end; +return true; +}); + +Clazz_newMeth(C$, 'checkAllowKey$O', function (jQueryEvent) { +var b=true; +var checkEditable=false; +var type=jQueryEvent.type ||""; +switch (type) { +case "drop": +checkEditable=true; +break; +case "focusout": +case "dragover": +b=true; +break; +case "keydown": +case "keypress": +case "keyup": +switch (jQueryEvent.keyCode ||0) { +case 9: +b=(type == "keydown" ? this.handleTab$O(jQueryEvent) : false); +break; +case 38: +case 40: +case 37: +case 39: +case 33: +case 34: +case 224: +case 225: +case 226: +case 227: +if (!jQueryEvent.altKey && !jQueryEvent.ctrlKey ||false) return null; +b=false; +break; +default: +checkEditable=true; +break; +} +break; +default: +return null; +} +if (checkEditable) { +if (this.editor.isEditable$() && !(Clazz_instanceOf(this.editor.getDocument$(), "javax.swing.text.html.HTMLDocument")) ) return null; +b=false; +}return $I$(15).valueOf$Z(b); +}); + +Clazz_newMeth(C$, 'handleTab$O', function (jQueryEvent) { +return false; +}); + +Clazz_newMeth(C$, 'viewToModel$javax_swing_text_JTextComponent$java_awt_Point$javax_swing_text_Position_BiasA', function (t, pt, biasReturn) { +pt.x=2147483647; +this.getJSMarkAndDot$java_awt_Point$I(pt, 0); +return pt.y; +}); + +Clazz_newMeth(C$, 'setJavaMarkAndDot$java_awt_Point', function (markDot) { +var mark=markDot.x; +var dot=markDot.y; +var c=this.editor.getCaret$(); +if (c.getMark$() == mark && c.getDot$() == dot ) return; +if (c.getMark$() != mark) c.setDot$I(mark); +if (c.getDot$() != dot) c.moveDot$I(dot); +}); + +Clazz_newMeth(C$, 'getNewCaretPosition$I$I', function (eventType, keyCode) { +var pt=C$.markDot; +pt.x=0; +this.getJSMarkAndDot$java_awt_Point$I(pt, keyCode); +var mark=pt.x; +var dot=pt.y; +var oldMark=this.editor.getCaret$().getMark$(); +var oldDot=this.editor.getCaret$().getDot$(); +if (dot != mark && oldMark == dot ) { +dot=mark; +mark=oldMark; +}pt.x=(dot == oldDot && mark == oldMark ? -2147483648 : mark); +pt.y=dot; +return pt; +}); + +Clazz_newMeth(C$, 'updateJSCursorFromCaret$', function () { +}); + +Clazz_newMeth(C$, 'caretUpdatedByProgram$javax_swing_event_CaretEvent', function (e) { +}); + +Clazz_newMeth(C$, 'isFocusable$', function () { +return true; +}); +; +(function(){var C$=Clazz_newClass(P$.JSTextUI, "RootView", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, 'javax.swing.text.View'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.view=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.superclazz.c$$javax_swing_text_Element.apply(this, [null]); +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'getDocument$', function () { +return this.this$0.editor.getDocument$(); +}); + +Clazz_newMeth(C$, 'getStartOffset$', function () { +if (this.view != null ) { +return this.view.getStartOffset$(); +}return this.getElement$().getStartOffset$(); +}); + +Clazz_newMeth(C$, 'getEndOffset$', function () { +if (this.view != null ) { +return this.view.getEndOffset$(); +}return this.getElement$().getEndOffset$(); +}); + +Clazz_newMeth(C$, 'getElement$', function () { +if (this.view != null ) { +return this.view.getElement$(); +}return this.this$0.editor.getDocument$().getDefaultRootElement$(); +}); + +Clazz_newMeth(C$, 'setSize$F$F', function (width, height) { +if (this.view != null ) { +this.view.setSize$F$F(width, height); +}}); + +Clazz_newMeth(C$, 'getContainer$', function () { +return this.this$0.editor; +}); + +Clazz_newMeth(C$, 'setView$javax_swing_text_View', function (v) { +var oldView=this.view; +this.view=null; +if (oldView != null ) { +oldView.setParent$javax_swing_text_View(null); +}if (v != null ) { +v.setParent$javax_swing_text_View(this); +}this.view=v; +}); + +Clazz_newMeth(C$, 'getAttributes$', function () { +return null; +}); + +Clazz_newMeth(C$, 'getPreferredSpan$I', function (axis) { +switch (axis) { +case 0: +return (this.view == null ? 10 : this.view.getPreferredSpan$I(axis)); +default: +case 1: +var area=this.this$0.editor; +var h=this.b$['swingjs.plaf.JSComponentUI'].getFont$.apply(this.b$['swingjs.plaf.JSComponentUI'], []).getFontMetrics$().getHeight$(); +var r=area.getRows$(); +return h * (r > 0 ? r : this.this$0.isAWT ? 10 : 6); +} +}); + +Clazz_newMeth(C$, 'getMinimumSpan$I', function (axis) { +if (this.view != null ) { +return this.view.getMinimumSpan$I(axis); +}return 10; +}); + +Clazz_newMeth(C$, 'getMaximumSpan$I', function (axis) { +return 2147483647; +}); + +Clazz_newMeth(C$, 'preferenceChanged$javax_swing_text_View$Z$Z', function (child, width, height) { +this.this$0.editor.revalidate$(); +}); + +Clazz_newMeth(C$, 'getAlignment$I', function (axis) { +if (this.view != null ) { +return this.view.getAlignment$I(axis); +}return 0; +}); + +Clazz_newMeth(C$, 'paint$java_awt_Graphics$java_awt_Shape', function (g, allocation) { +if (this.view != null ) { +var alloc=(Clazz_instanceOf(allocation, "java.awt.Rectangle")) ? allocation : allocation.getBounds$(); +this.setSize$F$F(alloc.width, alloc.height); +this.view.paint$java_awt_Graphics$java_awt_Shape(g, allocation); +}}); + +Clazz_newMeth(C$, 'setParent$javax_swing_text_View', function (parent) { +throw Clazz_new_($I$(1).c$$S,["Can\'t set parent on root view"]); +}); + +Clazz_newMeth(C$, 'getViewCount$', function () { +return 1; +}); + +Clazz_newMeth(C$, 'getView$I', function (n) { +return this.view; +}); + +Clazz_newMeth(C$, 'getViewIndex$I$javax_swing_text_Position_Bias', function (pos, b) { +return 0; +}); + +Clazz_newMeth(C$, 'getChildAllocation$I$java_awt_Shape', function (index, a) { +return a; +}); + +Clazz_newMeth(C$, 'modelToView$I$java_awt_Shape$javax_swing_text_Position_Bias', function (pos, a, b) { +return null; +}); + +Clazz_newMeth(C$, 'viewToModel$F$F$java_awt_Shape$javax_swing_text_Position_BiasA', function (x, y, a, biasReturn) { +return 0; +}); +})() +; +(function(){var C$=Clazz_newClass(P$.JSTextUI, "TextActionWrapper", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, 'javax.swing.text.TextAction'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.action=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.action=null; +}, 1); + +Clazz_newMeth(C$, 'c$$javax_swing_text_TextAction', function (action) { +C$.superclazz.c$$S.apply(this, [action.getValue$S("Name")]); +C$.$init$.apply(this); +this.action=action; +}, 1); + +Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) { +this.action.actionPerformed$(e); +}); + +Clazz_newMeth(C$, 'isEnabled$', function () { +return (this.this$0.editor == null || this.this$0.editor.isEditable$() ) ? this.action.isEnabled$() : false; +}); + +Clazz_newMeth(C$); +})() +; +(function(){var C$=Clazz_newClass(P$.JSTextUI, "FocusAction", function(){ +Clazz_newInstance(this, arguments[0],true,C$); +}, 'javax.swing.AbstractAction'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, ['actionPerformed$java_awt_event_ActionEvent','actionPerformed$'], function (e) { +this.this$0.editor.requestFocus$(); +}); + +Clazz_newMeth(C$, 'isEnabled$', function () { +return this.this$0.editor.isEditable$(); +}); + +Clazz_newMeth(C$); +})() + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 13:00:47 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("swingjs.plaf"),I$=[[0,'swingjs.api.js.DOMNode']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "JSTextViewUI", null, 'swingjs.plaf.JSTextUI'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.mustWrap=false; +this.overflows=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.mustWrap=false; +this.overflows=Clazz_array(String, -1, ["auto", "hidden", "scroll"]); +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +Clazz_super_(C$, this,1); +this.setDoPropagate$(); +}, 1); + +Clazz_newMeth(C$, 'setupViewNode$', function () { +this.allowPaintedBackground=false; +this.focusNode=this.enableNode=this.textNode=this.domNode; +$I$(1).setStyles(this.domNode, ["resize", "none", "margin", "0px", "padding", "0px", "scrollbar-width", "thin"]); +$I$(1).setStyles(this.domNode, ["box-sizing", "border-box"]); +this.bindJSKeyEvents$swingjs_api_js_DOMNode$Z(this.focusNode, true); +}); + +Clazz_newMeth(C$, 'undisposeUI$swingjs_api_js_DOMNode', function (node) { +C$.superclazz.prototype.undisposeUI$swingjs_api_js_DOMNode.apply(this, [node]); +this.bindJSKeyEvents$swingjs_api_js_DOMNode$Z(this.focusNode, true); +}); + +Clazz_newMeth(C$, 'setOverflow$', function () { +var parent=this.jc.getParent$(); +if (this.isAWT) { +parent=this.jc; +} else if (!(Clazz_instanceOf(parent, "javax.swing.JViewport")) || !(Clazz_instanceOf((parent=parent.getParent$()), "javax.swing.JScrollPane")) ) { +$I$(1).setStyles(this.domNode, ["overflow", "hidden", "overflow-x", null, "overflow-y", null]); +return; +}var sp=parent; +$I$(1).setStyles(this.domNode, ["overflow", null]); +$I$(1).setStyles(this.domNode, ["overflow-x", this.overflows[sp.getHorizontalScrollBarPolicy$() % 10]]); +$I$(1).setStyles(this.domNode, ["overflow-y", this.overflows[sp.getVerticalScrollBarPolicy$() % 10]]); +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 13:00:40 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("swingjs.plaf"),I$=[[0,'swingjs.api.js.DOMNode']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "JSViewportUI", null, 'swingjs.plaf.JSLightweightUI', ['java.beans.PropertyChangeListener', 'javax.swing.event.ChangeListener']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.viewport=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'updateDOMNode$', function () { +if (this.domNode == null ) { +this.domNode=P$.JSComponentUI.newDOMObject$S$S$SA("div", this.id, []); +$I$(1).setStyles(this.domNode, ["margin", "1px"]); +this.ignoreAllMouseEvents$swingjs_api_js_DOMNode(this.domNode); +}return this.updateDOMNodeCUI$(); +}); + +Clazz_newMeth(C$, 'installUI$javax_swing_JComponent', function (jc) { +this.viewport=jc; +}); + +Clazz_newMeth(C$, 'uninstallUI$javax_swing_JComponent', function (jc) { +}); + +Clazz_newMeth(C$, 'getPreferredSize$javax_swing_JComponent', function (jc) { +return null; +}); + +Clazz_newMeth(C$, 'setHTMLElement$', function () { +return $I$(1).setStyles(this.setHTMLElementCUI$(), ["overflow", "hidden", "margin", "1px", "width", (this.width - 2) + "px", "height", (this.height - 2) + "px"]); +}); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 13:00:43 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("swingjs.plaf"),I$=[[0,'swingjs.JSUtil','swingjs.api.js.DOMNode','swingjs.plaf.JSComponentUI']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "JSWindowUI", null, 'swingjs.plaf.JSComponentUI', ['java.awt.peer.WindowPeer', 'java.awt.event.WindowListener', 'java.awt.event.ComponentListener']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.frameNode=null; +this.titleBarNode=null; +this.titleNode=null; +this.closerNode=null; +this.layerNode=null; +this.w=null; +this.z=0; +this.defaultWidth=0; +this.defaultHeight=0; +this.isFrame=false; +this.isDialog=false; +this.window=null; +this.font=null; +this.graphics=null; +this.isPopup=false; +this.modalNode=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.defaultWidth=400; +this.defaultHeight=400; +}, 1); + +Clazz_newMeth(C$, 'setFrame$java_awt_Window$Z', function (target, isFrame) { +this.window=target; +this.w=this.window; +this.isFrame=isFrame; +this.isContainer=this.isWindow=true; +var jc=this; +var viewer=$I$(1).getAppletViewer$(); +this.applet=viewer.html5Applet; +this.graphics=jc.getGraphics$(); +return this; +}); + +Clazz_newMeth(C$, 'updateDOMNode$', function () { +if (this.domNode == null ) { +this.containerNode=this.domNode=P$.JSComponentUI.newDOMObject$S$S$SA("div", this.id, []); +this.setWindowClass$(); +this.bindWindowEvents$(); +}return this.domNode; +}); + +Clazz_newMeth(C$, 'setWindowClass$', function () { +this.addClass$swingjs_api_js_DOMNode$S(this.domNode, "swingjs-window"); +this.setZ$I(this.z); +}); + +Clazz_newMeth(C$, 'getFontMetrics$java_awt_Font', function (font) { +if (!font.equals$O(this.font)) this.window.setFont$java_awt_Font(this.font=font); +return this.graphics.getFontMetrics$java_awt_Font(font); +}); + +Clazz_newMeth(C$, 'toFront$', function () { +if (this.jc.秘isDesktop$()) return; +this.z=this.J2S.setWindowZIndex(this.domNode, 2147483647); +this.setZ$I(this.z); +if (this.modalNode != null ) $I$(2).setZ(this.modalNode, this.z - 1); +}); + +Clazz_newMeth(C$, 'toBack$', function () { +this.z=this.J2S.setWindowZIndex(this.domNode, -2147483648); +this.setZ$I(this.z); +if (this.modalNode != null ) $I$(2).setZ(this.modalNode, this.z - 1); +}); + +Clazz_newMeth(C$, 'updateAlwaysOnTopState$', function () { +}); + +Clazz_newMeth(C$, 'updateFocusableWindowState$', function () { +System.out.println$S("JSWindow updateFocusable"); +}); + +Clazz_newMeth(C$, 'requestWindowFocus$', function () { +return false; +}); + +Clazz_newMeth(C$, 'setModalBlocked$java_awt_Dialog$Z', function (blocker, blocked) { +this.modalBlocked=blocked; +}); + +Clazz_newMeth(C$, 'setModalBlocked$java_awt_JSDialog$Z', function (blocker, blocked) { +this.modalBlocked=blocked; +}); + +Clazz_newMeth(C$, 'updateMinimumSize$', function () { +}); + +Clazz_newMeth(C$, 'updateIconImages$', function () { +}); + +Clazz_newMeth(C$, 'setOpacity$F', function (opacity) { +}); + +Clazz_newMeth(C$, 'setOpaque$Z', function (isOpaque) { +}); + +Clazz_newMeth(C$, 'updateWindow$java_awt_image_BufferedImage', function (backBuffer) { +}); + +Clazz_newMeth(C$, 'repositionSecurityWarning$', function () { +}); + +Clazz_newMeth(C$, 'dispose$', function () { +System.out.println$S("window disposed"); +this.J2S.unsetMouse(this.domNode); +if (this.modalNode != null ) $I$(2).dispose(this.modalNode); +C$.superclazz.prototype.dispose$.apply(this, []); +}); + +Clazz_newMeth(C$, 'beginValidate$', function () { +if (this.isDisposed) { +C$.setChildVisibilities$javax_swing_JComponent(this.window); +}}); + +Clazz_newMeth(C$, 'endValidate$', function () { +if (this.isDisposed) { +this.undisposeUI$swingjs_api_js_DOMNode(null); +this.bindWindowEvents$(); +this.isDisposed=false; +}}); + +Clazz_newMeth(C$, 'bindWindowEvents$', function () { +this.setJ2sMouseHandler$(); +this.setDraggableEvents$(); +this.addJQueryFocusCallbacks$(); +if (this.closerNode != null ) this.bindJQueryEvents$swingjs_api_js_DOMNode$S$I(this.closerNode, "click mouseenter mouseout", -1); +}); + +Clazz_newMeth(C$, 'setDraggableEvents$', function () { +}); + +Clazz_newMeth(C$, 'setChildVisibilities$javax_swing_JComponent', function (jc) { +for (var i=jc.getComponentCount$(); --i >= 0; ) { +var c=jc.getComponent$I(i); +C$.setChildVisibilities$javax_swing_JComponent(c); +} +var ui=jc.ui; +if (jc.isVisible$()) ui.setVisible$Z(true); +}, 1); + +Clazz_newMeth(C$, 'getInsets$', function () { +return $I$(3).zeroInsets; +}); + +Clazz_newMeth(C$, 'setVisible$Z', function (b) { +if (!this.isPopup) { +P$.JSComponentUI.hideMenusAndToolTip$(); +}C$.superclazz.prototype.setVisible$Z.apply(this, [b]); +this.toFront$(); +}); + +Clazz_newMeth(C$, 'windowOpened$java_awt_event_WindowEvent', function (e) { +this.setComponentFocus$(); +}); + +Clazz_newMeth(C$, 'windowClosing$java_awt_event_WindowEvent', function (e) { +P$.JSComponentUI.hideMenusAndToolTip$(); +}); + +Clazz_newMeth(C$, 'windowClosed$java_awt_event_WindowEvent', function (e) { +P$.JSComponentUI.hideMenusAndToolTip$(); +}); + +Clazz_newMeth(C$, 'windowIconified$java_awt_event_WindowEvent', function (e) { +P$.JSComponentUI.hideMenusAndToolTip$(); +}); + +Clazz_newMeth(C$, 'windowDeiconified$java_awt_event_WindowEvent', function (e) { +P$.JSComponentUI.hideMenusAndToolTip$(); +}); + +Clazz_newMeth(C$, 'windowActivated$java_awt_event_WindowEvent', function (e) { +}); + +Clazz_newMeth(C$, 'windowDeactivated$java_awt_event_WindowEvent', function (e) { +P$.JSComponentUI.hideMenusAndToolTip$(); +}); + +Clazz_newMeth(C$, 'componentResized$java_awt_event_ComponentEvent', function (e) { +P$.JSComponentUI.hideMenusAndToolTip$(); +}); + +Clazz_newMeth(C$, 'componentMoved$java_awt_event_ComponentEvent', function (e) { +P$.JSComponentUI.hideMenusAndToolTip$(); +}); + +Clazz_newMeth(C$, 'componentShown$java_awt_event_ComponentEvent', function (e) { +P$.JSComponentUI.hideMenusAndToolTip$(); +}); + +Clazz_newMeth(C$, 'componentHidden$java_awt_event_ComponentEvent', function (e) { +P$.JSComponentUI.hideMenusAndToolTip$(); +}); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 13:00:40 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("swingjs.plaf"),p$1={},I$=[[0,'javax.swing.UIManager','javax.swing.SwingUtilities']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "LazyActionMap", null, 'javax.swing.plaf.ActionMapUIResource'); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this._loader=null; +this._key=null; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'installLazyActionMap$javax_swing_JComponent$Class$S', function (c, loaderClass, defaultsKey) { +var map=$I$(1).get$O(defaultsKey); +if (map == null ) { +map=Clazz_new_(C$.c$$Class$S,[loaderClass, defaultsKey]); +$I$(1).getLookAndFeelDefaults$().put$O$O(defaultsKey, map); +}$I$(2).replaceUIActionMap$javax_swing_JComponent$javax_swing_ActionMap(c, map); +}, 1); + +Clazz_newMeth(C$, 'getActionMap$Class$S', function (loaderClass, defaultsKey) { +var map=$I$(1).get$O(defaultsKey); +if (map == null ) { +map=Clazz_new_(C$.c$$Class$S,[loaderClass, defaultsKey]); +$I$(1).getLookAndFeelDefaults$().put$O$O(defaultsKey, map); +}return map; +}, 1); + +Clazz_newMeth(C$, 'c$$Class$S', function (loader, key) { +Clazz_super_(C$, this,1); +this._loader=loader; +this._key=key; +}, 1); + +Clazz_newMeth(C$, 'put$javax_swing_Action', function (action) { +this.put$O$javax_swing_Action(action.getValue$S("Name"), action); +}); + +Clazz_newMeth(C$, 'put$O$javax_swing_Action', function (key, action) { +p$1.loadIfNecessary.apply(this, []); +C$.superclazz.prototype.put$O$javax_swing_Action.apply(this, [key, action]); +}); + +Clazz_newMeth(C$, 'get$O', function (key) { +p$1.loadIfNecessary.apply(this, []); +return C$.superclazz.prototype.get$O.apply(this, [key]); +}); + +Clazz_newMeth(C$, 'remove$O', function (key) { +p$1.loadIfNecessary.apply(this, []); +C$.superclazz.prototype.remove$O.apply(this, [key]); +}); + +Clazz_newMeth(C$, 'clear$', function () { +p$1.loadIfNecessary.apply(this, []); +C$.superclazz.prototype.clear$.apply(this, []); +}); + +Clazz_newMeth(C$, 'keys$', function () { +p$1.loadIfNecessary.apply(this, []); +return C$.superclazz.prototype.keys$.apply(this, []); +}); + +Clazz_newMeth(C$, 'size$', function () { +p$1.loadIfNecessary.apply(this, []); +return C$.superclazz.prototype.size$.apply(this, []); +}); + +Clazz_newMeth(C$, 'allKeys$', function () { +p$1.loadIfNecessary.apply(this, []); +return C$.superclazz.prototype.allKeys$.apply(this, []); +}); + +Clazz_newMeth(C$, 'setParent$javax_swing_ActionMap', function (map) { +p$1.loadIfNecessary.apply(this, []); +C$.superclazz.prototype.setParent$javax_swing_ActionMap.apply(this, [map]); +}); + +Clazz_newMeth(C$, 'loadIfNecessary', function () { +if (this._loader != null ) { +var loader=this._loader; +this._loader=null; +{ +loader.$clazz$.loadActionMap$swingjs_plaf_LazyActionMap(this); +} +}}, p$1); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 10:27:45 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("swingjs.plaf"),p$1={},I$=[[0,'swingjs.JSUtil','swingjs.api.js.DOMNode','javajs.api.JSFunction','java.awt.Rectangle','java.awt.Color','java.awt.Dimension']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "Resizer"); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.rootPane=null; +this.resizer=null; +this.rootNode=null; +this.rubberBand=null; +this.jframe=null; +this.offsetx=0; +this.offsety=0; +this.minSize=0; +this.rpc=null; +this.titleHeight=0; +this.enabled=false; +this.allowResize=false; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +this.offsetx=-4; +this.offsety=-4; +this.minSize=10; +this.enabled=true; +this.allowResize=true; +}, 1); + +Clazz_newMeth(C$, 'c$', function () { +C$.$init$.apply(this); +}, 1); + +Clazz_newMeth(C$, 'set$swingjs_JSFrameViewer$javax_swing_RootPaneContainer', function (viewer, top) { +this.rpc=top; +this.rootPane=this.rpc.getRootPane$(); +this.titleHeight=viewer.getInsets$().top; +if (viewer.isApplet) { +this.rootNode=viewer.getDiv$S("appletdiv"); +} else { +this.jframe=this.rpc; +this.rootNode=(this.jframe.getUI$()).getDOMNode$(); +}return (this.rootNode == null ? null : this); +}); + +Clazz_newMeth(C$, 'show$', function () { +if (!this.allowResize || !this.enabled ) return; +if (this.resizer == null ) p$1.createAndShowResizer.apply(this, []); + else $I$(1).jQuery.$(this.resizer).show(); +this.setPosition$I$I(0, 0); +}); + +Clazz_newMeth(C$, 'hide$', function () { +$I$(1).jQuery.$(this.resizer).hide(); +}); + +Clazz_newMeth(C$, 'setMin$I', function (min) { +this.minSize=min; +}); + +Clazz_newMeth(C$, 'createAndShowResizer', function () { +var id=this.rootPane.秘htmlName + "_resizer"; +this.resizer=$I$(2).createElement("div", id); +$I$(2).setSize(this.resizer, 10, 10); +$I$(2).setStyles(this.resizer, ["background-color", "red", "opacity", "0", "cursor", "nwse-resize"]); +$I$(1).jQuery.$(this.resizer).addClass("swingjs-resizer"); +this.rubberBand=$I$(2).createElement("div", id + "_rb"); +$I$(2).setStyles(this.rubberBand, ["border", "1px dashed #FF00FF", "z-index", "100000", "position", "absolute", "left", "0px", "top", "0px", "display", "none"]); +this.rootNode.appendChild(this.resizer); +this.rootNode.appendChild(this.rubberBand); +var fHandleResizer=null; +var fHandleDOMResize=null; +var me=this; +{ +fHandleResizer = function(xyev,type){me.fHandleResizer$I$I$I( xyev.dx, xyev.dy,type)}; +} +$I$(1).J2S.setDraggable(this.resizer, Clazz_array($I$(3), -1, [fHandleResizer])); +$I$(1).jQuery.$(this.rootNode).resize(fHandleDOMResize); +}, p$1); + +Clazz_newMeth(C$, 'setPosition$I$I', function (dw, dh) { +var r=p$1.getFrameOffset$I$I.apply(this, [dw, dh]); +$I$(2).setTopLeftAbsolute(this.resizer, r.height + this.offsety, r.width + this.offsetx); +$I$(2).setSize(this.rubberBand, r.width, r.height); +}); + +Clazz_newMeth(C$, 'getDOMNode$', function () { +return this.resizer; +}); + +Clazz_newMeth(C$, 'fHandleResizer$I$I$I', function (dx, dy, type) { +if (!this.enabled || !this.allowResize ) return; +switch (type) { +case 503: +break; +case 501: +$I$(2).setStyles(this.resizer, ["background-color", "green"]); +$I$(2).setVisible(this.rubberBand, true); +$I$(2).setCursor("nwse-resize", null); +break; +case 506: +this.setPosition$I$I(dx, dy); +break; +case 502: +$I$(2).setStyles(this.resizer, ["background-color", "red"]); +$I$(2).setVisible(this.rubberBand, false); +$I$(2).setCursor("auto", null); +this.fHandleDOMResize$O$I$I(null, dx, dy); +} +}); + +Clazz_newMeth(C$, 'fHandleDOMResize$O$I$I', function (event, dw, dh) { +var r; +if (!this.enabled) return; +if (event == null ) { +r=p$1.getFrameOffset$I$I.apply(this, [dw, dh]); +} else { +$I$(2).getCSSRectangle(this.rootNode, r=Clazz_new_($I$(4))); +}if (this.jframe == null ) { +this.rootPane.getGraphics$().setColor$java_awt_Color($I$(5).WHITE); +this.rootPane.getGraphics$().fillRect$I$I$I$I(0, 0, r.width, r.height); +(this.rootPane.getParent$()).resizeHTML$I$I(r.width, r.height); +} else { +this.jframe.setPreferredSize$java_awt_Dimension(Clazz_new_($I$(6).c$$I$I,[r.width, r.height])); +this.jframe.invalidateTree$(); +this.jframe.repackContainer$(); +if (Clazz_instanceOf(this.jframe, "javax.swing.JInternalFrame")) { +try { +(this.jframe).setSelected$Z(true); +} catch (e) { +if (Clazz_exceptionOf(e,"java.beans.PropertyVetoException")){ +} else { +throw e; +} +} +} else { +this.jframe.toFront$(); +}}this.setPosition$I$I(0, 0); +}); + +Clazz_newMeth(C$, 'getFrameOffset$I$I', function (dw, dh) { +var r=(this.rpc).getBounds$(); +if (r.width + dw > this.minSize) r.width+=dw; +if (r.height + dh > this.minSize) r.height+=dh; +return r; +}, p$1); + +Clazz_newMeth(C$, 'setAllowResize$Z', function (b) { +this.allowResize=b; +}); + +Clazz_newMeth(C$, 'setEnabled$Z', function (b) { +this.enabled=b; +if (b) this.show$(); + else this.hide$(); +}); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 13:00:43 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +(function(){var P$=Clazz_newPackage("swingjs.plaf"),I$=[[0,'swingjs.JSMouse']],$I$=function(i){return I$[i]||(I$[i]=Clazz_load(I$[0][i]))}; +var C$=Clazz_newClass(P$, "TextListener", null, null, ['java.awt.event.FocusListener', 'javax.swing.event.ChangeListener', 'java.beans.PropertyChangeListener', 'javax.swing.event.DocumentListener', 'javax.swing.event.CaretListener']); + +C$.$clinit$ = function() {Clazz_load(C$, 1); +} + +Clazz_newMeth(C$, '$init0$', function () { +var c;if((c = C$.superclazz) && (c = c.$init0$))c.apply(this); +this.txtComp=null; +this.haveDocument=false; +this.ui=null; +this.working=false; +this.lastKeyEvent=0; +}, 1); + +Clazz_newMeth(C$, '$init$', function () { +}, 1); + +Clazz_newMeth(C$, 'c$$swingjs_plaf_JSTextUI$javax_swing_text_JTextComponent', function (ui, txtComp) { +C$.$init$.apply(this); +this.txtComp=txtComp; +this.ui=ui; +}, 1); + +Clazz_newMeth(C$, 'checkDocument$', function () { +if (!this.haveDocument && this.txtComp.getDocument$() != null ) { +this.haveDocument=true; +this.txtComp.getDocument$().addDocumentListener$javax_swing_event_DocumentListener(this); +}}); + +Clazz_newMeth(C$, ['propertyChange$java_beans_PropertyChangeEvent','propertyChange$'], function (e) { +var prop=e.getPropertyName$(); +switch (prop) { +case "font": +case "foreground": +case "preferredSize": +var txtComp=e.getSource$(); +(txtComp.getUI$()).propertyChangedFromListener$java_beans_PropertyChangeEvent$S(e, prop); +break; +case "editable": +this.ui.setEditable$Z((e.getNewValue$()).booleanValue$()); +break; +case "document": +if (e.getNewValue$() != null ) this.ui.updateRootView$(); +break; +} +}); + +Clazz_newMeth(C$, ['stateChanged$javax_swing_event_ChangeEvent','stateChanged$'], function (e) { +var txtComp=e.getSource$(); +txtComp.秘repaint$(); +}); + +Clazz_newMeth(C$, 'focusGained$java_awt_event_FocusEvent', function (e) { +}); + +Clazz_newMeth(C$, 'focusLost$java_awt_event_FocusEvent', function (e) { +}); + +Clazz_newMeth(C$, 'handleJSTextEvent$swingjs_plaf_JSTextUI$I$O', function (ui, eventType, jqevent) { +var activeElement=(document.activeElement ||null); +if (activeElement !== ui.domNode ) return true; +eventType=$I$(1).fixEventType$O$I(jqevent, eventType); +var keyCode=jqevent.keyCode ||0; +var markDot=ui.getNewCaretPosition$I$I(eventType, keyCode); +var mark=markDot.x; +var dot=markDot.y; +var setCaret=(mark != -2147483648); +switch (eventType) { +case 400: +break; +case 401: +if (keyCode == 13 || keyCode == 10 ) { +ui.handleEnter$(); +} else if (keyCode != 8) { +setCaret=false; +}if (this.lastKeyEvent != 400) break; +case 402: +this.working=true; +if (ui.checkNewEditorTextValue$()) { +if (dot >= 0) { +ui.setJSMarkAndDot$I$I$Z(dot, dot, false); +setCaret=false; +}}this.working=false; +break; +} +this.lastKeyEvent=eventType; +if (setCaret) ui.setJavaMarkAndDot$java_awt_Point(markDot); +return true; +}); + +Clazz_newMeth(C$, 'insertUpdate$javax_swing_event_DocumentEvent', function (e) { +if (!this.working) { +this.ui.setJSTextDelayed$(); +}}); + +Clazz_newMeth(C$, 'removeUpdate$javax_swing_event_DocumentEvent', function (e) { +if (!this.working) this.ui.setJSTextDelayed$(); +}); + +Clazz_newMeth(C$, 'changedUpdate$javax_swing_event_DocumentEvent', function (e) { +if (!this.working) this.ui.setJSTextDelayed$(); +}); + +Clazz_newMeth(C$, ['caretUpdate$javax_swing_event_CaretEvent','caretUpdate$'], function (e) { +this.ui.caretUpdatedByProgram$javax_swing_event_CaretEvent(e); +}); + +Clazz_newMeth(C$); +})(); +;Clazz_setTVer('3.2.4.07');//Created 2019-07-14 13:00:40 Java2ScriptVisitor version 3.2.4.07 net.sf.j2s.core.jar version 3.2.4.07 +})(Clazz,Clazz.setTVer,Clazz.array,Clazz.assert,Clazz.clone,Clazz.exceptionOf,Clazz.forName,Clazz.getClass,Clazz.instanceOf,Clazz.load,Clazz.new_,Clazz.newClass,Clazz.newEnumConst,Clazz.newInstance,Clazz.newInterface,Clazz.newMeth,Clazz.newPackage,Clazz.super_); diff --git a/sources/net.sf.j2s.java.core/core/coreswingjs.z.js b/sources/net.sf.j2s.java.core/core/coreswingjs.z.js new file mode 100644 index 000000000..18e3fbf9c --- /dev/null +++ b/sources/net.sf.j2s.java.core/core/coreswingjs.z.js @@ -0,0 +1,3608 @@ +(function(Li,n,l,rb,we,A,em,x,k,g,f,j,Pa,m,N,b,q,S){var fx=q("java.applet"),On=j(fx,"Applet",null,"swingjs.a2s.Applet");On.$clinit$=function(){g(On,1)};b(On,"$init$",function(){},1);b(On,"c$",function(){On.superclazz.c$.apply(this,[]);On.$init$.apply(this)},1);n("3.2.4.07");var gx=q("java.applet");N(gx,"AppletContext");n("3.2.4.07");var hx=q("java.applet");N(hx,"AppletStub");n("3.2.4.07");var ix=q("java.applet"),Nq=[[0,"java.net.URL","javax.swing.RepaintManager","sun.applet.AppletAudioClip","java.util.Locale"]], +Pn=function(a){return Nq[a]||(Nq[a]=g(Nq[0][a]))},Ib=j(ix,"JSApplet",null,"java.awt.JSPanel");Ib.$clinit$=function(){g(Ib,1)};b(Ib,"$init0$",function(){var a;(a=Ib.superclazz)&&(a=a.$init0$)&&a.apply(this);this.stub=this.temporaryLostComponent=null},1);b(Ib,"$init$",function(){},1);b(Ib,"c$",function(){S(Ib,this,1)},1);b(Ib,"isFocusableWindow$",function(){return!0});b(Ib,"getModalBlocker$",function(){return null});b(Ib,"addWindowListener$java_awt_event_WindowListener",function(){});b(Ib,"addOwnedWindow$java_awt_Window", +function(){});b(Ib,"removeOwnedWindow$java_awt_Window",function(){});b(Ib,"getTemporaryLostComponent$",function(){return this.temporaryLostComponent});b(Ib,"setTemporaryLostComponent$java_awt_Component",function(a){var e=this.temporaryLostComponent;this.temporaryLostComponent=null==a||a.canBeFocusOwner$()?a:null;return e});b(Ib,"setStub$java_applet_AppletStub",function(a){this.stub=a});b(Ib,"isActive$",function(){return null!=this.stub?this.stub.isActive$():!1});b(Ib,"getDocumentBase$",function(){return this.stub.getDocumentBase$()}); +b(Ib,"getCodeBase$",function(){if(null!=this.stub)return this.stub.getCodeBase$();var a=this.getClass$().getName$().replace$CharSequence$CharSequence(".","/");try{return f(Pn(1).c$$S,["http://./"+a.substring$I$I(0,a.lastIndexOf$S("/")+1)])}catch(e){if(A(e,"java.net.MalformedURLException"))return null;throw e;}});b(Ib,"getParameter$S",function(a){return this.stub.getParameter$S(a)});b(Ib,"getAppletContext$",function(){return this.stub.getAppletContext$()});b(Ib,"setVisible$Z",function(a){Ib.superclazz.prototype.setVisible$Z.apply(this, +[a]);a&&this.\u79d8repaint$()});b(Ib,"resize$I$I",function(a,e){null==this.stub&&this.\u79d8resizeOriginal$I$I(a,e)});b(Ib,"resizeHTML$I$I",function(a,e){if(null!=this.\u79d8appletViewer&&(this.\u79d8appletViewer.html5Applet._resizeApplet(l(Integer.TYPE,-1,[a,e])),null!=this.stub)){var b=this.getRootPane$();b.invalidate$();Pn(2).currentManager$java_awt_Component(this).addInvalidComponent$javax_swing_JComponent(b)}});b(Ib,"\u79d8resizeOriginal$I$I",function(a,e){var b=this.size$();if(b.width!=a||b.height!= +e)Ib.superclazz.prototype.resize$I$I.apply(this,[a,e]),null!=this.stub&&this.stub.appletResize$I$I(a,e)});b(Ib,"resize$java_awt_Dimension",function(a){this.resize$I$I(a.width,a.height)});b(Ib,"showStatus$S",function(a){this.getAppletContext$().showStatus$S(a)});b(Ib,"getImage$java_net_URL",function(a){return this.getAppletContext$().getImage$java_net_URL(a)});b(Ib,"getImage$java_net_URL$S",function(a,e){try{return this.getImage$java_net_URL(f(Pn(1).c$$java_net_URL$S,[a,e]))}catch(b){if(A(b,"java.net.MalformedURLException"))return null; +throw b;}});b(Ib,"newAudioClip$java_net_URL",function(a){return f(Pn(3).c$$java_net_URL,[a])},1);b(Ib,"getAudioClip$java_net_URL",function(a){return this.getAppletContext$().getAudioClip$java_net_URL(a)});b(Ib,"getAudioClip$java_net_URL$S",function(a,e){try{return this.getAudioClip$java_net_URL(f(Pn(1).c$$java_net_URL$S,[a,e]))}catch(b){if(A(b,"java.net.MalformedURLException"))return null;throw b;}});b(Ib,"getAppletInfo$",function(){return null});b(Ib,"getLocale$",function(){var a=Ib.superclazz.prototype.getLocale$.apply(this, +[]);return null==a?Pn(4).getDefault$():a});b(Ib,"getParameterInfo$",function(){return null});b(Ib,"play$java_net_URL",function(a){a=this.getAudioClip$java_net_URL(a);null!=a&&a.play$()});b(Ib,"play$java_net_URL$S",function(a,e){var b=this.getAudioClip$java_net_URL$S(a,e);null!=b&&b.play$()});b(Ib,"init$",function(){});b(Ib,"start$",function(){});b(Ib,"stop$",function(){});b(Ib,"destroy$",function(){});n("3.2.4.07");var jx=q("java.awt");N(jx,"ActiveEvent");n("3.2.4.07");var kx=q("java.awt");N(kx,"Adjustable"); +n("3.2.4.07");var lx=q("java.awt"),Cd=j(lx,"AWTEvent",null,"java.util.EventObject");Cd.idnum=0;Cd.$clinit$=function(){g(Cd,1)};b(Cd,"$init0$",function(){var a;(a=Cd.superclazz)&&(a=a.$init0$)&&a.apply(this);this.bdata=null;this.num=this.id=0;this.isPosted=this.focusManagerIsDispatching=this.consumed=!1},1);b(Cd,"$init$",function(){this.focusManagerIsDispatching=this.consumed=!1},1);b(Cd,"setPosted$",function(){this.isPosted=!0});b(Cd,"getBData$",function(){return this.bdata});b(Cd,"setBData$BA",function(a){this.bdata= +a});b(Cd,"c$$java_awt_Event",function(a){Cd.c$$O$I.apply(this,[a.target,a.id])},1);b(Cd,"c$$O$I",function(a,e){Cd.superclazz.c$$O.apply(this,[a]);Cd.$init$.apply(this);this.id=e;this.num=++Cd.idnum;switch(e){case 1001:case 701:case 601:case 900:this.consumed=!0}},1);b(Cd,"c$",function(){Cd.superclazz.c$$O.apply(this,[null]);Cd.$init$.apply(this)},1);b(Cd,"setSource$O",function(a){if(this.source!==a){var e=null;if(k(a,"java.awt.Component"))for(e=a;null!=e&&null!=e.peer&&k(e.peer,"java.awt.peer.LightweightPeer");)e= +e.parent;this.source=a}});b(Cd,"getID$",function(){return this.id});b(Cd,"toString",function(){var a=null;k(this.source,"java.awt.Component")&&(a=this.source.getName$());return this.getClass$().getName$()+"["+this.paramString$()+"] on "+(null!=a?a:this.source)});b(Cd,"paramString$",function(){return""});b(Cd,"consume$",function(){switch(this.id){case 401:case 402:case 501:case 502:case 503:case 506:case 504:case 505:case 507:case 1100:case 1101:this.consumed=!0}});b(Cd,"isConsumed$",function(){return this.consumed}); +b(Cd,"copyPrivateDataInto$java_awt_AWTEvent",function(a){a.bdata=this.bdata});b(Cd,"dispatched$",function(){});n("3.2.4.07");var mx=q("java.awt"),M=j(mx,"AWTEventMulticaster",null,null,"java.awt.event.ComponentListener java.awt.event.ContainerListener java.awt.event.FocusListener java.awt.event.KeyListener java.awt.event.MouseListener java.awt.event.MouseMotionListener java.awt.event.WindowListener java.awt.event.WindowFocusListener java.awt.event.WindowStateListener java.awt.event.ActionListener java.awt.event.ItemListener java.awt.event.AdjustmentListener java.awt.event.TextListener java.awt.event.InputMethodListener java.awt.event.HierarchyListener java.awt.event.HierarchyBoundsListener java.awt.event.MouseWheelListener".split(" ")); +M.$clinit$=function(){g(M,1)};b(M,"$init0$",function(){var a;(a=M.superclazz)&&(a=a.$init0$)&&a.apply(this);this.b=this.a=null},1);b(M,"$init$",function(){},1);b(M,"c$$java_util_EventListener$java_util_EventListener",function(a,e){M.$init$.apply(this);this.a=a;this.b=e},1);b(M,"remove$java_util_EventListener",function(a){if(a===this.a)return this.b;if(a===this.b)return this.a;var e=M.removeInternal$java_util_EventListener$java_util_EventListener(this.a,a);a=M.removeInternal$java_util_EventListener$java_util_EventListener(this.b, +a);return e===this.a&&a===this.b?this:M.addInternal$java_util_EventListener$java_util_EventListener(e,a)});b(M,"componentResized$java_awt_event_ComponentEvent",function(a){this.a.componentResized$java_awt_event_ComponentEvent(a);this.b.componentResized$java_awt_event_ComponentEvent(a)});b(M,"componentMoved$java_awt_event_ComponentEvent",function(a){this.a.componentMoved$java_awt_event_ComponentEvent(a);this.b.componentMoved$java_awt_event_ComponentEvent(a)});b(M,"componentShown$java_awt_event_ComponentEvent", +function(a){this.a.componentShown$java_awt_event_ComponentEvent(a);this.b.componentShown$java_awt_event_ComponentEvent(a)});b(M,"componentHidden$java_awt_event_ComponentEvent",function(a){this.a.componentHidden$java_awt_event_ComponentEvent(a);this.b.componentHidden$java_awt_event_ComponentEvent(a)});b(M,"componentAdded$java_awt_event_ContainerEvent",function(a){this.a.componentAdded$java_awt_event_ContainerEvent(a);this.b.componentAdded$java_awt_event_ContainerEvent(a)});b(M,"componentRemoved$java_awt_event_ContainerEvent", +function(a){this.a.componentRemoved$java_awt_event_ContainerEvent(a);this.b.componentRemoved$java_awt_event_ContainerEvent(a)});b(M,"focusGained$java_awt_event_FocusEvent",function(a){this.a.focusGained$java_awt_event_FocusEvent(a);this.b.focusGained$java_awt_event_FocusEvent(a)});b(M,"focusLost$java_awt_event_FocusEvent",function(a){this.a.focusLost$java_awt_event_FocusEvent(a);this.b.focusLost$java_awt_event_FocusEvent(a)});b(M,"keyTyped$java_awt_event_KeyEvent",function(a){this.a.keyTyped$java_awt_event_KeyEvent(a); +this.b.keyTyped$java_awt_event_KeyEvent(a)});b(M,"keyPressed$java_awt_event_KeyEvent",function(a){this.a.keyPressed$java_awt_event_KeyEvent(a);this.b.keyPressed$java_awt_event_KeyEvent(a)});b(M,"keyReleased$java_awt_event_KeyEvent",function(a){this.a.keyReleased$java_awt_event_KeyEvent(a);this.b.keyReleased$java_awt_event_KeyEvent(a)});b(M,"mouseClicked$java_awt_event_MouseEvent",function(a){this.a.mouseClicked$java_awt_event_MouseEvent(a);this.b.mouseClicked$java_awt_event_MouseEvent(a)});b(M,"mousePressed$java_awt_event_MouseEvent", +function(a){this.a.mousePressed$java_awt_event_MouseEvent(a);this.b.mousePressed$java_awt_event_MouseEvent(a)});b(M,"mouseReleased$java_awt_event_MouseEvent",function(a){this.a.mouseReleased$java_awt_event_MouseEvent(a);this.b.mouseReleased$java_awt_event_MouseEvent(a)});b(M,"mouseEntered$java_awt_event_MouseEvent",function(a){this.a.mouseEntered$java_awt_event_MouseEvent(a);this.b.mouseEntered$java_awt_event_MouseEvent(a)});b(M,"mouseExited$java_awt_event_MouseEvent",function(a){this.a.mouseExited$java_awt_event_MouseEvent(a); +this.b.mouseExited$java_awt_event_MouseEvent(a)});b(M,"mouseDragged$java_awt_event_MouseEvent",function(a){this.a.mouseDragged$java_awt_event_MouseEvent(a);this.b.mouseDragged$java_awt_event_MouseEvent(a)});b(M,"mouseMoved$java_awt_event_MouseEvent",function(a){this.a.mouseMoved$java_awt_event_MouseEvent(a);this.b.mouseMoved$java_awt_event_MouseEvent(a)});b(M,"windowOpened$java_awt_event_WindowEvent",function(a){this.a.windowOpened$java_awt_event_WindowEvent(a);this.b.windowOpened$java_awt_event_WindowEvent(a)}); +b(M,"windowClosing$java_awt_event_WindowEvent",function(a){this.a.windowClosing$java_awt_event_WindowEvent(a);this.b.windowClosing$java_awt_event_WindowEvent(a)});b(M,"windowClosed$java_awt_event_WindowEvent",function(a){this.a.windowClosed$java_awt_event_WindowEvent(a);this.b.windowClosed$java_awt_event_WindowEvent(a)});b(M,"windowIconified$java_awt_event_WindowEvent",function(a){this.a.windowIconified$java_awt_event_WindowEvent(a);this.b.windowIconified$java_awt_event_WindowEvent(a)});b(M,"windowDeiconified$java_awt_event_WindowEvent", +function(a){this.a.windowDeiconified$java_awt_event_WindowEvent(a);this.b.windowDeiconified$java_awt_event_WindowEvent(a)});b(M,"windowActivated$java_awt_event_WindowEvent",function(a){this.a.windowActivated$java_awt_event_WindowEvent(a);this.b.windowActivated$java_awt_event_WindowEvent(a)});b(M,"windowDeactivated$java_awt_event_WindowEvent",function(a){this.a.windowDeactivated$java_awt_event_WindowEvent(a);this.b.windowDeactivated$java_awt_event_WindowEvent(a)});b(M,["windowStateChanged$java_awt_event_WindowEvent", +"windowStateChanged$"],function(a){this.a.windowStateChanged$(a);this.b.windowStateChanged$(a)});b(M,"windowGainedFocus$java_awt_event_WindowEvent",function(a){this.a.windowGainedFocus$java_awt_event_WindowEvent(a);this.b.windowGainedFocus$java_awt_event_WindowEvent(a)});b(M,"windowLostFocus$java_awt_event_WindowEvent",function(a){this.a.windowLostFocus$java_awt_event_WindowEvent(a);this.b.windowLostFocus$java_awt_event_WindowEvent(a)});b(M,["actionPerformed$java_awt_event_ActionEvent","actionPerformed$"], +function(a){this.a.actionPerformed$(a);this.b.actionPerformed$(a)});b(M,["itemStateChanged$java_awt_event_ItemEvent","itemStateChanged$"],function(a){this.a.itemStateChanged$(a);this.b.itemStateChanged$(a)});b(M,["adjustmentValueChanged$java_awt_event_AdjustmentEvent","adjustmentValueChanged$"],function(a){this.a.adjustmentValueChanged$(a);this.b.adjustmentValueChanged$(a)});b(M,["textValueChanged$java_awt_event_TextEvent","textValueChanged$"],function(a){this.a.textValueChanged$(a);this.b.textValueChanged$(a)}); +b(M,"inputMethodTextChanged$java_awt_event_InputMethodEvent",function(a){this.a.inputMethodTextChanged$java_awt_event_InputMethodEvent(a);this.b.inputMethodTextChanged$java_awt_event_InputMethodEvent(a)});b(M,"caretPositionChanged$java_awt_event_InputMethodEvent",function(a){this.a.caretPositionChanged$java_awt_event_InputMethodEvent(a);this.b.caretPositionChanged$java_awt_event_InputMethodEvent(a)});b(M,["hierarchyChanged$java_awt_event_HierarchyEvent","hierarchyChanged$"],function(a){this.a.hierarchyChanged$(a); +this.b.hierarchyChanged$(a)});b(M,"ancestorMoved$java_awt_event_HierarchyEvent",function(a){this.a.ancestorMoved$java_awt_event_HierarchyEvent(a);this.b.ancestorMoved$java_awt_event_HierarchyEvent(a)});b(M,"ancestorResized$java_awt_event_HierarchyEvent",function(a){this.a.ancestorResized$java_awt_event_HierarchyEvent(a);this.b.ancestorResized$java_awt_event_HierarchyEvent(a)});b(M,["mouseWheelMoved$java_awt_event_MouseWheelEvent","mouseWheelMoved$"],function(a){this.a.mouseWheelMoved$(a);this.b.mouseWheelMoved$(a)}); +b(M,"add$java_awt_event_ComponentListener$java_awt_event_ComponentListener",function(a,e){return M.addInternal$java_util_EventListener$java_util_EventListener(a,e)},1);b(M,"add$java_awt_event_ContainerListener$java_awt_event_ContainerListener",function(a,e){return M.addInternal$java_util_EventListener$java_util_EventListener(a,e)},1);b(M,"add$java_awt_event_FocusListener$java_awt_event_FocusListener",function(a,e){return M.addInternal$java_util_EventListener$java_util_EventListener(a,e)},1);b(M,"add$java_awt_event_KeyListener$java_awt_event_KeyListener", +function(a,e){return M.addInternal$java_util_EventListener$java_util_EventListener(a,e)},1);b(M,"add$java_awt_event_MouseListener$java_awt_event_MouseListener",function(a,e){return M.addInternal$java_util_EventListener$java_util_EventListener(a,e)},1);b(M,"add$java_awt_event_MouseMotionListener$java_awt_event_MouseMotionListener",function(a,e){return M.addInternal$java_util_EventListener$java_util_EventListener(a,e)},1);b(M,"add$java_awt_event_WindowListener$java_awt_event_WindowListener",function(a, +e){return M.addInternal$java_util_EventListener$java_util_EventListener(a,e)},1);b(M,"add$java_awt_event_WindowStateListener$java_awt_event_WindowStateListener",function(a,e){return M.addInternal$java_util_EventListener$java_util_EventListener(a,e)},1);b(M,"add$java_awt_event_WindowFocusListener$java_awt_event_WindowFocusListener",function(a,e){return M.addInternal$java_util_EventListener$java_util_EventListener(a,e)},1);b(M,"add$java_awt_event_ActionListener$java_awt_event_ActionListener",function(a, +e){return M.addInternal$java_util_EventListener$java_util_EventListener(a,e)},1);b(M,"add$java_awt_event_ItemListener$java_awt_event_ItemListener",function(a,e){return M.addInternal$java_util_EventListener$java_util_EventListener(a,e)},1);b(M,"add$java_awt_event_AdjustmentListener$java_awt_event_AdjustmentListener",function(a,e){return M.addInternal$java_util_EventListener$java_util_EventListener(a,e)},1);b(M,"add$java_awt_event_TextListener$java_awt_event_TextListener",function(a,e){return M.addInternal$java_util_EventListener$java_util_EventListener(a, +e)},1);b(M,"add$java_awt_event_InputMethodListener$java_awt_event_InputMethodListener",function(a,e){return M.addInternal$java_util_EventListener$java_util_EventListener(a,e)},1);b(M,"add$java_awt_event_HierarchyListener$java_awt_event_HierarchyListener",function(a,e){return M.addInternal$java_util_EventListener$java_util_EventListener(a,e)},1);b(M,"add$java_awt_event_HierarchyBoundsListener$java_awt_event_HierarchyBoundsListener",function(a,e){return M.addInternal$java_util_EventListener$java_util_EventListener(a, +e)},1);b(M,"add$java_awt_event_MouseWheelListener$java_awt_event_MouseWheelListener",function(a,e){return M.addInternal$java_util_EventListener$java_util_EventListener(a,e)},1);b(M,"remove$java_awt_event_ComponentListener$java_awt_event_ComponentListener",function(a,e){return M.removeInternal$java_util_EventListener$java_util_EventListener(a,e)},1);b(M,"remove$java_awt_event_ContainerListener$java_awt_event_ContainerListener",function(a,e){return M.removeInternal$java_util_EventListener$java_util_EventListener(a, +e)},1);b(M,"remove$java_awt_event_FocusListener$java_awt_event_FocusListener",function(a,e){return M.removeInternal$java_util_EventListener$java_util_EventListener(a,e)},1);b(M,"remove$java_awt_event_KeyListener$java_awt_event_KeyListener",function(a,e){return M.removeInternal$java_util_EventListener$java_util_EventListener(a,e)},1);b(M,"remove$java_awt_event_MouseListener$java_awt_event_MouseListener",function(a,e){return M.removeInternal$java_util_EventListener$java_util_EventListener(a,e)},1); +b(M,"remove$java_awt_event_MouseMotionListener$java_awt_event_MouseMotionListener",function(a,e){return M.removeInternal$java_util_EventListener$java_util_EventListener(a,e)},1);b(M,"remove$java_awt_event_WindowListener$java_awt_event_WindowListener",function(a,e){return M.removeInternal$java_util_EventListener$java_util_EventListener(a,e)},1);b(M,"remove$java_awt_event_WindowStateListener$java_awt_event_WindowStateListener",function(a,e){return M.removeInternal$java_util_EventListener$java_util_EventListener(a, +e)},1);b(M,"remove$java_awt_event_WindowFocusListener$java_awt_event_WindowFocusListener",function(a,e){return M.removeInternal$java_util_EventListener$java_util_EventListener(a,e)},1);b(M,"remove$java_awt_event_ActionListener$java_awt_event_ActionListener",function(a,e){return M.removeInternal$java_util_EventListener$java_util_EventListener(a,e)},1);b(M,"remove$java_awt_event_ItemListener$java_awt_event_ItemListener",function(a,e){return M.removeInternal$java_util_EventListener$java_util_EventListener(a, +e)},1);b(M,"remove$java_awt_event_AdjustmentListener$java_awt_event_AdjustmentListener",function(a,e){return M.removeInternal$java_util_EventListener$java_util_EventListener(a,e)},1);b(M,"remove$java_awt_event_TextListener$java_awt_event_TextListener",function(a,e){return M.removeInternal$java_util_EventListener$java_util_EventListener(a,e)},1);b(M,"remove$java_awt_event_InputMethodListener$java_awt_event_InputMethodListener",function(a,e){return M.removeInternal$java_util_EventListener$java_util_EventListener(a, +e)},1);b(M,"remove$java_awt_event_HierarchyListener$java_awt_event_HierarchyListener",function(a,e){return M.removeInternal$java_util_EventListener$java_util_EventListener(a,e)},1);b(M,"remove$java_awt_event_HierarchyBoundsListener$java_awt_event_HierarchyBoundsListener",function(a,e){return M.removeInternal$java_util_EventListener$java_util_EventListener(a,e)},1);b(M,"remove$java_awt_event_MouseWheelListener$java_awt_event_MouseWheelListener",function(a,e){return M.removeInternal$java_util_EventListener$java_util_EventListener(a, +e)},1);b(M,"addInternal$java_util_EventListener$java_util_EventListener",function(a,e){return null==a?e:null==e?a:f(M.c$$java_util_EventListener$java_util_EventListener,[a,e])},1);b(M,"removeInternal$java_util_EventListener$java_util_EventListener",function(a,e){return a===e||null==a?null:k(a,"java.awt.AWTEventMulticaster")?a.remove$java_util_EventListener(e):a},1);b(M,"getListenerCount$java_util_EventListener$Class",function(a,e){return k(a,"java.awt.AWTEventMulticaster")?M.getListenerCount$java_util_EventListener$Class(a.a, +e)+M.getListenerCount$java_util_EventListener$Class(a.b,e):e.isInstance$O(a)?1:0},1);b(M,"populateListenerArray$java_util_EventListenerA$java_util_EventListener$I",function(a,e,b){return k(e,"java.awt.AWTEventMulticaster")?(b=M.populateListenerArray$java_util_EventListenerA$java_util_EventListener$I(a,e.a,b),M.populateListenerArray$java_util_EventListenerA$java_util_EventListener$I(a,e.b,b)):a.getClass$().getComponentType$().isInstance$O(e)?(a[b]=e,b+1):b},1);b(M,"getListeners$java_util_EventListener$Class", +function(a,e){if(null==e)throw f(g("NullPointerException").c$$S,["Listener type should not be null"]);var b=M.getListenerCount$java_util_EventListener$Class(a,e),b=l(e,b);M.populateListenerArray$java_util_EventListenerA$java_util_EventListener$I(b,a,0);return b},1);b(M);n("3.2.4.07");var nx=q("java.awt"),Oq=[[0,"sun.awt.AppContext","java.util.HashMap","java.util.StringTokenizer","java.util.Collections","java.awt.VKCollection","StringBuilder"]],ig=function(a){return Oq[a]||(Oq[a]=g(Oq[0][a]))},da= +j(nx,"AWTKeyStroke");da.modifierKeywords=null;da.vks=null;da.APP_CONTEXT_CACHE_KEY=null;da.APP_CONTEXT_KEYSTROKE_KEY=null;da.$clinit$=function(){g(da,1);da.APP_CONTEXT_CACHE_KEY=f();da.APP_CONTEXT_KEYSTROKE_KEY=f(da)};b(da,"$init0$",function(){var a;(a=da.superclazz)&&(a=a.$init0$)&&a.apply(this);this.keyChar="\x00";this.modifiers=this.keyCode=0;this.onKeyRelease=!1},1);b(da,"$init$",function(){this.keyChar="\uffff";this.keyCode=0},1);b(da,"getAWTKeyStrokeClass$",function(){var a=ig(1).getAppContext$().get$O(x(da)); +null==a&&(a=x(da),ig(1).getAppContext$().put$O$O(x(da),x(da)));return a},1);b(da,"c$",function(){da.$init$.apply(this)},1);b(da,"c$$C$I$I$Z",function(a,e,b,d){da.$init$.apply(this);this.keyChar=a;this.keyCode=e;this.modifiers=b;this.onKeyRelease=d},1);b(da,"registerSubclass$Class",function(a){if(null==a)throw f(g("IllegalArgumentException").c$$S,["subclass cannot be null"]);var e=ig(1).getAppContext$().get$O(x(da));if(!(null!=e&&e.equals$O(a))){if(!x(da).isAssignableFrom$Class(a))throw f(g("ClassCastException").c$$S, +["subclass is not derived from AWTKeyStroke"]);e=da.getCtor$Class(a);if(null==e)throw f(g("IllegalArgumentException").c$$S,["subclass could not be instantiated"]);try{if(null==e.newInstance$OA(null))throw f(g("IllegalArgumentException").c$$S,["subclass could not be instantiated"]);}catch(b){if(A(b,"NoSuchMethodError"))throw f(g("IllegalArgumentException").c$$S,["subclass could not be instantiated"]);if(A(b,"ExceptionInInitializerError"))throw f(g("IllegalArgumentException").c$$S,["subclass could not be instantiated"]); +if(A(b,"InstantiationException"))throw f(g("IllegalArgumentException").c$$S,["subclass could not be instantiated"]);if(A(b,"IllegalAccessException"))throw f(g("IllegalArgumentException").c$$S,["subclass could not be instantiated"]);if(A(b,"java.lang.reflect.InvocationTargetException"))throw f(g("IllegalArgumentException").c$$S,["subclass could not be instantiated"]);throw b;}ig(1).getAppContext$().put$O$O(x(da),a);ig(1).getAppContext$().remove$O(da.APP_CONTEXT_CACHE_KEY);ig(1).getAppContext$().remove$O(da.APP_CONTEXT_KEYSTROKE_KEY)}}, +1);b(da,"getCtor$Class",function(a){try{return a.getDeclaredConstructor$ClassA(null)}catch(e){e.printStackTrace$()}return null},1);b(da,"getCachedStroke$C$I$I$Z",function(a,e,b,d){var h=ig(1).getAppContext$().get$O(da.APP_CONTEXT_CACHE_KEY),s=ig(1).getAppContext$().get$O(da.APP_CONTEXT_KEYSTROKE_KEY);null==h&&(h=f(ig(2)),ig(1).getAppContext$().put$O$O(da.APP_CONTEXT_CACHE_KEY,h));if(null==s)try{var g=da.getAWTKeyStrokeClass$(),s=da.getCtor$Class(g).newInstance$OA(null);ig(1).getAppContext$().put$O$O(da.APP_CONTEXT_KEYSTROKE_KEY, +s)}catch(p){if(A(p,"InstantiationException"))rb(da,this,function(){return!1});else if(A(p,"IllegalAccessException"))rb(da,this,function(){return!1});else if(A(p,"java.lang.reflect.InvocationTargetException"))rb(da,this,function(){return!1});else throw p;}s.keyChar=a;s.keyCode=e;s.modifiers=da.mapNewModifiers$I(da.mapOldModifiers$I(b));s.onKeyRelease=d;a=h.get$O(s);null==a&&(a=s,h.put$TK$TV(a,a),ig(1).getAppContext$().remove$O(da.APP_CONTEXT_KEYSTROKE_KEY));return a},1);b(da,"getAWTKeyStroke$C",function(a){return da.getCachedStroke$C$I$I$Z(a, +0,0,!1)},1);b(da,"getAWTKeyStroke$Character$I",function(a,e){if(null==a)throw f(g("IllegalArgumentException").c$$S,["keyChar cannot be null"]);return da.getCachedStroke$C$I$I$Z(a.charValue$(),0,e,!1)},1);b(da,"getAWTKeyStroke$I$I$Z",function(a,e,b){return da.getCachedStroke$C$I$I$Z("\uffff",a,e,b)},1);b(da,"getAWTKeyStroke$I$I",function(a,e){return da.getCachedStroke$C$I$I$Z("\uffff",a,e,!1)},1);b(da,"getAWTKeyStrokeForEvent$java_awt_event_KeyEvent",function(a){var e=a.getID$();switch(e){case 401:case 402:return da.getCachedStroke$C$I$I$Z("\uffff", +a.getKeyCode$(),a.getModifiers$(),402==e);case 400:return da.getCachedStroke$C$I$I$Z(a.getKeyChar$(),0,a.getModifiers$(),!1);default:return null}},1);b(da,"getAWTKeyStroke$S",function(a){if(null==a)throw f(g("IllegalArgumentException").c$$S,["String cannot be null"]);var e=f(ig(3).c$$S$S,[a," "]);a=0;var b=!1,d=!1,h=!1;if(null==da.modifierKeywords){var s=f(ig(2).c$$I$F,[8,1]);s.put$TK$TV("shift",Integer.valueOf$I(65));s.put$TK$TV("control",Integer.valueOf$I(130));s.put$TK$TV("ctrl",Integer.valueOf$I(130)); +s.put$TK$TV("meta",Integer.valueOf$I(260));s.put$TK$TV("alt",Integer.valueOf$I(520));s.put$TK$TV("altGraph",Integer.valueOf$I(8224));s.put$TK$TV("button1",Integer.valueOf$I(1024));s.put$TK$TV("button2",Integer.valueOf$I(2048));s.put$TK$TV("button3",Integer.valueOf$I(4096));da.modifierKeywords=ig(4).synchronizedMap$java_util_Map(s)}for(var s=e.countTokens$(),I=1;I<=s;I++){var p=e.nextToken$();if(d){if(1!=p.length$()||I!=s)break;return da.getCachedStroke$C$I$I$Z(p.charAt$I(0),0,a,!1)}if(h||b||I==s){if(I!= +s)break;e=da.getVKValue$S("VK_"+p);return da.getCachedStroke$C$I$I$Z("\uffff",e,a,b)}if(p.equals$O("released"))b=!0;else if(p.equals$O("pressed"))h=!0;else if(p.equals$O("typed"))d=!0;else if(p=da.modifierKeywords.get$O(p),null!=p)a|=p.intValue$();else break}throw f(g("IllegalArgumentException").c$$S,["String formatted incorrectly"]);},1);b(da,"getVKCollection$",function(){return null==da.vks?da.vks=f(ig(5)):da.vks},1);b(da,"addKeyCode$S$I",function(a,e){da.getVKCollection$().put$S$Integer(a,Integer.valueOf$I(e))}, +1);b(da,"getVKValue$S",function(a){var e=da.getVKCollection$(),b=e.findCode$S(a);if(null==b)throw e.put$S$Integer(a,Integer.valueOf$I(-1)),f(g("IllegalArgumentException").c$$S,["String formatted incorrectly"]);return b.intValue$()},1);b(da,"getKeyChar$",function(){return this.keyChar});b(da,"getKeyCode$",function(){return this.keyCode});b(da,"getModifiers$",function(){return this.modifiers});b(da,"isOnKeyRelease$",function(){return this.onKeyRelease});b(da,"getKeyEventType$",function(){return 0== +this.keyCode?400:this.onKeyRelease?402:401});b(da,"hashCode$",function(){return(this.keyChar.$c()+1)*(2*(this.keyCode+1))*(this.modifiers+1)+(this.onKeyRelease?1:2)});b(da,"equals$O",function(a){return k(a,"java.awt.AWTKeyStroke")?a.keyChar==this.keyChar&&a.keyCode==this.keyCode&&a.onKeyRelease==this.onKeyRelease&&a.modifiers==this.modifiers:!1});b(da,"toString",function(){return 0==this.keyCode?da.getModifiersText$I(this.modifiers)+"typed "+this.keyChar:da.getModifiersText$I(this.modifiers)+(this.onKeyRelease? +"released":"pressed")+" "+da.getVKText$I(this.keyCode)});b(da,"getModifiersText$I",function(a){var e=f(ig(6));0!=(a&64)&&e.append$S("shift ");0!=(a&128)&&e.append$S("ctrl ");0!=(a&256)&&e.append$S("meta ");0!=(a&512)&&e.append$S("alt ");0!=(a&8192)&&e.append$S("altGraph ");0!=(a&1024)&&e.append$S("button1 ");0!=(a&2048)&&e.append$S("button2 ");0!=(a&4096)&&e.append$S("button3 ");return e.toString()},1);b(da,"getVKText$I",function(a){var e=da.getVKCollection$();a=Integer.valueOf$I(a);e=e.findName$Integer(a); +return null!=e?e.substring$I(3):"UNKNOWN"},1);b(da,"readResolve$",function(){var a=this.getClass$(),e=da.getAWTKeyStrokeClass$();a.equals$O(e)||da.registerSubclass$Class(a);return da.getCachedStroke$C$I$I$Z(this.keyChar,this.keyCode,this.modifiers,this.onKeyRelease)});b(da,"mapOldModifiers$I",function(a){0!=(a&1)&&(a|=64);0!=(a&8)&&(a|=512);0!=(a&32)&&(a|=8192);0!=(a&2)&&(a|=128);0!=(a&4)&&(a|=256);return a&16320},1);b(da,"mapNewModifiers$I",function(a){0!=(a&64)&&(a|=1);0!=(a&512)&&(a|=8);0!=(a& +8192)&&(a|=32);0!=(a&128)&&(a|=2);0!=(a&256)&&(a|=4);return a},1);da.$_ASSERT_ENABLED_=ClassLoader.getClassAssertionStatus$(da);n("3.2.4.07");var ox=q("java.awt"),Pq=[[0,"java.util.Arrays"]],Dd=j(ox,"BasicStroke",null,null,["java.awt.Stroke","Cloneable"]);Dd.$clinit$=function(){g(Dd,1)};b(Dd,"$init0$",function(){var a;(a=Dd.superclazz)&&(a=a.$init0$)&&a.apply(this);this.miterlimit=this.cap=this.join=this.width=0;this.dash=null;this.dash_phase=0},1);b(Dd,"$init$",function(){},1);b(Dd,"c$$F$I$I$F$FA$F", +function(a,e,b,d,h,s){Dd.$init$.apply(this);if(0>a)throw f(g("IllegalArgumentException").c$$S,["negative width"]);if(0!=e&&1!=e&&2!=e)throw f(g("IllegalArgumentException").c$$S,["illegal end cap value"]);if(0==b){if(1>d)throw f(g("IllegalArgumentException").c$$S,["miter limit < 1"]);}else if(1!=b&&2!=b)throw f(g("IllegalArgumentException").c$$S,["illegal line join value"]);if(null!=h){if(0>s)throw f(g("IllegalArgumentException").c$$S,["negative dash phase"]);for(var I=!0,p=0;pD)throw f(g("IllegalArgumentException").c$$S,["negative dash length"]);}if(I)throw f(g("IllegalArgumentException").c$$S,["dash lengths all zero"]);}this.width=a;this.cap=e;this.join=b;this.miterlimit=d;null!=h&&(this.dash=h.clone$());this.dash_phase=s},1);b(Dd,"c$$F$I$I$F",function(a,e,b,d){Dd.c$$F$I$I$F$FA$F.apply(this,[a,e,b,d,null,0])},1);b(Dd,"c$$F$I$I",function(a,e,b){Dd.c$$F$I$I$F$FA$F.apply(this,[a,e,b,10,null,0])},1);b(Dd,"c$$F",function(a){Dd.c$$F$I$I$F$FA$F.apply(this, +[a,2,0,10,null,0])},1);b(Dd,"c$",function(){Dd.c$$F$I$I$F$FA$F.apply(this,[1,2,0,10,null,0])},1);b(Dd,["createStrokedShape$java_awt_Shape","createStrokedShape$"],function(a){return a});b(Dd,"getLineWidth$",function(){return this.width});b(Dd,"getEndCap$",function(){return this.cap});b(Dd,"getLineJoin$",function(){return this.join});b(Dd,"getMiterLimit$",function(){return this.miterlimit});b(Dd,"getDashArray$",function(){return null==this.dash?null:this.dash.clone$()});b(Dd,"getDashPhase$",function(){return this.dash_phase}); +b(Dd,"hashCode$",function(){var a=Float.floatToIntBits$F(this.width),a=31*a+this.join,a=31*a+this.cap,a=31*a+Float.floatToIntBits$F(this.miterlimit);if(null!=this.dash)for(var a=31*a+Float.floatToIntBits$F(this.dash_phase),e=0;ed||255a||255e||255b||255>16&255});b(K,"getGreen$",function(){return this.getRGB$()>> +8&255});b(K,"getBlue$",function(){return this.getRGB$()>>0&255});b(K,"getAlpha$",function(){return this.getRGB$()>>24&255});b(K,"getRGB$",function(){return this.value});b(K,"brighter$",function(){var a=this.getRed$(),e=this.getGreen$(),b=this.getBlue$();if(0==a&&0==e&&0==b)return f(K.c$$I$I$I,[3,3,3]);0a&&(a=3);0e&&(e=3);0b&&(b=3);return f(K.c$$I$I$I,[Math.min(a/0.7|0,255),Math.min(e/0.7|0,255),Math.min(b/0.7|0,255)])});b(K,"darker$",function(){return f(K.c$$I$I$I,[Math.max(0.7* +this.getRed$()|0,0),Math.max(0.7*this.getGreen$()|0,0),Math.max(0.7*this.getBlue$()|0,0)])});b(K,"hashCode$",function(){return this.value});b(K,"equals$O",function(a){return k(a,"java.awt.Color")&&a.getRGB$()==this.getRGB$()});b(K,"toString",function(){return this.getClass$().getName$()+"[r="+this.getRed$()+",g="+this.getGreen$()+",b="+this.getBlue$()+"]"});b(K,"decode$S",function(a){a=Integer.decode$S(a).intValue$();return f(K.c$$I$I$I,[a>>16&255,a>>8&255,a&255])},1);b(K,"getColor$S",function(a){return K.getColor$S$java_awt_Color(a, +null)},1);b(K,"getColor$S$java_awt_Color",function(a,e){try{var b=Integer.decode$S(a).intValue$();return f(K.c$$I$I$I,[b>>16&255,b>>8&255,b&255])}catch(d){if(A(d,"NumberFormatException"))return e;throw d;}},1);b(K,"getColor$S$I",function(a,e){var b=Integer.getInteger$S(a),b=null!=b?b.intValue$():e;return f(K.c$$I$I$I,[b>>16&255,b>>8&255,b>>0&255])},1);b(K,"HSBtoRGB$F$F$F",function(a,e,b){var d=0,h=0,s=0;if(0==e)d=h=s=255*b+0.5|0;else{a=6*(a-Math.floor(a));var f=a-Math.floor(a),g=b*(1-e),D=b*(1-e* +f);e=b*(1-e*(1-f));switch(a|0){case 0:d=255*b+0.5|0;h=255*e+0.5|0;s=255*g+0.5|0;break;case 1:d=255*D+0.5|0;h=255*b+0.5|0;s=255*g+0.5|0;break;case 2:d=255*g+0.5|0;h=255*b+0.5|0;s=255*e+0.5|0;break;case 3:d=255*g+0.5|0;h=255*D+0.5|0;s=255*b+0.5|0;break;case 4:d=255*e+0.5|0;h=255*g+0.5|0;s=255*b+0.5|0;break;case 5:d=255*b+0.5|0,h=255*g+0.5|0,s=255*D+0.5|0}}return-16777216|d<<16|h<<8|s<<0},1);b(K,"RGBtoHSB$I$I$I$FA",function(a,e,b,d){var h;null==d&&(d=l(Float.TYPE,[3]));var s=a>e?a:e;b>s&&(s=b);var f= +aa&&(a+=1)}d[0]=a;d[1]=h;d[2]=s/255;return d},1);b(K,"getHSBColor$F$F$F",function(a,e,b){return f(K.c$$I,[K.HSBtoRGB$F$F$F(a,e,b)])},1);b(K,"getRGBComponents$FA",function(a){a=null==a?l(Float.TYPE,[4]):a;null==this.frgbvalue?(a[0]=this.getRed$()/255,a[1]=this.getGreen$()/255,a[2]=this.getBlue$()/255,a[3]=this.getAlpha$()/255):(a[0]=this.frgbvalue[0],a[1]=this.frgbvalue[1], +a[2]=this.frgbvalue[2],a[3]=this.falpha);return a});b(K,"getRGBColorComponents$FA",function(a){a=null==a?l(Float.TYPE,[3]):a;null==this.frgbvalue?(a[0]=this.getRed$()/255,a[1]=this.getGreen$()/255,a[2]=this.getBlue$()/255):(a[0]=this.frgbvalue[0],a[1]=this.frgbvalue[1],a[2]=this.frgbvalue[2]);return a});b(K,"getComponents$FA",function(a){if(null==this.frgbvalue)return this.getRGBComponents$FA(a);var e=this.frgbvalue.length;a=null==a?l(Float.TYPE,[e+1]):a;for(var b=0;ba||a>this.numComponents-1)throw f(g("IllegalArgumentException").c$$S,["Component index out of range: "+a]);if(null==this.compName)switch(this.type){case 0:this.compName=l(String,-1,["X","Y","Z"]);break;case 1:this.compName=l(String,-1,["L","a","b"]);break;case 2:this.compName= +l(String,-1,["L","u","v"]);break;case 3:this.compName=l(String,-1,["Y","Cb","Cr"]);break;case 4:this.compName=l(String,-1,["Y","x","y"]);break;case 5:this.compName=l(String,-1,["Red","Green","Blue"]);break;case 6:this.compName=l(String,-1,["Gray"]);break;case 7:this.compName=l(String,-1,["Hue","Saturation","Value"]);break;case 8:this.compName=l(String,-1,["Hue","Lightness","Saturation"]);break;case 9:this.compName=l(String,-1,["Cyan","Magenta","Yellow","Black"]);break;case 11:this.compName=l(String, +-1,["Cyan","Magenta","Yellow"]);break;default:for(var e=l(String,[this.numComponents]),b=0;ba||a>this.numComponents-1)throw f(g("IllegalArgumentException").c$$S,["Component index out of range: "+a]);return 0});b(ie,"getMaxValue$I",function(a){if(0>a||a>this.numComponents-1)throw f(g("IllegalArgumentException").c$$S,["Component index out of range: "+a]);return 1});b(ie); +n("3.2.4.07");var Sp=q("java.awt"),xe={},Uq=[[0,"java.util.HashMap","java.awt.ComponentOrientation","java.util.Set","sun.awt.AppContext","swingjs.JSToolkit","java.awt.Toolkit","java.awt.Point","java.awt.KeyboardFocusManager","java.awt.event.ComponentEvent","java.util.Locale","java.awt.Dimension","java.awt.Rectangle",["java.awt.Component",".BaselineResizeBehavior"],"java.awt.Cursor","java.awt.event.PaintEvent","java.awt.EventQueue","java.awt.event.MouseWheelEvent","java.awt.AWTEventMulticaster","java.awt.event.ComponentListener", +"java.awt.event.FocusListener","java.awt.event.HierarchyListener","java.awt.event.HierarchyEvent","java.awt.event.HierarchyBoundsListener","java.awt.event.KeyListener","java.awt.event.MouseListener","java.awt.event.MouseMotionListener","java.awt.event.MouseWheelListener","java.awt.event.InputMethodListener","java.beans.PropertyChangeListener","Boolean","java.util.Collections","java.util.HashSet",["sun.awt.CausedFocusEvent",".Cause"],"javax.swing.JComponent",["java.awt.Component",".DummyRequestFocusController"], +"java.beans.PropertyChangeSupport","sun.awt.SunToolkit"]],O=function(a){return Uq[a]||(Uq[a]=g(Uq[0][a]))},r=j(Sp,"Component",function(){m(this,arguments,0,r)},null,"java.awt.image.ImageObserver");r.focusTraversalKeyPropertyNames=null;r.isInc=!1;r.incRate=0;r.coalesceMap=null;r.requestFocusController=null;r.$clinit$=function(){g(r,1);r.focusTraversalKeyPropertyNames=l(String,-1,["forwardFocusTraversalKeys","backwardFocusTraversalKeys","upCycleFocusTraversalKeys","downCycleFocusTraversalKeys"]);r.coalesceMap= +f(O(1))};b(r,"$init0$",function(){var a;(a=r.superclazz)&&(a=a.$init0$)&&a.apply(this);this.appContext=this.parent=this.peer=null;this.height=this.width=this.y=this.x=0;this.locale=this.cursor=this.peerFont=this.font=this.background=this.foreground=null;this.valid=this.enabled=this.visible=!1;this.name=this.popups=null;this.focusable=this.nameExplicitlySet=!1;this.isFocusTraversableOverridden=0;this.\u79d8isFocusableSet=!1;this.focusTraversalKeys=null;this.focusTraversalKeysEnabled=!1;this.minSize= +null;this.minSizeSet=!1;this.prefSize=null;this.prefSizeSet=!1;this.maxSize=null;this.maxSizeSet=!1;this.componentOrientation=null;this.newEventsOnly=!1;this.windowClosingException=this.inputMethodListener=this.mouseWheelListener=this.mouseMotionListener=this.mouseListener=this.keyListener=this.hierarchyBoundsListener=this.hierarchyListener=this.focusListener=this.componentListener=null;this.eventMask=0;this.changeSupportLock=this.changeSupport=null;this.isPacked=!1;this.boundsOp=0;this.backgroundEraseDisabled= +this.isAddNotifyComplete=!1;this.graphicsConfig=this.dropTarget=null;this.isWindow=!1;this.eventCache=null;this.autoFocusTransferOnDisposal=this.\u79d8j2sInvalidateOnAdd=this.coalescingEnabled=!1},1);b(r,"$init$",function(){this.enabled=this.visible=!0;this.nameExplicitlySet=this.valid=!1;this.focusable=!0;this.isFocusTraversableOverridden=0;this.focusTraversalKeysEnabled=!0;this.componentOrientation=O(2).UNKNOWN;this.newEventsOnly=!1;this.windowClosingException=null;this.eventMask=4096;this.changeSupportLock= +f();this.isPacked=!1;this.boundsOp=3;this.isAddNotifyComplete=!1;this.coalescingEnabled=xe.checkCoalescing.apply(this,[]);this.autoFocusTransferOnDisposal=this.\u79d8j2sInvalidateOnAdd=!0},1);b(r,"getAppContext$",function(){return this.appContext});b(r,"getChangeSupportLock",function(){return this.changeSupportLock},xe);b(r,"getBoundsOp$",function(){return this.boundsOp});b(r,"setBoundsOp$I",function(a){5==a?this.boundsOp=3:3==this.boundsOp&&(this.boundsOp=a)});b(r,"setBackgroundEraseDisabled$Z", +function(a){this.backgroundEraseDisabled=a});b(r,"getBackgroundEraseDisabled$",function(){return this.backgroundEraseDisabled});b(r,"requestFocusInWindow$java_awt_Component$sun_awt_CausedFocusEvent_Cause",function(a,e){return a.requestFocusInWindow$sun_awt_CausedFocusEvent_Cause(e)});b(r,"requestFocus$java_awt_Component$sun_awt_CausedFocusEvent_Cause",function(a,e){a.requestFocus$sun_awt_CausedFocusEvent_Cause(e)});b(r,"c$",function(){r.$init$.apply(this);this.setAppContext$()},1);b(r,"initializeFocusTraversalKeys$", +function(){this.focusTraversalKeys=l(O(3),[3])});b(r,"setAppContext$",function(){this.appContext=O(4).getAppContext$()});b(r,"constructComponentName$",function(){return null});b(r,"getName$",function(){null==this.name&&!this.nameExplicitlySet&&(null==this.name&&!this.nameExplicitlySet)&&(this.name=this.constructComponentName$());return this.name});b(r,"setName$S",function(a){var e;e=this.name;this.name=a;this.nameExplicitlySet=!0;this.firePropertyChange$S$O$O("name",e,a)});b(r,"getParent$",function(){return this.getParent_NoClientCode$()}); +b(r,"getParent_NoClientCode$",function(){return this.parent});b(r,"getContainer$",function(){return this.getParent$()});b(r,"getPeer$",function(){return this.isDisplayable$()?this.peer:null});b(r,"setDropTarget$java_awt_dnd_DropTarget",function(a){if(!(a===this.dropTarget||null!=this.dropTarget&&this.dropTarget.equals$O(a))){var e;if(null!=(e=this.dropTarget)){null!=this.peer&&this.dropTarget.removeNotify$java_awt_peer_ComponentPeer(this.peer);var b=this.dropTarget;this.dropTarget=null;try{b.setComponent$java_awt_Component(null)}catch(d){if(!A(d, +"IllegalArgumentException"))throw d;}}if(null!=(this.dropTarget=a))try{this.dropTarget.setComponent$java_awt_Component(this),null!=this.peer&&this.dropTarget.addNotify$java_awt_peer_ComponentPeer(this.peer)}catch(h){if(A(h,"IllegalArgumentException")){if(null!=e)try{e.setComponent$java_awt_Component(this),null!=this.peer&&this.dropTarget.addNotify$java_awt_peer_ComponentPeer(this.peer)}catch(f){if(!A(f,"IllegalArgumentException"))throw f;}}else throw h;}}});b(r,"getDropTarget$",function(){return this.dropTarget}); +b(r,"getGraphicsConfiguration$",function(){return O(5).getGraphicsConfiguration$()});b(r,"resetGC$",function(){});b(r,"getToolkit$",function(){return O(6).getDefaultToolkit$()});b(r,"isValid$",function(){return this.valid});b(r,"isDisplayable$",function(){return!0});b(r,"isVisible$",function(){return this.isVisible_NoClientCode$()});b(r,"isVisible_NoClientCode$",function(){return this.visible});b(r,"isRecursivelyVisible$",function(){return this.visible&&(null==this.parent||this.parent.isRecursivelyVisible$())}); +b(r,"pointRelativeToComponent$java_awt_Point",function(a){var e=this.getLocationOnScreen$();return f(O(7).c$$I$I,[a.x-e.x,a.y-e.y])});b(r,"getMousePosition$",function(){return null});b(r,"isSameOrAncestorOf$java_awt_Component$Z",function(a){return a===this});b(r,"isShowing$",function(){if(this.visible){var a=this.parent;return null==a||a.isShowing$()}return!1});b(r,"isEnabled$",function(){return this.isEnabledImpl$()});b(r,"isEnabledImpl$",function(){return this.enabled});b(r,"setEnabled$Z",function(a){this.enable$Z(a)}); +b(r,"enable$",function(){this.enabled||(this.enabled=!0,null!=this.peer&&(this.peer.setEnabled$Z(!0),this.visible&&this.updateCursorImmediately$()))});b(r,"enable$Z",function(a){a?this.enable$():this.disable$()});b(r,"disable$",function(){this.enabled&&(O(8).clearMostRecentFocusOwner$java_awt_Component(this),this.enabled=!1,null!=this.peer&&(this.peer.setEnabled$Z(!1),this.visible&&this.updateCursorImmediately$()))});b(r,"isDoubleBuffered$",function(){return!1});b(r,"enableInputMethods$Z",function(a){a? +0==(this.eventMask&4096)&&(this.isFocusOwner$(),this.eventMask|=4096):this.eventMask&=-4097});b(r,"setVisible$Z",function(a){a?this.show$():this.hide$()});b(r,"show$Z",function(a){this.setVisible$Z(a)});b(r,"show$",function(){if(!this.visible&&(this.visible=!0,this.updatePeerVisibility$Z(!0),null!=this.componentListener||0!=(this.eventMask&1)||O(6).enabledOnToolkit$J(1))){var a=f(O(9).c$$java_awt_Component$I,[this,102]);O(6).getEventQueue$().postEvent$java_awt_AWTEvent(a)}a=this.parent;null!=a&&a.invalidate$()}); +b(r,"updatePeerVisibility$Z",function(a){this.updatePeerVisibilityOrig$Z(a)});b(r,"updatePeerVisibilityOrig$Z",function(a){this.peer.setVisible$Z(a);this.createHierarchyEvents$I$java_awt_Component$java_awt_Container$J$Z(1400,this,this.parent,4,O(6).enabledOnToolkit$J(32768));k(this.peer,"java.awt.peer.LightweightPeer")&&this.\u79d8repaint$();this.updateCursorImmediately$()});b(r,"getOrCreatePeer$",function(){return this.peer});b(r,"containsFocus$",function(){return this.isFocusOwner$()});b(r,"clearMostRecentFocusOwnerOnHide$", +function(){O(8).clearMostRecentFocusOwner$java_awt_Component(this)});b(r,"clearCurrentFocusCycleRootOnHide$",function(){});b(r,"hide$",function(){this.isPacked=!1;if(this.visible&&(this.clearCurrentFocusCycleRootOnHide$(),this.clearMostRecentFocusOwnerOnHide$(),this.visible=!1,this.mixOnHiding$Z(this.isLightweight$()),this.containsFocus$()&&O(8).isAutoFocusTransferEnabled$()&&this.transferFocus$Z(!0),this.updatePeerVisibility$Z(!1),null!=this.componentListener||0!=(this.eventMask&1)||O(6).enabledOnToolkit$J(1))){var a= +f(O(9).c$$java_awt_Component$I,[this,103]);O(6).getEventQueue$().postEvent$java_awt_AWTEvent(a)}a=this.parent;!this.isWindow&&null!=a&&a.invalidate$()});b(r,"getForeground$",function(){return this.getForeground_NoClient$()});b(r,"getForeground_NoClient$",function(){var a=this.foreground;if(null!=a)return a;a=this.parent;return null!=a?a.getForeground$():null});b(r,"setForeground$java_awt_Color",function(a){var e=this.foreground;this.foreground=a;null!=this.peer&&(a=this.getForeground$(),null!=a&& +this.peer.setForeground$java_awt_Color(a));this.firePropertyChange$S$O$O("foreground",e,a)});b(r,"isForegroundSet$",function(){return null!=this.foreground});b(r,"getBackground$",function(){return this.getBackground_NoClient$()});b(r,"getBackground_NoClient$",function(){var a=this.background;if(null!=a)return a;a=this.parent;return null!=a?a.getBackground$():null});b(r,"setBackground$java_awt_Color",function(a){var e=this.background;this.background=a;null!=this.peer&&(a=this.getBackground$(),null!= +a&&this.peer.setBackground$java_awt_Color(a));this.firePropertyChange$S$O$O("background",e,a)});b(r,"isBackgroundSet$",function(){return null!=this.background});b(r,"getFont$",function(){return this.getFont_NoClientCode$()});b(r,"getFont_NoClientCode$",function(){var a=this.font;if(null!=a)return a;a=this.parent;return null!=a?a.getFont_NoClientCode$():null});b(r,"setFont$java_awt_Font",function(a){var e,b;e=this.font;b=this.font=a;null!=this.peer&&(a=this.getFont$(),null!=a&&(this.peer.setFont$java_awt_Font(a), +this.peerFont=a));this.firePropertyChange$S$O$O("font",e,b);a!==e&&(null==e||!e.equals$O(a))&&this.invalidateIfValid$()});b(r,"isFontSet$",function(){return null!=this.font});b(r,"getLocale$",function(){var a=this.locale;return null!=a?a:O(10).ENGLISH});b(r,"setLocale$java_util_Locale",function(a){var e=this.locale;this.locale=a;this.firePropertyChange$S$O$O("locale",e,a);this.invalidateIfValid$()});b(r,"getLocation$",function(){return this.location$()});b(r,"getLocationOnScreen$",function(){return this.getLocationOnScreen_NoTreeLock$()}); +b(r,"getLocationOnScreen_NoTreeLock$",function(){if(this.isShowing$()){if(this.isLightweight$())for(var a=this.getNativeContainer$(),e=a.peer.getLocationOnScreen$(),b=this;b!==a;b=b.getParent$())e.x+=b.x,e.y+=b.y;else e=this.peer.getLocationOnScreen$();return e}throw f(g("java.awt.IllegalComponentStateException").c$$S,["component must be showing on the screen to determine its location"]);});b(r,"location$",function(){return xe.location_NoClientCode.apply(this,[])});b(r,"location_NoClientCode",function(){return f(O(7).c$$I$I, +[this.x,this.y])},xe);b(r,"setLocation$I$I",function(a,e){this.setBoundsOp$I(1);this.setBounds$I$I$I$I(a,e,this.width,this.height)});b(r,"move$I$I",function(a,e){this.setLocation$I$I(a,e)});b(r,"setLocation$java_awt_Point",function(a){this.setLocation$I$I(a.x,a.y)});b(r,"getSize$",function(){return this.size$()});b(r,"size$",function(){return f(O(11).c$$I$I,[this.width,this.height])});b(r,"setSize$I$I",function(a,e){this.resize$I$I(a,e)});b(r,"resize$I$I",function(a,e){this.setBoundsOp$I(2);this.setBounds$I$I$I$I(this.x, +this.y,a,e)});b(r,"setSize$java_awt_Dimension",function(a){this.setSize$I$I(a.width,a.height)});b(r,"setBounds$I$I$I$I",function(a,e,b,d){this.reshape$I$I$I$I(a,e,b,d)});b(r,"setBounds$java_awt_Rectangle",function(a){this.setBounds$I$I$I$I(a.x,a.y,a.width,a.height)});b(r,"reshape$I$I$I$I",function(a,e,b,d){try{this.setBoundsOp$I(3);b=Math.max(0,b);d=Math.max(0,d);var h=this.width!=b||this.height!=d,f=this.x!=a||this.y!=e;if(h||f){var g=this.x,p=this.y,D=this.width,j=this.height;this.x=a;this.y=e; +this.width=b;this.height=d;h&&(this.isPacked=!1);var k=!0;this.mixOnReshaping$();null!=this.getOrCreatePeer$()&&(xe.reshapeNativePeer$I$I$I$I$I.apply(this,[a,e,b,d,this.getBoundsOp$()]),h=D!=this.width||j!=this.height,f=g!=this.x||p!=this.y,this.isJ2SWindowButNotJInternalFrame$()&&(k=!1),h&&this.invalidate$(),null!=this.parent&&this.parent.invalidateIfValid$());k&&xe.notifyNewBounds$Z$Z.apply(this,[h,f]);h&&xe.repaintParentIfNeeded$I$I$I$I.apply(this,[g,p,D,j])}}finally{this.setBoundsOp$I(5)}});b(r, +"repaintParentIfNeeded$I$I$I$I",function(a,e,b,d){null!=this.parent&&(k(this.peer,"java.awt.peer.LightweightPeer")&&this.isShowing$())&&(this.parent.repaint$I$I$I$I(a,e,b,d),this.\u79d8repaint$())},xe);b(r,"reshapeNativePeer$I$I$I$I$I",function(a,e,b,d,h){for(var f=this.parent;null!=f&&k(f.peer,"java.awt.peer.LightweightPeer");f=f.parent)a+=f.x,e+=f.y;this.peer.setBounds$I$I$I$I$I(a,e,b,d,h)},xe);b(r,"notifyNewBounds$Z$Z",function(a,e){if(null!=this.componentListener||0!=(this.eventMask&1)||O(6).enabledOnToolkit$J(1)){if(a){var b= +f(O(9).c$$java_awt_Component$I,[this,101]);O(6).getEventQueue$().postEvent$java_awt_AWTEvent(b)}e&&(b=f(O(9).c$$java_awt_Component$I,[this,100]),O(6).getEventQueue$().postEvent$java_awt_AWTEvent(b))}else k(this,"java.awt.Container")&&0a||0>e)throw f(g("IllegalArgumentException").c$$S,["Width and height must be >= 0"]);return-1});b(r,"getBaselineResizeBehavior$",function(){return O(13).OTHER});b(r,"doLayout$",function(){this.layout$()});b(r,"layout$", +function(){});b(r,"validate$",function(){this.getTreeLock$();var a=this.peer,e=this.isValid$();if(!e&&null!=a){var b=this.getFont$(),d=this.peerFont;if(b!==d&&(null==d||!d.equals$O(b)))a.setFont$java_awt_Font(b),this.peerFont=b;a.layout$()}this.valid=!0;e||this.mixOnValidating$()});b(r,"invalidate$",function(){this.invalidateComp$()});b(r,"invalidateComp$",function(){this.valid=!1;this.isPreferredSizeSet$()||(this.prefSize=null);this.isMinimumSizeSet$()||(this.minSize=null);this.isMaximumSizeSet$()|| +(this.maxSize=null);null!=this.parent&&this.\u79d8j2sInvalidateOnAdd&&this.parent.invalidateIfValid$()});b(r,"invalidateIfValid$",function(){this.isValid$()&&this.invalidate$()});b(r,"getGraphics$",function(){var a;null!=(a=null==this.parent?null:this.parent.getGraphics$())&&a.setFont$java_awt_Font(this.getFont$());return a});b(r,"getTreeLock$",function(){return this});b(r,"getFontMetrics$java_awt_Font",function(a){return a.getFontMetrics$()});b(r,"setCursor$java_awt_Cursor",function(a){this.cursor= +a;this.updateCursorImmediately$()});b(r,"updateCursorImmediately$",function(){null!=this.peer&&this.peer.updateCursorImmediately$()});b(r,"getCursor$",function(){return this.getCursor_NoClientCode$()});b(r,"getCursor_NoClientCode$",function(){var a=this.cursor;if(null!=a)return a;a=this.parent;return null!=a?a.getCursor_NoClientCode$():O(14).getPredefinedCursor$I(0)});b(r,"isCursorSet$",function(){return null!=this.cursor});b(r,"paint$java_awt_Graphics",function(){});b(r,"update$java_awt_Graphics", +function(a){this.paint$java_awt_Graphics(a)});b(r,"paintAll$java_awt_Graphics",function(){});b(r,"lightweightPaint$java_awt_Graphics",function(a){this.lwPaintComp$java_awt_Graphics(a)});b(r,"lwPaintComp$java_awt_Graphics",function(a){this.paint$java_awt_Graphics(a)});b(r,"paintHeavyweightComponents$java_awt_Graphics",function(){});b(r,"repaint$",function(){this.repaint$J$I$I$I$I(0,0,0,this.width,this.height)});b(r,"repaint$J",function(a){this.repaint$J$I$I$I$I(a,0,0,this.width,this.height)});b(r, +"repaint$I$I$I$I",function(a,e,b,d){this.repaint$J$I$I$I$I(0,a,e,b,d)});b(r,"repaint$J$I$I$I$I",function(a,e,b,d,h){this.\u79d8repaintCmp$J$I$I$I$I(a,e,b,d,h)});b(r,"\u79d8repaintCmp$J$I$I$I$I",function(a,e,b,d,h){this.canPaint$()?null!=this.peer&&(this.isVisible$()&&0e?0:e),this.y+(0>b?0:b),d>this.width?this.width:d,h>this.height?this.height:h)});b(r,"canPaint$",function(){return!k(this.peer,"java.awt.peer.LightweightPeer")});b(r,"print$java_awt_Graphics",function(a){this.paint$java_awt_Graphics(a)});b(r,"printAll$java_awt_Graphics",function(){});b(r,"printHeavyweightComponents$java_awt_Graphics",function(){});b(r,["imageUpdate$java_awt_Image$I$I$I$I$I","imageUpdate$"],function(){return!1});b(r,"createImage$java_awt_image_ImageProducer",function(a){return this.isDisplayable$()? +this.getToolkit$().createImage$java_awt_Component$java_awt_image_ImageProducer(this,a):null});b(r,"createImage$I$I",function(a,e){return this.isDisplayable$()?this.getToolkit$().createImage$java_awt_Component$I$I(this,a,e):null});b(r,"createVolatileImage$I$I",function(){return null});b(r,"createVolatileImage$I$I$java_awt_ImageCapabilities",function(a,e){return this.createVolatileImage$I$I(a,e)});b(r,"prepareImage$java_awt_Image$java_awt_image_ImageObserver",function(a,e){return this.prepareImage$java_awt_Image$I$I$java_awt_image_ImageObserver(a, +-1,-1,e)});b(r,"prepareImage$java_awt_Image$I$I$java_awt_image_ImageObserver",function(){return!1});b(r,"checkImage$java_awt_Image$java_awt_image_ImageObserver",function(a,e){return this.checkImage$java_awt_Image$I$I$java_awt_image_ImageObserver(a,-1,-1,e)});b(r,"checkImage$java_awt_Image$I$I$java_awt_image_ImageObserver",function(){return 35});b(r,"setIgnoreRepaint$Z",function(){});b(r,"getIgnoreRepaint$",function(){return!1});b(r,"contains$java_awt_Point",function(a){return this.contains$I$I(a.x, +a.y)});b(r,"contains$I$I",function(a,e){return this.inside$I$I(a,e)});b(r,"inside$I$I",function(a,e){return 0<=a&&aa||3<=a)throw f(g("IllegalArgumentException").c$$S,["invalid focus traversal key identifier"]); +this.setFocusTraversalKeys_NoIDCheck$I$java_util_Set(a,e)});b(r,"getFocusTraversalKeys$I",function(a){if(0>a||3<=a)throw f(g("IllegalArgumentException").c$$S,["invalid focus traversal key identifier"]);return this.getFocusTraversalKeys_NoIDCheck$I(a)});b(r,"setFocusTraversalKeys_NoIDCheck$I$java_util_Set",function(a,e){var b;null==this.focusTraversalKeys&&this.initializeFocusTraversalKeys$();if(null!=e)for(var d=e.iterator$();d.hasNext$()&&(b=d.next$(),1);){if(null==b)throw f(g("IllegalArgumentException").c$$S, +["cannot set null focus traversal key"]);if("\uffff"!=b.getKeyChar$())throw f(g("IllegalArgumentException").c$$S,["focus traversal keys cannot map to KEY_TYPED events"]);for(var h=0;ha||3<=a)throw f(g("IllegalArgumentException").c$$S,["invalid focus traversal key identifier"]); +return null!=this.focusTraversalKeys&&null!=this.focusTraversalKeys[a]});b(r,"setFocusTraversalKeysEnabled$Z",function(a){var e;e=this.focusTraversalKeysEnabled;this.focusTraversalKeysEnabled=a;this.firePropertyChange$S$Z$Z("focusTraversalKeysEnabled",e,a)});b(r,"getFocusTraversalKeysEnabled$",function(){return this.focusTraversalKeysEnabled});b(r,"requestFocus$",function(){this.requestFocusHelper$Z$Z(!1,!0)});b(r,"requestFocus$sun_awt_CausedFocusEvent_Cause",function(a){this.requestFocusHelper$Z$Z$sun_awt_CausedFocusEvent_Cause(!1, +!0,a)});b(r,"requestFocus$Z",function(a){return this.requestFocusHelper$Z$Z(a,!0)});b(r,"requestFocus$Z$sun_awt_CausedFocusEvent_Cause",function(a,e){return this.requestFocusHelper$Z$Z$sun_awt_CausedFocusEvent_Cause(a,!0,e)});b(r,"requestFocusInWindow$",function(){return this.requestFocusHelper$Z$Z(!1,!1)});b(r,"requestFocusInWindow$sun_awt_CausedFocusEvent_Cause",function(a){return this.requestFocusHelper$Z$Z$sun_awt_CausedFocusEvent_Cause(!1,!1,a)});b(r,"requestFocusInWindow$Z",function(a){return this.requestFocusHelper$Z$Z(a, +!1)});b(r,"requestFocusInWindow$Z$sun_awt_CausedFocusEvent_Cause",function(a,e){return this.requestFocusHelper$Z$Z$sun_awt_CausedFocusEvent_Cause(a,!1,e)});b(r,"requestFocusHelper$Z$Z",function(a,e){return this.requestFocusHelper$Z$Z$sun_awt_CausedFocusEvent_Cause(a,e,O(33).UNKNOWN)});b(r,"requestFocusHelper$Z$Z$sun_awt_CausedFocusEvent_Cause",function(a,e,b){if(!xe.isRequestFocusAccepted$Z$Z$sun_awt_CausedFocusEvent_Cause.apply(this,[a,e,b]))return!1;O(8).setMostRecentFocusOwner$java_awt_Component(this); +for(var d=this;null!=d&&!d.isWindowOrJSApplet$();){if(!d.isVisible$())return!1;d=d.parent}var h=this.peer,d=k(h,"java.awt.peer.LightweightPeer")?this.getNativeContainer$():this;if(null==d||!d.isVisible$())return!1;h=d.peer;if(null==h)return!1;d=O(16).getMostRecentEventTime$();(a=h.requestFocus$java_awt_Component$Z$Z$J$sun_awt_CausedFocusEvent_Cause(this,a,e,d,b))||O(8).getCurrentKeyboardFocusManager$sun_awt_AppContext(this.appContext).dequeueKeyEvents$J$java_awt_Component(d,this);return a});b(r,"isWindowOrJSApplet$", +function(){return k(this,"java.awt.Window")||k(this,"java.applet.JSApplet")});b(r,"isJ2SWindowButNotJInternalFrame$",function(){return k(this,"java.awt.Window")&&"InternalFrameUI"!=this.getUIClassID$()});b(r,"isRequestFocusAccepted$Z$Z$sun_awt_CausedFocusEvent_Cause",function(a,e,b){if(!this.isFocusable$()||!this.isVisible$()||null==this.peer)return!1;var d=this.getContainingWindow$();if(null==d||!d.isFocusableWindow$())return!1;var h=O(8).getMostRecentFocusOwner$java_awt_Window(d);null==h&&(h=O(8).getCurrentKeyboardFocusManager$().getFocusOwner$(), +null!=h&&h.getContainingWindow$()!==d&&(h=null));if(h===this||null==h||O(33).ACTIVATION===b)return!0;null==r.requestFocusController&&(r.requestFocusController=O(34).focusController);return r.requestFocusController.acceptRequestFocus$(h,this,a,e,b)},xe);b(r,"setRequestFocusController$sun_awt_RequestFocusController",function(a){r.requestFocusController=null==a?f(O(35)):a},1);b(r,"getFocusCycleRootAncestor$",function(){for(var a=this.parent;null!=a&&!a.isFocusCycleRoot$();)a=a.parent;return a});b(r, +"isFocusCycleRoot$java_awt_Container",function(a){return this.isFocusCycleRootComp$java_awt_Container(a)});b(r,"isFocusCycleRootComp$java_awt_Container",function(a){return this.getFocusCycleRootAncestor$()===a});b(r,"getTraversalRoot$",function(){return this.getFocusCycleRootAncestor$()});b(r,"transferFocus$",function(){this.nextFocus$()});b(r,"nextFocus$",function(){this.transferFocus$Z(!1)});b(r,"transferFocus$Z",function(a){var e=this.getNextFocusCandidate$(),b=!1;null!=e&&(!e.isFocusOwner$()&& +e!==this)&&(b=e.requestFocusInWindow$sun_awt_CausedFocusEvent_Cause(O(33).TRAVERSAL_FORWARD));a&&!b&&O(8).getCurrentKeyboardFocusManager$().clearGlobalFocusOwner$();return b});b(r,"getNextFocusCandidate$",function(){for(var a=this.getTraversalRoot$(),e=this;null!=a&&(!a.isShowing$()||!a.canBeFocusOwner$());)e=a,a=e.getFocusCycleRootAncestor$();var b=null;null!=a&&(b=a.getFocusTraversalPolicy$(),e=b.getComponentAfter$java_awt_Container$java_awt_Component(a,e),null==e&&(e=b.getDefaultComponent$java_awt_Container(a)), +b=e);return b});b(r,"transferFocusBackward$",function(){this.transferFocusBackward$Z(!1)});b(r,"transferFocusBackward$Z",function(){for(var a=this.getTraversalRoot$(),e=this;null!=a&&(!a.isShowing$()||!a.canBeFocusOwner$());)e=a,a=e.getFocusCycleRootAncestor$();var b=!1;if(null!=a){var d=a.getFocusTraversalPolicy$(),e=d.getComponentBefore$java_awt_Container$java_awt_Component(a,e);null==e&&(e=d.getDefaultComponent$java_awt_Container(a));null!=e&&(b=e.requestFocusInWindow$sun_awt_CausedFocusEvent_Cause(O(33).TRAVERSAL_BACKWARD))}b|| +O(8).getCurrentKeyboardFocusManager$().clearGlobalFocusOwner$();return b});b(r,"transferFocusUpCycle$",function(){var a;for(a=this.getFocusCycleRootAncestor$();null!=a&&(!a.isShowing$()||!a.isFocusable$()||!a.isEnabled$());a=a.getFocusCycleRootAncestor$());if(null!=a){var e=a.getFocusCycleRootAncestor$();O(8).getCurrentKeyboardFocusManager$().setGlobalCurrentFocusCycleRoot$java_awt_Container(null!=e?e:a);a.requestFocus$sun_awt_CausedFocusEvent_Cause(O(33).TRAVERSAL_UP)}else a=this.getContainingWindow$(), +null!=a&&(e=a.getFocusTraversalPolicy$().getDefaultComponent$java_awt_Container(a),null!=e&&(O(8).getCurrentKeyboardFocusManager$().setGlobalCurrentFocusCycleRoot$java_awt_Container(a),e.requestFocus$sun_awt_CausedFocusEvent_Cause(O(33).TRAVERSAL_UP)))});b(r,"hasFocus$",function(){return O(8).getCurrentKeyboardFocusManager$().getFocusOwner$()===this});b(r,"isFocusOwner$",function(){return this.hasFocus$()});b(r,"setAutoFocusTransferOnDisposal$Z",function(a){this.autoFocusTransferOnDisposal=a});b(r, +"isAutoFocusTransferOnDisposal$",function(){return this.autoFocusTransferOnDisposal});b(r,"add$java_awt_PopupMenu",function(a){a.setInvoker$java_awt_Component(this)});b(r,"paramString$",function(){return this.paramStringComp$()});b(r,"paramStringComp$",function(){var a=this.getName$(),a=(null!=a?a:"")+(this.__JSID__+"");this.isValid$()||(a+=",invalid");this.visible||(a+=",hidden");this.enabled||(a+=",disabled");return a+=",parent:"+(null==this.parent?null:this.parent.getName$())+","+this.x+","+this.y+ +","+this.width+"x"+this.height});b(r,"toString",function(){return this.getClass$().getName$()+"["+this.paramString$()+"]"});b(r,"addPropertyChangeListener$java_beans_PropertyChangeListener",function(a){xe.getChangeSupportLock.apply(this,[]);null!=a&&(null==this.changeSupport&&(this.changeSupport=f(O(36).c$$O,[this])),this.changeSupport.addPropertyChangeListener$java_beans_PropertyChangeListener(a))});b(r,"removePropertyChangeListener$java_beans_PropertyChangeListener",function(a){xe.getChangeSupportLock.apply(this, +[]);null==a||null==this.changeSupport||this.changeSupport.removePropertyChangeListener$java_beans_PropertyChangeListener(a)});b(r,"getPropertyChangeListeners$",function(){xe.getChangeSupportLock.apply(this,[]);return null==this.changeSupport?l(O(29),[0]):this.changeSupport.getPropertyChangeListeners$()});b(r,"addPropertyChangeListener$S$java_beans_PropertyChangeListener",function(a,e){xe.getChangeSupportLock.apply(this,[]);null!=e&&(null==this.changeSupport&&(this.changeSupport=f(O(36).c$$O,[this])), +this.changeSupport.addPropertyChangeListener$S$java_beans_PropertyChangeListener(a,e))});b(r,"removePropertyChangeListener$S$java_beans_PropertyChangeListener",function(a,e){xe.getChangeSupportLock.apply(this,[]);null==e||null==this.changeSupport||this.changeSupport.removePropertyChangeListener$S$java_beans_PropertyChangeListener(a,e)});b(r,"getPropertyChangeListeners$S",function(a){xe.getChangeSupportLock.apply(this,[]);return null==this.changeSupport?l(O(29),[0]):this.changeSupport.getPropertyChangeListeners$S(a)}); +b(r,"firePropertyChange$S$O$O",function(a,e,b){var d;xe.getChangeSupportLock.apply(this,[]);d=this.changeSupport;null==d||null!=e&&null!=b&&e.equals$O(b)||d.firePropertyChange$S$O$O(a,e,b)});b(r,"firePropertyChange$S$Z$Z",function(a,e,b){var d=this.changeSupport;null==d||e==b||d.firePropertyChange$S$O$O(a,O(30).valueOf$Z(e),O(30).valueOf$Z(b))});b(r,"firePropertyChange$S$I$I",function(a,e,b){var d=this.changeSupport;null==d||e==b||d.firePropertyChange$S$O$O(a,Integer.valueOf$I(e),Integer.valueOf$I(b))}); +b(r,"firePropertyChange$S$B$B",function(a,e,b){null==this.changeSupport||e==b||this.firePropertyChange$S$O$O(a,Byte.valueOf$B((Tp[0]=e,Tp[0])),Byte.valueOf$B((Tp[0]=b,Tp[0])))});b(r,"firePropertyChange$S$C$C",function(a,e,b){null==this.changeSupport||e==b||this.firePropertyChange$S$O$O(a,f(Character.c$$C,[e]),f(Character.c$$C,[b]))});b(r,"firePropertyChange$S$H$H",function(a,e,b){null==this.changeSupport||e==b||this.firePropertyChange$S$O$O(a,Short.valueOf$H(e),Short.valueOf$H(b))});b(r,"firePropertyChange$S$J$J", +function(a,e,b){null==this.changeSupport||e==b||this.firePropertyChange$S$O$O(a,Long.valueOf$J(e),Long.valueOf$J(b))});b(r,"firePropertyChange$S$F$F",function(a,e,b){null==this.changeSupport||e==b||this.firePropertyChange$S$O$O(a,Float.valueOf$F(e),Float.valueOf$F(b))});b(r,"firePropertyChange$S$D$D",function(a,e,b){null==this.changeSupport||e==b||this.firePropertyChange$S$O$O(a,Double.valueOf$D(e),Double.valueOf$D(b))});b(r,"setComponentOrientation$java_awt_ComponentOrientation",function(a){var e= +this.componentOrientation;this.componentOrientation=a;this.firePropertyChange$S$O$O("componentOrientation",e,a);this.invalidateIfValid$()});b(r,"getComponentOrientation$",function(){return this.componentOrientation});b(r,"applyComponentOrientation$java_awt_ComponentOrientation",function(a){this.applyCompOrientComp$java_awt_ComponentOrientation(a)});b(r,"applyCompOrientComp$java_awt_ComponentOrientation",function(a){if(null==a)throw f(g("NullPointerException"));this.setComponentOrientation$java_awt_ComponentOrientation(a)}); +b(r,"canBeFocusOwner$",function(){return this.isEnabled$()&&this.isDisplayable$()&&this.isVisible$()&&this.isFocusable$()?!0:!1});b(r,"canBeFocusOwnerRecursively$",function(){return!this.canBeFocusOwner$()?!1:null!=this.parent?this.parent.canContainFocusOwner$java_awt_Component(this):!0});b(r,"relocateComponent$",function(){});b(r,"getContainingWindow$",function(){return O(37).getContainingWindow$java_awt_Component(this)});b(r,"isInstanceOf$O$S",function(a,e){if(null==a||null==e)return!1;for(var b= +a.getClass$();null!=b;){if(b.getName$().equals$O(e))return!0;b=b.getSuperclass$()}return!1},1);b(r,"areBoundsValid$",function(){var a=this.getContainer$();return null==a||a.isValid$()||null==a.getLayout$()});b(r,"getLocationOnWindow$",function(){for(var a=this.getLocation$(),e=this.getContainer$();null!=e&&!e.isWindowOrJSApplet$();e=e.getContainer$())a.x+=e.getX$(),a.y+=e.getY$();return a});b(r,"getSiblingIndexAbove$",function(){var a=this.getContainer$();if(null==a)return-1;a=a.getComponentZOrder$java_awt_Component(this)- +1;return 0>a?-1:a});b(r,"getSiblingIndexBelow$",function(){var a=this.getContainer$();if(null==a)return-1;var e=a.getComponentZOrder$java_awt_Component(this)+1;return e>=a.getComponentCount$()?-1:e});b(r,"mixOnShowing$",function(){});b(r,"mixOnHiding$Z",function(){});b(r,"mixOnReshaping$",function(){O(5).taintUI$java_awt_Component(this)});b(r,"mixOnZOrderChanging$I$I",function(){});b(r,"mixOnValidating$",function(){});b(r,"doesClassImplement$Class$S",function(a,e){if(null==a)return!1;for(var b,d= +0,h=a.getInterfaces$();dh)return this.getFirstComponent$java_awt_Container(a);for(h++;hd)return this.getLastComponent$java_awt_Container(a);var h=null,s=null;for(d--;0<=d;d--){h=b.get$I(d);if(h!==a&&null!=(s=of.getComponentDownCycle$java_awt_Component$I.apply(this, +[h,1])))return s;if(this.accept$java_awt_Component(h))return h}return a.isFocusCycleRoot$()?(this.cachedRoot=a,this.cachedCycle=b,h=this.getLastComponent$java_awt_Container(a),this.cachedCycle=this.cachedRoot=null,h):null});b(pf,"getFirstComponent$java_awt_Container",function(a){var e;if(null==a)throw f(g("IllegalArgumentException").c$$S,["aContainer cannot be null"]);if(!a.isVisible$()||!a.isDisplayable$())return null;e=this.cachedRoot===a?this.cachedCycle:of.getFocusTraversalCycle$java_awt_Container.apply(this, +[a]);if(0==e.size$())return null;var b;for(e=e.iterator$();e.hasNext$()&&(b=e.next$(),1);)if(b!==a&&(this.accept$java_awt_Component(b)||b!==a&&null!=(b=of.getComponentDownCycle$java_awt_Component$I.apply(this,[b,0]))))return b;return null});b(pf,"getLastComponent$java_awt_Container",function(a){var e;if(null==a)throw f(g("IllegalArgumentException").c$$S,["aContainer cannot be null"]);a.getTreeLock$();if(!a.isVisible$()||!a.isDisplayable$())return null;e=this.cachedRoot===a?this.cachedCycle:of.getFocusTraversalCycle$java_awt_Container.apply(this, +[a]);if(0==e.size$())return null;for(var b=e.size$()-1;0<=b;b--){var d=e.get$I(b);if(this.accept$java_awt_Component(d))return d;if(k(d,"java.awt.Container")&&d!==a&&d.isFocusTraversalPolicyProvider$())return d.getFocusTraversalPolicy$().getLastComponent$java_awt_Container(d)}return null});b(pf,"getDefaultComponent$java_awt_Container",function(a){return this.getFirstComponent$java_awt_Container(a)});b(pf,"setImplicitDownCycleTraversal$Z",function(a){this.implicitDownCycleTraversal=a});b(pf,"getImplicitDownCycleTraversal$", +function(){return this.implicitDownCycleTraversal});b(pf,"accept$java_awt_Component",function(a){if(!a.canBeFocusOwner$())return!1;if(!a.isWindowOrJSApplet$())for(a=a.getParent$();null!=a;a=a.getParent$()){if(!a.isEnabled$()&&!a.isLightweight$())return!1;if(a.isWindowOrJSApplet$())break}return!0});b(pf);n("3.2.4.07");var Xq=q("java.awt"),sd={},Yq=[[0,"java.awt.Component","java.awt.Insets","javajs.util.Lst","java.awt.Toolkit","java.awt.event.ContainerEvent","java.awt.Dimension",["java.awt.GraphicsCallback", +".PaintCallback"],["java.awt.GraphicsCallback",".PaintAllCallback"],["java.awt.GraphicsCallback",".PaintHeavyweightComponentsCallback"],"java.awt.AWTEventMulticaster","java.awt.event.ContainerListener",["java.awt.Container",".MouseEventTargetFilter"],"java.awt.LightweightDispatcher","java.awt.KeyboardFocusManager","swingjs.JSMouse","java.awt.event.MouseEvent","java.awt.event.MouseWheelEvent"]],Mb=function(a){return Yq[a]||(Yq[a]=g(Yq[0][a]))},G=j(Xq,"Container",function(){m(this,arguments,0,G)},"java.awt.JSComponent"); +G.EMPTY_ARRAY=null;G.NULL_INSETS=null;G.$clinit$=function(){g(G,1);G.EMPTY_ARRAY=l(Mb(1),[0]);G.NULL_INSETS=f(Mb(2).c$$I$I$I$I,[0,0,0,0])};b(G,"$init0$",function(){var a;(a=G.superclazz)&&(a=a.$init0$)&&a.apply(this);this.\u79d8childArray=this.component=null;this.\u79d8childTainted=!1;this.focusTraversalPolicy=this.dispatcher=this.layoutMgr=null;this.focusTraversalPolicyProvider=this.focusCycleRoot=!1;this.containerListener=null;this.descendantsCount=this.listeningBoundsChildren=this.listeningChildren= +0;this.preserveBackgroundColor=null;this.numOfLWComponents=this.numOfHWComponents=0;this.modalAppContext=this.modalComp=null},1);b(G,"$init$",function(){this.focusCycleRoot=!1;this.preserveBackgroundColor=null;this.numOfLWComponents=this.numOfHWComponents=0},1);b(G,"getChildArray$",function(){var a=this.component.size$();if(0==a)return G.EMPTY_ARRAY;if(null!=this.\u79d8childArray&&!this.\u79d8childTainted)return this.\u79d8childArray;this.\u79d8childTainted=!1;return this.component.toArray$TTA(null!= +this.\u79d8childArray&&this.\u79d8childArray.length>a?this.\u79d8childArray:this.\u79d8childArray=l(Mb(1),[2*a]))});b(G,"c$",function(){S(G,this,1);this.component=f(Mb(3));this.\u79d8paintClass=this.\u79d8updateClass=G||null},1);b(G,"initializeFocusTraversalKeys$",function(){});b(G,"getComponentCount$",function(){return this.countComponents$()});b(G,"countComponents$",function(){return this.component.size$()});b(G,"getComponent$I",function(a){if(0>a||a>=this.component.size$())throw f(g("ArrayIndexOutOfBoundsException").c$$S, +["No such child: "+a]);return this.component.get$I(a)});b(G,"getComponents$",function(){return this.getComponents_NoClientCode$()});b(G,"getComponents_NoClientCode$",function(){return this.component.toArray$TTA(G.EMPTY_ARRAY)});b(G,"getInsets$",function(){return k(this.peer,"java.awt.peer.ContainerPeer")?this.\u79d8getInsetsC$():G.NULL_INSETS});b(G,"\u79d8getInsetsC$",function(){var a=null==this.peer?null:this.peer.getInsets$();return null==a?G.NULL_INSETS:a});b(G,"insets$",function(){return this.getInsets$()}); +b(G,"add$java_awt_Component",function(a){this.addImpl$java_awt_Component$O$I(a,null,-1);return a});b(G,"add$S$java_awt_Component",function(a,e){this.addImpl$java_awt_Component$O$I(e,a,-1);return e});b(G,"add$java_awt_Component$I",function(a,e){this.addImpl$java_awt_Component$O$I(a,null,e);return a});b(G,"checkAddToSelf$java_awt_Component",function(a){if(k(a,"java.awt.Container"))for(var e=this;null!=e;e=e.parent)if(e===a)throw f(g("IllegalArgumentException").c$$S,["adding container's parent to itself"]); +},sd);b(G,"removeDelicately$java_awt_Component$java_awt_Container$I",function(a,e,b){var d=this.getComponentZOrder$java_awt_Component(a),h=G.isRemoveNotifyNeeded$java_awt_Component$java_awt_Container$java_awt_Container(a,this,e);h&&a.removeNotify$();e!==this?(null!=this.layoutMgr&&this.layoutMgr.removeLayoutComponent$java_awt_Component(a),this.adjustListeningChildren$J$I(32768,-a.numListening$J(32768)),this.adjustListeningChildren$J$I(65536,-a.numListening$J(65536)),this.adjustDescendants$I(-a.countHierarchyMembers$()), +a.parent=null,this.component.removeItemAt$I(d),this.\u79d8childTainted=!0,this.invalidateIfValid$()):(this.component.removeItemAt$I(d),this.component.add$I$TE(b,a),this.\u79d8childTainted=!0);if(null==a.parent){if(null!=this.containerListener||0!=(this.eventMask&2)||Mb(4).enabledOnToolkit$J(2))e=f(Mb(5).c$$java_awt_Component$I$java_awt_Component,[this,301,a]),this.dispatchEvent$java_awt_AWTEvent(e);a.createHierarchyEvents$I$java_awt_Component$java_awt_Container$J$Z(1400,a,this,1,Mb(4).enabledOnToolkit$J(32768)); +null==this.layoutMgr&&(this.isDisplayable$()&&this.isVisible$())&&this.updateCursorImmediately$()}return h},sd);b(G,"canContainFocusOwner$java_awt_Component",function(a){if(!this.isEnabled$()||!this.isDisplayable$()||!this.isVisible$()||!this.isFocusable$())return!1;if(this.isFocusCycleRoot$()){var e=this.getFocusTraversalPolicy$();if(k(e,"java.awt.DefaultFocusTraversalPolicy")&&!e.accept$java_awt_Component(a))return!1}this.getTreeLock$();return null!=this.parent?this.parent.canContainFocusOwner$java_awt_Component(a): +!0});b(G,"hasHeavyweightDescendants$",function(){return 0this.component.size$()||0>b&&-1!=b)throw f(g("IllegalArgumentException").c$$S,["illegal component position"]);sd.checkAddToSelf$java_awt_Component.apply(this,[a]);if(a.isJ2SWindowButNotJInternalFrame$())throw f(g("IllegalArgumentException").c$$S,["adding a window to a container"]);if(null!=a.parent&&(a.parent.remove$java_awt_Component(a),b>this.component.size$()))throw f(g("IllegalArgumentException").c$$S,["illegal component position"]);-1==b?this.component.add$TE(a):this.component.add$I$TE(b, +a);this.\u79d8childTainted=!0;a.parent=this;this.adjustListeningChildren$J$I(32768,a.numListening$J(32768));this.adjustListeningChildren$J$I(65536,a.numListening$J(65536));this.adjustDescendants$I(a.countHierarchyMembers$());this.invalidateIfValid$();null!=this.peer&&a.addNotify$();null!=this.layoutMgr&&(k(this.layoutMgr,"java.awt.LayoutManager2")?this.layoutMgr.addLayoutComponent$java_awt_Component$O(a,e):k(e,"java.lang.String")&&this.layoutMgr.addLayoutComponent$S$java_awt_Component(e,a));if(null!= +this.containerListener||0!=(this.eventMask&2)||Mb(4).enabledOnToolkit$J(2))e=f(Mb(5).c$$java_awt_Component$I$java_awt_Component,[this,300,a]),this.dispatchEvent$java_awt_AWTEvent(e);a.createHierarchyEvents$I$java_awt_Component$java_awt_Container$J$Z(1400,a,this,1,Mb(4).enabledOnToolkit$J(32768));null!=this.peer&&(null==this.layoutMgr&&this.isVisible$())&&this.updateCursorImmediately$()});b(G,"checkGD$S",function(){});b(G,"remove$I",function(a){this.getTreeLock$();if(0>a||a>=this.component.size$())throw f(g("ArrayIndexOutOfBoundsException").c$$I, +[a]);var e=this.component.get$I(a);null!=this.peer&&e.removeNotify$();null!=this.layoutMgr&&this.layoutMgr.removeLayoutComponent$java_awt_Component(e);this.adjustListeningChildren$J$I(32768,-e.numListening$J(32768));this.adjustListeningChildren$J$I(65536,-e.numListening$J(65536));this.adjustDescendants$I(-e.countHierarchyMembers$());e.parent=null;this.component.removeItemAt$I(a);this.\u79d8childTainted=!0;this.invalidateIfValid$();if(null!=this.containerListener||0!=(this.eventMask&2)||Mb(4).enabledOnToolkit$J(2))a= +f(Mb(5).c$$java_awt_Component$I$java_awt_Component,[this,301,e]),this.dispatchEvent$java_awt_AWTEvent(a);e.createHierarchyEvents$I$java_awt_Component$java_awt_Container$J$Z(1400,e,this,1,Mb(4).enabledOnToolkit$J(32768));null!=this.peer&&(null==this.layoutMgr&&this.isVisible$())&&this.updateCursorImmediately$()});b(G,"remove$java_awt_Component",function(a){this.getTreeLock$();a.getWrap$&&!this.isWrapper$&&(a=a.\u79d8getWrap$());a.parent===this&&(a=this.component.indexOf$O(a),0<=a&&this.remove$I(a))}); +b(G,"removeAll$",function(){this.getTreeLock$();this.adjustListeningChildren$J$I(32768,-this.listeningChildren);this.adjustListeningChildren$J$I(65536,-this.listeningBoundsChildren);for(this.adjustDescendants$I(-this.descendantsCount);!this.component.isEmpty$();){var a=this.component.removeItemAt$I(this.component.size$()-1);null!=this.peer&&a.removeNotify$();null!=this.layoutMgr&&this.layoutMgr.removeLayoutComponent$java_awt_Component(a);a.parent=null;if(null!=this.containerListener||0!=(this.eventMask& +2)||Mb(4).enabledOnToolkit$J(2)){var e=f(Mb(5).c$$java_awt_Component$I$java_awt_Component,[this,301,a]);this.dispatchEvent$java_awt_AWTEvent(e)}a.createHierarchyEvents$I$java_awt_Component$java_awt_Container$J$Z(1400,a,this,1,Mb(4).enabledOnToolkit$J(32768))}null!=this.peer&&(null==this.layoutMgr&&this.isVisible$())&&this.updateCursorImmediately$();this.invalidateIfValid$();G.superclazz.prototype.removeAll$.apply(this,[])});b(G,"numListening$J",function(a){var e=this.numListeningMask$J(a);return 32768== +a?this.listeningChildren+e:65536==a?this.listeningBoundsChildren+e:e});b(G,"adjustListeningChildren$J$I",function(a,e){0!=e&&(0!=(a&32768)&&(this.listeningChildren+=e),0!=(a&65536)&&(this.listeningBoundsChildren+=e),this.adjustListeningChildrenOnParent$J$I(a,e))});b(G,"adjustDescendants$I",function(a){0!=a&&(this.descendantsCount+=a,this.adjustDecendantsOnParent$I(a))});b(G,"adjustDecendantsOnParent$I",function(a){null!=this.parent&&this.parent.adjustDescendants$I(a)});b(G,"countHierarchyMembers$", +function(){return this.descendantsCount+1});b(G,"getListenersCount$I$Z",function(a,e){if(e)return this.descendantsCount;switch(a){case 1400:return this.listeningChildren;case 1401:case 1402:return this.listeningBoundsChildren;default:return 0}},sd);b(G,"createHierarchyEvents$I$java_awt_Component$java_awt_Container$J$Z",function(a,e,b,d,h){for(var f=sd.getListenersCount$I$Z.apply(this,[a,h]),g=f,p=0;0a||4<=a)throw f(g("IllegalArgumentException").c$$S,["invalid focus traversal key identifier"]);this.setFocusTraversalKeys_NoIDCheck$I$java_util_Set(a,e)});b(G,"getFocusTraversalKeys$I", +function(a){if(0>a||4<=a)throw f(g("IllegalArgumentException").c$$S,["invalid focus traversal key identifier"]);return this.getFocusTraversalKeys_NoIDCheck$I(a)});b(G,"areFocusTraversalKeysSet$I",function(a){if(0>a||4<=a)throw f(g("IllegalArgumentException").c$$S,["invalid focus traversal key identifier"]);return null!=this.focusTraversalKeys&&null!=this.focusTraversalKeys[a]});b(G,"isFocusCycleRoot$java_awt_Container",function(a){return this.isFocusCycleRoot$()&&a===this?!0:this.isFocusCycleRootComp$java_awt_Container(a)}); +b(G,"findTraversalRoot",function(){var a=Mb(14).getCurrentKeyboardFocusManager$().getCurrentFocusCycleRoot$(),e;a===this?e=this:(e=this.getFocusCycleRootAncestor$(),null==e&&(e=this));e!==a&&Mb(14).getCurrentKeyboardFocusManager$().setGlobalCurrentFocusCycleRoot$java_awt_Container(e);return e},sd);b(G,"containsFocus$",function(){var a=Mb(14).getCurrentKeyboardFocusManager$().getFocusOwner$();return sd.isParentOf$java_awt_Component.apply(this,[a])});b(G,"isParentOf$java_awt_Component",function(a){for(;null!= +a&&a!==this&&!a.isWindowOrJSApplet$();)a=a.getParent$();return a===this},sd);b(G,"clearMostRecentFocusOwnerOnHide$",function(){var a=!1,e=null;this.getTreeLock$();e=this.getContainingWindow$();if(null!=e){var a=Mb(14).getMostRecentFocusOwner$java_awt_Window(e),a=a===this||sd.isParentOf$java_awt_Component.apply(this,[a]),b=e.getTemporaryLostComponent$();(sd.isParentOf$java_awt_Component.apply(this,[b])||b===this)&&e.setTemporaryLostComponent$java_awt_Component(null)}a&&Mb(14).setMostRecentFocusOwner$java_awt_Window$java_awt_Component(e, +null)});b(G,"clearCurrentFocusCycleRootOnHide$",function(){var a=Mb(14).getCurrentKeyboardFocusManager$(),e=a.getCurrentFocusCycleRoot$();(e===this||sd.isParentOf$java_awt_Component.apply(this,[e]))&&a.setGlobalCurrentFocusCycleRoot$java_awt_Container(null)});b(G,"getTraversalRoot$",function(){return this.isFocusCycleRoot$()?sd.findTraversalRoot.apply(this,[]):G.superclazz.prototype.getTraversalRoot$.apply(this,[])});b(G,"setFocusTraversalPolicy$java_awt_FocusTraversalPolicy",function(a){var e;e= +this.focusTraversalPolicy;this.focusTraversalPolicy=a;this.firePropertyChange$S$O$O("focusTraversalPolicy",e,a)});b(G,"getFocusTraversalPolicy$",function(){if(!this.isFocusTraversalPolicyProvider$()&&!this.isFocusCycleRoot$())return null;var a=this.focusTraversalPolicy;if(null!=a)return a;a=this.getFocusCycleRootAncestor$();return null!=a?a.getFocusTraversalPolicy$():this.\u79d8isAWT$()?Mb(14).getCurrentKeyboardFocusManager$().getDefaultAWTFocusTraversalPolicy$():Mb(14).getCurrentKeyboardFocusManager$().getDefaultFocusTraversalPolicy$()}); +b(G,"isFocusTraversalPolicySet$",function(){return null!=this.focusTraversalPolicy});b(G,"setFocusCycleRoot$Z",function(a){var e;e=this.focusCycleRoot;this.focusCycleRoot=a;this.firePropertyChange$S$Z$Z("focusCycleRoot",e,a)});b(G,"isFocusCycleRoot$",function(){return this.focusCycleRoot});b(G,"setFocusTraversalPolicyProvider$Z",function(a){var e;e=this.focusTraversalPolicyProvider;this.focusTraversalPolicyProvider=a;this.firePropertyChange$S$Z$Z("focusTraversalPolicyProvider",e,a)});b(G,"isFocusTraversalPolicyProvider$", +function(){return this.focusTraversalPolicyProvider});b(G,"transferFocusDownCycle$",function(){});b(G,"preProcessKeyEvent$java_awt_event_KeyEvent",function(a){var e=this.parent;null!=e&&e.preProcessKeyEvent$java_awt_event_KeyEvent(a)});b(G,"postProcessKeyEvent$java_awt_event_KeyEvent",function(a){var e=this.parent;null!=e&&e.postProcessKeyEvent$java_awt_event_KeyEvent(a)});b(G,"postsOldMouseEvents$",function(){return!0});b(G,"applyComponentOrientation$java_awt_ComponentOrientation",function(a){this.applyCompOrientComp$java_awt_ComponentOrientation(a); +this.getTreeLock$();for(var e=0;ea||13a||13=b.getWhen$()&&(e=this.typeAheadMarkers.isEmpty$()?null:this.typeAheadMarkers.getFirst$(), +null!=e&&(e=e.untilFocused.getContainingWindow$(),null!=e&&e.isFocused$()))?(tc(6).postEvent$sun_awt_AppContext$java_awt_AWTEvent(tc(4).getAppContext$(),f(tc(7).c$$java_awt_AWTEvent,[a])),!0):!1},Xa);b(Nb,"dispatchEvent$java_awt_AWTEvent",function(a){switch(a.getID$()){case 501:case 500:return this.peer.checkFrameFocusOnMouseDown$java_awt_AWTEvent(a),!1;case 502:return!1;case 207:if(Xa.repostIfFollowsKeyEvents$java_awt_event_WindowEvent.apply(this,[a]))break;var e=a,b=this.getGlobalFocusedWindow$(); +a=e.getWindow$();if(a===b)break;if(!a.isFocusableWindow$()||!a.isVisible$()||!a.isDisplayable$()){Xa.restoreFocus$java_awt_event_WindowEvent.apply(this,[e]);break}null!=b&&(b=Nb.sendMessage$java_awt_Component$java_awt_AWTEvent(b,f(tc(8).c$$java_awt_Window$I$java_awt_Window,[b,208,a])),b||(this.setGlobalFocusOwner$java_awt_Component(null),this.setGlobalFocusedWindow$java_awt_Window(null)));var d=Xa.getOwningFrameDialog$java_awt_Window.apply(this,[a]),b=this.getGlobalActiveWindow$();if(d!==b&&(Nb.sendMessage$java_awt_Component$java_awt_AWTEvent(d, +f(tc(8).c$$java_awt_Window$I$java_awt_Window,[d,205,b])),d!==this.getGlobalActiveWindow$())){Xa.restoreFocus$java_awt_event_WindowEvent.apply(this,[e]);break}this.setGlobalFocusedWindow$java_awt_Window(a);if(a!==this.getGlobalFocusedWindow$()){Xa.restoreFocus$java_awt_event_WindowEvent.apply(this,[e]);break}0==this.inSendMessage&&(b=tc(1).getMostRecentFocusOwner$java_awt_Window(a),null==b&&a.isFocusableWindow$()&&(b=a.getFocusTraversalPolicy$().getInitialComponent$java_awt_Window(a)),d=null,d=a.setTemporaryLostComponent$java_awt_Component(null), +null!=d&&d.requestFocusInWindow$sun_awt_CausedFocusEvent_Cause(tc(3).ACTIVATION),null!=b&&b!==d&&b.requestFocusInWindow$sun_awt_CausedFocusEvent_Cause(tc(3).ACTIVATION));b=this.realOppositeWindowWR;b!==e.getOppositeWindow$()&&(e=f(tc(8).c$$java_awt_Window$I$java_awt_Window,[a,207,b]));return Xa.typeAheadAssertions$java_awt_Component$java_awt_AWTEvent.apply(this,[a,e]);case 205:e=a;a=this.getGlobalActiveWindow$();d=e.getWindow$();if(a===d)break;if(null!=a&&((b=Nb.sendMessage$java_awt_Component$java_awt_AWTEvent(a, +f(tc(8).c$$java_awt_Window$I$java_awt_Window,[a,206,d])))||this.setGlobalActiveWindow$java_awt_Window(null),null!=this.getGlobalActiveWindow$()))break;this.setGlobalActiveWindow$java_awt_Window(d);if(d!==this.getGlobalActiveWindow$())break;return Xa.typeAheadAssertions$java_awt_Component$java_awt_AWTEvent.apply(this,[d,e]);case 1004:e=a;d=k(e,"sun.awt.CausedFocusEvent")?e.getCause$():tc(3).UNKNOWN;a=this.getGlobalFocusOwner$();var h=e.getComponent$();if(a===h){this.dequeueKeyEvents$J$java_awt_Component(-1, +h);break}null!=a&&(b=Nb.sendMessage$java_awt_Component$java_awt_AWTEvent(a,f(tc(9).c$$java_awt_Component$I$Z$java_awt_Component$sun_awt_CausedFocusEvent_Cause,[a,1005,e.isTemporary$(),h,d])),b||(this.setGlobalFocusOwner$java_awt_Component(null),e.isTemporary$()||this.setGlobalPermanentFocusOwner$java_awt_Component(null)));a=tc(6).getContainingWindow$java_awt_Component(h);b=this.getGlobalFocusedWindow$();if(null!=a&&a!==b&&(Nb.sendMessage$java_awt_Component$java_awt_AWTEvent(a,f(tc(8).c$$java_awt_Window$I$java_awt_Window, +[a,207,b])),a!==this.getGlobalFocusedWindow$())){this.dequeueKeyEvents$J$java_awt_Component(-1,h);break}if(!h.isFocusable$()||!h.isShowing$()||!h.isEnabled$()&&!d.equals$O(tc(3).UNKNOWN)){this.dequeueKeyEvents$J$java_awt_Component(-1,h);tc(1).isAutoFocusTransferEnabled$()&&(null==a?Xa.restoreFocus$java_awt_event_FocusEvent$java_awt_Window.apply(this,[e,b]):Xa.restoreFocus$java_awt_event_FocusEvent$java_awt_Window.apply(this,[e,a]),Up.KeyboardFocusManager.setMostRecentFocusOwner$java_awt_Window$java_awt_Component(a, +null));break}this.setGlobalFocusOwner$java_awt_Component(h);if(h!==this.getGlobalFocusOwner$()){this.dequeueKeyEvents$J$java_awt_Component(-1,h);tc(1).isAutoFocusTransferEnabled$()&&Xa.restoreFocus$java_awt_event_FocusEvent$java_awt_Window.apply(this,[e,a]);break}if(!e.isTemporary$()&&(this.setGlobalPermanentFocusOwner$java_awt_Component(h),h!==this.getGlobalPermanentFocusOwner$())){this.dequeueKeyEvents$J$java_awt_Component(-1,h);tc(1).isAutoFocusTransferEnabled$()&&Xa.restoreFocus$java_awt_event_FocusEvent$java_awt_Window.apply(this, +[e,a]);break}a=this.realOppositeComponentWR;null!=a&&a!==e.getOppositeComponent$()&&(e=f(tc(9).c$$java_awt_Component$I$Z$java_awt_Component$sun_awt_CausedFocusEvent_Cause,[h,1004,e.isTemporary$(),a,d]),e.isPosted=!0);return Xa.typeAheadAssertions$java_awt_Component$java_awt_AWTEvent.apply(this,[h,e]);case 1005:e=a;a=this.getGlobalFocusOwner$();if(null==a)break;if(a===e.getOppositeComponent$())break;this.setGlobalFocusOwner$java_awt_Component(null);if(null!=this.getGlobalFocusOwner$()){Xa.restoreFocus$java_awt_Component$Z.apply(this, +[a,!0]);break}if(e.isTemporary$())b=a.getContainingWindow$(),null!=b&&b.setTemporaryLostComponent$java_awt_Component(a);else if(this.setGlobalPermanentFocusOwner$java_awt_Component(null),null!=this.getGlobalPermanentFocusOwner$()){Xa.restoreFocus$java_awt_Component$Z.apply(this,[a,!0]);break}this.setNativeFocusOwner$java_awt_Component(null);e.setSource$O(a);this.realOppositeComponentWR=null!=e.getOppositeComponent$()?a:null;return Xa.typeAheadAssertions$java_awt_Component$java_awt_AWTEvent.apply(this, +[a,e]);case 206:e=a;b=this.getGlobalActiveWindow$();if(null==b)break;if(b!==a.getSource$())break;this.setGlobalActiveWindow$java_awt_Window(null);if(null!=this.getGlobalActiveWindow$())break;e.setSource$O(b);return Xa.typeAheadAssertions$java_awt_Component$java_awt_AWTEvent.apply(this,[b,e]);case 208:if(Xa.repostIfFollowsKeyEvents$java_awt_event_WindowEvent.apply(this,[a]))break;e=a;b=this.getGlobalFocusedWindow$();a=e.getWindow$();d=this.getGlobalActiveWindow$();h=e.getOppositeWindow$();if(null== +b)break;if(0==this.inSendMessage&&a===d&&h===b)break;a=this.getGlobalFocusOwner$();if(null!=a){var s=null;null!=h&&(s=h.getTemporaryLostComponent$(),null==s&&(s=h.getMostRecentFocusOwner$()));null==s&&(s=h);Nb.sendMessage$java_awt_Component$java_awt_AWTEvent(a,f(tc(9).c$$java_awt_Component$I$Z$java_awt_Component$sun_awt_CausedFocusEvent_Cause,[a,1005,!0,s,tc(3).ACTIVATION]))}this.setGlobalFocusedWindow$java_awt_Window(null);if(null!=this.getGlobalFocusedWindow$()){Xa.restoreFocus$java_awt_Window$java_awt_Component$Z.apply(this, +[b,null,!0]);break}e.setSource$O(b);this.realOppositeWindowWR=null!=h?b:null;Xa.typeAheadAssertions$java_awt_Component$java_awt_AWTEvent.apply(this,[b,e]);null==h&&(Nb.sendMessage$java_awt_Component$java_awt_AWTEvent(d,f(tc(8).c$$java_awt_Window$I$java_awt_Window,[d,206,null])),null!=this.getGlobalActiveWindow$()&&Xa.restoreFocus$java_awt_Window$java_awt_Component$Z.apply(this,[b,null,!0]));break;case 400:case 401:case 402:return Xa.typeAheadAssertions$java_awt_Component$java_awt_AWTEvent.apply(this, +[null,a]);default:return!1}return!0});b(Nb,["dispatchKeyEvent$java_awt_event_KeyEvent","dispatchKeyEvent$"],function(a){var e=a.isPosted?this.getFocusOwner$():a.getComponent$();null!=e&&(e.isShowing$()&&e.canBeFocusOwner$())&&!a.isConsumed$()&&(e=a.getComponent$(),null!=e&&e.isEnabled$()&&this.redispatchEvent$java_awt_Component$java_awt_AWTEvent(e,a));var e=!1,b=this.getKeyEventPostProcessors$();if(null!=b)for(b=b.iterator$();!e&&b.hasNext$();)e=b.next$().postProcessKeyEvent$(a);e||this.postProcessKeyEvent$java_awt_event_KeyEvent(a); +b=a.getComponent$();e=b.getPeer$();if(null==e||k(e,"java.awt.peer.LightweightPeer"))b=b.getNativeContainer$(),null!=b&&(e=b.getPeer$());null!=e&&e.handleEvent$java_awt_AWTEvent(a);return!0});b(Nb,["postProcessKeyEvent$java_awt_event_KeyEvent","postProcessKeyEvent$"],function(a){if(!a.isConsumed$()){var e=a.getComponent$(),e=k(e,"java.awt.Container")?e:e.getParent$();null!=e&&e.postProcessKeyEvent$java_awt_event_KeyEvent(a)}return!0});b(Nb,"pumpApprovedKeyEvents",function(){var a;do{a=null;if(0!=this.enqueuedKeyEvents.size$()){a= +this.enqueuedKeyEvents.getFirst$();if(0!=this.typeAheadMarkers.size$()){var e=this.typeAheadMarkers.getFirst$();a.getWhen$()>e.after&&(a=null)}null!=a&&this.enqueuedKeyEvents.removeFirst$()}null!=a&&Xa.preDispatchKeyEvent$java_awt_event_KeyEvent.apply(this,[a])}while(null!=a)},Xa);b(Nb,"typeAheadAssertions$java_awt_Component$java_awt_AWTEvent",function(a,e){Xa.pumpApprovedKeyEvents.apply(this,[]);switch(e.getID$()){case 400:case 401:case 402:if(e.isPosted&&0!=this.typeAheadMarkers.size$()){var b= +this.typeAheadMarkers.getFirst$();if(e.getWhen$()>b.after)return this.enqueuedKeyEvents.addLast$TE(e),!0}return Xa.preDispatchKeyEvent$java_awt_event_KeyEvent.apply(this,[e]);case 1004:b=!1;if(Xa.hasMarker$java_awt_Component.apply(this,[a]))for(var d=this.typeAheadMarkers.iterator$();d.hasNext$();){if(d.next$().untilFocused===a)b=!0;else if(b)break;d.remove$()}this.redispatchEvent$java_awt_Component$java_awt_AWTEvent(a,e);Xa.pumpApprovedKeyEvents.apply(this,[]);return!0;default:return this.redispatchEvent$java_awt_Component$java_awt_AWTEvent(a, +e),!0}},Xa);b(Nb,"hasMarker$java_awt_Component",function(a){for(var e=this.typeAheadMarkers.iterator$();e.hasNext$();)if(e.next$().untilFocused===a)return!0;return!1},Xa);b(Nb,"clearMarkers$",function(){this.typeAheadMarkers.clear$()});b(Nb,"preDispatchKeyEvent$java_awt_event_KeyEvent",function(a){if(a.isPosted){var e=this.getFocusOwner$();a.setSource$O(null!=e?e:this.getFocusedWindow$())}if(null==a.getSource$())return!0;tc(10).setCurrentEventAndMostRecentTime$java_awt_AWTEvent(a);e=this.getKeyEventDispatchers$(); +if(null!=e)for(e=e.iterator$();e.hasNext$();)if(e.next$().dispatchKeyEvent$(a))return!0;return this.dispatchKeyEvent$java_awt_event_KeyEvent(a)},Xa);b(Nb,"consumeNextKeyTyped$java_awt_event_KeyEvent",function(){this.consumeNextKeyTyped=!0});b(Nb,"consumeTraversalKey$java_awt_event_KeyEvent",function(a){a.consume$();this.consumeNextKeyTyped=401==a.getID$()&&!a.isActionKey$()},Xa);b(Nb,"consumeProcessedKeyEvent$java_awt_event_KeyEvent",function(a){return 400==a.getID$()&&this.consumeNextKeyTyped?(a.consume$(), +this.consumeNextKeyTyped=!1,!0):!1},Xa);b(Nb,"processKeyEvent$java_awt_Component$java_awt_event_KeyEvent",function(a,e){if(!Xa.consumeProcessedKeyEvent$java_awt_event_KeyEvent.apply(this,[e])&&400!=e.getID$()&&a.getFocusTraversalKeysEnabled$()&&!e.isConsumed$()){var b=tc(11).getAWTKeyStrokeForEvent$java_awt_event_KeyEvent(e),d=tc(11).getAWTKeyStroke$I$I$Z(b.getKeyCode$(),b.getModifiers$(),!b.isOnKeyRelease$()),h,f;h=a.getFocusTraversalKeys$I(0);f=h.contains$O(b);h=h.contains$O(d);if(f||h)Xa.consumeTraversalKey$java_awt_event_KeyEvent.apply(this, +[e]),f&&this.focusNextComponent$java_awt_Component(a);else if(401==e.getID$()&&(this.consumeNextKeyTyped=!1),h=a.getFocusTraversalKeys$I(1),f=h.contains$O(b),h=h.contains$O(d),f||h)Xa.consumeTraversalKey$java_awt_event_KeyEvent.apply(this,[e]),f&&this.focusPreviousComponent$java_awt_Component(a);else if(h=a.getFocusTraversalKeys$I(2),f=h.contains$O(b),h=h.contains$O(d),f||h)Xa.consumeTraversalKey$java_awt_event_KeyEvent.apply(this,[e]),f&&this.upFocusCycle$java_awt_Component(a);else if(k(a,"java.awt.Container")&& +a.isFocusCycleRoot$()&&(h=a.getFocusTraversalKeys$I(3),f=h.contains$O(b),h=h.contains$O(d),f||h))Xa.consumeTraversalKey$java_awt_event_KeyEvent.apply(this,[e]),f&&this.downFocusCycle$java_awt_Container(a)}});b(Nb,"enqueueKeyEvents$J$java_awt_Component",function(a,e){if(null!=e){for(var b=0,d=this.typeAheadMarkers.size$(),h=this.typeAheadMarkers.listIterator$I(d);0a)for(;d.hasNext$();){if(b=d.next$(),b.untilFocused===e){d.remove$();break}}else for(;d.hasPrevious$();)if(b=d.previous$(),b.untilFocused===e&&b.after==a){d.remove$();break}}});b(Nb,"discardKeyEvents$java_awt_Component",function(a){if(null!=a){for(var e=-1,b=this.typeAheadMarkers.iterator$();b.hasNext$();){for(var d=b.next$(),h=d.untilFocused,f=h===a;!f&&null!=h&&!k(h,"java.awt.Window");)h= +h.getParent$(),f=h===a;f?(0>e&&(e=d.after),b.remove$()):0<=e&&(Xa.purgeStampedEvents$J$J.apply(this,[e,d.after]),e=-1)}Xa.purgeStampedEvents$J$J.apply(this,[e,-1])}});b(Nb,"purgeStampedEvents$J$J",function(a,e){if(!(0>a))for(var b=this.enqueuedKeyEvents.iterator$();b.hasNext$();){var d=b.next$().getWhen$();ae||d<=e)&&b.remove$();if(0<=e&&d>e)break}},Xa);b(Nb,"focusPreviousComponent$java_awt_Component",function(a){null!=a&&a.transferFocusBackward$()});b(Nb,"focusNextComponent$java_awt_Component", +function(a){null!=a&&a.transferFocus$()});b(Nb,"upFocusCycle$java_awt_Component",function(a){null!=a&&a.transferFocusUpCycle$()});b(Nb,"downFocusCycle$java_awt_Container",function(a){null!=a&&a.isFocusCycleRoot$()&&a.transferFocusDownCycle$()});var Bk=j(Up.DefaultKeyboardFocusManager,"TypeAheadMarker",function(a){m(this,a,!1,Bk)});Bk.$clinit$=function(){g(Bk,1)};b(Bk,"$init0$",function(){var a;(a=Bk.superclazz)&&(a=a.$init0$)&&a.apply(this);this.after=0;this.untilFocused=null},1);b(Bk,"$init$",function(){}, +1);b(Bk,"c$$J$java_awt_Component",function(a,e){Bk.$init$.apply(this);this.after=a;this.untilFocused=e},1);b(Bk,"toString",function(){return">>> Marker after "+this.after+" on "+this.untilFocused});b(Bk);var Ck=j(Up.DefaultKeyboardFocusManager,"DefaultKeyboardFocusManagerSentEvent",function(a){m(this,a,!1,Ck)},"java.awt.SentEvent");Ck.$clinit$=function(){g(Ck,1)};b(Ck,"$init$",function(){},1);b(Ck,"c$$java_awt_AWTEvent$sun_awt_AppContext",function(a,e){Ck.superclazz.c$$java_awt_AWTEvent$sun_awt_AppContext.apply(this, +[a,e]);Ck.$init$.apply(this)},1);b(Ck,"dispatch$",function(){var a=tc(1).getCurrentKeyboardFocusManager$(),a=k(a,"java.awt.DefaultKeyboardFocusManager")?a:null;null!=a&&a.inSendMessage++;Ck.superclazz.prototype.dispatch$.apply(this,[]);null!=a&&a.inSendMessage--});b(Ck);b(Nb);n("3.2.4.07");var ar=q("java.awt"),br=[[0,["java.awt.Dialog",".ModalityType"]]],lb=j(ar,"Dialog",function(){m(this,arguments,0,lb)},"swingjs.a2s.Dialog");lb.DEFAULT_MODALITY_TYPE=null;lb.$clinit$=function(){g(lb,1);lb.DEFAULT_MODALITY_TYPE= +(br[1]||(br[1]=g(br[0][1]))).APPLICATION_MODAL};b(lb,"$init$",function(){},1);b(lb,"c$$java_awt_Frame",function(a){lb.superclazz.c$$java_awt_Frame.apply(this,[a]);lb.$init$.apply(this)},1);b(lb,"c$$java_awt_Frame$Z",function(a,e){lb.superclazz.c$$java_awt_Frame$Z.apply(this,[a,e]);lb.$init$.apply(this)},1);b(lb,"c$$java_awt_Frame$S",function(a,e){lb.superclazz.c$$java_awt_Frame$S.apply(this,[a,e]);lb.$init$.apply(this)},1);b(lb,"c$$java_awt_Frame$S$Z",function(a,e,b){lb.superclazz.c$$java_awt_Frame$S$Z.apply(this, +[a,e,b]);lb.$init$.apply(this)},1);b(lb,"c$$java_awt_Frame$S$Z$java_awt_GraphicsConfiguration",function(a,e,b,d){lb.superclazz.c$$java_awt_Frame$S$Z$java_awt_GraphicsConfiguration.apply(this,[a,e,b,d]);lb.$init$.apply(this)},1);b(lb,"c$$java_awt_Dialog",function(a){lb.superclazz.c$$java_awt_Dialog.apply(this,[a]);lb.$init$.apply(this)},1);b(lb,"c$$java_awt_Dialog$S",function(a,e){lb.superclazz.c$$java_awt_Dialog$S$Z.apply(this,[a,e,!1]);lb.$init$.apply(this)},1);b(lb,"c$$java_awt_Dialog$S$Z",function(a, +e,b){lb.superclazz.c$$java_awt_Dialog$S$Z.apply(this,[a,e,b]);lb.$init$.apply(this)},1);b(lb,"c$$java_awt_Dialog$S$Z$java_awt_GraphicsConfiguration",function(a,e,b,d){lb.superclazz.c$$java_awt_Dialog$S$Z$java_awt_GraphicsConfiguration.apply(this,[a,e,b,d]);lb.$init$.apply(this)},1);b(lb,"c$$java_awt_Window",function(a){lb.superclazz.c$$java_awt_Window.apply(this,[a]);lb.$init$.apply(this)},1);b(lb,"c$$java_awt_Window$S",function(a,e){lb.superclazz.c$$java_awt_Window$S.apply(this,[a,e]);lb.$init$.apply(this)}, +1);b(lb,"c$$java_awt_Window$java_awt_Dialog_ModalityType",function(a,e){lb.superclazz.c$$java_awt_Window$java_awt_Dialog_ModalityType.apply(this,[a,e]);lb.$init$.apply(this)},1);b(lb,"c$$java_awt_Window$S$java_awt_Dialog_ModalityType",function(a,e,b){lb.superclazz.c$$java_awt_Window$S$java_awt_Dialog_ModalityType.apply(this,[a,e,b]);lb.$init$.apply(this)},1);b(lb,"c$$java_awt_Window$S$java_awt_Dialog_ModalityType$java_awt_GraphicsConfiguration",function(a,e,b,d){lb.superclazz.c$$java_awt_Window$S$java_awt_Dialog_ModalityType$java_awt_GraphicsConfiguration.apply(this, +[a,e,b,d]);lb.$init$.apply(this)},1);var Ni=j(ar.Dialog,"ModalityType",function(a){m(this,a,!1,Ni)},"Enum");Ni.$clinit$=function(){g(Ni,1);tl=l(Ni,[0]);Pa(tl,Ni.c$,"MODELESS",0,[]);Pa(tl,Ni.c$,"DOCUMENT_MODAL",1,[]);Pa(tl,Ni.c$,"APPLICATION_MODAL",2,[]);Pa(tl,Ni.c$,"TOOLKIT_MODAL",3,[])};b(Ni,"$init$",function(){},1);b(Ni);var tl=[];b(Ni,"values$",function(){return tl},1);b(Ni,"valueOf$S",function(a){for(var e in tl)if(tl[e].name==a)return tl[e];return null},1);var zj=j(ar.Dialog,"ModalExclusionType", +function(a){m(this,a,!1,zj)},"Enum");zj.$clinit$=function(){g(zj,1);gm=l(zj,[0]);Pa(gm,zj.c$,"NO_EXCLUDE",0,[]);Pa(gm,zj.c$,"APPLICATION_EXCLUDE",1,[]);Pa(gm,zj.c$,"TOOLKIT_EXCLUDE",2,[])};b(zj,"$init$",function(){},1);b(zj);var gm=[];b(zj,"values$",function(){return gm},1);b(zj,"valueOf$S",function(a){for(var e in gm)if(gm[e].name==a)return gm[e];return null},1);b(lb);n("3.2.4.07");var xx=q("java.awt"),Oe=j(xx,"Dimension",null,"java.awt.geom.Dimension2D");Oe.$clinit$=function(){g(Oe,1)};b(Oe,"$init0$", +function(){var a;(a=Oe.superclazz)&&(a=a.$init0$)&&a.apply(this);this.height=this.width=0},1);b(Oe,"$init$",function(){},1);b(Oe,"c$",function(){Oe.c$$I$I.apply(this,[0,0])},1);b(Oe,"c$$java_awt_Dimension",function(a){Oe.c$$I$I.apply(this,[a.width,a.height])},1);b(Oe,"c$$I$I",function(a,e){S(Oe,this,1);this.width=a;this.height=e},1);b(Oe,"getWidth$",function(){return this.width});b(Oe,"getHeight$",function(){return this.height});b(Oe,"getSize$",function(){return f(Oe.c$$I$I,[this.width,this.height])}); +b(Oe,"setSize$java_awt_Dimension",function(a){this.width=a.width;this.height=a.height});b(Oe,"setSize$I$I",function(a,e){this.width=a;this.height=e});b(Oe,"setSize$D$D",function(a,e){this.width=Math.ceil(a)|0;this.height=Math.ceil(e)|0});b(Oe,"equals$O",function(a){return k(a,"java.awt.Dimension")?this.width==a.width&&this.height==a.height:!1});b(Oe,"hashCode$",function(){var a=this.width+this.height;return(a*(a+1)/2|0)+this.width});b(Oe,"toString",function(){return this.getClass$().getName$()+"[width="+ +this.width+",height="+this.height+"]"});n("3.2.4.07");var yx=q("java.awt.dnd.peer");N(yx,"DropTargetPeer");n("3.2.4.07");var zx=q("java.awt.event"),uv=N(zx,"ActionListener",null,null,"java.util.EventListener");uv.$clinit$=function(){g(uv,1)};n("3.2.4.07");var Ax=q("java.awt.event"),yg=j(Ax,"AdjustmentEvent",null,"java.awt.AWTEvent");yg.$clinit$=function(){g(yg,1)};b(yg,"$init0$",function(){var a;(a=yg.superclazz)&&(a=a.$init0$)&&a.apply(this);this.adjustable=null;this.adjustmentType=this.value=0; +this.isAdjusting=!1},1);b(yg,"$init$",function(){},1);b(yg,"c$$java_awt_Adjustable$I$I$I",function(a,e,b,d){yg.c$$java_awt_Adjustable$I$I$I$Z.apply(this,[a,e,b,d,!1])},1);b(yg,"c$$java_awt_Adjustable$I$I$I$Z",function(a,e,b,d,h){yg.superclazz.c$$O$I.apply(this,[a,e]);yg.$init$.apply(this);this.adjustable=a;this.adjustmentType=b;this.value=d;this.isAdjusting=h},1);b(yg,"getAdjustable$",function(){return this.adjustable});b(yg,"getValue$",function(){return this.value});b(yg,"getAdjustmentType$",function(){return this.adjustmentType}); +b(yg,"getValueIsAdjusting$",function(){return this.isAdjusting});b(yg,"paramString$",function(){var a;switch(this.id){case 601:a="ADJUSTMENT_VALUE_CHANGED";break;default:a="unknown type"}var e;switch(this.adjustmentType){case 1:e="UNIT_INCREMENT";break;case 2:e="UNIT_DECREMENT";break;case 4:e="BLOCK_INCREMENT";break;case 3:e="BLOCK_DECREMENT";break;case 5:e="TRACK";break;default:e="unknown type"}return a+",adjType="+e+",value="+this.value+",isAdjusting="+this.isAdjusting});b(yg);n("3.2.4.07");var Bx= +q("java.awt.event"),vv=N(Bx,"AdjustmentListener",null,null,"java.util.EventListener");vv.$clinit$=function(){g(vv,1)};n("3.2.4.07");var Cx=q("java.awt.event"),wv=N(Cx,"AWTEventListener",null,null,"java.util.EventListener");wv.$clinit$=function(){g(wv,1)};n("3.2.4.07");var Dx=q("java.awt.event"),hm=j(Dx,"ComponentAdapter",null,null,"java.awt.event.ComponentListener");hm.$clinit$=function(){g(hm,1)};b(hm,"$init$",function(){},1);b(hm,"componentResized$java_awt_event_ComponentEvent",function(){});b(hm, +"componentMoved$java_awt_event_ComponentEvent",function(){});b(hm,"componentShown$java_awt_event_ComponentEvent",function(){});b(hm,"componentHidden$java_awt_event_ComponentEvent",function(){});b(hm);n("3.2.4.07");var Ex=q("java.awt.event"),Aj=j(Ex,"ComponentEvent",null,"java.awt.AWTEvent");Aj.$clinit$=function(){g(Aj,1)};b(Aj,"$init$",function(){},1);b(Aj,"c$$java_awt_Component$I",function(a,e){Aj.superclazz.c$$O$I.apply(this,[a,e]);Aj.$init$.apply(this)},1);b(Aj,"c$",function(){Aj.superclazz.c$.apply(this, +[]);Aj.$init$.apply(this)},1);b(Aj,"getComponent$",function(){return k(this.source,"java.awt.Component")?this.source:null});b(Aj,"paramString$",function(){var a;a=null!=this.source?this.source.getBounds$():null;switch(this.id){case 102:a="COMPONENT_SHOWN";break;case 103:a="COMPONENT_HIDDEN";break;case 100:a="COMPONENT_MOVED ("+a.x+","+a.y+" "+a.width+"x"+a.height+")";break;case 101:a="COMPONENT_RESIZED ("+a.x+","+a.y+" "+a.width+"x"+a.height+")";break;default:a="unknown type"}return a});n("3.2.4.07"); +var Fx=q("java.awt.event"),xv=N(Fx,"ComponentListener",null,null,"java.util.EventListener");xv.$clinit$=function(){g(xv,1)};n("3.2.4.07");var Gx=q("java.awt.event"),yv=N(Gx,"ContainerListener",null,null,"java.util.EventListener");yv.$clinit$=function(){g(yv,1)};n("3.2.4.07");var Hx=q("java.awt.event"),Rn=[[0,"sun.awt.SunToolkit","sun.awt.AppContext"]],zg=j(Hx,"FocusEvent",null,"java.awt.event.ComponentEvent");zg.$clinit$=function(){g(zg,1)};b(zg,"$init0$",function(){var a;(a=zg.superclazz)&&(a=a.$init0$)&& +a.apply(this);this.temporary=!1;this.opposite=null},1);b(zg,"$init$",function(){},1);b(zg,"c$$java_awt_Component$I$Z$java_awt_Component",function(a,e,b,d){zg.superclazz.c$$java_awt_Component$I.apply(this,[a,e]);zg.$init$.apply(this);this.temporary=b;this.opposite=d},1);b(zg,"c$$java_awt_Component$I$Z",function(a,e,b){zg.c$$java_awt_Component$I$Z$java_awt_Component.apply(this,[a,e,b,null])},1);b(zg,"c$$java_awt_Component$I",function(a,e){zg.c$$java_awt_Component$I$Z.apply(this,[a,e,!1])},1);b(zg,"isTemporary$", +function(){return this.temporary});b(zg,"getOppositeComponent$",function(){return null==this.opposite?null:(Rn[1]||(Rn[1]=g(Rn[0][1]))).targetToAppContext$O(this.opposite)===(Rn[2]||(Rn[2]=g(Rn[0][2]))).getAppContext$()?this.opposite:null});b(zg,"paramString$",function(){var a;switch(this.id){case 1004:a="FOCUS_GAINED";break;case 1005:a="FOCUS_LOST";break;default:a="unknown type"}return a+(this.temporary?",temporary":",permanent")+",opposite="+this.getOppositeComponent$()});b(zg);n("3.2.4.07");var Ix= +q("java.awt.event"),zv=N(Ix,"FocusListener",null,null,"java.util.EventListener");zv.$clinit$=function(){g(zv,1)};n("3.2.4.07");var Jx=q("java.awt.event"),Av=N(Jx,"HierarchyBoundsListener",null,null,"java.util.EventListener");Av.$clinit$=function(){g(Av,1)};n("3.2.4.07");var Kx=q("java.awt.event"),Bv=N(Kx,"HierarchyListener",null,null,"java.util.EventListener");Bv.$clinit$=function(){g(Bv,1)};n("3.2.4.07");var Lx=q("java.awt.event"),cr=[[0,"swingjs.JSMouse","StringBuilder","java.awt.Toolkit"]],Dk= +function(a){return cr[a]||(cr[a]=g(cr[0][a]))},ye=j(Lx,"InputEvent",null,"java.awt.event.ComponentEvent");ye.$clinit$=function(){g(ye,1)};b(ye,"$init0$",function(){var a;(a=ye.superclazz)&&(a=a.$init0$)&&a.apply(this);this.modifiers=this.when=0;this.canAccessSystemClipboard=!1},1);b(ye,"$init$",function(){},1);b(ye,"c$$java_awt_Component$I$J$I",function(a,e,b,d){ye.superclazz.c$$java_awt_Component$I.apply(this,[a,e]);ye.$init$.apply(this);this.when=b;this.modifiers=d;this.canAccessSystemClipboard= +!1},1);b(ye,"c$",function(){ye.superclazz.c$.apply(this,[]);ye.$init$.apply(this)},1);b(ye,"isShiftDown$",function(){return 0!=(this.modifiers&1)});b(ye,"isControlDown$",function(){return 0!=(this.modifiers&2)});b(ye,"isMetaDown$",function(){return 0!=(this.modifiers&4)});b(ye,"isAltDown$",function(){return 0!=(this.modifiers&8)});b(ye,"isAltGraphDown$",function(){return 0!=(this.modifiers&32)});b(ye,"getWhen$",function(){return this.when});b(ye,"getModifiers$",function(){return this.modifiers&-16321}); +b(ye,"getModifiersEx$",function(){return this.modifiers&-64});b(ye,"consume$",function(){Dk(1).checkConsume$java_awt_event_InputEvent(this);this.consumed=!0});b(ye,"isConsumed$",function(){return this.consumed});b(ye,"getModifiersExText$I",function(a){var e=f(Dk(2));0!=(a&256)&&(e.append$S(Dk(3).getProperty$S$S("AWT.meta","Meta")),e.append$S("+"));0!=(a&128)&&(e.append$S(Dk(3).getProperty$S$S("AWT.control","Ctrl")),e.append$S("+"));0!=(a&512)&&(e.append$S(Dk(3).getProperty$S$S("AWT.alt","Alt")),e.append$S("+")); +0!=(a&64)&&(e.append$S(Dk(3).getProperty$S$S("AWT.shift","Shift")),e.append$S("+"));0!=(a&8192)&&(e.append$S(Dk(3).getProperty$S$S("AWT.altGraph","Alt Graph")),e.append$S("+"));0!=(a&1024)&&(e.append$S(Dk(3).getProperty$S$S("AWT.button1","Button1")),e.append$S("+"));0!=(a&2048)&&(e.append$S(Dk(3).getProperty$S$S("AWT.button2","Button2")),e.append$S("+"));0!=(a&4096)&&(e.append$S(Dk(3).getProperty$S$S("AWT.button3","Button3")),e.append$S("+"));0k||3=e,d=1001<=e&&1001>=e,e=201==e;if(Ag(1).isInstanceOf$O$S(this.modalComponent,"javax.swing.JInternalFrame"))return e?Ag(2).REJECT:Ag(2).ACCEPT;if(b||d||e)if(a=a.getSource$(),!k(a,"sun.awt.ModalExclude")&&k(a,"java.awt.Component")){b=!1;if(k(this.modalComponent,"java.awt.Container"))for(;a!==this.modalComponent&&null!=a;){if(k(a,"java.awt.Window")&& +Ag(3).isModalExcluded$java_awt_Window(a)){b=!0;break}a=a.getParent$()}if(!b&&a!==this.modalComponent)return Ag(2).REJECT}}return Ag(2).ACCEPT});b(Ek);b(lc);n("3.2.4.07");var Nv=q("java.awt");N(Nv,"EventFilter",function(){});var Bj=j(Nv.EventFilter,"FilterAction",function(a){m(this,a,!1,Bj)},"Enum");Bj.$clinit$=function(){g(Bj,1);jm=l(Bj,[0]);Pa(jm,Bj.c$,"ACCEPT",0,[]);Pa(jm,Bj.c$,"REJECT",1,[]);Pa(jm,Bj.c$,"ACCEPT_IMMEDIATELY",2,[])};b(Bj,"$init$",function(){},1);b(Bj);var jm=[];b(Bj,"values$",function(){return jm}, +1);b(Bj,"valueOf$S",function(a){for(var e in jm)if(jm[e].name==a)return jm[e];return null},1);n("3.2.4.07");var $x=q("java.awt"),Kc={},fr=[[0,"java.awt.Queue","Thread","sun.awt.SunToolkit","sun.awt.AWTAutoShutdown","java.awt.EventQueueItem","swingjs.JSToolkit","java.awt.Toolkit","sun.awt.AppContext","java.awt.EventDispatchThread","java.awt.event.InvocationEvent","Error"]],mc=function(a){return fr[a]||(fr[a]=g(fr[0][a]))},Qa=j($x,"EventQueue");Qa.threadInitNumber=0;Qa.$clinit$=function(){g(Qa,1)}; +b(Qa,"$init0$",function(){var a;(a=Qa.superclazz)&&(a=a.$init0$)&&a.apply(this);this.threadGroup=this.dispatchThread=this.previousQueue=this.nextQueue=this.queues=null;this.mostRecentEventTime=0;this.currentEvent=null;this.waitForID=0;this.name=null},1);b(Qa,"$init$",function(){this.queues=l(mc(1),[4]);this.threadGroup=mc(2).currentThread$().getThreadGroup$();this.mostRecentEventTime=System.currentTimeMillis$();this.name="AWT-EventQueue-"+Qa.nextThreadNum$()},1);b(Qa,"nextThreadNum$",function(){return Qa.threadInitNumber++}, +1);b(Qa,"c$",function(){Qa.$init$.apply(this);for(var a=0;4>a;a++)this.queues[a]=f(mc(1))},1);b(Qa,"postEvent$java_awt_AWTEvent",function(a){mc(3).flushPendingEvents$();this.postEventPrivate$java_awt_AWTEvent(a)});b(Qa,"postEventPrivate$java_awt_AWTEvent",function(a){a.isPosted=!0;if(null==this.dispatchThread&&null==this.nextQueue){if(a.getSource$()===mc(4).getInstance$())return;this.initDispatchThread$()}null!=this.nextQueue?this.nextQueue.postEventPrivate$java_awt_AWTEvent(a):Kc.postEventNow$java_awt_AWTEvent$I.apply(this, +[a,Qa.getPriority$java_awt_AWTEvent(a)])});b(Qa,"getPriority$java_awt_AWTEvent",function(a){if(k(a,"sun.awt.PeerEvent")){var e=a.getFlags$();if(0!=(e&2))return 3;if(0!=(e&1))return 2;if(0!=(e&4))return 0}switch(a.getID$()){case 1201:case 800:case 801:return 0;default:return 1}},1);b(Qa,"postEventNow$java_awt_AWTEvent$I",function(a,e){if(!Kc.coalesceEvent$java_awt_AWTEvent$I.apply(this,[a,e])){var b=f(mc(5).c$$java_awt_AWTEvent,[a]);Kc.cacheEQItem$java_awt_EventQueueItem.apply(this,[b]);if(null==this.queues[e].head){var d= +Kc.noEvents.apply(this,[]);this.queues[e].head=this.queues[e].tail=b;d&&a.getSource$()!==mc(4).getInstance$()&&mc(4).getInstance$().notifyThreadBusy$Thread(this.dispatchThread)}else this.queues[e].tail.next=b,this.queues[e].tail=b}},Kc);b(Qa,"coalescePaintEvent$java_awt_event_PaintEvent",function(a){var e=a.getSource$().eventCache;if(null==e)return!1;var b=Qa.eventToCacheIndex$java_awt_AWTEvent(a);return-1!=b&&null!=e[b]&&(a=Kc.mergePaintEvents$java_awt_event_PaintEvent$java_awt_event_PaintEvent.apply(this, +[a,e[b].event]),null!=a)?(e[b].event=a,!0):!1},Kc);b(Qa,"mergePaintEvents$java_awt_event_PaintEvent$java_awt_event_PaintEvent",function(a,e){var b=a.getUpdateRect$(),d=e.getUpdateRect$();return d.contains$java_awt_Rectangle(b)?e:b.contains$java_awt_Rectangle(d)?a:null},Kc);b(Qa,"coalesceMouseEvent$java_awt_event_MouseEvent",function(a){var e=a.getSource$().eventCache;if(null==e)return!1;var b=Qa.eventToCacheIndex$java_awt_AWTEvent(a);return-1!=b&&null!=e[b]?(e[b].event=a,!0):!1},Kc);b(Qa,"coalescePeerEvent$sun_awt_PeerEvent", +function(a){var e=a.getSource$().eventCache;if(null==e)return!1;var b=Qa.eventToCacheIndex$java_awt_AWTEvent(a);if(-1!=b&&null!=e[b]){a=a.coalesceEvents$sun_awt_PeerEvent(e[b].event);if(null!=a)return e[b].event=a,!0;e[b]=null}return!1},Kc);b(Qa,"coalesceOtherEvent$java_awt_AWTEvent$I",function(a,e){for(var b=a.getID$(),d=a.getSource$(),h=this.queues[e].head;null!=h;h=h.next)if(h.event.getSource$()===d&&h.id==b){var f=d.coalesceEvents$java_awt_AWTEvent$java_awt_AWTEvent(h.event,a);if(null!=f)return h.event= +f,!0}return!1},Kc);b(Qa,"coalesceEvent$java_awt_AWTEvent$I",function(a,e){return!k(a.getSource$(),"java.awt.Component")?!1:k(a,"sun.awt.PeerEvent")?Kc.coalescePeerEvent$sun_awt_PeerEvent.apply(this,[a]):a.getSource$().isCoalescingEnabled$()&&Kc.coalesceOtherEvent$java_awt_AWTEvent$I.apply(this,[a,e])?!0:k(a,"java.awt.event.PaintEvent")?Kc.coalescePaintEvent$java_awt_event_PaintEvent.apply(this,[a]):k(a,"java.awt.event.MouseEvent")?Kc.coalesceMouseEvent$java_awt_event_MouseEvent.apply(this,[a]):!1}, +Kc);b(Qa,"cacheEQItem$java_awt_EventQueueItem",function(a){var e=Qa.eventToCacheIndex$java_awt_AWTEvent(a.event);if(-1!=e&&k(a.event.getSource$(),"java.awt.Component")){var b=a.event.getSource$();null==b.eventCache&&(b.eventCache=l(mc(5),[5]));b.eventCache[e]=a}},Kc);b(Qa,"uncacheEQItem$java_awt_EventQueueItem",function(a){var e=Qa.eventToCacheIndex$java_awt_AWTEvent(a.event);-1!=e&&k(a.event.getSource$(),"java.awt.Component")&&(a=a.event.getSource$(),null!=a.eventCache&&(a.eventCache[e]=null))}, +Kc);b(Qa,"eventToCacheIndex$java_awt_AWTEvent",function(a){switch(a.getID$()){case 800:return 0;case 801:return 1;case 503:return 2;case 506:return 3;default:return-1}},1);b(Qa,"noEvents",function(){for(var a=0;4>a;a++)if(null!=this.queues[a].head)return!1;return!0},Kc);b(Qa,"getNextEvent$",function(){mc(3).flushPendingEvents$();for(var a=3;0<=a;a--)if(null!=this.queues[a].head){var e=this.queues[a].head;this.queues[a].head=e.next;null==e.next&&(this.queues[a].tail=null);Kc.uncacheEQItem$java_awt_EventQueueItem.apply(this, +[e]);return e.event}mc(4).getInstance$().notifyThreadFree$Thread(this.dispatchThread);return null});b(Qa,"getNextEventForID$I",function(a){mc(3).flushPendingEvents$();for(var e=0;4>e;e++)for(var b=this.queues[e].head,d=null;null!=b;d=b,b=b.next)if(b.id==a)return null==d?this.queues[e].head=b.next:d.next=b.next,this.queues[e].tail===b&&(this.queues[e].tail=d),Kc.uncacheEQItem$java_awt_EventQueueItem.apply(this,[b]),b.event;this.waitForID=a;this.waitForID=0;return null});b(Qa,"peekEvent$",function(){for(var a= +3;0<=a;a--)if(null!=this.queues[a].head)return this.queues[a].head.event;return null});b(Qa,"peekEvent$I",function(a){for(var e=3;0<=e;e--)for(var b=this.queues[e].head;null!=b;b=b.next)if(b.id==a)return b.event;return null});b(Qa,"dispatchEvent$java_awt_AWTEvent",function(a){var e=a.getSource$();Kc.dispatchEventImpl$java_awt_AWTEvent$O$Z.apply(this,[a,e,!0])});b(Qa,"dispatchEventAndWait$java_awt_AWTEvent$O",function(a,e){Kc.dispatchEventImpl$java_awt_AWTEvent$O$Z.apply(this,[a,e,!0])});b(Qa,"dispatchEventImpl$java_awt_AWTEvent$O$Z", +function(a,e,b){a.isPosted=!0;k(a,"java.awt.ActiveEvent")?(Kc.setCurrentEventAndMostRecentTimeImpl$java_awt_AWTEvent.apply(this,[a]),mc(6).dispatchEvent$java_awt_AWTEvent$O$Z(a,null,b)):k(e,"java.awt.Component")?(mc(6).dispatchEvent$java_awt_AWTEvent$O$Z(a,e,b),a.dispatched$()):k(e,"sun.awt.AWTAutoShutdown")?Kc.noEvents.apply(this,[])&&this.dispatchThread.stopDispatching$():System.err.println$S("unable to dispatch event: "+a)},Kc);b(Qa,"getMostRecentEventTime$",function(){return 0},1);b(Qa,"getMostRecentEventTimeEx$", +function(){return this.mostRecentEventTime});b(Qa,"getCurrentEvent$",function(){return Kc.getCurrentEventImpl.apply(mc(7).getEventQueue$(),[])},1);b(Qa,"getCurrentEventImpl",function(){return mc(6).isDispatchThread$()?this.currentEvent:null},Kc);b(Qa,"push$java_awt_EventQueue",function(a){if(null!=this.nextQueue)this.nextQueue.push$java_awt_EventQueue(a);else{for(;null!=this.peekEvent$();)try{a.postEventPrivate$java_awt_AWTEvent(this.getNextEvent$())}catch(e){if(!A(e,"InterruptedException"))throw e; +}a.previousQueue=this;null!=this.dispatchThread&&this.dispatchThread.stopDispatchingLater$();this.nextQueue=a;var b=mc(8).getAppContext$();b.get$O(mc(8).EVENT_QUEUE_KEY)===this&&b.put$O$O(mc(8).EVENT_QUEUE_KEY,a)}});b(Qa,"pop$",function(){var a=this.previousQueue;null!=a?a:this;if(null!=this.nextQueue)this.nextQueue.pop$();else{if(null==this.previousQueue)throw f(g("java.util.EmptyStackException"));for(this.previousQueue.nextQueue=null;null!=this.peekEvent$();)try{this.previousQueue.postEventPrivate$java_awt_AWTEvent(this.getNextEvent$())}catch(e){if(!A(e, +"InterruptedException"))throw e;}a=mc(8).getAppContext$();a.get$O(mc(8).EVENT_QUEUE_KEY)===this&&a.put$O$O(mc(8).EVENT_QUEUE_KEY,this.previousQueue);this.previousQueue=null;a=this.dispatchThread;null!=a&&a.stopDispatching$()}});b(Qa,"isDispatchThread$",function(){return mc(6).isDispatchThread$()},1);b(Qa,"initDispatchThread$",function(){if(null==this.dispatchThread){var a=f(mc(9).c$$ThreadGroup$S$java_awt_EventQueue,[this.threadGroup,this.name,this]);mc(4).getInstance$().notifyThreadBusy$Thread(a); +this.dispatchThread=a;this.dispatchThread.start$()}});b(Qa,"detachDispatchThread$",function(){this.dispatchThread=null});b(Qa,"getDispatchThread$",function(){return this.dispatchThread});b(Qa,"removeSourceEvents$O$Z",function(a,e){mc(3).flushPendingEvents$();for(var b=0;4>b;b++){for(var d=this.queues[b].head,h=null;null!=d;)d.event.getSource$()===a&&(e||!k(d.event,"java.awt.SequencedEvent")&&!k(d.event,"java.awt.SentEvent")&&!k(d.event,"java.awt.event.FocusEvent")&&!k(d.event,"java.awt.event.WindowEvent")&& +!k(d.event,"java.awt.event.KeyEvent")&&!k(d.event,"java.awt.event.InputMethodEvent"))?(k(d.event,"java.awt.SequencedEvent")&&d.event.dispose$(),k(d.event,"java.awt.SentEvent")&&d.event.dispose$(),null==h?this.queues[b].head=d.next:h.next=d.next,Kc.uncacheEQItem$java_awt_EventQueueItem.apply(this,[d])):h=d,d=d.next;this.queues[b].tail=h}});b(Qa,"setCurrentEventAndMostRecentTime$java_awt_AWTEvent",function(a){Kc.setCurrentEventAndMostRecentTimeImpl$java_awt_AWTEvent.apply(mc(7).getEventQueue$(),[a])}, +1);b(Qa,"setCurrentEventAndMostRecentTimeImpl$java_awt_AWTEvent",function(a){if(!mc(6).isDispatchThread$()){this.currentEvent=a;var e=-9223372036854775E3;k(a,"java.awt.event.InputEvent")?e=a.getWhen$():k(a,"java.awt.event.InputMethodEvent")?e=a.getWhen$():k(a,"java.awt.event.ActionEvent")?e=a.getWhen$():k(a,"java.awt.event.InvocationEvent")&&(e=a.getWhen$());this.mostRecentEventTime=Math.max(this.mostRecentEventTime,e)}},Kc);b(Qa,"invokeLater$Runnable",function(a){mc(7).getEventQueue$().postEvent$java_awt_AWTEvent(f(mc(10).c$$O$I$Runnable$O$Z, +[mc(7).getDefaultToolkit$(),1200,a,null,!1]))},1);b(Qa,"invokeAndWait$Runnable",function(a){Qa.invokeAndWaitStatic$O$Runnable(mc(7).getDefaultToolkit$(),a)},1);b(Qa,"invokeAndWaitStatic$O$Runnable",function(a,e){if(Qa.isDispatchThread$())throw f(mc(11).c$$S,["Cannot call invokeAndWait from the event dispatcher thread"]);var b=f(mc(10).c$$O$I$Runnable$O$Z,[a,1200,e,null,!0]);mc(6).dispatchEvent$java_awt_AWTEvent$O$Z(b,null,!0);b=b.getThrowable$();if(null!=b)throw f(g("java.lang.reflect.InvocationTargetException").c$$Throwable, +[b]);},1);b(Qa,"wakeup$Z",function(a){if(null!=this.nextQueue)this.nextQueue.wakeup$Z(a);else if(null!=this.dispatchThread)try{this.dispatchThread.start$()}catch(e){if(A(e,"IllegalThreadStateException"))this.dispatchThread.run$();else throw e;}else a||this.initDispatchThread$()});n("3.2.4.07");var ay=q("java.awt"),km=j(ay,"EventQueueItem");km.$clinit$=function(){g(km,1)};b(km,"$init0$",function(){var a;(a=km.superclazz)&&(a=a.$init0$)&&a.apply(this);this.event=null;this.id=0;this.next=null},1);b(km, +"$init$",function(){},1);b(km,"c$$java_awt_AWTEvent",function(a){km.$init$.apply(this);this.event=a;this.id=a.getID$()},1);b(km);n("3.2.4.07");var by=q("java.awt"),gr={},Vn=[[0,"java.awt.Dimension"]],Ed=j(by,"FlowLayout",null,null,["java.awt.LayoutManager","java.io.Serializable"]);Ed.$clinit$=function(){g(Ed,1)};b(Ed,"$init0$",function(){var a;(a=Ed.superclazz)&&(a=a.$init0$)&&a.apply(this);this.vgap=this.hgap=this.newAlign=this.align=0;this.alignOnBaseline=!1},1);b(Ed,"$init$",function(){},1);b(Ed, +"c$",function(){Ed.c$$I$I$I.apply(this,[1,5,5])},1);b(Ed,"c$$I",function(a){Ed.c$$I$I$I.apply(this,[a,5,5])},1);b(Ed,"c$$I$I$I",function(a,e,b){Ed.$init$.apply(this);this.hgap=e;this.vgap=b;this.setAlignment$I(a)},1);b(Ed,"getAlignment$",function(){return this.newAlign});b(Ed,"setAlignment$I",function(a){this.newAlign=a;switch(a){case 3:this.align=0;break;case 4:this.align=2;break;default:this.align=a}});b(Ed,"getHgap$",function(){return this.hgap});b(Ed,"setHgap$I",function(a){this.hgap=a});b(Ed, +"getVgap$",function(){return this.vgap});b(Ed,"setVgap$I",function(a){this.vgap=a});b(Ed,"setAlignOnBaseline$Z",function(a){this.alignOnBaseline=a});b(Ed,"getAlignOnBaseline$",function(){return this.alignOnBaseline});b(Ed,"addLayoutComponent$S$java_awt_Component",function(){});b(Ed,"removeLayoutComponent$java_awt_Component",function(){});b(Ed,"preferredLayoutSize$java_awt_Container",function(a){a.getTreeLock$();for(var e=f((Vn[1]||(Vn[1]=g(Vn[0][1]))).c$$I$I,[0,0]),b=a.getComponentCount$(),d=!0,h= +this.getAlignOnBaseline$(),s=0,I=0,p=0;ps?"-":" ",s=a.lastIndexOf$I(e),g=a.lastIndexOf$I$I(e,s-1),b=a.length$();if(0=d&&(d=12)}catch(p){if(A(p,"NumberFormatException"))g=s,s=b,a.charAt$I(s-1)==e&&s--;else throw p;}0<=g&&g+1=e&&(a=a.substring$I$I(e, +b));var d=this.getFontMetrics$();e=d.getDescent$();b=d.getAscent$();a=d.stringWidth$S(a);return f(db(10).c$$F$F$F$F,[0,-e,a,b+e])});b(ba,"finalize$",function(){});b(ba,"getLineMetrics$S",function(a){null==this.mapLineMetrics&&(this.mapLineMetrics=f(db(11)));var e=this.mapLineMetrics.get$O(a);return null==e?f(db(12).c$$java_awt_Font$S,[this,a]):e},Fk);b(ba,"getLineMetrics$java_text_CharacterIterator$I$I$O",function(){return null});b(ba,"getLineMetrics$CA$I$I$O",function(){return null});b(ba,"getLineMetrics$S$I$I$O", +function(){return null});b(ba,"getLineMetrics$S$O",function(){return null});b(ba);n("3.2.4.07");var ey=q("java.awt.font"),ir=[[0,"java.awt.geom.AffineTransform","java.awt.RenderingHints"]],Oi=function(a){return ir[a]||(ir[a]=g(ir[0][a]))},Pe=j(ey,"FontRenderContext");Pe.$clinit$=function(){g(Pe,1)};b(Pe,"$init0$",function(){var a;(a=Pe.superclazz)&&(a=a.$init0$)&&a.apply(this);this.fmHintValue=this.aaHintValue=this.tx=null;this.defaulting=!1},1);b(Pe,"$init$",function(){},1);b(Pe,"c$",function(){Pe.$init$.apply(this); +this.defaulting=!0},1);b(Pe,"c$$java_awt_geom_AffineTransform$Z$Z",function(a){Pe.$init$.apply(this);null!=a&&!a.isIdentity$()&&(this.tx=f(Oi(1).c$$java_awt_geom_AffineTransform,[a]))},1);b(Pe,"c$$java_awt_geom_AffineTransform$O$O",function(a,e,b){Pe.$init$.apply(this);null!=a&&!a.isIdentity$()&&(this.tx=f(Oi(1).c$$java_awt_geom_AffineTransform,[a]));this.aaHintValue=e;this.fmHintValue=b},1);b(Pe,"isTransformed$",function(){return this.defaulting?!this.getTransform$().isIdentity$():null!=this.tx}); +b(Pe,"getTransformType$",function(){return this.defaulting?this.getTransform$().getType$():null==this.tx?0:this.tx.getType$()});b(Pe,"getTransform$",function(){return null==this.tx?f(Oi(1)):f(Oi(1).c$$java_awt_geom_AffineTransform,[this.tx])});b(Pe,"isAntiAliased$",function(){return!(this.aaHintValue===Oi(2).VALUE_TEXT_ANTIALIAS_OFF||this.aaHintValue===Oi(2).VALUE_TEXT_ANTIALIAS_DEFAULT)});b(Pe,"usesFractionalMetrics$",function(){return!(this.fmHintValue===Oi(2).VALUE_FRACTIONALMETRICS_OFF||this.fmHintValue=== +Oi(2).VALUE_FRACTIONALMETRICS_DEFAULT)});b(Pe,"getAntiAliasingHint$",function(){return this.defaulting?this.isAntiAliased$()?Oi(2).VALUE_TEXT_ANTIALIAS_ON:Oi(2).VALUE_TEXT_ANTIALIAS_OFF:this.aaHintValue});b(Pe,"getFractionalMetricsHint$",function(){return this.defaulting?this.usesFractionalMetrics$()?Oi(2).VALUE_FRACTIONALMETRICS_ON:Oi(2).VALUE_FRACTIONALMETRICS_OFF:this.fmHintValue});b(Pe,"equals$O",function(a){try{return this.equals$java_awt_font_FontRenderContext(a)}catch(e){if(A(e,"ClassCastException"))return!1; +throw e;}});b(Pe,"equals$java_awt_font_FontRenderContext",function(a){return this===a?!0:null==a?!1:!a.defaulting&&!this.defaulting?a.aaHintValue===this.aaHintValue&&a.fmHintValue===this.fmHintValue?null==this.tx?null==a.tx:this.tx.equals$O(a.tx):!1:a.getAntiAliasingHint$()===this.getAntiAliasingHint$()&&a.getFractionalMetricsHint$()===this.getFractionalMetricsHint$()&&a.getTransform$().equals$O(this.getTransform$())});b(Pe,"hashCode$",function(){var a=null==this.tx?0:this.tx.hashCode$();this.defaulting? +(a+=this.getAntiAliasingHint$().hashCode$(),a+=this.getFractionalMetricsHint$().hashCode$()):(a+=this.aaHintValue.hashCode$(),a+=this.fmHintValue.hashCode$());return a});n("3.2.4.07");var fy=q("java.awt"),Wp={},jr=[[0,"java.awt.font.FontRenderContext"]],Qd=j(fy,"FontMetrics");Qd.DEFAULT_FRC=null;Qd.$clinit$=function(){g(Qd,1);Qd.DEFAULT_FRC=f((jr[1]||(jr[1]=g(jr[0][1]))).c$$java_awt_geom_AffineTransform$Z$Z,[null,!1,!1])};b(Qd,"$init0$",function(){var a;(a=Qd.superclazz)&&(a=a.$init0$)&&a.apply(this); +this.font=null},1);b(Qd,"$init$",function(){},1);b(Qd,"c$$java_awt_Font",function(a){Qd.$init$.apply(this);this.font=a},1);b(Qd,"getFont$",function(){return this.font});b(Qd,"getFontRenderContext$",function(){return Qd.DEFAULT_FRC});b(Qd,"getHeight$",function(){return this.getLeading$()+this.getAscent$()+this.getDescent$()});b(Qd,"getMaxAscent$",function(){return this.getAscent$()});b(Qd,"getMaxDescent$",function(){return this.getDescent$()});b(Qd,"getMaxDecent$",function(){return this.getMaxDescent$()}); +b(Qd,"getMaxAdvance$",function(){return this.charWidth$C("M")});b(Qd,"charsWidth$CA$I$I",function(a,e,b){return this.stringWidth$S(String.instantialize(a,e,b))});b(Qd,"bytesWidth$BA$I$I",function(a,e,b){return this.stringWidth$S(String.instantialize(a,0,e,b))});b(Qd,"getStringBounds$S$java_awt_Graphics",function(a,e){return this.font.getStringBounds$S$java_awt_font_FontRenderContext(a,Wp.myFRC$java_awt_Graphics.apply(this,[e]))});b(Qd,"getStringBounds$S$I$I$java_awt_Graphics",function(a,e,b,d){return this.font.getStringBounds$S$I$I$java_awt_font_FontRenderContext(a, +e,b,Wp.myFRC$java_awt_Graphics.apply(this,[d]))});b(Qd,"getStringBounds$CA$I$I$java_awt_Graphics",function(a,e,b,d){return this.font.getStringBounds$CA$I$I$java_awt_font_FontRenderContext(a,e,b,Wp.myFRC$java_awt_Graphics.apply(this,[d]))});b(Qd,"myFRC$java_awt_Graphics",function(){return null},Wp);b(Qd,"toString",function(){return this.getClass$().getName$()+"[font="+this.getFont$()+"ascent="+this.getAscent$()+", descent="+this.getDescent$()+", height="+this.getHeight$()+"]"});b(Qd);n("3.2.4.07"); +var gy=q("java.awt"),Zg=j(gy,"Frame",null,"swingjs.a2s.Frame");Zg.$clinit$=function(){g(Zg,1)};b(Zg,"$init$",function(){},1);b(Zg,"c$",function(){Zg.superclazz.c$.apply(this,[]);Zg.$init$.apply(this)},1);b(Zg,"c$$java_awt_GraphicsConfiguration",function(a){Zg.superclazz.c$$java_awt_GraphicsConfiguration.apply(this,[a]);Zg.$init$.apply(this)},1);b(Zg,"c$$S",function(a){Zg.superclazz.c$$S.apply(this,[a]);Zg.$init$.apply(this)},1);b(Zg,"c$$S$java_awt_GraphicsConfiguration",function(a,e){Zg.superclazz.c$$S$java_awt_GraphicsConfiguration.apply(this, +[a,e]);Zg.$init$.apply(this)},1);n("3.2.4.07");var hy=q("java.awt.geom"),$a={},kr=[[0,"InternalError",["java.awt.geom.Point2D",".Double"],["java.awt.geom.Point2D",".Float"],"javajs.util.AU",["java.awt.geom.Path2D",".Double"]]],Pi=function(a){return kr[a]||(kr[a]=g(kr[0][a]))},T=j(hy,"AffineTransform",null,null,["Cloneable","java.io.Serializable"]);T.rot90conversion=null;T.$clinit$=function(){g(T,1);T.rot90conversion=l(Integer.TYPE,-1,[4,5,4,5,2,3,6,7])};b(T,"$init0$",function(){var a;(a=T.superclazz)&& +(a=a.$init0$)&&a.apply(this);this.type=this.state=this.m12=this.m02=this.m11=this.m01=this.m10=this.m00=0},1);b(T,"$init$",function(){},1);b(T,"c$$D$D$D$D$D$D$I",function(a,e,b,d,h,f,g){T.$init$.apply(this);this.m00=a;this.m10=e;this.m01=b;this.m11=d;this.m02=h;this.m12=f;this.state=g;this.type=-1},1);b(T,"c$",function(){T.$init$.apply(this);this.m00=this.m11=1},1);b(T,"c$$java_awt_geom_AffineTransform",function(a){T.$init$.apply(this);this.m00=a.m00;this.m10=a.m10;this.m01=a.m01;this.m11=a.m11;this.m02= +a.m02;this.m12=a.m12;this.state=a.state;this.type=a.type},1);b(T,"c$$F$F$F$F$F$F",function(a,e,b,d,h,f){T.$init$.apply(this);this.m00=a;this.m10=e;this.m01=b;this.m11=d;this.m02=h;this.m12=f;this.updateState$()},1);b(T,"c$$FA",function(a){T.$init$.apply(this);this.m00=a[0];this.m10=a[1];this.m01=a[2];this.m11=a[3];5a&&$a.rotate180.apply(this,[]);else if(0==a)0a?(d=-1,this.state=2,this.type=8):(d=1,this.type=this.state=0)):0==a?(d=0,b=0=Math.abs(a))throw f(g("java.awt.geom.NoninvertibleTransformException").c$$S,["Determinant is "+(new Double(a)).toString()]);return f(T.c$$D$D$D$D$D$D$I,[this.m11/a,-this.m10/a,-this.m01/a,this.m00/a,(this.m01*this.m12-this.m11*this.m02)/a,(this.m10*this.m02-this.m00*this.m12)/a,7]);case 6:a=this.m00*this.m11-this.m01*this.m10;if(4.9E-324>=Math.abs(a))throw f(g("java.awt.geom.NoninvertibleTransformException").c$$S, +["Determinant is "+(new Double(a)).toString()]);return f(T.c$$D$D$D$D$D$D$I,[this.m11/a,-this.m10/a,-this.m01/a,this.m00/a,0,0,6]);case 5:if(0==this.m01||0==this.m10)throw f(g("java.awt.geom.NoninvertibleTransformException").c$$S,["Determinant is 0"]);return f(T.c$$D$D$D$D$D$D$I,[0,1/this.m01,1/this.m10,0,-this.m12/this.m10,-this.m02/this.m01,5]);case 4:if(0==this.m01||0==this.m10)throw f(g("java.awt.geom.NoninvertibleTransformException").c$$S,["Determinant is 0"]);return f(T.c$$D$D$D$D$D$D$I,[0, +1/this.m01,1/this.m10,0,0,0,4]);case 3:if(0==this.m00||0==this.m11)throw f(g("java.awt.geom.NoninvertibleTransformException").c$$S,["Determinant is 0"]);return f(T.c$$D$D$D$D$D$D$I,[1/this.m00,0,0,1/this.m11,-this.m02/this.m00,-this.m12/this.m11,3]);case 2:if(0==this.m00||0==this.m11)throw f(g("java.awt.geom.NoninvertibleTransformException").c$$S,["Determinant is 0"]);return f(T.c$$D$D$D$D$D$D$I,[1/this.m00,0,0,1/this.m11,0,0,2]);case 1:return f(T.c$$D$D$D$D$D$D$I,[1,0,0,1,-this.m02,-this.m12,1]); +case 0:return f(T)}});b(T,"invert$",function(){var a,e,b,d,h,s,I;switch(this.state){default:$a.stateError.apply(this,[]);case 7:a=this.m00;e=this.m01;b=this.m02;d=this.m10;h=this.m11;s=this.m12;I=a*h-e*d;if(4.9E-324>=Math.abs(I))throw f(g("java.awt.geom.NoninvertibleTransformException").c$$S,["Determinant is "+(new Double(I)).toString()]);this.m00=h/I;this.m10=-d/I;this.m01=-e/I;this.m11=a/I;this.m02=(e*s-h*b)/I;this.m12=(d*b-a*s)/I;break;case 6:a=this.m00;e=this.m01;d=this.m10;h=this.m11;I=a*h-e* +d;if(4.9E-324>=Math.abs(I))throw f(g("java.awt.geom.NoninvertibleTransformException").c$$S,["Determinant is "+(new Double(I)).toString()]);this.m00=h/I;this.m10=-d/I;this.m01=-e/I;this.m11=a/I;break;case 5:e=this.m01;b=this.m02;d=this.m10;s=this.m12;if(0==e||0==d)throw f(g("java.awt.geom.NoninvertibleTransformException").c$$S,["Determinant is 0"]);this.m10=1/e;this.m01=1/d;this.m02=-s/d;this.m12=-b/e;break;case 4:e=this.m01;d=this.m10;if(0==e||0==d)throw f(g("java.awt.geom.NoninvertibleTransformException").c$$S, +["Determinant is 0"]);this.m10=1/e;this.m01=1/d;break;case 3:a=this.m00;b=this.m02;h=this.m11;s=this.m12;if(0==a||0==h)throw f(g("java.awt.geom.NoninvertibleTransformException").c$$S,["Determinant is 0"]);this.m00=1/a;this.m11=1/h;this.m02=-b/a;this.m12=-s/h;break;case 2:a=this.m00;h=this.m11;if(0==a||0==h)throw f(g("java.awt.geom.NoninvertibleTransformException").c$$S,["Determinant is 0"]);this.m00=1/a;this.m11=1/h;break;case 1:this.m02=-this.m02,this.m12=-this.m12;case 0:}});b(T,"transform$java_awt_geom_Point2D$java_awt_geom_Point2D", +function(a,e){null==e&&(e=k(a,"java.awt.geom.Point2D.Double")?f(Pi(2)):f(Pi(3)));var b=a.getX$(),d=a.getY$();switch(this.state){default:$a.stateError.apply(this,[]);case 7:return e.setLocation$D$D(b*this.m00+d*this.m01+this.m02,b*this.m10+d*this.m11+this.m12),e;case 6:return e.setLocation$D$D(b*this.m00+d*this.m01,b*this.m10+d*this.m11),e;case 5:return e.setLocation$D$D(d*this.m01+this.m02,b*this.m10+this.m12),e;case 4:return e.setLocation$D$D(d*this.m01,b*this.m10),e;case 3:return e.setLocation$D$D(b* +this.m00+this.m02,d*this.m11+this.m12),e;case 2:return e.setLocation$D$D(b*this.m00,d*this.m11),e;case 1:return e.setLocation$D$D(b+this.m02,d+this.m12),e;case 0:return e.setLocation$D$D(b,d),e}});b(T,"transform$java_awt_geom_Point2DA$I$java_awt_geom_Point2DA$I$I",function(a,e,b,d,h){$a.transformPts$java_awt_geom_Point2DA$I$java_awt_geom_Point2DA$I$I.apply(this,[a,e,b,d,h])});b(T,"transformPts$java_awt_geom_Point2DA$I$java_awt_geom_Point2DA$I$I",function(a,e,b,d,h){for(var s=this.state;0<=--h;){var g= +a[e++],p=g.getX$(),D=g.getY$(),j=b[d++];null==j&&(j=k(g,"java.awt.geom.Point2D.Double")?f(Pi(2)):f(Pi(3)),b[d-1]=j);switch(s){default:$a.stateError.apply(this,[]);case 7:j.setLocation$D$D(p*this.m00+D*this.m01+this.m02,p*this.m10+D*this.m11+this.m12);break;case 6:j.setLocation$D$D(p*this.m00+D*this.m01,p*this.m10+D*this.m11);break;case 5:j.setLocation$D$D(D*this.m01+this.m02,p*this.m10+this.m12);break;case 4:j.setLocation$D$D(D*this.m01,p*this.m10);break;case 3:j.setLocation$D$D(p*this.m00+this.m02, +D*this.m11+this.m12);break;case 2:j.setLocation$D$D(p*this.m00,D*this.m11);break;case 1:j.setLocation$D$D(p+this.m02,D+this.m12);break;case 0:j.setLocation$D$D(p,D)}}},$a);b(T,"transform$FA$I$FA$I$I",function(a,e,b,d,h){var f,g,p,D,j,k;b===a&&(d>e&&de&&d=Math.abs(h))throw f(g("java.awt.geom.NoninvertibleTransformException").c$$S,["Determinant is "+(new Double(h)).toString()]);e.setLocation$D$D((b*this.m11-d*this.m01)/h,(d*this.m00- +b*this.m10)/h);return e;case 5:b-=this.m02,d-=this.m12;case 4:if(0==this.m01||0==this.m10)throw f(g("java.awt.geom.NoninvertibleTransformException").c$$S,["Determinant is 0"]);e.setLocation$D$D(d/this.m10,b/this.m01);return e;case 3:b-=this.m02,d-=this.m12;case 2:if(0==this.m00||0==this.m11)throw f(g("java.awt.geom.NoninvertibleTransformException").c$$S,["Determinant is 0"]);e.setLocation$D$D(b/this.m00,d/this.m11);return e;case 1:return e.setLocation$D$D(b-this.m02,d-this.m12),e;case 0:return e.setLocation$D$D(b, +d),e}});b(T,"inverseTransform$DA$I$DA$I$I",function(a,e,b,d,h){var s,I,p,D,j,k,l;b===a&&(d>e&&d=Math.abs(l))throw f(g("java.awt.geom.NoninvertibleTransformException").c$$S,["Determinant is "+(new Double(l)).toString()]);for(;0<=--h;){var m=a[e++]-p,n=a[e++]-k;b[d++]=(m*j-n*I)/l;b[d++]=(n*s-m*D)/ +l}break;case 6:s=this.m00;I=this.m01;D=this.m10;j=this.m11;l=s*j-I*D;if(4.9E-324>=Math.abs(l))throw f(g("java.awt.geom.NoninvertibleTransformException").c$$S,["Determinant is "+(new Double(l)).toString()]);for(;0<=--h;)m=a[e++],n=a[e++],b[d++]=(m*j-n*I)/l,b[d++]=(n*s-m*D)/l;break;case 5:I=this.m01;p=this.m02;D=this.m10;k=this.m12;if(0==I||0==D)throw f(g("java.awt.geom.NoninvertibleTransformException").c$$S,["Determinant is 0"]);for(;0<=--h;)m=a[e++]-p,b[d++]=(a[e++]-k)/D,b[d++]=m/I;break;case 4:I= +this.m01;D=this.m10;if(0==I||0==D)throw f(g("java.awt.geom.NoninvertibleTransformException").c$$S,["Determinant is 0"]);for(;0<=--h;)m=a[e++],b[d++]=a[e++]/D,b[d++]=m/I;break;case 3:s=this.m00;p=this.m02;j=this.m11;k=this.m12;if(0==s||0==j)throw f(g("java.awt.geom.NoninvertibleTransformException").c$$S,["Determinant is 0"]);for(;0<=--h;)b[d++]=(a[e++]-p)/s,b[d++]=(a[e++]-k)/j;break;case 2:s=this.m00;j=this.m11;if(0==s||0==j)throw f(g("java.awt.geom.NoninvertibleTransformException").c$$S,["Determinant is 0"]); +for(;0<=--h;)b[d++]=a[e++]/s,b[d++]=a[e++]/j;break;case 1:p=this.m02;for(k=this.m12;0<=--h;)b[d++]=a[e++]-p,b[d++]=a[e++]-k;break;case 0:(a!==b||e!=d)&&System.arraycopy$O$I$O$I$I(a,e,b,d,2*h)}});b(T,"deltaTransform$java_awt_geom_Point2D$java_awt_geom_Point2D",function(a,e){null==e&&(e=k(a,"java.awt.geom.Point2D.Double")?f(Pi(2)):f(Pi(3)));var b=a.getX$(),d=a.getY$();switch(this.state){default:$a.stateError.apply(this,[]);case 7:case 6:return e.setLocation$D$D(b*this.m00+d*this.m01,b*this.m10+d*this.m11), +e;case 5:case 4:return e.setLocation$D$D(d*this.m01,b*this.m10),e;case 3:case 2:return e.setLocation$D$D(b*this.m00,d*this.m11),e;case 1:case 0:return e.setLocation$D$D(b,d),e}});b(T,"deltaTransform$DA$I$DA$I$I",function(a,e,b,d,h){var f,g,p,D;b===a&&(d>e&&d>32|0)});b(T,"equals$O",function(a){return!k(a,"java.awt.geom.AffineTransform")?!1:this.m00==a.m00&&this.m01==a.m01&&this.m02==a.m02&&this.m10==a.m10&&this.m11==a.m11&&this.m12==a.m12});n("3.2.4.07");var iy=q("java.awt.geom"),lr=[[0,"InternalError"]], +kn=j(iy,"Dimension2D",null,null,"Cloneable");kn.$clinit$=function(){g(kn,1)};b(kn,"$init$",function(){},1);b(kn,"c$",function(){kn.$init$.apply(this)},1);b(kn,"setSize$java_awt_geom_Dimension2D",function(a){this.setSize$D$D(a.getWidth$(),a.getHeight$())});b(kn,"clone$",function(){try{return we(this)}catch(a){if(A(a,"CloneNotSupportedException"))throw f(lr[1]||(lr[1]=g(lr[0][1])));throw a;}});n("3.2.4.07");var lm=q("java.awt.geom"),Ov={},mr=[[0,["java.awt.geom.Path2D",".Iterator"],"java.util.Arrays", +["java.awt.geom.Point2D",".Float"],"sun.awt.geom.Curve",["java.awt.geom.Rectangle2D",".Float"],["java.awt.geom.Path2D",".Float",".CopyIterator"],["java.awt.geom.Path2D",".Float",".TxIterator"],["java.awt.geom.Point2D",".Double"],["java.awt.geom.Rectangle2D",".Double"],["java.awt.geom.Path2D",".Double",".CopyIterator"],["java.awt.geom.Path2D",".Double",".TxIterator"],"java.awt.geom.FlatteningPathIterator"]],bb=function(a){return mr[a]||(mr[a]=g(mr[0][a]))},uc=j(lm,"Path2D",function(){m(this,arguments, +0,uc)},null,["java.awt.Shape","Cloneable"]);uc.$clinit$=function(){g(uc,1)};b(uc,"$init0$",function(){var a;(a=uc.superclazz)&&(a=a.$init0$)&&a.apply(this);this.pointTypes=null;this.windingRule=this.numCoords=this.numTypes=0},1);b(uc,"$init$",function(){},1);b(uc,"c$",function(){uc.$init$.apply(this)},1);b(uc,"c$$I$I",function(a,e){uc.$init$.apply(this);this.setWindingRule$I(a);this.pointTypes=l(Byte.TYPE,[e])},1);b(uc,"closePath$",function(){if(0==this.numTypes||4!=this.pointTypes[this.numTypes- +1])this.needRoom$Z$I(!0,0),this.pointTypes[this.numTypes++]=4});b(uc,"append$java_awt_Shape$Z",function(a,e){this.append$java_awt_geom_PathIterator$Z(a.getPathIterator$java_awt_geom_AffineTransform(null),e)});b(uc,"getWindingRule$",function(){return this.windingRule});b(uc,"setWindingRule$I",function(a){if(0!=a&&1!=a)throw f(g("IllegalArgumentException").c$$S,["winding rule must be WIND_EVEN_ODD or WIND_NON_ZERO"]);this.windingRule=a});b(uc,"getCurrentPoint$",function(){var a=this.numCoords;if(1> +this.numTypes||1>a)return null;if(4==this.pointTypes[this.numTypes-1]){var e=this.numTypes-2;a:for(;0this.numTypes)return!1;var b=1==this.windingRule?-1:1;return 0!=(this.pointCrossings$D$D(a, +e)&b)}return!1});b(uc,"contains$java_awt_geom_Point2D",function(a){return this.contains$D$D(a.getX$(),a.getY$())});b(uc,"contains$java_awt_geom_PathIterator$D$D$D$D",function(a,e,b,d,h){if(java.lang.Double.isNaN$D(e+d)||java.lang.Double.isNaN$D(b+h)||0>=d||0>=h)return!1;var f=1==a.getWindingRule$()?-1:2;a=bb(4).rectCrossingsForPath$java_awt_geom_PathIterator$D$D$D$D(a,e,b,e+d,b+h);return-2147483648!=a&&0!=(a&f)},1);b(uc,"contains$java_awt_geom_PathIterator$java_awt_geom_Rectangle2D",function(a,e){return uc.contains$java_awt_geom_PathIterator$D$D$D$D(a, +e.getX$(),e.getY$(),e.getWidth$(),e.getHeight$())},1);b(uc,"contains$D$D$D$D",function(a,e,b,d){if(java.lang.Double.isNaN$D(a+b)||java.lang.Double.isNaN$D(e+d)||0>=b||0>=d)return!1;var h=1==this.windingRule?-1:2;a=this.rectCrossings$D$D$D$D(a,e,a+b,e+d);return-2147483648!=a&&0!=(a&h)});b(uc,"contains$java_awt_geom_Rectangle2D",function(a){return this.contains$D$D$D$D(a.getX$(),a.getY$(),a.getWidth$(),a.getHeight$())});b(uc,"intersects$java_awt_geom_PathIterator$D$D$D$D",function(a,e,b,d,h){if(java.lang.Double.isNaN$D(e+ +d)||java.lang.Double.isNaN$D(b+h)||0>=d||0>=h)return!1;var f=1==a.getWindingRule$()?-1:2;a=bb(4).rectCrossingsForPath$java_awt_geom_PathIterator$D$D$D$D(a,e,b,e+d,b+h);return-2147483648==a||0!=(a&f)},1);b(uc,"intersects$java_awt_geom_PathIterator$java_awt_geom_Rectangle2D",function(a,e){return uc.intersects$java_awt_geom_PathIterator$D$D$D$D(a,e.getX$(),e.getY$(),e.getWidth$(),e.getHeight$())},1);b(uc,"intersects$D$D$D$D",function(a,e,b,d){if(java.lang.Double.isNaN$D(a+b)||java.lang.Double.isNaN$D(e+ +d)||0>=b||0>=d)return!1;var h=1==this.windingRule?-1:2;a=this.rectCrossings$D$D$D$D(a,e,a+b,e+d);return-2147483648==a||0!=(a&h)});b(uc,"intersects$java_awt_geom_Rectangle2D",function(a){return this.intersects$D$D$D$D(a.getX$(),a.getY$(),a.getWidth$(),a.getHeight$())});b(uc,"getPathIterator$java_awt_geom_AffineTransform$D",function(a,e){return f(bb(12).c$$java_awt_geom_PathIterator$D,[this.getPathIterator$java_awt_geom_AffineTransform(a),e])});var $g=j(lm.Path2D,"Iterator",function(a){m(this,a,!1, +$g)},null,"java.awt.geom.PathIterator");$g.curvecoords=null;$g.$clinit$=function(){g($g,1);$g.curvecoords=l(Integer.TYPE,-1,[2,2,4,6,0])};b($g,"$init0$",function(){var a;(a=$g.superclazz)&&(a=a.$init0$)&&a.apply(this);this.pointIdx=this.typeIdx=0;this.path=null},1);b($g,"$init$",function(){},1);b($g,"c$$java_awt_geom_Path2D",function(a){$g.$init$.apply(this);this.path=a},1);b($g,"getWindingRule$",function(){return this.path.getWindingRule$()});b($g,"isDone$",function(){return this.typeIdx>=this.path.numTypes}); +b($g,"next$",function(){var a=this.path.pointTypes[this.typeIdx++];this.pointIdx+=$g.curvecoords[a]});b($g);var Yb=j(lm.Path2D,"Float",function(a){m(this,a,!1,Yb)},"java.awt.geom.Path2D");Yb.$clinit$=function(){g(Yb,1)};b(Yb,"$init0$",function(){var a;(a=Yb.superclazz)&&(a=a.$init0$)&&a.apply(this);this.floatCoords=null},1);b(Yb,"$init$",function(){},1);b(Yb,"c$",function(){Yb.c$$I$I.apply(this,[1,20])},1);b(Yb,"c$$I",function(a){Yb.c$$I$I.apply(this,[a,20])},1);b(Yb,"c$$I$I",function(a,e){S(Yb,this, +1);this.setWindingRule$I(a);this.pointTypes=l(Byte.TYPE,[e]);this.floatCoords=l(Float.TYPE,[2*e])},1);b(Yb,"c$$java_awt_Shape",function(a){Yb.c$$java_awt_Shape$java_awt_geom_AffineTransform.apply(this,[a,null])},1);b(Yb,"c$$java_awt_Shape$java_awt_geom_AffineTransform",function(a,e){S(Yb,this,1);Ov.setPath$java_awt_Shape$java_awt_geom_AffineTransform.apply(this,[a,e])},1);b(Yb,"setPath$java_awt_Shape$java_awt_geom_AffineTransform",function(a,e){if(k(a,"java.awt.geom.Path2D"))this.setWindingRule$I(a.windingRule), +this.numTypes=a.numTypes,this.pointTypes=bb(2).copyOf$BA$I(a.pointTypes,a.pointTypes.length),this.numCoords=a.numCoords,this.floatCoords=a.cloneCoordsFloat$java_awt_geom_AffineTransform(e);else{var b=a.getPathIterator$java_awt_geom_AffineTransform(e);this.setWindingRule$I(b.getWindingRule$());this.pointTypes=l(Byte.TYPE,[20]);this.floatCoords=l(Float.TYPE,[40]);this.append$java_awt_geom_PathIterator$Z(b,!1)}},Ov);b(Yb,"cloneCoordsFloat$java_awt_geom_AffineTransform",function(a){var e;null==a?e=bb(2).copyOf$FA$I(this.floatCoords, +this.floatCoords.length):(e=l(Float.TYPE,[this.floatCoords.length]),a.transform$FA$I$FA$I$I(this.floatCoords,0,e,0,this.numCoords/2|0));return e});b(Yb,"cloneCoordsDouble$java_awt_geom_AffineTransform",function(a){var e=l(Double.TYPE,[this.floatCoords.length]);if(null==a)for(a=0;athis.numTypes||1>this.numCoords){this.moveTo$F$F(b[0],b[1]);break}if(4!=this.pointTypes[this.numTypes-1]&&this.floatCoords[this.numCoords-2]==b[0]&&this.floatCoords[this.numCoords-1]==b[1])break;case 1:this.lineTo$F$F(b[0],b[1]);break;case 2:this.quadTo$F$F$F$F(b[0], +b[1],b[2],b[3]);break;case 3:this.curveTo$F$F$F$F$F$F(b[0],b[1],b[2],b[3],b[4],b[5]);break;case 4:this.closePath$()}a.next$();e=!1}});b(Yb,"getPoint$I",function(a){return f(bb(3).c$$F$F,[this.floatCoords[a],this.floatCoords[a+1]])});b(Yb,"needRoom$Z$I",function(a,e){if(a&&0==this.numTypes)throw f(g("java.awt.geom.IllegalPathStateException").c$$S,["missing initial moveto in path definition"]);var b=this.pointTypes.length;if(this.numTypes>=b){var d=b;500b&&(d=b,1E3b&&(b=g);s>d&&(d=s)}}else a= +e=b=d=0;return f(bb(5).c$$F$F$F$F,[a,e,b-a,d-e])});b(Yb,"getPathIterator$java_awt_geom_AffineTransform",function(a){return null==a?f(bb(6).c$$java_awt_geom_Path2D_Float,[this]):f(bb(7).c$$java_awt_geom_Path2D_Float$java_awt_geom_AffineTransform,[this,a])});b(Yb,"clone$",function(){return f(Yb.c$$java_awt_Shape,[this])});var Qi=j(lm.Path2D.Float,"CopyIterator",function(a){m(this,a,!1,Qi)},["java.awt.geom.Path2D",".Iterator"]);Qi.$clinit$=function(){g(Qi,1)};b(Qi,"$init0$",function(){var a;(a=Qi.superclazz)&& +(a=a.$init0$)&&a.apply(this);this.floatCoords=null},1);b(Qi,"$init$",function(){},1);b(Qi,"c$$java_awt_geom_Path2D_Float",function(a){Qi.superclazz.c$$java_awt_geom_Path2D.apply(this,[a]);Qi.$init$.apply(this);this.floatCoords=a.floatCoords},1);b(Qi,"currentSegment$FA",function(a){var e=this.path.pointTypes[this.typeIdx],b=bb(1).curvecoords[e];0this.numTypes||1>this.numCoords){this.moveTo$D$D(b[0], +b[1]);break}if(4!=this.pointTypes[this.numTypes-1]&&this.doubleCoords[this.numCoords-2]==b[0]&&this.doubleCoords[this.numCoords-1]==b[1])break;case 1:this.lineTo$D$D(b[0],b[1]);break;case 2:this.quadTo$D$D$D$D(b[0],b[1],b[2],b[3]);break;case 3:this.curveTo$D$D$D$D$D$D(b[0],b[1],b[2],b[3],b[4],b[5]);break;case 4:this.closePath$()}a.next$();e=!1}});b(nc,"getPoint$I",function(a){return f(bb(8).c$$D$D,[this.doubleCoords[a],this.doubleCoords[a+1]])});b(nc,"needRoom$Z$I",function(a,e){if(a&&0==this.numTypes)throw f(g("java.awt.geom.IllegalPathStateException").c$$S, +["missing initial moveto in path definition"]);var b=this.pointTypes.length;if(this.numTypes>=b){var d=b;500b&&(d=b,1E3b&&(b=g);s>d&&(d=s)}}else a=e=b=d=0;return f(bb(9).c$$D$D$D$D,[a,e,b-a,d-e])});b(nc,"getPathIterator$java_awt_geom_AffineTransform",function(a){return null==a?f(bb(10).c$$java_awt_geom_Path2D_Double,[this]):f(bb(11).c$$java_awt_geom_Path2D_Double$java_awt_geom_AffineTransform, +[this,a])});b(nc,"clone$",function(){return f(nc.c$$java_awt_Shape,[this])});var Si=j(lm.Path2D.Double,"CopyIterator",function(a){m(this,a,!1,Si)},["java.awt.geom.Path2D",".Iterator"]);Si.$clinit$=function(){g(Si,1)};b(Si,"$init0$",function(){var a;(a=Si.superclazz)&&(a=a.$init0$)&&a.apply(this);this.doubleCoords=null},1);b(Si,"$init$",function(){},1);b(Si,"c$$java_awt_geom_Path2D_Double",function(a){Si.superclazz.c$$java_awt_geom_Path2D.apply(this,[a]);Si.$init$.apply(this);this.doubleCoords=a.doubleCoords}, +1);b(Si,"currentSegment$FA",function(a){var e=this.path.pointTypes[this.typeIdx],b=bb(1).curvecoords[e];if(0>32|0)});b(ah,"clone$",function(){try{return we(this)}catch(a){if(A(a,"CloneNotSupportedException"))throw f(or[1]||(or[1]=g(or[0][1]))); +throw a;}});var bh=j(nr.Point2D,"Float",function(a){m(this,a,!1,bh)},"java.awt.geom.Point2D");bh.$clinit$=function(){g(bh,1)};b(bh,"$init0$",function(){var a;(a=bh.superclazz)&&(a=a.$init0$)&&a.apply(this);this.y=this.x=0},1);b(bh,"$init$",function(){},1);b(bh,"c$",function(){S(bh,this,1)},1);b(bh,"c$$F$F",function(a,e){S(bh,this,1);this.x=a;this.y=e},1);b(bh,"getX$",function(){return this.x});b(bh,"getY$",function(){return this.y});b(bh,"setLocation$D$D",function(a,e){this.x=a;this.y=e});b(bh,"setLocation$F$F", +function(a,e){this.x=a;this.y=e});b(bh,"toString",function(){return"Point2D.Float["+(new Float(this.x)).toString()+", "+(new Float(this.y)).toString()+"]"});var xh=j(nr.Point2D,"Double",function(a){m(this,a,!1,xh)},"java.awt.geom.Point2D");xh.$clinit$=function(){g(xh,1)};b(xh,"$init0$",function(){var a;(a=xh.superclazz)&&(a=a.$init0$)&&a.apply(this);this.y=this.x=0},1);b(xh,"$init$",function(){},1);b(xh,"c$",function(){S(xh,this,1)},1);b(xh,"c$$D$D",function(a,e){S(xh,this,1);this.x=a;this.y=e},1); +b(xh,"getX$",function(){return this.x});b(xh,"getY$",function(){return this.y});b(xh,"setLocation$D$D",function(a,e){this.x=a;this.y=e});b(xh,"toString",function(){return"Point2D.Double["+(new Double(this.x)).toString()+", "+(new Double(this.y)).toString()+"]"});n("3.2.4.07");var pr=q("java.awt.geom"),qr=[[0,["java.awt.geom.Rectangle2D",".Double"],"java.awt.geom.Rectangle2D","java.awt.geom.RectIterator"]],mm=function(a){return qr[a]||(qr[a]=g(qr[0][a]))},Rd=j(pr,"Rectangle2D",function(){m(this,arguments, +0,Rd)},"java.awt.geom.RectangularShape");Rd.$clinit$=function(){g(Rd,1)};b(Rd,"$init0$",function(){var a;(a=Rd.superclazz)&&(a=a.$init0$)&&a.apply(this);this.iterator=null},1);b(Rd,"$init$",function(){},1);b(Rd,"c$",function(){S(Rd,this,1)},1);b(Rd,"setRect$java_awt_geom_Rectangle2D",function(a){this.setRect$D$D$D$D(a.getX$(),a.getY$(),a.getWidth$(),a.getHeight$())});b(Rd,"intersectsLine$D$D$D$D",function(a,e,b,d){var h,f;if(0==(f=this.outcode$D$D(b,d)))return!0;for(;0!=(h=this.outcode$D$D(a,e));){if(0!= +(h&f))return!1;if(0!=(h&5)){var g=this.getX$();0!=(h&4)&&(g+=this.getWidth$());e+=(g-a)*(d-e)/(b-a);a=g}else g=this.getY$(),0!=(h&8)&&(g+=this.getHeight$()),a+=(g-e)*(b-a)/(d-e),e=g}return!0});b(Rd,"intersectsLine$java_awt_geom_Line2D",function(a){return this.intersectsLine$D$D$D$D(a.getX1$(),a.getY1$(),a.getX2$(),a.getY2$())});b(Rd,"outcode$java_awt_geom_Point2D",function(a){return this.outcode$D$D(a.getX$(),a.getY$())});b(Rd,"setFrame$D$D$D$D",function(a,e,b,d){this.setRect$D$D$D$D(a,e,b,d)});b(Rd, +"contains$D$D",function(a,e){var b=this.getX$(),d=this.getY$();return a>=b&&e>=d&&a=b||0>=d)return!1;var h=this.getX$(),f=this.getY$();return a+b>h&&e+d>f&&a=b||0>=d)return!1;var h=this.getX$(),f=this.getY$();return a>=h&&e>=f&&a+b<=h+this.getWidth$()&&e+d<=f+this.getHeight$()});b(Rd, +"intersect$java_awt_geom_Rectangle2D$java_awt_geom_Rectangle2D$java_awt_geom_Rectangle2D",function(a,e,b){var d=Math.max(a.getMinX$(),e.getMinX$()),h=Math.max(a.getMinY$(),e.getMinY$()),f=Math.min(a.getMaxX$(),e.getMaxX$());a=Math.min(a.getMaxY$(),e.getMaxY$());b.setFrame$D$D$D$D(d,h,f-d,a-h)},1);b(Rd,"union$java_awt_geom_Rectangle2D$java_awt_geom_Rectangle2D$java_awt_geom_Rectangle2D",function(a,e,b){var d=Math.min(a.getMinX$(),e.getMinX$()),h=Math.min(a.getMinY$(),e.getMinY$()),f=Math.max(a.getMaxX$(), +e.getMaxX$());a=Math.max(a.getMaxY$(),e.getMaxY$());b.setFrameFromDiagonal$D$D$D$D(d,h,f,a)},1);b(Rd,"add$D$D",function(a,e){var b=Math.min(this.getMinX$(),a),d=Math.max(this.getMaxX$(),a),h=Math.min(this.getMinY$(),e),f=Math.max(this.getMaxY$(),e);this.setRect$D$D$D$D(b,h,d-b,f-h)});b(Rd,"add$java_awt_geom_Point2D",function(a){this.add$D$D(a.getX$(),a.getY$())});b(Rd,"add$java_awt_geom_Rectangle2D",function(a){var e=Math.min(this.getMinX$(),a.getMinX$()),b=Math.max(this.getMaxX$(),a.getMaxX$()), +d=Math.min(this.getMinY$(),a.getMinY$());a=Math.max(this.getMaxY$(),a.getMaxY$());this.setRect$D$D$D$D(e,d,b-e,a-d)});b(Rd,"getPathIterator$java_awt_geom_AffineTransform",function(a){return(null==this.iterator?this.iterator=f(mm(3)):this.iterator).set$java_awt_geom_Rectangle2D$java_awt_geom_AffineTransform(this,a)});b(Rd,"getPathIterator$java_awt_geom_AffineTransform$D",function(a){return(null==this.iterator?this.iterator=f(mm(3)):this.iterator).set$java_awt_geom_Rectangle2D$java_awt_geom_AffineTransform(this, +a)});b(Rd,"hashCode$",function(){var a=java.lang.Double.doubleToLongBits$D(this.getX$()),a=a+37*java.lang.Double.doubleToLongBits$D(this.getY$()),a=a+43*java.lang.Double.doubleToLongBits$D(this.getWidth$()),a=a+47*java.lang.Double.doubleToLongBits$D(this.getHeight$());return(a|0)^(a>>32|0)});b(Rd,"equals$O",function(a){return a===this?!0:k(a,"java.awt.geom.Rectangle2D")?this.getX$()==a.getX$()&&this.getY$()==a.getY$()&&this.getWidth$()==a.getWidth$()&&this.getHeight$()==a.getHeight$():!1});var Fd= +j(pr.Rectangle2D,"Float",function(a){m(this,a,!1,Fd)},"java.awt.geom.Rectangle2D");Fd.$clinit$=function(){g(Fd,1)};b(Fd,"$init0$",function(){var a;(a=Fd.superclazz)&&(a=a.$init0$)&&a.apply(this);this.height=this.width=this.y=this.x=0},1);b(Fd,"$init$",function(){},1);b(Fd,"c$",function(){S(Fd,this,1)},1);b(Fd,"c$$F$F$F$F",function(a,e,b,d){S(Fd,this,1);this.setRect$F$F$F$F(a,e,b,d)},1);b(Fd,"getX$",function(){return this.x});b(Fd,"getY$",function(){return this.y});b(Fd,"getWidth$",function(){return this.width}); +b(Fd,"getHeight$",function(){return this.height});b(Fd,"isEmpty$",function(){return 0>=this.width||0>=this.height});b(Fd,"setRect$F$F$F$F",function(a,e,b,d){this.x=a;this.y=e;this.width=b;this.height=d});b(Fd,"setRect$D$D$D$D",function(a,e,b,d){this.x=a;this.y=e;this.width=b;this.height=d});b(Fd,"setRect$java_awt_geom_Rectangle2D",function(a){this.x=a.getX$();this.y=a.getY$();this.width=a.getWidth$();this.height=a.getHeight$()});b(Fd,"outcode$D$D",function(a,e){var b=0;0>=this.width?b|=5:athis.x+this.width&&(b|=4);0>=this.height?b|=10:ethis.y+this.height&&(b|=8);return b});b(Fd,"getBounds2D$",function(){return f(Fd.c$$F$F$F$F,[this.x,this.y,this.width,this.height])});b(Fd,"createIntersection$java_awt_geom_Rectangle2D",function(a){var e;e=k(a,"java.awt.geom.Rectangle2D.Float")?f(Fd):f(mm(1));mm(2).intersect$java_awt_geom_Rectangle2D$java_awt_geom_Rectangle2D$java_awt_geom_Rectangle2D(this,a,e);return e});b(Fd,"createUnion$java_awt_geom_Rectangle2D",function(a){var e; +e=k(a,"java.awt.geom.Rectangle2D.Float")?f(Fd):f(mm(1));mm(2).union$java_awt_geom_Rectangle2D$java_awt_geom_Rectangle2D$java_awt_geom_Rectangle2D(this,a,e);return e});b(Fd,"toString",function(){return this.getClass$().getName$()+"[x="+(new Float(this.x)).toString()+",y="+(new Float(this.y)).toString()+",w="+(new Float(this.width)).toString()+",h="+(new Float(this.height)).toString()+"]"});var Sd=j(pr.Rectangle2D,"Double",function(a){m(this,a,!1,Sd)},"java.awt.geom.Rectangle2D");Sd.$clinit$=function(){g(Sd, +1)};b(Sd,"$init0$",function(){var a;(a=Sd.superclazz)&&(a=a.$init0$)&&a.apply(this);this.height=this.width=this.y=this.x=0},1);b(Sd,"$init$",function(){},1);b(Sd,"c$",function(){S(Sd,this,1)},1);b(Sd,"c$$D$D$D$D",function(a,e,b,d){S(Sd,this,1);this.setRect$D$D$D$D(a,e,b,d)},1);b(Sd,"getX$",function(){return this.x});b(Sd,"getY$",function(){return this.y});b(Sd,"getWidth$",function(){return this.width});b(Sd,"getHeight$",function(){return this.height});b(Sd,"isEmpty$",function(){return 0>=this.width|| +0>=this.height});b(Sd,"setRect$D$D$D$D",function(a,e,b,d){this.x=a;this.y=e;this.width=b;this.height=d});b(Sd,"setRect$java_awt_geom_Rectangle2D",function(a){this.x=a.getX$();this.y=a.getY$();this.width=a.getWidth$();this.height=a.getHeight$()});b(Sd,"outcode$D$D",function(a,e){var b=0;0>=this.width?b|=5:athis.x+this.width&&(b|=4);0>=this.height?b|=10:ethis.y+this.height&&(b|=8);return b});b(Sd,"getBounds2D$",function(){return f(Sd.c$$D$D$D$D,[this.x,this.y,this.width, +this.height])});b(Sd,"createIntersection$java_awt_geom_Rectangle2D",function(a){var e=f(Sd);mm(2).intersect$java_awt_geom_Rectangle2D$java_awt_geom_Rectangle2D$java_awt_geom_Rectangle2D(this,a,e);return e});b(Sd,"createUnion$java_awt_geom_Rectangle2D",function(a){var e=f(Sd);mm(2).union$java_awt_geom_Rectangle2D$java_awt_geom_Rectangle2D$java_awt_geom_Rectangle2D(this,a,e);return e});b(Sd,"toString",function(){return this.getClass$().getName$()+"[x="+(new Double(this.x)).toString()+",y="+(new Double(this.y)).toString()+ +",w="+(new Double(this.width)).toString()+",h="+(new Double(this.height)).toString()+"]"});n("3.2.4.07");var ky=q("java.awt.geom"),rr=[[0,["java.awt.geom.Rectangle2D",".Double"],"java.awt.Rectangle","java.awt.geom.FlatteningPathIterator","InternalError"]],gp=function(a){return rr[a]||(rr[a]=g(rr[0][a]))},ae=j(ky,"RectangularShape",null,null,["java.awt.Shape","Cloneable"]);ae.$clinit$=function(){g(ae,1)};b(ae,"$init$",function(){},1);b(ae,"c$",function(){ae.$init$.apply(this)},1);b(ae,"getMinX$",function(){return this.getX$()}); +b(ae,"getMinY$",function(){return this.getY$()});b(ae,"getMaxX$",function(){return this.getX$()+this.getWidth$()});b(ae,"getMaxY$",function(){return this.getY$()+this.getHeight$()});b(ae,"getCenterX$",function(){return this.getX$()+this.getWidth$()/2});b(ae,"getCenterY$",function(){return this.getY$()+this.getHeight$()/2});b(ae,"getFrame$",function(){return f(gp(1).c$$D$D$D$D,[this.getX$(),this.getY$(),this.getWidth$(),this.getHeight$()])});b(ae,"setFrame$java_awt_geom_Point2D$java_awt_geom_Dimension2D", +function(a,e){this.setFrame$D$D$D$D(a.getX$(),a.getY$(),e.getWidth$(),e.getHeight$())});b(ae,"setFrame$java_awt_geom_Rectangle2D",function(a){this.setFrame$D$D$D$D(a.getX$(),a.getY$(),a.getWidth$(),a.getHeight$())});b(ae,"setFrameFromDiagonal$D$D$D$D",function(a,e,b,d){if(ba||0>e)return f(gp(2));var b=this.getX$(),d=this.getY$(),h=Math.floor(b),s=Math.floor(d),a=Math.ceil(b+a),e=Math.ceil(d+e);return f(gp(2).c$$I$I$I$I,[h|0,s|0,a-h|0,e-s|0])});b(ae,"getPathIterator$java_awt_geom_AffineTransform$D",function(a,e){return f(gp(3).c$$java_awt_geom_PathIterator$D, +[this.getPathIterator$java_awt_geom_AffineTransform(a),e])});b(ae,"clone$",function(){try{return we(this)}catch(a){if(A(a,"CloneNotSupportedException"))throw f(gp(4));throw a;}});n("3.2.4.07");var ly=q("java.awt.geom"),ai=j(ly,"RectIterator",null,null,"java.awt.geom.PathIterator");ai.$clinit$=function(){g(ai,1)};b(ai,"$init0$",function(){var a;(a=ai.superclazz)&&(a=a.$init0$)&&a.apply(this);this.h=this.w=this.y=this.x=0;this.affine=null;this.index=0},1);b(ai,"$init$",function(){},1);b(ai,"c$",function(){ai.$init$.apply(this)}, +1);b(ai,"set$java_awt_geom_Rectangle2D$java_awt_geom_AffineTransform",function(a,e){this.x=a.getX$();this.y=a.getY$();this.w=a.getWidth$();this.h=a.getHeight$();this.affine=e;this.index=0>this.w||0>this.h?6:0;return this});b(ai,"getWindingRule$",function(){return 1});b(ai,"isDone$",function(){return 5a)){for(var e=va.\u79d8getChildArray$java_awt_Container(this),b=l(Integer.TYPE,[a]),d=0;da||13a;a++){for(var e=f(ea(12)),b=0;ba||4<=a)throw f(g("IllegalArgumentException").c$$S,["invalid focus traversal key identifier"]); +if(null==e)throw f(g("IllegalArgumentException").c$$S,["cannot set null Set of default focus traversal keys"]);for(var b,d=e.iterator$();d.hasNext$()&&(b=d.next$(),1);){if(null==b)throw f(g("IllegalArgumentException").c$$S,["cannot set null focus traversal key"]);if("\uffff"!=b.getKeyChar$())throw f(g("IllegalArgumentException").c$$S,["focus traversal keys cannot map to KEY_TYPED events"]);for(var h=0;4>h;h++)if(h!=a&&this.defaultFocusTraversalKeys[h].contains$O(b))throw f(g("IllegalArgumentException").c$$S, +["focus traversal keys must be unique for a Component"]);}b=this.defaultFocusTraversalKeys[a];this.defaultFocusTraversalKeys[a]=ea(11).unmodifiableSet$java_util_Set(f(ea(12).c$$java_util_Collection,[e]));this.firePropertyChange$S$O$O(v.defaultFocusTraversalKeyPropertyNames[a],b,e)});b(v,"getDefaultFocusTraversalKeys$I",function(a){if(0>a||4<=a)throw f(g("IllegalArgumentException").c$$S,["invalid focus traversal key identifier"]);return this.defaultFocusTraversalKeys[a]});b(v,"getCurrentFocusCycleRoot$", +function(){return null==v.currentFocusCycleRoot?null:v.currentFocusCycleRoot.appContext===ea(7).getAppContext$()?v.currentFocusCycleRoot:null});b(v,"getGlobalCurrentFocusCycleRoot$",function(){Xi.checkKFMSecurity.apply(this,[]);return v.currentFocusCycleRoot});b(v,"setGlobalCurrentFocusCycleRoot$java_awt_Container",function(a){var e;e=this.getCurrentFocusCycleRoot$();v.currentFocusCycleRoot=a;this.firePropertyChange$S$O$O("currentFocusCycleRoot",e,a)});b(v,"setGlobalCurrentFocusCycleRootPriv$java_awt_Container", +function(a){this.setGlobalCurrentFocusCycleRoot$java_awt_Container(a)});b(v,"addPropertyChangeListener$java_beans_PropertyChangeListener",function(a){null!=a&&(null==this.changeSupport&&(this.changeSupport=f(ea(15).c$$O,[this])),this.changeSupport.addPropertyChangeListener$java_beans_PropertyChangeListener(a))});b(v,"removePropertyChangeListener$java_beans_PropertyChangeListener",function(a){null!=a&&null!=this.changeSupport&&this.changeSupport.removePropertyChangeListener$java_beans_PropertyChangeListener(a)}); +b(v,"getPropertyChangeListeners$",function(){null==this.changeSupport&&(this.changeSupport=f(ea(15).c$$O,[this]));return this.changeSupport.getPropertyChangeListeners$()});b(v,"addPropertyChangeListener$S$java_beans_PropertyChangeListener",function(a,e){null!=e&&(null==this.changeSupport&&(this.changeSupport=f(ea(15).c$$O,[this])),this.changeSupport.addPropertyChangeListener$S$java_beans_PropertyChangeListener(a,e))});b(v,"removePropertyChangeListener$S$java_beans_PropertyChangeListener",function(a, +e){null!=e&&null!=this.changeSupport&&this.changeSupport.removePropertyChangeListener$S$java_beans_PropertyChangeListener(a,e)});b(v,"getPropertyChangeListeners$S",function(a){null==this.changeSupport&&(this.changeSupport=f(ea(15).c$$O,[this]));return this.changeSupport.getPropertyChangeListeners$S(a)});b(v,"firePropertyChange$S$O$O",function(a,e,b){if(e!==b){var d=this.changeSupport;null!=d&&d.firePropertyChange$S$O$O(a,e,b)}});b(v,"addVetoableChangeListener$java_beans_VetoableChangeListener",function(a){null!= +a&&(null==this.vetoableSupport&&(this.vetoableSupport=f(ea(16).c$$O,[this])),this.vetoableSupport.addVetoableChangeListener$java_beans_VetoableChangeListener(a))});b(v,"removeVetoableChangeListener$java_beans_VetoableChangeListener",function(a){null!=a&&null!=this.vetoableSupport&&this.vetoableSupport.removeVetoableChangeListener$java_beans_VetoableChangeListener(a)});b(v,"getVetoableChangeListeners$",function(){null==this.vetoableSupport&&(this.vetoableSupport=f(ea(16).c$$O,[this]));return this.vetoableSupport.getVetoableChangeListeners$()}); +b(v,"addVetoableChangeListener$S$java_beans_VetoableChangeListener",function(a,e){null!=e&&(null==this.vetoableSupport&&(this.vetoableSupport=f(ea(16).c$$O,[this])),this.vetoableSupport.addVetoableChangeListener$S$java_beans_VetoableChangeListener(a,e))});b(v,"removeVetoableChangeListener$S$java_beans_VetoableChangeListener",function(a,e){null!=e&&null!=this.vetoableSupport&&this.vetoableSupport.removeVetoableChangeListener$S$java_beans_VetoableChangeListener(a,e)});b(v,"getVetoableChangeListeners$S", +function(a){null==this.vetoableSupport&&(this.vetoableSupport=f(ea(16).c$$O,[this]));return this.vetoableSupport.getVetoableChangeListeners$S(a)});b(v,"fireVetoableChange$S$O$O",function(a,e,b){if(e!==b){var d=this.vetoableSupport;null!=d&&d.fireVetoableChange$S$O$O(a,e,b)}});b(v,"addKeyEventDispatcher$java_awt_KeyEventDispatcher",function(a){null!=a&&(null==this.keyEventDispatchers&&(this.keyEventDispatchers=f(ea(1))),this.keyEventDispatchers.add$TE(a))});b(v,"removeKeyEventDispatcher$java_awt_KeyEventDispatcher", +function(a){null!=a&&null!=this.keyEventDispatchers&&this.keyEventDispatchers.remove$O(a)});b(v,"getKeyEventDispatchers$",function(){return null!=this.keyEventDispatchers?this.keyEventDispatchers.clone$():null});b(v,"addKeyEventPostProcessor$java_awt_KeyEventPostProcessor",function(a){null!=a&&(null==this.keyEventPostProcessors&&(this.keyEventPostProcessors=f(ea(1))),this.keyEventPostProcessors.add$TE(a))});b(v,"removeKeyEventPostProcessor$java_awt_KeyEventPostProcessor",function(a){null!=a&&null!= +this.keyEventPostProcessors&&this.keyEventPostProcessors.remove$O(a)});b(v,"getKeyEventPostProcessors$",function(){return null!=this.keyEventPostProcessors?this.keyEventPostProcessors.clone$():null});b(v,"setMostRecentFocusOwner$java_awt_Component",function(a){for(var e=a;null!=e&&!e.isWindowOrJSApplet$();)e=e.parent;null!=e&&v.setMostRecentFocusOwner$java_awt_Window$java_awt_Component(e,a)},1);b(v,"setMostRecentFocusOwner$java_awt_Window$java_awt_Component",function(a,e){v.mostRecentFocusOwners.put$TK$TV(a, +e)},1);b(v,"clearMostRecentFocusOwner$java_awt_Component",function(a){var e;if(null!=a){for(e=a.getParent$();null!=e&&!e.isWindowOrJSApplet$();)e=e.getParent$();null!=e&&v.getMostRecentFocusOwner$java_awt_Window(e)===a&&v.setMostRecentFocusOwner$java_awt_Window$java_awt_Component(e,null);null!=e&&e.getTemporaryLostComponent$()===a&&e.setTemporaryLostComponent$java_awt_Component(null)}},1);b(v,"getMostRecentFocusOwner$java_awt_Window",function(a){return v.mostRecentFocusOwners.get$O(a)},1);b(v,"redispatchEvent$java_awt_Component$java_awt_AWTEvent", +function(a,e){e.focusManagerIsDispatching=!0;a.dispatchEvent$java_awt_AWTEvent(e);e.focusManagerIsDispatching=!1});b(v,"focusNextComponent$",function(){var a=this.getFocusOwner$();null!=a&&this.focusNextComponent$java_awt_Component(a)});b(v,"focusPreviousComponent$",function(){var a=this.getFocusOwner$();null!=a&&this.focusPreviousComponent$java_awt_Component(a)});b(v,"upFocusCycle$",function(){var a=this.getFocusOwner$();null!=a&&this.upFocusCycle$java_awt_Component(a)});b(v,"downFocusCycle$",function(){var a= +this.getFocusOwner$();k(a,"java.awt.Container")&&this.downFocusCycle$java_awt_Container(a)});b(v,"dumpRequests$",function(){System.err.println$S(">>> Requests dump, time: "+System.currentTimeMillis$());for(var a,e=v.heavyweightRequests.iterator$();e.hasNext$()&&(a=e.next$(),1);)System.err.println$S(">>> Req: "+a);System.err.println$S("")});b(v,"processSynchronousLightweightTransfer$java_awt_Component$java_awt_Component$Z$Z$J",function(a,e,b,d,h){d=ea(17).getContainingWindow$java_awt_Component(a); +if(null==d||!d.syncLWRequests)return!1;null==e&&(e=a);var s=v.getCurrentKeyboardFocusManager$sun_awt_AppContext(ea(17).targetToAppContext$O(e)),g=d=null,p=s.getGlobalFocusOwner$(),D=v.getLastHWRequest$();if(null==D&&a===s.getNativeFocusOwner$()&&v.allowSyncFocusRequests){if(e===p)return!0;s.enqueueKeyEvents$J$java_awt_Component(h,e);D=f(ea(18).c$$java_awt_Component$java_awt_Component$Z$sun_awt_CausedFocusEvent_Cause,[a,e,b,ea(19).UNKNOWN]);v.heavyweightRequests.add$TE(D);null!=p&&(d=f(ea(20).c$$java_awt_Component$I$Z$java_awt_Component, +[p,1005,b,e]));g=f(ea(20).c$$java_awt_Component$I$Z$java_awt_Component,[e,1004,b,p])}a=!1;b=v.clearingCurrentLightweightRequests;h=null;try{v.clearingCurrentLightweightRequests=!1,null!=d&&null!=p&&(d.isPosted=!0,h=v.dispatchAndCatchException$Throwable$java_awt_Component$java_awt_event_FocusEvent(h,p,d),a=!0),null!=g&&null!=e&&(g.isPosted=!0,h=v.dispatchAndCatchException$Throwable$java_awt_Component$java_awt_event_FocusEvent(h,e,g),a=!0)}finally{v.clearingCurrentLightweightRequests=b}if(k(h,"java.lang.RuntimeException"))throw h; +if(k(h,"java.lang.Error"))throw h;return a},1);b(v,"shouldNativelyFocusHeavyweight$java_awt_Component$java_awt_Component$Z$Z$J$sun_awt_CausedFocusEvent_Cause",function(a,e,b,d,h,s){null==e&&(e=a);var g=v.getCurrentKeyboardFocusManager$sun_awt_AppContext(ea(17).targetToAppContext$O(e)),p=v.getCurrentKeyboardFocusManager$(),D=p.getGlobalFocusOwner$(),j=p.getNativeFocusOwner$(),p=p.getNativeFocusedWindow$(),k=v.getLastHWRequest$();if(null==k&&a===j&&a.getContainingWindow$()===p){if(e===D)return 0;g.enqueueKeyEvents$J$java_awt_Component(h, +e);k=f(ea(18).c$$java_awt_Component$java_awt_Component$Z$sun_awt_CausedFocusEvent_Cause,[a,e,b,s]);v.heavyweightRequests.add$TE(k);null!=D&&(a=f(ea(21).c$$java_awt_Component$I$Z$java_awt_Component$sun_awt_CausedFocusEvent_Cause,[D,1005,b,e,s]),ea(17).postEvent$sun_awt_AppContext$java_awt_AWTEvent(D.appContext,a));b=f(ea(21).c$$java_awt_Component$I$Z$java_awt_Component$sun_awt_CausedFocusEvent_Cause,[e,1004,b,D,s]);ea(17).postEvent$sun_awt_AppContext$java_awt_AWTEvent(e.appContext,b);return 1}if(null!= +k&&k.heavyweight===a)return k.addLightweightRequest$java_awt_Component$Z$sun_awt_CausedFocusEvent_Cause(e,b,s)&&g.enqueueKeyEvents$J$java_awt_Component(h,e),1;if(!d&&(k===ea(18).CLEAR_GLOBAL_FOCUS_OWNER&&(D=v.heavyweightRequests.size$(),k=2<=D?v.heavyweightRequests.get$I(D-2):null),v.focusedWindowChanged$java_awt_Component$java_awt_Component(a,null!=k?k.heavyweight:p)))return 0;g.enqueueKeyEvents$J$java_awt_Component(h,e);v.heavyweightRequests.add$TE(f(ea(18).c$$java_awt_Component$java_awt_Component$Z$sun_awt_CausedFocusEvent_Cause, +[a,e,b,s]));return 2},1);b(v,"markClearGlobalFocusOwner$",function(){var a=v.getCurrentKeyboardFocusManager$().getNativeFocusedWindow$(),e=v.getLastHWRequest$();if(e===ea(18).CLEAR_GLOBAL_FOCUS_OWNER)return null;v.heavyweightRequests.add$TE(ea(18).CLEAR_GLOBAL_FOCUS_OWNER);for(a=null!=e?ea(17).getContainingWindow$java_awt_Component(e.heavyweight):a;null!=a&&!k(a,"javax.swing.JFrame")&&!k(a,"javax.swing.JDialog")&&!k(a,"java.applet.JSApplet");)a=a.getParent_NoClientCode$();return a},1);b(v,"getCurrentWaitingRequest$java_awt_Component", +function(a){var e=v.getFirstHWRequest$();return null!=e&&e.heavyweight===a&&(a=e.lightweightRequests.getFirst$(),null!=a)?a.component:null});b(v,"isAutoFocusTransferEnabled$",function(){return 0==v.heavyweightRequests.size$()&&!v.disableRestoreFocus&&null==v.currentLightweightRequests},1);b(v,"isAutoFocusTransferEnabledFor$java_awt_Component",function(a){return v.isAutoFocusTransferEnabled$()&&a.isAutoFocusTransferOnDisposal$()},1);b(v,"dispatchAndCatchException$Throwable$java_awt_Component$java_awt_event_FocusEvent", +function(a,e,b){var d=null;try{e.dispatchEvent$java_awt_AWTEvent(b)}catch(h){if(A(h,"RuntimeException"))d=h;else if(A(h,"Error"))d=h;else throw h;}return null!=d?(null!=a&&v.handleException$Throwable(a),d):a},1);b(v,"handleException$Throwable",function(a){a.printStackTrace$()},1);b(v,"processCurrentLightweightRequests$",function(){var a=v.getCurrentKeyboardFocusManager$(),e=null,b=a.getGlobalFocusOwner$();if(!(null!=b&&b.appContext!==ea(7).getAppContext$())&&null!=v.currentLightweightRequests){v.clearingCurrentLightweightRequests= +!0;v.disableRestoreFocus=!0;e=v.currentLightweightRequests;v.allowSyncFocusRequests=2>e.size$();b=v.currentLightweightRequests=null;try{if(null!=e)for(var d=null,h=null,s=e.iterator$();s.hasNext$();){var h=a.getGlobalFocusOwner$(),g=s.next$();s.hasNext$()||(v.disableRestoreFocus=!1);e=null;null!=h&&(e=f(ea(21).c$$java_awt_Component$I$Z$java_awt_Component$sun_awt_CausedFocusEvent_Cause,[h,1005,g.temporary,g.component,g.cause]));var p=f(ea(21).c$$java_awt_Component$I$Z$java_awt_Component$sun_awt_CausedFocusEvent_Cause, +[g.component,1004,g.temporary,null==h?d:h,g.cause]);null!=h&&(e.isPosted=!0,b=v.dispatchAndCatchException$Throwable$java_awt_Component$java_awt_event_FocusEvent(b,h,e));p.isPosted=!0;b=v.dispatchAndCatchException$Throwable$java_awt_Component$java_awt_event_FocusEvent(b,g.component,p);a.getGlobalFocusOwner$()===g.component&&(d=g.component)}}finally{v.clearingCurrentLightweightRequests=!1,v.disableRestoreFocus=!1,v.allowSyncFocusRequests=!0}if(k(b,"java.lang.RuntimeException"))throw b;if(k(b,"java.lang.Error"))throw b; +}},1);b(v,"retargetUnexpectedFocusEvent$java_awt_event_FocusEvent",function(a){if(v.removeFirstRequest$())return v.retargetFocusEvent$java_awt_AWTEvent(a);var e=a.getComponent$(),b=a.getOppositeComponent$(),d=!1;if(1005==a.getID$()&&(null==b||v.isTemporary$java_awt_Component$java_awt_Component(b,e)))d=!0;return f(ea(21).c$$java_awt_Component$I$Z$java_awt_Component$sun_awt_CausedFocusEvent_Cause,[e,a.getID$(),d,b,ea(19).NATIVE_SYSTEM])},1);b(v,"retargetFocusGained$java_awt_event_FocusEvent",function(a){rb(v, +this,function(){return 1004==a.getID$()});var e=v.getCurrentKeyboardFocusManager$().getGlobalFocusOwner$(),c=a.getComponent$(),d=a.getOppositeComponent$(),h=v.getHeavyweight$java_awt_Component(c),s=v.getFirstHWRequest$();if(s===ea(18).CLEAR_GLOBAL_FOCUS_OWNER)return v.retargetUnexpectedFocusEvent$java_awt_event_FocusEvent(a);null!=c&&(null==h&&null!=s)&&c===s.getFirstLightweightRequest$().component&&(h=c=s.heavyweight);return null!=s&&h===s.heavyweight?(v.heavyweightRequests.removeFirst$(),c=s.lightweightRequests.removeFirst$(), +h=c.component,null!=e&&(v.newFocusOwner=h),e=null==d||v.isTemporary$java_awt_Component$java_awt_Component(h,d)?!1:c.temporary,0=a?-2147483648:2147483647<=a?2147483647:(e?Math.ceil(a):Math.floor(a))|0},1);b(Aa,"reshape$I$I$I$I",function(a,e,b,d){this.x=a;this.y=e;this.width=b;this.height=d});b(Aa,"getLocation$",function(){return f(Zn(1).c$$I$I, +[this.x,this.y])});b(Aa,"setLocation$java_awt_Point",function(a){this.setLocation$I$I(a.x,a.y)});b(Aa,"setLocation$I$I",function(a,e){this.move$I$I(a,e)});b(Aa,"move$I$I",function(a,e){this.x=a;this.y=e});b(Aa,"translate$I$I",function(a,e){var b=this.x,d=b+a;0>a?d>b&&(0<=this.width&&(this.width+=d- -2147483648),d=-2147483648):dthis.width&&(this.width=2147483647)),d=2147483647);this.x=d;b=this.y;d=b+e;0>e?d>b&&(0<=this.height&&(this.height+=d- -2147483648), +d=-2147483648):dthis.height&&(this.height=2147483647)),d=2147483647);this.y=d});b(Aa,"getSize$",function(){return f(Zn(2).c$$I$I,[this.width,this.height])});b(Aa,"setSize$java_awt_Dimension",function(a){this.setSize$I$I(a.width,a.height)});b(Aa,"setSize$I$I",function(a,e){this.resize$I$I(a,e)});b(Aa,"resize$I$I",function(a,e){this.width=a;this.height=e});b(Aa,"contains$java_awt_Point",function(a){return this.contains$I$I(a.x,a.y)});b(Aa,"contains$I$I", +function(a,e){return this.inside$I$I(a,e)});b(Aa,"contains$java_awt_Rectangle",function(a){return this.contains$I$I$I$I(a.x,a.y,a.width,a.height)});b(Aa,"contains$I$I$I$I",function(a,e,b,d){var h=this.width,f=this.height;if(0>(h|f|b|d))return!1;var g=this.x,p=this.y;if(a=g||b>h)return!1}else if(h>=g&&b>h)return!1;f+=p;d+=e;if(d<=e){if(f>=p||d>f)return!1}else if(f>=p&&d>f)return!1;return!0});b(Aa,"inside$I$I",function(a,e){var b=this.width,d=this.height;if(0> +(b|d))return!1;var h=this.x,f=this.y;if(aa)&&(de)});b(Aa,"intersects$java_awt_Rectangle",function(a){var e=this.width,b=this.height,d=a.width,h=a.height;if(0>=d||0>=h||0>=e||0>=b)return!1;var f=this.x,g=this.y,p=a.x;a=a.y;d+=p;h+=a;e+=f;b+=g;return(df)&&(hg)&&(ep)&&(ba)});b(Aa,"intersection$java_awt_Rectangle",function(a){var e=this.x,b=this.y,d=a.x,h=a.y,s;s=e+this.width;var g;g=b+this.height;var p;p=d+a.width;a=h+a.height;e< +d&&(e=d);bp&&(s=p);g>a&&(g=a);s-=e;g-=b;-2147483648>s&&(s=-2147483648);-2147483648>g&&(g=-2147483648);return f(Aa.c$$I$I$I$I,[e,b,s|0,g|0])});b(Aa,"union$java_awt_Rectangle",function(a){var e=this.width,b=this.height;if(0>(e|b))return f(Aa.c$$java_awt_Rectangle,[a]);var d=a.width,h=a.height;if(0>(d|h))return f(Aa.c$$java_awt_Rectangle,[this]);var s=this.x,g=this.y,e=e+s,b=b+g,p=a.x;a=a.y;d+=p;h+=a;s>p&&(s=p);g>a&&(g=a);e(this.width|this.height))this.x=a,this.y=e,this.width=this.height=0;else{var b=this.x,d=this.y,h=this.width,f=this.height,h=h+b,f=f+d;b>a&&(b=a);d>e&&(d=e);h(e|b)&&this.reshape$I$I$I$I(a.x,a.y,a.width,a.height);var d=a.width,h=a.height;if(!(0>(d|h))){var f=this.x,g=this.y,e=e+f,b=b+g,p=a.x;a=a.y;d+=p;h+=a;f>p&&(f=p);g>a&&(g=a);eh&&(h=-2147483648),-2147483648>b?b=-2147483648:2147483647b?b=-2147483648:2147483647h?h=-2147483648:2147483647f&&(f=-2147483648),-2147483648>d?d=-2147483648:2147483647d?d=-2147483648:2147483647f?f=-2147483648:2147483647=this.width||0>=this.height});b(Aa,"outcode$D$D",function(a,e){var b=0; +0>=this.width?b|=5:athis.x+this.width&&(b|=4);0>=this.height?b|=10:ethis.y+this.height&&(b|=8);return b});b(Aa,"createIntersection$java_awt_geom_Rectangle2D",function(a){if(k(a,"java.awt.Rectangle"))return this.intersection$java_awt_Rectangle(a);var e=f(Zn(3));Zn(4).intersect$java_awt_geom_Rectangle2D$java_awt_geom_Rectangle2D$java_awt_geom_Rectangle2D(this,a,e);return e});b(Aa,"createUnion$java_awt_geom_Rectangle2D",function(a){if(k(a,"java.awt.Rectangle"))return this.union$java_awt_Rectangle(a); +var e=f(Zn(3));Zn(4).union$java_awt_geom_Rectangle2D$java_awt_geom_Rectangle2D$java_awt_geom_Rectangle2D(this,a,e);return e});b(Aa,"equals$O",function(a){return k(a,"java.awt.Rectangle")?this.x==a.x&&this.y==a.y&&this.width==a.width&&this.height==a.height:Aa.superclazz.prototype.equals$O.apply(this,[a])});b(Aa,"toString",function(){return this.getClass$().getName$()+"[x="+this.x+",y="+this.y+",width="+this.width+",height="+this.height+"]"});n("3.2.4.07");var jp=q("java.awt"),Yp={},Dr=[[0,"java.util.HashMap", +"InternalError",["java.awt.RenderingHints",".SunKey"],["java.awt.RenderingHints",".Value"],["java.awt.RenderingHints",".LCDContrastKey"],"java.util.Collections"]],vb=function(a){return Dr[a]||(Dr[a]=g(Dr[0][a]))},C=j(jp,"RenderingHints",function(){m(this,arguments,0,C)},null,["java.util.Map","Cloneable"]);C.KEY_RENDERING=null;C.VALUE_RENDER_SPEED=null;C.VALUE_RENDER_QUALITY=null;C.VALUE_RENDER_DEFAULT=null;C.KEY_ANTIALIASING=null;C.VALUE_ANTIALIAS_ON=null;C.VALUE_ANTIALIAS_OFF=null;C.VALUE_ANTIALIAS_DEFAULT= +null;C.KEY_FRACTIONALMETRICS=null;C.VALUE_FRACTIONALMETRICS_ON=null;C.VALUE_FRACTIONALMETRICS_OFF=null;C.VALUE_FRACTIONALMETRICS_DEFAULT=null;C.KEY_DITHERING=null;C.VALUE_DITHER_ENABLE=null;C.VALUE_DITHER_DISABLE=null;C.VALUE_DITHER_DEFAULT=null;C.KEY_INTERPOLATION=null;C.VALUE_INTERPOLATION_NEAREST_NEIGHBOR=null;C.VALUE_INTERPOLATION_BILINEAR=null;C.VALUE_INTERPOLATION_BICUBIC=null;C.KEY_ALPHA_INTERPOLATION=null;C.VALUE_ALPHA_INTERPOLATION_SPEED=null;C.VALUE_ALPHA_INTERPOLATION_QUALITY=null;C.VALUE_ALPHA_INTERPOLATION_DEFAULT= +null;C.KEY_COLOR_RENDERING=null;C.VALUE_COLOR_RENDER_SPEED=null;C.VALUE_COLOR_RENDER_QUALITY=null;C.VALUE_COLOR_RENDER_DEFAULT=null;C.KEY_STROKE_CONTROL=null;C.VALUE_STROKE_DEFAULT=null;C.VALUE_STROKE_NORMALIZE=null;C.VALUE_STROKE_PURE=null;C.KEY_TEXT_ANTIALIASING=null;C.VALUE_TEXT_ANTIALIAS_ON=null;C.VALUE_TEXT_ANTIALIAS_OFF=null;C.VALUE_TEXT_ANTIALIAS_DEFAULT=null;C.VALUE_TEXT_ANTIALIAS_GASP=null;C.VALUE_TEXT_ANTIALIAS_LCD_HRGB=null;C.VALUE_TEXT_ANTIALIAS_LCD_HBGR=null;C.VALUE_TEXT_ANTIALIAS_LCD_VRGB= +null;C.VALUE_TEXT_ANTIALIAS_LCD_VBGR=null;C.KEY_TEXT_ANTIALIAS_LCD_CONTRAST=null;C.KEY_TEXT_LCD_CONTRAST=null;C.$clinit$=function(){g(C,1);C.KEY_RENDERING=f(vb(3).c$$I$S,[0,"Global rendering quality key"]);C.VALUE_RENDER_SPEED=f(vb(4).c$$java_awt_RenderingHints_SunKey$I$S,[C.KEY_RENDERING,1,"Fastest rendering methods"]);C.VALUE_RENDER_QUALITY=f(vb(4).c$$java_awt_RenderingHints_SunKey$I$S,[C.KEY_RENDERING,2,"Highest quality rendering methods"]);C.VALUE_RENDER_DEFAULT=f(vb(4).c$$java_awt_RenderingHints_SunKey$I$S, +[C.KEY_RENDERING,0,"Default rendering methods"]);C.KEY_ANTIALIASING=f(vb(3).c$$I$S,[1,"Global antialiasing enable key"]);C.VALUE_ANTIALIAS_ON=f(vb(4).c$$java_awt_RenderingHints_SunKey$I$S,[C.KEY_ANTIALIASING,2,"Antialiased rendering mode"]);C.VALUE_ANTIALIAS_OFF=f(vb(4).c$$java_awt_RenderingHints_SunKey$I$S,[C.KEY_ANTIALIASING,1,"Nonantialiased rendering mode"]);C.VALUE_ANTIALIAS_DEFAULT=f(vb(4).c$$java_awt_RenderingHints_SunKey$I$S,[C.KEY_ANTIALIASING,0,"Default antialiasing rendering mode"]);C.KEY_FRACTIONALMETRICS= +f(vb(3).c$$I$S,[3,"Fractional metrics enable key"]);C.VALUE_FRACTIONALMETRICS_ON=f(vb(4).c$$java_awt_RenderingHints_SunKey$I$S,[C.KEY_FRACTIONALMETRICS,2,"Fractional text metrics mode"]);C.VALUE_FRACTIONALMETRICS_OFF=f(vb(4).c$$java_awt_RenderingHints_SunKey$I$S,[C.KEY_FRACTIONALMETRICS,1,"Integer text metrics mode"]);C.VALUE_FRACTIONALMETRICS_DEFAULT=f(vb(4).c$$java_awt_RenderingHints_SunKey$I$S,[C.KEY_FRACTIONALMETRICS,0,"Default fractional text metrics mode"]);C.KEY_DITHERING=f(vb(3).c$$I$S,[4, +"Dithering quality key"]);C.VALUE_DITHER_ENABLE=f(vb(4).c$$java_awt_RenderingHints_SunKey$I$S,[C.KEY_DITHERING,2,"Dithered rendering mode"]);C.VALUE_DITHER_DISABLE=f(vb(4).c$$java_awt_RenderingHints_SunKey$I$S,[C.KEY_DITHERING,1,"Nondithered rendering mode"]);C.VALUE_DITHER_DEFAULT=f(vb(4).c$$java_awt_RenderingHints_SunKey$I$S,[C.KEY_DITHERING,0,"Default dithering mode"]);C.KEY_INTERPOLATION=f(vb(3).c$$I$S,[5,"Image interpolation method key"]);C.VALUE_INTERPOLATION_NEAREST_NEIGHBOR=f(vb(4).c$$java_awt_RenderingHints_SunKey$I$S, +[C.KEY_INTERPOLATION,0,"Nearest Neighbor image interpolation mode"]);C.VALUE_INTERPOLATION_BILINEAR=f(vb(4).c$$java_awt_RenderingHints_SunKey$I$S,[C.KEY_INTERPOLATION,1,"Bilinear image interpolation mode"]);C.VALUE_INTERPOLATION_BICUBIC=f(vb(4).c$$java_awt_RenderingHints_SunKey$I$S,[C.KEY_INTERPOLATION,2,"Bicubic image interpolation mode"]);C.KEY_ALPHA_INTERPOLATION=f(vb(3).c$$I$S,[6,"Alpha blending interpolation method key"]);C.VALUE_ALPHA_INTERPOLATION_SPEED=f(vb(4).c$$java_awt_RenderingHints_SunKey$I$S, +[C.KEY_ALPHA_INTERPOLATION,1,"Fastest alpha blending methods"]);C.VALUE_ALPHA_INTERPOLATION_QUALITY=f(vb(4).c$$java_awt_RenderingHints_SunKey$I$S,[C.KEY_ALPHA_INTERPOLATION,2,"Highest quality alpha blending methods"]);C.VALUE_ALPHA_INTERPOLATION_DEFAULT=f(vb(4).c$$java_awt_RenderingHints_SunKey$I$S,[C.KEY_ALPHA_INTERPOLATION,0,"Default alpha blending methods"]);C.KEY_COLOR_RENDERING=f(vb(3).c$$I$S,[7,"Color rendering quality key"]);C.VALUE_COLOR_RENDER_SPEED=f(vb(4).c$$java_awt_RenderingHints_SunKey$I$S, +[C.KEY_COLOR_RENDERING,1,"Fastest color rendering mode"]);C.VALUE_COLOR_RENDER_QUALITY=f(vb(4).c$$java_awt_RenderingHints_SunKey$I$S,[C.KEY_COLOR_RENDERING,2,"Highest quality color rendering mode"]);C.VALUE_COLOR_RENDER_DEFAULT=f(vb(4).c$$java_awt_RenderingHints_SunKey$I$S,[C.KEY_COLOR_RENDERING,0,"Default color rendering mode"]);C.KEY_STROKE_CONTROL=f(vb(3).c$$I$S,[8,"Stroke normalization control key"]);C.VALUE_STROKE_DEFAULT=f(vb(4).c$$java_awt_RenderingHints_SunKey$I$S,[C.KEY_STROKE_CONTROL,0, +"Default stroke normalization"]);C.VALUE_STROKE_NORMALIZE=f(vb(4).c$$java_awt_RenderingHints_SunKey$I$S,[C.KEY_STROKE_CONTROL,1,"Normalize strokes for consistent rendering"]);C.VALUE_STROKE_PURE=f(vb(4).c$$java_awt_RenderingHints_SunKey$I$S,[C.KEY_STROKE_CONTROL,2,"Pure stroke conversion for accurate paths"]);C.KEY_TEXT_ANTIALIASING=f(vb(3).c$$I$S,[2,"Text-specific antialiasing enable key"]);C.VALUE_TEXT_ANTIALIAS_ON=f(vb(4).c$$java_awt_RenderingHints_SunKey$I$S,[C.KEY_TEXT_ANTIALIASING,2,"Antialiased text mode"]); +C.VALUE_TEXT_ANTIALIAS_OFF=f(vb(4).c$$java_awt_RenderingHints_SunKey$I$S,[C.KEY_TEXT_ANTIALIASING,1,"Nonantialiased text mode"]);C.VALUE_TEXT_ANTIALIAS_DEFAULT=f(vb(4).c$$java_awt_RenderingHints_SunKey$I$S,[C.KEY_TEXT_ANTIALIASING,0,"Default antialiasing text mode"]);C.VALUE_TEXT_ANTIALIAS_GASP=f(vb(4).c$$java_awt_RenderingHints_SunKey$I$S,[C.KEY_TEXT_ANTIALIASING,3,"gasp antialiasing text mode"]);C.VALUE_TEXT_ANTIALIAS_LCD_HRGB=f(vb(4).c$$java_awt_RenderingHints_SunKey$I$S,[C.KEY_TEXT_ANTIALIASING, +4,"LCD HRGB antialiasing text mode"]);C.VALUE_TEXT_ANTIALIAS_LCD_HBGR=f(vb(4).c$$java_awt_RenderingHints_SunKey$I$S,[C.KEY_TEXT_ANTIALIASING,5,"LCD HBGR antialiasing text mode"]);C.VALUE_TEXT_ANTIALIAS_LCD_VRGB=f(vb(4).c$$java_awt_RenderingHints_SunKey$I$S,[C.KEY_TEXT_ANTIALIASING,6,"LCD VRGB antialiasing text mode"]);C.VALUE_TEXT_ANTIALIAS_LCD_VBGR=f(vb(4).c$$java_awt_RenderingHints_SunKey$I$S,[C.KEY_TEXT_ANTIALIASING,7,"LCD VBGR antialiasing text mode"]);C.KEY_TEXT_ANTIALIAS_LCD_CONTRAST=f(vb(5).c$$I$S, +[100,"Text-specific LCD contrast key"]);C.KEY_TEXT_LCD_CONTRAST=C.KEY_TEXT_ANTIALIAS_LCD_CONTRAST};b(C,"$init0$",function(){var a;(a=C.superclazz)&&(a=a.$init0$)&&a.apply(this);this.hintmap=null},1);b(C,"$init$",function(){this.hintmap=f(vb(1).c$$I,[7])},1);b(C,"c$$java_util_Map",function(a){C.$init$.apply(this);null!=a&&this.hintmap.putAll$java_util_Map(a)},1);b(C,"c$$java_awt_RenderingHints_Key$O",function(a,e){C.$init$.apply(this);null!=a&&this.hintmap.put$TK$TV(a,e)},1);b(C,"size$",function(){return this.hintmap.size$()}); +b(C,"isEmpty$",function(){return this.hintmap.isEmpty$()});b(C,"containsKey$O",function(a){return this.hintmap.containsKey$O(a)});b(C,"containsValue$O",function(a){return this.hintmap.containsValue$O(a)});b(C,"get$O",function(a){return this.hintmap.get$O(a)});b(C,["put$O$O","put$TK$TV"],function(a,e){if(!a.isCompatibleValue$O(e))throw f(g("IllegalArgumentException").c$$S,[e+" incompatible with "+a]);return this.hintmap.put$TK$TV(a,e)});b(C,"add$java_awt_RenderingHints",function(a){this.hintmap.putAll$java_util_Map(a.hintmap)}); +b(C,"clear$",function(){this.hintmap.clear$()});b(C,"remove$O",function(a){return this.hintmap.remove$O(a)});b(C,"putAll$java_util_Map",function(a){if(x(C).isInstance$O(a)){var e;for(a=a.entrySet$().iterator$();a.hasNext$()&&(e=a.next$(),1);)this.hintmap.put$TK$TV(e.getKey$(),e.getValue$())}else for(a=a.entrySet$().iterator$();a.hasNext$()&&(e=a.next$(),1);)this.put$O$O(e.getKey$(),e.getValue$())});b(C,"keySet$",function(){return this.hintmap.keySet$()});b(C,"values$",function(){return this.hintmap.values$()}); +b(C,"entrySet$",function(){return vb(6).unmodifiableMap$java_util_Map(this.hintmap).entrySet$()});b(C,"equals$O",function(a){return k(a,"java.awt.RenderingHints")?this.hintmap.equals$O(a.hintmap):k(a,"java.util.Map")?this.hintmap.equals$O(a):!1});b(C,"hashCode$",function(){return this.hintmap.hashCode$()});b(C,"clone$",function(){var a;try{a=we(this),null!=this.hintmap&&(a.hintmap=this.hintmap.clone$())}catch(e){if(A(e,"CloneNotSupportedException"))throw f(vb(2));throw e;}return a});b(C,"toString", +function(){return null==this.hintmap?this.getClass$().getName$()+"@"+Integer.toHexString$I(this.hashCode$())+" (0 hints)":this.hintmap.toString()});var sf=j(jp.RenderingHints,"Key",function(a){m(this,a,!1,sf)});sf.identitymap=null;sf.$clinit$=function(){g(sf,1);sf.identitymap=f(vb(1).c$$I,[17])};b(sf,"$init0$",function(){var a;(a=sf.superclazz)&&(a=a.$init0$)&&a.apply(this);this.privatekey=0},1);b(sf,"$init$",function(){},1);b(sf,"getIdentity",function(){return this.getClass$().getName$()+"@"+Integer.toHexString$I(System.identityHashCode$O(this.getClass$()))+ +":"+Integer.toHexString$I(this.privatekey)},Yp);b(sf,"recordIdentity$java_awt_RenderingHints_Key",function(a){var e=Yp.getIdentity.apply(a,[]),b=sf.identitymap.get$O(e);if(null!=b&&null!=b&&b.getClass$()===a.getClass$())throw f(g("IllegalArgumentException").c$$S,[e+" already registered"]);sf.identitymap.put$TK$TV(e,a)},Yp);b(sf,"c$$I",function(a){sf.$init$.apply(this);this.privatekey=a;Yp.recordIdentity$java_awt_RenderingHints_Key.apply(this,[this])},1);b(sf,"intKey$",function(){return this.privatekey}); +b(sf,"hashCode$",function(){return sf.superclazz.prototype.hashCode$.apply(this,[])});b(sf,"equals$O",function(a){return this===a});b(sf);var di=j(jp.RenderingHints,"SunKey",function(a){m(this,a,!1,di)},["java.awt.RenderingHints",".Key"]);di.$clinit$=function(){g(di,1)};b(di,"$init0$",function(){var a;(a=di.superclazz)&&(a=a.$init0$)&&a.apply(this);this.description=null},1);b(di,"$init$",function(){},1);b(di,"c$$I$S",function(a,e){di.superclazz.c$$I.apply(this,[a]);di.$init$.apply(this);this.description= +e},1);b(di,"getIndex$",function(){return this.privatekey});b(di,"toString",function(){return this.description});b(di,"isCompatibleValue$O",function(a){return k(a,"java.awt.RenderingHints.Value")?a.isCompatibleKey$java_awt_RenderingHints_SunKey(this):!1});b(di);var ke=j(jp.RenderingHints,"Value",function(a){m(this,a,!1,ke)});ke.ValueObjects=null;ke.$clinit$=function(){g(ke,1);ke.ValueObjects=l(ke,[9,8])};b(ke,"$init0$",function(){var a;(a=ke.superclazz)&&(a=a.$init0$)&&a.apply(this);this.myKey=null; +this.index=0;this.description=null},1);b(ke,"$init$",function(){},1);b(ke,"register$java_awt_RenderingHints_SunKey$java_awt_RenderingHints_Value",function(a,e){var b=a.getIndex$(),d=e.getIndex$();if(null!=ke.ValueObjects[b][d])throw f(vb(2).c$$S,["duplicate index: "+d]);ke.ValueObjects[b][d]=e},1);b(ke,"get$I$I",function(a,e){return ke.ValueObjects[a][e]},1);b(ke,"c$$java_awt_RenderingHints_SunKey$I$S",function(a,e,b){ke.$init$.apply(this);this.myKey=a;this.index=e;this.description=b;ke.register$java_awt_RenderingHints_SunKey$java_awt_RenderingHints_Value(a, +this)},1);b(ke,"getIndex$",function(){return this.index});b(ke,"toString",function(){return this.description});b(ke,"isCompatibleKey$java_awt_RenderingHints_SunKey",function(a){return this.myKey===a});b(ke,"hashCode$",function(){return this.description.hashCode$()});b(ke,"equals$O",function(a){return this===a});b(ke);var wl=j(jp.RenderingHints,"LCDContrastKey",function(a){m(this,a,!1,wl)},["java.awt.RenderingHints",".SunKey"]);wl.$clinit$=function(){g(wl,1)};b(wl,"$init$",function(){},1);b(wl,"c$$I$S", +function(a,e){wl.superclazz.c$$I$S.apply(this,[a,e]);wl.$init$.apply(this)},1);b(wl,"isCompatibleValue$O",function(a){return k(a,"java.lang.Integer")?(a=a.intValue$(),100<=a&&250>=a):!1});b(wl);b(C);n("3.2.4.07");var Ky=q("java.awt"),Yi=j(Ky,"Scrollbar",null,"swingjs.a2s.Scrollbar");Yi.$clinit$=function(){g(Yi,1)};b(Yi,"$init$",function(){},1);b(Yi,"c$",function(){Yi.superclazz.c$.apply(this,[]);Yi.$init$.apply(this)},1);b(Yi,"c$$I",function(a){Yi.superclazz.c$$I.apply(this,[a]);Yi.$init$.apply(this)}, +1);b(Yi,"c$$I$I$I$I$I",function(a,e,b,d,h){Yi.superclazz.c$$I$I$I$I$I.apply(this,[a,e,b,d,h]);Yi.$init$.apply(this)},1);n("3.2.4.07");var Ly=q("java.awt"),xl=j(Ly,"ScrollPane",null,"swingjs.a2s.ScrollPane");xl.$clinit$=function(){g(xl,1)};b(xl,"$init$",function(){},1);b(xl,"c$",function(){xl.superclazz.c$.apply(this,[]);xl.$init$.apply(this)},1);b(xl,"c$$I",function(a){xl.superclazz.c$$I.apply(this,[a]);xl.$init$.apply(this)},1);n("3.2.4.07");var My=q("java.awt");N(My,"Shape");n("3.2.4.07");var Ny= +q("java.awt");N(Ny,"Stroke");n("3.2.4.07");var Oy=q("java.awt"),Qf=j(Oy,"TextArea",null,"swingjs.a2s.TextArea");Qf.$clinit$=function(){g(Qf,1)};b(Qf,"$init$",function(){},1);b(Qf,"c$",function(){Qf.superclazz.c$.apply(this,[]);Qf.$init$.apply(this)},1);b(Qf,"c$$S",function(a){Qf.superclazz.c$$S.apply(this,[a]);Qf.$init$.apply(this)},1);b(Qf,"c$$I$I",function(a,e){Qf.superclazz.c$$I$I.apply(this,[a,e]);Qf.$init$.apply(this)},1);b(Qf,"c$$S$I$I",function(a,e,b){Qf.superclazz.c$$S$I$I.apply(this,[a,e, +b]);Qf.$init$.apply(this)},1);b(Qf,"c$$S$I$I$I",function(a,e,b,d){Qf.superclazz.c$$S$I$I$I.apply(this,[a,e,b,d]);Qf.$init$.apply(this)},1);n("3.2.4.07");var Py=q("java.awt");N(Py,"TextComponent");n("3.2.4.07");var Qy=q("java.awt"),eh=j(Qy,"TextField",null,"swingjs.a2s.TextField");eh.$clinit$=function(){g(eh,1)};b(eh,"$init$",function(){},1);b(eh,"c$",function(){eh.superclazz.c$.apply(this,[]);eh.$init$.apply(this)},1);b(eh,"c$$S",function(a){eh.superclazz.c$$S.apply(this,[a]);eh.$init$.apply(this)}, +1);b(eh,"c$$I",function(a){eh.superclazz.c$$I.apply(this,[a]);eh.$init$.apply(this)},1);b(eh,"c$$S$I",function(a,e){eh.superclazz.c$$S$I.apply(this,[a,e]);eh.$init$.apply(this)},1);n("3.2.4.07");var $n=q("java.awt"),Er=[[0,"java.util.HashMap","sun.awt.NullComponentPeer","java.awt.Insets","swingjs.JSToolkit","java.awt.GraphicsEnvironment","java.awt.Cursor",["java.awt.Toolkit",".SelectiveAWTEventListener"],["java.awt.Toolkit",".ToolkitEventMulticaster"],"java.awt.AWTEventMulticaster","java.awt.event.AWTEventListener", +"java.awt.event.AWTEventListenerProxy","java.util.ArrayList","java.beans.PropertyChangeSupport"]],Qe=function(a){return Er[a]||(Er[a]=g(Er[0][a]))},sa=j($n,"Toolkit",function(){m(this,arguments,0,sa)});sa.lightweightMarker=null;sa.toolkit=null;sa.resources=null;sa.enabledOnToolkitMask=0;sa.$clinit$=function(){g(sa,1)};b(sa,"$init0$",function(){var a;(a=sa.superclazz)&&(a=a.$init0$)&&a.apply(this);this.listener2SelectiveListener=this.eventListener=this.calls=this.desktopPropsSupport=this.desktopProperties= +null},1);b(sa,"$init$",function(){this.desktopProperties=f(Qe(1));this.desktopPropsSupport=sa.createPropertyChangeSupport$java_awt_Toolkit(this);this.calls=l(Integer.TYPE,[32]);this.eventListener=null;this.listener2SelectiveListener=f(Qe(1))},1);b(sa,"createComponent$java_awt_Component",function(){null==sa.lightweightMarker&&(sa.lightweightMarker=f(Qe(2)));return sa.lightweightMarker});b(sa,"loadSystemColors$IA",function(){});b(sa,"setDynamicLayout$Z",function(){});b(sa,"isDynamicLayoutSet$",function(){return this!== +sa.getDefaultToolkit$()?sa.getDefaultToolkit$().isDynamicLayoutSet$():!1});b(sa,"isDynamicLayoutActive$",function(){return this!==sa.getDefaultToolkit$()?sa.getDefaultToolkit$().isDynamicLayoutActive$():!1});b(sa,"getScreenInsets$java_awt_GraphicsConfiguration",function(a){return this!==sa.getDefaultToolkit$()?sa.getDefaultToolkit$().getScreenInsets$java_awt_GraphicsConfiguration(a):f(Qe(3).c$$I$I$I$I,[0,0,0,0])});b(sa,"getDefaultToolkit$",function(){return null==sa.toolkit?sa.toolkit=f(Qe(4)):sa.toolkit}, +1);b(sa,"createImage$BA",function(a){return this.createImage$BA$I$I(a,0,a.length)});b(sa,"getPrintJob$java_awt_JSFrame$S$java_awt_JobAttributes$java_awt_PageAttributes",function(a,e,b,d){return this!==sa.getDefaultToolkit$()?sa.getDefaultToolkit$().getPrintJob$java_awt_JSFrame$S$java_awt_JobAttributes$java_awt_PageAttributes(a,e,b,d):this.getPrintJob$java_awt_JSFrame$S$java_util_Properties(a,e,null)});b(sa,"getPrintJob$java_awt_Frame$S$java_awt_JobAttributes$java_awt_PageAttributes",function(a,e, +b,d){return this!==sa.getDefaultToolkit$()?sa.getDefaultToolkit$().getPrintJob$java_awt_Frame$S$java_awt_JobAttributes$java_awt_PageAttributes(a,e,b,d):this.getPrintJob$java_awt_Frame$S$java_util_Properties(a,e,null)});b(sa,"getSystemSelection$",function(){if(this!==sa.getDefaultToolkit$())return sa.getDefaultToolkit$().getSystemSelection$();Qe(5).checkHeadless$();return null});b(sa,"getMenuShortcutKeyMask$",function(){return 2});b(sa,"getNativeContainer$java_awt_Component",function(){return null}, +1);b(sa,"createCustomCursor$java_awt_Image$java_awt_Point$S",function(a,e,b){return null==b?f(Qe(6).c$$I,[0]):f(Qe(6).c$$S,[b])});b(sa,"isFrameStateSupported$I",function(a){return 0==a});b(sa,"getProperty$S$S",function(a,e){if(null!=sa.resources)try{return sa.resources.getString$S(a)}catch(b){if(!A(b,"java.util.MissingResourceException"))throw b;}return e},1);b(sa,"getSystemEventQueue$",function(){return this.getSystemEventQueueImpl$()});b(sa,"getEventQueue$",function(){return sa.getDefaultToolkit$().getSystemEventQueueImpl$()}, +1);b(sa,"createDragGestureRecognizer$Class$java_awt_dnd_DragSource$java_awt_Component$I$java_awt_dnd_DragGestureListener",function(){return null});b(sa,"getDesktopProperty$S",function(a){this.desktopProperties.isEmpty$()&&this.initializeDesktopProperties$();var e;if(a.equals$O("awt.dynamicLayoutSupported"))return e=this.lazilyLoadDesktopProperty$S(a);e=this.desktopProperties.get$O(a);null==e&&(e=this.lazilyLoadDesktopProperty$S(a),null!=e&&this.setDesktopProperty$S$O(a,e));k(e,"java.awt.RenderingHints")&& +(e=e.clone$());return e});b(sa,"setDesktopProperty$S$O",function(a,e){var b;b=this.desktopProperties.get$O(a);this.desktopProperties.put$TK$TV(a,e);this.desktopPropsSupport.firePropertyChange$S$O$O(a,b,e)});b(sa,"lazilyLoadDesktopProperty$S",function(){return null});b(sa,"initializeDesktopProperties$",function(){});b(sa,"addPropertyChangeListener$S$java_beans_PropertyChangeListener",function(a,e){this.desktopPropsSupport.addPropertyChangeListener$S$java_beans_PropertyChangeListener(a,e)});b(sa,"removePropertyChangeListener$S$java_beans_PropertyChangeListener", +function(a,e){this.desktopPropsSupport.removePropertyChangeListener$S$java_beans_PropertyChangeListener(a,e)});b(sa,"getPropertyChangeListeners$",function(){return this.desktopPropsSupport.getPropertyChangeListeners$()});b(sa,"getPropertyChangeListeners$S",function(a){return this.desktopPropsSupport.getPropertyChangeListeners$S(a)});b(sa,"isAlwaysOnTopSupported$",function(){return!0});b(sa,"deProxyAWTEventListener$java_awt_event_AWTEventListener",function(a){var e=a;if(null==e)return null;k(a,"java.awt.event.AWTEventListenerProxy")&& +(e=a.getListener$());return e},1);b(sa,"addAWTEventListener$java_awt_event_AWTEventListener$J",function(a,e){var b=sa.deProxyAWTEventListener$java_awt_event_AWTEventListener(a);if(null!=b){var d=this.listener2SelectiveListener.get$O(b);null==d&&(d=f(Qe(7).c$$java_awt_event_AWTEventListener$J,[this,null,b,e]),this.listener2SelectiveListener.put$TK$TV(b,d),this.eventListener=Qe(8).add$java_awt_event_AWTEventListener$java_awt_event_AWTEventListener(this.eventListener,d));d.orEventMasks$J(e);sa.enabledOnToolkitMask|= +e;b=e;for(d=0;32>d&&0!=b;d++)0!=(b&1)&&this.calls[d]++,b>>>=1}});b(sa,"removeAWTEventListener$java_awt_event_AWTEventListener",function(a){var e=sa.deProxyAWTEventListener$java_awt_event_AWTEventListener(a);if(null!=a){a=this.listener2SelectiveListener.get$O(e);if(null!=a){this.listener2SelectiveListener.remove$O(e);for(var b=a.getCalls$(),d=0;32>d;d++)this.calls[d]-=b[d],0==this.calls[d]&&(sa.enabledOnToolkitMask&=~(1<>>=1,e++);e--;return this.calls[e]});b(sa,"getAWTEventListeners$",function(){for(var a=Qe(9).getListeners$java_util_EventListener$Class(this.eventListener,x(Qe(10),["eventDispatched$java_awt_AWTEvent"])),e=l(Qe(10),[a.length]),b=0;be&&0!=a;e++)0!=(a&1)&&this.calls[e]++,a>>>=1});b(zh,"c$$java_awt_event_AWTEventListener$J", +function(a,e){zh.$init$.apply(this);this.listener=a;this.eventMask=e},1);b(zh,["eventDispatched$java_awt_AWTEvent","eventDispatched$"],function(a){var e=0;if(0!=(e=this.eventMask&1)&&100<=a.id&&103>=a.id||0!=(e=this.eventMask&2)&&300<=a.id&&301>=a.id||0!=(e=this.eventMask&4)&&1004<=a.id&&1005>=a.id||0!=(e=this.eventMask&8)&&400<=a.id&&402>=a.id||0!=(e=this.eventMask&131072)&&507==a.id||0!=(e=this.eventMask&32)&&(503==a.id||506==a.id)||0!=(e=this.eventMask&16)&&503!=a.id&&506!=a.id&&507!=a.id&&500<= +a.id&&507>=a.id||0!=(e=this.eventMask&64)&&200<=a.id&&209>=a.id||0!=(e=this.eventMask&128)&&1001<=a.id&&1001>=a.id||0!=(e=this.eventMask&256)&&601<=a.id&&601>=a.id||0!=(e=this.eventMask&512)&&701<=a.id&&701>=a.id||0!=(e=this.eventMask&1024)&&900<=a.id&&900>=a.id||0!=(e=this.eventMask&2048)&&1100<=a.id&&1101>=a.id||0!=(e=this.eventMask&8192)&&800<=a.id&&801>=a.id||0!=(e=this.eventMask&16384)&&1200<=a.id&&1201>=a.id||0!=(e=this.eventMask&32768)&&1400==a.id||0!=(e=this.eventMask&65536)&&(1401==a.id|| +1402==a.id)||0!=(e=this.eventMask&262144)&&209==a.id||0!=(e=this.eventMask&524288)&&(207==a.id||208==a.id)){for(var b=0;0!=e;e>>>=1,b++);b--;for(e=0;ea||4<=a)throw f(g("IllegalArgumentException").c$$S,["invalid focus traversal key identifier"]); +var e=null!=this.focusTraversalKeys?this.focusTraversalKeys[a]:null;return null!=e?e:Sa(17).getCurrentKeyboardFocusManager$().getDefaultFocusTraversalKeys$I(a)});b(B,"setFocusCycleRoot$Z",function(){});b(B,"isFocusCycleRoot$",function(){return!0});b(B,"getFocusCycleRootAncestor$",function(){return null});b(B,"isFocusableWindow$",function(){if(!this.getFocusableWindowState$())return!1;if(k(this,"java.awt.JSFrame")||k(this,"java.awt.JSDialog"))return!0;if(null==this.getFocusTraversalPolicy$().getDefaultComponent$java_awt_Container(this))return!1; +for(var a=this.getOwner$();null!=a;a=a.getOwner$())if(k(a,"java.awt.JSFrame")||k(a,"java.awt.JSDialog"))return a.isShowing$();return!1});b(B,"getFocusableWindowState$",function(){return this.focusableWindowState});b(B,"setFocusableWindowState$Z",function(a){var e;e=this.focusableWindowState;this.focusableWindowState=a;this.firePropertyChange$S$Z$Z("focusableWindowState",e,a);if(e&&!a&&this.isFocused$())for(a=this.getOwner$();null!=a;a=a.getOwner$());});b(B,"addPropertyChangeListener$java_beans_PropertyChangeListener", +function(a){B.superclazz.prototype.addPropertyChangeListener$java_beans_PropertyChangeListener.apply(this,[a])});b(B,"addPropertyChangeListener$S$java_beans_PropertyChangeListener",function(a,e){B.superclazz.prototype.addPropertyChangeListener$S$java_beans_PropertyChangeListener.apply(this,[a,e])});b(B,"dispatchEventImpl$java_awt_AWTEvent",function(a){101==a.getID$()&&(this.invalidate$(),this.validate$());B.superclazz.prototype.dispatchEventImpl$java_awt_AWTEvent.apply(this,[a])});b(B,"postEvent$java_awt_Event", +function(a){return this.handleEvent$java_awt_Event(a)?(a.consume$(),!0):!1});b(B,"isShowing$",function(){return this.visible});b(B,"applyResourceBundle$java_util_ResourceBundle",function(a){this.applyComponentOrientation$java_awt_ComponentOrientation(Sa(18).getOrientation$java_util_ResourceBundle(a))});b(B,"applyResourceBundle$S",function(a){this.applyResourceBundle$java_util_ResourceBundle(Sa(19).getBundle$S(a))});b(B,"addOwnedWindow$java_awt_Window",function(a){null!=a&&(this.ownedWindowList.contains$O(a)|| +this.ownedWindowList.addElement$TE(a))});b(B,"removeOwnedWindow$java_awt_Window",function(a){null!=a&&this.ownedWindowList.removeElement$O(a)});b(B,"connectOwnedWindow$java_awt_Window",function(a){a.parent=this;this.addOwnedWindow$java_awt_Window(a)});b(B,"addToWindowList",function(){var a=this.appContext.get$O(x(B));null==a&&(a=f(Sa(2)),this.appContext.put$O$O(x(B),a));a.add$TE(this)},Zv);b(B,"getGraphicsConfiguration$",function(){null==this.graphicsConfig&&(this.graphicsConfig=Sa(20).getGraphicsConfiguration$()); +return this.graphicsConfig});b(B,"resetGC$",function(){});b(B,"setLocationRelativeTo$java_awt_Component",function(a){var e=null;if(null!=a)if(a.isWindowOrJSApplet$())e=a;else{var b;for(b=a.getParent$();null!=b;b=b.getParent$())if(b.isWindowOrJSApplet$()){e=b;break}}if(null!=a&&!a.isShowing$()||null==e||!e.isShowing$())e=this.getSize$(),b=Sa(21).getLocalGraphicsEnvironment$().getCenterPoint$(),this.setLocation$I$I(b.x-(e.width/2|0),b.y-(e.height/2|0));else{b=a.getSize$();a=a.getLocationOnScreen$(); +var d=this.getBounds$(),h=a.x+(b.width-d.width>>1),f=a.y+(b.height-d.height>>1),e=e.getGraphicsConfiguration$().getBounds$();f+d.height>e.y+e.height&&(f=e.y+e.height-d.height,h=a.x-e.x+(b.width/2|0)<(e.width/2|0)?a.x+b.width:a.x-d.width);h+d.width>e.x+e.width&&(h=e.x+e.width-d.width);ha||1a)throw f(g("NegativeArraySizeException")); +this.value=l(Character.TYPE,[a])},1);b(eb,"c$$S",function(a){eb.$init$.apply(this);if(null==a)throw f(g("NullPointerException"));this.count=a.length$();this.shared=!1;this.value=l(Character.TYPE,[this.count+16]);a.getChars$I$I$CA$I(0,this.count,this.value,0)},1);b(eb,"enlargeBuffer$I",function(a){var e=(this.value.length<<1)+2;a=l(Character.TYPE,[a>e?a:e]);System.arraycopy$O$I$O$I$I(this.value,0,a,0,this.count);this.value=a;this.shared=!1},Bh);b(eb,"appendNull$",function(){var a=this.count+4;a>this.value.length? +Bh.enlargeBuffer$I.apply(this,[a]):this.shared&&(this.value=this.value.clone$(),this.shared=!1);this.value[this.count++]="n";this.value[this.count++]="u";this.value[this.count++]="l";this.value[this.count++]="l"});b(eb,"append0$CA",function(a){var e=this.count+a.length;e>this.value.length?Bh.enlargeBuffer$I.apply(this,[e]):this.shared&&(this.value=this.value.clone$(),this.shared=!1);System.arraycopy$O$I$O$I$I(a,0,this.value,this.count,a.length);this.count=e});b(eb,"append0$CA$I$I",function(a,e,b){if(null== +a)throw f(g("NullPointerException"));if(0<=e&&0<=b&&b<=a.length-e){var d=this.count+b;d>this.value.length?Bh.enlargeBuffer$I.apply(this,[d]):this.shared&&(this.value=this.value.clone$(),this.shared=!1);System.arraycopy$O$I$O$I$I(a,e,this.value,this.count,b);this.count=d}else throw f(g("ArrayIndexOutOfBoundsException"));});b(eb,"append0$C",function(a){this.count==this.value.length&&Bh.enlargeBuffer$I.apply(this,[this.count+1]);this.shared&&(this.value=this.value.clone$(),this.shared=!1);this.value[this.count++]= +a});b(eb,"append0$S",function(a){if(null==a)this.appendNull$();else{var e=a.length$(),b=this.count+e;b>this.value.length?Bh.enlargeBuffer$I.apply(this,[b]):this.shared&&(this.value=this.value.clone$(),this.shared=!1);a.getChars$I$I$CA$I(0,e,this.value,this.count);this.count=b}});b(eb,"append0$CharSequence$I$I",function(a,e,b){null==a&&(a="null");if(0>e||0>b||e>b||b>a.length$())throw f(g("IndexOutOfBoundsException"));this.append0$S(a.subSequence$I$I(e,b).toString())});b(eb,"capacity$",function(){return this.value.length}); +b(eb,"charAt$I",function(a){if(0>a||a>=this.count)throw f(g("StringIndexOutOfBoundsException").c$$I,[a]);return this.value[a]});b(eb,"delete0$I$I",function(a,e){if(0<=a){e>this.count&&(e=this.count);if(e==a)return;if(e>a){var b=this.count-e;if(0a||a>=this.count)throw f(g("StringIndexOutOfBoundsException").c$$I,[a]);var e=this.count-a-1;if(0 +this.value.length&&Bh.enlargeBuffer$I.apply(this,[a])});b(eb,"getChars$I$I$CA$I",function(a,e,b,d){if(a>this.count||e>this.count||a>e)throw f(g("StringIndexOutOfBoundsException"));System.arraycopy$O$I$O$I$I(this.value,a,b,d,e-a)});b(eb,"insert0$I$CA",function(a,e){if(0>a||a>this.count)throw f(g("StringIndexOutOfBoundsException").c$$I,[a]);0!=e.length&&(Bh.move$I$I.apply(this,[e.length,a]),System.arraycopy$O$I$O$I$I(e,0,this.value,a,e.length),this.count+=e.length)});b(eb,"insert0$I$CA$I$I",function(a, +e,b,d){if(0<=a&&a<=this.count){if(0<=b&&0<=d&&d<=e.length-b){0!=d&&(Bh.move$I$I.apply(this,[d,a]),System.arraycopy$O$I$O$I$I(e,b,this.value,a,d),this.count+=d);return}throw f(g("StringIndexOutOfBoundsException").c$$S,["offset "+b+", len "+d+", array.length "+e.length]);}throw f(g("StringIndexOutOfBoundsException").c$$I,[a]);});b(eb,"insert0$I$C",function(a,e){if(0>a||a>this.count)throw f(g("ArrayIndexOutOfBoundsException").c$$I,[a]);Bh.move$I$I.apply(this,[1,a]);this.value[a]=e;this.count++});b(eb, +"insert0$I$S",function(a,e){if(0<=a&&a<=this.count){null==e&&(e="null");var b=e.length$();0!=b&&(Bh.move$I$I.apply(this,[b,a]),e.getChars$I$I$CA$I(0,b,this.value,a),this.count+=b)}else throw f(g("StringIndexOutOfBoundsException").c$$I,[a]);});b(eb,"insert0$I$CharSequence$I$I",function(a,e,b,d){null==e&&(e="null");if(0>a||a>this.count||0>b||0>d||b>d||d>e.length$())throw f(g("IndexOutOfBoundsException"));this.insert0$I$S(a,e.subSequence$I$I(b,d).toString())});b(eb,"length$",function(){return this.count}); +b(eb,"move$I$I",function(a,e){var b;if(this.value.length-this.count>=a){if(!this.shared){System.arraycopy$O$I$O$I$I(this.value,e,this.value,e+a,this.count-e);return}b=this.value.length}else{b=this.count+a;var d=(this.value.length<<1)+2;b=b>d?b:d}b=l(Character.TYPE,[b]);System.arraycopy$O$I$O$I$I(this.value,0,b,0,e);System.arraycopy$O$I$O$I$I(this.value,e,b,e+a,this.count-e);this.value=b;this.shared=!1},Bh);b(eb,"replace0$I$I$S",function(a,e,b){if(0<=a){e>this.count&&(e=this.count);if(e>a){var d=b.length$(), +h=e-a-d;if(0h?Bh.move$I$I.apply(this,[-h,e]):this.shared&&(this.value=this.value.clone$(),this.shared=!1);b.getChars$I$I$CA$I(0,d,this.value,a);this.count-=h;return}if(a==e){if(null==b)throw f(g("NullPointerException"));this.insert0$I$S(a, +b);return}}throw f(g("StringIndexOutOfBoundsException"));});b(eb,"reverse0$",function(){if(!(2>this.count))if(this.shared){for(var a=l(Character.TYPE,[this.value.length]),e=0,b=this.count;ea||a>=this.count)throw f(g("StringIndexOutOfBoundsException").c$$I,[a]);this.shared&& +(this.value=this.value.clone$(),this.shared=!1);this.value[a]=e});b(eb,"setLength$I",function(a){if(0>a)throw f(g("StringIndexOutOfBoundsException").c$$I,[a]);if(this.countthis.value.length)Bh.enlargeBuffer$I.apply(this,[a]);else if(this.shared){var e=l(Character.TYPE,[this.value.length]);System.arraycopy$O$I$O$I$I(this.value,0,e,0,this.count);this.value=e;this.shared=!1}else for(e=this.count;e>1)return String.instantialize(this.value, +0,this.count);this.shared=!0;return String.instantialize(this.value,0,this.count)});b(eb,"subSequence$I$I",function(a,e){return this.substring$I$I(a,e)});b(eb,"indexOf$S",function(a){return this.indexOf$S$I(a,0)});b(eb,"indexOf$S$I",function(a,e){0>e&&(e=0);var b=a.length$();if(0this.count)return-1;for(var d=a.charAt$I(0);;){for(var h=e,f=!1;hthis.count)return-1;for(var f=h,g=0;++gthis.count-b&&(e=this.count-b);for(var d=a.charAt$I(0);;){for(var h=e,f=!1;0<=h;--h)if(this.value[h]==d){f=!0;break}if(!f)return-1;for(var f=h,g=0;++ga||a>=this.count)throw f(g("StringIndexOutOfBoundsException").c$$I,[a]);return Character.codePointAt$CA$I$I(this.value,a,this.count)});b(eb,"codePointBefore$I",function(a){if(1>a||a>this.count)throw f(g("StringIndexOutOfBoundsException").c$$I,[a]);return Character.codePointBefore$CA$I(this.value,a)});b(eb,"codePointCount$I$I", +function(a,e){if(0>a||e>this.count||a>e)throw f(g("StringIndexOutOfBoundsException"));return Character.codePointCount$CA$I$I(this.value,a,e-a)});b(eb,"offsetByCodePoints$I$I",function(a,e){return Character.offsetByCodePoints$CA$I$I$I$I(this.value,0,this.count,a,e)});n("3.2.4.07");var Kr=java.lang,ei={},Lr=[[0,"java.lang.reflect.Method","java.util.Arrays","java.lang.reflect.TypeVariable","swingjs.JSUtil","java.lang.reflect.Field","java.lang.reflect.Constructor","Boolean","Void","java.util.HashMap"]], +tf=function(a){return Lr[a]||(Lr[a]=g(Lr[0][a]))},ta=j(Kr,"Class",function(){m(this,arguments,0,ta)},null,["java.io.Serializable","java.lang.reflect.GenericDeclaration"]);ta.initted=!1;ta.$clinit$=function(){g(ta,1);ta.initted=!1};b(ta,"$init0$",function(){var a;(a=ta.superclazz)&&(a=a.$init0$)&&a.apply(this);this.fields=this.name=this.$methodList$=this.$clazz$=null;this.lastRedefinedCount=this.classRedefinedCount=0;this.enumConstantDirectory=this.enumConstants=null},1);b(ta,"$init$",function(){this.lastRedefinedCount= +this.classRedefinedCount=0;this.enumConstantDirectory=this.enumConstants=null},1);b(ta,"c$",function(){ta.$init$.apply(this)},1);b(ta,"toString",function(){return(this.isInterface$()?"interface ":this.isPrimitive$()?"":"class ")+this.getName$()});b(ta,"forName$S",function(a){return ta.forName0$S$Z$ClassLoader(a,!0,null)},1);b(ta,"forName$S$Z$ClassLoader",function(a,e,b){return ta.forName0$S$Z$ClassLoader(a,e,b)},1);b(ta,"forName0$S$Z$ClassLoader",function(a,e,b){return em(a,e,b)},1);b(ta,"newInstance$", +function(){return new this.$clazz$});b(ta,"isInstance$O",function(a){return k(a,this.$clazz$)});b(ta,"isAssignableFrom$Class",function(a){return k(a.$clazz$,this.$clazz$)});b(ta,"isInterface$",function(){return this.$clazz$.$isInterface});b(ta,"isArray$",function(){return!!this.$clazz$.__ARRAYTYPE});b(ta,"isPrimitive$",function(){return!!this.__PRIMITIVE});b(ta,"isAnnotation$",function(){return 0!=(this.getModifiers$()&8192)});b(ta,"isSynthetic$",function(){return 0!=(this.getModifiers$()&4096)}); +b(ta,"getName$",function(){null==this.name&&(this.name=ei.getName0.apply(this,[]));return this.name});b(ta,"getName0",function(){var a="";if(a=this.$clazz$.__CLASS_NAME$__||this.$clazz$.__CLASS_NAME__)return a;a=this.$clazz$.__PARAMCODE;switch(a){case "S":a="String";break;case "I":a="Integer";break;case "H":a="Short";break;case "B":a="Byte";break;case "L":a="Long";break;case "C":a="Character";break;default:return null}return"java.lang."+a},ei);b(ta,"getClassLoader$",function(){var a=this.getClassLoader0$(); +a.baseClass=this;return a});b(ta,"getClassLoader0$",function(){var a=null,a=Li._Loader.getJ2SLibBase(),a=Li._Loader.requireLoaderByBase(a),e=this;a.getResourceAsStream$S=function(a){return e.getResourceAsStream$S(0==a.indexOf("/")?a:"/"+a)};a.getResource$S=function(a){return e.getResource$S(0==a.indexOf("/")?a:"/"+a)};return a});b(ta,"getTypeParameters$",function(){return l(tf(3),[0])});b(ta,"getSuperclass$",function(){return this.$clazz$==java.lang.Object?null:x(this.$clazz$.superclazz||java.lang.Object)}); +b(ta,"getInterfaces$",function(){tf(4).notImplemented$S(null);return l(Class,[0])});b(ta,"getComponentType$",function(){return null});b(ta,"getModifiers$",function(){return 1|(this.isEnum$()?16384:this.isInterface$()?512:0)});b(ta,"getSigners$",function(){tf(4).notImplemented$S(null);return l(java.lang.Object,[0])});b(ta,"setSigners$OA",function(){tf(4).notImplemented$S(null)});b(ta,"getDeclaringClass$",function(){tf(4).notImplemented$S(null);return null});b(ta,"getSimpleName$",function(){if(this.isArray$())return this.getComponentType$().getSimpleName$()+ +"[]";var a="",a=this.$clazz$.__ANON?"":this.$clazz$.__CLASS_NAME__;return a.substring$I(a.lastIndexOf$S(".")+1)});b(ta,"getCanonicalName$",function(){if(this.isArray$()){var a=this.getComponentType$().getCanonicalName$();return null!=a?a+"[]":null}if(ei.isLocalOrAnonymousClass.apply(this,[]))return null;a=null;return a=this.$clazz$.__CLASS_NAME__||null});b(ta,"isAnonymousClass$",function(){return"".equals$O(this.getSimpleName$())});b(ta,"isLocalClass$",function(){return!!this.$clazz$.__LOCAL});b(ta, +"isLocalOrAnonymousClass",function(){return!!this.$clazz$.__ISANON||!!this.$clazz$.__LOCAL},ei);b(ta,"getClasses$",function(){return null});b(ta,"getFields$",function(){if(null!=this.fields)return this.fields;this.fields=l(tf(5),[0]);var a=this.$clazz$||null;ei.addFields$O$reflect_FieldA$I.apply(this,[a.prototype||null,this.fields,0]);ei.addFields$O$reflect_FieldA$I.apply(this,[a,this.fields,8]);return this.fields});b(ta,"getMethods$",function(){return ei.privateGetPublicMethods.apply(this,[])}); +b(ta,"getConstructors$",function(){return null});b(ta,"getField$S",function(a){this.getFields$();for(var e=this.fields.length;0<=--e;)if(this.fields[e].jsName==a)return this.fields[e];throw f(g("NoSuchFieldException").c$$S,["field "+a]);});b(ta,"addFields$O$reflect_FieldA$I",function(a,e,b){var d=null;for(d in a)if((b||!this.$clazz$[d])&&!this.excludeField$S(d)){var h=a[d];switch(typeof h){case "object":if(h&&h.__CLASS_NAME__)continue;case "number":case "boolean":case "string":ei.addField$reflect_FieldA$S$I.apply(this, +[e,d,b])}}},ei);b(ta,"excludeField$S",function(a){return"prototype"==a||a.startsWith$S("__")});b(ta,"addField$reflect_FieldA$S$I",function(a,e,b){e=f(tf(5).c$$Class$S$I,[this,e,b]);a.push(e)},ei);b(ta,"getMethod$S$ClassA",function(a,e){var b=f(tf(1).c$$Class$S$ClassA$Class$ClassA$I,[this,a,e,null,null,0]);if(!this.isInterface$()){var d=null,h=a+ta.argumentTypesToString$ClassA(e),d=this.$clazz$,d=d[h]||d.prototype&&d.prototype[h];if(null==d)throw f(g("NoSuchMethodException").c$$S,[this.getName$()+ +"."+h]);}return b});b(ta,"getConstructor$ClassA",function(a){null==a&&(a=l(Class,[0]));return f(tf(6).c$$Class$ClassA$ClassA$I,[this,a,l(Class,[0]),0])});b(ta,"getDeclaredClasses$",function(){return this.getClasses$()});b(ta,"getDeclaredFields$",function(){return this.getFields$()});b(ta,"getDeclaredMethods$",function(){return this.getMethods$()});b(ta,"getDeclaredConstructors$",function(){return this.getConstructors$()});b(ta,"getDeclaredField$S",function(a){return this.getField$S(a)});b(ta,"getDeclaredMethod$S$ClassA", +function(a,e){return this.getMethod$S$ClassA(a,e)});b(ta,"getDeclaredConstructor$ClassA",function(a){return this.getConstructor$ClassA(a)});b(ta,"getResourceAsStream$S",function(a){var e=this.$clazz$.__CLASS_NAME$__||this.$clazz$.__CLASS_NAME__||"",b=null,d=null;if(!a)return null;a=a.replace(/\\/g,"/");b=null;2==arguments.length&&0!=a.indexOf("/")&&(a="/"+a);if(0==a.indexOf("/"))2==arguments.length&&(b=arguments[1]),b||(b=Li._Loader.getJ2SLibBase()),"/"!=b.charAt(b.length-1)&&(b+="/"),d=b+a.substring(1); +else{d=b=Li._Loader.getJ2SLibBase();if(null==this.$_$base){e=e.split(".");d=b;"/"!=d.charAt(d.length-1)&&(d+="/");for(var b=Li._allPackage,h=0;hd.indexOf(":/")){var s=document.location.href.split("?")[0].split("/");s[s.length-1]=d;d=s.join("/")}g("java.net.URL");e=f(java.net.URL.c$$S,[d])}catch(I){return null}b=(s=J2S.getSetJavaFileCache(null))&&s.get$O(b);null==b&&(b=tf(4).J2S.getFileData(d.toString(),null,!0,!0));if(null==b||"error"== +b||b.indexOf&&0==b.indexOf("[Exception"))return null;d=1==b.__BYTESIZE?b:J2S._strToBytes(b);g("java.io.BufferedInputStream");g("java.io.ByteArrayInputStream");d=f(java.io.BufferedInputStream.c$$java_io_InputStream,[f(java.io.ByteArrayInputStream.c$$BA,[d])]);d.url=e;return e._streamData=d});b(ta,"getResource$S",function(a){return(a=this.getResourceAsStream$S(a))?a.url:null});b(ta,"getPrimitiveClass$S",function(a){switch(a){case "boolean":return tf(7).TYPE;case "byte":return Byte.TYPE;case "char":return Character.TYPE; +case "short":return Short.TYPE;case "int":return Integer.TYPE;case "long":return Long.TYPE;case "float":return Float.TYPE;case "double":return Double.TYPE;default:return null}},1);b(ta,"privateGetPublicMethods",function(){var a;if(null!=this.$methodList$){a=l(tf(1),[this.$methodList$.length]);for(var e=a.length;0<=--e;)a[e]=f(tf(1).c$$Class$S$ClassA$Class$ClassA$I,[this,this.$methodList$[e],null,x(tf(8)),null,1]);return a}a=l(tf(1),[0]);var e=this.$clazz$.prototype,b;for(b in e)"function"==typeof e[b]&& +(!e[b].__CLASS_NAME__&&e[b]!=this.$clazz$[b]&&e[b].exClazz==this.$clazz$)&&a.push(f(g("java.lang.reflect.Method").c$$Class$S$ClassA$Class$ClassA$I,[this,b,[],java.lang.Void,[],1]));e=this.$clazz$;for(b in e)"function"==typeof e[b]&&(!e[b].__CLASS_NAME__&&e[b].exClazz==this.$clazz$)&&a.push(f(g("java.lang.reflect.Method").c$$Class$S$ClassA$Class$ClassA$I,[this,b,[],java.lang.Void,[],9]));return a},ei);b(ta,"arrayContentsEq$OA$OA",function(a,e){if(null==a)return null==e||0==e.length;if(null==e)return 0== +a.length;if(a.length!=e.length)return!1;for(var b=0;ba)throw f(g("IllegalArgumentException").c$$S,["timeout value is negative"]);if(0>e||999999a)throw f(g("IllegalArgumentException"));if(null!=(e=this.getThreadGroup$()))a> +e.getMaxPriority$()&&(a=e.getMaxPriority$()),$c.setPriority0$I.apply(this,[this.priority=a])});b(Y,"getPriority$",function(){return this.priority});b(Y,"setName$S",function(a){this.checkAccess$();this.name=a});b(Y,"getName$",function(){return this.name});b(Y,"getThreadGroup$",function(){return this.group});b(Y,"activeCount$",function(){return Y.currentThread$().getThreadGroup$().activeCount$()},1);b(Y,"enumerate$ThreadA",function(a){return Y.currentThread$().getThreadGroup$().enumerate$ThreadA(a)}, +1);b(Y,"countStackFrames$",function(){return 0});b(Y,"join$J",function(a){var e=System.currentTimeMillis$(),b=0;if(0>a)throw f(g("IllegalArgumentException").c$$S,["timeout value is negative"]);Zi(5).warn$S("Cannot wait in Thread");if(0==a)for(;this.isAlive$();)this.wait$J(0);else for(;this.isAlive$();){b=a-b;if(0>=b)break;this.wait$J(b);b=System.currentTimeMillis$()-e}});b(Y,"join$J$I",function(a,e){if(0>a)throw f(g("IllegalArgumentException").c$$S,["timeout value is negative"]);if(0>e||999999a||10a.length-e&&(f=a.length-e);for(var g=0;ga.length-e&&(f=a.length-e);0b)throw f(g("java.net.MalformedURLException").c$$S,["Invalid port number :"+b]);this.port=b;this.authority=-1==b?e:e+":"+b}e=f(aq(2).c$$S,[d]);this.path=e.getPath$();this.query=e.getQuery$();this.file=null!=this.query?this.path+"?"+this.query:this.path;this.ref=e.getRef$();if(null==h&&null==(h=Ta.getURLStreamHandler$S(a)))throw f(g("java.net.MalformedURLException").c$$S, +["unknown protocol: "+a]);this.handler=h},1);b(Ta,"c$$S",function(a){Ta.c$$java_net_URL$S$java_net_URLStreamHandler.apply(this,[null,a,null])},1);b(Ta,"c$$java_net_URL$S",function(a,e){Ta.c$$java_net_URL$S$java_net_URLStreamHandler.apply(this,[a,e,null])},1);b(Ta,"c$$java_net_URL$S$java_net_URLStreamHandler",function(a,e,b){Ta.$init$.apply(this);var d,h,s,I=0,p=null,D=!1,j=!1;try{for(h=e.length$();0=e.charAt$I(h-1);)h--;for(;I=e.charAt$I(I);)I++;e.regionMatches$Z$I$S$I$I(!0,I,"url:", +0,4)&&(I+=4);Ie)return!1;var b=a.charAt$I(0);if(!Character.isLetter$C(b))return!1;for(var d=1;dMath.abs(a)?Da.formatLong$J$StringBuffer$java_text_Format_FieldDelegate.apply(this,[a|0,e,b.getFieldDelegate$()]):Da.formatDouble$D$StringBuffer$java_text_Format_FieldDelegate.apply(this, +[a,e,b.getFieldDelegate$()])});b(U,"formatDouble$D$StringBuffer$java_text_Format_FieldDelegate",function(a,e,b){if(Double.isNaN$D(a)||Double.isInfinite$D(a)&&0==this.multiplier){var d=e.length$();e.append$S(this.symbols.getNaN$());b.formatted$I$java_text_Format_Field$O$I$I$StringBuffer(0,Oa(7).INTEGER,Oa(7).INTEGER,d,e.length$(),e);return e}var h=!!((0>a||0==a&&0>1/a)^0>this.multiplier);1!=this.multiplier&&(a*=this.multiplier);if(Double.isInfinite$D(a))return h?Da.append$StringBuffer$S$java_text_Format_FieldDelegate$java_text_FieldPositionA$java_text_Format_Field.apply(this, +[e,this.negativePrefix,b,Da.getNegativePrefixFieldPositions.apply(this,[]),Oa(7).SIGN]):Da.append$StringBuffer$S$java_text_Format_FieldDelegate$java_text_FieldPositionA$java_text_Format_Field.apply(this,[e,this.positivePrefix,b,Da.getPositivePrefixFieldPositions.apply(this,[]),Oa(7).SIGN]),d=e.length$(),e.append$S(this.symbols.getInfinity$()),b.formatted$I$java_text_Format_Field$O$I$I$StringBuffer(0,Oa(7).INTEGER,Oa(7).INTEGER,d,e.length$(),e),h?Da.append$StringBuffer$S$java_text_Format_FieldDelegate$java_text_FieldPositionA$java_text_Format_Field.apply(this, +[e,this.negativeSuffix,b,Da.getNegativeSuffixFieldPositions.apply(this,[]),Oa(7).SIGN]):Da.append$StringBuffer$S$java_text_Format_FieldDelegate$java_text_FieldPositionA$java_text_Format_Field.apply(this,[e,this.positiveSuffix,b,Da.getPositiveSuffixFieldPositions.apply(this,[]),Oa(7).SIGN]),e;h&&(a=-a);rb(U,this,function(){return 0<=a&&!Double.isInfinite$D(a)});var d=U.superclazz.prototype.getMaximumIntegerDigits$.apply(this,[]),f=U.superclazz.prototype.getMinimumIntegerDigits$.apply(this,[]),g=U.superclazz.prototype.getMaximumFractionDigits$.apply(this, +[]),p=U.superclazz.prototype.getMinimumFractionDigits$.apply(this,[]);this.digitList.set$Z$D$I$Z(h,a,this.useExponentialNotation?d+g:g,!this.useExponentialNotation);return Da.subformat$StringBuffer$java_text_Format_FieldDelegate$Z$Z$I$I$I$I.apply(this,[e,b,h,!1,d,f,g,p])},Da);b(U,"format$J$StringBuffer$java_text_FieldPosition",function(a,e,b){b.setBeginIndex$I(0);b.setEndIndex$I(0);return Da.formatLong$J$StringBuffer$java_text_Format_FieldDelegate.apply(this,[a,e,b.getFieldDelegate$()])});b(U,"formatLong$J$StringBuffer$java_text_Format_FieldDelegate", +function(a,e,b){var d=0>a;d&&(a=-a);a*=this.multiplier;0==a?d=!1:0>this.multiplier&&(a=-a,d=!d);var h=U.superclazz.prototype.getMaximumIntegerDigits$.apply(this,[]),f=U.superclazz.prototype.getMinimumIntegerDigits$.apply(this,[]),g=U.superclazz.prototype.getMaximumFractionDigits$.apply(this,[]),p=U.superclazz.prototype.getMinimumFractionDigits$.apply(this,[]);this.digitList.setLong$Z$J$I(d,a,this.useExponentialNotation?h+g:0);return Da.subformat$StringBuffer$java_text_Format_FieldDelegate$Z$Z$I$I$I$I.apply(this, +[e,b,d,!0,h,f,g,p])},Da);b(U,"formatToCharacterIterator$O",function(a){var e=f(Oa(8)),b=f(Oa(9));if(k(a,"java.lang.Double")||k(a,"java.lang.Float"))Da.formatDouble$D$StringBuffer$java_text_Format_FieldDelegate.apply(this,[a.doubleValue$(),b,e]);else if(k(a,"java.lang.Long")||k(a,"java.lang.Integer")||k(a,"java.lang.Short")||k(a,"java.lang.Byte"))Da.formatLong$J$StringBuffer$java_text_Format_FieldDelegate.apply(this,[a.longValue$(),b,e]);else{if(null==a)throw f(g("NullPointerException").c$$S,["formatToCharacterIterator must be passed non-null object"]); +throw f(g("IllegalArgumentException").c$$S,["Cannot format given Object as a Number"]);}return e.getIterator$S(b.toString())});b(U,"subformat$StringBuffer$java_text_Format_FieldDelegate$Z$Z$I$I$I$I",function(a,e,b,d,h,f,g,p){var D=this.symbols.getZeroDigit$(),j=D.$c()-48,k=this.symbols.getGroupingSeparator$(),l=this.isCurrencyFormat?this.symbols.getMonetaryDecimalSeparator$():this.symbols.getDecimalSeparator$();this.digitList.isZero$()&&(this.digitList.decimalAt=0);b?Da.append$StringBuffer$S$java_text_Format_FieldDelegate$java_text_FieldPositionA$java_text_Format_Field.apply(this, +[a,this.negativePrefix,e,Da.getNegativePrefixFieldPositions.apply(this,[]),Oa(7).SIGN]):Da.append$StringBuffer$S$java_text_Format_FieldDelegate$java_text_FieldPositionA$java_text_Format_Field.apply(this,[a,this.positivePrefix,e,Da.getPositivePrefixFieldPositions.apply(this,[]),Oa(7).SIGN]);if(this.useExponentialNotation){var m=a.length$(),k=g=-1;d=this.digitList.decimalAt;var n=f;1f?(d=1<=d?((d-1)/h|0)*h:((d-h)/h|0)*h,n=1):d-=n;h=f+p;0>h&&(h=2147483647);p=this.digitList.isZero$()?n:this.digitList.decimalAt- +d;hf&&(f=h);n=!1;for(h=0;hd)d=-d,l=a.length$(),a.append$C(this.symbols.getMinusSign$()),e.formatted$java_text_Format_Field$O$I$I$StringBuffer(Oa(7).EXPONENT_SIGN,Oa(7).EXPONENT_SIGN, +l,a.length$(),a);this.digitList.setExp$Z$J(m,d);l=a.length$();for(h=this.digitList.decimalAt;hh&&(q=h,f=this.digitList.decimalAt- +q);n=a.length$();for(h=q-1;0<=h;--h)h=p&&(d||f>=this.digitList.count));++h)-1-h>this.digitList.decimalAt-1?a.append$C(D):!d&&fg&&(h=!0)):f=this.digitList.getDouble$(); +1!=this.multiplier&&(d?f/=this.multiplier:0==g%this.multiplier?g=g/this.multiplier|0:(f=g/this.multiplier,d=!0));!b[1]&&!h&&(f=-f,g=-g);1!=this.multiplier&&d&&(g=f|0,d=(f!=g||0==f&&0>1/f)&&!this.isParseIntegerOnly$());return d?new Double(f):new Long(g)});b(U,"subparse$S$java_text_ParsePosition$S$S$java_text_DigitList$Z$ZA",function(a,e,b,d,h,s,g){var p=e.index,j=e.index,k,m;k=a.regionMatches$I$S$I$I(p,b,0,b.length$());m=a.regionMatches$I$S$I$I(p,d,0,d.length$());k&&m&&(b.length$()>d.length$()?m=!1: +b.length$()y||9=y)u=!0,++v,h.append$C(String.fromCharCode(y+48)),b=-1;else if(!s&&x==q){if(this.isParseIntegerOnly$()||d)break;h.decimalAt=v;d=!0}else if(!s&&x==r&&this.isGroupingUsed$()){if(d)break;b=p}else{!s&&a.regionMatches$I$S$I$I(p,t,0,t.length$())&&(n=f(Oa(10).c$$I,[p+t.length$()]),q= +l(Boolean.TYPE,[2]),r=f(Oa(3)),Da.subparse$S$java_text_ParsePosition$S$S$java_text_DigitList$Z$ZA.apply(this,[a,n,"",Character.toString$C(this.symbols.getMinusSign$()),r,!0,q])&&r.fitsIntoLong$Z$Z(q[1],!0)&&(p=n.index,w=r.getLong$()|0,q[1]||(w=-w)));break}}-1!=b&&(p=b);d||(h.decimalAt=v);h.decimalAt+=w;if(!u&&0==v)return e.index=j,e.errorIndex=j,!1}if(s)e.index=p;else{k&&(k=a.regionMatches$I$S$I$I(p,this.positiveSuffix,0,this.positiveSuffix.length$()));m&&(m=a.regionMatches$I$S$I$I(p,this.negativeSuffix, +0,this.negativeSuffix.length$()));k&&m&&(this.positiveSuffix.length$()>this.negativeSuffix.length$()?m=!1:this.positiveSuffix.length$()b){Da.appendAffix$StringBuffer$S$Z.apply(this, +[a,e.substring$I(h),d]);break}b>h&&Da.appendAffix$StringBuffer$S$Z.apply(this,[a,e.substring$I$I(h,b),d]);h=e.charAt$I(++b);++b;if("'"==h)a.append$C(h);else if("\u00a4"==h&&be.indexOf$I("'"))a.append$S(e);else for(var d=0;dv&&(Re[0]=++A,A=Re[0],Re[0]);else if(F==b){if(0v&&(Re[0]=++A,A=Re[0],Re[0])}else if(F== +d)A=(Re[0]=0,Re[0]);else if(F==h){if(0<=v)throw f(g("IllegalArgumentException").c$$S,['Multiple decimal separators in pattern "'+a+'"']);v=y+z+B}else if(a.regionMatches$I$S$I$I(C,k,0,k.length$())){if(this.useExponentialNotation)throw f(g("IllegalArgumentException").c$$S,['Multiple exponential symbols in pattern "'+a+'"']);this.useExponentialNotation=!0;this.minExponentDigits=(Re[0]=0,Re[0]);for(C+=k.length$();Cy+z||1>this.minExponentDigits)throw f(g("IllegalArgumentException").c$$S,['Malformed exponential pattern "'+a+'"']);E=2;H=w;--C}else E=2,H=w,--C,--n}}0==z&&(0v&&0y+z)||0==A||t)throw f(g("IllegalArgumentException").c$$S,['Malformed pattern "'+a+'"']);1==r?(this.posPrefixPattern=u.toString(),this.posSuffixPattern=w.toString(),this.negPrefixPattern=this.posPrefixPattern,this.negSuffixPattern=this.posSuffixPattern,t= +y+z+B,this.setMinimumIntegerDigits$I((0<=v?v:t)-y),this.setMaximumIntegerDigits$I(this.useExponentialNotation?y+this.getMinimumIntegerDigits$():2147483647),this.setMaximumFractionDigits$I(0<=v?t-v:0),this.setMinimumFractionDigits$I(0<=v?y+z-v:0),this.setGroupingUsed$Z(0this.$maximumIntegerDigits&&(this.$minimumIntegerDigits=this.$maximumIntegerDigits,U.superclazz.prototype.setMinimumIntegerDigits$I.apply(this,[309this.$maximumIntegerDigits&&(this.$maximumIntegerDigits=this.$minimumIntegerDigits,U.superclazz.prototype.setMaximumIntegerDigits$I.apply(this,[309this.$maximumFractionDigits&&(this.$minimumFractionDigits=this.$maximumFractionDigits,U.superclazz.prototype.setMinimumFractionDigits$I.apply(this,[340this.$maximumFractionDigits&&(this.$maximumFractionDigits=this.$minimumFractionDigits,U.superclazz.prototype.setMaximumFractionDigits$I.apply(this,[340this.decimalAt)return!0;for(var b=0;bh)return!1;if(db){this.count=0;return}if(-this.decimalAt==b){Dh.shouldRoundUp$I.apply(this,[0])?(this.count=1, +++this.decimalAt,this.digits[0]="1"):this.count=0;return}}for(;1a){this.digits[0]="1";++this.decimalAt;a=0;break}this.digits[a]=String.fromCharCode(this.digits[a].$c()+1);if("9">=this.digits[a])break}++a}for(this.count=a;1=e)-9223372036854775E3==e?(this.decimalAt=this.count=19,System.arraycopy$O$I$O$I$I(fc.LONG_MIN_REP,0,this.digits,0,this.count)):this.decimalAt=this.count=0;else{for(a=19;1<=e;)this.digits[--a]=String.fromCharCode(48+e%10),e=e/10|0;this.decimalAt=19-a;for(e=18;"0"==this.digits[e];--e);this.count=e-a+1;System.arraycopy$O$I$O$I$I(this.digits,a,this.digits,0,this.count)}0=d)f=10*f+(d.$c()-48);else break;return h?f:-f},1);b(fc,"toString",function(){if(this.isZero$())return"0";var a= +Dh.getStringBuffer.apply(this,[]);a.append$S("0.");a.append$CA$I$I(this.digits,0,this.count);a.append$S("x10^");a.append$S(""+this.decimalAt);return a.toString()});b(fc,"getStringBuffer",function(){null==this.tempBuffer?this.tempBuffer=f(Fj(3).c$$I,[19]):this.tempBuffer.setLength$I(0);return this.tempBuffer},Dh);b(fc,"getDataChars$I",function(a){if(null==this.data||this.data.lengththis.maximumIntegerDigits&&(this.minimumIntegerDigits= +this.maximumIntegerDigits)});b(Ma,"getMinimumIntegerDigits$",function(){return this.minimumIntegerDigits});b(Ma,"setMinimumIntegerDigits$I",function(a){this.minimumIntegerDigits=Math.max(0,a);this.minimumIntegerDigits>this.maximumIntegerDigits&&(this.maximumIntegerDigits=this.minimumIntegerDigits)});b(Ma,"getMaximumFractionDigits$",function(){return this.maximumFractionDigits});b(Ma,"setMaximumFractionDigits$I",function(a){this.maximumFractionDigits=Math.max(0,a);this.maximumFractionDigits=e?a:l(a.getClass$().getComponentType$(),e),b=this.iterator$(),d=0;dd&&(a[d]=null)}return a}e[d]=b.next$()}return b.hasNext$()?ze.finishToArray$TTA$java_util_Iterator(e,b):e});b(ze,"finishToArray$TTA$java_util_Iterator",function(a,e){for(var b=a.length;e.hasNext$();){var d=a.length;if(b==d){var h=d+(d>>1)+1;0a)throw f(pm(3).c$$S,["Required array size too large"]);return 2147483639a||a>this.size$())throw f(g("IndexOutOfBoundsException").c$$S,[lp.outOfBoundsMsg$I.apply(this,[a])]);},lp);b(Ud,"outOfBoundsMsg$I",function(a){return"Index: "+a+", Size: "+this.size$()},lp);var Gj=j($r.AbstractList,"Itr",function(a){m(this,a,!0,Gj)},null,"java.util.Iterator");Gj.$clinit$= +function(){g(Gj,1)};b(Gj,"$init0$",function(){var a;(a=Gj.superclazz)&&(a=a.$init0$)&&a.apply(this);this.expectedModCount=this.lastRet=this.cursor=0},1);b(Gj,"$init$",function(){this.cursor=0;this.lastRet=-1;this.expectedModCount=this.this$0.modCount},1);b(Gj,"hasNext$",function(){return this.cursor!=this.b$["java.util.AbstractCollection"].size$.apply(this.b$["java.util.AbstractCollection"],[])});b(Gj,"next$",function(){this.checkForComodification$();try{var a=this.cursor,e=this.b$["java.util.AbstractList"].get$I.apply(this.b$["java.util.AbstractList"], +[a]);this.lastRet=a;this.cursor=a+1;return e}catch(b){if(A(b,"IndexOutOfBoundsException"))throw this.checkForComodification$(),f(g("java.util.NoSuchElementException"));throw b;}});b(Gj,"remove$",function(){if(0>this.lastRet)throw f(g("IllegalStateException"));this.checkForComodification$();try{this.b$["java.util.AbstractList"].remove$I.apply(this.b$["java.util.AbstractList"],[this.lastRet]),this.lastRet +this.lastRet)throw f(g("IllegalStateException"));this.checkForComodification$();try{this.b$["java.util.AbstractList"].set$I$TE.apply(this.b$["java.util.AbstractList"],[this.lastRet,a]),this.expectedModCount=this.this$0.modCount}catch(e){if(A(e,"IndexOutOfBoundsException"))throw f(g("java.util.ConcurrentModificationException"));throw e;}});b(gi,["add$TE"],function(a){this.checkForComodification$();try{var e=this.cursor;this.b$["java.util.AbstractList"].add$I$TE.apply(this.b$["java.util.AbstractList"], +[e,a]);this.lastRet=-1;this.cursor=e+1;this.expectedModCount=this.this$0.modCount}catch(b){if(A(b,"IndexOutOfBoundsException"))throw f(g("java.util.ConcurrentModificationException"));throw b;}});b(gi);n("3.2.4.07");var uf=java.util,bs=[[0,"java.util.AbstractSet","java.util.AbstractCollection","StringBuilder"]],cs=function(a){return bs[a]||(bs[a]=g(bs[0][a]))},de=j(uf,"AbstractMap",function(){m(this,arguments,0,de)},null,"java.util.Map");de.$clinit$=function(){g(de,1)};b(de,"$init0$",function(){var a; +(a=de.superclazz)&&(a=a.$init0$)&&a.apply(this);this.values=this.keySet=null},1);b(de,"$init$",function(){},1);b(de,"c$",function(){de.$init$.apply(this)},1);b(de,"size$",function(){return this.entrySet$().size$()});b(de,"isEmpty$",function(){return 0==this.size$()});b(de,"containsValue$O",function(a){var e=this.entrySet$().iterator$();if(null==a)for(;e.hasNext$();){var b=e.next$();if(null==b.getValue$())return!0}else for(;e.hasNext$();)if(b=e.next$(),a.equals$O(b.getValue$()))return!0;return!1}); +b(de,"containsKey$O",function(a){var e=this.entrySet$().iterator$();if(null==a)for(;e.hasNext$();){var b=e.next$();if(null==b.getKey$())return!0}else for(;e.hasNext$();)if(b=e.next$(),a.equals$O(b.getKey$()))return!0;return!1});b(de,"get$O",function(a){var e=this.entrySet$().iterator$();if(null==a)for(;e.hasNext$();){var b=e.next$();if(null==b.getKey$())return b.getValue$()}else for(;e.hasNext$();)if(b=e.next$(),a.equals$O(b.getKey$()))return b.getValue$();return null});b(de,["put$TK$TV"],function(){throw f(g("UnsupportedOperationException")); +});b(de,"remove$O",function(a){var e=this.entrySet$().iterator$(),b=null;if(null==a)for(;null==b&&e.hasNext$();){var d=e.next$();null==d.getKey$()&&(b=d)}else for(;null==b&&e.hasNext$();)d=e.next$(),a.equals$O(d.getKey$())&&(b=d);a=null;null!=b&&(a=b.getValue$(),e.remove$());return a});b(de,"putAll$java_util_Map",function(a){var e;for(a=a.entrySet$().iterator$();a.hasNext$()&&(e=a.next$(),1);)this.put$TK$TV(e.getKey$(),e.getValue$())});b(de,"clear$",function(){this.entrySet$().clear$()});b(de,"keySet$", +function(){if(null==this.keySet){if(!uf.AbstractMap$1){var a=j(uf,"AbstractMap$1",function(e){m(this,e,1,a)},g("java.util.AbstractSet"),null,1);a.$clinit$=function(){g(a,1)};b(a,"$init$",function(){},1);b(a,"iterator$",function(){if(!uf.AbstractMap$1$1){var a=j(uf,"AbstractMap$1$1",function(b){m(this,b,1,a)},null,"java.util.Iterator",1);a.$clinit$=function(){g(a,1)};b(a,"$init0$",function(){var b;(b=a.superclazz)&&(b=b.$init0$)&&b.apply(this);this.i=null},1);b(a,"$init$",function(){this.i=this.b$["java.util.AbstractMap"].entrySet$.apply(this.b$["java.util.AbstractMap"], +[]).iterator$()},1);b(a,"hasNext$",function(){return this.i.hasNext$()});b(a,"next$",function(){return this.i.next$().getKey$()});b(a,"remove$",function(){this.i.remove$()})}return f(uf.AbstractMap$1$1.$init$,[this,null])});b(a,"size$",function(){return this.b$["java.util.AbstractMap"].size$.apply(this.b$["java.util.AbstractMap"],[])});b(a,"isEmpty$",function(){return this.b$["java.util.AbstractMap"].isEmpty$.apply(this.b$["java.util.AbstractMap"],[])});b(a,"clear$",function(){this.b$["java.util.AbstractMap"].clear$.apply(this.b$["java.util.AbstractMap"], +[])});b(a,"contains$O",function(a){return this.b$["java.util.AbstractMap"].containsKey$O.apply(this.b$["java.util.AbstractMap"],[a])})}this.keySet=f(cs(1),[this,null],uf.AbstractMap$1)}return this.keySet});b(de,"values$",function(){if(null==this.values){if(!uf.AbstractMap$2){var a=j(uf,"AbstractMap$2",function(e){m(this,e,1,a)},g("java.util.AbstractCollection"),null,1);a.$clinit$=function(){g(a,1)};b(a,"$init$",function(){},1);b(a,"iterator$",function(){if(!uf.AbstractMap$2$1){var a=j(uf,"AbstractMap$2$1", +function(b){m(this,b,1,a)},null,"java.util.Iterator",1);a.$clinit$=function(){g(a,1)};b(a,"$init0$",function(){var b;(b=a.superclazz)&&(b=b.$init0$)&&b.apply(this);this.i=null},1);b(a,"$init$",function(){this.i=this.b$["java.util.AbstractMap"].entrySet$.apply(this.b$["java.util.AbstractMap"],[]).iterator$()},1);b(a,"hasNext$",function(){return this.i.hasNext$()});b(a,"next$",function(){return this.i.next$().getValue$()});b(a,"remove$",function(){this.i.remove$()})}return f(uf.AbstractMap$2$1.$init$, +[this,null])});b(a,"size$",function(){return this.b$["java.util.AbstractMap"].size$.apply(this.b$["java.util.AbstractMap"],[])});b(a,"isEmpty$",function(){return this.b$["java.util.AbstractMap"].isEmpty$.apply(this.b$["java.util.AbstractMap"],[])});b(a,"clear$",function(){this.b$["java.util.AbstractMap"].clear$.apply(this.b$["java.util.AbstractMap"],[])});b(a,"contains$O",function(a){return this.b$["java.util.AbstractMap"].containsValue$O.apply(this.b$["java.util.AbstractMap"],[a])})}this.values= +f(cs(2),[this,null],uf.AbstractMap$2)}return this.values});b(de,"equals$O",function(a){if(a===this)return!0;if(!k(a,"java.util.Map")||a.size$()!=this.size$())return!1;try{for(var e=this.entrySet$().iterator$();e.hasNext$();){var b=e.next$(),d=b.getKey$(),h=b.getValue$();if(null==h){if(!(null==a.get$O(d)&&a.containsKey$O(d)))return!1}else if(!h.equals$O(a.get$O(d)))return!1}}catch(f){if(A(f,"ClassCastException")||A(f,"NullPointerException"))return!1;throw f;}return!0});b(de,"hashCode$",function(){for(var a= +0,e=this.entrySet$().iterator$();e.hasNext$();)a+=e.next$().hashCode$();return a});b(de,"toString",function(){var a=this.entrySet$().iterator$();if(!a.hasNext$())return"{}";var e=f(cs(3));for(e.append$C("{");;){var b=a.next$(),d=b.getKey$(),b=b.getValue$();e.append$O(d===this?"(this Map)":d);e.append$C("=");e.append$O(b===this?"(this Map)":b);if(!a.hasNext$())return e.append$C("}").toString();e.append$C(",").append$C(" ")}});b(de,"clone$",function(){var a=we(this);a.keySet=null;a.values=null;return a}); +b(de,"eq$O$O",function(a,e){return null==a?null==e:a.equals$O(e)},1);var lg=j(uf.AbstractMap,"SimpleEntry",function(a){m(this,a,!1,lg)},null,[["java.util.Map","java.util.Map.Entry"],"java.io.Serializable"]);lg.$clinit$=function(){g(lg,1)};b(lg,"$init0$",function(){var a;(a=lg.superclazz)&&(a=a.$init0$)&&a.apply(this);this.value=this.key=null},1);b(lg,"$init$",function(){},1);b(lg,["c$$TK$TV"],function(a,e){lg.$init$.apply(this);this.key=a;this.value=e},1);b(lg,"c$$java_util_Map_Entry",function(a){lg.$init$.apply(this); +this.key=a.getKey$();this.value=a.getValue$()},1);b(lg,"getKey$",function(){return this.key});b(lg,"getValue$",function(){return this.value});b(lg,["setValue$TV"],function(a){var e=this.value;this.value=a;return e});b(lg,"equals$O",function(a){return!k(a,"java.util.Map.Entry")?!1:uf.AbstractMap.eq$O$O(this.key,a.getKey$())&&uf.AbstractMap.eq$O$O(this.value,a.getValue$())});b(lg,"hashCode$",function(){return(null==this.key?0:this.key.hashCode$())^(null==this.value?0:this.value.hashCode$())});b(lg, +"toString",function(){return this.key+"="+this.value});b(lg);var mg=j(uf.AbstractMap,"SimpleImmutableEntry",function(a){m(this,a,!1,mg)},null,[["java.util.Map","java.util.Map.Entry"],"java.io.Serializable"]);mg.$clinit$=function(){g(mg,1)};b(mg,"$init0$",function(){var a;(a=mg.superclazz)&&(a=a.$init0$)&&a.apply(this);this.value=this.key=null},1);b(mg,"$init$",function(){},1);b(mg,["c$$TK$TV"],function(a,e){mg.$init$.apply(this);this.key=a;this.value=e},1);b(mg,"c$$java_util_Map_Entry",function(a){mg.$init$.apply(this); +this.key=a.getKey$();this.value=a.getValue$()},1);b(mg,"getKey$",function(){return this.key});b(mg,"getValue$",function(){return this.value});b(mg,["setValue$TV"],function(){throw f(g("UnsupportedOperationException"));});b(mg,"equals$O",function(a){return!k(a,"java.util.Map.Entry")?!1:uf.AbstractMap.eq$O$O(this.key,a.getKey$())&&uf.AbstractMap.eq$O$O(this.value,a.getValue$())});b(mg,"hashCode$",function(){return(null==this.key?0:this.key.hashCode$())^(null==this.value?0:this.value.hashCode$())}); +b(mg,"toString",function(){return this.key+"="+this.value});b(mg);n("3.2.4.07");var Hj=j(java.util,"AbstractSequentialList",null,"java.util.AbstractList");Hj.$clinit$=function(){g(Hj,1)};b(Hj,"$init$",function(){},1);b(Hj,"c$",function(){S(Hj,this,1)},1);b(Hj,"get$I",function(a){try{return this.listIterator$I(a).next$()}catch(e){if(A(e,"java.util.NoSuchElementException"))throw f(g("IndexOutOfBoundsException").c$$S,["Index: "+a]);throw e;}});b(Hj,"set$I$TE",function(a,e){try{var b=this.listIterator$I(a), +d=b.next$();b.set$TE(e);return d}catch(h){if(A(h,"java.util.NoSuchElementException"))throw f(g("IndexOutOfBoundsException").c$$S,["Index: "+a]);throw h;}});b(Hj,"add$I$TE",function(a,e){try{this.listIterator$I(a).add$TE(e)}catch(b){if(A(b,"java.util.NoSuchElementException"))throw f(g("IndexOutOfBoundsException").c$$S,["Index: "+a]);throw b;}});b(Hj,"remove$I",function(a){try{var e=this.listIterator$I(a),b=e.next$();e.remove$();return b}catch(d){if(A(d,"java.util.NoSuchElementException"))throw f(g("IndexOutOfBoundsException").c$$S, +["Index: "+a]);throw d;}});b(Hj,"addAll$I$java_util_Collection",function(a,e){try{for(var b=!1,d=this.listIterator$I(a),h=e.iterator$();h.hasNext$();)d.add$TE(h.next$()),b=!0;return b}catch(s){if(A(s,"java.util.NoSuchElementException"))throw f(g("IndexOutOfBoundsException").c$$S,["Index: "+a]);throw s;}});b(Hj,"iterator$",function(){return this.listIterator$()});n("3.2.4.07");var ds=[[0,"java.util.Objects"]],qm=j(java.util,"AbstractSet",null,"java.util.AbstractCollection","java.util.Set");qm.$clinit$= +function(){g(qm,1)};b(qm,"$init$",function(){},1);b(qm,"c$",function(){S(qm,this,1)},1);b(qm,"equals$O",function(a){if(a===this)return!0;if(!k(a,"java.util.Set")||a.size$()!=this.size$())return!1;try{return this.containsAll$java_util_Collection(a)}catch(e){if(A(e,"ClassCastException")||A(e,"NullPointerException"))return!1;throw e;}});b(qm,"hashCode$",function(){for(var a=0,e=this.iterator$();e.hasNext$();){var b=e.next$();null!=b&&(a+=b.hashCode$())}return a});b(qm,"removeAll$java_util_Collection", +function(a){(ds[1]||(ds[1]=g(ds[0][1]))).requireNonNull$TT(a);var e=!1;if(this.size$()>a.size$())for(var b=a.iterator$();b.hasNext$();)e|=this.remove$O(b.next$());else for(b=this.iterator$();b.hasNext$();)a.contains$O(b.next$())&&(b.remove$(),e=!0);return e});n("3.2.4.07");var zl=java.util,hb={},dq={},es=[[0,"java.util.Objects",["java.util.ArrayList",".ArrayListSpliterator"],"java.util.Arrays","OutOfMemoryError","InternalError",["java.util.ArrayList",".ListItr"],["java.util.ArrayList",".Itr"],["java.util.ArrayList", +".SubList"],"java.util.BitSet"]],me=function(a){return es[a]||(es[a]=g(es[0][a]))},za=j(zl,"ArrayList",function(){m(this,arguments,0,za)},"java.util.AbstractList",["java.util.List","java.util.RandomAccess","Cloneable","java.io.Serializable"]);za.EMPTY_ELEMENTDATA=null;za.DEFAULTCAPACITY_EMPTY_ELEMENTDATA=null;za.$clinit$=function(){g(za,1);za.EMPTY_ELEMENTDATA=l(java.lang.Object,-1,[]);za.DEFAULTCAPACITY_EMPTY_ELEMENTDATA=l(java.lang.Object,-1,[])};b(za,"$init0$",function(){var a;(a=za.superclazz)&& +(a=a.$init0$)&&a.apply(this);this.elementData=null;this.size=0},1);b(za,"$init$",function(){},1);b(za,"c$$I",function(a){S(za,this,1);if(0(this.elementData!==za.DEFAULTCAPACITY_EMPTY_ELEMENTDATA?0:10)&& +hb.ensureExplicitCapacity$I.apply(this,[a])});b(za,"ensureCapacityInternal$I",function(a){this.elementData===za.DEFAULTCAPACITY_EMPTY_ELEMENTDATA&&(a=Math.max(10,a));hb.ensureExplicitCapacity$I.apply(this,[a])},hb);b(za,"ensureExplicitCapacity$I",function(a){this.modCount++;0>1);0>e-a&&(e=a);0a)throw f(me(4));return 2147483639this.size&&(a[this.size]=null);return a});b(za,"elementData$I",function(a){return this.elementData[a]});b(za,"get$I",function(a){hb.rangeCheck$I.apply(this,[a]);return this.elementData$I(a)});b(za,"set$I$TE",function(a,e){hb.rangeCheck$I.apply(this,[a]);var b=this.elementData$I(a);this.elementData[a]=e;return b});b(za,["add$TE"],function(a){hb.ensureCapacityInternal$I.apply(this,[this.size+1]);this.elementData[this.size++]= +a;return!0});b(za,"add$I$TE",function(a,e){hb.rangeCheckForAdd$I.apply(this,[a]);hb.ensureCapacityInternal$I.apply(this,[this.size+1]);System.arraycopy$O$I$O$I$I(this.elementData,a,this.elementData,a+1,this.size-a);this.elementData[a]=e;this.size++});b(za,"remove$I",function(a){hb.rangeCheck$I.apply(this,[a]);this.modCount++;var e=this.elementData$I(a),b=this.size-a-1;0=this.size)throw f(g("IndexOutOfBoundsException").c$$S,[hb.outOfBoundsMsg$I.apply(this,[a])]);},hb);b(za,"rangeCheckForAdd$I",function(a){if(a>this.size||0>a)throw f(g("IndexOutOfBoundsException").c$$S, +[hb.outOfBoundsMsg$I.apply(this,[a])]);},hb);b(za,"outOfBoundsMsg$I",function(a){return"Index: "+a+", Size: "+this.size},hb);b(za,"removeAll$java_util_Collection",function(a){me(1).requireNonNull$TT(a);return hb.batchRemove$java_util_Collection$Z.apply(this,[a,!1])});b(za,"retainAll$java_util_Collection",function(a){me(1).requireNonNull$TT(a);return hb.batchRemove$java_util_Collection$Z.apply(this,[a,!0])});b(za,"batchRemove$java_util_Collection$Z",function(a,e){var b=this.elementData,d=0,h=0,f=!1; +try{for(;da||a>this.size)throw f(g("IndexOutOfBoundsException").c$$S,["Index: "+a]);return f(me(6).c$$I,[this,null,a])});b(za,"listIterator$",function(){return f(me(6).c$$I,[this,null,0])});b(za, +"iterator$",function(){return f(me(7),[this,null])});b(za,"subList$I$I",function(a,e){za.subListRangeCheck$I$I$I(a,e,this.size);return f(me(8).c$$java_util_AbstractList$I$I$I,[this,null,this,0,a,e])});b(za,"subListRangeCheck$I$I$I",function(a,e,b){if(0>a)throw f(g("IndexOutOfBoundsException").c$$S,["fromIndex = "+a]);if(e>b)throw f(g("IndexOutOfBoundsException").c$$S,["toIndex = "+e]);if(a>e)throw f(g("IllegalArgumentException").c$$S,["fromIndex("+a+") > toIndex("+e+")"]);},1);b(za,"forEach$java_util_function_Consumer", +function(a){me(1).requireNonNull$TT(a);for(var e=this.modCount,b=this.elementData,d=this.size,h=0;this.modCount==e&&h=this.this$0.size)throw f(g("java.util.NoSuchElementException"));var e=this.b$["java.util.ArrayList"].elementData;if(a>=e.length)throw f(g("java.util.ConcurrentModificationException")); +this.cursor=a+1;return e[this.lastRet=a]});b($i,"remove$",function(){if(0>this.lastRet)throw f(g("IllegalStateException"));this.checkForComodification$();try{this.b$["java.util.ArrayList"].remove$I.apply(this.b$["java.util.ArrayList"],[this.lastRet]),this.cursor=this.lastRet,this.lastRet=-1,this.expectedModCount=this.this$0.modCount}catch(a){if(A(a,"IndexOutOfBoundsException"))throw f(g("java.util.ConcurrentModificationException"));throw a;}});b($i,"forEachRemaining$java_util_function_Consumer",function(a){me(1).requireNonNull$TT(a); +var e=this.b$["java.util.ArrayList"].size,b=this.cursor;if(!(b>=e)){var d=this.b$["java.util.ArrayList"].elementData;if(b>=d.length)throw f(g("java.util.ConcurrentModificationException"));for(;b!=e&&this.this$0.modCount==this.expectedModCount;)a.accept$(d[b++]);this.cursor=b;this.lastRet=b-1;this.checkForComodification$()}});b($i,"checkForComodification$",function(){if(this.this$0.modCount!=this.expectedModCount)throw f(g("java.util.ConcurrentModificationException"));});b($i);var Fh=j(zl.ArrayList, +"ListItr",function(a){m(this,a,!0,Fh)},["java.util.ArrayList",".Itr"],"java.util.ListIterator");Fh.$clinit$=function(){g(Fh,1)};b(Fh,"$init$",function(){},1);b(Fh,"c$$I",function(a){Fh.superclazz.c$.apply(this,[]);Fh.$init$.apply(this);this.cursor=a},1);b(Fh,"hasPrevious$",function(){return 0!=this.cursor});b(Fh,"nextIndex$",function(){return this.cursor});b(Fh,"previousIndex$",function(){return this.cursor-1});b(Fh,"previous$",function(){this.checkForComodification$();var a=this.cursor-1;if(0>a)throw f(g("java.util.NoSuchElementException")); +var e=this.b$["java.util.ArrayList"].elementData;if(a>=e.length)throw f(g("java.util.ConcurrentModificationException"));this.cursor=a;return e[this.lastRet=a]});b(Fh,["set$TE"],function(a){if(0>this.lastRet)throw f(g("IllegalStateException"));this.checkForComodification$();try{this.b$["java.util.ArrayList"].set$I$TE.apply(this.b$["java.util.ArrayList"],[this.lastRet,a])}catch(e){if(A(e,"IndexOutOfBoundsException"))throw f(g("java.util.ConcurrentModificationException"));throw e;}});b(Fh,["add$TE"], +function(a){this.checkForComodification$();try{var e=this.cursor;this.b$["java.util.ArrayList"].add$I$TE.apply(this.b$["java.util.ArrayList"],[e,a]);this.cursor=e+1;this.lastRet=-1;this.expectedModCount=this.this$0.modCount}catch(b){if(A(b,"IndexOutOfBoundsException"))throw f(g("java.util.ConcurrentModificationException"));throw b;}});b(Fh);var Gd=j(zl.ArrayList,"SubList",function(a){m(this,a,!0,Gd)},"java.util.AbstractList","java.util.RandomAccess");Gd.$clinit$=function(){g(Gd,1)};b(Gd,"$init0$", +function(){var a;(a=Gd.superclazz)&&(a=a.$init0$)&&a.apply(this);this.parent=null;this.size=this.offset=this.parentOffset=0},1);b(Gd,"$init$",function(){},1);b(Gd,"c$$java_util_AbstractList$I$I$I",function(a,e,b,d){S(Gd,this,1);this.parent=a;this.parentOffset=b;this.offset=e+b;this.size=d-b;this.modCount=this.b$["java.util.ArrayList"].modCount},1);b(Gd,"set$I$TE",function(a,e){hb.rangeCheck$I.apply(this,[a]);hb.checkForComodification.apply(this,[]);var b=this.b$["java.util.ArrayList"].elementData$I.apply(this.b$["java.util.ArrayList"], +[this.offset+a]);this.b$["java.util.ArrayList"].elementData[this.offset+a]=e;return b});b(Gd,"get$I",function(a){hb.rangeCheck$I.apply(this,[a]);hb.checkForComodification.apply(this,[]);return this.b$["java.util.ArrayList"].elementData$I.apply(this.b$["java.util.ArrayList"],[this.offset+a])});b(Gd,"size$",function(){hb.checkForComodification.apply(this,[]);return this.size});b(Gd,"add$I$TE",function(a,e){hb.rangeCheckForAdd$I.apply(this,[a]);hb.checkForComodification.apply(this,[]);this.parent.add$I$TE(this.parentOffset+ +a,e);this.modCount=this.parent.modCount;this.size++});b(Gd,"remove$I",function(a){hb.rangeCheck$I.apply(this,[a]);hb.checkForComodification.apply(this,[]);a=this.parent.remove$I(this.parentOffset+a);this.modCount=this.parent.modCount;this.size--;return a});b(Gd,"removeRange$I$I",function(a,e){hb.checkForComodification.apply(this,[]);this.parent.removeRange$I$I(this.parentOffset+a,this.parentOffset+e);this.modCount=this.parent.modCount;this.size-=e-a});b(Gd,"addAll$java_util_Collection",function(a){return this.addAll$I$java_util_Collection(this.size, +a)});b(Gd,"addAll$I$java_util_Collection",function(a,e){hb.rangeCheckForAdd$I.apply(this,[a]);var b=e.size$();if(0==b)return!1;hb.checkForComodification.apply(this,[]);this.parent.addAll$I$java_util_Collection(this.parentOffset+a,e);this.modCount=this.parent.modCount;this.size+=b;return!0});b(Gd,"iterator$",function(){return this.listIterator$()});b(Gd,"listIterator$I",function(a){hb.checkForComodification.apply(this,[]);hb.rangeCheckForAdd$I.apply(this,[a]);var e=this.offset;if(!zl.ArrayList$SubList$1){var c= +j(zl,"ArrayList$SubList$1",function(a){m(this,a,1,c)},null,"java.util.ListIterator",1);c.$clinit$=function(){g(c,1)};b(c,"$init0$",function(){var a;(a=c.superclazz)&&(a=a.$init0$)&&a.apply(this);this.expectedModCount=this.lastRet=this.cursor=0},1);b(c,"$init$",function(){this.cursor=this.$finals$.index;this.lastRet=-1;this.expectedModCount=this.b$["java.util.ArrayList"].modCount},1);b(c,"hasNext$",function(){return this.cursor!=this.b$["java.util.ArrayList.SubList"].size});b(c,"next$",function(){this.checkForComodification$(); +var a=this.cursor;if(a>=this.b$["java.util.ArrayList.SubList"].size)throw f(g("java.util.NoSuchElementException"));var e=this.b$["java.util.ArrayList"].elementData;if(this.$finals$.offset+a>=e.length)throw f(g("java.util.ConcurrentModificationException"));this.cursor=a+1;return e[this.$finals$.offset+(this.lastRet=a)]});b(c,"hasPrevious$",function(){return 0!=this.cursor});b(c,"previous$",function(){this.checkForComodification$();var a=this.cursor-1;if(0>a)throw f(g("java.util.NoSuchElementException")); +var e=this.b$["java.util.ArrayList"].elementData;if(this.$finals$.offset+a>=e.length)throw f(g("java.util.ConcurrentModificationException"));this.cursor=a;return e[this.$finals$.offset+(this.lastRet=a)]});b(c,"forEachRemaining$java_util_function_Consumer",function(a){me(1).requireNonNull$TT(a);var e=this.b$["java.util.ArrayList.SubList"].size,b=this.cursor;if(!(b>=e)){var c=this.b$["java.util.ArrayList"].elementData;if(this.$finals$.offset+b>=c.length)throw f(g("java.util.ConcurrentModificationException")); +for(;b!=e&&this.b$["java.util.ArrayList.SubList"].modCount==this.expectedModCount;)a.accept$(c[this.$finals$.offset+b++]);this.lastRet=this.cursor=b;this.checkForComodification$()}});b(c,"nextIndex$",function(){return this.cursor});b(c,"previousIndex$",function(){return this.cursor-1});b(c,"remove$",function(){if(0>this.lastRet)throw f(g("IllegalStateException"));this.checkForComodification$();try{this.b$["java.util.ArrayList.SubList"].remove$I.apply(this.b$["java.util.ArrayList.SubList"],[this.lastRet]), +this.cursor=this.lastRet,this.lastRet=-1,this.expectedModCount=this.b$["java.util.ArrayList"].modCount}catch(a){if(A(a,"IndexOutOfBoundsException"))throw f(g("java.util.ConcurrentModificationException"));throw a;}});b(c,["set$TE"],function(a){if(0>this.lastRet)throw f(g("IllegalStateException"));this.checkForComodification$();try{this.b$["java.util.ArrayList"].set$I$TE.apply(this.b$["java.util.ArrayList"],[this.$finals$.offset+this.lastRet,a])}catch(e){if(A(e,"IndexOutOfBoundsException"))throw f(g("java.util.ConcurrentModificationException")); +throw e;}});b(c,["add$TE"],function(a){this.checkForComodification$();try{var e=this.cursor;this.b$["java.util.ArrayList.SubList"].add$I$TE.apply(this.b$["java.util.ArrayList.SubList"],[e,a]);this.cursor=e+1;this.lastRet=-1;this.expectedModCount=this.b$["java.util.ArrayList"].modCount}catch(b){if(A(b,"IndexOutOfBoundsException"))throw f(g("java.util.ConcurrentModificationException"));throw b;}});b(c,"checkForComodification$",function(){if(this.expectedModCount!=this.b$["java.util.ArrayList"].modCount)throw f(g("java.util.ConcurrentModificationException")); +})}return f(zl.ArrayList$SubList$1.$init$,[this,{index:a,offset:e}])});b(Gd,"subList$I$I",function(a,e){zl.ArrayList.subListRangeCheck$I$I$I(a,e,this.size);return f(Gd.c$$java_util_AbstractList$I$I$I,[this,null,this,this.offset,a,e])});b(Gd,"rangeCheck$I",function(a){if(0>a||a>=this.size)throw f(g("IndexOutOfBoundsException").c$$S,[hb.outOfBoundsMsg$I.apply(this,[a])]);},hb);b(Gd,"rangeCheckForAdd$I",function(a){if(0>a||a>this.size)throw f(g("IndexOutOfBoundsException").c$$S,[hb.outOfBoundsMsg$I.apply(this, +[a])]);},hb);b(Gd,"outOfBoundsMsg$I",function(a){return"Index: "+a+", Size: "+this.size},hb);b(Gd,"checkForComodification",function(){if(this.b$["java.util.ArrayList"].modCount!=this.modCount)throw f(g("java.util.ConcurrentModificationException"));},hb);b(Gd,"spliterator$",function(){hb.checkForComodification.apply(this,[]);return f(me(2).c$$java_util_ArrayList$I$I$I,[this.b$["java.util.ArrayList"],this.offset,this.offset+this.size,this.modCount])});b(Gd);var Eg=j(zl.ArrayList,"ArrayListSpliterator", +function(a){m(this,a,!1,Eg)},null,"java.util.Spliterator");Eg.$clinit$=function(){g(Eg,1)};b(Eg,"$init0$",function(){var a;(a=Eg.superclazz)&&(a=a.$init0$)&&a.apply(this);this.list=null;this.expectedModCount=this.fence=this.index=0},1);b(Eg,"$init$",function(){},1);b(Eg,"c$$java_util_ArrayList$I$I$I",function(a,e,b,d){Eg.$init$.apply(this);this.list=a;this.index=e;this.fence=b;this.expectedModCount=d},1);b(Eg,"getFence",function(){var a;if(0>(a=this.fence))null==(a=this.list)?a=this.fence=0:(this.expectedModCount= +a.modCount,a=this.fence=a.size);return a},dq);b(Eg,"trySplit$",function(){var a=dq.getFence.apply(this,[]),e=this.index,a=e+a>>>1;return e>=a?null:f(Eg.c$$java_util_ArrayList$I$I$I,[this.list,e,this.index=a,this.expectedModCount])});b(Eg,"tryAdvance$java_util_function_Consumer",function(a){if(null==a)throw f(g("NullPointerException"));var e=dq.getFence.apply(this,[]),b=this.index;if(b(b=this.fence)?(d=h.modCount,b=h.size):d=this.expectedModCount,0<=(e=this.index)&&(this.index=b)<=s.length){for(;eb)throw f(g("IllegalArgumentException").c$$S,["fromIndex("+e+") > toIndex("+ +b+")"]);if(0>e)throw f(g("ArrayIndexOutOfBoundsException").c$$I,[e]);if(b>a)throw f(g("ArrayIndexOutOfBoundsException").c$$I,[b]);},1);b(t,"sort$IA",function(a){L(4).sort$IA$I$I$IA$I$I(a,0,a.length-1,null,0,0)},1);b(t,"sort$IA$I$I",function(a,e,b){t.rangeCheck$I$I$I(a.length,e,b);L(4).sort$IA$I$I$IA$I$I(a,e,b-1,null,0,0)},1);b(t,"sort$JA",function(a){L(4).sort$JA$I$I$JA$I$I(a,0,a.length-1,null,0,0)},1);b(t,"sort$JA$I$I",function(a,e,b){t.rangeCheck$I$I$I(a.length,e,b);L(4).sort$JA$I$I$JA$I$I(a,e, +b-1,null,0,0)},1);b(t,"sort$HA",function(a){L(4).sort$HA$I$I$HA$I$I(a,0,a.length-1,null,0,0)},1);b(t,"sort$HA$I$I",function(a,e,b){t.rangeCheck$I$I$I(a.length,e,b);L(4).sort$HA$I$I$HA$I$I(a,e,b-1,null,0,0)},1);b(t,"sort$CA",function(a){L(4).sort$CA$I$I$CA$I$I(a,0,a.length-1,null,0,0)},1);b(t,"sort$CA$I$I",function(a,e,b){t.rangeCheck$I$I$I(a.length,e,b);L(4).sort$CA$I$I$CA$I$I(a,e,b-1,null,0,0)},1);b(t,"sort$BA",function(a){L(4).sort$BA$I$I(a,0,a.length-1)},1);b(t,"sort$BA$I$I",function(a,e,b){t.rangeCheck$I$I$I(a.length, +e,b);L(4).sort$BA$I$I(a,e,b-1)},1);b(t,"sort$FA",function(a){L(4).sort$FA$I$I$FA$I$I(a,0,a.length-1,null,0,0)},1);b(t,"sort$FA$I$I",function(a,e,b){t.rangeCheck$I$I$I(a.length,e,b);L(4).sort$FA$I$I$FA$I$I(a,e,b-1,null,0,0)},1);b(t,"sort$DA",function(a){L(4).sort$DA$I$I$DA$I$I(a,0,a.length-1,null,0,0)},1);b(t,"sort$DA$I$I",function(a,e,b){t.rangeCheck$I$I$I(a.length,e,b);L(4).sort$DA$I$I$DA$I$I(a,e,b-1,null,0,0)},1);b(t,"parallelSort$BA",function(a){var e=a.length,b,d;8192>=e||1==(b=L(5).getCommonPoolParallelism$())? +L(4).sort$BA$I$I(a,0,e-1):f(L(6).c$$java_util_concurrent_CountedCompleter$BA$BA$I$I$I$I,[null,a,l(Byte.TYPE,[e]),0,e,0,8192>=(d=e/(b<<2)|0)?8192:d]).invoke$()},1);b(t,"parallelSort$BA$I$I",function(a,e,b){t.rangeCheck$I$I$I(a.length,e,b);var d=b-e,h,g;8192>=d||1==(h=L(5).getCommonPoolParallelism$())?L(4).sort$BA$I$I(a,e,b-1):f(L(6).c$$java_util_concurrent_CountedCompleter$BA$BA$I$I$I$I,[null,a,l(Byte.TYPE,[d]),e,d,0,8192>=(g=d/(h<<2)|0)?8192:g]).invoke$()},1);b(t,"parallelSort$CA",function(a){var e= +a.length,b,d;8192>=e||1==(b=L(5).getCommonPoolParallelism$())?L(4).sort$CA$I$I$CA$I$I(a,0,e-1,null,0,0):f(L(7).c$$java_util_concurrent_CountedCompleter$CA$CA$I$I$I$I,[null,a,l(Character.TYPE,[e]),0,e,0,8192>=(d=e/(b<<2)|0)?8192:d]).invoke$()},1);b(t,"parallelSort$CA$I$I",function(a,e,b){t.rangeCheck$I$I$I(a.length,e,b);var d=b-e,h,g;8192>=d||1==(h=L(5).getCommonPoolParallelism$())?L(4).sort$CA$I$I$CA$I$I(a,e,b-1,null,0,0):f(L(7).c$$java_util_concurrent_CountedCompleter$CA$CA$I$I$I$I,[null,a,l(Character.TYPE, +[d]),e,d,0,8192>=(g=d/(h<<2)|0)?8192:g]).invoke$()},1);b(t,"parallelSort$HA",function(a){var e=a.length,b,d;8192>=e||1==(b=L(5).getCommonPoolParallelism$())?L(4).sort$HA$I$I$HA$I$I(a,0,e-1,null,0,0):f(L(8).c$$java_util_concurrent_CountedCompleter$HA$HA$I$I$I$I,[null,a,l(Short.TYPE,[e]),0,e,0,8192>=(d=e/(b<<2)|0)?8192:d]).invoke$()},1);b(t,"parallelSort$HA$I$I",function(a,e,b){t.rangeCheck$I$I$I(a.length,e,b);var d=b-e,h,g;8192>=d||1==(h=L(5).getCommonPoolParallelism$())?L(4).sort$HA$I$I$HA$I$I(a, +e,b-1,null,0,0):f(L(8).c$$java_util_concurrent_CountedCompleter$HA$HA$I$I$I$I,[null,a,l(Short.TYPE,[d]),e,d,0,8192>=(g=d/(h<<2)|0)?8192:g]).invoke$()},1);b(t,"parallelSort$IA",function(a){var e=a.length,b,d;8192>=e||1==(b=L(5).getCommonPoolParallelism$())?L(4).sort$IA$I$I$IA$I$I(a,0,e-1,null,0,0):f(L(9).c$$java_util_concurrent_CountedCompleter$IA$IA$I$I$I$I,[null,a,l(Integer.TYPE,[e]),0,e,0,8192>=(d=e/(b<<2)|0)?8192:d]).invoke$()},1);b(t,"parallelSort$IA$I$I",function(a,e,b){t.rangeCheck$I$I$I(a.length, +e,b);var d=b-e,h,g;8192>=d||1==(h=L(5).getCommonPoolParallelism$())?L(4).sort$IA$I$I$IA$I$I(a,e,b-1,null,0,0):f(L(9).c$$java_util_concurrent_CountedCompleter$IA$IA$I$I$I$I,[null,a,l(Integer.TYPE,[d]),e,d,0,8192>=(g=d/(h<<2)|0)?8192:g]).invoke$()},1);b(t,"parallelSort$JA",function(a){var e=a.length,b,d;8192>=e||1==(b=L(5).getCommonPoolParallelism$())?L(4).sort$JA$I$I$JA$I$I(a,0,e-1,null,0,0):f(L(10).c$$java_util_concurrent_CountedCompleter$JA$JA$I$I$I$I,[null,a,l(Long.TYPE,[e]),0,e,0,8192>=(d=e/(b<< +2)|0)?8192:d]).invoke$()},1);b(t,"parallelSort$JA$I$I",function(a,e,b){t.rangeCheck$I$I$I(a.length,e,b);var d=b-e,h,g;8192>=d||1==(h=L(5).getCommonPoolParallelism$())?L(4).sort$JA$I$I$JA$I$I(a,e,b-1,null,0,0):f(L(10).c$$java_util_concurrent_CountedCompleter$JA$JA$I$I$I$I,[null,a,l(Long.TYPE,[d]),e,d,0,8192>=(g=d/(h<<2)|0)?8192:g]).invoke$()},1);b(t,"parallelSort$FA",function(a){var e=a.length,b,d;8192>=e||1==(b=L(5).getCommonPoolParallelism$())?L(4).sort$FA$I$I$FA$I$I(a,0,e-1,null,0,0):f(L(11).c$$java_util_concurrent_CountedCompleter$FA$FA$I$I$I$I, +[null,a,l(Float.TYPE,[e]),0,e,0,8192>=(d=e/(b<<2)|0)?8192:d]).invoke$()},1);b(t,"parallelSort$FA$I$I",function(a,e,b){t.rangeCheck$I$I$I(a.length,e,b);var d=b-e,h,g;8192>=d||1==(h=L(5).getCommonPoolParallelism$())?L(4).sort$FA$I$I$FA$I$I(a,e,b-1,null,0,0):f(L(11).c$$java_util_concurrent_CountedCompleter$FA$FA$I$I$I$I,[null,a,l(Float.TYPE,[d]),e,d,0,8192>=(g=d/(h<<2)|0)?8192:g]).invoke$()},1);b(t,"parallelSort$DA",function(a){var e=a.length,b,d;8192>=e||1==(b=L(5).getCommonPoolParallelism$())?L(4).sort$DA$I$I$DA$I$I(a, +0,e-1,null,0,0):f(L(12).c$$java_util_concurrent_CountedCompleter$DA$DA$I$I$I$I,[null,a,l(Double.TYPE,[e]),0,e,0,8192>=(d=e/(b<<2)|0)?8192:d]).invoke$()},1);b(t,"parallelSort$DA$I$I",function(a,e,b){t.rangeCheck$I$I$I(a.length,e,b);var d=b-e,h,g;8192>=d||1==(h=L(5).getCommonPoolParallelism$())?L(4).sort$DA$I$I$DA$I$I(a,e,b-1,null,0,0):f(L(12).c$$java_util_concurrent_CountedCompleter$DA$DA$I$I$I$I,[null,a,l(Double.TYPE,[d]),e,d,0,8192>=(g=d/(h<<2)|0)?8192:g]).invoke$()},1);b(t,"parallelSort$TTA",function(a){var e= +a.length,b,d;8192>=e||1==(b=L(5).getCommonPoolParallelism$())?L(13).sort$TTA$I$I$java_util_Comparator$TTA$I$I(a,0,e,L(14).INSTANCE,null,0,0):f(L(15).c$$java_util_concurrent_CountedCompleter$TTA$TTA$I$I$I$I$java_util_Comparator,[null,a,l(a.getClass$().getComponentType$(),e),0,e,0,8192>=(d=e/(b<<2)|0)?8192:d,L(14).INSTANCE]).invoke$()},1);b(t,"parallelSort$TTA$I$I",function(a,e,b){t.rangeCheck$I$I$I(a.length,e,b);var d=b-e,h,g;8192>=d||1==(h=L(5).getCommonPoolParallelism$())?L(13).sort$TTA$I$I$java_util_Comparator$TTA$I$I(a, +e,b,L(14).INSTANCE,null,0,0):f(L(15).c$$java_util_concurrent_CountedCompleter$TTA$TTA$I$I$I$I$java_util_Comparator,[null,a,l(a.getClass$().getComponentType$(),d),e,d,0,8192>=(g=d/(h<<2)|0)?8192:g,L(14).INSTANCE]).invoke$()},1);b(t,"parallelSort$TTA$java_util_Comparator",function(a,e){null==e&&(e=L(14).INSTANCE);var b=a.length,d,h;8192>=b||1==(d=L(5).getCommonPoolParallelism$())?L(13).sort$TTA$I$I$java_util_Comparator$TTA$I$I(a,0,b,e,null,0,0):f(L(15).c$$java_util_concurrent_CountedCompleter$TTA$TTA$I$I$I$I$java_util_Comparator, +[null,a,l(a.getClass$().getComponentType$(),b),0,b,0,8192>=(h=b/(d<<2)|0)?8192:h,e]).invoke$()},1);b(t,"parallelSort$TTA$I$I$java_util_Comparator",function(a,e,b,d){t.rangeCheck$I$I$I(a.length,e,b);null==d&&(d=L(14).INSTANCE);var h=b-e,g,I;8192>=h||1==(g=L(5).getCommonPoolParallelism$())?L(13).sort$TTA$I$I$java_util_Comparator$TTA$I$I(a,e,b,d,null,0,0):f(L(15).c$$java_util_concurrent_CountedCompleter$TTA$TTA$I$I$I$I$java_util_Comparator,[null,a,l(a.getClass$().getComponentType$(),h),e,h,0,8192>=(I= +h/(g<<2)|0)?8192:I,d]).invoke$()},1);b(t,"sort$OA",function(a){L(17).userRequested?t.legacyMergeSort$OA(a):L(18).sort$OA$I$I$OA$I$I(a,0,a.length,null,0,0)},1);b(t,"legacyMergeSort$OA",function(a){var e=a.clone$();t.mergeSort$OA$OA$I$I$I(e,a,0,a.length,0)},1);b(t,"sort$OA$I$I",function(a,e,b){t.rangeCheck$I$I$I(a.length,e,b);L(17).userRequested?t.legacyMergeSort$OA$I$I(a,e,b):L(18).sort$OA$I$I$OA$I$I(a,e,b,null,0,0)},1);b(t,"legacyMergeSort$OA$I$I",function(a,e,b){var d=t.copyOfRange$TTA$I$I(a,e,b); +t.mergeSort$OA$OA$I$I$I(d,a,e,b,-e)},1);b(t,"mergeSort$OA$OA$I$I$I",function(a,e,b,d,h){var f=d-b;if(7>f)for(h=b;hb&&0>>1;t.mergeSort$OA$OA$I$I$I(e,a,b,j,-h);t.mergeSort$OA$OA$I$I$I(e,a,j,d,-h);if(0>=a[j-1].compareTo$(a[j]))System.arraycopy$O$I$O$I$I(a,b,e,g,f);else{h=g;for(f=j;h=d||b=a[b].compareTo$(a[f])?a[b++]:a[f++]}}},1);b(t,"swap$OA$I$I",function(a,e,b){var d=a[e];a[e]= +a[b];a[b]=d},1);b(t,"sort$TTA$java_util_Comparator",function(a,e){null==e?t.sort$OA(a):L(17).userRequested?t.legacyMergeSort$TTA$java_util_Comparator(a,e):L(13).sort$TTA$I$I$java_util_Comparator$TTA$I$I(a,0,a.length,e,null,0,0)},1);b(t,"legacyMergeSort$TTA$java_util_Comparator",function(a,e){var b=a.clone$();null==e?t.mergeSort$OA$OA$I$I$I(b,a,0,a.length,0):t.mergeSort$OA$OA$I$I$I$java_util_Comparator(b,a,0,a.length,0,e)},1);b(t,"sort$TTA$I$I$java_util_Comparator",function(a,e,b,d){null==d?t.sort$OA$I$I(a, +e,b):(t.rangeCheck$I$I$I(a.length,e,b),L(17).userRequested?t.legacyMergeSort$TTA$I$I$java_util_Comparator(a,e,b,d):L(13).sort$TTA$I$I$java_util_Comparator$TTA$I$I(a,e,b,d,null,0,0))},1);b(t,"legacyMergeSort$TTA$I$I$java_util_Comparator",function(a,e,b,d){var h=t.copyOfRange$TTA$I$I(a,e,b);null==d?t.mergeSort$OA$OA$I$I$I(h,a,e,b,-e):t.mergeSort$OA$OA$I$I$I$java_util_Comparator(h,a,e,b,-e,d)},1);b(t,"mergeSort$OA$OA$I$I$I$java_util_Comparator",function(a,e,b,d,h,f){var g=d-b;if(7>g)for(h=b;hb&&0>>1;t.mergeSort$OA$OA$I$I$I$java_util_Comparator(e,a,b,k,-h,f);t.mergeSort$OA$OA$I$I$I$java_util_Comparator(e,a,k,d,-h,f);if(0>=f.compare$(a[k-1],a[k]))System.arraycopy$O$I$O$I$I(a,b,e,p,g);else{h=p;for(g=k;h=d||b=f.compare$(a[b],a[g])?a[b++]:a[g++]}}},1);b(t,"parallelPrefix$TTA$java_util_function_BinaryOperator",function(a,e){L(1).requireNonNull$TT(e);0>>1,f=a[h];if(fd)b=h-1;else return h}return-(e+1)},1);b(t,"binarySearch$IA$I",function(a,e){return t.binarySearch0$IA$I$I$I(a,0,a.length,e)},1);b(t,"binarySearch$IA$I$I$I",function(a,e,b,d){t.rangeCheck$I$I$I(a.length,e,b);return t.binarySearch0$IA$I$I$I(a,e,b,d)},1);b(t,"binarySearch0$IA$I$I$I",function(a,e,b,d){for(b-=1;e<=b;){var h=e+b>>>1,f=a[h];if(fd)b=h-1;else return h}return-(e+ +1)},1);b(t,"binarySearch$HA$H",function(a,e){return t.binarySearch0$HA$I$I$H(a,0,a.length,e)},1);b(t,"binarySearch$HA$I$I$H",function(a,e,b,d){t.rangeCheck$I$I$I(a.length,e,b);return t.binarySearch0$HA$I$I$H(a,e,b,d)},1);b(t,"binarySearch0$HA$I$I$H",function(a,e,b,d){for(b-=1;e<=b;){var h=e+b>>>1,f=a[h];if(fd)b=h-1;else return h}return-(e+1)},1);b(t,"binarySearch$CA$C",function(a,e){return t.binarySearch0$CA$I$I$C(a,0,a.length,e)},1);b(t,"binarySearch$CA$I$I$C",function(a,e,b,d){t.rangeCheck$I$I$I(a.length, +e,b);return t.binarySearch0$CA$I$I$C(a,e,b,d)},1);b(t,"binarySearch0$CA$I$I$C",function(a,e,b,d){for(b-=1;e<=b;){var h=e+b>>>1,f=a[h];if(fd)b=h-1;else return h}return-(e+1)},1);b(t,"binarySearch$BA$B",function(a,e){return t.binarySearch0$BA$I$I$B(a,0,a.length,(bo[0]=e,bo[0]))},1);b(t,"binarySearch$BA$I$I$B",function(a,e,b,d){t.rangeCheck$I$I$I(a.length,e,b);return t.binarySearch0$BA$I$I$B(a,e,b,(bo[0]=d,bo[0]))},1);b(t,"binarySearch0$BA$I$I$B",function(a,e,b,d){for(b-=1;e<=b;){var h= +e+b>>>1,f=(bo[0]=a[h],bo[0]);if(fd)b=h-1;else return h}return-(e+1)},1);b(t,"binarySearch$DA$D",function(a,e){return t.binarySearch0$DA$I$I$D(a,0,a.length,e)},1);b(t,"binarySearch$DA$I$I$D",function(a,e,b,d){t.rangeCheck$I$I$I(a.length,e,b);return t.binarySearch0$DA$I$I$D(a,e,b,d)},1);b(t,"binarySearch0$DA$I$I$D",function(a,e,b,d){for(b-=1;e<=b;){var h=e+b>>>1,f=a[h];if(fd)b=h-1;else{var f=Double.doubleToLongBits$D(f),g=Double.doubleToLongBits$D(d);if(f==g)return h; +f>>1,f=a[h];if(fd)b=h-1;else{var f=Float.floatToIntBits$F(f),g=Float.floatToIntBits$F(d);if(f==g)return h;f>>1,f=a[h].compareTo$(d);if(0>f)e=h+1;else if(0>>1,g=h.compare$(a[f],d);if(0>g)b=f+1;else if(0h)throw f(g("IllegalArgumentException").c$$S, +[b+" > "+c]);c=d===l(java.lang.Object,-1)?l(java.lang.Object,[h]):l(d.getComponentType$(),h);System.arraycopy$O$I$O$I$I(a,b,c,0,Math.min(a.length-b,h));return c},1);b(t,"copyOfRange$BA$I$I",function(a,b,c){var d=c-b;if(0>d)throw f(g("IllegalArgumentException").c$$S,[b+" > "+c]);c=l(Byte.TYPE,[d]);System.arraycopy$O$I$O$I$I(a,b,c,0,Math.min(a.length-b,d));return c},1);b(t,"copyOfRange$HA$I$I",function(a,b,c){var d=c-b;if(0>d)throw f(g("IllegalArgumentException").c$$S,[b+" > "+c]);c=l(Short.TYPE,[d]); +System.arraycopy$O$I$O$I$I(a,b,c,0,Math.min(a.length-b,d));return c},1);b(t,"copyOfRange$IA$I$I",function(a,b,c){var d=c-b;if(0>d)throw f(g("IllegalArgumentException").c$$S,[b+" > "+c]);c=l(Integer.TYPE,[d]);System.arraycopy$O$I$O$I$I(a,b,c,0,Math.min(a.length-b,d));return c},1);b(t,"copyOfRange$JA$I$I",function(a,b,c){var d=c-b;if(0>d)throw f(g("IllegalArgumentException").c$$S,[b+" > "+c]);c=l(Long.TYPE,[d]);System.arraycopy$O$I$O$I$I(a,b,c,0,Math.min(a.length-b,d));return c},1);b(t,"copyOfRange$CA$I$I", +function(a,b,c){var d=c-b;if(0>d)throw f(g("IllegalArgumentException").c$$S,[b+" > "+c]);c=l(Character.TYPE,[d]);System.arraycopy$O$I$O$I$I(a,b,c,0,Math.min(a.length-b,d));return c},1);b(t,"copyOfRange$FA$I$I",function(a,b,c){var d=c-b;if(0>d)throw f(g("IllegalArgumentException").c$$S,[b+" > "+c]);c=l(Float.TYPE,[d]);System.arraycopy$O$I$O$I$I(a,b,c,0,Math.min(a.length-b,d));return c},1);b(t,"copyOfRange$DA$I$I",function(a,b,c){var d=c-b;if(0>d)throw f(g("IllegalArgumentException").c$$S,[b+" > "+ +c]);c=l(Double.TYPE,[d]);System.arraycopy$O$I$O$I$I(a,b,c,0,Math.min(a.length-b,d));return c},1);b(t,"copyOfRange$ZA$I$I",function(a,b,c){var d=c-b;if(0>d)throw f(g("IllegalArgumentException").c$$S,[b+" > "+c]);c=l(Boolean.TYPE,[d]);System.arraycopy$O$I$O$I$I(a,b,c,0,Math.min(a.length-b,d));return c},1);b(t,"asList$TTA",function(a){return f(L(23).c$$TEA,[a])},1);b(t,"hashCode$JA",function(a){if(null==a)return 0;for(var b=1,c,d=0;d>>32|0);return b},1);b(t,"hashCode$IA", +function(a){if(null==a)return 0;for(var b=1,c,d=0;d>>32|0);return b},1);b(t,"hashCode$OA",function(a){if(null==a)return 0;for(var b=1,c,d=0;d=b&&(b=2147483647);b=f(L(24).c$$I,[b]);t.deepToString$OA$StringBuilder$java_util_Set(a,b,f(L(25)));return b.toString()},1);b(t,"deepToString$OA$StringBuilder$java_util_Set",function(a,b,c){if(null==a)b.append$S("null");else{var d=a.length-1;if(-1==d)b.append$S("[]");else{c.add$TE(a);b.append$C("[");for(var h=0;;h++){var f=a[h];if(null==f)b.append$S("null");else{var g=f.getClass$();g.isArray$()?g===l(Byte.TYPE,-1)?b.append$S(t.toString$BA(f)):g===l(Short.TYPE, +-1)?b.append$S(t.toString$HA(f)):g===l(Integer.TYPE,-1)?b.append$S(t.toString$IA(f)):g===l(Long.TYPE,-1)?b.append$S(t.toString$JA(f)):g===l(Character.TYPE,-1)?b.append$S(t.toString$CA(f)):g===l(Float.TYPE,-1)?b.append$S(t.toString$FA(f)):g===l(Double.TYPE,-1)?b.append$S(t.toString$DA(f)):g===l(Boolean.TYPE,-1)?b.append$S(t.toString$ZA(f)):c.contains$O(f)?b.append$S("[...]"):t.deepToString$OA$StringBuilder$java_util_Set(f,b,c):b.append$S(f.toString())}if(h==d)break;b.append$S(", ")}b.append$C("]"); +c.remove$O(a)}}},1);b(t,"setAll$TTA$java_util_function_IntFunction",function(a,b){L(1).requireNonNull$TT(b);for(var c=0;cb&&(a[b]=null);return a});b(cf,"get$I",function(a){return this.a[a]});b(cf,"set$I$TE",function(a,b){var c=this.a[a];this.a[a]=b;return c});b(cf,"indexOf$O",function(a){var b=this.a;if(null==a)for(var c=0;ca.size$()?R.indexedBinarySearch$java_util_List$TT(a,b):R.iteratorBinarySearch$java_util_List$TT(a,b)},1);b(R,"indexedBinarySearch$java_util_List$TT",function(a,b){for(var c=0,d=a.size$()-1;c<=d;){var h=c+d>>>1,f=a.get$I(h).compareTo$(b);if(0>f)c=h+1;else if(0>>1,g=R.get$java_util_ListIterator$I(h,f).compareTo$(b);if(0>g)c=f+1;else if(0b)}return c},1);b(R,"binarySearch$java_util_List$TT$java_util_Comparator",function(a,b,c){return null==c?R.binarySearch$java_util_List$TT(a,b):k(a,"java.util.RandomAccess")||5E3>a.size$()? +R.indexedBinarySearch$java_util_List$TT$java_util_Comparator(a,b,c):R.iteratorBinarySearch$java_util_List$TT$java_util_Comparator(a,b,c)},1);b(R,"indexedBinarySearch$java_util_List$TT$java_util_Comparator",function(a,b,c){for(var d=0,h=a.size$()-1;d<=h;){var f=d+h>>>1,g=a.get$I(f),g=c.compare$(g,b);if(0>g)d=f+1;else if(0>>1,g=R.get$java_util_ListIterator$I(a,f),g=c.compare$(g,b);if(0>g)d=f+1;else if(0b||k(a,"java.util.RandomAccess"))for(var c=0,d=b>>1,h=b-1;c>1;cc||k(a,"java.util.RandomAccess"))for(;1c||k(a,"java.util.RandomAccess"))for(var d=0;da.size$())throw f(g("IndexOutOfBoundsException").c$$S,["Source does not fit in dest"]);if(10>c||k(b,"java.util.RandomAccess")&&k(a,"java.util.RandomAccess"))for(var d=0;dc.compareTo$(b)&&(b=c)}return b},1);b(R,"min$java_util_Collection$java_util_Comparator",function(a,b){if(null==b)return R.min$java_util_Collection(a);for(var c=a.iterator$(),d=c.next$();c.hasNext$();){var h=c.next$();0>b.compare$(h,d)&&(d=h)}return d},1);b(R,"max$java_util_Collection",function(a){a=a.iterator$();for(var b=a.next$();a.hasNext$();){var c= +a.next$();0a.size$()?R.rotate1$java_util_List$I(a,b):R.rotate2$java_util_List$I(a,b)},1);b(R,"rotate1$java_util_List$I",function(a,b){var c=a.size$();if(0!=c&&(b%=c,0> +b&&(b+=c),0!=b))for(var d=0,h=0;h!=c;d++){var f=a.get$I(d),g=d;do g+=b,g>=c&&(g-=c),f=a.set$I$TE(g,f),h++;while(g!=d)}},1);b(R,"rotate2$java_util_List$I",function(a,b){var c=a.size$();if(0!=c){var d=-b%c;0>d&&(d+=c);0!=d&&(R.reverse$java_util_List(a.subList$I$I(0,d)),R.reverse$java_util_List(a.subList$I$I(d,c)),R.reverse$java_util_List(a))}},1);b(R,"replaceAll$java_util_List$TT$TT",function(a,b,c){var d=!1,h=a.size$();if(11>h||k(a,"java.util.RandomAccess"))if(null==b)for(var f=0;fc||k(a,"java.util.RandomAccess")&&k(b,"java.util.RandomAccess")){c=0;a:for(;c<=h;c++){for(var f=0,g=c;fc||k(a,"java.util.RandomAccess"))a:for(;0<=h;h--){for(var f=0,g=h;fh)return-1;c=a.listIterator$I(h);a:for(;0<=h;h--){g=b.listIterator$(); +for(f=0;fa)throw f(g("IllegalArgumentException").c$$S,["List length = "+a]);return f(F(59).c$$I$TE,[a,b])},1);b(R,"reverseOrder$",function(){return F(60).REVERSE_ORDER},1);b(R,"reverseOrder$java_util_Comparator",function(a){return null==a?R.reverseOrder$():k(a,"java.util.Collections.ReverseComparator2")? +a.cmp:f(F(61).c$$java_util_Comparator,[a])},1);b(R,"enumeration$java_util_Collection",function(a){if(!E.Collections$3){var e=j(E,"Collections$3",function(a){m(this,a,1,e)},null,"java.util.Enumeration",1);e.$clinit$=function(){g(e,1)};b(e,"$init0$",function(){var a;(a=e.superclazz)&&(a=a.$init0$)&&a.apply(this);this.i=null},1);b(e,"$init$",function(){this.i=this.$finals$.c.iterator$()},1);b(e,"hasMoreElements$",function(){return this.i.hasNext$()});b(e,"nextElement$",function(){return this.i.next$()})}return f(E.Collections$3.$init$, +[this,{c:a}])},1);b(R,"list$java_util_Enumeration",function(a){for(var b=f(F(22));a.hasMoreElements$();)b.add$TE(a.nextElement$());return b},1);b(R,"eq$O$O",function(a,b){return null==a?null==b:a.equals$O(b)},1);b(R,"frequency$java_util_Collection$O",function(a,b){var c=0;if(null==b)for(var d,h=a.iterator$();h.hasNext$()&&(d=h.next$(),1);)null==d&&c++;else for(h=a.iterator$();h.hasNext$()&&(d=h.next$(),1);)b.equals$O(d)&&c++;return c},1);b(R,"disjoint$java_util_Collection$java_util_Collection",function(a, +b){var c=b,d=a;if(k(a,"java.util.Set"))d=b,c=a;else if(!k(b,"java.util.Set")){var h=a.size$(),f=b.size$();if(0==h||0==f)return!0;h>f&&(d=b,c=a)}for(var g,d=d.iterator$();d.hasNext$()&&(g=d.next$(),1);)if(c.contains$O(g))return!1;return!0},1);b(R,"addAll$java_util_Collection$TTA",function(a,b){for(var c=!1,d,h=0;ha.length)return b;System.arraycopy$O$I$O$I$I(b,0,a,0,b.length);a.length>b.length&&(a[b.length]=null);return a});b(df,"contains$O",function(a){return!k(a,"java.util.Map.Entry")?!1:this.c.contains$O(f(F(7).c$$java_util_Map_Entry,[a]))});b(df,"containsAll$java_util_Collection",function(a){var b;for(a=a.iterator$();a.hasNext$()&&(b=a.next$(),1);)if(!this.contains$O(b))return!1;return!0});b(df,"equals$O",function(a){return a===this?!0:!k(a,"java.util.Set")||a.size$()!=this.c.size$()? +!1:this.containsAll$java_util_Collection(a)});var Sf=j(E.Collections.UnmodifiableMap.UnmodifiableEntrySet,"UnmodifiableEntrySetSpliterator",function(a){m(this,a,!1,Sf)},null,"java.util.Spliterator");Sf.$clinit$=function(){g(Sf,1)};b(Sf,"$init0$",function(){var a;(a=Sf.superclazz)&&(a=a.$init0$)&&a.apply(this);this.s=null},1);b(Sf,"$init$",function(){},1);b(Sf,["c$$java_util_Spliterator"],function(a){Sf.$init$.apply(this);this.s=a},1);b(Sf,["tryAdvance$java_util_function_Consumer"],function(a){F(6).requireNonNull$TT(a); +return this.s.tryAdvance$java_util_function_Consumer(E.Collections.UnmodifiableMap.UnmodifiableEntrySet.entryConsumer$java_util_function_Consumer(a))});b(Sf,["forEachRemaining$java_util_function_Consumer"],function(a){F(6).requireNonNull$TT(a);this.s.forEachRemaining$java_util_function_Consumer(E.Collections.UnmodifiableMap.UnmodifiableEntrySet.entryConsumer$java_util_function_Consumer(a))});b(Sf,"trySplit$",function(){var a=this.s.trySplit$();return null==a?null:f(Sf.c$$java_util_Spliterator,[a])}); +b(Sf,"estimateSize$",function(){return this.s.estimateSize$()});b(Sf,"getExactSizeIfKnown$",function(){return this.s.getExactSizeIfKnown$()});b(Sf,"characteristics$",function(){return this.s.characteristics$()});b(Sf,"hasCharacteristics$I",function(a){return this.s.hasCharacteristics$I(a)});b(Sf,"getComparator$",function(){return this.s.getComparator$()});b(Sf);var gh=j(E.Collections.UnmodifiableMap.UnmodifiableEntrySet,"UnmodifiableEntry",function(a){m(this,a,!1,gh)},null,[["java.util.Map","java.util.Map.Entry"]]); +gh.$clinit$=function(){g(gh,1)};b(gh,"$init0$",function(){var a;(a=gh.superclazz)&&(a=a.$init0$)&&a.apply(this);this.e=null},1);b(gh,"$init$",function(){},1);b(gh,"c$$java_util_Map_Entry",function(a){gh.$init$.apply(this);this.e=F(6).requireNonNull$TT(a)},1);b(gh,"getKey$",function(){return this.e.getKey$()});b(gh,"getValue$",function(){return this.e.getValue$()});b(gh,["setValue$TV"],function(){throw f(g("UnsupportedOperationException"));});b(gh,"hashCode$",function(){return this.e.hashCode$()}); +b(gh,"equals$O",function(a){return this===a?!0:!k(a,"java.util.Map.Entry")?!1:E.Collections.eq$O$O(this.e.getKey$(),a.getKey$())&&E.Collections.eq$O$O(this.e.getValue$(),a.getValue$())});b(gh,"toString",function(){return this.e.toString()});b(gh);b(df);b(oc);var wf=j(E.Collections,"UnmodifiableSortedMap",function(a){m(this,a,!1,wf)},["java.util.Collections",".UnmodifiableMap"],["java.util.SortedMap","java.io.Serializable"]);wf.$clinit$=function(){g(wf,1)};b(wf,"$init0$",function(){var a;(a=wf.superclazz)&& +(a=a.$init0$)&&a.apply(this);this.sm=null},1);b(wf,"$init$",function(){},1);b(wf,"c$$java_util_SortedMap",function(a){wf.superclazz.c$$java_util_Map.apply(this,[a]);wf.$init$.apply(this);this.sm=a},1);b(wf,"comparator$",function(){return this.sm.comparator$()});b(wf,["subMap$TK$TK"],function(a,b){return f(wf.c$$java_util_SortedMap,[this.sm.subMap$TK$TK(a,b)])});b(wf,["headMap$TK"],function(a){return f(wf.c$$java_util_SortedMap,[this.sm.headMap$TK(a)])});b(wf,["tailMap$TK"],function(a){return f(wf.c$$java_util_SortedMap, +[this.sm.tailMap$TK(a)])});b(wf,"firstKey$",function(){return this.sm.firstKey$()});b(wf,"lastKey$",function(){return this.sm.lastKey$()});b(wf);var ad=j(E.Collections,"UnmodifiableNavigableMap",function(a){m(this,a,!1,ad)},["java.util.Collections",".UnmodifiableSortedMap"],["java.util.NavigableMap","java.io.Serializable"]);ad.EMPTY_NAVIGABLE_MAP=null;ad.$clinit$=function(){g(ad,1);ad.EMPTY_NAVIGABLE_MAP=f(F(14))};b(ad,"$init0$",function(){var a;(a=ad.superclazz)&&(a=a.$init0$)&&a.apply(this);this.nm= +null},1);b(ad,"$init$",function(){},1);b(ad,"c$$java_util_NavigableMap",function(a){ad.superclazz.c$$java_util_SortedMap.apply(this,[a]);ad.$init$.apply(this);this.nm=a},1);b(ad,["lowerKey$TK"],function(a){return this.nm.lowerKey$TK(a)});b(ad,["floorKey$TK"],function(a){return this.nm.floorKey$TK(a)});b(ad,["ceilingKey$TK"],function(a){return this.nm.ceilingKey$TK(a)});b(ad,["higherKey$TK"],function(a){return this.nm.higherKey$TK(a)});b(ad,["lowerEntry$TK"],function(a){a=this.nm.lowerEntry$TK(a); +return null!=a?f(F(7).c$$java_util_Map_Entry,[a]):null});b(ad,["floorEntry$TK"],function(a){a=this.nm.floorEntry$TK(a);return null!=a?f(F(7).c$$java_util_Map_Entry,[a]):null});b(ad,["ceilingEntry$TK"],function(a){a=this.nm.ceilingEntry$TK(a);return null!=a?f(F(7).c$$java_util_Map_Entry,[a]):null});b(ad,["higherEntry$TK"],function(a){a=this.nm.higherEntry$TK(a);return null!=a?f(F(7).c$$java_util_Map_Entry,[a]):null});b(ad,"firstEntry$",function(){var a=this.nm.firstEntry$();return null!=a?f(F(7).c$$java_util_Map_Entry, +[a]):null});b(ad,"lastEntry$",function(){var a=this.nm.lastEntry$();return null!=a?f(F(7).c$$java_util_Map_Entry,[a]):null});b(ad,"pollFirstEntry$",function(){throw f(g("UnsupportedOperationException"));});b(ad,"pollLastEntry$",function(){throw f(g("UnsupportedOperationException"));});b(ad,"descendingMap$",function(){return E.Collections.unmodifiableNavigableMap$java_util_NavigableMap(this.nm.descendingMap$())});b(ad,"navigableKeySet$",function(){return E.Collections.unmodifiableNavigableSet$java_util_NavigableSet(this.nm.navigableKeySet$())}); +b(ad,"descendingKeySet$",function(){return E.Collections.unmodifiableNavigableSet$java_util_NavigableSet(this.nm.descendingKeySet$())});b(ad,["subMap$TK$Z$TK$Z"],function(a,b,c,d){return E.Collections.unmodifiableNavigableMap$java_util_NavigableMap(this.nm.subMap$TK$Z$TK$Z(a,b,c,d))});b(ad,["headMap$TK$Z"],function(a,b){return E.Collections.unmodifiableNavigableMap$java_util_NavigableMap(this.nm.headMap$TK$Z(a,b))});b(ad,["tailMap$TK$Z"],function(a,b){return E.Collections.unmodifiableNavigableMap$java_util_NavigableMap(this.nm.tailMap$TK$Z(a, +b))});var Bl=j(E.Collections.UnmodifiableNavigableMap,"EmptyNavigableMap",function(a){m(this,a,!1,Bl)},["java.util.Collections",".UnmodifiableNavigableMap"],"java.io.Serializable");Bl.$clinit$=function(){g(Bl,1)};b(Bl,"$init$",function(){},1);b(Bl,"c$",function(){Bl.superclazz.c$$java_util_NavigableMap.apply(this,[f(F(12))]);Bl.$init$.apply(this)},1);b(Bl,"navigableKeySet$",function(){return E.Collections.emptyNavigableSet$()});b(Bl,"readResolve",function(){return F(13).EMPTY_NAVIGABLE_MAP},{});b(ad); +var Lc=j(E.Collections,"SynchronizedCollection",function(a){m(this,a,!1,Lc)},null,["java.util.Collection","java.io.Serializable"]);Lc.$clinit$=function(){g(Lc,1)};b(Lc,"$init0$",function(){var a;(a=Lc.superclazz)&&(a=a.$init0$)&&a.apply(this);this.mutex=this.c=null},1);b(Lc,"$init$",function(){},1);b(Lc,"c$$java_util_Collection",function(a){Lc.$init$.apply(this);this.c=F(6).requireNonNull$TT(a);this.mutex=this},1);b(Lc,"c$$java_util_Collection$O",function(a,b){Lc.$init$.apply(this);this.c=F(6).requireNonNull$TT(a); +this.mutex=F(6).requireNonNull$TT(b)},1);b(Lc,"size$",function(){return this.c.size$()});b(Lc,"isEmpty$",function(){return this.c.isEmpty$()});b(Lc,"contains$O",function(a){return this.c.contains$O(a)});b(Lc,"toArray$",function(){return this.c.toArray$()});b(Lc,"toArray$TTA",function(a){return this.c.toArray$TTA(a)});b(Lc,"iterator$",function(){return this.c.iterator$()});b(Lc,["add$TE"],function(a){return this.c.add$TE(a)});b(Lc,"remove$O",function(a){return this.c.remove$O(a)});b(Lc,"containsAll$java_util_Collection", +function(a){return this.c.containsAll$java_util_Collection(a)});b(Lc,"addAll$java_util_Collection",function(a){return this.c.addAll$java_util_Collection(a)});b(Lc,"removeAll$java_util_Collection",function(a){return this.c.removeAll$java_util_Collection(a)});b(Lc,"retainAll$java_util_Collection",function(a){return this.c.retainAll$java_util_Collection(a)});b(Lc,"clear$",function(){this.c.clear$()});b(Lc,"toString",function(){return this.c.toString()});b(Lc,"forEach$java_util_function_Consumer",function(a){this.c.forEach$java_util_function_Consumer(a)}); +b(Lc,"removeIf$java_util_function_Predicate",function(a){return this.c.removeIf$java_util_function_Predicate(a)});b(Lc,"spliterator$",function(){return this.c.spliterator$()});b(Lc,"stream$",function(){return this.c.stream$()});b(Lc,"parallelStream$",function(){return this.c.parallelStream$()});b(Lc,"writeObject$java_io_ObjectOutputStream",function(a){a.defaultWriteObject$()},{});b(Lc);var hi=j(E.Collections,"SynchronizedSet",function(a){m(this,a,!1,hi)},["java.util.Collections",".SynchronizedCollection"], +"java.util.Set");hi.$clinit$=function(){g(hi,1)};b(hi,"$init$",function(){},1);b(hi,"c$$java_util_Set",function(a){hi.superclazz.c$$java_util_Collection.apply(this,[a]);hi.$init$.apply(this)},1);b(hi,"c$$java_util_Set$O",function(a,b){hi.superclazz.c$$java_util_Collection$O.apply(this,[a,b]);hi.$init$.apply(this)},1);b(hi,"equals$O",function(a){return this===a?!0:this.c.equals$O(a)});b(hi,"hashCode$",function(){return this.c.hashCode$()});b(hi);var Ae=j(E.Collections,"SynchronizedSortedSet",function(a){m(this, +a,!1,Ae)},["java.util.Collections",".SynchronizedSet"],"java.util.SortedSet");Ae.$clinit$=function(){g(Ae,1)};b(Ae,"$init0$",function(){var a;(a=Ae.superclazz)&&(a=a.$init0$)&&a.apply(this);this.ss=null},1);b(Ae,"$init$",function(){},1);b(Ae,"c$$java_util_SortedSet",function(a){Ae.superclazz.c$$java_util_Set.apply(this,[a]);Ae.$init$.apply(this);this.ss=a},1);b(Ae,"c$$java_util_SortedSet$O",function(a,b){Ae.superclazz.c$$java_util_Set$O.apply(this,[a,b]);Ae.$init$.apply(this);this.ss=a},1);b(Ae,"comparator$", +function(){return this.ss.comparator$()});b(Ae,["subSet$TE$TE"],function(a,b){return f(Ae.c$$java_util_SortedSet$O,[this.ss.subSet$TE$TE(a,b),this.mutex])});b(Ae,["headSet$TE"],function(a){return f(Ae.c$$java_util_SortedSet$O,[this.ss.headSet$TE(a),this.mutex])});b(Ae,["tailSet$TE"],function(a){return f(Ae.c$$java_util_SortedSet$O,[this.ss.tailSet$TE(a),this.mutex])});b(Ae,"first$",function(){return this.ss.first$()});b(Ae,"last$",function(){return this.ss.last$()});b(Ae);var vc=j(E.Collections,"SynchronizedNavigableSet", +function(a){m(this,a,!1,vc)},["java.util.Collections",".SynchronizedSortedSet"],"java.util.NavigableSet");vc.$clinit$=function(){g(vc,1)};b(vc,"$init0$",function(){var a;(a=vc.superclazz)&&(a=a.$init0$)&&a.apply(this);this.ns=null},1);b(vc,"$init$",function(){},1);b(vc,"c$$java_util_NavigableSet",function(a){vc.superclazz.c$$java_util_SortedSet.apply(this,[a]);vc.$init$.apply(this);this.ns=a},1);b(vc,"c$$java_util_NavigableSet$O",function(a,b){vc.superclazz.c$$java_util_SortedSet$O.apply(this,[a, +b]);vc.$init$.apply(this);this.ns=a},1);b(vc,["lower$TE"],function(a){return this.ns.lower$TE(a)});b(vc,["floor$TE"],function(a){return this.ns.floor$TE(a)});b(vc,["ceiling$TE"],function(a){return this.ns.ceiling$TE(a)});b(vc,["higher$TE"],function(a){return this.ns.higher$TE(a)});b(vc,"pollFirst$",function(){return this.ns.pollFirst$()});b(vc,"pollLast$",function(){return this.ns.pollLast$()});b(vc,"descendingSet$",function(){return f(vc.c$$java_util_NavigableSet$O,[this.ns.descendingSet$(),this.mutex])}); +b(vc,"descendingIterator$",function(){return this.descendingSet$().iterator$()});b(vc,["subSet$TE$TE"],function(a,b){return f(vc.c$$java_util_NavigableSet$O,[this.ns.subSet$TE$Z$TE$Z(a,!0,b,!1),this.mutex])});b(vc,["headSet$TE"],function(a){return f(vc.c$$java_util_NavigableSet$O,[this.ns.headSet$TE$Z(a,!1),this.mutex])});b(vc,["tailSet$TE"],function(a){return f(vc.c$$java_util_NavigableSet$O,[this.ns.tailSet$TE$Z(a,!0),this.mutex])});b(vc,["subSet$TE$Z$TE$Z"],function(a,b,c,d){return f(vc.c$$java_util_NavigableSet$O, +[this.ns.subSet$TE$Z$TE$Z(a,b,c,d),this.mutex])});b(vc,["headSet$TE$Z"],function(a,b){return f(vc.c$$java_util_NavigableSet$O,[this.ns.headSet$TE$Z(a,b),this.mutex])});b(vc,["tailSet$TE$Z"],function(a,b){return f(vc.c$$java_util_NavigableSet$O,[this.ns.tailSet$TE$Z(a,b),this.mutex])});b(vc);var id=j(E.Collections,"SynchronizedList",function(a){m(this,a,!1,id)},["java.util.Collections",".SynchronizedCollection"],"java.util.List");id.$clinit$=function(){g(id,1)};b(id,"$init0$",function(){var a;(a=id.superclazz)&& +(a=a.$init0$)&&a.apply(this);this.list=null},1);b(id,"$init$",function(){},1);b(id,"c$$java_util_List",function(a){id.superclazz.c$$java_util_Collection.apply(this,[a]);id.$init$.apply(this);this.list=a},1);b(id,"c$$java_util_List$O",function(a,b){id.superclazz.c$$java_util_Collection$O.apply(this,[a,b]);id.$init$.apply(this);this.list=a},1);b(id,"equals$O",function(a){return this===a?!0:this.list.equals$O(a)});b(id,"hashCode$",function(){return this.list.hashCode$()});b(id,"get$I",function(a){return this.list.get$I(a)}); +b(id,"set$I$TE",function(a,b){return this.list.set$I$TE(a,b)});b(id,"add$I$TE",function(a,b){this.list.add$I$TE(a,b)});b(id,"remove$I",function(a){return this.list.remove$I(a)});b(id,"indexOf$O",function(a){return this.list.indexOf$O(a)});b(id,"lastIndexOf$O",function(a){return this.list.lastIndexOf$O(a)});b(id,"addAll$I$java_util_Collection",function(a,b){return this.list.addAll$I$java_util_Collection(a,b)});b(id,"listIterator$",function(){return this.list.listIterator$()});b(id,"listIterator$I", +function(a){return this.list.listIterator$I(a)});b(id,"subList$I$I",function(a,b){return f(id.c$$java_util_List$O,[this.list.subList$I$I(a,b),this.mutex])});b(id,"replaceAll$java_util_function_UnaryOperator",function(a){this.list.replaceAll$java_util_function_UnaryOperator(a)});b(id,"sort$java_util_Comparator",function(a){this.list.sort$java_util_Comparator(a)});b(id,"readResolve",function(){return k(this.list,"java.util.RandomAccess")?f(F(15).c$$java_util_List,[this.list]):this},{});b(id);var Gh= +j(E.Collections,"SynchronizedRandomAccessList",function(a){m(this,a,!1,Gh)},["java.util.Collections",".SynchronizedList"],"java.util.RandomAccess");Gh.$clinit$=function(){g(Gh,1)};b(Gh,"$init$",function(){},1);b(Gh,"c$$java_util_List",function(a){Gh.superclazz.c$$java_util_List.apply(this,[a]);Gh.$init$.apply(this)},1);b(Gh,"c$$java_util_List$O",function(a,b){Gh.superclazz.c$$java_util_List$O.apply(this,[a,b]);Gh.$init$.apply(this)},1);b(Gh,"subList$I$I",function(a,b){return f(Gh.c$$java_util_List$O, +[this.list.subList$I$I(a,b),this.mutex])});b(Gh,"writeReplace",function(){return f(F(16).c$$java_util_List,[this.list])},{});b(Gh);var cc=j(E.Collections,"SynchronizedMap",function(a){m(this,a,!1,cc)},null,["java.util.Map","java.io.Serializable"]);cc.$clinit$=function(){g(cc,1)};b(cc,"$init0$",function(){var a;(a=cc.superclazz)&&(a=a.$init0$)&&a.apply(this);this.values=this.entrySet=this.keySet=this.mutex=this.m=null},1);b(cc,"$init$",function(){},1);b(cc,["c$$java_util_Map"],function(a){cc.$init$.apply(this); +this.m=F(6).requireNonNull$TT(a);this.mutex=this},1);b(cc,["c$$java_util_Map$O"],function(a,b){cc.$init$.apply(this);this.m=a;this.mutex=b},1);b(cc,"size$",function(){return this.m.size$()});b(cc,"isEmpty$",function(){return this.m.isEmpty$()});b(cc,"containsKey$O",function(a){return this.m.containsKey$O(a)});b(cc,"containsValue$O",function(a){return this.m.containsValue$O(a)});b(cc,"get$O",function(a){return this.m.get$O(a)});b(cc,["put$TK$TV"],function(a,b){return this.m.put$TK$TV(a,b)});b(cc,"remove$O", +function(a){return this.m.remove$O(a)});b(cc,"putAll$java_util_Map",function(a){this.m.putAll$java_util_Map(a)});b(cc,"clear$",function(){this.m.clear$()});b(cc,"keySet$",function(){null==this.keySet&&(this.keySet=f(F(17).c$$java_util_Set$O,[this.m.keySet$(),this.mutex]));return this.keySet});b(cc,"entrySet$",function(){null==this.entrySet&&(this.entrySet=f(F(17).c$$java_util_Set$O,[this.m.entrySet$(),this.mutex]));return this.entrySet});b(cc,"values$",function(){null==this.values&&(this.values=f(F(18).c$$java_util_Collection$O, +[this.m.values$(),this.mutex]));return this.values});b(cc,"equals$O",function(a){return this===a?!0:this.m.equals$O(a)});b(cc,"hashCode$",function(){return this.m.hashCode$()});b(cc,"toString",function(){return this.m.toString()});b(cc,["getOrDefault$O$TV"],function(a,b){return this.m.getOrDefault$O$TV(a,b)});b(cc,"forEach$java_util_function_BiConsumer",function(a){this.m.forEach$java_util_function_BiConsumer(a)});b(cc,"replaceAll$java_util_function_BiFunction",function(a){this.m.replaceAll$java_util_function_BiFunction(a)}); +b(cc,["putIfAbsent$TK$TV"],function(a,b){return this.m.putIfAbsent$TK$TV(a,b)});b(cc,"remove$O$O",function(a,b){return this.m.remove$O$O(a,b)});b(cc,["replace$TK$TV$TV"],function(a,b,c){return this.m.replace$TK$TV$TV(a,b,c)});b(cc,["replace$TK$TV"],function(a,b){return this.m.replace$TK$TV(a,b)});b(cc,["computeIfAbsent$TK$java_util_function_Function"],function(a,b){return this.m.computeIfAbsent$TK$java_util_function_Function(a,b)});b(cc,["computeIfPresent$TK$java_util_function_BiFunction"],function(a, +b){return this.m.computeIfPresent$TK$java_util_function_BiFunction(a,b)});b(cc,["compute$TK$java_util_function_BiFunction"],function(a,b){return this.m.compute$TK$java_util_function_BiFunction(a,b)});b(cc,["merge$TK$TV$java_util_function_BiFunction"],function(a,b,c){return this.m.merge$TK$TV$java_util_function_BiFunction(a,b,c)});b(cc,"writeObject$java_io_ObjectOutputStream",function(a){a.defaultWriteObject$()},{});b(cc);var Be=j(E.Collections,"SynchronizedSortedMap",function(a){m(this,a,!1,Be)}, +["java.util.Collections",".SynchronizedMap"],"java.util.SortedMap");Be.$clinit$=function(){g(Be,1)};b(Be,"$init0$",function(){var a;(a=Be.superclazz)&&(a=a.$init0$)&&a.apply(this);this.sm=null},1);b(Be,"$init$",function(){},1);b(Be,["c$$java_util_SortedMap"],function(a){Be.superclazz.c$$java_util_Map.apply(this,[a]);Be.$init$.apply(this);this.sm=a},1);b(Be,["c$$java_util_SortedMap$O"],function(a,b){Be.superclazz.c$$java_util_Map$O.apply(this,[a,b]);Be.$init$.apply(this);this.sm=a},1);b(Be,"comparator$", +function(){return this.sm.comparator$()});b(Be,["subMap$TK$TK"],function(a,b){return f(Be.c$$java_util_SortedMap$O,[this.sm.subMap$TK$TK(a,b),this.mutex])});b(Be,["headMap$TK"],function(a){return f(Be.c$$java_util_SortedMap$O,[this.sm.headMap$TK(a),this.mutex])});b(Be,["tailMap$TK"],function(a){return f(Be.c$$java_util_SortedMap$O,[this.sm.tailMap$TK(a),this.mutex])});b(Be,"firstKey$",function(){return this.sm.firstKey$()});b(Be,"lastKey$",function(){return this.sm.lastKey$()});b(Be);var Ob=j(E.Collections, +"SynchronizedNavigableMap",function(a){m(this,a,!1,Ob)},["java.util.Collections",".SynchronizedSortedMap"],"java.util.NavigableMap");Ob.$clinit$=function(){g(Ob,1)};b(Ob,"$init0$",function(){var a;(a=Ob.superclazz)&&(a=a.$init0$)&&a.apply(this);this.nm=null},1);b(Ob,"$init$",function(){},1);b(Ob,["c$$java_util_NavigableMap"],function(a){Ob.superclazz.c$$java_util_SortedMap.apply(this,[a]);Ob.$init$.apply(this);this.nm=a},1);b(Ob,["c$$java_util_NavigableMap$O"],function(a,b){Ob.superclazz.c$$java_util_SortedMap$O.apply(this, +[a,b]);Ob.$init$.apply(this);this.nm=a},1);b(Ob,["lowerEntry$TK"],function(a){return this.nm.lowerEntry$TK(a)});b(Ob,["lowerKey$TK"],function(a){return this.nm.lowerKey$TK(a)});b(Ob,["floorEntry$TK"],function(a){return this.nm.floorEntry$TK(a)});b(Ob,["floorKey$TK"],function(a){return this.nm.floorKey$TK(a)});b(Ob,["ceilingEntry$TK"],function(a){return this.nm.ceilingEntry$TK(a)});b(Ob,["ceilingKey$TK"],function(a){return this.nm.ceilingKey$TK(a)});b(Ob,["higherEntry$TK"],function(a){return this.nm.higherEntry$TK(a)}); +b(Ob,["higherKey$TK"],function(a){return this.nm.higherKey$TK(a)});b(Ob,"firstEntry$",function(){return this.nm.firstEntry$()});b(Ob,"lastEntry$",function(){return this.nm.lastEntry$()});b(Ob,"pollFirstEntry$",function(){return this.nm.pollFirstEntry$()});b(Ob,"pollLastEntry$",function(){return this.nm.pollLastEntry$()});b(Ob,"descendingMap$",function(){return f(Ob.c$$java_util_NavigableMap$O,[this.nm.descendingMap$(),this.mutex])});b(Ob,"keySet$",function(){return this.navigableKeySet$()});b(Ob, +"navigableKeySet$",function(){return f(F(19).c$$java_util_NavigableSet$O,[this.nm.navigableKeySet$(),this.mutex])});b(Ob,"descendingKeySet$",function(){return f(F(19).c$$java_util_NavigableSet$O,[this.nm.descendingKeySet$(),this.mutex])});b(Ob,["subMap$TK$TK"],function(a,b){return f(Ob.c$$java_util_NavigableMap$O,[this.nm.subMap$TK$Z$TK$Z(a,!0,b,!1),this.mutex])});b(Ob,["headMap$TK"],function(a){return f(Ob.c$$java_util_NavigableMap$O,[this.nm.headMap$TK$Z(a,!1),this.mutex])});b(Ob,["tailMap$TK"], +function(a){return f(Ob.c$$java_util_NavigableMap$O,[this.nm.tailMap$TK$Z(a,!0),this.mutex])});b(Ob,["subMap$TK$Z$TK$Z"],function(a,b,c,d){return f(Ob.c$$java_util_NavigableMap$O,[this.nm.subMap$TK$Z$TK$Z(a,b,c,d),this.mutex])});b(Ob,["headMap$TK$Z"],function(a,b){return f(Ob.c$$java_util_NavigableMap$O,[this.nm.headMap$TK$Z(a,b),this.mutex])});b(Ob,["tailMap$TK$Z"],function(a,b){return f(Ob.c$$java_util_NavigableMap$O,[this.nm.tailMap$TK$Z(a,b),this.mutex])});b(Ob);var Fc=j(E.Collections,"CheckedCollection", +function(a){m(this,a,!1,Fc)},null,["java.util.Collection","java.io.Serializable"]);Fc.$clinit$=function(){g(Fc,1)};b(Fc,"$init0$",function(){var a;(a=Fc.superclazz)&&(a=a.$init0$)&&a.apply(this);this.zeroLengthElementArray=this.type=this.c=null},1);b(Fc,"$init$",function(){},1);b(Fc,"typeCheck$O",function(a){if(null!=a&&!this.type.isInstance$O(a))throw f(g("ClassCastException").c$$S,[fq.badElementMsg$O.apply(this,[a])]);return a});b(Fc,"badElementMsg$O",function(a){return"Attempt to insert "+a.getClass$()+ +" element into collection with element type "+this.type},fq);b(Fc,"c$$java_util_Collection$Class",function(a,b){Fc.$init$.apply(this);this.c=F(6).requireNonNull$TT$S(a,"c");this.type=F(6).requireNonNull$TT$S(b,"type")},1);b(Fc,"size$",function(){return this.c.size$()});b(Fc,"isEmpty$",function(){return this.c.isEmpty$()});b(Fc,"contains$O",function(a){return this.c.contains$O(a)});b(Fc,"toArray$",function(){return this.c.toArray$()});b(Fc,"toArray$TTA",function(a){return this.c.toArray$TTA(a)});b(Fc, +"toString",function(){return this.c.toString()});b(Fc,"remove$O",function(a){return this.c.remove$O(a)});b(Fc,"clear$",function(){this.c.clear$()});b(Fc,"containsAll$java_util_Collection",function(a){return this.c.containsAll$java_util_Collection(a)});b(Fc,"removeAll$java_util_Collection",function(a){return this.c.removeAll$java_util_Collection(a)});b(Fc,"retainAll$java_util_Collection",function(a){return this.c.retainAll$java_util_Collection(a)});b(Fc,"iterator$",function(){var a=this.c.iterator$(); +if(!E.Collections$CheckedCollection$1){var e=j(E,"Collections$CheckedCollection$1",function(a){m(this,a,1,e)},null,"java.util.Iterator",1);e.$clinit$=function(){g(e,1)};b(e,"$init$",function(){},1);b(e,"hasNext$",function(){return this.$finals$.it.hasNext$()});b(e,"next$",function(){return this.$finals$.it.next$()});b(e,"remove$",function(){this.$finals$.it.remove$()})}return f(E.Collections$CheckedCollection$1.$init$,[this,{it:a}])});b(Fc,["add$TE"],function(a){return this.c.add$TE(this.typeCheck$O(a))}); +b(Fc,"zeroLengthElementArray",function(){return null!=this.zeroLengthElementArray?this.zeroLengthElementArray:this.zeroLengthElementArray=E.Collections.zeroLengthArray$Class(this.type)},fq);b(Fc,"checkedCopyOf$java_util_Collection",function(a){var b;try{var c=fq.zeroLengthElementArray.apply(this,[]);b=a.toArray$TTA(c);b.getClass$()!==c.getClass$()&&(b=F(10).copyOf$TUA$I$Class(b,b.length,c.getClass$()))}catch(d){if(A(d,"ArrayStoreException")){b=a.toArray$().clone$();var h;a=0;for(c=b;aa.length)return b;System.arraycopy$O$I$O$I$I(b,0,a,0,b.length);a.length>b.length&&(a[b.length]=null);return a});b(bd,"contains$O",function(a){return!k(a,"java.util.Map.Entry")?!1:this.s.contains$O(k(a,"java.util.Collections.CheckedMap.CheckedEntrySet.CheckedEntry")?a:bd.checkedEntry$java_util_Map_Entry$Class(a, +this.valueType))});b(bd,"containsAll$java_util_Collection",function(a){var b;for(a=a.iterator$();a.hasNext$()&&(b=a.next$(),1);)if(!this.contains$O(b))return!1;return!0});b(bd,"remove$O",function(a){return!k(a,"java.util.Map.Entry")?!1:this.s.remove$O(f(F(20).c$$java_util_Map_Entry,[a]))});b(bd,"removeAll$java_util_Collection",function(a){return is.batchRemove$java_util_Collection$Z.apply(this,[a,!1])});b(bd,"retainAll$java_util_Collection",function(a){return is.batchRemove$java_util_Collection$Z.apply(this, +[a,!0])});b(bd,"batchRemove$java_util_Collection$Z",function(a,b){F(6).requireNonNull$TT(a);for(var c=!1,d=this.iterator$();d.hasNext$();)a.contains$O(d.next$())!=b&&(d.remove$(),c=!0);return c},is);b(bd,"equals$O",function(a){return a===this?!0:!k(a,"java.util.Set")?!1:a.size$()==this.s.size$()&&this.containsAll$java_util_Collection(a)});b(bd,["checkedEntry$java_util_Map_Entry$Class"],function(a,b){return f(F(21).c$$java_util_Map_Entry$Class,[a,b])},1);var Hg=j(E.Collections.CheckedMap.CheckedEntrySet, +"CheckedEntry",function(a){m(this,a,!1,Hg)},null,[["java.util.Map","java.util.Map.Entry"]]);Hg.$clinit$=function(){g(Hg,1)};b(Hg,"$init0$",function(){var a;(a=Hg.superclazz)&&(a=a.$init0$)&&a.apply(this);this.valueType=this.e=null},1);b(Hg,"$init$",function(){},1);b(Hg,["c$$java_util_Map_Entry$Class"],function(a,b){Hg.$init$.apply(this);this.e=F(6).requireNonNull$TT(a);this.valueType=F(6).requireNonNull$TT(b)},1);b(Hg,"getKey$",function(){return this.e.getKey$()});b(Hg,"getValue$",function(){return this.e.getValue$()}); +b(Hg,"hashCode$",function(){return this.e.hashCode$()});b(Hg,"toString",function(){return this.e.toString()});b(Hg,["setValue$TV"],function(a){if(null!=a&&!this.valueType.isInstance$O(a))throw f(g("ClassCastException").c$$S,[iw.badValueMsg$O.apply(this,[a])]);return this.e.setValue$TV(a)});b(Hg,"badValueMsg$O",function(a){return"Attempt to insert "+a.getClass$()+" value into map with value type "+this.valueType},iw);b(Hg,"equals$O",function(a){return a===this?!0:!k(a,"java.util.Map.Entry")?!1:this.e.equals$O(f(F(20).c$$java_util_Map_Entry, +[a]))});b(Hg);b(bd);b(dc);var Ig=j(E.Collections,"CheckedSortedMap",function(a){m(this,a,!1,Ig)},["java.util.Collections",".CheckedMap"],["java.util.SortedMap","java.io.Serializable"]);Ig.$clinit$=function(){g(Ig,1)};b(Ig,"$init0$",function(){var a;(a=Ig.superclazz)&&(a=a.$init0$)&&a.apply(this);this.sm=null},1);b(Ig,"$init$",function(){},1);b(Ig,["c$$java_util_SortedMap$Class$Class"],function(a,b,c){Ig.superclazz.c$$java_util_Map$Class$Class.apply(this,[a,b,c]);Ig.$init$.apply(this);this.sm=a},1); +b(Ig,"comparator$",function(){return this.sm.comparator$()});b(Ig,"firstKey$",function(){return this.sm.firstKey$()});b(Ig,"lastKey$",function(){return this.sm.lastKey$()});b(Ig,["subMap$TK$TK"],function(a,b){return E.Collections.checkedSortedMap$java_util_SortedMap$Class$Class(this.sm.subMap$TK$TK(a,b),this.keyType,this.valueType)});b(Ig,["headMap$TK"],function(a){return E.Collections.checkedSortedMap$java_util_SortedMap$Class$Class(this.sm.headMap$TK(a),this.keyType,this.valueType)});b(Ig,["tailMap$TK"], +function(a){return E.Collections.checkedSortedMap$java_util_SortedMap$Class$Class(this.sm.tailMap$TK(a),this.keyType,this.valueType)});b(Ig);var pc=j(E.Collections,"CheckedNavigableMap",function(a){m(this,a,!1,pc)},["java.util.Collections",".CheckedSortedMap"],["java.util.NavigableMap","java.io.Serializable"]);pc.$clinit$=function(){g(pc,1)};b(pc,"$init0$",function(){var a;(a=pc.superclazz)&&(a=a.$init0$)&&a.apply(this);this.nm=null},1);b(pc,"$init$",function(){},1);b(pc,["c$$java_util_NavigableMap$Class$Class"], +function(a,b,c){pc.superclazz.c$$java_util_SortedMap$Class$Class.apply(this,[a,b,c]);pc.$init$.apply(this);this.nm=a},1);b(pc,"comparator$",function(){return this.nm.comparator$()});b(pc,"firstKey$",function(){return this.nm.firstKey$()});b(pc,"lastKey$",function(){return this.nm.lastKey$()});b(pc,["lowerEntry$TK"],function(a){a=this.nm.lowerEntry$TK(a);return null!=a?f(F(21).c$$java_util_Map_Entry$Class,[a,this.valueType]):null});b(pc,["lowerKey$TK"],function(a){return this.nm.lowerKey$TK(a)});b(pc, +["floorEntry$TK"],function(a){a=this.nm.floorEntry$TK(a);return null!=a?f(F(21).c$$java_util_Map_Entry$Class,[a,this.valueType]):null});b(pc,["floorKey$TK"],function(a){return this.nm.floorKey$TK(a)});b(pc,["ceilingEntry$TK"],function(a){a=this.nm.ceilingEntry$TK(a);return null!=a?f(F(21).c$$java_util_Map_Entry$Class,[a,this.valueType]):null});b(pc,["ceilingKey$TK"],function(a){return this.nm.ceilingKey$TK(a)});b(pc,["higherEntry$TK"],function(a){a=this.nm.higherEntry$TK(a);return null!=a?f(F(21).c$$java_util_Map_Entry$Class, +[a,this.valueType]):null});b(pc,["higherKey$TK"],function(a){return this.nm.higherKey$TK(a)});b(pc,"firstEntry$",function(){var a=this.nm.firstEntry$();return null!=a?f(F(21).c$$java_util_Map_Entry$Class,[a,this.valueType]):null});b(pc,"lastEntry$",function(){var a=this.nm.lastEntry$();return null!=a?f(F(21).c$$java_util_Map_Entry$Class,[a,this.valueType]):null});b(pc,"pollFirstEntry$",function(){var a=this.nm.pollFirstEntry$();return null==a?null:f(F(21).c$$java_util_Map_Entry$Class,[a,this.valueType])}); +b(pc,"pollLastEntry$",function(){var a=this.nm.pollLastEntry$();return null==a?null:f(F(21).c$$java_util_Map_Entry$Class,[a,this.valueType])});b(pc,"descendingMap$",function(){return E.Collections.checkedNavigableMap$java_util_NavigableMap$Class$Class(this.nm.descendingMap$(),this.keyType,this.valueType)});b(pc,"keySet$",function(){return this.navigableKeySet$()});b(pc,"navigableKeySet$",function(){return E.Collections.checkedNavigableSet$java_util_NavigableSet$Class(this.nm.navigableKeySet$(),this.keyType)}); +b(pc,"descendingKeySet$",function(){return E.Collections.checkedNavigableSet$java_util_NavigableSet$Class(this.nm.descendingKeySet$(),this.keyType)});b(pc,["subMap$TK$TK"],function(a,b){return E.Collections.checkedNavigableMap$java_util_NavigableMap$Class$Class(this.nm.subMap$TK$Z$TK$Z(a,!0,b,!1),this.keyType,this.valueType)});b(pc,["headMap$TK"],function(a){return E.Collections.checkedNavigableMap$java_util_NavigableMap$Class$Class(this.nm.headMap$TK$Z(a,!1),this.keyType,this.valueType)});b(pc,["tailMap$TK"], +function(a){return E.Collections.checkedNavigableMap$java_util_NavigableMap$Class$Class(this.nm.tailMap$TK$Z(a,!0),this.keyType,this.valueType)});b(pc,["subMap$TK$Z$TK$Z"],function(a,b,c,d){return E.Collections.checkedNavigableMap$java_util_NavigableMap$Class$Class(this.nm.subMap$TK$Z$TK$Z(a,b,c,d),this.keyType,this.valueType)});b(pc,["headMap$TK$Z"],function(a,b){return E.Collections.checkedNavigableMap$java_util_NavigableMap$Class$Class(this.nm.headMap$TK$Z(a,b),this.keyType,this.valueType)});b(pc, +["tailMap$TK$Z"],function(a,b){return E.Collections.checkedNavigableMap$java_util_NavigableMap$Class$Class(this.nm.tailMap$TK$Z(a,b),this.keyType,this.valueType)});b(pc);var aj=j(E.Collections,"EmptyIterator",function(a){m(this,a,!1,aj)},null,"java.util.Iterator");aj.EMPTY_ITERATOR=null;aj.$clinit$=function(){g(aj,1);aj.EMPTY_ITERATOR=f(aj)};b(aj,"$init$",function(){},1);b(aj,"hasNext$",function(){return!1});b(aj,"next$",function(){throw f(g("java.util.NoSuchElementException"));});b(aj,"remove$", +function(){throw f(g("IllegalStateException"));});b(aj,"forEachRemaining$java_util_function_Consumer",function(a){F(6).requireNonNull$TT(a)});b(aj);var Hh=j(E.Collections,"EmptyListIterator",function(a){m(this,a,!1,Hh)},["java.util.Collections",".EmptyIterator"],"java.util.ListIterator");Hh.$EMPTY_ITERATOR=null;Hh.$clinit$=function(){g(Hh,1);Hh.$EMPTY_ITERATOR=f(Hh)};b(Hh,"$init$",function(){},1);b(Hh,"hasPrevious$",function(){return!1});b(Hh,"previous$",function(){throw f(g("java.util.NoSuchElementException")); +});b(Hh,"nextIndex$",function(){return 0});b(Hh,"previousIndex$",function(){return-1});b(Hh,["set$TE"],function(){throw f(g("IllegalStateException"));});b(Hh,["add$TE"],function(){throw f(g("UnsupportedOperationException"));});b(Hh);var Mk=j(E.Collections,"EmptyEnumeration",function(a){m(this,a,!1,Mk)},null,"java.util.Enumeration");Mk.EMPTY_ENUMERATION=null;Mk.$clinit$=function(){g(Mk,1);Mk.EMPTY_ENUMERATION=f(Mk)};b(Mk,"$init$",function(){},1);b(Mk,"hasMoreElements$",function(){return!1});b(Mk,"nextElement$", +function(){throw f(g("java.util.NoSuchElementException"));});b(Mk);var Jg=j(E.Collections,"EmptySet",function(a){m(this,a,!1,Jg)},"java.util.AbstractSet","java.io.Serializable");Jg.$clinit$=function(){g(Jg,1)};b(Jg,"$init$",function(){},1);b(Jg,"iterator$",function(){return E.Collections.emptyIterator$()});b(Jg,"size$",function(){return 0});b(Jg,"isEmpty$",function(){return!0});b(Jg,"contains$O",function(){return!1});b(Jg,"containsAll$java_util_Collection",function(a){return a.isEmpty$()});b(Jg,"toArray$", +function(){return l(java.lang.Object,[0])});b(Jg,"toArray$TTA",function(a){0a||a>=this.n)throw f(g("IndexOutOfBoundsException").c$$S,["Index: "+a+", Size: "+this.n]);return this.element});b(fe,"toArray$",function(){var a=l(java.lang.Object,[this.n]);null!=this.element&&F(10).fill$OA$I$I$O(a,0,this.n,this.element);return a});b(fe,"toArray$TTA",function(a){var b=this.n;a.lengthb&&(a[b]= +null));return a});b(fe,"subList$I$I",function(a,b){if(0>a)throw f(g("IndexOutOfBoundsException").c$$S,["fromIndex = "+a]);if(b>this.n)throw f(g("IndexOutOfBoundsException").c$$S,["toIndex = "+b]);if(a>b)throw f(g("IllegalArgumentException").c$$S,["fromIndex("+a+") > toIndex("+b+")"]);return f(fe.c$$I$TE,[b-a,this.element])});b(fe,"stream$",function(){return F(27).range$I$I(0,this.n).mapToObj$java_util_function_IntFunction((E.Collections$CopiesList$lambda1||function(){var a=j(E,"Collections$CopiesList$lambda1", +function(b){m(this,b,1,a)},null,"java.util.function.IntFunction",1);a.$clinit$=function(){g(a,1)};b(a,"$init$",function(){},1);b(a,"apply$",function(){return this.element})}(),f(E.Collections$CopiesList$lambda1.$init$,[this,null])))});b(fe,"parallelStream$",function(){return F(27).range$I$I(0,this.n).parallel$().mapToObj$java_util_function_IntFunction((E.Collections$CopiesList$lambda2||function(){var a=j(E,"Collections$CopiesList$lambda2",function(b){m(this,b,1,a)},null,"java.util.function.IntFunction", +1);a.$clinit$=function(){g(a,1)};b(a,"$init$",function(){},1);b(a,"apply$",function(){return this.element})}(),f(E.Collections$CopiesList$lambda2.$init$,[this,null])))});b(fe,"spliterator$",function(){return this.stream$().spliterator$()});fe.$_ASSERT_ENABLED_=ClassLoader.getClassAssertionStatus$(fe);b(fe);var Jj=j(E.Collections,"ReverseComparator",function(a){m(this,a,!1,Jj)},null,["java.util.Comparator","java.io.Serializable"]);Jj.REVERSE_ORDER=null;Jj.$clinit$=function(){g(Jj,1);Jj.REVERSE_ORDER= +f(Jj)};b(Jj,"$init$",function(){},1);b(Jj,["compare$Comparable$Comparable","compare$","compare$TT$TT"],function(a,b){return b.compareTo$(a)});b(Jj,"readResolve",function(){return F(25).reverseOrder$()},{});b(Jj,"reversed$",function(){return F(28).naturalOrder$()});b(Jj);var Kg=j(E.Collections,"ReverseComparator2",function(a){m(this,a,!1,Kg)},null,["java.util.Comparator","java.io.Serializable"]);Kg.$clinit$=function(){g(Kg,1)};b(Kg,"$init0$",function(){var a;(a=Kg.superclazz)&&(a=a.$init0$)&&a.apply(this); +this.cmp=null},1);b(Kg,"$init$",function(){},1);b(Kg,"c$$java_util_Comparator",function(a){Kg.$init$.apply(this);rb(Kg,this,function(){return null!=a});this.cmp=a},1);b(Kg,["compare$TT$TT","compare$"],function(a,b){return this.cmp.compare$(b,a)});b(Kg,"equals$O",function(a){return a===this||k(a,"java.util.Collections.ReverseComparator2")&&this.cmp.equals$O(a.cmp)});b(Kg,"hashCode$",function(){return this.cmp.hashCode$()^-2147483648});b(Kg,"reversed$",function(){return this.cmp});Kg.$_ASSERT_ENABLED_= +ClassLoader.getClassAssertionStatus$(Kg);b(Kg);var cd=j(E.Collections,"SetFromMap",function(a){m(this,a,!1,cd)},"java.util.AbstractSet",["java.util.Set","java.io.Serializable"]);cd.$clinit$=function(){g(cd,1)};b(cd,"$init0$",function(){var a;(a=cd.superclazz)&&(a=a.$init0$)&&a.apply(this);this.s=this.m=null},1);b(cd,"$init$",function(){},1);b(cd,"c$$java_util_Map",function(a){S(cd,this,1);if(!a.isEmpty$())throw f(g("IllegalArgumentException").c$$S,["Map is non-empty"]);this.m=a;this.s=a.keySet$()}, +1);b(cd,"clear$",function(){this.m.clear$()});b(cd,"size$",function(){return this.m.size$()});b(cd,"isEmpty$",function(){return this.m.isEmpty$()});b(cd,"contains$O",function(a){return this.m.containsKey$O(a)});b(cd,"remove$O",function(a){return null!=this.m.remove$O(a)});b(cd,["add$TE"],function(a){return null==this.m.put$TK$TV(a,F(29).TRUE)});b(cd,"iterator$",function(){return this.s.iterator$()});b(cd,"toArray$",function(){return this.s.toArray$()});b(cd,"toArray$TTA",function(a){return this.s.toArray$TTA(a)}); +b(cd,"toString",function(){return this.s.toString()});b(cd,"hashCode$",function(){return this.s.hashCode$()});b(cd,"equals$O",function(a){return a===this||this.s.equals$O(a)});b(cd,"containsAll$java_util_Collection",function(a){return this.s.containsAll$java_util_Collection(a)});b(cd,"removeAll$java_util_Collection",function(a){return this.s.removeAll$java_util_Collection(a)});b(cd,"retainAll$java_util_Collection",function(a){return this.s.retainAll$java_util_Collection(a)});b(cd,"forEach$java_util_function_Consumer", +function(a){this.s.forEach$java_util_function_Consumer(a)});b(cd,"removeIf$java_util_function_Predicate",function(a){return this.s.removeIf$java_util_function_Predicate(a)});b(cd,"spliterator$",function(){return this.s.spliterator$()});b(cd,"stream$",function(){return this.s.stream$()});b(cd,"parallelStream$",function(){return this.s.parallelStream$()});b(cd,"readObject$java_io_ObjectInputStream",function(a){a.defaultReadObject$();this.s=this.m.keySet$()},{});b(cd);var Gc=j(E.Collections,"AsLIFOQueue", +function(a){m(this,a,!1,Gc)},"java.util.AbstractQueue",["java.util.Queue","java.io.Serializable"]);Gc.$clinit$=function(){g(Gc,1)};b(Gc,"$init0$",function(){var a;(a=Gc.superclazz)&&(a=a.$init0$)&&a.apply(this);this.q=null},1);b(Gc,"$init$",function(){},1);b(Gc,"c$$java_util_Deque",function(a){S(Gc,this,1);this.q=a},1);b(Gc,["add$TE"],function(a){this.q.addFirst$TE(a);return!0});b(Gc,["offer$TE"],function(a){return this.q.offerFirst$TE(a)});b(Gc,"poll$",function(){return this.q.pollFirst$()});b(Gc, +"remove$",function(){return this.q.removeFirst$()});b(Gc,"peek$",function(){return this.q.peekFirst$()});b(Gc,"element$",function(){return this.q.getFirst$()});b(Gc,"clear$",function(){this.q.clear$()});b(Gc,"size$",function(){return this.q.size$()});b(Gc,"isEmpty$",function(){return this.q.isEmpty$()});b(Gc,"contains$O",function(a){return this.q.contains$O(a)});b(Gc,"remove$O",function(a){return this.q.remove$O(a)});b(Gc,"iterator$",function(){return this.q.iterator$()});b(Gc,"toArray$",function(){return this.q.toArray$()}); +b(Gc,"toArray$TTA",function(a){return this.q.toArray$TTA(a)});b(Gc,"toString",function(){return this.q.toString()});b(Gc,"containsAll$java_util_Collection",function(a){return this.q.containsAll$java_util_Collection(a)});b(Gc,"removeAll$java_util_Collection",function(a){return this.q.removeAll$java_util_Collection(a)});b(Gc,"retainAll$java_util_Collection",function(a){return this.q.retainAll$java_util_Collection(a)});b(Gc,"forEach$java_util_function_Consumer",function(a){this.q.forEach$java_util_function_Consumer(a)}); +b(Gc,"removeIf$java_util_function_Predicate",function(a){return this.q.removeIf$java_util_function_Predicate(a)});b(Gc,"spliterator$",function(){return this.q.spliterator$()});b(Gc,"stream$",function(){return this.q.stream$()});b(Gc,"parallelStream$",function(){return this.q.parallelStream$()});b(Gc);n("3.2.4.07");var xf=java.util,ks=[[0,"java.util.Collections","java.util.Objects",["java.util.Comparators",".NaturalOrderComparator"],["java.util.Comparators",".NullComparator"]]],bj=function(a){return ks[a]|| +(ks[a]=g(ks[0][a]))},Nk=N(xf,"Comparator");b(Nk,"reverseOrder$",function(){return bj(1).reverseOrder$()},1);b(Nk,"naturalOrder$",function(){return bj(3).INSTANCE},1);b(Nk,"nullsFirst$java_util_Comparator",function(a){return f(bj(4).c$$Z$java_util_Comparator,[!0,a])},1);b(Nk,"nullsLast$java_util_Comparator",function(a){return f(bj(4).c$$Z$java_util_Comparator,[!1,a])},1);b(Nk,"comparing$java_util_function_Function$java_util_Comparator",function(a,e){bj(2).requireNonNull$TT(a);bj(2).requireNonNull$TT(e); +if(!xf.Comparator$lambda2){var c=j(xf,"Comparator$lambda2",function(a){m(this,a,1,c)},null,"",1);c.$clinit$=function(){g(c,1)};b(c,"$init$",function(){},1);b(c,["compare$"],function(a,b){return this.$finals$.keyComparator.compare$(this.$finals$.keyExtractor.apply$(a),this.$finals$.keyExtractor.apply$(b))})}return f(xf.Comparator$lambda2.$init$,[this,{keyComparator:e,keyExtractor:a}])},1);b(Nk,"comparing$java_util_function_Function",function(a){bj(2).requireNonNull$TT(a);if(!xf.Comparator$lambda3){var e= +j(xf,"Comparator$lambda3",function(a){m(this,a,1,e)},null,"",1);e.$clinit$=function(){g(e,1)};b(e,"$init$",function(){},1);b(e,["compare$"],function(a,b){return this.$finals$.keyExtractor.apply$(a).compareTo$(this.$finals$.keyExtractor.apply$(b))})}return f(xf.Comparator$lambda3.$init$,[this,{keyExtractor:a}])},1);b(Nk,"comparingInt$java_util_function_ToIntFunction",function(a){bj(2).requireNonNull$TT(a);if(!xf.Comparator$lambda4){var e=j(xf,"Comparator$lambda4",function(a){m(this,a,1,e)},null,"", +1);e.$clinit$=function(){g(e,1)};b(e,"$init$",function(){},1);b(e,["compare$"],function(a,b){return Integer.compare$I$I(this.$finals$.keyExtractor.applyAsInt$(a),this.$finals$.keyExtractor.applyAsInt$(b))})}return f(xf.Comparator$lambda4.$init$,[this,{keyExtractor:a}])},1);b(Nk,"comparingLong$java_util_function_ToLongFunction",function(a){bj(2).requireNonNull$TT(a);if(!xf.Comparator$lambda5){var e=j(xf,"Comparator$lambda5",function(a){m(this,a,1,e)},null,"",1);e.$clinit$=function(){g(e,1)};b(e,"$init$", +function(){},1);b(e,["compare$"],function(a,b){return Long.compare$J$J(this.$finals$.keyExtractor.applyAsLong$(a),this.$finals$.keyExtractor.applyAsLong$(b))})}return f(xf.Comparator$lambda5.$init$,[this,{keyExtractor:a}])},1);b(Nk,"comparingDouble$java_util_function_ToDoubleFunction",function(a){bj(2).requireNonNull$TT(a);if(!xf.Comparator$lambda6){var e=j(xf,"Comparator$lambda6",function(a){m(this,a,1,e)},null,"",1);e.$clinit$=function(){g(e,1)};b(e,"$init$",function(){},1);b(e,["compare$"],function(a, +b){return Double.compare$D$D(this.$finals$.keyExtractor.applyAsDouble$(a),this.$finals$.keyExtractor.applyAsDouble$(b))})}return f(xf.Comparator$lambda6.$init$,[this,{keyExtractor:a}])},1);Nk.$defaults$=function(a){b(a,"reversed$",function(){return bj(1).reverseOrder$java_util_Comparator(this)});b(a,"thenComparing$java_util_Comparator",function(a){bj(2).requireNonNull$TT(a);if(!xf.Comparator$lambda1){var c=j(xf,"Comparator$lambda1",function(a){m(this,a,1,c)},null,"",1);c.$clinit$=function(){g(c,1)}; +b(c,"$init$",function(){},1);b(c,["compare$"],function(a,b){var e=this.compare$(a,b);return 0!=e?e:this.$finals$.other.compare$(a,b)})}return f(xf.Comparator$lambda1.$init$,[this,{other:a}])});b(a,"thenComparing$java_util_function_Function$java_util_Comparator",function(b,c){return this.thenComparing$java_util_Comparator(a.comparing$java_util_function_Function$java_util_Comparator(b,c))});b(a,"thenComparing$java_util_function_Function",function(b){return this.thenComparing$java_util_Comparator(a.comparing$java_util_function_Function(b))}); +b(a,"thenComparingInt$java_util_function_ToIntFunction",function(b){return this.thenComparing$java_util_Comparator(a.comparingInt$java_util_function_ToIntFunction(b))});b(a,"thenComparingLong$java_util_function_ToLongFunction",function(b){return this.thenComparing$java_util_Comparator(a.comparingLong$java_util_function_ToLongFunction(b))});b(a,"thenComparingDouble$java_util_function_ToDoubleFunction",function(b){return this.thenComparing$java_util_Comparator(a.comparingDouble$java_util_function_ToDoubleFunction(b))})}; +n("3.2.4.07");var jw=N(java.util,"Deque",null,null,"java.util.Queue");jw.$clinit$=function(){g(jw,1)};n("3.2.4.07");var mp=j(java.util,"Dictionary");mp.$clinit$=function(){g(mp,1)};b(mp,"$init$",function(){},1);b(mp,"c$",function(){mp.$init$.apply(this)},1);n("3.2.4.07");N(java.util,"Enumeration");n("3.2.4.07");N(java.util,"EventListener");n("3.2.4.07");var Ok=j(java.util,"EventObject",null,null,"java.io.Serializable");Ok.$clinit$=function(){g(Ok,1)};b(Ok,"$init0$",function(){var a;(a=Ok.superclazz)&& +(a=a.$init0$)&&a.apply(this);this.source=null},1);b(Ok,"$init$",function(){},1);b(Ok,"c$$O",function(a){Ok.$init$.apply(this);if(null==a)throw f(g("IllegalArgumentException").c$$S,["null source"]);this.source=a},1);b(Ok,"getSource$",function(){return this.source});b(Ok,"toString",function(){return this.getClass$().getName$()+"[source="+this.source+"]"});b(Ok);n("3.2.4.07");var ge=java.util,kw={},ls=[[0,"java.util.Objects",["java.util.HashMap",".KeyIterator"],["java.util.HashMap",".KeySpliterator"], +["java.util.HashMap",".ValueIterator"],["java.util.HashMap",".ValueSpliterator"],["java.util.HashMap",".EntryIterator"],["java.util.HashMap",".EntrySpliterator"],["java.util.HashMap",".Node"],["java.util.HashMap",".KeySet"],["java.util.HashMap",".Values"],["java.util.HashMap",".EntrySet"],"InternalError",["java.util.HashMap",".TreeNode"]]],ef=function(a){return ls[a]||(ls[a]=g(ls[0][a]))},la=j(ge,"HashMap",function(){m(this,arguments,0,la)},"java.util.AbstractMap",["java.util.Map","Cloneable","java.io.Serializable"]); +la.$clinit$=function(){g(la,1)};b(la,"$init0$",function(){var a;(a=la.superclazz)&&(a=a.$init0$)&&a.apply(this);this.entrySet=this.table=null;this.loadFactor=this.threshold=this.modCount=this.size=0},1);b(la,"$init$",function(){},1);b(la,"hash$O",function(a){var b;return null==a?0:(b=a.hashCode$())^b>>>16},1);b(la,"comparableClassFor$O",function(a){return k(a,"java.lang.Comparable")?a.getClass$():null},1);b(la,"compareComparables$Class$O$O",function(a,b,c){return null==c||c.getClass$()!==a?0:b.compareTo$(c)}, +1);b(la,"tableSizeFor$I",function(a){a-=1;a|=a>>>1;a|=a>>>2;a|=a>>>4;a|=a>>>8;a|=a>>>16;return 0>a?1:1073741824<=a?1073741824:a+1},1);b(la,"c$$I$F",function(a,b){S(la,this,1);if(0>a)throw f(g("IllegalArgumentException").c$$S,["Illegal initial capacity: "+a]);1073741824=b||Float.isNaN$F(b))throw f(g("IllegalArgumentException").c$$S,["Illegal load factor: "+(new Float(b)).toString()]);this.loadFactor=b;this.threshold=la.tableSizeFor$I(a)},1);b(la,"c$$I",function(a){la.c$$I$F.apply(this, +[a,0.75])},1);b(la,"c$",function(){S(la,this,1);this.loadFactor=0.75},1);b(la,"c$$java_util_Map",function(a){S(la,this,1);this.loadFactor=0.75;this.putMapEntries$java_util_Map$Z(a,!1)},1);b(la,"putMapEntries$java_util_Map$Z",function(a,b){var c=a.size$();if(0c?c|0:1073741824,c>this.threshold&&(this.threshold=la.tableSizeFor$I(c))):c>this.threshold&&this.resize$();for(var d,c=a.entrySet$().iterator$();c.hasNext$()&&(d=c.next$(),1);){var h=d.getKey$(), +f=d.getValue$();this.putVal$I$TK$TV$Z$Z(la.hash$O(h),h,f,!1,b)}}});b(la,"size$",function(){return this.size});b(la,"isEmpty$",function(){return 0==this.size});b(la,"get$O",function(a){var b;return null==(b=this.getNode$I$O(la.hash$O(a),a))?null:b.value});b(la,["getNode$I$O"],function(a,b){var c,d,h,f;if(null!=(c=this.table)&&0<(h=c.length)&&null!=(d=c[h-1&a])){if(d.hash==a&&((f=d.key)===b||null!=b&&b.equals$O(f)))return d;if(null!=(c=d.next_)){if(k(d,"java.util.HashMap.TreeNode"))return d.getTreeNode$I$O(a, +b);do if(c.hash==a&&((f=c.key)===b||null!=b&&b.equals$O(f)))return c;while(null!=(c=c.next_))}}return null});b(la,"containsKey$O",function(a){return null!=this.getNode$I$O(la.hash$O(a),a)});b(la,["put$TK$TV"],function(a,b){return this.putVal$I$TK$TV$Z$Z(la.hash$O(a),a,b,!1,!0)});b(la,["putVal$I$TK$TV$Z$Z"],function(a,b,c,d,h){var f,g,p;if(null==(f=this.table)||0==(g=f.length))g=(f=this.resize$()).length;if(null==(g=f[p=g-1&a]))f[p]=this.newNode$I$TK$TV$java_util_HashMap_Node(a,b,c,null);else{var j, +l;if(g.hash==a&&((l=g.key)===b||null!=b&&b.equals$O(l)))j=g;else if(k(g,"java.util.HashMap.TreeNode"))j=g.putTreeVal$java_util_HashMap$java_util_HashMap_NodeA$I$TK$TV(this,f,a,b,c);else for(p=0;;++p){if(null==(j=g.next_)){g.next_=this.newNode$I$TK$TV$java_util_HashMap_Node(a,b,c,null);7<=p&&this.treeifyBin$java_util_HashMap_NodeA$I(f,a);break}if(j.hash==a&&((l=j.key)===b||null!=b&&b.equals$O(l)))break;g=j}if(null!=j){a=j.value;if(!d||null==a)j.value=c;this.afterNodeAccess$java_util_HashMap_Node(j); +return a}}++this.modCount;++this.size>this.threshold&&this.resize$();this.afterNodeInsertion$Z(h);return null});b(la,"resize$",function(){var a=this.table,b=null==a?0:a.length,c=this.threshold,d,h=0;if(0(d=b<<1)&&16<=b)h=c<<1}else 0d&&1073741820>c?c|0:2147483647);this.threshold=h;this.table=c=l(ef(8),[d]);if(null!=a)for(h=0;h(c=a.length))this.resize$();else if(null!=(d=a[c=c-1&b])){var h= +null,f=null;do{var g=this.replacementTreeNode$java_util_HashMap_Node$java_util_HashMap_Node(d,null);null==f?h=g:(g.prev=f,f.next_=g);f=g}while(null!=(d=d.next_));null!=(a[c]=h)&&h.treeify$java_util_HashMap_NodeA(a)}});b(la,"putAll$java_util_Map",function(a){this.putMapEntries$java_util_Map$Z(a,!0)});b(la,"remove$O",function(a){var b;return null==(b=this.removeNode$I$O$O$Z$Z(la.hash$O(a),a,null,!1,!0))?null:b.value});b(la,["removeNode$I$O$O$Z$Z"],function(a,b,c,d,h){var f,g,p,j;if(null!=(f=this.table)&& +0<(p=f.length)&&null!=(g=f[j=p-1&a])){p=null;var l,m,n;if(g.hash==a&&((m=g.key)===b||null!=b&&b.equals$O(m)))p=g;else if(null!=(l=g.next_))if(k(g,"java.util.HashMap.TreeNode"))p=g.getTreeNode$I$O(a,b);else{do{if(l.hash==a&&((m=l.key)===b||null!=b&&b.equals$O(m))){p=l;break}g=l}while(null!=(l=l.next_))}if(null!=p&&(!d||(n=p.value)===c||null!=c&&c.equals$O(n)))return k(p,"java.util.HashMap.TreeNode")?p.removeTreeNode$java_util_HashMap$java_util_HashMap_NodeA$Z(this,f,h):p===g?f[j]=p.next_:g.next_=p.next_, +++this.modCount,--this.size,this.afterNodeRemoval$java_util_HashMap_Node(p),p}return null});b(la,"clear$",function(){var a;this.modCount++;if(null!=(a=this.table)&&0this.threshold||null==(d=this.table)||0==(h=d.length))h=(d=this.resize$()).length;if(null!=(h=d[s=h-1&c])){if(k(h,"java.util.HashMap.TreeNode"))j=(p=h).getTreeNode$I$O(c,a);else{var l=h,m;do{if(l.hash==c&&((m=l.key)===a||null!=a&&a.equals$O(m))){j=l;break}++I}while(null!=(l=l.next_))}var n;if(null!=j&&null!=(n=j.value))return this.afterNodeAccess$java_util_HashMap_Node(j),n}m=b.apply$(a);if(null==m)return null;if(null!=j)return j.value=m,this.afterNodeAccess$java_util_HashMap_Node(j), +m;null!=p?p.putTreeVal$java_util_HashMap$java_util_HashMap_NodeA$I$TK$TV(this,d,c,a,m):(d[s]=this.newNode$I$TK$TV$java_util_HashMap_Node(c,a,m,h),7<=I&&this.treeifyBin$java_util_HashMap_NodeA$I(d,c));++this.modCount;++this.size;this.afterNodeInsertion$Z(!0);return m});b(la,["computeIfPresent$TK$java_util_function_BiFunction"],function(a,b){if(null==b)throw f(g("NullPointerException"));var c,d,h=la.hash$O(a);if(null!=(c=this.getNode$I$O(h,a))&&null!=(d=c.value)){d=b.apply$(a,d);if(null!=d)return c.value= +d,this.afterNodeAccess$java_util_HashMap_Node(c),d;this.removeNode$I$O$O$Z$Z(h,a,null,!1,!0)}return null});b(la,["compute$TK$java_util_function_BiFunction"],function(a,b){if(null==b)throw f(g("NullPointerException"));var c=la.hash$O(a),d,h,s,I=0,p=null,j=null;if(this.size>this.threshold||null==(d=this.table)||0==(h=d.length))h=(d=this.resize$()).length;if(null!=(h=d[s=h-1&c]))if(k(h,"java.util.HashMap.TreeNode"))j=(p=h).getTreeNode$I$O(c,a);else{var l=h,m;do{if(l.hash==c&&((m=l.key)===a||null!=a&& +a.equals$O(m))){j=l;break}++I}while(null!=(l=l.next_))}m=b.apply$(a,null==j?null:j.value);null!=j?null!=m?(j.value=m,this.afterNodeAccess$java_util_HashMap_Node(j)):this.removeNode$I$O$O$Z$Z(c,a,null,!1,!0):null!=m&&(null!=p?p.putTreeVal$java_util_HashMap$java_util_HashMap_NodeA$I$TK$TV(this,d,c,a,m):(d[s]=this.newNode$I$TK$TV$java_util_HashMap_Node(c,a,m,h),7<=I&&this.treeifyBin$java_util_HashMap_NodeA$I(d,c)),++this.modCount,++this.size,this.afterNodeInsertion$Z(!0));return m});b(la,["merge$TK$TV$java_util_function_BiFunction"], +function(a,b,c){if(null==b)throw f(g("NullPointerException"));if(null==c)throw f(g("NullPointerException"));var d=la.hash$O(a),h,s,I,p=0,j=null,l=null;if(this.size>this.threshold||null==(h=this.table)||0==(s=h.length))s=(h=this.resize$()).length;if(null!=(s=h[I=s-1&d]))if(k(s,"java.util.HashMap.TreeNode"))l=(j=s).getTreeNode$I$O(d,a);else{var m=s,n;do{if(m.hash==d&&((n=m.key)===a||null!=a&&a.equals$O(n))){l=m;break}++p}while(null!=(m=m.next_))}if(null!=l)return b=null!=l.value?c.apply$(l.value,b): +b,null!=b?(l.value=b,this.afterNodeAccess$java_util_HashMap_Node(l)):this.removeNode$I$O$O$Z$Z(d,a,null,!1,!0),b;null!=b&&(null!=j?j.putTreeVal$java_util_HashMap$java_util_HashMap_NodeA$I$TK$TV(this,h,d,a,b):(h[I]=this.newNode$I$TK$TV$java_util_HashMap_Node(d,a,b,s),7<=p&&this.treeifyBin$java_util_HashMap_NodeA$I(h,d)),++this.modCount,++this.size,this.afterNodeInsertion$Z(!0));return b});b(la,"forEach$java_util_function_BiConsumer",function(a){var b;if(null==a)throw f(g("NullPointerException"));if(0< +this.size&&null!=(b=this.table)){for(var c=this.modCount,d=0;d=this.loadFactor||Float.isNaN$F(this.loadFactor))throw f(g("java.io.InvalidObjectException").c$$S,["Illegal load factor: "+(new Float(this.loadFactor)).toString()]);a.readInt$();var b=a.readInt$();if(0>b)throw f(g("java.io.InvalidObjectException").c$$S,["Illegal mappings count: "+b]);if(0d?16:1073741824<=d?1073741824:la.tableSizeFor$I(d|0),c=d*c;this.threshold=1073741824>d&&1073741824>c?c|0:2147483647;this.table=l(ef(8),[d]);for(c=0;c(a=this.fence))a= +this.map,this.est=a.size,this.expectedModCount=a.modCount,a=a.table,a=this.fence=null==a?0:a.length;return a});b(Mj,"estimateSize$",function(){this.getFence$();return this.est});b(Mj);var ii=j(ge.HashMap,"KeySpliterator",function(a){m(this,a,!1,ii)},["java.util.HashMap",".HashMapSpliterator"],"java.util.Spliterator");ii.$clinit$=function(){g(ii,1)};b(ii,"$init$",function(){},1);b(ii,["c$$java_util_HashMap$I$I$I$I"],function(a,b,c,d,h){ii.superclazz.c$$java_util_HashMap$I$I$I$I.apply(this,[a,b,c,d, +h]);ii.$init$.apply(this)},1);b(ii,"trySplit$",function(){var a=this.getFence$(),b=this.index,a=b+a>>>1;return b>=a||null!=this.current?null:f(ii.c$$java_util_HashMap$I$I$I$I,[this.map,b,this.index=a,this.est>>>=1,this.expectedModCount])});b(ii,"forEachRemaining$java_util_function_Consumer",function(a){var b,c,d;if(null==a)throw f(g("NullPointerException"));var h=this.map,s=h.table;0>(c=this.fence)?(d=this.expectedModCount=h.modCount,c=this.fence=null==s?0:s.length):d=this.expectedModCount;if(null!= +s&&s.length>=c&&0<=(b=this.index)&&(b<(this.index=c)||null!=this.current)){var I=this.current;this.current=null;do null==I?I=s[b++]:(a.accept$(I.key),I=I.next_);while(null!=I||b=(b=this.getFence$())&&0<=this.index)for(;null!=this.current||this.indexthis.fence||this.est==this.map.size?64:0)|1});b(ii);var ji=j(ge.HashMap,"ValueSpliterator",function(a){m(this,a,!1,ji)},["java.util.HashMap",".HashMapSpliterator"],"java.util.Spliterator");ji.$clinit$=function(){g(ji,1)};b(ji,"$init$",function(){},1);b(ji, +["c$$java_util_HashMap$I$I$I$I"],function(a,b,c,d,h){ji.superclazz.c$$java_util_HashMap$I$I$I$I.apply(this,[a,b,c,d,h]);ji.$init$.apply(this)},1);b(ji,"trySplit$",function(){var a=this.getFence$(),b=this.index,a=b+a>>>1;return b>=a||null!=this.current?null:f(ji.c$$java_util_HashMap$I$I$I$I,[this.map,b,this.index=a,this.est>>>=1,this.expectedModCount])});b(ji,"forEachRemaining$java_util_function_Consumer",function(a){var b,c,d;if(null==a)throw f(g("NullPointerException"));var h=this.map,s=h.table; +0>(c=this.fence)?(d=this.expectedModCount=h.modCount,c=this.fence=null==s?0:s.length):d=this.expectedModCount;if(null!=s&&s.length>=c&&0<=(b=this.index)&&(b<(this.index=c)||null!=this.current)){var I=this.current;this.current=null;do null==I?I=s[b++]:(a.accept$(I.value),I=I.next_);while(null!=I||b=(b=this.getFence$())&&0<=this.index)for(;null!=this.current||this.indexthis.fence||this.est==this.map.size?64:0});b(ji);var ki=j(ge.HashMap,"EntrySpliterator",function(a){m(this,a,!1,ki)},["java.util.HashMap", +".HashMapSpliterator"],"java.util.Spliterator");ki.$clinit$=function(){g(ki,1)};b(ki,"$init$",function(){},1);b(ki,["c$$java_util_HashMap$I$I$I$I"],function(a,b,c,d,h){ki.superclazz.c$$java_util_HashMap$I$I$I$I.apply(this,[a,b,c,d,h]);ki.$init$.apply(this)},1);b(ki,"trySplit$",function(){var a=this.getFence$(),b=this.index,a=b+a>>>1;return b>=a||null!=this.current?null:f(ki.c$$java_util_HashMap$I$I$I$I,[this.map,b,this.index=a,this.est>>>=1,this.expectedModCount])});b(ki,["forEachRemaining$java_util_function_Consumer"], +function(a){var b,c,d;if(null==a)throw f(g("NullPointerException"));var h=this.map,s=h.table;0>(c=this.fence)?(d=this.expectedModCount=h.modCount,c=this.fence=null==s?0:s.length):d=this.expectedModCount;if(null!=s&&s.length>=c&&0<=(b=this.index)&&(b<(this.index=c)||null!=this.current)){var I=this.current;this.current=null;do null==I?I=s[b++]:(a.accept$(I),I=I.next_);while(null!=I||b=(b=this.getFence$())&&0<=this.index)for(;null!=this.current||this.indexthis.fence||this.est==this.map.size?64: +0)|1});b(ki);var nb=j(ge.HashMap,"TreeNode",function(a){m(this,a,!1,nb)},["java.util.LinkedHashMap",".Entry"]);nb.$clinit$=function(){g(nb,1)};b(nb,"$init0$",function(){var a;(a=nb.superclazz)&&(a=a.$init0$)&&a.apply(this);this.prev=this.right=this.left=this.parent=null;this.red=!1},1);b(nb,"$init$",function(){},1);b(nb,["c$$I$TK$TV$java_util_HashMap_Node"],function(a,b,c,d){nb.superclazz.c$$I$TK$TV$java_util_HashMap_Node.apply(this,[a,b,c,d]);nb.$init$.apply(this)},1);b(nb,"root$",function(){for(var a= +this,b;;){if(null==(b=a.parent))return a;a=b}});b(nb,["moveRootToFront$java_util_HashMap_NodeA$java_util_HashMap_TreeNode"],function(a,b){var c;if(null!=b&&null!=a&&0<(c=a.length)){var d=c-1&b.hash;c=a[d];if(b!==c){a[d]=b;var h=b.prev;if(null!=(d=b.next_))d.prev=h;null!=h&&(h.next_=d);null!=c&&(c.prev=b);b.next_=c;b.prev=null}rb(nb,this,function(){return nb.checkInvariants$java_util_HashMap_TreeNode(b)})}},1);b(nb,["find$I$O$Class"],function(a,b,c){var d=this;do{var h,f,g,p=d.left,j=d.right;if((h= +d.hash)>a)d=p;else if(hf?p:j;else{if(null!=(d=j.find$I$O$Class(a,b,c)))return d;d=p}}}while(null!=d);return null});b(nb,["getTreeNode$I$O"],function(a,b){return(null!=this.parent?this.root$():this).find$I$O$Class(a,b,null)});b(nb,"tieBreakOrder$O$O",function(a,b){var c;if(null==a|| +null==b||0==(c=a.getClass$().getName$().compareTo$S(b.getClass$().getName$())))c=System.identityHashCode$O(a)<=System.identityHashCode$O(b)?-1:1;return c},1);b(nb,["treeify$java_util_HashMap_NodeA"],function(a){for(var b=null,c=this,d;null!=c;c=d)if(d=c.next_,c.left=c.right=null,null==b)c.parent=null,c.red=!1,b=c;else for(var h=c.key,f=c.hash,g=null,p=b;;){var j,k,l=p.key;if((k=p.hash)>f)j=-1;else if(k=j?p.left:p.right)){c.parent=k;0>=j?k.left=c:k.right=c;b=nb.balanceInsertion$java_util_HashMap_TreeNode$java_util_HashMap_TreeNode(b,c);break}}nb.moveRootToFront$java_util_HashMap_NodeA$java_util_HashMap_TreeNode(a,b)});b(nb,["untreeify$java_util_HashMap"],function(a){for(var b=null,c=null,d=this;null!=d;d=d.next_){var h=a.replacementNode$java_util_HashMap_Node$java_util_HashMap_Node(d,null);null==c?b=h:c.next_=h;c=h}return b});b(nb,["putTreeVal$java_util_HashMap$java_util_HashMap_NodeA$I$TK$TV"], +function(a,b,c,d,h){for(var f=null,g=!1,p=null!=this.parent?this.root$():this,j=p;;){var k,l,m;if((l=j.hash)>c)k=-1;else if(l=k?j.left:j.right))return f= +l.next_,a=a.newTreeNode$I$TK$TV$java_util_HashMap_Node(c,d,h,f),0>=k?l.left=a:l.right=a,l.next_=a,a.parent=a.prev=l,null!=f&&(f.prev=a),nb.moveRootToFront$java_util_HashMap_NodeA$java_util_HashMap_TreeNode(b,nb.balanceInsertion$java_util_HashMap_TreeNode$java_util_HashMap_TreeNode(p,a)),null}});b(nb,["removeTreeNode$java_util_HashMap$java_util_HashMap_NodeA$Z"],function(a,b,c){var d;if(!(null==b||0==(d=b.length))){var h=d-1&this.hash,f=b[h];d=f;var g,p=this.next_,j=this.prev;null==j?b[h]=f=p:j.next_= +p;null!=p&&(p.prev=j);if(null!=f)if(null!=d.parent&&(d=d.root$()),null==d||null==d.right||null==(g=d.left)||null==g.left)b[h]=f.untreeify$java_util_HashMap(a);else{a=this.left;g=this.right;if(null!=a&&null!=g){for(h=g;null!=(f=h.left);)h=f;f=h.red;h.red=this.red;this.red=f;p=h.right;f=this.parent;if(h===g)this.parent=h,h.right=this;else{j=h.parent;if(null!=(this.parent=j))h===j.left?j.left=this:j.right=this;if(null!=(h.right=g))g.parent=h}this.left=null;if(null!=(this.right=p))p.parent=this;if(null!= +(h.left=a))a.parent=h;null==(h.parent=f)?d=h:this===f.left?f.left=h:f.right=h;a=null!=p?p:this}else a=null!=a?a:null!=g?g:this;a!==this&&(f=a.parent=this.parent,null==f?d=a:this===f.left?f.left=a:f.right=a,this.left=this.right=this.parent=null);d=this.red?d:nb.balanceDeletion$java_util_HashMap_TreeNode$java_util_HashMap_TreeNode(d,a);a===this&&(f=this.parent,this.parent=null,null!=f&&(this===f.left?f.left=null:this===f.right&&(f.right=null)));c&&nb.moveRootToFront$java_util_HashMap_NodeA$java_util_HashMap_TreeNode(b, +d)}}});b(nb,["split$java_util_HashMap$java_util_HashMap_NodeA$I$I"],function(a,b,c,d){for(var h=null,f=null,g=null,p=null,j=0,k=0,l=this,m;null!=l;l=m)m=l.next_,l.next_=null,0==(l.hash&d)?(null==(l.prev=f)?h=l:f.next_=l,f=l,++j):(null==(l.prev=p)?g=l:p.next_=l,p=l,++k);null!=h&&(6>=j?b[c]=h.untreeify$java_util_HashMap(a):(b[c]=h,null!=g&&h.treeify$java_util_HashMap_NodeA(b)));null!=g&&(6>=k?b[c+d]=g.untreeify$java_util_HashMap(a):(b[c+d]=g,null!=h&&g.treeify$java_util_HashMap_NodeA(b)))});b(nb,["rotateLeft$java_util_HashMap_TreeNode$java_util_HashMap_TreeNode"], +function(a,b){var c,d,h;if(null!=b&&null!=(c=b.right)){if(null!=(h=b.right=c.left))h.parent=b;null==(d=c.parent=b.parent)?(a=c).red=!1:d.left===b?d.left=c:d.right=c;c.left=b;b.parent=c}return a},1);b(nb,["rotateRight$java_util_HashMap_TreeNode$java_util_HashMap_TreeNode"],function(a,b){var c,d,h;if(null!=b&&null!=(c=b.left)){if(null!=(h=b.left=c.right))h.parent=b;null==(d=c.parent=b.parent)?(a=c).red=!1:d.right===b?d.right=c:d.left=c;c.right=b;b.parent=c}return a},1);b(nb,["balanceInsertion$java_util_HashMap_TreeNode$java_util_HashMap_TreeNode"], +function(a,b){b.red=!0;for(var c,d,h,f;;){if(null==(c=b.parent))return b.red=!1,b;if(!c.red||null==(d=c.parent))return a;c===(h=d.left)?null!=(f=d.right)&&f.red?(f.red=!1,c.red=!1,d.red=!0,b=d):(b===c.right&&(a=nb.rotateLeft$java_util_HashMap_TreeNode$java_util_HashMap_TreeNode(a,b=c),d=null==(c=b.parent)?null:c.parent),null!=c&&(c.red=!1,null!=d&&(d.red=!0,a=nb.rotateRight$java_util_HashMap_TreeNode$java_util_HashMap_TreeNode(a,d)))):null!=h&&h.red?(h.red=!1,c.red=!1,d.red=!0,b=d):(b===c.left&&(a= +nb.rotateRight$java_util_HashMap_TreeNode$java_util_HashMap_TreeNode(a,b=c),d=null==(c=b.parent)?null:c.parent),null!=c&&(c.red=!1,null!=d&&(d.red=!0,a=nb.rotateLeft$java_util_HashMap_TreeNode$java_util_HashMap_TreeNode(a,d))))}},1);b(nb,["balanceDeletion$java_util_HashMap_TreeNode$java_util_HashMap_TreeNode"],function(a,b){for(var c,d,h;;){if(null==b||b===a)return a;if(null==(c=b.parent))return b.red=!1,b;if(b.red)return b.red=!1,a;if((d=c.left)===b){if(null!=(h=c.right)&&h.red)h.red=!1,c.red=!0, +a=nb.rotateLeft$java_util_HashMap_TreeNode$java_util_HashMap_TreeNode(a,c),h=null==(c=b.parent)?null:c.right;if(null==h)b=c;else{var f=h.left,g=h.right;if((null==g||!g.red)&&(null==f||!f.red))h.red=!0,b=c;else{if(null==g||!g.red)null!=f&&(f.red=!1),h.red=!0,a=nb.rotateRight$java_util_HashMap_TreeNode$java_util_HashMap_TreeNode(a,h),h=null==(c=b.parent)?null:c.right;if(null!=h&&(h.red=null==c?!1:c.red,null!=(g=h.right)))g.red=!1;null!=c&&(c.red=!1,a=nb.rotateLeft$java_util_HashMap_TreeNode$java_util_HashMap_TreeNode(a, +c));b=a}}}else if(null!=d&&d.red&&(d.red=!1,c.red=!0,a=nb.rotateRight$java_util_HashMap_TreeNode$java_util_HashMap_TreeNode(a,c),d=null==(c=b.parent)?null:c.left),null==d)b=c;else if(f=d.left,g=d.right,(null==f||!f.red)&&(null==g||!g.red))d.red=!0,b=c;else{if(null==f||!f.red)null!=g&&(g.red=!1),d.red=!0,a=nb.rotateLeft$java_util_HashMap_TreeNode$java_util_HashMap_TreeNode(a,d),d=null==(c=b.parent)?null:c.left;if(null!=d&&(d.red=null==c?!1:c.red,null!=(f=d.left)))f.red=!1;null!=c&&(c.red=!1,a=nb.rotateRight$java_util_HashMap_TreeNode$java_util_HashMap_TreeNode(a, +c));b=a}}},1);b(nb,["checkInvariants$java_util_HashMap_TreeNode"],function(a){var b=a.parent,c=a.left,d=a.right,h=a.prev,f=a.next_;return null!=h&&h.next_!==a||null!=f&&f.prev!==a||null!=b&&a!==b.left&&a!==b.right||null!=c&&(c.parent!==a||c.hash>a.hash)||null!=d&&(d.parent!==a||d.hashb)throw f(g("java.io.InvalidObjectException").c$$S,["Illegal capacity: "+b]);var c=a.readFloat$();if(0>=c||Float.isNaN$F(c))throw f(g("java.io.InvalidObjectException").c$$S, +["Illegal load factor: "+(new Float(c)).toString()]);var d=a.readInt$();if(0>d)throw f(g("java.io.InvalidObjectException").c$$S,["Illegal size: "+d]);b=Math.min(d*Math.min(1/c,4),1073741824)|0;this.map=k(this,"java.util.LinkedHashSet")?f(Cl(2).c$$I$F,[b,c]):f(Cl(1).c$$I$F,[b,c]);for(b=0;ba)throw f(g("IllegalArgumentException").c$$S,["Illegal Capacity: "+a]);if(0>=b||Float.isNaN$F(b))throw f(g("IllegalArgumentException").c$$S,["Illegal Load: "+(new Float(b)).toString()]);0==a&&(a=1);this.loadFactor=b;this.table=l(yc(2),[a]);this.threshold=Math.min(a* +b,2147483640)|0},1);b(gb,"c$$I",function(a){gb.c$$I$F.apply(this,[a,0.75])},1);b(gb,"c$",function(){gb.c$$I$F.apply(this,[11,0.75])},1);b(gb,"c$$java_util_Map",function(a){gb.c$$I$F.apply(this,[Math.max(2*a.size$(),11),0.75]);this.putAll$java_util_Map(a)},1);b(gb,"size$",function(){return this.count});b(gb,"isEmpty$",function(){return 0==this.count});b(gb,"keys$",function(){return pg.getEnumeration$I.apply(this,[0])});b(gb,"elements$",function(){return pg.getEnumeration$I.apply(this,[1])});b(gb,"contains$O", +function(a){if(null==a)throw f(g("NullPointerException"));for(var b=this.table,c=b.length;0=this.threshold&& +(this.rehash$(),h=this.table,a=b.hashCode$(),d=(a&2147483647)%h.length);var g=h[d];h[d]=f(yc(2).c$$I$TK$TV$java_util_Hashtable_Entry,[a,b,c,g]);this.count++},pg);b(gb,["put$TK$TV"],function(a,b){if(null==b)throw f(g("NullPointerException"));for(var c=this.table,d=a.hashCode$(),h=(d&2147483647)%c.length,c=c[h];null!=c;c=c.next_)if(c.hash==d&&c.key.equals$O(a))return d=c.value,c.value=b,d;pg.addEntry$I$TK$TV$I.apply(this,[d,a,b,h]);return null});b(gb,"remove$O",function(a){for(var b=this.table,c=a.hashCode$(), +d=(c&2147483647)%b.length,h=b[d],f=null;null!=h;f=h,h=h.next_)if(h.hash==c&&h.key.equals$O(a))return this.modCount++,null!=f?f.next_=h.next_:b[d]=h.next_,this.count--,a=h.value,h.value=null,a;return null});b(gb,"putAll$java_util_Map",function(a){var b;for(a=a.entrySet$().iterator$();a.hasNext$()&&(b=a.next$(),1);)this.put$TK$TV(b.getKey$(),b.getValue$())});b(gb,"clear$",function(){var a=this.table;this.modCount++;for(var b=a.length;0<=--b;)a[b]=null;this.count=0});b(gb,"clone$",function(){try{var a= +we(this);a.table=l(yc(2),[this.table.length]);for(var b=this.table.length;0this.loadFactor)return a;this.loadFactor=-this.loadFactor;for(var b,c=0,d=this.table;cc&&0==(d&1)&&d--;0b&&(d=b);this.table=l(yc(2),[d]);this.threshold=Math.min(d*this.loadFactor,2147483640)|0;for(this.count=0;0a)throw f(g("IllegalArgumentException").c$$S,["expectedMaxSize is negative: "+a]);ne.init$I.apply(this,[ma.capacity$I(a)])},1);b(ma,"capacity$I",function(a){return 178956970=a?4:Integer.highestOneBit$I(a+(a<<1))},1);b(ma,"init$I",function(a){this.table=l(java.lang.Object,[2*a])},ne);b(ma,"c$$java_util_Map",function(a){ma.c$$I.apply(this,[1.1*(1+a.size$())|0]);this.putAll$java_util_Map(a)},1);b(ma,"size$",function(){return this.size});b(ma,"isEmpty$",function(){return 0==this.size});b(ma,"hash$O$I",function(a,b){var c=System.identityHashCode$O(a);return(c<<1)-(c<<8)&b-1},1);b(ma,"nextKeyIndex$I$I",function(a,b){return a+2h&&ne.resize$I.apply(this,[h]))continue a;this.modCount++;d[f]=c;d[f+1]=b;this.size=g;return null}});b(ma,"resize$I",function(a){a*=2;var b=this.table, +c=b.length;if(1073741824==c){if(536870911==this.size)throw f(g("IllegalStateException").c$$S,["Capacity exhausted."]);return!1}if(c>=a)return!1;for(var d=l(java.lang.Object,[a]),h=0;hthis.size&&ne.resize$I.apply(this,[ma.capacity$I(b)]);var c;for(a=a.entrySet$().iterator$();a.hasNext$()&& +(c=a.next$(),1);)this.put$TK$TV(c.getKey$(),c.getValue$())}});b(ma,"remove$O",function(a){var b=ma.maskNull$O(a);a=this.table;for(var c=a.length,d=ma.hash$O$I(b,c);;){var h=a[d];if(h===b)return this.modCount++,this.size--,b=a[d+1],a[d+1]=null,a[d]=null,ne.closeDeletion$I.apply(this,[d]),b;if(null==h)return null;d=ma.nextKeyIndex$I$I(d,c)}});b(ma,"removeMapping$O$O",function(a,b){for(var c=ma.maskNull$O(a),d=this.table,h=d.length,f=ma.hash$O$I(c,h);;){var g=d[f];if(g===c){if(d[f+1]!==b)return!1;this.modCount++; +this.size--;d[f]=null;d[f+1]=null;ne.closeDeletion$I.apply(this,[f]);return!0}if(null==g)return!1;f=ma.nextKeyIndex$I$I(f,h)}},ne);b(ma,"closeDeletion$I",function(a){for(var b=this.table,c=b.length,d,h=ma.nextKeyIndex$I$I(a,c);null!=(d=b[h]);h=ma.nextKeyIndex$I$I(h,c)){var f=ma.hash$O$I(d,c);if(hb)throw f(g("java.io.StreamCorruptedException").c$$S,["Illegal mappings count: "+b]);ne.init$I.apply(this,[ma.capacity$I(b)]);for(var c=0;c=a&&this.traversalTable===this.b$["java.util.IdentityHashMap"].table){var I=c-a,p=l(java.lang.Object,[I]);System.arraycopy$O$I$O$I$I(b,a,p,0,I);this.traversalTable=p;this.index=0}b[d]=h;b[d+1]=b[s+1];b[s]=null;b[s+1]=null;d=s}}}});b(Qk);var ho=j(vd.IdentityHashMap,"KeyIterator",function(a){m(this,a,!0,ho)},["java.util.IdentityHashMap",".IdentityHashMapIterator"]);ho.$clinit$=function(){g(ho,1)};b(ho,"$init$",function(){}, +1);b(ho,"next$",function(){return vd.IdentityHashMap.unmaskNull$O(this.traversalTable[this.nextIndex$()])});b(ho);var io=j(vd.IdentityHashMap,"ValueIterator",function(a){m(this,a,!0,io)},["java.util.IdentityHashMap",".IdentityHashMapIterator"]);io.$clinit$=function(){g(io,1)};b(io,"$init$",function(){},1);b(io,"next$",function(){return this.traversalTable[this.nextIndex$()+1]});b(io);var Rk=j(vd.IdentityHashMap,"EntryIterator",function(a){m(this,a,!0,Rk)},["java.util.IdentityHashMap",".IdentityHashMapIterator"]); +Rk.$clinit$=function(){g(Rk,1)};b(Rk,"$init0$",function(){var a;(a=Rk.superclazz)&&(a=a.$init0$)&&a.apply(this);this.lastReturnedEntry=null},1);b(Rk,"$init$",function(){},1);b(Rk,"next$",function(){return this.lastReturnedEntry=f(Uf(1).c$$I,[this,null,this.nextIndex$()])});b(Rk,"remove$",function(){this.lastReturnedIndex=null==this.lastReturnedEntry?-1:this.lastReturnedEntry.index;Rk.superclazz.prototype.remove$.apply(this,[]);this.lastReturnedEntry.index=this.lastReturnedIndex;this.lastReturnedEntry= +null});var yf=j(vd.IdentityHashMap.EntryIterator,"Entry",function(a){m(this,a,!0,yf)},null,[["java.util.Map","java.util.Map.Entry"]]);yf.$clinit$=function(){g(yf,1)};b(yf,"$init0$",function(){var a;(a=yf.superclazz)&&(a=a.$init0$)&&a.apply(this);this.index=0},1);b(yf,"$init$",function(){},1);b(yf,"c$$I",function(a){yf.$init$.apply(this);this.index=a},1);b(yf,"getKey$",function(){ne.checkIndexForEntryUse.apply(this,[]);return vd.IdentityHashMap.unmaskNull$O(this.this$0.traversalTable[this.index])}); +b(yf,"getValue$",function(){ne.checkIndexForEntryUse.apply(this,[]);return this.this$0.traversalTable[this.index+1]});b(yf,["setValue$TV"],function(a){ne.checkIndexForEntryUse.apply(this,[]);var b=this.this$0.traversalTable[this.index+1];this.this$0.traversalTable[this.index+1]=a;this.this$0.traversalTable!==this.b$["java.util.IdentityHashMap"].table&&this.b$["java.util.IdentityHashMap"].put$TK$TV.apply(this.b$["java.util.IdentityHashMap"],[this.this$0.traversalTable[this.index],a]);return b});b(yf, +"equals$O",function(a){return 0>this.index?yf.superclazz.prototype.equals$O.apply(this,[a]):!k(a,"java.util.Map.Entry")?!1:a.getKey$()===vd.IdentityHashMap.unmaskNull$O(this.this$0.traversalTable[this.index])&&a.getValue$()===this.this$0.traversalTable[this.index+1]});b(yf,"hashCode$",function(){return 0>this.this$0.lastReturnedIndex?yf.superclazz.prototype.hashCode$.apply(this,[]):System.identityHashCode$O(vd.IdentityHashMap.unmaskNull$O(this.this$0.traversalTable[this.index]))^System.identityHashCode$O(this.this$0.traversalTable[this.index+ +1])});b(yf,"toString",function(){return 0>this.index?yf.superclazz.prototype.toString.apply(this,[]):vd.IdentityHashMap.unmaskNull$O(this.this$0.traversalTable[this.index])+"="+this.this$0.traversalTable[this.index+1]});b(yf,"checkIndexForEntryUse",function(){if(0>this.index)throw f(g("IllegalStateException").c$$S,["Entry was removed"]);},ne);b(yf);b(Rk);var jh=j(vd.IdentityHashMap,"KeySet",function(a){m(this,a,!0,jh)},"java.util.AbstractSet");jh.$clinit$=function(){g(jh,1)};b(jh,"$init$",function(){}, +1);b(jh,"iterator$",function(){return f(Uf(2),[this,null])});b(jh,"size$",function(){return this.this$0.size});b(jh,"contains$O",function(a){return this.b$["java.util.IdentityHashMap"].containsKey$O.apply(this.b$["java.util.IdentityHashMap"],[a])});b(jh,"remove$O",function(a){var b=this.this$0.size;this.b$["java.util.IdentityHashMap"].remove$O.apply(this.b$["java.util.IdentityHashMap"],[a]);return this.this$0.size!=b});b(jh,"removeAll$java_util_Collection",function(a){Uf(3).requireNonNull$TT(a);for(var b= +!1,c=this.iterator$();c.hasNext$();)a.contains$O(c.next$())&&(c.remove$(),b=!0);return b});b(jh,"clear$",function(){this.b$["java.util.IdentityHashMap"].clear$.apply(this.b$["java.util.IdentityHashMap"],[])});b(jh,"hashCode$",function(){for(var a=0,b,c=this.iterator$();c.hasNext$()&&(b=c.next$(),1);)a+=System.identityHashCode$O(b);return a});b(jh,"toArray$",function(){return this.toArray$TTA(l(java.lang.Object,[0]))});b(jh,"toArray$TTA",function(a){var b=this.this$0.modCount,c=this.size$();a.length< +c&&(a=l(a.getClass$().getComponentType$(),c));for(var d=this.this$0.table,h=0,s=0;s=c)throw f(g("java.util.ConcurrentModificationException"));a[h++]=vd.IdentityHashMap.unmaskNull$O(I)}}if(h=c)throw f(g("java.util.ConcurrentModificationException"));a[h++]=d[s+1]}if(h=c)throw f(g("java.util.ConcurrentModificationException"));a[h++]=f(Uf(9).c$$TK$TV,[vd.IdentityHashMap.unmaskNull$O(I),d[s+1]])}}if(h(a=this.fence))this.est=this.map.size,this.expectedModCount=this.map.modCount,a=this.fence=this.map.table.length;return a});b(Nj,"estimateSize$",function(){this.getFence$();return this.est});b(Nj);var mi=j(vd.IdentityHashMap,"KeySpliterator",function(a){m(this,a,!1,mi)},["java.util.IdentityHashMap",".IdentityHashMapSpliterator"],"java.util.Spliterator"); +mi.$clinit$=function(){g(mi,1)};b(mi,"$init$",function(){},1);b(mi,["c$$java_util_IdentityHashMap$I$I$I$I"],function(a,b,c,d,h){mi.superclazz.c$$java_util_IdentityHashMap$I$I$I$I.apply(this,[a,b,c,d,h]);mi.$init$.apply(this)},1);b(mi,"trySplit$",function(){var a=this.getFence$(),b=this.index,a=b+a>>>1&-2;return b>=a?null:f(mi.c$$java_util_IdentityHashMap$I$I$I$I,[this.map,b,this.index=a,this.est>>>=1,this.expectedModCount])});b(mi,"forEachRemaining$java_util_function_Consumer",function(a){if(null== +a)throw f(g("NullPointerException"));var b,c,d,h,s;if(null!=(h=this.map)&&null!=(s=h.table)&&0<=(b=this.index)&&(this.index=c=this.getFence$())<=s.length){for(;bthis.fence||this.est==this.map.size?64:0)|1});b(mi);var ni=j(vd.IdentityHashMap,"ValueSpliterator",function(a){m(this,a,!1,ni)},["java.util.IdentityHashMap",".IdentityHashMapSpliterator"],"java.util.Spliterator");ni.$clinit$=function(){g(ni,1)};b(ni, +"$init$",function(){},1);b(ni,["c$$java_util_IdentityHashMap$I$I$I$I"],function(a,b,c,d,h){ni.superclazz.c$$java_util_IdentityHashMap$I$I$I$I.apply(this,[a,b,c,d,h]);ni.$init$.apply(this)},1);b(ni,"trySplit$",function(){var a=this.getFence$(),b=this.index,a=b+a>>>1&-2;return b>=a?null:f(ni.c$$java_util_IdentityHashMap$I$I$I$I,[this.map,b,this.index=a,this.est>>>=1,this.expectedModCount])});b(ni,"forEachRemaining$java_util_function_Consumer",function(a){if(null==a)throw f(g("NullPointerException")); +var b,c,d,h;if(null!=(d=this.map)&&null!=(h=d.table)&&0<=(b=this.index)&&(this.index=c=this.getFence$())<=h.length){for(;bthis.fence||this.est==this.map.size?64:0});b(ni);var oi=j(vd.IdentityHashMap,"EntrySpliterator",function(a){m(this,a,!1,oi)},["java.util.IdentityHashMap",".IdentityHashMapSpliterator"],"java.util.Spliterator");oi.$clinit$=function(){g(oi,1)};b(oi,"$init$",function(){},1);b(oi,["c$$java_util_IdentityHashMap$I$I$I$I"],function(a,b,c,d,h){oi.superclazz.c$$java_util_IdentityHashMap$I$I$I$I.apply(this, +[a,b,c,d,h]);oi.$init$.apply(this)},1);b(oi,"trySplit$",function(){var a=this.getFence$(),b=this.index,a=b+a>>>1&-2;return b>=a?null:f(oi.c$$java_util_IdentityHashMap$I$I$I$I,[this.map,b,this.index=a,this.est>>>=1,this.expectedModCount])});b(oi,["forEachRemaining$java_util_function_Consumer"],function(a){if(null==a)throw f(g("NullPointerException"));var b,c,d,h;if(null!=(d=this.map)&&null!=(h=d.table)&&0<=(b=this.index)&&(this.index=c=this.getFence$())<=h.length){for(;bthis.fence||this.est==this.map.size?64:0)|1});b(oi);n("3.2.4.07");var ps=[[0,"java.util.Objects"]];N(java.util,"Iterator").$defaults$=function(a){b(a,"remove$",function(){throw f(g("UnsupportedOperationException").c$$S,["remove"]);});b(a,"forEachRemaining$java_util_function_Consumer",function(a){for((ps[1]||(ps[1]=g(ps[0][1]))).requireNonNull$TT(a);this.hasNext$();)a.accept$(this.next$())})}; +n("3.2.4.07");var Lg=java.util,jo={},qs=[[0,["java.util.LinkedHashMap",".LinkedKeyIterator"],"java.util.Spliterators",["java.util.LinkedHashMap",".LinkedValueIterator"],["java.util.LinkedHashMap",".LinkedEntryIterator"],["java.util.LinkedHashMap",".Entry"],["java.util.HashMap",".TreeNode"],["java.util.LinkedHashMap",".LinkedKeySet"],["java.util.LinkedHashMap",".LinkedValues"],["java.util.LinkedHashMap",".LinkedEntrySet"]]],pi=function(a){return qs[a]||(qs[a]=g(qs[0][a]))},Fb=j(Lg,"LinkedHashMap", +function(){m(this,arguments,0,Fb)},"java.util.HashMap","java.util.Map");Fb.$clinit$=function(){g(Fb,1)};b(Fb,"$init0$",function(){var a;(a=Fb.superclazz)&&(a=a.$init0$)&&a.apply(this);this.tail=this.head=null;this.accessOrder=!1},1);b(Fb,"$init$",function(){},1);b(Fb,["linkNodeLast$java_util_LinkedHashMap_Entry"],function(a){var b=this.tail;this.tail=a;null==b?this.head=a:(a.before=b,b.after=a)},jo);b(Fb,["transferLinks$java_util_LinkedHashMap_Entry$java_util_LinkedHashMap_Entry"],function(a,b){var c= +b.before=a.before,d=b.after=a.after;null==c?this.head=b:c.after=b;null==d?this.tail=b:d.before=b},jo);b(Fb,"reinitialize$",function(){Fb.superclazz.prototype.reinitialize$.apply(this,[]);this.head=this.tail=null});b(Fb,["newNode$I$TK$TV$java_util_HashMap_Node"],function(a,b,c,d){a=f(pi(5).c$$I$TK$TV$java_util_HashMap_Node,[a,b,c,d]);jo.linkNodeLast$java_util_LinkedHashMap_Entry.apply(this,[a]);return a});b(Fb,["replacementNode$java_util_HashMap_Node$java_util_HashMap_Node"],function(a,b){var c=f(pi(5).c$$I$TK$TV$java_util_HashMap_Node, +[a.hash,a.key,a.value,b]);jo.transferLinks$java_util_LinkedHashMap_Entry$java_util_LinkedHashMap_Entry.apply(this,[a,c]);return c});b(Fb,["newTreeNode$I$TK$TV$java_util_HashMap_Node"],function(a,b,c,d){a=f(pi(6).c$$I$TK$TV$java_util_HashMap_Node,[a,b,c,d]);jo.linkNodeLast$java_util_LinkedHashMap_Entry.apply(this,[a]);return a});b(Fb,["replacementTreeNode$java_util_HashMap_Node$java_util_HashMap_Node"],function(a,b){var c=f(pi(6).c$$I$TK$TV$java_util_HashMap_Node,[a.hash,a.key,a.value,b]);jo.transferLinks$java_util_LinkedHashMap_Entry$java_util_LinkedHashMap_Entry.apply(this, +[a,c]);return c});b(Fb,["afterNodeRemoval$java_util_HashMap_Node"],function(a){var b=a.before,c=a.after;a.before=a.after=null;null==b?this.head=c:b.after=c;null==c?this.tail=b:c.before=b});b(Fb,"afterNodeInsertion$Z",function(a){var b;if(a&&null!=(b=this.head)&&this.removeEldestEntry$java_util_Map_Entry(b))a=b.key,this.removeNode$I$O$O$Z$Z(Lg.HashMap.hash$O(a),a,null,!1,!0)});b(Fb,["afterNodeAccess$java_util_HashMap_Node"],function(a){var b;if(this.accessOrder&&(b=this.tail)!==a){var c=a.before,d= +a.after;a.after=null;null==c?this.head=d:c.after=d;null!=d?d.before=c:b=c;null==b?this.head=a:(a.before=b,b.after=a);this.tail=a;++this.modCount}});b(Fb,"internalWriteEntries$java_io_ObjectOutputStream",function(a){for(var b=this.head;null!=b;b=b.after)a.writeObject$O(b.key),a.writeObject$O(b.value)});b(Fb,"c$$I$F",function(a,b){Fb.superclazz.c$$I$F.apply(this,[a,b]);Fb.$init$.apply(this);this.accessOrder=!1},1);b(Fb,"c$$I",function(a){Fb.superclazz.c$$I.apply(this,[a]);Fb.$init$.apply(this);this.accessOrder= +!1},1);b(Fb,"c$",function(){Fb.superclazz.c$.apply(this,[]);Fb.$init$.apply(this);this.accessOrder=!1},1);b(Fb,"c$$java_util_Map",function(a){Fb.superclazz.c$.apply(this,[]);Fb.$init$.apply(this);this.accessOrder=!1;this.putMapEntries$java_util_Map$Z(a,!1)},1);b(Fb,"c$$I$F$Z",function(a,b,c){Fb.superclazz.c$$I$F.apply(this,[a,b]);Fb.$init$.apply(this);this.accessOrder=c},1);b(Fb,"containsValue$O",function(a){for(var b=this.head;null!=b;b=b.after){var c=b.value;if(c===a||null!=a&&a.equals$O(c))return!0}return!1}); +b(Fb,"get$O",function(a){if(null==(a=this.getNode$I$O(Lg.HashMap.hash$O(a),a)))return null;this.accessOrder&&this.afterNodeAccess$java_util_HashMap_Node(a);return a.value});b(Fb,["getOrDefault$O$TV"],function(a,b){var c;if(null==(c=this.getNode$I$O(Lg.HashMap.hash$O(a),a)))return b;this.accessOrder&&this.afterNodeAccess$java_util_HashMap_Node(c);return c.value});b(Fb,"clear$",function(){Fb.superclazz.prototype.clear$.apply(this,[]);this.head=this.tail=null});b(Fb,["removeEldestEntry$java_util_Map_Entry"], +function(){return!1});b(Fb,"keySet$",function(){var a;return null==(a=this.keySet)?this.keySet=f(pi(7),[this,null]):a});b(Fb,"values$",function(){var a;return null==(a=this.values)?this.values=f(pi(8),[this,null]):a});b(Fb,"entrySet$",function(){var a;return null==(a=this.entrySet)?this.entrySet=f(pi(9),[this,null]):a});b(Fb,"forEach$java_util_function_BiConsumer",function(a){if(null==a)throw f(g("NullPointerException"));for(var b=this.modCount,c=this.head;null!=c;c=c.after)a.accept$(c.key,c.value); +if(this.modCount!=b)throw f(g("java.util.ConcurrentModificationException"));});b(Fb,"replaceAll$java_util_function_BiFunction",function(a){if(null==a)throw f(g("NullPointerException"));for(var b=this.modCount,c=this.head;null!=c;c=c.after)c.value=a.apply$(c.key,c.value);if(this.modCount!=b)throw f(g("java.util.ConcurrentModificationException"));});var Sk=j(Lg.LinkedHashMap,"Entry",function(a){m(this,a,!1,Sk)},["java.util.HashMap",".Node"]);Sk.$clinit$=function(){g(Sk,1)};b(Sk,"$init0$",function(){var a; +(a=Sk.superclazz)&&(a=a.$init0$)&&a.apply(this);this.after=this.before=null},1);b(Sk,"$init$",function(){},1);b(Sk,["c$$I$TK$TV$java_util_HashMap_Node"],function(a,b,c,d){Sk.superclazz.c$$I$TK$TV$java_util_HashMap_Node.apply(this,[a,b,c,d]);Sk.$init$.apply(this)},1);b(Sk);var fj=j(Lg.LinkedHashMap,"LinkedKeySet",function(a){m(this,a,!0,fj)},"java.util.AbstractSet");fj.$clinit$=function(){g(fj,1)};b(fj,"$init$",function(){},1);b(fj,"size$",function(){return this.this$0.size});b(fj,"clear$",function(){this.b$["java.util.LinkedHashMap"].clear$.apply(this.b$["java.util.LinkedHashMap"], +[])});b(fj,"iterator$",function(){return f(pi(1),[this,null])});b(fj,"contains$O",function(a){return this.b$["java.util.HashMap"].containsKey$O.apply(this.b$["java.util.HashMap"],[a])});b(fj,"remove$O",function(a){return null!=this.b$["java.util.HashMap"].removeNode$I$O$O$Z$Z.apply(this.b$["java.util.HashMap"],[Lg.HashMap.hash$O(a),a,null,!1,!0])});b(fj,"spliterator$",function(){return pi(2).spliterator$java_util_Collection$I(this,81)});b(fj,"forEach$java_util_function_Consumer",function(a){if(null== +a)throw f(g("NullPointerException"));for(var b=this.this$0.modCount,c=this.this$0.head;null!=c;c=c.after)a.accept$(c.key);if(this.this$0.modCount!=b)throw f(g("java.util.ConcurrentModificationException"));});b(fj);var Oj=j(Lg.LinkedHashMap,"LinkedValues",function(a){m(this,a,!0,Oj)},"java.util.AbstractCollection");Oj.$clinit$=function(){g(Oj,1)};b(Oj,"$init$",function(){},1);b(Oj,"size$",function(){return this.this$0.size});b(Oj,"clear$",function(){this.b$["java.util.LinkedHashMap"].clear$.apply(this.b$["java.util.LinkedHashMap"], +[])});b(Oj,"iterator$",function(){return f(pi(3),[this,null])});b(Oj,"contains$O",function(a){return this.b$["java.util.LinkedHashMap"].containsValue$O.apply(this.b$["java.util.LinkedHashMap"],[a])});b(Oj,"spliterator$",function(){return pi(2).spliterator$java_util_Collection$I(this,80)});b(Oj,"forEach$java_util_function_Consumer",function(a){if(null==a)throw f(g("NullPointerException"));for(var b=this.this$0.modCount,c=this.this$0.head;null!=c;c=c.after)a.accept$(c.value);if(this.this$0.modCount!= +b)throw f(g("java.util.ConcurrentModificationException"));});b(Oj);var gj=j(Lg.LinkedHashMap,"LinkedEntrySet",function(a){m(this,a,!0,gj)},"java.util.AbstractSet");gj.$clinit$=function(){g(gj,1)};b(gj,"$init$",function(){},1);b(gj,"size$",function(){return this.this$0.size});b(gj,"clear$",function(){this.b$["java.util.LinkedHashMap"].clear$.apply(this.b$["java.util.LinkedHashMap"],[])});b(gj,"iterator$",function(){return f(pi(4),[this,null])});b(gj,"contains$O",function(a){if(!k(a,"java.util.Map.Entry"))return!1; +var b=a.getKey$(),b=this.b$["java.util.HashMap"].getNode$I$O.apply(this.b$["java.util.HashMap"],[Lg.HashMap.hash$O(b),b]);return null!=b&&b.equals$O(a)});b(gj,"remove$O",function(a){if(k(a,"java.util.Map.Entry")){var b=a.getKey$();a=a.getValue$();return null!=this.b$["java.util.HashMap"].removeNode$I$O$O$Z$Z.apply(this.b$["java.util.HashMap"],[Lg.HashMap.hash$O(b),b,a,!0,!0])}return!1});b(gj,"spliterator$",function(){return pi(2).spliterator$java_util_Collection$I(this,81)});b(gj,"forEach$java_util_function_Consumer", +function(a){if(null==a)throw f(g("NullPointerException"));for(var b=this.this$0.modCount,c=this.this$0.head;null!=c;c=c.after)a.accept$(c);if(this.this$0.modCount!=b)throw f(g("java.util.ConcurrentModificationException"));});b(gj);var Pj=j(Lg.LinkedHashMap,"LinkedHashIterator",function(a){m(this,a,!0,Pj)});Pj.$clinit$=function(){g(Pj,1)};b(Pj,"$init0$",function(){var a;(a=Pj.superclazz)&&(a=a.$init0$)&&a.apply(this);this.current=this.nextItem=null;this.expectedModCount=0},1);b(Pj,"$init$",function(){}, +1);b(Pj,"c$",function(){Pj.$init$.apply(this);this.nextItem=this.this$0.head;this.expectedModCount=this.this$0.modCount;this.current=null},1);b(Pj,"hasNext$",function(){return null!=this.nextItem});b(Pj,"nextNode$",function(){var a=this.nextItem;if(this.this$0.modCount!=this.expectedModCount)throw f(g("java.util.ConcurrentModificationException"));if(null==a)throw f(g("java.util.NoSuchElementException"));this.current=a;this.nextItem=a.after;return a});b(Pj,"remove$",function(){var a=this.current;if(null== +a)throw f(g("IllegalStateException"));if(this.this$0.modCount!=this.expectedModCount)throw f(g("java.util.ConcurrentModificationException"));this.current=null;a=a.key;this.b$["java.util.HashMap"].removeNode$I$O$O$Z$Z.apply(this.b$["java.util.HashMap"],[Lg.HashMap.hash$O(a),a,null,!1,!1]);this.expectedModCount=this.this$0.modCount});var ko=j(Lg.LinkedHashMap,"LinkedKeyIterator",function(a){m(this,a,!0,ko)},["java.util.LinkedHashMap",".LinkedHashIterator"],"java.util.Iterator");ko.$clinit$=function(){g(ko, +1)};b(ko,"$init$",function(){},1);b(ko,"next$",function(){return this.nextNode$().getKey$()});b(ko);var lo=j(Lg.LinkedHashMap,"LinkedValueIterator",function(a){m(this,a,!0,lo)},["java.util.LinkedHashMap",".LinkedHashIterator"],"java.util.Iterator");lo.$clinit$=function(){g(lo,1)};b(lo,"$init$",function(){},1);b(lo,"next$",function(){return this.nextNode$().value});b(lo);var mo=j(Lg.LinkedHashMap,"LinkedEntryIterator",function(a){m(this,a,!0,mo)},["java.util.LinkedHashMap",".LinkedHashIterator"],"java.util.Iterator"); +mo.$clinit$=function(){g(mo,1)};b(mo,"$init$",function(){},1);b(mo,"next$",function(){return this.nextNode$()});b(mo);n("3.2.4.07");var np=java.util,nd={},rs=[[0,"java.util.Objects",["java.util.LinkedList",".ListItr"],"java.util.Spliterators",["java.util.LinkedList",".Node"],["java.util.LinkedList",".DescendingIterator"],"InternalError","java.lang.reflect.Array",["java.util.LinkedList",".LLSpliterator"]]],Qj=function(a){return rs[a]||(rs[a]=g(rs[0][a]))},Ea=j(np,"LinkedList",function(){m(this,arguments, +0,Ea)},"java.util.AbstractSequentialList",["java.util.List","java.util.Deque","Cloneable","java.io.Serializable"]);Ea.$clinit$=function(){g(Ea,1)};b(Ea,"$init0$",function(){var a;(a=Ea.superclazz)&&(a=a.$init0$)&&a.apply(this);this.size=0;this.last=this.first=null},1);b(Ea,"$init$",function(){this.size=0},1);b(Ea,"c$",function(){S(Ea,this,1)},1);b(Ea,"c$$java_util_Collection",function(a){Ea.c$.apply(this,[]);this.addAll$java_util_Collection(a)},1);b(Ea,["linkFirst$TE"],function(a){var b=this.first; +this.first=a=f(Qj(4).c$$java_util_LinkedList_Node$TE$java_util_LinkedList_Node,[null,a,b]);null==b?this.last=a:b.prev=a;this.size++;this.modCount++},nd);b(Ea,["linkLast$TE"],function(a){var b=this.last;this.last=a=f(Qj(4).c$$java_util_LinkedList_Node$TE$java_util_LinkedList_Node,[b,a,null]);null==b?this.first=a:b.next_=a;this.size++;this.modCount++});b(Ea,["linkBefore$TE$java_util_LinkedList_Node"],function(a,b){var c=b.prev,d=f(Qj(4).c$$java_util_LinkedList_Node$TE$java_util_LinkedList_Node,[c,a, +b]);b.prev=d;null==c?this.first=d:c.next_=d;this.size++;this.modCount++});b(Ea,"unlinkFirst$java_util_LinkedList_Node",function(a){var b=a.item,c=a.next_;a.item=null;a.next_=null;this.first=c;null==c?this.last=null:c.prev=null;this.size--;this.modCount++;return b},nd);b(Ea,"unlinkLast$java_util_LinkedList_Node",function(a){var b=a.item,c=a.prev;a.item=null;a.prev=null;this.last=c;null==c?this.first=null:c.next_=null;this.size--;this.modCount++;return b},nd);b(Ea,"unlink$java_util_LinkedList_Node", +function(a){var b=a.item,c=a.next_,d=a.prev;null==d?this.first=c:(d.next_=c,a.prev=null);null==c?this.last=d:(c.prev=d,a.next_=null);a.item=null;this.size--;this.modCount++;return b});b(Ea,"getFirst$",function(){var a=this.first;if(null==a)throw f(g("java.util.NoSuchElementException"));return a.item});b(Ea,"getLast$",function(){var a=this.last;if(null==a)throw f(g("java.util.NoSuchElementException"));return a.item});b(Ea,"removeFirst$",function(){var a=this.first;if(null==a)throw f(g("java.util.NoSuchElementException")); +return nd.unlinkFirst$java_util_LinkedList_Node.apply(this,[a])});b(Ea,"removeLast$",function(){var a=this.last;if(null==a)throw f(g("java.util.NoSuchElementException"));return nd.unlinkLast$java_util_LinkedList_Node.apply(this,[a])});b(Ea,["addFirst$TE"],function(a){nd.linkFirst$TE.apply(this,[a])});b(Ea,["addLast$TE"],function(a){this.linkLast$TE(a)});b(Ea,"contains$O",function(a){return-1!=this.indexOf$O(a)});b(Ea,"size$",function(){return this.size});b(Ea,["add$TE"],function(a){this.linkLast$TE(a); +return!0});b(Ea,"remove$O",function(a){if(null==a)for(var b=this.first;null!=b;b=b.next_){if(null==b.item)return this.unlink$java_util_LinkedList_Node(b),!0}else for(b=this.first;null!=b;b=b.next_)if(a.equals$O(b.item))return this.unlink$java_util_LinkedList_Node(b),!0;return!1});b(Ea,"addAll$java_util_Collection",function(a){return this.addAll$I$java_util_Collection(this.size,a)});b(Ea,"addAll$I$java_util_Collection",function(a,b){nd.checkPositionIndex$I.apply(this,[a]);var c=b.toArray$(),d=c.length; +if(0==d)return!1;var h,g;a==this.size?(g=null,h=this.last):(g=this.node$I(a),h=g.prev);for(var I,p=0;p>1)for(var b=this.first,c=0;ca;c--)b=b.prev}return b});b(Ea,"indexOf$O",function(a){var b=0;if(null==a)for(var c=this.first;null!=c;c=c.next_){if(null==c.item)return b;b++}else for(c=this.first;null!=c;c=c.next_){if(a.equals$O(c.item))return b;b++}return-1});b(Ea,"lastIndexOf$O",function(a){var b=this.size;if(null==a)for(var c=this.last;null!=c;c=c.prev){if(b--, +null==c.item)return b}else for(c=this.last;null!=c;c=c.prev)if(b--,a.equals$O(c.item))return b;return-1});b(Ea,"peek$",function(){var a=this.first;return null==a?null:a.item});b(Ea,"element$",function(){return this.getFirst$()});b(Ea,"poll$",function(){var a=this.first;return null==a?null:nd.unlinkFirst$java_util_LinkedList_Node.apply(this,[a])});b(Ea,"remove$",function(){return this.removeFirst$()});b(Ea,["offer$TE"],function(a){return this.add$TE(a)});b(Ea,["offerFirst$TE"],function(a){this.addFirst$TE(a); +return!0});b(Ea,["offerLast$TE"],function(a){this.addLast$TE(a);return!0});b(Ea,"peekFirst$",function(){var a=this.first;return null==a?null:a.item});b(Ea,"peekLast$",function(){var a=this.last;return null==a?null:a.item});b(Ea,"pollFirst$",function(){var a=this.first;return null==a?null:nd.unlinkFirst$java_util_LinkedList_Node.apply(this,[a])});b(Ea,"pollLast$",function(){var a=this.last;return null==a?null:nd.unlinkLast$java_util_LinkedList_Node.apply(this,[a])});b(Ea,["push$TE"],function(a){this.addFirst$TE(a)}); +b(Ea,"pop$",function(){return this.removeFirst$()});b(Ea,"removeFirstOccurrence$O",function(a){return this.remove$O(a)});b(Ea,"removeLastOccurrence$O",function(a){if(null==a)for(var b=this.last;null!=b;b=b.prev){if(null==b.item)return this.unlink$java_util_LinkedList_Node(b),!0}else for(b=this.last;null!=b;b=b.prev)if(a.equals$O(b.item))return this.unlink$java_util_LinkedList_Node(b),!0;return!1});b(Ea,"listIterator$I",function(a){nd.checkPositionIndex$I.apply(this,[a]);return f(Qj(2).c$$I,[this, +null,a])});b(Ea,"descendingIterator$",function(){return f(Qj(5),[this,null])});b(Ea,"superClone",function(){try{return we(this)}catch(a){if(A(a,"CloneNotSupportedException"))throw f(Qj(6).c$$Throwable,[a]);throw a;}},nd);b(Ea,"clone$",function(){var a=nd.superClone.apply(this,[]);a.first=a.last=null;a.size=0;a.modCount=0;for(var b=this.first;null!=b;b=b.next_)a.add$TE(b.item);return a});b(Ea,"toArray$",function(){for(var a=l(java.lang.Object,[this.size]),b=0,c=this.first;null!=c;c=c.next_)a[b++]= +c.item;return a});b(Ea,"toArray$TTA",function(a){a.lengththis.size&&(a[this.size]=null);return a});b(Ea,"writeObject$java_io_ObjectOutputStream",function(a){a.defaultWriteObject$();a.writeInt$I(this.size);for(var b=this.first;null!=b;b=b.next_)a.writeObject$O(b.item)},nd);b(Ea,"readObject$java_io_ObjectInputStream",function(a){a.defaultReadObject$();for(var b=a.readInt$(), +c=0;c(a=this.est))null==(a=this.list)?a=this.est=0:(this.expectedModCount=a.modCount,this.current=a.first,a=this.est=a.size);return a});b(kh,"estimateSize$",function(){return this.getEst$()});b(kh,"trySplit$",function(){var a,b=this.getEst$();if(1b&&(c=b);33554432h;)c.S[h]=h++;for(h=0;256>h;h++)b=c.S[h],f=f+b+a[h%d]&255,e=c.S[f],c.S[h]=e,c.S[f]=b;c.g=function(a){var b=c.S,e=c.i+1&255,d=b[e],h=c.j+d&255,f=b[h];b[e]=f;b[h]=d;for(var g=b[d+f&255];--a;)e=e+1&255,d=b[e],h=h+d&255,f=b[h],b[e]=f,b[h]=d,g=256*g+b[d+f&255];c.i=e;c.j=h;return g};c.g(256)},I=function(a, +b,e,c){e=[];if(b&&"object"==typeof a)for(c in a)if(5>c.indexOf("S"))try{e.push(I(a[c],b-1))}catch(d){}return e.length?e:""+a},p=function(a,b,e,c){a+="";for(c=e=0;c=d;)a/=2,b/=2,e>>>=1;return(a+e)/b};return g};h=b.pow(256,6);c=b.pow(2,c);d=2*c;p(b.random(),a)};b(zf,"$init0$",function(){var a;(a=zf.superclazz)&&(a=a.$init0$)&&a.apply(this);this.haveNextNextGaussian=!1;this.nextNextGaussian=this.seed=0},1);b(zf,"$init$",function(){this.haveNextNextGaussian=!1;this.nextNextGaussian=0},1);b(zf,"c$",function(){zf.$init$.apply(this);this.setSeed$J(System.currentTimeMillis$())},1);b(zf,"c$$J",function(a){zf.$init$.apply(this);this.setSeed$J(a)},1);b(zf,"next$I", +function(a){this.seed=25214903917*this.seed+11&0xffffffffffff;return this.seed>>>48-a|0});b(zf,"nextBoolean$",function(){return 0.5>=8});b(zf,"nextDouble$",function(){return Math.random()});b(zf,"nextFloat$",function(){return Math.random()});b(zf,"nextGaussian$",function(){if(this.haveNextNextGaussian)return this.haveNextNextGaussian=!1,this.nextNextGaussian;var a,b,c;do a= +2*this.nextDouble$()-1,b=2*this.nextDouble$()-1,c=a*a+b*b;while(1<=c);c=Math.sqrt(-2*Math.log(c)/c);this.nextNextGaussian=b*c;this.haveNextNextGaussian=!0;return a*c});b(zf,"nextInt$",function(){return 4294967296*Math.random()|0});b(zf,"nextInt$I",function(a){if(0b?b>>>1:256;null==c||hc.length?(this.tmp=l(a.getClass$().getComponentType$(),f), +this.tmpBase=0,this.tmpLen=f):(this.tmp=c,this.tmpBase=d,this.tmpLen=h);a=120>b?5:1542>b?10:119151>b?24:49;this.runBase=l(Integer.TYPE,[a]);this.runLen=l(Integer.TYPE,[a])},1);b(ya,"sort$TTA$I$I$java_util_Comparator$TTA$I$I",function(a,b,c,d,h,g,I){rb(ya,this,function(){return null!=d&&null!=a&&0<=b&&b<=c&&c<=a.length});var p=c-b;if(!(2>p))if(32>p)p=ya.countRunAndMakeAscending$TTA$I$I$java_util_Comparator(a,b,c,d),ya.binarySort$TTA$I$I$I$java_util_Comparator(a,b,c,b+p,d);else{var j=f(ya.c$$TTA$java_util_Comparator$TTA$I$I, +[a,d,h,g,I]);h=ya.minRunLength$I(p);do g=ya.countRunAndMakeAscending$TTA$I$I$java_util_Comparator(a,b,c,d),g>>1;0>h.compare$(f,a[j])?p=j:g=j+1}rb(ya,this,function(){return g==p});j=d-g;switch(j){case 2:a[g+2]=a[g+1];case 1:a[g+1]=a[g];break;default:System.arraycopy$O$I$O$I$I(a,g,a,g+1,j)}a[g]=f}},1);b(ya,"countRunAndMakeAscending$TTA$I$I$java_util_Comparator",function(a,b,c,d){rb(ya,this,function(){return bd.compare$(a[h++],a[b])){for(;hd.compare$(a[h],a[h-1]);)h++; +ya.reverseRange$OA$I$I(a,b,h)}else for(;h>=1;return a+b},1);b(ya,"pushRun$I$I",function(a,b){this.runBase[this.stackSize]=a;this.runLen[this.stackSize]=b;this.stackSize++},sg);b(ya,"mergeCollapse",function(){for(;1=p&&(p=j);p>j&&(p=j);g+=h;p+=h}else{for(j=h+1;p=f.compare$(a,b[c+h-p]);)g=p,p=(p<<1)+1,0>=p&&(p=j);p>j&&(p=j); +j=g;g=h-p;p=h-j}rb(ya,this,function(){return-1<=g&&g>>1),0f.compare$(a,b[c+h])){for(var j=h+1;gf.compare$(a,b[c+h-g]);)p=g,g=(g<<1)+1,0>=g&&(g=j);g>j&&(g=j);j=p;p=h-g;g=h-j}else{for(j=d-h;g=g&&(g= +j);g>j&&(g=j);p+=h;g+=h}rb(ya,this,function(){return-1<=p&&p>>1),0>f.compare$(a,b[c+j])?g=j:p=j+1;rb(ya,this,function(){return p==g});return g},1);b(ya,"mergeLo$I$I$I$I",function(a,b,c,d){rb(ya,this,function(){return 0l.compare$(h[p],s[j])){if(h[k++]=h[p++],q++,n=0,0==--d)break a}else if(h[k++]=s[j++],n++,q=0,1==--b)break a;while((n|q)=b))break a;h[k++]=h[p++];if(0==--d)break a;q=ya.gallopLeft$TT$TTA$I$I$I$java_util_Comparator(s[j], +h,p,d,0,l);if(0!=q&&(System.arraycopy$O$I$O$I$I(h,p,h,k,q),k+=q,p+=q,d-=q,0==d))break a;h[k++]=s[j++];if(1==--b)break a;m--}while(7<=n|7<=q);0>m&&(m=0);m+=2}this.minGallop=1>m?1:m;if(1==b)rb(ya,this,function(){return 0m.compare$(s[k],h[p])){if(h[l--]=h[p--], +q++,r=0,0==--b)break a}else if(h[l--]=s[k--],r++,q=0,1==--d)break a;while((q|r)=d))break a;h[l--]=h[p--];if(0==--b)break a;n--}while(7<= +q|7<=r);0>n&&(n=0);n+=2}this.minGallop=1>n?1:n;if(1==d)rb(ya,this,function(){return 0>1,b=b|b>>2,b=b|b>>4,b=b|b>>8,b=b|b>>16;b++;b=0>b? +a:Math.min(b,this.a.length>>>1);this.tmp=l(this.a.getClass$().getComponentType$(),b);this.tmpLen=b;this.tmpBase=0}return this.tmp},sg);ya.$_ASSERT_ENABLED_=ClassLoader.getClassAssertionStatus$(ya);b(ya);n("3.2.4.07");var pn=java.util,lq={},Sj={},Es=[[0,"java.util.Objects","java.util.Arrays","OutOfMemoryError","InternalError","java.util.Collections",["java.util.Vector",".ListItr"],["java.util.Vector",".Itr"],"java.util.BitSet",["java.util.Vector",".VectorSpliterator"]]],Af=function(a){return Es[a]|| +(Es[a]=g(Es[0][a]))},qa=j(pn,"Vector",function(){m(this,arguments,0,qa)},"java.util.AbstractList",["java.util.List","java.util.RandomAccess","Cloneable","java.io.Serializable"]);qa.$clinit$=function(){g(qa,1)};b(qa,"$init0$",function(){var a;(a=qa.superclazz)&&(a=a.$init0$)&&a.apply(this);this.elementData=null;this.capacityIncrement=this.elementCount=0},1);b(qa,"$init$",function(){},1);b(qa,"c$$I$I",function(a,b){qa.superclazz.c$.apply(this,[]);qa.$init$.apply(this);if(0>a)throw f(g("IllegalArgumentException").c$$S, +["Illegal Capacity: "+a]);this.elementData=l(java.lang.Object,[a]);this.capacityIncrement=b},1);b(qa,"c$$I",function(a){qa.c$$I$I.apply(this,[a,0])},1);b(qa,"c$",function(){qa.c$$I.apply(this,[10])},1);b(qa,"c$$java_util_Collection",function(a){S(qa,this,1);this.elementData=a.toArray$();this.elementCount=this.elementData.length;this.elementData.getClass$()!==l(java.lang.Object,-1)&&(this.elementData=Af(2).copyOf$TUA$I$Class(this.elementData,this.elementCount,l(java.lang.Object,-1)))},1);b(qa,"copyInto$OA", +function(a){System.arraycopy$O$I$O$I$I(this.elementData,0,a,0,this.elementCount)});b(qa,"trimToSize$",function(){this.modCount++;this.elementCountb-a&&(b=a);0a)throw f(Af(3));return 2147483639this.elementCount)Sj.ensureCapacityHelper$I.apply(this,[a]);else for(var b=a;b=this.elementCount)throw f(g("IndexOutOfBoundsException").c$$S,[b+" >= "+this.elementCount]);if(null==a)for(var c=b;0<=c;c--){if(null==this.elementData[c])return c}else for(c=b;0<=c;c--)if(a.equals$O(this.elementData[c]))return c;return-1});b(qa,"elementAt$I",function(a){if(a>=this.elementCount)throw f(g("ArrayIndexOutOfBoundsException").c$$S, +[a+" >= "+this.elementCount]);return this.elementData$I(a)});b(qa,"firstElement$",function(){if(0==this.elementCount)throw f(g("java.util.NoSuchElementException"));return this.elementData$I(0)});b(qa,"lastElement$",function(){if(0==this.elementCount)throw f(g("java.util.NoSuchElementException"));return this.elementData$I(this.elementCount-1)});b(qa,["setElementAt$TE$I"],function(a,b){if(b>=this.elementCount)throw f(g("ArrayIndexOutOfBoundsException").c$$S,[b+" >= "+this.elementCount]);this.elementData[b]= +a});b(qa,"removeElementAt$I",function(a){this.modCount++;if(a>=this.elementCount)throw f(g("ArrayIndexOutOfBoundsException").c$$S,[a+" >= "+this.elementCount]);if(0>a)throw f(g("ArrayIndexOutOfBoundsException").c$$I,[a]);var b=this.elementCount-a-1;0this.elementCount)throw f(g("ArrayIndexOutOfBoundsException").c$$S, +[b+" > "+this.elementCount]);Sj.ensureCapacityHelper$I.apply(this,[this.elementCount+1]);System.arraycopy$O$I$O$I$I(this.elementData,b,this.elementData,b+1,this.elementCount-b);this.elementData[b]=a;this.elementCount++});b(qa,["addElement$TE"],function(a){this.modCount++;Sj.ensureCapacityHelper$I.apply(this,[this.elementCount+1]);this.elementData[this.elementCount++]=a});b(qa,"removeElement$O",function(a){this.modCount++;a=this.indexOf$O(a);return 0<=a?(this.removeElementAt$I(a),!0):!1});b(qa,"removeAllElements$", +function(){this.modCount++;for(var a=0;athis.elementCount&&(a[this.elementCount]=null);return a});b(qa,"elementData$I",function(a){return this.elementData[a]});b(qa,"get$I",function(a){if(a>=this.elementCount)throw f(g("ArrayIndexOutOfBoundsException").c$$I,[a]);return this.elementData$I(a)});b(qa,"set$I$TE",function(a,b){if(a>=this.elementCount)throw f(g("ArrayIndexOutOfBoundsException").c$$I,[a]);var c=this.elementData$I(a); +this.elementData[a]=b;return c});b(qa,["add$TE"],function(a){this.modCount++;Sj.ensureCapacityHelper$I.apply(this,[this.elementCount+1]);this.elementData[this.elementCount++]=a;return!0});b(qa,"remove$O",function(a){return this.removeElement$O(a)});b(qa,"add$I$TE",function(a,b){this.insertElementAt$TE$I(b,a)});b(qa,"remove$I",function(a){this.modCount++;if(a>=this.elementCount)throw f(g("ArrayIndexOutOfBoundsException").c$$I,[a]);var b=this.elementData$I(a),c=this.elementCount-a-1;0a||a>this.elementCount)throw f(g("ArrayIndexOutOfBoundsException").c$$I,[a]);var c=b.toArray$(),d=c.length;Sj.ensureCapacityHelper$I.apply(this,[this.elementCount+ +d]);var h=this.elementCount-a;0a||a>this.elementCount)throw f(g("IndexOutOfBoundsException").c$$S,["Index: "+a]);return f(Af(6).c$$I,[this,null,a])});b(qa,"listIterator$",function(){return f(Af(6).c$$I,[this,null,0])});b(qa,"iterator$",function(){return f(Af(7),[this,null])});b(qa,"forEach$java_util_function_Consumer",function(a){Af(1).requireNonNull$TT(a);for(var b=this.modCount,c=this.elementData,d=this.elementCount,h=0;this.modCount==b&&h=this.this$0.elementCount)throw f(g("java.util.NoSuchElementException"));this.cursor=a+1;return this.b$["java.util.Vector"].elementData$I.apply(this.b$["java.util.Vector"],[this.lastRet=a])});b(hj,"remove$",function(){if(-1==this.lastRet)throw f(g("IllegalStateException"));this.checkForComodification$();this.b$["java.util.Vector"].remove$I.apply(this.b$["java.util.Vector"],[this.lastRet]);this.expectedModCount=this.this$0.modCount; +this.cursor=this.lastRet;this.lastRet=-1});b(hj,"forEachRemaining$java_util_function_Consumer",function(a){Af(1).requireNonNull$TT(a);var b=this.this$0.elementCount,c=this.cursor;if(!(c>=b)){var d=this.b$["java.util.Vector"].elementData;if(c>=d.length)throw f(g("java.util.ConcurrentModificationException"));for(;c!=b&&this.this$0.modCount==this.expectedModCount;)a.accept$(d[c++]);this.cursor=c;this.lastRet=c-1;this.checkForComodification$()}});b(hj,"checkForComodification$",function(){if(this.this$0.modCount!= +this.expectedModCount)throw f(g("java.util.ConcurrentModificationException"));});b(hj);var Kh=j(pn.Vector,"ListItr",function(a){m(this,a,!0,Kh)},["java.util.Vector",".Itr"],"java.util.ListIterator");Kh.$clinit$=function(){g(Kh,1)};b(Kh,"$init$",function(){},1);b(Kh,"c$$I",function(a){Kh.superclazz.c$.apply(this,[]);Kh.$init$.apply(this);this.cursor=a},1);b(Kh,"hasPrevious$",function(){return 0!=this.cursor});b(Kh,"nextIndex$",function(){return this.cursor});b(Kh,"previousIndex$",function(){return this.cursor- +1});b(Kh,"previous$",function(){this.checkForComodification$();var a=this.cursor-1;if(0>a)throw f(g("java.util.NoSuchElementException"));this.cursor=a;return this.b$["java.util.Vector"].elementData$I.apply(this.b$["java.util.Vector"],[this.lastRet=a])});b(Kh,["set$TE"],function(a){if(-1==this.lastRet)throw f(g("IllegalStateException"));this.checkForComodification$();this.b$["java.util.Vector"].set$I$TE.apply(this.b$["java.util.Vector"],[this.lastRet,a])});b(Kh,["add$TE"],function(a){var b=this.cursor; +this.checkForComodification$();this.b$["java.util.Vector"].add$I$TE.apply(this.b$["java.util.Vector"],[b,a]);this.expectedModCount=this.this$0.modCount;this.cursor=b+1;this.lastRet=-1});b(Kh);var Ng=j(pn.Vector,"VectorSpliterator",function(a){m(this,a,!1,Ng)},null,"java.util.Spliterator");Ng.$clinit$=function(){g(Ng,1)};b(Ng,"$init0$",function(){var a;(a=Ng.superclazz)&&(a=a.$init0$)&&a.apply(this);this.array=this.list=null;this.expectedModCount=this.fence=this.index=0},1);b(Ng,"$init$",function(){}, +1);b(Ng,"c$$java_util_Vector$OA$I$I$I",function(a,b,c,d,h){Ng.$init$.apply(this);this.list=a;this.array=b;this.index=c;this.fence=d;this.expectedModCount=h},1);b(Ng,"getFence",function(){var a;if(0>(a=this.fence))this.array=this.list.elementData,this.expectedModCount=this.list.modCount,a=this.fence=this.list.elementCount;return a},lq);b(Ng,"trySplit$",function(){var a=lq.getFence.apply(this,[]),b=this.index,a=b+a>>>1;return b>=a?null:f(Ng.c$$java_util_Vector$OA$I$I$I,[this.list,this.array,b,this.index= +a,this.expectedModCount])});b(Ng,"tryAdvance$java_util_function_Consumer",function(a){var b;if(null==a)throw f(g("NullPointerException"));if(lq.getFence.apply(this,[])>(b=this.index)){this.index=b+1;a.accept$(this.array[b]);if(this.list.modCount!=this.expectedModCount)throw f(g("java.util.ConcurrentModificationException"));return!0}return!1});b(Ng,"forEachRemaining$java_util_function_Consumer",function(a){var b,c,d,h;if(null==a)throw f(g("NullPointerException"));if(null!=(d=this.list))if(0>(c=this.fence)? +(this.expectedModCount=d.modCount,h=this.array=d.elementData,c=this.fence=d.elementCount):h=this.array,null!=h&&0<=(b=this.index)&&(this.index=c)<=h.length){for(;b=b?a:ia.arrayCopyObject$O$I(a,b)},1);b(ia,"ensureLengthS$SA$I",function(a,b){return null!=a&&a.length>=b?a:ia.arrayCopyS$SA$I(a,b)},1);b(ia,"ensureLengthA$FA$I",function(a,b){return null!=a&&a.length>=b?a:ia.arrayCopyF$FA$I(a,b)},1);b(ia,"ensureLengthI$IA$I",function(a,b){return null!=a&&a.length>=b?a:ia.arrayCopyI$IA$I(a,b)},1);b(ia,"ensureLengthShort$HA$I", +function(a,b){return null!=a&&a.length>=b?a:ia.arrayCopyShort$HA$I(a,b)},1);b(ia,"ensureLengthByte$BA$I",function(a,b){return null!=a&&a.length>=b?a:ia.arrayCopyByte$BA$I(a,b)},1);b(ia,"doubleLength$O",function(a){return ia.arrayCopyObject$O$I(a,null==a?16:2*ia.getLength$O(a))},1);b(ia,"doubleLengthS$SA",function(a){return ia.arrayCopyS$SA$I(a,null==a?16:2*a.length)},1);b(ia,"doubleLengthF$FA",function(a){return ia.arrayCopyF$FA$I(a,null==a?16:2*a.length)},1);b(ia,"doubleLengthI$IA",function(a){return ia.arrayCopyI$IA$I(a, +null==a?16:2*a.length)},1);b(ia,"doubleLengthShort$HA",function(a){return ia.arrayCopyShort$HA$I(a,null==a?16:2*a.length)},1);b(ia,"doubleLengthByte$BA",function(a){return ia.arrayCopyByte$BA$I(a,null==a?16:2*a.length)},1);b(ia,"doubleLengthBool$ZA",function(a){return ia.arrayCopyBool$ZA$I(a,null==a?16:2*a.length)},1);b(ia,"deleteElements$O$I$I",function(a,b,c){if(0==c||null==a)return a;var d=ia.getLength$O(a);if(b>=d)return a;d-=b+c;0>d&&(d=0);var h=ia.newInstanceO$O$I(a,b+d);0b&&(b=c);if(b==c)return a;if(bb&&(b=c); +if(bb&&(b=a.length);var c=l(po(2),[b]);if(null!=a){var d=a.length;System.arraycopy$O$I$O$I$I(a,0,c,0,db&&(b=c); +if(bb&&(b=c);if(bb&&(b=c);if(bb&&(b=c);if(bb&&(b=c);if(b< +c)return l(-1,a,0,b);var d=l(Boolean.TYPE,[b]);null!=a&&System.arraycopy$O$I$O$I$I(a,0,d,0,c=h;f--){a+="\n*"+f+"*";for(g=c;g<=d;g++)a+="\t"+(new Float(gb?l(Integer.TYPE,[a,null,null]):l(Integer.TYPE,[a,b,null])},1);b(ia,"newFloat3$I$I",function(a,b){return 0>b?l(Float.TYPE,[a,null,null]):l(Float.TYPE,[a,b,null])},1);b(ia,"newInt4$I",function(a){return l(Integer.TYPE,[a,null,null,null])},1);b(ia,"newShort2$I",function(a){return l(Short.TYPE,[a,null])},1);b(ia,"newByte2$I",function(a){return l(Byte.TYPE,[a,null])},1);b(ia,"newDouble2$I", +function(a){return l(Double.TYPE,[a,null])},1);b(ia,"removeMapKeys$java_util_Map$S",function(a,b){for(var c=f(po(4)),d,h=a.keySet$().iterator$();h.hasNext$()&&(d=h.next$(),1);)d.startsWith$S(b)&&c.addLast$TV(d);for(d=c.size$();0<=--d;)a.remove$O(c.get$I(d));return c.size$()},1);b(ia,"isAS$O",function(a){return k(a,l(String,-1))},1);b(ia,"isASS$O",function(a){return k(a,l(String,-2))},1);b(ia,"isAP$O",function(a){return k(a,l(po(2),-1))},1);b(ia,"isAF$O",function(a){return k(a,l(Float.TYPE,-1))},1); +b(ia,"isAFloat$O",function(a){return k(a,l(Float,-1))},1);b(ia,"isAD$O",function(a){return k(a,l(Double.TYPE,-1))},1);b(ia,"isADD$O",function(a){return k(a,l(Double.TYPE,-2))},1);b(ia,"isAB$O",function(a){return k(a,l(Byte.TYPE,-1))},1);b(ia,"isAI$O",function(a){return k(a,l(Integer.TYPE,-1))},1);b(ia,"isAII$O",function(a){return k(a,l(Integer.TYPE,-2))},1);b(ia,"isAFF$O",function(a){return k(a,l(Float.TYPE,-2))},1);b(ia,"isAFFF$O",function(a){return k(a,l(Float.TYPE,-3))},1);b(ia,"ensureSignedBytes$BA", +function(a){if(null!=a)for(var b=a.length;0<=--b;){var c=a[b]&255;128<=c&&(c-=256);a[b]=c}return a},1);b(ia);n("3.2.4.07");var mq=q("javajs.util"),Bf=j(mq,"JSThread",null,"Thread");Bf.threadCount=0;Bf.$clinit$=function(){g(Bf,1);Bf.threadCount=0};b(Bf,"$init0$",function(){var a;(a=Bf.superclazz)&&(a=a.$init0$)&&a.apply(this);this.isJS=!1},1);b(Bf,"$init$",function(){this.isJS=!0},1);b(Bf,"c$",function(){Bf.c$$ThreadGroup$S.apply(this,[null,"JSThread-"+ ++Bf.threadCount])},1);b(Bf,"c$$S",function(a){Bf.c$$ThreadGroup$S.apply(this, +[null,a])},1);b(Bf,"c$$ThreadGroup$S",function(a,b){Bf.superclazz.c$$ThreadGroup$S.apply(this,[a,b]);Bf.$init$.apply(this)},1);b(Bf,"run$",function(){this.run1$I(0)});b(Bf,"start$",function(){g("swingjs.JSToolkit").dispatch$O$I$I(this,1,0)});b(Bf,"run1$I",function(a){var b=!0;try{for(;!Thread.interrupted$();)switch(a){case 0:if(!this.myInit$())return;a=1;continue;case 1:if(!this.isLooping$()){a=2;continue}if(this.myLoop$()&&this.sleepAndReturn$I$I(this.getDelayMillis$(),a)){b=!1;return}continue;case 2:this.whenDone$(); +return}}catch(c){if(A(c,"Exception"))this.onException$Exception(c);else throw c;}finally{b&&this.doFinally$()}});b(Bf,"sleepAndReturn$I$I",function(a,e){if(!this.isJS)return Thread.sleep$J(a),!1;var c=this;if(!mq.JSThread$1){var d=j(mq,"JSThread$1",function(a){m(this,a,1,d)},null,"Runnable",1);d.$clinit$=function(){g(d,1)};b(d,"$init$",function(){},1);b(d,"run$",function(){this.$finals$.me.run1$I(this.$finals$.state)})}var h=f(mq.JSThread$1.$init$,[this,{me:c,state:e}]);setTimeout(function(){java.awt.Toolkit.getDefaultToolkit$().getSystemEventQueue$().postEvent$java_awt_AWTEvent(f(java.awt.event.InvocationEvent.c$$O$Runnable, +[c,h]))},a);return!0});n("3.2.4.07");var ez=q("javajs.util"),ij=j(ez,"Lst",null,"java.util.ArrayList");ij.$clinit$=function(){g(ij,1)};b(ij,"$init$",function(){},1);b(ij,"c$",function(){ij.superclazz.c$.apply(this,[]);ij.$init$.apply(this)},1);b(ij,["addLast$TV"],function(a){return ij.superclazz.prototype.add$TE.apply(this,[a])});b(ij,"removeItemAt$I",function(a){return ij.superclazz.prototype.remove$I.apply(this,[a])});b(ij,"removeObj$O",function(a){return ij.superclazz.prototype.remove$O.apply(this, +[a])});n("3.2.4.07");var fz=q("javajs.util"),Hs=[[0,"javajs.util.DF","javajs.util.SB","javajs.util.AU","java.lang.reflect.Array"]],Tj=function(a){return Hs[a]||(Hs[a]=g(Hs[0][a]))},y=j(fz,"PT");y.tensScale=null;y.decimalScale=null;y.$clinit$=function(){g(y,1);y.tensScale=l(Float.TYPE,-1,[10,100,1E3,1E4,1E5,1E6]);y.decimalScale=l(Float.TYPE,-1,[0.1,0.01,0.001,1E-4,1E-5,1E-6,1E-7,1E-8,1E-9])};b(y,"$init$",function(){},1);b(y,"parseInt$S",function(a){return y.parseIntNext$S$IA(a,l(Integer.TYPE,-1,[0]))}, +1);b(y,"parseIntNext$S$IA",function(a,b){var c=a.length$();return 0>b[0]||b[0]>=c?-2147483648:y.parseIntChecked$S$I$IA(a,c,b)},1);b(y,"parseIntChecked$S$I$IA",function(a,b,c){var d=!1,h=0,f=c[0];if(0>f)return-2147483648;for(var g;f=g;)h=10*h+(g-48),d=!0,++f;d?p&&(h=-h):h=-2147483648;c[0]=f;return h},1);b(y,"isWhiteSpace$S$I",function(a,b){var c;return 0<=b&&(" "==(c=a.charAt$I(b))|| +"\t"==c||"\n"==c)},1);b(y,"parseFloatChecked$S$I$IA$Z",function(a,b,c,d){var h=!1,f=c[0];if(d&&a.indexOf$I("\n")!=a.lastIndexOf$I("\n"))return NaN;for(;f=p;)j=10*j+1*(p-48),++f,h=!0;var l=!1,m=0,n=0==j?-1:0;if(46==p)for(l=!0;++f=p;){h=!0;if(0>n){if(48==p){n--;continue}n=-n}m=b)return NaN;p=a.charAt$I(f).$c();if(43==p&&++f>=b)return NaN;c[0]=f;f=y.parseIntChecked$S$I$IA(a,b,c);if(-2147483648==f)return NaN;0f&&-f<=y.decimalScale.length?h*=y.decimalScale[-f-1]:0!=f&&(h*=Math.pow(10,f))}else c[0]=f;g&&(h=-h);Infinity==h&&(h=3.4028235E38);return!d||(!j||l)&&y.checkTrailingText$S$I$I(a, +c[0],b)?h:NaN},1);b(y,"checkTrailingText$S$I$I",function(a,b,c){for(var d;bg?g=a.length$():a=a.substring$I$I(0,g),b[0]+=g+1,a=y.getTokens$S(a),null==c&&(c=l(Float.TYPE,[a.length])),f=y.parseFloatArrayInfested$SA$FA(a,c));if(null==c)return l(Float.TYPE,[0]);for(a=f;ad&&(b=d);return 0>c[0]||c[0]>=b?NaN:y.parseFloatChecked$S$I$IA$Z(a, +b,c,!1)},1);b(y,"parseFloatNext$S$IA",function(a,b){var c=null==a?-1:a.length$();return 0>b[0]||b[0]>=c?NaN:y.parseFloatChecked$S$I$IA$Z(a,c,b,!1)},1);b(y,"parseFloatStrict$S",function(a){var b=a.length$();return 0==b?NaN:y.parseFloatChecked$S$I$IA$Z(a,b,l(Integer.TYPE,-1,[0]),!0)},1);b(y,"parseFloat$S",function(a){return y.parseFloatNext$S$IA(a,l(Integer.TYPE,-1,[0]))},1);b(y,"parseIntRadix$S$I",function(a,b){return Integer.parseInt$S$I(a,b)},1);b(y,"getTokens$S",function(a){return y.getTokensAt$S$I(a, +0)},1);b(y,"parseToken$S",function(a){return y.parseTokenNext$S$IA(a,l(Integer.TYPE,-1,[0]))},1);b(y,"parseTrimmed$S",function(a){return y.parseTrimmedRange$S$I$I(a,0,a.length$())},1);b(y,"parseTrimmedAt$S$I",function(a,b){return y.parseTrimmedRange$S$I$I(a,b,a.length$())},1);b(y,"parseTrimmedRange$S$I$I",function(a,b,c){var d=a.length$();cb||b>c)return null; +var d=y.countTokens$S$I(a,b),h=l(String,[d]),f=l(Integer.TYPE,[1]);f[0]=b;for(var g=0;gb[0]||b[0]>=c?null:y.parseTokenChecked$S$I$IA(a,c,b)},1);b(y,"parseTokenRange$S$I$IA",function(a,b,c){var d=a.length$();b>d&&(b=d);return 0>c[0]||c[0]>=b?null:y.parseTokenChecked$S$I$IA(a,b,c)},1);b(y,"parseTokenChecked$S$I$IA",function(a,b,c){for(var d=c[0];d=b&&y.isWhiteSpace$S$I(a, +c);)--c;return cd&&(b=d);return 0>c[0]||c[0]>=b?-2147483648:y.parseIntChecked$S$I$IA(a,b,c)},1);b(y,"parseFloatArrayData$SA$FA",function(a,b){y.parseFloatArrayDataN$SA$FA$I(a,b,b.length)},1);b(y,"parseFloatArrayDataN$SA$FA$I",function(a,b,c){for(;0<=--c;)b[c]=c>=a.length?NaN:y.parseFloat$S(a[c])},1);b(y,"split$S$S",function(a,b){if(0==a.length$())return l(String,[0]);var c=1,d=a.indexOf$S(b),h,f=b.length$(); +if(0>d||0==f)return h=l(String,[1]),h[0]=a,h;for(var g=a.length$()-f;0<=d&&dc||0>(c=a.indexOf$S$I('"',c)))return"";for(var d= +c+1,h=a.length$();++cc||(c=c+b.length$()+1)>=a.length$())return"";var d=a.charAt$I(c);switch(d.$c()){case 39:case 34:c++;break;default:d=" ",a+=" "}d=a.indexOf$I$I(d,c);return 0>d?null:a.substring$I$I(c,d)},1);b(y,"getCSVString$S$IA",function(a,b){var c=b[1];if(0>c|| +0>(c=a.indexOf$S$I('"',c)))return null;for(var d=b[0]=c,h=a.length$(),f=!1,g=!1;++c=h)return b[1]=-1,null;b[1]=c+1;c=a.substring$I$I(d+1,c);return g?y.rep$S$S$S(y.rep$S$S$S(c,'""',"\x00"),"\x00",'"'):c},1);b(y,"isOneOf$S$S",function(a,b){if(0==b.length$())return!1;";"!=b.charAt$I(0)&&(b=";"+b+";");return 0>a.indexOf$S(";")&&0<=b.indexOf$S(";"+a+";")},1);b(y,"getQuotedAttribute$S$S",function(a,b){var c=a.indexOf$S(b+ +"=");return 0>c?null:y.getQuotedStringAt$S$I(a,c)},1);b(y,"approx$F$F",function(a,b){return Math.round(a*b)/b},1);b(y,"rep$S$S$S",function(a,b,c){if(null==a||0==b.length$()||0>a.indexOf$S(b))return a;var d=0<=c.indexOf$S(b);do a=a.replace$CharSequence$CharSequence(b,c);while(!d&&0<=a.indexOf$S(b));return a},1);b(y,"formatF$F$I$I$Z$Z",function(a,b,c,d,h){return y.formatS$S$I$I$Z$Z(Tj(1).formatDecimal$F$I(a,c),b,0,d,h)},1);b(y,"formatD$D$I$I$Z$Z$Z",function(a,b,c,d,h){return y.formatS$S$I$I$Z$Z(Tj(1).formatDecimal$F$I(a, +-1-c),b,0,d,h)},1);b(y,"formatS$S$I$I$Z$Z",function(a,b,c,d,h){if(null==a)return"";var g=a.length$();2147483647!=c&&0c&&0<=g+c&&(a=a.substring$I(g+c+1));c=b-a.length$();if(0>=c)return a;b=h&&!d&&"-"==a.charAt$I(0);h=h?"0":" ";var j=b?"-":h,g=f(Tj(2));d&&g.append$S(a);for(g.appendC$C(j);0<--c;)g.appendC$C(h);d||g.append$S(b?h+a.substring$I(1):a);return g.toString()},1);b(y,"replaceWithCharacter$S$S$C",function(a,b,c){if(null==a)return null;for(var d=b.length$();0<= +--d;)a=a.replace$C$C(b.charAt$I(d),c);return a},1);b(y,"replaceAllCharacters$S$S$S",function(a,b,c){for(var d=b.length$();0<=--d;){var h=b.substring$I$I(d,d+1);a=y.rep$S$S$S(a,h,c)}return a},1);b(y,"trim$S$S",function(a,b){if(null==a||0==a.length$())return a;if(0==b.length$())return a.trim$();for(var c=a.length$(),d=0;dd&&0<=b.indexOf$I(a.charAt$I(c));)c--;return a.substring$I$I(d,c+1)},1);b(y,"trimQuotes$S",function(a){return null!=a&& +1a.indexOf(".")&&(0>a.indexOf("e")&&0>a.indexOf("N")&&0>a.indexOf("n"))&&(a+=".0");return a},1);b(y,"join$SA$C$I",function(a,b,c){if(a.lengtha.indexOf$S("%")||0==g||0>a.indexOf$S(b))return a;var j="",k,l,m;for(k=0;0<=(l=a.indexOf$I$I("%",k))&&0<=(m=a.indexOf$S$I(b,l+1));)if(k!=l&&(j+=a.substring$I$I(k,l)),k=l+1,m>l+6)j+="%";else try{var n=!1;"-"==a.charAt$I(k)&&(n=!0,++k);var q=!1;"0"==a.charAt$I(k)&&(q=!0,++k);for(var r,t=0;"0"<=(r=a.charAt$I(k))&&"9">=r;)t=10*t+(r.$c()-48),++k;var v=2147483647,u=!1;if("."==a.charAt$I(k)){++k;if("-"==(r=a.charAt$I(k)))u= +null==c,++k;if("0"<=(r=a.charAt$I(k))&&"9">=r)v=r.$c()-48,++k;u&&(v=-v)}if(a.substring$I$I(k,k+g).equals$O(b)){if(k+=g,Float.isNaN$F(d)?null!=c?j+=y.formatS$S$I$I$Z$Z(c,t,v,n,q):Double.isNaN$D(h)||(j+=y.formatD$D$I$I$Z$Z$Z(h,t,v-1,n,q,!0)):j+=y.formatF$F$I$I$Z$Z(d,t,v,n,q),f)break}else k=l+1,j+="%"}catch(w){if(A(w,"IndexOutOfBoundsException")){k=l;break}else throw w;}return j+=a.substring$I(k)},1);b(y,"formatStringS$S$S$S",function(a,b,c){return y.formatString$S$S$S$F$D$Z(a,b,c,NaN,NaN,!1)},1);b(y, +"formatStringF$S$S$F",function(a,b,c){return y.formatString$S$S$S$F$D$Z(a,b,null,c,NaN,!1)},1);b(y,"formatStringI$S$S$I",function(a,b,c){return y.formatString$S$S$S$F$D$Z(a,b,""+c,NaN,NaN,!1)},1);b(y,"sprintf$S$S$OA",function(a,b,c){if(null==c)return a;var d=b.length$();if(d==c.length)try{for(var h=0;ha.indexOf$I("p")&&0>a.indexOf$I("q"))return a;a=y.rep$S$S$S(a,"%%","\u0001");a=y.rep$S$S$S(a,"%p","%6.2p");a=y.rep$S$S$S(a,"%q","%6.2q");a=y.split$S$S(a,"%");var b=f(Tj(2));b.append$S(a[0]);for(var c=1;ca&&(a=0);return((new Float(a)).toString()+" ").substring$I$I(0,b)},1);b(y,"isWild$S",function(a){return null!=a&&(0<=a.indexOf$S("*")||0<=a.indexOf$S("?"))},1);b(y,"isMatch$S$S$Z$Z",function(a,b,c,d){if(a.equals$O(b))return!0;var h=b.length$();if(0==h)return!1;var f=c&&d?"*"==b.charAt$I(0):!1;if(1==h&&f)return!0;var g=c&&b.endsWith$S("*");if(!(0<=b.indexOf$I("?"))){if(f)return g?3>h||0<=a.indexOf$S(b.substring$I$I(1,h-1)):a.endsWith$S(b.substring$I(1));if(g)return a.startsWith$S(b.substring$I$I(0, +h-1))}for(var j=a.length$(),k="????",l=4;lj;){if(d&&"?"==b.charAt$I(c))++c;else if("?"!=b.charAt$I(c+h-1))return!1;--h}for(d=j;0<=--d;)if(h=b.charAt$I(c+d),"?"!=h&&(j=a.charAt$I(d),h!=j&&("\u0001"!=h||"?"!=j)))return!1;return!0},1);b(y,"replaceQuotedStrings$S$javajs_util_Lst$javajs_util_Lst",function(a,b,c){for(var d=b.size$(),h=0;h=a},1);b(y,"isUpperCase$C",function(a){a=a.$c();return 65<=a&&90>=a},1);b(y,"isLowerCase$C",function(a){a=a.$c();return 97<=a&&122>=a},1);b(y,"isLetter$C",function(a){a=a.$c();return 65<=a&&90>=a||97<=a&&122>=a}, +1);b(y,"isLetterOrDigit$C",function(a){a=a.$c();return 65<=a&&90>=a||97<=a&&122>=a||48<=a&&57>=a},1);b(y,"isWhitespace$C",function(a){a=a.$c();return 28<=a&&32>=a||9<=a&&13>=a},1);b(y,"fixPtFloats$javajs_util_T3$F",function(a,b){a.x=Math.round(a.x*b)/b;a.y=Math.round(a.y*b)/b;a.z=Math.round(a.z*b)/b},1);b(y,"fixDouble$D$D",function(a,b){return Math.round(a*b)/b},1);b(y,"parseFloatFraction$S",function(a){var b=a.indexOf$S("/");return 0>b?y.parseFloat$S(a):y.parseFloat$S(a.substring$I$I(0,b))/y.parseFloat$S(a.substring$I(b+ +1))},1);b(y);n("3.2.4.07");var gz=q("javajs.util"),Nc=j(gz,"SB");Nc.$clinit$=function(){g(Nc,1)};b(Nc,"$init0$",function(){var a;(a=Nc.superclazz)&&(a=a.$init0$)&&a.apply(this);this.s=this.sb=null},1);b(Nc,"$init$",function(){},1);b(Nc,"c$",function(){Nc.$init$.apply(this);this.s=""},1);b(Nc,"newN$I",function(){return new javajs.util.SB},1);b(Nc,"newS$S",function(a){var b=new javajs.util.SB;b.s=a;return b},1);b(Nc,"append$S",function(a){this.s+=a;return this});b(Nc,"appendC$C",function(a){this.s+= +a;return this});b(Nc,"appendI$I",function(a){this.s+=a;return this});b(Nc,"appendB$Z",function(a){this.s+=a;return this});b(Nc,"appendF$F",function(a){a=""+a;0>a.indexOf(".")&&0>a.indexOf("e")&&(a+=".0");this.s+=a;return this});b(Nc,"appendD$D",function(a){a=""+a;0>a.indexOf(".")&&0>a.indexOf("e")&&(a+=".0");this.s+=a;return this});b(Nc,"appendSB$javajs_util_SB",function(a){this.s+=a.s;return this});b(Nc,"appendO$O",function(a){null!=a&&(this.s+=a.toString());return this});b(Nc,"appendCB$CA$I$I", +function(a,b,c){this.s+=a.slice(b,b+c).join("")});b(Nc,"toString",function(){return this.s});b(Nc,"length$",function(){return this.s.length});b(Nc,"indexOf$S",function(a){return this.s.indexOf(a)});b(Nc,"charAt$I",function(a){return this.s.charAt(a)});b(Nc,"charCodeAt$I",function(a){return this.s.charCodeAt(a)});b(Nc,"setLength$I",function(a){this.s=this.s.substring(0,a)});b(Nc,"lastIndexOf$S",function(a){return this.s.lastIndexOf(a)});b(Nc,"indexOf2$S$I",function(a,b){return this.s.indexOf(a,b)}); +b(Nc,"substring$I",function(a){return this.s.substring(a)});b(Nc,"substring2$I$I",function(a,b){return this.s.substring(a,b)});b(Nc,"toBytes$I$I",function(a,b){return 0==b?l(Byte.TYPE,[0]):(0=d.length$())c=-1}this.setDisplayedMnemonicIndex$I(c)}},Oc);b(P,"setMnemonicFromAction$javax_swing_Action",function(a){a=null==a?null:a.getValue$S("MnemonicKey");this.setMnemonic$I(null==a?"\x00".$c():a.intValue$())},Oc);b(P,"setTextFromAction$javax_swing_Action$Z",function(a, +b){var c=this.getHideActionText$();b?c||this.setText$S(a.getValue$S("Name")):this.setText$S(null!=a&&!c?a.getValue$S("Name"):null)},Oc);b(P,"setIconFromAction$javax_swing_Action",function(a){var b=null;null!=a&&(b=a.getValue$S("SwingLargeIconKey"),null==b&&(b=a.getValue$S("SmallIcon")));this.setIcon$javax_swing_Icon(b)});b(P,"smallIconChanged$javax_swing_Action",function(a){null==a.getValue$S("SwingLargeIconKey")&&this.setIconFromAction$javax_swing_Action(a)});b(P,"largeIconChanged$javax_swing_Action", +function(a){this.setIconFromAction$javax_swing_Action(a)});b(P,"setActionCommandFromAction$javax_swing_Action",function(a){this.setActionCommand$S(null!=a?a.getValue$S("ActionCommandKey"):null)},Oc);b(P,"setSelectedFromAction$javax_swing_Action",function(a){var b=!1;null!=a&&(b=zc(1).isSelected$javax_swing_Action(a));b!=this.isSelected$()&&(this.setSelected$Z(b),!b&&this.isSelected$()&&k(this.getModel$(),"javax.swing.DefaultButtonModel")&&(a=this.getModel$().getGroup$(),null!=a&&a.clearSelection$()))}, +Oc);b(P,"createActionPropertyChangeListener$javax_swing_Action",function(a){return this.createActionPropertyChangeListener0$javax_swing_Action(a)});b(P,"createActionPropertyChangeListener0$javax_swing_Action",function(a){return f(zc(4).c$$javax_swing_AbstractButton$javax_swing_Action,[this,a])});b(P,"isBorderPainted$",function(){return this.paintBorder&&this.\u79d8paintsBorder$()});b(P,"setBorderPainted$Z",function(a){var b=this.paintBorder;this.paintBorder=a;this.borderPaintedSet=!0;this.firePropertyChange$S$Z$Z("borderPainted", +b,this.paintBorder);a!=b&&(this.revalidate$(),this.\u79d8repaint$())});b(P,"paintBorder$java_awt_Graphics",function(a){this.isBorderPainted$()&&P.superclazz.prototype.paintBorder$java_awt_Graphics.apply(this,[a])});b(P,"isFocusPainted$",function(){return this.paintFocus});b(P,"setFocusPainted$Z",function(a){var b=this.paintFocus;this.paintFocus=a;this.firePropertyChange$S$Z$Z("focusPainted",b,this.paintFocus);a!=b&&this.isFocusOwner$()&&(this.revalidate$(),this.\u79d8repaint$())});b(P,"isContentAreaFilled$", +function(){return this.contentAreaFilled});b(P,"setContentAreaFilled$Z",function(a){var b=this.contentAreaFilled;this.contentAreaFilled=a;this.contentAreaFilledSet=!0;this.firePropertyChange$S$Z$Z("contentAreaFilled",b,this.contentAreaFilled);a!=b&&this.\u79d8repaint$()});b(P,"isRolloverEnabled$",function(){return this.rolloverEnabled});b(P,"setRolloverEnabled$Z",function(a){var b=this.rolloverEnabled;this.rolloverEnabled=a;this.rolloverEnabledSet=!0;this.firePropertyChange$S$Z$Z("rolloverEnabled", +b,this.rolloverEnabled);a!=b&&this.\u79d8repaint$()});b(P,"getMnemonic$",function(){return this.mnemonic});b(P,"setMnemonic$I",function(a){this.model.setMnemonic$I(a);Oc.updateMnemonicProperties.apply(this,[])});b(P,"setMnemonic$C",function(a){a=a.$c();97<=a&&122>=a&&(a-=32);this.setMnemonic$I(a)});b(P,"setDisplayedMnemonicIndex$I",function(a){var b=this.mnemonicIndex;if(-1==a)this.mnemonicIndex=-1;else{var c=this.getText$(),c=null==c?0:c.length$();if(-1>a||a>=c)throw f(g("IllegalArgumentException").c$$S, +["index == "+a]);}this.mnemonicIndex=a;this.firePropertyChange$S$I$I("displayedMnemonicIndex",b,a);a!=b&&(this.revalidate$(),this.\u79d8repaint$())});b(P,"getDisplayedMnemonicIndex$",function(){return this.mnemonicIndex});b(P,"updateDisplayedMnemonicIndex$S$I",function(a,b){this.setDisplayedMnemonicIndex$I(zc(5).findDisplayedMnemonicIndex$S$I(a,b))},Oc);b(P,"updateMnemonicProperties",function(){var a=this.model.getMnemonic$();if(this.mnemonic!=a){var b=this.mnemonic;this.mnemonic=a;this.firePropertyChange$S$I$I("mnemonic", +b,this.mnemonic);Oc.updateDisplayedMnemonicIndex$S$I.apply(this,[this.getText$(),this.mnemonic]);this.revalidate$();this.\u79d8repaint$()}},Oc);b(P,"setMultiClickThreshhold$J",function(a){if(0>a)throw f(g("IllegalArgumentException").c$$S,["threshhold must be >= 0"]);this.multiClickThreshhold=a});b(P,"getMultiClickThreshhold$",function(){return this.multiClickThreshhold});b(P,"getModel$",function(){return this.model});b(P,"setModel$javax_swing_ButtonModel",function(a){var b=this.getModel$();null!= +b&&(b.removeChangeListener$javax_swing_event_ChangeListener(this.changeListener),b.removeActionListener$java_awt_event_ActionListener(this.actionListener),b.removeItemListener$java_awt_event_ItemListener(this.itemListener),this.itemListener=this.actionListener=this.changeListener=null);this.model=a;null!=a?(this.\u79d8isAWT$(),this.changeListener=this.createChangeListener$(),this.actionListener=this.createActionListener$(),this.itemListener=this.createItemListener$(),a.addChangeListener$javax_swing_event_ChangeListener(this.changeListener), +a.addActionListener$java_awt_event_ActionListener(this.actionListener),a.addItemListener$java_awt_event_ItemListener(this.itemListener),Oc.updateMnemonicProperties.apply(this,[]),P.superclazz.prototype.setEnabled$Z.apply(this,[a.isEnabled$()])):this.mnemonic="\x00".$c();Oc.updateDisplayedMnemonicIndex$S$I.apply(this,[this.getText$(),this.mnemonic]);this.firePropertyChange$S$O$O("model",b,a);a!==b&&(this.revalidate$(),this.\u79d8repaint$())});b(P,"getUI$",function(){return this.ui});b(P,"setUI$javax_swing_plaf_ButtonUI", +function(a){P.superclazz.prototype.setUI$javax_swing_plaf_ComponentUI.apply(this,[a]);k(this.disabledIcon,"javax.swing.plaf.UIResource")&&this.setDisabledIcon$javax_swing_Icon(null);k(this.disabledSelectedIcon,"javax.swing.plaf.UIResource")&&this.setDisabledSelectedIcon$javax_swing_Icon(null)});b(P,"addImpl$java_awt_Component$O$I",function(a,b,c){this.setLayout||this.setLayout$java_awt_LayoutManager(f(zc(6).c$$java_awt_Container,[this]));this.addImplCont$java_awt_Component$O$I(a,b,c)});b(P,"setLayout$java_awt_LayoutManager", +function(a){this.setLayout=!0;P.superclazz.prototype.setLayout$java_awt_LayoutManager.apply(this,[a])});b(P,"addChangeListener$javax_swing_event_ChangeListener",function(a){this.listenerList.add$Class$TT(x(zc(7),["stateChanged$javax_swing_event_ChangeEvent"]),a)});b(P,"removeChangeListener$javax_swing_event_ChangeListener",function(a){this.listenerList.remove$Class$TT(x(zc(7),["stateChanged$javax_swing_event_ChangeEvent"]),a)});b(P,"getChangeListeners$",function(){return this.listenerList.getListeners$Class(x(zc(7), +["stateChanged$javax_swing_event_ChangeEvent"]))});b(P,"fireStateChanged$",function(){for(var a=this.listenerList.getListenerList$(),b=a.length-2;0<=b;b-=2)a[b]===x(zc(7),["stateChanged$javax_swing_event_ChangeEvent"])&&(null==this.changeEvent&&(this.changeEvent=f(zc(8).c$$O,[this])),a[b+1].stateChanged$(this.changeEvent))});b(P,"addActionListener$java_awt_event_ActionListener",function(a){this.listenerList.add$Class$TT(x(zc(3),["actionPerformed$java_awt_event_ActionEvent"]),a)});b(P,"removeActionListener$java_awt_event_ActionListener", +function(a){null!=a&&this.getAction$()===a?this.setAction$javax_swing_Action(null):this.listenerList.remove$Class$TT(x(zc(3),["actionPerformed$java_awt_event_ActionEvent"]),a)});b(P,"getActionListeners$",function(){return this.listenerList.getListeners$Class(x(zc(3),["actionPerformed$java_awt_event_ActionEvent"]))});b(P,"createChangeListener$",function(){return Oc.getHandler.apply(this,[])});b(P,"fireActionPerformed$java_awt_event_ActionEvent",function(a){for(var b=this.listenerList.getListenerList$(), +c=null,d=b.length-2;0<=d;d-=2)b[d]===x(zc(3),["actionPerformed$java_awt_event_ActionEvent"])&&(null==c&&(c=a.getActionCommand$(),null==c&&(c=this.getActionCommand$()),c=f(zc(9).c$$O$I$S$J$I,[this,1001,c,a.getWhen$(),a.getModifiers$()])),b[d+1].actionPerformed$(c))});b(P,"fireItemStateChanged$java_awt_event_ItemEvent",function(a){for(var b=this.listenerList.getListenerList$(),c=null,d=b.length-2;0<=d;d-=2)b[d]===x(zc(10),["itemStateChanged$java_awt_event_ItemEvent"])&&(null==c&&(c=f(zc(11).c$$java_awt_ItemSelectable$I$O$I, +[this,701,this,a.getStateChange$()])),b[d+1].itemStateChanged$(c))});b(P,"createActionListener$",function(){return Oc.getHandler.apply(this,[])});b(P,"createItemListener$",function(){return Oc.getHandler.apply(this,[])});b(P,"setEnabled$Z",function(a){!a&&this.model.isRollover$()&&this.model.setRollover$Z(!1);P.superclazz.prototype.setEnabled$Z.apply(this,[a]);this.model.setEnabled$Z(a)});b(P,"getLabel$",function(){return this.getText$()});b(P,"setLabel$S",function(a){this.setText$S(a)});b(P,"addItemListener$java_awt_event_ItemListener", +function(a){this.listenerList.add$Class$TT(x(zc(10),["itemStateChanged$java_awt_event_ItemEvent"]),a)});b(P,"removeItemListener$java_awt_event_ItemListener",function(a){this.listenerList.remove$Class$TT(x(zc(10),["itemStateChanged$java_awt_event_ItemEvent"]),a)});b(P,"getItemListeners$",function(){return this.listenerList.getListeners$Class(x(zc(10),["itemStateChanged$java_awt_event_ItemEvent"]))});b(P,"getSelectedObjects$",function(){if(!1==this.isSelected$())return null;var a=l(java.lang.Object, +[1]);a[0]=this.getText$();return a});b(P,"init$S$javax_swing_Icon",function(a,b){null!=a&&this.setText$S(a);null!=b&&this.setIcon$javax_swing_Icon(b);this.updateUI$();this.setAlignmentX$F(0);this.setAlignmentY$F(0.5)});b(P,["imageUpdate$java_awt_Image$I$I$I$I$I","imageUpdate$"],function(a,b,c,d,h,f){var g=this.getIcon$();if(null==g)return!1;this.model.isEnabled$()?this.model.isPressed$()&&this.model.isArmed$()?g=this.getPressedIcon$():this.isRolloverEnabled$()&&this.model.isRollover$()?g=this.model.isSelected$()? +this.getRolloverSelectedIcon$():this.getRolloverIcon$():this.model.isSelected$()&&(g=this.getSelectedIcon$()):g=this.model.isSelected$()?this.getDisabledSelectedIcon$():this.getDisabledIcon$();return!zc(5).doesIconReferenceImage$javax_swing_Icon$java_awt_Image(g,a)?!1:P.superclazz.prototype.imageUpdate$java_awt_Image$I$I$I$I$I.apply(this,[a,b,c,d,h,f])});b(P,"setUIProperty$S$O",function(a,b){"borderPainted"==a?this.borderPaintedSet||(this.setBorderPainted$Z(b.booleanValue$()),this.borderPaintedSet= +!1):"rolloverEnabled"==a?this.rolloverEnabledSet||(this.setRolloverEnabled$Z(b.booleanValue$()),this.rolloverEnabledSet=!1):"iconTextGap"==a?this.iconTextGapSet||(this.setIconTextGap$I(b.intValue$()),this.iconTextGapSet=!1):"contentAreaFilled"==a?this.contentAreaFilledSet||(this.setContentAreaFilled$Z(b.booleanValue$()),this.contentAreaFilledSet=!1):P.superclazz.prototype.setUIProperty$S$O.apply(this,[a,b])});b(P,"paramString$",function(){var a=null!=this.defaultIcon&&this.defaultIcon!==this?this.defaultIcon.toString(): +"",b=null!=this.pressedIcon&&this.pressedIcon!==this?this.pressedIcon.toString():"",c=null!=this.disabledIcon&&this.disabledIcon!==this?this.disabledIcon.toString():"",d=null!=this.selectedIcon&&this.selectedIcon!==this?this.selectedIcon.toString():"",h=null!=this.disabledSelectedIcon&&this.disabledSelectedIcon!==this?this.disabledSelectedIcon.toString():"",f=null!=this.rolloverIcon&&this.rolloverIcon!==this?this.rolloverIcon.toString():"",g=null!=this.rolloverSelectedIcon&&this.rolloverSelectedIcon!== +this?this.rolloverSelectedIcon.toString():"",j=this.paintBorder?"true":"false",k=this.paintFocus?"true":"false",l=this.rolloverEnabled?"true":"false";return P.superclazz.prototype.paramString$.apply(this,[])+",defaultIcon="+a+",disabledIcon="+c+",disabledSelectedIcon="+h+",margin="+this.margin+",paintBorder="+j+",paintFocus="+k+",pressedIcon="+b+",rolloverEnabled="+l+",rolloverIcon="+f+",rolloverSelectedIcon="+g+",selectedIcon="+d+",text="+this.text});b(P,"getHandler",function(){null==this.handler&& +(this.handler=f(zc(12),[this,null]));return this.handler},Oc);var Il=j(nq.AbstractButton,"ButtonActionPropertyChangeListener",function(a){m(this,a,!1,Il)},"javax.swing.ActionPropertyChangeListener");Il.$clinit$=function(){g(Il,1)};b(Il,"$init$",function(){},1);b(Il,"c$$javax_swing_AbstractButton$javax_swing_Action",function(a,b){Il.superclazz.c$$TT$javax_swing_Action.apply(this,[a,b]);Il.$init$.apply(this)},1);b(Il,["actionPropertyChanged$javax_swing_AbstractButton$javax_swing_Action$java_beans_PropertyChangeEvent", +"actionPropertyChanged$TT$javax_swing_Action$java_beans_PropertyChangeEvent"],function(a,b,c){zc(1).shouldReconfigure$java_beans_PropertyChangeEvent(c)?a.configurePropertiesFromAction$javax_swing_Action(b):a.actionPropertyChanged$javax_swing_Action$S(b,c.getPropertyName$())});b(Il);var qn=j(nq.AbstractButton,"ButtonChangeListener",function(a){m(this,a,!0,qn)},null,"javax.swing.event.ChangeListener");qn.$clinit$=function(){g(qn,1)};b(qn,"$init$",function(){},1);b(qn,"c$",function(){qn.$init$.apply(this)}, +1);b(qn,["stateChanged$javax_swing_event_ChangeEvent","stateChanged$"],function(a){Oc.getHandler.apply(this.this$0,[]).stateChanged$javax_swing_event_ChangeEvent(a)});var tm=j(nq.AbstractButton,"Handler",function(a){m(this,a,!0,tm)},null,["java.awt.event.ActionListener","javax.swing.event.ChangeListener","java.awt.event.ItemListener"]);tm.$clinit$=function(){g(tm,1)};b(tm,"$init$",function(){},1);b(tm,["stateChanged$javax_swing_event_ChangeEvent","stateChanged$"],function(){Oc.updateMnemonicProperties.apply(this.this$0, +[]);this.b$["java.awt.Component"].isEnabled$.apply(this.b$["java.awt.Component"],[])!=this.this$0.model.isEnabled$()&&this.this$0.setEnabled$Z.apply(this.this$0,[this.this$0.model.isEnabled$()]);this.this$0.fireStateChanged$.apply(this.this$0,[]);this.b$["java.awt.JSComponent"].\u79d8repaint$.apply(this.b$["java.awt.JSComponent"],[])});b(tm,["actionPerformed$java_awt_event_ActionEvent","actionPerformed$"],function(a){this.this$0.fireActionPerformed$java_awt_event_ActionEvent.apply(this.this$0,[a])}); +b(tm,["itemStateChanged$java_awt_event_ItemEvent","itemStateChanged$"],function(a){this.this$0.fireItemStateChanged$java_awt_event_ItemEvent.apply(this.this$0,[a]);if(this.this$0.shouldUpdateSelectedStateFromAction$.apply(this.this$0,[])&&(a=this.this$0.getAction$.apply(this.this$0,[]),null!=a&&zc(1).hasSelectedKey$javax_swing_Action(a))){var b=this.this$0.isSelected$.apply(this.this$0,[]);zc(1).isSelected$javax_swing_Action(a)!=b&&a.putValue$S$O("SwingSelectedKey",new Boolean(b))}});b(tm);b(P);n("3.2.4.07"); +var jz=q("javax.swing"),Ks=[[0,"javax.swing.event.EventListenerList","javax.swing.event.ListDataListener","javax.swing.event.ListDataEvent"]],Uk=function(a){return Ks[a]||(Ks[a]=g(Ks[0][a]))},ri=j(jz,"AbstractListModel",null,null,"javax.swing.ListModel");ri.$clinit$=function(){g(ri,1)};b(ri,"$init0$",function(){var a;(a=ri.superclazz)&&(a=a.$init0$)&&a.apply(this);this.listenerList=null},1);b(ri,"$init$",function(){this.listenerList=f(Uk(1))},1);b(ri,"addListDataListener$javax_swing_event_ListDataListener", +function(a){this.listenerList.add$Class$TT(x(Uk(2),["contentsChanged$javax_swing_event_ListDataEvent","intervalAdded$javax_swing_event_ListDataEvent","intervalRemoved$javax_swing_event_ListDataEvent"]),a)});b(ri,"removeListDataListener$javax_swing_event_ListDataListener",function(a){this.listenerList.remove$Class$TT(x(Uk(2),["contentsChanged$javax_swing_event_ListDataEvent","intervalAdded$javax_swing_event_ListDataEvent","intervalRemoved$javax_swing_event_ListDataEvent"]),a)});b(ri,"getListDataListeners$", +function(){return this.listenerList.getListeners$Class(x(Uk(2),["contentsChanged$javax_swing_event_ListDataEvent","intervalAdded$javax_swing_event_ListDataEvent","intervalRemoved$javax_swing_event_ListDataEvent"]))});b(ri,"fireContentsChanged$O$I$I",function(a,b,c){for(var d=this.listenerList.getListenerList$(),h=null,g=d.length-2;0<=g;g-=2)d[g]===x(Uk(2),["contentsChanged$javax_swing_event_ListDataEvent","intervalAdded$javax_swing_event_ListDataEvent","intervalRemoved$javax_swing_event_ListDataEvent"])&& +(null==h&&(h=f(Uk(3).c$$O$I$I$I,[a,0,b,c])),d[g+1].contentsChanged$javax_swing_event_ListDataEvent(h))});b(ri,"fireIntervalAdded$O$I$I",function(a,b,c){for(var d=this.listenerList.getListenerList$(),h=null,g=d.length-2;0<=g;g-=2)d[g]===x(Uk(2),["contentsChanged$javax_swing_event_ListDataEvent","intervalAdded$javax_swing_event_ListDataEvent","intervalRemoved$javax_swing_event_ListDataEvent"])&&(null==h&&(h=f(Uk(3).c$$O$I$I$I,[a,1,b,c])),d[g+1].intervalAdded$javax_swing_event_ListDataEvent(h))});b(ri, +"fireIntervalRemoved$O$I$I",function(a,b,c){for(var d=this.listenerList.getListenerList$(),h=null,g=d.length-2;0<=g;g-=2)d[g]===x(Uk(2),["contentsChanged$javax_swing_event_ListDataEvent","intervalAdded$javax_swing_event_ListDataEvent","intervalRemoved$javax_swing_event_ListDataEvent"])&&(null==h&&(h=f(Uk(3).c$$O$I$I$I,[a,2,b,c])),d[g+1].intervalRemoved$javax_swing_event_ListDataEvent(h))});b(ri,"getListeners$Class",function(a){return this.listenerList.getListeners$Class(a)});b(ri);n("3.2.4.07");var kz= +q("javax.swing"),ow=N(kz,"Action",null,null,"java.awt.event.ActionListener");ow.$clinit$=function(){g(ow,1)};n("3.2.4.07");var lz=q("javax.swing"),ro=[[0,"javax.swing.ArrayTable","java.util.HashMap"]],Og=j(lz,"ActionMap");Og.$clinit$=function(){g(Og,1)};b(Og,"$init0$",function(){var a;(a=Og.superclazz)&&(a=a.$init0$)&&a.apply(this);this.parent=this.arrayTable=null},1);b(Og,"$init$",function(){},1);b(Og,"c$",function(){Og.$init$.apply(this)},1);b(Og,"setParent$javax_swing_ActionMap",function(a){this.parent= +a});b(Og,"getParent$",function(){return this.parent});b(Og,"put$O$javax_swing_Action",function(a,b){null!=a&&(null==b?this.remove$O(a):(null==this.arrayTable&&(this.arrayTable=f(ro[1]||(ro[1]=g(ro[0][1])))),this.arrayTable.put$O$O(a,b)))});b(Og,"get$O",function(a){var b=null==this.arrayTable?null:this.arrayTable.get$O(a);if(null==b){var c=this.getParent$();if(null!=c)return c.get$O(a)}return b});b(Og,"remove$O",function(a){null!=this.arrayTable&&this.arrayTable.remove$O(a)});b(Og,"clear$",function(){null!= +this.arrayTable&&this.arrayTable.clear$()});b(Og,"keys$",function(){return null==this.arrayTable?null:this.arrayTable.getKeys$OA(null)});b(Og,"size$",function(){return null==this.arrayTable?0:this.arrayTable.size$()});b(Og,"allKeys$",function(){var a=this.size$(),b=this.getParent$();if(0==a)return null!=b?b.allKeys$():this.keys$();if(null==b)return this.keys$();a=this.keys$();b=b.allKeys$();if(null==b)return a;if(null==a)return b;var c=f(ro[2]||(ro[2]=g(ro[0][2]))),d;for(d=a.length-1;0<=d;d--)c.put$TK$TV(a[d], +a[d]);for(d=b.length-1;0<=d;d--)c.put$TK$TV(b[d],b[d]);return c.keySet$().toArray$()});n("3.2.4.07");var mz=q("javax.swing"),Ls=[[0,"javax.swing.event.EventListenerList","javax.swing.event.AncestorListener","javax.swing.event.AncestorEvent"]],Vk=function(a){return Ls[a]||(Ls[a]=g(Ls[0][a]))},De=j(mz,"AncestorNotifier",null,null,["java.awt.event.ComponentListener","java.beans.PropertyChangeListener"]);De.$clinit$=function(){g(De,1)};b(De,"$init0$",function(){var a;(a=De.superclazz)&&(a=a.$init0$)&& +a.apply(this);this.root=this.listenerList=this.firstInvisibleAncestor=null},1);b(De,"$init$",function(){this.listenerList=f(Vk(1))},1);b(De,"c$$javax_swing_JComponent",function(a){De.$init$.apply(this);this.root=a;this.addListeners$java_awt_Component$Z(a,!0)},1);b(De,"addAncestorListener$javax_swing_event_AncestorListener",function(a){this.listenerList.add$Class$TT(x(Vk(2),["ancestorAdded$javax_swing_event_AncestorEvent","ancestorMoved$javax_swing_event_AncestorEvent","ancestorRemoved$javax_swing_event_AncestorEvent"]), +a)});b(De,"removeAncestorListener$javax_swing_event_AncestorListener",function(a){this.listenerList.remove$Class$TT(x(Vk(2),["ancestorAdded$javax_swing_event_AncestorEvent","ancestorMoved$javax_swing_event_AncestorEvent","ancestorRemoved$javax_swing_event_AncestorEvent"]),a)});b(De,"getAncestorListeners$",function(){return this.listenerList.getListeners$Class(x(Vk(2),["ancestorAdded$javax_swing_event_AncestorEvent","ancestorMoved$javax_swing_event_AncestorEvent","ancestorRemoved$javax_swing_event_AncestorEvent"]))}); +b(De,"fireAncestorAdded$javax_swing_JComponent$I$java_awt_Container$java_awt_Container",function(a,b,c,d){for(var h=this.listenerList.getListenerList$(),g=h.length-2;0<=g;g-=2)if(h[g]===x(Vk(2),["ancestorAdded$javax_swing_event_AncestorEvent","ancestorMoved$javax_swing_event_AncestorEvent","ancestorRemoved$javax_swing_event_AncestorEvent"])){var j=f(Vk(3).c$$javax_swing_JComponent$I$java_awt_Container$java_awt_Container,[a,b,c,d]);h[g+1].ancestorAdded$javax_swing_event_AncestorEvent(j)}});b(De,"fireAncestorRemoved$javax_swing_JComponent$I$java_awt_Container$java_awt_Container", +function(a,b,c,d){for(var h=this.listenerList.getListenerList$(),g=h.length-2;0<=g;g-=2)if(h[g]===x(Vk(2),["ancestorAdded$javax_swing_event_AncestorEvent","ancestorMoved$javax_swing_event_AncestorEvent","ancestorRemoved$javax_swing_event_AncestorEvent"])){var j=f(Vk(3).c$$javax_swing_JComponent$I$java_awt_Container$java_awt_Container,[a,b,c,d]);h[g+1].ancestorRemoved$javax_swing_event_AncestorEvent(j)}});b(De,"fireAncestorMoved$javax_swing_JComponent$I$java_awt_Container$java_awt_Container",function(a, +b,c,d){for(var h=this.listenerList.getListenerList$(),g=h.length-2;0<=g;g-=2)if(h[g]===x(Vk(2),["ancestorAdded$javax_swing_event_AncestorEvent","ancestorMoved$javax_swing_event_AncestorEvent","ancestorRemoved$javax_swing_event_AncestorEvent"])){var j=f(Vk(3).c$$javax_swing_JComponent$I$java_awt_Container$java_awt_Container,[a,b,c,d]);h[g+1].ancestorMoved$javax_swing_event_AncestorEvent(j)}});b(De,"removeAllListeners$",function(){this.removeListeners$java_awt_Component(this.root)});b(De,"addListeners$java_awt_Component$Z", +function(a,b){var c;this.firstInvisibleAncestor=null;for(c=a;null==this.firstInvisibleAncestor;c=c.getParent$()){if(b||c!==a)c.addComponentListener$java_awt_event_ComponentListener(this),k(c,"javax.swing.JComponent")&&c.addPropertyChangeListener$java_beans_PropertyChangeListener(this);if(!c.isVisible$()||null==c.getParent$()||c.isWindowOrJSApplet$())this.firstInvisibleAncestor=c}null!=this.firstInvisibleAncestor&&(this.firstInvisibleAncestor.isWindowOrJSApplet$()&&this.firstInvisibleAncestor.isVisible$())&& +(this.firstInvisibleAncestor=null)});b(De,"removeListeners$java_awt_Component",function(a){for(;null!=a&&!(a.removeComponentListener$java_awt_event_ComponentListener(this),k(a,"javax.swing.JComponent")&&a.removePropertyChangeListener$java_beans_PropertyChangeListener(this),a===this.firstInvisibleAncestor||a.isWindowOrJSApplet$());a=a.getParent$());});b(De,"componentResized$java_awt_event_ComponentEvent",function(){});b(De,"componentMoved$java_awt_event_ComponentEvent",function(a){a=a.getComponent$(); +this.fireAncestorMoved$javax_swing_JComponent$I$java_awt_Container$java_awt_Container(this.root,3,a,a.getParent$())});b(De,"componentShown$java_awt_event_ComponentEvent",function(a){a=a.getComponent$();a===this.firstInvisibleAncestor&&(this.addListeners$java_awt_Component$Z(a,!1),null==this.firstInvisibleAncestor&&this.fireAncestorAdded$javax_swing_JComponent$I$java_awt_Container$java_awt_Container(this.root,1,a,a.getParent$()))});b(De,"componentHidden$java_awt_event_ComponentEvent",function(a){a= +a.getComponent$();var b=null==this.firstInvisibleAncestor;a.isWindowOrJSApplet$()||this.removeListeners$java_awt_Component(a.getParent$());this.firstInvisibleAncestor=a;b&&this.fireAncestorRemoved$javax_swing_JComponent$I$java_awt_Container$java_awt_Container(this.root,2,a,a.getParent$())});b(De,["propertyChange$java_beans_PropertyChangeEvent","propertyChange$"],function(a){var b=a.getPropertyName$();if(null!=b&&(b.equals$O("parent")||b.equals$O("ancestor")))if(b=a.getSource$(),null!=a.getNewValue$())b=== +this.firstInvisibleAncestor&&(this.addListeners$java_awt_Component$Z(b,!1),null==this.firstInvisibleAncestor&&this.fireAncestorAdded$javax_swing_JComponent$I$java_awt_Container$java_awt_Container(this.root,1,b,b.getParent$()));else{var c=null==this.firstInvisibleAncestor;a=a.getOldValue$();this.removeListeners$java_awt_Component(a);this.firstInvisibleAncestor=b;c&&this.fireAncestorRemoved$javax_swing_JComponent$I$java_awt_Container$java_awt_Container(this.root,2,b,a)}});b(De);n("3.2.4.07");var nz= +q("javax.swing"),si={},Ms=[[0,"java.util.Hashtable"]],Cf=j(nz,"ArrayTable",null,null,"Cloneable");Cf.$clinit$=function(){g(Cf,1)};b(Cf,"$init0$",function(){var a;(a=Cf.superclazz)&&(a=a.$init0$)&&a.apply(this);this.table=null},1);b(Cf,"$init$",function(){this.table=null},1);b(Cf,"c$",function(){Cf.$init$.apply(this)},1);b(Cf,"put$O$O",function(a,b){if(null==this.table)this.table=l(java.lang.Object,-1,[a,b]);else{var c=this.size$();if(8>c)if(this.containsKey$O(a))for(var c=this.table,d=0;db||0>c)throw f(g("IllegalArgumentException").c$$S,["Width and height must be >= 0"]);return-1});b(tg,"getBaselineResizeBehavior$java_awt_Component",function(a){if(null==a)throw f(g("NullPointerException").c$$S,["Component must be non-null"]);return oq(3).OTHER});b(tg,"isLeftToRight$java_awt_Component",function(a){return a.getComponentOrientation$().isLeftToRight$()},1);b(tg);n("3.2.4.07");var pz=q("javax.swing.border"), +Os=[[0,"java.awt.Insets"]],xd=j(pz,"BevelBorder",null,"javax.swing.border.AbstractBorder");xd.$clinit$=function(){g(xd,1)};b(xd,"$init0$",function(){var a;(a=xd.superclazz)&&(a=a.$init0$)&&a.apply(this);this.bevelType=0;this.shadowOuter=this.shadowInner=this.highlightInner=this.highlightOuter=null},1);b(xd,"$init$",function(){},1);b(xd,"c$$I",function(a){S(xd,this,1);this.bevelType=a},1);b(xd,"c$$I$java_awt_Color$java_awt_Color",function(a,b,c){xd.c$$I$java_awt_Color$java_awt_Color$java_awt_Color$java_awt_Color.apply(this, +[a,b.brighter$(),b,c,c.brighter$()])},1);b(xd,"c$$I$java_awt_Color$java_awt_Color$java_awt_Color$java_awt_Color",function(a,b,c,d,h){xd.c$$I.apply(this,[a]);this.highlightOuter=b;this.highlightInner=c;this.shadowOuter=d;this.shadowInner=h},1);b(xd,"paintBorder$java_awt_Component$java_awt_Graphics$I$I$I$I",function(a,b,c,d,h,f){0==this.bevelType?this.paintRaisedBevel$java_awt_Component$java_awt_Graphics$I$I$I$I(a,b,c,d,h,f):1==this.bevelType&&this.paintLoweredBevel$java_awt_Component$java_awt_Graphics$I$I$I$I(a, +b,c,d,h,f)});b(xd,"getBorderInsets$java_awt_Component",function(){return f((Os[1]||(Os[1]=g(Os[0][1]))).c$$I$I$I$I,[2,2,2,2])});b(xd,"getBorderInsets$java_awt_Component$java_awt_Insets",function(a,b){b.left=b.top=b.right=b.bottom=2;return b});b(xd,"getHighlightOuterColor$java_awt_Component",function(a){var b=this.getHighlightOuterColor$();return null!=b?b:a.getBackground$().brighter$().brighter$()});b(xd,"getHighlightInnerColor$java_awt_Component",function(a){var b=this.getHighlightInnerColor$(); +return null!=b?b:a.getBackground$().brighter$()});b(xd,"getShadowInnerColor$java_awt_Component",function(a){var b=this.getShadowInnerColor$();return null!=b?b:a.getBackground$().darker$()});b(xd,"getShadowOuterColor$java_awt_Component",function(a){var b=this.getShadowOuterColor$();return null!=b?b:a.getBackground$().darker$().darker$()});b(xd,"getHighlightOuterColor$",function(){return this.highlightOuter});b(xd,"getHighlightInnerColor$",function(){return this.highlightInner});b(xd,"getShadowInnerColor$", +function(){return this.shadowInner});b(xd,"getShadowOuterColor$",function(){return this.shadowOuter});b(xd,"getBevelType$",function(){return this.bevelType});b(xd,"isBorderOpaque$",function(){return!0});b(xd,"paintRaisedBevel$java_awt_Component$java_awt_Graphics$I$I$I$I",function(a,b,c,d,h,f){var g=b.getColor$();b.translate$I$I(c,d);b.setColor$java_awt_Color(this.getHighlightOuterColor$java_awt_Component(a));b.drawLine$I$I$I$I(0,0,0,f-2);b.drawLine$I$I$I$I(1,0,h-2,0);b.setColor$java_awt_Color(this.getHighlightInnerColor$java_awt_Component(a)); +b.drawLine$I$I$I$I(1,1,1,f-3);b.drawLine$I$I$I$I(2,1,h-3,1);b.setColor$java_awt_Color(this.getShadowOuterColor$java_awt_Component(a));b.drawLine$I$I$I$I(0,f-1,h-1,f-1);b.drawLine$I$I$I$I(h-1,0,h-1,f-2);b.setColor$java_awt_Color(this.getShadowInnerColor$java_awt_Component(a));b.drawLine$I$I$I$I(1,f-2,h-2,f-2);b.drawLine$I$I$I$I(h-2,1,h-2,f-3);b.translate$I$I(-c,-d);b.setColor$java_awt_Color(g)});b(xd,"paintLoweredBevel$java_awt_Component$java_awt_Graphics$I$I$I$I",function(a,b,c,d,h,f){var g=b.getColor$(); +b.translate$I$I(c,d);b.setColor$java_awt_Color(this.getShadowInnerColor$java_awt_Component(a));b.drawLine$I$I$I$I(0,0,0,f-1);b.drawLine$I$I$I$I(1,0,h-1,0);b.setColor$java_awt_Color(this.getShadowOuterColor$java_awt_Component(a));b.drawLine$I$I$I$I(1,1,1,f-2);b.drawLine$I$I$I$I(2,1,h-2,1);b.setColor$java_awt_Color(this.getHighlightOuterColor$java_awt_Component(a));b.drawLine$I$I$I$I(1,f-1,h-1,f-1);b.drawLine$I$I$I$I(h-1,1,h-1,f-2);b.setColor$java_awt_Color(this.getHighlightInnerColor$java_awt_Component(a)); +b.drawLine$I$I$I$I(2,f-2,h-2,f-2);b.drawLine$I$I$I$I(h-2,2,h-2,f-3);b.translate$I$I(-c,-d);b.setColor$java_awt_Color(g)});b(xd);n("3.2.4.07");var qz=q("javax.swing.border");N(qz,"Border");n("3.2.4.07");var rz=q("javax.swing.border"),Ps=[[0,"java.awt.Insets"]],lh=j(rz,"CompoundBorder",null,"javax.swing.border.AbstractBorder");lh.$clinit$=function(){g(lh,1)};b(lh,"$init0$",function(){var a;(a=lh.superclazz)&&(a=a.$init0$)&&a.apply(this);this.insideBorder=this.outsideBorder=null},1);b(lh,"$init$",function(){}, +1);b(lh,"c$",function(){S(lh,this,1);this.insideBorder=this.outsideBorder=null},1);b(lh,"c$$javax_swing_border_Border$javax_swing_border_Border",function(a,b){S(lh,this,1);this.outsideBorder=a;this.insideBorder=b},1);b(lh,"isBorderOpaque$",function(){return(null==this.outsideBorder||this.outsideBorder.isBorderOpaque$())&&(null==this.insideBorder||this.insideBorder.isBorderOpaque$())});b(lh,"paintBorder$java_awt_Component$java_awt_Graphics$I$I$I$I",function(a,b,c,d,h,f){var g;g=f;null!=this.outsideBorder&& +(this.outsideBorder.paintBorder$java_awt_Component$java_awt_Graphics$I$I$I$I(a,b,c,d,h,g),f=this.outsideBorder.getBorderInsets$java_awt_Component(a),c+=f.left,d+=f.top,h=h-f.right-f.left,g=g-f.bottom-f.top);null!=this.insideBorder&&this.insideBorder.paintBorder$java_awt_Component$java_awt_Graphics$I$I$I$I(a,b,c,d,h,g)});b(lh,"getBorderInsets$java_awt_Component$java_awt_Insets",function(a,b){var c;b.top=b.left=b.right=b.bottom=0;null!=this.outsideBorder&&(c=this.outsideBorder.getBorderInsets$java_awt_Component(a), +b.top+=c.top,b.left+=c.left,b.right+=c.right,b.bottom+=c.bottom);null!=this.insideBorder&&(c=this.insideBorder.getBorderInsets$java_awt_Component(a),b.top+=c.top,b.left+=c.left,b.right+=c.right,b.bottom+=c.bottom);return b});b(lh,"getBorderInsets$java_awt_Component",function(a){return this.getBorderInsets$java_awt_Component$java_awt_Insets(a,f((Ps[1]||(Ps[1]=g(Ps[0][1]))).c$$I$I$I$I,[0,0,0,0]))});b(lh,"getOutsideBorder$",function(){return this.outsideBorder});b(lh,"getInsideBorder$",function(){return this.insideBorder}); +n("3.2.4.07");var sz=q("javax.swing.border"),Qs=[[0,"java.awt.Insets"]],Mh=j(sz,"EmptyBorder",null,"javax.swing.border.AbstractBorder");Mh.$clinit$=function(){g(Mh,1)};b(Mh,"$init0$",function(){var a;(a=Mh.superclazz)&&(a=a.$init0$)&&a.apply(this);this.bottom=this.top=this.right=this.left=0},1);b(Mh,"$init$",function(){},1);b(Mh,"c$$I$I$I$I",function(a,b,c,d){S(Mh,this,1);this.top=a;this.right=d;this.bottom=c;this.left=b},1);b(Mh,"c$$java_awt_Insets",function(a){S(Mh,this,1);this.top=a.top;this.right= +a.right;this.bottom=a.bottom;this.left=a.left},1);b(Mh,"getBorderInsets$java_awt_Component",function(){return this.getBorderInsets$()});b(Mh,"getBorderInsets$java_awt_Component$java_awt_Insets",function(a,b){b.left=this.left;b.top=this.top;b.right=this.right;b.bottom=this.bottom;return b});b(Mh,"getBorderInsets$",function(){return f((Qs[1]||(Qs[1]=g(Qs[0][1]))).c$$I$I$I$I,[this.top,this.left,this.bottom,this.right])});b(Mh,"isBorderOpaque$",function(){return!1});b(Mh);n("3.2.4.07");var tz=q("javax.swing.border"), +Rs=[[0,"java.awt.Insets"]],Ee=j(tz,"EtchedBorder",null,"javax.swing.border.AbstractBorder");Ee.$clinit$=function(){g(Ee,1)};b(Ee,"$init0$",function(){var a;(a=Ee.superclazz)&&(a=a.$init0$)&&a.apply(this);this.etchType=0;this.shadow=this.highlight=null},1);b(Ee,"$init$",function(){},1);b(Ee,"c$",function(){Ee.c$$I.apply(this,[1])},1);b(Ee,"c$$I",function(a){Ee.c$$I$java_awt_Color$java_awt_Color.apply(this,[a,null,null])},1);b(Ee,"c$$java_awt_Color$java_awt_Color",function(a,b){Ee.c$$I$java_awt_Color$java_awt_Color.apply(this, +[1,a,b])},1);b(Ee,"c$$I$java_awt_Color$java_awt_Color",function(a,b,c){S(Ee,this,1);this.etchType=a;this.highlight=b;this.shadow=c},1);b(Ee,"paintBorder$java_awt_Component$java_awt_Graphics$I$I$I$I",function(a,b,c,d,h,f){b.translate$I$I(c,d);b.setColor$java_awt_Color(1==this.etchType?this.getShadowColor$java_awt_Component(a):this.getHighlightColor$java_awt_Component(a));b.drawRect$I$I$I$I(0,0,h-2,f-2);b.setColor$java_awt_Color(1==this.etchType?this.getHighlightColor$java_awt_Component(a):this.getShadowColor$java_awt_Component(a)); +b.drawLine$I$I$I$I(1,f-3,1,1);b.drawLine$I$I$I$I(1,1,h-3,1);b.drawLine$I$I$I$I(0,f-1,h-1,f-1);b.drawLine$I$I$I$I(h-1,f-1,h-1,0);b.translate$I$I(-c,-d)});b(Ee,"getBorderInsets$java_awt_Component",function(){return f((Rs[1]||(Rs[1]=g(Rs[0][1]))).c$$I$I$I$I,[2,2,2,2])});b(Ee,"getBorderInsets$java_awt_Component$java_awt_Insets",function(a,b){b.left=b.top=b.right=b.bottom=2;return b});b(Ee,"isBorderOpaque$",function(){return!0});b(Ee,"getEtchType$",function(){return this.etchType});b(Ee,"getHighlightColor$java_awt_Component", +function(a){return null!=this.highlight?this.highlight:a.getBackground$().brighter$()});b(Ee,"getHighlightColor$",function(){return this.highlight});b(Ee,"getShadowColor$java_awt_Component",function(a){return null!=this.shadow?this.shadow:a.getBackground$().darker$()});b(Ee,"getShadowColor$",function(){return this.shadow});n("3.2.4.07");var uz=q("javax.swing.border"),Ss=[[0,"java.awt.Color",["java.awt.geom.RoundRectangle2D",".Float"],["java.awt.geom.Rectangle2D",".Float"],["java.awt.geom.Path2D", +".Float"],"java.awt.Insets"]],um=function(a){return Ss[a]||(Ss[a]=g(Ss[0][a]))},Pc=j(uz,"LineBorder",null,"javax.swing.border.AbstractBorder");Pc.blackLine=null;Pc.grayLine=null;Pc.$clinit$=function(){g(Pc,1)};b(Pc,"$init0$",function(){var a;(a=Pc.superclazz)&&(a=a.$init0$)&&a.apply(this);this.thickness=0;this.lineColor=null;this.roundedCorners=!1},1);b(Pc,"$init$",function(){},1);b(Pc,"createBlackLineBorder$",function(){null==Pc.blackLine&&(Pc.blackLine=f(Pc.c$$java_awt_Color$I,[um(1).black,1])); +return Pc.blackLine},1);b(Pc,"createGrayLineBorder$",function(){null==Pc.grayLine&&(Pc.grayLine=f(Pc.c$$java_awt_Color$I,[um(1).gray,1]));return Pc.grayLine},1);b(Pc,"c$$java_awt_Color",function(a){Pc.c$$java_awt_Color$I$Z.apply(this,[a,1,!1])},1);b(Pc,"c$$java_awt_Color$I",function(a,b){Pc.c$$java_awt_Color$I$Z.apply(this,[a,b,!1])},1);b(Pc,"c$$java_awt_Color$I$Z",function(a,b,c){S(Pc,this,1);this.lineColor=a;this.thickness=b;this.roundedCorners=c},1);b(Pc,"paintBorder$java_awt_Component$java_awt_Graphics$I$I$I$I", +function(a,b,c,d,h,g){if(0=c&&a>=c&&a+b>=a&&a+b<=d)this.value=a,this.extent=b,this.min=c,this.max=d;else throw f(g("IllegalArgumentException").c$$S,["invalid range properties"]);},1);b(Id,"getValue$",function(){return this.value});b(Id,"getExtent$",function(){return this.extent});b(Id,"getMinimum$",function(){return this.min});b(Id,"getMaximum$",function(){return this.max});b(Id,"setValue$I",function(a){a=Math.min(a,2147483647-this.extent);a=Math.max(a,this.min);a+this.extent>this.max&&(a=this.max-this.extent);this.setRangeProperties$I$I$I$I$Z(a, +this.extent,this.min,this.max,this.isAdjusting)});b(Id,"setExtent$I",function(a){a=Math.max(0,a);this.value+a>this.max&&(a=this.max-this.value);this.setRangeProperties$I$I$I$I$Z(this.value,a,this.min,this.max,this.isAdjusting)});b(Id,"setMinimum$I",function(a){var b=Math.max(a,this.max),c=Math.max(a,this.value),d=Math.min(b-c,this.extent);this.setRangeProperties$I$I$I$I$Z(c,d,a,b,this.isAdjusting)});b(Id,"setMaximum$I",function(a){var b=Math.min(a,this.min),c=Math.min(a-b,this.extent),d=Math.min(a- +c,this.value);this.setRangeProperties$I$I$I$I$Z(d,c,b,a,this.isAdjusting)});b(Id,"setValueIsAdjusting$Z",function(a){this.setRangeProperties$I$I$I$I$Z(this.value,this.extent,this.min,this.max,a)});b(Id,"getValueIsAdjusting$",function(){return this.isAdjusting});b(Id,"setRangeProperties$I$I$I$I$Z",function(a,b,c,d,h){c>d&&(c=d);a>d&&(d=a);ad&&(b=d-a);0>b&&(b=0);if(a!=this.value||b!=this.extent||c!=this.min||d!=this.max||h!=this.isAdjusting)this.value=a,this.extent=b,this.min=c,this.max= +d,this.isAdjusting=h,this.fireStateChanged$()});b(Id,"addChangeListener$javax_swing_event_ChangeListener",function(a){this.listenerList.add$Class$TT(x(so(2),["stateChanged$javax_swing_event_ChangeEvent"]),a)});b(Id,"removeChangeListener$javax_swing_event_ChangeListener",function(a){this.listenerList.remove$Class$TT(x(so(2),["stateChanged$javax_swing_event_ChangeEvent"]),a)});b(Id,"getChangeListeners$",function(){return this.listenerList.getListeners$Class(x(so(2),["stateChanged$javax_swing_event_ChangeEvent"]))}); +b(Id,"fireStateChanged$",function(){for(var a=this.listenerList.getListenerList$(),b=a.length-2;0<=b;b-=2)a[b]===x(so(2),["stateChanged$javax_swing_event_ChangeEvent"])&&(null==this.changeEvent&&(this.changeEvent=f(so(3).c$$O,[this])),a[b+1].stateChanged$(this.changeEvent))});b(Id,"toString",function(){var a="value="+this.getValue$()+", extent="+this.getExtent$()+", min="+this.getMinimum$()+", max="+this.getMaximum$()+", adj="+this.getValueIsAdjusting$();return this.getClass$().getName$()+"["+a+"]"}); +b(Id,"getListeners$Class",function(a){return this.listenerList.getListeners$Class(a)});n("3.2.4.07");var Dz=q("javax.swing"),Ys=[[0,"javax.swing.event.EventListenerList","javax.swing.UIManager","java.awt.event.ItemEvent","java.awt.EventQueue","java.awt.event.ActionEvent","javax.swing.event.ChangeListener","javax.swing.event.ChangeEvent","java.awt.event.ActionListener","java.awt.event.ItemListener"]],Ff=function(a){return Ys[a]||(Ys[a]=g(Ys[0][a]))},Tb=j(Dz,"DefaultButtonModel",null,null,"javax.swing.ButtonModel"); +Tb.$clinit$=function(){g(Tb,1)};b(Tb,"$init0$",function(){var a;(a=Tb.superclazz)&&(a=a.$init0$)&&a.apply(this);this.stateMask=0;this.group=this.actionCommand=null;this.mnemonic=0;this.listenerList=this.changeEvent=null;this.menuItem=!1},1);b(Tb,"$init$",function(){this.stateMask=0;this.group=this.actionCommand=null;this.mnemonic=0;this.changeEvent=null;this.listenerList=f(Ff(1));this.menuItem=!1},1);b(Tb,"c$",function(){Tb.$init$.apply(this);this.stateMask=0;this.setEnabled$Z(!0)},1);b(Tb,"setActionCommand$S", +function(a){this.actionCommand=a});b(Tb,"getActionCommand$",function(){return this.actionCommand});b(Tb,"isArmed$",function(){return 0!=(this.stateMask&1)});b(Tb,"isSelected$",function(){return 0!=(this.stateMask&2)});b(Tb,"isEnabled$",function(){return 0!=(this.stateMask&8)});b(Tb,"isPressed$",function(){return 0!=(this.stateMask&4)});b(Tb,"isRollover$",function(){return 0!=(this.stateMask&16)});b(Tb,"setArmed$Z",function(a){if(this.isMenuItem$()&&Ff(2).getBoolean$O("MenuItem.disabledAreNavigable")){if(this.isArmed$()== +a)return}else if(this.isArmed$()==a||!this.isEnabled$())return;this.stateMask=a?this.stateMask|1:this.stateMask&-2;this.fireStateChanged$()});b(Tb,"setEnabled$Z",function(a){this.isEnabled$()!=a&&(a?this.stateMask|=8:(this.stateMask&=-9,this.stateMask&=-2,this.stateMask&=-5),this.fireStateChanged$())});b(Tb,"setSelected$Z",function(a){this.setStateNoFire$Z(a)&&(this.fireItemStateChanged$java_awt_event_ItemEvent(f(Ff(3).c$$java_awt_ItemSelectable$I$O$I,[this,701,this,a?1:2])),this.fireStateChanged$())}); +b(Tb,"setStateNoFire$Z",function(a){if(this.isSelected$()==a)return!1;this.stateMask=a?this.stateMask|2:this.stateMask&-3;return!0});b(Tb,"setPressed$Z",function(a){if(this.isPressed$()!=a&&this.isEnabled$()){this.stateMask=a?this.stateMask|4:this.stateMask&-5;if(!this.isPressed$()&&this.isArmed$()){a=0;var b=Ff(4).getCurrentEvent$();k(b,"java.awt.event.InputEvent")?a=b.getModifiers$():k(b,"java.awt.event.ActionEvent")&&(a=b.getModifiers$());this.fireActionPerformed$java_awt_event_ActionEvent(f(Ff(5).c$$O$I$S$J$I, +[this,1001,this.getActionCommand$(),Ff(4).getMostRecentEventTime$(),a]))}this.fireStateChanged$()}});b(Tb,"setRollover$Z",function(a){this.isRollover$()!=a&&this.isEnabled$()&&(this.stateMask=a?this.stateMask|16:this.stateMask&-17,this.fireStateChanged$())});b(Tb,"setMnemonic$I",function(a){this.mnemonic=a;this.fireStateChanged$()});b(Tb,"getMnemonic$",function(){return this.mnemonic});b(Tb,"addChangeListener$javax_swing_event_ChangeListener",function(a){this.listenerList.add$Class$TT(x(Ff(6),["stateChanged$javax_swing_event_ChangeEvent"]), +a)});b(Tb,"removeChangeListener$javax_swing_event_ChangeListener",function(a){this.listenerList.remove$Class$TT(x(Ff(6),["stateChanged$javax_swing_event_ChangeEvent"]),a)});b(Tb,"getChangeListeners$",function(){return this.listenerList.getListeners$Class(x(Ff(6),["stateChanged$javax_swing_event_ChangeEvent"]))});b(Tb,"fireStateChanged$",function(){for(var a=this.listenerList.getListenerList$(),b=a.length-2;0<=b;b-=2)a[b]===x(Ff(6),["stateChanged$javax_swing_event_ChangeEvent"])&&(null==this.changeEvent&& +(this.changeEvent=f(Ff(7).c$$O,[this])),a[b+1].stateChanged$(this.changeEvent))});b(Tb,"addActionListener$java_awt_event_ActionListener",function(a){this.listenerList.add$Class$TT(x(Ff(8),["actionPerformed$java_awt_event_ActionEvent"]),a)});b(Tb,"removeActionListener$java_awt_event_ActionListener",function(a){this.listenerList.remove$Class$TT(x(Ff(8),["actionPerformed$java_awt_event_ActionEvent"]),a)});b(Tb,"getActionListeners$",function(){return this.listenerList.getListeners$Class(x(Ff(8),["actionPerformed$java_awt_event_ActionEvent"]))}); +b(Tb,"fireActionPerformed$java_awt_event_ActionEvent",function(a){for(var b=this.listenerList.getListenerList$(),c=b.length-2;0<=c;c-=2)b[c]===x(Ff(8),["actionPerformed$java_awt_event_ActionEvent"])&&b[c+1].actionPerformed$(a)});b(Tb,"addItemListener$java_awt_event_ItemListener",function(a){this.listenerList.add$Class$TT(x(Ff(9),["itemStateChanged$java_awt_event_ItemEvent"]),a)});b(Tb,"removeItemListener$java_awt_event_ItemListener",function(a){this.listenerList.remove$Class$TT(x(Ff(9),["itemStateChanged$java_awt_event_ItemEvent"]), +a)});b(Tb,"getItemListeners$",function(){return this.listenerList.getListeners$Class(x(Ff(9),["itemStateChanged$java_awt_event_ItemEvent"]))});b(Tb,"fireItemStateChanged$java_awt_event_ItemEvent",function(a){for(var b=this.listenerList.getListenerList$(),c=b.length-2;0<=c;c-=2)b[c]===x(Ff(9),["itemStateChanged$java_awt_event_ItemEvent"])&&b[c+1].itemStateChanged$(a)});b(Tb,"getListeners$Class",function(a){return this.listenerList.getListeners$Class(a)});b(Tb,"getSelectedObjects$",function(){return null}); +b(Tb,"setGroup$javax_swing_ButtonGroup",function(a){this.group=a});b(Tb,"getGroup$",function(){return this.group});b(Tb,"isMenuItem$",function(){return this.menuItem});b(Tb,"setMenuItem$Z",function(a){this.menuItem=a});n("3.2.4.07");var Ez=q("javax.swing"),to=[[0,"java.util.Vector"]],Fe=j(Ez,"DefaultComboBoxModel",null,"javax.swing.AbstractListModel","javax.swing.MutableComboBoxModel");Fe.$clinit$=function(){g(Fe,1)};b(Fe,"$init0$",function(){var a;(a=Fe.superclazz)&&(a=a.$init0$)&&a.apply(this); +this.selectedObject=this.objects=null;this.\u79d8isQuiet=!1},1);b(Fe,"$init$",function(){},1);b(Fe,"c$",function(){S(Fe,this,1);this.objects=f(to[1]||(to[1]=g(to[0][1])))},1);b(Fe,"c$$TEA",function(a){S(Fe,this,1);this.objects=f(to[1]||(to[1]=g(to[0][1])));this.objects.ensureCapacity$I(a.length);var b,c;b=0;for(c=a.length;bMath.abs(h-p)?sj?1:c:hMath.abs(h-p)?s>j?-1:sMath.abs(s-j)?hp?1:c:sMath.abs(s-j)?hp?1:c:s>j?-1:1});b(vm);n("3.2.4.07");var Wz=q("javax.swing"),wo=[[0,"javax.swing.SwingDefaultFocusTraversalPolicy","javax.swing.LayoutComparator"]],Ge=j(Wz,"LayoutFocusTraversalPolicy",null,"javax.swing.SortingFocusTraversalPolicy","java.io.Serializable");Ge.$fitnessTestPolicy=null;Ge.$clinit$=function(){g(Ge,1);Ge.$fitnessTestPolicy= +f(wo[1]||(wo[1]=g(wo[0][1])))};b(Ge,"$init$",function(){},1);b(Ge,"c$",function(){Ge.superclazz.c$$java_util_Comparator.apply(this,[f(wo[2]||(wo[2]=g(wo[0][2])))]);Ge.$init$.apply(this)},1);b(Ge,"c$$java_util_Comparator",function(a){Ge.superclazz.c$$java_util_Comparator.apply(this,[a]);Ge.$init$.apply(this)},1);b(Ge,"getComponentAfter$java_awt_Container$java_awt_Component",function(a,b){if(null==a||null==b)throw f(g("IllegalArgumentException").c$$S,["aContainer and aComponent cannot be null"]);var c= +this.getComparator$();k(c,"javax.swing.LayoutComparator")&&c.setComponentOrientation$java_awt_ComponentOrientation(a.getComponentOrientation$());return Ge.superclazz.prototype.getComponentAfter$java_awt_Container$java_awt_Component.apply(this,[a,b])});b(Ge,"getComponentBefore$java_awt_Container$java_awt_Component",function(a,b){if(null==a||null==b)throw f(g("IllegalArgumentException").c$$S,["aContainer and aComponent cannot be null"]);var c=this.getComparator$();k(c,"javax.swing.LayoutComparator")&& +c.setComponentOrientation$java_awt_ComponentOrientation(a.getComponentOrientation$());return Ge.superclazz.prototype.getComponentBefore$java_awt_Container$java_awt_Component.apply(this,[a,b])});b(Ge,"getFirstComponent$java_awt_Container",function(a){if(null==a)throw f(g("IllegalArgumentException").c$$S,["aContainer cannot be null"]);var b=this.getComparator$();k(b,"javax.swing.LayoutComparator")&&b.setComponentOrientation$java_awt_ComponentOrientation(a.getComponentOrientation$());return Ge.superclazz.prototype.getFirstComponent$java_awt_Container.apply(this, +[a])});b(Ge,"getLastComponent$java_awt_Container",function(a){if(null==a)throw f(g("IllegalArgumentException").c$$S,["aContainer cannot be null"]);var b=this.getComparator$();k(b,"javax.swing.LayoutComparator")&&b.setComponentOrientation$java_awt_ComponentOrientation(a.getComponentOrientation$());return Ge.superclazz.prototype.getLastComponent$java_awt_Container.apply(this,[a])});b(Ge,"accept$java_awt_Component",function(a){if(Ge.superclazz.prototype.accept$java_awt_Component.apply(this,[a])){if(k(a, +"javax.swing.JTable"))return!1;if(k(a,"javax.swing.JComboBox"))return a.getUI$().isFocusTraversable$javax_swing_JComboBox(a);if(k(a,"javax.swing.JComponent")){for(var b=a.getInputMap$I$Z(0,!1);null!=b&&0==b.size$();)b=b.getParent$();if(null!=b)return!0}}else return!1;return Ge.$fitnessTestPolicy.accept$java_awt_Component(a)});n("3.2.4.07");var Xz=q("javax.swing"),Wf={},bt=[[0,"javax.swing.SwingContainerOrderFocusTraversalPolicy","java.util.ArrayList","java.util.Collections"]],pq=function(a){return bt[a]|| +(bt[a]=g(bt[0][a]))},pd=j(Xz,"SortingFocusTraversalPolicy",null,"javax.swing.InternalFrameFocusTraversalPolicy");pd.fitnessTestPolicy=null;pd.$clinit$=function(){g(pd,1);pd.fitnessTestPolicy=f(pq(1))};b(pd,"$init0$",function(){var a;(a=pd.superclazz)&&(a=a.$init0$)&&a.apply(this);this.comparator=null;this.implicitDownCycleTraversal=!1;this.cachedCycle=this.cachedRoot=null;this.BACKWARD_TRAVERSAL=this.FORWARD_TRAVERSAL=0},1);b(pd,"$init$",function(){this.implicitDownCycleTraversal=!0;this.FORWARD_TRAVERSAL= +0;this.BACKWARD_TRAVERSAL=1},1);b(pd,"c$",function(){S(pd,this,1)},1);b(pd,"c$$java_util_Comparator",function(a){S(pd,this,1);this.comparator=a},1);b(pd,"getFocusTraversalCycle$java_awt_Container",function(a){var b=f(pq(2));Wf.enumerateAndSortCycle$java_awt_Container$java_util_List.apply(this,[a,b]);return b},Wf);b(pd,"getComponentIndex$java_util_List$java_awt_Component",function(a,b){var c;try{c=pq(3).binarySearch$java_util_List$TT$java_util_Comparator(a,b,this.comparator)}catch(d){if(A(d,"ClassCastException"))return-1; +throw d;}0>c&&(c=a.indexOf$O(b));return c},Wf);b(pd,"enumerateAndSortCycle$java_awt_Container$java_util_List",function(a,b){a.isShowing$()&&(Wf.enumerateCycle$java_awt_Container$java_util_List.apply(this,[a,b]),pq(3).sort$java_util_List$java_util_Comparator(b,this.comparator))},Wf);b(pd,"enumerateCycle$java_awt_Container$java_util_List",function(a,b){if(a.isVisible$()&&a.isDisplayable$()){b.add$TE(a);for(var c,d=0,h=a.getComponents$();dh)c=this.getFirstComponent$java_awt_Container(a);else for(h++;hd)return this.getLastComponent$java_awt_Container(a);var h,s;for(d--;0<=d;d--){h=c.get$I(d);if(h!==a&&null!=(s=Wf.getComponentDownCycle$java_awt_Component$I.apply(this,[h,1])))return s;if(this.accept$java_awt_Component(h))return h}return a.isFocusCycleRoot$()?(this.cachedRoot=a,this.cachedCycle=c,h=this.getLastComponent$java_awt_Container(a),this.cachedCycle=this.cachedRoot=null,h):null});b(pd,"getFirstComponent$java_awt_Container",function(a){var b;if(null==a)throw f(g("IllegalArgumentException").c$$S, +["aContainer cannot be null"]);b=this.cachedRoot===a?this.cachedCycle:Wf.getFocusTraversalCycle$java_awt_Container.apply(this,[a]);if(0==b.size$())return null;var c;for(b=b.iterator$();b.hasNext$()&&(c=b.next$(),1);)if(this.accept$java_awt_Component(c)||c!==a&&null!=(c=Wf.getComponentDownCycle$java_awt_Component$I.apply(this,[c,0])))return c;return null});b(pd,"getLastComponent$java_awt_Container",function(a){var b;if(null==a)throw f(g("IllegalArgumentException").c$$S,["aContainer cannot be null"]); +b=this.cachedRoot===a?this.cachedCycle:Wf.getFocusTraversalCycle$java_awt_Container.apply(this,[a]);if(0==b.size$())return null;for(var c=b.size$()-1;0<=c;c--){var d=b.get$I(c);if(this.accept$java_awt_Component(d))return d;if(k(d,"java.awt.Container")&&d!==a&&d.isFocusTraversalPolicyProvider$())return d.getFocusTraversalPolicy$().getLastComponent$java_awt_Container(d)}return null});b(pd,"getDefaultComponent$java_awt_Container",function(a){return this.getFirstComponent$java_awt_Container(a)});b(pd, +"setImplicitDownCycleTraversal$Z",function(a){this.implicitDownCycleTraversal=a});b(pd,"getImplicitDownCycleTraversal$",function(){return this.implicitDownCycleTraversal});b(pd,"setComparator$java_util_Comparator",function(a){this.comparator=a});b(pd,"getComparator$",function(){return this.comparator});b(pd,"accept$java_awt_Component",function(a){return pd.fitnessTestPolicy.accept$java_awt_Component(a)});n("3.2.4.07");var Yz=q("javax.swing"),xo=j(Yz,"SwingContainerOrderFocusTraversalPolicy",null, +"java.awt.ContainerOrderFocusTraversalPolicy");xo.$clinit$=function(){g(xo,1)};b(xo,"$init$",function(){},1);b(xo,"accept$java_awt_Component",function(a){return xo.superclazz.prototype.accept$java_awt_Component.apply(this,[a])});b(xo);n("3.2.4.07");var Zz=q("javax.swing"),yo=j(Zz,"SwingDefaultFocusTraversalPolicy",null,"java.awt.DefaultFocusTraversalPolicy");yo.$clinit$=function(){g(yo,1)};b(yo,"$init$",function(){},1);b(yo,"accept$java_awt_Component",function(a){return yo.superclazz.prototype.accept$java_awt_Component.apply(this, +[a])});b(yo);n("3.2.4.07");var $z=q("javax.swing"),ct=[[0,"javax.swing.ArrayTable","javax.swing.KeyStroke","java.util.HashMap"]],qq=function(a){return ct[a]||(ct[a]=g(ct[0][a]))},Pg=j($z,"InputMap");Pg.$clinit$=function(){g(Pg,1)};b(Pg,"$init0$",function(){var a;(a=Pg.superclazz)&&(a=a.$init0$)&&a.apply(this);this.parent=this.arrayTable=null},1);b(Pg,"$init$",function(){},1);b(Pg,"c$",function(){Pg.$init$.apply(this)},1);b(Pg,"setParent$javax_swing_InputMap",function(a){this.parent=a});b(Pg,"getParent$", +function(){return this.parent});b(Pg,"put$javax_swing_KeyStroke$O",function(a,b){null!=a&&(null==b?this.remove$javax_swing_KeyStroke(a):(null==this.arrayTable&&(this.arrayTable=f(qq(1))),this.arrayTable.put$O$O(a,b)))});b(Pg,"get$javax_swing_KeyStroke",function(a){if(null==this.arrayTable){var b=this.getParent$();return null!=b?b.get$javax_swing_KeyStroke(a):null}var c=this.arrayTable.get$O(a);return null==c&&(b=this.getParent$(),null!=b)?b.get$javax_swing_KeyStroke(a):c});b(Pg,"remove$javax_swing_KeyStroke", +function(a){null!=this.arrayTable&&this.arrayTable.remove$O(a)});b(Pg,"clear$",function(){null!=this.arrayTable&&this.arrayTable.clear$()});b(Pg,"keys$",function(){if(null==this.arrayTable)return null;var a=l(qq(2),[this.arrayTable.size$()]);this.arrayTable.getKeys$OA(a);return a});b(Pg,"size$",function(){return null==this.arrayTable?0:this.arrayTable.size$()});b(Pg,"allKeys$",function(){var a=this.size$(),b=this.getParent$();if(0==a)return null!=b?b.allKeys$():this.keys$();if(null==b)return this.keys$(); +var a=this.keys$(),c=b.allKeys$();if(null==c)return a;if(null==a)return c;var b=f(qq(3)),d;for(d=a.length-1;0<=d;d--)b.put$TK$TV(a[d],a[d]);for(d=c.length-1;0<=d;d--)b.put$TK$TV(c[d],c[d]);a=l(qq(2),[b.size$()]);return b.keySet$().toArray$TTA(a)});n("3.2.4.07");var aA=q("javax.swing"),xw={},dt=[[0,"java.awt.Color","javax.swing.JComponent","java.awt.BorderLayout","javax.swing.JRootPane","javax.swing.SwingUtilities","javax.swing.RepaintManager"]],Kl=function(a){return dt[a]||(dt[a]=g(dt[0][a]))},Qb= +j(aA,"JApplet",null,"java.applet.JSApplet","javax.swing.RootPaneContainer");Qb.$clinit$=function(){g(Qb,1)};b(Qb,"$init0$",function(){var a;(a=Qb.superclazz)&&(a=a.$init0$)&&a.apply(this);this.rootPane=null;this.rootPaneCheckingEnabled=!1;this.transferHandler=null},1);b(Qb,"$init$",function(){this.rootPaneCheckingEnabled=!1},1);b(Qb,"c$",function(){Qb.superclazz.c$.apply(this,[]);Qb.$init$.apply(this);this.\u79d8paintClass=this.\u79d8updateClass=Qb||null;this.setFrameViewer$swingjs_JSFrameViewer(this.\u79d8appletViewer); +xw.setJApplet.apply(this,[]);this.updateUI$()},1);b(Qb,"getUIClassID$",function(){return"AppletUI"});b(Qb,"setPanelUIClassID$",function(){});b(Qb,"setJApplet",function(){this.setRootPane$javax_swing_JRootPane(this.createRootPane$());this.rootPane.setFrameViewer$swingjs_JSFrameViewer(this.\u79d8appletViewer);this.setForeground$java_awt_Color(Kl(1).black);this.setBackground$java_awt_Color(Kl(1).white);this.setLocale$java_util_Locale(Kl(2).getDefaultLocale$());this.setLayout$java_awt_LayoutManager(f(Kl(3))); +this.setRootPaneCheckingEnabled$Z(!0);this.setFocusTraversalPolicyProvider$Z(!0);this.enableEvents$J(8)},xw);b(Qb,"createRootPane$",function(){var a=f(Kl(4).c$$S$Z$java_awt_Container,["",!0,this]);a.setOpaque$Z(!0);return a});b(Qb,"setTransferHandler$javax_swing_TransferHandler",function(a){var b=this.transferHandler;this.transferHandler=a;Kl(5).installSwingDropTargetAsNecessary$java_awt_Component$javax_swing_TransferHandler(this,this.transferHandler);this.firePropertyChange$S$O$O("transferHandler", +b,a)});b(Qb,"getTransferHandler$",function(){return this.transferHandler});b(Qb,"paint$java_awt_Graphics",function(a){a.setBackground$java_awt_Color(this.getBackground$());a.setColor$java_awt_Color(this.getForeground$());this.rootPane.paint$java_awt_Graphics(a)});b(Qb,"update$java_awt_Graphics",function(a){this.paint$java_awt_Graphics(a)});b(Qb,"setJMenuBar$javax_swing_JMenuBar",function(a){this.getRootPane$().setMenuBar$javax_swing_JMenuBar(a)});b(Qb,"getJMenuBar$",function(){return this.getRootPane$().getMenuBar$()}); +b(Qb,"isRootPaneCheckingEnabled$",function(){return this.rootPaneCheckingEnabled});b(Qb,"setRootPaneCheckingEnabled$Z",function(a){this.rootPaneCheckingEnabled=a});b(Qb,"addImpl$java_awt_Component$O$I",function(a,b,c){this.isRootPaneCheckingEnabled$()?this.getContentPane$().add$java_awt_Component$O$I(a,b,c):this.addImplCont$java_awt_Component$O$I(a,b,c)});b(Qb,"remove$java_awt_Component",function(a){a===this.rootPane?Qb.superclazz.prototype.remove$java_awt_Component.apply(this,[a]):this.getContentPane$().remove$java_awt_Component(a)}); +b(Qb,"setLayout$java_awt_LayoutManager",function(a){this.isRootPaneCheckingEnabled$()?this.getContentPane$().setLayout$java_awt_LayoutManager(a):Qb.superclazz.prototype.setLayout$java_awt_LayoutManager.apply(this,[a])});b(Qb,"getRootPane$",function(){return this.rootPane});b(Qb,"setRootPane$javax_swing_JRootPane",function(a){null!=this.rootPane&&this.remove$java_awt_Component(this.rootPane);this.rootPane=a;if(null!=this.rootPane){a=this.isRootPaneCheckingEnabled$();try{this.setRootPaneCheckingEnabled$Z(!1), +this.add$java_awt_Component$O(this.rootPane,"Center")}finally{this.setRootPaneCheckingEnabled$Z(a)}}});b(Qb,"getContentPane$",function(){return this.getRootPane$().getContentPane$()});b(Qb,"setContentPane$java_awt_Container",function(a){this.getRootPane$().setContentPane$java_awt_Container(a)});b(Qb,"getLayeredPane$",function(){return this.getRootPane$().getLayeredPane$()});b(Qb,"setLayeredPane$javax_swing_JLayeredPane",function(a){this.getRootPane$().setLayeredPane$javax_swing_JLayeredPane(a)}); +b(Qb,"getGlassPane$",function(){return this.getRootPane$().getGlassPane$()});b(Qb,"setGlassPane$java_awt_Component",function(a){this.getRootPane$().setGlassPane$java_awt_Component(a)});b(Qb,"getGraphics$",function(){Kl(2).getGraphicsInvoked$java_awt_Component(this);return Qb.superclazz.prototype.getGraphics$.apply(this,[])});b(Qb,"repaint$J$I$I$I$I",function(a,b,c,d,h){(!this.\u79d8isAWT$()||!this.canPaint$())&&Kl(6).HANDLE_TOP_LEVEL_PAINT?Kl(6).currentManager$java_awt_Component(this).addDirtyRegion$java_applet_JSApplet$I$I$I$I(this, +b,c,d,h):Qb.superclazz.prototype.repaint$J$I$I$I$I.apply(this,[a,b,c,d,h])});b(Qb,"repaintNow$",function(){this.repaint$J$I$I$I$I(100,0,0,this.getWidth$(),this.getHeight$())});b(Qb,"paramString$",function(){var a=null!=this.rootPane?this.rootPane.toString():"",b=this.rootPaneCheckingEnabled?"true":"false";return Qb.superclazz.prototype.paramString$.apply(this,[])+",rootPane="+a+",rootPaneCheckingEnabled="+b});n("3.2.4.07");var bA=q("javax.swing"),et=[[0,"javax.swing.DefaultButtonModel","javax.swing.SwingUtilities"]], +ft=function(a){return et[a]||(et[a]=g(et[0][a]))},He=j(bA,"JButton",null,"javax.swing.AbstractButton");He.$clinit$=function(){g(He,1)};b(He,"$init$",function(){},1);b(He,"c$",function(){He.c$$S$javax_swing_Icon.apply(this,[null,null])},1);b(He,"c$$javax_swing_Icon",function(a){He.c$$S$javax_swing_Icon.apply(this,[null,a])},1);b(He,"c$$S",function(a){He.c$$S$javax_swing_Icon.apply(this,[a,null])},1);b(He,"c$$javax_swing_Action",function(a){He.c$.apply(this,[]);this.setAction$javax_swing_Action(a)}, +1);b(He,"c$$S$javax_swing_Icon",function(a,b){S(He,this,1);this.setModel$();this.init$S$javax_swing_Icon(a,b);this.setOpaque$Z(!0)},1);b(He,"setModel$",function(){this.setModel$javax_swing_ButtonModel(f(ft(1)))});b(He,"getUIClassID$",function(){return"ButtonUI"});b(He,"isDefaultButton$",function(){var a=ft(2).getRootPane$java_awt_Component(this);return null!=a?a.getDefaultButton$()===this:!1});b(He,"isDefaultCapable$",function(){return this.defaultCapable});b(He,"setDefaultCapable$Z",function(a){var b= +this.defaultCapable;this.defaultCapable=a;this.firePropertyChange$S$Z$Z("defaultCapable",b,a)});b(He,"removeNotify$",function(){var a=ft(2).getRootPane$java_awt_Component(this);null!=a&&a.getDefaultButton$()===this&&a.setDefaultButton$javax_swing_JButton(null);He.superclazz.prototype.removeNotify$.apply(this,[])});b(He,"paramString$",function(){var a=this.defaultCapable?"true":"false";return He.superclazz.prototype.paramString$.apply(this,[])+",defaultCapable="+a});n("3.2.4.07");var cA=q("javax.swing"), +gt=[[0,"Boolean"]],qd=j(cA,"JCheckBox",null,"javax.swing.JToggleButton");qd.$clinit$=function(){g(qd,1)};b(qd,"$init0$",function(){var a;(a=qd.superclazz)&&(a=a.$init0$)&&a.apply(this);this.flat=!1},1);b(qd,"$init$",function(){this.flat=!1},1);b(qd,"c$",function(){qd.c$$S$javax_swing_Icon$Z.apply(this,[null,null,!1])},1);b(qd,"c$$javax_swing_Icon",function(a){qd.c$$S$javax_swing_Icon$Z.apply(this,[null,a,!1])},1);b(qd,"c$$javax_swing_Icon$Z",function(a,b){qd.c$$S$javax_swing_Icon$Z.apply(this,[null, +a,b])},1);b(qd,"c$$S",function(a){qd.c$$S$javax_swing_Icon$Z.apply(this,[a,null,!1])},1);b(qd,"c$$javax_swing_Action",function(a){qd.c$.apply(this,[]);this.setAction$javax_swing_Action(a)},1);b(qd,"c$$S$Z",function(a,b){qd.c$$S$javax_swing_Icon$Z.apply(this,[a,null,b])},1);b(qd,"c$$S$javax_swing_Icon",function(a,b){qd.c$$S$javax_swing_Icon$Z.apply(this,[a,b,!1])},1);b(qd,"c$$S$javax_swing_Icon$Z",function(a,b,c){qd.superclazz.c$$S$javax_swing_Icon$Z.apply(this,[a,b,c]);qd.$init$.apply(this);this.setUIProperty$S$O("borderPainted", +(gt[1]||(gt[1]=g(gt[0][1]))).FALSE);this.setHorizontalAlignment$I(10)},1);b(qd,"getUIClassID$",function(){return"CheckBoxUI"});b(qd,"setBorderPaintedFlat$Z",function(a){var b=this.flat;this.flat=a;this.firePropertyChange$S$Z$Z("borderPaintedFlat",b,this.flat);a!=b&&(this.revalidate$(),this.\u79d8repaint$())});b(qd,"isBorderPaintedFlat$",function(){return this.flat});b(qd,"setIconFromAction$javax_swing_Action",function(){});b(qd,"paramString$",function(){return qd.superclazz.prototype.paramString$.apply(this, +[])});n("3.2.4.07");var dA=q("javax.swing"),ht=[[0,["javax.swing.JToggleButton",".ToggleButtonModel"]]],Jd=j(dA,"JCheckBoxMenuItem",null,"javax.swing.JMenuItem","javax.swing.SwingConstants");Jd.$clinit$=function(){g(Jd,1)};b(Jd,"$init$",function(){},1);b(Jd,"c$",function(){Jd.c$$S$javax_swing_Icon$Z.apply(this,[null,null,!1])},1);b(Jd,"c$$javax_swing_Icon",function(a){Jd.c$$S$javax_swing_Icon$Z.apply(this,[null,a,!1])},1);b(Jd,"c$$S",function(a){Jd.c$$S$javax_swing_Icon$Z.apply(this,[a,null,!1])}, +1);b(Jd,"c$$javax_swing_Action",function(a){Jd.c$.apply(this,[]);this.setAction$javax_swing_Action(a)},1);b(Jd,"c$$S$javax_swing_Icon",function(a,b){Jd.c$$S$javax_swing_Icon$Z.apply(this,[a,b,!1])},1);b(Jd,"c$$S$Z",function(a,b){Jd.c$$S$javax_swing_Icon$Z.apply(this,[a,null,b])},1);b(Jd,"c$$S$javax_swing_Icon$Z",function(a,b,c){Jd.superclazz.c$$S$javax_swing_Icon.apply(this,[a,b]);Jd.$init$.apply(this);this.setSelected$Z(c);this.setFocusable$Z(!1)},1);b(Jd,"getUIClassID$",function(){return"CheckBoxMenuItemUI"}); +b(Jd,"setModel$",function(){this.setModel$javax_swing_ButtonModel(f(ht[1]||(ht[1]=g(ht[0][1]))))});b(Jd,"getState$",function(){return this.isSelected$()});b(Jd,"setState$Z",function(a){this.setSelected$Z(a)});b(Jd,"getSelectedObjects$",function(){if(!1==this.isSelected$())return null;var a=l(java.lang.Object,[1]);a[0]=this.getText$();return a});b(Jd,"paramString$",function(){return Jd.superclazz.prototype.paramString$.apply(this,[])});b(Jd,"shouldUpdateSelectedStateFromAction$",function(){return!0}); +n("3.2.4.07");var tn=q("javax.swing"),Xk={},it=[[0,"javax.swing.AbstractAction","javax.swing.JPopupMenu","javax.swing.DefaultComboBoxModel","javax.swing.SwingUtilities","java.awt.event.ItemListener","java.awt.event.ActionListener","javax.swing.event.PopupMenuListener","javax.swing.event.PopupMenuEvent",["javax.swing.JComboBox",".ComboBoxActionPropertyChangeListener"],"java.awt.EventQueue","java.awt.event.ActionEvent","java.awt.event.ItemEvent",["javax.swing.JComboBox",".DefaultKeySelectionManager"]]], +qc=function(a){return it[a]||(it[a]=g(it[0][a]))},aa=j(tn,"JComboBox",function(){m(this,arguments,0,aa)},"javax.swing.JComponent",["java.awt.ItemSelectable","javax.swing.event.ListDataListener","java.awt.event.ActionListener"]);aa.$clinit$=function(){g(aa,1);this.c$$TEA=aa.c$$OA;this.prototype.setPrototypeDisplayValue$TE=this.prototype.setPrototypeDisplayValue$O;this.prototype.addItem$TE=this.prototype.addItem$O;this.prototype.insertItemAt$TE$I=this.prototype.insertItemAt$O$I};b(aa,"$init0$",function(){var a; +(a=aa.superclazz)&&(a=a.$init0$)&&a.apply(this);this.editor=this.renderer=this.dataModel=null;this.maximumRowCount=0;this.isEditable=!1;this.actionCommand=this.keySelectionManager=null;this.lightWeightPopupEnabled=!1;this.prototypeDisplayValue=this.selectedItemReminder=null;this.\u79d8isEditorCleared=this.selectingItem=this.firingActionEvent=!1;this.actionPropertyChangeListener=this.action=null;this.\u79d8trigger=!1},1);b(aa,"$init$",function(){this.maximumRowCount=8;this.isEditable=!1;this.keySelectionManager= +null;this.actionCommand="comboBoxChanged";this.lightWeightPopupEnabled=qc(2).getDefaultLightWeightPopupEnabled$();this.selectedItemReminder=null;this.selectingItem=this.firingActionEvent=!1},1);b(aa,"c$$javax_swing_ComboBoxModel",function(a){aa.superclazz.c$.apply(this,[]);aa.$init$.apply(this);this.setModel$javax_swing_ComboBoxModel(a);Xk.initComboBox.apply(this,[])},1);b(aa,"c$$OA",function(a){aa.superclazz.c$.apply(this,[]);aa.$init$.apply(this);this.setModel$javax_swing_ComboBoxModel(f(qc(3).c$$TEA, +[a]));Xk.initComboBox.apply(this,[])},1);b(aa,"c$$java_util_Vector",function(a){aa.superclazz.c$.apply(this,[]);aa.$init$.apply(this);this.setModel$javax_swing_ComboBoxModel(f(qc(3).c$$java_util_Vector,[a]));Xk.initComboBox.apply(this,[])},1);b(aa,"c$",function(){aa.superclazz.c$.apply(this,[]);aa.$init$.apply(this);this.setModel$javax_swing_ComboBoxModel(f(qc(3)));Xk.initComboBox.apply(this,[])},1);b(aa,"initComboBox",function(){this.installAncestorListener$();this.setUIProperty$S$O("opaque",new Boolean(!0)); +this.updateUI$()},Xk);b(aa,"getUIClassID$",function(){return"ComboBoxUI"});b(aa,"installAncestorListener$",function(){this.addAncestorListener$javax_swing_event_AncestorListener((tn.JComboBox$1||function(){var a=j(tn,"JComboBox$1",function(b){m(this,b,1,a)},null,"javax.swing.event.AncestorListener",1);a.$clinit$=function(){g(a,1)};b(a,"$init$",function(){},1);b(a,"ancestorAdded$javax_swing_event_AncestorEvent",function(){this.b$["javax.swing.JComboBox"].hidePopup$.apply(this.b$["javax.swing.JComboBox"], +[])});b(a,"ancestorRemoved$javax_swing_event_AncestorEvent",function(){this.b$["javax.swing.JComboBox"].hidePopup$.apply(this.b$["javax.swing.JComboBox"],[])});b(a,"ancestorMoved$javax_swing_event_AncestorEvent",function(a){a.getSource$()!==this.b$["javax.swing.JComboBox"]&&this.b$["javax.swing.JComboBox"].hidePopup$.apply(this.b$["javax.swing.JComboBox"],[])})}(),f(tn.JComboBox$1.$init$,[this,null])))});b(aa,"updateUI$",function(){aa.superclazz.prototype.updateUI$.apply(this,[]);var a=this.getRenderer$(); +k(a,"java.awt.Component")&&qc(4).updateComponentTreeUI$java_awt_Component(a)});b(aa,"setModel$javax_swing_ComboBoxModel",function(a){var b=this.dataModel;null!=b&&b.removeListDataListener$javax_swing_event_ListDataListener(this);this.dataModel=a;this.dataModel.addListDataListener$javax_swing_event_ListDataListener(this);var c=this.\u79d8isAWT$();a.isAWT$=c;this.selectedItemReminder=this.dataModel.getSelectedItem$();this.firePropertyChange$S$O$O("model",b,this.dataModel)});b(aa,"getModel$",function(){return this.dataModel}); +b(aa,"setLightWeightPopupEnabled$Z",function(a){var b=this.lightWeightPopupEnabled;this.lightWeightPopupEnabled=a;this.firePropertyChange$S$Z$Z("lightWeightPopupEnabled",b,this.lightWeightPopupEnabled)});b(aa,"isLightWeightPopupEnabled$",function(){return this.lightWeightPopupEnabled});b(aa,"setEditable$Z",function(a){var b=this.isEditable;this.isEditable=a;this.firePropertyChange$S$Z$Z("editable",b,this.isEditable)});b(aa,"isEditable$",function(){return this.isEditable});b(aa,"setMaximumRowCount$I", +function(a){var b=this.maximumRowCount;this.maximumRowCount=a;this.firePropertyChange$S$I$I("maximumRowCount",b,this.maximumRowCount)});b(aa,"getMaximumRowCount$",function(){return this.maximumRowCount});b(aa,"setRenderer$javax_swing_ListCellRenderer",function(a){var b=this.renderer;this.renderer=a;this.firePropertyChange$S$O$O("renderer",b,this.renderer);this.invalidate$()});b(aa,"getRenderer$",function(){return this.renderer});b(aa,"setEditor$javax_swing_ComboBoxEditor",function(a){var b=this.editor; +this.\u79d8isEditorCleared=null==this.editor;null!=this.editor&&this.editor.removeActionListener$java_awt_event_ActionListener(this);this.editor=a;null!=this.editor&&this.editor.addActionListener$java_awt_event_ActionListener(this);this.firePropertyChange$S$O$O("editor",b,this.editor)});b(aa,"getEditor$",function(){null==this.editor&&!this.\u79d8isEditorCleared&&this.setEditor$javax_swing_ComboBoxEditor(this.ui.createEditor$());return this.editor});b(aa,"setSelectedItem$O",function(a){var b=this.selectedItemReminder, +c=a;if(null==b||!b.equals$O(a)){if(null!=a&&!this.isEditable$()){for(var b=!1,d=0;da||a>=b)throw f(g("IllegalArgumentException").c$$S,["setSelectedIndex: "+a+" out of bounds"]);this.setSelectedItem$O(this.dataModel.getElementAt$I(a))}});b(aa,"getSelectedIndex$",function(){var a=this.dataModel.getSelectedItem$(),b,c,d;b=0;for(c=this.dataModel.getSize$();bb)){if(null!=this.paintingChild&&k(this.paintingChild,"javax.swing.JComponent"))for(;0<=b&&this.getComponent$I(b)!==this.paintingChild;b--);for(var c=w.fetchRectangle$(),d=w.fetchRectangle$();0<=b;b--){var h=this.getComponent$I(b);if(null!=h&&h.isVisible$()){h.getBounds$java_awt_Rectangle(c);var f=h.getRootPane$().getContentPane$()===h,g=c,f=a.create$I$I$I$I(c.x, +f?0:c.y,g.width,g.height);f.setColor$java_awt_Color(h.getForeground$());f.setFont$java_awt_Font(h.getFont$());try{h.\u79d8checkBackgroundPainted$swingjs_JSGraphics2D$Z(f,!0),h.\u79d8setIsRepaint$Z(!1),h.\u79d8paint$java_awt_Graphics(f),h.\u79d8setIsRepaint$Z(!0),h.\u79d8checkBackgroundPainted$swingjs_JSGraphics2D$Z(this.\u79d8getJSGraphic2D$java_awt_Graphics(f),!1)}finally{f.dispose$()}}}w.recycleRectangle$java_awt_Rectangle(d);w.recycleRectangle$java_awt_Rectangle(c)}});b(w,"paintBorder$java_awt_Graphics", +function(a){var b=this.getBorder$();null!=b&&b.paintBorder$java_awt_Component$java_awt_Graphics$I$I$I$I(this,a,0,0,this.getWidth$(),this.getHeight$())});b(w,"update$java_awt_Graphics",function(a){this.paint$java_awt_Graphics(a)});b(w,"paint$java_awt_Graphics",function(a){var b=!1;if(!(0>=this.getWidth$()||0>=this.getHeight$())){a=this.getComponentGraphics$java_awt_Graphics(a).create$();try{null!=this.getParent$()&&!k(this.getParent$(),"javax.swing.JComponent")&&(W.adjustPaintFlags.apply(this,[]), +b=!0);var c=W.getFlag$I.apply(this,[11]);c?(W.printComponentSafely$java_awt_Graphics.apply(this,[a]),W.printBorderSafely$java_awt_Graphics.apply(this,[a])):(W.paintComponentSafely$java_awt_Graphics.apply(this,[a]),W.paintBorderSafely$java_awt_Graphics.apply(this,[a]));c?this.printChildren$java_awt_Graphics(a):this.paintChildren$java_awt_Graphics(a)}finally{a.dispose$(),b&&(W.setFlag$I$Z.apply(this,[1,!1]),W.setFlag$I$Z.apply(this,[2,!1]),W.setFlag$I$Z.apply(this,[11,!1]),W.setFlag$I$Z.apply(this, +[12,!1]))}}});b(w,"paintForceDoubleBuffered$java_awt_Graphics",function(a){var b=ua(9).currentManager$javax_swing_JComponent(this),c=a.getClipBounds$();b.beginPaint$();W.setFlag$I$Z.apply(this,[13,!0]);try{b.paint$javax_swing_JComponent$javax_swing_JComponent$java_awt_Graphics$I$I$I$I(this,this,a,c.x,c.y,c.width,c.height)}finally{b.endPaint$(),W.setFlag$I$Z.apply(this,[13,!1])}});b(w,"isPainting$",function(){for(var a=this;null!=a;){if(k(a,"javax.swing.JComponent")&&W.getFlag$I.apply(a,[1]))return!0; +a=a.getParent$()}return!1});b(w,"adjustPaintFlags",function(){for(var a=null,a=this.getParent$();null!=a;a=a.getParent$())if(k(a,"javax.swing.JComponent")){W.getFlag$I.apply(a,[1])&&W.setFlag$I$Z.apply(this,[1,!0]);W.getFlag$I.apply(a,[2])&&W.setFlag$I$Z.apply(this,[2,!0]);W.getFlag$I.apply(a,[11])&&W.setFlag$I$Z.apply(this,[11,!0]);W.getFlag$I.apply(a,[12])&&W.setFlag$I$Z.apply(this,[12,!0]);break}},W);b(w,"printAll$java_awt_Graphics",function(a){W.setFlag$I$Z.apply(this,[12,!0]);try{this.print$java_awt_Graphics(a)}finally{W.setFlag$I$Z.apply(this, +[12,!1])}});b(w,"print$java_awt_Graphics",function(a){W.setFlag$I$Z.apply(this,[11,!0]);this.firePropertyChange$S$Z$Z("paintingForPrint",!1,!0);try{this.paint$java_awt_Graphics(a)}finally{W.setFlag$I$Z.apply(this,[11,!1]),this.firePropertyChange$S$Z$Z("paintingForPrint",!0,!1)}});b(w,"printComponent$java_awt_Graphics",function(a){this.paintComponent$java_awt_Graphics(a)});b(w,"printChildren$java_awt_Graphics",function(a){this.paintChildren$java_awt_Graphics(a)});b(w,"printBorder$java_awt_Graphics", +function(a){this.paintBorder$java_awt_Graphics(a)});b(w,"isPaintingTile$",function(){return W.getFlag$I.apply(this,[2])});b(w,"isPaintingForPrint$",function(){return W.getFlag$I.apply(this,[11])});b(w,"isManagingFocus$",function(){return!1});b(w,"registerNextFocusableComponent",function(){W.registerNextFocusableComponent$java_awt_Component.apply(this,[this.getNextFocusableComponent$()])},W);b(w,"registerNextFocusableComponent$java_awt_Component",function(a){if(null!=a){var b=this.isFocusCycleRoot$()? +this:this.getFocusCycleRootAncestor$(),c=b.getFocusTraversalPolicy$();k(c,"javax.swing.LegacyGlueFocusTraversalPolicy")||(c=f(ua(10).c$$java_awt_FocusTraversalPolicy,[c]),b.setFocusTraversalPolicy$java_awt_FocusTraversalPolicy(c));c.setNextFocusableComponent$java_awt_Component$java_awt_Component(this,a)}},W);b(w,"deregisterNextFocusableComponent",function(){null!=this.getNextFocusableComponent$()&&(this.isFocusCycleRoot$()||this.getFocusCycleRootAncestor$())},W);b(w,"setNextFocusableComponent$java_awt_Component", +function(a){var b=this.isDisplayable$();b&&W.deregisterNextFocusableComponent.apply(this,[]);this.putClientProperty$O$O("nextFocus",a);b&&W.registerNextFocusableComponent$java_awt_Component.apply(this,[a])});b(w,"getNextFocusableComponent$",function(){return this.getClientProperty$O("nextFocus")});b(w,"setRequestFocusEnabled$Z",function(a){W.setFlag$I$Z.apply(this,[22,!a])});b(w,"isRequestFocusEnabled$",function(){return!W.getFlag$I.apply(this,[22])});b(w,"requestFocus$",function(){w.superclazz.prototype.requestFocus$.apply(this, +[])});b(w,"requestFocus$Z",function(){w.superclazz.prototype.requestFocus$.apply(this,[]);return!0});b(w,"requestFocusInWindow$",function(){return w.superclazz.prototype.requestFocusInWindow$.apply(this,[])});b(w,"requestFocusInWindow$Z",function(){return w.superclazz.prototype.requestFocusInWindow$.apply(this,[])});b(w,"grabFocus$",function(){this.requestFocus$()});b(w,"setVerifyInputWhenFocusTarget$Z",function(a){var b=this.verifyInputWhenFocusTarget;this.verifyInputWhenFocusTarget=a;this.firePropertyChange$S$Z$Z("verifyInputWhenFocusTarget", +b,a)});b(w,"getVerifyInputWhenFocusTarget$",function(){return this.verifyInputWhenFocusTarget});b(w,"getFontMetrics$java_awt_Font",function(a){return ua(11).getMetrics$java_awt_Font(a)});b(w,"setPreferredSize$java_awt_Dimension",function(a){w.superclazz.prototype.setPreferredSize$java_awt_Dimension.apply(this,[a])});b(w,"getPreferredSize$",function(){return this.getPrefSizeJComp$()});b(w,"getPrefSizeJComp$",function(){var a=!this.isPreferredSizeSet$()&&null!=this.ui?this.ui.getPreferredSize$javax_swing_JComponent(this): +null;return null==a?this.preferredSize$():a});b(w,"setMaximumSize$java_awt_Dimension",function(a){w.superclazz.prototype.setMaximumSize$java_awt_Dimension.apply(this,[a])});b(w,"getMaximumSize$",function(){if(this.isMaximumSizeSet$())return w.superclazz.prototype.getMaximumSize$.apply(this,[]);var a=null;null!=this.ui&&(a=this.ui.getMaximumSize$javax_swing_JComponent(this));return null!=a?a:w.superclazz.prototype.getMaximumSize$.apply(this,[])});b(w,"setMinimumSize$java_awt_Dimension",function(a){w.superclazz.prototype.setMinimumSize$java_awt_Dimension.apply(this, +[a])});b(w,"getMinimumSize$",function(){if(this.isMinimumSizeSet$())return w.superclazz.prototype.getMinimumSize$.apply(this,[]);var a=null;null!=this.ui&&(a=this.ui.getMinimumSize$javax_swing_JComponent(this));return null!=a?a:w.superclazz.prototype.getMinimumSize$.apply(this,[])});b(w,"contains$I$I",function(a,b){return null!=this.ui?this.ui.contains$javax_swing_JComponent$I$I(this,a,b):this.inside$I$I(a,b)});b(w,"setBorder$javax_swing_border_Border",function(a){var b=this.\u79d8border;this.\u79d8border= +a;this.firePropertyChange$S$O$O("border",b,a);a!==b&&((null==a||null==b||!a.getBorderInsets$java_awt_Component(this).equals$O(b.getBorderInsets$java_awt_Component(this)))&&this.revalidate$(),this.\u79d8repaint$())});b(w,"getBorder$",function(){return this.\u79d8border});b(w,"getInsets$",function(){return null!=this.\u79d8border?this.\u79d8border.getBorderInsets$java_awt_Component(this):w.superclazz.prototype.getInsets$.apply(this,[])});b(w,"getInsets$java_awt_Insets",function(a){var b=null;null== +a&&(a=f(ua(12).c$$I$I$I$I,[0,0,0,0]));this.isAWT||this.isAWTContainer?b=this.getInsets$():null==this.\u79d8border?a.left=a.top=a.right=a.bottom=0:(k(this.\u79d8border,"javax.swing.border.AbstractBorder")&&this.\u79d8border.getBorderInsets$java_awt_Component$java_awt_Insets(this,a),b=this.\u79d8border.getBorderInsets$java_awt_Component(this));null!=b&&(a.left=b.left,a.right=b.right,a.top=b.top,a.bottom=b.bottom);return a});b(w,"getAlignmentY$",function(){return this.\u79d8isAlignmentYSet?this.\u79d8alignmentY: +w.superclazz.prototype.getAlignmentY$.apply(this,[])});b(w,"setAlignmentY$F",function(a){this.\u79d8alignmentY=1a?0:a;this.\u79d8isAlignmentYSet=!0});b(w,"getAlignmentX$",function(){return this.\u79d8isAlignmentXSet?this.\u79d8alignmentX:w.superclazz.prototype.getAlignmentX$.apply(this,[])});b(w,"setAlignmentX$F",function(a){this.\u79d8alignmentX=1a?0:a;this.\u79d8isAlignmentXSet=!0});b(w,"setInputVerifier$javax_swing_InputVerifier",function(a){var b=this.getClientProperty$O(ua(13).JComponent_INPUT_VERIFIER); +this.putClientProperty$O$O(ua(13).JComponent_INPUT_VERIFIER,a);this.firePropertyChange$S$O$O("inputVerifier",b,a)});b(w,"getInputVerifier$",function(){return this.getClientProperty$O(ua(13).JComponent_INPUT_VERIFIER)});b(w,"getGraphics$",function(){return w.superclazz.prototype.getGraphics$.apply(this,[])});b(w,"registerKeyboardAction$java_awt_event_ActionListener$S$javax_swing_KeyStroke$I",function(a,b,c,d){d=this.getInputMap$I$Z(d,!0);if(null!=d){var h=this.getActionMap$Z(!0);a=f(ua(14).c$$java_awt_event_ActionListener$S, +[this,null,a,b]);d.put$javax_swing_KeyStroke$O(c,a);null!=h&&h.put$O$javax_swing_Action(a,a)}});b(w,"registerWithKM$",function(){W.registerWithKeyboardManager$Z.apply(this,[!1])});b(w,"registerWithKeyboardManager$Z",function(a){if(null!=java.awt.JSComponent.\u79d8getTopInvokableAncestor$java_awt_Component$Z(this,!0)){var b=this.getInputMap$I$Z(2,!1),c=this.getClientProperty$O("_WhenInFocusedWindow");if(null!=b){if(b=b.allKeys$(),null!=b)for(var d=b.length-1;0<=d;d--)(!a||null==c||null==c.get$O(b[d]))&& +W.registerWithKeyboardManager$javax_swing_KeyStroke.apply(this,[b[d]]),null!=c&&c.remove$O(b[d])}else b=null;if(null!=c&&0c;c++){var d=this.getInputMap$I$Z(c,!1);if(null!=d){var h=d.get$javax_swing_KeyStroke(a);null!=b&&null!=h&&b.remove$O(h);d.remove$javax_swing_KeyStroke(a)}}});b(w,"getRegisteredKeyStrokes$",function(){for(var a=l(Integer.TYPE,[3]),b=l(ua(7),[3,null]),c=0;3>c;c++){var d=this.getInputMap$I$Z(c,!1);b[c]=null!=d?d.allKeys$():null;a[c]=null!=b[c]?b[c].length:0}for(var d=l(ua(7),[a[0]+a[1]+ +a[2]]),h=c=0;3>c;c++)0b;b++){var c=this.getInputMap$I$Z(b,!1);if(null!=c&&null!=c.get$javax_swing_KeyStroke(a))return b}return-1});b(w,"getActionForKeyStroke$javax_swing_KeyStroke",function(a){var b=this.getActionMap$Z(!1);if(null==b)return null;for(var c=0;3>c;c++){var d=this.getInputMap$I$Z(c,!1);if(null!=d&&(d=d.get$javax_swing_KeyStroke(a),null!= +d))return a=b.get$O(d),k(a,"javax.swing.JComponent.ActionStandin")?a.actionListener:a}return null});b(w,"resetKeyboardActions$",function(){for(var a=0;3>a;a++){var b=this.getInputMap$I$Z(a,!1);null!=b&&b.clear$()}a=this.getActionMap$Z(!1);null!=a&&a.clear$()});b(w,"setInputMap$I$javax_swing_InputMap",function(a,b){switch(a){case 2:if(null!=b&&!k(b,"javax.swing.ComponentInputMap"))throw f(g("IllegalArgumentException").c$$S,["WHEN_IN_FOCUSED_WINDOW InputMaps must be of type ComponentInputMap"]);this.windowInputMap= +b;W.setFlag$I$Z.apply(this,[7,!0]);W.registerWithKeyboardManager$Z.apply(this,[!1]);break;case 1:this.ancestorInputMap=b;W.setFlag$I$Z.apply(this,[6,!0]);break;case 0:this.focusInputMap=b;W.setFlag$I$Z.apply(this,[5,!0]);break;default:throw f(g("IllegalArgumentException").c$$S,["condition must be one of JComponent.WHEN_IN_FOCUSED_WINDOW, JComponent.WHEN_FOCUSED or JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT"]);}});b(w,"getInputMap$I",function(a){return this.getInputMap$I$Z(a,!0)});b(w,"getInputMap$", +function(){return this.getInputMap$I$Z(0,!0)});b(w,"setActionMap$javax_swing_ActionMap",function(a){this.actionMap=a;W.setFlag$I$Z.apply(this,[8,!0])});b(w,"getActionMap$",function(){return this.getActionMap$Z(!0)});b(w,"getInputMap$I$Z",function(a,b){switch(a){case 0:if(W.getFlag$I.apply(this,[5]))return this.focusInputMap;if(b){var c=f(ua(17));this.setInputMap$I$javax_swing_InputMap(a,c);this.\u79d8jsInputMapSet$();return c}break;case 1:if(W.getFlag$I.apply(this,[6]))return this.ancestorInputMap; +if(b)return c=f(ua(17)),this.setInputMap$I$javax_swing_InputMap(a,c),c;break;case 2:if(W.getFlag$I.apply(this,[7]))return this.windowInputMap;if(b)return c=f(ua(18).c$$javax_swing_JComponent,[this]),this.setInputMap$I$javax_swing_InputMap(a,c),c;break;default:throw f(g("IllegalArgumentException").c$$S,["condition must be one of JComponent.WHEN_IN_FOCUSED_WINDOW, JComponent.WHEN_FOCUSED or JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT"]);}return null});b(w,"getActionMap$Z",function(a){return W.getFlag$I.apply(this, +[8])?this.actionMap:a?(a=f(ua(19)),this.setActionMap$javax_swing_ActionMap(a),a):null});b(w,"getBaseline$I$I",function(a,b){w.superclazz.prototype.getBaseline$I$I.apply(this,[a,b]);return null!=this.ui?this.ui.getBaseline$javax_swing_JComponent$I$I(this,a,b):-1});b(w,"getBaselineResizeBehavior$",function(){return null!=this.ui?this.ui.getBaselineResizeBehavior$javax_swing_JComponent(this):ua(20).OTHER});b(w,"requestDefaultFocus$",function(){this.isFocusCycleRoot$()||this.getFocusCycleRootAncestor$(); +return!1});b(w,"setVisible$Z",function(a){if(a!=this.isVisible$()){w.superclazz.prototype.setVisible$Z.apply(this,[a]);a=this.getParent$();if(null!=a){var b=this.getBounds$();a.repaint$I$I$I$I(b.x,b.y,b.width,b.height)}this.revalidate$()}});b(w,"setEnabled$Z",function(a){var b=this.isEnabled$();w.superclazz.prototype.setEnabled$Z.apply(this,[a]);this.firePropertyChange$S$Z$Z("enabled",b,a);a!=b&&this.\u79d8repaint$()});b(w,"setForeground$java_awt_Color",function(a){var b=this.getForeground$();w.superclazz.prototype.setForeground$java_awt_Color.apply(this, +[a]);(null!=b?!b.equals$O(a):null!=a&&!a.equals$O(b))&&this.\u79d8repaint$()});b(w,"setBackground$java_awt_Color",function(a){var b=this.getBackground$();w.superclazz.prototype.setBackground$java_awt_Color.apply(this,[a]);(null!=b?!b.equals$O(a):null!=a&&!a.equals$O(b))&&this.\u79d8repaint$()});b(w,"setFont$java_awt_Font",function(a){var b=this.getFont$();w.superclazz.prototype.setFont$java_awt_Font.apply(this,[a]);a!==b&&(this.revalidate$(),this.\u79d8repaint$())});b(w,"getDefaultLocale$",function(){var a= +ua(1).appContextGet$O("JComponent.defaultLocale");null==a&&(a=ua(21).getDefault$(),w.setDefaultLocale$java_util_Locale(a));return a},1);b(w,"setDefaultLocale$java_util_Locale",function(a){ua(1).appContextPut$O$O("JComponent.defaultLocale",a)},1);b(w,"processComponentKeyEvent$java_awt_event_KeyEvent",function(){});b(w,"processKeyEvent$java_awt_event_KeyEvent",function(a){var b;w.superclazz.prototype.processKeyEvent$java_awt_event_KeyEvent.apply(this,[a]);a.isConsumed$()||this.processComponentKeyEvent$java_awt_event_KeyEvent(a); +b=ua(22).shouldProcess$java_awt_event_KeyEvent(a);a.isConsumed$()||b&&this.processKeyBindings$java_awt_event_KeyEvent$Z(a,401==a.getID$())&&a.consume$()});b(w,"processKeyBinding$javax_swing_KeyStroke$java_awt_event_KeyEvent$I$Z",function(a,b,c){var d=this.getInputMap$I$Z(c,!1);c=this.getActionMap$Z(!1);return null!=d&&(null!=c&&this.isEnabled$())&&(d=d.get$javax_swing_KeyStroke(a),c=null==d?null:c.get$O(d),null!=c)?ua(1).notifyAction$javax_swing_Action$javax_swing_KeyStroke$java_awt_event_KeyEvent$O$I(c, +a,b,this,b.getModifiers$()):!1});b(w,"processKeyBindings$java_awt_event_KeyEvent$Z",function(a,b){if(!ua(1).isValidKeyEventForKeyBindings$java_awt_event_KeyEvent(a))return!1;var c;c=400==a.getID$()?ua(7).getKeyStroke$C(a.getKeyChar$()):ua(7).getKeyStroke$I$I$Z(a.getKeyCode$(),a.getModifiers$(),b?!1:!0);if(this.processKeyBinding$javax_swing_KeyStroke$java_awt_event_KeyEvent$I$Z(c,a,0,b))return!0;for(var d=this;null!=d&&!d.isWindowOrJSApplet$();){if(k(d,"javax.swing.JComponent")&&d.processKeyBinding$javax_swing_KeyStroke$java_awt_event_KeyEvent$I$Z(c, +a,1,b))return!0;d=d.getParent$()}return null!=d?w.processKeyBindingsForAllComponents$java_awt_event_KeyEvent$java_awt_Container$Z(a,d,b):!1});b(w,"processKeyBindingsForAllComponents$java_awt_event_KeyEvent$java_awt_Container$Z",function(a,b,c){for(;;){if(ua(16).getCurrentManager$().fireKeyboardAction$java_awt_event_KeyEvent$Z$java_awt_Container(a,c,b))return!0;if(ua(23).isHeavyWeight$java_awt_Container(b))b=b.getOwner$();else return!1}},1);b(w,"setToolTipText$S",function(a){var b=this.getToolTipText$(); +this.putClientProperty$O$O("ToolTipText",a);var c=ua(24).sharedInstance$();null!=a?null==b&&c.registerComponent$javax_swing_JComponent(this):c.unregisterComponent$javax_swing_JComponent(this)});b(w,"getToolTipText$",function(){return this.getClientProperty$O("ToolTipText")});b(w,"getToolTipText$java_awt_event_MouseEvent",function(){return this.getToolTipText$()});b(w,"getToolTipLocation$java_awt_event_MouseEvent",function(){return null});b(w,"getPopupLocation$java_awt_event_MouseEvent",function(){return null}); +b(w,"createToolTip$",function(){var a=f(ua(25));a.setComponent$javax_swing_JComponent(this);return a});b(w,"scrollRectToVisible$java_awt_Rectangle",function(a){var b,c=this.getX$(),d=this.getY$();for(b=this.getParent$();null!=b&&!k(b,"javax.swing.JComponent")&&!k(b,"javax.swing.CellRendererPane");b=b.getParent$())var h=b.getBounds$(),c=c+h.x,d=d+h.y;null!=b&&!k(b,"javax.swing.CellRendererPane")&&(a.x+=c,a.y+=d,b.scrollRectToVisible$java_awt_Rectangle(a),a.x-=c,a.y-=d)});b(w,"setAutoscrolls$Z",function(a){W.setFlag$I$Z.apply(this, +[25,!0]);this.autoscrolls!=a&&((this.autoscrolls=a)?(this.enableEvents$J(16),this.enableEvents$J(32)):ua(26).stop$javax_swing_JComponent(this))});b(w,"getAutoscrolls$",function(){return this.autoscrolls});b(w,"processMouseEvent$java_awt_event_MouseEvent",function(a){this.autoscrolls&&502==a.getID$()&&ua(26).stop$javax_swing_JComponent(this);w.superclazz.prototype.processMouseEvent$java_awt_event_MouseEvent.apply(this,[a])});b(w,"processMouseMotionEvent$java_awt_event_MouseEvent",function(a){var b= +!0;this.autoscrolls&&506==a.getID$()&&(b=!ua(26).isRunning$javax_swing_JComponent(this),ua(26).processMouseDragged$java_awt_event_MouseEvent(a));b&&w.superclazz.prototype.processMouseMotionEvent$java_awt_event_MouseEvent.apply(this,[a])});b(w,"superProcessMouseMotionEvent$java_awt_event_MouseEvent",function(a){w.superclazz.prototype.processMouseMotionEvent$java_awt_event_MouseEvent.apply(this,[a])});b(w,"setCreatedDoubleBuffer$Z",function(a){W.setFlag$I$Z.apply(this,[9,a])});b(w,"getCreatedDoubleBuffer$", +function(){return W.getFlag$I.apply(this,[9])});b(w,"getTitledBorderText$",function(){var a=this.getBorder$();return k(a,"javax.swing.border.TitledBorder")?a.getTitle$():null});b(w,"getClientProperties",function(){null==this.clientProperties&&(this.clientProperties=f(ua(27)));return this.clientProperties},W);b(w,"getClientProperty$O",function(a){return null==this.clientProperties?null:this.clientProperties.get$O(a)});b(w,"putClientProperty$O$O",function(a,b){if(!(null==b&&null==this.clientProperties)){var c= +W.getClientProperties.apply(this,[]),d;d=c.get$O(a);if(null!=b)c.put$O$O(a,b);else if(null!=d)c.remove$O(a);else return;this.clientPropertyChanged$O$O$O(a,d,b);this.firePropertyChange$S$O$O(a.toString(),d,b)}});b(w,"clientPropertyChanged$O$O$O",function(){});b(w,"setUI$javax_swing_plaf_ComponentUI",function(a){var b=this.ui;W.uninstallUIAndProperties.apply(this,[]);this.ui=a;null!=b&&(this.revalidate$(),this.\u79d8repaint$())});b(w,"uninstallUIAndProperties",function(){null!=this.ui&&this.ui.reinstallUI$javax_swing_JComponent$javax_swing_JComponent(this, +null)},W);b(w,"setUIProperty$S$O",function(a,b){"opaque"==a?W.getFlag$I.apply(this,[24])||(this.setOpaque$Z(b.booleanValue$()),W.setFlag$I$Z.apply(this,[24,!1])):"autoscrolls"==a?W.getFlag$I.apply(this,[25])||(this.setAutoscrolls$Z(b.booleanValue$()),W.setFlag$I$Z.apply(this,[25,!1])):"focusTraversalKeysForward"==a?W.getFlag$I.apply(this,[26])||w.superclazz.prototype.setFocusTraversalKeys$I$java_util_Set.apply(this,[0,b]):"focusTraversalKeysBackward"==a?W.getFlag$I.apply(this,[27])||w.superclazz.prototype.setFocusTraversalKeys$I$java_util_Set.apply(this, +[1,b]):System.out.println$S(this.getClass$().getName$()+' property "'+a+'" cannot be set using this method'+ua(28).getStackTrace$I(5))});b(w,"setFocusTraversalKeys$I$java_util_Set",function(a,b){0==a?W.setFlag$I$Z.apply(this,[26,!0]):1==a&&W.setFlag$I$Z.apply(this,[27,!0]);w.superclazz.prototype.setFocusTraversalKeys$I$java_util_Set.apply(this,[a,b])});b(w,"isLightweightComponent$java_awt_Component",function(a){return!a.rootPane},1);b(w,"isOpaque$",function(){return W.getFlag$I.apply(this,[3])}); +b(w,"setOpaque$Z",function(a){var b=W.getFlag$I.apply(this,[3]);W.setFlag$I$Z.apply(this,[3,a]);W.setFlag$I$Z.apply(this,[24,!0]);this.firePropertyChange$S$Z$Z("opaque",b,a)});b(w,"rectangleIsObscured$I$I$I$I",function(a,b,c,d){for(var h=this.getComponentCount$(),f=0;f=j&&a+c<=j+m&&b>=l&&b+d<=l+n&&g.isVisible$()){if(k(g,"javax.swing.JComponent"))return g.isOpaque$();break}}return!1});b(w,"computeVisibleRect$java_awt_Component$java_awt_Rectangle", +function(a,b){var c=a.getParent$(),d=a.getBounds$();null==c||c.isWindowOrJSApplet$()?b.setBounds$I$I$I$I(0,0,d.width,d.height):(w.computeVisibleRect$java_awt_Component$java_awt_Rectangle(c,b),b.x-=d.x,b.y-=d.y,ua(1).computeIntersection$I$I$I$I$java_awt_Rectangle(0,0,d.width,d.height,b))},1);b(w,"computeVisibleRect$java_awt_Rectangle",function(a){w.computeVisibleRect$java_awt_Component$java_awt_Rectangle(this,a)});b(w,"getVisibleRect$",function(){var a=f(ua(8));this.computeVisibleRect$java_awt_Rectangle(a); +return a});b(w,"getTopLevelAncestor$",function(){for(var a=this;null!=a;a=a.getParent$())if(a.isWindowOrJSApplet$())return a;return null});b(w,"getAncestorNotifier",function(){return this.getClientProperty$O(ua(13).JComponent_ANCESTOR_NOTIFIER)},W);b(w,"addAncestorListener$javax_swing_event_AncestorListener",function(a){var b=W.getAncestorNotifier.apply(this,[]);null==b&&(b=f(ua(29).c$$javax_swing_JComponent,[this]),this.putClientProperty$O$O(ua(13).JComponent_ANCESTOR_NOTIFIER,b));b.addAncestorListener$javax_swing_event_AncestorListener(a)}); +b(w,"removeAncestorListener$javax_swing_event_AncestorListener",function(a){var b=W.getAncestorNotifier.apply(this,[]);null!=b&&(b.removeAncestorListener$javax_swing_event_AncestorListener(a),0==b.listenerList.getListenerList$().length&&(b.removeAllListeners$(),this.putClientProperty$O$O(ua(13).JComponent_ANCESTOR_NOTIFIER,null)))});b(w,"getAncestorListeners$",function(){var a=W.getAncestorNotifier.apply(this,[]);return null==a?l(ua(30),[0]):a.getAncestorListeners$()});b(w,"getListeners$Class",function(a){var b; +b=a===x(ua(30),["ancestorAdded$javax_swing_event_AncestorEvent","ancestorMoved$javax_swing_event_AncestorEvent","ancestorRemoved$javax_swing_event_AncestorEvent"])?this.getAncestorListeners$():a===x(ua(31),["propertyChange$java_beans_PropertyChangeEvent"])?this.getPropertyChangeListeners$():this.listenerList.getListeners$Class(a);return 0==b.length?w.superclazz.prototype.getListeners$Class.apply(this,[a]):b});b(w,"addNotify$",function(){w.superclazz.prototype.addNotify$.apply(this,[]);this.firePropertyChange$S$O$O("ancestor", +null,this.getParent$());W.registerWithKeyboardManager$Z.apply(this,[!1]);W.registerNextFocusableComponent.apply(this,[])});b(w,"removeNotify$",function(){w.superclazz.prototype.removeNotify$.apply(this,[]);this.firePropertyChange$S$O$O("ancestor",this.getParent$(),null);W.unregisterWithKeyboardManager.apply(this,[]);W.deregisterNextFocusableComponent.apply(this,[]);this.getCreatedDoubleBuffer$()&&(ua(9).currentManager$javax_swing_JComponent(this).resetDoubleBuffer$(),this.setCreatedDoubleBuffer$Z(!1)); +this.autoscrolls&&ua(26).stop$javax_swing_JComponent(this)});b(w,"repaint$J$I$I$I$I",function(a,b,c,d,h){ua(9).currentManager$javax_swing_JComponent(this).addDirtyRegion$javax_swing_JComponent$I$I$I$I(this,b,c,d,h)});b(w,"repaint$java_awt_Rectangle",function(a){this.repaint$J$I$I$I$I(0,a.x,a.y,a.width,a.height)});b(w,"revalidate$",function(){null!=this.ui&&this.ui.setTainted$();if(null!=this.getParent$())if(ua(1).isEventDispatchThread$())this.invalidate$(),this.\u79d8isAWT$()||ua(9).currentManager$javax_swing_JComponent(this).addInvalidComponent$javax_swing_JComponent(this); +else if(!W.getFlag$I.apply(this,[28])){W.setFlag$I$Z.apply(this,[28,!0]);if(!Yk.JComponent$2){var a=j(Yk,"JComponent$2",function(b){m(this,b,1,a)},null,"Runnable",1);a.$clinit$=function(){g(a,1)};b(a,"$init$",function(){},1);b(a,"run$",function(){W.setFlag$I$Z.apply(this.b$["javax.swing.JComponent"],[28,!1]);this.b$["javax.swing.JComponent"].revalidate$.apply(this.b$["javax.swing.JComponent"],[])})}var e=f(Yk.JComponent$2.$init$,[this,null]);ua(1).invokeLater$Runnable(e)}});b(w,"isValidateRoot$", +function(){return!1});b(w,"isOptimizedDrawingEnabled$",function(){return!0});b(w,"isPaintingOrigin$",function(){return!1});b(w,"paintImmediately$I$I$I$I",function(a,b,c,d){var h=this,f;if(this.isShowing$()){for(;!this.isOpaque$();){f=h.getParent$();if(null!=f)a+=h.getX$(),b+=h.getY$(),h=f;else break;if(!k(h,"javax.swing.JComponent"))break}k(h,"javax.swing.JComponent")?h._paintImmediately$I$I$I$I(a,b,c,d):h.repaint$I$I$I$I(a,b,c,d)}});b(w,"paintImmediately$java_awt_Rectangle",function(a){this.paintImmediately$I$I$I$I(a.x, +a.y,a.width,a.height)});b(w,"alwaysOnTop$",function(){return!1});b(w,"setPaintingChild$java_awt_Component",function(a){this.paintingChild=a});b(w,"_paintImmediately$I$I$I$I",function(a,b,c,d){var h,g=0,j=0,p=!1,l=this,m=f(ua(32).c$$I,[7]),n=-1,q=0,r=w.fetchRectangle$();r.x=a;r.y=b;r.width=c;r.height=d;if(b=this.alwaysOnTop$()&&this.isOpaque$())if(ua(1).computeIntersection$I$I$I$I$java_awt_Rectangle(0,0,this.getWidth$(),this.getHeight$(),r),0==r.width){w.recycleRectangle$java_awt_Rectangle(r);return}var t; +a=this;for(t=null;null!=a&&!a.isWindowOrJSApplet$();t=a,a=a.getParent$()){c=k(a,"javax.swing.JComponent")?a:null;m.add$TE(a);if(!b&&null!=c&&!c.isOptimizedDrawingEnabled$()){if(a!==this)if(c.isPaintingOrigin$())d=!0;else{var v=ua(33).\u79d8getChildArray$java_awt_Container(a);d=0;for(var u=a.getComponentCount$();d=r.width||0>=r.height)){l.\u79d8isContentPane&&!l.isOpaque$()&&(l=l.getRootPane$());W.setFlag$I$Z.apply(l,[13,!0]);r.x-=g;r.y-=j;if(l!==this)for(d=n;0=j.x&&b+d<=j.x+j.width&&c>=j.y&&c+h<=j.y+j.height)return w.recycleRectangle$java_awt_Rectangle(g),2;if(0==f&&!(b+d<=j.x||c+h<=j.y||b>=j.x+j.width||c>=j.y+j.height))f=1}}w.recycleRectangle$java_awt_Rectangle(g); +return f},W);b(w,"checkIfChildObscuredBySibling$",function(){return!0});b(w,"setFlag$I$Z",function(a,b){this.flags=b?this.flags|1<=a&&(a-=32);this.setDisplayedMnemonic$I(a)});b(ob,"getDisplayedMnemonic$",function(){return this.mnemonic});b(ob,"setDisplayedMnemonicIndex$I",function(a){var b=this.mnemonicIndex;if(-1==a)this.mnemonicIndex=-1;else{var c=this.getText$(),c=null==c?0:c.length$();if(-1>a|| +a>=c)throw f(g("IllegalArgumentException").c$$S,["index == "+a]);}this.mnemonicIndex=a;this.firePropertyChange$S$I$I("displayedMnemonicIndex",b,a);a!=b&&(this.revalidate$(),this.\u79d8repaint$())});b(ob,"getDisplayedMnemonicIndex$",function(){return this.mnemonicIndex});b(ob,"checkHorizontalKey$I$S",function(a,b){if(2==a||0==a||4==a||10==a||11==a)return a;throw f(g("IllegalArgumentException").c$$S,[b]);});b(ob,"checkVerticalKey$I$S",function(a,b){if(1==a||0==a||3==a)return a;throw f(g("IllegalArgumentException").c$$S, +[b]);});b(ob,"getIconTextGap$",function(){return this.iconTextGap});b(ob,"setIconTextGap$I",function(a){var b=this.iconTextGap;this.iconTextGap=a;this.firePropertyChange$S$I$I("iconTextGap",b,a);a!=b&&(this.revalidate$(),this.\u79d8repaint$())});b(ob,"getVerticalAlignment$",function(){return this.verticalAlignment});b(ob,"setVerticalAlignment$I",function(a){if(a!=this.verticalAlignment){var b=this.verticalAlignment;this.verticalAlignment=this.checkVerticalKey$I$S(a,"verticalAlignment");this.firePropertyChange$S$I$I("verticalAlignment", +b,this.verticalAlignment);this.\u79d8repaint$()}});b(ob,"getHorizontalAlignment$",function(){return this.horizontalAlignment});b(ob,"setHorizontalAlignment$I",function(a){if(a!=this.horizontalAlignment){var b=this.horizontalAlignment;this.horizontalAlignment=this.checkHorizontalKey$I$S(a,"horizontalAlignment");this.firePropertyChange$S$I$I("horizontalAlignment",b,this.horizontalAlignment);this.\u79d8repaint$()}});b(ob,"getVerticalTextPosition$",function(){return this.verticalTextPosition});b(ob,"setVerticalTextPosition$I", +function(a){if(a!=this.verticalTextPosition){var b=this.verticalTextPosition;this.verticalTextPosition=this.checkVerticalKey$I$S(a,"verticalTextPosition");this.firePropertyChange$S$I$I("verticalTextPosition",b,this.verticalTextPosition);this.revalidate$();this.\u79d8repaint$()}});b(ob,"getHorizontalTextPosition$",function(){return this.horizontalTextPosition});b(ob,"setHorizontalTextPosition$I",function(a){var b=this.horizontalTextPosition;this.horizontalTextPosition=this.checkHorizontalKey$I$S(a, +"horizontalTextPosition");this.firePropertyChange$S$I$I("horizontalTextPosition",b,this.horizontalTextPosition);this.revalidate$();this.\u79d8repaint$()});b(ob,["imageUpdate$java_awt_Image$I$I$I$I$I","imageUpdate$"],function(a,b,c,d,h,f){return!this.isShowing$()||!sp(1).doesIconReferenceImage$javax_swing_Icon$java_awt_Image(this.getIcon$(),a)&&!sp(1).doesIconReferenceImage$javax_swing_Icon$java_awt_Image(this.disabledIcon,a)?!1:ob.superclazz.prototype.imageUpdate$java_awt_Image$I$I$I$I$I.apply(this, +[a,b,c,d,h,f])});b(ob,"paramString$",function(){var a=null!=this.text?this.text:"",b=null!=this.defaultIcon&&this.defaultIcon!==this?this.defaultIcon.toString():"",c=null!=this.disabledIcon&&this.disabledIcon!==this?this.disabledIcon.toString():"",d=null!=this.labelFor?this.labelFor.toString():"",h;h=1==this.verticalAlignment?"TOP":0==this.verticalAlignment?"CENTER":3==this.verticalAlignment?"BOTTOM":"";var f;f=2==this.horizontalAlignment?"LEFT":0==this.horizontalAlignment?"CENTER":4==this.horizontalAlignment? +"RIGHT":10==this.horizontalAlignment?"LEADING":11==this.horizontalAlignment?"TRAILING":"";var g;g=1==this.verticalTextPosition?"TOP":0==this.verticalTextPosition?"CENTER":3==this.verticalTextPosition?"BOTTOM":"";var j;j=2==this.horizontalTextPosition?"LEFT":0==this.horizontalTextPosition?"CENTER":4==this.horizontalTextPosition?"RIGHT":10==this.horizontalTextPosition?"LEADING":11==this.horizontalTextPosition?"TRAILING":"";return ob.superclazz.prototype.paramString$.apply(this,[])+",defaultIcon="+b+ +",disabledIcon="+c+",horizontalAlignment="+f+",horizontalTextPosition="+j+",iconTextGap="+this.iconTextGap+",labelFor="+d+",text="+a+",verticalAlignment="+h+",verticalTextPosition="+g});b(ob,"getLabelFor$",function(){return this.labelFor});b(ob,"setLabelFor$java_awt_Component",function(a){var b=this.labelFor;this.labelFor=a;this.firePropertyChange$S$O$O("labelFor",b,a);k(b,"javax.swing.JComponent")&&b.putClientProperty$O$O("labeledBy",null);k(a,"javax.swing.JComponent")&&a.putClientProperty$O$O("labeledBy", +this)});n("3.2.4.07");var gA=q("javax.swing"),Ao={},mt=[[0,"java.awt.JSComponent","java.awt.Component","java.awt.Color","java.util.Hashtable","java.util.ArrayList"]],Bo=function(a){return mt[a]||(mt[a]=g(mt[0][a]))},wa=j(gA,"JLayeredPane",null,"javax.swing.JComponent");wa.DEFAULT_LAYER=null;wa.PALETTE_LAYER=null;wa.MODAL_LAYER=null;wa.POPUP_LAYER=null;wa.DRAG_LAYER=null;wa.FRAME_CONTENT_LAYER=null;wa.$clinit$=function(){g(wa,1);wa.DEFAULT_LAYER=new Integer(0);wa.PALETTE_LAYER=new Integer(100);wa.MODAL_LAYER= +new Integer(200);wa.POPUP_LAYER=new Integer(300);wa.DRAG_LAYER=new Integer(400);wa.FRAME_CONTENT_LAYER=new Integer(-3E4)};b(wa,"$init0$",function(){var a;(a=wa.superclazz)&&(a=a.$init0$)&&a.apply(this);this.componentToLayer=null;this.isAWT=this.optimizedDrawingPossible=!1},1);b(wa,"$init$",function(){this.optimizedDrawingPossible=!0},1);b(wa,"c$",function(){wa.c$$Z.apply(this,[!1])},1);b(wa,"c$$Z",function(a){wa.superclazz.c$.apply(this,[]);wa.$init$.apply(this);this.initLayeredPane$();this.isAWT= +a;this.\u79d8paintClass=wa||null},1);b(wa,"initLayeredPane$",function(){this.updateUI$();this.setLayout$java_awt_LayoutManager(null)});b(wa,"getUIClassID$",function(){return"LayeredPaneUI"});b(wa,"validateOptimizedDrawing",function(){var a=!1;this.getTreeLock$();for(var b=null,c=Bo(1).\u79d8getChildArray$java_awt_Container(this),d=this.getComponentCount$(),h=0;h=j.width+j.x&&j.width-d.width<2*(c.x-j.x)&&(a=0-b-h.width)):(a=0-b-h.width,c.x+a2*(c.x-j.x)&&(a=d.width+b)),b=g,c.y+b+h.height>=j.height+j.y&&j.height-d.height<2*(c.y-j.y)&&(b=d.height-g-h.height)):(b=Rb(1).getInt$O("Menu.menuPopupOffsetX"),g=Rb(1).getInt$O("Menu.menuPopupOffsetY"),Rb(4).isLeftToRight$java_awt_Component(this)?(a=b,c.x+a+h.width>=j.width+j.x&&j.width-d.width<2*(c.x-j.x)&&(a=d.width-b-h.width)):(a=d.width-b-h.width,c.x+a2*(c.x-j.x)&&(a=b)),b=d.height+g,c.y+b+h.height>=j.height&&j.height-d.height<2*(c.y-j.y)&&(b=0-g-h.height));return f(Rb(5).c$$I$I,[a,b])});b(ha,"getDelay$",function(){return this.delay});b(ha,"setDelay$I",function(a){if(0>a)throw f(g("IllegalArgumentException").c$$S,["Delay must be a positive integer"]);this.delay=a});b(ha,"ensurePopupMenuCreated",function(){null==this.popupMenu&&(this.popupMenu=f(Rb(6)),this.popupMenu.setInvoker$java_awt_Component(this),this.popupListener=this.createWinListener$javax_swing_JPopupMenu(this.popupMenu), +this.popupMenu.addNotify$())},Xf);b(ha,"getCustomMenuLocation",function(){return this.customMenuLocation},Xf);b(ha,"setMenuLocation$I$I",function(a,b){this.customMenuLocation=f(Rb(5).c$$I$I,[a,b]);null!=this.popupMenu&&this.popupMenu.setLocation$I$I(a,b)});b(ha,"add$javax_swing_JMenuItem",function(a){Xf.ensurePopupMenuCreated.apply(this,[]);this.popupMenu.add$javax_swing_JMenuItem(a);this.firePropertyChange$S$O$O("JSitem",null,a);return a});b(ha,"add$java_awt_Component",function(a){Xf.ensurePopupMenuCreated.apply(this, +[]);this.popupMenu.add$java_awt_Component(a);this.firePropertyChange$S$O$O("JSitem",null,a);return a});b(ha,"add$java_awt_Component$I",function(a,b){Xf.ensurePopupMenuCreated.apply(this,[]);this.popupMenu.add$java_awt_Component$I(a,b);this.firePropertyChange$S$O$O("JSitem",null,a);return a});b(ha,"add$S",function(a){return this.add$javax_swing_JMenuItem(f(Rb(7).c$$S,[a]))});b(ha,"add$javax_swing_Action",function(a){var b=this.createActionComponent$javax_swing_Action(a);b.setAction$javax_swing_Action(a); +this.add$javax_swing_JMenuItem(b);return b});b(ha,"createActionComponent$javax_swing_Action",function(){if(!Co.JMenu$1){var a=j(Co,"JMenu$1",function(b){m(this,b,1,a)},g("javax.swing.JMenuItem"),null,1);a.$clinit$=function(){g(a,1)};b(a,"$init$",function(){},1);b(a,"createActionPropertyChangeListener$javax_swing_Action",function(b){var e=this.b$["javax.swing.JMenu"].createActionChangeListener$javax_swing_JMenuItem.apply(this.b$["javax.swing.JMenu"],[this]);null==e&&(e=a.superclazz.prototype.createActionPropertyChangeListener$javax_swing_Action.apply(this, +[b]));return e})}var e=f(Rb(7),[this,null],Co.JMenu$1);e.setHorizontalTextPosition$I(11);e.setVerticalTextPosition$I(0);return e});b(ha,"createActionChangeListener$javax_swing_JMenuItem",function(a){return a.createActionPropertyChangeListener0$javax_swing_Action(a.getAction$())});b(ha,"addSeparator$",function(){Xf.ensurePopupMenuCreated.apply(this,[]);this.popupMenu.addSeparator$()});b(ha,"insert$S$I",function(a,b){if(0>b)throw f(g("IllegalArgumentException").c$$S,["index less than zero."]);Xf.ensurePopupMenuCreated.apply(this, +[]);this.popupMenu.insert$java_awt_Component$I(f(Rb(7).c$$S,[a]),b)});b(ha,"insert$javax_swing_JMenuItem$I",function(a,b){if(0>b)throw f(g("IllegalArgumentException").c$$S,["index less than zero."]);Xf.ensurePopupMenuCreated.apply(this,[]);this.popupMenu.insert$java_awt_Component$I(a,b);return a});b(ha,"insert$javax_swing_Action$I",function(a,b){if(0>b)throw f(g("IllegalArgumentException").c$$S,["index less than zero."]);Xf.ensurePopupMenuCreated.apply(this,[]);var c=f(Rb(7).c$$javax_swing_Action, +[a]);c.setHorizontalTextPosition$I(11);c.setVerticalTextPosition$I(0);this.popupMenu.insert$java_awt_Component$I(c,b);return c});b(ha,"insertSeparator$I",function(a){if(0>a)throw f(g("IllegalArgumentException").c$$S,["index less than zero."]);Xf.ensurePopupMenuCreated.apply(this,[]);var b=f(Rb(8));b.\u79d8j2sInvalidateOnAdd=!1;this.popupMenu.insert$java_awt_Component$I(b,a)});b(ha,"getItem$I",function(a){if(0>a)throw f(g("IllegalArgumentException").c$$S,["index less than zero."]);a=this.getMenuComponent$I(a); +return k(a,"javax.swing.JMenuItem")?a:null});b(ha,"getItemCount$",function(){return this.getMenuComponentCount$()});b(ha,"isTearOff$",function(){throw f(Rb(9).c$$S,["boolean isTearOff() {} not yet implemented"]);});b(ha,"remove$javax_swing_JMenuItem",function(a){this.remove$java_awt_Component(a)});b(ha,"remove$I",function(a){if(0>a)throw f(g("IllegalArgumentException").c$$S,["index less than zero."]);if(a>this.getItemCount$())throw f(g("IllegalArgumentException").c$$S,["index greater than the number of items."]); +null!=this.popupMenu&&this.popupMenu.remove$I(a)});b(ha,"remove$java_awt_Component",function(a){null!=this.popupMenu&&this.popupMenu.remove$java_awt_Component(a);this.firePropertyChange$S$O$O("JSitem",a,null)});b(ha,"removeAll$",function(){null!=this.popupMenu&&this.popupMenu.removeAll$();this.firePropertyChange$S$O$O("JSitem",this,null)});b(ha,"getMenuComponentCount$",function(){return null==this.popupMenu?0:this.popupMenu.getComponentCount$()});b(ha,"getMenuComponent$I",function(a){return null== +this.popupMenu?null:this.popupMenu.getComponent$I(a)});b(ha,"getMenuComponents$",function(){return null==this.popupMenu?Rb(10).EMPTY_ARRAY:this.popupMenu.getComponents$()});b(ha,"getMenuArray$",function(){return Rb(11).\u79d8getChildArray$java_awt_Container(this.popupMenu)});b(ha,"isTopLevelMenu$",function(){return k(this.getParent$(),"javax.swing.JMenuBar")});b(ha,"isMenuComponent$java_awt_Component",function(a){if(a===this)return!0;if(k(a,"javax.swing.JPopupMenu")){var b;if(a===this.getPopupMenu$())return!0}for(var c= +this.getMenuComponentCount$(),d=this.getMenuArray$(),h=0;h +a||a>=this.getComponentCount$()?null:this.getComponent$I(a)});b(Kb,"getComponentIndex$java_awt_Component",function(a){for(var b=this.getComponentCount$(),c=Ml(3).\u79d8getChildArray$java_awt_Container(this),d=0;da)throw f(g("IllegalArgumentException").c$$S,["index less than zero."]);if(a>this.getComponentCount$()-1)throw f(g("IllegalArgumentException").c$$S,["index greater than the number of items."]);ca.superclazz.prototype.remove$I.apply(this,[a])});b(ca,"setLightWeightPopupEnabled$Z",function(a){this.lightWeightPopup=a});b(ca,"isLightWeightPopupEnabled$",function(){return this.lightWeightPopup}); +b(ca,"getLabel$",function(){return this.label});b(ca,"setLabel$S",function(a){var b=this.label;this.label=a;this.firePropertyChange$S$O$O("label",b,a);this.invalidate$();this.\u79d8repaint$()});b(ca,"addSeparator$",function(){var a=f(hc(8));a.\u79d8j2sInvalidateOnAdd=!1;this.add$java_awt_Component(a)});b(ca,"insert$javax_swing_Action$I",function(a,b){var c=this.createActionComponent$javax_swing_Action(a);c.setAction$javax_swing_Action(a);this.insert$java_awt_Component$I(c,b)});b(ca,"insert$java_awt_Component$I", +function(a,b){if(0>b)throw f(g("IllegalArgumentException").c$$S,["index less than zero."]);for(var c=this.getComponentCount$(),d=f(hc(9)),h=b;hb&&(b=-2147483648),2147483647c&&(c=-2147483648),this.setLocation$I$I(b|0,c|0)):this.setLocation$I$I(b,c);this.setVisible$Z(!0)});b(ca,"getRootPopupMenu$",function(){for(var a=this;null!=a&&!0!=Oh.isPopupMenu.apply(a,[])&&null!=a.getInvoker$()&&null!=a.getInvoker$().getParent$()&& +k(a.getInvoker$().getParent$(),"javax.swing.JPopupMenu");)a=a.getInvoker$().getParent$();return a});b(ca,"getComponentAtIndex$I",function(a){return this.getComponent$I(a)});b(ca,"getComponentIndex$java_awt_Component",function(a){for(var b=this.getComponentCount$(),c=hc(14).\u79d8getChildArray$java_awt_Container(this),d=0;da||8c)throw f(g("IllegalArgumentException").c$$S,["rows: "+c]);if(0>d)throw f(g("IllegalArgumentException").c$$S,["columns: "+d]);},1);b(ib,"getUIClassID$",function(){return"TextAreaUI"});b(ib,"createDefaultModel$", +function(){return f(yt(1))});b(ib,"setTabSize$I",function(a){var b=this.getDocument$();if(null!=b){var c=this.getTabSize$();b.putProperty$O$O("tabSize",new Integer(a));this.firePropertyChange$S$I$I("tabSize",c,a)}});b(ib,"getTabSize$",function(){var a=8,b=this.getDocument$();null!=b&&(b=b.getProperty$O("tabSize"),null!=b&&(a=b.intValue$()));return a});b(ib,"setLineWrap$Z",function(a){var b=this.wrap;this.wrap=a;this.firePropertyChange$S$Z$Z("lineWrap",b,a)});b(ib,"getLineWrap$",function(){return this.wrap}); +b(ib,"setWrapStyleWord$Z",function(a){var b=this.word;this.word=a;this.firePropertyChange$S$Z$Z("wrapStyleWord",b,a)});b(ib,"getWrapStyleWord$",function(){return this.word});b(ib,"getLineOfOffset$I",function(a){var b=this.getDocument$();if(0>a)throw f(g("javax.swing.text.BadLocationException").c$$S$I,["Can't translate offset to line",-1]);if(a>b.getLength$())throw f(g("javax.swing.text.BadLocationException").c$$S$I,["Can't translate offset to line",b.getLength$()+1]);return this.getDocument$().getDefaultRootElement$().getElementIndex$I(a)}); +b(ib,"getLineCount$",function(){return this.getDocument$().getDefaultRootElement$().getElementCount$()});b(ib,"getLineStartOffset$I",function(a){var b=this.getLineCount$();if(0>a)throw f(g("javax.swing.text.BadLocationException").c$$S$I,["Negative line",-1]);if(a>=b)throw f(g("javax.swing.text.BadLocationException").c$$S$I,["No such line",this.getDocument$().getLength$()+1]);return this.getDocument$().getDefaultRootElement$().getElement$I(a).getStartOffset$()});b(ib,"getLineEndOffset$I",function(a){var b= +this.getLineCount$();if(0>a)throw f(g("javax.swing.text.BadLocationException").c$$S$I,["Negative line",-1]);if(a>=b)throw f(g("javax.swing.text.BadLocationException").c$$S$I,["No such line",this.getDocument$().getLength$()+1]);var c=this.getDocument$().getDefaultRootElement$().getElement$I(a).getEndOffset$();return a==b-1?c-1:c});b(ib,"insert$S$I",function(a,b){var c=this.getDocument$();if(null!=c)try{c.insertString$I$S$javax_swing_text_AttributeSet(b,a,null)}catch(d){if(A(d,"javax.swing.text.BadLocationException"))throw f(g("IllegalArgumentException").c$$S, +[d.getMessage$()]);throw d;}});b(ib,"append$S",function(a){var b=this.getDocument$();if(null!=b)try{b.insertString$I$S$javax_swing_text_AttributeSet(b.getLength$(),a,null)}catch(c){if(!A(c,"javax.swing.text.BadLocationException"))throw c;}});b(ib,"replaceRange$S$I$I",function(a,b,c){if(ca)throw f(g("IllegalArgumentException").c$$S,["rows less than zero."]);a!=b&&(this.rows=a,this.invalidate$())});b(ib,"getRowHeight$",function(){0==this.rowHeight&&(this.rowHeight= +this.getFontMetrics$java_awt_Font(this.getFont$()).getHeight$());return this.rowHeight});b(ib,"getColumns$",function(){return this.columns});b(ib,"setColumns$I",function(a){var b=this.columns;if(0>a)throw f(g("IllegalArgumentException").c$$S,["columns less than zero."]);a!=b&&(this.columns=a,this.invalidate$())});b(ib,"getColumnWidth$",function(){0==this.columnWidth&&(this.columnWidth=this.getFontMetrics$java_awt_Font(this.getFont$()).charWidth$C("m"));return this.columnWidth});b(ib,"getPreferredSize$", +function(){return this.getSizeJS$java_awt_Dimension$I$I$I(this.getPrefSizeJComp$(),400,this.rows,this.columns)});b(ib,"getSizeJS$java_awt_Dimension$I$I$I",function(a,b,c,d){var h=10,g=10;null==a?a=f(yt(2).c$$I$I,[b,b]):(h=a.width,g=a.height);0!=d&&(a.width=Math.max(h,this.getJ2SWidth$I(d)));0!=c&&(b=this.getInsets$(),a.height=Math.max(g,c*this.getRowHeight$()+b.top+b.bottom));return a});b(ib,"getJ2SWidth$I",function(a){var b=this.getInsets$();return a*this.getColumnWidth$()+b.left+b.right});b(ib, +"setFont$java_awt_Font",function(a){ib.superclazz.prototype.setFont$java_awt_Font.apply(this,[a]);this.columnWidth=this.rowHeight=0});b(ib,"paramString$",function(){var a=this.wrap?"true":"false",b=this.word?"true":"false";return ib.superclazz.prototype.paramString$.apply(this,[])+",colums="+this.columns+",columWidth="+this.columnWidth+",rows="+this.rows+",rowHeight="+this.rowHeight+",word="+b+",wrap="+a});b(ib,"getScrollableTracksViewportWidth$",function(){return this.wrap?!0:ib.superclazz.prototype.getScrollableTracksViewportWidth$.apply(this, +[])});b(ib,"getPreferredScrollableViewportSize$",function(){var a=ib.superclazz.prototype.getPreferredScrollableViewportSize$.apply(this,[]),a=null==a?f(yt(2).c$$I$I,[400,400]):a,b=this.getInsets$();a.width=0==this.columns?a.width:this.columns*this.getColumnWidth$()+b.left+b.right;a.height=0==this.rows?a.height:this.rows*this.getRowHeight$()+b.top+b.bottom;return a});b(ib,"getScrollableUnitIncrement$java_awt_Rectangle$I$I",function(a,b){switch(b){case 1:return this.getRowHeight$();case 0:return this.getColumnWidth$(); +default:throw f(g("IllegalArgumentException").c$$S,["Invalid orientation: "+b]);}});n("3.2.4.07");var rq=q("javax.swing"),up={},zt=[[0,"javax.swing.AbstractAction","javax.swing.Action",["javax.swing.JTextField",".NotifyAction"],"Boolean","javax.swing.text.PlainDocument","java.awt.event.ActionListener","java.awt.EventQueue","java.awt.event.ActionEvent",["javax.swing.JTextField",".TextFieldActionPropertyChangeListener"],"javax.swing.text.TextAction"]],jf=function(a){return zt[a]||(zt[a]=g(zt[0][a]))}, +Ua=j(rq,"JTextField",function(){m(this,arguments,0,Ua)},"javax.swing.text.JTextComponent","javax.swing.SwingConstants");Ua.defaultActions=null;Ua.$clinit$=function(){g(Ua,1);Ua.defaultActions=l(jf(2),-1,[f(jf(3))])};b(Ua,"$init0$",function(){var a;(a=Ua.superclazz)&&(a=a.$init0$)&&a.apply(this);this.actionPropertyChangeListener=this.action=null;this.columnWidth=this.columns=this.horizontalAlignment=0;this.command=null},1);b(Ua,"$init$",function(){this.horizontalAlignment=10},1);b(Ua,"c$",function(){Ua.c$$javax_swing_text_Document$S$I.apply(this, +[null,null,0])},1);b(Ua,"c$$S",function(a){Ua.c$$javax_swing_text_Document$S$I.apply(this,[null,a,0])},1);b(Ua,"c$$I",function(a){Ua.c$$javax_swing_text_Document$S$I.apply(this,[null,null,a])},1);b(Ua,"c$$S$I",function(a,b){Ua.c$$javax_swing_text_Document$S$I.apply(this,[null,a,b])},1);b(Ua,"c$$javax_swing_text_Document$S$I",function(a,b,c){S(Ua,this,1);if(0>c)throw f(g("IllegalArgumentException").c$$S,["columns less than zero."]);this.columns=c;null==a&&(a=this.createDefaultModel$());this.setDocument$javax_swing_text_Document(a); +null!=b&&this.setText$S(b)},1);b(Ua,"getUIClassID$",function(){return"TextFieldUI"});b(Ua,"setDocument$javax_swing_text_Document",function(a){null!=a&&a.putProperty$O$O("filterNewlines",jf(4).TRUE);Ua.superclazz.prototype.setDocument$javax_swing_text_Document.apply(this,[a])});b(Ua,"isValidateRoot$",function(){var a=this.getParent$();return k(a,"javax.swing.JViewport")?!1:!0});b(Ua,"getHorizontalAlignment$",function(){return this.horizontalAlignment});b(Ua,"setHorizontalAlignment$I",function(a){if(a!= +this.horizontalAlignment){var b=this.horizontalAlignment;if(2==a||0==a||4==a||10==a||11==a)this.horizontalAlignment=a;else throw f(g("IllegalArgumentException").c$$S,["horizontalAlignment"]);this.firePropertyChange$S$I$I("horizontalAlignment",b,this.horizontalAlignment);this.invalidate$();this.\u79d8repaint$()}});b(Ua,"createDefaultModel$",function(){return f(jf(5))});b(Ua,"getColumns$",function(){return this.columns});b(Ua,"setColumns$I",function(a){var b=this.columns;if(0>a)throw f(g("IllegalArgumentException").c$$S, +["columns less than zero."]);a!=b&&(this.columns=a,this.invalidate$())});b(Ua,"getColumnWidth$",function(){0==this.columnWidth&&(this.columnWidth=this.getFontMetrics$java_awt_Font(this.getFont$()).charWidth$C("m"));return this.columnWidth});b(Ua,"getPreferredSize$",function(){return this.getPrefSizeJTF$()});b(Ua,"getPrefSizeJTF$",function(){return this.getPrefSizeJTF$I(this.columns)});b(Ua,"getPrefSizeJTF$I",function(a){var b=!this.isPreferredSizeSet$()&&null!=this.ui?this.ui.getPreferredSize$javax_swing_JComponent(this): +null;null==b&&(b=Ua.superclazz.prototype.preferredSize$.apply(this,[]));0!=a&&(b.width=this.getJ2SWidth$I(a));return b});b(Ua,"getJ2SWidth$I",function(a){var b=this.getInsets$();return a*this.getColumnWidth$()+b.left+b.right});b(Ua,"getMinimumSizeJTF$I",function(a){var b=Ua.superclazz.prototype.getMinimumSize$.apply(this,[]);0!=a&&(b.width=this.getJ2SWidth$I(a));return b});b(Ua,"setFont$java_awt_Font",function(a){Ua.superclazz.prototype.setFont$java_awt_Font.apply(this,[a]);this.columnWidth=0});b(Ua, +"addActionListener$java_awt_event_ActionListener",function(a){this.listenerList.add$Class$TT(x(jf(6),["actionPerformed$java_awt_event_ActionEvent"]),a)});b(Ua,"removeActionListener$java_awt_event_ActionListener",function(a){null!=a&&this.getAction$()===a?this.setAction$javax_swing_Action(null):this.listenerList.remove$Class$TT(x(jf(6),["actionPerformed$java_awt_event_ActionEvent"]),a)});b(Ua,"getActionListeners$",function(){return this.listenerList.getListeners$Class(x(jf(6),["actionPerformed$java_awt_event_ActionEvent"]))}); +b(Ua,"fireActionPerformed$",function(){var a=this.listenerList.getListenerList$(),b=0,c=jf(7).getCurrentEvent$();k(c,"java.awt.event.InputEvent")?b=c.getModifiers$():k(c,"java.awt.event.ActionEvent")&&(b=c.getModifiers$());b=f(jf(8).c$$O$I$S$J$I,[this,1001,null!=this.command?this.command:this.getText$(),jf(7).getMostRecentEventTime$(),b]);for(c=a.length-2;0<=c;c-=2)a[c]===x(jf(6),["actionPerformed$java_awt_event_ActionEvent"])&&a[c+1].actionPerformed$(b)});b(Ua,"setActionCommand$S",function(a){this.command= +a});b(Ua,"setAction$javax_swing_Action",function(a){var b=this.getAction$();if(null==this.action||!this.action.equals$O(a))this.action=a,null!=b&&(this.removeActionListener$java_awt_event_ActionListener(b),b.removePropertyChangeListener$java_beans_PropertyChangeListener(this.actionPropertyChangeListener),this.actionPropertyChangeListener=null),this.configurePropertiesFromAction$javax_swing_Action(this.action),null!=this.action&&(up.isListener$Class$java_awt_event_ActionListener.apply(this,[x(jf(6), +["actionPerformed$java_awt_event_ActionEvent"]),this.action])||this.addActionListener$java_awt_event_ActionListener(this.action),this.actionPropertyChangeListener=this.createActionPropertyChangeListener$javax_swing_Action(this.action),this.action.addPropertyChangeListener$java_beans_PropertyChangeListener(this.actionPropertyChangeListener)),this.firePropertyChange$S$O$O("action",b,this.action)});b(Ua,"isListener$Class$java_awt_event_ActionListener",function(a,b){for(var c=!1,d=this.listenerList.getListenerList$(), +h=d.length-2;0<=h;h-=2)d[h]===a&&d[h+1]===b&&(c=!0);return c},up);b(Ua,"getAction$",function(){return this.action});b(Ua,"configurePropertiesFromAction$javax_swing_Action",function(a){jf(1).setEnabledFromAction$javax_swing_JComponent$javax_swing_Action(this,a);jf(1).setToolTipTextFromAction$javax_swing_JComponent$javax_swing_Action(this,a);up.setActionCommandFromAction$javax_swing_Action.apply(this,[a])});b(Ua,"actionPropertyChanged$javax_swing_Action$S",function(a,b){"ActionCommandKey"==b?up.setActionCommandFromAction$javax_swing_Action.apply(this, +[a]):"enabled"==b?jf(1).setEnabledFromAction$javax_swing_JComponent$javax_swing_Action(this,a):"ShortDescription"==b&&jf(1).setToolTipTextFromAction$javax_swing_JComponent$javax_swing_Action(this,a)});b(Ua,"setActionCommandFromAction$javax_swing_Action",function(a){this.setActionCommand$S(null==a?null:a.getValue$S("ActionCommandKey"))},up);b(Ua,"createActionPropertyChangeListener$javax_swing_Action",function(a){return f(jf(9).c$$javax_swing_JTextField$javax_swing_Action,[this,a])});b(Ua,"getActions$", +function(){return jf(10).augmentList$javax_swing_ActionA$javax_swing_ActionA(Ua.superclazz.prototype.getActions$.apply(this,[]),Ua.defaultActions)});b(Ua,"postActionEvent$",function(){this.fireActionPerformed$()});b(Ua,"hasActionListener$",function(){for(var a=this.listenerList.getListenerList$(),b=a.length-2;0<=b;b-=2)if(a[b]===x(jf(6),["actionPerformed$java_awt_event_ActionEvent"]))return!0;return!1});b(Ua,"paramString$",function(){var a;a=2==this.horizontalAlignment?"LEFT":0==this.horizontalAlignment? +"CENTER":4==this.horizontalAlignment?"RIGHT":10==this.horizontalAlignment?"LEADING":11==this.horizontalAlignment?"TRAILING":"";var b=null!=this.command?this.command:"";return Ua.superclazz.prototype.paramString$.apply(this,[])+",columns="+this.columns+",columnWidth="+this.columnWidth+",command="+b+",horizontalAlignment="+a});var Ol=j(rq.JTextField,"TextFieldActionPropertyChangeListener",function(a){m(this,a,!1,Ol)},"javax.swing.ActionPropertyChangeListener");Ol.$clinit$=function(){g(Ol,1)};b(Ol,"$init$", +function(){},1);b(Ol,"c$$javax_swing_JTextField$javax_swing_Action",function(a,b){Ol.superclazz.c$$TT$javax_swing_Action.apply(this,[a,b]);Ol.$init$.apply(this)},1);b(Ol,["actionPropertyChanged$javax_swing_JTextField$javax_swing_Action$java_beans_PropertyChangeEvent","actionPropertyChanged$TT$javax_swing_Action$java_beans_PropertyChangeEvent"],function(a,b,c){jf(1).shouldReconfigure$java_beans_PropertyChangeEvent(c)?a.configurePropertiesFromAction$javax_swing_Action(b):a.actionPropertyChanged$javax_swing_Action$S(b, +c.getPropertyName$())});b(Ol);var Pl=j(rq.JTextField,"NotifyAction",function(a){m(this,a,!1,Pl)},"javax.swing.text.TextAction");Pl.$clinit$=function(){g(Pl,1)};b(Pl,"$init$",function(){},1);b(Pl,"c$",function(){Pl.superclazz.c$$S.apply(this,["notify-field-accept"]);Pl.$init$.apply(this)},1);b(Pl,["actionPerformed$java_awt_event_ActionEvent","actionPerformed$"],function(a){a=a.getSource$();k(a,"javax.swing.JTextField")&&a.postActionEvent$()});b(Pl,"isEnabled$",function(){var a=this.getFocusedComponent$(); +return k(a,"javax.swing.JTextField")?a.hasActionListener$():!1});var Go=j(rq.JTextField,"ScrollRepainter",function(a){m(this,a,!0,Go)},null,"javax.swing.event.ChangeListener");Go.$clinit$=function(){g(Go,1)};b(Go,"$init$",function(){},1);b(Go,["stateChanged$javax_swing_event_ChangeEvent","stateChanged$"],function(){this.b$["java.awt.JSComponent"].\u79d8repaint$.apply(this.b$["java.awt.JSComponent"],[])});b(Go);n("3.2.4.07");var Bw=q("javax.swing"),At=[[0,"java.awt.event.ItemEvent","java.awt.EventQueue", +"java.awt.event.ActionEvent",["javax.swing.JToggleButton",".ToggleButtonModel"]]],vp=function(a){return At[a]||(At[a]=g(At[0][a]))},Xd=j(Bw,"JToggleButton",function(){m(this,arguments,0,Xd)},"javax.swing.AbstractButton");Xd.$clinit$=function(){g(Xd,1)};b(Xd,"$init$",function(){},1);b(Xd,"c$",function(){Xd.c$$S$javax_swing_Icon$Z.apply(this,[null,null,!1])},1);b(Xd,"c$$javax_swing_Icon",function(a){Xd.c$$S$javax_swing_Icon$Z.apply(this,[null,a,!1])},1);b(Xd,"c$$javax_swing_Icon$Z",function(a,b){Xd.c$$S$javax_swing_Icon$Z.apply(this, +[null,a,b])},1);b(Xd,"c$$S",function(a){Xd.c$$S$javax_swing_Icon$Z.apply(this,[a,null,!1])},1);b(Xd,"c$$S$Z",function(a,b){Xd.c$$S$javax_swing_Icon$Z.apply(this,[a,null,b])},1);b(Xd,"c$$javax_swing_Action",function(a){Xd.c$.apply(this,[]);this.setAction$javax_swing_Action(a)},1);b(Xd,"c$$S$javax_swing_Icon",function(a,b){Xd.c$$S$javax_swing_Icon$Z.apply(this,[a,b,!1])},1);b(Xd,"c$$S$javax_swing_Icon$Z",function(a,b,c){S(Xd,this,1);this.setModel$();this.model.setSelected$Z(c);this.init$S$javax_swing_Icon(a, +b);this.setOpaque$Z(!0)},1);b(Xd,"setModel$",function(){this.setModel$javax_swing_ButtonModel(f(vp(4)))});b(Xd,"getUIClassID$",function(){return"ToggleButtonUI"});b(Xd,"shouldUpdateSelectedStateFromAction$",function(){return!0});b(Xd,"paramString$",function(){return Xd.superclazz.prototype.paramString$.apply(this,[])});var Ql=j(Bw.JToggleButton,"ToggleButtonModel",function(a){m(this,a,!1,Ql)},"javax.swing.DefaultButtonModel");Ql.$clinit$=function(){g(Ql,1)};b(Ql,"$init$",function(){},1);b(Ql,"c$", +function(){S(Ql,this,1)},1);b(Ql,"isSelected$",function(){return 0!=(this.stateMask&2)});b(Ql,"setSelected$Z",function(a){var b=this.getGroup$();null!=b&&(b.setSelected$javax_swing_ButtonModel$Z(this,a),a=b.isSelected$javax_swing_ButtonModel(this));this.isSelected$()!=a&&(this.stateMask=a?this.stateMask|2:this.stateMask&-3,this.fireStateChanged$(),this.fireItemStateChanged$java_awt_event_ItemEvent(f(vp(1).c$$java_awt_ItemSelectable$I$O$I,[this,701,this,this.isSelected$()?1:2])))});b(Ql,"setPressed$Z", +function(a){if(this.isPressed$()!=a&&this.isEnabled$()&&(!a&&this.isArmed$()&&this.setSelected$Z(!this.isSelected$()),this.stateMask=a?this.stateMask|4:this.stateMask&-5,this.fireStateChanged$(),!this.isPressed$()&&this.isArmed$())){a=0;var b=vp(2).getCurrentEvent$();k(b,"java.awt.event.InputEvent")?a=b.getModifiers$():k(b,"java.awt.event.ActionEvent")&&(a=b.getModifiers$());this.fireActionPerformed$java_awt_event_ActionEvent(f(vp(3).c$$O$I$S$J$I,[this,1001,this.getActionCommand$(),vp(2).getMostRecentEventTime$(), +a]))}});n("3.2.4.07");var Bt=q("javax.swing"),Ub={},Ct=[[0,"javax.swing.RepaintManager","java.awt.Insets","java.awt.Point","java.awt.Dimension","java.awt.Rectangle","javax.swing.JComponent","javax.swing.SwingUtilities",["javax.swing.JViewport",".ViewListener"],"javax.swing.ViewportLayout","javax.swing.event.ChangeListener","javax.swing.event.ChangeEvent","java.awt.JSComponent"]],Qc=function(a){return Ct[a]||(Ct[a]=g(Ct[0][a]))},xa=j(Bt,"JViewport",function(){m(this,arguments,0,xa)},"javax.swing.JComponent", +[["java.awt.JSComponent","java.awt.JSComponent.A2SComponentWrapper"]]);xa.EnableWindowBlit=null;xa.$clinit$=function(){g(xa,1);xa.EnableWindowBlit="EnableWindowBlit"};b(xa,"$init0$",function(){var a;(a=xa.superclazz)&&(a=a.$init0$)&&a.apply(this);this.isViewSizeSet=!1;this.lastPaintPosition=null;this.backingStore=!1;this.backingStoreImage=null;this.scrollUnderway=!1;this.changeEvent=this.viewListener=null;this.scrollMode=0;this.hasHadValidView=this.inBlitPaint=this.waitingForRepaint=this.repaintAll= +!1},1);b(xa,"$init$",function(){this.isViewSizeSet=!1;this.lastPaintPosition=null;this.backingStore=!1;this.backingStoreImage=null;this.scrollUnderway=!1;this.changeEvent=this.viewListener=null;this.scrollMode=1},1);b(xa,"\u79d8isWrapper$",function(){});b(xa,"c$",function(){xa.superclazz.c$.apply(this,[]);xa.$init$.apply(this);this.setLayout$java_awt_LayoutManager(this.createLayoutManager$());this.setOpaque$Z(!0);this.updateUI$();this.setInheritsPopupMenu$Z(!0)},1);b(xa,"getUIClassID$",function(){return"ViewportUI"}); +b(xa,"addImpl$java_awt_Component$O$I",function(a){this.setView$java_awt_Component(a)});b(xa,"remove$java_awt_Component",function(a){a.removeComponentListener$java_awt_event_ComponentListener(this.viewListener);xa.superclazz.prototype.remove$java_awt_Component.apply(this,[a])});b(xa,"scrollRectToVisible$java_awt_Rectangle",function(a){var b=this.getView$();if(null!=b){b.isValid$()||Ub.validateView.apply(this,[]);var c=0,d=0,c=Ub.positionAdjustment$I$I$I.apply(this,[this.getWidth$(),a.width,a.x]),d= +Ub.positionAdjustment$I$I$I.apply(this,[this.getHeight$(),a.height,a.y]);if(0!=c||0!=d){a=this.getViewPosition$();var h=b.getSize$(),f=a.x,g=a.y,j=this.getExtentSize$();a.x-=c;a.y-=d;b.isValid$()&&(this.getParent$().getComponentOrientation$().isLeftToRight$()?a.x+j.width>h.width?a.x=Math.max(0,h.width-j.width):0>a.x&&(a.x=0):a.x=j.width>h.width?h.width-j.width:Math.max(0,Math.min(h.width-j.width,a.x)),a.y+j.height>h.height?a.y=Math.max(0,h.height-j.height):0>a.y&&(a.y=0));if(a.x!=f||a.y!=g)this.setViewPosition$java_awt_Point(a), +this.scrollUnderway=!1}}});b(xa,"validateView",function(){for(var a=null,b=this;null!=b;b=b.getParent$()){if(k(b,"javax.swing.CellRendererPane")||!b.isLightweight$())return;if(k(b,"javax.swing.JComponent")&&b.isValidateRoot$()){a=b;break}}if(null!=a){for(var c=null,b=a;null!=b;b=b.getParent$()){if(!b.isLightweight$())return;if(b.isWindowOrJSApplet$()){c=b;break}}null!=c&&(a.validate$(),b=Qc(1).currentManager$javax_swing_JComponent(this),null!=b&&b.removeInvalidComponent$javax_swing_JComponent(a))}}, +Ub);b(xa,"positionAdjustment$I$I$I",function(a,b,c){return 0<=c&&b+c<=a||0>=c&&b+c>=a?0:0=a||0>=c&&b<=a?-c:0>c&&b>=a?-c+a-b:0},Ub);b(xa,"setBorder$javax_swing_border_Border",function(a){if(null!=a)throw f(g("IllegalArgumentException").c$$S,["JViewport.setBorder() not supported"]);});b(xa,"getInsets$",function(){return f(Qc(2).c$$I$I$I$I,[1,1,1,1])});b(xa,"getInsets$java_awt_Insets",function(a){a.left=a.top=a.right=a.bottom=0;return a});b(xa,"getBackingStoreGraphics$java_awt_Graphics", +function(a){var b=this.backingStoreImage.getGraphics$();b.setColor$java_awt_Color(a.getColor$());b.setFont$java_awt_Font(a.getFont$());b.setClip$java_awt_Shape(a.getClipBounds$());return b},Ub);b(xa,"paintViaBackingStore$java_awt_Graphics",function(a){var b=Ub.getBackingStoreGraphics$java_awt_Graphics.apply(this,[a]);try{xa.superclazz.prototype.paint$java_awt_Graphics.apply(this,[b]),a.drawImagePriv$java_awt_Image$I$I$java_awt_image_ImageObserver(this.backingStoreImage,0,0,this)}finally{b.dispose$()}}, +Ub);b(xa,"paintViaBackingStore$java_awt_Graphics$java_awt_Rectangle",function(a,b){var c=Ub.getBackingStoreGraphics$java_awt_Graphics.apply(this,[a]);try{xa.superclazz.prototype.paint$java_awt_Graphics.apply(this,[c]),a.setClip$java_awt_Shape(b),a.drawImagePriv$java_awt_Image$I$I$java_awt_image_ImageObserver(this.backingStoreImage,0,0,this)}finally{c.dispose$()}},Ub);b(xa,"isOptimizedDrawingEnabled$",function(){return!1});b(xa,"isPaintingOrigin$",function(){return 2==this.scrollMode?!0:!1});b(xa, +"getViewLocation",function(){var a=this.getView$();return null!=a?a.getLocation$():f(Qc(3).c$$I$I,[0,0])},Ub);b(xa,"paint$java_awt_Graphics",function(a){var b=this.getWidth$(),c=this.getHeight$();if(!(0>=b||0>=c))if(this.inBlitPaint)xa.superclazz.prototype.paint$java_awt_Graphics.apply(this,[a]);else{if(this.repaintAll)this.repaintAll=!1;else if(this.waitingForRepaint){var d=a.getClipBounds$();d.width>=this.getWidth$()&&d.height>=this.getHeight$()&&(this.waitingForRepaint=!1)}if(!this.backingStore|| +Ub.isBlitting.apply(this,[])||null==this.getView$())xa.superclazz.prototype.paint$java_awt_Graphics.apply(this,[a]),this.lastPaintPosition=Ub.getViewLocation.apply(this,[]);else{d=this.getView$().getBounds$();this.isOpaque$()||a.clipRect$I$I$I$I(0,0,d.width,d.height);if(null==this.backingStoreImage){this.backingStoreImage=this.createImage$I$I(b,c);var h=a.getClipBounds$();h.width!=b||h.height!=c?(this.isOpaque$()?a.setClip$I$I$I$I(0,0,b,c):a.setClip$I$I$I$I(0,0,Math.min(d.width,b),Math.min(d.height, +c)),Ub.paintViaBackingStore$java_awt_Graphics$java_awt_Rectangle.apply(this,[a,h])):Ub.paintViaBackingStore$java_awt_Graphics.apply(this,[a])}else if(!this.scrollUnderway||this.lastPaintPosition.equals$O(Ub.getViewLocation.apply(this,[])))Ub.paintViaBackingStore$java_awt_Graphics.apply(this,[a]);else{var g=f(Qc(3)),h=f(Qc(3)),j=f(Qc(4)),p=f(Qc(5)),k=Ub.getViewLocation.apply(this,[]);if(this.computeBlit$I$I$java_awt_Point$java_awt_Point$java_awt_Dimension$java_awt_Rectangle(k.x-this.lastPaintPosition.x, +k.y-this.lastPaintPosition.y,g,h,j,p)){var k=h.x-g.x,l=h.y-g.y,h=a.getClipBounds$();a.setClip$I$I$I$I(0,0,b,c);b=Ub.getBackingStoreGraphics$java_awt_Graphics.apply(this,[a]);try{b.copyArea$I$I$I$I$I$I(g.x,g.y,j.width,j.height,k,l);a.setClip$I$I$I$I(h.x,h.y,h.width,h.height);var m=d.intersection$java_awt_Rectangle(p);b.setClip$java_awt_Shape(m);xa.superclazz.prototype.paint$java_awt_Graphics.apply(this,[b]);a.drawImagePriv$java_awt_Image$I$I$java_awt_image_ImageObserver(this.backingStoreImage,0,0, +this)}finally{b.dispose$()}}else Ub.paintViaBackingStore$java_awt_Graphics.apply(this,[a])}this.lastPaintPosition=Ub.getViewLocation.apply(this,[]);this.scrollUnderway=!1}}});b(xa,"reshape$I$I$I$I",function(a,b,c,d){var h=this.getWidth$()!=c||this.getHeight$()!=d;h&&(this.backingStoreImage=null);xa.superclazz.prototype.reshape$I$I$I$I.apply(this,[a,b,c,d]);h&&this.fireStateChanged$()});b(xa,"setScrollMode$I",function(a){this.scrollMode=a;this.backingStore=2==a?!0:!1});b(xa,"getScrollMode$",function(){return this.scrollMode}); +b(xa,"isBackingStoreEnabled$",function(){return 2==this.scrollMode});b(xa,"setBackingStoreEnabled$Z",function(a){a?this.setScrollMode$I(2):this.setScrollMode$I(1)});b(xa,"isBlitting",function(){var a=this.getView$();return 1==this.scrollMode&&k(a,"javax.swing.JComponent")&&a.isOpaque$()},Ub);b(xa,"getView$",function(){return 0=this.getWidth$()){var d= +c.getX$(),h=c.getY$();a.translate$I$I(d,h);a.setClip$I$I$I$I(b.x-d,b.y-h,b.width,b.height);c.paintForceDoubleBuffered$java_awt_Graphics(a);a.translate$I$I(-d,-h);a.setClip$I$I$I$I(b.x,b.y,b.width,b.height)}else try{this.inBlitPaint=!0,this.paintForceDoubleBuffered$java_awt_Graphics(a)}finally{this.inBlitPaint=!1}},Ub);b(xa,"canUseWindowBlitter",function(){if(!this.isShowing$()||!k(this.getParent$(),"javax.swing.JComponent")&&!k(this.getView$(),"javax.swing.JComponent")||this.isPainting$())return!1; +var a=Qc(1).currentManager$javax_swing_JComponent(this).getDirtyRegion$javax_swing_JComponent(this.getParent$());if(null!=a&&0=d||0>=h||null==a||0>=a.getWidth$()||0>=a.getHeight$())&&!Ac.extendDirtyRegion$java_awt_Component$I$I$I$I.apply(this,[a,b,c,d,h])){for(var g=null,j=a;null!=j;j=j.getParent$()){if(!j.isVisible$()||null==j.getPeer$())return;if(j.isWindowOrJSApplet$()){if(k(j,"java.awt.JSFrame")&&1==(j.getExtendedState$()&1))return;g=j;break}}null!=g&& +!Ac.extendDirtyRegion$java_awt_Component$I$I$I$I.apply(this,[a,b,c,d,h])&&(this.dirtyComponents.put$TK$TV(a,f(Bc(2).c$$I$I$I$I,[b,c,d,h])),Ac.scheduleProcessingRunnable$java_awt_Component.apply(this,[a]))}},Ac);b(Ba,"addDirtyRegion$javax_swing_JComponent$I$I$I$I",function(a,b,c,d,h){Ac.addDirtyRegion0$java_awt_Container$I$I$I$I.apply(this,[a,b,c,d,h])});b(Ba,"addDirtyRegion$java_awt_Window$I$I$I$I",function(a,b,c,d,h){Ac.addDirtyRegion0$java_awt_Container$I$I$I$I.apply(this,[a,b,c,d,h])});b(Ba,"addDirtyRegion$java_applet_JSApplet$I$I$I$I", +function(a,b,c,d,h){Ac.addDirtyRegion0$java_awt_Container$I$I$I$I.apply(this,[a,b,c,d,h])});b(Ba,"scheduleHeavyWeightPaints$",function(){var a;if(0!=this.hwDirtyComponents.size$()){a=this.hwDirtyComponents;this.hwDirtyComponents=f(Bc(6));for(var b,c=a.keySet$().iterator$();c.hasNext$()&&(b=c.next$(),1);){var d=a.get$O(b);b.isWindowOrJSApplet$()?this.addDirtyRegion$java_awt_Window$I$I$I$I(b,d.x,d.y,d.width,d.height):Ac.addDirtyRegion0$java_awt_Container$I$I$I$I.apply(this,[b,d.x,d.y,d.width,d.height])}}}); +b(Ba,"nativeAddDirtyRegion$sun_awt_AppContext$java_awt_Container$I$I$I$I",function(a,b,c,d,h,g){if(0=c;d--){for(var h=b.get$I(d);!(h===a||null==h||!Ac.isStandardJComponent$java_awt_Component.apply(this,[h]));)h=h.getParent$();h===a&&b.removeItemAt$I(d)}},Ac);b(Ba,"collectDirtyComponents$java_util_Map$java_awt_Component$java_util_List", +function(a,b,c){var d,h,f,g,j,k;j=k=b;var l=b.getX$(),m=b.getY$(),n=b.getWidth$(),q=b.getHeight$();h=g=d=f=0;this.tmp.setBounds$java_awt_Rectangle(a.get$O(b));Bc(4).computeIntersection$I$I$I$I$java_awt_Rectangle(0,0,n,q,this.tmp);if(!this.tmp.isEmpty$()){for(;Ac.isStandardJComponent$java_awt_Component.apply(this,[j]);){j=j.getParent$();if(null==j)break;d+=l;h+=m;this.tmp.x+=l;this.tmp.y+=m;l=j.getX$();m=j.getY$();n=j.getWidth$();q=j.getHeight$();this.tmp=Bc(4).computeIntersection$I$I$I$I$java_awt_Rectangle(0, +0,n,q,this.tmp);if(this.tmp.isEmpty$())return;null!=a.get$O(j)&&(k=j,f=d,g=h)}b!==k&&(this.tmp.x+=f-d,this.tmp.y+=g-h,a=a.get$O(k),Bc(4).computeUnion$I$I$I$I$java_awt_Rectangle(this.tmp.x,this.tmp.y,this.tmp.width,this.tmp.height,a));c.contains$O(k)||c.add$TE(k)}});b(Ba,"toString",function(){var a=f(Bc(11));null!=this.dirtyComponents&&a.append$S(""+this.dirtyComponents);return a.toString()});b(Ba,"getOffscreenBuffer$java_awt_Component$I$I",function(){return null});b(Ba,"getVolatileOffscreenBuffer$java_awt_Component$I$I", +function(a,b,c){a=a.getGraphicsConfiguration$();var d=this.getDoubleBufferMaximumSize$();b=1>b?1:b>d.width?d.width:b;c=1>c?1:c>d.height?d.height:c;d=this.volatileMap.get$O(a);if(null==d||d.getWidth$()d.height&&(c+=this.vsb.getPreferredSize$().width)));null!=this.hsb&&31!=this.hsbPolicy&& +(32==this.hsbPolicy?b+=this.hsb.getPreferredSize$().height:null!=h&&null!=d&&(a=!0,k(g,"javax.swing.Scrollable")&&(a=!g.getScrollableTracksViewportWidth$()),a&&h.width>d.width&&(b+=this.hsb.getPreferredSize$().height)));return f(pj(1).c$$I$I,[c,b])});b(zd,"minimumLayoutSize$java_awt_Container",function(a){this.vsbPolicy=a.getVerticalScrollBarPolicy$();this.hsbPolicy=a.getHorizontalScrollBarPolicy$();var b=a.getInsets$(),c=b.left+b.right,b=b.top+b.bottom;if(null!=this.viewport)var d=this.viewport.getMinimumSize$(), +c=c+d.width,b=b+d.height;d=a.getViewportBorder$();null!=d&&(a=d.getBorderInsets$java_awt_Component(a),c+=a.left+a.right,b+=a.top+a.bottom);null!=this.rowHead&&this.rowHead.isVisible$()&&(d=this.rowHead.getMinimumSize$(),c+=d.width,b=Math.max(b,d.height));null!=this.colHead&&this.colHead.isVisible$()&&(d=this.colHead.getMinimumSize$(),c=Math.max(c,d.width),b+=d.height);null!=this.vsb&&21!=this.vsbPolicy&&(d=this.vsb.getMinimumSize$(),c+=d.width,b=Math.max(b,d.height));null!=this.hsb&&31!=this.hsbPolicy&& +(d=this.hsb.getMinimumSize$(),c=Math.max(c,d.width),b+=d.height);return f(pj(1).c$$I$I,[c,b])});b(zd,"layoutContainer$java_awt_Container",function(a){this.vsbPolicy=a.getVerticalScrollBarPolicy$();this.hsbPolicy=a.getHorizontalScrollBarPolicy$();var b=a.getBounds$();b.x=b.y=0;var c=a.getInsets$();b.x=c.left;b.y=c.top;b.width-=c.left+c.right;b.height-=c.top+c.bottom;var c=pj(2).isLeftToRight$java_awt_Component(a),d=f(pj(3).c$$I$I$I$I,[0,b.y,0,0]);if(null!=this.colHead&&this.colHead.isVisible$()){var h= +Math.min(b.height,this.colHead.getPreferredSize$().height);d.height=h;b.y+=h;b.height-=h}h=f(pj(3).c$$I$I$I$I,[0,0,0,0]);if(null!=this.rowHead&&this.rowHead.isVisible$()){var g=Math.min(b.width,this.rowHead.getPreferredSize$().width);h.width=g;b.width-=g;c?(h.x=b.x,b.x+=g):h.x=b.x+b.width}g=a.getViewportBorder$();null!=g?(a=g.getBorderInsets$java_awt_Component(a),b.x+=a.left,b.y+=a.top,b.width-=a.left+a.right,b.height-=a.top+a.bottom):a=f(pj(4).c$$I$I$I$I,[0,0,0,0]);var j=null!=this.viewport?this.viewport.getView$(): +null,g=null!=j?j.getPreferredSize$():f(pj(1).c$$I$I,[0,0]),p=null!=this.viewport?this.viewport.toViewCoordinates$java_awt_Dimension(b.getSize$()):f(pj(1).c$$I$I,[0,0]),l=!1,m=!1,n=0>b.width||0>b.height,q;!n&&k(j,"javax.swing.Scrollable")?(q=j,l=q.getScrollableTracksViewportWidth$(),m=q.getScrollableTracksViewportHeight$()):q=null;var r=f(pj(3).c$$I$I$I$I,[0,b.y-a.top,0,0]),t=k(j,"javax.swing.JEditorPane")||k(j,"javax.swing.JTextArea"),j=n||t?!1:22==this.vsbPolicy?!0:21==this.vsbPolicy?!1:!m&&g.height> +p.height;null!=this.vsb&&j&&(Cm.adjustForVSB$Z$java_awt_Rectangle$java_awt_Rectangle$java_awt_Insets$Z.apply(this,[!0,b,r,a,c]),p=this.viewport.toViewCoordinates$java_awt_Dimension(b.getSize$()));var v=f(pj(3).c$$I$I$I$I,[b.x-a.left,0,0,0]),n=n||t?!1:32==this.hsbPolicy?!0:31==this.hsbPolicy?!1:!l&&g.width>p.width;null!=this.hsb&&n&&(Cm.adjustForHSB$Z$java_awt_Rectangle$java_awt_Rectangle$java_awt_Insets.apply(this,[!0,b,v,a]),null!=this.vsb&&(!j&&21!=this.vsbPolicy)&&(p=this.viewport.toViewCoordinates$java_awt_Dimension(b.getSize$()), +(j=g.height>p.height)&&Cm.adjustForVSB$Z$java_awt_Rectangle$java_awt_Rectangle$java_awt_Insets$Z.apply(this,[!0,b,r,a,c])));if(null!=this.viewport&&(this.viewport.setBounds$java_awt_Rectangle(b),null!=q)){var p=this.viewport.toViewCoordinates$java_awt_Dimension(b.getSize$()),t=n,u=j,l=q.getScrollableTracksViewportWidth$(),m=q.getScrollableTracksViewportHeight$();null!=this.vsb&&20==this.vsbPolicy&&(m=!m&&g.height>p.height,m!=j&&(j=m,Cm.adjustForVSB$Z$java_awt_Rectangle$java_awt_Rectangle$java_awt_Insets$Z.apply(this, +[j,b,r,a,c]),p=this.viewport.toViewCoordinates$java_awt_Dimension(b.getSize$())));null!=this.hsb&&30==this.hsbPolicy&&(p=!l&&g.width>p.width,p!=n&&(n=p,Cm.adjustForHSB$Z$java_awt_Rectangle$java_awt_Rectangle$java_awt_Insets.apply(this,[n,b,v,a]),null!=this.vsb&&(!j&&21!=this.vsbPolicy)&&(p=this.viewport.toViewCoordinates$java_awt_Dimension(b.getSize$()),(j=g.height>p.height)&&Cm.adjustForVSB$Z$java_awt_Rectangle$java_awt_Rectangle$java_awt_Insets$Z.apply(this,[!0,b,r,a,c]))));(t!=n||u!=j)&&this.viewport.setBounds$java_awt_Rectangle(b)}r.height= +b.height+a.top+a.bottom;v.width=b.width+a.left+a.right;h.height=b.height+a.top+a.bottom;h.y=b.y-a.top;d.width=b.width+a.left+a.right;d.x=b.x-a.left;null!=this.rowHead&&this.rowHead.setBounds$java_awt_Rectangle(h);null!=this.colHead&&this.colHead.setBounds$java_awt_Rectangle(d);if(null!=this.vsb)if(j){if(null!=this.colHead&&pj(5).getBoolean$O("ScrollPane.fillUpperCorner")&&(c&&null==this.upperRight||!c&&null==this.upperLeft))r.y=d.y,r.height+=d.height;this.vsb.setVisible$Z(!0);this.vsb.setBounds$java_awt_Rectangle(r)}else this.vsb.setVisible$Z(!1); +if(null!=this.hsb)if(n){if(null!=this.rowHead&&pj(5).getBoolean$O("ScrollPane.fillLowerCorner")&&(c&&null==this.lowerLeft||!c&&null==this.lowerRight))c&&(v.x=h.x),v.width+=h.width;this.hsb.setVisible$Z(!0);this.hsb.setBounds$java_awt_Rectangle(v)}else this.hsb.setVisible$Z(!1);null!=this.lowerLeft&&this.lowerLeft.setBounds$I$I$I$I(c?h.x:r.x,v.y,c?h.width:r.width,v.height);null!=this.lowerRight&&this.lowerRight.setBounds$I$I$I$I(c?r.x:h.x,v.y,c?r.width:h.width,v.height);null!=this.upperLeft&&this.upperLeft.setBounds$I$I$I$I(c? +h.x:r.x,d.y,c?h.width:r.width,d.height);null!=this.upperRight&&this.upperRight.setBounds$I$I$I$I(c?r.x:h.x,d.y,c?r.width:h.width,d.height)});b(zd,"adjustForVSB$Z$java_awt_Rectangle$java_awt_Rectangle$java_awt_Insets$Z",function(a,b,c,d,h){var f=c.width;a?(a=Math.max(0,Math.min(this.vsb.getPreferredSize$().width,b.width)),b.width-=a,c.width=a,h?c.x=b.x+b.width+d.right:(c.x=b.x-d.left,b.x+=a)):b.width+=f},Cm);b(zd,"adjustForHSB$Z$java_awt_Rectangle$java_awt_Rectangle$java_awt_Insets",function(a,b,c, +d){var h=c.height;a?(a=Math.max(0,Math.min(b.height,this.hsb.getPreferredSize$().height)),b.height-=a,c.y=b.y+b.height+d.bottom,c.height=a):b.height+=h},Cm);b(zd,"getViewportBorderBounds$javax_swing_JScrollPane",function(a){return a.getViewportBorderBounds$()});var yp=j(Fw.ScrollPaneLayout,"UIResource",function(a){m(this,a,!1,yp)},"javax.swing.ScrollPaneLayout","javax.swing.plaf.UIResource");yp.$clinit$=function(){g(yp,1)};b(yp,"$init$",function(){},1);b(yp);b(zd);n("3.2.4.07");var CA=q("javax.swing"); +N(CA,"SingleSelectionModel");n("3.2.4.07");var DA=q("javax.swing"),Rc=j(DA,"SizeRequirements");Rc.$clinit$=function(){g(Rc,1)};b(Rc,"$init0$",function(){var a;(a=Rc.superclazz)&&(a=a.$init0$)&&a.apply(this);this.alignment=this.maximum=this.preferred=this.minimum=0},1);b(Rc,"$init$",function(){},1);b(Rc,"c$",function(){Rc.$init$.apply(this);this.maximum=this.preferred=this.minimum=0;this.alignment=0.5},1);b(Rc,"c$$I$I$I$F",function(a,b,c,d){Rc.$init$.apply(this);this.minimum=a;this.preferred=b;this.maximum= +c;this.alignment=1d?0:d},1);b(Rc,"toString",function(){return"["+this.minimum+","+this.preferred+","+this.maximum+"]@"+(new Float(this.alignment)).toString()});b(Rc,"getTiledSizeRequirements$javax_swing_SizeRequirementsA",function(a){for(var b=f(Rc),c=0;ch?0:h);return f(Rc.c$$I$I$I$F,[a,d,c,h])},1);b(Rc,"calculateTiledPositions$I$javax_swing_SizeRequirements$javax_swing_SizeRequirementsA$IA$IA",function(a,b,c,d,h){Rc.calcTiled$I$javax_swing_SizeRequirements$javax_swing_SizeRequirementsA$IA$IA$Z(a,b,c,d,h,!0)},1);b(Rc,"calculateTiledPositions$I$javax_swing_SizeRequirements$javax_swing_SizeRequirementsA$IA$IA$Z",function(a,b,c,d,h,f){Rc.calcTiled$I$javax_swing_SizeRequirements$javax_swing_SizeRequirementsA$IA$IA$Z(a, +b,c,d,h,f)},1);b(Rc,"calcTiled$I$javax_swing_SizeRequirements$javax_swing_SizeRequirementsA$IA$IA$Z",function(a,b,c,d,h,f){for(var g=b=0,j=0,k=0;k=g?Rc.expandedTile$I$J$J$J$javax_swing_SizeRequirementsA$IA$IA$Z(a,b,g,j,c,d,h,f):Rc.compressedTile$I$J$J$J$javax_swing_SizeRequirementsA$IA$IA$Z(a,b,g,j,c,d,h,f)},1);b(Rc,"compressedTile$I$J$J$J$javax_swing_SizeRequirementsA$IA$IA$Z",function(a,b,c,d,h,f,g,j){d=Math.min(c-a,c-b);b=0==c-b? +0:d/(c-b);if(j)for(j=a=0;j=a.x&&b.x+b.width<=a.x+a.width&&b.y>=a.y&&b.y+b.height<=a.y+a.height?!0:!1},1);b(ja,"getLocalBounds$java_awt_Component",function(a){a=f(Ha(3).c$$java_awt_Rectangle,[a.getBounds$()]);a.x=a.y=0;return a},1);b(ja,"getWindowAncestor$java_awt_Component",function(a){for(a=a.getParent$();null!=a;a=a.getParent$())if(a.isWindowOrJSApplet$())return a;return null},1);b(ja,"convertScreenLocationToParent$java_awt_Container$I$I",function(a,b,c){for(var d=a;null!=d;d=d.getParent$())if(null!= +d&&d.isWindowOrJSApplet$())return b=f(Ha(4).c$$I$I,[b,c]),ja.convertPointFromScreen$java_awt_Point$java_awt_Component(b,a),b;throw f(Ha(5).c$$S,["convertScreenLocationToParent: no window ancestor"]);},1);b(ja,"convertPoint$java_awt_Component$java_awt_Point$java_awt_Component",function(a,b,c){if(null==a&&null==c)return b;if(null==a&&(a=ja.getWindowAncestor$java_awt_Component(c),null==a))throw f(Ha(5).c$$S,["Source component not connected to component tree hierarchy"]);b=f(Ha(4).c$$java_awt_Point,[b]); +ja.convertPointToScreen$java_awt_Point$java_awt_Component(b,a);if(null==c&&(c=ja.getWindowAncestor$java_awt_Component(a),null==c))throw f(Ha(5).c$$S,["Destination component not connected to component tree hierarchy"]);ja.convertPointFromScreen$java_awt_Point$java_awt_Component(b,c);return b},1);b(ja,"convertPoint$java_awt_Component$I$I$java_awt_Component",function(a,b,c,d){b=f(Ha(4).c$$I$I,[b,c]);return ja.convertPoint$java_awt_Component$java_awt_Point$java_awt_Component(a,b,d)},1);b(ja,"convertRectangle$java_awt_Component$java_awt_Rectangle$java_awt_Component", +function(a,b,c){var d=f(Ha(4).c$$I$I,[b.x,b.y]),d=ja.convertPoint$java_awt_Component$java_awt_Point$java_awt_Component(a,d,c);return f(Ha(3).c$$I$I$I$I,[d.x,d.y,b.width,b.height])},1);b(ja,"getAncestorOfClass$Class$java_awt_Component",function(a,b){if(null==b||null==a)return null;for(var c=b.getParent$();null!=c&&!a.isInstance$O(c);)c=c.getParent$();return c},1);b(ja,"getAncestorNamed$S$java_awt_Component",function(a,b){if(null==b||null==a)return null;for(var c=b.getParent$();null!=c&&!a.equals$O(c.getName$());)c= +c.getParent$();return c},1);b(ja,"getDeepestComponentAt$java_awt_Component$I$I",function(a,b,c){if(!a.contains$I$I(b,c))return null;if(k(a,"java.awt.Container"))for(var d=Ha(6).\u79d8getChildArray$java_awt_Container(a),h=0,f=a.getComponentCount$();hh.x?a:h.x;a=a+ch.y?b:h.y;b=b+dh.width||0>h.height)h.x=h.y=h.width=h.height=0;return h},1);b(ja,"computeUnion$I$I$I$I$java_awt_Rectangle",function(a,b,c,d,h){var f=ah.x+h.width?a+c:h.x+h.width;c=bh.y+h.height?b+d:h.y+h.height;h.x=f;h.y=c;h.width=a-f;h.height=b-c;return h},1);b(ja,"computeDifference$java_awt_Rectangle$java_awt_Rectangle",function(a,b){if(null==b||!a.intersects$java_awt_Rectangle(b)||ja.isRectangleContainingRectangle$java_awt_Rectangle$java_awt_Rectangle(b, +a))return l(Ha(3),[0]);var c=f(Ha(3)),d=null,h=null,g=null,j=null,k=0;ja.isRectangleContainingRectangle$java_awt_Rectangle$java_awt_Rectangle(a,b)?(c.x=a.x,c.y=a.y,c.width=b.x-a.x,c.height=a.height,0a.x+a.width?(c.x=a.x,c.y=b.y+b.height,c.width=a.width,c.height=a.y+a.height-(b.y+b.height),0a.y+a.height?(c.setBounds$I$I$I$I(b.x+b.width,a.y,a.x+a.width-(b.x+b.width),a.height),0=a.y+a.height?b.x+b.width>a.x+a.width?(c.setBounds$I$I$I$I(a.x,a.y,a.width,b.y-a.y),0=a.x+a.width?(c.reshape$I$I$I$I(a.x,a.y,a.width,b.y-a.y),0a.x+a.width?b.y<=a.y&&b.y+b.height>a.y+a.height?(c.reshape$I$I$I$I(a.x,a.y,b.x-a.x,a.height),0a.y+a.height?(c.reshape$I$I$I$I(a.x,a.y,a.width,b.y-a.y),0=a.x&&b.x+b.width<=a.x+a.width&&(b.y<=a.y&&b.y+b.height>a.y+a.height?(c.reshape$I$I$I$I(a.x,a.y,b.x-a.x,a.height),0h&&(d=Ha(11).clipString$javax_swing_JComponent$java_awt_FontMetrics$S$I(a,c,d,h),n.width=Ha(11).stringWidth$javax_swing_JComponent$java_awt_FontMetrics$S(a,c,d))));n.y=1==j?0!=k?0:-(n.height+q):0==j?(m.height/2|0)-(n.height/2|0):0!=k?m.height-n.height:m.height+q;n.x=2==k?-(n.width+q):0==k?(m.width/ +2|0)-(n.width/2|0):m.width+q;j=Math.min(m.x,n.x);a=Math.max(m.x+m.width,n.x+n.width)-j;k=Math.min(m.y,n.y);c=Math.max(m.y+m.height,n.y+n.height)-k;f=1==f?l.y-k:0==f?l.y+(l.height/2|0)-(k+(c/2|0)):l.y+l.height-(k+c);g=2==g?l.x-j:4==g?l.x+l.width-(j+a):l.x+(l.width/2|0)-(j+(a/2|0));n.x+=g;n.y+=f;m.x+=g;m.y+=f;32767==l.width&&(l.width=a,l.height=c);return d},1);b(ja,"paintComponent$java_awt_Graphics$java_awt_Component$java_awt_Container$I$I$I$I",function(a,b,c,d,h,f,g){ja.getCellRendererPane$java_awt_Component$java_awt_Container(b, +c).paintComponent$java_awt_Graphics$java_awt_Component$java_awt_Container$I$I$I$I$Z(a,b,c,d,h,f,g,!1)},1);b(ja,"paintComponent$java_awt_Graphics$java_awt_Component$java_awt_Container$java_awt_Rectangle",function(a,b,c,d){ja.paintComponent$java_awt_Graphics$java_awt_Component$java_awt_Container$I$I$I$I(a,b,c,d.x,d.y,d.width,d.height)},1);b(ja,"getCellRendererPane$java_awt_Component$java_awt_Container",function(a,b){var c=a.getParent$();k(c,"javax.swing.CellRendererPane")?c.getParent$()!==b&&b.add$java_awt_Component(c): +(c=Ha(12).getInstance$S$Z("javax.swing.CellRendererPane",!1),c.add$java_awt_Component(a),b.add$java_awt_Component(c));return c},1);b(ja,"updateComponentTreeUI$java_awt_Component",function(a){ja.updateComponentTreeUI0$java_awt_Component(a);a.invalidate$();a.validate$();a.\u79d8repaint$()},1);b(ja,"updateComponentTreeUI0$java_awt_Component",function(a){if(k(a,"javax.swing.JComponent")){a.updateUI$();var b=a.getComponentPopupMenu$();null!=b&&ja.updateComponentTreeUI$java_awt_Component(b)}var b=null, +c=0;k(a,"javax.swing.JMenu")?(b=a.getMenuArray$(),c=a.getMenuComponentCount$()):k(a,"java.awt.Container")&&(b=Ha(6).\u79d8getChildArray$java_awt_Container(a),c=a.getComponentCount$());for(a=0;aa||a+b>this.getLength$())throw f(g("javax.swing.text.BadLocationException").c$$S$I,["Invalid remove",this.getLength$()+1]);var c=f(Ya(13).c$$I$I$javax_swing_event_DocumentEvent_EventType, +[this,null,a,b,Ya(7).REMOVE]),d=!1,d=Ya(14).isComposedTextElement$javax_swing_text_Document$I(this,a);this.removeUpdate$javax_swing_text_AbstractDocument_DefaultDocumentEvent(c);var h=this.data.remove$I$I(a,b);null!=h&&c.addEdit$javax_swing_undo_UndoableEdit(h);this.postRemoveUpdate$javax_swing_text_AbstractDocument_DefaultDocumentEvent(c);c.end$();this.fireRemoveUpdate$javax_swing_event_DocumentEvent(c);null!=h&&!d&&this.fireUndoableEditUpdate$javax_swing_event_UndoableEditEvent(f(Ya(15).c$$O$javax_swing_undo_UndoableEdit, +[this,c]))}});b(Ia,"replace$I$I$S$javax_swing_text_AttributeSet",function(a,b,c,d){if(!(0==b&&(null==c||0==c.length$()))){var h=this.getDocumentFilter$();this.writeLock$();try{null!=h?h.replace$javax_swing_text_DocumentFilter_FilterBypass$I$I$S$javax_swing_text_AttributeSet(sq.getFilterBypass.apply(this,[]),a,b,c,d):(0b)throw f(g("javax.swing.text.BadLocationException").c$$S$I, +["Length must be positive",b]);return this.data.getString$I$I(a,b)});b(Ia,"getText$I$I$javax_swing_text_Segment",function(a,b,c){if(0>b)throw f(g("javax.swing.text.BadLocationException").c$$S$I,["Length must be positive",b]);this.data.getChars$I$I$javax_swing_text_Segment(a,b,c)});b(Ia,"createPosition$I",function(a){return this.data.createPosition$I(a)});b(Ia,"getStartPosition$",function(){var a;try{a=this.createPosition$I(0)}catch(b){if(A(b,"javax.swing.text.BadLocationException"))a=null;else throw b; +}return a});b(Ia,"getEndPosition$",function(){var a;try{a=this.createPosition$I(this.data.length$())}catch(b){if(A(b,"javax.swing.text.BadLocationException"))a=null;else throw b;}return a});b(Ia,"getRootElements$",function(){var a=l(Ya(16),[2]);a[0]=this.getDefaultRootElement$();a[1]=this.getBidiRootElement$();return a});b(Ia,"getFilterBypass",function(){null==this.filterBypass&&(this.filterBypass=f(Ya(17),[this,null]));return this.filterBypass},sq);b(Ia,"getBidiRootElement$",function(){return this.bidiRoot}); +b(Ia,"isLeftToRight$I$I",function(){return!0});b(Ia,"getAttributeContext$",function(){return this.context});b(Ia,"insertUpdate$javax_swing_text_AbstractDocument_DefaultDocumentEvent$javax_swing_text_AttributeSet",function(a){if(a.type===Ya(7).INSERT&&0=c&& +a=this.children.length){var g=Math.max(2*this.children.length,this.nchildren+d),g=l(Ya(2),[g]);System.arraycopy$O$I$O$I$I(this.children,0,g,0,a);System.arraycopy$O$I$O$I$I(c,0,g,a,c.length);System.arraycopy$O$I$O$I$I(this.children,b,g,f,h);this.children=g}else System.arraycopy$O$I$O$I$I(this.children,b,this.children,f,h),System.arraycopy$O$I$O$I$I(c,0,this.children, +a,c.length);this.nchildren+=d});b(re,"toString",function(){return"BranchElement("+this.getName$()+") "+this.getStartOffset$()+","+this.getEndOffset$()+"\n"});b(re,"getName$",function(){var a=re.superclazz.prototype.getName$.apply(this,[]);null==a&&(a="paragraph");return a});b(re,"getStartOffset$",function(){return this.children[0].getStartOffset$()});b(re,"getEndOffset$",function(){return(0=this.getEndOffset$())return this.nchildren-1;if(this.lastIndex>=b&&this.lastIndex<=c){f=this.children[this.lastIndex];h=f.getStartOffset$();f=f.getEndOffset$();if(a>=h&&a=h&&a--a&&(a=0),c.isLeftToRight$I$I(a,a)):!0});b(ka,"guessBiasForOffset$I$javax_swing_text_Position_Bias$Z",function(a,b,c){c!=this.isPositionLTR$I$javax_swing_text_Position_Bias(a,b)?b=ec(3).Backward:b!==ec(3).Backward&&c!=this.isPositionLTR$I$javax_swing_text_Position_Bias(a,ec(3).Backward)&&(b=ec(3).Backward);if(b===ec(3).Backward&&0a||this.mark>a)&&this.handleSetDot$I$javax_swing_text_Position_Bias(a,ec(3).Forward)});b(ka,"setMagicCaretPosition$java_awt_Point",function(a){this.magicCaretPosition=a});b(ka,"getMagicCaretPosition$",function(){return this.magicCaretPosition});b(ka,"equals$O",function(a){return this===a});b(ka,"toString",function(){var a="Dot=("+this.dot+", "+this.dotBias+")";return a+=" Mark=("+this.mark+", "+this.markBias+ +")"});b(ka,"getFilterBypass",function(){null==this.filterBypass&&(this.filterBypass=f(ec(11),[this,null]));return this.filterBypass},cl);b(ka,"_contains$I$I$I$I",function(a,b,c,d){var h=this.width,f=this.height;if(0>(h|f|c|d))return!1;var g=this.x,j=this.y;if(a=g||c>h)return!1}else{if(h>=g&&c>h)return!1}else if(g+h=j||d>f)return!1}else{if(f>=j&&d>f)return!1}else if(j+f=c&&(h+=d,g=(Ko[0]=g|1,Ko[0])),a=this.this$0.mark,a>=c&&(a+=d,g=(Ko[0]=g|2,Ko[0])),0!=g){d=this.this$0.dotBias;if(this.this$0.dot==c){var c=this.this$0.component.getDocument$(),j;try{var l=f(ec(2));c.getText$I$I$javax_swing_text_Segment(h-1,1,l);j=0=h?(b-=h-d,b==h&&(f=!0)):b>=d&&(b=d,f=!0);g>=h?(g-=h-d,g==h&&(j=!0)):g>=d&&(g=d,j=!0);if(g==b){this.this$0.forceCaretPositionChange=!0;try{this.this$0.setDot$I$javax_swing_text_Position_Bias.apply(this.this$0,[b,this.this$0.guessBiasForOffset$I$javax_swing_text_Position_Bias$Z.apply(this.this$0,[b,this.this$0.dotBias,this.this$0.dotLTR])])}finally{this.this$0.forceCaretPositionChange= +!1}}else a=this.this$0.dotBias,d=this.this$0.markBias,f&&(a=this.this$0.guessBiasForOffset$I$javax_swing_text_Position_Bias$Z.apply(this.this$0,[b,a,this.this$0.dotLTR])),j&&(d=this.this$0.guessBiasForOffset$I$javax_swing_text_Position_Bias$Z.apply(this.this$0,[this.this$0.mark,d,this.this$0.markLTR])),this.this$0.setDot$I$javax_swing_text_Position_Bias.apply(this.this$0,[g,d]),this.this$0.getDot$.apply(this.this$0,[])==g&&this.this$0.moveDot$I$javax_swing_text_Position_Bias.apply(this.this$0,[b, +a]);this.this$0.ensureValidPosition$.apply(this.this$0,[])}}});b(el,"changedUpdate$javax_swing_event_DocumentEvent",function(a){1==this.this$0.getUpdatePolicy$.apply(this.this$0,[])||0==this.this$0.getUpdatePolicy$.apply(this.this$0,[])&&!ec(1).isEventDispatchThread$()||k(a,"javax.swing.text.AbstractDocument.UndoRedoDocumentEvent")&&this.this$0.setDot$I.apply(this.this$0,[a.getOffset$()+a.getLength$()])});b(el,["propertyChange$java_beans_PropertyChangeEvent","propertyChange$"],function(a){var b=a.getOldValue$(), +c=a.getNewValue$();k(b,"javax.swing.text.Document")||k(c,"javax.swing.text.Document")?(this.this$0.setDot$I.apply(this.this$0,[0]),null!=b&&b.removeDocumentListener$javax_swing_event_DocumentListener(this),null!=c&&c.addDocumentListener$javax_swing_event_DocumentListener(this)):"enabled".equals$O(a.getPropertyName$())&&(a=a.getNewValue$(),this.this$0.component.isFocusOwner$()&&(a===ec(4).TRUE?(this.this$0.component.isEditable$()&&this.this$0.setVisible$Z.apply(this.this$0,[!0]),this.this$0.setSelectionVisible$Z.apply(this.this$0, +[!0])):(this.this$0.setVisible$Z.apply(this.this$0,[!1]),this.this$0.setSelectionVisible$Z.apply(this.this$0,[!1]))))});var Ko=new Int16Array(1);b(el);var Dm=j(tq.DefaultCaret,"DefaultFilterBypass",function(a){m(this,a,!0,Dm)},["javax.swing.text.NavigationFilter",".FilterBypass"]);Dm.$clinit$=function(){g(Dm,1)};b(Dm,"$init$",function(){},1);b(Dm,"getCaret$",function(){return this.this$0});b(Dm,"setDot$I$javax_swing_text_Position_Bias",function(a,b){this.this$0.handleSetDot$I$javax_swing_text_Position_Bias.apply(this.this$0, +[a,b])});b(Dm,"moveDot$I$javax_swing_text_Position_Bias",function(a,b){this.this$0.handleMoveDot$I$javax_swing_text_Position_Bias.apply(this.this$0,[a,b])});b(Dm);n("3.2.4.07");var Ic=q("javax.swing.text"),Em={},Nt=[[0,"javax.swing.UIManager","java.awt.Rectangle","java.awt.Point",["javax.swing.text.Position",".Bias"],"javax.swing.text.Utilities",["javax.swing.text.DefaultEditorKit",".BeginWordAction"],["javax.swing.text.DefaultEditorKit",".EndWordAction"],["javax.swing.text.DefaultEditorKit",".BeginLineAction"], +["javax.swing.text.DefaultEditorKit",".EndLineAction"],["javax.swing.text.DefaultEditorKit",".BeginParagraphAction"],["javax.swing.text.DefaultEditorKit",".EndParagraphAction"],"java.awt.ComponentOrientation","javax.swing.Action",["javax.swing.text.DefaultEditorKit",".InsertContentAction"],["javax.swing.text.DefaultEditorKit",".DeletePrevCharAction"],["javax.swing.text.DefaultEditorKit",".DeleteNextCharAction"],["javax.swing.text.DefaultEditorKit",".ReadOnlyAction"],["javax.swing.text.DefaultEditorKit", +".WritableAction"],["javax.swing.text.DefaultEditorKit",".CutAction"],["javax.swing.text.DefaultEditorKit",".CopyAction"],["javax.swing.text.DefaultEditorKit",".PasteAction"],["javax.swing.text.DefaultEditorKit",".VerticalPageAction"],["javax.swing.text.DefaultEditorKit",".PageAction"],["javax.swing.text.DefaultEditorKit",".InsertBreakAction"],["javax.swing.text.DefaultEditorKit",".BeepAction"],["javax.swing.text.DefaultEditorKit",".NextVisualPositionAction"],["javax.swing.text.DefaultEditorKit", +".PreviousWordAction"],["javax.swing.text.DefaultEditorKit",".NextWordAction"],["javax.swing.text.DefaultEditorKit",".BeginAction"],["javax.swing.text.DefaultEditorKit",".EndAction"],["javax.swing.text.DefaultEditorKit",".DefaultKeyTypedAction"],["javax.swing.text.DefaultEditorKit",".InsertTabAction"],["javax.swing.text.DefaultEditorKit",".SelectWordAction"],["javax.swing.text.DefaultEditorKit",".SelectLineAction"],["javax.swing.text.DefaultEditorKit",".SelectParagraphAction"],["javax.swing.text.DefaultEditorKit", +".SelectAllAction"],["javax.swing.text.DefaultEditorKit",".UnselectAction"],["javax.swing.text.DefaultEditorKit",".ToggleComponentOrientationAction"],"javax.swing.text.PlainDocument","java.io.InputStreamReader","swingjs.api.Interface","java.io.OutputStream","javax.swing.text.Segment"]],X=function(a){return Nt[a]||(Nt[a]=g(Nt[0][a]))},Kf=j(Ic,"DefaultEditorKit",function(){m(this,arguments,0,Kf)},"javax.swing.text.EditorKit");Kf.defaultActions=null;Kf.$clinit$=function(){g(Kf,1);Kf.defaultActions=l(X(13), +-1,[f(X(14)),f(X(15)),f(X(16)),f(X(17)),f(X(18)),f(X(19)),f(X(20)),f(X(21)),f(X(22).c$$S$I$Z,["page-up",-1,!1]),f(X(22).c$$S$I$Z,["page-down",1,!1]),f(X(22).c$$S$I$Z,["selection-page-up",-1,!0]),f(X(22).c$$S$I$Z,["selection-page-down",1,!0]),f(X(23).c$$S$Z$Z,["selection-page-left",!0,!0]),f(X(23).c$$S$Z$Z,["selection-page-right",!1,!0]),f(X(24)),f(X(25)),f(X(26).c$$S$Z$I,["caret-forward",!1,3]),f(X(26).c$$S$Z$I,["caret-backward",!1,7]),f(X(26).c$$S$Z$I,["selection-forward",!0,3]),f(X(26).c$$S$Z$I, +["selection-backward",!0,7]),f(X(26).c$$S$Z$I,["caret-up",!1,1]),f(X(26).c$$S$Z$I,["caret-down",!1,5]),f(X(26).c$$S$Z$I,["selection-up",!0,1]),f(X(26).c$$S$Z$I,["selection-down",!0,5]),f(X(6).c$$S$Z,["caret-begin-word",!1]),f(X(7).c$$S$Z,["caret-end-word",!1]),f(X(6).c$$S$Z,["selection-begin-word",!0]),f(X(7).c$$S$Z,["selection-end-word",!0]),f(X(27).c$$S$Z,["caret-previous-word",!1]),f(X(28).c$$S$Z,["caret-next-word",!1]),f(X(27).c$$S$Z,["selection-previous-word",!0]),f(X(28).c$$S$Z,["selection-next-word", +!0]),f(X(8).c$$S$Z,["caret-begin-line",!1]),f(X(9).c$$S$Z,["caret-end-line",!1]),f(X(8).c$$S$Z,["selection-begin-line",!0]),f(X(9).c$$S$Z,["selection-end-line",!0]),f(X(10).c$$S$Z,["caret-begin-paragraph",!1]),f(X(11).c$$S$Z,["caret-end-paragraph",!1]),f(X(10).c$$S$Z,["selection-begin-paragraph",!0]),f(X(11).c$$S$Z,["selection-end-paragraph",!0]),f(X(29).c$$S$Z,["caret-begin",!1]),f(X(30).c$$S$Z,["caret-end",!1]),f(X(29).c$$S$Z,["selection-begin",!0]),f(X(30).c$$S$Z,["selection-end",!0]),f(X(31)), +f(X(32)),f(X(33)),f(X(34)),f(X(35)),f(X(36)),f(X(37)),f(X(38))])};b(Kf,"$init$",function(){},1);b(Kf,"c$",function(){S(Kf,this,1)},1);b(Kf,"getContentType$",function(){return"text/plain"});b(Kf,"getViewFactory$",function(){return null});b(Kf,"getActions$",function(){return Kf.defaultActions});b(Kf,"createCaret$",function(){return null});b(Kf,"createDefaultDocument$",function(){return f(X(39))});b(Kf,"read$java_io_InputStream$javax_swing_text_Document$I",function(a,b,c){this.read$java_io_Reader$javax_swing_text_Document$I(f(X(40).c$$java_io_InputStream, +[a]),b,c)});b(Kf,"write$java_io_OutputStream$javax_swing_text_Document$I$I",function(a,b,c,d){a=X(41).getInstanceWithParams$S$ClassA$OA("java.io.OutputStreamWriter",l(Class,-1,[x(X(42))]),l(java.lang.Object,-1,[a]));this.write$java_io_Writer$javax_swing_text_Document$I$I(a,b,c,d);a.flush$()});b(Kf,"getInputAttributes$",function(){return null});b(Kf,"read$java_io_Reader$javax_swing_text_Document$I",function(a,b,c){for(var d=l(Character.TYPE,[4096]),h,f=!1,g=!1,j=!1,k,m=0==b.getLength$(),n=this.getInputAttributes$();-1!= +(h=a.read$CA$I$I(d,0,d.length));){for(var q=k=0;qk+1&&(b.insertString$I$S$javax_swing_text_AttributeSet(c,String.instantialize(d,k,q-k-1),n),c+=q-k-1),f=!1,k=q,g=!0);break;default:f&&(j=!0,0==q?(b.insertString$I$S$javax_swing_text_AttributeSet(c,"\n",n),c++):d[q-1]="\n",f=!1)}kc||c+d>b.getLength$())throw f(g("javax.swing.text.BadLocationException").c$$S$I,["DefaultEditorKit.write", +c]);var h=f(X(43)),j=b.getProperty$O("__EndOfLine__");if(null==j)try{j=System.getProperty$S("line.separator")}catch(l){if(!A(l,"SecurityException"))throw l;}var p;p=k(j,"java.lang.String")?j:null;if(null!=j&&!p.equals$O("\n"))for(;0m&&a.write$CA$I$I(n,m,r-m),a.write$S(p),m=r+1);q>m&&a.write$CA$I$I(n,m,q-m);c+=j;d-=j}else for(;0=j&&"\udc00"<=k&&"\udfff">=k)&&(d=2)}c.remove$I$I(h-d,d);b=!1}}catch(l){if(!A(l,"javax.swing.text.BadLocationException"))throw l;}b&&X(1).getLookAndFeel$().provideErrorFeedback$java_awt_Component(a)});var Km=j(Ic.DefaultEditorKit,"DeleteNextCharAction",function(a){m(this,a,!1,Km)},"javax.swing.text.TextAction");Km.$clinit$=function(){g(Km,1)};b(Km,"$init$",function(){},1);b(Km,"c$",function(){Km.superclazz.c$$S.apply(this,["delete-next"]); +Km.$init$.apply(this)},1);b(Km,["actionPerformed$java_awt_event_ActionEvent","actionPerformed$"],function(a){a=this.getTextComponent$java_awt_event_ActionEvent(a);var b=!0;if(null!=a&&a.isEditable$())try{var c=a.getDocument$(),d=a.getCaret$(),h=d.getDot$(),f=d.getMark$();if(h!=f)c.remove$I$I(Math.min(h,f),Math.abs(h-f)),b=!1;else if(h=j&&"\udc00"<=k&&"\udfff">=k)&&(d=2)}c.remove$I$I(h, +d);b=!1}}catch(l){if(!A(l,"javax.swing.text.BadLocationException"))throw l;}b&&X(1).getLookAndFeel$().provideErrorFeedback$java_awt_Component(a)});var Lm=j(Ic.DefaultEditorKit,"ReadOnlyAction",function(a){m(this,a,!1,Lm)},"javax.swing.text.TextAction");Lm.$clinit$=function(){g(Lm,1)};b(Lm,"$init$",function(){},1);b(Lm,"c$",function(){Lm.superclazz.c$$S.apply(this,["set-read-only"]);Lm.$init$.apply(this)},1);b(Lm,["actionPerformed$java_awt_event_ActionEvent","actionPerformed$"],function(a){a=this.getTextComponent$java_awt_event_ActionEvent(a); +null!=a&&a.setEditable$Z(!1)});var Mm=j(Ic.DefaultEditorKit,"WritableAction",function(a){m(this,a,!1,Mm)},"javax.swing.text.TextAction");Mm.$clinit$=function(){g(Mm,1)};b(Mm,"$init$",function(){},1);b(Mm,"c$",function(){Mm.superclazz.c$$S.apply(this,["set-writable"]);Mm.$init$.apply(this)},1);b(Mm,["actionPerformed$java_awt_event_ActionEvent","actionPerformed$"],function(a){a=this.getTextComponent$java_awt_event_ActionEvent(a);null!=a&&a.setEditable$Z(!0)});var Nm=j(Ic.DefaultEditorKit,"CutAction", +function(a){m(this,a,!1,Nm)},"javax.swing.text.TextAction");Nm.$clinit$=function(){g(Nm,1)};b(Nm,"$init$",function(){},1);b(Nm,"c$",function(){Nm.superclazz.c$$S.apply(this,["cut-to-clipboard"]);Nm.$init$.apply(this)},1);b(Nm,["actionPerformed$java_awt_event_ActionEvent","actionPerformed$"],function(a){a=this.getTextComponent$java_awt_event_ActionEvent(a);null!=a&&a.cut$()});var Om=j(Ic.DefaultEditorKit,"CopyAction",function(a){m(this,a,!1,Om)},"javax.swing.text.TextAction");Om.$clinit$=function(){g(Om, +1)};b(Om,"$init$",function(){},1);b(Om,"c$",function(){Om.superclazz.c$$S.apply(this,["copy-to-clipboard"]);Om.$init$.apply(this)},1);b(Om,["actionPerformed$java_awt_event_ActionEvent","actionPerformed$"],function(a){a=this.getTextComponent$java_awt_event_ActionEvent(a);null!=a&&a.copy$()});var Pm=j(Ic.DefaultEditorKit,"PasteAction",function(a){m(this,a,!1,Pm)},"javax.swing.text.TextAction");Pm.$clinit$=function(){g(Pm,1)};b(Pm,"$init$",function(){},1);b(Pm,"c$",function(){Pm.superclazz.c$$S.apply(this, +["paste-from-clipboard"]);Pm.$init$.apply(this)},1);b(Pm,["actionPerformed$java_awt_event_ActionEvent","actionPerformed$"],function(a){a=this.getTextComponent$java_awt_event_ActionEvent(a);null!=a&&a.paste$()});var Qm=j(Ic.DefaultEditorKit,"BeepAction",function(a){m(this,a,!1,Qm)},"javax.swing.text.TextAction");Qm.$clinit$=function(){g(Qm,1)};b(Qm,"$init$",function(){},1);b(Qm,"c$",function(){Qm.superclazz.c$$S.apply(this,["beep"]);Qm.$init$.apply(this)},1);b(Qm,["actionPerformed$java_awt_event_ActionEvent", +"actionPerformed$"],function(a){a=this.getTextComponent$java_awt_event_ActionEvent(a);X(1).getLookAndFeel$().provideErrorFeedback$java_awt_Component(a)});var Rh=j(Ic.DefaultEditorKit,"VerticalPageAction",function(a){m(this,a,!1,Rh)},"javax.swing.text.TextAction");Rh.$clinit$=function(){g(Rh,1)};b(Rh,"$init0$",function(){var a;(a=Rh.superclazz)&&(a=a.$init0$)&&a.apply(this);this.select=!1;this.direction=0},1);b(Rh,"$init$",function(){},1);b(Rh,"c$$S$I$Z",function(a,b,c){Rh.superclazz.c$$S.apply(this, +[a]);Rh.$init$.apply(this);this.select=c;this.direction=b},1);b(Rh,["actionPerformed$java_awt_event_ActionEvent","actionPerformed$"],function(a){a=this.getTextComponent$java_awt_event_ActionEvent(a);if(null!=a){var b=a.getVisibleRect$(),c=f(X(2).c$$java_awt_Rectangle,[b]),d=a.getCaretPosition$(),h=this.direction*a.getScrollableBlockIncrement$java_awt_Rectangle$I$I(b,1,this.direction),g=b.y,j=a.getCaret$(),k=j.getMagicCaretPosition$();if(-1!=d)try{var l=a.modelToView$I(d),m=null!=k?k.x:l.x,n=l.height; +0b?b=0:b+c>a.getHeight$()&&(b=Math.max(0,a.getHeight$()-c));return b},Em);b(Rh,"constrainOffset$javax_swing_text_JTextComponent$I", +function(a,b){var c=a.getDocument$();0!=b&&b>c.getLength$()&&(b=c.getLength$());0>b&&(b=0);return b},Em);b(Rh,"adjustScrollIfNecessary$javax_swing_text_JTextComponent$java_awt_Rectangle$I$I",function(a,b,c,d){try{var h=a.modelToView$I(d);if(h.yb.y+b.height||h.y+h.height>b.y+b.height){var f;f=h.yc)b.y=f}}catch(g){if(!A(g,"javax.swing.text.BadLocationException"))throw g;}},Em);b(Rh);var Zj=j(Ic.DefaultEditorKit, +"PageAction",function(a){m(this,a,!1,Zj)},"javax.swing.text.TextAction");Zj.$clinit$=function(){g(Zj,1)};b(Zj,"$init0$",function(){var a;(a=Zj.superclazz)&&(a=a.$init0$)&&a.apply(this);this.left=this.select=!1},1);b(Zj,"$init$",function(){},1);b(Zj,"c$$S$Z$Z",function(a,b,c){Zj.superclazz.c$$S.apply(this,[a]);Zj.$init$.apply(this);this.select=c;this.left=b},1);b(Zj,["actionPerformed$java_awt_event_ActionEvent","actionPerformed$"],function(a){a=this.getTextComponent$java_awt_event_ActionEvent(a);if(null!= +a){var b,c=f(X(2));a.computeVisibleRect$java_awt_Rectangle(c);c.x=this.left?Math.max(0,c.x-c.width):c.x+c.width;b=a.getCaretPosition$();-1!=b&&(b=this.left?a.viewToModel$java_awt_Point(f(X(3).c$$I$I,[c.x,c.y])):a.viewToModel$java_awt_Point(f(X(3).c$$I$I,[c.x+c.width-1,c.y+c.height-1])),c=a.getDocument$(),0!=b&&b>c.getLength$()-1?b=c.getLength$()-1:0>b&&(b=0),this.select?a.moveCaretPosition$I(b):a.setCaretPosition$I(b))}});b(Zj);var $j=j(Ic.DefaultEditorKit,"NextVisualPositionAction",function(a){m(this, +a,!1,$j)},"javax.swing.text.TextAction");$j.$clinit$=function(){g($j,1)};b($j,"$init0$",function(){var a;(a=$j.superclazz)&&(a=a.$init0$)&&a.apply(this);this.select=!1;this.direction=0},1);b($j,"$init$",function(){},1);b($j,"c$$S$Z$I",function(a,b,c){$j.superclazz.c$$S.apply(this,[a]);$j.$init$.apply(this);this.select=b;this.direction=c},1);b($j,["actionPerformed$java_awt_event_ActionEvent","actionPerformed$"],function(a){a=this.getTextComponent$java_awt_event_ActionEvent(a);if(null!=a){var b=a.getCaret$(), +c=k(b,"javax.swing.text.DefaultCaret")?b:null,d=b.getDot$(),h=l(X(4),[1]),g=b.getMagicCaretPosition$();try{if(null==g&&(1==this.direction||5==this.direction))var j=null!=c?a.getUI$().modelToView$javax_swing_text_JTextComponent$I$javax_swing_text_Position_Bias(a,d,c.getDotBias$()):a.modelToView$I(d),g=f(X(3).c$$I$I,[j.x,j.y]);var p=a.getNavigationFilter$(),d=null!=p?p.getNextVisualPositionFrom$javax_swing_text_JTextComponent$I$javax_swing_text_Position_Bias$I$javax_swing_text_Position_BiasA(a,d,null!= +c?c.getDotBias$():X(4).Forward,this.direction,h):a.getUI$().getNextVisualPositionFrom$javax_swing_text_JTextComponent$I$javax_swing_text_Position_Bias$I$javax_swing_text_Position_BiasA(a,d,null!=c?c.getDotBias$():X(4).Forward,this.direction,h);null==h[0]&&(h[0]=X(4).Forward);null!=c?this.select?c.moveDot$I$javax_swing_text_Position_Bias(d,h[0]):c.setDot$I$javax_swing_text_Position_Bias(d,h[0]):this.select?b.moveDot$I(d):b.setDot$I(d);null!=g&&(1==this.direction||5==this.direction)&&a.getCaret$().setMagicCaretPosition$java_awt_Point(g)}catch(m){if(!A(m, +"javax.swing.text.BadLocationException"))throw m;}}});b($j);var ak=j(Ic.DefaultEditorKit,"BeginWordAction",function(a){m(this,a,!1,ak)},"javax.swing.text.TextAction");ak.$clinit$=function(){g(ak,1)};b(ak,"$init0$",function(){var a;(a=ak.superclazz)&&(a=a.$init0$)&&a.apply(this);this.select=!1},1);b(ak,"$init$",function(){},1);b(ak,"c$$S$Z",function(a,b){ak.superclazz.c$$S.apply(this,[a]);ak.$init$.apply(this);this.select=b},1);b(ak,["actionPerformed$java_awt_event_ActionEvent","actionPerformed$"], +function(a){a=this.getTextComponent$java_awt_event_ActionEvent(a);if(null!=a)try{var b=a.getCaretPosition$(),c=X(5).getWordStart$javax_swing_text_JTextComponent$I(a,b);this.select?a.moveCaretPosition$I(c):a.setCaretPosition$I(c)}catch(d){if(A(d,"javax.swing.text.BadLocationException"))X(1).getLookAndFeel$().provideErrorFeedback$java_awt_Component(a);else throw d;}});b(ak);var bk=j(Ic.DefaultEditorKit,"EndWordAction",function(a){m(this,a,!1,bk)},"javax.swing.text.TextAction");bk.$clinit$=function(){g(bk, +1)};b(bk,"$init0$",function(){var a;(a=bk.superclazz)&&(a=a.$init0$)&&a.apply(this);this.select=!1},1);b(bk,"$init$",function(){},1);b(bk,"c$$S$Z",function(a,b){bk.superclazz.c$$S.apply(this,[a]);bk.$init$.apply(this);this.select=b},1);b(bk,["actionPerformed$java_awt_event_ActionEvent","actionPerformed$"],function(a){a=this.getTextComponent$java_awt_event_ActionEvent(a);if(null!=a)try{var b=a.getCaretPosition$(),c=X(5).getWordEnd$javax_swing_text_JTextComponent$I(a,b);this.select?a.moveCaretPosition$I(c): +a.setCaretPosition$I(c)}catch(d){if(A(d,"javax.swing.text.BadLocationException"))X(1).getLookAndFeel$().provideErrorFeedback$java_awt_Component(a);else throw d;}});b(bk);var ck=j(Ic.DefaultEditorKit,"PreviousWordAction",function(a){m(this,a,!1,ck)},"javax.swing.text.TextAction");ck.$clinit$=function(){g(ck,1)};b(ck,"$init0$",function(){var a;(a=ck.superclazz)&&(a=a.$init0$)&&a.apply(this);this.select=!1},1);b(ck,"$init$",function(){},1);b(ck,"c$$S$Z",function(a,b){ck.superclazz.c$$S.apply(this,[a]); +ck.$init$.apply(this);this.select=b},1);b(ck,["actionPerformed$java_awt_event_ActionEvent","actionPerformed$"],function(a){a=this.getTextComponent$java_awt_event_ActionEvent(a);if(null!=a){var b=a.getCaretPosition$(),c=!1;try{var d=X(5).getParagraphElement$javax_swing_text_JTextComponent$I(a,b),b=X(5).getPreviousWord$javax_swing_text_JTextComponent$I(a,b);b=h.getEndOffset$()&&d!=h.getEndOffset$()-1&&(b=h.getEndOffset$()-1)}catch(f){if(A(f,"javax.swing.text.BadLocationException")){var g=a.getDocument$().getLength$();b!=g? +b=d!=h.getEndOffset$()-1?h.getEndOffset$()-1:g:c=!0}else throw f;}c?X(1).getLookAndFeel$().provideErrorFeedback$java_awt_Component(a):this.select?a.moveCaretPosition$I(b):a.setCaretPosition$I(b)}});b(dk);var ek=j(Ic.DefaultEditorKit,"BeginLineAction",function(a){m(this,a,!1,ek)},"javax.swing.text.TextAction");ek.$clinit$=function(){g(ek,1)};b(ek,"$init0$",function(){var a;(a=ek.superclazz)&&(a=a.$init0$)&&a.apply(this);this.select=!1},1);b(ek,"$init$",function(){},1);b(ek,"c$$S$Z",function(a,b){ek.superclazz.c$$S.apply(this, +[a]);ek.$init$.apply(this);this.select=b},1);b(ek,["actionPerformed$java_awt_event_ActionEvent","actionPerformed$"],function(a){a=this.getTextComponent$java_awt_event_ActionEvent(a);if(null!=a)try{var b=a.getCaretPosition$(),c=X(5).getRowStart$javax_swing_text_JTextComponent$I(a,b);this.select?a.moveCaretPosition$I(c):a.setCaretPosition$I(c)}catch(d){if(A(d,"javax.swing.text.BadLocationException"))X(1).getLookAndFeel$().provideErrorFeedback$java_awt_Component(a);else throw d;}});b(ek);var fk=j(Ic.DefaultEditorKit, +"EndLineAction",function(a){m(this,a,!1,fk)},"javax.swing.text.TextAction");fk.$clinit$=function(){g(fk,1)};b(fk,"$init0$",function(){var a;(a=fk.superclazz)&&(a=a.$init0$)&&a.apply(this);this.select=!1},1);b(fk,"$init$",function(){},1);b(fk,"c$$S$Z",function(a,b){fk.superclazz.c$$S.apply(this,[a]);fk.$init$.apply(this);this.select=b},1);b(fk,["actionPerformed$java_awt_event_ActionEvent","actionPerformed$"],function(a){a=this.getTextComponent$java_awt_event_ActionEvent(a);if(null!=a)try{var b=a.getCaretPosition$(), +c=X(5).getRowEnd$javax_swing_text_JTextComponent$I(a,b);this.select?a.moveCaretPosition$I(c):a.setCaretPosition$I(c)}catch(d){if(A(d,"javax.swing.text.BadLocationException"))X(1).getLookAndFeel$().provideErrorFeedback$java_awt_Component(a);else throw d;}});b(fk);var gk=j(Ic.DefaultEditorKit,"BeginParagraphAction",function(a){m(this,a,!1,gk)},"javax.swing.text.TextAction");gk.$clinit$=function(){g(gk,1)};b(gk,"$init0$",function(){var a;(a=gk.superclazz)&&(a=a.$init0$)&&a.apply(this);this.select=!1}, +1);b(gk,"$init$",function(){},1);b(gk,"c$$S$Z",function(a,b){gk.superclazz.c$$S.apply(this,[a]);gk.$init$.apply(this);this.select=b},1);b(gk,["actionPerformed$java_awt_event_ActionEvent","actionPerformed$"],function(a){a=this.getTextComponent$java_awt_event_ActionEvent(a);if(null!=a){var b=a.getCaretPosition$(),b=X(5).getParagraphElement$javax_swing_text_JTextComponent$I(a,b).getStartOffset$();this.select?a.moveCaretPosition$I(b):a.setCaretPosition$I(b)}});b(gk);var hk=j(Ic.DefaultEditorKit,"EndParagraphAction", +function(a){m(this,a,!1,hk)},"javax.swing.text.TextAction");hk.$clinit$=function(){g(hk,1)};b(hk,"$init0$",function(){var a;(a=hk.superclazz)&&(a=a.$init0$)&&a.apply(this);this.select=!1},1);b(hk,"$init$",function(){},1);b(hk,"c$$S$Z",function(a,b){hk.superclazz.c$$S.apply(this,[a]);hk.$init$.apply(this);this.select=b},1);b(hk,["actionPerformed$java_awt_event_ActionEvent","actionPerformed$"],function(a){a=this.getTextComponent$java_awt_event_ActionEvent(a);if(null!=a){var b=a.getCaretPosition$(), +b=X(5).getParagraphElement$javax_swing_text_JTextComponent$I(a,b),b=Math.min(a.getDocument$().getLength$(),b.getEndOffset$());this.select?a.moveCaretPosition$I(b):a.setCaretPosition$I(b)}});b(hk);var ik=j(Ic.DefaultEditorKit,"BeginAction",function(a){m(this,a,!1,ik)},"javax.swing.text.TextAction");ik.$clinit$=function(){g(ik,1)};b(ik,"$init0$",function(){var a;(a=ik.superclazz)&&(a=a.$init0$)&&a.apply(this);this.select=!1},1);b(ik,"$init$",function(){},1);b(ik,"c$$S$Z",function(a,b){ik.superclazz.c$$S.apply(this, +[a]);ik.$init$.apply(this);this.select=b},1);b(ik,["actionPerformed$java_awt_event_ActionEvent","actionPerformed$"],function(a){a=this.getTextComponent$java_awt_event_ActionEvent(a);null!=a&&(this.select?a.moveCaretPosition$I(0):a.setCaretPosition$I(0))});b(ik);var jk=j(Ic.DefaultEditorKit,"EndAction",function(a){m(this,a,!1,jk)},"javax.swing.text.TextAction");jk.$clinit$=function(){g(jk,1)};b(jk,"$init0$",function(){var a;(a=jk.superclazz)&&(a=a.$init0$)&&a.apply(this);this.select=!1},1);b(jk,"$init$", +function(){},1);b(jk,"c$$S$Z",function(a,b){jk.superclazz.c$$S.apply(this,[a]);jk.$init$.apply(this);this.select=b},1);b(jk,["actionPerformed$java_awt_event_ActionEvent","actionPerformed$"],function(a){a=this.getTextComponent$java_awt_event_ActionEvent(a);if(null!=a){var b=a.getDocument$().getLength$();this.select?a.moveCaretPosition$I(b):a.setCaretPosition$I(b)}});b(jk);var fl=j(Ic.DefaultEditorKit,"SelectWordAction",function(a){m(this,a,!1,fl)},"javax.swing.text.TextAction");fl.$clinit$=function(){g(fl, +1)};b(fl,"$init0$",function(){var a;(a=fl.superclazz)&&(a=a.$init0$)&&a.apply(this);this.end=this.start=null},1);b(fl,"$init$",function(){},1);b(fl,"c$",function(){fl.superclazz.c$$S.apply(this,["select-word"]);fl.$init$.apply(this);this.start=f(X(6).c$$S$Z,["pigdog",!1]);this.end=f(X(7).c$$S$Z,["pigdog",!0])},1);b(fl,["actionPerformed$java_awt_event_ActionEvent","actionPerformed$"],function(a){this.start.actionPerformed$(a);this.end.actionPerformed$(a)});var gl=j(Ic.DefaultEditorKit,"SelectLineAction", +function(a){m(this,a,!1,gl)},"javax.swing.text.TextAction");gl.$clinit$=function(){g(gl,1)};b(gl,"$init0$",function(){var a;(a=gl.superclazz)&&(a=a.$init0$)&&a.apply(this);this.end=this.start=null},1);b(gl,"$init$",function(){},1);b(gl,"c$",function(){gl.superclazz.c$$S.apply(this,["select-line"]);gl.$init$.apply(this);this.start=f(X(8).c$$S$Z,["pigdog",!1]);this.end=f(X(9).c$$S$Z,["pigdog",!0])},1);b(gl,["actionPerformed$java_awt_event_ActionEvent","actionPerformed$"],function(a){this.start.actionPerformed$(a); +this.end.actionPerformed$(a)});var hl=j(Ic.DefaultEditorKit,"SelectParagraphAction",function(a){m(this,a,!1,hl)},"javax.swing.text.TextAction");hl.$clinit$=function(){g(hl,1)};b(hl,"$init0$",function(){var a;(a=hl.superclazz)&&(a=a.$init0$)&&a.apply(this);this.end=this.start=null},1);b(hl,"$init$",function(){},1);b(hl,"c$",function(){hl.superclazz.c$$S.apply(this,["select-paragraph"]);hl.$init$.apply(this);this.start=f(X(10).c$$S$Z,["pigdog",!1]);this.end=f(X(11).c$$S$Z,["pigdog",!0])},1);b(hl,["actionPerformed$java_awt_event_ActionEvent", +"actionPerformed$"],function(a){this.start.actionPerformed$(a);this.end.actionPerformed$(a)});var Rm=j(Ic.DefaultEditorKit,"SelectAllAction",function(a){m(this,a,!1,Rm)},"javax.swing.text.TextAction");Rm.$clinit$=function(){g(Rm,1)};b(Rm,"$init$",function(){},1);b(Rm,"c$",function(){Rm.superclazz.c$$S.apply(this,["select-all"]);Rm.$init$.apply(this)},1);b(Rm,["actionPerformed$java_awt_event_ActionEvent","actionPerformed$"],function(a){a=this.getTextComponent$java_awt_event_ActionEvent(a);if(null!= +a){var b=a.getDocument$();a.setCaretPosition$I(0);a.moveCaretPosition$I(b.getLength$())}});var Sm=j(Ic.DefaultEditorKit,"UnselectAction",function(a){m(this,a,!1,Sm)},"javax.swing.text.TextAction");Sm.$clinit$=function(){g(Sm,1)};b(Sm,"$init$",function(){},1);b(Sm,"c$",function(){Sm.superclazz.c$$S.apply(this,["unselect"]);Sm.$init$.apply(this)},1);b(Sm,["actionPerformed$java_awt_event_ActionEvent","actionPerformed$"],function(a){a=this.getTextComponent$java_awt_event_ActionEvent(a);null!=a&&a.setCaretPosition$I(a.getCaretPosition$())}); +var Tm=j(Ic.DefaultEditorKit,"ToggleComponentOrientationAction",function(a){m(this,a,!1,Tm)},"javax.swing.text.TextAction");Tm.$clinit$=function(){g(Tm,1)};b(Tm,"$init$",function(){},1);b(Tm,"c$",function(){Tm.superclazz.c$$S.apply(this,["toggle-componentOrientation"]);Tm.$init$.apply(this)},1);b(Tm,["actionPerformed$java_awt_event_ActionEvent","actionPerformed$"],function(a){a=this.getTextComponent$java_awt_event_ActionEvent(a);if(null!=a){var b;b=a.getComponentOrientation$()===X(12).RIGHT_TO_LEFT? +X(12).LEFT_TO_RIGHT:X(12).RIGHT_TO_LEFT;a.setComponentOrientation$java_awt_ComponentOrientation(b);a.\u79d8repaint$()}});n("3.2.4.07");var HA=q("javax.swing.text");N(HA,"Document");n("3.2.4.07");var IA=q("javax.swing.text"),Um=j(IA,"EditorKit",null,null,"Cloneable");Um.$clinit$=function(){g(Um,1)};b(Um,"$init$",function(){},1);b(Um,"c$",function(){Um.$init$.apply(this)},1);b(Um,"clone$",function(){var a;try{a=we(this)}catch(b){if(A(b,"CloneNotSupportedException"))a=null;else throw b;}return a});b(Um, +"install$javax_swing_JEditorPane",function(){});b(Um,"deinstall$javax_swing_JEditorPane",function(){});n("3.2.4.07");var JA=q("javax.swing.text");N(JA,"Element");n("3.2.4.07");var zn=q("javax.swing.text"),Ot=[[0,["javax.swing.text.GapContent",".MarkData"],["javax.swing.text.GapContent",".MarkVector"],["javax.swing.text.GapContent",".InsertUndo"],["javax.swing.text.GapContent",".RemoveUndo"],"javax.swing.text.Segment",["javax.swing.text.GapContent",".StickyPosition"],"java.util.Vector",["javax.swing.text.GapContent", +".UndoPosRef"]]],qj=function(a){return Ot[a]||(Ot[a]=g(Ot[0][a]))},Zb=j(zn,"GapContent",function(){m(this,arguments,0,Zb)},"javax.swing.text.GapVector",[["javax.swing.text.AbstractDocument","javax.swing.text.AbstractDocument.Content"]]);Zb.empty=null;Zb.$clinit$=function(){g(Zb,1);Zb.empty=l(Character.TYPE,[0])};b(Zb,"$init0$",function(){var a;(a=Zb.superclazz)&&(a=a.$init0$)&&a.apply(this);this.search=this.marks=null},1);b(Zb,"$init$",function(){},1);b(Zb,"c$",function(){Zb.c$$I.apply(this,[10])}, +1);b(Zb,"c$$I",function(a){Zb.superclazz.c$$I.apply(this,[Math.max(a,2)]);Zb.$init$.apply(this);a=l(Character.TYPE,[1]);a[0]="\n";this.replace$I$I$O$I(0,0,a,a.length);this.marks=f(qj(2));this.search=f(qj(1).c$$I,[this,null,0])},1);b(Zb,"allocateArray$I",function(a){return l(Character.TYPE,[a])});b(Zb,"getArrayLength$",function(){return this.getArray$().length});b(Zb,"length$",function(){return this.getArrayLength$()-(this.getGapEnd$()-this.getGapStart$())});b(Zb,"insertString$I$S",function(a,b){if(a> +this.length$()||0>a)throw f(g("javax.swing.text.BadLocationException").c$$S$I,["Invalid insert",this.length$()]);var c=b.toCharArray$();this.replace$I$I$O$I(a,0,c,c.length);return f(qj(3).c$$I$I,[this,null,a,b.length$()])});b(Zb,"remove$I$I",function(a,b){if(a+b>=this.length$())throw f(g("javax.swing.text.BadLocationException").c$$S$I,["Invalid remove",this.length$()+1]);var c=this.getString$I$I(a,b),c=f(qj(4).c$$I$S,[this,null,a,c]);this.replace$I$I$O$I(a,b,Zb.empty,0);return c});b(Zb,"getString$I$I", +function(a,b){var c=f(qj(5));this.getChars$I$I$javax_swing_text_Segment(a,b,c);return String.instantialize(c.array,c.offset,c.count)});b(Zb,"getChars$I$I$javax_swing_text_Segment",function(a,b,c){var d=a+b;if(0>a||0>d)throw f(g("javax.swing.text.BadLocationException").c$$S$I,["Invalid location",-1]);if(d>this.length$()||a>this.length$())throw f(g("javax.swing.text.BadLocationException").c$$S$I,["Invalid location",this.length$()+1]);var h=this.getGapStart$(),d=this.getGapEnd$(),j=this.getArray$(); +if(a+b<=h)c.array=j,c.offset=a;else if(a>=h)c.array=j,c.offset=d+a-h;else{h-=a;if(c.isPartialReturn$()){c.array=j;c.offset=a;c.count=h;return}c.array=l(Character.TYPE,[b]);c.offset=0;System.arraycopy$O$I$O$I$I(j,a,c.array,0,h);System.arraycopy$O$I$O$I$I(j,d,c.array,h,b-h)}c.count=b});b(Zb,"createPosition$I",function(a){var b=this.getGapStart$(),c=this.getGapEnd$();a=aa?Zb.superclazz.prototype.getNewArraySize$I.apply(this,[a]):a+524288});b(Zb,"shiftGap$I",function(a){var b=this.getGapStart$(),c=a-b,d=this.getGapEnd$(),h=d+c,f=d-b;Zb.superclazz.prototype.shiftGap$I.apply(this,[a]);if(0=h)break;c.index-=f}}else if(0>c){b=this.findMarkAdjustIndex$I(a);for(a=this.marks.size$();b=d)break;c.index+=f}}this.resetMarksAtZero$()});b(Zb,"resetMarksAtZero$",function(){if(null!=this.marks&&0==this.getGapStart$())for(var a=this.getGapEnd$(),b=0,c=this.marks.size$();bd)break;f.index=h}Zb.superclazz.prototype.shiftGapStartDown$I.apply(this, +[a]);this.resetMarksAtZero$()});b(Zb,"shiftGapEndUp$I",function(a){for(var b=this.findMarkAdjustIndex$I(this.getGapEnd$()),c=this.marks.size$();b=a)break;d.index=a}Zb.superclazz.prototype.shiftGapEndUp$I.apply(this,[a]);this.resetMarksAtZero$()});b(Zb,"compare$javax_swing_text_GapContent_MarkData$javax_swing_text_GapContent_MarkData",function(a,b){return a.indexb.index?1:0});b(Zb,"findMarkAdjustIndex$I",function(a){this.search.index= +Math.max(a,1);a=this.findSortIndex$javax_swing_text_GapContent_MarkData(this.search);for(var b=a-1;0<=b&&this.marks.elementAt$I(b).index==this.search.index;b--)a-=1;return a});b(Zb,"findSortIndex$javax_swing_text_GapContent_MarkData",function(a){var b=0,c=this.marks.size$()-1,d=0;if(-1==c)return 0;var h=0,h=this.marks.elementAt$I(c),h=this.compare$javax_swing_text_GapContent_MarkData$javax_swing_text_GapContent_MarkData(a,h);if(0h?c=d-1:b=d+1}return 0>h?d:d+1});b(Zb,"removeUnusedMarks$",function(){for(var a=this.marks.size$(),b=f(qj(2).c$$I,[a]),c=0;c=d?this.findMarkAdjustIndex$I(c+(h-d)+1):this.findMarkAdjustIndex$I(c+1)):(b=this.findMarkAdjustIndex$I(b+(h-d)),c=this.findMarkAdjustIndex$I(c+(h-d)+1));for(a=null==a?f(qj(7).c$$I,[Math.max(1,c-b)]):a;b=d)f+=h-d,b+=h-d;else if(b>=d){for(b+=h-d;fd)this.close$I$I(a+d,b-d);else{d-=b;var h=this.open$I$I(a+b,d);System.arraycopy$O$I$O$I$I(c,b,this.array,h,d);d=b}System.arraycopy$O$I$O$I$I(c,0,this.array,a,d)}});b(Ue,"close$I$I",function(a,b){if(0!=b){var c=a+b,d=this.g1-this.g0+b;c<=this.g0?(this.g0!=c&&this.shiftGap$I(c),this.shiftGapStartDown$I(this.g0-b)):(a>=this.g0?this.g0!=a&&this.shiftGap$I(a):this.shiftGapStartDown$I(a), +this.shiftGapEndUp$I(this.g0+d))}});b(Ue,"open$I$I",function(a,b){var c=this.g1-this.g0;if(0==b)return a>this.g0&&(a+=c),a;this.shiftGap$I(a);b>=c&&this.shiftEnd$I(this.getArrayLength$()-c+b);this.g0+=b;return a});b(Ue,"resize$I",function(a){var b=this.allocateArray$I(a);System.arraycopy$O$I$O$I$I(this.array,0,b,0,Math.min(a,this.getArrayLength$()));this.array=b});b(Ue,"shiftEnd$I",function(a){var b=this.getArrayLength$(),c=this.g1,b=b-c;a=this.getNewArraySize$I(a);var d=a-b;this.resize$I(a);this.g1= +d;0!=b&&System.arraycopy$O$I$O$I$I(this.array,c,this.array,d,b)});b(Ue,"getNewArraySize$I",function(a){return 2*(a+1)});b(Ue,"shiftGap$I",function(a){if(a!=this.g0){var b=this.g0,c=a-b,d=this.g1,h=d+c;this.g0=a;this.g1=h;0c&&System.arraycopy$O$I$O$I$I(this.array,a,this.array,h,-c)}});b(Ue,"shiftGapStartDown$I",function(a){this.g0=a});b(Ue,"shiftGapEndUp$I",function(a){this.g1=a});n("3.2.4.07");var An=q("javax.swing.text"),uq={},Pt=[[0,"java.awt.Point", +"java.util.Hashtable","javax.swing.KeyStroke","javax.swing.Action","java.util.Vector",["javax.swing.text.JTextComponent",".KeymapWrapper"],"sun.awt.AppContext","javax.swing.text.JTextComponent","javax.swing.DropMode",["javax.swing.text.JTextComponent",".MutableCaretEvent"],"javax.swing.event.CaretListener",["javax.swing.text.Position",".Bias"],["javax.swing.text.JTextComponent",".DropLocation"],"Boolean",["javax.swing.text.JTextComponent",".KeymapActionMap"],["javax.swing.text.JTextComponent",".DefaultKeymap"], +"java.util.HashMap",["javax.swing.text.DefaultEditorKit",".DefaultKeyTypedAction"],"swingjs.JSUtil"]],wb=function(a){return Pt[a]||(Pt[a]=g(Pt[0][a]))},V=j(An,"JTextComponent",function(){m(this,arguments,0,V)},"javax.swing.JComponent",["java.awt.TextComponent","javax.swing.Scrollable"]);V.overrideMap=null;V.KEYMAP_TABLE=null;V.FOCUSED_COMPONENT=null;V.$clinit$=function(){g(V,1);V.KEYMAP_TABLE=f();V.FOCUSED_COMPONENT=f()};b(V,"$init0$",function(){var a;(a=V.superclazz)&&(a=a.$init0$)&&a.apply(this); +this.disabledTextColor=this.selectedTextColor=this.selectionColor=this.caretColor=this.caretEvent=this.keymap=this.highlighter=this.navigationFilter=this.caret=this.model=null;this.editable=!1;this.margin=null;this.focusAccelerator="\x00";this.dragEnabled=!1;this.composedTextEnd=this.composedTextStart=this.composedTextContent=this.composedTextAttribute=this.dropLocation=this.dropMode=null},1);b(V,"$init$",function(){this.dropMode=wb(9).USE_SELECTION},1);b(V,"c$",function(){S(V,this,1);this.enableEvents$J(2056); +this.caretEvent=f(wb(10).c$$javax_swing_text_JTextComponent,[this]);this.addMouseListener$java_awt_event_MouseListener(this.caretEvent);this.addFocusListener$java_awt_event_FocusListener(this.caretEvent);this.setEditable$Z(!0);this.setDragEnabled$Z(!1);this.setLayout$java_awt_LayoutManager(null);this.updateUI$();this.setOpaque$Z(!0)},1);b(V,"updateUI$",function(){V.superclazz.prototype.updateUI$.apply(this,[]);this.invalidate$()});b(V,"addCaretListener$javax_swing_event_CaretListener",function(a){this.listenerList.add$Class$TT(x(wb(11), +["caretUpdate$javax_swing_event_CaretEvent"]),a)});b(V,"removeCaretListener$javax_swing_event_CaretListener",function(a){this.listenerList.remove$Class$TT(x(wb(11),["caretUpdate$javax_swing_event_CaretEvent"]),a)});b(V,"getCaretListeners$",function(){return this.listenerList.getListeners$Class(x(wb(11),["caretUpdate$javax_swing_event_CaretEvent"]))});b(V,"fireCaretUpdate$javax_swing_event_CaretEvent",function(a){for(var b=this.listenerList.getListenerList$(),c=b.length-2;0<=c;c-=2)b[c]===x(wb(11), +["caretUpdate$javax_swing_event_CaretEvent"])&&b[c+1].caretUpdate$(a)});b(V,"setDocument$javax_swing_text_Document",function(a){var b=this.model;this.model=a;this.firePropertyChange$S$O$O("document",b,a);this.revalidate$();this.\u79d8repaint$()});b(V,"getDocument$",function(){return this.model});b(V,"setComponentOrientation$java_awt_ComponentOrientation",function(a){V.superclazz.prototype.setComponentOrientation$java_awt_ComponentOrientation.apply(this,[a])});b(V,"getActions$",function(){return null== +this.getUI$()?null:this.getUI$().getEditorKit$javax_swing_text_JTextComponent(this).getActions$()});b(V,"setMargin$java_awt_Insets",function(a){var b=this.margin;this.margin=a;this.firePropertyChange$S$O$O("margin",b,a);this.invalidate$()});b(V,"getMargin$",function(){return this.margin});b(V,"setNavigationFilter$javax_swing_text_NavigationFilter",function(a){this.navigationFilter=a});b(V,"getNavigationFilter$",function(){return this.navigationFilter});b(V,"getCaret$",function(){return this.caret}); +b(V,"setCaret$javax_swing_text_Caret",function(a){null!=this.caret&&(this.caret.removeChangeListener$javax_swing_event_ChangeListener(this.caretEvent),this.caret.deinstall$javax_swing_text_JTextComponent(this));var b=this.caret;this.caret=a;null!=this.caret&&(this.caret.install$javax_swing_text_JTextComponent(this),this.caret.addChangeListener$javax_swing_event_ChangeListener(this.caretEvent));this.firePropertyChange$S$O$O("caret",b,this.caret)});b(V,"getHighlighter$",function(){return this.highlighter}); +b(V,"setHighlighter$javax_swing_text_Highlighter",function(a){null!=this.highlighter&&this.highlighter.deinstall$javax_swing_text_JTextComponent(this);var b=this.highlighter;this.highlighter=a;null!=this.highlighter&&this.highlighter.install$javax_swing_text_JTextComponent(this);this.firePropertyChange$S$O$O("highlighter",b,a)});b(V,"setKeymap$javax_swing_text_Keymap",function(a){var b=this.keymap;this.keymap=a;this.firePropertyChange$S$O$O("keymap",b,this.keymap);this.updateInputMap$javax_swing_text_Keymap$javax_swing_text_Keymap(b, +a)});b(V,"setDragEnabled$Z",function(a){this.dragEnabled=a});b(V,"getDragEnabled$",function(){return this.dragEnabled});b(V,"setDropMode$javax_swing_DropMode",function(a){if(null!=a)switch(a){case wb(9).USE_SELECTION:case wb(9).INSERT:this.dropMode=a;return}throw f(g("IllegalArgumentException").c$$S,[a+": Unsupported drop mode for text"]);});b(V,"getDropMode$",function(){return this.dropMode});b(V,"dropLocationForPoint$java_awt_Point",function(a){var b=l(wb(12),[1]),c=this.getUI$().viewToModel$javax_swing_text_JTextComponent$java_awt_Point$javax_swing_text_Position_BiasA(this, +a,b);null==b[0]&&(b[0]=wb(12).Forward);return f(wb(13).c$$java_awt_Point$I$javax_swing_text_Position_Bias,[a,c,b[0]])});b(V,"setDropLocation$javax_swing_TransferHandler_DropLocation$O$Z",function(a,b,c){var d=null;this.dropMode===wb(9).USE_SELECTION?null==a?null!=b&&(c||(k(this.caret,"javax.swing.text.DefaultCaret")?(this.caret.setDot$I$javax_swing_text_Position_Bias(b[0].intValue$(),b[3]),this.caret.moveDot$I$javax_swing_text_Position_Bias(b[1].intValue$(),b[4])):(this.caret.setDot$I(b[0].intValue$()), +this.caret.moveDot$I(b[1].intValue$()))),this.caret.setVisible$Z(b[2].booleanValue$())):(null==this.dropLocation?(k(this.caret,"javax.swing.text.DefaultCaret")?(b=this.caret,d=b.isActive$(),d=l(java.lang.Object,-1,[Integer.valueOf$I(b.getMark$()),Integer.valueOf$I(b.getDot$()),wb(14).valueOf$Z(d),b.getMarkBias$(),b.getDotBias$()])):(d=this.caret.isVisible$(),d=l(java.lang.Object,-1,[Integer.valueOf$I(this.caret.getMark$()),Integer.valueOf$I(this.caret.getDot$()),wb(14).valueOf$Z(d)])),this.caret.setVisible$Z(!0)): +d=b,k(this.caret,"javax.swing.text.DefaultCaret")?this.caret.setDot$I$javax_swing_text_Position_Bias(a.getIndex$(),a.getBias$()):this.caret.setDot$I(a.getIndex$())):null==a?null!=b&&this.caret.setVisible$Z(b.booleanValue$()):null==this.dropLocation?(d=k(this.caret,"javax.swing.text.DefaultCaret")?this.caret.isActive$():this.caret.isVisible$(),d=wb(14).valueOf$Z(d),this.caret.setVisible$Z(!1)):d=b;b=this.dropLocation;this.dropLocation=a;this.firePropertyChange$S$O$O("dropLocation",b,this.dropLocation); +return d});b(V,"getDropLocation$",function(){return this.dropLocation});b(V,"updateInputMap$javax_swing_text_Keymap$javax_swing_text_Keymap",function(a,b){for(var c=this.getInputMap$I(0),d=c;null!=c&&!k(c,"javax.swing.text.JTextComponent.KeymapWrapper");)d=c,c=c.getParent$();if(null!=c)if(null==b)d!==c?d.setParent$javax_swing_InputMap(c.getParent$()):d.setParent$javax_swing_InputMap(null);else{var h=f(wb(6).c$$javax_swing_text_Keymap,[b]);d.setParent$javax_swing_InputMap(h);d!==c&&h.setParent$javax_swing_InputMap(c.getParent$())}else null!= +b&&(c=this.getInputMap$I(0),null!=c&&(h=f(wb(6).c$$javax_swing_text_Keymap,[b]),h.setParent$javax_swing_InputMap(c.getParent$()),c.setParent$javax_swing_InputMap(h)));for(d=c=this.getActionMap$();null!=c&&!k(c,"javax.swing.text.JTextComponent.KeymapActionMap");)d=c,c=c.getParent$();null!=c?null==b?d!==c?d.setParent$javax_swing_ActionMap(c.getParent$()):d.setParent$javax_swing_ActionMap(null):(h=f(wb(15).c$$javax_swing_text_Keymap,[b]),d.setParent$javax_swing_ActionMap(h),d!==c&&h.setParent$javax_swing_ActionMap(c.getParent$())): +null!=b&&(c=this.getActionMap$(),null!=c&&(h=f(wb(15).c$$javax_swing_text_Keymap,[b]),h.setParent$javax_swing_ActionMap(c.getParent$()),c.setParent$javax_swing_ActionMap(h)))});b(V,"getKeymap$",function(){return this.keymap});b(V,"addKeymap$S$javax_swing_text_Keymap",function(a,b){var c=f(wb(16).c$$S$javax_swing_text_Keymap,[a,b]);null!=a&&V.getKeymapTable$().put$TK$TV(a,c);return c},1);b(V,"removeKeymap$S",function(a){return V.getKeymapTable$().remove$O(a)},1);b(V,"getKeymap$S",function(a){return V.getKeymapTable$().get$O(a)}, +1);b(V,"getKeymapTable$",function(){var a=wb(7).getAppContext$(),b=a.get$O(V.KEYMAP_TABLE);null==b&&(b=f(wb(17).c$$I,[17]),a.put$O$O(V.KEYMAP_TABLE,b),V.addKeymap$S$javax_swing_text_Keymap("default",null).setDefaultAction$javax_swing_Action(f(wb(18))));return b},1);b(V,"loadKeymap$javax_swing_text_Keymap$javax_swing_text_JTextComponent_KeyBindingA$javax_swing_ActionA",function(a,b,c){for(var d=f(wb(2)),h=0;hb.getLength$()||0>a)throw f(g("IllegalArgumentException").c$$S,["bad position: "+a]);this.caret.moveDot$I(a)}});b(V,"setFocusAccelerator$C",function(a){a=Character.toUpperCase$C(a);var b=this.focusAccelerator;this.focusAccelerator=a;this.firePropertyChange$S$C$C("focusAcceleratorKey",b,this.focusAccelerator);this.firePropertyChange$S$C$C("focusAccelerator", +b,this.focusAccelerator)});b(V,"getFocusAccelerator$",function(){return this.focusAccelerator});b(V,"read$java_io_Reader$O",function(a,b){var c=this.getUI$().getEditorKit$javax_swing_text_JTextComponent(this),d=c.createDefaultDocument$();null!=b&&d.putProperty$O$O("stream",b);try{c.read$java_io_Reader$javax_swing_text_Document$I(a,d,0),this.setDocument$javax_swing_text_Document(d)}catch(h){if(A(h,"javax.swing.text.BadLocationException"))throw f(g("java.io.IOException").c$$S,[h.getMessage$()]);throw h; +}});b(V,"write$java_io_Writer",function(a){var b=this.getDocument$();try{this.getUI$().getEditorKit$javax_swing_text_JTextComponent(this).write$java_io_Writer$javax_swing_text_Document$I$I(a,b,0,b.getLength$())}catch(c){if(A(c,"javax.swing.text.BadLocationException"))throw f(g("java.io.IOException").c$$S,[c.getMessage$()]);throw c;}});b(V,"removeNotify$",function(){V.superclazz.prototype.removeNotify$.apply(this,[]);V.getFocusedComponent$()===this&&wb(7).getAppContext$().remove$O(V.FOCUSED_COMPONENT)}); +b(V,"setCaretPosition$I",function(a){var b=this.getDocument$();if(null!=b){if(a>b.getLength$()||0>a)throw f(g("IllegalArgumentException").c$$S,["bad position: "+a]);this.caret.setDot$I(a)}});b(V,"getCaretPosition$",function(){return this.caret.getDot$()});b(V,"setText$S",function(a){try{var b=this.getDocument$();k(b,"javax.swing.text.AbstractDocument")?b.replace$I$I$S$javax_swing_text_AttributeSet$javax_swing_text_JTextComponent(0,b.getLength$(),a,null,this):(b.remove$I$I(0,b.getLength$()),b.insertString$I$S$javax_swing_text_AttributeSet(0, +a,null))}catch(c){if(A(c,"javax.swing.text.BadLocationException"))wb(19).alert$O("SWINGJS BAD LOCATION EXCEPTION (setText):"+c.getMessage$()+wb(19).getStackTrace$I(-10));else throw c;}});b(V,"getText$",function(){var a=this.getDocument$(),b;try{b=a.getText$I$I(0,a.getLength$())}catch(c){if(A(c,"javax.swing.text.BadLocationException"))b=null;else throw c;}return b});b(V,"getSelectedText$",function(){var a=null,b=Math.min(this.caret.getDot$(),this.caret.getMark$()),c=Math.max(this.caret.getDot$(),this.caret.getMark$()); +if(b!=c)try{a=this.getDocument$().getText$I$I(b,c-b)}catch(d){if(A(d,"javax.swing.text.BadLocationException"))throw f(g("IllegalArgumentException").c$$S,[d.getMessage$()]);throw d;}return a});b(V,"isEditable$",function(){return this.editable});b(V,"setEditable$Z",function(a){if(a!=this.editable){var b=this.editable;this.editable=a;this.firePropertyChange$S$O$O("editable",wb(14).valueOf$Z(b),wb(14).valueOf$Z(this.editable));this.\u79d8repaint$()}});b(V,"getSelectionStart$",function(){return Math.min(this.caret.getDot$(), +this.caret.getMark$())});b(V,"setSelectionStart$I",function(a){this.select$I$I(a,this.getSelectionEnd$())});b(V,"getSelectionEnd$",function(){return Math.max(this.caret.getDot$(),this.caret.getMark$())});b(V,"setSelectionEnd$I",function(a){this.select$I$I(this.getSelectionStart$(),a)});b(V,"select$I$I",function(a,b){var c=this.getDocument$().getLength$();0>a&&(a=0);a>c&&(a=c);b>c&&(b=c);b +this.getPreferredSize$().width:!1});b(V,"getScrollableTracksViewportHeight$",function(){return k(this.getParent$(),"javax.swing.JViewport")?this.getParent$().getHeight$()>this.getPreferredSize$().height:!1});b(V,"paramString$",function(){var a=this.editable?"true":"false",b=null!=this.caretColor?this.caretColor.toString():"",c=null!=this.selectionColor?this.selectionColor.toString():"",d=null!=this.selectedTextColor?this.selectedTextColor.toString():"",h=null!=this.disabledTextColor?this.disabledTextColor.toString(): +"",f=null!=this.margin?this.margin.toString():"";return V.superclazz.prototype.paramString$.apply(this,[])+",caretColor="+b+",disabledTextColor="+h+",editable="+a+",margin="+f+",selectedTextColor="+d+",selectionColor="+c});b(V,"getFocusedComponent$",function(){return wb(7).getAppContext$().get$O(V.FOCUSED_COMPONENT)},1);b(V,"addInputMethodListener$java_awt_event_InputMethodListener",function(a){V.superclazz.prototype.addInputMethodListener$java_awt_event_InputMethodListener.apply(this,[a])});b(V, +"saveComposedText$I",function(a){if(this.composedTextExists$()){var b=this.composedTextStart.getOffset$(),c=this.composedTextEnd.getOffset$()-this.composedTextStart.getOffset$();if(a>=b&&a<=b+c)try{return this.getDocument$().remove$I$I(b,c),!0}catch(d){if(!A(d,"javax.swing.text.BadLocationException"))throw d;}}return!1},uq);b(V,"restoreComposedText",function(){var a=this.getDocument$();try{a.insertString$I$S$javax_swing_text_AttributeSet(this.caret.getDot$(),this.composedTextContent,this.composedTextAttribute), +this.composedTextStart=a.createPosition$I(this.caret.getDot$()-this.composedTextContent.length$()),this.composedTextEnd=a.createPosition$I(this.caret.getDot$())}catch(b){if(!A(b,"javax.swing.text.BadLocationException"))throw b;}},uq);b(V,"composedTextExists$",function(){return null!=this.composedTextStart});b(V,"setTextFromUI$S",function(a){this.setText$S(a)});var Wl=j(An.JTextComponent,"KeyBinding",function(a){m(this,a,!1,Wl)});Wl.$clinit$=function(){g(Wl,1)};b(Wl,"$init0$",function(){var a;(a=Wl.superclazz)&& +(a=a.$init0$)&&a.apply(this);this.actionName=this.key=null},1);b(Wl,"$init$",function(){},1);b(Wl,"c$$javax_swing_KeyStroke$S",function(a,b){Wl.$init$.apply(this);this.key=a;this.actionName=b},1);b(Wl);var Ai=j(An.JTextComponent,"DropLocation",function(a){m(this,a,!1,Ai)},["javax.swing.TransferHandler",".DropLocation"]);Ai.$clinit$=function(){g(Ai,1)};b(Ai,"$init0$",function(){var a;(a=Ai.superclazz)&&(a=a.$init0$)&&a.apply(this);this.index=0;this.$dropPoint=this.bias=null},1);b(Ai,"$init$",function(){}, +1);b(Ai,"c$$java_awt_Point$I$javax_swing_text_Position_Bias",function(a,b,c){Ai.superclazz.c$$java_awt_Point.apply(this,[a]);Ai.$init$.apply(this);this.$dropPoint=f(wb(1).c$$java_awt_Point,[a]);this.index=b;this.bias=c},1);b(Ai,"getIndex$",function(){return this.index});b(Ai,"getBias$",function(){return this.bias});b(Ai,"toString",function(){return this.getClass$().getName$()+"[dropPoint="+this.getDropPoint$()+",index="+this.index+",bias="+this.bias+"]"});b(Ai);var se=j(An.JTextComponent,"DefaultKeymap", +function(a){m(this,a,!1,se)},null,"javax.swing.text.Keymap");se.$clinit$=function(){g(se,1)};b(se,"$init0$",function(){var a;(a=se.superclazz)&&(a=a.$init0$)&&a.apply(this);this.defaultAction=this.bindings=this.parent=this.nm=null},1);b(se,"$init$",function(){},1);b(se,"c$$S$javax_swing_text_Keymap",function(a,b){se.$init$.apply(this);this.nm=a;this.parent=b;this.bindings=f(wb(2))},1);b(se,"getDefaultAction$",function(){return null!=this.defaultAction?this.defaultAction:null!=this.parent?this.parent.getDefaultAction$(): +null});b(se,"setDefaultAction$javax_swing_Action",function(a){this.defaultAction=a});b(se,"getName$",function(){return this.nm});b(se,"getAction$javax_swing_KeyStroke",function(a){var b=this.bindings.get$O(a);null==b&&null!=this.parent&&(b=this.parent.getAction$javax_swing_KeyStroke(a));return b});b(se,"getBoundKeyStrokes$",function(){for(var a=l(wb(3),[this.bindings.size$()]),b=0,c=this.bindings.keys$();c.hasMoreElements$();)a[b++]=c.nextElement$();return a});b(se,"getBoundActions$",function(){for(var a= +l(wb(4),[this.bindings.size$()]),b=0,c=this.bindings.elements$();c.hasMoreElements$();)a[b++]=c.nextElement$();return a});b(se,"getKeyStrokesForAction$javax_swing_Action",function(a){if(null==a)return null;for(var b=null,c=null,d=this.bindings.keys$();d.hasMoreElements$();){var h=d.nextElement$();this.bindings.get$O(h)===a&&(null==c&&(c=f(wb(5))),c.addElement$TE(h))}if(null!=this.parent&&(a=this.parent.getKeyStrokesForAction$javax_swing_Action(a),null!=a)){d=0;for(h=a.length-1;0<=h;h--)this.isLocallyDefined$javax_swing_KeyStroke(a[h])&& +(a[h]=null,d++);if(0h)return this.lineToRect$java_awt_Shape$I(b,0);var f=this.lineToRect$java_awt_Shape$I(b,h);this.tabBase=f.x;h=d.getElement$I(h).getStartOffset$();d=Uh(2).getSharedSegment$();c.getText$I$I$javax_swing_text_Segment(h,a-h,d);c=Uh(3).getTabbedTextWidth$javax_swing_text_Segment$java_awt_FontMetrics$I$javax_swing_text_TabExpander$I(d,this.metrics,this.tabBase,this,h);Uh(2).releaseSharedSegment$javax_swing_text_Segment(d); +f.x+=c;f.width=1;f.height=this.metrics.getHeight$();return f});b(rd,"viewToModel$F$F$java_awt_Shape$javax_swing_text_Position_BiasA",function(a,b,c,d){d[0]=Uh(4).Forward;c=c.getBounds$();d=this.getDocument$();a|=0;var f=b|0;if(fc.y+c.height)return this.getEndOffset$()-1;b=d.getDefaultRootElement$();var g=this.metrics.getHeight$(),f=0=b.getElementCount$())return this.getEndOffset$()-1;b=b.getElement$I(f);0== +f&&(c.x+=this.firstLineOffset,c.width-=this.firstLineOffset);if(ac.x+c.width)return b.getEndOffset$()-1;try{var j=b.getStartOffset$(),k=b.getEndOffset$()-1,l=Uh(2).getSharedSegment$();d.getText$I$I$javax_swing_text_Segment(j,k-j,l);this.tabBase=c.x;var m=j+Uh(3).getTabbedTextOffset$javax_swing_text_Segment$java_awt_FontMetrics$I$I$javax_swing_text_TabExpander$I(l,this.metrics,this.tabBase,a,this,j);Uh(2).releaseSharedSegment$javax_swing_text_Segment(l);return m}catch(n){if(A(n, +"javax.swing.text.BadLocationException"))return-1;throw n;}});b(rd,"insertUpdate$javax_swing_event_DocumentEvent$java_awt_Shape$javax_swing_text_ViewFactory",function(a,b,c){this.updateDamage$javax_swing_event_DocumentEvent$java_awt_Shape$javax_swing_text_ViewFactory(a,b,c)});b(rd,"removeUpdate$javax_swing_event_DocumentEvent$java_awt_Shape$javax_swing_text_ViewFactory",function(a,b,c){this.updateDamage$javax_swing_event_DocumentEvent$java_awt_Shape$javax_swing_text_ViewFactory(a,b,c)});b(rd,"changedUpdate$javax_swing_event_DocumentEvent$java_awt_Shape$javax_swing_text_ViewFactory", +function(a,b,c){this.updateDamage$javax_swing_event_DocumentEvent$java_awt_Shape$javax_swing_text_ViewFactory(a,b,c)});b(rd,"setSize$F$F",function(a,b){rd.superclazz.prototype.setSize$F$F.apply(this,[a,b]);this.updateMetrics$()});b(rd,["nextTabStop$F$I","nextTabStop$"],function(a){return 0==this.tabSize?a:this.tabBase+((((a|0)-this.tabBase)/this.tabSize|0)+1)*this.tabSize});b(rd,"updateDamage$javax_swing_event_DocumentEvent$java_awt_Shape$javax_swing_text_ViewFactory",function(a,b){var c=this.getContainer$(); +this.updateMetrics$();var d=this.getElement$(),d=a.getChange$javax_swing_text_Element(d),f=null!=d?d.getChildrenAdded$():null,g=null!=d?d.getChildrenRemoved$():null;if(null!=f&&0j&&(j=d,this.longLine=f[k]);if(null!=g)for(k=0;kd&&(this.longLine=c,this.preferenceChanged$javax_swing_text_View$Z$Z(null, +!0,!1))):a.getType$()===Uh(5).REMOVE&&f.getElement$I(g)===this.longLine&&(lk.calculateLongestLine.apply(this,[]),this.preferenceChanged$javax_swing_text_View$Z$Z(null,!0,!1))});b(rd,"damageLineRange$I$I$java_awt_Shape$java_awt_Component",function(a,b,c,d){null!=c&&(a=this.lineToRect$java_awt_Shape$I(c,a),b=this.lineToRect$java_awt_Shape$I(c,b),null!=a&&null!=b?(b=a.union$java_awt_Rectangle(b),d.repaint$I$I$I$I(b.x,b.y,b.width,b.height)):d.\u79d8repaint$())});b(rd,"lineToRect$java_awt_Shape$I",function(a, +b){var c=null;this.updateMetrics$();null!=this.metrics&&(c=a.getBounds$(),0==b&&(c.x+=this.firstLineOffset,c.width-=this.firstLineOffset),c=f(Uh(6).c$$I$I$I$I,[c.x,c.y+b*this.metrics.getHeight$(),c.width,this.metrics.getHeight$()]));return c});b(rd,"calculateLongestLine",function(){var a=this.getContainer$();this.font=a.getFont$();this.metrics=a.getFontMetrics$java_awt_Font(this.font);for(var a=this.getElement$(),b=a.getElementCount$(),c=-1,d=0;dc&&(c=g,this.longLine=f)}},lk);b(rd,"getLineWidth$javax_swing_text_Element",function(a){if(null==a)return 0;var b=a.getStartOffset$(),c=a.getEndOffset$(),d,f=Uh(2).getSharedSegment$();try{a.getDocument$().getText$I$I$javax_swing_text_Segment(b,c-b,f),d=Uh(3).getTabbedTextWidth$javax_swing_text_Segment$java_awt_FontMetrics$I$javax_swing_text_TabExpander$I(f,this.metrics,this.tabBase,this,b)}catch(g){if(A(g,"javax.swing.text.BadLocationException"))d=0;else throw g;}Uh(2).releaseSharedSegment$javax_swing_text_Segment(f); +return d},lk);b(rd);n("3.2.4.07");var St=q("javax.swing.text");N(St,"Position",function(){});var Ug=j(St.Position,"Bias",function(a){m(this,a,!1,Ug)});Ug.Forward=null;Ug.Backward=null;Ug.$clinit$=function(){g(Ug,1);Ug.Forward=f(Ug.c$$S,["Forward"]);Ug.Backward=f(Ug.c$$S,["Backward"])};b(Ug,"$init0$",function(){var a;(a=Ug.superclazz)&&(a=a.$init0$)&&a.apply(this);this.name=null},1);b(Ug,"$init$",function(){},1);b(Ug,"toString",function(){return this.name});b(Ug,"c$$S",function(a){Ug.$init$.apply(this); +this.name=a},1);b(Ug);var Vg=j(St.Position,"Bias",function(a){m(this,a,!1,Vg)});Vg.Forward=null;Vg.Backward=null;Vg.$clinit$=function(){g(Vg,1);Vg.Forward=f(Vg.c$$S,["Forward"]);Vg.Backward=f(Vg.c$$S,["Backward"])};b(Vg,"$init0$",function(){var a;(a=Vg.superclazz)&&(a=a.$init0$)&&a.apply(this);this.name=null},1);b(Vg,"$init$",function(){},1);b(Vg,"toString",function(){return this.name});b(Vg,"c$$S",function(a){Vg.$init$.apply(this);this.name=a},1);b(Vg);n("3.2.4.07");var OA=q("javax.swing.text"), +Ld=j(OA,"Segment",null,null,["Cloneable","java.text.CharacterIterator","CharSequence"]);Ld.$clinit$=function(){g(Ld,1)};b(Ld,"$init0$",function(){var a;(a=Ld.superclazz)&&(a=a.$init0$)&&a.apply(this);this.array=null;this.count=this.offset=0;this.partialReturn=!1;this.pos=0},1);b(Ld,"$init$",function(){},1);b(Ld,"c$",function(){Ld.c$$CA$I$I.apply(this,[null,0,0])},1);b(Ld,"c$$CA$I$I",function(a,b,c){Ld.$init$.apply(this);this.array=a;this.offset=b;this.count=c;this.partialReturn=!1},1);b(Ld,"setPartialReturn$Z", +function(a){this.partialReturn=a});b(Ld,"isPartialReturn$",function(){return this.partialReturn});b(Ld,"toString",function(){return null!=this.array?String.instantialize(this.array,this.offset,this.count):String.instantialize()});b(Ld,"first$",function(){this.pos=this.offset;return 0!=this.count?this.array[this.pos]:"\uffff"});b(Ld,"last$",function(){this.pos=this.offset+this.count;return 0!=this.count?(this.pos-=1,this.array[this.pos]):"\uffff"});b(Ld,"current$",function(){return 0!=this.count&& +this.pos=a?(this.pos=a,"\uffff"):this.current$()});b(Ld,"previous$",function(){if(this.pos==this.offset)return"\uffff";this.pos-=1;return this.current$()});b(Ld,"setIndex$I",function(a){var b=this.offset+this.count;if(ab)throw f(g("IllegalArgumentException").c$$S,["bad position: "+a]);this.pos=a;return this.pos!=b&&0!=this.count?this.array[this.pos]: +"\uffff"});b(Ld,"getBeginIndex$",function(){return this.offset});b(Ld,"getEndIndex$",function(){return this.offset+this.count});b(Ld,"getIndex$",function(){return this.pos});b(Ld,"charAt$I",function(a){if(0>a||a>=this.count)throw f(g("StringIndexOutOfBoundsException").c$$I,[a]);return this.array[this.offset+a]});b(Ld,"length$",function(){return this.count});b(Ld,"subSequence$I$I",function(a,b){if(0>a)throw f(g("StringIndexOutOfBoundsException").c$$I,[a]);if(b>this.count)throw f(g("StringIndexOutOfBoundsException").c$$I, +[b]);if(a>b)throw f(g("StringIndexOutOfBoundsException").c$$I,[b-a]);var c=f(Ld);c.array=this.array;c.offset=this.offset+a;c.count=b-a;return c});b(Ld,"clone$",function(){var a;try{a=we(this)}catch(b){if(A(b,"CloneNotSupportedException"))a=null;else throw b;}return a});n("3.2.4.07");var Jw=q("javax.swing.text"),Lo=[[0,"javajs.util.Lst",["javax.swing.text.SegmentCache",".CachedSegment"]]],kf=j(Jw,"SegmentCache",function(){m(this,arguments,0,kf)});kf.sharedCache=null;kf.$clinit$=function(){g(kf,1)}; +b(kf,"$init0$",function(){var a;(a=kf.superclazz)&&(a=a.$init0$)&&a.apply(this);this.segments=null},1);b(kf,"$init$",function(){},1);b(kf,"getSharedInstance$",function(){null==kf.sharedCache&&(kf.sharedCache=f(kf));return kf.sharedCache},1);b(kf,"getSharedSegment$",function(){return kf.getSharedInstance$().getSegment$()},1);b(kf,"releaseSharedSegment$javax_swing_text_Segment",function(a){kf.getSharedInstance$().releaseSegment$javax_swing_text_Segment(a)},1);b(kf,"c$",function(){kf.$init$.apply(this); +this.segments=f(Lo[1]||(Lo[1]=g(Lo[0][1])))},1);b(kf,"getSegment$",function(){var a=this.segments.size$();return 0=f)return 0;var m=d,n=b.array,q=b.offset,r=b.count,t=0,v=-1,u=0,w=0;if(null!=l){w=-j+q;t=null;if(null!=a&&null!=(t=a.getParent$()))w+=t.getStartOffset$();t=l[0];v=l[1]+w;u=l[2]+w;w=l[3]+w}a=b.offset+b.count;for(b=b.offset;b=d&&fd)return-1;var f=2147483647,g=0,j=null;0<=d&&(j=a.modelToView$I(d),g=j.y);for(;null!=j&&g==j.y;)j=Math.abs(j.x-c),j=d)return-1;var f=2147483647,g=a.getDocument$().getLength$(),j=0,k=null;d<=g&&(k=a.modelToView$I(d),j=k.y);for(;null!=k&&j==k.y;)k=Math.abs(c-k.x),k=c.getStartOffset$()&&bthis.getPreferredSpan$I(a)?1E3:0});b(Ra,"getResizeWeight$I",function(){return 0});b(Ra,"setSize$F$F",function(){});b(Ra,"getContainer$",function(){var a=this.getParent$();return null!=a?a.getContainer$():null});b(Ra,"getViewFactory$",function(){var a=this.getParent$();return null!=a?a.getViewFactory$():null});b(Ra,"getToolTipText$F$F$java_awt_Shape", +function(a,b,c){var d=this.getViewIndex$F$F$java_awt_Shape(a,b,c);return 0<=d&&(c=this.getChildAllocation$I$java_awt_Shape(d,c),(k(c,"java.awt.Rectangle")?c:c.getBounds$()).contains$D$D(a,b))?this.getView$I(d).getToolTipText$F$F$java_awt_Shape(a,b,c):null});b(Ra,"getViewIndex$F$F$java_awt_Shape",function(a,b,c){for(var d=this.getViewCount$()-1;0<=d;d--){var f=this.getChildAllocation$I$java_awt_Shape(d,c);if(null!=f&&(k(f,"java.awt.Rectangle")?f:f.getBounds$()).contains$D$D(a,b))return d}return-1}); +b(Ra,"updateChildren$javax_swing_event_DocumentEvent_ElementChange$javax_swing_event_DocumentEvent$javax_swing_text_ViewFactory",function(a,b,c){b=a.getChildrenRemoved$();var d=a.getChildrenAdded$(),f=null;if(null!=d)for(var f=l(Ra,[d.length]),g=0;g=this.getEndOffset$())&&(g=this.getViewCount$()-1);var j=g,k=0<=g?this.getView$I(g):null;null!=k&&k.getStartOffset$()==f&&0j&&(j=this.getViewCount$()-1));var l=f=j+1,k=null!=a?a.getChildrenAdded$():null;null!=k&& +0=f&&a<=l||(k=this.getView$I(a),null!=k&&(g=this.getChildAllocation$I$java_awt_Shape(a,c),this.forwardUpdateToView$javax_swing_text_View$javax_swing_event_DocumentEvent$java_awt_Shape$javax_swing_text_ViewFactory(k,b,g,d)))});b(Ra,"forwardUpdateToView$javax_swing_text_View$javax_swing_event_DocumentEvent$java_awt_Shape$javax_swing_text_ViewFactory",function(a,b,c,d){var f=b.getType$();f===Bi(4).INSERT?a.insertUpdate$javax_swing_event_DocumentEvent$java_awt_Shape$javax_swing_text_ViewFactory(b, +c,d):f===Bi(4).REMOVE?a.removeUpdate$javax_swing_event_DocumentEvent$java_awt_Shape$javax_swing_text_ViewFactory(b,c,d):a.changedUpdate$javax_swing_event_DocumentEvent$java_awt_Shape$javax_swing_text_ViewFactory(b,c,d)});b(Ra,"updateLayout$javax_swing_event_DocumentEvent_ElementChange$javax_swing_event_DocumentEvent$java_awt_Shape",function(a,b,c){null!=a&&null!=c&&(this.preferenceChanged$javax_swing_text_View$Z$Z(null,!0,!0),a=this.getContainer$(),null!=a&&a.\u79d8repaint$())});b(Ra,"modelToView$I$java_awt_Shape", +function(a,b){return this.modelToView$I$java_awt_Shape$javax_swing_text_Position_Bias(a,b,Bi(1).Forward)});b(Ra,"viewToModel$F$F$java_awt_Shape",function(a,b,c){Ra.sharedBiasReturn[0]=Bi(1).Forward;return this.viewToModel$F$F$java_awt_Shape$javax_swing_text_Position_BiasA(a,b,c,Ra.sharedBiasReturn)});b(Ra);n("3.2.4.07");var UA=q("javax.swing.tree");N(UA,"TreeNode");n("3.2.4.07");var yq=q("javax.swing"),Zm={},au=[[0,"javax.swing.LookAndFeel","java.util.Locale","java.util.HashMap","javax.swing.SwingUtilities", +"Error","swingjs.JSToolkit","javax.swing.event.SwingPropertyChangeSupport","java.beans.PropertyChangeListener","java.util.Vector"]],Xl=function(a){return au[a]||(au[a]=g(au[0][a]))},Na=j(yq,"UIDefaults",function(){m(this,arguments,0,Na)},"java.util.Hashtable");Na.$clinit$=function(){g(Na,1)};b(Na,"$init0$",function(){var a;(a=Na.superclazz)&&(a=a.$init0$)&&a.apply(this);this.resourceCache=this.defaultLocale=this.resourceBundles=this.changeSupport=null},1);b(Na,"$init$",function(){this.defaultLocale= +Xl(2).getDefault$()},1);b(Na,"c$",function(){Na.c$$I$F.apply(this,[700,0.75])},1);b(Na,"c$$I$F",function(a,b){Na.superclazz.c$$I$F.apply(this,[a,b]);Na.$init$.apply(this);this.resourceCache=f(Xl(3))},1);b(Na,"c$$OA",function(a){Na.superclazz.c$$I.apply(this,[a.length/2|0]);Na.$init$.apply(this);for(var b=0;bg.width&&(j.x=Math.max(0,g.width-h.width)):j.x=h.width>g.width?g.width-h.width:Math.max(0, +Math.min(g.width-h.width,j.x));j.y+h.height>g.height&&(j.y=Math.max(0,g.height-h.height));null==c&&(0==j.x&&d.width>b.width&&(g.width=d.width),0==j.y&&d.height>b.height&&(g.height=d.height));a.setViewPosition$java_awt_Point(j);a.setViewSize$java_awt_Dimension(g)}});b(tj);n("3.2.4.07");var ZA=q("javax.swing");N(ZA,"WindowConstants");n("3.2.4.07");var $A=q("sun.awt"),gu=[[0,"StringBuffer","java.util.Collections","java.util.IdentityHashMap","java.util.HashMap","java.util.HashSet","Thread","sun.awt.SunToolkit", +"sun.awt.MostRecentThreadAppContext","sun.awt.MostRecentKeyValue","java.beans.PropertyChangeListener","java.beans.PropertyChangeSupport"]],Ci=function(a){return gu[a]||(gu[a]=g(gu[0][a]))},$b=j($A,"AppContext");$b.EVENT_QUEUE_KEY=null;$b.threadGroup2appContext=null;$b.numAppContexts=0;$b.mostRecentThreadAppContext=null;$b.$clinit$=function(){g($b,1);$b.EVENT_QUEUE_KEY=f(Ci(1).c$$S,["EventQueue"]);$b.threadGroup2appContext=Ci(2).synchronizedMap$java_util_Map(f(Ci(3)));$b.numAppContexts=0;$b.mostRecentThreadAppContext= +null};b($b,"$init0$",function(){var a;(a=$b.superclazz)&&(a=a.$init0$)&&a.apply(this);this.changeSupport=this.threadGroup=this.table=null;this.isDisposed=!1;this.shadowMostRecentKeyValue=this.mostRecentKeyValue=this.contextClassLoader=null},1);b($b,"$init$",function(){this.table=f(Ci(4));this.changeSupport=null;this.isDisposed=!1;this.shadowMostRecentKeyValue=this.mostRecentKeyValue=null},1);b($b,"getAppContexts$",function(){return f(Ci(5).c$$java_util_Collection,[$b.threadGroup2appContext.values$()])}, +1);b($b,"isDisposed$",function(){return this.isDisposed});b($b,"c$$ThreadGroup",function(a){$b.$init$.apply(this);$b.numAppContexts++;this.threadGroup=a;$b.threadGroup2appContext.put$TK$TV(a,this);this.contextClassLoader=this||null},1);b($b,"getAppContext$",function(){var a=Ci(6).currentThread$(),b=null,b=$b.mostRecentThreadAppContext;if(null!=b&&b.thread===a)b=b.appContext;else{for(var c=a.getThreadGroup$(),d=c,b=$b.threadGroup2appContext.get$O(d);null==b;){d=d.getParent$();if(null==d){b=Ci(7).createNewAppContext$(); +break}b=$b.threadGroup2appContext.get$O(d)}for(;c!==d;c=c.getParent$())$b.threadGroup2appContext.put$TK$TV(c,b);$b.mostRecentThreadAppContext=f(Ci(8).c$$Thread$sun_awt_AppContext,[a,b])}return b},1);b($b,"isMainContext$sun_awt_AppContext",function(){return!1},1);b($b,"dispose$",function(){});b($b,"get$O",function(a){var b=this.mostRecentKeyValue;if(null!=b&&b.key===a)return b.value;b=this.table.get$O(a);if(null==this.mostRecentKeyValue)this.mostRecentKeyValue=f(Ci(9).c$$O$O,[a,b]),this.shadowMostRecentKeyValue= +f(Ci(9).c$$O$O,[a,b]);else{var c=this.mostRecentKeyValue;this.shadowMostRecentKeyValue.setPair$O$O(a,b);this.mostRecentKeyValue=this.shadowMostRecentKeyValue;this.shadowMostRecentKeyValue=c}return b});b($b,"put$O$O",function(a,b){var c=this.mostRecentKeyValue;null!=c&&c.key===a&&(c.value=b);return this.table.put$TK$TV(a,b)});b($b,"remove$O",function(a){var b=this.mostRecentKeyValue;null!=b&&b.key===a&&(b.value=null);return this.table.remove$O(a)});b($b,"getThreadGroup$",function(){return this.threadGroup}); +b($b,"getContextClassLoader$",function(){return this.contextClassLoader});b($b,"toString",function(){return this.getClass$().getName$()+"[threadGroup="+this.threadGroup.getName$()+"]"});b($b,"getPropertyChangeListeners$",function(){return null==this.changeSupport?l(Ci(10),[0]):this.changeSupport.getPropertyChangeListeners$()});b($b,"addPropertyChangeListener$S$java_beans_PropertyChangeListener",function(a,b){null!=b&&(null==this.changeSupport&&(this.changeSupport=f(Ci(11).c$$O,[this])),this.changeSupport.addPropertyChangeListener$S$java_beans_PropertyChangeListener(a, +b))});b($b,"removePropertyChangeListener$S$java_beans_PropertyChangeListener",function(a,b){null==b||null==this.changeSupport||this.changeSupport.removePropertyChangeListener$S$java_beans_PropertyChangeListener(a,b)});b($b,"getPropertyChangeListeners$S",function(a){return null==this.changeSupport?l(Ci(10),[0]):this.changeSupport.getPropertyChangeListeners$S(a)});b($b);n("3.2.4.07");var Yl=q("sun.awt"),wc=j(Yl,"AWTAccessor",function(){m(this,arguments,0,wc)});wc.componentAccessor=null;wc.kfmAccessor= +null;wc.windowAccessor=null;wc.awtEventAccessor=null;wc.eventQueueAccessor=null;wc.defaultKeyboardFocusManagerAccessor=null;wc.$clinit$=function(){g(wc,1)};b(wc,"$init$",function(){},1);b(wc,"c$",function(){wc.$init$.apply(this)},1);b(wc,"setDefaultKeyboardFocusManagerAccessor$sun_awt_AWTAccessor_DefaultKeyboardFocusManagerAccessor",function(a){wc.defaultKeyboardFocusManagerAccessor=a},1);b(wc,"setKeyboardFocusManagerAccessor$sun_awt_AWTAccessor_KeyboardFocusManagerAccessor",function(a){wc.kfmAccessor= +a},1);b(wc,"getKeyboardFocusManagerAccessor$",function(){return wc.kfmAccessor},1);b(wc,"setWindowAccessor$sun_awt_AWTAccessor_WindowAccessor",function(a){wc.windowAccessor=a},1);b(wc,"getWindowAccessor$",function(){return wc.windowAccessor},1);b(wc,"setComponentAccessor$sun_awt_AWTAccessor_ComponentAccessor",function(a){wc.componentAccessor=a},1);b(wc,"getComponentAccessor$",function(){return wc.componentAccessor},1);b(wc,"setAWTEventAccessor$sun_awt_AWTAccessor_AWTEventAccessor",function(a){wc.awtEventAccessor= +a},1);b(wc,"getAWTEventAccessor$",function(){return wc.awtEventAccessor},1);b(wc,"setEventQueueAccessor$sun_awt_AWTAccessor_EventQueueAccessor",function(a){wc.eventQueueAccessor=a},1);b(wc,"getEventQueueAccessor$",function(){return wc.eventQueueAccessor},1);N(Yl.AWTAccessor,"WindowAccessor",function(){});N(Yl.AWTAccessor,"ComponentAccessor",function(){});N(Yl.AWTAccessor,"KeyboardFocusManagerAccessor",function(){});N(Yl.AWTAccessor,"AWTEventAccessor",function(){});N(Yl.AWTAccessor,"EventQueueAccessor", +function(){});N(Yl.AWTAccessor,"CursorAccessor",function(){});N(Yl.AWTAccessor,"ClientPropertyKeyAccessor",function(){});N(Yl.AWTAccessor,"DefaultKeyboardFocusManagerAccessor",function(){});n("3.2.4.07");var Aq=q("sun.awt"),Bn={},hu=[[0,"java.util.HashSet","java.util.IdentityHashMap","java.awt.AWTEvent"]],iu=function(a){return hu[a]||(hu[a]=g(hu[0][a]))},fd=j(Aq,"AWTAutoShutdown",null,null,"Runnable");fd.theInstance=null;fd.$clinit$=function(){g(fd,1)};b(fd,"$init0$",function(){var a;(a=fd.superclazz)&& +(a=a.$init0$)&&a.apply(this);this.busyThreadSet=null;this.toolkitThreadBusy=!1;this.peerMap=null},1);b(fd,"$init$",function(){this.busyThreadSet=f(iu(1).c$$I,[7]);this.toolkitThreadBusy=!1;this.peerMap=f(iu(2))},1);b(fd,"c$",function(){fd.$init$.apply(this)},1);b(fd,"getInstance$",function(){return null==fd.theInstance?fd.theInstance=f(fd):fd.theInstance},1);b(fd,"notifyToolkitThreadBusy$",function(){Bn.setToolkitBusy$Z.apply(fd.getInstance$(),[!0])},1);b(fd,"notifyToolkitThreadFree$",function(){Bn.setToolkitBusy$Z.apply(fd.getInstance$(), +[!1])},1);b(fd,"notifyThreadBusy$Thread",function(a){this.busyThreadSet.add$TE(a)});b(fd,"notifyThreadFree$Thread",function(a){this.busyThreadSet.remove$O(a)});b(fd,"notifyPeerMapUpdated$",function(){Bn.isReadyToShutdown.apply(this,[])||Bn.activateBlockerThread.apply(this,[])});b(fd,"isReadyToShutdown",function(){return!this.toolkitThreadBusy&&this.peerMap.isEmpty$()&&this.busyThreadSet.isEmpty$()},Bn);b(fd,"setToolkitBusy$Z",function(a){a!=this.toolkitThreadBusy&&a!=this.toolkitThreadBusy&&(this.toolkitThreadBusy= +a)},Bn);b(fd,"run$",function(){});b(fd,"getShutdownEvent$",function(){if(!Aq.AWTAutoShutdown$1){var a=j(Aq,"AWTAutoShutdown$1",function(b){m(this,b,1,a)},g("java.awt.AWTEvent"),null,1);a.$clinit$=function(){g(a,1)};b(a,"$init$",function(){},1)}return f(iu(3).c$$O$I,[this,null,fd.getInstance$(),0],Aq.AWTAutoShutdown$1)},1);b(fd,"activateBlockerThread",function(){},Bn);b(fd,"registerPeer$O$O",function(a,b){this.peerMap.put$TK$TV(a,b);this.notifyPeerMapUpdated$()});b(fd,"unregisterPeer$O$O",function(a, +b){this.peerMap.get$O(a)===b&&this.peerMap.remove$O(a)});b(fd,"getPeer$O",function(a){return this.peerMap.get$O(a)});b(fd,"dumpPeers$java_util_logging_Logger",function(a){a.fine$S("Mapped peers:");for(var b,c=this.peerMap.keySet$().iterator$();c.hasNext$()&&(b=c.next$(),1);)a.fine$S(b+"->"+this.peerMap.get$O(b))});n("3.2.4.07");var Mw=q("sun.awt"),No=[[0,["sun.awt.CausedFocusEvent",".Cause"]]],th=j(Mw,"CausedFocusEvent",function(){m(this,arguments,0,th)},"java.awt.event.FocusEvent");th.$clinit$=function(){g(th, +1)};b(th,"$init0$",function(){var a;(a=th.superclazz)&&(a=a.$init0$)&&a.apply(this);this.cause=null},1);b(th,"$init$",function(){},1);b(th,"getCause$",function(){return this.cause});b(th,"toString",function(){return"java.awt.FocusEvent["+th.superclazz.prototype.paramString$.apply(this,[])+",cause="+this.cause+"] on "+this.getSource$()});b(th,"c$$java_awt_Component$I$Z$java_awt_Component$sun_awt_CausedFocusEvent_Cause",function(a,b,c,d,f){th.superclazz.c$$java_awt_Component$I$Z$java_awt_Component.apply(this, +[a,b,c,d]);th.$init$.apply(this);null==f&&(f=(No[1]||(No[1]=g(No[0][1]))).UNKNOWN);this.cause=f},1);b(th,"retarget$java_awt_event_FocusEvent$java_awt_Component",function(a,b){return null==a?null:f(th.c$$java_awt_Component$I$Z$java_awt_Component$sun_awt_CausedFocusEvent_Cause,[b,a.getID$(),a.isTemporary$(),a.getOppositeComponent$(),k(a,"sun.awt.CausedFocusEvent")?a.getCause$():(No[1]||(No[1]=g(No[0][1]))).RETARGETED])},1);var Me=j(Mw.CausedFocusEvent,"Cause",function(a){m(this,a,!1,Me)},"Enum");Me.$clinit$= +function(){g(Me,1);Mf=l(Me,[0]);Pa(Mf,Me.c$,"UNKNOWN",0,[]);Pa(Mf,Me.c$,"MOUSE_EVENT",1,[]);Pa(Mf,Me.c$,"TRAVERSAL",2,[]);Pa(Mf,Me.c$,"TRAVERSAL_UP",3,[]);Pa(Mf,Me.c$,"TRAVERSAL_DOWN",4,[]);Pa(Mf,Me.c$,"TRAVERSAL_FORWARD",5,[]);Pa(Mf,Me.c$,"TRAVERSAL_BACKWARD",6,[]);Pa(Mf,Me.c$,"MANUAL_REQUEST",7,[]);Pa(Mf,Me.c$,"AUTOMATIC_TRAVERSE",8,[]);Pa(Mf,Me.c$,"ROLLBACK",9,[]);Pa(Mf,Me.c$,"NATIVE_SYSTEM",10,[]);Pa(Mf,Me.c$,"ACTIVATION",11,[]);Pa(Mf,Me.c$,"CLEAR_GLOBAL_FOCUS_OWNER",12,[]);Pa(Mf,Me.c$,"RETARGETED", +13,[])};b(Me,"$init$",function(){},1);b(Me);var Mf=[];b(Me,"values$",function(){return Mf},1);b(Me,"valueOf$S",function(a){for(var b in Mf)if(Mf[b].name==a)return Mf[b];return null},1);b(th);n("3.2.4.07");var aB=q("sun.awt");N(aB,"ComponentFactory");n("3.2.4.07");var bB=q("sun.awt");N(bB,"KeyboardFocusManagerPeerProvider");n("3.2.4.07");var cB=q("sun.awt"),Zl=j(cB,"MostRecentKeyValue");Zl.$clinit$=function(){g(Zl,1)};b(Zl,"$init0$",function(){var a;(a=Zl.superclazz)&&(a=a.$init0$)&&a.apply(this); +this.value=this.key=null},1);b(Zl,"$init$",function(){},1);b(Zl,"c$$O$O",function(a,b){Zl.$init$.apply(this);this.key=a;this.value=b},1);b(Zl,"setPair$O$O",function(a,b){this.key=a;this.value=b});b(Zl);n("3.2.4.07");var dB=q("sun.awt"),$m=j(dB,"MostRecentThreadAppContext");$m.$clinit$=function(){g($m,1)};b($m,"$init0$",function(){var a;(a=$m.superclazz)&&(a=a.$init0$)&&a.apply(this);this.appContext=this.thread=null},1);b($m,"$init$",function(){},1);b($m,"c$$Thread$sun_awt_AppContext",function(a,b){$m.$init$.apply(this); +this.thread=a;this.appContext=b},1);b($m);n("3.2.4.07");var eB=q("sun.awt"),Oo=[[0,"java.awt.event.PaintEvent","java.awt.Rectangle"]],uh=j(eB,"PaintEventDispatcher");uh.dispatcher=null;uh.$clinit$=function(){g(uh,1)};b(uh,"$init$",function(){},1);b(uh,"setPaintEventDispatcher$sun_awt_PaintEventDispatcher",function(a){uh.dispatcher=a},1);b(uh,"getPaintEventDispatcher$",function(){null==uh.dispatcher&&(uh.dispatcher=f(uh));return uh.dispatcher},1);b(uh,"createPaintEvent$java_awt_Component$I$I$I$I", +function(a,b,c,d,h){return f((Oo[1]||(Oo[1]=g(Oo[0][1]))).c$$java_awt_Component$I$java_awt_Rectangle,[a,800,f((Oo[2]||(Oo[2]=g(Oo[0][2]))).c$$I$I$I$I,[b,c,d,h])])});b(uh,"shouldDoNativeBackgroundErase$java_awt_Component",function(){return!0});b(uh,"queueSurfaceDataReplacing$java_awt_Component$Runnable",function(){return!1});b(uh);n("3.2.4.07");var fB=q("sun.awt"),Po=[[0,"sun.awt.EventQueueItem","sun.awt.SunToolkit"]],nk=j(fB,"PostEventQueue");nk.$clinit$=function(){g(nk,1)};b(nk,"$init0$",function(){var a; +(a=nk.superclazz)&&(a=a.$init0$)&&a.apply(this);this.eventQueue=this.queueTail=this.queueHead=null},1);b(nk,"$init$",function(){this.queueTail=this.queueHead=null},1);b(nk,"c$$java_awt_EventQueue",function(a){nk.$init$.apply(this);this.eventQueue=a},1);b(nk,"noEvents$",function(){return null==this.queueHead});b(nk,"flush$",function(){if(null!=this.queueHead){var a;a=this.queueHead;for(this.queueHead=this.queueTail=null;null!=a;)this.eventQueue.postEvent$java_awt_AWTEvent(a.event),a=a.next}});b(nk, +"postEvent$java_awt_AWTEvent",function(a){a=f((Po[1]||(Po[1]=g(Po[0][1]))).c$$java_awt_AWTEvent,[a]);null==this.queueHead?this.queueHead=this.queueTail=a:this.queueTail=this.queueTail.next=a;(Po[2]||(Po[2]=g(Po[0][2]))).wakeupEventQueue$java_awt_EventQueue$Z(this.eventQueue,!1)});b(nk);n("3.2.4.07");var gB=q("sun.awt");N(gB,"RequestFocusController");n("3.2.4.07");var Cn=q("sun.awt"),ju=[[0,"java.util.HashMap","java.awt.EventQueue","sun.awt.AppContext","sun.awt.PostEventQueue","Thread","sun.awt.AWTAutoShutdown", +"sun.awt.PeerEvent","java.awt.Toolkit","java.awt.Dimension","sun.font.FontDesignMetrics","java.util.Locale"]],Tc=function(a){return ju[a]||(ju[a]=g(ju[0][a]))},Z=j(Cn,"SunToolkit",null,"java.awt.Toolkit",["sun.awt.WindowClosingSupport","sun.awt.WindowClosingListener","sun.awt.ComponentFactory"]);Z.appContextMap=null;Z.imgCache=null;Z.startupLocale=null;Z.dataTransfererClassName=null;Z.$clinit$=function(){g(Z,1);Z.appContextMap=f(Tc(1));Z.imgCache=f(Tc(1));Z.startupLocale=null;Z.dataTransfererClassName= +null};b(Z,"$init0$",function(){var a;(a=Z.superclazz)&&(a=a.$init0$)&&a.apply(this);this.windowClosingListener=null},1);b(Z,"$init$",function(){this.windowClosingListener=null},1);b(Z,"c$",function(){S(Z,this,1);var a;a=f(Tc(2));var b=Tc(3).getAppContext$();null!=b&&(b.put$O$O(Tc(3).EVENT_QUEUE_KEY,a),a=f(Tc(4).c$$java_awt_EventQueue,[a]),b.put$O$O("PostEventQueue",a))},1);b(Z,"useBufferPerWindow$",function(){return!1});b(Z,"createNewAppContext$",function(){var a=Tc(5).currentThread$().getThreadGroup$(); +return Z.createNewAppContext$ThreadGroup(a)},1);b(Z,"createNewAppContext$ThreadGroup",function(a){var b,c=System.getProperty$S$S("AWT.EventQueueClass","java.awt.EventQueue");try{b=em(c).newInstance$()}catch(d){if(A(d,"Exception"))System.err.println$S("Failed loading "+c+": "+d),b=f(Tc(2));else throw d;}a=f(Tc(3).c$$ThreadGroup,[a]);a.put$O$O(Tc(3).EVENT_QUEUE_KEY,b);b=f(Tc(4).c$$java_awt_EventQueue,[b]);a.put$O$O("PostEventQueue",b);return a},1);b(Z,"wakeupEventQueue$java_awt_EventQueue$Z",function(a, +b){a.wakeup$Z(b)},1);b(Z,"targetToPeer$O",function(a){return null!=a?Tc(6).getInstance$().getPeer$O(a):null},1);b(Z,"targetCreatedPeer$O$O",function(a,b){null!=a&&null!=b&&Tc(6).getInstance$().registerPeer$O$O(a,b)},1);b(Z,"targetDisposedPeer$O$O",function(a,b){null!=a&&null!=b&&Tc(6).getInstance$().unregisterPeer$O$O(a,b)},1);b(Z,"setAppContext$O$sun_awt_AppContext",function(){return!1},1);b(Z,"getAppContext$O",function(a){return k(a,"java.awt.Component")?a.appContext:null},1);b(Z,"targetToAppContext$O", +function(a){if(null==a)return null;var b=Z.getAppContext$O(a);null==b&&(b=Z.appContextMap.get$O(a));return b},1);b(Z,"setLWRequestStatus$java_awt_Window$Z",function(a,b){a.setLWRequestStatus$Z(b)},1);b(Z,"checkAndSetPolicy$java_awt_Container$Z",function(){},1);b(Z,"insertTargetMapping$O$sun_awt_AppContext",function(a,b){Z.setAppContext$O$sun_awt_AppContext(a,b)||Z.appContextMap.put$TK$TV(a,b)},1);b(Z,"postEvent$sun_awt_AppContext$java_awt_AWTEvent",function(a,b){if(null==b)throw f(g("NullPointerException")); +var c=a.get$O("PostEventQueue");null!=c&&c.postEvent$java_awt_AWTEvent(b)},1);b(Z,"postPriorityEvent$java_awt_AWTEvent",function(a){var e=Tc(7).c$$O$Runnable$J,c=Tc(8).getDefaultToolkit$();if(!Cn.SunToolkit$1){var d=j(Cn,"SunToolkit$1",function(a){m(this,a,1,d)},null,"Runnable",1);d.$clinit$=function(){g(d,1)};b(d,"$init$",function(){},1);b(d,"run$",function(){this.$finals$.e.setPosted$();this.$finals$.e.getSource$().dispatchEvent$java_awt_AWTEvent(this.$finals$.e)})}e=f(e,[c,f(Cn.SunToolkit$1.$init$, +[this,{e:a}]),2]);Z.postEvent$sun_awt_AppContext$java_awt_AWTEvent(Z.targetToAppContext$O(a.getSource$()),e)},1);b(Z,"flushPendingEvents$",function(){var a=Tc(3).getAppContext$().get$O("PostEventQueue");null!=a&&a.flush$()},1);b(Z,"isPostEventQueueEmpty$",function(){var a=Tc(3).getAppContext$().get$O("PostEventQueue");return null==a||a.noEvents$()},1);b(Z,"executeOnEventHandlerThread$O$Runnable",function(a,b){Z.executeOnEventHandlerThread$sun_awt_PeerEvent(f(Tc(7).c$$O$Runnable$J,[a,b,1]))},1);b(Z, +"executeOnEventHandlerThread$O$Runnable$J",function(a,e,c){Z.executeOnEventHandlerThread$sun_awt_PeerEvent((Cn.SunToolkit$2||function(){var a=j(Cn,"SunToolkit$2",function(b){m(this,b,1,a)},g("sun.awt.PeerEvent"),null,1);a.$clinit$=function(){g(a,1)};b(a,"$init$",function(){},1);b(a,"getWhen$",function(){return this.$finals$.when})}(),f(Tc(7).c$$O$Runnable$J,[this,{when:c},a,e,1],Cn.SunToolkit$2)))},1);b(Z,"executeOnEventHandlerThread$sun_awt_PeerEvent",function(a){Z.postEvent$sun_awt_AppContext$java_awt_AWTEvent(Z.targetToAppContext$O(a.getSource$()), +a)},1);b(Z,"invokeLaterOnAppContext$sun_awt_AppContext$Runnable",function(a,b){Z.postEvent$sun_awt_AppContext$java_awt_AWTEvent(a,f(Tc(7).c$$O$Runnable$J,[Tc(8).getDefaultToolkit$(),b,1]))},1);b(Z,"isDispatchThreadForAppContext$O",function(a){return Z.targetToAppContext$O(a).get$O(Tc(3).EVENT_QUEUE_KEY).isDispatchThread$()},1);b(Z,"getScreenSize$",function(){return f(Tc(9).c$$I$I,[this.getScreenWidth$(),this.getScreenHeight$()])});b(Z,"getFontMetrics$java_awt_Font",function(a){return Tc(10).getMetrics$java_awt_Font(a)}); +b(Z,"getFontList$",function(){return l(String,-1,["Dialog","SansSerif","Serif","Monospaced","DialogInput"])});b(Z,"createPanel$java_awt_Panel",function(a){return this.createComponent$java_awt_Component(a)});b(Z,"disableBackgroundErase$java_awt_Component",function(a){a.setBackgroundEraseDisabled$Z(!0)});b(Z,"getSunAwtNoerasebackground$",function(){return!1},1);b(Z,"getSunAwtErasebackgroundonresize$",function(){return!0},1);b(Z,"setOverrideRedirect$java_awt_Window",function(){});b(Z,"getImageFromHash$java_awt_Toolkit$java_net_URL", +function(a,b){var c=Z.imgCache.get$O(b);if(null==c)try{c=a.createImage$java_net_URL(b),Z.imgCache.put$TK$TV(b,c)}catch(d){if(!A(d,"Exception"))throw d;}return c},1);b(Z,"getImageFromHash$java_awt_Toolkit$S",function(a,b){var c=Z.imgCache.get$O(b);if(null==c)try{a.createImage$S(b),Z.imgCache.put$TK$TV(b,c)}catch(d){if(!A(d,"Exception"))throw d;}return c},1);b(Z,"getImage$S",function(a){return Z.getImageFromHash$java_awt_Toolkit$S(this,a)});b(Z,"getImage$java_net_URL",function(a){return Z.getImageFromHash$java_awt_Toolkit$java_net_URL(this, +a)});b(Z,"checkImage$java_awt_Image$I$I$java_awt_image_ImageObserver",function(){return 0});b(Z,"prepareImage$java_awt_Image$I$I$java_awt_image_ImageObserver",function(){return!0});b(Z,"getSystemEventQueueImpl$",function(){return Z.getSystemEventQueueImplPP$sun_awt_AppContext(Tc(3).getAppContext$())});b(Z,"getSystemEventQueueImplPPS$",function(){return Z.getSystemEventQueueImplPP$sun_awt_AppContext(Tc(3).getAppContext$())},1);b(Z,"getSystemEventQueueImplPP$sun_awt_AppContext",function(a){return a.get$O(Tc(3).EVENT_QUEUE_KEY)}, +1);b(Z,"getNativeContainer$java_awt_Component",function(a){return Tc(8).getNativeContainer$java_awt_Component(a)},1);b(Z,"getFocusAcceleratorKeyMask$",function(){return 8});b(Z,"enableInputMethodsForTextComponent$",function(){return!1});b(Z,"getStartupLocale$",function(){null==Z.startupLocale&&(Z.startupLocale=Tc(11).US);return Z.startupLocale},1);b(Z,"getDefaultKeyboardLocale$",function(){return Z.getStartupLocale$()});b(Z,"setDataTransfererClassName$S",function(a){Z.dataTransfererClassName=a},1); +b(Z,"getDataTransfererClassName$",function(){null==Z.dataTransfererClassName&&Tc(8).getDefaultToolkit$();return Z.dataTransfererClassName},1);b(Z,"getWindowClosingListener$",function(){return this.windowClosingListener});b(Z,"setWindowClosingListener$sun_awt_WindowClosingListener",function(a){this.windowClosingListener=a});b(Z,"windowClosingNotify$java_awt_event_WindowEvent",function(a){return null!=this.windowClosingListener?this.windowClosingListener.windowClosingNotify$java_awt_event_WindowEvent(a): +null});b(Z,"windowClosingDelivered$java_awt_event_WindowEvent",function(a){return null!=this.windowClosingListener?this.windowClosingListener.windowClosingDelivered$java_awt_event_WindowEvent(a):null});b(Z,"isModalExcluded$java_awt_Window",function(){return!0},1);b(Z,"getDesktopAAHints$",function(){return null});b(Z,"getContainingWindow$java_awt_Component",function(a){for(;null!=a&&!a.isWindowOrJSApplet$();)a=a.getParent$();return a},1);b(Z,"isNativeGTKAvailable$",function(){return!1});b(Z,"isWindowOpacitySupported$", +function(){return!1});b(Z,"isWindowShapingSupported$",function(){return!1});b(Z,"isWindowTranslucencySupported$",function(){return!1});b(Z,"isTranslucencyCapable$java_awt_GraphicsConfiguration",function(){return!1});b(Z,"needUpdateWindow$",function(){return!1});n("3.2.4.07");var hB=q("sun.awt");N(hB,"WindowClosingListener");n("3.2.4.07");var iB=q("sun.awt");N(iB,"WindowClosingSupport");n("3.2.4.07");var Nw=q("sun.font"),an={},ku=[[0,"sun.font.FontDesignMetrics","java.util.Hashtable",["sun.font.FontDesignMetrics", +".KeyReference"],"swingjs.JSToolkit"]],Cp=function(a){return ku[a]||(ku[a]=g(ku[0][a]))},yb=j(Nw,"FontDesignMetrics",function(){m(this,arguments,0,yb)},"java.awt.FontMetrics");yb.roundingUpValue=0;yb.metricsCache=null;yb.recentMetrics=null;yb.recentIndex=0;yb.$clinit$=function(){g(yb,1);yb.roundingUpValue=0.95;yb.metricsCache=f(Cp(2));yb.recentMetrics=l(yb,[5]);yb.recentIndex=0};b(yb,"$init0$",function(){var a;(a=yb.superclazz)&&(a=a.$init0$)&&a.apply(this);this.height=this.leading=this.descent=this.ascent= +0},1);b(yb,"$init$",function(){this.height=this.ascent=-1},1);b(yb,"getMetrics$java_awt_Font",function(a){var b=null,c;c=yb.metricsCache.get$O(a);null!=c&&(b=c.get$());null==b&&(b=f(yb.c$$java_awt_Font,[a]),yb.metricsCache.put$TK$TV(a,f(Cp(3).c$$O$O,[a,b])));for(a=0;ac)throw f(g("IndexOutOfBoundsException").c$$S,["len="+ +c]);for(c=b+c;bthis.height&&(this.height=this.getAscent$()+(yb.roundingUpValue+this.descent+this.leading|0));return this.height});b(yb,"charWidth$I",function(a){Character.isValidCodePoint$I(a)||(a=65535);if(256>a)return this.getWidths$()[a];var b=l(Character.TYPE,[2]);a=Character.toChars$I$CA$I(a, +b,0);return this.charsWidth$CA$I$I(b,0,a)});var ok=j(Nw.FontDesignMetrics,"KeyReference",function(a){m(this,a,!1,ok)});ok.$clinit$=function(){g(ok,1)};b(ok,"$init0$",function(){var a;(a=ok.superclazz)&&(a=a.$init0$)&&a.apply(this);this.val=this.key=null},1);b(ok,"$init$",function(){},1);b(ok,"c$$O$O",function(a,b){ok.$init$.apply(this);this.key=a;this.val=b},1);b(ok,"get$",function(){return this.val});b(ok,"dispose$",function(){Cp(1).metricsCache.get$O(this.key)===this&&Cp(1).metricsCache.remove$O(this.key)}); +b(ok);b(yb);n("3.2.4.07");var jB=q("sun.swing"),lu=[[0,"sun.awt.AppContext","Thread","javax.swing.UIManager"]],Dn=function(a){return lu[a]||(lu[a]=g(lu[0][a]))},jb=j(jB,"DefaultLookup");jb.DEFAULT_LOOKUP_KEY=null;jb.currentDefaultThread=null;jb.currentDefaultLookup=null;jb.isLookupSet=!1;jb.$clinit$=function(){g(jb,1);jb.DEFAULT_LOOKUP_KEY=f()};b(jb,"$init$",function(){},1);b(jb,"setDefaultLookup$sun_swing_DefaultLookup",function(a){if(jb.isLookupSet||null!=a)null==a&&(a=f(jb)),jb.isLookupSet=!0, +Dn(1).getAppContext$().put$O$O(jb.DEFAULT_LOOKUP_KEY,a),jb.currentDefaultThread=Dn(2).currentThread$(),jb.currentDefaultLookup=a},1);b(jb,"get$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S",function(a,b,c){if(!jb.isLookupSet)return Dn(3).get$O$java_util_Locale(c,a.getLocale$());var d=Dn(2).currentThread$(),h;d===jb.currentDefaultThread?h=jb.currentDefaultLookup:(h=Dn(1).getAppContext$().get$O(jb.DEFAULT_LOOKUP_KEY),null==h&&(h=f(jb),Dn(1).getAppContext$().put$O$O(jb.DEFAULT_LOOKUP_KEY,h)), +jb.currentDefaultThread=d,jb.currentDefaultLookup=h);return h.getDefault$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S(a,b,c)},1);b(jb,"getInt$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S$I",function(a,b,c,d){a=jb.get$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S(a,b,c);return null==a||!k(a,"java.lang.Number")?d:a.intValue$()},1);b(jb,"getInt$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S",function(a,b,c){return jb.getInt$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S$I(a, +b,c,-1)},1);b(jb,"getInsets$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S$java_awt_Insets",function(a,b,c,d){a=jb.get$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S(a,b,c);return null==a||!k(a,"java.awt.Insets")?d:a},1);b(jb,"getInsets$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S",function(a,b,c){return jb.getInsets$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S$java_awt_Insets(a,b,c,null)},1);b(jb,"getBoolean$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S$Z", +function(a,b,c,d){a=jb.get$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S(a,b,c);return null==a||!k(a,"java.lang.Boolean")?d:a.booleanValue$()},1);b(jb,"getBoolean$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S",function(a,b,c){return jb.getBoolean$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S$Z(a,b,c,!1)},1);b(jb,"getColor$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S$java_awt_Color",function(a,b,c,d){a=jb.get$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S(a, +b,c);return null==a||!k(a,"java.awt.Color")?d:a},1);b(jb,"getColor$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S",function(a,b,c){return jb.getColor$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S$java_awt_Color(a,b,c,null)},1);b(jb,"getIcon$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S$javax_swing_Icon",function(a,b,c,d){a=jb.get$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S(a,b,c);return null==a||!k(a,"javax.swing.Icon")?d:a},1);b(jb,"getIcon$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S", +function(a,b,c){return jb.getIcon$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S$javax_swing_Icon(a,b,c,null)},1);b(jb,"getBorder$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S$javax_swing_border_Border",function(a,b,c,d){a=jb.get$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S(a,b,c);return null==a||!k(a,"javax.swing.border.Border")?d:a},1);b(jb,"getBorder$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S",function(a,b,c){return jb.getBorder$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S$javax_swing_border_Border(a, +b,c,null)},1);b(jb,"getDefault$javax_swing_JComponent$javax_swing_plaf_ComponentUI$S",function(a,b,c){return Dn(3).get$O$java_util_Locale(c,a.getLocale$())});b(jb);n("3.2.4.07");var kB=q("sun.swing"),mu={},Qo=[[0,"Boolean","java.awt.Color"]],Xg=j(kB,"SwingLazyValue",null,null,[["javax.swing.UIDefaults","javax.swing.UIDefaults.LazyValue"]]);Xg.$clinit$=function(){g(Xg,1)};b(Xg,"$init0$",function(){var a;(a=Xg.superclazz)&&(a=a.$init0$)&&a.apply(this);this.args=this.methodName=this.className=null}, +1);b(Xg,"$init$",function(){},1);b(Xg,"c$$S",function(a){Xg.c$$S$S$OA.apply(this,[a,null,null])},1);b(Xg,"c$$S$S",function(a,b){Xg.c$$S$S$OA.apply(this,[a,b,null])},1);b(Xg,"c$$S$OA",function(a,b){Xg.c$$S$S$OA.apply(this,[a,null,b])},1);b(Xg,"c$$S$S$OA",function(a,b,c){Xg.$init$.apply(this);this.className=a;this.methodName=b;null!=c&&(this.args=c.clone$())},1);b(Xg,["createValue$javax_swing_UIDefaults","createValue$"],function(){try{0c.toString().indexOf$S("C$.superclazz.prototype.paint$java_awt_Graphics.apply(this"))a.paint$java_awt_Graphics=function(d){b.$clazz$.prototype.paint$java_awt_Graphics.apply(a,[d]);c.apply(a,[d])}},1);n("3.2.4.07");var pB= +q("swingjs.a2s"),ou=[[0,"java.awt.Event","Boolean"]],ll=function(a){return ou[a]||(ou[a]=g(ou[0][a]))},Yd=j(pB,"A2SEvent",null,null,"Runnable");Yd.actionKeyCodes=null;Yd.$clinit$=function(){g(Yd,1);Yd.actionKeyCodes=l(Integer.TYPE,-2,[l(Integer.TYPE,-1,[36,1E3]),l(Integer.TYPE,-1,[35,1001]),l(Integer.TYPE,-1,[33,1002]),l(Integer.TYPE,-1,[34,1003]),l(Integer.TYPE,-1,[38,1004]),l(Integer.TYPE,-1,[40,1005]),l(Integer.TYPE,-1,[37,1006]),l(Integer.TYPE,-1,[39,1007]),l(Integer.TYPE,-1,[112,1008]),l(Integer.TYPE, +-1,[113,1009]),l(Integer.TYPE,-1,[114,1010]),l(Integer.TYPE,-1,[115,1011]),l(Integer.TYPE,-1,[116,1012]),l(Integer.TYPE,-1,[117,1013]),l(Integer.TYPE,-1,[118,1014]),l(Integer.TYPE,-1,[119,1015]),l(Integer.TYPE,-1,[120,1016]),l(Integer.TYPE,-1,[121,1017]),l(Integer.TYPE,-1,[122,1018]),l(Integer.TYPE,-1,[123,1019]),l(Integer.TYPE,-1,[154,1020]),l(Integer.TYPE,-1,[145,1021]),l(Integer.TYPE,-1,[20,1022]),l(Integer.TYPE,-1,[144,1023]),l(Integer.TYPE,-1,[19,1024]),l(Integer.TYPE,-1,[155,1025])])};b(Yd, +"$init0$",function(){var a;(a=Yd.superclazz)&&(a=a.$init0$)&&a.apply(this);this.target=this.e=null},1);b(Yd,"$init$",function(){},1);b(Yd,"c$$java_awt_AWTEvent",function(a){Yd.$init$.apply(this);this.target=a.getSource$();this.e=Yd.convertToOld$java_awt_AWTEvent(a)},1);b(Yd,"run$",function(){var a=this.e,b=this.target;if(k(b,"swingjs.a2s.A2SContainer")){var c=b.getMouseEventTarget$I$I$Z$java_awt_Container_EventTargetFilter$Z(a.x,a.y,!0,null,!1);switch(a.id){case 506:case 502:c=b.getA2SListener$().lastTarget; +break;case 501:b.getA2SListener$().lastTarget=c}for(null!=c&&(b=c);null!=c&&c!==this.target;)a.x-=c.getX$(),a.y-=c.getY$(),c=c.getParent$()}setTimeout(function(){b.postEvent$java_awt_Event(a)})});b(Yd,"getOldEventKey$java_awt_event_KeyEvent",function(a){for(var b=a.getKeyCode$(),c=0;cb?0:b,0>c?0:c]);Va.$init$.apply(this);this.setWrapStyleWord$Z(!1);this.setLineWrap$Z(!1);switch(d){case 0:Fi.setVerticalScrollBarPolicy$I.apply(this, +[20]);Fi.setHorizontalScrollBarPolicy$I.apply(this,[30]);break;case 1:this.setLineWrap$Z(!0);this.setWrapStyleWord$Z(!0);Fi.setVerticalScrollBarPolicy$I.apply(this,[20]);Fi.setHorizontalScrollBarPolicy$I.apply(this,[31]);break;case 2:Fi.setVerticalScrollBarPolicy$I.apply(this,[21]);Fi.setHorizontalScrollBarPolicy$I.apply(this,[30]);break;case 3:this.setLineWrap$Z(!0),this.setWrapStyleWord$Z(!0),Fi.setVerticalScrollBarPolicy$I.apply(this,[21]),Fi.setHorizontalScrollBarPolicy$I.apply(this,[31])}},1); +b(Va,"getVerticalScrollBarPolicy$",function(){return this.verticalScrollBarPolicy});b(Va,"setVerticalScrollBarPolicy$I",function(a){var b=this.verticalScrollBarPolicy;this.verticalScrollBarPolicy=a;this.firePropertyChange$S$I$I("verticalScrollBarPolicy",b,a);this.revalidate$();this.\u79d8repaint$()},Fi);b(Va,"getHorizontalScrollBarPolicy$",function(){return this.horizontalScrollBarPolicy});b(Va,"setHorizontalScrollBarPolicy$I",function(a){var b=this.horizontalScrollBarPolicy;this.horizontalScrollBarPolicy= +a;this.firePropertyChange$S$I$I("horizontalScrollBarPolicy",b,a);this.revalidate$();this.\u79d8repaint$()},Fi);b(Va,"getScrollbarVisibility$",function(){var a=21!=this.getVerticalScrollBarPolicy$(),b=31!=this.getHorizontalScrollBarPolicy$();return a&&b?0:a?1:b?2:3});b(Va,"addTextListener$java_awt_event_TextListener",function(a){null!=a&&(this.textListener=Au(1).add$java_awt_event_TextListener$java_awt_event_TextListener(this.textListener,a),this.newEventsOnly=!0)});b(Va,"removeTextListener$java_awt_event_TextListener", +function(a){null!=a&&(this.textListener=Au(1).remove$java_awt_event_TextListener$java_awt_event_TextListener(this.textListener,a))});b(Va,"getTextListeners$",function(){return this.getListeners$Class(x(Au(2),["textValueChanged$java_awt_event_TextEvent"]))});b(Va,"getPreferredSize$I$I",function(a,b){return this.preferredSize$I$I(a,b)});b(Va,"preferredSize$I$I",function(a,b){return Va.superclazz.prototype.getSizeJS$java_awt_Dimension$I$I$I.apply(this,[null,400,a,b])});b(Va,"getPreferredSize$",function(){return this.preferredSize$()}); +b(Va,"preferredSize$",function(){return 0=pk.instances.indexOf$S(a+";")&&(System.out.println$S("swingjs.api.Interface creating instance of "+ +a),pk.instances+=a+";");var d=em(a);null!=d&&(c=d.newInstance$())}catch(f){System.out.println$S("Swingjs.api.Interface Error creating instance for "+a+": \n"+f),f.stack&&System.out.println(f.stack)}finally{Li._isQuiet=!1}return c},1);b(pk);n("3.2.4.07");var zB=q("swingjs.api.js"),Cu=[[0,"swingjs.JSUtil"]],Hp=function(a){return Cu[a]||(Cu[a]=g(Cu[0][a]))},kb=j(zB,"DOMNode");kb.$clinit$=function(){g(kb,1)};b(kb,"$init$",function(){},1);b(kb,"createElement",function(a,b){var c=null,c=document.createElement(a); +b&&(c.id=b);return c},1);b(kb,"getElement",function(a){return document.getElementById(a)||null},1);b(kb,"createTextNode",function(a){return document.createTextNode(a)||null},1);b(kb,"getParent",function(a){return a.parentNode||null},1);b(kb,"getPreviousSibling",function(a){return a.previousSibling||null},1);b(kb,"firstChild",function(a){return a.firstChild||null},1);b(kb,"lastChild",function(a){return a.lastChild||null},1);b(kb,"setZ",function(a,b){return kb.setStyles(a,["z-index",""+b])},1);b(kb, +"getAttr",function(a,b){if(!a)return null;var c=a[b];return"undefined"==typeof c?null:c},1);b(kb,"getAttrInt",function(a,b){return a&&a[b]||0},1);b(kb,"getStyle",function(a,b){return a&&a.style[b]||null},1);b(kb,"getCSSRectangle",function(a,b){b.x=parseInt(a.style.left.split("p")[0]);b.y=parseInt(a.style.top.split("p")[0]);b.width=parseInt(a.style.width.split("p")[0]);b.height=parseInt(a.style.height.split("p")[0])},1);b(kb,"setAttr",function(a,b,c){a[b]="TRUE"==c?!0:"FALSE"==c?!1:c;return a},1); +b(kb,"setAttrInt",function(a,b,c){a[b]=c},1);b(kb,"setAttrs",function(a,b){for(var c=0;c").outerWidth(1).jquery||a.each(["Width","Height"],function(b,e){function c(b,e,f,h){return a.each(d,function(){e-= +parseFloat(a.css(b,"padding"+this))||0;f&&(e-=parseFloat(a.css(b,"border"+this+"Width"))||0);h&&(e-=parseFloat(a.css(b,"margin"+this))||0)}),e}var d="Width"===e?["Left","Right"]:["Top","Bottom"],f=e.toLowerCase(),h={innerWidth:a.fn.innerWidth,innerHeight:a.fn.innerHeight,outerWidth:a.fn.outerWidth,outerHeight:a.fn.outerHeight};a.fn["inner"+e]=function(b){return void 0===b?h["inner"+e].call(this):this.each(function(){a(this).css(f,c(this,b)+"px")})};a.fn["outer"+e]=function(b,d){return"number"!=typeof b? +h["outer"+e].call(this,b):this.each(function(){a(this).css(f,c(this,b,!0,d)+"px")})}});if(a("
").data("a-b","a").removeData("a-b").data("a-b")){var j=a.fn.removeData;a.fn.removeData=function(b){return arguments.length?j.call(this,a.camelCase(b)):j.call(this)}}var k=/msie ([\w.]+)/.exec(navigator.userAgent.toLowerCase())||[];a.ui.ie=k.length?!0:!1;a.ui.ie6=6===parseFloat(k[1],10);a.fn.extend({disableSelection:function(){return this.bind((a.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection", +function(a){a.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});a.extend(a.ui,{plugin:{add:function(b,e,c){var d;b=a.ui[b].prototype;for(d in c)b.plugins[d]=b.plugins[d]||[],b.plugins[d].push([e,c[d]])},call:function(a,b,e){var c=a.plugins[b];if(c&&a.element[0].parentNode&&11!==a.element[0].parentNode.nodeType)for(b=0;bb&&a",options:{disabled:!1,create:null},_createWidget:function(a,b){b=m(b||this.defaultElement||this)[0];this.element=m(b);this.uuid=n++;this.eventNamespace="."+this.widgetName+this.uuid;this.options=m.widget.extend({},this.options,this._getCreateOptions(),a);this.bindings=m();this.hoverable=m();this.focusable=m();b!==this&&(m.data(b,this.widgetName,this),m.data(b,this.widgetFullName,this),this._on(!0,this.element,{remove:function(a){a.target=== +b&&this.destroy()}}),this.document=m(b.style?b.ownerDocument:b.document||b),this.window=m(this.document[0].defaultView||this.document[0].parentWindow));this._create();this._trigger("create",null,this._getCreateEventData());this._init()},_getCreateOptions:m.noop,_getCreateEventData:m.noop,_create:m.noop,_init:m.noop,destroy:function(){this._destroy();this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(m.camelCase(this.widgetFullName));this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+ +"-disabled ui-state-disabled");this.bindings.unbind(this.eventNamespace);this.hoverable.removeClass("ui-state-hover");this.focusable.removeClass("ui-state-focus")},_destroy:m.noop,widget:function(){return this.element},option:function(a,b){var e=a,c,d,f;if(0===arguments.length)return m.widget.extend({},this.options);if("string"==typeof a)if(e={},c=a.split("."),a=c.shift(),c.length){d=e[a]=m.widget.extend({},this.options[a]);for(f=0;f=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})}catch(w){System.out.println("coremenu failed to load jQuery.ui.mouse -- jQuery version conflict?")}if(!jQuery.ui.position)try{var x=jQuery,y=function(a,b,e){return[parseInt(a[0],10)*(J.test(a[0])?b/100:1),parseInt(a[1],10)*(J.test(a[1])?e/100:1)]};x.ui=x.ui|| +{};var z,B=Math.max,A=Math.abs,C=Math.round,F=/left|center|right/,H=/top|center|bottom/,E=/[\+\-]\d+%?/,G=/^\w+/,J=/%$/,L=x.fn.position;x.position={scrollbarWidth:function(){if(void 0!==z)return z;var a,b,e=x("
"),c=e.children()[0];return x("body").append(e),a=c.offsetWidth,e.css("overflow","scroll"),b=c.offsetWidth,a===b&&(b=e[0].clientWidth),e.remove(),z=a-b},getScrollInfo:function(a){var b= +a.isWindow?"":a.element.css("overflow-x"),e=a.isWindow?"":a.element.css("overflow-y"),e="scroll"===e||"auto"===e&&a.heightg?"left":0k?"top":0B(A(j),A(k))?l.important="horizontal":l.important="vertical";a.using.call(this,b,l)});p.offset(x.extend(u,{using:s}))})};x.ui.position={fit:{left:function(a,b){var e=b.within,c=e.isWindow?e.scrollLeft:e.offset.left,e=e.width,d=a.left- +b.collisionPosition.marginLeft,f=c-d,h=d+b.collisionWidth-e-c,g;b.collisionWidth>e?0=h?(g=a.left+f+b.collisionWidth-e-c,a.left+=f-g):0=f?a.left=c:f>h?a.left=c+e-b.collisionWidth:a.left=c:0c?0=h?(g=a.top+f+b.collisionHeight-c-e,a.top+=f-g):0=f?a.top= +e:f>h?a.top=e+c-b.collisionHeight:a.top=e:0e){if(c=a.left+h+j+k+b.collisionWidth-d-c,0>c||ch?(m=a.top+g+j+k+b.collisionHeight-d-c,a.top+g+j+k>h&&(0>m||mf&&(0O;K.innerHTML="";N.removeChild(K);if(!1!==x.uiBackCompat){var P=jQuery,T=P.fn.position;P.fn.position=function(a){if(!a||!a.offset)return T.call(this,a);var b=a.offset.split(" "), +e=a.at.split(" ");return 1===b.length&&(b[1]=b[0]),/^\d/.test(b[0])&&(b[0]="+"+b[0]),/^\d/.test(b[1])&&(b[1]="+"+b[1]),1===e.length&&(/left|center|right/.test(e[0])?e[1]="center":(e[1]=e[0],e[0]="center")),T.call(this,P.extend(a,{at:e[0]+b[0]+" "+e[1]+b[1],offset:void 0}))}}}catch(V){System.out.println("coremenu failed to load jQuery.ui.position -- jQuery version conflict?")}};b(Dq,"$init$",function(){},1);b(Dq);n("3.2.4.07");var DB=q("swingjs"),Du={},Eu=[[0,"java.util.Hashtable","swingjs.JSUtil", +"java.util.Locale"]],Hn=function(a){return Eu[a]||(Eu[a]=g(Eu[0][a]))},uj=j(DB,"JSApp");uj.$clinit$=function(){g(uj,1)};b(uj,"$init0$",function(){var a;(a=uj.superclazz)&&(a=a.$init0$)&&a.apply(this);this.syncId=this.main=this.htmlName=this.appletName=this.appletDocumentBase=this.appletIdiomaBase=this.appletCodeBase=this.params=null;this.async=this.testAsync=!1;this.strJavaVendor=this.strJavaVersion=null;this.isFrame=this.isApplet=!1;this.fullName=this.html5Applet=null},1);b(uj,"$init$",function(){this.fullName= +"Main"},1);b(uj,"c$",function(){uj.$init$.apply(this)},1);b(uj,"c$$java_util_Hashtable",function(a){uj.$init$.apply(this);this.setAppParams$java_util_Hashtable(a)},1);b(uj,"getParameter$S",function(a){a=this.params.get$O(a.toLowerCase$());return null==a?null:""+a});b(uj,"setAppParams$java_util_Hashtable",function(a){this.params=a;this.params=f(Hn(1));var b;for(a=a.entrySet$().iterator$();a.hasNext$()&&(b=a.next$(),1);)this.params.put$TK$TV(b.getKey$().toLowerCase$(),b.getValue$());b=this.getParameter$S("language"); +null==b&&(b=Hn(2).J2S.getDefaultLanguage(!1));Hn(3).setDefault$java_util_Locale(Hn(2).getDefaultLocale$S(b));this.htmlName=Du.extract$S$S.apply(this,[""+this.getParameter$S("name"),"_object"]);this.appletName=Du.extract$S$S.apply(this,[this.htmlName+"_","_"]);this.syncId=this.getParameter$S("syncId");this.fullName=this.htmlName+"__"+this.syncId+"__";this.params.put$TK$TV("fullname",this.fullName);b=this.params.get$O("codepath");null==b&&(b="../java/");this.appletCodeBase=b.toString();this.appletIdiomaBase= +this.appletCodeBase.substring$I$I(0,this.appletCodeBase.lastIndexOf$S$I("/",this.appletCodeBase.length$()-2)+1)+"idioma";b=this.params.get$O("documentbase");this.appletDocumentBase=null==b?"":b.toString();this.params.containsKey$O("maximumsize")&&Math.max(this.params.get$O("maximumsize").intValue$(),100);this.async=this.testAsync||this.params.containsKey$O("async");b=Hn(2).J2S.findApplet(this.htmlName);a=Hn(2).J2S.getJavaVersion();this.html5Applet=b;this.strJavaVersion=a;this.strJavaVendor="Java2Script/Java 1.6 (HTML5)"; +b=this.params.get$O("assets");null!=b&&Hn(2).loadJavaResourcesFromZip$ClassLoader$S$java_util_Map(this.getClass$().getClassLoader$(),b,null);System.out.println$S("JSApp initialized")});b(uj,"extract$S$S",function(a,b){return a.split(b)[0]},Du);n("3.2.4.07");var EB=q("swingjs"),Fu=[[0,"swingjs.JSUtil"]],Ip=j(EB,"JSApplet",null,"javax.swing.JApplet");Ip.$clinit$=function(){g(Ip,1)};b(Ip,"$init$",function(){},1);b(Ip,["runMain$S$SA","runMain"],function(a,b){var c=null;try{c=em(a)}catch(d){if(A(d,"ClassNotFoundException"))return System.out.println$S("Running main but cannot find class "+ +a),(Fu[1]||(Fu[1]=g(Fu[0][1]))).alert$O("Cannot find class "+a+" for running main(args)"),d.printStackTrace$(),null;throw d;}System.out.println$S("Running main(args) in class "+a);setTimeout(function(){c.$clazz$.main$SA.call(null,b||[])},1);return c});b(Ip);n("3.2.4.07");var Eq=q("swingjs"),Gu=[[0,"javax.swing.SwingUtilities"]],dg=j(Eq,"JSAppletThread",null,"javajs.util.JSThread");dg.$clinit$=function(){g(dg,1)};b(dg,"$init0$",function(){var a;(a=dg.superclazz)&&(a=a.$init0$)&&a.apply(this);this.\u79d8appletViewer= +null},1);b(dg,"$init$",function(){},1);b(dg,"c$$swingjs_JSAppletViewer$ThreadGroup$S",function(a,b,c){dg.superclazz.c$$ThreadGroup$S.apply(this,[b,c]);dg.$init$.apply(this);this.\u79d8appletViewer=a},1);b(dg,"run1$I",function(a){a=this.\u79d8appletViewer.run1$I(a);2!=a&&this.dispatchAndReturn$Runnable$I(null,a)});b(dg,"dispatchAndReturn$Runnable$I",function(a,e){(Gu[1]||(Gu[1]=g(Gu[0][1]))).invokeLater$Runnable((Eq.JSAppletThread$1||function(){var a=j(Eq,"JSAppletThread$1",function(b){m(this,b,1, +a)},null,"Runnable",1);a.$clinit$=function(){g(a,1)};b(a,"$init$",function(){},1);b(a,"run$",function(){this.b$["swingjs.JSAppletThread"].run1$I.apply(this.b$["swingjs.JSAppletThread"],[this.$finals$.m])})}(),f(Eq.JSAppletThread$1.$init$,[this,{m:e}])))});b(dg,"myInit$",function(){return!1});b(dg,"isLooping$",function(){return!1});b(dg,"myLoop$",function(){return!1});b(dg,"whenDone$",function(){});b(dg,"getDelayMillis$",function(){return 0});b(dg,"onException$Exception",function(){});b(dg,"doFinally$", +function(){});b(dg);n("3.2.4.07");var In=q("swingjs"),Zd={},Hu=[[0,"java.net.URL","swingjs.api.Interface","java.awt.Dimension","javajs.util.Lst","java.awt.Insets","swingjs.JSThreadGroup","swingjs.JSAppletThread","Thread","sun.awt.SunToolkit","java.awt.Toolkit","swingjs.JSGraphicsConfiguration","sun.applet.AppletEventMulticaster","sun.applet.AppletEvent","javax.swing.JFrame","javax.swing.SwingUtilities","javax.imageio.ImageIO","java.util.ArrayList","swingjs.JSUtil","java.awt.Font","swingjs.JSFocusPeer", +"javajs.util.PT","swingjs.JSFrameViewer","swingjs.JSToolkit"]],rc=function(a){return Hu[a]||(Hu[a]=g(Hu[0][a]))},ac=j(In,"JSAppletViewer",null,"swingjs.JSFrameViewer",["java.applet.AppletStub","java.applet.AppletContext"]);ac.$clinit$=function(){g(ac,1);try{rc(1).setURLStreamHandlerFactory$java_net_URLStreamHandlerFactory(rc(2).getInstance$S$Z("javajs.util.AjaxURLStreamHandlerFactory",!1))}catch(a){}};b(ac,"$init0$",function(){var a;(a=ac.superclazz)&&(a=a.$init0$)&&a.apply(this);this.maximumSize= +0;this.myThread=this.threadGroup=this.graphicsConfig=null;this.haveFrames=!1;this.currentAppletSize=this.defaultAppletSize=null;this.status=this.nextStatus=0;this.timerQueue=this.appContext=this.sharedOwnerFrame=this.allWindows=this.listeners=null;this.addFrame=this.haveResizable=this.isResizable=!1;this.jAppletFrame=null},1);b(ac,"$init$",function(){this.maximumSize=2147483647;this.haveFrames=!1;this.defaultAppletSize=f(rc(3).c$$I$I,[10,10]);this.currentAppletSize=f(rc(3).c$$I$I,[10,10]);this.status= +0;this.allWindows=f(rc(4))},1);b(ac,"addWindow$java_awt_Window",function(a){this.allWindows.removeObj$O(a);this.allWindows.addLast$TV(a)});b(ac,"c$$java_util_Hashtable",function(a){ac.superclazz.c$$java_util_Hashtable.apply(this,[a]);ac.$init$.apply(this);System.out.println$S("JSAppletViewer initializing2");this.isApplet=!0;this.appletViewer=this;Zd.setDisplayParams$java_util_Hashtable.apply(this,[a])},1);b(ac,"setDisplayParams$java_util_Hashtable",function(a){this.display=a.get$O("display");var b= +""+a.get$O("isResizable");this.haveResizable=(this.isResizable="true".equalsIgnoreCase$S(b))||"false".equalsIgnoreCase$S(b);this.addFrame="true".equalsIgnoreCase$S(""+a.get$O("addFrame"));this.insets=f(rc(5).c$$I$I$I$I,[0,0,0,0]);this.threadGroup=f(rc(6).c$$S,[this.appletName]);this.myThread=f(rc(7).c$$swingjs_JSAppletViewer$ThreadGroup$S,[this,this.threadGroup,this.appletName]);rc(8).thisThread=this.myThread;this.appContext=rc(9).createNewAppContext$();rc(10).getDefaultToolkit$();f(rc(11)).getDevice$()}, +Zd);b(ac,"start$",function(){0==this.status?this.myThread.start$():this.showStatus$S("already started")});b(ac,"addAppletListener$sun_applet_AppletListener",function(a){this.listeners=rc(12).add$sun_applet_AppletListener$sun_applet_AppletListener(this.listeners,a)});b(ac,"removeAppletListener$sun_applet_AppletListener",function(a){this.listeners=rc(12).remove$sun_applet_AppletListener$sun_applet_AppletListener(this.listeners,a)});b(ac,"dispatchAppletEvent$I$O",function(a,b){if(null!=this.listeners){var c= +f(rc(13).c$$O$I$O,[this,a,b]);this.listeners.appletStateChanged$(c)}});b(ac,"isActive$",function(){return!0});b(ac,"appletResize$I$I",function(a,e){var c=f(rc(3).c$$I$I,[this.currentAppletSize.width,this.currentAppletSize.height]);this.currentAppletSize.width=a;this.currentAppletSize.height=e;this.applet.getRootPane$().setBounds$I$I$I$I(0,0,this.getWidth$(),this.getHeight$());this.applet.getContentPane$().setBounds$I$I$I$I(0,0,this.getWidth$(),this.getHeight$());this.applet.setBounds$I$I$I$I(0,0, +a,e);this.applet.getContentPane$().revalidate$();if(this.addFrame){this.jAppletFrame=f(rc(14).c$$S,["SwingJS Applet Viewer"]);var d=this.applet.getContentPane$();this.jAppletFrame.setContentPane$java_awt_Container(d);this.applet.setVisible$Z(!1);this.jAppletFrame.pack$();this.jAppletFrame.setDefaultCloseOperation$I(2)}rc(15).invokeLater$Runnable((In.JSAppletViewer$1||function(){var a=j(In,"JSAppletViewer$1",function(b){m(this,b,1,a)},null,"Runnable",1);a.$clinit$=function(){g(a,1)};b(a,"$init$",function(){}, +1);b(a,"run$",function(){this.b$["swingjs.JSAppletViewer"].applet.repaint$I$I$I$I(0,0,this.b$["swingjs.JSAppletViewer"].getWidth$.apply(this.b$["swingjs.JSAppletViewer"],[]),this.b$["swingjs.JSAppletViewer"].getHeight$.apply(this.b$["swingjs.JSAppletViewer"],[]));this.b$["swingjs.JSAppletViewer"].dispatchAppletEvent$I$O.apply(this.b$["swingjs.JSAppletViewer"],[51234,this.$finals$.currentSize])})}(),f(In.JSAppletViewer$1.$init$,[this,{currentSize:c}])))});b(ac,"getDocumentBase$",function(){try{return f(rc(1).c$$S, +[this.params.get$O("documentbase")])}catch(a){if(A(a,"java.net.MalformedURLException"))return null;throw a;}});b(ac,"getCodeBase$",function(){try{return f(rc(1).c$$S,[this.params.get$O("codepath")])}catch(a){if(A(a,"java.net.MalformedURLException"))return null;throw a;}});b(ac,"getParameter$S",function(a){var b=ac.superclazz.prototype.getParameter$S.apply(this,[a]);System.out.println$S("JSApp get parameter: "+a+" = "+b);return b});b(ac,"getAppletContext$",function(){return this});b(ac,"getHeight$", +function(){return this.html5Applet._getHeight()});b(ac,"getWidth$",function(){return this.html5Applet._getWidth()});b(ac,"setBounds$I$I$I$I",function(a,b,c,d){this.applet.reshape$I$I$I$I(a,b,c,d);this.currentAppletSize.width=c;this.currentAppletSize.height=d});b(ac,"getImage$java_net_URL",function(a){try{return rc(16).read$java_net_URL(a)}catch(b){return null}});b(ac,"getApplet$S",function(a){a=a.toLowerCase$();var b=J2S._applets,c;for(c in b)if(c.toLowerCase()=="."+a)return b[c]._applet;return null}); +b(ac,"getApplets$",function(){var a=f(rc(17)),e=J2S._applets,c;for(c in e){var d=e[c]._applet;d&&!a.contains$O(d)&&a.add$O(d)}if(!In.JSAppletViewer$2){var h=j(In,"JSAppletViewer$2",function(a){m(this,a,1,h)},null,"java.util.Enumeration",1);h.$clinit$=function(){g(h,1)};b(h,"$init0$",function(){var a;(a=h.superclazz)&&(a=a.$init0$)&&a.apply(this);this.i=0},1);b(h,"$init$",function(){this.i=0},1);b(h,"hasMoreElements$",function(){return this.i= +this.$finals$.appletList.size$())throw f(g("java.util.NoSuchElementException"));return this.$finals$.appletList.get$I(this.i++)})}return f(In.JSAppletViewer$2.$init$,[this,{appletList:a}])});b(ac,"showDocument$java_net_URL",function(a){rc(18).showWebPage$java_net_URL$O(a,null)});b(ac,"showDocument$java_net_URL$S",function(a,b){rc(18).showWebPage$java_net_URL$O(a,b)});b(ac,"showStatus$S",function(a){rc(18).log$S(a);Li._LoaderProgressMonitor.showStatus(a,!0)});b(ac,"showAppletStatus$S",function(a){this.getAppletContext$().showStatus$S(this.htmlName+ +" "+a)},Zd);b(ac,"showAppletException$Throwable",function(a){Zd.showAppletStatus$S("error "+(a.getMessage?a.getMessage$():a));a.printStackTrace$?a.printStackTrace$():System.out.println(a.stack)},Zd);b(ac,"run1$I",function(a){System.out.println$S("JSAppletViewer thread run1 mode="+a+" status="+this.nextStatus);var b=!1;switch(a){case 0:this.currentAppletSize.width=this.defaultAppletSize.width=this.getWidth$();this.currentAppletSize.height=this.defaultAppletSize.height=this.getHeight$();this.nextStatus= +1;b=!0;break;case 1:switch(this.nextStatus){case 1:if(0!=this.status){Zd.showAppletStatus$S.apply(this,["notdisposed"]);this.status=7;break}System.out.println$S("JSAppletViewer runloader");Zd.runLoader.apply(this,[]);this.nextStatus=null==this.main?2:76;b=!0;break;case 2:if(1!=this.status&&5!=this.status){Zd.showAppletStatus$S.apply(this,["notloaded"]);break}System.out.println$S("JSAppletViewer init");this.applet.setFont$java_awt_Font(f(rc(19).c$$S$I$I,["Dialog",0,12]));this.applet.\u79d8resizeOriginal$I$I(this.defaultAppletSize.width, +this.defaultAppletSize.height);this.applet.init$();this.applet.validate$();this.status=2;Zd.showAppletStatus$S.apply(this,["initialized"]);this.nextStatus=3;b=!0;break;case 3:if(2!=this.status&&4!=this.status){Zd.showAppletStatus$S.apply(this,["notstarted"]);this.status=7;break}this.applet.getRootPane$().addNotify$();System.out.println$S("JSAppletViewer start"+this.currentAppletSize);this.applet.\u79d8resizeOriginal$I$I(this.currentAppletSize.width,this.currentAppletSize.height);this.applet.start$(); +this.status=3;Zd.showAppletStatus$S.apply(this,["started"]);this.nextStatus=35;b=!0;break;case 35:this.applet.getContentPane$().setBounds$java_awt_Rectangle(this.applet.getBounds$());this.applet.setVisible$Z(!0);this.applet.validate$();Zd.showAppletStatus$S.apply(this,["ready"]);rc(18).readyCallback$S$S$java_awt_JSComponent$swingjs_JSAppletViewer(this.appletName,this.fullName,this.applet,this);this.isResizable&&(!this.addFrame&&null==this.resizer)&&(this.resizer=rc(18).getInstance$S("swingjs.plaf.Resizer").set$swingjs_JSFrameViewer$javax_swing_RootPaneContainer(this, +this.top),null!=this.resizer&&this.resizer.show$());rc(20).setFocusLast$java_applet_JSApplet(this.applet);this.applet.\u79d8repaint$();break;case 4:3==this.status?(this.status=4,this.applet.setVisible$Z(!1),this.applet.stop$(),Zd.showAppletStatus$S.apply(this,["stopped"])):(Zd.showAppletStatus$S.apply(this,["notstopped"]),this.status=7);break;case 5:4==this.status||2==this.status?(this.status=5,this.applet.destroy$(),Zd.showAppletStatus$S.apply(this,["destroyed"])):(Zd.showAppletStatus$S.apply(this, +["notdestroyed"]),this.status=7);break;case 75:5==this.status||1==this.status?(Zd.showAppletStatus$S.apply(this,["notdisposed"]),this.status=7):(this.status=0,this.applet=null,Zd.showAppletStatus$S.apply(this,["disposed"]));break;case 76:Zd.showAppletStatus$S.apply(this,["running "+this.main]);a=this.params.get$O("args");k(a,"java.lang.String")&&(a=rc(21).split$S$S(a," "));this.applet.runMain$swingjs_JSAppletViewer$SA(this,a);break;case 6:break;default:System.out.println$S("unrecognized JSAppletViewer status: "+ +this.nextStatus)}break;default:System.out.println$S("unrecognized JSAppletThread mode: "+a)}return b?1:2});b(ac,"runLoader",function(){this.dispatchAppletEvent$I$O(51235,null);this.status=1;this.main=this.getParameter$S("main");var a=null==this.main?this.getParameter$S("code"):null;try{if(null==a&&null==this.main)throw System.err.println$S('runloader.err-- "code" or "main" must be specified.'),f(g("InstantiationException").c$$S,['"code" or "main" must be specified.']);null==a?a="swingjs.JSDummyApplet": +0>a.indexOf$S(".")&&(a="_."+a);this.top=this.applet=rc(18).getInstance$S(a);null==this.applet?(System.out.println$S(a+" could not be launched"),this.status=7):k(this.applet,"javax.swing.JApplet")||(rc(18).alert$O(a+" is not a JApplet!?"),this.status=7);J2S._applets["."+this.htmlName]={_applet:this.applet}}catch(b){if(A(b,"InstantiationException")){this.status=7;Zd.showAppletException$Throwable.apply(this,[b]);return}if(A(b,"Exception")){this.status=7;Zd.showAppletException$Throwable.apply(this,[b]); +return}if(A(b,"ThreadDeath")){this.status=7;Zd.showAppletStatus$S.apply(this,["death"]);return}if(A(b,"Error")){this.status=7;Zd.showAppletException$Throwable.apply(this,[b]);return}throw b;}finally{this.dispatchAppletEvent$I$O(51236,null)}null!=this.applet&&(this.applet.setStub$java_applet_AppletStub(this),this.applet.setVisible$Z(!1),this.applet.setDispatcher$(),Zd.showAppletStatus$S.apply(this,["loaded"]))},Zd);b(ac,"newFrameViewer$Z",function(a){return this.haveFrames||a?f(rc(22)):null});b(ac, +"getTimerQueue$",function(){return null==this.timerQueue?this.timerQueue=f(rc(17)):this.timerQueue});b(ac,"exit$",function(){for(var a=this.allWindows.size$();0<=--a;)try{this.allWindows.get$I(a).dispose$()}catch(b){}});b(ac,"getAudioClip$java_net_URL",function(a){return rc(23).getAudioClip$java_net_URL(a)});b(ac);n("3.2.4.07");var FB=q("swingjs"),Iu={},Ju=[[0,"swingjs.JSUtil","Thread","java.awt.event.FocusEvent","swingjs.JSToolkit","java.awt.JSComponent","java.awt.event.WindowEvent","java.awt.KeyboardFocusManager"]], +rk=function(a){return Ju[a]||(Ju[a]=g(Ju[0][a]))},Od=j(FB,"JSFocusPeer",null,null,"java.awt.peer.KeyboardFocusManagerPeer");Od.$clinit$=function(){g(Od,1)};b(Od,"$init0$",function(){var a;(a=Od.superclazz)&&(a=a.$init0$)&&a.apply(this);this.currentFocusOwner=this.currentWindow=null},1);b(Od,"$init$",function(){},1);b(Od,"setCurrentFocusedWindow$java_awt_Window",function(a){this.currentWindow=a});b(Od,"clearGlobalFocusOwner$java_awt_Window",function(){this.currentFocusOwner=null});b(Od,"getCurrentFocusedWindow$", +function(){var a=Iu.getAccessibleActiveElement.apply(this,[]),a=rk(1).jQuery.$(a).closest("swingjs-window");return this.currentWindow=Od.getAccessibleComponentFor$swingjs_api_js_DOMNode(a[0]||null)});b(Od,"getCurrentFocusOwner$O",function(a){this.currentFocusOwner=Od.getAccessibleComponentFor$swingjs_api_js_DOMNode(null==a?Iu.getAccessibleActiveElement.apply(this,[]):a);null==this.currentFocusOwner&&(this.currentWindow=null);return this.currentFocusOwner});b(Od,"setCurrentFocusOwner$java_awt_Component", +function(a){this.currentFocusOwner=a;null!=a&&a.ui.focus$()});b(Od,"getAccessibleActiveElement",function(){var a=Od.getActiveElement$();return null==a||null==Od.getAccessibleComponentFor$swingjs_api_js_DOMNode(a)?null:a},Iu);b(Od,"getActiveElement$",function(){var a=document.activeElement;return!a||a==document.body||!a.ui&&!a["data-component"]?null:a},1);b(Od,"getAccessibleComponentFor$swingjs_api_js_DOMNode",function(a){a=a&&a.ui&&a.ui.jc||a&&a["data-component"]||null;return null!=a&&a.getAppContext$().getThreadGroup$()=== +rk(2).currentThread$().getThreadGroup$()?a:null},1);b(Od,"handleJSMouseEventFocus$java_awt_AWTEvent",function(a){System.out.println$S("handling mouseeventfocus event "+a)});b(Od,"getCurrentFocusOwner$",function(){return this.getCurrentFocusOwner$O(null)});b(Od,"handleJSFocus$O$O$Z",function(a,b,c){null==b?(b=f(rk(3).c$$java_awt_Component$I,[a,c?1004:1005]),a.dispatchEvent$java_awt_AWTEvent(b)):c?(b=Od.getAccessibleComponentFor$swingjs_api_js_DOMNode(b),null!=b&&b!==a&&b.dispatchEvent$java_awt_AWTEvent(f(rk(3).c$$java_awt_Component$I$Z$java_awt_Component, +[b,1005,!1,a])),a.dispatchEvent$java_awt_AWTEvent(f(rk(3).c$$java_awt_Component$I$Z$java_awt_Component,[a,1004,!1,b]))):(b=rk(4).getCurrentFocusOwner$O(b),a.dispatchEvent$java_awt_AWTEvent(f(rk(3).c$$java_awt_Component$I$Z$java_awt_Component,[a,1005,!1,b])),null!=b&&b!==a&&b.dispatchEvent$java_awt_AWTEvent(f(rk(3).c$$java_awt_Component$I$Z$java_awt_Component,[b,1004,!1,a])))},1);b(Od,"checkFrameFocusOnMouseDown$java_awt_AWTEvent",function(a){a=rk(5).\u79d8getTopInvokableAncestor$java_awt_Component$Z(a.getSource$(), +!0);if(!(null!=this.getCurrentFocusOwner$()&&a===this.currentWindow)){var b=this.currentWindow;a.dispatchEvent$java_awt_AWTEvent(f(rk(6).c$$java_awt_Window$I,[a,205]));this.setCurrentFocusedWindow$java_awt_Window(a);if(k(a,"javax.swing.JInternalFrame"))try{a.setSelected$Z(!0)}catch(c){if(A(c,"java.beans.PropertyVetoException"))c.printStackTrace$();else throw c;}else k(a,"java.awt.Window")&&a.toFront$();a.\u79d8isFocusSetAndEnabled$()&&(a.ui.focus$(),Od.handleJSFocus$O$O$Z(a,b,!0))}});b(Od,"focus$swingjs_api_js_DOMNode", +function(a){a.focus()},1);b(Od,"setFocusLast$java_applet_JSApplet",function(a){a=rk(7).getMostRecentFocusOwner$java_awt_Window(a);null!=a&&a.requestFocus$()},1);b(Od);n("3.2.4.07");var GB=q("swingjs"),So=[[0,"swingjs.JSToolkit"]],Xe=j(GB,"JSFontMetrics",null,"java.awt.FontMetrics");Xe.$clinit$=function(){g(Xe,1)};b(Xe,"$init0$",function(){var a;(a=Xe.superclazz)&&(a=a.$init0$)&&a.apply(this);this.iwidths=this.fwidths=null;this.FIRST_PRINTABLE=0},1);b(Xe,"$init$",function(){this.FIRST_PRINTABLE=32}, +1);b(Xe,"c$",function(){Xe.superclazz.c$$java_awt_Font.apply(this,[null]);Xe.$init$.apply(this)},1);b(Xe,"setFont$java_awt_Font",function(a){this.font=a});b(Xe,"getLeading$",function(){return(this.font.getSize$()/20|0)+1});b(Xe,"getAscent$",function(){return this.font.getSize$()});b(Xe,"getDescent$",function(){return(this.font.getSize$()/4|0)+1});b(Xe,"charWidth$C",function(a){return 256>a.$c()?this.getWidthsFloat$()[a.$c()]|0:this.stringWidth$S(""+a)});b(Xe,"charWidth$I",function(a){var b;return 256> +(a+0==a?a:a=(b=a).charCodeAt(0))?this.getWidthsFloat$()[a]|0:this.stringWidth$S(isChar?b:String.fromCharCode(a))});b(Xe,"stringWidth$S",function(a){return(So[1]||(So[1]=g(So[0][1]))).getStringWidth$swingjs_api_js_HTML5CanvasContext2D$java_awt_Font$S(null,this.font,a)|0});b(Xe,"getWidths$",function(){if(null!=this.iwidths)return this.iwidths;this.iwidths=l(Integer.TYPE,[256]);this.getWidthsFloat$();for(var a=this.FIRST_PRINTABLE;256>a;a++)this.iwidths[a]=this.fwidths[a]|0;return this.iwidths});b(Xe, +"getWidthsFloat$",function(){if(null!=this.fwidths)return this.fwidths;this.fwidths=l(Float.TYPE,[256]);for(var a=this.FIRST_PRINTABLE;256>a;a++)this.fwidths[a]=(So[1]||(So[1]=g(So[0][1]))).getStringWidth$swingjs_api_js_HTML5CanvasContext2D$java_awt_Font$S(null,this.font,""+String.fromCharCode(a));return this.fwidths});b(Xe,"getLineMetrics$S$java_awt_Graphics",function(a){return this.font.getLineMetrics$S$O(a,null)});b(Xe,"getLineMetrics$S$I$I$java_awt_Graphics",function(a,b,c){return this.font.getLineMetrics$S$I$I$O(a, +b,c,null)});b(Xe,"getLineMetrics$CA$I$I$java_awt_Graphics",function(a,b,c){return this.font.getLineMetrics$CA$I$I$O(a,b,c,null)});b(Xe,"getLineMetrics$java_text_CharacterIterator$I$I$java_awt_Graphics",function(a,b,c){return this.font.getLineMetrics$java_text_CharacterIterator$I$I$O(a,b,c,null)});n("3.2.4.07");var HB=q("swingjs"),bn={},Ku=[[0,"java.awt.Insets","swingjs.JSMouse","swingjs.JSGraphics2D","swingjs.api.js.DOMNode","swingjs.plaf.Resizer"]],cn=function(a){return Ku[a]||(Ku[a]=g(Ku[0][a]))}, +Sb=j(HB,"JSFrameViewer",null,"swingjs.JSApp","swingjs.api.js.JSInterface");Sb.canvasCount=0;Sb.canvas00=null;Sb.$clinit$=function(){g(Sb,1)};b(Sb,"$init0$",function(){var a;(a=Sb.superclazz)&&(a=a.$init0$)&&a.apply(this);this.canvasId=this.frameID=this.canvas=this.mouse=this.applet=this.display=this.insets=this.resizer=this.appletViewer=this.top=this.jsgraphics=null;this.resizable=!1},1);b(Sb,"$init$",function(){this.resizable=!0},1);b(Sb,"getTopComponent$",function(){return this.top});b(Sb,"getInsets$", +function(){return this.insets});b(Sb,"c$$java_util_Hashtable",function(a){Sb.superclazz.c$$java_util_Hashtable.apply(this,[a]);Sb.$init$.apply(this)},1);b(Sb,"c$",function(){Sb.superclazz.c$.apply(this,[]);Sb.$init$.apply(this)},1);b(Sb,"setForWindow$javax_swing_RootPaneContainer",function(a){this.isFrame=!0;this.top=a;this.appletViewer=this.top.\u79d8appletViewer;k(a,"javax.swing.JApplet")&&(this.applet=a);this.fullName=this.appletViewer.fullName;this.jsgraphics=this.canvas=null;this.insets=f(cn(1).c$$I$I$I$I, +[20,0,0,0]);this.getGraphics$I$I$javax_swing_RootPaneContainer(0,0,a);return this});b(Sb,"cacheFileByName$S$Z",function(){return 0});b(Sb,"cachePut$S$O",function(){});b(Sb,"destroy$",function(){});b(Sb,"getFullName$",function(){return this.fullName});b(Sb,"openFileAsyncSpecial$S$I",function(){});b(Sb,"processMouseEvent$I$I$I$I$J$O$I",function(a,b,c,d,f,g,j){bn.getMouse.apply(this,[]).processEvent$I$I$I$I$J$O$I(a,b,c,d,f,g,j);return!1});b(Sb,"getMouse",function(){return null==this.mouse?this.mouse= +f(cn(2).c$$swingjs_JSFrameViewer,[this]):this.mouse},bn);b(Sb,"processTwoPointGesture$FAAA",function(a){bn.getMouse.apply(this,[]).processTwoPointGesture$FAAA(a)});b(Sb,"setDisplay$swingjs_api_js_HTML5Canvas",function(a){this.canvas=a;this.jsgraphics=null});b(Sb,"setScreenDimension$I$I",function(a,b){this.setGraphics$java_awt_Graphics$I$I$javax_swing_RootPaneContainer(this.jsgraphics=null,a,b,this.top);null!=this.top&&this.top.\u79d8resizeOriginal$I$I(a,b)});b(Sb,"setGraphics$java_awt_Graphics$I$I$javax_swing_RootPaneContainer", +function(a,b,c,d){return null==a?this.getGraphics$I$I$javax_swing_RootPaneContainer(b,c,d):a});b(Sb,"setStatusDragDropped$I$I$I$S",function(){return!1});b(Sb,"startHoverWatcher$Z",function(){});b(Sb,"getGraphics$",function(){return this.getGraphics$I$I$javax_swing_RootPaneContainer(0,0,this.top)});b(Sb,"getGraphics$I$I$javax_swing_RootPaneContainer",function(a,b,c){null==c&&(c=this.top);if(null==c)return null;var d=c;0==a&&(a=Math.max(0,c.getContentPane$().getWidth$()),b=Math.max(0,c.getContentPane$().getHeight$())); +var h=0,g=0;null!=d.\u79d8canvas&&(h=d.\u79d8canvas.width,g=d.\u79d8canvas.height);if(0<=a&&0<=b&&(h!=a||g!=b||null==d.\u79d8canvas||null==this.jsgraphics))this.jsgraphics=f(cn(3).c$$O,[d.\u79d8canvas=bn.newCanvas$I$I$javax_swing_RootPaneContainer.apply(this,[a,b,c])]);return this.jsgraphics});b(Sb,"newCanvas$I$I$javax_swing_RootPaneContainer",function(a,b,c){if(this.isApplet){var d=this.html5Applet._getHtml5Canvas();if(null!=d)return this.canvas=d}if(0==a||0==b)if(a=b=0,null!=Sb.canvas00)return Sb.canvas00; +var f=null,d=c.getRootPane$();c=c.getContentPane$();0=c||(c/=2,this.ctx.arc(a+c,b+c,c,0,6.283185307179586,!1))},Ja);b(Q,"drawArc$I$I$I$I$I$I",function(a,b,c,d,f,g){this.doStroke$Z(!0);Ja.doArc$D$D$D$D$D$D$I.apply(this,[a,b,c,d,f,g,0]);this.doStroke$Z(!1)});b(Q,"fillArc$I$I$I$I$I$I",function(a,b,c,d,f,g){this.ctx.beginPath();Ja.doArc$D$D$D$D$D$D$I.apply(this,[a,b,c,d,f,g,1]);this.ctx.fill()});b(Q,"doArc$D$D$D$D$D$D$I",function(a,b,c,d,f,g,j){0>=c||0>=d||(this.ctx.save(),0>g&&(f+= +g,g=-g),this.ctx.translate(a,b),this.ctx.scale(c/2,d/2),this.ctx.beginPath(),this.ctx.arc(1,1,1,Ja.toRad$D.apply(this,[360-f]),Ja.toRad$D.apply(this,[360-g-f]),!0),1==j&&this.ctx.lineTo(1,1),this.ctx.restore())},Ja);b(Q,"toRad$D",function(a){return 0.017453292519943295*a},Ja);b(Q,"clearRect$I$I$I$I",function(a,b,c,d){Ja.clearRectPriv$I$I$I$I.apply(this,[a,b,c,d])});b(Q,"clearRectPriv$I$I$I$I",function(a,b,c,d){this.ctx.clearRect(a,b,c,d);this.clearing||Ja.setGraphicsColor$java_awt_Color.apply(this, +[null==this.backgroundColor?Vc(5).WHITE:this.backgroundColor]);this.fillRect$I$I$I$I(a,b,c,d);this.clearing||Ja.setGraphicsColor$java_awt_Color.apply(this,[this.foregroundColor])},Ja);b(Q,"drawPolygon$java_awt_Polygon",function(a){Ja.doPoly$IA$IA$I$I.apply(this,[a.xpoints,a.ypoints,a.npoints,1])});b(Q,"drawPolygon$IA$IA$I",function(a,b,c){Ja.doPoly$IA$IA$I$I.apply(this,[a,b,c,1])});b(Q,"drawPolyline$IA$IA$I",function(a,b,c){Ja.doPoly$IA$IA$I$I.apply(this,[a,b,c,0])});b(Q,"fillPolygon$java_awt_Polygon", +function(a){Ja.doPoly$IA$IA$I$I.apply(this,[a.xpoints,a.ypoints,a.npoints,2])});b(Q,"fillPolygon$IA$IA$I",function(a,b,c){Ja.doPoly$IA$IA$I$I.apply(this,[a,b,c,2])});b(Q,"doPoly$IA$IA$I$I",function(a,b,c,d){this.ctx.beginPath();2!=d&&this.ctx.translate(0.5,0.5);this.ctx.moveTo(a[0],b[0]);for(var f=1;f=c||0>=d||(this.ctx.translate(0.5, +0.5),this.ctx.beginPath(),this.ctx.rect(a,b,c,d),this.ctx.stroke(),this.ctx.translate(-0.5,-0.5))});b(Q,"fillRect$I$I$I$I",function(a,b,c,d){0>=c||0>=d||this.ctx.fillRect(a,b,c,d)});b(Q,"draw3DRect$I$I$I$I$Z",function(a,b,c,d,f){Ja.do3DRect$I$I$I$I$Z$I.apply(this,[a,b,c,d,f,1])});b(Q,"fill3DRect$I$I$I$I$Z",function(a,b,c,d,f){Ja.do3DRect$I$I$I$I$Z$I.apply(this,[a,b,c,d,f,2])});b(Q,"do3DRect$I$I$I$I$Z$I",function(a,b,c,d,f,g){if(!(0>=c||0>=d)){var j=this.getPaint$(),k=this.getColor$(),l=k.brighter$(), +m=k.darker$();f?j!==k&&this.setColor$java_awt_Color(k):this.setColor$java_awt_Color(m);2==g&&this.fillRect$I$I$I$I(a+1,b+1,c-2,d-2);this.setColor$java_awt_Color(f?l:m);this.fillRect$I$I$I$I(a,b,1,d);this.fillRect$I$I$I$I(a+1,b,c-2,1);this.setColor$java_awt_Color(f?m:l);this.fillRect$I$I$I$I(a+1,b+d-1,c-1,1);this.fillRect$I$I$I$I(a+c-1,b,1,d-1);this.setPaint$java_awt_Paint(j)}},Ja);b(Q,"setFont$java_awt_Font",function(a){a!==this.font&&(this.font=a,null!=a&&(this.ctx.font=Vc(6).getCanvasFont$java_awt_Font(a)))}); +b(Q,"setStrokeBold$Z",function(a){Ja.setLineWidth$D.apply(this,[a?2:1])});b(Q,"setLineWidth$D",function(a){this.ctx.lineWidth=a},Ja);b(Q,"canDoLineTo$",function(){return!0});b(Q,"doStroke$Z",function(a){(this.inPath=a)?(this.ctx.translate(0.5,0.5),this.ctx.beginPath()):(this.ctx.stroke(),this.ctx.translate(-0.5,-0.5))});b(Q,"lineTo$I$I",function(a,b){this.inPath?this.ctx.lineTo(a,b):(this.ctx.translate(0.5,0.5),this.ctx.lineTo(a,b),this.ctx.translate(-0.5,-0.5))});b(Q,"clip$java_awt_Shape",function(a){this.ctx.beginPath(); +Ja.doShape$java_awt_Shape.apply(this,[a]);this.currentClip=a;this.ctx.clip()});b(Q,"draw$java_awt_Shape",function(a){this.doStroke$Z(!0);Ja.doShape$java_awt_Shape.apply(this,[a]);this.doStroke$Z(!1)});b(Q,"doShape$java_awt_Shape",function(a){var b=l(Double.TYPE,[6]);for(a=a.getPathIterator$java_awt_geom_AffineTransform(null);!a.isDone$();){switch(a.currentSegment$DA(b)){case 0:this.ctx.moveTo(b[0],b[1]);break;case 1:this.ctx.lineTo(b[0],b[1]);break;case 2:this.ctx.quadraticCurveTo(b[0],b[1],b[2], +b[3]);break;case 3:this.ctx.bezierCurveTo(b[0],b[1],b[2],b[3],b[4],b[5]);break;case 4:this.ctx.closePath()}a.next$()}return a.getWindingRule$()},Ja);b(Q,"fill$java_awt_Shape",function(a){this.ctx.beginPath();0==Ja.doShape$java_awt_Shape.apply(this,[a])?this.ctx.fill("evenodd"):this.ctx.fill()});b(Q,"drawRoundRect$I$I$I$I$I$I",function(a,b,c,d,f,g){Ja.doRoundRect$I$I$I$I$I$I$I.apply(this,[a,b,c,d,f,g,1])});b(Q,"fillRoundRect$I$I$I$I$I$I",function(a,b,c,d,f,g){Ja.doRoundRect$I$I$I$I$I$I$I.apply(this, +[a,b,c,d,f,g,2])});b(Q,"doRoundRect$I$I$I$I$I$I$I",function(a,b,c,d,h,g,j){if(null==this.rrect||this.rrect.getX$()!=a||this.rrect.getY$()!=b||this.rrect.getWidth$()!=c||this.rrect.getHeight$()!=d||this.rrect.getArcWidth$()!=h||this.rrect.getArcHeight$()!=g)this.rrect=f(Vc(7).c$$D$D$D$D$D$D,[a,b,c,d,h,g]);2==j?this.fill$java_awt_Shape(this.rrect):this.draw$java_awt_Shape(this.rrect)},Ja);b(Q,"drawImage$java_awt_Image$I$I$java_awt_image_ImageObserver",function(a,b,c,d){return this.drawImagePriv$java_awt_Image$I$I$java_awt_image_ImageObserver(a, +b,c,d)});b(Q,"drawImage$java_awt_Image$I$I$I$I$java_awt_image_ImageObserver",function(a,b,c,d,f,g){if(0>=d||0>=f)return!0;if(null!=a){var j=Ja.getImageNode$java_awt_Image.apply(this,[a]);null!=j&&this.ctx.drawImage(j,b,c,d,f);null!=g&&Ja.observe$java_awt_Image$java_awt_image_ImageObserver$Z.apply(this,[a,g,null!=j])}return!0});b(Q,"getImageNode$java_awt_Image",function(a){var b=Vc(8).getImageNode(a);return null==b?Vc(9).createImageNode$java_awt_Image(a):b},Ja);b(Q,"observe$java_awt_Image$java_awt_image_ImageObserver$Z", +function(a,b,c){b.imageUpdate$(a,c?0:192,-1,-1,-1,-1)},Ja);b(Q,"drawImage$java_awt_Image$I$I$I$I$java_awt_Color$java_awt_image_ImageObserver",function(a,b,c,d,f,g,j){return 0>=d||0>=f?!1:this.drawImage$java_awt_Image$I$I$I$I$java_awt_image_ImageObserver(a,b,c,d,f,j)});b(Q,"drawImage$java_awt_Image$I$I$I$I$I$I$I$I$java_awt_image_ImageObserver",function(a,b,c,d,f,g,j,k,l,m){if(null!=a){var n=Ja.getImageNode$java_awt_Image.apply(this,[a]);null!=n&&this.ctx.drawImage(n,g,j,k-g,l-j,b,c,d-b,f-c);null!= +m&&Ja.observe$java_awt_Image$java_awt_image_ImageObserver$Z.apply(this,[a,m,null!=n])}return!0});b(Q,"drawImage$java_awt_Image$I$I$I$I$I$I$I$I$java_awt_Color$java_awt_image_ImageObserver",function(a,b,c,d,f,g,j,k,l,m,n){Vc(10).notImplemented$S(null);return this.drawImage$java_awt_Image$I$I$I$I$I$I$I$I$java_awt_image_ImageObserver(a,b,c,d,f,g,j,k,l,n)});b(Q,"drawImage$java_awt_Image$java_awt_geom_AffineTransform$java_awt_image_ImageObserver",function(a,b,c){return Ja.drawImageXT$java_awt_Image$java_awt_geom_AffineTransform$java_awt_image_ImageObserver.apply(this, +[a,b,c])});b(Q,"drawRenderedImage$java_awt_image_RenderedImage$java_awt_geom_AffineTransform",function(a,b){Ja.drawImageXT$java_awt_Image$java_awt_geom_AffineTransform$java_awt_image_ImageObserver.apply(this,[a,b,null])});b(Q,"drawRenderableImage$java_awt_image_renderable_RenderableImage$java_awt_geom_AffineTransform",function(a,b){Ja.drawImageXT$java_awt_Image$java_awt_geom_AffineTransform$java_awt_image_ImageObserver.apply(this,[a,b,null])});b(Q,"drawImageXT$java_awt_Image$java_awt_geom_AffineTransform$java_awt_image_ImageObserver", +function(a,b,c){this.ctx.save();Ja.transformCTX$java_awt_geom_AffineTransform.apply(this,[b]);a=this.drawImagePriv$java_awt_Image$I$I$java_awt_image_ImageObserver(a,0,0,c);this.ctx.restore();return a},Ja);b(Q,"drawImagePriv$java_awt_Image$I$I$java_awt_image_ImageObserver",function(a,b,c,d){if(null!=a){var f=null,g=!1,f=a.raster.\u79d8pix||a.\u79d8pix,g=1==a.imageType,j=null,k=a.getRaster$().getWidth$(),l=a.getRaster$().getHeight$();null==f?null!=(j=Ja.getImageNode$java_awt_Image.apply(this,[a]))&& +this.ctx.drawImage(j,b,c,k,l):this.drawDirect$IA$I$I$I$I$Z(f,b,c,k,l,g);null!=d&&Ja.observe$java_awt_Image$java_awt_image_ImageObserver$Z.apply(this,[a,d,null!=j])}return!0});b(Q,"drawDirect$IA$I$I$I$I$Z",function(a,b,c,d,f,g){if(null==this.buf8||b!=this.lastx||c!=this.lasty||this.nx!=d||this.ny!=f)this.imageData=this.ctx.getImageData(b,c,d,f),this.buf8=this.imageData.data,this.lastx=b,this.lasty=c,this.nx=d,this.ny=f;f=d=0;for(var j=Math.min(this.buf8.length/4|0,a.length);f>16&255;this.buf8[d++]=k>>8&255;this.buf8[d++]=k&255;this.buf8[d++]=g?255:k>>24&255}a=Vc(11).getMatrix(this.ctx,this.transform);(1!=a[0]||0!=a[1]||0!=a[2]||1!=a[3])&&System.err.println$S("Unsupported transform");b=b+a[4]|0;c=c+a[5]|0;this.ctx.putImageData(this.imageData,b,c)});b(Q,"hit$java_awt_Rectangle$java_awt_Shape$Z",function(){Vc(10).notImplemented$S(null);return!1});b(Q,"getStroke$",function(){return this.currentStroke});b(Q,"setStroke$java_awt_Stroke",function(a){if(k(a,"java.awt.BasicStroke")){a= +this.currentStroke=a;for(var b=a.getDashArray$(),c=l(Integer.TYPE,[null==b?0:b.length]),d=c.length;0<=--d;)c[d]=b[d]|0;this.ctx.setLineDash(c);Ja.setLineWidth$D.apply(this,[a.getLineWidth$()]);var f,c=-1;switch(a.getEndCap$()){case 0:b="butt";break;case 2:b="square";break;default:b="round"}switch(a.getLineJoin$()){case 2:f="bevel";break;case 0:f="miter";c=a.getMiterLimit$();break;case 1:f="round"}this.ctx.lineCap=b;this.ctx.lineJoin=f;0<=c&&(this.ctx.miterLimit=c)}});b(Q,"setRenderingHint$java_awt_RenderingHints_Key$O", +function(a,b){this.hints.put$O$O(a,b)});b(Q,"getRenderingHint$java_awt_RenderingHints_Key",function(a){return this.hints.get$O(a)});b(Q,"setRenderingHints$java_util_Map",function(a){this.hints=f(Vc(1).c$$java_util_Map,[a])});b(Q,"addRenderingHints$java_util_Map",function(a){var b;for(a=a.entrySet$().iterator$();a.hasNext$()&&(b=a.next$(),1);)this.hints.put$O$O(b.getKey$(),b.getValue$())});b(Q,"getRenderingHints$",function(){return this.hints});b(Q,"setBackground$java_awt_Color",function(a){this.backgroundColor= +a});b(Q,"getBackground$",function(){return this.backgroundColor});b(Q,"getColor$",function(){return this.foregroundColor});b(Q,"setColor$java_awt_Color",function(a){this.clearing?this.clearColorSaved=a:(this.foregroundColor=a,Ja.setGraphicsColor$java_awt_Color.apply(this,[a]))});b(Q,"setPaint$java_awt_Paint",function(a){this.setColor$java_awt_Color(a)});b(Q,"getFont$",function(){null==this.font&&(this.font=f(Vc(12).c$$S$I$I,["Arial",0,12]));return this.font});b(Q,"getFontMetrics$",function(){return this.getFontMetrics$java_awt_Font(this.getFont$())}); +b(Q,"getFontMetrics$java_awt_Font",function(a){return Vc(13).getDefaultToolkit$().getFontMetrics$java_awt_Font(a)});b(Q,"clipRect$I$I$I$I",function(a,b,c,d){this.ctx.beginPath();this.ctx.rect(a,b,c,d);Ja.setCurrentClip$I$I$I$I.apply(this,[a,b,c,d]);this.ctx.clip()});b(Q,"setClip$I$I$I$I",function(a,b,c,d){Ja.setCurrentClip$I$I$I$I.apply(this,[a,b,c,d]);this.ctx.beginPath();this.ctx.rect(a,b,c,d);this.ctx.clip()});b(Q,"setCurrentClip$I$I$I$I",function(a,b,c,d){var h=k(this.currentClip,"java.awt.Rectangle")? +this.currentClip:null;if(null==h||h.x!=a||h.y!=b||h.width!=c||h.height!=d)this.currentClip=f(Vc(14).c$$I$I$I$I,[a,b,c,d])},Ja);b(Q,"setClip$java_awt_Shape",function(a){null==a?this.setClip$I$I$I$I(0,0,this.width,this.height):(this.currentClip=a,this.ctx.beginPath(),Ja.doShape$java_awt_Shape.apply(this,[a]),this.ctx.clip())});b(Q,"hitClip$I$I$I$I",function(a,b,c,d){var f=this.getClipBounds$();return null==f?!0:f.intersects$D$D$D$D(a,b,c,d)});b(Q,"setGraphicsColor$java_awt_Color",function(a){null!= +a&&(this.ctx.fillStyle=this.ctx.strokeStyle=Vc(6).getCSSColor$java_awt_Color(a))},Ja);b(Q,"copyArea$I$I$I$I$I$I",function(a,b,c,d,f,g){this.ctx.putImageData(this.ctx.getImageData(a,b,c,d),a+f,b+g)});b(Q,"getClip$",function(){return null==this.currentClip?Ja.getClipBoundsImpl.apply(this,[]):this.currentClip});b(Q,"drawString$S$I$I",function(a,b,c){Ja.fillText$S$F$F.apply(this,[a,b,c])});b(Q,"drawChars$CA$I$I",function(a,b,c){Ja.fillText$S$F$F.apply(this,[String.valueOf$CA(a),b,c])});b(Q,"drawChars$CA$I$I$I$I", +function(a,b,c,d,f){this.drawString$S$I$I(String.instantialize(a,b,c),d,f)});b(Q,"drawBytes$BA$I$I$I$I",function(a,b,c,d,f){this.drawString$S$I$I(String.instantialize(a,b,c),d,f)});b(Q,"drawString$S$F$F",function(a,b,c){Ja.fillText$S$F$F.apply(this,[a,b,c])});b(Q,"fillText$S$F$F",function(a,b,c){this.ctx.fillText(a,b,c)},Ja);b(Q,"drawString$java_text_AttributedCharacterIterator$I$I",function(){Vc(10).notImplemented$S(null)});b(Q,"drawString$java_text_AttributedCharacterIterator$F$F",function(){Vc(10).notImplemented$S(null)}); +b(Q,"translate$D$D",function(){Vc(10).notImplemented$S(null)});b(Q,"shear$D$D",function(){Vc(10).notImplemented$S(null)});b(Q,"translate$I$I",function(a,b){this.ctx.translate(a,b);this.transform.translate$D$D(a,b)});b(Q,"rotate$D",function(a){this.ctx.rotate(a);this.transform.rotate$D(a)});b(Q,"rotate$D$D$D",function(a,b,c){this.ctx.translate(b,c);this.ctx.rotate(a);this.ctx.translate(-b,-c);this.transform.rotate$D$D$D(a,b,c)});b(Q,"scale$D$D",function(a,b){this.ctx.scale(a,b);this.transform.scale$D$D(a, +b)});b(Q,"transform$java_awt_geom_AffineTransform",function(a){Ja.transformCTX$java_awt_geom_AffineTransform.apply(this,[a]);this.transform.concatenate$java_awt_geom_AffineTransform(a)});b(Q,"transformCTX$java_awt_geom_AffineTransform",function(a){this.ctx.transform(a.m00,a.m10,a.m01,a.m11,a.m02,a.m12)},Ja);b(Q,"setTransform$java_awt_geom_AffineTransform",function(a){this.ctx.setTransform(a.m00,a.m10,a.m01,a.m11,a.m02,a.m12);this.transform.setTransform$java_awt_geom_AffineTransform(a)});b(Q,"getTransform$", +function(){return this.transform.clone$()});b(Q,"getPaint$",function(){return this.getColor$()});b(Q,"getFontRenderContext$",function(){return this.getFontMetrics$java_awt_Font(this.getFont$()).getFontRenderContext$()});b(Q,"setPaintMode$",function(){this.setComposite$java_awt_Composite(Vc(15).SrcOver)});b(Q,"setXORMode$java_awt_Color",function(a){if(null==a)throw f(g("IllegalArgumentException").c$$S,["null XORColor"]);this.setComposite$java_awt_Composite(Vc(15).Xor)});b(Q,"getClipRect$",function(){return this.getClipBounds$()}); +b(Q,"getClipBounds$",function(){return this.getClipBounds$java_awt_Rectangle(null)});b(Q,"getClipBounds$java_awt_Rectangle",function(a){var b=Ja.getClipBoundsImpl.apply(this,[]);null==a?a=b:(a.x=b.x,a.y=b.y,a.width=b.width,a.height=b.height);return a});b(Q,"getClipBoundsImpl",function(){null==this.currentClip&&(this.currentClip=f(Vc(14).c$$I$I$I$I,[0,0,this.width,this.height]));return this.currentClip.getBounds$()},Ja);b(Q,"setComposite$java_awt_Composite",function(a){if(a!==this.alphaComposite){var b= +k(a,"java.awt.AlphaComposite"),c=!b?0:a.getRule$();if((b&&null==this.alphaComposite||c!=this.alphaComposite.getRule$())&&Vc(9).setGraphicsCompositeAlpha$swingjs_JSGraphics2D$I(this,c))this.alphaComposite=a;1==c?(this.clearColorSaved=this.foregroundColor,this.setColor$java_awt_Color(Vc(5).black),this.clearing=!0):this.clearing&&(this.clearing=!1,this.setColor$java_awt_Color(this.clearColorSaved),this.clearColorSaved=null);this.setAlpha$F(null==a?1:a.getAlpha$())}});b(Q,"getComposite$",function(){return this.alphaComposite}); +b(Q,"drawImage$java_awt_image_BufferedImage$java_awt_image_BufferedImageOp$I$I",function(a,b,c,d){Vc(9).drawImageOp$swingjs_JSGraphics2D$java_awt_image_BufferedImage$java_awt_image_BufferedImageOp$I$I(this,a,b,c,d)});b(Q,"setAlpha$F",function(a){this.ctx.globalAlpha=a});b(Q,"getCanvas$",function(){return this.canvas});b(Q,"mark$",function(){this.ctx.save();var a=l(java.lang.Object,[7]),b=0,b=this.ctx.globalAlpha;a[0]=Float.valueOf$F(b);a[1]=this.alphaComposite;a[2]=this.currentStroke;a[3]=this.transform; +a[4]=this.font;a[5]=this.currentClip;return Vc(11).push(this.ctx,a)});b(Q,"reset$I",function(a){for(1>a&&(a=1);Vc(11).getSavedLevel(this.ctx)>=a;){var b=Vc(11).pop(this.ctx);this.setComposite$java_awt_Composite(b[1]);var c=b[0];null!=c&&this.setAlpha$F(c.floatValue$());this.setStroke$java_awt_Stroke(b[2]);this.setTransform$java_awt_geom_AffineTransform(b[3]);this.setFont$java_awt_Font(b[4]);this.currentClip=b[5];this.ctx.restore()}});b(Q,"create$I$I$I$I",function(a,b,c,d){var f=this.create$();if(null== +f)return null;f.translate$I$I(a,b);f.clipRect$I$I$I$I(0,0,c,d);return f});b(Q,"create$",function(){return this.clone$()});b(Q,"clone$",function(){var a=this.mark$(),b=this,b=we(this);b.transform=f(Vc(3).c$$java_awt_geom_AffineTransform,[this.transform]);null!=this.hints&&(b.hints=this.hints.clone$());b.setStroke$java_awt_Stroke(this.currentStroke.clone$());b.initialState=a;return b});b(Q,"dispose$",function(){this.reset$I(this.initialState)});b(Q);n("3.2.4.07");var JB=q("swingjs"),Mu=[[0,"java.awt.GraphicsEnvironment", +"swingjs.api.Interface","java.awt.image.ColorModel","java.awt.image.WritableRaster","Boolean","java.util.Hashtable","swingjs.JSUtil","java.awt.Rectangle"]],vj=function(a){return Mu[a]||(Mu[a]=g(Mu[0][a]))},Gi=j(JB,"JSGraphicsConfiguration",null,"java.awt.GraphicsConfiguration");Gi.$clinit$=function(){g(Gi,1)};b(Gi,"$init$",function(){},1);b(Gi,"c$",function(){S(Gi,this,1);System.out.println$S("JSGraphicsConfiguration initialized")},1);b(Gi,"getDevice$",function(){return vj(1).getLocalGraphicsEnvironment$().getDefaultScreenDevice$()}); +b(Gi,"createCompatibleImage$I$I",function(a,b){var c=this.getColorModel$(),d=c.createCompatibleWritableRaster$I$I(a,b);return this.newBufferedImage$java_awt_image_ColorModel$java_awt_image_WritableRaster$Z$java_util_Hashtable(c,d,!1,null)});b(Gi,"newBufferedImage$java_awt_image_ColorModel$java_awt_image_WritableRaster$Z$java_util_Hashtable",function(a,b,c,d){return vj(2).getInstanceWithParams$S$ClassA$OA("java.awt.image.BufferedImage",l(Class,-1,[x(vj(3)),x(vj(4)),x(vj(5)),x(vj(6))]),l(java.lang.Object, +-1,[a,b,c?vj(5).TRUE:vj(5).FALSE,d]))});b(Gi,"getColorModel$",function(){return vj(3).getRGBdefault$()});b(Gi,"getColorModel$I",function(){return this.getColorModel$()});b(Gi,"getDefaultTransform$",function(){return vj(2).getInstance$S$Z("java.awt.geom.AffineTransform",!0)});b(Gi,"getNormalizingTransform$",function(){return this.getDefaultTransform$()});b(Gi,"getBounds$",function(){var a=document||null,a=vj(7).jQuery.$(a);return f(vj(8).c$$I$I,[a.width(),a.height()])});n("3.2.4.07");var KB=q("swingjs"), +Nu=[[0,"java.awt.Font","java.awt.Toolkit","swingjs.JSUtil","java.awt.Point","java.awt.GraphicsDevice"]],dn=function(a){return Nu[a]||(Nu[a]=g(Nu[0][a]))},Ye=j(KB,"JSGraphicsEnvironment",null,"java.awt.GraphicsEnvironment");Ye.device=null;Ye.availableFonts=null;Ye.$clinit$=function(){g(Ye,1)};b(Ye,"$init$",function(){},1);b(Ye,"c$",function(){S(Ye,this,1);System.out.println$S("JSGraphicsEnvironment initialized")},1);b(Ye,"createGraphics$java_awt_image_BufferedImage",function(a){return a.getImageGraphic$().create$()}); +b(Ye,"getAllFonts$",function(){if(null==Ye.availableFonts){var a=this.getAvailableFontFamilyNames$();Ye.availableFonts=l(dn(1),[a.length]);for(var b=a.length;0<=--b;)Ye.availableFonts[b]=f(dn(1).c$$S$I$I,[a[b],0,1])}return Ye.availableFonts});b(Ye,"getAvailableFontFamilyNames$",function(){return dn(2).getDefaultToolkit$().getFontList$()});b(Ye,"getAvailableFontFamilyNames$java_util_Locale",function(){return dn(2).getDefaultToolkit$().getFontList$()});b(Ye,"getDefaultScreenDevice$",function(){null== +Ye.device&&(Ye.device=dn(3).getInstance$S("swingjs.JSScreenDevice"));return Ye.device});b(Ye,"getCenterPoint$",function(){var a=dn(2).getDefaultToolkit$().getScreenSize$();return f(dn(4).c$$I$I,[a.width/2|0,a.height/2|0])});b(Ye,"getScreenDevices$",function(){return l(dn(5),-1,[this.getDefaultScreenDevice$()])});n("3.2.4.07");var LB=q("swingjs"),Wb={},Ou=[[0,"swingjs.JSUtil","swingjs.JSToolkit","java.awt.event.MouseWheelEvent","java.awt.event.MouseEvent","java.awt.Toolkit","swingjs.JSKeyEvent"]], +Jn=function(a){return Ou[a]||(Ou[a]=g(Ou[0][a]))},Lb=j(LB,"JSMouse");Lb.$clinit$=function(){g(Lb,1)};b(Lb,"$init0$",function(){var a;(a=Lb.superclazz)&&(a=a.$init0$)&&a.apply(this);this.mouse2=this.jqevent=this.viewer=null;this.wheeling=this.isCtrlShiftMouseDown=!1;this.clickCount=this.lasty=this.lastx=this.lasttime=this.modifiersWhenPressed10=this.yWhenPressed=this.xWhenPressed=0},1);b(Lb,"$init$",function(){},1);b(Lb,"c$$swingjs_JSFrameViewer",function(a){Lb.$init$.apply(this);this.viewer=a},1); +b(Lb,"processEvent$I$I$I$I$J$O$I",function(a,b,c,d,f,g,j){this.jqevent=g;switch(a){case 401:case 400:case 402:return Wb.keyAction$I$I$O$J.apply(this,[a,d,g,f])}507!=a&&503!=a&&(d=Lb.applyLeftMouse$I(d));switch(a){case 507:this.wheeled$J$I$I$I$I(f,b,c,j,d);break;case 501:this.xWhenPressed=b;this.yWhenPressed=c;this.modifiersWhenPressed10=d&-16321;Wb.pressed$J$I$I$I$Z.apply(this,[f,b,c,d,!1]);break;case 506:Wb.dragged$J$I$I$I.apply(this,[f,b,c,d]);break;case 504:case 505:Wb.entry$J$I$I$I.apply(this, +[f,b,c,a]);break;case 503:Wb.moved$J$I$I$I.apply(this,[f,b,c,d]);break;case 502:Wb.released$J$I$I$I.apply(this,[f,b,c,d&-16321]);b==this.xWhenPressed&&(c==this.yWhenPressed&&(d&-16321)==this.modifiersWhenPressed10&&1!=Wb.getButton$I.apply(this,[a]))&&(g.type=g.originalEvent.j2stype="click",Wb.clicked$J$I$I$I$I.apply(this,[f,b,c,d&-16321,1]));break;case 500:Wb.clicked$J$I$I$I$I.apply(this,[f,b,c,d&-16321,g.originalEvent.detail||0]);break;default:return!1}return!0});b(Lb,"processTwoPointGesture$FAAA", +function(a){Wb.getMouse2.apply(this,[]).processTwoPointGesture$FAAA(a)});b(Lb,"getMouse2",function(){return null==this.mouse2?(this.mouse2=Jn(1).getInstance$S("swingjs.JSMouse2")).set$swingjs_JSMouse(this):this.mouse2},Wb);b(Lb,"translateXYBy$I$I",function(){});b(Lb,"mouseClicked$java_awt_event_MouseEvent",function(a){Wb.clicked$J$I$I$I$I.apply(this,[a.getWhen$(),a.getX$(),a.getY$(),a.getModifiers$(),a.getClickCount$()])});b(Lb,"mouseEntered$java_awt_event_MouseEvent",function(a){Wb.entry$J$I$I$I.apply(this, +[a.getWhen$(),a.getX$(),a.getY$(),504])});b(Lb,"mouseExited$java_awt_event_MouseEvent",function(a){Wb.entry$J$I$I$I.apply(this,[a.getWhen$(),a.getX$(),a.getY$(),505])});b(Lb,"mousePressed$java_awt_event_MouseEvent",function(a){Wb.pressed$J$I$I$I$Z.apply(this,[a.getWhen$(),a.getX$(),a.getY$(),a.getModifiers$(),a.isPopupTrigger$()])});b(Lb,"mouseReleased$java_awt_event_MouseEvent",function(a){Wb.released$J$I$I$I.apply(this,[a.getWhen$(),a.getX$(),a.getY$(),a.getModifiers$()])});b(Lb,"mouseDragged$java_awt_event_MouseEvent", +function(a){var b=a.getModifiers$();0==(b&28)&&(b|=16);Wb.dragged$J$I$I$I.apply(this,[a.getWhen$(),a.getX$(),a.getY$(),b])});b(Lb,"mouseMoved$java_awt_event_MouseEvent",function(a){Wb.moved$J$I$I$I.apply(this,[a.getWhen$(),a.getX$(),a.getY$(),a.getModifiers$()])});b(Lb,"mouseWheelMoved$java_awt_event_MouseWheelEvent",function(a){a.consume$();this.wheeled$J$I$I$I$I(a.getWhen$(),0,0,a.getWheelRotation$(),a.getModifiers$())});b(Lb,"entry$J$I$I$I",function(a,b,c,d){this.wheeling=!1;Wb.mouseEnterExit$J$I$I$I.apply(this, +[a,b,c,d])},Wb);b(Lb,"clicked$J$I$I$I$I",function(a,b,c,d,f){Wb.mouseAction$I$J$I$I$I$I$I.apply(this,[500,a,b,c,f,d,0])},Wb);b(Lb,"moved$J$I$I$I",function(a,b,c,d){this.isCtrlShiftMouseDown?Wb.mouseAction$I$J$I$I$I$I$I.apply(this,[506,a,b,c,0,Lb.applyLeftMouse$I(d),0]):Wb.mouseAction$I$J$I$I$I$I$I.apply(this,[503,a,b,c,0,d,0])},Wb);b(Lb,"wheeled$J$I$I$I$I",function(a,b,c,d,f){this.wheeling=!0;Wb.mouseAction$I$J$I$I$I$I$I.apply(this,[507,a,b,c,0,f&-29|32,d])});b(Lb,"pressed$J$I$I$I$Z",function(a,b, +c,d){this.isCtrlShiftMouseDown=3==(d&3);this.wheeling=!1;Wb.mouseAction$I$J$I$I$I$I$I.apply(this,[501,a,b,c,0,d,0])},Wb);b(Lb,"released$J$I$I$I",function(a,b,c,d){this.wheeling=this.isCtrlShiftMouseDown=!1;Wb.mouseAction$I$J$I$I$I$I$I.apply(this,[502,a,b,c,0,d&-16321,0])},Wb);b(Lb,"dragged$J$I$I$I",function(a,b,c,d){this.wheeling||(20==(d&20)&&(d=d&-5|2),Wb.mouseAction$I$J$I$I$I$I$I.apply(this,[506,a,b,c,0,d,0]))},Wb);b(Lb,"applyLeftMouse$I",function(a){return 0==(a&28)?a|16:a},1);b(Lb,"getButton$I", +function(a){if(503!=a)switch(a=this.jqevent,a.button||a.buttons&&8<=a},1);b(J,"dispatch$O$I$I",function(a,b,c){var d=Thread.thisThread;if(!d.group.systemExited){var f= +SwingJS.eventID||0,g=function(){SwingJS.eventID=c;java.lang.Thread.thisThread=d;try{a.run$?a.run$():a()}catch(b){var e="JSToolkit.dispatch$I("+c+"): "+b+"\n"+(b.getStackTrace$?b.getStackTrace$()+"\n":"")+(b.stack?b.stack:"");System.out.println(e);alert(e)}SwingJS.eventID=f;Thread.thisThread=d};return-1==b?g():setTimeout(g,b)}},1);b(J,"invokeAndWait$javajs_api_JSFunction$I",function(a,b){var c=Thread.thisThread;if(!c.group.systemExited){var d=SwingJS.eventID||0;SwingJS.eventID=b;java.lang.Thread.thisThread= +c;a.run$?a.run$():a();SwingJS.eventID=d;Thread.thisThread=c}},1);b(J,"isDispatchThread$",function(){return!!SwingJS.eventID},1);b(J,"setIsDispatchThread$Z",function(a){SwingJS.eventID=a?1:0},1);b(J,"getHTML5Applet$java_awt_Component",function(a){return a.getAppContext$().getThreadGroup$().getHtmlApplet$()},1);b(J,"taintUI$java_awt_Component",function(a){a.getUI$&&a.getUI$()&&a.getUI$().setTainted$()},1);b(J,"createComponent$java_awt_Component",function(a){return J.getUI$java_awt_Component$Z(a,!0)}); +b(J,"createDialog$java_awt_Dialog",function(a){var b=a.getUI$();return null==b?null:b.setFrame$java_awt_Window$Z(a,!0)});b(J,"createFrame$java_awt_JSFrame",function(a){var b=a.getUI$();return null==b?null:b.setFrame$java_awt_Window$Z(a,!0)});b(J,"createFrame$java_awt_Frame",function(a){var b=a.getUI$();return null==b?null:b.setFrame$java_awt_Window$Z(a,!0)});b(J,"createWindow$java_awt_Window",function(a){var b=a.getUI$();return null==b?null:b.setFrame$java_awt_Window$Z(a,!1)});b(J,"getUI$java_awt_Component$Z", +function(a){var b=a.\u79d8getUI$();null==b&&(a.updateUI$(),b=a.\u79d8getUI$());null==b&&(b=a.getClass$().getName$(),sc(7).isOneOf$S$S(b,";javax.swing.Box$Filler;")||System.out.println$S("[JSToolkit] Component "+b+" has no corresponding JSComponentUI, class "+a.getClass$().getName$()),b=f(sc(8).c$$java_awt_Component,[a]));return b},1);b(J,"getImagekit",function(){return null==this.imageKit?this.imageKit=sc(5).getInstance$S$Z("swingjs.JSImagekit",!1):this.imageKit},Gq);b(J,"getImage$S",function(a){return this.createImage$S(a)}); +b(J,"getImage$java_net_URL",function(a){return this.createImage$java_net_URL(a)});b(J,"createImage$java_awt_image_ImageProducer",function(a){var b=sc(5).getInstance$S$Z("swingjs.JSImagekit",!0);a.startProduction$java_awt_image_ImageConsumer(b);return b.getCreatedImage$()});b(J,"createImage$java_awt_Component$java_awt_image_ImageProducer",function(a,b){return this.createImage$java_awt_image_ImageProducer(b).setComponent$java_awt_Component(a)});b(J,"createImageIcon$java_awt_Component$javax_swing_Icon$S", +function(a,b,c){return sc(9).createImageIcon$java_awt_Component$javax_swing_Icon$S(a,b,c)},1);b(J,"createImage$S",function(a){return Gq.getImagekit.apply(this,[]).createImageFromBytes$BA$I$I$S(sc(2).getSignedStreamBytes$java_io_BufferedInputStream(f(sc(10).c$$java_io_InputStream,[f(sc(11).c$$BA,[sc(2).getFileAsBytes$O(a)])])),0,-1,a)});b(J,"createImage$java_net_URL",function(a){var b=sc(2).getURLInputStream$java_net_URL$Z(a,!0);return null==b?null:Gq.getImagekit.apply(this,[]).createImageFromBytes$BA$I$I$S(sc(2).getSignedStreamBytes$java_io_BufferedInputStream(b), +0,-1,a.toString())});b(J,"createImage$BA$I$I",function(a,b,c){return Gq.getImagekit.apply(this,[]).createImageFromBytes$BA$I$I$S(a,b,c,null)});b(J,"createImage$java_awt_Component$I$I",function(a,b,c){return this.createImage$BA$I$I(null,b,c).setComponent$java_awt_Component(a)});b(J,"checkImage$java_awt_Image$I$I$java_awt_image_ImageObserver",function(){return 63});b(J,"prepareImage$java_awt_Image$I$I$java_awt_image_ImageObserver",function(){return!0});b(J,"hasFocus$java_awt_Component",function(a){a= +J.getUI$java_awt_Component$Z(a,!1);return null!=a&&!a.isNull&&a.hasFocus$()},1);b(J,"requestFocus$java_awt_Component",function(a){a=J.getUI$java_awt_Component$Z(a,!1);if(null==a||a.isNull||!a.jc.isFocusable$())return!1;if(!Fq.JSToolkit$1){var e=j(Fq,"JSToolkit$1",function(a){m(this,a,1,e)},null,"Runnable",1);e.$clinit$=function(){g(e,1)};b(e,"$init$",function(){},1);b(e,"run$",function(){this.$finals$.ui.requestFocus$java_awt_Component$Z$Z$J$sun_awt_CausedFocusEvent_Cause(null,!1,!1,0,null)})}a=f(Fq.JSToolkit$1.$init$, +[this,{ui:a}]);J.dispatch$O$I$I(a,50,0);return!0},1);b(J,"getAudioPlayer$",function(){return null==J.audioPlayer?J.audioPlayer=sc(2).getInstance$S("swingjs.JSAudio"):J.audioPlayer},1);b(J,"playAudio$BA$javax_sound_sampled_AudioFormat",function(a,b){J.getAudioPlayer$().getAudio$BA$javax_sound_sampled_AudioFormat(a,b).play$()},1);b(J,"getAudioClip$java_net_URL",function(a){return J.getAudioPlayer$().getAudioClip$java_net_URL(a)},1);b(J,"playAudioFile$java_net_URL",function(a){J.getAudioPlayer$().getAudioFileFromURL$java_net_URL(a).play$()}, +1);b(J,"getAudioLine$javax_sound_sampled_Line_Info",function(a){return J.getAudioPlayer$().getAudioLine$javax_sound_sampled_Line_Info(a)},1);b(J,"getTimerQueue$",function(){return sc(2).getAppletViewer$().getTimerQueue$()},1);b(J,"getFileFromDialog$swingjs_api_JSFileHandler$S",function(a,b){var c=null,c=function(b,c){a.handleFileLoaded$BA$S(b,c)};sc(2).J2S.getFileFromDialog(c,b)},1);b(J,"killDispatched$I",function(a){clearTimeout(a)},1);b(J,"getSystemClipboard$",function(){null==J.systemClipboard&& +(J.systemClipboard=sc(2).getInstance$S("java.awt.datatransfer.Clipboard"));return J.systemClipboard});b(J,"createDragSourceContextPeer$java_awt_dnd_DragGestureEvent",function(){return null});b(J,"getCursorName$java_awt_Cursor",function(a){switch(null==a?0:a.getType$()){case 1:return"crosshair";case 3:return"wait";case 2:return"text";case 12:return"grab";case 13:return"move";case 8:case 9:return"ns-resize";case 7:case 4:return"nesw-resize";case 5:case 6:return"nwse-resize";case 11:case 10:return"ew-resize"; +case -1:return a.getName$();default:return"default"}},1);b(J,"getFontList$",function(){null==J.hardwiredFontList&&(J.hardwiredFontList=l(String,-1,["Dialog","SansSerif","Serif","Monospaced","DialogInput"]));return J.hardwiredFontList});b(J,"getFontFamily$java_awt_Font",function(a){return a.getName$()},1);b(J,"getFontMetrics$java_awt_Font",function(a){return a.getFontMetrics$()});b(J,"getCanvasFont$java_awt_Font",function(a){var b="";a.isItalic$()&&(b+="italic ");a.isBold$()&&(b+="bold ");var c=J.getCSSFontFamilyName$S(a.getFamily$()); +return b+a.getSize$()+"px "+c},1);b(J,"getCSSFontFamilyName$S",function(a){a=a.toLowerCase$();a.equals$O("sansserif")||a.equals$O("helvetica")||a.equals$O("dialog")||a.equals$O("dialoginput")?a="Arial":a.equals$O("monospaced")&&(a="monospace");return a},1);b(J,"getDateFormat$S",function(a){if(null==a)return(""+new Date).split(" (")[0];if(0<=a.indexOf("8824")){var b=new Date;a=b.toString().split(" ");var c="0"+(1+b.getMonth()),c=c.substring(c.length-2),b="0"+b.getDate(),b=b.substring(b.length-2);return a[3]+ +c+b+a[4].replace(/\:/g,"")+a[5].substring(3,6)+"'"+a[5].substring(6,8)+"'"}if(0<=a.indexOf("8601")){b=new Date;a=b.toString().split(" ");if(1==a.length)return a;c="0"+(1+b.getMonth());c=c.substring(c.length-2);b="0"+b.getDate();b=b.substring(b.length-2);return a[3]+"-"+c+"-"+b+"T"+a[4]}},1);b(J,"beep$",function(){System.out.println$S("JSToolkit.beep")});b(J,"getPrintJob$java_awt_JSFrame$S$java_util_Properties",function(a,b,c){a=sc(2).getInstance$S("swingjs.JSPrintJob");a.setProperties$S$java_util_Properties(b, +c);return a});b(J,"getPrintJob$java_awt_Frame$S$java_util_Properties",function(a,b,c){a=sc(2).getInstance$S("swingjs.JSPrintJob");a.setProperties$S$java_util_Properties(b,c);return a});b(J,"getPrintJob$java_awt_JSFrame$S$java_awt_JobAttributes$java_awt_PageAttributes",function(a,b,c,d){a=sc(2).getInstance$S("swingjs.JSPrintJob");a.setAttributes$S$java_awt_JobAttributes$java_awt_PageAttributes(b,c,d);return a});b(J,"getPrintJob$java_awt_Frame$S$java_awt_JobAttributes$java_awt_PageAttributes",function(a, +b,c,d){a=sc(2).getInstance$S("swingjs.JSPrintJob");a.setAttributes$S$java_awt_JobAttributes$java_awt_PageAttributes(b,c,d);return a});b(J,"mapInputMethodHighlight$java_awt_im_InputMethodHighlight",function(){return null});b(J,"getFocusPeer$",function(){return null==J.focusManager?J.focusManager=f(sc(12)):J.focusManager},1);b(J,"getKeyboardFocusManagerPeer$",function(){return J.getFocusPeer$()});b(J,"getCurrentFocusOwner$O",function(a){return J.getFocusPeer$().getCurrentFocusOwner$O(a)},1);b(J,"consumeEvent$O", +function(a){var b=null,b=k(a,"java.awt.event.InputEvent")?a.bdata.jqevent||null:a;null!=b&&(b.stopPropagation(),b.preventDefault())},1);b(J,"getMouseLocation$",function(){return sc(2).J2S.getMousePosition(f(sc(13)))},1);b(J,"isOverWritten$javax_swing_JComponent$S",function(a,b){var c=a[b].exClazz.__CLASS_NAME__||"";return 0!=c.indexOf$S("java")&&0!=c.indexOf$S("swingjs")},1);b(J,"checkJ2SFlag$S",function(a){return J2S[a]||!1},1);b(J,"getMenuShortcutKeyMask$",function(){return J.isMac?4:2});n("3.2.4.07"); +(function(){var a=q("swingjs"),e=[[0,"java.util.Hashtable","java.net.URL","javajs.util.Rdr","javajs.util.AU","java.io.BufferedInputStream","java.io.ByteArrayInputStream","swingjs.api.Interface","javajs.util.PT","Boolean","Thread","java.awt.Toolkit","java.util.Locale","javajs.util.AjaxURLConnection","swingjs.json.JSON","java.awt.Color"]],c=function(a){return e[a]||(e[a]=g(e[0][a]))},d=j(a,"JSUtil");d.debugging=!1;d.J2S=null;d.fileCache=null;d.useCache=!1;d.zipTools=null;d.jQuery=null;d.mapNotImpl= +null;d.ctxTemp=null;d.$clinit$=function(){g(d,1);var a=!1,b=null,b=self.J2S,a=J2S._checkLoad||J2S._debugCode;d.debugging=a;d.J2S=b;d.useCache=!0;d.jQuery=d.getJQuery$()};b(d,"$init$",function(){},1);b(d,"c$",function(){d.$init$.apply(this);System.out.println$S("JSUtil initialized")},1);b(d,"getFileCache$",function(){if(null==d.fileCache&&null==(d.fileCache=d.J2S.getSetJavaFileCache(null)))d.fileCache=f(c(1)),d.J2S.getSetJavaFileCache(d.fileCache);return d.fileCache},1);b(d,"getCachedFileData$S",function(a){return d.useCache&& +null!=d.fileCache?d.fileCache.get$O(a):null},1);b(d,"getFileContents$O$Z",function(a,b){if(k(a,"java.io.File")){var e=a.\u79d8bytes||null;if(null!=e)return e}var e=a.toString(),g=null;if(b&&0>e.indexOf$S(":/")){g=d.getCachedFileData$S(e);if(null!=g)return g;e.startsWith$S("/")||(e="/"+e);e="http://."+e}null==g&&(g=d.getCachedFileData$S(e));if(null==g&&!e.startsWith$S("./"))try{var j=f(c(2).c$$S,[e]).getContent$(),g=b?c(3).getStreamAsBytes$java_io_BufferedInputStream$javajs_util_OC(j,null):c(3).streamToUTF8String$java_io_BufferedInputStream(j)}catch(l){if(A(l, +"Exception"))g=d.J2S.getFileData(e,null,!1,b);else throw l;}return g},1);b(d,"getFileAsString$S",function(a){a=d.getFileContents$O$Z(a,!1);return d.ensureString$O(a)},1);b(d,"getFileAsBytes$O$Z",function(a,b){var c=d.getFileAsBytes$O(a);if(b){if(0==c.length||2==c.length&&13==c[0]&&10==c[1]||39==c.length&&String.instantialize(c).equals$O("NetworkError: A network error occurred."))return null;System.out.println$S(String.instantialize(c))}return c},1);b(d,"getFileAsBytes$O",function(a){a=d.getFileContents$O$Z(a, +!0);var b=null;if(k(a,l(Byte.TYPE,-1)))b=a;else if(k(a,"java.lang.String"))b=a.getBytes$();else if(k(a,"javajs.util.SB"))b=c(3).getBytesFromSB$javajs_util_SB(a);else if(k(a,"java.io.InputStream"))try{b=c(3).getLimitedStreamBytes$java_io_InputStream$J(a,-1)}catch(e){if(!A(e,"java.io.IOException"))throw e;}return c(4).ensureSignedBytes$BA(b)},1);b(d,"haveCachedResource$S$Z",function(a,b){var c=d.J2S.getResourcePath(a,b);return null!=c&&null!=d.getCachedFileData$S(c)},1);b(d,"getJavaResource$S$Z$Z$Z", +function(a,b,c,e){System.out.println$S("JSUtil getting Java resource "+a);b=d.J2S.getResourcePath(a,b);if(null==b)return null;var f=d.getCachedFileData$S(b);null==f&&(null!=(f=d.J2S.getFileData(b,null,!1,!1))&&d.useCache&&c)&&d.cacheFileData$S$O(b,f);c=d.ensureString$O(f);f=null!=c&&0!=c.indexOf$S("[Exception");System.out.println$S("Processing "+b+" ["+(f?""+c.length$():c)+"]");return!f?null:!e?c:b.endsWith$S(".css")?d.processCSS$S$S(c,b):b.endsWith$S(".js")?d.processJS$S$S(c,a):c},1);b(d,"getCachedResourceAsStream$S", +function(a){System.out.println$S("JSUtil getting Java resource "+a);var b=d.J2S.getResourcePath(a,!1);if(null==b)return null;var e=d.getCachedFileData$S(b);null==e?e=(a=d.getResourceAsStream$S(a))&&a.$in.buf||null:a=f(c(5).c$$java_io_InputStream,[f(c(6).c$$BA,[e])]);null!=a&&d.useCache&&d.cacheFileData$S$O(b,e);return a},1);b(d,"cacheFileData$S$O",function(a,b){null==b?(System.out.println$S("JSUtil releasing cached bytes for "+a),d.getFileCache$().remove$O(a)):(System.out.println$S("JSUtil caching bytes for "+ +a),d.getFileCache$().put$TK$TV(a,b))},1);b(d,"loadJavaResourcesFromZip$ClassLoader$S$java_util_Map",function(a,b,e){null==e&&(e=d.getFileCache$());var g="";try{var j=f(c(5).c$$java_io_InputStream,[a.getResourceAsStream$S(b)]),k=d.J2S.getResourcePath(null,!0),g=d.getZipTools$().cacheZipContentsStatic$java_io_BufferedInputStream$S$java_util_Map$Z(j,k,e,!1)}catch(l){if(A(l,"Exception")){System.out.println$S("JSUtil could not cache files from "+b);return}throw l;}d.debugging&&System.out.println$S("JSUtil loaded resources from "+ +b+":\n"+g)},1);b(d,"getZipTools$",function(){return null==d.zipTools?d.zipTools=c(7).getInstance$S$Z("javajs.util.ZipTools",!0):d.zipTools},1);b(d,"loadStaticResource$S",function(a){var b="alert('"+a+"' was not found)";d.J2S.isResourceLoaded(a,!1)||(b=d.getJavaResource$S$Z$Z$Z(a,!0,!1,!0),d.J2S.isResourceLoaded(a,!0));return b},1);b(d,"isClassLoaded$S",function(a){return Li._isClassDefined(a)||!1},1);b(d,"processCSS$S$S",function(a,b){null!=b&&0<=a.indexOf$S("images/")&&(b=b.substring$I$I(0,b.lastIndexOf$S("/")+ +1)+"images/",a=c(8).rep$S$S$S(a,"images/",b));d.jQuery.$("head").append(d.jQuery.$(""));return a},1);b(d,"processJS$S$S",function(a,b){try{0>a.indexOf(";//# sourceURL=")&&(a+=";//# sourceURL="+J2S.thisApplet._j2sPath+"/"+b),eval(a)}catch(c){return d.alert$O("error processing "+a),null}return a},1);b(d,"ensureString$O",function(a){return null==a?null:k(a,l(Byte.TYPE,-1))?c(3).bytesToUTF8String$BA(a):k(a,"java.lang.String")||k(a,"javajs.util.SB")?a.toString():k(a, +"java.io.InputStream")?c(3).streamToUTF8String$java_io_BufferedInputStream(f(c(5).c$$java_io_InputStream,[a])):null},1);b(d,"getJQuery$",function(){if(null!=d.jQuery)return d.jQuery;window.jQuery||alert("jQuery is required for SwingJS, but window.jQuery is not defined.");jQuery.$||(jQuery.$=jQuery);return jQuery},1);b(d,"parseJSONRaw$S",function(a){return d.getJQuery$().parseJSON(a)},1);b(d,"getStackTrace$I",function(a){return Li._getStackTrace(a)||null},1);b(d,"getStackTrace$",function(){return Li._getStackTrace()}, +1);b(d,"notImplemented$S",function(a){var b=null;null==d.mapNotImpl&&(d.mapNotImpl=f(c(1)));b=arguments.callee.caller;b=b.claxxOwner||b.exClazz;b=(b?b.__CLASS_NAME__+".":"")+arguments.callee.caller.exName;d.mapNotImpl.containsKey$O(b)||(d.mapNotImpl.put$TK$TV(b,c(9).TRUE),System.out.println$S(b+" has not been implemented in SwingJS. "+(""==a?"":(null==a?"":a)+d.getStackTrace$I(-5))))},1);b(d,"log$S",function(a){System.out.println(a);console.log(a)},1);b(d,"getInstance$S",function(a){return c(7).getInstance$S$Z(a, +!1)},1);b(d,"getAppletViewer$",function(){return c(10).currentThread$().\u79d8appletViewer},1);b(d,"readyCallback$S$S$java_awt_JSComponent$swingjs_JSAppletViewer",function(a,b,c,e){try{d.J2S.readyCallback(a,b,!0,c,e)}catch(f){System.out.println$S("JSUtil Error running readyCallback method for "+b+" -- check your page JavaScript")}},1);b(d,"getSignedStreamBytes$java_io_BufferedInputStream",function(a){try{return c(4).ensureSignedBytes$BA(c(3).getStreamAsBytes$java_io_BufferedInputStream$javajs_util_OC(a, +null))}catch(b){if(A(b,"java.io.IOException"))return null;throw b;}},1);b(d,"saveFile$S$O$S$S",function(a,b,c,e){d.J2S.saveFile(a,b,c,e)},1);b(d,"getResourceAsStream$S",function(a){return c(11).getDefaultToolkit$().getClass$().getClassLoader$().getResourceAsStream$S(a)},1);b(d,"getResource$S",function(a){return c(11).getDefaultToolkit$().getClass$().getClassLoader$().getResource$S(a)},1);b(d,"getDefaultLocale$S",function(a){var b,e;null==a&&(a=d.J2S.getDefaultLanguage(!0));a=a.replace$C$C("-","_"); +if(null==a||0==a.length$()||a.equalsIgnoreCase$S("en"))a="en_US";var g=a.indexOf$I("_");0c?0:c):"pageDownPassThrough"==b?(c=d+c,d=a.getItemCount$(),cd||d>=b.getSize$())c=!1,d=0;d=this.this$0.listBox.getNextMatch$S$I$javax_swing_text_Position_Bias(this.prefix,d,ra(9).Forward);0>d&&c&&(d=this.this$0.listBox.getNextMatch$S$I$javax_swing_text_Position_Bias(this.prefix, +0,ra(9).Forward));return d});b(fn);n("3.2.4.07");var SB=q("swingjs.plaf"),Wa={},Xu=[[0,"swingjs.JSUtil","java.awt.Insets","java.awt.Color","swingjs.api.js.DOMNode","swingjs.JSToolkit","swingjs.plaf.JSPopupMenuUI","javax.swing.ToolTipManager","swingjs.JSFocusPeer","java.awt.JSComponent","java.awt.Cursor","java.awt.Dimension",["java.awt.Component",".BaselineResizeBehavior"],"javax.swing.UIManager","javajs.util.PT","java.awt.Rectangle","swingjs.plaf.HTML5LookAndFeel","java.awt.event.KeyEvent","java.awt.Point", +"java.awt.Toolkit"]],H=function(a){return Xu[a]||(Xu[a]=g(Xu[0][a]))},u=j(SB,"JSComponentUI",null,"javax.swing.plaf.ComponentUI",["swingjs.plaf.JSEventHandler","java.beans.PropertyChangeListener","javax.swing.event.ChangeListener","java.awt.dnd.peer.DropTargetPeer"]);u.incr=0;u.debugging=!1;u.frameZ=0;u.jquery=null;u.isMenuOpen=!1;u.tempDiv=null;u.zeroInsets=null;u.$clinit$=function(){g(u,1);u.frameZ=19E3;u.jquery=H(1).getJQuery$();u.zeroInsets=f(H(2).c$$I$I$I$I,[0,0,0,0])};b(u,"$init0$",function(){var a; +(a=u.superclazz)&&(a=a.$init0$)&&a.apply(this);this.J2S=null;this.isNull=!1;this.textAlign=this.containerNode=this.itemNode=this.focusNode=this.valueNode=this.accelNode=this.textNode=this.iconNode=this.enableNodes=this.enableNode=this.buttonNode=this.actionNode=this.imageNode=this.centeringNode=this.domNode=this.innerNode=this.outerNode=this.menu=this.targetParent=this.label=this.jc=this.c=this.id=null;this.iconHeight=0;this.menuAnchorNode=this.buttonListener=null;this.draggable=!1;this.num=0;this.isLabel= +this.isSimpleButton=this.isMenu=this.isMenuSep=this.isMenuItem=this.boundsSet=this.isPaintedOnly=this.isTainted=this.isDummyFrame=this.isAWT=!1;this.y=this.x=0;this.preferredSize=null;this.jsActualHeight=this.jsActualWidth=0;this.dropTarget=null;this.mnemonicIndex=this.actionItemOffset=0;this.isTable=this.isDesktop=this.isPanel=this.isLayeredPane=this.isContentPane=this.isPopupMenu=this.isRootPane=this.isWindow=this.isContainer=!1;this.currentIcon=this.currentText=this.parent=null;this.currentGap= +0;this.applet=this.body=this.classID=this.scrollPaneUI=null;this.needPreferred=!1;this.height=this.width=0;this.inactiveBackground=this.inactiveForeground=this.colorUNKNOWN=this.waitImage=null;this.allowTextAlignment=this.isHTML=this.enabled=!1;this.menuTimer=0;this.keysEnabled=this.notImplemented=this.j2sDoPropagate=!1;this.mnemonic=0;this.awtPeerFG=this.awtPeerBG=this.awttop=null;this.isDisposed=this.layingOut=!1;this.cellComponent=null;this.cellHeight=this.cellWidth=0;this.isUIDisabled=!1;this.actualWidth= +this.actualHeight=0;this.ignoreFocus=this.allowDivOverflow=this.imagePersists=this.allowPaintedBackground=!1;this.preferredDim=this.textR=this.iconR=this.viewR=this.icon=this.insets=this.embeddingNode=null;this.isFullyCentered=!1;this.myCursor=null;this.isLaidOut=this.alignmentDisabled=!1;this.backgroundColor=null;this.modalBlocked=!1},1);b(u,"$init$",function(){this.J2S=H(1).J2S;this.isTainted=!0;this.dropTarget=this;this.mnemonicIndex=-1;this.currentGap=2147483647;this.inactiveBackground=this.inactiveForeground= +this.colorUNKNOWN=f(H(3));this.allowPaintedBackground=this.allowTextAlignment=this.enabled=!0},1);b(u,"setTargetParent$javax_swing_JComponent",function(a){this.targetParent=a});b(u,"getTargetParent$",function(){return this.targetParent});b(u,"saveCellNodes$swingjs_api_js_DOMNode$Z",function(a,b){this.outerNode=null;this.reInit$Z(!0);var c=l(H(4),-1,[this.domNode,this.innerNode,this.centeringNode,this.iconNode,this.textNode,this.accelNode,this.buttonNode,this.enableNode,null==this.enableNodes?null: +this.enableNodes[0],null==this.enableNodes?null:this.enableNodes[1],null==this.enableNodes?null:this.enableNodes[2],this.focusNode,this.actionNode,this.valueNode]);H(4).setAttr(a,"data-nodes",c);Wa.updateTableCell$swingjs_api_js_DOMNode$Z.apply(this,[a,b])});b(u,"updateTableCell$swingjs_api_js_DOMNode$Z",function(a){var b=H(4).firstChild(a);b!==this.domNode&&(this.$$O(a).empty(),a.appendChild(this.domNode),b=this.domNode,H(4).setAttr(a,"domNode",b));this.domNode=this.outerNode=null},Wa);b(u,"restoreCellNodes$swingjs_api_js_DOMNode", +function(a){a=H(4).getAttr(a,"data-nodes");null!=a&&(this.domNode=a[0],this.innerNode=a[1],this.centeringNode=a[2],this.iconNode=a[3],this.textNode=a[4],this.accelNode=a[5],this.buttonNode=a[6],this.enableNode=a[7],null!=a[8]&&(this.enableNodes[0]=a[8],this.enableNodes[1]=a[9],this.enableNodes[2]=a[10]),this.focusNode=a[11],this.actionNode=a[12],this.valueNode=a[13])});b(u,"setDraggable$javajs_api_JSFunction",function(a){this.draggable=!0;this.J2S.setDraggable(this.getDOMNode$(),a)});b(u,"setDoPropagate$", +function(){this.j2sDoPropagate=!0});b(u,"c$",function(){S(u,this,1);this.setDoc$()},1);b(u,"setDoc$",function(){this.body=document.body||null;u.debugging=H(1).debugging});b(u,"installJS$",function(){this.c.addChangeListener$javax_swing_event_ChangeListener&&this.c.addChangeListener$javax_swing_event_ChangeListener(this);null==this.buttonListener&&this.c.addPropertyChangeListener$java_beans_PropertyChangeListener(this)});b(u,"uninstallJS",function(){this.c&&this.c.removeChangeListener$javax_swing_event_ChangeListener&& +this.c.removeChangeListener$javax_swing_event_ChangeListener(this);null!=this.c&&this.c.removePropertyChangeListener$java_beans_PropertyChangeListener(this);null!=this.outerNode&&(H(4).dispose(this.outerNode),this.outerNode=null)},Wa);b(u,"$$O",function(a){return u.jquery.$(a)});b(u,"setComponent$javax_swing_JComponent",function(a){this.c=this.jc=a;this.setUIDisabled$Z(null==a)},Wa);b(u,"set$javax_swing_JComponent",function(a){Wa.setComponent$javax_swing_JComponent.apply(this,[a]);this.isAWT=this.jc.\u79d8isAWT$(); +this.applet=H(5).getHTML5Applet$java_awt_Component(this.c);this.newID$Z(!1);this.installUI$javax_swing_JComponent(a);this.installJS$();this.needPreferred&&this.getHTMLSizePreferred$swingjs_api_js_DOMNode$Z(this.updateDOMNode$(),!1);return this});b(u,"newID$Z",function(a){this.classID=this.c.getUIClassID$();this.notImplemented="ComponentUI"==this.classID;if(null==this.id||a)this.num=++u.incr,this.id=this.c.getHTMLName$S(this.classID)+"_"+this.num});b(u,"reInit$Z",function(a){this.setTainted$();null!= +this.domNode&&H(4).dispose(this.domNode);this.domNode=null;this.keysEnabled=!1;this.newID$Z(!0);return a?this.getDOMNode$():null});b(u,"setDataComponent$swingjs_api_js_DOMNode",function(a){H(4).setAttr(a,"data-component",this.c)});b(u,"setDataKeyComponent$swingjs_api_js_DOMNode",function(a){H(4).setAttr(a,"data-keycomponent",this.c)});b(u,"setDataShadowKeyComponent$swingjs_api_js_DOMNode$java_awt_Component",function(a,b){H(4).setAttr(a,"data-shadowkeycomponent",b)});b(u,"setDataFocusComponent$swingjs_api_js_DOMNode", +function(a){H(4).setAttr(a,"data-focuscomponent",this.c)});b(u,"ignoreAllMouseEvents$swingjs_api_js_DOMNode",function(a){this.addClass$swingjs_api_js_DOMNode$S(a,"swingjs-ui")});b(u,"hideMenusAndToolTip$",function(){u.isMenuOpen&&H(6).closeAllMenus$();javax.swing.ToolTipManager&&H(7).j2sHideToolTip$()},1);b(u,"addClass$swingjs_api_js_DOMNode$S",function(a,b){this.$$O(a).addClass(b)});b(u,"removeClass$swingjs_api_js_DOMNode$S",function(a,b){this.$$O(a).removeClass(b)});b(u,"setDataUI$swingjs_api_js_DOMNode", +function(a){H(4).setAttr(a,"data-ui",this);this.addClass$swingjs_api_js_DOMNode$S(a,"data-ui")});b(u,"setMenuItem$swingjs_api_js_DOMNode",function(a){null!=a&&(this.addClass$swingjs_api_js_DOMNode$S(a,"ui-j2smenu-node"),this.setDataComponent$swingjs_api_js_DOMNode(a))});b(u,"setJ2sMouseHandler$",function(){this.J2S.unsetMouse(this.domNode);this.updateDOMNode$();H(4).setAttrs(this.domNode,["applet",this.applet,"_frameViewer",this.jc.getFrameViewer$()]);this.J2S.setMouse(this.domNode,!0)});b(u,"enableJSKeys$Z", +function(a){this.isUIDisabled||(a?this.keysEnabled?Wa.setTabIndex$I.apply(this,[-1]):this.addFocusHandler$():Wa.setTabIndex$I.apply(this,[-2147483648]))});b(u,"addFocusHandler$",function(){if(!(null==this.focusNode&&null==(this.focusNode=this.domNode)))this.keysEnabled=!0,H(4).setAttrs(this.focusNode,["applet",this.applet,"_frameViewer",this.jc.getFrameViewer$()]),this.setDataKeyComponent$swingjs_api_js_DOMNode(this.focusNode),this.J2S.setKeyListener(this.focusNode),Wa.setTabIndex$I.apply(this,[-1])}); +b(u,"setTabIndex$I",function(a){null!=this.focusNode&&(-2147483648==a?(this.focusNode.removeAttribute("tabindex"),H(4).setAttr(this.focusNode,"ui",null)):(this.focusNode.setAttribute("tabindex",""+a),H(4).setAttr(this.focusNode,"ui",this)))},Wa);b(u,"isFocusable$",function(){return!1});b(u,"setFocusable$",function(){null==this.focusNode&&this.addFocusHandler$();null!=this.focusNode&&this.addJQueryFocusCallbacks$();return null!=this.focusNode});b(u,"hasFocus$",function(){return document.activeElement== +this.focusNode||!1});b(u,"requestFocus$java_awt_Component$Z$Z$J$sun_awt_CausedFocusEvent_Cause",function(a){if(null==a)return this.focus$();if(!this.jc.isFocusable$())return!1;this.setFocusable$();return H(5).requestFocus$java_awt_Component(a)});b(u,"focus$",function(){if(null==this.focusNode||this.isUIDisabled)return!1;H(8).focus$swingjs_api_js_DOMNode(this.focusNode);return!0});b(u,"setComponentFocus$",function(){this.jc.requestFocus$();var a=this.jc.getFocusTraversalPolicy$().getDefaultComponent$java_awt_Container(this.jc); +null!=a&&a.requestFocus$()});b(u,"addJQueryFocusCallbacks$",function(){null==this.focusNode&&(this.focusNode=this.domNode);Wa.setTabIndex$I.apply(this,[-1]);var a=this.$$O(this.focusNode);a.unbind("focus blur");var b=this;a.focus(function(a){b.ignoreFocus||b.handleJSFocus$O$O$Z(b.jc,a.relatedTarget,!0);b.ignoreFocus=!1});a.blur(function(a){try{b.handleJSFocus$O$O$Z(b.jc,a.relatedTarget,!1)}catch(d){}})});b(u,"handleJSFocus$O$O$Z",function(a,b,c){H(8).handleJSFocus$O$O$Z(a,b,c)});b(u,"abstractButtonFocusHack$", +function(){var a=H(5).getCurrentFocusOwner$O(null),a=a&&a.ui||null;null!=a&&a!==this&&(a.handleJSFocus$O$O$Z(this.jc,null,!1),this.handleJSFocus$O$O$Z(this.jc,null,!0))});b(u,"bindJSKeyEvents$swingjs_api_js_DOMNode$Z",function(a,b){this.setDataUI$swingjs_api_js_DOMNode(a);this.keysEnabled=!0;this.bindJQueryEvents$swingjs_api_js_DOMNode$S$I(a,"keydown keypress keyup"+(b?" focusout":""),-2);b&&this.addJQueryFocusCallbacks$()});b(u,"bindJQueryEvents$swingjs_api_js_DOMNode$S$I",function(a,b,c){var d= +this,f=null;this.setDataUI$swingjs_api_js_DOMNode(a);this.addClass$swingjs_api_js_DOMNode$S(a,"ui-events");f=function(b){return d.handleJSEvent$O$I$O(a,c,b)};this.$$O(a).bind(b,f)});b(u,["handleJSEvent$O$I$O","handleJSEvent$"],function(){return!0});b(u,"revalidate$",function(){this.jc.revalidate$()});b(u,"setTainted$",function(){this.setTainted$Z(!0)});b(u,"setTainted$Z",function(a){this.isTainted=a});b(u,["stateChanged$javax_swing_event_ChangeEvent","stateChanged$"],function(){});b(u,"updatePropertyAncestor$Z", +function(a){a&&(this.setTainted$(),this.setHTMLElement$());for(var b=this.jc.getParent$();null!=b;){var c=null==b?null:b.\u79d8getUI$();if(null!=c&&(c.setTainted$(),a))if(c.setHTMLElement$(),null!=c.menu)c.updateMenu$Z(!1);else if(c.isPopupMenu&&null==b.getParent$()){b=b.getInvoker$();continue}b=b.getParent$()}},Wa);b(u,["propertyChange$java_beans_PropertyChangeEvent","propertyChange$"],function(a){if(!(this.isUIDisabled||null==this.domNode)){var b=a.getPropertyName$(),c=a.getNewValue$();if("ancestor"== +b){this.isAWT&&Wa.setAWTFontAndColor$java_awt_Container.apply(this,[c]);if(null!=this.cellComponent)return;Wa.updatePropertyAncestor$Z.apply(this,[!1]);if(null==c)return;this.isDisposed&&(this.c.visible&&null!=a.getNewValue$())&&this.setVisible$Z(!0)}this.propertyChangedCUI$java_beans_PropertyChangeEvent$S(a,b)}});b(u,"setAWTFontAndColor$java_awt_Container",function(a){a=H(9).\u79d8getTopInvokableAncestor$java_awt_Component$Z(a,!1);a===this.awttop||null==(this.awttop=a)?null==a&&(this.awtPeerBG=this.awtPeerFG= +null):(this.setBackgroundImpl$java_awt_Color(this.awtPeerBG=this.getBackground$()),this.setForegroundFor$swingjs_api_js_DOMNode$java_awt_Color(this.domNode,this.awtPeerFG=this.getForeground$()),this.setFont$java_awt_Font(this.c.getFont$()))},Wa);b(u,"propertyChangedFromListener$java_beans_PropertyChangeEvent$S",function(a,b){if(!this.isUIDisabled){switch(b){case "ancestor":if(null!=this.cellComponent)return;Wa.updatePropertyAncestor$Z.apply(this,[!0])}this.propertyChangedCUI$java_beans_PropertyChangeEvent$S(a, +b)}});b(u,"propertyChangedCUI$java_beans_PropertyChangeEvent$S",function(a,b){!this.isMenu&&null==this.cellComponent&&this.getDOMNode$();switch(b){case "preferredSize":this.preferredSize=a.getNewValue$();break;case "background":this.setBackground$java_awt_Color(this.c.getBackground$());break;case "foreground":this.setForeground$java_awt_Color(this.c.getForeground$());break;case "focusable":this.setFocusable$();break;case "opaque":this.setBackground$java_awt_Color(this.c.getBackground$());break;case "inverted":this.updateDOMNode$(); +break;case "text":var c=this.c.getText$();(null==c?null!=this.currentText:!c.equals$O(this.currentText))&&this.setIconAndText$S$javax_swing_Icon$I$S(b,this.currentIcon,this.currentGap,c);break;case "iconTextGap":null!=this.iconNode&&(c=this.c.getIconTextGap$(),this.currentGap!=c&&this.setIconAndText$S$javax_swing_Icon$I$S(b,this.currentIcon,c,this.currentText));break;case "icon":null!=this.centeringNode&&(c=Wa.getIcon$java_awt_JSComponent$javax_swing_Icon.apply(this,[this.c,null]),(null==c?null!= +this.currentIcon:!c.equals$O(this.currentIcon))&&this.setIconAndText$S$javax_swing_Icon$I$S(b,c,this.currentGap,this.currentText));break;case "mnemonic":c=a.getNewValue$().intValue$();this.setMnemonic$I(c);this.setIconAndText$S$javax_swing_Icon$I$S(b,this.currentIcon,this.currentGap,this.currentText);break;case "displayedMnemonicIndex":this.mnemonicIndex=a.getNewValue$().intValue$();this.setIconAndText$S$javax_swing_Icon$I$S(b,this.currentIcon,this.currentGap,this.currentText);break;default:u.debugging&& +System.out.println$S("JSComponentUI: unrecognized prop: "+this.id+" "+b)}});b(u,"setMnemonic$I",function(a){if(!(a==this.mnemonic||null==this.domNode)){0>a&&(a=this.isLabel?null==this.label?-1:this.label.getDisplayedMnemonic$():this.jc.getMnemonic$&&this.jc.getMnemonic$()||-1);var b=null==this.menuAnchorNode?this.domNode:this.menuAnchorNode;0b||0>c)throw f(g("IllegalArgumentException").c$$S,["Width and height must be >= 0"]);return-1});b(u,"getBaselineResizeBehavior$javax_swing_JComponent",function(a){if(null==a)throw f(g("NullPointerException").c$$S,["Component must be non-null"]);return H(12).OTHER});b(u,"getJSTextValue$",function(){return H(4).getAttr(this.domNode,null==this.valueNode?"innerText":"value")});b(u,"getOuterNode$",function(){return null==this.outerNode&&!this.isUIDisabled?this.setHTMLElement$(): +this.outerNode});b(u,"setJSText$swingjs_api_js_DOMNode$S$S",function(a,b,c){return H(4).setAttr(a,b,c)});b(u,"isObscured$",function(){H(1).notImplemented$S("");return!1});b(u,"canDetermineObscurity$",function(){H(1).notImplemented$S("");return!1});b(u,"setVisible$Z",function(a){this.setVisible$swingjs_api_js_DOMNode$Z(this.getOuterNode$(),a)});b(u,"setVisible$swingjs_api_js_DOMNode$Z",function(a,b){this.isPaintedOnly&&(b=!1);if(b||null==this.cellComponent)null==a&&(a=this.domNode),H(4).setVisible(a, +b),b&&this.isDisposed&&this.undisposeUI$swingjs_api_js_DOMNode(a)});b(u,"setEnabled$Z",function(a){if(a!=this.enabled)if(this.enabled=a,null!=this.enableNode)this.enableNode$swingjs_api_js_DOMNode$Z(this.enableNode,a);else if(null!=this.enableNodes)for(var b=0;b=b.getIconWidth$()||0>=b.getIconHeight$()?null:k(b,"javax.swing.ImageIcon")?b:H(5).createImageIcon$java_awt_Component$javax_swing_Icon$S(this.jc,b,this.id+"tmpIcon")},Wa);b(u,"fixText$S",function(a){null!=a&&!this.isHTML&&null==this.valueNode&&(a=(0<=a.indexOf$S("\x00")?H(14).rep$S$S$S(a,"\x00",""):a).replace$C$C(" ","\u00a0"));return a});b(u,"setIconAndText$S$javax_swing_Icon$I$S",function(a,b,c,d){null==this.iconNode&&null==this.textNode||(this.setMnemonic$I(-1), +this.actualWidth=this.actualHeight=0,d=this.fixText$S(this.currentText=d),this.currentGap=c,this.imageNode=this.currentIcon=null,null!=this.iconNode&&(b=this.currentIcon=Wa.getIcon$java_awt_JSComponent$javax_swing_Icon.apply(this,[this.jc,b]),this.$$O(this.iconNode).empty(),null!=this.currentIcon&&(this.imageNode=H(4).getImageNode(this.currentIcon.getImage$()),this.iconNode.appendChild(this.imageNode),this.iconHeight=b.getIconHeight$(),H(4).setStyles(this.imageNode,["visibility",this.isLabel?"hidden": +null]),H(4).setStyles(this.iconNode,["height",this.iconHeight+"px","width",b.getIconWidth$()+"px"]))),null==d?d="":""==d&&this.isAWT&&(d="\u00a0"),""!=d&&("\x00"==d&&(this.isPaintedOnly=!0),H(4).setStyles(this.textNode,["white-space","nowrap"]),null==b?null!=this.iconNode&&(this.allowTextAlignment&&this.isMenuItem&&null==this.actionNode&&null!=d)&&H(4).addHorizontalGap(this.iconNode,c+11):(2147483647==c&&(c=this.getDefaultIconTextGap$()),0!=c&&null!=d&&H(4).addHorizontalGap(this.iconNode,c)),this.isHTML= +!1,0==d.indexOf$S("")?(this.isHTML=!0,d=H(14).rep$S$S$S(d.substring$I(6),"
",""),d=H(14).rep$S$S$S(d,"",""),d=H(14).rep$S$S$S(d,"href=","target=_blank href=")):null!=this.jc.getClientProperty$O("html")?this.isHTML=!0:0<=this.mnemonicIndex&&(b=this.mnemonicIndex,this.isHTML=!0,b"+d.substring$I$I(b,b+1)+""+d.substring$I(b+1)))),b=null,null!=this.textNode?(a="innerHTML",b=this.textNode,this.setCssFont$swingjs_api_js_DOMNode$java_awt_Font(this.domNode, +this.getFont$()),this.setCssFont$swingjs_api_js_DOMNode$java_awt_Font(this.textNode,this.getFont$()),this.isHTML||(d=H(14).rep$S$S$S(d,"<","<").replace$C$C(" ","\u00a0"))):null!=this.valueNode&&(a="value",b=this.valueNode,null!=this.iconNode&&H(4).setVisible(b,null!=d)),null!=b&&this.setJSText$swingjs_api_js_DOMNode$S$S(b,a,d),null!=this.valueNode&&this.setBackgroundImpl$java_awt_Color(this.c.getBackground$()))});b(u,"getDefaultIconTextGap$",function(){return 0});b(u,"getJSInsets$",function(){null== +this.insets&&(this.insets=f(H(2).c$$I$I$I$I,[0,0,0,0]));this.insets=this.jc.getInsets$java_awt_Insets(this.insets)});b(u,"setButtonRectangles$Z",function(a){null==this.iconR&&(this.iconR=f(H(15)),this.textR=f(H(15)),this.viewR=f(H(15)));this.getJSInsets$();a?(this.viewR.width=32767,this.viewR.height=32767):(this.viewR.x=0,this.viewR.y=0,this.viewR.width=this.width-this.insets.right-this.insets.left,this.viewR.height=this.height-this.insets.bottom-this.insets.top);this.iconR.width=-1;this.isMenuItem&& +null!=this.actionNode?this.iconR.width=this.iconR.height=15:null==this.icon&&null!=this.iconNode&&(a=this.getHTMLSize$swingjs_api_js_DOMNode(this.iconNode),this.iconR.width=a.width,this.iconR.height=a.height);this.iconR.x=this.iconR.y=this.textR.x=this.textR.y=0});b(u,"addCentering$swingjs_api_js_DOMNode",function(a){null==this.iconNode&&(this.iconNode=u.newDOMObject$S$S$SA("span",this.id+"_icon",[]));this.textNode=u.newDOMObject$S$S$SA("span",this.id+"_txt",[]);this.centeringNode=u.newDOMObject$S$S$SA("span", +this.id+"_ctr",[]);this.centeringNode.appendChild(this.iconNode);this.centeringNode.appendChild(this.textNode);a.appendChild(this.centeringNode)});b(u,"updateCenteringNode$",function(){this.jc.\u79d8paintsSelfEntirely$()&&(H(4).setStyles(this.centeringNode,["visibility","hidden"]),H(4).setStyles(this.domNode,["border","none"]),H(4).setStyles(this.domNode,["background","none"]))});b(u,"setAlignments$javax_swing_AbstractButton$Z",function(a,b){if(!this.alignmentDisabled){var c=a.getHorizontalTextPosition$(), +d=a.getHorizontalAlignment$(),h=a.getVerticalAlignment$(),g=a.getVerticalTextPosition$();this.getJSInsets$();var j=Wa.getIconSize$javax_swing_AbstractButton.apply(this,[a]),l=Wa.getTextSize$javax_swing_AbstractButton.apply(this,[a]),m=null!=this.actionNode?this.isMenuItem?15:20:null==j?0:Math.max(0,j.width),n=null==l?0:l.width,q=0==n||0==m?0:a.getIconTextGap$(),r=null!=this.cellComponent?this.cellWidth:this.$$O(this.domNode).width(),t=r;t>16&255)+","+(a>>8&255)+","+(a&255)+","+(new Float(b/255)).toString()+")"},1);b(u,"toRGBHexString$java_awt_Color",function(a){var b=a.getRGB$();if(0==b)return"000000";a="00"+Integer.toHexString$I(b>>16&255);a=a.substring$I(a.length$()-2);var c="00"+Integer.toHexString$I(b>>8&255), +c=c.substring$I(c.length$()-2),b="00"+Integer.toHexString$I(b&255),b=b.substring$I(b.length$()-2);return a+c+b},1);b(u,"updateSceneGraph$javax_swing_JComponent$javax_swing_JComponent$swingjs_JSGraphics2D",function(a,b,c){a=a.ui.outerNode;var d=0,f=0,d=c.$transform.m02,f=c.$transform.m12;d==a.lastSceneX&&f==a.lastSceneY||(a.lastSceneX=d,a.lastSceneY=f,H(4).setStyles(a,["left",d+"px","top",f+"px"]),null==a.parentElement&&b.ui.outerNode.appendChild(a))},1);b(u,"getPropertyPrefix$",function(){var a=this.jc.getUIClassID$(); +return null==a?null:a.substring$I$I(0,a.length$()-2)});b(u,"setPadding$java_awt_Insets",function(a){H(4).setStyles(this.domNode,["padding",null==a?"0px":a.top+"px "+a.left+"px "+a.bottom+"px "+a.right+"px"])});b(u,"addDropTarget$java_awt_dnd_DropTarget",function(a){this.dropTarget!==a&&(this.dropTarget=a,Wa.setDropTarget$Z.apply(this,[!0]))});b(u,"removeDropTarget$java_awt_dnd_DropTarget",function(a){this.dropTarget===a&&(Wa.setDropTarget$Z.apply(this,[!1]),this.dropTarget=null)});b(u,"setDropTarget$Z", +function(){this.dropTarget!==this&&this.J2S.setDragDropTarget(this.c,this.getDOMNode$(),null!=this.dropTarget)},Wa);b(u,"invalidate$",function(){this.setTainted$()});b(u,"checkStopPopupMenuTimer$O$I$O",function(a,b,c){a===this.domNode&&-1==b&&(c.type||"").equals$O("mouseenter")&&this.stopPopupMenuTimer$()});b(u,"startPopupMenuTimer$",function(){var a=this.jc.getPopupMenu$().getUI$();a.menuTimer=setTimeout(function(){a.hideMenu$()},1E3)||0});b(u,"stopPopupMenuTimer$",function(){var a=this.isPopupMenu? +this:this.jc.getParent$().getUI$(),b=a.menuTimer;0!=b&&(clearTimeout(b),a.menuTimer=0)});b(u,"setRenderer$java_awt_JSComponent$I$I$swingjs_api_js_DOMNode",function(a,b,c,d){Wa.setComponent$javax_swing_JComponent.apply(this,[a]);this.isUIDisabled?Wa.updateTableCell$swingjs_api_js_DOMNode$Z.apply(this,[d,!0]):(this.cellComponent=a,0!=b&&(this.cellWidth=b,this.cellHeight=c))});b(u,"reinstallUI$javax_swing_JComponent$javax_swing_JComponent",function(a,b){this.uninstallUI$javax_swing_JComponent(a);Wa.uninstallJS.apply(this, +[]);null!=b&&(this.installJS$(),this.installUI$javax_swing_JComponent(b))});b(u,"setForeground$java_awt_Color",function(a){this.awtPeerFG=null;this.setForegroundFor$swingjs_api_js_DOMNode$java_awt_Color(this.domNode,a)});b(u,"setBackground$java_awt_Color",function(a){this.awtPeerBG=null;this.setBackgroundImpl$java_awt_Color(a)});b(u,"setBackgroundImpl$java_awt_Color",function(a){null==this.domNode||(this.isMenuItem||this.isUIDisabled)||(this.backgroundColor=a,(this.jc.\u79d8paintsSelf$()||(this.isContentPane|| +this.isLayeredPane)&&1==this.jc.\u79d8setPaintsSelf$I(1))&&this.jc.isOpaque$()&&this.clearPaintPath$(),this.paintBackground$swingjs_JSGraphics2D(this.jc.\u79d8gtemp))});b(u,"checkTransparent",function(){null!=this.domNode&&(null!=this.cellComponent||!this.c.isOpaque$())&&Wa.setTransparent.apply(this,[])},Wa);b(u,"setTransparent",function(){this.allowPaintedBackground&&H(4).setStyles(this.domNode,["background","transparent"])},Wa);b(u,"paintBackground$swingjs_JSGraphics2D",function(a){var b=this.c.isOpaque$(), +c=this.jc.\u79d8paintsSelf$(),d=null==this.backgroundColor?this.getBackground$():this.backgroundColor;null==a?c||this.setBackgroundDOM$swingjs_api_js_DOMNode$java_awt_Color(this.domNode,d):this.allowPaintedBackground&&b&&(a.setBackground$java_awt_Color(d),a.clearRect$I$I$I$I(0,0,this.c.getWidth$(),this.c.getHeight$()),b=null==this.cellComponent&&!this.jc.\u79d8paintsSelf$(),!b&&this.isWindow&&(a=this.jc.getRootPane$().getContentPane$(),a.\u79d8setPaintsSelf$I(1),Wa.setTransparent.apply(a.ui,[]))); +this.allowPaintedBackground&&!b?Wa.setTransparent.apply(this,[]):Wa.checkTransparent.apply(this,[])});b(u,"setBackgroundDOM$swingjs_api_js_DOMNode$java_awt_Color",function(a,b){H(4).setStyles(a,["background-color",null==b?null:H(5).getCSSColor$java_awt_Color(b)])});b(u,"clearPaintPath$",function(){for(var a=this.jc;null!=a;)Wa.setTransparent.apply(a.ui,[]),a=a.getParent$()});b(u,"isModalBlocked$",function(){return H(9).\u79d8getTopInvokableAncestor$java_awt_Component$Z(this.jc,!1).\u79d8getUI$().modalBlocked}); +n("3.2.4.07");var TB=q("swingjs.plaf");N(TB,"JSEventHandler");n("3.2.4.07");var pl=q("swingjs.plaf"),Yu=[[0,"java.awt.Insets","swingjs.plaf.JSComponentUI","swingjs.api.js.DOMNode","java.awt.Toolkit","java.awt.Color","java.awt.event.ComponentEvent","java.awt.event.WindowEvent","javax.swing.LookAndFeel","java.awt.Rectangle"]],Eb=function(a){return Yu[a]||(Yu[a]=g(Yu[0][a]))},Xb=j(pl,"JSFrameUI",null,"swingjs.plaf.JSWindowUI","java.awt.peer.FramePeer");Xb.ZERO_INSETS=null;Xb.$clinit$=function(){g(Xb, +1);Xb.ZERO_INSETS=f(Eb(1).c$$I$I$I$I,[0,0,0,0])};b(Xb,"$init0$",function(){var a;(a=Xb.superclazz)&&(a=a.$init0$)&&a.apply(this);this.frame=null;this.state=0;this.closerWrap=null;this.isModal=!1;this.zModal=0;this.doEmbed=this.isInternalFrame=!1;this.bounds=null},1);b(Xb,"$init$",function(){},1);b(Xb,"c$",function(){S(Xb,this,1);Eb(2).frameZ+=1E3;this.z=Eb(2).frameZ;this.isContainer=!0;this.defaultWidth=this.defaultHeight=500;this.setDoc$()},1);b(Xb,"updateDOMNode$",function(){if(null==this.domNode){this.containerNode= +this.frameNode=this.domNode=pl.JSComponentUI.newDOMObject$S$S$SA("div",this.id+"_frame",[]);if(this.isDummyFrame)return Eb(3).setVisible(this.domNode,!1),this.domNode;var a=this.c.getWidth$(),b=this.c.getHeight$();0==a&&(a=this.defaultWidth);0==b&&(b=this.defaultHeight);Eb(3).setSize(this.frameNode,a,b);Eb(3).setTopLeftAbsolute(this.frameNode,0,0);a=this.frame.getName$();b=Eb(3).getElement(a+"-div");if(null!=b){this.embeddingNode=b;if(this.doEmbed=0=c;b--)if(null!=a[b]){var d=a[b].getComponent$();if(null!=d&&(d.isEnabled$()||he(8).getBoolean$O("MenuItem.disabledAreNavigable"))&&d.isVisible$())return a[b]}return null},1);b(Za,"getInputMap$javax_swing_JPopupMenu$javax_swing_JComponent",function(a,b){var c=null,d=he(8).get$O("PopupMenu.selectedWindowInputMapBindings");null!=d&&(c=he(6).makeComponentInputMap$javax_swing_JComponent$OA(b, +d),a.getComponentOrientation$().isLeftToRight$()||(d=he(8).get$O("PopupMenu.selectedWindowInputMapBindings.RightToLeft"),null!=d&&(d=he(6).makeComponentInputMap$javax_swing_JComponent$OA(b,d),d.setParent$javax_swing_InputMap(c),c=d)));return c},1);b(Za,"findEnabledChild$javax_swing_MenuElementA$I$Z",function(a,b,c){c?(c=Za.nextEnabledChild$javax_swing_MenuElementA$I$I(a,b+1,a.length-1),null==c&&(c=Za.nextEnabledChild$javax_swing_MenuElementA$I$I(a,0,b-1))):(c=Za.previousEnabledChild$javax_swing_MenuElementA$I$I(a, +b-1,0),null==c&&(c=Za.previousEnabledChild$javax_swing_MenuElementA$I$I(a,a.length-1,b+1)));return c},1);b(Za,"findEnabledChild$javax_swing_MenuElementA$javax_swing_MenuElement$Z",function(a,b,c){for(var d=0;dn?(l.x=n-m,a.setViewPosition$java_awt_Point(l), +q=0):q=Math.max(0,Math.min(n-m,n-m-l.x))),c.setValues$I$I$I$I(q,m,0,n));null!=d&&(c=d.getViewPosition$(),c.y=a.getViewPosition$().y,c.x=0,d.setViewPosition$java_awt_Point(c));null!=f&&(c=f.getViewPosition$(),c.x=g?a.getViewPosition$().x:Math.max(0,a.getViewPosition$().x),c.y=0,f.setViewPosition$java_awt_Point(c))}});b(tb,"getBaseline$javax_swing_JComponent$I$I",function(a,b,c){var d=this.scrollpane.getViewport$(),f=this.scrollpane.getInsets$();a=f.top;c=c-f.top-f.bottom;b=b-f.left-f.right;f=this.scrollpane.getColumnHeader$(); +if(null!=f&&f.isVisible$()){var g=f.getView$();if(null!=g&&g.isVisible$()){var j=g.getPreferredSize$(),g=g.getBaseline$I$I(j.width,j.height);if(0<=g)return a+g}f=f.getPreferredSize$();c-=f.height;a+=f.height}d=null==d?null:d.getView$();return null!=d&&(d.isVisible$()&&d.getBaselineResizeBehavior$()===kc(12).CONSTANT_ASCENT)&&(f=this.scrollpane.getViewportBorder$(),null!=f&&(f=f.getBorderInsets$java_awt_Component(this.scrollpane),a+=f.top,c=c-f.top-f.bottom,b=b-f.left-f.right),0c?c-d:Math.max(0,Math.min(c-d,b.x))}b.y=Math.max(b.y,0);a.setViewPosition$java_awt_Point(b);a.addChangeListener$javax_swing_event_ChangeListener(this.viewportChangeListener)}}); +b(tb,"updateRowHeader$java_beans_PropertyChangeEvent",function(a){a=a.getNewValue$();if(null!=a){var b=this.scrollpane.getViewport$(),c=a.getViewPosition$();c.y=null!=b?b.getViewPosition$().y:0;a.setViewPosition$java_awt_Point(c)}});b(tb,"updateColumnHeader$java_beans_PropertyChangeEvent",function(a){a=a.getNewValue$();if(null!=a){var b=this.scrollpane.getViewport$(),c=a.getViewPosition$();c.x=null==b?0:this.scrollpane.getComponentOrientation$().isLeftToRight$()?b.getViewPosition$().x:Math.max(0, +b.getViewPosition$().x);a.setViewPosition$java_awt_Point(c);this.scrollpane.add$java_awt_Component$O(a,"COLUMN_HEADER")}});b(tb,"createPropertyChangeListener$",function(){return this.getHandler$()});b(tb,"jsModelStateChanged$javax_swing_event_ChangeEvent",function(a){return this.scrollBarUIDisabled?(Ne.jsScrollComponentUsingCSS$Z.apply(this,[a.getSource$()===this.viewport]),!0):!1},Ne);b(tb,"jsScrollComponentUsingCSS$Z",function(a){var b=this.viewport.getBounds$(),c=this.scrolledComponent.getBounds$(); +!b.equals$O(c)&&!a&&this.scrolledComponent.setBounds$java_awt_Rectangle(b);kc(2).setStyles(this.scrolledUI.domNode,["overflow-x",Ne.getScrollBarPolicyCSS$I.apply(this,[this.scrollpane.getHorizontalScrollBarPolicy$()]),"overflow-y",Ne.getScrollBarPolicyCSS$I.apply(this,[this.scrollpane.getVerticalScrollBarPolicy$()])]);null!=this.horizBarUI&&kc(2).setVisible(this.horizBarUI.jqSlider,!1);null!=this.vertBarUI&&kc(2).setVisible(this.vertBarUI.jqSlider,!1)},Ne);b(tb,"notifyTableScrolling$",function(){null!= +this.scrolledComponent&&"TableUI"==this.scrolledComponent.getUIClassID$()&&this.scrolledComponent.ui.setScrolling$()});b(tb,"paint$java_awt_Graphics$javax_swing_JComponent",function(a,b){tb.superclazz.prototype.paint$java_awt_Graphics$javax_swing_JComponent.apply(this,[a,b]);Ne.updateScrollBarExtents.apply(this,[])});var Yo=j(hn.JSScrollPaneUI,"ViewportChangeHandler",function(a){m(this,a,!0,Yo)},null,"javax.swing.event.ChangeListener");Yo.$clinit$=function(){g(Yo,1)};b(Yo,"$init$",function(){},1); +b(Yo,["stateChanged$javax_swing_event_ChangeEvent","stateChanged$"],function(a){this.this$0.getHandler$.apply(this.this$0,[]).stateChanged$javax_swing_event_ChangeEvent(a)});b(Yo);var Zo=j(hn.JSScrollPaneUI,"HSBChangeListener",function(a){m(this,a,!0,Zo)},null,"javax.swing.event.ChangeListener");Zo.$clinit$=function(){g(Zo,1)};b(Zo,"$init$",function(){},1);b(Zo,["stateChanged$javax_swing_event_ChangeEvent","stateChanged$"],function(a){this.this$0.getHandler$.apply(this.this$0,[]).stateChanged$javax_swing_event_ChangeEvent(a)}); +b(Zo);var $o=j(hn.JSScrollPaneUI,"VSBChangeListener",function(a){m(this,a,!0,$o)},null,"javax.swing.event.ChangeListener");$o.$clinit$=function(){g($o,1)};b($o,"$init$",function(){},1);b($o,["stateChanged$javax_swing_event_ChangeEvent","stateChanged$"],function(a){this.this$0.getHandler$.apply(this.this$0,[]).stateChanged$javax_swing_event_ChangeEvent(a)});b($o);var ap=j(hn.JSScrollPaneUI,"PropertyChangeHandler",function(a){m(this,a,!0,ap)},null,"java.beans.PropertyChangeListener");ap.$clinit$=function(){g(ap, +1)};b(ap,"$init$",function(){},1);b(ap,["propertyChange$java_beans_PropertyChangeEvent","propertyChange$"],function(a){this.this$0.getHandler$.apply(this.this$0,[]).propertyChange$java_beans_PropertyChangeEvent(a)});b(ap);var wj=j(hn.JSScrollPaneUI,"Actions",function(a){m(this,a,!1,wj)},"sun.swing.UIAction");wj.$clinit$=function(){g(wj,1)};b(wj,"$init$",function(){},1);b(wj,"c$$S",function(a){wj.superclazz.c$$S.apply(this,[a]);wj.$init$.apply(this)},1);b(wj,["actionPerformed$java_awt_event_ActionEvent", +"actionPerformed$"],function(a){a=a.getSource$();var b=a.getComponentOrientation$().isLeftToRight$(),c=this.getName$();"scrollUp"==c?Ki.scroll$javax_swing_JScrollPane$I$I$Z.apply(this,[a,1,-1,!0]):"scrollDown"==c?Ki.scroll$javax_swing_JScrollPane$I$I$Z.apply(this,[a,1,1,!0]):"scrollHome"==c?Ki.scrollHome$javax_swing_JScrollPane.apply(this,[a]):"scrollEnd"==c?Ki.scrollEnd$javax_swing_JScrollPane.apply(this,[a]):"unitScrollUp"==c?Ki.scroll$javax_swing_JScrollPane$I$I$Z.apply(this,[a,1,-1,!1]):"unitScrollDown"== +c?Ki.scroll$javax_swing_JScrollPane$I$I$Z.apply(this,[a,1,1,!1]):"scrollLeft"==c?Ki.scroll$javax_swing_JScrollPane$I$I$Z.apply(this,[a,0,b?-1:1,!0]):"scrollRight"==c?Ki.scroll$javax_swing_JScrollPane$I$I$Z.apply(this,[a,0,b?1:-1,!0]):"unitScrollLeft"==c?Ki.scroll$javax_swing_JScrollPane$I$I$Z.apply(this,[a,0,b?-1:1,!1]):"unitScrollRight"==c&&Ki.scroll$javax_swing_JScrollPane$I$I$Z.apply(this,[a,0,b?1:-1,!1])});b(wj,"scrollEnd$javax_swing_JScrollPane",function(a){var b=a.getViewport$(),c;if(null!= +b&&null!=(c=b.getView$())){var d=b.getViewRect$();c=c.getBounds$();a.getComponentOrientation$().isLeftToRight$()?b.setViewPosition$java_awt_Point(f(kc(1).c$$I$I,[c.width-d.width,c.height-d.height])):b.setViewPosition$java_awt_Point(f(kc(1).c$$I$I,[0,c.height-d.height]))}},Ki);b(wj,"scrollHome$javax_swing_JScrollPane",function(a){var b=a.getViewport$(),c;if(null!=b&&null!=(c=b.getView$()))a.getComponentOrientation$().isLeftToRight$()?b.setViewPosition$java_awt_Point(f(kc(1).c$$I$I,[0,0])):(a=b.getViewRect$(), +c=c.getBounds$(),b.setViewPosition$java_awt_Point(f(kc(1).c$$I$I,[c.width-a.width,0])))},Ki);b(wj,"scroll$javax_swing_JScrollPane$I$I$Z",function(a,b,c,d){var f=a.getViewport$(),g;if(null!=f&&null!=(g=f.getView$())){var j=f.getViewRect$(),l=g.getSize$();d=k(g,"javax.swing.Scrollable")?d?g.getScrollableBlockIncrement$java_awt_Rectangle$I$I(j,b,c):g.getScrollableUnitIncrement$java_awt_Rectangle$I$I(j,b,c):d?1==b?j.height:j.width:10;1==b?(j.y+=d*c,j.y+j.height>l.height?j.y=Math.max(0,l.height-j.height): +0>j.y&&(j.y=0)):a.getComponentOrientation$().isLeftToRight$()?(j.x+=d*c,j.x+j.width>l.width?j.x=Math.max(0,l.width-j.width):0>j.x&&(j.x=0)):(j.x-=d*c,j.x=j.width>l.width?l.width-j.width:Math.max(0,Math.min(l.width-j.width,j.x)));f.setViewPosition$java_awt_Point(j.getLocation$())}},Ki);b(wj);var Yh=j(hn.JSScrollPaneUI,"Handler",function(a){m(this,a,!0,Yh)},null,["javax.swing.event.ChangeListener","java.beans.PropertyChangeListener"]);Yh.$clinit$=function(){g(Yh,1)};b(Yh,"$init$",function(){},1);b(Yh, +["stateChanged$javax_swing_event_ChangeEvent","stateChanged$"],function(a){var b=this.this$0.scrollpane.getViewport$();if(null!=b)if(a.getSource$()===b)rl.viewportStateChanged$javax_swing_event_ChangeEvent.apply(this,[a]);else{var c=this.this$0.scrollpane.getHorizontalScrollBar$();null!=c&&a.getSource$()===c.getModel$()?rl.hsbStateChanged$javax_swing_JViewport$javax_swing_event_ChangeEvent.apply(this,[b,a]):(c=this.this$0.scrollpane.getVerticalScrollBar$(),null!=c&&a.getSource$()===c.getModel$()&& +rl.vsbStateChanged$javax_swing_JViewport$javax_swing_event_ChangeEvent.apply(this,[b,a]))}});b(Yh,"vsbStateChanged$javax_swing_JViewport$javax_swing_event_ChangeEvent",function(a,b){var c=b.getSource$(),d=a.getViewPosition$();d.y=c.getValue$();Ne.setScrollComponent$javax_swing_JViewport$Z.apply(this.this$0,[a,!1]);this.this$0.notifyTableScrolling$.apply(this.this$0,[]);a.setViewPosition$java_awt_Point(d);this.this$0.scrollpane.getVerticalScrollBar$().setVisibleAmount$I(a.getHeight$())},rl);b(Yh,"hsbStateChanged$javax_swing_JViewport$javax_swing_event_ChangeEvent", +function(a,b){var c=b.getSource$(),d=a.getViewPosition$();Ne.setScrollComponent$javax_swing_JViewport$Z.apply(this.this$0,[a,!1]);this.this$0.notifyTableScrolling$.apply(this.this$0,[]);c=c.getValue$();if(this.this$0.scrollpane.getComponentOrientation$().isLeftToRight$())d.x=c;else{var f=a.getViewSize$().width,g=a.getExtentSize$().width,j=d.x;d.x=f-g-c;0==g&&0!=c&&j==f?this.this$0.setValueCalled=!0:0!=g&&(0>j&&0==d.x)&&(d.x+=c)}a.setViewPosition$java_awt_Point(d);this.this$0.scrollpane.getHorizontalScrollBar$().setVisibleAmount$I(a.getWidth$())}, +rl);b(Yh,"viewportStateChanged$javax_swing_event_ChangeEvent",function(){this.this$0.syncScrollPaneWithViewport$.apply(this.this$0,[]);!k(this.this$0.scrollpane.getViewport$().getView$(),"javax.swing.JTable")&&this.this$0.jc.\u79d8selfOrChildIsPainted$()&&this.this$0.jc.\u79d8repaint$()},rl);b(Yh,["propertyChange$java_beans_PropertyChangeEvent","propertyChange$"],function(a){a.getSource$()===this.this$0.scrollpane?rl.scrollPanePropertyChange$java_beans_PropertyChangeEvent.apply(this,[a]):rl.sbPropertyChange$java_beans_PropertyChangeEvent.apply(this, +[a])});b(Yh,"scrollPanePropertyChange$java_beans_PropertyChangeEvent",function(a){switch(a.getPropertyName$()){case "verticalScrollBarDisplayPolicy":this.this$0.updateScrollBarDisplayPolicy$java_beans_PropertyChangeEvent.apply(this.this$0,[a]);break;case "horizontalScrollBarDisplayPolicy":this.this$0.updateScrollBarDisplayPolicy$java_beans_PropertyChangeEvent.apply(this.this$0,[a]);break;case "viewport":this.this$0.updateViewport$java_beans_PropertyChangeEvent.apply(this.this$0,[a]);break;case "rowHeader":this.this$0.updateRowHeader$java_beans_PropertyChangeEvent.apply(this.this$0, +[a]);break;case "columnHeader":this.this$0.updateColumnHeader$java_beans_PropertyChangeEvent.apply(this.this$0,[a]);break;case "verticalScrollBar":this.updateVerticalScrollBar$java_beans_PropertyChangeEvent(a);break;case "horizontalScrollBar":this.updateHorizontalScrollBar$java_beans_PropertyChangeEvent(a);break;case "componentOrientation":this.this$0.scrollpane.revalidate$(),this.this$0.scrollpane.\u79d8repaint$()}},rl);b(Yh,"updateHorizontalScrollBar$java_beans_PropertyChangeEvent",function(a){Ne.updateScrollBar$javax_swing_JScrollBar$javax_swing_JScrollBar$javax_swing_event_ChangeListener$java_beans_PropertyChangeListener$Z.apply(this.this$0, +[a.getOldValue$(),a.getNewValue$(),this.this$0.hsbChangeListener,this.this$0.hsbPropertyChangeListener,!1])});b(Yh,"updateVerticalScrollBar$java_beans_PropertyChangeEvent",function(a){Ne.updateScrollBar$javax_swing_JScrollBar$javax_swing_JScrollBar$javax_swing_event_ChangeListener$java_beans_PropertyChangeListener$Z.apply(this.this$0,[a.getOldValue$(),a.getNewValue$(),this.this$0.vsbChangeListener,this.this$0.vsbPropertyChangeListener,!0])});b(Yh,"sbPropertyChange$java_beans_PropertyChangeEvent", +function(a){var b=a.getPropertyName$(),c=a.getSource$();switch(b){case "model":b=this.this$0.scrollpane.getVerticalScrollBar$();a=a.getOldValue$();var d=null;c===b?d=this.this$0.vsbChangeListener:c===this.this$0.scrollpane.getHorizontalScrollBar$()&&(b=this.this$0.scrollpane.getHorizontalScrollBar$(),d=this.this$0.hsbChangeListener);null!=d&&(null!=a&&a.removeChangeListener$javax_swing_event_ChangeListener(d),null!=b.getModel$()&&b.getModel$().addChangeListener$javax_swing_event_ChangeListener(d)); +break;case "componentOrientation":c===this.this$0.scrollpane.getHorizontalScrollBar$()&&(c=this.this$0.scrollpane.getHorizontalScrollBar$(),b=this.this$0.scrollpane.getViewport$(),a=b.getViewPosition$(),a.x=this.this$0.scrollpane.getComponentOrientation$().isLeftToRight$()?c.getValue$():b.getViewSize$().width-b.getExtentSize$().width-c.getValue$(),b.setViewPosition$java_awt_Point(a))}},rl);b(Yh);b(tb);n("3.2.4.07");var $w=q("swingjs.plaf"),Np=j($w,"JSSeparatorUI",null,"swingjs.plaf.JSLightweightUI"); +Np.$clinit$=function(){g(Np,1)};b(Np,"$init$",function(){},1);b(Np,"updateDOMNode$",function(){null==this.domNode&&(this.domNode=$w.JSComponentUI.newDOMObject$S$S$SA("label",this.id,[]));return this.domNode});b(Np);n("3.2.4.07");var ax=q("swingjs.plaf"),$e={},lv=[[0,"swingjs.jquery.JQueryUI","swingjs.JSUtil","swingjs.api.js.DOMNode","swingjs.plaf.JSComponentUI","java.awt.Color","swingjs.JSToolkit","javax.swing.LookAndFeel","java.awt.Dimension","sun.swing.DefaultLookup"]],xb=function(a){return lv[a]|| +(lv[a]=g(lv[0][a]))},qb=j(ax,"JSSliderUI",null,"swingjs.plaf.JSLightweightUI",["java.beans.PropertyChangeListener","javax.swing.event.ChangeListener"]);qb.$clinit$=function(){g(qb,1);x(xb(1));xb(2).loadStaticResource$S("swingjs/jquery/jquery-ui-j2sslider.css");xb(2).loadStaticResource$S("swingjs/jquery/jquery-ui-j2sslider.js")};b(qb,"$init0$",function(){var a;(a=qb.superclazz)&&(a=a.$init0$)&&a.apply(this);this.slider=null;this.minorSpacing=this.majorSpacing=this.val=this.max=this.min=0;this.snapToTicks= +this.paintLabels=this.paintTicks=!1;this.jqSlider=this.orientation=this.labelTable=null;this.z0=0;this.model=null;this.paintTrack=!1;this.myScrollPaneUI=null;this.isScrollBar=!1;this.sliderHandle=this.sliderTrack=this.jScrollBar=null;this.myHeight=this.disabled=0;this.isInverted=this.isVerticalScrollBar=this.isHoriz=!1;this.ticks=null;this.noSnapping=!1;this.foreColor=null},1);b(qb,"$init$",function(){this.z0=-2147483648;this.paintTrack=!0;this.foreColor=null},1);b(qb,"c$",function(){S(qb,this,1); +this.needPreferred=!0;this.setDoc$()},1);b(qb,"updateDOMNode$",function(){$e.setSliderFields.apply(this,[]);this.min=this.slider.getMinimum$();this.max=this.slider.getMaximum$();this.val=this.slider.getValue$();this.isScrollBar||(this.minorSpacing=this.slider.getMinorTickSpacing$(),this.majorSpacing=this.slider.getMajorTickSpacing$(),this.paintTicks=this.slider.getPaintTicks$(),this.paintLabels=this.slider.getPaintLabels$(),this.paintTrack=this.slider.getPaintTrack$(),this.snapToTicks=this.slider.getSnapToTicks$()); +this.orientation=1==this.slider.getOrientation$()?"vertical":"horizontal";this.model=this.slider.getModel$();var a=0==this.slider.getOrientation$(),b=this.isScrollBar&&!a,c=b||!this.isScrollBar&&this.slider.getInverted$(),d=!1;if(a!=this.isHoriz||b!=this.isVerticalScrollBar||c!=this.isInverted)this.isHoriz=a,this.isVerticalScrollBar=b,this.isInverted=c,d=!0;(a=null==this.domNode)?(this.domNode=ax.JSComponentUI.wrap$S$S$swingjs_api_js_DOMNodeA("div",this.id+"_wrap",[this.jqSlider=xb(3).createElement("div", +this.id)]),this.$$O(this.domNode).addClass("swingjs"),this.$$O(this.domNode).addClass("ui-j2sslider-wrap"),$e.setJQuerySliderAndEvents.apply(this,[]),this.setTainted$()):d&&($e.disposeSlider.apply(this,[]),this.domNode.appendChild(this.jqSlider=xb(3).createElement("div",this.id+ ++xb(4).incr)),$e.setJQuerySliderAndEvents.apply(this,[]),this.setTainted$(),this.setInnerComponentBounds$I$I(this.jc.getWidth$(),this.jc.getHeight$()));$e.setup$Z.apply(this,[a||d]);this.setSlider$();this.setBackground$java_awt_Color(this.getBackground$()); +this.setForeground$java_awt_Color(this.getForeground$());return this.updateDOMNodeCUI$()});b(qb,"setForeground$java_awt_Color",function(a){if(this.paintTicks||this.paintLabels){null!=this.awtPeerFG&&!this.awtPeerFG.equals$O(a)&&(this.awtPeerFG=null);if(null==a||k(a,"javax.swing.plaf.UIResource"))a=xb(5).black;a=xb(6).getCSSColor$java_awt_Color(a);if(this.foreColor!=a){this.foreColor=a;if(this.paintTicks){xb(3).setStyles(this.jqSlider,["background-color",a]);var b="ui-j2sslider-tick-mark-"+(this.isHoriz? +"vert":"horiz");this.$$O(this.domNode).find("."+b).css({backgroundColor:a},"")}this.paintLabels&&this.$$O(this.domNode).find("SPAN").css("color",a)}}});b(qb,"setBackground$java_awt_Color",function(a){null!=this.awtPeerBG&&!this.awtPeerBG.equals$O(a)&&(this.awtPeerBG=null);if((this.isScrollBar?null!=a:this.jc.isOpaque$())&&!this.paintTicks){var b=null==this.myScrollPaneUI&&!this.paintTicks?this.jqSlider:this.sliderTrack;xb(3).setStyles(b,["background-color",xb(6).getCSSColor$java_awt_Color(a)]);this.isScrollBar&& +xb(5).WHITE.equals$O(a)&&xb(3).setStyles(this.sliderHandle,["background","#ccc"])}this.isScrollBar||this.setBackgroundDOM$swingjs_api_js_DOMNode$java_awt_Color(this.outerNode,this.getBackground$())});b(qb,"paintBackground$swingjs_JSGraphics2D",function(){});b(qb,"setBackgroundImpl$java_awt_Color",function(a){this.setBackground$java_awt_Color(a)});b(qb,"disposeSlider",function(){this.$$O(this.jqSlider).j2sslider("destroy");xb(3).dispose(this.jqSlider)},$e);b(qb,"installUI$javax_swing_JComponent",function(a){$e.setSliderFields.apply(this, +[]);xb(7).installColorsAndFont$javax_swing_JComponent$S$S$S(a,"Slider.background","Slider.foreground","Slider.font")});b(qb,"setSliderFields",function(){this.slider=this.jc;this.isScrollBar&&(this.jScrollBar=this.jc)},$e);b(qb,"setJQuerySliderAndEvents",function(){var a=this;this.$$O(this.jqSlider).j2sslider({orientation:a.orientation,jslider:a.c,isScrollBar:a.isScrollBar,range:!1,min:a.min,max:a.max,value:a.val,disabled:a.disabled,inverted:a.isInverted,change:function(b,c){a.jqueryCallback$O$O(b, +c)},slide:function(b,c){a.jqueryCallback$O$O(b,c)},start:function(b,c){a.jqueryStart$O$O(b,c)},stop:function(b,c){a.jqueryStop$O$O(b,c)}})},$e);b(qb,"jqueryStart$O$O",function(){this.setValueIsAdjusting$Z(!0)});b(qb,"jqueryStop$O$O",function(a,b){this.setValueIsAdjusting$Z(!1);(this.isScrollBar||this.slider.getSnapToTicks$())&&this.jqueryCallback$O$O(a,b)});b(qb,"setValueIsAdjusting$Z",function(a){this.slider.setValueIsAdjusting$Z(a)});b(qb,"jqueryCallback$O$O",function(a,b){this.val=Math.round(b.value|| +0);var c=this.noSnapping||!this.slider.getSnapToValue$()||this.slider.getValueIsAdjusting$();this.setValue$I(c?this.val:$e.snapTo$I.apply(this,[this.val]))});b(qb,"setValue$I",function(a){a!=this.slider.getValue$()&&this.slider.setValue$I(a)});b(qb,"setEnabled$Z",function(a){qb.superclazz.prototype.setEnabled$Z.apply(this,[a]);this.setSliderAttr$S$F("disabled",this.disabled=a?0:1)});b(qb,"setup$Z",function(a){this.sliderTrack=xb(3).lastChild(this.domNode);this.sliderHandle=xb(3).firstChild(this.sliderTrack); +a&&(this.ignoreAllMouseEvents$swingjs_api_js_DOMNode(this.sliderHandle),this.ignoreAllMouseEvents$swingjs_api_js_DOMNode(this.sliderTrack),this.setDataComponent$swingjs_api_js_DOMNode(this.domNode),this.setDataComponent$swingjs_api_js_DOMNode(this.sliderHandle))},$e);b(qb,"setSliderAttr$S$F",function(a,b){this.noSnapping=!0;var c=null;try{var d=this.$$O(this.jqSlider),c=this.jqSlider.id;d.j2sslider("option",a,b)}catch(f){System.out.println$S(a+":"+(new Float(b)).toString()+" could not be set for "+ +c)}this.noSnapping=this.isScrollBar});b(qb,"setSlider$",function(){this.setSliderAttr$S$F("min",this.min);var a=this.max;this.setSliderAttr$S$F("max",a);this.setSliderAttr$S$F("value",this.val);this.myHeight=10;var b=40;this.isHoriz&&null!=this.slider.getBorder$()&&(b+=10);var c="ui-j2sslider-tick-mark"+(this.isHoriz?"-vert":"-horiz");this.$$O(this.domNode).find("."+c).remove();this.$$O(this.domNode).find(".jslider-label").remove();this.getHTMLSizePreferred$swingjs_api_js_DOMNode$Z(this.jqSlider, +!1);if(0==this.majorSpacing&&0==this.minorSpacing||!this.paintTicks&&!this.paintLabels)null!=this.myScrollPaneUI?(xb(3).setStyles(this.sliderHandle,["transform",null]),xb(3).setStyles(this.sliderTrack,["transform",null])):this.isHoriz?(xb(3).setStyles(this.sliderHandle,["top","50%","transform","translateY(-50%)"]),xb(3).setStyles(this.sliderTrack,["top","50%","transform","translateY(-50%)"])):(xb(3).setStyles(this.sliderHandle,["left","50%","transform","translateX(-50%)"]),xb(3).setStyles(this.sliderTrack, +["left","50%","transform","translateX(-50%)"]));else{var d=this.isHoriz?this.slider.getWidth$():this.slider.getHeight$();0>=d&&(d=this.isHoriz?this.getPreferredHorizontalSize$().width:this.getPreferredVerticalSize$().height);this.isHoriz?this.actualWidth=d:this.actualHeight=d;d-=20;if(this.paintTicks){0==this.minorSpacing&&(this.minorSpacing=this.majorSpacing);var f=this.majorSpacing/this.minorSpacing|0,g=1*this.minorSpacing/(a-this.min),j=((a-this.min)/this.minorSpacing|0)+1;this.myHeight+=10;this.ticks= +l(Integer.TYPE,[j]);for(var k=0;kb.left+b.right&& +a.height>b.top+b.bottom?this.rootView.setSize$F$F(a.width-b.left-b.right,a.height-b.top-b.bottom):0==a.width&&0==a.height&&this.rootView.setSize$F$F(2147483647,2147483647);a.width=Math.min((this.rootView.getPreferredSpan$I(0)|0)+b.left+b.right,2147483647)|0;a.height=Math.min((this.rootView.getPreferredSpan$I(1)|0)+b.top+b.bottom,2147483647)|0;return a});b(La,"getEditorKit$javax_swing_text_JTextComponent",function(){return La.defaultKit});b(La,"handleEnter$",function(){return!1});b(La,"setEditable$Z", +function(a){this.editable=a;if(null!=this.focusNode&&(this.setEditableCSS$(),this.jc.isOpaque$())){var b=this.getBackground$();this.setBackgroundImpl$java_awt_Color(a||!k(b,"javax.swing.plaf.UIResource")||this.inactiveBackground===this.colorUNKNOWN?b:this.inactiveBackground)}});b(La,"setEditableCSS$",function(){$d(13).setAttr(this.focusNode,"readOnly",this.editable?null:"TRUE")});b(La,"getInactiveTextColor$java_awt_Color",function(a){return!this.editor.isEnabled$()?this.editor.getDisabledTextColor$(): +!this.editor.isEditable$()?this.inactiveForeground:a});b(La,"setCurrentText$",function(){return null==this.editor.getDocument$()?null:this.currentText=this.editor.getText$()});b(La,"checkNewEditorTextValue$",function(){var a=this.getJSTextValue$();if(a.equals$O(this.fixText$S(this.currentText)))return!1;this.editor.setTextFromUI$S(a);this.setCurrentText$();return!0});b(La,"setJSTextDelayed$",function(){this.updateDOMNode$()});b(La,"focus$",function(){if(!La.superclazz.prototype.focus$.apply(this, +[]))return!1;this.haveFocus$()||this.updateJSCursor$S("focus");return!0});b(La,"haveFocus$",function(){return $d(14).jquery.contains(this.focusNode,document.activeElement||null)});b(La,"updateJSCursor$S",function(a){if(!(null==this.editor.getDocument$()||0==this.editor.getText$().length$())&&!(this.isAWT&&"focus"!=a)){var b=this.editor.getCaret$().getMark$(),c=this.editor.getCaret$().getDot$();this.setJSSelection$I$I$Z(b,c,b==c&&"default"==a)}});b(La,"setJSSelection$I$I$Z",function(a,b,c){var d=this.getJSNodePt$swingjs_api_js_DOMNode$I$I(this.focusNode, +-1,a);a=null==d||b==a?d:this.getJSNodePt$swingjs_api_js_DOMNode$I$I(this.focusNode,-1,b);null!=d&&null!=a&&this.jsSelect$OA$OA$Z(d,a,c)});b(La,"getJSNodePt$swingjs_api_js_DOMNode$I$I",function(a,b,c){return[null,c]});b(La,"jsSelect$OA$OA$Z",function(a,b,c){this.setJSMarkAndDot$I$I$Z(a[1]||0,b[1]||0,c)});b(La,"setJSMarkAndDot$I$I$Z",function(a,b){try{this.focusNode.setSelectionRange(Math.min(a,b),Math.max(a,b),a==b?"none":athis.minSize&&(c.width+=a);c.height+b>this.minSize&&(c.height+=b);return c},Rp);b(Of,"setAllowResize$Z",function(a){this.allowResize=a});b(Of,"setEnabled$Z",function(a){(this.enabled=a)?this.show$():this.hide$()});n("3.2.4.07");var dC=q("swingjs.plaf"),tv=[[0,"swingjs.JSMouse"]],hg=j(dC,"TextListener",null,null,["java.awt.event.FocusListener","javax.swing.event.ChangeListener","java.beans.PropertyChangeListener","javax.swing.event.DocumentListener", +"javax.swing.event.CaretListener"]);hg.$clinit$=function(){g(hg,1)};b(hg,"$init0$",function(){var a;(a=hg.superclazz)&&(a=a.$init0$)&&a.apply(this);this.txtComp=null;this.haveDocument=!1;this.ui=null;this.working=!1;this.lastKeyEvent=0},1);b(hg,"$init$",function(){},1);b(hg,"c$$swingjs_plaf_JSTextUI$javax_swing_text_JTextComponent",function(a,b){hg.$init$.apply(this);this.txtComp=b;this.ui=a},1);b(hg,"checkDocument$",function(){!this.haveDocument&&null!=this.txtComp.getDocument$()&&(this.haveDocument= +!0,this.txtComp.getDocument$().addDocumentListener$javax_swing_event_DocumentListener(this))});b(hg,["propertyChange$java_beans_PropertyChangeEvent","propertyChange$"],function(a){var b=a.getPropertyName$();switch(b){case "font":case "foreground":case "preferredSize":a.getSource$().getUI$().propertyChangedFromListener$java_beans_PropertyChangeEvent$S(a,b);break;case "editable":this.ui.setEditable$Z(a.getNewValue$().booleanValue$());break;case "document":null!=a.getNewValue$()&&this.ui.updateRootView$()}}); +b(hg,["stateChanged$javax_swing_event_ChangeEvent","stateChanged$"],function(a){a.getSource$().\u79d8repaint$()});b(hg,"focusGained$java_awt_event_FocusEvent",function(){});b(hg,"focusLost$java_awt_event_FocusEvent",function(){});b(hg,"handleJSTextEvent$swingjs_plaf_JSTextUI$I$O",function(a,b,c){if((document.activeElement||null)!==a.domNode)return!0;b=(tv[1]||(tv[1]=g(tv[0][1]))).fixEventType$O$I(c,b);c=c.keyCode||0;var d=a.getNewCaretPosition$I$I(b,c),f=d.y,j=-2147483648!=d.x;switch(b){case 401:if(13== +c||10==c?a.handleEnter$():8!=c&&(j=!1),400!=this.lastKeyEvent)break;case 402:this.working=!0,a.checkNewEditorTextValue$()&&0<=f&&(a.setJSMarkAndDot$I$I$Z(f,f,!1),j=!1),this.working=!1}this.lastKeyEvent=b;j&&a.setJavaMarkAndDot$java_awt_Point(d);return!0});b(hg,"insertUpdate$javax_swing_event_DocumentEvent",function(){this.working||this.ui.setJSTextDelayed$()});b(hg,"removeUpdate$javax_swing_event_DocumentEvent",function(){this.working||this.ui.setJSTextDelayed$()});b(hg,"changedUpdate$javax_swing_event_DocumentEvent", +function(){this.working||this.ui.setJSTextDelayed$()});b(hg,["caretUpdate$javax_swing_event_CaretEvent","caretUpdate$"],function(a){this.ui.caretUpdatedByProgram$javax_swing_event_CaretEvent(a)});b(hg);n("3.2.4.07")})(Clazz,Clazz.setTVer,Clazz.array,Clazz.assert,Clazz.clone,Clazz.exceptionOf,Clazz.forName,Clazz.getClass,Clazz.instanceOf,Clazz.load,Clazz.new_,Clazz.newClass,Clazz.newEnumConst,Clazz.newInstance,Clazz.newInterface,Clazz.newMeth,Clazz.newPackage,Clazz.super_); diff --git a/sources/net.sf.j2s.java.core/dist/SwingJS-site.zip b/sources/net.sf.j2s.java.core/dist/SwingJS-site.zip index 2429dab8b..52042b8a2 100644 Binary files a/sources/net.sf.j2s.java.core/dist/SwingJS-site.zip and b/sources/net.sf.j2s.java.core/dist/SwingJS-site.zip differ diff --git a/sources/net.sf.j2s.java.core/doc/Differences.txt b/sources/net.sf.j2s.java.core/doc/Differences.txt index ae5442b17..ead5c418c 100644 --- a/sources/net.sf.j2s.java.core/doc/Differences.txt +++ b/sources/net.sf.j2s.java.core/doc/Differences.txt @@ -1,5 +1,6 @@ Notes ===== +updated 7/19/19 -- clarification that AWT and Swing classes are supported directly updated 5/13/19 -- Mandarin U+79D8 reserved character; Missing Math methods; int and long updated 5/10/19 -- adds a section on static issues in multi-(duplicate)-applet pages updated 1/4/19 -- nio @@ -11,12 +12,15 @@ updated 3/7/17 -- overloading of JSplitPane.setDividerLocation updated 3/2/17 -- more indication of classes not implemented (KeyListener) ============================================================================= -SwingJS and JDK 1.6+ +SwingJS and OpenJDK 8+ ============================================================================= SwingJS implements a wide range of the Java language in JavaScript. The base -version for this implementation is Java 1.6. However, some classes were -implemented using older source code, and there are some missing methods. +version for this implementation is OpenJDK8. some classes are implemented using +older source code, and there are some missing methods. For the most part, this is +no real problem. You can add or modify any java class just be adding it as source +in your project. Or (preferably) you can contact me, and I can get it into the +distribution. Or (even more preferably) you can do that via a patch submission. ================= DESIGN PHILOSOPHY @@ -222,14 +226,11 @@ that we also wanted it to be possible to quickly adapt these applets to JavaScri The solution turned out to be simple: Write a package (a2s) that recreates the interface for non-Swing components as subclasses of Swing components. Thus, a2s.Button subclasses javax.swing.JButton -but also accepts all of the methods of java.awt.Button. It's not perfect, and the ultimate -solution is probably to just change java.awt.Xxxx itself to subclass javax.swing.JXxxx. -In any case, it works -- mostly. By adding the a2s package to a project and changing the include -statements to target a2s instead of java.awt, non-Swing applets can be easily converted to JavaScript. -Certainly there will be issues such as missing methods. It is all a work in progress. - -All AWT components now subclass a2s components, which in turn subclass JComponet. - +but also accepts all of the methods of java.awt.Button. This works amazingly well, with a few +special adaptations to the core javax.swing to be "AWT-aware." All AWT components now subclass +a2s components, which in turn subclass JComponents. So no changes in code are necessary. We have +successfully transpiled over 500 applets using this strategy. (Kind of surprising, actually, that +the original Java developers did not see that option. But we have a hindsight advantage here.) UNIMPLEMENTED CLASSES BY DESIGN @@ -243,11 +244,11 @@ serialization TODO LIST FOR UNIMPLEMENTED CLASSES =================================== -JEditorPane (minimal implementation) - DONE 12/2018 +JEditorPane (minimal implementation) - DONE 12/2018; some issues still JSplitPane - DONE 8/2018 JTabbedPane - DONE 10/2018 -JTree +JTree - not done; no particular issues expected, just have had other things to do first. MINOR ISSUES--required some rewriting/refactoring by Bob and Udo @@ -265,7 +266,7 @@ java.awt.Color native methods javax.swing.JFileDialog key focus -LookAndFeel +LookAndFeel and UI Classes System.exit(0) does not stop all processes list cell renderers must be JComponents myClass.getField not implemented @@ -286,7 +287,6 @@ MAJOR ISSUES--to be resolved by implementers ============================================ fonts -specific AWT components not implemented threads modal dialogs image loading @@ -306,11 +306,7 @@ Table row/col sorter needs checking after removal of java.text.Collator referenc I had to move all of SunHints class to RenderingHints, or the two classes could not be loaded. Shouldn't be a problem, I think. The sun classes are -not accessible anyway. - -We now have jsjava.lang.Thread and jsjava.lang.ThreadGroup. These should be useful in -figuring out what we want to do with those. ThreadGroup in particular is interesting, -as it is used to key for AppContexts. We will see if that use useful or not. +not accessible to developers in Java anyway, since they are generally package private. ========================================================================== @@ -323,7 +319,8 @@ accessibility ------------- All Accessibility handling has been commented out to save the download footprint. -This removes the need for sun.misc.SharedSecrets +This removes the need for sun.misc.SharedSecrets as well. +Nothing says we could not implement accessibility. We just didn't. security @@ -334,6 +331,8 @@ Thus, Java security checking is no longer necessary, and java.security.AccessController has been simplified to work without native security checking. +Note that private methods in a class are REALLY private. + serialization ------------- @@ -342,11 +341,11 @@ All serialization has been removed. It was never very useful for Swing anyway, because one needs exactly the same Java version to save and restore serialized objects. -keyboard accelerators ---------------------- +keyboard accelerators and mnemonics +----------------------------------- -JMenu.setAccelerator() and JMenuItem.setAccelerator() hae not been implemented in SwingJS. -Thus, menus cannot be opened just be typing CTRL-C or similar shortcuts. +This work was completed in the spring of 2019. Note that in a browser, some +key strokes, particularly CTRL-keys, are not available. Bummer. MINOR ISSUES--required some rewriting/refactoring by Bob and Udo @@ -380,7 +379,8 @@ just get bigger. } -Because "-1" in JavaScript is not 0xFFFFFFFF one must take care to not compare a negative number with a 32-bit mask; +Because "-1" in JavaScript is not 0xFFFFFFFF one must take care to not compare a negative +number with a 32-bit mask. So (b & 0xFF000000) == 0xFF000000 @@ -391,7 +391,7 @@ while (-1 & 0xFF000000) is, strangely enough, -16777216, and, in fact, because -16777216 is not 4278190080. -One must compare similar operations: +The fix is that one must compare similar operations: if ((b & 0xFF000000) == (0xFF000000 & 0xFF000000)) ..... @@ -400,28 +400,64 @@ if ((b & 0xFF000000) == (0xFF000000 & 0xFF000000)) ..... ArrayIndexOutOfBounds --------------------- -You cannot intentionally throw an ArrayIndexOutOfBoundsException in JavaScript. -JavaScript will simply return "undefined", not throw an Exception. +You cannot implicitly throw an ArrayIndexOutOfBoundsException in JavaScript. +JavaScript will simply return "undefined", not throw an Exception. So: -ArrayIndexOutOutBoundsException cannot be trapped in JavaScript because -it is a JavaScript Error, not a Java Exception. +boolean notAGoodIdeaIsOutOfBounds(String[] sa, int i) { + try { + return (sa[i] == sa[i]); + } catch (ArrayIndexOutOfBoundsException e) { + return false; + } +} -Solution is to change that catch to catch(Throwable e), -which includes all JavaScript errors and is transpiled as "catch(e)" - +will work in Java but not in JavaScript. Code should not depend upon this sort +of trap anyway, if you ask me. -java.awt.Color --------------- +Throwable vs Error vs Exception +------------------------------- -ColorSpace: only "support" CS_sRGB +True JavaScript errors are trapped as Throwable, whereas you can still trap +Error and Exception as well. So if you want to be sure to catch any JavaScript +error, use try{}catch (Throwable t){}, not try{}catch (Exception e){}. - -BH: This is a temporary edit just to get us started. +j +ava.awt.Color +-------------- + +ColorSpace: only "support" CS_sRGB. + TODO -- any volunteers?? + javax.swing.JFileDialog ----------------------- -Not implemented. HTML5 cannot expose a file directory structure +HTML5 cannot expose a file reading directory structure. But you certainly +can still do file reading and writing. It just works a little differently. +It's a simple modification: + + b = new JButton("FileOpenDialog"); + b.addActionListener(new ActionListener() { + + @Override + public void actionPerformed(ActionEvent e) { + JFileChooser fc = new JFileChooser(); + Test_Dialog.this.onDialogReturn(fc.showOpenDialog(Test_Dialog.this)); + // Java will wait until the dialog is closed, then enter the onDialogReturn method. + // JavaScript will exit with NaN immediately, and then call back with its actual value + // asynchronously. + } + + }); + + public void onDialogReturn(int value) { + if (value != Math.floor(value)) + return; // in JavaScript, this will be NaN, indicating the dialog has been opened + // If we are here, the dialog has closed, in both Java and JavaScript. + System.out.println("int value is " + value); + } + native methods @@ -434,43 +470,52 @@ using j2sNative blocks: /** * @j2sNative * + * var putYourJavaScriptCodeHere + * */ - { - // it is critical to remember to insert this { } phrasing, - // or the block will be ignored! - } - + Note that if you follow that directly with a {...} block, then + the javadoc code will run in JavaScript, and the {...} code will run in Java. + + key Focus --------- -- Less explicit key focus -- handling (mostly done by Browser/HTML) -- no SwingUtilities.findFocusOwner -- focus traversal not implemented +As of June, 2019, the keyboard focus manager is fully implemented. +The one catch is that JTextPane and JTextArea, which already consume +VK_TAB in Java, cannot use CTRL-TAB to continue a tabbing cycle around +the components in a window. Instead, CTRL-TAB is absorbed by the browser. -LookAndFeel ------------ -SwingJS implements the native browser LookAndFeel. Token UIManager methods are -present but unimplemented; methods returning key bindings or other arrays return null. +LookAndFeel and UI Classes +-------------------------- + +SwingJS implements the native browser look and feel as swingjs.plaf.HTML5LookAndFeel. +There are small differences between all look and feels -- MacOS, Windows, SwingJS. + +Expert developers know how to coerce changes in the UI by subclassing the UI for a +component. This probably will not work in SwingJS. -Note that LookAndFeel determines canvas size in a Frame because diffent operating -systems (Mac OS vs Windows vs HTML5) will have different edge sizes on their frames. +Note that LookAndFeel in Java usually determines canvas size in a Frame because +different operating systems (Mac OS vs Windows vs HTML5) will have +different edge sizes on their frames. If you want to ensure a component size, +use getContentPane().setPreferredSize(). System.exit(0) does not stop all processes ------------------------------------------ -Although System.ext(int) has been implemented in JavaScript, it may not stop all "threads." -Applications are responsible for shutting down prior to executing it. +Although System.ext(int) has been implemented in JavaScript, it just closes the +frames. It may not stop all "threads." So don't rely on that. +Applications are responsible for shutting down prior to executing System.exit(0). myClass.getField not implemented -------------------------------- -java.lang.reflect.Field is not implemented. You can get a field value very simply -using: +java.lang.reflect.Field is implemented minimally. It is not +certain that Field.getDeclaringClass() will work. If you just want a +value of a field, you can do this: /** *@j2sNative @@ -478,6 +523,8 @@ using: * return myClass[name] */ +But that is not a java.lang.reflection.Field object. + "window" and other reserved JavaScript names -------------------------------------------- @@ -488,19 +535,20 @@ one must rename packages such as "window" or "document" to names such as "win" o qualified field and method names -------------------------------- -In order to minimize the chance of added SwingJS field and method names colliding with -ones developers might use in subclassing Java classes, we have added U+79D8 (Mandarin "secrect") -to the characters already disrecommended by Java documentation ("$" and "_"). The only problem +In order to minimize the chance of added SwingJS field and method names colliding with ones +developers might use in subclassing Java classes, we have added U+79D8 (first character of Mandarin +"secrect") to the characters already disrecommended by Java documentation ("$" and "_"). The only problem would be if you use that character followed by certain English words in certain classes. For example \u79D8canvas for JComponents (in java.awt.JSComponent) and \u79D8byte (in java.io.File). missing Math methods -------------------- -A few of the more obscure java.lang.Math methods are missing. This is a -result of continued Java development. It is easy enough to add these -methods if you have the source. They go into j2sClazz.js, which is -combined with other initial libraries into swingjs2.js. +java.lang.Math is worked out, but some methods are missing, eithr because they +involve long integer value that are inaccessible in JavaScript, or because I just +didn't implement them. This is a result of continued Java development. +It is easy enough to add these methods if you have the source. They go into j2sClazz.js, +which is combined with other initial libraries into swingjs2.js by build_site.xml component.getGraphics(), graphics.dispose() @@ -508,10 +556,24 @@ component.getGraphics(), graphics.dispose() Use of component.getGraphics() is discouraged in Java and in SwingJS. Specifically in SwingJS, any call to component.getGraphics() or -component.createGraphics() must be matched with graphics.dispose(), +component.createGraphics() should be matched with graphics.dispose(), particularly when it is called outside the context of a paint(Graphics) call from the system. +If you see your graphics scrolling down the page with each repaint, +look for where you have used Component.getGraphics() and not Graphics.dispose(). +For example, this will definitely NOT work in SwingJS: + + this.paint(getGraphics()) + +and really should not in Java, either, as it is technically a resource memory leak. + +Instead, if you really do not want to use repaint(), use this: + + Graphics g = getGraphics(); + paint(g); + g.dispose(); + MAJOR ISSUES--for Bob and Udo within SwingJS ============================================ @@ -522,9 +584,10 @@ fonts Fonts and FontMetrics will all be handled in JavaScript. Font matching will not be exact, and composite (drawn) fonts will not be supported. -Jmol handles calls such as font.getFontMetrics(g).stringWidth("xxx") by -creating an off-page DOM image and querying its context. -This will be done here as well. +SwingJS handles calls such as font.getFontMetrics(g).stringWidth("xxx") by +creating a
containing that text, placing it in an obscure location on +the page, and reading div.getBoundingClientRect(). This is a VERY precise +value, but can be a pixel or two off from what Java reports for the same font. OS-dependent classes @@ -536,8 +599,7 @@ Static classes such as: java.awt.GraphicsEnvironment -which are created using Class.forName -will be implemented as JavaScript classes in the swingjs package +which are created using Class.forName are implemented using classes in the swingjs package. AWTAccessor and AwtContext need to be customized @@ -561,14 +623,9 @@ MAJOR ISSUES--to be resolved by implementers fonts ----- -Glyph/composite/outline fonts are not supported +Glyph/composite/outline fonts are not supported. -specific AWT components not implemented ---------------------------------------- - -all AWT components are now implemented as subclasses of Swing counterparts. 2019.02.13 BH - threads ------- @@ -658,18 +715,38 @@ image loading - All image loading in SwingJS is synchronous. A MediaTracker call will immediately return "complete". However, it still may take one system clock tick to fully load images. Thus, it is recommended that images be preloaded in the static block of the applet if it is necessary that they be available in init(). - + This is only an issue if you are trying to access the pixel buffer of the image in JavaScript. + - Applet.getImage(path, name) will return null if the image does not exist. - BufferedImage: only "support" imageType RGB and ARGB + -BH: This is a temporary edit, just to get us started. Certainly GRAY will be needed -no BigInteger; no BigDecimal ----------------------------- +BigInteger and BigDecimal +------------------------- + +java.math.BigInteger is fully supported; java.math.BigDecimal is roughed +in and not fully tested (07/2019). + +Both classes present significant issues for JavaScript, as they are based in +Java's 64-bit long for all their operations. Here is the JavaDoc note I added +to BigInteger: + + * SwingJS note: Because of the limitations of JavaScript with regard + * to long-integer bit storage as a double, this implementation drops + * the integer storage bit length to 24, giving 48 for long and leaving + * the last 16 bits clear for the exponent of the double number. This should + * not affect performance significantly. It does increase the storage + * size by about 33%. By bring an "int" to 3 bytes, we can easily construct + * and use byte[] data intended for the original BitSet. -BigInteger if fully supported; BigDecimal is roughed in and not fully supported +"Easily" may be a bit strong there. This was a serious challenge. +BigDecimal seems to run normally, but in order to do that, my hack involves +reducing the size of an integer that is allowed to be stored as such and not +in byte[] as a BigInteger. I'm sure there is a performance hit, but it does work. no format internationalization ------------------------------ @@ -689,9 +766,9 @@ text-related field implementation Text fields are: JTextField (JavaScript ) -JTextArea (JavaScript "; + support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue; + + // #11217 - WebKit loses check when the name is after the checked attribute + fragment.appendChild( div ); + div.innerHTML = ""; + + // Support: Safari 5.1, iOS 5.1, Android 4.x, Android 2.3 + // old WebKit doesn't clone checked state correctly in fragments + support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked; + + // Support: IE<9 + // Opera does not clone events (and typeof div.attachEvent === undefined). + // IE9-10 clones events bound via attachEvent, but they don't trigger with .click() + support.noCloneEvent = true; + if ( div.attachEvent ) { + div.attachEvent( "onclick", function() { + support.noCloneEvent = false; + }); + + div.cloneNode( true ).click(); + } + + // Execute the test only if not already executed in another module. + if (support.deleteExpando == null) { + // Support: IE<9 + support.deleteExpando = true; + try { + delete div.test; + } catch( e ) { + support.deleteExpando = false; + } + } + + // Null elements to avoid leaks in IE. + fragment = div = input = null; +})(); + + +(function() { + var i, eventName, + div = document.createElement( "div" ); + + // Support: IE<9 (lack submit/change bubble), Firefox 23+ (lack focusin event) + for ( i in { submit: true, change: true, focusin: true }) { + eventName = "on" + i; + + if ( !(support[ i + "Bubbles" ] = eventName in window) ) { + // Beware of CSP restrictions (https://developer.mozilla.org/en/Security/CSP) + div.setAttribute( eventName, "t" ); + support[ i + "Bubbles" ] = div.attributes[ eventName ].expando === false; + } + } + + // Null elements to avoid leaks in IE. + div = null; +})(); + + +var rformElems = /^(?:input|select|textarea)$/i, + rkeyEvent = /^key/, + rmouseEvent = /^(?:mouse|contextmenu)|click/, + rfocusMorph = /^(?:focusinfocus|focusoutblur)$/, + rtypenamespace = /^([^.]*)(?:\.(.+)|)$/; + +function returnTrue() { + return true; +} + +function returnFalse() { + return false; +} + +function safeActiveElement() { + try { + return document.activeElement; + } catch ( err ) { } +} + +/* + * Helper functions for managing events -- not part of the public interface. + * Props to Dean Edwards' addEvent library for many of the ideas. + */ +jQuery.event = { + + global: {}, + + add: function( elem, types, handler, data, selector ) { + var tmp, events, t, handleObjIn, + special, eventHandle, handleObj, + handlers, type, namespaces, origType, + elemData = jQuery._data( elem ); + + // Don't attach events to noData or text/comment nodes (but allow plain objects) + if ( !elemData ) { + return; + } + + // Caller can pass in an object of custom data in lieu of the handler + if ( handler.handler ) { + handleObjIn = handler; + handler = handleObjIn.handler; + selector = handleObjIn.selector; + } + + // Make sure that the handler has a unique ID, used to find/remove it later + if ( !handler.guid ) { + handler.guid = jQuery.guid++; + } + + // Init the element's event structure and main handler, if this is the first + if ( !(events = elemData.events) ) { + events = elemData.events = {}; + } + if ( !(eventHandle = elemData.handle) ) { + eventHandle = elemData.handle = function( e ) { + // Discard the second event of a jQuery.event.trigger() and + // when an event is called after a page has unloaded + return typeof jQuery !== strundefined && (!e || jQuery.event.triggered !== e.type) ? + jQuery.event.dispatch.apply( eventHandle.elem, arguments ) : + undefined; + }; + // Add elem as a property of the handle fn to prevent a memory leak with IE non-native events + eventHandle.elem = elem; + } + + // Handle multiple events separated by a space + types = ( types || "" ).match( rnotwhite ) || [ "" ]; + t = types.length; + while ( t-- ) { + tmp = rtypenamespace.exec( types[t] ) || []; + type = origType = tmp[1]; + namespaces = ( tmp[2] || "" ).split( "." ).sort(); + + // There *must* be a type, no attaching namespace-only handlers + if ( !type ) { + continue; + } + + // If event changes its type, use the special event handlers for the changed type + special = jQuery.event.special[ type ] || {}; + + // If selector defined, determine special event api type, otherwise given type + type = ( selector ? special.delegateType : special.bindType ) || type; + + // Update special based on newly reset type + special = jQuery.event.special[ type ] || {}; + + // handleObj is passed to all event handlers + handleObj = jQuery.extend({ + type: type, + origType: origType, + data: data, + handler: handler, + guid: handler.guid, + selector: selector, + needsContext: selector && jQuery.expr.match.needsContext.test( selector ), + namespace: namespaces.join(".") + }, handleObjIn ); + + // Init the event handler queue if we're the first + if ( !(handlers = events[ type ]) ) { + handlers = events[ type ] = []; + handlers.delegateCount = 0; + + // Only use addEventListener/attachEvent if the special events handler returns false + if ( !special.setup || special.setup.call( elem, data, namespaces, eventHandle ) === false ) { + // Bind the global event handler to the element + if ( elem.addEventListener ) { + elem.addEventListener( type, eventHandle, false ); + + } else if ( elem.attachEvent ) { + elem.attachEvent( "on" + type, eventHandle ); + } + } + } + + if ( special.add ) { + special.add.call( elem, handleObj ); + + if ( !handleObj.handler.guid ) { + handleObj.handler.guid = handler.guid; + } + } + + // Add to the element's handler list, delegates in front + if ( selector ) { + handlers.splice( handlers.delegateCount++, 0, handleObj ); + } else { + handlers.push( handleObj ); + } + + // Keep track of which events have ever been used, for event optimization + jQuery.event.global[ type ] = true; + } + + // Nullify elem to prevent memory leaks in IE + elem = null; + }, + + // Detach an event or set of events from an element + remove: function( elem, types, handler, selector, mappedTypes ) { + var j, handleObj, tmp, + origCount, t, events, + special, handlers, type, + namespaces, origType, + elemData = jQuery.hasData( elem ) && jQuery._data( elem ); + + if ( !elemData || !(events = elemData.events) ) { + return; + } + + // Once for each type.namespace in types; type may be omitted + types = ( types || "" ).match( rnotwhite ) || [ "" ]; + t = types.length; + while ( t-- ) { + tmp = rtypenamespace.exec( types[t] ) || []; + type = origType = tmp[1]; + namespaces = ( tmp[2] || "" ).split( "." ).sort(); + + // Unbind all events (on this namespace, if provided) for the element + if ( !type ) { + for ( type in events ) { + jQuery.event.remove( elem, type + types[ t ], handler, selector, true ); + } + continue; + } + + special = jQuery.event.special[ type ] || {}; + type = ( selector ? special.delegateType : special.bindType ) || type; + handlers = events[ type ] || []; + tmp = tmp[2] && new RegExp( "(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)" ); + + // Remove matching events + origCount = j = handlers.length; + while ( j-- ) { + handleObj = handlers[ j ]; + + if ( ( mappedTypes || origType === handleObj.origType ) && + ( !handler || handler.guid === handleObj.guid ) && + ( !tmp || tmp.test( handleObj.namespace ) ) && + ( !selector || selector === handleObj.selector || selector === "**" && handleObj.selector ) ) { + handlers.splice( j, 1 ); + + if ( handleObj.selector ) { + handlers.delegateCount--; + } + if ( special.remove ) { + special.remove.call( elem, handleObj ); + } + } + } + + // Remove generic event handler if we removed something and no more handlers exist + // (avoids potential for endless recursion during removal of special event handlers) + if ( origCount && !handlers.length ) { + if ( !special.teardown || special.teardown.call( elem, namespaces, elemData.handle ) === false ) { + jQuery.removeEvent( elem, type, elemData.handle ); + } + + delete events[ type ]; + } + } + + // Remove the expando if it's no longer used + if ( jQuery.isEmptyObject( events ) ) { + delete elemData.handle; + + // removeData also checks for emptiness and clears the expando if empty + // so use it instead of delete + jQuery._removeData( elem, "events" ); + } + }, + + trigger: function( event, data, elem, onlyHandlers ) { + var handle, ontype, cur, + bubbleType, special, tmp, i, + eventPath = [ elem || document ], + type = hasOwn.call( event, "type" ) ? event.type : event, + namespaces = hasOwn.call( event, "namespace" ) ? event.namespace.split(".") : []; + + cur = tmp = elem = elem || document; + + // Don't do events on text and comment nodes + if ( elem.nodeType === 3 || elem.nodeType === 8 ) { + return; + } + + // focus/blur morphs to focusin/out; ensure we're not firing them right now + if ( rfocusMorph.test( type + jQuery.event.triggered ) ) { + return; + } + + if ( type.indexOf(".") >= 0 ) { + // Namespaced trigger; create a regexp to match event type in handle() + namespaces = type.split("."); + type = namespaces.shift(); + namespaces.sort(); + } + ontype = type.indexOf(":") < 0 && "on" + type; + + // Caller can pass in a jQuery.Event object, Object, or just an event type string + event = event[ jQuery.expando ] ? + event : + new jQuery.Event( type, typeof event === "object" && event ); + + // Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true) + event.isTrigger = onlyHandlers ? 2 : 3; + event.namespace = namespaces.join("."); + event.namespace_re = event.namespace ? + new RegExp( "(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)" ) : + null; + + // Clean up the event in case it is being reused + event.result = undefined; + if ( !event.target ) { + event.target = elem; + } + + // Clone any incoming data and prepend the event, creating the handler arg list + data = data == null ? + [ event ] : + jQuery.makeArray( data, [ event ] ); + + // Allow special events to draw outside the lines + special = jQuery.event.special[ type ] || {}; + if ( !onlyHandlers && special.trigger && special.trigger.apply( elem, data ) === false ) { + return; + } + + // Determine event propagation path in advance, per W3C events spec (#9951) + // Bubble up to document, then to window; watch for a global ownerDocument var (#9724) + if ( !onlyHandlers && !special.noBubble && !jQuery.isWindow( elem ) ) { + + bubbleType = special.delegateType || type; + if ( !rfocusMorph.test( bubbleType + type ) ) { + cur = cur.parentNode; + } + for ( ; cur; cur = cur.parentNode ) { + eventPath.push( cur ); + tmp = cur; + } + + // Only add window if we got to document (e.g., not plain obj or detached DOM) + if ( tmp === (elem.ownerDocument || document) ) { + eventPath.push( tmp.defaultView || tmp.parentWindow || window ); + } + } + + // Fire handlers on the event path + i = 0; + while ( (cur = eventPath[i++]) && !event.isPropagationStopped() ) { + + event.type = i > 1 ? + bubbleType : + special.bindType || type; + + // jQuery handler + handle = ( jQuery._data( cur, "events" ) || {} )[ event.type ] && jQuery._data( cur, "handle" ); + if ( handle ) { + handle.apply( cur, data ); + } + + // Native handler + handle = ontype && cur[ ontype ]; + if ( handle && handle.apply && jQuery.acceptData( cur ) ) { + event.result = handle.apply( cur, data ); + if ( event.result === false ) { + event.preventDefault(); + } + } + } + event.type = type; + + // If nobody prevented the default action, do it now + if ( !onlyHandlers && !event.isDefaultPrevented() ) { + + if ( (!special._default || special._default.apply( eventPath.pop(), data ) === false) && + jQuery.acceptData( elem ) ) { + + // Call a native DOM method on the target with the same name name as the event. + // Can't use an .isFunction() check here because IE6/7 fails that test. + // Don't do default actions on window, that's where global variables be (#6170) + if ( ontype && elem[ type ] && !jQuery.isWindow( elem ) ) { + + // Don't re-trigger an onFOO event when we call its FOO() method + tmp = elem[ ontype ]; + + if ( tmp ) { + elem[ ontype ] = null; + } + + // Prevent re-triggering of the same event, since we already bubbled it above + jQuery.event.triggered = type; + try { + elem[ type ](); + } catch ( e ) { + // IE<9 dies on focus/blur to hidden element (#1486,#12518) + // only reproducible on winXP IE8 native, not IE9 in IE8 mode + } + jQuery.event.triggered = undefined; + + if ( tmp ) { + elem[ ontype ] = tmp; + } + } + } + } + + return event.result; + }, + + dispatch: function( event ) { + + // Make a writable jQuery.Event from the native event object + event = jQuery.event.fix( event ); + + var i, ret, handleObj, matched, j, + handlerQueue = [], + args = slice.call( arguments ), + handlers = ( jQuery._data( this, "events" ) || {} )[ event.type ] || [], + special = jQuery.event.special[ event.type ] || {}; + + // Use the fix-ed jQuery.Event rather than the (read-only) native event + args[0] = event; + event.delegateTarget = this; + + // Call the preDispatch hook for the mapped type, and let it bail if desired + if ( special.preDispatch && special.preDispatch.call( this, event ) === false ) { + return; + } + + // Determine handlers + handlerQueue = jQuery.event.handlers.call( this, event, handlers ); + + // Run delegates first; they may want to stop propagation beneath us + i = 0; + while ( (matched = handlerQueue[ i++ ]) && !event.isPropagationStopped() ) { + event.currentTarget = matched.elem; + + j = 0; + while ( (handleObj = matched.handlers[ j++ ]) && !event.isImmediatePropagationStopped() ) { + + // Triggered event must either 1) have no namespace, or + // 2) have namespace(s) a subset or equal to those in the bound event (both can have no namespace). + if ( !event.namespace_re || event.namespace_re.test( handleObj.namespace ) ) { + + event.handleObj = handleObj; + event.data = handleObj.data; + + ret = ( (jQuery.event.special[ handleObj.origType ] || {}).handle || handleObj.handler ) + .apply( matched.elem, args ); + + if ( ret !== undefined ) { + if ( (event.result = ret) === false ) { + event.preventDefault(); + event.stopPropagation(); + } + } + } + } + } + + // Call the postDispatch hook for the mapped type + if ( special.postDispatch ) { + special.postDispatch.call( this, event ); + } + + return event.result; + }, + + handlers: function( event, handlers ) { + var sel, handleObj, matches, i, + handlerQueue = [], + delegateCount = handlers.delegateCount, + cur = event.target; + + // Find delegate handlers + // Black-hole SVG instance trees (#13180) + // Avoid non-left-click bubbling in Firefox (#3861) + if ( delegateCount && cur.nodeType && (!event.button || event.type !== "click") ) { + + /* jshint eqeqeq: false */ + for ( ; cur != this; cur = cur.parentNode || this ) { + /* jshint eqeqeq: true */ + + // Don't check non-elements (#13208) + // Don't process clicks on disabled elements (#6911, #8165, #11382, #11764) + if ( cur.nodeType === 1 && (cur.disabled !== true || event.type !== "click") ) { + matches = []; + for ( i = 0; i < delegateCount; i++ ) { + handleObj = handlers[ i ]; + + // Don't conflict with Object.prototype properties (#13203) + sel = handleObj.selector + " "; + + if ( matches[ sel ] === undefined ) { + matches[ sel ] = handleObj.needsContext ? + jQuery( sel, this ).index( cur ) >= 0 : + jQuery.find( sel, this, null, [ cur ] ).length; + } + if ( matches[ sel ] ) { + matches.push( handleObj ); + } + } + if ( matches.length ) { + handlerQueue.push({ elem: cur, handlers: matches }); + } + } + } + } + + // Add the remaining (directly-bound) handlers + if ( delegateCount < handlers.length ) { + handlerQueue.push({ elem: this, handlers: handlers.slice( delegateCount ) }); + } + + return handlerQueue; + }, + + fix: function( event ) { + if ( event[ jQuery.expando ] ) { + return event; + } + + // Create a writable copy of the event object and normalize some properties + var i, prop, copy, + type = event.type, + originalEvent = event, + fixHook = this.fixHooks[ type ]; + + if ( !fixHook ) { + this.fixHooks[ type ] = fixHook = + rmouseEvent.test( type ) ? this.mouseHooks : + rkeyEvent.test( type ) ? this.keyHooks : + {}; + } + copy = fixHook.props ? this.props.concat( fixHook.props ) : this.props; + + event = new jQuery.Event( originalEvent ); + + i = copy.length; + while ( i-- ) { + prop = copy[ i ]; + event[ prop ] = originalEvent[ prop ]; + } + + // Support: IE<9 + // Fix target property (#1925) + if ( !event.target ) { + event.target = originalEvent.srcElement || document; + } + + // Support: Chrome 23+, Safari? + // Target should not be a text node (#504, #13143) + if ( event.target.nodeType === 3 ) { + event.target = event.target.parentNode; + } + + // Support: IE<9 + // For mouse/key events, metaKey==false if it's undefined (#3368, #11328) + event.metaKey = !!event.metaKey; + + return fixHook.filter ? fixHook.filter( event, originalEvent ) : event; + }, + + // Includes some event props shared by KeyEvent and MouseEvent + props: "altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "), + + fixHooks: {}, + + keyHooks: { + props: "char charCode key keyCode".split(" "), + filter: function( event, original ) { + + // Add which for key events + if ( event.which == null ) { + event.which = original.charCode != null ? original.charCode : original.keyCode; + } + + return event; + } + }, + + mouseHooks: { + props: "button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "), + filter: function( event, original ) { + var body, eventDoc, doc, + button = original.button, + fromElement = original.fromElement; + + // Calculate pageX/Y if missing and clientX/Y available + if ( event.pageX == null && original.clientX != null ) { + eventDoc = event.target.ownerDocument || document; + doc = eventDoc.documentElement; + body = eventDoc.body; + + event.pageX = original.clientX + ( doc && doc.scrollLeft || body && body.scrollLeft || 0 ) - ( doc && doc.clientLeft || body && body.clientLeft || 0 ); + event.pageY = original.clientY + ( doc && doc.scrollTop || body && body.scrollTop || 0 ) - ( doc && doc.clientTop || body && body.clientTop || 0 ); + } + + // Add relatedTarget, if necessary + if ( !event.relatedTarget && fromElement ) { + event.relatedTarget = fromElement === event.target ? original.toElement : fromElement; + } + + // Add which for click: 1 === left; 2 === middle; 3 === right + // Note: button is not normalized, so don't use it + if ( !event.which && button !== undefined ) { + event.which = ( button & 1 ? 1 : ( button & 2 ? 3 : ( button & 4 ? 2 : 0 ) ) ); + } + + return event; + } + }, + + special: { + load: { + // Prevent triggered image.load events from bubbling to window.load + noBubble: true + }, + focus: { + // Fire native event if possible so blur/focus sequence is correct + trigger: function() { + if ( this !== safeActiveElement() && this.focus ) { + try { + this.focus(); + return false; + } catch ( e ) { + // Support: IE<9 + // If we error on focus to hidden element (#1486, #12518), + // let .trigger() run the handlers + } + } + }, + delegateType: "focusin" + }, + blur: { + trigger: function() { + if ( this === safeActiveElement() && this.blur ) { + this.blur(); + return false; + } + }, + delegateType: "focusout" + }, + click: { + // For checkbox, fire native event so checked state will be right + trigger: function() { + if ( jQuery.nodeName( this, "input" ) && this.type === "checkbox" && this.click ) { + this.click(); + return false; + } + }, + + // For cross-browser consistency, don't fire native .click() on links + _default: function( event ) { + return jQuery.nodeName( event.target, "a" ); + } + }, + + beforeunload: { + postDispatch: function( event ) { + + // Even when returnValue equals to undefined Firefox will still show alert + if ( event.result !== undefined ) { + event.originalEvent.returnValue = event.result; + } + } + } + }, + + simulate: function( type, elem, event, bubble ) { + // Piggyback on a donor event to simulate a different one. + // Fake originalEvent to avoid donor's stopPropagation, but if the + // simulated event prevents default then we do the same on the donor. + var e = jQuery.extend( + new jQuery.Event(), + event, + { + type: type, + isSimulated: true, + originalEvent: {} + } + ); + if ( bubble ) { + jQuery.event.trigger( e, null, elem ); + } else { + jQuery.event.dispatch.call( elem, e ); + } + if ( e.isDefaultPrevented() ) { + event.preventDefault(); + } + } +}; + +jQuery.removeEvent = document.removeEventListener ? + function( elem, type, handle ) { + if ( elem.removeEventListener ) { + elem.removeEventListener( type, handle, false ); + } + } : + function( elem, type, handle ) { + var name = "on" + type; + + if ( elem.detachEvent ) { + + // #8545, #7054, preventing memory leaks for custom events in IE6-8 + // detachEvent needed property on element, by name of that event, to properly expose it to GC + if ( typeof elem[ name ] === strundefined ) { + elem[ name ] = null; + } + + elem.detachEvent( name, handle ); + } + }; + +jQuery.Event = function( src, props ) { + // Allow instantiation without the 'new' keyword + if ( !(this instanceof jQuery.Event) ) { + return new jQuery.Event( src, props ); + } + + // Event object + if ( src && src.type ) { + this.originalEvent = src; + this.type = src.type; + + // Events bubbling up the document may have been marked as prevented + // by a handler lower down the tree; reflect the correct value. + this.isDefaultPrevented = src.defaultPrevented || + src.defaultPrevented === undefined && ( + // Support: IE < 9 + src.returnValue === false || + // Support: Android < 4.0 + src.getPreventDefault && src.getPreventDefault() ) ? + returnTrue : + returnFalse; + + // Event type + } else { + this.type = src; + } + + // Put explicitly provided properties onto the event object + if ( props ) { + jQuery.extend( this, props ); + } + + // Create a timestamp if incoming event doesn't have one + this.timeStamp = src && src.timeStamp || jQuery.now(); + + // Mark it as fixed + this[ jQuery.expando ] = true; +}; + +// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding +// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html +jQuery.Event.prototype = { + isDefaultPrevented: returnFalse, + isPropagationStopped: returnFalse, + isImmediatePropagationStopped: returnFalse, + + preventDefault: function() { + var e = this.originalEvent; + + this.isDefaultPrevented = returnTrue; + if ( !e ) { + return; + } + + // If preventDefault exists, run it on the original event + if ( e.preventDefault ) { + e.preventDefault(); + + // Support: IE + // Otherwise set the returnValue property of the original event to false + } else { + e.returnValue = false; + } + }, + stopPropagation: function() { + var e = this.originalEvent; + + this.isPropagationStopped = returnTrue; + if ( !e ) { + return; + } + // If stopPropagation exists, run it on the original event + if ( e.stopPropagation ) { + e.stopPropagation(); + } + + // Support: IE + // Set the cancelBubble property of the original event to true + e.cancelBubble = true; + }, + stopImmediatePropagation: function() { + this.isImmediatePropagationStopped = returnTrue; + this.stopPropagation(); + } +}; + +// Create mouseenter/leave events using mouseover/out and event-time checks +jQuery.each({ + mouseenter: "mouseover", + mouseleave: "mouseout" +}, function( orig, fix ) { + jQuery.event.special[ orig ] = { + delegateType: fix, + bindType: fix, + + handle: function( event ) { + var ret, + target = this, + related = event.relatedTarget, + handleObj = event.handleObj; + + // For mousenter/leave call the handler if related is outside the target. + // NB: No relatedTarget if the mouse left/entered the browser window + if ( !related || (related !== target && !jQuery.contains( target, related )) ) { + event.type = handleObj.origType; + ret = handleObj.handler.apply( this, arguments ); + event.type = fix; + } + return ret; + } + }; +}); + +// IE submit delegation +if ( !support.submitBubbles ) { + + jQuery.event.special.submit = { + setup: function() { + // Only need this for delegated form submit events + if ( jQuery.nodeName( this, "form" ) ) { + return false; + } + + // Lazy-add a submit handler when a descendant form may potentially be submitted + jQuery.event.add( this, "click._submit keypress._submit", function( e ) { + // Node name check avoids a VML-related crash in IE (#9807) + var elem = e.target, + form = jQuery.nodeName( elem, "input" ) || jQuery.nodeName( elem, "button" ) ? elem.form : undefined; + if ( form && !jQuery._data( form, "submitBubbles" ) ) { + jQuery.event.add( form, "submit._submit", function( event ) { + event._submit_bubble = true; + }); + jQuery._data( form, "submitBubbles", true ); + } + }); + // return undefined since we don't need an event listener + }, + + postDispatch: function( event ) { + // If form was submitted by the user, bubble the event up the tree + if ( event._submit_bubble ) { + delete event._submit_bubble; + if ( this.parentNode && !event.isTrigger ) { + jQuery.event.simulate( "submit", this.parentNode, event, true ); + } + } + }, + + teardown: function() { + // Only need this for delegated form submit events + if ( jQuery.nodeName( this, "form" ) ) { + return false; + } + + // Remove delegated handlers; cleanData eventually reaps submit handlers attached above + jQuery.event.remove( this, "._submit" ); + } + }; +} + +// IE change delegation and checkbox/radio fix +if ( !support.changeBubbles ) { + + jQuery.event.special.change = { + + setup: function() { + + if ( rformElems.test( this.nodeName ) ) { + // IE doesn't fire change on a check/radio until blur; trigger it on click + // after a propertychange. Eat the blur-change in special.change.handle. + // This still fires onchange a second time for check/radio after blur. + if ( this.type === "checkbox" || this.type === "radio" ) { + jQuery.event.add( this, "propertychange._change", function( event ) { + if ( event.originalEvent.propertyName === "checked" ) { + this._just_changed = true; + } + }); + jQuery.event.add( this, "click._change", function( event ) { + if ( this._just_changed && !event.isTrigger ) { + this._just_changed = false; + } + // Allow triggered, simulated change events (#11500) + jQuery.event.simulate( "change", this, event, true ); + }); + } + return false; + } + // Delegated event; lazy-add a change handler on descendant inputs + jQuery.event.add( this, "beforeactivate._change", function( e ) { + var elem = e.target; + + if ( rformElems.test( elem.nodeName ) && !jQuery._data( elem, "changeBubbles" ) ) { + jQuery.event.add( elem, "change._change", function( event ) { + if ( this.parentNode && !event.isSimulated && !event.isTrigger ) { + jQuery.event.simulate( "change", this.parentNode, event, true ); + } + }); + jQuery._data( elem, "changeBubbles", true ); + } + }); + }, + + handle: function( event ) { + var elem = event.target; + + // Swallow native change events from checkbox/radio, we already triggered them above + if ( this !== elem || event.isSimulated || event.isTrigger || (elem.type !== "radio" && elem.type !== "checkbox") ) { + return event.handleObj.handler.apply( this, arguments ); + } + }, + + teardown: function() { + jQuery.event.remove( this, "._change" ); + + return !rformElems.test( this.nodeName ); + } + }; +} + +// Create "bubbling" focus and blur events +if ( !support.focusinBubbles ) { + jQuery.each({ focus: "focusin", blur: "focusout" }, function( orig, fix ) { + + // Attach a single capturing handler on the document while someone wants focusin/focusout + var handler = function( event ) { + jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ), true ); + }; + + jQuery.event.special[ fix ] = { + setup: function() { + var doc = this.ownerDocument || this, + attaches = jQuery._data( doc, fix ); + + if ( !attaches ) { + doc.addEventListener( orig, handler, true ); + } + jQuery._data( doc, fix, ( attaches || 0 ) + 1 ); + }, + teardown: function() { + var doc = this.ownerDocument || this, + attaches = jQuery._data( doc, fix ) - 1; + + if ( !attaches ) { + doc.removeEventListener( orig, handler, true ); + jQuery._removeData( doc, fix ); + } else { + jQuery._data( doc, fix, attaches ); + } + } + }; + }); +} + +jQuery.fn.extend({ + + on: function( types, selector, data, fn, /*INTERNAL*/ one ) { + var type, origFn; + + // Types can be a map of types/handlers + if ( typeof types === "object" ) { + // ( types-Object, selector, data ) + if ( typeof selector !== "string" ) { + // ( types-Object, data ) + data = data || selector; + selector = undefined; + } + for ( type in types ) { + this.on( type, selector, data, types[ type ], one ); + } + return this; + } + + if ( data == null && fn == null ) { + // ( types, fn ) + fn = selector; + data = selector = undefined; + } else if ( fn == null ) { + if ( typeof selector === "string" ) { + // ( types, selector, fn ) + fn = data; + data = undefined; + } else { + // ( types, data, fn ) + fn = data; + data = selector; + selector = undefined; + } + } + if ( fn === false ) { + fn = returnFalse; + } else if ( !fn ) { + return this; + } + + if ( one === 1 ) { + origFn = fn; + fn = function( event ) { + // Can use an empty set, since event contains the info + jQuery().off( event ); + return origFn.apply( this, arguments ); + }; + // Use same guid so caller can remove using origFn + fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ ); + } + return this.each( function() { + jQuery.event.add( this, types, fn, data, selector ); + }); + }, + one: function( types, selector, data, fn ) { + return this.on( types, selector, data, fn, 1 ); + }, + off: function( types, selector, fn ) { + var handleObj, type; + if ( types && types.preventDefault && types.handleObj ) { + // ( event ) dispatched jQuery.Event + handleObj = types.handleObj; + jQuery( types.delegateTarget ).off( + handleObj.namespace ? handleObj.origType + "." + handleObj.namespace : handleObj.origType, + handleObj.selector, + handleObj.handler + ); + return this; + } + if ( typeof types === "object" ) { + // ( types-object [, selector] ) + for ( type in types ) { + this.off( type, selector, types[ type ] ); + } + return this; + } + if ( selector === false || typeof selector === "function" ) { + // ( types [, fn] ) + fn = selector; + selector = undefined; + } + if ( fn === false ) { + fn = returnFalse; + } + return this.each(function() { + jQuery.event.remove( this, types, fn, selector ); + }); + }, + + trigger: function( type, data ) { + return this.each(function() { + jQuery.event.trigger( type, data, this ); + }); + }, + triggerHandler: function( type, data ) { + var elem = this[0]; + if ( elem ) { + return jQuery.event.trigger( type, data, elem, true ); + } + } +}); + + +function createSafeFragment( document ) { + var list = nodeNames.split( "|" ), + safeFrag = document.createDocumentFragment(); + + if ( safeFrag.createElement ) { + while ( list.length ) { + safeFrag.createElement( + list.pop() + ); + } + } + return safeFrag; +} + +var nodeNames = "abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|" + + "header|hgroup|mark|meter|nav|output|progress|section|summary|time|video", + rinlinejQuery = / jQuery\d+="(?:null|\d+)"/g, + rnoshimcache = new RegExp("<(?:" + nodeNames + ")[\\s/>]", "i"), + rleadingWhitespace = /^\s+/, + rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi, + rtagName = /<([\w:]+)/, + rtbody = /\s*$/g, + + // We have to close these tags to support XHTML (#13200) + wrapMap = { + option: [ 1, "" ], + legend: [ 1, "
", "
" ], + area: [ 1, "", "" ], + param: [ 1, "", "" ], + thead: [ 1, "", "
" ], + tr: [ 2, "", "
" ], + col: [ 2, "", "
" ], + td: [ 3, "", "
" ], + + // IE6-8 can't serialize link, script, style, or any html5 (NoScope) tags, + // unless wrapped in a div with non-breaking characters in front of it. + _default: support.htmlSerialize ? [ 0, "", "" ] : [ 1, "X
", "
" ] + }, + safeFragment = createSafeFragment( document ), + fragmentDiv = safeFragment.appendChild( document.createElement("div") ); + +wrapMap.optgroup = wrapMap.option; +wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead; +wrapMap.th = wrapMap.td; + +function getAll( context, tag ) { + var elems, elem, + i = 0, + found = typeof context.getElementsByTagName !== strundefined ? context.getElementsByTagName( tag || "*" ) : + typeof context.querySelectorAll !== strundefined ? context.querySelectorAll( tag || "*" ) : + undefined; + + if ( !found ) { + for ( found = [], elems = context.childNodes || context; (elem = elems[i]) != null; i++ ) { + if ( !tag || jQuery.nodeName( elem, tag ) ) { + found.push( elem ); + } else { + jQuery.merge( found, getAll( elem, tag ) ); + } + } + } + + return tag === undefined || tag && jQuery.nodeName( context, tag ) ? + jQuery.merge( [ context ], found ) : + found; +} + +// Used in buildFragment, fixes the defaultChecked property +function fixDefaultChecked( elem ) { + if ( rcheckableType.test( elem.type ) ) { + elem.defaultChecked = elem.checked; + } +} + +// Support: IE<8 +// Manipulating tables requires a tbody +function manipulationTarget( elem, content ) { + return jQuery.nodeName( elem, "table" ) && + jQuery.nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ? + + elem.getElementsByTagName("tbody")[0] || + elem.appendChild( elem.ownerDocument.createElement("tbody") ) : + elem; +} + +// Replace/restore the type attribute of script elements for safe DOM manipulation +function disableScript( elem ) { + elem.type = (jQuery.find.attr( elem, "type" ) !== null) + "/" + elem.type; + return elem; +} +function restoreScript( elem ) { + var match = rscriptTypeMasked.exec( elem.type ); + if ( match ) { + elem.type = match[1]; + } else { + elem.removeAttribute("type"); + } + return elem; +} + +// Mark scripts as having already been evaluated +function setGlobalEval( elems, refElements ) { + var elem, + i = 0; + for ( ; (elem = elems[i]) != null; i++ ) { + jQuery._data( elem, "globalEval", !refElements || jQuery._data( refElements[i], "globalEval" ) ); + } +} + +function cloneCopyEvent( src, dest ) { + + if ( dest.nodeType !== 1 || !jQuery.hasData( src ) ) { + return; + } + + var type, i, l, + oldData = jQuery._data( src ), + curData = jQuery._data( dest, oldData ), + events = oldData.events; + + if ( events ) { + delete curData.handle; + curData.events = {}; + + for ( type in events ) { + for ( i = 0, l = events[ type ].length; i < l; i++ ) { + jQuery.event.add( dest, type, events[ type ][ i ] ); + } + } + } + + // make the cloned public data object a copy from the original + if ( curData.data ) { + curData.data = jQuery.extend( {}, curData.data ); + } +} + +function fixCloneNodeIssues( src, dest ) { + var nodeName, e, data; + + // We do not need to do anything for non-Elements + if ( dest.nodeType !== 1 ) { + return; + } + + nodeName = dest.nodeName.toLowerCase(); + + // IE6-8 copies events bound via attachEvent when using cloneNode. + if ( !support.noCloneEvent && dest[ jQuery.expando ] ) { + data = jQuery._data( dest ); + + for ( e in data.events ) { + jQuery.removeEvent( dest, e, data.handle ); + } + + // Event data gets referenced instead of copied if the expando gets copied too + dest.removeAttribute( jQuery.expando ); + } + + // IE blanks contents when cloning scripts, and tries to evaluate newly-set text + if ( nodeName === "script" && dest.text !== src.text ) { + disableScript( dest ).text = src.text; + restoreScript( dest ); + + // IE6-10 improperly clones children of object elements using classid. + // IE10 throws NoModificationAllowedError if parent is null, #12132. + } else if ( nodeName === "object" ) { + if ( dest.parentNode ) { + dest.outerHTML = src.outerHTML; + } + + // This path appears unavoidable for IE9. When cloning an object + // element in IE9, the outerHTML strategy above is not sufficient. + // If the src has innerHTML and the destination does not, + // copy the src.innerHTML into the dest.innerHTML. #10324 + if ( support.html5Clone && ( src.innerHTML && !jQuery.trim(dest.innerHTML) ) ) { + dest.innerHTML = src.innerHTML; + } + + } else if ( nodeName === "input" && rcheckableType.test( src.type ) ) { + // IE6-8 fails to persist the checked state of a cloned checkbox + // or radio button. Worse, IE6-7 fail to give the cloned element + // a checked appearance if the defaultChecked value isn't also set + + dest.defaultChecked = dest.checked = src.checked; + + // IE6-7 get confused and end up setting the value of a cloned + // checkbox/radio button to an empty string instead of "on" + if ( dest.value !== src.value ) { + dest.value = src.value; + } + + // IE6-8 fails to return the selected option to the default selected + // state when cloning options + } else if ( nodeName === "option" ) { + dest.defaultSelected = dest.selected = src.defaultSelected; + + // IE6-8 fails to set the defaultValue to the correct value when + // cloning other types of input fields + } else if ( nodeName === "input" || nodeName === "textarea" ) { + dest.defaultValue = src.defaultValue; + } +} + +jQuery.extend({ + clone: function( elem, dataAndEvents, deepDataAndEvents ) { + var destElements, node, clone, i, srcElements, + inPage = jQuery.contains( elem.ownerDocument, elem ); + + if ( support.html5Clone || jQuery.isXMLDoc(elem) || !rnoshimcache.test( "<" + elem.nodeName + ">" ) ) { + clone = elem.cloneNode( true ); + + // IE<=8 does not properly clone detached, unknown element nodes + } else { + fragmentDiv.innerHTML = elem.outerHTML; + fragmentDiv.removeChild( clone = fragmentDiv.firstChild ); + } + + if ( (!support.noCloneEvent || !support.noCloneChecked) && + (elem.nodeType === 1 || elem.nodeType === 11) && !jQuery.isXMLDoc(elem) ) { + + // We eschew Sizzle here for performance reasons: http://jsperf.com/getall-vs-sizzle/2 + destElements = getAll( clone ); + srcElements = getAll( elem ); + + // Fix all IE cloning issues + for ( i = 0; (node = srcElements[i]) != null; ++i ) { + // Ensure that the destination node is not null; Fixes #9587 + if ( destElements[i] ) { + fixCloneNodeIssues( node, destElements[i] ); + } + } + } + + // Copy the events from the original to the clone + if ( dataAndEvents ) { + if ( deepDataAndEvents ) { + srcElements = srcElements || getAll( elem ); + destElements = destElements || getAll( clone ); + + for ( i = 0; (node = srcElements[i]) != null; i++ ) { + cloneCopyEvent( node, destElements[i] ); + } + } else { + cloneCopyEvent( elem, clone ); + } + } + + // Preserve script evaluation history + destElements = getAll( clone, "script" ); + if ( destElements.length > 0 ) { + setGlobalEval( destElements, !inPage && getAll( elem, "script" ) ); + } + + destElements = srcElements = node = null; + + // Return the cloned set + return clone; + }, + + buildFragment: function( elems, context, scripts, selection ) { + var j, elem, contains, + tmp, tag, tbody, wrap, + l = elems.length, + + // Ensure a safe fragment + safe = createSafeFragment( context ), + + nodes = [], + i = 0; + + for ( ; i < l; i++ ) { + elem = elems[ i ]; + + if ( elem || elem === 0 ) { + + // Add nodes directly + if ( jQuery.type( elem ) === "object" ) { + jQuery.merge( nodes, elem.nodeType ? [ elem ] : elem ); + + // Convert non-html into a text node + } else if ( !rhtml.test( elem ) ) { + nodes.push( context.createTextNode( elem ) ); + + // Convert html into DOM nodes + } else { + tmp = tmp || safe.appendChild( context.createElement("div") ); + + // Deserialize a standard representation + tag = (rtagName.exec( elem ) || [ "", "" ])[ 1 ].toLowerCase(); + wrap = wrapMap[ tag ] || wrapMap._default; + + tmp.innerHTML = wrap[1] + elem.replace( rxhtmlTag, "<$1>" ) + wrap[2]; + + // Descend through wrappers to the right content + j = wrap[0]; + while ( j-- ) { + tmp = tmp.lastChild; + } + + // Manually add leading whitespace removed by IE + if ( !support.leadingWhitespace && rleadingWhitespace.test( elem ) ) { + nodes.push( context.createTextNode( rleadingWhitespace.exec( elem )[0] ) ); + } + + // Remove IE's autoinserted from table fragments + if ( !support.tbody ) { + + // String was a , *may* have spurious + elem = tag === "table" && !rtbody.test( elem ) ? + tmp.firstChild : + + // String was a bare or + wrap[1] === "
" && !rtbody.test( elem ) ? + tmp : + 0; + + j = elem && elem.childNodes.length; + while ( j-- ) { + if ( jQuery.nodeName( (tbody = elem.childNodes[j]), "tbody" ) && !tbody.childNodes.length ) { + elem.removeChild( tbody ); + } + } + } + + jQuery.merge( nodes, tmp.childNodes ); + + // Fix #12392 for WebKit and IE > 9 + tmp.textContent = ""; + + // Fix #12392 for oldIE + while ( tmp.firstChild ) { + tmp.removeChild( tmp.firstChild ); + } + + // Remember the top-level container for proper cleanup + tmp = safe.lastChild; + } + } + } + + // Fix #11356: Clear elements from fragment + if ( tmp ) { + safe.removeChild( tmp ); + } + + // Reset defaultChecked for any radios and checkboxes + // about to be appended to the DOM in IE 6/7 (#8060) + if ( !support.appendChecked ) { + jQuery.grep( getAll( nodes, "input" ), fixDefaultChecked ); + } + + i = 0; + while ( (elem = nodes[ i++ ]) ) { + + // #4087 - If origin and destination elements are the same, and this is + // that element, do not do anything + if ( selection && jQuery.inArray( elem, selection ) !== -1 ) { + continue; + } + + contains = jQuery.contains( elem.ownerDocument, elem ); + + // Append to fragment + tmp = getAll( safe.appendChild( elem ), "script" ); + + // Preserve script evaluation history + if ( contains ) { + setGlobalEval( tmp ); + } + + // Capture executables + if ( scripts ) { + j = 0; + while ( (elem = tmp[ j++ ]) ) { + if ( rscriptType.test( elem.type || "" ) ) { + scripts.push( elem ); + } + } + } + } + + tmp = null; + + return safe; + }, + + cleanData: function( elems, /* internal */ acceptData ) { + var elem, type, id, data, + i = 0, + internalKey = jQuery.expando, + cache = jQuery.cache, + deleteExpando = support.deleteExpando, + special = jQuery.event.special; + + for ( ; (elem = elems[i]) != null; i++ ) { + if ( acceptData || jQuery.acceptData( elem ) ) { + + id = elem[ internalKey ]; + data = id && cache[ id ]; + + if ( data ) { + if ( data.events ) { + for ( type in data.events ) { + if ( special[ type ] ) { + jQuery.event.remove( elem, type ); + + // This is a shortcut to avoid jQuery.event.remove's overhead + } else { + jQuery.removeEvent( elem, type, data.handle ); + } + } + } + + // Remove cache only if it was not already removed by jQuery.event.remove + if ( cache[ id ] ) { + + delete cache[ id ]; + + // IE does not allow us to delete expando properties from nodes, + // nor does it have a removeAttribute function on Document nodes; + // we must handle all of these cases + if ( deleteExpando ) { + delete elem[ internalKey ]; + + } else if ( typeof elem.removeAttribute !== strundefined ) { + elem.removeAttribute( internalKey ); + + } else { + elem[ internalKey ] = null; + } + + deletedIds.push( id ); + } + } + } + } + } +}); + +jQuery.fn.extend({ + text: function( value ) { + return access( this, function( value ) { + return value === undefined ? + jQuery.text( this ) : + this.empty().append( ( this[0] && this[0].ownerDocument || document ).createTextNode( value ) ); + }, null, value, arguments.length ); + }, + + append: function() { + return this.domManip( arguments, function( elem ) { + if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { + var target = manipulationTarget( this, elem ); + target.appendChild( elem ); + } + }); + }, + + prepend: function() { + return this.domManip( arguments, function( elem ) { + if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { + var target = manipulationTarget( this, elem ); + target.insertBefore( elem, target.firstChild ); + } + }); + }, + + before: function() { + return this.domManip( arguments, function( elem ) { + if ( this.parentNode ) { + this.parentNode.insertBefore( elem, this ); + } + }); + }, + + after: function() { + return this.domManip( arguments, function( elem ) { + if ( this.parentNode ) { + this.parentNode.insertBefore( elem, this.nextSibling ); + } + }); + }, + + remove: function( selector, keepData /* Internal Use Only */ ) { + var elem, + elems = selector ? jQuery.filter( selector, this ) : this, + i = 0; + + for ( ; (elem = elems[i]) != null; i++ ) { + + if ( !keepData && elem.nodeType === 1 ) { + jQuery.cleanData( getAll( elem ) ); + } + + if ( elem.parentNode ) { + if ( keepData && jQuery.contains( elem.ownerDocument, elem ) ) { + setGlobalEval( getAll( elem, "script" ) ); + } + elem.parentNode.removeChild( elem ); + } + } + + return this; + }, + + empty: function() { + var elem, + i = 0; + + for ( ; (elem = this[i]) != null; i++ ) { + // Remove element nodes and prevent memory leaks + if ( elem.nodeType === 1 ) { + jQuery.cleanData( getAll( elem, false ) ); + } + + // Remove any remaining nodes + while ( elem.firstChild ) { + elem.removeChild( elem.firstChild ); + } + + // If this is a select, ensure that it displays empty (#12336) + // Support: IE<9 + if ( elem.options && jQuery.nodeName( elem, "select" ) ) { + elem.options.length = 0; + } + } + + return this; + }, + + clone: function( dataAndEvents, deepDataAndEvents ) { + dataAndEvents = dataAndEvents == null ? false : dataAndEvents; + deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents; + + return this.map(function() { + return jQuery.clone( this, dataAndEvents, deepDataAndEvents ); + }); + }, + + html: function( value ) { + return access( this, function( value ) { + var elem = this[ 0 ] || {}, + i = 0, + l = this.length; + + if ( value === undefined ) { + return elem.nodeType === 1 ? + elem.innerHTML.replace( rinlinejQuery, "" ) : + undefined; + } + + // See if we can take a shortcut and just use innerHTML + if ( typeof value === "string" && !rnoInnerhtml.test( value ) && + ( support.htmlSerialize || !rnoshimcache.test( value ) ) && + ( support.leadingWhitespace || !rleadingWhitespace.test( value ) ) && + !wrapMap[ (rtagName.exec( value ) || [ "", "" ])[ 1 ].toLowerCase() ] ) { + + value = value.replace( rxhtmlTag, "<$1>" ); + + try { + for (; i < l; i++ ) { + // Remove element nodes and prevent memory leaks + elem = this[i] || {}; + if ( elem.nodeType === 1 ) { + jQuery.cleanData( getAll( elem, false ) ); + elem.innerHTML = value; + } + } + + elem = 0; + + // If using innerHTML throws an exception, use the fallback method + } catch(e) {} + } + + if ( elem ) { + this.empty().append( value ); + } + }, null, value, arguments.length ); + }, + + replaceWith: function() { + var arg = arguments[ 0 ]; + + // Make the changes, replacing each context element with the new content + this.domManip( arguments, function( elem ) { + arg = this.parentNode; + + jQuery.cleanData( getAll( this ) ); + + if ( arg ) { + arg.replaceChild( elem, this ); + } + }); + + // Force removal if there was no new content (e.g., from empty arguments) + return arg && (arg.length || arg.nodeType) ? this : this.remove(); + }, + + detach: function( selector ) { + return this.remove( selector, true ); + }, + + domManip: function( args, callback ) { + + // Flatten any nested arrays + args = concat.apply( [], args ); + + var first, node, hasScripts, + scripts, doc, fragment, + i = 0, + l = this.length, + set = this, + iNoClone = l - 1, + value = args[0], + isFunction = jQuery.isFunction( value ); + + // We can't cloneNode fragments that contain checked, in WebKit + if ( isFunction || + ( l > 1 && typeof value === "string" && + !support.checkClone && rchecked.test( value ) ) ) { + return this.each(function( index ) { + var self = set.eq( index ); + if ( isFunction ) { + args[0] = value.call( this, index, self.html() ); + } + self.domManip( args, callback ); + }); + } + + if ( l ) { + fragment = jQuery.buildFragment( args, this[ 0 ].ownerDocument, false, this ); + first = fragment.firstChild; + + if ( fragment.childNodes.length === 1 ) { + fragment = first; + } + + if ( first ) { + scripts = jQuery.map( getAll( fragment, "script" ), disableScript ); + hasScripts = scripts.length; + + // Use the original fragment for the last item instead of the first because it can end up + // being emptied incorrectly in certain situations (#8070). + for ( ; i < l; i++ ) { + node = fragment; + + if ( i !== iNoClone ) { + node = jQuery.clone( node, true, true ); + + // Keep references to cloned scripts for later restoration + if ( hasScripts ) { + jQuery.merge( scripts, getAll( node, "script" ) ); + } + } + + callback.call( this[i], node, i ); + } + + if ( hasScripts ) { + doc = scripts[ scripts.length - 1 ].ownerDocument; + + // Reenable scripts + jQuery.map( scripts, restoreScript ); + + // Evaluate executable scripts on first document insertion + for ( i = 0; i < hasScripts; i++ ) { + node = scripts[ i ]; + if ( rscriptType.test( node.type || "" ) && + !jQuery._data( node, "globalEval" ) && jQuery.contains( doc, node ) ) { + + if ( node.src ) { + // Optional AJAX dependency, but won't run scripts if not present + if ( jQuery._evalUrl ) { + jQuery._evalUrl( node.src ); + } + } else { + jQuery.globalEval( ( node.text || node.textContent || node.innerHTML || "" ).replace( rcleanScript, "" ) ); + } + } + } + } + + // Fix #11809: Avoid leaking memory + fragment = first = null; + } + } + + return this; + } +}); + +jQuery.each({ + appendTo: "append", + prependTo: "prepend", + insertBefore: "before", + insertAfter: "after", + replaceAll: "replaceWith" +}, function( name, original ) { + jQuery.fn[ name ] = function( selector ) { + var elems, + i = 0, + ret = [], + insert = jQuery( selector ), + last = insert.length - 1; + + for ( ; i <= last; i++ ) { + elems = i === last ? this : this.clone(true); + jQuery( insert[i] )[ original ]( elems ); + + // Modern browsers can apply jQuery collections as arrays, but oldIE needs a .get() + push.apply( ret, elems.get() ); + } + + return this.pushStack( ret ); + }; +}); + + +var iframe, + elemdisplay = {}; + +/** + * Retrieve the actual display of a element + * @param {String} name nodeName of the element + * @param {Object} doc Document object + */ +// Called only from within defaultDisplay +function actualDisplay( name, doc ) { + var elem = jQuery( doc.createElement( name ) ).appendTo( doc.body ), + + // getDefaultComputedStyle might be reliably used only on attached element + display = window.getDefaultComputedStyle ? + + // Use of this method is a temporary fix (more like optmization) until something better comes along, + // since it was removed from specification and supported only in FF + window.getDefaultComputedStyle( elem[ 0 ] ).display : jQuery.css( elem[ 0 ], "display" ); + + // We don't have any data stored on the element, + // so use "detach" method as fast way to get rid of the element + elem.detach(); + + return display; +} + +/** + * Try to determine the default display value of an element + * @param {String} nodeName + */ +function defaultDisplay( nodeName ) { + var doc = document, + display = elemdisplay[ nodeName ]; + + if ( !display ) { + display = actualDisplay( nodeName, doc ); + + // If the simple way fails, read from inside an iframe + if ( display === "none" || !display ) { + + // Use the already-created iframe if possible + iframe = (iframe || jQuery( "