JAL-1807 update
[jalviewjs.git] / site / j2s / core / corejalview.z.js
1 (function(W,ja,ea,fa,F,Z,p,v,q,r,s,I,ka,m,R,y,w,G,Q,B,J,t,S,M,z,A,ga,C,H,O,E,ha,Y,K,la,X,N,ma,U,na,oa,pa,qa,ra,sa,ta,ua,va,wa,xa,ya,za,Aa,Ba,Ca,$,Da,d,e,L,ia,T){q(["java.io.Reader"],"java.io.InputStreamReader",["java.lang.NullPointerException"],function(){c$=s(function(){this.$in=null;this.isOpen=!0;this.charsetName=null;this.isUTF8=!1;this.bytearr=null;this.pos=0;r(this,arguments)},java.io,"InputStreamReader",java.io.Reader);m(c$,function(a){this.$in=a;var b=1<arguments.length?arguments[1]:"UTF-8";
2 this.charsetName=b;if(!(this.isUTF8="UTF-8".equals(b))&&!"ISO-8859-1".equals(b))throw new NullPointerException("charsetName");},"java.io.InputStream");d(c$,"getEncoding",function(){return this.charsetName});e(c$,"read",function(a,b,c){if(null==this.bytearr||this.bytearr.length<c)this.bytearr=S(c,0);var f,l,d=0,g=b,h=this.$in.read(this.bytearr,this.pos,c-this.pos),j=this.$in.available();if(0>h)return-1;for(var e=h;d<e;){c=this.bytearr[d]&255;if(this.isUTF8)switch(c>>4){case 12:case 13:if(d+1>=h){if(1<=
3 j){e=d;continue}}else if(128==((f=this.bytearr[d+1])&192)){a[g++]=String.fromCharCode((c&31)<<6|f&63);d+=2;continue}this.isUTF8=!1;break;case 14:if(d+2>=h){if(2<=j){e=d;continue}}else if(128==((f=this.bytearr[d+1])&192)&&128==((l=this.bytearr[d+2])&192)){a[g++]=String.fromCharCode((c&15)<<12|(f&63)<<6|l&63);d+=3;continue}this.isUTF8=!1}d++;a[g++]=String.fromCharCode(c)}this.pos=h-d;for(a=0;a<this.pos;a++)this.bytearr[a]=this.bytearr[d++];return g-b},"~A,~N,~N");e(c$,"ready",function(){return this.isOpen});
4 e(c$,"close",function(){this.$in.close();this.isOpen=!1})});p("javax.swing.text");q("java.awt.event.FocusListener $.MouseListener javax.swing.ActionMap $.InputMap $.JComponent $.Scrollable javax.swing.event.CaretEvent $.ChangeListener javax.swing.text.Keymap javax.swing.DropMode".split(" "),"javax.swing.text.JTextComponent","java.io.IOException java.lang.Boolean $.Character $.IllegalArgumentException java.util.HashMap $.Hashtable $.Vector java.awt.Point javax.swing.Action $.JViewport $.UIManager javax.swing.event.CaretListener javax.swing.text.DefaultEditorKit $.JSMinimalAbstractDocument jssun.awt.AppContext swingjs.JSToolkit".split(" "),
5 function(){c$=s(function(){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.dropMode=null;r(this,arguments)},javax.swing.text,"JTextComponent",javax.swing.JComponent,javax.swing.Scrollable);
6 J(c$,function(){this.dropMode=javax.swing.DropMode.USE_SELECTION});m(c$,function(){t(this,javax.swing.text.JTextComponent);this.enableEvents(2056);this.caretEvent=new javax.swing.text.JTextComponent.MutableCaretEvent(this);this.addMouseListener(this.caretEvent);this.addFocusListener(this.caretEvent);this.setEditable(!0);this.setDragEnabled(!1);this.setLayout(null);this.updateUI()});e(c$,"getUI",function(){return this.ui});e(c$,"updateUI",function(){this.setUI(javax.swing.UIManager.getUI(this));this.invalidate()});
7 d(c$,"addCaretListener",function(a){this.listenerList.add(javax.swing.event.CaretListener,a)},"javax.swing.event.CaretListener");d(c$,"removeCaretListener",function(a){this.listenerList.remove(javax.swing.event.CaretListener,a)},"javax.swing.event.CaretListener");d(c$,"getCaretListeners",function(){return this.listenerList.getListeners(javax.swing.event.CaretListener)});d(c$,"fireCaretUpdate",function(a){for(var b=this.listenerList.getListenerList(),c=b.length-2;0<=c;c-=2)b[c]===javax.swing.event.CaretListener&&
8 b[c+1].caretUpdate(a)},"javax.swing.event.CaretEvent");d(c$,"setDocument",function(a){var b=this.model;this.model=a;this.firePropertyChangeObject("document",b,a);this.revalidate();this.repaint()},"javax.swing.text.Document");d(c$,"getDocument",function(){return this.model});d(c$,"getActions",function(){return null==this.getUI()?null:this.getUI().getEditorKit(this).getActions()});d(c$,"setMargin",function(a){var b=this.margin;this.margin=a;this.firePropertyChangeObject("margin",b,a);this.invalidate()},
9 "java.awt.Insets");d(c$,"getMargin",function(){return this.margin});d(c$,"setNavigationFilter",function(a){this.navigationFilter=a},"javax.swing.text.NavigationFilter");d(c$,"getNavigationFilter",function(){return this.navigationFilter});d(c$,"getCaret",function(){return this.caret});d(c$,"setCaret",function(a){null!=this.caret&&(this.caret.removeChangeListener(this.caretEvent),this.caret.deinstall(this));var b=this.caret;this.caret=a;null!=this.caret&&(this.caret.install(this),this.caret.addChangeListener(this.caretEvent));
10 this.firePropertyChangeObject("caret",b,this.caret)},"javax.swing.text.Caret");d(c$,"getHighlighter",function(){return this.highlighter});d(c$,"setHighlighter",function(a){null!=this.highlighter&&this.highlighter.deinstall(this);var b=this.highlighter;this.highlighter=a;null!=this.highlighter&&this.highlighter.install(this);this.firePropertyChangeObject("highlighter",b,a)},"javax.swing.text.Highlighter");d(c$,"setKeymap",function(a){var b=this.keymap;this.keymap=a;this.firePropertyChangeObject("keymap",
11 b,this.keymap);this.updateInputMap(b,a)},"javax.swing.text.Keymap");d(c$,"setDragEnabled",function(a){this.dragEnabled=a},"~B");d(c$,"getDragEnabled",function(){return this.dragEnabled});d(c$,"setDropMode",function(a){if(null!=a)switch(a){case javax.swing.DropMode.USE_SELECTION:case javax.swing.DropMode.INSERT:this.dropMode=a;return}throw new IllegalArgumentException(a+": Unsupported drop mode for text");},"javax.swing.DropMode");d(c$,"getDropMode",function(){return this.dropMode});d(c$,"updateInputMap",
12 function(a,b){for(var c=this.getInputMap(0),f=c;null!=c&&!v(c,javax.swing.text.JTextComponent.KeymapWrapper);)f=c,c=c.getParent();if(null!=c)if(null==b)f!==c?f.setParent(c.getParent()):f.setParent(null);else{var l=new javax.swing.text.JTextComponent.KeymapWrapper(b);f.setParent(l);f!==c&&l.setParent(c.getParent())}else null!=b&&(c=this.getInputMap(0),null!=c&&(l=new javax.swing.text.JTextComponent.KeymapWrapper(b),l.setParent(c.getParent()),c.setParent(l)));for(f=c=this.getActionMap();null!=c&&!v(c,
13 javax.swing.text.JTextComponent.KeymapActionMap);)f=c,c=c.getParent();null!=c?null==b?f!==c?f.setParent(c.getParent()):f.setParent(null):(l=new javax.swing.text.JTextComponent.KeymapActionMap(b),f.setParent(l),f!==c&&l.setParent(c.getParent())):null!=b&&(c=this.getActionMap(),null!=c&&(l=new javax.swing.text.JTextComponent.KeymapActionMap(b),l.setParent(c.getParent()),c.setParent(l)))},"javax.swing.text.Keymap,javax.swing.text.Keymap");d(c$,"getKeymap",function(){return this.keymap});c$.addKeymap=
14 d(c$,"addKeymap",function(a,b){var c=new javax.swing.text.JTextComponent.DefaultKeymap(a,b);null!=a&&javax.swing.text.JTextComponent.getKeymapTable().put(a,c);return c},"~S,javax.swing.text.Keymap");c$.removeKeymap=d(c$,"removeKeymap",function(a){return javax.swing.text.JTextComponent.getKeymapTable().remove(a)},"~S");c$.getKeymap=d(c$,"getKeymap",function(a){return javax.swing.text.JTextComponent.getKeymapTable().get(a)},"~S");c$.getKeymapTable=d(c$,"getKeymapTable",function(){var a=jssun.awt.AppContext.getAppContext(),
15 b=a.get(javax.swing.text.JTextComponent.KEYMAP_TABLE);null==b&&(b=new java.util.HashMap(17),a.put(javax.swing.text.JTextComponent.KEYMAP_TABLE,b),javax.swing.text.JTextComponent.addKeymap("default",null).setDefaultAction(new javax.swing.text.DefaultEditorKit.DefaultKeyTypedAction));return b});c$.loadKeymap=d(c$,"loadKeymap",function(a,b,c){for(var f=new java.util.Hashtable,l=0;l<c.length;l++){var d=c[l],g=d.getValue("Name");f.put(null!=g?g:"",d)}for(l=0;l<b.length;l++)d=f.get(b[l].actionName),null!=
16 d&&a.addActionForKeyStroke(b[l].key,d)},"javax.swing.text.Keymap,~A,~A");d(c$,"getCaretColor",function(){return this.caretColor});d(c$,"setCaretColor",function(a){var b=this.caretColor;this.caretColor=a;this.firePropertyChangeObject("caretColor",b,this.caretColor)},"java.awt.Color");d(c$,"getSelectionColor",function(){return this.selectionColor});d(c$,"setSelectionColor",function(a){var b=this.selectionColor;this.selectionColor=a;this.firePropertyChangeObject("selectionColor",b,this.selectionColor)},
17 "java.awt.Color");d(c$,"getSelectedTextColor",function(){return this.selectedTextColor});d(c$,"setSelectedTextColor",function(a){var b=this.selectedTextColor;this.selectedTextColor=a;this.firePropertyChangeObject("selectedTextColor",b,this.selectedTextColor)},"java.awt.Color");d(c$,"getDisabledTextColor",function(){return this.disabledTextColor});d(c$,"setDisabledTextColor",function(a){var b=this.disabledTextColor;this.disabledTextColor=a;this.firePropertyChangeObject("disabledTextColor",b,this.disabledTextColor)},
18 "java.awt.Color");d(c$,"replaceSelection",function(a){var b=this.getDocument();if(null!=b)try{var c=this.saveComposedText(this.caret.getDot()),f=Math.min(this.caret.getDot(),this.caret.getMark()),l=Math.max(this.caret.getDot(),this.caret.getMark());v(b,javax.swing.text.JSMinimalAbstractDocument)?b.replace(f,l-f,a,null):(f!=l&&b.remove(f,l-f),null!=a&&0<a.length&&b.insertString(f,a,null));c&&this.restoreComposedText()}catch(d){if(y(d,javax.swing.text.BadLocationException))swingjs.JSToolkit.alert("SWINGJS BAD LOCATION EXCEPTION (replace):"+
19 d.getMessage()+swingjs.JSToolkit.getStackTrace(-10));else throw d;}},"~S");d(c$,"getText",function(a,b){return this.getDocument().getText(a,b)},"~N,~N");d(c$,"modelToView",function(a){return this.getUI().modelToView(this,a)},"~N");d(c$,"viewToModel",function(a){return this.getUI().viewToModel(this,a)},"java.awt.Point");d(c$,"cut",function(){});d(c$,"copy",function(){});d(c$,"paste",function(){});d(c$,"moveCaretPosition",function(a){var b=this.getDocument();if(null!=b){if(a>b.getLength()||0>a)throw new IllegalArgumentException("bad position: "+
20 a);this.caret.moveDot(a)}},"~N");d(c$,"setFocusAccelerator",function(a){a=Character.toUpperCase(a);var b=this.focusAccelerator;this.focusAccelerator=a;this.firePropertyChange("focusAcceleratorKey",b,this.focusAccelerator);this.firePropertyChange("focusAccelerator",b,this.focusAccelerator)},"~S");d(c$,"getFocusAccelerator",function(){return this.focusAccelerator});d(c$,"read",function(a,b){var c=this.getUI().getEditorKit(this),f=c.createDefaultDocument();null!=b&&f.putProperty("stream",b);try{c.read(a,
21 f,0),this.setDocument(f)}catch(l){if(y(l,javax.swing.text.BadLocationException))throw new java.io.IOException(l.getMessage());throw l;}},"java.io.Reader,~O");d(c$,"write",function(a){var b=this.getDocument();try{this.getUI().getEditorKit(this).write(a,b,0,b.getLength())}catch(c){if(y(c,javax.swing.text.BadLocationException))throw new java.io.IOException(c.getMessage());throw c;}},"java.io.Writer");d(c$,"removeNotify",function(){K(this,javax.swing.text.JTextComponent,"removeNotify",[]);javax.swing.text.JTextComponent.getFocusedComponent()===
22 this&&jssun.awt.AppContext.getAppContext().remove(javax.swing.text.JTextComponent.FOCUSED_COMPONENT)});d(c$,"setCaretPosition",function(a){var b=this.getDocument();if(null!=b){if(a>b.getLength()||0>a)throw new IllegalArgumentException("bad position: "+a);this.caret.setDot(a)}},"~N");d(c$,"getCaretPosition",function(){return this.caret.getDot()});d(c$,"setText",function(a){try{var b=this.getDocument();v(b,javax.swing.text.JSMinimalAbstractDocument)?b.replace(0,b.getLength(),a,null):(b.remove(0,b.getLength()),
23 b.insertString(0,a,null))}catch(c){if(y(c,javax.swing.text.BadLocationException))swingjs.JSToolkit.alert("SWINGJS BAD LOCATION EXCEPTION (setText):"+c.getMessage()+swingjs.JSToolkit.getStackTrace(-10));else throw c;}},"~S");d(c$,"getText",function(){var a=this.getDocument(),b;try{b=a.getText(0,a.getLength())}catch(c){if(y(c,javax.swing.text.BadLocationException))b=null;else throw c;}return b});d(c$,"getSelectedText",function(){var a=null,b=Math.min(this.caret.getDot(),this.caret.getMark()),c=Math.max(this.caret.getDot(),
24 this.caret.getMark());if(b!=c)try{a=this.getDocument().getText(b,c-b)}catch(f){if(y(f,javax.swing.text.BadLocationException))throw new IllegalArgumentException(f.getMessage());throw f;}return a});d(c$,"isEditable",function(){return this.editable});d(c$,"setEditable",function(a){if(a!=this.editable){var b=this.editable;this.editable=a;this.firePropertyChangeObject("editable",Boolean.$valueOf(b),Boolean.$valueOf(this.editable));this.repaint()}},"~B");d(c$,"getSelectionStart",function(){return Math.min(this.caret.getDot(),
25 this.caret.getMark())});d(c$,"setSelectionStart",function(a){this.select(a,this.getSelectionEnd())},"~N");d(c$,"getSelectionEnd",function(){return Math.max(this.caret.getDot(),this.caret.getMark())});d(c$,"setSelectionEnd",function(a){this.select(this.getSelectionStart(),a)},"~N");d(c$,"select",function(a,b){var c=this.getDocument().getLength();0>a&&(a=0);a>c&&(a=c);b>c&&(b=c);b<a&&(b=a);this.setCaretPosition(a);this.moveCaretPosition(b)},"~N,~N");d(c$,"selectAll",function(){var a=this.getDocument();
26 null!=a&&(this.setCaretPosition(0),this.moveCaretPosition(a.getLength()))});d(c$,"getToolTipText",function(a){var b=K(this,javax.swing.text.JTextComponent,"getToolTipText",[a]);if(null==b){var c=this.getUI();null!=c&&(b=c.getToolTipText(this,new java.awt.Point(a.getX(),a.getY())))}return b},"java.awt.event.MouseEvent");e(c$,"getPreferredScrollableViewportSize",function(){return this.getPreferredSize()});e(c$,"getScrollableUnitIncrement",function(a,b){switch(b){case 1:return F(a.height/10);case 0:return F(a.width/
27 10);default:throw new IllegalArgumentException("Invalid orientation: "+b);}},"java.awt.Rectangle,~N,~N");e(c$,"getScrollableBlockIncrement",function(a,b){switch(b){case 1:return a.height;case 0:return a.width;default:throw new IllegalArgumentException("Invalid orientation: "+b);}},"java.awt.Rectangle,~N,~N");e(c$,"getScrollableTracksViewportWidth",function(){return v(this.getParent(),javax.swing.JViewport)?this.getParent().getWidth()>this.getPreferredSize().width:!1});e(c$,"getScrollableTracksViewportHeight",
28 function(){return v(this.getParent(),javax.swing.JViewport)?this.getParent().getHeight()>this.getPreferredSize().height:!1});d(c$,"paramString",function(){var a=this.editable?"true":"false",b=null!=this.caretColor?this.caretColor.toString():"",c=null!=this.selectionColor?this.selectionColor.toString():"",f=null!=this.selectedTextColor?this.selectedTextColor.toString():"",l=null!=this.disabledTextColor?this.disabledTextColor.toString():"",d=null!=this.margin?this.margin.toString():"";return K(this,
29 javax.swing.text.JTextComponent,"paramString",[])+",caretColor="+b+",disabledTextColor="+l+",editable="+a+",margin="+d+",selectedTextColor="+f+",selectionColor="+c});c$.getFocusedComponent=d(c$,"getFocusedComponent",function(){return jssun.awt.AppContext.getAppContext().get(javax.swing.text.JTextComponent.FOCUSED_COMPONENT)});d(c$,"addInputMethodListener",function(a){K(this,javax.swing.text.JTextComponent,"addInputMethodListener",[a])},"java.awt.event.InputMethodListener");d(c$,"saveComposedText",
30 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(b,c),!0}catch(f){if(!y(f,javax.swing.text.BadLocationException))throw f;}}return!1},"~N");d(c$,"restoreComposedText",function(){var a=this.getDocument();try{a.insertString(this.caret.getDot(),this.composedTextContent,this.composedTextAttribute),this.composedTextStart=a.createPosition(this.caret.getDot()-
31 this.composedTextContent.length),this.composedTextEnd=a.createPosition(this.caret.getDot())}catch(b){if(!y(b,javax.swing.text.BadLocationException))throw b;}});d(c$,"composedTextExists",function(){return null!=this.composedTextStart});A(self.c$);c$=s(function(){this.actionName=this.key=null;r(this,arguments)},javax.swing.text.JTextComponent,"KeyBinding");m(c$,function(a,b){this.key=a;this.actionName=b},"javax.swing.KeyStroke,~S");c$=z();A(self.c$);c$=s(function(){this.defaultAction=this.bindings=
32 this.parent=this.nm=null;r(this,arguments)},javax.swing.text.JTextComponent,"DefaultKeymap",null,javax.swing.text.Keymap);m(c$,function(a,b){this.nm=a;this.parent=b;this.bindings=new java.util.Hashtable},"~S,javax.swing.text.Keymap");d(c$,"getDefaultAction",function(){return null!=this.defaultAction?this.defaultAction:null!=this.parent?this.parent.getDefaultAction():null});e(c$,"setDefaultAction",function(a){this.defaultAction=a},"javax.swing.Action");e(c$,"getName",function(){return this.nm});d(c$,
33 "getAction",function(a){var b=this.bindings.get(a);null==b&&null!=this.parent&&(b=this.parent.getAction(a));return b},"javax.swing.KeyStroke");e(c$,"getBoundKeyStrokes",function(){for(var a=Array(this.bindings.size()),b=0,c=this.bindings.keys();c.hasMoreElements();)a[b++]=c.nextElement();return a});e(c$,"getBoundActions",function(){for(var a=Array(this.bindings.size()),b=0,c=this.bindings.elements();c.hasMoreElements();)a[b++]=c.nextElement();return a});d(c$,"getKeyStrokesForAction",function(a){if(null==
34 a)return null;for(var b=null,c=null,f=this.bindings.keys();f.hasMoreElements();){var l=f.nextElement();this.bindings.get(l)===a&&(null==c&&(c=new java.util.Vector),c.addElement(l))}if(null!=this.parent&&(l=this.parent.getKeyStrokesForAction(a),null!=l)){a=0;for(f=l.length-1;0<=f;f--)this.isLocallyDefined(l[f])&&(l[f]=null,a++);if(0<a&&a<l.length){null==c&&(c=new java.util.Vector);for(a=l.length-1;0<=a;a--)null!=l[a]&&c.addElement(l[a])}else 0==a&&(null==c?b=l:(b=Array(c.size()+l.length),c.copyInto(b),
35 System.arraycopy(l,0,b,c.size(),l.length),c=null))}null!=c&&(b=Array(c.size()),c.copyInto(b));return b},"javax.swing.Action");e(c$,"isLocallyDefined",function(a){return this.bindings.containsKey(a)},"javax.swing.KeyStroke");e(c$,"addActionForKeyStroke",function(a,b){this.bindings.put(a,b)},"javax.swing.KeyStroke,javax.swing.Action");e(c$,"removeKeyStrokeBinding",function(a){this.bindings.remove(a)},"javax.swing.KeyStroke");e(c$,"removeBindings",function(){this.bindings.clear()});e(c$,"getResolveParent",
36 function(){return this.parent});e(c$,"setResolveParent",function(a){this.parent=a},"javax.swing.text.Keymap");e(c$,"toString",function(){return"Keymap["+this.nm+"]"+this.bindings});c$=z();A(self.c$);c$=s(function(){this.keymap=null;r(this,arguments)},javax.swing.text.JTextComponent,"KeymapWrapper",javax.swing.InputMap);m(c$,function(a){t(this,javax.swing.text.JTextComponent.KeymapWrapper,[]);this.keymap=a},"javax.swing.text.Keymap");d(c$,"keys",function(){var a=K(this,javax.swing.text.JTextComponent.KeymapWrapper,
37 "keys",[]),b=this.keymap.getBoundKeyStrokes(),c=null==a?0:a.length,f=null==b?0:b.length;if(0==c)return b;if(0==f)return a;var l=Array(c+f);System.arraycopy(a,0,l,0,c);System.arraycopy(b,0,l,c,f);return l});d(c$,"size",function(){var a=this.keymap.getBoundKeyStrokes(),a=null==a?0:a.length;return K(this,javax.swing.text.JTextComponent.KeymapWrapper,"size",[])+a});d(c$,"get",function(a){var b=this.keymap.getAction(a);null==b&&(b=K(this,javax.swing.text.JTextComponent.KeymapWrapper,"get",[a]),null==b&&
38 ("\uffff"!=a.getKeyChar()&&null!=this.keymap.getDefaultAction())&&(b=javax.swing.text.JTextComponent.KeymapWrapper.DefaultActionKey));return b},"javax.swing.KeyStroke");c$.DefaultActionKey=c$.prototype.DefaultActionKey=new W._O;c$=z();A(self.c$);c$=s(function(){this.keymap=null;r(this,arguments)},javax.swing.text.JTextComponent,"KeymapActionMap",javax.swing.ActionMap);m(c$,function(a){t(this,javax.swing.text.JTextComponent.KeymapActionMap,[]);this.keymap=a},"javax.swing.text.Keymap");d(c$,"keys",
39 function(){var a=K(this,javax.swing.text.JTextComponent.KeymapActionMap,"keys",[]),b=this.keymap.getBoundActions(),c=null==a?0:a.length,f=null==b?0:b.length,l=null!=this.keymap.getDefaultAction();l&&f++;if(0==c){if(l){var d=Array(f);1<f&&System.arraycopy(b,0,d,0,f-1);d[f-1]=javax.swing.text.JTextComponent.KeymapWrapper.DefaultActionKey;return d}return b}if(0==f)return a;d=Array(c+f);System.arraycopy(a,0,d,0,c);l?(1<f&&System.arraycopy(b,0,d,c,f-1),d[c+f-1]=javax.swing.text.JTextComponent.KeymapWrapper.DefaultActionKey):
40 System.arraycopy(b,0,d,c,f);return d});d(c$,"size",function(){var a=this.keymap.getBoundActions(),a=null==a?0:a.length;null!=this.keymap.getDefaultAction()&&a++;return K(this,javax.swing.text.JTextComponent.KeymapActionMap,"size",[])+a});d(c$,"get",function(a){var b=K(this,javax.swing.text.JTextComponent.KeymapActionMap,"get",[a]);null==b&&(a===javax.swing.text.JTextComponent.KeymapWrapper.DefaultActionKey?b=this.keymap.getDefaultAction():v(a,javax.swing.Action)&&(b=a));return b},"~O");c$=z();A(self.c$);
41 c$=s(function(){this.dragActive=!1;this.mark=this.dot=0;r(this,arguments)},javax.swing.text.JTextComponent,"MutableCaretEvent",javax.swing.event.CaretEvent,[javax.swing.event.ChangeListener,java.awt.event.FocusListener,java.awt.event.MouseListener]);d(c$,"fire",function(){var a=this.getSource();if(null!=a){var b=a.getCaret();null!=b&&(this.dot=b.getDot(),this.mark=b.getMark(),a.fireCaretUpdate(this))}});e(c$,"toString",function(){return"dot="+this.dot+",mark="+this.mark});e(c$,"getDot",function(){return this.dot});
42 e(c$,"getMark",function(){return this.mark});e(c$,"stateChanged",function(){this.dragActive||this.fire()},"javax.swing.event.ChangeEvent");e(c$,"focusGained",function(a){jssun.awt.AppContext.getAppContext().put(javax.swing.text.JTextComponent.FOCUSED_COMPONENT,a.getSource())},"java.awt.event.FocusEvent");e(c$,"focusLost",function(){},"java.awt.event.FocusEvent");e(c$,"mousePressed",function(){this.dragActive=!0},"java.awt.event.MouseEvent");e(c$,"mouseReleased",function(){this.dragActive=!1;this.fire()},
43 "java.awt.event.MouseEvent");e(c$,"mouseClicked",function(){},"java.awt.event.MouseEvent");e(c$,"mouseEntered",function(){},"java.awt.event.MouseEvent");e(c$,"mouseExited",function(){},"java.awt.event.MouseEvent");c$=z();G(c$,"FOCUS_ACCELERATOR_KEY","focusAcceleratorKey");c$.KEYMAP_TABLE=c$.prototype.KEYMAP_TABLE=new W._O;c$.FOCUSED_COMPONENT=c$.prototype.FOCUSED_COMPONENT=new W._O;G(c$,"DEFAULT_KEYMAP","default")});p("javax.swing.text");M(javax.swing.text,"Keymap");p("javax.swing.text");q(["javax.swing.text.EditorKit",
44 "$.TextAction"],"javax.swing.text.DefaultEditorKit","java.io.InputStreamReader $.OutputStreamWriter java.awt.ComponentOrientation $.Point $.Rectangle javax.swing.UIManager javax.swing.text.BadLocationException $.DefaultCaret $.Position $.Segment $.Utilities swingjs.JSPlainDocument".split(" "),function(){c$=B(javax.swing.text,"DefaultEditorKit",javax.swing.text.EditorKit);m(c$,function(){t(this,javax.swing.text.DefaultEditorKit,[])});e(c$,"getContentType",function(){return"text/plain"});e(c$,"getViewFactory",
45 function(){return null});e(c$,"getActions",function(){return javax.swing.text.DefaultEditorKit.defaultActions});e(c$,"createCaret",function(){return null});e(c$,"createDefaultDocument",function(){return new swingjs.JSPlainDocument});d(c$,"read",function(a,b,c){this.read(new java.io.InputStreamReader(a),b,c)},"java.io.InputStream,javax.swing.text.Document,~N");d(c$,"write",function(a,b,c,f){a=new java.io.OutputStreamWriter(a);this.write(a,b,c,f);a.flush()},"java.io.OutputStream,javax.swing.text.Document,~N,~N");
46 d(c$,"getInputAttributes",function(){return null});d(c$,"read",function(a,b,c){for(var f=N(4096,"\x00"),l,d=!1,g=!1,h=!1,j,e=0==b.getLength(),x=this.getInputAttributes();-1!=(l=a.read(f,0,f.length));){for(var u=j=0;u<l;u++)switch(f[u]){case "\r":d?(h=!0,0==u?(b.insertString(c,"\n",x),c++):f[u-1]="\n"):d=!0;break;case "\n":d&&(u>j+1&&(b.insertString(c,String.instantialize(f,j,u-j-1),x),c+=u-j-1),d=!1,j=u,g=!0);break;default:d&&(h=!0,0==u?(b.insertString(c,"\n",x),c++):f[u-1]="\n",d=!1)}j<l&&(d?j<l-
47 1&&(b.insertString(c,String.instantialize(f,j,l-j-1),x),c+=l-j-1):(b.insertString(c,String.instantialize(f,j,l-j),x),c+=l-j))}d&&(b.insertString(c,"\n",x),h=!0);e&&(g?b.putProperty("__EndOfLine__","\r\n"):h?b.putProperty("__EndOfLine__","\r"):b.putProperty("__EndOfLine__","\n"))},"java.io.Reader,javax.swing.text.Document,~N");d(c$,"write",function(a,b,c,f){if(0>c||c+f>b.getLength())throw new javax.swing.text.BadLocationException("DefaultEditorKit.write",c);var l=new javax.swing.text.Segment,d=b.getProperty("__EndOfLine__");
48 if(null==d)try{d=System.getProperty("line.separator")}catch(g){if(!y(g,SecurityException))throw g;}var h;h=v(d,String)?d:null;if(null!=d&&!h.equals("\n"))for(;0<f;){d=Math.min(f,4096);b.getText(c,d,l);for(var j=l.offset,e=l.array,x=j+l.count,u=j;u<x;u++)"\n"==e[u]&&(u>j&&a.write(e,j,u-j),a.write(h),j=u+1);x>j&&a.write(e,j,x-j);c+=d;f-=d}else for(;0<f;)d=Math.min(f,4096),b.getText(c,d,l),a.write(l.array,l.offset,l.count),c+=d,f-=d;a.flush()},"java.io.Writer,javax.swing.text.Document,~N,~N");A(self.c$);
49 c$=B(javax.swing.text.DefaultEditorKit,"DefaultKeyTypedAction",javax.swing.text.TextAction);m(c$,function(){t(this,javax.swing.text.DefaultEditorKit.DefaultKeyTypedAction,["default-typed"])});e(c$,"actionPerformed",function(a){var b=this.getTextComponent(a);if(null!=b&&null!=a&&b.isEditable()&&b.isEnabled()){var c=a.getActionCommand();a=a.getModifiers();null!=c&&(0<c.length&&(a&8)==(a&2))&&(a=c.charAt(0),32<=a.charCodeAt(0)&&127!=a.charCodeAt(0)&&b.replaceSelection(c))}},"java.awt.event.ActionEvent");
50 c$=z();A(self.c$);c$=B(javax.swing.text.DefaultEditorKit,"InsertContentAction",javax.swing.text.TextAction);m(c$,function(){t(this,javax.swing.text.DefaultEditorKit.InsertContentAction,["insert-content"])});e(c$,"actionPerformed",function(a){var b=this.getTextComponent(a);null!=b&&null!=a&&(!b.isEditable()||!b.isEnabled()?javax.swing.UIManager.getLookAndFeel().provideErrorFeedback(b):(a=a.getActionCommand(),null!=a?b.replaceSelection(a):javax.swing.UIManager.getLookAndFeel().provideErrorFeedback(b)))},
51 "java.awt.event.ActionEvent");c$=z();A(self.c$);c$=B(javax.swing.text.DefaultEditorKit,"InsertBreakAction",javax.swing.text.TextAction);m(c$,function(){t(this,javax.swing.text.DefaultEditorKit.InsertBreakAction,["insert-break"])});e(c$,"actionPerformed",function(a){a=this.getTextComponent(a);null!=a&&(!a.isEditable()||!a.isEnabled()?javax.swing.UIManager.getLookAndFeel().provideErrorFeedback(a):a.replaceSelection("\n"))},"java.awt.event.ActionEvent");c$=z();A(self.c$);c$=B(javax.swing.text.DefaultEditorKit,
52 "InsertTabAction",javax.swing.text.TextAction);m(c$,function(){t(this,javax.swing.text.DefaultEditorKit.InsertTabAction,["insert-tab"])});e(c$,"actionPerformed",function(a){a=this.getTextComponent(a);null!=a&&(!a.isEditable()||!a.isEnabled()?javax.swing.UIManager.getLookAndFeel().provideErrorFeedback(a):a.replaceSelection("\t"))},"java.awt.event.ActionEvent");c$=z();A(self.c$);c$=B(javax.swing.text.DefaultEditorKit,"DeletePrevCharAction",javax.swing.text.TextAction);m(c$,function(){t(this,javax.swing.text.DefaultEditorKit.DeletePrevCharAction,
53 ["delete-previous"])});e(c$,"actionPerformed",function(a){a=this.getTextComponent(a);var b=!0;if(null!=a&&a.isEditable())try{var c=a.getDocument(),f=a.getCaret(),l=f.getDot(),d=f.getMark();if(l!=d)c.remove(Math.min(l,d),Math.abs(l-d)),b=!1;else if(0<l){f=1;if(1<l){var g=c.getText(l-2,2),h=g.charAt(0),j=g.charAt(1);"\ud800"<=h&&("\udbff">=h&&"\udc00"<=j&&"\udfff">=j)&&(f=2)}c.remove(l-f,f);b=!1}}catch(e){if(!y(e,javax.swing.text.BadLocationException))throw e;}b&&javax.swing.UIManager.getLookAndFeel().provideErrorFeedback(a)},
54 "java.awt.event.ActionEvent");c$=z();A(self.c$);c$=B(javax.swing.text.DefaultEditorKit,"DeleteNextCharAction",javax.swing.text.TextAction);m(c$,function(){t(this,javax.swing.text.DefaultEditorKit.DeleteNextCharAction,["delete-next"])});e(c$,"actionPerformed",function(a){a=this.getTextComponent(a);var b=!0;if(null!=a&&a.isEditable())try{var c=a.getDocument(),f=a.getCaret(),l=f.getDot(),d=f.getMark();if(l!=d)c.remove(Math.min(l,d),Math.abs(l-d)),b=!1;else if(l<c.getLength()){f=1;if(l<c.getLength()-
55 1){var g=c.getText(l,2),h=g.charAt(0),j=g.charAt(1);"\ud800"<=h&&("\udbff">=h&&"\udc00"<=j&&"\udfff">=j)&&(f=2)}c.remove(l,f);b=!1}}catch(e){if(!y(e,javax.swing.text.BadLocationException))throw e;}b&&javax.swing.UIManager.getLookAndFeel().provideErrorFeedback(a)},"java.awt.event.ActionEvent");c$=z();A(self.c$);c$=B(javax.swing.text.DefaultEditorKit,"ReadOnlyAction",javax.swing.text.TextAction);m(c$,function(){t(this,javax.swing.text.DefaultEditorKit.ReadOnlyAction,["set-read-only"])});e(c$,"actionPerformed",
56 function(a){a=this.getTextComponent(a);null!=a&&a.setEditable(!1)},"java.awt.event.ActionEvent");c$=z();A(self.c$);c$=B(javax.swing.text.DefaultEditorKit,"WritableAction",javax.swing.text.TextAction);m(c$,function(){t(this,javax.swing.text.DefaultEditorKit.WritableAction,["set-writable"])});e(c$,"actionPerformed",function(a){a=this.getTextComponent(a);null!=a&&a.setEditable(!0)},"java.awt.event.ActionEvent");c$=z();A(self.c$);c$=B(javax.swing.text.DefaultEditorKit,"CutAction",javax.swing.text.TextAction);
57 m(c$,function(){t(this,javax.swing.text.DefaultEditorKit.CutAction,["cut-to-clipboard"])});e(c$,"actionPerformed",function(a){a=this.getTextComponent(a);null!=a&&a.cut()},"java.awt.event.ActionEvent");c$=z();A(self.c$);c$=B(javax.swing.text.DefaultEditorKit,"CopyAction",javax.swing.text.TextAction);m(c$,function(){t(this,javax.swing.text.DefaultEditorKit.CopyAction,["copy-to-clipboard"])});e(c$,"actionPerformed",function(a){a=this.getTextComponent(a);null!=a&&a.copy()},"java.awt.event.ActionEvent");
58 c$=z();A(self.c$);c$=B(javax.swing.text.DefaultEditorKit,"PasteAction",javax.swing.text.TextAction);m(c$,function(){t(this,javax.swing.text.DefaultEditorKit.PasteAction,["paste-from-clipboard"])});e(c$,"actionPerformed",function(a){a=this.getTextComponent(a);null!=a&&a.paste()},"java.awt.event.ActionEvent");c$=z();A(self.c$);c$=B(javax.swing.text.DefaultEditorKit,"BeepAction",javax.swing.text.TextAction);m(c$,function(){t(this,javax.swing.text.DefaultEditorKit.BeepAction,["beep"])});e(c$,"actionPerformed",
59 function(a){a=this.getTextComponent(a);javax.swing.UIManager.getLookAndFeel().provideErrorFeedback(a)},"java.awt.event.ActionEvent");c$=z();A(self.c$);c$=s(function(){this.select=!1;this.direction=0;r(this,arguments)},javax.swing.text.DefaultEditorKit,"VerticalPageAction",javax.swing.text.TextAction);m(c$,function(a,b,c){t(this,javax.swing.text.DefaultEditorKit.VerticalPageAction,[a]);this.select=c;this.direction=b},"~S,~N,~B");e(c$,"actionPerformed",function(a){a=this.getTextComponent(a);if(null!=
60 a){var b=a.getVisibleRect(),c=new java.awt.Rectangle(b),f=a.getCaretPosition(),l=this.direction*a.getScrollableBlockIncrement(b,1,this.direction),d=b.y,g=a.getCaret(),h=g.getMagicCaretPosition();if(-1!=f)try{var j=a.modelToView(f),e=null!=h?h.x:j.x,x=j.height;0<x&&(l=F(l/x)*x);c.y=this.constrainY(a,d+l,b.height);var u;u=b.contains(j.x,j.y)?a.viewToModel(new java.awt.Point(e,this.constrainY(a,j.y+l,0))):-1==this.direction?a.viewToModel(new java.awt.Point(e,c.y)):a.viewToModel(new java.awt.Point(e,
61 c.y+b.height));u=this.constrainOffset(a,u);u!=f&&(this.adjustScrollIfNecessary(a,c,d,u),this.select?a.moveCaretPosition(u):a.setCaretPosition(u))}catch(D){if(!y(D,javax.swing.text.BadLocationException))throw D;}else c.y=this.constrainY(a,d+l,b.height);null!=h&&g.setMagicCaretPosition(h);a.scrollRectToVisible(c)}},"java.awt.event.ActionEvent");d(c$,"constrainY",function(a,b,c){0>b?b=0:b+c>a.getHeight()&&(b=Math.max(0,a.getHeight()-c));return b},"javax.swing.text.JTextComponent,~N,~N");d(c$,"constrainOffset",
62 function(a,b){var c=a.getDocument();0!=b&&b>c.getLength()&&(b=c.getLength());0>b&&(b=0);return b},"javax.swing.text.JTextComponent,~N");d(c$,"adjustScrollIfNecessary",function(a,b,c,f){try{var l=a.modelToView(f);if(l.y<b.y||l.y>b.y+b.height||l.y+l.height>b.y+b.height){var d;d=l.y<b.y?l.y:l.y+l.height-b.height;if(-1==this.direction&&d<c||1==this.direction&&d>c)b.y=d}}catch(g){if(!y(g,javax.swing.text.BadLocationException))throw g;}},"javax.swing.text.JTextComponent,java.awt.Rectangle,~N,~N");c$=z();
63 A(self.c$);c$=s(function(){this.left=this.select=!1;r(this,arguments)},javax.swing.text.DefaultEditorKit,"PageAction",javax.swing.text.TextAction);m(c$,function(a,b,c){t(this,javax.swing.text.DefaultEditorKit.PageAction,[a]);this.select=c;this.left=b},"~S,~B,~B");e(c$,"actionPerformed",function(a){a=this.getTextComponent(a);if(null!=a){var b,c=new java.awt.Rectangle;a.computeVisibleRect(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(new java.awt.Point(c.x,
64 c.y)):a.viewToModel(new java.awt.Point(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(b):a.setCaretPosition(b))}},"java.awt.event.ActionEvent");c$=z();A(self.c$);c$=s(function(){this.select=!1;this.direction=0;r(this,arguments)},javax.swing.text.DefaultEditorKit,"NextVisualPositionAction",javax.swing.text.TextAction);m(c$,function(a,b,c){t(this,javax.swing.text.DefaultEditorKit.NextVisualPositionAction,[a]);this.select=
65 b;this.direction=c},"~S,~B,~N");e(c$,"actionPerformed",function(a){a=this.getTextComponent(a);if(null!=a){var b=a.getCaret(),c=v(b,javax.swing.text.DefaultCaret)?b:null,f=b.getDot(),l=Array(1),d=b.getMagicCaretPosition();try{if(null==d&&(1==this.direction||5==this.direction))var g=null!=c?a.getUI().modelToView(a,f,c.getDotBias()):a.modelToView(f),d=new java.awt.Point(g.x,g.y);g=a.getNavigationFilter();f=null!=g?g.getNextVisualPositionFrom(a,f,null!=c?c.getDotBias():javax.swing.text.Position.Bias.Forward,
66 this.direction,l):a.getUI().getNextVisualPositionFrom(a,f,null!=c?c.getDotBias():javax.swing.text.Position.Bias.Forward,this.direction,l);null==l[0]&&(l[0]=javax.swing.text.Position.Bias.Forward);null!=c?this.select?c.moveDot(f,l[0]):c.setDot(f,l[0]):this.select?b.moveDot(f):b.setDot(f);null!=d&&(1==this.direction||5==this.direction)&&a.getCaret().setMagicCaretPosition(d)}catch(h){if(!y(h,javax.swing.text.BadLocationException))throw h;}}},"java.awt.event.ActionEvent");c$=z();A(self.c$);c$=s(function(){this.select=
67 !1;r(this,arguments)},javax.swing.text.DefaultEditorKit,"BeginWordAction",javax.swing.text.TextAction);m(c$,function(a,b){t(this,javax.swing.text.DefaultEditorKit.BeginWordAction,[a]);this.select=b},"~S,~B");e(c$,"actionPerformed",function(a){a=this.getTextComponent(a);if(null!=a)try{var b=a.getCaretPosition(),c=javax.swing.text.Utilities.getWordStart(a,b);this.select?a.moveCaretPosition(c):a.setCaretPosition(c)}catch(f){if(y(f,javax.swing.text.BadLocationException))javax.swing.UIManager.getLookAndFeel().provideErrorFeedback(a);
68 else throw f;}},"java.awt.event.ActionEvent");c$=z();A(self.c$);c$=s(function(){this.select=!1;r(this,arguments)},javax.swing.text.DefaultEditorKit,"EndWordAction",javax.swing.text.TextAction);m(c$,function(a,b){t(this,javax.swing.text.DefaultEditorKit.EndWordAction,[a]);this.select=b},"~S,~B");e(c$,"actionPerformed",function(a){a=this.getTextComponent(a);if(null!=a)try{var b=a.getCaretPosition(),c=javax.swing.text.Utilities.getWordEnd(a,b);this.select?a.moveCaretPosition(c):a.setCaretPosition(c)}catch(f){if(y(f,
69 javax.swing.text.BadLocationException))javax.swing.UIManager.getLookAndFeel().provideErrorFeedback(a);else throw f;}},"java.awt.event.ActionEvent");c$=z();A(self.c$);c$=s(function(){this.select=!1;r(this,arguments)},javax.swing.text.DefaultEditorKit,"PreviousWordAction",javax.swing.text.TextAction);m(c$,function(a,b){t(this,javax.swing.text.DefaultEditorKit.PreviousWordAction,[a]);this.select=b},"~S,~B");e(c$,"actionPerformed",function(a){a=this.getTextComponent(a);if(null!=a){var b=a.getCaretPosition(),
70 c=!1;try{var f=javax.swing.text.Utilities.getParagraphElement(a,b),b=javax.swing.text.Utilities.getPreviousWord(a,b);b<f.getStartOffset()&&(b=javax.swing.text.Utilities.getParagraphElement(a,b).getEndOffset()-1)}catch(l){if(y(l,javax.swing.text.BadLocationException))0!=b?b=0:c=!0;else throw l;}c?javax.swing.UIManager.getLookAndFeel().provideErrorFeedback(a):this.select?a.moveCaretPosition(b):a.setCaretPosition(b)}},"java.awt.event.ActionEvent");c$=z();A(self.c$);c$=s(function(){this.select=!1;r(this,
71 arguments)},javax.swing.text.DefaultEditorKit,"NextWordAction",javax.swing.text.TextAction);m(c$,function(a,b){t(this,javax.swing.text.DefaultEditorKit.NextWordAction,[a]);this.select=b},"~S,~B");e(c$,"actionPerformed",function(a){a=this.getTextComponent(a);if(null!=a){var b=a.getCaretPosition(),c=!1,f=b,l=javax.swing.text.Utilities.getParagraphElement(a,b);try{b=javax.swing.text.Utilities.getNextWord(a,b),b>=l.getEndOffset()&&f!=l.getEndOffset()-1&&(b=l.getEndOffset()-1)}catch(d){if(y(d,javax.swing.text.BadLocationException)){var g=
72 a.getDocument().getLength();b!=g?b=f!=l.getEndOffset()-1?l.getEndOffset()-1:g:c=!0}else throw d;}c?javax.swing.UIManager.getLookAndFeel().provideErrorFeedback(a):this.select?a.moveCaretPosition(b):a.setCaretPosition(b)}},"java.awt.event.ActionEvent");c$=z();A(self.c$);c$=s(function(){this.select=!1;r(this,arguments)},javax.swing.text.DefaultEditorKit,"BeginLineAction",javax.swing.text.TextAction);m(c$,function(a,b){t(this,javax.swing.text.DefaultEditorKit.BeginLineAction,[a]);this.select=b},"~S,~B");
73 e(c$,"actionPerformed",function(a){a=this.getTextComponent(a);if(null!=a)try{var b=a.getCaretPosition(),c=javax.swing.text.Utilities.getRowStart(a,b);this.select?a.moveCaretPosition(c):a.setCaretPosition(c)}catch(f){if(y(f,javax.swing.text.BadLocationException))javax.swing.UIManager.getLookAndFeel().provideErrorFeedback(a);else throw f;}},"java.awt.event.ActionEvent");c$=z();A(self.c$);c$=s(function(){this.select=!1;r(this,arguments)},javax.swing.text.DefaultEditorKit,"EndLineAction",javax.swing.text.TextAction);
74 m(c$,function(a,b){t(this,javax.swing.text.DefaultEditorKit.EndLineAction,[a]);this.select=b},"~S,~B");e(c$,"actionPerformed",function(a){a=this.getTextComponent(a);if(null!=a)try{var b=a.getCaretPosition(),c=javax.swing.text.Utilities.getRowEnd(a,b);this.select?a.moveCaretPosition(c):a.setCaretPosition(c)}catch(f){if(y(f,javax.swing.text.BadLocationException))javax.swing.UIManager.getLookAndFeel().provideErrorFeedback(a);else throw f;}},"java.awt.event.ActionEvent");c$=z();A(self.c$);c$=s(function(){this.select=
75 !1;r(this,arguments)},javax.swing.text.DefaultEditorKit,"BeginParagraphAction",javax.swing.text.TextAction);m(c$,function(a,b){t(this,javax.swing.text.DefaultEditorKit.BeginParagraphAction,[a]);this.select=b},"~S,~B");e(c$,"actionPerformed",function(a){a=this.getTextComponent(a);if(null!=a){var b=a.getCaretPosition(),b=javax.swing.text.Utilities.getParagraphElement(a,b).getStartOffset();this.select?a.moveCaretPosition(b):a.setCaretPosition(b)}},"java.awt.event.ActionEvent");c$=z();A(self.c$);c$=s(function(){this.select=
76 !1;r(this,arguments)},javax.swing.text.DefaultEditorKit,"EndParagraphAction",javax.swing.text.TextAction);m(c$,function(a,b){t(this,javax.swing.text.DefaultEditorKit.EndParagraphAction,[a]);this.select=b},"~S,~B");e(c$,"actionPerformed",function(a){a=this.getTextComponent(a);if(null!=a){var b=a.getCaretPosition(),b=javax.swing.text.Utilities.getParagraphElement(a,b),b=Math.min(a.getDocument().getLength(),b.getEndOffset());this.select?a.moveCaretPosition(b):a.setCaretPosition(b)}},"java.awt.event.ActionEvent");
77 c$=z();A(self.c$);c$=s(function(){this.select=!1;r(this,arguments)},javax.swing.text.DefaultEditorKit,"BeginAction",javax.swing.text.TextAction);m(c$,function(a,b){t(this,javax.swing.text.DefaultEditorKit.BeginAction,[a]);this.select=b},"~S,~B");e(c$,"actionPerformed",function(a){a=this.getTextComponent(a);null!=a&&(this.select?a.moveCaretPosition(0):a.setCaretPosition(0))},"java.awt.event.ActionEvent");c$=z();A(self.c$);c$=s(function(){this.select=!1;r(this,arguments)},javax.swing.text.DefaultEditorKit,
78 "EndAction",javax.swing.text.TextAction);m(c$,function(a,b){t(this,javax.swing.text.DefaultEditorKit.EndAction,[a]);this.select=b},"~S,~B");e(c$,"actionPerformed",function(a){a=this.getTextComponent(a);if(null!=a){var b=a.getDocument().getLength();this.select?a.moveCaretPosition(b):a.setCaretPosition(b)}},"java.awt.event.ActionEvent");c$=z();A(self.c$);c$=s(function(){this.end=this.start=null;r(this,arguments)},javax.swing.text.DefaultEditorKit,"SelectWordAction",javax.swing.text.TextAction);m(c$,
79 function(){t(this,javax.swing.text.DefaultEditorKit.SelectWordAction,["select-word"]);this.start=new javax.swing.text.DefaultEditorKit.BeginWordAction("pigdog",!1);this.end=new javax.swing.text.DefaultEditorKit.EndWordAction("pigdog",!0)});d(c$,"actionPerformed",function(a){this.start.actionPerformed(a);this.end.actionPerformed(a)},"java.awt.event.ActionEvent");c$=z();A(self.c$);c$=s(function(){this.end=this.start=null;r(this,arguments)},javax.swing.text.DefaultEditorKit,"SelectLineAction",javax.swing.text.TextAction);
80 m(c$,function(){t(this,javax.swing.text.DefaultEditorKit.SelectLineAction,["select-line"]);this.start=new javax.swing.text.DefaultEditorKit.BeginLineAction("pigdog",!1);this.end=new javax.swing.text.DefaultEditorKit.EndLineAction("pigdog",!0)});d(c$,"actionPerformed",function(a){this.start.actionPerformed(a);this.end.actionPerformed(a)},"java.awt.event.ActionEvent");c$=z();A(self.c$);c$=s(function(){this.end=this.start=null;r(this,arguments)},javax.swing.text.DefaultEditorKit,"SelectParagraphAction",
81 javax.swing.text.TextAction);m(c$,function(){t(this,javax.swing.text.DefaultEditorKit.SelectParagraphAction,["select-paragraph"]);this.start=new javax.swing.text.DefaultEditorKit.BeginParagraphAction("pigdog",!1);this.end=new javax.swing.text.DefaultEditorKit.EndParagraphAction("pigdog",!0)});d(c$,"actionPerformed",function(a){this.start.actionPerformed(a);this.end.actionPerformed(a)},"java.awt.event.ActionEvent");c$=z();A(self.c$);c$=B(javax.swing.text.DefaultEditorKit,"SelectAllAction",javax.swing.text.TextAction);
82 m(c$,function(){t(this,javax.swing.text.DefaultEditorKit.SelectAllAction,["select-all"])});e(c$,"actionPerformed",function(a){a=this.getTextComponent(a);if(null!=a){var b=a.getDocument();a.setCaretPosition(0);a.moveCaretPosition(b.getLength())}},"java.awt.event.ActionEvent");c$=z();A(self.c$);c$=B(javax.swing.text.DefaultEditorKit,"UnselectAction",javax.swing.text.TextAction);m(c$,function(){t(this,javax.swing.text.DefaultEditorKit.UnselectAction,["unselect"])});e(c$,"actionPerformed",function(a){a=
83 this.getTextComponent(a);null!=a&&a.setCaretPosition(a.getCaretPosition())},"java.awt.event.ActionEvent");c$=z();A(self.c$);c$=B(javax.swing.text.DefaultEditorKit,"ToggleComponentOrientationAction",javax.swing.text.TextAction);m(c$,function(){t(this,javax.swing.text.DefaultEditorKit.ToggleComponentOrientationAction,["toggle-componentOrientation"])});e(c$,"actionPerformed",function(a){a=this.getTextComponent(a);if(null!=a){var b;b=a.getComponentOrientation()===java.awt.ComponentOrientation.RIGHT_TO_LEFT?
84 java.awt.ComponentOrientation.LEFT_TO_RIGHT:java.awt.ComponentOrientation.RIGHT_TO_LEFT;a.setComponentOrientation(b);a.repaint()}},"java.awt.event.ActionEvent");c$=z();G(c$,"EndOfLineStringProperty","__EndOfLine__","insertContentAction","insert-content","insertBreakAction","insert-break","insertTabAction","insert-tab","deletePrevCharAction","delete-previous","deleteNextCharAction","delete-next","deleteNextWordAction","delete-next-word","deletePrevWordAction","delete-previous-word","readOnlyAction",
85 "set-read-only","writableAction","set-writable","cutAction","cut-to-clipboard","copyAction","copy-to-clipboard","pasteAction","paste-from-clipboard","beepAction","beep","pageUpAction","page-up","pageDownAction","page-down","selectionPageUpAction","selection-page-up","selectionPageDownAction","selection-page-down","selectionPageLeftAction","selection-page-left","selectionPageRightAction","selection-page-right","forwardAction","caret-forward","backwardAction","caret-backward","selectionForwardAction",
86 "selection-forward","selectionBackwardAction","selection-backward","upAction","caret-up","downAction","caret-down","selectionUpAction","selection-up","selectionDownAction","selection-down","beginWordAction","caret-begin-word","endWordAction","caret-end-word","selectionBeginWordAction","selection-begin-word","selectionEndWordAction","selection-end-word","previousWordAction","caret-previous-word","nextWordAction","caret-next-word","selectionPreviousWordAction","selection-previous-word","selectionNextWordAction",
87 "selection-next-word","beginLineAction","caret-begin-line","endLineAction","caret-end-line","selectionBeginLineAction","selection-begin-line","selectionEndLineAction","selection-end-line","beginParagraphAction","caret-begin-paragraph","endParagraphAction","caret-end-paragraph","selectionBeginParagraphAction","selection-begin-paragraph","selectionEndParagraphAction","selection-end-paragraph","beginAction","caret-begin","endAction","caret-end","selectionBeginAction","selection-begin","selectionEndAction",
88 "selection-end","selectWordAction","select-word","selectLineAction","select-line","selectParagraphAction","select-paragraph","selectAllAction","select-all","unselectAction","unselect","toggleComponentOrientationAction","toggle-componentOrientation","defaultKeyTypedAction","default-typed");c$.defaultActions=c$.prototype.defaultActions=E(-1,[new javax.swing.text.DefaultEditorKit.InsertContentAction,new javax.swing.text.DefaultEditorKit.DeletePrevCharAction,new javax.swing.text.DefaultEditorKit.DeleteNextCharAction,
89 new javax.swing.text.DefaultEditorKit.ReadOnlyAction,new javax.swing.text.DefaultEditorKit.WritableAction,new javax.swing.text.DefaultEditorKit.CutAction,new javax.swing.text.DefaultEditorKit.CopyAction,new javax.swing.text.DefaultEditorKit.PasteAction,new javax.swing.text.DefaultEditorKit.VerticalPageAction("page-up",-1,!1),new javax.swing.text.DefaultEditorKit.VerticalPageAction("page-down",1,!1),new javax.swing.text.DefaultEditorKit.VerticalPageAction("selection-page-up",-1,!0),new javax.swing.text.DefaultEditorKit.VerticalPageAction("selection-page-down",
90 1,!0),new javax.swing.text.DefaultEditorKit.PageAction("selection-page-left",!0,!0),new javax.swing.text.DefaultEditorKit.PageAction("selection-page-right",!1,!0),new javax.swing.text.DefaultEditorKit.InsertBreakAction,new javax.swing.text.DefaultEditorKit.BeepAction,new javax.swing.text.DefaultEditorKit.NextVisualPositionAction("caret-forward",!1,3),new javax.swing.text.DefaultEditorKit.NextVisualPositionAction("caret-backward",!1,7),new javax.swing.text.DefaultEditorKit.NextVisualPositionAction("selection-forward",
91 !0,3),new javax.swing.text.DefaultEditorKit.NextVisualPositionAction("selection-backward",!0,7),new javax.swing.text.DefaultEditorKit.NextVisualPositionAction("caret-up",!1,1),new javax.swing.text.DefaultEditorKit.NextVisualPositionAction("caret-down",!1,5),new javax.swing.text.DefaultEditorKit.NextVisualPositionAction("selection-up",!0,1),new javax.swing.text.DefaultEditorKit.NextVisualPositionAction("selection-down",!0,5),new javax.swing.text.DefaultEditorKit.BeginWordAction("caret-begin-word",
92 !1),new javax.swing.text.DefaultEditorKit.EndWordAction("caret-end-word",!1),new javax.swing.text.DefaultEditorKit.BeginWordAction("selection-begin-word",!0),new javax.swing.text.DefaultEditorKit.EndWordAction("selection-end-word",!0),new javax.swing.text.DefaultEditorKit.PreviousWordAction("caret-previous-word",!1),new javax.swing.text.DefaultEditorKit.NextWordAction("caret-next-word",!1),new javax.swing.text.DefaultEditorKit.PreviousWordAction("selection-previous-word",!0),new javax.swing.text.DefaultEditorKit.NextWordAction("selection-next-word",
93 !0),new javax.swing.text.DefaultEditorKit.BeginLineAction("caret-begin-line",!1),new javax.swing.text.DefaultEditorKit.EndLineAction("caret-end-line",!1),new javax.swing.text.DefaultEditorKit.BeginLineAction("selection-begin-line",!0),new javax.swing.text.DefaultEditorKit.EndLineAction("selection-end-line",!0),new javax.swing.text.DefaultEditorKit.BeginParagraphAction("caret-begin-paragraph",!1),new javax.swing.text.DefaultEditorKit.EndParagraphAction("caret-end-paragraph",!1),new javax.swing.text.DefaultEditorKit.BeginParagraphAction("selection-begin-paragraph",
94 !0),new javax.swing.text.DefaultEditorKit.EndParagraphAction("selection-end-paragraph",!0),new javax.swing.text.DefaultEditorKit.BeginAction("caret-begin",!1),new javax.swing.text.DefaultEditorKit.EndAction("caret-end",!1),new javax.swing.text.DefaultEditorKit.BeginAction("selection-begin",!0),new javax.swing.text.DefaultEditorKit.EndAction("selection-end",!0),new javax.swing.text.DefaultEditorKit.DefaultKeyTypedAction,new javax.swing.text.DefaultEditorKit.InsertTabAction,new javax.swing.text.DefaultEditorKit.SelectWordAction,
95 new javax.swing.text.DefaultEditorKit.SelectLineAction,new javax.swing.text.DefaultEditorKit.SelectParagraphAction,new javax.swing.text.DefaultEditorKit.SelectAllAction,new javax.swing.text.DefaultEditorKit.UnselectAction,new javax.swing.text.DefaultEditorKit.ToggleComponentOrientationAction])});p("javax.swing.text");c$=B(javax.swing.text,"EditorKit",null,Cloneable);m(c$,function(){});d(c$,"clone",function(){var a;try{a=K(this,javax.swing.text.EditorKit,"clone",[])}catch(b){if(y(b,CloneNotSupportedException))a=
96 null;else throw b;}return a});d(c$,"install",function(){},"javax.swing.JEditorPane");d(c$,"deinstall",function(){},"javax.swing.JEditorPane");p("javax.swing.text");q(["javax.swing.AbstractAction"],"javax.swing.text.TextAction",["java.util.Hashtable","javax.swing.text.JTextComponent"],function(){c$=B(javax.swing.text,"TextAction",javax.swing.AbstractAction);d(c$,"getTextComponent",function(a){return null!=a&&(a=a.getSource(),v(a,javax.swing.text.JTextComponent))?a:this.getFocusedComponent()},"java.awt.event.ActionEvent");
97 c$.augmentList=d(c$,"augmentList",function(a,b){var c=new java.util.Hashtable;if(null!=a)for(var f=0;f<a.length;f++){var l=a[f],d=l.getValue("Name");c.put(null!=d?d:"",l)}for(f=0;f<b.length;f++)l=b[f],d=l.getValue("Name"),c.put(null!=d?d:"",l);f=Array(c.size());l=0;for(c=c.elements();c.hasMoreElements();)f[l++]=c.nextElement();return f},"~A,~A");d(c$,"getFocusedComponent",function(){return javax.swing.text.JTextComponent.getFocusedComponent()})});p("javax.swing.text");q(["java.lang.Exception"],"javax.swing.text.BadLocationException",
98 null,function(){c$=s(function(){this.offs=0;r(this,arguments)},javax.swing.text,"BadLocationException",Exception);m(c$,function(a,b){t(this,javax.swing.text.BadLocationException,[a]);this.offs=b},"~S,~N");d(c$,"offsetRequested",function(){return this.offs})});p("javax.swing.text");q("java.awt.Rectangle java.awt.event.ActionListener $.FocusListener $.MouseListener $.MouseMotionListener java.beans.PropertyChangeListener javax.swing.event.DocumentListener javax.swing.text.Caret $.NavigationFilter javax.swing.event.EventListenerList".split(" "),
99 "javax.swing.text.DefaultCaret","java.lang.Boolean $.IllegalArgumentException java.awt.Point java.awt.event.ActionEvent javax.swing.SwingUtilities javax.swing.event.ChangeEvent $.ChangeListener javax.swing.text.AbstractDocument javax.swing.text.AbstractDocument.UndoRedoDocumentEvent javax.swing.text.DefaultEditorKit $.DefaultHighlighter $.Document $.Position $.Segment $.StateInvariantError".split(" "),function(){c$=s(function(){this.component=this.changeEvent=this.listenerList=null;this.updatePolicy=
100 0;this.active=this.visible=!1;this.mark=this.dot=0;this.selectionTag=null;this.selectionVisible=!1;this.markBias=this.dotBias=this.magicCaretPosition=null;this.markLTR=this.dotLTR=!1;this.filterBypass=this.flagYPoints=this.flagXPoints=this.handler=null;this.shouldHandleRelease=this.forceCaretPositionChange=this.ownsSelection=!1;this.selectedWordEvent=null;this.aspectRatio=this.caretWidth=-1;H("javax.swing.text.DefaultCaret.SafeScroller")||javax.swing.text.DefaultCaret.$DefaultCaret$SafeScroller$();
101 H("javax.swing.text.DefaultCaret.Handler")||javax.swing.text.DefaultCaret.$DefaultCaret$Handler$();H("javax.swing.text.DefaultCaret.DefaultFilterBypass")||javax.swing.text.DefaultCaret.$DefaultCaret$DefaultFilterBypass$();r(this,arguments)},javax.swing.text,"DefaultCaret",java.awt.Rectangle,[javax.swing.text.Caret,java.awt.event.FocusListener,java.awt.event.MouseListener,java.awt.event.MouseMotionListener]);J(c$,function(){this.listenerList=new javax.swing.event.EventListenerList;this.handler=C(javax.swing.text.DefaultCaret.Handler,
102 this,null);this.flagXPoints=w(3,0);this.flagYPoints=w(3,0)});m(c$,function(){t(this,javax.swing.text.DefaultCaret,[])});d(c$,"setUpdatePolicy",function(a){this.updatePolicy=a},"~N");d(c$,"getUpdatePolicy",function(){return this.updatePolicy});d(c$,"getComponent",function(){return this.component});d(c$,"repaint",function(){null!=this.component&&this.component.repaint(this.x,this.y,this.width,this.height)});d(c$,"damage",function(a){if(null!=a){var b=this.getCaretWidth(a.height);this.x=a.x-4-(b>>1);
103 this.y=a.y;this.width=9+b;this.height=a.height;this.repaint()}},"java.awt.Rectangle");d(c$,"adjustVisibility",function(a){null!=this.component&&(javax.swing.SwingUtilities.isEventDispatchThread()?this.component.scrollRectToVisible(a):javax.swing.SwingUtilities.invokeLater(C(javax.swing.text.DefaultCaret.SafeScroller,this,null,a)))},"java.awt.Rectangle");d(c$,"getSelectionPainter",function(){return javax.swing.text.DefaultHighlighter.DefaultPainter});d(c$,"positionCaret",function(a){var b=new java.awt.Point(a.getX(),
104 a.getY());a=Array(1);b=this.component.getUI().viewToModel(this.component,b,a);null==a[0]&&(a[0]=javax.swing.text.Position.Bias.Forward);0<=b&&this.setDot(b,a[0])},"java.awt.event.MouseEvent");d(c$,"moveCaret",function(a){var b=new java.awt.Point(a.getX(),a.getY());a=Array(1);b=this.component.getUI().viewToModel(this.component,b,a);null==a[0]&&(a[0]=javax.swing.text.Position.Bias.Forward);0<=b&&this.moveDot(b,a[0])},"java.awt.event.MouseEvent");e(c$,"focusGained",function(){this.component.isEnabled()&&
105 (this.component.isEditable()&&this.setVisible(!0),this.setSelectionVisible(!0))},"java.awt.event.FocusEvent");e(c$,"focusLost",function(a){this.setVisible(!1);this.setSelectionVisible(this.ownsSelection||a.isTemporary())},"java.awt.event.FocusEvent");e(c$,"mouseClicked",function(a){var b=a.getClickCount();a.isConsumed()||(javax.swing.SwingUtilities.isLeftMouseButton(a)?1==b&&(this.selectedWordEvent=null):javax.swing.SwingUtilities.isMiddleMouseButton(a))},"java.awt.event.MouseEvent");e(c$,"mousePressed",
106 function(a){javax.swing.SwingUtilities.isLeftMouseButton(a)&&(a.isConsumed()?this.shouldHandleRelease=!0:(this.shouldHandleRelease=!1,this.adjustCaretAndFocus(a)))},"java.awt.event.MouseEvent");d(c$,"adjustCaretAndFocus",function(a){this.adjustCaret(a);this.adjustFocus(!1)},"java.awt.event.MouseEvent");d(c$,"adjustCaret",function(a){0!=(a.getModifiers()&1)&&-1!=this.getDot()?this.moveCaret(a):this.positionCaret(a)},"java.awt.event.MouseEvent");d(c$,"adjustFocus",function(a){null!=this.component&&
107 (this.component.isEnabled()&&this.component.isRequestFocusEnabled())&&(a?this.component.requestFocusInWindow():this.component.requestFocus())},"~B");e(c$,"mouseReleased",function(a){!a.isConsumed()&&(this.shouldHandleRelease&&javax.swing.SwingUtilities.isLeftMouseButton(a))&&this.adjustCaretAndFocus(a)},"java.awt.event.MouseEvent");e(c$,"mouseEntered",function(){},"java.awt.event.MouseEvent");e(c$,"mouseExited",function(){},"java.awt.event.MouseEvent");e(c$,"mouseDragged",function(a){!a.isConsumed()&&
108 javax.swing.SwingUtilities.isLeftMouseButton(a)&&this.moveCaret(a)},"java.awt.event.MouseEvent");e(c$,"mouseMoved",function(){},"java.awt.event.MouseEvent");e(c$,"paint",function(a){if(this.isVisible())try{var b=this.component.getUI().modelToView(this.component,this.dot,this.dotBias);if(!(null==b||0==b.width&&0==b.height)){if(0<this.width&&0<this.height&&!this._contains(b.x,b.y,b.width,b.height)){var c=a.getClipBounds();null!=c&&!c.contains(this)&&this.repaint();this.damage(b)}a.setColor(this.component.getCaretColor());
109 var f=this.getCaretWidth(b.height);b.x-=f>>1;a.fillRect(b.x,b.y,f,b.height);var l=this.component.getDocument();if(v(l,javax.swing.text.AbstractDocument)){var d=l.getBidiRootElement();null!=d&&1<d.getElementCount()&&(this.flagXPoints[0]=b.x+(this.dotLTR?f:0),this.flagYPoints[0]=b.y,this.flagXPoints[1]=this.flagXPoints[0],this.flagYPoints[1]=this.flagYPoints[0]+4,this.flagXPoints[2]=this.flagXPoints[0]+(this.dotLTR?4:-4),this.flagYPoints[2]=this.flagYPoints[0],a.fillPolygon(this.flagXPoints,this.flagYPoints,
110 3))}}}catch(g){if(!y(g,javax.swing.text.BadLocationException))throw g;}},"java.awt.Graphics");e(c$,"install",function(a){this.component=a;var b=a.getDocument();this.dot=this.mark=0;this.dotLTR=this.markLTR=!0;this.dotBias=this.markBias=javax.swing.text.Position.Bias.Forward;null!=b&&b.addDocumentListener(this.handler);a.addPropertyChangeListener(this.handler);a.addFocusListener(this);a.addMouseListener(this);a.addMouseMotionListener(this);this.component.hasFocus()&&this.focusGained(null);b=a.getClientProperty("caretAspectRatio");
111 this.aspectRatio=null!=b?b.floatValue():-1;a=a.getClientProperty("caretWidth");this.caretWidth=null!=a?a.intValue():-1},"javax.swing.text.JTextComponent");e(c$,"deinstall",function(a){a.removeMouseListener(this);a.removeMouseMotionListener(this);a.removeFocusListener(this);a.removePropertyChangeListener(this.handler);a=a.getDocument();null!=a&&a.removeDocumentListener(this.handler);this.component=null},"javax.swing.text.JTextComponent");e(c$,"addChangeListener",function(a){this.listenerList.add(javax.swing.event.ChangeListener,
112 a)},"javax.swing.event.ChangeListener");e(c$,"removeChangeListener",function(a){this.listenerList.remove(javax.swing.event.ChangeListener,a)},"javax.swing.event.ChangeListener");d(c$,"getChangeListeners",function(){return this.listenerList.getListeners(javax.swing.event.ChangeListener)});d(c$,"fireStateChanged",function(){for(var a=this.listenerList.getListenerList(),b=a.length-2;0<=b;b-=2)a[b]===javax.swing.event.ChangeListener&&(null==this.changeEvent&&(this.changeEvent=new javax.swing.event.ChangeEvent(this)),
113 a[b+1].stateChanged(this.changeEvent))});d(c$,"getListeners",function(a){return this.listenerList.getListeners(a)},"Class");e(c$,"setSelectionVisible",function(a){if(a!=this.selectionVisible)if(this.selectionVisible=a){if(a=this.component.getHighlighter(),this.dot!=this.mark&&null!=a&&null==this.selectionTag){var b=Math.min(this.dot,this.mark),c=Math.max(this.dot,this.mark),f=this.getSelectionPainter();try{this.selectionTag=a.addHighlight(b,c,f)}catch(l){if(y(l,javax.swing.text.BadLocationException))this.selectionTag=
114 null;else throw l;}}}else null!=this.selectionTag&&(a=this.component.getHighlighter(),a.removeHighlight(this.selectionTag),this.selectionTag=null)},"~B");e(c$,"isSelectionVisible",function(){return this.selectionVisible});d(c$,"isActive",function(){return this.active});e(c$,"isVisible",function(){return this.visible});e(c$,"setVisible",function(a){if(null!=this.component){this.active=a;var b=this.component.getUI();if(this.visible!=a){this.visible=a;try{var c=b.modelToView(this.component,this.dot,
115 this.dotBias);this.damage(c)}catch(f){if(!y(f,javax.swing.text.BadLocationException))throw f;}}}},"~B");e(c$,"setBlinkRate",function(){},"~N");e(c$,"getBlinkRate",function(){return 0});e(c$,"getDot",function(){return this.dot});e(c$,"getMark",function(){return this.mark});d(c$,"setDot",function(a){this.setDot(a,javax.swing.text.Position.Bias.Forward)},"~N");d(c$,"moveDot",function(a){this.moveDot(a,javax.swing.text.Position.Bias.Forward)},"~N");d(c$,"moveDot",function(a,b){if(null==b)throw new IllegalArgumentException("null bias");
116 if(this.component.isEnabled()){if(a!=this.dot){var c=this.component.getNavigationFilter();null!=c?c.moveDot(this.getFilterBypass(),a,b):this.handleMoveDot(a,b)}}else this.setDot(a,b)},"~N,javax.swing.text.Position.Bias");d(c$,"handleMoveDot",function(a,b){this.changeCaretPosition(a,b);if(this.selectionVisible){var c=this.component.getHighlighter();if(null!=c){var f=Math.min(a,this.mark),l=Math.max(a,this.mark);if(f==l)null!=this.selectionTag&&(c.removeHighlight(this.selectionTag),this.selectionTag=
117 null);else try{if(null!=this.selectionTag)c.changeHighlight(this.selectionTag,f,l);else{var d=this.getSelectionPainter();this.selectionTag=c.addHighlight(f,l,d)}}catch(g){if(y(g,javax.swing.text.BadLocationException))throw new javax.swing.text.StateInvariantError("Bad caret position");throw g;}}}},"~N,javax.swing.text.Position.Bias");d(c$,"setDot",function(a,b){if(null==b)throw new IllegalArgumentException("null bias");var c=this.component.getNavigationFilter();null!=c?c.setDot(this.getFilterBypass(),
118 a,b):this.handleSetDot(a,b)},"~N,javax.swing.text.Position.Bias");d(c$,"handleSetDot",function(a,b){var c=this.component.getDocument();null!=c&&(a=Math.min(a,c.getLength()));a=Math.max(a,0);0==a&&(b=javax.swing.text.Position.Bias.Forward);this.mark=a;(this.dot!=a||this.dotBias!==b||null!=this.selectionTag||this.forceCaretPositionChange)&&this.changeCaretPosition(a,b);this.markBias=this.dotBias;this.markLTR=this.dotLTR;c=this.component.getHighlighter();null!=c&&null!=this.selectionTag&&(c.removeHighlight(this.selectionTag),
119 this.selectionTag=null)},"~N,javax.swing.text.Position.Bias");d(c$,"getDotBias",function(){return this.dotBias});d(c$,"getMarkBias",function(){return this.markBias});d(c$,"isDotLeftToRight",function(){return this.dotLTR});d(c$,"isMarkLeftToRight",function(){return this.markLTR});d(c$,"isPositionLTR",function(a,b){var c=this.component.getDocument();return v(c,javax.swing.text.AbstractDocument)?(b===javax.swing.text.Position.Bias.Backward&&0>--a&&(a=0),c.isLeftToRight(a,a)):!0},"~N,javax.swing.text.Position.Bias");
120 d(c$,"guessBiasForOffset",function(a,b,c){c!=this.isPositionLTR(a,b)?b=javax.swing.text.Position.Bias.Backward:b!==javax.swing.text.Position.Bias.Backward&&c!=this.isPositionLTR(a,javax.swing.text.Position.Bias.Backward)&&(b=javax.swing.text.Position.Bias.Backward);if(b===javax.swing.text.Position.Bias.Backward&&0<a)try{var f=new javax.swing.text.Segment;this.component.getDocument().getText(a-1,1,f);0<f.count&&"\n"==f.array[f.offset]&&(b=javax.swing.text.Position.Bias.Forward)}catch(l){if(!y(l,javax.swing.text.BadLocationException))throw l;
121 }return b},"~N,javax.swing.text.Position.Bias,~B");d(c$,"changeCaretPosition",function(a,b){this.repaint();this.dot=a;this.dotBias=b;this.dotLTR=this.isPositionLTR(a,b);this.fireStateChanged();this.updateSystemSelection();this.setMagicCaretPosition(null);var c=(H("javax.swing.text.DefaultCaret$1")?0:javax.swing.text.DefaultCaret.$DefaultCaret$1$(),C(javax.swing.text.DefaultCaret$1,this,null));javax.swing.SwingUtilities.invokeLater(c)},"~N,javax.swing.text.Position.Bias");d(c$,"repaintNewCaret",function(){if(null!=
122 this.component){var a=this.component.getUI(),b=this.component.getDocument();if(null!=a&&null!=b){var c;try{c=a.modelToView(this.component,this.dot,this.dotBias)}catch(f){if(y(f,javax.swing.text.BadLocationException))c=null;else throw f;}null!=c&&(this.adjustVisibility(c),null==this.getMagicCaretPosition()&&this.setMagicCaretPosition(new java.awt.Point(c.x,c.y)));this.damage(c)}}});d(c$,"updateSystemSelection",function(){});d(c$,"ensureValidPosition",function(){var a=this.component.getDocument().getLength();
123 (this.dot>a||this.mark>a)&&this.handleSetDot(a,javax.swing.text.Position.Bias.Forward)});e(c$,"setMagicCaretPosition",function(a){this.magicCaretPosition=a},"java.awt.Point");e(c$,"getMagicCaretPosition",function(){return this.magicCaretPosition});e(c$,"equals",function(a){return this===a},"~O");e(c$,"toString",function(){var a="Dot=("+this.dot+", "+this.dotBias+")";return a+=" Mark=("+this.mark+", "+this.markBias+")"});d(c$,"getFilterBypass",function(){null==this.filterBypass&&(this.filterBypass=
124 C(javax.swing.text.DefaultCaret.DefaultFilterBypass,this,null));return this.filterBypass});d(c$,"_contains",function(a,b,c,f){var l=this.width,d=this.height;if(0>(l|d|c|f))return!1;var g=this.x,h=this.y;if(a<g||b<h)return!1;if(0<c)if(l+=g,c+=a,c<=a){if(l>=g||c>l)return!1}else{if(l>=g&&c>l)return!1}else if(g+l<a)return!1;if(0<f)if(d+=h,f+=b,f<=b){if(d>=h||f>d)return!1}else{if(d>=h&&f>d)return!1}else if(h+d<b)return!1;return!0},"~N,~N,~N,~N");d(c$,"getCaretWidth",function(a){return-1<this.aspectRatio?
125 I(this.aspectRatio*a)+1:-1<this.caretWidth?this.caretWidth:1},"~N");c$.$DefaultCaret$SafeScroller$=function(){A(self.c$);c$=s(function(){O(this,arguments);this.r=null;r(this,arguments)},javax.swing.text.DefaultCaret,"SafeScroller",null,Runnable);m(c$,function(a){this.r=a},"java.awt.Rectangle");e(c$,"run",function(){null!=this.b$["javax.swing.text.DefaultCaret"].component&&this.b$["javax.swing.text.DefaultCaret"].component.scrollRectToVisible(this.r)});c$=z()};c$.$DefaultCaret$Handler$=function(){A(self.c$);
126 c$=s(function(){O(this,arguments);r(this,arguments)},javax.swing.text.DefaultCaret,"Handler",null,[java.beans.PropertyChangeListener,javax.swing.event.DocumentListener,java.awt.event.ActionListener]);e(c$,"actionPerformed",function(){if((0==this.b$["javax.swing.text.DefaultCaret"].width||0==this.b$["javax.swing.text.DefaultCaret"].height)&&null!=this.b$["javax.swing.text.DefaultCaret"].component){var a=this.b$["javax.swing.text.DefaultCaret"].component.getUI();try{var b=a.modelToView(this.b$["javax.swing.text.DefaultCaret"].component,
127 this.b$["javax.swing.text.DefaultCaret"].dot,this.b$["javax.swing.text.DefaultCaret"].dotBias);null!=b&&(0!=b.width&&0!=b.height)&&this.b$["javax.swing.text.DefaultCaret"].damage(b)}catch(c){if(!y(c,javax.swing.text.BadLocationException))throw c;}}this.b$["javax.swing.text.DefaultCaret"].visible=!this.b$["javax.swing.text.DefaultCaret"].visible;this.b$["javax.swing.text.DefaultCaret"].repaint()},"java.awt.event.ActionEvent");e(c$,"insertUpdate",function(a){if(1==this.b$["javax.swing.text.DefaultCaret"].getUpdatePolicy()||
128 0==this.b$["javax.swing.text.DefaultCaret"].getUpdatePolicy()&&!javax.swing.SwingUtilities.isEventDispatchThread()){if((a.getOffset()<=this.b$["javax.swing.text.DefaultCaret"].dot||a.getOffset()<=this.b$["javax.swing.text.DefaultCaret"].mark)&&null!=this.b$["javax.swing.text.DefaultCaret"].selectionTag)try{this.b$["javax.swing.text.DefaultCaret"].component.getHighlighter().changeHighlight(this.b$["javax.swing.text.DefaultCaret"].selectionTag,Math.min(this.b$["javax.swing.text.DefaultCaret"].dot,this.b$["javax.swing.text.DefaultCaret"].mark),
129 Math.max(this.b$["javax.swing.text.DefaultCaret"].dot,this.b$["javax.swing.text.DefaultCaret"].mark))}catch(b){if(y(b,javax.swing.text.BadLocationException))b.printStackTrace();else throw b;}}else{var c=a.getOffset(),f=a.getLength(),l=this.b$["javax.swing.text.DefaultCaret"].dot,d=0;if(v(a,javax.swing.text.AbstractDocument.UndoRedoDocumentEvent))this.b$["javax.swing.text.DefaultCaret"].setDot(c+f);else if(l>=c&&(l+=f,d|=1),a=this.b$["javax.swing.text.DefaultCaret"].mark,a>=c&&(a+=f,d|=2),0!=d){f=
130 this.b$["javax.swing.text.DefaultCaret"].dotBias;if(this.b$["javax.swing.text.DefaultCaret"].dot==c){var c=this.b$["javax.swing.text.DefaultCaret"].component.getDocument(),g;try{var h=new javax.swing.text.Segment;c.getText(l-1,1,h);g=0<h.count&&"\n"==h.array[h.offset]}catch(j){if(y(j,javax.swing.text.BadLocationException))g=!1;else throw j;}f=g?javax.swing.text.Position.Bias.Forward:javax.swing.text.Position.Bias.Backward}a==l?this.b$["javax.swing.text.DefaultCaret"].setDot(l,f):(this.b$["javax.swing.text.DefaultCaret"].setDot(a,
131 this.b$["javax.swing.text.DefaultCaret"].markBias),this.b$["javax.swing.text.DefaultCaret"].getDot()==a&&this.b$["javax.swing.text.DefaultCaret"].moveDot(l,f));this.b$["javax.swing.text.DefaultCaret"].ensureValidPosition()}}},"javax.swing.event.DocumentEvent");e(c$,"removeUpdate",function(a){if(1==this.b$["javax.swing.text.DefaultCaret"].getUpdatePolicy()||0==this.b$["javax.swing.text.DefaultCaret"].getUpdatePolicy()&&!javax.swing.SwingUtilities.isEventDispatchThread()){var b=this.b$["javax.swing.text.DefaultCaret"].component.getDocument().getLength();
132 this.b$["javax.swing.text.DefaultCaret"].dot=Math.min(this.b$["javax.swing.text.DefaultCaret"].dot,b);this.b$["javax.swing.text.DefaultCaret"].mark=Math.min(this.b$["javax.swing.text.DefaultCaret"].mark,b);if((a.getOffset()<this.b$["javax.swing.text.DefaultCaret"].dot||a.getOffset()<this.b$["javax.swing.text.DefaultCaret"].mark)&&null!=this.b$["javax.swing.text.DefaultCaret"].selectionTag)try{this.b$["javax.swing.text.DefaultCaret"].component.getHighlighter().changeHighlight(this.b$["javax.swing.text.DefaultCaret"].selectionTag,
133 Math.min(this.b$["javax.swing.text.DefaultCaret"].dot,this.b$["javax.swing.text.DefaultCaret"].mark),Math.max(this.b$["javax.swing.text.DefaultCaret"].dot,this.b$["javax.swing.text.DefaultCaret"].mark))}catch(c){if(y(c,javax.swing.text.BadLocationException))c.printStackTrace();else throw c;}}else{var b=a.getOffset(),f=b+a.getLength(),l=this.b$["javax.swing.text.DefaultCaret"].dot,d=!1,g=this.b$["javax.swing.text.DefaultCaret"].mark,h=!1;if(v(a,javax.swing.text.AbstractDocument.UndoRedoDocumentEvent))this.b$["javax.swing.text.DefaultCaret"].setDot(b);
134 else{l>=f?(l-=f-b,l==f&&(d=!0)):l>=b&&(l=b,d=!0);g>=f?(g-=f-b,g==f&&(h=!0)):g>=b&&(g=b,h=!0);if(g==l){this.b$["javax.swing.text.DefaultCaret"].forceCaretPositionChange=!0;try{this.b$["javax.swing.text.DefaultCaret"].setDot(l,this.b$["javax.swing.text.DefaultCaret"].guessBiasForOffset(l,this.b$["javax.swing.text.DefaultCaret"].dotBias,this.b$["javax.swing.text.DefaultCaret"].dotLTR))}finally{this.b$["javax.swing.text.DefaultCaret"].forceCaretPositionChange=!1}}else a=this.b$["javax.swing.text.DefaultCaret"].dotBias,
135 b=this.b$["javax.swing.text.DefaultCaret"].markBias,d&&(a=this.b$["javax.swing.text.DefaultCaret"].guessBiasForOffset(l,a,this.b$["javax.swing.text.DefaultCaret"].dotLTR)),h&&(b=this.b$["javax.swing.text.DefaultCaret"].guessBiasForOffset(this.b$["javax.swing.text.DefaultCaret"].mark,b,this.b$["javax.swing.text.DefaultCaret"].markLTR)),this.b$["javax.swing.text.DefaultCaret"].setDot(g,b),this.b$["javax.swing.text.DefaultCaret"].getDot()==g&&this.b$["javax.swing.text.DefaultCaret"].moveDot(l,a);this.b$["javax.swing.text.DefaultCaret"].ensureValidPosition()}}},
136 "javax.swing.event.DocumentEvent");e(c$,"changedUpdate",function(a){1==this.b$["javax.swing.text.DefaultCaret"].getUpdatePolicy()||0==this.b$["javax.swing.text.DefaultCaret"].getUpdatePolicy()&&!javax.swing.SwingUtilities.isEventDispatchThread()||v(a,javax.swing.text.AbstractDocument.UndoRedoDocumentEvent)&&this.b$["javax.swing.text.DefaultCaret"].setDot(a.getOffset()+a.getLength())},"javax.swing.event.DocumentEvent");e(c$,"propertyChange",function(a){var b=a.getOldValue(),c=a.getNewValue();v(b,javax.swing.text.Document)||
137 v(c,javax.swing.text.Document)?(this.b$["javax.swing.text.DefaultCaret"].setDot(0),null!=b&&b.removeDocumentListener(this),null!=c&&c.addDocumentListener(this)):"enabled".equals(a.getPropertyName())?(a=a.getNewValue(),this.b$["javax.swing.text.DefaultCaret"].component.isFocusOwner()&&(a===Boolean.TRUE?(this.b$["javax.swing.text.DefaultCaret"].component.isEditable()&&this.b$["javax.swing.text.DefaultCaret"].setVisible(!0),this.b$["javax.swing.text.DefaultCaret"].setSelectionVisible(!0)):(this.b$["javax.swing.text.DefaultCaret"].setVisible(!1),
138 this.b$["javax.swing.text.DefaultCaret"].setSelectionVisible(!1)))):"caretWidth".equals(a.getPropertyName())?(a=a.getNewValue(),this.b$["javax.swing.text.DefaultCaret"].caretWidth=null!=a?a.intValue():-1,this.b$["javax.swing.text.DefaultCaret"].repaint()):"caretAspectRatio".equals(a.getPropertyName())&&(a=a.getNewValue(),this.b$["javax.swing.text.DefaultCaret"].aspectRatio=null!=a?a.floatValue():-1,this.b$["javax.swing.text.DefaultCaret"].repaint())},"java.beans.PropertyChangeEvent");c$=z()};c$.$DefaultCaret$DefaultFilterBypass$=
139 function(){A(self.c$);c$=s(function(){O(this,arguments);r(this,arguments)},javax.swing.text.DefaultCaret,"DefaultFilterBypass",javax.swing.text.NavigationFilter.FilterBypass);e(c$,"getCaret",function(){return this.b$["javax.swing.text.DefaultCaret"]});e(c$,"setDot",function(a,b){this.b$["javax.swing.text.DefaultCaret"].handleSetDot(a,b)},"~N,javax.swing.text.Position.Bias");e(c$,"moveDot",function(a,b){this.b$["javax.swing.text.DefaultCaret"].handleMoveDot(a,b)},"~N,javax.swing.text.Position.Bias");
140 c$=z()};c$.$DefaultCaret$1$=function(){A(self.c$);c$=L(javax.swing.text,"DefaultCaret$1",null,Runnable);e(c$,"run",function(){this.b$["javax.swing.text.DefaultCaret"].repaintNewCaret()});c$=z()};G(c$,"UPDATE_WHEN_ON_EDT",0,"NEVER_UPDATE",1,"ALWAYS_UPDATE",2,"$selectWord",null,"selectLine",null)});p("javax.swing.text");M(javax.swing.text,"Caret");p("javax.swing.text");c$=B(javax.swing.text,"NavigationFilter");d(c$,"setDot",function(a,b,c){a.setDot(b,c)},"javax.swing.text.NavigationFilter.FilterBypass,~N,javax.swing.text.Position.Bias");
141 d(c$,"moveDot",function(a,b,c){a.moveDot(b,c)},"javax.swing.text.NavigationFilter.FilterBypass,~N,javax.swing.text.Position.Bias");d(c$,"getNextVisualPositionFrom",function(a,b,c,f,l){return a.getUI().getNextVisualPositionFrom(a,b,c,f,l)},"javax.swing.text.JTextComponent,~N,javax.swing.text.Position.Bias,~N,~A");A(self.c$);c$=B(javax.swing.text.NavigationFilter,"FilterBypass");c$=z();p("javax.swing.text");q("javax.swing.event.DocumentEvent javax.swing.text.DocumentFilter $.Element $.JSMinimalAbstractDocument $.MutableAttributeSet javax.swing.tree.TreeNode javax.swing.undo.AbstractUndoableEdit $.CompoundEdit javax.swing.event.EventListenerList".split(" "),
142 "javax.swing.text.AbstractDocument","java.lang.Boolean java.util.Hashtable $.Vector javax.swing.UIManager javax.swing.event.DocumentEvent.ElementChange javax.swing.event.DocumentListener $.UndoableEditEvent $.UndoableEditListener javax.swing.text.BadLocationException $.SegmentCache $.StateInvariantError $.StyleConstants $.StyleContext $.Utilities".split(" "),function(){c$=s(function(){this.filterBypass=this.documentFilter=this.bidiRoot=this.context=this.data=this.listenerList=this.documentProperties=
143 null;H("javax.swing.text.AbstractDocument.AbstractElement")||javax.swing.text.AbstractDocument.$AbstractDocument$AbstractElement$();H("javax.swing.text.AbstractDocument.BranchElement")||javax.swing.text.AbstractDocument.$AbstractDocument$BranchElement$();H("javax.swing.text.AbstractDocument.LeafElement")||javax.swing.text.AbstractDocument.$AbstractDocument$LeafElement$();H("javax.swing.text.AbstractDocument.DefaultDocumentEvent")||javax.swing.text.AbstractDocument.$AbstractDocument$DefaultDocumentEvent$();
144 H("javax.swing.text.AbstractDocument.UndoRedoDocumentEvent")||javax.swing.text.AbstractDocument.$AbstractDocument$UndoRedoDocumentEvent$();H("javax.swing.text.AbstractDocument.DefaultFilterBypass")||javax.swing.text.AbstractDocument.$AbstractDocument$DefaultFilterBypass$();r(this,arguments)},javax.swing.text,"AbstractDocument",null,javax.swing.text.JSMinimalAbstractDocument);J(c$,function(){this.listenerList=new javax.swing.event.EventListenerList});m(c$,function(a){this.construct(a,javax.swing.text.StyleContext.getDefaultStyleContext())},
145 "javax.swing.text.AbstractDocument.Content");m(c$,function(a,b){this.data=a;this.context=b},"javax.swing.text.AbstractDocument.Content,javax.swing.text.AbstractDocument.AttributeContext");d(c$,"getDocumentProperties",function(){null==this.documentProperties&&(this.documentProperties=new java.util.Hashtable(2));return this.documentProperties});d(c$,"setDocumentProperties",function(a){this.documentProperties=a},"java.util.Dictionary");d(c$,"fireInsertUpdate",function(a){for(var b=this.listenerList.getListenerList(),
146 c=b.length-2;0<=c;c-=2)b[c]===javax.swing.event.DocumentListener&&b[c+1].insertUpdate(a)},"javax.swing.event.DocumentEvent");d(c$,"fireChangedUpdate",function(a){for(var b=this.listenerList.getListenerList(),c=b.length-2;0<=c;c-=2)b[c]===javax.swing.event.DocumentListener&&b[c+1].changedUpdate(a)},"javax.swing.event.DocumentEvent");d(c$,"fireRemoveUpdate",function(a){for(var b=this.listenerList.getListenerList(),c=b.length-2;0<=c;c-=2)b[c]===javax.swing.event.DocumentListener&&b[c+1].removeUpdate(a)},
147 "javax.swing.event.DocumentEvent");d(c$,"fireUndoableEditUpdate",function(a){for(var b=this.listenerList.getListenerList(),c=b.length-2;0<=c;c-=2)b[c]===javax.swing.event.UndoableEditListener&&b[c+1].undoableEditHappened(a)},"javax.swing.event.UndoableEditEvent");d(c$,"getListeners",function(a){return this.listenerList.getListeners(a)},"Class");e(c$,"getAsynchronousLoadPriority",function(){var a=this.getProperty("load priority");return null!=a?a.intValue():-1});d(c$,"setAsynchronousLoadPriority",
148 function(a){a=0<=a?new Integer(a):null;this.putProperty("load priority",a)},"~N");e(c$,"setDocumentFilter",function(a){this.documentFilter=a},"javax.swing.text.DocumentFilter");d(c$,"getDocumentFilter",function(){return this.documentFilter});e(c$,"getLength",function(){return this.data.length()-1});e(c$,"addDocumentListener",function(a){this.listenerList.add(javax.swing.event.DocumentListener,a)},"javax.swing.event.DocumentListener");e(c$,"removeDocumentListener",function(a){this.listenerList.remove(javax.swing.event.DocumentListener,
149 a)},"javax.swing.event.DocumentListener");d(c$,"getDocumentListeners",function(){return this.listenerList.getListeners(javax.swing.event.DocumentListener)});e(c$,"addUndoableEditListener",function(a){this.listenerList.add(javax.swing.event.UndoableEditListener,a)},"javax.swing.event.UndoableEditListener");e(c$,"removeUndoableEditListener",function(a){this.listenerList.remove(javax.swing.event.UndoableEditListener,a)},"javax.swing.event.UndoableEditListener");d(c$,"getUndoableEditListeners",function(){return this.listenerList.getListeners(javax.swing.event.UndoableEditListener)});
150 e(c$,"getProperty",function(a){return this.getDocumentProperties().get(a)},"~O");e(c$,"putProperty",function(a,b){null!=b?this.getDocumentProperties().put(a,b):this.getDocumentProperties().remove(a)},"~O,~O");e(c$,"remove",function(a,b){var c=this.getDocumentFilter();this.writeLock();try{null!=c?c.remove(this.getFilterBypass(),a,b):this.handleRemove(a,b)}finally{this.writeUnlock()}},"~N,~N");d(c$,"handleRemove",function(a,b){if(0<b){if(0>a||a+b>this.getLength())throw new javax.swing.text.BadLocationException("Invalid remove",
151 this.getLength()+1);var c=C(javax.swing.text.AbstractDocument.DefaultDocumentEvent,this,null,a,b,javax.swing.event.DocumentEvent.EventType.REMOVE),f=!1,f=javax.swing.text.Utilities.isComposedTextElement(this,a);this.removeUpdate(c);var l=this.data.remove(a,b);null!=l&&c.addEdit(l);this.postRemoveUpdate(c);c.end();this.fireRemoveUpdate(c);null!=l&&!f&&this.fireUndoableEditUpdate(new javax.swing.event.UndoableEditEvent(this,c))}},"~N,~N");e(c$,"replace",function(a,b,c,f){if(!(0==b&&(null==c||0==c.length))){var l=
152 this.getDocumentFilter();this.writeLock();try{null!=l?l.replace(this.getFilterBypass(),a,b,c,f):(0<b&&this.remove(a,b),null!=c&&0<c.length&&this.insertString(a,c,f))}finally{this.writeUnlock()}}},"~N,~N,~S,javax.swing.text.AttributeSet");e(c$,"insertString",function(a,b,c){if(!(null==b||0==b.length)){var f=this.getDocumentFilter();this.writeLock();try{null!=f?f.insertString(this.getFilterBypass(),a,b,c):this.handleInsertString(a,b,c)}finally{this.writeUnlock()}}},"~N,~S,javax.swing.text.AttributeSet");
153 d(c$,"handleInsertString",function(a,b,c){if(!(null==b||0==b.length)){var f=this.data.insertString(a,b);a=C(javax.swing.text.AbstractDocument.DefaultDocumentEvent,this,null,a,b.length,javax.swing.event.DocumentEvent.EventType.INSERT);null!=f&&a.addEdit(f);this.getProperty("i18n").equals(Boolean.FALSE);this.insertUpdate(a,c);a.end();this.fireInsertUpdate(a);null!=f&&(null==c||!c.isDefined(javax.swing.text.StyleConstants.ComposedTextAttribute))&&this.fireUndoableEditUpdate(new javax.swing.event.UndoableEditEvent(this,
154 a))}},"~N,~S,javax.swing.text.AttributeSet");d(c$,"getText",function(a,b){if(0>b)throw new javax.swing.text.BadLocationException("Length must be positive",b);return this.data.getString(a,b)},"~N,~N");d(c$,"getText",function(a,b,c){if(0>b)throw new javax.swing.text.BadLocationException("Length must be positive",b);this.data.getChars(a,b,c)},"~N,~N,javax.swing.text.Segment");e(c$,"createPosition",function(a){return this.data.createPosition(a)},"~N");e(c$,"getStartPosition",function(){var a;try{a=this.createPosition(0)}catch(b){if(y(b,
155 javax.swing.text.BadLocationException))a=null;else throw b;}return a});e(c$,"getEndPosition",function(){var a;try{a=this.createPosition(this.data.length())}catch(b){if(y(b,javax.swing.text.BadLocationException))a=null;else throw b;}return a});e(c$,"getRootElements",function(){var a=Array(2);a[0]=this.getDefaultRootElement();a[1]=this.getBidiRootElement();return a});d(c$,"getFilterBypass",function(){null==this.filterBypass&&(this.filterBypass=C(javax.swing.text.AbstractDocument.DefaultFilterBypass,
156 this,null));return this.filterBypass});d(c$,"getBidiRootElement",function(){return this.bidiRoot});d(c$,"isLeftToRight",function(a,b){if(!this.getProperty("i18n").equals(Boolean.TRUE))return!0;var c=this.getBidiRootElement(),f=c.getElementIndex(a),c=c.getElement(f);return c.getEndOffset()>=b?(c=c.getAttributes(),0==javax.swing.text.StyleConstants.getBidiLevel(c)%2):!0},"~N,~N");d(c$,"getAttributeContext",function(){return this.context});d(c$,"insertUpdate",function(a){if(a.type===javax.swing.event.DocumentEvent.EventType.INSERT&&
157 0<a.getLength()&&!Boolean.TRUE.equals(this.getProperty(javax.swing.text.AbstractDocument.MultiByteProperty))){var b=javax.swing.text.SegmentCache.getSharedSegment();try{this.getText(a.getOffset(),a.getLength(),b);b.first();do if(255<b.current().charCodeAt(0)){this.putProperty(javax.swing.text.AbstractDocument.MultiByteProperty,Boolean.TRUE);break}while("\uffff"!=b.next())}catch(c){if(!y(c,javax.swing.text.BadLocationException))throw c;}javax.swing.text.SegmentCache.releaseSharedSegment(b)}},"javax.swing.text.AbstractDocument.DefaultDocumentEvent,javax.swing.text.AttributeSet");
158 d(c$,"removeUpdate",function(){},"javax.swing.text.AbstractDocument.DefaultDocumentEvent");d(c$,"postRemoveUpdate",function(){},"javax.swing.text.AbstractDocument.DefaultDocumentEvent");d(c$,"getContent",function(){return this.data});d(c$,"createLeafElement",function(a,b,c,f){return C(javax.swing.text.AbstractDocument.LeafElement,this,null,a,b,c,f)},"javax.swing.text.Element,javax.swing.text.AttributeSet,~N,~N");d(c$,"createBranchElement",function(a,b){return C(javax.swing.text.AbstractDocument.BranchElement,
159 this,null,a,b)},"javax.swing.text.Element,javax.swing.text.AttributeSet");d(c$,"writeLock",function(){});d(c$,"writeUnlock",function(){});d(c$,"readLock",function(){});d(c$,"readUnlock",function(){});c$.$AbstractDocument$AbstractElement$=function(){A(self.c$);c$=s(function(){O(this,arguments);this.attributes=this.parent=null;r(this,arguments)},javax.swing.text.AbstractDocument,"AbstractElement",null,[javax.swing.text.Element,javax.swing.text.MutableAttributeSet,javax.swing.tree.TreeNode]);m(c$,function(a,
160 b){this.parent=a;this.attributes=this.b$["javax.swing.text.AbstractDocument"].getAttributeContext().getEmptySet();null!=b&&this.addAttributes(b)},"javax.swing.text.Element,javax.swing.text.AttributeSet");d(c$,"getAttributeCount",function(){return this.attributes.getAttributeCount()});d(c$,"isDefined",function(a){return this.attributes.isDefined(a)},"~O");d(c$,"isEqual",function(a){return this.attributes.isEqual(a)},"javax.swing.text.AttributeSet");d(c$,"copyAttributes",function(){return this.attributes.copyAttributes()});
161 d(c$,"getAttribute",function(a){var b=this.attributes.getAttribute(a);if(null==b){var c=null!=this.parent?this.parent.getAttributes():null;null!=c&&(b=c.getAttribute(a))}return b},"~O");d(c$,"getAttributeNames",function(){return this.attributes.getAttributeNames()});d(c$,"containsAttribute",function(a,b){return this.attributes.containsAttribute(a,b)},"~O,~O");d(c$,"containsAttributes",function(a){return this.attributes.containsAttributes(a)},"javax.swing.text.AttributeSet");d(c$,"getResolveParent",
162 function(){var a=this.attributes.getResolveParent();null==a&&null!=this.parent&&(a=this.parent.getAttributes());return a});e(c$,"addAttribute",function(a,b){this.checkForIllegalCast();this.attributes=this.b$["javax.swing.text.AbstractDocument"].getAttributeContext().addAttribute(this.attributes,a,b)},"~O,~O");e(c$,"addAttributes",function(a){this.checkForIllegalCast();this.attributes=this.b$["javax.swing.text.AbstractDocument"].getAttributeContext().addAttributes(this.attributes,a)},"javax.swing.text.AttributeSet");
163 e(c$,"removeAttribute",function(a){this.checkForIllegalCast();this.attributes=this.b$["javax.swing.text.AbstractDocument"].getAttributeContext().removeAttribute(this.attributes,a)},"~O");d(c$,"removeAttributes",function(a){this.checkForIllegalCast();this.attributes=this.b$["javax.swing.text.AbstractDocument"].getAttributeContext().removeAttributes(this.attributes,a)},"java.util.Enumeration");d(c$,"removeAttributes",function(a){this.checkForIllegalCast();var b=this.b$["javax.swing.text.AbstractDocument"].getAttributeContext();
164 this.attributes=a===this?b.getEmptySet():b.removeAttributes(this.attributes,a)},"javax.swing.text.AttributeSet");e(c$,"setResolveParent",function(a){this.checkForIllegalCast();var b=this.b$["javax.swing.text.AbstractDocument"].getAttributeContext();this.attributes=null!=a?b.addAttribute(this.attributes,javax.swing.text.StyleConstants.ResolveAttribute,a):b.removeAttribute(this.attributes,javax.swing.text.StyleConstants.ResolveAttribute)},"javax.swing.text.AttributeSet");d(c$,"checkForIllegalCast",
165 function(){});e(c$,"getDocument",function(){return this.b$["javax.swing.text.AbstractDocument"]});e(c$,"getParentElement",function(){return this.parent});d(c$,"getAttributes",function(){return this});e(c$,"getName",function(){return this.attributes.isDefined("$ename")?this.attributes.getAttribute("$ename"):null});e(c$,"getChildAt",function(a){return this.getElement(a)},"~N");e(c$,"getChildCount",function(){return this.getElementCount()});e(c$,"getParent",function(){return this.getParentElement()});
166 e(c$,"getIndex",function(a){for(var b=this.getChildCount()-1;0<=b;b--)if(this.getChildAt(b)===a)return b;return-1},"javax.swing.tree.TreeNode");c$=z()};c$.$AbstractDocument$BranchElement$=function(){A(self.c$);c$=s(function(){O(this,arguments);this.$children=null;this.lastIndex=this.nchildren=0;r(this,arguments)},javax.swing.text.AbstractDocument,"BranchElement",javax.swing.text.AbstractDocument.AbstractElement,null,C(javax.swing.text.AbstractDocument.AbstractElement,this,null,$));m(c$,function(a,
167 b){t(this,javax.swing.text.AbstractDocument.BranchElement,[a,b]);this.$children=Array(1);this.nchildren=0;this.lastIndex=-1},"javax.swing.text.Element,javax.swing.text.AttributeSet");d(c$,"positionToElement",function(a){var b=this.getElementIndex(a),b=this.$children[b],c=b.getStartOffset(),f=b.getEndOffset();return a>=c&&a<f?b:null},"~N");d(c$,"replace",function(a,b,c){var f=c.length-b;b=a+b;var l=this.nchildren-b,d=b+f;if(this.nchildren+f>=this.$children.length){var g=Math.max(2*this.$children.length,
168 this.nchildren+f),g=Array(g);System.arraycopy(this.$children,0,g,0,a);System.arraycopy(c,0,g,a,c.length);System.arraycopy(this.$children,b,g,d,l);this.$children=g}else System.arraycopy(this.$children,b,this.$children,d,l),System.arraycopy(c,0,this.$children,a,c.length);this.nchildren+=f},"~N,~N,~A");e(c$,"toString",function(){return"BranchElement("+this.getName()+") "+this.getStartOffset()+","+this.getEndOffset()+"\n"});d(c$,"getName",function(){var a=K(this,javax.swing.text.AbstractDocument.BranchElement,
169 "getName",[]);null==a&&(a="paragraph");return a});d(c$,"getStartOffset",function(){return this.$children[0].getStartOffset()});e(c$,"getEndOffset",function(){return(0<this.nchildren?this.$children[this.nchildren-1]:this.$children[0]).getEndOffset()});e(c$,"getElement",function(a){return a<this.nchildren?this.$children[a]:null},"~N");e(c$,"getElementCount",function(){return this.nchildren});e(c$,"getElementIndex",function(a){var b=0,c=this.nchildren-1,f=0,l=this.getStartOffset(),d;if(0==this.nchildren)return 0;
170 if(a>=this.getEndOffset())return this.nchildren-1;if(this.lastIndex>=b&&this.lastIndex<=c){d=this.$children[this.lastIndex];l=d.getStartOffset();d=d.getEndOffset();if(a>=l&&a<d)return this.lastIndex;a<l?c=this.lastIndex:b=this.lastIndex}for(;b<=c;){f=b+F((c-b)/2);d=this.$children[f];l=d.getStartOffset();d=d.getEndOffset();if(a>=l&&a<d)return this.lastIndex=a=f;a<l?c=f-1:b=f+1}return this.lastIndex=a=a<l?f:f+1},"~N");e(c$,"isLeaf",function(){return!1});e(c$,"getAllowsChildren",function(){return!0});
171 e(c$,"children",function(){if(0==this.nchildren)return null;for(var a=new java.util.Vector(this.nchildren),b=0;b<this.nchildren;b++)a.addElement(this.$children[b]);return a.elements()});c$=z()};c$.$AbstractDocument$LeafElement$=function(){A(self.c$);c$=s(function(){O(this,arguments);this.p1=this.p0=null;r(this,arguments)},javax.swing.text.AbstractDocument,"LeafElement",javax.swing.text.AbstractDocument.AbstractElement,null,C(javax.swing.text.AbstractDocument.AbstractElement,this,null,$));m(c$,function(a,
172 b,c,f){t(this,javax.swing.text.AbstractDocument.LeafElement,[a,b]);try{this.p0=this.b$["javax.swing.text.AbstractDocument"].createPosition(c),this.p1=this.b$["javax.swing.text.AbstractDocument"].createPosition(f)}catch(l){if(y(l,javax.swing.text.BadLocationException))throw this.p1=this.p0=null,new javax.swing.text.StateInvariantError("Can't create Position references");throw l;}},"javax.swing.text.Element,javax.swing.text.AttributeSet,~N,~N");e(c$,"toString",function(){return"LeafElement("+this.getName()+
173 ") "+this.p0+","+this.p1+"\n"});e(c$,"getStartOffset",function(){return this.p0.getOffset()});e(c$,"getEndOffset",function(){return this.p1.getOffset()});d(c$,"getName",function(){var a=K(this,javax.swing.text.AbstractDocument.LeafElement,"getName",[]);null==a&&(a="content");return a});e(c$,"getElementIndex",function(){return-1},"~N");e(c$,"getElement",function(){return null},"~N");e(c$,"getElementCount",function(){return 0});e(c$,"isLeaf",function(){return!0});e(c$,"getAllowsChildren",function(){return!1});
174 e(c$,"children",function(){return null});c$=z()};c$.$AbstractDocument$DefaultDocumentEvent$=function(){A(self.c$);c$=s(function(){O(this,arguments);this.length=this.offset=0;this.type=this.changeLookup=null;r(this,arguments)},javax.swing.text.AbstractDocument,"DefaultDocumentEvent",javax.swing.undo.CompoundEdit,javax.swing.event.DocumentEvent);m(c$,function(a,b,c){t(this,javax.swing.text.AbstractDocument.DefaultDocumentEvent);this.offset=a;this.length=b;this.type=c},"~N,~N,javax.swing.event.DocumentEvent.EventType");
175 e(c$,"toString",function(){return this.edits.toString()});d(c$,"addEdit",function(a){if(null==this.changeLookup&&10<this.edits.size()){this.changeLookup=new java.util.Hashtable;for(var b=this.edits.size(),c=0;c<b;c++){var f=this.edits.elementAt(c);v(f,javax.swing.event.DocumentEvent.ElementChange)&&this.changeLookup.put(f.getElement(),f)}}null!=this.changeLookup&&v(a,javax.swing.event.DocumentEvent.ElementChange)&&(b=a,this.changeLookup.put(b.getElement(),b));return K(this,javax.swing.text.AbstractDocument.DefaultDocumentEvent,
176 "addEdit",[a])},"javax.swing.undo.UndoableEdit");d(c$,"redo",function(){this.b$["javax.swing.text.AbstractDocument"].writeLock();try{K(this,javax.swing.text.AbstractDocument.DefaultDocumentEvent,"redo",[]);var a=C(javax.swing.text.AbstractDocument.UndoRedoDocumentEvent,this,null,this,!1);this.type===javax.swing.event.DocumentEvent.EventType.INSERT?this.b$["javax.swing.text.AbstractDocument"].fireInsertUpdate(a):this.type===javax.swing.event.DocumentEvent.EventType.REMOVE?this.b$["javax.swing.text.AbstractDocument"].fireRemoveUpdate(a):
177 this.b$["javax.swing.text.AbstractDocument"].fireChangedUpdate(a)}finally{this.b$["javax.swing.text.AbstractDocument"].writeUnlock()}});d(c$,"undo",function(){this.b$["javax.swing.text.AbstractDocument"].writeLock();try{K(this,javax.swing.text.AbstractDocument.DefaultDocumentEvent,"undo",[]);var a=C(javax.swing.text.AbstractDocument.UndoRedoDocumentEvent,this,null,this,!0);this.type===javax.swing.event.DocumentEvent.EventType.REMOVE?this.b$["javax.swing.text.AbstractDocument"].fireInsertUpdate(a):
178 this.type===javax.swing.event.DocumentEvent.EventType.INSERT?this.b$["javax.swing.text.AbstractDocument"].fireRemoveUpdate(a):this.b$["javax.swing.text.AbstractDocument"].fireChangedUpdate(a)}finally{this.b$["javax.swing.text.AbstractDocument"].writeUnlock()}});e(c$,"isSignificant",function(){return!0});e(c$,"getPresentationName",function(){var a=this.getType();return a===javax.swing.event.DocumentEvent.EventType.INSERT?javax.swing.UIManager.getString("AbstractDocument.additionText"):a===javax.swing.event.DocumentEvent.EventType.REMOVE?
179 javax.swing.UIManager.getString("AbstractDocument.deletionText"):javax.swing.UIManager.getString("AbstractDocument.styleChangeText")});e(c$,"getUndoPresentationName",function(){return javax.swing.UIManager.getString("AbstractDocument.undoText")+" "+this.getPresentationName()});e(c$,"getRedoPresentationName",function(){return javax.swing.UIManager.getString("AbstractDocument.redoText")+" "+this.getPresentationName()});e(c$,"getType",function(){return this.type});e(c$,"getOffset",function(){return this.offset});
180 e(c$,"getLength",function(){return this.length});e(c$,"getDocument",function(){return this.b$["javax.swing.text.AbstractDocument"]});e(c$,"getChange",function(a){if(null!=this.changeLookup)return this.changeLookup.get(a);for(var b=this.edits.size(),c=0;c<b;c++){var f=this.edits.elementAt(c);if(v(f,javax.swing.event.DocumentEvent.ElementChange)&&a.equals(f.getElement()))return f}return null},"javax.swing.text.Element");c$=z()};c$.$AbstractDocument$UndoRedoDocumentEvent$=function(){A(self.c$);c$=s(function(){O(this,
181 arguments);this.type=this.src=null;r(this,arguments)},javax.swing.text.AbstractDocument,"UndoRedoDocumentEvent",null,javax.swing.event.DocumentEvent);m(c$,function(a,b){this.src=a;this.type=b?a.getType().equals(javax.swing.event.DocumentEvent.EventType.INSERT)?javax.swing.event.DocumentEvent.EventType.REMOVE:a.getType().equals(javax.swing.event.DocumentEvent.EventType.REMOVE)?javax.swing.event.DocumentEvent.EventType.INSERT:a.getType():a.getType()},"javax.swing.text.AbstractDocument.DefaultDocumentEvent,~B");
182 d(c$,"getSource",function(){return this.src});e(c$,"getOffset",function(){return this.src.getOffset()});e(c$,"getLength",function(){return this.src.getLength()});e(c$,"getDocument",function(){return this.src.getDocument()});e(c$,"getType",function(){return this.type});e(c$,"getChange",function(a){return this.src.getChange(a)},"javax.swing.text.Element");c$=z()};c$.$AbstractDocument$DefaultFilterBypass$=function(){A(self.c$);c$=s(function(){O(this,arguments);r(this,arguments)},javax.swing.text.AbstractDocument,
183 "DefaultFilterBypass",javax.swing.text.DocumentFilter.FilterBypass);e(c$,"getDocument",function(){return this.b$["javax.swing.text.AbstractDocument"]});e(c$,"remove",function(a,b){this.b$["javax.swing.text.AbstractDocument"].handleRemove(a,b)},"~N,~N");e(c$,"insertString",function(a,b,c){this.b$["javax.swing.text.AbstractDocument"].handleInsertString(a,b,c)},"~N,~S,javax.swing.text.AttributeSet");e(c$,"replace",function(a,b,c,f){this.b$["javax.swing.text.AbstractDocument"].handleRemove(a,b);this.b$["javax.swing.text.AbstractDocument"].handleInsertString(a,
184 c,f)},"~N,~N,~S,javax.swing.text.AttributeSet");c$=z()};M(javax.swing.text.AbstractDocument,"Content");M(javax.swing.text.AbstractDocument,"AttributeContext");A(self.c$);c$=s(function(){this.e=null;this.index=0;this.added=this.removed=null;r(this,arguments)},javax.swing.text.AbstractDocument,"ElementEdit",javax.swing.undo.AbstractUndoableEdit,javax.swing.event.DocumentEvent.ElementChange);m(c$,function(a,b,c,f){t(this,javax.swing.text.AbstractDocument.ElementEdit);this.e=a;this.index=b;this.removed=
185 c;this.added=f},"javax.swing.text.Element,~N,~A,~A");e(c$,"getElement",function(){return this.e});e(c$,"getIndex",function(){return this.index});e(c$,"getChildrenRemoved",function(){return this.removed});e(c$,"getChildrenAdded",function(){return this.added});d(c$,"redo",function(){K(this,javax.swing.text.AbstractDocument.ElementEdit,"redo",[]);var a=this.removed;this.removed=this.added;this.added=a;this.e.replace(this.index,this.removed.length,this.added)});d(c$,"undo",function(){K(this,javax.swing.text.AbstractDocument.ElementEdit,
186 "undo",[]);this.e.replace(this.index,this.added.length,this.removed);var a=this.removed;this.removed=this.added;this.added=a});c$=z();G(c$,"BAD_LOCATION","document location failure","ParagraphElementName","paragraph","ContentElementName","content","SectionElementName","section","BidiElementName","bidi level","ElementNameAttribute","$ename","I18NProperty","i18n","MultiByteProperty","multiByte","AsyncLoadPriority","load priority")});p("javax.swing.event");M(javax.swing.event,"DocumentEvent");A(self.c$);
187 c$=s(function(){this.typeString=null;r(this,arguments)},javax.swing.event.DocumentEvent,"EventType");m(c$,function(a){this.typeString=a},"~S");e(c$,"toString",function(){return this.typeString});c$.INSERT=c$.prototype.INSERT=new javax.swing.event.DocumentEvent.EventType("INSERT");c$.REMOVE=c$.prototype.REMOVE=new javax.swing.event.DocumentEvent.EventType("REMOVE");c$.CHANGE=c$.prototype.CHANGE=new javax.swing.event.DocumentEvent.EventType("CHANGE");c$=z();M(javax.swing.event.DocumentEvent,"ElementChange");
188 p("javax.swing.text");c$=B(javax.swing.text,"DocumentFilter");d(c$,"remove",function(a,b,c){a.remove(b,c)},"javax.swing.text.DocumentFilter.FilterBypass,~N,~N");d(c$,"insertString",function(a,b,c,f){a.insertString(b,c,f)},"javax.swing.text.DocumentFilter.FilterBypass,~N,~S,javax.swing.text.AttributeSet");d(c$,"replace",function(a,b,c,f,l){a.replace(b,c,f,l)},"javax.swing.text.DocumentFilter.FilterBypass,~N,~N,~S,javax.swing.text.AttributeSet");A(self.c$);c$=B(javax.swing.text.DocumentFilter,"FilterBypass");
189 c$=z();p("javax.swing.text");M(javax.swing.text,"Element");p("javax.swing.text");q(["javax.swing.text.Document"],"javax.swing.text.JSMinimalAbstractDocument",null,function(){M(javax.swing.text,"JSMinimalAbstractDocument",javax.swing.text.Document)});p("javax.swing.text");c$=M(javax.swing.text,"Document");G(c$,"StreamDescriptionProperty","stream","TitleProperty","title");p("javax.swing.text");q(["javax.swing.text.AttributeSet"],"javax.swing.text.MutableAttributeSet",null,function(){M(javax.swing.text,
190 "MutableAttributeSet",javax.swing.text.AttributeSet)});p("javax.swing.text");M(javax.swing.text,"AttributeSet");M(javax.swing.text.AttributeSet,"FontAttribute");M(javax.swing.text.AttributeSet,"ColorAttribute");M(javax.swing.text.AttributeSet,"CharacterAttribute");M(javax.swing.text.AttributeSet,"ParagraphAttribute");p("javax.swing.tree");M(javax.swing.tree,"TreeNode");p("javax.swing.undo");q(["javax.swing.undo.UndoableEdit"],"javax.swing.undo.AbstractUndoableEdit",["javax.swing.UIManager","javax.swing.undo.CannotRedoException",
191 "$.CannotUndoException"],function(){c$=s(function(){this.alive=this.hasBeenDone=!1;r(this,arguments)},javax.swing.undo,"AbstractUndoableEdit",null,javax.swing.undo.UndoableEdit);m(c$,function(){this.alive=this.hasBeenDone=!0});e(c$,"die",function(){this.alive=!1});e(c$,"undo",function(){if(!this.canUndo())throw new javax.swing.undo.CannotUndoException;this.hasBeenDone=!1});e(c$,"canUndo",function(){return this.alive&&this.hasBeenDone});e(c$,"redo",function(){if(!this.canRedo())throw new javax.swing.undo.CannotRedoException;
192 this.hasBeenDone=!0});e(c$,"canRedo",function(){return this.alive&&!this.hasBeenDone});e(c$,"addEdit",function(){return!1},"javax.swing.undo.UndoableEdit");e(c$,"replaceEdit",function(){return!1},"javax.swing.undo.UndoableEdit");e(c$,"isSignificant",function(){return!0});e(c$,"getPresentationName",function(){return""});e(c$,"getUndoPresentationName",function(){var a=this.getPresentationName();return a="".equals(a)?javax.swing.UIManager.getString("AbstractUndoableEdit.undoText"):javax.swing.UIManager.getString("AbstractUndoableEdit.undoText")+
193 " "+a});e(c$,"getRedoPresentationName",function(){var a=this.getPresentationName();return a="".equals(a)?javax.swing.UIManager.getString("AbstractUndoableEdit.redoText"):javax.swing.UIManager.getString("AbstractUndoableEdit.redoText")+" "+a});d(c$,"toString",function(){return K(this,javax.swing.undo.AbstractUndoableEdit,"toString",[])+" hasBeenDone: "+this.hasBeenDone+" alive: "+this.alive});G(c$,"UndoName","Undo","RedoName","Redo")});p("javax.swing.undo");M(javax.swing.undo,"UndoableEdit");p("javax.swing.undo");
194 q(["java.lang.RuntimeException"],"javax.swing.undo.CannotRedoException",null,function(){c$=B(javax.swing.undo,"CannotRedoException",RuntimeException)});p("javax.swing.undo");q(["java.lang.RuntimeException"],"javax.swing.undo.CannotUndoException",null,function(){c$=B(javax.swing.undo,"CannotUndoException",RuntimeException)});p("javax.swing.undo");q(["javax.swing.undo.AbstractUndoableEdit"],"javax.swing.undo.CompoundEdit",["java.util.Vector"],function(){c$=s(function(){this.inProgress=!1;this.edits=
195 null;r(this,arguments)},javax.swing.undo,"CompoundEdit",javax.swing.undo.AbstractUndoableEdit);m(c$,function(){t(this,javax.swing.undo.CompoundEdit);this.inProgress=!0;this.edits=new java.util.Vector});d(c$,"undo",function(){K(this,javax.swing.undo.CompoundEdit,"undo",[]);for(var a=this.edits.size();0<a--;)this.edits.elementAt(a).undo()});d(c$,"redo",function(){K(this,javax.swing.undo.CompoundEdit,"redo",[]);for(var a=this.edits.elements();a.hasMoreElements();)a.nextElement().redo()});d(c$,"lastEdit",
196 function(){var a=this.edits.size();return 0<a?this.edits.elementAt(a-1):null});d(c$,"die",function(){for(var a=this.edits.size()-1;0<=a;a--)this.edits.elementAt(a).die();K(this,javax.swing.undo.CompoundEdit,"die",[])});e(c$,"addEdit",function(a){if(this.inProgress){var b=this.lastEdit();null==b?this.edits.addElement(a):b.addEdit(a)||(a.replaceEdit(b)&&this.edits.removeElementAt(this.edits.size()-1),this.edits.addElement(a));return!0}return!1},"javax.swing.undo.UndoableEdit");d(c$,"end",function(){this.inProgress=
197 !1});d(c$,"canUndo",function(){return!this.isInProgress()&&K(this,javax.swing.undo.CompoundEdit,"canUndo",[])});d(c$,"canRedo",function(){return!this.isInProgress()&&K(this,javax.swing.undo.CompoundEdit,"canRedo",[])});d(c$,"isInProgress",function(){return this.inProgress});e(c$,"isSignificant",function(){for(var a=this.edits.elements();a.hasMoreElements();)if(a.nextElement().isSignificant())return!0;return!1});d(c$,"getPresentationName",function(){var a=this.lastEdit();return null!=a?a.getPresentationName():
198 K(this,javax.swing.undo.CompoundEdit,"getPresentationName",[])});d(c$,"getUndoPresentationName",function(){var a=this.lastEdit();return null!=a?a.getUndoPresentationName():K(this,javax.swing.undo.CompoundEdit,"getUndoPresentationName",[])});d(c$,"getRedoPresentationName",function(){var a=this.lastEdit();return null!=a?a.getRedoPresentationName():K(this,javax.swing.undo.CompoundEdit,"getRedoPresentationName",[])});d(c$,"toString",function(){return K(this,javax.swing.undo.CompoundEdit,"toString",[])+
199 " inProgress: "+this.inProgress+" edits: "+this.edits})});p("javax.swing.event");q(["java.util.EventObject"],"javax.swing.event.UndoableEditEvent",null,function(){c$=s(function(){this.myEdit=null;r(this,arguments)},javax.swing.event,"UndoableEditEvent",java.util.EventObject);m(c$,function(a,b){t(this,javax.swing.event.UndoableEditEvent,[a]);this.myEdit=b},"~O,javax.swing.undo.UndoableEdit");d(c$,"getEdit",function(){return this.myEdit})});p("javax.swing.event");q(["java.util.EventListener"],"javax.swing.event.UndoableEditListener",
200 null,function(){M(javax.swing.event,"UndoableEditListener",java.util.EventListener)});p("javax.swing.text");q(["javax.swing.text.Segment"],"javax.swing.text.SegmentCache",["java.util.ArrayList"],function(){c$=s(function(){this.segments=null;r(this,arguments)},javax.swing.text,"SegmentCache");c$.getSharedInstance=d(c$,"getSharedInstance",function(){return javax.swing.text.SegmentCache.sharedCache});c$.getSharedSegment=d(c$,"getSharedSegment",function(){return javax.swing.text.SegmentCache.getSharedInstance().getSegment()});
201 c$.releaseSharedSegment=d(c$,"releaseSharedSegment",function(a){javax.swing.text.SegmentCache.getSharedInstance().releaseSegment(a)},"javax.swing.text.Segment");m(c$,function(){this.segments=new java.util.ArrayList(11)});d(c$,"getSegment",function(){var a=this.segments.size();return 0<a?this.segments.remove(a-1):new javax.swing.text.SegmentCache.CachedSegment});d(c$,"releaseSegment",function(a){v(a,javax.swing.text.SegmentCache.CachedSegment)&&(a.array=null,a.count=0,this.segments.add(a))},"javax.swing.text.Segment");
202 A(self.c$);c$=B(javax.swing.text.SegmentCache,"CachedSegment",javax.swing.text.Segment);c$=z();c$.sharedCache=c$.prototype.sharedCache=new javax.swing.text.SegmentCache});p("javax.swing.text");q(["java.text.CharacterIterator"],"javax.swing.text.Segment",["java.lang.IllegalArgumentException","$.StringIndexOutOfBoundsException"],function(){c$=s(function(){this.array=null;this.count=this.offset=0;this.partialReturn=!1;this.pos=0;r(this,arguments)},javax.swing.text,"Segment",null,[Cloneable,java.text.CharacterIterator,
203 CharSequence]);m(c$,function(){this.construct(null,0,0)});m(c$,function(a,b,c){this.array=a;this.offset=b;this.count=c;this.partialReturn=!1},"~A,~N,~N");d(c$,"setPartialReturn",function(a){this.partialReturn=a},"~B");d(c$,"isPartialReturn",function(){return this.partialReturn});e(c$,"toString",function(){return null!=this.array?String.instantialize(this.array,this.offset,this.count):String.instantialize()});e(c$,"first",function(){this.pos=this.offset;return 0!=this.count?this.array[this.pos]:"\uffff"});
204 e(c$,"last",function(){this.pos=this.offset+this.count;return 0!=this.count?(this.pos-=1,this.array[this.pos]):"\uffff"});e(c$,"current",function(){return 0!=this.count&&this.pos<this.offset+this.count?this.array[this.pos]:"\uffff"});e(c$,"next",function(){this.pos+=1;var a=this.offset+this.count;return this.pos>=a?(this.pos=a,"\uffff"):this.current()});e(c$,"previous",function(){if(this.pos==this.offset)return"\uffff";this.pos-=1;return this.current()});e(c$,"setIndex",function(a){var b=this.offset+
205 this.count;if(a<this.offset||a>b)throw new IllegalArgumentException("bad position: "+a);this.pos=a;return this.pos!=b&&0!=this.count?this.array[this.pos]:"\uffff"},"~N");e(c$,"getBeginIndex",function(){return this.offset});e(c$,"getEndIndex",function(){return this.offset+this.count});e(c$,"getIndex",function(){return this.pos});e(c$,"charAt",function(a){if(0>a||a>=this.count)throw new StringIndexOutOfBoundsException(a);return this.array[this.offset+a]},"~N");e(c$,"length",function(){return this.count});
206 e(c$,"subSequence",function(a,b){if(0>a)throw new StringIndexOutOfBoundsException(a);if(b>this.count)throw new StringIndexOutOfBoundsException(b);if(a>b)throw new StringIndexOutOfBoundsException(b-a);var c=new javax.swing.text.Segment;c.array=this.array;c.offset=this.offset+a;c.count=b-a;return c},"~N,~N");e(c$,"clone",function(){var a;try{a=K(this,javax.swing.text.Segment,"clone",[])}catch(b){if(y(b,CloneNotSupportedException))a=null;else throw b;}return a})});p("javax.swing.text");q(["java.lang.Error"],
207 "javax.swing.text.StateInvariantError",null,function(){c$=B(javax.swing.text,"StateInvariantError",Error)});p("javax.swing.text");q(["javax.swing.text.AttributeSet"],"javax.swing.text.StyleConstants",["java.lang.Boolean","$.Float","java.awt.Color"],function(){c$=s(function(){this.representation=null;r(this,arguments)},javax.swing.text,"StyleConstants");e(c$,"toString",function(){return this.representation});c$.getBidiLevel=d(c$,"getBidiLevel",function(a){a=a.getAttribute(javax.swing.text.StyleConstants.BidiLevel);
208 return null!=a?a.intValue():0},"javax.swing.text.AttributeSet");c$.setBidiLevel=d(c$,"setBidiLevel",function(a,b){a.addAttribute(javax.swing.text.StyleConstants.BidiLevel,new Integer(b))},"javax.swing.text.MutableAttributeSet,~N");c$.getComponent=d(c$,"getComponent",function(a){return a.getAttribute(javax.swing.text.StyleConstants.ComponentAttribute)},"javax.swing.text.AttributeSet");c$.setComponent=d(c$,"setComponent",function(a,b){a.addAttribute("$ename","component");a.addAttribute(javax.swing.text.StyleConstants.ComponentAttribute,
209 b)},"javax.swing.text.MutableAttributeSet,java.awt.Component");c$.getIcon=d(c$,"getIcon",function(a){return a.getAttribute(javax.swing.text.StyleConstants.IconAttribute)},"javax.swing.text.AttributeSet");c$.setIcon=d(c$,"setIcon",function(a,b){a.addAttribute("$ename","icon");a.addAttribute(javax.swing.text.StyleConstants.IconAttribute,b)},"javax.swing.text.MutableAttributeSet,javax.swing.Icon");c$.getFontFamily=d(c$,"getFontFamily",function(a){a=a.getAttribute(javax.swing.text.StyleConstants.FontFamily);
210 null==a&&(a="Monospaced");return a},"javax.swing.text.AttributeSet");c$.setFontFamily=d(c$,"setFontFamily",function(a,b){a.addAttribute(javax.swing.text.StyleConstants.FontFamily,b)},"javax.swing.text.MutableAttributeSet,~S");c$.getFontSize=d(c$,"getFontSize",function(a){a=a.getAttribute(javax.swing.text.StyleConstants.FontSize);return null!=a?a.intValue():12},"javax.swing.text.AttributeSet");c$.setFontSize=d(c$,"setFontSize",function(a,b){a.addAttribute(javax.swing.text.StyleConstants.FontSize,new Integer(b))},
211 "javax.swing.text.MutableAttributeSet,~N");c$.isBold=d(c$,"isBold",function(a){a=a.getAttribute(javax.swing.text.StyleConstants.Bold);return null!=a?a.booleanValue():!1},"javax.swing.text.AttributeSet");c$.setBold=d(c$,"setBold",function(a,b){a.addAttribute(javax.swing.text.StyleConstants.Bold,Boolean.$valueOf(b))},"javax.swing.text.MutableAttributeSet,~B");c$.isItalic=d(c$,"isItalic",function(a){a=a.getAttribute(javax.swing.text.StyleConstants.Italic);return null!=a?a.booleanValue():!1},"javax.swing.text.AttributeSet");
212 c$.setItalic=d(c$,"setItalic",function(a,b){a.addAttribute(javax.swing.text.StyleConstants.Italic,Boolean.$valueOf(b))},"javax.swing.text.MutableAttributeSet,~B");c$.isUnderline=d(c$,"isUnderline",function(a){a=a.getAttribute(javax.swing.text.StyleConstants.Underline);return null!=a?a.booleanValue():!1},"javax.swing.text.AttributeSet");c$.isStrikeThrough=d(c$,"isStrikeThrough",function(a){a=a.getAttribute(javax.swing.text.StyleConstants.StrikeThrough);return null!=a?a.booleanValue():!1},"javax.swing.text.AttributeSet");
213 c$.isSuperscript=d(c$,"isSuperscript",function(a){a=a.getAttribute(javax.swing.text.StyleConstants.Superscript);return null!=a?a.booleanValue():!1},"javax.swing.text.AttributeSet");c$.isSubscript=d(c$,"isSubscript",function(a){a=a.getAttribute(javax.swing.text.StyleConstants.Subscript);return null!=a?a.booleanValue():!1},"javax.swing.text.AttributeSet");c$.setUnderline=d(c$,"setUnderline",function(a,b){a.addAttribute(javax.swing.text.StyleConstants.Underline,Boolean.$valueOf(b))},"javax.swing.text.MutableAttributeSet,~B");
214 c$.setStrikeThrough=d(c$,"setStrikeThrough",function(a,b){a.addAttribute(javax.swing.text.StyleConstants.StrikeThrough,Boolean.$valueOf(b))},"javax.swing.text.MutableAttributeSet,~B");c$.setSuperscript=d(c$,"setSuperscript",function(a,b){a.addAttribute(javax.swing.text.StyleConstants.Superscript,Boolean.$valueOf(b))},"javax.swing.text.MutableAttributeSet,~B");c$.setSubscript=d(c$,"setSubscript",function(a,b){a.addAttribute(javax.swing.text.StyleConstants.Subscript,Boolean.$valueOf(b))},"javax.swing.text.MutableAttributeSet,~B");
215 c$.getForeground=d(c$,"getForeground",function(a){a=a.getAttribute(javax.swing.text.StyleConstants.Foreground);null==a&&(a=java.awt.Color.black);return a},"javax.swing.text.AttributeSet");c$.setForeground=d(c$,"setForeground",function(a,b){a.addAttribute(javax.swing.text.StyleConstants.Foreground,b)},"javax.swing.text.MutableAttributeSet,java.awt.Color");c$.getBackground=d(c$,"getBackground",function(a){a=a.getAttribute(javax.swing.text.StyleConstants.Background);null==a&&(a=java.awt.Color.black);
216 return a},"javax.swing.text.AttributeSet");c$.setBackground=d(c$,"setBackground",function(a,b){a.addAttribute(javax.swing.text.StyleConstants.Background,b)},"javax.swing.text.MutableAttributeSet,java.awt.Color");c$.getFirstLineIndent=d(c$,"getFirstLineIndent",function(a){a=a.getAttribute(javax.swing.text.StyleConstants.FirstLineIndent);return null!=a?a.floatValue():0},"javax.swing.text.AttributeSet");c$.setFirstLineIndent=d(c$,"setFirstLineIndent",function(a,b){a.addAttribute(javax.swing.text.StyleConstants.FirstLineIndent,
217 new Float(b))},"javax.swing.text.MutableAttributeSet,~N");c$.getRightIndent=d(c$,"getRightIndent",function(a){a=a.getAttribute(javax.swing.text.StyleConstants.RightIndent);return null!=a?a.floatValue():0},"javax.swing.text.AttributeSet");c$.setRightIndent=d(c$,"setRightIndent",function(a,b){a.addAttribute(javax.swing.text.StyleConstants.RightIndent,new Float(b))},"javax.swing.text.MutableAttributeSet,~N");c$.getLeftIndent=d(c$,"getLeftIndent",function(a){a=a.getAttribute(javax.swing.text.StyleConstants.LeftIndent);
218 return null!=a?a.floatValue():0},"javax.swing.text.AttributeSet");c$.setLeftIndent=d(c$,"setLeftIndent",function(a,b){a.addAttribute(javax.swing.text.StyleConstants.LeftIndent,new Float(b))},"javax.swing.text.MutableAttributeSet,~N");c$.getLineSpacing=d(c$,"getLineSpacing",function(a){a=a.getAttribute(javax.swing.text.StyleConstants.LineSpacing);return null!=a?a.floatValue():0},"javax.swing.text.AttributeSet");c$.setLineSpacing=d(c$,"setLineSpacing",function(a,b){a.addAttribute(javax.swing.text.StyleConstants.LineSpacing,
219 new Float(b))},"javax.swing.text.MutableAttributeSet,~N");c$.getSpaceAbove=d(c$,"getSpaceAbove",function(a){a=a.getAttribute(javax.swing.text.StyleConstants.SpaceAbove);return null!=a?a.floatValue():0},"javax.swing.text.AttributeSet");c$.setSpaceAbove=d(c$,"setSpaceAbove",function(a,b){a.addAttribute(javax.swing.text.StyleConstants.SpaceAbove,new Float(b))},"javax.swing.text.MutableAttributeSet,~N");c$.getSpaceBelow=d(c$,"getSpaceBelow",function(a){a=a.getAttribute(javax.swing.text.StyleConstants.SpaceBelow);
220 return null!=a?a.floatValue():0},"javax.swing.text.AttributeSet");c$.setSpaceBelow=d(c$,"setSpaceBelow",function(a,b){a.addAttribute(javax.swing.text.StyleConstants.SpaceBelow,new Float(b))},"javax.swing.text.MutableAttributeSet,~N");c$.getAlignment=d(c$,"getAlignment",function(a){a=a.getAttribute(javax.swing.text.StyleConstants.Alignment);return null!=a?a.intValue():0},"javax.swing.text.AttributeSet");c$.setAlignment=d(c$,"setAlignment",function(a,b){a.addAttribute(javax.swing.text.StyleConstants.Alignment,
221 new Integer(b))},"javax.swing.text.MutableAttributeSet,~N");c$.getTabSet=d(c$,"getTabSet",function(a){return a.getAttribute(javax.swing.text.StyleConstants.TabSet)},"javax.swing.text.AttributeSet");c$.setTabSet=d(c$,"setTabSet",function(a,b){a.addAttribute(javax.swing.text.StyleConstants.TabSet,b)},"javax.swing.text.MutableAttributeSet,javax.swing.text.TabSet");m(c$,function(a){this.representation=a},"~S");A(self.c$);c$=B(javax.swing.text.StyleConstants,"ParagraphConstants",javax.swing.text.StyleConstants,
222 javax.swing.text.AttributeSet.ParagraphAttribute);c$=z();A(self.c$);c$=B(javax.swing.text.StyleConstants,"CharacterConstants",javax.swing.text.StyleConstants,javax.swing.text.AttributeSet.CharacterAttribute);c$=z();A(self.c$);c$=B(javax.swing.text.StyleConstants,"ColorConstants",javax.swing.text.StyleConstants,[javax.swing.text.AttributeSet.ColorAttribute,javax.swing.text.AttributeSet.CharacterAttribute]);c$=z();A(self.c$);c$=B(javax.swing.text.StyleConstants,"FontConstants",javax.swing.text.StyleConstants,
223 [javax.swing.text.AttributeSet.FontAttribute,javax.swing.text.AttributeSet.CharacterAttribute]);c$=z();G(c$,"ComponentElementName","component","IconElementName","icon");c$.NameAttribute=c$.prototype.NameAttribute=new javax.swing.text.StyleConstants("name");c$.ResolveAttribute=c$.prototype.ResolveAttribute=new javax.swing.text.StyleConstants("resolver");c$.ModelAttribute=c$.prototype.ModelAttribute=new javax.swing.text.StyleConstants("model");c$.BidiLevel=c$.prototype.BidiLevel=new javax.swing.text.StyleConstants.CharacterConstants("bidiLevel");
224 c$.FontFamily=c$.prototype.FontFamily=new javax.swing.text.StyleConstants.FontConstants("family");c$.Family=c$.prototype.Family=javax.swing.text.StyleConstants.FontFamily;c$.FontSize=c$.prototype.FontSize=new javax.swing.text.StyleConstants.FontConstants("size");c$.Size=c$.prototype.Size=javax.swing.text.StyleConstants.FontSize;c$.Bold=c$.prototype.Bold=new javax.swing.text.StyleConstants.FontConstants("bold");c$.Italic=c$.prototype.Italic=new javax.swing.text.StyleConstants.FontConstants("italic");
225 c$.Underline=c$.prototype.Underline=new javax.swing.text.StyleConstants.CharacterConstants("underline");c$.StrikeThrough=c$.prototype.StrikeThrough=new javax.swing.text.StyleConstants.CharacterConstants("strikethrough");c$.Superscript=c$.prototype.Superscript=new javax.swing.text.StyleConstants.CharacterConstants("superscript");c$.Subscript=c$.prototype.Subscript=new javax.swing.text.StyleConstants.CharacterConstants("subscript");c$.Foreground=c$.prototype.Foreground=new javax.swing.text.StyleConstants.ColorConstants("foreground");
226 c$.Background=c$.prototype.Background=new javax.swing.text.StyleConstants.ColorConstants("background");c$.ComponentAttribute=c$.prototype.ComponentAttribute=new javax.swing.text.StyleConstants.CharacterConstants("component");c$.IconAttribute=c$.prototype.IconAttribute=new javax.swing.text.StyleConstants.CharacterConstants("icon");c$.ComposedTextAttribute=c$.prototype.ComposedTextAttribute=new javax.swing.text.StyleConstants("composed text");c$.FirstLineIndent=c$.prototype.FirstLineIndent=new javax.swing.text.StyleConstants.ParagraphConstants("FirstLineIndent");
227 c$.LeftIndent=c$.prototype.LeftIndent=new javax.swing.text.StyleConstants.ParagraphConstants("LeftIndent");c$.RightIndent=c$.prototype.RightIndent=new javax.swing.text.StyleConstants.ParagraphConstants("RightIndent");c$.LineSpacing=c$.prototype.LineSpacing=new javax.swing.text.StyleConstants.ParagraphConstants("LineSpacing");c$.SpaceAbove=c$.prototype.SpaceAbove=new javax.swing.text.StyleConstants.ParagraphConstants("SpaceAbove");c$.SpaceBelow=c$.prototype.SpaceBelow=new javax.swing.text.StyleConstants.ParagraphConstants("SpaceBelow");
228 c$.Alignment=c$.prototype.Alignment=new javax.swing.text.StyleConstants.ParagraphConstants("Alignment");c$.TabSet=c$.prototype.TabSet=new javax.swing.text.StyleConstants.ParagraphConstants("TabSet");c$.Orientation=c$.prototype.Orientation=new javax.swing.text.StyleConstants.ParagraphConstants("Orientation");G(c$,"ALIGN_LEFT",0,"ALIGN_CENTER",1,"ALIGN_RIGHT",2,"ALIGN_JUSTIFIED",3);c$.keys=c$.prototype.keys=E(-1,[javax.swing.text.StyleConstants.NameAttribute,javax.swing.text.StyleConstants.ResolveAttribute,
229 javax.swing.text.StyleConstants.BidiLevel,javax.swing.text.StyleConstants.FontFamily,javax.swing.text.StyleConstants.FontSize,javax.swing.text.StyleConstants.Bold,javax.swing.text.StyleConstants.Italic,javax.swing.text.StyleConstants.Underline,javax.swing.text.StyleConstants.StrikeThrough,javax.swing.text.StyleConstants.Superscript,javax.swing.text.StyleConstants.Subscript,javax.swing.text.StyleConstants.Foreground,javax.swing.text.StyleConstants.Background,javax.swing.text.StyleConstants.ComponentAttribute,
230 javax.swing.text.StyleConstants.IconAttribute,javax.swing.text.StyleConstants.FirstLineIndent,javax.swing.text.StyleConstants.LeftIndent,javax.swing.text.StyleConstants.RightIndent,javax.swing.text.StyleConstants.LineSpacing,javax.swing.text.StyleConstants.SpaceAbove,javax.swing.text.StyleConstants.SpaceBelow,javax.swing.text.StyleConstants.Alignment,javax.swing.text.StyleConstants.TabSet,javax.swing.text.StyleConstants.Orientation,javax.swing.text.StyleConstants.ModelAttribute,javax.swing.text.StyleConstants.ComposedTextAttribute])});
231 p("javax.swing.text");q("java.util.Enumeration javax.swing.text.AbstractDocument $.AttributeSet $.Style java.util.Collections $.HashMap $.Hashtable $.Vector javax.swing.event.EventListenerList javax.swing.text.SimpleAttributeSet".split(" "),"javax.swing.text.StyleContext","java.util.NoSuchElementException java.awt.Font $.Toolkit javax.swing.SwingUtilities javax.swing.event.ChangeEvent $.ChangeListener javax.swing.text.MutableAttributeSet $.StyleConstants".split(" "),function(){c$=s(function(){this.search=
232 this.attributesPool=this.fontTable=this.fontSearch=this.styles=null;H("javax.swing.text.StyleContext.SmallAttributeSet")||javax.swing.text.StyleContext.$StyleContext$SmallAttributeSet$();H("javax.swing.text.StyleContext.KeyEnumeration")||javax.swing.text.StyleContext.$StyleContext$KeyEnumeration$();H("javax.swing.text.StyleContext.KeyBuilder")||javax.swing.text.StyleContext.$StyleContext$KeyBuilder$();H("javax.swing.text.StyleContext.NamedStyle")||javax.swing.text.StyleContext.$StyleContext$NamedStyle$();
233 r(this,arguments)},javax.swing.text,"StyleContext",null,javax.swing.text.AbstractDocument.AttributeContext);J(c$,function(){this.fontSearch=new javax.swing.text.StyleContext.FontKey(null,0,0);this.fontTable=new java.util.Hashtable;this.attributesPool=java.util.Collections.synchronizedMap(new java.util.HashMap);this.search=new javax.swing.text.SimpleAttributeSet});c$.getDefaultStyleContext=d(c$,"getDefaultStyleContext",function(){null==javax.swing.text.StyleContext.defaultContext&&(javax.swing.text.StyleContext.defaultContext=
234 new javax.swing.text.StyleContext);return javax.swing.text.StyleContext.defaultContext});m(c$,function(){this.styles=C(javax.swing.text.StyleContext.NamedStyle,this,null,null);this.addStyle("default",null)});d(c$,"addStyle",function(a,b){var c=C(javax.swing.text.StyleContext.NamedStyle,this,null,a,b);null!=a&&this.styles.addAttribute(a,c);return c},"~S,javax.swing.text.Style");d(c$,"removeStyle",function(a){this.styles.removeAttribute(a)},"~S");d(c$,"getStyle",function(a){return this.styles.getAttribute(a)},
235 "~S");d(c$,"getStyleNames",function(){return this.styles.getAttributeNames()});d(c$,"addChangeListener",function(a){this.styles.addChangeListener(a)},"javax.swing.event.ChangeListener");d(c$,"removeChangeListener",function(a){this.styles.removeChangeListener(a)},"javax.swing.event.ChangeListener");d(c$,"getChangeListeners",function(){return this.styles.getChangeListeners()});d(c$,"getFont",function(a){var b=0;javax.swing.text.StyleConstants.isBold(a)&&(b|=1);javax.swing.text.StyleConstants.isItalic(a)&&
236 (b|=2);var c=javax.swing.text.StyleConstants.getFontFamily(a),f=javax.swing.text.StyleConstants.getFontSize(a);if(javax.swing.text.StyleConstants.isSuperscript(a)||javax.swing.text.StyleConstants.isSubscript(a))f-=2;return this.getFont(c,b,f)},"javax.swing.text.AttributeSet");d(c$,"getForeground",function(a){return javax.swing.text.StyleConstants.getForeground(a)},"javax.swing.text.AttributeSet");d(c$,"getBackground",function(a){return javax.swing.text.StyleConstants.getBackground(a)},"javax.swing.text.AttributeSet");
237 d(c$,"getFont",function(a,b,c){this.fontSearch.setValue(a,b,c);var f=this.fontTable.get(this.fontSearch);if(null==f){var l=this.getStyle("default");null!=l&&(l=l.getAttribute("FONT_ATTRIBUTE_KEY"),null!=l&&l.getFamily().equalsIgnoreCase(a)&&(f=l.deriveFont(b,c)));null==f&&(f=new java.awt.Font(a,b,c));a=new javax.swing.text.StyleContext.FontKey(a,b,c);this.fontTable.put(a,f)}return f},"~S,~N,~N");d(c$,"getFontMetrics",function(a){return java.awt.Toolkit.getDefaultToolkit().getFontMetrics(a)},"java.awt.Font");
238 e(c$,"addAttribute",function(a,b,c){if(a.getAttributeCount()+1<=this.getCompressionThreshold())return this.search.removeAttributes(this.search),this.search.addAttributes(a),this.search.addAttribute(b,c),this.reclaim(a),this.getImmutableUniqueSet();a=this.getMutableAttributeSet(a);a.addAttribute(b,c);return a},"javax.swing.text.AttributeSet,~O,~O");e(c$,"addAttributes",function(a,b){if(a.getAttributeCount()+b.getAttributeCount()<=this.getCompressionThreshold())return this.search.removeAttributes(this.search),
239 this.search.addAttributes(a),this.search.addAttributes(b),this.reclaim(a),this.getImmutableUniqueSet();var c=this.getMutableAttributeSet(a);c.addAttributes(b);return c},"javax.swing.text.AttributeSet,javax.swing.text.AttributeSet");e(c$,"removeAttribute",function(a,b){if(a.getAttributeCount()-1<=this.getCompressionThreshold())return this.search.removeAttributes(this.search),this.search.addAttributes(a),this.search.removeAttribute(b),this.reclaim(a),this.getImmutableUniqueSet();var c=this.getMutableAttributeSet(a);
240 c.removeAttribute(b);return c},"javax.swing.text.AttributeSet,~O");d(c$,"removeAttributes",function(a,b){if(a.getAttributeCount()<=this.getCompressionThreshold())return this.search.removeAttributes(this.search),this.search.addAttributes(a),this.search.removeAttributes(b),this.reclaim(a),this.getImmutableUniqueSet();var c=this.getMutableAttributeSet(a);c.removeAttributes(b);return c},"javax.swing.text.AttributeSet,java.util.Enumeration");d(c$,"removeAttributes",function(a,b){if(a.getAttributeCount()<=
241 this.getCompressionThreshold())return this.search.removeAttributes(this.search),this.search.addAttributes(a),this.search.removeAttributes(b),this.reclaim(a),this.getImmutableUniqueSet();var c=this.getMutableAttributeSet(a);c.removeAttributes(b);return c},"javax.swing.text.AttributeSet,javax.swing.text.AttributeSet");e(c$,"getEmptySet",function(){return javax.swing.text.SimpleAttributeSet.EMPTY});e(c$,"reclaim",function(){javax.swing.SwingUtilities.isEventDispatchThread()&&this.attributesPool.size()},
242 "javax.swing.text.AttributeSet");d(c$,"getCompressionThreshold",function(){return 9});d(c$,"createSmallAttributeSet",function(a){return C(javax.swing.text.StyleContext.SmallAttributeSet,this,null,a)},"javax.swing.text.AttributeSet");d(c$,"createLargeAttributeSet",function(a){return new javax.swing.text.SimpleAttributeSet(a)},"javax.swing.text.AttributeSet");d(c$,"removeUnusedSets",function(){this.attributesPool.size()});d(c$,"getImmutableUniqueSet",function(){return null});d(c$,"getMutableAttributeSet",
243 function(a){return v(a,javax.swing.text.MutableAttributeSet)&&a!==javax.swing.text.SimpleAttributeSet.EMPTY?a:this.createLargeAttributeSet(a)},"javax.swing.text.AttributeSet");d(c$,"toString",function(){this.removeUnusedSets();for(var a="",b=this.attributesPool.keySet().iterator();b.hasNext();)var c=b.next(),a=a+c+"\n";return a});c$.registerStaticAttributeKey=d(c$,"registerStaticAttributeKey",function(a){var b=a.getClass().getName()+"."+a.toString();null==javax.swing.text.StyleContext.freezeKeyMap&&
244 (javax.swing.text.StyleContext.freezeKeyMap=new java.util.Hashtable,javax.swing.text.StyleContext.thawKeyMap=new java.util.Hashtable);javax.swing.text.StyleContext.freezeKeyMap.put(a,b);javax.swing.text.StyleContext.thawKeyMap.put(b,a)},"~O");c$.getStaticAttribute=d(c$,"getStaticAttribute",function(a){return null==javax.swing.text.StyleContext.thawKeyMap||null==a?null:javax.swing.text.StyleContext.thawKeyMap.get(a)},"~O");c$.getStaticAttributeKey=d(c$,"getStaticAttributeKey",function(a){return a.getClass().getName()+
245 "."+a.toString()},"~O");c$.$StyleContext$SmallAttributeSet$=function(){A(self.c$);c$=s(function(){O(this,arguments);this.resolveParent=this.attributes=null;r(this,arguments)},javax.swing.text.StyleContext,"SmallAttributeSet",null,javax.swing.text.AttributeSet);m(c$,function(a){this.attributes=a;this.updateResolveParent()},"~A");m(c$,function(a){for(var b=a.getAttributeCount(),b=Array(2*b),c=a.getAttributeNames(),f=0;c.hasMoreElements();)b[f]=c.nextElement(),b[f+1]=a.getAttribute(b[f]),f+=2;this.attributes=
246 b;this.updateResolveParent()},"javax.swing.text.AttributeSet");d(c$,"updateResolveParent",function(){this.resolveParent=null;for(var a=this.attributes,b=0;b<a.length;b+=2)if(a[b]===javax.swing.text.StyleConstants.ResolveAttribute){this.resolveParent=a[b+1];break}});d(c$,"getLocalAttribute",function(a){if(a===javax.swing.text.StyleConstants.ResolveAttribute)return this.resolveParent;for(var b=this.attributes,c=0;c<b.length;c+=2)if(a.equals(b[c]))return b[c+1];return null},"~O");e(c$,"toString",function(){for(var a=
247 "{",b=this.attributes,c=0;c<b.length;c+=2)a=v(b[c+1],javax.swing.text.AttributeSet)?a+b[c]+"=AttributeSet,":a+b[c]+"="+b[c+1]+",";return a+"}"});d(c$,"hashCode",function(){for(var a=0,b=this.attributes,c=1;c<b.length;c+=2)a^=b[c].hashCode();return a});d(c$,"equals",function(a){return v(a,javax.swing.text.AttributeSet)?this.getAttributeCount()==a.getAttributeCount()&&this.containsAttributes(a):!1},"~O");e(c$,"clone",function(){return this});d(c$,"getAttributeCount",function(){return F(this.attributes.length/
248 2)});e(c$,"isDefined",function(a){for(var b=this.attributes,c=b.length,f=0;f<c;f+=2)if(a.equals(b[f]))return!0;return!1},"~O");e(c$,"isEqual",function(a){return v(a,javax.swing.text.StyleContext.SmallAttributeSet)?a===this:this.getAttributeCount()==a.getAttributeCount()&&this.containsAttributes(a)},"javax.swing.text.AttributeSet");e(c$,"copyAttributes",function(){return this});d(c$,"getAttribute",function(a){var b=this.getLocalAttribute(a);if(null==b){var c=this.getResolveParent();null!=c&&(b=c.getAttribute(a))}return b},
249 "~O");d(c$,"getAttributeNames",function(){return C(javax.swing.text.StyleContext.KeyEnumeration,this,null,this.attributes)});e(c$,"containsAttribute",function(a,b){return b.equals(this.getAttribute(a))},"~O,~O");e(c$,"containsAttributes",function(a){for(var b=!0,c=a.getAttributeNames();b&&c.hasMoreElements();)b=c.nextElement(),b=a.getAttribute(b).equals(this.getAttribute(b));return b},"javax.swing.text.AttributeSet");e(c$,"getResolveParent",function(){return this.resolveParent});c$=z()};c$.$StyleContext$KeyEnumeration$=
250 function(){A(self.c$);c$=s(function(){O(this,arguments);this.attr=null;this.i=0;r(this,arguments)},javax.swing.text.StyleContext,"KeyEnumeration",null,java.util.Enumeration);m(c$,function(a){this.attr=a;this.i=0},"~A");e(c$,"hasMoreElements",function(){return this.i<this.attr.length});e(c$,"nextElement",function(){if(this.i<this.attr.length){var a=this.attr[this.i];this.i+=2;return a}throw new java.util.NoSuchElementException;});c$=z()};c$.$StyleContext$KeyBuilder$=function(){A(self.c$);c$=s(function(){O(this,
251 arguments);this.data=this.keys=null;r(this,arguments)},javax.swing.text.StyleContext,"KeyBuilder");J(c$,function(){this.keys=new java.util.Vector;this.data=new java.util.Vector});d(c$,"initialize",function(a){if(v(a,javax.swing.text.StyleContext.SmallAttributeSet))this.initialize(a.attributes);else{this.keys.removeAllElements();this.data.removeAllElements();for(var b=a.getAttributeNames();b.hasMoreElements();){var c=b.nextElement();this.addAttribute(c,a.getAttribute(c))}}},"javax.swing.text.AttributeSet");
252 d(c$,"initialize",function(a){this.keys.removeAllElements();this.data.removeAllElements();for(var b=a.length,c=0;c<b;c+=2)this.keys.addElement(a[c]),this.data.addElement(a[c+1])},"~A");d(c$,"createTable",function(){for(var a=this.keys.size(),b=Array(2*a),c=0;c<a;c++){var f=2*c;b[f]=this.keys.elementAt(c);b[f+1]=this.data.elementAt(c)}return b});d(c$,"getCount",function(){return this.keys.size()});d(c$,"addAttribute",function(a,b){this.keys.addElement(a);this.data.addElement(b)},"~O,~O");d(c$,"addAttributes",
253 function(a){if(v(a,javax.swing.text.StyleContext.SmallAttributeSet)){var b=a.attributes,c=b.length;for(a=0;a<c;a+=2)this.addAttribute(b[a],b[a+1])}else for(b=a.getAttributeNames();b.hasMoreElements();)c=b.nextElement(),this.addAttribute(c,a.getAttribute(c))},"javax.swing.text.AttributeSet");d(c$,"removeAttribute",function(a){for(var b=this.keys.size(),c=0;c<b;c++)if(this.keys.elementAt(c).equals(a)){this.keys.removeElementAt(c);this.data.removeElementAt(c);break}},"~O");d(c$,"removeAttributes",function(a){for(;a.hasMoreElements();){var b=
254 a.nextElement();this.removeAttribute(b)}},"java.util.Enumeration");d(c$,"removeAttributes",function(a){for(var b=a.getAttributeNames();b.hasMoreElements();){var c=b.nextElement(),f=a.getAttribute(c);this.removeSearchAttribute(c,f)}},"javax.swing.text.AttributeSet");d(c$,"removeSearchAttribute",function(a,b){for(var c=this.keys.size(),f=0;f<c;f++)if(this.keys.elementAt(f).equals(a)){this.data.elementAt(f).equals(b)&&(this.keys.removeElementAt(f),this.data.removeElementAt(f));break}},"~O,~O");c$=z()};
255 c$.$StyleContext$NamedStyle$=function(){A(self.c$);c$=s(function(){O(this,arguments);this.attributes=this.changeEvent=this.listenerList=null;r(this,arguments)},javax.swing.text.StyleContext,"NamedStyle",null,javax.swing.text.Style);J(c$,function(){this.listenerList=new javax.swing.event.EventListenerList});m(c$,function(a,b){this.attributes=this.b$["javax.swing.text.StyleContext"].getEmptySet();null!=a&&this.setName(a);null!=b&&this.setResolveParent(b)},"~S,javax.swing.text.Style");m(c$,function(a){this.construct(null,
256 a)},"javax.swing.text.Style");m(c$,function(){this.attributes=this.b$["javax.swing.text.StyleContext"].getEmptySet()});d(c$,"toString",function(){return"NamedStyle:"+this.getName()+" "+this.attributes});e(c$,"getName",function(){return this.isDefined(javax.swing.text.StyleConstants.NameAttribute)?this.getAttribute(javax.swing.text.StyleConstants.NameAttribute).toString():null});d(c$,"setName",function(a){null!=a&&this.addAttribute(javax.swing.text.StyleConstants.NameAttribute,a)},"~S");e(c$,"addChangeListener",
257 function(a){this.listenerList.add(javax.swing.event.ChangeListener,a)},"javax.swing.event.ChangeListener");e(c$,"removeChangeListener",function(a){this.listenerList.remove(javax.swing.event.ChangeListener,a)},"javax.swing.event.ChangeListener");d(c$,"getChangeListeners",function(){return this.listenerList.getListeners(javax.swing.event.ChangeListener)});d(c$,"fireStateChanged",function(){for(var a=this.listenerList.getListenerList(),b=a.length-2;0<=b;b-=2)a[b]===javax.swing.event.ChangeListener&&
258 (null==this.changeEvent&&(this.changeEvent=new javax.swing.event.ChangeEvent(this)),a[b+1].stateChanged(this.changeEvent))});d(c$,"getListeners",function(a){return this.listenerList.getListeners(a)},"Class");d(c$,"getAttributeCount",function(){return this.attributes.getAttributeCount()});d(c$,"isDefined",function(a){return this.attributes.isDefined(a)},"~O");d(c$,"isEqual",function(a){return this.attributes.isEqual(a)},"javax.swing.text.AttributeSet");d(c$,"copyAttributes",function(){var a=C(javax.swing.text.StyleContext.NamedStyle,
259 this,null);a.attributes=this.attributes.copyAttributes();return a});d(c$,"getAttribute",function(a){return this.attributes.getAttribute(a)},"~O");d(c$,"getAttributeNames",function(){return this.attributes.getAttributeNames()});d(c$,"containsAttribute",function(a,b){return this.attributes.containsAttribute(a,b)},"~O,~O");d(c$,"containsAttributes",function(a){return this.attributes.containsAttributes(a)},"javax.swing.text.AttributeSet");d(c$,"getResolveParent",function(){return this.attributes.getResolveParent()});
260 e(c$,"addAttribute",function(a,b){this.attributes=this.b$["javax.swing.text.StyleContext"].addAttribute(this.attributes,a,b);this.fireStateChanged()},"~O,~O");e(c$,"addAttributes",function(a){this.attributes=this.b$["javax.swing.text.StyleContext"].addAttributes(this.attributes,a);this.fireStateChanged()},"javax.swing.text.AttributeSet");e(c$,"removeAttribute",function(a){this.attributes=this.b$["javax.swing.text.StyleContext"].removeAttribute(this.attributes,a);this.fireStateChanged()},"~O");d(c$,
261 "removeAttributes",function(a){this.attributes=this.b$["javax.swing.text.StyleContext"].removeAttributes(this.attributes,a);this.fireStateChanged()},"java.util.Enumeration");d(c$,"removeAttributes",function(a){var b=this.b$["javax.swing.text.StyleContext"];this.attributes=a===this?b.getEmptySet():b.removeAttributes(this.attributes,a);this.fireStateChanged()},"javax.swing.text.AttributeSet");e(c$,"setResolveParent",function(a){null!=a?this.addAttribute(javax.swing.text.StyleConstants.ResolveAttribute,
262 a):this.removeAttribute(javax.swing.text.StyleConstants.ResolveAttribute)},"javax.swing.text.AttributeSet");c$=z()};A(self.c$);c$=s(function(){this.family=null;this.size=this.style=0;r(this,arguments)},javax.swing.text.StyleContext,"FontKey");m(c$,function(a,b,c){this.setValue(a,b,c)},"~S,~N,~N");d(c$,"setValue",function(a,b,c){this.family=null!=a?a.intern():null;this.style=b;this.size=c},"~S,~N,~N");e(c$,"hashCode",function(){return(null!=this.family?this.family.hashCode():0)^this.style^this.size});
263 e(c$,"equals",function(a){return v(a,javax.swing.text.StyleContext.FontKey)?this.size==a.size&&this.style==a.style&&this.family===a.family:!1},"~O");c$=z();G(c$,"defaultContext",null,"DEFAULT_STYLE","default","freezeKeyMap",null,"thawKeyMap",null,"THRESHOLD",9)});p("javax.swing.text");q(["javax.swing.text.MutableAttributeSet"],"javax.swing.text.Style",null,function(){M(javax.swing.text,"Style",javax.swing.text.MutableAttributeSet)});p("javax.swing.text");q(["javax.swing.text.AttributeSet","$.MutableAttributeSet",
264 "java.util.Hashtable"],"javax.swing.text.SimpleAttributeSet",["java.util.Enumeration","$.NoSuchElementException","javax.swing.text.StyleConstants"],function(){c$=s(function(){this.table=null;r(this,arguments)},javax.swing.text,"SimpleAttributeSet",null,[javax.swing.text.MutableAttributeSet,Cloneable]);J(c$,function(){this.table=new java.util.Hashtable(3)});m(c$,function(){});m(c$,function(a){this.addAttributes(a)},"javax.swing.text.AttributeSet");d(c$,"isEmpty",function(){return this.table.isEmpty()});
265 d(c$,"getAttributeCount",function(){return this.table.size()});e(c$,"isDefined",function(a){return this.table.containsKey(a)},"~O");e(c$,"isEqual",function(a){return this.getAttributeCount()==a.getAttributeCount()&&this.containsAttributes(a)},"javax.swing.text.AttributeSet");e(c$,"copyAttributes",function(){return this.clone()});d(c$,"getAttributeNames",function(){return this.table.keys()});d(c$,"getAttribute",function(a){var b=this.table.get(a);if(null==b){var c=this.getResolveParent();null!=c&&
266 (b=c.getAttribute(a))}return b},"~O");e(c$,"containsAttribute",function(a,b){return b.equals(this.getAttribute(a))},"~O,~O");e(c$,"containsAttributes",function(a){for(var b=!0,c=a.getAttributeNames();b&&c.hasMoreElements();)b=c.nextElement(),b=a.getAttribute(b).equals(this.getAttribute(b));return b},"javax.swing.text.AttributeSet");e(c$,"addAttribute",function(a,b){this.table.put(a,b)},"~O,~O");e(c$,"addAttributes",function(a){for(var b=a.getAttributeNames();b.hasMoreElements();){var c=b.nextElement();
267 this.addAttribute(c,a.getAttribute(c))}},"javax.swing.text.AttributeSet");e(c$,"removeAttribute",function(a){this.table.remove(a)},"~O");d(c$,"removeAttributes",function(a){for(;a.hasMoreElements();)this.removeAttribute(a.nextElement())},"java.util.Enumeration");d(c$,"removeAttributes",function(a){if(a===this)this.table.clear();else for(var b=a.getAttributeNames();b.hasMoreElements();){var c=b.nextElement();a.getAttribute(c).equals(this.getAttribute(c))&&this.removeAttribute(c)}},"javax.swing.text.AttributeSet");
268 e(c$,"getResolveParent",function(){return this.table.get(javax.swing.text.StyleConstants.ResolveAttribute)});e(c$,"setResolveParent",function(a){this.addAttribute(javax.swing.text.StyleConstants.ResolveAttribute,a)},"javax.swing.text.AttributeSet");d(c$,"clone",function(){var a;try{a=K(this,javax.swing.text.SimpleAttributeSet,"clone",[]),a.table=this.table.clone()}catch(b){if(y(b,CloneNotSupportedException))a=null;else throw b;}return a});e(c$,"hashCode",function(){return this.table.hashCode()});
269 d(c$,"equals",function(a){return this===a?!0:v(a,javax.swing.text.AttributeSet)?this.isEqual(a):!1},"~O");e(c$,"toString",function(){for(var a="",b=this.getAttributeNames();b.hasMoreElements();)var c=b.nextElement(),f=this.getAttribute(c),a=v(f,javax.swing.text.AttributeSet)?a+c+"=**AttributeSet** ":a+c+"="+f+" ";return a});A(self.c$);c$=B(javax.swing.text.SimpleAttributeSet,"EmptyAttributeSet",null,javax.swing.text.AttributeSet);d(c$,"getAttributeCount",function(){return 0});e(c$,"isDefined",function(){return!1},
270 "~O");e(c$,"isEqual",function(a){return 0==a.getAttributeCount()},"javax.swing.text.AttributeSet");e(c$,"copyAttributes",function(){return this});e(c$,"getAttribute",function(){return null},"~O");e(c$,"getAttributeNames",function(){return H("javax.swing.text.SimpleAttributeSet$EmptyAttributeSet$1")?0:javax.swing.text.SimpleAttributeSet.EmptyAttributeSet.$SimpleAttributeSet$EmptyAttributeSet$1$(),C(javax.swing.text.SimpleAttributeSet$EmptyAttributeSet$1,this,null)});e(c$,"containsAttribute",function(){return!1},
271 "~O,~O");e(c$,"containsAttributes",function(a){return 0==a.getAttributeCount()},"javax.swing.text.AttributeSet");e(c$,"getResolveParent",function(){return null});e(c$,"equals",function(a){return this===a?!0:v(a,javax.swing.text.AttributeSet)&&0==a.getAttributeCount()},"~O");e(c$,"hashCode",function(){return 0});c$.$SimpleAttributeSet$EmptyAttributeSet$1$=function(){A(self.c$);c$=L(javax.swing.text,"SimpleAttributeSet$EmptyAttributeSet$1",null,java.util.Enumeration);e(c$,"hasMoreElements",function(){return!1});
272 e(c$,"nextElement",function(){throw new java.util.NoSuchElementException;});c$=z()};c$=z();c$.EMPTY=c$.prototype.EMPTY=new javax.swing.text.SimpleAttributeSet.EmptyAttributeSet});p("javax.swing.text");q(null,"javax.swing.text.Utilities",["javax.swing.JComponent","javax.swing.text.CompositeView","$.Position","$.StyleConstants","$.StyledDocument"],function(){c$=B(javax.swing.text,"Utilities");c$.getJComponent=d(c$,"getJComponent",function(a){return null!=a&&(a=a.getContainer(),v(a,javax.swing.JComponent))?
273 a:null},"javax.swing.text.View");c$.getTabbedTextWidth=d(c$,"getTabbedTextWidth",function(a,b,c,f,l){return javax.swing.text.Utilities.getTabbedTextWidth(null,a,b,c,f,l,null)},"javax.swing.text.Segment,java.awt.FontMetrics,~N,javax.swing.text.TabExpander,~N");c$.getTabbedTextWidth=d(c$,"getTabbedTextWidth",function(a,b,c,f,l,d,g){var h=f,j=b.array,e=b.offset;b=b.offset+b.count;var x=0,u=0,D=-1,m=0,p=0;if(null!=g){p=-d+e;u=null;if(null!=a&&null!=(u=a.getParent()))p+=u.getStartOffset();u=g[0];D=g[1]+
274 p;m=g[2]+p;p=g[3]+p}for(a=e;a<b;a++)"\t"==j[a]||(0!=u||a<=D)&&" "==j[a]&&m<=a&&a<=p?(h+=c.charsWidth(j,a-x,x),x=0,"\t"==j[a]?h=null!=l?I(l.nextTabStop(h,d+a-e)):h+c.charWidth(" "):" "==j[a]&&(h+=c.charWidth(" ")+u,a<=D&&h++)):"\n"==j[a]?(h+=c.charsWidth(j,a-x,x),x=0):x++;h+=c.charsWidth(j,b-x,x);return h-f},"javax.swing.text.View,javax.swing.text.Segment,java.awt.FontMetrics,~N,javax.swing.text.TabExpander,~N,~A");c$.getTabbedTextOffset=d(c$,"getTabbedTextOffset",function(a,b,c,f,l,d){return javax.swing.text.Utilities.getTabbedTextOffset(a,
275 b,c,f,l,d,!0)},"javax.swing.text.Segment,java.awt.FontMetrics,~N,~N,javax.swing.text.TabExpander,~N");c$.getTabbedTextOffset=d(c$,"getTabbedTextOffset",function(a,b,c,f,l,d,g,h){return javax.swing.text.Utilities.getTabbedTextOffset(a,b,c,f,l,d,g,!0,h)},"javax.swing.text.View,javax.swing.text.Segment,java.awt.FontMetrics,~N,~N,javax.swing.text.TabExpander,~N,~A");c$.getTabbedTextOffset=d(c$,"getTabbedTextOffset",function(a,b,c,f,l,d,g){return javax.swing.text.Utilities.getTabbedTextOffset(null,a,b,
276 c,f,l,d,g,null)},"javax.swing.text.Segment,java.awt.FontMetrics,~N,~N,javax.swing.text.TabExpander,~N,~B");c$.getTabbedTextOffset=d(c$,"getTabbedTextOffset",function(a,b,c,f,l,d,g,h,j){if(f>=l)return 0;var e=f,x=b.array,u=b.offset,D=b.count,m=0,p=-1,q=0,r=0;if(null!=j){r=-g+u;m=null;if(null!=a&&null!=(m=a.getParent()))r+=m.getStartOffset();m=j[0];p=j[1]+r;q=j[2]+r;r=j[3]+r}a=b.offset+b.count;for(b=b.offset;b<a;b++){"\t"==x[b]||(0!=m||b<=p)&&" "==x[b]&&q<=b&&b<=r?"\t"==x[b]?e=null!=d?I(d.nextTabStop(e,
277 g+b-u)):e+c.charWidth(" "):" "==x[b]&&(e+=c.charWidth(" ")+m,b<=p&&e++):e+=c.charWidth(x[b]);if(l>=f&&l<e)return!1==h||l-f<e-l?b-u:b+1-u;f=e}return D},"javax.swing.text.View,javax.swing.text.Segment,java.awt.FontMetrics,~N,~N,javax.swing.text.TabExpander,~N,~B,~A");c$.getBreakLocation=d(c$,"getBreakLocation",function(){return 0},"javax.swing.text.Segment,java.awt.FontMetrics,~N,~N,javax.swing.text.TabExpander,~N");c$.getRowStart=d(c$,"getRowStart",function(a,b){var c=a.modelToView(b);if(null==c)return-1;
278 for(var f=b,l=c.y;null!=c&&l==c.y;)0!=c.height&&(b=f),f-=1,c=0<=f?a.modelToView(f):null;return b},"javax.swing.text.JTextComponent,~N");c$.getRowEnd=d(c$,"getRowEnd",function(a,b){var c=a.modelToView(b);if(null==c)return-1;for(var f=a.getDocument().getLength(),l=b,d=c.y;null!=c&&d==c.y;)0!=c.height&&(b=l),l+=1,c=l<=f?a.modelToView(l):null;return b},"javax.swing.text.JTextComponent,~N");c$.getPositionAbove=d(c$,"getPositionAbove",function(a,b,c){var f=javax.swing.text.Utilities.getRowStart(a,b)-1;
279 if(0>f)return-1;var l=2147483647,d=0,g=null;0<=f&&(g=a.modelToView(f),d=g.y);for(;null!=g&&d==g.y;)g=Math.abs(g.x-c),g<l&&(b=f,l=g),f-=1,g=0<=f?a.modelToView(f):null;return b},"javax.swing.text.JTextComponent,~N,~N");c$.getPositionBelow=d(c$,"getPositionBelow",function(a,b,c){var f=javax.swing.text.Utilities.getRowEnd(a,b)+1;if(0>=f)return-1;var l=2147483647,d=a.getDocument().getLength(),g=0,h=null;f<=d&&(h=a.modelToView(f),g=h.y);for(;null!=h&&g==h.y;)h=Math.abs(c-h.x),h<l&&(b=f,l=h),f+=1,h=f<=d?
280 a.modelToView(f):null;return b},"javax.swing.text.JTextComponent,~N,~N");c$.getWordStart=d(c$,"getWordStart",function(){return 0},"javax.swing.text.JTextComponent,~N");c$.getWordEnd=d(c$,"getWordEnd",function(){return 0},"javax.swing.text.JTextComponent,~N");c$.getNextWord=d(c$,"getNextWord",function(a,b){var c,f=javax.swing.text.Utilities.getParagraphElement(a,b);for(c=javax.swing.text.Utilities.getNextWordInParagraph(a,f,b,!1);-1==c;c=javax.swing.text.Utilities.getNextWordInParagraph(a,f,b,!0))b=
281 f.getEndOffset(),f=javax.swing.text.Utilities.getParagraphElement(a,b);return c},"javax.swing.text.JTextComponent,~N");c$.getNextWordInParagraph=d(c$,"getNextWordInParagraph",function(){return 0},"javax.swing.text.JTextComponent,javax.swing.text.Element,~N,~B");c$.getPreviousWord=d(c$,"getPreviousWord",function(a,b){var c,f=javax.swing.text.Utilities.getParagraphElement(a,b);for(c=javax.swing.text.Utilities.getPrevWordInParagraph(a,f,b);-1==c;c=javax.swing.text.Utilities.getPrevWordInParagraph(a,
282 f,b))b=f.getStartOffset()-1,f=javax.swing.text.Utilities.getParagraphElement(a,b);return c},"javax.swing.text.JTextComponent,~N");c$.getPrevWordInParagraph=d(c$,"getPrevWordInParagraph",function(){return 0},"javax.swing.text.JTextComponent,javax.swing.text.Element,~N");c$.getParagraphElement=d(c$,"getParagraphElement",function(a,b){var c=a.getDocument();if(v(c,javax.swing.text.StyledDocument))return c.getParagraphElement(b);var c=c.getDefaultRootElement(),f=c.getElementIndex(b),c=c.getElement(f);
283 return b>=c.getStartOffset()&&b<c.getEndOffset()?c:null},"javax.swing.text.JTextComponent,~N");c$.isComposedTextElement=d(c$,"isComposedTextElement",function(a,b){for(var c=a.getDefaultRootElement();!c.isLeaf();)c=c.getElement(c.getElementIndex(b));return javax.swing.text.Utilities.isComposedTextElement(c)},"javax.swing.text.Document,~N");c$.isComposedTextElement=d(c$,"isComposedTextElement",function(a){a=a.getAttributes();return javax.swing.text.Utilities.isComposedTextAttributeDefined(a)},"javax.swing.text.Element");
284 c$.isComposedTextAttributeDefined=d(c$,"isComposedTextAttributeDefined",function(a){return null!=a&&a.isDefined(javax.swing.text.StyleConstants.ComposedTextAttribute)},"javax.swing.text.AttributeSet");c$.isLeftToRight=d(c$,"isLeftToRight",function(a){return a.getComponentOrientation().isLeftToRight()},"java.awt.Component");c$.getNextVisualPositionFrom=d(c$,"getNextVisualPositionFrom",function(a,b,c,f,l,d){if(0==a.getViewCount())return b;var g=1==l||7==l,h;if(-1==b){var j=g?a.getViewCount()-1:0,e=
285 a.getView(j),x=a.getChildAllocation(j,f);h=e.getNextVisualPositionFrom(b,c,x,l,d);-1==h&&(!g&&1<a.getViewCount())&&(e=a.getView(1),x=a.getChildAllocation(1,f),h=e.getNextVisualPositionFrom(-1,d[0],x,l,d))}else{g=g?-1:1;j=c===javax.swing.text.Position.Bias.Backward&&0<b?a.getViewIndex(b-1,javax.swing.text.Position.Bias.Forward):a.getViewIndex(b,javax.swing.text.Position.Bias.Forward);e=a.getView(j);x=a.getChildAllocation(j,f);h=e.getNextVisualPositionFrom(b,c,x,l,d);if((3==l||7==l)&&v(a,javax.swing.text.CompositeView)&&
286 a.flipEastAndWestAtEnds(b,c))g*=-1;j+=g;if(-1==h&&0<=j&&j<a.getViewCount()){if(e=a.getView(j),x=a.getChildAllocation(j,f),h=e.getNextVisualPositionFrom(-1,c,x,l,d),h==b&&d[0]!==c)return javax.swing.text.Utilities.getNextVisualPositionFrom(a,b,d[0],f,l,d)}else if(-1!=h&&d[0]!==c&&(1==g&&e.getEndOffset()==h||-1==g&&e.getStartOffset()==h)&&0<=j&&j<a.getViewCount())e=a.getView(j),x=a.getChildAllocation(j,f),a=d[0],l=e.getNextVisualPositionFrom(-1,c,x,l,d),d[0]===c?h=l:d[0]=a}return h},"javax.swing.text.View,~N,javax.swing.text.Position.Bias,java.awt.Shape,~N,~A")});
287 p("javax.swing.text");q(["javax.swing.text.View"],"javax.swing.text.CompositeView","java.lang.IllegalArgumentException java.awt.Rectangle javax.swing.text.BadLocationException $.Position $.StyleConstants $.Utilities".split(" "),function(){c$=s(function(){this.children=null;this.bottom=this.top=this.right=this.left=this.nchildren=0;this.childAlloc=null;r(this,arguments)},javax.swing.text,"CompositeView",javax.swing.text.View);m(c$,function(a){t(this,javax.swing.text.CompositeView,[a]);this.children=
288 Array(1);this.nchildren=0;this.childAlloc=new java.awt.Rectangle},"javax.swing.text.Element");d(c$,"loadChildren",function(a){if(null!=a){var b=this.getElement(),c=b.getElementCount();if(0<c){for(var f=Array(c),l=0;l<c;l++)f[l]=a.create(b.getElement(l));this.replace(0,0,f)}}},"javax.swing.text.ViewFactory");d(c$,"setParent",function(a){K(this,javax.swing.text.CompositeView,"setParent",[a]);null!=a&&0==this.nchildren&&(a=this.getViewFactory(),this.loadChildren(a))},"javax.swing.text.View");e(c$,"getViewCount",
289 function(){return this.nchildren});e(c$,"getView",function(a){return this.children[a]},"~N");e(c$,"replace",function(a,b,c){null==c&&(c=javax.swing.text.CompositeView.ZERO);for(var f=a;f<a+b;f++)this.children[f].getParent()===this&&this.children[f].setParent(null),this.children[f]=null;f=c.length-b;b=a+b;var l=this.nchildren-b,d=b+f;if(this.nchildren+f>=this.children.length){var g=Math.max(2*this.children.length,this.nchildren+f),g=Array(g);System.arraycopy(this.children,0,g,0,a);System.arraycopy(c,
290 0,g,a,c.length);System.arraycopy(this.children,b,g,d,l);this.children=g}else System.arraycopy(this.children,b,this.children,d,l),System.arraycopy(c,0,this.children,a,c.length);this.nchildren+=f;for(f=0;f<c.length;f++)c[f].setParent(this)},"~N,~N,~A");e(c$,"getChildAllocation",function(a,b){var c=this.getInsideAllocation(b);this.childAllocation(a,c);return c},"~N,java.awt.Shape");d(c$,"modelToView",function(a,b,c){var f=c===javax.swing.text.Position.Bias.Backward,l=f?Math.max(0,a-1):a;if(f&&l<this.getStartOffset())return null;
291 f=this.getViewIndexAtPosition(l);if(-1!=f&&f<this.getViewCount()){var d=this.getView(f);if(null!=d&&l>=d.getStartOffset()&&l<d.getEndOffset()){l=this.getChildAllocation(f,b);if(null==l)return null;l=d.modelToView(a,l,c);null==l&&d.getEndOffset()==a&&++f<this.getViewCount()&&(d=this.getView(f),l=d.modelToView(a,this.getChildAllocation(f,b),c));return l}}throw new javax.swing.text.BadLocationException("Position not represented by view",a);},"~N,java.awt.Shape,javax.swing.text.Position.Bias");d(c$,"modelToView",
292 function(a,b,c,f,l){if(a==this.getStartOffset()&&c==this.getEndOffset())return l;var d=this.getInsideAllocation(l),g=new java.awt.Rectangle(d),h=this.getViewAtPosition(b===javax.swing.text.Position.Bias.Backward?Math.max(0,a-1):a,g),j=new java.awt.Rectangle(d),e=this.getViewAtPosition(f===javax.swing.text.Position.Bias.Backward?Math.max(0,c-1):c,j);if(h===e)return null==h?l:h.modelToView(a,b,c,f,g);l=this.getViewCount();for(var x=0;x<l;){var u;if((u=this.getView(x))===h||u===e){var D,m=new java.awt.Rectangle;
293 u===h?(u=h.modelToView(a,b,h.getEndOffset(),javax.swing.text.Position.Bias.Backward,g).getBounds(),D=e):(u=e.modelToView(e.getStartOffset(),javax.swing.text.Position.Bias.Forward,c,f,j).getBounds(),D=h);for(;++x<l&&this.getView(x)!==D;)m.setBounds(d),this.childAllocation(x,m),u.add(m);null!=D&&(a=D===e?e.modelToView(e.getStartOffset(),javax.swing.text.Position.Bias.Forward,c,f,j):h.modelToView(a,b,h.getEndOffset(),javax.swing.text.Position.Bias.Backward,g),v(a,java.awt.Rectangle)?u.add(a):u.add(a.getBounds()));
294 return u}x++}throw new javax.swing.text.BadLocationException("Position not represented by view",a);},"~N,javax.swing.text.Position.Bias,~N,javax.swing.text.Position.Bias,java.awt.Shape");d(c$,"viewToModel",function(a,b,c,f){var l=this.getInsideAllocation(c);if(this.isBefore(I(a),I(b),l)){a=-1;try{a=this.getNextVisualPositionFrom(-1,javax.swing.text.Position.Bias.Forward,c,3,f)}catch(d){if(!y(d,javax.swing.text.BadLocationException)&&!y(d,IllegalArgumentException))throw d;}-1==a&&(a=this.getStartOffset(),
295 f[0]=javax.swing.text.Position.Bias.Forward);return a}if(this.isAfter(I(a),I(b),l)){a=-1;try{a=this.getNextVisualPositionFrom(-1,javax.swing.text.Position.Bias.Forward,c,7,f)}catch(g){if(!y(g,javax.swing.text.BadLocationException)&&!y(g,IllegalArgumentException))throw g;}-1==a&&(a=this.getEndOffset()-1,f[0]=javax.swing.text.Position.Bias.Forward);return a}c=this.getViewAtPoint(I(a),I(b),l);return null!=c?c.viewToModel(a,b,l,f):-1},"~N,~N,java.awt.Shape,~A");e(c$,"getNextVisualPositionFrom",function(a,
296 b,c,f,l){switch(f){case 1:return this.getNextNorthSouthVisualPositionFrom(a,b,c,f,l);case 5:return this.getNextNorthSouthVisualPositionFrom(a,b,c,f,l);case 3:return this.getNextEastWestVisualPositionFrom(a,b,c,f,l);case 7:return this.getNextEastWestVisualPositionFrom(a,b,c,f,l);default:throw new IllegalArgumentException("Bad direction: "+f);}},"~N,javax.swing.text.Position.Bias,java.awt.Shape,~N,~A");d(c$,"getViewIndex",function(a,b){b===javax.swing.text.Position.Bias.Backward&&(a-=1);return a>=this.getStartOffset()&&
297 a<this.getEndOffset()?this.getViewIndexAtPosition(a):-1},"~N,javax.swing.text.Position.Bias");d(c$,"getViewAtPosition",function(a,b){var c=this.getViewIndexAtPosition(a);if(0<=c&&c<this.getViewCount()){var f=this.getView(c);null!=b&&this.childAllocation(c,b);return f}return null},"~N,java.awt.Rectangle");d(c$,"getViewIndexAtPosition",function(a){return this.getElement().getElementIndex(a)},"~N");d(c$,"getInsideAllocation",function(a){return null!=a?(a=v(a,java.awt.Rectangle)?a:a.getBounds(),this.childAlloc.setBounds(a),
298 this.childAlloc.x+=this.getLeftInset(),this.childAlloc.y+=this.getTopInset(),this.childAlloc.width-=this.getLeftInset()+this.getRightInset(),this.childAlloc.height-=this.getTopInset()+this.getBottomInset(),this.childAlloc):null},"java.awt.Shape");d(c$,"setParagraphInsets",function(a){this.top=Y(javax.swing.text.StyleConstants.getSpaceAbove(a));this.left=Y(javax.swing.text.StyleConstants.getLeftIndent(a));this.bottom=Y(javax.swing.text.StyleConstants.getSpaceBelow(a));this.right=Y(javax.swing.text.StyleConstants.getRightIndent(a))},
299 "javax.swing.text.AttributeSet");d(c$,"setInsets",function(a,b,c,f){this.top=a;this.left=b;this.right=f;this.bottom=c},"~N,~N,~N,~N");d(c$,"getLeftInset",function(){return this.left});d(c$,"getRightInset",function(){return this.right});d(c$,"getTopInset",function(){return this.top});d(c$,"getBottomInset",function(){return this.bottom});d(c$,"getNextNorthSouthVisualPositionFrom",function(a,b,c,f,l){return javax.swing.text.Utilities.getNextVisualPositionFrom(this,a,b,c,f,l)},"~N,javax.swing.text.Position.Bias,java.awt.Shape,~N,~A");
300 d(c$,"getNextEastWestVisualPositionFrom",function(a,b,c,f,l){return javax.swing.text.Utilities.getNextVisualPositionFrom(this,a,b,c,f,l)},"~N,javax.swing.text.Position.Bias,java.awt.Shape,~N,~A");d(c$,"flipEastAndWestAtEnds",function(){return!1},"~N,javax.swing.text.Position.Bias");c$.ZERO=c$.prototype.ZERO=[]});p("javax.swing.text");q(["javax.swing.SwingConstants"],"javax.swing.text.View",["java.lang.IllegalArgumentException","java.awt.Rectangle","javax.swing.event.DocumentEvent","javax.swing.text.Position",
301 "$.Utilities"],function(){c$=s(function(){this.elem=this.parent=null;r(this,arguments)},javax.swing.text,"View",null,javax.swing.SwingConstants);m(c$,function(a){this.elem=a},"javax.swing.text.Element");d(c$,"getParent",function(){return this.parent});d(c$,"isVisible",function(){return!0});d(c$,"getMinimumSpan",function(a){return 0==this.getResizeWeight(a)?this.getPreferredSpan(a):0},"~N");d(c$,"getMaximumSpan",function(a){return 0==this.getResizeWeight(a)?this.getPreferredSpan(a):2147483647},"~N");
302 d(c$,"preferenceChanged",function(a,b,c){a=this.getParent();null!=a&&a.preferenceChanged(this,b,c)},"javax.swing.text.View,~B,~B");d(c$,"getAlignment",function(){return 0.5},"~N");d(c$,"setParent",function(a){if(null==a)for(var b=0;b<this.getViewCount();b++)this.getView(b).getParent()===this&&this.getView(b).setParent(null);this.parent=a},"javax.swing.text.View");d(c$,"getViewCount",function(){return 0});d(c$,"getView",function(){return null},"~N");d(c$,"removeAll",function(){this.replace(0,this.getViewCount(),
303 null)});d(c$,"remove",function(a){this.replace(a,1,null)},"~N");d(c$,"insert",function(a,b){var c=Array(1);c[0]=b;this.replace(a,0,c)},"~N,javax.swing.text.View");d(c$,"append",function(a){var b=Array(1);b[0]=a;this.replace(this.getViewCount(),0,b)},"javax.swing.text.View");d(c$,"replace",function(){},"~N,~N,~A");d(c$,"getViewIndex",function(){return-1},"~N,javax.swing.text.Position.Bias");d(c$,"getChildAllocation",function(){return null},"~N,java.awt.Shape");d(c$,"getNextVisualPositionFrom",function(a,
304 b,c,f,l){l[0]=javax.swing.text.Position.Bias.Forward;switch(f){case 1:case 5:if(-1==a){a=1==f?Math.max(0,this.getEndOffset()-1):this.getStartOffset();break}b=this.getContainer();c=null!=b?b.getCaret():null;c=null!=c?c.getMagicCaretPosition():null;null==c?(c=b.modelToView(a),c=null==c?0:c.x):c=c.x;a=1==f?javax.swing.text.Utilities.getPositionAbove(b,a,c):javax.swing.text.Utilities.getPositionBelow(b,a,c);break;case 7:a=-1==a?Math.max(0,this.getEndOffset()-1):Math.max(0,a-1);break;case 3:a=-1==a?this.getStartOffset():
305 Math.min(a+1,this.getDocument().getLength());break;default:throw new IllegalArgumentException("Bad direction: "+f);}return a},"~N,javax.swing.text.Position.Bias,java.awt.Shape,~N,~A");d(c$,"modelToView",function(a,b,c,f,l){a=this.modelToView(a,l,b);var d;if(c==this.getEndOffset()){try{d=this.modelToView(c,l,f)}catch(g){if(y(g,javax.swing.text.BadLocationException))d=null;else throw g;}null==d&&(d=v(l,java.awt.Rectangle)?l:l.getBounds(),d=new java.awt.Rectangle(d.x+d.width-1,d.y,1,d.height))}else d=
306 this.modelToView(c,l,f);c=a.getBounds();f=v(d,java.awt.Rectangle)?d:d.getBounds();c.y!=f.y&&(d=v(l,java.awt.Rectangle)?l:l.getBounds(),c.x=d.x,c.width=d.width);c.add(f);return c},"~N,javax.swing.text.Position.Bias,~N,javax.swing.text.Position.Bias,java.awt.Shape");d(c$,"insertUpdate",function(a,b,c){if(0<this.getViewCount()){var f=this.getElement(),f=a.getChange(f);null!=f&&(this.updateChildren(f,a,c)||(f=null));this.forwardUpdate(f,a,b,c);this.updateLayout(f,a,b)}},"javax.swing.event.DocumentEvent,java.awt.Shape,javax.swing.text.ViewFactory");
307 d(c$,"removeUpdate",function(a,b,c){if(0<this.getViewCount()){var f=this.getElement(),f=a.getChange(f);null!=f&&(this.updateChildren(f,a,c)||(f=null));this.forwardUpdate(f,a,b,c);this.updateLayout(f,a,b)}},"javax.swing.event.DocumentEvent,java.awt.Shape,javax.swing.text.ViewFactory");d(c$,"changedUpdate",function(a,b,c){if(0<this.getViewCount()){var f=this.getElement(),f=a.getChange(f);null!=f&&(this.updateChildren(f,a,c)||(f=null));this.forwardUpdate(f,a,b,c);this.updateLayout(f,a,b)}},"javax.swing.event.DocumentEvent,java.awt.Shape,javax.swing.text.ViewFactory");
308 d(c$,"getDocument",function(){return this.elem.getDocument()});d(c$,"getStartOffset",function(){return this.elem.getStartOffset()});d(c$,"getEndOffset",function(){return this.elem.getEndOffset()});d(c$,"getElement",function(){return this.elem});d(c$,"getGraphics",function(){return this.getContainer().getGraphics()});d(c$,"getAttributes",function(){return this.elem.getAttributes()});d(c$,"breakView",function(){return this},"~N,~N,~N,~N");d(c$,"createFragment",function(){return this},"~N,~N");d(c$,
309 "getBreakWeight",function(a,b,c){return c>this.getPreferredSpan(a)?1E3:0},"~N,~N,~N");d(c$,"getResizeWeight",function(){return 0},"~N");d(c$,"setSize",function(){},"~N,~N");d(c$,"getContainer",function(){var a=this.getParent();return null!=a?a.getContainer():null});d(c$,"getViewFactory",function(){var a=this.getParent();return null!=a?a.getViewFactory():null});d(c$,"getToolTipText",function(a,b,c){var f=this.getViewIndex(a,b,c);return 0<=f&&(c=this.getChildAllocation(f,c),(v(c,java.awt.Rectangle)?
310 c:c.getBounds()).contains(a,b))?this.getView(f).getToolTipText(a,b,c):null},"~N,~N,java.awt.Shape");d(c$,"getViewIndex",function(a,b,c){for(var f=this.getViewCount()-1;0<=f;f--){var l=this.getChildAllocation(f,c);if(null!=l&&(v(l,java.awt.Rectangle)?l:l.getBounds()).contains(a,b))return f}return-1},"~N,~N,java.awt.Shape");d(c$,"updateChildren",function(a,b,c){b=a.getChildrenRemoved();var f=a.getChildrenAdded(),l=null;if(null!=f)for(var l=Array(f.length),d=0;d<f.length;d++)l[d]=c.create(f[d]);c=0;
311 a=a.getIndex();null!=b&&(c=b.length);this.replace(a,c,l);return!0},"javax.swing.event.DocumentEvent.ElementChange,javax.swing.event.DocumentEvent,javax.swing.text.ViewFactory");d(c$,"forwardUpdate",function(a,b,c,f){this.getElement();var l=b.getOffset(),d=this.getViewIndex(l,javax.swing.text.Position.Bias.Forward);-1==d&&(b.getType()===javax.swing.event.DocumentEvent.EventType.REMOVE&&l>=this.getEndOffset())&&(d=this.getViewCount()-1);var g=d,h=0<=d?this.getView(d):null;null!=h&&h.getStartOffset()==
312 l&&0<l&&(d=Math.max(d-1,0));b.getType()!==javax.swing.event.DocumentEvent.EventType.REMOVE&&(g=this.getViewIndex(l+b.getLength(),javax.swing.text.Position.Bias.Forward),0>g&&(g=this.getViewCount()-1));var j=l=g+1,h=null!=a?a.getChildrenAdded():null;null!=h&&0<h.length&&(l=a.getIndex(),j=l+h.length-1);for(a=d=Math.max(d,0);a<=g;a++)a>=l&&a<=j||(h=this.getView(a),null!=h&&(d=this.getChildAllocation(a,c),this.forwardUpdateToView(h,b,d,f)))},"javax.swing.event.DocumentEvent.ElementChange,javax.swing.event.DocumentEvent,java.awt.Shape,javax.swing.text.ViewFactory");
313 d(c$,"forwardUpdateToView",function(a,b,c,f){var l=b.getType();l===javax.swing.event.DocumentEvent.EventType.INSERT?a.insertUpdate(b,c,f):l===javax.swing.event.DocumentEvent.EventType.REMOVE?a.removeUpdate(b,c,f):a.changedUpdate(b,c,f)},"javax.swing.text.View,javax.swing.event.DocumentEvent,java.awt.Shape,javax.swing.text.ViewFactory");d(c$,"updateLayout",function(a,b,c){null!=a&&null!=c&&(this.preferenceChanged(null,!0,!0),a=this.getContainer(),null!=a&&a.repaint())},"javax.swing.event.DocumentEvent.ElementChange,javax.swing.event.DocumentEvent,java.awt.Shape");
314 d(c$,"modelToView",function(a,b){return this.modelToView(a,b,javax.swing.text.Position.Bias.Forward)},"~N,java.awt.Shape");d(c$,"viewToModel",function(a,b,c){javax.swing.text.View.sharedBiasReturn[0]=javax.swing.text.Position.Bias.Forward;return this.viewToModel(a,b,c,javax.swing.text.View.sharedBiasReturn)},"~N,~N,java.awt.Shape");G(c$,"BadBreakWeight",0,"GoodBreakWeight",1E3,"ExcellentBreakWeight",2E3,"ForcedBreakWeight",3E3,"X_AXIS",0,"Y_AXIS",1);c$.sharedBiasReturn=c$.prototype.sharedBiasReturn=
315 Array(1)});p("javax.swing.text");M(javax.swing.text,"Position");A(self.c$);c$=s(function(){this.name=null;r(this,arguments)},javax.swing.text.Position,"Bias");e(c$,"toString",function(){return this.name});m(c$,function(a){this.name=a},"~S");c$.Forward=c$.prototype.Forward=new javax.swing.text.Position.Bias("Forward");c$.Backward=c$.prototype.Backward=new javax.swing.text.Position.Bias("Backward");c$=z();p("javax.swing.text");q(["javax.swing.text.Document"],"javax.swing.text.StyledDocument",null,function(){M(javax.swing.text,
316 "StyledDocument",javax.swing.text.Document)});p("javax.swing.text");q(["javax.swing.text.Highlighter","$.LayeredHighlighter","java.util.Vector"],"javax.swing.text.DefaultHighlighter",["java.awt.Rectangle","javax.swing.SwingUtilities","javax.swing.text.LayeredHighlighter.LayerPainter","javax.swing.text.Position"],function(){c$=s(function(){this.component=this.highlights=null;this.drawsLayeredHighlights=!1;this.safeDamager=null;H("javax.swing.text.DefaultHighlighter.HighlightInfo")||javax.swing.text.DefaultHighlighter.$DefaultHighlighter$HighlightInfo$();
317 H("javax.swing.text.DefaultHighlighter.LayeredHighlightInfo")||javax.swing.text.DefaultHighlighter.$DefaultHighlighter$LayeredHighlightInfo$();H("javax.swing.text.DefaultHighlighter.SafeDamager")||javax.swing.text.DefaultHighlighter.$DefaultHighlighter$SafeDamager$();r(this,arguments)},javax.swing.text,"DefaultHighlighter",javax.swing.text.LayeredHighlighter);J(c$,function(){this.highlights=new java.util.Vector;this.safeDamager=C(javax.swing.text.DefaultHighlighter.SafeDamager,this,null)});m(c$,function(){t(this,
318 javax.swing.text.DefaultHighlighter,[]);this.drawsLayeredHighlights=!0});e(c$,"paint",function(a){for(var b=this.highlights.size(),c=0;c<b;c++){var f=this.highlights.elementAt(c);if(!v(f,javax.swing.text.DefaultHighlighter.LayeredHighlightInfo)){var l=this.component.getBounds(),f=this.component.getInsets();l.x=f.left;l.y=f.top;l.width-=f.left+f.right;for(l.height-=f.top+f.bottom;c<b;c++)f=this.highlights.elementAt(c),v(f,javax.swing.text.DefaultHighlighter.LayeredHighlightInfo)||f.getPainter().paint(a,
319 f.getStartOffset(),f.getEndOffset(),l,this.component)}}},"java.awt.Graphics");e(c$,"install",function(a){this.component=a;this.removeAllHighlights()},"javax.swing.text.JTextComponent");e(c$,"deinstall",function(){this.component=null},"javax.swing.text.JTextComponent");e(c$,"addHighlight",function(a,b,c){var f=this.component.getDocument(),l=this.getDrawsLayeredHighlights()&&v(c,javax.swing.text.LayeredHighlighter.LayerPainter)?C(javax.swing.text.DefaultHighlighter.LayeredHighlightInfo,this,null):C(javax.swing.text.DefaultHighlighter.HighlightInfo,
320 this,null);l.painter=c;l.p0=f.createPosition(a);l.p1=f.createPosition(b);this.highlights.addElement(l);this.safeDamageRange(a,b);return l},"~N,~N,javax.swing.text.Highlighter.HighlightPainter");e(c$,"removeHighlight",function(a){v(a,javax.swing.text.DefaultHighlighter.LayeredHighlightInfo)?0<a.width&&0<a.height&&this.component.repaint(a.x,a.y,a.width,a.height):this.safeDamageRange(a.p0,a.p1);this.highlights.removeElement(a)},"~O");e(c$,"removeAllHighlights",function(){var a=this.component.getUI();
321 if(this.getDrawsLayeredHighlights()){if(a=this.highlights.size(),0!=a){for(var b=0,c=0,f=0,l=0,d=-1,g=-1,h=0;h<a;h++){var j=this.highlights.elementAt(h);v(j,javax.swing.text.DefaultHighlighter.LayeredHighlightInfo)?(b=Math.min(b,j.x),c=Math.min(c,j.y),f=Math.max(f,j.x+j.width),l=Math.max(l,j.y+j.height)):-1==d?(d=j.p0.getOffset(),g=j.p1.getOffset()):(d=Math.min(d,j.p0.getOffset()),g=Math.max(g,j.p1.getOffset()))}b!=f&&c!=l&&this.component.repaint(b,c,f-b,l-c);if(-1!=d)try{this.safeDamageRange(d,g)}catch(e){if(!y(e,
322 javax.swing.text.BadLocationException))throw e;}this.highlights.removeAllElements()}}else if(null!=a&&(a=this.highlights.size(),0!=a)){d=2147483647;for(h=g=0;h<a;h++)j=this.highlights.elementAt(h),d=Math.min(d,j.p0.getOffset()),g=Math.max(g,j.p1.getOffset());try{this.safeDamageRange(d,g)}catch(x){if(!y(x,javax.swing.text.BadLocationException))throw x;}this.highlights.removeAllElements()}});e(c$,"changeHighlight",function(a,b,c){var f=this.component.getDocument();if(v(a,javax.swing.text.DefaultHighlighter.LayeredHighlightInfo))0<
323 a.width&&0<a.height&&this.component.repaint(a.x,a.y,a.width,a.height),a.width=a.height=0,a.p0=f.createPosition(b),a.p1=f.createPosition(c),this.safeDamageRange(Math.min(b,c),Math.max(b,c));else{var l=a.p0.getOffset(),d=a.p1.getOffset();b==l?this.safeDamageRange(Math.min(d,c),Math.max(d,c)):c==d?this.safeDamageRange(Math.min(b,l),Math.max(b,l)):(this.safeDamageRange(l,d),this.safeDamageRange(b,c));a.p0=f.createPosition(b);a.p1=f.createPosition(c)}},"~O,~N,~N");e(c$,"getHighlights",function(){var a=
324 this.highlights.size();if(0==a)return javax.swing.text.DefaultHighlighter.noHighlights;a=Array(a);this.highlights.copyInto(a);return a});e(c$,"paintLayeredHighlights",function(a,b,c,f,l,d){for(var g=this.highlights.size()-1;0<=g;g--){var h=this.highlights.elementAt(g);if(v(h,javax.swing.text.DefaultHighlighter.LayeredHighlightInfo)){var j=h.getStartOffset(),e=h.getEndOffset();(b<j&&c>j||b>=j&&b<e)&&h.paintLayeredHighlights(a,b,c,f,l,d)}}},"java.awt.Graphics,~N,~N,java.awt.Shape,javax.swing.text.JTextComponent,javax.swing.text.View");
325 d(c$,"safeDamageRange",function(a,b){this.safeDamager.damageRange(a,b)},"javax.swing.text.Position,javax.swing.text.Position");d(c$,"safeDamageRange",function(a,b){var c=this.component.getDocument();this.safeDamageRange(c.createPosition(a),c.createPosition(b))},"~N,~N");d(c$,"setDrawsLayeredHighlights",function(a){this.drawsLayeredHighlights=a},"~B");d(c$,"getDrawsLayeredHighlights",function(){return this.drawsLayeredHighlights});c$.$DefaultHighlighter$HighlightInfo$=function(){A(self.c$);c$=s(function(){O(this,
326 arguments);this.painter=this.p1=this.p0=null;r(this,arguments)},javax.swing.text.DefaultHighlighter,"HighlightInfo",null,javax.swing.text.Highlighter.Highlight);e(c$,"getStartOffset",function(){return this.p0.getOffset()});e(c$,"getEndOffset",function(){return this.p1.getOffset()});e(c$,"getPainter",function(){return this.painter});c$=z()};c$.$DefaultHighlighter$LayeredHighlightInfo$=function(){A(self.c$);c$=s(function(){O(this,arguments);this.height=this.width=this.y=this.x=0;r(this,arguments)},
327 javax.swing.text.DefaultHighlighter,"LayeredHighlightInfo",javax.swing.text.DefaultHighlighter.HighlightInfo,null,C(javax.swing.text.DefaultHighlighter.HighlightInfo,this,null,$));d(c$,"union",function(a){null!=a&&(a=v(a,java.awt.Rectangle)?a:a.getBounds(),0==this.width||0==this.height?(this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height):(this.width=Math.max(this.x+this.width,a.x+a.width),this.height=Math.max(this.y+this.height,a.y+a.height),this.x=Math.min(this.x,a.x),this.width-=this.x,
328 this.y=Math.min(this.y,a.y),this.height-=this.y))},"java.awt.Shape");d(c$,"paintLayeredHighlights",function(a,b,c,f,l,d){var g=this.getStartOffset(),h=this.getEndOffset();b=Math.max(g,b);c=Math.min(h,c);this.union(this.painter.paintLayer(a,b,c,f,l,d))},"java.awt.Graphics,~N,~N,java.awt.Shape,javax.swing.text.JTextComponent,javax.swing.text.View");c$=z()};c$.$DefaultHighlighter$SafeDamager$=function(){A(self.c$);c$=s(function(){O(this,arguments);this.lastDoc=this.p1=this.p0=null;r(this,arguments)},
329 javax.swing.text.DefaultHighlighter,"SafeDamager",null,Runnable);J(c$,function(){this.p0=new java.util.Vector(10);this.p1=new java.util.Vector(10)});e(c$,"run",function(){if(null!=this.b$["javax.swing.text.DefaultHighlighter"].component){var a=this.b$["javax.swing.text.DefaultHighlighter"].component.getUI();if(null!=a&&this.lastDoc===this.b$["javax.swing.text.DefaultHighlighter"].component.getDocument())for(var b=this.p0.size(),c=0;c<b;c++)a.damageRange(this.b$["javax.swing.text.DefaultHighlighter"].component,
330 this.p0.get(c).getOffset(),this.p1.get(c).getOffset())}this.p0.clear();this.p1.clear();this.lastDoc=null});d(c$,"damageRange",function(a,b){if(null==this.b$["javax.swing.text.DefaultHighlighter"].component)this.p0.clear(),this.lastDoc=null;else{var c=this.p0.isEmpty(),f=this.b$["javax.swing.text.DefaultHighlighter"].component.getDocument();f!==this.lastDoc&&(this.p0.isEmpty()||(this.p0.clear(),this.p1.clear()),this.lastDoc=f);this.p0.add(a);this.p1.add(b);c&&javax.swing.SwingUtilities.invokeLater(this)}},
331 "javax.swing.text.Position,javax.swing.text.Position");c$=z()};A(self.c$);c$=s(function(){this.color=null;r(this,arguments)},javax.swing.text.DefaultHighlighter,"DefaultHighlightPainter",javax.swing.text.LayeredHighlighter.LayerPainter);m(c$,function(a){t(this,javax.swing.text.DefaultHighlighter.DefaultHighlightPainter,[]);this.color=a},"java.awt.Color");d(c$,"getColor",function(){return this.color});e(c$,"paint",function(a,b,c,f,l){f=f.getBounds();try{var d=l.getUI(),g=d.modelToView(l,b),h=d.modelToView(l,
332 c),j=this.getColor();null==j?a.setColor(l.getSelectionColor()):a.setColor(j);if(g.y==h.y){var e=g.union(h);a.fillRect(e.x,e.y,e.width,e.height)}else e=f.x+f.width-g.x,a.fillRect(g.x,g.y,e,g.height),g.y+g.height!=h.y&&a.fillRect(f.x,g.y+g.height,f.width,h.y-(g.y+g.height)),a.fillRect(f.x,h.y,h.x-f.x,h.height)}catch(x){if(!y(x,javax.swing.text.BadLocationException))throw x;}},"java.awt.Graphics,~N,~N,java.awt.Shape,javax.swing.text.JTextComponent");e(c$,"paintLayer",function(a,b,c,f,l,d){var g=this.getColor();
333 null==g?a.setColor(l.getSelectionColor()):a.setColor(g);var h;if(b==d.getStartOffset()&&c==d.getEndOffset())h=v(f,java.awt.Rectangle)?f:f.getBounds();else try{var j=d.modelToView(b,javax.swing.text.Position.Bias.Forward,c,javax.swing.text.Position.Bias.Backward,f);h=v(j,java.awt.Rectangle)?j:j.getBounds()}catch(e){if(y(e,javax.swing.text.BadLocationException))h=null;else throw e;}null!=h&&(h.width=Math.max(h.width,1),a.fillRect(h.x,h.y,h.width,h.height));return h},"java.awt.Graphics,~N,~N,java.awt.Shape,javax.swing.text.JTextComponent,javax.swing.text.View");
334 c$=z();c$.noHighlights=c$.prototype.noHighlights=[];c$.DefaultPainter=c$.prototype.DefaultPainter=new javax.swing.text.DefaultHighlighter.DefaultHighlightPainter(null)});p("javax.swing.text");M(javax.swing.text,"Highlighter");M(javax.swing.text.Highlighter,"HighlightPainter");M(javax.swing.text.Highlighter,"Highlight");p("javax.swing.text");q(["javax.swing.text.Highlighter"],"javax.swing.text.LayeredHighlighter",null,function(){c$=B(javax.swing.text,"LayeredHighlighter",null,javax.swing.text.Highlighter);
335 A(self.c$);c$=B(javax.swing.text.LayeredHighlighter,"LayerPainter",null,javax.swing.text.Highlighter.HighlightPainter);c$=z()});p("swingjs");q(["swingjs.JSAbstractDocument"],"swingjs.JSPlainDocument",["java.util.Hashtable","JU.SB","swingjs.JSPosition"],function(){c$=B(swingjs,"JSPlainDocument",swingjs.JSAbstractDocument);m(c$,function(){t(this,swingjs.JSPlainDocument);this.sb=new JU.SB;this.root=C(swingjs.JSAbstractDocument.JSElement,this,null)});e(c$,"getLength",function(){return this.sb.length()});
336 d(c$,"getText",function(a,b){this.checkLoc(a,a+b);return this.sb.substring2(a,a+b)},"~N,~N");d(c$,"getText",function(a,b,c){this.checkLoc(a,a+b);if(null==this.tempChar){this.tempChar=N(this.sb.length(),"\x00");for(var f=this.tempChar.length;0<=--f;)this.tempChar[f]=this.sb.charAt(f)}c.array=this.tempChar;c.offset=a;c.count=b},"~N,~N,javax.swing.text.Segment");e(c$,"getStartPosition",function(){return new swingjs.JSPosition(0)});e(c$,"getEndPosition",function(){return new swingjs.JSPosition(this.sb.length())});
337 e(c$,"createPosition",function(a){this.checkLoc(a,a);var b=Integer.$valueOf(a);null==this.positions&&(this.positions=new java.util.Hashtable);var c=this.positions.get(b);null==c&&this.positions.put(b,c=new swingjs.JSPosition(a));return c},"~N");e(c$,"getDefaultRootElement",function(){return this.root});e(c$,"render",function(){},"Runnable");G(c$,"tabSizeAttribute","tabSize","lineLimitAttribute","lineLimit")});p("swingjs");q(["javax.swing.text.DocumentFilter","$.Element","$.JSMinimalAbstractDocument"],
338 "swingjs.JSAbstractDocument","java.lang.IllegalStateException java.util.HashMap JU.AU javax.swing.event.DocumentEvent $.DocumentListener $.EventListenerList javax.swing.text.BadLocationException swingjs.JSDocumentEvent".split(" "),function(){c$=s(function(){this.listenerList=this.positions=this.root=this.props=null;this.notifyingListeners=!1;this.filter=this.tempChar=this.sb=this.me=this.filterBypass=null;H("swingjs.JSAbstractDocument.DefaultFilterBypass")||swingjs.JSAbstractDocument.$JSAbstractDocument$DefaultFilterBypass$();
339 H("swingjs.JSAbstractDocument.JSElement")||swingjs.JSAbstractDocument.$JSAbstractDocument$JSElement$();r(this,arguments)},swingjs,"JSAbstractDocument",null,javax.swing.text.JSMinimalAbstractDocument);m(c$,function(){this.me=this;this.props=new java.util.HashMap});e(c$,"getRootElements",function(){return E(-1,[this.root,null])});d(c$,"checkLoc",function(a,b){if(0>a||b>this.getLength())throw new javax.swing.text.BadLocationException("JSAbstractDocument: out of range",0>a?a:b);},"~N,~N");d(c$,"fixPositions",
340 function(a,b,c){if(!(null==this.positions||this.positions.isEmpty()))if(c){var f;for(c=this.positions.keySet().iterator();c.hasNext()&&((f=c.next())||1);){var l=f.intValue();l>a&&(this.positions.get(f).pos+=b)}}else for(c=this.positions.keySet().iterator();c.hasNext()&&((f=c.next())||1);)l=f.intValue(),l<=a||(l>=a+b?this.positions.get(f).pos-=b:this.positions.get(f).pos=a)},"~N,~N,~B");d(c$,"getFilterBypass",function(){null==this.filterBypass&&(this.filterBypass=C(swingjs.JSAbstractDocument.DefaultFilterBypass,
341 this,null));return this.filterBypass});e(c$,"remove",function(a,b){var c=this.getDocumentFilter();null==c?this.handleRemove(a,b):c.remove(this.getFilterBypass(),a,b)},"~N,~N");e(c$,"insertString",function(a,b,c){var f=this.getDocumentFilter();null==f?this.handleInsertString(a,b,c):f.insertString(this.getFilterBypass(),a,b,c)},"~N,~S,javax.swing.text.AttributeSet");e(c$,"replace",function(a,b,c,f){if(!(0==b&&(null==c||0==c.length))){var l=this.getDocumentFilter();null!=l?l.replace(this.getFilterBypass(),
342 a,b,c,f):(0<b&&this.remove(a,b),null!=c&&0<c.length&&this.insertString(a,c,f))}},"~N,~N,~S,javax.swing.text.AttributeSet");d(c$,"taint",function(){this.tempChar=null});d(c$,"setLines",function(){this.root=C(swingjs.JSAbstractDocument.JSElement,this,null);var a=this.sb.toString();a.lastIndexOf("\n")!=a.length-1&&(a+="\n");for(var b=0,c=0;c<a.length;c++)if("\n"==a.charAt(c)){var f=C(swingjs.JSAbstractDocument.JSElement,this,null);f.start=b;f.end=c;b=c+1;this.root.addChild(f)}});d(c$,"handleInsertString",
343 function(a,b){if(!(null==b||0==b.length)){this.checkLoc(a,a);this.taint();this.sb.insert(a,b);this.fixPositions(a,b.length,!0);0<=b.indexOf("\n")&&this.setLines();var c=new swingjs.JSDocumentEvent(this,a,b.length,javax.swing.event.DocumentEvent.EventType.INSERT);this.fireInsertUpdate(c)}},"~N,~S,javax.swing.text.AttributeSet");d(c$,"handleRemove",function(a,b){this.checkLoc(a,a+b);this.taint();var c=this.sb.substring2(a,a+b);this.sb.replace(a,a+b,"");this.fixPositions(a,a+b,!1);0<=c.indexOf("\n")&&
344 this.setLines();0<b&&(c=new swingjs.JSDocumentEvent(this,a,b,javax.swing.event.DocumentEvent.EventType.REMOVE),this.fireRemoveUpdate(c))},"~N,~N");d(c$,"fireInsertUpdate",function(a){if(null!=this.listenerList){this.checkAlreadyNotifying();this.notifyingListeners=!0;try{for(var b=this.listenerList.getListenerList(),c=b.length-2;0<=c;c-=2)b[c]===javax.swing.event.DocumentListener&&b[c+1].insertUpdate(a)}finally{this.notifyingListeners=!1}}},"javax.swing.event.DocumentEvent");d(c$,"fireChangedUpdate",
345 function(a){if(null!=this.listenerList){this.checkAlreadyNotifying();this.notifyingListeners=!0;try{for(var b=this.listenerList.getListenerList(),c=b.length-2;0<=c;c-=2)b[c]===javax.swing.event.DocumentListener&&b[c+1].changedUpdate(a)}finally{this.notifyingListeners=!1}}},"javax.swing.event.DocumentEvent");d(c$,"fireRemoveUpdate",function(a){if(null!=this.listenerList){this.checkAlreadyNotifying();this.notifyingListeners=!0;try{for(var b=this.listenerList.getListenerList(),c=b.length-2;0<=c;c-=2)b[c]===
346 javax.swing.event.DocumentListener&&b[c+1].removeUpdate(a)}finally{this.notifyingListeners=!1}}},"javax.swing.event.DocumentEvent");d(c$,"checkAlreadyNotifying",function(){if(this.notifyingListeners)throw new IllegalStateException("One of the document listeners modifed the document. This is not allowed.");});e(c$,"addDocumentListener",function(a){null==this.listenerList&&(this.listenerList=new javax.swing.event.EventListenerList);this.listenerList.add(javax.swing.event.DocumentListener,a)},"javax.swing.event.DocumentListener");
347 e(c$,"removeDocumentListener",function(a){null!=this.listenerList&&this.listenerList.remove(javax.swing.event.DocumentListener,a)},"javax.swing.event.DocumentListener");e(c$,"addUndoableEditListener",function(){},"javax.swing.event.UndoableEditListener");e(c$,"removeUndoableEditListener",function(){},"javax.swing.event.UndoableEditListener");e(c$,"getProperty",function(a){return this.props.get(a)},"~O");e(c$,"putProperty",function(a,b){this.props.put(a,b)},"~O,~O");e(c$,"getAsynchronousLoadPriority",
348 function(){return-1});e(c$,"setDocumentFilter",function(a){this.filter=a},"javax.swing.text.DocumentFilter");d(c$,"getDocumentFilter",function(){return this.filter});c$.$JSAbstractDocument$DefaultFilterBypass$=function(){A(self.c$);c$=s(function(){O(this,arguments);r(this,arguments)},swingjs.JSAbstractDocument,"DefaultFilterBypass",javax.swing.text.DocumentFilter.FilterBypass);e(c$,"getDocument",function(){return this.b$["swingjs.JSAbstractDocument"].me});e(c$,"remove",function(a,b){this.b$["swingjs.JSAbstractDocument"].handleRemove(a,
349 b)},"~N,~N");e(c$,"insertString",function(a,b,c){this.b$["swingjs.JSAbstractDocument"].handleInsertString(a,b,c)},"~N,~S,javax.swing.text.AttributeSet");e(c$,"replace",function(a,b,c,f){this.b$["swingjs.JSAbstractDocument"].handleRemove(a,b);this.b$["swingjs.JSAbstractDocument"].handleInsertString(a,c,f)},"~N,~N,~S,javax.swing.text.AttributeSet");c$=z()};c$.$JSAbstractDocument$JSElement$=function(){A(self.c$);c$=s(function(){O(this,arguments);this.attributeSet=this.parent=null;this.nchildren=this.end=
350 this.start=0;this.children=null;this.lastIndex=0;r(this,arguments)},swingjs.JSAbstractDocument,"JSElement",null,javax.swing.text.Element);m(c$,function(){this.children=null;this.nchildren=0;this.lastIndex=-1});d(c$,"addChild",function(a){null==this.children?this.children=Array(10):this.nchildren==this.children.length&&(this.children=JU.AU.doubleLength(this.children));this.children[this.nchildren++]=a},"swingjs.JSAbstractDocument.JSElement");e(c$,"getDocument",function(){return this.b$["swingjs.JSAbstractDocument"].me});
351 e(c$,"getParentElement",function(){return this.parent});e(c$,"getName",function(){return this.getName()});e(c$,"getAttributes",function(){return this.attributeSet});d(c$,"getStartOffset",function(){return this.start});d(c$,"getEndOffset",function(){return this.end});e(c$,"getElementIndex",function(a){var b=0,c=this.nchildren-1,f=0,l=this.getStartOffset(),d;if(0==this.nchildren)return 0;if(a>=this.getEndOffset())return this.nchildren-1;if(this.lastIndex>=b&&this.lastIndex<=c){d=this.children[this.lastIndex];
352 l=d.getStartOffset();d=d.getEndOffset();if(a>=l&&a<d)return this.lastIndex;a<l?c=this.lastIndex:b=this.lastIndex}for(;b<=c;){f=b+F((c-b)/2);d=this.children[f];l=d.getStartOffset();d=d.getEndOffset();if(a>=l&&a<d)return this.lastIndex=a=f;a<l?c=f-1:b=f+1}return this.lastIndex=a=a<l?f:f+1},"~N");e(c$,"getElementCount",function(){return this.nchildren});e(c$,"getElement",function(a){return a>=this.nchildren?null:this.children[a]},"~N");e(c$,"isLeaf",function(){return null!=this.parent});c$=z()};G(c$,
353 "ParagraphElementName","paragraph","ContentElementName","content")});p("swingjs");q(["javax.swing.event.DocumentEvent"],"swingjs.JSDocumentEvent",["swingjs.JSToolkit"],function(){c$=s(function(){this.len=this.off=0;this.doc=this.type=null;r(this,arguments)},swingjs,"JSDocumentEvent",null,javax.swing.event.DocumentEvent);m(c$,function(a,b,c,f){this.off=b;this.len=c;this.type=f;this.doc=a},"swingjs.JSAbstractDocument,~N,~N,javax.swing.event.DocumentEvent.EventType");e(c$,"getOffset",function(){return this.off});
354 e(c$,"getLength",function(){return this.len});e(c$,"getDocument",function(){return this.doc});e(c$,"getType",function(){return this.type});e(c$,"getChange",function(){swingjs.JSToolkit.notImplemented("");return null},"javax.swing.text.Element")});p("swingjs");q(["javax.swing.text.Position"],"swingjs.JSPosition",null,function(){c$=s(function(){this.pos=0;r(this,arguments)},swingjs,"JSPosition",null,javax.swing.text.Position);m(c$,function(a){this.pos=a},"~N");e(c$,"getOffset",function(){return this.pos})});
355 p("swingjs.api");c$=B(swingjs.api,"HTML5CanvasContext2D");c$.stretchImage=d(c$,"stretchImage",function(a,b,c,f,l,d,g,h,j,e){a.drawImage(b,c,f,l,d,g,h,j,e)},"swingjs.api.HTML5CanvasContext2D,swingjs.api.DOMNode,~N,~N,~N,~N,~N,~N,~N,~N");p("javax.swing");q(["javax.swing.JLabel","$.ListCellRenderer","javax.swing.plaf.UIResource","javax.swing.border.EmptyBorder"],"javax.swing.DefaultListCellRenderer",["javax.swing.Icon","jssun.swing.DefaultLookup"],function(){c$=B(javax.swing,"DefaultListCellRenderer",
356 javax.swing.JLabel,javax.swing.ListCellRenderer);m(c$,function(){t(this,javax.swing.DefaultListCellRenderer);this.setOpaque(!0);this.setBorder(this.getNoFocusBorder());this.setName("List.cellRenderer")});d(c$,"getNoFocusBorder",function(){var a=jssun.swing.DefaultLookup.getBorder(this,this.ui,"List.cellNoFocusBorder");return null!=System.getSecurityManager()?null!=a?a:javax.swing.DefaultListCellRenderer.SAFE_NO_FOCUS_BORDER:null!=a&&(null==javax.swing.DefaultListCellRenderer.noFocusBorder||javax.swing.DefaultListCellRenderer.noFocusBorder===
357 javax.swing.DefaultListCellRenderer.DEFAULT_NO_FOCUS_BORDER)?a:javax.swing.DefaultListCellRenderer.noFocusBorder});e(c$,"getListCellRendererComponent",function(a,b,c,f,l){this.setComponentOrientation(a.getComponentOrientation());f?(this.setBackground(a.getSelectionBackground()),this.setForeground(a.getSelectionForeground())):(this.setBackground(a.getBackground()),this.setForeground(a.getForeground()));v(b,javax.swing.Icon)?(this.setIcon(b),this.setText("")):(this.setIcon(null),this.setText(null==
358 b?"":b.toString()));this.setEnabled(a.isEnabled());this.setFont(a.getFont());a=null;l?(f&&(a=jssun.swing.DefaultLookup.getBorder(this,this.ui,"List.focusSelectedCellHighlightBorder")),null==a&&(a=jssun.swing.DefaultLookup.getBorder(this,this.ui,"List.focusCellHighlightBorder"))):a=this.getNoFocusBorder();this.setBorder(a);return this},"javax.swing.JList,~O,~N,~B,~B");d(c$,"isOpaque",function(){var a=this.getBackground(),b=this.getParent();null!=b&&(b=b.getParent());return!(null!=a&&null!=b&&a.equals(b.getBackground())&&
359 b.isOpaque())&&K(this,javax.swing.DefaultListCellRenderer,"isOpaque",[])});e(c$,"validate",function(){});e(c$,"invalidate",function(){});d(c$,"repaint",function(){});e(c$,"revalidate",function(){});d(c$,"repaint",function(){},"~N,~N,~N,~N,~N");d(c$,"repaint",function(){},"java.awt.Rectangle");e(c$,"firePropertyChangeObject",function(){},"~S,~O,~O");e(c$,"firePropertyChangeByte",function(){},"~S,~N,~N");e(c$,"firePropertyChangeChar",function(){},"~S,~S,~S");e(c$,"firePropertyChangeShort",function(){},
360 "~S,~N,~N");e(c$,"firePropertyChangeInt",function(){},"~S,~N,~N");e(c$,"firePropertyChangeLong",function(){},"~S,~N,~N");e(c$,"firePropertyChangeFloat",function(){},"~S,~N,~N");e(c$,"firePropertyChangeDouble",function(){},"~S,~N,~N");e(c$,"firePropertyChangeBool",function(){},"~S,~B,~B");A(self.c$);c$=B(javax.swing.DefaultListCellRenderer,"UIResource",javax.swing.DefaultListCellRenderer,javax.swing.plaf.UIResource);c$=z();c$.SAFE_NO_FOCUS_BORDER=c$.prototype.SAFE_NO_FOCUS_BORDER=new javax.swing.border.EmptyBorder(1,
361 1,1,1);c$.DEFAULT_NO_FOCUS_BORDER=c$.prototype.DEFAULT_NO_FOCUS_BORDER=new javax.swing.border.EmptyBorder(1,1,1,1);c$.noFocusBorder=c$.prototype.noFocusBorder=javax.swing.DefaultListCellRenderer.DEFAULT_NO_FOCUS_BORDER});p("javax.swing");M(javax.swing,"ListCellRenderer");p("javax.swing.border");q(["javax.swing.border.AbstractBorder"],"javax.swing.border.EmptyBorder",["java.awt.Insets"],function(){c$=s(function(){this.bottom=this.top=this.right=this.left=0;r(this,arguments)},javax.swing.border,"EmptyBorder",
362 javax.swing.border.AbstractBorder);m(c$,function(a,b,c,f){t(this,javax.swing.border.EmptyBorder,[]);this.top=a;this.right=f;this.bottom=c;this.left=b},"~N,~N,~N,~N");m(c$,function(a){t(this,javax.swing.border.EmptyBorder,[]);this.top=a.top;this.right=a.right;this.bottom=a.bottom;this.left=a.left},"java.awt.Insets");e(c$,"paintBorder",function(){},"java.awt.Component,java.awt.Graphics,~N,~N,~N,~N");d(c$,"getBorderInsets",function(){return this.getBorderInsets()},"java.awt.Component");d(c$,"getBorderInsets",
363 function(a,b){b.left=this.left;b.top=this.top;b.right=this.right;b.bottom=this.bottom;return b},"java.awt.Component,java.awt.Insets");d(c$,"getBorderInsets",function(){return new java.awt.Insets(this.top,this.left,this.bottom,this.right)});e(c$,"isBorderOpaque",function(){return!1})});p("jssun.swing");q(null,"jssun.swing.DefaultLookup","java.lang.Boolean $.Number $.Thread java.awt.Color $.Insets javax.swing.Icon $.UIManager javax.swing.border.Border jssun.awt.AppContext".split(" "),function(){c$=
364 B(jssun.swing,"DefaultLookup");c$.setDefaultLookup=d(c$,"setDefaultLookup",function(a){if(jssun.swing.DefaultLookup.isLookupSet||null!=a)null==a&&(a=new jssun.swing.DefaultLookup),jssun.swing.DefaultLookup.isLookupSet=!0,jssun.awt.AppContext.getAppContext().put(jssun.swing.DefaultLookup.DEFAULT_LOOKUP_KEY,a),jssun.swing.DefaultLookup.currentDefaultThread=Thread.currentThread(),jssun.swing.DefaultLookup.currentDefaultLookup=a},"jssun.swing.DefaultLookup");c$.get=d(c$,"get",function(a,b,c){if(!jssun.swing.DefaultLookup.isLookupSet)return javax.swing.UIManager.get(c,
365 a.getLocale());var f=Thread.currentThread(),l;f===jssun.swing.DefaultLookup.currentDefaultThread?l=jssun.swing.DefaultLookup.currentDefaultLookup:(l=jssun.awt.AppContext.getAppContext().get(jssun.swing.DefaultLookup.DEFAULT_LOOKUP_KEY),null==l&&(l=new jssun.swing.DefaultLookup,jssun.awt.AppContext.getAppContext().put(jssun.swing.DefaultLookup.DEFAULT_LOOKUP_KEY,l)),jssun.swing.DefaultLookup.currentDefaultThread=f,jssun.swing.DefaultLookup.currentDefaultLookup=l);return l.getDefault(a,b,c)},"javax.swing.JComponent,javax.swing.plaf.ComponentUI,~S");
366 c$.getInt=d(c$,"getInt",function(a,b,c,f){a=jssun.swing.DefaultLookup.get(a,b,c);return null==a||!v(a,Number)?f:a.intValue()},"javax.swing.JComponent,javax.swing.plaf.ComponentUI,~S,~N");c$.getInt=d(c$,"getInt",function(a,b,c){return jssun.swing.DefaultLookup.getInt(a,b,c,-1)},"javax.swing.JComponent,javax.swing.plaf.ComponentUI,~S");c$.getInsets=d(c$,"getInsets",function(a,b,c,f){a=jssun.swing.DefaultLookup.get(a,b,c);return null==a||!v(a,java.awt.Insets)?f:a},"javax.swing.JComponent,javax.swing.plaf.ComponentUI,~S,java.awt.Insets");
367 c$.getInsets=d(c$,"getInsets",function(a,b,c){return jssun.swing.DefaultLookup.getInsets(a,b,c,null)},"javax.swing.JComponent,javax.swing.plaf.ComponentUI,~S");c$.getBoolean=d(c$,"getBoolean",function(a,b,c,f){a=jssun.swing.DefaultLookup.get(a,b,c);return null==a||!v(a,Boolean)?f:a.booleanValue()},"javax.swing.JComponent,javax.swing.plaf.ComponentUI,~S,~B");c$.getBoolean=d(c$,"getBoolean",function(a,b,c){return jssun.swing.DefaultLookup.getBoolean(a,b,c,!1)},"javax.swing.JComponent,javax.swing.plaf.ComponentUI,~S");
368 c$.getColor=d(c$,"getColor",function(a,b,c,f){a=jssun.swing.DefaultLookup.get(a,b,c);return null==a||!v(a,java.awt.Color)?f:a},"javax.swing.JComponent,javax.swing.plaf.ComponentUI,~S,java.awt.Color");c$.getColor=d(c$,"getColor",function(a,b,c){return jssun.swing.DefaultLookup.getColor(a,b,c,null)},"javax.swing.JComponent,javax.swing.plaf.ComponentUI,~S");c$.getIcon=d(c$,"getIcon",function(a,b,c,f){a=jssun.swing.DefaultLookup.get(a,b,c);return null==a||!v(a,javax.swing.Icon)?f:a},"javax.swing.JComponent,javax.swing.plaf.ComponentUI,~S,javax.swing.Icon");
369 c$.getIcon=d(c$,"getIcon",function(a,b,c){return jssun.swing.DefaultLookup.getIcon(a,b,c,null)},"javax.swing.JComponent,javax.swing.plaf.ComponentUI,~S");c$.getBorder=d(c$,"getBorder",function(a,b,c,f){a=jssun.swing.DefaultLookup.get(a,b,c);return null==a||!v(a,javax.swing.border.Border)?f:a},"javax.swing.JComponent,javax.swing.plaf.ComponentUI,~S,javax.swing.border.Border");c$.getBorder=d(c$,"getBorder",function(a,b,c){return jssun.swing.DefaultLookup.getBorder(a,b,c,null)},"javax.swing.JComponent,javax.swing.plaf.ComponentUI,~S");
370 d(c$,"getDefault",function(a,b,c){return javax.swing.UIManager.get(c,a.getLocale())},"javax.swing.JComponent,javax.swing.plaf.ComponentUI,~S");c$.DEFAULT_LOOKUP_KEY=c$.prototype.DEFAULT_LOOKUP_KEY=new W._O;G(c$,"currentDefaultThread",null,"currentDefaultLookup",null,"isLookupSet",!1)});p("javax.swing.plaf");q(["java.awt.Dimension","javax.swing.plaf.UIResource"],"javax.swing.plaf.DimensionUIResource",null,function(){c$=B(javax.swing.plaf,"DimensionUIResource",java.awt.Dimension,javax.swing.plaf.UIResource)});
371 p("javax.swing.plaf");q(["java.awt.Insets","javax.swing.plaf.UIResource"],"javax.swing.plaf.InsetsUIResource",null,function(){c$=B(javax.swing.plaf,"InsetsUIResource",java.awt.Insets,javax.swing.plaf.UIResource)});p("swingjs.plaf");M(swingjs.plaf,"JSEventHandler");p("JU");q(["java.net.URLStreamHandlerFactory","java.util.Hashtable"],"JU.AjaxURLStreamHandlerFactory",["JU.AjaxURLStreamHandler"],function(){c$=s(function(){this.htFactories=null;r(this,arguments)},JU,"AjaxURLStreamHandlerFactory",null,
372 java.net.URLStreamHandlerFactory);J(c$,function(){this.htFactories=new java.util.Hashtable});e(c$,"createURLStreamHandler",function(a){var b=this.htFactories.get(a);null==b&&this.htFactories.put(a,b=new JU.AjaxURLStreamHandler(a));return null==b.protocol?null:b},"~S")});p("java.net");M(java.net,"URLStreamHandlerFactory");p("JU");q(["java.net.URLStreamHandler"],"JU.AjaxURLStreamHandler",["JU.AjaxURLConnection","$.SB"],function(){c$=s(function(){this.protocol=null;r(this,arguments)},JU,"AjaxURLStreamHandler",
373 java.net.URLStreamHandler);m(c$,function(a){t(this,JU.AjaxURLStreamHandler,[]);this.protocol=a},"~S");e(c$,"openConnection",function(a){return new JU.AjaxURLConnection(a)},"java.net.URL");e(c$,"toExternalForm",function(a){var b=new JU.SB;b.append(a.getProtocol());b.append(":");null!=a.getAuthority()&&0<a.getAuthority().length&&(b.append("//"),b.append(a.getAuthority()));null!=a.getPath()&&b.append(a.getPath());null!=a.getQuery()&&(b.append("?"),b.append(a.getQuery()));null!=a.getRef()&&(b.append("#"),
374 b.append(a.getRef()));return b.toString()},"java.net.URL")});p("java.net");q(null,"java.net.URLStreamHandler",["java.lang.IllegalArgumentException","$.SecurityException","$.UnsupportedOperationException"],function(){c$=B(java.net,"URLStreamHandler");d(c$,"openConnectionProxy",function(){throw new UnsupportedOperationException("Method not implemented.");},"java.net.URL,java.net.Proxy");d(c$,"parseURL",function(a,b,c,f){var l=a.getProtocol(),d=a.getAuthority(),g=a.getUserInfo(),h=a.getHost(),j=a.getPort(),
375 e=a.getPath(),x=a.getQuery(),u=a.getRef(),D=!1,m=!1;if(c<f){var p=b.indexOf("?"),m=p==c;-1!=p&&p<f&&(x=b.substring(p+1,f),f>p&&(f=p),b=b.substring(0,p))}var q=0;if(!(c<=f-4&&"/"==b.charAt(c)&&"/"==b.charAt(c+1)&&"/"==b.charAt(c+2)&&"/"==b.charAt(c+3))&&c<=f-2&&"/"==b.charAt(c)&&"/"==b.charAt(c+1)){c+=2;q=b.indexOf("/",c);0>q&&(q=b.indexOf("?",c),0>q&&(q=f));h=d=b.substring(c,q);p=d.indexOf("@");-1!=p?(g=d.substring(0,p),h=d.substring(p+1)):g=null;if(null!=h){if(0<h.length&&"["==h.charAt(0))throw new IllegalArgumentException("Invalid host: "+
376 h);p=h.indexOf(":");j=-1;0<=p&&(h.length>p+1&&(j=Integer.parseInt(h.substring(p+1))),h=h.substring(0,p))}else h="";if(-1>j)throw new IllegalArgumentException("Invalid port number :"+j);c=q;0<d.length&&(e="")}null==h&&(h="");c<f?"/"==b.charAt(c)?e=b.substring(c,f):null!=e&&0<e.length?(D=!0,p=e.lastIndexOf("/"),m="",-1==p&&null!=d&&(m="/"),e=e.substring(0,p+1)+m+b.substring(c,f)):e=(null!=d?"/":"")+b.substring(c,f):m&&null!=e&&(p=e.lastIndexOf("/"),0>p&&(p=0),e=e.substring(0,p)+"/");null==e&&(e="");
377 if(D){for(;0<=(q=e.indexOf("/./"));)e=e.substring(0,q)+e.substring(q+2);for(q=0;0<=(q=e.indexOf("/../",q));)0<q&&0<=(f=e.lastIndexOf("/",q-1))&&0!=e.indexOf("/../",f)?(e=e.substring(0,f)+e.substring(q+3),q=0):q+=3;for(;e.endsWith("/..");)if(q=e.indexOf("/.."),0<=(f=e.lastIndexOf("/",q-1)))e=e.substring(0,f+1);else break;e.startsWith("./")&&2<e.length&&(e=e.substring(2));e.endsWith("/.")&&(e=e.substring(0,e.length-1))}this.setURL(a,l,h,j,d,g,e,x,u)},"java.net.URL,~S,~N,~N");d(c$,"getDefaultPort",function(){return-1});
378 d(c$,"equals2",function(a,b){var c=a.getRef(),f=b.getRef();return(c===f||null!=c&&c.equals(f))&&this.sameFile(a,b)},"java.net.URL,java.net.URL");d(c$,"hashCode",function(a){var b=0,c=a.getProtocol();null!=c&&(b+=c.hashCode());b+=a.toString().hashCode();c=a.getFile();null!=c&&(b+=c.hashCode());b=-1==a.getPort()?b+this.getDefaultPort():b+a.getPort();a=a.getRef();null!=a&&(b+=a.hashCode());return b},"java.net.URL");d(c$,"sameFile",function(a,b){if(!(a.getProtocol()===b.getProtocol()||null!=a.getProtocol()&&
379 a.getProtocol().equalsIgnoreCase(b.getProtocol()))||!(a.getFile()===b.getFile()||null!=a.getFile()&&a.getFile().equals(b.getFile())))return!1;var c,f;c=-1!=a.getPort()?a.getPort():a.handler.getDefaultPort();f=-1!=b.getPort()?b.getPort():b.handler.getDefaultPort();return c!=f||!this.hostsEqual(a,b)?!1:!0},"java.net.URL,java.net.URL");d(c$,"hostsEqual",function(a,b){return null!=a.getHost()&&null!=b.getHost()?a.getHost().equalsIgnoreCase(b.getHost()):null==a.getHost()&&null==b.getHost()},"java.net.URL,java.net.URL");
380 d(c$,"toExternalForm",function(){return""},"java.net.URL");d(c$,"setURL",function(a,b,c,f,l,d,g,h,j){if(this!==a.handler)throw new SecurityException("handler for url different from this handler");a.set(a.getProtocol(),c,f,l,d,g,h,j)},"java.net.URL,~S,~S,~N,~S,~S,~S,~S,~S");d(c$,"setURLDeprecated",function(a,b,c,f,l,d){var g=null,h=null;if(null!=c&&0!=c.length){var g=-1==f?c:c+":"+f,j=c.lastIndexOf("@");-1!=j&&(h=c.substring(0,j),c=c.substring(j+1))}var e=null,j=null;null!=l&&(e=l.lastIndexOf("?"),
381 -1!=e?(j=l.substring(e+1),e=l.substring(0,e)):e=l);this.setURL(a,b,c,f,g,h,e,j,d)},"java.net.URL,~S,~S,~N,~S,~S")});p("JU");q(["java.net.URLConnection"],"JU.AjaxURLConnection",["JU.AU","$.Rdr","$.SB"],function(){c$=s(function(){this.bytesOut=null;this.postOut="";r(this,arguments)},JU,"AjaxURLConnection",java.net.URLConnection);d(c$,"doAjax",function(){return Jmol._doAjax(this.url,this.postOut,this.bytesOut)});e(c$,"connect",function(){});d(c$,"outputBytes",function(a){this.bytesOut=a},"~A");d(c$,
382 "outputString",function(a){this.postOut=a},"~S");e(c$,"getInputStream",function(){var a=null,b=this.doAjax();JU.AU.isAB(b)?a=JU.Rdr.getBIS(b):v(b,JU.SB)?a=JU.Rdr.getBIS(JU.Rdr.getBytesFromSB(b)):v(b,String)&&(a=JU.Rdr.getBIS(b.getBytes()));return a});d(c$,"getContents",function(){return this.doAjax()})});p("java.net");q(null,"java.net.URLConnection",["java.lang.IllegalStateException","$.NullPointerException","java.net.UnknownServiceException","JU.Lst"],function(){c$=s(function(){this.url=null;this.doInput=
383 !0;this.connected=this.doOutput=!1;this.requests=null;r(this,arguments)},java.net,"URLConnection");d(c$,"setDoInput",function(a){if(this.connected)throw new IllegalStateException("Already connected");this.doInput=a},"~B");d(c$,"getDoInput",function(){return this.doInput});d(c$,"setDoOutput",function(a){if(this.connected)throw new IllegalStateException("Already connected");this.doOutput=a},"~B");d(c$,"getDoOutput",function(){return this.doOutput});m(c$,function(a){this.url=a},"java.net.URL");d(c$,
384 "getURL",function(){return this.url});d(c$,"getInputStream",function(){throw new java.net.UnknownServiceException("protocol doesn't support input");});d(c$,"getOutputStream",function(){throw new java.net.UnknownServiceException("protocol doesn't support output");});d(c$,"setRequestProperty",function(a,b){if(this.connected)throw new IllegalStateException("Already connected");if(null==a)throw new NullPointerException("key is null");null==this.requests&&(this.requests=new JU.Lst);for(var c=this.requests.size();0<=
385 --c;)if(this.requests.get(c)[0].equals(a)){this.requests.get(c)[1]=b;return}this.requests.addLast(E(-1,[a,b]))},"~S,~S")});p("java.net");q(["java.io.IOException"],"java.net.UnknownServiceException",null,function(){c$=B(java.net,"UnknownServiceException",java.io.IOException);m(c$,function(){t(this,java.net.UnknownServiceException,[])})});p("jalview.bin");q("jalview.api.StructureSelectionManagerProvider jalview.javascript.JalviewLiteJsApi java.lang.Thread javax.swing.JApplet jalview.util.MessageManager java.util.Hashtable $.Vector javax.swing.JButton".split(" "),
386 "jalview.bin.JalviewLite","awt2swing.Util jalview.analysis.SequenceIdMatcher jalview.appletgui.AlignFrame $.EmbmenuFrame $.FeatureSettings $.SplitFrame jalview.datamodel.Alignment $.AlignmentOrder $.ColumnSelection $.PDBEntry $.SequenceGroup jalview.io.AnnotationFile $.AppletFormatAdapter $.FileParse $.IdentifyFile $.JnetAnnotationMaker $.NewickFile jalview.javascript.JSFunctionExec $.JsSelectionSender $.MouseOverListener $.MouseOverStructureListener jalview.jsdev.GenericFileAdapter jalview.schemes.ColourSchemeProperty $.UserColourScheme jalview.structure.SelectionListener $.StructureSelectionManager java.awt.Color $.EventQueue $.Font java.awt.event.ActionListener $.WindowAdapter java.io.BufferedReader $.InputStreamReader java.lang.Error $.StringBuffer java.net.URL java.util.StringTokenizer netscape.javascript.JSObject".split(" "),
387 function(){c$=s(function(){this.enableSplitFrame=this.embedded=!1;this.checkForJmol=this.showButton=!0;this.jalviewServletURL=null;this.startupFile="No file";this.jsFunctionExec=this.javascriptListeners=this.file2=this.upperCase=this.heightScale=this.widthScale=this.userDefinedColour=this.centrecolumnlabels=this.wrap=this.sortBy=this.defaultColour=this.windowHeight=this.windowWidth=this.treeFile=this.scoreFile=this.showFeatureSettings=this.features=this.showFeatureGroups=this.hideFeatureGroups=this.annotations=
388 this.jnetFile=this.sequence=this.pdbFile=this.initjscallback=this.labelColour=this.rgb=this.sep=this.externalstructureviewer=this.helpUrl=null;this.fileFound=!0;this.initialAlignFrame=this.currentAlignFrame=this.launcher=null;this.haveShownLoadMessage=this.useXtrnalSviewer=this.alignPdbStructures=this.jmolAvailable=this.checkedForJmol=!1;H("jalview.bin.JalviewLite.LoadJmolThread")||jalview.bin.JalviewLite.$JalviewLite$LoadJmolThread$();H("jalview.bin.JalviewLite.LoadingThread")||jalview.bin.JalviewLite.$JalviewLite$LoadingThread$();
389 this.separator="\u00ac";this.jsfallbackEnabled=!1;this.jsExecQueue=this.jsmessages=this.jshashes=null;r(this,arguments)},jalview.bin,"JalviewLite",javax.swing.JApplet,[jalview.api.StructureSelectionManagerProvider,jalview.javascript.JalviewLiteJsApi]);J(c$,function(){this.javascriptListeners=new java.util.Vector;this.launcher=new javax.swing.JButton(jalview.util.MessageManager.getString("label.start_jalview"));this.jshashes=new java.util.Hashtable;this.jsmessages=new java.util.Hashtable;this.jsExecQueue=
390 new java.util.Vector});d(c$,"setParams",function(){jalview.bin.JalviewLite.debug="true".equalsIgnoreCase(this.getParameter("debug"));this.enableSplitFrame="true".equalsIgnoreCase(this.getParameter("enableSplitFrame"));this.embedded="true".equalsIgnoreCase(this.getParameter("embedded"));this.showButton=!"false".equalsIgnoreCase(this.getParameter("showbutton"));this.jalviewServletURL=this.getParameter("APPLICATION_URL");this.startupFile=this.getParameter("file");this.helpUrl=this.getParameter("jalviewhelpurl");
391 this.externalstructureviewer=this.getParameter("externalstructureviewer");this.checkForJmol=!"true".equals(this.getParameter("nojmol"));this.sep=this.getParameter("separator");this.rgb=this.getParameter("RGB");this.labelColour=this.getParameter("label");this.initjscallback=this.getParameter("oninit");this.pdbFile=this.getParameter("PDBFILE");this.sequence=this.getParameter("PDBSEQ");this.jnetFile=this.getParameter("jnetfile");this.annotations=this.getParameter("annotations");this.hideFeatureGroups=
392 this.getParameter("hidefeaturegroups");this.showFeatureGroups=this.getParameter("showfeaturegroups");this.features=this.getParameter("features");this.showFeatureSettings=this.getParameter("showFeatureSettings");this.scoreFile=this.getParameter("scoreFile");this.treeFile=this.getParameter("tree");null==this.treeFile&&(this.treeFile=this.getParameter("treeFile"));this.windowWidth=this.getParameter("windowWidth");this.windowHeight=this.getParameter("windowHeight");this.defaultColour=this.getParameter("defaultColour");
393 this.sortBy=this.getParameter("sortBy");this.wrap=this.getParameter("wrap");this.centrecolumnlabels=this.getParameter("centrecolumnlabels");this.userDefinedColour=this.getParameter("userDefinedColour");this.widthScale=this.getParameter("widthScale");this.heightScale=this.getParameter("heightScale");this.upperCase=this.getParameter("upperCase");this.file2=this.getParameter("file2")});d(c$,"getDefaultParameter",function(a,b){var c;return null==(c=this.getParameter(a))?b:c.toLowerCase().equals("true")?
394 !0:!1},"~S,~B");d(c$,"getLinkParams",function(a){for(var b,c,f=1;10>f;f++)b=this.getParameter("linkLabel_"+f),c=this.getParameter("linkURL_"+f),null!=b&&null!=c&&a.addElement(b+"|"+c)},"java.util.Vector");d(c$,"getStructureSelectionManager",function(){return jalview.structure.StructureSelectionManager.getStructureSelectionManager(this)});d(c$,"getSelectedSequences",function(){return this.getSelectedSequencesFrom(this.getDefaultTargetFrame())});d(c$,"getSelectedSequences",function(a){return this.getSelectedSequencesFrom(this.getDefaultTargetFrame(),
395 a)},"~S");d(c$,"getSelectedSequencesFrom",function(a){return this.getSelectedSequencesFrom(a,this.separator)},"jalview.appletgui.AlignFrame");d(c$,"getSelectedSequencesFrom",function(a,b){var c=new StringBuffer("");if(null==b||0==b.length)b=this.separator;if(null!=a.viewport.getSelectionGroup())for(var f=a.viewport.getSelectionGroup().getSequencesInOrder(a.viewport.getAlignment()),l=0;l<f.length;l++)c.append(f[l].getName()),c.append(b);return c.toString()},"jalview.appletgui.AlignFrame,~S");e(c$,
396 "highlight",function(a,b,c){this.highlightIn(this.getDefaultTargetFrame(),a,b,c)},"~S,~S,~S");e(c$,"highlightIn",function(a,b,c,f){a=(new jalview.analysis.SequenceIdMatcher(a.viewport.getAlignment().getSequencesArray())).findIdMatch(b);if(null!=a){b=-1;try{b=(new Integer(c)).intValue(),b--}catch(l){if(y(l,NumberFormatException))return;throw l;}c=b;null!=f&&(0==f.trim().length||-1<f.toLowerCase().indexOf("false"))?java.awt.EventQueue.invokeLater((H("jalview.bin.JalviewLite$1")?0:jalview.bin.JalviewLite.$JalviewLite$1$(),
397 C(jalview.bin.JalviewLite$1,this,T("me",this,"sq",a,"pos",c)))):java.awt.EventQueue.invokeLater((H("jalview.bin.JalviewLite$2")?0:jalview.bin.JalviewLite.$JalviewLite$2$(),C(jalview.bin.JalviewLite$2,this,T("me",this,"sq",a,"pos",c))))}},"jalview.appletgui.AlignFrame,~S,~S,~S");d(c$,"select",function(a,b){this.selectIn(this.getDefaultTargetFrame(),a,b,this.separator)},"~S,~S");d(c$,"select",function(a,b,c){this.selectIn(this.getDefaultTargetFrame(),a,b,c)},"~S,~S,~S");d(c$,"selectIn",function(a,b,
398 c){this.selectIn(a,b,c,this.separator)},"jalview.appletgui.AlignFrame,~S,~S");d(c$,"selectIn",function(a,b,c,f){null==f||0==f.length?f=this.separator:jalview.bin.JalviewLite.debug&&System.err.println("Selecting region using separator string '"+this.separator+"'");var l=this.separatorListToArray(b,f),d=this.separatorListToArray(c,f);c=new jalview.datamodel.SequenceGroup;f=new jalview.datamodel.ColumnSelection;var g=a.viewport.getAlignment(),h=new jalview.analysis.SequenceIdMatcher(a.viewport.getAlignment().getSequencesArray());
399 b=0;var j=g.getWidth(),g=g.getWidth(),e=!0;if(null!=l&&0<l.length)for(var e=!1,x=0;x<l.length;x++)if(0!=l[x].trim().length){var u=h.findIdMatch(l[x]);null!=u&&(e=!0,c.addSequence(u,!1))}l=!1;if(null!=d&&0<d.length){h=!1;for(x=0;x<d.length;x++)if(u=d[x].trim(),0!=u.length){var D;if(-1<(D=u.indexOf("-"))){var m=-1,p=-1;try{m=(new Integer(u.substring(0,D))).intValue(),m--}catch(q){if(y(q,NumberFormatException)){System.err.println("ERROR: Couldn't parse first integer in range element column selection string '"+
400 u+"' - format is 'from-to'");return}throw q;}try{p=(new Integer(u.substring(D+1))).intValue(),p--}catch(r){if(y(r,NumberFormatException)){System.err.println("ERROR: Couldn't parse second integer in range element column selection string '"+u+"' - format is 'from-to'");return}throw r;}if(0<=m&&0<=p){h?(b>m&&(b=m),j<p&&(j=p)):(b=m,j=p,h=!0);for(D=m;D<=p;D++)0<=D&&D<g&&f.addElement(D);jalview.bin.JalviewLite.debug&&System.err.println("Range '"+u+"' deparsed as ["+m+","+p+"]")}else System.err.println("ERROR: Invalid Range '"+
401 u+"' deparsed as ["+m+","+p+"]")}else{D=-1;try{D=(new Integer(u)).intValue(),D--}catch(s){if(y(s,NumberFormatException))if(u.toLowerCase().equals("sequence"))l=!0;else{System.err.println("ERROR: Couldn't parse integer from point selection element of column selection string '"+u+"'");return}else throw s;}0<=D&&D<=g?(h?(b>D&&(b=D),j<D&&(j=D)):(j=b=D,h=!0),f.addElement(D),jalview.bin.JalviewLite.debug&&System.err.println("Point selection '"+u+"' deparsed as ["+D+"]")):System.err.println("ERROR: Invalid Point selection '"+
402 u+"' deparsed as ["+D+"]")}}}if(e){if(l&&0<c.getSize()&&(d=c.getSequenceAt(0),b=d.findIndex(b),j=d.findIndex(j),null!=f)){g=f.getSelected();f.clear();for(var t,g=g.iterator();g.hasNext()&&((t=g.next())||1);)f.addElement(d.findIndex(t.intValue()))}c.setStartRes(b);c.setEndRes(j);java.awt.EventQueue.invokeLater((H("jalview.bin.JalviewLite$3")?0:jalview.bin.JalviewLite.$JalviewLite$3$(),C(jalview.bin.JalviewLite$3,this,T("alf",a,"sel",c,"csel",f))))}},"jalview.appletgui.AlignFrame,~S,~S,~S");e(c$,"getSelectedSequencesAsAlignment",
403 function(a,b){return this.getSelectedSequencesAsAlignmentFrom(this.getDefaultTargetFrame(),a,b)},"~S,~S");e(c$,"getSelectedSequencesAsAlignmentFrom",function(a,b,c){try{var f=c.equalsIgnoreCase("true");if(null!=a.viewport.getSelectionGroup())return(new jalview.io.AppletFormatAdapter).formatSequences(b,new jalview.datamodel.Alignment(a.viewport.getSelectionAsNewSequence()),f)}catch(l){if(y(l,Exception))return l.printStackTrace(),"Error retrieving alignment in "+b+" format. ";throw l;}return""},"jalview.appletgui.AlignFrame,~S,~S");
404 e(c$,"getAlignmentOrder",function(){return this.getAlignmentOrderFrom(this.getDefaultTargetFrame())});d(c$,"getAlignmentOrderFrom",function(a){return this.getAlignmentOrderFrom(a,this.separator)},"jalview.appletgui.AlignFrame");d(c$,"getAlignmentOrderFrom",function(a){a=a.getAlignViewport().getAlignment();for(var b=Array(a.getHeight()),c=0;c<b.length;c++)b[c]=a.getSequenceAt(c).getName();return this.arrayToSeparatorList(b)},"jalview.appletgui.AlignFrame,~S");d(c$,"orderBy",function(a,b){return this.orderBy(a,
405 b,this.separator)},"~S,~S");d(c$,"orderBy",function(a,b,c){return this.orderAlignmentBy(this.getDefaultTargetFrame(),a,b,c)},"~S,~S,~S");e(c$,"orderAlignmentBy",function(a,b,c,f){var l=this.separatorListToArray(b,f);b=null;if(null!=l&&0<l.length){var d=new jalview.analysis.SequenceIdMatcher(a.viewport.getAlignment().getSequencesArray());f=0;b=Array(l.length);for(var g=0;g<l.length;g++)if(0!=l[g].trim().length){var h=d.findIdMatch(l[g]);null!=h&&(b[f++]=h)}0<f?(l=Array(f),System.arraycopy(b,0,l,0,
406 f),b=l):b=null}if(null==b)return"";b=new jalview.datamodel.AlignmentOrder(b);null!=c&&0==c.trim().length&&(c=null);return a.sortBy(b,c)?"true":""},"jalview.appletgui.AlignFrame,~S,~S,~S");d(c$,"getAlignment",function(a){return this.getAlignmentFrom(this.getDefaultTargetFrame(),a,"true")},"~S");d(c$,"getAlignmentFrom",function(a,b){return this.getAlignmentFrom(a,b,"true")},"jalview.appletgui.AlignFrame,~S");d(c$,"getAlignment",function(a,b){return this.getAlignmentFrom(this.getDefaultTargetFrame(),
407 a,b)},"~S,~S");d(c$,"getAlignmentFrom",function(a,b,c){try{var f=c.equalsIgnoreCase("true");return(new jalview.io.AppletFormatAdapter).formatSequences(b,a.viewport.getAlignment(),f)}catch(l){if(y(l,Exception))return l.printStackTrace(),"Error retrieving alignment in "+b+" format. ";throw l;}},"jalview.appletgui.AlignFrame,~S,~S");e(c$,"loadAnnotation",function(a){this.loadAnnotationFrom(this.getDefaultTargetFrame(),a)},"~S");e(c$,"loadAnnotationFrom",function(a,b){(new jalview.io.AnnotationFile).annotateAlignmentView(a.getAlignViewport(),
408 b,jalview.io.AppletFormatAdapter.PASTE)?(a.alignPanel.fontChanged(),a.alignPanel.setScrollValues(0,0)):a.parseFeaturesFile(b,jalview.io.AppletFormatAdapter.PASTE)},"jalview.appletgui.AlignFrame,~S");e(c$,"loadFeatures",function(a,b){this.loadFeaturesFrom(this.getDefaultTargetFrame(),a,b)},"~S,~B");e(c$,"loadFeaturesFrom",function(a,b,c){return a.parseFeaturesFile(b,jalview.io.AppletFormatAdapter.PASTE,c)},"jalview.appletgui.AlignFrame,~S,~B");e(c$,"getFeatures",function(a){return this.getFeaturesFrom(this.getDefaultTargetFrame(),
409 a)},"~S");e(c$,"getFeaturesFrom",function(a,b){return a.outputFeatures(!1,b)},"jalview.appletgui.AlignFrame,~S");e(c$,"getAnnotation",function(){return this.getAnnotationFrom(this.getDefaultTargetFrame())});e(c$,"getAnnotationFrom",function(a){return a.outputAnnotations(!1)},"jalview.appletgui.AlignFrame");d(c$,"newView",function(){return this.newViewFrom(this.getDefaultTargetFrame())});d(c$,"newView",function(a){return this.newViewFrom(this.getDefaultTargetFrame(),a)},"~S");d(c$,"newViewFrom",function(a){return a.newView(null)},
410 "jalview.appletgui.AlignFrame");d(c$,"newViewFrom",function(a,b){return a.newView(b)},"jalview.appletgui.AlignFrame,~S");e(c$,"loadAlignment",function(a,b){var c=null,f=(new jalview.io.IdentifyFile).Identify(a,jalview.io.AppletFormatAdapter.PASTE);try{if(c=(new jalview.io.AppletFormatAdapter).readFile(a,jalview.io.AppletFormatAdapter.PASTE,f),0<c.getHeight())return new jalview.appletgui.AlignFrame(c,this,b,!1)}catch(l){if(y(l,java.io.IOException))l.printStackTrace();else throw l;}return null},"~S,~S");
411 d(c$,"setMouseoverListener",function(a){this.setMouseoverListener(this.currentAlignFrame,a)},"~S");d(c$,"setMouseoverListener",function(a,b){if(null!=b&&(b=b.trim(),0==b.length)){System.err.println("jalview Javascript error: Ignoring empty function for mouseover listener.");return}var c=new jalview.javascript.MouseOverListener(this,a,b);this.javascriptListeners.addElement(c);jalview.structure.StructureSelectionManager.getStructureSelectionManager(this).addStructureViewerListener(c);jalview.bin.JalviewLite.debug&&
412 (System.err.println("Added a mouseover listener for "+(null==a?"All frames":"Just views for "+a.getAlignViewport().getSequenceSetId())),System.err.println("There are now "+this.javascriptListeners.size()+" listeners in total."))},"jalview.appletgui.AlignFrame,~S");d(c$,"setSelectionListener",function(a){this.setSelectionListener(null,a)},"~S");d(c$,"setSelectionListener",function(a,b){if(null!=b&&(b=b.trim(),0==b.length)){System.err.println("jalview Javascript error: Ignoring empty function for selection listener.");
413 return}var c=new jalview.javascript.JsSelectionSender(this,a,b);this.javascriptListeners.addElement(c);jalview.structure.StructureSelectionManager.getStructureSelectionManager(this).addSelectionListener(c);jalview.bin.JalviewLite.debug&&(System.err.println("Added a selection listener for "+(null==a?"All frames":"Just views for "+a.getAlignViewport().getSequenceSetId())),System.err.println("There are now "+this.javascriptListeners.size()+" listeners in total."))},"jalview.appletgui.AlignFrame,~S");
414 e(c$,"setStructureListener",function(a,b){if(null!=a&&(a=a.trim(),0==a.length)){System.err.println("jalview Javascript error: Ignoring empty function for selection listener.");return}var c=new jalview.javascript.MouseOverStructureListener(this,a,this.separatorListToArray(b));this.javascriptListeners.addElement(c);jalview.structure.StructureSelectionManager.getStructureSelectionManager(this).addStructureViewerListener(c);jalview.bin.JalviewLite.debug&&(System.err.println("Added a javascript structure viewer listener '"+
415 a+"'"),System.err.println("There are now "+this.javascriptListeners.size()+" listeners in total."))},"~S,~S");e(c$,"removeJavascriptListener",function(a,b){null!=b&&(b=b.trim(),0==b.length&&(b=null));for(var c=!1,f=0,l=this.javascriptListeners.size();f<l;){var d=this.javascriptListeners.elementAt(f);(null==a||d.getAlignFrame()===a)&&(null==b||d.getListenerFunction().equals(b))?(this.javascriptListeners.removeElement(d),l--,v(d,jalview.structure.SelectionListener)?jalview.structure.StructureSelectionManager.getStructureSelectionManager(this).removeSelectionListener(d):
416 jalview.structure.StructureSelectionManager.getStructureSelectionManager(this).removeStructureViewerListener(d,null),(c=jalview.bin.JalviewLite.debug)&&System.err.println("Removed listener '"+b+"'")):f++}c&&System.err.println("There are now "+this.javascriptListeners.size()+" listeners in total.")},"jalview.appletgui.AlignFrame,~S");e(c$,"stop",function(){System.err.println("Applet "+this.getName()+" stop().");this.tidyUp()});e(c$,"destroy",function(){System.err.println("Applet "+this.getName()+" destroy().");
417 this.tidyUp()});d(c$,"tidyUp",function(){this.removeAll();if(null!=this.currentAlignFrame&&null!=this.currentAlignFrame.viewport&&null!=this.currentAlignFrame.viewport.applet){var a=this.currentAlignFrame.viewport;this.currentAlignFrame.closeMenuItem_actionPerformed();this.currentAlignFrame=a.applet=null}if(null!=this.javascriptListeners)for(;0<this.javascriptListeners.size();)a=this.javascriptListeners.elementAt(0),this.javascriptListeners.removeElement(a),v(a,jalview.structure.SelectionListener)?
418 jalview.structure.StructureSelectionManager.getStructureSelectionManager(this).removeSelectionListener(a):jalview.structure.StructureSelectionManager.getStructureSelectionManager(this).removeStructureViewerListener(a,null),a.jvlite=null;null!=this.jsFunctionExec&&(this.jsFunctionExec.stopQueue(),this.jsFunctionExec.jvlite=null);this.javascriptListeners=this.jsFunctionExec=this.initialAlignFrame=null;jalview.structure.StructureSelectionManager.release(this)});e(c$,"mouseOverStructure",function(a,b,
419 c){java.awt.EventQueue.invokeLater((H("jalview.bin.JalviewLite$4")?0:jalview.bin.JalviewLite.$JalviewLite$4$(),C(jalview.bin.JalviewLite$4,this,T("me",this,"pdbResNum",a,"chain",b,"pdbfile",c))))},"~S,~S,~S");e(c$,"scrollViewToIn",function(a,b,c){java.awt.EventQueue.invokeLater((H("jalview.bin.JalviewLite$5")?0:jalview.bin.JalviewLite.$JalviewLite$5$(),C(jalview.bin.JalviewLite$5,this,T("alf",a,"topRow",b,"leftHandColumn",c))))},"jalview.appletgui.AlignFrame,~S,~S");e(c$,"scrollViewToRowIn",function(a,
420 b){java.awt.EventQueue.invokeLater((H("jalview.bin.JalviewLite$6")?0:jalview.bin.JalviewLite.$JalviewLite$6$(),C(jalview.bin.JalviewLite$6,this,T("alf",a,"topRow",b))))},"jalview.appletgui.AlignFrame,~S");e(c$,"scrollViewToColumnIn",function(a,b){java.awt.EventQueue.invokeLater((H("jalview.bin.JalviewLite$7")?0:jalview.bin.JalviewLite.$JalviewLite$7$(),C(jalview.bin.JalviewLite$7,this,T("alf",a,"leftHandColumn",b))))},"jalview.appletgui.AlignFrame,~S");c$.initBuildDetails=d(c$,"initBuildDetails",
421 function(){if(null==jalview.bin.JalviewLite.builddate){jalview.bin.JalviewLite.builddate="unknown";jalview.bin.JalviewLite.version="test";jalview.bin.JalviewLite.installation="Webstart";var a=jalview.bin.JalviewLite.getResource("/.build_properties");if(null!=a)try{for(var b=new java.io.BufferedReader(new java.io.InputStreamReader(a.openStream())),c;null!=(c=b.readLine());)-1<c.indexOf("VERSION")&&(jalview.bin.JalviewLite.version=c.substring(c.indexOf("=")+1)),-1<c.indexOf("BUILD_DATE")&&(jalview.bin.JalviewLite.builddate=
422 c.substring(c.indexOf("=")+1)),-1<c.indexOf("INSTALLATION")&&(jalview.bin.JalviewLite.installation=c.substring(c.indexOf("=")+1))}catch(f){if(y(f,Exception))f.printStackTrace();else throw f;}}});c$.getBuildDate=d(c$,"getBuildDate",function(){jalview.bin.JalviewLite.initBuildDetails();return jalview.bin.JalviewLite.builddate});c$.getInstallation=d(c$,"getInstallation",function(){jalview.bin.JalviewLite.initBuildDetails();return jalview.bin.JalviewLite.installation});c$.getVersion=d(c$,"getVersion",
423 function(){jalview.bin.JalviewLite.initBuildDetails();return jalview.bin.JalviewLite.version});e(c$,"init",function(){this.setParams();try{jalview.bin.JalviewLite.debug&&System.err.println("Applet context is '"+this.getAppletContext().getClass().toString()+"'");var a=netscape.javascript.JSObject.getWindow(this);jalview.bin.JalviewLite.debug&&null!=a&&System.err.println("Applet has Javascript callback support.")}catch(b){if(y(b,Exception))System.err.println("Warning: No JalviewLite javascript callbacks available."),
424 jalview.bin.JalviewLite.debug&&b.printStackTrace();else throw b;}jalview.bin.JalviewLite.debug&&(System.err.println("JalviewLite Version "+jalview.bin.JalviewLite.getVersion()),System.err.println("Build Date : "+jalview.bin.JalviewLite.getBuildDate()),System.err.println("Installation : "+jalview.bin.JalviewLite.getInstallation()));null!=this.externalstructureviewer&&(this.useXtrnalSviewer=this.externalstructureviewer.trim().toLowerCase().equals("true"));if(null!=this.sep)if(0<this.sep.length)this.separator=
425 this.sep,jalview.bin.JalviewLite.debug&&System.err.println("Separator set to '"+this.separator+"'");else throw Error(jalview.util.MessageManager.getString("error.invalid_separator_parameter"));var c=a=255,f=255;if(null!=this.rgb)try{a=Integer.parseInt(this.rgb.substring(0,2),16),c=Integer.parseInt(this.rgb.substring(2,4),16),f=Integer.parseInt(this.rgb.substring(4,6),16)}catch(l){if(y(l,Exception))f=c=a=255;else throw l;}this.rgb=this.labelColour;null!=this.rgb&&this.launcher.setLabel(this.rgb);this.setBackground(new java.awt.Color(a,
426 c,f));if(null==this.startupFile){a=new StringBuffer("PASTE");for(c=1;null!=(this.startupFile=this.getParameter("sequence"+c));)a.append(this.startupFile.toString()+"\n"),c++;5<a.length()&&(this.startupFile=a.toString())}this.enableSplitFrame||(this.file2=null);this.embedded?(a=C(jalview.bin.JalviewLite.LoadingThread,this,null,this.startupFile,this.file2,this),a.run()):null!=this.startupFile?this.showButton?(this.add(this.launcher),this.launcher.addActionListener((H("jalview.bin.JalviewLite$8")?0:
427 jalview.bin.JalviewLite.$JalviewLite$8$(),C(jalview.bin.JalviewLite$8,this,null)))):(a=C(jalview.bin.JalviewLite.LoadingThread,this,null,this.startupFile,this.file2,this),a.start()):(this.startupFile="NO FILE",this.fileFound=!1,this.callInitCallback())});d(c$,"initLiveConnect",function(){for(var a=!1,b=0;!a&&10>b;){0<b&&System.err.println("LiveConnect request thread going to sleep.");try{Thread.sleep(700*(1+b))}catch(c){if(!y(c,InterruptedException))throw c;}0<b++&&System.err.println("LiveConnect request thread woken up.");
428 try{null!=netscape.javascript.JSObject.getWindow(this).eval("navigator")&&(a=!0)}catch(f){if(y(f,Exception))System.err.println("Attempt "+b+" to access LiveConnect javascript failed.");else throw f;}}});d(c$,"callInitCallback",function(){if(null!=this.initjscallback&&(this.initjscallback=this.initjscallback.trim(),0<this.initjscallback.length)){var a=null;try{a=netscape.javascript.JSObject.getWindow(this)}catch(b){if(!y(b,Exception))throw b;}this.initLiveConnect();if(null!=a)try{(new jalview.javascript.JSFunctionExec(this)).executeJavascriptFunction(!0,
429 this.initjscallback,null,"Calling oninit callback '"+this.initjscallback+"'.")}catch(c){if(y(c,Exception))System.err.println("Exception when executing _oninit callback '"+this.initjscallback+"'."),c.printStackTrace();else throw c;}else System.err.println("Not executing _oninit callback '"+this.initjscallback+"' - no scripting allowed.")}});c$.addFrame=d(c$,"addFrame",function(a,b,c,f){a.setLocation(jalview.bin.JalviewLite.lastFrameX,jalview.bin.JalviewLite.lastFrameY);jalview.bin.JalviewLite.lastFrameX+=
430 40;jalview.bin.JalviewLite.lastFrameY+=40;a.setSize(c,f);a.setTitle(b);a.addWindowListener((H("jalview.bin.JalviewLite$9")?0:jalview.bin.JalviewLite.$JalviewLite$9$(),C(jalview.bin.JalviewLite$9,this,T("frame",a))));a.setVisible(!0)},"javax.swing.JFrame,~S,~N,~N");d(c$,"paintComponent",function(a){this.fileFound?this.embedded&&!this.haveShownLoadMessage&&(a.setColor(java.awt.Color.black),a.setFont(new java.awt.Font("Arial",1,24)),awt2swing.Util.drawString(a,jalview.util.MessageManager.getString("label.jalview_applet"),
431 50,F(this.getSize().height/2)-30),awt2swing.Util.drawString(a,jalview.util.MessageManager.getString("label.loading_data")+"...",50,F(this.getSize().height/2)),this.haveShownLoadMessage=!0):(a.setColor(new java.awt.Color(200,200,200)),a.setColor(java.awt.Color.cyan),a.fillRect(0,0,this.getSize().width,this.getSize().height),a.setColor(java.awt.Color.red),awt2swing.Util.drawString(a,jalview.util.MessageManager.getString("label.jalview_cannot_open_file"),5,15),awt2swing.Util.drawString(a,'"'+this.startupFile+
432 '"',5,30))},"java.awt.Graphics");d(c$,"getAppletWindow",function(a){var b=new java.util.Vector,c=this.getComponents();if(null!=c)for(var f=0;f<c.length;f++)a.isAssignableFrom(c[f].getClass())&&b.addElement(c);return b},"Class");d(c$,"getDefaultTargetFrame",function(){if(null!=this.currentAlignFrame)return this.currentAlignFrame;if(null!=this.initialAlignFrame)return this.initialAlignFrame;System.err.println("Implementation error: Jalview Applet API cannot work out which AlignFrame to use.");return null});
433 d(c$,"separatorListToArray",function(a){return this.separatorListToArray(a,this.separator)},"~S");d(c$,"separatorListToArray",function(a,b){var c=b.length;if(null==a||a.equals("")||a.equals(b))return null;for(var f=new java.util.Vector,l=0,d;(d=a.indexOf(b,l))>l;)f.addElement(a.substring(l,d)),l=d+c;l<a.length&&(c=a.substring(l),c.equals(b)||f.addElement(c));if(0<f.size()){c=Array(f.size());for(l=0;l<c.length;l++)c[l]=f.elementAt(l);f.removeAllElements();if(jalview.bin.JalviewLite.debug){System.err.println("Array from '"+
434 b+"' separated List:\n"+c.length);for(l=0;l<c.length;l++)System.err.println("item "+l+" '"+c[l]+"'")}return c}jalview.bin.JalviewLite.debug&&System.err.println("Empty Array from '"+b+"' separated List");return null},"~S,~S");d(c$,"arrayToSeparatorList",function(a){return this.arrayToSeparatorList(a,this.separator)},"~A");d(c$,"arrayToSeparatorList",function(a,b){var c=new StringBuffer;if(null!=a&&0<a.length){for(var f=0,l=a.length;f<l;f++)null!=a[f]&&(0<f&&c.append(b),c.append(a[f]));jalview.bin.JalviewLite.debug&&
435 (System.err.println("Returning '"+b+"' separated List:\n"),System.err.println(c));return c.toString()}jalview.bin.JalviewLite.debug&&System.err.println("Returning empty '"+b+"' separated List\n");return""+b},"~A,~S");e(c$,"getFeatureGroups",function(){return this.arrayToSeparatorList(this.getDefaultTargetFrame().getFeatureGroups())});e(c$,"getFeatureGroupsOn",function(a){return this.arrayToSeparatorList(a.getFeatureGroups())},"jalview.appletgui.AlignFrame");e(c$,"getFeatureGroupsOfState",function(a){return this.arrayToSeparatorList(this.getDefaultTargetFrame().getFeatureGroupsOfState(a))},
436 "~B");e(c$,"getFeatureGroupsOfStateOn",function(a,b){return this.arrayToSeparatorList(a.getFeatureGroupsOfState(b))},"jalview.appletgui.AlignFrame,~B");e(c$,"setFeatureGroupStateOn",function(a,b,c){java.awt.EventQueue.invokeLater((H("jalview.bin.JalviewLite$10")?0:jalview.bin.JalviewLite.$JalviewLite$10$(),C(jalview.bin.JalviewLite$10,this,T("alf",a,"groups",b,"st",c))))},"jalview.appletgui.AlignFrame,~S,~B");e(c$,"setFeatureGroupState",function(a,b){this.setFeatureGroupStateOn(this.getDefaultTargetFrame(),
437 a,b)},"~S,~B");e(c$,"getSeparator",function(){return this.separator});e(c$,"setSeparator",function(a){if(null==a||1>a.length)a="\u00ac";this.separator=a;jalview.bin.JalviewLite.debug&&System.err.println("Default Separator now: '"+a+"'")},"~S");e(c$,"addPdbFile",function(a,b,c,f){return a.addPdbFile(b,c,f)},"jalview.appletgui.AlignFrame,~S,~S,~S");d(c$,"setAlignPdbStructures",function(a){this.alignPdbStructures=a},"~B");d(c$,"isAlignPdbStructures",function(){return this.alignPdbStructures});e(c$,"start",
438 function(){});d(c$,"setJsMessageSet",function(a,b,c){var f=this.jsmessages.get(a);null==f&&(f=new java.util.Hashtable,this.jsmessages.put(a,f));f.put(b,c);for(var f=ea(c.length,0),l=0;l<c.length;l++)f[l]=c[l].hashCode();this.jshashes.put(a+"|"+b,f)},"~S,~S,~A");e(c$,"getJsMessage",function(a,b){var c=this.jsmessages.get(a);if(null!=c&&(c=c.get(b),null!=c))for(var f=0;f<c.length;f++)if(null!=c[f]){var l=c[f];c[f]=null;return l}return""},"~S,~S");d(c$,"isJsMessageSetChanged",function(a,b,c){a=this.jshashes.get(a+
439 "|"+b);if(null==a&&null!=c)return!0;for(b=0;b<c.length;b++)if(a[b]!=c[b].hashCode())return!0;return!1},"~S,~S,~A");d(c$,"getJsExecQueue",function(){return this.jsExecQueue});d(c$,"setExecutor",function(a){this.jsFunctionExec=a},"jalview.javascript.JSFunctionExec");d(c$,"getDefaultColourParameter",function(a,b){var c=this.getParameter(a);if(null==c||0==c.trim().length)return b;var f=jalview.schemes.ColourSchemeProperty.getAWTColorFromName(c);if(null==f)try{f=(new jalview.schemes.UserColourScheme(c)).findColour("A")}catch(l){if(y(l,
440 Exception))System.err.println("Couldn't parse '"+c+"' as a colour for "+a),f=null;else throw l;}return null==f?b:f},"~S,java.awt.Color");d(c$,"openJalviewHelpUrl",function(){if(null==this.helpUrl||5>this.helpUrl.trim().length)this.helpUrl="http://www.jalview.org/help.html";this.showURL(this.helpUrl,"HELP")});d(c$,"resolveUrlForLocalOrAbsolute",function(a,b){var c=b.toString(),f=c.indexOf("?");0>f&&(f=c.length);c=c.substring(0,f);c=c.substring(0,c.lastIndexOf("/")+1);return 0==a.indexOf("/")&&!b.getProtocol().equals("file")?
441 (f=c.indexOf("/",8),c.substring(0,f)+a):c+a},"~S,java.net.URL");d(c$,"showURL",function(a,b){try{if(-1==a.indexOf(":")){var c;a=this.resolveUrlForLocalOrAbsolute(a,c=this.getDefaultParameter("resolvetocodebase",!1)?this.getDocumentBase():this.getCodeBase());jalview.bin.JalviewLite.debug&&System.err.println("Show url (prepended "+c+" - toggle resolvetocodebase if code/docbase resolution is wrong): "+a)}else jalview.bin.JalviewLite.debug&&System.err.println("Show url: "+a);0==a.indexOf("javascript:")?
442 this.getAppletContext().showDocument(new java.net.URL(a)):this.getAppletContext().showDocument(new java.net.URL(a),b)}catch(f){if(y(f,Exception))f.printStackTrace();else throw f;}},"~S,~S");c$.$JalviewLite$LoadJmolThread$=function(){A(self.c$);c$=s(function(){O(this,arguments);this.running=!1;r(this,arguments)},jalview.bin.JalviewLite,"LoadJmolThread",Thread);e(c$,"run",function(){if(!this.running&&!this.b$["jalview.bin.JalviewLite"].checkedForJmol){this.running=!0;if(this.b$["jalview.bin.JalviewLite"].checkForJmol)try{System.getProperty("java.version").startsWith("1.1")||
443 (W._4Name("org.jmol.adapter.smarter.SmarterJmolAdapter"),this.b$["jalview.bin.JalviewLite"].jmolAvailable=!0),this.b$["jalview.bin.JalviewLite"].jmolAvailable||System.out.println("Jmol not available - Using MCview for structures")}catch(a){if(!y(a,ClassNotFoundException))throw a;}else this.b$["jalview.bin.JalviewLite"].jmolAvailable=!1,jalview.bin.JalviewLite.debug&&System.err.println("Skipping Jmol check. Will use MCView (probably)");this.b$["jalview.bin.JalviewLite"].checkedForJmol=!0;this.running=
444 !1}});d(c$,"notFinished",function(){return this.running||!this.b$["jalview.bin.JalviewLite"].checkedForJmol});c$=z()};c$.$JalviewLite$LoadingThread$=function(){A(self.c$);c$=s(function(){O(this,arguments);this.applet=this._file2=this._file=this.protocol=null;r(this,arguments)},jalview.bin.JalviewLite,"LoadingThread",Thread);d(c$,"dbgMsg",function(a){jalview.bin.JalviewLite.debug&&System.err.println(a)},"~S");d(c$,"setProtocolState",function(a){a.startsWith("PASTE")?(a=a.substring(5),this.protocol=
445 jalview.io.AppletFormatAdapter.PASTE):this.inArchive(a)?this.protocol=jalview.io.AppletFormatAdapter.CLASSLOADER:(a=this.addProtocol(a),this.protocol=jalview.io.AppletFormatAdapter.URL);this.dbgMsg("Protocol identified as '"+this.protocol+"'");return a},"~S");m(c$,function(a,b,c){t(this,jalview.bin.JalviewLite.LoadingThread,[]);this._file=a;this._file2=b;this.applet=c},"~S,~S,jalview.bin.JalviewLite");e(c$,"run",function(){System.out.println("BYPASSING JMOL LOADING FOR NOW. THIS WILL BE DONE ANOTHER WAY");
446 this.startLoading()});d(c$,"startLoading",function(){this.dbgMsg("Loading thread started with:\n>>file\n"+this._file+">>endfile");this.dbgMsg("Loading started.");var a=this.readAlignment(this._file),b=this.readAlignment(this._file2);null!=a?(this.addToDisplay(a,b),this.loadTree(a),this.loadScoreFile(a),this.loadFeatures(a),this.loadAnnotations(a),this.loadJnetFile(a),this.loadPdbFiles(a)):(this.b$["jalview.bin.JalviewLite"].fileFound=!1,this.applet.remove(this.b$["jalview.bin.JalviewLite"].launcher),
447 this.applet.repaint());this.b$["jalview.bin.JalviewLite"].callInitCallback()});d(c$,"addToDisplay",function(a,b){null==b?a.addToDisplay(this.b$["jalview.bin.JalviewLite"].embedded):(new jalview.appletgui.SplitFrame(a,b)).addToDisplay(this.b$["jalview.bin.JalviewLite"].embedded,this.b$["jalview.bin.JalviewLite"])},"jalview.appletgui.AlignFrame,jalview.appletgui.AlignFrame");d(c$,"readAlignment",function(a){if(null==a)return null;a=this.setProtocolState(a);var b=(new jalview.io.IdentifyFile).Identify(a,
448 this.protocol);this.dbgMsg("File identified as '"+b+"'");var c=null;try{if(c=(new jalview.io.AppletFormatAdapter).readFile(a,this.protocol,b),null!=c&&0<c.getHeight()){this.dbgMsg("Successfully loaded file.");c.setDataset(null);var f=new jalview.appletgui.AlignFrame(c,this.applet,a,this.b$["jalview.bin.JalviewLite"].embedded,!1);f.setTitle(a);null==this.b$["jalview.bin.JalviewLite"].initialAlignFrame&&(this.b$["jalview.bin.JalviewLite"].initialAlignFrame=f);this.b$["jalview.bin.JalviewLite"].currentAlignFrame=
449 f;this.protocol===jalview.io.AppletFormatAdapter.PASTE&&f.setTitle(jalview.util.MessageManager.formatMessage("label.sequences_from",E(-1,[this.applet.getDocumentBase().toString()])));f.setStatus(jalview.util.MessageManager.formatMessage("label.successfully_loaded_file",E(-1,[a])));return f}}catch(l){if(y(l,java.io.IOException)){if(this.dbgMsg("File load exception."),l.printStackTrace(),jalview.bin.JalviewLite.debug)try{f=new jalview.io.FileParse(a,this.protocol);b=null;for(this.dbgMsg(">>>Dumping contents of '"+
450 a+"' ("+this.protocol+")");null!=(b=f.nextLine());)this.dbgMsg(b);this.dbgMsg(">>>Dump finished.")}catch(d){if(y(d,Exception))System.err.println("Exception when trying to dump the content of the file parameter."),d.printStackTrace();else throw d;}}else throw l;}return null},"~S");d(c$,"loadPdbFiles",function(a){var b=!1;this.applet.setAlignPdbStructures(this.b$["jalview.bin.JalviewLite"].getDefaultParameter("alignpdbfiles",!1));var c=0,f=new java.util.Vector,l=this.applet.getDefaultParameter("relaxedidmatch",
451 !1)?new jalview.analysis.SequenceIdMatcher(a.getAlignViewport().getAlignment().getSequencesArray()):null,d;do{d=0<c?this.applet.getParameter("PDBFILE"+c):this.b$["jalview.bin.JalviewLite"].pdbFile;if(null!=d){var g=new jalview.datamodel.PDBEntry,h,j=null,e=null,x=new java.util.StringTokenizer(d," ");if(2>x.countTokens())null!=this.b$["jalview.bin.JalviewLite"].sequence&&(j=E(-1,[null==l?a.getAlignViewport().getAlignment().findName(this.b$["jalview.bin.JalviewLite"].sequence):l.findIdMatch(this.b$["jalview.bin.JalviewLite"].sequence)]));
452 else{d=x.nextToken();for(var u=new java.util.Vector,D=new java.util.Vector;x.hasMoreTokens();)h=x.nextToken(),j=new java.util.StringTokenizer(h,"="),1<j.countTokens()&&(D.addElement(j.nextToken()),h=j.nextToken()),u.addElement(null==l?a.getAlignViewport().getAlignment().findName(h):l.findIdMatch(h));j=Array(u.size());u.copyInto(j);D.size()==u.size()&&(e=Array(D.size()),D.copyInto(e))}d=this.setProtocolState(d);this.protocol===jalview.io.AppletFormatAdapter.CLASSLOADER&&!this.b$["jalview.bin.JalviewLite"].useXtrnalSviewer&&
453 (this.protocol=jalview.io.AppletFormatAdapter.URL,d=this.addProtocol(d));g.setFile(d);if(null!=j){for(u=0;u<j.length;u++)null!=j[u]?(j[u].addPDBId(g),jalview.structure.StructureSelectionManager.getStructureSelectionManager(this.applet).registerPDBEntry(g)):jalview.bin.JalviewLite.debug&&System.err.println("Warning: Possible input parsing error: Null sequence for attachment of PDB (sequence "+u+")");this.b$["jalview.bin.JalviewLite"].alignPdbStructures?f.addElement(E(-1,[g,j,e,String.instantialize(this.protocol)])):
454 a.newStructureView(this.applet,g,j,e,this.protocol)}}c++}while(null!=d||10>c);if(0<f.size()){g=Array(f.size());h=Array(f.size());j=Array(f.size());e=Array(f.size());x=0;for(u=f.size();x<u;x++)D=f.elementAt(x),h[x]=D[0],g[x]=D[1],j[x]=D[2],e[x]=D[3];a.alignedStructureView(this.applet,h,g,j,e);b=!0}return b},"jalview.appletgui.AlignFrame");d(c$,"loadJnetFile",function(a){var b=!1,c=this.b$["jalview.bin.JalviewLite"].jnetFile;if(null!=c)try{var c=this.setProtocolState(c),f=jalview.jsdev.GenericFileAdapter.getFile("JPredFile",
455 [c,this.protocol]);jalview.io.JnetAnnotationMaker.add_annotation(f,a.viewport.getAlignment(),0,!1);var l=a.viewport.getAlignment().getSequenceAt(0);a.viewport.getAlignment().setSeqrep(l);var d=new jalview.datamodel.ColumnSelection;d.hideInsertionsFor(l);a.viewport.setColumnSelection(d);a.alignPanel.fontChanged();a.alignPanel.setScrollValues(0,0);b=!0}catch(g){if(y(g,Exception))g.printStackTrace();else throw g;}return b},"jalview.appletgui.AlignFrame");d(c$,"loadAnnotations",function(a){var b=!1,c=
456 this.b$["jalview.bin.JalviewLite"].annotations;null!=c&&(c=this.setProtocolState(c),(new jalview.io.AnnotationFile).annotateAlignmentView(a.viewport,c,this.protocol)?(a.alignPanel.fontChanged(),a.alignPanel.setScrollValues(0,0),b=!0):System.err.println("Annotations were not added from annotation file '"+c+"'"));return b},"jalview.appletgui.AlignFrame");d(c$,"loadFeatures",function(a){var b=!1,c=this.b$["jalview.bin.JalviewLite"].hideFeatureGroups;null!=c&&a.setFeatureGroupState(this.b$["jalview.bin.JalviewLite"].separatorListToArray(c),
457 !1);c=this.b$["jalview.bin.JalviewLite"].showFeatureGroups;null!=c&&a.setFeatureGroupState(this.b$["jalview.bin.JalviewLite"].separatorListToArray(c),!0);c=this.b$["jalview.bin.JalviewLite"].features;null!=c&&(c=this.setProtocolState(c),b=a.parseFeaturesFile(c,this.protocol));c=this.b$["jalview.bin.JalviewLite"].showFeatureSettings;null!=c&&c.equalsIgnoreCase("true")&&(a.viewport.setShowSequenceFeatures(!0),new jalview.appletgui.FeatureSettings(a.alignPanel));return b},"jalview.appletgui.AlignFrame");
458 d(c$,"loadScoreFile",function(a){var b=!1;if(null!=this.b$["jalview.bin.JalviewLite"].scoreFile&&!"".equals(this.b$["jalview.bin.JalviewLite"].scoreFile))try{jalview.bin.JalviewLite.debug&&System.err.println("Attempting to load T-COFFEE score file from the scoreFile parameter"),(b=a.loadScoreFile(this.b$["jalview.bin.JalviewLite"].scoreFile))||System.err.println("Failed to parse T-COFFEE parameter as a valid score file ('"+this.b$["jalview.bin.JalviewLite"].scoreFile+"')")}catch(c){if(y(c,Exception))System.err.printf("Cannot read score file: '%s'. Cause: %s \n",
459 [this.b$["jalview.bin.JalviewLite"].scoreFile,c.getMessage()]);else throw c;}return b},"jalview.appletgui.AlignFrame");d(c$,"loadTree",function(a){var b=!1;null==this.b$["jalview.bin.JalviewLite"].treeFile&&(this.b$["jalview.bin.JalviewLite"].treeFile=this.applet.getParameter("treeFile"));if(null!=this.b$["jalview.bin.JalviewLite"].treeFile)try{this.b$["jalview.bin.JalviewLite"].treeFile=this.setProtocolState(this.b$["jalview.bin.JalviewLite"].treeFile);var c=new jalview.io.NewickFile(this.b$["jalview.bin.JalviewLite"].treeFile,
460 this.protocol);c.parse();null!=c.getTree()?(a.loadTree(c,this.b$["jalview.bin.JalviewLite"].treeFile),b=!0,this.dbgMsg("Successfully imported tree.")):this.dbgMsg("Tree parameter did not resolve to a valid tree.")}catch(f){if(y(f,Exception))f.printStackTrace();else throw f;}return b},"jalview.appletgui.AlignFrame");d(c$,"inArchive",function(a){try{var b=null!=this.getClass().getResourceAsStream("/"+a);jalview.bin.JalviewLite.debug&&System.err.println("Resource '"+a+"' was "+(b?"":"not")+" located by classloader.");
461 return b}catch(c){if(y(c,Exception))return System.out.println("Exception checking resources: "+a+" "+c),!1;throw c;}},"~S");d(c$,"addProtocol",function(a){if(-1==a.indexOf("://")){var b=this.applet.resolveUrlForLocalOrAbsolute(a,this.b$["jalview.bin.JalviewLite"].getDocumentBase());if(this.urlExists(b))return jalview.bin.JalviewLite.debug&&System.err.println("Prepended document base for resource: '"+a+"'"),b;b=this.applet.resolveUrlForLocalOrAbsolute(a,this.b$["jalview.bin.JalviewLite"].getCodeBase());
462 if(this.urlExists(b))return jalview.bin.JalviewLite.debug&&System.err.println("Prepended codebase for resource: '"+a+"'"),b}return a},"~S");d(c$,"urlExists",function(a){var b=null;try{if(b=(new java.net.URL(a)).openStream(),null!=b)return!0}catch(c){if(!y(c,Exception))throw c;}finally{if(null!=b)try{b.close()}catch(f){if(!y(f,java.io.IOException))throw f;}}return!1},"~S");c$=z()};c$.$JalviewLite$1$=function(){A(self.c$);c$=L(jalview.bin,"JalviewLite$1",null,Runnable);e(c$,"run",function(){jalview.structure.StructureSelectionManager.getStructureSelectionManager(this.f$.me).mouseOverVamsasSequence(this.f$.sq,
463 this.f$.sq.findIndex(this.f$.pos),null)});c$=z()};c$.$JalviewLite$2$=function(){A(self.c$);c$=L(jalview.bin,"JalviewLite$2",null,Runnable);e(c$,"run",function(){jalview.structure.StructureSelectionManager.getStructureSelectionManager(this.f$.me).mouseOverVamsasSequence(this.f$.sq,this.f$.pos,null)});c$=z()};c$.$JalviewLite$3$=function(){A(self.c$);c$=L(jalview.bin,"JalviewLite$3",null,Runnable);e(c$,"run",function(){this.f$.alf.select(this.f$.sel,this.f$.csel)});c$=z()};c$.$JalviewLite$4$=function(){A(self.c$);
464 c$=L(jalview.bin,"JalviewLite$4",null,Runnable);e(c$,"run",function(){try{jalview.structure.StructureSelectionManager.getStructureSelectionManager(this.f$.me).mouseOverStructure((new Integer(this.f$.pdbResNum)).intValue(),this.f$.chain,this.f$.pdbfile),jalview.bin.JalviewLite.debug&&System.err.println("mouseOver for '"+this.f$.pdbResNum+"' in chain '"+this.f$.chain+"' in structure '"+this.f$.pdbfile+"'")}catch(a){if(y(a,NumberFormatException))System.err.println("Ignoring invalid residue number string '"+
465 this.f$.pdbResNum+"'");else throw a;}});c$=z()};c$.$JalviewLite$5$=function(){A(self.c$);c$=L(jalview.bin,"JalviewLite$5",null,Runnable);e(c$,"run",function(){try{this.f$.alf.scrollTo((new Integer(this.f$.topRow)).intValue(),(new Integer(this.f$.leftHandColumn)).intValue())}catch(a){if(y(a,Exception))System.err.println("Couldn't parse integer arguments (topRow='"+this.f$.topRow+"' and leftHandColumn='"+this.f$.leftHandColumn+"')"),a.printStackTrace();else throw a;}});c$=z()};c$.$JalviewLite$6$=function(){A(self.c$);
466 c$=L(jalview.bin,"JalviewLite$6",null,Runnable);e(c$,"run",function(){try{this.f$.alf.scrollToRow((new Integer(this.f$.topRow)).intValue())}catch(a){if(y(a,Exception))System.err.println("Couldn't parse integer arguments (topRow='"+this.f$.topRow+"')"),a.printStackTrace();else throw a;}});c$=z()};c$.$JalviewLite$7$=function(){A(self.c$);c$=L(jalview.bin,"JalviewLite$7",null,Runnable);e(c$,"run",function(){try{this.f$.alf.scrollToColumn((new Integer(this.f$.leftHandColumn)).intValue())}catch(a){if(y(a,
467 Exception))System.err.println("Couldn't parse integer arguments (leftHandColumn='"+this.f$.leftHandColumn+"')"),a.printStackTrace();else throw a;}});c$=z()};c$.$JalviewLite$8$=function(){A(self.c$);c$=L(jalview.bin,"JalviewLite$8",null,java.awt.event.ActionListener);e(c$,"actionPerformed",function(){C(jalview.bin.JalviewLite.LoadingThread,this,null,this.b$["jalview.bin.JalviewLite"].startupFile,this.b$["jalview.bin.JalviewLite"].file2,this.b$["jalview.bin.JalviewLite"]).start()},"java.awt.event.ActionEvent");
468 c$=z()};c$.$JalviewLite$9$=function(){A(self.c$);c$=L(jalview.bin,"JalviewLite$9",java.awt.event.WindowAdapter);e(c$,"windowClosing",function(){if(v(this.f$.frame,jalview.appletgui.AlignFrame)){var a=this.f$.frame.viewport;this.f$.frame.closeMenuItem_actionPerformed();a.applet.currentAlignFrame===this.f$.frame&&(a.applet.currentAlignFrame=null);a.applet=null}jalview.bin.JalviewLite.lastFrameX-=40;jalview.bin.JalviewLite.lastFrameY-=40;v(this.f$.frame,jalview.appletgui.EmbmenuFrame)&&this.f$.frame.destroyMenus();
469 this.f$.frame.setMenuBar(null);this.f$.frame.dispose()},"java.awt.event.WindowEvent");d(c$,"windowActivated",function(a){v(this.f$.frame,jalview.appletgui.AlignFrame)&&(this.f$.frame.viewport.applet.currentAlignFrame=this.f$.frame,jalview.bin.JalviewLite.debug&&System.err.println("Activated window "+this.f$.frame));K(this,jalview.bin.JalviewLite$9,"windowActivated",[a])},"java.awt.event.WindowEvent");c$=z()};c$.$JalviewLite$10$=function(){A(self.c$);c$=L(jalview.bin,"JalviewLite$10",null,Runnable);
470 e(c$,"run",function(){this.f$.alf.setFeatureGroupState(this.b$["jalview.bin.JalviewLite"].separatorListToArray(this.f$.groups),this.f$.st)});c$=z()};G(c$,"TRUE","true","FALSE","false","debug",!1,"lastFrameX",200,"lastFrameY",200,"builddate",null,"version",null,"installation",null)});p("javax.swing");q(["javax.swing.AbstractButton"],"javax.swing.JButton",["javax.swing.DefaultButtonModel","$.SwingUtilities","$.UIManager"],function(){c$=B(javax.swing,"JButton",javax.swing.AbstractButton);m(c$,function(){this.construct(null,
471 null)});m(c$,function(a){this.construct(null,a)},"javax.swing.Icon");m(c$,function(a){this.construct(a,null)},"~S");m(c$,function(a){this.construct();this.setAction(a)},"javax.swing.Action");m(c$,function(a,b){t(this,javax.swing.JButton,[]);this.setModel(new javax.swing.DefaultButtonModel);this.init(a,b)},"~S,javax.swing.Icon");e(c$,"updateUI",function(){this.setUI(javax.swing.UIManager.getUI(this))});e(c$,"getUIClassID",function(){return"ButtonUI"});d(c$,"isDefaultButton",function(){var a=javax.swing.SwingUtilities.getRootPane(this);
472 return null!=a?a.getDefaultButton()===this:!1});d(c$,"isDefaultCapable",function(){return this.defaultCapable});d(c$,"setDefaultCapable",function(a){var b=this.defaultCapable;this.defaultCapable=a;this.firePropertyChangeBool("defaultCapable",b,a)},"~B");d(c$,"removeNotify",function(){var a=javax.swing.SwingUtilities.getRootPane(this);null!=a&&a.getDefaultButton()===this&&a.setDefaultButton(null);K(this,javax.swing.JButton,"removeNotify",[])});d(c$,"paramString",function(){var a=this.defaultCapable?
473 "true":"false";return K(this,javax.swing.JButton,"paramString",[])+",defaultCapable="+a});G(c$,"$uiClassID","ButtonUI")});p("jalview.util");q(["java.text.MessageFormat","java.util.logging.Logger"],"jalview.util.MessageManager",["java.util.Locale","$.ResourceBundle","java.util.logging.Level"],function(){c$=B(jalview.util,"MessageManager");c$.getString=d(c$,"getString",function(a){var c="[missing key] "+a;try{c=jalview.util.MessageManager.rb.getString(a)}catch(f){if(y(f,Exception))jalview.util.MessageManager.log.warning("I18N missing: "+
474 jalview.util.MessageManager.loc+"\t"+a);else throw f;}return c},"~S");c$.getLocale=d(c$,"getLocale",function(){return jalview.util.MessageManager.loc});c$.formatMessage=d(c$,"formatMessage",function(a,c){return java.text.MessageFormat.format(jalview.util.MessageManager.getString(a),c)},"~S,~A");c$.formatMessage=d(c$,"formatMessage",function(a,c){return java.text.MessageFormat.format(jalview.util.MessageManager.getString(a),c)},"~S,~A");c$.getStringOrReturn=d(c$,"getStringOrReturn",function(a,c){var f=
475 a+c.toLowerCase().replaceAll(" ","");try{c=jalview.util.MessageManager.rb.getString(f)}catch(l){if(y(l,Exception))jalview.util.MessageManager.log.finest("I18N missing key with root "+a+": "+jalview.util.MessageManager.loc+"\t"+f);else throw l;}return c},"~S,~S");G(c$,"rb",null);c$.log=c$.prototype.log=java.util.logging.Logger.getLogger(jalview.util.MessageManager.getCanonicalName());G(c$,"loc",null);try{jalview.util.MessageManager.loc=java.util.Locale.getDefault(),jalview.util.MessageManager.log.info("Getting messages for lang: "+
476 jalview.util.MessageManager.loc),jalview.util.MessageManager.rb=java.util.ResourceBundle.getBundle("lang.Messages",jalview.util.MessageManager.loc),(null==jalview.util.MessageManager.rb||jalview.util.MessageManager.log.isLoggable(java.util.logging.Level.FINEST))&&jalview.util.MessageManager.log.finest("Language keys: "+jalview.util.MessageManager.rb.keySet())}catch(a){if(y(a,Exception))jalview.util.MessageManager.log.warning("Exception when initting Locale for i18n messages\n"+a.getMessage()),a.printStackTrace();
477 else if(y(a,Error))jalview.util.MessageManager.log.warning("Error when initting Locale for i18n messages\n"+a.getMessage()),a.printStackTrace();else throw a;}});p("java.util.logging");q(["java.util.Hashtable","java.util.logging.Level","$.LogRecord"],"java.util.logging.Logger",null,function(){c$=s(function(){this.levelObject=this.name=null;this.levelValue=0;r(this,arguments)},java.util.logging,"Logger");m(c$,function(a,b){this.construct(a,b,null,!1)},"~S,~S");m(c$,function(a){this.name=a;this.levelValue=
478 java.util.logging.Level.INFO.intValue()},"~S,~S,Class,~B");m(c$,function(a){this.name=a;this.levelValue=java.util.logging.Level.INFO.intValue()},"~S");c$.getLogger=d(c$,"getLogger",function(a){var b=java.util.logging.Logger.loggers.get(a);null==b&&java.util.logging.Logger.loggers.put(a,b=new java.util.logging.Logger(a));return b},"~S");c$.getLogger=d(c$,"getLogger",function(a){return java.util.logging.Logger.getLogger(a)},"~S,~S");c$.getAnonymousLogger=d(c$,"getAnonymousLogger",function(){return java.util.logging.Logger.getAnonymousLogger(null)});
479 c$.getAnonymousLogger=d(c$,"getAnonymousLogger",function(){return java.util.logging.Logger.global},"~S");d(c$,"log",function(a){a.getLevel().intValue()<this.levelValue||this.levelValue==java.util.logging.Logger.offValue||System.out.println(a.getLoggerName()+": "+a.getMessage())},"java.util.logging.LogRecord");d(c$,"doLog",function(a){a.setLoggerName(this.name);this.log(a)},"java.util.logging.LogRecord");d(c$,"log",function(a,b){if(!(a.intValue()<this.levelValue||this.levelValue==java.util.logging.Logger.offValue)){var c=
480 new java.util.logging.LogRecord(a,b);this.doLog(c)}},"java.util.logging.Level,~S");d(c$,"log",function(a,b,c){a.intValue()<this.levelValue||this.levelValue==java.util.logging.Logger.offValue||(a=new java.util.logging.LogRecord(a,b),c=E(-1,[c]),a.setParameters(c),this.doLog(a))},"java.util.logging.Level,~S,~O");d(c$,"log",function(a,b,c){a.intValue()<this.levelValue||this.levelValue==java.util.logging.Logger.offValue||(a=new java.util.logging.LogRecord(a,b),a.setParameters(c),this.doLog(a))},"java.util.logging.Level,~S,~A");
481 d(c$,"log",function(a,b,c){a.intValue()<this.levelValue||this.levelValue==java.util.logging.Logger.offValue||(a=new java.util.logging.LogRecord(a,b),a.setThrown(c),this.doLog(a))},"java.util.logging.Level,~S,Throwable");d(c$,"logp",function(a,b,c,f){a.intValue()<this.levelValue||this.levelValue==java.util.logging.Logger.offValue||(a=new java.util.logging.LogRecord(a,f),a.setSourceClassName(b),a.setSourceMethodName(c),this.doLog(a))},"java.util.logging.Level,~S,~S,~S");d(c$,"logp",function(a,b,c,f,
482 l){a.intValue()<this.levelValue||this.levelValue==java.util.logging.Logger.offValue||(a=new java.util.logging.LogRecord(a,f),a.setSourceClassName(b),a.setSourceMethodName(c),b=E(-1,[l]),a.setParameters(b),this.doLog(a))},"java.util.logging.Level,~S,~S,~S,~O");d(c$,"logp",function(a,b,c,f,l){a.intValue()<this.levelValue||this.levelValue==java.util.logging.Logger.offValue||(a=new java.util.logging.LogRecord(a,f),a.setSourceClassName(b),a.setSourceMethodName(c),a.setParameters(l),this.doLog(a))},"java.util.logging.Level,~S,~S,~S,~A");
483 d(c$,"logp",function(a,b,c,f,l){a.intValue()<this.levelValue||this.levelValue==java.util.logging.Logger.offValue||(a=new java.util.logging.LogRecord(a,f),a.setSourceClassName(b),a.setSourceMethodName(c),a.setThrown(l),this.doLog(a))},"java.util.logging.Level,~S,~S,~S,Throwable");d(c$,"entering",function(a,b){java.util.logging.Level.FINER.intValue()<this.levelValue||this.logp(java.util.logging.Level.FINER,a,b,"ENTRY")},"~S,~S");d(c$,"entering",function(a,b,c){java.util.logging.Level.FINER.intValue()<
484 this.levelValue||(c=E(-1,[c]),this.logp(java.util.logging.Level.FINER,a,b,"ENTRY {0}",c))},"~S,~S,~O");d(c$,"entering",function(a,b,c){if(!(java.util.logging.Level.FINER.intValue()<this.levelValue)){var f="ENTRY";if(null==c)this.logp(java.util.logging.Level.FINER,a,b,f);else{for(var l=0;l<c.length;l++)f=f+" {"+l+"}";this.logp(java.util.logging.Level.FINER,a,b,f,c)}}},"~S,~S,~A");d(c$,"exiting",function(a,b){java.util.logging.Level.FINER.intValue()<this.levelValue||this.logp(java.util.logging.Level.FINER,
485 a,b,"RETURN")},"~S,~S");d(c$,"exiting",function(a,b,c){java.util.logging.Level.FINER.intValue()<this.levelValue||this.logp(java.util.logging.Level.FINER,a,b,"RETURN {0}",c)},"~S,~S,~O");d(c$,"throwing",function(a,b,c){if(!(java.util.logging.Level.FINER.intValue()<this.levelValue||this.levelValue==java.util.logging.Logger.offValue)){var f=new java.util.logging.LogRecord(java.util.logging.Level.FINER,"THROW");f.setSourceClassName(a);f.setSourceMethodName(b);f.setThrown(c);this.doLog(f)}},"~S,~S,Throwable");
486 d(c$,"severe",function(a){java.util.logging.Level.SEVERE.intValue()<this.levelValue||this.log(java.util.logging.Level.SEVERE,a)},"~S");d(c$,"warning",function(a){java.util.logging.Level.WARNING.intValue()<this.levelValue||this.log(java.util.logging.Level.WARNING,a)},"~S");d(c$,"info",function(a){java.util.logging.Level.INFO.intValue()<this.levelValue||this.log(java.util.logging.Level.INFO,a)},"~S");d(c$,"config",function(a){java.util.logging.Level.CONFIG.intValue()<this.levelValue||this.log(java.util.logging.Level.CONFIG,
487 a)},"~S");d(c$,"fine",function(a){java.util.logging.Level.FINE.intValue()<this.levelValue||this.log(java.util.logging.Level.FINE,a)},"~S");d(c$,"finer",function(a){java.util.logging.Level.FINER.intValue()<this.levelValue||this.log(java.util.logging.Level.FINER,a)},"~S");d(c$,"finest",function(a){java.util.logging.Level.FINEST.intValue()<this.levelValue||this.log(java.util.logging.Level.FINEST,a)},"~S");d(c$,"setLevel",function(a){this.levelObject=a;this.updateEffectiveLevel()},"java.util.logging.Level");
488 d(c$,"getLevel",function(){return this.levelObject});d(c$,"isLoggable",function(a){return a.intValue()<this.levelValue||this.levelValue==java.util.logging.Logger.offValue?!1:!0},"java.util.logging.Level");d(c$,"getName",function(){return this.name});d(c$,"updateEffectiveLevel",function(){var a;a=null!=this.levelObject?this.levelObject.intValue():java.util.logging.Level.INFO.intValue();this.levelValue!=a&&(this.levelValue=a)});c$.offValue=c$.prototype.offValue=java.util.logging.Level.OFF.intValue();
489 G(c$,"GLOBAL_LOGGER_NAME","global");c$.global=c$.prototype.global=new java.util.logging.Logger("global");c$.loggers=c$.prototype.loggers=new java.util.Hashtable;java.util.logging.Logger.loggers.put("global",java.util.logging.Logger.global)});p("java.util.logging");q(null,"java.util.logging.LogRecord",["java.lang.NullPointerException","$.Throwable"],function(){c$=s(function(){this.level=null;this.sequenceNumber=0;this.message=this.sourceMethodName=this.sourceClassName=null;this.millis=this.threadID=
490 0;this.resourceBundleName=this.loggerName=this.thrown=null;this.needToInferCaller=!1;this.resourceBundle=this.parameters=null;r(this,arguments)},java.util.logging,"LogRecord",null,java.io.Serializable);m(c$,function(a,b){a.getClass();this.level=a;this.message=b;this.millis=System.currentTimeMillis();this.needToInferCaller=!0},"java.util.logging.Level,~S");d(c$,"getLoggerName",function(){return this.loggerName});d(c$,"setLoggerName",function(a){this.loggerName=a},"~S");d(c$,"getResourceBundle",function(){return this.resourceBundle});
491 d(c$,"setResourceBundle",function(a){this.resourceBundle=a},"java.util.ResourceBundle");d(c$,"getResourceBundleName",function(){return this.resourceBundleName});d(c$,"setResourceBundleName",function(a){this.resourceBundleName=a},"~S");d(c$,"getLevel",function(){return this.level});d(c$,"setLevel",function(a){if(null==a)throw new NullPointerException;this.level=a},"java.util.logging.Level");d(c$,"getSequenceNumber",function(){return this.sequenceNumber});d(c$,"setSequenceNumber",function(a){this.sequenceNumber=
492 a},"~N");d(c$,"getSourceClassName",function(){this.needToInferCaller&&this.inferCaller();return this.sourceClassName});d(c$,"setSourceClassName",function(a){this.sourceClassName=a;this.needToInferCaller=!1},"~S");d(c$,"getSourceMethodName",function(){this.needToInferCaller&&this.inferCaller();return this.sourceMethodName});d(c$,"setSourceMethodName",function(a){this.sourceMethodName=a;this.needToInferCaller=!1},"~S");d(c$,"getMessage",function(){return this.message});d(c$,"setMessage",function(a){this.message=
493 a},"~S");d(c$,"getParameters",function(){return this.parameters});d(c$,"setParameters",function(a){this.parameters=a},"~A");d(c$,"getThreadID",function(){return this.threadID});d(c$,"setThreadID",function(a){this.threadID=a},"~N");d(c$,"getMillis",function(){return this.millis});d(c$,"setMillis",function(a){this.millis=a},"~N");d(c$,"getThrown",function(){return this.thrown});d(c$,"setThrown",function(a){this.thrown=a},"Throwable");d(c$,"inferCaller",function(){this.needToInferCaller=!1;for(var a=
494 (new Throwable).getStackTrace(),b=0;b<a.length;){var c=a[b],f=c.getClassName();if(f.equals("java.util.logging.Logger"))break;b++}for(;b<a.length;){c=a[b];f=c.getClassName();if(!f.equals("java.util.logging.Logger")){this.setSourceClassName(f);this.setSourceMethodName(c.getMethodName());break}b++}});G(c$,"globalSequenceNumber",0)});p("java.util.logging");q(["java.util.HashMap"],"java.util.logging.Level",["java.lang.IllegalArgumentException","$.NullPointerException","java.util.ArrayList","$.ResourceBundle"],
495 function(){c$=s(function(){this.name=null;this.value=0;this.localizedLevelName=this.resourceBundleName=null;r(this,arguments)},java.util.logging,"Level",null,java.io.Serializable);m(c$,function(a,b){this.construct(a,b,null)},"~S,~N");m(c$,function(a,b,c){if(null==a)throw new NullPointerException;this.name=a;this.value=b;this.resourceBundleName=c;this.localizedLevelName=null==c?a:null;java.util.logging.Level.KnownLevel.add(this)},"~S,~N,~S");d(c$,"getResourceBundleName",function(){return this.resourceBundleName});
496 d(c$,"getName",function(){return this.name});d(c$,"getLocalizedName",function(){return this.getLocalizedLevelName()});d(c$,"getLevelName",function(){return this.name});d(c$,"getLocalizedLevelName",function(){if(null!=this.localizedLevelName)return this.localizedLevelName;try{this.localizedLevelName=java.util.ResourceBundle.getBundle(this.resourceBundleName).getString(this.name)}catch(a){if(y(a,Exception))this.localizedLevelName=this.name;else throw a;}return this.localizedLevelName});c$.findLevel=
497 d(c$,"findLevel",function(a){if(null==a)throw new NullPointerException;var b;b=java.util.logging.Level.KnownLevel.findByName(a);if(null!=b)return b.mirroredLevel;try{var c=Integer.parseInt(a);b=java.util.logging.Level.KnownLevel.findByValue(c);null==b&&(new java.util.logging.Level(a,c),b=java.util.logging.Level.KnownLevel.findByValue(c));return b.mirroredLevel}catch(f){if(!y(f,NumberFormatException))throw f;}b=java.util.logging.Level.KnownLevel.findByLocalizedLevelName(a);return null!=b?b.mirroredLevel:
498 null},"~S");e(c$,"toString",function(){return this.name});d(c$,"intValue",function(){return this.value});c$.parse=d(c$,"parse",function(a){a.length;var b;b=java.util.logging.Level.KnownLevel.findByName(a);if(null!=b)return b.levelObject;try{var c=Integer.parseInt(a);b=java.util.logging.Level.KnownLevel.findByValue(c);null==b&&(new java.util.logging.Level(a,c),b=java.util.logging.Level.KnownLevel.findByValue(c));return b.levelObject}catch(f){if(!y(f,NumberFormatException))throw f;}b=java.util.logging.Level.KnownLevel.findByLocalizedName(a);
499 if(null!=b)return b.levelObject;throw new IllegalArgumentException('Bad level "'+a+'"');},"~S");e(c$,"equals",function(a){try{return a.value==this.value}catch(b){if(y(b,Exception))return!1;throw b;}},"~O");e(c$,"hashCode",function(){return this.value});A(self.c$);c$=s(function(){this.mirroredLevel=this.levelObject=null;r(this,arguments)},java.util.logging.Level,"KnownLevel");m(c$,function(a){this.levelObject=a;this.mirroredLevel=a.getClass()===java.util.logging.Level?a:new java.util.logging.Level(a.name,
500 a.value,a.resourceBundleName)},"java.util.logging.Level");c$.add=d(c$,"add",function(a){var b=new java.util.logging.Level.KnownLevel(a),c=java.util.logging.Level.KnownLevel.nameToLevels.get(a.name);null==c&&(c=new java.util.ArrayList,java.util.logging.Level.KnownLevel.nameToLevels.put(a.name,c));c.add(b);c=java.util.logging.Level.KnownLevel.intToLevels.get(new Integer(a.value));null==c&&(c=new java.util.ArrayList,java.util.logging.Level.KnownLevel.intToLevels.put(new Integer(a.value),c));c.add(b)},
501 "java.util.logging.Level");c$.findByName=d(c$,"findByName",function(a){a=java.util.logging.Level.KnownLevel.nameToLevels.get(a);return null!=a?a.get(0):null},"~S");c$.findByValue=d(c$,"findByValue",function(a){a=java.util.logging.Level.KnownLevel.intToLevels.get(new Integer(a));return null!=a?a.get(0):null},"~N");c$.findByLocalizedLevelName=d(c$,"findByLocalizedLevelName",function(a){for(var b,c=java.util.logging.Level.KnownLevel.nameToLevels.values().iterator();c.hasNext()&&((b=c.next())||1);)for(var f,
502 l=b.iterator();l.hasNext()&&((f=l.next())||1);){var d=f.levelObject.getLocalizedLevelName();if(a.equals(d))return f}return null},"~S");c$.findByLocalizedName=d(c$,"findByLocalizedName",function(a){for(var b,c=java.util.logging.Level.KnownLevel.nameToLevels.values().iterator();c.hasNext()&&((b=c.next())||1);)for(var f,l=b.iterator();l.hasNext()&&((f=l.next())||1);){var d=f.levelObject.getLocalizedName();if(a.equals(d))return f}return null},"~S");c$.matches=d(c$,"matches",function(a){var b=java.util.logging.Level.KnownLevel.nameToLevels.get(a.name);
503 if(null!=b)for(var c,b=b.iterator();b.hasNext()&&((c=b.next())||1);){var f=c.mirroredLevel;if(a.value==f.value&&(a.resourceBundleName===f.resourceBundleName||null!=a.resourceBundleName&&a.resourceBundleName.equals(f.resourceBundleName)))return c}return null},"java.util.logging.Level");c$.nameToLevels=c$.prototype.nameToLevels=new java.util.HashMap;c$.intToLevels=c$.prototype.intToLevels=new java.util.HashMap;c$=z();G(c$,"defaultBundle","sun.util.logging.resources.logging");c$.OFF=c$.prototype.OFF=
504 new java.util.logging.Level("OFF",2147483647,java.util.logging.Level.defaultBundle);c$.SEVERE=c$.prototype.SEVERE=new java.util.logging.Level("SEVERE",1E3,java.util.logging.Level.defaultBundle);c$.WARNING=c$.prototype.WARNING=new java.util.logging.Level("WARNING",900,java.util.logging.Level.defaultBundle);c$.INFO=c$.prototype.INFO=new java.util.logging.Level("INFO",800,java.util.logging.Level.defaultBundle);c$.CONFIG=c$.prototype.CONFIG=new java.util.logging.Level("CONFIG",700,java.util.logging.Level.defaultBundle);
505 c$.FINE=c$.prototype.FINE=new java.util.logging.Level("FINE",500,java.util.logging.Level.defaultBundle);c$.FINER=c$.prototype.FINER=new java.util.logging.Level("FINER",400,java.util.logging.Level.defaultBundle);c$.FINEST=c$.prototype.FINEST=new java.util.logging.Level("FINEST",300,java.util.logging.Level.defaultBundle);c$.ALL=c$.prototype.ALL=new java.util.logging.Level("ALL",-2147483648,java.util.logging.Level.defaultBundle)});p("java.text");c$=s(function(){this.pattern=null;r(this,arguments)},java.text,
506 "MessageFormat");m(c$,function(a){this.pattern=a},"~S");m(c$,function(a){this.pattern=a},"~S,java.util.Locale");c$.format=d(c$,"format",function(a,b){return a.replace(/\{(\d+)\}/g,function(a,f){var l=parseInt(f);return null==b?null:b[l]})},"~S,~A");d(c$,"format",function(a){return java.text.MessageFormat.format(this.pattern,[a])},"~O");p("java.util");q(["java.util.ResourceBundle"],"java.util.PropertyResourceBundle",["java.lang.NullPointerException","java.util.HashMap","java.util.Properties","jssun.util.ResourceBundleEnumeration"],
507 function(){c$=s(function(){this.lookup=null;r(this,arguments)},java.util,"PropertyResourceBundle",java.util.ResourceBundle);m(c$,function(a){t(this,java.util.PropertyResourceBundle,[]);this.setStream(a)},"java.io.InputStream");d(c$,"setStream",function(a){var b=new java.util.Properties;b.load(a);this.lookup=new java.util.HashMap(b);return this},"java.io.InputStream");m(c$,function(a){t(this,java.util.PropertyResourceBundle,[]);var b=new java.util.Properties;b.load(a);this.lookup=new java.util.HashMap(b)},
508 "java.io.Reader");m(c$,function(){t(this,java.util.PropertyResourceBundle,[])});e(c$,"handleGetObject",function(a){if(null==a)throw new NullPointerException;return this.lookup.get(a)},"~S");d(c$,"getKeys",function(){var a=this.parent;return new jssun.util.ResourceBundleEnumeration(this.lookup.keySet(),null!=a?a.getKeys():null)});e(c$,"handleKeySet",function(){return this.lookup.keySet()})});p("jalview.javascript");M(jalview.javascript,"JalviewLiteJsApi");p("jalview.api");M(jalview.api,"StructureSelectionManagerProvider");
509 p("awt2swing");c$=B(awt2swing,"Util");c$.drawString=d(c$,"drawString",function(a,b,c,f){a.drawStringUnique(b,c,f)},"java.awt.Graphics,~S,~N,~N");p("jalview.analysis");q(null,"jalview.analysis.SequenceIdMatcher",["java.util.ArrayList","$.Arrays","$.HashMap","$.Vector"],function(){c$=s(function(){this.names=null;H("jalview.analysis.SequenceIdMatcher.SeqIdName")||jalview.analysis.SequenceIdMatcher.$SequenceIdMatcher$SeqIdName$();r(this,arguments)},jalview.analysis,"SequenceIdMatcher");m(c$,function(a){this.names=
510 new java.util.HashMap;this.addAll(a)},"java.util.List");d(c$,"addAll",function(a){var b;for(a=a.iterator();a.hasNext()&&((b=a.next())||1);){this.names.put(C(jalview.analysis.SequenceIdMatcher.SeqIdName,this,null,b.getDisplayId(!0)),b);for(var c=b;null!=c.getDatasetSequence();)c=c.getDatasetSequence();if(null!=c.getDBRef())for(var c=c.getDBRef(),f=null,l=0;l<c.length;l++)f=C(jalview.analysis.SequenceIdMatcher.SeqIdName,this,null,c[l].getAccessionId()),this.names.containsKey(f)||this.names.put(f,b)}},
511 "java.util.List");m(c$,function(a){this.construct(java.util.Arrays.asList(a))},"~A");d(c$,"pickbestMatch",function(a,b){var c=this.pickbestMatches(a,b);return null==c||0==c.size()?null:c.get(0)},"jalview.analysis.SequenceIdMatcher.SeqIdName,java.util.List");d(c$,"pickbestMatches",function(a,b){var c=new java.util.ArrayList;if(null==a||null==b||0==b.size())return null;var f=b.remove(0);c.add(f);this.names.put(C(jalview.analysis.SequenceIdMatcher.SeqIdName,this,null,f.getName()),f);for(var l=f.getName().length,
512 d=a.id.length;0<b.size();){var g=b.remove(0);this.names.put(C(jalview.analysis.SequenceIdMatcher.SeqIdName,this,null,g.getName()),g);var h,j,e=g.getName().length;if((h=Math.abs(l-d))>(j=Math.abs(e-d))&&e>l)c.clear(),f=g,l=e,c.add(f);h==j&&e==l&&c.add(g)}return 0==c.size()?null:c},"jalview.analysis.SequenceIdMatcher.SeqIdName,java.util.List");d(c$,"findIdMatch",function(a){a=C(jalview.analysis.SequenceIdMatcher.SeqIdName,this,null,a.getName());return this.findIdMatch(a)},"jalview.datamodel.SequenceI");
513 d(c$,"findIdMatch",function(a){a=C(jalview.analysis.SequenceIdMatcher.SeqIdName,this,null,a);return this.findIdMatch(a)},"~S");d(c$,"findAllIdMatches",function(a){a=C(jalview.analysis.SequenceIdMatcher.SeqIdName,this,null,a);a=this.findAllIdMatches(a);return null!=a?a.toArray(Array(a.size())):null},"~S");d(c$,"findIdMatch",function(a){var b=null,c=0,f;if(0<a.length){b=Array(a.length);do f=C(jalview.analysis.SequenceIdMatcher.SeqIdName,this,null,a[c].getName()),b[c]=this.names.containsKey(f)?this.findIdMatch(f):
514 null;while(++c<a.length)}return b},"~A");d(c$,"findIdMatch",function(a){for(var b=new java.util.Vector;this.names.containsKey(a);)b.addElement(this.names.remove(a));return this.pickbestMatch(a,b)},"jalview.analysis.SequenceIdMatcher.SeqIdName");d(c$,"findAllIdMatches",function(a){for(var b=new java.util.ArrayList;this.names.containsKey(a);)b.add(this.names.remove(a));return this.pickbestMatches(a,b)},"jalview.analysis.SequenceIdMatcher.SeqIdName");c$.$SequenceIdMatcher$SeqIdName$=function(){A(self.c$);
515 c$=s(function(){O(this,arguments);this.id=null;this.WORD_SEP="~. |#\\/<>!\"\u00a4$%^*)}[@',?_";r(this,arguments)},jalview.analysis.SequenceIdMatcher,"SeqIdName");m(c$,function(a){this.id=null!=a?String.instantialize(a):""},"~S");e(c$,"hashCode",function(){return 4<=this.id.length?this.id.substring(0,4).hashCode():this.id.hashCode()});d(c$,"equals",function(a){return null==a?!1:v(a,jalview.analysis.SequenceIdMatcher.SeqIdName)||v(a,String)?this.equals(a):!1},"~O");d(c$,"equals",function(a){return this.id.length>
516 a.id.length?this.id.startsWith(a.id)?-1<this.WORD_SEP.indexOf(this.id.charAt(a.id.length)):!1:a.id.startsWith(this.id)?a.id.equals(this.id)?!0:-1<this.WORD_SEP.indexOf(a.id.charAt(this.id.length)):!1},"jalview.analysis.SequenceIdMatcher.SeqIdName");d(c$,"equals",function(a){return this.id.length>a.length?this.id.startsWith(a)?-1<this.WORD_SEP.indexOf(this.id.charAt(a.length)):!1:a.startsWith(this.id)?a.equals(this.id)?!0:-1<this.WORD_SEP.indexOf(a.charAt(this.id.length)):!1},"~S");c$=z()}});p("jalview.appletgui");
517 q("awt2swing.Canvas jalview.api.AlignViewControllerGuiI jalview.appletgui.EmbmenuFrame java.awt.event.ActionListener $.ItemListener $.KeyListener awt2swing.CheckboxMenuItem $.Label $.Menu $.MenuBar $.MenuItem jalview.util.MessageManager java.awt.BorderLayout".split(" "),"jalview.appletgui.AlignFrame","awt2swing.Frame $.Util jalview.analysis.AlignmentSorter $.AnnotationSorter jalview.appletgui.AlignViewport $.AlignmentPanel $.AnnotationColourChooser $.AnnotationColumnChooser $.AppletJmol $.CutAndPasteTransfer $.FeatureSettings $.Finder $.FontChooser $.OverviewPanel $.PCAPanel $.PaintRefresher $.PairwiseAlignPanel $.RedundancyPanel $.SliderPanel $.TreePanel $.UserDefinedColours jalview.bin.JalviewLite jalview.commands.EditCommand $.OrderCommand $.RemoveGapColCommand $.RemoveGapsCommand $.SlideSequencesCommand $.TrimRegionCommand jalview.controller.AlignViewController jalview.datamodel.Alignment $.PDBEntry $.Sequence $.SequenceGroup jalview.io.AlignmentProperties $.AnnotationFile $.AppletFormatAdapter $.FeaturesFile jalview.jsdev.GenericFileAdapter jalview.schemes.Blosum62ColourScheme $.BuriedColourScheme $.ClustalxColourScheme $.HelixColourScheme $.HydrophobicColourScheme $.NucleotideColourScheme $.PIDColourScheme $.PurinePyrimidineColourScheme $.RNAHelicesColourChooser $.RNAInteractionColourScheme $.StrandColourScheme $.TCoffeeColourScheme $.TaylorColourScheme $.TurnColourScheme $.ZappoColourScheme jalview.structure.StructureSelectionManager jalview.util.Comparison $.MappingUtils java.awt.Color $.Font java.awt.event.FocusListener $.WindowAdapter java.lang.Character $.StringBuffer java.net.URL $.URLEncoder java.util.Arrays $.HashMap $.Hashtable $.StringTokenizer $.Vector".split(" "),
518 function(){c$=s(function(){this.viewport=this.alignPanel=this.avc=null;this.frameWidth=700;this.frameHeight=500;this.jalviewServletURL=null;this.showAutoCalculatedAbove=!1;this.splitFrame=this.showAutoLast=this.showAutoFirst=this.sortAnnByLabel=this.sortAnnBySequence=this.showSequenceAnnotations=this.showAlignmentAnnotations=this.$newView=this.showAllHidden=this.hideAllSelection=this.hideAllButSelection=this.hideSequences=this.hideColumns=this.showSeqs=this.showColumns=this.invertColSel=this.annotationColumnSelection=
519 this.annotationColour=this.sequenceFeatures=this.featureSettings=this.normSequenceLogo=this.showGroupConservation=this.showGroupConsensus=this.showConsensusHistogram=this.applyAutoAnnotationSettings=this.showSequenceLogo=this.followMouseOverFlag=this.centreColumnLabelFlag=this.seqLimits=this.about=this.documentation=this.inputText=this.sortByTreeMenu=this.$sortByTree=this.autoCalculate=this.modifyConservation=this.modifyPID=this.scaleRight=this.scaleLeft=this.scaleAbove=this.$font=this.applyToAllGroups=
520 this.pasteThis=this.pasteNew=this.pasteMenu=this.cut=this.copy=this.$delete=this.unGroup=this.createGroup=this.grpsFromSelection=this.deleteGroups=this.nucleotideColour=this.abovePIDThreshold=this.findMenuItem=this.renderGapsMenuItem=this.wrapMenuItem=this.noColourmenuItem=this.conservationMenuItem=this.redoMenuItem=this.undoMenuItem=this.overviewMenuItem=this.alProperties=this.displayNonconservedMenuItem=this.colourTextMenuItem=this.annotationPanelMenuItem=this.avDistanceTreeBlosumMenuItem=this.njTreeBlosumMenuItem=
521 this.tcoffeeColour=this.BLOSUM62Colour=this.PIDColour=this.userDefinedColour=this.RNAHelixColour=this.RNAInteractionColour=this.purinePyrimidineColour=this.buriedColour=this.turnColour=this.strandColour=this.helixColour=this.hydrophobicityColour=this.taylorColour=this.zappoColour=this.clustalColour=this.statusBar=this.borderLayout1=this.neighbourTreeMenuItem=this.averageDistanceTreeMenuItem=this.PCAMenuItem=this.pairwiseAlignmentMenuItem=this.removeRedundancyMenuItem=this.sortGroupMenuItem=this.sortLengthMenuItem=
522 this.sortIDMenuItem=this.sortPairwiseMenuItem=this.viewTextMenuItem=this.viewBoxesMenuItem=this.removeAllGapsMenuItem=this.removeGappedColumnMenuItem=this.remove2RightMenuItem=this.remove2LeftMenuItem=this.invertSequenceMenuItem=this.deselectAllSequenceMenuItem=this.selectAllSequenceMenuItem=this.closeMenuItem=this.$outputAnnotations=this.$outputFeatures=this.$loadAnnotations=this.$loadTree=this.loadApplication=this.fileMenu=this.alignFrameMenuBar=this.annotationSortOrder=null;r(this,arguments)},
523 jalview.appletgui,"AlignFrame",jalview.appletgui.EmbmenuFrame,[java.awt.event.ActionListener,java.awt.event.ItemListener,java.awt.event.KeyListener,jalview.api.AlignViewControllerGuiI]);J(c$,function(){this.alignFrameMenuBar=new awt2swing.MenuBar;this.fileMenu=new awt2swing.Menu(jalview.util.MessageManager.getString("action.file"));this.loadApplication=new awt2swing.MenuItem(jalview.util.MessageManager.getString("label.view_full_application"));this.$loadTree=new awt2swing.MenuItem(jalview.util.MessageManager.getString("label.load_associated_tree"));
524 this.$loadAnnotations=new awt2swing.MenuItem(jalview.util.MessageManager.getString("label.load_features_annotations"));this.$outputFeatures=new awt2swing.MenuItem(jalview.util.MessageManager.getString("label.export_features").concat("..."));this.$outputAnnotations=new awt2swing.MenuItem(jalview.util.MessageManager.getString("label.export_annotations").concat("..."));this.closeMenuItem=new awt2swing.MenuItem(jalview.util.MessageManager.getString("action.close"));this.selectAllSequenceMenuItem=new awt2swing.MenuItem(jalview.util.MessageManager.getString("action.select_all"));
525 this.deselectAllSequenceMenuItem=new awt2swing.MenuItem(jalview.util.MessageManager.getString("action.deselect_all"));this.invertSequenceMenuItem=new awt2swing.MenuItem(jalview.util.MessageManager.getString("action.invert_selection"));this.remove2LeftMenuItem=new awt2swing.MenuItem;this.remove2RightMenuItem=new awt2swing.MenuItem;this.removeGappedColumnMenuItem=new awt2swing.MenuItem;this.removeAllGapsMenuItem=new awt2swing.MenuItem;this.viewBoxesMenuItem=new awt2swing.CheckboxMenuItem;this.viewTextMenuItem=
526 new awt2swing.CheckboxMenuItem;this.sortPairwiseMenuItem=new awt2swing.MenuItem;this.sortIDMenuItem=new awt2swing.MenuItem;this.sortLengthMenuItem=new awt2swing.MenuItem;this.sortGroupMenuItem=new awt2swing.MenuItem;this.removeRedundancyMenuItem=new awt2swing.MenuItem;this.pairwiseAlignmentMenuItem=new awt2swing.MenuItem;this.PCAMenuItem=new awt2swing.MenuItem;this.averageDistanceTreeMenuItem=new awt2swing.MenuItem;this.neighbourTreeMenuItem=new awt2swing.MenuItem;this.borderLayout1=new java.awt.BorderLayout;
527 this.statusBar=new awt2swing.Label;this.clustalColour=new awt2swing.MenuItem;this.zappoColour=new awt2swing.MenuItem;this.taylorColour=new awt2swing.MenuItem;this.hydrophobicityColour=new awt2swing.MenuItem;this.helixColour=new awt2swing.MenuItem;this.strandColour=new awt2swing.MenuItem;this.turnColour=new awt2swing.MenuItem;this.buriedColour=new awt2swing.MenuItem;this.purinePyrimidineColour=new awt2swing.MenuItem;this.RNAInteractionColour=new awt2swing.MenuItem;this.RNAHelixColour=new awt2swing.MenuItem;
528 this.userDefinedColour=new awt2swing.MenuItem;this.PIDColour=new awt2swing.MenuItem;this.BLOSUM62Colour=new awt2swing.MenuItem;this.tcoffeeColour=new awt2swing.MenuItem;this.njTreeBlosumMenuItem=new awt2swing.MenuItem;this.avDistanceTreeBlosumMenuItem=new awt2swing.MenuItem;this.annotationPanelMenuItem=new awt2swing.CheckboxMenuItem;this.colourTextMenuItem=new awt2swing.CheckboxMenuItem;this.displayNonconservedMenuItem=new awt2swing.CheckboxMenuItem;this.alProperties=new awt2swing.MenuItem(jalview.util.MessageManager.getString("label.alignment_props"));
529 this.overviewMenuItem=new awt2swing.MenuItem;this.undoMenuItem=new awt2swing.MenuItem;this.redoMenuItem=new awt2swing.MenuItem;this.conservationMenuItem=new awt2swing.CheckboxMenuItem;this.noColourmenuItem=new awt2swing.MenuItem;this.wrapMenuItem=new awt2swing.CheckboxMenuItem;this.renderGapsMenuItem=new awt2swing.CheckboxMenuItem;this.findMenuItem=new awt2swing.MenuItem;this.abovePIDThreshold=new awt2swing.CheckboxMenuItem;this.nucleotideColour=new awt2swing.MenuItem;this.deleteGroups=new awt2swing.MenuItem;
530 this.grpsFromSelection=new awt2swing.MenuItem;this.createGroup=new awt2swing.MenuItem;this.unGroup=new awt2swing.MenuItem;this.$delete=new awt2swing.MenuItem;this.copy=new awt2swing.MenuItem;this.cut=new awt2swing.MenuItem;this.pasteMenu=new awt2swing.Menu;this.pasteNew=new awt2swing.MenuItem;this.pasteThis=new awt2swing.MenuItem;this.applyToAllGroups=new awt2swing.CheckboxMenuItem;this.$font=new awt2swing.MenuItem;this.scaleAbove=new awt2swing.CheckboxMenuItem;this.scaleLeft=new awt2swing.CheckboxMenuItem;
531 this.scaleRight=new awt2swing.CheckboxMenuItem;this.modifyPID=new awt2swing.MenuItem;this.modifyConservation=new awt2swing.MenuItem;this.$sortByTree=new awt2swing.CheckboxMenuItem("Sort Alignment With New Tree",!0);this.sortByTreeMenu=new awt2swing.Menu;this.inputText=new awt2swing.MenuItem;this.documentation=new awt2swing.MenuItem;this.about=new awt2swing.MenuItem;this.seqLimits=new awt2swing.CheckboxMenuItem;this.centreColumnLabelFlag=new awt2swing.CheckboxMenuItem;this.followMouseOverFlag=new awt2swing.CheckboxMenuItem;
532 this.showSequenceLogo=new awt2swing.CheckboxMenuItem;this.applyAutoAnnotationSettings=new awt2swing.CheckboxMenuItem;this.showConsensusHistogram=new awt2swing.CheckboxMenuItem;this.showGroupConsensus=new awt2swing.CheckboxMenuItem;this.showGroupConservation=new awt2swing.CheckboxMenuItem;this.normSequenceLogo=new awt2swing.CheckboxMenuItem;this.featureSettings=new awt2swing.MenuItem;this.sequenceFeatures=new awt2swing.CheckboxMenuItem;this.annotationColour=new awt2swing.MenuItem;this.annotationColumnSelection=
533 new awt2swing.MenuItem;this.invertColSel=new awt2swing.MenuItem;this.showColumns=new awt2swing.MenuItem;this.showSeqs=new awt2swing.MenuItem;this.hideColumns=new awt2swing.MenuItem;this.hideSequences=new awt2swing.MenuItem;this.hideAllButSelection=new awt2swing.MenuItem;this.hideAllSelection=new awt2swing.MenuItem;this.showAllHidden=new awt2swing.MenuItem;this.$newView=new awt2swing.MenuItem});m(c$,function(a,b,c,f){this.construct(a,b,c,f,!0)},"jalview.datamodel.AlignmentI,jalview.bin.JalviewLite,~S,~B");
534 m(c$,function(a,b,c,f,l){this.construct(a,null,null,b,c,f,l)},"jalview.datamodel.AlignmentI,jalview.bin.JalviewLite,~S,~B,~B");m(c$,function(a,b,c,f,l,d){this.construct(a,b,c,f,l,d,!0)},"jalview.datamodel.AlignmentI,~A,jalview.datamodel.ColumnSelection,jalview.bin.JalviewLite,~S,~B");m(c$,function(a,b,c,f,l,d,g){t(this,jalview.appletgui.AlignFrame,[]);null!=f&&(this.jalviewServletURL=f.jalviewServletURL);try{this.jbInit()}catch(h){if(y(h,Exception))h.printStackTrace();else throw h;}if(null!=f){var j;
535 try{j=f.windowWidth,null!=j&&(this.frameWidth=Integer.parseInt(j)),j=f.windowHeight,null!=j&&(this.frameHeight=Integer.parseInt(j))}catch(e){if(!y(e,Exception))throw e;}}this.viewport=new jalview.appletgui.AlignViewport(a,f);null!=b&&0<b.length&&this.viewport.hideSequence(b);null!=c&&this.viewport.setColumnSelection(c);this.alignPanel=new jalview.appletgui.AlignmentPanel(this,this.viewport);this.avc=new jalview.controller.AlignViewController(this,this.viewport,this.alignPanel);this.viewport.updateConservation(this.alignPanel);
536 this.viewport.updateConsensus(this.alignPanel);this.displayNonconservedMenuItem.setState(this.viewport.getShowUnconserved());this.followMouseOverFlag.setState(this.viewport.isFollowHighlight());this.showGroupConsensus.setState(this.viewport.isShowGroupConsensus());this.showGroupConservation.setState(this.viewport.isShowGroupConservation());this.showConsensusHistogram.setState(this.viewport.isShowConsensusHistogram());this.showSequenceLogo.setState(this.viewport.isShowSequenceLogo());this.normSequenceLogo.setState(this.viewport.isNormaliseSequenceLogo());
537 this.applyToAllGroups.setState(this.viewport.getColourAppliesToAllGroups());this.annotationPanelMenuItem.setState(this.viewport.isShowAnnotation());this.showAlignmentAnnotations.setState(this.viewport.isShowAnnotation());this.showSequenceAnnotations.setState(this.viewport.isShowAnnotation());this.seqLimits.setState(this.viewport.getShowJVSuffix());null!=f&&(j=f.sortBy,null!=j&&(j.equalsIgnoreCase("Id")?this.sortIDMenuItem_actionPerformed():j.equalsIgnoreCase("Pairwise Identity")?this.sortPairwiseMenuItem_actionPerformed():
538 j.equalsIgnoreCase("Length")&&this.sortLengthMenuItem_actionPerformed()),j=f.wrap,null!=j&&j.equalsIgnoreCase("true")&&(this.wrapMenuItem.setState(!0),this.wrapMenuItem_actionPerformed()),j=f.centrecolumnlabels,null!=j&&(this.centreColumnLabelFlag.setState(!0),this.centreColumnLabelFlag_stateChanged()));this.viewport.getAlignment().isNucleotide()?(this.viewport.updateStrucConsensus(this.alignPanel),this.viewport.getAlignment().hasRNAStructure()?this.RNAHelixColour.setEnabled(!0):this.RNAHelixColour.setEnabled(!1)):
539 (this.RNAHelixColour.setEnabled(!1),this.purinePyrimidineColour.setEnabled(!1));this.addKeyListener(this);this.alignPanel.seqPanel.seqCanvas.addKeyListener(this);this.alignPanel.idPanel.idCanvas.addKeyListener(this);this.alignPanel.scalePanel.addKeyListener(this);this.alignPanel.annotationPanel.addKeyListener(this);this.alignPanel.annotationPanelHolder.addKeyListener(this);this.alignPanel.annotationSpaceFillerHolder.addKeyListener(this);this.alignPanel.alabels.addKeyListener(this);g&&this.addToDisplay(d)},
540 "jalview.datamodel.AlignmentI,~A,jalview.datamodel.ColumnSelection,jalview.bin.JalviewLite,~S,~B,~B");d(c$,"addToDisplay",function(a){this.createAlignFrameWindow(a);this.validate();this.alignPanel.adjustAnnotationHeight();this.alignPanel.paintAlignment(!0)},"~B");d(c$,"getAlignViewport",function(){return this.viewport});d(c$,"getSeqcanvas",function(){return this.alignPanel.seqPanel.seqCanvas});d(c$,"parseFeaturesFile",function(a,b){return this.parseFeaturesFile(a,b,!0)},"~S,~S");d(c$,"parseFeaturesFile",
541 function(a,b,c){var f=new java.util.Hashtable,l=!1;try{l=(new jalview.io.FeaturesFile(a,b)).parse(this.viewport.getAlignment(),this.alignPanel.seqPanel.seqCanvas.getFeatureRenderer().getFeatureColours(),f,!0,this.viewport.applet.getDefaultParameter("relaxedidmatch",!1))}catch(d){if(y(d,Exception))d.printStackTrace();else throw d;}l&&(0<f.size()&&(this.alignPanel.seqPanel.seqCanvas.getFeatureRenderer().featureLinks=f),c&&(this.viewport.setShowSequenceFeatures(!0),this.sequenceFeatures.setState(!0)),
542 null!=this.alignPanel.seqPanel.seqCanvas.fr&&this.alignPanel.seqPanel.seqCanvas.fr.findAllFeatures(!0),null!=this.viewport.featureSettings&&this.viewport.featureSettings.refreshTable(),this.alignPanel.paintAlignment(!0),this.setStatus(jalview.util.MessageManager.getString("label.successfully_added_features_alignment")));return l},"~S,~S,~B");e(c$,"keyPressed",function(a){this.viewport.cursorMode&&((48<=a.getKeyCode()&&57>=a.getKeyCode()||96<=a.getKeyCode()&&105>=a.getKeyCode())&&Character.isDigit(a.getKeyChar()))&&
543 this.alignPanel.seqPanel.numberPressed(a.getKeyChar());switch(a.getKeyCode()){case 27:this.deselectAllSequenceMenuItem_actionPerformed();this.alignPanel.alabels.cancelDrag();break;case 88:(a.isControlDown()||a.isMetaDown())&&this.cut_actionPerformed();break;case 67:this.viewport.cursorMode&&!a.isControlDown()&&this.alignPanel.seqPanel.setCursorColumn();(a.isControlDown()||a.isMetaDown())&&this.copy_actionPerformed();break;case 86:a.isControlDown()&&this.paste(a.isShiftDown());break;case 65:(a.isControlDown()||
544 a.isMetaDown())&&this.selectAllSequenceMenuItem_actionPerformed();break;case 40:this.viewport.cursorMode?this.alignPanel.seqPanel.moveCursor(0,1):this.moveSelectedSequences(!1);break;case 38:this.viewport.cursorMode?this.alignPanel.seqPanel.moveCursor(0,-1):this.moveSelectedSequences(!0);break;case 37:a.isAltDown()||!this.viewport.cursorMode?this.slideSequences(!1,this.alignPanel.seqPanel.getKeyboardNo1()):this.alignPanel.seqPanel.moveCursor(-1,0);break;case 39:a.isAltDown()||!this.viewport.cursorMode?
545 this.slideSequences(!0,this.alignPanel.seqPanel.getKeyboardNo1()):this.alignPanel.seqPanel.moveCursor(1,0);break;case 32:this.viewport.cursorMode&&this.alignPanel.seqPanel.insertGapAtCursor(a.isControlDown()||a.isShiftDown()||a.isAltDown());break;case 127:case 8:this.viewport.cursorMode?this.alignPanel.seqPanel.deleteGapAtCursor(a.isControlDown()||a.isShiftDown()||a.isAltDown()):(this.cut_actionPerformed(),this.alignPanel.seqPanel.seqCanvas.repaint());break;case 83:this.viewport.cursorMode&&this.alignPanel.seqPanel.setCursorRow();
546 break;case 80:this.viewport.cursorMode&&this.alignPanel.seqPanel.setCursorPosition();break;case 10:case 44:this.viewport.cursorMode&&this.alignPanel.seqPanel.setCursorRowAndColumn();break;case 81:this.viewport.cursorMode&&this.alignPanel.seqPanel.setSelectionAreaAtCursor(!0);break;case 77:this.viewport.cursorMode&&this.alignPanel.seqPanel.setSelectionAreaAtCursor(!1);break;case 113:this.viewport.cursorMode=!this.viewport.cursorMode;this.setStatus(jalview.util.MessageManager.formatMessage("label.keyboard_editing_mode",
547 E(-1,[this.viewport.cursorMode?"on":"off"])));this.viewport.cursorMode&&(this.alignPanel.seqPanel.seqCanvas.cursorX=this.viewport.startRes,this.alignPanel.seqPanel.seqCanvas.cursorY=this.viewport.startSeq);break;case 70:a.isControlDown()&&this.findMenuItem_actionPerformed();break;case 72:var b=!a.isControlDown();a=!a.isShiftDown();this.toggleHiddenRegions(b,a);break;case 33:this.viewport.getWrapAlignment()?this.alignPanel.scrollUp(!0):this.alignPanel.setScrollValues(this.viewport.startRes,this.viewport.startSeq-
548 this.viewport.endSeq+this.viewport.startSeq);break;case 34:this.viewport.getWrapAlignment()?this.alignPanel.scrollUp(!1):this.alignPanel.setScrollValues(this.viewport.startRes,this.viewport.startSeq+this.viewport.endSeq-this.viewport.startSeq);break;case 90:a.isControlDown()&&this.undoMenuItem_actionPerformed();break;case 89:a.isControlDown()&&this.redoMenuItem_actionPerformed();break;case 76:a.isControlDown()&&this.trimAlignment(!0);break;case 82:a.isControlDown()&&this.trimAlignment(!1);break;case 69:a.isControlDown()&&
549 (a.isShiftDown()?this.removeAllGapsMenuItem_actionPerformed():this.removeGappedColumnMenuItem_actionPerformed());break;case 73:a.isControlDown()&&(a.isAltDown()?this.invertColSel_actionPerformed():this.invertSequenceMenuItem_actionPerformed());break;case 71:a.isControlDown()&&(a.isShiftDown()?this.unGroup_actionPerformed():this.createGroup_actionPerformed());break;case 85:a.isControlDown()&&this.deleteGroups_actionPerformed();break;case 84:a.isControlDown()&&this.newView(null)}this.alignPanel.paintAlignment(!0)},
550 "java.awt.event.KeyEvent");d(c$,"toggleHiddenRegions",function(a,b){var c=!1,f=this.viewport.getSelectionGroup();if(!a&&!b&&(null!=this.viewport.getColumnSelection()&&null!=this.viewport.getColumnSelection().getSelected()&&0<this.viewport.getColumnSelection().getSelected().size()||null!=f&&0<f.getSize()&&f.getStartRes()<=f.getEndRes()))null!=f&&(this.invertSequenceMenuItem_actionPerformed(),f=this.viewport.getSelectionGroup(),a=!0),this.viewport.expandColSelection(f,!0),this.invertColSel_actionPerformed(),
551 b=!0;a&&(null!=f&&f.getSize()!=this.viewport.getAlignment().getHeight()?(c=!0,this.viewport.hideAllSelectedSeqs()):b&&0<this.viewport.getColumnSelection().getSelected().size()||this.viewport.showAllHiddenSeqs());b&&(0<this.viewport.getColumnSelection().getSelected().size()?(this.viewport.hideSelectedColumns(),a||this.viewport.setSelectionGroup(f)):c||this.viewport.showAllHiddenColumns())},"~B,~B");e(c$,"keyReleased",function(){},"java.awt.event.KeyEvent");e(c$,"keyTyped",function(){},"java.awt.event.KeyEvent");
552 e(c$,"itemStateChanged",function(a){a=a.getSource();a===this.displayNonconservedMenuItem?this.displayNonconservedMenuItem_actionPerformed():a===this.colourTextMenuItem?this.colourTextMenuItem_actionPerformed():a===this.wrapMenuItem?this.wrapMenuItem_actionPerformed():a===this.scaleAbove?this.viewport.setScaleAboveWrapped(this.scaleAbove.getState()):a===this.scaleLeft?this.viewport.setScaleLeftWrapped(this.scaleLeft.getState()):a===this.scaleRight?this.viewport.setScaleRightWrapped(this.scaleRight.getState()):
553 a===this.seqLimits?this.seqLimits_itemStateChanged():a===this.viewBoxesMenuItem?this.viewport.setShowBoxes(this.viewBoxesMenuItem.getState()):a===this.viewTextMenuItem?this.viewport.setShowText(this.viewTextMenuItem.getState()):a===this.renderGapsMenuItem?this.viewport.setRenderGaps(this.renderGapsMenuItem.getState()):a===this.annotationPanelMenuItem?(this.viewport.setShowAnnotation(this.annotationPanelMenuItem.getState()),this.alignPanel.setAnnotationVisible(this.annotationPanelMenuItem.getState())):
554 a===this.sequenceFeatures?(this.viewport.setShowSequenceFeatures(this.sequenceFeatures.getState()),this.alignPanel.seqPanel.seqCanvas.repaint()):a===this.showAlignmentAnnotations?this.setAnnotationsVisibility():a===this.showSequenceAnnotations?this.setAnnotationsVisibility():a===this.sortAnnBySequence?(a=this.sortAnnBySequence.getState(),this.sortAnnByLabel.setState(!1),this.setAnnotationSortOrder(a?jalview.analysis.AnnotationSorter.SequenceAnnotationOrder.SEQUENCE_AND_LABEL:jalview.analysis.AnnotationSorter.SequenceAnnotationOrder.NONE),
555 this.setViewportAnnotationOrder()):a===this.sortAnnByLabel?(a=this.sortAnnByLabel.getState(),this.sortAnnBySequence.setState(!1),this.setAnnotationSortOrder(a?jalview.analysis.AnnotationSorter.SequenceAnnotationOrder.LABEL_AND_SEQUENCE:jalview.analysis.AnnotationSorter.SequenceAnnotationOrder.NONE),this.setViewportAnnotationOrder()):a===this.showAutoFirst?(this.showAutoLast.setState(!this.showAutoFirst.getState()),this.setShowAutoCalculatedAbove(this.showAutoFirst.getState()),this.setViewportAnnotationOrder()):
556 a===this.showAutoLast?(this.showAutoFirst.setState(!this.showAutoLast.getState()),this.setShowAutoCalculatedAbove(this.showAutoFirst.getState()),this.setViewportAnnotationOrder()):a===this.conservationMenuItem?this.conservationMenuItem_actionPerformed():a===this.abovePIDThreshold?this.abovePIDThreshold_actionPerformed():a===this.applyToAllGroups?this.viewport.setColourAppliesToAllGroups(this.applyToAllGroups.getState()):a===this.autoCalculate?this.viewport.autoCalculateConsensus=this.autoCalculate.getState():
557 a===this.$sortByTree?this.viewport.sortByTree=this.$sortByTree.getState():a===this.centreColumnLabelFlag?this.centreColumnLabelFlag_stateChanged():a===this.followMouseOverFlag?this.mouseOverFlag_stateChanged():a===this.showGroupConsensus?this.showGroupConsensus_actionPerformed():a===this.showGroupConservation?this.showGroupConservation_actionPerformed():a===this.showSequenceLogo?this.showSequenceLogo_actionPerformed():a===this.normSequenceLogo?this.normSequenceLogo_actionPerformed():a===this.showConsensusHistogram?
558 this.showConsensusHistogram_actionPerformed():a===this.applyAutoAnnotationSettings&&this.applyAutoAnnotationSettings_actionPerformed();this.alignPanel.paintAlignment(!0)},"java.awt.event.ItemEvent");d(c$,"setAnnotationsVisibility",function(){for(var a=this.showAlignmentAnnotations.getState(),b=this.showSequenceAnnotations.getState(),c,f=0,l=this.alignPanel.getAlignment().getAlignmentAnnotation();f<l.length&&((c=l[f])||1);f++)c.visible=null==c.sequenceRef?a:b;this.alignPanel.validateAnnotationDimensions(!0);
559 this.validate();this.repaint()});d(c$,"setAnnotationSortOrder",function(a){this.annotationSortOrder=a},"jalview.analysis.AnnotationSorter.SequenceAnnotationOrder");d(c$,"setViewportAnnotationOrder",function(){this.alignPanel.av.setSortAnnotationsBy(this.annotationSortOrder);this.alignPanel.av.setShowAutocalculatedAbove(this.showAutoCalculatedAbove)});d(c$,"setShowAutoCalculatedAbove",function(a){this.showAutoCalculatedAbove=a},"~B");d(c$,"mouseOverFlag_stateChanged",function(){this.viewport.setFollowHighlight(this.followMouseOverFlag.getState())});
560 d(c$,"centreColumnLabelFlag_stateChanged",function(){this.viewport.centreColumnLabels=this.centreColumnLabelFlag.getState();this.alignPanel.annotationPanel.repaint()});e(c$,"actionPerformed",function(a){a=a.getSource();if(a===this.inputText)this.inputText_actionPerformed();else if(a===this.$loadTree)this.loadTree_actionPerformed();else if(a===this.loadApplication)this.launchFullApplication();else if(a===this.$loadAnnotations)this.loadAnnotations();else if(a===this.$outputAnnotations)this.outputAnnotations(!0);
561 else if(a===this.$outputFeatures)this.outputFeatures(!0,"Jalview");else if(a===this.closeMenuItem)this.closeMenuItem_actionPerformed();else if(a===this.copy)this.copy_actionPerformed();else if(a===this.undoMenuItem)this.undoMenuItem_actionPerformed();else if(a===this.redoMenuItem)this.redoMenuItem_actionPerformed();else if(a===this.inputText)this.inputText_actionPerformed();else if(a===this.closeMenuItem)this.closeMenuItem_actionPerformed();else if(a===this.undoMenuItem)this.undoMenuItem_actionPerformed();
562 else if(a===this.redoMenuItem)this.redoMenuItem_actionPerformed();else if(a===this.copy)this.copy_actionPerformed();else if(a===this.pasteNew)this.pasteNew_actionPerformed();else if(a===this.pasteThis)this.pasteThis_actionPerformed();else if(a===this.cut)this.cut_actionPerformed();else if(a===this.$delete)this.delete_actionPerformed();else if(a===this.grpsFromSelection)this.makeGrpsFromSelection_actionPerformed();else if(a===this.deleteGroups)this.deleteGroups_actionPerformed();else if(a===this.selectAllSequenceMenuItem)this.selectAllSequenceMenuItem_actionPerformed();
563 else if(a===this.deselectAllSequenceMenuItem)this.deselectAllSequenceMenuItem_actionPerformed();else if(a===this.invertSequenceMenuItem)this.invertSequenceMenuItem_actionPerformed();else if(a===this.invertColSel)this.viewport.invertColumnSelection(),this.alignPanel.paintAlignment(!0);else if(a===this.remove2LeftMenuItem)this.trimAlignment(!0);else if(a===this.remove2RightMenuItem)this.trimAlignment(!1);else if(a===this.removeGappedColumnMenuItem)this.removeGappedColumnMenuItem_actionPerformed();else if(a===
564 this.removeAllGapsMenuItem)this.removeAllGapsMenuItem_actionPerformed();else if(a===this.findMenuItem)this.findMenuItem_actionPerformed();else if(a===this.$font)new jalview.appletgui.FontChooser(this.alignPanel);else if(a===this.$newView)this.newView(null);else if(a===this.showColumns)this.viewport.showAllHiddenColumns(),this.alignPanel.paintAlignment(!0);else if(a===this.showSeqs)this.viewport.showAllHiddenSeqs(),this.alignPanel.paintAlignment(!0);else if(a===this.hideColumns)this.viewport.hideSelectedColumns(),
565 this.alignPanel.paintAlignment(!0);else if(a===this.hideSequences&&null!=this.viewport.getSelectionGroup())this.viewport.hideAllSelectedSeqs(),this.alignPanel.paintAlignment(!0);else if(a===this.hideAllButSelection)this.toggleHiddenRegions(!1,!1),this.alignPanel.paintAlignment(!0);else if(a===this.hideAllSelection)a=this.viewport.getSelectionGroup(),this.viewport.expandColSelection(a,!1),this.viewport.hideAllSelectedSeqs(),this.viewport.hideSelectedColumns(),this.alignPanel.paintAlignment(!0);else if(a===
566 this.showAllHidden)this.viewport.showAllHiddenColumns(),this.viewport.showAllHiddenSeqs(),this.alignPanel.paintAlignment(!0);else if(a===this.showGroupConsensus)this.showGroupConsensus_actionPerformed();else if(a===this.showGroupConservation)this.showGroupConservation_actionPerformed();else if(a===this.showSequenceLogo)this.showSequenceLogo_actionPerformed();else if(a===this.normSequenceLogo)this.normSequenceLogo_actionPerformed();else if(a===this.showConsensusHistogram)this.showConsensusHistogram_actionPerformed();
567 else if(a===this.applyAutoAnnotationSettings)this.applyAutoAnnotationSettings_actionPerformed();else if(a===this.featureSettings)new jalview.appletgui.FeatureSettings(this.alignPanel);else if(a===this.alProperties){var b=(new jalview.io.AlignmentProperties(this.viewport.getAlignment())).formatAsString();a=new jalview.appletgui.CutAndPasteTransfer(!1,this);a.setText(b.toString());b=new awt2swing.Frame;b.add(a);jalview.bin.JalviewLite.addFrame(b,jalview.util.MessageManager.formatMessage("label.alignment_properties",
568 E(-1,[this.getTitle()])),400,250)}else a===this.overviewMenuItem?this.overviewMenuItem_actionPerformed():a===this.noColourmenuItem?this.changeColour(null):a===this.clustalColour?(this.abovePIDThreshold.setState(!1),this.changeColour(new jalview.schemes.ClustalxColourScheme(this.viewport.getAlignment(),null))):a===this.zappoColour?this.changeColour(new jalview.schemes.ZappoColourScheme):a===this.taylorColour?this.changeColour(new jalview.schemes.TaylorColourScheme):a===this.hydrophobicityColour?this.changeColour(new jalview.schemes.HydrophobicColourScheme):
569 a===this.helixColour?this.changeColour(new jalview.schemes.HelixColourScheme):a===this.strandColour?this.changeColour(new jalview.schemes.StrandColourScheme):a===this.turnColour?this.changeColour(new jalview.schemes.TurnColourScheme):a===this.buriedColour?this.changeColour(new jalview.schemes.BuriedColourScheme):a===this.nucleotideColour?this.changeColour(new jalview.schemes.NucleotideColourScheme):a===this.purinePyrimidineColour?this.changeColour(new jalview.schemes.PurinePyrimidineColourScheme):
570 a===this.RNAInteractionColour?this.changeColour(new jalview.schemes.RNAInteractionColourScheme):a===this.RNAHelixColour?new jalview.schemes.RNAHelicesColourChooser(this.viewport,this.alignPanel):a===this.modifyPID?this.modifyPID_actionPerformed():a===this.modifyConservation?this.modifyConservation_actionPerformed():a===this.userDefinedColour?new jalview.appletgui.UserDefinedColours(this.alignPanel,null):a===this.PIDColour?this.changeColour(new jalview.schemes.PIDColourScheme):a===this.BLOSUM62Colour?
571 this.changeColour(new jalview.schemes.Blosum62ColourScheme):a===this.tcoffeeColour?this.changeColour(new jalview.schemes.TCoffeeColourScheme(this.alignPanel.getAlignment())):a===this.annotationColour?new jalview.appletgui.AnnotationColourChooser(this.viewport,this.alignPanel):a===this.annotationColumnSelection?new jalview.appletgui.AnnotationColumnChooser(this.viewport,this.alignPanel):a===this.sortPairwiseMenuItem?this.sortPairwiseMenuItem_actionPerformed():a===this.sortIDMenuItem?this.sortIDMenuItem_actionPerformed():
572 a===this.sortLengthMenuItem?this.sortLengthMenuItem_actionPerformed():a===this.sortGroupMenuItem?this.sortGroupMenuItem_actionPerformed():a===this.removeRedundancyMenuItem?this.removeRedundancyMenuItem_actionPerformed():a===this.pairwiseAlignmentMenuItem?this.pairwiseAlignmentMenuItem_actionPerformed():a===this.PCAMenuItem?this.PCAMenuItem_actionPerformed():a===this.averageDistanceTreeMenuItem?this.averageDistanceTreeMenuItem_actionPerformed():a===this.neighbourTreeMenuItem?this.neighbourTreeMenuItem_actionPerformed():
573 a===this.njTreeBlosumMenuItem?this.njTreeBlosumMenuItem_actionPerformed():a===this.avDistanceTreeBlosumMenuItem?this.avTreeBlosumMenuItem_actionPerformed():a===this.documentation?this.documentation_actionPerformed():a===this.about&&this.about_actionPerformed()},"java.awt.event.ActionEvent");d(c$,"inputText_actionPerformed",function(){var a=new jalview.appletgui.CutAndPasteTransfer(!0,this),b=new awt2swing.Frame;b.add(a);jalview.bin.JalviewLite.addFrame(b,jalview.util.MessageManager.getString("label.input_cut_paste"),
574 500,500)});d(c$,"outputText_actionPerformed",function(a){var b=new jalview.appletgui.CutAndPasteTransfer(!0,this),c=new awt2swing.Frame;c.add(b);jalview.bin.JalviewLite.addFrame(c,jalview.util.MessageManager.formatMessage("label.alignment_output_command",E(-1,[a.getActionCommand()])),600,500);this.alignPanel.cloneFeatureRenderer();b.setText((new jalview.io.AppletFormatAdapter(this.alignPanel)).formatSequences(a.getActionCommand(),this.viewport.getAlignment(),this.viewport.getShowJVSuffix()))},"java.awt.event.ActionEvent");
575 d(c$,"loadAnnotations",function(){var a=new jalview.appletgui.CutAndPasteTransfer(!0,this);a.setText(jalview.util.MessageManager.getString("label.paste_features_annotations_Tcoffee_here"));a.setAnnotationImport();var b=new awt2swing.Frame;b.add(a);jalview.bin.JalviewLite.addFrame(b,jalview.util.MessageManager.getString("action.paste_annotations"),400,300)});d(c$,"outputAnnotations",function(a){var b=(new jalview.io.AnnotationFile).printAnnotationsForView(this.viewport);if(a){a=new jalview.appletgui.CutAndPasteTransfer(!1,
576 this);var c=new awt2swing.Frame;c.add(a);jalview.bin.JalviewLite.addFrame(c,jalview.util.MessageManager.getString("label.annotations"),600,500);a.setText(b)}return b},"~B");d(c$,"getDisplayedFeatureCols",function(){return null!=this.alignPanel.getFeatureRenderer()&&null!=this.viewport.getFeaturesDisplayed()?this.alignPanel.getFeatureRenderer().getDisplayedFeatureCols():null});d(c$,"outputFeatures",function(a,b){var c;c=b.equalsIgnoreCase("Jalview")?(new jalview.io.FeaturesFile).printJalviewFormat(this.viewport.getAlignment().getSequencesArray(),
577 this.getDisplayedFeatureCols()):(new jalview.io.FeaturesFile).printGFFFormat(this.viewport.getAlignment().getSequencesArray(),this.getDisplayedFeatureCols());if(a){var f=!1;if(null==c||c.equals("No Features Visible"))c="# No features visible - paste some and import them here.",f=!0;var l=new jalview.appletgui.CutAndPasteTransfer(f,this);f&&l.setAnnotationImport();f=new awt2swing.Frame;f.add(l);jalview.bin.JalviewLite.addFrame(f,jalview.util.MessageManager.getString("label.features"),600,500);l.setText(c)}else null==
578 c&&(c="");return c},"~B,~S");d(c$,"launchFullApplication",function(){var a=new StringBuffer(this.jalviewServletURL),b=a.lastIndexOf("?")>a.lastIndexOf("/")?"&":"?";a.append(b);b=this.viewport.applet;a.append("open="+this.appendProtocol(b.startupFile));null!=this.viewport.applet.features&&(a.append("&features="),a.append(this.appendProtocol(b.features)));null!=b.annotations&&(a.append("&annotations="),a.append(this.appendProtocol(b.annotations)));null!=b.jnetFile&&(a.append("&annotations="),a.append(this.appendProtocol(b.jnetFile)));
579 null!=b.defaultColour&&a.append("&colour="+this.removeWhiteSpace(b.defaultColour));null!=b.userDefinedColour&&a.append("&colour="+this.removeWhiteSpace(b.userDefinedColour));null!=b.treeFile&&a.append("&tree="+this.appendProtocol(b.treeFile));this.showURL(a.toString(),"FULL_APP")});d(c$,"removeWhiteSpace",function(a){for(var b=new StringBuffer,c=0;c<a.length;c++)Character.isWhitespace(a.charAt(c))?b.append("%20"):b.append(a.charAt(c));return b.toString()},"~S");d(c$,"appendProtocol",function(a){try{new java.net.URL(a),
580 a=java.net.URLEncoder.encode(a)}catch(b){if(y(b,java.net.MalformedURLException))a=this.viewport.applet.getCodeBase()+a;else throw b;}return a},"~S");d(c$,"closeMenuItem_actionPerformed",function(){jalview.appletgui.PaintRefresher.RemoveComponent(this.alignPanel);null!=this.alignPanel.seqPanel&&null!=this.alignPanel.seqPanel.seqCanvas&&jalview.appletgui.PaintRefresher.RemoveComponent(this.alignPanel.seqPanel.seqCanvas);null!=this.alignPanel.idPanel&&null!=this.alignPanel.idPanel.idCanvas&&jalview.appletgui.PaintRefresher.RemoveComponent(this.alignPanel.idPanel.idCanvas);
581 0==jalview.appletgui.PaintRefresher.components.size()&&null==this.viewport.applet&&System.exit(0);this.alignPanel=this.viewport=null;this.dispose()});d(c$,"updateEditMenuBar",function(){if(0<this.viewport.getHistoryList().size()){this.undoMenuItem.setEnabled(!0);var a=this.viewport.getHistoryList().peek();this.undoMenuItem.setLabel(jalview.util.MessageManager.formatMessage("label.undo_command",E(-1,[a.getDescription()])))}else this.undoMenuItem.setEnabled(!1),this.undoMenuItem.setLabel(jalview.util.MessageManager.getString("action.undo"));
582 0<this.viewport.getRedoList().size()?(this.redoMenuItem.setEnabled(!0),a=this.viewport.getRedoList().peek(),this.redoMenuItem.setLabel(jalview.util.MessageManager.formatMessage("label.redo_command",E(-1,[a.getDescription()])))):(this.redoMenuItem.setEnabled(!1),this.redoMenuItem.setLabel(jalview.util.MessageManager.getString("action.redo")))});e(c$,"addHistoryItem",function(a){0<a.getSize()&&(this.viewport.addToHistoryList(a),this.viewport.clearRedoList(),this.updateEditMenuBar(),this.viewport.updateHiddenColumns())},
583 "jalview.commands.CommandI");d(c$,"undoMenuItem_actionPerformed",function(){if(!this.viewport.getHistoryList().isEmpty()){var a=this.viewport.getHistoryList().pop();this.viewport.addToRedoList(a);a.undoCommand(null);a=this.getOriginatingSource(a);a!==this.viewport&&System.err.println("Warning: Viewport object mismatch whilst undoing");a.updateHiddenColumns();this.updateEditMenuBar();a.firePropertyChange("alignment",null,a.getAlignment().getSequences())}});d(c$,"redoMenuItem_actionPerformed",function(){if(!this.viewport.getRedoList().isEmpty()){var a=
584 this.viewport.getRedoList().pop();this.viewport.addToHistoryList(a);a.doCommand(null);a=this.getOriginatingSource(a);a!==this.viewport&&System.err.println("Warning: Viewport object mismatch whilst re-doing");a.updateHiddenColumns();this.updateEditMenuBar();a.firePropertyChange("alignment",null,a.getAlignment().getSequences())}});d(c$,"getOriginatingSource",function(a){var b=null,c=null;if(v(a,jalview.commands.EditCommand)){c=a.getAlignment();a=jalview.appletgui.PaintRefresher.components.get(this.viewport.getSequenceSetId());
585 for(var f=0;f<a.size();f++)if(v(a.elementAt(f),jalview.appletgui.AlignmentPanel)&&c===a.elementAt(f).av.getAlignment()){b=a.elementAt(f).av;break}}null==b&&(null!=c&&jalview.appletgui.PaintRefresher.validateSequences(c,this.viewport.getAlignment()),b=this.viewport);return b},"jalview.commands.CommandI");d(c$,"moveSelectedSequences",function(a){var b=this.viewport.getSelectionGroup();if(null!=b){this.viewport.getAlignment().moveSelectedSequencesByOne(b,a?null:this.viewport.getHiddenRepSequences(),
586 a);this.alignPanel.paintAlignment(!0);var c=this.viewport.getCodingComplement();null!=c&&(b=jalview.util.MappingUtils.mapSequenceGroup(b,this.viewport,c),c.getAlignment().moveSelectedSequencesByOne(b,a?null:c.getHiddenRepSequences(),a))}},"~B");d(c$,"slideSequences",function(a,b){var c=new java.util.Vector;this.viewport.cursorMode?c.add(this.viewport.getAlignment().getSequenceAt(this.alignPanel.seqPanel.seqCanvas.cursorY)):null!=this.viewport.getSelectionGroup()&&this.viewport.getSelectionGroup().getSize()!=
587 this.viewport.getAlignment().getHeight()&&(c=this.viewport.getSelectionGroup().getSequences(this.viewport.getHiddenRepSequences()));if(!(1>c.size())){for(var f=new java.util.Vector,l=0;l<this.viewport.getAlignment().getHeight();l++)c.contains(this.viewport.getAlignment().getSequenceAt(l))||f.addElement(this.viewport.getAlignment().getSequenceAt(l));for(var c=c.toArray(Array(c.size())),d=f.toArray(Array(f.size())),l=0;l<f.size();l++)d[l]=f.elementAt(l);f=a?new jalview.commands.SlideSequencesCommand("Slide Sequences",
588 d,c,b,this.viewport.getGapCharacter()):new jalview.commands.SlideSequencesCommand("Slide Sequences",c,d,b,this.viewport.getGapCharacter());l=0;f.getGapsInsertedBegin()&&a?this.viewport.cursorMode?this.alignPanel.seqPanel.moveCursor(b,0):l=b:!f.getGapsInsertedBegin()&&!a&&(this.viewport.cursorMode?this.alignPanel.seqPanel.moveCursor(-b,0):l=-b);0!=l&&(this.viewport.getSelectionGroup().setStartRes(this.viewport.getSelectionGroup().getStartRes()+l),this.viewport.getSelectionGroup().setEndRes(this.viewport.getSelectionGroup().getEndRes()+
589 l));l=!1;c=this.viewport.getHistoryList();null!=c&&(0<c.size()&&v(c.peek(),jalview.commands.SlideSequencesCommand))&&(l=f.appendSlideCommand(c.peek()));l||this.addHistoryItem(f);this.repaint()}},"~B,~N");d(c$,"copy_actionPerformed",function(){if(null!=this.viewport.getSelectionGroup()){var a=this.viewport.getSelectionGroup();jalview.appletgui.AlignFrame.copiedSequences=new StringBuffer;for(var b=new java.util.HashMap,c=0;c<a.getSize();c++){var f=a.getSequenceAt(c),l=this.viewport.getAlignment().findIndex(f);
590 b.put(new Integer(l),f)}var l=0,d,g,h;if(this.viewport.hasHiddenColumns()&&null!=this.viewport.getSelectionGroup()){jalview.appletgui.AlignFrame.copiedHiddenColumns=new java.util.Vector;c=this.viewport.getSelectionGroup().getStartRes();for(f=this.viewport.getColumnSelection().getHiddenColumns().iterator();f.hasNext()&&((d=f.next())||1);)jalview.appletgui.AlignFrame.copiedHiddenColumns.addElement(w(-1,[d[0]-c,d[1]-c]))}else jalview.appletgui.AlignFrame.copiedHiddenColumns=null;for(c=0;c<a.getSize();c++){for(f=
591 null;null==f;)if(b.containsKey(new Integer(l))){f=b.get(new Integer(l));l++;break}else l++;d=f.findPosition(a.getStartRes());for(var j=g=0;j<a.getEndRes()+1&&j<f.getLength();j++)h=f.getCharAt(j),jalview.util.Comparison.isGap(h)||g++;0<g&&(g+=f.getStart()-1);jalview.appletgui.AlignFrame.copiedSequences.append(f.getName()+"\t"+d+"\t"+g+"\t"+f.getSequenceAsString(a.getStartRes(),a.getEndRes()+1)+"\n")}}});d(c$,"pasteNew_actionPerformed",function(){this.paste(!0)});d(c$,"pasteThis_actionPerformed",function(){this.paste(!1)});
592 d(c$,"paste",function(a){try{if(null!=jalview.appletgui.AlignFrame.copiedSequences){for(var b=new java.util.StringTokenizer(jalview.appletgui.AlignFrame.copiedSequences.toString()),c=new java.util.Vector;b.hasMoreElements();){var f=b.nextToken(),l=Integer.parseInt(b.nextToken()),d=Integer.parseInt(b.nextToken());c.addElement(new jalview.datamodel.Sequence(f,b.nextToken(),l,d))}for(var g=Array(c.size()),b=0;b<c.size();b++)g[b]=c.elementAt(b);if(a){var h=jalview.util.MessageManager.getString("label.copied_sequences"),
593 h=this.getTitle().startsWith(jalview.util.MessageManager.getString("label.copied_sequences"))?this.getTitle():h.concat(jalview.util.MessageManager.formatMessage("label.from_msname",E(-1,[this.getTitle()]))),j=new jalview.appletgui.AlignFrame(new jalview.datamodel.Alignment(g),this.viewport.applet,h,!1);if(null!=jalview.appletgui.AlignFrame.copiedHiddenColumns)for(b=0;b<jalview.appletgui.AlignFrame.copiedHiddenColumns.size();b++){var e=jalview.appletgui.AlignFrame.copiedHiddenColumns.elementAt(b);
594 j.viewport.hideColumns(e[0],e[1])}jalview.bin.JalviewLite.addFrame(j,h,this.frameWidth,this.frameHeight)}else this.addSequences(g)}}catch(x){if(!y(x,Exception))throw x;}},"~B");d(c$,"addSequences",function(a){for(var b=0;b<a.length;b++)this.viewport.getAlignment().addSequence(a[b]);this.addHistoryItem(new jalview.commands.EditCommand(jalview.util.MessageManager.getString("label.add_sequences"),jalview.commands.EditCommand.Action.PASTE,a,0,this.viewport.getAlignment().getWidth(),this.viewport.getAlignment()));
595 this.viewport.setEndSeq(this.viewport.getAlignment().getHeight());this.viewport.getAlignment().getWidth();this.viewport.firePropertyChange("alignment",null,this.viewport.getAlignment().getSequences())},"~A");d(c$,"cut_actionPerformed",function(){this.copy_actionPerformed();this.delete_actionPerformed()});d(c$,"delete_actionPerformed",function(){var a=this.viewport.getSelectionGroup();if(null!=a){for(var b=new java.util.Vector,c,f=0;f<a.getSize();f++)c=a.getSequenceAt(f),b.addElement(c);a.getSize()==
596 this.viewport.getAlignment().getHeight()&&this.viewport.getColumnSelection().removeElements(a.getStartRes(),a.getEndRes()+1);c=Array(b.size());for(f=0;f<b.size();f++)c[f]=b.elementAt(f);this.addHistoryItem(new jalview.commands.EditCommand(jalview.util.MessageManager.getString("label.cut_sequences"),jalview.commands.EditCommand.Action.CUT,c,a.getStartRes(),a.getEndRes()-a.getStartRes()+1,this.viewport.getAlignment()));this.viewport.setSelectionGroup(null);this.viewport.getAlignment().deleteGroup(a);
597 this.viewport.firePropertyChange("alignment",null,this.viewport.getAlignment().getSequences());1>this.viewport.getAlignment().getHeight()&&this.setVisible(!1);this.viewport.sendSelection()}});d(c$,"showGroupConsensus_actionPerformed",function(){this.viewport.setShowGroupConsensus(this.showGroupConsensus.getState());this.alignPanel.updateAnnotation(this.applyAutoAnnotationSettings.getState())});d(c$,"showGroupConservation_actionPerformed",function(){this.viewport.setShowGroupConservation(this.showGroupConservation.getState());
598 this.alignPanel.updateAnnotation(this.applyAutoAnnotationSettings.getState())});d(c$,"showConsensusHistogram_actionPerformed",function(){this.viewport.setShowConsensusHistogram(this.showConsensusHistogram.getState());this.alignPanel.updateAnnotation(this.applyAutoAnnotationSettings.getState())});d(c$,"showSequenceLogo_actionPerformed",function(){this.viewport.setShowSequenceLogo(this.showSequenceLogo.getState());this.alignPanel.updateAnnotation(this.applyAutoAnnotationSettings.getState())});d(c$,
599 "normSequenceLogo_actionPerformed",function(){this.showSequenceLogo.setState(!0);this.viewport.setShowSequenceLogo(!0);this.viewport.setNormaliseSequenceLogo(this.normSequenceLogo.getState());this.alignPanel.updateAnnotation(this.applyAutoAnnotationSettings.getState())});d(c$,"applyAutoAnnotationSettings_actionPerformed",function(){this.alignPanel.updateAnnotation(this.applyAutoAnnotationSettings.getState())});d(c$,"makeGrpsFromSelection_actionPerformed",function(){this.avc.makeGroupsFromSelection()&&
600 (jalview.appletgui.PaintRefresher.Refresh(this,this.viewport.getSequenceSetId()),this.alignPanel.updateAnnotation(),this.alignPanel.paintAlignment(!0))});d(c$,"createGroup_actionPerformed",function(){this.avc.createGroup()});d(c$,"unGroup_actionPerformed",function(){this.avc.unGroup()&&this.alignPanel.alignmentChanged()});d(c$,"deleteGroups_actionPerformed",function(){this.avc.deleteGroups()&&this.alignPanel.alignmentChanged()});d(c$,"selectAllSequenceMenuItem_actionPerformed",function(){for(var a=
601 new jalview.datamodel.SequenceGroup,b=0;b<this.viewport.getAlignment().getSequences().size();b++)a.addSequence(this.viewport.getAlignment().getSequenceAt(b),!1);a.setEndRes(this.viewport.getAlignment().getWidth()-1);this.viewport.setSelectionGroup(a);this.alignPanel.paintAlignment(!0);jalview.appletgui.PaintRefresher.Refresh(this.alignPanel,this.viewport.getSequenceSetId());this.viewport.sendSelection()});d(c$,"deselectAllSequenceMenuItem_actionPerformed",function(){this.viewport.cursorMode&&(this.alignPanel.seqPanel.keyboardNo1=
602 null,this.alignPanel.seqPanel.keyboardNo2=null);this.viewport.setSelectionGroup(null);this.viewport.getColumnSelection().clear();this.viewport.setSelectionGroup(null);this.alignPanel.idPanel.idCanvas.searchResults=null;this.alignPanel.seqPanel.seqCanvas.highlightSearchResults(null);this.alignPanel.paintAlignment(!0);jalview.appletgui.PaintRefresher.Refresh(this.alignPanel,this.viewport.getSequenceSetId());this.viewport.sendSelection()});d(c$,"invertSequenceMenuItem_actionPerformed",function(){for(var a=
603 this.viewport.getSelectionGroup(),b=0;b<this.viewport.getAlignment().getSequences().size();b++)a.addOrRemove(this.viewport.getAlignment().getSequenceAt(b),!1);jalview.appletgui.PaintRefresher.Refresh(this.alignPanel,this.viewport.getSequenceSetId());this.viewport.sendSelection()});d(c$,"invertColSel_actionPerformed",function(){this.viewport.invertColumnSelection();this.alignPanel.paintAlignment(!0);jalview.appletgui.PaintRefresher.Refresh(this.alignPanel,this.viewport.getSequenceSetId());this.viewport.sendSelection()});
604 d(c$,"trimAlignment",function(a){var b=this.viewport.getColumnSelection();if(0<b.size()){var b=a?b.getMin():b.getMax(),c;c=null!=this.viewport.getSelectionGroup()?this.viewport.getSelectionGroup().getSequencesAsArray(this.viewport.getHiddenRepSequences()):this.viewport.getAlignment().getSequencesArray();a?(c=new jalview.commands.TrimRegionCommand("Remove Left",jalview.commands.TrimRegionCommand.TRIM_LEFT,c,b,this.viewport.getAlignment(),this.viewport.getColumnSelection(),this.viewport.getSelectionGroup()),
605 this.viewport.setStartRes(0)):c=new jalview.commands.TrimRegionCommand("Remove Right",jalview.commands.TrimRegionCommand.TRIM_RIGHT,c,b,this.viewport.getAlignment(),this.viewport.getColumnSelection(),this.viewport.getSelectionGroup());this.setStatus(jalview.util.MessageManager.formatMessage("label.removed_columns",E(-1,[Integer.$valueOf(c.getSize()).toString()])));this.addHistoryItem(c);var f;for(c=this.viewport.getAlignment().getGroups().iterator();c.hasNext()&&((f=c.next())||1);)(a&&!f.adjustForRemoveLeft(b)||
606 !a&&!f.adjustForRemoveRight(b))&&this.viewport.getAlignment().deleteGroup(f);this.viewport.firePropertyChange("alignment",null,this.viewport.getAlignment().getSequences())}},"~B");d(c$,"removeGappedColumnMenuItem_actionPerformed",function(){var a=0,b=this.viewport.getAlignment().getWidth()-1,c;null!=this.viewport.getSelectionGroup()?(c=this.viewport.getSelectionGroup().getSequencesAsArray(this.viewport.getHiddenRepSequences()),a=this.viewport.getSelectionGroup().getStartRes(),b=this.viewport.getSelectionGroup().getEndRes()):
607 c=this.viewport.getAlignment().getSequencesArray();a=new jalview.commands.RemoveGapColCommand("Remove Gapped Columns",c,a,b,this.viewport.getAlignment());this.addHistoryItem(a);this.setStatus(jalview.util.MessageManager.formatMessage("label.removed_empty_columns",E(-1,[Integer.$valueOf(a.getSize()).toString()])));a=this.viewport.getAlignment().getSequenceAt(0);b=a.findPosition(this.viewport.startRes);this.viewport.setStartRes(a.findIndex(b)-1);this.viewport.firePropertyChange("alignment",null,this.viewport.getAlignment().getSequences())});
608 d(c$,"removeAllGapsMenuItem_actionPerformed",function(){var a=0,b=this.viewport.getAlignment().getWidth()-1,c;null!=this.viewport.getSelectionGroup()?(c=this.viewport.getSelectionGroup().getSequencesAsArray(this.viewport.getHiddenRepSequences()),a=this.viewport.getSelectionGroup().getStartRes(),b=this.viewport.getSelectionGroup().getEndRes()):c=this.viewport.getAlignment().getSequencesArray();var f=this.viewport.getAlignment().getSequenceAt(0),l=f.findPosition(this.viewport.startRes);this.addHistoryItem(new jalview.commands.RemoveGapsCommand("Remove Gaps",
609 c,a,b,this.viewport.getAlignment()));this.viewport.setStartRes(f.findIndex(l)-1);this.viewport.firePropertyChange("alignment",null,this.viewport.getAlignment().getSequences())});d(c$,"findMenuItem_actionPerformed",function(){new jalview.appletgui.Finder(this.alignPanel)});d(c$,"newView",function(a){var b;b=this.viewport.hasHiddenRows()?new jalview.datamodel.Alignment(this.viewport.getAlignment().getHiddenSequences().getFullAlignment().getSequencesArray()):new jalview.datamodel.Alignment(this.viewport.getAlignment().getSequencesArray());
610 if(null!=this.viewport.getAlignment().getAlignmentAnnotation())for(var c=0;c<this.viewport.getAlignment().getAlignmentAnnotation().length;c++)this.viewport.getAlignment().getAlignmentAnnotation()[c].autoCalculated||b.addAnnotation(this.viewport.getAlignment().getAlignmentAnnotation()[c]);b=new jalview.appletgui.AlignFrame(b,this.viewport.applet,"",!1);b.viewport.setSequenceSetId(this.alignPanel.av.getSequenceSetId());jalview.appletgui.PaintRefresher.Register(this.alignPanel,this.alignPanel.av.getSequenceSetId());
611 jalview.appletgui.PaintRefresher.Register(b.alignPanel,b.alignPanel.av.getSequenceSetId());jalview.appletgui.PaintRefresher.Register(b.alignPanel.idPanel.idCanvas,b.alignPanel.av.getSequenceSetId());jalview.appletgui.PaintRefresher.Register(b.alignPanel.seqPanel.seqCanvas,b.alignPanel.av.getSequenceSetId());for(var f=jalview.appletgui.PaintRefresher.components.get(this.viewport.getSequenceSetId()),l=-1,c=0;c<f.size();c++)v(f.elementAt(c),jalview.appletgui.AlignmentPanel)&&l++;c=String.instantialize(this.getTitle());
612 null!=a?c=a+" ( "+c+")":(-1<c.indexOf("(View")&&(c=c.substring(0,c.indexOf("(View"))),c+="(View "+l+")");b.setTitle(c.toString());b.viewport.setHistoryList(this.viewport.getHistoryList());b.viewport.setRedoList(this.viewport.getRedoList());return b},"~S");d(c$,"getFeatureGroups",function(){var a=null;return null!=this.alignPanel&&null!=(a=this.alignPanel.getFeatureRenderer())?(a=a.getFeatureGroups(),a.toArray(Array(a.size()))):null});d(c$,"getFeatureGroupsOfState",function(a){var b=null;return null!=
613 this.alignPanel&&null!=(b=this.alignPanel.getFeatureRenderer())?(a=b.getGroups(a),a.toArray(Array(a.size()))):null},"~B");d(c$,"setFeatureGroupState",function(a,b){var c=null;this.sequenceFeatures.setState(!0);this.viewport.setShowSequenceFeatures(!0);if(null!=this.alignPanel&&null!=(c=this.alignPanel.getFeatureRenderer()))c.setGroupVisibility(java.util.Arrays.asList(a),b),this.alignPanel.seqPanel.seqCanvas.repaint(),null!=this.alignPanel.overviewPanel&&this.alignPanel.overviewPanel.updateOverviewImage()},
614 "~A,~B");d(c$,"seqLimits_itemStateChanged",function(){this.viewport.setShowJVSuffix(this.seqLimits.getState());this.alignPanel.fontChanged();this.alignPanel.paintAlignment(!0)});d(c$,"colourTextMenuItem_actionPerformed",function(){this.viewport.setColourText(this.colourTextMenuItem.getState());this.alignPanel.paintAlignment(!0)});d(c$,"displayNonconservedMenuItem_actionPerformed",function(){this.viewport.setShowUnconserved(this.displayNonconservedMenuItem.getState());this.alignPanel.paintAlignment(!0)});
615 d(c$,"wrapMenuItem_actionPerformed",function(){this.viewport.setWrapAlignment(this.wrapMenuItem.getState());this.alignPanel.setWrapAlignment(this.wrapMenuItem.getState());this.scaleAbove.setEnabled(this.wrapMenuItem.getState());this.scaleLeft.setEnabled(this.wrapMenuItem.getState());this.scaleRight.setEnabled(this.wrapMenuItem.getState());this.alignPanel.paintAlignment(!0)});d(c$,"overviewMenuItem_actionPerformed",function(){if(null==this.alignPanel.overviewPanel){var a=new awt2swing.Frame,b=new jalview.appletgui.OverviewPanel(this.alignPanel);
616 a.add(b);jalview.bin.JalviewLite.addFrame(a,jalview.util.MessageManager.formatMessage("label.overview_params",E(-1,[this.getTitle()])),b.getPreferredSize().width,b.getPreferredSize().height+50);a.pack();var c=this.alignPanel;a.addWindowListener((H("jalview.appletgui.AlignFrame$1")?0:jalview.appletgui.AlignFrame.$AlignFrame$1$(),C(jalview.appletgui.AlignFrame$1,this,T("ap",c))));this.alignPanel.setOverviewPanel(b)}});e(c$,"changeColour",function(a){null!=a&&(this.viewport.getAbovePIDThreshold()&&this.viewport.setThreshold(jalview.appletgui.SliderPanel.setPIDSliderSource(this.alignPanel,
617 a,"Background")),this.viewport.getConservationSelected()?(a.setConservationApplied(!0),this.viewport.setIncrement(jalview.appletgui.SliderPanel.setConservationSlider(this.alignPanel,a,"Background"))):a.setConservationApplied(!1));this.viewport.setGlobalColourScheme(a);null!=this.alignPanel.getOverviewPanel()&&this.alignPanel.getOverviewPanel().updateOverviewImage();jalview.structure.StructureSelectionManager.getStructureSelectionManager(this.viewport.applet).sequenceColoursChanged(this.alignPanel);
618 this.alignPanel.paintAlignment(!0)},"jalview.schemes.ColourSchemeI");d(c$,"modifyPID_actionPerformed",function(){this.viewport.getAbovePIDThreshold()&&null!=this.viewport.getGlobalColourScheme()&&(jalview.appletgui.SliderPanel.setPIDSliderSource(this.alignPanel,this.viewport.getGlobalColourScheme(),"Background"),jalview.appletgui.SliderPanel.showPIDSlider())});d(c$,"modifyConservation_actionPerformed",function(){this.viewport.getConservationSelected()&&null!=this.viewport.getGlobalColourScheme()&&
619 (jalview.appletgui.SliderPanel.setConservationSlider(this.alignPanel,this.viewport.getGlobalColourScheme(),"Background"),jalview.appletgui.SliderPanel.showConservationSlider())});d(c$,"conservationMenuItem_actionPerformed",function(){this.viewport.setConservationSelected(this.conservationMenuItem.getState());this.viewport.setAbovePIDThreshold(!1);this.abovePIDThreshold.setState(!1);this.changeColour(this.viewport.getGlobalColourScheme());this.modifyConservation_actionPerformed()});d(c$,"abovePIDThreshold_actionPerformed",
620 function(){this.viewport.setAbovePIDThreshold(this.abovePIDThreshold.getState());this.conservationMenuItem.setState(!1);this.viewport.setConservationSelected(!1);this.changeColour(this.viewport.getGlobalColourScheme());this.modifyPID_actionPerformed()});d(c$,"sortPairwiseMenuItem_actionPerformed",function(){var a=this.viewport.getAlignment().getSequencesArray();jalview.analysis.AlignmentSorter.sortByPID(this.viewport.getAlignment(),this.viewport.getAlignment().getSequenceAt(0),null);this.addHistoryItem(new jalview.commands.OrderCommand("Pairwise Sort",
621 a,this.viewport.getAlignment()));this.alignPanel.paintAlignment(!0)});d(c$,"sortIDMenuItem_actionPerformed",function(){var a=this.viewport.getAlignment().getSequencesArray();jalview.analysis.AlignmentSorter.sortByID(this.viewport.getAlignment());this.addHistoryItem(new jalview.commands.OrderCommand("ID Sort",a,this.viewport.getAlignment()));this.alignPanel.paintAlignment(!0)});d(c$,"sortLengthMenuItem_actionPerformed",function(){var a=this.viewport.getAlignment().getSequencesArray();jalview.analysis.AlignmentSorter.sortByLength(this.viewport.getAlignment());
622 this.addHistoryItem(new jalview.commands.OrderCommand("Length Sort",a,this.viewport.getAlignment()));this.alignPanel.paintAlignment(!0)});d(c$,"sortGroupMenuItem_actionPerformed",function(){var a=this.viewport.getAlignment().getSequencesArray();jalview.analysis.AlignmentSorter.sortByGroup(this.viewport.getAlignment());this.addHistoryItem(new jalview.commands.OrderCommand("Group Sort",a,this.viewport.getAlignment()));this.alignPanel.paintAlignment(!0)});d(c$,"removeRedundancyMenuItem_actionPerformed",
623 function(){new jalview.appletgui.RedundancyPanel(this.alignPanel)});d(c$,"pairwiseAlignmentMenuItem_actionPerformed",function(){if(null!=this.viewport.getSelectionGroup()&&1<this.viewport.getSelectionGroup().getSize()){var a=new awt2swing.Frame;a.add(new jalview.appletgui.PairwiseAlignPanel(this.alignPanel));jalview.bin.JalviewLite.addFrame(a,jalview.util.MessageManager.getString("action.pairwise_alignment"),600,500)}});d(c$,"PCAMenuItem_actionPerformed",function(){if(!this.viewport.getAlignment().isAligned(!1)){for(var a,
624 b=this.viewport.getAlignment().getWidth(),c=0;c<this.viewport.getAlignment().getSequences().size();c++)a=this.viewport.getAlignment().getSequenceAt(c),a.getLength()<b&&a.insertCharAt(b-1,this.viewport.getGapCharacter());this.alignPanel.paintAlignment(!0)}if(!(null!=this.viewport.getSelectionGroup()&&4>this.viewport.getSelectionGroup().getSize()&&0<this.viewport.getSelectionGroup().getSize()||4>this.viewport.getAlignment().getHeight()))try{new jalview.appletgui.PCAPanel(this.viewport)}catch(f){if(!y(f,
625 OutOfMemoryError))throw f;}});d(c$,"averageDistanceTreeMenuItem_actionPerformed",function(){this.NewTreePanel("AV","PID","Average distance tree using PID")});d(c$,"neighbourTreeMenuItem_actionPerformed",function(){this.NewTreePanel("NJ","PID","Neighbour joining tree using PID")});d(c$,"njTreeBlosumMenuItem_actionPerformed",function(){this.NewTreePanel("NJ","BL","Neighbour joining tree using BLOSUM62")});d(c$,"avTreeBlosumMenuItem_actionPerformed",function(){this.NewTreePanel("AV","BL","Average distance tree using BLOSUM62")});
626 d(c$,"NewTreePanel",function(a,b,c){if(!this.viewport.getAlignment().isAligned(!1)){for(var f,l=this.viewport.getAlignment().getWidth(),d=0;d<this.viewport.getAlignment().getSequences().size();d++)f=this.viewport.getAlignment().getSequenceAt(d),f.getLength()<l&&f.insertCharAt(l-1,this.viewport.getGapCharacter());this.alignPanel.paintAlignment(!0)}if(null!=this.viewport.getSelectionGroup()&&1<this.viewport.getSelectionGroup().getSize()||1<this.viewport.getAlignment().getHeight())a=new jalview.appletgui.TreePanel(this.alignPanel,
627 a,b),this.addTreeMenuItem(a,c),jalview.bin.JalviewLite.addFrame(a,c,600,500)},"~S,~S,~S");d(c$,"loadTree_actionPerformed",function(){var a=new jalview.appletgui.CutAndPasteTransfer(!0,this);a.setText(jalview.util.MessageManager.getString("label.paste_newick_tree_file"));a.setTreeImport();var b=new awt2swing.Frame;b.add(a);jalview.bin.JalviewLite.addFrame(b,jalview.util.MessageManager.getString("label.paste_newick_file"),400,300)});d(c$,"loadTree",function(a,b){var c=new jalview.appletgui.TreePanel(this.alignPanel,
628 b,jalview.util.MessageManager.getString("label.load_tree_from_file"),a);jalview.bin.JalviewLite.addFrame(c,b,600,500);this.addTreeMenuItem(c,b)},"jalview.io.NewickFile,~S");d(c$,"sortByTree",function(a,b){var c=this.viewport.getAlignment().getSequencesArray();jalview.analysis.AlignmentSorter.sortByTree(this.viewport.getAlignment(),a.getTree());this.addHistoryItem(new jalview.commands.OrderCommand(jalview.util.MessageManager.formatMessage("label.order_by_params",E(-1,[b])),c,this.viewport.getAlignment()));
629 this.alignPanel.paintAlignment(!0)},"jalview.appletgui.TreePanel,~S");d(c$,"addTreeMenuItem",function(a,b){var c=new awt2swing.MenuItem(b);this.sortByTreeMenu.add(c);c.addActionListener((H("jalview.appletgui.AlignFrame$2")?0:jalview.appletgui.AlignFrame.$AlignFrame$2$(),C(jalview.appletgui.AlignFrame$2,this,T("treePanel",a,"title",b))));a.addWindowListener((H("jalview.appletgui.AlignFrame$3")?0:jalview.appletgui.AlignFrame.$AlignFrame$3$(),C(jalview.appletgui.AlignFrame$3,this,T("treePanel",a,"title",
630 b,"item",c))))},"jalview.appletgui.TreePanel,~S");d(c$,"sortBy",function(a,b){var c=this.viewport.getAlignment().getSequencesArray();(this.viewport.applet,jalview.bin.JalviewLite).debug&&System.err.println("Sorting "+a.getOrder().size()+" in alignment '"+this.getTitle()+"'");jalview.analysis.AlignmentSorter.sortBy(this.viewport.getAlignment(),a);null!=b&&this.addHistoryItem(new jalview.commands.OrderCommand(b,c,this.viewport.getAlignment()));this.alignPanel.paintAlignment(!0);return!0},"jalview.datamodel.AlignmentOrder,~S");
631 d(c$,"documentation_actionPerformed",function(){this.alignPanel.av.applet.openJalviewHelpUrl()});d(c$,"about_actionPerformed",function(){H("jalview.appletgui.AlignFrame$1AboutPanel")||jalview.appletgui.AlignFrame.$AlignFrame$1AboutPanel$();var a=new awt2swing.Frame;a.add(C(jalview.appletgui.AlignFrame$1AboutPanel,this,null,jalview.bin.JalviewLite.getVersion(),jalview.bin.JalviewLite.getBuildDate()));jalview.bin.JalviewLite.addFrame(a,jalview.util.MessageManager.getString("label.jalview"),580,220)});
632 d(c$,"showURL",function(a,b){null==this.viewport.applet?System.out.println("Not running as applet - no browser available."):this.viewport.applet.showURL(a,b)},"~S,~S");d(c$,"jbInit",function(){this.setMenuBar(this.alignFrameMenuBar);this.inputText.setLabel(jalview.util.MessageManager.getString("label.input_from_textbox"));this.inputText.addActionListener(this);for(var a=new awt2swing.Menu(jalview.util.MessageManager.getString("label.out_to_textbox")),b=0;b<jalview.io.AppletFormatAdapter.WRITEABLE_FORMATS.length;b++){var c=
633 new awt2swing.MenuItem(jalview.io.AppletFormatAdapter.WRITEABLE_FORMATS[b]);c.addActionListener((H("jalview.appletgui.AlignFrame$4")?0:jalview.appletgui.AlignFrame.$AlignFrame$4$(),C(jalview.appletgui.AlignFrame$4,this,null)));a.add(c)}this.closeMenuItem.addActionListener(this);this.loadApplication.addActionListener(this);this.$loadTree.addActionListener(this);this.$loadAnnotations.addActionListener(this);this.$outputFeatures.addActionListener(this);this.$outputAnnotations.addActionListener(this);
634 this.undoMenuItem.setEnabled(!1);this.undoMenuItem.setLabel(jalview.util.MessageManager.getString("action.undo"));this.undoMenuItem.addActionListener(this);this.redoMenuItem.setEnabled(!1);this.redoMenuItem.setLabel(jalview.util.MessageManager.getString("action.redo"));this.redoMenuItem.addActionListener(this);this.copy.setLabel(jalview.util.MessageManager.getString("action.copy"));this.copy.addActionListener(this);this.cut.setLabel(jalview.util.MessageManager.getString("action.cut"));this.cut.addActionListener(this);
635 this.$delete.setLabel(jalview.util.MessageManager.getString("action.delete"));this.$delete.addActionListener(this);this.pasteMenu.setLabel(jalview.util.MessageManager.getString("action.paste"));this.pasteNew.setLabel(jalview.util.MessageManager.getString("label.to_new_alignment"));this.pasteNew.addActionListener(this);this.pasteThis.setLabel(jalview.util.MessageManager.getString("label.to_this_alignment"));this.pasteThis.addActionListener(this);this.remove2LeftMenuItem.setLabel(jalview.util.MessageManager.getString("action.remove_left"));
636 this.remove2LeftMenuItem.addActionListener(this);this.remove2RightMenuItem.setLabel(jalview.util.MessageManager.getString("action.remove_right"));this.remove2RightMenuItem.addActionListener(this);this.removeGappedColumnMenuItem.setLabel(jalview.util.MessageManager.getString("action.remove_empty_columns"));this.removeGappedColumnMenuItem.addActionListener(this);this.removeAllGapsMenuItem.setLabel(jalview.util.MessageManager.getString("action.remove_all_gaps"));this.removeAllGapsMenuItem.addActionListener(this);
637 this.removeRedundancyMenuItem.setLabel(jalview.util.MessageManager.getString("action.remove_redundancy").concat("..."));this.removeRedundancyMenuItem.addActionListener(this);this.findMenuItem.setLabel(jalview.util.MessageManager.getString("action.find"));this.findMenuItem.addActionListener(this);this.selectAllSequenceMenuItem.addActionListener(this);this.deselectAllSequenceMenuItem.addActionListener(this);this.invertSequenceMenuItem.setLabel(jalview.util.MessageManager.getString("action.invert_sequence_selection"));
638 this.invertSequenceMenuItem.addActionListener(this);this.invertColSel.setLabel(jalview.util.MessageManager.getString("action.invert_column_selection"));this.invertColSel.addActionListener(this);this.deleteGroups.setLabel(jalview.util.MessageManager.getString("action.undefine_groups"));this.deleteGroups.addActionListener(this);this.grpsFromSelection.setLabel(jalview.util.MessageManager.getString("action.make_groups_selection"));this.grpsFromSelection.addActionListener(this);this.createGroup.setLabel(jalview.util.MessageManager.getString("action.create_group"));
639 this.unGroup.setLabel(jalview.util.MessageManager.getString("action.remove_group"));this.annotationColumnSelection.setLabel("Select by Annotation");this.annotationColumnSelection.addActionListener(this);this.$newView.setLabel(jalview.util.MessageManager.getString("action.new_view"));this.$newView.addActionListener(this);b=new awt2swing.Menu(jalview.util.MessageManager.getString("action.show"));this.showColumns.setLabel(jalview.util.MessageManager.getString("label.all_columns"));this.showSeqs.setLabel(jalview.util.MessageManager.getString("label.all_sequences"));
640 c=new awt2swing.Menu(jalview.util.MessageManager.getString("action.hide"));this.hideColumns.setLabel(jalview.util.MessageManager.getString("label.selected_columns"));this.hideSequences.setLabel(jalview.util.MessageManager.getString("label.selected_sequences"));this.hideAllButSelection.setLabel(jalview.util.MessageManager.getString("label.all_but_selected_region"));this.hideAllSelection.setLabel(jalview.util.MessageManager.getString("label.selected_region"));this.showAllHidden.setLabel(jalview.util.MessageManager.getString("label.all_sequences_columns"));
641 this.showColumns.addActionListener(this);this.showSeqs.addActionListener(this);this.hideColumns.addActionListener(this);this.hideSequences.addActionListener(this);this.hideAllButSelection.addActionListener(this);this.hideAllSelection.addActionListener(this);this.showAllHidden.addActionListener(this);this.featureSettings.setLabel(jalview.util.MessageManager.getString("label.feature_settings"));this.featureSettings.addActionListener(this);this.sequenceFeatures.setLabel(jalview.util.MessageManager.getString("label.show_sequence_features"));
642 this.sequenceFeatures.addItemListener(this);this.sequenceFeatures.setState(!1);this.followMouseOverFlag.setLabel(jalview.util.MessageManager.getString("label.automatic_scrolling"));this.followMouseOverFlag.addItemListener(this);this.alProperties.addActionListener(this);this.overviewMenuItem.setLabel(jalview.util.MessageManager.getString("label.overview_window"));this.overviewMenuItem.addActionListener(this);this.annotationPanelMenuItem.setLabel(jalview.util.MessageManager.getString("label.show_annotations"));
643 this.annotationPanelMenuItem.addItemListener(this);this.showGroupConsensus.setLabel(jalview.util.MessageManager.getString("label.group_consensus"));this.showGroupConservation.setLabel(jalview.util.MessageManager.getString("label.group_conservation"));this.showConsensusHistogram.setLabel(jalview.util.MessageManager.getString("label.show_consensus_histogram"));this.showSequenceLogo.setLabel(jalview.util.MessageManager.getString("label.show_consensus_logo"));this.normSequenceLogo.setLabel(jalview.util.MessageManager.getString("label.norm_consensus_logo"));
644 this.applyAutoAnnotationSettings.setLabel(jalview.util.MessageManager.getString("label.apply_all_groups"));this.applyAutoAnnotationSettings.setState(!0);var f=new awt2swing.Menu(jalview.util.MessageManager.getString("label.autocalculated_annotation"));this.showGroupConsensus.addItemListener(this);this.showGroupConservation.addItemListener(this);this.showConsensusHistogram.addItemListener(this);this.showSequenceLogo.addItemListener(this);this.normSequenceLogo.addItemListener(this);this.applyAutoAnnotationSettings.addItemListener(this);
645 this.showAlignmentAnnotations=new awt2swing.CheckboxMenuItem(jalview.util.MessageManager.getString("label.show_all_al_annotations"));this.showSequenceAnnotations=new awt2swing.CheckboxMenuItem(jalview.util.MessageManager.getString("label.show_all_seq_annotations"));this.sortAnnBySequence=new awt2swing.CheckboxMenuItem(jalview.util.MessageManager.getString("label.sort_annotations_by_sequence"));this.sortAnnByLabel=new awt2swing.CheckboxMenuItem(jalview.util.MessageManager.getString("label.sort_annotations_by_label"));
646 this.showAutoFirst=new awt2swing.CheckboxMenuItem(jalview.util.MessageManager.getString("label.show_first"));this.showAutoLast=new awt2swing.CheckboxMenuItem(jalview.util.MessageManager.getString("label.show_last"));this.showAlignmentAnnotations.addItemListener(this);this.showSequenceAnnotations.addItemListener(this);this.sortAnnBySequence.addItemListener(this);this.sortAnnByLabel.addItemListener(this);this.showAutoFirst.addItemListener(this);this.showAutoLast.addItemListener(this);this.$font.setLabel(jalview.util.MessageManager.getString("action.font"));
647 this.$font.addActionListener(this);this.scaleAbove.setLabel(jalview.util.MessageManager.getString("action.scale_above"));this.scaleAbove.setState(!0);this.scaleAbove.setEnabled(!1);this.scaleAbove.addItemListener(this);this.scaleLeft.setEnabled(!1);this.scaleLeft.setState(!0);this.scaleLeft.setLabel(jalview.util.MessageManager.getString("action.scale_left"));this.scaleLeft.addItemListener(this);this.scaleRight.setEnabled(!1);this.scaleRight.setState(!0);this.scaleRight.setLabel(jalview.util.MessageManager.getString("action.scale_right"));
648 this.scaleRight.addItemListener(this);this.viewBoxesMenuItem.setLabel(jalview.util.MessageManager.getString("action.boxes"));this.viewBoxesMenuItem.setState(!0);this.viewBoxesMenuItem.addItemListener(this);this.viewTextMenuItem.setLabel(jalview.util.MessageManager.getString("action.text"));this.viewTextMenuItem.setState(!0);this.viewTextMenuItem.addItemListener(this);this.colourTextMenuItem.setLabel(jalview.util.MessageManager.getString("label.colour_text"));this.colourTextMenuItem.addItemListener(this);
649 this.displayNonconservedMenuItem.setLabel(jalview.util.MessageManager.getString("label.show_non_conversed"));this.displayNonconservedMenuItem.addItemListener(this);this.wrapMenuItem.setLabel(jalview.util.MessageManager.getString("action.wrap"));this.wrapMenuItem.addItemListener(this);this.renderGapsMenuItem.setLabel(jalview.util.MessageManager.getString("action.show_gaps"));this.renderGapsMenuItem.setState(!0);this.renderGapsMenuItem.addItemListener(this);this.centreColumnLabelFlag.setLabel(jalview.util.MessageManager.getString("label.centre_column_labels"));
650 this.centreColumnLabelFlag.addItemListener(this);this.seqLimits.setState(!0);this.seqLimits.setLabel(jalview.util.MessageManager.getString("label.show_sequence_limits"));this.seqLimits.addItemListener(this);this.applyToAllGroups.setLabel(jalview.util.MessageManager.getString("label.apply_colour_to_all_groups"));this.applyToAllGroups.setState(!0);this.applyToAllGroups.addItemListener(this);this.clustalColour.setLabel(jalview.util.MessageManager.getString("label.clustalx"));this.clustalColour.addActionListener(this);
651 this.zappoColour.setLabel(jalview.util.MessageManager.getString("label.zappo"));this.zappoColour.addActionListener(this);this.taylorColour.setLabel(jalview.util.MessageManager.getString("label.taylor"));this.taylorColour.addActionListener(this);this.hydrophobicityColour.setLabel(jalview.util.MessageManager.getString("label.hydrophobicity"));this.hydrophobicityColour.addActionListener(this);this.helixColour.setLabel(jalview.util.MessageManager.getString("label.helix_propensity"));this.helixColour.addActionListener(this);
652 this.strandColour.setLabel(jalview.util.MessageManager.getString("label.strand_propensity"));this.strandColour.addActionListener(this);this.turnColour.setLabel(jalview.util.MessageManager.getString("label.turn_propensity"));this.turnColour.addActionListener(this);this.buriedColour.setLabel(jalview.util.MessageManager.getString("label.buried_index"));this.buriedColour.addActionListener(this);this.purinePyrimidineColour.setLabel(jalview.util.MessageManager.getString("label.purine_pyrimidine"));this.purinePyrimidineColour.addActionListener(this);
653 this.RNAInteractionColour.setLabel(jalview.util.MessageManager.getString("label.rna_interaction"));this.RNAInteractionColour.addActionListener(this);this.RNAHelixColour.setLabel(jalview.util.MessageManager.getString("action.by_rna_helixes"));this.RNAHelixColour.addActionListener(this);this.userDefinedColour.setLabel(jalview.util.MessageManager.getString("action.user_defined"));this.userDefinedColour.addActionListener(this);this.PIDColour.setLabel(jalview.util.MessageManager.getString("label.percentage_identity"));
654 this.PIDColour.addActionListener(this);this.BLOSUM62Colour.setLabel(jalview.util.MessageManager.getString("label.blosum62_score"));this.BLOSUM62Colour.addActionListener(this);this.tcoffeeColour.setLabel(jalview.util.MessageManager.getString("label.tcoffee_scores"));this.tcoffeeColour.setEnabled(!1);this.tcoffeeColour.addActionListener(this);this.conservationMenuItem.setLabel(jalview.util.MessageManager.getString("action.by_conservation"));this.conservationMenuItem.addItemListener(this);this.noColourmenuItem.setLabel(jalview.util.MessageManager.getString("label.none"));
655 this.noColourmenuItem.addActionListener(this);this.abovePIDThreshold.setLabel(jalview.util.MessageManager.getString("label.above_identity_threshold"));this.abovePIDThreshold.addItemListener(this);this.nucleotideColour.setLabel(jalview.util.MessageManager.getString("label.nucleotide"));this.nucleotideColour.addActionListener(this);this.modifyPID.setLabel(jalview.util.MessageManager.getString("label.modify_identity_thereshold"));this.modifyPID.addActionListener(this);this.modifyConservation.setLabel(jalview.util.MessageManager.getString("label.modify_conservation_thereshold"));
656 this.modifyConservation.addActionListener(this);this.annotationColour.setLabel(jalview.util.MessageManager.getString("action.by_annotation"));this.annotationColour.addActionListener(this);this.sortPairwiseMenuItem.setLabel(jalview.util.MessageManager.getString("action.by_pairwise_id"));this.sortPairwiseMenuItem.addActionListener(this);this.sortIDMenuItem.setLabel(jalview.util.MessageManager.getString("action.by_id"));this.sortIDMenuItem.addActionListener(this);this.sortLengthMenuItem.setLabel(jalview.util.MessageManager.getString("action.by_length"));
657 this.sortLengthMenuItem.addActionListener(this);this.sortGroupMenuItem.setLabel(jalview.util.MessageManager.getString("action.by_group"));this.sortGroupMenuItem.addActionListener(this);this.pairwiseAlignmentMenuItem.setLabel(jalview.util.MessageManager.getString("action.pairwise_alignment"));this.pairwiseAlignmentMenuItem.addActionListener(this);this.PCAMenuItem.setLabel(jalview.util.MessageManager.getString("label.principal_component_analysis"));this.PCAMenuItem.addActionListener(this);this.autoCalculate=
658 new awt2swing.CheckboxMenuItem(jalview.util.MessageManager.getString("label.autocalculate_consensus"),!0);this.averageDistanceTreeMenuItem.setLabel(jalview.util.MessageManager.getString("label.average_distance_identity"));this.averageDistanceTreeMenuItem.addActionListener(this);this.neighbourTreeMenuItem.setLabel(jalview.util.MessageManager.getString("label.neighbour_joining_identity"));this.neighbourTreeMenuItem.addActionListener(this);this.avDistanceTreeBlosumMenuItem.setLabel(jalview.util.MessageManager.getString("label.average_distance_bloslum62"));
659 this.avDistanceTreeBlosumMenuItem.addActionListener(this);this.njTreeBlosumMenuItem.setLabel(jalview.util.MessageManager.getString("label.neighbour_blosum62"));this.njTreeBlosumMenuItem.addActionListener(this);this.sortByTreeMenu.setLabel(jalview.util.MessageManager.getString("action.by_tree_order"));var l=new awt2swing.Menu(jalview.util.MessageManager.getString("action.sort")),d=new awt2swing.Menu(jalview.util.MessageManager.getString("action.calculate_tree"));this.autoCalculate.addItemListener(this);
660 this.$sortByTree.addItemListener(this);var g=new awt2swing.Menu(jalview.util.MessageManager.getString("action.help"));this.documentation.setLabel(jalview.util.MessageManager.getString("label.documentation"));this.documentation.addActionListener(this);this.about.setLabel(jalview.util.MessageManager.getString("label.about"));this.about.addActionListener(this);this.alignFrameMenuBar.add(this.fileMenu);var h=new awt2swing.Menu(jalview.util.MessageManager.getString("action.edit"));this.alignFrameMenuBar.add(h);
661 var e=new awt2swing.Menu(jalview.util.MessageManager.getString("action.select"));this.alignFrameMenuBar.add(e);var n=new awt2swing.Menu(jalview.util.MessageManager.getString("action.view"));this.alignFrameMenuBar.add(n);var x=new awt2swing.Menu(jalview.util.MessageManager.getString("action.annotations"));this.alignFrameMenuBar.add(x);var u=new awt2swing.Menu(jalview.util.MessageManager.getString("action.format"));this.alignFrameMenuBar.add(u);var D=new awt2swing.Menu(jalview.util.MessageManager.getString("action.colour"));
662 this.alignFrameMenuBar.add(D);var m=new awt2swing.Menu(jalview.util.MessageManager.getString("action.calculate"));this.alignFrameMenuBar.add(m);this.alignFrameMenuBar.add(g);this.fileMenu.add(this.inputText);this.fileMenu.add(this.$loadTree);this.fileMenu.add(this.$loadAnnotations);this.fileMenu.addSeparator();this.fileMenu.add(a);this.fileMenu.add(this.$outputFeatures);this.fileMenu.add(this.$outputAnnotations);null!=this.jalviewServletURL&&this.fileMenu.add(this.loadApplication);this.fileMenu.addSeparator();
663 this.fileMenu.add(this.closeMenuItem);h.add(this.undoMenuItem);h.add(this.redoMenuItem);h.add(this.cut);h.add(this.copy);this.pasteMenu.add(this.pasteNew);this.pasteMenu.add(this.pasteThis);h.add(this.pasteMenu);h.add(this.$delete);h.addSeparator();h.add(this.remove2LeftMenuItem);h.add(this.remove2RightMenuItem);h.add(this.removeGappedColumnMenuItem);h.add(this.removeAllGapsMenuItem);h.add(this.removeRedundancyMenuItem);e.add(this.findMenuItem);e.addSeparator();e.add(this.selectAllSequenceMenuItem);
664 e.add(this.deselectAllSequenceMenuItem);e.add(this.invertSequenceMenuItem);e.add(this.invertColSel);e.add(this.createGroup);e.add(this.unGroup);e.add(this.grpsFromSelection);e.add(this.deleteGroups);e.add(this.annotationColumnSelection);n.add(this.$newView);n.addSeparator();b.add(this.showColumns);b.add(this.showSeqs);b.add(this.showAllHidden);n.add(b);c.add(this.hideColumns);c.add(this.hideSequences);c.add(this.hideAllSelection);c.add(this.hideAllButSelection);n.add(c);n.addSeparator();n.add(this.followMouseOverFlag);
665 n.addSeparator();n.add(this.sequenceFeatures);n.add(this.featureSettings);n.addSeparator();n.add(this.alProperties);n.addSeparator();n.add(this.overviewMenuItem);x.add(this.annotationPanelMenuItem);x.addSeparator();x.add(this.showAlignmentAnnotations);x.add(this.showSequenceAnnotations);x.add(this.sortAnnBySequence);x.add(this.sortAnnByLabel);x.addSeparator();f.add(this.showAutoFirst);f.add(this.showAutoLast);f.addSeparator();f.add(this.applyAutoAnnotationSettings);f.add(this.showConsensusHistogram);
666 f.add(this.showSequenceLogo);f.add(this.normSequenceLogo);f.addSeparator();f.add(this.showGroupConservation);f.add(this.showGroupConsensus);x.add(f);u.add(this.$font);u.add(this.seqLimits);u.add(this.wrapMenuItem);u.add(this.scaleAbove);u.add(this.scaleLeft);u.add(this.scaleRight);u.add(this.viewBoxesMenuItem);u.add(this.viewTextMenuItem);u.add(this.colourTextMenuItem);u.add(this.displayNonconservedMenuItem);u.add(this.renderGapsMenuItem);u.add(this.centreColumnLabelFlag);D.add(this.applyToAllGroups);
667 D.addSeparator();D.add(this.noColourmenuItem);D.add(this.clustalColour);D.add(this.BLOSUM62Colour);D.add(this.PIDColour);D.add(this.zappoColour);D.add(this.taylorColour);D.add(this.hydrophobicityColour);D.add(this.helixColour);D.add(this.strandColour);D.add(this.turnColour);D.add(this.buriedColour);D.add(this.nucleotideColour);D.add(this.purinePyrimidineColour);D.add(this.tcoffeeColour);D.add(this.userDefinedColour);D.addSeparator();D.add(this.conservationMenuItem);D.add(this.modifyConservation);
668 D.add(this.abovePIDThreshold);D.add(this.modifyPID);D.add(this.annotationColour);D.add(this.RNAHelixColour);l.add(this.sortIDMenuItem);l.add(this.sortLengthMenuItem);l.add(this.sortByTreeMenu);l.add(this.sortGroupMenuItem);l.add(this.sortPairwiseMenuItem);m.add(l);d.add(this.averageDistanceTreeMenuItem);d.add(this.neighbourTreeMenuItem);d.add(this.avDistanceTreeBlosumMenuItem);d.add(this.njTreeBlosumMenuItem);m.add(d);m.addSeparator();m.add(this.pairwiseAlignmentMenuItem);m.add(this.PCAMenuItem);
669 m.add(this.autoCalculate);m.add(this.$sortByTree);g.add(this.documentation);g.add(this.about);this.statusBar.setBackground(java.awt.Color.white);this.statusBar.setFont(new java.awt.Font("Verdana",0,11));this.setStatus(jalview.util.MessageManager.getString("label.status_bar"));this.add(this.statusBar,"South")});e(c$,"setStatus",function(a){this.statusBar.setText(a)},"~S");d(c$,"createAlignFrameWindow",function(a){a?this.embedAlignFrameInApplet(this.viewport.applet):(this.embedMenuIfNeeded(this.alignPanel)&&
670 this.alignPanel.setSize(this.getSize().width,this.getSize().height-this.statusBar.getHeight()),this.add(this.statusBar,"South"),this.add(this.alignPanel,"Center"),jalview.bin.JalviewLite.addFrame(this,this.getTitle(),this.frameWidth,this.frameHeight))},"~B");d(c$,"embedAlignFrameInApplet",function(a){this.fileMenu.remove(this.closeMenuItem);this.fileMenu.remove(3);this.embeddedMenu=this.makeEmbeddedPopupMenu(this.alignFrameMenuBar,!1,!1);a.setLayout(new java.awt.BorderLayout);a.add(this.embeddedMenu,
671 "North");a.add(this.statusBar,"South");this.alignPanel.setSize(a.getSize().width,a.getSize().height-this.embeddedMenu.getHeight()-this.statusBar.getHeight());a.add(this.alignPanel,"Center");a.addFocusListener((H("jalview.appletgui.AlignFrame$5")?0:jalview.appletgui.AlignFrame.$AlignFrame$5$(),C(jalview.appletgui.AlignFrame$5,this,T("theApplet",a,"me",this))));a.validate()},"jalview.bin.JalviewLite");d(c$,"addStructureViewInstance",function(){return null},"~O,~A");d(c$,"addPdbFile",function(a,b,c){a=
672 this.viewport.getAlignment().findName(a);var f=!1;if(null!=a){var l=a.getPDBId(),d=null;if(null!=l&&0<l.size())for(var g=0,h=l.size();g<h;g++)d=l.elementAt(g),!d.getId().equals(b)&&!d.getFile().equals(c)&&(d=null);null==d&&(d=new jalview.datamodel.PDBEntry,d.setId(b),d.setFile(c),f=!0);b=jalview.io.AppletFormatAdapter.resolveProtocol(c,"PDB");if(null==b)return!1;f&&(null==d.getProperty()&&d.setProperty(new java.util.Hashtable),d.getProperty().put("protocol",b),a.addPDBId(d),this.alignPanel.getStructureSelectionManager().registerPDBEntry(d))}return!0},
673 "~S,~S,~S");d(c$,"cleanSeqChainArrays",function(a,b){if(null!=a){for(var c=new java.util.Vector,f=0;f<a.length;f++)null!=a[f]&&c.addElement(E(-1,[a[f],null!=b?b[f]:null]));a=Array(c.size());b=Array(c.size());for(var f=0,l=c.size();f<l;f++){var d=c.elementAt(f);a[f]=d[0];b[f]=d[1]}}return E(-1,[a,b])},"~A,~A");d(c$,"newStructureView",function(a,b,c,f,l){f=this.cleanSeqChainArrays(c,f);c=f[0];f=f[1];(null==c||0==c.length)&&System.err.println("JalviewLite.AlignFrame:newStructureView: No sequence to bind structure to.");
674 if(null==l||0==l.trim().length||l.equals("null"))if(l=b.getProperty().get("protocol"),null==l){System.err.println("Couldn't work out protocol to open structure: "+b.getId());return}if(a.useXtrnalSviewer)null==jalview.structure.StructureSelectionManager.getStructureSelectionManager(a).setMapping(c,f,b.getFile(),l)&&System.err.println("Failed to map "+b.getFile()+" ("+l+") to any sequences");else{if(a.isAlignPdbStructures()&&a.jmolAvailable){for(var d=null,g=a.getAppletWindow(jalview.appletgui.AppletJmol),
675 h=0,e=g.size();h<e;h++)if(a=g.elementAt(h),a.ap.alignFrame===this){d=a;break}null!=d&&System.err.println("Incremental adding and aligning structure to existing Jmol view not yet implemented.")}new jalview.appletgui.AppletJmol(b,c,f,this.alignPanel,l);jalview.bin.JalviewLite.lastFrameX+=40;jalview.bin.JalviewLite.lastFrameY+=40}},"jalview.bin.JalviewLite,jalview.datamodel.PDBEntry,~A,~A,~S");d(c$,"alignedStructureView",function(){System.err.println("Aligned Structure View: Not yet implemented.")},
676 "jalview.bin.JalviewLite,~A,~A,~A,~A");d(c$,"select",function(a,b){this.alignPanel.seqPanel.selection(a,b,null)},"jalview.datamodel.SequenceGroup,jalview.datamodel.ColumnSelection");d(c$,"scrollTo",function(a,b){this.alignPanel.seqPanel.scrollTo(a,b)},"~N,~N");d(c$,"scrollToRow",function(a){this.alignPanel.seqPanel.scrollToRow(a)},"~N");d(c$,"scrollToColumn",function(a){this.alignPanel.seqPanel.scrollToColumn(a)},"~N");d(c$,"getSequenceSetId",function(){return this.viewport.getSequenceSetId()});d(c$,
677 "loadScoreFile",function(a){var b=jalview.jsdev.GenericFileAdapter.getFile("TCoffeeScoreFile",[a,jalview.io.AppletFormatAdapter.checkProtocol(a)]);if(!b.isValid())return System.err.println("Problems parsing T-Coffee scores: "+b.getWarningMessage()),System.err.println("Origin was:\n"+a),!1;var c;null!=(c=this.viewport.getAlignment())&&(c.getHeight()!=b.getHeight()||c.getWidth()!=b.getWidth())&&System.err.println("The scores matrix does not match the alignment dimensions");if(b.annotateAlignment(this.alignPanel.getAlignment(),
678 !1))return this.alignPanel.fontChanged(),this.tcoffeeColour.setEnabled(!0),this.changeColour(new jalview.schemes.TCoffeeColourScheme(this.alignPanel.getAlignment())),!0;System.err.println("Problems resolving T-Coffee scores:");null!=b.getWarningMessage()&&System.err.println(b.getWarningMessage());return!1},"~S");d(c$,"getSplitFrame",function(){return this.splitFrame});d(c$,"setSplitFrame",function(a){this.splitFrame=a},"jalview.appletgui.SplitFrame");e(c$,"setShowSeqFeatures",function(a){this.viewport.setShowSequenceFeatures(a)},
679 "~B");e(c$,"setMenusForViewport",function(){});e(c$,"refreshFeatureUI",function(a){a&&(this.sequenceFeatures.setState(!0),this.alignPanel.av.setShowSequenceFeatures(!0))},"~B");e(c$,"getFeatureSettingsUI",function(){return this.alignPanel.av.featureSettings});c$.$AlignFrame$1$=function(){A(self.c$);c$=L(jalview.appletgui,"AlignFrame$1",java.awt.event.WindowAdapter);e(c$,"windowClosing",function(){null!=this.f$.ap&&this.f$.ap.setOverviewPanel(null)},"java.awt.event.WindowEvent");c$=z()};c$.$AlignFrame$2$=
680 function(){A(self.c$);c$=L(jalview.appletgui,"AlignFrame$2",null,java.awt.event.ActionListener);e(c$,"actionPerformed",function(){this.b$["jalview.appletgui.AlignFrame"].sortByTree(this.f$.treePanel,this.f$.title)},"java.awt.event.ActionEvent");c$=z()};c$.$AlignFrame$3$=function(){A(self.c$);c$=L(jalview.appletgui,"AlignFrame$3",java.awt.event.WindowAdapter);d(c$,"windowOpened",function(a){this.b$["jalview.appletgui.AlignFrame"].viewport.sortByTree&&this.b$["jalview.appletgui.AlignFrame"].sortByTree(this.f$.treePanel,
681 this.f$.title);K(this,jalview.appletgui.AlignFrame$3,"windowOpened",[a])},"java.awt.event.WindowEvent");e(c$,"windowClosing",function(){this.b$["jalview.appletgui.AlignFrame"].sortByTreeMenu.remove(this.f$.item)},"java.awt.event.WindowEvent");c$=z()};c$.$AlignFrame$1AboutPanel$=function(){A(self.c$);c$=s(function(){O(this,arguments);this.builddate=this.version=null;r(this,arguments)},jalview.appletgui,"AlignFrame$1AboutPanel",awt2swing.Canvas);m(c$,function(a,b){t(this,jalview.appletgui.AlignFrame$1AboutPanel,
682 []);this.version=a;this.builddate=b},"~S,~S");e(c$,"paintComponent",function(a){a.setColor(java.awt.Color.white);a.fillRect(0,0,this.getSize().width,this.getSize().height);a.setFont(new java.awt.Font("Helvetica",0,12));var b=a.getFontMetrics().getHeight(),c=5;a.setColor(java.awt.Color.black);a.setFont(new java.awt.Font("Helvetica",1,14));awt2swing.Util.drawString(a,jalview.util.MessageManager.formatMessage("label.jalviewLite_release",E(-1,[this.version])),7,c+=b);a.setFont(new java.awt.Font("Helvetica",
683 1,12));awt2swing.Util.drawString(a,jalview.util.MessageManager.formatMessage("label.jaview_build_date",E(-1,[this.builddate])),7,c+=b);a.setFont(new java.awt.Font("Helvetica",0,12));awt2swing.Util.drawString(a,jalview.util.MessageManager.getString("label.jalview_authors_1"),7,c+=1.5*b);awt2swing.Util.drawString(a,jalview.util.MessageManager.getString("label.jalview_authors_2"),57,c+=b+8);awt2swing.Util.drawString(a,jalview.util.MessageManager.getString("label.jalview_dev_managers"),7,c+=b);awt2swing.Util.drawString(a,
684 jalview.util.MessageManager.getString("label.jalview_distribution_lists"),7,c+=b);awt2swing.Util.drawString(a,jalview.util.MessageManager.getString("label.jalview_please_cite"),7,c+=b+8);awt2swing.Util.drawString(a,jalview.util.MessageManager.getString("label.jalview_cite_1_authors"),7,c+=b);awt2swing.Util.drawString(a,jalview.util.MessageManager.getString("label.jalview_cite_1_title"),7,c+=b);awt2swing.Util.drawString(a,jalview.util.MessageManager.getString("label.jalview_cite_1_ref"),7,c+b)},"java.awt.Graphics");
685 c$=z()};c$.$AlignFrame$4$=function(){A(self.c$);c$=L(jalview.appletgui,"AlignFrame$4",null,java.awt.event.ActionListener);e(c$,"actionPerformed",function(a){this.b$["jalview.appletgui.AlignFrame"].outputText_actionPerformed(a)},"java.awt.event.ActionEvent");c$=z()};c$.$AlignFrame$5$=function(){A(self.c$);c$=L(jalview.appletgui,"AlignFrame$5",null,java.awt.event.FocusListener);e(c$,"focusLost",function(){this.f$.theApplet.currentAlignFrame===this.f$.me&&(this.f$.theApplet.currentAlignFrame=null)},
686 "java.awt.event.FocusEvent");e(c$,"focusGained",function(){this.f$.theApplet.currentAlignFrame=this.f$.me},"java.awt.event.FocusEvent");c$=z()};G(c$,"copiedSequences",null,"copiedHiddenColumns",null)});p("awt2swing");q(["awt2swing.Panel"],"awt2swing.Canvas",null,function(){c$=B(awt2swing,"Canvas",awt2swing.Panel)});p("awt2swing");q(["javax.swing.JPanel"],"awt2swing.Panel",null,function(){c$=B(awt2swing,"Panel",javax.swing.JPanel);d(c$,"setName",function(a){System.out.println(a);K(this,awt2swing.Panel,
687 "setName",[a])},"~S")});p("jalview.api");M(jalview.api,"AlignViewControllerGuiI");p("jalview.appletgui");q(["awt2swing.Frame","java.awt.event.MouseListener","java.awt.Font","java.util.HashMap"],"jalview.appletgui.EmbmenuFrame","awt2swing.Label $.Panel $.PopupMenu jalview.util.Platform java.awt.Color $.FlowLayout".split(" "),function(){c$=s(function(){this.embeddedMenu=this.embeddedPopup=null;r(this,arguments)},jalview.appletgui,"EmbmenuFrame",awt2swing.Frame,java.awt.event.MouseListener);J(c$,function(){this.embeddedPopup=
688 new java.util.HashMap});d(c$,"embedMenuIfNeeded",function(a){var b=this.getJMenuBar();return null==b?!1:jalview.util.Platform.isAMac()?(this.embeddedMenu=this.makeEmbeddedPopupMenu(b,!0,!1),this.unsetMenuBar(),this.add(this.embeddedMenu,"North"),a.setSize(this.getSize().width,this.getSize().height-this.embeddedMenu.getHeight()),!0):!1},"awt2swing.Panel");d(c$,"makeEmbeddedPopupMenu",function(a,b,c){c||(this.embeddedPopup.clear(),null!=this.embeddedMenu&&this.embeddedMenu.removeAll());return this.embeddedMenu=
689 this.makeEmbeddedPopupMenu(a,jalview.appletgui.EmbmenuFrame.DEFAULT_MENU_FONT,b,new awt2swing.Panel,this)},"awt2swing.MenuBar,~B,~B");d(c$,"makeEmbeddedPopupMenu",function(a,b,c,f,l){c&&(c=a.getFont(),null!=c&&(b=c));null==f&&(f=new awt2swing.Panel);c=new java.awt.FlowLayout;f.setBackground(java.awt.Color.lightGray);f.setLayout(c);for(var d=0,g=a.getMenuCount();d<g;d++){var h=a.getMenu(d),e=new awt2swing.Label(h.getLabel());e.setFont(b);var n=new awt2swing.PopupMenu,x,u=h.getItemCount();for(x=0;x<
690 u;x++)null==h.getItem(x)?n.addSeparator():n.add(h.getItem(x)),u--,x--;this.embeddedPopup.put(e,n);f.add(e);e.addMouseListener(l)}c.setAlignment(0);c.setHgap(2);c.setVgap(0);return f},"awt2swing.MenuBar,java.awt.Font,~B,awt2swing.Panel,java.awt.event.MouseListener");e(c$,"mousePressed",function(a){var b=null;a=a.getSource();b=this.getPopupMenu(a);null!=b&&(this.embeddedMenu.add(b),b.show(this.embeddedMenu,a.getBounds().x,a.getBounds().y+a.getBounds().getSize().height))},"java.awt.event.MouseEvent");
691 d(c$,"getPopupMenu",function(a){return this.embeddedPopup.get(a)},"awt2swing.Label");e(c$,"mouseClicked",function(){},"java.awt.event.MouseEvent");e(c$,"mouseReleased",function(){},"java.awt.event.MouseEvent");e(c$,"mouseEntered",function(){},"java.awt.event.MouseEvent");e(c$,"mouseExited",function(){},"java.awt.event.MouseEvent");d(c$,"destroyMenus",function(){if(null!=this.embeddedPopup){for(var a,b=this.embeddedPopup.keySet().iterator();b.hasNext()&&((a=b.next())||1);)a.removeMouseListener(this);
692 this.embeddedPopup.clear()}null!=this.embeddedMenu&&this.embeddedMenu.removeAll()});d(c$,"finalize",function(){this.destroyMenus();this.embeddedMenu=this.embeddedPopup=null;K(this,jalview.appletgui.EmbmenuFrame,"finalize",[])});c$.FONT_ARIAL_PLAIN_11=c$.prototype.FONT_ARIAL_PLAIN_11=new java.awt.Font("Arial",0,11);c$.DEFAULT_MENU_FONT=c$.prototype.DEFAULT_MENU_FONT=jalview.appletgui.EmbmenuFrame.FONT_ARIAL_PLAIN_11});p("awt2swing");q(["javax.swing.JFrame"],"awt2swing.Frame",null,function(){c$=B(awt2swing,
693 "Frame",javax.swing.JFrame);d(c$,"remove",function(a){this.removeInt(a)},"~N");d(c$,"setMenuBar",function(a){this.setJMenuBar(a)},"awt2swing.MenuBar");d(c$,"unsetMenuBar",function(){this.setJMenuBar(null)});d(c$,"getMenubar",function(){return this.getJMenuBar()})});p("awt2swing");q(["javax.swing.JLabel"],"awt2swing.Label",null,function(){c$=B(awt2swing,"Label",javax.swing.JLabel);d(c$,"setAlignment",function(a){this.setAlignmentX(a)},"~N")});p("awt2swing");q(["javax.swing.JPopupMenu"],"awt2swing.PopupMenu",
694 null,function(){c$=B(awt2swing,"PopupMenu",javax.swing.JPopupMenu)});p("jalview.util");q(null,"jalview.util.Platform",["java.lang.StringBuffer"],function(){c$=B(jalview.util,"Platform");c$.isAMac=d(c$,"isAMac",function(){return-1<java.lang.System.getProperty("os.name").indexOf("Mac")});c$.isHeadless=d(c$,"isHeadless",function(){var a=java.lang.System.getProperty("java.awt.headless");return null!=a&&a.equals("true")});c$.getMaxCommandLineLength=d(c$,"getMaxCommandLineLength",function(){return 2046});
695 c$.escapeString=d(c$,"escapeString",function(a){for(var b=new StringBuffer,c=0,f=0;-1<(c=a.indexOf("\\",f));)b.append(a.subSequence(f,c)),b.append("\\\\"),f=c+1;b.append(a.substring(f));return b.toString()},"~S")});p("awt2swing");q(["javax.swing.JCheckBoxMenuItem"],"awt2swing.CheckboxMenuItem",null,function(){c$=B(awt2swing,"CheckboxMenuItem",javax.swing.JCheckBoxMenuItem);m(c$,function(){t(this,awt2swing.CheckboxMenuItem,[])});e(c$,"getState",function(){return this.isSelected()});e(c$,"setState",
696 function(a){this.setSelected(a)},"~B")});p("awt2swing");q(["javax.swing.JMenu"],"awt2swing.Menu",null,function(){c$=B(awt2swing,"Menu",javax.swing.JMenu);m(c$,function(a){t(this,awt2swing.Menu,[a])},"~S");m(c$,function(){t(this,awt2swing.Menu)})});p("awt2swing");q(["javax.swing.JMenuBar"],"awt2swing.MenuBar",null,function(){c$=B(awt2swing,"MenuBar",javax.swing.JMenuBar)});p("awt2swing");q(["javax.swing.JMenuItem"],"awt2swing.MenuItem",null,function(){c$=B(awt2swing,"MenuItem",javax.swing.JMenuItem)});
697 p("jalview.analysis");q(null,"jalview.analysis.AlignmentSorter","jalview.datamodel.SequenceI jalview.util.Comparison $.MessageManager $.QuickSort java.lang.Error $.Float $.StringBuffer java.util.ArrayList".split(" "),function(){c$=B(jalview.analysis,"AlignmentSorter");c$.sortByPID=d(c$,"sortByPID",function(a,b,c){jalview.analysis.AlignmentSorter.sortByPID(a,b,c,0,-1)},"jalview.datamodel.AlignmentI,jalview.datamodel.SequenceI,~A");c$.sortByPID=d(c$,"sortByPID",function(a,b){for(var c=a.getHeight(),
698 f=Q(c,0),l=Array(c),d=0;d<c;d++)f[d]=jalview.util.Comparison.PID(a.getSequenceAt(d).getSequenceAsString(),b.getSequenceAsString()),l[d]=a.getSequenceAt(d);jalview.util.QuickSort.sortFloatObject(f,l);jalview.analysis.AlignmentSorter.setReverseOrder(a,l)},"jalview.datamodel.AlignmentI,jalview.datamodel.SequenceI,~A,~N,~N");c$.setReverseOrder=d(c$,"setReverseOrder",function(a,b){for(var c=b.length,f=0,f=0==c%2?F(c/2):F((c+1)/2),l=0;l<f;l++)(void 0).set(l,b[c-l-1]),(void 0).set(c-l-1,b[l])},"jalview.datamodel.AlignmentI,~A");
699 c$.setOrder=d(c$,"setOrder",function(a,b){jalview.analysis.AlignmentSorter.setOrder(a,jalview.analysis.AlignmentSorter.vectorSubsetToArray(b,a.getSequences()))},"jalview.datamodel.AlignmentI,java.util.List");c$.setOrder=d(c$,"setOrder",function(a,b){for(var c=new java.util.ArrayList,f=0;f<b.length;f++)(void 0).contains(b[f])&&c.add(b[f]);(void 0).clear();for(f=0;f<c.size();f++)(void 0).add(c.get(f))},"jalview.datamodel.AlignmentI,~A");c$.sortByID=d(c$,"sortByID",function(a){for(var b=a.getHeight(),
700 c=Array(b),f=Array(b),l=0;l<b;l++)c[l]=a.getSequenceAt(l).getName(),f[l]=a.getSequenceAt(l);jalview.util.QuickSort.sort(c,f);jalview.analysis.AlignmentSorter.sortIdAscending?jalview.analysis.AlignmentSorter.setReverseOrder(a,f):jalview.analysis.AlignmentSorter.setOrder(a,f);jalview.analysis.AlignmentSorter.sortIdAscending=!jalview.analysis.AlignmentSorter.sortIdAscending},"jalview.datamodel.AlignmentI");c$.sortByLength=d(c$,"sortByLength",function(a){for(var b=a.getHeight(),c=Q(b,0),f=Array(b),l=
701 0;l<b;l++)f[l]=a.getSequenceAt(l),c[l]=f[l].getEnd()-f[l].getStart();jalview.util.QuickSort.sortFloatObject(c,f);jalview.analysis.AlignmentSorter.sortLengthAscending?jalview.analysis.AlignmentSorter.setReverseOrder(a,f):jalview.analysis.AlignmentSorter.setOrder(a,f);jalview.analysis.AlignmentSorter.sortLengthAscending=!jalview.analysis.AlignmentSorter.sortLengthAscending},"jalview.datamodel.AlignmentI");c$.sortByGroup=d(c$,"sortByGroup",function(a){var b=new java.util.ArrayList;b.hashCode()!=jalview.analysis.AlignmentSorter.lastGroupHash?
702 (jalview.analysis.AlignmentSorter.sortGroupAscending=!0,jalview.analysis.AlignmentSorter.lastGroupHash=b.hashCode()):jalview.analysis.AlignmentSorter.sortGroupAscending=!jalview.analysis.AlignmentSorter.sortGroupAscending;for(var c,f=a.getGroups().iterator();f.hasNext()&&((c=f.next())||1);){for(var l=0;l<b.size();l++){var d=b.get(l);if(c.getSize()>d.getSize()){b.add(l,c);break}}b.contains(c)||b.add(c)}f=new java.util.ArrayList;for(d=0;d<b.size();d++){c=b.get(d);c=c.getSequencesInOrder(a);for(l=0;l<
703 c.length;l++)f.add(c[l])}jalview.analysis.AlignmentSorter.sortGroupAscending?jalview.analysis.AlignmentSorter.setOrder(a,f):jalview.analysis.AlignmentSorter.setReverseOrder(a,jalview.analysis.AlignmentSorter.vectorSubsetToArray(f,a.getSequences()))},"jalview.datamodel.AlignmentI");c$.vectorSubsetToArray=d(c$,"vectorSubsetToArray",function(a,b){var c=new java.util.ArrayList,f,l,d=X(b.size(),!1);for(f=0;f<b.size();f++)d[f]=!0;for(f=0;f<a.size();f++){var g=a.get(f);l=b.indexOf(g);-1<l&&d[l]&&(d[l]=!1,
704 c.add(g))}for(f=0;f<d.length;f++)d[f]&&c.add(b.get(f));return c.toArray(Array(c.size()))},"java.util.List,java.util.List");c$.sortBy=d(c$,"sortBy",function(a,b){var c=b.getOrder();jalview.analysis.AlignmentSorter.sortOrderAscending=jalview.analysis.AlignmentSorter.lastOrder===b?!jalview.analysis.AlignmentSorter.sortOrderAscending:!0;jalview.analysis.AlignmentSorter.sortOrderAscending?jalview.analysis.AlignmentSorter.setOrder(a,c):jalview.analysis.AlignmentSorter.setReverseOrder(a,jalview.analysis.AlignmentSorter.vectorSubsetToArray(c,
705 a.getSequences()))},"jalview.datamodel.AlignmentI,jalview.datamodel.AlignmentOrder");c$.getOrderByTree=d(c$,"getOrderByTree",function(a,b){var c=a.getHeight(),f=new java.util.ArrayList,f=jalview.analysis.AlignmentSorter._sortByTree(b.getTopNode(),f,a.getSequences());f.size()!=c&&(f.size()!=c&&jalview.analysis.AlignmentSorter.addStrays(a,f),f.size()!=c&&System.err.println("WARNING: tmp.size()="+f.size()+" != nseq="+c+" in getOrderByTree - tree contains sequences not in alignment"));return f},"jalview.datamodel.AlignmentI,jalview.analysis.NJTree");
706 c$.sortByTree=d(c$,"sortByTree",function(a,b){var c=jalview.analysis.AlignmentSorter.getOrderByTree(a,b);jalview.analysis.AlignmentSorter.lastTree!==b?(jalview.analysis.AlignmentSorter.sortTreeAscending=!0,jalview.analysis.AlignmentSorter.lastTree=b):jalview.analysis.AlignmentSorter.sortTreeAscending=!jalview.analysis.AlignmentSorter.sortTreeAscending;jalview.analysis.AlignmentSorter.sortTreeAscending?jalview.analysis.AlignmentSorter.setOrder(a,c):jalview.analysis.AlignmentSorter.setReverseOrder(a,
707 jalview.analysis.AlignmentSorter.vectorSubsetToArray(c,a.getSequences()))},"jalview.datamodel.AlignmentI,jalview.analysis.NJTree");c$.addStrays=d(c$,"addStrays",function(a,b){for(var c=a.getHeight(),f=0;f<c;f++)b.contains(a.getSequenceAt(f))||b.add(a.getSequenceAt(f));c!=b.size()&&System.err.println("ERROR: Size still not right even after addStrays")},"jalview.datamodel.AlignmentI,java.util.List");c$._sortByTree=d(c$,"_sortByTree",function(a,b,c){if(null==a)return b;var f=a.left(),l=a.right();null==
708 f&&null==l?!a.isPlaceholder()&&null!=a.element()&&v(a.element(),jalview.datamodel.SequenceI)&&(b.contains(a.element())||b.add(a.element())):(jalview.analysis.AlignmentSorter._sortByTree(f,b,c),jalview.analysis.AlignmentSorter._sortByTree(l,b,c));return b},"jalview.datamodel.SequenceNode,java.util.List,java.util.List");c$.recoverOrder=d(c$,"recoverOrder",function(a){for(var b=Q(a.length,0),c=0;c<a.length;c++)b[c]=(new Float(a[c].getName().substring(8))).floatValue();jalview.util.QuickSort.sortFloatObject(b,
709 a)},"~A");c$.sortByAnnotationScore=d(c$,"sortByAnnotationScore",function(a,b){for(var c=b.getSequencesArray(),f=X(c.length,!1),l=0,d=U(c.length,0),g=0,h=0,e=0;e<c.length;e++){var n=c[e].getAnnotation(a);null!=n?(l++,f[e]=!0,d[e]=n[0].getScore(),1==l?h=g=d[e]:(h<d[e]&&(h=d[e]),g>d[e]&&(g=d[e]))):f[e]=!1}if(0!=l){if(l<c.length)for(e=0;e<c.length;e++)f[e]||(d[e]=h+e+1);jalview.util.QuickSort.sortDouble(d,c);jalview.analysis.AlignmentSorter.lastSortByScore!==a?(jalview.analysis.AlignmentSorter.lastSortByScore=
710 a,jalview.analysis.AlignmentSorter.setOrder(b,c)):jalview.analysis.AlignmentSorter.setReverseOrder(b,c)}},"~S,jalview.datamodel.AlignmentI");c$.sortByFeature=d(c$,"sortByFeature",function(a,b,c,f,l,d){jalview.analysis.AlignmentSorter.sortByFeature(null==a?null:E(-1,[a]),null==b?null:E(-1,[b]),c,f,l,d)},"~S,~S,~N,~N,jalview.datamodel.AlignmentI,~S");c$.containsIgnoreCase=d(c$,"containsIgnoreCase",function(a,b){if(null==b)return!0;if(null==a)return!1;for(var c=0;c<b.length;c++)if(null!=b[c]&&a.equalsIgnoreCase(b[c]))return!0;
711 return!1},"~S,~A");c$.sortByFeature=d(c$,"sortByFeature",function(a,b,c,f,l,d){if(d!==jalview.analysis.AlignmentSorter.FEATURE_SCORE&&d!==jalview.analysis.AlignmentSorter.FEATURE_LABEL&&d!==jalview.analysis.AlignmentSorter.FEATURE_DENSITY)throw Error(jalview.util.MessageManager.getString("error.implementation_error_sortbyfeature"));var g=d!==jalview.analysis.AlignmentSorter.FEATURE_SCORE,h=new StringBuffer;h.append(c+f+d);for(var e=0;null!=a&&e<a.length;e++)h.append(null==a[e]?"null":a[e]);for(e=
712 0;null!=b&&e<b.length;e++)h.append(null==b[e]?"null":b[e]);for(var n=l.getSequencesArray(),x=X(n.length,!1),u=0,D=U(n.length,0),m=w(n.length,0),p=Array(n.length),q=0,r=0,e=0;e<n.length;e++){var s=n[e].getSequenceFeatures();if(null==s)s=[];else{for(var t=Array(s.length),v=0;v<t.length;v++)t[v]=s[v];s=t}var y=-1==c?c:n[e].findPosition(c),z=-1==f?f:n[e].findPosition(f);m[e]=0;D[e]=0;t=s.length;for(v=0;v<s.length;v++)s[v].end<y||s[v].begin>z||null!=a&&!jalview.analysis.AlignmentSorter.containsIgnoreCase(s[v].type,
713 a)||null!=b&&null!=s[v].getFeatureGroup()&&!jalview.analysis.AlignmentSorter.containsIgnoreCase(s[v].getFeatureGroup(),b)?(s[v]=null,t--):!g&&!Float.isNaN(s[v].getScore())&&(0==m[e]&&u++,m[e]++,x[e]=!0,D[e]+=s[v].getScore());p[e]=y=Array(t);if(0<t){for(v=t=0;v<s.length;v++)null!=s[v]&&(p[e][t++]=s[v]);if(d===jalview.analysis.AlignmentSorter.FEATURE_LABEL){s=Array(y.length);for(t=0;t<s.length;t++)s[t]=null!=y[t].getDescription()?y[t].getDescription():y[t].getType();jalview.util.QuickSort.sort(s,p[e])}}x[e]&&
714 (D[e]/=m[e],1==u?r=q=D[e]:(r<D[e]&&(r=D[e]),q>D[e]&&(q=D[e])))}if(d===jalview.analysis.AlignmentSorter.FEATURE_SCORE){if(0==u)return;if(u<n.length)for(e=0;e<n.length;e++)x[e]||(D[e]=r+1+e);jalview.util.QuickSort.sortDouble(D,n)}else if(d===jalview.analysis.AlignmentSorter.FEATURE_DENSITY){a=0.9/(1*n.length);for(e=0;e<n.length;e++)D[e]=0.05+a*e+(null==p[e]?0:1*p[e].length);jalview.util.QuickSort.sortDouble(D,n)}else if(d===jalview.analysis.AlignmentSorter.FEATURE_LABEL)throw Error(jalview.util.MessageManager.getString("error.not_yet_implemented"));
715 jalview.analysis.AlignmentSorter.sortByFeatureScoreAscending=null==jalview.analysis.AlignmentSorter.lastSortByFeatureScore||!h.toString().equals(jalview.analysis.AlignmentSorter.lastSortByFeatureScore)?!0:!jalview.analysis.AlignmentSorter.sortByFeatureScoreAscending;jalview.analysis.AlignmentSorter.sortByFeatureScoreAscending?jalview.analysis.AlignmentSorter.setOrder(l,n):jalview.analysis.AlignmentSorter.setReverseOrder(l,n);jalview.analysis.AlignmentSorter.lastSortByFeatureScore=h.toString()},"~A,~A,~N,~N,jalview.datamodel.AlignmentI,~S");
716 G(c$,"sortIdAscending",!0,"lastGroupHash",0,"sortGroupAscending",!0,"lastOrder",null,"sortOrderAscending",!0,"lastTree",null,"sortTreeAscending",!0,"lastSortByScore",null,"sortByScoreAscending",!0,"lastSortByFeatureScore",null,"sortByFeatureScoreAscending",!0,"sortLengthAscending",!1,"FEATURE_SCORE","average_score","FEATURE_LABEL","text","FEATURE_DENSITY","density")});p("jalview.datamodel");q(["jalview.datamodel.ASequenceI"],"jalview.datamodel.SequenceI",null,function(){M(jalview.datamodel,"SequenceI",
717 jalview.datamodel.ASequenceI)});p("jalview.datamodel");M(jalview.datamodel,"ASequenceI");p("jalview.util");q(null,"jalview.util.Comparison",["java.util.ArrayList"],function(){c$=B(jalview.util,"Comparison");c$.compare=d(c$,"compare",function(a,b){return jalview.util.Comparison.compare(a,b,0,a.getLength()-1)},"jalview.datamodel.SequenceI,jalview.datamodel.SequenceI");c$.compare=d(c$,"compare",function(a,b,c){a=a.getSequenceAsString();b=b.getSequenceAsString();for(var f=a.length-1,l=b.length-1;jalview.util.Comparison.isGap(a.charAt(c+
718 f));)f--;for(;jalview.util.Comparison.isGap(b.charAt(c+l));)l--;var d=0,g=0,h=-1;if(f>l){for(h=0;h<l;h++)a.substring(c+h,c+h+1).equals(b.substring(c+h,c+h+1))&&g++,d++;h=100*(g/f)}else{for(h=0;h<l;h++)a.substring(c+h,c+h+1).equals(b.substring(c+h,c+h+1))&&g++,d++;h=100*(g/l)}return h},"jalview.datamodel.SequenceI,jalview.datamodel.SequenceI,~N,~N");c$.PID=d(c$,"PID",function(a,b){return jalview.util.Comparison.PID(a,b,0,a.length)},"~S,~S");c$.PID=d(c$,"PID",function(a,b,c,f){return jalview.util.Comparison.PID(a,
719 b,c,f,!0,!1)},"~S,~S,~N,~N");c$.PID=d(c$,"PID",function(a,b,c,f,l,d){var g=Math.min(a.length,b.length);f<g&&(g=f);g<c&&(c=g-1);f=g-c;for(var h=0,e,n,x=c;x<g;x++)c=a.charAt(x),e=b.charAt(x),n=jalview.util.Comparison.isGap(c)||jalview.util.Comparison.isGap(e),"a"<=c&&"z">=c&&(c=String.fromCharCode(c.charCodeAt(0)-32)),"a"<=e&&"z">=e&&(e=String.fromCharCode(e.charCodeAt(0)-32)),c!=e&&(n?d?f--:l||h++:h++);return 1>f?0:100*(f-h)/f},"~S,~S,~N,~N,~B,~B");c$.isGap=d(c$,"isGap",function(a){return"-"==a||"."==
720 a||" "==a?!0:!1},"~S");c$.isNucleotide=d(c$,"isNucleotide",function(a){if(null==a)return!1;for(var b=0,c=0,f,l=0;l<a.length&&((f=a[l])||1);l++)if(null!=f)for(var d,g=0,h=f.getSequence();g<h.length&&((d=h[g])||1);g++)"a"<=d&&"z">=d&&(d=String.fromCharCode(d.charCodeAt(0)-32)),"A"==d||"G"==d||"C"==d||"T"==d||"U"==d?b++:jalview.util.Comparison.isGap(d)||c++;return 100*b>85*(b+c)?!0:!1},"~A");c$.isNucleotide2=d(c$,"isNucleotide2",function(a){if(null==a)return!1;for(var b=new java.util.ArrayList,c,f=0;f<
721 a.length&&((c=a[f])||1);f++)for(var l,d=0,g=c;d<g.length&&((l=g[d])||1);d++)b.add(l);a=b.toArray(Array(b.size()));return jalview.util.Comparison.isNucleotide(a)},"~A");G(c$,"EIGHTY_FIVE",85,"TO_UPPER_CASE",32,"GAP_SPACE"," ","GAP_DOT",".","GAP_DASH","-");c$.GapChars=c$.prototype.GapChars=String.instantialize(N(-1,[" ",".","-"]));G(c$,"caseShift",32)});p("jalview.util");q(null,"jalview.util.QuickSort",["java.lang.Float","java.util.Arrays"],function(){c$=B(jalview.util,"QuickSort");c$.sortInt=d(c$,
722 "sortInt",function(a,b){jalview.util.QuickSort.sortInt(a,0,a.length-1,b)},"~A,~A");c$.sortFloatObject=d(c$,"sortFloatObject",function(a,b){jalview.util.QuickSort.sortFloat(a,0,a.length-1,b)},"~A,~A");c$.sortDouble=d(c$,"sortDouble",function(a,b){jalview.util.QuickSort.sortDouble(a,0,a.length-1,b)},"~A,~A");c$.sort=d(c$,"sort",function(a,b){jalview.util.QuickSort.stringSort(a,0,a.length-1,b)},"~A,~A");c$.stringSort=d(c$,"stringSort",function(a,b,c,f){var l;b<c&&(l=jalview.util.QuickSort.stringPartition(a,
723 b,c,f),jalview.util.QuickSort.stringSort(a,b,l,f),jalview.util.QuickSort.stringSort(a,l+1,c,f))},"~A,~N,~N,~A");c$.sortFloat=d(c$,"sortFloat",function(a,b,c,f){var l;b<c&&(l=jalview.util.QuickSort.partitionFloat(a,b,c,f),jalview.util.QuickSort.sortFloat(a,b,l,f),jalview.util.QuickSort.sortFloat(a,l+1,c,f))},"~A,~N,~N,~A");c$.sortInt=d(c$,"sortInt",function(a,b,c,f){var l;b<c&&(l=jalview.util.QuickSort.partitionInt(a,b,c,f),jalview.util.QuickSort.sortInt(a,b,l,f),jalview.util.QuickSort.sortInt(a,l+
724 1,c,f))},"~A,~N,~N,~A");c$.partitionFloat=d(c$,"partitionFloat",function(a,b,c,f){var l=a[b];b-=1;for(c+=1;;){do c-=1;while(a[c]>l);do b+=1;while(a[b]<l);if(b<c){var d=a[b];a[b]=a[c];a[c]=d;d=f[b];f[b]=f[c];f[c]=d}else return c}},"~A,~N,~N,~A");c$.partitionInt=d(c$,"partitionInt",function(a,b,c,f){var l=a[b];b-=1;for(c+=1;;){do c-=1;while(a[c]>l);do b+=1;while(a[b]<l);if(b<c){var d=a[b];a[b]=a[c];a[c]=d;d=f[b];f[b]=f[c];f[c]=d}else return c}},"~A,~N,~N,~A");c$.stringPartition=d(c$,"stringPartition",
725 function(a,b,c,f){var l=a[b];b-=1;for(c+=1;;){do c-=1;while(0>a[c].compareTo(l));do b+=1;while(0<a[b].compareTo(l));if(b<c){var d=a[b];a[b]=a[c];a[c]=d;d=f[b];f[b]=f[c];f[c]=d}else return c}},"~A,~N,~N,~A");c$.sortFloatChar=d(c$,"sortFloatChar",function(a,b){for(var c=Q(a.length,0),f=N(b.length,"\x00"),l=0,d=a.length-1,g=0;g<a.length;g++){var h=a[g];0<h?(c[d]=h,f[d]=b[g],d--):(c[l]=h,f[l]=b[g],l++)}System.arraycopy(c,0,a,0,l);System.arraycopy(f,0,b,0,l);l!=a.length&&(c=java.util.Arrays.copyOfRange(c,
726 l,c.length),f=java.util.Arrays.copyOfRange(f,l,f.length),jalview.util.QuickSort.externalSortFloat(c,f),System.arraycopy(c,0,a,l,c.length),System.arraycopy(f,0,b,l,f.length))},"~A,~A");c$.externalSortFloat=d(c$,"externalSortFloat",function(a,b){var c=a.length,f=jalview.util.QuickSort.makeIndexArray(c);java.util.Arrays.sort(f,new jalview.util.QuickSort.FloatComparator(a));for(var l=Q(c,0),d=N(b.length,"\x00"),g=0;g<c;g++)l[g]=a[f[g]],d[g]=b[f[g]];System.arraycopy(l,0,a,0,c);System.arraycopy(d,0,b,0,
727 b.length)},"~A,~A");c$.makeIndexArray=d(c$,"makeIndexArray",function(a){for(var b=Array(a),c=0;c<a;c++)b[c]=new Integer(c);return b},"~N");c$.sortIntChar=d(c$,"sortIntChar",function(a,b){for(var c=w(a.length,0),f=N(b.length,"\x00"),l=0,d=a.length-1,g=0;g<a.length;g++){var h=a[g];0<h?(c[d]=h,f[d]=b[g],d--):(c[l]=h,f[l]=b[g],l++)}System.arraycopy(c,0,a,0,l);System.arraycopy(f,0,b,0,l);l!=a.length&&(c=java.util.Arrays.copyOfRange(c,l,c.length),f=java.util.Arrays.copyOfRange(f,l,f.length),jalview.util.QuickSort.externalSortInt(c,
728 f),System.arraycopy(c,0,a,l,c.length),System.arraycopy(f,0,b,l,f.length))},"~A,~A");c$.externalSortInt=d(c$,"externalSortInt",function(a,b){var c=a.length,f=jalview.util.QuickSort.makeIndexArray(c);java.util.Arrays.sort(f,new jalview.util.QuickSort.IntComparator(a));for(var l=w(c,0),d=N(b.length,"\x00"),g=0;g<c;g++)l[g]=a[f[g]],d[g]=b[f[g]];System.arraycopy(l,0,a,0,c);System.arraycopy(d,0,b,0,b.length)},"~A,~A");A(self.c$);c$=s(function(){this.values=null;r(this,arguments)},jalview.util.QuickSort,
729 "FloatComparator",null,java.util.Comparator);m(c$,function(a){this.values=a},"~A");e(c$,"compare",function(a,b){return Float.compare(this.values[a.intValue()],this.values[b])},"Integer,Integer");c$=z();A(self.c$);c$=s(function(){this.values=null;r(this,arguments)},jalview.util.QuickSort,"IntComparator",null,java.util.Comparator);m(c$,function(a){this.values=a},"~A");e(c$,"compare",function(a,b){return Integer.compare(this.values[a],this.values[b])},"Integer,Integer");c$=z()});p("jalview.analysis");
730 q(["java.lang.Enum","java.util.HashMap"],"jalview.analysis.AnnotationSorter",["jalview.analysis.AlignmentUtils","java.lang.UnsupportedOperationException","java.util.Arrays"],function(){c$=s(function(){this.alignment=null;this.showAutocalcAbove=!1;this.noSort=this.byLabelAndSequence=this.bySequenceAndLabel=this.sequenceIndices=null;r(this,arguments)},jalview.analysis,"AnnotationSorter");J(c$,function(){this.sequenceIndices=new java.util.HashMap;this.bySequenceAndLabel=(H("jalview.analysis.AnnotationSorter$1")?
731 0:jalview.analysis.AnnotationSorter.$AnnotationSorter$1$(),C(jalview.analysis.AnnotationSorter$1,this,null));this.byLabelAndSequence=(H("jalview.analysis.AnnotationSorter$2")?0:jalview.analysis.AnnotationSorter.$AnnotationSorter$2$(),C(jalview.analysis.AnnotationSorter$2,this,null));this.noSort=(H("jalview.analysis.AnnotationSorter$3")?0:jalview.analysis.AnnotationSorter.$AnnotationSorter$3$(),C(jalview.analysis.AnnotationSorter$3,this,null))});m(c$,function(a,b){this.alignment=a;this.showAutocalcAbove=
732 b},"jalview.datamodel.AlignmentI,~B");d(c$,"sort",function(a,b){if(null!=a){this.saveSequenceIndices(a);var c=this.getComparator(b);null!=a&&java.util.Arrays.sort(a,c)}},"~A,jalview.analysis.AnnotationSorter.SequenceAnnotationOrder");d(c$,"saveSequenceIndices",function(a){this.sequenceIndices.clear();for(var b,c=0;c<a.length&&((b=a[c])||1);c++){var f=b.sequenceRef;if(null!=f){var l=jalview.analysis.AlignmentUtils.getSequenceIndex(this.alignment,f);this.sequenceIndices.put(f,new Integer(l))}}},"~A");
733 d(c$,"getComparator",function(a){if(null==a)return this.noSort;switch(a){case jalview.analysis.AnnotationSorter.SequenceAnnotationOrder.NONE:return this.noSort;case jalview.analysis.AnnotationSorter.SequenceAnnotationOrder.SEQUENCE_AND_LABEL:return this.bySequenceAndLabel;case jalview.analysis.AnnotationSorter.SequenceAnnotationOrder.LABEL_AND_SEQUENCE:return this.byLabelAndSequence;default:throw new UnsupportedOperationException(a.toString());}},"jalview.analysis.AnnotationSorter.SequenceAnnotationOrder");
734 d(c$,"compareLabels",function(a,b){if(null==a||null==b)return 0;var c=a.label,f=b.label;return null==c&&null==f?0:null==c?-1:null==f?1:c.toUpperCase().compareTo(f.toUpperCase())},"jalview.datamodel.AlignmentAnnotation,jalview.datamodel.AlignmentAnnotation");d(c$,"compareSequences",function(a,b){var c=a.sequenceRef,f=b.sequenceRef;if(null==c&&null==f)return 0;if(null==c)return this.showAutocalcAbove?-1:1;if(null==f)return this.showAutocalcAbove?1:-1;c=this.sequenceIndices.get(c).intValue();f=this.sequenceIndices.get(f).intValue();
735 return c==f?0:-1==c?-1:-1==f?1:Integer.compare(c,f)},"jalview.datamodel.AlignmentAnnotation,jalview.datamodel.AlignmentAnnotation");c$.$AnnotationSorter$1$=function(){A(self.c$);c$=L(jalview.analysis,"AnnotationSorter$1",null,java.util.Comparator);e(c$,"compare",function(a,b){if(null==a&&null==b)return 0;if(null==a)return-1;if(null==b)return 1;if(null==a.sequenceRef&&null==b.sequenceRef)return 0;var c=this.b$["jalview.analysis.AnnotationSorter"].compareSequences(a,b);return 0==c?this.b$["jalview.analysis.AnnotationSorter"].compareLabels(a,
736 b):c},"jalview.datamodel.AlignmentAnnotation,jalview.datamodel.AlignmentAnnotation");c$=z()};c$.$AnnotationSorter$2$=function(){A(self.c$);c$=L(jalview.analysis,"AnnotationSorter$2",null,java.util.Comparator);e(c$,"compare",function(a,b){if(null==a&&null==b)return 0;if(null==a)return-1;if(null==b)return 1;if(null==a.sequenceRef&&null==b.sequenceRef)return 0;if(null==a.sequenceRef)return this.b$["jalview.analysis.AnnotationSorter"].showAutocalcAbove?-1:1;if(null==b.sequenceRef)return this.b$["jalview.analysis.AnnotationSorter"].showAutocalcAbove?
737 1:-1;var c=this.b$["jalview.analysis.AnnotationSorter"].compareLabels(a,b);return 0==c?this.b$["jalview.analysis.AnnotationSorter"].compareSequences(a,b):c},"jalview.datamodel.AlignmentAnnotation,jalview.datamodel.AlignmentAnnotation");c$=z()};c$.$AnnotationSorter$3$=function(){A(self.c$);c$=L(jalview.analysis,"AnnotationSorter$3",null,java.util.Comparator);e(c$,"compare",function(a,b){if(null!=a&&null!=b){if(null==a.sequenceRef&&null!=b.sequenceRef)return this.b$["jalview.analysis.AnnotationSorter"].showAutocalcAbove?
738 -1:1;if(null!=a.sequenceRef&&null==b.sequenceRef)return this.b$["jalview.analysis.AnnotationSorter"].showAutocalcAbove?1:-1}return 0},"jalview.datamodel.AlignmentAnnotation,jalview.datamodel.AlignmentAnnotation");c$=z()};A(self.c$);c$=s(function(){this.description=null;r(this,arguments)},jalview.analysis.AnnotationSorter,"SequenceAnnotationOrder",Enum);m(c$,function(a){this.description=a},"~S");e(c$,"toString",function(){return this.description});c$.forDescription=d(c$,"forDescription",function(a){for(var b,
739 c=0,f=jalview.analysis.AnnotationSorter.SequenceAnnotationOrder.values();c<f.length&&((b=f[c])||1);c++)if(b.toString().equals(a))return b;return null},"~S");R(c$,"SEQUENCE_AND_LABEL",0,["Sequence"]);R(c$,"LABEL_AND_SEQUENCE",1,["Label"]);R(c$,"NONE",2,["No sort"]);c$=z()});p("jalview.analysis");q(null,"jalview.analysis.AlignmentUtils","jalview.analysis.CodonComparator jalview.datamodel.AlignedCodonFrame $.Alignment $.AlignmentAnnotation $.DBRefEntry $.DBRefSource $.FeatureProperties $.SearchResults $.Sequence jalview.schemes.ResidueProperties jalview.util.DBRefUtils $.MapList $.MappingUtils java.lang.StringBuilder java.util.ArrayList $.Arrays $.HashMap $.HashSet $.LinkedHashMap $.LinkedHashSet $.TreeMap".split(" "),
740 function(){c$=B(jalview.analysis,"AlignmentUtils");c$.expandContext=d(c$,"expandContext",function(a,b){for(var c=new java.util.ArrayList,f=0,l,d=a.getSequences().iterator();d.hasNext()&&((l=d.next())||1);){var g=l.deriveSequence(),h=g.getStart()-1;h>f&&g.getDatasetSequence().getStart()<l.getStart()&&(f=h);c.add(g)}-1<b&&(f=Math.min(f,b));for(d=c.iterator();d.hasNext()&&((l=d.next())||1);){for(var e=l;null!=e.getDatasetSequence();)e=e.getDatasetSequence();var g=l.findPosition(l.getStart()+l.getLength()),
741 h=l.getStart()-e.getStart(),n=e.getEnd()-g,x=f-h;0<=b&&(b<h&&(x=f-b,h=b),b<=n&&(n=b-1));for(var u=String.instantialize(e.getSequence(l.getStart()-1-h,l.getStart()-1)).toLowerCase().toCharArray(),e=String.instantialize(e.getSequence(g-1,g+n)).toLowerCase().toCharArray(),n=l.getSequence(),D=N(x+u.length+e.length+n.length,"\x00"),m=a.getGapCharacter(),p=0;p<x;p++)D[p]=m;System.arraycopy(u,0,D,p,u.length);System.arraycopy(n,0,D,p+u.length,n.length);System.arraycopy(e,0,D,p+n.length+u.length,e.length);
742 l.setSequence(String.instantialize(D));l.setStart(l.getStart()-h);l.setEnd(g+e.length)}f=new jalview.datamodel.Alignment(c.toArray([]));for(d=c.iterator();d.hasNext()&&((l=d.next())||1);)if(null!=l.getAnnotation())for(var q,c=0,g=l.getAnnotation();c<g.length&&((q=g[c])||1);c++)q.adjustForAlignment(),f.addAnnotation(q);f.setDataset(a.getDataset());return f},"jalview.datamodel.AlignmentI,~N");c$.getSequenceIndex=d(c$,"getSequenceIndex",function(a,b){for(var c=-1,f=0,l,d=a.getSequences().iterator();d.hasNext()&&
743 ((l=d.next())||1);){if(l===b){c=f;break}f++}return c},"jalview.datamodel.AlignmentI,jalview.datamodel.SequenceI");c$.getSequencesByName=d(c$,"getSequencesByName",function(a){var b=new java.util.LinkedHashMap,c;for(a=a.getSequences().iterator();a.hasNext()&&((c=a.next())||1);){var f=c.getName();if(null!=f){var l=b.get(f);null==l&&(l=new java.util.ArrayList,b.put(f,l));l.add(c)}}return b},"jalview.datamodel.AlignmentI");c$.mapProteinToCdna=d(c$,"mapProteinToCdna",function(a,b){if(null==a||null==b)return!1;
744 var c=new java.util.HashSet,f=new java.util.HashSet,l=jalview.analysis.AlignmentUtils.mapProteinToCdna(a,b,c,f,!0);return l=(new Boolean(l|jalview.analysis.AlignmentUtils.mapProteinToCdna(a,b,c,f,!1))).valueOf()},"jalview.datamodel.AlignmentI,jalview.datamodel.AlignmentI");c$.mapProteinToCdna=d(c$,"mapProteinToCdna",function(a,b,c,f,l){for(var d=!1,g,h=a.getSequences().iterator();h.hasNext()&&((g=h.next())||1);){for(var e=!1,n=new jalview.datamodel.AlignedCodonFrame,x,u=b.getSequences().iterator();u.hasNext()&&
745 ((x=u.next())||1);)if(!l||jalview.analysis.AlignmentUtils.haveCrossRef(g,x))if((l||!f.contains(g)&&!c.contains(x))&&!jalview.analysis.AlignmentUtils.mappingExists(a.getCodonFrames(),g.getDatasetSequence(),x.getDatasetSequence())){var D=jalview.analysis.AlignmentUtils.mapProteinToCdna(g,x);null!=D&&(n.addMap(x,g,D),e=d=!0,c.add(x),f.add(g))}e&&a.addCodonFrame(n)}return d},"jalview.datamodel.AlignmentI,jalview.datamodel.AlignmentI,java.util.Set,java.util.Set,~B");c$.mappingExists=d(c$,"mappingExists",
746 function(a,b,c){if(null!=a){var f;for(a=a.iterator();a.hasNext()&&((f=a.next())||1);)if(c===f.getDnaForAaSeq(b))return!0}return!1},"java.util.Set,jalview.datamodel.SequenceI,jalview.datamodel.SequenceI");c$.mapProteinToCdna=d(c$,"mapProteinToCdna",function(a,b){var c=a.getDatasetSequence(),c=null!=c?c.getSequence():a.getSequence(),f=b.getDatasetSequence(),f=null!=f?f.getSequence():b.getSequence();if(null==c||null==f)return null;var l=3*c.length,d=f.length,g=1,h=d,e=c.length;if(d!=l&&2<d)for(var n=
747 String.valueOf(f,d-3,3).toUpperCase(),x,u=jalview.schemes.ResidueProperties.STOP.iterator();u.hasNext()&&((x=u.next())||1);)if(n.equals(x)){h-=3;d-=3;break}d!=l&&(2<d&&String.valueOf(f,0,3).toUpperCase().equals(jalview.schemes.ResidueProperties.START))&&(g+=3,d-=3);return d!=l||!jalview.analysis.AlignmentUtils.translatesAs(f,g-1,c)?null:new jalview.util.MapList(w(-1,[g,h]),w(-1,[1,e]),3,1)},"jalview.datamodel.SequenceI,jalview.datamodel.SequenceI");c$.translatesAs=d(c$,"translatesAs",function(a,b,
748 c){for(var f=0;b<a.length-2&&f<c.length;b+=3,f++){var l=String.valueOf(a,b,3),l=jalview.schemes.ResidueProperties.codonTranslate(l),d=c[f];if(!((null==l||"STOP".equals(l))&&"X"==d))if(null==l||d!=l.charAt(0))return!1}return f==c.length},"~A,~N,~A");c$.alignSequenceAs=d(c$,"alignSequenceAs",function(a,b,c,f,l){var d=b.getCodonFrame(a);if(null==d||d.isEmpty())return!1;for(var g=null,h=null,e,d=d.iterator();d.hasNext()&&((e=d.next())||1);)if(g=e.findAlignedSequence(a.getDatasetSequence(),b),null!=g){h=
749 e;break}if(null==g)return!1;jalview.analysis.AlignmentUtils.alignSequenceAs(a,g,h,c,b.getGapCharacter(),f,l);return!0},"jalview.datamodel.SequenceI,jalview.datamodel.AlignmentI,~S,~B,~B");c$.alignSequenceAs=d(c$,"alignSequenceAs",function(a,b,c,f,l,d,g){var h=a.getSequence(),e=b.getSequence(),n=new StringBuilder(2*h.length),x=0,u=0,D=0,m=f.charAt(0);f=f.length;for(var p=0,q=!1,s,r=0;r<e.length&&((s=e[r])||1);r++)if(s==l)p+=f;else{u++;var t=c.getMappedRegion(a,b,u);if(null==t){System.err.println("Can't align: no codon mapping to residue "+
750 u+"("+s+")");return}for(var v=t[0],t=t[t.length-1],w=new StringBuilder,y=0;D<t&&x<h.length;){var z=h[x++];if(z!=m){D++;if(D<v)g&&0<w.length()&&(n.append(w.toString()),y+=w.length(),new StringBuilder),y++,q=!1;else{for(var A=D==v,p=jalview.analysis.AlignmentUtils.calculateGapsToInsert(d,g,p,q,w.length(),y,A),q=0;q<p;q++)n.append(m);p=0;q=!0}n.append(z);w=new StringBuilder}else q&&d?w.append(m):!q&&g&&w.append(m)}}for(;x<h.length;)z=h[x++],(z!=m||g)&&n.append(z);a.setSequence(String.instantialize(n))},
751 "jalview.datamodel.SequenceI,jalview.datamodel.SequenceI,jalview.datamodel.AlignedCodonFrame,~S,~S,~B,~B");c$.calculateGapsToInsert=d(c$,"calculateGapsToInsert",function(a,b,c,f,l,d,g){var h=0;if(g){f&&!a&&(l=0);if(!f&&(!a||!b))l=0;h=f?Math.max(c,l):d+l<=c?c-d:Math.min(d+l-c,l)}else a||(l=0),h=Math.max(c,l);return h},"~B,~B,~N,~B,~N,~N,~B");c$.getAlignedTranslation=d(c$,"getAlignedTranslation",function(a,b,c){var f=new java.util.ArrayList,l;for(a=a.iterator();a.hasNext()&&((l=a.next())||1);){var d=
752 jalview.analysis.AlignmentUtils.getAlignedTranslation(l,b,c);f.addAll(d)}return f},"java.util.List,~S,java.util.Set");c$.getAlignedTranslation=d(c$,"getAlignedTranslation",function(a,b,c){var f=new java.util.ArrayList,l;for(c=c.iterator();c.hasNext()&&((l=c.next())||1);)if(l.involvesSequence(a)){var d=jalview.analysis.AlignmentUtils.getAlignedTranslation(a,b,l);null!=d&&f.add(d)}return f},"jalview.datamodel.SequenceI,~S,java.util.Set");c$.getAlignedTranslation=d(c$,"getAlignedTranslation",function(a,
753 b,c){var f=String.valueOf(b),l=!1,d=1;null!=c.getDnaForAaSeq(a)?(l=!0,f=String.valueOf(N(-1,[b,b,b]))):(c.getAaForDnaSeq(a),d=3);for(var l=new StringBuilder(a.getLength()*(l?3:1)),g=0,h=w(d,0),e=0,n=0,x=!0,u=new jalview.datamodel.Sequence("",""),D,m=0,p=a.getSequence();m<p.length&&((D=p[m])||1);m++)if(D==b)n++,n>=d&&(l.append(f),n=0);else{h[e++]=g+1;if(e==d){for(var e=new jalview.datamodel.SearchResults,q,s=0,r=h;s<r.length&&((q=r[s])||1);s++)c.markMappedRegion(a,q,e);l.append(e.toString());x&&(x=
754 !1,e=e.getResultSequence(0),u.setName(e.getName()),u.setDescription(e.getDescription()),u.setDatasetSequence(e));e=0}g++}u.setSequence(l.toString());return u},"jalview.datamodel.SequenceI,~S,jalview.datamodel.AlignedCodonFrame");c$.alignProteinAsDna=d(c$,"alignProteinAsDna",function(a,b){for(var c=a.getCodonFrames(),f=new java.util.TreeMap(new jalview.analysis.CodonComparator),l,d=b.getSequences().iterator();d.hasNext()&&((l=d.next())||1);)for(var g,h=c.iterator();h.hasNext()&&((g=h.next())||1);){var e=
755 g.getMappingForSequence(l),n=g.findAlignedSequence(l.getDatasetSequence(),a);null!=n&&jalview.analysis.AlignmentUtils.addCodonPositions(l,n,a.getGapCharacter(),e,f)}return jalview.analysis.AlignmentUtils.alignProteinAs(a,f)},"jalview.datamodel.AlignmentI,jalview.datamodel.AlignmentI");c$.alignProteinAs=d(c$,"alignProteinAs",function(a,b){var c=b.size(),c=N(c,"\x00");java.util.Arrays.fill(c,a.getGapCharacter());for(var c=String.valueOf(c),f,l=a.getSequences().iterator();l.hasNext()&&((f=l.next())||
756 1);)f.setSequence(c);f=0;for(var d,c=b.keySet().iterator();c.hasNext()&&((d=c.next())||1);){for(var g,l=b.get(d).entrySet().iterator();l.hasNext()&&((g=l.next())||1);)g.getKey().getSequence()[f]=g.getValue().charAt(0);f++}return 0},"jalview.datamodel.AlignmentI,java.util.Map");c$.addCodonPositions=d(c$,"addCodonPositions",function(a,b,c,f,l){for(a=f.getCodonIterator(a,c);a.hasNext();)c=a.next(),f=l.get(c),null==f&&(f=new java.util.HashMap,l.put(c,f)),f.put(b,c.product)},"jalview.datamodel.SequenceI,jalview.datamodel.SequenceI,~S,jalview.datamodel.Mapping,java.util.Map");
757 c$.isMappable=d(c$,"isMappable",function(a,b){if(a.isNucleotide()==b.isNucleotide())return!1;for(var c=a.isNucleotide()?a:b,f=c===a?b:a,l=f.getCodonFrames(),d,c=c.getSequences().iterator();c.hasNext()&&((d=c.next())||1);)for(var g,h=f.getSequences().iterator();h.hasNext()&&((g=h.next())||1);)if(jalview.analysis.AlignmentUtils.isMappable(d,g,l))return!0;return!1},"jalview.datamodel.AlignmentI,jalview.datamodel.AlignmentI");c$.isMappable=d(c$,"isMappable",function(a,b,c){a=null==a.getDatasetSequence()?
758 a:a.getDatasetSequence();b=null==b.getDatasetSequence()?b:b.getDatasetSequence();var f;for(c=c.iterator();c.hasNext()&&((f=c.next())||1);)if(b===f.getAaForDnaSeq(a))return!0;return null!=jalview.analysis.AlignmentUtils.mapProteinToCdna(b,a)},"jalview.datamodel.SequenceI,jalview.datamodel.SequenceI,java.util.Set");c$.findAddableReferenceAnnotations=d(c$,"findAddableReferenceAnnotations",function(a,b,c,f){if(null!=a){var l;for(a=a.iterator();a.hasNext()&&((l=a.next())||1);){var d=l.getDatasetSequence();
759 if(null!=d){var g=d.getAnnotation();if(null!=g){for(var d=new java.util.ArrayList,h,e=0;e<g.length&&((h=g[e])||1);e++)f.findAnnotations(l,h.getCalcId(),h.label).iterator().hasNext()||(d.add(h),null!=b&&b.put(h.getCalcId(),h.label));d.isEmpty()||c.put(l,d)}}}}},"java.util.List,java.util.Map,java.util.Map,jalview.datamodel.AlignmentI");c$.addReferenceAnnotations=d(c$,"addReferenceAnnotations",function(a,b,c){for(var f,l=a.keySet().iterator();l.hasNext()&&((f=l.next())||1);)for(var d,g=a.get(f).iterator();g.hasNext()&&
760 ((d=g.next())||1);){var h=new jalview.datamodel.AlignmentAnnotation(d),e=0,n=d.annotations.length;null!=c&&(e=c.getStartRes(),n=c.getEndRes());h.restrict(e,n);f.hasAnnotation(d)||f.addAlignmentAnnotation(h);h.adjustForAlignment();b.addAnnotation(h);h.visible=!0}},"java.util.Map,jalview.datamodel.AlignmentI,jalview.datamodel.SequenceGroup");c$.showOrHideSequenceAnnotations=d(c$,"showOrHideSequenceAnnotations",function(a,b,c,f,l){var d,g=0;for(a=a.getAlignmentAnnotation();g<a.length&&((d=a[g])||1);g++)if(f||
761 b.contains(d.label))if(null!=d.sequenceRef&&(null==c||c.contains(d.sequenceRef)))d.visible=l},"jalview.datamodel.AlignmentI,java.util.Collection,java.util.List,~B,~B");c$.haveCrossRef=d(c$,"haveCrossRef",function(a,b){return jalview.analysis.AlignmentUtils.hasCrossRef(a,b)||jalview.analysis.AlignmentUtils.hasCrossRef(b,a)},"jalview.datamodel.SequenceI,jalview.datamodel.SequenceI");c$.hasCrossRef=d(c$,"hasCrossRef",function(a,b){if(null==a||null==b)return!1;var c=b.getName(),f=a.getDBRef();if(null!=
762 f)for(var l,d=0;d<f.length&&((l=f[d])||1);d++)if((l.getSource()+"|"+l.getAccessionId()).equalsIgnoreCase(c))return!0;return!1},"jalview.datamodel.SequenceI,jalview.datamodel.SequenceI");c$.makeExonAlignment=d(c$,"makeExonAlignment",function(a,b){for(var c=new java.util.LinkedHashSet,f=new java.util.ArrayList,l,d=0;d<a.length&&((l=a[d])||1);d++)for(var g=l.getDatasetSequence(),h,e=jalview.util.MappingUtils.findMappingsForSequence(g,b).iterator();e.hasNext()&&((h=e.next())||1);){var n=new jalview.datamodel.AlignedCodonFrame,
763 x=jalview.analysis.AlignmentUtils.makeExonSequences(g,h,n);x.isEmpty()||(f.addAll(x),c.add(n))}f=new jalview.datamodel.Alignment(f.toArray(Array(f.size())));f.setDataset(null);b.clear();b.addAll(c);return f},"~A,java.util.Set");c$.makeExonSequences=d(c$,"makeExonSequences",function(a,b,c){var f=new java.util.ArrayList,l=b.getMappingsForSequence(a);b=a.getSequence();for(var d,l=l.iterator();l.hasNext()&&((d=l.next())||1);){for(var g=new StringBuilder(a.getLength()),h=d.getMap().getFromRanges(),e,n=
764 h.iterator();n.hasNext()&&((e=n.next())||1);)for(var x=e[0];x<=e[1];x++)g.append(b[x-1]);var n=new jalview.datamodel.Sequence(a.getName(),g.toString()),x=jalview.datamodel.FeatureProperties.getCodingFeature(jalview.datamodel.DBRefSource.EMBL),u=jalview.util.DBRefUtils.selectRefs(d.getTo().getDBRef(),jalview.datamodel.DBRefSource.CODINGDBS);if(null!=u)for(var D,m=0;m<u.length&&((D=u[m])||1);m++)n.addDBRef(new jalview.datamodel.DBRefEntry(D)),x=D.getAccessionId();n.setName(n.getName()+"|"+x);n.createDatasetSequence();
765 x=new java.util.ArrayList;x.add(w(-1,[1,g.length()]));g=new jalview.util.MapList(x,d.getMap().getToRanges(),3,1);c.addMap(n.getDatasetSequence(),d.getTo(),g);h=new jalview.util.MapList(h,x,1,1);c.addMap(a,n.getDatasetSequence(),h);f.add(n)}return f},"jalview.datamodel.SequenceI,jalview.datamodel.AlignedCodonFrame,jalview.datamodel.AlignedCodonFrame")});p("jalview.analysis");c$=B(jalview.analysis,"CodonComparator",null,java.util.Comparator);e(c$,"compare",function(a,b){if(null==a||null==b||a.equals(b))return 0;
766 if(a.pos1<b.pos1&&a.pos3<=b.pos3)return-1;if(b.pos1<a.pos1&&b.pos3<=a.pos3||a.pos3>b.pos3&&a.pos1>=b.pos1)return 1;if(b.pos3>a.pos3&&b.pos1>=a.pos1)return-1;if(a.pos1==b.pos1&&a.pos3==b.pos3)return Integer.compare(a.pos2,b.pos2);var c=Integer.compare(a.pos2,b.pos2);return 0!=c?c:Integer.compare(a.pos1,b.pos1)},"jalview.datamodel.AlignedCodon,jalview.datamodel.AlignedCodon");p("jalview.datamodel");q(null,"jalview.datamodel.AlignedCodonFrame",["jalview.datamodel.Mapping","jalview.util.MappingUtils",
767 "java.util.ArrayList"],function(){c$=s(function(){this.dnaToProt=this.dnaSeqs=null;r(this,arguments)},jalview.datamodel,"AlignedCodonFrame");m(c$,function(){});d(c$,"addMap",function(a,b,c){var f=1;null!=this.dnaSeqs&&(f=this.dnaSeqs.length+1);var l=Array(f),d=Array(f);null!=this.dnaSeqs&&(System.arraycopy(this.dnaSeqs,0,l,0,this.dnaSeqs.length),System.arraycopy(this.dnaToProt,0,d,0,this.dnaSeqs.length));this.dnaSeqs=l;this.dnaToProt=d;f--;this.dnaSeqs[f]=null==a.getDatasetSequence()?a:a.getDatasetSequence();
768 a=new jalview.datamodel.Mapping(c);a.to=null==b.getDatasetSequence()?b:b.getDatasetSequence();this.dnaToProt[f]=a},"jalview.datamodel.SequenceI,jalview.datamodel.SequenceI,jalview.util.MapList");d(c$,"getdnaSeqs",function(){return this.dnaSeqs});d(c$,"getAaSeqs",function(){if(null==this.dnaToProt)return null;for(var a=Array(this.dnaToProt.length),b=0;b<this.dnaToProt.length;b++)a[b]=this.dnaToProt[b].to;return a});d(c$,"getdnaToProt",function(){if(null==this.dnaToProt)return null;for(var a=Array(this.dnaToProt.length),
769 b=0;b<this.dnaToProt.length;b++)a[b]=this.dnaToProt[b].map;return a});d(c$,"getProtMappings",function(){return this.dnaToProt});d(c$,"getMappingForSequence",function(a){if(null==this.dnaSeqs)return null;var b=a.getDatasetSequence(),b=null!=b?b:a;for(a=0;a<this.dnaSeqs.length;a++)if(this.dnaSeqs[a]===b||this.dnaToProt[a].to===b)return this.dnaToProt[a];return null},"jalview.datamodel.SequenceI");d(c$,"getAaForDnaSeq",function(a){if(null==this.dnaSeqs)return null;for(var b=a.getDatasetSequence(),c=
770 0;c<this.dnaSeqs.length;c++)if(this.dnaSeqs[c]===a||this.dnaSeqs[c]===b)return this.dnaToProt[c].to;return null},"jalview.datamodel.SequenceI");d(c$,"getDnaForAaSeq",function(a){if(null==this.dnaToProt)return null;for(var b=a.getDatasetSequence(),c=0;c<this.dnaToProt.length;c++)if(this.dnaToProt[c].to===a||this.dnaToProt[c].to===b)return this.dnaSeqs[c];return null},"jalview.datamodel.SequenceI");d(c$,"involvesSequence",function(a){return null!=this.getAaForDnaSeq(a)||null!=this.getDnaForAaSeq(a)},
771 "jalview.datamodel.SequenceI");d(c$,"markMappedRegion",function(a,b,c){if(null!=this.dnaToProt)for(var f,l=a.getDatasetSequence(),d=0;d<this.dnaToProt.length;d++)if(this.dnaSeqs[d]===a||this.dnaSeqs[d]===l){if(f=this.dnaToProt[d].map.locateInTo(b,b),null!=f)for(var g=0;g<f.length;g+=2)c.addResult(this.dnaToProt[d].to,f[g],f[g+1])}else if(this.dnaToProt[d].to===a||this.dnaToProt[d].to===l)if(f=this.dnaToProt[d].map.locateInFrom(b,b),null!=f)for(g=0;g<f.length;g+=2)c.addResult(this.dnaSeqs[d],f[g],
772 f[g+1])},"jalview.datamodel.SequenceI,~N,jalview.datamodel.SearchResults");d(c$,"getDnaPosition",function(a,b){for(var c=null,f=0;f<this.dnaToProt.length;f++)if(this.dnaSeqs[f]===a){c=this.getdnaToProt()[f];break}return null==c?null:c.locateInFrom(b,b)},"jalview.datamodel.SequenceI,~N");d(c$,"findAlignedSequence",function(a,b){if(null!=this.dnaToProt)for(var c=0;c<this.dnaToProt.length;c++)if(this.dnaSeqs[c]===a)for(var f,l=b.getSequences().iterator();l.hasNext()&&((f=l.next())||1);)if(this.dnaToProt[c].to===
773 f.getDatasetSequence())return f;if(null!=this.dnaToProt)for(c=0;c<this.dnaToProt.length;c++)if(this.dnaToProt[c].to===a)for(l=b.getSequences().iterator();l.hasNext()&&((f=l.next())||1);)if(this.dnaSeqs[c]===f.getDatasetSequence())return f;return null},"jalview.datamodel.SequenceI,jalview.datamodel.AlignmentI");d(c$,"getMappedRegion",function(a,b,c){a=null==a.getDatasetSequence()?a:a.getDatasetSequence();b=null==b.getDatasetSequence()?b:b.getDatasetSequence();if(null==a||null==b||null==this.dnaToProt)return null;
774 for(var f=0;f<this.dnaToProt.length;f++)if(this.dnaSeqs[f]===a&&this.dnaToProt[f].to===b){var l=this.dnaToProt[f].map.locateInFrom(c,c);if(null!=l)return l}return null},"jalview.datamodel.SequenceI,jalview.datamodel.SequenceI,~N");d(c$,"getMappedCodon",function(a,b){if(null==this.dnaToProt)return null;for(var c=null,f=null,l=0;l<this.dnaToProt.length;l++)if(this.dnaToProt[l].to===a){c=this.getdnaToProt()[l];f=this.dnaSeqs[l].getSequence();break}if(null==c)return null;c=c.locateInFrom(b,b);if(null==
775 c)return null;c=jalview.util.MappingUtils.flattenRanges(c);return N(-1,[f[c[0]-1],f[c[1]-1],f[c[2]-1]])},"jalview.datamodel.SequenceI,~N");d(c$,"getMappingsForSequence",function(a){var b=new java.util.ArrayList;if(null==this.dnaSeqs)return b;var c=new java.util.ArrayList,f=a.getDatasetSequence(),f=null!=f?f:a;for(a=0;a<this.dnaSeqs.length;a++){var l=this.dnaToProt[a];if((this.dnaSeqs[a]===f||l.to===f)&&!c.contains(l.to))b.add(l),c.add(l.to)}return b},"jalview.datamodel.SequenceI")});p("jalview.datamodel");
776 q(["java.util.Iterator"],"jalview.datamodel.Mapping","jalview.datamodel.AlignedCodon $.IncompleteCodonException $.SequenceFeature jalview.util.MapList java.util.NoSuchElementException $.Vector".split(" "),function(){c$=s(function(){H("jalview.datamodel.Mapping.AlignedCodonIterator")||jalview.datamodel.Mapping.$Mapping$AlignedCodonIterator$();this.to=this.map=null;r(this,arguments)},jalview.datamodel,"Mapping");m(c$,function(a){this.map=a},"jalview.util.MapList");m(c$,function(a,b){this.construct(b);
777 this.to=a},"jalview.datamodel.SequenceI,jalview.util.MapList");m(c$,function(a,b,c,f,l){this.construct(a,new jalview.util.MapList(b,c,f,l))},"jalview.datamodel.SequenceI,~A,~A,~N,~N");m(c$,function(a){a!==this&&null!=a&&(null!=a.map&&(this.map=new jalview.util.MapList(a.map)),this.to=a.to)},"jalview.datamodel.Mapping");d(c$,"getMap",function(){return this.map});d(c$,"setMap",function(a){this.map=a},"jalview.util.MapList");e(c$,"equals",function(a){return null==a||!v(a,jalview.datamodel.Mapping)?!1:
778 a===this?!0:a.to!==this.to||null!=this.map&&null==a.map||null==this.map&&null!=a.map?!1:null==this.map&&null==a.map||this.map.equals(a.map)?!0:!1},"~O");d(c$,"getPosition",function(a){if(null!=this.map){var b=this.map.shiftTo(a);if(null!=b)return b[0]}return a},"~N");d(c$,"getWord",function(a){return null!=this.map?this.map.getToWord(a):null},"~N");d(c$,"getWidth",function(){return null!=this.map?this.map.getFromRatio():1});d(c$,"getMappedWidth",function(){return null!=this.map?this.map.getToRatio():
779 1});d(c$,"getMappedPosition",function(a){if(null!=this.map){var b=this.map.shiftFrom(a);if(null!=b)return b[0]}return a},"~N");d(c$,"getMappedWord",function(a){return null!=this.map&&(a=this.map.shiftFrom(a),null!=a)?w(-1,[a[0],a[0]+a[2]*(this.map.getToRatio()-1)]):null},"~N");d(c$,"locateFeature",function(a){if(null!=this.map){var b=this.map.locateInFrom(a.getBegin(),a.getEnd());if(null==b)return null;for(var c=Array(F(b.length/2)),f=0,l=0;f<b.length;f+=2,l++)c[l]=new jalview.datamodel.SequenceFeature(a),
780 c[l].setBegin(b[f]),c[l].setEnd(b[f+1]),2<b.length&&c[l].setDescription(a.getDescription()+"\nPart "+(l+1));return c}return E(-1,[a])},"jalview.datamodel.SequenceFeature");d(c$,"locateRange",function(a,b){if(null!=this.map){if(a<=b){if(a=this.map.getToLowest()<a?a:this.map.getToLowest(),b=this.map.getToHighest()>b?b:this.map.getToHighest(),a>b)return null}else if(a=this.map.getToHighest()>a?a:this.map.getToHighest(),b=this.map.getToLowest()<b?b:this.map.getToLowest(),a<b)return null;return this.map.locateInFrom(a,
781 b)}return w(-1,[a,b])},"~N,~N");d(c$,"locateMappedRange",function(a,b){if(null!=this.map){if(a<=b){if(a=this.map.getFromLowest()<a?a:this.map.getFromLowest(),b=this.map.getFromHighest()>b?b:this.map.getFromHighest(),a>b)return null}else if(a=this.map.getFromHighest()>a?a:this.map.getFromHighest(),b=this.map.getFromLowest()<b?b:this.map.getFromLowest(),a<b)return null;return this.map.locateInTo(a,b)}return w(-1,[a,b])},"~N,~N");d(c$,"intersectVisContigs",function(a){var b=new jalview.datamodel.Mapping(this);
782 if(null!=this.map){for(var c=new java.util.Vector,f=new java.util.Vector,l=0;l<a.length;l+=2){var d=this.locateMappedRange(1+a[l],a[l+1]-1);if(null!=d)for(var g=0;g<d.length;g+=2){c.addElement(w(-1,[d[g],d[g+1]]));for(var h=this.locateRange(d[g],d[g+1]),e=0;e<h.length;e+=2)f.addElement(w(-1,[h[e],h[e+1]]))}}a=w(2*f.size(),0);l=w(2*c.size(),0);g=0;for(h=f.size();g<h;g++)d=f.elementAt(g),a[2*g]=d[0],a[2*g+1]=d[1];g=0;for(h=c.size();g<h;g++)d=c.elementAt(g),l[2*g]=d[0],l[2*g+1]=d[1];b.setMap(new jalview.util.MapList(a,
783 l,this.map.getFromRatio(),this.map.getToRatio()))}return b},"~A");d(c$,"getTo",function(){return this.to});d(c$,"setTo",function(a){this.to=a},"jalview.datamodel.SequenceI");d(c$,"finalize",function(){this.to=this.map=null;K(this,jalview.datamodel.Mapping,"finalize",[])});d(c$,"getCodonIterator",function(a,b){return C(jalview.datamodel.Mapping.AlignedCodonIterator,this,null,a.getSequence(),b)},"jalview.datamodel.SequenceI,~S");c$.$Mapping$AlignedCodonIterator$=function(){A(self.c$);c$=s(function(){O(this,
784 arguments);this.gap="\x00";this.alignedSeq=null;this.alignedBases=this.alignedColumn=0;this.currentToRange=this.currentFromRange=this.toRanges=this.fromRanges=null;this.toPosition=this.fromPosition=0;r(this,arguments)},jalview.datamodel.Mapping,"AlignedCodonIterator",null,java.util.Iterator);m(c$,function(a,b){this.alignedSeq=a;this.gap=b;this.fromRanges=this.b$["jalview.datamodel.Mapping"].map.getFromRanges().iterator();this.toRanges=this.b$["jalview.datamodel.Mapping"].map.getToRanges().iterator();
785 this.fromRanges.hasNext()&&(this.currentFromRange=this.fromRanges.next(),this.fromPosition=this.currentFromRange[0]);this.toRanges.hasNext()&&(this.currentToRange=this.toRanges.next(),this.toPosition=this.currentToRange[0])},"~A,~S");d(c$,"hasNext",function(){return this.fromRanges.hasNext()?!0:null==this.currentFromRange||this.fromPosition>=this.currentFromRange[1]?!1:!0});e(c$,"next",function(){if(!this.hasNext())throw new java.util.NoSuchElementException;var a=this.getNextCodon(),a=this.getAlignedCodon(a),
786 b=this.getPeptide();return new jalview.datamodel.AlignedCodon(a[0],a[1],a[2],b)});d(c$,"getPeptide",function(){if(this.toPosition<=this.currentToRange[1]){var a=this.b$["jalview.datamodel.Mapping"].to.getSequence()[this.toPosition-1];this.toPosition++;return String.valueOf(a)}if(!this.toRanges.hasNext())throw new java.util.NoSuchElementException("Ran out of peptide at position "+this.toPosition);this.currentToRange=this.toRanges.next();this.toPosition=this.currentToRange[0];return this.getPeptide()});
787 d(c$,"getNextCodon",function(){for(var a=w(3,0),b=0;3>b;)if(this.fromPosition<=this.currentFromRange[1])a[b++]=this.fromPosition++;else{if(!this.fromRanges.hasNext())throw new jalview.datamodel.IncompleteCodonException;this.currentFromRange=this.fromRanges.next();this.fromPosition=this.currentFromRange[0]}return a});d(c$,"getAlignedCodon",function(a){for(var b=w(a.length,0),c=0;c<a.length;c++)b[c]=this.getAlignedColumn(a[c]);return b},"~A");d(c$,"getAlignedColumn",function(a){for(;this.alignedBases<
788 a&&this.alignedColumn<this.alignedSeq.length;)this.alignedSeq[this.alignedColumn++]!=this.gap&&this.alignedBases++;return this.alignedColumn-1},"~N");e(c$,"remove",function(){});c$=z()}});p("jalview.datamodel");q(null,"jalview.datamodel.AlignedCodon",["java.lang.IllegalArgumentException","$.StringBuilder"],function(){c$=s(function(){this.pos3=this.pos2=this.pos1=0;this.product=null;r(this,arguments)},jalview.datamodel,"AlignedCodon");m(c$,function(a,b,c){this.construct(a,b,c,null)},"~N,~N,~N");m(c$,
789 function(a,b,c,f){this.pos1=a;this.pos2=b;this.pos3=c;this.product=f},"~N,~N,~N,~S");d(c$,"getBaseColumn",function(a){if(1>a||3<a)throw new IllegalArgumentException(Integer.toString(a));return 1==a?this.pos1:2==a?this.pos2:this.pos3},"~N");e(c$,"equals",function(a){return null==a?!0:!v(a,jalview.datamodel.AlignedCodon)?!1:this.pos1==a.pos1&&this.pos2==a.pos2&&this.pos3==a.pos3},"~O");e(c$,"toString",function(){var a=new StringBuilder;a.append("[").append(this.pos1).append(", ").append(this.pos2).append(", ").append(this.pos3).append("]");
790 return a.toString()})});p("jalview.datamodel");q(["java.lang.RuntimeException"],"jalview.datamodel.IncompleteCodonException",null,function(){c$=B(jalview.datamodel,"IncompleteCodonException",RuntimeException)});p("jalview.datamodel");q(null,"jalview.datamodel.SequenceFeature",["java.util.Hashtable","$.Vector"],function(){c$=s(function(){this.score=this.end=this.begin=0;this.featureGroup=this.links=this.otherDetails=this.description=this.type=null;r(this,arguments)},jalview.datamodel,"SequenceFeature");
791 m(c$,function(){});m(c$,function(a){if(null!=a){this.begin=a.begin;this.end=a.end;this.score=a.score;null!=a.type&&(this.type=String.instantialize(a.type));null!=a.description&&(this.description=String.instantialize(a.description));null!=a.featureGroup&&(this.featureGroup=String.instantialize(a.featureGroup));if(null!=a.otherDetails)try{this.otherDetails=a.otherDetails.clone()}catch(b){if(!y(b,Exception))throw b;}if(null!=a.links&&0<a.links.size()){this.links=new java.util.Vector;for(var c=0,f=a.links.size();c<
792 f;c++)this.links.addElement(a.links.elementAt(c))}}},"jalview.datamodel.SequenceFeature");m(c$,function(a,b,c,f,l,d){this.type=a;this.description=b;this.setValue("status",c);this.begin=f;this.end=l;this.featureGroup=d},"~S,~S,~S,~N,~N,~S");m(c$,function(a,b,c,f,l,d){this.type=a;this.description=b;this.begin=c;this.end=f;this.score=l;this.featureGroup=d},"~S,~S,~N,~N,~N,~S");d(c$,"equals",function(a){return this.begin!=a.begin||(this.end!=a.end||this.score!=a.score)||!(this.type+this.description+this.featureGroup).equals(a.type+
793 a.description+a.featureGroup)?!1:!0},"jalview.datamodel.SequenceFeature");d(c$,"getBegin",function(){return this.begin});d(c$,"setBegin",function(a){this.begin=a},"~N");d(c$,"getEnd",function(){return this.end});d(c$,"setEnd",function(a){this.end=a},"~N");d(c$,"getType",function(){return this.type});d(c$,"setType",function(a){this.type=a},"~S");d(c$,"getDescription",function(){return this.description});d(c$,"setDescription",function(a){this.description=a},"~S");d(c$,"getFeatureGroup",function(){return this.featureGroup});
794 d(c$,"setFeatureGroup",function(a){this.featureGroup=a},"~S");d(c$,"addLink",function(a){null==this.links&&(this.links=new java.util.Vector);this.links.insertElementAt(a,0)},"~S");d(c$,"getScore",function(){return this.score});d(c$,"setScore",function(a){this.score=a},"~N");d(c$,"getValue",function(a){return null==this.otherDetails?null:this.otherDetails.get(a)},"~S");d(c$,"setValue",function(a,b){null!=b&&(null==this.otherDetails&&(this.otherDetails=new java.util.Hashtable),this.otherDetails.put(a,
795 b))},"~S,~O");d(c$,"setStatus",function(a){this.setValue("status",a)},"~S");d(c$,"getStatus",function(){if(null!=this.otherDetails){var a=this.otherDetails.get("status");if(null!=a)return String.instantialize(a)}return null});d(c$,"setPosition",function(a){this.end=this.begin=a},"~N");d(c$,"getPosition",function(){return this.begin});d(c$,"getStrand",function(){var a;return null==this.otherDetails||null==(a=this.otherDetails.get("STRAND").toString())?0:a.equals("-")?-1:a.equals("+")?1:0})});p("jalview.util");
796 q(["java.util.ArrayList"],"jalview.util.MapList",["java.lang.StringBuilder","java.util.Arrays"],function(){c$=s(function(){this.toShifts=this.fromShifts=null;this.toHighest=this.toLowest=this.fromHighest=this.fromLowest=this.toRatio=this.fromRatio=0;r(this,arguments)},jalview.util,"MapList");J(c$,function(){this.fromShifts=new java.util.ArrayList;this.toShifts=new java.util.ArrayList});e(c$,"equals",function(a){return null==a||!v(a,jalview.util.MapList)?!1:a===this?!0:a.fromRatio!=this.fromRatio||
797 a.toRatio!=this.toRatio||null==a.fromShifts||null==a.toShifts?!1:java.util.Arrays.deepEquals(this.fromShifts.toArray(),a.fromShifts.toArray())&&java.util.Arrays.deepEquals(this.toShifts.toArray(),a.toShifts.toArray())},"~O");d(c$,"getFromRanges",function(){return this.fromShifts});d(c$,"getToRanges",function(){return this.toShifts});c$.getRanges=d(c$,"getRanges",function(a){var b=w(2*a.size(),0),c=0,f;for(a=a.iterator();a.hasNext()&&((f=a.next())||1);)b[c++]=f[0],b[c++]=f[1];return b},"java.util.List");
798 d(c$,"getFromRatio",function(){return this.fromRatio});d(c$,"getToRatio",function(){return this.toRatio});d(c$,"getFromLowest",function(){return this.fromLowest});d(c$,"getFromHighest",function(){return this.fromHighest});d(c$,"getToLowest",function(){return this.toLowest});d(c$,"getToHighest",function(){return this.toHighest});m(c$,function(a,b,c,f){this.fromRatio=c;this.toRatio=f;this.fromLowest=a[0];this.fromHighest=a[1];for(c=0;c<a.length;c+=2)this.fromLowest=Math.min(this.fromLowest,a[c]),this.fromHighest=
799 Math.max(this.fromHighest,a[c+1]),this.fromShifts.add(w(-1,[a[c],a[c+1]]));this.toLowest=b[0];this.toHighest=b[1];for(c=0;c<b.length;c+=2)this.toLowest=Math.min(this.toLowest,b[c]),this.toHighest=Math.max(this.toHighest,b[c+1]),this.toShifts.add(w(-1,[b[c],b[c+1]]))},"~A,~A,~N,~N");m(c$,function(a){this.fromLowest=a.fromLowest;this.fromHighest=a.fromHighest;this.toLowest=a.toLowest;this.toHighest=a.toHighest;this.fromRatio=a.fromRatio;this.toRatio=a.toRatio;if(null!=a.fromShifts)for(var b,c=a.fromShifts.iterator();c.hasNext()&&
800 ((b=c.next())||1);)this.fromShifts.add(w(-1,[b[0],b[1]]));if(null!=a.toShifts)for(c=a.toShifts.iterator();c.hasNext()&&((b=c.next())||1);)this.toShifts.add(w(-1,[b[0],b[1]]))},"jalview.util.MapList");m(c$,function(a,b,c,f){this.fromShifts=a;this.toShifts=b;this.fromRatio=c;this.toRatio=f;this.fromLowest=2147483647;this.fromHighest=0;var l;for(a=a.iterator();a.hasNext()&&((l=a.next())||1);)this.fromLowest=Math.min(this.fromLowest,l[0]),this.fromHighest=Math.max(this.fromHighest,l[1]);this.toLowest=
801 2147483647;this.toHighest=0;for(a=b.iterator();a.hasNext()&&((l=a.next())||1);)this.toLowest=Math.min(this.toLowest,l[0]),this.toHighest=Math.max(this.toHighest,l[1])},"java.util.List,java.util.List,~N,~N");d(c$,"makeFromMap",function(){return this.posMap(this.fromShifts,this.fromRatio,this.toShifts,this.toRatio)});d(c$,"makeToMap",function(){return this.posMap(this.toShifts,this.toRatio,this.fromShifts,this.fromRatio)});d(c$,"posMap",function(a,b,c,f){var l=0,d=a.size();if(l>=d)return null;var g=
802 a.get(l++),h=g[0],e=g[1];h>e&&(h=g[1],e=g[0]);for(;l<d;)g=a.get(l++),g[0]<h&&(h=g[0]),g[1]<h&&(h=g[1]),g[0]>e&&(e=g[0]),g[1]>e&&(e=g[1]);for(var d=l=0,g=w(e-h+2,0),n=0;n<g.length;n++){var x=jalview.util.MapList.shift(n+h,a,b,c,f);null!=x&&(0==n?l=d=x[0]:(x[0]<l&&(l=x[0]),x[0]>d&&(d=x[0])));g[n]=x}a=E(-1,[w(-1,[h,e,l,d]),w(e-h+2,0)]);a[0][2]=l;a[0][3]=d;for(n=0;n<g.length;n++)a[1][n]=null!=g[n]?g[n][0]-l:-1;return a},"java.util.List,~N,java.util.List,~N");d(c$,"shiftFrom",function(a){return jalview.util.MapList.shift(a,
803 this.fromShifts,this.fromRatio,this.toShifts,this.toRatio)},"~N");d(c$,"shiftTo",function(a){return jalview.util.MapList.shift(a,this.toShifts,this.toRatio,this.fromShifts,this.fromRatio)},"~N");c$.shift=d(c$,"shift",function(a,b,c,f,l){b=jalview.util.MapList.countPos(b,a);if(null==b)return null;a=(b[0]-1)%c;c=1+F((b[0]-1)/c)*l;f=jalview.util.MapList.countToPos(f,c);return null==f?null:w(-1,[f[0],a,f[1]])},"~N,java.util.List,~N,java.util.List,~N");c$.countPos=d(c$,"countPos",function(a,b){for(var c=
804 0,f,l=0,d=a.size();l<d;)if(f=a.get(l++),f[0]<=f[1]){if(b>=f[0]&&b<=f[1])return w(-1,[c+b-f[0]+1,1]);c+=f[1]-f[0]+1}else{if(b>=f[1]&&b<=f[0])return w(-1,[c+f[0]-b+1,-1]);c+=f[0]-f[1]+1}return null},"java.util.List,~N");c$.countToPos=d(c$,"countToPos",function(a,b){for(var c=0,f=0,l=0,d=a.size(),g=w(-1,[0,0]);l<d;)if(g=a.get(l++),f=g[1]-g[0],0<=f){if(b<=c+1+f)return w(-1,[b-c-1+g[0],1]);c+=1+f}else{if(b<=c+1-f)return w(-1,[g[0]-(b-c-1),-1]);c+=1-f}return null},"java.util.List,~N");d(c$,"locateInFrom",
805 function(a,b){var c=this.shiftTo(a),f=this.shiftTo(b);return jalview.util.MapList.getIntervals(this.fromShifts,c,f,this.fromRatio)},"~N,~N");d(c$,"locateInTo",function(a,b){var c=this.shiftFrom(a),f=this.shiftFrom(b);return jalview.util.MapList.getIntervals(this.toShifts,c,f,this.toRatio)},"~N,~N");c$.getIntervals=d(c$,"getIntervals",function(a,b,c,f){if(null==b||null==c)return null;b=b[0];c=c[0];var l=f-1;f=0;for(var d=a.size(),g,h=0,e=-1,n=-1,x=-1;f<d&&(-1==e||-1==x);)g=a.get(f++),-1<n&&(c=g[0],
806 l--),g[0]<=g[1]?(-1==e&&(b>=g[0]&&b<=g[1])&&(e=h),c>=g[0]&&c<=g[1]&&(-1==n&&(n=h),-1!=n&&(c+l<=g[1]?(x=h,c+=l):l-=g[1]-c))):(-1==e&&(b<=g[0]&&b>=g[1])&&(e=h),c<=g[0]&&c>=g[1]&&(-1==n&&(n=h),-1!=n&&(c-l>=g[1]?(x=h,c-=l):l-=c-g[1]))),h++;if(e==x&&-1==x)return null;l=new java.util.ArrayList;if(e<=x){h=f=e;g=a.get(f++);g=w(-1,[g[0],g[1]]);for(h==e&&(g[0]=b);h!=x;)l.add(g),g=a.get(f++),g=w(-1,[g[0],g[1]]),h++}else{for(h=a.size()-1;h>e;)h--;g=a.get(h);g=w(-1,[g[1],g[0]]);for(h==e&&(g[0]=b);--h!=x;)l.add(g),
807 g=a.get(h),g=w(-1,[g[1],g[0]])}h==x&&(g[1]=c);l.add(g);a=null;if(null!=l&&0<l.size()){a=w(2*l.size(),0);f=0;d=l.size();for(h=0;f<d;)g=l.get(f),a[h++]=g[0],a[h++]=g[1],l.set(f++,null)}return a},"java.util.List,~A,~A,~N");d(c$,"getToPosition",function(a){var b=this.shiftTo(a);return null!=b?b[0]:a},"~N");d(c$,"getToWord",function(a){a=this.shiftTo(a);return null!=a?w(-1,[a[0],a[0]+a[2]*(this.getFromRatio()-1)]):null},"~N");d(c$,"getMappedPosition",function(a){var b=this.shiftFrom(a);return null!=b?
808 b[0]:a},"~N");d(c$,"getMappedWord",function(a){a=this.shiftFrom(a);return null!=a?w(-1,[a[0],a[0]+a[2]*(this.getToRatio()-1)]):null},"~N");d(c$,"getInverse",function(){return new jalview.util.MapList(this.getToRanges(),this.getFromRanges(),this.getToRatio(),this.getFromRatio())});d(c$,"containsEither",function(a,b){return a?this.getFromLowest()>=b.getFromLowest()&&this.getFromHighest()<=b.getFromHighest()||this.getFromLowest()<=b.getFromLowest()&&this.getFromHighest()>=b.getFromHighest():this.getToLowest()>=
809 b.getToLowest()&&this.getToHighest()<=b.getToHighest()||this.getToLowest()<=b.getToLowest()&&this.getToHighest()>=b.getToHighest()},"~B,jalview.util.MapList");e(c$,"toString",function(){var a=new StringBuilder(64);a.append("From (").append(this.fromRatio).append(":").append(this.toRatio).append(") [");for(var b,c=this.fromShifts.iterator();c.hasNext()&&((b=c.next())||1);)a.append(" ").append(java.util.Arrays.toString(b));a.append(" ] To [");for(c=this.toShifts.iterator();c.hasNext()&&((b=c.next())||
810 1);)a.append(" ").append(java.util.Arrays.toString(b));a.append(" ]");return a.toString()})});p("jalview.util");q(null,"jalview.util.MappingUtils","jalview.analysis.AlignmentSorter jalview.commands.EditCommand $.OrderCommand jalview.datamodel.AlignmentOrder $.ColumnSelection $.SearchResults $.Sequence $.SequenceGroup jalview.util.Comparison $.StringUtils java.util.ArrayList $.Collections $.HashMap".split(" "),function(){c$=B(jalview.util,"MappingUtils");c$.mapCutOrPaste=d(c$,"mapCutOrPaste",function(a,
811 b){var c=a.getAction();b&&c.getUndoAction();System.err.println("MappingUtils.mapCutOrPaste not yet implemented")},"jalview.commands.EditCommand.Edit,~B,java.util.List,jalview.commands.EditCommand,java.util.Set");c$.mapEditCommand=d(c$,"mapEditCommand",function(a,b,c,f,l){if(!c.isNucleotide())return null;for(var d=new java.util.HashMap,g,h=c.getSequences().iterator();h.hasNext()&&((g=h.next())||1);){var e=g.getDatasetSequence();if(null!=e){var n=new jalview.datamodel.Sequence(g);n.setDatasetSequence(e);
812 d.put(e,n)}}g=a.priorState(b);h=new jalview.commands.EditCommand;for(a=a.getEditIterator(!b);a.hasNext();)e=a.next(),e.getAction()===jalview.commands.EditCommand.Action.CUT||e.getAction()===jalview.commands.EditCommand.Action.PASTE?jalview.util.MappingUtils.mapCutOrPaste(e,b,c.getSequences(),h,l):(e.getAction()===jalview.commands.EditCommand.Action.INSERT_GAP||e.getAction()===jalview.commands.EditCommand.Action.DELETE_GAP)&&jalview.util.MappingUtils.mapInsertOrDelete(e,b,g,c.getSequences(),d,f,h,
813 l);return 0<h.getSize()?h:null},"jalview.commands.EditCommand,~B,jalview.datamodel.AlignmentI,~S,java.util.Set");c$.mapInsertOrDelete=d(c$,"mapInsertOrDelete",function(a,b,c,f,l,d,g,h){var e=a.getAction();b&&(e=e.getUndoAction());b=a.getNumber();var n=a.getPosition(),x,u=0;for(a=a.getSequences();u<a.length&&((x=a[u])||1);u++){var D=x.getDatasetSequence();if(null!=D){var m=c.get(D),p=m.findPosition(n),p=jalview.util.MappingUtils.buildSearchResults(x,p,h);if(!p.isEmpty())for(var q,s=f.iterator();s.hasNext()&&
814 ((q=s.next())||1);)if(D=q.getDatasetSequence(),null!=D){var D=l.get(D),r=p.getResults(D,0,D.getLength());if(null!=r){var t=3*b,r=e===jalview.commands.EditCommand.Action.DELETE_GAP?r[0]-t:r[0],v=resultClazz_innerTypeInstance(jalview.commands.EditCommand.Edit,this,null,e,E(-1,[q]),r,t,d);g.addEdit(v);e===jalview.commands.EditCommand.Action.INSERT_GAP?D.setSequence(String.instantialize(jalview.util.StringUtils.insertCharAt(D.getSequence(),r,t,d))):e===jalview.commands.EditCommand.Action.DELETE_GAP&&
815 D.setSequence(String.instantialize(jalview.util.StringUtils.deleteChars(D.getSequence(),r,r+t)))}}e===jalview.commands.EditCommand.Action.INSERT_GAP?m.setSequence(String.instantialize(jalview.util.StringUtils.insertCharAt(m.getSequence(),n,b,d))):e===jalview.commands.EditCommand.Action.DELETE_GAP&&m.setSequence(String.instantialize(jalview.util.StringUtils.deleteChars(m.getSequence(),n,n+b)))}}},"jalview.commands.EditCommand.Edit,~B,java.util.Map,java.util.List,java.util.Map,~S,jalview.commands.EditCommand,java.util.Set");
816 c$.buildSearchResults=d(c$,"buildSearchResults",function(a,b,c){var f=new jalview.datamodel.SearchResults;jalview.util.MappingUtils.addSearchResults(f,a,b,c);return f},"jalview.datamodel.SequenceI,~N,java.util.Set");c$.addSearchResults=d(c$,"addSearchResults",function(a,b,c,f){if(c>=b.getStart()&&c<=b.getEnd()){var l;for(f=f.iterator();f.hasNext()&&((l=f.next())||1);)l.markMappedRegion(b,c,a)}},"jalview.datamodel.SearchResults,jalview.datamodel.SequenceI,~N,java.util.Set");c$.mapSequenceGroup=d(c$,
817 "mapSequenceGroup",function(a,b,c){var f=c.isNucleotide();b=(f?b:c).getAlignment().getCodonFrames();var l=new jalview.datamodel.SequenceGroup(a);l.cs=c.getGlobalColourScheme();l.clear();var d=-1,g=-1,h=a.getStartRes(),e=a.getEndRes(),n;for(a=a.getSequences().iterator();a.hasNext()&&((n=a.next())||1);){for(var x=h;x<=e&&jalview.util.Comparison.isGap(n.getCharAt(x));)x++;if(!(x>e)){for(var u=e;u>=h&&jalview.util.Comparison.isGap(n.getCharAt(u));)u--;for(var x=n.findPosition(x),u=n.findPosition(u),D,
818 m=b.iterator();m.hasNext()&&((D=m.next())||1);){var p=f?D.getDnaForAaSeq(n):D.getAaForDnaSeq(n);if(null!=p)for(var q,s=c.getAlignment().getSequences().iterator();s.hasNext()&&((q=s.next())||1);){var r=0,t=0;if(q.getDatasetSequence()===p){for(var p=jalview.util.MappingUtils.buildSearchResults(n,x,java.util.Collections.singleton(D)),v,p=p.getResults().iterator();p.hasNext()&&((v=p.next())||1);)r=v.getStart(),t=v.getEnd();p=jalview.util.MappingUtils.buildSearchResults(n,u,java.util.Collections.singleton(D));
819 for(p=p.getResults().iterator();p.hasNext()&&((v=p.next())||1);)r=Math.min(r,v.getStart()),t=Math.max(t,v.getEnd());r=q.findIndex(r)-1;d=-1==d?r:Math.min(d,r);t=q.findIndex(t)-1;g=-1==g?t:Math.max(g,t);l.addSequence(q,!1);break}}}}}l.setStartRes(0>d?0:d);l.setEndRes(0>g?0:g);return l},"jalview.datamodel.SequenceGroup,jalview.api.AlignViewportI,jalview.api.AlignViewportI");c$.mapOrderCommand=d(c$,"mapOrderCommand",function(a,b,c,f){b=a.getSequenceOrder(b);for(var l=new java.util.ArrayList,d=0,g=c.isNucleotide(),
820 h,e=0;e<b.length&&((h=b[e])||1);e++)for(var n,x=f.iterator();x.hasNext()&&((n=x.next())||1);){var u=g?n.getDnaForAaSeq(h):n.getAaForDnaSeq(h);if(null!=u)for(var D,m=c.getSequences().iterator();m.hasNext()&&((D=m.next())||1);)if(D.getDatasetSequence()===u){l.add(D);d++;break}}if(0==d)return null;if(d<c.getHeight())for(e=c.getSequences().iterator();e.hasNext()&&((h=e.next())||1);)l.contains(h)||l.add(h);f=l.toArray(Array(l.size()));h=c.getSequencesArray();jalview.analysis.AlignmentSorter.sortBy(c,new jalview.datamodel.AlignmentOrder(f));
821 return new jalview.commands.OrderCommand(a.getDescription(),h,c)},"jalview.commands.OrderCommand,~B,jalview.datamodel.AlignmentI,java.util.Set");c$.mapColumnSelection=d(c$,"mapColumnSelection",function(a,b,c){var f=(c.isNucleotide()?b:c).getAlignment().getCodonFrames(),l=new jalview.datamodel.ColumnSelection;if(null==a)return l;var d=b.getAlignment().getGapCharacter(),g;for(a=a.getSelected().iterator();a.hasNext()&&((g=a.next())||1);){for(var h=g.intValue(),e=2147483647,n=-2147483648,x,u=b.getAlignment().getSequences().iterator();u.hasNext()&&
822 ((x=u.next())||1);)if(x.getCharAt(h)!=d)for(var D=x.findPosition(h),m,D=jalview.util.MappingUtils.buildSearchResults(x,D,f).getResults().iterator();D.hasNext()&&((m=D.next())||1);)for(var p=m.getStart(),q=m.getEnd(),r=m.getSequence(),s,t=c.getAlignment().getSequences().iterator();t.hasNext()&&((s=t.next())||1);)if(s.getDatasetSequence()===r){p=s.findIndex(p);q=s.findIndex(q);e=Math.min(e,p);n=Math.max(n,q);break}for(h=e;h<=n;h++)l.addElement(h-1)}return l},"jalview.datamodel.ColumnSelection,jalview.api.AlignViewportI,jalview.api.AlignViewportI");
823 c$.findCodonFor=d(c$,"findCodonFor",function(a,b,c){b=a.findPosition(b);var f;for(c=c.iterator();c.hasNext()&&((f=c.next())||1);)if(f.involvesSequence(a))return f.getMappedCodon(a.getDatasetSequence(),b);return null},"jalview.datamodel.SequenceI,~N,java.util.Set");c$.flattenRanges=d(c$,"flattenRanges",function(a){for(var b=0,c=0;c<a.length-1;c+=2)b+=a[c+1]-a[c]+1;for(var b=w(b,0),f=0,c=0;c<a.length-1;c+=2)for(var l=a[c];l<=a[c+1];l++)b[f++]=l;return b},"~A");c$.findMappingsForSequence=d(c$,"findMappingsForSequence",
824 function(a,b){var c=new java.util.ArrayList;if(null==a||null==b)return c;for(var f,l=b.iterator();l.hasNext()&&((f=l.next())||1);)f.involvesSequence(a)&&c.add(f);return c},"jalview.datamodel.SequenceI,java.util.Set")});p("jalview.commands");q(["jalview.commands.CommandI","java.lang.Enum","java.util.ArrayList"],"jalview.commands.EditCommand","jalview.analysis.AlignSeq jalview.datamodel.AlignmentAnnotation $.Annotation $.Sequence $.SequenceFeature jalview.schemes.ResidueProperties jalview.util.Comparison $.ReverseListIterator $.StringUtils java.lang.StringBuffer java.util.HashMap $.Hashtable".split(" "),
825 function(){c$=s(function(){this.description=this.edits=null;H("jalview.commands.EditCommand.Edit")||jalview.commands.EditCommand.$EditCommand$Edit$();r(this,arguments)},jalview.commands,"EditCommand",null,jalview.commands.CommandI);J(c$,function(){this.edits=new java.util.ArrayList});m(c$,function(){});m(c$,function(a){this.description=a},"~S");m(c$,function(a,b,c,f,l,d){this.description=a;(b===jalview.commands.EditCommand.Action.CUT||b===jalview.commands.EditCommand.Action.PASTE)&&this.setEdit(C(jalview.commands.EditCommand.Edit,
826 this,null,b,c,f,l,d));this.performEdit(0,null)},"~S,jalview.commands.EditCommand.Action,~A,~N,~N,jalview.datamodel.AlignmentI");m(c$,function(a,b,c,f,l,d,g){this.description=a;b===jalview.commands.EditCommand.Action.REPLACE&&this.setEdit(C(jalview.commands.EditCommand.Edit,this,null,b,f,l,d,g,c));this.performEdit(0,null)},"~S,jalview.commands.EditCommand.Action,~S,~A,~N,~N,jalview.datamodel.AlignmentI");d(c$,"setEdit",function(a){this.edits.clear();this.edits.add(a)},"jalview.commands.EditCommand.Edit");
827 d(c$,"addEdit",function(a){jalview.commands.EditCommand.expandEdit(this.edits,a)||this.edits.add(a)},"jalview.commands.EditCommand.Edit");c$.expandEdit=d(c$,"expandEdit",function(a,b){if(null==a||a.isEmpty())return!1;var c=a.get(a.size()-1),f=b.command;if(c.command!==f||c.seqs.length!=b.seqs.length)return!1;for(var l=0;l<b.seqs.length;l++)if(c.seqs[l].getDatasetSequence()!==b.seqs[l].getDatasetSequence())return!1;return f===jalview.commands.EditCommand.Action.INSERT_GAP&&b.position==c.position+c.number||
828 f===jalview.commands.EditCommand.Action.DELETE_GAP&&b.position+b.number==c.position?(c.number+=b.number,c.seqs=b.seqs,f===jalview.commands.EditCommand.Action.DELETE_GAP&&c.position--,!0):!1},"java.util.List,jalview.commands.EditCommand.Edit");d(c$,"clearEdits",function(){this.edits.clear()});d(c$,"getEdit",function(a){return 0<=a&&a<this.edits.size()?this.edits.get(a):null},"~N");e(c$,"getDescription",function(){return this.description});e(c$,"getSize",function(){return this.edits.size()});d(c$,"getAlignment",
829 function(){return this.edits.isEmpty()?null:this.edits.get(0).al});d(c$,"appendEdit",function(a,b,c,f,l,d){this.appendEdit(a,b,c,f,l,d,null)},"jalview.commands.EditCommand.Action,~A,~N,~N,jalview.datamodel.AlignmentI,~B");d(c$,"appendEdit",function(a,b,c,f,l,d,g){a=C(jalview.commands.EditCommand.Edit,this,null,a,b,c,f,l.getGapCharacter());l.getHeight()==b.length&&(a.al=l,a.fullAlignmentHeight=!0);this.addEdit(a);d&&jalview.commands.EditCommand.performEdit(a,g)},"jalview.commands.EditCommand.Action,~A,~N,~N,jalview.datamodel.AlignmentI,~B,~A");
830 d(c$,"appendEdit",function(a,b,c,f){b.getHeight()==a.seqs.length&&(a.al=b,a.fullAlignmentHeight=!0);this.addEdit(a);c&&jalview.commands.EditCommand.performEdit(a,f)},"jalview.commands.EditCommand.Edit,jalview.datamodel.AlignmentI,~B,~A");d(c$,"performEdit",function(a,b){for(var c=this.edits.listIterator(a);c.hasNext();){var f=c.next();jalview.commands.EditCommand.performEdit(f,b)}},"~N,~A");c$.performEdit=d(c$,"performEdit",function(a,b){switch(a.command){case jalview.commands.EditCommand.Action.INSERT_GAP:jalview.commands.EditCommand.insertGap(a);
831 break;case jalview.commands.EditCommand.Action.DELETE_GAP:jalview.commands.EditCommand.deleteGap(a);break;case jalview.commands.EditCommand.Action.CUT:jalview.commands.EditCommand.cut(a,b);break;case jalview.commands.EditCommand.Action.PASTE:jalview.commands.EditCommand.paste(a,b);break;case jalview.commands.EditCommand.Action.REPLACE:jalview.commands.EditCommand.replace(a)}},"jalview.commands.EditCommand.Edit,~A");e(c$,"doCommand",function(a){this.performEdit(0,a)},"~A");e(c$,"undoCommand",function(a){for(var b=
832 this.edits.listIterator(this.edits.size());b.hasPrevious();){var c=b.previous();switch(c.command){case jalview.commands.EditCommand.Action.INSERT_GAP:jalview.commands.EditCommand.deleteGap(c);break;case jalview.commands.EditCommand.Action.DELETE_GAP:jalview.commands.EditCommand.insertGap(c);break;case jalview.commands.EditCommand.Action.CUT:jalview.commands.EditCommand.paste(c,a);break;case jalview.commands.EditCommand.Action.PASTE:jalview.commands.EditCommand.cut(c,a);break;case jalview.commands.EditCommand.Action.REPLACE:jalview.commands.EditCommand.replace(c)}}},
833 "~A");c$.insertGap=d(c$,"insertGap",function(a){for(var b=0;b<a.seqs.length;b++)a.seqs[b].insertCharAt(a.position,a.number,a.gapChar);jalview.commands.EditCommand.adjustAnnotations(a,!0,!1,null)},"jalview.commands.EditCommand.Edit");c$.deleteGap=d(c$,"deleteGap",function(a){for(var b=0;b<a.seqs.length;b++)a.seqs[b].deleteChars(a.position,a.position+a.number);jalview.commands.EditCommand.adjustAnnotations(a,!1,!1,null)},"jalview.commands.EditCommand.Edit");c$.cut=d(c$,"cut",function(a,b){var c=!1;
834 a.string=N(a.seqs.length,"\x00");for(var f=0;f<a.seqs.length;f++){var l=a.seqs[f];if(l.getLength()>a.position){a.string[f]=l.getSequence(a.position,a.position+a.number);var d=l.getDatasetSequence();null!=a.oldds&&null!=a.oldds[f]&&l.setDatasetSequence(null);l.deleteChars(a.position,a.position+a.number);if(null!=a.oldds&&null!=a.oldds[f])l.setDatasetSequence(a.oldds[f]),a.oldds[f]=d;else if(d!==l.getDatasetSequence()||null!=l.getSequenceFeatures())null==a.oldds&&(a.oldds=Array(a.seqs.length)),a.oldds[f]=
835 d,jalview.commands.EditCommand.adjustFeatures(a,f,l.findPosition(a.position),l.findPosition(a.position+a.number),!1)}1>l.getLength()&&(a.al.deleteSequence(l),c=!0)}jalview.commands.EditCommand.adjustAnnotations(a,!1,c,b)},"jalview.commands.EditCommand.Edit,~A");c$.paste=d(c$,"paste",function(a,b){for(var c,f,l,d,g,h=!1,e=0,n=0,x=0;x<a.seqs.length;x++){f=!1;l=null!=a.oldds&&null!=a.oldds[x];1>a.seqs[x].getLength()&&(a.alIndex[x]<a.al.getHeight()?0>a.alIndex[x]||(void 0).add(a.alIndex[x],a.seqs[x]):
836 a.al.addSequence(a.seqs[x]),h=!0);d=a.seqs[x].getStart();g=a.seqs[x].getEnd();c=new StringBuffer;c.append(a.seqs[x].getSequence());if(null!=a.string&&null!=a.string[x]){if(a.position>=c.length())for(var u=a.position-c.length();0<u;)c.append(a.gapChar),u--;c.insert(a.position,a.string[x]);for(u=0;u<a.string[x].length;u++)23!=jalview.schemes.ResidueProperties.aaIndex[a.string[x][u].charCodeAt(0)]&&(f||(f=!0,e=a.seqs[x].findPosition(a.position),n=a.seqs[x].findPosition(a.position+a.number)),a.seqs[x].getStart()==
837 e?d--:g++);a.string[x]=null}a.seqs[x].setSequence(c.toString());a.seqs[x].setStart(d);a.seqs[x].setEnd(g);f&&(null!=a.seqs[x].getDatasetSequence()&&(l?c=a.oldds[x]:(c=new jalview.datamodel.Sequence(a.seqs[x].getName(),jalview.analysis.AlignSeq.extractGaps(jalview.util.Comparison.GapChars,a.seqs[x].getSequenceAsString()),a.seqs[x].getStart(),a.seqs[x].getEnd()),c.setDescription(a.seqs[x].getDescription())),null==a.oldds&&(a.oldds=Array(a.seqs.length)),a.oldds[x]=a.seqs[x].getDatasetSequence(),a.seqs[x].setDatasetSequence(c)),
838 jalview.commands.EditCommand.adjustFeatures(a,x,e,n,!0))}jalview.commands.EditCommand.adjustAnnotations(a,!0,h,b);a.string=null},"jalview.commands.EditCommand.Edit,~A");c$.replace=d(c$,"replace",function(a){var b,c,f=a.position,l=a.number;a.number=f+a.string[0].length;for(var d=0;d<a.seqs.length;d++){var g=null!=a.oldds&&null!=a.oldds[d];c=a.seqs[d].getSequenceAsString();b=new StringBuffer(c.substring(0,f));b.append(a.string[d]);var h=jalview.analysis.AlignSeq.extractGaps(jalview.util.Comparison.GapChars,
839 String.instantialize(a.string[d])),e=a.seqs[d].findPosition(f)-a.seqs[d].getStart();b.append(c.substring(l));a.seqs[d].setSequence(b.toString());a.string[d]=c.substring(f,l).toCharArray();b=jalview.analysis.AlignSeq.extractGaps(jalview.util.Comparison.GapChars,String.instantialize(a.string[d]));h.toLowerCase().equals(b.toLowerCase())||(g?(h=a.seqs[d].getDatasetSequence(),a.seqs[d].setDatasetSequence(a.oldds[d]),a.oldds[d]=h):(null==a.oldds&&(a.oldds=Array(a.seqs.length)),a.oldds[d]=a.seqs[d].getDatasetSequence(),
840 g=new jalview.datamodel.Sequence(a.seqs[d].getDatasetSequence()),b=g.getSequenceAsString(),h=b.substring(0,e)+h+b.substring(e+h.length),g.setSequence(h.toUpperCase()),a.seqs[d].setDatasetSequence(g)))}},"jalview.commands.EditCommand.Edit");c$.adjustAnnotations=d(c$,"adjustAnnotations",function(a,b,c,f){var l=null;c&&!b&&(a.deletedAnnotationRows=new java.util.Hashtable);if(a.fullAlignmentHeight)l=a.al.getAlignmentAnnotation();else for(var d=0,g,h=0;h<a.seqs.length;h++)if(c)if(b){if(null!=a.deletedAnnotationRows&&
841 a.deletedAnnotationRows.containsKey(a.seqs[h])){var e=a.deletedAnnotationRows.get(a.seqs[h]);a.seqs[h].setAlignmentAnnotation(e);if(null!=e){for(u=0;u<e.length;u++)a.al.addAnnotation(e[u]);for(u=0;u<e.length;u++)a.al.setAnnotationIndex(e[u],u);for(u=0;null!=f&&u<f.length;u++)if(f[u]!==a.al){var n=f[u].getWidth()+1;for(g=0;g<e.length;g++){var x=new jalview.datamodel.AlignmentAnnotation(e[g]);a.seqs[h].addAlignmentAnnotation(x);x.padAnnotation(n);f[u].addAnnotation(x);f[u].setAnnotationIndex(x,g)}}}}}else{if(g=
842 a.seqs[h].getAnnotation(),null!=g){for(var e=g.length,u=0;u<g.length;u++)a.al.deleteAnnotation(g[u])||(g[u]=null,e--);a.seqs[h].setAlignmentAnnotation(null);if(e!=g.length){e=Array(e);for(n=u=0;u<g.length;u++)null!=g[u]&&(e[n++]=g[u],g[u]=null);a.deletedAnnotationRows.put(a.seqs[h],e);for(g=0;null!=f&&g<f.length;g++)if(f[g]!==a.al&&(e=f[g].getAlignmentAnnotation(),!(null==e||0==e.length)))for(u=0;u<e.length;u++)e[u].sequenceRef===a.seqs[h]&&f[g].deleteAnnotation(e[u])}else a.deletedAnnotationRows.put(a.seqs[h],
843 g)}}else null!=a.seqs[h].getAnnotation()&&(0==d?l=a.seqs[h].getAnnotation():(g=Array(d+a.seqs[h].getAnnotation().length),System.arraycopy(l,0,g,0,d),System.arraycopy(a.seqs[h].getAnnotation(),0,g,d,a.seqs[h].getAnnotation().length),l=g),d=l.length);if(null!=l){b||(a.deletedAnnotations=new java.util.Hashtable);for(g=0;g<l.length;g++)if(!(l[g].autoCalculated||null==l[g].annotations)){f=0;d=l[g].annotations.length;if(b){if(c=Array(d+a.number),l[g].padGaps)for(u=0;u<c.length;u++)c[u]=new jalview.datamodel.Annotation(a.gapChar+
844 "",null," ",0)}else f=a.position<d?a.position+a.number>=d?d:d-a.number:d,0>f&&(f=d),c=Array(f);b?a.position<l[g].annotations.length?(System.arraycopy(l[g].annotations,0,c,0,a.position),null!=a.deletedAnnotations&&a.deletedAnnotations.containsKey(l[g].annotationId)&&(f=a.deletedAnnotations.get(l[g].annotationId),System.arraycopy(f,0,c,a.position,a.number)),System.arraycopy(l[g].annotations,a.position,c,a.position+a.number,d-a.position)):null!=a.deletedAnnotations&&a.deletedAnnotations.containsKey(l[g].annotationId)?
845 (f=a.deletedAnnotations.get(l[g].annotationId),c=Array(l[g].annotations.length+f.length),System.arraycopy(l[g].annotations,0,c,0,l[g].annotations.length),System.arraycopy(f,0,c,l[g].annotations.length,f.length)):c=l[g].annotations:f!=d||2>a.position?(f=Math.min(a.position,l[g].annotations.length),0<f&&System.arraycopy(l[g].annotations,0,c,0,f),d=Array(a.number),f>=a.position&&(f=Math.min(a.number,l[g].annotations.length-a.position),0<f&&System.arraycopy(l[g].annotations,a.position,d,0,f)),a.deletedAnnotations.put(l[g].annotationId,
846 d),l[g].annotations.length>a.position+a.number&&System.arraycopy(l[g].annotations,a.position+a.number,c,a.position,l[g].annotations.length-a.position-a.number)):(c=d-a.position,0<c?(d=Array(a.number),System.arraycopy(l[g].annotations,a.position,d,0,c),a.deletedAnnotations.put(l[g].annotationId,d),f=Math.min(l[g].annotations.length,a.position),c=Array(f),System.arraycopy(l[g].annotations,0,c,0,f)):c=l[g].annotations);l[g].annotations=c}}},"jalview.commands.EditCommand.Edit,~B,~B,~A");c$.adjustFeatures=
847 d(c$,"adjustFeatures",function(a,b,c,f,l){b=a.seqs[b];var d=b.getDatasetSequence();null==d&&(d=b);if(l)null!=a.editedFeatures&&a.editedFeatures.containsKey(b)&&d.setSequenceFeatures(a.editedFeatures.get(b));else if(l=d.getSequenceFeatures(),null!=l){for(var g=Array(l.length),h=f-c,e=0;e<l.length;e++){var n=new jalview.datamodel.SequenceFeature(l[e]);g[e]=n;l[e].getEnd()<c||(l[e].getBegin()>f?(l[e].setBegin(n.getBegin()-h),l[e].setEnd(n.getEnd()-h)):(l[e].getBegin()>=c&&l[e].setBegin(c),l[e].getEnd()<
848 f&&l[e].setEnd(f-1),l[e].setEnd(l[e].getEnd()-h),l[e].getBegin()>l[e].getEnd()&&d.deleteFeature(l[e])))}null==a.editedFeatures&&(a.editedFeatures=new java.util.Hashtable);a.editedFeatures.put(b,g)}},"jalview.commands.EditCommand.Edit,~N,~N,~N,~B");d(c$,"getEdits",function(){return this.edits});d(c$,"priorState",function(a){var b=new java.util.HashMap;if(null==this.getEdits())return b;if(a){for(var c,f=this.getEdits().iterator();f.hasNext()&&((c=f.next())||1);){var l;a=0;for(var d=c.getSequences();a<
849 d.length&&((l=d[a])||1);a++){var g=l.getDatasetSequence(),e=b.get(g);null==e&&(e=new jalview.datamodel.Sequence("",l.getSequenceAsString()),e.setDatasetSequence(g),b.put(g,e))}}return b}for(c=new jalview.util.ReverseListIterator(this.getEdits());c.hasNext();){var d=c.next(),f=d.getAction(),j=d.getPosition(),n=d.getNumber(),x=d.getGapCharacter();a=0;for(d=d.getSequences();a<d.length&&((l=d[a])||1);a++)g=l.getDatasetSequence(),e=b.get(g),null==e&&(e=new jalview.datamodel.Sequence("",l.getSequenceAsString()),
850 e.setDatasetSequence(g),b.put(g,e)),null!=g&&(f===jalview.commands.EditCommand.Action.DELETE_GAP?e.setSequence(String.instantialize(jalview.util.StringUtils.insertCharAt(e.getSequence(),j,n,x))):f===jalview.commands.EditCommand.Action.INSERT_GAP?e.setSequence(String.instantialize(jalview.util.StringUtils.deleteChars(e.getSequence(),j,j+n))):System.err.println("Can't undo edit action "+f))}return b},"~B");d(c$,"getEditIterator",function(a){return a?this.getEdits().iterator():new jalview.util.ReverseListIterator(this.getEdits())},
851 "~B");c$.$EditCommand$Edit$=function(){A(self.c$);c$=s(function(){O(this,arguments);this.oldds=null;this.fullAlignmentHeight=!1;this.alIndex=this.seqs=this.string=this.command=this.al=this.editedFeatures=this.deletedAnnotations=this.deletedAnnotationRows=null;this.number=this.position=0;this.gapChar="\x00";r(this,arguments)},jalview.commands.EditCommand,"Edit");m(c$,function(a,b,c,f,l){this.command=a;this.seqs=b;this.position=c;this.number=f;this.gapChar=l},"jalview.commands.EditCommand.Action,~A,~N,~N,~S");
852 m(c$,function(a,b,c,f,l){this.gapChar=l.getGapCharacter();this.command=a;this.seqs=b;this.position=c;this.number=f;this.al=l;this.alIndex=w(b.length,0);for(a=0;a<b.length;a++)this.alIndex[a]=l.findIndex(b[a]);this.fullAlignmentHeight=l.getHeight()==b.length},"jalview.commands.EditCommand.Action,~A,~N,~N,jalview.datamodel.AlignmentI");m(c$,function(a,b,c,f,l,d){this.command=a;this.seqs=b;this.position=c;this.number=f;this.al=l;this.gapChar=l.getGapCharacter();this.string=N(b.length,"\x00");for(a=0;a<
853 b.length;a++)this.string[a]=d.toCharArray();this.fullAlignmentHeight=l.getHeight()==b.length},"jalview.commands.EditCommand.Action,~A,~N,~N,jalview.datamodel.AlignmentI,~S");d(c$,"getSequences",function(){return this.seqs});d(c$,"getPosition",function(){return this.position});d(c$,"getAction",function(){return this.command});d(c$,"getNumber",function(){return this.number});d(c$,"getGapCharacter",function(){return this.gapChar});c$=z()};A(self.c$);c$=B(jalview.commands.EditCommand,"Action",Enum);d(c$,
854 "getUndoAction",function(){switch(this){case jalview.commands.EditCommand.Action.INSERT_GAP:return jalview.commands.EditCommand.Action.DELETE_GAP;case jalview.commands.EditCommand.Action.CUT:return jalview.commands.EditCommand.Action.PASTE;case jalview.commands.EditCommand.Action.DELETE_GAP:return jalview.commands.EditCommand.Action.INSERT_GAP;case jalview.commands.EditCommand.Action.PASTE:return jalview.commands.EditCommand.Action.CUT;case jalview.commands.EditCommand.Action.REPLACE:return jalview.commands.EditCommand.Action.REPLACE}return null});
855 R(c$,"INSERT_GAP",0,[]);R(c$,"DELETE_GAP",1,[]);R(c$,"CUT",2,[]);R(c$,"PASTE",3,[]);R(c$,"REPLACE",4,[]);R(c$,"INSERT_NUC",5,[]);c$=z()});p("jalview.commands");M(jalview.commands,"CommandI");p("jalview.analysis");q(["jalview.schemes.ResidueProperties","java.lang.StringBuffer"],"jalview.analysis.AlignSeq","jalview.datamodel.Mapping $.Sequence jalview.util.Comparison $.Format $.MapList $.MessageManager java.awt.Color java.lang.Error $.StringBuilder java.util.ArrayList $.Arrays $.StringTokenizer".split(" "),
856 function(){c$=s(function(){this.s2str=this.s1str=this.s2=this.s1=this.seq2=this.seq1=this.traceback=this.F=this.E=this.score=null;this.maxj=this.maxi=0;this.aseq2=this.aseq1=null;this.astr2=this.astr1="";this.prev=this.pid=this.maxscore=this.count=this.seq2end=this.seq2start=this.seq1end=this.seq1start=0;this.gapOpen=120;this.gapExtend=20;this.intToStr=this.lookup=null;this.defInt=23;this.charToInt=this.type=this.output=null;r(this,arguments)},jalview.analysis,"AlignSeq");J(c$,function(){this.lookup=
857 jalview.schemes.ResidueProperties.getBLOSUM62();this.intToStr=jalview.analysis.AlignSeq.pep;this.output=new StringBuffer});m(c$,function(a,b,c){this.SeqInit(a,a.getSequenceAsString(),b,b.getSequenceAsString(),c)},"jalview.datamodel.SequenceI,jalview.datamodel.SequenceI,~S");m(c$,function(a,b,c,f,l){this.SeqInit(a,b.toUpperCase(),c,f.toUpperCase(),l)},"jalview.datamodel.SequenceI,~S,jalview.datamodel.SequenceI,~S,~S");d(c$,"getMaxScore",function(){return this.maxscore});d(c$,"getSeq2Start",function(){return this.seq2start});
858 d(c$,"getSeq2End",function(){return this.seq2end});d(c$,"getSeq1Start",function(){return this.seq1start});d(c$,"getSeq1End",function(){return this.seq1end});d(c$,"getOutput",function(){return this.output.toString()});d(c$,"getAStr1",function(){return this.astr1});d(c$,"getAStr2",function(){return this.astr2});d(c$,"getASeq1",function(){return this.aseq1});d(c$,"getASeq2",function(){return this.aseq2});d(c$,"getS1",function(){return this.s1});d(c$,"getS2",function(){return this.s2});d(c$,"getAlignedSeq1",
859 function(){var a=new jalview.datamodel.Sequence(this.s1.getName(),this.getAStr1());a.setStart(this.s1.getStart()+this.getSeq1Start()-1);a.setEnd(this.s1.getStart()+this.getSeq1End()-1);a.setDatasetSequence(null==this.s1.getDatasetSequence()?this.s1:this.s1.getDatasetSequence());return a});d(c$,"getAlignedSeq2",function(){var a=new jalview.datamodel.Sequence(this.s2.getName(),this.getAStr2());a.setStart(this.s2.getStart()+this.getSeq2Start()-1);a.setEnd(this.s2.getStart()+this.getSeq2End()-1);a.setDatasetSequence(null==
860 this.s2.getDatasetSequence()?this.s2:this.s2.getDatasetSequence());return a});d(c$,"SeqInit",function(a,b,c,f,l){this.s1=a;this.s2=c;this.setDefaultParams(l);this.SeqInit(b,f)},"jalview.datamodel.SequenceI,~S,jalview.datamodel.SequenceI,~S,~S");d(c$,"SeqInit",function(a,b,c,f,l){this.s1=a;this.s2=c;this.setType(l.isDNA()?"dna":"pep");this.lookup=l.getMatrix()},"jalview.datamodel.SequenceI,~S,jalview.datamodel.SequenceI,~S,jalview.schemes.ScoreMatrix");d(c$,"SeqInit",function(a,b){this.s1str=jalview.analysis.AlignSeq.extractGaps(jalview.util.Comparison.GapChars,
861 a);this.s2str=jalview.analysis.AlignSeq.extractGaps(jalview.util.Comparison.GapChars,b);0==this.s1str.length||0==this.s2str.length?this.output.append("ALL GAPS: "+(0==this.s1str.length?this.s1.getName():" ")+(0==this.s2str.length?this.s2.getName():"")):(this.seq1=w(this.s1str.length,0),this.seq2=w(this.s2str.length,0),this.score=w(this.s1str.length,this.s2str.length,0),this.E=w(this.s1str.length,this.s2str.length,0),this.F=w(this.s1str.length,this.s2str.length,0),this.traceback=w(this.s1str.length,
862 this.s2str.length,0),this.seq1=this.stringToInt(this.s1str,this.type),this.seq2=this.stringToInt(this.s2str,this.type))},"~S,~S");d(c$,"setDefaultParams",function(a){this.setType(a);a.equals("pep")?this.lookup=jalview.schemes.ResidueProperties.getDefaultPeptideMatrix():a.equals("dna")&&(this.lookup=jalview.schemes.ResidueProperties.getDefaultDnaMatrix())},"~S");d(c$,"setType",function(a){this.type=a;if(this.type.equals("pep"))this.intToStr=jalview.analysis.AlignSeq.pep,this.charToInt=jalview.schemes.ResidueProperties.aaIndex,
863 this.defInt=23;else if(this.type.equals("dna"))this.intToStr=jalview.analysis.AlignSeq.dna,this.charToInt=jalview.schemes.ResidueProperties.nucleotideIndex,this.defInt=10;else throw this.output.append("Wrong type = dna or pep only"),Error(jalview.util.MessageManager.formatMessage("error.unknown_type_dna_or_pep",E(-1,[a])));},"~S");d(c$,"traceAlignment",function(){for(var a=-9999,b=0;b<this.seq1.length;b++)this.score[b][this.seq2.length-1]>a&&(a=this.score[b][this.seq2.length-1],this.maxi=b,this.maxj=
864 this.seq2.length-1);for(var c=0;c<this.seq2.length;c++)this.score[this.seq1.length-1][c]>a&&(a=this.score[this.seq1.length-1][c],this.maxi=this.seq1.length-1,this.maxj=c);b=this.maxi;c=this.maxj;this.maxscore=F(this.score[b][c]/10);this.seq1end=this.maxi+1;this.seq2end=this.maxj+1;this.aseq1=w(this.seq1.length+this.seq2.length,0);this.aseq2=w(this.seq1.length+this.seq2.length,0);for(this.count=this.seq1.length+this.seq2.length-1;0<b&&0<c;)this.aseq1[this.count]!=this.defInt&&0<=b&&(this.aseq1[this.count]=
865 this.seq1[b],this.astr1=this.s1str.charAt(b)+this.astr1),this.aseq2[this.count]!=this.defInt&&0<c&&(this.aseq2[this.count]=this.seq2[c],this.astr2=this.s2str.charAt(c)+this.astr2),a=this.findTrace(b,c),0==a?(b--,c--):1==a?(c--,this.aseq1[this.count]=this.defInt,this.astr1="-"+this.astr1.substring(1)):-1==a&&(b--,this.aseq2[this.count]=this.defInt,this.astr2="-"+this.astr2.substring(1)),this.count--;this.seq1start=b+1;this.seq2start=c+1;this.aseq1[this.count]!=this.defInt&&(this.aseq1[this.count]=
866 this.seq1[b],this.astr1=this.s1str.charAt(b)+this.astr1);this.aseq2[this.count]!=this.defInt&&(this.aseq2[this.count]=this.seq2[c],this.astr2=this.s2str.charAt(c)+this.astr2)});d(c$,"printAlignment",function(a){var b=this.s1.getName(),c=this.s2.getName(),f=this.s1.getName().length;this.s2.getName().length>f&&(f=this.s2.getName().length);30<f&&(f=30,this.s1.getName().length>f&&(b=this.s1.getName().substring(0,30)),this.s2.getName().length>f&&(c=this.s2.getName().substring(0,30)));var l=72-f-1,d=F((this.aseq1.length-
867 this.count)/l)+1;this.pid=0;this.output.append("Score = ").append(""+this.score[this.maxi][this.maxj]).append(jalview.analysis.AlignSeq.NEWLINE);this.output.append("Length of alignment = ").append(String.valueOf(this.aseq1.length-this.count)).append(jalview.analysis.AlignSeq.NEWLINE);this.output.append("Sequence ");this.output.append((new jalview.util.Format("%"+f+"s")).form(this.s1.getName()));this.output.append(" :  ").append(String.valueOf(this.s1.getStart())).append(" - ").append(String.valueOf(this.s1.getEnd()));
868 this.output.append(" (Sequence length = ").append(String.valueOf(this.s1str.length)).append(")").append(jalview.analysis.AlignSeq.NEWLINE);this.output.append("Sequence ");this.output.append((new jalview.util.Format("%"+f+"s")).form(this.s2.getName()));this.output.append(" :  ").append(String.valueOf(this.s2.getStart())).append(" - ").append(String.valueOf(this.s2.getEnd()));this.output.append(" (Sequence length = ").append(String.valueOf(this.s2str.length)).append(")").append(jalview.analysis.AlignSeq.NEWLINE).append(jalview.analysis.AlignSeq.NEWLINE);
869 for(var g=0;g<d;g++){this.output.append((new jalview.util.Format("%"+f+"s")).form(b)).append(" ");for(var e=0;e<l;e++)e+g*l<this.astr1.length&&this.output.append(this.astr1.charAt(e+g*l));this.output.append(jalview.analysis.AlignSeq.NEWLINE);this.output.append((new jalview.util.Format("%"+f+"s")).form(" ")).append(" ");for(e=0;e<l;e++)e+g*l<this.astr1.length&&(this.astr1.charAt(e+g*l)==this.astr2.charAt(e+g*l)&&!jalview.util.Comparison.isGap(this.astr1.charAt(e+g*l))?(this.pid++,this.output.append("|")):
870 this.type.equals("pep")?0<jalview.schemes.ResidueProperties.getPAM250(this.astr1.charAt(e+g*l),this.astr2.charAt(e+g*l))?this.output.append("."):this.output.append(" "):this.output.append(" "));this.output=this.output.append(jalview.analysis.AlignSeq.NEWLINE);this.output=this.output.append((new jalview.util.Format("%"+f+"s")).form(c)).append(" ");for(e=0;e<l;e++)e+g*l<this.astr2.length&&this.output.append(this.astr2.charAt(e+g*l));this.output.append(jalview.analysis.AlignSeq.NEWLINE).append(jalview.analysis.AlignSeq.NEWLINE)}this.pid=
871 100*(this.pid/(this.aseq1.length-this.count));this.output=this.output.append((new jalview.util.Format("Percentage ID = %2.2f\n\n")).formDouble(this.pid));try{a.print(this.output.toString())}catch(j){if(!y(j,Exception))throw j;}},"java.io.PrintStream");d(c$,"printScoreMatrix",function(a){for(var b=this.seq1.length,c=this.seq2.length,f=0;f<b;f++){if(0==f){jalview.util.Format.print(System.out,"%8s",this.s2str.substring(0,1));for(var l=1;l<c;l++)jalview.util.Format.print(System.out,"%5s",this.s2str.substring(l,
872 l+1));System.out.println()}for(l=0;l<c;l++)0==l&&jalview.util.Format.print(System.out,"%3s",this.s1str.substring(f,f+1)),jalview.util.Format.printLong(System.out,"%3d ",F(a[f][l]/10));System.out.println()}},"~A");d(c$,"findTrace",function(a,b){var c=0,f=this.score[a-1][b-1]+10*this.lookup[this.seq1[a]][this.seq2[b]];this.F[a][b]>f?(f=this.F[a][b],c=-1):this.F[a][b]==f&&-1==this.prev&&(f=this.F[a][b],c=-1);this.E[a][b]>=f?c=1:this.E[a][b]==f&&1==this.prev&&(c=1);return this.prev=c},"~N,~N");d(c$,"calcScoreMatrix",
873 function(){var a=this.seq1.length,b=this.seq2.length;this.score[0][0]=10*this.lookup[this.seq1[0]][this.seq2[0]];this.E[0][0]=-this.gapExtend;this.F[0][0]=0;for(var c=1;c<b;c++)this.E[0][c]=this.max(this.score[0][c-1]-this.gapOpen,this.E[0][c-1]-this.gapExtend),this.F[0][c]=-this.gapExtend,this.score[0][c]=this.max(10*this.lookup[this.seq1[0]][this.seq2[c]],-this.gapOpen,-this.gapExtend),this.traceback[0][c]=1;for(var f=1;f<a;f++)this.E[f][0]=-this.gapOpen,this.F[f][0]=this.max(this.score[f-1][0]-
874 this.gapOpen,this.F[f-1][0]-this.gapExtend),this.score[f][0]=this.max(10*this.lookup[this.seq1[f]][this.seq2[0]],this.E[f][0],this.F[f][0]),this.traceback[f][0]=-1;for(f=1;f<a;f++)for(c=1;c<b;c++)this.E[f][c]=this.max(this.score[f][c-1]-this.gapOpen,this.E[f][c-1]-this.gapExtend),this.F[f][c]=this.max(this.score[f-1][c]-this.gapOpen,this.F[f-1][c]-this.gapExtend),this.score[f][c]=this.max(this.score[f-1][c-1]+10*this.lookup[this.seq1[f]][this.seq2[c]],this.E[f][c],this.F[f][c]),this.traceback[f][c]=
875 this.findTrace(f,c)});c$.extractGaps=d(c$,"extractGaps",function(a,b){if(null==a||null==b)return null;for(var c=new java.util.StringTokenizer(b,a),f=new StringBuilder(b.length);c.hasMoreTokens();)f.append(c.nextToken());return f.toString()},"~S,~S");d(c$,"max",function(a,b,c){var f=a;b>a&&(f=b);c>f&&(f=c);return f},"~N,~N,~N");d(c$,"max",function(a,b){var c=a;b>a&&(c=b);return c},"~N,~N");d(c$,"stringToInt",function(a){for(var b=w(a.length,0),c=0;c<a.length;c++){var f=a.charAt(c);"a"<=f&&"z">=f&&
876 (f=String.fromCharCode(f.charCodeAt(0)-32));try{if(b[c]=this.charToInt[f.charCodeAt(0)],0>b[c]||b[c]>this.defInt)b[c]=this.defInt}catch(l){if(y(l,Exception))b[c]=this.defInt;else throw l;}}return b},"~S,~S");c$.displayMatrix=d(c$,"displayMatrix",function(a,b,c,f,l){for(var d=-1E3,g=1E3,e=0;e<c;e++)for(var j=0;j<f;j++)b[e][j]>=d&&(d=b[e][j]),b[e][j]<=g&&(g=b[e][j]);System.out.println(d+" "+g);for(e=0;e<c;e++)for(j=0;j<f;j++){var n=l*e,x=l*j;a.setColor(new java.awt.Color((b[e][j]-g)/(d-g),0,0));a.fillRect(n,
877 x,l,l)}},"java.awt.Graphics,~A,~N,~N,~N");c$.doGlobalNWAlignment=d(c$,"doGlobalNWAlignment",function(a,b,c){a=new jalview.analysis.AlignSeq(a,b,c);a.calcScoreMatrix();a.traceAlignment();return a},"jalview.datamodel.SequenceI,jalview.datamodel.SequenceI,~S");d(c$,"getMappingFromS1",function(a){for(var b=new java.util.ArrayList,c=new java.util.ArrayList,f=this.s2.getStart()+this.getSeq2Start()-2,l=this.s1.getStart()+this.getSeq1Start()-2,d=f-3,g=l-3,e=!1,j=0;j<this.astr1.length;j++){var n=this.astr1.charAt(j),
878 x=this.astr2.charAt(j);"-"!=n&&l++;"-"!=x&&f++;if(a||n==x){if(g+1!=l||d+1!=f)b.add(Integer.$valueOf(l)),c.add(Integer.$valueOf(f));e=!0;g=l;d=f}else e&&(b.add(Integer.$valueOf(g)),c.add(Integer.$valueOf(d))),e=!1}a=w(b.size()+(e?1:0),0);for(var d=w(c.size()+(e?1:0),0),j=0,u,b=b.iterator();b.hasNext()&&((u=b.next())||1);)a[j++]=u.intValue();j=0;for(b=c.iterator();b.hasNext()&&((u=b.next())||1);)d[j++]=u.intValue();e&&(a[a.length-1]=l,d[d.length-1]=f);c=new jalview.util.MapList(a,d,1,1);c=new jalview.datamodel.Mapping(c);
879 c.setTo(this.s2);return c},"~B");c$.replaceMatchingSeqsWith=d(c$,"replaceMatchingSeqsWith",function(a,b,c,f,l,d){var g=new java.util.ArrayList,e=new java.util.ArrayList,j=new java.util.ArrayList;if(null!=f&&0<f.getHeight()){for(var n=new java.util.ArrayList,x=new java.util.ArrayList,u,D=c.iterator();D.hasNext()&&((u=D.next())||1);){for(var m=null,p=null,q=0,s,r=f.getSequences().iterator();r.hasNext()&&((s=r.next())||1);){var t=jalview.analysis.AlignSeq.doGlobalNWAlignment(s,u,l);if(null==m||t.getMaxScore()>
880 q)q=t.getMaxScore(),p=t,m=s}System.out.println("Best Score for "+(n.size()+1)+" :"+q);n.add(m);x.add(p);f.deleteSequence(m)}f=0;for(l=a.size();f<l;f++)if(D=a.get(f),-1<(p=c.indexOf(D))){a.set(f,u=n.get(p));g.add(D);e.add(u);u.setName(D.getName());u.setDescription(D.getDescription());u.transferAnnotation(D,m=x.get(p).getMappingFromS1(!1));j.add(x.get(p));p=-1;for(q=0;q<b.size();)b.get(q).sequenceRef===D?(-1==p&&(p=q),d?b.remove(q):(s=b.remove(q),s.liftOver(u,m),s.setSequenceRef(u),u.addAlignmentAnnotation(s))):
881 q++;null!=u.getAnnotation()&&0<u.getAnnotation().length&&b.addAll(-1==p?b.size():p,java.util.Arrays.asList(u.getAnnotation()))}}return java.util.Arrays.asList([g,e,j])},"java.util.List,java.util.List,java.util.List,jalview.datamodel.AlignmentI,~S,~B");c$.computeRedundancyMatrix=d(c$,"computeRedundancyMatrix",function(a,b,c,f,l){for(var d=a.length,g=Q(d,0),e=w(d,0),j=0;j<d;j++)g[j]=0,e[j]=-1;for(var n,x,j=0;j<d;j++)for(var u=0;u<j;u++)if(j!=u){null==b?(n=a[j].getSequenceAsString(c,f),x=a[u].getSequenceAsString(c,
882 f)):(n=b[j],x=b[u]);if(-1==e[j]){var D=jalview.analysis.AlignSeq.extractGaps(jalview.util.Comparison.GapChars,n);e[j]=D.length;l&&(n=D)}-1==e[u]&&(D=jalview.analysis.AlignSeq.extractGaps(jalview.util.Comparison.GapChars,x),e[u]=D.length,l&&(x=D));n=jalview.util.Comparison.PID(n,x);e[u]<e[j]?g[u]=Math.max(n,g[u]):g[j]=Math.max(n,g[j])}return g},"~A,~A,~N,~N,~B");G(c$,"PEP","pep","DNA","dna");c$.NEWLINE=c$.prototype.NEWLINE=System.lineSeparator();G(c$,"dna",E(-1,["A","C","G","T","-"]),"pep",E(-1,"ARNDCQEGHILKMFPSTWYVBZX-".split("")))});
883 p("jalview.schemes");q("jalview.analysis.scoremodels.FeatureScoreModel $.PIDScoreModel jalview.schemes.ScoreMatrix java.awt.Color java.util.ArrayList $.HashMap $.Hashtable $.Vector".split(" "),"jalview.schemes.ResidueProperties",["java.lang.StringBuffer"],function(){c$=B(jalview.schemes,"ResidueProperties");c$.buildAmbiguityCodonSet=d(c$,"buildAmbiguityCodonSet",function(){if(0<jalview.schemes.ResidueProperties._ambiguityCodes.size())System.err.println("Ignoring multiple calls to buildAmbiguityCodonSet");
884 else{for(var a,b=jalview.schemes.ResidueProperties.ambiguityCodes.entrySet().iterator();b.hasNext()&&((a=b.next())||1);)for(var c,f=0,l=a.getValue();f<l.length&&((c=l[f])||1);f++){var d=jalview.schemes.ResidueProperties._ambiguityCodes.get(c);null==d&&jalview.schemes.ResidueProperties._ambiguityCodes.put(c,d=new java.util.ArrayList);d.contains(a.getKey())?System.err.println("Inconsistency in the IUBMB ambiguity code nomenclature table: collision for "+a.getKey()+" in residue "+c):d.add(a.getKey())}var g;
885 a=0;for(b=jalview.schemes.ResidueProperties.codonHash2.keySet().toArray(Array(jalview.schemes.ResidueProperties.codonHash2.size()));a<b.length&&((g=b[a])||1);a++){c=jalview.schemes.ResidueProperties.codonHash2.get(g);for(var f=Array(g.length),k=0,l=g.length;k<l;k++)d=""+g.charAt(k),d=jalview.schemes.ResidueProperties._ambiguityCodes.get(d),f[k]=null!=d?d.toArray(Array(d.size())):E(-1,[]);l=w(g.length,0);d=w(g.length,0);for(k=0;k<l.length;k++)l[k]=-1;l[f.length-1]=0;for(var e,h;l[0]<f[0].length;){var k=
886 N(l.length,"\x00"),j="";for(e=0;e<l.length;e++)if(0==f[e].length||0>l[e])j+=g.charAt(e),k[e]=N(-1,[g.charAt(e)]);else{var j=j+f[e][l[e]],n=jalview.schemes.ResidueProperties.ambiguityCodes.get(f[e][l[e]]);k[e]=N(n.length,"\x00");h=0;for(var x,u=0;u<n.length&&((x=n[u])||1);u++)k[e][h++]=x.charAt(0)}for(e=0;e<d.length;e++)d[e]=0;h=!0;do{e="";for(h=0;h<d.length;h++)e+=k[h][d[h]];e=jalview.schemes.ResidueProperties.codonHash2.get(e);if(h=null!=e&&e.equals(c))for(e=f.length-1;++d[e]>=k[e].length&&0<e;)d[e]=
887 0,e--}while(h&&d[0]<k[0].length);h&&jalview.schemes.ResidueProperties.codonHash2.put(j,c);for(e=f.length-1;++l[e]>=f[e].length&&0<e;)l[e]=-1,e--}}}});c$.getHydmax=d(c$,"getHydmax",function(){return 4.5});c$.getHydmin=d(c$,"getHydmin",function(){return-3.9});c$.getHyd=d(c$,"getHyd",function(){return jalview.schemes.ResidueProperties.hyd});c$.getAA3Hash=d(c$,"getAA3Hash",function(){return jalview.schemes.ResidueProperties.aa3Hash});c$.getDNA=d(c$,"getDNA",function(){return jalview.schemes.ResidueProperties.DNA});
888 c$.getBLOSUM62=d(c$,"getBLOSUM62",function(){return jalview.schemes.ResidueProperties.BLOSUM62});c$.getPAM250=d(c$,"getPAM250",function(a,b){return jalview.schemes.ResidueProperties.getPAM250(a.charAt(0),b.charAt(0))},"~S,~S");c$.getBLOSUM62=d(c$,"getBLOSUM62",function(a,b){var c=0;try{var f=jalview.schemes.ResidueProperties.aaIndex[a.charCodeAt(0)],l=jalview.schemes.ResidueProperties.aaIndex[b.charCodeAt(0)],c=jalview.schemes.ResidueProperties.BLOSUM62[f][l]}catch(d){if(!y(d,Exception))throw d;}return c},
889 "~S,~S");c$.getCodons=d(c$,"getCodons",function(a){return jalview.schemes.ResidueProperties.codonHash.containsKey(a)?jalview.schemes.ResidueProperties.codonHash.get(a):null},"~S");c$.codonTranslate=d(c$,"codonTranslate",function(a){a=jalview.schemes.ResidueProperties.codonHash2.get(a.toUpperCase());return null!=a&&a.equals("*")?"STOP":a},"~S");c$._codonTranslate=d(c$,"_codonTranslate",function(a){a=a.toUpperCase();if(-1<a.indexOf("X")||-1<a.indexOf("N"))return"X";for(var b,c=jalview.schemes.ResidueProperties.codonHash.keySet().iterator();c.hasNext()&&
890 ((b=c.next())||1);)if(jalview.schemes.ResidueProperties.codonHash.get(b).contains(a))return b;return null},"~S");c$.getDefaultPeptideMatrix=d(c$,"getDefaultPeptideMatrix",function(){return jalview.schemes.ResidueProperties.getBLOSUM62()});c$.getDefaultDnaMatrix=d(c$,"getDefaultDnaMatrix",function(){return jalview.schemes.ResidueProperties.getDNA()});c$.getScoreMatrix=d(c$,"getScoreMatrix",function(a){a=jalview.schemes.ResidueProperties.scoreMatrices.get(a);return null!=a&&v(a,jalview.schemes.ScoreMatrix)?
891 a:null},"~S");c$.getScoreModel=d(c$,"getScoreModel",function(a){return jalview.schemes.ResidueProperties.scoreMatrices.get(a)},"~S");c$.getPAM250=d(c$,"getPAM250",function(a,b){var c=jalview.schemes.ResidueProperties.aaIndex[a.charCodeAt(0)],f=jalview.schemes.ResidueProperties.aaIndex[b.charCodeAt(0)];return jalview.schemes.ResidueProperties.PAM250[c][f]},"~S,~S");c$.getDssp3state=d(c$,"getDssp3state",function(a){if(null==a)return null;for(var b=new StringBuffer,c=0;c<a.length;c++){var f=a.substring(c,
892 c+1);jalview.schemes.ResidueProperties.toDssp3State.containsKey(f)?b.append(jalview.schemes.ResidueProperties.toDssp3State.get(f)):b.append(" ")}return b.toString()},"~S");c$.getRNASecStrucState=d(c$,"getRNASecStrucState",function(a){if(null==a)return null;for(var b=new StringBuffer,c=0;c<a.length;c++){var f=a.substring(c,c+1);jalview.schemes.ResidueProperties.toRNAssState.containsKey(f)?b.append(f):b.append(" ")}return b.toString()},"~S");c$.isCloseParenRNA=d(c$,"isCloseParenRNA",function(a){return jalview.schemes.ResidueProperties.RNAcloseParen[a.charCodeAt(0)]},
893 "~S");c$.getResidues=d(c$,"getResidues",function(a,b){var c=new java.util.ArrayList;if(a)for(var f,l=jalview.schemes.ResidueProperties.nucleotideName.keySet().iterator();l.hasNext()&&((f=l.next())||1);){var d=jalview.schemes.ResidueProperties.nucleotideIndex[f.charCodeAt(0)];!b&&4<d||10<=d||(f=f.toUpperCase(),c.contains(f)||c.add(f))}else for(f=jalview.schemes.ResidueProperties.aa3Hash.keySet().iterator();f.hasNext()&&((l=f.next())||1);)d=jalview.schemes.ResidueProperties.aa3Hash.get(l).intValue(),
894 !b&&20<=d||23<=d||(l=l.toUpperCase(),c.contains(l)||c.add(l));return c},"~B,~B");c$.scoreMatrices=c$.prototype.scoreMatrices=new java.util.Hashtable;G(c$,"aaIndex",null,"nucleotideIndex",null,"purinepyrimidineIndex",null);c$.aa3Hash=c$.prototype.aa3Hash=new java.util.HashMap;c$.aa2Triplet=c$.prototype.aa2Triplet=new java.util.HashMap;c$.nucleotideName=c$.prototype.nucleotideName=new java.util.HashMap;jalview.schemes.ResidueProperties.aaIndex=w(255,0);for(var a=0;255>a;a++)jalview.schemes.ResidueProperties.aaIndex[a]=
895 23;jalview.schemes.ResidueProperties.aaIndex[65]=0;jalview.schemes.ResidueProperties.aaIndex[82]=1;jalview.schemes.ResidueProperties.aaIndex[78]=2;jalview.schemes.ResidueProperties.aaIndex[68]=3;jalview.schemes.ResidueProperties.aaIndex[67]=4;jalview.schemes.ResidueProperties.aaIndex[81]=5;jalview.schemes.ResidueProperties.aaIndex[69]=6;jalview.schemes.ResidueProperties.aaIndex[71]=7;jalview.schemes.ResidueProperties.aaIndex[72]=8;jalview.schemes.ResidueProperties.aaIndex[73]=9;jalview.schemes.ResidueProperties.aaIndex[76]=
896 10;jalview.schemes.ResidueProperties.aaIndex[75]=11;jalview.schemes.ResidueProperties.aaIndex[77]=12;jalview.schemes.ResidueProperties.aaIndex[70]=13;jalview.schemes.ResidueProperties.aaIndex[80]=14;jalview.schemes.ResidueProperties.aaIndex[83]=15;jalview.schemes.ResidueProperties.aaIndex[84]=16;jalview.schemes.ResidueProperties.aaIndex[87]=17;jalview.schemes.ResidueProperties.aaIndex[89]=18;jalview.schemes.ResidueProperties.aaIndex[86]=19;jalview.schemes.ResidueProperties.aaIndex[66]=20;jalview.schemes.ResidueProperties.aaIndex[90]=
897 21;jalview.schemes.ResidueProperties.aaIndex[88]=22;jalview.schemes.ResidueProperties.aaIndex[85]=22;jalview.schemes.ResidueProperties.aaIndex[97]=0;jalview.schemes.ResidueProperties.aaIndex[114]=1;jalview.schemes.ResidueProperties.aaIndex[110]=2;jalview.schemes.ResidueProperties.aaIndex[100]=3;jalview.schemes.ResidueProperties.aaIndex[99]=4;jalview.schemes.ResidueProperties.aaIndex[113]=5;jalview.schemes.ResidueProperties.aaIndex[101]=6;jalview.schemes.ResidueProperties.aaIndex[103]=7;jalview.schemes.ResidueProperties.aaIndex[104]=
898 8;jalview.schemes.ResidueProperties.aaIndex[105]=9;jalview.schemes.ResidueProperties.aaIndex[108]=10;jalview.schemes.ResidueProperties.aaIndex[107]=11;jalview.schemes.ResidueProperties.aaIndex[109]=12;jalview.schemes.ResidueProperties.aaIndex[102]=13;jalview.schemes.ResidueProperties.aaIndex[112]=14;jalview.schemes.ResidueProperties.aaIndex[115]=15;jalview.schemes.ResidueProperties.aaIndex[116]=16;jalview.schemes.ResidueProperties.aaIndex[119]=17;jalview.schemes.ResidueProperties.aaIndex[121]=18;
899 jalview.schemes.ResidueProperties.aaIndex[118]=19;jalview.schemes.ResidueProperties.aaIndex[98]=20;jalview.schemes.ResidueProperties.aaIndex[122]=21;jalview.schemes.ResidueProperties.aaIndex[120]=22;jalview.schemes.ResidueProperties.aaIndex[117]=22;G(c$,"maxProteinIndex",23,"maxNucleotideIndex",10);jalview.schemes.ResidueProperties.nucleotideIndex=w(255,0);for(a=0;255>a;a++)jalview.schemes.ResidueProperties.nucleotideIndex[a]=10;jalview.schemes.ResidueProperties.nucleotideIndex[65]=0;jalview.schemes.ResidueProperties.nucleotideIndex[97]=
900 0;jalview.schemes.ResidueProperties.nucleotideIndex[67]=1;jalview.schemes.ResidueProperties.nucleotideIndex[99]=1;jalview.schemes.ResidueProperties.nucleotideIndex[71]=2;jalview.schemes.ResidueProperties.nucleotideIndex[103]=2;jalview.schemes.ResidueProperties.nucleotideIndex[84]=3;jalview.schemes.ResidueProperties.nucleotideIndex[116]=3;jalview.schemes.ResidueProperties.nucleotideIndex[85]=4;jalview.schemes.ResidueProperties.nucleotideIndex[117]=4;jalview.schemes.ResidueProperties.nucleotideIndex[73]=
901 5;jalview.schemes.ResidueProperties.nucleotideIndex[105]=5;jalview.schemes.ResidueProperties.nucleotideIndex[88]=6;jalview.schemes.ResidueProperties.nucleotideIndex[120]=6;jalview.schemes.ResidueProperties.nucleotideIndex[82]=7;jalview.schemes.ResidueProperties.nucleotideIndex[114]=7;jalview.schemes.ResidueProperties.nucleotideIndex[89]=8;jalview.schemes.ResidueProperties.nucleotideIndex[121]=8;jalview.schemes.ResidueProperties.nucleotideIndex[78]=9;jalview.schemes.ResidueProperties.nucleotideIndex[110]=
902 9;jalview.schemes.ResidueProperties.nucleotideName.put("A","Adenine");jalview.schemes.ResidueProperties.nucleotideName.put("a","Adenine");jalview.schemes.ResidueProperties.nucleotideName.put("G","Guanine");jalview.schemes.ResidueProperties.nucleotideName.put("g","Guanine");jalview.schemes.ResidueProperties.nucleotideName.put("C","Cytosine");jalview.schemes.ResidueProperties.nucleotideName.put("c","Cytosine");jalview.schemes.ResidueProperties.nucleotideName.put("T","Thymine");jalview.schemes.ResidueProperties.nucleotideName.put("t",
903 "Thymine");jalview.schemes.ResidueProperties.nucleotideName.put("U","Uracil");jalview.schemes.ResidueProperties.nucleotideName.put("u","Uracil");jalview.schemes.ResidueProperties.nucleotideName.put("I","Inosine");jalview.schemes.ResidueProperties.nucleotideName.put("i","Inosine");jalview.schemes.ResidueProperties.nucleotideName.put("X","Xanthine");jalview.schemes.ResidueProperties.nucleotideName.put("x","Xanthine");jalview.schemes.ResidueProperties.nucleotideName.put("R","Unknown Purine");jalview.schemes.ResidueProperties.nucleotideName.put("r",
904 "Unknown Purine");jalview.schemes.ResidueProperties.nucleotideName.put("Y","Unknown Pyrimidine");jalview.schemes.ResidueProperties.nucleotideName.put("y","Unknown Pyrimidine");jalview.schemes.ResidueProperties.nucleotideName.put("N","Unknown");jalview.schemes.ResidueProperties.nucleotideName.put("n","Unknown");jalview.schemes.ResidueProperties.nucleotideName.put("W","Weak nucleotide (A or T)");jalview.schemes.ResidueProperties.nucleotideName.put("w","Weak nucleotide (A or T)");jalview.schemes.ResidueProperties.nucleotideName.put("S",
905 "Strong nucleotide (G or C)");jalview.schemes.ResidueProperties.nucleotideName.put("s","Strong nucleotide (G or C)");jalview.schemes.ResidueProperties.nucleotideName.put("M","Amino (A or C)");jalview.schemes.ResidueProperties.nucleotideName.put("m","Amino (A or C)");jalview.schemes.ResidueProperties.nucleotideName.put("K","Keto (G or T)");jalview.schemes.ResidueProperties.nucleotideName.put("k","Keto (G or T)");jalview.schemes.ResidueProperties.nucleotideName.put("B","Not A (G or C or T)");jalview.schemes.ResidueProperties.nucleotideName.put("b",
906 "Not A (G or C or T)");jalview.schemes.ResidueProperties.nucleotideName.put("H","Not G (A or C or T)");jalview.schemes.ResidueProperties.nucleotideName.put("h","Not G (A or C or T)");jalview.schemes.ResidueProperties.nucleotideName.put("D","Not C (A or G or T)");jalview.schemes.ResidueProperties.nucleotideName.put("d","Not C (A or G or T)");jalview.schemes.ResidueProperties.nucleotideName.put("V","Not T (A or G or C");jalview.schemes.ResidueProperties.nucleotideName.put("v","Not T (A or G or C");
907 jalview.schemes.ResidueProperties.purinepyrimidineIndex=w(255,0);for(a=0;255>a;a++)jalview.schemes.ResidueProperties.purinepyrimidineIndex[a]=3;jalview.schemes.ResidueProperties.purinepyrimidineIndex[65]=0;jalview.schemes.ResidueProperties.purinepyrimidineIndex[97]=0;jalview.schemes.ResidueProperties.purinepyrimidineIndex[67]=1;jalview.schemes.ResidueProperties.purinepyrimidineIndex[99]=1;jalview.schemes.ResidueProperties.purinepyrimidineIndex[71]=0;jalview.schemes.ResidueProperties.purinepyrimidineIndex[103]=
908 0;jalview.schemes.ResidueProperties.purinepyrimidineIndex[84]=1;jalview.schemes.ResidueProperties.purinepyrimidineIndex[116]=1;jalview.schemes.ResidueProperties.purinepyrimidineIndex[85]=1;jalview.schemes.ResidueProperties.purinepyrimidineIndex[117]=1;jalview.schemes.ResidueProperties.purinepyrimidineIndex[73]=2;jalview.schemes.ResidueProperties.purinepyrimidineIndex[105]=2;jalview.schemes.ResidueProperties.purinepyrimidineIndex[88]=2;jalview.schemes.ResidueProperties.purinepyrimidineIndex[120]=2;
909 jalview.schemes.ResidueProperties.purinepyrimidineIndex[82]=0;jalview.schemes.ResidueProperties.purinepyrimidineIndex[114]=0;jalview.schemes.ResidueProperties.purinepyrimidineIndex[89]=1;jalview.schemes.ResidueProperties.purinepyrimidineIndex[121]=1;jalview.schemes.ResidueProperties.purinepyrimidineIndex[78]=2;jalview.schemes.ResidueProperties.purinepyrimidineIndex[110]=2;jalview.schemes.ResidueProperties.aa3Hash.put("ALA",new Integer(0));jalview.schemes.ResidueProperties.aa3Hash.put("ARG",new Integer(1));
910 jalview.schemes.ResidueProperties.aa3Hash.put("ASN",new Integer(2));jalview.schemes.ResidueProperties.aa3Hash.put("ASP",new Integer(3));jalview.schemes.ResidueProperties.aa3Hash.put("CYS",new Integer(4));jalview.schemes.ResidueProperties.aa3Hash.put("GLN",new Integer(5));jalview.schemes.ResidueProperties.aa3Hash.put("GLU",new Integer(6));jalview.schemes.ResidueProperties.aa3Hash.put("GLY",new Integer(7));jalview.schemes.ResidueProperties.aa3Hash.put("HIS",new Integer(8));jalview.schemes.ResidueProperties.aa3Hash.put("ILE",
911 new Integer(9));jalview.schemes.ResidueProperties.aa3Hash.put("LEU",new Integer(10));jalview.schemes.ResidueProperties.aa3Hash.put("LYS",new Integer(11));jalview.schemes.ResidueProperties.aa3Hash.put("MET",new Integer(12));jalview.schemes.ResidueProperties.aa3Hash.put("PHE",new Integer(13));jalview.schemes.ResidueProperties.aa3Hash.put("PRO",new Integer(14));jalview.schemes.ResidueProperties.aa3Hash.put("SER",new Integer(15));jalview.schemes.ResidueProperties.aa3Hash.put("THR",new Integer(16));jalview.schemes.ResidueProperties.aa3Hash.put("TRP",
912 new Integer(17));jalview.schemes.ResidueProperties.aa3Hash.put("TYR",new Integer(18));jalview.schemes.ResidueProperties.aa3Hash.put("VAL",new Integer(19));jalview.schemes.ResidueProperties.aa3Hash.put("ASX",new Integer(20));jalview.schemes.ResidueProperties.aa3Hash.put("GLX",new Integer(21));jalview.schemes.ResidueProperties.aa3Hash.put("XAA",new Integer(22));jalview.schemes.ResidueProperties.aa3Hash.put("-",new Integer(23));jalview.schemes.ResidueProperties.aa3Hash.put("*",new Integer(23));jalview.schemes.ResidueProperties.aa3Hash.put(".",
913 new Integer(23));jalview.schemes.ResidueProperties.aa3Hash.put(" ",new Integer(23));jalview.schemes.ResidueProperties.aa3Hash.put("Gap",new Integer(23));jalview.schemes.ResidueProperties.aa2Triplet.put("A","ALA");jalview.schemes.ResidueProperties.aa2Triplet.put("a","ALA");jalview.schemes.ResidueProperties.aa2Triplet.put("R","ARG");jalview.schemes.ResidueProperties.aa2Triplet.put("r","ARG");jalview.schemes.ResidueProperties.aa2Triplet.put("N","ASN");jalview.schemes.ResidueProperties.aa2Triplet.put("n",
914 "ASN");jalview.schemes.ResidueProperties.aa2Triplet.put("D","ASP");jalview.schemes.ResidueProperties.aa2Triplet.put("d","ASP");jalview.schemes.ResidueProperties.aa2Triplet.put("C","CYS");jalview.schemes.ResidueProperties.aa2Triplet.put("c","CYS");jalview.schemes.ResidueProperties.aa2Triplet.put("Q","GLN");jalview.schemes.ResidueProperties.aa2Triplet.put("q","GLN");jalview.schemes.ResidueProperties.aa2Triplet.put("E","GLU");jalview.schemes.ResidueProperties.aa2Triplet.put("e","GLU");jalview.schemes.ResidueProperties.aa2Triplet.put("G",
915 "GLY");jalview.schemes.ResidueProperties.aa2Triplet.put("g","GLY");jalview.schemes.ResidueProperties.aa2Triplet.put("H","HIS");jalview.schemes.ResidueProperties.aa2Triplet.put("h","HIS");jalview.schemes.ResidueProperties.aa2Triplet.put("I","ILE");jalview.schemes.ResidueProperties.aa2Triplet.put("i","ILE");jalview.schemes.ResidueProperties.aa2Triplet.put("L","LEU");jalview.schemes.ResidueProperties.aa2Triplet.put("l","LEU");jalview.schemes.ResidueProperties.aa2Triplet.put("K","LYS");jalview.schemes.ResidueProperties.aa2Triplet.put("k",
916 "LYS");jalview.schemes.ResidueProperties.aa2Triplet.put("M","MET");jalview.schemes.ResidueProperties.aa2Triplet.put("m","MET");jalview.schemes.ResidueProperties.aa2Triplet.put("F","PHE");jalview.schemes.ResidueProperties.aa2Triplet.put("f","PHE");jalview.schemes.ResidueProperties.aa2Triplet.put("P","PRO");jalview.schemes.ResidueProperties.aa2Triplet.put("p","PRO");jalview.schemes.ResidueProperties.aa2Triplet.put("S","SER");jalview.schemes.ResidueProperties.aa2Triplet.put("s","SER");jalview.schemes.ResidueProperties.aa2Triplet.put("T",
917 "THR");jalview.schemes.ResidueProperties.aa2Triplet.put("t","THR");jalview.schemes.ResidueProperties.aa2Triplet.put("W","TRP");jalview.schemes.ResidueProperties.aa2Triplet.put("w","TRP");jalview.schemes.ResidueProperties.aa2Triplet.put("Y","TYR");jalview.schemes.ResidueProperties.aa2Triplet.put("y","TYR");jalview.schemes.ResidueProperties.aa2Triplet.put("V","VAL");jalview.schemes.ResidueProperties.aa2Triplet.put("v","VAL");G(c$,"aa",E(-1,"ARNDCQEGHILKMFPSTWYVBZX_*. ".split("")));c$.midBlue=c$.prototype.midBlue=
918 new java.awt.Color(100,100,255);c$.scaleColours=c$.prototype.scaleColours=new java.util.Vector;jalview.schemes.ResidueProperties.scaleColours.addElement(new java.awt.Color(114,0,147));jalview.schemes.ResidueProperties.scaleColours.addElement(new java.awt.Color(156,0,98));jalview.schemes.ResidueProperties.scaleColours.addElement(new java.awt.Color(190,0,0));jalview.schemes.ResidueProperties.scaleColours.addElement(java.awt.Color.red);jalview.schemes.ResidueProperties.scaleColours.addElement(new java.awt.Color(255,
919 125,0));jalview.schemes.ResidueProperties.scaleColours.addElement(java.awt.Color.orange);jalview.schemes.ResidueProperties.scaleColours.addElement(new java.awt.Color(255,194,85));jalview.schemes.ResidueProperties.scaleColours.addElement(java.awt.Color.yellow);jalview.schemes.ResidueProperties.scaleColours.addElement(new java.awt.Color(255,255,181));jalview.schemes.ResidueProperties.scaleColours.addElement(java.awt.Color.white);c$.taylor=c$.prototype.taylor=E(-1,[new java.awt.Color(204,255,0),new java.awt.Color(0,
920 0,255),new java.awt.Color(204,0,255),new java.awt.Color(255,0,0),new java.awt.Color(255,255,0),new java.awt.Color(255,0,204),new java.awt.Color(255,0,102),new java.awt.Color(255,153,0),new java.awt.Color(0,102,255),new java.awt.Color(102,255,0),new java.awt.Color(51,255,0),new java.awt.Color(102,0,255),new java.awt.Color(0,255,0),new java.awt.Color(0,255,102),new java.awt.Color(255,204,0),new java.awt.Color(255,51,0),new java.awt.Color(255,102,0),new java.awt.Color(0,204,255),new java.awt.Color(0,
921 255,204),new java.awt.Color(153,255,0),java.awt.Color.white,java.awt.Color.white,java.awt.Color.white,java.awt.Color.white,java.awt.Color.white,java.awt.Color.white]);c$.nucleotide=c$.prototype.nucleotide=E(-1,[new java.awt.Color(100,247,63),new java.awt.Color(255,179,64),new java.awt.Color(235,65,60),new java.awt.Color(60,136,238),new java.awt.Color(60,136,238),java.awt.Color.white,java.awt.Color.white,java.awt.Color.white,java.awt.Color.white,java.awt.Color.white,java.awt.Color.white]);c$.purinepyrimidine=
922 c$.prototype.purinepyrimidine=E(-1,[new java.awt.Color(255,131,250),new java.awt.Color(64,224,208),java.awt.Color.white,java.awt.Color.white]);c$.zappo=c$.prototype.zappo=E(-1,[java.awt.Color.pink,jalview.schemes.ResidueProperties.midBlue,java.awt.Color.green,java.awt.Color.red,java.awt.Color.yellow,java.awt.Color.green,java.awt.Color.red,java.awt.Color.magenta,jalview.schemes.ResidueProperties.midBlue,java.awt.Color.pink,java.awt.Color.pink,jalview.schemes.ResidueProperties.midBlue,java.awt.Color.pink,
923 java.awt.Color.orange,java.awt.Color.magenta,java.awt.Color.green,java.awt.Color.green,java.awt.Color.orange,java.awt.Color.orange,java.awt.Color.pink,java.awt.Color.white,java.awt.Color.white,java.awt.Color.white,java.awt.Color.white,java.awt.Color.white,java.awt.Color.white,java.awt.Color.white]);G(c$,"hyd2",U(-1,[0.62,0.29,-0.9,-0.74,1.19,0.48,-0.4,1.38,-1.5,1.06,0.64,-0.78,0.12,-0.85,-2.53,-0.18,-0.05,1.08,0.81,0,0.26,0,0]),"helix",U(-1,[1.42,0.98,0.67,1.01,0.7,1.11,1.51,0.57,1,1.08,1.21,1.16,
924 1.45,1.13,0.57,0.77,0.83,1.08,0.69,1.06,0.84,1.31,1,0]),"helixmin",0.57,"helixmax",1.51,"strand",U(-1,[0.83,0.93,0.89,0.54,1.19,1.1,0.37,0.75,0.87,1.6,1.3,0.74,1.05,1.38,0.55,0.75,1.19,1.37,1.47,1.7,0.72,0.74,1,0]),"strandmin",0.37,"strandmax",1.7,"turn",U(-1,[0.66,0.95,1.56,1.46,1.19,0.98,0.74,1.56,0.95,0.47,0.59,1.01,0.6,0.6,1.52,1.43,0.96,0.96,1.14,0.5,1.51,0.86,1,0,0]),"turnmin",0.47,"turnmax",1.56,"buried",U(-1,[1.7,0.1,0.4,0.4,4.6,0.3,0.3,1.8,0.8,3.1,2.4,0.05,1.9,2.2,0.6,0.8,0.7,1.6,0.5,2.9,
925 0.4,0.3,1.358,0]),"buriedmin",0.05,"buriedmax",4.6,"hyd",U(-1,[1.8,-4.5,-3.5,-3.5,2.5,-3.5,-3.5,-0.4,-3.2,4.5,3.8,-3.9,1.9,2.8,-1.6,-0.8,-0.7,-0.9,-1.3,4.2,-3.5,-3.5,-0.49,0]),"hydmax",4.5,"hydmin",-3.9,"BLOSUM62",E(-1,[w(-1,[4,-1,-2,-2,0,-1,-1,0,-2,-1,-1,-1,-1,-2,-1,1,0,-3,-2,0,-2,-1,0,-4]),w(-1,[-1,5,0,-2,-3,1,0,-2,0,-3,-2,2,-1,-3,-2,-1,-1,-3,-2,-3,-1,0,-1,-4]),w(-1,[-2,0,6,1,-3,0,0,0,1,-3,-3,0,-2,-3,-2,1,0,-4,-2,-3,3,0,-1,-4]),w(-1,[-2,-2,1,6,-3,0,2,-1,-1,-3,-4,-1,-3,-3,-1,0,-1,-4,-3,-3,4,1,-1,
926 -4]),w(-1,[0,3,-3,-3,9,-3,-4,-3,-3,-1,-1,-3,-1,-2,-3,-1,-1,-2,-2,-1,-3,-3,-2,-4]),w(-1,[-1,1,0,0,-3,5,2,-2,0,-3,-2,1,0,-3,-1,0,-1,-2,-1,-2,0,3,-1,-4]),w(-1,[-1,0,0,2,-4,2,5,-2,0,-3,-3,1,-2,-3,-1,0,-1,-3,-2,-2,1,4,-1,-4]),w(-1,[0,-2,0,-1,-3,-2,-2,6,-2,-4,-4,-2,-3,-3,-2,0,-2,-2,-3,-3,-1,-2,-1,-4]),w(-1,[-2,0,1,-1,-3,0,0,-2,8,-3,-3,-1,-2,-1,-2,-1,-2,-2,2,-3,0,0,-1,-4]),w(-1,[-1,-3,-3,-3,-1,-3,-3,-4,-3,4,2,-3,1,0,-3,-2,-1,-3,-1,3,-3,-3,-1,-4]),w(-1,[-1,-2,-3,-4,-1,-2,-3,-4,-3,2,4,-2,2,0,-3,-2,-1,-2,-1,
927 1,-4,-3,-1,-4]),w(-1,[-1,2,0,-1,-3,1,1,-2,-1,-3,-2,5,-1,-3,-1,0,-1,-3,-2,-2,0,1,-1,-4]),w(-1,[-1,-1,-2,-3,-1,0,-2,-3,-2,1,2,-1,5,0,-2,-1,-1,-1,-1,1,-3,-1,-1,-4]),w(-1,[-2,-3,-3,-3,-2,-3,-3,-3,-1,0,0,-3,0,6,-4,-2,-2,1,3,-1,-3,-3,-1,-4]),w(-1,[-1,-2,-2,-1,-3,-1,-1,-2,-2,-3,-3,-1,-2,-4,7,-1,-1,-4,-3,-2,-2,-1,-2,-4]),w(-1,[1,-1,1,0,-1,0,0,0,-1,-2,-2,0,-1,-2,-1,4,1,-3,-2,-2,0,0,0,-4]),w(-1,[0,-1,0,-1,-1,-1,-1,-2,-2,-1,-1,-1,-1,-2,-1,1,5,-2,-2,0,-1,-1,0,-4]),w(-1,[-3,-3,-4,-4,-2,-2,-3,-2,-2,-3,-2,-3,-1,
928 1,-4,-3,-2,11,2,-3,-4,-3,-2,-4]),w(-1,[-2,-2,-2,-3,-2,-1,-2,-3,2,-1,-1,-2,-1,3,-3,-2,-2,2,7,-1,-3,-2,-1,-4]),w(-1,[0,-3,-3,-3,-1,-2,-2,-3,-3,3,1,-2,1,-1,-2,-2,0,-3,-1,4,-3,-2,-1,-4]),w(-1,[-2,-1,3,4,-3,0,1,-1,0,-3,-4,0,-3,-3,-2,0,-1,-4,-3,-3,4,1,-1,-4]),w(-1,[-1,0,0,1,-3,3,4,-2,0,-3,-3,1,-1,-3,-1,0,-1,-3,-2,-2,1,4,-1,-4]),w(-1,[0,-1,-1,-1,-2,-1,-1,-1,-1,-1,-1,-1,-1,-1,-2,0,0,-2,-1,-1,-1,-1,-1,-4]),w(-1,[-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,-4,1])]),"PAM250",E(-1,[w(-1,
929 [2,-2,0,0,-2,0,0,1,-1,-1,-2,-1,-1,-3,1,1,1,-6,-3,0,0,0,0,-8]),w(-1,[-2,6,0,-1,-4,1,-1,-3,2,-2,-3,3,0,-4,0,0,-1,2,-4,-2,-1,0,-1,-8]),w(-1,[0,0,2,2,-4,1,1,0,2,-2,-3,1,-2,-3,0,1,0,-4,-2,-2,2,1,0,-8]),w(-1,[0,-1,2,4,-5,2,3,1,1,-2,-4,0,-3,-6,-1,0,0,-7,-4,-2,3,3,-1,-8]),w(-1,[-2,-4,-4,-5,12,-5,-5,-3,-3,-2,-6,-5,-5,-4,-3,0,-2,-8,0,-2,-4,-5,-3,-8]),w(-1,[0,1,1,2,-5,4,2,-1,3,-2,-2,1,-1,-5,0,-1,-1,-5,-4,-2,1,3,-1,-8]),w(-1,[0,-1,1,3,-5,2,4,0,1,-2,-3,0,-2,-5,-1,0,0,-7,-4,-2,3,3,-1,-8]),w(-1,[1,-3,0,1,-3,-1,
930 0,5,-2,-3,-4,-2,-3,-5,0,1,0,-7,-5,-1,0,0,-1,-8]),w(-1,[-1,2,2,1,-3,3,1,-2,6,-2,-2,0,-2,-2,0,-1,-1,-3,0,-2,1,2,-1,-8]),w(-1,[-1,-2,-2,-2,-2,-2,-2,-3,-2,5,2,-2,2,1,-2,-1,0,-5,-1,4,-2,-2,-1,-8]),w(-1,[-2,-3,-3,-4,-6,-2,-3,-4,-2,2,6,-3,4,2,-3,-3,-2,-2,-1,2,-3,-3,-1,-8]),w(-1,[-1,3,1,0,-5,1,0,-2,0,-2,-3,5,0,-5,-1,0,0,-3,-4,-2,1,0,-1,-8]),w(-1,[-1,0,-2,-3,-5,-1,-2,-3,-2,2,4,0,6,0,-2,-2,-1,-4,-2,2,-2,-2,-1,-8]),w(-1,[-3,-4,-3,-6,-4,-5,-5,-5,-2,1,2,-5,0,9,-5,-3,-3,0,7,-1,-4,-5,-2,-8]),w(-1,[1,0,0,-1,-3,0,
931 -1,0,0,-2,-3,-1,-2,-5,6,1,0,-6,-5,-1,-1,0,-1,-8]),w(-1,[1,0,1,0,0,-1,0,1,-1,-1,-3,0,-2,-3,1,2,1,-2,-3,-1,0,0,0,-8]),w(-1,[1,-1,0,0,-2,-1,0,0,-1,0,-2,0,-1,-3,0,1,3,-5,-3,0,0,-1,0,-8]),w(-1,[-6,2,-4,-7,-8,-5,-7,-7,-3,-5,-2,-3,-4,0,-6,-2,-5,17,0,-6,-5,-6,-4,-8]),w(-1,[-3,-4,-2,-4,0,-4,-4,-5,0,-1,-1,-4,-2,7,-5,-3,-3,0,10,-2,-3,-4,-2,-8]),w(-1,[0,-2,-2,-2,-2,-2,-2,-1,-2,4,2,-2,2,-1,-1,-1,0,-6,-2,4,-2,-2,-1,-8]),w(-1,[0,-1,2,3,-4,1,3,0,1,-2,-3,1,-2,-4,-1,0,0,-5,-3,-2,3,2,-1,-8]),w(-1,[0,0,1,3,-5,3,3,0,
932 2,-2,-3,0,-2,-5,0,0,-1,-6,-4,-2,2,3,-1,-8]),w(-1,[0,-1,0,-1,-3,-1,-1,-1,-1,-1,-1,-1,-1,-2,-1,0,0,-4,-2,-1,-1,-1,-1,-8]),w(-1,[-8,-8,-8,-8,-8,-8,-8,-8,-8,-8,-8,-8,-8,-8,-8,-8,-8,-8,-8,-8,-8,-8,-8,1])]));c$.ssHash=c$.prototype.ssHash=new java.util.Hashtable;jalview.schemes.ResidueProperties.ssHash.put("H",java.awt.Color.magenta);jalview.schemes.ResidueProperties.ssHash.put("E",java.awt.Color.yellow);jalview.schemes.ResidueProperties.ssHash.put("-",java.awt.Color.white);jalview.schemes.ResidueProperties.ssHash.put(".",
933 java.awt.Color.white);jalview.schemes.ResidueProperties.ssHash.put("S",java.awt.Color.cyan);jalview.schemes.ResidueProperties.ssHash.put("T",java.awt.Color.blue);jalview.schemes.ResidueProperties.ssHash.put("G",java.awt.Color.pink);jalview.schemes.ResidueProperties.ssHash.put("I",java.awt.Color.pink);jalview.schemes.ResidueProperties.ssHash.put("B",java.awt.Color.yellow);G(c$,"DNA",E(-1,[w(-1,[10,-8,-8,-8,-8,1,1,1,-8,1,1]),w(-1,[-8,10,-8,-8,-8,1,1,-8,1,1,1]),w(-1,[-8,-8,10,-8,-8,1,1,1,-8,1,1]),w(-1,
934 [-8,-8,-8,10,10,1,1,-8,1,1,1]),w(-1,[-8,-8,-8,10,10,1,1,-8,1,1,1]),w(-1,[1,1,1,1,1,10,0,0,0,1,1]),w(-1,[1,1,1,1,1,0,10,0,0,1,1]),w(-1,[1,-8,1,-8,-8,0,0,10,-8,1,1]),w(-1,[-8,1,-8,1,1,0,0,-8,10,1,1]),w(-1,[1,1,1,1,1,1,1,1,1,10,1]),w(-1,[1,1,1,1,1,1,1,1,1,1,1])]));jalview.schemes.ResidueProperties.scoreMatrices.put("BLOSUM62",new jalview.schemes.ScoreMatrix("BLOSUM62",jalview.schemes.ResidueProperties.BLOSUM62,0));jalview.schemes.ResidueProperties.scoreMatrices.put("PAM250",new jalview.schemes.ScoreMatrix("PAM250",
935 jalview.schemes.ResidueProperties.PAM250,0));jalview.schemes.ResidueProperties.scoreMatrices.put("DNA",new jalview.schemes.ScoreMatrix("DNA",jalview.schemes.ResidueProperties.DNA,1));c$.pidColours=c$.prototype.pidColours=E(-1,[jalview.schemes.ResidueProperties.midBlue,new java.awt.Color(153,153,255),new java.awt.Color(204,204,255)]);G(c$,"pidThresholds",Q(-1,[80,60,40]));c$.codonHash=c$.prototype.codonHash=new java.util.HashMap;c$.Lys=c$.prototype.Lys=new java.util.ArrayList;c$.Asn=c$.prototype.Asn=
936 new java.util.ArrayList;c$.Gln=c$.prototype.Gln=new java.util.ArrayList;c$.His=c$.prototype.His=new java.util.ArrayList;c$.Glu=c$.prototype.Glu=new java.util.ArrayList;c$.Asp=c$.prototype.Asp=new java.util.ArrayList;c$.Tyr=c$.prototype.Tyr=new java.util.ArrayList;c$.Thr=c$.prototype.Thr=new java.util.ArrayList;c$.Pro=c$.prototype.Pro=new java.util.ArrayList;c$.Ala=c$.prototype.Ala=new java.util.ArrayList;c$.Ser=c$.prototype.Ser=new java.util.ArrayList;c$.Arg=c$.prototype.Arg=new java.util.ArrayList;
937 c$.Gly=c$.prototype.Gly=new java.util.ArrayList;c$.Trp=c$.prototype.Trp=new java.util.ArrayList;c$.Cys=c$.prototype.Cys=new java.util.ArrayList;c$.Ile=c$.prototype.Ile=new java.util.ArrayList;c$.Met=c$.prototype.Met=new java.util.ArrayList;c$.Leu=c$.prototype.Leu=new java.util.ArrayList;c$.Val=c$.prototype.Val=new java.util.ArrayList;c$.Phe=c$.prototype.Phe=new java.util.ArrayList;c$.STOP=c$.prototype.STOP=new java.util.ArrayList;G(c$,"START","ATG");jalview.schemes.ResidueProperties.codonHash.put("K",
938 jalview.schemes.ResidueProperties.Lys);jalview.schemes.ResidueProperties.codonHash.put("N",jalview.schemes.ResidueProperties.Asn);jalview.schemes.ResidueProperties.codonHash.put("Q",jalview.schemes.ResidueProperties.Gln);jalview.schemes.ResidueProperties.codonHash.put("H",jalview.schemes.ResidueProperties.His);jalview.schemes.ResidueProperties.codonHash.put("E",jalview.schemes.ResidueProperties.Glu);jalview.schemes.ResidueProperties.codonHash.put("D",jalview.schemes.ResidueProperties.Asp);jalview.schemes.ResidueProperties.codonHash.put("Y",
939 jalview.schemes.ResidueProperties.Tyr);jalview.schemes.ResidueProperties.codonHash.put("T",jalview.schemes.ResidueProperties.Thr);jalview.schemes.ResidueProperties.codonHash.put("P",jalview.schemes.ResidueProperties.Pro);jalview.schemes.ResidueProperties.codonHash.put("A",jalview.schemes.ResidueProperties.Ala);jalview.schemes.ResidueProperties.codonHash.put("S",jalview.schemes.ResidueProperties.Ser);jalview.schemes.ResidueProperties.codonHash.put("R",jalview.schemes.ResidueProperties.Arg);jalview.schemes.ResidueProperties.codonHash.put("G",
940 jalview.schemes.ResidueProperties.Gly);jalview.schemes.ResidueProperties.codonHash.put("W",jalview.schemes.ResidueProperties.Trp);jalview.schemes.ResidueProperties.codonHash.put("C",jalview.schemes.ResidueProperties.Cys);jalview.schemes.ResidueProperties.codonHash.put("I",jalview.schemes.ResidueProperties.Ile);jalview.schemes.ResidueProperties.codonHash.put("M",jalview.schemes.ResidueProperties.Met);jalview.schemes.ResidueProperties.codonHash.put("L",jalview.schemes.ResidueProperties.Leu);jalview.schemes.ResidueProperties.codonHash.put("V",
941 jalview.schemes.ResidueProperties.Val);jalview.schemes.ResidueProperties.codonHash.put("F",jalview.schemes.ResidueProperties.Phe);jalview.schemes.ResidueProperties.codonHash.put("STOP",jalview.schemes.ResidueProperties.STOP);c$.ambiguityCodes=c$.prototype.ambiguityCodes=new java.util.Hashtable;c$.codonHash2=c$.prototype.codonHash2=new java.util.Hashtable;c$._ambiguityCodes=c$.prototype._ambiguityCodes=new java.util.Hashtable;jalview.schemes.ResidueProperties.ambiguityCodes.put("R",E(-1,["A","G"]));
942 jalview.schemes.ResidueProperties.ambiguityCodes.put("Y",E(-1,["T","C"]));jalview.schemes.ResidueProperties.ambiguityCodes.put("W",E(-1,["A","T"]));jalview.schemes.ResidueProperties.ambiguityCodes.put("S",E(-1,["G","C"]));jalview.schemes.ResidueProperties.ambiguityCodes.put("M",E(-1,["A","C"]));jalview.schemes.ResidueProperties.ambiguityCodes.put("K",E(-1,["G","T"]));jalview.schemes.ResidueProperties.ambiguityCodes.put("H",E(-1,["A","T","C"]));jalview.schemes.ResidueProperties.ambiguityCodes.put("B",
943 E(-1,["G","T","C"]));jalview.schemes.ResidueProperties.ambiguityCodes.put("V",E(-1,["G","A","C"]));jalview.schemes.ResidueProperties.ambiguityCodes.put("D",E(-1,["G","A","T"]));jalview.schemes.ResidueProperties.ambiguityCodes.put("N",E(-1,["G","A","T","C"]));jalview.schemes.ResidueProperties.codonHash2.put("AAA","K");jalview.schemes.ResidueProperties.codonHash2.put("AAG","K");jalview.schemes.ResidueProperties.codonHash2.put("AAC","N");jalview.schemes.ResidueProperties.codonHash2.put("AAT","N");jalview.schemes.ResidueProperties.codonHash2.put("CAA",
944 "Q");jalview.schemes.ResidueProperties.codonHash2.put("CAG","Q");jalview.schemes.ResidueProperties.codonHash2.put("CAC","H");jalview.schemes.ResidueProperties.codonHash2.put("CAT","H");jalview.schemes.ResidueProperties.codonHash2.put("GAA","E");jalview.schemes.ResidueProperties.codonHash2.put("GAG","E");jalview.schemes.ResidueProperties.codonHash2.put("GAC","D");jalview.schemes.ResidueProperties.codonHash2.put("GAT","D");jalview.schemes.ResidueProperties.codonHash2.put("TAC","Y");jalview.schemes.ResidueProperties.codonHash2.put("TAT",
945 "Y");jalview.schemes.ResidueProperties.codonHash2.put("ACA","T");jalview.schemes.ResidueProperties.codonHash2.put("ACC","T");jalview.schemes.ResidueProperties.codonHash2.put("ACT","T");jalview.schemes.ResidueProperties.codonHash2.put("ACG","T");jalview.schemes.ResidueProperties.codonHash2.put("CCA","P");jalview.schemes.ResidueProperties.codonHash2.put("CCG","P");jalview.schemes.ResidueProperties.codonHash2.put("CCC","P");jalview.schemes.ResidueProperties.codonHash2.put("CCT","P");jalview.schemes.ResidueProperties.codonHash2.put("GCA",
946 "A");jalview.schemes.ResidueProperties.codonHash2.put("GCG","A");jalview.schemes.ResidueProperties.codonHash2.put("GCC","A");jalview.schemes.ResidueProperties.codonHash2.put("GCT","A");jalview.schemes.ResidueProperties.codonHash2.put("TCA","S");jalview.schemes.ResidueProperties.codonHash2.put("TCG","S");jalview.schemes.ResidueProperties.codonHash2.put("TCC","S");jalview.schemes.ResidueProperties.codonHash2.put("TCT","S");jalview.schemes.ResidueProperties.codonHash2.put("AGC","S");jalview.schemes.ResidueProperties.codonHash2.put("AGT",
947 "S");jalview.schemes.ResidueProperties.codonHash2.put("AGA","R");jalview.schemes.ResidueProperties.codonHash2.put("AGG","R");jalview.schemes.ResidueProperties.codonHash2.put("CGA","R");jalview.schemes.ResidueProperties.codonHash2.put("CGG","R");jalview.schemes.ResidueProperties.codonHash2.put("CGC","R");jalview.schemes.ResidueProperties.codonHash2.put("CGT","R");jalview.schemes.ResidueProperties.codonHash2.put("GGA","G");jalview.schemes.ResidueProperties.codonHash2.put("GGG","G");jalview.schemes.ResidueProperties.codonHash2.put("GGC",
948 "G");jalview.schemes.ResidueProperties.codonHash2.put("GGT","G");jalview.schemes.ResidueProperties.codonHash2.put("TGA","*");jalview.schemes.ResidueProperties.codonHash2.put("TAA","*");jalview.schemes.ResidueProperties.codonHash2.put("TAG","*");jalview.schemes.ResidueProperties.codonHash2.put("TGG","W");jalview.schemes.ResidueProperties.codonHash2.put("TGC","C");jalview.schemes.ResidueProperties.codonHash2.put("TGT","C");jalview.schemes.ResidueProperties.codonHash2.put("ATA","I");jalview.schemes.ResidueProperties.codonHash2.put("ATC",
949 "I");jalview.schemes.ResidueProperties.codonHash2.put("ATT","I");jalview.schemes.ResidueProperties.codonHash2.put("ATG","M");jalview.schemes.ResidueProperties.codonHash2.put("CTA","L");jalview.schemes.ResidueProperties.codonHash2.put("CTG","L");jalview.schemes.ResidueProperties.codonHash2.put("CTC","L");jalview.schemes.ResidueProperties.codonHash2.put("CTT","L");jalview.schemes.ResidueProperties.codonHash2.put("TTA","L");jalview.schemes.ResidueProperties.codonHash2.put("TTG","L");jalview.schemes.ResidueProperties.codonHash2.put("GTA",
950 "V");jalview.schemes.ResidueProperties.codonHash2.put("GTG","V");jalview.schemes.ResidueProperties.codonHash2.put("GTC","V");jalview.schemes.ResidueProperties.codonHash2.put("GTT","V");jalview.schemes.ResidueProperties.codonHash2.put("TTC","F");jalview.schemes.ResidueProperties.codonHash2.put("TTT","F");jalview.schemes.ResidueProperties.buildAmbiguityCodonSet();jalview.schemes.ResidueProperties.Lys.add("AAA");jalview.schemes.ResidueProperties.Lys.add("AAG");jalview.schemes.ResidueProperties.Asn.add("AAC");
951 jalview.schemes.ResidueProperties.Asn.add("AAT");jalview.schemes.ResidueProperties.Gln.add("CAA");jalview.schemes.ResidueProperties.Gln.add("CAG");jalview.schemes.ResidueProperties.His.add("CAC");jalview.schemes.ResidueProperties.His.add("CAT");jalview.schemes.ResidueProperties.Glu.add("GAA");jalview.schemes.ResidueProperties.Glu.add("GAG");jalview.schemes.ResidueProperties.Asp.add("GAC");jalview.schemes.ResidueProperties.Asp.add("GAT");jalview.schemes.ResidueProperties.Tyr.add("TAC");jalview.schemes.ResidueProperties.Tyr.add("TAT");
952 jalview.schemes.ResidueProperties.Thr.add("ACA");jalview.schemes.ResidueProperties.Thr.add("ACG");jalview.schemes.ResidueProperties.Thr.add("ACC");jalview.schemes.ResidueProperties.Thr.add("ACT");jalview.schemes.ResidueProperties.Pro.add("CCA");jalview.schemes.ResidueProperties.Pro.add("CCG");jalview.schemes.ResidueProperties.Pro.add("CCC");jalview.schemes.ResidueProperties.Pro.add("CCT");jalview.schemes.ResidueProperties.Ala.add("GCA");jalview.schemes.ResidueProperties.Ala.add("GCG");jalview.schemes.ResidueProperties.Ala.add("GCC");
953 jalview.schemes.ResidueProperties.Ala.add("GCT");jalview.schemes.ResidueProperties.Ser.add("TCA");jalview.schemes.ResidueProperties.Ser.add("TCG");jalview.schemes.ResidueProperties.Ser.add("TCC");jalview.schemes.ResidueProperties.Ser.add("TCT");jalview.schemes.ResidueProperties.Ser.add("AGC");jalview.schemes.ResidueProperties.Ser.add("AGT");jalview.schemes.ResidueProperties.Arg.add("AGA");jalview.schemes.ResidueProperties.Arg.add("AGG");jalview.schemes.ResidueProperties.Arg.add("CGA");jalview.schemes.ResidueProperties.Arg.add("CGG");
954 jalview.schemes.ResidueProperties.Arg.add("CGC");jalview.schemes.ResidueProperties.Arg.add("CGT");jalview.schemes.ResidueProperties.Gly.add("GGA");jalview.schemes.ResidueProperties.Gly.add("GGG");jalview.schemes.ResidueProperties.Gly.add("GGC");jalview.schemes.ResidueProperties.Gly.add("GGT");jalview.schemes.ResidueProperties.STOP.add("TGA");jalview.schemes.ResidueProperties.STOP.add("TAA");jalview.schemes.ResidueProperties.STOP.add("TAG");jalview.schemes.ResidueProperties.Trp.add("TGG");jalview.schemes.ResidueProperties.Cys.add("TGC");
955 jalview.schemes.ResidueProperties.Cys.add("TGT");jalview.schemes.ResidueProperties.Ile.add("ATA");jalview.schemes.ResidueProperties.Ile.add("ATC");jalview.schemes.ResidueProperties.Ile.add("ATT");jalview.schemes.ResidueProperties.Met.add("ATG");jalview.schemes.ResidueProperties.Leu.add("CTA");jalview.schemes.ResidueProperties.Leu.add("CTG");jalview.schemes.ResidueProperties.Leu.add("CTC");jalview.schemes.ResidueProperties.Leu.add("CTT");jalview.schemes.ResidueProperties.Leu.add("TTA");jalview.schemes.ResidueProperties.Leu.add("TTG");
956 jalview.schemes.ResidueProperties.Val.add("GTA");jalview.schemes.ResidueProperties.Val.add("GTG");jalview.schemes.ResidueProperties.Val.add("GTC");jalview.schemes.ResidueProperties.Val.add("GTT");jalview.schemes.ResidueProperties.Phe.add("TTC");jalview.schemes.ResidueProperties.Phe.add("TTT");c$.propHash=c$.prototype.propHash=new java.util.Hashtable;c$.hydrophobic=c$.prototype.hydrophobic=new java.util.Hashtable;c$.polar=c$.prototype.polar=new java.util.Hashtable;c$.small=c$.prototype.small=new java.util.Hashtable;
957 c$.positive=c$.prototype.positive=new java.util.Hashtable;c$.negative=c$.prototype.negative=new java.util.Hashtable;c$.charged=c$.prototype.charged=new java.util.Hashtable;c$.aromatic=c$.prototype.aromatic=new java.util.Hashtable;c$.aliphatic=c$.prototype.aliphatic=new java.util.Hashtable;c$.tiny=c$.prototype.tiny=new java.util.Hashtable;c$.proline=c$.prototype.proline=new java.util.Hashtable;jalview.schemes.ResidueProperties.hydrophobic.put("I",new Integer(1));jalview.schemes.ResidueProperties.hydrophobic.put("L",
958 new Integer(1));jalview.schemes.ResidueProperties.hydrophobic.put("V",new Integer(1));jalview.schemes.ResidueProperties.hydrophobic.put("C",new Integer(1));jalview.schemes.ResidueProperties.hydrophobic.put("A",new Integer(1));jalview.schemes.ResidueProperties.hydrophobic.put("G",new Integer(1));jalview.schemes.ResidueProperties.hydrophobic.put("M",new Integer(1));jalview.schemes.ResidueProperties.hydrophobic.put("F",new Integer(1));jalview.schemes.ResidueProperties.hydrophobic.put("Y",new Integer(1));
959 jalview.schemes.ResidueProperties.hydrophobic.put("W",new Integer(1));jalview.schemes.ResidueProperties.hydrophobic.put("H",new Integer(1));jalview.schemes.ResidueProperties.hydrophobic.put("K",new Integer(1));jalview.schemes.ResidueProperties.hydrophobic.put("X",new Integer(1));jalview.schemes.ResidueProperties.hydrophobic.put("-",new Integer(1));jalview.schemes.ResidueProperties.hydrophobic.put("*",new Integer(1));jalview.schemes.ResidueProperties.hydrophobic.put("R",new Integer(0));jalview.schemes.ResidueProperties.hydrophobic.put("E",
960 new Integer(0));jalview.schemes.ResidueProperties.hydrophobic.put("Q",new Integer(0));jalview.schemes.ResidueProperties.hydrophobic.put("D",new Integer(0));jalview.schemes.ResidueProperties.hydrophobic.put("N",new Integer(0));jalview.schemes.ResidueProperties.hydrophobic.put("S",new Integer(0));jalview.schemes.ResidueProperties.hydrophobic.put("T",new Integer(0));jalview.schemes.ResidueProperties.hydrophobic.put("P",new Integer(0));jalview.schemes.ResidueProperties.polar.put("Y",new Integer(1));jalview.schemes.ResidueProperties.polar.put("W",
961 new Integer(1));jalview.schemes.ResidueProperties.polar.put("H",new Integer(1));jalview.schemes.ResidueProperties.polar.put("K",new Integer(1));jalview.schemes.ResidueProperties.polar.put("R",new Integer(1));jalview.schemes.ResidueProperties.polar.put("E",new Integer(1));jalview.schemes.ResidueProperties.polar.put("Q",new Integer(1));jalview.schemes.ResidueProperties.polar.put("D",new Integer(1));jalview.schemes.ResidueProperties.polar.put("N",new Integer(1));jalview.schemes.ResidueProperties.polar.put("S",
962 new Integer(1));jalview.schemes.ResidueProperties.polar.put("T",new Integer(1));jalview.schemes.ResidueProperties.polar.put("X",new Integer(1));jalview.schemes.ResidueProperties.polar.put("-",new Integer(1));jalview.schemes.ResidueProperties.polar.put("*",new Integer(1));jalview.schemes.ResidueProperties.polar.put("I",new Integer(0));jalview.schemes.ResidueProperties.polar.put("L",new Integer(0));jalview.schemes.ResidueProperties.polar.put("V",new Integer(0));jalview.schemes.ResidueProperties.polar.put("C",
963 new Integer(0));jalview.schemes.ResidueProperties.polar.put("A",new Integer(0));jalview.schemes.ResidueProperties.polar.put("G",new Integer(0));jalview.schemes.ResidueProperties.polar.put("M",new Integer(0));jalview.schemes.ResidueProperties.polar.put("F",new Integer(0));jalview.schemes.ResidueProperties.polar.put("P",new Integer(0));jalview.schemes.ResidueProperties.small.put("I",new Integer(0));jalview.schemes.ResidueProperties.small.put("L",new Integer(0));jalview.schemes.ResidueProperties.small.put("V",
964 new Integer(1));jalview.schemes.ResidueProperties.small.put("C",new Integer(1));jalview.schemes.ResidueProperties.small.put("A",new Integer(1));jalview.schemes.ResidueProperties.small.put("G",new Integer(1));jalview.schemes.ResidueProperties.small.put("M",new Integer(0));jalview.schemes.ResidueProperties.small.put("F",new Integer(0));jalview.schemes.ResidueProperties.small.put("Y",new Integer(0));jalview.schemes.ResidueProperties.small.put("W",new Integer(0));jalview.schemes.ResidueProperties.small.put("H",
965 new Integer(0));jalview.schemes.ResidueProperties.small.put("K",new Integer(0));jalview.schemes.ResidueProperties.small.put("R",new Integer(0));jalview.schemes.ResidueProperties.small.put("E",new Integer(0));jalview.schemes.ResidueProperties.small.put("Q",new Integer(0));jalview.schemes.ResidueProperties.small.put("D",new Integer(1));jalview.schemes.ResidueProperties.small.put("N",new Integer(1));jalview.schemes.ResidueProperties.small.put("S",new Integer(1));jalview.schemes.ResidueProperties.small.put("T",
966 new Integer(1));jalview.schemes.ResidueProperties.small.put("P",new Integer(1));jalview.schemes.ResidueProperties.small.put("-",new Integer(1));jalview.schemes.ResidueProperties.small.put("*",new Integer(1));jalview.schemes.ResidueProperties.positive.put("I",new Integer(0));jalview.schemes.ResidueProperties.positive.put("L",new Integer(0));jalview.schemes.ResidueProperties.positive.put("V",new Integer(0));jalview.schemes.ResidueProperties.positive.put("C",new Integer(0));jalview.schemes.ResidueProperties.positive.put("A",
967 new Integer(0));jalview.schemes.ResidueProperties.positive.put("G",new Integer(0));jalview.schemes.ResidueProperties.positive.put("M",new Integer(0));jalview.schemes.ResidueProperties.positive.put("F",new Integer(0));jalview.schemes.ResidueProperties.positive.put("Y",new Integer(0));jalview.schemes.ResidueProperties.positive.put("W",new Integer(0));jalview.schemes.ResidueProperties.positive.put("H",new Integer(1));jalview.schemes.ResidueProperties.positive.put("K",new Integer(1));jalview.schemes.ResidueProperties.positive.put("R",
968 new Integer(1));jalview.schemes.ResidueProperties.positive.put("E",new Integer(0));jalview.schemes.ResidueProperties.positive.put("Q",new Integer(0));jalview.schemes.ResidueProperties.positive.put("D",new Integer(0));jalview.schemes.ResidueProperties.positive.put("N",new Integer(0));jalview.schemes.ResidueProperties.positive.put("S",new Integer(0));jalview.schemes.ResidueProperties.positive.put("T",new Integer(0));jalview.schemes.ResidueProperties.positive.put("P",new Integer(0));jalview.schemes.ResidueProperties.positive.put("-",
969 new Integer(1));jalview.schemes.ResidueProperties.positive.put("*",new Integer(1));jalview.schemes.ResidueProperties.negative.put("I",new Integer(0));jalview.schemes.ResidueProperties.negative.put("L",new Integer(0));jalview.schemes.ResidueProperties.negative.put("V",new Integer(0));jalview.schemes.ResidueProperties.negative.put("C",new Integer(0));jalview.schemes.ResidueProperties.negative.put("A",new Integer(0));jalview.schemes.ResidueProperties.negative.put("G",new Integer(0));jalview.schemes.ResidueProperties.negative.put("M",
970 new Integer(0));jalview.schemes.ResidueProperties.negative.put("F",new Integer(0));jalview.schemes.ResidueProperties.negative.put("Y",new Integer(0));jalview.schemes.ResidueProperties.negative.put("W",new Integer(0));jalview.schemes.ResidueProperties.negative.put("H",new Integer(0));jalview.schemes.ResidueProperties.negative.put("K",new Integer(0));jalview.schemes.ResidueProperties.negative.put("R",new Integer(0));jalview.schemes.ResidueProperties.negative.put("E",new Integer(1));jalview.schemes.ResidueProperties.negative.put("Q",
971 new Integer(0));jalview.schemes.ResidueProperties.negative.put("D",new Integer(1));jalview.schemes.ResidueProperties.negative.put("N",new Integer(0));jalview.schemes.ResidueProperties.negative.put("S",new Integer(0));jalview.schemes.ResidueProperties.negative.put("T",new Integer(0));jalview.schemes.ResidueProperties.negative.put("P",new Integer(0));jalview.schemes.ResidueProperties.negative.put("-",new Integer(1));jalview.schemes.ResidueProperties.negative.put("*",new Integer(1));jalview.schemes.ResidueProperties.charged.put("I",
972 new Integer(0));jalview.schemes.ResidueProperties.charged.put("L",new Integer(0));jalview.schemes.ResidueProperties.charged.put("V",new Integer(0));jalview.schemes.ResidueProperties.charged.put("C",new Integer(0));jalview.schemes.ResidueProperties.charged.put("A",new Integer(0));jalview.schemes.ResidueProperties.charged.put("G",new Integer(0));jalview.schemes.ResidueProperties.charged.put("M",new Integer(0));jalview.schemes.ResidueProperties.charged.put("F",new Integer(0));jalview.schemes.ResidueProperties.charged.put("Y",
973 new Integer(0));jalview.schemes.ResidueProperties.charged.put("W",new Integer(0));jalview.schemes.ResidueProperties.charged.put("H",new Integer(1));jalview.schemes.ResidueProperties.charged.put("K",new Integer(1));jalview.schemes.ResidueProperties.charged.put("R",new Integer(1));jalview.schemes.ResidueProperties.charged.put("E",new Integer(1));jalview.schemes.ResidueProperties.charged.put("Q",new Integer(0));jalview.schemes.ResidueProperties.charged.put("D",new Integer(1));jalview.schemes.ResidueProperties.charged.put("N",
974 new Integer(0));jalview.schemes.ResidueProperties.charged.put("S",new Integer(0));jalview.schemes.ResidueProperties.charged.put("T",new Integer(0));jalview.schemes.ResidueProperties.charged.put("P",new Integer(0));jalview.schemes.ResidueProperties.charged.put("-",new Integer(1));jalview.schemes.ResidueProperties.charged.put("*",new Integer(1));jalview.schemes.ResidueProperties.aromatic.put("I",new Integer(0));jalview.schemes.ResidueProperties.aromatic.put("L",new Integer(0));jalview.schemes.ResidueProperties.aromatic.put("V",
975 new Integer(0));jalview.schemes.ResidueProperties.aromatic.put("C",new Integer(0));jalview.schemes.ResidueProperties.aromatic.put("A",new Integer(0));jalview.schemes.ResidueProperties.aromatic.put("G",new Integer(0));jalview.schemes.ResidueProperties.aromatic.put("M",new Integer(0));jalview.schemes.ResidueProperties.aromatic.put("F",new Integer(1));jalview.schemes.ResidueProperties.aromatic.put("Y",new Integer(1));jalview.schemes.ResidueProperties.aromatic.put("W",new Integer(1));jalview.schemes.ResidueProperties.aromatic.put("H",
976 new Integer(1));jalview.schemes.ResidueProperties.aromatic.put("K",new Integer(0));jalview.schemes.ResidueProperties.aromatic.put("R",new Integer(0));jalview.schemes.ResidueProperties.aromatic.put("E",new Integer(0));jalview.schemes.ResidueProperties.aromatic.put("Q",new Integer(0));jalview.schemes.ResidueProperties.aromatic.put("D",new Integer(0));jalview.schemes.ResidueProperties.aromatic.put("N",new Integer(0));jalview.schemes.ResidueProperties.aromatic.put("S",new Integer(0));jalview.schemes.ResidueProperties.aromatic.put("T",
977 new Integer(0));jalview.schemes.ResidueProperties.aromatic.put("P",new Integer(0));jalview.schemes.ResidueProperties.aromatic.put("-",new Integer(1));jalview.schemes.ResidueProperties.aromatic.put("*",new Integer(1));jalview.schemes.ResidueProperties.aliphatic.put("I",new Integer(1));jalview.schemes.ResidueProperties.aliphatic.put("L",new Integer(1));jalview.schemes.ResidueProperties.aliphatic.put("V",new Integer(1));jalview.schemes.ResidueProperties.aliphatic.put("C",new Integer(0));jalview.schemes.ResidueProperties.aliphatic.put("A",
978 new Integer(0));jalview.schemes.ResidueProperties.aliphatic.put("G",new Integer(0));jalview.schemes.ResidueProperties.aliphatic.put("M",new Integer(0));jalview.schemes.ResidueProperties.aliphatic.put("F",new Integer(0));jalview.schemes.ResidueProperties.aliphatic.put("Y",new Integer(0));jalview.schemes.ResidueProperties.aliphatic.put("W",new Integer(0));jalview.schemes.ResidueProperties.aliphatic.put("H",new Integer(0));jalview.schemes.ResidueProperties.aliphatic.put("K",new Integer(0));jalview.schemes.ResidueProperties.aliphatic.put("R",
979 new Integer(0));jalview.schemes.ResidueProperties.aliphatic.put("E",new Integer(0));jalview.schemes.ResidueProperties.aliphatic.put("Q",new Integer(0));jalview.schemes.ResidueProperties.aliphatic.put("D",new Integer(0));jalview.schemes.ResidueProperties.aliphatic.put("N",new Integer(0));jalview.schemes.ResidueProperties.aliphatic.put("S",new Integer(0));jalview.schemes.ResidueProperties.aliphatic.put("T",new Integer(0));jalview.schemes.ResidueProperties.aliphatic.put("P",new Integer(0));jalview.schemes.ResidueProperties.aliphatic.put("-",
980 new Integer(1));jalview.schemes.ResidueProperties.aliphatic.put("*",new Integer(1));jalview.schemes.ResidueProperties.tiny.put("I",new Integer(0));jalview.schemes.ResidueProperties.tiny.put("L",new Integer(0));jalview.schemes.ResidueProperties.tiny.put("V",new Integer(0));jalview.schemes.ResidueProperties.tiny.put("C",new Integer(0));jalview.schemes.ResidueProperties.tiny.put("A",new Integer(1));jalview.schemes.ResidueProperties.tiny.put("G",new Integer(1));jalview.schemes.ResidueProperties.tiny.put("M",
981 new Integer(0));jalview.schemes.ResidueProperties.tiny.put("F",new Integer(0));jalview.schemes.ResidueProperties.tiny.put("Y",new Integer(0));jalview.schemes.ResidueProperties.tiny.put("W",new Integer(0));jalview.schemes.ResidueProperties.tiny.put("H",new Integer(0));jalview.schemes.ResidueProperties.tiny.put("K",new Integer(0));jalview.schemes.ResidueProperties.tiny.put("R",new Integer(0));jalview.schemes.ResidueProperties.tiny.put("E",new Integer(0));jalview.schemes.ResidueProperties.tiny.put("Q",
982 new Integer(0));jalview.schemes.ResidueProperties.tiny.put("D",new Integer(0));jalview.schemes.ResidueProperties.tiny.put("N",new Integer(0));jalview.schemes.ResidueProperties.tiny.put("S",new Integer(1));jalview.schemes.ResidueProperties.tiny.put("T",new Integer(0));jalview.schemes.ResidueProperties.tiny.put("P",new Integer(0));jalview.schemes.ResidueProperties.tiny.put("-",new Integer(1));jalview.schemes.ResidueProperties.tiny.put("*",new Integer(1));jalview.schemes.ResidueProperties.proline.put("I",
983 new Integer(0));jalview.schemes.ResidueProperties.proline.put("L",new Integer(0));jalview.schemes.ResidueProperties.proline.put("V",new Integer(0));jalview.schemes.ResidueProperties.proline.put("C",new Integer(0));jalview.schemes.ResidueProperties.proline.put("A",new Integer(0));jalview.schemes.ResidueProperties.proline.put("G",new Integer(0));jalview.schemes.ResidueProperties.proline.put("M",new Integer(0));jalview.schemes.ResidueProperties.proline.put("F",new Integer(0));jalview.schemes.ResidueProperties.proline.put("Y",
984 new Integer(0));jalview.schemes.ResidueProperties.proline.put("W",new Integer(0));jalview.schemes.ResidueProperties.proline.put("H",new Integer(0));jalview.schemes.ResidueProperties.proline.put("K",new Integer(0));jalview.schemes.ResidueProperties.proline.put("R",new Integer(0));jalview.schemes.ResidueProperties.proline.put("E",new Integer(0));jalview.schemes.ResidueProperties.proline.put("Q",new Integer(0));jalview.schemes.ResidueProperties.proline.put("D",new Integer(0));jalview.schemes.ResidueProperties.proline.put("N",
985 new Integer(0));jalview.schemes.ResidueProperties.proline.put("S",new Integer(0));jalview.schemes.ResidueProperties.proline.put("T",new Integer(0));jalview.schemes.ResidueProperties.proline.put("P",new Integer(1));jalview.schemes.ResidueProperties.proline.put("-",new Integer(1));jalview.schemes.ResidueProperties.proline.put("*",new Integer(1));jalview.schemes.ResidueProperties.propHash.put("hydrophobic",jalview.schemes.ResidueProperties.hydrophobic);jalview.schemes.ResidueProperties.propHash.put("small",
986 jalview.schemes.ResidueProperties.small);jalview.schemes.ResidueProperties.propHash.put("positive",jalview.schemes.ResidueProperties.positive);jalview.schemes.ResidueProperties.propHash.put("negative",jalview.schemes.ResidueProperties.negative);jalview.schemes.ResidueProperties.propHash.put("charged",jalview.schemes.ResidueProperties.charged);jalview.schemes.ResidueProperties.propHash.put("aromatic",jalview.schemes.ResidueProperties.aromatic);jalview.schemes.ResidueProperties.propHash.put("aliphatic",
987 jalview.schemes.ResidueProperties.aliphatic);jalview.schemes.ResidueProperties.propHash.put("tiny",jalview.schemes.ResidueProperties.tiny);jalview.schemes.ResidueProperties.propHash.put("proline",jalview.schemes.ResidueProperties.proline);jalview.schemes.ResidueProperties.propHash.put("polar",jalview.schemes.ResidueProperties.polar);for(var b=w(23,23,0),c=w(23,23,0),f=w(23,23,0),a=0;23>a;a++){for(var l=0,k=0,g=0,e="",e=jalview.schemes.ResidueProperties.aa.length>a?e+jalview.schemes.ResidueProperties.aa[a]:
988 "-",j=a+1;23>j;j++){var n="",n=jalview.schemes.ResidueProperties.aa.length>j?n+jalview.schemes.ResidueProperties.aa[j]:"-";b[a][j]=0;c[a][j]=0;f[a][j]=0;for(var x=jalview.schemes.ResidueProperties.propHash.keys();x.hasMoreElements();){var u=x.nextElement(),D=jalview.schemes.ResidueProperties.propHash.get(u);null!=D.get(e)&&null!=D.get(n)&&(u=D.get(e).intValue(),D=D.get(n).intValue(),c[a][j]+=u==D&&0<u?2:0,c[j][a]+=u==D&&0<u?2:0,b[a][j]+=u==D?2:0,b[j][a]+=u==D?2:0,f[a][j]+=u==D?1+2*u:0,f[j][a]+=u==
989 D?1+2*u:0)}l<b[a][j]&&(l=b[a][j]);k<c[a][j]&&(k=c[a][j]);g<f[a][j]&&(g=f[a][j])}b[a][a]=l;c[a][a]=k;f[a][a]=g}jalview.schemes.ResidueProperties.scoreMatrices.put("PID",new jalview.analysis.scoremodels.PIDScoreModel);jalview.schemes.ResidueProperties.scoreMatrices.put("Displayed Features",new jalview.analysis.scoremodels.FeatureScoreModel);G(c$,"toDssp3State",null);jalview.schemes.ResidueProperties.toDssp3State=new java.util.Hashtable;jalview.schemes.ResidueProperties.toDssp3State.put("H","H");jalview.schemes.ResidueProperties.toDssp3State.put("E",
990 "E");jalview.schemes.ResidueProperties.toDssp3State.put("C"," ");jalview.schemes.ResidueProperties.toDssp3State.put(" "," ");jalview.schemes.ResidueProperties.toDssp3State.put("T"," ");jalview.schemes.ResidueProperties.toDssp3State.put("B","E");jalview.schemes.ResidueProperties.toDssp3State.put("G","H");jalview.schemes.ResidueProperties.toDssp3State.put("I","H");jalview.schemes.ResidueProperties.toDssp3State.put("X"," ");G(c$,"toRNAssState",null,"RNAcloseParen",X(255,!1));jalview.schemes.ResidueProperties.toRNAssState=
991 new java.util.Hashtable;jalview.schemes.ResidueProperties.toRNAssState.put(")","(");jalview.schemes.ResidueProperties.toRNAssState.put("(","(");jalview.schemes.ResidueProperties.toRNAssState.put("]","[");jalview.schemes.ResidueProperties.toRNAssState.put("[","[");jalview.schemes.ResidueProperties.toRNAssState.put("{","{");jalview.schemes.ResidueProperties.toRNAssState.put("}","{");jalview.schemes.ResidueProperties.toRNAssState.put(">",">");jalview.schemes.ResidueProperties.toRNAssState.put("<",">");
992 jalview.schemes.ResidueProperties.toRNAssState.put("A","A");jalview.schemes.ResidueProperties.toRNAssState.put("a","A");jalview.schemes.ResidueProperties.toRNAssState.put("B","B");jalview.schemes.ResidueProperties.toRNAssState.put("b","B");jalview.schemes.ResidueProperties.toRNAssState.put("C","C");jalview.schemes.ResidueProperties.toRNAssState.put("c","C");jalview.schemes.ResidueProperties.toRNAssState.put("D","D");jalview.schemes.ResidueProperties.toRNAssState.put("d","D");jalview.schemes.ResidueProperties.toRNAssState.put("E",
993 "E");jalview.schemes.ResidueProperties.toRNAssState.put("e","E");jalview.schemes.ResidueProperties.toRNAssState.put("F","F");jalview.schemes.ResidueProperties.toRNAssState.put("f","F");jalview.schemes.ResidueProperties.toRNAssState.put("G","G");jalview.schemes.ResidueProperties.toRNAssState.put("g","G");jalview.schemes.ResidueProperties.toRNAssState.put("H","H");jalview.schemes.ResidueProperties.toRNAssState.put("h","H");jalview.schemes.ResidueProperties.toRNAssState.put("I","I");jalview.schemes.ResidueProperties.toRNAssState.put("i",
994 "I");jalview.schemes.ResidueProperties.toRNAssState.put("J","J");jalview.schemes.ResidueProperties.toRNAssState.put("j","J");jalview.schemes.ResidueProperties.toRNAssState.put("K","K");jalview.schemes.ResidueProperties.toRNAssState.put("k","K");jalview.schemes.ResidueProperties.toRNAssState.put("L","L");jalview.schemes.ResidueProperties.toRNAssState.put("l","L");jalview.schemes.ResidueProperties.toRNAssState.put("M","M");jalview.schemes.ResidueProperties.toRNAssState.put("m","M");jalview.schemes.ResidueProperties.toRNAssState.put("N",
995 "N");jalview.schemes.ResidueProperties.toRNAssState.put("n","N");jalview.schemes.ResidueProperties.toRNAssState.put("O","O");jalview.schemes.ResidueProperties.toRNAssState.put("o","O");jalview.schemes.ResidueProperties.toRNAssState.put("P","P");jalview.schemes.ResidueProperties.toRNAssState.put("p","P");jalview.schemes.ResidueProperties.toRNAssState.put("Q","Q");jalview.schemes.ResidueProperties.toRNAssState.put("q","Q");jalview.schemes.ResidueProperties.toRNAssState.put("R","R");jalview.schemes.ResidueProperties.toRNAssState.put("r",
996 "R");jalview.schemes.ResidueProperties.toRNAssState.put("S","S");jalview.schemes.ResidueProperties.toRNAssState.put("s","S");jalview.schemes.ResidueProperties.toRNAssState.put("T","T");jalview.schemes.ResidueProperties.toRNAssState.put("t","T");jalview.schemes.ResidueProperties.toRNAssState.put("U","U");jalview.schemes.ResidueProperties.toRNAssState.put("u","U");jalview.schemes.ResidueProperties.toRNAssState.put("V","V");jalview.schemes.ResidueProperties.toRNAssState.put("v","V");jalview.schemes.ResidueProperties.toRNAssState.put("W",
997 "W");jalview.schemes.ResidueProperties.toRNAssState.put("w","W");jalview.schemes.ResidueProperties.toRNAssState.put("X","X");jalview.schemes.ResidueProperties.toRNAssState.put("x","X");jalview.schemes.ResidueProperties.toRNAssState.put("Y","Y");jalview.schemes.ResidueProperties.toRNAssState.put("y","Y");jalview.schemes.ResidueProperties.toRNAssState.put("Z","Z");jalview.schemes.ResidueProperties.toRNAssState.put("z","Z");for(a=0;a<jalview.schemes.ResidueProperties.RNAcloseParen.length;a++)jalview.schemes.ResidueProperties.RNAcloseParen[a]=
998 !1;for(var m,a=jalview.schemes.ResidueProperties.toRNAssState.keySet().iterator();a.hasNext()&&((m=a.next())||1);)jalview.schemes.ResidueProperties.RNAcloseParen[m.charCodeAt(0)]=m.charAt(0)!=jalview.schemes.ResidueProperties.toRNAssState.get(m).charAt(0)});p("jalview.analysis.scoremodels");q(["jalview.api.analysis.ScoreModelI","$.ViewBasedAnalysisI"],"jalview.analysis.scoremodels.FeatureScoreModel",["jalview.util.Comparison","java.util.ArrayList","$.Arrays","$.Hashtable"],function(){c$=s(function(){this.fr=
999 null;r(this,arguments)},jalview.analysis.scoremodels,"FeatureScoreModel",null,[jalview.api.analysis.ScoreModelI,jalview.api.analysis.ViewBasedAnalysisI]);e(c$,"configureFromAlignmentView",function(a){this.fr=a.cloneFeatureRenderer();return!0},"jalview.api.AlignmentViewPanel");e(c$,"findDistances",function(a){var b=0,c=java.util.Arrays.asList(this.fr.getDisplayedFeatureTypes());null!=c&&(b=c.size());var c=a.getVisibleAlignment(jalview.util.Comparison.GapChars.charAt(0)).getSequencesArray(),f=c.length,
1000 l=a.getWidth();a=Q(f,f,0);if(0==b){for(var d,g=0;g<a.length&&((d=a[g])||1);g++)for(b=0;b<d.length;d[b++]=0);return a}for(d=0;d<l;d++){for(var e=new java.util.ArrayList,b=0;b<f;b++){for(var j=new java.util.Hashtable,n=this.fr.findFeaturesAtRes(c[b],c[b].findPosition(d)).iterator();n.hasNext()&&((g=n.next())||1);)j.put(g.getType(),g);e.add(j)}for(b=0;b<f-1;b++){0==d&&(a[b][b]=0);for(j=b+1;j<f;j++){var n=0,x=e.get(b),u,D=e.get(j);x.size()>D.size()?u=D:(u=x,x=D);for(var m,D=x.keySet().iterator();D.hasNext()&&
1001 ((m=D.next())||1);)null!=u.get(m)&&n++;a[b][j]+=x.size()+u.size()-2*n;a[j][b]+=a[b][j]}}}for(b=0;b<f;b++)for(j=b+1;j<f;j++)a[b][j]/=l,a[j][b]=a[b][j];return a},"jalview.datamodel.AlignmentView");e(c$,"getName",function(){return"Sequence Feature Similarity"});e(c$,"isDNA",function(){return!0});e(c$,"isProtein",function(){return!0});e(c$,"toString",function(){return"Score between sequences based on hamming distance between binary vectors marking features displayed at each column"})});p("jalview.api.analysis");
1002 M(jalview.api.analysis,"ScoreModelI");p("jalview.api.analysis");M(jalview.api.analysis,"ViewBasedAnalysisI");p("jalview.analysis.scoremodels");q(["jalview.api.analysis.ScoreModelI"],"jalview.analysis.scoremodels.PIDScoreModel",["jalview.util.Comparison"],function(){c$=B(jalview.analysis.scoremodels,"PIDScoreModel",null,jalview.api.analysis.ScoreModelI);e(c$,"findDistances",function(a){a=a.getSequenceStrings(jalview.util.Comparison.GapChars.charAt(0));for(var b=a.length,c=Q(b,b,0),f=0;f<b-1;f++)for(var l=
1003 f;l<b;l++)l==f?c[f][f]=0:(c[f][l]=100-jalview.util.Comparison.PID(a[f],a[l]),c[l][f]=c[f][l]);return c},"jalview.datamodel.AlignmentView");e(c$,"getName",function(){return"PID"});e(c$,"isDNA",function(){return!0});e(c$,"isProtein",function(){return!0})});p("jalview.schemes");q(["jalview.analysis.scoremodels.PairwiseSeqScoreModel","jalview.api.analysis.ScoreModelI"],"jalview.schemes.ScoreMatrix",["jalview.schemes.ResidueProperties","java.lang.StringBuffer"],function(){c$=s(function(){this.matrix=this.name=
1004 null;this.type=0;r(this,arguments)},jalview.schemes,"ScoreMatrix",jalview.analysis.scoremodels.PairwiseSeqScoreModel,jalview.api.analysis.ScoreModelI);e(c$,"getName",function(){return this.name});m(c$,function(a,b,c){t(this,jalview.schemes.ScoreMatrix,[]);this.matrix=b;this.type=c;this.name=a},"~S,~A,~N");e(c$,"isDNA",function(){return 1==this.type});e(c$,"isProtein",function(){return 0==this.type});e(c$,"getMatrix",function(){return this.matrix});d(c$,"getPairwiseScore",function(a,b){return this.getPairwiseScore(a.charAt(0),
1005 b.charAt(0))},"~S,~S");d(c$,"getPairwiseScore",function(a,b){var c=0;try{var f=0==this.type?jalview.schemes.ResidueProperties.aaIndex[a.charCodeAt(0)]:jalview.schemes.ResidueProperties.nucleotideIndex[a.charCodeAt(0)],l=0==this.type?jalview.schemes.ResidueProperties.aaIndex[b.charCodeAt(0)]:jalview.schemes.ResidueProperties.nucleotideIndex[b.charCodeAt(0)],c=this.matrix[f][l]}catch(d){if(!y(d,Exception))throw d;}return c},"~S,~S");e(c$,"toString",function(){return this.outputMatrix(!1)});d(c$,"outputMatrix",
1006 function(a){var b=new StringBuffer,c=0==this.type?jalview.schemes.ResidueProperties.aaIndex:jalview.schemes.ResidueProperties.nucleotideIndex,f=0==this.type?23:10,l=!0;a&&b.append('<table border="1">');for(var d="A";"Z">=d;d=String.fromCharCode(d.charCodeAt(0)+1))if(0<=c[d.charCodeAt(0)]&&c[d.charCodeAt(0)]<f){if(l){b.append(a?"<tr><td></td>":"");for(var g="A";"Z">=g;g=String.fromCharCode(g.charCodeAt(0)+1))0<=c[g.charCodeAt(0)]&&c[g.charCodeAt(0)]<f&&b.append((a?"<td>&nbsp;":"\t")+g+(a?"&nbsp;</td>":
1007 ""));l=!1;b.append(a?"</tr>\n":"\n")}a&&b.append("<tr>");b.append((a?"<td>":"")+d+(a?"</td>":""));for(g="A";"Z">=g;g=String.fromCharCode(g.charCodeAt(0)+1))0<=c[g.charCodeAt(0)]&&c[g.charCodeAt(0)]<f&&b.append((a?"<td>":"\t")+this.matrix[c[d.charCodeAt(0)]][c[g.charCodeAt(0)]]+(a?"</td>":""));b.append(a?"</tr>\n":"\n")}a&&b.append("</table>");return b.toString()},"~B")});p("jalview.analysis.scoremodels");q(["jalview.api.analysis.ScoreModelI"],"jalview.analysis.scoremodels.PairwiseSeqScoreModel",["jalview.util.Comparison"],
1008 function(){c$=B(jalview.analysis.scoremodels,"PairwiseSeqScoreModel",null,jalview.api.analysis.ScoreModelI);e(c$,"findDistances",function(a){a=a.getSequenceStrings(jalview.util.Comparison.GapChars.charAt(0));for(var b=a.length,c=Q(b,b,0),f=0,l=a[0].length,d=0;d<b-1;d++)for(var g=d;g<b;g++){for(var e=0,j=0;j<l;j++)try{e+=this.getPairwiseScore(a[d].charAt(j),a[g].charAt(j))}catch(n){if(y(n,Exception))System.err.println("err creating "+this.getName()+" tree"),n.printStackTrace();else throw n;}c[d][g]=
1009 e;e>f&&(f=e)}for(d=0;d<b-1;d++)for(g=d;g<b;g++)c[d][g]=f-c[d][g],c[g][d]=c[d][g];return c},"jalview.datamodel.AlignmentView")});p("jalview.datamodel");q(["jalview.datamodel.ASequence","$.SequenceI","jalview.jsdev.RegExp"],"jalview.datamodel.Sequence","jalview.analysis.AlignSeq jalview.datamodel.AlignmentAnnotation $.DBRefEntry $.DBRefSource $.PDBEntry $.SequenceFeature jalview.schemes.ResidueProperties jalview.util.Comparison $.StringUtils java.lang.StringBuffer java.util.ArrayList $.Vector".split(" "),
1010 function(){c$=s(function(){this.description=this.sequence=this.name=this.datasetSequence=null;this.end=this.start=0;this.annotation=this.rna=this.dbrefs=this.vamsasId=this.pdbIds=null;this.index=-1;this.endrx=this.limitrx=this.sequenceFeatures=null;r(this,arguments)},jalview.datamodel,"Sequence",jalview.datamodel.ASequence,jalview.datamodel.SequenceI);J(c$,function(){this.limitrx=jalview.jsdev.RegExp.newRegex(["[/][0-9]{1,}[-][0-9]{1,}$"]);this.endrx=jalview.jsdev.RegExp.newRegex(["[0-9]{1,}$"])});
1011 m(c$,function(a,b,c,f){t(this,jalview.datamodel.Sequence,[]);this.initSeqAndName(a,b.toCharArray(),c,f)},"~S,~S,~N,~N");m(c$,function(a,b,c,f){t(this,jalview.datamodel.Sequence,[]);this.initSeqAndName(a,b,c,f)},"~S,~A,~N,~N");d(c$,"initSeqAndName",function(a,b,c,f){this.name=a;this.sequence=b;this.start=c;this.end=f;this.parseId();this.checkValidRange()},"~S,~A,~N,~N");d(c$,"parseId",function(){null==this.name&&(System.err.println("POSSIBLE IMPLEMENTATION ERROR: null sequence name passed to constructor."),
1012 this.name="");this.limitrx.search(this.name)&&(this.name=this.limitrx.left(),this.endrx.search(this.limitrx.stringMatched()),this.setStart(Integer.parseInt(this.limitrx.stringMatched().substring(1,this.endrx.matchedFrom()-1))),this.setEnd(Integer.parseInt(this.endrx.stringMatched())))});d(c$,"checkValidRange",function(){for(var a=0,b=0;b<this.sequence.length;b++)jalview.util.Comparison.isGap(this.sequence[b])||a++;0<a&&(a+=this.start-1);this.end<a&&(this.end=a)});m(c$,function(a,b){this.construct(a,
1013 b,1,-1)},"~S,~S");m(c$,function(a){this.construct(a,a.getAnnotation())},"jalview.datamodel.SequenceI");m(c$,function(a,b){t(this,jalview.datamodel.Sequence,[]);this.initSeqFrom(a,b)},"jalview.datamodel.SequenceI,~A");d(c$,"initSeqFrom",function(a,b){this.initSeqAndName(a.getName(),a.getSequence(),a.getStart(),a.getEnd());this.description=a.getDescription();if(null!=a.getSequenceFeatures())for(var c=a.getSequenceFeatures(),f=0;f<c.length;f++)this.addSequenceFeature(new jalview.datamodel.SequenceFeature(c[f]));
1014 this.setDatasetSequence(a.getDatasetSequence());if(null==this.datasetSequence&&null!=a.getDBRef()){c=a.getDBRef();for(f=0;f<c.length;f++)this.addDBRef(new jalview.datamodel.DBRefEntry(c[f]))}if(null!=a.getAnnotation()){c=a.getAnnotation();for(f=0;f<c.length;f++)if(null!=c[f]){var l=null==b;if(!l)for(var d=0;!l&&d<b.length;d++)l=b[d]===c[f];l&&(l=new jalview.datamodel.AlignmentAnnotation(c[f]),this.addAlignmentAnnotation(l))}}if(null!=a.getPDBId())for(f=a.getPDBId().elements();f.hasMoreElements();)this.addPDBId(new jalview.datamodel.PDBEntry(f.nextElement()))},
1015 "jalview.datamodel.SequenceI,~A");d(c$,"setSequenceFeatures",function(a){this.sequenceFeatures=a},"~A");e(c$,"addSequenceFeature",function(a){null==this.sequenceFeatures&&(this.sequenceFeatures=[]);for(var b=0;b<this.sequenceFeatures.length;b++)if(this.sequenceFeatures[b].equals(a))return;b=Array(this.sequenceFeatures.length+1);System.arraycopy(this.sequenceFeatures,0,b,0,this.sequenceFeatures.length);b[this.sequenceFeatures.length]=a;this.sequenceFeatures=b},"jalview.datamodel.SequenceFeature");
1016 e(c$,"deleteFeature",function(a){if(null!=this.sequenceFeatures){for(var b=0,b=0;b<this.sequenceFeatures.length&&!this.sequenceFeatures[b].equals(a);b++);if(b!=this.sequenceFeatures.length)if(a=this.sequenceFeatures.length,2>a)this.sequenceFeatures=null;else{var c=Array(a-1);System.arraycopy(this.sequenceFeatures,0,c,0,b);b<a&&System.arraycopy(this.sequenceFeatures,b+1,c,b,this.sequenceFeatures.length-b-1);this.sequenceFeatures=c}}},"jalview.datamodel.SequenceFeature");d(c$,"getSequenceFeatures",
1017 function(){for(var a=this.sequenceFeatures,b=this,c=0;null==a&&null!=b.getDatasetSequence()&&10>c++;)b=b.getDatasetSequence(),a=b.sequenceFeatures;return a});e(c$,"addPDBId",function(a){null==this.pdbIds&&(this.pdbIds=new java.util.Vector);this.pdbIds.contains(a)?jalview.datamodel.Sequence.updatePDBEntry(this.pdbIds.get(this.pdbIds.indexOf(a)),a):this.pdbIds.addElement(a)},"jalview.datamodel.PDBEntry");c$.updatePDBEntry=d(c$,"updatePDBEntry",function(a,b){null!=b.getFile()&&a.setFile(b.getFile())},
1018 "jalview.datamodel.PDBEntry,jalview.datamodel.PDBEntry");d(c$,"setPDBId",function(a){this.pdbIds=a},"java.util.Vector");d(c$,"getPDBId",function(){return this.pdbIds});e(c$,"getDisplayId",function(a){var b=new StringBuffer(this.name);a&&b.append("/"+this.start+"-"+this.end);return b.toString()},"~B");e(c$,"setName",function(a){this.name=a;this.parseId()},"~S");d(c$,"getName",function(){return this.name});e(c$,"setStart",function(a){this.start=a},"~N");d(c$,"getStart",function(){return this.start});
1019 e(c$,"setEnd",function(a){this.end=a},"~N");d(c$,"getEnd",function(){return this.end});e(c$,"getLength",function(){return this.sequence.length});d(c$,"setSequence",function(a){this.sequence=a.toCharArray();this.checkValidRange()},"~S");d(c$,"getSequenceAsString",function(){return String.instantialize(this.sequence)});d(c$,"getSequenceAsString",function(a,b){return String.instantialize(this.getSequence(a,b))},"~N,~N");d(c$,"getSequence",function(){return this.sequence});d(c$,"getSequence",function(a,
1020 b){0>a&&(a=0);if(a>=this.sequence.length)return N(0,"\x00");b>=this.sequence.length&&(b=this.sequence.length);var c=N(b-a,"\x00");System.arraycopy(this.sequence,a,c,0,b-a);return c},"~N,~N");e(c$,"getSubSequence",function(a,b){0>a&&(a=0);var c=this.getSequence(a,b);if(0==c.length)return null;var f=this.findPosition(a),l=this.findPosition(b)-1,c=new jalview.datamodel.Sequence(this.getName(),c,f,l);c.setDescription(this.description);null!=this.datasetSequence?c.setDatasetSequence(this.datasetSequence):
1021 c.setDatasetSequence(this);return c},"~N,~N");e(c$,"getCharAt",function(a){return a<this.sequence.length?this.sequence[a]:" "},"~N");d(c$,"setDescription",function(a){this.description=a},"~S");d(c$,"getDescription",function(){return this.description});e(c$,"findIndex",function(a){for(var b=this.start,c=0;c<this.sequence.length&&b<=this.end&&b<=a;)jalview.util.Comparison.isGap(this.sequence[c])||b++,c++;return b==this.end&&b<a?this.end+1:c},"~N");e(c$,"findPosition",function(a){for(var b=0,c=this.start,
1022 f=this.sequence.length;b<a&&b<f;)jalview.util.Comparison.isGap(this.sequence[b])||c++,b++;return c},"~N");e(c$,"gapMap",function(){for(var a=jalview.analysis.AlignSeq.extractGaps(jalview.util.Comparison.GapChars,String.instantialize(this.sequence)),a=w(a.length,0),b=0,c=0;b<this.sequence.length;)jalview.util.Comparison.isGap(this.sequence[b])||(a[c++]=b),b++;return a});e(c$,"findPositionMap",function(){for(var a=w(this.sequence.length,0),b=0,c=this.start,f=this.sequence.length;b<f;)a[b]=c,jalview.util.Comparison.isGap(this.sequence[b])||
1023 c++,b++;return a});e(c$,"getInsertions",function(){for(var a=new java.util.ArrayList,b=-1,c=0,f=this.sequence.length;c<f;)jalview.util.Comparison.isGap(this.sequence[c])?-1==b&&(b=c):-1!=b&&(a.add(w(-1,[b,c-1])),b=-1),c++;-1!=b&&a.add(w(-1,[b,c-1]));return a});e(c$,"deleteChars",function(a,b){var c=this.start,f=this.end;if(!(a>=this.sequence.length||0>a)){for(var l=jalview.util.StringUtils.deleteChars(this.sequence,a,b),d=!1,g=-1,e=-1,j=!1,n=!1,x=a;x<b;x++)if(23!=jalview.schemes.ResidueProperties.aaIndex[this.sequence[x].charCodeAt(0)])if(d)f--;
1024 else if(n||(e=this.findIndex(this.start)-1,n=!0),e==x){c=this.findPosition(b);break}else if(j||(g=this.findIndex(this.end)-1,j=!0),g<b){f=this.findPosition(a-1);break}else d=!0,f--;d&&null!=this.datasetSequence&&(d=new jalview.datamodel.Sequence(this.datasetSequence),d.deleteChars(a,b),this.datasetSequence=d);this.start=c;this.end=f;this.sequence=l}},"~N,~N");d(c$,"insertCharAt",function(a,b,c){var f=N(this.sequence.length+b,"\x00");a>=this.sequence.length?(System.arraycopy(this.sequence,0,f,0,this.sequence.length),
1025 a=this.sequence.length):System.arraycopy(this.sequence,0,f,0,a);for(var l=a;0<b;)f[l++]=c,b--;a<this.sequence.length&&System.arraycopy(this.sequence,a,f,l,this.sequence.length-a);this.sequence=f},"~N,~N,~S");d(c$,"insertCharAt",function(a,b){this.insertCharAt(a,1,b)},"~N,~S");e(c$,"getVamsasId",function(){return this.vamsasId});e(c$,"setVamsasId",function(a){this.vamsasId=a},"~S");d(c$,"setDBRef",function(a){this.dbrefs=a},"~A");d(c$,"getDBRef",function(){return null==this.dbrefs&&null!=this.datasetSequence&&
1026 this!==this.datasetSequence?this.datasetSequence.getDBRef():this.dbrefs});e(c$,"addDBRef",function(a){null==this.dbrefs&&(this.dbrefs=[]);var b,c=this.dbrefs.length;for(b=0;b<c;b++)if(this.dbrefs[b].equalRef(a)){null!=a.getMap()&&null==this.dbrefs[b].getMap()&&(this.dbrefs[b]=a);return}b=Array(c+1);System.arraycopy(this.dbrefs,0,b,0,c);b[b.length-1]=a;this.dbrefs=b},"jalview.datamodel.DBRefEntry");d(c$,"setDatasetSequence",function(a){this.datasetSequence=a},"jalview.datamodel.SequenceI");d(c$,"getDatasetSequence",
1027 function(){return this.datasetSequence});d(c$,"getAnnotation",function(){return null==this.annotation?null:this.annotation.toArray(Array(this.annotation.size()))});e(c$,"hasAnnotation",function(a){return null==this.annotation?!1:this.annotation.contains(a)},"jalview.datamodel.AlignmentAnnotation");d(c$,"addAlignmentAnnotation",function(a){null==this.annotation&&(this.annotation=new java.util.Vector);this.annotation.contains(a)||this.annotation.addElement(a);a.setSequenceRef(this)},"jalview.datamodel.AlignmentAnnotation");
1028 e(c$,"removeAlignmentAnnotation",function(a){null!=this.annotation&&(this.annotation.removeElement(a),0==this.annotation.size()&&(this.annotation=null))},"jalview.datamodel.AlignmentAnnotation");d(c$,"isValidDatasetSequence",function(){if(null!=this.datasetSequence)return!1;for(var a=0;a<this.sequence.length;a++)if(jalview.util.Comparison.isGap(this.sequence[a]))return!1;return!0});e(c$,"deriveSequence",function(){var a=new jalview.datamodel.Sequence(this);null!=this.datasetSequence?a.setDatasetSequence(this.datasetSequence):
1029 this.isValidDatasetSequence()?a.setDatasetSequence(this):(a.setSequence(jalview.analysis.AlignSeq.extractGaps(jalview.util.Comparison.GapChars,String.instantialize(this.sequence))),this.setDatasetSequence(a),a.setSequenceFeatures(this.getSequenceFeatures()),a=this);return a});e(c$,"createDatasetSequence",function(){if(null==this.datasetSequence&&(this.datasetSequence=new jalview.datamodel.Sequence(this.getName(),jalview.analysis.AlignSeq.extractGaps(jalview.util.Comparison.GapChars,this.getSequenceAsString()),
1030 this.getStart(),this.getEnd()),this.datasetSequence.setSequenceFeatures(this.getSequenceFeatures()),this.datasetSequence.setDescription(this.getDescription()),this.setSequenceFeatures(null),this.datasetSequence.setDBRef(this.getDBRef()),this.setDBRef(null),this.datasetSequence.setPDBId(this.getPDBId()),this.setPDBId(null),this.datasetSequence.updatePDBIds(),null!=this.annotation))for(var a,b=this.annotation.iterator();b.hasNext()&&((a=b.next())||1);){var c=new jalview.datamodel.AlignmentAnnotation(a);
1031 c.sequenceRef=this.datasetSequence;c.adjustForAlignment();this.datasetSequence.addAlignmentAnnotation(c)}return this.datasetSequence});e(c$,"setAlignmentAnnotation",function(a){null!=this.annotation&&this.annotation.removeAllElements();if(null!=a)for(var b=0;b<a.length;b++)null!=a[b]&&this.addAlignmentAnnotation(a[b])},"~A");d(c$,"getAnnotation",function(a){if(null==this.annotation||0==this.annotation.size())return null;for(var b=new java.util.Vector,c=this.annotation.elements();c.hasMoreElements();){var f=
1032 c.nextElement();null!=f.label&&f.label.equals(a)&&b.addElement(f)}if(0==b.size())return null;a=Array(b.size());f=0;for(c=b.elements();c.hasMoreElements();)a[f++]=c.nextElement();b.removeAllElements();return a},"~S");d(c$,"updatePDBIds",function(){if(null!=this.datasetSequence)return this.datasetSequence.updatePDBIds();if(null==this.dbrefs||0==this.dbrefs.length)return!1;for(var a=new java.util.Vector,b=0;b<this.dbrefs.length;b++)if(jalview.datamodel.DBRefSource.PDB.equals(this.dbrefs[b].getSource())){var c=
1033 new jalview.datamodel.PDBEntry;c.setId(this.dbrefs[b].getAccessionId());if(null==this.pdbIds||0==this.pdbIds.size())a.addElement(c);else{for(var f=this.pdbIds.elements(),l=!1;!l&&f.hasMoreElements();)f.nextElement().getId().equals(c.getId())&&(l=!0);l||a.addElement(c)}}if(0<a.size()){for(f=a.elements();f.hasMoreElements();)this.addPDBId(f.nextElement());return!0}return!1});d(c$,"transferAnnotation",function(a,b){if(null!=this.datasetSequence)this.datasetSequence.transferAnnotation(a,b);else if(null!=
1034 a.getDatasetSequence())this.transferAnnotation(a.getDatasetSequence(),b);else{if(null!=a.getSequenceFeatures())for(var c=a.getSequenceFeatures(),f=0;f<c.length;f++){var l=null!=b?b.locateFeature(c[f]):E(-1,[new jalview.datamodel.SequenceFeature(c[f])]);if(null!=l&&0<l.length)for(var d=0;d<l.length;d++)this.addSequenceFeature(l[d])}if(null!=a.getPDBId())for(c=a.getPDBId().elements();c.hasMoreElements();)f=c.nextElement(),this.addPDBId(f);c=a.getDBRef();if(null!=c)for(f=0;f<c.length;f++)l=new jalview.datamodel.DBRefEntry(c[f]),
1035 l.getMap(),this.addDBRef(l)}},"jalview.datamodel.SequenceI,jalview.datamodel.Mapping");e(c$,"getIndex",function(){return this.index});e(c$,"setIndex",function(a){this.index=a},"~N");e(c$,"setRNA",function(a){this.rna=a},"jalview.jsdev.api.VarnaRNA");e(c$,"getRNA",function(){return this.rna});e(c$,"getAlignmentAnnotations",function(a,b){var c=new java.util.ArrayList;if(null!=this.annotation)for(var f,l=this.annotation.iterator();l.hasNext()&&((f=l.next())||1);)null!=f.calcId&&(f.calcId.equals(a)&&
1036 null!=f.label&&f.label.equals(b))&&c.add(f);return c},"~S,~S")});p("jalview.datamodel");q(["jalview.datamodel.ASequenceI"],"jalview.datamodel.ASequence",null,function(){c$=B(jalview.datamodel,"ASequence",null,jalview.datamodel.ASequenceI)});p("jalview.jsdev");q(null,"jalview.jsdev.RegExp",["com.stevesoft.pat.Regex"],function(){c$=s(function(){this.rg=null;r(this,arguments)},jalview.jsdev,"RegExp");c$.newRegex=d(c$,"newRegex",function(a){return new com.stevesoft.pat.Regex(1>a.length?null:a[0],2>a.length?
1037 "":a[1])},"~A");c$.perlCode=d(c$,"perlCode",function(a){return com.stevesoft.pat.Regex.perlCode(a)},"~S")});p("com.stevesoft.pat");q("com.stevesoft.pat.RegRes $.UniValidator jalview.jsdev.api.RegExpInterface com.stevesoft.pat.NoPattern $.Pthings $.patInt java.util.Hashtable".split(" "),"com.stevesoft.pat.UnicodeW $.UnicodeCurrency $.UnicodeAlpha $.UnicodeUpper $.NUnicodeCurrency $.NUnicodeW $.NUnicodeAlpha $.UnicodeMath $.UnicodeWhite $.UnicodeDigit $.NUnicodeMath $.Regex $.NUnicodeDigit $.NUnicodeWhite $.NUnicodePunct $.UnicodePunct $.UnicodeLower".split(" "),
1038 "com.stevesoft.pat.Any $.BackG $.BackMatch $.Backup $.Boundary $.Bracket $.CaseMgr $.Ctrl $.Custom $.CustomEndpoint $.DotMulti $.End $.FastMulti $.Group $.MessageManager $.Multi $.NullPattern $.Or $.OrMark $.Prop $.Range $.RegOpt $.RegSyntax $.RegSyntaxError $.ReplaceRule $.Replacer $.Rthings $.Skip $.Skipped $.Start $.StrPos $.lookAhead $.oneChar $.parsePerl $.patInf com.stevesoft.pat.wrap.StringWrap java.lang.NullPointerException $.StringBuffer java.util.BitSet".split(" "),function(){c$=B(com.stevesoft.pat,
1039 "UnicodePunct",com.stevesoft.pat.UniValidator);e(c$,"validate",function(a,b,c){return b<a.length()&&com.stevesoft.pat.Prop.isPunct(a.charAt(b))?c:-1},"com.stevesoft.pat.StringLike,~N,~N");c$=B(com.stevesoft.pat,"UnicodeWhite",com.stevesoft.pat.UniValidator);e(c$,"validate",function(a,b,c){return b<a.length()&&com.stevesoft.pat.Prop.isWhite(a.charAt(b))?c:-1},"com.stevesoft.pat.StringLike,~N,~N");c$=B(com.stevesoft.pat,"NUnicodePunct",com.stevesoft.pat.UniValidator);e(c$,"validate",function(a,b,c){return b<
1040 a.length()&&!com.stevesoft.pat.Prop.isPunct(a.charAt(b))?c:-1},"com.stevesoft.pat.StringLike,~N,~N");c$=B(com.stevesoft.pat,"NUnicodeWhite",com.stevesoft.pat.UniValidator);e(c$,"validate",function(a,b,c){return b<a.length()&&!com.stevesoft.pat.Prop.isWhite(a.charAt(b))?c:-1},"com.stevesoft.pat.StringLike,~N,~N");c$=B(com.stevesoft.pat,"UnicodeW",com.stevesoft.pat.UniValidator);e(c$,"validate",function(a,b,c){if(b>=a.length())return-1;a=a.charAt(b);return com.stevesoft.pat.Prop.isAlphabetic(a)||com.stevesoft.pat.Prop.isDecimalDigit(a)||
1041 "_"==a?c:-1},"com.stevesoft.pat.StringLike,~N,~N");c$=B(com.stevesoft.pat,"NUnicodeW",com.stevesoft.pat.UniValidator);e(c$,"validate",function(a,b,c){if(b>=a.length())return-1;a=a.charAt(b);return!com.stevesoft.pat.Prop.isAlphabetic(a)&&!(com.stevesoft.pat.Prop.isDecimalDigit(a)||"_"==a)?c:-1},"com.stevesoft.pat.StringLike,~N,~N");c$=B(com.stevesoft.pat,"UnicodeDigit",com.stevesoft.pat.UniValidator);e(c$,"validate",function(a,b,c){return b<a.length()&&com.stevesoft.pat.Prop.isDecimalDigit(a.charAt(b))?
1042 c:-1},"com.stevesoft.pat.StringLike,~N,~N");c$=B(com.stevesoft.pat,"NUnicodeDigit",com.stevesoft.pat.UniValidator);e(c$,"validate",function(a,b,c){return b<a.length()&&!com.stevesoft.pat.Prop.isDecimalDigit(a.charAt(b))?c:-1},"com.stevesoft.pat.StringLike,~N,~N");c$=B(com.stevesoft.pat,"UnicodeMath",com.stevesoft.pat.UniValidator);e(c$,"validate",function(a,b,c){return b<a.length()&&com.stevesoft.pat.Prop.isMath(a.charAt(b))?c:-1},"com.stevesoft.pat.StringLike,~N,~N");c$=B(com.stevesoft.pat,"NUnicodeMath",
1043 com.stevesoft.pat.UniValidator);e(c$,"validate",function(a,b,c){return b<a.length()&&!com.stevesoft.pat.Prop.isMath(a.charAt(b))?c:-1},"com.stevesoft.pat.StringLike,~N,~N");c$=B(com.stevesoft.pat,"UnicodeCurrency",com.stevesoft.pat.UniValidator);e(c$,"validate",function(a,b,c){return b<a.length()&&com.stevesoft.pat.Prop.isCurrency(a.charAt(b))?c:-1},"com.stevesoft.pat.StringLike,~N,~N");c$=B(com.stevesoft.pat,"NUnicodeCurrency",com.stevesoft.pat.UniValidator);e(c$,"validate",function(a,b,c){return b<
1044 a.length()&&!com.stevesoft.pat.Prop.isCurrency(a.charAt(b))?c:-1},"com.stevesoft.pat.StringLike,~N,~N");c$=B(com.stevesoft.pat,"UnicodeAlpha",com.stevesoft.pat.UniValidator);e(c$,"validate",function(a,b,c){return b<a.length()&&com.stevesoft.pat.Prop.isAlphabetic(a.charAt(b))?c:-1},"com.stevesoft.pat.StringLike,~N,~N");c$=B(com.stevesoft.pat,"NUnicodeAlpha",com.stevesoft.pat.UniValidator);e(c$,"validate",function(a,b,c){return b<a.length()&&!com.stevesoft.pat.Prop.isAlphabetic(a.charAt(b))?c:-1},"com.stevesoft.pat.StringLike,~N,~N");
1045 c$=B(com.stevesoft.pat,"UnicodeUpper",com.stevesoft.pat.UniValidator);e(c$,"validate",function(a,b,c){return b<a.length()&&this.isUpper(a.charAt(b))?c:-1},"com.stevesoft.pat.StringLike,~N,~N");d(c$,"isUpper",function(a){return a==com.stevesoft.pat.CaseMgr.toUpperCaseC(a)&&a!=com.stevesoft.pat.CaseMgr.toLowerCaseC(a)},"~S");c$=B(com.stevesoft.pat,"UnicodeLower",com.stevesoft.pat.UniValidator);e(c$,"validate",function(a,b,c){return b<a.length()&&this.isLower(a.charAt(b))?c:-1},"com.stevesoft.pat.StringLike,~N,~N");
1046 d(c$,"isLower",function(a){return a!=com.stevesoft.pat.CaseMgr.toUpperCaseC(a)&&a==com.stevesoft.pat.CaseMgr.toLowerCaseC(a)},"~S");c$=s(function(){this.rep=this.minMatch=this.thePattern=null;this.ignoreCase=this.dontMatchInQuotes=!1;this.repr=null;this.esc="\\";this.gFlags=this.pt=null;this.gFlagto=0;this.mFlag=this.sFlag=this.gFlag=!1;this.skipper=this.or=this.p=null;r(this,arguments)},com.stevesoft.pat,"Regex",com.stevesoft.pat.RegRes,[jalview.jsdev.api.RegExpInterface,Cloneable]);J(c$,function(){this.thePattern=
1047 com.stevesoft.pat.Regex.none;this.minMatch=new com.stevesoft.pat.patInt(0);this.pt=new com.stevesoft.pat.Pthings});m(c$,function(a,b){t(this,com.stevesoft.pat.Regex,[]);try{null!=a&&this.compile(a),0<b.length&&(this.rep=com.stevesoft.pat.ReplaceRule.perlCode(b))}catch(c){if(!y(c,com.stevesoft.pat.RegSyntax))throw c;}},"~S,~S");e(c$,"clone",function(){return(new com.stevesoft.pat.Regex(null,"")).cloneFrom(this)});d(c$,"cloneFrom",function(a){this.copyOutOf(a);this.dontMatchInQuotes=a.dontMatchInQuotes;
1048 this.esc=a.esc;this.ignoreCase=a.ignoreCase;this.gFlag=a.gFlag;this.rep=null==a.rep?null:a.rep.clone();this.thePattern=a.thePattern.clone(new java.util.Hashtable);this.minMatch=a.minMatch;this.skipper=a.skipper;return this},"com.stevesoft.pat.Regex");d(c$,"setDontMatchInQuotes",function(a){this.dontMatchInQuotes=a},"~B");d(c$,"getDontMatchInQuotes",function(){return this.dontMatchInQuotes});e(c$,"setIgnoreCase",function(a){this.ignoreCase=a},"~B");d(c$,"getIgnoreCase",function(){return this.ignoreCase});
1049 c$.setDefaultMFlag=d(c$,"setDefaultMFlag",function(a){com.stevesoft.pat.Regex.defaultMFlag=a},"~B");c$.getDefaultMFlag=d(c$,"getDefaultMFlag",function(){return com.stevesoft.pat.Regex.defaultMFlag});d(c$,"setReplaceRuleStr",function(a){this.rep=com.stevesoft.pat.ReplaceRule.perlCode(a);this.repr=null},"~S");d(c$,"setReplaceRule",function(a){this.rep=a},"com.stevesoft.pat.ReplaceRule");c$.isDefined=d(c$,"isDefined",function(a){return null!=com.stevesoft.pat.Regex.validators.get(a)},"~S");c$.undefine=
1050 d(c$,"undefine",function(a){com.stevesoft.pat.Regex.validators.remove(a)},"~S");c$.defineV=d(c$,"defineV",function(a,b,c){c.pattern=b;com.stevesoft.pat.Regex.validators.put(a,c)},"~S,~S,com.stevesoft.pat.Validator");c$.define=d(c$,"define",function(a,b){com.stevesoft.pat.Regex.validators.put(a,b)},"~S,~S");d(c$,"getReplaceRule",function(){return this.rep});d(c$,"_getReplacer",function(){return null==this.repr?this.repr=new com.stevesoft.pat.Replacer:this.repr});d(c$,"getReplacer",function(){null==
1051 this.repr&&(this.repr=new com.stevesoft.pat.Replacer);this.repr.rh.me=this;this.repr.rh.prev=null;return this.repr});d(c$,"replaceFirst",function(a){return this._getReplacer().replaceFirstRegion(a,this,0,a.length).toString()},"~S");d(c$,"replaceFirstFrom",function(a,b){return this._getReplacer().replaceFirstRegion(a,this,b,a.length).toString()},"~S,~N");d(c$,"replaceFirstRegion",function(a,b,c){return this._getReplacer().replaceFirstRegion(a,this,b,c).toString()},"~S,~N,~N");e(c$,"replaceAll",function(a){return this._getReplacer().replaceAllRegion(a,
1052 this,0,a.length).toString()},"~S");d(c$,"replaceAllLike",function(a){return this._getReplacer().replaceAllRegion(a,this,0,a.length())},"com.stevesoft.pat.StringLike");d(c$,"replaceAllFrom",function(a,b){return this._getReplacer().replaceAllRegion(a,this,b,a.length).toString()},"~S,~N");d(c$,"replaceAllRegion",function(a,b,c){return this._getReplacer().replaceAllRegion(a,this,b,c).toString()},"~S,~N,~N");d(c$,"compile",function(a){var b=com.stevesoft.pat.parsePerl.codify(a,!0);a=null==b?a:b;this.minMatch=
1053 null;this.dontMatchInQuotes=this.ignoreCase=!1;var b=new com.stevesoft.pat.Rthings(this),c=b.val,f=a;this.thePattern=com.stevesoft.pat.Regex.none;this.or=this.p=null;this.minMatch=new com.stevesoft.pat.patInt(0);var l=new com.stevesoft.pat.StrPos(a,0);if(l.incMatch("(?e=")){var d=l.c;l.inc();l.match(")")&&(f=com.stevesoft.pat.Regex.reEscape(a.substring(6),d,"\\"))}else"\\"!=this.esc&&(f=com.stevesoft.pat.Regex.reEscape(a,this.esc,"\\"));this.thePattern=this._compile(f,b);this.numSubs_=b.val-c;b.set(this)},
1054 "~S");d(c$,"equals",function(a){return v(a,com.stevesoft.pat.Regex)?this.toString().equals(a.toString())?K(this,com.stevesoft.pat.Regex,"equals",[a]):!1:K(this,com.stevesoft.pat.Regex,"equals",[a])},"~O");d(c$,"prep",function(a){this.pt.lastPos=this.matchedTo();0>this.pt.lastPos&&(this.pt.lastPos=0);if((null==a?null:a.unwrap())!==(null==this.src?null:a.unwrap()))this.pt.lastPos=0;this.src=a;this.pt.dotDoesntMatchCR=com.stevesoft.pat.Regex.dotDoesntMatchCR&&!this.sFlag;this.pt.mFlag=(new Boolean(this.mFlag|
1055 com.stevesoft.pat.Regex.defaultMFlag)).valueOf();this.pt.ignoreCase=this.ignoreCase;this.pt.no_check=!1;if(null!=this.pt.marks)for(var b=0;b<this.pt.marks.length;b++)this.pt.marks[b]=-1;this.pt.marks=null;this.pt.nMarks=this.numSubs_;this.pt.src=a;this.dontMatchInQuotes?com.stevesoft.pat.Regex.setCbits(a,this.pt):this.pt.cbits=null;return this.pt},"com.stevesoft.pat.StringLike");d(c$,"matchAt",function(a,b){return this._search(a,b,b)},"~S,~N");d(c$,"matchAtLike",function(a,b){return this._searchLike(a,
1056 b,b)},"com.stevesoft.pat.StringLike,~N");e(c$,"search",function(a){if(null==a)throw new NullPointerException(com.stevesoft.pat.MessageManager.getString("exception.null_string_given_to_regex_search"));return this._search(a,0,a.length)},"~S");d(c$,"searchLike",function(a){if(null==a)throw new NullPointerException(com.stevesoft.pat.MessageManager.getString("exception.null_string_like_given_to_regex_search"));return this._searchLike(a,0,a.length())},"com.stevesoft.pat.StringLike");d(c$,"reverseSearch",
1057 function(a){if(null==a)throw new NullPointerException(com.stevesoft.pat.MessageManager.getString("exception.null_string_given_to_regex_reverse_search"));return this._reverseSearch(a,0,a.length)},"~S");d(c$,"reverseSearchLike",function(a){if(null==a)throw new NullPointerException(com.stevesoft.pat.MessageManager.getString("exception.null_string_like_given_to_regex_reverse_search"));return this._reverseSearchLike(a,0,a.length())},"com.stevesoft.pat.StringLike");e(c$,"searchFrom",function(a,b){if(null==
1058 a)throw new NullPointerException(com.stevesoft.pat.MessageManager.getString("exception.null_string_like_given_to_regex_search_from"));return this._search(a,b,a.length)},"~S,~N");d(c$,"searchFromLike",function(a,b){if(null==a)throw new NullPointerException(com.stevesoft.pat.MessageManager.getString("exception.null_string_like_given_to_regex_search_from"));return this._searchLike(a,b,a.length())},"com.stevesoft.pat.StringLike,~N");d(c$,"searchRegion",function(a,b,c){if(null==a)throw new NullPointerException(com.stevesoft.pat.MessageManager.getString("exception.null_string_like_given_to_regex_search_region"));
1059 return this._search(a,b,c)},"~S,~N,~N");d(c$,"setGFlag",function(a){this.gFlag=a},"~B");d(c$,"getGFlag",function(){return this.gFlag});d(c$,"getSFlag",function(){return this.sFlag});d(c$,"getMFlag",function(){return this.mFlag});d(c$,"_search",function(a,b,c){return this._searchLike(new com.stevesoft.pat.wrap.StringWrap(a),b,c)},"~S,~N,~N");d(c$,"_searchLike",function(a,b,c){this.gFlag&&(0<this.gFlagto&&null!=this.gFlags&&a.unwrap()===this.gFlags.unwrap())&&(b=this.gFlagto);this.gFlags=null;var f=
1060 this.prep(a),l=null==this.minMatch?c:c-this.minMatch.i;l<b&&c>=b&&(l=b);if(null==this.skipper)for(;b<=l;b++){if(this.charsMatched_=this.thePattern.matchAt(a,b,f),0<=this.charsMatched_)return this.matchFrom_=this.thePattern.mfrom,this.marks=f.marks,this.gFlagto=this.matchFrom_+this.charsMatched_,this.gFlags=a,this.didMatch_=!0}else for(f.no_check=!0;b<=l;b++){b=this.skipper.find(this.src,b,l);if(0>b){this.charsMatched_=this.matchFrom_=-1;break}this.charsMatched_=this.thePattern.matchAt(a,b,f);if(0<=
1061 this.charsMatched_)return this.matchFrom_=this.thePattern.mfrom,this.marks=f.marks,this.gFlagto=this.matchFrom_+this.charsMatched_,this.gFlags=a,this.didMatch_=!0}return this.didMatch_=!1},"com.stevesoft.pat.StringLike,~N,~N");d(c$,"_reverseSearch",function(a,b,c){return this._reverseSearchLike(new com.stevesoft.pat.wrap.StringWrap(a),b,c)},"~S,~N,~N");d(c$,"_reverseSearchLike",function(a,b,c){this.gFlag&&(0<this.gFlagto&&a.unwrap()===this.gFlags.unwrap())&&(c=this.gFlagto);this.gFlags=null;for(var f=
1062 this.prep(a);c>=b;c--)if(this.charsMatched_=this.thePattern.matchAt(a,c,f),0<=this.charsMatched_)return this.matchFrom_=this.thePattern.mfrom,this.marks=f.marks,this.gFlagto=this.matchFrom_-1,this.gFlags=a,this.didMatch_=!0;return this.didMatch_=!1},"com.stevesoft.pat.StringLike,~N,~N");c$.setCbits=d(c$,"setCbits",function(a,b){if(a===com.stevesoft.pat.Regex.lasts)b.cbits=com.stevesoft.pat.Regex.lastbs;else{for(var c=new java.util.BitSet(a.length()),f=" ",l=!1,d=0;d<a.length();d++){l&&c.set(d);var g=
1063 a.charAt(d);!l&&'"'==g?(f=g,l=!0,c.set(d)):!l&&"'"==g?(f=g,l=!0,c.set(d)):l&&g==f?l=!1:l&&("\\"==g&&d+1<a.length())&&(d++,l&&c.set(d))}b.cbits=com.stevesoft.pat.Regex.lastbs=c;com.stevesoft.pat.Regex.lasts=a}},"com.stevesoft.pat.StringLike,com.stevesoft.pat.Pthings");d(c$,"add",function(a){null==this.p?this.p=a:this.p.add(a)},"com.stevesoft.pat.Pattern");d(c$,"compileSP",function(a,b){if(a.match("["))a.inc(),this.add(this.matchBracket(a));else if(a.match("|"))null==this.or&&(this.or=new com.stevesoft.pat.Or),
1064 null==this.p&&(this.p=new com.stevesoft.pat.NullPattern),this.or.addOr(this.p),this.p=null;else if(a.incMatch("(?<")){var c=a.getPatInt();null==c&&com.stevesoft.pat.RegSyntaxError.endItAll("No int after (?<");this.add(new com.stevesoft.pat.Backup(c.intValue()));a.match(")")||com.stevesoft.pat.RegSyntaxError.endItAll("No ) after (?<")}else if(a.incMatch("(?>"))c=a.getPatInt(),null==c&&com.stevesoft.pat.RegSyntaxError.endItAll("No int after (?>"),this.add(new com.stevesoft.pat.Backup(-c.intValue())),
1065 a.match(")")||com.stevesoft.pat.RegSyntaxError.endItAll("No ) after (?<");else if(a.incMatch("(?@")){c=a.c;a.inc();var f=a.c;a.inc();a.match(")")||com.stevesoft.pat.RegSyntaxError.endItAll("(?@ does not have closing paren");this.add(new com.stevesoft.pat.Group(c,f))}else if(a.incMatch("(?#"))for(;!a.match(")");)a.inc();else if(a.dontMatch&&"w"==a.c)c=new com.stevesoft.pat.Bracket(!1),c.addOr(new com.stevesoft.pat.Range("a","z")),c.addOr(new com.stevesoft.pat.Range("A","Z")),c.addOr(new com.stevesoft.pat.Range("0",
1066 "9")),c.addOr(new com.stevesoft.pat.oneChar("_")),this.add(c);else if(a.dontMatch&&"G"==a.c)this.add(new com.stevesoft.pat.BackG);else if(a.dontMatch&&"s"==a.c)c=new com.stevesoft.pat.Bracket(!1),c.addOr(new com.stevesoft.pat.oneChar(String.fromCharCode(32))),c.addOr(new com.stevesoft.pat.Range(String.fromCharCode(8),String.fromCharCode(10))),c.addOr(new com.stevesoft.pat.oneChar(String.fromCharCode(13))),this.add(c);else if(a.dontMatch&&"d"==a.c)c=new com.stevesoft.pat.Range("0","9"),c.printBrackets=
1067 !0,this.add(c);else if(a.dontMatch&&"W"==a.c)c=new com.stevesoft.pat.Bracket(!0),c.addOr(new com.stevesoft.pat.Range("a","z")),c.addOr(new com.stevesoft.pat.Range("A","Z")),c.addOr(new com.stevesoft.pat.Range("0","9")),c.addOr(new com.stevesoft.pat.oneChar("_")),this.add(c);else if(a.dontMatch&&"S"==a.c)c=new com.stevesoft.pat.Bracket(!0),c.addOr(new com.stevesoft.pat.oneChar(String.fromCharCode(32))),c.addOr(new com.stevesoft.pat.Range(String.fromCharCode(8),String.fromCharCode(10))),c.addOr(new com.stevesoft.pat.oneChar(String.fromCharCode(13))),
1068 this.add(c);else if(a.dontMatch&&"D"==a.c)c=new com.stevesoft.pat.Bracket(!0),c.addOr(new com.stevesoft.pat.Range("0","9")),this.add(c);else if(a.dontMatch&&"B"==a.c)f=new com.stevesoft.pat.Regex(null,""),f._compile("(?!\\b)",b),this.add(f.thePattern);else if(this.isOctalString(a))f=a.c.charCodeAt(0)-48,a.inc(),f=8*f+a.c.charCodeAt(0)-48,c=new com.stevesoft.pat.StrPos(a),c.inc(),this.isOctalDigit(c,!1)&&(a.inc(),f=8*f+a.c.charCodeAt(0)-48),this.add(new com.stevesoft.pat.oneChar(String.fromCharCode(f)));
1069 else if(a.dontMatch&&"1"<=a.c&&"9">=a.c)c=a.c.charCodeAt(0)-48,f=new com.stevesoft.pat.StrPos(a),f.inc(),!f.dontMatch&&("0"<=f.c&&"9">=f.c)&&(c=10*c+(f.c.charCodeAt(0)-48),a.inc()),this.add(new com.stevesoft.pat.BackMatch(c));else if(a.dontMatch&&"b"==a.c)this.add(new com.stevesoft.pat.Boundary);else if(a.match("\b"))this.add(new com.stevesoft.pat.Boundary);else if(a.match("$"))this.add(new com.stevesoft.pat.End(!0));else if(a.dontMatch&&"Z"==a.c)this.add(new com.stevesoft.pat.End(!1));else if(a.match("."))this.add(new com.stevesoft.pat.Any);
1070 else if(a.incMatch("(??")){c=new StringBuffer;for(f=new StringBuffer;!a.match(")")&&!a.match(":");)c.append(a.c),a.inc();if(a.incMatch(":"))for(;!a.match(")");)f.append(a.c),a.inc();var l=c.toString();v(com.stevesoft.pat.Regex.validators.get(l),String)?(c=com.stevesoft.pat.Regex.validators.get(l),f=new com.stevesoft.pat.Regex(null,""),l=new com.stevesoft.pat.Rthings(this),l.noBackRefs=!0,f._compile(c,l),this.add(f.thePattern)):(c=new com.stevesoft.pat.Custom(c.toString()),null!=c.v&&(l=c.v.arg(f.toString()),
1071 null!=l&&(l.argsave=f.toString(),f=c.v.pattern,c.v=l,l.pattern=f),f=new com.stevesoft.pat.Regex(null,""),l=new com.stevesoft.pat.Rthings(this),l.noBackRefs=!0,f._compile(c.v.pattern,l),c.sub=f.thePattern,c.sub.add(new com.stevesoft.pat.CustomEndpoint(c)),c.sub.setParent(c),this.add(c)))}else if(a.match("(")){b.parenLevel++;f=new com.stevesoft.pat.Regex(null,"");a.inc();if(a.incMatch("?:"))f.or=new com.stevesoft.pat.Or;else if(a.incMatch("?="))f.or=new com.stevesoft.pat.lookAhead(!1);else if(a.incMatch("?!"))f.or=
1072 new com.stevesoft.pat.lookAhead(!0);else if(a.match("?")){a.inc();do"i"==a.c&&(b.ignoreCase=!0),"Q"==a.c&&(b.dontMatchInQuotes=!0),"o"==a.c&&(b.optimizeMe=!0),"g"==a.c&&(b.gFlag=!0),"s"==a.c&&(b.sFlag=!0),"m"==a.c&&(b.mFlag=!0),a.inc();while(!a.match(")")&&!a.$eos);f=null;b.parenLevel--;a.$eos&&com.stevesoft.pat.RegSyntaxError.endItAll("Unclosed ()")}else f.or=b.noBackRefs?new com.stevesoft.pat.Or:new com.stevesoft.pat.OrMark(b.val++);null!=f&&this.add(f._compileSP(a,b))}else if(a.match("^"))this.add(new com.stevesoft.pat.Start(!0));
1073 else if(a.dontMatch&&"A"==a.c)this.add(new com.stevesoft.pat.Start(!1));else if(a.match("*"))this.addMulti(new com.stevesoft.pat.patInt(0),new com.stevesoft.pat.patInf);else if(a.match("+"))this.addMulti(new com.stevesoft.pat.patInt(1),new com.stevesoft.pat.patInf);else if(a.match("?"))this.addMulti(new com.stevesoft.pat.patInt(0),new com.stevesoft.pat.patInt(1));else if(a.match("{")){f=!1;c=new com.stevesoft.pat.StrPos(a);a.inc();var l=a.getPatInt(),d=null;a.match("}")?d=l:(a.match(",")||(f=!0),
1074 a.inc(),d=a.match("}")?new com.stevesoft.pat.patInf:a.getPatInt());if(null==l||null==d)f=!0;f?(a.dup(c),this.add(new com.stevesoft.pat.oneChar(a.c))):this.addMulti(l,d)}else a.escMatch("x")&&this.next2Hex(a)?(a.inc(),f=this.getHexDigit(a),a.inc(),f=16*f+this.getHexDigit(a),this.add(new com.stevesoft.pat.oneChar(String.fromCharCode(f)))):a.escMatch("c")?(a.inc(),a.c.charCodeAt(0)<com.stevesoft.pat.Ctrl.cmap.length?this.add(new com.stevesoft.pat.oneChar(com.stevesoft.pat.Ctrl.cmap[a.c.charCodeAt(0)])):
1075 this.add(new com.stevesoft.pat.oneChar(a.c))):a.escMatch("f")?this.add(new com.stevesoft.pat.oneChar(String.fromCharCode(12))):a.escMatch("a")?this.add(new com.stevesoft.pat.oneChar(String.fromCharCode(7))):a.escMatch("t")?this.add(new com.stevesoft.pat.oneChar("\t")):a.escMatch("n")?this.add(new com.stevesoft.pat.oneChar("\n")):a.escMatch("r")?this.add(new com.stevesoft.pat.oneChar("\r")):a.escMatch("b")?this.add(new com.stevesoft.pat.oneChar("\b")):a.escMatch("e")?this.add(new com.stevesoft.pat.oneChar(String.fromCharCode(27))):
1076 (this.add(new com.stevesoft.pat.oneChar(a.c)),a.match(")")&&com.stevesoft.pat.RegSyntaxError.endItAll("Unmatched right paren in pattern"))},"com.stevesoft.pat.StrPos,com.stevesoft.pat.Rthings");d(c$,"_compile",function(a,b){this.minMatch=null;this.sFlag=this.mFlag=this.ignoreCase=this.gFlag=!1;var c=new com.stevesoft.pat.StrPos(a,0);this.thePattern=this._compileSP(c,b);this.pt.marks=null;return this.thePattern},"~S,com.stevesoft.pat.Rthings");d(c$,"_compileSP",function(a,b){for(;!(a.$eos||null!=this.or&&
1077 a.match(")"));)this.compileSP(a,b),a.inc();a.match(")")?b.parenLevel--:a.$eos&&0!=b.parenLevel&&com.stevesoft.pat.RegSyntaxError.endItAll("Unclosed Parenthesis! lvl="+b.parenLevel);return null!=this.or?(null==this.p&&(this.p=new com.stevesoft.pat.NullPattern),this.or.addOr(this.p),this.or):null==this.p?new com.stevesoft.pat.NullPattern:this.p},"com.stevesoft.pat.StrPos,com.stevesoft.pat.Rthings");d(c$,"addMulti",function(a,b){var c,f;for(c=this.p;null!=c&&null!=c.next;c=c.next);if(null==c||c===this.p)f=
1078 null;else for(f=this.p;f.next!==c;f=f.next);if(v(c,com.stevesoft.pat.Multi)&&0==a.intValue()&&1==b.intValue())c.matchFewest=!0;else if(v(c,com.stevesoft.pat.FastMulti)&&0==a.intValue()&&1==b.intValue())c.matchFewest=!0;else if(v(c,com.stevesoft.pat.DotMulti)&&0==a.intValue()&&1==b.intValue())c.matchFewest=!0;else{if(v(c,com.stevesoft.pat.Multi)||v(c,com.stevesoft.pat.DotMulti)||v(c,com.stevesoft.pat.FastMulti))throw new com.stevesoft.pat.RegSyntax("Syntax error.");null==f?this.p=com.stevesoft.pat.Regex.mkMulti(a,
1079 b,this.p):f.next=com.stevesoft.pat.Regex.mkMulti(a,b,c)}},"com.stevesoft.pat.patInt,com.stevesoft.pat.patInt");c$.mkMulti=d(c$,"mkMulti",function(a,b,c){return v(c,com.stevesoft.pat.Any)&&null==c.next?new com.stevesoft.pat.DotMulti(a,b):com.stevesoft.pat.RegOpt.safe4fm(c)?new com.stevesoft.pat.FastMulti(a,b,c):new com.stevesoft.pat.Multi(a,b,c)},"com.stevesoft.pat.patInt,com.stevesoft.pat.patInt,com.stevesoft.pat.Pattern");d(c$,"matchBracket",function(a){var b;a.match("^")?(b=new com.stevesoft.pat.Bracket(!0),
1080 a.inc()):b=new com.stevesoft.pat.Bracket(!1);for(a.match("]")&&com.stevesoft.pat.RegSyntaxError.endItAll("Unmatched []");!a.$eos&&!a.match("]");){var c=new com.stevesoft.pat.StrPos(a);c.inc();var f=new com.stevesoft.pat.StrPos(c);f.inc();if(c.match("-")&&!f.match("]"))c=new com.stevesoft.pat.StrPos(c),c.inc(),c.$eos||b.addOr(new com.stevesoft.pat.Range(a.c,c.c)),a.inc(),a.inc();else if(a.escMatch("Q"))for(a.inc();!a.escMatch("E");)b.addOr(new com.stevesoft.pat.oneChar(a.c)),a.inc();else a.escMatch("d")?
1081 b.addOr(new com.stevesoft.pat.Range("0","9")):a.escMatch("s")?(b.addOr(new com.stevesoft.pat.oneChar(String.fromCharCode(32))),b.addOr(new com.stevesoft.pat.Range(String.fromCharCode(8),String.fromCharCode(10))),b.addOr(new com.stevesoft.pat.oneChar(String.fromCharCode(13)))):a.escMatch("w")?(b.addOr(new com.stevesoft.pat.Range("a","z")),b.addOr(new com.stevesoft.pat.Range("A","Z")),b.addOr(new com.stevesoft.pat.Range("0","9")),b.addOr(new com.stevesoft.pat.oneChar("_"))):a.escMatch("D")?(b.addOr(new com.stevesoft.pat.Range(String.fromCharCode(0),
1082 String.fromCharCode(47))),b.addOr(new com.stevesoft.pat.Range(String.fromCharCode(58),String.fromCharCode(65535)))):a.escMatch("S")?(b.addOr(new com.stevesoft.pat.Range(String.fromCharCode(0),String.fromCharCode(7))),b.addOr(new com.stevesoft.pat.Range(String.fromCharCode(11),String.fromCharCode(12))),b.addOr(new com.stevesoft.pat.Range(String.fromCharCode(14),String.fromCharCode(31))),b.addOr(new com.stevesoft.pat.Range(String.fromCharCode(33),String.fromCharCode(65535)))):a.escMatch("W")?(b.addOr(new com.stevesoft.pat.Range(String.fromCharCode(0),
1083 String.fromCharCode(64))),b.addOr(new com.stevesoft.pat.Range(String.fromCharCode(91),String.fromCharCode(94))),b.addOr(new com.stevesoft.pat.oneChar(String.fromCharCode(96))),b.addOr(new com.stevesoft.pat.Range(String.fromCharCode(123),String.fromCharCode(65535)))):a.escMatch("x")&&this.next2Hex(a)?(a.inc(),c=this.getHexDigit(a),a.inc(),c=16*c+this.getHexDigit(a),b.addOr(new com.stevesoft.pat.oneChar(String.fromCharCode(c)))):a.escMatch("a")?b.addOr(new com.stevesoft.pat.oneChar(String.fromCharCode(7))):
1084 a.escMatch("f")?b.addOr(new com.stevesoft.pat.oneChar(String.fromCharCode(12))):a.escMatch("e")?b.addOr(new com.stevesoft.pat.oneChar(String.fromCharCode(27))):a.escMatch("n")?b.addOr(new com.stevesoft.pat.oneChar("\n")):a.escMatch("t")?b.addOr(new com.stevesoft.pat.oneChar("\t")):a.escMatch("r")?b.addOr(new com.stevesoft.pat.oneChar("\r")):a.escMatch("c")?(a.inc(),a.c.charCodeAt(0)<com.stevesoft.pat.Ctrl.cmap.length?b.addOr(new com.stevesoft.pat.oneChar(com.stevesoft.pat.Ctrl.cmap[a.c.charCodeAt(0)])):
1085 b.addOr(new com.stevesoft.pat.oneChar(a.c))):this.isOctalString(a)?(c=a.c.charCodeAt(0)-48,a.inc(),c=8*c+a.c.charCodeAt(0)-48,f=new com.stevesoft.pat.StrPos(a),f.inc(),this.isOctalDigit(f,!1)&&(a.inc(),c=8*c+a.c.charCodeAt(0)-48),b.addOr(new com.stevesoft.pat.oneChar(String.fromCharCode(c)))):b.addOr(new com.stevesoft.pat.oneChar(a.c));a.inc()}return b},"com.stevesoft.pat.StrPos");e(c$,"toString",function(){var a=new StringBuffer;"\\"!=this.esc&&(a.append("(?e="),a.append(this.esc),a.append(")"));
1086 if(this.gFlag||this.mFlag||!com.stevesoft.pat.Regex.dotDoesntMatchCR||this.sFlag||this.ignoreCase||this.dontMatchInQuotes||this.optimized())a.append("(?"),this.ignoreCase&&a.append("i"),this.mFlag&&a.append("m"),(this.sFlag||!com.stevesoft.pat.Regex.dotDoesntMatchCR)&&a.append("s"),this.dontMatchInQuotes&&a.append("Q"),this.optimized()&&a.append("o"),this.gFlag&&a.append("g"),a.append(")");var b=this.thePattern.toString();"\\"!=this.esc&&(b=com.stevesoft.pat.Regex.reEscape(b,"\\",this.esc));a.append(b);
1087 return a.toString()});c$.reEscape=d(c$,"reEscape",function(a,b,c){if(b==c)return a;var f,l=new StringBuffer;for(f=0;f<a.length;f++)a.charAt(f)==b&&f+1<a.length?(a.charAt(f+1)==b?l.append(b):(l.append(c),l.append(a.charAt(f+1))),f++):a.charAt(f)==c?(l.append(c),l.append(c)):l.append(a.charAt(f));return l.toString()},"~S,~S,~S");d(c$,"accept",function(a,b){return this.search(b)},"java.io.File,~S");c$.version=d(c$,"version",function(){return"lgpl release 1.5.3"});d(c$,"optimize",function(){this.optimized()||
1088 null==this.thePattern||(this.minMatch=new com.stevesoft.pat.patInt(0),this.thePattern=com.stevesoft.pat.RegOpt.opt(this.thePattern,this.ignoreCase,this.dontMatchInQuotes),this.skipper=com.stevesoft.pat.Skip.findSkipRegex(this))});d(c$,"optimized",function(){return null!=this.minMatch});c$.perlCode=d(c$,"perlCode",function(a){return com.stevesoft.pat.parsePerl.parse(a)},"~S");d(c$,"isLiteral",function(){for(var a=this.thePattern;null!=a;){if(!v(a,com.stevesoft.pat.oneChar)&&!v(a,com.stevesoft.pat.Skipped))return!1;
1089 a=a.next}return!0});d(c$,"countMinChars",function(){return this.thePattern.countMinChars()});d(c$,"countMaxChars",function(){return this.thePattern.countMaxChars()});d(c$,"isHexDigit",function(a){return!a.$eos&&!a.dontMatch&&("0"<=a.c&&"9">=a.c||"a"<=a.c&&"f">=a.c||"A"<=a.c&&"F">=a.c)},"com.stevesoft.pat.StrPos");d(c$,"isOctalDigit",function(a,b){return!a.$eos&&!(new Boolean(b^a.dontMatch)).valueOf()&&"0"<=a.c&&"7">=a.c},"com.stevesoft.pat.StrPos,~B");d(c$,"getHexDigit",function(a){return"0"<=a.c&&
1090 "9">=a.c?a.c.charCodeAt(0)-48:"a"<=a.c&&"f">=a.c?a.c.charCodeAt(0)-97+10:a.c.charCodeAt(0)-65+10},"com.stevesoft.pat.StrPos");d(c$,"next2Hex",function(a){a=new com.stevesoft.pat.StrPos(a);a.inc();if(!this.isHexDigit(a))return!1;a.inc();return!this.isHexDigit(a)?!1:!0},"com.stevesoft.pat.StrPos");d(c$,"isOctalString",function(a){if(!this.isOctalDigit(a,!0))return!1;a=new com.stevesoft.pat.StrPos(a);a.inc();return!this.isOctalDigit(a,!1)?!1:!0},"com.stevesoft.pat.StrPos");G(c$,"BackRefOffset",1);c$.none=
1091 c$.prototype.none=new com.stevesoft.pat.NoPattern;c$.validators=c$.prototype.validators=new java.util.Hashtable;com.stevesoft.pat.Regex.defineV("p","(?>1)",new com.stevesoft.pat.UnicodePunct);com.stevesoft.pat.Regex.defineV("P","(?>1)",new com.stevesoft.pat.NUnicodePunct);com.stevesoft.pat.Regex.defineV("s","(?>1)",new com.stevesoft.pat.UnicodeWhite);com.stevesoft.pat.Regex.defineV("S","(?>1)",new com.stevesoft.pat.NUnicodeWhite);com.stevesoft.pat.Regex.defineV("w","(?>1)",new com.stevesoft.pat.UnicodeW);
1092 com.stevesoft.pat.Regex.defineV("W","(?>1)",new com.stevesoft.pat.NUnicodeW);com.stevesoft.pat.Regex.defineV("d","(?>1)",new com.stevesoft.pat.UnicodeDigit);com.stevesoft.pat.Regex.defineV("D","(?>1)",new com.stevesoft.pat.NUnicodeDigit);com.stevesoft.pat.Regex.defineV("m","(?>1)",new com.stevesoft.pat.UnicodeMath);com.stevesoft.pat.Regex.defineV("M","(?>1)",new com.stevesoft.pat.NUnicodeMath);com.stevesoft.pat.Regex.defineV("c","(?>1)",new com.stevesoft.pat.UnicodeCurrency);com.stevesoft.pat.Regex.defineV("C",
1093 "(?>1)",new com.stevesoft.pat.NUnicodeCurrency);com.stevesoft.pat.Regex.defineV("a","(?>1)",new com.stevesoft.pat.UnicodeAlpha);com.stevesoft.pat.Regex.defineV("A","(?>1)",new com.stevesoft.pat.NUnicodeAlpha);com.stevesoft.pat.Regex.defineV("uc","(?>1)",new com.stevesoft.pat.UnicodeUpper);com.stevesoft.pat.Regex.defineV("lc","(?>1)",new com.stevesoft.pat.UnicodeLower);G(c$,"defaultMFlag",!1,"dotDoesntMatchCR",!0,"lasts",null,"lastbs",null,"back_slash","\\")});p("com.stevesoft.pat");q(null,"com.stevesoft.pat.RegRes",
1094 ["java.lang.StringBuffer"],function(){c$=s(function(){this.marks=null;this.didMatch_=!1;this.src=null;this.numSubs_=this.matchFrom_=this.charsMatched_=0;r(this,arguments)},com.stevesoft.pat,"RegRes");d(c$,"getString",function(){return this.src.toString()});d(c$,"getStringLike",function(){return this.src});e(c$,"toString",function(){var a=new StringBuffer;a.append("match="+this.matchedFrom()+":"+this.charsMatched());if(!this.didMatch())return a.toString();for(var b=0;b<this.numSubs();b++){var c=b+
1095 1;a.append(" sub("+c+")="+this.matchedFromI(c)+":"+this.charsMatchedI(c))}return a.toString()});d(c$,"copyOutOf",function(a){if(null==a.marks)this.marks=null;else try{this.marks=w(a.marks.length,0);for(var b=0;b<this.marks.length;b++)this.marks[b]=a.marks[b]}catch(c){}this.didMatch_=a.didMatch_;this.src=a.src;this.charsMatched_=a.charsMatched_;this.matchFrom_=a.matchFrom_;this.numSubs_=a.numSubs_},"com.stevesoft.pat.RegRes");d(c$,"equals",function(a){if(this.charsMatched_!=a.charsMatched_||(this.matchFrom_!=
1096 a.matchFrom_||this.didMatch_!=a.didMatch_||this.numSubs_!=a.numSubs_||!this.src.unwrap().equals(a.src.unwrap()))||null==this.marks&&null!=a.marks||null!=this.marks&&null==a.marks)return!1;for(var b=1;b<=this.numSubs_;b++)if(this.matchedFromI(b)!=a.matchedFromI(b)||this.charsMatchedI(b)!=a.charsMatchedI(b))return!1;return!0},"com.stevesoft.pat.RegRes");d(c$,"stringMatched",function(){var a=this.matchedFrom(),b=this.charsMatched();return!this.didMatch_||0>a||0>b?null:this.src.substring(a,a+b)});d(c$,
1097 "matchedFromI",function(a){return null==this.marks||a>this.numSubs_?-1:this.marks[a]},"~N");d(c$,"charsMatchedI",function(a){return null==this.marks||a>this.numSubs_||!this.didMatch_?-1:0>this.matchedFromI(a)?-1:this.marks[a+this.numSubs_]-this.matchedFromI(a)},"~N");d(c$,"matchedToI",function(a){return null==this.marks||a>this.numSubs_||!this.didMatch_?-1:this.marks[a+this.numSubs_]},"~N");d(c$,"stringMatchedI",function(a){var b=this.matchedFromI(a);a=this.charsMatchedI(a);return!this.didMatch_||
1098 0>b||0>a?null:this.src.substring(b,b+a)},"~N");d(c$,"left",function(){var a=this.matchedFrom();return!this.didMatch_||0>a?null:this.src.substring(0,a)});d(c$,"leftI",function(a){a=this.matchedFromI(a);return!this.didMatch_||0>a?null:this.src.substring(0,a)},"~N");d(c$,"right",function(){var a=this.matchedFrom(),b=this.charsMatched();return!this.didMatch_||0>a||0>b?null:this.src.substring(a+b,this.src.length())});d(c$,"rightI",function(a){var b=this.matchedFromI(a);a=this.charsMatchedI(a);return!this.didMatch_||
1099 0>b||0>a?null:this.src.substring(b+a,this.src.length())},"~N");d(c$,"matchedFrom",function(){return!this.didMatch_?-1:this.matchFrom_});d(c$,"charsMatched",function(){return!this.didMatch_||0>this.matchFrom_?-1:this.charsMatched_});d(c$,"matchedTo",function(){return!this.didMatch_?-1:this.matchFrom_+this.charsMatched_});d(c$,"numSubs",function(){return this.numSubs_});d(c$,"didMatch",function(){return this.didMatch_});d(c$,"matchFrom",function(){return this.matchedFrom()});d(c$,"substring",function(){return this.stringMatched()});
1100 d(c$,"matchFromI",function(a){return this.matchedFromI(a)},"~N");d(c$,"substringI",function(a){return this.stringMatchedI(a)},"~N")});p("com.stevesoft.pat");q(["com.stevesoft.pat.Validator"],"com.stevesoft.pat.UniValidator",["com.stevesoft.pat.patInt"],function(){c$=B(com.stevesoft.pat,"UniValidator",com.stevesoft.pat.Validator);e(c$,"minChars",function(){return new com.stevesoft.pat.patInt(1)});e(c$,"maxChars",function(){return new com.stevesoft.pat.patInt(1)})});p("com.stevesoft.pat");q(null,"com.stevesoft.pat.Validator",
1101 ["com.stevesoft.pat.patInf","$.patInt"],function(){c$=s(function(){this.argsave=null;this.pattern=".";r(this,arguments)},com.stevesoft.pat,"Validator");d(c$,"validate",function(a,b,c){return c},"com.stevesoft.pat.StringLike,~N,~N");d(c$,"arg",function(){return null},"~S");d(c$,"minChars",function(){return new com.stevesoft.pat.patInt(0)});d(c$,"maxChars",function(){return new com.stevesoft.pat.patInf})});p("com.stevesoft.pat");q(["com.stevesoft.pat.patInt"],"com.stevesoft.pat.patInf",null,function(){c$=
1102 B(com.stevesoft.pat,"patInf",com.stevesoft.pat.patInt);m(c$,function(){t(this,com.stevesoft.pat.patInf,[]);this.inf=!0})});p("com.stevesoft.pat");c$=s(function(){this.i=0;this.inf=!1;r(this,arguments)},com.stevesoft.pat,"patInt");m(c$,function(){this.i=0;this.inf=!1});m(c$,function(a){this.i=a;this.inf=!1},"~N");m(c$,function(a){this.i=a.i;this.inf=a.inf},"com.stevesoft.pat.patInt");d(c$,"setInf",function(a){if(this.inf=a)this.i=2147483647},"~B");d(c$,"inc",function(){this.inf||this.i++});d(c$,"dec",
1103 function(){this.inf||this.i--});d(c$,"lessEq",function(a){return!this.inf&&(a.inf||this.i<=a.i)},"com.stevesoft.pat.patInt");d(c$,"equals",function(a){return!a.inf&&!this.inf&&this.i==a.i},"com.stevesoft.pat.patInt");e(c$,"toString",function(){return this.inf?"":""+this.i});d(c$,"pluseq",function(a){this.inf||a.inf?this.setInf(!0):this.i+=a.i;return this},"com.stevesoft.pat.patInt");d(c$,"mul",function(a){return this.inf||a.inf?new com.stevesoft.pat.patInf:new com.stevesoft.pat.patInt(this.i*a.i)},
1104 "com.stevesoft.pat.patInt");d(c$,"mineq",function(a){if(a.inf)return this;this.inf?this.i=a.i:a.i<this.i&&(this.i=a.i);this.setInf(!1);return this},"com.stevesoft.pat.patInt");d(c$,"maxeq",function(a){if(this.inf||a.inf)return this.setInf(!0),this;a.i>this.i&&(this.i=a.i);return this},"com.stevesoft.pat.patInt");d(c$,"finite",function(){return!this.inf});d(c$,"intValue",function(){return this.inf?2147483647:this.i});p("jalview.jsdev.api");M(jalview.jsdev.api,"RegExpInterface");p("com.stevesoft.pat");
1105 q(["com.stevesoft.pat.Pattern"],"com.stevesoft.pat.NoPattern",null,function(){c$=B(com.stevesoft.pat,"NoPattern",com.stevesoft.pat.Pattern);e(c$,"toString",function(){return"(?e=#)[^#d#D]"});e(c$,"matchInternal",function(){return-1},"~N,com.stevesoft.pat.Pthings");e(c$,"clone1",function(){return new com.stevesoft.pat.NoPattern},"java.util.Hashtable")});p("com.stevesoft.pat");q(null,"com.stevesoft.pat.Pattern",["com.stevesoft.pat.MessageManager","$.patInf","$.patInt","java.lang.Error","$.StringBuffer"],
1106 function(){c$=s(function(){this.parent=this.next=null;this.mfrom=0;r(this,arguments)},com.stevesoft.pat,"Pattern");d(c$,"getNext",function(){return null!=this.next?this.next:null==this.parent?null:this.parent.getNext()});d(c$,"setParent",function(a){null!=this.next?this.next.setParent(a):this.parent=a},"com.stevesoft.pat.Pattern");d(c$,"nextMatch",function(a,b){var c=this.getNext();return null==c?a:c.matchInternal(a,b)},"~N,com.stevesoft.pat.Pthings");d(c$,"nextString",function(){return null==this.next?
1107 "":this.next.toString()});c$.inString=d(c$,"inString",function(a,b){var c;for(c=0;c<b.length;c++)if(b.charAt(c)==a)return!0;return!1},"~S,~S");c$.protect=d(c$,"protect",function(a,b,c){var f=new StringBuffer,l=b+c;for(b=0;b<a.length;b++){var d=a.charAt(b);com.stevesoft.pat.Pattern.inString(d,l)&&f.append(c);f.append(d)}return f.toString()},"~S,~S,~S");d(c$,"match",function(a,b){return this.matchAt(a,0,b)},"com.stevesoft.pat.StringLike,com.stevesoft.pat.Pthings");d(c$,"matchAt",function(a,b,c){c.src=
1108 a;a=this.matchInternal(b,c);if(0>a)return-1;this.mfrom=a<b?a+1:b;return a<b?b-a-1:a-b},"com.stevesoft.pat.StringLike,~N,com.stevesoft.pat.Pthings");d(c$,"Masked",function(a,b){return null==b.cbits?!1:b.cbits.get(a)},"~N,com.stevesoft.pat.Pthings");d(c$,"add",function(a){if(null==this.next){if(null==a)return this;this.next=a;a.parent=this.parent;this.parent=null}else this.next.add(a);return this},"com.stevesoft.pat.Pattern");d(c$,"minChars",function(){return new com.stevesoft.pat.patInt(0)});d(c$,
1109 "maxChars",function(){return new com.stevesoft.pat.patInf});d(c$,"countMinChars",function(){for(var a=this,b=new com.stevesoft.pat.patInt(0);null!=a;)b.pluseq(a.minChars()),a=a.next;return b});d(c$,"countMaxChars",function(){for(var a=this,b=new com.stevesoft.pat.patInt(0);null!=a;)b.pluseq(a.maxChars()),a=a.next;return b});d(c$,"testMatch",function(a,b,c){var f=null;if(null!=c.marks)try{for(var f=w(c.marks.length,0),l=0;l<f.length;l++)f[l]=c.marks[l]}catch(d){}a=a.matchInternal(b,c);0>a&&(c.marks=
1110 f);return a},"com.stevesoft.pat.Pattern,~N,com.stevesoft.pat.Pthings");d(c$,"clone1",function(){throw Error(com.stevesoft.pat.MessageManager.formatMessage("error.no_such_method_as_clone1_for",E(-1,[this.getClass().getName()])));},"java.util.Hashtable");d(c$,"clone",function(a){var b=a.get(this);if(null!=b)return b;b=this.clone1(a);if(null==b)throw Error(com.stevesoft.pat.MessageManager.getString("error.null_from_clone1"));a.put(this,b);a.put(b,b);null!=this.next&&(b.next=this.next.clone(a));null!=
1111 this.parent&&(b.parent=this.parent.clone(a));return b},"java.util.Hashtable");e(c$,"equals",function(a){return a===this},"~O");G(c$,"ESC","\\","PROTECT_THESE",'[]{}(),$,-"^.')});p("com.stevesoft.pat");c$=B(com.stevesoft.pat,"MessageManager");c$.getString=d(c$,"getString",function(a){return a},"~S");c$.formatMessage=d(c$,"formatMessage",function(a,b){for(var c=0;c<b.length;c++)a+=" "+b[c];return a},"~S,~A");p("com.stevesoft.pat");c$=s(function(){this.src=null;this.mFlag=this.ignoreCase=!1;this.marks=
1112 this.cbits=null;this.nMarks=0;this.no_check=this.dotDoesntMatchCR=!1;this.lastPos=0;r(this,arguments)},com.stevesoft.pat,"Pthings");p("com.stevesoft.pat");q(["com.stevesoft.pat.Pattern"],"com.stevesoft.pat.Any",["com.stevesoft.pat.patInt"],function(){c$=B(com.stevesoft.pat,"Any",com.stevesoft.pat.Pattern);e(c$,"matchInternal",function(a,b){if(a<b.src.length())if(b.dotDoesntMatchCR){if("\n"!=b.src.charAt(a))return this.nextMatch(a+1,b)}else return this.nextMatch(a+1,b);return-1},"~N,com.stevesoft.pat.Pthings");
1113 e(c$,"toString",function(){return"."+this.nextString()});e(c$,"minChars",function(){return new com.stevesoft.pat.patInt(1)});e(c$,"maxChars",function(){return new com.stevesoft.pat.patInt(1)});e(c$,"clone1",function(){return new com.stevesoft.pat.Any},"java.util.Hashtable")});p("com.stevesoft.pat");q(["com.stevesoft.pat.Pattern"],"com.stevesoft.pat.BackG",["com.stevesoft.pat.patInt"],function(){c$=s(function(){this.altc2=this.altc=this.c="\x00";this.mask=0;r(this,arguments)},com.stevesoft.pat,"BackG",
1114 com.stevesoft.pat.Pattern);m(c$,function(){t(this,com.stevesoft.pat.BackG,[])});e(c$,"matchInternal",function(a,b){return a==b.lastPos?this.nextMatch(a,b):-1},"~N,com.stevesoft.pat.Pthings");e(c$,"toString",function(){return"\\G"+this.nextString()});e(c$,"minChars",function(){return new com.stevesoft.pat.patInt(1)});e(c$,"maxChars",function(){return new com.stevesoft.pat.patInt(1)});e(c$,"clone1",function(){return new com.stevesoft.pat.BackG},"java.util.Hashtable")});p("com.stevesoft.pat");q(["com.stevesoft.pat.Pattern"],
1115 "com.stevesoft.pat.BackMatch",null,function(){c$=s(function(){this.id=0;r(this,arguments)},com.stevesoft.pat,"BackMatch",com.stevesoft.pat.Pattern);m(c$,function(a){t(this,com.stevesoft.pat.BackMatch,[]);this.id=a},"~N");e(c$,"toString",function(){return"\\"+this.id+this.nextString()});e(c$,"matchInternal",function(a,b){var c=b.marks[this.id],f=b.marks[this.id+b.nMarks]-c;if(0>c||0>f||a+f>b.src.length())return-1;var l=b.src.length()-a;f<l&&(l=f);for(var d=0;d<l;d++)if(b.src.charAt(d+c)!=b.src.charAt(a+
1116 d))return-1;return this.nextMatch(a+f,b)},"~N,com.stevesoft.pat.Pthings");e(c$,"clone1",function(){return new com.stevesoft.pat.BackMatch(this.id)},"java.util.Hashtable")});p("com.stevesoft.pat");q(["com.stevesoft.pat.Pattern"],"com.stevesoft.pat.Backup",["com.stevesoft.pat.patInt"],function(){c$=s(function(){this.bk=0;r(this,arguments)},com.stevesoft.pat,"Backup",com.stevesoft.pat.Pattern);m(c$,function(a){t(this,com.stevesoft.pat.Backup,[]);this.bk=a},"~N");e(c$,"toString",function(){return"(?"+
1117 (0>this.bk?">"+-this.bk:"<"+this.bk)+")"+this.nextString()});e(c$,"matchInternal",function(a,b){return a<this.bk?-1:this.nextMatch(a-this.bk,b)},"~N,com.stevesoft.pat.Pthings");e(c$,"minChars",function(){return new com.stevesoft.pat.patInt(-this.bk)});e(c$,"maxChars",function(){return new com.stevesoft.pat.patInt(-this.bk)});e(c$,"clone1",function(){return new com.stevesoft.pat.Backup(this.bk)},"java.util.Hashtable")});p("com.stevesoft.pat");q(["com.stevesoft.pat.Pattern"],"com.stevesoft.pat.Boundary",
1118 ["com.stevesoft.pat.patInt"],function(){c$=B(com.stevesoft.pat,"Boundary",com.stevesoft.pat.Pattern);e(c$,"toString",function(){return"\\b"+this.nextString()});d(c$,"isAChar",function(a){return"a"<=a&&"z">=a||"A"<=a&&"Z">=a||"0"<=a&&"9">=a||"_"==a?!0:!1},"~S");d(c$,"matchLeft",function(a,b){return 0>=a?!0:this.isAChar(b.src.charAt(a))&&this.isAChar(b.src.charAt(a-1))?!1:!0},"~N,com.stevesoft.pat.Pthings");d(c$,"matchRight",function(a,b){return 0>a?!1:a+1>=b.src.length()?!0:this.isAChar(b.src.charAt(a))&&
1119 this.isAChar(b.src.charAt(a+1))?!1:!0},"~N,com.stevesoft.pat.Pthings");e(c$,"matchInternal",function(a,b){return this.matchRight(a-1,b)||this.matchLeft(a,b)?this.nextMatch(a,b):-1},"~N,com.stevesoft.pat.Pthings");e(c$,"maxChars",function(){return new com.stevesoft.pat.patInt(0)});e(c$,"clone1",function(){return new com.stevesoft.pat.Boundary},"java.util.Hashtable")});p("com.stevesoft.pat");q(["com.stevesoft.pat.Or"],"com.stevesoft.pat.Bracket",["com.stevesoft.pat.patInt","java.util.Vector"],function(){c$=
1120 s(function(){this.neg=!1;r(this,arguments)},com.stevesoft.pat,"Bracket",com.stevesoft.pat.Or);m(c$,function(a){t(this,com.stevesoft.pat.Bracket,[]);this.neg=a},"~B");e(c$,"leftForm",function(){return this.neg?"[^":"["});e(c$,"rightForm",function(){return"]"});e(c$,"sepForm",function(){return""});d(c$,"matchInternal",function(a,b){if(a>=b.src.length())return-1;var c=K(this,com.stevesoft.pat.Bracket,"matchInternal",[a,b]);return this.neg&&0>c||!this.neg&&0<=c?this.nextMatch(a+1,b):-1},"~N,com.stevesoft.pat.Pthings");
1121 e(c$,"minChars",function(){return new com.stevesoft.pat.patInt(1)});e(c$,"maxChars",function(){return new com.stevesoft.pat.patInt(1)});e(c$,"addOr",function(a){this.pv=null;this.v.addElement(a);a.setParent(null);return this},"com.stevesoft.pat.Pattern");e(c$,"clone1",function(a){var b=new com.stevesoft.pat.Bracket(this.neg);b.v=new java.util.Vector;for(var c=0;c<this.v.size();c++)b.v.addElement(this.v.elementAt(c).clone1(a));return b},"java.util.Hashtable")});p("com.stevesoft.pat");q(["com.stevesoft.pat.Pattern"],
1122 "com.stevesoft.pat.Or",["com.stevesoft.pat.patInt","java.lang.StringBuffer","java.util.Vector"],function(){c$=s(function(){this.pv=this.v=null;r(this,arguments)},com.stevesoft.pat,"Or",com.stevesoft.pat.Pattern);m(c$,function(){t(this,com.stevesoft.pat.Or,[]);this.v=new java.util.Vector});d(c$,"leftForm",function(){return"(?:"});d(c$,"rightForm",function(){return")"});d(c$,"sepForm",function(){return"|"});d(c$,"addOr",function(a){this.pv=null;this.v.addElement(a);a.setParent(this);return this},"com.stevesoft.pat.Pattern");
1123 d(c$,"toString",function(){var a,b=new StringBuffer;b.append(this.leftForm());0<this.v.size()&&b.append(this.v.elementAt(0).toString());for(a=1;a<this.v.size();a++)b.append(this.sepForm()),b.append(this.v.elementAt(a).toString());b.append(this.rightForm());b.append(this.nextString());return b.toString()});d(c$,"matchInternal",function(a,b){null==this.pv&&(this.pv=Array(this.v.size()),this.v.copyInto(this.pv));for(var c=0;c<this.v.size();c++){var f=this.pv[c].matchInternal(a,b);if(0<=f)return f}return-1},
1124 "~N,com.stevesoft.pat.Pthings");e(c$,"minChars",function(){if(0==this.v.size())return new com.stevesoft.pat.patInt(0);for(var a=this.v.elementAt(0).countMinChars(),b=1;b<this.v.size();b++){var c=this.v.elementAt(b);a.mineq(c.countMinChars())}return a});e(c$,"maxChars",function(){if(0==this.v.size())return new com.stevesoft.pat.patInt(0);for(var a=this.v.elementAt(0).countMaxChars(),b=1;b<this.v.size();b++){var c=this.v.elementAt(b);a.maxeq(c.countMaxChars())}return a});e(c$,"clone1",function(a){var b=
1125 new com.stevesoft.pat.Or;a.put(this,b);a.put(b,b);for(var c=0;c<this.v.size();c++)b.v.addElement(this.v.elementAt(c).clone(a));return b},"java.util.Hashtable")});p("com.stevesoft.pat");q(null,"com.stevesoft.pat.CaseMgr",["java.lang.Character"],function(){c$=B(com.stevesoft.pat,"CaseMgr");c$.toUpperCaseC=d(c$,"toUpperCaseC",function(a){return Character.toUpperCase(a)},"~S");c$.toLowerCaseC=d(c$,"toLowerCaseC",function(a){return Character.toLowerCase(a)},"~S");c$.toUpperCase=d(c$,"toUpperCase",function(a){return a.toUpperCase()},
1126 "~S");c$.toLowerCase=d(c$,"toLowerCase",function(a){return a.toLowerCase()},"~S");c$.toTitleCaseC=d(c$,"toTitleCaseC",function(a){return Character.toUpperCase(a)},"~S");c$.regionMatchesLike=d(c$,"regionMatchesLike",function(a,b,c,f,l,d){var g=l+d;if(g>f.length()||c+d>a.length())return!1;if(b)for(b=l;b<g;b++){if(com.stevesoft.pat.CaseMgr.toLowerCaseC(f.charAt(b))!=com.stevesoft.pat.CaseMgr.toLowerCaseC(a.charAt(c++)))return!1}else for(b=l;b<g;b++)if(f.charAt(b)!=a.charAt(c++))return!1;return!0},"com.stevesoft.pat.StringLike,~B,~N,com.stevesoft.pat.StringLike,~N,~N");
1127 c$.regionMatches=d(c$,"regionMatches",function(a,b,c,f,l,d){var g=l+d;if(g>f.length()||c+d>a.length)return!1;if(b)for(b=l;b<g;b++){if(com.stevesoft.pat.CaseMgr.toLowerCaseC(f.charAt(b))!=com.stevesoft.pat.CaseMgr.toLowerCaseC(a.charAt(c++)))return!1}else for(b=l;b<g;b++)if(f.charAt(b)!=a.charAt(c++))return!1;return!0},"~S,~B,~N,com.stevesoft.pat.StringLike,~N,~N");c$.regionMatchesLike2=d(c$,"regionMatchesLike2",function(a,b,c,f,l,d){var g=l+d;if(g>f.length||c+d>a.length())return!1;if(b)for(b=l;b<
1128 g;b++){if(com.stevesoft.pat.CaseMgr.toLowerCaseC(f.charAt(b))!=com.stevesoft.pat.CaseMgr.toLowerCaseC(a.charAt(c++)))return!1}else for(b=l;b<g;b++)if(f.charAt(b)!=a.charAt(c++))return!1;return!0},"com.stevesoft.pat.StringLike,~B,~N,~S,~N,~N");c$.regionMatches2=d(c$,"regionMatches2",function(a,b,c,f,l,d){var g=l+d;if(g>f.length||c+d>a.length)return!1;if(b)for(b=l;b<g;b++){if(com.stevesoft.pat.CaseMgr.toLowerCaseC(f.charAt(b))!=com.stevesoft.pat.CaseMgr.toLowerCaseC(a.charAt(c++)))return!1}else for(b=
1129 l;b<g;b++)if(f.charAt(b)!=a.charAt(c++))return!1;return!0},"~S,~B,~N,~S,~N,~N");G(c$,"java_1_0",!1)});p("com.stevesoft.pat");c$=B(com.stevesoft.pat,"Ctrl");G(c$,"cmap",N(-1,[String.fromCharCode(64),"A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z",String.fromCharCode(91),String.fromCharCode(92),String.fromCharCode(93),String.fromCharCode(94),String.fromCharCode(95),String.fromCharCode(96),"a","a","c","d","e","f","g","h","i","j","k","l","m","n",
1130 "o","p","q","r","s","t","u","v","w","x","y","z",String.fromCharCode(123),String.fromCharCode(124),String.fromCharCode(125),String.fromCharCode(126),String.fromCharCode(127),String.fromCharCode(0),String.fromCharCode(1),String.fromCharCode(2),String.fromCharCode(3),String.fromCharCode(4),String.fromCharCode(5),String.fromCharCode(6),String.fromCharCode(7),String.fromCharCode(8),String.fromCharCode(9),String.fromCharCode(10),String.fromCharCode(11),String.fromCharCode(12),String.fromCharCode(13),String.fromCharCode(14),
1131 String.fromCharCode(15),String.fromCharCode(16),String.fromCharCode(17),String.fromCharCode(18),String.fromCharCode(19),String.fromCharCode(20),String.fromCharCode(21),String.fromCharCode(22),String.fromCharCode(23),String.fromCharCode(24),String.fromCharCode(25),String.fromCharCode(26),String.fromCharCode(27),String.fromCharCode(27),String.fromCharCode(29),String.fromCharCode(30),String.fromCharCode(31),String.fromCharCode(32),String.fromCharCode(1),String.fromCharCode(2),String.fromCharCode(3),
1132 String.fromCharCode(4),String.fromCharCode(5),String.fromCharCode(6),String.fromCharCode(7),String.fromCharCode(8),String.fromCharCode(9),String.fromCharCode(10),String.fromCharCode(11),String.fromCharCode(12),String.fromCharCode(13),String.fromCharCode(14),String.fromCharCode(15),String.fromCharCode(16),String.fromCharCode(17),String.fromCharCode(18),String.fromCharCode(19),String.fromCharCode(20),String.fromCharCode(21),String.fromCharCode(22),String.fromCharCode(23),String.fromCharCode(24),String.fromCharCode(25),
1133 String.fromCharCode(26),String.fromCharCode(59),String.fromCharCode(60),String.fromCharCode(61),String.fromCharCode(62),String.fromCharCode(63),String.fromCharCode(192),String.fromCharCode(193),String.fromCharCode(194),String.fromCharCode(195),String.fromCharCode(196),String.fromCharCode(197),String.fromCharCode(198),String.fromCharCode(199),String.fromCharCode(200),String.fromCharCode(201),String.fromCharCode(202),String.fromCharCode(203),String.fromCharCode(204),String.fromCharCode(205),String.fromCharCode(206),
1134 String.fromCharCode(207),String.fromCharCode(208),String.fromCharCode(209),String.fromCharCode(210),String.fromCharCode(211),String.fromCharCode(212),String.fromCharCode(213),String.fromCharCode(214),String.fromCharCode(215),String.fromCharCode(216),String.fromCharCode(217),String.fromCharCode(218),String.fromCharCode(219),String.fromCharCode(220),String.fromCharCode(221),String.fromCharCode(222),String.fromCharCode(223),String.fromCharCode(224),String.fromCharCode(225),String.fromCharCode(226),String.fromCharCode(227),
1135 String.fromCharCode(228),String.fromCharCode(229),String.fromCharCode(230),String.fromCharCode(231),String.fromCharCode(232),String.fromCharCode(233),String.fromCharCode(234),String.fromCharCode(235),String.fromCharCode(236),String.fromCharCode(237),String.fromCharCode(238),String.fromCharCode(239),String.fromCharCode(240),String.fromCharCode(241),String.fromCharCode(242),String.fromCharCode(243),String.fromCharCode(244),String.fromCharCode(245),String.fromCharCode(246),String.fromCharCode(247),String.fromCharCode(248),
1136 String.fromCharCode(249),String.fromCharCode(250),String.fromCharCode(251),String.fromCharCode(252),String.fromCharCode(253),String.fromCharCode(254),String.fromCharCode(255),String.fromCharCode(128),String.fromCharCode(129),String.fromCharCode(130),String.fromCharCode(131),String.fromCharCode(132),String.fromCharCode(133),String.fromCharCode(134),String.fromCharCode(135),String.fromCharCode(136),String.fromCharCode(137),String.fromCharCode(138),String.fromCharCode(139),String.fromCharCode(140),String.fromCharCode(141),
1137 String.fromCharCode(142),String.fromCharCode(143),String.fromCharCode(144),String.fromCharCode(145),String.fromCharCode(146),String.fromCharCode(147),String.fromCharCode(148),String.fromCharCode(149),String.fromCharCode(150),String.fromCharCode(151),String.fromCharCode(152),String.fromCharCode(153),String.fromCharCode(154),String.fromCharCode(155),String.fromCharCode(156),String.fromCharCode(157),String.fromCharCode(158),String.fromCharCode(159),String.fromCharCode(160),String.fromCharCode(161),String.fromCharCode(162),
1138 String.fromCharCode(163),String.fromCharCode(164),String.fromCharCode(165),String.fromCharCode(166),String.fromCharCode(167),String.fromCharCode(168),String.fromCharCode(169),String.fromCharCode(170),String.fromCharCode(171),String.fromCharCode(172),String.fromCharCode(173),String.fromCharCode(174),String.fromCharCode(175),String.fromCharCode(176),String.fromCharCode(177),String.fromCharCode(178),String.fromCharCode(179),String.fromCharCode(180),String.fromCharCode(181),String.fromCharCode(182),String.fromCharCode(183),
1139 String.fromCharCode(184),String.fromCharCode(185),String.fromCharCode(186),String.fromCharCode(187),String.fromCharCode(188),String.fromCharCode(189),String.fromCharCode(190),String.fromCharCode(191)]));p("com.stevesoft.pat");q(["com.stevesoft.pat.PatternSub"],"com.stevesoft.pat.Custom",["com.stevesoft.pat.Regex"],function(){c$=s(function(){this.v=this.select=null;this.start=0;r(this,arguments)},com.stevesoft.pat,"Custom",com.stevesoft.pat.PatternSub);m(c$,function(a){t(this,com.stevesoft.pat.Custom,
1140 []);this.select=a;this.v=com.stevesoft.pat.Regex.validators.get(a)},"~S");d(c$,"matchInternal",function(a,b){this.start=a;return this.sub.matchInternal(a,b)},"~N,com.stevesoft.pat.Pthings");e(c$,"toString",function(){return"(??"+this.select+(null==this.v.argsave?"":":"+this.v.argsave)+")"+this.nextString()});e(c$,"minChars",function(){return this.v.minChars()});e(c$,"maxChars",function(){return this.v.maxChars()});e(c$,"clone1",function(a){var b=new com.stevesoft.pat.Custom(this.select);a.put(b,b);
1141 a.put(this,b);b.sub=this.sub.clone(a);return b},"java.util.Hashtable")});p("com.stevesoft.pat");q(["com.stevesoft.pat.Pattern"],"com.stevesoft.pat.PatternSub",null,function(){c$=s(function(){this.sub=null;r(this,arguments)},com.stevesoft.pat,"PatternSub",com.stevesoft.pat.Pattern)});p("com.stevesoft.pat");q(["com.stevesoft.pat.Pattern"],"com.stevesoft.pat.CustomEndpoint",null,function(){c$=s(function(){this.c=null;r(this,arguments)},com.stevesoft.pat,"CustomEndpoint",com.stevesoft.pat.Pattern);m(c$,
1142 function(a){t(this,com.stevesoft.pat.CustomEndpoint,[]);this.c=a},"com.stevesoft.pat.Custom");e(c$,"matchInternal",function(a,b){var c=this.c.v.validate(b.src,this.c.start,a);return 0<=c?this.nextMatch(c,b):-1},"~N,com.stevesoft.pat.Pthings");e(c$,"toString",function(){return""});e(c$,"clone1",function(a){return new com.stevesoft.pat.CustomEndpoint(this.c.clone(a))},"java.util.Hashtable")});p("com.stevesoft.pat");q(["com.stevesoft.pat.PatternSub"],"com.stevesoft.pat.DotMulti",null,function(){c$=s(function(){this.mostMatches=
1143 this.fewestMatches=null;this.matchFewest=!1;this.src=null;this.srclength=0;this.dotDoesntMatchCR=!0;r(this,arguments)},com.stevesoft.pat,"DotMulti",com.stevesoft.pat.PatternSub);e(c$,"minChars",function(){return this.fewestMatches});e(c$,"maxChars",function(){return this.mostMatches});m(c$,function(a,b){t(this,com.stevesoft.pat.DotMulti,[]);this.fewestMatches=a;this.mostMatches=b},"com.stevesoft.pat.patInt,com.stevesoft.pat.patInt");e(c$,"toString",function(){return".{"+this.fewestMatches+","+this.mostMatches+
1144 "}"+(this.matchFewest?"?":"")+"(?# <= dot multi)"+this.nextString()});d(c$,"submatchInternal",function(a){if(a<this.srclength)if(this.dotDoesntMatchCR){if("\n"!=this.src.charAt(a))return 1+a}else return 1+a;return-1},"~N,com.stevesoft.pat.Pthings");e(c$,"matchInternal",function(a,b){var c=-1,f=a;this.src=b.src;this.srclength=this.src.length();this.dotDoesntMatchCR=b.dotDoesntMatchCR;if(this.matchFewest){for(var l=0;this.fewestMatches.intValue()>l;){f=this.submatchInternal(f,b);if(0>f)return-1;l++}if(0>
1145 f)return-1;c=this.nextMatch(f,b);if(0<=c)return c;if(this.mostMatches.finite())for(;0<f;){f=this.submatchInternal(f,b);if(0>f)break;l++;if(l>this.mostMatches.intValue())break;c=this.nextMatch(f,b);if(0<=c)return c}else for(;0<=f;){f=this.submatchInternal(f,b);if(0>f)break;c=this.nextMatch(f,b);if(0<=c)return c}return-1}for(l=0;this.fewestMatches.intValue()>l;)if(f=this.submatchInternal(f,b),0<=f)l++;else return-1;c=f;if(this.mostMatches.finite())for(;l<this.mostMatches.intValue();)if(f=this.submatchInternal(f,
1146 b),0<=f)c=f,l++;else break;else for(;;)if(f=this.submatchInternal(f,b),0<=f)c=f,l++;else break;for(;c>=a;){f=this.nextMatch(c,b);if(0<=f)return f;c-=1;l--;if(l<this.fewestMatches.intValue())break}return-1},"~N,com.stevesoft.pat.Pthings");e(c$,"clone1",function(){var a=new com.stevesoft.pat.DotMulti(this.fewestMatches,this.mostMatches);a.matchFewest=this.matchFewest;return a},"java.util.Hashtable");G(c$,"step",1,"idcount",1)});p("com.stevesoft.pat");q(["com.stevesoft.pat.Pattern"],"com.stevesoft.pat.End",
1147 ["com.stevesoft.pat.patInt"],function(){c$=s(function(){this.retIsEnd=!1;r(this,arguments)},com.stevesoft.pat,"End",com.stevesoft.pat.Pattern);m(c$,function(a){t(this,com.stevesoft.pat.End,[]);this.retIsEnd=a},"~B");e(c$,"matchInternal",function(a,b){if(this.retIsEnd&&(b.mFlag&&a<b.src.length())&&"\n"==b.src.charAt(a)||b.src.length()==a)return this.nextMatch(a,b);a<b.src.length()&&b.src.charAt(a);return-1},"~N,com.stevesoft.pat.Pthings");e(c$,"toString",function(){return this.retIsEnd?"$":"\\Z"});
1148 e(c$,"maxChars",function(){return new com.stevesoft.pat.patInt(1)});e(c$,"clone1",function(){return new com.stevesoft.pat.End(this.retIsEnd)},"java.util.Hashtable")});p("com.stevesoft.pat");q(["com.stevesoft.pat.PatternSub"],"com.stevesoft.pat.FastMulti",["com.stevesoft.pat.RegSyntaxError","$.patInt"],function(){c$=s(function(){this.mostMatches=this.fewestMatches=null;this.matchFewest=!1;this.step=-1;r(this,arguments)},com.stevesoft.pat,"FastMulti",com.stevesoft.pat.PatternSub);e(c$,"minChars",function(){return this.sub.countMinChars().mul(this.fewestMatches)});
1149 e(c$,"maxChars",function(){return this.sub.countMaxChars().mul(this.mostMatches)});m(c$,function(a,b,c){t(this,com.stevesoft.pat.FastMulti,[]);null==c&&com.stevesoft.pat.RegSyntaxError.endItAll("Null length pattern followed by *, +, or other Multi.");this.fewestMatches=a;this.mostMatches=b;this.sub=c;this.step=c.countMinChars().intValue();this.sub.setParent(null)},"com.stevesoft.pat.patInt,com.stevesoft.pat.patInt,com.stevesoft.pat.Pattern");d(c$,"toString",function(){return this.sub.toString()+"{"+
1150 this.fewestMatches+","+this.mostMatches+"}"+(this.matchFewest?"?":"")+"(?# <= fast multi)"+this.nextString()});d(c$,"matchInternal",function(a,b){var c=-1,f=a,c=b.src.length()-this.step,l=new com.stevesoft.pat.patInt(0);if(this.matchFewest){if(this.fewestMatches.lessEq(l)){var d=this.nextMatch(f,b);if(0<=d)return d}for(;0<=f&&f<=c;)if(f=this.sub.matchInternal(f,b),0<=f){l.inc();if(this.fewestMatches.lessEq(l)&&(d=this.nextMatch(f,b),0<=d))return d;if(l.equals(this.mostMatches))break}return-1}for(l=
1151 0;this.fewestMatches.intValue()>l;)if(f=this.sub.matchInternal(f,b),0<=f)l++;else return-1;c=f;if(this.mostMatches.finite())for(;l<this.mostMatches.intValue();)if(f=this.sub.matchInternal(f,b),0<=f)c=f,l++;else break;else for(;;)if(f=this.sub.matchInternal(f,b),0<=f)c=f,l++;else break;for(;c>=a;){f=this.nextMatch(c,b);if(0<=f)return f;c-=this.step;l--;if(l<this.fewestMatches.intValue())break}return-1},"~N,com.stevesoft.pat.Pthings");e(c$,"clone1",function(a){try{var b=new com.stevesoft.pat.FastMulti(this.fewestMatches,
1152 this.mostMatches,this.sub.clone(a));b.matchFewest=this.matchFewest;return b}catch(c){if(y(c,com.stevesoft.pat.RegSyntax))return null;throw c;}},"java.util.Hashtable")});p("com.stevesoft.pat");q(["java.lang.Error"],"com.stevesoft.pat.RegSyntaxError",["com.stevesoft.pat.RegSyntax"],function(){c$=B(com.stevesoft.pat,"RegSyntaxError",Error);m(c$,function(){t(this,com.stevesoft.pat.RegSyntaxError,[])});c$.endItAll=d(c$,"endItAll",function(a){if(com.stevesoft.pat.RegSyntaxError.RegSyntaxErrorEnabled)throw new com.stevesoft.pat.RegSyntaxError(a);
1153 throw new com.stevesoft.pat.RegSyntax(a);},"~S");G(c$,"RegSyntaxErrorEnabled",!1)});p("com.stevesoft.pat");q(["java.lang.Exception"],"com.stevesoft.pat.RegSyntax",null,function(){c$=B(com.stevesoft.pat,"RegSyntax",Exception);m(c$,function(){t(this,com.stevesoft.pat.RegSyntax,[])})});p("com.stevesoft.pat");q(["com.stevesoft.pat.Pattern"],"com.stevesoft.pat.Group",["com.stevesoft.pat.patInt"],function(){c$=s(function(){this.cl=this.op="\x00";r(this,arguments)},com.stevesoft.pat,"Group",com.stevesoft.pat.Pattern);
1154 m(c$,function(a,b){t(this,com.stevesoft.pat.Group,[]);this.op=a;this.cl=b},"~S,~S");e(c$,"matchInternal",function(a,b){var c,f=1;if(a<b.src.length()&&!this.Masked(a,b)&&b.src.charAt(a)!=this.op)return-1;for(c=a+1;c<b.src.length();c++){var d=b.src.charAt(c),k=!this.Masked(c,b);if(k&&"\\"==d)c++;else{k&&d==this.cl&&f--;if(0==f)return this.nextMatch(c+1,b);k&&d==this.op&&f++}}return-1},"~N,com.stevesoft.pat.Pthings");e(c$,"toString",function(){return"(?@"+this.op+this.cl+")"+this.nextString()});e(c$,
1155 "minChars",function(){return new com.stevesoft.pat.patInt(2)});e(c$,"clone1",function(){return new com.stevesoft.pat.Group(this.op,this.cl)},"java.util.Hashtable")});p("com.stevesoft.pat");q(["com.stevesoft.pat.PatternSub"],"com.stevesoft.pat.Multi",["com.stevesoft.pat.Multi_stage2"],function(){c$=s(function(){this.st2=this.p=this.b=this.a=null;this.matchFewest=!1;r(this,arguments)},com.stevesoft.pat,"Multi",com.stevesoft.pat.PatternSub);e(c$,"minChars",function(){return this.a.mul(this.p.countMinChars())});
1156 e(c$,"maxChars",function(){return this.b.mul(this.p.countMaxChars())});m(c$,function(a,b,c){t(this,com.stevesoft.pat.Multi,[]);this.a=a;this.b=b;this.p=c;this.st2=new com.stevesoft.pat.Multi_stage2(a,b,c);this.st2.parent=this;this.sub=this.st2.sub},"com.stevesoft.pat.patInt,com.stevesoft.pat.patInt,com.stevesoft.pat.Pattern");e(c$,"toString",function(){this.st2.matchFewest=this.matchFewest;return this.st2.toString()});e(c$,"matchInternal",function(a,b){try{this.st2=new com.stevesoft.pat.Multi_stage2(this.a,
1157 this.b,this.p)}catch(c){if(!y(c,com.stevesoft.pat.RegSyntax))throw c;}this.st2.matchFewest=this.matchFewest;this.st2.parent=this;return this.st2.matchInternal(a,b)},"~N,com.stevesoft.pat.Pthings");e(c$,"clone1",function(a){try{var b=new com.stevesoft.pat.Multi(this.a,this.b,this.p.clone(a));b.matchFewest=this.matchFewest;return b}catch(c){if(y(c,com.stevesoft.pat.RegSyntax))return null;throw c;}},"java.util.Hashtable")});p("com.stevesoft.pat");q(["com.stevesoft.pat.PatternSub"],"com.stevesoft.pat.Multi_stage2",
1158 ["com.stevesoft.pat.RegSyntaxError","$.patInt"],function(){c$=s(function(){this.matchMax=this.matchMin=this.count=this.nextRet=null;this.matchFewest=!1;this.pos_old=-1;r(this,arguments)},com.stevesoft.pat,"Multi_stage2",com.stevesoft.pat.PatternSub);d(c$,"toString",function(){var a;a=""+this.sub.toString();a+="{"+this.matchMin+","+this.matchMax+"}";this.matchFewest&&(a+="?");return a+=this.parent.nextString()});m(c$,function(a,b,c){t(this,com.stevesoft.pat.Multi_stage2,[]);null==c&&com.stevesoft.pat.RegSyntaxError.endItAll("Multiple match of Null pattern requested.");
1159 this.sub=c;this.nextRet=this;this.sub.setParent(this);this.matchMin=a;this.matchMax=b;this.count=new com.stevesoft.pat.patInt(0);a.lessEq(b)||com.stevesoft.pat.RegSyntaxError.endItAll("Bad Multi Args: "+a+">"+b);b=new com.stevesoft.pat.patInt(-1);a.lessEq(b)&&com.stevesoft.pat.RegSyntaxError.endItAll("Bad Multi Args: "+a+"< 0")},"com.stevesoft.pat.patInt,com.stevesoft.pat.patInt,com.stevesoft.pat.Pattern");d(c$,"getNext",function(){return this.nextRet});e(c$,"matchInternal",function(a,b){this.sub.setParent(this);
1160 var c=-1;if(0<=this.pos_old&&a==this.pos_old)return-1;this.pos_old=a;this.matchMin.lessEq(this.count)&&(c=a);if(!this.count.lessEq(this.matchMax)||a>b.src.length())return-1;if((this.matchFewest||this.count.equals(this.matchMax))&&0<=c){var f=K(this,com.stevesoft.pat.Multi_stage2,"getNext",[]);if(null==f)return c;c=this.testMatch(f,a,b);if(0<=c)return c;c=-1}this.count.inc();try{if(this.count.lessEq(this.matchMax)){var d=this.testMatch(this.sub,a,b);if(0<=d)return d}}finally{this.count.dec()}if(!this.matchFewest&&
1161 0<=c){f=K(this,com.stevesoft.pat.Multi_stage2,"getNext",[]);if(null==f)return c;c=this.testMatch(f,a,b)}return c},"~N,com.stevesoft.pat.Pthings");e(c$,"clone1",function(a){try{var b=new com.stevesoft.pat.Multi_stage2(this.matchMin,this.matchMax,this.sub.clone(a));b.matchFewest=this.matchFewest;return b}catch(c){if(y(c,com.stevesoft.pat.RegSyntax))return null;throw c;}},"java.util.Hashtable")});p("com.stevesoft.pat");q(["com.stevesoft.pat.Pattern"],"com.stevesoft.pat.NullPattern",["com.stevesoft.pat.patInt"],
1162 function(){c$=B(com.stevesoft.pat,"NullPattern",com.stevesoft.pat.Pattern);e(c$,"toString",function(){return this.nextString()});e(c$,"matchInternal",function(a,b){return this.nextMatch(a,b)},"~N,com.stevesoft.pat.Pthings");e(c$,"maxChars",function(){return new com.stevesoft.pat.patInt(0)});e(c$,"clone1",function(){return new com.stevesoft.pat.NullPattern},"java.util.Hashtable")});p("com.stevesoft.pat");q(["com.stevesoft.pat.Or","$.SubMark"],"com.stevesoft.pat.OrMark",null,function(){c$=s(function(){this.sm=
1163 null;this.id=0;r(this,arguments)},com.stevesoft.pat,"OrMark",com.stevesoft.pat.Or);J(c$,function(){this.sm=new com.stevesoft.pat.SubMark});m(c$,function(a){t(this,com.stevesoft.pat.OrMark,[]);this.sm.om=this;this.id=a},"~N");e(c$,"leftForm",function(){return"("});d(c$,"getNext",function(){return this.sm});d(c$,"matchInternal",function(a,b){this.sm.next=K(this,com.stevesoft.pat.OrMark,"getNext",[]);if(null==b.marks){var c=2*b.nMarks+2;b.marks=w(c,0);for(var f=0;f<c;f++)b.marks[f]=-1}b.marks[this.id]=
1164 a;c=K(this,com.stevesoft.pat.OrMark,"matchInternal",[a,b]);0>c?b.marks[this.id]=-1:b.marks[this.id]>b.marks[this.id+b.nMarks]&&(f=b.marks[this.id],b.marks[this.id]=b.marks[this.id+b.nMarks]+1,b.marks[this.id+b.nMarks]=f+1);return c},"~N,com.stevesoft.pat.Pthings");e(c$,"clone1",function(a){var b=new com.stevesoft.pat.OrMark(this.id);a.put(b,b);a.put(this,b);for(var c=0;c<this.v.size();c++)b.v.addElement(this.v.elementAt(c).clone(a));return b},"java.util.Hashtable")});p("com.stevesoft.pat");q(["com.stevesoft.pat.Pattern"],
1165 "com.stevesoft.pat.SubMark",null,function(){c$=s(function(){this.start_pos=this.end_pos=0;this.om=null;r(this,arguments)},com.stevesoft.pat,"SubMark",com.stevesoft.pat.Pattern);e(c$,"toString",function(){return""});e(c$,"matchInternal",function(a,b){b.marks[this.om.id+b.nMarks]=a;var c=this.nextMatch(a,b);0>c&&(b.marks[this.om.id+b.nMarks]=-1);return c},"~N,com.stevesoft.pat.Pthings")});p("com.stevesoft.pat");q(null,"com.stevesoft.pat.Prop",["com.stevesoft.pat.Bits"],function(){c$=B(com.stevesoft.pat,
1166 "Prop");c$.isDecimalDigit=d(c$,"isDecimalDigit",function(a){null==com.stevesoft.pat.Bits.decimal_digit&&com.stevesoft.pat.Bits.decimal_digit_f();return com.stevesoft.pat.Bits.decimal_digit.get(a.charCodeAt(0))},"~S");c$.isAlphabetic=d(c$,"isAlphabetic",function(a){null==com.stevesoft.pat.Bits.letter&&com.stevesoft.pat.Bits.letter_f();return com.stevesoft.pat.Bits.letter.get(a.charCodeAt(0))},"~S");c$.isMath=d(c$,"isMath",function(a){null==com.stevesoft.pat.Bits.math&&com.stevesoft.pat.Bits.math_f();
1167 return com.stevesoft.pat.Bits.math.get(a.charCodeAt(0))},"~S");c$.isCurrency=d(c$,"isCurrency",function(a){null==com.stevesoft.pat.Bits.currency&&com.stevesoft.pat.Bits.currency_f();return com.stevesoft.pat.Bits.currency.get(a.charCodeAt(0))},"~S");c$.isWhite=d(c$,"isWhite",function(a){null==com.stevesoft.pat.Bits.white&&com.stevesoft.pat.Bits.white_f();return com.stevesoft.pat.Bits.white.get(a.charCodeAt(0))},"~S");c$.isPunct=d(c$,"isPunct",function(a){null==com.stevesoft.pat.Bits.punct&&com.stevesoft.pat.Bits.punct_f();
1168 return com.stevesoft.pat.Bits.punct.get(a.charCodeAt(0))},"~S")});p("com.stevesoft.pat");c$=s(function(){this.carray=null;r(this,arguments)},com.stevesoft.pat,"Bits");m(c$,function(a){this.carray=a},"~A");d(c$,"get",function(a){return 0!=(this.carray[a>>4].charCodeAt(0)&1<<(a&15))},"~N");d(c$,"set",function(a,b){this.carray[a>>4]=b?String.fromCharCode(this.carray[a>>4].charCodeAt(0)|String.fromCharCode(1).charCodeAt(0)<<(a&15)):String.fromCharCode(this.carray[a>>4].charCodeAt(0)&String.fromCharCode(~(1<<
1169 (a&15))).charCodeAt(0))},"~N,~B");c$.upper_f=d(c$,"upper_f",function(){var a=N(4159,"\x00");com.stevesoft.pat.Bits.upper=new com.stevesoft.pat.Bits(a);a[4]=String.fromCharCode(65534);a[5]=String.fromCharCode(2047);a[12]=String.fromCharCode(65535);a[13]=String.fromCharCode(32639);a[16]=String.fromCharCode(21845);a[17]=String.fromCharCode(21845);a[18]=String.fromCharCode(21845);a[19]=String.fromCharCode(43605);a[20]=String.fromCharCode(21674);a[21]=String.fromCharCode(21845);a[22]=String.fromCharCode(21845);
1170 a[23]=String.fromCharCode(11093);a[24]=String.fromCharCode(52950);a[25]=String.fromCharCode(45531);a[26]=String.fromCharCode(53973);a[27]=String.fromCharCode(4526);a[28]=String.fromCharCode(42128);a[29]=String.fromCharCode(19114);a[30]=String.fromCharCode(21845);a[31]=String.fromCharCode(21522);a[32]=String.fromCharCode(21845);a[33]="U";a[56]=String.fromCharCode(55104);a[57]=String.fromCharCode(65534);a[58]=String.fromCharCode(4091);a[61]=String.fromCharCode(21532);a[62]=String.fromCharCode(21845);
1171 a[64]=String.fromCharCode(57342);a[65]=String.fromCharCode(65535);a[66]=String.fromCharCode(65535);a[70]=String.fromCharCode(21845);a[71]=String.fromCharCode(21845);a[72]=String.fromCharCode(1);a[73]=String.fromCharCode(21845);a[74]=String.fromCharCode(21845);a[75]=String.fromCharCode(21845);a[76]=String.fromCharCode(2186);a[77]=String.fromCharCode(21845);a[78]=String.fromCharCode(17749);a[79]=String.fromCharCode(277);a[83]=String.fromCharCode(65534);a[84]=String.fromCharCode(65535);a[85]=String.fromCharCode(127);
1172 a[266]=String.fromCharCode(65535);a[267]=String.fromCharCode(65535);a[268]=String.fromCharCode(63);a[480]=String.fromCharCode(21845);a[481]=String.fromCharCode(21845);a[482]=String.fromCharCode(21845);a[483]=String.fromCharCode(21845);a[484]=String.fromCharCode(21845);a[485]=String.fromCharCode(21845);a[486]=String.fromCharCode(21845);a[487]=String.fromCharCode(21845);a[488]=String.fromCharCode(21845);a[489]=String.fromCharCode(21);a[490]=String.fromCharCode(21845);a[491]=String.fromCharCode(21845);
1173 a[492]=String.fromCharCode(21845);a[493]=String.fromCharCode(21845);a[494]=String.fromCharCode(21845);a[495]=String.fromCharCode(341);a[496]=String.fromCharCode(65280);a[497]=String.fromCharCode(16128);a[498]=String.fromCharCode(65280);a[499]=String.fromCharCode(65280);a[500]=String.fromCharCode(16128);a[501]=String.fromCharCode(43520);a[502]=String.fromCharCode(65280);a[504]=String.fromCharCode(65280);a[505]=String.fromCharCode(65280);a[506]=String.fromCharCode(65280);a[507]=String.fromCharCode(24320);
1174 a[508]=String.fromCharCode(7936);a[509]=String.fromCharCode(3840);a[510]=String.fromCharCode(7936);a[511]=String.fromCharCode(7936);a[528]=String.fromCharCode(14468);a[529]=String.fromCharCode(16167);a[530]=String.fromCharCode(15696);a[531]=String.fromCharCode(11);a[4082]=String.fromCharCode(65534);a[4083]=String.fromCharCode(2047);a[4100]=String.fromCharCode(65534);a[4101]=String.fromCharCode(2047);a[4108]=String.fromCharCode(65535);a[4109]=String.fromCharCode(32639);a[4112]=String.fromCharCode(21845);
1175 a[4113]=String.fromCharCode(21845);a[4114]=String.fromCharCode(21845);a[4115]=String.fromCharCode(43605);a[4116]=String.fromCharCode(21674);a[4117]=String.fromCharCode(21845);a[4118]=String.fromCharCode(21845);a[4119]=String.fromCharCode(11093);a[4120]=String.fromCharCode(52950);a[4121]=String.fromCharCode(45531);a[4122]=String.fromCharCode(53973);a[4123]=String.fromCharCode(4526);a[4124]=String.fromCharCode(42128);a[4125]=String.fromCharCode(19114);a[4126]=String.fromCharCode(21845);a[4127]=String.fromCharCode(21522);
1176 a[4128]=String.fromCharCode(21845);a[4129]="U";a[4152]=String.fromCharCode(55104);a[4153]=String.fromCharCode(65534);a[4154]=String.fromCharCode(4091);a[4157]=String.fromCharCode(21532);a[4158]="U"});c$.lower_f=d(c$,"lower_f",function(){var a=N(4159,"\x00");com.stevesoft.pat.Bits.lower=new com.stevesoft.pat.Bits(a);a[6]=String.fromCharCode(65534);a[7]=String.fromCharCode(2047);a[10]=String.fromCharCode(1024);a[11]=String.fromCharCode(1056);a[13]=String.fromCharCode(32768);a[14]=String.fromCharCode(65535);
1177 a[15]=String.fromCharCode(65407);a[16]=String.fromCharCode(43690);a[17]=String.fromCharCode(43690);a[18]=String.fromCharCode(43690);a[19]=String.fromCharCode(21930);a[20]=String.fromCharCode(43861);a[21]=String.fromCharCode(43690);a[22]=String.fromCharCode(43690);a[23]=String.fromCharCode(54442);a[24]=String.fromCharCode(12585);a[25]=String.fromCharCode(20004);a[26]=String.fromCharCode(10538);a[27]=String.fromCharCode(9809);a[28]=String.fromCharCode(21056);a[29]=String.fromCharCode(46421);a[30]=String.fromCharCode(43690);
1178 a[31]=String.fromCharCode(43049);a[32]=String.fromCharCode(43690);a[33]=String.fromCharCode(170);a[37]=String.fromCharCode(65535);a[38]=String.fromCharCode(65535);a[39]=String.fromCharCode(65535);a[40]=String.fromCharCode(65535);a[41]=String.fromCharCode(65535);a[42]=String.fromCharCode(511);a[57]=String.fromCharCode(1);a[58]=String.fromCharCode(61440);a[59]=String.fromCharCode(65535);a[60]=String.fromCharCode(32767);a[61]="c";a[62]=String.fromCharCode(43688);a[63]=String.fromCharCode(7);a[67]=String.fromCharCode(65535);
1179 a[68]=String.fromCharCode(65535);a[69]=String.fromCharCode(57342);a[70]=String.fromCharCode(43690);a[71]=String.fromCharCode(43690);a[72]=String.fromCharCode(2);a[73]=String.fromCharCode(43690);a[74]=String.fromCharCode(43690);a[75]=String.fromCharCode(43690);a[76]=String.fromCharCode(4372);a[77]=String.fromCharCode(43690);a[78]=String.fromCharCode(35498);a[79]=String.fromCharCode(554);a[86]=String.fromCharCode(65534);a[87]=String.fromCharCode(65535);a[88]=String.fromCharCode(255);a[269]=String.fromCharCode(65535);
1180 a[270]=String.fromCharCode(65535);a[271]=String.fromCharCode(127);a[480]=String.fromCharCode(43690);a[481]=String.fromCharCode(43690);a[482]=String.fromCharCode(43690);a[483]=String.fromCharCode(43690);a[484]=String.fromCharCode(43690);a[485]=String.fromCharCode(43690);a[486]=String.fromCharCode(43690);a[487]=String.fromCharCode(43690);a[488]=String.fromCharCode(43690);a[489]=String.fromCharCode(4074);a[490]=String.fromCharCode(43690);a[491]=String.fromCharCode(43690);a[492]=String.fromCharCode(43690);
1181 a[493]=String.fromCharCode(43690);a[494]=String.fromCharCode(43690);a[495]=String.fromCharCode(682);a[496]=String.fromCharCode(255);a[497]=String.fromCharCode(63);a[498]=String.fromCharCode(255);a[499]=String.fromCharCode(255);a[500]=String.fromCharCode(63);a[501]=String.fromCharCode(255);a[502]=String.fromCharCode(255);a[503]=String.fromCharCode(16383);a[504]=String.fromCharCode(255);a[505]=String.fromCharCode(255);a[506]=String.fromCharCode(255);a[507]=String.fromCharCode(223);a[508]=String.fromCharCode(220);
1182 a[509]=String.fromCharCode(207);a[510]=String.fromCharCode(255);a[511]=String.fromCharCode(220);a[519]=String.fromCharCode(32768);a[528]=String.fromCharCode(50176);a[529]=String.fromCharCode(8);a[530]=String.fromCharCode(49152);a[531]=String.fromCharCode(16);a[4016]=String.fromCharCode(127);a[4017]=String.fromCharCode(248);a[4084]=String.fromCharCode(65534);a[4085]=String.fromCharCode(2047);a[4102]=String.fromCharCode(65534);a[4103]=String.fromCharCode(2047);a[4106]=String.fromCharCode(1024);a[4107]=
1183 String.fromCharCode(1056);a[4109]=String.fromCharCode(32768);a[4110]=String.fromCharCode(65535);a[4111]=String.fromCharCode(65407);a[4112]=String.fromCharCode(43690);a[4113]=String.fromCharCode(43690);a[4114]=String.fromCharCode(43690);a[4115]=String.fromCharCode(21930);a[4116]=String.fromCharCode(43861);a[4117]=String.fromCharCode(43690);a[4118]=String.fromCharCode(43690);a[4119]=String.fromCharCode(54442);a[4120]=String.fromCharCode(12585);a[4121]=String.fromCharCode(20004);a[4122]=String.fromCharCode(10538);
1184 a[4123]=String.fromCharCode(9809);a[4124]=String.fromCharCode(21056);a[4125]=String.fromCharCode(46421);a[4126]=String.fromCharCode(43690);a[4127]=String.fromCharCode(43049);a[4128]=String.fromCharCode(43690);a[4129]=String.fromCharCode(170);a[4133]=String.fromCharCode(65535);a[4134]=String.fromCharCode(65535);a[4135]=String.fromCharCode(65535);a[4136]=String.fromCharCode(65535);a[4137]=String.fromCharCode(65535);a[4138]=String.fromCharCode(511);a[4153]=String.fromCharCode(1);a[4154]=String.fromCharCode(61440);
1185 a[4155]=String.fromCharCode(65535);a[4156]=String.fromCharCode(32767);a[4157]="c";a[4158]=String.fromCharCode(168)});c$.title_f=d(c$,"title_f",function(){var a=N(4159,"\x00");com.stevesoft.pat.Bits.title=new com.stevesoft.pat.Bits(a);a[6]=String.fromCharCode(65534);a[7]=String.fromCharCode(2047);a[10]=String.fromCharCode(1024);a[11]=String.fromCharCode(1056);a[13]=String.fromCharCode(32768);a[14]=String.fromCharCode(65535);a[15]=String.fromCharCode(65407);a[16]=String.fromCharCode(43690);a[17]=String.fromCharCode(43690);
1186 a[18]=String.fromCharCode(43690);a[19]=String.fromCharCode(21930);a[20]=String.fromCharCode(43861);a[21]=String.fromCharCode(43690);a[22]=String.fromCharCode(43690);a[23]=String.fromCharCode(54442);a[24]=String.fromCharCode(12585);a[25]=String.fromCharCode(20004);a[26]=String.fromCharCode(10538);a[27]=String.fromCharCode(9809);a[28]=String.fromCharCode(21056);a[29]=String.fromCharCode(46421);a[30]=String.fromCharCode(43690);a[31]=String.fromCharCode(43049);a[32]=String.fromCharCode(43690);a[33]=String.fromCharCode(170);
1187 a[37]=String.fromCharCode(65535);a[38]=String.fromCharCode(65535);a[39]=String.fromCharCode(65535);a[40]=String.fromCharCode(65535);a[41]=String.fromCharCode(65535);a[42]=String.fromCharCode(511);a[57]=String.fromCharCode(1);a[58]=String.fromCharCode(61440);a[59]=String.fromCharCode(65535);a[60]=String.fromCharCode(32767);a[61]="c";a[62]=String.fromCharCode(43688);a[63]=String.fromCharCode(7);a[67]=String.fromCharCode(65535);a[68]=String.fromCharCode(65535);a[69]=String.fromCharCode(57342);a[70]=
1188 String.fromCharCode(43690);a[71]=String.fromCharCode(43690);a[72]=String.fromCharCode(2);a[73]=String.fromCharCode(43690);a[74]=String.fromCharCode(43690);a[75]=String.fromCharCode(43690);a[76]=String.fromCharCode(4372);a[77]=String.fromCharCode(43690);a[78]=String.fromCharCode(35498);a[79]=String.fromCharCode(554);a[86]=String.fromCharCode(65534);a[87]=String.fromCharCode(65535);a[88]=String.fromCharCode(255);a[269]=String.fromCharCode(65535);a[270]=String.fromCharCode(65535);a[271]=String.fromCharCode(127);
1189 a[480]=String.fromCharCode(43690);a[481]=String.fromCharCode(43690);a[482]=String.fromCharCode(43690);a[483]=String.fromCharCode(43690);a[484]=String.fromCharCode(43690);a[485]=String.fromCharCode(43690);a[486]=String.fromCharCode(43690);a[487]=String.fromCharCode(43690);a[488]=String.fromCharCode(43690);a[489]=String.fromCharCode(4074);a[490]=String.fromCharCode(43690);a[491]=String.fromCharCode(43690);a[492]=String.fromCharCode(43690);a[493]=String.fromCharCode(43690);a[494]=String.fromCharCode(43690);
1190 a[495]=String.fromCharCode(682);a[496]=String.fromCharCode(255);a[497]=String.fromCharCode(63);a[498]=String.fromCharCode(255);a[499]=String.fromCharCode(255);a[500]=String.fromCharCode(63);a[501]=String.fromCharCode(255);a[502]=String.fromCharCode(255);a[503]=String.fromCharCode(16383);a[504]=String.fromCharCode(255);a[505]=String.fromCharCode(255);a[506]=String.fromCharCode(255);a[507]=String.fromCharCode(223);a[508]=String.fromCharCode(220);a[509]=String.fromCharCode(207);a[510]=String.fromCharCode(255);
1191 a[511]=String.fromCharCode(220);a[519]=String.fromCharCode(32768);a[528]=String.fromCharCode(50176);a[529]=String.fromCharCode(8);a[530]=String.fromCharCode(49152);a[531]=String.fromCharCode(16);a[4016]=String.fromCharCode(127);a[4017]=String.fromCharCode(248);a[4084]=String.fromCharCode(65534);a[4085]=String.fromCharCode(2047);a[4102]=String.fromCharCode(65534);a[4103]=String.fromCharCode(2047);a[4106]=String.fromCharCode(1024);a[4107]=String.fromCharCode(1056);a[4109]=String.fromCharCode(32768);
1192 a[4110]=String.fromCharCode(65535);a[4111]=String.fromCharCode(65407);a[4112]=String.fromCharCode(43690);a[4113]=String.fromCharCode(43690);a[4114]=String.fromCharCode(43690);a[4115]=String.fromCharCode(21930);a[4116]=String.fromCharCode(43861);a[4117]=String.fromCharCode(43690);a[4118]=String.fromCharCode(43690);a[4119]=String.fromCharCode(54442);a[4120]=String.fromCharCode(12585);a[4121]=String.fromCharCode(20004);a[4122]=String.fromCharCode(10538);a[4123]=String.fromCharCode(9809);a[4124]=String.fromCharCode(21056);
1193 a[4125]=String.fromCharCode(46421);a[4126]=String.fromCharCode(43690);a[4127]=String.fromCharCode(43049);a[4128]=String.fromCharCode(43690);a[4129]=String.fromCharCode(170);a[4133]=String.fromCharCode(65535);a[4134]=String.fromCharCode(65535);a[4135]=String.fromCharCode(65535);a[4136]=String.fromCharCode(65535);a[4137]=String.fromCharCode(65535);a[4138]=String.fromCharCode(511);a[4153]=String.fromCharCode(1);a[4154]=String.fromCharCode(61440);a[4155]=String.fromCharCode(65535);a[4156]=String.fromCharCode(32767);
1194 a[4157]="c";a[4158]=String.fromCharCode(168)});c$.currency_f=d(c$,"currency_f",function(){var a=N(4159,"\x00");com.stevesoft.pat.Bits.currency=new com.stevesoft.pat.Bits(a);a[2]=String.fromCharCode(16);a[10]=String.fromCharCode(60);a[159]=String.fromCharCode(12);a[227]=String.fromCharCode(32768);a[522]=String.fromCharCode(8191);a[4070]=String.fromCharCode(512);a[4080]=String.fromCharCode(16);a[4094]="c";a[4098]=String.fromCharCode(16);a[4106]=String.fromCharCode(60)});c$.decimal_digit_f=d(c$,"decimal_digit_f",
1195 function(){var a=N(4159,"\x00");com.stevesoft.pat.Bits.decimal_digit=new com.stevesoft.pat.Bits(a);a[3]=String.fromCharCode(1023);a[102]=String.fromCharCode(1023);a[111]=String.fromCharCode(1023);a[150]=String.fromCharCode(65472);a[158]=String.fromCharCode(65472);a[166]=String.fromCharCode(65472);a[174]=String.fromCharCode(65472);a[182]=String.fromCharCode(65472);a[190]=String.fromCharCode(65408);a[198]=String.fromCharCode(65472);a[206]=String.fromCharCode(65472);a[214]=String.fromCharCode(65472);
1196 a[229]=String.fromCharCode(1023);a[237]=String.fromCharCode(1023);a[242]=String.fromCharCode(1023);a[4081]=String.fromCharCode(1023);a[4099]=String.fromCharCode(1023)});c$.math_f=d(c$,"math_f",function(){var a=N(4159,"\x00");com.stevesoft.pat.Bits.math=new com.stevesoft.pat.Bits(a);a[2]=String.fromCharCode(2048);a[3]=String.fromCharCode(28672);a[7]=String.fromCharCode(20480);a[10]=String.fromCharCode(4096);a[11]=String.fromCharCode(2);a[13]=String.fromCharCode(128);a[15]=String.fromCharCode(128);
1197 a[516]=String.fromCharCode(16);a[519]=String.fromCharCode(7168);a[520]=String.fromCharCode(7168);a[537]=String.fromCharCode(31);a[541]=String.fromCharCode(20);a[544]=String.fromCharCode(65535);a[545]=String.fromCharCode(65535);a[546]=String.fromCharCode(65535);a[547]=String.fromCharCode(65535);a[548]=String.fromCharCode(65535);a[549]=String.fromCharCode(65535);a[550]=String.fromCharCode(65535);a[551]=String.fromCharCode(65535);a[552]=String.fromCharCode(65535);a[553]=String.fromCharCode(65535);a[554]=
1198 String.fromCharCode(65535);a[555]=String.fromCharCode(65535);a[556]=String.fromCharCode(65535);a[557]=String.fromCharCode(65535);a[558]=String.fromCharCode(65535);a[559]=String.fromCharCode(3);a[560]=String.fromCharCode(3840);a[562]=String.fromCharCode(3);a[4018]=String.fromCharCode(512);a[4070]="t";a[4080]=String.fromCharCode(2048);a[4081]=String.fromCharCode(28672);a[4085]=String.fromCharCode(20480);a[4094]=String.fromCharCode(7940);a[4098]=String.fromCharCode(2048);a[4099]=String.fromCharCode(28672);
1199 a[4103]=String.fromCharCode(20480);a[4106]=String.fromCharCode(4096);a[4107]=String.fromCharCode(2);a[4109]=String.fromCharCode(128);a[4111]=String.fromCharCode(128)});c$.letter_f=d(c$,"letter_f",function(){var a=N(4159,"\x00");com.stevesoft.pat.Bits.letter=new com.stevesoft.pat.Bits(a);a[4]=String.fromCharCode(65534);a[5]=String.fromCharCode(2047);a[6]=String.fromCharCode(65534);a[7]=String.fromCharCode(2047);a[10]=String.fromCharCode(1024);a[11]=String.fromCharCode(1056);a[12]=String.fromCharCode(65535);
1200 a[13]=String.fromCharCode(65407);a[14]=String.fromCharCode(65535);a[15]=String.fromCharCode(65407);a[16]=String.fromCharCode(65535);a[17]=String.fromCharCode(65535);a[18]=String.fromCharCode(65535);a[19]=String.fromCharCode(65535);a[20]=String.fromCharCode(65535);a[21]=String.fromCharCode(65535);a[22]=String.fromCharCode(65535);a[23]=String.fromCharCode(65535);a[24]=String.fromCharCode(65535);a[25]=String.fromCharCode(65535);a[26]=String.fromCharCode(65535);a[27]=String.fromCharCode(65535);a[28]=
1201 String.fromCharCode(65535);a[29]=String.fromCharCode(65535);a[30]=String.fromCharCode(65535);a[31]=String.fromCharCode(64575);a[32]=String.fromCharCode(65535);a[33]=String.fromCharCode(255);a[37]=String.fromCharCode(65535);a[38]=String.fromCharCode(65535);a[39]=String.fromCharCode(65535);a[40]=String.fromCharCode(65535);a[41]=String.fromCharCode(65535);a[42]=String.fromCharCode(511);a[43]=String.fromCharCode(63999);a[44]=String.fromCharCode(3);a[45]=String.fromCharCode(3);a[46]=String.fromCharCode(31);
1202 a[55]=String.fromCharCode(1024);a[56]=String.fromCharCode(55104);a[57]=String.fromCharCode(65535);a[58]=String.fromCharCode(65531);a[59]=String.fromCharCode(65535);a[60]=String.fromCharCode(32767);a[61]=String.fromCharCode(21631);a[62]=String.fromCharCode(65533);a[63]=String.fromCharCode(15);a[64]=String.fromCharCode(57342);a[65]=String.fromCharCode(65535);a[66]=String.fromCharCode(65535);a[67]=String.fromCharCode(65535);a[68]=String.fromCharCode(65535);a[69]=String.fromCharCode(57342);a[70]=String.fromCharCode(65535);
1203 a[71]=String.fromCharCode(65535);a[72]=String.fromCharCode(3);a[73]=String.fromCharCode(65535);a[74]=String.fromCharCode(65535);a[75]=String.fromCharCode(65535);a[76]=String.fromCharCode(6559);a[77]=String.fromCharCode(65535);a[78]=String.fromCharCode(53247);a[79]=String.fromCharCode(831);a[83]=String.fromCharCode(65534);a[84]=String.fromCharCode(65535);a[85]=String.fromCharCode(639);a[86]=String.fromCharCode(65534);a[87]=String.fromCharCode(65535);a[88]=String.fromCharCode(255);a[93]=String.fromCharCode(65535);
1204 a[94]=String.fromCharCode(2047);a[95]=String.fromCharCode(7);a[98]=String.fromCharCode(65534);a[99]=String.fromCharCode(2047);a[100]=String.fromCharCode(2047);a[103]=String.fromCharCode(65534);a[104]=String.fromCharCode(65535);a[105]=String.fromCharCode(65535);a[106]=String.fromCharCode(65535);a[107]=String.fromCharCode(31999);a[108]=String.fromCharCode(32767);a[109]=String.fromCharCode(47);a[110]=String.fromCharCode(96);a[144]=String.fromCharCode(65504);a[145]=String.fromCharCode(65535);a[146]=String.fromCharCode(65535);
1205 a[147]=String.fromCharCode(9215);a[149]=String.fromCharCode(65280);a[150]=String.fromCharCode(3);a[152]=String.fromCharCode(40928);a[153]=String.fromCharCode(65529);a[154]=String.fromCharCode(65023);a[155]=String.fromCharCode(965);a[157]=String.fromCharCode(45056);a[158]=String.fromCharCode(3);a[159]=String.fromCharCode(3);a[160]=String.fromCharCode(34784);a[161]=String.fromCharCode(65529);a[162]=String.fromCharCode(65023);a[163]=String.fromCharCode(877);a[165]=String.fromCharCode(24064);a[167]=String.fromCharCode(28);
1206 a[168]=String.fromCharCode(45024);a[169]=String.fromCharCode(65531);a[170]=String.fromCharCode(65023);a[171]=String.fromCharCode(9197);a[174]=String.fromCharCode(1);a[176]=String.fromCharCode(40928);a[177]=String.fromCharCode(65529);a[178]=String.fromCharCode(65023);a[179]=String.fromCharCode(9165);a[181]=String.fromCharCode(45056);a[182]=String.fromCharCode(3);a[184]=String.fromCharCode(51168);a[185]=String.fromCharCode(54845);a[186]=String.fromCharCode(50968);a[187]=String.fromCharCode(959);a[192]=
1207 String.fromCharCode(57312);a[193]=String.fromCharCode(65533);a[194]=String.fromCharCode(65023);a[195]=String.fromCharCode(1007);a[198]=String.fromCharCode(3);a[200]=String.fromCharCode(57312);a[201]=String.fromCharCode(65533);a[202]=String.fromCharCode(65023);a[203]=String.fromCharCode(1007);a[205]=String.fromCharCode(16384);a[206]=String.fromCharCode(3);a[208]=String.fromCharCode(57312);a[209]=String.fromCharCode(65533);a[210]=String.fromCharCode(65023);a[211]=String.fromCharCode(1023);a[214]=String.fromCharCode(3);
1208 a[224]=String.fromCharCode(65534);a[225]=String.fromCharCode(65535);a[226]=String.fromCharCode(32767);a[227]=String.fromCharCode(13);a[228]=String.fromCharCode(127);a[232]=String.fromCharCode(9622);a[233]=String.fromCharCode(65264);a[234]=String.fromCharCode(27822);a[235]=String.fromCharCode(8205);a[236]=String.fromCharCode(95);a[237]=String.fromCharCode(12288);a[244]=String.fromCharCode(65279);a[245]=String.fromCharCode(65535);a[246]=String.fromCharCode(1023);a[266]=String.fromCharCode(65535);a[267]=
1209 String.fromCharCode(65535);a[268]=String.fromCharCode(63);a[269]=String.fromCharCode(65535);a[270]=String.fromCharCode(65535);a[271]=String.fromCharCode(127);a[272]=String.fromCharCode(65535);a[273]=String.fromCharCode(65535);a[274]=String.fromCharCode(65535);a[275]=String.fromCharCode(65535);a[276]=String.fromCharCode(65535);a[277]=String.fromCharCode(33791);a[278]=String.fromCharCode(65535);a[279]=String.fromCharCode(65535);a[280]=String.fromCharCode(65535);a[281]=String.fromCharCode(65535);a[282]=
1210 String.fromCharCode(65287);a[283]=String.fromCharCode(65535);a[284]=String.fromCharCode(65535);a[285]=String.fromCharCode(65535);a[286]=String.fromCharCode(65535);a[287]=String.fromCharCode(1023);a[480]=String.fromCharCode(65535);a[481]=String.fromCharCode(65535);a[482]=String.fromCharCode(65535);a[483]=String.fromCharCode(65535);a[484]=String.fromCharCode(65535);a[485]=String.fromCharCode(65535);a[486]=String.fromCharCode(65535);a[487]=String.fromCharCode(65535);a[488]=String.fromCharCode(65535);
1211 a[489]=String.fromCharCode(4095);a[490]=String.fromCharCode(65535);a[491]=String.fromCharCode(65535);a[492]=String.fromCharCode(65535);a[493]=String.fromCharCode(65535);a[494]=String.fromCharCode(65535);a[495]=String.fromCharCode(1023);a[496]=String.fromCharCode(65535);a[497]=String.fromCharCode(16191);a[498]=String.fromCharCode(65535);a[499]=String.fromCharCode(65535);a[500]=String.fromCharCode(16191);a[501]=String.fromCharCode(43775);a[502]=String.fromCharCode(65535);a[503]=String.fromCharCode(16383);
1212 a[504]=String.fromCharCode(65535);a[505]=String.fromCharCode(65535);a[506]=String.fromCharCode(65535);a[507]=String.fromCharCode(24543);a[508]=String.fromCharCode(8156);a[509]=String.fromCharCode(4047);a[510]=String.fromCharCode(8191);a[511]=String.fromCharCode(8156);a[519]=String.fromCharCode(32768);a[528]=String.fromCharCode(64644);a[529]=String.fromCharCode(16175);a[530]=String.fromCharCode(64848);a[531]=String.fromCharCode(507);a[768]=String.fromCharCode(32);a[771]=String.fromCharCode(62);a[772]=
1213 String.fromCharCode(65534);a[773]=String.fromCharCode(65535);a[774]=String.fromCharCode(65535);a[775]=String.fromCharCode(65535);a[776]=String.fromCharCode(65535);a[777]=String.fromCharCode(30751);a[778]=String.fromCharCode(65534);a[779]=String.fromCharCode(65535);a[780]=String.fromCharCode(65535);a[781]=String.fromCharCode(65535);a[782]=String.fromCharCode(65535);a[783]=String.fromCharCode(30719);a[784]=String.fromCharCode(65504);a[785]=String.fromCharCode(65535);a[786]=String.fromCharCode(8191);
1214 a[787]=String.fromCharCode(65534);a[788]=String.fromCharCode(65535);a[789]=String.fromCharCode(65535);a[790]=String.fromCharCode(65535);a[791]=String.fromCharCode(65535);a[792]=String.fromCharCode(32767);a[1248]=String.fromCharCode(65535);a[1249]=String.fromCharCode(65535);a[1250]=String.fromCharCode(65535);a[1251]=String.fromCharCode(65535);a[1252]=String.fromCharCode(65535);a[1253]=String.fromCharCode(65535);a[1254]=String.fromCharCode(65535);a[1255]=String.fromCharCode(65535);a[1256]=String.fromCharCode(65535);
1215 a[1257]=String.fromCharCode(65535);a[1258]=String.fromCharCode(65535);a[1259]=String.fromCharCode(65535);a[1260]=String.fromCharCode(65535);a[1261]=String.fromCharCode(65535);a[1262]=String.fromCharCode(65535);a[1263]=String.fromCharCode(65535);a[1264]=String.fromCharCode(65535);a[1265]=String.fromCharCode(65535);a[1266]=String.fromCharCode(65535);a[1267]=String.fromCharCode(65535);a[1268]=String.fromCharCode(65535);a[1269]=String.fromCharCode(65535);a[1270]=String.fromCharCode(65535);a[1271]=String.fromCharCode(65535);
1216 a[1272]=String.fromCharCode(65535);a[1273]=String.fromCharCode(65535);a[1274]=String.fromCharCode(65535);a[1275]=String.fromCharCode(65535);a[1276]=String.fromCharCode(65535);a[1277]=String.fromCharCode(65535);a[1278]=String.fromCharCode(65535);a[1279]=String.fromCharCode(65535);a[1280]=String.fromCharCode(65535);a[1281]=String.fromCharCode(65535);a[1282]=String.fromCharCode(65535);a[1283]=String.fromCharCode(65535);a[1284]=String.fromCharCode(65535);a[1285]=String.fromCharCode(65535);a[1286]=String.fromCharCode(65535);
1217 a[1287]=String.fromCharCode(65535);a[1288]=String.fromCharCode(65535);a[1289]=String.fromCharCode(65535);a[1290]=String.fromCharCode(65535);a[1291]=String.fromCharCode(65535);a[1292]=String.fromCharCode(65535);a[1293]=String.fromCharCode(65535);a[1294]=String.fromCharCode(65535);a[1295]=String.fromCharCode(65535);a[1296]=String.fromCharCode(65535);a[1297]=String.fromCharCode(65535);a[1298]=String.fromCharCode(65535);a[1299]=String.fromCharCode(65535);a[1300]=String.fromCharCode(65535);a[1301]=String.fromCharCode(65535);
1218 a[1302]=String.fromCharCode(65535);a[1303]=String.fromCharCode(65535);a[1304]=String.fromCharCode(65535);a[1305]=String.fromCharCode(65535);a[1306]=String.fromCharCode(65535);a[1307]=String.fromCharCode(65535);a[1308]=String.fromCharCode(65535);a[1309]=String.fromCharCode(65535);a[1310]=String.fromCharCode(65535);a[1311]=String.fromCharCode(65535);a[1312]=String.fromCharCode(65535);a[1313]=String.fromCharCode(65535);a[1314]=String.fromCharCode(65535);a[1315]=String.fromCharCode(65535);a[1316]=String.fromCharCode(65535);
1219 a[1317]=String.fromCharCode(65535);a[1318]=String.fromCharCode(65535);a[1319]=String.fromCharCode(65535);a[1320]=String.fromCharCode(65535);a[1321]=String.fromCharCode(65535);a[1322]=String.fromCharCode(65535);a[1323]=String.fromCharCode(65535);a[1324]=String.fromCharCode(65535);a[1325]=String.fromCharCode(65535);a[1326]=String.fromCharCode(65535);a[1327]=String.fromCharCode(65535);a[1328]=String.fromCharCode(65535);a[1329]=String.fromCharCode(65535);a[1330]=String.fromCharCode(65535);a[1331]=String.fromCharCode(65535);
1220 a[1332]=String.fromCharCode(65535);a[1333]=String.fromCharCode(65535);a[1334]=String.fromCharCode(65535);a[1335]=String.fromCharCode(65535);a[1336]=String.fromCharCode(65535);a[1337]=String.fromCharCode(65535);a[1338]=String.fromCharCode(65535);a[1339]=String.fromCharCode(65535);a[1340]=String.fromCharCode(65535);a[1341]=String.fromCharCode(65535);a[1342]=String.fromCharCode(65535);a[1343]=String.fromCharCode(65535);a[1344]=String.fromCharCode(65535);a[1345]=String.fromCharCode(65535);a[1346]=String.fromCharCode(65535);
1221 a[1347]=String.fromCharCode(65535);a[1348]=String.fromCharCode(65535);a[1349]=String.fromCharCode(65535);a[1350]=String.fromCharCode(65535);a[1351]=String.fromCharCode(65535);a[1352]=String.fromCharCode(65535);a[1353]=String.fromCharCode(65535);a[1354]=String.fromCharCode(65535);a[1355]=String.fromCharCode(65535);a[1356]=String.fromCharCode(65535);a[1357]=String.fromCharCode(65535);a[1358]=String.fromCharCode(65535);a[1359]=String.fromCharCode(65535);a[1360]=String.fromCharCode(65535);a[1361]=String.fromCharCode(65535);
1222 a[1362]=String.fromCharCode(65535);a[1363]=String.fromCharCode(65535);a[1364]=String.fromCharCode(65535);a[1365]=String.fromCharCode(65535);a[1366]=String.fromCharCode(65535);a[1367]=String.fromCharCode(65535);a[1368]=String.fromCharCode(65535);a[1369]=String.fromCharCode(65535);a[1370]=String.fromCharCode(65535);a[1371]=String.fromCharCode(65535);a[1372]=String.fromCharCode(65535);a[1373]=String.fromCharCode(65535);a[1374]=String.fromCharCode(65535);a[1375]=String.fromCharCode(65535);a[1376]=String.fromCharCode(65535);
1223 a[1377]=String.fromCharCode(65535);a[1378]=String.fromCharCode(65535);a[1379]=String.fromCharCode(65535);a[1380]=String.fromCharCode(65535);a[1381]=String.fromCharCode(65535);a[1382]=String.fromCharCode(65535);a[1383]=String.fromCharCode(65535);a[1384]=String.fromCharCode(65535);a[1385]=String.fromCharCode(65535);a[1386]=String.fromCharCode(65535);a[1387]=String.fromCharCode(65535);a[1388]=String.fromCharCode(65535);a[1389]=String.fromCharCode(65535);a[1390]=String.fromCharCode(65535);a[1391]=String.fromCharCode(65535);
1224 a[1392]=String.fromCharCode(65535);a[1393]=String.fromCharCode(65535);a[1394]=String.fromCharCode(65535);a[1395]=String.fromCharCode(65535);a[1396]=String.fromCharCode(65535);a[1397]=String.fromCharCode(65535);a[1398]=String.fromCharCode(65535);a[1399]=String.fromCharCode(65535);a[1400]=String.fromCharCode(65535);a[1401]=String.fromCharCode(65535);a[1402]=String.fromCharCode(65535);a[1403]=String.fromCharCode(65535);a[1404]=String.fromCharCode(65535);a[1405]=String.fromCharCode(65535);a[1406]=String.fromCharCode(65535);
1225 a[1407]=String.fromCharCode(65535);a[1408]=String.fromCharCode(65535);a[1409]=String.fromCharCode(65535);a[1410]=String.fromCharCode(65535);a[1411]=String.fromCharCode(65535);a[1412]=String.fromCharCode(65535);a[1413]=String.fromCharCode(65535);a[1414]=String.fromCharCode(65535);a[1415]=String.fromCharCode(65535);a[1416]=String.fromCharCode(65535);a[1417]=String.fromCharCode(65535);a[1418]=String.fromCharCode(65535);a[1419]=String.fromCharCode(65535);a[1420]=String.fromCharCode(65535);a[1421]=String.fromCharCode(65535);
1226 a[1422]=String.fromCharCode(65535);a[1423]=String.fromCharCode(65535);a[1424]=String.fromCharCode(65535);a[1425]=String.fromCharCode(65535);a[1426]=String.fromCharCode(65535);a[1427]=String.fromCharCode(65535);a[1428]=String.fromCharCode(65535);a[1429]=String.fromCharCode(65535);a[1430]=String.fromCharCode(65535);a[1431]=String.fromCharCode(65535);a[1432]=String.fromCharCode(65535);a[1433]=String.fromCharCode(65535);a[1434]=String.fromCharCode(65535);a[1435]=String.fromCharCode(65535);a[1436]=String.fromCharCode(65535);
1227 a[1437]=String.fromCharCode(65535);a[1438]=String.fromCharCode(65535);a[1439]=String.fromCharCode(65535);a[1440]=String.fromCharCode(65535);a[1441]=String.fromCharCode(65535);a[1442]=String.fromCharCode(65535);a[1443]=String.fromCharCode(65535);a[1444]=String.fromCharCode(65535);a[1445]=String.fromCharCode(65535);a[1446]=String.fromCharCode(65535);a[1447]=String.fromCharCode(65535);a[1448]=String.fromCharCode(65535);a[1449]=String.fromCharCode(65535);a[1450]=String.fromCharCode(65535);a[1451]=String.fromCharCode(65535);
1228 a[1452]=String.fromCharCode(65535);a[1453]=String.fromCharCode(65535);a[1454]=String.fromCharCode(65535);a[1455]=String.fromCharCode(65535);a[1456]=String.fromCharCode(65535);a[1457]=String.fromCharCode(65535);a[1458]=String.fromCharCode(65535);a[1459]=String.fromCharCode(65535);a[1460]=String.fromCharCode(65535);a[1461]=String.fromCharCode(65535);a[1462]=String.fromCharCode(65535);a[1463]=String.fromCharCode(65535);a[1464]=String.fromCharCode(65535);a[1465]=String.fromCharCode(65535);a[1466]=String.fromCharCode(65535);
1229 a[1467]=String.fromCharCode(65535);a[1468]=String.fromCharCode(65535);a[1469]=String.fromCharCode(65535);a[1470]=String.fromCharCode(65535);a[1471]=String.fromCharCode(65535);a[1472]=String.fromCharCode(65535);a[1473]=String.fromCharCode(65535);a[1474]=String.fromCharCode(65535);a[1475]=String.fromCharCode(65535);a[1476]=String.fromCharCode(65535);a[1477]=String.fromCharCode(65535);a[1478]=String.fromCharCode(65535);a[1479]=String.fromCharCode(65535);a[1480]=String.fromCharCode(65535);a[1481]=String.fromCharCode(65535);
1230 a[1482]=String.fromCharCode(65535);a[1483]=String.fromCharCode(65535);a[1484]=String.fromCharCode(65535);a[1485]=String.fromCharCode(65535);a[1486]=String.fromCharCode(65535);a[1487]=String.fromCharCode(65535);a[1488]=String.fromCharCode(65535);a[1489]=String.fromCharCode(65535);a[1490]=String.fromCharCode(65535);a[1491]=String.fromCharCode(65535);a[1492]=String.fromCharCode(65535);a[1493]=String.fromCharCode(65535);a[1494]=String.fromCharCode(65535);a[1495]=String.fromCharCode(65535);a[1496]=String.fromCharCode(65535);
1231 a[1497]=String.fromCharCode(65535);a[1498]=String.fromCharCode(65535);a[1499]=String.fromCharCode(65535);a[1500]=String.fromCharCode(65535);a[1501]=String.fromCharCode(65535);a[1502]=String.fromCharCode(65535);a[1503]=String.fromCharCode(65535);a[1504]=String.fromCharCode(65535);a[1505]=String.fromCharCode(65535);a[1506]=String.fromCharCode(65535);a[1507]=String.fromCharCode(65535);a[1508]=String.fromCharCode(65535);a[1509]=String.fromCharCode(65535);a[1510]=String.fromCharCode(65535);a[1511]=String.fromCharCode(65535);
1232 a[1512]=String.fromCharCode(65535);a[1513]=String.fromCharCode(65535);a[1514]=String.fromCharCode(65535);a[1515]=String.fromCharCode(65535);a[1516]=String.fromCharCode(65535);a[1517]=String.fromCharCode(65535);a[1518]=String.fromCharCode(65535);a[1519]=String.fromCharCode(65535);a[1520]=String.fromCharCode(65535);a[1521]=String.fromCharCode(65535);a[1522]=String.fromCharCode(65535);a[1523]=String.fromCharCode(65535);a[1524]=String.fromCharCode(65535);a[1525]=String.fromCharCode(65535);a[1526]=String.fromCharCode(65535);
1233 a[1527]=String.fromCharCode(65535);a[1528]=String.fromCharCode(65535);a[1529]=String.fromCharCode(65535);a[1530]=String.fromCharCode(65535);a[1531]=String.fromCharCode(65535);a[1532]=String.fromCharCode(65535);a[1533]=String.fromCharCode(65535);a[1534]=String.fromCharCode(65535);a[1535]=String.fromCharCode(65535);a[1536]=String.fromCharCode(65535);a[1537]=String.fromCharCode(65535);a[1538]=String.fromCharCode(65535);a[1539]=String.fromCharCode(65535);a[1540]=String.fromCharCode(65535);a[1541]=String.fromCharCode(65535);
1234 a[1542]=String.fromCharCode(65535);a[1543]=String.fromCharCode(65535);a[1544]=String.fromCharCode(65535);a[1545]=String.fromCharCode(65535);a[1546]=String.fromCharCode(65535);a[1547]=String.fromCharCode(65535);a[1548]=String.fromCharCode(65535);a[1549]=String.fromCharCode(65535);a[1550]=String.fromCharCode(65535);a[1551]=String.fromCharCode(65535);a[1552]=String.fromCharCode(65535);a[1553]=String.fromCharCode(65535);a[1554]=String.fromCharCode(65535);a[1555]=String.fromCharCode(65535);a[1556]=String.fromCharCode(65535);
1235 a[1557]=String.fromCharCode(65535);a[1558]=String.fromCharCode(65535);a[1559]=String.fromCharCode(65535);a[1560]=String.fromCharCode(65535);a[1561]=String.fromCharCode(65535);a[1562]=String.fromCharCode(65535);a[1563]=String.fromCharCode(65535);a[1564]=String.fromCharCode(65535);a[1565]=String.fromCharCode(65535);a[1566]=String.fromCharCode(65535);a[1567]=String.fromCharCode(65535);a[1568]=String.fromCharCode(65535);a[1569]=String.fromCharCode(65535);a[1570]=String.fromCharCode(65535);a[1571]=String.fromCharCode(65535);
1236 a[1572]=String.fromCharCode(65535);a[1573]=String.fromCharCode(65535);a[1574]=String.fromCharCode(65535);a[1575]=String.fromCharCode(65535);a[1576]=String.fromCharCode(65535);a[1577]=String.fromCharCode(65535);a[1578]=String.fromCharCode(65535);a[1579]=String.fromCharCode(65535);a[1580]=String.fromCharCode(65535);a[1581]=String.fromCharCode(65535);a[1582]=String.fromCharCode(65535);a[1583]=String.fromCharCode(65535);a[1584]=String.fromCharCode(65535);a[1585]=String.fromCharCode(65535);a[1586]=String.fromCharCode(65535);
1237 a[1587]=String.fromCharCode(65535);a[1588]=String.fromCharCode(65535);a[1589]=String.fromCharCode(65535);a[1590]=String.fromCharCode(65535);a[1591]=String.fromCharCode(65535);a[1592]=String.fromCharCode(65535);a[1593]=String.fromCharCode(65535);a[1594]=String.fromCharCode(65535);a[1595]=String.fromCharCode(65535);a[1596]=String.fromCharCode(65535);a[1597]=String.fromCharCode(65535);a[1598]=String.fromCharCode(65535);a[1599]=String.fromCharCode(65535);a[1600]=String.fromCharCode(65535);a[1601]=String.fromCharCode(65535);
1238 a[1602]=String.fromCharCode(65535);a[1603]=String.fromCharCode(65535);a[1604]=String.fromCharCode(65535);a[1605]=String.fromCharCode(65535);a[1606]=String.fromCharCode(65535);a[1607]=String.fromCharCode(65535);a[1608]=String.fromCharCode(65535);a[1609]=String.fromCharCode(65535);a[1610]=String.fromCharCode(65535);a[1611]=String.fromCharCode(65535);a[1612]=String.fromCharCode(65535);a[1613]=String.fromCharCode(65535);a[1614]=String.fromCharCode(65535);a[1615]=String.fromCharCode(65535);a[1616]=String.fromCharCode(65535);
1239 a[1617]=String.fromCharCode(65535);a[1618]=String.fromCharCode(65535);a[1619]=String.fromCharCode(65535);a[1620]=String.fromCharCode(65535);a[1621]=String.fromCharCode(65535);a[1622]=String.fromCharCode(65535);a[1623]=String.fromCharCode(65535);a[1624]=String.fromCharCode(65535);a[1625]=String.fromCharCode(65535);a[1626]=String.fromCharCode(65535);a[1627]=String.fromCharCode(65535);a[1628]=String.fromCharCode(65535);a[1629]=String.fromCharCode(65535);a[1630]=String.fromCharCode(65535);a[1631]=String.fromCharCode(65535);
1240 a[1632]=String.fromCharCode(65535);a[1633]=String.fromCharCode(65535);a[1634]=String.fromCharCode(65535);a[1635]=String.fromCharCode(65535);a[1636]=String.fromCharCode(65535);a[1637]=String.fromCharCode(65535);a[1638]=String.fromCharCode(65535);a[1639]=String.fromCharCode(65535);a[1640]=String.fromCharCode(65535);a[1641]=String.fromCharCode(65535);a[1642]=String.fromCharCode(65535);a[1643]=String.fromCharCode(65535);a[1644]=String.fromCharCode(65535);a[1645]=String.fromCharCode(65535);a[1646]=String.fromCharCode(65535);
1241 a[1647]=String.fromCharCode(65535);a[1648]=String.fromCharCode(65535);a[1649]=String.fromCharCode(65535);a[1650]=String.fromCharCode(65535);a[1651]=String.fromCharCode(65535);a[1652]=String.fromCharCode(65535);a[1653]=String.fromCharCode(65535);a[1654]=String.fromCharCode(65535);a[1655]=String.fromCharCode(65535);a[1656]=String.fromCharCode(65535);a[1657]=String.fromCharCode(65535);a[1658]=String.fromCharCode(65535);a[1659]=String.fromCharCode(65535);a[1660]=String.fromCharCode(65535);a[1661]=String.fromCharCode(65535);
1242 a[1662]=String.fromCharCode(65535);a[1663]=String.fromCharCode(65535);a[1664]=String.fromCharCode(65535);a[1665]=String.fromCharCode(65535);a[1666]=String.fromCharCode(65535);a[1667]=String.fromCharCode(65535);a[1668]=String.fromCharCode(65535);a[1669]=String.fromCharCode(65535);a[1670]=String.fromCharCode(65535);a[1671]=String.fromCharCode(65535);a[1672]=String.fromCharCode(65535);a[1673]=String.fromCharCode(65535);a[1674]=String.fromCharCode(65535);a[1675]=String.fromCharCode(65535);a[1676]=String.fromCharCode(65535);
1243 a[1677]=String.fromCharCode(65535);a[1678]=String.fromCharCode(65535);a[1679]=String.fromCharCode(65535);a[1680]=String.fromCharCode(65535);a[1681]=String.fromCharCode(65535);a[1682]=String.fromCharCode(65535);a[1683]=String.fromCharCode(65535);a[1684]=String.fromCharCode(65535);a[1685]=String.fromCharCode(65535);a[1686]=String.fromCharCode(65535);a[1687]=String.fromCharCode(65535);a[1688]=String.fromCharCode(65535);a[1689]=String.fromCharCode(65535);a[1690]=String.fromCharCode(65535);a[1691]=String.fromCharCode(65535);
1244 a[1692]=String.fromCharCode(65535);a[1693]=String.fromCharCode(65535);a[1694]=String.fromCharCode(65535);a[1695]=String.fromCharCode(65535);a[1696]=String.fromCharCode(65535);a[1697]=String.fromCharCode(65535);a[1698]=String.fromCharCode(65535);a[1699]=String.fromCharCode(65535);a[1700]=String.fromCharCode(65535);a[1701]=String.fromCharCode(65535);a[1702]=String.fromCharCode(65535);a[1703]=String.fromCharCode(65535);a[1704]=String.fromCharCode(65535);a[1705]=String.fromCharCode(65535);a[1706]=String.fromCharCode(65535);
1245 a[1707]=String.fromCharCode(65535);a[1708]=String.fromCharCode(65535);a[1709]=String.fromCharCode(65535);a[1710]=String.fromCharCode(65535);a[1711]=String.fromCharCode(65535);a[1712]=String.fromCharCode(65535);a[1713]=String.fromCharCode(65535);a[1714]=String.fromCharCode(65535);a[1715]=String.fromCharCode(65535);a[1716]=String.fromCharCode(65535);a[1717]=String.fromCharCode(65535);a[1718]=String.fromCharCode(65535);a[1719]=String.fromCharCode(65535);a[1720]=String.fromCharCode(65535);a[1721]=String.fromCharCode(65535);
1246 a[1722]=String.fromCharCode(65535);a[1723]=String.fromCharCode(65535);a[1724]=String.fromCharCode(65535);a[1725]=String.fromCharCode(65535);a[1726]=String.fromCharCode(65535);a[1727]=String.fromCharCode(65535);a[1728]=String.fromCharCode(65535);a[1729]=String.fromCharCode(65535);a[1730]=String.fromCharCode(65535);a[1731]=String.fromCharCode(65535);a[1732]=String.fromCharCode(65535);a[1733]=String.fromCharCode(65535);a[1734]=String.fromCharCode(65535);a[1735]=String.fromCharCode(65535);a[1736]=String.fromCharCode(65535);
1247 a[1737]=String.fromCharCode(65535);a[1738]=String.fromCharCode(65535);a[1739]=String.fromCharCode(65535);a[1740]=String.fromCharCode(65535);a[1741]=String.fromCharCode(65535);a[1742]=String.fromCharCode(65535);a[1743]=String.fromCharCode(65535);a[1744]=String.fromCharCode(65535);a[1745]=String.fromCharCode(65535);a[1746]=String.fromCharCode(65535);a[1747]=String.fromCharCode(65535);a[1748]=String.fromCharCode(65535);a[1749]=String.fromCharCode(65535);a[1750]=String.fromCharCode(65535);a[1751]=String.fromCharCode(65535);
1248 a[1752]=String.fromCharCode(65535);a[1753]=String.fromCharCode(65535);a[1754]=String.fromCharCode(65535);a[1755]=String.fromCharCode(65535);a[1756]=String.fromCharCode(65535);a[1757]=String.fromCharCode(65535);a[1758]=String.fromCharCode(65535);a[1759]=String.fromCharCode(65535);a[1760]=String.fromCharCode(65535);a[1761]=String.fromCharCode(65535);a[1762]=String.fromCharCode(65535);a[1763]=String.fromCharCode(65535);a[1764]=String.fromCharCode(65535);a[1765]=String.fromCharCode(65535);a[1766]=String.fromCharCode(65535);
1249 a[1767]=String.fromCharCode(65535);a[1768]=String.fromCharCode(65535);a[1769]=String.fromCharCode(65535);a[1770]=String.fromCharCode(65535);a[1771]=String.fromCharCode(65535);a[1772]=String.fromCharCode(65535);a[1773]=String.fromCharCode(65535);a[1774]=String.fromCharCode(65535);a[1775]=String.fromCharCode(65535);a[1776]=String.fromCharCode(65535);a[1777]=String.fromCharCode(65535);a[1778]=String.fromCharCode(65535);a[1779]=String.fromCharCode(65535);a[1780]=String.fromCharCode(65535);a[1781]=String.fromCharCode(65535);
1250 a[1782]=String.fromCharCode(65535);a[1783]=String.fromCharCode(65535);a[1784]=String.fromCharCode(65535);a[1785]=String.fromCharCode(65535);a[1786]=String.fromCharCode(65535);a[1787]=String.fromCharCode(65535);a[1788]=String.fromCharCode(65535);a[1789]=String.fromCharCode(65535);a[1790]=String.fromCharCode(65535);a[1791]=String.fromCharCode(65535);a[1792]=String.fromCharCode(65535);a[1793]=String.fromCharCode(65535);a[1794]=String.fromCharCode(65535);a[1795]=String.fromCharCode(65535);a[1796]=String.fromCharCode(65535);
1251 a[1797]=String.fromCharCode(65535);a[1798]=String.fromCharCode(65535);a[1799]=String.fromCharCode(65535);a[1800]=String.fromCharCode(65535);a[1801]=String.fromCharCode(65535);a[1802]=String.fromCharCode(65535);a[1803]=String.fromCharCode(65535);a[1804]=String.fromCharCode(65535);a[1805]=String.fromCharCode(65535);a[1806]=String.fromCharCode(65535);a[1807]=String.fromCharCode(65535);a[1808]=String.fromCharCode(65535);a[1809]=String.fromCharCode(65535);a[1810]=String.fromCharCode(65535);a[1811]=String.fromCharCode(65535);
1252 a[1812]=String.fromCharCode(65535);a[1813]=String.fromCharCode(65535);a[1814]=String.fromCharCode(65535);a[1815]=String.fromCharCode(65535);a[1816]=String.fromCharCode(65535);a[1817]=String.fromCharCode(65535);a[1818]=String.fromCharCode(65535);a[1819]=String.fromCharCode(65535);a[1820]=String.fromCharCode(65535);a[1821]=String.fromCharCode(65535);a[1822]=String.fromCharCode(65535);a[1823]=String.fromCharCode(65535);a[1824]=String.fromCharCode(65535);a[1825]=String.fromCharCode(65535);a[1826]=String.fromCharCode(65535);
1253 a[1827]=String.fromCharCode(65535);a[1828]=String.fromCharCode(65535);a[1829]=String.fromCharCode(65535);a[1830]=String.fromCharCode(65535);a[1831]=String.fromCharCode(65535);a[1832]=String.fromCharCode(65535);a[1833]=String.fromCharCode(65535);a[1834]=String.fromCharCode(65535);a[1835]=String.fromCharCode(65535);a[1836]=String.fromCharCode(65535);a[1837]=String.fromCharCode(65535);a[1838]=String.fromCharCode(65535);a[1839]=String.fromCharCode(65535);a[1840]=String.fromCharCode(65535);a[1841]=String.fromCharCode(65535);
1254 a[1842]=String.fromCharCode(65535);a[1843]=String.fromCharCode(65535);a[1844]=String.fromCharCode(65535);a[1845]=String.fromCharCode(65535);a[1846]=String.fromCharCode(65535);a[1847]=String.fromCharCode(65535);a[1848]=String.fromCharCode(65535);a[1849]=String.fromCharCode(65535);a[1850]=String.fromCharCode(65535);a[1851]=String.fromCharCode(65535);a[1852]=String.fromCharCode(65535);a[1853]=String.fromCharCode(65535);a[1854]=String.fromCharCode(65535);a[1855]=String.fromCharCode(65535);a[1856]=String.fromCharCode(65535);
1255 a[1857]=String.fromCharCode(65535);a[1858]=String.fromCharCode(65535);a[1859]=String.fromCharCode(65535);a[1860]=String.fromCharCode(65535);a[1861]=String.fromCharCode(65535);a[1862]=String.fromCharCode(65535);a[1863]=String.fromCharCode(65535);a[1864]=String.fromCharCode(65535);a[1865]=String.fromCharCode(65535);a[1866]=String.fromCharCode(65535);a[1867]=String.fromCharCode(65535);a[1868]=String.fromCharCode(65535);a[1869]=String.fromCharCode(65535);a[1870]=String.fromCharCode(65535);a[1871]=String.fromCharCode(65535);
1256 a[1872]=String.fromCharCode(65535);a[1873]=String.fromCharCode(65535);a[1874]=String.fromCharCode(65535);a[1875]=String.fromCharCode(65535);a[1876]=String.fromCharCode(65535);a[1877]=String.fromCharCode(65535);a[1878]=String.fromCharCode(65535);a[1879]=String.fromCharCode(65535);a[1880]=String.fromCharCode(65535);a[1881]=String.fromCharCode(65535);a[1882]=String.fromCharCode(65535);a[1883]=String.fromCharCode(65535);a[1884]=String.fromCharCode(65535);a[1885]=String.fromCharCode(65535);a[1886]=String.fromCharCode(65535);
1257 a[1887]=String.fromCharCode(65535);a[1888]=String.fromCharCode(65535);a[1889]=String.fromCharCode(65535);a[1890]=String.fromCharCode(65535);a[1891]=String.fromCharCode(65535);a[1892]=String.fromCharCode(65535);a[1893]=String.fromCharCode(65535);a[1894]=String.fromCharCode(65535);a[1895]=String.fromCharCode(65535);a[1896]=String.fromCharCode(65535);a[1897]=String.fromCharCode(65535);a[1898]=String.fromCharCode(65535);a[1899]=String.fromCharCode(65535);a[1900]=String.fromCharCode(65535);a[1901]=String.fromCharCode(65535);
1258 a[1902]=String.fromCharCode(65535);a[1903]=String.fromCharCode(65535);a[1904]=String.fromCharCode(65535);a[1905]=String.fromCharCode(65535);a[1906]=String.fromCharCode(65535);a[1907]=String.fromCharCode(65535);a[1908]=String.fromCharCode(65535);a[1909]=String.fromCharCode(65535);a[1910]=String.fromCharCode(65535);a[1911]=String.fromCharCode(65535);a[1912]=String.fromCharCode(65535);a[1913]=String.fromCharCode(65535);a[1914]=String.fromCharCode(65535);a[1915]=String.fromCharCode(65535);a[1916]=String.fromCharCode(65535);
1259 a[1917]=String.fromCharCode(65535);a[1918]=String.fromCharCode(65535);a[1919]=String.fromCharCode(65535);a[1920]=String.fromCharCode(65535);a[1921]=String.fromCharCode(65535);a[1922]=String.fromCharCode(65535);a[1923]=String.fromCharCode(65535);a[1924]=String.fromCharCode(65535);a[1925]=String.fromCharCode(65535);a[1926]=String.fromCharCode(65535);a[1927]=String.fromCharCode(65535);a[1928]=String.fromCharCode(65535);a[1929]=String.fromCharCode(65535);a[1930]=String.fromCharCode(65535);a[1931]=String.fromCharCode(65535);
1260 a[1932]=String.fromCharCode(65535);a[1933]=String.fromCharCode(65535);a[1934]=String.fromCharCode(65535);a[1935]=String.fromCharCode(65535);a[1936]=String.fromCharCode(65535);a[1937]=String.fromCharCode(65535);a[1938]=String.fromCharCode(65535);a[1939]=String.fromCharCode(65535);a[1940]=String.fromCharCode(65535);a[1941]=String.fromCharCode(65535);a[1942]=String.fromCharCode(65535);a[1943]=String.fromCharCode(65535);a[1944]=String.fromCharCode(65535);a[1945]=String.fromCharCode(65535);a[1946]=String.fromCharCode(65535);
1261 a[1947]=String.fromCharCode(65535);a[1948]=String.fromCharCode(65535);a[1949]=String.fromCharCode(65535);a[1950]=String.fromCharCode(65535);a[1951]=String.fromCharCode(65535);a[1952]=String.fromCharCode(65535);a[1953]=String.fromCharCode(65535);a[1954]=String.fromCharCode(65535);a[1955]=String.fromCharCode(65535);a[1956]=String.fromCharCode(65535);a[1957]=String.fromCharCode(65535);a[1958]=String.fromCharCode(65535);a[1959]=String.fromCharCode(65535);a[1960]=String.fromCharCode(65535);a[1961]=String.fromCharCode(65535);
1262 a[1962]=String.fromCharCode(65535);a[1963]=String.fromCharCode(65535);a[1964]=String.fromCharCode(65535);a[1965]=String.fromCharCode(65535);a[1966]=String.fromCharCode(65535);a[1967]=String.fromCharCode(65535);a[1968]=String.fromCharCode(65535);a[1969]=String.fromCharCode(65535);a[1970]=String.fromCharCode(65535);a[1971]=String.fromCharCode(65535);a[1972]=String.fromCharCode(65535);a[1973]=String.fromCharCode(65535);a[1974]=String.fromCharCode(65535);a[1975]=String.fromCharCode(65535);a[1976]=String.fromCharCode(65535);
1263 a[1977]=String.fromCharCode(65535);a[1978]=String.fromCharCode(65535);a[1979]=String.fromCharCode(65535);a[1980]=String.fromCharCode(65535);a[1981]=String.fromCharCode(65535);a[1982]=String.fromCharCode(65535);a[1983]=String.fromCharCode(65535);a[1984]=String.fromCharCode(65535);a[1985]=String.fromCharCode(65535);a[1986]=String.fromCharCode(65535);a[1987]=String.fromCharCode(65535);a[1988]=String.fromCharCode(65535);a[1989]=String.fromCharCode(65535);a[1990]=String.fromCharCode(65535);a[1991]=String.fromCharCode(65535);
1264 a[1992]=String.fromCharCode(65535);a[1993]=String.fromCharCode(65535);a[1994]=String.fromCharCode(65535);a[1995]=String.fromCharCode(65535);a[1996]=String.fromCharCode(65535);a[1997]=String.fromCharCode(65535);a[1998]=String.fromCharCode(65535);a[1999]=String.fromCharCode(65535);a[2E3]=String.fromCharCode(65535);a[2001]=String.fromCharCode(65535);a[2002]=String.fromCharCode(65535);a[2003]=String.fromCharCode(65535);a[2004]=String.fromCharCode(65535);a[2005]=String.fromCharCode(65535);a[2006]=String.fromCharCode(65535);
1265 a[2007]=String.fromCharCode(65535);a[2008]=String.fromCharCode(65535);a[2009]=String.fromCharCode(65535);a[2010]=String.fromCharCode(65535);a[2011]=String.fromCharCode(65535);a[2012]=String.fromCharCode(65535);a[2013]=String.fromCharCode(65535);a[2014]=String.fromCharCode(65535);a[2015]=String.fromCharCode(65535);a[2016]=String.fromCharCode(65535);a[2017]=String.fromCharCode(65535);a[2018]=String.fromCharCode(65535);a[2019]=String.fromCharCode(65535);a[2020]=String.fromCharCode(65535);a[2021]=String.fromCharCode(65535);
1266 a[2022]=String.fromCharCode(65535);a[2023]=String.fromCharCode(65535);a[2024]=String.fromCharCode(65535);a[2025]=String.fromCharCode(65535);a[2026]=String.fromCharCode(65535);a[2027]=String.fromCharCode(65535);a[2028]=String.fromCharCode(65535);a[2029]=String.fromCharCode(65535);a[2030]=String.fromCharCode(65535);a[2031]=String.fromCharCode(65535);a[2032]=String.fromCharCode(65535);a[2033]=String.fromCharCode(65535);a[2034]=String.fromCharCode(65535);a[2035]=String.fromCharCode(65535);a[2036]=String.fromCharCode(65535);
1267 a[2037]=String.fromCharCode(65535);a[2038]=String.fromCharCode(65535);a[2039]=String.fromCharCode(65535);a[2040]=String.fromCharCode(65535);a[2041]=String.fromCharCode(65535);a[2042]=String.fromCharCode(65535);a[2043]=String.fromCharCode(65535);a[2044]=String.fromCharCode(65535);a[2045]=String.fromCharCode(65535);a[2046]=String.fromCharCode(65535);a[2047]=String.fromCharCode(65535);a[2048]=String.fromCharCode(65535);a[2049]=String.fromCharCode(65535);a[2050]=String.fromCharCode(65535);a[2051]=String.fromCharCode(65535);
1268 a[2052]=String.fromCharCode(65535);a[2053]=String.fromCharCode(65535);a[2054]=String.fromCharCode(65535);a[2055]=String.fromCharCode(65535);a[2056]=String.fromCharCode(65535);a[2057]=String.fromCharCode(65535);a[2058]=String.fromCharCode(65535);a[2059]=String.fromCharCode(65535);a[2060]=String.fromCharCode(65535);a[2061]=String.fromCharCode(65535);a[2062]=String.fromCharCode(65535);a[2063]=String.fromCharCode(65535);a[2064]=String.fromCharCode(65535);a[2065]=String.fromCharCode(65535);a[2066]=String.fromCharCode(65535);
1269 a[2067]=String.fromCharCode(65535);a[2068]=String.fromCharCode(65535);a[2069]=String.fromCharCode(65535);a[2070]=String.fromCharCode(65535);a[2071]=String.fromCharCode(65535);a[2072]=String.fromCharCode(65535);a[2073]=String.fromCharCode(65535);a[2074]=String.fromCharCode(65535);a[2075]=String.fromCharCode(65535);a[2076]=String.fromCharCode(65535);a[2077]=String.fromCharCode(65535);a[2078]=String.fromCharCode(65535);a[2079]=String.fromCharCode(65535);a[2080]=String.fromCharCode(65535);a[2081]=String.fromCharCode(65535);
1270 a[2082]=String.fromCharCode(65535);a[2083]=String.fromCharCode(65535);a[2084]=String.fromCharCode(65535);a[2085]=String.fromCharCode(65535);a[2086]=String.fromCharCode(65535);a[2087]=String.fromCharCode(65535);a[2088]=String.fromCharCode(65535);a[2089]=String.fromCharCode(65535);a[2090]=String.fromCharCode(65535);a[2091]=String.fromCharCode(65535);a[2092]=String.fromCharCode(65535);a[2093]=String.fromCharCode(65535);a[2094]=String.fromCharCode(65535);a[2095]=String.fromCharCode(65535);a[2096]=String.fromCharCode(65535);
1271 a[2097]=String.fromCharCode(65535);a[2098]=String.fromCharCode(65535);a[2099]=String.fromCharCode(65535);a[2100]=String.fromCharCode(65535);a[2101]=String.fromCharCode(65535);a[2102]=String.fromCharCode(65535);a[2103]=String.fromCharCode(65535);a[2104]=String.fromCharCode(65535);a[2105]=String.fromCharCode(65535);a[2106]=String.fromCharCode(65535);a[2107]=String.fromCharCode(65535);a[2108]=String.fromCharCode(65535);a[2109]=String.fromCharCode(65535);a[2110]=String.fromCharCode(65535);a[2111]=String.fromCharCode(65535);
1272 a[2112]=String.fromCharCode(65535);a[2113]=String.fromCharCode(65535);a[2114]=String.fromCharCode(65535);a[2115]=String.fromCharCode(65535);a[2116]=String.fromCharCode(65535);a[2117]=String.fromCharCode(65535);a[2118]=String.fromCharCode(65535);a[2119]=String.fromCharCode(65535);a[2120]=String.fromCharCode(65535);a[2121]=String.fromCharCode(65535);a[2122]=String.fromCharCode(65535);a[2123]=String.fromCharCode(65535);a[2124]=String.fromCharCode(65535);a[2125]=String.fromCharCode(65535);a[2126]=String.fromCharCode(65535);
1273 a[2127]=String.fromCharCode(65535);a[2128]=String.fromCharCode(65535);a[2129]=String.fromCharCode(65535);a[2130]=String.fromCharCode(65535);a[2131]=String.fromCharCode(65535);a[2132]=String.fromCharCode(65535);a[2133]=String.fromCharCode(65535);a[2134]=String.fromCharCode(65535);a[2135]=String.fromCharCode(65535);a[2136]=String.fromCharCode(65535);a[2137]=String.fromCharCode(65535);a[2138]=String.fromCharCode(65535);a[2139]=String.fromCharCode(65535);a[2140]=String.fromCharCode(65535);a[2141]=String.fromCharCode(65535);
1274 a[2142]=String.fromCharCode(65535);a[2143]=String.fromCharCode(65535);a[2144]=String.fromCharCode(65535);a[2145]=String.fromCharCode(65535);a[2146]=String.fromCharCode(65535);a[2147]=String.fromCharCode(65535);a[2148]=String.fromCharCode(65535);a[2149]=String.fromCharCode(65535);a[2150]=String.fromCharCode(65535);a[2151]=String.fromCharCode(65535);a[2152]=String.fromCharCode(65535);a[2153]=String.fromCharCode(65535);a[2154]=String.fromCharCode(65535);a[2155]=String.fromCharCode(65535);a[2156]=String.fromCharCode(65535);
1275 a[2157]=String.fromCharCode(65535);a[2158]=String.fromCharCode(65535);a[2159]=String.fromCharCode(65535);a[2160]=String.fromCharCode(65535);a[2161]=String.fromCharCode(65535);a[2162]=String.fromCharCode(65535);a[2163]=String.fromCharCode(65535);a[2164]=String.fromCharCode(65535);a[2165]=String.fromCharCode(65535);a[2166]=String.fromCharCode(65535);a[2167]=String.fromCharCode(65535);a[2168]=String.fromCharCode(65535);a[2169]=String.fromCharCode(65535);a[2170]=String.fromCharCode(65535);a[2171]=String.fromCharCode(65535);
1276 a[2172]=String.fromCharCode(65535);a[2173]=String.fromCharCode(65535);a[2174]=String.fromCharCode(65535);a[2175]=String.fromCharCode(65535);a[2176]=String.fromCharCode(65535);a[2177]=String.fromCharCode(65535);a[2178]=String.fromCharCode(65535);a[2179]=String.fromCharCode(65535);a[2180]=String.fromCharCode(65535);a[2181]=String.fromCharCode(65535);a[2182]=String.fromCharCode(65535);a[2183]=String.fromCharCode(65535);a[2184]=String.fromCharCode(65535);a[2185]=String.fromCharCode(65535);a[2186]=String.fromCharCode(65535);
1277 a[2187]=String.fromCharCode(65535);a[2188]=String.fromCharCode(65535);a[2189]=String.fromCharCode(65535);a[2190]=String.fromCharCode(65535);a[2191]=String.fromCharCode(65535);a[2192]=String.fromCharCode(65535);a[2193]=String.fromCharCode(65535);a[2194]=String.fromCharCode(65535);a[2195]=String.fromCharCode(65535);a[2196]=String.fromCharCode(65535);a[2197]=String.fromCharCode(65535);a[2198]=String.fromCharCode(65535);a[2199]=String.fromCharCode(65535);a[2200]=String.fromCharCode(65535);a[2201]=String.fromCharCode(65535);
1278 a[2202]=String.fromCharCode(65535);a[2203]=String.fromCharCode(65535);a[2204]=String.fromCharCode(65535);a[2205]=String.fromCharCode(65535);a[2206]=String.fromCharCode(65535);a[2207]=String.fromCharCode(65535);a[2208]=String.fromCharCode(65535);a[2209]=String.fromCharCode(65535);a[2210]=String.fromCharCode(65535);a[2211]=String.fromCharCode(65535);a[2212]=String.fromCharCode(65535);a[2213]=String.fromCharCode(65535);a[2214]=String.fromCharCode(65535);a[2215]=String.fromCharCode(65535);a[2216]=String.fromCharCode(65535);
1279 a[2217]=String.fromCharCode(65535);a[2218]=String.fromCharCode(65535);a[2219]=String.fromCharCode(65535);a[2220]=String.fromCharCode(65535);a[2221]=String.fromCharCode(65535);a[2222]=String.fromCharCode(65535);a[2223]=String.fromCharCode(65535);a[2224]=String.fromCharCode(65535);a[2225]=String.fromCharCode(65535);a[2226]=String.fromCharCode(65535);a[2227]=String.fromCharCode(65535);a[2228]=String.fromCharCode(65535);a[2229]=String.fromCharCode(65535);a[2230]=String.fromCharCode(65535);a[2231]=String.fromCharCode(65535);
1280 a[2232]=String.fromCharCode(65535);a[2233]=String.fromCharCode(65535);a[2234]=String.fromCharCode(65535);a[2235]=String.fromCharCode(65535);a[2236]=String.fromCharCode(65535);a[2237]=String.fromCharCode(65535);a[2238]=String.fromCharCode(65535);a[2239]=String.fromCharCode(65535);a[2240]=String.fromCharCode(65535);a[2241]=String.fromCharCode(65535);a[2242]=String.fromCharCode(65535);a[2243]=String.fromCharCode(65535);a[2244]=String.fromCharCode(65535);a[2245]=String.fromCharCode(65535);a[2246]=String.fromCharCode(65535);
1281 a[2247]=String.fromCharCode(65535);a[2248]=String.fromCharCode(65535);a[2249]=String.fromCharCode(65535);a[2250]=String.fromCharCode(65535);a[2251]=String.fromCharCode(65535);a[2252]=String.fromCharCode(65535);a[2253]=String.fromCharCode(65535);a[2254]=String.fromCharCode(65535);a[2255]=String.fromCharCode(65535);a[2256]=String.fromCharCode(65535);a[2257]=String.fromCharCode(65535);a[2258]=String.fromCharCode(65535);a[2259]=String.fromCharCode(65535);a[2260]=String.fromCharCode(65535);a[2261]=String.fromCharCode(65535);
1282 a[2262]=String.fromCharCode(65535);a[2263]=String.fromCharCode(65535);a[2264]=String.fromCharCode(65535);a[2265]=String.fromCharCode(65535);a[2266]=String.fromCharCode(65535);a[2267]=String.fromCharCode(65535);a[2268]=String.fromCharCode(65535);a[2269]=String.fromCharCode(65535);a[2270]=String.fromCharCode(65535);a[2271]=String.fromCharCode(65535);a[2272]=String.fromCharCode(65535);a[2273]=String.fromCharCode(65535);a[2274]=String.fromCharCode(65535);a[2275]=String.fromCharCode(65535);a[2276]=String.fromCharCode(65535);
1283 a[2277]=String.fromCharCode(65535);a[2278]=String.fromCharCode(65535);a[2279]=String.fromCharCode(65535);a[2280]=String.fromCharCode(65535);a[2281]=String.fromCharCode(65535);a[2282]=String.fromCharCode(65535);a[2283]=String.fromCharCode(65535);a[2284]=String.fromCharCode(65535);a[2285]=String.fromCharCode(65535);a[2286]=String.fromCharCode(65535);a[2287]=String.fromCharCode(65535);a[2288]=String.fromCharCode(65535);a[2289]=String.fromCharCode(65535);a[2290]=String.fromCharCode(65535);a[2291]=String.fromCharCode(65535);
1284 a[2292]=String.fromCharCode(65535);a[2293]=String.fromCharCode(65535);a[2294]=String.fromCharCode(65535);a[2295]=String.fromCharCode(65535);a[2296]=String.fromCharCode(65535);a[2297]=String.fromCharCode(65535);a[2298]=String.fromCharCode(65535);a[2299]=String.fromCharCode(65535);a[2300]=String.fromCharCode(65535);a[2301]=String.fromCharCode(65535);a[2302]=String.fromCharCode(65535);a[2303]=String.fromCharCode(65535);a[2304]=String.fromCharCode(65535);a[2305]=String.fromCharCode(65535);a[2306]=String.fromCharCode(65535);
1285 a[2307]=String.fromCharCode(65535);a[2308]=String.fromCharCode(65535);a[2309]=String.fromCharCode(65535);a[2310]=String.fromCharCode(65535);a[2311]=String.fromCharCode(65535);a[2312]=String.fromCharCode(65535);a[2313]=String.fromCharCode(65535);a[2314]=String.fromCharCode(65535);a[2315]=String.fromCharCode(65535);a[2316]=String.fromCharCode(65535);a[2317]=String.fromCharCode(65535);a[2318]=String.fromCharCode(65535);a[2319]=String.fromCharCode(65535);a[2320]=String.fromCharCode(65535);a[2321]=String.fromCharCode(65535);
1286 a[2322]=String.fromCharCode(65535);a[2323]=String.fromCharCode(65535);a[2324]=String.fromCharCode(65535);a[2325]=String.fromCharCode(65535);a[2326]=String.fromCharCode(65535);a[2327]=String.fromCharCode(65535);a[2328]=String.fromCharCode(65535);a[2329]=String.fromCharCode(65535);a[2330]=String.fromCharCode(65535);a[2331]=String.fromCharCode(65535);a[2332]=String.fromCharCode(65535);a[2333]=String.fromCharCode(65535);a[2334]=String.fromCharCode(65535);a[2335]=String.fromCharCode(65535);a[2336]=String.fromCharCode(65535);
1287 a[2337]=String.fromCharCode(65535);a[2338]=String.fromCharCode(65535);a[2339]=String.fromCharCode(65535);a[2340]=String.fromCharCode(65535);a[2341]=String.fromCharCode(65535);a[2342]=String.fromCharCode(65535);a[2343]=String.fromCharCode(65535);a[2344]=String.fromCharCode(65535);a[2345]=String.fromCharCode(65535);a[2346]=String.fromCharCode(65535);a[2347]=String.fromCharCode(65535);a[2348]=String.fromCharCode(65535);a[2349]=String.fromCharCode(65535);a[2350]=String.fromCharCode(65535);a[2351]=String.fromCharCode(65535);
1288 a[2352]=String.fromCharCode(65535);a[2353]=String.fromCharCode(65535);a[2354]=String.fromCharCode(65535);a[2355]=String.fromCharCode(65535);a[2356]=String.fromCharCode(65535);a[2357]=String.fromCharCode(65535);a[2358]=String.fromCharCode(65535);a[2359]=String.fromCharCode(65535);a[2360]=String.fromCharCode(65535);a[2361]=String.fromCharCode(65535);a[2362]=String.fromCharCode(65535);a[2363]=String.fromCharCode(65535);a[2364]=String.fromCharCode(65535);a[2365]=String.fromCharCode(65535);a[2366]=String.fromCharCode(65535);
1289 a[2367]=String.fromCharCode(65535);a[2368]=String.fromCharCode(65535);a[2369]=String.fromCharCode(65535);a[2370]=String.fromCharCode(65535);a[2371]=String.fromCharCode(65535);a[2372]=String.fromCharCode(65535);a[2373]=String.fromCharCode(65535);a[2374]=String.fromCharCode(65535);a[2375]=String.fromCharCode(65535);a[2376]=String.fromCharCode(65535);a[2377]=String.fromCharCode(65535);a[2378]=String.fromCharCode(65535);a[2379]=String.fromCharCode(65535);a[2380]=String.fromCharCode(65535);a[2381]=String.fromCharCode(65535);
1290 a[2382]=String.fromCharCode(65535);a[2383]=String.fromCharCode(65535);a[2384]=String.fromCharCode(65535);a[2385]=String.fromCharCode(65535);a[2386]=String.fromCharCode(65535);a[2387]=String.fromCharCode(65535);a[2388]=String.fromCharCode(65535);a[2389]=String.fromCharCode(65535);a[2390]=String.fromCharCode(65535);a[2391]=String.fromCharCode(65535);a[2392]=String.fromCharCode(65535);a[2393]=String.fromCharCode(65535);a[2394]=String.fromCharCode(65535);a[2395]=String.fromCharCode(65535);a[2396]=String.fromCharCode(65535);
1291 a[2397]=String.fromCharCode(65535);a[2398]=String.fromCharCode(65535);a[2399]=String.fromCharCode(65535);a[2400]=String.fromCharCode(65535);a[2401]=String.fromCharCode(65535);a[2402]=String.fromCharCode(65535);a[2403]=String.fromCharCode(65535);a[2404]=String.fromCharCode(65535);a[2405]=String.fromCharCode(65535);a[2406]=String.fromCharCode(65535);a[2407]=String.fromCharCode(65535);a[2408]=String.fromCharCode(65535);a[2409]=String.fromCharCode(65535);a[2410]=String.fromCharCode(65535);a[2411]=String.fromCharCode(65535);
1292 a[2412]=String.fromCharCode(65535);a[2413]=String.fromCharCode(65535);a[2414]=String.fromCharCode(65535);a[2415]=String.fromCharCode(65535);a[2416]=String.fromCharCode(65535);a[2417]=String.fromCharCode(65535);a[2418]=String.fromCharCode(65535);a[2419]=String.fromCharCode(65535);a[2420]=String.fromCharCode(65535);a[2421]=String.fromCharCode(65535);a[2422]=String.fromCharCode(65535);a[2423]=String.fromCharCode(65535);a[2424]=String.fromCharCode(65535);a[2425]=String.fromCharCode(65535);a[2426]=String.fromCharCode(65535);
1293 a[2427]=String.fromCharCode(65535);a[2428]=String.fromCharCode(65535);a[2429]=String.fromCharCode(65535);a[2430]=String.fromCharCode(65535);a[2431]=String.fromCharCode(65535);a[2432]=String.fromCharCode(65535);a[2433]=String.fromCharCode(65535);a[2434]=String.fromCharCode(65535);a[2435]=String.fromCharCode(65535);a[2436]=String.fromCharCode(65535);a[2437]=String.fromCharCode(65535);a[2438]=String.fromCharCode(65535);a[2439]=String.fromCharCode(65535);a[2440]=String.fromCharCode(65535);a[2441]=String.fromCharCode(65535);
1294 a[2442]=String.fromCharCode(65535);a[2443]=String.fromCharCode(65535);a[2444]=String.fromCharCode(65535);a[2445]=String.fromCharCode(65535);a[2446]=String.fromCharCode(65535);a[2447]=String.fromCharCode(65535);a[2448]=String.fromCharCode(65535);a[2449]=String.fromCharCode(65535);a[2450]=String.fromCharCode(65535);a[2451]=String.fromCharCode(65535);a[2452]=String.fromCharCode(65535);a[2453]=String.fromCharCode(65535);a[2454]=String.fromCharCode(65535);a[2455]=String.fromCharCode(65535);a[2456]=String.fromCharCode(65535);
1295 a[2457]=String.fromCharCode(65535);a[2458]=String.fromCharCode(65535);a[2459]=String.fromCharCode(65535);a[2460]=String.fromCharCode(65535);a[2461]=String.fromCharCode(65535);a[2462]=String.fromCharCode(65535);a[2463]=String.fromCharCode(65535);a[2464]=String.fromCharCode(65535);a[2465]=String.fromCharCode(65535);a[2466]=String.fromCharCode(65535);a[2467]=String.fromCharCode(65535);a[2468]=String.fromCharCode(65535);a[2469]=String.fromCharCode(65535);a[2470]=String.fromCharCode(65535);a[2471]=String.fromCharCode(65535);
1296 a[2472]=String.fromCharCode(65535);a[2473]=String.fromCharCode(65535);a[2474]=String.fromCharCode(65535);a[2475]=String.fromCharCode(65535);a[2476]=String.fromCharCode(65535);a[2477]=String.fromCharCode(65535);a[2478]=String.fromCharCode(65535);a[2479]=String.fromCharCode(65535);a[2480]=String.fromCharCode(65535);a[2481]=String.fromCharCode(65535);a[2482]=String.fromCharCode(65535);a[2483]=String.fromCharCode(65535);a[2484]=String.fromCharCode(65535);a[2485]=String.fromCharCode(65535);a[2486]=String.fromCharCode(65535);
1297 a[2487]=String.fromCharCode(65535);a[2488]=String.fromCharCode(65535);a[2489]=String.fromCharCode(65535);a[2490]=String.fromCharCode(65535);a[2491]=String.fromCharCode(65535);a[2492]=String.fromCharCode(65535);a[2493]=String.fromCharCode(65535);a[2494]=String.fromCharCode(65535);a[2495]=String.fromCharCode(65535);a[2496]=String.fromCharCode(65535);a[2497]=String.fromCharCode(65535);a[2498]=String.fromCharCode(65535);a[2499]=String.fromCharCode(65535);a[2500]=String.fromCharCode(65535);a[2501]=String.fromCharCode(65535);
1298 a[2502]=String.fromCharCode(65535);a[2503]=String.fromCharCode(65535);a[2504]=String.fromCharCode(65535);a[2505]=String.fromCharCode(65535);a[2506]=String.fromCharCode(65535);a[2507]=String.fromCharCode(65535);a[2508]=String.fromCharCode(65535);a[2509]=String.fromCharCode(65535);a[2510]=String.fromCharCode(65535);a[2511]=String.fromCharCode(65535);a[2512]=String.fromCharCode(65535);a[2513]=String.fromCharCode(65535);a[2514]=String.fromCharCode(65535);a[2515]=String.fromCharCode(65535);a[2516]=String.fromCharCode(65535);
1299 a[2517]=String.fromCharCode(65535);a[2518]=String.fromCharCode(65535);a[2519]=String.fromCharCode(65535);a[2520]=String.fromCharCode(65535);a[2521]=String.fromCharCode(65535);a[2522]=String.fromCharCode(65535);a[2523]=String.fromCharCode(65535);a[2524]=String.fromCharCode(65535);a[2525]=String.fromCharCode(65535);a[2526]=String.fromCharCode(65535);a[2527]=String.fromCharCode(65535);a[2528]=String.fromCharCode(65535);a[2529]=String.fromCharCode(65535);a[2530]=String.fromCharCode(65535);a[2531]=String.fromCharCode(65535);
1300 a[2532]=String.fromCharCode(65535);a[2533]=String.fromCharCode(65535);a[2534]=String.fromCharCode(65535);a[2535]=String.fromCharCode(65535);a[2536]=String.fromCharCode(65535);a[2537]=String.fromCharCode(65535);a[2538]=String.fromCharCode(65535);a[2539]=String.fromCharCode(65535);a[2540]=String.fromCharCode(65535);a[2541]=String.fromCharCode(65535);a[2542]=String.fromCharCode(65535);a[2543]=String.fromCharCode(65535);a[2544]=String.fromCharCode(65535);a[2545]=String.fromCharCode(65535);a[2546]=String.fromCharCode(65535);
1301 a[2547]=String.fromCharCode(65535);a[2548]=String.fromCharCode(65535);a[2549]=String.fromCharCode(65535);a[2550]=String.fromCharCode(65535);a[2551]=String.fromCharCode(65535);a[2552]=String.fromCharCode(65535);a[2553]=String.fromCharCode(65535);a[2554]=String.fromCharCode(63);a[2752]=String.fromCharCode(65535);a[2753]=String.fromCharCode(65535);a[2754]=String.fromCharCode(65535);a[2755]=String.fromCharCode(65535);a[2756]=String.fromCharCode(65535);a[2757]=String.fromCharCode(65535);a[2758]=String.fromCharCode(65535);
1302 a[2759]=String.fromCharCode(65535);a[2760]=String.fromCharCode(65535);a[2761]=String.fromCharCode(65535);a[2762]=String.fromCharCode(65535);a[2763]=String.fromCharCode(65535);a[2764]=String.fromCharCode(65535);a[2765]=String.fromCharCode(65535);a[2766]=String.fromCharCode(65535);a[2767]=String.fromCharCode(65535);a[2768]=String.fromCharCode(65535);a[2769]=String.fromCharCode(65535);a[2770]=String.fromCharCode(65535);a[2771]=String.fromCharCode(65535);a[2772]=String.fromCharCode(65535);a[2773]=String.fromCharCode(65535);
1303 a[2774]=String.fromCharCode(65535);a[2775]=String.fromCharCode(65535);a[2776]=String.fromCharCode(65535);a[2777]=String.fromCharCode(65535);a[2778]=String.fromCharCode(65535);a[2779]=String.fromCharCode(65535);a[2780]=String.fromCharCode(65535);a[2781]=String.fromCharCode(65535);a[2782]=String.fromCharCode(65535);a[2783]=String.fromCharCode(65535);a[2784]=String.fromCharCode(65535);a[2785]=String.fromCharCode(65535);a[2786]=String.fromCharCode(65535);a[2787]=String.fromCharCode(65535);a[2788]=String.fromCharCode(65535);
1304 a[2789]=String.fromCharCode(65535);a[2790]=String.fromCharCode(65535);a[2791]=String.fromCharCode(65535);a[2792]=String.fromCharCode(65535);a[2793]=String.fromCharCode(65535);a[2794]=String.fromCharCode(65535);a[2795]=String.fromCharCode(65535);a[2796]=String.fromCharCode(65535);a[2797]=String.fromCharCode(65535);a[2798]=String.fromCharCode(65535);a[2799]=String.fromCharCode(65535);a[2800]=String.fromCharCode(65535);a[2801]=String.fromCharCode(65535);a[2802]=String.fromCharCode(65535);a[2803]=String.fromCharCode(65535);
1305 a[2804]=String.fromCharCode(65535);a[2805]=String.fromCharCode(65535);a[2806]=String.fromCharCode(65535);a[2807]=String.fromCharCode(65535);a[2808]=String.fromCharCode(65535);a[2809]=String.fromCharCode(65535);a[2810]=String.fromCharCode(65535);a[2811]=String.fromCharCode(65535);a[2812]=String.fromCharCode(65535);a[2813]=String.fromCharCode(65535);a[2814]=String.fromCharCode(65535);a[2815]=String.fromCharCode(65535);a[2816]=String.fromCharCode(65535);a[2817]=String.fromCharCode(65535);a[2818]=String.fromCharCode(65535);
1306 a[2819]=String.fromCharCode(65535);a[2820]=String.fromCharCode(65535);a[2821]=String.fromCharCode(65535);a[2822]=String.fromCharCode(65535);a[2823]=String.fromCharCode(65535);a[2824]=String.fromCharCode(65535);a[2825]=String.fromCharCode(65535);a[2826]=String.fromCharCode(65535);a[2827]=String.fromCharCode(65535);a[2828]=String.fromCharCode(65535);a[2829]=String.fromCharCode(65535);a[2830]=String.fromCharCode(65535);a[2831]=String.fromCharCode(65535);a[2832]=String.fromCharCode(65535);a[2833]=String.fromCharCode(65535);
1307 a[2834]=String.fromCharCode(65535);a[2835]=String.fromCharCode(65535);a[2836]=String.fromCharCode(65535);a[2837]=String.fromCharCode(65535);a[2838]=String.fromCharCode(65535);a[2839]=String.fromCharCode(65535);a[2840]=String.fromCharCode(65535);a[2841]=String.fromCharCode(65535);a[2842]=String.fromCharCode(65535);a[2843]=String.fromCharCode(65535);a[2844]=String.fromCharCode(65535);a[2845]=String.fromCharCode(65535);a[2846]=String.fromCharCode(65535);a[2847]=String.fromCharCode(65535);a[2848]=String.fromCharCode(65535);
1308 a[2849]=String.fromCharCode(65535);a[2850]=String.fromCharCode(65535);a[2851]=String.fromCharCode(65535);a[2852]=String.fromCharCode(65535);a[2853]=String.fromCharCode(65535);a[2854]=String.fromCharCode(65535);a[2855]=String.fromCharCode(65535);a[2856]=String.fromCharCode(65535);a[2857]=String.fromCharCode(65535);a[2858]=String.fromCharCode(65535);a[2859]=String.fromCharCode(65535);a[2860]=String.fromCharCode(65535);a[2861]=String.fromCharCode(65535);a[2862]=String.fromCharCode(65535);a[2863]=String.fromCharCode(65535);
1309 a[2864]=String.fromCharCode(65535);a[2865]=String.fromCharCode(65535);a[2866]=String.fromCharCode(65535);a[2867]=String.fromCharCode(65535);a[2868]=String.fromCharCode(65535);a[2869]=String.fromCharCode(65535);a[2870]=String.fromCharCode(65535);a[2871]=String.fromCharCode(65535);a[2872]=String.fromCharCode(65535);a[2873]=String.fromCharCode(65535);a[2874]=String.fromCharCode(65535);a[2875]=String.fromCharCode(65535);a[2876]=String.fromCharCode(65535);a[2877]=String.fromCharCode(65535);a[2878]=String.fromCharCode(65535);
1310 a[2879]=String.fromCharCode(65535);a[2880]=String.fromCharCode(65535);a[2881]=String.fromCharCode(65535);a[2882]=String.fromCharCode(65535);a[2883]=String.fromCharCode(65535);a[2884]=String.fromCharCode(65535);a[2885]=String.fromCharCode(65535);a[2886]=String.fromCharCode(65535);a[2887]=String.fromCharCode(65535);a[2888]=String.fromCharCode(65535);a[2889]=String.fromCharCode(65535);a[2890]=String.fromCharCode(65535);a[2891]=String.fromCharCode(65535);a[2892]=String.fromCharCode(65535);a[2893]=String.fromCharCode(65535);
1311 a[2894]=String.fromCharCode(65535);a[2895]=String.fromCharCode(65535);a[2896]=String.fromCharCode(65535);a[2897]=String.fromCharCode(65535);a[2898]=String.fromCharCode(65535);a[2899]=String.fromCharCode(65535);a[2900]=String.fromCharCode(65535);a[2901]=String.fromCharCode(65535);a[2902]=String.fromCharCode(65535);a[2903]=String.fromCharCode(65535);a[2904]=String.fromCharCode(65535);a[2905]=String.fromCharCode(65535);a[2906]=String.fromCharCode(65535);a[2907]=String.fromCharCode(65535);a[2908]=String.fromCharCode(65535);
1312 a[2909]=String.fromCharCode(65535);a[2910]=String.fromCharCode(65535);a[2911]=String.fromCharCode(65535);a[2912]=String.fromCharCode(65535);a[2913]=String.fromCharCode(65535);a[2914]=String.fromCharCode(65535);a[2915]=String.fromCharCode(65535);a[2916]=String.fromCharCode(65535);a[2917]=String.fromCharCode(65535);a[2918]=String.fromCharCode(65535);a[2919]=String.fromCharCode(65535);a[2920]=String.fromCharCode(65535);a[2921]=String.fromCharCode(65535);a[2922]=String.fromCharCode(65535);a[2923]=String.fromCharCode(65535);
1313 a[2924]=String.fromCharCode(65535);a[2925]=String.fromCharCode(65535);a[2926]=String.fromCharCode(65535);a[2927]=String.fromCharCode(65535);a[2928]=String.fromCharCode(65535);a[2929]=String.fromCharCode(65535);a[2930]=String.fromCharCode(65535);a[2931]=String.fromCharCode(65535);a[2932]=String.fromCharCode(65535);a[2933]=String.fromCharCode(65535);a[2934]=String.fromCharCode(65535);a[2935]=String.fromCharCode(65535);a[2936]=String.fromCharCode(65535);a[2937]=String.fromCharCode(65535);a[2938]=String.fromCharCode(65535);
1314 a[2939]=String.fromCharCode(65535);a[2940]=String.fromCharCode(65535);a[2941]=String.fromCharCode(65535);a[2942]=String.fromCharCode(65535);a[2943]=String.fromCharCode(65535);a[2944]=String.fromCharCode(65535);a[2945]=String.fromCharCode(65535);a[2946]=String.fromCharCode(65535);a[2947]=String.fromCharCode(65535);a[2948]=String.fromCharCode(65535);a[2949]=String.fromCharCode(65535);a[2950]=String.fromCharCode(65535);a[2951]=String.fromCharCode(65535);a[2952]=String.fromCharCode(65535);a[2953]=String.fromCharCode(65535);
1315 a[2954]=String.fromCharCode(65535);a[2955]=String.fromCharCode(65535);a[2956]=String.fromCharCode(65535);a[2957]=String.fromCharCode(65535);a[2958]=String.fromCharCode(65535);a[2959]=String.fromCharCode(65535);a[2960]=String.fromCharCode(65535);a[2961]=String.fromCharCode(65535);a[2962]=String.fromCharCode(65535);a[2963]=String.fromCharCode(65535);a[2964]=String.fromCharCode(65535);a[2965]=String.fromCharCode(65535);a[2966]=String.fromCharCode(65535);a[2967]=String.fromCharCode(65535);a[2968]=String.fromCharCode(65535);
1316 a[2969]=String.fromCharCode(65535);a[2970]=String.fromCharCode(65535);a[2971]=String.fromCharCode(65535);a[2972]=String.fromCharCode(65535);a[2973]=String.fromCharCode(65535);a[2974]=String.fromCharCode(65535);a[2975]=String.fromCharCode(65535);a[2976]=String.fromCharCode(65535);a[2977]=String.fromCharCode(65535);a[2978]=String.fromCharCode(65535);a[2979]=String.fromCharCode(65535);a[2980]=String.fromCharCode(65535);a[2981]=String.fromCharCode(65535);a[2982]=String.fromCharCode(65535);a[2983]=String.fromCharCode(65535);
1317 a[2984]=String.fromCharCode(65535);a[2985]=String.fromCharCode(65535);a[2986]=String.fromCharCode(65535);a[2987]=String.fromCharCode(65535);a[2988]=String.fromCharCode(65535);a[2989]=String.fromCharCode(65535);a[2990]=String.fromCharCode(65535);a[2991]=String.fromCharCode(65535);a[2992]=String.fromCharCode(65535);a[2993]=String.fromCharCode(65535);a[2994]=String.fromCharCode(65535);a[2995]=String.fromCharCode(65535);a[2996]=String.fromCharCode(65535);a[2997]=String.fromCharCode(65535);a[2998]=String.fromCharCode(65535);
1318 a[2999]=String.fromCharCode(65535);a[3E3]=String.fromCharCode(65535);a[3001]=String.fromCharCode(65535);a[3002]=String.fromCharCode(65535);a[3003]=String.fromCharCode(65535);a[3004]=String.fromCharCode(65535);a[3005]=String.fromCharCode(65535);a[3006]=String.fromCharCode(65535);a[3007]=String.fromCharCode(65535);a[3008]=String.fromCharCode(65535);a[3009]=String.fromCharCode(65535);a[3010]=String.fromCharCode(65535);a[3011]=String.fromCharCode(65535);a[3012]=String.fromCharCode(65535);a[3013]=String.fromCharCode(65535);
1319 a[3014]=String.fromCharCode(65535);a[3015]=String.fromCharCode(65535);a[3016]=String.fromCharCode(65535);a[3017]=String.fromCharCode(65535);a[3018]=String.fromCharCode(65535);a[3019]=String.fromCharCode(65535);a[3020]=String.fromCharCode(65535);a[3021]=String.fromCharCode(65535);a[3022]=String.fromCharCode(65535);a[3023]=String.fromCharCode(65535);a[3024]=String.fromCharCode(65535);a[3025]=String.fromCharCode(65535);a[3026]=String.fromCharCode(65535);a[3027]=String.fromCharCode(65535);a[3028]=String.fromCharCode(65535);
1320 a[3029]=String.fromCharCode(65535);a[3030]=String.fromCharCode(65535);a[3031]=String.fromCharCode(65535);a[3032]=String.fromCharCode(65535);a[3033]=String.fromCharCode(65535);a[3034]=String.fromCharCode(65535);a[3035]=String.fromCharCode(65535);a[3036]=String.fromCharCode(65535);a[3037]=String.fromCharCode(65535);a[3038]=String.fromCharCode(65535);a[3039]=String.fromCharCode(65535);a[3040]=String.fromCharCode(65535);a[3041]=String.fromCharCode(65535);a[3042]=String.fromCharCode(65535);a[3043]=String.fromCharCode(65535);
1321 a[3044]=String.fromCharCode(65535);a[3045]=String.fromCharCode(65535);a[3046]=String.fromCharCode(65535);a[3047]=String.fromCharCode(65535);a[3048]=String.fromCharCode(65535);a[3049]=String.fromCharCode(65535);a[3050]=String.fromCharCode(65535);a[3051]=String.fromCharCode(65535);a[3052]=String.fromCharCode(65535);a[3053]=String.fromCharCode(65535);a[3054]=String.fromCharCode(65535);a[3055]=String.fromCharCode(65535);a[3056]=String.fromCharCode(65535);a[3057]=String.fromCharCode(65535);a[3058]=String.fromCharCode(65535);
1322 a[3059]=String.fromCharCode(65535);a[3060]=String.fromCharCode(65535);a[3061]=String.fromCharCode(65535);a[3062]=String.fromCharCode(65535);a[3063]=String.fromCharCode(65535);a[3064]=String.fromCharCode(65535);a[3065]=String.fromCharCode(65535);a[3066]=String.fromCharCode(65535);a[3067]=String.fromCharCode(65535);a[3068]=String.fromCharCode(65535);a[3069]=String.fromCharCode(65535);a[3070]=String.fromCharCode(65535);a[3071]=String.fromCharCode(65535);a[3072]=String.fromCharCode(65535);a[3073]=String.fromCharCode(65535);
1323 a[3074]=String.fromCharCode(65535);a[3075]=String.fromCharCode(65535);a[3076]=String.fromCharCode(65535);a[3077]=String.fromCharCode(65535);a[3078]=String.fromCharCode(65535);a[3079]=String.fromCharCode(65535);a[3080]=String.fromCharCode(65535);a[3081]=String.fromCharCode(65535);a[3082]=String.fromCharCode(65535);a[3083]=String.fromCharCode(65535);a[3084]=String.fromCharCode(65535);a[3085]=String.fromCharCode(65535);a[3086]=String.fromCharCode(65535);a[3087]=String.fromCharCode(65535);a[3088]=String.fromCharCode(65535);
1324 a[3089]=String.fromCharCode(65535);a[3090]=String.fromCharCode(65535);a[3091]=String.fromCharCode(65535);a[3092]=String.fromCharCode(65535);a[3093]=String.fromCharCode(65535);a[3094]=String.fromCharCode(65535);a[3095]=String.fromCharCode(65535);a[3096]=String.fromCharCode(65535);a[3097]=String.fromCharCode(65535);a[3098]=String.fromCharCode(65535);a[3099]=String.fromCharCode(65535);a[3100]=String.fromCharCode(65535);a[3101]=String.fromCharCode(65535);a[3102]=String.fromCharCode(65535);a[3103]=String.fromCharCode(65535);
1325 a[3104]=String.fromCharCode(65535);a[3105]=String.fromCharCode(65535);a[3106]=String.fromCharCode(65535);a[3107]=String.fromCharCode(65535);a[3108]=String.fromCharCode(65535);a[3109]=String.fromCharCode(65535);a[3110]=String.fromCharCode(65535);a[3111]=String.fromCharCode(65535);a[3112]=String.fromCharCode(65535);a[3113]=String.fromCharCode(65535);a[3114]=String.fromCharCode(65535);a[3115]=String.fromCharCode(65535);a[3116]=String.fromCharCode(65535);a[3117]=String.fromCharCode(65535);a[3118]=String.fromCharCode(65535);
1326 a[3119]=String.fromCharCode(65535);a[3120]=String.fromCharCode(65535);a[3121]=String.fromCharCode(65535);a[3122]=String.fromCharCode(65535);a[3123]=String.fromCharCode(65535);a[3124]=String.fromCharCode(65535);a[3125]=String.fromCharCode(65535);a[3126]=String.fromCharCode(65535);a[3127]=String.fromCharCode(65535);a[3128]=String.fromCharCode(65535);a[3129]=String.fromCharCode(65535);a[3130]=String.fromCharCode(65535);a[3131]=String.fromCharCode(65535);a[3132]=String.fromCharCode(65535);a[3133]=String.fromCharCode(65535);
1327 a[3134]=String.fromCharCode(65535);a[3135]=String.fromCharCode(65535);a[3136]=String.fromCharCode(65535);a[3137]=String.fromCharCode(65535);a[3138]=String.fromCharCode(65535);a[3139]=String.fromCharCode(65535);a[3140]=String.fromCharCode(65535);a[3141]=String.fromCharCode(65535);a[3142]=String.fromCharCode(65535);a[3143]=String.fromCharCode(65535);a[3144]=String.fromCharCode(65535);a[3145]=String.fromCharCode(65535);a[3146]=String.fromCharCode(65535);a[3147]=String.fromCharCode(65535);a[3148]=String.fromCharCode(65535);
1328 a[3149]=String.fromCharCode(65535);a[3150]=String.fromCharCode(65535);a[3151]=String.fromCharCode(65535);a[3152]=String.fromCharCode(65535);a[3153]=String.fromCharCode(65535);a[3154]=String.fromCharCode(65535);a[3155]=String.fromCharCode(65535);a[3156]=String.fromCharCode(65535);a[3157]=String.fromCharCode(65535);a[3158]=String.fromCharCode(65535);a[3159]=String.fromCharCode(65535);a[3160]=String.fromCharCode(65535);a[3161]=String.fromCharCode(65535);a[3162]=String.fromCharCode(65535);a[3163]=String.fromCharCode(65535);
1329 a[3164]=String.fromCharCode(65535);a[3165]=String.fromCharCode(65535);a[3166]=String.fromCharCode(65535);a[3167]=String.fromCharCode(65535);a[3168]=String.fromCharCode(65535);a[3169]=String.fromCharCode(65535);a[3170]=String.fromCharCode(65535);a[3171]=String.fromCharCode(65535);a[3172]=String.fromCharCode(65535);a[3173]=String.fromCharCode(65535);a[3174]=String.fromCharCode(65535);a[3175]=String.fromCharCode(65535);a[3176]=String.fromCharCode(65535);a[3177]=String.fromCharCode(65535);a[3178]=String.fromCharCode(65535);
1330 a[3179]=String.fromCharCode(65535);a[3180]=String.fromCharCode(65535);a[3181]=String.fromCharCode(65535);a[3182]=String.fromCharCode(65535);a[3183]=String.fromCharCode(65535);a[3184]=String.fromCharCode(65535);a[3185]=String.fromCharCode(65535);a[3186]=String.fromCharCode(65535);a[3187]=String.fromCharCode(65535);a[3188]=String.fromCharCode(65535);a[3189]=String.fromCharCode(65535);a[3190]=String.fromCharCode(65535);a[3191]=String.fromCharCode(65535);a[3192]=String.fromCharCode(65535);a[3193]=String.fromCharCode(65535);
1331 a[3194]=String.fromCharCode(65535);a[3195]=String.fromCharCode(65535);a[3196]=String.fromCharCode(65535);a[3197]=String.fromCharCode(65535);a[3198]=String.fromCharCode(65535);a[3199]=String.fromCharCode(65535);a[3200]=String.fromCharCode(65535);a[3201]=String.fromCharCode(65535);a[3202]=String.fromCharCode(65535);a[3203]=String.fromCharCode(65535);a[3204]=String.fromCharCode(65535);a[3205]=String.fromCharCode(65535);a[3206]=String.fromCharCode(65535);a[3207]=String.fromCharCode(65535);a[3208]=String.fromCharCode(65535);
1332 a[3209]=String.fromCharCode(65535);a[3210]=String.fromCharCode(65535);a[3211]=String.fromCharCode(65535);a[3212]=String.fromCharCode(65535);a[3213]=String.fromCharCode(65535);a[3214]=String.fromCharCode(65535);a[3215]=String.fromCharCode(65535);a[3216]=String.fromCharCode(65535);a[3217]=String.fromCharCode(65535);a[3218]=String.fromCharCode(65535);a[3219]=String.fromCharCode(65535);a[3220]=String.fromCharCode(65535);a[3221]=String.fromCharCode(65535);a[3222]=String.fromCharCode(65535);a[3223]=String.fromCharCode(65535);
1333 a[3224]=String.fromCharCode(65535);a[3225]=String.fromCharCode(65535);a[3226]=String.fromCharCode(65535);a[3227]=String.fromCharCode(65535);a[3228]=String.fromCharCode(65535);a[3229]=String.fromCharCode(65535);a[3230]=String.fromCharCode(65535);a[3231]=String.fromCharCode(65535);a[3232]=String.fromCharCode(65535);a[3233]=String.fromCharCode(65535);a[3234]=String.fromCharCode(65535);a[3235]=String.fromCharCode(65535);a[3236]=String.fromCharCode(65535);a[3237]=String.fromCharCode(65535);a[3238]=String.fromCharCode(65535);
1334 a[3239]=String.fromCharCode(65535);a[3240]=String.fromCharCode(65535);a[3241]=String.fromCharCode(65535);a[3242]=String.fromCharCode(65535);a[3243]=String.fromCharCode(65535);a[3244]=String.fromCharCode(65535);a[3245]=String.fromCharCode(65535);a[3246]=String.fromCharCode(65535);a[3247]=String.fromCharCode(65535);a[3248]=String.fromCharCode(65535);a[3249]=String.fromCharCode(65535);a[3250]=String.fromCharCode(65535);a[3251]=String.fromCharCode(65535);a[3252]=String.fromCharCode(65535);a[3253]=String.fromCharCode(65535);
1335 a[3254]=String.fromCharCode(65535);a[3255]=String.fromCharCode(65535);a[3256]=String.fromCharCode(65535);a[3257]=String.fromCharCode(65535);a[3258]=String.fromCharCode(65535);a[3259]=String.fromCharCode(65535);a[3260]=String.fromCharCode(65535);a[3261]=String.fromCharCode(65535);a[3262]=String.fromCharCode(65535);a[3263]=String.fromCharCode(65535);a[3264]=String.fromCharCode(65535);a[3265]=String.fromCharCode(65535);a[3266]=String.fromCharCode(65535);a[3267]=String.fromCharCode(65535);a[3268]=String.fromCharCode(65535);
1336 a[3269]=String.fromCharCode(65535);a[3270]=String.fromCharCode(65535);a[3271]=String.fromCharCode(65535);a[3272]=String.fromCharCode(65535);a[3273]=String.fromCharCode(65535);a[3274]=String.fromCharCode(65535);a[3275]=String.fromCharCode(65535);a[3276]=String.fromCharCode(65535);a[3277]=String.fromCharCode(65535);a[3278]=String.fromCharCode(65535);a[3279]=String.fromCharCode(65535);a[3280]=String.fromCharCode(65535);a[3281]=String.fromCharCode(65535);a[3282]=String.fromCharCode(65535);a[3283]=String.fromCharCode(65535);
1337 a[3284]=String.fromCharCode(65535);a[3285]=String.fromCharCode(65535);a[3286]=String.fromCharCode(65535);a[3287]=String.fromCharCode(65535);a[3288]=String.fromCharCode(65535);a[3289]=String.fromCharCode(65535);a[3290]=String.fromCharCode(65535);a[3291]=String.fromCharCode(65535);a[3292]=String.fromCharCode(65535);a[3293]=String.fromCharCode(65535);a[3294]=String.fromCharCode(65535);a[3295]=String.fromCharCode(65535);a[3296]=String.fromCharCode(65535);a[3297]=String.fromCharCode(65535);a[3298]=String.fromCharCode(65535);
1338 a[3299]=String.fromCharCode(65535);a[3300]=String.fromCharCode(65535);a[3301]=String.fromCharCode(65535);a[3302]=String.fromCharCode(65535);a[3303]=String.fromCharCode(65535);a[3304]=String.fromCharCode(65535);a[3305]=String.fromCharCode(65535);a[3306]=String.fromCharCode(65535);a[3307]=String.fromCharCode(65535);a[3308]=String.fromCharCode(65535);a[3309]=String.fromCharCode(65535);a[3310]=String.fromCharCode(65535);a[3311]=String.fromCharCode(65535);a[3312]=String.fromCharCode(65535);a[3313]=String.fromCharCode(65535);
1339 a[3314]=String.fromCharCode(65535);a[3315]=String.fromCharCode(65535);a[3316]=String.fromCharCode(65535);a[3317]=String.fromCharCode(65535);a[3318]=String.fromCharCode(65535);a[3319]=String.fromCharCode(65535);a[3320]=String.fromCharCode(65535);a[3321]=String.fromCharCode(65535);a[3322]=String.fromCharCode(65535);a[3323]=String.fromCharCode(65535);a[3324]=String.fromCharCode(65535);a[3325]=String.fromCharCode(65535);a[3326]=String.fromCharCode(65535);a[3327]=String.fromCharCode(65535);a[3328]=String.fromCharCode(65535);
1340 a[3329]=String.fromCharCode(65535);a[3330]=String.fromCharCode(65535);a[3331]=String.fromCharCode(65535);a[3332]=String.fromCharCode(65535);a[3333]=String.fromCharCode(65535);a[3334]=String.fromCharCode(65535);a[3335]=String.fromCharCode(65535);a[3336]=String.fromCharCode(65535);a[3337]=String.fromCharCode(65535);a[3338]=String.fromCharCode(65535);a[3339]=String.fromCharCode(65535);a[3340]=String.fromCharCode(65535);a[3341]=String.fromCharCode(65535);a[3342]=String.fromCharCode(65535);a[3343]=String.fromCharCode(65535);
1341 a[3344]=String.fromCharCode(65535);a[3345]=String.fromCharCode(65535);a[3346]=String.fromCharCode(65535);a[3347]=String.fromCharCode(65535);a[3348]=String.fromCharCode(65535);a[3349]=String.fromCharCode(65535);a[3350]=String.fromCharCode(65535);a[3351]=String.fromCharCode(65535);a[3352]=String.fromCharCode(65535);a[3353]=String.fromCharCode(65535);a[3354]=String.fromCharCode(65535);a[3355]=String.fromCharCode(65535);a[3356]=String.fromCharCode(65535);a[3357]=String.fromCharCode(65535);a[3358]=String.fromCharCode(65535);
1342 a[3359]=String.fromCharCode(65535);a[3360]=String.fromCharCode(65535);a[3361]=String.fromCharCode(65535);a[3362]=String.fromCharCode(65535);a[3363]=String.fromCharCode(65535);a[3364]=String.fromCharCode(65535);a[3365]=String.fromCharCode(65535);a[3366]=String.fromCharCode(65535);a[3367]=String.fromCharCode(65535);a[3368]=String.fromCharCode(65535);a[3369]=String.fromCharCode(65535);a[3370]=String.fromCharCode(65535);a[3371]=String.fromCharCode(65535);a[3372]=String.fromCharCode(65535);a[3373]=String.fromCharCode(65535);
1343 a[3374]=String.fromCharCode(65535);a[3375]=String.fromCharCode(65535);a[3376]=String.fromCharCode(65535);a[3377]=String.fromCharCode(65535);a[3378]=String.fromCharCode(65535);a[3379]=String.fromCharCode(65535);a[3380]=String.fromCharCode(65535);a[3381]=String.fromCharCode(65535);a[3382]=String.fromCharCode(65535);a[3383]=String.fromCharCode(65535);a[3384]=String.fromCharCode(65535);a[3385]=String.fromCharCode(65535);a[3386]=String.fromCharCode(65535);a[3387]=String.fromCharCode(65535);a[3388]=String.fromCharCode(65535);
1344 a[3389]=String.fromCharCode(65535);a[3390]=String.fromCharCode(65535);a[3391]=String.fromCharCode(65535);a[3392]=String.fromCharCode(65535);a[3393]=String.fromCharCode(65535);a[3394]=String.fromCharCode(65535);a[3395]=String.fromCharCode(65535);a[3396]=String.fromCharCode(65535);a[3397]=String.fromCharCode(65535);a[3398]=String.fromCharCode(65535);a[3399]=String.fromCharCode(65535);a[3400]=String.fromCharCode(65535);a[3401]=String.fromCharCode(65535);a[3402]=String.fromCharCode(65535);a[3403]=String.fromCharCode(65535);
1345 a[3404]=String.fromCharCode(65535);a[3405]=String.fromCharCode(65535);a[3406]=String.fromCharCode(65535);a[3407]=String.fromCharCode(65535);a[3408]=String.fromCharCode(65535);a[3409]=String.fromCharCode(65535);a[3410]=String.fromCharCode(65535);a[3411]=String.fromCharCode(65535);a[3412]=String.fromCharCode(65535);a[3413]=String.fromCharCode(65535);a[3414]=String.fromCharCode(65535);a[3415]=String.fromCharCode(65535);a[3416]=String.fromCharCode(65535);a[3417]=String.fromCharCode(65535);a[3418]=String.fromCharCode(65535);
1346 a[3419]=String.fromCharCode(65535);a[3420]=String.fromCharCode(65535);a[3421]=String.fromCharCode(65535);a[3422]=String.fromCharCode(65535);a[3423]=String.fromCharCode(65535);a[3424]=String.fromCharCode(65535);a[3425]=String.fromCharCode(65535);a[3426]=String.fromCharCode(65535);a[3427]=String.fromCharCode(65535);a[3428]=String.fromCharCode(65535);a[3429]=String.fromCharCode(65535);a[3430]=String.fromCharCode(65535);a[3431]=String.fromCharCode(65535);a[3432]=String.fromCharCode(65535);a[3433]=String.fromCharCode(65535);
1347 a[3434]=String.fromCharCode(65535);a[3435]=String.fromCharCode(65535);a[3436]=String.fromCharCode(65535);a[3437]=String.fromCharCode(65535);a[3438]=String.fromCharCode(65535);a[3439]=String.fromCharCode(65535);a[3440]=String.fromCharCode(65535);a[3441]=String.fromCharCode(65535);a[3442]=String.fromCharCode(65535);a[3443]=String.fromCharCode(65535);a[3444]=String.fromCharCode(65535);a[3445]=String.fromCharCode(65535);a[3446]=String.fromCharCode(65535);a[3447]=String.fromCharCode(65535);a[3448]=String.fromCharCode(65535);
1348 a[3449]=String.fromCharCode(65535);a[3450]=String.fromCharCode(15);a[3984]=String.fromCharCode(65535);a[3985]=String.fromCharCode(65535);a[3986]=String.fromCharCode(65535);a[3987]=String.fromCharCode(65535);a[3988]=String.fromCharCode(65535);a[3989]=String.fromCharCode(65535);a[3990]=String.fromCharCode(65535);a[3991]=String.fromCharCode(65535);a[3992]=String.fromCharCode(65535);a[3993]=String.fromCharCode(65535);a[3994]=String.fromCharCode(65535);a[3995]=String.fromCharCode(65535);a[3996]=String.fromCharCode(65535);
1349 a[3997]=String.fromCharCode(65535);a[3998]=String.fromCharCode(65535);a[3999]=String.fromCharCode(65535);a[4E3]=String.fromCharCode(65535);a[4001]=String.fromCharCode(65535);a[4002]=String.fromCharCode(16383);a[4016]=String.fromCharCode(127);a[4017]=String.fromCharCode(33016);a[4018]=String.fromCharCode(65023);a[4019]=String.fromCharCode(24447);a[4020]=String.fromCharCode(65499);a[4021]=String.fromCharCode(65535);a[4022]=String.fromCharCode(65535);a[4023]=String.fromCharCode(65535);a[4024]=String.fromCharCode(65535);
1350 a[4025]=String.fromCharCode(65535);a[4026]=String.fromCharCode(65535);a[4027]=String.fromCharCode(3);a[4029]=String.fromCharCode(65528);a[4030]=String.fromCharCode(65535);a[4031]=String.fromCharCode(65535);a[4032]=String.fromCharCode(65535);a[4033]=String.fromCharCode(65535);a[4034]=String.fromCharCode(65535);a[4035]=String.fromCharCode(65535);a[4036]=String.fromCharCode(65535);a[4037]=String.fromCharCode(65535);a[4038]=String.fromCharCode(65535);a[4039]=String.fromCharCode(65535);a[4040]=String.fromCharCode(65535);
1351 a[4041]=String.fromCharCode(65535);a[4042]=String.fromCharCode(65535);a[4043]=String.fromCharCode(65535);a[4044]=String.fromCharCode(65535);a[4045]=String.fromCharCode(65535);a[4046]=String.fromCharCode(65535);a[4047]=String.fromCharCode(65535);a[4048]=String.fromCharCode(65535);a[4049]=String.fromCharCode(65535);a[4050]=String.fromCharCode(65535);a[4051]=String.fromCharCode(16383);a[4053]=String.fromCharCode(65535);a[4054]=String.fromCharCode(65535);a[4055]=String.fromCharCode(65535);a[4056]=String.fromCharCode(65535);
1352 a[4057]=String.fromCharCode(65532);a[4058]=String.fromCharCode(65535);a[4059]=String.fromCharCode(65535);a[4060]=String.fromCharCode(255);a[4063]=String.fromCharCode(4095);a[4071]=String.fromCharCode(65495);a[4072]=String.fromCharCode(65535);a[4073]=String.fromCharCode(65535);a[4074]=String.fromCharCode(65535);a[4075]=String.fromCharCode(65535);a[4076]=String.fromCharCode(65535);a[4077]=String.fromCharCode(65535);a[4078]=String.fromCharCode(65535);a[4079]=String.fromCharCode(8191);a[4082]=String.fromCharCode(65534);
1353 a[4083]=String.fromCharCode(2047);a[4084]=String.fromCharCode(65534);a[4085]=String.fromCharCode(2047);a[4086]=String.fromCharCode(65472);a[4087]=String.fromCharCode(65535);a[4088]=String.fromCharCode(65535);a[4089]=String.fromCharCode(65535);a[4090]=String.fromCharCode(65535);a[4091]=String.fromCharCode(32767);a[4092]=String.fromCharCode(64764);a[4093]=String.fromCharCode(7420);a[4100]=String.fromCharCode(65534);a[4101]=String.fromCharCode(2047);a[4102]=String.fromCharCode(65534);a[4103]=String.fromCharCode(2047);
1354 a[4106]=String.fromCharCode(1024);a[4107]=String.fromCharCode(1056);a[4108]=String.fromCharCode(65535);a[4109]=String.fromCharCode(65407);a[4110]=String.fromCharCode(65535);a[4111]=String.fromCharCode(65407);a[4112]=String.fromCharCode(65535);a[4113]=String.fromCharCode(65535);a[4114]=String.fromCharCode(65535);a[4115]=String.fromCharCode(65535);a[4116]=String.fromCharCode(65535);a[4117]=String.fromCharCode(65535);a[4118]=String.fromCharCode(65535);a[4119]=String.fromCharCode(65535);a[4120]=String.fromCharCode(65535);
1355 a[4121]=String.fromCharCode(65535);a[4122]=String.fromCharCode(65535);a[4123]=String.fromCharCode(65535);a[4124]=String.fromCharCode(65535);a[4125]=String.fromCharCode(65535);a[4126]=String.fromCharCode(65535);a[4127]=String.fromCharCode(64575);a[4128]=String.fromCharCode(65535);a[4129]=String.fromCharCode(255);a[4133]=String.fromCharCode(65535);a[4134]=String.fromCharCode(65535);a[4135]=String.fromCharCode(65535);a[4136]=String.fromCharCode(65535);a[4137]=String.fromCharCode(65535);a[4138]=String.fromCharCode(511);
1356 a[4139]=String.fromCharCode(63999);a[4140]=String.fromCharCode(3);a[4141]=String.fromCharCode(3);a[4142]=String.fromCharCode(31);a[4151]=String.fromCharCode(1024);a[4152]=String.fromCharCode(55104);a[4153]=String.fromCharCode(65535);a[4154]=String.fromCharCode(65531);a[4155]=String.fromCharCode(65535);a[4156]=String.fromCharCode(32767);a[4157]=String.fromCharCode(21631);a[4158]=String.fromCharCode(253)});c$.white_f=d(c$,"white_f",function(){var a=N(4159,"\x00");com.stevesoft.pat.Bits.white=new com.stevesoft.pat.Bits(a);
1357 a[0]=String.fromCharCode(15872);a[1]=String.fromCharCode(61440);a[2]=String.fromCharCode(1);a[512]=String.fromCharCode(4095);a[514]=String.fromCharCode(768);a[768]=String.fromCharCode(1);a[4096]=String.fromCharCode(15872);a[4097]=String.fromCharCode(61440);a[4098]=String.fromCharCode(1)});c$.punct_f=d(c$,"punct_f",function(){var a=N(4159,"\x00");com.stevesoft.pat.Bits.punct=new com.stevesoft.pat.Bits(a);a[2]=String.fromCharCode(63470);a[3]=String.fromCharCode(35840);a[4]=String.fromCharCode(1);a[5]=
1358 String.fromCharCode(47104);a[7]=String.fromCharCode(10240);a[10]=String.fromCharCode(10242);a[11]=String.fromCharCode(34944);a[55]=String.fromCharCode(16432);a[56]=String.fromCharCode(128);a[85]=String.fromCharCode(64512);a[88]=String.fromCharCode(512);a[91]=String.fromCharCode(16384);a[92]=String.fromCharCode(9);a[95]=String.fromCharCode(24);a[96]=String.fromCharCode(4096);a[97]=String.fromCharCode(34816);a[102]=String.fromCharCode(15360);a[109]=String.fromCharCode(16);a[150]="0";a[151]=String.fromCharCode(1);
1359 a[226]=String.fromCharCode(32768);a[229]=String.fromCharCode(3072);a[234]=String.fromCharCode(32768);a[240]=String.fromCharCode(65520);a[241]=String.fromCharCode(7);a[243]=String.fromCharCode(15360);a[248]=String.fromCharCode(32);a[271]=String.fromCharCode(2048);a[513]=String.fromCharCode(65535);a[514]=String.fromCharCode(255);a[515]=String.fromCharCode(65535);a[516]="o";a[519]=String.fromCharCode(24576);a[520]=String.fromCharCode(24576);a[562]=String.fromCharCode(1536);a[768]=String.fromCharCode(65358);
1360 a[769]=String.fromCharCode(65523);a[771]=String.fromCharCode(1);a[783]=String.fromCharCode(2048);a[4051]=String.fromCharCode(49152);a[4067]=String.fromCharCode(65535);a[4068]=String.fromCharCode(65055);a[4069]=String.fromCharCode(65527);a[4070]=String.fromCharCode(3339);a[4080]=String.fromCharCode(63470);a[4081]=String.fromCharCode(35840);a[4082]=String.fromCharCode(1);a[4083]=String.fromCharCode(47104);a[4085]=String.fromCharCode(10240);a[4086]=String.fromCharCode(62);a[4098]=String.fromCharCode(63470);
1361 a[4099]=String.fromCharCode(35840);a[4100]=String.fromCharCode(1);a[4101]=String.fromCharCode(47104);a[4103]=String.fromCharCode(10240);a[4106]=String.fromCharCode(10242);a[4107]=String.fromCharCode(34944);a[4151]=String.fromCharCode(16432);a[4152]=String.fromCharCode(128)});G(c$,"upper",null,"lower",null,"title",null,"currency",null,"decimal_digit",null,"math",null,"letter",null,"white",null,"punct",null);p("com.stevesoft.pat");q(["com.stevesoft.pat.Pattern","$.RegSyntax"],["com.stevesoft.pat.BadRangeArgs",
1362 "$.Range"],["com.stevesoft.pat.RegSyntaxError","$.oneChar","$.patInt"],function(){c$=B(com.stevesoft.pat,"BadRangeArgs",com.stevesoft.pat.RegSyntax);c$=s(function(){this.althi=this.altlo=this.hi=this.lo="\x00";this.printBrackets=!1;r(this,arguments)},com.stevesoft.pat,"Range",com.stevesoft.pat.Pattern);e(c$,"toString",function(){var a=com.stevesoft.pat.Pattern.protect(""+this.lo,'[]{}(),$,-"^.',"\\")+"-"+com.stevesoft.pat.Pattern.protect(""+this.hi,'[]{}(),$,-"^.',"\\");return!this.printBrackets?
1363 a:"["+a+"]"});m(c$,function(a,b){t(this,com.stevesoft.pat.Range,[]);this.lo=a;this.hi=b;var c=null;this.lo>=this.hi&&com.stevesoft.pat.RegSyntaxError.endItAll("Badly formed []'s : "+this.lo+" >= "+this.hi);c=new com.stevesoft.pat.oneChar(this.lo);this.altlo=c.altc;c=new com.stevesoft.pat.oneChar(this.hi);this.althi=c.altc},"~S,~S");e(c$,"matchInternal",function(a,b){if(a>=b.src.length()||this.Masked(a,b))return-1;var c=b.src.charAt(a);return this.lo<=c&&c<=this.hi||b.ignoreCase&&this.altlo<=c&&c<=
1364 this.althi?this.nextMatch(a+1,b):-1},"~N,com.stevesoft.pat.Pthings");e(c$,"minChars",function(){return new com.stevesoft.pat.patInt(1)});e(c$,"maxChars",function(){return new com.stevesoft.pat.patInt(1)});e(c$,"clone1",function(){try{var a=new com.stevesoft.pat.Range(this.lo,this.hi);a.printBrackets=this.printBrackets;return a}catch(b){if(y(b,com.stevesoft.pat.RegSyntax))return null;throw b;}},"java.util.Hashtable")});p("com.stevesoft.pat");q(["com.stevesoft.pat.Pattern"],"com.stevesoft.pat.oneChar",
1365 ["com.stevesoft.pat.CaseMgr","$.patInt"],function(){c$=s(function(){this.altc2=this.altc=this.c="\x00";this.mask=0;r(this,arguments)},com.stevesoft.pat,"oneChar",com.stevesoft.pat.Pattern);m(c$,function(a){t(this,com.stevesoft.pat.oneChar,[]);this.c=a;var b,c;a=com.stevesoft.pat.CaseMgr.toUpperCaseC(this.c);b=com.stevesoft.pat.CaseMgr.toLowerCaseC(this.c);c=com.stevesoft.pat.CaseMgr.toTitleCaseC(this.c);this.c==a?(this.altc=b,this.altc2=c):this.c==b?(this.altc=a,this.altc2=c):(this.altc=b,this.altc2=
1366 a);this.mask=this.c.charCodeAt(0)&this.altc.charCodeAt(0)&this.altc2.charCodeAt(0)},"~S");e(c$,"matchInternal",function(a,b){var c,f=-1;if(a<b.src.length()&&!this.Masked(a,b)&&((c=b.src.charAt(a))==this.c||b.ignoreCase&&(c==this.altc||c==this.altc2)))f=this.nextMatch(a+1,b);return f},"~N,com.stevesoft.pat.Pthings");e(c$,"toString",function(){return com.stevesoft.pat.Pattern.protect(""+this.c,'[]{}(),$,-"^.',"\\")+this.nextString()});e(c$,"minChars",function(){return new com.stevesoft.pat.patInt(1)});
1367 e(c$,"maxChars",function(){return new com.stevesoft.pat.patInt(1)});e(c$,"clone1",function(){return new com.stevesoft.pat.oneChar(this.c)},"java.util.Hashtable")});p("com.stevesoft.pat");q(["com.stevesoft.pat.Pattern","$.oneChar","java.util.Hashtable","$.Vector"],["com.stevesoft.pat.Branch","$.RegOpt","$.FastChar"],"com.stevesoft.pat.Any $.Bracket $.Custom $.FastBracket $.FastMulti $.Multi $.NullPattern $.Or $.Range $.UniValidator $.patInt java.lang.Character $.StringBuffer".split(" "),function(){c$=
1368 B(com.stevesoft.pat,"FastChar",com.stevesoft.pat.oneChar);e(c$,"matchInternal",function(a,b){return a<b.src.length()&&b.src.charAt(a)==this.c?this.nextMatch(a+1,b):-1},"~N,com.stevesoft.pat.Pthings");e(c$,"clone1",function(){return new com.stevesoft.pat.FastChar(this.c)},"java.util.Hashtable");c$=s(function(){this.keys=this.h=null;r(this,arguments)},com.stevesoft.pat,"Branch",com.stevesoft.pat.Pattern);J(c$,function(){this.h=new java.util.Hashtable;this.keys=new java.util.Vector});m(c$,function(){t(this,
1369 com.stevesoft.pat.Branch,[])});e(c$,"clone1",function(a){var b=new com.stevesoft.pat.Branch;b.keys=this.keys.clone();a.put(this,b);a.put(b,b);for(var c=0;c<this.keys.size();c++){var f=this.h.get(this.keys.elementAt(c));b.h.put(this.keys.elementAt(c),f.clone(a))}return b},"java.util.Hashtable");d(c$,"reduce",function(a,b){if(1==this.h.size()){var c=this.h.keys().nextElement(),f;f=a||b?new com.stevesoft.pat.oneChar(c.charValue()):new com.stevesoft.pat.FastChar(c.charValue());f.next=this.h.get(c);f.add(this.next);
1370 return f}return 0==this.h.size()?null:this},"~B,~B");d(c$,"maxChars",function(){for(var a=this.h.keys(),b=new com.stevesoft.pat.patInt(0);a.hasMoreElements();){var c=a.nextElement(),c=this.h.get(c).maxChars();c.inc();b.maxeq(c)}return b});d(c$,"minChars",function(){for(var a=this.h.keys(),b=new com.stevesoft.pat.patInt(0);a.hasMoreElements();){var c=a.nextElement(),c=this.h.get(c).minChars();c.inc();b.mineq(c)}return b});d(c$,"addc",function(a,b,c){var f=a.next,f=null==f?new com.stevesoft.pat.NullPattern:
1371 com.stevesoft.pat.RegOpt.opt(f,b,c);f.setParent(this);this.set(new Character(a.c),f,b,c);b&&(a.c!=a.altc&&this.set(new Character(a.altc),f,b,c),a.c!=a.altc2&&a.altc!=a.altc2&&this.set(new Character(a.altc2),f,b,c))},"com.stevesoft.pat.oneChar,~B,~B");d(c$,"set",function(a,b,c,f){var d=this.h.get(a);this.next=null;if(null==d)v(b,com.stevesoft.pat.Or)?(c=new com.stevesoft.pat.NullPattern,c.add(b),this.h.put(a,c)):this.h.put(a,b),this.keys.addElement(a);else if(v(d,com.stevesoft.pat.Or))d.addOr(b);else if(v(d,
1372 com.stevesoft.pat.oneChar)&&v(b,com.stevesoft.pat.oneChar)&&d.c!=b.c){var k=new com.stevesoft.pat.Branch;k.addc(d,c,f);k.addc(b,c,f);this.h.put(a,k);k.setParent(this)}else v(d,com.stevesoft.pat.Branch)&&v(b,com.stevesoft.pat.oneChar)?(d.addc(b,c,f),b.setParent(d)):(k=new com.stevesoft.pat.Or,k.setParent(this),v(d,com.stevesoft.pat.NullPattern)&&null==d.parent&&null!=d.next?k.addOr(d.next):k.addOr(d),k.addOr(b),b=com.stevesoft.pat.RegOpt.opt(k,c,f),this.h.put(a,b),b.setParent(this))},"Character,com.stevesoft.pat.Pattern,~B,~B");
1373 e(c$,"toString",function(){var a=new StringBuffer;a.append("(?:(?#branch)");for(var b=0;b<this.keys.size();b++){var c=this.keys.elementAt(b);a.append(c);a.append(this.h.get(c));b+1<this.keys.size()&&a.append("|")}a.append(")");a.append(this.nextString());return a.toString()});d(c$,"matchInternal",function(a,b){if(a>=b.src.length())return-1;var c=this.h.get(new Character(b.src.charAt(a)));return null==c||null!=b.cbits&&b.cbits.get(a)?-1:c.matchInternal(a+1,b)},"~N,com.stevesoft.pat.Pthings");c$=B(com.stevesoft.pat,
1374 "RegOpt");c$.opt=d(c$,"opt",function(a,b,c){if(null==a)return a;if(v(a,com.stevesoft.pat.Bracket)){var f=a;a=com.stevesoft.pat.FastBracket.process(f,b);a.next=f.next;a.parent=f.parent}else if(v(a,com.stevesoft.pat.oneChar)&&!b&&!c){var d=a;a=new com.stevesoft.pat.FastChar(d.c);a.next=d.next;a.parent=d.parent}else if(v(a,com.stevesoft.pat.Or)&&a.leftForm().equals("(?:")&&1==a.v.size())d=a,a=d.v.elementAt(0),a.setParent(null),a=com.stevesoft.pat.RegOpt.opt(a,b,c),a.add(d.next);else if(v(a,com.stevesoft.pat.Or)){d=
1375 a;d.pv=null;var k=d.v;d.v=new java.util.Vector;f=new com.stevesoft.pat.Branch;f.parent=d.parent;for(var g=0;g<k.size();g++){var e=k.elementAt(g);if(v(e,com.stevesoft.pat.oneChar)&&(1<=f.h.size()||g+1<k.size()&&v(k.elementAt(g+1),com.stevesoft.pat.oneChar)))f.addc(e,b,c);else{if(0<f.keys.size()){var j=f.reduce(b,c);null!=j&&(d.addOr(j),f=new com.stevesoft.pat.Branch,f.parent=d.parent)}d.addOr(com.stevesoft.pat.RegOpt.opt(e,b,c))}}0<f.keys.size()&&(j=f.reduce(b,c),null!=j&&d.addOr(j));1==d.v.size()&&
1376 d.leftForm().equals("(?:")&&(a=d.v.elementAt(0),a.setParent(null),a=com.stevesoft.pat.RegOpt.opt(a,b,c),a.add(d.next))}else if(v(a,com.stevesoft.pat.FastMulti))f=a,f.sub=com.stevesoft.pat.RegOpt.opt(f.sub,b,c);else if(v(a,com.stevesoft.pat.Multi)&&com.stevesoft.pat.RegOpt.safe4fm(a.sub)){f=null;try{f=new com.stevesoft.pat.FastMulti(a.a,a.b,com.stevesoft.pat.RegOpt.opt(a.sub,b,c))}catch(n){if(!y(n,com.stevesoft.pat.RegSyntax))throw n;}f.parent=a.parent;f.matchFewest=a.matchFewest;f.next=a.next;a=f}null!=
1377 a.next&&(a.next=com.stevesoft.pat.RegOpt.opt(a.next,b,c));return a},"com.stevesoft.pat.Pattern,~B,~B");c$.safe4fm=d(c$,"safe4fm",function(a){for(;null!=a;){if(!v(a,com.stevesoft.pat.Bracket)&&!v(a,com.stevesoft.pat.Range)&&!v(a,com.stevesoft.pat.oneChar)&&!v(a,com.stevesoft.pat.Any)&&(!v(a,com.stevesoft.pat.Custom)||!v(a.v,com.stevesoft.pat.UniValidator)))if(v(a,com.stevesoft.pat.Or)){var b=a;if(!b.leftForm().equals("(?:"))return!1;var c=b.countMinChars(),f=b.countMaxChars();if(!c.equals(f))return!1;
1378 for(c=0;c<b.v.size();c++)if(!com.stevesoft.pat.RegOpt.safe4fm(b.v.elementAt(c)))return!1}else return!1;a=a.next}return!0},"com.stevesoft.pat.Pattern")});p("com.stevesoft.pat");q(["com.stevesoft.pat.Bracket"],"com.stevesoft.pat.FastBracket",["com.stevesoft.pat.Range","$.oneChar","java.util.BitSet","$.Vector"],function(){c$=s(function(){this.$max=this.$min=0;this.bs=null;r(this,arguments)},com.stevesoft.pat,"FastBracket",com.stevesoft.pat.Bracket);c$.process=d(c$,"process",function(a,b){var c=a.v;a.pv=
1379 null;try{var f=c;if(b)for(var f=new java.util.Vector,d=0;d<c.size();d++){var k=c.elementAt(d);f.addElement(k);if(v(k,com.stevesoft.pat.oneChar))f.addElement(new com.stevesoft.pat.oneChar(k.altc));else if(v(k,com.stevesoft.pat.Range)){var g=k;f.addElement(new com.stevesoft.pat.Range(g.altlo,g.althi))}}c=f;for(d=0;d<c.size()-1;d++)for(g=0;g<c.size()-1;g++){var e=com.stevesoft.pat.FastBracket.getl(c.elementAt(g));if(com.stevesoft.pat.FastBracket.getl(c.elementAt(g+1))<e){var j=c.elementAt(g);c.setElementAt(c.elementAt(g+
1380 1),g);c.setElementAt(j,g+1)}}f=new java.util.Vector;k=c.elementAt(0);f.addElement(k);for(d=1;d<c.size();d++)if(com.stevesoft.pat.FastBracket.geth(k).charCodeAt(0)+1>=com.stevesoft.pat.FastBracket.getl(c.elementAt(d)).charCodeAt(0)){var n=c.elementAt(d),x=com.stevesoft.pat.FastBracket.min(com.stevesoft.pat.FastBracket.getl(k),com.stevesoft.pat.FastBracket.getl(n)),u=com.stevesoft.pat.FastBracket.max(com.stevesoft.pat.FastBracket.geth(k),com.stevesoft.pat.FastBracket.geth(n));f.setElementAt(k=com.stevesoft.pat.FastBracket.mkelem(x,
1381 u),f.size()-1)}else k=c.elementAt(d),f.addElement(k);a.v=c=f}catch(D){if(y(D,com.stevesoft.pat.RegSyntax))D.printStackTrace();else throw D;}f=com.stevesoft.pat.FastBracket.neg(c);if(1==c.size())return a;if(1==f.size())return a.v=f,a.neg=!a.neg,a;c=com.stevesoft.pat.FastBracket.newbrack(c,a.neg);null==c&&(c=com.stevesoft.pat.FastBracket.newbrack(f,!a.neg));return null!=c?(c.parent=a.parent,c.next=a.next,c):a},"com.stevesoft.pat.Bracket,~B");c$.newbrack=d(c$,"newbrack",function(a,b){var c=new com.stevesoft.pat.FastBracket(b);
1382 c.v=a;if(0==a.size())return null;c.$min=com.stevesoft.pat.FastBracket.getl(a.elementAt(0)).charCodeAt(0);c.$max=com.stevesoft.pat.FastBracket.geth(a.elementAt(a.size()-1)).charCodeAt(0);if(256>=c.$max-c.$min){c.bs=new java.util.BitSet(c.$max-c.$min+1);for(var f=0;f<a.size();f++)for(var d=a.elementAt(f),k=com.stevesoft.pat.FastBracket.getl(d).charCodeAt(0)-c.$min,d=com.stevesoft.pat.FastBracket.geth(d).charCodeAt(0)-c.$min;k<=d;k++)c.bs.set(k);return c}return null},"java.util.Vector,~B");c$.neg=d(c$,
1383 "neg",function(a){try{var b=new java.util.Vector;if(0==a.size())return b.addElement(new com.stevesoft.pat.Range(String.fromCharCode(0),String.fromCharCode(65535))),b;var c=com.stevesoft.pat.FastBracket.getl(a.elementAt(0)).charCodeAt(0);0!=c&&b.addElement(com.stevesoft.pat.FastBracket.mkelem(String.fromCharCode(0),String.fromCharCode(c-1)));for(c=0;c<a.size()-1;c++){var f=com.stevesoft.pat.FastBracket.getl(a.elementAt(c+1)).charCodeAt(0)-1,d=com.stevesoft.pat.FastBracket.geth(a.elementAt(c)).charCodeAt(0)+
1384 1;b.addElement(com.stevesoft.pat.FastBracket.mkelem(String.fromCharCode(d),String.fromCharCode(f)))}var k=com.stevesoft.pat.FastBracket.geth(a.lastElement()).charCodeAt(0);65535!=k&&b.addElement(com.stevesoft.pat.FastBracket.mkelem(String.fromCharCode(k+1),String.fromCharCode(65535)));return b}catch(g){if(y(g,com.stevesoft.pat.RegSyntax))return null;throw g;}},"java.util.Vector");c$.mkelem=d(c$,"mkelem",function(a,b){return a==b?new com.stevesoft.pat.oneChar(a):new com.stevesoft.pat.Range(a,b)},"~S,~S");
1385 c$.min=d(c$,"min",function(a,b){return a<b?a:b},"~S,~S");c$.max=d(c$,"max",function(a,b){return a>b?a:b},"~S,~S");c$.getl=d(c$,"getl",function(a){return v(a,com.stevesoft.pat.Range)?a.lo:a.c},"~O");c$.geth=d(c$,"geth",function(a){return v(a,com.stevesoft.pat.Range)?a.hi:a.c},"~O");e(c$,"matchInternal",function(a,b){if(a>=b.src.length()||this.Masked(a,b))return-1;var c=b.src.charAt(a);return(new Boolean(this.neg^(c.charCodeAt(0)>=this.$min&&c.charCodeAt(0)<=this.$max&&this.bs.get(c.charCodeAt(0)-this.$min)))).valueOf()?
1386 this.nextMatch(a+1,b):-1},"~N,com.stevesoft.pat.Pthings")});q(null,"java.util.BitSet",["java.lang.IndexOutOfBoundsException","$.NegativeArraySizeException","$.StringBuffer","java.util.Arrays"],function(){c$=s(function(){this.bits=null;r(this,arguments)},java.util,"BitSet",null,[Cloneable,java.io.Serializable]);m(c$,function(){this.construct(32)});m(c$,function(a){if(0>a)throw new NegativeArraySizeException;var b=a>>>5;0!=(a&4)&&++b;this.bits=E(b,0)},"~N");d(c$,"and",function(a){var b=Math.min(this.bits.length,
1387 a.bits.length),c;for(c=0;c<b;++c)this.bits[c]&=a.bits[c];for(;c<this.bits.length;)this.bits[c++]=0},"java.util.BitSet");d(c$,"andNot",function(a){for(var b=Math.min(this.bits.length,a.bits.length);0<=--b;)this.bits[b]&=~a.bits[b]},"java.util.BitSet");d(c$,"cardinality",function(){for(var a=0,b=this.bits.length-1;0<=b;b--){var c=this.bits[b];0!=c&&(-1==c?a+=32:(c=(c>>1&1431655765)+(c&1431655765),c=(c>>2&858993459)+(c&858993459),c=(c>>4&252645135)+(c&252645135),c=(c>>8&16711935)+(c&16711935),a+=(c>>
1388 16&65535)+(c&65535)))}return a});d(c$,"clear",function(){java.util.Arrays.fill(this.bits,0)});d(c$,"clear",function(a){var b=a>>5;this.ensure(b);this.bits[b]&=~(1<<a)},"~N");d(c$,"clear",function(a,b){if(0>a||a>b)throw new IndexOutOfBoundsException;if(a!=b){var c=a>>>5,f=b>>>5;this.ensure(f);if(c==f)this.bits[f]&=(1<<a)-1|-1<<b;else{this.bits[c]&=(1<<a)-1;this.bits[f]&=-1<<b;for(c+=1;c<f;c++)this.bits[c]=0}}},"~N,~N");d(c$,"clone",function(){try{var a=K(this,java.util.BitSet,"clone",[]);a.bits=this.bits.clone();
1389 return a}catch(b){if(y(b,CloneNotSupportedException))return null;throw b;}});e(c$,"equals",function(a){if(!v(a,java.util.BitSet))return!1;var b=Math.min(this.bits.length,a.bits.length),c;for(c=0;c<b;++c)if(this.bits[c]!=a.bits[c])return!1;for(b=c;b<this.bits.length;++b)if(0!=this.bits[b])return!1;for(b=c;b<a.bits.length;++b)if(0!=a.bits[b])return!1;return!0},"~O");d(c$,"flip",function(a){var b=a>>5;this.ensure(b);this.bits[b]^=1<<a},"~N");d(c$,"flip",function(a,b){if(0>a||a>b)throw new IndexOutOfBoundsException;
1390 if(a!=b){var c=a>>>5,f=b>>>5;this.ensure(f);if(c==f)this.bits[f]^=-1<<a&(1<<b)-1;else{this.bits[c]^=-1<<a;this.bits[f]^=(1<<b)-1;for(c+=1;c<f;c++)this.bits[c]^=-1}}},"~N,~N");d(c$,"get",function(a){var b=a>>5;return b>=this.bits.length?!1:0!=(this.bits[b]&1<<a)},"~N");d(c$,"get",function(a,b){if(0>a||a>b)throw new IndexOutOfBoundsException;var c=new java.util.BitSet(b-a),f=a>>>5;if(f>=this.bits.length)return c;var d=a&4,k=b>>>5;if(0==d){var g=Math.min(k-f+1,this.bits.length-f);System.arraycopy(this.bits,
1391 f,c.bits,0,g);k<this.bits.length&&(c.bits[k-f]&=(1<<b)-1);return c}var g=Math.min(k,this.bits.length-1),e=~d,j;for(j=0;f<g;f++,j++)c.bits[j]=this.bits[f]>>>d|this.bits[f+1]<<e;(b&4)>d&&(c.bits[j++]=this.bits[f]>>>d);k<this.bits.length&&(c.bits[j-1]&=(1<<b-a)-1);return c},"~N,~N");e(c$,"hashCode",function(){for(var a=1234,b=this.bits.length;0<b;)a^=b*this.bits[--b];return a});d(c$,"intersects",function(a){for(var b=Math.min(this.bits.length,a.bits.length);0<=--b;)if(0!=(this.bits[b]&a.bits[b]))return!0;
1392 return!1},"java.util.BitSet");d(c$,"isEmpty",function(){for(var a=this.bits.length-1;0<=a;a--)if(0!=this.bits[a])return!1;return!0});d(c$,"length",function(){var a;for(a=this.bits.length-1;0<=a&&0==this.bits[a];--a);if(0>a)return 0;var b=this.bits[a];for(a=32*(a+1);0==(b&2147483648);)--a,b<<=1;return a});d(c$,"nextClearBit",function(a){for(var b=a>>5,c=1<<a;b<this.bits.length;){var f=this.bits[b];do{if(0==(f&c))return a;c<<=1;a++}while(0!=c);c=1;b++}return a},"~N");d(c$,"nextSetBit",function(a){for(var b=
1393 a>>5,c=1<<a;b<this.bits.length;){var f=this.bits[b];do{if(0!=(f&c))return a;c<<=1;a++}while(0!=c);c=1;b++}return-1},"~N");d(c$,"or",function(a){this.ensure(a.bits.length-1);for(var b=a.bits.length-1;0<=b;b--)this.bits[b]|=a.bits[b]},"java.util.BitSet");d(c$,"set",function(a){var b=a>>5;this.ensure(b);this.bits[b]|=1<<a},"~N");d(c$,"set",function(a,b){b?this.set(a):this.clear(a)},"~N,~B");d(c$,"set",function(a,b){if(0>a||a>b)throw new IndexOutOfBoundsException;if(a!=b){var c=a>>>5,f=b>>>5;this.ensure(f);
1394 if(c==f)this.bits[f]|=-1<<a&(1<<b)-1;else{this.bits[c]|=-1<<a;this.bits[f]|=(1<<b)-1;for(c+=1;c<f;c++)this.bits[c]=-1}}},"~N,~N");d(c$,"set",function(a,b,c){c?this.set(a,b):this.clear(a,b)},"~N,~N,~B");d(c$,"size",function(){return 32*this.bits.length});e(c$,"toString",function(){for(var a=new StringBuffer("{"),b=!0,c=0;c<this.bits.length;++c){var f=1,d=this.bits[c];if(0!=d)for(var k=0;32>k;++k)0!=(d&f)&&(b||a.append(", "),a.append(32*c+k),b=!1),f<<=1}return a.append("}").toString()});d(c$,"xor",
1395 function(a){this.ensure(a.bits.length-1);for(var b=a.bits.length-1;0<=b;b--)this.bits[b]^=a.bits[b]},"java.util.BitSet");d(c$,"ensure",function(a){a>=this.bits.length&&(a=E(a+1,0),System.arraycopy(this.bits,0,a,0,this.bits.length),this.bits=a)},"~N");G(c$,"INT_MASK",4)});p("com.stevesoft.pat");q(["java.util.Hashtable"],"com.stevesoft.pat.ReplaceRule",["com.stevesoft.pat.Ctrl","$.Regex","$.Transformer","java.lang.StringBuffer"],function(){c$=s(function(){this.name=this.next=null;r(this,arguments)},
1396 com.stevesoft.pat,"ReplaceRule");J(c$,function(){this.name=this.getClass().getName()});d(c$,"clone1",function(){return new com.stevesoft.pat.RuleHolder(this)});e(c$,"clone",function(){for(var a=this.clone1(),b=a,c=this;null!=c.next;)a.next=c.next.clone1(),a.name=c.name,a=a.next,c=c.next;return b});c$.add=d(c$,"add",function(a,b){if(null==a)return b;a.addRule(b);return a},"com.stevesoft.pat.ReplaceRule,com.stevesoft.pat.ReplaceRule");d(c$,"add",function(a){return com.stevesoft.pat.ReplaceRule.add(this,
1397 a)},"com.stevesoft.pat.ReplaceRule");d(c$,"addRule",function(a){null==this.next?this.next=a:this.next.addRule(a)},"com.stevesoft.pat.ReplaceRule");c$.getv=d(c$,"getv",function(){if(null!=com.stevesoft.pat.ReplaceRule.getvar)return com.stevesoft.pat.ReplaceRule.getvar.clone();com.stevesoft.pat.ReplaceRule.getvar=new com.stevesoft.pat.Regex("(?:\\\\(\\d+)|\\$(?:(\\d+)|(\\w+)|([&'`])|\\{(?:(\\d+)|([^\n}\\\\]+))})|\\\\([nrbtaef])|\\\\c([\x00-\uffff])|\\\\x([A-Fa-f0-9]{2})|\\\\([\x00-\uffff]))","");com.stevesoft.pat.ReplaceRule.getvar.optimize();
1398 return com.stevesoft.pat.ReplaceRule.getvar});c$.perlCode=d(c$,"perlCode",function(a){for(var b=0,c=0,f=com.stevesoft.pat.ReplaceRule.getv(),d=null,k=null;f.searchFrom(a,c);){var g=com.stevesoft.pat.Regex.BackRefOffset-1,b=f.matchedFrom();b>c&&(d=com.stevesoft.pat.ReplaceRule.add(d,new com.stevesoft.pat.StringRule(a.substring(c,b))));b=null;if(null!=(b=f.stringMatchedI(1+g))||null!=(b=f.stringMatchedI(2+g))||null!=(b=f.stringMatchedI(5+g))){for(c=g=0;c<b.length;c++)g=8*g+(b.charCodeAt(c)-48);d=1==
1399 b.length?com.stevesoft.pat.ReplaceRule.add(d,new com.stevesoft.pat.BackRefRule(g)):new com.stevesoft.pat.StringRule(""+String.fromCharCode(g))}else if(null!=(b=f.stringMatchedI(10+g)))d=0<="QELlUu".indexOf(b)?com.stevesoft.pat.ReplaceRule.add(d,new com.stevesoft.pat.CodeRule(b.charAt(0))):com.stevesoft.pat.ReplaceRule.add(d,new com.stevesoft.pat.StringRule(b));else if(null!=(b=f.stringMatchedI(3+g))||null!=(b=f.stringMatchedI(4+g))||null!=(b=f.stringMatchedI(6+g))){g="";if(0<(c=b.indexOf(":")))g=
1400 b.substring(c+1),b=b.substring(0,c);b.equals("&")||b.equals("MATCH")?d=com.stevesoft.pat.ReplaceRule.add(d,new com.stevesoft.pat.AmpersandRule):b.equals("`")||b.equals("PREMATCH")?d=com.stevesoft.pat.ReplaceRule.add(d,new com.stevesoft.pat.LeftRule):b.equals("'")||b.equals("POSTMATCH")?d=com.stevesoft.pat.ReplaceRule.add(d,new com.stevesoft.pat.RightRule):b.equals("WANT_MORE_TEXT")?d=com.stevesoft.pat.ReplaceRule.add(d,new com.stevesoft.pat.WantMoreTextReplaceRule):b.equals("POP")?d=com.stevesoft.pat.ReplaceRule.add(d,
1401 new com.stevesoft.pat.PopRule):b.startsWith("+")&&null!=(k=com.stevesoft.pat.ReplaceRule.defs.get(b.substring(1)))?d=v(k,com.stevesoft.pat.Regex)?com.stevesoft.pat.ReplaceRule.add(d,new com.stevesoft.pat.PushRule(b.substring(1),k)):v(k,com.stevesoft.pat.Transformer)?com.stevesoft.pat.ReplaceRule.add(d,new com.stevesoft.pat.PushRule(b.substring(1),k)):com.stevesoft.pat.ReplaceRule.add(d,new com.stevesoft.pat.StringRule("${"+b+"}")):b.startsWith("=")&&null!=(k=com.stevesoft.pat.ReplaceRule.defs.get(b.substring(1)))?
1402 d=v(k,com.stevesoft.pat.Regex)?com.stevesoft.pat.ReplaceRule.add(d,new com.stevesoft.pat.ChangeRule(b.substring(1),k)):v(k,com.stevesoft.pat.Transformer)?com.stevesoft.pat.ReplaceRule.add(d,new com.stevesoft.pat.ChangeRule(b.substring(1),k)):com.stevesoft.pat.ReplaceRule.add(d,new com.stevesoft.pat.StringRule("${"+b+"}")):null!=(k=com.stevesoft.pat.ReplaceRule.defs.get(b))?v(k,com.stevesoft.pat.ReplaceRule)&&(b=k.arg(g),null==b&&(b=k),d=com.stevesoft.pat.ReplaceRule.add(d,b.clone())):d=com.stevesoft.pat.ReplaceRule.add(d,
1403 new com.stevesoft.pat.StringRule("${"+b+"}"))}else if(null!=(b=f.stringMatchedI(7+g)))b=b.charAt(0),"n"==b?d=com.stevesoft.pat.ReplaceRule.add(d,new com.stevesoft.pat.StringRule("\n")):"t"==b?d=com.stevesoft.pat.ReplaceRule.add(d,new com.stevesoft.pat.StringRule("\t")):"r"==b?d=com.stevesoft.pat.ReplaceRule.add(d,new com.stevesoft.pat.StringRule("\r")):"b"==b?d=com.stevesoft.pat.ReplaceRule.add(d,new com.stevesoft.pat.StringRule("\r")):"a"==b?d=com.stevesoft.pat.ReplaceRule.add(d,new com.stevesoft.pat.StringRule("\u0007")):
1404 "e"==b?d=com.stevesoft.pat.ReplaceRule.add(d,new com.stevesoft.pat.StringRule("\u001b")):"f"==b&&(d=com.stevesoft.pat.ReplaceRule.add(d,new com.stevesoft.pat.StringRule("\f")));else if(null!=(b=f.stringMatchedI(8+g)))b=b.charAt(0),b.charCodeAt(0)<com.stevesoft.pat.Ctrl.cmap.length&&(b=com.stevesoft.pat.Ctrl.cmap[b.charCodeAt(0)]),d=com.stevesoft.pat.ReplaceRule.add(d,new com.stevesoft.pat.StringRule(""+b));else if(null!=(b=f.stringMatchedI(9+g)))g=16*com.stevesoft.pat.ReplaceRule.getHexDigit(b.charAt(0))+
1405 com.stevesoft.pat.ReplaceRule.getHexDigit(b.charAt(1)),d=com.stevesoft.pat.ReplaceRule.add(d,new com.stevesoft.pat.StringRule(""+String.fromCharCode(g)));c=f.matchedTo()}c<=a.length&&(d=com.stevesoft.pat.ReplaceRule.add(d,new com.stevesoft.pat.StringRule(a.substring(c))));return d},"~S");c$.isDefined=d(c$,"isDefined",function(a){return null!=com.stevesoft.pat.ReplaceRule.defs.get(a)},"~S");c$.define=d(c$,"define",function(a,b){com.stevesoft.pat.ReplaceRule.defs.put(a,b)},"~S,com.stevesoft.pat.Regex");
1406 c$.define=d(c$,"define",function(a,b){com.stevesoft.pat.ReplaceRule.defs.put(a,b);b.name=a},"~S,com.stevesoft.pat.ReplaceRule");c$.define=d(c$,"define",function(a,b){com.stevesoft.pat.ReplaceRule.defs.put(a,b)},"~S,com.stevesoft.pat.Transformer");c$.undefine=d(c$,"undefine",function(a){com.stevesoft.pat.ReplaceRule.defs.remove(a)},"~S");d(c$,"toString1",function(){return"${"+this.name+"}"});e(c$,"toString",function(){var a=new StringBuffer;a.append(this.toString1());for(var b=this.next;null!=b;)a.append(b.toString1()),
1407 b=b.next;return a.toString()});d(c$,"arg",function(){return null},"~S");c$.getHexDigit=d(c$,"getHexDigit",function(a){return"0"<=a&&"9">=a?a.charCodeAt(0)-48:"a"<=a&&"f">=a?a.charCodeAt(0)-97+10:a.charCodeAt(0)-65+10},"~S");G(c$,"getvar",null);c$.defs=c$.prototype.defs=new java.util.Hashtable});p("com.stevesoft.pat");q(["com.stevesoft.pat.ReplaceRule","$.Replacer"],["com.stevesoft.pat.Transformer","$.TransRepRule"],"com.stevesoft.pat.MessageManager $.Regex $.TransPat com.stevesoft.pat.wrap.StringWrap java.lang.ArrayIndexOutOfBoundsException $.NullPointerException".split(" "),
1408 function(){c$=s(function(){this.t=null;r(this,arguments)},com.stevesoft.pat,"TransRepRule",com.stevesoft.pat.ReplaceRule);m(c$,function(a){t(this,com.stevesoft.pat.TransRepRule,[]);this.t=a},"com.stevesoft.pat.Transformer");e(c$,"toString1",function(){return""});e(c$,"clone1",function(){return new com.stevesoft.pat.TransRepRule(this.t)});e(c$,"apply",function(){this.next=this.t.tp.ra[this.t.tp.pn].getReplaceRule()},"com.stevesoft.pat.StringBufferLike,com.stevesoft.pat.RegRes");c$=s(function(){this.rp=
1409 this.tp=null;this.auto_optimize=!1;this.repr=null;r(this,arguments)},com.stevesoft.pat,"Transformer");J(c$,function(){this.repr=new com.stevesoft.pat.Replacer});d(c$,"getReplacer",function(){return this.rp.getReplacer()});m(c$,function(a){this.rp=new com.stevesoft.pat.Regex(null,"");this.auto_optimize=a;this.tp=new com.stevesoft.pat.TransPat;this.rp.setReplaceRule(new com.stevesoft.pat.TransRepRule(this));this.rp.thePattern=this.tp},"~B");d(c$,"add",function(a){this.auto_optimize&&a.optimize();this.tp.ra[this.tp.ra_len++]=
1410 a;if(this.tp.ra.length==this.tp.ra_len){for(var b=Array(this.tp.ra_len+10),c=0;c<this.tp.ra_len;c++)b[c]=this.tp.ra[c];this.tp.ra=b}this.rp.numSubs_=a.numSubs_>this.rp.numSubs_?a.numSubs_:this.rp.numSubs_},"com.stevesoft.pat.Regex");d(c$,"patterns",function(){return this.tp.ra_len});d(c$,"getRegexAt",function(a){if(a>=this.tp.ra_len)throw new ArrayIndexOutOfBoundsException("i="+a+">="+this.patterns());if(0>a)throw new ArrayIndexOutOfBoundsException("i="+a+"< 0");return this.tp.ra[a]},"~N");d(c$,"setRegexAt",
1411 function(a,b){if(b>=this.tp.ra_len)throw new ArrayIndexOutOfBoundsException("i="+b+">="+this.patterns());if(0>b)throw new ArrayIndexOutOfBoundsException("i="+b+"< 0");this.tp.ra[b]=a},"com.stevesoft.pat.Regex,~N");d(c$,"add",function(a){var b=com.stevesoft.pat.Regex.perlCode(a);if(null==b)throw new NullPointerException(com.stevesoft.pat.MessageManager.formatMessage("exception.bad_pattern_to_regex_perl_code",E(-1,[a])));this.add(b)},"~S");d(c$,"add",function(a){for(var b=0;b<a.length;b++)this.add(a[b])},
1412 "~A");d(c$,"replaceAll",function(a){return this.dorep(a,0,a.length)},"~S");d(c$,"replaceAll",function(a){return this.dorep(a,0,a.length())},"com.stevesoft.pat.StringLike");d(c$,"replaceAllFrom",function(a,b){return this.dorep(a,b,a.length)},"~S,~N");d(c$,"replaceAllRegion",function(a,b,c){return this.dorep(a,b,c)},"~S,~N,~N");d(c$,"dorep",function(a,b,c){a=this.repr.replaceAllRegion(a,this.rp,b,c);this.tp.lastMatchedTo=this.repr.$lastMatchedTo;return a},"com.stevesoft.pat.StringLike,~N,~N");d(c$,
1413 "dorep",function(a,b,c){return this.dorep(new com.stevesoft.pat.wrap.StringWrap(a),b,c).toString()},"~S,~N,~N");d(c$,"replaceFirst",function(a){return this.dorep(a,0,a.length)},"~S");d(c$,"replaceFirstFrom",function(a,b){return this.dorep(a,b,a.length)},"~S,~N");d(c$,"replaceFirstRegion",function(a,b,c){return this.dorep(a,b,c)},"~S,~N,~N")});p("com.stevesoft.pat");q(null,["com.stevesoft.pat.RegHolder","$.Replacer","$.CodeVal"],"com.stevesoft.pat.AmpersandRule $.ChangeRule $.MessageManager $.PopRule $.PushRule $.RuleHolder $.SpecialRule $.StringBufferLike $.WantMoreTextReplaceRule com.stevesoft.pat.wrap.StringWrap java.lang.NullPointerException".split(" "),
1414 function(){c$=s(function(){this.prev=this.me=null;r(this,arguments)},com.stevesoft.pat,"RegHolder");c$=s(function(){this.pos=0;this.code="\x00";r(this,arguments)},com.stevesoft.pat,"CodeVal");m(c$,function(a,b){this.pos=a;this.code=b},"~N,~S");e(c$,"toString",function(){return"("+this.pos+","+this.code+")"});c$=s(function(){this.first=!1;this.src=this.sb=this.rh=null;this.pos=0;this.want_more_text_enable=this.want_more_text=!1;this.$lastMatchedTo=0;r(this,arguments)},com.stevesoft.pat,"Replacer");
1415 J(c$,function(){this.rh=new com.stevesoft.pat.RegHolder});m(c$,function(){});d(c$,"replaceFirstRegion",function(a,b,c,f){return this.replaceFirstRegion(new com.stevesoft.pat.wrap.StringWrap(a),b,c,f)},"~S,com.stevesoft.pat.Regex,~N,~N");d(c$,"replaceFirstRegion",function(a,b,c,f){this.first=!0;this.rh.me=b;this.rh.prev=null;return this.dorep(a,c,f)},"com.stevesoft.pat.StringLike,com.stevesoft.pat.Regex,~N,~N");d(c$,"replaceFirst",function(a){return this.replaceFirstRegion(a,0,a.length())},"com.stevesoft.pat.StringLike");
1416 d(c$,"replaceFirstFrom",function(a,b){return this.replaceFirstRegion(a,b,a.length())},"com.stevesoft.pat.StringLike,~N");d(c$,"replaceFirstRegion",function(a,b,c){this.first=!0;return this.dorep(a,b,c)},"com.stevesoft.pat.StringLike,~N,~N");d(c$,"replaceAllRegion",function(a,b,c,f){return this.replaceAllRegion(new com.stevesoft.pat.wrap.StringWrap(a),b,c,f)},"~S,com.stevesoft.pat.Regex,~N,~N");d(c$,"replaceAllRegion",function(a,b,c,f){this.first=!1;this.rh.me=b;this.rh.prev=null;return this.dorep(a,
1417 c,f)},"com.stevesoft.pat.StringLike,com.stevesoft.pat.Regex,~N,~N");d(c$,"replaceAll",function(a){return this.replaceAllRegion(a,0,a.length())},"com.stevesoft.pat.StringLike");d(c$,"replaceAllFrom",function(a,b){return this.replaceAllRegion(a,b,a.length())},"com.stevesoft.pat.StringLike,~N");d(c$,"replaceAllRegion",function(a,b,c){this.first=!1;return this.dorep(a,b,c)},"com.stevesoft.pat.StringLike,~N,~N");d(c$,"replaceAll",function(a){return this.replaceAllRegion(new com.stevesoft.pat.wrap.StringWrap(a),
1418 0,a.length).toString()},"~S");d(c$,"replaceAllFrom",function(a,b){return this.replaceAllRegion(new com.stevesoft.pat.wrap.StringWrap(a),b,a.length).toString()},"~S,~N");d(c$,"replaceAllRegion",function(a,b,c){this.first=!1;return this.dorep(new com.stevesoft.pat.wrap.StringWrap(a),b,c).toString()},"~S,~N,~N");d(c$,"isSpecial",function(a){for(;null!=a;){if(v(a,com.stevesoft.pat.SpecialRule)||v(a,com.stevesoft.pat.RuleHolder)&&v(a.held,com.stevesoft.pat.SpecialRule))return!0;a=a.next}return!1},"com.stevesoft.pat.ReplaceRule");
1419 d(c$,"apply1",function(a){a.charsMatched_++;this.apply(a,null);a.charsMatched_--},"com.stevesoft.pat.RegRes");d(c$,"dorep",function(a,b,c){var f=a;this.want_more_text=!1;this.$lastMatchedTo=0;if(null==this.rh.me)throw new NullPointerException(com.stevesoft.pat.MessageManager.getString("exception.replace_null_regex_pointer"));if(this.rh.me._searchLike(a,b,c)){b=this.rh.me.matchedTo();0==this.rh.me.charsMatched()&&!this.isSpecial(this.rh.me.getReplaceRule())&&(this.apply1(this.rh.me),b++);this.apply(this.rh.me);
1420 if(!this.first)for(;!this.want_more_text&&this.rh.me._searchLike(a,b,c);)b=this.rh.me.matchedTo(),0==this.rh.me.charsMatched()&&(this.isSpecial(this.rh.me.getReplaceRule())||this.apply1(this.rh.me),b++),this.apply(this.rh.me);f=this.finish();f=null==f?a:f}return f},"com.stevesoft.pat.StringLike,~N,~N");d(c$,"apply",function(a,b){if(!(null==b||null==b.next&&v(b,com.stevesoft.pat.AmpersandRule))&&a.didMatch()){null==this.src&&(this.src=a.getStringLike());null==this.sb&&(this.sb=new com.stevesoft.pat.StringBufferLike(this.src.newStringBufferLike()));
1421 for(var c=a.matchedFrom(),f=this.pos;f<c;f++)this.sb.appendC(this.src.charAt(f));for(c=b;null!=c;c=c.next)c.apply(this.sb,a),v(c,com.stevesoft.pat.SpecialRule)&&(v(c,com.stevesoft.pat.WantMoreTextReplaceRule)&&this.want_more_text_enable?this.want_more_text=!0:v(c,com.stevesoft.pat.PushRule)?(f=new com.stevesoft.pat.RegHolder,f.me=c.NewRule,f.prev=this.rh,this.rh=f):v(c,com.stevesoft.pat.PopRule)?null!=this.rh.prev&&(this.rh=this.rh.prev):v(c,com.stevesoft.pat.ChangeRule)&&(this.rh.me=c.NewRule));
1422 this.want_more_text||(this.pos=a.matchedTo())}},"com.stevesoft.pat.RegRes,com.stevesoft.pat.ReplaceRule");d(c$,"WantMoreText",function(){return this.want_more_text});d(c$,"apply",function(a){this.apply(a,a.getReplaceRule())},"com.stevesoft.pat.Regex");d(c$,"finish",function(){if(null==this.src)return null;for(var a=this.src.length(),b=this.pos;b<a;b++)this.sb.appendC(this.src.charAt(b));this.src=null;this.$lastMatchedTo=this.pos;this.pos=0;a=this.sb.toStringLike();this.sb=null;return a});e(c$,"clone",
1423 function(){var a=new com.stevesoft.pat.Replacer;a.first=this.first;a.src=this.src;a.sb=this.sb;a.pos=this.pos;a.$lastMatchedTo=this.$lastMatchedTo;a.want_more_text=this.want_more_text;a.want_more_text_enable=this.want_more_text_enable;a.rh.me=this.rh.me;a.rh.prev=this.rh.prev;return a});d(c$,"lastMatchedTo",function(){return this.$lastMatchedTo});d(c$,"getRegex",function(){return this.rh.me});d(c$,"setSource",function(a){this.src=a},"com.stevesoft.pat.StringLike");d(c$,"setBuffer",function(a){this.sb=
1424 a},"com.stevesoft.pat.StringBufferLike");d(c$,"setPos",function(a){this.pos=a},"~N")});p("com.stevesoft.pat");q(["com.stevesoft.pat.ReplaceRule"],"com.stevesoft.pat.AmpersandRule",null,function(){c$=B(com.stevesoft.pat,"AmpersandRule",com.stevesoft.pat.ReplaceRule);m(c$,function(){t(this,com.stevesoft.pat.AmpersandRule,[])});e(c$,"apply",function(a,b){a.append(b.stringMatched())},"com.stevesoft.pat.StringBufferLike,com.stevesoft.pat.RegRes");e(c$,"toString1",function(){return"$&"})});p("com.stevesoft.pat");
1425 q(["com.stevesoft.pat.SpecialRule"],"com.stevesoft.pat.ChangeRule",null,function(){c$=s(function(){this.NewRule=null;r(this,arguments)},com.stevesoft.pat,"ChangeRule",com.stevesoft.pat.SpecialRule);m(c$,function(a){t(this,com.stevesoft.pat.ChangeRule,[]);this.NewRule=a.NewRule},"com.stevesoft.pat.ChangeRule");m(c$,function(a,b){t(this,com.stevesoft.pat.ChangeRule,[]);this.name=a;this.NewRule=b},"~S,com.stevesoft.pat.Regex");m(c$,function(a,b){t(this,com.stevesoft.pat.ChangeRule,[]);this.name=a;this.NewRule=
1426 b.rp},"~S,com.stevesoft.pat.Transformer");e(c$,"clone1",function(){return new com.stevesoft.pat.ChangeRule(this)});e(c$,"toString1",function(){return"${="+this.name+"}"});e(c$,"apply",function(){},"com.stevesoft.pat.StringBufferLike,com.stevesoft.pat.RegRes")});p("com.stevesoft.pat");q(["com.stevesoft.pat.ReplaceRule"],"com.stevesoft.pat.SpecialRule",null,function(){c$=B(com.stevesoft.pat,"SpecialRule",com.stevesoft.pat.ReplaceRule);m(c$,function(){t(this,com.stevesoft.pat.SpecialRule,[])});e(c$,
1427 "apply",function(){},"com.stevesoft.pat.StringBufferLike,com.stevesoft.pat.RegRes")});p("com.stevesoft.pat");q(["com.stevesoft.pat.SpecialRule"],"com.stevesoft.pat.PopRule",null,function(){c$=B(com.stevesoft.pat,"PopRule",com.stevesoft.pat.SpecialRule);m(c$,function(){t(this,com.stevesoft.pat.PopRule,[])});e(c$,"toString1",function(){return"${POP}"})});p("com.stevesoft.pat");q(["com.stevesoft.pat.SpecialRule"],"com.stevesoft.pat.PushRule",null,function(){c$=s(function(){this.NewRule=null;r(this,arguments)},
1428 com.stevesoft.pat,"PushRule",com.stevesoft.pat.SpecialRule);m(c$,function(a){t(this,com.stevesoft.pat.PushRule,[]);this.NewRule=a.NewRule},"com.stevesoft.pat.PushRule");m(c$,function(a,b){t(this,com.stevesoft.pat.PushRule,[]);this.name=a;this.NewRule=b},"~S,com.stevesoft.pat.Regex");m(c$,function(a,b){t(this,com.stevesoft.pat.PushRule,[]);this.name=a;this.NewRule=b.rp},"~S,com.stevesoft.pat.Transformer");e(c$,"clone1",function(){return new com.stevesoft.pat.PushRule(this)});d(c$,"String1",function(){return"${+"+
1429 this.name+"}"});e(c$,"apply",function(){},"com.stevesoft.pat.StringBufferLike,com.stevesoft.pat.RegRes")});p("com.stevesoft.pat");q(["com.stevesoft.pat.ReplaceRule"],"com.stevesoft.pat.RuleHolder",null,function(){c$=s(function(){this.held=null;r(this,arguments)},com.stevesoft.pat,"RuleHolder",com.stevesoft.pat.ReplaceRule);m(c$,function(){t(this,com.stevesoft.pat.RuleHolder,[])});m(c$,function(a){t(this,com.stevesoft.pat.RuleHolder,[]);this.held=a},"com.stevesoft.pat.ReplaceRule");e(c$,"clone1",function(){return new com.stevesoft.pat.RuleHolder(this.held)});
1430 d(c$,"toString1",function(){return this.held.toString1()});d(c$,"apply",function(a,b){this.held.apply(a,b)},"com.stevesoft.pat.StringBufferLike,com.stevesoft.pat.RegRes");d(c$,"arg",function(a){return new com.stevesoft.pat.RuleHolder(this.held.arg(a))},"~S")});p("com.stevesoft.pat");q(["com.stevesoft.pat.BasicStringBufferLike"],"com.stevesoft.pat.StringBufferLike",["com.stevesoft.pat.CaseMgr"],function(){c$=s(function(){this.sbl=null;this.mode="E";this.altMode=" ";r(this,arguments)},com.stevesoft.pat,
1431 "StringBufferLike",null,com.stevesoft.pat.BasicStringBufferLike);m(c$,function(a){this.sbl=a},"com.stevesoft.pat.BasicStringBufferLike");d(c$,"toStringLike",function(){return this.sbl.toStringLike()});d(c$,"toString",function(){return this.sbl.toString()});d(c$,"appendC",function(a){switch(this.mode){case "u":this.mode=this.altMode,this.altMode=" ";case "U":this.sbl.appendC(com.stevesoft.pat.CaseMgr.toUpperCaseC(a));break;case "l":this.mode=this.altMode,this.altMode=" ";case "L":this.sbl.appendC(com.stevesoft.pat.CaseMgr.toLowerCaseC(a));
1432 break;case "Q":"a"<=a&&"z">=a||("A"<=a&&"Z">=a||"0"<=a&&"9">=a)||this.sbl.appendC("\\");default:this.sbl.appendC(a)}},"~S");e(c$,"append",function(a){for(var b=0;b<a.length;b++)this.appendC(a.charAt(b))},"~S");d(c$,"setMode",function(a){if(("u"==a||"l"==a)&&" "==this.altMode)this.altMode=this.mode;this.mode=a},"~S");d(c$,"unwrap",function(){return this.sbl.unwrap()})});p("com.stevesoft.pat");M(com.stevesoft.pat,"BasicStringBufferLike");p("com.stevesoft.pat");q(["com.stevesoft.pat.SpecialRule"],"com.stevesoft.pat.WantMoreTextReplaceRule",
1433 null,function(){c$=B(com.stevesoft.pat,"WantMoreTextReplaceRule",com.stevesoft.pat.SpecialRule);m(c$,function(){t(this,com.stevesoft.pat.WantMoreTextReplaceRule,[])});e(c$,"apply",function(){},"com.stevesoft.pat.StringBufferLike,com.stevesoft.pat.RegRes");e(c$,"toString1",function(){return"${WANT_MORE_TEXT}"})});p("com.stevesoft.pat.wrap");q(["com.stevesoft.pat.StringLike"],"com.stevesoft.pat.wrap.StringWrap",["com.stevesoft.pat.wrap.StringBufferWrap"],function(){c$=s(function(){this.s=null;r(this,
1434 arguments)},com.stevesoft.pat.wrap,"StringWrap",null,com.stevesoft.pat.StringLike);m(c$,function(a){this.s=a},"~S");e(c$,"toString",function(){return this.s});e(c$,"charAt",function(a){return this.s.charAt(a)},"~N");e(c$,"length",function(){return this.s.length});e(c$,"substring",function(a,b){return this.s.substring(a,b)},"~N,~N");e(c$,"unwrap",function(){return this.s});e(c$,"newStringBufferLike",function(){return new com.stevesoft.pat.wrap.StringBufferWrap});e(c$,"indexOf",function(a){return this.s.indexOf(a)},
1435 "~S")});p("com.stevesoft.pat");M(com.stevesoft.pat,"StringLike");p("com.stevesoft.pat.wrap");q(["com.stevesoft.pat.BasicStringBufferLike","java.lang.StringBuffer"],"com.stevesoft.pat.wrap.StringBufferWrap",["com.stevesoft.pat.wrap.StringWrap"],function(){c$=s(function(){this.sb=null;r(this,arguments)},com.stevesoft.pat.wrap,"StringBufferWrap",null,com.stevesoft.pat.BasicStringBufferLike);J(c$,function(){this.sb=new StringBuffer});e(c$,"appendC",function(a){this.sb.append(a)},"~S");e(c$,"append",function(a){this.sb.append(a)},
1436 "~S");d(c$,"length",function(){return this.sb.length()});e(c$,"toString",function(){return this.sb.toString()});e(c$,"toStringLike",function(){return new com.stevesoft.pat.wrap.StringWrap(this.sb.toString())});e(c$,"unwrap",function(){return this.sb})});p("com.stevesoft.pat");q(["com.stevesoft.pat.Pattern"],"com.stevesoft.pat.TransPat",["com.stevesoft.pat.Regex"],function(){c$=s(function(){this.ra=null;this.ra_len=0;this.lastMatchedTo=this.pn=-1;r(this,arguments)},com.stevesoft.pat,"TransPat",com.stevesoft.pat.Pattern);
1437 J(c$,function(){this.ra=Array(10)});e(c$,"toString",function(){return"(?#TransPat)"});m(c$,function(){t(this,com.stevesoft.pat.TransPat,[])});d(c$,"matchInternal",function(a,b){for(var c=0;c<this.ra_len;c++){b.ignoreCase=this.ra[c].ignoreCase;b.mFlag=this.ra[c].mFlag;b.dotDoesntMatchCR=com.stevesoft.pat.Regex.dotDoesntMatchCR;var f=this.ra[c].thePattern.matchInternal(a,b);if(0<=f)return this.pn=c,f}return this.pn=-1},"~N,com.stevesoft.pat.Pthings")});p("com.stevesoft.pat");q(["com.stevesoft.pat.Regex"],
1438 "com.stevesoft.pat.Rthings",null,function(){c$=s(function(){this.val=0;this.noBackRefs=this.optimizeMe=this.dontMatchInQuotes=this.ignoreCase=!1;this.parenLevel=0;this.sFlag=this.mFlag=this.gFlag=!1;this.o=this.p=null;r(this,arguments)},com.stevesoft.pat,"Rthings");J(c$,function(){this.val=com.stevesoft.pat.Regex.BackRefOffset});m(c$,function(a){this.ignoreCase=a.ignoreCase;this.dontMatchInQuotes=a.dontMatchInQuotes},"com.stevesoft.pat.Regex");d(c$,"set",function(a){a.gFlag=this.gFlag;a.mFlag=this.mFlag;
1439 a.sFlag=this.sFlag;a.ignoreCase=this.ignoreCase;a.dontMatchInQuotes=this.dontMatchInQuotes;this.optimizeMe&&a.optimize()},"com.stevesoft.pat.Regex")});p("com.stevesoft.pat");q(null,"com.stevesoft.pat.Skip",["com.stevesoft.pat.CaseMgr","$.Or","$.Skipped","$.oneChar","java.lang.StringBuffer"],function(){c$=s(function(){this.src=null;this.$offset=this.mask=this.c=0;this.m1=this.ign=!1;r(this,arguments)},com.stevesoft.pat,"Skip");c$.mkmask=d(c$,"mkmask",function(a){a=String.fromCharCode(a);return~(com.stevesoft.pat.CaseMgr.toUpperCaseC(a).charCodeAt(0)|
1440 com.stevesoft.pat.CaseMgr.toLowerCaseC(a).charCodeAt(0)|com.stevesoft.pat.CaseMgr.toTitleCaseC(a).charCodeAt(0))},"~N");c$.string=d(c$,"string",function(a){return null==a.skipper?null:a.skipper.src},"com.stevesoft.pat.Regex");c$.offset=d(c$,"offset",function(a){return null==a.skipper?-1:a.skipper.$offset},"com.stevesoft.pat.Regex");m(c$,function(a,b,c){this.src=a;this.c=a.charCodeAt(0);this.mask=b?com.stevesoft.pat.Skip.mkmask(this.c):0;this.$offset=c;this.ign=b;this.m1=1==a.length},"~S,~B,~N");d(c$,
1441 "find",function(a){return this.find(a,0,a.length())},"com.stevesoft.pat.StringLike");c$.min=d(c$,"min",function(a,b){return a<b?a:b},"~N,~N");d(c$,"find",function(a,b,c){if(b>c)return-1;b+=this.$offset;c=com.stevesoft.pat.Skip.min(a.length()-1,c+this.$offset);if(this.mask!=this.c)for(;b<=c;b++){if(0==(a.charCodeAt(b)&this.mask)&&(this.m1||com.stevesoft.pat.CaseMgr.regionMatchesLike2(a,this.ign,b,this.src,0,this.src.length)))return b-this.$offset}else for(;b<=c;b++)if(this.c==a.charCodeAt(b)&&(this.m1||
1442 com.stevesoft.pat.CaseMgr.regionMatchesLike2(a,this.ign,b,this.src,0,this.src.length)))return b-this.$offset;return-1},"com.stevesoft.pat.StringLike,~N,~N");c$.findSkipRegex=d(c$,"findSkipRegex",function(a){return com.stevesoft.pat.Skip.findSkip(a.thePattern,a.ignoreCase,!a.dontMatchInQuotes)},"com.stevesoft.pat.Regex");c$.findSkip=d(c$,"findSkip",function(a,b,c){for(var f=new StringBuffer,d=null,k=0,g=-1,e=0;null!=a;a=a.next){v(a,com.stevesoft.pat.oneChar)&&(g=a.c.charCodeAt(0),e=k);if(v(a,com.stevesoft.pat.oneChar)&&
1443 v(a.next,com.stevesoft.pat.oneChar)){d=a;for(f.append(a.c);v(a.next,com.stevesoft.pat.oneChar);)f.append(a.next.c),a=a.next;f=f.toString();g=null;g=2<f.length?new com.stevesoft.pat.SkipBMH(f,b,k):new com.stevesoft.pat.Skip2(f,b,k);c&&2<f.length&&(d.next=new com.stevesoft.pat.Skipped(f.substring(1)),d.next.next=a.next,d.next.parent=a.parent);return g}if(v(a,com.stevesoft.pat.Or)&&1==a.v.size()&&!a.leftForm().equals("(?!")&&null!=(d=com.stevesoft.pat.Skip.findSkip(a.v.elementAt(0),b,c)))return d.$offset+=
1444 k,d;if(a.minChars().equals(a.maxChars()))k+=a.minChars().intValue();else return 0>g?null:new com.stevesoft.pat.Skip(""+String.fromCharCode(g),b,e)}return null},"com.stevesoft.pat.Pattern,~B,~B")});p("com.stevesoft.pat");q(["com.stevesoft.pat.Pattern"],"com.stevesoft.pat.Skipped",["com.stevesoft.pat.CaseMgr","$.patInt"],function(){c$=s(function(){this.s=null;r(this,arguments)},com.stevesoft.pat,"Skipped",com.stevesoft.pat.Pattern);m(c$,function(a){t(this,com.stevesoft.pat.Skipped,[]);this.s=a},"~S");
1445 e(c$,"toString",function(){return this.s+this.nextString()});e(c$,"matchInternal",function(a,b){return b.no_check||com.stevesoft.pat.CaseMgr.regionMatches(this.s,b.ignoreCase,0,b.src,a,this.s.length)?this.nextMatch(a+this.s.length,b):-1},"~N,com.stevesoft.pat.Pthings");e(c$,"minChars",function(){return new com.stevesoft.pat.patInt(this.s.length)});e(c$,"maxChars",function(){return new com.stevesoft.pat.patInt(this.s.length)});e(c$,"clone1",function(){return new com.stevesoft.pat.Skipped(this.s)},
1446 "java.util.Hashtable")});p("com.stevesoft.pat");q(["com.stevesoft.pat.Pattern"],"com.stevesoft.pat.Start",["com.stevesoft.pat.patInt"],function(){c$=s(function(){this.retIsStart=!1;r(this,arguments)},com.stevesoft.pat,"Start",com.stevesoft.pat.Pattern);m(c$,function(a){t(this,com.stevesoft.pat.Start,[]);this.retIsStart=a},"~B");e(c$,"matchInternal",function(a,b){return this.retIsStart&&b.mFlag&&0<a&&"\n"==b.src.charAt(a-1)||0==a?this.nextMatch(a,b):-1},"~N,com.stevesoft.pat.Pthings");e(c$,"toString",
1447 function(){return this.retIsStart?"^"+this.nextString():"\\A"+this.nextString()});e(c$,"maxChars",function(){return new com.stevesoft.pat.patInt(0)});e(c$,"clone1",function(){return new com.stevesoft.pat.Start(this.retIsStart)},"java.util.Hashtable")});p("com.stevesoft.pat");q(null,"com.stevesoft.pat.StrPos",["com.stevesoft.pat.patInf","$.patInt"],function(){c$=s(function(){this.s=null;this.$pos=0;this.esc="\\";this.c="\x00";this.$eos=this.dontMatch=!1;r(this,arguments)},com.stevesoft.pat,"StrPos");
1448 d(c$,"pos",function(){return this.$pos});d(c$,"thisChar",function(){return this.c});d(c$,"eos",function(){return this.$eos});m(c$,function(a){this.dup(a)},"com.stevesoft.pat.StrPos");d(c$,"dup",function(a){this.s=a.s;this.$pos=a.$pos;this.c=a.c;this.dontMatch=a.dontMatch;this.$eos=a.$eos},"com.stevesoft.pat.StrPos");m(c$,function(a,b){this.s=a;this.$pos=b-1;this.inc()},"~S,~N");d(c$,"inc",function(){this.$pos++;if(this.$pos>=this.s.length)return this.$eos=!0,this;this.$eos=!1;this.c=this.s.charAt(this.$pos);
1449 this.c==this.esc&&this.$pos+1<this.s.length?(this.$pos++,this.c=this.s.charAt(this.$pos),this.dontMatch=this.c!=this.esc?!0:!1):this.dontMatch=!1;return this});d(c$,"match",function(a){return this.dontMatch||this.$eos?!1:this.c==a},"~S");d(c$,"escMatch",function(a){return!this.dontMatch||this.$eos?!1:this.c==a},"~S");d(c$,"escaped",function(){return this.dontMatch});d(c$,"incMatch",function(a){var b=new com.stevesoft.pat.StrPos(this),c;for(c=0;c<a.length;c++){if(!b.match(a.charAt(c)))return!1;b.inc()}this.dup(b);
1450 return!0},"~S");d(c$,"getPatInt",function(){if(this.incMatch("inf"))return new com.stevesoft.pat.patInf;var a,b=0,c=new com.stevesoft.pat.StrPos(this);for(a=0;!c.$eos&&"0"<=c.c&&"9">=c.c;a++)b=10*b+c.c.charCodeAt(0)-48,c.inc();if(0==a)return null;this.dup(c);return new com.stevesoft.pat.patInt(b)});d(c$,"getString",function(){return this.s})});p("com.stevesoft.pat");q(["com.stevesoft.pat.Or"],"com.stevesoft.pat.lookAhead",["com.stevesoft.pat.patInt"],function(){c$=s(function(){this.reverse=!1;r(this,
1451 arguments)},com.stevesoft.pat,"lookAhead",com.stevesoft.pat.Or);m(c$,function(a){t(this,com.stevesoft.pat.lookAhead,[]);this.reverse=a},"~B");d(c$,"getNext",function(){return null});e(c$,"nextMatch",function(a,b){var c=K(this,com.stevesoft.pat.lookAhead,"getNext",[]);return null!=c?c.matchInternal(a,b):a},"~N,com.stevesoft.pat.Pthings");d(c$,"matchInternal",function(a,b){return 0<=K(this,com.stevesoft.pat.lookAhead,"matchInternal",[a,b])?this.reverse?-1:this.nextMatch(a,b):this.reverse?this.nextMatch(a,
1452 b):-1},"~N,com.stevesoft.pat.Pthings");e(c$,"leftForm",function(){return this.reverse?"(?!":"(?="});e(c$,"minChars",function(){return new com.stevesoft.pat.patInt(0)});e(c$,"maxChars",function(){return new com.stevesoft.pat.patInt(0)});e(c$,"clone1",function(a){var b=new com.stevesoft.pat.lookAhead(this.reverse);a.put(this,b);a.put(b,b);for(var c=0;c<this.v.size();c++)b.v.addElement(this.v.elementAt(c).clone(a));return b},"java.util.Hashtable")});p("com.stevesoft.pat");q(null,"com.stevesoft.pat.parsePerl",
1453 "com.stevesoft.pat.CaseMgr $.Prop $.RegSyntaxError $.Regex $.ReplaceRule $.StringRule java.lang.StringBuffer".split(" "),function(){c$=B(com.stevesoft.pat,"parsePerl");c$.close=d(c$,"close",function(a){return"<"==a?">":"["==a?"]":"("==a?")":"{"==a?"}":a},"~S");c$.codify=d(c$,"codify",function(a,b){return com.stevesoft.pat.parsePerl.codifyRange(a,0,a.length,b)},"~S,~B");c$.codifyRange=d(c$,"codifyRange",function(a,b,c,f){for(var d=new StringBuffer,k=!1,g=!1,e=!1,j=!1,n=!1,x=!1;b<c;b++){var u=a.charAt(b),
1454 D=!0,m=!0;if("\\"==u&&(m=!1,b++,b<a.length)){var p=a.charAt(b);switch(p){case "Q":e=!0;break;case "U":k=!0;break;case "L":g=!0;break;case "u":j=!0;break;case "l":n=!0;break;case "E":j=n=k=g=e=!1;break;default:f&&d.append("\\"),u=p,f&&(D=!1),m=!0}x=(new Boolean(x|D)).valueOf()}m&&(n?(u=com.stevesoft.pat.parsePerl.lc(u),n=!1):j?(u=com.stevesoft.pat.parsePerl.uc(u),j=!1):k?u=com.stevesoft.pat.parsePerl.uc(u):g&&(u=com.stevesoft.pat.parsePerl.lc(u)),e&&com.stevesoft.pat.parsePerl.needbs(u)&&d.append("\\"),
1455 d.append(u))}return x?d.toString():a},"~S,~N,~N,~B");c$.uc=d(c$,"uc",function(a){return com.stevesoft.pat.CaseMgr.toUpperCaseC(a)},"~S");c$.lc=d(c$,"lc",function(a){return com.stevesoft.pat.CaseMgr.toLowerCaseC(a)},"~S");c$.needbs=d(c$,"needbs",function(a){return"a"<=a&&"z">=a||"A"<=a&&"Z">=a||"0"<=a&&"9">=a||"_"==a?!1:!0},"~S");c$.parse=d(c$,"parse",function(a){var b=!1,c=!1,f=!1,d=!1,k=!1,g=!1,e=new StringBuffer,j=new StringBuffer,n=0,x=0,u,D="/",m="/";if(3<=a.length&&"s"==a.charAt(0))u="s",D=a.charAt(1),
1456 m=com.stevesoft.pat.parsePerl.close(D),n=2;else if(2<=a.length&&"m"==a.charAt(0))u="m",D=a.charAt(1),m=com.stevesoft.pat.parsePerl.close(D),n=2;else if(1<=a.length&&"/"==a.charAt(0))u="m",n=1;else{try{com.stevesoft.pat.RegSyntaxError.endItAll("Regex.perlCode should be of the form s/// or m// or //")}catch(p){if(!y(p,com.stevesoft.pat.RegSyntax))throw p;}return null}for(;n<a.length;n++){if("\\"==a.charAt(n))e.append("\\"),n++;else if(a.charAt(n)==m&&0==x){n++;break}else a.charAt(n)==D&&m!=D?x++:a.charAt(n)==
1457 m&&m!=D&&x--;e.append(a.charAt(n))}if("s"==u&&m!=D){for(;n<a.length&&com.stevesoft.pat.Prop.isWhite(a.charAt(n));)n++;if(n>=a.length){try{com.stevesoft.pat.RegSyntaxError.endItAll(""+u+D+" needs "+m)}catch(q){if(!y(q,com.stevesoft.pat.RegSyntax))throw q;}return null}m=com.stevesoft.pat.parsePerl.close(D=a.charAt(n));n++}x=0;if("s"==u)for(;n<a.length;n++){if("\\"==a.charAt(n))j.append("\\"),n++;else if(a.charAt(n)==m&&0==x){n++;break}else a.charAt(n)==D&&m!=D?x++:a.charAt(n)==m&&m!=D&&x--;j.append(a.charAt(n))}for(;n<
1458 a.length;n++)switch(x=a.charAt(n),x){case "x":g=!0;break;case "i":b=!0;break;case "o":c=!0;break;case "s":d=!0;break;case "m":k=!0;break;case "g":f=!0;break;default:try{com.stevesoft.pat.RegSyntaxError.endItAll("Illegal flag to pattern: "+x)}catch(s){if(!y(s,com.stevesoft.pat.RegSyntax))throw s;}return null}a=new com.stevesoft.pat.Regex(null,"");try{var r=e.toString(),t=j.toString();g&&(r=com.stevesoft.pat.parsePerl.strip(r),t=com.stevesoft.pat.parsePerl.strip(t));a.compile(r);a.ignoreCase=(new Boolean(a.ignoreCase|
1459 b)).valueOf();a.gFlag=(new Boolean(a.gFlag|f)).valueOf();a.sFlag=(new Boolean(a.sFlag|d)).valueOf();a.mFlag=(new Boolean(a.mFlag|k)).valueOf();c&&a.optimize();"'"==D?a.setReplaceRule(new com.stevesoft.pat.StringRule(t)):a.setReplaceRule(com.stevesoft.pat.ReplaceRule.perlCode(t))}catch(v){if(y(v,com.stevesoft.pat.RegSyntax))a=null;else throw v;}return a},"~S");c$.strip=d(c$,"strip",function(a){for(var b=new StringBuffer,c=0;c<a.length;c++){var f=a.charAt(c);if(!com.stevesoft.pat.Prop.isWhite(f))if("#"==
1460 f)for(c++;c<a.length&&"\n"!=a.charAt(c);)c++;else"\\"==f?(b.append(f),b.append(a.charAt(++c))):b.append(f)}return b.toString()},"~S")});p("com.stevesoft.pat");q(["com.stevesoft.pat.ReplaceRule"],"com.stevesoft.pat.StringRule",null,function(){c$=s(function(){this.s=null;r(this,arguments)},com.stevesoft.pat,"StringRule",com.stevesoft.pat.ReplaceRule);m(c$,function(a){t(this,com.stevesoft.pat.StringRule,[]);this.s=a},"~S");e(c$,"apply",function(a){a.append(this.s)},"com.stevesoft.pat.StringBufferLike,com.stevesoft.pat.RegRes");
1461 e(c$,"toString1",function(){return this.s});e(c$,"clone1",function(){return new com.stevesoft.pat.StringRule(this.s)})});p("jalview.datamodel");q(["java.util.HashMap"],"jalview.datamodel.AlignmentAnnotation","jalview.analysis.Rna jalview.datamodel.Annotation $.GraphLine jalview.schemes.ResidueProperties java.lang.Double $.Error $.Long $.StringBuffer $.StringBuilder java.util.Collections".split(" "),function(){c$=s(function(){this.autoCalculated=!1;this._rnasecstr=this.bps=this.annotations=this.description=
1462 this.label=this.sequenceRef=this.annotationId=null;this.invalidrnastruc=-2;this.sequenceMapping=null;this.graphMax=this.graphMin=0;this.score=NaN;this.$hasScore=!1;this.threshold=null;this.hasText=this.hasIcons=this.editable=!1;this.visible=!0;this.graphGroup=-1;this.graph=this.height=0;this.graphHeight=40;this.padGaps=!1;this.belowAlignment=!0;this.groupRef=null;this.isrna=this.centreColLabels=this.scaleColLabel=this.showAllColLabels=!1;H("jalview.datamodel.AlignmentAnnotation.AnnotCharSequence")||
1463 jalview.datamodel.AlignmentAnnotation.$AlignmentAnnotation$AnnotCharSequence$();this._lastrnaannot=-1;this.calcId="";this._linecolour=this.properties=null;r(this,arguments)},jalview.datamodel,"AlignmentAnnotation");J(c$,function(){this.properties=new java.util.HashMap});d(c$,"_updateRnaSecStr",function(a){try{this._rnasecstr=jalview.analysis.Rna.GetBasePairs(a),this.bps=jalview.analysis.Rna.GetModeleBP(a),this.invalidrnastruc=-1}catch(b){if(y(b,jalview.analysis.WUSSParseException))this.invalidrnastruc=
1464 b.getProblemPos();else throw b;}-1<this.invalidrnastruc||(jalview.analysis.Rna.HelixMap(this._rnasecstr),null!=this._rnasecstr&&0<this._rnasecstr.length&&(this.scaleColLabel=this.showAllColLabels=this.isrna=!0,this._markRnaHelices()))},"CharSequence");d(c$,"_markRnaHelices",function(){for(var a=0,b=0;b<this._rnasecstr.length;b++){var c=0;try{c=Integer.$valueOf(this._rnasecstr[b].getFeatureGroup()).intValue(),a<c&&(a=c)}catch(f){if(!y(f,NumberFormatException))throw f;}this.annotations[this._rnasecstr[b].getBegin()].value=
1465 c;this.annotations[this._rnasecstr[b].getEnd()].value=c}this.setScore(a)});d(c$,"finalize",function(){this.groupRef=this.sequenceRef=null;K(this,jalview.datamodel.AlignmentAnnotation,"finalize",[])});c$.getGraphValueFromString=d(c$,"getGraphValueFromString",function(a){return a.equalsIgnoreCase("BAR_GRAPH")?1:a.equalsIgnoreCase("LINE_GRAPH")?2:0},"~S");d(c$,"ConcenStru",function(a){this.bps=jalview.analysis.Rna.GetModeleBP(a)},"CharSequence");m(c$,function(a,b,c){this.setAnnotationId();this.editable=
1466 !0;this.label=a;this.description=b;this.annotations=c;this.validateRangeAndDisplay()},"~S,~S,~A");d(c$,"areLabelsSecondaryStructure",function(){var a=!1;this.isrna=!1;for(var b=new StringBuffer,c=String.fromCharCode(0),f=0;f<this.annotations.length;f++)if(null!=this.annotations[f]){if("H"==this.annotations[f].secondaryStructure||"E"==this.annotations[f].secondaryStructure)this.hasIcons=(new Boolean(this.hasIcons|1)).valueOf();else if("("==this.annotations[f].secondaryStructure||"["==this.annotations[f].secondaryStructure||
1467 "<"==this.annotations[f].secondaryStructure||"{"==this.annotations[f].secondaryStructure||"A"==this.annotations[f].secondaryStructure||"B"==this.annotations[f].secondaryStructure||"C"==this.annotations[f].secondaryStructure||"D"==this.annotations[f].secondaryStructure||"E"==this.annotations[f].secondaryStructure||"F"==this.annotations[f].secondaryStructure||"G"==this.annotations[f].secondaryStructure||"H"==this.annotations[f].secondaryStructure||"I"==this.annotations[f].secondaryStructure||"J"==this.annotations[f].secondaryStructure||
1468 "K"==this.annotations[f].secondaryStructure||"L"==this.annotations[f].secondaryStructure||"M"==this.annotations[f].secondaryStructure||"N"==this.annotations[f].secondaryStructure||"O"==this.annotations[f].secondaryStructure||"P"==this.annotations[f].secondaryStructure||"Q"==this.annotations[f].secondaryStructure||"R"==this.annotations[f].secondaryStructure||"S"==this.annotations[f].secondaryStructure||"T"==this.annotations[f].secondaryStructure||"U"==this.annotations[f].secondaryStructure||"V"==this.annotations[f].secondaryStructure||
1469 "W"==this.annotations[f].secondaryStructure||"X"==this.annotations[f].secondaryStructure||"Y"==this.annotations[f].secondaryStructure||"Z"==this.annotations[f].secondaryStructure)this.hasIcons=(new Boolean(this.hasIcons|1)).valueOf(),this.isrna=(new Boolean(this.isrna|1)).valueOf();null==this.annotations[f].displayCharacter||0==this.annotations[f].displayCharacter.length?b.append("."):(1==this.annotations[f].displayCharacter.length?(c=this.annotations[f].displayCharacter.charAt(0)," "!=this.annotations[f].secondaryStructure&&
1470 !this.hasIcons&&" "!=c&&"$"!=c&&206!=c.charCodeAt(0)&&"("!=c&&"["!=c&&">"!=c&&"{"!=c&&"A"!=c&&"B"!=c&&"C"!=c&&"D"!=c&&"E"!=c&&"F"!=c&&"G"!=c&&"H"!=c&&"I"!=c&&"J"!=c&&"K"!=c&&"L"!=c&&"M"!=c&&"N"!=c&&"O"!=c&&"P"!=c&&"Q"!=c&&"R"!=c&&"S"!=c&&"T"!=c&&"U"!=c&&"V"!=c&&"W"!=c&&"X"!=c&&"Y"!=c&&"Z"!=c&&"-"!=c&&c.charCodeAt(0)<jalview.schemes.ResidueProperties.aaIndex.length&&23>jalview.schemes.ResidueProperties.aaIndex[c.charCodeAt(0)]&&(a=!0)):b.append(this.annotations[f].displayCharacter.charAt(1)),0<this.annotations[f].displayCharacter.length&&
1471 (this.hasText=!0))}if(a){this.hasIcons=!1;for(a=0;a<this.annotations.length;a++)null!=this.annotations[a]&&" "!=this.annotations[a].secondaryStructure&&(this.annotations[a].displayCharacter=String.valueOf(this.annotations[a].secondaryStructure),this.annotations[a].secondaryStructure=" ")}else this.isrna&&this._updateRnaSecStr(C(jalview.datamodel.AlignmentAnnotation.AnnotCharSequence,this,null))});d(c$,"getRNAStruc",function(){if(this.isrna){var a=C(jalview.datamodel.AlignmentAnnotation.AnnotCharSequence,
1472 this,null).toString();this._lastrnaannot!=a.hashCode()&&(this._lastrnaannot=a.hashCode(),this._updateRnaSecStr(a));return a}return null});m(c$,function(a,b,c,f,d,k){this.setAnnotationId();this.editable=0==k;this.label=a;this.description=b;this.annotations=c;this.graph=k;this.graphMin=f;this.graphMax=d;this.validateRangeAndDisplay()},"~S,~S,~A,~N,~N,~N");d(c$,"validateRangeAndDisplay",function(){if(null==this.annotations)this.visible=!1;else{var a=this.graph,b=this.graphMin,c=this.graphMax,f=!0;this._linecolour=
1473 null;if(b==c){for(var b=999999999,d=0;d<this.annotations.length;d++)null!=this.annotations[d]&&(f&&(null!=this.annotations[d].displayCharacter&&1<this.annotations[d].displayCharacter.length)&&(f=!1),this.annotations[d].value>c&&(c=this.annotations[d].value),this.annotations[d].value<b&&(b=this.annotations[d].value),null==this._linecolour&&null!=this.annotations[d].colour&&(this._linecolour=this.annotations[d].colour));0<b?b=0:0>c&&(c=0)}this.graphMin=b;this.graphMax=c;this.areLabelsSecondaryStructure();
1474 if(!f&&0!=a)for(d=0;d<this.annotations.length;d++)null!=this.annotations[d]&&(this.annotations[d].displayCharacter="")}});m(c$,function(a){this.setAnnotationId();this.label=String.instantialize(a.label);null!=a.description&&(this.description=String.instantialize(a.description));this.graphMin=a.graphMin;this.graphMax=a.graphMax;this.graph=a.graph;this.graphHeight=a.graphHeight;this.graphGroup=a.graphGroup;this.groupRef=a.groupRef;this.editable=a.editable;this.autoCalculated=a.autoCalculated;this.hasIcons=
1475 a.hasIcons;this.hasText=a.hasText;this.height=a.height;this.label=a.label;this.padGaps=a.padGaps;this.visible=a.visible;this.centreColLabels=a.centreColLabels;this.scaleColLabel=a.scaleColLabel;this.showAllColLabels=a.showAllColLabels;this.calcId=a.calcId;if(null!=a.properties){this.properties=new java.util.HashMap;for(var b,c=a.properties.entrySet().iterator();c.hasNext()&&((b=c.next())||1);)this.properties.put(b.getKey(),b.getValue())}if(this.$hasScore=a.$hasScore)this.score=a.score;null!=a.threshold&&
1476 (this.threshold=new jalview.datamodel.GraphLine(a.threshold));b=a.annotations;if(null!=a.annotations){this.annotations=Array(b.length);for(c=0;c<b.length;c++)null!=b[c]&&(this.annotations[c]=new jalview.datamodel.Annotation(b[c]),null!=this._linecolour&&(this._linecolour=this.annotations[c].colour))}if(null!=a.sequenceRef)if(this.sequenceRef=a.sequenceRef,null!=a.sequenceMapping){var f=null;this.sequenceMapping=new java.util.HashMap;for(var d=a.sequenceMapping.keySet().iterator();d.hasNext();){var f=
1477 d.next(),k=a.sequenceMapping.get(f);if(null!=k&&null!=b)for(c=0;c<b.length;c++)b[c]===k&&this.sequenceMapping.put(f,this.annotations[c])}}else this.sequenceMapping=null;this.validateRangeAndDisplay()},"jalview.datamodel.AlignmentAnnotation");d(c$,"restrict",function(a,b){if(null!=this.annotations&&(0>a&&(a=0),a>=this.annotations.length&&(a=this.annotations.length-1),b>=this.annotations.length&&(b=this.annotations.length-1),null!=this.annotations)){var c=Array(b-a+1);a<this.annotations.length&&System.arraycopy(this.annotations,
1478 a,c,0,b-a+1);if(null!=this.sequenceRef){var f=this.sequenceRef.findPosition(a),d=this.sequenceRef.findPosition(b);if(null!=this.sequenceMapping){for(var k=new java.util.HashMap,g=this.sequenceMapping.keySet().iterator();g.hasNext();){var e=g.next();e.intValue()>=f&&e.intValue()<=d&&k.put(e,this.sequenceMapping.get(e))}this.sequenceMapping.clear();this.sequenceMapping=k}}this.annotations=c}},"~N,~N");d(c$,"padAnnotation",function(a){return null==this.annotations?!0:this.annotations.length<a?(a=Array(a),
1479 System.arraycopy(this.annotations,0,a,0,this.annotations.length),this.annotations=a,!0):this.annotations.length>a},"~N");e(c$,"toString",function(){for(var a=new StringBuilder(256),b=0;b<this.annotations.length;b++)null!=this.annotations[b]&&(0!=this.graph?a.append(this.annotations[b].value):this.hasIcons?a.append(this.annotations[b].secondaryStructure):a.append(this.annotations[b].displayCharacter)),a.append(", ");if(0==this.label.indexOf("Consensus")){a.append("\n");for(b=0;b<this.annotations.length;b++)null!=
1480 this.annotations[b]&&a.append(this.annotations[b].description),a.append(", ")}return a.toString()});d(c$,"setThreshold",function(a){this.threshold=a},"jalview.datamodel.GraphLine");d(c$,"getThreshold",function(){return this.threshold});d(c$,"createSequenceMapping",function(a,b,c){if(null!=a&&(this.sequenceRef=a,null!=this.annotations)){this.sequenceMapping=new java.util.HashMap;for(var f,d=0;d<this.annotations.length;d++)null!=this.annotations[d]&&(f=c?a.findPosition(d):d+b,this.sequenceMapping.put(new Integer(f),
1481 this.annotations[d]))}},"jalview.datamodel.SequenceI,~N,~B");d(c$,"adjustForAlignment",function(){if(null!=this.sequenceRef&&null!=this.annotations){var a=0,a=this.sequenceRef.getLength();if(0!=a){for(var b,c=Array(a),f,a=this.sequenceRef.getStart();a<=this.sequenceRef.getEnd();a++)f=new Integer(a),this.sequenceMapping.containsKey(f)&&(b=this.sequenceRef.findIndex(a)-1,c[b]=this.sequenceMapping.get(f));this.annotations=c}}});d(c$,"compactAnnotationArray",function(){for(var a=0,b=this.annotations.length;a<
1482 b;)null==this.annotations[a]?(a+1<b&&System.arraycopy(this.annotations,a+1,this.annotations,a,b-a-1),b--):a++;var c=this.annotations;this.annotations=Array(a);System.arraycopy(c,0,this.annotations,0,a);return b});d(c$,"setSequenceRef",function(a){if(null!=a)if(null!=this.sequenceRef){var b=null==this.sequenceRef.getDatasetSequence(),c=null==a.getDatasetSequence();this.sequenceRef!==a&&b&&!c&&this.sequenceRef!==a.getDatasetSequence()&&!b&&c&&this.sequenceRef.getDatasetSequence()!==a&&!b&&(!c&&this.sequenceRef.getDatasetSequence()!==
1483 a.getDatasetSequence())&&!this.sequenceRef.equals(a)?(this.sequenceRef=null,null!=this.sequenceMapping&&(this.sequenceMapping=null),this.createSequenceMapping(a,1,!0),this.adjustForAlignment()):this.sequenceRef=a}else this.createSequenceMapping(a,1,!0),this.adjustForAlignment();else this.sequenceRef=this.sequenceMapping=null},"jalview.datamodel.SequenceI");d(c$,"getScore",function(){return this.score});d(c$,"setScore",function(a){this.$hasScore=!0;this.score=a},"~N");d(c$,"hasScore",function(){return this.$hasScore||
1484 !Double.isNaN(this.score)});m(c$,function(a,b,c){this.construct(a,b,null);this.setScore(c)},"~S,~S,~N");m(c$,function(a,b){this.construct(a);null!=this.annotations&&b.makeVisibleAnnotation(this)},"jalview.datamodel.AlignmentAnnotation,jalview.datamodel.ColumnSelection");d(c$,"setPadGaps",function(a,b){if(this.padGaps=a){this.hasText=!0;for(var c=0;c<this.annotations.length;c++)if(null==this.annotations[c])this.annotations[c]=new jalview.datamodel.Annotation(String.valueOf(b),null," ",0,null);else if(null==
1485 this.annotations[c].displayCharacter||this.annotations[c].displayCharacter.equals(" "))this.annotations[c].displayCharacter=String.valueOf(b)}},"~B,~S");d(c$,"getDescription",function(a){return a&&null!=this.sequenceRef?(a=this.description.toLowerCase().indexOf("<html>"),-1<a?"<html>"+this.sequenceRef.getName()+" : "+this.description.substring(a+6):this.sequenceRef.getName()+" : "+this.description):this.description},"~B");d(c$,"isValidStruc",function(){return-1==this.invalidrnastruc});d(c$,"getInvalidStrucPos",
1486 function(){return this.invalidrnastruc});d(c$,"getCalcId",function(){return this.calcId});d(c$,"setCalcId",function(a){this.calcId=a},"~S");d(c$,"isRNA",function(){return this.isrna});d(c$,"liftOver",function(a,b){if(b.getMappedWidth()!=b.getWidth())throw Error("liftOver currently not implemented for transfer of annotation between different types of seqeunce");var c=null!=b?b.getTo()===a||b.getTo()===a.getDatasetSequence():!1,f=new java.util.HashMap;if(null!=this.sequenceMapping&&null!=b){for(var d,
1487 k=this.sequenceMapping.entrySet().iterator();k.hasNext()&&((d=k.next())||1);){var g=Integer.$valueOf(c?b.getMappedPosition(d.getKey().intValue()):b.getPosition(d.getKey().intValue()));g.intValue()>=a.getStart()&&g.intValue()<=a.getEnd()&&f.put(g,d.getValue())}this.sequenceMapping=f;this.sequenceRef=a;this.adjustForAlignment()}},"jalview.datamodel.SequenceI,jalview.datamodel.Mapping");d(c$,"remap",function(a,b,c,f,d){if(null!=b){for(var k=this.sequenceMapping,g=new java.util.HashMap,e=-1,j,n=0;n<b.length&&
1488 ((j=b[n])||1);n++)if(!(0>e++)){var x=null;-1==c?x=this.sequenceMapping.get(Integer.$valueOf(d+e)):null!=j&&j.length>c&&(x=this.sequenceMapping.get(Integer.$valueOf(j[c])));null!=x&&(-1==f?g.put(Integer.$valueOf(d+e),x):-1<f&&f<j.length&&g.put(Integer.$valueOf(j[f]),x))}this.sequenceMapping=g;k.clear();null!=a&&(this.sequenceRef=a);this.adjustForAlignment()}},"jalview.datamodel.SequenceI,~A,~N,~N,~N");d(c$,"getProperty",function(a){return null==this.properties?null:this.properties.get(a)},"~S");d(c$,
1489 "setProperty",function(a,b){null==this.properties&&(this.properties=new java.util.HashMap);this.properties.put(a,b)},"~S,~S");d(c$,"hasProperties",function(){return null!=this.properties&&0<this.properties.size()});d(c$,"getProperties",function(){return null==this.properties?java.util.Collections.emptyList():this.properties.keySet()});d(c$,"getAnnotationForPosition",function(a){return null==this.sequenceMapping?null:this.sequenceMapping.get(new Integer(a))},"~N");d(c$,"setAnnotationId",function(){this.annotationId=
1490 "ann"+Long.toString(jalview.datamodel.AlignmentAnnotation.nextId())});c$.nextId=d(c$,"nextId",function(){return jalview.datamodel.AlignmentAnnotation.counter++});c$.$AlignmentAnnotation$AnnotCharSequence$=function(){A(self.c$);c$=s(function(){O(this,arguments);this.max=this.offset=0;r(this,arguments)},jalview.datamodel.AlignmentAnnotation,"AnnotCharSequence",null,CharSequence);m(c$,function(){this.construct(0,this.b$["jalview.datamodel.AlignmentAnnotation"].annotations.length)});m(c$,function(a,b){this.offset=
1491 a;this.max=b},"~N,~N");e(c$,"subSequence",function(a,b){return C(jalview.datamodel.AlignmentAnnotation.AnnotCharSequence,this,null,this.offset+a,this.offset+b)},"~N,~N");e(c$,"length",function(){return this.max-this.offset});e(c$,"charAt",function(a){return 0>a+this.offset||a+this.offset>=this.max||null==this.b$["jalview.datamodel.AlignmentAnnotation"].annotations[a+this.offset]||" ">=this.b$["jalview.datamodel.AlignmentAnnotation"].annotations[a+this.offset].secondaryStructure?" ":null==this.b$["jalview.datamodel.AlignmentAnnotation"].annotations[a+
1492 this.offset].displayCharacter||0==this.b$["jalview.datamodel.AlignmentAnnotation"].annotations[a+this.offset].displayCharacter.length?this.b$["jalview.datamodel.AlignmentAnnotation"].annotations[a+this.offset].secondaryStructure:this.b$["jalview.datamodel.AlignmentAnnotation"].annotations[a+this.offset].displayCharacter.charAt(0)},"~N");e(c$,"toString",function(){for(var a=N(this.max-this.offset,"\x00"),b=this.b$["jalview.datamodel.AlignmentAnnotation"].annotations.length,c=this.offset;c<b;c++)a[c]=
1493 null==this.b$["jalview.datamodel.AlignmentAnnotation"].annotations[c]||32>=this.b$["jalview.datamodel.AlignmentAnnotation"].annotations[c].secondaryStructure.charCodeAt(0)?" ":null==this.b$["jalview.datamodel.AlignmentAnnotation"].annotations[c].displayCharacter||0==this.b$["jalview.datamodel.AlignmentAnnotation"].annotations[c].displayCharacter.length?this.b$["jalview.datamodel.AlignmentAnnotation"].annotations[c].secondaryStructure:this.b$["jalview.datamodel.AlignmentAnnotation"].annotations[c].displayCharacter.charAt(0);
1494 return String.instantialize(a)});c$=z()};G(c$,"ANNOTATION_ID_PREFIX","ann","SEQUENCE_PROFILE",0,"STRUCTURE_PROFILE",1,"CDNA_PROFILE",2,"counter",0,"NO_GRAPH",0,"BAR_GRAPH",1,"LINE_GRAPH",2)});p("jalview.analysis");q(["java.util.Arrays","$.HashSet","$.Hashtable"],"jalview.analysis.Rna","jalview.analysis.SecStrConsensus $.WUSSParseException jalview.datamodel.SequenceFeature jalview.util.MessageManager java.lang.StringBuffer java.util.ArrayList $.Stack $.Vector".split(" "),function(){c$=B(jalview.analysis,
1495 "Rna");c$.isOpeningParenthesis=d(c$,"isOpeningParenthesis",function(a){return jalview.analysis.Rna.openingParsSet.contains((new Character(a)).charCodeAt(0))},"~S");c$.isClosingParenthesis=d(c$,"isClosingParenthesis",function(a){return jalview.analysis.Rna.closingParsSet.contains((new Character(a)).charCodeAt(0))},"~S");c$.matchingOpeningParenthesis=d(c$,"matchingOpeningParenthesis",function(a){if(!jalview.analysis.Rna.isClosingParenthesis(a))throw new jalview.analysis.WUSSParseException(jalview.util.MessageManager.formatMessage("exception.querying_matching_opening_parenthesis_for_non_closing_parenthesis",
1496 E(-1,[(new StringBuffer(a.charCodeAt(0))).toString()])),-1);return String.fromCharCode(jalview.analysis.Rna.closingToOpening.get((new Character(a)).charCodeAt(0)))},"~S");c$.GetSimpleBPs=d(c$,"GetSimpleBPs",function(a){for(var c=new java.util.Hashtable,f=new java.util.Vector,d=0;d<a.length;){var k=a.charAt(d);if(jalview.analysis.Rna.isOpeningParenthesis(k))c.containsKey((new Character(k)).charCodeAt(0))||c.put((new Character(k)).charCodeAt(0),new java.util.Stack),c.get((new Character(k)).charCodeAt(0)).push(new Integer(d));
1497 else if(jalview.analysis.Rna.isClosingParenthesis(k)){var g=jalview.analysis.Rna.matchingOpeningParenthesis(k);if(!c.containsKey((new Character(g)).charCodeAt(0)))throw new jalview.analysis.WUSSParseException(jalview.util.MessageManager.formatMessage("exception.mismatched_unseen_closing_char",E(-1,[(new StringBuffer(k.charCodeAt(0))).toString()])),d);var e=c.get((new Character(g)).charCodeAt(0));if(e.isEmpty())throw new jalview.analysis.WUSSParseException(jalview.util.MessageManager.formatMessage("exception.mismatched_closing_char",
1498 E(-1,[(new StringBuffer(k.charCodeAt(0))).toString()])),d);e=e.pop().intValue();f.add(new jalview.analysis.SecStrConsensus.SimpleBP(e,d))}d++}for(a=c.keySet().iterator();a.hasNext()&&((g=a.next())||1);)if(e=c.get((new Character(g)).charCodeAt(0)),!e.empty())throw new jalview.analysis.WUSSParseException(jalview.util.MessageManager.formatMessage("exception.mismatched_opening_char",E(-1,[(new StringBuffer(g.charCodeAt(0))).toString(),Integer.$valueOf(e.pop().intValue()).toString()])),d);return f},"CharSequence");
1499 c$.GetBasePairs=d(c$,"GetBasePairs",function(a){a=jalview.analysis.Rna.GetSimpleBPs(a);for(var c=Array(a.size()),f=0;f<a.size();f++){var d=a.elementAt(f);c[f]=new jalview.datamodel.SequenceFeature("RNA helix","","",d.getBP5(),d.getBP3(),"")}return c},"CharSequence");c$.GetModeleBP=d(c$,"GetModeleBP",function(a){a=jalview.analysis.Rna.GetSimpleBPs(a);return new java.util.ArrayList(a)},"CharSequence");c$.HelixMap=d(c$,"HelixMap",function(a){for(var c=0,f=0,d=9999999,k=a.length,g,e,j=new java.util.Hashtable,
1500 k=0;k<a.length;k++){g=a[k].getBegin();e=a[k].getEnd();g>d&&c++;for(d=a.length-1;0<=d;){var n=a[d].getBegin();if(n<f&&n>g)if(j.containsValue(new Integer(n))&&j.get(new Integer(n)).intValue()===c)continue;else{c++;break}d-=1}j.put(new Integer(g),new Integer(c));j.put(new Integer(e),new Integer(c));a[k].setFeatureGroup(Integer.toString(c));f=g;d=e}},"~A");c$.pairHash=c$.prototype.pairHash=new java.util.Hashtable;G(c$,"openingPars",E(-1,[new Character("("),new Character("["),new Character("{"),new Character("<"),
1501 new Character("A"),new Character("B"),new Character("C"),new Character("D"),new Character("E"),new Character("F"),new Character("G"),new Character("H"),new Character("I"),new Character("J"),new Character("K"),new Character("L"),new Character("M"),new Character("N"),new Character("O"),new Character("P"),new Character("Q"),new Character("R"),new Character("S"),new Character("T"),new Character("U"),new Character("V"),new Character("W"),new Character("X"),new Character("Y"),new Character("Z")]),"closingPars",
1502 E(-1,[new Character(")"),new Character("]"),new Character("}"),new Character(">"),new Character("a"),new Character("b"),new Character("c"),new Character("d"),new Character("e"),new Character("f"),new Character("g"),new Character("h"),new Character("i"),new Character("j"),new Character("k"),new Character("l"),new Character("m"),new Character("n"),new Character("o"),new Character("p"),new Character("q"),new Character("r"),new Character("s"),new Character("t"),new Character("u"),new Character("v"),new Character("w"),
1503 new Character("x"),new Character("y"),new Character("z")]));c$.openingParsSet=c$.prototype.openingParsSet=new java.util.HashSet(java.util.Arrays.asList(jalview.analysis.Rna.openingPars));c$.closingParsSet=c$.prototype.closingParsSet=new java.util.HashSet(java.util.Arrays.asList(jalview.analysis.Rna.closingPars));c$.closingToOpening=c$.prototype.closingToOpening=new java.util.Hashtable;for(var a=0;a<jalview.analysis.Rna.openingPars.length;a++)jalview.analysis.Rna.closingToOpening.put(jalview.analysis.Rna.closingPars[a],
1504 jalview.analysis.Rna.openingPars[a])});p("jalview.analysis");q(null,"jalview.analysis.SecStrConsensus",["java.util.ArrayList","$.Hashtable"],function(){c$=B(jalview.analysis,"SecStrConsensus");c$.extractConsensus=d(c$,"extractConsensus",function(a){for(var b=0,c,f=a.iterator();f.hasNext()&&((c=f.next())||1);)for(var d,k=c.iterator();k.hasNext()&&((d=k.next())||1);)b=Math.max(1+Math.max(d.bp5,d.bp3),b);for(var g=new java.util.ArrayList,e=0;e<b;e++)g.add(new java.util.Hashtable);for(f=a.iterator();f.hasNext()&&
1505 ((c=f.next())||1);)for(k=c.iterator();k.hasNext()&&((d=k.next())||1);)e=d.bp5,a=d.bp3,e=g.get(e),e.containsKey(new Integer(a))||e.put(new Integer(a),new Double(0)),e.put(new Integer(a),new Double(e.get(new Integer(a)).doubleValue()+1));k=jalview.analysis.SecStrConsensus.fillMatrix(g);k=jalview.analysis.SecStrConsensus.backtrack(k,g);c=w(g.size(),0);for(e=0;e<g.size();e++)c[e]=-1;for(k=k.iterator();k.hasNext()&&((d=k.next())||1);)c[d.bp5]=d.bp3,c[d.bp3]=d.bp5;return c},"java.util.ArrayList");c$.canBasePair=
1506 d(c$,"canBasePair",function(a,b,c){return a.get(b).containsKey(new Integer(c))},"java.util.ArrayList,~N,~N");c$.basePairScore=d(c$,"basePairScore",function(a,b,c){return a.get(b).get(new Integer(c))},"java.util.ArrayList,~N,~N");c$.fillMatrix=d(c$,"fillMatrix",function(a){for(var b=a.size(),c=U(b,b,0),f=1;f<=b;f++)for(var d=0;d<b-f+1;d++){var k=d+f-1;c[d][k]=0;if(d<k){c[d][k]=Math.max(c[d][k],c[d+1][k]);for(var g=d+1;g<=k;g++)if(jalview.analysis.SecStrConsensus.canBasePair(a,d,g)){var e=0;g>d+1&&
1507 (e=c[d+1][g-1]);var j=0;g<k&&(j=c[g+1][k]);c[d][k]=Math.max(c[d][k],jalview.analysis.SecStrConsensus.basePairScore(a,d,g)+e+j)}}}return c},"java.util.ArrayList");c$.backtrack=d(c$,"backtrack",function(a,b){return jalview.analysis.SecStrConsensus.backtrack(a,b,0,b.size()-1)},"~A,java.util.ArrayList");c$.backtrack=d(c$,"backtrack",function(a,b,c,f){var d=new java.util.ArrayList;if(c<f){var k=new java.util.ArrayList;k.add(new Integer(-1));for(var g=c+1;g<=f;g++)k.add(new Integer(g));for(k=k.iterator();k.hasNext()&&
1508 ((g=k.next())||1);)if(-1==g)a[c][f]==a[c+1][f]&&(d=jalview.analysis.SecStrConsensus.backtrack(a,b,c+1,f));else if(jalview.analysis.SecStrConsensus.canBasePair(b,c,g)){var e=0;g>c+1&&(e=a[c+1][g-1]);var j=0;g<f&&(j=a[g+1][f]);a[c][f]==jalview.analysis.SecStrConsensus.basePairScore(b,c,g)+e+j&&(d=jalview.analysis.SecStrConsensus.backtrack(a,b,c+1,g-1),d.addAll(jalview.analysis.SecStrConsensus.backtrack(a,b,g+1,f)),d.add(new jalview.analysis.SecStrConsensus.SimpleBP(c,g)))}}return d},"~A,java.util.ArrayList,~N,~N");
1509 A(self.c$);c$=s(function(){this.bp3=this.bp5=0;r(this,arguments)},jalview.analysis.SecStrConsensus,"SimpleBP");m(c$,function(){});m(c$,function(a,b){this.bp5=a;this.bp3=b},"~N,~N");d(c$,"setBP5",function(a){this.bp5=a},"~N");d(c$,"setBP3",function(a){this.bp3=a},"~N");d(c$,"getBP5",function(){return this.bp5});d(c$,"getBP3",function(){return this.bp3});e(c$,"toString",function(){return"("+this.bp5+","+this.bp3+")"});c$=z()});p("jalview.analysis");q(["java.lang.Exception"],"jalview.analysis.WUSSParseException",
1510 null,function(){c$=s(function(){this.problemPos=0;r(this,arguments)},jalview.analysis,"WUSSParseException",Exception);m(c$,function(a){this.construct("Invalid WUSS Notation",a)},"~N");m(c$,function(a,b){t(this,jalview.analysis.WUSSParseException,[a+" at or near position "+b]);this.problemPos=b},"~S,~N");d(c$,"getProblemPos",function(){return this.problemPos})});q(["java.util.Vector"],"java.util.Stack",["java.util.EmptyStackException"],function(){c$=B(java.util,"Stack",java.util.Vector);d(c$,"empty",
1511 function(){return 0==this.elementCount});d(c$,"peek",function(){try{return this.elementData[this.elementCount-1]}catch(a){if(v(a,IndexOutOfBoundsException))throw new java.util.EmptyStackException;throw a;}});d(c$,"pop",function(){try{var a=this.elementCount-1,b=this.elementData[a];this.removeElementAt(a);return b}catch(c){if(v(c,IndexOutOfBoundsException))throw new java.util.EmptyStackException;throw c;}});d(c$,"push",function(a){this.addElement(a);return a},"~O");d(c$,"search",function(a){a=this.lastIndexOf(a);
1512 return 0<=a?this.elementCount-a:-1},"~O")});p("jalview.datamodel");q(null,"jalview.datamodel.Annotation",["java.lang.Float","$.StringBuffer"],function(){c$=s(function(){this.description=this.displayCharacter="";this.secondaryStructure=" ";this.value=0;this.colour=null;r(this,arguments)},jalview.datamodel,"Annotation");m(c$,function(a,b,c,f){this.displayCharacter=a;this.description=b;this.secondaryStructure=c;this.value=f},"~S,~S,~S,~N");m(c$,function(a,b,c,f,d){this.construct(a,b,c,f);this.colour=
1513 d},"~S,~S,~S,~N,java.awt.Color");m(c$,function(a){null==a||this===a||(null!=a.displayCharacter&&(this.displayCharacter=String.instantialize(a.displayCharacter)),null!=a.description&&(this.description=String.instantialize(a.description)),this.secondaryStructure=a.secondaryStructure,this.value=a.value,this.colour=a.colour)},"jalview.datamodel.Annotation");m(c$,function(a){this.construct(null,null," ",a,null)},"~N");e(c$,"toString",function(){var a=new StringBuffer;null!=this.displayCharacter&&(a.append("'"),
1514 a.append(this.displayCharacter),a.append("'"));a.append(",");0!=this.secondaryStructure.charCodeAt(0)&&!(""+this.displayCharacter).equals(""+this.secondaryStructure)&&(a.append("'"),a.append(this.secondaryStructure),a.append("'"));a.append(",");null!=this.description&&0<this.description.length&&(a.append('"'),a.append(this.description),a.append('"'));a.append(",");Float.isNaN(this.value)||a.append(this.value);null!=this.colour&&(0<a.length()&&a.append(","),a.append("["),a.append(""+this.colour.getRed()),
1515 a.append(","),a.append(""+this.colour.getGreen()),a.append(","),a.append(""+this.colour.getBlue()),a.append("]"));return a.toString()})});p("jalview.datamodel");q(["java.awt.Color"],"jalview.datamodel.GraphLine",null,function(){c$=s(function(){this.value=0;this.label="";this.colour=null;this.displayed=!0;r(this,arguments)},jalview.datamodel,"GraphLine");J(c$,function(){this.colour=java.awt.Color.black});m(c$,function(a,b,c){this.value=a;null!=b&&(this.label=b);null!=c&&(this.colour=c)},"~N,~S,java.awt.Color");
1516 m(c$,function(a){null!=a&&(this.value=a.value,this.label=String.instantialize(a.label),this.colour=a.colour,this.displayed=a.displayed)},"jalview.datamodel.GraphLine");e(c$,"equals",function(a){return null!=a&&v(a,jalview.datamodel.GraphLine)?this.displayed==a.displayed&&this.value==a.value&&(null!=this.colour?null!=a.colour&&a.colour.equals(this.colour):null==a.colour)&&(null!=this.label?null!=a.label&&a.label.equals(this.label):null==a.label):!1},"~O")});p("jalview.datamodel");q(null,"jalview.datamodel.DBRefEntry",
1517 ["jalview.datamodel.Mapping"],function(){c$=s(function(){this.accessionId=this.version=this.source="";this.map=null;r(this,arguments)},jalview.datamodel,"DBRefEntry");m(c$,function(){});m(c$,function(a,b,c){this.construct(a,b,c,null)},"~S,~S,~S");m(c$,function(a,b,c,f){this.source=a.toUpperCase();this.version=b;this.accessionId=c;this.map=f},"~S,~S,~S,jalview.datamodel.Mapping");m(c$,function(a){this.construct(null==a.source?"":String.instantialize(a.source),null==a.version?"":String.instantialize(a.version),
1518 null==a.accessionId?"":String.instantialize(a.accessionId),null==a.map?null:new jalview.datamodel.Mapping(a.map))},"jalview.datamodel.DBRefEntry");e(c$,"equals",function(a){return null==a||!v(a,jalview.datamodel.DBRefEntry)?!1:a===this||this.equalRef(a)&&(null==this.map&&null==a.map||null!=this.map&&null!=a.map&&this.map.equals(a.map))?!0:!1},"~O");d(c$,"equalRef",function(a){return null==a?!1:a===this||null!=this.source&&null!=a.source&&this.source.equalsIgnoreCase(a.source)&&null!=this.accessionId&&
1519 null!=a.accessionId&&this.accessionId.equalsIgnoreCase(a.accessionId)&&null!=this.version&&null!=a.version&&this.version.equalsIgnoreCase(a.version)?!0:!1},"jalview.datamodel.DBRefEntry");d(c$,"getSource",function(){return this.source});d(c$,"getVersion",function(){return this.version});d(c$,"getAccessionId",function(){return this.accessionId});d(c$,"setAccessionId",function(a){this.accessionId=a},"~S");d(c$,"setSource",function(a){this.source=a},"~S");d(c$,"setVersion",function(a){this.version=a},
1520 "~S");d(c$,"getMap",function(){return this.map});d(c$,"setMap",function(a){this.map=a},"jalview.datamodel.Mapping");d(c$,"hasMap",function(){return null!=this.map});d(c$,"getSrcAccString",function(){return(null!=this.source?this.source:"")+":"+(null!=this.accessionId?this.accessionId:"")});e(c$,"toString",function(){return this.getSrcAccString()})});p("jalview.datamodel");c$=B(jalview.datamodel,"DBRefSource");G(c$,"UNIPROT","UNIPROT");c$.UP_NAME=c$.prototype.UP_NAME="UNIPROT_NAME";c$.UNIPROTKB=c$.prototype.UNIPROTKB=
1521 "UNIPROTKB/TREMBL";c$.EMBLCDSProduct=c$.prototype.EMBLCDSProduct="EMBLCDSPROTEIN";G(c$,"PDB","PDB","EMBL","EMBL","EMBLCDS","EMBLCDS","PFAM","PFAM","RFAM","RFAM");c$.GENEDB=c$.prototype.GENEDB="GENEDB";c$.DNACODINGDBS=c$.prototype.DNACODINGDBS=E(-1,[jalview.datamodel.DBRefSource.EMBL,jalview.datamodel.DBRefSource.EMBLCDS,jalview.datamodel.DBRefSource.GENEDB]);c$.CODINGDBS=c$.prototype.CODINGDBS=E(-1,[jalview.datamodel.DBRefSource.EMBLCDS,jalview.datamodel.DBRefSource.GENEDB]);c$.PROTEINDBS=c$.prototype.PROTEINDBS=
1522 E(-1,[jalview.datamodel.DBRefSource.UNIPROT,jalview.datamodel.DBRefSource.PDB,jalview.datamodel.DBRefSource.UNIPROTKB,jalview.datamodel.DBRefSource.EMBLCDSProduct]);c$.PROTEINSEQ=c$.prototype.PROTEINSEQ=E(-1,[jalview.datamodel.DBRefSource.UNIPROT,jalview.datamodel.DBRefSource.UNIPROTKB,jalview.datamodel.DBRefSource.EMBLCDSProduct]);c$.PROTEINSTR=c$.prototype.PROTEINSTR=E(-1,[jalview.datamodel.DBRefSource.PDB]);c$.DOMAINDBS=c$.prototype.DOMAINDBS=E(-1,[jalview.datamodel.DBRefSource.PFAM,jalview.datamodel.DBRefSource.RFAM]);
1523 G(c$,"SEQDB","SQ","DNASEQDB","NASQ","PROTSEQDB","PROTSQ","CODINGSEQDB","CODING","DNACODINGSEQDB","XONCODING","DOMAINDB","DOMAIN","MULTIACC","MULTIACC","ALIGNMENTDB","ALIGNMENTS");p("jalview.datamodel");q(["java.lang.Enum"],"jalview.datamodel.PDBEntry",null,function(){c$=s(function(){this.properties=this.chainCode=this.id=this.type=this.file=null;r(this,arguments)},jalview.datamodel,"PDBEntry");e(c$,"equals",function(a){return null==a||!v(a,jalview.datamodel.PDBEntry)?!1:a===this?!0:(this.type===a.type||
1524 null!=this.type&&null!=a.type&&a.type.equals(this.type))&&(this.id===a.id||null!=this.id&&null!=a.id&&a.id.equalsIgnoreCase(this.id))&&(this.chainCode===a.chainCode||null!=this.chainCode&&null!=a.chainCode&&a.chainCode.equalsIgnoreCase(this.chainCode))&&(this.properties===a.properties||null!=this.properties&&null!=a.properties&&this.properties.equals(a.properties))},"~O");m(c$,function(){});m(c$,function(a,b,c,f){this.id=a;this.chainCode=b;this.type=null==c?null:c.toString();this.file=f},"~S,~S,jalview.datamodel.PDBEntry.Type,~S");
1525 m(c$,function(a){this.file=a.file;this.type=a.type;this.id=a.id;this.chainCode=a.chainCode;null!=a.properties&&(this.properties=a.properties.clone())},"jalview.datamodel.PDBEntry");d(c$,"setFile",function(a){this.file=a},"~S");d(c$,"getFile",function(){return this.file});d(c$,"setType",function(a){this.type=a},"~S");d(c$,"setType",function(a){this.type=null==a?null:a.toString()},"jalview.datamodel.PDBEntry.Type");d(c$,"getType",function(){return this.type});d(c$,"setId",function(a){this.id=a},"~S");
1526 d(c$,"getId",function(){return this.id});d(c$,"setProperty",function(a){this.properties=a},"java.util.Hashtable");d(c$,"getProperty",function(){return this.properties});d(c$,"getChainCode",function(){return this.chainCode});d(c$,"setChainCode",function(a){this.chainCode=a},"~S");A(self.c$);c$=B(jalview.datamodel.PDBEntry,"Type",Enum);R(c$,"PDB",0,[]);R(c$,"FILE",1,[]);c$=z()});p("jalview.util");q(["java.util.regex.Pattern"],"jalview.util.StringUtils",["java.lang.StringBuffer","java.util.ArrayList"],
1527 function(){c$=B(jalview.util,"StringUtils");c$.insertCharAt=d(c$,"insertCharAt",function(a,b,c,f){var d=N(a.length+c,"\x00");b>=a.length?(System.arraycopy(a,0,d,0,a.length),b=a.length):System.arraycopy(a,0,d,0,b);for(var k=b;0<c;)d[k++]=f,c--;b<a.length&&System.arraycopy(a,b,d,k,a.length-b);return d},"~A,~N,~N,~S");c$.deleteChars=d(c$,"deleteChars",function(a,b,c){if(b>=a.length||0>b)return a;var f;c>=a.length?(f=N(b,"\x00"),System.arraycopy(a,0,f,0,b)):(f=N(a.length-c+b,"\x00"),System.arraycopy(a,
1528 0,f,0,b),System.arraycopy(a,c,f,b,a.length-c));return f},"~A,~N,~N");c$.getLastToken=d(c$,"getLastToken",function(a,b){if(null==a)return null;if(null==b)return a;var c=a.$plit(b);return c[c.length-1]},"~S,~S");c$.separatorListToArray=d(c$,"separatorListToArray",function(a,b){var c=b.length;if(null==a||a.equals("")||a.equals(b))return null;for(var f=new java.util.ArrayList,d=0,k,g,e=!1,j=!1,n=null;(k=a.indexOf(b,d))>=d;)g=0<k&&"\\"==a.charAt(k-1)?-1:0,e||j?f.set(f.size()-1,n=n+b+a.substring(d,k+g)):
1529 f.add(n=a.substring(d,k+g)),d=k+c,e=-1==g,j=jalview.util.StringUtils.DELIMITERS_PATTERN.matcher(n).matches();d<a.length&&(c=a.substring(d),e||j?f.set(f.size()-1,n+b+c):c.equals(b)||f.add(c));return 0<f.size()?(e=f.toArray(Array(f.size())),f.clear(),e):null},"~S,~S");c$.arrayToSeparatorList=d(c$,"arrayToSeparatorList",function(a,b){var c=new StringBuffer;if(null!=a&&0<a.length){for(var f=0,d=a.length;f<d;f++)null!=a[f]&&(0<c.length()&&c.append(b),c.append(a[f]));return c.toString()}return""+b},"~A,~S");
1530 c$.DELIMITERS_PATTERN=c$.prototype.DELIMITERS_PATTERN=java.util.regex.Pattern.compile(".*='[^']*(?!')");G(c$,"DEBUG",!1)});p("java.util.regex");q(null,"java.util.regex.Pattern",["java.lang.IllegalArgumentException","$.StringBuffer","java.util.regex.Matcher"],function(){c$=s(function(){this.$flags=0;this.regexp=null;r(this,arguments)},java.util.regex,"Pattern",null,java.io.Serializable);d(c$,"matcher",function(a){return new java.util.regex.Matcher(this,a)},"CharSequence");d(c$,"split",function(a,b){var c=
1531 [],f=this.matcher(a),d=0,k=0;if(0==a.length())return[""];for(;f.find()&&(d+1<b||0>=b);)c[c.length]=a.subSequence(k,f.start()).toString(),k=f.end(),d++;c[c.length]=a.subSequence(k,a.length()).toString();d++;if(0==b)for(;0<=--d&&0==c[d].toString().length;)c.length--;return c},"CharSequence,~N");d(c$,"split",function(a){return this.split(a,0)},"CharSequence");d(c$,"pattern",function(){return this.regexp.source});d(c$,"toString",function(){return this.pattern()});d(c$,"flags",function(){return this.$flags});
1532 c$.compile=d(c$,"compile",function(a,b){if(0!=b&&239!=(b|239))throw new IllegalArgumentException("Illegal flags");var c="g";0!=(b&8)&&(c+="m");0!=(b&2)&&(c+="i");var f=new java.util.regex.Pattern;f.regexp=RegExp(a,c);return f},"~S,~N");c$.compile=d(c$,"compile",function(a){return java.util.regex.Pattern.compile(a,0)},"~S");c$.matches=d(c$,"matches",function(a,b){return java.util.regex.Pattern.compile(a).matcher(b).matches()},"~S,CharSequence");c$.quote=d(c$,"quote",function(a){for(var b=(new StringBuffer).append("\\Q"),
1533 c=0,f;0<=(f=a.indexOf("\\E",c));)b.append(a.substring(c,f+2)).append("\\\\E\\Q"),c=f+2;return b.append(a.substring(c)).append("\\E").toString()},"~S");m(c$,($fz=function(){},$fz.isPrivate=!0,$fz));G(c$,"UNIX_LINES",1,"CASE_INSENSITIVE",2,"COMMENTS",4,"MULTILINE",8,"LITERAL",16,"DOTALL",32,"UNICODE_CASE",64,"CANON_EQ",128,"flagsBitMask",239)});p("java.util.regex");q(["java.util.regex.MatchResult"],"java.util.regex.Matcher",["java.lang.IllegalArgumentException","$.IndexOutOfBoundsException","$.NullPointerException",
1534 "$.StringBuffer"],function(){c$=s(function(){this.string=this.pat=null;this.rightBound=this.leftBound=-1;this.appendPos=0;this.results=this.replacementParts=this.processedRepl=this.replacement=null;r(this,arguments)},java.util.regex,"Matcher",null,java.util.regex.MatchResult);d(c$,"appendReplacement",function(a,b){this.processedRepl=this.processReplacement(b);a.append(this.string.subSequence(this.appendPos,this.start()));a.append(this.processedRepl);this.appendPos=this.end();return this},"StringBuffer,~S");
1535 d(c$,"processReplacement",($fz=function(a){if(null!=this.replacement&&this.replacement.equals(a)){if(null==this.replacementParts)return this.processedRepl;for(var b=new StringBuffer,c=0;c<this.replacementParts.length;c++)b.append(this.replacementParts[c]);return b.toString()}this.replacement=a;a=a.toCharArray();var f=new StringBuffer;this.replacementParts=null;for(var d=0,k=0,g=!1;d<a.length;){92==a[d].charCodeAt(0)&&!g&&(g=!0,d++);if(g)f.append(a[d]),g=!1;else if(36==a[d].charCodeAt(0)){null==this.replacementParts&&
1536 (this.replacementParts=[]);try{b=Integer.parseInt(String.instantialize(a,++d,1)),k!=f.length()&&(this.replacementParts[this.replacementParts.length]=f.subSequence(k,f.length()),k=f.length()),this.replacementParts[this.replacementParts.length]=(H("java.util.regex.Matcher$1")?0:java.util.regex.Matcher.$Matcher$1$(),C(java.util.regex.Matcher$1,this,null)),c=this.group(b),k+=c.length,f.append(c)}catch(e){if(v(e,IndexOutOfBoundsException))throw e;if(v(e,Exception))throw new IllegalArgumentException("Illegal regular expression format");
1537 throw e;}}else f.append(a[d]);d++}null!=this.replacementParts&&k!=f.length()&&(this.replacementParts[this.replacementParts.length]=f.subSequence(k,f.length()));return f.toString()},$fz.isPrivate=!0,$fz),"~S");d(c$,"reset",function(a){if(null==a)throw new NullPointerException("Empty new sequence!");this.string=a;return this.reset()},"CharSequence");d(c$,"reset",function(){this.leftBound=0;this.rightBound=this.string.length();this.appendPos=0;this.replacement=null;this.pat.regexp=RegExp(this.pat.regexp.source,
1538 ""+(this.pat.regexp.ignoreCase?"i":"")+(this.pat.regexp.global?"g":"")+(this.pat.regexp.multiline?"m":""));return this});d(c$,"region",function(a,b){if(a>b||0>a||0>b||a>this.string.length()||b>this.string.length())throw new IndexOutOfBoundsException(a+" is out of bound of "+b);this.leftBound=a;this.rightBound=b;this.results=null;this.appendPos=0;this.replacement=null;return this},"~N,~N");d(c$,"appendTail",function(a){return a.append(this.string.subSequence(this.appendPos,this.string.length()))},
1539 "StringBuffer");d(c$,"replaceFirst",function(a){this.reset();if(this.find()){var b=new StringBuffer;this.appendReplacement(b,a);return this.appendTail(b).toString()}return this.string.toString()},"~S");d(c$,"replaceAll",function(a){var b=new StringBuffer;for(this.reset();this.find();)this.appendReplacement(b,a);return this.appendTail(b).toString()},"~S");d(c$,"pattern",function(){return this.pat});d(c$,"group",function(a){return null==this.results||0>a||a>this.results.length?null:this.results[a]},
1540 "~N");d(c$,"group",function(){return this.group(0)});d(c$,"find",function(a){var b=this.string.length();if(0>a||a>b)throw new IndexOutOfBoundsException("Out of bound "+a);this.findAt(a);return!1},"~N");d(c$,"findAt",($fz=function(){return-1},$fz.isPrivate=!0,$fz),"~N");d(c$,"find",function(){this.results=this.pat.regexp.exec(this.string.subSequence(this.leftBound,this.rightBound));return null!=this.results});d(c$,"start",function(){var a=0,a=this.pat.regexp.lastIndex;return a-=this.results[0].length},
1541 "~N");d(c$,"end",function(){return this.pat.regexp.lastIndex},"~N");d(c$,"matches",function(){return this.find()});c$.quoteReplacement=d(c$,"quoteReplacement",function(a){if(0>a.indexOf("\\")&&0>a.indexOf("$"))return a;for(var b=new StringBuffer(2*a.length),c,f=a.length,d=0;d<f;d++)switch(c=a.charAt(d)){case "$":b.append("\\");b.append("$");break;case "\\":b.append("\\");b.append("\\");break;default:b.append(c)}return b.toString()},"~S");d(c$,"lookingAt",function(){return!1});d(c$,"start",function(){return this.start(0)});
1542 e(c$,"groupCount",function(){return null==this.results?0:this.results.length});d(c$,"end",function(){return this.end(0)});d(c$,"toMatchResult",function(){return this});d(c$,"useAnchoringBounds",function(){return this},"~B");d(c$,"hasAnchoringBounds",function(){return!1});d(c$,"useTransparentBounds",function(){return this},"~B");d(c$,"hasTransparentBounds",function(){return!1});d(c$,"regionStart",function(){return this.leftBound});d(c$,"regionEnd",function(){return this.rightBound});d(c$,"requireEnd",
1543 function(){return!1});d(c$,"hitEnd",function(){return!1});d(c$,"usePattern",function(a){if(null==a)throw new IllegalArgumentException("Empty pattern!");this.pat=a;this.results=null;return this},"java.util.regex.Pattern");m(c$,function(a,b){this.pat=a;this.string=b;this.leftBound=0;this.rightBound=this.string.toString().length},"java.util.regex.Pattern,CharSequence");c$.$Matcher$1$=function(){A(self.c$);c$=s(function(){O(this,arguments);this.grN=0;r(this,arguments)},java.util.regex,"Matcher$1");J(c$,
1544 function(){this.grN=gr});e(c$,"toString",function(){return this.b$["java.util.regex.Matcher"].group(this.grN)});c$=z()};G(c$,"MODE_FIND",1,"MODE_MATCH",2)});p("java.util.regex");M(java.util.regex,"MatchResult");p("jalview.util");q(null,"jalview.util.Format",["java.lang.Character","$.IllegalArgumentException","$.StringBuffer"],function(){c$=s(function(){this.precision=this.width=0;this.post=this.pre=null;this.left_align=this.show_space=this.alternate=this.show_plus=this.leading_zeroes=!1;this.fmt=
1545 "\x00";this.formatString=null;r(this,arguments)},jalview.util,"Format");m(c$,function(a){this.formatString=a;this.width=0;this.precision=-1;this.post=this.pre="";this.left_align=this.show_space=this.alternate=this.show_plus=this.leading_zeroes=!1;this.fmt=" ";for(var b=a.length,c=0,f=0;0==c;){if(f>=b)c=5;else if("%"==a.charAt(f))if(f<b-1)"%"==a.charAt(f+1)?(this.pre+="%",f++):c=1;else throw new IllegalArgumentException;else this.pre+=a.charAt(f);f++}for(;1==c;)f>=b?c=5:" "==a.charAt(f)?this.show_space=
1546 !0:"-"==a.charAt(f)?this.left_align=!0:"+"==a.charAt(f)?this.show_plus=!0:"0"==a.charAt(f)?this.leading_zeroes=!0:"#"==a.charAt(f)?this.alternate=!0:(c=2,f--),f++;for(;2==c;)f>=b?c=5:"0"<=a.charAt(f)&&"9">=a.charAt(f)?(this.width=10*this.width+a.charCodeAt(f)-48,f++):"."==a.charAt(f)?(c=3,this.precision=0,f++):c=4;for(;3==c;)f>=b?c=5:"0"<=a.charAt(f)&&"9">=a.charAt(f)?(this.precision=10*this.precision+a.charCodeAt(f)-48,f++):c=4;4==c&&(f>=b||(this.fmt=a.charAt(f)),f++);f<b&&(this.post=a.substring(f,
1547 b))},"~S");c$.getHexString=d(c$,"getHexString",function(a){var b,c;b=Integer.toHexString(a.getRed());2>b.length&&(b="0"+b);c=Integer.toHexString(a.getGreen());2>c.length&&(c="0"+c);a=Integer.toHexString(a.getBlue());2>a.length&&(a="0"+a);return b+c+a},"java.awt.Color");c$.printDouble=d(c$,"printDouble",function(a,b,c){a.print((new jalview.util.Format(b)).formDouble(c))},"java.io.PrintStream,~S,~N");c$.printLong=d(c$,"printLong",function(a,b,c){a.print((new jalview.util.Format(b)).formLong(c))},"java.io.PrintStream,~S,~N");
1548 c$.printChar=d(c$,"printChar",function(a,b,c){a.print((new jalview.util.Format(b)).formChar(c))},"java.io.PrintStream,~S,~S");c$.print=d(c$,"print",function(a,b,c){a.print((new jalview.util.Format(b)).form(c))},"java.io.PrintStream,~S,~S");c$.atoi=d(c$,"atoi",function(a){return jalview.util.Format.atol(a)},"~S");c$.atol=d(c$,"atol",function(a){for(var b=0;b<a.length&&Character.isWhitespace(a.charAt(b));)b++;return b<a.length&&"0"==a.charAt(b)?b+1<a.length&&("x"==a.charAt(b+1)||"X"==a.charAt(b+1))?
1549 jalview.util.Format.parseLong(a.substring(b+2),16):jalview.util.Format.parseLong(a,8):jalview.util.Format.parseLong(a,10)},"~S");c$.parseLong=d(c$,"parseLong",function(a,b){for(var c=0,f=1,d=0;c<a.length&&Character.isWhitespace(a.charAt(c));)c++;c<a.length&&"-"==a.charAt(c)?(f=-1,c++):c<a.length&&"+"==a.charAt(c)&&c++;for(;c<a.length;){var k=a.charAt(c);if("0"<=k&&k.charCodeAt(0)<48+b)d=d*b+k.charCodeAt(0)-48;else if("A"<=k&&k.charCodeAt(0)<65+b-10)d=d*b+k.charCodeAt(0)-65+10;else if("a"<=k&&k.charCodeAt(0)<
1550 97+b-10)d=d*b+k.charCodeAt(0)-97+10;else break;c++}return d*f},"~S,~N");c$.atof=d(c$,"atof",function(a){for(var b=0,c=1,f=0,d=1,k=0;b<a.length&&Character.isWhitespace(a.charAt(b));)b++;b<a.length&&"-"==a.charAt(b)?(c=-1,b++):b<a.length&&"+"==a.charAt(b)&&b++;for(;b<a.length;){var g=a.charAt(b);if("0"<=g&&"9">=g)0==k?f=10*f+g.charCodeAt(0)-48:1==k&&(d/=10,f+=d*(g.charCodeAt(0)-48));else if("."==g)if(0==k)k=1;else break;else{if("e"==g||"E"==g)return a=jalview.util.Format.parseLong(a.substring(b+1),
1551 10),c*f*Math.pow(10,a);break}b++}return c*f},"~S");d(c$,"formDouble",function(a){0>this.precision&&(this.precision=6);var b=1;0>a&&(a=-a,b=-1);if("f"==this.fmt)a=this.fixed_format(a);else if("e"==this.fmt||"E"==this.fmt||"g"==this.fmt||"G"==this.fmt)a=this.exp_format(a);else throw new IllegalArgumentException;return this.pad(this.sign(b,a))},"~N");d(c$,"formLong",function(a){var b=0;if("d"==this.fmt||"i"==this.fmt)0>a?(a=(""+a).substring(1),b=-1):(a=""+a,b=1);else if("o"==this.fmt)a=jalview.util.Format.convert(a,
1552 3,7,"01234567");else if("x"==this.fmt)a=jalview.util.Format.convert(a,4,15,"0123456789abcdef");else if("X"==this.fmt)a=jalview.util.Format.convert(a,4,15,"0123456789ABCDEF");else throw new IllegalArgumentException;return this.pad(this.sign(b,a))},"~N");d(c$,"formChar",function(a){if("c"!=this.fmt)throw new IllegalArgumentException;return this.pad(""+a)},"~S");d(c$,"form",function(a){if("s"!=this.fmt)throw new IllegalArgumentException;0<=this.precision&&(a=a.substring(0,this.precision));return this.pad(a)},
1553 "~S");c$.repeat=d(c$,"repeat",function(a,b){if(0>=b)return"";for(var c=new StringBuffer(b),f=0;f<b;f++)c.append(a);return c.toString()},"~S,~N");c$.convert=d(c$,"convert",function(a,b,c,f){if(0==a)return"0";for(var d="";0!=a;)d=f.charAt(a&c)+d,a>>>=b;return d},"~N,~N,~N,~S");d(c$,"pad",function(a){var b=jalview.util.Format.repeat(" ",this.width-a.length);return this.left_align?this.pre+a+b+this.post:this.pre+b+a+this.post},"~S");d(c$,"sign",function(a,b){var c="";0>a?c="-":0<a?this.show_plus?c="+":
1554 this.show_space&&(c=" "):"o"==this.fmt&&this.alternate&&0<b.length&&"0"!=b.charAt(0)?c="0":"x"==this.fmt&&this.alternate?c="0x":"X"==this.fmt&&this.alternate&&(c="0X");var f=0;if(this.leading_zeroes)f=this.width;else if(("d"==this.fmt||"i"==this.fmt||"x"==this.fmt||"X"==this.fmt||"o"==this.fmt)&&0<this.precision)f=this.precision;return c+jalview.util.Format.repeat("0",f-c.length-b.length)+b},"~N,~S");d(c$,"fixed_format",function(a){var b=("G"==this.fmt||"g"==this.fmt)&&!this.alternate;if(9223372036854775E3<
1555 a)return this.exp_format(a);if(0==this.precision)return Z(a+0.5)+(b?"":".");var c=Z(a),f=a-c;if(1<=f||0>f)return this.exp_format(a);a=1;for(var d="",k=1;k<=this.precision&&9223372036854775E3>=a;k++)a*=10,d+="0";f=Z(a*f+0.5);f>=a&&(f=0,c++);f=d+f;f="."+f.substring(f.length-this.precision,f.length);if(b){for(b=f.length-1;0<=b&&"0"==f.charAt(b);)b--;0<=b&&"."==f.charAt(b)&&b--;f=f.substring(0,b+1)}return c+f},"~N");d(c$,"exp_format",function(a){var b="",c=0,f=a,d=1;if(0!=a){for(;10<f;)c++,d/=10,f/=10;
1556 for(;1>f;)c--,d*=10,f*=10}if(("g"==this.fmt||"G"==this.fmt)&&-4<=c&&c<this.precision)return this.fixed_format(a);b+=this.fixed_format(a*d);b="e"==this.fmt||"g"==this.fmt?b+"e":b+"E";a="000";0<=c?(b+="+",a+=c):(b+="-",a+=-c);return b+a.substring(a.length-3,a.length)},"~N");e(c$,"toString",function(){return this.formatString})});p("jalview.util");q(["java.util.Iterator"],"jalview.util.ReverseListIterator",null,function(){c$=s(function(){this.iterator=null;r(this,arguments)},jalview.util,"ReverseListIterator",
1557 null,java.util.Iterator);m(c$,function(a){this.iterator=a.listIterator(a.size())},"java.util.List");e(c$,"hasNext",function(){return this.iterator.hasPrevious()});e(c$,"next",function(){return this.iterator.previous()});e(c$,"remove",function(){this.iterator.remove()})});p("jalview.commands");q(["jalview.commands.CommandI"],"jalview.commands.OrderCommand",["jalview.analysis.AlignmentSorter"],function(){c$=s(function(){this.al=this.seqs2=this.seqs=this.description=null;r(this,arguments)},jalview.commands,
1558 "OrderCommand",null,jalview.commands.CommandI);m(c$,function(a,b,c){this.description=a;this.seqs=b;this.seqs2=c.getSequencesArray();this.al=c;this.doCommand(null)},"~S,~A,jalview.datamodel.AlignmentI");e(c$,"getDescription",function(){return this.description});e(c$,"getSize",function(){return 1});e(c$,"doCommand",function(){jalview.analysis.AlignmentSorter.setOrder(this.al,this.seqs2)},"~A");e(c$,"undoCommand",function(){jalview.analysis.AlignmentSorter.setOrder(this.al,this.seqs)},"~A");d(c$,"getSequenceOrder",
1559 function(a){return a?this.seqs:this.seqs2},"~B")});p("jalview.datamodel");q(null,"jalview.datamodel.AlignmentOrder",["java.lang.Error","java.util.ArrayList","$.Arrays"],function(){c$=s(function(){this.Type=0;this.Order=this.Name=null;r(this,arguments)},jalview.datamodel,"AlignmentOrder");m(c$,function(){});m(c$,function(a){this.Order=a},"java.util.List");m(c$,function(a){this.Order=new java.util.ArrayList;var b;for(a=a.getSequences().iterator();a.hasNext()&&((b=a.next())||1);)this.Order.add(b)},"jalview.datamodel.AlignmentI");
1560 m(c$,function(a){this.Order=new java.util.ArrayList(java.util.Arrays.asList(a))},"~A");d(c$,"setType",function(a){this.Type=a},"~N");d(c$,"getType",function(){return this.Type});d(c$,"setName",function(a){this.Name=a},"~S");d(c$,"getName",function(){return this.Name});d(c$,"setOrder",function(a){this.Order=a},"java.util.List");d(c$,"getOrder",function(){return this.Order});d(c$,"updateSequence",function(a,b){var c=this.Order.indexOf(a);-1<c&&this.Order.set(c,b);return-1<c},"jalview.datamodel.SequenceI,jalview.datamodel.SequenceI");
1561 d(c$,"equals",function(a){return null==a||!v(a,jalview.datamodel.AlignmentOrder)?!1:this.equals(a,!0)},"~O");d(c$,"equals",function(a,b){if(a!==this)if(null!=a&&null!=this.Order&&null!=a.Order&&this.Order.size()==a.Order.size())if(b)for(var c=0,f=a.Order.size();c<f;c++){if(this.Order.get(c)!==a.Order.get(c))return!1}else throw Error("Weak sequenceI equivalence not yet implemented.");else return!1;return!0},"jalview.datamodel.AlignmentOrder,~B");d(c$,"isConsistent",function(a){return this.isConsistent(a,
1562 !0)},"jalview.datamodel.AlignmentOrder");d(c$,"isConsistent",function(a,b){if(a!==this)if(null!=a&&null!=this.Order&&null!=a.Order){var c,f;a.Order.size()>this.Order.size()?(c=a.Order,f=this.Order):(c=this.Order,f=a.Order);if(b)for(var d=-1,k=0,g=f.size();k<g;k++){var e=c.indexOf(f.get(k));if(e>d)d=e;else return!1}else throw Error("Weak sequenceI equivalence not yet implemented.");}else return!1;return!0},"jalview.datamodel.AlignmentOrder,~B");G(c$,"FILE",0,"MSA",1,"USER",2)});p("jalview.datamodel");
1563 q(["java.util.Vector"],"jalview.datamodel.ColumnSelection",["jalview.util.ShiftList","jalview.viewmodel.annotationfilter.AnnotationFilterParameter","java.lang.StringBuffer","java.util.ArrayList","$.Collections"],function(){c$=s(function(){this.hiddenColumns=this.selected=null;r(this,arguments)},jalview.datamodel,"ColumnSelection");J(c$,function(){this.selected=new java.util.Vector});d(c$,"addElement",function(a){a=new Integer(a);this.selected.contains(a)||this.selected.addElement(a)},"~N");d(c$,"clear",
1564 function(){this.selected.removeAllElements()});d(c$,"removeElement",function(a){a=new Integer(a);this.selected.contains(a)&&this.selected.removeElement(a)},"~N");d(c$,"removeElements",function(a,b){for(var c,f=a;f<b;f++)c=new Integer(f),this.selected.contains(c)&&this.selected.removeElement(c)},"~N,~N");d(c$,"getSelected",function(){return this.selected});d(c$,"contains",function(a){return this.selected.contains(new Integer(a))},"~N");d(c$,"columnAt",function(a){return this.selected.elementAt(a).intValue()},
1565 "~N");d(c$,"size",function(){return this.selected.size()});d(c$,"getMax",function(){for(var a=-1,b=0;b<this.selected.size();b++)this.columnAt(b)>a&&(a=this.columnAt(b));return a});d(c$,"getMin",function(){for(var a=1E9,b=0;b<this.selected.size();b++)this.columnAt(b)<a&&(a=this.columnAt(b));return a});d(c$,"compensateForEdit",function(a,b){for(var c=null,f=0;f<this.size();f++){var d=this.columnAt(f);d>=a&&this.selected.setElementAt(new Integer(d-b),f)}if(null!=this.hiddenColumns){c=new java.util.ArrayList;
1566 d=this.hiddenColumns.size();for(f=0;f<d;f++){var k=this.hiddenColumns.elementAt(f);k[0]>a&&a+b>k[1]?(c.add(k),this.hiddenColumns.removeElementAt(f),f--,d--):(k[0]>a&&(k[0]-=b,k[1]-=b),0>k[0]&&(k[0]=0))}this.revealHiddenColumns(0)}return c},"~N,~N");d(c$,"compensateForDelEdits",function(a,b){for(var c=0;c<this.size();c++){var f=this.columnAt(c);f>=a&&this.selected.setElementAt(new Integer(f-b),c)}if(null!=this.hiddenColumns)for(c=0;c<this.hiddenColumns.size();c++)f=this.hiddenColumns.elementAt(c),
1567 f[0]>=a&&(f[0]-=b),f[1]>=a&&(f[1]-=b),f[1]<f[0]&&this.hiddenColumns.removeElementAt(c--),0>f[0]&&(f[0]=0),0>f[1]&&(f[1]=0)},"~N,~N");d(c$,"compensateForEdits",function(a){if(null!=a){var b=a.getShifts();if(null!=b&&0<b.size())for(var c=0,f=0,d=b.size();f<d;f++){var k=b.get(f);this.compensateForDelEdits(c+k[0],k[1]);c-=k[1]}return a.getInverse()}return null},"jalview.util.ShiftList");d(c$,"pruneIntervalVector",function(a,b){for(var c=!1,f=0,d=b.size()-1,k=0,g=a.size()-1,e=b.elementAt(f),j=a.get(k);f<=
1568 d&&k<=g;){var n=e[1]>=j[0];if(n){var x=j[0]+j[1];if(x<e[0]||x<j[0])k<g?j=a.get(++k):k++;else{var u=e[0]>=j[0],m=e[0]<x,p=e[1]<x;if(u){if(p){b.removeElementAt(f);c=!0;d--;f<=d&&(e=b.elementAt(f));continue}m&&(e[0]=x,u=!u,c=!0)}u||(p?n&&(e[1]=j[0]-1,c=!0):k<g?j=a.get(++k):k++)}}else f<d?e=b.elementAt(++f):f++}return c},"java.util.List,java.util.Vector");d(c$,"pruneColumnList",function(a,b){for(var c=0,f=a.size(),d=a.get(c++),k=0,g=b.size();k<g&&c<=f;){var e=b.elementAt(k++).intValue();d[0]<=e&&(d[1]+
1569 d[0]>=e?(b.removeElementAt(--k),g--):(c<f&&(d=a.get(c)),c++))}return!1},"java.util.List,java.util.Vector");d(c$,"pruneDeletions",function(a){if(null!=a){var b=a.getShifts();null!=b&&0<b.size()&&(null!=this.hiddenColumns&&(this.pruneIntervalVector(b,this.hiddenColumns),null!=this.hiddenColumns&&0==this.hiddenColumns.size()&&(this.hiddenColumns=null)),null!=this.selected&&0<this.selected.size()&&(this.pruneColumnList(b,this.selected),null!=this.selected&&0==this.selected.size()&&(this.selected=null)),
1570 this.compensateForEdits(a))}},"jalview.util.ShiftList");d(c$,"getHiddenColumns",function(){return null==this.hiddenColumns?java.util.Collections.emptyList():this.hiddenColumns});d(c$,"adjustForHiddenColumns",function(a){if(null!=this.hiddenColumns)for(var b=0;b<this.hiddenColumns.size();b++){var c=this.hiddenColumns.elementAt(b);a>=c[0]&&(a+=c[1]-c[0]+1)}return a},"~N");d(c$,"findColumnPosition",function(a){var b=a;if(null!=this.hiddenColumns){var c=0,f;do f=this.hiddenColumns.elementAt(c++),a>f[1]&&
1571 (b-=f[1]+1-f[0]);while(a>f[1]&&c<this.hiddenColumns.size());if(a>f[0]&&a<f[1])return f[0]+a-b}return b},"~N");d(c$,"findHiddenRegionPosition",function(a){var b=0;if(null!=this.hiddenColumns){var c=0,f=0;do{b=this.hiddenColumns.elementAt(c);if(0==a)return b[0];f+=b[1]+1-b[0];b=b[1]+1;c++}while(c<a+1);b-=f}return b},"~N");d(c$,"getHiddenBoundaryRight",function(a){if(null!=this.hiddenColumns){var b=0;do{var c=this.hiddenColumns.elementAt(b);if(a<c[0])return c[0];b++}while(b<this.hiddenColumns.size())}return a},
1572 "~N");d(c$,"getHiddenBoundaryLeft",function(a){if(null!=this.hiddenColumns){var b=this.hiddenColumns.size()-1;do{var c=this.hiddenColumns.elementAt(b);if(a>c[1])return c[1];b--}while(-1<b)}return a},"~N");d(c$,"hideSelectedColumns",function(){for(;0<this.size();){var a=this.getSelected().firstElement().intValue();this.hideColumns(a)}});d(c$,"hideColumns",function(a,b){null==this.hiddenColumns&&(this.hiddenColumns=new java.util.Vector);for(var c=!1,f=!1,d=0;d<this.hiddenColumns.size();d++){var k=this.hiddenColumns.elementAt(d);
1573 if(a<=k[1]&&b>=k[0]){this.hiddenColumns.removeElementAt(d);f=!0;break}else if(b<k[0]&&a<k[0]){this.hiddenColumns.insertElementAt(w(-1,[a,b]),d);c=!0;break}}f?this.hideColumns(a,b):c||this.hiddenColumns.addElement(w(-1,[a,b]))},"~N,~N");d(c$,"hideColumns",function(a){var b=a;for(a+=1;this.contains(b);)this.removeElement(b),b--;for(;this.contains(a);)this.removeElement(a),a++;b++;a--;b>a&&(b=a);this.hideColumns(b,a)},"~N");d(c$,"revealAllHiddenColumns",function(){if(null!=this.hiddenColumns)for(var a=
1574 0;a<this.hiddenColumns.size();a++)for(var b=this.hiddenColumns.elementAt(a),c=b[0];c<b[1]+1;c++)this.addElement(c);this.hiddenColumns=null});d(c$,"revealHiddenColumns",function(a){for(var b=0;b<this.hiddenColumns.size();b++){var c=this.hiddenColumns.elementAt(b);if(a==c[0]){for(a=c[0];a<c[1]+1;a++)this.addElement(a);this.hiddenColumns.removeElement(c);break}}0==this.hiddenColumns.size()&&(this.hiddenColumns=null)},"~N");d(c$,"isVisible",function(a){if(null!=this.hiddenColumns)for(var b=0;b<this.hiddenColumns.size();b++){var c=
1575 this.hiddenColumns.elementAt(b);if(a>=c[0]&&a<=c[1])return!1}return!0},"~N");m(c$,function(a){if(null!=a){if(null!=a.selected){this.selected=new java.util.Vector;for(var b=0,c=a.selected.size();b<c;b++)this.selected.addElement(a.selected.elementAt(b))}if(null!=a.hiddenColumns){this.hiddenColumns=new java.util.Vector(a.hiddenColumns.size());b=0;for(c=a.hiddenColumns.size();b<c;b++){var f,d;f=a.hiddenColumns.elementAt(b);null!=f&&(d=w(f.length,0),System.arraycopy(f,0,d,0,f.length),this.hiddenColumns.addElement(d))}}}},
1576 "jalview.datamodel.ColumnSelection");m(c$,function(){});d(c$,"getVisibleSequenceStrings",function(a,b,c){var f,d=c.length,k=Array(d);if(null!=this.hiddenColumns&&0<this.hiddenColumns.size())for(f=0;f<d;f++){for(var g=new StringBuffer,e=this.getHiddenColumns(),j=a,n=b,x,u,m=0;m<e.size();m++)if(x=e.get(m),u=x[0],x=x[1],!(u<a)){j=Math.min(j,x+1);n=Math.min(n,u);if(j>n)break;g.append(c[f].getSequence(j,n));j=x+1;n=b}b>j&&g.append(c[f].getSequence(j,b));k[f]=g.toString()}else for(f=0;f<d;f++)k[f]=c[f].getSequenceAsString(a,
1577 b);return k},"~N,~N,~A");d(c$,"getVisibleContigs",function(a,b){if(null!=this.hiddenColumns&&0<this.hiddenColumns.size()){for(var c=new java.util.ArrayList,f=this.getHiddenColumns(),d=a,k,g,e=0;d<b&&e<f.size();e++)k=f.get(e),g=k[0],k=k[1],k<d||(g>d&&c.add(w(-1,[d,g-1])),d=k+1);d<b&&c.add(w(-1,[d,b-1]));f=w(2*c.size(),0);d=0;for(e=c.size();d<e;d++)g=c.get(d),c.set(d,null),f[2*d]=g[0],f[2*d+1]=g[1];c.clear();return f}return w(-1,[a,b-1])},"~N,~N");d(c$,"makeVisibleAnnotation",function(a){this.makeVisibleAnnotation(-1,
1578 -1,a)},"jalview.datamodel.AlignmentAnnotation");d(c$,"makeVisibleAnnotation",function(a,b,c){if(null!=c.annotations)if(a==b&&-1==b&&(a=0,b=c.annotations.length),null!=this.hiddenColumns&&0<this.hiddenColumns.size()){for(var f=new java.util.Vector,d=null,k=this.getHiddenColumns(),g=a,d=b,e,j,n=0,x=0;x<k.size();x++)if(e=k.get(x),j=e[0],e=e[1],!(j<a)){g=Math.min(g,e+1);d=Math.min(d,j);if(g>d)break;f.addElement(d=Array(d-g));System.arraycopy(c.annotations,g,d,0,d.length);n+=d.length;g=e+1;d=b}b>g&&(f.addElement(d=
1579 Array(b-g+1)),d.length+g<=c.annotations.length?System.arraycopy(c.annotations,g,d,0,d.length):System.arraycopy(c.annotations,g,d,0,c.annotations.length-g),n+=d.length);if(0!=n){c.annotations=Array(n);var n=0,u;for(a=f.iterator();a.hasNext()&&((u=a.next())||1);)System.arraycopy(u,0,c.annotations,n,u.length),n+=u.length}}else c.restrict(a,b)},"~N,~N,jalview.datamodel.AlignmentAnnotation");d(c$,"invertColumnSelection",function(a,b){for(var c=null!=this.hiddenColumns&&0<this.hiddenColumns.size(),f=a;f<
1580 b;f++)this.contains(f)?this.removeElement(f):(!c||this.isVisible(f))&&this.addElement(f)},"~N,~N");d(c$,"addElementsFrom",function(a){if(null!=a&&0<a.size()){var b;for(a=a.getSelected().iterator();a.hasNext()&&((b=a.next())||1);)null!=this.hiddenColumns&&this.isVisible(b.intValue())&&(this.selected.contains(b)||this.selected.addElement(b))}},"jalview.datamodel.ColumnSelection");d(c$,"setElementsFrom",function(a){this.selected=new java.util.Vector;if(null!=a.selected&&0<a.selected.size())if(null!=
1581 this.hiddenColumns&&0<this.hiddenColumns.size())this.addElementsFrom(a);else{var b;for(a=a.getSelected().iterator();a.hasNext()&&((b=a.next())||1);)this.addElement(b.intValue())}},"jalview.datamodel.ColumnSelection");c$.propagateInsertions=d(c$,"propagateInsertions",function(a,b,c){var f=b.getGapCharacter();c=c.getAlignmentAndColumnSelection(f);f=c[1];f.propagateInsertions(a,b,c[0][0]);return f},"jalview.datamodel.SequenceI,jalview.datamodel.AlignmentI,jalview.datamodel.AlignmentView");d(c$,"propagateInsertions",
1582 function(a,b,c){var f=b.getGapCharacter();this.pruneDeletions(jalview.util.ShiftList.parseMap(c.gapMap()));for(var d=this.getVisibleContigs(0,a.getLength()),k=0,g=0;g<d.length;g+=2){if(d[g]>k){for(var e=new StringBuffer,j=0,n=d[g]-k;j<n;j++)e.append(f);j=0;for(n=b.getHeight();j<n;j++){var x=b.getSequenceAt(j);if(x!==a)if(x=b.getSequenceAt(j).getSequenceAsString(),x.length<=k+0){var u=k+0-x.length-1;if(0<u)for(x+=e;0<(u=k+0-x.length-1);)if(u>=e.length())x+=e.toString();else{var m=N(u,"\x00");e.getChars(0,
1583 u,m,0);x+=m.toString()}}else b.getSequenceAt(j).setSequence(x.substring(0,k+0)+e.toString()+x.substring(k+0))}}k=d[g+1]+1}if(0+k<a.getLength()){e=new StringBuffer;j=0;for(n=a.getLength()-k-0;j<n;j++)e.append(f);j=0;for(n=b.getHeight();j<n;j++)if(x=b.getSequenceAt(j),x!==a){x=x.getSequenceAsString();for(u=c.getLength()-x.length;0<u;)u>=e.length()?x+=e.toString():(m=N(u,"\x00"),e.getChars(0,u,m,0),x+=m.toString()),u=c.getLength()-x.length}}},"jalview.datamodel.SequenceI,jalview.datamodel.AlignmentI,jalview.datamodel.SequenceI");
1584 d(c$,"hasSelectedColumns",function(){return null!=this.selected&&0<this.selected.size()});d(c$,"hasHiddenColumns",function(){return null!=this.hiddenColumns&&0<this.hiddenColumns.size()});d(c$,"hasManyHiddenColumns",function(){return null!=this.hiddenColumns&&1<this.hiddenColumns.size()});d(c$,"hideInsertionsFor",function(a){var b;for(a=a.getInsertions().iterator();a.hasNext()&&((b=a.next())||1);)this.hideColumns(b[0],b[1])},"jalview.datamodel.SequenceI");d(c$,"filterAnnotations",function(a,b){this.revealAllHiddenColumns();
1585 this.clear();var c=0;do{if(null!=a[c]){var f=!1;b.getThresholdType()===jalview.viewmodel.annotationfilter.AnnotationFilterParameter.ThresholdType.ABOVE_THRESHOLD&&a[c].value>=b.getThresholdValue()&&(f=!0);b.getThresholdType()===jalview.viewmodel.annotationfilter.AnnotationFilterParameter.ThresholdType.BELOW_THRESHOLD&&a[c].value<=b.getThresholdValue()&&(f=!0);b.isFilterAlphaHelix()&&"H"==a[c].secondaryStructure&&(f=!0);b.isFilterBetaSheet()&&"E"==a[c].secondaryStructure&&(f=!0);b.isFilterTurn()&&
1586 "S"==a[c].secondaryStructure&&(f=!0);var d=b.getRegexString();if(null!=d&&!b.getRegexSearchFields().isEmpty()){var k=b.getRegexSearchFields();try{k.contains(jalview.viewmodel.annotationfilter.AnnotationFilterParameter.SearchableAnnotationField.DISPLAY_STRING)&&a[c].displayCharacter.matches(d)&&(f=!0)}catch(g){if(y(g,java.util.regex.PatternSyntaxException))a[c].displayCharacter.equals(d)&&(f=!0);else throw g;}k.contains(jalview.viewmodel.annotationfilter.AnnotationFilterParameter.SearchableAnnotationField.DESCRIPTION)&&
1587 (null!=a[c].description&&a[c].description.matches(d))&&(f=!0)}f&&this.addElement(c)}c++}while(c<a.length);return!1},"~A,jalview.viewmodel.annotationfilter.AnnotationFilterParameter")});p("jalview.util");q(null,"jalview.util.ShiftList",["java.util.ArrayList"],function(){c$=s(function(){this.shifts=null;r(this,arguments)},jalview.util,"ShiftList");m(c$,function(){this.shifts=new java.util.ArrayList});d(c$,"addShift",function(a,b){for(var c=0,f=null;c<this.shifts.size()&&(f=this.shifts.get(c))[0]<a;)c++;
1588 c==this.shifts.size()?this.shifts.add(c,w(-1,[a,b])):f[1]+=b},"~N,~N");d(c$,"shift",function(a){if(0==this.shifts.size())return a;for(var b=a,c=0,f;c<this.shifts.size()&&(f=this.shifts.get(c++))[0]<=a;)b+=f[1];return b},"~N");d(c$,"clear",function(){this.shifts.clear()});d(c$,"getInverse",function(){var a=new jalview.util.ShiftList;if(null!=this.shifts)for(var b,c=this.shifts.iterator();c.hasNext()&&((b=c.next())||1);)null!=b&&a.shifts.add(w(-1,[b[0],-b[1]]));return a});c$.parseMap=d(c$,"parseMap",
1589 function(a){var b=null;if(null!=a&&0<a.length)for(var b=new jalview.util.ShiftList,c=0,f=0;c<a.length;f++,c++)f!=a[c]&&(b.addShift(f,a[c]-f),f=a[c]);return b},"~A");d(c$,"getShifts",function(){return this.shifts})});p("jalview.viewmodel.annotationfilter");q(["java.lang.Enum","java.util.ArrayList"],"jalview.viewmodel.annotationfilter.AnnotationFilterParameter",null,function(){c$=s(function(){this.thresholdType=null;this.thresholdValue=0;this.filterTurn=this.filterBetaSheet=this.filterAlphaHelix=!1;
1590 this.regexSearchFields=this.regexString=null;r(this,arguments)},jalview.viewmodel.annotationfilter,"AnnotationFilterParameter");J(c$,function(){this.regexSearchFields=new java.util.ArrayList});d(c$,"getThresholdType",function(){return this.thresholdType});d(c$,"setThresholdType",function(a){this.thresholdType=a},"jalview.viewmodel.annotationfilter.AnnotationFilterParameter.ThresholdType");d(c$,"getThresholdValue",function(){return this.thresholdValue});d(c$,"setThresholdValue",function(a){this.thresholdValue=
1591 a},"~N");d(c$,"getRegexString",function(){return this.regexString});d(c$,"setRegexString",function(a){this.regexString=a},"~S");d(c$,"getRegexSearchFields",function(){return this.regexSearchFields});d(c$,"addRegexSearchField",function(a){this.regexSearchFields.add(a)},"jalview.viewmodel.annotationfilter.AnnotationFilterParameter.SearchableAnnotationField");d(c$,"isFilterAlphaHelix",function(){return this.filterAlphaHelix});d(c$,"setFilterAlphaHelix",function(a){this.filterAlphaHelix=a},"~B");d(c$,
1592 "isFilterBetaSheet",function(){return this.filterBetaSheet});d(c$,"setFilterBetaSheet",function(a){this.filterBetaSheet=a},"~B");d(c$,"isFilterTurn",function(){return this.filterTurn});d(c$,"setFilterTurn",function(a){this.filterTurn=a},"~B");A(self.c$);c$=B(jalview.viewmodel.annotationfilter.AnnotationFilterParameter,"ThresholdType",Enum);R(c$,"NO_THRESHOLD",0,[]);R(c$,"BELOW_THRESHOLD",1,[]);R(c$,"ABOVE_THRESHOLD",2,[]);c$=z();A(self.c$);c$=B(jalview.viewmodel.annotationfilter.AnnotationFilterParameter,
1593 "SearchableAnnotationField",Enum);R(c$,"DISPLAY_STRING",0,[]);R(c$,"DESCRIPTION",1,[]);c$=z()});p("jalview.datamodel");q(["java.util.ArrayList"],"jalview.datamodel.SearchResults",["java.lang.StringBuilder","java.util.Arrays"],function(){c$=s(function(){this.matches=null;H("jalview.datamodel.SearchResults.Match")||jalview.datamodel.SearchResults.$SearchResults$Match$();r(this,arguments)},jalview.datamodel,"SearchResults");J(c$,function(){this.matches=new java.util.ArrayList});d(c$,"addResult",function(a,
1594 b,c){this.matches.add(C(jalview.datamodel.SearchResults.Match,this,null,a,b,c))},"jalview.datamodel.SequenceI,~N,~N");d(c$,"involvesSequence",function(a){for(var b=a.getDatasetSequence(),c,f=this.matches.iterator();f.hasNext()&&((c=f.next())||1);)if(null!=c.sequence&&(c.sequence===a||c.sequence===b))return!0;return!1},"jalview.datamodel.SequenceI");d(c$,"getResults",function(a,b,c){if(this.matches.isEmpty())return null;for(var f=null,d=null,k,g=0,e=0,j,n=this.matches.iterator();n.hasNext()&&((j=n.next())||
1595 1);)d=!1,j.sequence===a?(d=!0,g=a.findIndex(j.start)-1,e=a.findIndex(j.end)-1):j.sequence===a.getDatasetSequence()&&(d=!0,g=a.findIndex(j.start)-1,e=a.findIndex(j.end)-1),d&&(g<=c&&e>=b)&&(g<b&&(g=b),e>c&&(e=c),null==f?f=w(-1,[g,e]):(k=f.length,d=w(k+2,0),System.arraycopy(f,0,d,0,k),f=d,f[k]=g,f[k+1]=e));return f},"jalview.datamodel.SequenceI,~N,~N");d(c$,"getSize",function(){return this.matches.size()});d(c$,"getResultSequence",function(a){return this.matches.get(a).sequence},"~N");d(c$,"getResultStart",
1596 function(a){return this.matches.get(a).start},"~N");d(c$,"getResultEnd",function(a){return this.matches.get(a).end},"~N");d(c$,"isEmpty",function(){return this.matches.isEmpty()});d(c$,"getResults",function(){return this.matches});e(c$,"toString",function(){for(var a=new StringBuilder(256),b,c=this.matches.iterator();c.hasNext()&&((b=c.next())||1);)a.append(b.toString());return a.toString()});c$.$SearchResults$Match$=function(){A(self.c$);c$=s(function(){O(this,arguments);this.sequence=null;this.end=
1597 this.start=0;r(this,arguments)},jalview.datamodel.SearchResults,"Match");m(c$,function(a,b,c){this.sequence=a;this.start=b;this.end=c},"jalview.datamodel.SequenceI,~N,~N");d(c$,"getSequence",function(){return this.sequence});d(c$,"getStart",function(){return this.start});d(c$,"getEnd",function(){return this.end});e(c$,"toString",function(){var a=this.sequence.getSequence(),b=Math.max(this.start-1,0),c=Math.min(this.end,a.length+1);return String.valueOf(java.util.Arrays.copyOfRange(a,b,c))});d(c$,
1598 "setSequence",function(a){this.sequence=a},"jalview.datamodel.SequenceI");c$=z()}});p("jalview.datamodel");q(["jalview.datamodel.AnnotatedCollectionI","java.awt.Color","java.util.ArrayList"],"jalview.datamodel.SequenceGroup","jalview.analysis.AAFrequency $.Conservation jalview.datamodel.AlignmentAnnotation $.Sequence jalview.schemes.ResidueProperties jalview.util.Comparison java.lang.StringBuffer".split(" "),function(){c$=s(function(){this.aaFrequency=this.conserve=this.description=this.groupName=
1599 null;this.displayText=this.displayBoxes=!0;this.showNonconserved=this.colourText=!1;this.seqrep=this.sequences=null;this.width=-1;this.cs=null;this.endRes=this.startRes=0;this.idColour=this.outlineColour=null;this.thresholdTextColour=0;this.textColour2=this.textColour=null;this.ignoreGapsInConsensus=!0;this.normaliseSequenceLogo=this.showSequenceLogo=!1;this.consPercGaps=25;this.consensusData=null;this.hidecols=this.hidereps=!1;this.conservation=this.consensus=null;this.showConsensusHistogram=!1;
1600 this.context=null;r(this,arguments)},jalview.datamodel,"SequenceGroup",null,jalview.datamodel.AnnotatedCollectionI);J(c$,function(){this.sequences=new java.util.ArrayList;this.textColour=this.outlineColour=java.awt.Color.black;this.textColour2=java.awt.Color.white});d(c$,"isShowSequenceLogo",function(){return this.showSequenceLogo});m(c$,function(){this.groupName="JGroup:"+this.hashCode()});m(c$,function(a,b,c,f,d,k,g,e){this.sequences=a;this.groupName=b;this.displayBoxes=f;this.displayText=d;this.colourText=
1601 k;this.cs=c;this.startRes=g;this.endRes=e;this.recalcConservation()},"java.util.List,~S,jalview.schemes.ColourSchemeI,~B,~B,~B,~N,~N");m(c$,function(a){null!=a&&(this.sequences=new java.util.ArrayList,this.sequences.addAll(a.sequences),null!=a.groupName&&(this.groupName=String.instantialize(a.groupName)),this.displayBoxes=a.displayBoxes,this.displayText=a.displayText,this.colourText=a.colourText,this.startRes=a.startRes,this.endRes=a.endRes,this.cs=a.cs,null!=a.description&&(this.description=String.instantialize(a.description)),
1602 this.hidecols=a.hidecols,this.hidereps=a.hidereps,this.idColour=a.idColour,this.outlineColour=a.outlineColour,this.seqrep=a.seqrep,this.textColour=a.textColour,this.textColour2=a.textColour2,this.thresholdTextColour=a.thresholdTextColour,this.width=a.width,this.ignoreGapsInConsensus=a.ignoreGapsInConsensus,null!=a.conserve&&this.recalcConservation())},"jalview.datamodel.SequenceGroup");d(c$,"getSelectionAsNewSequences",function(a){for(var b=this.sequences.size(),c=Array(b),f=this.getSequencesInOrder(a),
1603 d=0,k=0;d<f.length;d++){var g=f[d];c[k]=g.getSubSequence(this.startRes,this.endRes+1);if(null!=c[k]){c[k].setDescription(g.getDescription());c[k].setDBRef(g.getDBRef());c[k].setSequenceFeatures(g.getSequenceFeatures());null!=g.getDatasetSequence()&&c[k].setDatasetSequence(g.getDatasetSequence());if(null!=g.getAnnotation())for(var e=a.getAlignmentAnnotation(),j=0;j<g.getAnnotation().length;j++){var n=g.getAnnotation()[j];if(null!=e){for(var x=!1,u=0;u<e.length;u++)if(e[u]===n){x=!0;break}if(!x)continue}n=
1604 new jalview.datamodel.AlignmentAnnotation(g.getAnnotation()[j]);n.restrict(this.startRes,this.endRes);n.setSequenceRef(c[k]);n.adjustForAlignment();c[k].addAlignmentAnnotation(n)}k++}else b--}b!=f.length&&(a=Array(b),System.arraycopy(c,0,a,0,b),c=a);return c},"jalview.datamodel.AlignmentI");d(c$,"findEndRes",function(a){for(var b=0,c,f=0;f<this.endRes+1&&f<a.getLength();f++)c=a.getCharAt(f),jalview.util.Comparison.isGap(c)||b++;0<b&&(b+=a.getStart()-1);return b},"jalview.datamodel.SequenceI");d(c$,
1605 "getSequences",function(){return this.sequences});d(c$,"getSequences",function(a){if(null==a)return this.sequences;for(var b=new java.util.ArrayList,c,f=this.sequences.iterator();f.hasNext()&&((c=f.next())||1);)if(b.add(c),a.containsKey(c))for(var d,k=a.get(c).getSequences().iterator();k.hasNext()&&((d=k.next())||1);)d!==c&&!b.contains(d)&&b.add(d);return b},"java.util.Map");d(c$,"getSequencesAsArray",function(a){a=this.getSequences(a);return null==a?null:a.toArray(Array(a.size()))},"java.util.Map");
1606 d(c$,"adjustForRemoveLeft",function(a){this.startRes>=a&&(this.startRes-=a);if(this.endRes>=a)this.endRes-=a,this.startRes>this.endRes&&(this.startRes=0);else return!1;return!0},"~N");d(c$,"adjustForRemoveRight",function(a){if(this.startRes>a)return!1;this.endRes>=a&&(this.endRes=a);return!0},"~N");d(c$,"getName",function(){return this.groupName});d(c$,"getDescription",function(){return this.description});d(c$,"setName",function(a){this.groupName=a},"~S");d(c$,"setDescription",function(a){this.description=
1607 a},"~S");d(c$,"getConservation",function(){return this.conserve});d(c$,"setConservation",function(a){this.conserve=a},"jalview.analysis.Conservation");d(c$,"addSequence",function(a,b){null!=a&&!this.sequences.contains(a)&&this.sequences.add(a);b&&this.recalcConservation()},"jalview.datamodel.SequenceI,~B");d(c$,"getConsPercGaps",function(){return this.consPercGaps});d(c$,"setConsPercGaps",function(a){this.consPercGaps=a},"~N");d(c$,"recalcConservation",function(){if(!(null==this.cs&&null==this.consensus&&
1608 null==this.conservation))try{var a=jalview.analysis.AAFrequency.calculate(this.sequences,this.startRes,this.endRes+1,this.showSequenceLogo);null!=this.consensus&&this._updateConsensusRow(a,this.sequences.size());null!=this.cs&&this.cs.setConsensus(a);if(null!=this.conservation||null!=this.cs&&this.cs.conservationApplied()){var b=new jalview.analysis.Conservation(this.groupName,jalview.schemes.ResidueProperties.propHash,3,this.sequences,this.startRes,this.endRes+1);b.calculate();b.verdict(!1,this.consPercGaps);
1609 null!=this.conservation&&this._updateConservationRow(b);null!=this.cs&&this.cs.conservationApplied()&&this.cs.setConservation(b)}null!=this.cs&&this.cs.alignmentChanged(null!=this.context?this.context:this,null)}catch(c){if(y(c,OutOfMemoryError))System.out.println("Out of memory loading groups: "+c);else throw c;}});d(c$,"_updateConservationRow",function(a){null==this.conservation&&this.getConservation();this.conservation.label="Conservation for "+this.getName();this.conservation.description="Conservation for group "+
1610 this.getName()+" less than "+this.consPercGaps+"% gaps";var b=null!=this.conservation.annotations?this.endRes<this.conservation.annotations.length?this.conservation.annotations.length:this.endRes+1:this.endRes+1;this.conservation.annotations=null;this.conservation.annotations=Array(b);a.completeAnnotations(this.conservation,null,this.startRes,this.endRes+1)},"jalview.analysis.Conservation");d(c$,"_updateConsensusRow",function(a,b){null==this.consensus&&this.getConsensus();this.consensus.label="Consensus for "+
1611 this.getName();this.consensus.description="Percent Identity";this.consensusData=a;var c=null!=this.consensus.annotations?this.endRes<this.consensus.annotations.length?this.consensus.annotations.length:this.endRes+1:this.endRes+1;this.consensus.annotations=null;this.consensus.annotations=Array(c);jalview.analysis.AAFrequency.completeConsensus(this.consensus,a,this.startRes,this.endRes+1,this.ignoreGapsInConsensus,this.showSequenceLogo,b)},"~A,~N");d(c$,"addOrRemove",function(a,b){this.sequences.contains(a)?
1612 this.deleteSequence(a,b):this.addSequence(a,b)},"jalview.datamodel.SequenceI,~B");d(c$,"deleteSequence",function(a,b){this.sequences.remove(a);b&&this.recalcConservation()},"jalview.datamodel.SequenceI,~B");e(c$,"getStartRes",function(){return this.startRes});e(c$,"getEndRes",function(){return this.endRes});d(c$,"setStartRes",function(a){this.startRes=a},"~N");d(c$,"setEndRes",function(a){this.endRes=a},"~N");d(c$,"getSize",function(){return this.sequences.size()});d(c$,"getSequenceAt",function(a){return this.sequences.get(a)},
1613 "~N");d(c$,"setColourText",function(a){this.colourText=a},"~B");d(c$,"getColourText",function(){return this.colourText});d(c$,"setDisplayText",function(a){this.displayText=a},"~B");d(c$,"getDisplayText",function(){return this.displayText});d(c$,"setDisplayBoxes",function(a){this.displayBoxes=a},"~B");d(c$,"getDisplayBoxes",function(){return this.displayBoxes});e(c$,"getWidth",function(){for(var a=!0,b,c=this.sequences.iterator();c.hasNext()&&((b=c.next())||1);)if(a||b.getLength()>this.width)this.width=
1614 b.getLength(),a=!1;return this.width});d(c$,"setOutlineColour",function(a){this.outlineColour=a},"java.awt.Color");d(c$,"getOutlineColour",function(){return this.outlineColour});d(c$,"getSequencesInOrder",function(a){return this.getSequencesInOrder(a,!0)},"jalview.datamodel.AlignmentI");d(c$,"getSequencesInOrder",function(a,b){for(var c=this.sequences.size(),f=a.getHeight(),d=Array(b?c:f),k=0,g=0;g<f&&k<c;g++)this.sequences.contains(a.getSequenceAt(g))&&(d[b?k:g]=a.getSequenceAt(g),k++);if(0==k)return null;
1615 if(!b)return d;if(k<d.length){c=d;for(d=Array(k);0<=--k;)d[k]=c[k],c[k]=null}return d},"jalview.datamodel.AlignmentI,~B");d(c$,"getIdColour",function(){return this.idColour});d(c$,"setIdColour",function(a){this.idColour=a},"java.awt.Color");e(c$,"getSeqrep",function(){return this.seqrep});e(c$,"setSeqrep",function(a){this.seqrep=a},"jalview.datamodel.SequenceI");e(c$,"hasSeqrep",function(){return null!=this.seqrep});d(c$,"setHidereps",function(a){this.hidereps=a},"~B");d(c$,"isHidereps",function(){return this.hidereps});
1616 d(c$,"setHideCols",function(a){this.hidecols=a},"~B");d(c$,"isHideCols",function(){return this.hidecols});d(c$,"intersect",function(a,b){var c=new jalview.datamodel.SequenceGroup(this),f=this.getSequencesInOrder(a);c.sequences=new java.util.ArrayList;for(var d=0;null!=f&&d<f.length;d++)(null==b||b.containsKey(f[d]))&&c.sequences.add(f[d]);return c},"jalview.datamodel.AlignmentI,java.util.Map");d(c$,"getShowNonconserved",function(){return this.showNonconserved});d(c$,"setShowNonconserved",function(a){this.showNonconserved=
1617 a},"~B");d(c$,"setConsensus",function(a){null==this.consensus&&(this.consensus=a)},"jalview.datamodel.AlignmentAnnotation");d(c$,"getConsensus",function(){if(0>this.getWidth())return null;null==this.consensus&&(this.consensus=new jalview.datamodel.AlignmentAnnotation("","",Array(1),0,100,1),this.consensus.hasText=!0,this.consensus.autoCalculated=!0,this.consensus.groupRef=this,this.consensus.label="Consensus for "+this.getName(),this.consensus.description="Percent Identity");return this.consensus});
1618 d(c$,"setConservationRow",function(a){null==this.conservation&&(this.conservation=a)},"jalview.datamodel.AlignmentAnnotation");d(c$,"getConservationRow",function(){null==this.conservation&&(this.conservation=new jalview.datamodel.AlignmentAnnotation("","",Array(1),0,11,1));this.conservation.hasText=!0;this.conservation.autoCalculated=!0;this.conservation.groupRef=this;this.conservation.label="Conservation for "+this.getName();this.conservation.description="Conservation for group "+this.getName()+
1619 " less than "+this.consPercGaps+"% gaps";return this.conservation});d(c$,"hasAnnotationRows",function(){return null!=this.consensus||null!=this.conservation});d(c$,"getConsensusSeq",function(){this.getConsensus();for(var a=new StringBuffer,b=0;b<this.consensus.annotations.length;b++)null!=this.consensus.annotations[b]&&("["==this.consensus.annotations[b].description.charAt(0)?a.append(this.consensus.annotations[b].description.charAt(1)):a.append(this.consensus.annotations[b].displayCharacter));a=
1620 new jalview.datamodel.Sequence("Group"+this.getName()+" Consensus",a.toString());a.setDescription("Percentage Identity Consensus "+(this.ignoreGapsInConsensus?" without gaps":""));return a});d(c$,"setIgnoreGapsConsensus",function(a){this.ignoreGapsInConsensus!=a&&null!=this.consensus&&(this.ignoreGapsInConsensus=a,this.recalcConservation());this.ignoreGapsInConsensus=a},"~B");d(c$,"getIgnoreGapsConsensus",function(){return this.ignoreGapsInConsensus});d(c$,"setshowSequenceLogo",function(a){this.showSequenceLogo!=
1621 a&&null!=this.consensus&&(this.showSequenceLogo=a,this.recalcConservation());this.showSequenceLogo=a},"~B");d(c$,"setShowConsensusHistogram",function(a){this.showConsensusHistogram!=a&&null!=this.consensus&&(this.showConsensusHistogram=a,this.recalcConservation());this.showConsensusHistogram=a},"~B");d(c$,"isShowConsensusHistogram",function(){return this.showConsensusHistogram});d(c$,"setNormaliseSequenceLogo",function(a){this.normaliseSequenceLogo=a},"~B");d(c$,"isNormaliseSequenceLogo",function(){return this.normaliseSequenceLogo});
1622 e(c$,"getAlignmentAnnotation",function(){for(var a=new java.util.ArrayList,b,c=this.sequences.iterator();c.hasNext()&&((b=c.next())||1);){var f=b.getAnnotation();if(null!=f)for(var d,k=0;k<f.length&&((d=f[k])||1);k++)d.groupRef===this&&a.add(d)}null!=this.consensus&&a.add(this.consensus);null!=this.conservation&&a.add(this.conservation);return a.toArray([])});e(c$,"findAnnotation",function(a){for(var b=new java.util.ArrayList,c,f=0,d=this.getAlignmentAnnotation();f<d.length&&((c=d[f])||1);f++)c.getCalcId()===
1623 a&&b.add(c);return b},"~S");e(c$,"findAnnotations",function(a,b,c){for(var f=new java.util.ArrayList,d,k=0,g=this.getAlignmentAnnotation();k<g.length&&((d=g[k])||1);k++)null!=d.getCalcId()&&(d.getCalcId().equals(b)&&null!=d.sequenceRef&&d.sequenceRef===a&&null!=d.label&&d.label.equals(c))&&f.add(d);return f},"jalview.datamodel.SequenceI,~S,~S");d(c$,"hasAnnotation",function(a){if(null!=a&&!"".equals(a))for(var b,c=0,f=this.getAlignmentAnnotation();c<f.length&&((b=f[c])||1);c++)if(b.getCalcId()===
1624 a)return!0;return!1},"~S");d(c$,"clear",function(){this.sequences.clear()});d(c$,"setContext",function(a){this.context=a},"jalview.datamodel.AnnotatedCollectionI");e(c$,"getContext",function(){return this.context})});p("jalview.datamodel");q(["jalview.datamodel.SequenceCollectionI"],"jalview.datamodel.AnnotatedCollectionI",null,function(){M(jalview.datamodel,"AnnotatedCollectionI",jalview.datamodel.SequenceCollectionI)});p("jalview.datamodel");M(jalview.datamodel,"SequenceCollectionI");p("jalview.analysis");
1625 q(null,"jalview.analysis.AAFrequency","jalview.analysis.CodingUtils jalview.datamodel.Annotation jalview.util.Format $.MappingUtils $.QuickSort java.lang.Float $.StringBuilder java.util.Arrays $.Hashtable".split(" "),function(){c$=B(jalview.analysis,"AAFrequency");c$.calculate=d(c$,"calculate",function(a,c,f){return jalview.analysis.AAFrequency.calculate(a,c,f,!1)},"java.util.List,~N,~N");c$.calculate=d(c$,"calculate",function(a,c,f,d){for(var k=Array(a.size()),g=0,e=0;e<a.size();e++)k[e]=a.get(e),
1626 k[e].getLength()>g&&(g=k[e].getLength());a=Array(g);f>=g&&(f=g);jalview.analysis.AAFrequency.calculate(k,c,f,a,d);return a},"java.util.List,~N,~N,~B");c$.calculate=d(c$,"calculate",function(a,c,f,d,k){var g,e,j,n,x=a.length,u,m="-",p;p=w(255,0);var q;for(j=c;j<f;j++){c=new java.util.Hashtable;g=0;u="";e=0;p=w(255,0);for(n=0;n<x;n++)if(null==a[n])System.err.println("WARNING: Consensus skipping null sequence - possible race condition.");else if(q=a[n].getSequence(),q.length>j){m=q[j];if("."==m||" "==
1627 m)m="-";"-"==m?p[45]++:("a"<=m&&"z">=m&&(m=String.fromCharCode(m.charCodeAt(0)+-32)),e++,p[m.charCodeAt(0)]++)}else p[45]++;if(1==x)u=String.valueOf(m),g=1;else for(n=65;90>=n;n++)1>p[n]||p[n]<g||(p[n]>g?u=jalview.analysis.AAFrequency.CHARS[n-65]:p[n]==g&&(u+=jalview.analysis.AAFrequency.CHARS[n-65]),g=p[n]);0==u.length&&(u="-");k&&c.put("P",E(-1,[p,w(-1,[x,e])]));c.put("C",new Integer(g));c.put("R",u);p=100*g/x;c.put("G",new Float(p));0<e&&(p=100*g/e);c.put("N",new Float(p));d[j]=c}},"~A,~N,~N,~A,~B");
1628 c$.completeConsensus=d(c$,"completeConsensus",function(a,c,f,d,e,g,h){jalview.analysis.AAFrequency.completeConsensus(a,c,f,d,e,g,null,h)},"jalview.datamodel.AlignmentAnnotation,~A,~N,~N,~B,~B,~N");c$.completeConsensus=d(c$,"completeConsensus",function(a,c,f,d,e,g,h,j){if(!(null==a||null==a.annotations||a.annotations.length<d))for(j=jalview.analysis.AAFrequency.getPercentageFormat(j);f<d;f++){var n;if(f>=c.length||null==(n=c[f]))a.annotations[f]=null;else{var x=n.get(e?"N":"G");if(null==x)a.annotations[f]=
1629 null;else{var x=x.floatValue(),u=n.get("R").toString(),m=new StringBuilder(64);1<u.length?(m.append("[").append(u).append("] "),u="+"):m.append(n.get("R")+" ");var p=n.get("P");if(null!=p&&g){var q=p[1][0],s=p[1][1],q=e?s:q;m.setLength(0);if(null!=h)for(s=0;s<h.length;s++){var r=100*p[0][h[s].charCodeAt(0)]/q;m.append(0==s?"":"; ").append(h[s]).append(" ").append(null!=j?j.formDouble(r):I(r)).append("%")}else{for(var t=N(p[0].length,"\x00"),r=Q(p[0].length,0),s=0;s<t.length;s++)t[s]=String.fromCharCode(s),
1630 r[s]=p[0][s];jalview.util.QuickSort.sortFloatChar(r,t);for(var v=0,s=t.length-1;0<p[0][t[s].charCodeAt(0)];s--){var w=t[s];"-"!=w&&(r=100*p[0][w.charCodeAt(0)]/q,m.append(0==v?"":"; ").append(w).append(" ").append(null!=j?j.formDouble(r):I(r)).append("%"),v++)}}}else m.append(null!=j?j.formDouble(x):I(x)).append("%");a.annotations[f]=new jalview.datamodel.Annotation(u,m.toString()," ",x)}}}},"jalview.datamodel.AlignmentAnnotation,~A,~N,~N,~B,~B,~A,~N");c$.getPercentageFormat=d(c$,"getPercentageFormat",
1631 function(a){for(var c=0;10<=a;)c++,a/=10;return 1>=c?null:new jalview.util.Format("%3."+(c-1)+"f")},"~N");c$.extractProfile=d(c$,"extractProfile",function(a,c){var f=w(64,0),d=a.get("P");if(null==d)return null;for(var e=N(d[0].length,"\x00"),g=Q(d[0].length,0),h=0;h<e.length;h++)e[h]=String.fromCharCode(h),g[h]=d[0][h];jalview.util.QuickSort.sortFloatChar(g,e);for(var g=2,j=0,n=0,x=d[1][c?1:0],h=e.length-1;0<d[0][e[h].charCodeAt(0)];h--)if("-"!=e[h]){f[g++]=e[h].charCodeAt(0);var u=I(100*d[0][e[h].charCodeAt(0)]/
1632 x);f[g++]=u;j+=u;n++}f[0]=n;f[1]=j;d=w(f.length+1,0);d[0]=0;System.arraycopy(f,0,d,1,f.length);return d},"java.util.Hashtable,~B");c$.extractCdnaProfile=d(c$,"extractCdnaProfile",function(a,c){var f=a.get("P"),d=w(f.length-2,0);System.arraycopy(f,2,d,0,f.length-2);var e=w(3+2*d.length,0);e[0]=2;for(var g=N(d.length,"\x00"),h=0;h<g.length;h++)g[h]=String.fromCharCode(h);jalview.util.QuickSort.sortIntChar(d,g);for(var j=0,n=0,x=3,f=c?f[1]:f[0],h=g.length-1;0<=h;h--){var u=d[h];if(0==u)break;n++;e[x++]=
1633 g[h].charCodeAt(0);u=F(100*u/f);e[x++]=u;j+=u}e[2]=j;e[1]=n;return java.util.Arrays.copyOfRange(e,0,x)},"java.util.Hashtable,~B");c$.calculateCdna=d(c$,"calculateCdna",function(a,c,f,d,e){for(var g=a.getGapCharacter();d<e;d++){var h=new java.util.Hashtable,j=w(66,0);j[0]=a.getSequences().size();for(var n=0,x,u=a.getSequences().iterator();u.hasNext()&&((x=u.next())||1);)if(x.getCharAt(d)!=g){var m=jalview.util.MappingUtils.findCodonFor(x,d,c),m=jalview.analysis.CodingUtils.encodeCodon(m);0<=m&&(j[m+
1634 2]++,n++)}j[1]=n;h.put("P",j);f[d]=h}},"jalview.datamodel.AlignmentI,java.util.Set,~A,~N,~N");c$.completeCdnaConsensus=d(c$,"completeCdnaConsensus",function(a,c,f,d){if(!(null==a||null==a.annotations||a.annotations.length<c.length)){a.scaleColLabel=!0;for(var e=0;e<c.length;e++){var g=c[e];if(null!=g){for(var h=g.get("P"),g=0,j=N(h.length-2,"\x00"),n=2;n<h.length;n++){var x=h[n];j[n-2]=String.fromCharCode(n-2);g+=x}var u=w(h.length-2,0);System.arraycopy(h,2,u,0,h.length-2);jalview.util.QuickSort.sortIntChar(u,
1635 j);var n=j[j.length-1].charCodeAt(0),h=u[j.length-1],m=String.valueOf(jalview.analysis.CodingUtils.decodeCodon(n));1<u.length&&u[j.length-2]==n&&(m="+");for(var p=100*u[u.length-1]/g,q=new StringBuilder(32),s=new StringBuilder,r=null,t=null,v=jalview.analysis.AAFrequency.getPercentageFormat(d),n=j.length-1;0<=n;n--){x=u[n];if(0==x){0<s.length()&&q.append(s).append(": ").append(r).append("% ");break}var y=j[n].charCodeAt(0),r=F(100*x/g),y=String.valueOf(jalview.analysis.CodingUtils.decodeCodon(y)),
1636 r=null==v?Integer.toString(r):v.formLong(r);if(f||x==h)r.equals(t)&&0<n?s.append(0==s.length()?"":", "):(0<s.length()&&q.append(s).append(": ").append(t).append("% "),s.setLength(0)),s.append(y),t=r}a.annotations[e]=new jalview.datamodel.Annotation(m,q.toString()," ",p)}}}},"jalview.datamodel.AlignmentAnnotation,~A,~B,~N");G(c$,"TO_UPPER_CASE",-32,"MAXCOUNT","C","MAXRESIDUE","R","PID_GAPS","G","PID_NOGAPS","N","PROFILE","P","ENCODED_CHARS","E");c$.CHARS=c$.prototype.CHARS=Array(26);for(var a="A";"Z">=
1637 a;a=String.fromCharCode(a.charCodeAt(0)+1))jalview.analysis.AAFrequency.CHARS[a.charCodeAt(0)-65]=String.valueOf(a)});p("jalview.analysis");c$=B(jalview.analysis,"CodingUtils");c$.encodeCodon=d(c$,"encodeCodon",function(a){return null==a?-1:jalview.analysis.CodingUtils.encodeCodon(a[2])+(jalview.analysis.CodingUtils.encodeCodon(a[1])<<2)+(jalview.analysis.CodingUtils.encodeCodon(a[0])<<4)},"~A");c$.encodeCodon=d(c$,"encodeCodon",function(a){var b=-2147483648;switch(a){case "A":case "a":b=0;break;
1638 case "C":case "c":b=1;break;case "G":case "g":b=2;break;case "T":case "t":case "U":case "u":b=3}return b},"~S");c$.decodeCodon=d(c$,"decodeCodon",function(a){var b=N(3,"\x00");b[2]=jalview.analysis.CodingUtils.decodeNucleotide(a&3);a>>>=2;b[1]=jalview.analysis.CodingUtils.decodeNucleotide(a&3);b[0]=jalview.analysis.CodingUtils.decodeNucleotide(a>>>2&3);return b},"~N");c$.decodeNucleotide=d(c$,"decodeNucleotide",function(a){var b="0";switch(a){case 0:b="A";break;case 1:b="C";break;case 2:b="G";break;
1639 case 3:b="T"}return b},"~N");G(c$,"CODON_ENCODING_BITSHIFT",2);p("jalview.analysis");q(null,"jalview.analysis.Conservation","jalview.datamodel.Annotation $.Sequence jalview.schemes.ResidueProperties jalview.util.Comparison java.awt.Color java.lang.Character $.Double $.StringBuffer java.util.Hashtable $.Vector".split(" "),function(){c$=s(function(){this.sequences=null;this.end=this.start=0;this.seqNums=null;this.maxLength=0;this.seqNumsChanged=!1;this.total=null;this.canonicaliseAa=!0;this.qualityRange=
1640 this.quality=null;this.consString="";this.propHash=this.consSequence=null;this.threshold=0;this.name="";this.consSymbs=this.cons2=null;r(this,arguments)},jalview.analysis,"Conservation");J(c$,function(){this.qualityRange=Array(2)});m(c$,function(a,b,c,f,d,e){this.name=a;this.propHash=b;this.threshold=c;this.start=d;this.end=e;this.maxLength=e-d+1;var g;a=f.size();this.sequences=b=Array(a);try{for(g=0;g<a;g++)b[g]=f.get(g),b[g].getLength()>this.maxLength&&(this.maxLength=b[g].getLength())}catch(h){if(y(h,
1641 ArrayIndexOutOfBoundsException))this.sequences=[],this.maxLength=0;else throw h;}},"~S,java.util.Hashtable,~N,java.util.List,~N,~N");d(c$,"calcSeqNum",function(a){var b=null,c=null,b=this.sequences.length;if(-1<a&&a<b)if(b=this.sequences[a].getSequenceAsString(),this.seqNums.size()<=a&&this.seqNums.addElement(w(b.length+1,0)),b.hashCode()!=this.seqNums.elementAt(a)[0]){var f,d;this.seqNumsChanged=!0;d=b.length;this.maxLength<d&&(this.maxLength=d);c=w(d+1,0);c[0]=b.hashCode();for(f=1;f<=d;f++)c[f]=
1642 jalview.schemes.ResidueProperties.aaIndex[b.charCodeAt(f-1)];this.seqNums.setElementAt(c,a)}else System.out.println("SEQUENCE HAS BEEN DELETED!!!");else System.err.println("ERROR: calcSeqNum called with out of range sequence index for Alignment\n")},"~N");d(c$,"calculate",function(){var a,b,c,f=this.sequences.length,d,e,g=null,h;this.total=Array(this.maxLength);for(var j=this.start;j<=this.end;j++){d=w(255,0);for(a=0;a<f;a++)if(this.sequences[a].getLength()>j){b=this.sequences[a].getCharAt(j);if(this.canonicaliseAa)b=
1643 String.fromCharCode(jalview.schemes.ResidueProperties.aaIndex[this.sequences[a].getCharAt(j).charCodeAt(0)]),b=20<b.charCodeAt(0)?"-":jalview.schemes.ResidueProperties.aa[b.charCodeAt(0)].charAt(0);else{if("."==b||" "==b)b="-";!this.canonicaliseAa&&("a"<=b&&"z">=b)&&(b=String.fromCharCode(b.charCodeAt(0)-32))}d[b.charCodeAt(0)]++}else d[45]++;c=F(this.threshold*f/100);a=new java.util.Hashtable;for(var n="-";"Z">n;n=String.fromCharCode(n.charCodeAt(0)+1))if(d[n.charCodeAt(0)]>c){g=String.valueOf(n);
1644 for(h=this.propHash.keys();h.hasMoreElements();)e=h.nextElement(),b=this.propHash.get(e),a.containsKey(e)?!1==a.get(e).equals(b.get(g))&&a.put(e,new Integer(-1)):b.containsKey(g)?a.put(e,b.get(g)):a.put(e,b.get("-"))}0<this.total.length&&(this.total[j-this.start]=a)}});d(c$,"countConsNGaps",function(a){var b=0,c=0,f=0,d=w(2,0),e="$",g,h=this.sequences.length,j;for(g=0;g<h;g++)a>=this.sequences[g].getLength()?b++:(j=this.sequences[g].getCharAt(a),jalview.util.Comparison.isGap(j)?b++:(f++,1==f?(e=j,
1645 c++):e==j&&c++));d[0]=f==c?1:0;d[1]=b;return d},"~N");d(c$,"verdict",function(a,b){for(var c=new StringBuffer,f,d,e,g,h,j,n=0;n<this.start;n++)c.append("-");this.consSymbs=Array(this.end-this.start+1);for(n=this.start;n<=this.end;n++)if(e=this.countConsNGaps(n),f=e[1],f=100*f/this.sequences.length,this.consSymbs[n-this.start]=String.instantialize(),b>f){h=this.total[n-this.start];g=0;for(j=h.keys();j.hasMoreElements();)f=j.nextElement(),d=h.get(f),a?1==d.intValue()&&(this.consSymbs[n-this.start]=
1646 f+" "+this.consSymbs[n-this.start],g++):-1!=d.intValue()&&(this.consSymbs[n-this.start]=0==d.intValue()?this.consSymbs[n-this.start]+" !"+f:f+" "+this.consSymbs[n-this.start],g++);10>g?c.append(""+g):c.append(1==e[0]?"*":"+")}else c.append("-");this.consSequence=new jalview.datamodel.Sequence(this.name,c.toString(),this.start,this.end)},"~B,~N");d(c$,"getConsSequence",function(){return this.consSequence});d(c$,"findQuality",function(){this.findQuality(0,this.maxLength-1)});d(c$,"percentIdentity2",
1647 function(){this.seqNums=new java.util.Vector;for(var a=0,b=this.sequences.length,a=0;a<b;a++)this.calcSeqNum(a);if(null==this.cons2||this.seqNumsChanged){this.cons2=w(this.maxLength,24,0);for(b=0;24>b;b++)for(a=0;a<this.maxLength;a++)this.cons2[a][b]=0;for(var c,b=0;b<this.sequences.length;){c=this.seqNums.elementAt(b);for(a=1;a<c.length;a++)this.cons2[a-1][c[a]]++;for(a=c.length-1;a<this.maxLength;a++)this.cons2[a][23]++;b++}}});d(c$,"findQuality",function(a,b){this.quality=new java.util.Vector;
1648 var c=-1E4,f=jalview.schemes.ResidueProperties.getBLOSUM62();this.percentIdentity2();var d=this.seqNums.size(),e=w(d,0),g,h,j,n,x,u,m,p,q;for(u=0;u<d;u++)e[u]=this.seqNums.elementAt(u).length-1;for(u=a;u<=b;u++){h=0;n=U(24,0);for(g=0;24>g;g++){for(j=n[g]=0;24>j;j++)n[g]+=this.cons2[u][j]*f[g][j]+4;n[g]/=d}for(p=0;p<d;p++){g=0;x=U(24,0);q=u<e[p]?this.seqNums.elementAt(p)[u+1]:23;for(m=0;23>m;m++)j=f[m][q]+4,x[m]=n[m]-j,g+=x[m]*x[m];h+=Math.sqrt(g)}c<h&&(c=h);this.quality.addElement(new Double(h))}e=
1649 -1E4;for(u=a;u<=b;u++)f=this.quality.elementAt(u).doubleValue(),f=(c-f)*(d-this.cons2[u][23])/d,this.quality.setElementAt(new Double(f),u),f>e&&(e=f);this.qualityRange[0]=new Double(0);this.qualityRange[1]=new Double(e)},"~N,~N");d(c$,"completeAnnotations",function(a,b,c,f){c=this.getConsSequence().getSequence();var d=0,e=0,g;null!=a.annotations&&a.annotations.length<f&&(a.annotations=Array(f));null!=b&&(b.graphMax=this.qualityRange[1].floatValue(),null!=b.annotations&&b.annotations.length<f&&(b.annotations=
1650 Array(f)),d=this.qualityRange[0].floatValue(),e=this.qualityRange[1].floatValue());for(var h=0;h<f;h++){var j=0;g=c[h];Character.isDigit(g)?j=g.charCodeAt(0)-48:"*"==g?j=11:"+"==g&&(j=10);var n=j-0,n=n/11;a.annotations[h]=new jalview.datamodel.Annotation(String.valueOf(g),this.consSymbs[h-this.start]," ",j,new java.awt.Color(0.3+0.7*n,0+0.9*n,0+0*n));null!=b&&(j=this.quality.elementAt(h).floatValue(),n=j-d,n/=e,b.annotations[h]=new jalview.datamodel.Annotation(" ",String.valueOf(j)," ",j,new java.awt.Color(0.3+
1651 0.7*n,0+0.9*n,0+0*n)))}},"jalview.datamodel.AlignmentAnnotation,jalview.datamodel.AlignmentAnnotation,~N,~N");c$.calculateConservation=d(c$,"calculateConservation",function(a,b,c,f,d,e,g,h,j){a=new jalview.analysis.Conservation(a,b,c,f,d,e);return jalview.analysis.Conservation.calculateConservation(a,g,h,j)},"~S,java.util.Hashtable,~N,java.util.List,~N,~N,~B,~N,~B");c$.calculateConservation=d(c$,"calculateConservation",function(a,b,c,f){a.calculate();a.verdict(b,c);f&&a.findQuality();return a},"jalview.analysis.Conservation,~B,~N,~B")});
1652 p("jalview.datamodel");q(["jalview.datamodel.AlignmentI","$.HiddenSequences","java.util.ArrayList","$.Collections","$.LinkedHashSet"],"jalview.datamodel.Alignment","jalview.analysis.AlignmentUtils jalview.datamodel.AlignmentAnnotation $.CigarArray $.SeqCigar $.Sequence jalview.util.Comparison $.MessageManager java.lang.Error java.util.HashSet $.Hashtable $.Vector".split(" "),function(){c$=s(function(){this.groups=this.sequences=this.dataset=null;this.gapCharacter="-";this.type=1;this.$hasRNAStructure=
1653 !1;this.codonFrameList=this.alignmentProperties=this.hiddenSequences=this.annotations=null;this.alignmentRefs=0;this.seqrep=null;r(this,arguments)},jalview.datamodel,"Alignment",null,jalview.datamodel.AlignmentI);J(c$,function(){this.groups=java.util.Collections.synchronizedList(new java.util.ArrayList);this.hiddenSequences=new jalview.datamodel.HiddenSequences(this);this.codonFrameList=new java.util.LinkedHashSet});d(c$,"initAlignment",function(a){var b=0;this.type=jalview.util.Comparison.isNucleotide(a)?
1654 1:0;this.sequences=java.util.Collections.synchronizedList(new java.util.ArrayList);for(b=0;b<a.length;b++)this.sequences.add(a[b])},"~A");m(c$,function(a){for(var b=a.getSequencesArray(),c=0;c<b.length;c++)b[c]=new jalview.datamodel.Sequence(b[c]);this.codonFrameList=a.codonFrameList;this.initAlignment(b)},"jalview.datamodel.AlignmentI");m(c$,function(a){this.initAlignment(a)},"~A");c$.createAlignment=d(c$,"createAlignment",function(){throw Error(jalview.util.MessageManager.getString("error.alignment_cigararray_not_implemented"));
1655 },"jalview.datamodel.CigarArray");d(c$,"getSequences",function(){return this.sequences});d(c$,"getSequences",function(){return this.sequences},"java.util.Map");d(c$,"getSequencesArray",function(){return null==this.sequences?null:this.sequences.toArray(Array(this.sequences.size()))});e(c$,"getSequencesByName",function(){return jalview.analysis.AlignmentUtils.getSequencesByName(this)});e(c$,"getSequenceAt",function(a){return-1<a&&a<this.sequences.size()?this.sequences.get(a):null},"~N");e(c$,"addSequence",
1656 function(a){null!=this.dataset&&(null==a.getDatasetSequence()&&(a=a.deriveSequence()),this.getDataset().addSequence(a.getDatasetSequence()));null==this.sequences?this.initAlignment(E(-1,[a])):this.sequences.add(a);null!=this.hiddenSequences&&this.hiddenSequences.adjustHeightSequenceAdded()},"jalview.datamodel.SequenceI");e(c$,"setSequenceAt",function(a,b){this.deleteSequence(a);this.sequences.set(a,b)},"~N,jalview.datamodel.SequenceI");d(c$,"getGroups",function(){return this.groups});e(c$,"finalize",
1657 function(){null!=this.getDataset()&&this.getDataset().removeAlignmentRef();this.hiddenSequences=this.annotations=this.groups=this.sequences=this.dataset=null});d(c$,"removeAlignmentRef",function(){0==--this.alignmentRefs&&this.finalize()});d(c$,"deleteSequence",function(a){this.deleteSequence(this.findIndex(a))},"jalview.datamodel.SequenceI");d(c$,"deleteSequence",function(a){-1<a&&a<this.getHeight()&&(this.sequences.remove(a),this.hiddenSequences.adjustHeightSequenceDeleted(a))},"~N");e(c$,"findGroup",
1658 function(a){for(var b=0;b<this.groups.size();b++){var c=this.groups.get(b);if(c.getSequences(null).contains(a))return c}return null},"jalview.datamodel.SequenceI");e(c$,"findAllGroups",function(a){for(var b=new java.util.ArrayList,c=this.groups.size(),f=0;f<c;f++){var d=this.groups.get(f);null==d||null==d.getSequences()?(this.deleteGroup(d),c--):d.getSequences().contains(a)&&b.add(d)}a=Array(b.size());return b.toArray(a)},"jalview.datamodel.SequenceI");e(c$,"addGroup",function(a){if(!this.groups.contains(a)){if(0<
1659 this.hiddenSequences.getSize()){var b,c=a.getSize();for(b=0;b<c;b++)this.sequences.contains(a.getSequenceAt(b))||(a.deleteSequence(a.getSequenceAt(b),!1),c--,b--);if(1>a.getSize())return}a.setContext(this);this.groups.add(a)}},"jalview.datamodel.SequenceGroup");d(c$,"removeAnnotationForGroup",function(a){if(!(null==this.annotations||0==this.annotations.length)){var b=Array(this.annotations.length),c=Array(this.annotations.length),f,d,e;if(null==a)for(e=d=f=0;f<this.annotations.length;f++)null!=this.annotations[f].groupRef?
1660 b[d++]=this.annotations[f]:c[e++]=this.annotations[f];else for(e=d=f=0;f<this.annotations.length;f++)this.annotations[f].groupRef===a?b[d++]=this.annotations[f]:c[e++]=this.annotations[f];if(0<d){for(f=0;f<d;f++)this.unhookAnnotation(b[f]),b[f]=null;a=Array(e);for(f=0;f<e;f++)a[f]=c[f];this.annotations=a}}},"jalview.datamodel.SequenceGroup");e(c$,"deleteAllGroups",function(){null!=this.annotations&&this.removeAnnotationForGroup(null);for(var a,b=this.groups.iterator();b.hasNext()&&((a=b.next())||
1661 1);)a.setContext(null);this.groups.clear()});e(c$,"deleteGroup",function(a){this.groups.contains(a)&&(this.removeAnnotationForGroup(a),this.groups.remove(a),a.setContext(null))},"jalview.datamodel.SequenceGroup");d(c$,"findName",function(a){return this.findName(a,!1)},"~S");d(c$,"findName",function(a,b){return this.findName(null,a,b)},"~S,~B");d(c$,"findName",function(a,b,c){var f=0,d=null,d=null;if(null!=a){for(d=!1;f<this.sequences.size();)if(this.getSequenceAt(f++)===a){d=!0;break}d||(f=0)}for(;f<
1662 this.sequences.size();){d=this.getSequenceAt(f);d=d.getName();if(d.equals(b)||c&&d.equalsIgnoreCase(b))return this.getSequenceAt(f);f++}return null},"jalview.datamodel.SequenceI,~S,~B");e(c$,"findSequenceMatch",function(a){for(var b=new java.util.Vector,c=0;c<this.sequences.size();)this.getSequenceAt(c).getName().equals(a)&&b.addElement(this.getSequenceAt(c)),c++;a=Array(b.size());for(c=0;c<a.length;c++)a[c]=b.elementAt(c);return a},"~S");d(c$,"findIndex",function(a){for(var b=0;b<this.sequences.size();){if(a===
1663 this.getSequenceAt(b))return b;b++}return-1},"jalview.datamodel.SequenceI");d(c$,"findIndex",function(a){for(var b=0;b<this.sequences.size();){if(a.involvesSequence(this.getSequenceAt(b)))return b;b++}return-1},"jalview.datamodel.SearchResults");e(c$,"getHeight",function(){return this.sequences.size()});e(c$,"getWidth",function(){for(var a=-1,b=0;b<this.sequences.size();b++)this.getSequenceAt(b).getLength()>a&&(a=this.getSequenceAt(b).getLength());return a});e(c$,"setGapCharacter",function(a){this.gapCharacter=
1664 a;for(var b,c=this.sequences.iterator();c.hasNext()&&((b=c.next())||1);)b.setSequence(b.getSequenceAsString().$replace(".",a).$replace("-",a).$replace(" ",a))},"~S");d(c$,"getGapCharacter",function(){return this.gapCharacter});d(c$,"isAligned",function(){return this.isAligned(!1)});d(c$,"isAligned",function(a){var b=this.getWidth();if(null==this.hiddenSequences||0==this.hiddenSequences.getSize())a=!0;for(var c=0;c<this.sequences.size();c++)if((a||!this.hiddenSequences.isHidden(this.getSequenceAt(c)))&&
1665 this.getSequenceAt(c).getLength()!=b)return!1;return!0},"~B");e(c$,"deleteAllAnnotations",function(a){for(var b=!1,c,f=0,d=this.getAlignmentAnnotation();f<d.length&&((c=d[f])||1);f++)if(!c.autoCalculated||a)this.deleteAnnotation(c),b=!0;return b},"~B");d(c$,"deleteAnnotation",function(a){return this.deleteAnnotation(a,!0)},"jalview.datamodel.AlignmentAnnotation");d(c$,"deleteAnnotation",function(a,b){var c=1;null!=this.annotations&&(c=this.annotations.length);if(1>c)return!1;for(var f=Array(c-1),
1666 d=!1,e=0,g=0;g<c;g++)this.annotations[g]===a?d=!0:e<f.length&&(f[e++]=this.annotations[g]);d&&(this.annotations=f,b&&this.unhookAnnotation(a));return d},"jalview.datamodel.AlignmentAnnotation,~B");d(c$,"unhookAnnotation",function(a){null!=a.sequenceRef&&a.sequenceRef.removeAlignmentAnnotation(a);null!=a.groupRef&&(a.groupRef=null)},"jalview.datamodel.AlignmentAnnotation");d(c$,"addAnnotation",function(a){this.addAnnotation(a,-1)},"jalview.datamodel.AlignmentAnnotation");d(c$,"addAnnotation",function(a,
1667 b){null!=a.getRNAStruc()&&(this.$hasRNAStructure=!0);var c=1;null!=this.annotations&&(c=this.annotations.length+1);var f=Array(c),d=0;-1==b||b>=c?f[c-1]=a:f[b]=a;if(1<c)for(var e=0,d=0;d<c-1;d++,e++)e==b&&e++,e<f.length&&(f[e]=this.annotations[d]);this.annotations=f},"jalview.datamodel.AlignmentAnnotation,~N");e(c$,"setAnnotationIndex",function(a,b){if(!(null==a||null==this.annotations||this.annotations.length-1<b)){var c=this.annotations.length,f=Array(c);f[b]=a;for(var d=0;d<c;d++)d!=b&&(f[d]=d<
1668 b?this.annotations[d]:this.annotations[d-1]);this.annotations=f}},"jalview.datamodel.AlignmentAnnotation,~N");d(c$,"getAlignmentAnnotation",function(){return this.annotations});e(c$,"setNucleotide",function(a){this.type=a?1:0},"~B");d(c$,"isNucleotide",function(){return 1==this.type?!0:!1});e(c$,"hasRNAStructure",function(){return this.$hasRNAStructure});e(c$,"setDataset",function(a){if(null==this.dataset&&null==a){for(var b=Array(this.getHeight()),c=0;c<this.getHeight();c++)a=this.getSequenceAt(c),
1669 b[c]=null!=a.getDatasetSequence()?a.getDatasetSequence():a.createDatasetSequence();this.dataset=new jalview.datamodel.Alignment(b)}else if(null==this.dataset&&null!=a){this.dataset=a;for(c=0;c<this.getHeight();c++)if(a=this.getSequenceAt(c),b=a.getDatasetSequence(),null==b)b=a.createDatasetSequence(),this.dataset.addSequence(b);else{for(;null!=b.getDatasetSequence();)b=b.getDatasetSequence();-1==this.dataset.findIndex(b)&&this.dataset.addSequence(b)}}this.dataset.addAlignmentRef()},"jalview.datamodel.Alignment");
1670 d(c$,"addAlignmentRef",function(){this.alignmentRefs++});e(c$,"getDataset",function(){return this.dataset});e(c$,"padGaps",function(){for(var a=!1,b=-1,c,f=0;f<this.sequences.size();f++){c=this.getSequenceAt(f);for(var d=c.getLength();d>b;d--)if(d>b&&!jalview.util.Comparison.isGap(c.getCharAt(d))){b=d;break}}b++;for(f=0;f<this.sequences.size();f++)c=this.getSequenceAt(f),d=c.getLength(),d<b?(c.insertCharAt(d,b-d,this.gapCharacter),a=!0):c.getLength()>b&&c.deleteChars(b,c.getLength());return a});e(c$,
1671 "justify",function(a){for(var b=!1,c=-1,f=w(2*this.sequences.size(),0),d,e=0;e<this.sequences.size();e++){d=this.getSequenceAt(e);f[2*e]=d.findIndex(d.getStart());f[2*e+1]=d.findIndex(d.getStart()+d.getLength());for(var g=!1,h=0,j=d.getLength();h<j;h++)jalview.util.Comparison.isGap(d.getCharAt(h))||(g?(f[2*e+1]=h,h-f[2*e]>c&&(c=h-f[2*e])):(f[2*e]=h,g=!0))}c++;for(e=0;e<this.sequences.size();e++)d=this.getSequenceAt(e),g=1+f[2*e+1]-f[2*e],h=c-g,g=d.getLength(),a?(g>f[2*e+1]&&(d.deleteChars(f[2*e+1]+
1672 1,g),b=!0),f[2*e]>h?(d.deleteChars(0,f[2*e]-h),b=!0):f[2*e]<h&&(d.insertCharAt(0,h-f[2*e],this.gapCharacter),b=!0)):(0<f[2*e]&&(d.deleteChars(0,f[2*e]),b=!0,f[2*e+1]-=f[2*e],g-=f[2*e]),g>c?(d.deleteChars(c+1,g),b=!0):g<c&&(d.insertCharAt(g,c-g,this.gapCharacter),b=!0));return b},"~B");d(c$,"getHiddenSequences",function(){return this.hiddenSequences});e(c$,"getCompactAlignment",function(){for(var a=Array(this.sequences.size()),b=0,c,f=this.sequences.iterator();f.hasNext()&&((c=f.next())||1);)a[b++]=
1673 new jalview.datamodel.SeqCigar(c);a=new jalview.datamodel.CigarArray(a);a.addOperation("M",this.getWidth());return a});e(c$,"setProperty",function(a,b){null==this.alignmentProperties&&(this.alignmentProperties=new java.util.Hashtable);this.alignmentProperties.put(a,b)},"~O,~O");d(c$,"getProperty",function(a){return null!=this.alignmentProperties?this.alignmentProperties.get(a):null},"~O");d(c$,"getProperties",function(){return this.alignmentProperties});e(c$,"addCodonFrame",function(a){null!=a&&this.codonFrameList.add(a)},
1674 "jalview.datamodel.AlignedCodonFrame");e(c$,"getCodonFrame",function(a){if(null==a)return null;for(var b=new java.util.ArrayList,c,f=this.codonFrameList.iterator();f.hasNext()&&((c=f.next())||1);)c.involvesSequence(a)&&b.add(c);return b},"jalview.datamodel.SequenceI");e(c$,"setCodonFrames",function(a){this.codonFrameList=a},"java.util.Set");d(c$,"getCodonFrames",function(){return this.codonFrameList});e(c$,"removeCodonFrame",function(a){return null==a||null==this.codonFrameList?!1:this.codonFrameList.remove(a)},
1675 "jalview.datamodel.AlignedCodonFrame");e(c$,"append",function(a){a===this&&System.err.println("Self append may cause a deadlock.");var b=a.getGapCharacter()==this.getGapCharacter(),c=a.getGapCharacter(),f=null!=a.getHiddenSequences()&&null!=a.getHiddenSequences().hiddenSequences?a.getHiddenSequences().getFullAlignment().getSequences():a.getSequences();if(null!=f)for(var d,f=f.iterator();f.hasNext()&&((d=f.next())||1);){if(!b)for(var e=d.getSequence(),g=0;g<e.length;g++)e[g]==c&&(e[g]=this.gapCharacter);
1676 this.addSequence(d)}b=a.getAlignmentAnnotation();for(c=0;null!=b&&c<b.length;c++)this.addAnnotation(b[c]);this.codonFrameList.addAll(a.getCodonFrames());b=a.getGroups();if(null!=b)for(var h,b=b.iterator();b.hasNext()&&((h=b.next())||1);)this.addGroup(h);if(null!=a.getHiddenSequences()&&(h=a.getHiddenSequences(),null==this.hiddenSequences&&(this.hiddenSequences=new jalview.datamodel.HiddenSequences(this)),null!=h.hiddenSequences))for(b=0;b<h.hiddenSequences.length;b++)null!=h.hiddenSequences[b]&&this.hiddenSequences.hideSequence(h.hiddenSequences[b]);
1677 if(null!=a.getProperties())for(h=a.getProperties().keys();h.hasMoreElements();)if(c=h.nextElement(),b=this.getProperty(c),d=a.getProperty(c),null!=b){if(b.getClass().equals(d.getClass())&&!b.equals(d))if(v(b,String))this.setProperty(c,b+"; "+d);else if(v(b,java.util.Vector))for(c=d.elements();c.hasMoreElements();)b.addElement(c)}else this.setProperty(c,d)},"jalview.datamodel.AlignmentI");e(c$,"findOrCreateAnnotation",function(a,b,c,f,d){if(null!=this.annotations)for(var e,g=0,h=this.getAlignmentAnnotation();g<
1678 h.length&&((e=h[g])||1);g++)if(e.autoCalculated==c&&a.equals(e.label)&&(null==b||e.getCalcId().equals(b))&&e.sequenceRef===f&&e.groupRef===d)return e;e=new jalview.datamodel.AlignmentAnnotation(a,a,Array(1),0,0,1);e.hasText=!1;e.setCalcId(String.instantialize(b));e.autoCalculated=c;null!=f&&e.setSequenceRef(f);e.groupRef=d;this.addAnnotation(e);return e},"~S,~S,~B,jalview.datamodel.SequenceI,jalview.datamodel.SequenceGroup");e(c$,"findAnnotation",function(a){for(var b=new java.util.ArrayList,c,f=
1679 0,d=this.getAlignmentAnnotation();f<d.length&&((c=d[f])||1);f++)(c.getCalcId()===a||null!=c.getCalcId()&&null!=a&&c.getCalcId().equals(a))&&b.add(c);return b},"~S");e(c$,"findAnnotations",function(a,b,c){for(var f=new java.util.ArrayList,d,e=0,g=this.getAlignmentAnnotation();e<g.length&&((d=g[e])||1);e++)null!=d.getCalcId()&&(d.getCalcId().equals(b)&&null!=d.sequenceRef&&d.sequenceRef===a&&null!=d.label&&d.label.equals(c))&&f.add(d);return f},"jalview.datamodel.SequenceI,~S,~S");e(c$,"moveSelectedSequencesByOne",
1680 function(a,b,c){if(c){c=1;for(var f=this.sequences.size();c<f;c++){var d=this.sequences.get(c);if(a.getSequences(b).contains(d)){var e=this.sequences.get(c-1);a.getSequences(null).contains(e)||(this.sequences.set(c,e),this.sequences.set(c-1,d))}}}else for(c=this.sequences.size()-2;-1<c;c--)d=this.sequences.get(c),a.getSequences(b).contains(d)&&(e=this.sequences.get(c+1),a.getSequences(b).contains(e)||(this.sequences.set(c,e),this.sequences.set(c+1,d)))},"jalview.datamodel.SequenceGroup,java.util.Map,~B");
1681 e(c$,"validateAnnotation",function(a){a.validateRangeAndDisplay();this.isNucleotide()&&a.isValidStruc()&&(this.$hasRNAStructure=!0)},"jalview.datamodel.AlignmentAnnotation");e(c$,"getSeqrep",function(){return this.seqrep});e(c$,"setSeqrep",function(a){this.seqrep=a},"jalview.datamodel.SequenceI");e(c$,"hasSeqrep",function(){return null!=this.seqrep});e(c$,"getEndRes",function(){return this.getWidth()-1});e(c$,"getStartRes",function(){return 0});e(c$,"getContext",function(){return this.dataset});d(c$,
1682 "alignAs",function(a){return this.alignAs(a,!1,!0)},"jalview.datamodel.AlignmentI");d(c$,"alignAs",function(a,b,c){var f=0,d=this.isNucleotide(),e=!a.isNucleotide();if(!e&&!d)return jalview.analysis.AlignmentUtils.alignProteinAsDna(this,a);for(var g=this.getGapCharacter(),d=d&&e?String.valueOf(N(-1,[g,g,g])):String.valueOf(g),h,e=this.getSequences().iterator();e.hasNext()&&((h=e.next())||1);)f+=jalview.analysis.AlignmentUtils.alignSequenceAs(h,a,d,b,c)?1:0;return f},"jalview.datamodel.AlignmentI,~B,~B");
1683 e(c$,"getSequenceNames",function(){for(var a=new java.util.HashSet,b,c=this.getSequences().iterator();c.hasNext()&&((b=c.next())||1);)a.add(b.getName());return a});e(c$,"toString",function(){var a=this.getSequencesArray();return""+JSON.stringify(a)});G(c$,"PROTEIN",0,"NUCLEOTIDE",1)});p("jalview.datamodel");q(["jalview.datamodel.AnnotatedCollectionI"],"jalview.datamodel.AlignmentI",null,function(){M(jalview.datamodel,"AlignmentI",jalview.datamodel.AnnotatedCollectionI)});p("jalview.datamodel");q(null,
1684 "jalview.datamodel.HiddenSequences",["jalview.datamodel.Alignment","java.util.ArrayList"],function(){c$=s(function(){this.alignment=this.hiddenSequences=null;r(this,arguments)},jalview.datamodel,"HiddenSequences");m(c$,function(a){this.alignment=a},"jalview.datamodel.AlignmentI");d(c$,"getSize",function(){if(null==this.hiddenSequences)return 0;for(var a=0,b=0;b<this.hiddenSequences.length;b++)null!=this.hiddenSequences[b]&&a++;return a});d(c$,"getWidth",function(){for(var a=0,b=0;b<this.hiddenSequences.length;b++)null!=
1685 this.hiddenSequences[b]&&this.hiddenSequences[b].getLength()>a&&(a=this.hiddenSequences[b].getLength());return a});d(c$,"adjustHeightSequenceDeleted",function(a){if(null!=this.hiddenSequences){var b=this.alignment.getHeight(),b=Array(b+this.getSize());a=this.adjustForHiddenSeqs(a);for(var c=0;c<this.hiddenSequences.length;c++)null!=this.hiddenSequences[c]&&(c>a?b[c-1]=this.hiddenSequences[c]:b[c]=this.hiddenSequences[c]);this.hiddenSequences=b}},"~N");d(c$,"adjustHeightSequenceAdded",function(){if(null!=
1686 this.hiddenSequences){var a=this.alignment.getHeight(),a=Array(a+this.getSize());System.arraycopy(this.hiddenSequences,0,a,0,this.hiddenSequences.length);this.hiddenSequences=a}});d(c$,"hideSequence",function(a){null==this.hiddenSequences&&(this.hiddenSequences=Array(this.alignment.getHeight()));var b=this.alignment.findIndex(a),b=this.adjustForHiddenSeqs(b);null!=this.hiddenSequences[b]&&System.out.println("ERROR!!!!!!!!!!!");this.hiddenSequences[b]=a;this.alignment.deleteSequence(a)},"jalview.datamodel.SequenceI");
1687 d(c$,"showAll",function(a){for(var b=new java.util.ArrayList,c=0;c<this.hiddenSequences.length;c++)if(null!=this.hiddenSequences[c])for(var f,d=this.showSequence(c,a).iterator();d.hasNext()&&((f=d.next())||1);)b.add(f);return b},"java.util.Map");d(c$,"showSequence",function(a,b){var c=new java.util.ArrayList,f=this.alignment.getSequenceAt(a);null!=f&&(null!=b&&b.containsKey(f))&&(b.remove(f),c.add(f));var f=this.adjustForHiddenSeqs(a-1),d=this.adjustForHiddenSeqs(a);for(d>=this.hiddenSequences.length&&
1688 (d=this.hiddenSequences.length-1);d>f;d--){var e=this.hiddenSequences[d];this.hiddenSequences[d]=null;null!=e&&(0<e.getLength()?(c.add(e),(void 0).add(a,e)):System.out.println(e.getName()+" has been deleted whilst hidden"))}return c},"~N,java.util.Map");d(c$,"getHiddenSequence",function(a){return this.hiddenSequences[a]},"~N");d(c$,"findIndexWithoutHiddenSeqs",function(a){var b=0,c=0;for(this.hiddenSequences.length<=a&&(a=this.hiddenSequences.length-1);b<=a;)null!=this.hiddenSequences[b]&&c++,b++;
1689 return a-c},"~N");d(c$,"adjustForHiddenSeqs",function(a){for(var b=0,c=this.hiddenSequences.length;b<=a&&b<c;)null!=this.hiddenSequences[b]&&a++,b++;return a},"~N");d(c$,"getFullAlignment",function(){for(var a=Array(this.hiddenSequences.length),b=0,c=0;c<this.hiddenSequences.length;c++)null!=this.hiddenSequences[c]?a[c]=this.hiddenSequences[c]:(a[c]=this.alignment.getSequenceAt(b),b++);a=new jalview.datamodel.Alignment(a);a.annotations=this.alignment.getAlignmentAnnotation();a.alignmentProperties=
1690 this.alignment.getProperties();a.groups=this.alignment.getGroups();a.$hasRNAStructure=this.alignment.hasRNAStructure();return a});d(c$,"isHidden",function(a){if(null!=this.hiddenSequences)for(var b=0;b<this.hiddenSequences.length;b++)if(null!=this.hiddenSequences[b]&&this.hiddenSequences[b]===a)return!0;return!1},"jalview.datamodel.SequenceI")});q(["java.util.HashSet","$.Set"],"java.util.LinkedHashSet",["java.util.LinkedHashMap"],function(){c$=B(java.util,"LinkedHashSet",java.util.HashSet,[java.util.Set,
1691 Cloneable,java.io.Serializable]);m(c$,function(){t(this,java.util.LinkedHashSet,[new java.util.LinkedHashMap])});m(c$,function(a){t(this,java.util.LinkedHashSet,[new java.util.LinkedHashMap(a)])},"~N");m(c$,function(a,b){t(this,java.util.LinkedHashSet,[new java.util.LinkedHashMap(a,b)])},"~N,~N");m(c$,function(a){t(this,java.util.LinkedHashSet,[new java.util.LinkedHashMap(6>a.size()?11:2*a.size())]);var b;for(a=a.iterator();a.hasNext()&&((b=a.next())||1);)this.add(b)},"java.util.Collection");e(c$,
1692 "createBackingMap",function(a,b){return new java.util.LinkedHashMap(a,b)},"~N,~N")});q(["java.util.HashMap"],"java.util.LinkedHashMap",["java.lang.IllegalStateException","java.util.AbstractCollection","$.AbstractSet","java.util.MapEntry.Type","java.util.NoSuchElementException"],function(){c$=s(function(){this.accessOrder=!1;this.tail=this.head=null;r(this,arguments)},java.util,"LinkedHashMap",java.util.HashMap);m(c$,function(){t(this,java.util.LinkedHashMap);this.accessOrder=!1;this.head=null});m(c$,
1693 function(a){t(this,java.util.LinkedHashMap,[a]);this.accessOrder=!1;this.head=null},"~N");m(c$,function(a,b){t(this,java.util.LinkedHashMap,[a,b]);this.accessOrder=!1;this.tail=this.head=null},"~N,~N");m(c$,function(a,b,c){t(this,java.util.LinkedHashMap,[a,b]);this.accessOrder=c;this.tail=this.head=null},"~N,~N,~B");m(c$,function(a){t(this,java.util.LinkedHashMap,[]);this.accessOrder=!1;this.tail=this.head=null;this.putAll(a)},"java.util.Map");e(c$,"newElementArray",function(a){return Array(a)},"~N");
1694 e(c$,"get",function(a){a=this.getEntry(a);if(null==a)return null;if(this.accessOrder&&this.tail!==a){var b=a.chainBackward,c=a.chainForward;c.chainBackward=b;null!=b?b.chainForward=c:this.head=c;a.chainForward=null;a.chainBackward=this.tail;this.tail=this.tail.chainForward=a}return a.value},"~O");e(c$,"createEntry",function(a,b,c){a=new java.util.LinkedHashMap.LinkedHashMapEntry(a,c);a.next=this.elementData[b];this.elementData[b]=a;this.linkEntry(a);return a},"~O,~N,~O");e(c$,"put",function(a,b){var c=
1695 this.getModuloHash(a),f=this.findEntry(a,c);null==f?(this.modCount++,++this.elementCount>this.threshold&&(this.rehash(),c=null==a?0:(a.hashCode()&2147483647)%this.elementData.length),f=this.createEntry(a,c,null)):this.linkEntry(f);c=f.value;f.value=b;this.removeEldestEntry(this.head)&&this.remove(this.head.key);return c},"~O,~O");d(c$,"linkEntry",function(a){if(this.tail!==a)if(null==this.head)this.head=this.tail=a;else{var b=a.chainBackward,c=a.chainForward;null==b?null!=c?this.accessOrder&&(this.head=
1696 c,c.chainBackward=null,a.chainBackward=this.tail,a.chainForward=null,this.tail=this.tail.chainForward=a):(a.chainBackward=this.tail,a.chainForward=null,this.tail=this.tail.chainForward=a):null!=c&&this.accessOrder&&(b.chainForward=c,c.chainBackward=b,a.chainForward=null,a.chainBackward=this.tail,this.tail=this.tail.chainForward=a)}},"java.util.LinkedHashMap.LinkedHashMapEntry");e(c$,"entrySet",function(){return new java.util.LinkedHashMap.LinkedHashMapEntrySet(this)});e(c$,"keySet",function(){null==
1697 this.$keySet&&(this.$keySet=(H("java.util.LinkedHashMap$1")?0:java.util.LinkedHashMap.$LinkedHashMap$1$(),C(java.util.LinkedHashMap$1,this,null)));return this.$keySet});e(c$,"values",function(){null==this.valuesCollection&&(this.valuesCollection=(H("java.util.LinkedHashMap$2")?0:java.util.LinkedHashMap.$LinkedHashMap$2$(),C(java.util.LinkedHashMap$2,this,null)));return this.valuesCollection});e(c$,"remove",function(a){a=this.removeEntry(a);if(null==a)return null;var b=a.chainBackward,c=a.chainForward;
1698 null!=b?b.chainForward=c:this.head=c;null!=c?c.chainBackward=b:this.tail=b;return a.value},"~O");d(c$,"removeEldestEntry",function(){return!1},"java.util.Map.Entry");d(c$,"clear",function(){K(this,java.util.LinkedHashMap,"clear",[]);this.head=this.tail=null});d(c$,"clone",function(){var a=K(this,java.util.LinkedHashMap,"clone",[]);a.clear();for(var b,c=this.entrySet().iterator();c.hasNext()&&((b=c.next())||1);)a.put(b.getKey(),b.getValue());return a});c$.$LinkedHashMap$1$=function(){A(self.c$);c$=
1699 L(java.util,"LinkedHashMap$1",java.util.AbstractSet);e(c$,"contains",function(a){return this.b$["java.util.LinkedHashMap"].containsKey(a)},"~O");e(c$,"size",function(){return this.b$["java.util.LinkedHashMap"].size()});e(c$,"clear",function(){this.b$["java.util.LinkedHashMap"].clear()});e(c$,"remove",function(a){return this.b$["java.util.LinkedHashMap"].containsKey(a)?(this.b$["java.util.LinkedHashMap"].remove(a),!0):!1},"~O");e(c$,"iterator",function(){return new java.util.LinkedHashMap.LinkedHashIterator((H("java.util.LinkedHashMap$1$1")?
1700 0:java.util.LinkedHashMap.$LinkedHashMap$1$1$(),C(java.util.LinkedHashMap$1$1,this,null)),this.b$["java.util.LinkedHashMap"])});c$=z()};c$.$LinkedHashMap$1$1$=function(){A(self.c$);c$=L(java.util,"LinkedHashMap$1$1",null,java.util.MapEntry.Type);e(c$,"get",function(a){return a.key},"java.util.MapEntry");c$=z()};c$.$LinkedHashMap$2$=function(){A(self.c$);c$=L(java.util,"LinkedHashMap$2",java.util.AbstractCollection);e(c$,"contains",function(a){return this.b$["java.util.LinkedHashMap"].containsValue(a)},
1701 "~O");e(c$,"size",function(){return this.b$["java.util.LinkedHashMap"].size()});e(c$,"clear",function(){this.b$["java.util.LinkedHashMap"].clear()});e(c$,"iterator",function(){return new java.util.LinkedHashMap.LinkedHashIterator((H("java.util.LinkedHashMap$2$1")?0:java.util.LinkedHashMap.$LinkedHashMap$2$1$(),C(java.util.LinkedHashMap$2$1,this,null)),this.b$["java.util.LinkedHashMap"])});c$=z()};c$.$LinkedHashMap$2$1$=function(){A(self.c$);c$=L(java.util,"LinkedHashMap$2$1",null,java.util.MapEntry.Type);
1702 e(c$,"get",function(a){return a.value},"java.util.MapEntry");c$=z()};A(self.c$);c$=B(java.util.LinkedHashMap,"LinkedHashIterator",java.util.HashMap.HashMapIterator);m(c$,function(a,b){t(this,java.util.LinkedHashMap.LinkedHashIterator,[a,b]);this.entry=b.head},"java.util.MapEntry.Type,java.util.LinkedHashMap");e(c$,"hasNext",function(){return null!=this.entry});e(c$,"next",function(){this.checkConcurrentMod();if(!this.hasNext())throw new java.util.NoSuchElementException;var a=this.type.get(this.entry);
1703 this.lastEntry=this.entry;this.entry=this.entry.chainForward;this.canRemove=!0;return a});e(c$,"remove",function(){this.checkConcurrentMod();if(!this.canRemove)throw new IllegalStateException;this.canRemove=!1;this.associatedMap.modCount++;var a=this.associatedMap.getModuloHash(this.lastEntry.key),b=this.associatedMap.elementData[a];if(b===this.lastEntry)this.associatedMap.elementData[a]=this.lastEntry.next;else{for(;null!=b.next&&b.next!==this.lastEntry;)b=b.next;b.next=this.lastEntry.next}var b=
1704 this.lastEntry,a=b.chainBackward,b=b.chainForward,c=this.associatedMap;null!=a?(a.chainForward=b,null!=b?b.chainBackward=a:c.tail=a):(c.head=b,null!=b?b.chainBackward=null:c.tail=null);this.associatedMap.elementCount--;this.expectedModCount++});c$=z();A(self.c$);c$=B(java.util.LinkedHashMap,"LinkedHashMapEntrySet",java.util.HashMap.HashMapEntrySet);e(c$,"iterator",function(){return new java.util.LinkedHashMap.LinkedHashIterator((H("java.util.LinkedHashMap$LinkedHashMapEntrySet$1")?0:java.util.LinkedHashMap.LinkedHashMapEntrySet.$LinkedHashMap$LinkedHashMapEntrySet$1$(),
1705 C(java.util.LinkedHashMap$LinkedHashMapEntrySet$1,this,null)),this.hashMap())});c$.$LinkedHashMap$LinkedHashMapEntrySet$1$=function(){A(self.c$);c$=L(java.util,"LinkedHashMap$LinkedHashMapEntrySet$1",null,java.util.MapEntry.Type);e(c$,"get",function(a){return a},"java.util.MapEntry");c$=z()};c$=z();A(self.c$);c$=s(function(){this.chainBackward=this.chainForward=null;r(this,arguments)},java.util.LinkedHashMap,"LinkedHashMapEntry",java.util.HashMap.Entry);m(c$,function(a,b){t(this,java.util.LinkedHashMap.LinkedHashMapEntry,
1706 [a,b]);this.chainBackward=this.chainForward=null},"~O,~O");d(c$,"clone",function(){var a=K(this,java.util.LinkedHashMap.LinkedHashMapEntry,"clone",[]);a.chainBackward=this.chainBackward;a.chainForward=this.chainForward;var b=a.next;null!=b&&(a.next=b.clone());return a});c$=z()});p("jalview.datamodel");q(["jalview.datamodel.CigarBase"],"jalview.datamodel.CigarArray",["jalview.datamodel.CigarCigar","$.SeqCigar","java.lang.StringBuffer","java.util.Vector"],function(){c$=s(function(){this.refCigars=null;
1707 this.seqcigararray=!1;r(this,arguments)},jalview.datamodel,"CigarArray",jalview.datamodel.CigarBase);d(c$,"isSeqCigarArray",function(){return this.seqcigararray});m(c$,function(a){t(this,jalview.datamodel.CigarArray);this.seqcigararray=!0;if(null!=a&&0<a.length){this.refCigars=Array(a.length);for(var b=0;b<a.length;b++)this.refCigars[b]=a[b],!v(a[b],jalview.datamodel.SeqCigar)&&!v(a[b],jalview.datamodel.CigarCigar)&&(this.seqcigararray=!1)}},"~A");m(c$,function(a,b,c){this.construct(jalview.datamodel.CigarArray.constructSeqCigarArray(a,
1708 c));this.constructFromAlignment(a,null!=b?b.getHiddenColumns():null,c)},"jalview.datamodel.AlignmentI,jalview.datamodel.ColumnSelection,jalview.datamodel.SequenceGroup");c$._calcStartEndBounds=d(c$,"_calcStartEndBounds",function(a,b){var c=w(-1,[0,0,0]);null!=b?(c[0]=b.getSize(),c[1]=b.getStartRes(),c[2]=b.getEndRes()):(c[0]=a.getHeight(),c[2]=a.getWidth()-1);return c},"jalview.datamodel.AlignmentI,jalview.datamodel.SequenceGroup");c$.constructSeqCigarArray=d(c$,"constructSeqCigarArray",function(a,
1709 b){var c=null,f,d,c=jalview.datamodel.CigarArray._calcStartEndBounds(a,b),e=c[1],g=c[2];null!=b?(d=b.getSize(),c=b.getSequencesInOrder(a),e=b.getStartRes(),g=b.getEndRes()):(d=a.getHeight(),c=a.getSequencesArray(),g=a.getWidth()-1);var h=Array(d);for(f=0;f<d;f++)h[f]=new jalview.datamodel.SeqCigar(c[f],e,g);return h},"jalview.datamodel.AlignmentI,jalview.datamodel.SequenceGroup");d(c$,"constructFromAlignment",function(a,b,c){a=jalview.datamodel.CigarArray._calcStartEndBounds(a,c);c=a[1];a=a[2];if(null!=
1710 b){for(var f,d=c,e=0;(new Boolean(d<a&e<b.size())).valueOf();e++){f=b.get(e);c=f[0];f=f[1];if(c<d)if(f>d)c=d;else continue;if(c>a)break;f>a&&(f=a);if(c>f)break;d<c&&this.addOperation("M",c-d);this.addOperation("D",1+f-c);d=f+1}d<a&&this.addOperation("M",a-d+1)}else this.addOperation("M",a-c+1)},"jalview.datamodel.AlignmentI,java.util.List,jalview.datamodel.SequenceGroup");d(c$,"getArrayofSequenceAndDeletions",function(a){if(null==this.refCigars||0==this.refCigars.length||0==this.length)return null;
1711 for(var b=Array(this.refCigars.length),c=0;c<this.refCigars.length;c++){var f=this.refCigars[c].getSequenceString(a);b[c]=null!=f?this.getSequenceAndDeletions(f,a):null}return b},"~S");d(c$,"getSequenceString",function(a){if(0==this.length||null==this.refCigars)return"";var b=new StringBuffer;a=this.getArrayofSequenceAndDeletions(a);for(var c=0;c<this.refCigars.length;c++)null!=a[c]&&(b.append(a[c][0]),a[c][0]=null),b.append("\n");return b.toString()},"~S");d(c$,"getSequenceStrings",function(a){if(0==
1712 this.length||null==this.refCigars||0==this.refCigars.length)return null;a=this.getArrayofSequenceAndDeletions(a);for(var b=Array(a.length),c=0;c<this.refCigars.length;c++)b[c]=a[c][0];return b},"~S");d(c$,"applyDeletions",function(){var a=null;if(0==this.length)return null;for(var b=0,c=0,f=0,d=0;d<this.length;)if("D"!=this.operation[d])"M"==this.operation[d]&&(b+=this.range[d]),c+=this.range[d++];else{null==a&&(a=new java.util.Vector);var e=b,g=b+this.range[d]-1;a.addElement(w(-1,[c+f,this.range[d]]));
1713 f+=this.range[d]-1;System.arraycopy(this.operation,d+1,this.operation,d,this.length-d);System.arraycopy(this.range,d+1,this.range,d,this.length-d);this.length--;for(var h=0;h<this.refCigars.length;h++)this.refCigars[h].deleteRange(e,g)}if(null!=a){b=w(2*a.size(),0);c=0;for(f=a.size();c<f;c++)d=a.elementAt(c),b[2*c]=d[0],b[2*c+1]=d[1],a.setElementAt(null,c);return b}return null});d(c$,"getSeqCigarArray",function(){if(!this.isSeqCigarArray())return null;for(var a=Array(this.refCigars.length),b=0;b<
1714 this.refCigars.length;b++)a[b]=this.refCigars[b];return a})});p("jalview.datamodel");q(null,"jalview.datamodel.CigarBase","jalview.util.MessageManager java.lang.Error $.Exception $.StringBuffer java.util.Vector JU.AU".split(" "),function(){c$=s(function(){this.length=0;this._inc_length=10;this.range=this.operation=null;r(this,arguments)},jalview.datamodel,"CigarBase");m(c$,function(){});d(c$,"getSequenceAndDeletions",function(a,b){var c=0,f=JU.AU.newInt2(this.length),d=null,e=new StringBuffer,g=0,
1715 h=0,j=0,n=0,x=0,u=0,m=-1,p=!1;if(0==this.length)return null;null!=a&&(c=a.length);for(var q=!0,s=0;s<this.length;s++)switch(this.operation[s]){case "D":p||(f[++m]=w(-1,[g,0,h]));g+=this.range[s];f[m][1]=g-1;p=!0;break;case "I":for(var p=!1,r=0;r<this.range[s];r++)e.append(b),h++;break;case "M":p=!1;q&&(j=g,n=h,q=!1);if(null!=a)if(x=g+this.range[s],x>c)for(e.append(a.substring(g,c));x-- >=c;)e.append(b);else e.append(a.substring(g,x));h+=this.range[s];g+=this.range[s];x=g-1;u=h;break;default:throw Error(jalview.util.MessageManager.formatMessage("error.unknown_seq_cigar_operation",
1716 E(-1,[(new StringBuffer(this.operation[s].charCodeAt(0))).toString()])));}0<++m&&(d=w(m,0),System.arraycopy(f,0,d,0,m));return E(-1,[null!=a?e.toString():null,w(-1,[j,n,x,u]),d])},"~S,~S");d(c$,"compact_operations",function(){var a=1;if(null!=this.operation)for(var b=this.operation[0];a<this.length;)if(b==this.operation[a]){this.range[a-1]+=this.range[a];var c=this.length-a;0<c&&(System.arraycopy(this.range,a+1,this.range,a,c),System.arraycopy(this.operation,a+1,this.operation,a,c));this.length--}else b=
1717 this.operation[a++]});c$.parseCigarString=d(c$,"parseCigarString",function(a){for(var b=0,c=0,f=a.length;c<f;c++){var d=a.charAt(c);("M"==d||45==d.charCodeAt(0)||"I"==d||41==d.charCodeAt(0)||"D"==d||36==d.charCodeAt(0))&&b++}for(var e=N(b,"\x00"),b=w(b,0),g=0,c=0,f=a.length;c<f;){var h=c;do d=a.charAt(h++);while("0"<=d&&"9">=d&&h<f);if(h>=f&&"0"<=d&&"9">=d)throw new Exception(jalview.util.MessageManager.getString("exception.unterminated_cigar_string"));try{var j=a.substring(c,h-1);b[g]=Integer.parseInt(j);
1718 c=h}catch(n){if(y(n,Exception))throw Error(jalview.util.MessageManager.getString("error.implementation_bug_parse_cigar_string"));throw n;}"a"<=d&&"z">=d&&(d=String.fromCharCode(d.charCodeAt(0)-32));if("M"==d||"I"==d||"D"==d)e[g++]=d;else throw new Exception(jalview.util.MessageManager.formatMessage("exception.unexpected_operation_cigar_string_pos",E(-1,[(new StringBuffer(d.charCodeAt(0))).toString(),Integer.$valueOf(c).toString(),a])));}return E(-1,[e,b])},"~S");d(c$,"addOperation",function(a,b){"a"<=
1719 a&&"z">=a&&(a=String.fromCharCode(a.charCodeAt(0)-32));if("M"!=a&&"D"!=a&&"I"!=a)throw Error(jalview.util.MessageManager.getString("error.implementation_error_invalid_operation_string"));if(0!=b){if(0>b)throw Error(jalview.util.MessageManager.getString("error.invalid_range_string"));null==this.operation&&(this.operation=N(this._inc_length,"\x00"),this.range=w(this._inc_length,0));if(this.length+1==this.operation.length){var c=this.operation;this.operation=N(this.length+1+this._inc_length,"\x00");
1720 System.arraycopy(c,0,this.operation,0,this.length);c=this.range;this.range=w(this.length+1+this._inc_length,0);System.arraycopy(c,0,this.range,0,this.length)}0<this.length&&this.operation[this.length-1]==a?this.length--:this.range[this.length]=0;this.operation[this.length]=a;this.range[this.length++]+=b}},"~S,~N");d(c$,"deleteRange",function(a,b){var c=0;if(0==this.length)return c;if(0>a||a>b)throw Error(jalview.util.MessageManager.getString("error.implementation_error_delete_range_out_of_bounds"));
1721 var f=0,d=1+b-a,e=this.length,g=0,h=!1,j=this.operation,n=this.range;this.length=0;this.range=this.operation=null;for(this.compact_operations();g<e&&f<=b&&0<d;)if("D"==j[g])this.addDeleted(n[g++]);else{var x=n[g];if(!h){if(f+x<=a){this.addOperation(j[g],n[g]);f+=n[g++];continue}h=!0;0<a-f&&(this.addOperation(j[g],a-f),x-=a-f)}if(g<e&&h&&0<d&&0<x){switch(j[g]){case "M":d>x?(this.addDeleted(x),c+=x):(c+=d,this.addDeleted(d),0<x-d&&this.addOperation("M",x-d),x=d=0);break;case "I":0<x-d&&(this.addInsertion(x-
1722 d),d=0);break;case "D":throw Error(jalview.util.MessageManager.getString("error.implementation_error"));default:throw Error(jalview.util.MessageManager.formatMessage("error.implementation_error_unknown_operation",E(-1,[(new StringBuffer(j[g].charCodeAt(0))).toString()])));}d-=x;++g}}for(;g<e;)this.addOperation(j[g],n[g++]);return c},"~N,~N");d(c$,"hasDeletedRegions",function(){for(var a=0;a<this.length;a++)if("D"==this.operation[a])return!0;return!1});d(c$,"getDeletedRegions",function(){if(0==this.length)return null;
1723 for(var a=new java.util.Vector,b=0,c=0,f=0;f<this.length;f++)switch(this.operation[f]){case "M":b+=this.range[f];case "I":c+=this.range[f];break;case "D":a.addElement(w(-1,[c,b,this.range[f]])),b+=this.range[f]}if(0==a.size())return null;b=w(3*a.size(),0);f=0;for(c=a.size();f<c;f++){var d=a.elementAt(f);b[3*f]=d[0];b[3*f+1]=d[1];b[3*f+2]=d[2]}return b});d(c$,"getFullWidth",function(){var a=0;if(null!=this.range)for(var b=0;b<this.length;b++)a+=this.range[b];return a});d(c$,"getWidth",function(){var a=
1724 0;if(null!=this.range)for(var b=0;b<this.length;b++)if("M"==this.operation[b]||"I"==this.operation[b])a+=this.range[b];return a});d(c$,"addInsertion",function(a){this.addOperation("I",a)},"~N");d(c$,"addDeleted",function(a){this.addOperation("D",a)},"~N");d(c$,"getCigarstring",function(){for(var a=new StringBuffer,b=0;b<this.length;b++)a.append(""+this.range[b]),a.append(this.operation[b]);return a.toString()});G(c$,"D","D","I","I","M","M","_case_shift",String.fromCharCode(32))});p("jalview.datamodel");
1725 q(["jalview.datamodel.CigarSimple"],"jalview.datamodel.CigarCigar",null,function(){c$=s(function(){this.refCigar=null;r(this,arguments)},jalview.datamodel,"CigarCigar",jalview.datamodel.CigarSimple);m(c$,function(a){t(this,jalview.datamodel.CigarCigar);this.refCigar=a},"jalview.datamodel.SeqCigar");e(c$,"getSequenceString",function(a){if(0==this.length)return"";var b=this.refCigar.getSequenceString(a);return null!=b?0==this.length?"":this.getSequenceAndDeletions(b,a)[0]:null},"~S")});p("jalview.datamodel");
1726 q(["jalview.datamodel.CigarBase"],"jalview.datamodel.CigarSimple",null,function(){c$=B(jalview.datamodel,"CigarSimple",jalview.datamodel.CigarBase)});p("jalview.datamodel");q(["jalview.datamodel.CigarSimple"],"jalview.datamodel.SeqCigar","jalview.analysis.AlignSeq $.SeqsetUtils jalview.datamodel.Sequence jalview.util.Comparison $.MessageManager $.ShiftList java.lang.Error $.StringBuffer java.util.Hashtable".split(" "),function(){c$=s(function(){this.end=this.start=0;this.selGroups=this.seqProps=this.refseq=
1727 null;r(this,arguments)},jalview.datamodel,"SeqCigar",jalview.datamodel.CigarSimple);d(c$,"getRefSeq",function(){return this.refseq});d(c$,"getStart",function(){return this.start});d(c$,"getEnd",function(){return this.end});e(c$,"getSequenceString",function(a){return 0==this.length?"":this.getSequenceAndDeletions(this.refseq.getSequenceAsString(this.start,this.end),a)[0]},"~S");d(c$,"getSeq",function(a){if(null==this.refseq||0==this.length)return null;a=this.getSequenceAndDeletions(this.refseq.getSequenceAsString(this.start,
1728 this.end),a);if(null==a)throw Error(jalview.util.MessageManager.getString("error.implementation_error_unexpected_null_from_get_sequence_and_deletions"));var b=a[1];a=new jalview.datamodel.Sequence(this.refseq.getName(),a[0],this.refseq.getStart()+this.start+b[0],this.refseq.getStart()+this.start+(0==b[2]?-1:b[2]));a.setDescription(this.refseq.getDescription());var b=a.getStart(),c=a.getEnd();null!=this.seqProps&&jalview.analysis.SeqsetUtils.SeqCharacterUnhash(a,this.seqProps);a.setDatasetSequence(this.refseq);
1729 a.setStart(b);a.setEnd(c);return a},"~S");d(c$,"_setSeq",function(a,b,c,f){var d=!1;if(null==a)throw Error(jalview.util.MessageManager.getString("error.implementation_error_set_seq_null"));if(0>c)throw Error(jalview.util.MessageManager.formatMessage("error.implementation_error_s",E(-1,[Integer.$valueOf(c).toString()])));var e=a.getSequenceAsString();if(0==f||f<c||f>e.length)f=e.length;this.start=a.findPosition(c)-a.getStart();this.end=a.findPosition(f)-a.getStart();var g=this.end-this.start,h=a.getDatasetSequence();
1730 null==h&&(h=jalview.analysis.AlignSeq.extractGaps(jalview.util.Comparison.GapChars,String.instantialize(e)),g=h.length,h=g==a.getLength()?a:new jalview.datamodel.Sequence(a.getName(),h,a.getStart(),a.getStart()+h.length-1));h.getStart()<a.getStart()&&(e=a.getStart()-h.getStart(),b?(this.addDeleted(c+e),this.start=0):this.start+=e,this.end+=e);g!=f-c&&(d=!0);this.refseq=h;this.seqProps=jalview.analysis.SeqsetUtils.SeqCharacterHash(a);if(this.end>h.getLength())throw Error(jalview.util.MessageManager.getString("error.implementation_error_seqcigar_possible"));
1731 return d},"jalview.datamodel.SequenceI,~B,~N,~N");m(c$,function(a,b,c){t(this,jalview.datamodel.SeqCigar);if(null==a)throw Error(jalview.util.MessageManager.getString("error.implmentation_bug_seq_null"));if(b.length!=c.length)throw Error(jalview.util.MessageManager.getString("error.implementation_bug_cigar_operation_list_range_list"));if(null!=b){this.operation=N(b.length+this._inc_length,"\x00");this.range=w(b.length+this._inc_length,0);if(this._setSeq(a,!1,0,0))throw Error(jalview.util.MessageManager.getString("error.not_yet_implemented_cigar_object_from_cigar_string"));
1732 a=this.length;for(var f=0;f<b.length;a++,f++){var d=b[f];if("M"!=d&&"I"!=d&&"D"!=d)throw Error(jalview.util.MessageManager.formatMessage("error.implementation_bug_cigar_operation",E(-1,[Integer.$valueOf(f).toString(),Integer.$valueOf(d.charCodeAt(0)).toString(),Integer.$valueOf(77).toString(),Integer.$valueOf(73).toString(),Integer.$valueOf(68).toString()])));this.operation[a]=d;this.range[a]=c[f]}this.length+=b.length}else if(this.range=this.operation=null,this.length=0,this._setSeq(a,!1,0,0))throw Error(jalview.util.MessageManager.getString("error.not_yet_implemented_cigar_object_from_cigar_string"));
1733 },"jalview.datamodel.SequenceI,~A,~A");d(c$,"addMatch",function(a){this.addOperation("M",a)},"~N");c$.addSequenceOps=d(c$,"addSequenceOps",function(a,b,c,f,d){var e="\x00",g=0,h=0,j=b.getLength();for(d||(h=c);h<=f;)d=h<j?jalview.util.Comparison.isGap(b.getCharAt(h)):!0,c<=h&&h<=f?(d?(0<g&&"I"!=e&&(a.addOperation(e,g),g=0),e="I"):(0<g&&"M"!=e&&(a.addOperation(e,g),g=0),e="M"),g++):d||(0<g&&"D"!=e&&(a.addOperation(e,g),g=0),e="D",g++),h++;0<g&&a.addOperation(e,g)},"jalview.datamodel.CigarBase,jalview.datamodel.SequenceI,~N,~N,~B");
1734 m(c$,function(a){t(this,jalview.datamodel.SeqCigar);if(null==a)throw Error(jalview.util.MessageManager.getString("error.implementation_error_for_new_cigar"));this._setSeq(a,!1,0,0);jalview.datamodel.SeqCigar.addSequenceOps(this,a,0,a.getLength()-1,!1)},"jalview.datamodel.SequenceI");m(c$,function(a,b,c){t(this,jalview.datamodel.SeqCigar);if(null==a)throw Error(jalview.util.MessageManager.getString("error.implementation_error_for_new_cigar"));this._setSeq(a,!1,b,c+1);jalview.datamodel.SeqCigar.addSequenceOps(this,
1735 a,b,c,!1)},"jalview.datamodel.SequenceI,~N,~N");c$.parseCigar=d(c$,"parseCigar",function(a,b){var c=jalview.datamodel.CigarBase.parseCigarString(b);return new jalview.datamodel.SeqCigar(a,c[0],c[1])},"jalview.datamodel.SequenceI,~S");c$.createAlignmentSequences=d(c$,"createAlignmentSequences",function(a,b,c,f){for(var d=Array(a.length),e=Array(a.length),g=Array(a.length),h=Array(a.length),j=0;j<a.length;j++){g[j]=a[j].getRefSeq().getSequenceAsString(a[j].start,a[j].end);h[j]=a[j].getSequenceAndDeletions(g[j],
1736 b);if(null==h[j])throw Error(jalview.util.MessageManager.formatMessage("error.implementation_error_cigar_seq_no_operations",E(-1,[Integer.$valueOf(j).toString()])));e[j]=new StringBuffer(h[j][0])}for(var n=new jalview.util.ShiftList,j=0;j<a.length;j++){var x=h[j][2];if(null!=x)for(var u=0;u<x.length;u++){for(var m=x[u],p=N(m[1]-m[0]+1,"\x00"),q=0;q<p.length;q++)p[q]=b;for(var s=n.shift(m[2]),q=0;q<a.length;q++)if(q!=j){if(e[q].length()<=s)for(var r=s-e[q].length();0<r;r--)e[q].append(b);e[q].insert(s,
1737 p)}else e[q].insert(s,g[j].substring(m[0],m[1]+1));n.addShift(m[2],p.length);null==f&&c.hideColumns(s,s+p.length-1)}}for(j=0;j<a.length;j++)b=h[j][1],g=a[j].getRefSeq(),d[j]=new jalview.datamodel.Sequence(g.getName(),e[j].toString(),g.getStart()+a[j].start+b[0],g.getStart()+a[j].start+(0==b[2]?-1:b[2])),d[j].setDatasetSequence(g),d[j].setDescription(g.getDescription());if(null!=f)for(j=0;j<f.length;j+=3)c.hideColumns(f[j+1],f[j+1]+f[j+2]-1);return d},"~A,~S,jalview.datamodel.ColumnSelection,~A");
1738 d(c$,"setGroupMembership",function(a){null==this.selGroups&&(this.selGroups=new java.util.Hashtable);this.selGroups.put(a,w(0,0))},"~O");d(c$,"removeGroupMembership",function(a){return null!=this.selGroups&&this.selGroups.containsKey(a)?(this.selGroups.remove(a),!0):!1},"~O");d(c$,"clearMemberships",function(){null!=this.selGroups&&this.selGroups.clear();this.selGroups=null});d(c$,"getAllMemberships",function(){if(null==this.selGroups)return null;for(var a=Array(this.selGroups.size()),b=this.selGroups.keys(),
1739 c=0;b.hasMoreElements();c++)a[c]=b.nextElement();return a});d(c$,"isMemberOf",function(a){return null!=this.selGroups&&null!=this.selGroups.get(a)},"~O")});p("jalview.analysis");q(null,"jalview.analysis.SeqsetUtils","jalview.analysis.AlignSeq $.SequenceIdMatcher jalview.datamodel.Sequence jalview.util.Comparison java.util.Hashtable $.Vector".split(" "),function(){c$=B(jalview.analysis,"SeqsetUtils");c$.SeqCharacterHash=d(c$,"SeqCharacterHash",function(a){var b=new java.util.Hashtable;b.put("Name",
1740 a.getName());b.put("Start",new Integer(a.getStart()));b.put("End",new Integer(a.getEnd()));null!=a.getDescription()&&b.put("Description",a.getDescription());var c=new java.util.Vector,f=a.getSequenceFeatures();if(null!=f&&0<f.length)for(var d=0;d<f.length;d++)c.addElement(f[d]);b.put("SeqFeatures",c);b.put("PdbId",null!=a.getPDBId()?a.getPDBId():new java.util.Vector);b.put("datasetSequence",null!=a.getDatasetSequence()?a.getDatasetSequence():new jalview.datamodel.Sequence("THISISAPLACEHOLDER",""));
1741 return b},"jalview.datamodel.SequenceI");c$.SeqCharacterUnhash=d(c$,"SeqCharacterUnhash",function(a,b){var c=!0;if(null==b)return!1;var f=b.get("Name"),d=b.get("Start"),e=b.get("End"),g=b.get("SeqFeatures"),h=b.get("PdbId"),j=b.get("Description"),n=b.get("datasetSequence");null==f?c=!1:a.setName(f);null!=h&&0<h.size()&&a.setPDBId(h);null!=d&&null!=e&&(a.setStart(d.intValue()),a.setEnd(e.intValue()));if(null!=g&&0<g.size()){f=Array(g.size());d=0;for(e=g.size();d<e;d++)f[d]=g.elementAt(d);a.setSequenceFeatures(f)}null!=
1742 j&&a.setDescription(j);null!=n&&!(n.getName().equals("THISISAPLACEHOLDER")&&0==n.getLength())&&a.setDatasetSequence(n);return c},"jalview.datamodel.SequenceI,java.util.Hashtable");c$.unique_name=d(c$,"unique_name",function(a){return String.instantialize("Sequence"+a)},"~N");c$.uniquify=d(c$,"uniquify",function(a,b){for(var c=new java.util.Hashtable,f=0;f<a.length;f++){var d=jalview.analysis.SeqsetUtils.unique_name(f);c.put(d,jalview.analysis.SeqsetUtils.SeqCharacterHash(a[f]));b&&a[f].setName(d)}return c},
1743 "~A,~B");c$.deuniquify=d(c$,"deuniquify",function(a,b){return jalview.analysis.SeqsetUtils.deuniquify(a,b,!0)},"java.util.Hashtable,~A");c$.deuniquify=d(c$,"deuniquify",function(a,b,c){for(var f=new jalview.analysis.SequenceIdMatcher(b),d=null,e=a.keys(),g=new java.util.Vector,d=0,h=b.length;d<h;d++)g.addElement(b[d]);for(;e.hasMoreElements();)b=e.nextElement(),v(b,String)&&(null!=(d=f.findIdMatch(b))?(b=a.get(b),g.removeElement(d),jalview.analysis.SeqsetUtils.SeqCharacterUnhash(d,b)):c||System.err.println("Can't find '"+
1744 b+"' in uniquified alignment"));if(0<g.size()&&!c){System.err.println("Did not find matches for :");for(d=g.elements();d.hasMoreElements();System.out.println(d.nextElement().getName()));return!1}return!0},"java.util.Hashtable,~A,~B");c$.getNonEmptySequenceSet=d(c$,"getNonEmptySequenceSet",function(a){for(var b=X(a.length,!1),c=0,f=0,d=a.length;f<d;f++)0==jalview.analysis.AlignSeq.extractGaps(jalview.util.Comparison.GapChars,a[f].getSequenceAsString()).length?b[f]=!1:(b[f]=!0,c++);if(0==c)return null;
1745 for(var c=Array(c),f=0,d=a.length,e=0;f<d;f++)b[f]&&(c[e++]=a[f]);return c},"~A")});p("jalview.datamodel");q(null,"jalview.datamodel.FeatureProperties",["jalview.datamodel.DBRefSource"],function(){c$=B(jalview.datamodel,"FeatureProperties");c$.isCodingFeature=d(c$,"isCodingFeature",function(a,b){return b.equalsIgnoreCase("CDS")?null==a||a.equalsIgnoreCase(jalview.datamodel.DBRefSource.EMBL)||a.equalsIgnoreCase(jalview.datamodel.DBRefSource.EMBLCDS):!1},"~S,~S");c$.getCodingFeature=d(c$,"getCodingFeature",
1746 function(a){return jalview.datamodel.DBRefSource.EMBL.equalsIgnoreCase(a)||jalview.datamodel.DBRefSource.EMBLCDS.equalsIgnoreCase(a)?"CDS":null},"~S");G(c$,"EMBL_CODING_FEATURE","CDS","EXONPOS","exon number","EXONPRODUCT","product")});p("jalview.util");q(["java.util.HashMap"],"jalview.util.DBRefUtils","jalview.datamodel.DBRefEntry $.DBRefSource $.PDBEntry jalview.jsdev.RegExp java.util.ArrayList $.Hashtable".split(" "),function(){c$=B(jalview.util,"DBRefUtils");c$.selectRefs=d(c$,"selectRefs",function(a,
1747 b){if(null==a)return null;if(null==b)return a;for(var c=new java.util.HashMap,f=new java.util.ArrayList,d=0;d<b.length;d++)c.put(String.instantialize(b[d]),new Integer(d));for(var d=0,e=a.length;d<e;d++)c.containsKey(a[d].getSource())&&f.add(a[d]);return 0<f.size()?(c=Array(f.size()),f.toArray(c)):null},"~A,~A");c$.isDasCoordinateSystem=d(c$,"isDasCoordinateSystem",function(a,b){if(null==a||null==b)return!1;var c=jalview.util.DBRefUtils.dasCoordinateSystemsLookup.get(a.toLowerCase());return null==
1748 c?!1:c.equals(b.getSource())},"~S,jalview.datamodel.DBRefEntry");c$.getCanonicalName=d(c$,"getCanonicalName",function(a){if(null==a)return null;var b=jalview.util.DBRefUtils.canonicalSourceNameLookup.get(a.toLowerCase());return null==b?a:b},"~S");c$.searchRefs=d(c$,"searchRefs",function(a,b){return jalview.util.DBRefUtils.searchRefs(a,b,jalview.util.DBRefUtils.matchDbAndIdAndEitherMapOrEquivalentMapList)},"~A,jalview.datamodel.DBRefEntry");c$.searchRefs=d(c$,"searchRefs",function(a,b,c){if(null==
1749 a||null==b)return null;for(var f=new java.util.ArrayList,d=0;d<a.length;d++)c.matches(b,a[d])&&f.add(a[d]);return 0==f.size()?null:f.toArray(Array(f.size()))},"~A,jalview.datamodel.DBRefEntry,jalview.util.DBRefUtils.DbRefComp");c$.parseToDbRef=d(c$,"parseToDbRef",function(a,b,c,f){var d=null;if(null!=b)if(b=jalview.util.DBRefUtils.getCanonicalName(b),b.equals(jalview.datamodel.DBRefSource.PDB)){var e=jalview.jsdev.RegExp.newRegex(["([0-9][0-9A-Za-z]{3})\\s*(.?)\\s*;\\s*([0-9]+)-([0-9]+)"]);e.search(f.trim())?
1750 (f=e.stringMatchedI(1),e=e.stringMatchedI(2),null==e&&(e=" "),e.equals(" ")&&(e="_"),d=new jalview.datamodel.DBRefEntry(b,c,f+e),c=new jalview.datamodel.PDBEntry,c.setId(f),c.setType(jalview.datamodel.PDBEntry.Type.PDB),c.setProperty(new java.util.Hashtable),c.setChainCode(e),a.addPDBId(c)):System.err.println("Malformed PDB DR line:"+f)}else d=new jalview.datamodel.DBRefEntry(b,c,f);null!=d&&a.addDBRef(d);return d},"jalview.datamodel.SequenceI,~S,~S,~S");c$.$DBRefUtils$1$=function(){A(self.c$);c$=
1751 L(jalview.util,"DBRefUtils$1",null,jalview.util.DBRefUtils.DbRefComp);d(c$,"matches",function(a,b){if(null==a.getSource()||b.getSource().equals(a.getSource()))if(null==a.getVersion()||b.getVersion().equals(a.getVersion()))if(null==a.getAccessionId()||b.getAccessionId().equals(a.getAccessionId()))if(null==a.getMap()||null!=b.getMap()&&b.getMap().equals(a.getMap()))return!0;return!1},"jalview.datamodel.DBRefEntry,jalview.datamodel.DBRefEntry");c$=z()};c$.$DBRefUtils$2$=function(){A(self.c$);c$=L(jalview.util,
1752 "DBRefUtils$2",null,jalview.util.DBRefUtils.DbRefComp);d(c$,"matches",function(a,b){if(null==a.getSource()||null==b.getSource()||b.getSource().equals(a.getSource()))if(null==a.getVersion()||null==b.getVersion()||b.getVersion().equals(a.getVersion()))if(null==a.getAccessionId()||null==b.getAccessionId()||b.getAccessionId().equals(a.getAccessionId()))if(null==a.getMap()||null==b.getMap()||null!=b.getMap()&&b.getMap().equals(a.getMap()))return!0;return!1},"jalview.datamodel.DBRefEntry,jalview.datamodel.DBRefEntry");
1753 c$=z()};c$.$DBRefUtils$3$=function(){A(self.c$);c$=L(jalview.util,"DBRefUtils$3",null,jalview.util.DBRefUtils.DbRefComp);d(c$,"matches",function(a,b){if(null!=a.getSource()&&(null!=b.getSource()&&b.getSource().equals(a.getSource()))&&(null!=a.getAccessionId()&&null!=b.getAccessionId()||b.getAccessionId().equals(a.getAccessionId())))if(null==a.getMap()||null==b.getMap()||null!=a.getMap()&&null!=b.getMap()&&b.getMap().equals(a.getMap()))return!0;return!1},"jalview.datamodel.DBRefEntry,jalview.datamodel.DBRefEntry");
1754 c$=z()};c$.$DBRefUtils$4$=function(){A(self.c$);c$=L(jalview.util,"DBRefUtils$4",null,jalview.util.DBRefUtils.DbRefComp);d(c$,"matches",function(a,b){if(null!=a.getSource()&&(null!=b.getSource()&&b.getSource().equals(a.getSource()))&&(null!=a.getAccessionId()&&null!=b.getAccessionId()||b.getAccessionId().equals(a.getAccessionId())))if(null==a.getMap()&&null==b.getMap()||null!=a.getMap()&&null!=b.getMap())if(null==b.getMap().getMap()&&null==a.getMap().getMap()||null!=b.getMap().getMap()&&null!=a.getMap().getMap()&&
1755 b.getMap().getMap().getInverse().equals(a.getMap().getMap()))return!0;return!1},"jalview.datamodel.DBRefEntry,jalview.datamodel.DBRefEntry");c$=z()};c$.$DBRefUtils$5$=function(){A(self.c$);c$=L(jalview.util,"DBRefUtils$5",null,jalview.util.DBRefUtils.DbRefComp);d(c$,"matches",function(a,b){if(null!=a.getSource()&&(null!=b.getSource()&&b.getSource().equals(a.getSource()))&&(null!=a.getAccessionId()&&null!=b.getAccessionId()||b.getAccessionId().equals(a.getAccessionId())))if(null==a.getMap()&&null==
1756 b.getMap()||null!=a.getMap()&&null!=b.getMap()&&(null==b.getMap().getMap()&&null==a.getMap().getMap()||null!=b.getMap().getMap()&&null!=a.getMap().getMap()&&b.getMap().getMap().equals(a.getMap().getMap())))return!0;return!1},"jalview.datamodel.DBRefEntry,jalview.datamodel.DBRefEntry");c$=z()};c$.$DBRefUtils$6$=function(){A(self.c$);c$=L(jalview.util,"DBRefUtils$6",null,jalview.util.DBRefUtils.DbRefComp);d(c$,"matches",function(a,b){return null!=a.getSource()&&null!=b.getSource()&&b.getSource().equals(a.getSource())&&
1757 null!=a.getAccessionId()&&(null!=b.getAccessionId()&&b.getAccessionId().equals(a.getAccessionId()))&&(null==a.getMap()||null==b.getMap()||null!=a.getMap()&&null!=b.getMap()&&null==b.getMap().getMap()&&null==a.getMap().getMap()||null!=b.getMap().getMap()&&null!=a.getMap().getMap()&&b.getMap().getMap().equals(a.getMap().getMap()))?!0:!1},"jalview.datamodel.DBRefEntry,jalview.datamodel.DBRefEntry");c$=z()};M(jalview.util.DBRefUtils,"DbRefComp");c$.canonicalSourceNameLookup=c$.prototype.canonicalSourceNameLookup=
1758 new java.util.HashMap;c$.dasCoordinateSystemsLookup=c$.prototype.dasCoordinateSystemsLookup=new java.util.HashMap;jalview.util.DBRefUtils.canonicalSourceNameLookup.put("uniprotkb/swiss-prot",jalview.datamodel.DBRefSource.UNIPROT);jalview.util.DBRefUtils.canonicalSourceNameLookup.put("uniprotkb/trembl",jalview.datamodel.DBRefSource.UNIPROT);jalview.util.DBRefUtils.canonicalSourceNameLookup.put("pdb",jalview.datamodel.DBRefSource.PDB);jalview.util.DBRefUtils.dasCoordinateSystemsLookup.put("pdbresnum",
1759 jalview.datamodel.DBRefSource.PDB);jalview.util.DBRefUtils.dasCoordinateSystemsLookup.put("uniprot",jalview.datamodel.DBRefSource.UNIPROT);jalview.util.DBRefUtils.dasCoordinateSystemsLookup.put("embl",jalview.datamodel.DBRefSource.EMBL);c$.matchNonNullonA=c$.prototype.matchNonNullonA=(H("jalview.util.DBRefUtils$1")?0:jalview.util.DBRefUtils.$DBRefUtils$1$(),C(jalview.util.DBRefUtils$1,this,null));c$.matchEitherNonNull=c$.prototype.matchEitherNonNull=(H("jalview.util.DBRefUtils$2")?0:jalview.util.DBRefUtils.$DBRefUtils$2$(),
1760 C(jalview.util.DBRefUtils$2,this,null));c$.matchDbAndIdAndEitherMap=c$.prototype.matchDbAndIdAndEitherMap=(H("jalview.util.DBRefUtils$3")?0:jalview.util.DBRefUtils.$DBRefUtils$3$(),C(jalview.util.DBRefUtils$3,this,null));c$.matchDbAndIdAndComplementaryMapList=c$.prototype.matchDbAndIdAndComplementaryMapList=(H("jalview.util.DBRefUtils$4")?0:jalview.util.DBRefUtils.$DBRefUtils$4$(),C(jalview.util.DBRefUtils$4,this,null));c$.matchDbAndIdAndEquivalentMapList=c$.prototype.matchDbAndIdAndEquivalentMapList=
1761 (H("jalview.util.DBRefUtils$5")?0:jalview.util.DBRefUtils.$DBRefUtils$5$(),C(jalview.util.DBRefUtils$5,this,null));c$.matchDbAndIdAndEitherMapOrEquivalentMapList=c$.prototype.matchDbAndIdAndEitherMapOrEquivalentMapList=(H("jalview.util.DBRefUtils$6")?0:jalview.util.DBRefUtils.$DBRefUtils$6$(),C(jalview.util.DBRefUtils$6,this,null))});q("java.util.AbstractCollection $.AbstractMap $.AbstractSet $.Iterator $.MapEntry $.Set $.SortedMap".split(" "),"java.util.TreeMap",["java.lang.IllegalArgumentException",
1762 "$.IllegalStateException","java.util.ConcurrentModificationException","$.NoSuchElementException"],function(){c$=s(function(){this.$size=0;this.$comparator=this.root=null;this.modCount=0;this.$entrySet=null;r(this,arguments)},java.util,"TreeMap",java.util.AbstractMap,[java.util.SortedMap,Cloneable,java.io.Serializable]);c$.toComparable=d(c$,"toComparable",($fz=function(a){return a},$fz.isPrivate=!0,$fz),"~O");m(c$,function(a){t(this,java.util.TreeMap,[]);this.$comparator=a},"java.util.Comparator");
1763 m(c$,function(a){this.construct();this.putAll(a)},"java.util.Map");m(c$,function(a){this.construct(a.comparator());a=a.entrySet().iterator();if(a.hasNext()){var b=a.next(),c=new java.util.TreeMap.Entry(b.getKey(),b.getValue());this.root=c;for(this.$size=1;a.hasNext();)b=a.next(),b=new java.util.TreeMap.Entry(b.getKey(),b.getValue()),b.parent=c,c.right=b,this.$size++,this.balance(b),c=b}},"java.util.SortedMap");d(c$,"balance",function(a){var b;for(a.color=!0;a!==this.root&&a.parent.color;)a.parent===
1764 a.parent.parent.left?(b=a.parent.parent.right,null!=b&&b.color?(a.parent.color=!1,b.color=!1,a.parent.parent.color=!0,a=a.parent.parent):(a===a.parent.right&&(a=a.parent,this.leftRotate(a)),a.parent.color=!1,a.parent.parent.color=!0,this.rightRotate(a.parent.parent))):(b=a.parent.parent.left,null!=b&&b.color?(a.parent.color=!1,b.color=!1,a.parent.parent.color=!0,a=a.parent.parent):(a===a.parent.left&&(a=a.parent,this.rightRotate(a)),a.parent.color=!1,a.parent.parent.color=!0,this.leftRotate(a.parent.parent)));
1765 this.root.color=!1},"java.util.TreeMap.Entry");e(c$,"clear",function(){this.root=null;this.$size=0;this.modCount++});d(c$,"clone",function(){try{var a=K(this,java.util.TreeMap,"clone",[]);a.$entrySet=null;null!=this.root&&(a.root=this.root.clone(null));return a}catch(b){if(v(b,CloneNotSupportedException))return null;throw b;}});e(c$,"comparator",function(){return this.$comparator});e(c$,"containsKey",function(a){return null!=this.find(a)},"~O");d(c$,"containsValue",function(a){return null!=this.root?
1766 this.containsValue(this.root,a):!1},"~O");d(c$,"containsValue",($fz=function(a,b){return(null==b?null==a.value:b.equals(a.value))||null!=a.left&&this.containsValue(a.left,b)||null!=a.right&&this.containsValue(a.right,b)?!0:!1},$fz.isPrivate=!0,$fz),"java.util.TreeMap.Entry,~O");e(c$,"entrySet",function(){null==this.$entrySet&&(this.$entrySet=(H("java.util.TreeMap$1")?0:java.util.TreeMap.$TreeMap$1$(),C(java.util.TreeMap$1,this,null)));return this.$entrySet});d(c$,"find",($fz=function(a){var b,c=null;
1767 null==this.$comparator&&(c=java.util.TreeMap.toComparable(a));for(var f=this.root;null!=f;){b=null!=c?c.compareTo(f.key):this.$comparator.compare(a,f.key);if(0==b)return f;f=0>b?f.left:f.right}return null},$fz.isPrivate=!0,$fz),"~O");d(c$,"findAfter",function(a){var b,c=null;null==this.$comparator&&(c=java.util.TreeMap.toComparable(a));for(var f=this.root,d=null;null!=f;){b=null!=c?c.compareTo(f.key):this.$comparator.compare(a,f.key);if(0==b)return f;0>b?(d=f,f=f.left):f=f.right}return d},"~O");d(c$,
1768 "findBefore",function(a){var b,c=null;null==this.$comparator&&(c=java.util.TreeMap.toComparable(a));for(var f=this.root,d=null;null!=f;)b=null!=c?c.compareTo(f.key):this.$comparator.compare(a,f.key),0>=b?f=f.left:(d=f,f=f.right);return d},"~O");e(c$,"firstKey",function(){if(null!=this.root)return java.util.TreeMap.minimum(this.root).key;throw new java.util.NoSuchElementException;});d(c$,"fixup",($fz=function(a){for(var b;a!==this.root&&!a.color;)if(a===a.parent.left)if(b=a.parent.right,null==b)a=
1769 a.parent;else{if(b.color&&(b.color=!1,a.parent.color=!0,this.leftRotate(a.parent),b=a.parent.right,null==b)){a=a.parent;continue}if((null==b.left||!b.left.color)&&(null==b.right||!b.right.color))b.color=!0,a=a.parent;else{if(null==b.right||!b.right.color)b.left.color=!1,b.color=!0,this.rightRotate(b),b=a.parent.right;b.color=a.parent.color;a.parent.color=!1;b.right.color=!1;this.leftRotate(a.parent);a=this.root}}else if(b=a.parent.left,null==b)a=a.parent;else{if(b.color&&(b.color=!1,a.parent.color=
1770 !0,this.rightRotate(a.parent),b=a.parent.left,null==b)){a=a.parent;continue}if((null==b.left||!b.left.color)&&(null==b.right||!b.right.color))b.color=!0,a=a.parent;else{if(null==b.left||!b.left.color)b.right.color=!1,b.color=!0,this.leftRotate(b),b=a.parent.left;b.color=a.parent.color;a.parent.color=!1;b.left.color=!1;this.rightRotate(a.parent);a=this.root}}a.color=!1},$fz.isPrivate=!0,$fz),"java.util.TreeMap.Entry");e(c$,"get",function(a){a=this.find(a);return null!=a?a.value:null},"~O");e(c$,"headMap",
1771 function(a){null==this.$comparator?java.util.TreeMap.toComparable(a).compareTo(a):this.$comparator.compare(a,a);return new java.util.TreeMap.SubMap(this,a)},"~O");e(c$,"keySet",function(){null==this.$keySet&&(this.$keySet=(H("java.util.TreeMap$2")?0:java.util.TreeMap.$TreeMap$2$(),C(java.util.TreeMap$2,this,null)));return this.$keySet});e(c$,"lastKey",function(){if(null!=this.root)return java.util.TreeMap.maximum(this.root).key;throw new java.util.NoSuchElementException;});d(c$,"leftRotate",($fz=
1772 function(a){var b=a.right;a.right=b.left;null!=b.left&&(b.left.parent=a);b.parent=a.parent;null==a.parent?this.root=b:a===a.parent.left?a.parent.left=b:a.parent.right=b;b.left=a;a.parent=b},$fz.isPrivate=!0,$fz),"java.util.TreeMap.Entry");c$.maximum=d(c$,"maximum",function(a){for(;null!=a.right;)a=a.right;return a},"java.util.TreeMap.Entry");c$.minimum=d(c$,"minimum",function(a){for(;null!=a.left;)a=a.left;return a},"java.util.TreeMap.Entry");c$.predecessor=d(c$,"predecessor",function(a){if(null!=
1773 a.left)return java.util.TreeMap.maximum(a.left);for(var b=a.parent;null!=b&&a===b.left;)a=b,b=b.parent;return b},"java.util.TreeMap.Entry");e(c$,"put",function(a,b){var c=this.rbInsert(a),f=c.value;c.value=b;return f},"~O,~O");d(c$,"rbDelete",function(a){var b=null==a.left||null==a.right?a:java.util.TreeMap.successor(a),c=null!=b.left?b.left:b.right;null!=c&&(c.parent=b.parent);null==b.parent?this.root=c:b===b.parent.left?b.parent.left=c:b.parent.right=c;this.modCount++;b!==a&&(a.key=b.key,a.value=
1774 b.value);!b.color&&null!=this.root&&(null==c?this.fixup(b.parent):this.fixup(c));this.$size--},"java.util.TreeMap.Entry");d(c$,"rbInsert",($fz=function(a){var b=0,c=null;if(0!=this.$size){var f=null;null==this.$comparator&&(f=java.util.TreeMap.toComparable(a));for(var d=this.root;null!=d;){c=d;b=null!=f?f.compareTo(d.key):this.$comparator.compare(a,d.key);if(0==b)return d;d=0>b?d.left:d.right}}this.$size++;this.modCount++;a=new java.util.TreeMap.Entry(a);if(null==c)return this.root=a;a.parent=c;0>
1775 b?c.left=a:c.right=a;this.balance(a);return a},$fz.isPrivate=!0,$fz),"~O");e(c$,"remove",function(a){a=this.find(a);if(null==a)return null;var b=a.value;this.rbDelete(a);return b},"~O");d(c$,"rightRotate",($fz=function(a){var b=a.left;a.left=b.right;null!=b.right&&(b.right.parent=a);b.parent=a.parent;null==a.parent?this.root=b:a===a.parent.right?a.parent.right=b:a.parent.left=b;b.right=a;a.parent=b},$fz.isPrivate=!0,$fz),"java.util.TreeMap.Entry");e(c$,"size",function(){return this.$size});e(c$,"subMap",
1776 function(a,b){if(null==this.$comparator){if(0>=java.util.TreeMap.toComparable(a).compareTo(b))return new java.util.TreeMap.SubMap(a,this,b)}else if(0>=this.$comparator.compare(a,b))return new java.util.TreeMap.SubMap(a,this,b);throw new IllegalArgumentException;},"~O,~O");c$.successor=d(c$,"successor",function(a){if(null!=a.right)return java.util.TreeMap.minimum(a.right);for(var b=a.parent;null!=b&&a===b.right;)a=b,b=b.parent;return b},"java.util.TreeMap.Entry");e(c$,"tailMap",function(a){null==this.$comparator?
1777 java.util.TreeMap.toComparable(a).compareTo(a):this.$comparator.compare(a,a);return new java.util.TreeMap.SubMap(a,this)},"~O");e(c$,"values",function(){null==this.valuesCollection&&(this.valuesCollection=(H("java.util.TreeMap$3")?0:java.util.TreeMap.$TreeMap$3$(),C(java.util.TreeMap$3,this,null)));return this.valuesCollection});c$.$TreeMap$1$=function(){A(self.c$);c$=L(java.util,"TreeMap$1",java.util.AbstractSet);e(c$,"size",function(){return this.b$["java.util.TreeMap"].$size});e(c$,"clear",function(){this.b$["java.util.TreeMap"].clear()});
1778 e(c$,"contains",function(a){if(v(a,java.util.Map.Entry)){var b=this.b$["java.util.TreeMap"].get(a.getKey());a=a.getValue();return null==b?null==a:b.equals(a)}return!1},"~O");d(c$,"iterator",function(){return new java.util.TreeMap.UnboundedEntryIterator(this.b$["java.util.TreeMap"])});c$=z()};c$.$TreeMap$2$=function(){A(self.c$);c$=L(java.util,"TreeMap$2",java.util.AbstractSet);e(c$,"contains",function(a){return this.b$["java.util.TreeMap"].containsKey(a)},"~O");e(c$,"size",function(){return this.b$["java.util.TreeMap"].$size});
1779 e(c$,"clear",function(){this.b$["java.util.TreeMap"].clear()});e(c$,"iterator",function(){return new java.util.TreeMap.UnboundedKeyIterator(this.b$["java.util.TreeMap"])});c$=z()};c$.$TreeMap$3$=function(){A(self.c$);c$=L(java.util,"TreeMap$3",java.util.AbstractCollection);e(c$,"contains",function(a){return this.b$["java.util.TreeMap"].containsValue(a)},"~O");e(c$,"size",function(){return this.b$["java.util.TreeMap"].$size});e(c$,"clear",function(){this.b$["java.util.TreeMap"].clear()});e(c$,"iterator",
1780 function(){return new java.util.TreeMap.UnboundedValueIterator(this.b$["java.util.TreeMap"])});c$=z()};A(self.c$);c$=s(function(){this.right=this.left=this.parent=null;this.color=!1;r(this,arguments)},java.util.TreeMap,"Entry",java.util.MapEntry);d(c$,"clone",function(a){var b=K(this,java.util.TreeMap.Entry,"clone",[]);b.parent=a;null!=this.left&&(b.left=this.left.clone(b));null!=this.right&&(b.right=this.right.clone(b));return b},"java.util.TreeMap.Entry");c$=z();A(self.c$);c$=s(function(){this.backingMap=
1781 null;this.expectedModCount=0;this.lastNode=this.node=null;r(this,arguments)},java.util.TreeMap,"AbstractMapIterator");m(c$,function(a,b){this.backingMap=a;this.expectedModCount=a.modCount;this.node=b},"java.util.TreeMap,java.util.TreeMap.Entry");d(c$,"hasNext",function(){return null!=this.node});d(c$,"remove",function(){if(this.expectedModCount==this.backingMap.modCount)if(null!=this.lastNode)this.backingMap.rbDelete(this.lastNode),this.lastNode=null,this.expectedModCount++;else throw new IllegalStateException;
1782 else throw new java.util.ConcurrentModificationException;});d(c$,"makeNext",function(){if(this.expectedModCount!=this.backingMap.modCount)throw new java.util.ConcurrentModificationException;if(null==this.node)throw new java.util.NoSuchElementException;this.lastNode=this.node;this.node=java.util.TreeMap.successor(this.node)});c$=z();A(self.c$);c$=B(java.util.TreeMap,"UnboundedEntryIterator",java.util.TreeMap.AbstractMapIterator,java.util.Iterator);m(c$,function(a){t(this,java.util.TreeMap.UnboundedEntryIterator,
1783 [a,null==a.root?null:java.util.TreeMap.minimum(a.root)])},"java.util.TreeMap");e(c$,"next",function(){this.makeNext();return this.lastNode});c$=z();A(self.c$);c$=B(java.util.TreeMap,"UnboundedKeyIterator",java.util.TreeMap.AbstractMapIterator,java.util.Iterator);m(c$,function(a){t(this,java.util.TreeMap.UnboundedKeyIterator,[a,null==a.root?null:java.util.TreeMap.minimum(a.root)])},"java.util.TreeMap");e(c$,"next",function(){this.makeNext();return this.lastNode.key});c$=z();A(self.c$);c$=B(java.util.TreeMap,
1784 "UnboundedValueIterator",java.util.TreeMap.AbstractMapIterator,java.util.Iterator);m(c$,function(a){t(this,java.util.TreeMap.UnboundedValueIterator,[a,null==a.root?null:java.util.TreeMap.minimum(a.root)])},"java.util.TreeMap");e(c$,"next",function(){this.makeNext();return this.lastNode.value});c$=z();A(self.c$);c$=s(function(){this.cmp=this.endKey=null;r(this,arguments)},java.util.TreeMap,"ComparatorBoundedIterator",java.util.TreeMap.AbstractMapIterator);m(c$,function(a,b,c){t(this,java.util.TreeMap.ComparatorBoundedIterator,
1785 [a,b]);this.endKey=c;this.cmp=a.comparator()},"java.util.TreeMap,java.util.TreeMap.Entry,~O");d(c$,"cleanNext",function(){null!=this.node&&0>=this.cmp.compare(this.endKey,this.node.key)&&(this.node=null)});e(c$,"hasNext",function(){return null!=this.node&&null!=this.endKey&&0>this.cmp.compare(this.node.key,this.endKey)});c$=z();A(self.c$);c$=B(java.util.TreeMap,"ComparatorBoundedEntryIterator",java.util.TreeMap.ComparatorBoundedIterator,java.util.Iterator);e(c$,"next",function(){this.makeNext();this.cleanNext();
1786 return this.lastNode});c$=z();A(self.c$);c$=B(java.util.TreeMap,"ComparatorBoundedKeyIterator",java.util.TreeMap.ComparatorBoundedIterator,java.util.Iterator);e(c$,"next",function(){this.makeNext();this.cleanNext();return this.lastNode.key});c$=z();A(self.c$);c$=B(java.util.TreeMap,"ComparatorBoundedValueIterator",java.util.TreeMap.ComparatorBoundedIterator,java.util.Iterator);e(c$,"next",function(){this.makeNext();this.cleanNext();return this.lastNode.value});c$=z();A(self.c$);c$=s(function(){this.endKey=
1787 null;r(this,arguments)},java.util.TreeMap,"ComparableBoundedIterator",java.util.TreeMap.AbstractMapIterator);m(c$,function(a,b,c){t(this,java.util.TreeMap.ComparableBoundedIterator,[a,b]);this.endKey=c},"java.util.TreeMap,java.util.TreeMap.Entry,Comparable");d(c$,"cleanNext",function(){null!=this.node&&0>=this.endKey.compareTo(this.node.key)&&(this.node=null)});e(c$,"hasNext",function(){return null!=this.node&&0<this.endKey.compareTo(this.node.key)});c$=z();A(self.c$);c$=B(java.util.TreeMap,"ComparableBoundedEntryIterator",
1788 java.util.TreeMap.ComparableBoundedIterator,java.util.Iterator);e(c$,"next",function(){this.makeNext();this.cleanNext();return this.lastNode});c$=z();A(self.c$);c$=B(java.util.TreeMap,"ComparableBoundedKeyIterator",java.util.TreeMap.ComparableBoundedIterator,java.util.Iterator);e(c$,"next",function(){this.makeNext();this.cleanNext();return this.lastNode.key});c$=z();A(self.c$);c$=B(java.util.TreeMap,"ComparableBoundedValueIterator",java.util.TreeMap.ComparableBoundedIterator,java.util.Iterator);e(c$,
1789 "next",function(){this.makeNext();this.cleanNext();return this.lastNode.value});c$=z();A(self.c$);c$=s(function(){this.backingMap=null;this.hasEnd=this.hasStart=!1;this.$entrySet=this.endKey=this.startKey=null;r(this,arguments)},java.util.TreeMap,"SubMap",java.util.AbstractMap,[java.util.SortedMap,java.io.Serializable]);m(c$,function(a,b){t(this,java.util.TreeMap.SubMap,[]);this.backingMap=b;this.hasStart=!0;this.startKey=a},"~O,java.util.TreeMap");m(c$,function(a,b,c){t(this,java.util.TreeMap.SubMap,
1790 []);this.backingMap=b;this.hasStart=this.hasEnd=!0;this.startKey=a;this.endKey=c},"~O,java.util.TreeMap,~O");m(c$,function(a,b){t(this,java.util.TreeMap.SubMap,[]);this.backingMap=a;this.hasEnd=!0;this.endKey=b},"java.util.TreeMap,~O");e(c$,"comparator",function(){return this.backingMap.comparator()});e(c$,"containsKey",function(a){return this.isInRange(a)?this.backingMap.containsKey(a):!1},"~O");e(c$,"entrySet",function(){null==this.$entrySet&&(this.$entrySet=new java.util.TreeMap.SubMapEntrySet(this));
1791 return this.$entrySet});e(c$,"firstKey",function(){var a=this.firstEntry();if(null!=a)return a.key;throw new java.util.NoSuchElementException;});d(c$,"firstEntry",function(){if(!this.hasStart){var a=this.backingMap.root;return null==a?null:java.util.TreeMap.minimum(this.backingMap.root)}a=this.backingMap.findAfter(this.startKey);return null!=a&&this.checkUpperBound(a.key)?a:null});e(c$,"get",function(a){return this.isInRange(a)?this.backingMap.get(a):null},"~O");e(c$,"headMap",function(a){this.checkRange(a);
1792 return this.hasStart?new java.util.TreeMap.SubMap(this.startKey,this.backingMap,a):new java.util.TreeMap.SubMap(this.backingMap,a)},"~O");e(c$,"isEmpty",function(){if(this.hasStart){var a=this.backingMap.findAfter(this.startKey);return null==a||!this.checkUpperBound(a.key)}return null==this.backingMap.findBefore(this.endKey)});e(c$,"keySet",function(){null==this.$keySet&&(this.$keySet=new java.util.TreeMap.SubMapKeySet(this));return this.$keySet});e(c$,"lastKey",function(){if(!this.hasEnd)return this.backingMap.lastKey();
1793 var a=this.backingMap.findBefore(this.endKey);if(null!=a&&this.checkLowerBound(a.key))return a.key;throw new java.util.NoSuchElementException;});e(c$,"put",function(a,b){if(this.isInRange(a))return this.backingMap.put(a,b);throw new IllegalArgumentException;},"~O,~O");e(c$,"remove",function(a){return this.isInRange(a)?this.backingMap.remove(a):null},"~O");e(c$,"subMap",function(a,b){this.checkRange(a);this.checkRange(b);var c=this.backingMap.comparator();if(null==c){if(0>=java.util.TreeMap.toComparable(a).compareTo(b))return new java.util.TreeMap.SubMap(a,
1794 this.backingMap,b)}else if(0>=c.compare(a,b))return new java.util.TreeMap.SubMap(a,this.backingMap,b);throw new IllegalArgumentException;},"~O,~O");e(c$,"tailMap",function(a){this.checkRange(a);return this.hasEnd?new java.util.TreeMap.SubMap(a,this.backingMap,this.endKey):new java.util.TreeMap.SubMap(a,this.backingMap)},"~O");e(c$,"values",function(){null==this.valuesCollection&&(this.valuesCollection=new java.util.TreeMap.SubMapValuesCollection(this));return this.valuesCollection});c$=z();A(self.c$);
1795 c$=s(function(){this.subMap=null;r(this,arguments)},java.util.TreeMap,"SubMapEntrySet",java.util.AbstractSet,java.util.Set);m(c$,function(a){t(this,java.util.TreeMap.SubMapEntrySet,[]);this.subMap=a},"java.util.TreeMap.SubMap");e(c$,"isEmpty",function(){return this.subMap.isEmpty()});e(c$,"iterator",function(){var a=this.subMap.firstEntry();return this.subMap.hasEnd?null==this.subMap.comparator()?new java.util.TreeMap.ComparableBoundedEntryIterator(this.subMap.backingMap,a,java.util.TreeMap.toComparable(this.subMap.endKey)):
1796 new java.util.TreeMap.ComparatorBoundedEntryIterator(this.subMap.backingMap,a,this.subMap.endKey):new java.util.TreeMap.UnboundedEntryIterator(this.subMap.backingMap,a)});e(c$,"size",function(){for(var a=0,b=this.iterator();b.hasNext();)a++,b.next();return a});e(c$,"contains",function(a){if(v(a,java.util.Map.Entry)){var b=a.getKey();if(this.subMap.isInRange(b))return b=this.subMap.get(b),a=a.getValue(),null==b?null==a:b.equals(a)}return!1},"~O");c$=z();A(self.c$);c$=s(function(){this.subMap=null;
1797 r(this,arguments)},java.util.TreeMap,"SubMapKeySet",java.util.AbstractSet,java.util.Set);m(c$,function(a){t(this,java.util.TreeMap.SubMapKeySet,[]);this.subMap=a},"java.util.TreeMap.SubMap");e(c$,"contains",function(a){return this.subMap.containsKey(a)},"~O");e(c$,"isEmpty",function(){return this.subMap.isEmpty()});e(c$,"size",function(){for(var a=0,b=this.iterator();b.hasNext();)a++,b.next();return a});e(c$,"iterator",function(){var a=this.subMap.firstEntry();return this.subMap.hasEnd?null==this.subMap.comparator()?
1798 new java.util.TreeMap.ComparableBoundedKeyIterator(this.subMap.backingMap,a,java.util.TreeMap.toComparable(this.subMap.endKey)):new java.util.TreeMap.ComparatorBoundedKeyIterator(this.subMap.backingMap,a,this.subMap.endKey):new java.util.TreeMap.UnboundedKeyIterator(this.subMap.backingMap,a)});c$=z();A(self.c$);c$=s(function(){this.subMap=null;r(this,arguments)},java.util.TreeMap,"SubMapValuesCollection",java.util.AbstractCollection);m(c$,function(a){t(this,java.util.TreeMap.SubMapValuesCollection,
1799 []);this.subMap=a},"java.util.TreeMap.SubMap");e(c$,"isEmpty",function(){return this.subMap.isEmpty()});e(c$,"iterator",function(){var a=this.subMap.firstEntry();return this.subMap.hasEnd?null==this.subMap.comparator()?new java.util.TreeMap.ComparableBoundedValueIterator(this.subMap.backingMap,a,java.util.TreeMap.toComparable(this.subMap.endKey)):new java.util.TreeMap.ComparatorBoundedValueIterator(this.subMap.backingMap,a,this.subMap.endKey):new java.util.TreeMap.UnboundedValueIterator(this.subMap.backingMap,
1800 a)});e(c$,"size",function(){for(var a=0,b=this.iterator();b.hasNext();)b.next(),a++;return a});c$=z()});p("jalview.appletgui");q(["jalview.structure.CommandListener","$.SelectionSource","$.VamsasSource","jalview.viewmodel.AlignmentViewport","java.awt.Font"],"jalview.appletgui.AlignViewport","awt2swing.Frame jalview.api.AlignViewportI jalview.bin.JalviewLite jalview.datamodel.ColumnSelection $.SearchResults $.Sequence $.SequenceGroup jalview.schemes.ColourSchemeProperty jalview.structure.StructureSelectionManager jalview.util.Platform jalview.workers.AlignCalcManager java.lang.Float $.StringBuilder".split(" "),
1801 function(){c$=s(function(){this.cursorMode=!1;this.font=null;this.validCharWidth=!0;this.applet=this.currentTree=null;this.MAC=!1;this.featureSettings=this.nullFrame=this.annotationColumnSelectionState=null;this.widthScale=this.heightScale=1;this.centreColumnLabels=!1;this.followSelection=!0;r(this,arguments)},jalview.appletgui,"AlignViewport",jalview.viewmodel.AlignmentViewport,[jalview.structure.SelectionSource,jalview.structure.VamsasSource,jalview.structure.CommandListener]);J(c$,function(){this.font=
1802 new java.awt.Font("SansSerif",0,10)});e(c$,"finalize",function(){this.colSel=this.alignment=this.quality=this.applet=null});m(c$,function(a,b){t(this,jalview.appletgui.AlignViewport);this.calculator=new jalview.workers.AlignCalcManager;this.applet=b;this.alignment=a;this.setPadGaps(!0);this.startRes=0;this.endRes=a.getWidth()-1;this.startSeq=0;this.endSeq=a.getHeight()-1;if(null!=b){var c=b.widthScale;if(null!=c){try{this.widthScale=(new Float(c)).floatValue()}catch(f){if(!y(f,Exception))throw f;
1803 }1>=this.widthScale&&(System.err.println("Invalid alignment character width scaling factor ("+this.widthScale+"). Ignoring."),this.widthScale=1);jalview.bin.JalviewLite.debug&&System.err.println("Alignment character width scaling factor is now "+this.widthScale)}c=b.heightScale;if(null!=c){try{this.heightScale=(new Float(c)).floatValue()}catch(d){if(!y(d,Exception))throw d;}1>=this.heightScale&&(System.err.println("Invalid alignment character height scaling factor ("+this.heightScale+"). Ignoring."),
1804 this.heightScale=1);jalview.bin.JalviewLite.debug&&System.err.println("Alignment character height scaling factor is now "+this.heightScale)}}this.setFont(this.font);this.MAC=jalview.util.Platform.isAMac();null!=b&&(this.setShowJVSuffix(b.getDefaultParameter("showFullId",this.getShowJVSuffix())),this.setShowAnnotation(b.getDefaultParameter("showAnnotation",this.isShowAnnotation())),this.showConservation=b.getDefaultParameter("showConservation",this.showConservation),this.showQuality=b.getDefaultParameter("showQuality",
1805 this.showQuality),this.showConsensus=b.getDefaultParameter("showConsensus",this.showConsensus),this.setShowUnconserved(b.getDefaultParameter("showUnconserved",this.getShowUnconserved())),this.setScaleProteinAsCdna(b.getDefaultParameter("scaleProteinAsCdna",this.isScaleProteinAsCdna())),c=b.upperCase,null!=c&&c.equalsIgnoreCase("bold")&&this.setUpperCasebold(!0),this.sortByTree=b.getDefaultParameter("sortByTree",this.sortByTree),this.setFollowHighlight(b.getDefaultParameter("automaticScrolling",this.isFollowHighlight())),
1806 this.followSelection=this.isFollowHighlight(),this.showSequenceLogo=b.getDefaultParameter("showSequenceLogo",this.showSequenceLogo),this.normaliseSequenceLogo=b.getDefaultParameter("normaliseSequenceLogo",b.getDefaultParameter("normaliseLogo",this.normaliseSequenceLogo)),this.showGroupConsensus=b.getDefaultParameter("showGroupConsensus",this.showGroupConsensus),this.showGroupConservation=b.getDefaultParameter("showGroupConservation",this.showGroupConservation),this.showConsensusHistogram=b.getDefaultParameter("showConsensusHistogram",
1807 this.showConsensusHistogram));null!=b&&(c=b.defaultColour,null==c&&(c=b.userDefinedColour,null!=c&&(c="User Defined")),null!=c&&(this.globalColourScheme=jalview.schemes.ColourSchemeProperty.getColour(this.alignment,c),null!=this.globalColourScheme&&this.globalColourScheme.setConsensus(this.hconsensus)),null!=b.userDefinedColour&&this.globalColourScheme.parseAppletParameter(b.userDefinedColour));this.initAutoAnnotation()},"jalview.datamodel.AlignmentI,jalview.bin.JalviewLite");d(c$,"getConsensusSeq",
1808 function(){null==this.consensus&&this.updateConsensus(null);if(null==this.consensus)return null;for(var a=new StringBuilder(this.consensus.annotations.length),b=0;b<this.consensus.annotations.length;b++)null!=this.consensus.annotations[b]&&("["==this.consensus.annotations[b].description.charAt(0)?a.append(this.consensus.annotations[b].description.charAt(1)):a.append(this.consensus.annotations[b].displayCharacter));a=new jalview.datamodel.Sequence("Consensus",a.toString());a.setDescription("Percentage Identity Consensus "+
1809 (this.ignoreGapsInConsensusCalculation?" without gaps":""));return a});d(c$,"setFont",function(a){this.font=a;null==this.nullFrame&&(this.nullFrame=new awt2swing.Frame,this.nullFrame.addNotify(),this.nullFrame.setFont(this.font));var b=this.nullFrame.getGraphics().getFontMetrics(this.font);this.setCharHeight(I(this.heightScale*b.getHeight()));this.setCharWidth(I(this.widthScale*b.charWidth("M")));this.isUpperCasebold()&&(a=new java.awt.Font(a.getName(),1,a.getSize()),b=this.nullFrame.getGraphics().getFontMetrics(a),
1810 this.setCharWidth(I(this.widthScale*F(b.stringWidth("MMMMMMMMMMM")/10))))},"java.awt.Font");d(c$,"getFont",function(){return this.font});d(c$,"resetSeqLimits",function(a){this.setEndSeq(F(a/this.getCharHeight()))},"~N");d(c$,"setCurrentTree",function(a){this.currentTree=a},"jalview.analysis.NJTree");d(c$,"getCurrentTree",function(){return this.currentTree});d(c$,"getCentreColumnLabels",function(){return this.centreColumnLabels});d(c$,"getFollowSelection",function(){return this.followSelection});e(c$,
1811 "sendSelection",function(){this.getStructureSelectionManager().sendSelection(new jalview.datamodel.SequenceGroup(this.getSelectionGroup()),new jalview.datamodel.ColumnSelection(this.getColumnSelection()),this)});e(c$,"getStructureSelectionManager",function(){return jalview.structure.StructureSelectionManager.getStructureSelectionManager(this.applet)});d(c$,"expandColSelection",function(a,b){var c,f;if(null!=a&&(0<=(c=a.getStartRes())&&a.getStartRes()<=(f=a.getEndRes())&&(null==this.colSel||null==
1812 this.colSel.getSelected()||0==this.colSel.getSelected().size()))&&(b||this.alignment.getWidth()!=1+f-c)){null==this.colSel&&(this.colSel=new jalview.datamodel.ColumnSelection);for(c=a.getStartRes();c<=a.getEndRes();c++)this.colSel.addElement(c)}},"jalview.datamodel.SequenceGroup,~B");e(c$,"isNormaliseSequenceLogo",function(){return this.normaliseSequenceLogo});d(c$,"setNormaliseSequenceLogo",function(a){this.normaliseSequenceLogo=a},"~B");e(c$,"isValidCharWidth",function(){return this.validCharWidth});
1813 d(c$,"getAnnotationColumnSelectionState",function(){return this.annotationColumnSelectionState});d(c$,"setAnnotationColumnSelectionState",function(a){this.annotationColumnSelectionState=a},"jalview.appletgui.AnnotationColumnChooser");e(c$,"mirrorCommand",function(a,b,c,f){v(f,jalview.api.AlignViewportI)&&f.getCodingComplement()===this&&(a=c.mapCommand(a,b,this.getAlignment(),this.getGapCharacter()),null!=a&&(a.doCommand(null),this.firePropertyChange("alignment",null,this.getAlignment().getSequences())))},
1814 "jalview.commands.CommandI,~B,jalview.structure.StructureSelectionManager,jalview.structure.VamsasSource");e(c$,"getVamsasSource",function(){return this});d(c$,"scrollComplementaryAlignment",function(a){if(null!=a){var b=new jalview.datamodel.SearchResults,c=this.findComplementScrollTarget(b);b.isEmpty()||(a.setFollowingComplementScroll(!0),a.scrollToCentre(b,c))}},"jalview.appletgui.AlignmentPanel")});p("jalview.structure");M(jalview.structure,"CommandListener");p("jalview.structure");M(jalview.structure,
1815 "SelectionSource");p("jalview.structure");M(jalview.structure,"VamsasSource");p("jalview.viewmodel");q("jalview.api.AlignViewportI jalview.structure.CommandListener $.VamsasSource jalview.datamodel.ColumnSelection jalview.viewmodel.styles.ViewStyle jalview.workers.AlignCalcManager java.beans.PropertyChangeSupport java.util.ArrayDeque $.HashMap".split(" "),"jalview.viewmodel.AlignmentViewport","jalview.analysis.Conservation jalview.datamodel.AlignmentAnnotation $.AlignmentView $.CigarArray $.Sequence $.SequenceGroup jalview.schemes.Blosum62ColourScheme $.PIDColourScheme $.ResidueProperties jalview.util.Comparison $.MappingUtils jalview.workers.ComplementConsensusThread $.ConsensusThread $.ConservationThread $.StrucConsensusThread java.awt.Color java.util.ArrayList $.BitSet $.Hashtable".split(" "),
1816 function(){c$=s(function(){this.sequenceSetID=this.alignment=this.redoList=this.historyList=this.featuresDisplayed=this.codingComplement=this.viewStyle=null;this.$isDataset=!1;this.colSel=this.hiddenRepSequences=null;this.autoCalculateStrucConsensus=this.autoCalculateConsensus=!0;this.ignoreGapsInConsensusCalculation=!1;this.hconservation=this.hStrucConsensus=this.hcomplementConsensus=this.hconsensus=this.groupConservation=this.groupConsensus=this.quality=this.conservation=this.strucConsensus=this.complementConsensus=
1817 this.consensus=this.globalColourScheme=null;this.ConsPercGaps=25;this.calculator=null;this.normaliseSequenceLogo=this.showSequenceLogo=this.showGroupConsensus=this.showGroupConservation=!1;this.showConsensusHistogram=!0;this.sortByTree=this.padGaps=!1;this.viewId=this.selectionGroup=null;this.colselhash=this.sgrouphash=-1;this.changeSupport=null;this.showConsensus=this.showQuality=this.showConservation=!0;this.sortAnnotationsBy=this.sequenceColours=null;this.showAutocalculatedAbove=!1;this.followHighlight=
1818 !0;this.endSeq=this.startSeq=this.endRes=this.startRes=0;r(this,arguments)},jalview.viewmodel,"AlignmentViewport",null,[jalview.api.AlignViewportI,jalview.structure.CommandListener,jalview.structure.VamsasSource]);J(c$,function(){this.viewStyle=new jalview.viewmodel.styles.ViewStyle;this.historyList=new java.util.ArrayDeque;this.redoList=new java.util.ArrayDeque;this.colSel=new jalview.datamodel.ColumnSelection;this.calculator=new jalview.workers.AlignCalcManager;this.changeSupport=new java.beans.PropertyChangeSupport(this);
1819 this.sequenceColours=new java.util.HashMap});d(c$,"setFontName",function(a){this.viewStyle.setFontName(a)},"~S");d(c$,"setFontStyle",function(a){this.viewStyle.setFontStyle(a)},"~N");d(c$,"setFontSize",function(a){this.viewStyle.setFontSize(a)},"~N");d(c$,"getFontStyle",function(){return this.viewStyle.getFontStyle()});d(c$,"getFontName",function(){return this.viewStyle.getFontName()});d(c$,"getFontSize",function(){return this.viewStyle.getFontSize()});d(c$,"setUpperCasebold",function(a){this.viewStyle.setUpperCasebold(a)},
1820 "~B");d(c$,"isUpperCasebold",function(){return this.viewStyle.isUpperCasebold()});d(c$,"isSeqNameItalics",function(){return this.viewStyle.isSeqNameItalics()});d(c$,"setColourByReferenceSeq",function(a){this.viewStyle.setColourByReferenceSeq(a)},"~B");d(c$,"setColourAppliesToAllGroups",function(a){this.viewStyle.setColourAppliesToAllGroups(a)},"~B");d(c$,"getColourAppliesToAllGroups",function(){return this.viewStyle.getColourAppliesToAllGroups()});d(c$,"getAbovePIDThreshold",function(){return this.viewStyle.getAbovePIDThreshold()});
1821 d(c$,"setIncrement",function(a){this.viewStyle.setIncrement(a)},"~N");d(c$,"getIncrement",function(){return this.viewStyle.getIncrement()});d(c$,"setConservationSelected",function(a){this.viewStyle.setConservationSelected(a)},"~B");d(c$,"setShowHiddenMarkers",function(a){this.viewStyle.setShowHiddenMarkers(a)},"~B");d(c$,"getShowHiddenMarkers",function(){return this.viewStyle.getShowHiddenMarkers()});d(c$,"setScaleRightWrapped",function(a){this.viewStyle.setScaleRightWrapped(a)},"~B");d(c$,"setScaleLeftWrapped",
1822 function(a){this.viewStyle.setScaleLeftWrapped(a)},"~B");d(c$,"setScaleAboveWrapped",function(a){this.viewStyle.setScaleAboveWrapped(a)},"~B");d(c$,"getScaleLeftWrapped",function(){return this.viewStyle.getScaleLeftWrapped()});d(c$,"getScaleAboveWrapped",function(){return this.viewStyle.getScaleAboveWrapped()});d(c$,"getScaleRightWrapped",function(){return this.viewStyle.getScaleRightWrapped()});d(c$,"setAbovePIDThreshold",function(a){this.viewStyle.setAbovePIDThreshold(a)},"~B");d(c$,"setThreshold",
1823 function(a){this.viewStyle.setThreshold(a)},"~N");d(c$,"getThreshold",function(){return this.viewStyle.getThreshold()});d(c$,"getShowJVSuffix",function(){return this.viewStyle.getShowJVSuffix()});d(c$,"setShowJVSuffix",function(a){this.viewStyle.setShowJVSuffix(a)},"~B");d(c$,"setWrapAlignment",function(a){this.viewStyle.setWrapAlignment(a)},"~B");d(c$,"setShowText",function(a){this.viewStyle.setShowText(a)},"~B");d(c$,"setRenderGaps",function(a){this.viewStyle.setRenderGaps(a)},"~B");d(c$,"getColourText",
1824 function(){return this.viewStyle.getColourText()});d(c$,"setColourText",function(a){this.viewStyle.setColourText(a)},"~B");d(c$,"getWrapAlignment",function(){return this.viewStyle.getWrapAlignment()});d(c$,"getShowText",function(){return this.viewStyle.getShowText()});d(c$,"getWrappedWidth",function(){return this.viewStyle.getWrappedWidth()});d(c$,"setWrappedWidth",function(a){this.viewStyle.setWrappedWidth(a)},"~N");d(c$,"getCharHeight",function(){return this.viewStyle.getCharHeight()});d(c$,"setCharHeight",
1825 function(a){this.viewStyle.setCharHeight(a)},"~N");d(c$,"getCharWidth",function(){return this.viewStyle.getCharWidth()});d(c$,"setCharWidth",function(a){this.viewStyle.setCharWidth(a)},"~N");d(c$,"getShowBoxes",function(){return this.viewStyle.getShowBoxes()});d(c$,"getShowUnconserved",function(){return this.viewStyle.getShowUnconserved()});d(c$,"setShowUnconserved",function(a){this.viewStyle.setShowUnconserved(a)},"~B");d(c$,"setSeqNameItalics",function(a){this.viewStyle.setSeqNameItalics(a)},"~B");
1826 d(c$,"getAlignment",function(){return this.alignment});e(c$,"getGapCharacter",function(){return this.alignment.getGapCharacter()});d(c$,"setDataset",function(a){this.$isDataset=a},"~B");d(c$,"isDataset",function(){return this.$isDataset});e(c$,"setGlobalColourScheme",function(a){this.globalColourScheme=a;var b=!1;null!=a&&(a.setConservationApplied(b=this.getConservationSelected()),this.getAbovePIDThreshold()||v(a,jalview.schemes.PIDColourScheme)||v(a,jalview.schemes.Blosum62ColourScheme)?(b=!0,a.setThreshold(this.viewStyle.getThreshold(),
1827 this.ignoreGapsInConsensusCalculation)):a.setThreshold(0,this.ignoreGapsInConsensusCalculation),b&&(a.setConsensus(this.hconsensus),a.setConservation(this.hconservation)),a.alignmentChanged(this.alignment,this.hiddenRepSequences));if(this.getColourAppliesToAllGroups())for(var c,f=this.getAlignment().getGroups().iterator();f.hasNext()&&((c=f.next())||1);)null==a?c.cs=null:(c.cs=a.applyTo(c,this.getHiddenRepSequences()),c.setConsPercGaps(this.ConsPercGaps),this.getAbovePIDThreshold()||v(a,jalview.schemes.PIDColourScheme)||
1828 v(a,jalview.schemes.Blosum62ColourScheme)?(c.cs.setThreshold(this.viewStyle.getThreshold(),this.isIgnoreGapsConsensus()),b=!0):c.cs.setThreshold(0,this.isIgnoreGapsConsensus()),this.getConservationSelected()?(c.cs.setConservationApplied(!0),b=!0):c.cs.setConservation(null),b?c.recalcConservation():c.cs.alignmentChanged(c,this.hiddenRepSequences))},"jalview.schemes.ColourSchemeI");e(c$,"getGlobalColourScheme",function(){return this.globalColourScheme});e(c$,"setConservation",function(a){this.hconservation=
1829 a},"jalview.analysis.Conservation");e(c$,"getConsPercGaps",function(){return this.ConsPercGaps});e(c$,"setSequenceConsensusHash",function(a){this.hconsensus=a},"~A");e(c$,"setComplementConsensusHash",function(a){this.hcomplementConsensus=a},"~A");e(c$,"getSequenceConsensusHash",function(){return this.hconsensus});e(c$,"getComplementConsensusHash",function(){return this.hcomplementConsensus});e(c$,"getRnaStructureConsensusHash",function(){return this.hStrucConsensus});e(c$,"setRnaStructureConsensusHash",
1830 function(a){this.hStrucConsensus=a},"~A");e(c$,"getAlignmentQualityAnnot",function(){return this.quality});e(c$,"getAlignmentConservationAnnotation",function(){return this.conservation});e(c$,"getAlignmentConsensusAnnotation",function(){return this.consensus});e(c$,"getComplementConsensusAnnotation",function(){return this.complementConsensus});e(c$,"getAlignmentStrucConsensusAnnotation",function(){return this.strucConsensus});d(c$,"updateConservation",function(a){!this.alignment.isNucleotide()&&null!=
1831 this.conservation&&this.autoCalculateConsensus&&null==this.calculator.getRegisteredWorkersOfClass(jalview.workers.ConservationThread)&&this.calculator.registerWorker(new jalview.workers.ConservationThread(this,a))},"jalview.api.AlignmentViewPanel");d(c$,"updateConsensus",function(a){if(null!=this.consensus&&this.autoCalculateConsensus){null==this.calculator.getRegisteredWorkersOfClass(jalview.workers.ConsensusThread)&&this.calculator.registerWorker(new jalview.workers.ConsensusThread(this,a));var b=
1832 this.getAlignment();!b.isNucleotide()&&null!=b.getCodonFrames()&&!b.getCodonFrames().isEmpty()&&null==this.calculator.getRegisteredWorkersOfClass(jalview.workers.ComplementConsensusThread)&&this.calculator.registerWorker(new jalview.workers.ComplementConsensusThread(this,a))}},"jalview.api.AlignmentViewPanel");d(c$,"updateStrucConsensus",function(a){this.autoCalculateStrucConsensus&&(null==this.strucConsensus&&this.alignment.isNucleotide()&&this.alignment.hasRNAStructure())&&this.initRNAStructure();
1833 null!=this.strucConsensus&&this.autoCalculateStrucConsensus&&null==this.calculator.getRegisteredWorkersOfClass(jalview.workers.StrucConsensusThread)&&this.calculator.registerWorker(new jalview.workers.StrucConsensusThread(this,a))},"jalview.api.AlignmentViewPanel");d(c$,"isCalcInProgress",function(){return this.calculator.isWorking()});e(c$,"isCalculationInProgress",function(a){return!a.autoCalculated?!1:this.calculator.workingInvolvedWith(a)?!0:!1},"jalview.datamodel.AlignmentAnnotation");e(c$,"isClosed",
1834 function(){return null==this.alignment});e(c$,"getCalcManager",function(){return this.calculator});e(c$,"isShowSequenceLogo",function(){return this.showSequenceLogo});d(c$,"setShowSequenceLogo",function(a){a!=this.showSequenceLogo&&(this.showSequenceLogo=a,this.calculator.updateAnnotationFor(jalview.workers.ConsensusThread),this.calculator.updateAnnotationFor(jalview.workers.ComplementConsensusThread),this.calculator.updateAnnotationFor(jalview.workers.StrucConsensusThread));this.showSequenceLogo=
1835 a},"~B");d(c$,"setShowConsensusHistogram",function(a){this.showConsensusHistogram=a},"~B");d(c$,"isShowGroupConservation",function(){return this.showGroupConservation});d(c$,"setShowGroupConservation",function(a){this.showGroupConservation=a},"~B");d(c$,"isShowGroupConsensus",function(){return this.showGroupConsensus});d(c$,"setShowGroupConsensus",function(a){this.showGroupConsensus=a},"~B");e(c$,"isShowConsensusHistogram",function(){return this.showConsensusHistogram});e(c$,"getSelectionGroup",function(){return this.selectionGroup});
1836 e(c$,"setSelectionGroup",function(a){this.selectionGroup=a},"jalview.datamodel.SequenceGroup");d(c$,"setHiddenColumns",function(a){this.colSel=a},"jalview.datamodel.ColumnSelection");e(c$,"getColumnSelection",function(){return this.colSel});e(c$,"setColumnSelection",function(a){this.colSel=a;null!=a&&this.updateHiddenColumns()},"jalview.datamodel.ColumnSelection");e(c$,"getHiddenRepSequences",function(){return this.hiddenRepSequences});e(c$,"setHiddenRepSequences",function(a){this.hiddenRepSequences=
1837 a},"java.util.Map");e(c$,"hasHiddenColumns",function(){return null!=this.colSel&&this.colSel.hasHiddenColumns()});d(c$,"updateHiddenColumns",function(){});e(c$,"hasHiddenRows",function(){return 0<this.alignment.getHiddenSequences().getSize()});d(c$,"setSequenceSetId",function(a){null!=this.sequenceSetID&&System.err.println("Warning - overwriting a sequenceSetId for a viewport!");this.sequenceSetID=String.instantialize(a)},"~S");e(c$,"getSequenceSetId",function(){null==this.sequenceSetID&&(this.sequenceSetID=
1838 this.alignment.hashCode()+"");return this.sequenceSetID});e(c$,"getViewId",function(){null==this.viewId&&(this.viewId=this.getSequenceSetId()+"."+this.hashCode()+"");return this.viewId});d(c$,"setIgnoreGapsConsensus",function(a,b){this.ignoreGapsInConsensusCalculation=a;null!=b&&(this.updateConsensus(b),null!=this.globalColourScheme&&this.globalColourScheme.setThreshold(this.globalColourScheme.getThreshold(),this.ignoreGapsInConsensusCalculation))},"~B,jalview.api.AlignmentViewPanel");d(c$,"isSelectionGroupChanged",
1839 function(a){var b=null==this.selectionGroup||0==this.selectionGroup.getSize()?-1:this.selectionGroup.hashCode();return-1!=b&&b!=this.sgrouphash?(a&&(this.sgrouphash=b),!0):!1},"~B");d(c$,"isColSelChanged",function(a){var b=null==this.colSel||0==this.colSel.size()?-1:this.colSel.hashCode();return-1!=b&&b!=this.colselhash?(a&&(this.colselhash=b),!0):!1},"~B");e(c$,"isIgnoreGapsConsensus",function(){return this.ignoreGapsInConsensusCalculation});d(c$,"addPropertyChangeListener",function(a){this.changeSupport.addPropertyChangeListener(a)},
1840 "java.beans.PropertyChangeListener");d(c$,"removePropertyChangeListener",function(a){this.changeSupport.removePropertyChangeListener(a)},"java.beans.PropertyChangeListener");d(c$,"firePropertyChange",function(a,b,c){this.changeSupport.firePropertyChange(a,b,c)},"~S,~O,~O");d(c$,"hideSelectedColumns",function(){1>this.colSel.size()||(this.colSel.hideSelectedColumns(),this.setSelectionGroup(null))});d(c$,"hideColumns",function(a,b){a==b?this.colSel.hideColumns(a):this.colSel.hideColumns(a,b)},"~N,~N");
1841 d(c$,"showColumn",function(a){this.colSel.revealHiddenColumns(a)},"~N");d(c$,"showAllHiddenColumns",function(){this.colSel.revealAllHiddenColumns()});d(c$,"showAllHiddenSeqs",function(){if(0<this.alignment.getHiddenSequences().getSize()){null==this.selectionGroup&&(this.selectionGroup=new jalview.datamodel.SequenceGroup,this.selectionGroup.setEndRes(this.alignment.getWidth()-1));for(var a,b=this.alignment.getHiddenSequences().showAll(this.hiddenRepSequences).iterator();b.hasNext()&&((a=b.next())||
1842 1);)this.selectionGroup.addSequence(a,!1),this.setSequenceAnnotationsVisible(a,!0);this.hiddenRepSequences=null;this.firePropertyChange("alignment",null,this.alignment.getSequences());this.sendSelection()}});d(c$,"showSequence",function(a){a=this.alignment.getHiddenSequences().showSequence(a,this.hiddenRepSequences);if(0<a.size()){null==this.selectionGroup&&(this.selectionGroup=new jalview.datamodel.SequenceGroup,this.selectionGroup.setEndRes(this.alignment.getWidth()-1));var b;for(a=a.iterator();a.hasNext()&&
1843 ((b=a.next())||1);)this.selectionGroup.addSequence(b,!1),this.setSequenceAnnotationsVisible(b,!0);this.firePropertyChange("alignment",null,this.alignment.getSequences());this.sendSelection()}},"~N");d(c$,"hideAllSelectedSeqs",function(){if(!(null==this.selectionGroup||1>this.selectionGroup.getSize())){var a=this.selectionGroup.getSequencesInOrder(this.alignment);this.hideSequence(a);this.setSelectionGroup(null)}});d(c$,"hideSequence",function(a){if(null!=a){for(var b=0;b<a.length;b++)this.alignment.getHiddenSequences().hideSequence(a[b]),
1844 this.setSequenceAnnotationsVisible(a[b],!1);this.firePropertyChange("alignment",null,this.alignment.getSequences())}},"~A");d(c$,"setSequenceAnnotationsVisible",function(a,b){for(var c,f=0,d=this.alignment.getAlignmentAnnotation();f<d.length&&((c=d[f])||1);f++)c.sequenceRef===a&&(c.visible=b)},"jalview.datamodel.SequenceI,~B");d(c$,"hideRepSequences",function(a,b){var c=b.getSize();if(!(2>c)){null==this.hiddenRepSequences&&(this.hiddenRepSequences=new java.util.Hashtable);this.hiddenRepSequences.put(a,
1845 b);for(var f=Array(c-1),d=0,e=0;e<c;e++)if(b.getSequenceAt(e)!==a){if(d==c-1)return;f[d++]=b.getSequenceAt(e)}b.setSeqrep(a);b.setHidereps(!0);this.hideSequence(f)}},"jalview.datamodel.SequenceI,jalview.datamodel.SequenceGroup");d(c$,"isHiddenRepSequence",function(a){return this.alignment.getSeqrep()===a||null!=this.hiddenRepSequences&&this.hiddenRepSequences.containsKey(a)},"jalview.datamodel.SequenceI");d(c$,"getRepresentedSequences",function(a){return null==this.hiddenRepSequences?null:this.hiddenRepSequences.get(a)},
1846 "jalview.datamodel.SequenceI");e(c$,"adjustForHiddenSeqs",function(a){return this.alignment.getHiddenSequences().adjustForHiddenSeqs(a)},"~N");e(c$,"invertColumnSelection",function(){this.colSel.invertColumnSelection(0,this.alignment.getWidth())});e(c$,"getSelectionAsNewSequence",function(){var a;if(null==this.selectionGroup||0==this.selectionGroup.getSize()){a=this.alignment.getSequencesArray();for(var b=this.alignment.getAlignmentAnnotation(),c=0;c<a.length;c++)a[c]=new jalview.datamodel.Sequence(a[c],
1847 b)}else a=this.selectionGroup.getSelectionAsNewSequences(this.alignment);return a});e(c$,"getSequenceSelection",function(){var a=null;null!=this.selectionGroup&&(a=this.selectionGroup.getSequencesInOrder(this.alignment));null==a&&(a=this.alignment.getSequencesArray());return a});e(c$,"getViewAsCigars",function(a){return new jalview.datamodel.CigarArray(this.alignment,this.colSel,a?this.selectionGroup:null)},"~B");d(c$,"getAlignmentView",function(a){return this.getAlignmentView(a,!1)},"~B");d(c$,"getAlignmentView",
1848 function(a,b){return new jalview.datamodel.AlignmentView(this.alignment,this.colSel,this.selectionGroup,null!=this.colSel&&this.colSel.hasHiddenColumns(),a,b)},"~B,~B");e(c$,"getViewAsString",function(a){var b=null,c=null,f,d=0,e=0;a&&null!=this.selectionGroup?(f=this.selectionGroup.getSize(),c=this.selectionGroup.getSequencesInOrder(this.alignment),d=this.selectionGroup.getStartRes(),e=this.selectionGroup.getEndRes()+1):(f=this.alignment.getHeight(),c=this.alignment.getSequencesArray(),e=this.alignment.getWidth());
1849 b=Array(f);if(null!=this.colSel&&this.colSel.hasHiddenColumns())b=this.colSel.getVisibleSequenceStrings(d,e,c);else for(a=0;a<f;a++)b[a]=c[a].getSequenceAsString(d,e);return b},"~B");e(c$,"getVisibleRegionBoundaries",function(a,b){var c=new java.util.ArrayList,f=a,d=b;do null!=this.colSel&&this.colSel.hasHiddenColumns()&&(0==f&&(f=this.colSel.adjustForHiddenColumns(f)),d=this.colSel.getHiddenBoundaryRight(f),f==d&&(d=b),d>b&&(d=b)),c.add(w(-1,[f,d])),null!=this.colSel&&this.colSel.hasHiddenColumns()&&
1850 (f=this.colSel.adjustForHiddenColumns(d),f=this.colSel.getHiddenBoundaryLeft(f)+1);while(d<b);w(c.size(),2,0);return c},"~N,~N");e(c$,"getVisibleAlignmentAnnotation",function(a){var b=new java.util.ArrayList,c;if(null!=(c=this.alignment.getAlignmentAnnotation()))for(var f,d=0;d<c.length&&((f=c[d])||1);d++){var e=new jalview.datamodel.AlignmentAnnotation(f);a&&null!=this.selectionGroup?this.colSel.makeVisibleAnnotation(this.selectionGroup.getStartRes(),this.selectionGroup.getEndRes(),e):this.colSel.makeVisibleAnnotation(e);
1851 b.add(e)}return b},"~B");e(c$,"isPadGaps",function(){return this.padGaps});e(c$,"setPadGaps",function(a){this.padGaps=a},"~B");e(c$,"alignmentChanged",function(a){this.isPadGaps()&&this.alignment.padGaps();this.autoCalculateConsensus&&this.updateConsensus(a);null!=this.hconsensus&&this.autoCalculateConsensus&&this.updateConservation(a);this.autoCalculateStrucConsensus&&this.updateStrucConsensus(a);a=this.alignment.getWidth();var b=this.alignment.getGroups();if(null!=b)for(var c,b=b.iterator();b.hasNext()&&
1852 ((c=b.next())||1);)c.getEndRes()>a&&c.setEndRes(a-1);null!=this.selectionGroup&&this.selectionGroup.getEndRes()>a&&this.selectionGroup.setEndRes(a-1);this.resetAllColourSchemes();this.calculator.restartWorkers()},"jalview.api.AlignmentViewPanel");d(c$,"resetAllColourSchemes",function(){var a=this.globalColourScheme;null!=a&&(a.alignmentChanged(this.alignment,this.hiddenRepSequences),a.setConsensus(this.hconsensus),a.conservationApplied()&&a.setConservation(jalview.analysis.Conservation.calculateConservation("All",
1853 jalview.schemes.ResidueProperties.propHash,3,this.alignment.getSequences(),0,this.alignment.getWidth(),!1,this.getConsPercGaps(),!1)));for(var b,a=this.alignment.getGroups().iterator();a.hasNext()&&((b=a.next())||1);)null!=b.cs&&b.cs.alignmentChanged(b,this.hiddenRepSequences),b.recalcConservation()});d(c$,"initAutoAnnotation",function(){null==this.hconsensus&&!this.$isDataset&&(this.alignment.isNucleotide()?this.initRNAStructure():(this.initConservation(),this.initQuality()),this.consensus=new jalview.datamodel.AlignmentAnnotation("Consensus",
1854 "PID",Array(1),0,100,1),this.initConsensus(this.consensus),this.initComplementConsensus())});d(c$,"initComplementConsensus",function(){if(!this.alignment.isNucleotide()){var a=this.alignment.getCodonFrames();null!=a&&!a.isEmpty()&&(this.complementConsensus=new jalview.datamodel.AlignmentAnnotation("cDNA Consensus","PID for cDNA",Array(1),0,100,1),this.initConsensus(this.complementConsensus))}});d(c$,"initConsensus",function(a){a.hasText=!0;a.autoCalculated=!0;this.showConsensus&&this.alignment.addAnnotation(a)},
1855 "jalview.datamodel.AlignmentAnnotation");d(c$,"initConservation",function(){this.showConservation&&null==this.conservation&&(this.conservation=new jalview.datamodel.AlignmentAnnotation("Conservation","Conservation of total alignment less than "+this.getConsPercGaps()+"% gaps",Array(1),0,11,1),this.conservation.hasText=!0,this.conservation.autoCalculated=!0,this.alignment.addAnnotation(this.conservation))});d(c$,"initQuality",function(){this.showQuality&&null==this.quality&&(this.quality=new jalview.datamodel.AlignmentAnnotation("Quality",
1856 "Alignment Quality based on Blosum62 scores",Array(1),0,11,1),this.quality.hasText=!0,this.quality.autoCalculated=!0,this.alignment.addAnnotation(this.quality))});d(c$,"initRNAStructure",function(){this.alignment.hasRNAStructure()&&null==this.strucConsensus&&(this.strucConsensus=new jalview.datamodel.AlignmentAnnotation("StrucConsensus","PID",Array(1),0,100,1),this.strucConsensus.hasText=!0,this.strucConsensus.autoCalculated=!0,this.showConsensus&&this.alignment.addAnnotation(this.strucConsensus))});
1857 e(c$,"calcPanelHeight",function(){var a=this.getAlignment().getAlignmentAnnotation(),b=0,c=this.getCharHeight();if(null!=a)for(var f=new java.util.BitSet,d,e=0;e<a.length&&((d=a[e])||1);e++)if(null==d)System.err.println("Null annotation row: ignoring.");else if(d.visible){if(-1<d.graphGroup)if(f.get(d.graphGroup))continue;else f.set(d.graphGroup);d.height=0;d.hasText&&(d.height+=c);d.hasIcons&&(d.height+=16);0<d.graph&&(d.height+=d.graphHeight);0==d.height&&(d.height=20);b+=d.height}0==b&&(b=20);
1858 return b});e(c$,"updateGroupAnnotationSettings",function(a,b){var c=!1,f=this.isShowGroupConservation(),d=this.isShowGroupConsensus(),e=this.isShowSequenceLogo(),g=this.isShowConsensusHistogram(),h=this.isNormaliseSequenceLogo(),c=this.alignment.getAlignmentAnnotation(),j=new java.util.ArrayList;if(null!=c)for(var n=0;n<c.length;n++)c[n].autoCalculated&&null!=c[n].groupRef&&(j.add(c[n].groupRef),this.alignment.deleteAnnotation(c[n],!1));if(null!=this.alignment.getGroups())for(var x,n=this.alignment.getGroups().iterator();n.hasNext()&&
1859 ((x=n.next())||1);){c=!1;if(a||!b&&!j.contains(x))x.setshowSequenceLogo(e),x.setShowConsensusHistogram(g),x.setNormaliseSequenceLogo(h);f&&(c=!0,this.alignment.addAnnotation(x.getConservationRow(),0));d&&(c=!0,this.alignment.addAnnotation(x.getConsensus(),0));c&&x.recalcConservation()}j.clear()},"~B,~B");d(c$,"isDisplayReferenceSeq",function(){return this.alignment.hasSeqrep()&&this.viewStyle.isDisplayReferenceSeq()});d(c$,"setDisplayReferenceSeq",function(a){this.viewStyle.setDisplayReferenceSeq(a)},
1860 "~B");d(c$,"isColourByReferenceSeq",function(){return this.alignment.hasSeqrep()&&this.viewStyle.isColourByReferenceSeq()});e(c$,"getSequenceColour",function(a){a=this.sequenceColours.get(a);return null==a?java.awt.Color.white:a},"jalview.datamodel.SequenceI");e(c$,"setSequenceColour",function(a,b){null==b?this.sequenceColours.remove(a):this.sequenceColours.put(a,b)},"jalview.datamodel.SequenceI,java.awt.Color");e(c$,"updateSequenceIdColours",function(){for(var a,b=this.alignment.getGroups().iterator();b.hasNext()&&
1861 ((a=b.next())||1);)if(null!=a.idColour)for(var c,f=a.getSequences(this.getHiddenRepSequences()).iterator();f.hasNext()&&((c=f.next())||1);)this.sequenceColours.put(c,a.idColour)});e(c$,"clearSequenceColours",function(){this.sequenceColours.clear()});d(c$,"getCodingComplement",function(){return this.codingComplement});d(c$,"setCodingComplement",function(a){this===a?System.err.println("Ignoring recursive setCodingComplement request"):(this.codingComplement=a,a.getCodingComplement()!==this&&a.setCodingComplement(this))},
1862 "jalview.api.AlignViewportI");e(c$,"isNucleotide",function(){return null==this.getAlignment()?!1:this.getAlignment().isNucleotide()});e(c$,"getFeaturesDisplayed",function(){return this.featuresDisplayed});e(c$,"setFeaturesDisplayed",function(a){this.featuresDisplayed=a},"jalview.api.FeaturesDisplayedI");e(c$,"areFeaturesDisplayed",function(){return null!=this.featuresDisplayed&&0<this.featuresDisplayed.getRegisterdFeaturesCount()});d(c$,"setShowSequenceFeatures",function(a){this.viewStyle.setShowSequenceFeatures(a)},
1863 "~B");d(c$,"isShowSequenceFeatures",function(){return this.viewStyle.isShowSequenceFeatures()});d(c$,"setShowSequenceFeaturesHeight",function(a){this.viewStyle.setShowSequenceFeaturesHeight(a)},"~B");d(c$,"isShowSequenceFeaturesHeight",function(){return this.viewStyle.isShowSequenceFeaturesHeight()});d(c$,"setShowAnnotation",function(a){this.viewStyle.setShowAnnotation(a)},"~B");d(c$,"isShowAnnotation",function(){return this.viewStyle.isShowAnnotation()});d(c$,"isRightAlignIds",function(){return this.viewStyle.isRightAlignIds()});
1864 d(c$,"setRightAlignIds",function(a){this.viewStyle.setRightAlignIds(a)},"~B");d(c$,"getConservationSelected",function(){return this.viewStyle.getConservationSelected()});d(c$,"setShowBoxes",function(a){this.viewStyle.setShowBoxes(a)},"~B");d(c$,"getTextColour",function(){return this.viewStyle.getTextColour()});d(c$,"getTextColour2",function(){return this.viewStyle.getTextColour2()});d(c$,"getThresholdTextColour",function(){return this.viewStyle.getThresholdTextColour()});d(c$,"isConservationColourSelected",
1865 function(){return this.viewStyle.isConservationColourSelected()});d(c$,"isRenderGaps",function(){return this.viewStyle.isRenderGaps()});d(c$,"isShowColourText",function(){return this.viewStyle.isShowColourText()});d(c$,"setConservationColourSelected",function(a){this.viewStyle.setConservationColourSelected(a)},"~B");d(c$,"setShowColourText",function(a){this.viewStyle.setShowColourText(a)},"~B");d(c$,"setTextColour",function(a){this.viewStyle.setTextColour(a)},"java.awt.Color");d(c$,"setThresholdTextColour",
1866 function(a){this.viewStyle.setThresholdTextColour(a)},"~N");d(c$,"setTextColour2",function(a){this.viewStyle.setTextColour2(a)},"java.awt.Color");e(c$,"getViewStyle",function(){return new jalview.viewmodel.styles.ViewStyle(this.viewStyle)});e(c$,"setViewStyle",function(a){this.viewStyle=new jalview.viewmodel.styles.ViewStyle(a)},"jalview.api.ViewStyleI");d(c$,"sameStyle",function(a){return this.viewStyle.sameStyle(a)},"jalview.api.ViewStyleI");d(c$,"getIdWidth",function(){return this.viewStyle.getIdWidth()});
1867 d(c$,"setIdWidth",function(a){this.viewStyle.setIdWidth(a)},"~N");d(c$,"isCentreColumnLabels",function(){return this.viewStyle.isCentreColumnLabels()});d(c$,"setCentreColumnLabels",function(a){this.viewStyle.setCentreColumnLabels(a)},"~B");d(c$,"setShowDBRefs",function(a){this.viewStyle.setShowDBRefs(a)},"~B");d(c$,"isShowDBRefs",function(){return this.viewStyle.isShowDBRefs()});d(c$,"isShowNPFeats",function(){return this.viewStyle.isShowNPFeats()});d(c$,"setShowNPFeats",function(a){this.viewStyle.setShowNPFeats(a)},
1868 "~B");d(c$,"addToHistoryList",function(a){null!=this.historyList&&(this.historyList.push(a),this.broadcastCommand(a,!1))},"jalview.commands.CommandI");d(c$,"broadcastCommand",function(a,b){this.getStructureSelectionManager().commandPerformed(a,b,this.getVamsasSource())},"jalview.commands.CommandI,~B");d(c$,"addToRedoList",function(a){null!=this.redoList&&this.redoList.push(a);this.broadcastCommand(a,!0)},"jalview.commands.CommandI");d(c$,"clearRedoList",function(){null!=this.redoList&&this.redoList.clear()});
1869 d(c$,"setHistoryList",function(a){this.historyList=a},"java.util.Deque");d(c$,"getHistoryList",function(){return this.historyList});d(c$,"setRedoList",function(a){this.redoList=a},"java.util.Deque");d(c$,"getRedoList",function(){return this.redoList});e(c$,"getVamsasSource",function(){return this});d(c$,"getSortAnnotationsBy",function(){return this.sortAnnotationsBy});d(c$,"setSortAnnotationsBy",function(a){this.sortAnnotationsBy=a},"jalview.analysis.AnnotationSorter.SequenceAnnotationOrder");d(c$,
1870 "isShowAutocalculatedAbove",function(){return this.showAutocalculatedAbove});d(c$,"setShowAutocalculatedAbove",function(a){this.showAutocalculatedAbove=a},"~B");d(c$,"isScaleProteinAsCdna",function(){return this.viewStyle.isScaleProteinAsCdna()});d(c$,"setScaleProteinAsCdna",function(a){this.viewStyle.setScaleProteinAsCdna(a)},"~B");d(c$,"isFollowHighlight",function(){return this.followHighlight});e(c$,"setFollowHighlight",function(a){this.followHighlight=a},"~B");d(c$,"getStartRes",function(){return this.startRes});
1871 e(c$,"getEndRes",function(){return this.endRes});d(c$,"getStartSeq",function(){return this.startSeq});d(c$,"setStartRes",function(a){this.startRes=a},"~N");d(c$,"setStartSeq",function(a){this.startSeq=a},"~N");d(c$,"setEndRes",function(a){a>this.alignment.getWidth()-1&&(a=this.alignment.getWidth()-1);0>a&&(a=0);this.endRes=a},"~N");d(c$,"setEndSeq",function(a){a>this.alignment.getHeight()&&(a=this.alignment.getHeight());0>a&&(a=0);this.endSeq=a},"~N");d(c$,"getEndSeq",function(){return this.endSeq});
1872 d(c$,"findComplementScrollTarget",function(a){var b=this.getCodingComplement();if(null==b||!b.isFollowHighlight())return 0;b=!this.getAlignment().isNucleotide()?this.getAlignment():b.getAlignment();if(null==b)return 0;for(var b=b.getCodonFrames(),c=0,f=null,d=this.getStartRes()+F((this.getEndRes()-this.getStartRes())/2),e=this.getAlignment().getHiddenSequences(),g=this.getStartSeq();g<this.getEndSeq()&&!(f=this.getAlignment().getSequenceAt(g),!(null!=e&&e.isHidden(f))&&!jalview.util.Comparison.isGap(f.getCharAt(d))&&
1873 !jalview.util.MappingUtils.findMappingsForSequence(f,b).isEmpty());g++,c++);if(null==f)return 0;jalview.util.MappingUtils.addSearchResults(a,f,f.findPosition(d),b);return c},"jalview.datamodel.SearchResults")});p("jalview.api");q(["jalview.api.ViewStyleI"],"jalview.api.AlignViewportI",null,function(){M(jalview.api,"AlignViewportI",jalview.api.ViewStyleI)});p("jalview.api");M(jalview.api,"ViewStyleI");p("jalview.viewmodel.styles");q(["jalview.api.ViewStyleI","java.awt.Color"],"jalview.viewmodel.styles.ViewStyle",
1874 ["java.lang.Boolean"],function(){c$=s(function(){this.abovePIDThreshold=!1;this.charWidth=this.charHeight=0;this.idWidth=-1;this.displayReferenceSeq=this.conservationColourSelected=this.colourByReferenceSeq=this.shownpfeats=this.showdbrefs=this.centreColumnLabels=this.colourAppliesToAllGroups=!1;this.increment=0;this.renderGaps=!0;this.scaleAboveWrapped=this.rightAlignIds=!1;this.scaleRightWrapped=this.scaleLeftWrapped=!0;this.seqNameItalics=!1;this.showBoxes=this.showAnnotation=!0;this.showColourText=
1875 !1;this.showJVSuffix=this.showHiddenMarkers=!0;this.showSequenceFeatures=this.showSeqFeaturesHeight=!1;this.showText=!0;this.showUnconserved=!1;this.textColour2=this.textColour=null;this.thresholdTextColour=this.threshold=0;this.upperCasebold=!1;this.fontName=null;this.fontSize=0;this.scaleProteinAsCdna=!0;this.wrapAlignment=!1;this.fontStyle=this.wrappedWidth=0;r(this,arguments)},jalview.viewmodel.styles,"ViewStyle",null,jalview.api.ViewStyleI);J(c$,function(){this.textColour=java.awt.Color.black;
1876 this.textColour2=java.awt.Color.white});m(c$,function(a){this.setAbovePIDThreshold(a.getAbovePIDThreshold());this.setCentreColumnLabels(a.isCentreColumnLabels());this.setCharHeight(a.getCharHeight());this.setCharWidth(a.getCharWidth());this.setColourAppliesToAllGroups(a.getColourAppliesToAllGroups());this.setColourByReferenceSeq(a.isColourByReferenceSeq());this.setColourText(a.getColourText());this.setConservationColourSelected(a.isConservationColourSelected());this.setConservationSelected(a.getConservationSelected());
1877 this.setDisplayReferenceSeq(a.isDisplayReferenceSeq());this.setFontName(a.getFontName());this.setFontSize(a.getFontSize());this.setFontStyle(a.getFontStyle());this.setIdWidth(a.getIdWidth());this.setIncrement(a.getIncrement());this.setRenderGaps(a.isRenderGaps());this.setRightAlignIds(a.isRightAlignIds());this.setScaleAboveWrapped(a.getScaleAboveWrapped());this.setScaleLeftWrapped(a.getScaleLeftWrapped());this.setScaleProteinAsCdna(a.isScaleProteinAsCdna());this.setScaleRightWrapped(a.getScaleRightWrapped());
1878 this.setSeqNameItalics(a.isSeqNameItalics());this.setShowAnnotation(a.isShowAnnotation());this.setShowBoxes(a.getShowBoxes());this.setShowColourText(a.isShowColourText());this.setShowDBRefs(a.isShowDBRefs());this.setShowHiddenMarkers(a.getShowHiddenMarkers());this.setShowJVSuffix(a.getShowJVSuffix());this.setShowNPFeats(a.isShowNPFeats());this.setShowSequenceFeaturesHeight(a.isShowSequenceFeaturesHeight());this.setShowSequenceFeatures(a.isShowSequenceFeatures());this.setShowText(a.getShowText());
1879 this.setShowUnconserved(a.getShowUnconserved());this.setTextColour(a.getTextColour());this.setTextColour2(a.getTextColour2());this.setThreshold(a.getThreshold());this.setThresholdTextColour(a.getThresholdTextColour());this.setUpperCasebold(a.isUpperCasebold());this.setWrapAlignment(a.getWrapAlignment());this.setWrappedWidth(a.getWrappedWidth())},"jalview.api.ViewStyleI");m(c$,function(){});e(c$,"equals",function(a){if(null==a||!v(a,jalview.viewmodel.styles.ViewStyle))return!1;var b=this.getAbovePIDThreshold()==
1880 a.getAbovePIDThreshold()&&this.isCentreColumnLabels()==a.isCentreColumnLabels()&&this.getCharHeight()==a.getCharHeight()&&this.getCharWidth()==a.getCharWidth()&&this.getColourAppliesToAllGroups()==a.getColourAppliesToAllGroups()&&this.isColourByReferenceSeq()==a.isColourByReferenceSeq()&&this.getColourText()==a.getColourText()&&this.isConservationColourSelected()==a.isConservationColourSelected()&&this.getConservationSelected()==a.getConservationSelected()&&this.isDisplayReferenceSeq()==a.isDisplayReferenceSeq()&&
1881 this.getFontSize()==a.getFontSize()&&this.getFontStyle()==a.getFontStyle()&&this.getIdWidth()==a.getIdWidth()&&this.getIncrement()==a.getIncrement()&&this.isRenderGaps()==a.isRenderGaps()&&this.isRightAlignIds()==a.isRightAlignIds()&&this.getScaleAboveWrapped()==a.getScaleAboveWrapped()&&this.getScaleLeftWrapped()==a.getScaleLeftWrapped()&&this.isScaleProteinAsCdna()==a.isScaleProteinAsCdna()&&this.getScaleRightWrapped()==a.getScaleRightWrapped()&&this.isSeqNameItalics()==a.isSeqNameItalics()&&this.isShowAnnotation()==
1882 a.isShowAnnotation()&&this.getShowBoxes()==a.getShowBoxes()&&this.isShowColourText()==a.isShowColourText()&&this.isShowDBRefs()==a.isShowDBRefs()&&this.getShowHiddenMarkers()==a.getShowHiddenMarkers()&&this.getShowJVSuffix()==a.getShowJVSuffix()&&this.isShowNPFeats()==a.isShowNPFeats()&&this.isShowSequenceFeaturesHeight()==a.isShowSequenceFeaturesHeight()&&this.isShowSequenceFeatures()==a.isShowSequenceFeatures()&&this.getShowText()==a.getShowText()&&this.getShowUnconserved()==a.getShowUnconserved()&&
1883 this.getThreshold()==a.getThreshold()&&this.getThresholdTextColour()==a.getThresholdTextColour()&&this.isUpperCasebold()==a.isUpperCasebold()&&this.getWrapAlignment()==a.getWrapAlignment()&&this.getWrappedWidth()==a.getWrappedWidth();return b=(b=(b=b&&String.valueOf(this.getFontName()).equals(String.valueOf(a.getFontName())))&&String.valueOf(this.getTextColour()).equals(String.valueOf(a.getTextColour())))&&String.valueOf(this.getTextColour2()).equals(String.valueOf(a.getTextColour2()))},"~O");e(c$,
1884 "hashCode",function(){var a,b=1;a=0+b++*Boolean.$valueOf(this.abovePIDThreshold).hashCode();a+=b++*Boolean.$valueOf(this.centreColumnLabels).hashCode();a+=b++*Boolean.$valueOf(this.colourAppliesToAllGroups).hashCode();a+=b++*Boolean.$valueOf(this.displayReferenceSeq).hashCode();a+=b++*Boolean.$valueOf(this.renderGaps).hashCode();a+=b++*Boolean.$valueOf(this.rightAlignIds).hashCode();a+=b++*Boolean.$valueOf(this.scaleProteinAsCdna).hashCode();a+=b++*Boolean.$valueOf(this.scaleRightWrapped).hashCode();
1885 a+=b++*Boolean.$valueOf(this.seqNameItalics).hashCode();a+=b++*Boolean.$valueOf(this.showAnnotation).hashCode();a+=b++*Boolean.$valueOf(this.showBoxes).hashCode();a+=b++*Boolean.$valueOf(this.showdbrefs).hashCode();a+=b++*Boolean.$valueOf(this.showJVSuffix).hashCode();a+=b++*Boolean.$valueOf(this.showSequenceFeatures).hashCode();a+=b++*Boolean.$valueOf(this.showUnconserved).hashCode();a+=b++*Boolean.$valueOf(this.wrapAlignment).hashCode();a+=b++*this.charHeight;a+=b++*this.charWidth;a+=b++*this.fontSize;
1886 a+=b++*this.fontStyle;a+=b++*this.idWidth;return a+=String.valueOf(this.fontName).hashCode()});d(c$,"isUpperCasebold",function(){return this.upperCasebold});e(c$,"setUpperCasebold",function(a){this.upperCasebold=a},"~B");d(c$,"getAbovePIDThreshold",function(){return this.abovePIDThreshold});d(c$,"getCharHeight",function(){return this.charHeight});d(c$,"getCharWidth",function(){return this.charWidth});d(c$,"getColourAppliesToAllGroups",function(){return this.colourAppliesToAllGroups});d(c$,"getColourText",
1887 function(){return this.showColourText});d(c$,"getConservationSelected",function(){return this.conservationColourSelected});d(c$,"getIncrement",function(){return this.increment});d(c$,"getScaleAboveWrapped",function(){return this.scaleAboveWrapped});d(c$,"getScaleLeftWrapped",function(){return this.scaleLeftWrapped});d(c$,"getScaleRightWrapped",function(){return this.scaleRightWrapped});d(c$,"getShowBoxes",function(){return this.showBoxes});d(c$,"getShowHiddenMarkers",function(){return this.showHiddenMarkers});
1888 d(c$,"getShowJVSuffix",function(){return this.showJVSuffix});d(c$,"getShowText",function(){return this.showText});d(c$,"getShowUnconserved",function(){return this.showUnconserved});d(c$,"getTextColour",function(){return this.textColour});d(c$,"getTextColour2",function(){return this.textColour2});d(c$,"getThreshold",function(){return this.threshold});d(c$,"getThresholdTextColour",function(){return this.thresholdTextColour});d(c$,"getWrapAlignment",function(){return this.wrapAlignment});d(c$,"getWrappedWidth",
1889 function(){return this.wrappedWidth});d(c$,"isColourByReferenceSeq",function(){return this.colourByReferenceSeq});d(c$,"isConservationColourSelected",function(){return this.conservationColourSelected});d(c$,"isDisplayReferenceSeq",function(){return this.displayReferenceSeq});d(c$,"isRenderGaps",function(){return this.renderGaps});d(c$,"isRightAlignIds",function(){return this.rightAlignIds});d(c$,"isSeqNameItalics",function(){return this.seqNameItalics});d(c$,"isShowAnnotation",function(){return this.showAnnotation});
1890 d(c$,"isShowColourText",function(){return this.showColourText});d(c$,"isShowSequenceFeaturesHeight",function(){return this.showSeqFeaturesHeight});d(c$,"isShowSequenceFeatures",function(){return this.showSequenceFeatures});e(c$,"setAbovePIDThreshold",function(a){this.abovePIDThreshold=a},"~B");e(c$,"setCharHeight",function(a){this.charHeight=a},"~N");e(c$,"setCharWidth",function(a){this.charWidth=a},"~N");e(c$,"setColourAppliesToAllGroups",function(a){this.colourAppliesToAllGroups=a},"~B");e(c$,"setColourByReferenceSeq",
1891 function(a){this.colourByReferenceSeq=a},"~B");e(c$,"setColourText",function(a){this.showColourText=a},"~B");e(c$,"setConservationColourSelected",function(a){this.conservationColourSelected=a},"~B");e(c$,"setConservationSelected",function(a){this.conservationColourSelected=a},"~B");e(c$,"setDisplayReferenceSeq",function(a){this.displayReferenceSeq=a},"~B");e(c$,"setIncrement",function(a){this.increment=a},"~N");e(c$,"setRenderGaps",function(a){this.renderGaps=a},"~B");e(c$,"setRightAlignIds",function(a){this.rightAlignIds=
1892 a},"~B");e(c$,"setScaleAboveWrapped",function(a){this.scaleAboveWrapped=a},"~B");e(c$,"setScaleLeftWrapped",function(a){this.scaleLeftWrapped=a},"~B");e(c$,"setScaleRightWrapped",function(a){this.scaleRightWrapped=a},"~B");e(c$,"setSeqNameItalics",function(a){this.seqNameItalics=a},"~B");e(c$,"setShowAnnotation",function(a){this.showAnnotation=a},"~B");e(c$,"setShowBoxes",function(a){this.showBoxes=a},"~B");e(c$,"setShowColourText",function(a){this.showColourText=a},"~B");e(c$,"setShowHiddenMarkers",
1893 function(a){this.showHiddenMarkers=a},"~B");e(c$,"setShowJVSuffix",function(a){this.showJVSuffix=a},"~B");e(c$,"setShowSequenceFeaturesHeight",function(a){this.showSeqFeaturesHeight=a},"~B");e(c$,"setShowSequenceFeatures",function(a){this.showSequenceFeatures=a},"~B");e(c$,"setShowText",function(a){this.showText=a},"~B");e(c$,"setShowUnconserved",function(a){this.showUnconserved=a},"~B");e(c$,"setTextColour",function(a){this.textColour=a},"java.awt.Color");e(c$,"setTextColour2",function(a){this.textColour2=
1894 a},"java.awt.Color");e(c$,"setThreshold",function(a){this.threshold=a},"~N");e(c$,"setThresholdTextColour",function(a){this.thresholdTextColour=a},"~N");e(c$,"setWrapAlignment",function(a){this.wrapAlignment=a},"~B");e(c$,"setWrappedWidth",function(a){this.wrappedWidth=a},"~N");e(c$,"sameStyle",function(a){return this.equals(a)},"jalview.api.ViewStyleI");d(c$,"getFontName",function(){return this.fontName});d(c$,"getFontSize",function(){return this.fontSize});d(c$,"getFontStyle",function(){return this.fontStyle});
1895 e(c$,"setFontName",function(a){this.fontName=a},"~S");e(c$,"setFontSize",function(a){this.fontSize=a},"~N");e(c$,"setFontStyle",function(a){this.fontStyle=a},"~N");d(c$,"getIdWidth",function(){return this.idWidth});e(c$,"setIdWidth",function(a){this.idWidth=a},"~N");d(c$,"isCentreColumnLabels",function(){return this.centreColumnLabels});e(c$,"setCentreColumnLabels",function(a){this.centreColumnLabels=a},"~B");d(c$,"isShowDBRefs",function(){return this.showdbrefs});e(c$,"setShowDBRefs",function(a){this.showdbrefs=
1896 a},"~B");d(c$,"isShowNPFeats",function(){return this.shownpfeats});e(c$,"setShowNPFeats",function(a){this.shownpfeats=a},"~B");d(c$,"isScaleProteinAsCdna",function(){return this.scaleProteinAsCdna});e(c$,"setScaleProteinAsCdna",function(a){this.scaleProteinAsCdna=a},"~B")});p("jalview.workers");q(["jalview.api.AlignCalcManagerI","java.util.ArrayList","$.Collections","$.HashSet","$.Hashtable"],"jalview.workers.AlignCalcManager",null,function(){c$=s(function(){this.canUpdate=this.updating=this.inProgress=
1897 this.blackList=this.restartable=null;r(this,arguments)},jalview.workers,"AlignCalcManager",null,jalview.api.AlignCalcManagerI);J(c$,function(){this.restartable=java.util.Collections.synchronizedList(new java.util.ArrayList);this.blackList=java.util.Collections.synchronizedList(new java.util.ArrayList);this.inProgress=java.util.Collections.synchronizedMap(new java.util.Hashtable);this.updating=java.util.Collections.synchronizedMap(new java.util.Hashtable);this.canUpdate=new java.util.HashSet});e(c$,
1898 "notifyStart",function(a){var b=this.updating.get(a.getClass());null==b&&this.updating.put(a.getClass(),b=java.util.Collections.synchronizedList(new java.util.ArrayList));b.add(a)},"jalview.api.AlignCalcWorkerI");e(c$,"alreadyDoing",function(a){return this.inProgress.containsKey(a.getClass())},"jalview.api.AlignCalcWorkerI");e(c$,"isPending",function(a){a=this.updating.get(a.getClass());return null==a?!1:1<a.size()?!0:!1},"jalview.api.AlignCalcWorkerI");d(c$,"numberLive",function(a){a=this.updating.get(a.getClass());
1899 return null==a?0:a.size()},"jalview.api.AlignCalcWorkerI");e(c$,"notifyWorking",function(a){if(null!=this.inProgress.get(a.getClass()))return!1;this.inProgress.put(a.getClass(),a);return!0},"jalview.api.AlignCalcWorkerI");e(c$,"workerComplete",function(a){this.inProgress.remove(a.getClass());var b=this.updating.get(a.getClass());null!=b&&(b.remove(a),this.canUpdate.add(a))},"jalview.api.AlignCalcWorkerI");e(c$,"workerCannotRun",function(a){this.blackList.add(a.getClass())},"jalview.api.AlignCalcWorkerI");
1900 d(c$,"isBlackListed",function(a){return this.blackList.contains(a)},"Class");e(c$,"startWorker",function(a){var b=a;b.isAlive()&&(b.interrupt(),a=a.getNewWorker());a.setName(a.getClass().getName());a.start()},"jalview.api.AlignCalcWorkerI");d(c$,"isWorking",function(a){return null!=a&&this.inProgress.get(a.getClass())===a},"jalview.api.AlignCalcWorkerI");d(c$,"isWorking",function(){return 0<this.inProgress.size()});e(c$,"registerWorker",function(a){this.restartable.contains(a)||this.restartable.add(a);
1901 this.startWorker(a)},"jalview.api.AlignCalcWorkerI");e(c$,"restartWorkers",function(){for(var a,b=this.restartable.iterator();b.hasNext()&&((a=b.next())||1);)this.startWorker(a)});e(c$,"workingInvolvedWith",function(a){for(var b,c=this.inProgress.values().iterator();c.hasNext()&&((b=c.next())||1);)if(b.involves(a))return!0;for(var f,d=this.updating.values().iterator();d.hasNext()&&((f=d.next())||1);)for(c=f.iterator();c.hasNext()&&((b=c.next())||1);)if(b.involves(a))return!0;return!1},"jalview.datamodel.AlignmentAnnotation");
1902 e(c$,"updateAnnotationFor",function(a){for(var b,c=0,f=this.canUpdate.toArray([]);c<f.length&&((b=f[c])||1);c++)a.equals(b.getClass())&&b.updateAnnotation()},"Class");e(c$,"getRegisteredWorkersOfClass",function(a){for(var b=new java.util.ArrayList,c,f=0,d=this.canUpdate.toArray(Array(this.canUpdate.size()));f<d.length&&((c=d[f])||1);f++)a.equals(c.getClass())&&b.add(c);return 0==b.size()?null:b},"Class");e(c$,"startRegisteredWorkersOfClass",function(a){var b=this.getRegisteredWorkersOfClass(a);if(null==
1903 b)return!1;for(var c,b=b.iterator();b.hasNext()&&((c=b.next())||1);)this.isPending(c)?System.err.println("Pending exists for "+a):this.startWorker(c);return!0},"Class");e(c$,"workerMayRun",function(a){this.blackList.contains(a.getClass())&&this.blackList.remove(a.getClass())},"jalview.api.AlignCalcWorkerI");e(c$,"removeRegisteredWorkersOfClass",function(a){this.getRegisteredWorkersOfClass(a);for(var b=new java.util.ArrayList,c=new java.util.HashSet,f,d=this.restartable.iterator();d.hasNext()&&((f=
1904 d.next())||1);)a.equals(f.getClass())&&(b.add(f),c.add(f));this.restartable.removeAll(b);for(d=this.canUpdate.iterator();d.hasNext()&&((f=d.next())||1);)a.equals(f.getClass())&&(b.add(f),c.add(f));this.canUpdate.removeAll(b)},"Class")});p("jalview.api");M(jalview.api,"AlignCalcManagerI");p("java.util");q(["java.util.AbstractCollection","$.Iterator","java.util.Deque"],"java.util.ArrayDeque","java.lang.AssertionError $.IllegalStateException $.NullPointerException java.lang.reflect.Array java.util.Arrays $.ConcurrentModificationException $.NoSuchElementException".split(" "),
1905 function(){c$=s(function(){this.elements=null;this.tail=this.head=0;H("java.util.ArrayDeque.DeqIterator")||java.util.ArrayDeque.$ArrayDeque$DeqIterator$();H("java.util.ArrayDeque.DescendingIterator")||java.util.ArrayDeque.$ArrayDeque$DescendingIterator$();r(this,arguments)},java.util,"ArrayDeque",java.util.AbstractCollection,[java.util.Deque,Cloneable,java.io.Serializable]);d(c$,"allocateElements",function(a){var b=8;a>=b&&(b=a,b|=b>>>1,b|=b>>>2,b|=b>>>4,b|=b>>>8,b|=b>>>16,b++,0>b&&(b>>>=1));this.elements=
1906 Array(b)},"~N");d(c$,"doubleCapacity",function(){var a=this.head,b=this.elements.length,c=b-a,f=b<<1;if(0>f)throw new IllegalStateException("Sorry, deque too big");f=Array(f);System.arraycopy(this.elements,a,f,0,c);System.arraycopy(this.elements,0,f,c,a);this.elements=f;this.head=0;this.tail=b});d(c$,"copyElements",function(a){if(this.head<this.tail)System.arraycopy(this.elements,this.head,a,0,this.size());else if(this.head>this.tail){var b=this.elements.length-this.head;System.arraycopy(this.elements,
1907 this.head,a,0,b);System.arraycopy(this.elements,0,a,b,this.tail)}return a},"~A");m(c$,function(){t(this,java.util.ArrayDeque,[]);this.elements=Array(16)});m(c$,function(a){t(this,java.util.ArrayDeque,[]);this.allocateElements(a)},"~N");m(c$,function(a){t(this,java.util.ArrayDeque,[]);this.allocateElements(a.size());this.addAll(a)},"java.util.Collection");e(c$,"addFirst",function(a){if(null==a)throw new NullPointerException;this.elements[this.head=this.head-1&this.elements.length-1]=a;this.head==this.tail&&
1908 this.doubleCapacity()},"~O");e(c$,"addLast",function(a){if(null==a)throw new NullPointerException;this.elements[this.tail]=a;(this.tail=this.tail+1&this.elements.length-1)==this.head&&this.doubleCapacity()},"~O");e(c$,"offerFirst",function(a){this.addFirst(a);return!0},"~O");e(c$,"offerLast",function(a){this.addLast(a);return!0},"~O");e(c$,"removeFirst",function(){var a=this.pollFirst();if(null==a)throw new java.util.NoSuchElementException;return a});e(c$,"removeLast",function(){var a=this.pollLast();
1909 if(null==a)throw new java.util.NoSuchElementException;return a});e(c$,"pollFirst",function(){var a=this.head,b=this.elements[a];if(null==b)return null;this.elements[a]=null;this.head=a+1&this.elements.length-1;return b});e(c$,"pollLast",function(){var a=this.tail-1&this.elements.length-1,b=this.elements[a];if(null==b)return null;this.elements[a]=null;this.tail=a;return b});e(c$,"getFirst",function(){var a=this.elements[this.head];if(null==a)throw new java.util.NoSuchElementException;return a});e(c$,
1910 "getLast",function(){var a=this.elements[this.tail-1&this.elements.length-1];if(null==a)throw new java.util.NoSuchElementException;return a});e(c$,"peekFirst",function(){return this.elements[this.head]});e(c$,"peekLast",function(){return this.elements[this.tail-1&this.elements.length-1]});e(c$,"removeFirstOccurrence",function(a){if(null==a)return!1;for(var b=this.elements.length-1,c=this.head,f;null!=(f=this.elements[c]);){if(a.equals(f))return this.$delete(c),!0;c=c+1&b}return!1},"~O");e(c$,"removeLastOccurrence",
1911 function(a){if(null==a)return!1;for(var b=this.elements.length-1,c=this.tail-1&b,f;null!=(f=this.elements[c]);){if(a.equals(f))return this.$delete(c),!0;c=c-1&b}return!1},"~O");e(c$,"add",function(a){this.addLast(a);return!0},"~O");e(c$,"offer",function(a){return this.offerLast(a)},"~O");d(c$,"remove",function(){return this.removeFirst()});e(c$,"poll",function(){return this.pollFirst()});e(c$,"element",function(){return this.getFirst()});e(c$,"peek",function(){return this.peekFirst()});e(c$,"push",
1912 function(a){this.addFirst(a)},"~O");e(c$,"pop",function(){return this.removeFirst()});d(c$,"checkInvariants",function(){});d(c$,"$delete",function(a){this.checkInvariants();var b=this.elements,c=b.length-1,f=this.head,d=this.tail,e=a-f&c,g=d-a&c;if(e>=(d-f&c))throw new java.util.ConcurrentModificationException;if(e<g)return f<=a?System.arraycopy(b,f,b,f+1,e):(System.arraycopy(b,0,b,1,a),b[0]=b[c],System.arraycopy(b,f,b,f+1,c-f)),b[f]=null,this.head=f+1&c,!1;a<d?(System.arraycopy(b,a+1,b,a,g),this.tail=
1913 d-1):(System.arraycopy(b,a+1,b,a,c-a),b[c]=b[0],System.arraycopy(b,1,b,0,d),this.tail=d-1&c);return!0},"~N");e(c$,"size",function(){return this.tail-this.head&this.elements.length-1});e(c$,"isEmpty",function(){return this.head==this.tail});e(c$,"iterator",function(){return C(java.util.ArrayDeque.DeqIterator,this,null)});e(c$,"descendingIterator",function(){return C(java.util.ArrayDeque.DescendingIterator,this,null)});e(c$,"contains",function(a){if(null==a)return!1;for(var b=this.elements.length-1,
1914 c=this.head,f;null!=(f=this.elements[c]);){if(a.equals(f))return!0;c=c+1&b}return!1},"~O");d(c$,"remove",function(a){return this.removeFirstOccurrence(a)},"~O");e(c$,"clear",function(){var a=this.head,b=this.tail;if(a!=b){this.head=this.tail=0;var c=this.elements.length-1;do this.elements[a]=null,a=a+1&c;while(a!=b)}});d(c$,"toArray",function(){return this.copyElements(Array(this.size()))});d(c$,"toArray",function(a){var b=this.size();a.length<b&&(a=java.lang.reflect.Array.newInstance(a.getClass().getComponentType(),
1915 b));this.copyElements(a);a.length>b&&(a[b]=null);return a},"~A");d(c$,"clone",function(){try{var a=K(this,java.util.ArrayDeque,"clone",[]);a.elements=java.util.Arrays.copyOf(this.elements,this.elements.length);return a}catch(b){if(y(b,CloneNotSupportedException))throw new AssertionError;throw b;}});c$.$ArrayDeque$DeqIterator$=function(){A(self.c$);c$=s(function(){O(this,arguments);this.fence=this.cursor=0;this.lastRet=-1;r(this,arguments)},java.util.ArrayDeque,"DeqIterator",null,java.util.Iterator);
1916 J(c$,function(){this.cursor=this.b$["java.util.ArrayDeque"].head;this.fence=this.b$["java.util.ArrayDeque"].tail});e(c$,"hasNext",function(){return this.cursor!=this.fence});e(c$,"next",function(){if(this.cursor==this.fence)throw new java.util.NoSuchElementException;var a=this.b$["java.util.ArrayDeque"].elements[this.cursor];if(this.b$["java.util.ArrayDeque"].tail!=this.fence||null==a)throw new java.util.ConcurrentModificationException;this.lastRet=this.cursor;this.cursor=this.cursor+1&this.b$["java.util.ArrayDeque"].elements.length-
1917 1;return a});e(c$,"remove",function(){if(0>this.lastRet)throw new IllegalStateException;this.b$["java.util.ArrayDeque"].$delete(this.lastRet)&&(this.cursor=this.cursor-1&this.b$["java.util.ArrayDeque"].elements.length-1,this.fence=this.b$["java.util.ArrayDeque"].tail);this.lastRet=-1});c$=z()};c$.$ArrayDeque$DescendingIterator$=function(){A(self.c$);c$=s(function(){O(this,arguments);this.fence=this.cursor=0;this.lastRet=-1;r(this,arguments)},java.util.ArrayDeque,"DescendingIterator",null,java.util.Iterator);
1918 J(c$,function(){this.cursor=this.b$["java.util.ArrayDeque"].tail;this.fence=this.b$["java.util.ArrayDeque"].head});e(c$,"hasNext",function(){return this.cursor!=this.fence});e(c$,"next",function(){if(this.cursor==this.fence)throw new java.util.NoSuchElementException;this.cursor=this.cursor-1&this.b$["java.util.ArrayDeque"].elements.length-1;var a=this.b$["java.util.ArrayDeque"].elements[this.cursor];if(this.b$["java.util.ArrayDeque"].head!=this.fence||null==a)throw new java.util.ConcurrentModificationException;
1919 this.lastRet=this.cursor;return a});e(c$,"remove",function(){if(0>this.lastRet)throw new IllegalStateException;this.b$["java.util.ArrayDeque"].$delete(this.lastRet)||(this.cursor=this.cursor+1&this.b$["java.util.ArrayDeque"].elements.length-1,this.fence=this.b$["java.util.ArrayDeque"].head);this.lastRet=-1});c$=z()};G(c$,"MIN_INITIAL_CAPACITY",8)});p("java.util");q(["java.util.Queue"],"java.util.Deque",null,function(){M(java.util,"Deque",java.util.Queue)});p("jalview.datamodel");q(null,"jalview.datamodel.AlignmentView",
1920 "jalview.datamodel.Alignment $.CigarArray $.ColumnSelection $.SeqCigar $.SequenceGroup jalview.util.MessageManager $.ShiftList java.lang.Error java.util.ArrayList $.Vector".split(" "),function(){c$=s(function(){this.contigs=this.sequences=null;this.firstCol=this.width=0;this.scGroups=null;this.$isNa=!1;H("jalview.datamodel.AlignmentView.ScGroup")||jalview.datamodel.AlignmentView.$AlignmentView$ScGroup$();this.selected=null;r(this,arguments)},jalview.datamodel,"AlignmentView");d(c$,"isNa",function(){return this.$isNa});
1921 m(c$,function(a,b,c,f,d){this.construct(new jalview.datamodel.CigarArray(a,f?b:null,d?c:null),d&&null!=c?c.getStartRes():0);this.$isNa=a.isNucleotide();null!=c&&0<c.getSize()?(c.getSequences(null),this.selected=new java.util.Vector,b=c.getSequencesInOrder(a,d)):b=a.getSequencesArray();f=new java.util.ArrayList;var e=new java.util.ArrayList;a=a.getGroups();e.addAll(a);var g=a=null;if(null!=e){if(null!=c&&d){a=c.getStartRes();for(var g=c.getEndRes(),h=new java.util.ArrayList,j,e=e.iterator();e.hasNext()&&
1922 ((j=e.next())||1);)j.getStartRes()>g||j.getEndRes()<a||(j.getStartRes()<a&&j.setStartRes(a),j.getEndRes()>g&&j.setEndRes(g),j.setStartRes(j.getStartRes()-a+1),j.setEndRes(j.getEndRes()-a+1),h.add(j));e=h}a=Array(e.size());g=X(e.size(),!1);for(h=0;h<a.length;h++)j=e.get(h),a[h]=C(jalview.datamodel.AlignmentView.ScGroup,this,null),a[h].sg=new jalview.datamodel.SequenceGroup(j),g[h]=!1,f.add(j.getSequences())}for(h=e=0;h<b.length;h++)if(null!=b[h]){null!=c&&(0<c.getSize()&&!d)&&(this.sequences[e].setGroupMembership(this.selected),
1923 this.selected.addElement(this.sequences[e]));if(null!=f)for(j=0;j<a.length;j++)f.get(j).contains(b[h])&&(this.sequences[e].setGroupMembership(a[j]),a[j].sg.deleteSequence(b[h],!1),a[j].seqs.addElement(this.sequences[e]),g[j]||(null==this.scGroups&&(this.scGroups=new java.util.ArrayList),g[j]=!0,this.scGroups.add(a[j])));e++}for(j=0;j<a.length;j++){c=a[j].sg.getSequencesAsArray(null);for(d=0;d<c.length;d++)a[j].sg.deleteSequence(c[d],!1);a[j]=null}},"jalview.datamodel.AlignmentI,jalview.datamodel.ColumnSelection,jalview.datamodel.SequenceGroup,~B,~B,~B");
1924 m(c$,function(a){if(!a.isSeqCigarArray())throw Error(jalview.util.MessageManager.getString("error.implementation_error_can_only_make_alignmnet_from_cigararray"));this.contigs=a.getDeletedRegions();this.sequences=a.getSeqCigarArray();this.width=a.getWidth()},"jalview.datamodel.CigarArray");m(c$,function(a,b){this.construct(a);this.firstCol=b},"jalview.datamodel.CigarArray,~N");d(c$,"setSequences",function(a){this.sequences=a},"~A");d(c$,"setContigs",function(a){this.contigs=a},"~A");d(c$,"getSequences",
1925 function(){return this.sequences});d(c$,"getContigs",function(){return this.contigs});d(c$,"getAlignmentAndColumnSelection",function(a){var b=new jalview.datamodel.ColumnSelection;return E(-1,[jalview.datamodel.SeqCigar.createAlignmentSequences(this.sequences,a,b,this.contigs),b])},"~S");d(c$,"getVisibleAlignment",function(a){a=this.getVisibleSeqs(a);a=new jalview.datamodel.Alignment(a);this.addPrunedGroupsInOrder(a,-1,-1,!0);return a},"~S");d(c$,"addPrunedGroupsInOrder",function(a,b,c,f){var d=!1;
1926 -1<b&&b<=c&&(d=!0);var e=a.getSequencesArray(),g=null!=this.scGroups?this.scGroups.size():0;if(0<g){for(var h=Array(g),j=0;j<g;j++){var n=this.scGroups.get(j).sg;d&&(n.getStartRes()>c||n.getEndRes()<b)?h[j]=null:(h[j]=new jalview.datamodel.SequenceGroup(n),d&&!f&&(h[j].getStartRes()<b?h[j].setStartRes(0):(h[j].setStartRes(h[j].getStartRes()-b),h[j].setEndRes(h[j].getEndRes()-b)),h[j].getEndRes()>c-b&&h[j].setEndRes(c-b)))}if(f&&null!=this.contigs){j=0;f=new jalview.util.ShiftList;d&&f.addShift(b,
1927 -b);for(n=0;n<this.contigs.length;n+=3)f.addShift(j+this.contigs[n+1],this.contigs[n+2]-this.contigs[n+1]),j=this.contigs[n+1]+this.contigs[n+2];for(j=0;j<h.length;j++)if(null!=h[j]){var n=h[j].getStartRes(),x=h[j].getEndRes();d&&(n<b&&(n=b),x>c&&(x=c));n=f.shift(n);x=f.shift(x);h[j].setStartRes(n);h[j].setEndRes(x)}}for(b=0;b<e.length;b++)for(j=0;j<g;j++)null!=h[j]&&this.sequences[b].isMemberOf(this.scGroups.get(j))&&h[j].addSequence(e[b],!1);for(j=0;j<g;j++)null!=h[j]&&0<h[j].getSize()&&a.addGroup(h[j]),
1928 h[j]=null}},"jalview.datamodel.AlignmentI,~N,~N,~B");d(c$,"getVisibleSeqs",function(){for(var a=Array(this.sequences.length),b=0,c=this.sequences.length;b<c;b++)a[b]=this.sequences[b].getSeq("-");for(var f=this.getSequenceStrings("-"),b=0,c=a.length;b<c;b++)a[b].setSequence(f[b]);return a},"~S");d(c$,"getVisibleContigAlignments",function(a){var b=0,c=this.getVisibleContigs();a=this.getVisibleContigs(a);for(var f=Array(a.length),b=0;b<a.length;b++)f[b]=new jalview.datamodel.Alignment(a[b]),null!=this.scGroups&&
1929 0<this.scGroups.size()&&this.addPrunedGroupsInOrder(f[b],c[2*b],c[2*b+1],!0);return f},"~S");d(c$,"getSequenceStrings",function(a){for(var b=Array(this.sequences.length),c=0;c<this.sequences.length;c++){var f=this.sequences[c].getSequenceString(a);if(null!=this.contigs){b[c]="";for(var d=0,e=0;e<this.contigs.length;e+=3)b[c]+=f.substring(d,this.contigs[e+1]),d=this.contigs[e+1]+this.contigs[e+2];b[c]+=f.substring(d)}else b[c]=f}return b},"~S");d(c$,"getWidth",function(){return this.width});d(c$,"setWidth",
1930 function(a){this.width=a},"~N");d(c$,"getVisibleContigs",function(a){var b;b=1;if(null==this.sequences||0>=this.width)return null;if(null!=this.contigs&&0<this.contigs.length){var c=0;b=0;for(var f=this.width,d=0;d<this.contigs.length;d+=3)0<this.contigs[d+1]-c&&b++,f+=this.contigs[d+2],c=this.contigs[d+1]+this.contigs[d+2];c<f&&b++;b=Array(b);for(var e=c=0,d=0;d<this.contigs.length;d+=3){if(0<this.contigs[d+1]-c){for(var g=Array(this.sequences.length),h=0;h<g.length;h++)g[h]=this.sequences[h].getSeq(a).getSubSequence(c,
1931 this.contigs[d+1]);b[e]=g;e++}c=this.contigs[d+1]+this.contigs[d+2]}if(c<f){g=Array(this.sequences.length);for(h=0;h<g.length;h++)g[h]=this.sequences[h].getSeq(a).getSubSequence(c,f+1);b[e]=g}}else{b=Array(1);b[0]=Array(this.sequences.length);for(h=0;h<this.sequences.length;h++)b[0][h]=this.sequences[h].getSeq(a)}return b},"~S");d(c$,"getUpdatedView",function(a,b,c){if(null==this.sequences||0>=this.width)throw Error(jalview.util.MessageManager.getString("error.empty_view_cannot_be_updated"));if(null==
1932 a)throw Error("nvismsa==null. use getAlignmentAndColumnSelection() instead.");if(null!=this.contigs&&0<this.contigs.length){var f=Array(this.sequences.length),d=new jalview.datamodel.ColumnSelection;if(null!=this.contigs&&0<this.contigs.length){for(var e=0,g=0,h=this.width,j=0,n=0;n<this.contigs.length;n+=3){h+=this.contigs[n+2];if(0<this.contigs[n+1]-e){var x=0;if(null!=a[j]){var e=a[j],u=null==b?null:b[j];j++;if(e.length!=this.sequences.length)throw Error(jalview.util.MessageManager.formatMessage("error.mismatch_between_number_of_sequences_in_block",
1933 E(-1,[Integer.$valueOf(j).toString(),Integer.$valueOf(e.length).toString(),Integer.$valueOf(this.sequences.length).toString()])));for(var x=e[0].getLength(),m=0;m<e.length;m++)null==f[m]?f[m]=e[m]:(f[m].setSequence(f[m].getSequenceAsString()+e[m].getSequenceAsString()),e[m].getStart()<=e[m].getEnd()&&f[m].setEnd(e[m].getEnd()),null!=u&&u.updateSequence(e[m],f[m]))}else{for(m=0;m<this.sequences.length;m++)u=this.sequences[m].getSeq(c).getSubSequence(e,this.contigs[n+1]),x<u.getLength()&&(x=u.getLength()),
1934 null==f[m]?f[m]=u:(f[m].setSequence(f[m].getSequenceAsString()+u.getSequenceAsString()),u.getEnd()>=u.getStart()&&f[m].setEnd(u.getEnd()));j++}g+=x}e=this.contigs[n+1]+this.contigs[n+2];for(m=0;m<this.sequences.length;m++)x=this.sequences[m].getSeq(c).getSubSequence(this.contigs[n+1],e),null==f[m]?f[m]=x:(f[m].setSequence(f[m].getSequenceAsString()+x.getSequenceAsString()),x.getEnd()>=x.getStart()&&f[m].setEnd(x.getEnd()));d.hideColumns(g,g+this.contigs[n+2]-1);g+=this.contigs[n+2]}if(j<a.length)if(x=
1935 0,null!=a[j]){e=a[j];u=null!=b?b[j]:null;e[0].getLength();for(m=0;m<e.length;m++)null==f[m]?f[m]=e[m]:(f[m].setSequence(f[m].getSequenceAsString()+e[m].getSequenceAsString()),e[m].getEnd()>=e[m].getStart()&&f[m].setEnd(e[m].getEnd()),null!=u&&u.updateSequence(e[m],f[m]))}else if(e<h)for(m=0;m<this.sequences.length;m++)u=this.sequences[m].getSeq(c).getSubSequence(e,h+1),x<u.getLength()&&(x=u.getLength()),null==f[m]?f[m]=u:(f[m].setSequence(f[m].getSequenceAsString()+u.getSequenceAsString()),u.getEnd()>=
1936 u.getStart()&&f[m].setEnd(u.getEnd()))}return E(-1,[f,d])}if(1!=a.length)throw Error(jalview.util.MessageManager.formatMessage("error.mismatch_between_visible_blocks_to_update_and_number_of_contigs_in_view",E(-1,[Integer.$valueOf(a.length).toString()])));return null!=a[0]?E(-1,[a[0],new jalview.datamodel.ColumnSelection]):this.getAlignmentAndColumnSelection(c)},"~A,~A,~S");d(c$,"getVisibleContigs",function(){if(null!=this.contigs&&0<this.contigs.length){for(var a=0,b=0,c=this.width,f=0;f<this.contigs.length;f+=
1937 3)0<this.contigs[f+1]-a&&b++,c+=this.contigs[f+2],a=this.contigs[f+1]+this.contigs[f+2];a<c&&b++;for(var d=w(2*b,0),f=a=b=0;f<this.contigs.length;f+=3)0<this.contigs[f+1]-a&&(d[b]=a,d[b+1]=this.contigs[f+1]-1,b+=2),a=this.contigs[f+1]+this.contigs[f+2];a<c&&(d[b]=a,d[b+1]=c);return d}return w(-1,[0,this.width])});d(c$,"getAlignmentOrigin",function(){return this.firstCol});d(c$,"getVisibleContigMapFor",function(a){var b=null,c=this.getVisibleContigs(),f=0,d=0;if(null!=c){for(var b=w(a.length,0),e=
1938 0;e<c.length;e+=2){for(;f<a.length&&a[f]<c[e];)f++;for(;f<a.length&&a[f]<=c[e+1];)b[d++]=f++}a=w(d,0);System.arraycopy(b,0,a,0,d);b=a}return b},"~A");d(c$,"getEditedSequences",function(a,b){for(var c=this.getSequences(),f=Array(c.length),d=0,e=c.length;d<e;d++)f[d]=c[d].getSeq(a);if(b){c=this.getSequenceStrings(a);for(d=0;d<c.length;d++)f[d].setSequence(c[d]),c[d]=null}return f},"~S,~B");c$.summariseAlignmentView=d(c$,"summariseAlignmentView",function(a,b){b.print("View has "+a.sequences.length+" of which ");
1939 null==a.selected?b.print("None"):b.print(" "+a.selected.size());b.println(" are selected.");b.print("View is "+a.getWidth()+" columns wide");var c=0,f=a.getContigs();if(null!=f){for(var c=a.width,d=0;d<f.length;d+=3)c+=f[d+2];b.println("with "+c+" visible columns spread over "+F(f.length/3)+" regions.")}else b.println(".");if(null!=a.scGroups){b.println("There are "+a.scGroups.size()+" groups defined on the view.");for(d=0;d<a.scGroups.size();d++){c=a.scGroups.get(d);b.println("Group "+d+": Name = "+
1940 c.sg.getName()+" Contains "+c.seqs.size()+" Seqs.");b.println("This group runs from "+c.sg.getStartRes()+" to "+c.sg.getEndRes());for(f=0;f<c.seqs.size();f++)c.seqs.elementAt(f).isMemberOf(c)||b.println("** WARNING: sequence "+c.seqs.elementAt(f).toString()+" is not marked as member of group.")}c=a.getVisibleAlignment("-");if(null!=c&&(b.println("Vis. alignment is "+c.getWidth()+" wide and has "+c.getHeight()+" seqs."),null!=c.getGroups()&&0<c.getGroups().size()))for(var d=1,e,c=c.getGroups().iterator();c.hasNext()&&
1941 ((e=c.next())||1);)b.println("Group "+d++ +" begins at column "+e.getStartRes()+" and ends at "+e.getEndRes())}},"jalview.datamodel.AlignmentView,java.io.PrintStream");c$.testSelectionViews=d(c$,"testSelectionViews",function(a,b,c){System.out.println("Testing standard view creation:\n");var f=null;try{System.out.println("View with no hidden columns, no limit to selection, no groups to be collected:"),f=new jalview.datamodel.AlignmentView(a,b,c,!1,!1,!1),jalview.datamodel.AlignmentView.summariseAlignmentView(f,
1942 System.out)}catch(d){if(y(d,Exception))d.printStackTrace(),System.err.println("Failed to generate alignment with selection but no groups marked.");else throw d;}try{System.out.println("View with no hidden columns, no limit to selection, and all groups to be collected:"),f=new jalview.datamodel.AlignmentView(a,b,c,!1,!1,!0),jalview.datamodel.AlignmentView.summariseAlignmentView(f,System.out)}catch(e){if(y(e,Exception))e.printStackTrace(),System.err.println("Failed to generate alignment with selection marked but no groups marked.");
1943 else throw e;}try{System.out.println("View with no hidden columns, limited to selection and no groups to be collected:"),f=new jalview.datamodel.AlignmentView(a,b,c,!1,!0,!1),jalview.datamodel.AlignmentView.summariseAlignmentView(f,System.out)}catch(g){if(y(g,Exception))g.printStackTrace(),System.err.println("Failed to generate alignment with selection restricted but no groups marked.");else throw g;}try{System.out.println("View with no hidden columns, limited to selection, and all groups to be collected:"),
1944 f=new jalview.datamodel.AlignmentView(a,b,c,!1,!0,!0),jalview.datamodel.AlignmentView.summariseAlignmentView(f,System.out)}catch(h){if(y(h,Exception))h.printStackTrace(),System.err.println("Failed to generate alignment with selection restricted and groups marked.");else throw h;}try{System.out.println("View *with* hidden columns, no limit to selection, no groups to be collected:"),f=new jalview.datamodel.AlignmentView(a,b,c,!0,!1,!1),jalview.datamodel.AlignmentView.summariseAlignmentView(f,System.out)}catch(j){if(y(j,
1945 Exception))j.printStackTrace(),System.err.println("Failed to generate alignment with selection but no groups marked.");else throw j;}try{System.out.println("View *with* hidden columns, no limit to selection, and all groups to be collected:"),f=new jalview.datamodel.AlignmentView(a,b,c,!0,!1,!0),jalview.datamodel.AlignmentView.summariseAlignmentView(f,System.out)}catch(n){if(y(n,Exception))n.printStackTrace(),System.err.println("Failed to generate alignment with selection marked but no groups marked.");
1946 else throw n;}try{System.out.println("View *with* hidden columns, limited to selection and no groups to be collected:"),f=new jalview.datamodel.AlignmentView(a,b,c,!0,!0,!1),jalview.datamodel.AlignmentView.summariseAlignmentView(f,System.out)}catch(m){if(y(m,Exception))m.printStackTrace(),System.err.println("Failed to generate alignment with selection restricted but no groups marked.");else throw m;}try{System.out.println("View *with* hidden columns, limited to selection, and all groups to be collected:"),
1947 f=new jalview.datamodel.AlignmentView(a,b,c,!0,!0,!0),jalview.datamodel.AlignmentView.summariseAlignmentView(f,System.out)}catch(u){if(y(u,Exception))u.printStackTrace(),System.err.println("Failed to generate alignment with selection restricted and groups marked.");else throw u;}},"jalview.datamodel.AlignmentI,jalview.datamodel.ColumnSelection,jalview.datamodel.SequenceGroup");c$.$AlignmentView$ScGroup$=function(){A(self.c$);c$=s(function(){O(this,arguments);this.sg=this.seqs=null;r(this,arguments)},
1948 jalview.datamodel.AlignmentView,"ScGroup");m(c$,function(){this.seqs=new java.util.Vector});c$=z()}});p("jalview.schemes");q(["jalview.schemes.ResidueColourScheme"],"jalview.schemes.Blosum62ColourScheme",["jalview.schemes.ResidueProperties","jalview.util.Comparison","java.awt.Color"],function(){c$=B(jalview.schemes,"Blosum62ColourScheme",jalview.schemes.ResidueColourScheme);e(c$,"findColourSeq",function(a,b){"a"<=a&&"z">=a&&(a=String.fromCharCode(a.charCodeAt(0)-32));if(null==this.consensus||b>=this.consensus.length||
1949 null==this.consensus[b]||0!=this.threshold&&!this.aboveThreshold(a,b))return java.awt.Color.white;var c;if(jalview.util.Comparison.isGap(a))return java.awt.Color.white;c=this.consensus[b].get("R");if(-1<c.indexOf(a))c=new java.awt.Color(154,154,255);else{var f=0,d=0,e=c.length;do f+=jalview.schemes.ResidueProperties.getBLOSUM62(c.charAt(d),a);while(++d<e);c=0<f?new java.awt.Color(204,204,255):java.awt.Color.white}this.conservationColouring&&(c=this.applyConservation(c,b));return c},"~S,~N,jalview.datamodel.SequenceI");
1950 d(c$,"applyTo",function(a,b){return K(this,jalview.schemes.Blosum62ColourScheme,"applyTo",[a,b])},"jalview.datamodel.AnnotatedCollectionI,java.util.Map")});p("jalview.schemes");q(["jalview.schemes.ColourSchemeI"],"jalview.schemes.ResidueColourScheme",["jalview.util.Comparison","$.MessageManager","java.awt.Color","java.lang.Error"],function(){c$=s(function(){this.symbolIndex=null;this.conservationColouring=!1;this.colors=null;this.threshold=0;this.ignoreGaps="G";this.conservation=this.consensus=null;
1951 this.conservationLength=0;this.inc=30;r(this,arguments)},jalview.schemes,"ResidueColourScheme",null,jalview.schemes.ColourSchemeI);m(c$,function(a,b,c){this.symbolIndex=a;this.colors=b;this.threshold=c},"~A,~A,~N");m(c$,function(a){this.symbolIndex=a},"~A");m(c$,function(){this.symbolIndex=null});e(c$,"findColour",function(a){return null==this.colors?java.awt.Color.white:this.colors[this.symbolIndex[a.charCodeAt(0)]]},"~S");e(c$,"findColourSeq",function(a,b){var c;c=null!=this.colors&&null!=this.symbolIndex&&
1952 0==this.threshold||this.aboveThreshold(a,b)?this.colors[this.symbolIndex[a.charCodeAt(0)]]:java.awt.Color.white;this.conservationColouring&&(c=this.applyConservation(c,b));return c},"~S,~N,jalview.datamodel.SequenceI");e(c$,"getThreshold",function(){return this.threshold});e(c$,"setThreshold",function(a,b){this.threshold=a;this.ignoreGaps=b?"N":"G"},"~N,~B");d(c$,"aboveThreshold",function(a,b){"a"<=a&&"z">=a&&(a=String.fromCharCode(a.charCodeAt(0)-32));return null==this.consensus||this.consensus.length<
1953 b||null==this.consensus[b]?!1:-1!=this.consensus[b].get("C").intValue()&&this.consensus[b].contains(String.valueOf(a))&&this.consensus[b].get(this.ignoreGaps).floatValue()>=this.threshold?!0:!1},"~S,~N");e(c$,"conservationApplied",function(){return this.conservationColouring});e(c$,"setConservationApplied",function(a){this.conservationColouring=a},"~B");e(c$,"setConservationInc",function(a){this.inc=a},"~N");e(c$,"getConservationInc",function(){return this.inc});e(c$,"setConsensus",function(a){null!=
1954 a&&(this.consensus=a)},"~A");e(c$,"setConservation",function(a){if(null==a)this.conservationColouring=!1,this.conservation=null;else{this.conservationColouring=!0;var b,c=a.getConsSequence().getLength();this.conservation=N(c,"\x00");for(b=0;b<c;b++)this.conservation[b]=a.getConsSequence().getCharAt(b);this.conservationLength=this.conservation.length}},"jalview.analysis.Conservation");d(c$,"applyConservation",function(a,b){if(this.conservationLength>b&&"*"!=this.conservation[b]&&"+"!=this.conservation[b])if(jalview.util.Comparison.isGap(this.conservation[b]))a=
1955 java.awt.Color.white;else{var c=11-(this.conservation[b].charCodeAt(0)-48);if(0==c)return java.awt.Color.white;var f=a.getRed(),d=a.getGreen(),e=a.getBlue(),g,h;g=(255-f)*(c/10);h=(255-d)*(c/10);c=(255-e)*(c/10);f+=this.inc/20*g;d+=this.inc/20*h;e+=this.inc/20*c;a=255<f||255<d||255<e?java.awt.Color.white:new java.awt.Color(f,d,e)}return a},"java.awt.Color,~N");e(c$,"alignmentChanged",function(){},"jalview.datamodel.AnnotatedCollectionI,java.util.Map");e(c$,"applyTo",function(){try{return this.getClass().newInstance()}catch(a){if(y(a,
1956 Exception))throw Error(jalview.util.MessageManager.formatMessage("error.implementation_error_cannot_duplicate_colour_scheme",E(-1,[this.getClass().getName()])),a);throw a;}},"jalview.datamodel.AnnotatedCollectionI,java.util.Map")});p("jalview.schemes");M(jalview.schemes,"ColourSchemeI");p("jalview.schemes");q(["jalview.schemes.ResidueColourScheme"],"jalview.schemes.PIDColourScheme",["jalview.schemes.ResidueProperties","jalview.util.Comparison","java.awt.Color"],function(){c$=s(function(){this.group=
1957 this.thresholds=this.pidColours=null;r(this,arguments)},jalview.schemes,"PIDColourScheme",jalview.schemes.ResidueColourScheme);m(c$,function(){t(this,jalview.schemes.PIDColourScheme,[]);this.pidColours=jalview.schemes.ResidueProperties.pidColours;this.thresholds=jalview.schemes.ResidueProperties.pidThresholds});e(c$,"findColourSeq",function(a,b){"a"<=a&&"z">=a&&(a=String.fromCharCode(a.charCodeAt(0)-32));if(null==this.consensus||(b>=this.consensus.length||null==this.consensus[b])||0!=this.threshold&&
1958 !this.aboveThreshold(a,b))return java.awt.Color.white;var c=java.awt.Color.white,f=0;if(this.consensus.length<=b)return java.awt.Color.white;if(-1!=Integer.parseInt(this.consensus[b].get("C").toString())&&this.consensus[b].contains(String.valueOf(a))&&(f=this.consensus[b].get(this.ignoreGaps).floatValue(),!jalview.util.Comparison.isGap(a)))for(var d=0;d<this.thresholds.length;d++)if(f>this.thresholds[d]){c=this.pidColours[d];break}this.conservationColouring&&(c=this.applyConservation(c,b));return c},
1959 "~S,~N,jalview.datamodel.SequenceI")});p("jalview.workers");q(["jalview.workers.ConsensusThread"],"jalview.workers.ComplementConsensusThread",["jalview.analysis.AAFrequency"],function(){c$=s(function(){this.mappings=null;r(this,arguments)},jalview.workers,"ComplementConsensusThread",jalview.workers.ConsensusThread);e(c$,"getNewWorker",function(){return new jalview.workers.ComplementConsensusThread(this.alignViewport,this.ap)});e(c$,"getConsensusAnnotation",function(){return this.alignViewport.getComplementConsensusAnnotation()});
1960 e(c$,"getViewportConsensus",function(){return this.alignViewport.getComplementConsensusHash()});d(c$,"initializeCalc",function(){this.mappings=this.alignment.getCodonFrames();return null!=this.mappings&&!this.mappings.isEmpty()&&K(this,jalview.workers.ComplementConsensusThread,"initializeCalc",[])});e(c$,"computeConsensus",function(){for(var a=0;3>a;a++)try{jalview.analysis.AAFrequency.calculateCdna(this.alignment,this.mappings,this.hconsensus,this.iFirst,this.iLast);break}catch(b){if(!y(b,java.util.ConcurrentModificationException))throw b;
1961 }});e(c$,"finalizeCalc",function(){this.alignViewport.setComplementConsensusHash(this.hconsensus)});e(c$,"deriveConsensus",function(a,b){jalview.analysis.AAFrequency.completeCdnaConsensus(a,b,this.alignViewport.isShowSequenceLogo(),this.getSequences().length)},"jalview.datamodel.AlignmentAnnotation,~A")});p("jalview.workers");q(["jalview.api.AlignCalcWorkerI","jalview.workers.AlignCalcWorker"],"jalview.workers.ConsensusThread",["jalview.analysis.AAFrequency"],function(){c$=s(function(){this.aseqs=
1962 this.hconsensus=null;r(this,arguments)},jalview.workers,"ConsensusThread",jalview.workers.AlignCalcWorker,jalview.api.AlignCalcWorkerI);e(c$,"getNewWorker",function(){return new jalview.workers.ConsensusThread(this.alignViewport,this.ap)});e(c$,"run1",function(a){for(;!Thread.interrupted();){if(this.alignViewport.isClosed()){this.abortAndDestroy();break}try{switch(a){case 0:if(this.calcMan.isPending(this))return;this.calcMan.notifyStart(this);if(null==this.getConsensusAnnotation()||this.calcMan.isPending(this)){this.calcMan.workerComplete(this);
1963 return}a=3;break;case 3:for(;!this.calcMan.notifyWorking(this);){null!=this.ap&&this.ap.paintAlignment(!1);try{if(this.sleepAndReturn(200,a))return}catch(b){if(y(b,InterruptedException)){a=2;break}else throw b;}}if(this.alignViewport.isClosed()){this.abortAndDestroy();a=2;break}this.alignment=this.alignViewport.getAlignment();this.aWidth=-1;if(null==this.alignment||0>(this.aWidth=this.alignment.getWidth()))a=2;this.eraseConsensus(this.aWidth);a=this.initializeCalc()?4:2;break;case 4:this.iFirst=this.iLast;
1964 this.iLast=Math.min(this.iLast+this.nPer,this.aWidth);if(this.iLast==this.iFirst)a=2;else if(this.computeConsensus(),this.sleepAndReturn(0,a))return;break;case 2:this.finalizeCalc();this.updateAlignment();this.notifyDone();return}}catch(c){if(y(c,OutOfMemoryError)){var f=c;this.calcMan.workerCannotRun(this);this.ap.raiseOOMWarning("calculating consensus",f)}else f=c,System.out.println("Error in ConsensusThread: "+f),f.printStackTrace(),this.calcMan.workerComplete(this)}}},"~N");d(c$,"initializeCalc",
1965 function(){this.iLast=0;this.hconsensus=Array(this.aWidth);this.aseqs=this.getSequences();return!0});d(c$,"computeConsensus",function(){this.started=System.currentTimeMillis();jalview.analysis.AAFrequency.calculate(this.aseqs,this.iFirst,this.iLast,this.hconsensus,!0);500>System.currentTimeMillis()-this.started&&(this.nPer*=2)});d(c$,"finalizeCalc",function(){this.alignViewport.setSequenceConsensusHash(this.hconsensus)});d(c$,"updateAlignment",function(){this.setColourSchemeConsensus(this.hconsensus);
1966 this.updateResultAnnotation(!0)});d(c$,"eraseConsensus",function(a){this.getConsensusAnnotation().annotations=Array(a)},"~N");d(c$,"getSequences",function(){return this.alignViewport.getAlignment().getSequencesArray()});d(c$,"setColourSchemeConsensus",function(a){var b=this.alignViewport.getGlobalColourScheme();null!=b&&b.setConsensus(a)},"~A");d(c$,"getConsensusAnnotation",function(){return this.alignViewport.getAlignmentConsensusAnnotation()});e(c$,"updateAnnotation",function(){this.updateResultAnnotation(!1)});
1967 d(c$,"updateResultAnnotation",function(a){var b=this.getConsensusAnnotation(),c=this.getViewportConsensus();(a||!this.calcMan.isWorking(this)&&null!=b&&null!=c)&&this.deriveConsensus(b,c)},"~B");d(c$,"deriveConsensus",function(a,b){var c=this.getSequences().length;jalview.analysis.AAFrequency.completeConsensus(a,b,0,b.length,this.alignViewport.isIgnoreGapsConsensus(),this.alignViewport.isShowSequenceLogo(),c)},"jalview.datamodel.AlignmentAnnotation,~A");d(c$,"getViewportConsensus",function(){return this.alignViewport.getSequenceConsensusHash()})});
1968 p("jalview.api");M(jalview.api,"AlignCalcWorkerI",Runnable);p("jalview.workers");q(["jalview.api.AlignCalcWorkerI","swingjs.JSThread"],"jalview.workers.AlignCalcWorker",null,function(){c$=s(function(){this.iLast=this.iFirst=0;this.nPer=2;this.started=0;this.alignment=null;this.aWidth=0;this.ourAnnots=this.ap=this.calcMan=this.alignViewport=null;r(this,arguments)},jalview.workers,"AlignCalcWorker",swingjs.JSThread,jalview.api.AlignCalcWorkerI);m(c$,function(a,b){t(this,jalview.workers.AlignCalcWorker,
1969 [null,"AlignCalcWorker"]);this.alignViewport=a;this.calcMan=a.getCalcManager();this.ap=b},"jalview.api.AlignViewportI,jalview.api.AlignmentViewPanel");d(c$,"abortAndDestroy",function(){null!=this.calcMan&&this.calcMan.workerComplete(this);this.ap=this.calcMan=this.alignViewport=null});e(c$,"involves",function(a){return null!=this.ourAnnots&&this.ourAnnots.contains(a)},"jalview.datamodel.AlignmentAnnotation");e(c$,"removeOurAnnotation",function(){if(null!=this.ourAnnots&&null!=this.alignViewport)for(var a=
1970 this.alignViewport.getAlignment(),b,c=this.ourAnnots.iterator();c.hasNext()&&((b=c.next())||1);)a.deleteAnnotation(b,!0)});d(c$,"notifyDone",function(){null!=this.ap&&this.ap.paintAlignment(!0);this.calcMan.workerComplete(this)});G(c$,"LOOP_STANDBY",3,"LOOP_CALCULATE",4,"MS_MAX",500)});p("jalview.workers");q(["jalview.api.AlignCalcWorkerI","jalview.workers.AlignCalcWorker"],"jalview.workers.ConservationThread",["jalview.analysis.Conservation","jalview.schemes.ResidueProperties","java.util.ArrayList"],
1971 function(){c$=s(function(){this.ConsPercGaps=25;this.quality=this.conservation=this.cons=null;r(this,arguments)},jalview.workers,"ConservationThread",jalview.workers.AlignCalcWorker,jalview.api.AlignCalcWorkerI);e(c$,"getNewWorker",function(){return new jalview.workers.ConservationThread(this.alignViewport,this.ap)});m(c$,function(a,b){t(this,jalview.workers.ConservationThread,[a,b]);this.ConsPercGaps=a.getConsPercGaps()},"jalview.api.AlignViewportI,jalview.api.AlignmentViewPanel");e(c$,"run1",function(a){for(;!Thread.interrupted();)try{switch(a){case 0:if(this.calcMan.isPending(this))return;
1972 this.calcMan.notifyStart(this);a=3;break;case 3:for(;!this.calcMan.notifyWorking(this);){null!=this.ap&&this.ap.paintAlignment(!1);try{if(this.sleepAndReturn(200,a))return}catch(b){if(y(b,InterruptedException)){a=2;break}else throw b;}}if(this.alignViewport.isClosed()){this.abortAndDestroy();a=2;break}var c=new java.util.ArrayList;this.alignment=this.alignViewport.getAlignment();this.conservation=this.alignViewport.getAlignmentConservationAnnotation();this.quality=this.alignViewport.getAlignmentQualityAnnot();
1973 c.add(this.conservation);c.add(this.quality);this.ourAnnots=c;this.ConsPercGaps=this.alignViewport.getConsPercGaps();if(null==this.alignment||0>(this.aWidth=this.alignment.getWidth())){this.calcMan.workerComplete(this);return}a=4;break;case 4:this.iFirst=this.iLast;this.nPer=this.aWidth+1;this.iLast=Math.min(this.iLast+this.nPer,this.aWidth);if(this.iLast==this.iFirst)a=2;else if(this.computeConsensus(),this.sleepAndReturn(0,a))return;break;case 2:this.updateResultAnnotation(!0);this.notifyDone();
1974 return}}catch(f){if(y(f,OutOfMemoryError)){var d=f;this.calcMan.workerCannotRun(this);this.ap.raiseOOMWarning("calculating conservation",d)}else d=f,System.out.println("Error in ConsensusThread: "+d),d.printStackTrace(),this.calcMan.workerComplete(this)}},"~N");d(c$,"computeConsensus",function(){this.cons=jalview.analysis.Conservation.calculateConservation("All",jalview.schemes.ResidueProperties.propHash,3,this.alignment.getSequences(),0,this.aWidth-1,!1,this.ConsPercGaps,null!=this.quality)});d(c$,
1975 "updateResultAnnotation",function(a){if(a||!this.calcMan.isWorking(this)&&null!=this.cons&&null!=this.conservation&&null!=this.quality)this.alignViewport.setConservation(this.cons),this.cons.completeAnnotations(this.conservation,this.quality,0,this.aWidth)},"~B");e(c$,"updateAnnotation",function(){this.updateResultAnnotation(!1)})});p("jalview.workers");q(["jalview.api.AlignCalcWorkerI","jalview.workers.AlignCalcWorker"],"jalview.workers.StrucConsensusThread",["jalview.analysis.StructureFrequency"],
1976 function(){c$=s(function(){this.hStrucConsensus=this.strucConsensus=this.rnaStruc=null;this.nseq=-1;this.arr=this.aa=null;r(this,arguments)},jalview.workers,"StrucConsensusThread",jalview.workers.AlignCalcWorker,jalview.api.AlignCalcWorkerI);e(c$,"getNewWorker",function(){return new jalview.workers.StrucConsensusThread(this.alignViewport,this.ap)});e(c$,"run1",function(a){if(this.alignViewport.isClosed())this.abortAndDestroy();else for(;!Thread.interrupted();)try{switch(a){case 0:if(this.calcMan.isPending(this))return;
1977 this.calcMan.notifyStart(this);a=3;break;case 3:for(;!this.calcMan.notifyWorking(this);){null!=this.ap&&this.ap.paintAlignment(!1);try{if(this.sleepAndReturn(200,a))return}catch(b){if(y(b,InterruptedException)){a=2;break}else throw b;}}if(this.alignViewport.isClosed()){this.abortAndDestroy();a=2;break}this.alignment=this.alignViewport.getAlignment();this.aWidth=-1;if(null==this.alignment||0>(this.aWidth=this.alignment.getWidth()))a=2;this.strucConsensus=this.alignViewport.getAlignmentStrucConsensusAnnotation();
1978 this.hStrucConsensus=this.alignViewport.getRnaStructureConsensusHash();this.strucConsensus.annotations=null;this.strucConsensus.annotations=Array(this.aWidth);this.hStrucConsensus=Array(this.aWidth);this.aa=this.alignViewport.getAlignment().getAlignmentAnnotation();for(var c=0;c<this.aa.length;c++)if(null!=this.aa[c].getRNAStruc()&&this.aa[c].isValidStruc()){this.rnaStruc=this.aa[c];break}if(null==this.rnaStruc||!this.rnaStruc.isValidStruc()){this.calcMan.workerComplete(this);return}this.arr=this.alignment.getSequencesArray();
1979 this.nseq=this.arr.length;a=4;break;case 4:this.iFirst=this.iLast;this.iLast=Math.min(this.iLast+this.nPer,this.aWidth);if(this.iLast==this.iFirst)a=2;else if(jalview.analysis.StructureFrequency.calculate(this.arr,0,this.alignment.getWidth(),this.hStrucConsensus,!0,this.rnaStruc),this.sleepAndReturn(0,a))return;break;case 2:this.alignViewport.setRnaStructureConsensusHash(this.hStrucConsensus);this.updateResultAnnotation(!0);null!=this.alignViewport.getGlobalColourScheme()&&this.alignViewport.getGlobalColourScheme().setConsensus(this.hStrucConsensus);
1980 this.notifyDone();return}}catch(f){y(f,OutOfMemoryError)?(c=f,this.calcMan.workerCannotRun(this),this.ap.raiseOOMWarning("calculating RNA structure consensus",c)):(c=f,System.out.println("Error in ConsensusThread: "+c),c.printStackTrace(),this.calcMan.workerComplete(this))}},"~N");e(c$,"updateAnnotation",function(){this.updateResultAnnotation(!1)});d(c$,"updateResultAnnotation",function(a){(a||!this.calcMan.isWorking(this)&&null!=this.strucConsensus&&null!=this.hStrucConsensus)&&jalview.analysis.StructureFrequency.completeConsensus(this.strucConsensus,
1981 this.hStrucConsensus,0,this.hStrucConsensus.length,this.alignViewport.isIgnoreGapsConsensus(),this.alignViewport.isShowSequenceLogo(),this.nseq)},"~B")});p("jalview.analysis");q(null,"jalview.analysis.StructureFrequency","jalview.datamodel.Annotation jalview.util.Format $.QuickSort java.lang.Float java.util.Hashtable JU.AU".split(" "),function(){c$=B(jalview.analysis,"StructureFrequency");c$.findPair=d(c$,"findPair",function(a,b){for(var c=0;c<a.length;c++)if(a[c].getBegin()==b)return a[c].getEnd();
1982 return-1},"~A,~N");c$.calculate=d(c$,"calculate",function(a,b,c,f,d,e){var g,h=e.getRNAStruc().toCharArray();e=e._rnasecstr;var j,n,m=0,u,p=-1,q,s=a.length,r,t,v=!0;for(u=b;u<c;u++){b=new java.util.Hashtable;g="-";r=w(255,0);t=w(255,255,0);p=-1;j=u<h.length?h[u]:"-";if("."==j||" "==j)j="-";if("("!=j&&"["!=j)"-"==j&&r[45]++;else if(p=jalview.analysis.StructureFrequency.findPair(e,u),-1<p)for(q=0;q<s;q++)if(null==a[q])System.err.println("WARNING: Consensus skipping null sequence - possible race condition.");
1983 else{j=a[q].getCharAt(u);if("."==j||" "==j)j="-";"-"==j?r[45]++:(n=a[q].getCharAt(p),!0==jalview.analysis.StructureFrequency.checkBpType(j,n)&&(r[40]++,g="(",v=!0),!1==jalview.analysis.StructureFrequency.checkBpType(j,n)&&(v=!1,r[91]++,g="["),t[j.charCodeAt(0)][n.charCodeAt(0)]++)}d&&(b.put("P",E(-1,[r,w(-1,[s,s-r[45]])])),b.put("B",t));!0==v&&(m=r[40]);!1==v&&(m=r[91]);b.put("C",new Integer(m));b.put("R",g);j=100*m/s;b.put("G",new Float(j));null==f[u]&&(f[u]=b);0<p&&(r[41]=r[40],r[93]=r[91],r[40]=
1984 0,r[91]=0,b=new java.util.Hashtable,!0==v&&(g=")"),!1==v&&(g="]"),d&&(b.put("P",E(-1,[r,w(-1,[s,s-r[45]])])),b.put("B",t)),b.put("C",new Integer(m)),b.put("R",g),j=100*m/s,b.put("G",new Float(j)),f[p]=b)}},"~A,~N,~N,~A,~B,jalview.datamodel.AlignmentAnnotation");c$.checkBpType=d(c$,"checkBpType",function(a,b){"Z"<a&&(a=String.fromCharCode(a.charCodeAt(0)-32));"Z"<b&&(b=String.fromCharCode(b.charCodeAt(0)-32));switch(a){case "A":switch(b){case "T":return!0;case "U":return!0}break;case "C":switch(b){case "G":return!0}break;
1985 case "T":switch(b){case "A":return!0;case "G":return!0}break;case "G":switch(b){case "C":return!0;case "T":return!0;case "U":return!0}break;case "U":switch(b){case "A":return!0;case "G":return!0}}return!1},"~S,~S");c$.completeConsensus=d(c$,"completeConsensus",function(a,b,c,f,d,e,g){var h,j;if(!(null==a||null==a.annotations||a.annotations.length<f)){j="%3.1f";for(var n=2;100<g;)n++,g/=10;2<n&&(j="%"+(2+n)+"."+n+"f");for(g=new jalview.util.Format(j);c<f;c++){var m;if(c>=b.length||null==(m=b[c]))a.annotations[c]=
1986 null;else if(j=d?m.get("N"):m.get("G"),null==j)a.annotations[c]=null;else{j=j.floatValue();var n=m.get("R").toString(),u=m.get("R")+" ";1<n.length&&(u="["+n+"] ",n="+");h=m.get("P");var p=m.get("B");if(null!=p&&e){for(var u="",q=JU.AU.newInt2(625),s=Q(625,0),r=0,t=65;90>t;t++)for(var v=65;90>v;v++)q[r]=w(-1,[t,v]),s[r]=p[t][v],r++;jalview.util.QuickSort.sortFloatObject(s,q);p=0;r=h[1][d?1:0];for(t=624;0<t;t--)0<s[t]&&(h=100*s[t]/r,u+=(0==p?"":"; ")+String.fromCharCode(q[t][0])+String.fromCharCode(q[t][1])+
1987 " "+g.formDouble(h)+"%",p++)}else u+=g.formDouble(j)+"%";a.annotations[c]=new jalview.datamodel.Annotation(n,u," ",j)}}}},"jalview.datamodel.AlignmentAnnotation,~A,~N,~N,~B,~B,~N");c$.extractProfile=d(c$,"extractProfile",function(a,b){var c=w(74,0),f=a.get("P"),d=a.get("B");if(null==f)return null;for(var e=JU.AU.newInt2(625),g=Q(625,0),h=0,j=65;90>j;j++)for(var n=65;90>n;n++)e[h]=w(-1,[j,n]),g[h]=d[j][n],h++;jalview.util.QuickSort.sortFloatObject(g,e);d=0;c[1]=0;h=2;f=f[1][b?1:0];for(j=624;0<j;j--)0<
1988 g[j]&&(c[h++]=e[j][0],c[h++]=e[j][1],c[h]=I(100*g[j]/f),c[1]+=c[h++],d++);c[0]=d;e=w(c.length+1,0);e[0]=1;System.arraycopy(c,0,e,1,c.length);return e},"java.util.Hashtable,~B");G(c$,"STRUCTURE_PROFILE_LENGTH",74,"MAXCOUNT","C","MAXRESIDUE","R","PID_GAPS","G","PID_NOGAPS","N","PROFILE","P","PAIRPROFILE","B")});p("jalview.schemes");q(null,"jalview.schemes.ColourSchemeProperty","jalview.schemes.Blosum62ColourScheme $.BuriedColourScheme $.ClustalxColourScheme $.HelixColourScheme $.HydrophobicColourScheme $.NucleotideColourScheme $.PIDColourScheme $.PurinePyrimidineColourScheme $.RNAHelicesColour $.StrandColourScheme $.TCoffeeColourScheme $.TaylorColourScheme $.TurnColourScheme $.UserColourScheme $.ZappoColourScheme jalview.util.ColorUtils java.awt.Color".split(" "),
1989 function(){c$=B(jalview.schemes,"ColourSchemeProperty");c$.getColourIndexFromName=d(c$,"getColourIndexFromName",function(a){var b=-1;a.equalsIgnoreCase("Clustal")?b=2:a.equalsIgnoreCase("Blosum62")?b=3:a.equalsIgnoreCase("% Identity")?b=4:a.equalsIgnoreCase("Zappo")?b=5:a.equalsIgnoreCase("Taylor")?b=6:a.equalsIgnoreCase("Hydrophobic")?b=7:a.equalsIgnoreCase("Helix Propensity")?b=8:a.equalsIgnoreCase("Strand Propensity")?b=9:a.equalsIgnoreCase("Turn Propensity")?b=10:a.equalsIgnoreCase("Buried Index")?
1990 b=11:a.equalsIgnoreCase("Nucleotide")?b=12:a.equalsIgnoreCase("T-Coffee Scores")?b=15:a.equalsIgnoreCase("User Defined")?b=0:a.equalsIgnoreCase("None")?b=1:a.equalsIgnoreCase("Purine/Pyrimidine")?b=13:a.equalsIgnoreCase("RNA Interaction type")?b=17:a.equalsIgnoreCase("RNA Helices")&&(b=16);return b},"~S");c$.getColourName=d(c$,"getColourName",function(a){var b=1;if(v(a,jalview.schemes.ClustalxColourScheme))b=2;else if(v(a,jalview.schemes.Blosum62ColourScheme))b=3;else if(v(a,jalview.schemes.PIDColourScheme))b=
1991 4;else if(v(a,jalview.schemes.ZappoColourScheme))b=5;else if(v(a,jalview.schemes.TaylorColourScheme))b=6;else if(v(a,jalview.schemes.HydrophobicColourScheme))b=7;else if(v(a,jalview.schemes.HelixColourScheme))b=8;else if(v(a,jalview.schemes.StrandColourScheme))b=9;else if(v(a,jalview.schemes.TurnColourScheme))b=10;else if(v(a,jalview.schemes.BuriedColourScheme))b=11;else if(v(a,jalview.schemes.NucleotideColourScheme))b=12;else if(v(a,jalview.schemes.PurinePyrimidineColourScheme))b=13;else if(v(a,
1992 jalview.schemes.TCoffeeColourScheme))b=15;else if(v(a,jalview.schemes.RNAHelicesColour))b=16;else if(v(a,jalview.schemes.UserColourScheme)){if(null!=a.getName()&&0<a.getName().length)return a.getName();b=0}return jalview.schemes.ColourSchemeProperty.getColourName(b)},"jalview.schemes.ColourSchemeI");c$.getColourName=d(c$,"getColourName",function(a){var b=null;switch(a){case 2:b="Clustal";break;case 3:b="Blosum62";break;case 4:b="% Identity";break;case 5:b="Zappo";break;case 6:b="Taylor";break;case 7:b=
1993 "Hydrophobic";break;case 8:b="Helix Propensity";break;case 9:b="Strand Propensity";break;case 10:b="Turn Propensity";break;case 11:b="Buried Index";break;case 12:b="Nucleotide";break;case 13:b="Purine/Pyrimidine";break;case 15:b="T-Coffee Scores";break;case 17:b="RNA Interaction type";break;case 16:b="RNA Helices";break;case 0:b="User Defined";break;default:b="None"}return b},"~N");c$.getColour=d(c$,"getColour",function(a,b){if(-1==jalview.schemes.ColourSchemeProperty.getColourIndexFromName(b))if(-1==
1994 b.indexOf("="))try{return new jalview.schemes.UserColourScheme(b)}catch(c){if(!y(c,Exception))throw c;}else try{(new jalview.schemes.UserColourScheme("white")).parseAppletParameter(b)}catch(f){if(!y(f,Exception))throw f;}return jalview.schemes.ColourSchemeProperty.getColour(a,jalview.schemes.ColourSchemeProperty.getColourIndexFromName(b))},"jalview.datamodel.AnnotatedCollectionI,~S");c$.getColour=d(c$,"getColour",function(a,b){var c=null;switch(b){case 2:c=new jalview.schemes.ClustalxColourScheme(a,
1995 null);break;case 3:c=new jalview.schemes.Blosum62ColourScheme;break;case 4:c=new jalview.schemes.PIDColourScheme;break;case 5:c=new jalview.schemes.ZappoColourScheme;break;case 6:c=new jalview.schemes.TaylorColourScheme;break;case 7:c=new jalview.schemes.HydrophobicColourScheme;break;case 8:c=new jalview.schemes.HelixColourScheme;break;case 9:c=new jalview.schemes.StrandColourScheme;break;case 10:c=new jalview.schemes.TurnColourScheme;break;case 11:c=new jalview.schemes.BuriedColourScheme;break;case 12:c=
1996 new jalview.schemes.NucleotideColourScheme;break;case 13:c=new jalview.schemes.PurinePyrimidineColourScheme;break;case 15:c=new jalview.schemes.TCoffeeColourScheme(a);break;case 16:c=new jalview.schemes.RNAHelicesColour(a);break;case 0:for(var c=Array(24),f=0;24>f;f++)c[f]=java.awt.Color.white;c=new jalview.schemes.UserColourScheme(c)}return c},"jalview.datamodel.AnnotatedCollectionI,~N");c$.getAWTColorFromName=d(c$,"getAWTColorFromName",function(a){var b=null;a=a.toLowerCase();a.equals("black")?
1997 b=java.awt.Color.black:a.equals("blue")?b=java.awt.Color.blue:a.equals("cyan")?b=java.awt.Color.cyan:a.equals("darkGray")?b=java.awt.Color.darkGray:a.equals("gray")?b=java.awt.Color.gray:a.equals("green")?b=java.awt.Color.green:a.equals("lightGray")?b=java.awt.Color.lightGray:a.equals("magenta")?b=java.awt.Color.magenta:a.equals("orange")?b=java.awt.Color.orange:a.equals("pink")?b=java.awt.Color.pink:a.equals("red")?b=java.awt.Color.red:a.equals("white")?b=java.awt.Color.white:a.equals("yellow")&&
1998 (b=java.awt.Color.yellow);return b},"~S");c$.initRnaHelicesShading=d(c$,"initRnaHelicesShading",function(a){var b=0;if(null==jalview.schemes.ColourSchemeProperty.rnaHelices)jalview.schemes.ColourSchemeProperty.rnaHelices=Array(a+1);else if(null!=jalview.schemes.ColourSchemeProperty.rnaHelices&&jalview.schemes.ColourSchemeProperty.rnaHelices.length<=a){var c=Array(a+1);System.arraycopy(jalview.schemes.ColourSchemeProperty.rnaHelices,0,c,0,jalview.schemes.ColourSchemeProperty.rnaHelices.length);b=jalview.schemes.ColourSchemeProperty.rnaHelices.length;
1999 jalview.schemes.ColourSchemeProperty.rnaHelices=c}else return;for(;b<=a;b++)jalview.schemes.ColourSchemeProperty.rnaHelices[b]=jalview.util.ColorUtils.generateRandomColor(java.awt.Color.white)},"~N");G(c$,"UNDEFINED",-1,"USER_DEFINED",0,"NONE",1,"CLUSTAL",2,"BLOSUM",3,"PID",4,"ZAPPO",5,"TAYLOR",6,"HYDROPHOBIC",7,"HELIX",8,"STRAND",9,"TURN",10,"BURIED",11,"NUCLEOTIDE",12,"PURINEPYRIMIDINE",13,"COVARIATION",14,"TCOFFEE",15,"RNAHELIX",16,"RNAINTERACTION",17,"FIRST_COLOUR",1,"LAST_COLOUR",17,"rnaHelices",
2000 null)});p("jalview.schemes");q(["jalview.schemes.ScoreColourScheme"],"jalview.schemes.BuriedColourScheme",["jalview.schemes.ResidueProperties","java.awt.Color"],function(){c$=B(jalview.schemes,"BuriedColourScheme",jalview.schemes.ScoreColourScheme);m(c$,function(){t(this,jalview.schemes.BuriedColourScheme,[jalview.schemes.ResidueProperties.aaIndex,jalview.schemes.ResidueProperties.buried,0.05,4.6])});e(c$,"makeColour",function(a){return new java.awt.Color(0,1-a,a)},"~N")});p("jalview.schemes");q(["jalview.schemes.ResidueColourScheme"],
2001 "jalview.schemes.ScoreColourScheme",["jalview.schemes.ResidueProperties","jalview.util.Comparison","java.awt.Color"],function(){c$=s(function(){this.max=this.min=0;this.scores=null;r(this,arguments)},jalview.schemes,"ScoreColourScheme",jalview.schemes.ResidueColourScheme);m(c$,function(a,b,c,f){t(this,jalview.schemes.ScoreColourScheme,[a]);this.scores=b;this.min=c;this.max=f;var d=b.length;this.colors=Array(b.length);for(a=0;a<d;a++){var e=(b[a]-c)/(f-c);1<e&&(e=1);0>e&&(e=0);this.colors[a]=this.makeColour(e)}},
2002 "~A,~A,~N,~N");e(c$,"findColourSeq",function(a,b){if(0<this.threshold&&!this.aboveThreshold(a,b)||jalview.util.Comparison.isGap(a))return java.awt.Color.white;var c=this.colors[jalview.schemes.ResidueProperties.aaIndex[a.charCodeAt(0)]];this.conservationColouring&&(c=this.applyConservation(c,b));return c},"~S,~N,jalview.datamodel.SequenceI");d(c$,"makeColour",function(a){return new java.awt.Color(a,0,1-a)},"~N")});p("jalview.schemes");q(["jalview.schemes.ResidueColourScheme","java.util.HashMap"],
2003 ["jalview.schemes.ConsensusColour","$.ClustalxColourScheme"],["jalview.schemes.Consensus","$.ResidueProperties","java.awt.Color"],function(){c$=s(function(){this.residueColour=this.colours=this.cons2=null;this.size=0;this.conses=null;this.includeGaps=!0;r(this,arguments)},jalview.schemes,"ClustalxColourScheme",jalview.schemes.ResidueColourScheme);J(c$,function(){this.conses=Array(32)});m(c$,function(a,b){t(this,jalview.schemes.ClustalxColourScheme,[]);this.alignmentChanged(a,b)},"jalview.datamodel.AnnotatedCollectionI,java.util.Map");
2004 e(c$,"alignmentChanged",function(a,b){var c=a.getWidth(),f=a.getSequences(b);this.cons2=w(c,24,0);this.includeGaps=this.isIncludeGaps();for(var d=0;24>d;d++)for(var e=0;e<c;e++)this.cons2[e][d]=0;for(var d=0,g,h,j=f.iterator();j.hasNext()&&((h=j.next())||1);){g=h.getSequence();for(var n=g.length-1,e=0;e<=n;e++)c=g.length-1<e?23:jalview.schemes.ResidueProperties.aaIndex[g[e].charCodeAt(0)],this.cons2[e][c]++;d++}this.size=f.size();this.makeColours()},"jalview.datamodel.AnnotatedCollectionI,java.util.Map");
2005 d(c$,"makeColours",function(){this.conses[0]=new jalview.schemes.Consensus("WLVIMAFCYHP",60);this.conses[1]=new jalview.schemes.Consensus("WLVIMAFCYHP",80);this.conses[2]=new jalview.schemes.Consensus("ED",50);this.conses[3]=new jalview.schemes.Consensus("KR",60);this.conses[4]=new jalview.schemes.Consensus("G",50);this.conses[5]=new jalview.schemes.Consensus("N",50);this.conses[6]=new jalview.schemes.Consensus("QE",50);this.conses[7]=new jalview.schemes.Consensus("P",50);this.conses[8]=new jalview.schemes.Consensus("TS",
2006 50);this.conses[26]=new jalview.schemes.Consensus("A",85);this.conses[27]=new jalview.schemes.Consensus("C",85);this.conses[10]=new jalview.schemes.Consensus("E",85);this.conses[11]=new jalview.schemes.Consensus("F",85);this.conses[12]=new jalview.schemes.Consensus("G",85);this.conses[13]=new jalview.schemes.Consensus("H",85);this.conses[14]=new jalview.schemes.Consensus("I",85);this.conses[15]=new jalview.schemes.Consensus("L",85);this.conses[16]=new jalview.schemes.Consensus("M",85);this.conses[17]=
2007 new jalview.schemes.Consensus("N",85);this.conses[18]=new jalview.schemes.Consensus("P",85);this.conses[19]=new jalview.schemes.Consensus("Q",85);this.conses[20]=new jalview.schemes.Consensus("R",85);this.conses[21]=new jalview.schemes.Consensus("S",85);this.conses[22]=new jalview.schemes.Consensus("T",85);this.conses[23]=new jalview.schemes.Consensus("V",85);this.conses[24]=new jalview.schemes.Consensus("W",85);this.conses[25]=new jalview.schemes.Consensus("Y",85);this.conses[28]=new jalview.schemes.Consensus("K",
2008 85);this.conses[29]=new jalview.schemes.Consensus("D",85);this.conses[30]=new jalview.schemes.Consensus("G",0);this.conses[31]=new jalview.schemes.Consensus("P",0);this.colours=Array(11);var a=Array(1);a[0]=this.conses[30];this.colours[7]=new jalview.schemes.ConsensusColour(jalview.schemes.ClustalxColourScheme.colhash.get(java.awt.Color.ORANGE),a);var b=Array(1);b[0]=this.conses[31];this.colours[8]=new jalview.schemes.ConsensusColour(jalview.schemes.ClustalxColourScheme.colhash.get(java.awt.Color.YELLOW),
2009 b);Array(1)[0]=this.conses[27];this.colours[9]=new jalview.schemes.ConsensusColour(jalview.schemes.ClustalxColourScheme.colhash.get(java.awt.Color.PINK),a);a=Array(14);a[0]=this.conses[0];a[1]=this.conses[1];a[2]=this.conses[26];a[3]=this.conses[27];a[4]=this.conses[11];a[5]=this.conses[13];a[6]=this.conses[14];a[7]=this.conses[15];a[8]=this.conses[16];a[9]=this.conses[23];a[10]=this.conses[24];a[11]=this.conses[25];a[12]=this.conses[18];a[13]=this.conses[19];this.colours[0]=new jalview.schemes.ConsensusColour(jalview.schemes.ClustalxColourScheme.colhash.get(java.awt.Color.BLUE),
2010 a);this.colours[10]=new jalview.schemes.ConsensusColour(jalview.schemes.ClustalxColourScheme.colhash.get(java.awt.Color.CYAN),a);a=Array(5);a[0]=this.conses[8];a[1]=this.conses[21];a[2]=this.conses[22];a[3]=this.conses[0];a[4]=this.conses[1];this.colours[1]=new jalview.schemes.ConsensusColour(jalview.schemes.ClustalxColourScheme.colhash.get(java.awt.Color.GREEN),a);a=Array(3);a[0]=this.conses[17];a[1]=this.conses[29];a[2]=this.conses[5];this.colours[2]=new jalview.schemes.ConsensusColour(jalview.schemes.ClustalxColourScheme.colhash.get(java.awt.Color.GREEN),
2011 a);a=Array(6);a[0]=this.conses[6];a[1]=this.conses[19];a[2]=this.conses[22];a[3]=this.conses[3];a[4]=this.conses[28];a[5]=this.conses[20];this.colours[3]=new jalview.schemes.ConsensusColour(jalview.schemes.ClustalxColourScheme.colhash.get(java.awt.Color.GREEN),a);a=Array(4);a[0]=this.conses[3];a[1]=this.conses[28];a[2]=this.conses[20];a[3]=this.conses[19];this.colours[4]=new jalview.schemes.ConsensusColour(jalview.schemes.ClustalxColourScheme.colhash.get(java.awt.Color.RED),a);a=Array(6);a[0]=this.conses[3];
2012 a[1]=this.conses[29];a[2]=this.conses[10];a[3]=this.conses[6];a[4]=this.conses[19];a[5]=this.conses[2];this.colours[5]=new jalview.schemes.ConsensusColour(jalview.schemes.ClustalxColourScheme.colhash.get(java.awt.Color.MAGENTA),a);a=Array(5);a[0]=this.conses[3];a[1]=this.conses[29];a[2]=this.conses[10];a[3]=this.conses[17];a[4]=this.conses[2];this.colours[6]=new jalview.schemes.ConsensusColour(jalview.schemes.ClustalxColourScheme.colhash.get(java.awt.Color.MAGENTA),a);this.residueColour=Array(20);
2013 this.residueColour[0]=this.colours[0];this.residueColour[1]=this.colours[4];this.residueColour[2]=this.colours[2];this.residueColour[3]=this.colours[6];this.residueColour[4]=this.colours[0];this.residueColour[5]=this.colours[3];this.residueColour[6]=this.colours[5];this.residueColour[7]=this.colours[7];this.residueColour[8]=this.colours[10];this.residueColour[9]=this.colours[0];this.residueColour[10]=this.colours[0];this.residueColour[11]=this.colours[4];this.residueColour[12]=this.colours[0];this.residueColour[13]=
2014 this.colours[0];this.residueColour[14]=this.colours[8];this.residueColour[15]=this.colours[1];this.residueColour[16]=this.colours[1];this.residueColour[17]=this.colours[0];this.residueColour[18]=this.colours[10];this.residueColour[19]=this.colours[0]});e(c$,"findColour",function(){return java.awt.Color.pink},"~S");e(c$,"findColourSeq",function(a,b){var c;if(this.cons2.length<=b||this.includeGaps&&0!=this.threshold&&!this.aboveThreshold(a,b))return java.awt.Color.white;var f=jalview.schemes.ResidueProperties.aaIndex[a.charCodeAt(0)];
2015 c=java.awt.Color.white;if(19<f)return c;for(var d=0;d<this.residueColour[f].conses.length;d++)this.residueColour[f].conses[d].isConserved(this.cons2,b,this.size,this.includeGaps)&&(c=this.residueColour[f].c);4==f&&this.conses[27].isConserved(this.cons2,b,this.size,this.includeGaps)&&(c=jalview.schemes.ClustalxColourScheme.colhash.get(java.awt.Color.PINK));this.conservationColouring&&(c=this.applyConservation(c,b));return c},"~S,~N,jalview.datamodel.SequenceI");d(c$,"isIncludeGaps",function(){return this.includeGaps});
2016 d(c$,"setIncludeGaps",function(a){this.includeGaps=a},"~B");e(c$,"applyTo",function(a,b){var c=new jalview.schemes.ClustalxColourScheme(a,b);c.includeGaps=this.includeGaps;return c},"jalview.datamodel.AnnotatedCollectionI,java.util.Map");G(c$,"EIGHTY_FIVE",85,"FIFTY",50,"EIGHTY",80,"SIXTY",60);c$.colhash=c$.prototype.colhash=new java.util.HashMap;jalview.schemes.ClustalxColourScheme.colhash.put(java.awt.Color.RED,new java.awt.Color(0.9,0.2,0.1));jalview.schemes.ClustalxColourScheme.colhash.put(java.awt.Color.BLUE,
2017 new java.awt.Color(0.5,0.7,0.9));jalview.schemes.ClustalxColourScheme.colhash.put(java.awt.Color.GREEN,new java.awt.Color(0.1,0.8,0.1));jalview.schemes.ClustalxColourScheme.colhash.put(java.awt.Color.ORANGE,new java.awt.Color(0.9,0.6,0.3));jalview.schemes.ClustalxColourScheme.colhash.put(java.awt.Color.CYAN,new java.awt.Color(0.1,0.7,0.7));jalview.schemes.ClustalxColourScheme.colhash.put(java.awt.Color.PINK,new java.awt.Color(0.9,0.5,0.5));jalview.schemes.ClustalxColourScheme.colhash.put(java.awt.Color.MAGENTA,
2018 new java.awt.Color(0.8,0.3,0.8));jalview.schemes.ClustalxColourScheme.colhash.put(java.awt.Color.YELLOW,new java.awt.Color(0.8,0.8,0));c$=s(function(){this.c=this.conses=null;r(this,arguments)},jalview.schemes,"ConsensusColour");m(c$,function(a,b){this.conses=b;this.c=a},"java.awt.Color,~A")});p("jalview.schemes");q(null,"jalview.schemes.Consensus",["jalview.schemes.ResidueProperties"],function(){c$=s(function(){this.mask=null;this.threshold=0;this.maskstr=null;r(this,arguments)},jalview.schemes,
2019 "Consensus");m(c$,function(a,b){this.maskstr=a;this.setMask(a);this.threshold=b},"~S,~N");d(c$,"setMask",function(a){this.mask=this.setNums(a)},"~S");d(c$,"isConserved",function(a,b,c){return this.isConserved(a,b,c,!0)},"~A,~N,~N");d(c$,"isConserved",function(a,b,c,f){var d=0;f||(c-=a[b][a[b].length-1]);for(f=0;f<this.mask.length;f++)d+=a[b][this.mask[f]];return d>this.threshold*c/100?!0:!1},"~A,~N,~N,~B");d(c$,"setNums",function(a){for(var b=w(a.length,0),c=0;c<a.length;)b[c]=jalview.schemes.ResidueProperties.aaIndex[a.charCodeAt(c)],
2020 c++;return b},"~S")});p("jalview.schemes");q(["jalview.schemes.ScoreColourScheme"],"jalview.schemes.HelixColourScheme",["jalview.schemes.ResidueProperties","java.awt.Color"],function(){c$=B(jalview.schemes,"HelixColourScheme",jalview.schemes.ScoreColourScheme);m(c$,function(){t(this,jalview.schemes.HelixColourScheme,[jalview.schemes.ResidueProperties.aaIndex,jalview.schemes.ResidueProperties.helix,0.57,1.51])});e(c$,"makeColour",function(a){return new java.awt.Color(a,1-a,a)},"~N")});p("jalview.schemes");
2021 q(["jalview.schemes.ScoreColourScheme"],"jalview.schemes.HydrophobicColourScheme",["jalview.schemes.ResidueProperties","java.awt.Color"],function(){c$=B(jalview.schemes,"HydrophobicColourScheme",jalview.schemes.ScoreColourScheme);m(c$,function(){t(this,jalview.schemes.HydrophobicColourScheme,[jalview.schemes.ResidueProperties.aaIndex,jalview.schemes.ResidueProperties.hyd,-3.9,4.5])});e(c$,"makeColour",function(a){return new java.awt.Color(a,0,1-a)},"~N")});p("jalview.schemes");q(["jalview.schemes.ResidueColourScheme"],
2022 "jalview.schemes.NucleotideColourScheme",["jalview.schemes.ResidueProperties","java.awt.Color"],function(){c$=B(jalview.schemes,"NucleotideColourScheme",jalview.schemes.ResidueColourScheme);m(c$,function(){t(this,jalview.schemes.NucleotideColourScheme,[jalview.schemes.ResidueProperties.nucleotideIndex,jalview.schemes.ResidueProperties.nucleotide,0])});e(c$,"findColour",function(a){return this.colors[jalview.schemes.ResidueProperties.nucleotideIndex[a.charCodeAt(0)]]},"~S");e(c$,"findColourSeq",function(a,
2023 b){var c;if(0==this.threshold||this.aboveThreshold(a,b))try{c=this.colors[jalview.schemes.ResidueProperties.nucleotideIndex[a.charCodeAt(0)]]}catch(f){if(y(f,Exception))return java.awt.Color.white;throw f;}else return java.awt.Color.white;this.conservationColouring&&(c=this.applyConservation(c,b));return c},"~S,~N,jalview.datamodel.SequenceI")});p("jalview.schemes");q(["jalview.schemes.ResidueColourScheme"],"jalview.schemes.PurinePyrimidineColourScheme",["jalview.schemes.ResidueProperties","java.awt.Color"],
2024 function(){c$=B(jalview.schemes,"PurinePyrimidineColourScheme",jalview.schemes.ResidueColourScheme);m(c$,function(){t(this,jalview.schemes.PurinePyrimidineColourScheme,[jalview.schemes.ResidueProperties.purinepyrimidineIndex,jalview.schemes.ResidueProperties.purinepyrimidine,0])});d(c$,"findColour",function(a){return this.colors[jalview.schemes.ResidueProperties.purinepyrimidineIndex[a.charCodeAt(0)]]},"~S");d(c$,"findColour",function(a,b){var c;if(0==this.threshold||this.aboveThreshold(a,b))try{c=
2025 this.colors[jalview.schemes.ResidueProperties.purinepyrimidineIndex[a.charCodeAt(0)]]}catch(f){if(y(f,Exception))return java.awt.Color.white;throw f;}else return java.awt.Color.white;this.conservationColouring&&(c=this.applyConservation(c,b));return c},"~S,~N")});p("jalview.schemes");q(["jalview.schemes.ResidueColourScheme","java.util.Hashtable"],"jalview.schemes.RNAHelicesColour",["jalview.schemes.ResidueProperties","jalview.util.ColorUtils","java.awt.Color"],function(){c$=s(function(){this.positionsToHelix=
2026 this.helixcolorhash=null;this.numHelix=0;this.annotation=null;this.lastrefresh=-1;r(this,arguments)},jalview.schemes,"RNAHelicesColour",jalview.schemes.ResidueColourScheme);J(c$,function(){this.helixcolorhash=new java.util.Hashtable;this.positionsToHelix=new java.util.Hashtable});m(c$,function(a){t(this,jalview.schemes.RNAHelicesColour,[jalview.schemes.ResidueProperties.nucleotideIndex]);this.annotation=a;this.refresh()},"jalview.datamodel.AlignmentAnnotation");m(c$,function(a){t(this,jalview.schemes.RNAHelicesColour,
2027 [jalview.schemes.ResidueProperties.nucleotideIndex]);this.alignmentChanged(a,null)},"jalview.datamodel.AnnotatedCollectionI");e(c$,"alignmentChanged",function(a){a=a.getAlignmentAnnotation();for(var b=0;b<a.length;b++)if(null!=a[b].getRNAStruc()){this.annotation=a[b];break}this.refresh()},"jalview.datamodel.AnnotatedCollectionI,java.util.Map");d(c$,"refresh",function(){if(null!=this.annotation&&(null==this.annotation._rnasecstr||this.lastrefresh!=this.annotation._rnasecstr.hashCode())&&this.annotation.isValidStruc()){this.annotation.getRNAStruc();
2028 this.lastrefresh=this.annotation._rnasecstr.hashCode();this.numHelix=0;this.positionsToHelix=new java.util.Hashtable;for(var a=0;a<this.annotation._rnasecstr.length;a++)this.positionsToHelix.put(new Integer(this.annotation._rnasecstr[a].getBegin()),this.annotation._rnasecstr[a].getFeatureGroup()),this.positionsToHelix.put(new Integer(this.annotation._rnasecstr[a].getEnd()),this.annotation._rnasecstr[a].getFeatureGroup()),Integer.parseInt(this.annotation._rnasecstr[a].getFeatureGroup())>this.numHelix&&
2029 (this.numHelix=Integer.parseInt(this.annotation._rnasecstr[a].getFeatureGroup()));for(a=0;a<=this.numHelix;a++)this.helixcolorhash.containsKey(Integer.toString(a))||this.helixcolorhash.put(Integer.toString(a),jalview.util.ColorUtils.generateRandomColor(java.awt.Color.white))}});e(c$,"findColour",function(a){return jalview.schemes.ResidueProperties.purinepyrimidine[jalview.schemes.ResidueProperties.purinepyrimidineIndex[a.charCodeAt(0)]]},"~S");e(c$,"findColourSeq",function(a,b){this.refresh();var c=
2030 java.awt.Color.white,f=null,f=this.positionsToHelix.get(new Integer(b));null!=f&&(c=this.helixcolorhash.get(f));return c},"~S,~N,jalview.datamodel.SequenceI")});p("jalview.util");q(null,"jalview.util.ColorUtils",["java.awt.Color","java.util.Random"],function(){c$=B(jalview.util,"ColorUtils");c$.generateRandomColor=d(c$,"generateRandomColor",function(a){var b=new java.util.Random,c=b.nextInt(256),f=b.nextInt(256),b=b.nextInt(256);null!=a&&(c=F((c+a.getRed())/2),f=F((f+a.getGreen())/2),b=F((b+a.getBlue())/
2031 2));return new java.awt.Color(c,f,b)},"java.awt.Color");c$.toTkCode=d(c$,"toTkCode",function(a){return"#"+(16>a.getRed()?"0":"")+Integer.toHexString(a.getRed())+(16>a.getGreen()?"0":"")+Integer.toHexString(a.getGreen())+(16>a.getBlue()?"0":"")+Integer.toHexString(a.getBlue())},"java.awt.Color");c$.darkerThan=d(c$,"darkerThan",function(a){return null==a?null:a.darker().darker().darker()},"java.awt.Color");c$.brighterThan=d(c$,"brighterThan",function(a){return null==a?null:a.brighter().brighter().brighter()},
2032 "java.awt.Color")});p("jalview.schemes");q(["jalview.schemes.ScoreColourScheme"],"jalview.schemes.StrandColourScheme",["jalview.schemes.ResidueProperties","java.awt.Color"],function(){c$=B(jalview.schemes,"StrandColourScheme",jalview.schemes.ScoreColourScheme);m(c$,function(){t(this,jalview.schemes.StrandColourScheme,[jalview.schemes.ResidueProperties.aaIndex,jalview.schemes.ResidueProperties.strand,0.37,1.7])});e(c$,"makeColour",function(a){return new java.awt.Color(a,a,1-a)},"~N")});p("jalview.schemes");
2033 q(["jalview.schemes.ResidueColourScheme","java.awt.Color"],"jalview.schemes.TCoffeeColourScheme",["jalview.datamodel.AlignmentI","java.util.ArrayList","$.IdentityHashMap"],function(){c$=s(function(){this.seqMap=null;r(this,arguments)},jalview.schemes,"TCoffeeColourScheme",jalview.schemes.ResidueColourScheme);m(c$,function(a){t(this,jalview.schemes.TCoffeeColourScheme,[]);this.alignmentChanged(a,null)},"jalview.datamodel.AnnotatedCollectionI");e(c$,"alignmentChanged",function(a){var b=new java.util.ArrayList;
2034 this.seqMap=new java.util.IdentityHashMap;var c=0,f;for(a=(v(a,jalview.datamodel.AlignmentI)?a:a.getContext()).findAnnotation("TCoffeeScore").iterator();a.hasNext()&&((f=a.next())||1);)if(null!=f.sequenceRef&&!f.belowAlignment){b.add(f);c<f.annotations.length&&(c=f.annotations.length);for(var d=Array(f.annotations.length),e=0,g,h=0,j=f.annotations;h<j.length&&((g=j[h])||1);h++)d[e++]=null!=g?g.colour:java.awt.Color.white;this.seqMap.put(f.sequenceRef,d)}},"jalview.datamodel.AnnotatedCollectionI,java.util.Map");
2035 e(c$,"findColourSeq",function(a,b,c){var f;return null==this.seqMap||null==(f=this.seqMap.get(c))||0>b||b>=f.length?java.awt.Color.white:f[b]},"~S,~N,jalview.datamodel.SequenceI");e(c$,"applyTo",function(a){return new jalview.schemes.TCoffeeColourScheme(a)},"jalview.datamodel.AnnotatedCollectionI,java.util.Map");c$.$colors=c$.prototype.$colors=E(-1,[new java.awt.Color(102,102,255),new java.awt.Color(0,255,0),new java.awt.Color(102,255,0),new java.awt.Color(204,255,0),new java.awt.Color(255,255,0),
2036 new java.awt.Color(255,204,0),new java.awt.Color(255,153,0),new java.awt.Color(255,102,0),new java.awt.Color(255,51,0),new java.awt.Color(255,34,0)])});p("jalview.schemes");q(["jalview.schemes.ResidueColourScheme"],"jalview.schemes.TaylorColourScheme",["jalview.schemes.ResidueProperties"],function(){c$=B(jalview.schemes,"TaylorColourScheme",jalview.schemes.ResidueColourScheme);m(c$,function(){t(this,jalview.schemes.TaylorColourScheme,[jalview.schemes.ResidueProperties.aaIndex,jalview.schemes.ResidueProperties.taylor,
2037 0])})});p("jalview.schemes");q(["jalview.schemes.ScoreColourScheme"],"jalview.schemes.TurnColourScheme",["jalview.schemes.ResidueProperties","java.awt.Color"],function(){c$=B(jalview.schemes,"TurnColourScheme",jalview.schemes.ScoreColourScheme);m(c$,function(){t(this,jalview.schemes.TurnColourScheme,[jalview.schemes.ResidueProperties.aaIndex,jalview.schemes.ResidueProperties.turn,0.47,1.56])});e(c$,"makeColour",function(a){return new java.awt.Color(a,1-a,1-a)},"~N")});p("jalview.schemes");q(["jalview.schemes.ResidueColourScheme"],
2038 "jalview.schemes.UserColourScheme",["jalview.schemes.ColourSchemeProperty","$.ResidueProperties","java.awt.Color","java.util.StringTokenizer"],function(){c$=s(function(){this.schemeName=this.lowerCaseColours=null;r(this,arguments)},jalview.schemes,"UserColourScheme",jalview.schemes.ResidueColourScheme);m(c$,function(){t(this,jalview.schemes.UserColourScheme,[jalview.schemes.ResidueProperties.aaIndex])});m(c$,function(a){t(this,jalview.schemes.UserColourScheme,[jalview.schemes.ResidueProperties.aaIndex]);
2039 this.colors=a},"~A");e(c$,"applyTo",function(){var a=new jalview.schemes.UserColourScheme(this.colors);null!=this.lowerCaseColours&&(a.schemeName=String.instantialize(this.schemeName),a.lowerCaseColours=Array(this.lowerCaseColours.length),System.arraycopy(this.lowerCaseColours,0,a.lowerCaseColours,0,this.lowerCaseColours.length));return a},"jalview.datamodel.AnnotatedCollectionI,java.util.Map");m(c$,function(a){t(this,jalview.schemes.UserColourScheme,[jalview.schemes.ResidueProperties.aaIndex]);var b=
2040 this.getColourFromString(a);null==b&&(System.out.println("Unknown colour!! "+a),b=this.createColourFromName(a));this.colors=Array(24);for(var c=0;24>c;c++)this.colors[c]=b;this.schemeName=a},"~S");d(c$,"getColours",function(){return this.colors});d(c$,"getLowerCaseColours",function(){return this.lowerCaseColours});d(c$,"setName",function(a){this.schemeName=a},"~S");d(c$,"getName",function(){return this.schemeName});d(c$,"getColourFromString",function(a){a=a.trim();var b=null;try{var c=Integer.parseInt(a,
2041 16),b=new java.awt.Color(c)}catch(f){if(!y(f,NumberFormatException))throw f;}null==b&&(b=jalview.schemes.ColourSchemeProperty.getAWTColorFromName(a));if(null==b)try{var d=new java.util.StringTokenizer(a,","),e=Integer.parseInt(d.nextToken()),g=Integer.parseInt(d.nextToken()),h=Integer.parseInt(d.nextToken()),b=new java.awt.Color(e,g,h)}catch(j){if(!y(j,Exception))throw j;}return b},"~S");d(c$,"createColourFromName",function(a){var b,c;c=a.length;var f=0,d=F(c/3),e=15*Math.abs(a.hashCode()%10);b=Math.abs(a.substring(f,
2042 d).hashCode()+e)%210+20;f=d;d+=F(c/3);d>c&&(d=c);c=Math.abs(a.substring(f,d).hashCode()+e)%210+20;a=Math.abs(a.substring(d).hashCode()+e)%210+20;return new java.awt.Color(b,c,a)},"~S");d(c$,"parseAppletParameter",function(a){a=new java.util.StringTokenizer(a,";");var b,c=null,f,d;try{for(;a.hasMoreElements();){c=a.nextToken().trim();d=c.substring(0,c.indexOf("="));f=c.substring(c.indexOf("=")+1);for(b=new java.util.StringTokenizer(d," ,");b.hasMoreTokens();)if(c=b.nextToken(),-1!=jalview.schemes.ResidueProperties.aaIndex[c.charCodeAt(0)]){var e=
2043 jalview.schemes.ResidueProperties.aaIndex[c.charCodeAt(0)];if(c.equalsIgnoreCase("lowerCase")){null==this.lowerCaseColours&&(this.lowerCaseColours=Array(23));for(var g=0;23>g;g++)null==this.lowerCaseColours[g]&&(this.lowerCaseColours[g]=this.getColourFromString(f))}else c.equals(c.toLowerCase())?(null==this.lowerCaseColours&&(this.lowerCaseColours=Array(23)),this.lowerCaseColours[e]=this.getColourFromString(f)):this.colors[e]=this.getColourFromString(f)}}}catch(h){if(y(h,Exception))System.out.println("Error parsing userDefinedColours:\n"+
2044 c+"\n"+h);else throw h;}},"~S");e(c$,"findColourSeq",function(a,b){var c;c=jalview.schemes.ResidueProperties.aaIndex[a.charCodeAt(0)];c=0==this.threshold||this.aboveThreshold(a,b)?null!=this.lowerCaseColours&&"a"<=a&&"z">=a?this.lowerCaseColours[c]:this.colors[c]:java.awt.Color.white;this.conservationColouring&&(c=this.applyConservation(c,b));return c},"~S,~N,jalview.datamodel.SequenceI");d(c$,"setLowerCaseColours",function(a){this.lowerCaseColours=a},"~A")});p("jalview.schemes");q(["jalview.schemes.ResidueColourScheme"],
2045 "jalview.schemes.ZappoColourScheme",["jalview.schemes.ResidueProperties"],function(){c$=B(jalview.schemes,"ZappoColourScheme",jalview.schemes.ResidueColourScheme);m(c$,function(){t(this,jalview.schemes.ZappoColourScheme,[jalview.schemes.ResidueProperties.aaIndex,jalview.schemes.ResidueProperties.zappo,0])})});p("jalview.structure");q(["java.util.ArrayList","$.HashMap","$.LinkedHashSet","$.Vector"],"jalview.structure.StructureSelectionManager","MCview.PDBfile jalview.analysis.AlignSeq jalview.commands.EditCommand $.OrderCommand jalview.datamodel.Mapping $.SearchResults jalview.io.AppletFormatAdapter jalview.structure.AtomSpec $.SecondaryStructureListener $.SequenceListener $.StructureListener $.StructureMapping $.VamsasListener jalview.util.MappingUtils $.MessageManager java.lang.Error $.NullPointerException $.StringBuilder java.util.Arrays $.Collections $.IdentityHashMap".split(" "),
2046 function(){c$=s(function(){this.mappings=null;this.addTempFacAnnot=this.secStructServices=this.processSecondaryStructure=!1;this.pdbFileNameId=this.pdbIdFileName=this.sel_listeners=this.commandListeners=this.seqMappingRefCounts=this.seqmappings=null;this.relaySeqMappings=!0;this.listeners=null;this.handlingVamsasMo=!1;this.lastmsg=0;this.view_listeners=null;r(this,arguments)},jalview.structure,"StructureSelectionManager");J(c$,function(){this.mappings=new java.util.ArrayList;this.seqmappings=new java.util.LinkedHashSet;
2047 this.seqMappingRefCounts=new java.util.HashMap;this.commandListeners=new java.util.ArrayList;this.sel_listeners=new java.util.ArrayList;this.pdbIdFileName=new java.util.HashMap;this.pdbFileNameId=new java.util.HashMap;this.listeners=new java.util.Vector;this.view_listeners=new java.util.Vector});d(c$,"isSecStructServices",function(){return this.secStructServices});d(c$,"setSecStructServices",function(a){this.secStructServices=a},"~B");d(c$,"isAddTempFacAnnot",function(){return this.addTempFacAnnot});
2048 d(c$,"setAddTempFacAnnot",function(a){this.addTempFacAnnot=a},"~B");d(c$,"isProcessSecondaryStructure",function(){return this.processSecondaryStructure});d(c$,"setProcessSecondaryStructure",function(a){this.processSecondaryStructure=a},"~B");d(c$,"reportMapping",function(){if(this.mappings.isEmpty())System.err.println("reportMapping: No PDB/Sequence mappings.");else{System.err.println("reportMapping: There are "+this.mappings.size()+" mappings.");for(var a=0,b,c=this.mappings.iterator();c.hasNext()&&
2049 ((b=c.next())||1);)System.err.println("mapping "+a++ +" : "+b.pdbfile)}});d(c$,"registerPDBFile",function(a,b){this.pdbIdFileName.put(a,b);this.pdbFileNameId.put(b,a)},"~S,~S");d(c$,"findIdForPDBFile",function(a){return this.pdbFileNameId.get(a)},"~S");d(c$,"findFileForPDBId",function(a){return this.pdbIdFileName.get(a)},"~S");d(c$,"isPDBFileRegistered",function(a){return this.pdbFileNameId.containsKey(a)||this.pdbIdFileName.containsKey(a)},"~S");c$.getStructureSelectionManager=d(c$,"getStructureSelectionManager",
2050 function(a){if(null==a&&null==jalview.structure.StructureSelectionManager.nullProvider){if(null!=jalview.structure.StructureSelectionManager.instances)throw Error(jalview.util.MessageManager.getString("error.implementation_error_structure_selection_manager_null"),new NullPointerException(jalview.util.MessageManager.getString("exception.ssm_context_is_null")));jalview.structure.StructureSelectionManager.nullProvider=new jalview.structure.StructureSelectionManager;return jalview.structure.StructureSelectionManager.nullProvider}null==
2051 jalview.structure.StructureSelectionManager.instances&&(jalview.structure.StructureSelectionManager.instances=new java.util.IdentityHashMap);var b=jalview.structure.StructureSelectionManager.instances.get(a);null==b&&(b=null!=jalview.structure.StructureSelectionManager.nullProvider?jalview.structure.StructureSelectionManager.nullProvider:new jalview.structure.StructureSelectionManager,jalview.structure.StructureSelectionManager.instances.put(a,b));return b},"jalview.api.StructureSelectionManagerProvider");
2052 d(c$,"setRelaySeqMappings",function(a){this.relaySeqMappings=a},"~B");d(c$,"isRelaySeqMappingsEnabled",function(){return this.relaySeqMappings});d(c$,"addStructureViewerListener",function(a){this.listeners.contains(a)||this.listeners.addElement(a)},"~O");d(c$,"alreadyMappedToFile",function(a){for(var b,c=this.mappings.iterator();c.hasNext()&&((b=c.next())||1);)if(b.getPdbId().equals(a))return b.pdbfile;return null},"~S");d(c$,"setMapping",function(a,b,c,f){return this.setMapping(!0,a,b,c,f)},"~A,~A,~S,~S");
2053 d(c$,"setMapping",function(a,b,c,f,d){var e=this.processSecondaryStructure;if(this.isPDBFileRegistered(f))for(var g,h=0;h<b.length&&((g=b[h])||1);h++){for(var j=g;null!=j.getDatasetSequence();)j=j.getDatasetSequence();if(null!=j.getAnnotation())for(var n,m=0,j=j.getAnnotation();m<j.length&&((n=j[m])||1);m++)MCview.PDBfile.isCalcIdForFile(n,this.findIdForPDBFile(f))&&(e=!1)}g=null;try{g=new MCview.PDBfile(this.addTempFacAnnot,e,this.secStructServices,f,d),null!=g.id&&(0<g.id.trim().length&&jalview.io.AppletFormatAdapter.FILE.equals(d))&&
2054 this.registerPDBFile(g.id.trim(),f)}catch(u){if(y(u,Exception))return u.printStackTrace(),null;throw u;}for(var p,e=0;e<b.length;e++){var q=!0;n=b[e];null!=c&&null!=c[e]?(q=!1,p=c[e]):-1<n.getName().indexOf("|")?(p=n.getName().substring(n.getName().lastIndexOf("|")+1),1<p.length&&(p=0==p.trim().length?" ":"")):p="";for(var s=-10,j=null,m=" ",h=null,r=!0,t,v=g.chains.iterator();v.hasNext()&&((t=v.next())||1);)if(!(0<p.length&&!p.equals(t.id)&&!q)){var z=jalview.analysis.AlignSeq.doGlobalNWAlignment(n,
2055 t.sequence,t.isNa?"dna":"pep");if(r||z.maxscore>s||z.maxscore==s&&t.id.equals(p))r=!1,h=t,s=z.maxscore,j=z,m=t.id}if(null!=h){p=new StringBuilder(128);p.append(jalview.structure.StructureSelectionManager.NEWLINE).append("PDB Sequence is :").append(jalview.structure.StructureSelectionManager.NEWLINE).append("Sequence = ").append(h.sequence.getSequenceAsString());p.append(jalview.structure.StructureSelectionManager.NEWLINE).append("No of residues = ").append(h.residues.size()).append(jalview.structure.StructureSelectionManager.NEWLINE).append(jalview.structure.StructureSelectionManager.NEWLINE);
2056 q=(H("jalview.structure.StructureSelectionManager$1")?0:jalview.structure.StructureSelectionManager.$StructureSelectionManager$1$(),C(jalview.structure.StructureSelectionManager$1,this,T("mappingDetails",p),System.out));j.printAlignment(q);p.append(jalview.structure.StructureSelectionManager.NEWLINE).append("PDB start/end ");p.append(String.valueOf(j.seq2start)).append(" ");p.append(String.valueOf(j.seq2end));p.append(jalview.structure.StructureSelectionManager.NEWLINE).append("SEQ start/end ");p.append(String.valueOf(j.seq1start+
2057 n.getStart()-1)).append(" ");p.append(String.valueOf(j.seq1end+n.getEnd()-1));h.makeExactMapping(j,n);j=j.getMappingFromS1(!1);new jalview.datamodel.Mapping(j.getMap().getInverse());h.transferRESNUMFeatures(n,null);q=w(n.findPosition(n.getLength())+2,2,0);s=-1E4;r=0;do v=h.atoms.elementAt(r),s!=v.resNumber&&-1!=v.alignmentMapping&&(s=v.resNumber,q[v.alignmentMapping+1][0]=v.resNumber,q[v.alignmentMapping+1][1]=v.atomIndex),r++;while(r<h.atoms.size());d.equals(jalview.io.AppletFormatAdapter.PASTE)&&
2058 (f="INLINE"+g.id);n=new jalview.structure.StructureMapping(n,f,g.id,m,q,p.toString());a&&this.mappings.add(n);h.transferResidueAnnotation(n,j)}}return g},"~B,~A,~A,~S,~S");d(c$,"removeStructureViewerListener",function(a,b){this.listeners.removeElement(a);if(v(a,jalview.structure.SequenceListener))for(var c=0;c<this.listeners.size();c++)v(this.listeners.elementAt(c),jalview.structure.StructureListener)&&this.listeners.elementAt(c).releaseReferences(a);if(null!=b){for(var f=new java.util.ArrayList(java.util.Arrays.asList(b)),
2059 d,c=0;c<this.listeners.size();c++)if(v(this.listeners.elementAt(c),jalview.structure.StructureListener)){d=this.listeners.elementAt(c);var e,g=0;for(d=d.getPdbFile();g<d.length&&((e=d[g])||1);g++)f.remove(e)}if(0<f.size()){var c=new java.util.ArrayList,h;for(e=this.mappings.iterator();e.hasNext()&&((h=e.next())||1);)f.contains(h.pdbfile)||c.add(h);this.mappings=c}}},"~O,~A");d(c$,"mouseOverStructure",function(a,b,c){a=new jalview.structure.AtomSpec(c,b,a,0);a=java.util.Collections.singletonList(a);
2060 this.mouseOverStructure(a)},"~N,~S,~S");d(c$,"mouseOverStructure",function(a){if(null!=this.listeners){for(var b=!1,c=0;c<this.listeners.size();c++)v(this.listeners.elementAt(c),jalview.structure.SequenceListener)&&(b=!0);if(b){var b=new jalview.datamodel.SearchResults,f;for(a=a.iterator();a.hasNext()&&((f=a.next())||1);)for(var c=null,d=-1,e,g=this.mappings.iterator();g.hasNext()&&((e=g.next())||1);)if(e.pdbfile.equals(f.getPdbFile())&&e.pdbchain.equals(f.getChain())){var h=e.getSeqPos(f.getPdbResNum());
2061 if(d!=h&&c!==e.sequence){b.addResult(e.sequence,h,h);for(var d=h,c=e.sequence,j,n=this.seqmappings.iterator();n.hasNext()&&((j=n.next())||1);)j.markMappedRegion(e.sequence,h,b)}}var m;for(f=this.listeners.iterator();f.hasNext()&&((m=f.next())||1);)v(m,jalview.structure.SequenceListener)&&m.highlightSequence(b)}}},"java.util.List");d(c$,"mouseOverSequence",function(a,b,c,f){var d=this.handlingVamsasMo||!this.seqmappings.isEmpty(),e=null;-1==c&&(c=a.findPosition(b));for(var g=0;g<this.listeners.size();g++){var h=
2062 this.listeners.elementAt(g);h!==f&&(v(h,jalview.structure.StructureListener)?this.highlightStructure(h,a,c):v(h,jalview.structure.SequenceListener)?d&&h.getVamsasSource()!==f&&this.relaySeqMappings&&(null==e&&(e=jalview.util.MappingUtils.buildSearchResults(a,c,this.seqmappings)),this.handlingVamsasMo&&e.addResult(a,c,c),h.highlightSequence(e)):v(h,jalview.structure.VamsasListener)&&!this.handlingVamsasMo?h.mouseOverSequence(a,b,f):v(h,jalview.structure.SecondaryStructureListener)&&h.mouseOverSequence(a,
2063 b,c))}},"jalview.datamodel.SequenceI,~N,~N,jalview.structure.VamsasSource");d(c$,"highlightStructure",function(a,b,c){if(a.isListeningFor(b)){for(var f,d=new java.util.ArrayList,e,g=this.mappings.iterator();g.hasNext()&&((e=g.next())||1);)if(e.sequence===b||e.sequence===b.getDatasetSequence())f=e.getAtomNum(c),0<f&&d.add(new jalview.structure.AtomSpec(e.pdbfile,e.pdbchain,e.getPDBResNum(c),f));a.highlightAtoms(d)}},"jalview.structure.StructureListener,jalview.datamodel.SequenceI,~N");d(c$,"mouseOverVamsasSequence",
2064 function(a,b,c){this.handlingVamsasMo=!0;var f=a.hashCode()*(1+b);this.lastmsg!=f&&(this.lastmsg=f,this.mouseOverSequence(a,b,-1,c));this.handlingVamsasMo=!1},"jalview.datamodel.SequenceI,~N,jalview.structure.VamsasSource");d(c$,"colourSequenceFromStructure",function(){return null},"jalview.datamodel.SequenceI,~S");d(c$,"structureSelectionChanged",function(){});d(c$,"sequenceSelectionChanged",function(){});d(c$,"sequenceColoursChanged",function(a){for(var b,c=0;c<this.listeners.size();c++)v(this.listeners.elementAt(c),
2065 jalview.structure.StructureListener)&&(b=this.listeners.elementAt(c),b.updateColours(a))},"~O");d(c$,"getMapping",function(a){for(var b=new java.util.ArrayList,c,f=this.mappings.iterator();f.hasNext()&&((c=f.next())||1);)c.pdbfile.equals(a)&&b.add(c);return b.toArray(Array(b.size()))},"~S");d(c$,"printMappings",function(a,b){if(null==a||null==b||b.isEmpty())return"";for(var c=new StringBuilder(64),f,d=this.mappings.iterator();d.hasNext()&&((f=d.next())||1);)f.pdbfile.equals(a)&&b.contains(f.sequence)&&
2066 (c.append(f.mappingDetails),c.append(jalview.structure.StructureSelectionManager.NEWLINE),c.append("====================="),c.append(jalview.structure.StructureSelectionManager.NEWLINE));c.append(jalview.structure.StructureSelectionManager.NEWLINE);return c.toString()},"~S,java.util.List");d(c$,"removeMappings",function(a){if(null!=a){var b;for(a=a.iterator();a.hasNext()&&((b=a.next())||1);)this.removeMapping(b)}},"java.util.Set");d(c$,"removeMapping",function(a){if(null!=a&&this.seqmappings.contains(a)){var b=
2067 this.seqMappingRefCounts.get(a).intValue();b--;0<b?this.seqMappingRefCounts.put(a,new Integer(b)):(this.seqmappings.remove(a),this.seqMappingRefCounts.remove(a))}},"jalview.datamodel.AlignedCodonFrame");d(c$,"addMappings",function(a){if(null!=a){var b;for(a=a.iterator();a.hasNext()&&((b=a.next())||1);)this.addMapping(b)}},"java.util.Set");d(c$,"addMapping",function(a){null!=a&&(this.seqmappings.contains(a)?this.seqMappingRefCounts.put(a,new Integer(this.seqMappingRefCounts.get(a).intValue()+1)):(this.seqmappings.add(a),
2068 this.seqMappingRefCounts.put(a,new Integer(1))))},"jalview.datamodel.AlignedCodonFrame");d(c$,"addSelectionListener",function(a){this.sel_listeners.contains(a)||this.sel_listeners.add(a)},"jalview.structure.SelectionListener");d(c$,"removeSelectionListener",function(a){this.sel_listeners.contains(a)&&this.sel_listeners.remove(a)},"jalview.structure.SelectionListener");d(c$,"sendSelection",function(a,b,c){for(var f,d=this.sel_listeners.iterator();d.hasNext()&&((f=d.next())||1);)f!==c&&f.selection(a,
2069 b,c)},"jalview.datamodel.SequenceGroup,jalview.datamodel.ColumnSelection,jalview.structure.SelectionSource");d(c$,"sendViewPosition",function(a,b,c,f,d){if(null!=this.view_listeners&&0<this.view_listeners.size())for(var e=this.view_listeners.elements();e.hasMoreElements();){var g=e.nextElement();g!==a&&g.viewPosition(b,c,f,d,a)}},"jalview.api.AlignmentViewPanel,~N,~N,~N,~N");c$.release=d(c$,"release",function(a){if(null!=jalview.structure.StructureSelectionManager.instances){var b=jalview.structure.StructureSelectionManager.instances.get(a);
2070 if(null!=b){jalview.structure.StructureSelectionManager.instances.remove(a);try{b.finalize()}catch(c){}}}},"jalview.api.StructureSelectionManagerProvider");d(c$,"registerPDBEntry",function(a){null!=a.getFile()&&0<a.getFile().trim().length&&this.registerPDBFile(a.getId(),a.getFile())},"jalview.datamodel.PDBEntry");d(c$,"addCommandListener",function(a){this.commandListeners.contains(a)||this.commandListeners.add(a)},"jalview.structure.CommandListener");d(c$,"hasCommandListener",function(a){return this.commandListeners.contains(a)},
2071 "jalview.structure.CommandListener");d(c$,"removeCommandListener",function(a){return this.commandListeners.remove(a)},"jalview.structure.CommandListener");d(c$,"commandPerformed",function(a,b,c){for(var f,d=this.commandListeners.iterator();d.hasNext()&&((f=d.next())||1);)f.mirrorCommand(a,b,this,c)},"jalview.commands.CommandI,~B,jalview.structure.VamsasSource");d(c$,"mapCommand",function(a,b,c,f){return v(a,jalview.commands.EditCommand)?jalview.util.MappingUtils.mapEditCommand(a,b,c,f,this.seqmappings):
2072 v(a,jalview.commands.OrderCommand)?jalview.util.MappingUtils.mapOrderCommand(a,b,c,this.seqmappings):null},"jalview.commands.CommandI,~B,jalview.datamodel.AlignmentI,~S");c$.$StructureSelectionManager$1$=function(){A(self.c$);c$=L(jalview.structure,"StructureSelectionManager$1",java.io.PrintStream);d(c$,"print",function(a){this.f$.mappingDetails.append(a)},"~S");d(c$,"println",function(){this.f$.mappingDetails.append(jalview.structure.StructureSelectionManager.NEWLINE)});c$=z()};c$.NEWLINE=c$.prototype.NEWLINE=
2073 System.lineSeparator();G(c$,"instances",null,"nullProvider",null)});p("MCview");q(["jalview.io.AlignFile"],"MCview.PDBfile","MCview.Atom $.PDBChain jalview.analysis.AlignSeq jalview.datamodel.Alignment $.AlignmentI $.PDBEntry jalview.io.FileParse jalview.util.MessageManager java.awt.Color java.io.IOException java.util.ArrayList $.Hashtable $.Vector".split(" "),function(){c$=s(function(){this.id=this.chains=null;this.visibleChainAnnotation=!1;this.$predictSecondaryStructure=!0;this.externalSecondaryStructure=
2074 !1;r(this,arguments)},MCview,"PDBfile",jalview.io.AlignFile);m(c$,function(a,b,c){t(this,MCview.PDBfile);this.visibleChainAnnotation=a;this.$predictSecondaryStructure=b;this.externalSecondaryStructure=c},"~B,~B,~B");m(c$,function(a,b,c,f,d){t(this,MCview.PDBfile,[!1,f,d]);this.visibleChainAnnotation=a;this.$predictSecondaryStructure=b;this.externalSecondaryStructure=c;this.doParse()},"~B,~B,~B,~S,~S");m(c$,function(a,b,c,f){t(this,MCview.PDBfile,[!1,f]);this.visibleChainAnnotation=a;this.$predictSecondaryStructure=
2075 b;this.externalSecondaryStructure=c;this.doParse()},"~B,~B,~B,jalview.io.FileParse");e(c$,"print",function(){return null});e(c$,"parse",function(){this.id=this.safeName(this.getDataName());this.chains=new java.util.Vector;var a=new java.util.ArrayList,b=new java.util.ArrayList,c,f=null,d=!1,e=!1,g="",h=null;try{for(;null!=(f=this.nextLine());)if(0==f.indexOf("HEADER")&&62<f.length){var j;j=67<f.length?f.substring(62,67).trim():f.substring(62).trim();0<j.length&&(this.id=j)}else{f.indexOf("SEQRES");
2076 0==f.indexOf("MODEL")&&(d=!0);0==f.indexOf("TER")&&(e=!0);if(d&&0==f.indexOf("ENDMDL"))break;if(0==f.indexOf("ATOM")||0==f.indexOf("HETATM")&&!e){e=!1;h=f.substring(12,15).trim();if(!h.equals("CA")&&!h.equals("P"))continue;var n=new MCview.Atom(f);c=this.findChain(n.chain);if(null!=c){if(n.resNumIns.trim().equals(g))continue}else c=new MCview.PDBChain(this.id,n.chain),this.chains.addElement(c);c.atoms.addElement(n);g=n.resNumIns.trim()}this.index++}this.makeResidueList();this.makeCaBondList();null==
2077 this.id&&(this.id=this.inFile.getName());for(var m,u=this.chains.iterator();u.hasNext()&&((m=u.next())||1);){var p=this.postProcessChain(m);MCview.PDBfile.isRNA(p)?a.add(p):b.add(p)}this.$predictSecondaryStructure&&this.predictSecondaryStructure(a,b)}catch(q){if(y(q,OutOfMemoryError))throw System.out.println("OUT OF MEMORY LOADING PDB FILE"),new java.io.IOException(jalview.util.MessageManager.getString("exception.outofmemory_loading_pdb_file"));if(y(q,NumberFormatException))null!=f&&(System.err.println("Couldn't read number from line:"),
2078 System.err.println(f));else throw q;}this.markCalcIds()});d(c$,"predictSecondaryStructure",function(a,b){if(this.externalSecondaryStructure&&0<a.size())try{this.processPdbFileWithAnnotate3d(a)}catch(c){if(y(c,Exception))System.err.println("Exceptions when dealing with RNA in pdb file"),c.printStackTrace();else throw c;}if(0<b.size())try{this.processPdbFileWithJmol(b)}catch(f){if(y(f,Exception))System.err.println("Exceptions from Jmol when processing data in pdb file"),f.printStackTrace();else throw f;
2079 }},"java.util.List,java.util.List");d(c$,"postProcessChain",function(a){var b=a.sequence;b.setName(this.id+"|"+b.getName());var c=new jalview.datamodel.PDBEntry;c.setId(this.id);c.setType(jalview.datamodel.PDBEntry.Type.PDB);c.setProperty(new java.util.Hashtable);null!=a.id&&c.setChainCode(String.valueOf(a.id));null!=this.inFile?c.setFile(this.inFile.getAbsolutePath()):c.setFile(this.getDataName());b.addPDBId(c);a=b.deriveSequence();this.seqs.addElement(a);b=a.getAnnotation();if(null!=b&&this.visibleChainAnnotation)for(c=
2080 0;c<b.length;c++)b[c].visible=this.visibleChainAnnotation,this.annotations.addElement(b[c]);return a},"MCview.PDBChain");c$.isCalcIdHandled=d(c$,"isCalcIdHandled",function(a){return null!=a&&MCview.PDBfile.CALC_ID_PREFIX.equals(a)},"~S");c$.isCalcIdForFile=d(c$,"isCalcIdForFile",function(a,b){return null!=a.getCalcId()&&MCview.PDBfile.CALC_ID_PREFIX.equals(a.getCalcId())&&b.equals(a.getProperty("PDBID"))},"jalview.datamodel.AlignmentAnnotation,~S");c$.relocateCalcId=d(c$,"relocateCalcId",function(a,
2081 b){var c=MCview.PDBfile.CALC_ID_PREFIX.length,f=a.indexOf(MCview.PDBfile.CALC_ID_PREFIX,c),c=a.substring(c,f-1);return MCview.PDBfile.CALC_ID_PREFIX+b.get(c)+":"+a.substring(f)},"~S,java.util.Hashtable");d(c$,"markCalcIds",function(){for(var a,b=this.seqs.iterator();b.hasNext()&&((a=b.next())||1);)if(null!=a.getAnnotation())for(var c,f=0,d=a.getAnnotation();f<d.length&&((c=d[f])||1);f++){var e=c.getCalcId();null==e&&(e="");c.setCalcId(MCview.PDBfile.CALC_ID_PREFIX);c.setProperty("PDBID",this.id);
2082 c.setProperty("oldCalcId",e)}});d(c$,"processPdbFileWithJmol",function(a){try{var b=W._4Name("jalview.ext.jmol.PDBFileWithJmol");if(null!=b){var c=b.getConstructor(E(-1,[jalview.io.FileParse])),f=E(-1,[new jalview.io.FileParse(this.getDataName(),this.type)]),d=c.newInstance(f),e=new jalview.datamodel.Alignment(b.getMethod("getSeqsAsArray",E(-1,[])).invoke(d,[]));b.getMethod("addAnnotations",E(-1,[jalview.datamodel.AlignmentI])).invoke(d,[e]);for(var g,h=e.getSequences().iterator();h.hasNext()&&((g=
2083 h.next())||1);)null!=g.getDatasetSequence()?g.getDatasetSequence().getPDBId().clear():g.getPDBId().clear();this.replaceAndUpdateChains(a,e,"pep",!1)}}catch(j){if(!y(j,ClassNotFoundException))throw j;}},"java.util.List");d(c$,"replaceAndUpdateChains",function(a,b,c){a=jalview.analysis.AlignSeq.replaceMatchingSeqsWith(this.seqs,this.annotations,a,b,c,!1);var f;for(b=this.chains.iterator();b.hasNext()&&((f=b.next())||1);){c=0;for(var d,e=a.get(0).iterator();e.hasNext()&&((d=e.next())||1);)if(c++,d===
2084 f.sequence||d.getDatasetSequence()===f.sequence){c=-c;break}0>c&&(c=-c-1,f.shadow=a.get(1).get(c),f.shadowMap=a.get(2).get(c).getMappingFromS1(!1))}},"java.util.List,jalview.datamodel.AlignmentI,~S,~B");d(c$,"processPdbFileWithAnnotate3d",function(a){try{var b=W._4Name("jalview.ws.jws1.Annotate3D");if(null!=b){for(var c=b.getConstructor(E(-1,[])).newInstance(E(-1,[])),f=b.getMethod("getRNAMLFor",E(-1,[jalview.io.FileParse])).invoke(c,E(-1,[new jalview.io.FileParse(this.getDataName(),this.type)])),
2085 d,e=f.getSequences().iterator();e.hasNext()&&((d=e.next())||1);)null!=d.getDatasetSequence()?null!=d.getDatasetSequence().getPDBId()&&d.getDatasetSequence().getPDBId().clear():null!=d.getPDBId()&&d.getPDBId().clear();this.replaceAndUpdateChains(a,f,"dna",!1)}}catch(g){if(!y(g,ClassNotFoundException))throw g;}},"java.util.List");d(c$,"safeName",function(a){for(var b=0;-1<(b=a.indexOf("/"))&&b<a.length;)a=a.substring(b+1);return a},"~S");d(c$,"makeResidueList",function(){for(var a=0;a<this.chains.size();a++)this.chains.elementAt(a).makeResidueList(this.visibleChainAnnotation)});
2086 d(c$,"makeCaBondList",function(){for(var a=0;a<this.chains.size();a++)this.chains.elementAt(a).makeCaBondList()});d(c$,"findChain",function(a){for(var b=0;b<this.chains.size();b++)if(this.chains.elementAt(b).id.equals(a))return this.chains.elementAt(b);return null},"~S");d(c$,"setChargeColours",function(){for(var a=0;a<this.chains.size();a++)this.chains.elementAt(a).setChargeColours()});d(c$,"setColours",function(a){for(var b=0;b<this.chains.size();b++)this.chains.elementAt(b).setChainColours(a)},
2087 "jalview.schemes.ColourSchemeI");d(c$,"setChainColours",function(){for(var a=0;a<this.chains.size();a++)this.chains.elementAt(a).setChainColours(java.awt.Color.getHSBColor(1/a,0.4,1))});c$.isRNA=d(c$,"isRNA",function(a){var b,c=0;for(a=a.getSequence();c<a.length&&((b=a[c])||1);c++)if("A"!=b&&"C"!=b&&"G"!=b&&"U"!=b)return!1;return!0},"jalview.datamodel.SequenceI");G(c$,"CALC_ID_PREFIX","JalviewPDB")});p("jalview.io");q(["jalview.io.FileParse"],"jalview.io.AlignFile","jalview.datamodel.Sequence jalview.util.MessageManager java.io.IOException java.lang.Error java.util.ArrayList $.Hashtable $.Vector".split(" "),
2088 function(){c$=s(function(){this.maxLength=this.noSeqs=0;this.properties=this.seqGroups=this.annotations=this.seqs=null;this.end=this.start=0;this.jvSuffix=!0;this.parseCalled=!1;this.newickStrings=null;r(this,arguments)},jalview.io,"AlignFile",jalview.io.FileParse);m(c$,function(){t(this,jalview.io.AlignFile,[]);this.initData()});m(c$,function(a,b){this.construct(!0,a,b)},"~S,~S");m(c$,function(a,b,c){t(this,jalview.io.AlignFile,[b,c]);this.initData();a&&this.doParse()},"~B,~S,~S");m(c$,function(a){this.construct(!0,
2089 a)},"jalview.io.FileParse");m(c$,function(a,b){t(this,jalview.io.AlignFile,[b]);this.initData();a&&this.doParse()},"~B,jalview.io.FileParse");d(c$,"doParse",function(){if(this.parseCalled)throw new java.io.IOException("Implementation error: Parser called twice for same data.\nNeed to call initData() again before parsing can be reattempted.");this.parseCalled=!0;this.parse();for(var a=0,b=this.seqs.size();a<b;a++)this.seqs.get(a).setIndex(a)});d(c$,"getSeqs",function(){return this.seqs});d(c$,"getSeqGroups",
2090 function(){return this.seqGroups});d(c$,"getSeqsAsArray",function(){for(var a=Array(this.seqs.size()),b=0;b<this.seqs.size();b++)a[b]=this.seqs.elementAt(b);return a});d(c$,"addAnnotations",function(a){this.addProperties(a);for(var b=0;b<this.annotations.size();b++){var c=this.annotations.elementAt(b);c.validateRangeAndDisplay();a.addAnnotation(c)}},"jalview.datamodel.AlignmentI");d(c$,"addSeqGroups",function(a){this.seqGroups=a.getGroups()},"jalview.datamodel.AlignmentI");d(c$,"addProperties",function(a){if(null!=
2091 this.properties&&0<this.properties.size())for(var b=this.properties.keys(),c=this.properties.elements();b.hasMoreElements();)a.setProperty(b.nextElement(),c.nextElement())},"jalview.datamodel.AlignmentI");d(c$,"setAlignmentProperty",function(a,b){if(null==a)throw Error(jalview.util.MessageManager.getString("error.implementation_error_cannot_have_null_alignment"));null!=b&&(null==this.properties&&(this.properties=new java.util.Hashtable),this.properties.put(a,b))},"~O,~O");d(c$,"getAlignmentProperty",
2092 function(a){return null!=this.properties&&null!=a?this.properties.get(a):null},"~O");d(c$,"initData",function(){this.seqs=new java.util.Vector;this.annotations=new java.util.Vector;this.seqGroups=new java.util.ArrayList;this.parseCalled=!1});d(c$,"setSeqs",function(a){this.seqs=new java.util.Vector;for(var b=0;b<a.length;b++)this.seqs.addElement(a[b])},"~A");d(c$,"addJVSuffix",function(a){this.jvSuffix=a},"~B");d(c$,"parseId",function(a){var b=null;a=a.trim();var c=a.indexOf(" ");-1<c?(b=new jalview.datamodel.Sequence(a.substring(0,
2093 c),""),b.setDescription(a.substring(c+1))):b=new jalview.datamodel.Sequence(a,"");return b},"~S");d(c$,"printId",function(a){return a.getDisplayId(this.jvSuffix)},"jalview.datamodel.SequenceI");d(c$,"addNewickTree",function(a,b){null==this.newickStrings&&(this.newickStrings=new java.util.Vector);this.newickStrings.addElement(E(-1,[a,b]))},"~S,~S");d(c$,"getTreeCount",function(){return null==this.newickStrings?0:this.newickStrings.size()});d(c$,"addGroups",function(a){for(var b,c=this.getSeqGroups().iterator();c.hasNext()&&
2094 ((b=c.next())||1);)a.addGroup(b)},"jalview.datamodel.AlignmentI")});p("jalview.io");q(null,"jalview.io.FileParse","jalview.io.AppletFormatAdapter jalview.util.MessageManager java.io.BufferedReader $.IOException $.InputStreamReader $.StringReader java.lang.Error java.net.URL java.util.zip.GZIPInputStream".split(" "),function(){c$=s(function(){this.dataName="unknown source";this.exportSettings=this.viewport=this.inFile=null;this.index=1;this.suffixSeparator="#";this.dataIn=this.type=this.suffix=this.newline=
2095 null;this.errormessage="UNITIALISED SOURCE";this.error=!0;this.warningMessage=null;this.READAHEAD_LIMIT=2048;r(this,arguments)},jalview.io,"FileParse");J(c$,function(){this.newline=System.getProperty("line.separator")});d(c$,"setNewlineString",function(a){this.newline=a},"~S");d(c$,"getNewlineString",function(){return this.newline});m(c$,function(){});m(c$,function(a){if(null==a)throw Error(jalview.util.MessageManager.getString("error.implementation_error_null_fileparse"));a!==this&&(this.index=++a.index,
2096 this.inFile=a.inFile,this.suffixSeparator=a.suffixSeparator,this.suffix=a.suffix,this.errormessage=a.errormessage,this.error=!1,this.type=a.type,this.dataIn=a.dataIn,null!=this.dataIn&&this.mark(),this.dataName=a.dataName)},"jalview.io.FileParse");d(c$,"tryAsGzipSource",function(a){a=new java.io.BufferedReader(new java.io.InputStreamReader(new java.util.zip.GZIPInputStream(a)));a.mark(2048);a.read();a.reset();return a},"java.io.InputStream");d(c$,"checkURLSource",function(a){this.errormessage="URL NOT FOUND";
2097 var b=new java.net.URL(a),c=null;if(a.toLowerCase().endsWith(".gz"))try{var f=b.openStream();this.dataIn=this.tryAsGzipSource(f);this.dataName=a;return!1}catch(d){if(y(d,Exception))c=d;else throw d;}try{this.dataIn=new java.io.BufferedReader(new java.io.InputStreamReader(b.openStream()))}catch(e){if(y(e,java.io.IOException)&&null!=c)throw new java.io.IOException(jalview.util.MessageManager.getString("exception.failed_to_resolve_gzip_stream"),c);throw e;}this.dataName=a;return!1},"~S");d(c$,"extractSuffix",
2098 function(a){var b=a.lastIndexOf(this.suffixSeparator);return-1<b&&b<a.length-1?(this.suffix=a.substring(b+1),a.substring(0,b)):null},"~S");m(c$,function(a,b){this.type=b;this.error=!1;if(!b.equals(jalview.io.AppletFormatAdapter.FILE))if(b.equals(jalview.io.AppletFormatAdapter.URL))try{try{this.checkURLSource(a),"#"==this.suffixSeparator&&this.extractSuffix(a)}catch(c){if(y(c,java.io.IOException)){var f=this.extractSuffix(a);if(null==f)throw c;try{this.checkURLSource(f)}catch(d){if(y(d,java.io.IOException))throw this.errormessage=
2099 "BAD URL WITH OR WITHOUT SUFFIX",c;throw d;}}else throw c;}}catch(e){if(y(e,Exception))this.errormessage="CANNOT ACCESS DATA AT URL '"+a+"' ("+e.getMessage()+")",this.error=!0;else throw e;}else if(b.equals(jalview.io.AppletFormatAdapter.PASTE))this.errormessage="PASTE INACCESSIBLE!",this.dataIn=new java.io.BufferedReader(new java.io.StringReader(a)),this.dataName="Paste";else if(b.equals(jalview.io.AppletFormatAdapter.CLASSLOADER)){this.errormessage="RESOURCE CANNOT BE LOCATED";var g=this.getClass().getResourceAsStream("/"+
2100 a);null==g&&(f=this.extractSuffix(a),null!=f&&(g=this.getClass().getResourceAsStream("/"+f)));null!=g?(this.dataIn=new java.io.BufferedReader(new java.io.InputStreamReader(g)),this.dataName=a):this.error=!0}else this.errormessage="PROBABLE IMPLEMENTATION ERROR : Datasource Type given as '"+(null!=b?b:"null")+"'",this.error=!0;if(null==this.dataIn||this.error)throw new java.io.IOException(jalview.util.MessageManager.formatMessage("exception.failed_to_read_data_from_source",E(-1,[this.errormessage])));
2101 this.error=!1;this.dataIn.mark(2048)},"~S,~S");d(c$,"mark",function(){if(null!=this.dataIn)this.dataIn.mark(2048);else throw new java.io.IOException(jalview.util.MessageManager.getString("exception.no_init_source_stream"));});d(c$,"nextLine",function(){if(!this.error)return this.dataIn.readLine();throw new java.io.IOException(jalview.util.MessageManager.formatMessage("exception.invalid_source_stream",E(-1,[this.errormessage])));});d(c$,"isExporting",function(){return!this.error&&null==this.dataIn});
2102 d(c$,"isValid",function(){return!this.error});d(c$,"close",function(){this.errormessage="EXCEPTION ON CLOSE";this.error=!0;this.dataIn.close();this.dataIn=null;this.errormessage="SOURCE IS CLOSED"});d(c$,"reset",function(){if(null!=this.dataIn&&!this.error)this.dataIn.reset();else throw new java.io.IOException(jalview.util.MessageManager.getString("error.implementation_error_reset_called_for_invalid_source"));});d(c$,"hasWarningMessage",function(){return null!=this.warningMessage&&0<this.warningMessage.length});
2103 d(c$,"getWarningMessage",function(){return this.warningMessage});d(c$,"getInFile",function(){return null!=this.inFile?this.inFile.getAbsolutePath()+" ("+this.index+")":"From Paste + ("+this.index+")"});d(c$,"getDataName",function(){return this.dataName});d(c$,"setDataName",function(a){this.dataName=a},"~S");d(c$,"getReader",function(){return null!=this.dataIn?this.dataIn:null});d(c$,"getViewport",function(){return this.viewport});d(c$,"setViewport",function(a){this.viewport=a},"jalview.api.AlignViewportI");
2104 d(c$,"getExportSettings",function(){return this.exportSettings});d(c$,"setExportSettings",function(a){this.exportSettings=a},"jalview.api.AlignExportSettingI");d(c$,"configureForView",function(a){null!=a&&this.setViewport(a.getAlignViewport())},"jalview.api.AlignmentViewPanel")});p("jalview.io");q(null,"jalview.io.AppletFormatAdapter","MCview.PDBfile jalview.datamodel.Alignment jalview.io.FileParse $.IdentifyFile jalview.jsdev.GenericFileAdapter jalview.util.MessageManager java.io.IOException java.lang.Exception $.StringBuffer".split(" "),
2105 function(){c$=s(function(){this.viewpanel=null;this.serviceSecondaryStruct=this.localSecondaryStruct=this.annotFromStructure=!1;this.exportSettings=this.newline=this.inFile=this.alignFile=null;r(this,arguments)},jalview.io,"AppletFormatAdapter");J(c$,function(){this.newline=System.getProperty("line.separator")});m(c$,function(){});m(c$,function(a){this.viewpanel=a},"jalview.api.AlignmentViewPanel");m(c$,function(a,b){this.viewpanel=a;this.exportSettings=b},"jalview.api.AlignmentViewPanel,jalview.api.AlignExportSettingI");
2106 c$.prettyPrint=d(c$,"prettyPrint",function(a){for(var b=new StringBuffer,c=0,f=a.length-1;c<f;c++)b.append(a[c]),b.append(", ");b.append(" and "+a[a.length-1]+".");return b.toString()},"~A");d(c$,"setNewlineString",function(a){this.newline=a},"~S");d(c$,"getNewlineString",function(){return this.newline});c$.isValidFormat=d(c$,"isValidFormat",function(a){return jalview.io.AppletFormatAdapter.isValidFormat(a,!1)},"~S");c$.isValidFormat=d(c$,"isValidFormat",function(a,b){for(var c,f=0,d=b?jalview.io.AppletFormatAdapter.WRITEABLE_FORMATS:
2107 jalview.io.AppletFormatAdapter.READABLE_FORMATS;f<d.length&&((c=d[f])||1);f++)if(c.equalsIgnoreCase(a))return!0;return!1},"~S,~B");d(c$,"readFile",function(a,b,c){this.inFile=a;try{return c.equals("FASTA")?this.alignFile=jalview.jsdev.GenericFileAdapter.getFile("FastaFile",[a,b]):c.equals("MSF")?this.alignFile=jalview.jsdev.GenericFileAdapter.getFile("MSFfile",[a,b]):c.equals("PileUp")?this.alignFile=jalview.jsdev.GenericFileAdapter.getFile("PileUpfile",[a,b]):c.equals("CLUSTAL")?this.alignFile=jalview.jsdev.GenericFileAdapter.getFile("ClustalFile",
2108 [a,b]):c.equals("BLC")?this.alignFile=jalview.jsdev.GenericFileAdapter.getFile("BLCFile",[a,b]):c.equals("PIR")?this.alignFile=jalview.jsdev.GenericFileAdapter.getFile("PIRFile",[a,b]):c.equals("PFAM")?this.alignFile=jalview.jsdev.GenericFileAdapter.getFile("PfamFile",[a,b]):c.equals("JnetFile")?(this.alignFile=jalview.jsdev.GenericFileAdapter.getFile("JPredFile",[a,b]),this.alignFile.removeNonSequences()):c.equals("PDB")?this.alignFile=new MCview.PDBfile(this.annotFromStructure,this.localSecondaryStruct,
2109 this.serviceSecondaryStruct,a,b):c.equals("STH")?this.alignFile=jalview.jsdev.GenericFileAdapter.getFile("StockholmFile",[a,b]):c.equals("SimpleBLAST")?this.alignFile=jalview.jsdev.GenericFileAdapter.getFile("SimpleBlastFile",[a,b]):c.equals("PHYLIP")?this.alignFile=jalview.jsdev.GenericFileAdapter.getFile("PhylipFile",[a,b]):c.equals("JSON")?this.alignFile=jalview.jsdev.GenericFileAdapter.getFile("JSONFile",[a,b]):c.equals("HTML")?this.alignFile=jalview.jsdev.GenericFileAdapter.getFile("HtmlFile",
2110 [a,b]):c.equals("RNAML")?this.alignFile=jalview.jsdev.GenericFileAdapter.getFile("RnamlFile",[a,b]):c.equals("GFF v2 or v3")&&(this.alignFile=jalview.jsdev.GenericFileAdapter.getFile("Gff3File",[a,b])),this.buildAlignmentFrom(this.alignFile)}catch(f){if(y(f,Exception)){f.printStackTrace();System.err.println("Failed to read alignment using the '"+c+"' reader.\n"+f);if(null!=f.getMessage()&&f.getMessage().startsWith(jalview.io.AppletFormatAdapter.INVALID_CHARACTERS))throw new java.io.IOException(f.getMessage());
2111 if(b.equalsIgnoreCase("Paste"))try{return this.alignFile=jalview.jsdev.GenericFileAdapter.getFile("FastaFile",[">UNKNOWN\n"+a,"Paste"]),this.buildAlignmentFrom(this.alignFile)}catch(d){if(y(d,Exception)){if(d.toString().startsWith(jalview.io.AppletFormatAdapter.INVALID_CHARACTERS))throw new java.io.IOException(f.getMessage());d.printStackTrace()}else throw d;}throw new java.io.IOException(jalview.io.AppletFormatAdapter.SUPPORTED_FORMATS);}throw f;}},"~S,~S,~S");d(c$,"readFromFile",function(a,b){this.inFile=
2112 a.getInFile();var c=a.type;try{return b.equals("FASTA")?this.alignFile=jalview.jsdev.GenericFileAdapter.getFile("FastaFile",[a]):b.equals("MSF")?this.alignFile=jalview.jsdev.GenericFileAdapter.getFile("MSFfile",[a]):b.equals("PileUp")?this.alignFile=jalview.jsdev.GenericFileAdapter.getFile("PileUpfile",[a]):b.equals("CLUSTAL")?this.alignFile=jalview.jsdev.GenericFileAdapter.getFile("ClustalFile",[a]):b.equals("BLC")?this.alignFile=jalview.jsdev.GenericFileAdapter.getFile("BLCFile",[a]):b.equals("PIR")?
2113 this.alignFile=jalview.jsdev.GenericFileAdapter.getFile("PIRFile",[a]):b.equals("PFAM")?this.alignFile=jalview.jsdev.GenericFileAdapter.getFile("PfamFile",[a]):b.equals("JnetFile")?(this.alignFile=jalview.jsdev.GenericFileAdapter.getFile("JPredFile",[a]),this.alignFile.removeNonSequences()):b.equals("PDB")?this.alignFile=new MCview.PDBfile(this.annotFromStructure,this.localSecondaryStruct,this.serviceSecondaryStruct,a):b.equals("STH")?this.alignFile=jalview.jsdev.GenericFileAdapter.getFile("StockholmFile",
2114 [a]):b.equals("RNAML")?this.alignFile=jalview.jsdev.GenericFileAdapter.getFile("RnamlFile",[a]):b.equals("SimpleBLAST")?this.alignFile=jalview.jsdev.GenericFileAdapter.getFile("SimpleBlastFile",[a]):b.equals("PHYLIP")?this.alignFile=jalview.jsdev.GenericFileAdapter.getFile("PhylipFile",[a]):b.equals("GFF v2 or v3")?this.alignFile=jalview.jsdev.GenericFileAdapter.getFile("Gff3File",[this.inFile,c]):b.equals("JSON")?this.alignFile=jalview.jsdev.GenericFileAdapter.getFile("JSONFile",[a]):b.equals("HTML")&&
2115 (this.alignFile=jalview.jsdev.GenericFileAdapter.getFile("HtmlFile",[a])),this.buildAlignmentFrom(this.alignFile)}catch(f){if(y(f,Exception)){f.printStackTrace();System.err.println("Failed to read alignment using the '"+b+"' reader.\n"+f);if(null!=f.getMessage()&&f.getMessage().startsWith(jalview.io.AppletFormatAdapter.INVALID_CHARACTERS))throw new java.io.IOException(f.getMessage());if(c.equalsIgnoreCase("Paste"))try{return this.alignFile=jalview.jsdev.GenericFileAdapter.getFile("FastaFile",[">UNKNOWN\n"+
2116 this.inFile,"Paste"]),this.buildAlignmentFrom(this.alignFile)}catch(d){if(y(d,Exception)){if(d.toString().startsWith(jalview.io.AppletFormatAdapter.INVALID_CHARACTERS))throw new java.io.IOException(f.getMessage());d.printStackTrace()}else throw d;}throw new java.io.IOException(jalview.io.AppletFormatAdapter.SUPPORTED_FORMATS);}throw f;}},"jalview.io.FileParse,~S");d(c$,"buildAlignmentFrom",function(){var a=new jalview.datamodel.Alignment(this.alignFile.getSeqsAsArray());this.alignFile.addAnnotations(a);
2117 this.alignFile.addGroups(a);return a},"jalview.io.AlignFile");d(c$,"formatSequences",function(a,b,c,f){var d=c.getAlignViewport().getAlignmentView(f,!1).getVisibleAlignment(c.getAlignViewport().getGapCharacter());f=c.getAlignViewport().getVisibleAlignmentAnnotation(f);if(null!=f){var e;for(f=f.iterator();f.hasNext()&&((e=f.next())||1);)d.addAnnotation(e)}this.viewpanel=c;return this.formatSequences(a,d,b)},"~S,~B,jalview.api.AlignmentViewPanel,~B");d(c$,"formatSequences",function(a,b,c){try{var f=
2118 null;if(a.equalsIgnoreCase("FASTA"))f=jalview.jsdev.GenericFileAdapter.getFile("FastaFile",[]);else if(a.equalsIgnoreCase("MSF"))f=jalview.jsdev.GenericFileAdapter.getFile("MSFfile",[]);else if(a.equalsIgnoreCase("PileUp"))f=jalview.jsdev.GenericFileAdapter.getFile("PileUpfile",[]);else if(a.equalsIgnoreCase("CLUSTAL"))f=jalview.jsdev.GenericFileAdapter.getFile("ClustalFile",[]);else if(a.equalsIgnoreCase("BLC"))f=jalview.jsdev.GenericFileAdapter.getFile("BLCFile",[]);else if(a.equalsIgnoreCase("PIR"))f=
2119 jalview.jsdev.GenericFileAdapter.getFile("PIRFile",[]);else if(a.equalsIgnoreCase("PFAM"))f=jalview.jsdev.GenericFileAdapter.getFile("PfamFile",[]);else if(a.equalsIgnoreCase("STH"))f=jalview.jsdev.GenericFileAdapter.getFile("StockholmFile",[b]);else if(a.equalsIgnoreCase("AMSA"))f=jalview.jsdev.GenericFileAdapter.getFile("AMSAFile",[b]);else if(a.equalsIgnoreCase("PHYLIP"))f=jalview.jsdev.GenericFileAdapter.getFile("PhylipFile",[]);else if(a.equalsIgnoreCase("JSON"))f=jalview.jsdev.GenericFileAdapter.getFile("JSONFile",
2120 []);else if(a.equalsIgnoreCase("RNAML"))f=jalview.jsdev.GenericFileAdapter.getFile("RnamlFile",[]);else throw new Exception(jalview.util.MessageManager.getString("error.implementation_error_unknown_file_format_string"));f.setNewlineString(this.newline);f.addJVSuffix(c);f.setExportSettings(this.exportSettings);f.configureForView(this.viewpanel);null==this.viewpanel||null==this.viewpanel.getAlignment()||this.viewpanel.getAlignment()!==b?f.setSeqs(b.getSequencesArray()):f.setSeqs(this.viewpanel.getAlignment().getSequencesArray());
2121 var d=f.print();f.hasWarningMessage()&&System.err.println("Warning raised when writing as "+a+" : "+f.getWarningMessage());return d}catch(e){if(y(e,Exception))System.err.println("Failed to write alignment as a '"+a+"' file\n"),e.printStackTrace();else throw e;}return null},"~S,jalview.datamodel.AlignmentI,~B");c$.checkProtocol=d(c$,"checkProtocol",function(a){var b=jalview.io.AppletFormatAdapter.FILE;a=a.toLowerCase().trim();if(0==a.indexOf("http:")||0==a.indexOf("https:")||0==a.indexOf("file:"))b=
2122 jalview.io.AppletFormatAdapter.URL;return b},"~S");c$.resolveProtocol=d(c$,"resolveProtocol",function(a,b){return jalview.io.AppletFormatAdapter.resolveProtocol(a,b,!1)},"~S,~S");c$.resolveProtocol=d(c$,"resolveProtocol",function(a,b,c){var f=null;c&&System.out.println("resolving datasource started with:\n>>file\n"+a+">>endfile");try{var f=!1,d=System.getSecurityManager().getClass().getResourceAsStream("/"+a);null!=d&&(f=!0,d.close());c&&System.err.println("Resource '"+a+"' was "+(f?"":"not")+" located by classloader.")}catch(e){if(y(e,
2123 Exception))System.err.println("Exception checking resources: "+a+" "+e);else throw e;}f=-1<a.indexOf("://")?jalview.io.AppletFormatAdapter.URL:jalview.io.AppletFormatAdapter.FILE;d=null;try{c&&System.out.println("Trying to get contents of resource as "+f+":"),d=new jalview.io.FileParse(a,f),d.isValid()?c&&System.out.println("Successful."):d=null}catch(g){if(y(g,Exception))c&&System.err.println("Exception when accessing content: "+g),d=null;else throw g;}if(null==d){c&&System.out.println("Accessing as paste.");
2124 f=jalview.io.AppletFormatAdapter.PASTE;d=null;try{d=new jalview.io.FileParse(a,f),d.isValid()||(d=null)}catch(h){if(y(h,Exception))System.err.println("Failed to access content as paste!"),h.printStackTrace(),d=null;else throw h;}}if(null==d)return null;if(null==b||0==b.length)return f;try{var j=(new jalview.io.IdentifyFile).Identify(a,f);if(null==j)return c&&System.out.println("Format not identified. Inaccessible file."),null;c&&System.out.println("Format identified as "+j+"and expected as "+b);if(j.equals(b))return c&&
2125 System.out.println("Protocol identified as "+f),f;c&&System.out.println("File deemed not accessible via "+f);d.close()}catch(n){if(y(n,Exception))c&&(System.err.println("File deemed not accessible via "+f),n.printStackTrace());else throw n;}return null},"~S,~S,~B");d(c$,"getAlignFile",function(){return this.alignFile});d(c$,"setAlignFile",function(a){this.alignFile=a},"jalview.io.AlignFile");G(c$,"FILE","File","URL","URL","PASTE","Paste","CLASSLOADER","ClassLoader");c$.READABLE_FORMATS=c$.prototype.READABLE_FORMATS=
2126 E(-1,"BLC;CLUSTAL;FASTA;MSF;PileUp;PIR;PFAM;STH;PDB;JnetFile;RNAML;PHYLIP;JSON;GFF v2 or v3;HTML".split(";"));c$.READABLE_EXTENSIONS=c$.prototype.READABLE_EXTENSIONS=E(-1,"fa, fasta, mfa, fastq;aln;pfam;msf;pir;blc;amsa;sto,stk;xml,rnaml;phy;json;.gff2,gff3;jar,jvp;html".split(";"));c$.READABLE_FNAMES=c$.prototype.READABLE_FNAMES=E(-1,"Fasta;Clustal;PFAM;MSF;PIR;BLC;AMSA;Stockholm;RNAML;PHYLIP;JSON;GFF v2 or v3;Jalview;HTML".split(";"));c$.WRITEABLE_FORMATS=c$.prototype.WRITEABLE_FORMATS=E(-1,"BLC CLUSTAL FASTA MSF PileUp PIR PFAM AMSA STH PHYLIP JSON".split(" "));
2127 c$.WRITABLE_EXTENSIONS=c$.prototype.WRITABLE_EXTENSIONS=E(-1,"fa, fasta, mfa, fastq;aln;pfam;msf;pir;blc;amsa;sto,stk;phy;json;jvp".split(";"));c$.WRITABLE_FNAMES=c$.prototype.WRITABLE_FNAMES=E(-1,"Fasta Clustal PFAM MSF PIR BLC AMSA STH PHYLIP JSON Jalview".split(" "));G(c$,"INVALID_CHARACTERS","Contains invalid characters");c$.SUPPORTED_FORMATS=c$.prototype.SUPPORTED_FORMATS="Formats currently supported are\n"+jalview.io.AppletFormatAdapter.prettyPrint(jalview.io.AppletFormatAdapter.READABLE_FORMATS)});
2128 p("jalview.io");q(null,"jalview.io.IdentifyFile",["jalview.io.FileParse"],function(){c$=B(jalview.io,"IdentifyFile");d(c$,"Identify",function(a,b){var c="UNIDENTIFIED FILE PARSING ERROR",f=null;try{if(f=new jalview.io.FileParse(a,b),f.isValid())return this.Identify(f)}catch(d){if(y(d,Exception))System.err.println("Error whilst identifying"),d.printStackTrace(System.err),c=d.getMessage();else throw d;}return null!=f?f.errormessage:c},"~S,~S");d(c$,"Identify",function(a){return this.Identify(a,!0)},
2129 "jalview.io.FileParse");d(c$,"Identify",function(a,b){var c="PFAM",f,d=0,e=!1,g=!1;try{for(b||a.mark();null!=(f=a.nextLine());){d+=f.trim().length;if(!e)for(var h=0;!g&&h<f.length;h++)var j=f.charAt(h),g=32>j.charCodeAt(0)&&"\t"!=j&&"\n"!=j&&"\r"!=j&&5!=j.charCodeAt(0)&&27!=j.charCodeAt(0);if(g){if(null!=a.inFile){var n=a.inFile.getName();if(-1<n.lastIndexOf(".jar")||-1<n.lastIndexOf(".zip"))c="Jalview"}if(!e&&f.startsWith("PK")){c="Jalview";break}}f=f.toUpperCase();if(f.startsWith("##GFF-VERSION")){c=
2130 "GFF v2 or v3";break}if(-1<f.indexOf("# STOCKHOLM")){c="STH";break}if(f.matches("<HTML(\"[^\"]*\"|'[^']*'|[^'\">])*>")){c="HTML";break}if(f.matches("<RNAML (\"[^\"]*\"|'[^']*'|[^'\">])*>")){c="RNAML";break}if(-1<f.indexOf('{"')){c="JSON";break}if(!(1>f.length||0==f.indexOf("#"))){if(-1<f.indexOf("PILEUP")){c="PileUp";break}if(0==f.indexOf("//")||-1<f.indexOf("!!")&&f.indexOf("!!")<f.indexOf("_MULTIPLE_ALIGNMENT ")){c="MSF";break}else if(-1<f.indexOf("CLUSTAL")){c="CLUSTAL";break}else if(-1<f.indexOf(">")){e=
2131 g=!1;if(-1<f.indexOf(">P1;")||-1<f.indexOf(">DL;"))g=!0,c="PIR";f=a.nextLine();if(-1<f.indexOf(">"))c="BLC";else{var m=a.nextLine(),u=a.nextLine(),p;g&&(e=null!=m&&-1<m.indexOf("*")||null!=u&&-1<u.indexOf("*"));if(null!=u&&-1<(p=f.indexOf("*")))c=0==p&&p==u.indexOf("*")?"BLC":"FASTA";else if(c="FASTA",!g)break}if(g){f=null;if(!e){do{try{f=a.nextLine()}catch(q){if(!y(q,java.io.IOException))throw q;}null!=f&&-1<f.indexOf("*")&&(e=!0)}while(null!=f&&!e)}if(e){c="PIR";break}else c="FASTA"}break}else if(0==
2132 f.indexOf("HEADER")||0==f.indexOf("ATOM")){c="PDB";break}else if(f.matches("\\s*\\d+\\s+\\d+\\s*")){c="PHYLIP";break}else if(!e&&"*"!=f.charAt(0)&&" "!=f.charAt(0)&&f.indexOf(":")<f.indexOf(",")){c="JnetFile";break}}e=!0}b?a.close():a.reset()}catch(s){if(y(s,Exception))return System.err.println("File Identification failed!\n"+s),a.errormessage;throw s;}return 0==d?(System.err.println("File Identification failed! - Empty file was read."),"EMPTY DATA FILE"):c},"jalview.io.FileParse,~B");G(c$,"GFF3File",
2133 "GFF v2 or v3")});p("jalview.jsdev");q(["jalview.io.AlignFile"],"jalview.jsdev.GenericFileAdapter",["jalview.datamodel.AlignmentI","jalview.io.FileParse","java.io.BufferedReader","$.InputStreamReader","java.net.URL"],function(){c$=B(jalview.jsdev,"GenericFileAdapter",jalview.io.AlignFile);c$.getFile=d(c$,"getFile",function(a,b){var c=null;try{c=W._4Name("jalview.io."+a)}catch(f){if(y(f,ClassNotFoundException))return System.err.println("did not find file jalview.io."+a),null;throw f;}var d,e=null;
2134 try{switch(b.length){case 0:return c.newInstance();case 1:d=v(b[0],jalview.io.FileParse)?c.getConstructor([jalview.io.FileParse]):c.getConstructor([jalview.datamodel.AlignmentI]);break;case 2:d=c.getConstructor([String,String]);break;default:return null}return d.newInstance(b)}catch(g){if(y(g,InstantiationException))e=g;else if(y(g,IllegalAccessException))e=g;else if(y(g,NoSuchMethodException))e=g;else if(y(g,SecurityException))e=g;else if(y(g,IllegalArgumentException))e=g;else if(y(g,java.lang.reflect.InvocationTargetException))e=
2135 g;else throw g;}null!=e&&(System.err.println("Error in GenericFileAdapter: "+e),alert(e));return null},"~S,~A");c$.isJS=d(c$,"isJS",function(){return!0});c$.getReader=d(c$,"getReader",function(a,b){if(!b&&!jalview.jsdev.GenericFileAdapter.isJS())return new java.io.BufferedReader(new java.io.FileReader(a));0>a.indexOf("//")&&(a="file://"+a);return new java.io.BufferedReader(new java.io.InputStreamReader((new java.net.URL(a)).openStream()))},"~S,~B");G(c$,"TCOFFEE_SCORE","TCoffeeScore","Phylip_FILE",
2136 1,"Phylip_FILE_EXT","phy","Phylip_FILE_DESC","PHYLIP","JSON_FILE",2,"JSON_FILE_EXT","json","JSON_FILE_DESC","JSON","Html_FILE",3,"Html_FILE_EXT","html","Html_FILE_DESC","HTML")});p("java.util.zip");q(["java.util.zip.InflaterInputStream","$.CRC32"],"java.util.zip.GZIPInputStream",["java.io.EOFException","$.IOException","java.util.zip.CheckedInputStream","$.Inflater","$.ZipException"],function(){c$=s(function(){this.crc=null;this.$closed=this.eos=!1;this.tmpbuf=null;r(this,arguments)},java.util.zip,
2137 "GZIPInputStream",java.util.zip.InflaterInputStream);J(c$,function(){this.crc=new java.util.zip.CRC32;this.tmpbuf=S(128,0)});d(c$,"ensureOpen",function(){if(this.$closed)throw new java.io.IOException("Stream closed");});m(c$,function(a,b){t(this,java.util.zip.GZIPInputStream,[a,(new java.util.zip.Inflater).init(0,!0),b]);this.readHeader(a)},"java.io.InputStream,~N");e(c$,"read",function(a,b,c){this.ensureOpen();if(this.eos)return-1;var f=this.readInf(a,b,c);if(-1==f)if(this.readTrailer())this.eos=
2138 !0;else return this.read(a,b,c);else this.crc.update(a,b,f);return f},"~A,~N,~N");d(c$,"close",function(){this.$closed||(K(this,java.util.zip.GZIPInputStream,"close",[]),this.$closed=this.eos=!0)});d(c$,"readHeader",function(a){a=(new java.util.zip.CheckedInputStream(a)).set(this.crc);this.crc.reset();if(35615!=this.readUShort(a))throw new java.util.zip.ZipException("Not in GZIP format");if(8!=this.readUByte(a))throw new java.util.zip.ZipException("Unsupported compression method");var b=this.readUByte(a);
2139 this.skipBytes(a,6);var c=10;if(4==(b&4)){var f=this.readUShort(a);this.skipBytes(a,f);c+=f+2}if(8==(b&8)){do c++;while(0!=this.readUByte(a))}if(16==(b&16)){do c++;while(0!=this.readUByte(a))}if(2==(b&2)){b=this.crc.getValue()&65535;if(this.readUShort(a)!=b)throw new java.util.zip.ZipException("Corrupt GZIP header");c+=2}this.crc.reset();return c},"java.io.InputStream");d(c$,"readTrailer",function(){return!0});d(c$,"readUShort",function(a){var b=this.readUByte(a);return this.readUByte(a)<<8|b},"java.io.InputStream");
2140 d(c$,"readUByte",function(a){a=a.readByteAsInt();if(-1==a)throw new java.io.EOFException;if(-1>a||255<a)throw new java.io.IOException(this.$in.getClass().getName()+".read() returned value out of range -1..255: "+a);return a},"java.io.InputStream");d(c$,"skipBytes",function(a,b){for(;0<b;){var c=a.read(this.tmpbuf,0,b<this.tmpbuf.length?b:this.tmpbuf.length);if(-1==c)throw new java.io.EOFException;b-=c}},"java.io.InputStream,~N");G(c$,"GZIP_MAGIC",35615,"FHCRC",2,"FEXTRA",4,"FNAME",8,"FCOMMENT",16)});
2141 p("java.util.zip");q(["JU.InflaterInputStream"],"java.util.zip.InflaterInputStream",null,function(){c$=s(function(){this.inf=null;r(this,arguments)},java.util.zip,"InflaterInputStream",JU.InflaterInputStream);m(c$,function(a,b,c){t(this,java.util.zip.InflaterInputStream,[a,b,c,!0]);this.inf=b},"java.io.InputStream,java.util.zip.Inflater,~N")});p("JU");q(["java.io.FilterInputStream"],"JU.InflaterInputStream",["java.io.EOFException","$.IOException","java.lang.IllegalArgumentException","$.IndexOutOfBoundsException",
2142 "$.NullPointerException"],function(){c$=s(function(){this.buf=this.inflater=null;this.len=0;this.eof=this.closed=!1;this.close_in=!0;this.myinflater=!1;this.b=this.byte1=null;r(this,arguments)},JU,"InflaterInputStream",java.io.FilterInputStream);J(c$,function(){this.byte1=S(1,0);this.b=S(512,0)});m(c$,function(a,b,c,f){t(this,JU.InflaterInputStream,[a]);this.inflater=b;this.buf=S(c,0);this.close_in=f},"java.io.InputStream,JU.Inflater,~N,~B");e(c$,"readByteAsInt",function(){if(this.closed)throw new java.io.IOException("Stream closed");
2143 return-1==this.read(this.byte1,0,1)?-1:this.byte1[0]&255});e(c$,"read",function(a,b,c){return this.readInf(a,b,c)},"~A,~N,~N");d(c$,"readInf",function(a,b,c){if(this.closed)throw new java.io.IOException("Stream closed");if(null==a)throw new NullPointerException;if(0>b||0>c||c>a.length-b)throw new IndexOutOfBoundsException;if(0==c)return 0;if(this.eof)return-1;var f=0;for(this.inflater.setOutput(a,b,c);!this.eof;){0==this.inflater.avail_in&&this.fill();a=this.inflater.inflate(0);f+=this.inflater.next_out_index-
2144 b;b=this.inflater.next_out_index;switch(a){case -3:throw new java.io.IOException(this.inflater.msg);case 1:case 2:if(this.eof=!0,2==a)return-1}if(0==this.inflater.avail_out)break}return f},"~A,~N,~N");e(c$,"available",function(){if(this.closed)throw new java.io.IOException("Stream closed");return this.eof?0:1});e(c$,"skip",function(a){if(0>a)throw new IllegalArgumentException("negative skip length");if(this.closed)throw new java.io.IOException("Stream closed");a=Math.min(a,2147483647);for(var b=0;b<
2145 a;){var c=a-b;c>this.b.length&&(c=this.b.length);c=this.read(this.b,0,c);if(-1==c){this.eof=!0;break}b+=c}return b},"~N");e(c$,"close",function(){this.closed||(this.myinflater&&this.inflater.end(),this.close_in&&this.$in.close(),this.closed=!0)});d(c$,"fill",function(){if(this.closed)throw new java.io.IOException("Stream closed");this.len=this.$in.read(this.buf,0,this.buf.length);if(-1==this.len)if(0==this.inflater.istate.wrap&&!this.inflater.finished())this.buf[0]=0,this.len=1;else{if(-1!=this.inflater.istate.was)throw new java.io.IOException("footer is not found");
2146 throw new java.io.EOFException("Unexpected end of ZLIB input stream");}this.inflater.setInput(this.buf,0,this.len,!0)});e(c$,"markSupported",function(){return!1});e(c$,"mark",function(){},"~N");e(c$,"reset",function(){throw new java.io.IOException("mark/reset not supported");});d(c$,"getTotalIn",function(){return this.inflater.getTotalIn()});d(c$,"getTotalOut",function(){return this.inflater.getTotalOut()});d(c$,"getAvailIn",function(){if(0>=this.inflater.avail_in)return null;var a=S(this.inflater.avail_in,
2147 0);System.arraycopy(this.inflater.next_in,this.inflater.next_in_index,a,0,this.inflater.avail_in);return a});d(c$,"readHeader",function(){var a="".getBytes();this.inflater.setInput(a,0,0,!1);this.inflater.setOutput(a,0,0);a=this.inflater.inflate(0);if(this.inflater.istate.inParsingHeader()){var b=S(1,0);do{if(0>=this.$in.read(b,0,1))throw new java.io.IOException("no input");this.inflater.setInput(b,0,b.length,!1);a=this.inflater.inflate(0);if(0!=a)throw new java.io.IOException(this.inflater.msg);
2148 }while(this.inflater.istate.inParsingHeader())}});d(c$,"getInflater",function(){return this.inflater});G(c$,"DEFAULT_BUFSIZE",512)});p("java.util.zip");q(["JU.CRC32"],"java.util.zip.CRC32",null,function(){c$=B(java.util.zip,"CRC32",JU.CRC32)});p("JU");q(["JU.Checksum"],"JU.CRC32",null,function(){c$=s(function(){this.crc=0;this.b1=null;r(this,arguments)},JU,"CRC32",null,JU.Checksum);J(c$,function(){this.b1=S(1,0)});e(c$,"update",function(a,b,c){for(var f=~this.crc;0<=--c;)f=JU.CRC32.crc_table[(f^a[b++])&
2149 255]^f>>>8;this.crc=~f},"~A,~N,~N");e(c$,"reset",function(){this.crc=0});e(c$,"resetLong",function(a){this.crc=a&4294967295},"~N");e(c$,"getValue",function(){return this.crc&4294967295});e(c$,"updateByteAsInt",function(a){this.b1[0]=a;this.update(this.b1,0,1)},"~N");G(c$,"crc_table",w(-1,[0,1996959894,-301047508,-1727442502,124634137,1886057615,-379345611,-1637575261,249268274,2044508324,-522852066,-1747789432,162941995,2125561021,-407360249,-1866523247,498536548,1789927666,-205950648,-2067906082,
2150 450548861,1843258603,-187386543,-2083289657,325883990,1684777152,-43845254,-1973040660,335633487,1661365465,-99664541,-1928851979,997073096,1281953886,-715111964,-1570279054,1006888145,1258607687,-770865667,-1526024853,901097722,1119000684,-608450090,-1396901568,853044451,1172266101,-589951537,-1412350631,651767980,1373503546,-925412992,-1076862698,565507253,1454621731,-809855591,-1195530993,671266974,1594198024,-972236366,-1324619484,795835527,1483230225,-1050600021,-1234817731,1994146192,31158534,
2151 -1731059524,-271249366,1907459465,112637215,-1614814043,-390540237,2013776290,251722036,-1777751922,-519137256,2137656763,141376813,-1855689577,-429695999,1802195444,476864866,-2056965928,-228458418,1812370925,453092731,-2113342271,-183516073,1706088902,314042704,-1950435094,-54949764,1658658271,366619977,-1932296973,-69972891,1303535960,984961486,-1547960204,-725929758,1256170817,1037604311,-1529756563,-740887301,1131014506,879679996,-1385723834,-631195440,1141124467,855842277,-1442165665,-586318647,
2152 1342533948,654459306,-1106571248,-921952122,1466479909,544179635,-1184443383,-832445281,1591671054,702138776,-1328506846,-942167884,1504918807,783551873,-1212326853,-1061524307,-306674912,-1698712650,62317068,1957810842,-355121351,-1647151185,81470997,1943803523,-480048366,-1805370492,225274430,2053790376,-468791541,-1828061283,167816743,2097651377,-267414716,-2029476910,503444072,1762050814,-144550051,-2140837941,426522225,1852507879,-19653770,-1982649376,282753626,1742555852,-105259153,-1900089351,
2153 397917763,1622183637,-690576408,-1580100738,953729732,1340076626,-776247311,-1497606297,1068828381,1219638859,-670225446,-1358292148,906185462,1090812512,-547295293,-1469587627,829329135,1181335161,-882789492,-1134132454,628085408,1382605366,-871598187,-1156888829,570562233,1426400815,-977650754,-1296233688,733239954,1555261956,-1026031705,-1244606671,752459403,1541320221,-1687895376,-328994266,1969922972,40735498,-1677130071,-351390145,1913087877,83908371,-1782625662,-491226604,2075208622,213261112,
2154 -1831694693,-438977011,2094854071,198958881,-2032938284,-237706686,1759359992,534414190,-2118248755,-155638181,1873836001,414664567,-2012718362,-15766928,1711684554,285281116,-1889165569,-127750551,1634467795,376229701,-1609899400,-686959890,1308918612,956543938,-1486412191,-799009033,1231636301,1047427035,-1362007478,-640263460,1088359270,936918E3,-1447252397,-558129467,1202900863,817233897,-1111625188,-893730166,1404277552,615818150,-1160759803,-841546093,1423857449,601450431,-1285129682,-1000256840,
2155 1567103746,711928724,-1274298825,-1022587231,1510334235,755167117]))});p("JU");M(JU,"Checksum");p("java.util.zip");q(["java.io.FilterInputStream"],"java.util.zip.CheckedInputStream",null,function(){c$=s(function(){this.cksum=null;r(this,arguments)},java.util.zip,"CheckedInputStream",java.io.FilterInputStream);d(c$,"set",function(a){this.$in=this.$in;this.cksum=a;return this},"JU.Checksum");e(c$,"readByteAsInt",function(){var a=this.$in.readByteAsInt();-1!=a&&this.cksum.updateByteAsInt(a);return a});
2156 e(c$,"read",function(a,b,c){c=this.$in.read(a,b,c);-1!=c&&this.cksum.update(a,b,c);return c},"~A,~N,~N");e(c$,"skip",function(a){for(var b=S(512,0),c=0;c<a;){var f=a-c,f=this.read(b,0,f<b.length?f:b.length);if(-1==f)break;c+=f}return c},"~N");d(c$,"getChecksum",function(){return this.cksum})});p("java.util.zip");q(["JU.Inflater"],"java.util.zip.Inflater",null,function(){c$=B(java.util.zip,"Inflater",JU.Inflater);d(c$,"initialize",function(a){return this.init(0,a)},"~B")});p("JU");q(["JU.ZStream"],
2157 "JU.Inflater",["JU.Inflate"],function(){c$=B(JU,"Inflater",JU.ZStream);d(c$,"init",function(a,b){this.setAdler32();0==a&&(a=15);this.istate=new JU.Inflate(this);this.istate.inflateInit(b?-a:a);return this},"~N,~B");e(c$,"inflate",function(a){return null==this.istate?-2:this.istate.inflate(a)},"~N");e(c$,"end",function(){return null==this.istate?-2:this.istate.inflateEnd()});d(c$,"sync",function(){return null==this.istate?-2:this.istate.inflateSync()});d(c$,"syncPoint",function(){return null==this.istate?
2158 -2:this.istate.inflateSyncPoint()});d(c$,"setDictionary",function(a,b){return null==this.istate?-2:this.istate.inflateSetDictionary(a,b)},"~A,~N");e(c$,"finished",function(){return 12==this.istate.mode});d(c$,"reset",function(){this.avail_in=0;null!=this.istate&&this.istate.reset()});G(c$,"MAX_WBITS",15,"DEF_WBITS",15,"$Z_STREAM_ERROR",-2)});p("JU");q(null,"JU.ZStream",["JU.Adler32"],function(){c$=s(function(){this.next_in=null;this.total_in=this.avail_in=this.next_in_index=0;this.next_out=null;this.total_out=
2159 this.avail_out=this.next_out_index=0;this.istate=this.dstate=this.msg=null;this.data_type=0;this.checksum=null;r(this,arguments)},JU,"ZStream");d(c$,"setAdler32",function(){this.checksum=new JU.Adler32});d(c$,"inflate",function(a){return null==this.istate?-2:this.istate.inflate(a)},"~N");d(c$,"deflate",function(a){return null==this.dstate?-2:this.dstate.deflate(a)},"~N");d(c$,"flush_pending",function(){var a=this.dstate.pending;a>this.avail_out&&(a=this.avail_out);0!=a&&(System.arraycopy(this.dstate.pending_buf,
2160 this.dstate.pending_out,this.next_out,this.next_out_index,a),this.next_out_index+=a,this.dstate.pending_out+=a,this.total_out+=a,this.avail_out-=a,this.dstate.pending-=a,0==this.dstate.pending&&(this.dstate.pending_out=0))});d(c$,"read_buf",function(a,b,c){var f=this.avail_in;f>c&&(f=c);if(0==f)return 0;this.avail_in-=f;0!=this.dstate.wrap&&this.checksum.update(this.next_in,this.next_in_index,f);System.arraycopy(this.next_in,this.next_in_index,a,b,f);this.next_in_index+=f;this.total_in+=f;return f},
2161 "~A,~N,~N");d(c$,"getAdler",function(){return this.checksum.getValue()});d(c$,"free",function(){this.msg=this.next_out=this.next_in=null});d(c$,"setOutput",function(a,b,c){this.next_out=a;this.next_out_index=b;this.avail_out=c},"~A,~N,~N");d(c$,"setInput",function(a,b,c,f){0>=c&&f&&null!=this.next_in||(0<this.avail_in&&f?(f=S(this.avail_in+c,0),System.arraycopy(this.next_in,this.next_in_index,f,0,this.avail_in),System.arraycopy(a,b,f,this.avail_in,c),this.next_in=f,this.next_in_index=0,this.avail_in+=
2162 c):(this.next_in=a,this.next_in_index=b,this.avail_in=c))},"~A,~N,~N,~B");d(c$,"getAvailIn",function(){return this.avail_in});d(c$,"getTotalOut",function(){return this.total_out});d(c$,"getTotalIn",function(){return this.total_in});c$.getBytes=d(c$,"getBytes",function(a){for(var b=[],c=0;c<a.length;c++){var f=a.charCodeAt(c);127>=f?b.push(f):2047>=f?(b.push(192|f>>6&31),b.push(128|f&63)):65535>=f?(b.push(224|f>>12&15),b.push(128|f>>6&63),b.push(128|f&63)):b.push(63)}return Int32Array!=Array?new Int32Array(b):
2163 b},"~S");G(c$,"Z_STREAM_ERROR",-2)});p("JU");q(["JU.Checksum"],"JU.Adler32",null,function(){c$=s(function(){this.s1=1;this.s2=0;this.b1=null;r(this,arguments)},JU,"Adler32",null,JU.Checksum);J(c$,function(){this.b1=S(1,0)});e(c$,"resetLong",function(a){this.s1=a&65535;this.s2=a>>16&65535},"~N");e(c$,"reset",function(){this.s1=1;this.s2=0});e(c$,"getValue",function(){return this.s2<<16|this.s1});e(c$,"update",function(a,b,c){if(1==c)this.s1+=a[b++]&255,this.s2+=this.s1;else{for(var f=F(c/5552),d=c%
2164 5552;0<f--;){var e=5552;for(c-=e;0<e--;)this.s1+=a[b++]&255,this.s2+=this.s1;this.s1%=65521;this.s2%=65521}for(e=d;0<e--;)this.s1+=a[b++]&255,this.s2+=this.s1}this.s1%=65521;this.s2%=65521},"~A,~N,~N");e(c$,"updateByteAsInt",function(a){this.b1[0]=a;this.update(this.b1,0,1)},"~N");G(c$,"BASE",65521,"NMAX",5552)});p("JU");q(["java.lang.Exception"],"JU.Inflate",["JU.Adler32","$.CRC32","$.GZIPHeader","$.InfBlocks","java.io.ByteArrayOutputStream"],function(){c$=s(function(){this.method=this.mode=0;this.was=
2165 -1;this.wbits=this.wrap=this.marker=this.need=0;this.z=this.blocks=null;this.flags=0;this.need_bytes=-1;this.gheader=this.crcbuf=null;H("JU.Inflate.Return")||JU.Inflate.$Inflate$Return$();this.tmp_string=null;r(this,arguments)},JU,"Inflate");J(c$,function(){this.crcbuf=S(4,0)});d(c$,"reset",function(){this.inflateReset()});d(c$,"inflateReset",function(){if(null==this.z)return-2;this.z.total_in=this.z.total_out=0;this.z.msg=null;this.mode=14;this.need_bytes=-1;this.blocks.reset();return 0});d(c$,"inflateEnd",
2166 function(){null!=this.blocks&&this.blocks.free();return 0});m(c$,function(a){this.z=a},"JU.ZStream");d(c$,"inflateInit",function(a){this.blocks=this.z.msg=null;this.wrap=0;0>a?a=-a:(this.wrap=(a>>4)+1,48>a&&(a&=15));if(8>a||15<a)return this.inflateEnd(),-2;null!=this.blocks&&this.wbits!=a&&(this.blocks.free(),this.blocks=null);this.wbits=a;this.blocks=new JU.InfBlocks(this.z,1<<a);this.inflateReset();return 0},"~N");d(c$,"inflate",function(a){var b,c;if(null==this.z||null==this.z.next_in)return 4==
2167 a&&14==this.mode?0:-2;a=4==a?-5:0;for(b=-5;;)switch(this.mode){case 14:if(0==this.wrap){this.mode=7;break}try{b=this.readBytes(2,b,a)}catch(f){if(y(f,JU.Inflate.Return))return f.r;throw f;}if(0!=(this.wrap&2)&&35615==this.need){this.z.checksum=new JU.CRC32;this.checksum(2,this.need);null==this.gheader&&(this.gheader=new JU.GZIPHeader);this.mode=23;break}this.flags=0;this.method=this.need&255;c=this.need>>8&255;if(0==(this.wrap&1)||0!=((this.method<<8)+c)%31){this.mode=13;this.z.msg="incorrect header check";
2168 break}if(8!=(this.method&15)){this.mode=13;this.z.msg="unknown compression method";break}if((this.method>>4)+8>this.wbits){this.mode=13;this.z.msg="invalid window size";break}this.z.checksum=new JU.Adler32;if(0==(c&32)){this.mode=7;break}this.mode=2;case 2:if(0==this.z.avail_in)return b;b=a;this.z.avail_in--;this.z.total_in++;this.need=(this.z.next_in[this.z.next_in_index++]&255)<<24&4278190080;this.mode=3;case 3:if(0==this.z.avail_in)return b;b=a;this.z.avail_in--;this.z.total_in++;this.need+=(this.z.next_in[this.z.next_in_index++]&
2169 255)<<16&16711680;this.mode=4;case 4:if(0==this.z.avail_in)return b;b=a;this.z.avail_in--;this.z.total_in++;this.need+=(this.z.next_in[this.z.next_in_index++]&255)<<8&65280;this.mode=5;case 5:if(0==this.z.avail_in)return b;this.z.avail_in--;this.z.total_in++;this.need+=this.z.next_in[this.z.next_in_index++]&255;this.z.checksum.resetLong(this.need);this.mode=6;return 2;case 6:return this.mode=13,this.z.msg="need dictionary",this.marker=0,-2;case 7:b=this.blocks.proc(b);if(-3==b){this.mode=13;this.marker=
2170 0;break}0==b&&(b=a);if(1!=b)return b;b=a;this.was=this.z.checksum.getValue();this.blocks.reset();if(0==this.wrap){this.mode=12;break}this.mode=8;case 8:if(0==this.z.avail_in)return b;b=a;this.z.avail_in--;this.z.total_in++;this.need=(this.z.next_in[this.z.next_in_index++]&255)<<24&4278190080;this.mode=9;case 9:if(0==this.z.avail_in)return b;b=a;this.z.avail_in--;this.z.total_in++;this.need+=(this.z.next_in[this.z.next_in_index++]&255)<<16&16711680;this.mode=10;case 10:if(0==this.z.avail_in)return b;
2171 b=a;this.z.avail_in--;this.z.total_in++;this.need+=(this.z.next_in[this.z.next_in_index++]&255)<<8&65280;this.mode=11;case 11:if(0==this.z.avail_in)return b;b=a;this.z.avail_in--;this.z.total_in++;this.need+=this.z.next_in[this.z.next_in_index++]&255;0!=this.flags&&(this.need=((this.need&4278190080)>>24|(this.need&16711680)>>8|(this.need&65280)<<8|(this.need&65535)<<24)&4294967295);this.was!=this.need?this.z.msg="incorrect data check":0!=this.flags&&null!=this.gheader&&(this.gheader.crc=this.need);
2172 this.mode=15;case 15:if(0!=this.wrap&&0!=this.flags){try{b=this.readBytes(4,b,a)}catch(d){if(y(d,JU.Inflate.Return))return d.r;throw d;}if(null!=this.z.msg&&this.z.msg.equals("incorrect data check")){this.mode=13;this.marker=5;break}if(this.need!=(this.z.total_out&4294967295)){this.z.msg="incorrect length check";this.mode=13;break}this.z.msg=null}else if(null!=this.z.msg&&this.z.msg.equals("incorrect data check")){this.mode=13;this.marker=5;break}this.mode=12;case 12:return 1;case 13:return-3;case 23:try{b=
2173 this.readBytes(2,b,a)}catch(e){if(y(e,JU.Inflate.Return))return e.r;throw e;}this.flags=this.need&65535;if(8!=(this.flags&255)){this.z.msg="unknown compression method";this.mode=13;break}if(0!=(this.flags&57344)){this.z.msg="unknown header flags set";this.mode=13;break}0!=(this.flags&512)&&this.checksum(2,this.need);this.mode=16;case 16:try{b=this.readBytes(4,b,a)}catch(g){if(y(g,JU.Inflate.Return))return g.r;throw g;}null!=this.gheader&&(this.gheader.time=this.need);0!=(this.flags&512)&&this.checksum(4,
2174 this.need);this.mode=17;case 17:try{b=this.readBytes(2,b,a)}catch(h){if(y(h,JU.Inflate.Return))return h.r;throw h;}null!=this.gheader&&(this.gheader.xflags=this.need&255,this.gheader.os=this.need>>8&255);0!=(this.flags&512)&&this.checksum(2,this.need);this.mode=18;case 18:if(0!=(this.flags&1024)){try{b=this.readBytes(2,b,a)}catch(j){if(y(j,JU.Inflate.Return))return j.r;throw j;}null!=this.gheader&&(this.gheader.extra=S(this.need&65535,0));0!=(this.flags&512)&&this.checksum(2,this.need)}else null!=
2175 this.gheader&&(this.gheader.extra=null);this.mode=19;case 19:if(0!=(this.flags&1024))try{if(b=this.readBytes(b,a),null!=this.gheader){var n=this.tmp_string.toByteArray();this.tmp_string=null;if(n.length==this.gheader.extra.length)System.arraycopy(n,0,this.gheader.extra,0,n.length);else{this.z.msg="bad extra field length";this.mode=13;break}}}catch(m){if(y(m,JU.Inflate.Return))return m.r;throw m;}else null!=this.gheader&&(this.gheader.extra=null);this.mode=20;case 20:if(0!=(this.flags&2048))try{b=
2176 this.readString(b,a),null!=this.gheader&&(this.gheader.name=this.tmp_string.toByteArray()),this.tmp_string=null}catch(u){if(y(u,JU.Inflate.Return))return u.r;throw u;}else null!=this.gheader&&(this.gheader.name=null);this.mode=21;case 21:if(0!=(this.flags&4096))try{b=this.readString(b,a),null!=this.gheader&&(this.gheader.comment=this.tmp_string.toByteArray()),this.tmp_string=null}catch(p){if(y(p,JU.Inflate.Return))return p.r;throw p;}else null!=this.gheader&&(this.gheader.comment=null);this.mode=
2177 22;case 22:if(0!=(this.flags&512)){try{b=this.readBytes(2,b,a)}catch(q){if(y(q,JU.Inflate.Return))return q.r;throw q;}null!=this.gheader&&(this.gheader.hcrc=this.need&65535);if(this.need!=(this.z.checksum.getValue()&65535)){this.mode=13;this.z.msg="header crc mismatch";this.marker=5;break}}this.z.checksum=new JU.CRC32;this.mode=7;break;default:return-2}},"~N");d(c$,"inflateSetDictionary",function(a,b){if(null==this.z||6!=this.mode&&0!=this.wrap)return-2;var c=0,f=b;if(6==this.mode){var d=this.z.checksum.getValue();
2178 this.z.checksum.reset();this.z.checksum.update(a,0,b);if(this.z.checksum.getValue()!=d)return-3}this.z.checksum.reset();f>=1<<this.wbits&&(f=(1<<this.wbits)-1,c=b-f);this.blocks.set_dictionary(a,c,f);this.mode=7;return 0},"~A,~N");d(c$,"inflateSync",function(){var a,b,c;if(null==this.z)return-2;13!=this.mode&&(this.mode=13,this.marker=0);if(0==(a=this.z.avail_in))return-5;b=this.z.next_in_index;for(c=this.marker;0!=a&&4>c;)this.z.next_in[b]==JU.Inflate.mark[c]?c++:c=0!=this.z.next_in[b]?0:4-c,b++,
2179 a--;this.z.total_in+=b-this.z.next_in_index;this.z.next_in_index=b;this.z.avail_in=a;this.marker=c;if(4!=c)return-3;a=this.z.total_in;b=this.z.total_out;this.inflateReset();this.z.total_in=a;this.z.total_out=b;this.mode=7;return 0});d(c$,"inflateSyncPoint",function(){return null==this.z||null==this.blocks?-2:this.blocks.sync_point()});d(c$,"readBytes",function(a,b,c){-1==this.need_bytes&&(this.need_bytes=a,this.need=0);for(;0<this.need_bytes;){if(0==this.z.avail_in)throw C(JU.Inflate.Return,this,
2180 null,b);b=c;this.z.avail_in--;this.z.total_in++;this.need|=(this.z.next_in[this.z.next_in_index++]&255)<<8*(a-this.need_bytes);this.need_bytes--}2==a?this.need&=65535:4==a&&(this.need&=4294967295);this.need_bytes=-1;return b},"~N,~N,~N");d(c$,"readString",function(a,b){null==this.tmp_string&&(this.tmp_string=new java.io.ByteArrayOutputStream);var c=0;do{if(0==this.z.avail_in)throw C(JU.Inflate.Return,this,null,a);a=b;this.z.avail_in--;this.z.total_in++;c=this.z.next_in[this.z.next_in_index];0!=c&&
2181 this.tmp_string.write(this.z.next_in,this.z.next_in_index,1);this.z.checksum.update(this.z.next_in,this.z.next_in_index,1);this.z.next_in_index++}while(0!=c);return a},"~N,~N");d(c$,"readBytes",function(a,b){null==this.tmp_string&&(this.tmp_string=new java.io.ByteArrayOutputStream);for(;0<this.need;){if(0==this.z.avail_in)throw C(JU.Inflate.Return,this,null,a);a=b;this.z.avail_in--;this.z.total_in++;this.tmp_string.write(this.z.next_in,this.z.next_in_index,1);this.z.checksum.update(this.z.next_in,
2182 this.z.next_in_index,1);this.z.next_in_index++;this.need--}return a},"~N,~N");d(c$,"checksum",function(a,b){for(var c=0;c<a;c++)this.crcbuf[c]=b&255,b>>=8;this.z.checksum.update(this.crcbuf,0,a)},"~N,~N");d(c$,"getGZIPHeader",function(){return this.gheader});d(c$,"inParsingHeader",function(){switch(this.mode){case 14:case 2:case 3:case 4:case 5:case 23:case 16:case 17:case 18:case 19:case 20:case 21:case 22:return!0;default:return!1}});c$.$Inflate$Return$=function(){A(self.c$);c$=s(function(){O(this,
2183 arguments);this.r=0;r(this,arguments)},JU.Inflate,"Return",Exception);m(c$,function(a){t(this,JU.Inflate.Return,[]);this.r=a},"~N");c$=z()};G(c$,"PRESET_DICT",32,"Z_NO_FLUSH",0,"Z_PARTIAL_FLUSH",1,"Z_SYNC_FLUSH",2,"Z_FULL_FLUSH",3,"Z_FINISH",4,"Z_DEFLATED",8,"Z_OK",0,"Z_STREAM_END",1,"Z_NEED_DICT",2,"Z_STREAM_ERROR",-2,"Z_DATA_ERROR",-3,"Z_BUF_ERROR",-5,"DICT4",2,"DICT3",3,"DICT2",4,"DICT1",5,"DICT0",6,"BLOCKS",7,"CHECK4",8,"CHECK3",9,"CHECK2",10,"CHECK1",11,"DONE",12,"BAD",13,"HEAD",14,"LENGTH",
2184 15,"TIME",16,"OS",17,"EXLEN",18,"EXTRA",19,"NAME",20,"COMMENT",21,"HCRC",22,"FLAGS",23,"mark",S(-1,[0,0,255,255]))});p("JU");q(null,"JU.GZIPHeader",["JU.ZStream","java.lang.IllegalArgumentException","$.InternalError"],function(){c$=s(function(){this.fhcrc=this.text=!1;this.xflags=this.time=0;this.os=255;this.comment=this.name=this.extra=null;this.crc=this.hcrc=0;this.done=!1;this.mtime=0;r(this,arguments)},JU,"GZIPHeader",null,Cloneable);d(c$,"setModifiedTime",function(a){this.mtime=a},"~N");d(c$,
2185 "getModifiedTime",function(){return this.mtime});d(c$,"setOS",function(a){if(0<=a&&13>=a||255==a)this.os=a;else throw new IllegalArgumentException("os: "+a);},"~N");d(c$,"getOS",function(){return this.os});d(c$,"setName",function(a){this.name=JU.ZStream.getBytes(a)},"~S");d(c$,"getName",function(){if(null==this.name)return"";try{return String.instantialize(this.name,"ISO-8859-1")}catch(a){if(y(a,java.io.UnsupportedEncodingException))throw new InternalError(a.toString());throw a;}});d(c$,"setComment",
2186 function(a){this.comment=JU.ZStream.getBytes(a)},"~S");d(c$,"getComment",function(){if(null==this.comment)return"";try{return String.instantialize(this.comment,"ISO-8859-1")}catch(a){if(y(a,java.io.UnsupportedEncodingException))throw new InternalError(a.toString());throw a;}});d(c$,"setCRC",function(a){this.crc=a},"~N");d(c$,"getCRC",function(){return this.crc});d(c$,"put",function(a){var b=0;this.text&&(b|=1);this.fhcrc&&(b|=2);null!=this.extra&&(b|=4);null!=this.name&&(b|=8);null!=this.comment&&
2187 (b|=16);var c=0;1==a.level?c|=4:9==a.level&&(c|=2);a.put_short(35615);a.put_byteB(8);a.put_byteB(b);a.put_byteB(this.mtime);a.put_byteB(this.mtime>>8);a.put_byteB(this.mtime>>16);a.put_byteB(this.mtime>>24);a.put_byteB(c);a.put_byteB(this.os);null!=this.extra&&(a.put_byteB(this.extra.length),a.put_byteB(this.extra.length>>8),a.put_byte(this.extra,0,this.extra.length));null!=this.name&&(a.put_byte(this.name,0,this.name.length),a.put_byteB(0));null!=this.comment&&(a.put_byte(this.comment,0,this.comment.length),
2188 a.put_byteB(0))},"JU.Deflate");d(c$,"clone",function(){var a=K(this,JU.GZIPHeader,"clone",[]),b;null!=a.extra&&(b=S(a.extra.length,0),System.arraycopy(a.extra,0,b,0,b.length),a.extra=b);null!=a.name&&(b=S(a.name.length,0),System.arraycopy(a.name,0,b,0,b.length),a.name=b);null!=a.comment&&(b=S(a.comment.length,0),System.arraycopy(a.comment,0,b,0,b.length),a.comment=b);return a});G(c$,"OS_MSDOS",0,"OS_AMIGA",1,"OS_VMS",2,"OS_UNIX",3,"OS_ATARI",5,"OS_OS2",6,"OS_MACOS",7,"OS_TOPS20",10,"OS_WIN32",11,
2189 "OS_VMCMS",4,"OS_ZSYSTEM",8,"OS_CPM",9,"OS_QDOS",12,"OS_RISCOS",13,"OS_UNKNOWN",255)});p("JU");q(["JU.InfTree"],"JU.InfBlocks",["JU.InfCodes"],function(){c$=s(function(){this.index=this.table=this.left=this.mode=0;this.codes=this.tdi=this.tli=this.td=this.tl=this.bd=this.bl=this.tb=this.bb=this.blens=null;this.bitb=this.bitk=this.last=0;this.window=this.hufts=null;this.write=this.read=this.end=0;this.check=!1;this.z=this.inftree=null;r(this,arguments)},JU,"InfBlocks");J(c$,function(){this.bb=w(1,
2190 0);this.tb=w(1,0);this.bl=w(1,0);this.bd=w(1,0);this.tli=w(1,0);this.tdi=w(1,0);this.inftree=new JU.InfTree});m(c$,function(a,b){this.z=a;this.codes=new JU.InfCodes(this.z,this);this.hufts=w(4320,0);this.window=S(b,0);this.end=b;this.check=0==a.istate.wrap?!1:!0;this.mode=0;this.tl=E(1,null);this.td=E(1,null);this.reset()},"JU.ZStream,~N");d(c$,"reset",function(){6==this.mode&&this.codes.free(this.z);this.read=this.write=this.bitb=this.bitk=this.mode=0;this.check&&this.z.checksum.reset()});d(c$,"proc",
2191 function(a){var b,c,f,d,e,g,h;d=this.z.next_in_index;e=this.z.avail_in;c=this.bitb;f=this.bitk;g=this.write;for(h=g<this.read?this.read-g-1:this.end-g;;)switch(this.mode){case 0:for(;3>f;){if(0!=e)a=0;else return this.bitb=c,this.bitk=f,this.z.avail_in=e,this.z.total_in+=d-this.z.next_in_index,this.z.next_in_index=d,this.write=g,this.inflate_flush(a);e--;c|=(this.z.next_in[d++]&255)<<f;f+=8}b=c&7;this.last=b&1;switch(b>>>1){case 0:c>>>=3;f-=3;b=f&7;c>>>=b;f-=b;this.mode=1;break;case 1:JU.InfTree.inflate_trees_fixed(this.bl,
2192 this.bd,this.tl,this.td,this.z);this.codes.init(this.bl[0],this.bd[0],this.tl[0],0,this.td[0],0);c>>>=3;f-=3;this.mode=6;break;case 2:c>>>=3;f-=3;this.mode=3;break;case 3:return c>>>=3,f-=3,this.mode=9,this.z.msg="invalid block type",a=-3,this.bitb=c,this.bitk=f,this.z.avail_in=e,this.z.total_in+=d-this.z.next_in_index,this.z.next_in_index=d,this.write=g,this.inflate_flush(a)}break;case 1:for(;32>f;){if(0!=e)a=0;else return this.bitb=c,this.bitk=f,this.z.avail_in=e,this.z.total_in+=d-this.z.next_in_index,
2193 this.z.next_in_index=d,this.write=g,this.inflate_flush(a);e--;c|=(this.z.next_in[d++]&255)<<f;f+=8}if((~c>>>16&65535)!=(c&65535))return this.mode=9,this.z.msg="invalid stored block lengths",a=-3,this.bitb=c,this.bitk=f,this.z.avail_in=e,this.z.total_in+=d-this.z.next_in_index,this.z.next_in_index=d,this.write=g,this.inflate_flush(a);this.left=c&65535;c=f=0;this.mode=0!=this.left?2:0!=this.last?7:0;break;case 2:if(0==e||0==h&&(g==this.end&&0!=this.read&&(g=0,h=g<this.read?this.read-g-1:this.end-g),
2194 0==h&&(this.write=g,a=this.inflate_flush(a),g=this.write,h=g<this.read?this.read-g-1:this.end-g,g==this.end&&0!=this.read&&(g=0,h=g<this.read?this.read-g-1:this.end-g),0==h)))return this.bitb=c,this.bitk=f,this.z.avail_in=e,this.z.total_in+=d-this.z.next_in_index,this.z.next_in_index=d,this.write=g,this.inflate_flush(a);a=0;b=this.left;b>e&&(b=e);b>h&&(b=h);System.arraycopy(this.z.next_in,d,this.window,g,b);d+=b;e-=b;g+=b;h-=b;if(0!=(this.left-=b))break;this.mode=0!=this.last?7:0;break;case 3:for(;14>
2195 f;){if(0!=e)a=0;else return this.bitb=c,this.bitk=f,this.z.avail_in=e,this.z.total_in+=d-this.z.next_in_index,this.z.next_in_index=d,this.write=g,this.inflate_flush(a);e--;c|=(this.z.next_in[d++]&255)<<f;f+=8}this.table=b=c&16383;if(29<(b&31)||29<(b>>5&31))return this.mode=9,this.z.msg="too many length or distance symbols",a=-3,this.bitb=c,this.bitk=f,this.z.avail_in=e,this.z.total_in+=d-this.z.next_in_index,this.z.next_in_index=d,this.write=g,this.inflate_flush(a);b=258+(b&31)+(b>>5&31);if(null==
2196 this.blens||this.blens.length<b)this.blens=w(b,0);else for(h=0;h<b;h++)this.blens[h]=0;c>>>=14;f-=14;this.index=0;this.mode=4;case 4:for(;this.index<4+(this.table>>>10);){for(;3>f;){if(0!=e)a=0;else return this.bitb=c,this.bitk=f,this.z.avail_in=e,this.z.total_in+=d-this.z.next_in_index,this.z.next_in_index=d,this.write=g,this.inflate_flush(a);e--;c|=(this.z.next_in[d++]&255)<<f;f+=8}this.blens[JU.InfBlocks.border[this.index++]]=c&7;c>>>=3;f-=3}for(;19>this.index;)this.blens[JU.InfBlocks.border[this.index++]]=
2197 0;this.bb[0]=7;b=this.inftree.inflate_trees_bits(this.blens,this.bb,this.tb,this.hufts,this.z);if(0!=b)return a=b,-3==a&&(this.blens=null,this.mode=9),this.bitb=c,this.bitk=f,this.z.avail_in=e,this.z.total_in+=d-this.z.next_in_index,this.z.next_in_index=d,this.write=g,this.inflate_flush(a);this.index=0;this.mode=5;case 5:for(;;){b=this.table;if(!(this.index<258+(b&31)+(b>>5&31)))break;var j,n;for(b=this.bb[0];f<b;){if(0!=e)a=0;else return this.bitb=c,this.bitk=f,this.z.avail_in=e,this.z.total_in+=
2198 d-this.z.next_in_index,this.z.next_in_index=d,this.write=g,this.inflate_flush(a);e--;c|=(this.z.next_in[d++]&255)<<f;f+=8}b=this.hufts[3*(this.tb[0]+(c&JU.InfBlocks.inflate_mask[b]))+1];n=this.hufts[3*(this.tb[0]+(c&JU.InfBlocks.inflate_mask[b]))+2];if(16>n)c>>>=b,f-=b,this.blens[this.index++]=n;else{h=18==n?7:n-14;for(j=18==n?11:3;f<b+h;){if(0!=e)a=0;else return this.bitb=c,this.bitk=f,this.z.avail_in=e,this.z.total_in+=d-this.z.next_in_index,this.z.next_in_index=d,this.write=g,this.inflate_flush(a);
2199 e--;c|=(this.z.next_in[d++]&255)<<f;f+=8}c>>>=b;f-=b;j+=c&JU.InfBlocks.inflate_mask[h];c>>>=h;f-=h;h=this.index;b=this.table;if(h+j>258+(b&31)+(b>>5&31)||16==n&&1>h)return this.blens=null,this.mode=9,this.z.msg="invalid bit length repeat",a=-3,this.bitb=c,this.bitk=f,this.z.avail_in=e,this.z.total_in+=d-this.z.next_in_index,this.z.next_in_index=d,this.write=g,this.inflate_flush(a);n=16==n?this.blens[h-1]:0;do this.blens[h++]=n;while(0!=--j);this.index=h}}this.tb[0]=-1;this.bl[0]=9;this.bd[0]=6;b=
2200 this.table;b=this.inftree.inflate_trees_dynamic(257+(b&31),1+(b>>5&31),this.blens,this.bl,this.bd,this.tli,this.tdi,this.hufts,this.z);if(0!=b)return-3==b&&(this.blens=null,this.mode=9),a=b,this.bitb=c,this.bitk=f,this.z.avail_in=e,this.z.total_in+=d-this.z.next_in_index,this.z.next_in_index=d,this.write=g,this.inflate_flush(a);this.codes.init(this.bl[0],this.bd[0],this.hufts,this.tli[0],this.hufts,this.tdi[0]);this.mode=6;case 6:this.bitb=c;this.bitk=f;this.z.avail_in=e;this.z.total_in+=d-this.z.next_in_index;
2201 this.z.next_in_index=d;this.write=g;if(1!=(a=this.codes.proc(a)))return this.inflate_flush(a);a=0;this.codes.free(this.z);d=this.z.next_in_index;e=this.z.avail_in;c=this.bitb;f=this.bitk;g=this.write;h=g<this.read?this.read-g-1:this.end-g;if(0==this.last){this.mode=0;break}this.mode=7;case 7:this.write=g;a=this.inflate_flush(a);g=this.write;if(this.read!=this.write)return this.bitb=c,this.bitk=f,this.z.avail_in=e,this.z.total_in+=d-this.z.next_in_index,this.z.next_in_index=d,this.write=g,this.inflate_flush(a);
2202 this.mode=8;case 8:return a=1,this.bitb=c,this.bitk=f,this.z.avail_in=e,this.z.total_in+=d-this.z.next_in_index,this.z.next_in_index=d,this.write=g,this.inflate_flush(a);case 9:return a=-3,this.bitb=c,this.bitk=f,this.z.avail_in=e,this.z.total_in+=d-this.z.next_in_index,this.z.next_in_index=d,this.write=g,this.inflate_flush(a);default:return a=-2,this.bitb=c,this.bitk=f,this.z.avail_in=e,this.z.total_in+=d-this.z.next_in_index,this.z.next_in_index=d,this.write=g,this.inflate_flush(a)}},"~N");d(c$,
2203 "free",function(){this.reset();this.hufts=this.window=null});d(c$,"set_dictionary",function(a,b,c){System.arraycopy(a,b,this.window,0,c);this.read=this.write=c},"~A,~N,~N");d(c$,"sync_point",function(){return 1==this.mode?1:0});d(c$,"inflate_flush",function(a){var b,c,f;c=this.z.next_out_index;f=this.read;b=(f<=this.write?this.write:this.end)-f;b>this.z.avail_out&&(b=this.z.avail_out);0!=b&&-5==a&&(a=0);this.z.avail_out-=b;this.z.total_out+=b;this.check&&0<b&&this.z.checksum.update(this.window,f,
2204 b);System.arraycopy(this.window,f,this.z.next_out,c,b);c+=b;f+=b;f==this.end&&(f=0,this.write==this.end&&(this.write=0),b=this.write-f,b>this.z.avail_out&&(b=this.z.avail_out),0!=b&&-5==a&&(a=0),this.z.avail_out-=b,this.z.total_out+=b,this.check&&0<b&&this.z.checksum.update(this.window,f,b),System.arraycopy(this.window,f,this.z.next_out,c,b),c+=b,f+=b);this.z.next_out_index=c;this.read=f;return a},"~N");G(c$,"MANY",1440,"inflate_mask",w(-1,[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,
2205 65535]),"border",w(-1,[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),"Z_OK",0,"Z_STREAM_END",1,"Z_STREAM_ERROR",-2,"Z_DATA_ERROR",-3,"Z_BUF_ERROR",-5,"TYPE",0,"LENS",1,"STORED",2,"TABLE",3,"BTREE",4,"DTREE",5,"CODES",6,"DRY",7,"DONE",8,"BAD",9)});p("JU");c$=s(function(){this.x=this.u=this.r=this.c=this.v=this.hn=null;r(this,arguments)},JU,"InfTree");d(c$,"huft_build",function(a,b,c,f,d,e,g,h,j,n,m){var u,p,q,s,r,t,v,w,y,z;v=0;q=c;do this.c[a[b+v]]++,v++,q--;while(0!=q);if(this.c[0]==c)return g[0]=
2206 -1,h[0]=0;t=h[0];for(s=1;15>=s&&0==this.c[s];s++);r=s;t<s&&(t=s);for(q=15;0!=q&&0==this.c[q];q--);p=q;t>q&&(t=q);h[0]=t;for(h=1<<s;s<q;s++,h<<=1)if(0>(h-=this.c[s]))return-3;if(0>(h-=this.c[q]))return-3;this.c[q]+=h;this.x[1]=s=0;v=1;for(w=2;0!=--q;)this.x[w]=s+=this.c[v],w++,v++;v=q=0;do{if(0!=(s=a[b+v]))m[this.x[s]++]=q;v++}while(++q<c);c=this.x[p];v=this.x[0]=q=0;b=-1;y=-t;for(z=w=this.u[0]=0;r<=p;r++)for(a=this.c[r];0!=a--;){for(;r>y+t;){b++;y+=t;z=p-y;z=z>t?t:z;if((u=1<<(s=r-y))>a+1)if(u-=a+
2207 1,w=r,s<z)for(;++s<z&&!((u<<=1)<=this.c[++w]);)u-=this.c[w];z=1<<s;if(1440<n[0]+z)return-3;this.u[b]=w=n[0];n[0]+=z;0!=b?(this.x[b]=q,this.r[0]=s,this.r[1]=t,s=q>>>y-t,this.r[2]=w-this.u[b-1]-s,System.arraycopy(this.r,0,j,3*(this.u[b-1]+s),3)):g[0]=w}this.r[1]=r-y;v>=c?this.r[0]=192:m[v]<f?(this.r[0]=256>m[v]?0:96,this.r[2]=m[v++]):(this.r[0]=e[m[v]-f]+16+64,this.r[2]=d[m[v++]-f]);u=1<<r-y;for(s=q>>>y;s<z;s+=u)System.arraycopy(this.r,0,j,3*(w+s),3);for(s=1<<r-1;0!=(q&s);s>>>=1)q^=s;q^=s;for(s=(1<<
2208 y)-1;(q&s)!=this.x[b];)b--,y-=t,s=(1<<y)-1}return 0!=h&&1!=p?-5:0},"~A,~N,~N,~N,~A,~A,~A,~A,~A,~A,~A");d(c$,"inflate_trees_bits",function(a,b,c,f,d){this.initWorkArea(19);this.hn[0]=0;a=this.huft_build(a,0,19,19,null,null,c,b,f,this.hn,this.v);if(-3==a)d.msg="oversubscribed dynamic bit lengths tree";else if(-5==a||0==b[0])d.msg="incomplete dynamic bit lengths tree",a=-3;return a},"~A,~A,~A,~A,JU.ZStream");d(c$,"inflate_trees_dynamic",function(a,b,c,f,d,e,g,h,j){this.initWorkArea(288);this.hn[0]=0;
2209 e=this.huft_build(c,0,a,257,JU.InfTree.cplens,JU.InfTree.cplext,e,f,h,this.hn,this.v);if(0!=e||0==f[0])return-3==e?j.msg="oversubscribed literal/length tree":-4!=e&&(j.msg="incomplete literal/length tree",e=-3),e;this.initWorkArea(288);e=this.huft_build(c,a,b,0,JU.InfTree.cpdist,JU.InfTree.cpdext,g,d,h,this.hn,this.v);return 0!=e||0==d[0]&&257<a?(-3==e?j.msg="oversubscribed distance tree":-5==e?(j.msg="incomplete distance tree",e=-3):-4!=e&&(j.msg="empty distance tree with lengths",e=-3),e):0},"~N,~N,~A,~A,~A,~A,~A,~A,JU.ZStream");
2210 c$.inflate_trees_fixed=d(c$,"inflate_trees_fixed",function(a,b,c,f){a[0]=9;b[0]=5;c[0]=JU.InfTree.fixed_tl;f[0]=JU.InfTree.fixed_td;return 0},"~A,~A,~A,~A,JU.ZStream");d(c$,"initWorkArea",function(a){null==this.hn&&(this.hn=w(1,0),this.v=w(a,0),this.c=w(16,0),this.r=w(3,0),this.u=w(15,0),this.x=w(16,0));this.v.length<a&&(this.v=w(a,0));for(var b=0;b<a;b++)this.v[b]=0;for(b=0;16>b;b++)this.c[b]=0;for(b=0;3>b;b++)this.r[b]=0;System.arraycopy(this.c,0,this.u,0,15);System.arraycopy(this.c,0,this.x,0,
2211 16)},"~N");G(c$,"MANY",1440,"Z_OK",0,"Z_DATA_ERROR",-3,"Z_MEM_ERROR",-4,"Z_BUF_ERROR",-5,"fixed_bl",9,"fixed_bd",5,"fixed_tl",w(-1,[96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,192,80,7,10,0,8,96,0,8,32,0,9,160,0,8,0,0,8,128,0,8,64,0,9,224,80,7,6,0,8,88,0,8,24,0,9,144,83,7,59,0,8,120,0,8,56,0,9,208,81,7,17,0,8,104,0,8,40,0,9,176,0,8,8,0,8,136,0,8,72,0,9,240,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,200,81,7,13,0,8,100,0,8,36,0,9,168,0,8,4,0,8,132,0,8,68,0,9,232,80,7,8,
2212 0,8,92,0,8,28,0,9,152,84,7,83,0,8,124,0,8,60,0,9,216,82,7,23,0,8,108,0,8,44,0,9,184,0,8,12,0,8,140,0,8,76,0,9,248,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,196,81,7,11,0,8,98,0,8,34,0,9,164,0,8,2,0,8,130,0,8,66,0,9,228,80,7,7,0,8,90,0,8,26,0,9,148,84,7,67,0,8,122,0,8,58,0,9,212,82,7,19,0,8,106,0,8,42,0,9,180,0,8,10,0,8,138,0,8,74,0,9,244,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,204,81,7,15,0,8,102,0,8,38,0,9,172,0,8,6,0,8,134,0,8,70,0,9,236,80,7,9,0,8,94,0,8,30,0,9,156,
2213 84,7,99,0,8,126,0,8,62,0,9,220,82,7,27,0,8,110,0,8,46,0,9,188,0,8,14,0,8,142,0,8,78,0,9,252,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,194,80,7,10,0,8,97,0,8,33,0,9,162,0,8,1,0,8,129,0,8,65,0,9,226,80,7,6,0,8,89,0,8,25,0,9,146,83,7,59,0,8,121,0,8,57,0,9,210,81,7,17,0,8,105,0,8,41,0,9,178,0,8,9,0,8,137,0,8,73,0,9,242,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,202,81,7,13,0,8,101,0,8,37,0,9,170,0,8,5,0,8,133,0,8,69,0,9,234,80,7,8,0,8,93,0,8,29,0,9,154,84,7,83,0,8,125,0,
2214 8,61,0,9,218,82,7,23,0,8,109,0,8,45,0,9,186,0,8,13,0,8,141,0,8,77,0,9,250,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,198,81,7,11,0,8,99,0,8,35,0,9,166,0,8,3,0,8,131,0,8,67,0,9,230,80,7,7,0,8,91,0,8,27,0,9,150,84,7,67,0,8,123,0,8,59,0,9,214,82,7,19,0,8,107,0,8,43,0,9,182,0,8,11,0,8,139,0,8,75,0,9,246,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,206,81,7,15,0,8,103,0,8,39,0,9,174,0,8,7,0,8,135,0,8,71,0,9,238,80,7,9,0,8,95,0,8,31,0,9,158,84,7,99,0,8,127,0,8,63,0,9,222,82,7,27,
2215 0,8,111,0,8,47,0,9,190,0,8,15,0,8,143,0,8,79,0,9,254,96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,193,80,7,10,0,8,96,0,8,32,0,9,161,0,8,0,0,8,128,0,8,64,0,9,225,80,7,6,0,8,88,0,8,24,0,9,145,83,7,59,0,8,120,0,8,56,0,9,209,81,7,17,0,8,104,0,8,40,0,9,177,0,8,8,0,8,136,0,8,72,0,9,241,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,201,81,7,13,0,8,100,0,8,36,0,9,169,0,8,4,0,8,132,0,8,68,0,9,233,80,7,8,0,8,92,0,8,28,0,9,153,84,7,83,0,8,124,0,8,60,0,9,217,82,7,23,0,8,108,0,8,44,0,
2216 9,185,0,8,12,0,8,140,0,8,76,0,9,249,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,197,81,7,11,0,8,98,0,8,34,0,9,165,0,8,2,0,8,130,0,8,66,0,9,229,80,7,7,0,8,90,0,8,26,0,9,149,84,7,67,0,8,122,0,8,58,0,9,213,82,7,19,0,8,106,0,8,42,0,9,181,0,8,10,0,8,138,0,8,74,0,9,245,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,205,81,7,15,0,8,102,0,8,38,0,9,173,0,8,6,0,8,134,0,8,70,0,9,237,80,7,9,0,8,94,0,8,30,0,9,157,84,7,99,0,8,126,0,8,62,0,9,221,82,7,27,0,8,110,0,8,46,0,9,189,0,8,14,0,8,142,
2217 0,8,78,0,9,253,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,195,80,7,10,0,8,97,0,8,33,0,9,163,0,8,1,0,8,129,0,8,65,0,9,227,80,7,6,0,8,89,0,8,25,0,9,147,83,7,59,0,8,121,0,8,57,0,9,211,81,7,17,0,8,105,0,8,41,0,9,179,0,8,9,0,8,137,0,8,73,0,9,243,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,203,81,7,13,0,8,101,0,8,37,0,9,171,0,8,5,0,8,133,0,8,69,0,9,235,80,7,8,0,8,93,0,8,29,0,9,155,84,7,83,0,8,125,0,8,61,0,9,219,82,7,23,0,8,109,0,8,45,0,9,187,0,8,13,0,8,141,0,8,77,0,9,251,80,
2218 7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,199,81,7,11,0,8,99,0,8,35,0,9,167,0,8,3,0,8,131,0,8,67,0,9,231,80,7,7,0,8,91,0,8,27,0,9,151,84,7,67,0,8,123,0,8,59,0,9,215,82,7,19,0,8,107,0,8,43,0,9,183,0,8,11,0,8,139,0,8,75,0,9,247,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,207,81,7,15,0,8,103,0,8,39,0,9,175,0,8,7,0,8,135,0,8,71,0,9,239,80,7,9,0,8,95,0,8,31,0,9,159,84,7,99,0,8,127,0,8,63,0,9,223,82,7,27,0,8,111,0,8,47,0,9,191,0,8,15,0,8,143,0,8,79,0,9,255]),"fixed_td",w(-1,[80,
2219 5,1,87,5,257,83,5,17,91,5,4097,81,5,5,89,5,1025,85,5,65,93,5,16385,80,5,3,88,5,513,84,5,33,92,5,8193,82,5,9,90,5,2049,86,5,129,192,5,24577,80,5,2,87,5,385,83,5,25,91,5,6145,81,5,7,89,5,1537,85,5,97,93,5,24577,80,5,4,88,5,769,84,5,49,92,5,12289,82,5,13,90,5,3073,86,5,193,192,5,24577]),"cplens",w(-1,[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),"cplext",w(-1,[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,112,112]),"cpdist",w(-1,[1,2,3,4,5,7,
2220 9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577]),"cpdext",w(-1,[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),"BMAX",15);p("JU");c$=s(function(){this.len=this.mode=0;this.tree=null;this.dbits=this.lbits=this.dist=this.get=this.lit=this.need=this.tree_index=0;this.ltree=null;this.ltree_index=0;this.dtree=null;this.dtree_index=0;this.s=this.z=null;r(this,arguments)},JU,"InfCodes");m(c$,function(a,b){this.z=a;this.s=b},"JU.ZStream,JU.InfBlocks");
2221 d(c$,"init",function(a,b,c,f,d,e){this.mode=0;this.lbits=a;this.dbits=b;this.ltree=c;this.ltree_index=f;this.dtree=d;this.dtree_index=e;this.tree=null},"~N,~N,~A,~N,~A,~N");d(c$,"proc",function(a){var b,c,f=0,d=0,e=0,g,h,j,e=this.z.next_in_index;g=this.z.avail_in;f=this.s.bitb;d=this.s.bitk;h=this.s.write;for(j=h<this.s.read?this.s.read-h-1:this.s.end-h;;)switch(this.mode){case 0:if(258<=j&&10<=g&&(this.s.bitb=f,this.s.bitk=d,this.z.avail_in=g,this.z.total_in+=e-this.z.next_in_index,this.z.next_in_index=
2222 e,this.s.write=h,a=this.inflate_fast(this.lbits,this.dbits,this.ltree,this.ltree_index,this.dtree,this.dtree_index,this.s,this.z),e=this.z.next_in_index,g=this.z.avail_in,f=this.s.bitb,d=this.s.bitk,h=this.s.write,j=h<this.s.read?this.s.read-h-1:this.s.end-h,0!=a)){this.mode=1==a?7:9;break}this.need=this.lbits;this.tree=this.ltree;this.tree_index=this.ltree_index;this.mode=1;case 1:for(b=this.need;d<b;){if(0!=g)a=0;else return this.s.bitb=f,this.s.bitk=d,this.z.avail_in=g,this.z.total_in+=e-this.z.next_in_index,
2223 this.z.next_in_index=e,this.s.write=h,this.s.inflate_flush(a);g--;f|=(this.z.next_in[e++]&255)<<d;d+=8}b=3*(this.tree_index+(f&JU.InfCodes.inflate_mask[b]));f>>>=this.tree[b+1];d-=this.tree[b+1];c=this.tree[b];if(0==c){this.lit=this.tree[b+2];this.mode=6;break}if(0!=(c&16)){this.get=c&15;this.len=this.tree[b+2];this.mode=2;break}if(0==(c&64)){this.need=c;this.tree_index=F(b/3)+this.tree[b+2];break}if(0!=(c&32)){this.mode=7;break}this.mode=9;this.z.msg="invalid literal/length code";a=-3;this.s.bitb=
2224 f;this.s.bitk=d;this.z.avail_in=g;this.z.total_in+=e-this.z.next_in_index;this.z.next_in_index=e;this.s.write=h;return this.s.inflate_flush(a);case 2:for(b=this.get;d<b;){if(0!=g)a=0;else return this.s.bitb=f,this.s.bitk=d,this.z.avail_in=g,this.z.total_in+=e-this.z.next_in_index,this.z.next_in_index=e,this.s.write=h,this.s.inflate_flush(a);g--;f|=(this.z.next_in[e++]&255)<<d;d+=8}this.len+=f&JU.InfCodes.inflate_mask[b];f>>=b;d-=b;this.need=this.dbits;this.tree=this.dtree;this.tree_index=this.dtree_index;
2225 this.mode=3;case 3:for(b=this.need;d<b;){if(0!=g)a=0;else return this.s.bitb=f,this.s.bitk=d,this.z.avail_in=g,this.z.total_in+=e-this.z.next_in_index,this.z.next_in_index=e,this.s.write=h,this.s.inflate_flush(a);g--;f|=(this.z.next_in[e++]&255)<<d;d+=8}b=3*(this.tree_index+(f&JU.InfCodes.inflate_mask[b]));f>>=this.tree[b+1];d-=this.tree[b+1];c=this.tree[b];if(0!=(c&16)){this.get=c&15;this.dist=this.tree[b+2];this.mode=4;break}if(0==(c&64)){this.need=c;this.tree_index=F(b/3)+this.tree[b+2];break}this.mode=
2226 9;this.z.msg="invalid distance code";a=-3;this.s.bitb=f;this.s.bitk=d;this.z.avail_in=g;this.z.total_in+=e-this.z.next_in_index;this.z.next_in_index=e;this.s.write=h;return this.s.inflate_flush(a);case 4:for(b=this.get;d<b;){if(0!=g)a=0;else return this.s.bitb=f,this.s.bitk=d,this.z.avail_in=g,this.z.total_in+=e-this.z.next_in_index,this.z.next_in_index=e,this.s.write=h,this.s.inflate_flush(a);g--;f|=(this.z.next_in[e++]&255)<<d;d+=8}this.dist+=f&JU.InfCodes.inflate_mask[b];f>>=b;d-=b;this.mode=5;
2227 case 5:for(b=h-this.dist;0>b;)b+=this.s.end;for(;0!=this.len;){if(0==j&&(h==this.s.end&&0!=this.s.read&&(h=0,j=h<this.s.read?this.s.read-h-1:this.s.end-h),0==j&&(this.s.write=h,a=this.s.inflate_flush(a),h=this.s.write,j=h<this.s.read?this.s.read-h-1:this.s.end-h,h==this.s.end&&0!=this.s.read&&(h=0,j=h<this.s.read?this.s.read-h-1:this.s.end-h),0==j)))return this.s.bitb=f,this.s.bitk=d,this.z.avail_in=g,this.z.total_in+=e-this.z.next_in_index,this.z.next_in_index=e,this.s.write=h,this.s.inflate_flush(a);
2228 this.s.window[h++]=this.s.window[b++];j--;b==this.s.end&&(b=0);this.len--}this.mode=0;break;case 6:if(0==j&&(h==this.s.end&&0!=this.s.read&&(h=0,j=h<this.s.read?this.s.read-h-1:this.s.end-h),0==j&&(this.s.write=h,a=this.s.inflate_flush(a),h=this.s.write,j=h<this.s.read?this.s.read-h-1:this.s.end-h,h==this.s.end&&0!=this.s.read&&(h=0,j=h<this.s.read?this.s.read-h-1:this.s.end-h),0==j)))return this.s.bitb=f,this.s.bitk=d,this.z.avail_in=g,this.z.total_in+=e-this.z.next_in_index,this.z.next_in_index=
2229 e,this.s.write=h,this.s.inflate_flush(a);a=0;this.s.window[h++]=this.lit;j--;this.mode=0;break;case 7:7<d&&(d-=8,g++,e--);this.s.write=h;a=this.s.inflate_flush(a);h=this.s.write;if(this.s.read!=this.s.write)return this.s.bitb=f,this.s.bitk=d,this.z.avail_in=g,this.z.total_in+=e-this.z.next_in_index,this.z.next_in_index=e,this.s.write=h,this.s.inflate_flush(a);this.mode=8;case 8:return a=1,this.s.bitb=f,this.s.bitk=d,this.z.avail_in=g,this.z.total_in+=e-this.z.next_in_index,this.z.next_in_index=e,
2230 this.s.write=h,this.s.inflate_flush(a);case 9:return a=-3,this.s.bitb=f,this.s.bitk=d,this.z.avail_in=g,this.z.total_in+=e-this.z.next_in_index,this.z.next_in_index=e,this.s.write=h,this.s.inflate_flush(a);default:return a=-2,this.s.bitb=f,this.s.bitk=d,this.z.avail_in=g,this.z.total_in+=e-this.z.next_in_index,this.z.next_in_index=e,this.s.write=h,this.s.inflate_flush(a)}},"~N");d(c$,"free",function(){},"JU.ZStream");d(c$,"inflate_fast",function(a,b,c,f,d,e,g,h){var j,n,m,u,p,q,s,r,t,v,w,y;q=h.next_in_index;
2231 s=h.avail_in;u=g.bitb;p=g.bitk;r=g.write;t=r<g.read?g.read-r-1:g.end-r;a=JU.InfCodes.inflate_mask[a];v=JU.InfCodes.inflate_mask[b];do{for(;20>p;)s--,u|=(h.next_in[q++]&255)<<p,p+=8;j=u&a;n=c;m=f;y=3*(m+j);if(0==(b=n[y]))u>>=n[y+1],p-=n[y+1],g.window[r++]=n[y+2],t--;else{do{u>>=n[y+1];p-=n[y+1];if(0!=(b&16)){b&=15;w=n[y+2]+(u&JU.InfCodes.inflate_mask[b]);u>>=b;for(p-=b;15>p;)s--,u|=(h.next_in[q++]&255)<<p,p+=8;j=u&v;n=d;m=e;y=3*(m+j);b=n[y];do if(u>>=n[y+1],p-=n[y+1],0!=(b&16)){for(b&=15;p<b;)s--,
2232 u|=(h.next_in[q++]&255)<<p,p+=8;j=n[y+2]+(u&JU.InfCodes.inflate_mask[b]);u>>=b;p-=b;t-=w;if(r>=j)j=r-j,0<r-j&&2>r-j?(g.window[r++]=g.window[j++],g.window[r++]=g.window[j++]):(System.arraycopy(g.window,j,g.window,r,2),r+=2,j+=2),w-=2;else{j=r-j;do j+=g.end;while(0>j);b=g.end-j;if(w>b){w-=b;if(0<r-j&&b>r-j){do g.window[r++]=g.window[j++];while(0!=--b)}else System.arraycopy(g.window,j,g.window,r,b),r+=b;j=0}}if(0<r-j&&w>r-j){do g.window[r++]=g.window[j++];while(0!=--w)}else System.arraycopy(g.window,
2233 j,g.window,r,w),r+=w;break}else if(0==(b&64))j+=n[y+2],j+=u&JU.InfCodes.inflate_mask[b],y=3*(m+j),b=n[y];else return h.msg="invalid distance code",w=h.avail_in-s,w=p>>3<w?p>>3:w,s+=w,q-=w,p-=w<<3,g.bitb=u,g.bitk=p,h.avail_in=s,h.total_in+=q-h.next_in_index,h.next_in_index=q,g.write=r,-3;while(1);break}if(0==(b&64)){if(j+=n[y+2],j+=u&JU.InfCodes.inflate_mask[b],y=3*(m+j),0==(b=n[y])){u>>=n[y+1];p-=n[y+1];g.window[r++]=n[y+2];t--;break}}else{if(0!=(b&32))return w=h.avail_in-s,w=p>>3<w?p>>3:w,s+=w,q-=
2234 w,p-=w<<3,g.bitb=u,g.bitk=p,h.avail_in=s,h.total_in+=q-h.next_in_index,h.next_in_index=q,g.write=r,1;h.msg="invalid literal/length code";w=h.avail_in-s;w=p>>3<w?p>>3:w;s+=w;q-=w;p-=w<<3;g.bitb=u;g.bitk=p;h.avail_in=s;h.total_in+=q-h.next_in_index;h.next_in_index=q;g.write=r;return-3}}while(1)}}while(258<=t&&10<=s);w=h.avail_in-s;w=p>>3<w?p>>3:w;q-=w;g.bitb=u;g.bitk=p-(w<<3);h.avail_in=s+w;h.total_in+=q-h.next_in_index;h.next_in_index=q;g.write=r;return 0},"~N,~N,~A,~N,~A,~N,JU.InfBlocks,JU.ZStream");
2235 G(c$,"inflate_mask",w(-1,[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535]),"Z_OK",0,"Z_STREAM_END",1,"Z_STREAM_ERROR",-2,"Z_DATA_ERROR",-3,"START",0,"LEN",1,"LENEXT",2,"DIST",3,"DISTEXT",4,"COPY",5,"LIT",6,"WASH",7,"END",8,"BADCODE",9);q(["java.io.OutputStream"],"java.io.ByteArrayOutputStream",["java.lang.IllegalArgumentException","$.IndexOutOfBoundsException","$.OutOfMemoryError"],function(){c$=s(function(){this.buf=null;this.count=0;r(this,arguments)},java.io,"ByteArrayOutputStream",
2236 java.io.OutputStream);m(c$,function(){this.construct(32)});m(c$,function(a){t(this,java.io.ByteArrayOutputStream,[]);if(0>a)throw new IllegalArgumentException("Negative initial size: "+a);this.buf=S(a,0)},"~N");d(c$,"ensureCapacity",function(a){0<a-this.buf.length&&this.grow(a)},"~N");d(c$,"grow",function(a){var b=this.buf.length<<1;0>b-a&&(b=a);if(0>b){if(0>a)throw new OutOfMemoryError;b=a}this.buf=java.io.ByteArrayOutputStream.arrayCopyByte(this.buf,b)},"~N");c$.arrayCopyByte=d(c$,"arrayCopyByte",
2237 function(a,b){var c=S(b,0);System.arraycopy(a,0,c,0,a.length<b?a.length:b);return c},"~A,~N");e(c$,"writeByteAsInt",function(a){this.ensureCapacity(this.count+1);this.buf[this.count]=a;this.count+=1},"~N");d(c$,"write",function(a,b,c){if(0>b||b>a.length||0>c||0<b+c-a.length)throw new IndexOutOfBoundsException;this.ensureCapacity(this.count+c);System.arraycopy(a,b,this.buf,this.count,c);this.count+=c},"~A,~N,~N");d(c$,"writeTo",function(a){a.write(this.buf,0,this.count)},"java.io.OutputStream");d(c$,
2238 "reset",function(){this.count=0});d(c$,"toByteArray",function(){return this.count==this.buf.length?this.buf:java.io.ByteArrayOutputStream.arrayCopyByte(this.buf,this.count)});d(c$,"size",function(){return this.count});e(c$,"toString",function(){return String.instantialize(this.buf,0,this.count)});e(c$,"close",function(){})});q(["java.io.Closeable","$.Flushable"],"java.io.OutputStream",["java.lang.IndexOutOfBoundsException","$.NullPointerException"],function(){c$=B(java.io,"OutputStream",null,[java.io.Closeable,
2239 java.io.Flushable]);d(c$,"write",function(a,b,c){if(null==a)throw new NullPointerException;if(0>b||b>a.length||0>c||b+c>a.length||0>b+c)throw new IndexOutOfBoundsException;if(0!=c)for(var f=0;f<c;f++)this.writeByteAsInt(a[b+f])},"~A,~N,~N");e(c$,"flush",function(){});e(c$,"close",function(){})});p("java.util.zip");q(["java.io.IOException"],"java.util.zip.ZipException",null,function(){c$=B(java.util.zip,"ZipException",java.io.IOException)});p("MCview");q(["java.awt.Color"],"MCview.Atom",["java.lang.Float"],
2240 function(){c$=s(function(){this.number=this.z=this.y=this.x=0;this.resName=this.name=null;this.resNumber=0;this.insCode=" ";this.resNumIns=null;this.type=0;this.chain=this.color=null;this.alignmentMapping=-1;this.tfactor=this.occupancy=this.atomIndex=0;this.isSelected=!1;r(this,arguments)},MCview,"Atom");J(c$,function(){this.color=java.awt.Color.lightGray});m(c$,function(a){this.atomIndex=Integer.parseInt(a.substring(6,11).trim());this.name=a.substring(12,15).trim();this.resName=a.substring(17,20);
2241 this.chain=a.substring(21,22);this.resNumber=Integer.parseInt(a.substring(22,26).trim());this.resNumIns=a.substring(22,27).trim();this.insCode=a.substring(26,27).charAt(0);this.x=(new Float(a.substring(30,38).trim())).floatValue();this.y=(new Float(a.substring(38,46).trim())).floatValue();this.z=(new Float(a.substring(47,55).trim())).floatValue();var b=a.substring(54,60).trim();this.occupancy=0<b.length?(new Float(b)).floatValue():1;b=a.substring(60,66).trim();this.tfactor=0<b.length?(new Float(b)).floatValue():
2242 1},"~S");m(c$,function(a,b,c){this.x=a;this.y=b;this.z=c},"~N,~N,~N")});p("MCview");q(["java.util.Vector"],"MCview.PDBChain","MCview.Bond $.Residue jalview.datamodel.AlignmentAnnotation $.Annotation $.Sequence $.SequenceFeature jalview.schemes.ResidueProperties java.awt.Color java.lang.StringBuilder".split(" "),function(){c$=s(function(){this.residues=this.atoms=this.bonds=this.id=null;this.offset=0;this.shadow=this.sequence=null;this.isNa=!1;this.isVisible=!0;this.seqend=this.seqstart=this.pdbend=
2243 this.pdbstart=0;this.pdbid="";this.shadowMap=this.newline=null;r(this,arguments)},MCview,"PDBChain");J(c$,function(){this.bonds=new java.util.Vector;this.atoms=new java.util.Vector;this.residues=new java.util.Vector;this.newline=System.getProperty("line.separator")});m(c$,function(a,b){this.pdbid=a.toLowerCase();this.id=b},"~S,~S");d(c$,"setNewlineString",function(a){this.newline=a},"~S");d(c$,"getNewlineString",function(){return this.newline});d(c$,"print",function(){for(var a=new StringBuilder(256),
2244 b,c=this.bonds.iterator();c.hasNext()&&((b=c.next())||1);)a.append(b.at1.resName).append(" ").append(b.at1.resNumber).append(" ").append(this.offset).append(this.newline);return a.toString()});d(c$,"makeExactMapping",function(a,b){for(var c=a.getSeq2Start()-2,f=b.getStart()+a.getSeq1Start()-3,d,e=this.atoms.iterator();e.hasNext()&&((d=e.next())||1);)d.alignmentMapping=-1;for(var g=0;g<a.astr1.length;g++)if("-"!=a.astr1.charAt(g)&&f++,"-"!=a.astr2.charAt(g)&&c++,a.astr1.charAt(g)==a.astr2.charAt(g))for(e=
2245 this.residues.elementAt(c).atoms.iterator();e.hasNext()&&((d=e.next())||1);)d.alignmentMapping=f},"jalview.analysis.AlignSeq,jalview.datamodel.SequenceI");d(c$,"transferRESNUMFeatures",function(a,b){for(var c=a;null!=c&&null!=c.getDatasetSequence();)if(c=c.getDatasetSequence(),c===this.sequence)return null;null==b&&(b="IEA:jalview");for(var f=this.sequence.getSequenceFeatures(),d=0;d<f.length;d++)if(f[d].getFeatureGroup().equals(this.pdbid)){var e=new jalview.datamodel.SequenceFeature(f[d]);e.setBegin(1+
2246 this.residues.elementAt(e.getBegin()-this.offset).atoms.elementAt(0).alignmentMapping);e.setEnd(1+this.residues.elementAt(e.getEnd()-this.offset).atoms.elementAt(0).alignmentMapping);e.setStatus(b+(null==e.getStatus()||0==e.getStatus().length?"":":"+e.getStatus()));0!=e.begin&&0!=e.end&&c.addSequenceFeature(e)}return f},"jalview.datamodel.SequenceI,~S");d(c$,"makeCaBondList",function(){for(var a=!1,b=0,c=0;c<this.residues.size()-1;c++){var f=this.residues.elementAt(c),d=this.residues.elementAt(c+
2247 1),e=f.findAtom("CA"),g=d.findAtom("CA"),a=!1;null==e&&null==g&&(a=!0,e=f.findAtom("P"),g=d.findAtom("P"));null!=e&&null!=g?e.chain.equals(g.chain)&&(a&&b++,this.makeBond(e,g)):System.out.println("not found "+c)}0<this.residues.size()&&0.99<F(b/(this.residues.size()-1))&&(this.isNa=!0)});d(c$,"makeBond",function(a,b){this.bonds.addElement(new MCview.Bond(a,b))},"MCview.Atom,MCview.Atom");d(c$,"makeResidueList",function(a){var b=0,c,f=c=!1,d=new StringBuilder(256),e=new java.util.Vector,g=new java.util.Vector,
2248 h,j=this.atoms.size()-1,n=-1;for(h=0;h<=j;h++){var m=n=this.atoms.elementAt(h).resNumber;0==h&&(this.offset=n);for(c=new java.util.Vector;n==m&&h<this.atoms.size();)c.add(this.atoms.elementAt(h)),h++,h<this.atoms.size()?n=this.atoms.elementAt(h).resNumber:n++;h--;this.residues.addElement(new MCview.Residue(c,n-1,b));m=this.residues.lastElement().atoms.get(0);c=new jalview.datamodel.SequenceFeature("RESNUM",m.resName+":"+m.resNumIns+" "+this.pdbid+this.id,"",this.offset+b,this.offset+b,this.pdbid);
2249 e.addElement(c);g.addElement(new jalview.datamodel.Annotation(m.tfactor));if(null==(c=jalview.schemes.ResidueProperties.getAA3Hash().get(m.resName))){var u=m.resName.trim();c=2==u.length&&jalview.schemes.ResidueProperties.aaIndex[u.charCodeAt(0)]==jalview.schemes.ResidueProperties.aaIndex[68];m.name.equalsIgnoreCase("CA")||-1==jalview.schemes.ResidueProperties.nucleotideIndex[u.charCodeAt(c?1:0)]?d.append("X"):(f=!0,d.append(u.charAt(c?1:0)))}else f&&System.err.println("Warning: mixed nucleotide and amino acid chain.. its gonna do bad things to you!"),
2250 d.append(jalview.schemes.ResidueProperties.aa[c.intValue()]);b++}1>this.id.length&&(this.id=" ");this.isNa=f;this.sequence=new jalview.datamodel.Sequence(this.id,d.toString(),this.offset,n-1);h=0;for(j=e.size();h<j;h++)this.sequence.addSequenceFeature(e.elementAt(h)),e.setElementAt(null,h);if(a){a=Array(g.size());h=b=0;for(j=a.length;h<j;h++)a[h]=g.elementAt(h),a[h].value>b&&(b=a[h].value),g.setElementAt(null,h);g=new jalview.datamodel.AlignmentAnnotation("Temperature Factor","Temperature Factor for "+
2251 this.pdbid+this.id,a,0,b,2);g.setSequenceRef(this.sequence);this.sequence.addAlignmentAnnotation(g)}},"~B");d(c$,"setChargeColours",function(){for(var a,b=this.bonds.iterator();b.hasNext()&&((a=b.next())||1);)null!=a.at1&&null!=a.at2?(a.startCol=MCview.PDBChain.getChargeColour(a.at1.resName),a.endCol=MCview.PDBChain.getChargeColour(a.at2.resName)):(a.startCol=java.awt.Color.gray,a.endCol=java.awt.Color.gray)});c$.getChargeColour=d(c$,"getChargeColour",function(a){var b=java.awt.Color.lightGray;"ASP".equals(a)||
2252 "GLU".equals(a)?b=java.awt.Color.red:"LYS".equals(a)||"ARG".equals(a)?b=java.awt.Color.blue:"CYS".equals(a)&&(b=java.awt.Color.yellow);return b},"~S");d(c$,"setChainColours",function(a){for(var b,c,f=this.bonds.iterator();f.hasNext()&&((c=f.next())||1);)try{b=jalview.schemes.ResidueProperties.aa3Hash.get(c.at1.resName).intValue(),c.startCol=a.findColour(jalview.schemes.ResidueProperties.aa[b].charAt(0)),b=jalview.schemes.ResidueProperties.aa3Hash.get(c.at2.resName).intValue(),c.endCol=a.findColour(jalview.schemes.ResidueProperties.aa[b].charAt(0))}catch(d){if(y(d,
2253 Exception))c.startCol=java.awt.Color.gray,c.endCol=java.awt.Color.gray;else throw d;}},"jalview.schemes.ColourSchemeI");d(c$,"setChainColours",function(a){for(var b,c=this.bonds.iterator();c.hasNext()&&((b=c.next())||1);)b.startCol=a,b.endCol=a},"java.awt.Color");d(c$,"transferResidueAnnotation",function(a,b){var c=a.getSequence(),f=c;if(null!=c){for(;null!=f.getDatasetSequence();)f=f.getDatasetSequence();if(null!=this.shadow&&null!=this.shadow.getAnnotation())for(var d,e=0,g=this.shadow.getAnnotation();e<
2254 g.length&&((d=g[e])||1);e++){var h=c.getAlignmentAnnotations(d.getCalcId(),d.label);if(null==h||0==h.size())d=new jalview.datamodel.AlignmentAnnotation(d),d.liftOver(this.sequence,this.shadowMap),d.liftOver(f,b),f.addAlignmentAnnotation(d)}else if(null!=this.sequence&&null!=this.sequence.getAnnotation()){e=0;for(g=this.sequence.getAnnotation();e<g.length&&((d=g[e])||1);e++)if(h=c.getAlignmentAnnotations(d.getCalcId(),d.label),null==h||0==h.size())d=new jalview.datamodel.AlignmentAnnotation(d),d.liftOver(f,
2255 b)}}},"jalview.structure.StructureMapping,jalview.datamodel.Mapping");G(c$,"PDBFILEFEATURE","PDBFile","IEASTATUS","IEA:jalview")});p("MCview");q(["java.awt.Color"],"MCview.Bond",null,function(){c$=s(function(){this.at2=this.at1=this.endCol=this.startCol=this.end=this.start=null;r(this,arguments)},MCview,"Bond");J(c$,function(){this.endCol=this.startCol=java.awt.Color.lightGray});m(c$,function(a,b){this.start=Q(-1,[a.x,a.y,a.z]);this.end=Q(-1,[b.x,b.y,b.z]);this.startCol=a.color;this.endCol=b.color;
2256 this.at1=a;this.at2=b},"MCview.Atom,MCview.Atom");d(c$,"translate",function(a,b,c){this.start[0]+=a;this.end[0]+=a;this.start[1]+=b;this.end[1]+=b;this.start[2]+=c;this.end[2]+=c},"~N,~N,~N")});p("MCview");c$=s(function(){this.atoms=null;this.count=this.number=0;r(this,arguments)},MCview,"Residue");m(c$,function(a,b,c){this.atoms=a;this.number=b;this.count=c},"java.util.Vector,~N,~N");d(c$,"findAtom",function(a){for(var b,c=this.atoms.iterator();c.hasNext()&&((b=c.next())||1);)if(b.name.equals(a))return b;
2257 return null},"~S");p("jalview.structure");c$=s(function(){this.chain=this.pdbFile=null;this.atomIndex=this.pdbResNum=0;r(this,arguments)},jalview.structure,"AtomSpec");m(c$,function(a,b,c,f){this.pdbFile=a;this.chain=b;this.pdbResNum=c;this.atomIndex=f},"~S,~S,~N,~N");d(c$,"getPdbFile",function(){return this.pdbFile});d(c$,"getChain",function(){return this.chain});d(c$,"getPdbResNum",function(){return this.pdbResNum});d(c$,"getAtomIndex",function(){return this.atomIndex});e(c$,"toString",function(){return"pdbFile: "+
2258 this.pdbFile+", chain: "+this.chain+", res: "+this.pdbResNum+", atom: "+this.atomIndex});p("jalview.structure");M(jalview.structure,"SecondaryStructureListener");p("jalview.structure");M(jalview.structure,"SequenceListener");p("jalview.structure");M(jalview.structure,"StructureListener");p("jalview.structure");q(null,"jalview.structure.StructureMapping",["jalview.datamodel.AlignmentAnnotation"],function(){c$=s(function(){this.mapping=this.pdbchain=this.pdbid=this.pdbfile=this.sequence=this.mappingDetails=
2259 null;r(this,arguments)},jalview.structure,"StructureMapping");m(c$,function(a,b,c,f,d,e){this.sequence=a;this.pdbfile=b;this.pdbid=c;this.pdbchain=f;this.mapping=d;this.mappingDetails=e},"jalview.datamodel.SequenceI,~S,~S,~S,~A,~S");d(c$,"getSequence",function(){return this.sequence});d(c$,"getChain",function(){return this.pdbchain});d(c$,"getPdbId",function(){return this.pdbid});d(c$,"getAtomNum",function(a){return this.mapping.length>a?this.mapping[a][1]:0},"~N");d(c$,"getPDBResNum",function(a){return this.mapping.length>
2260 a?this.mapping[a][0]:0},"~N");d(c$,"getSeqPos",function(a){for(var b=0;b<this.mapping.length;b++)if(this.mapping[b][0]==a)return b;return-1},"~N");d(c$,"transfer",function(a){a=new jalview.datamodel.AlignmentAnnotation(a);for(var b=this.sequence;null!=b.getDatasetSequence();)b=b.getDatasetSequence();a.remap(b,this.mapping,-1,-1,0);b.addAlignmentAnnotation(a);b!==this.sequence&&(a=new jalview.datamodel.AlignmentAnnotation(a),this.sequence.addAlignmentAnnotation(a));return a},"jalview.datamodel.AlignmentAnnotation")});
2261 p("jalview.structure");M(jalview.structure,"VamsasListener");p("jalview.appletgui");q(["awt2swing.Panel","jalview.api.AlignmentViewPanel","java.awt.event.AdjustmentListener","awt2swing.Scrollbar"],"jalview.appletgui.AlignmentPanel","awt2swing.Frame jalview.analysis.AnnotationSorter jalview.appletgui.AnnotationLabels $.AnnotationPanel $.FeatureRenderer $.IdPanel $.IdwidthAdjuster $.PaintRefresher $.ScalePanel $.SeqPanel jalview.bin.JalviewLite jalview.structure.StructureSelectionManager java.awt.BorderLayout $.Color $.Dimension java.awt.event.ComponentAdapter java.beans.PropertyChangeListener".split(" "),
2262 function(){c$=s(function(){this.alabels=this.annotationPanel=this.scalePanel=this.alignFrame=this.idwidthAdjuster=this.idPanel=this.seqPanel=this.overviewPanel=this.av=null;this.fastPaint=!0;this.vextent=this.hextent=0;this.apvscroll=this.annotationPanelHolder=this.hscrollFillerPanel=this.annotationSpaceFillerHolder=this.idSpaceFillerPanel1=this.idPanelHolder=this.scalePanelHolder=this.seqPanelHolder=this.hscroll=this.vscroll=this.sequenceHolderPanel=null;this.followingComplementScroll=!1;r(this,
2263 arguments)},jalview.appletgui,"AlignmentPanel",awt2swing.Panel,[java.awt.event.AdjustmentListener,jalview.api.AlignmentViewPanel]);J(c$,function(){this.sequenceHolderPanel=new awt2swing.Panel;this.vscroll=new awt2swing.Scrollbar;this.hscroll=new awt2swing.Scrollbar;this.seqPanelHolder=new awt2swing.Panel;this.scalePanelHolder=new awt2swing.Panel;this.idPanelHolder=new awt2swing.Panel;this.idSpaceFillerPanel1=new awt2swing.Panel;this.annotationSpaceFillerHolder=new awt2swing.Panel;this.hscrollFillerPanel=
2264 new awt2swing.Panel;this.annotationPanelHolder=new awt2swing.Panel;this.apvscroll=new awt2swing.Scrollbar});e(c$,"finalize",function(){this.annotationSpaceFillerHolder=this.annotationPanelHolder=this.annotationPanel=this.scalePanelHolder=this.scalePanel=this.sequenceHolderPanel=this.seqPanelHolder=this.seqPanel=this.av=this.alignFrame=null});m(c$,function(a,b){t(this,jalview.appletgui.AlignmentPanel,[]);this.setName("alignmentPanel");try{this.jbInit()}catch(c){if(y(c,Exception))c.printStackTrace();
2265 else throw c;}this.alignFrame=a;this.av=b;this.seqPanel=new jalview.appletgui.SeqPanel(b,this);this.idPanel=new jalview.appletgui.IdPanel(b,this);this.scalePanel=new jalview.appletgui.ScalePanel(b,this);this.idwidthAdjuster=new jalview.appletgui.IdwidthAdjuster(this);this.annotationPanel=new jalview.appletgui.AnnotationPanel(this);this.annotationPanelHolder.add(this.annotationPanel,"Center");this.sequenceHolderPanel.add(this.annotationPanelHolder,"South");this.alabels=new jalview.appletgui.AnnotationLabels(this);
2266 this.setAnnotationVisible(b.isShowAnnotation());this.idPanelHolder.add(this.idPanel,"Center");this.idSpaceFillerPanel1.add(this.idwidthAdjuster,"Center");this.annotationSpaceFillerHolder.add(this.alabels,"Center");this.scalePanelHolder.add(this.scalePanel,"Center");this.seqPanelHolder.add(this.seqPanel,"Center");this.fontChanged();this.setScrollValues(0,0);this.apvscroll.addAdjustmentListener(this);this.hscroll.addAdjustmentListener(this);this.vscroll.addAdjustmentListener(this);this.addComponentListener((H("jalview.appletgui.AlignmentPanel$1")?
2267 0:jalview.appletgui.AlignmentPanel.$AlignmentPanel$1$(),C(jalview.appletgui.AlignmentPanel$1,this,T("av",b))));var f=this.calculateIdWidth();this.idPanel.idCanvas.setSize(f);this.hscrollFillerPanel.setSize(f.width,this.annotationPanel.getSize().height);this.idPanel.idCanvas.setSize(f.width,this.seqPanel.seqCanvas.getSize().height);this.annotationSpaceFillerHolder.setSize(f.width,this.annotationPanel.getSize().height);this.alabels.setSize(f.width,this.annotationPanel.getSize().height);b.addPropertyChangeListener((H("jalview.appletgui.AlignmentPanel$2")?
2268 0:jalview.appletgui.AlignmentPanel.$AlignmentPanel$2$(),C(jalview.appletgui.AlignmentPanel$2,this,T("ap",this,"av",b))))},"jalview.appletgui.AlignFrame,jalview.appletgui.AlignViewport");e(c$,"getAlignViewport",function(){return this.av});d(c$,"getSequenceRenderer",function(){return this.seqPanel.seqCanvas.sr});e(c$,"getFeatureRenderer",function(){return this.seqPanel.seqCanvas.fr});e(c$,"cloneFeatureRenderer",function(){var a=new jalview.appletgui.FeatureRenderer(this.av);a.transferSettings(this.seqPanel.seqCanvas.fr);
2269 return a});d(c$,"alignmentChanged",function(){this.av.alignmentChanged(this);null!=this.overviewPanel&&this.overviewPanel.updateOverviewImage();this.alignFrame.updateEditMenuBar();this.repaint()});d(c$,"fontChanged",function(){this.idPanel.idCanvas.image=null;var a=this.getFontMetrics(this.av.getFont());this.scalePanel.setSize(new java.awt.Dimension(10,this.av.getCharHeight()+a.getDescent()));this.idwidthAdjuster.setSize(new java.awt.Dimension(10,this.av.getCharHeight()+a.getDescent()));this.av.updateSequenceIdColours();
2270 this.annotationPanel.image=null;var a=this.annotationPanel.adjustPanelHeight(!1),b=this.calculateIdWidth();b.setSize(b.width+4,this.seqPanel.seqCanvas.getSize().height);this.alabels.setSize(b.width+4,a);this.idPanel.idCanvas.setSize(b);this.hscrollFillerPanel.setSize(b);this.validateAnnotationDimensions(!1);this.annotationPanel.repaint();this.validate();this.repaint();null!=this.overviewPanel&&this.overviewPanel.updateOverviewImage()});d(c$,"setIdWidth",function(a,b){this.idPanel.idCanvas.setSize(a,
2271 b);this.idPanelHolder.setSize(a,this.idPanelHolder.getSize().height);this.annotationSpaceFillerHolder.setSize(a,this.annotationSpaceFillerHolder.getSize().height);this.alabels.setSize(a,this.alabels.getSize().height);this.validate()},"~N,~N");d(c$,"calculateIdWidth",function(){null==this.av.nullFrame&&(this.av.nullFrame=new awt2swing.Frame,this.av.nullFrame.addNotify(),this.av.nullFrame.setFont(this.av.font));for(var a=this.av.nullFrame.getGraphics(),b=a.getFontMetrics(this.av.font),c=this.av.getAlignment(),
2272 f=0,d=0,e;f<c.getHeight()&&null!=c.getSequenceAt(f);)e=c.getSequenceAt(f).getDisplayId(this.av.getShowJVSuffix()),b.stringWidth(e)>d&&(d=b.stringWidth(e)),f++;f=0;if(null!=c.getAlignmentAnnotation())for(b=a.getFontMetrics(this.av.nullFrame.getFont());f<c.getAlignmentAnnotation().length;)a=c.getAlignmentAnnotation()[f].label,b.stringWidth(a)>d&&(d=b.stringWidth(a)),f++;return new java.awt.Dimension(d,this.idPanel.idCanvas.getSize().height)});d(c$,"highlightSearchResults",function(a){this.scrollToPosition(a);
2273 this.seqPanel.seqCanvas.highlightSearchResults(a)},"jalview.datamodel.SearchResults");d(c$,"scrollToPosition",function(a){return this.scrollToPosition(a,!0)},"jalview.datamodel.SearchResults");d(c$,"scrollToPosition",function(a,b){return this.scrollToPosition(a,b,!1)},"jalview.datamodel.SearchResults,~B");d(c$,"scrollToPosition",function(a,b,c){if(null!=a&&0<a.getSize()){var f=this.av.getAlignment(),d=f.findIndex(a);if(-1==d)return!1;var e=f.getSequenceAt(d),f=a.getResults(e,0,f.getWidth());if(null==
2274 f)return jalview.bin.JalviewLite.debug&&System.out.println("DEBUG: scroll didn't happen - results not within alignment : "+e.getStart()+","+e.getEnd()),!1;a=f[0];f=f[1];c&&(c=F((this.av.getEndRes()-this.av.getStartRes()+1)/2)-1,a=Math.max(a-c,0),f=Math.min(f+c,e.getEnd()-1));return 0>a||f==e.getEnd()?!1:this.scrollTo(a,f,d,!1,b)}return!0},"jalview.datamodel.SearchResults,~B,~B");d(c$,"scrollTo",function(a,b,c,f,d){var e,g,h,j,n=-1;if(this.av.hasHiddenColumns()){if(n=this.av.getColumnSelection().findColumnPosition(a),
2275 b=this.av.getColumnSelection().findColumnPosition(b),n==b&&!f&&!this.av.getColumnSelection().isVisible(a))return!1}else n=a;this.av.getWrapAlignment()?this.scrollToWrappedVisible(n):(e=this.av.getStartRes())>=n?this.setScrollValues(n-1,c):(g=this.av.getEndRes())<=b?this.setScrollValues(e+1+b-g,c):(h=this.av.getStartSeq())>c?this.setScrollValues(this.av.getStartRes(),c):(j=this.av.getEndSeq())<=c&&this.setScrollValues(this.av.getStartRes(),h+c-j+1);d&&null!=this.overviewPanel&&this.overviewPanel.setBoxPosition();
2276 this.paintAlignment(d);return!0},"~N,~N,~N,~B,~B");d(c$,"scrollToWrappedVisible",function(a){var b=this.seqPanel.seqCanvas.getWrappedCanvasWidth(this.seqPanel.seqCanvas.getSize().width);if(a<=this.av.getStartRes()||a>=this.av.getStartRes()+b)this.vscroll.setValue(F(a/b)),this.av.startRes=this.vscroll.getValue()*b},"~N");d(c$,"getOverviewPanel",function(){return this.overviewPanel});d(c$,"setOverviewPanel",function(a){this.overviewPanel=a},"jalview.appletgui.OverviewPanel");d(c$,"setAnnotationVisible",
2277 function(a){this.av.getWrapAlignment()?(this.annotationSpaceFillerHolder.setVisible(!1),this.annotationPanelHolder.setVisible(!1)):(this.annotationSpaceFillerHolder.setVisible(a),this.annotationPanelHolder.setVisible(a));this.validate();this.repaint()},"~B");e(c$,"adjustAnnotationHeight",function(){0==this.alignFrame.getSize().height&&System.out.println("adjustAnnotationHeight frame size zero NEEDS FIXING");this.fontChanged();this.validateAnnotationDimensions(!0);this.apvscroll.addNotify();this.hscroll.addNotify();
2278 this.validate();this.paintAlignment(!0)});d(c$,"validateAnnotationDimensions",function(a){var b=this.av.getCharHeight(),c=b*this.av.getAlignment().getHeight(),f=this.av.calcPanelHeight(),d=f,e=this.sequenceHolderPanel.getSize(),g=e.height-this.scalePanelHolder.getHeight();a?f+c>g&&(f=Math.min(f,g-2*b)):f=this.annotationPanelHolder.getSize().height;5>g-f&&(f=g);this.annotationPanel.setSize(new java.awt.Dimension(e.width,f));this.annotationPanelHolder.setSize(new java.awt.Dimension(e.width,f));this.seqPanel.seqCanvas.setSize(e.width,
2279 this.seqPanel.seqCanvas.getSize().height);a=this.idPanel.getSize();this.alabels.setSize(new java.awt.Dimension(a.width,f));this.annotationSpaceFillerHolder.setSize(new java.awt.Dimension(a.width,f));a=this.apvscroll.getValue();a>d-f&&(a=0);this.apvscroll.setValues(a,f,0,d);this.annotationPanel.setScrollOffset(this.apvscroll.getValue(),!1);this.alabels.setScrollOffset(this.apvscroll.getValue(),!1)},"~B");d(c$,"setWrapAlignment",function(a){this.av.startSeq=0;this.av.startRes=0;this.scalePanelHolder.setVisible(!a);
2280 this.hscroll.setVisible(!a);this.idwidthAdjuster.setVisible(!a);a?(this.annotationPanelHolder.setVisible(!1),this.annotationSpaceFillerHolder.setVisible(!1)):this.av.isShowAnnotation()&&(this.annotationPanelHolder.setVisible(!0),this.annotationSpaceFillerHolder.setVisible(!0));this.idSpaceFillerPanel1.setVisible(!a);this.fontChanged();this.validate();this.sequenceHolderPanel.validate();this.repaint()},"~B");d(c$,"scrollUp",function(a){if(a){if(1>this.vscroll.getValue())return!1;this.setScrollValues(this.hscroll.getValue(),
2281 this.vscroll.getValue()-1)}else{if(this.vextent+this.vscroll.getValue()>=this.av.getAlignment().getHeight())return!1;this.setScrollValues(this.hscroll.getValue(),this.vscroll.getValue()+1)}this.repaint();return!0},"~B");d(c$,"scrollRight",function(a){if(a){if(this.hextent+this.hscroll.getValue()>=this.av.getAlignment().getWidth())return!1;this.setScrollValues(this.hscroll.getValue()+1,this.vscroll.getValue())}else{if(1>this.hscroll.getValue())return!1;this.setScrollValues(this.hscroll.getValue()-
2282 1,this.vscroll.getValue())}this.repaint();return!0},"~B");d(c$,"setScrollValues",function(a,b){var c=this.av.getAlignment().getWidth(),f=this.av.getAlignment().getHeight();this.av.hasHiddenColumns()&&(c=this.av.getColumnSelection().findColumnPosition(c));0>a&&(a=0);this.hextent=F(this.seqPanel.seqCanvas.getSize().width/this.av.getCharWidth());this.vextent=F(this.seqPanel.seqCanvas.getSize().height/this.av.getCharHeight());this.hextent>c&&(this.hextent=c);this.vextent>f&&(this.vextent=f);this.hextent+
2283 a>c&&(System.err.println("hextent was "+this.hextent+" and x was "+a),a=c-this.hextent);this.vextent+b>f&&(b=f-this.vextent);0>b&&(b=0);0>a&&(System.err.println("x was "+a),a=0);this.av.setStartSeq(b);var d=b+this.vextent;d>this.av.getAlignment().getHeight()&&(d=this.av.getAlignment().getHeight());this.av.setEndSeq(d);this.av.setStartRes(a);this.av.setEndRes(a+F(this.seqPanel.seqCanvas.getSize().width/this.av.getCharWidth())-1);this.hscroll.setValues(a,this.hextent,0,c);this.vscroll.setValues(b,this.vextent,
2284 0,f);null!=this.overviewPanel&&this.overviewPanel.setBoxPosition();this.sendViewPosition()},"~N,~N");e(c$,"adjustmentValueChanged",function(a){if(null!=this.annotationPanel){var b=this.av.getStartRes(),c=this.av.getStartSeq();if(null==a||a.getSource()===this.apvscroll)this.annotationPanel.setScrollOffset(this.apvscroll.getValue(),!1),this.alabels.setScrollOffset(this.apvscroll.getValue(),!1);if(null==a||a.getSource()===this.hscroll){var f=this.hscroll.getValue();this.av.setStartRes(f);this.av.setEndRes(f+
2285 F(this.seqPanel.seqCanvas.getSize().width/this.av.getCharWidth())-1)}if(null==a||a.getSource()===this.vscroll)a=this.vscroll.getValue(),this.av.getWrapAlignment()?(a=this.seqPanel.seqCanvas.getWrappedCanvasWidth(this.seqPanel.seqCanvas.getSize().width),this.av.setStartRes(this.vscroll.getValue()*a),this.av.setEndRes((this.vscroll.getValue()+1)*a)):(this.av.setStartSeq(a),this.av.setEndSeq(a+F(this.seqPanel.seqCanvas.getSize().height/this.av.getCharHeight())));null!=this.overviewPanel&&this.overviewPanel.setBoxPosition();
2286 a=this.av.startRes-b;c=this.av.startSeq-c;this.av.getWrapAlignment()||!this.fastPaint||this.av.MAC?this.repaint():(a>this.av.endRes-this.av.startRes?a=this.av.endRes-this.av.startRes:a<this.av.startRes-this.av.endRes&&(a=this.av.startRes-this.av.endRes),this.idPanel.idCanvas.fastPaint(c),this.seqPanel.seqCanvas.fastPaint(a,c),this.scalePanel.repaint(),this.av.isShowAnnotation()&&this.annotationPanel.fastPaint(this.av.getStartRes()-b));this.sendViewPosition();this.isFollowingComplementScroll()?this.setFollowingComplementScroll(!1):
2287 (b=this.getComplementPanel(),this.av.scrollComplementaryAlignment(b))}},"java.awt.event.AdjustmentEvent");d(c$,"getComplementPanel",function(){var a=null;if(null!=this.alignFrame){var b=this.alignFrame.getSplitFrame();null!=b&&(b=b.getComplement(this.alignFrame),null!=b&&(a=b.alignPanel))}return a});d(c$,"scrollToCentre",function(a,b){for(var c=a.getResultSequence(0),f=0,d=!1,e,g=this.av.getAlignment().getSequences().iterator();g.hasNext()&&((e=g.next())||1);){if(c===e.getDatasetSequence()){d=!0;
2288 break}f++}d&&(f=Math.max(0,f-b),a.getResults().get(0).setSequence(this.av.getAlignment().getSequenceAt(f)),this.setFollowingComplementScroll(!0),this.scrollToPosition(a,!0,!0))},"jalview.datamodel.SearchResults,~N");d(c$,"sendViewPosition",function(){jalview.structure.StructureSelectionManager.getStructureSelectionManager(this.av.applet).sendViewPosition(this,this.av.startRes,this.av.endRes,this.av.startSeq,this.av.endSeq)});e(c$,"paintAlignment",function(a){(new jalview.analysis.AnnotationSorter(this.getAlignment(),
2289 this.av.isShowAutocalculatedAbove())).sort(this.getAlignment().getAlignmentAnnotation(),this.av.getSortAnnotationsBy());this.repaint();a&&(jalview.structure.StructureSelectionManager.getStructureSelectionManager(this.av.applet).sequenceColoursChanged(this),null!=this.overviewPanel&&this.overviewPanel.updateOverviewImage())},"~B");e(c$,"paintComponent",function(){System.out.println("alignframe paintcomp");this.invalidate();var a=this.idPanel.idCanvas.getSize(),b=this.seqPanel.seqCanvas.getSize().height;
2290 b!=a.height&&this.idPanel.idCanvas.setSize(a.width,b);this.av.getWrapAlignment()?(a=this.av.getAlignment().getWidth(),this.av.hasHiddenColumns()&&(a=this.av.getColumnSelection().findColumnPosition(a)-1),b=this.seqPanel.seqCanvas.getWrappedCanvasWidth(this.seqPanel.seqCanvas.getSize().width),0<b&&(a=F(a/b),this.vscroll.setMaximum(1+a),this.vscroll.setUnitIncrement(1),this.vscroll.setVisibleAmount(1))):this.setScrollValues(this.av.getStartRes(),this.av.getStartSeq())},"java.awt.Graphics");d(c$,"jbInit",
2291 function(){this.setLayout(new java.awt.BorderLayout);this.sequenceHolderPanel.setLayout(new java.awt.BorderLayout);this.seqPanelHolder.setLayout(new java.awt.BorderLayout);this.scalePanelHolder.setBackground(java.awt.Color.white);this.scalePanelHolder.setLayout(new java.awt.BorderLayout);this.idPanelHolder.setLayout(new java.awt.BorderLayout);this.idSpaceFillerPanel1.setBackground(java.awt.Color.white);this.idSpaceFillerPanel1.setLayout(new java.awt.BorderLayout);this.annotationSpaceFillerHolder.setBackground(java.awt.Color.white);
2292 this.annotationSpaceFillerHolder.setLayout(new java.awt.BorderLayout);this.hscroll.setOrientation(0);var a=new awt2swing.Panel;a.setLayout(new java.awt.BorderLayout);this.hscrollFillerPanel.setBackground(java.awt.Color.white);this.apvscroll.setOrientation(1);this.apvscroll.setVisible(!0);this.apvscroll.addAdjustmentListener(this);this.annotationPanelHolder.setBackground(java.awt.Color.white);this.annotationPanelHolder.setLayout(new java.awt.BorderLayout);this.annotationPanelHolder.add(this.apvscroll,
2293 "East");a.setBackground(java.awt.Color.white);this.seqPanelHolder.setBackground(java.awt.Color.white);this.idPanelHolder.setBackground(java.awt.Color.white);this.sequenceHolderPanel.add(this.scalePanelHolder,"North");this.sequenceHolderPanel.add(this.seqPanelHolder,"Center");this.seqPanelHolder.add(this.vscroll,"East");this.add(this.idPanelHolder,"West");this.idPanelHolder.add(this.idSpaceFillerPanel1,"North");this.idPanelHolder.add(this.annotationSpaceFillerHolder,"South");this.add(a,"South");a.add(this.hscroll,
2294 "Center");a.add(this.hscrollFillerPanel,"West");this.add(this.sequenceHolderPanel,"Center")});d(c$,"updateAnnotation",function(){this.updateAnnotation(!1)});d(c$,"updateAnnotation",function(a){this.updateAnnotation(a,!1)},"~B");d(c$,"updateAnnotation",function(a,b){this.av.updateGroupAnnotationSettings(a,b);this.adjustAnnotationHeight()},"~B,~B");e(c$,"getAlignment",function(){return this.av.getAlignment()});e(c$,"getViewName",function(){return this.getName()});e(c$,"getStructureSelectionManager",
2295 function(){return jalview.structure.StructureSelectionManager.getStructureSelectionManager(this.av.applet)});e(c$,"raiseOOMWarning",function(a,b){System.err.println("Out of memory whilst '"+a+"'");b.printStackTrace()},"~S,OutOfMemoryError");d(c$,"setFollowingComplementScroll",function(a){this.followingComplementScroll=a},"~B");d(c$,"isFollowingComplementScroll",function(){return this.followingComplementScroll});c$.$AlignmentPanel$1$=function(){A(self.c$);c$=L(jalview.appletgui,"AlignmentPanel$1",
2296 java.awt.event.ComponentAdapter);e(c$,"componentResized",function(){this.b$["jalview.appletgui.AlignmentPanel"].setScrollValues(this.f$.av.getStartRes(),this.f$.av.getStartSeq());0<this.b$["jalview.appletgui.AlignmentPanel"].getSize().height&&0<this.b$["jalview.appletgui.AlignmentPanel"].annotationPanelHolder.getSize().height&&this.b$["jalview.appletgui.AlignmentPanel"].validateAnnotationDimensions(!1);this.b$["jalview.appletgui.AlignmentPanel"].repaint()},"java.awt.event.ComponentEvent");c$=z()};
2297 c$.$AlignmentPanel$2$=function(){A(self.c$);c$=L(jalview.appletgui,"AlignmentPanel$2",null,java.beans.PropertyChangeListener);e(c$,"propertyChange",function(a){a.getPropertyName().equals("alignment")&&(jalview.appletgui.PaintRefresher.Refresh(this.f$.ap,this.f$.av.getSequenceSetId(),!0,!0),this.b$["jalview.appletgui.AlignmentPanel"].alignmentChanged())},"java.beans.PropertyChangeEvent");c$=z()}});p("jalview.api");q(["jalview.api.OOMHandlerI"],"jalview.api.AlignmentViewPanel",null,function(){M(jalview.api,
2298 "AlignmentViewPanel",jalview.api.OOMHandlerI)});p("jalview.api");M(jalview.api,"OOMHandlerI");p("awt2swing");q(["javax.swing.JScrollBar"],"awt2swing.Scrollbar",null,function(){c$=B(awt2swing,"Scrollbar",javax.swing.JScrollBar);d(c$,"addChangeListener",function(a){this.addAdjustmentListener(a)},"javax.swing.event.ChangeListener");d(c$,"removeChangeListener",function(a){this.removeAdjustmentListener(a)},"javax.swing.event.ChangeListener")});p("javax.swing");q(["java.awt.Adjustable","javax.swing.JComponent",
2299 "javax.swing.event.ChangeListener"],"javax.swing.JScrollBar","java.lang.IllegalArgumentException java.awt.Dimension java.awt.event.AdjustmentEvent $.AdjustmentListener javax.swing.BoundedRangeModel $.DefaultBoundedRangeModel $.UIManager".split(" "),function(){c$=s(function(){this.model=this.fwdAdjustmentEvents=null;this.blockIncrement=this.unitIncrement=this.orientation=0;H("javax.swing.JScrollBar.ModelListener")||javax.swing.JScrollBar.$JScrollBar$ModelListener$();r(this,arguments)},javax.swing,
2300 "JScrollBar",javax.swing.JComponent,java.awt.Adjustable);J(c$,function(){this.fwdAdjustmentEvents=C(javax.swing.JScrollBar.ModelListener,this,null)});d(c$,"checkOrientation",function(a){switch(a){case 1:case 0:break;default:throw new IllegalArgumentException("orientation must be one of: VERTICAL, HORIZONTAL");}},"~N");m(c$,function(a,b,c,f,d){t(this,javax.swing.JScrollBar,[]);this.checkOrientation(a);this.unitIncrement=1;this.blockIncrement=0==c?1:c;this.orientation=a;this.model=new javax.swing.DefaultBoundedRangeModel(b,
2301 c,f,d);this.model.addChangeListener(this.fwdAdjustmentEvents);this.setRequestFocusEnabled(!1);this.updateUI()},"~N,~N,~N,~N,~N");m(c$,function(a){this.construct(a,0,10,0,100)},"~N");m(c$,function(){this.construct(1)});e(c$,"getUI",function(){return this.ui});e(c$,"updateUI",function(){this.setUI(javax.swing.UIManager.getUI(this))});e(c$,"getUIClassID",function(){return"ScrollBarUI"});e(c$,"getOrientation",function(){return this.orientation});d(c$,"setOrientation",function(a){this.checkOrientation(a);
2302 var b=this.orientation;this.orientation=a;this.firePropertyChangeInt("orientation",b,a);a!=b&&this.revalidate()},"~N");d(c$,"getModel",function(){return this.model});d(c$,"setModel",function(a){var b=this.model;null!=this.model&&this.model.removeChangeListener(this.fwdAdjustmentEvents);this.model=a;null!=this.model&&this.model.addChangeListener(this.fwdAdjustmentEvents);this.firePropertyChangeObject("model",b,this.model)},"javax.swing.BoundedRangeModel");d(c$,"getUnitIncrement",function(){return this.unitIncrement},
2303 "~N");e(c$,"setUnitIncrement",function(a){var b=this.unitIncrement;this.unitIncrement=a;this.firePropertyChangeInt("unitIncrement",b,a)},"~N");d(c$,"getBlockIncrement",function(){return this.blockIncrement},"~N");e(c$,"setBlockIncrement",function(a){var b=this.blockIncrement;this.blockIncrement=a;this.firePropertyChangeInt("blockIncrement",b,a)},"~N");d(c$,"getUnitIncrement",function(){return this.unitIncrement});d(c$,"getBlockIncrement",function(){return this.blockIncrement});e(c$,"getValue",function(){return this.getModel().getValue()});
2304 e(c$,"setValue",function(a){this.getModel().setValue(a)},"~N");e(c$,"getVisibleAmount",function(){return this.getModel().getExtent()});e(c$,"setVisibleAmount",function(a){this.getModel().setExtent(a)},"~N");e(c$,"getMinimum",function(){return this.getModel().getMinimum()});e(c$,"setMinimum",function(a){this.getModel().setMinimum(a)},"~N");e(c$,"getMaximum",function(){return this.getModel().getMaximum()});e(c$,"setMaximum",function(a){this.getModel().setMaximum(a)},"~N");d(c$,"getValueIsAdjusting",
2305 function(){return this.getModel().getValueIsAdjusting()});d(c$,"setValueIsAdjusting",function(a){this.getModel().setValueIsAdjusting(a)},"~B");d(c$,"setValues",function(a,b,c,f){var d=this.getModel();d.setRangeProperties(a,b,c,f,d.getValueIsAdjusting())},"~N,~N,~N,~N");e(c$,"addAdjustmentListener",function(a){this.listenerList.add(java.awt.event.AdjustmentListener,a)},"java.awt.event.AdjustmentListener");e(c$,"removeAdjustmentListener",function(a){this.listenerList.remove(java.awt.event.AdjustmentListener,
2306 a)},"java.awt.event.AdjustmentListener");d(c$,"getAdjustmentListeners",function(){return this.listenerList.getListeners(java.awt.event.AdjustmentListener)});d(c$,"fireAdjustmentValueChanged",function(a,b,c){this.fireAdjustmentValueChanged(a,b,c,this.getValueIsAdjusting())},"~N,~N,~N");d(c$,"fireAdjustmentValueChanged",function(a,b,c,f){for(var d=this.listenerList.getListenerList(),e=null,g=d.length-2;0<=g;g-=2)d[g]===java.awt.event.AdjustmentListener&&(null==e&&(e=new java.awt.event.AdjustmentEvent(this,
2307 a,b,c,f)),d[g+1].adjustmentValueChanged(e))},"~N,~N,~N,~B");e(c$,"getMinimumSize",function(){var a=this.getPreferredSize();return 1==this.orientation?new java.awt.Dimension(a.width,5):new java.awt.Dimension(5,a.height)});e(c$,"getMaximumSize",function(){var a=this.getPreferredSize();return 1==this.getOrientation()?new java.awt.Dimension(a.width,32767):new java.awt.Dimension(32767,a.height)});d(c$,"setEnabled",function(a){K(this,javax.swing.JScrollBar,"setEnabled",[a]);for(var b=this.getComponents(),
2308 c=0;c<b.length;c++)b[c].setEnabled(a)},"~B");d(c$,"paramString",function(){var a=0==this.orientation?"HORIZONTAL":"VERTICAL";return K(this,javax.swing.JScrollBar,"paramString",[])+",blockIncrement="+this.blockIncrement+",orientation="+a+",unitIncrement="+this.unitIncrement});c$.$JScrollBar$ModelListener$=function(){A(self.c$);c$=s(function(){O(this,arguments);r(this,arguments)},javax.swing.JScrollBar,"ModelListener",null,javax.swing.event.ChangeListener);e(c$,"stateChanged",function(a){var b=a.getSource();
2309 v(b,javax.swing.BoundedRangeModel)&&(a=b.getValue(),b=b.getValueIsAdjusting(),this.b$["javax.swing.JScrollBar"].fireAdjustmentValueChanged(601,5,a,b))},"javax.swing.event.ChangeEvent");c$=z()};G(c$,"$uiClassID","ScrollBarUI")});p("java.awt");c$=M(java.awt,"Adjustable");G(c$,"HORIZONTAL",0,"VERTICAL",1,"NO_ORIENTATION",2);p("java.awt.event");q(["java.awt.AWTEvent"],"java.awt.event.AdjustmentEvent",null,function(){c$=s(function(){this.adjustable=null;this.adjustmentType=this.value=0;this.isAdjusting=
2310 !1;r(this,arguments)},java.awt.event,"AdjustmentEvent",java.awt.AWTEvent);m(c$,function(a,b,c,f){this.construct(a,b,c,f,!1)},"java.awt.Adjustable,~N,~N,~N");m(c$,function(a,b,c,f,d){t(this,java.awt.event.AdjustmentEvent,[a,b]);this.adjustable=a;this.adjustmentType=c;this.value=f;this.isAdjusting=d},"java.awt.Adjustable,~N,~N,~N,~B");d(c$,"getAdjustable",function(){return this.adjustable});d(c$,"getValue",function(){return this.value});d(c$,"getAdjustmentType",function(){return this.adjustmentType});
2311 d(c$,"getValueIsAdjusting",function(){return this.isAdjusting});e(c$,"paramString",function(){var a;switch(this.id){case 601:a="ADJUSTMENT_VALUE_CHANGED";break;default:a="unknown type"}var b;switch(this.adjustmentType){case 1:b="UNIT_INCREMENT";break;case 2:b="UNIT_DECREMENT";break;case 4:b="BLOCK_INCREMENT";break;case 3:b="BLOCK_DECREMENT";break;case 5:b="TRACK";break;default:b="unknown type"}return a+",adjType="+b+",value="+this.value+",isAdjusting="+this.isAdjusting});G(c$,"ADJUSTMENT_FIRST",601,
2312 "ADJUSTMENT_LAST",601,"ADJUSTMENT_VALUE_CHANGED",601,"UNIT_INCREMENT",1,"UNIT_DECREMENT",2,"BLOCK_DECREMENT",3,"BLOCK_INCREMENT",4,"TRACK",5)});p("jalview.appletgui");q(["awt2swing.Panel","java.awt.event.ActionListener","$.MouseListener","$.MouseMotionListener"],"jalview.appletgui.AnnotationLabels","awt2swing.Checkbox $.CheckboxMenuItem $.Frame $.MenuItem $.PopupMenu $.Util jalview.analysis.AlignmentUtils jalview.appletgui.AlignFrame $.CutAndPasteTransfer $.EditNameDialog $.PaintRefresher $.Tooltip jalview.bin.JalviewLite jalview.datamodel.AlignmentAnnotation $.SequenceGroup jalview.util.MessageManager $.ParseHtmlBodyAndLinks java.awt.Color $.Dimension $.FlowLayout java.awt.event.ItemListener java.lang.StringBuffer java.util.Arrays $.Collections $.Vector".split(" "),
2313 function(){c$=s(function(){this.image=null;this.active=!1;this.av=this.ap=null;this.resizing=!1;this.scrollOffset=this.mouseX=this.oldY=0;this.selectedRow=-1;this.tooltip=null;this.resizePanel=this.hasHiddenRows=!1;this.dragEvent=null;this.dragCancelled=!1;r(this,arguments)},jalview.appletgui,"AnnotationLabels",awt2swing.Panel,[java.awt.event.ActionListener,java.awt.event.MouseListener,java.awt.event.MouseMotionListener]);m(c$,function(a){t(this,jalview.appletgui.AnnotationLabels,[]);this.ap=a;this.av=
2314 a.av;this.setLayout(null);this.addMouseListener(this);this.addMouseMotionListener(this)},"jalview.appletgui.AlignmentPanel");m(c$,function(a){t(this,jalview.appletgui.AnnotationLabels,[]);this.av=a},"jalview.appletgui.AlignViewport");d(c$,"setScrollOffset",function(a,b){this.scrollOffset=a;b&&this.repaint()},"~N,~B");d(c$,"getSelectedRow",function(a){var b=-2,c=this.ap.av.getAlignment().getAlignmentAnnotation();if(null==c)return b;for(var f=0,d=0;d<c.length;d++)if(b=-1,c[d].visible&&(f+=c[d].height,
2315 a<f)){b=d;break}return b},"~N");e(c$,"actionPerformed",function(a){var b=this.av.getAlignment().getAlignmentAnnotation();if(a.getActionCommand().equals(jalview.appletgui.AnnotationLabels.ADDNEW)){b=new jalview.datamodel.AlignmentAnnotation("",null,Array(this.ap.av.getAlignment().getWidth()));if(!this.editLabelDescription(b))return;this.ap.av.getAlignment().addAnnotation(b);this.ap.av.getAlignment().setAnnotationIndex(b,0)}else if(a.getActionCommand().equals(jalview.appletgui.AnnotationLabels.EDITNAME))this.editLabelDescription(b[this.selectedRow]);
2316 else if(a.getActionCommand().equals(jalview.appletgui.AnnotationLabels.HIDE))b[this.selectedRow].visible=!1;else if(a.getActionCommand().equals(jalview.appletgui.AnnotationLabels.SHOWALL))for(a=0;a<b.length;a++)b[a].visible=null==b[a].annotations?!1:!0;else if(a.getActionCommand().equals(jalview.appletgui.AnnotationLabels.OUTPUT_TEXT)){a=new jalview.appletgui.CutAndPasteTransfer(!1,this.ap.alignFrame);var c=new awt2swing.Frame;c.add(a);jalview.bin.JalviewLite.addFrame(c,this.ap.alignFrame.getTitle()+
2317 " - "+b[this.selectedRow].label,500,100);a.setText(b[this.selectedRow].toString())}else a.getActionCommand().equals(jalview.appletgui.AnnotationLabels.COPYCONS_SEQ)&&(b=this.av.getConsensusSeq(),null!=b&&this.copy_annotseqtoclipboard(b));this.refresh()},"java.awt.event.ActionEvent");d(c$,"refresh",function(){this.ap.annotationPanel.adjustPanelHeight();this.setSize(this.getSize().width,this.ap.annotationPanel.getSize().height);this.ap.validate();this.ap.paintAlignment(!0)});d(c$,"editLabelDescription",
2318 function(a){var b=new awt2swing.Checkbox('Fill Empty Gaps With "'+this.ap.av.getGapCharacter()+'"',a.padGaps),c=new jalview.appletgui.EditNameDialog(a.label,a.description,"      Annotation Label","Annotation Description",this.ap.alignFrame,"Edit Annotation Name / Description",500,180,!1),f=new awt2swing.Panel(new java.awt.FlowLayout);f.add(b);c.add(f);c.pack();c.setVisible(!0);return c.accept?(a.label=c.getName(),a.description=c.getDescription(),a.setPadGaps(b.getState(),this.av.getGapCharacter()),
2319 this.repaint(),!0):!1},"jalview.datamodel.AlignmentAnnotation");e(c$,"mouseMoved",function(a){this.resizePanel=10>a.getY()&&14>a.getX();a=this.getSelectedRow(a.getY()+this.scrollOffset);-1<a?(a=new jalview.util.ParseHtmlBodyAndLinks(this.av.getAlignment().getAlignmentAnnotation()[a].getDescription(!0),!0,"\n"),null==this.tooltip?this.tooltip=new jalview.appletgui.Tooltip(a.getNonHtmlContent(),this):this.tooltip.setTip(a.getNonHtmlContent())):null!=this.tooltip&&this.tooltip.setTip("")},"java.awt.event.MouseEvent");
2320 d(c$,"cancelDrag",function(){this.dragEvent=null;this.dragCancelled=!0});e(c$,"mouseDragged",function(a){if(!this.dragCancelled)if(this.dragEvent=a,this.resizePanel){var b=this.ap.annotationPanelHolder.getSize(),c=this.ap.annotationSpaceFillerHolder.getSize(),f=this.ap.seqPanelHolder.getSize();a=a.getY()-this.oldY;a/=this.ap.av.getCharHeight();a*=this.ap.av.getCharHeight();20<b.height-a&&20<f.height+a&&(this.ap.annotationPanel.setSize(b.width,b.height-a),this.setSize(new java.awt.Dimension(c.width,
2321 b.height-a)),this.ap.annotationSpaceFillerHolder.setSize(new java.awt.Dimension(c.width,b.height-a)),this.ap.annotationPanelHolder.setSize(new java.awt.Dimension(b.width,b.height-a)),this.ap.apvscroll.setValues(this.ap.apvscroll.getValue(),b.height-a,0,this.av.calcPanelHeight()),f.height+=a,this.ap.seqPanelHolder.setPreferredSize(f),this.ap.setScrollValues(this.av.getStartRes(),this.av.getStartSeq()),this.ap.validate(),this.ap.addNotify())}else{if(0<(b=6-a.getY()))this.ap.apvscroll.setValue(this.ap.apvscroll.getValue()-
2322 b),this.ap.adjustmentValueChanged(null);else if(0<(b=6-this.ap.annotationSpaceFillerHolder.getSize().height+a.getY()))this.ap.apvscroll.setValue(this.ap.apvscroll.getValue()+b),this.ap.adjustmentValueChanged(null);this.repaint()}},"java.awt.event.MouseEvent");e(c$,"mouseClicked",function(){},"java.awt.event.MouseEvent");e(c$,"mouseReleased",function(a){if(!this.resizePanel&&!this.dragCancelled){var b=this.selectedRow;a=this.getSelectedRow(a.getY()+this.scrollOffset);if(-1<b&&b!=a){var c=this.ap.av.getAlignment().getAlignmentAnnotation()[b];
2323 -1==a&&(a=this.ap.av.getAlignment().getAlignmentAnnotation().length-1);var f=this.ap.av.getAlignment().getAlignmentAnnotation()[a];this.ap.av.getAlignment().getAlignmentAnnotation()[a]=c;this.ap.av.getAlignment().getAlignmentAnnotation()[b]=f}}this.resizePanel=!1;this.dragEvent=null;this.dragCancelled=!1;this.repaint();this.ap.annotationPanel.repaint()},"java.awt.event.MouseEvent");e(c$,"mouseEntered",function(a){10>a.getY()&&14>a.getX()&&(this.resizePanel=!0,this.repaint())},"java.awt.event.MouseEvent");
2324 e(c$,"mouseExited",function(){this.dragCancelled=!1;null==this.dragEvent?this.resizePanel=!1:this.resizePanel||(this.dragEvent=null);this.repaint()},"java.awt.event.MouseEvent");e(c$,"mousePressed",function(a){this.oldY=a.getY();if(!this.resizePanel){this.dragCancelled=!1;this.selectedRow=this.getSelectedRow(a.getY()+this.scrollOffset);var b=this.ap.av.getAlignment().getAlignmentAnnotation();if(4==(a.getModifiers()&4)){var c=new awt2swing.PopupMenu(jalview.util.MessageManager.getString("label.annotations")),
2325 f=new awt2swing.MenuItem(jalview.appletgui.AnnotationLabels.ADDNEW);f.addActionListener(this);c.add(f);if(0>this.selectedRow)this.hasHiddenRows&&(f=new awt2swing.MenuItem(jalview.appletgui.AnnotationLabels.SHOWALL),f.addActionListener(this),c.add(f)),this.add(c);else{f=new awt2swing.MenuItem(jalview.appletgui.AnnotationLabels.EDITNAME);f.addActionListener(this);c.add(f);f=new awt2swing.MenuItem(jalview.appletgui.AnnotationLabels.HIDE);f.addActionListener(this);c.add(f);if(this.selectedRow<b.length&&
2326 null!=b[this.selectedRow].sequenceRef){var f=b[this.selectedRow].label,d=new awt2swing.MenuItem(jalview.util.MessageManager.getString("label.hide_all")+" "+f);d.addActionListener((H("jalview.appletgui.AnnotationLabels$1")?0:jalview.appletgui.AnnotationLabels.$AnnotationLabels$1$(),C(jalview.appletgui.AnnotationLabels$1,this,T("label",f))));c.add(d)}this.hasHiddenRows&&(f=new awt2swing.MenuItem(jalview.appletgui.AnnotationLabels.SHOWALL),f.addActionListener(this),c.add(f));this.add(c);f=new awt2swing.MenuItem(jalview.appletgui.AnnotationLabels.OUTPUT_TEXT);
2327 f.addActionListener(this);c.add(f);this.selectedRow<b.length&&(b[this.selectedRow].autoCalculated&&-1<b[this.selectedRow].label.indexOf("Consensus"))&&(c.addSeparator(),d=new awt2swing.CheckboxMenuItem(jalview.util.MessageManager.getString("label.ignore_gaps_consensus"),null!=b[this.selectedRow].groupRef?b[this.selectedRow].groupRef.getIgnoreGapsConsensus():this.ap.av.isIgnoreGapsConsensus()),f=b[this.selectedRow],d.addItemListener((H("jalview.appletgui.AnnotationLabels$2")?0:jalview.appletgui.AnnotationLabels.$AnnotationLabels$2$(),
2328 C(jalview.appletgui.AnnotationLabels$2,this,T("aaa",f,"cbmi",d)))),c.add(d),null!=f.groupRef?(d=new awt2swing.CheckboxMenuItem(jalview.util.MessageManager.getString("label.show_group_histogram"),b[this.selectedRow].groupRef.isShowConsensusHistogram()),d.addItemListener((H("jalview.appletgui.AnnotationLabels$3")?0:jalview.appletgui.AnnotationLabels.$AnnotationLabels$3$(),C(jalview.appletgui.AnnotationLabels$3,this,T("aaa",f,"chist",d)))),c.add(d),d=new awt2swing.CheckboxMenuItem(jalview.util.MessageManager.getString("label.show_group_logo"),
2329 b[this.selectedRow].groupRef.isShowSequenceLogo()),d.addItemListener((H("jalview.appletgui.AnnotationLabels$4")?0:jalview.appletgui.AnnotationLabels.$AnnotationLabels$4$(),C(jalview.appletgui.AnnotationLabels$4,this,T("aaa",f,"cprofl",d)))),c.add(d),b=new awt2swing.CheckboxMenuItem(jalview.util.MessageManager.getString("label.normalise_group_logo"),b[this.selectedRow].groupRef.isNormaliseSequenceLogo()),b.addItemListener((H("jalview.appletgui.AnnotationLabels$5")?0:jalview.appletgui.AnnotationLabels.$AnnotationLabels$5$(),
2330 C(jalview.appletgui.AnnotationLabels$5,this,T("aaa",f,"cprofn",b))))):(d=new awt2swing.CheckboxMenuItem(jalview.util.MessageManager.getString("label.show_histogram"),this.av.isShowConsensusHistogram()),d.addItemListener((H("jalview.appletgui.AnnotationLabels$6")?0:jalview.appletgui.AnnotationLabels.$AnnotationLabels$6$(),C(jalview.appletgui.AnnotationLabels$6,this,T("chist",d)))),c.add(d),b=new awt2swing.CheckboxMenuItem(jalview.util.MessageManager.getString("label.show_logo"),this.av.isShowSequenceLogo()),
2331 b.addItemListener((H("jalview.appletgui.AnnotationLabels$7")?0:jalview.appletgui.AnnotationLabels.$AnnotationLabels$7$(),C(jalview.appletgui.AnnotationLabels$7,this,T("cprof",b)))),c.add(b),b=new awt2swing.CheckboxMenuItem(jalview.util.MessageManager.getString("label.normalise_logo"),this.av.isNormaliseSequenceLogo()),b.addItemListener((H("jalview.appletgui.AnnotationLabels$8")?0:jalview.appletgui.AnnotationLabels.$AnnotationLabels$8$(),C(jalview.appletgui.AnnotationLabels$8,this,T("cprofn",b))))),
2332 c.add(b),f=new awt2swing.MenuItem(jalview.appletgui.AnnotationLabels.COPYCONS_SEQ),f.addActionListener(this),c.add(f))}c.show(this,a.getX(),a.getY())}else-1<this.selectedRow&&this.selectedRow<b.length&&(null!=b[this.selectedRow].groupRef?2<=a.getClickCount()?(this.ap.seqPanel.ap.idPanel.highlightSearchResults(null),this.ap.av.setSelectionGroup(b[this.selectedRow].groupRef),this.ap.av.sendSelection(),this.ap.paintAlignment(!1),jalview.appletgui.PaintRefresher.Refresh(this.ap,this.ap.av.getSequenceSetId())):
2333 this.ap.seqPanel.ap.idPanel.highlightSearchResults(b[this.selectedRow].groupRef.getSequences(null)):null!=b[this.selectedRow].sequenceRef&&(1==a.getClickCount()?this.ap.seqPanel.ap.idPanel.highlightSearchResults(java.util.Arrays.asList(E(-1,[b[this.selectedRow].sequenceRef]))):2<=a.getClickCount()&&(this.ap.seqPanel.ap.idPanel.highlightSearchResults(null),c=this.ap.av.getSelectionGroup(),null!=c?!a.isControlDown()&&!a.isShiftDown()?(c=new jalview.datamodel.SequenceGroup(c),c.clear(),c.addSequence(b[this.selectedRow].sequenceRef,
2334 !1)):a.isControlDown()?c.addOrRemove(b[this.selectedRow].sequenceRef,!0):c.addSequence(b[this.selectedRow].sequenceRef,!0):(c=new jalview.datamodel.SequenceGroup,c.setStartRes(0),c.setEndRes(this.ap.av.getAlignment().getWidth()-1),c.addSequence(b[this.selectedRow].sequenceRef,!1)),this.ap.av.setSelectionGroup(c),this.ap.paintAlignment(!1),jalview.appletgui.PaintRefresher.Refresh(this.ap,this.ap.av.getSequenceSetId()),this.ap.av.sendSelection())))}},"java.awt.event.MouseEvent");d(c$,"copy_annotseqtoclipboard",
2335 function(a){if(!(null==a||1>a.getLength()))if(jalview.appletgui.AlignFrame.copiedSequences=new StringBuffer,jalview.appletgui.AlignFrame.copiedSequences.append(a.getName()+"\t"+a.getStart()+"\t"+a.getEnd()+"\t"+a.getSequenceAsString()+"\n"),this.av.hasHiddenColumns()){jalview.appletgui.AlignFrame.copiedHiddenColumns=new java.util.Vector;var b;for(a=this.av.getColumnSelection().getHiddenColumns().iterator();a.hasNext()&&((b=a.next())||1);)jalview.appletgui.AlignFrame.copiedHiddenColumns.addElement(w(-1,
2336 [b[0],b[1]]))}},"jalview.datamodel.SequenceI");e(c$,"paintComponent",function(a){if(!this.av.getWrapAlignment()&&this.av.isShowAnnotation()){var b=this.getSize().width,c=this.getSize().height;if(null==this.image||b!=this.image.getWidth(this)||c!=this.image.getHeight(this))this.image=this.createImage(b,this.ap.annotationPanel.getSize().height);this.drawComponent(this.image.getGraphics(),b);a.drawImage(this.image,0,0,this)}},"java.awt.Graphics");d(c$,"drawComponent",function(a,b){a.setFont(this.av.getFont());
2337 var c=a.getFontMetrics(this.av.getFont());a.setColor(java.awt.Color.white);a.fillRect(0,0,this.getSize().width,this.getSize().height);a.translate(0,-this.scrollOffset);a.setColor(java.awt.Color.black);var f=this.av.getAlignment().getAlignmentAnnotation(),d=0,e=a.getFont().getSize(),g=0,h;if(null!=f){this.hasHiddenRows=!1;for(var j=0;j<f.length;j++)f[j].visible?(g=b-c.stringWidth(f[j].label)-3,d+=f[j].height,h=F(-(f[j].height-e)/2),awt2swing.Util.drawString(a,f[j].label,g,d+h)):this.hasHiddenRows=
2338 !0}a.translate(0,+this.scrollOffset);this.resizePanel?(a.setColor(java.awt.Color.red),a.setPaintMode(),a.drawLine(2,8,5,2),a.drawLine(5,2,8,8)):!this.dragCancelled&&(null!=this.dragEvent&&null!=f)&&(a.setColor(java.awt.Color.lightGray),awt2swing.Util.drawString(a,f[this.selectedRow].label,this.dragEvent.getX(),this.dragEvent.getY()));if(!this.av.getWrapAlignment()&&(null==f||1>f.length))a.setColor(java.awt.Color.black),awt2swing.Util.drawString(a,jalview.util.MessageManager.getString("label.right_click"),
2339 2,8),awt2swing.Util.drawString(a,jalview.util.MessageManager.getString("label.to_add_annotation"),2,18)},"java.awt.Graphics,~N");c$.$AnnotationLabels$1$=function(){A(self.c$);c$=L(jalview.appletgui,"AnnotationLabels$1",null,java.awt.event.ActionListener);e(c$,"actionPerformed",function(){jalview.analysis.AlignmentUtils.showOrHideSequenceAnnotations(this.b$["jalview.appletgui.AnnotationLabels"].ap.av.getAlignment(),java.util.Collections.singleton(this.f$.label),null,!1,!1);this.b$["jalview.appletgui.AnnotationLabels"].refresh()},
2340 "java.awt.event.ActionEvent");c$=z()};c$.$AnnotationLabels$2$=function(){A(self.c$);c$=L(jalview.appletgui,"AnnotationLabels$2",null,java.awt.event.ItemListener);e(c$,"itemStateChanged",function(){null!=this.f$.aaa.groupRef?this.f$.aaa.groupRef.setIgnoreGapsConsensus(this.f$.cbmi.getState()):this.b$["jalview.appletgui.AnnotationLabels"].ap.av.setIgnoreGapsConsensus(this.f$.cbmi.getState(),this.b$["jalview.appletgui.AnnotationLabels"].ap);this.b$["jalview.appletgui.AnnotationLabels"].ap.paintAlignment(!0)},
2341 "java.awt.event.ItemEvent");c$=z()};c$.$AnnotationLabels$3$=function(){A(self.c$);c$=L(jalview.appletgui,"AnnotationLabels$3",null,java.awt.event.ItemListener);e(c$,"itemStateChanged",function(){this.f$.aaa.groupRef.setShowConsensusHistogram(this.f$.chist.getState());this.b$["jalview.appletgui.AnnotationLabels"].ap.repaint()},"java.awt.event.ItemEvent");c$=z()};c$.$AnnotationLabels$4$=function(){A(self.c$);c$=L(jalview.appletgui,"AnnotationLabels$4",null,java.awt.event.ItemListener);e(c$,"itemStateChanged",
2342 function(){this.f$.aaa.groupRef.setshowSequenceLogo(this.f$.cprofl.getState());this.b$["jalview.appletgui.AnnotationLabels"].ap.repaint()},"java.awt.event.ItemEvent");c$=z()};c$.$AnnotationLabels$5$=function(){A(self.c$);c$=L(jalview.appletgui,"AnnotationLabels$5",null,java.awt.event.ItemListener);e(c$,"itemStateChanged",function(){this.f$.aaa.groupRef.setshowSequenceLogo(!0);this.f$.aaa.groupRef.setNormaliseSequenceLogo(this.f$.cprofn.getState());this.b$["jalview.appletgui.AnnotationLabels"].ap.repaint()},
2343 "java.awt.event.ItemEvent");c$=z()};c$.$AnnotationLabels$6$=function(){A(self.c$);c$=L(jalview.appletgui,"AnnotationLabels$6",null,java.awt.event.ItemListener);e(c$,"itemStateChanged",function(){this.b$["jalview.appletgui.AnnotationLabels"].av.setShowConsensusHistogram(this.f$.chist.getState());this.b$["jalview.appletgui.AnnotationLabels"].ap.alignFrame.showConsensusHistogram.setState(this.f$.chist.getState());this.b$["jalview.appletgui.AnnotationLabels"].ap.repaint()},"java.awt.event.ItemEvent");
2344 c$=z()};c$.$AnnotationLabels$7$=function(){A(self.c$);c$=L(jalview.appletgui,"AnnotationLabels$7",null,java.awt.event.ItemListener);e(c$,"itemStateChanged",function(){this.b$["jalview.appletgui.AnnotationLabels"].av.setShowSequenceLogo(this.f$.cprof.getState());this.b$["jalview.appletgui.AnnotationLabels"].ap.alignFrame.showSequenceLogo.setState(this.f$.cprof.getState());this.b$["jalview.appletgui.AnnotationLabels"].ap.repaint()},"java.awt.event.ItemEvent");c$=z()};c$.$AnnotationLabels$8$=function(){A(self.c$);
2345 c$=L(jalview.appletgui,"AnnotationLabels$8",null,java.awt.event.ItemListener);e(c$,"itemStateChanged",function(){this.b$["jalview.appletgui.AnnotationLabels"].av.setShowSequenceLogo(!0);this.b$["jalview.appletgui.AnnotationLabels"].ap.alignFrame.normSequenceLogo.setState(this.f$.cprofn.getState());this.b$["jalview.appletgui.AnnotationLabels"].av.setNormaliseSequenceLogo(this.f$.cprofn.getState());this.b$["jalview.appletgui.AnnotationLabels"].ap.repaint()},"java.awt.event.ItemEvent");c$=z()};G(c$,
2346 "ADDNEW","Add New Row","EDITNAME","Edit Label/Description","HIDE","Hide This Row","SHOWALL","Show All Hidden Rows","OUTPUT_TEXT","Show Values In Textbox","COPYCONS_SEQ","Copy Consensus Sequence")});p("awt2swing");q(["javax.swing.JCheckBox"],"awt2swing.Checkbox",null,function(){c$=B(awt2swing,"Checkbox",javax.swing.JCheckBox);d(c$,"getState",function(){return this.isSelected()});d(c$,"setState",function(a){this.setSelected(a)},"~B")});p("jalview.appletgui");q("awt2swing.Panel java.awt.event.ActionListener $.MouseListener awt2swing.Button $.TextArea java.awt.BorderLayout".split(" "),
2347 "jalview.appletgui.CutAndPasteTransfer","awt2swing.Frame $.Label jalview.analysis.AlignmentUtils jalview.api.ComplexAlignFile jalview.appletgui.AlignFrame $.AppletJmol $.JVDialog $.SplitFrame jalview.datamodel.PDBEntry jalview.io.AnnotationFile $.AppletFormatAdapter $.IdentifyFile $.NewickFile jalview.jsdev.GenericFileAdapter jalview.schemes.TCoffeeColourScheme jalview.util.MessageManager java.awt.Font".split(" "),function(){c$=s(function(){this.annotationImport=this.treeImport=this.pdbImport=!1;
2348 this.borderLayout1=this.buttonPanel=this.$cancel=this.addSequences=this.accept=this.textarea=this.source=this.alignFrame=this.seq=null;r(this,arguments)},jalview.appletgui,"CutAndPasteTransfer",awt2swing.Panel,[java.awt.event.ActionListener,java.awt.event.MouseListener]);J(c$,function(){this.textarea=new awt2swing.TextArea;this.accept=new awt2swing.Button("New Window");this.addSequences=new awt2swing.Button("Add to Current Alignment");this.$cancel=new awt2swing.Button("Close");this.buttonPanel=new awt2swing.Panel;
2349 this.borderLayout1=new java.awt.BorderLayout});m(c$,function(a,b){t(this,jalview.appletgui.CutAndPasteTransfer,[]);try{this.jbInit()}catch(c){if(y(c,Exception))c.printStackTrace();else throw c;}this.alignFrame=b;a||this.buttonPanel.setVisible(!1)},"~B,jalview.appletgui.AlignFrame");d(c$,"getText",function(){return this.textarea.getText()});d(c$,"setText",function(a){this.textarea.setText(a)},"~S");d(c$,"setPDBImport",function(a){this.seq=a;this.accept.setLabel(jalview.util.MessageManager.getString("action.accept"));
2350 this.addSequences.setVisible(!1);this.pdbImport=!0},"jalview.datamodel.SequenceI");d(c$,"setTreeImport",function(){this.treeImport=!0;this.accept.setLabel(jalview.util.MessageManager.getString("action.accept"));this.addSequences.setVisible(!1)});d(c$,"setAnnotationImport",function(){this.annotationImport=!0;this.accept.setLabel(jalview.util.MessageManager.getString("action.accept"));this.addSequences.setVisible(!1)});e(c$,"actionPerformed",function(a){a.getSource()===this.accept?this.ok(!0):a.getSource()===
2351 this.addSequences?this.ok(!1):a.getSource()===this.$cancel&&this.cancel()},"java.awt.event.ActionEvent");d(c$,"ok",function(a){var b=this.getText(),c=b.length;this.textarea.append("\n");this.textarea.getText().length==c&&(this.textarea.setText(b.substring(0,b.length-265)+"\n\n#################################################\nWARNING!! THIS IS THE MAXIMUM SIZE OF TEXTAREA!!\n\nCAN'T INPUT FULL ALIGNMENT\n\nYOU MUST DELETE THIS WARNING TO CONTINUE\n\nMAKE SURE LAST SEQUENCE PASTED IS COMPLETE\n#################################################\n"),
2352 this.textarea.setCaretPosition(b.length));if(this.pdbImport)this.openPdbViewer(b);else if(this.treeImport){if(!this.loadTree())return}else this.annotationImport?this.loadAnnotations():null!=this.alignFrame&&this.loadAlignment(b,a,this.alignFrame.getAlignViewport());v(this.getParent(),awt2swing.Frame);this.getParent().setVisible(!1)},"~B");d(c$,"loadTree",function(){try{var a=new jalview.io.NewickFile(this.textarea.getText(),"Paste");a.parse();if(null!=a.getTree())return this.alignFrame.loadTree(a,
2353 "Pasted tree file"),!0}catch(b){if(y(b,Exception))this.textarea.setText(jalview.util.MessageManager.formatMessage("label.could_not_parse_newick_file",E(-1,[b.getMessage()])));else throw b;}return!1});d(c$,"loadAlignment",function(a,b){var c=null,f=(new jalview.io.IdentifyFile).Identify(a,jalview.io.AppletFormatAdapter.PASTE),d=new jalview.io.AppletFormatAdapter(this.alignFrame.alignPanel);try{c=d.readFile(a,jalview.io.AppletFormatAdapter.PASTE,f),this.source=d.getAlignFile()}catch(e){if(y(e,java.io.IOException))e.printStackTrace();
2354 else throw e;}if(null!=c&&(c.setDataset(null),!this.alignFrame.viewport.applet.getDefaultParameter("enableSplitFrame",!1)||!this.openSplitFrame(c,f)))if(b){if(v(this.source,jalview.api.ComplexAlignFile)){var g=this.source.getColumnSelection(),h=this.source.getHiddenSequences(),d=this.source.isShowSeqFeatures(),j=this.source.getColourScheme(),c=new jalview.appletgui.AlignFrame(c,h,g,this.alignFrame.viewport.applet,"Cut & Paste input - "+f,!1);c.getAlignViewport().setShowSequenceFeatures(d);c.changeColour(j)}else c=
2355 new jalview.appletgui.AlignFrame(c,this.alignFrame.viewport.applet,"Cut & Paste input - "+f,!1);c.setStatus(jalview.util.MessageManager.getString("label.successfully_pasted_annotation_to_alignment"))}else this.alignFrame.addSequences(c.getSequencesArray()),this.alignFrame.setStatus(jalview.util.MessageManager.getString("label.successfully_pasted_alignment_file"))},"~S,~B,jalview.appletgui.AlignViewport");d(c$,"openSplitFrame",function(a,b){var c=this.alignFrame.getAlignViewport().getAlignment();if(c.isNucleotide()==
2356 a.isNucleotide())return!1;var f=c.isNucleotide()?a:c,c=c.isNucleotide()?c:a;if(!jalview.analysis.AlignmentUtils.mapProteinToCdna(f,c))return!1;f=jalview.util.MessageManager.getString("label.open_split_window");f=new jalview.appletgui.JVDialog(this.getParent(),f,!0,100,400);f.ok.setLabel(jalview.util.MessageManager.getString("action.yes"));f.cancel.setLabel(jalview.util.MessageManager.getString("action.no"));var c=new awt2swing.Panel(new java.awt.BorderLayout),d=jalview.util.MessageManager.getString("label.open_split_window?");
2357 c.add(new awt2swing.Label(d,0),"Center");f.setMainPanel(c);f.setVisible(!0);f.toFront();if(!f.accept)return!1;var f=this.alignFrame.viewport.applet,d=new jalview.appletgui.AlignFrame(this.alignFrame.viewport.getAlignment(),f,this.alignFrame.getTitle(),!1,!1),e=new jalview.appletgui.AlignFrame(a,this.alignFrame.viewport.applet,"Cut & Paste input - "+b,!1,!1),c=a.isNucleotide()?e:d,d=a.isNucleotide()?d:e;(new jalview.appletgui.SplitFrame(c,d)).addToDisplay(!1,f);return!0},"jalview.datamodel.AlignmentI,~S");
2358 d(c$,"loadAnnotations",function(){var a=null;try{a=jalview.jsdev.GenericFileAdapter.getFile("TCoffeeScoreFile",[this.textarea.getText(),jalview.io.AppletFormatAdapter.PASTE]),a.isValid()?a.annotateAlignment(this.alignFrame.viewport.getAlignment(),!0)?(this.alignFrame.tcoffeeColour.setEnabled(!0),this.alignFrame.alignPanel.fontChanged(),this.alignFrame.changeColour(new jalview.schemes.TCoffeeColourScheme(this.alignFrame.viewport.getAlignment())),this.alignFrame.setStatus(jalview.util.MessageManager.getString("label.successfully_pasted_tcoffee_scores_to_alignment"))):
2359 this.alignFrame.setStatus(jalview.util.MessageManager.formatMessage("label.failed_add_tcoffee_scores",E(-1,[null!=a.getWarningMessage()?a.getWarningMessage():""]))):a=null}catch(b){if(y(b,Exception))a=null;else throw b;}null==a&&((new jalview.io.AnnotationFile).annotateAlignmentView(this.alignFrame.viewport,this.textarea.getText(),jalview.io.AppletFormatAdapter.PASTE)?(this.alignFrame.alignPanel.fontChanged(),this.alignFrame.alignPanel.setScrollValues(0,0),this.alignFrame.setStatus(jalview.util.MessageManager.getString("label.successfully_pasted_annotation_to_alignment"))):
2360 this.alignFrame.parseFeaturesFile(this.textarea.getText(),jalview.io.AppletFormatAdapter.PASTE)||this.alignFrame.setStatus(jalview.util.MessageManager.getString("label.couldnt_parse_pasted_text_as_valid_annotation_feature_GFF_tcoffee_file")))});d(c$,"openPdbViewer",function(a){var b=new jalview.datamodel.PDBEntry;b.setFile(a);new jalview.appletgui.AppletJmol(b,E(-1,[this.seq]),null,this.alignFrame.alignPanel,jalview.io.AppletFormatAdapter.PASTE)},"~S");d(c$,"cancel",function(){this.textarea.setText("");
2361 v(this.getParent(),awt2swing.Frame);this.getParent().setVisible(!1)});d(c$,"jbInit",function(){this.textarea.setFont(new java.awt.Font("Monospaced",0,10));this.textarea.setText(jalview.util.MessageManager.getString("label.paste_your_alignment_file"));this.textarea.addMouseListener(this);this.setLayout(this.borderLayout1);this.accept.addActionListener(this);this.addSequences.addActionListener(this);this.$cancel.addActionListener(this);this.add(this.buttonPanel,"South");this.buttonPanel.add(this.accept,
2362 null);this.buttonPanel.add(this.addSequences);this.buttonPanel.add(this.$cancel,null);this.add(this.textarea,"Center")});e(c$,"mousePressed",function(){this.textarea.getText().startsWith(jalview.util.MessageManager.getString("label.paste_your"))&&this.textarea.setText("")},"java.awt.event.MouseEvent");e(c$,"mouseReleased",function(){},"java.awt.event.MouseEvent");e(c$,"mouseClicked",function(){},"java.awt.event.MouseEvent");e(c$,"mouseEntered",function(){},"java.awt.event.MouseEvent");e(c$,"mouseExited",
2363 function(){},"java.awt.event.MouseEvent")});p("awt2swing");q(["javax.swing.JButton"],"awt2swing.Button",null,function(){c$=B(awt2swing,"Button",javax.swing.JButton)});p("awt2swing");q(["javax.swing.JTextArea"],"awt2swing.TextArea",null,function(){c$=B(awt2swing,"TextArea",javax.swing.JTextArea)});p("javax.swing");q(["javax.swing.text.JTextComponent"],"javax.swing.JTextArea","java.lang.IllegalArgumentException java.awt.Dimension javax.swing.JComponent $.LookAndFeel javax.swing.text.BadLocationException $.JSMinimalAbstractDocument swingjs.JSToolkit".split(" "),
2364 function(){c$=s(function(){this.rowHeight=this.columnWidth=this.columns=this.rows=0;this.word=this.wrap=!1;r(this,arguments)},javax.swing,"JTextArea",javax.swing.text.JTextComponent);m(c$,function(){this.construct(null,null,0,0)});m(c$,function(a){this.construct(null,a,0,0)},"~S");m(c$,function(a,b){this.construct(null,null,a,b)},"~N,~N");m(c$,function(a,b,c){this.construct(null,a,b,c)},"~S,~N,~N");m(c$,function(a){this.construct(a,null,0,0)},"javax.swing.text.Document");m(c$,function(a,b,c,f){t(this,
2365 javax.swing.JTextArea);this.rows=c;this.columns=f;null==a&&(a=this.createDefaultModel());this.setDocument(a);null!=b&&(this.setText(b),this.select(0,0));if(0>c)throw new IllegalArgumentException("rows: "+c);if(0>f)throw new IllegalArgumentException("columns: "+f);javax.swing.LookAndFeel.installProperty(this,"focusTraversalKeysForward",javax.swing.JComponent.getManagingFocusForwardTraversalKeys());javax.swing.LookAndFeel.installProperty(this,"focusTraversalKeysBackward",javax.swing.JComponent.getManagingFocusBackwardTraversalKeys())},
2366 "javax.swing.text.Document,~S,~N,~N");e(c$,"getUIClassID",function(){return"TextAreaUI"});d(c$,"createDefaultModel",function(){return swingjs.JSToolkit.getPlainDocument(this)});d(c$,"setTabSize",function(a){var b=this.getDocument();if(null!=b){var c=this.getTabSize();b.putProperty("tabSize",new Integer(a));this.firePropertyChangeInt("tabSize",c,a)}},"~N");d(c$,"getTabSize",function(){var a=8,b=this.getDocument();null!=b&&(b=b.getProperty("tabSize"),null!=b&&(a=b.intValue()));return a});d(c$,"setLineWrap",
2367 function(a){var b=this.wrap;this.wrap=a;this.firePropertyChangeBool("lineWrap",b,a)},"~B");d(c$,"getLineWrap",function(){return this.wrap});d(c$,"setWrapStyleWord",function(a){var b=this.word;this.word=a;this.firePropertyChangeBool("wrapStyleWord",b,a)},"~B");d(c$,"getWrapStyleWord",function(){return this.word});d(c$,"getLineOfOffset",function(a){var b=this.getDocument();if(0>a)throw new javax.swing.text.BadLocationException("Can't translate offset to line",-1);if(a>b.getLength())throw new javax.swing.text.BadLocationException("Can't translate offset to line",
2368 b.getLength()+1);return this.getDocument().getDefaultRootElement().getElementIndex(a)},"~N");d(c$,"getLineCount",function(){return this.getDocument().getDefaultRootElement().getElementCount()});d(c$,"getLineStartOffset",function(a){var b=this.getLineCount();if(0>a)throw new javax.swing.text.BadLocationException("Negative line",-1);if(a>=b)throw new javax.swing.text.BadLocationException("No such line",this.getDocument().getLength()+1);return this.getDocument().getDefaultRootElement().getElement(a).getStartOffset()},
2369 "~N");d(c$,"getLineEndOffset",function(a){var b=this.getLineCount();if(0>a)throw new javax.swing.text.BadLocationException("Negative line",-1);if(a>=b)throw new javax.swing.text.BadLocationException("No such line",this.getDocument().getLength()+1);var c=this.getDocument().getDefaultRootElement().getElement(a).getEndOffset();return a==b-1?c-1:c},"~N");d(c$,"insert",function(a,b){var c=this.getDocument();if(null!=c)try{c.insertString(b,a,null)}catch(f){if(y(f,javax.swing.text.BadLocationException))throw new IllegalArgumentException(f.getMessage());
2370 throw f;}},"~S,~N");d(c$,"append",function(a){var b=this.getDocument();if(null!=b)try{b.insertString(b.getLength(),a,null)}catch(c){if(!y(c,javax.swing.text.BadLocationException))throw c;}},"~S");d(c$,"replaceRange",function(a,b,c){if(c<b)throw new IllegalArgumentException("end before start");var f=this.getDocument();if(null!=f)try{v(f,javax.swing.text.JSMinimalAbstractDocument)?f.replace(b,c-b,a,null):(f.remove(b,c-b),f.insertString(b,a,null))}catch(d){if(y(d,javax.swing.text.BadLocationException))throw new IllegalArgumentException(d.getMessage());
2371 throw d;}},"~S,~N,~N");d(c$,"getRows",function(){return this.rows});d(c$,"setRows",function(a){var b=this.rows;if(0>a)throw new IllegalArgumentException("rows less than zero.");a!=b&&(this.rows=a,this.invalidate())},"~N");d(c$,"getRowHeight",function(){0==this.rowHeight&&(this.rowHeight=this.getFontMetrics(this.getFont()).getHeight());return this.rowHeight});d(c$,"getColumns",function(){return this.columns});d(c$,"setColumns",function(a){var b=this.columns;if(0>a)throw new IllegalArgumentException("columns less than zero.");
2372 a!=b&&(this.columns=a,this.invalidate())},"~N");d(c$,"getColumnWidth",function(){0==this.columnWidth&&(this.columnWidth=this.getFontMetrics(this.getFont()).charWidth("m"));return this.columnWidth});e(c$,"getPreferredSize",function(){var a=this.getPrefSizeJComp(),a=null==a?new java.awt.Dimension(400,400):a,b=this.getInsets();0!=this.columns&&(a.width=Math.max(a.width,this.columns*this.getColumnWidth()+b.left+b.right));0!=this.rows&&(a.height=Math.max(a.height,this.rows*this.getRowHeight()+b.top+b.bottom));
2373 return a});d(c$,"setFont",function(a){K(this,javax.swing.JTextArea,"setFont",[a]);this.columnWidth=this.rowHeight=0},"java.awt.Font");d(c$,"paramString",function(){var a=this.wrap?"true":"false",b=this.word?"true":"false";return K(this,javax.swing.JTextArea,"paramString",[])+",colums="+this.columns+",columWidth="+this.columnWidth+",rows="+this.rows+",rowHeight="+this.rowHeight+",word="+b+",wrap="+a});d(c$,"getScrollableTracksViewportWidth",function(){return this.wrap?!0:K(this,javax.swing.JTextArea,
2374 "getScrollableTracksViewportWidth",[])});d(c$,"getPreferredScrollableViewportSize",function(){var a=K(this,javax.swing.JTextArea,"getPreferredScrollableViewportSize",[]),a=null==a?new java.awt.Dimension(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});e(c$,"getScrollableUnitIncrement",function(a,b){switch(b){case 1:return this.getRowHeight();case 0:return this.getColumnWidth();
2375 default:throw new IllegalArgumentException("Invalid orientation: "+b);}},"java.awt.Rectangle,~N,~N");G(c$,"$uiClassID","TextAreaUI")});p("jalview.api");M(jalview.api,"ComplexAlignFile");p("jalview.appletgui");q(["awt2swing.Panel","java.awt.Dimension","java.util.ArrayList"],"jalview.appletgui.AppletJmol",null,function(){c$=s(function(){this.fileLoadingError=this._aps=this.ap=this.renderPanel=this.history=this.inputLine=this.scriptWindow=null;this.loadedInline=!1;this.jmb=this.fr=null;H("jalview.appletgui.AppletJmol.RenderPanel")||
2376 jalview.appletgui.AppletJmol.$AppletJmol$RenderPanel$();r(this,arguments)},jalview.appletgui,"AppletJmol");J(c$,function(){this._aps=new java.util.ArrayList});m(c$,function(){},"jalview.datamodel.PDBEntry,~A,~O,jalview.appletgui.AlignmentPanel,~S");d(c$,"setJalviewColourScheme",function(){},"jalview.schemes.UserColourScheme");c$.$AppletJmol$RenderPanel$=function(){A(self.c$);c$=s(function(){O(this,arguments);this.currentSize=null;r(this,arguments)},jalview.appletgui.AppletJmol,"RenderPanel",awt2swing.Panel);
2377 J(c$,function(){this.currentSize=new java.awt.Dimension});e(c$,"update",function(a){this.paint(a)},"java.awt.Graphics");d(c$,"PaintComponent",function(){this.currentSize=this.getSize()},"java.awt.Graphics");c$=z()}});p("jalview.appletgui");q(["java.awt.Dialog","java.awt.event.ActionListener","awt2swing.Button"],"jalview.appletgui.JVDialog",["awt2swing.Panel","java.awt.FlowLayout"],function(){c$=s(function(){this.cancel=this.ok=this.buttonPanel=this.ap=null;this.accept=!1;this.owner=null;r(this,arguments)},
2378 jalview.appletgui,"JVDialog",java.awt.Dialog,java.awt.event.ActionListener);J(c$,function(){this.ok=new awt2swing.Button("Accept");this.cancel=new awt2swing.Button("Cancel")});m(c$,function(a,b,c,f,d){t(this,jalview.appletgui.JVDialog,[a,b,c]);this.owner=a;d+=a.getInsets().top+this.getInsets().bottom;this.setBounds(a.getBounds().x+F((a.getSize().width-f)/2),a.getBounds().y+F((a.getSize().height-d)/2),f,d)},"awt2swing.Frame,~S,~B,~N,~N");d(c$,"setMainPanel",function(a){this.add(a,"North");this.buttonPanel=
2379 new awt2swing.Panel(new java.awt.FlowLayout);this.buttonPanel.add(this.ok);this.buttonPanel.add(this.cancel);this.ok.addActionListener(this);this.cancel.addActionListener(this);this.add(this.buttonPanel,"South");this.pack()},"awt2swing.Panel");e(c$,"actionPerformed",function(a){a.getSource()===this.ok&&(this.accept=!0);this.setVisible(!1)},"java.awt.event.ActionEvent")});p("jalview.appletgui");q(["jalview.appletgui.EmbmenuFrame"],"jalview.appletgui.SplitFrame","awt2swing.Panel jalview.analysis.AlignmentUtils jalview.bin.JalviewLite jalview.structure.StructureSelectionManager java.awt.BorderLayout $.Dimension $.GridLayout".split(" "),
2380 function(){c$=s(function(){this.outermost=this.bottomFrame=this.topFrame=null;r(this,arguments)},jalview.appletgui,"SplitFrame",jalview.appletgui.EmbmenuFrame);m(c$,function(a,b){t(this,jalview.appletgui.SplitFrame,[]);this.topFrame=a;this.bottomFrame=b;this.init()},"jalview.appletgui.AlignFrame,jalview.appletgui.AlignFrame");d(c$,"init",function(){var a=ia(arguments);if(null!=a)return a.apply(this,arguments);this.constructSplit();var a=this.topFrame.viewport,b=this.bottomFrame.viewport,c=a.getAlignment(),
2381 f=b.getAlignment(),d=c.isNucleotide()?a:f.isNucleotide()?b:null,f=!c.isNucleotide()?a:!f.isNucleotide()?b:null;if(jalview.analysis.AlignmentUtils.mapProteinToCdna(f.getAlignment(),d.getAlignment())){var e=jalview.structure.StructureSelectionManager.getStructureSelectionManager(a.applet);e.addMappings(f.getAlignment().getCodonFrames());a.setCodingComplement(b);e.addCommandListener(d);e.addCommandListener(f)}f.initComplementConsensus();a=c.isNucleotide()?this.bottomFrame.alignPanel:this.topFrame.alignPanel;
2382 f.updateConsensus(a);this.adjustLayout()});d(c$,"constructSplit",function(){this.unsetMenuBar();this.outermost=new awt2swing.Panel(new java.awt.GridLayout(2,1));var a=new awt2swing.Panel,b=new awt2swing.Panel;this.outermost.add(a);this.outermost.add(b);this.addAlignFrameComponents(this.topFrame,a);this.addAlignFrameComponents(this.bottomFrame,b)});d(c$,"adjustLayout",function(){var a=this.topFrame.getAlignViewport().getAlignment().isNucleotide()?this.topFrame.viewport:this.bottomFrame.viewport,b=
2383 a===this.topFrame.viewport?this.bottomFrame.viewport:this.topFrame.viewport,c=this.topFrame.alignPanel.idPanel.idCanvas.getWidth(),f=this.bottomFrame.alignPanel.idPanel.idCanvas.getWidth(),d=Math.max(c,f);c!=d&&(c=this.topFrame.alignPanel.idPanel.idCanvas.getSize(),this.topFrame.alignPanel.idPanel.idCanvas.setSize(new java.awt.Dimension(d,c.height)));f!=d&&(c=this.bottomFrame.alignPanel.idPanel.idCanvas.getSize(),this.bottomFrame.alignPanel.idPanel.idCanvas.setSize(new java.awt.Dimension(d,c.height)));
2384 null!=b&&null!=a&&(f=b.getViewStyle(),d=f.isScaleProteinAsCdna()?3:1,f.setCharWidth(d*a.getViewStyle().getCharWidth()),b.setViewStyle(f))});d(c$,"addAlignFrameComponents",function(a,b){b.setLayout(new java.awt.BorderLayout);var c=a.makeEmbeddedPopupMenu(a.getJMenuBar(),!0,!1);b.add(c,"North");b.add(a.statusBar,"South");b.add(a.alignPanel,"Center");a.setSplitFrame(this)},"jalview.appletgui.AlignFrame,awt2swing.Panel");d(c$,"addToDisplay",function(a,b){this.createSplitFrameWindow(a,b);this.validate();
2385 this.topFrame.alignPanel.adjustAnnotationHeight();this.topFrame.alignPanel.paintAlignment(!0);this.bottomFrame.alignPanel.adjustAnnotationHeight();this.bottomFrame.alignPanel.paintAlignment(!0)},"~B,jalview.bin.JalviewLite");d(c$,"createSplitFrameWindow",function(a,b){if(a)b.add(this.outermost),b.validate();else{this.add(this.outermost);var c=Math.max(this.topFrame.frameWidth,this.bottomFrame.frameWidth),f=this.topFrame.frameHeight+this.bottomFrame.frameHeight;jalview.bin.JalviewLite.addFrame(this,
2386 this.getTitle(),c,f)}},"~B,jalview.bin.JalviewLite");d(c$,"getComplement",function(a){return this.topFrame===a?this.bottomFrame:this.bottomFrame===a?this.topFrame:null},"jalview.appletgui.AlignFrame")});p("java.awt");q(["java.awt.LayoutManager"],"java.awt.GridLayout",["java.lang.IllegalArgumentException","java.awt.Dimension"],function(){c$=s(function(){this.cols=this.rows=this.vgap=this.hgap=0;r(this,arguments)},java.awt,"GridLayout",null,[java.awt.LayoutManager,java.io.Serializable]);m(c$,function(){this.construct(1,
2387 0,0,0)});m(c$,function(a,b){this.construct(a,b,0,0)},"~N,~N");m(c$,function(a,b,c,f){if(0==a&&0==b)throw new IllegalArgumentException("rows and cols cannot both be zero");this.rows=a;this.cols=b;this.hgap=c;this.vgap=f},"~N,~N,~N,~N");d(c$,"getRows",function(){return this.rows});d(c$,"setRows",function(a){if(0==a&&0==this.cols)throw new IllegalArgumentException("rows and cols cannot both be zero");this.rows=a},"~N");d(c$,"getColumns",function(){return this.cols});d(c$,"setColumns",function(a){if(0==
2388 a&&0==this.rows)throw new IllegalArgumentException("rows and cols cannot both be zero");this.cols=a},"~N");d(c$,"getHgap",function(){return this.hgap});d(c$,"setHgap",function(a){this.hgap=a},"~N");d(c$,"getVgap",function(){return this.vgap});d(c$,"setVgap",function(a){this.vgap=a},"~N");e(c$,"addLayoutComponent",function(){},"~S,java.awt.Component");e(c$,"removeLayoutComponent",function(){},"java.awt.Component");e(c$,"preferredLayoutSize",function(a){var b=a.getInsets(),c=a.getComponentCount(),f=
2389 this.rows,d=this.cols;0<f?d=F((c+f-1)/f):f=F((c+d-1)/d);for(var e=0,g=0,h=0;h<c;h++){var j=a.getComponent(h).getPreferredSize();e<j.width&&(e=j.width);g<j.height&&(g=j.height)}return new java.awt.Dimension(b.left+b.right+d*e+(d-1)*this.hgap,b.top+b.bottom+f*g+(f-1)*this.vgap)},"java.awt.Container");e(c$,"minimumLayoutSize",function(a){var b=a.getInsets(),c=a.getComponentCount(),f=this.rows,d=this.cols;0<f?d=F((c+f-1)/f):f=F((c+d-1)/d);for(var e=0,g=0,h=0;h<c;h++){var j=a.getComponent(h).getMinimumSize();
2390 e<j.width&&(e=j.width);g<j.height&&(g=j.height)}return new java.awt.Dimension(b.left+b.right+d*e+(d-1)*this.hgap,b.top+b.bottom+f*g+(f-1)*this.vgap)},"java.awt.Container");e(c$,"layoutContainer",function(a){var b=a.getInsets(),c=a.getComponentCount(),f=this.rows,d=this.cols,e=a.getComponentOrientation().isLeftToRight();if(0!=c){0<f?d=F((c+f-1)/f):f=F((c+d-1)/d);var g=(d-1)*this.hgap,h=a.width-(b.left+b.right),j=F((h-g)/d),n=F((h-(j*d+g))/2),h=(f-1)*this.vgap,m=a.height-(b.top+b.bottom),g=F((m-h)/
2391 f),h=F((m-(g*f+h))/2);if(e){e=0;for(n=b.left+n;e<d;e++,n+=j+this.hgap)for(var m=0,u=b.top+h;m<f;m++,u+=g+this.vgap){var p=m*d+e;p<c&&a.getComponent(p).setBounds(n,u,j,g)}}else{e=0;for(n=a.width-b.right-j-n;e<d;e++,n-=j+this.hgap){m=0;for(u=b.top+h;m<f;m++,u+=g+this.vgap)p=m*d+e,p<c&&a.getComponent(p).setBounds(n,u,j,g)}}}},"java.awt.Container");e(c$,"toString",function(){return this.getClass().getName()+"[hgap="+this.hgap+",vgap="+this.vgap+",rows="+this.rows+",cols="+this.cols+"]"})});p("jalview.io");
2392 q(null,"jalview.io.AnnotationFile","jalview.analysis.Conservation jalview.datamodel.AlignmentAnnotation $.Annotation $.ColumnSelection $.GraphLine $.SequenceGroup jalview.io.AppletFormatAdapter jalview.jsdev.GenericFileAdapter jalview.schemes.ColourSchemeProperty $.ResidueProperties $.UserColourScheme jalview.util.Comparison $.Format java.awt.Color java.io.BufferedReader $.InputStreamReader $.StringReader java.lang.Boolean $.Float $.StringBuffer java.util.ArrayList $.BitSet $.Date $.Hashtable $.StringTokenizer $.Vector".split(" "),
2393 function(){c$=s(function(){this.text=this.newline=null;H("jalview.io.AnnotationFile.ViewDef")||jalview.io.AnnotationFile.$AnnotationFile$ViewDef$();this.refSeqId=this.refSeq=null;this.nlinesread=0;this.lastread="";r(this,arguments)},jalview.io,"AnnotationFile");J(c$,function(){this.newline=System.getProperty("line.separator")});m(c$,function(){this.init()});d(c$,"setNewlineString",function(a){this.newline=a;this.init()},"~S");d(c$,"getNewlineString",function(){return this.newline});d(c$,"init",function(){this.text=
2394 new StringBuffer("JALVIEW_ANNOTATION"+this.newline+"# Created: "+new java.util.Date+this.newline+this.newline);this.refSeqId=this.refSeq=null});d(c$,"printAnnotations",function(a,b,c){return this.printAnnotations(a,b,c,null,null,null)},"~A,java.util.List,java.util.Hashtable");d(c$,"printAnnotations",function(a,b,c,f,d,e){null!=e&&(null!=e.viewname&&this.text.append("VIEW_DEF\t"+e.viewname+"\n"),null==b&&(b=e.visibleGroups),null==f&&(f=e.hiddencols));null!=d&&d.hasSeqrep()&&this.text.append("VIEW_SETREF\t"+
2395 d.getSeqrep().getName()+"\n");if(null!=f&&f.hasHiddenColumns()){this.text.append("VIEW_HIDECOLS\t");var g=!1,h;for(f=f.getHiddenColumns().iterator();f.hasNext()&&((h=f.next())||1);)g?this.text.append(","):g=!0,this.text.append(""+h[0]),this.text.append("-"),this.text.append(""+h[1]);this.text.append("\n")}if(null!=a){var j=!0,n;f=h=null;var m=new StringBuffer,u=new StringBuffer;d=new StringBuffer;var p=new java.util.Hashtable;e=new java.util.Hashtable;for(var q=new java.util.BitSet,s,r=0;r<a.length;r++)if(n=
2396 a[r],n.visible||n.hasScore()||-1<n.graphGroup&&q.get(n.graphGroup)){s=null;j=!0;this.writeSequence_Ref(h,n.sequenceRef);h=n.sequenceRef;this.writeGroup_Ref(f,n.groupRef);f=n.groupRef;for(var t=n.hasIcons,v=n.hasText,w=n.$hasScore,y=!1,z=0;null!=n.annotations&&z<n.annotations.length&&(!t||!v||!w);z++)null!=n.annotations[z]&&(v=(new Boolean(v|(null!=n.annotations[z].displayCharacter&&0<n.annotations[z].displayCharacter.length&&!n.annotations[z].displayCharacter.equals(" ")))).valueOf(),t=(new Boolean(t|
2397 (0!=n.annotations[z].secondaryStructure.charCodeAt(0)&&" "!=n.annotations[z].secondaryStructure))).valueOf(),w=(new Boolean(w|!Float.isNaN(n.annotations[z].value))).valueOf(),y=(new Boolean(y|(null!=n.annotations[z].description&&0<n.annotations[z].description.length))).valueOf());0==n.graph?(this.text.append("NO_GRAPH\t"),w=!1):(1==n.graph?(this.text.append("BAR_GRAPH\t"),t=!1):2==n.graph&&(t=!1,this.text.append("LINE_GRAPH\t")),null!=n.getThreshold()&&(u.append("GRAPHLINE\t"),u.append(n.label),u.append("\t"),
2398 u.append(n.getThreshold().value),u.append("\t"),u.append(n.getThreshold().label),u.append("\t"),u.append(jalview.util.Format.getHexString(n.getThreshold().colour)),u.append(this.newline)),-1<n.graphGroup&&(q.set(n.graphGroup),g=new Integer(n.graphGroup),p.containsKey(g)?p.put(g,p.get(g)+"\t"+n.label):(e.put(g,E(-1,[h,f])),p.put(g,n.label))));this.text.append(n.label+"\t");null!=n.description&&this.text.append(n.description+"\t");for(z=0;null!=n.annotations&&z<n.annotations.length;z++)null!=h&&jalview.util.Comparison.isGap(h.getCharAt(z))||
2399 (null!=n.annotations[z]&&(g="",t&&(this.text.append(g)," "!=n.annotations[z].secondaryStructure&&this.text.append(n.annotations[z].secondaryStructure),g=","),w&&(Float.isNaN(n.annotations[z].value)?(System.err.println("Skipping NaN - not valid value."),this.text.append(g+0)):this.text.append(g+n.annotations[z].value),g=","),v&&(null!=n.annotations[z].displayCharacter&&0<n.annotations[z].displayCharacter.length&&!n.annotations[z].displayCharacter.equals(" "))&&(this.text.append(g+n.annotations[z].displayCharacter),
2400 g=","),y&&(null!=n.annotations[z].description&&0<n.annotations[z].description.length&&!n.annotations[z].description.equals(n.annotations[z].displayCharacter))&&(this.text.append(g+n.annotations[z].description),g=","),null!=s&&!s.equals(n.annotations[z].colour)&&(j=!1),s=n.annotations[z].colour,null!=n.annotations[z].colour&&n.annotations[z].colour!==java.awt.Color.black&&this.text.append(g+"["+jalview.util.Format.getHexString(n.annotations[z].colour)+"]")),this.text.append("|"));n.hasScore()&&this.text.append("\t"+
2401 n.score);this.text.append(this.newline);null!=s&&(s!==java.awt.Color.black&&j)&&(m.append("COLOUR\t"),m.append(n.label),m.append("\t"),m.append(jalview.util.Format.getHexString(s)),m.append(this.newline));if(n.scaleColLabel||n.showAllColLabels||n.centreColLabels)d.append("ROWPROPERTIES\t"),d.append(n.label),d.append("\tscaletofit="),d.append(n.scaleColLabel),d.append("\tshowalllabs="),d.append(n.showAllColLabels),d.append("\tcentrelabs="),d.append(n.centreColLabels),d.append(this.newline);0<u.length()&&
2402 (this.text.append(u.toString()),u.setLength(0))}this.text.append(this.newline);this.text.append(m.toString());if(0<p.size()){a=h;for(var g=f,A,p=p.entrySet().iterator();p.hasNext()&&((A=p.next())||1);)j=e.get(A.getKey()),this.writeSequence_Ref(h,j[0]),h=j[0],this.writeGroup_Ref(f,j[1]),f=j[1],this.text.append("COMBINE\t"),this.text.append(A.getValue()),this.text.append(this.newline);this.writeSequence_Ref(h,a);this.writeGroup_Ref(f,g)}this.text.append(d.toString())}null!=b&&this.printGroups(b);if(null!=
2403 c){this.text.append(this.newline);this.text.append(this.newline);this.text.append("ALIGNMENT");for(b=c.keys();b.hasMoreElements();)g=b.nextElement().toString(),this.text.append("\t"),this.text.append(g),this.text.append("="),this.text.append(c.get(g))}return this.text.toString()},"~A,java.util.List,java.util.Hashtable,jalview.datamodel.ColumnSelection,jalview.datamodel.AlignmentI,jalview.io.AnnotationFile.ViewDef");d(c$,"writeGroup_Ref",function(a,b){return null==b?(null!=a&&(this.text.append(this.newline),
2404 this.text.append("GROUP_REF\t"),this.text.append("ALIGNMENT"),this.text.append(this.newline)),!0):null==a||a!==b?(this.text.append(this.newline),this.text.append("GROUP_REF\t"),this.text.append(b.getName()),this.text.append(this.newline),!0):!1},"jalview.datamodel.SequenceGroup,jalview.datamodel.SequenceGroup");d(c$,"writeSequence_Ref",function(a,b){if(null==b){if(null!=a)return this.text.append(this.newline),this.text.append("SEQUENCE_REF\t"),this.text.append("ALIGNMENT"),this.text.append(this.newline),
2405 !0}else if(null==a||a!==b)return this.text.append(this.newline),this.text.append("SEQUENCE_REF\t"),this.text.append(b.getName()),this.text.append(this.newline),!0;return!1},"jalview.datamodel.SequenceI,jalview.datamodel.SequenceI");d(c$,"printGroups",function(a){var b=null,c;for(a=a.iterator();a.hasNext()&&((c=a.next())||1);){c.hasSeqrep()?(b=c.getSeqrep(),this.text.append("SEQUENCE_REF\t"),this.text.append(b.getName()),this.text.append(this.newline),this.text.append("SEQUENCE_GROUP\t"),this.text.append(c.getName()),
2406 this.text.append("\t"),this.text.append(""+b.findPosition(c.getStartRes())),this.text.append("\t"),this.text.append(b.findPosition(c.getEndRes())),this.text.append("\t"),this.text.append("-1\t")):(this.text.append("SEQUENCE_GROUP\t"+c.getName()+"\t"+(c.getStartRes()+1)+"\t"+(c.getEndRes()+1)+"\t-1\t"),b=null);for(var f=0;f<c.getSize();f++)this.text.append(c.getSequenceAt(f).getName()),this.text.append("\t");this.text.append(this.newline);this.text.append("PROPERTIES\t");this.text.append(c.getName());
2407 this.text.append("\t");null!=c.getDescription()&&(this.text.append("description="),this.text.append(c.getDescription()),this.text.append("\t"));null!=c.cs&&(this.text.append("colour="),this.text.append(jalview.schemes.ColourSchemeProperty.getColourName(c.cs)),this.text.append("\t"),0!=c.cs.getThreshold()&&(this.text.append("pidThreshold="),this.text.append(c.cs.getThreshold())),c.cs.conservationApplied()&&(this.text.append("consThreshold="),this.text.append(c.cs.getConservationInc()),this.text.append("\t")));
2408 this.text.append("outlineColour=");this.text.append(jalview.util.Format.getHexString(c.getOutlineColour()));this.text.append("\t");this.text.append("displayBoxes=");this.text.append(c.getDisplayBoxes());this.text.append("\t");this.text.append("displayText=");this.text.append(c.getDisplayText());this.text.append("\t");this.text.append("colourText=");this.text.append(c.getColourText());this.text.append("\t");this.text.append("showUnconserved=");this.text.append(c.getShowNonconserved());this.text.append("\t");
2409 c.textColour!==java.awt.Color.black&&(this.text.append("textCol1="),this.text.append(jalview.util.Format.getHexString(c.textColour)),this.text.append("\t"));c.textColour2!==java.awt.Color.white&&(this.text.append("textCol2="),this.text.append(jalview.util.Format.getHexString(c.textColour2)),this.text.append("\t"));0!=c.thresholdTextColour&&(this.text.append("textColThreshold="),this.text.append(c.thresholdTextColour),this.text.append("\t"));null!=c.idColour&&(this.text.append("idColour="),this.text.append(jalview.util.Format.getHexString(c.idColour)),
2410 this.text.append("\t"));c.isHidereps()&&this.text.append("hide=true\t");c.isHideCols()&&this.text.append("hidecols=true\t");null!=b&&(this.text.append(this.newline),this.text.append("SEQUENCE_REF"));this.text.append(this.newline);this.text.append(this.newline)}},"java.util.List");d(c$,"annotateAlignmentView",function(a,b,c){var f=a.getColumnSelection();null==f&&(f=new jalview.datamodel.ColumnSelection);(b=this.readAnnotationFile(a.getAlignment(),f,b,c))&&(f.hasSelectedColumns()||f.hasHiddenColumns())&&
2411 a.setColumnSelection(f);return b},"jalview.api.AlignViewportI,~S,~S");d(c$,"readAnnotationFile",function(a,b,c){return this.readAnnotationFile(a,null,b,c)},"jalview.datamodel.AlignmentI,~S,~S");d(c$,"readAnnotationFile",function(a,b,c,f){var d=null;try{if(f.equals(jalview.io.AppletFormatAdapter.FILE))d=jalview.jsdev.GenericFileAdapter.getReader(c,!1);else if(f.equals(jalview.io.AppletFormatAdapter.URL))d=jalview.jsdev.GenericFileAdapter.getReader(c,!0);else if(f.equals(jalview.io.AppletFormatAdapter.PASTE))d=
2412 new java.io.BufferedReader(new java.io.StringReader(c));else if(f.equals(jalview.io.AppletFormatAdapter.CLASSLOADER)){var e=this.getClass().getResourceAsStream("/"+c);null!=e&&(d=new java.io.BufferedReader(new java.io.InputStreamReader(e)))}if(null!=d)return this.parseAnnotationFrom(a,b,d)}catch(g){if(y(g,Exception))g.printStackTrace(),System.out.println("Problem reading annotation file: "+g),0<this.nlinesread&&System.out.println("Last read line "+this.nlinesread+": '"+this.lastread+"' (first 80 chars) ...");
2413 else throw g;}return!1},"jalview.datamodel.AlignmentI,jalview.datamodel.ColumnSelection,~S,~S");d(c$,"parseAnnotationFrom",function(a,b,c){this.nlinesread=0;var f=new java.util.ArrayList,d=new java.util.ArrayList,e=!1,g=null,h=new java.util.Hashtable,j=new java.util.Hashtable,n,m,u,p,q,s,r=1,t=0;if(null!=a.getAlignmentAnnotation()&&(t=a.getAlignmentAnnotation().length,0<t))for(var v=a.getAlignmentAnnotation(),w=0;w<v.length;w++)v[w].autoCalculated&&j.put(this.autoAnnotsKey(v[w],v[w].sequenceRef,null==
2414 v[w].groupRef?null:v[w].groupRef.getName()),new Integer(1));var v=a.getWidth(),z,A;n=null;for(w=!1;null!=(n=c.readLine());)if(this.nlinesread++,this.lastread=String.instantialize(n),0!=n.indexOf("#")&&-1<n.indexOf("JALVIEW_ANNOTATION")){w=!0;break}if(!w)return c.close(),!1;for(;null!=(n=c.readLine());)if(this.nlinesread++,this.lastread=String.instantialize(n),!(0==n.indexOf("#")||-1<n.indexOf("JALVIEW_ANNOTATION")||0==n.length))if(z=new java.util.StringTokenizer(n,"\t"),p=z.nextToken(),p.equalsIgnoreCase("COLOUR"))this.colourAnnotations(a,
2415 z.nextToken(),z.nextToken()),e=!0;else if(p.equalsIgnoreCase(jalview.io.AnnotationFile.COMBINE))f.add(E(-1,[z,this.refSeq,g])),e=!0;else if(p.equalsIgnoreCase("ROWPROPERTIES"))this.addRowProperties(a,z),e=!0;else if(p.equalsIgnoreCase(jalview.io.AnnotationFile.GRAPHLINE))d.add(E(-1,[jalview.io.AnnotationFile.GRAPHLINE,z,this.refSeq,g])),e=!0;else if(p.equalsIgnoreCase("SEQUENCE_REF"))if(z.hasMoreTokens()){this.refSeq=a.findName(this.refSeqId=z.nextToken());null==this.refSeq&&(this.refSeqId=null);
2416 try{r=Integer.parseInt(z.nextToken()),1>r&&(r=1,System.out.println("WARNING: SEQUENCE_REF index must be > 0 in AnnotationFile"))}catch(B){if(y(B,Exception))r=1;else throw B;}}else this.refSeqId=this.refSeq=null;else if(p.equalsIgnoreCase("GROUP_REF"))g=null,z.hasMoreTokens()&&(g=z.nextToken(),1>g.length?g=null:null==h.get(g)&&h.put(g,new java.util.Vector));else if(p.equalsIgnoreCase("SEQUENCE_GROUP"))this.addGroup(a,z),e=!0;else if(p.equalsIgnoreCase("PROPERTIES"))this.addProperties(a,z),e=!0;else if(p.equalsIgnoreCase("BELOW_ALIGNMENT"))this.setBelowAlignment(a,
2417 z),e=!0;else if(p.equalsIgnoreCase("ALIGNMENT"))this.addAlignmentDetails(a,z),e=!0;else if(p.equalsIgnoreCase("VIEW_SETREF"))null!=this.refSeq&&a.setSeqrep(this.refSeq),e=!0;else if(p.equalsIgnoreCase("VIEW_HIDECOLS"))z.hasMoreTokens()&&(null==b&&(b=new jalview.datamodel.ColumnSelection),this.parseHideCols(b,z.nextToken())),e=!0;else if(p.equalsIgnoreCase("HIDE_INSERTIONS"))e=null==this.refSeq?a.getSeqrep():this.refSeq,null==e&&(e=a.getSequenceAt(0)),null!=e&&(null==b?System.err.println("Cannot process HIDE_INSERTIONS without an alignment view: Ignoring line: "+
2418 n):b.hideInsertionsFor(e)),e=!0;else{q=jalview.datamodel.AlignmentAnnotation.getGraphValueFromString(p);m=z.nextToken();s=0;A=Array(v);u=null;w=NaN;if(z.hasMoreTokens()){n=z.nextToken();-1==n.indexOf("|")&&(u=n,z.hasMoreTokens()&&(n=z.nextToken()));z.hasMoreTokens()&&(w=Float.$valueOf(z.nextToken()).floatValue());z=new java.util.StringTokenizer(n,"|",!0);n=!0;for(var C=1==z.countTokens();z.hasMoreElements()&&s<v;){p=z.nextToken().trim();if(C)try{w=Float.$valueOf(p).floatValue();break}catch(F){if(!y(F,
2419 NumberFormatException))throw F;}p.equals("|")?(n&&s++,n=!0):(A[s++]=this.parseAnnotation(p,q),n=!1)}}n=new jalview.datamodel.AlignmentAnnotation(m,u,0==s?null:A,0,0,q);n.score=w;if(!j.containsKey(this.autoAnnotsKey(n,this.refSeq,g))){if(null!=this.refSeq){n.belowAlignment=!1;e=this.refSeq;do w=new jalview.datamodel.AlignmentAnnotation(n),n.createSequenceMapping(e,r,!1),n.adjustForAlignment(),e.addAlignmentAnnotation(n),a.addAnnotation(n),a.setAnnotationIndex(n,a.getAlignmentAnnotation().length-t-
2420 1),null!=g&&h.get(g).addElement(n),n=w;while(null!=this.refSeqId&&null!=(e=a.findName(e,this.refSeqId,!0)))}else a.addAnnotation(n),a.setAnnotationIndex(n,a.getAlignmentAnnotation().length-t-1),null!=g&&h.get(g).addElement(n);e=!0}}b=new java.util.Hashtable;for(c=h.keys();c.hasMoreElements();){for(var g=c.nextElement(),j=!1,H,r=a.getGroups().iterator();r.hasNext()&&((H=r.next())||1);)if(H.getName().equals(g))if(j)System.err.println("Ignoring 1:many group reference mappings for group name '"+g+"'");
2421 else if(j=!0,t=h.get(g),b.put(g,H),null!=t&&0<t.size()){v=null;w=0;for(n=t.size();w<n;w++)v=t.elementAt(w),v.groupRef=H}h.get(g).removeAllElements()}for(var G,d=d.iterator();d.hasNext()&&((G=d.next())||1);)G[0]===jalview.io.AnnotationFile.GRAPHLINE&&this.addLine(a,G[1],G[2],null==G[3]?null:b.get(G[3]));G=0;for(var I,f=f.iterator();f.hasNext()&&((I=f.next())||1);)this.combineAnnotations(a,++G,I[0],I[1],null==I[2]?null:b.get(I[2]));return e},"jalview.datamodel.AlignmentI,jalview.datamodel.ColumnSelection,java.io.BufferedReader");
2422 d(c$,"parseHideCols",function(a,b){for(var c=new java.util.StringTokenizer(b,",");c.hasMoreTokens();){var f=c.nextToken().trim(),d,e=f.indexOf("-");-1==e?(d=e=Integer.parseInt(f),0<=d&&a.hideColumns(d,e)):(d=Integer.parseInt(f.substring(0,e)),e=e<f.length-1?Integer.parseInt(f.substring(e+1)):d,0<d&&e>=d&&a.hideColumns(d,e))}},"jalview.datamodel.ColumnSelection,~S");d(c$,"autoAnnotsKey",function(a,b){return a.graph+"\t"+a.label+"\t"+a.description+"\t"+(null!=b?b.getDisplayId(!0):"")},"jalview.datamodel.AlignmentAnnotation,jalview.datamodel.SequenceI,~S");
2423 d(c$,"parseAnnotation",function(a,b){var c=0==b,f=null,d=null,e=" ",g=0,h=!1,j=!1,n=null,m=a.indexOf("["),u=a.indexOf("]");-1<m&&-1<u&&(n=(new jalview.schemes.UserColourScheme).getColourFromString(a.substring(m+1,u)),0<m&&","==a.charAt(m-1)&&m--,a=a.substring(0,m)+a.substring(u+1));for(var m=new java.util.StringTokenizer(a,",",!0),p=!1,q=0;m.hasMoreTokens();)if(q++,u=m.nextToken().trim(),u.equals(","))!p&&(h&&!j)&&(j=!0,d=" "),p=!1;else{p=!0;if(h)1==u.length&&(d=u);else try{d=u;g=(new Float(u)).floatValue();
2424 h=!0;continue}catch(s){if(!y(s,NumberFormatException))throw s;}if(c&&(u.equals("H")||u.equals("E")||u.equals("S")||u.equals(" ")))e=u.charAt(0),d.equals(u.substring(0,1))&&(d="");else if(null==f||h&&2<q)f=u}null!=d&&(null!=f&&1==f.length)&&(1<d.length?(c=d,d=f,f=c):d.equals(f)&&(f=null));f=new jalview.datamodel.Annotation(d,f,e,g);f.colour=n;return f},"~S,~N");d(c$,"colourAnnotations",function(a,b,c){c=new jalview.schemes.UserColourScheme(c);for(var f,d=0;d<a.getAlignmentAnnotation().length;d++)if(a.getAlignmentAnnotation()[d].label.equalsIgnoreCase(b)){f=
2425 a.getAlignmentAnnotation()[d].annotations;for(var e=0;e<f.length;e++)null!=f[e]&&(f[e].colour=c.findColour("A"))}},"jalview.datamodel.AlignmentI,~S,~S");d(c$,"combineAnnotations",function(a,b,c,f,d){var e=c.nextToken(),g=0;if(null!=a.getAlignmentAnnotation()){for(var h=0;h<a.getAlignmentAnnotation().length;h++){var j=a.getAlignmentAnnotation()[h];j.graphGroup>g&&(g=j.graphGroup+1);if(j.sequenceRef===f&&j.groupRef===d&&j.label.equalsIgnoreCase(e)){-1<j.graphGroup?g=j.graphGroup:(g<=b&&(g=b+1),j.graphGroup=
2426 g);break}}for(;c.hasMoreTokens();){e=c.nextToken();for(h=0;h<a.getAlignmentAnnotation().length;h++)if(j=a.getAlignmentAnnotation()[h],j.sequenceRef===f&&j.groupRef===d&&j.label.equalsIgnoreCase(e)){j.graphGroup=g;break}}}else System.err.println("Couldn't combine annotations. None are added to alignment yet!")},"jalview.datamodel.AlignmentI,~N,java.util.StringTokenizer,jalview.datamodel.SequenceI,jalview.datamodel.SequenceGroup");d(c$,"addLine",function(a,b,c,f){var d=b.nextToken();a=a.getAlignmentAnnotation();
2427 var e=(new Float(b.nextToken())).floatValue(),g=b.hasMoreTokens()?b.nextToken():null,h=null;b.hasMoreTokens()&&(h=(new jalview.schemes.UserColourScheme(b.nextToken())).findColour("A"));if(null!=a)for(b=0;b<a.length;b++)a[b].label.equalsIgnoreCase(d)&&((null==c||a[b].sequenceRef===c)&&(null==f||a[b].groupRef===f))&&a[b].setThreshold(new jalview.datamodel.GraphLine(e,g,h))},"jalview.datamodel.AlignmentI,java.util.StringTokenizer,jalview.datamodel.SequenceI,jalview.datamodel.SequenceGroup");d(c$,"addGroup",
2428 function(a,b){var c=new jalview.datamodel.SequenceGroup;c.setName(b.nextToken());var f="";try{f=b.nextToken(),0<f.length&&!f.startsWith("*")?c.setStartRes(Integer.parseInt(f)-1):c.setStartRes(0),f=b.nextToken(),0<f.length&&!f.startsWith("*")?c.setEndRes(Integer.parseInt(f)-1):c.setEndRes(a.getWidth()-1)}catch(d){if(y(d,Exception))System.err.println("Couldn't parse Group Start or End Field as '*' or a valid column or sequence index: '"+f+"' - assuming alignment width for group."),c.setStartRes(0),
2429 c.setEndRes(a.getWidth()-1);else throw d;}f=b.nextToken();if(f.equals("-1"))for(;b.hasMoreElements();)c.addSequence(a.findName(b.nextToken()),!1);else for(f=new java.util.StringTokenizer(f,",");f.hasMoreTokens();){var e=f.nextToken();if(e.equals("*"))for(e=0;e<a.getHeight();e++)c.addSequence(a.getSequenceAt(e),!1);else if(0<=e.indexOf("-")){var g=new java.util.StringTokenizer(e,"-"),e=Integer.parseInt(g.nextToken()),g=Integer.parseInt(g.nextToken());if(g>e)for(;e<=g;e++)c.addSequence(a.getSequenceAt(e-
2430 1),!1)}else c.addSequence(a.getSequenceAt(Integer.parseInt(e)-1),!1)}null!=this.refSeq&&(c.setStartRes(this.refSeq.findIndex(c.getStartRes()+1)-1),c.setEndRes(this.refSeq.findIndex(c.getEndRes()+1)-1),c.setSeqrep(this.refSeq));0<c.getSize()&&a.addGroup(c)},"jalview.datamodel.AlignmentI,java.util.StringTokenizer");d(c$,"addRowProperties",function(a,b){for(var c=b.nextToken(),f,d,e=!1,g=!1,h=!1;b.hasMoreTokens();)if(f=b.nextToken(),d=f.substring(0,f.indexOf("=")),f=f.substring(f.indexOf("=")+1),d.equalsIgnoreCase("scaletofit")&&
2431 (e=Boolean.$valueOf(f).booleanValue()),d.equalsIgnoreCase("showalllabs")&&(h=Boolean.$valueOf(f).booleanValue()),d.equalsIgnoreCase("centrelabs")&&(g=Boolean.$valueOf(f).booleanValue()),d=a.getAlignmentAnnotation(),null!=d)for(f=0;f<d.length;f++)d[f].label.equalsIgnoreCase(c)&&(d[f].centreColLabels=g,d[f].scaleColLabel=e,d[f].showAllColLabels=h)},"jalview.datamodel.AlignmentI,java.util.StringTokenizer");d(c$,"addProperties",function(a,b){if(null!=a.getGroups()){for(var c=b.nextToken(),f=null,d,e=
2432 a.getGroups().iterator();e.hasNext()&&((d=e.next())||1)&&!(f=d).getName().equals(c);)f=null;if(null!=f){c=f.cs;for(f.cs=null;b.hasMoreTokens();)e=b.nextToken(),d=e.substring(0,e.indexOf("=")),e=e.substring(e.indexOf("=")+1),d.equalsIgnoreCase("description")?f.setDescription(e):d.equalsIgnoreCase("colour")?f.cs=jalview.schemes.ColourSchemeProperty.getColour(a,e):d.equalsIgnoreCase("pidThreshold")?f.cs.setThreshold(Integer.parseInt(e),!0):d.equalsIgnoreCase("consThreshold")?(f.cs.setConservationInc(Integer.parseInt(e)),
2433 d=new jalview.analysis.Conservation("Group",jalview.schemes.ResidueProperties.propHash,3,f.getSequences(null),f.getStartRes(),f.getEndRes()+1),d.calculate(),d.verdict(!1,25),f.cs.setConservation(d)):d.equalsIgnoreCase("outlineColour")?f.setOutlineColour((new jalview.schemes.UserColourScheme(e)).findColour("A")):d.equalsIgnoreCase("displayBoxes")?f.setDisplayBoxes(Boolean.$valueOf(e).booleanValue()):d.equalsIgnoreCase("showUnconserved")?f.setShowNonconserved(Boolean.$valueOf(e).booleanValue()):d.equalsIgnoreCase("displayText")?
2434 f.setDisplayText(Boolean.$valueOf(e).booleanValue()):d.equalsIgnoreCase("colourText")?f.setColourText(Boolean.$valueOf(e).booleanValue()):d.equalsIgnoreCase("textCol1")?f.textColour=(new jalview.schemes.UserColourScheme(e)).findColour("A"):d.equalsIgnoreCase("textCol2")?f.textColour2=(new jalview.schemes.UserColourScheme(e)).findColour("A"):d.equalsIgnoreCase("textColThreshold")?f.thresholdTextColour=Integer.parseInt(e):d.equalsIgnoreCase("idColour")?f.setIdColour((c=new jalview.schemes.UserColourScheme(e)).findColour("A")):
2435 d.equalsIgnoreCase("hide")?f.setHidereps(!0):d.equalsIgnoreCase("hidecols")&&f.setHideCols(!0),f.recalcConservation();null==f.cs&&(f.cs=c)}}},"jalview.datamodel.AlignmentI,java.util.StringTokenizer");d(c$,"setBelowAlignment",function(a,b){var c,f,d=a.getAlignmentAnnotation();for(null==d&&System.err.print("Warning - no annotation to set below for sequence associated annotation:");b.hasMoreTokens();)if(c=b.nextToken(),null==d)System.err.print(" "+c);else for(var e=0;e<a.getAlignmentAnnotation().length;e++)f=
2436 a.getAlignmentAnnotation()[e],f.sequenceRef===this.refSeq&&f.label.equals(c)&&(f.belowAlignment=!0);null==d&&System.err.print("\n")},"jalview.datamodel.AlignmentI,java.util.StringTokenizer");d(c$,"addAlignmentDetails",function(a,b){for(var c,f;b.hasMoreTokens();)c=b.nextToken(),f=c.substring(0,c.indexOf("=")),c=c.substring(c.indexOf("=")+1),a.setProperty(f,c)},"jalview.datamodel.AlignmentI,java.util.StringTokenizer");d(c$,"printCSVAnnotations",function(a){for(var b=new StringBuffer,c=0;c<a.length;c++){var f=
2437 a[c].toString(),d=0;do{var e=f.indexOf("\n",d);b.append(a[c].label);b.append(",");e>d?b.append(f.substring(d,e+1)):(b.append(f.substring(d)),b.append(this.newline));d=e+1}while(0<d)}return b.toString()},"~A");d(c$,"printAnnotationsForView",function(a){return this.printAnnotations(a.isShowAnnotation()?a.getAlignment().getAlignmentAnnotation():null,a.getAlignment().getGroups(),a.getAlignment().getProperties(),a.getColumnSelection(),a.getAlignment(),null)},"jalview.api.AlignViewportI");d(c$,"printAnnotationsForAlignment",
2438 function(a){return this.printAnnotations(a.getAlignmentAnnotation(),a.getGroups(),a.getProperties(),null,a,null)},"jalview.datamodel.AlignmentI");c$.$AnnotationFile$ViewDef$=function(){A(self.c$);c$=s(function(){O(this,arguments);this.hiddenRepSeqs=this.visibleGroups=this.hiddencols=this.hidseqs=this.viewname=null;r(this,arguments)},jalview.io.AnnotationFile,"ViewDef");m(c$,function(a,b,c,d){this.viewname=a;this.hidseqs=b;this.hiddencols=c;this.hiddenRepSeqs=d},"~S,jalview.datamodel.HiddenSequences,jalview.datamodel.ColumnSelection,java.util.Hashtable");
2439 c$=z()};G(c$,"GRAPHLINE","GRAPHLINE","COMBINE","COMBINE")});p("jalview.io");q(["jalview.io.FileParse","jalview.jsdev.RegExp"],"jalview.io.NewickFile","jalview.datamodel.SequenceNode jalview.util.MessageManager java.io.BufferedReader $.IOException java.lang.Float $.StringBuffer java.util.StringTokenizer".split(" "),function(){c$=s(function(){this.root=null;this.ReplaceUnderscores=this.RootHasDistance=this.$HasDistances=this.$HasBootstrap=!1;this.printRootInfo=!0;this.NodeSafeName=null;this.QuoteChar=
2440 "'";r(this,arguments)},jalview.io,"NewickFile",jalview.io.FileParse);J(c$,function(){this.NodeSafeName=E(-1,[jalview.jsdev.RegExp.perlCode("m/[\\[,:'()]/"),jalview.jsdev.RegExp.perlCode("s/'/''/"),jalview.jsdev.RegExp.perlCode("s/\\/w/_/")])});m(c$,function(a){t(this,jalview.io.NewickFile,[a,"Paste"])},"~S");m(c$,function(a){t(this,jalview.io.NewickFile,[]);this.root=a},"jalview.datamodel.SequenceNode");m(c$,function(a,b){t(this,jalview.io.NewickFile,[]);this.$HasBootstrap=b;this.root=a},"jalview.datamodel.SequenceNode,~B");
2441 m(c$,function(a,b,c){t(this,jalview.io.NewickFile,[]);this.root=a;this.$HasBootstrap=b;this.$HasDistances=c},"jalview.datamodel.SequenceNode,~B,~B");m(c$,function(a,b,c,d){t(this,jalview.io.NewickFile,[]);this.root=a;this.$HasBootstrap=b;this.$HasDistances=c;this.RootHasDistance=d},"jalview.datamodel.SequenceNode,~B,~B,~B");d(c$,"ErrorStringrange",function(a,b,c,d,e){return(null==a?"":a)+b+" at position "+d+" ( "+e.substring(0>d-c?0:d-c,d+c>e.length?e.length:d+c)+" )\n"},"~S,~S,~N,~N,~S");d(c$,"HasBootstrap",
2442 function(){return this.$HasBootstrap});d(c$,"HasDistances",function(){return this.$HasDistances});d(c$,"HasRootDistance",function(){return this.RootHasDistance});d(c$,"parse",function(){for(var a,b=new StringBuffer;null!=(a=this.nextLine());)b.append(a);a=b.toString();this.root=new jalview.datamodel.SequenceNode;for(var b=null,c=this.root,d=-1,e=0,k=null,g=null,h=null,j=0.001,n=-1,m=!1,u=jalview.jsdev.RegExp.newRegex(["[(\\['),;]"]),p=0,q=e,s=!1;u.searchFrom(a,e)&&null==k;){var r=u.matchedFrom(),
2443 t;switch(t=a.charAt(r)){case "(":if(m){k=this.ErrorStringrange(k,"Unexpected '('",7,r,a);continue}d++;null==c.right()?(c.setRight(new jalview.datamodel.SequenceNode(null,c,null,0.001,-1,!1)),c=c.right()):(null!=c.left()&&(g=new jalview.datamodel.SequenceNode(null,c,null,0,0,!0),g.SetChildren(c.left(),c.right()),c.setRight(g)),c.setLeft(new jalview.datamodel.SequenceNode(null,c,null,0.001,-1,!1)),c=c.left());null==b&&(b=c);g=null;j=0.001;n=-1;break;case "'":e=jalview.jsdev.RegExp.newRegex(["'([^']|'')+'"]);
2444 e.searchFrom(a,r)?(p=e.stringMatched().length,g=String.instantialize(e.stringMatched().substring(1,p-1)),g=jalview.jsdev.RegExp.perlCode("s/''/'/").replaceAll(g),p=r+p+1,s=!0):k=this.ErrorStringrange(k,"Unterminated quotes for nodename",7,r,a);break;default:";"==t&&-1!=d&&(k=this.ErrorStringrange(k,"Wayward semicolon (depth="+d+")",7,r,a));if("["==t)if(e=jalview.jsdev.RegExp.newRegex(["]"]),e.searchFrom(a,r)){p=e.matchedFrom()+1;this.warningMessage="Tree file contained comments which may confuse input algorithm.";
2445 break}else k=this.ErrorStringrange(k,"Unterminated comment",3,r,a);for(e=a.substring(q,r);-1<e.indexOf("]");){t=e.indexOf("[");var v=e.indexOf("]"),h=e.substring(t+1,v),e=e.substring(0,t)+e.substring(v+1)}var v=jalview.jsdev.RegExp.newRegex(["\\b([^' :;\\](),]+)"]),w=jalview.jsdev.RegExp.newRegex(["\\s*([0-9+]+)\\s*:"]);t=jalview.jsdev.RegExp.newRegex([":([-0-9Ee.+]+)"]);if(!s&&v.search(e)&&(0==v.matchedFromI(1)||":"!=e.charAt(v.matchedFromI(1)-1)))null==g?g=this.ReplaceUnderscores?v.stringMatchedI(1).$replace("_",
2446 " "):v.stringMatchedI(1):k=this.ErrorStringrange(k,"File has broken algorithm - overwritten nodename",10,r,a);if(w.search(e)&&(w.stringMatchedI(1).equals(v.stringMatchedI(1))&&(g=null),null==g||0==g.length||w.matchedFromI(1)>v.matchedFromI(1)+v.stringMatched().length))try{n=(new Integer(w.stringMatchedI(1))).intValue(),this.$HasBootstrap=!0}catch(z){if(y(z,Exception))k=this.ErrorStringrange(k,"Can't parse bootstrap value",4,q+w.matchedFrom(),a);else throw z;}s=!1;if(t.search(e))try{j=(new Float(t.stringMatchedI(1))).floatValue(),
2447 s=this.$HasDistances=!0}catch(A){if(y(A,Exception))k=this.ErrorStringrange(k,"Can't parse node distance value",7,q+t.matchedFrom(),a);else throw A;}m?(c.setName(g),c.dist=this.$HasDistances?j:0.001,c.setBootstrap(this.$HasBootstrap?n:-1),c===b&&(this.RootHasDistance=s),this.parseNHXNodeProps(c,h)):(g=new jalview.datamodel.SequenceNode(null,c,g,this.$HasDistances?j:0.001,this.$HasBootstrap?n:-1,!1),this.parseNHXNodeProps(c,h),null==c.right()?c.setRight(g):null==c.left()?c.setLeft(g):(h=new jalview.datamodel.SequenceNode(null,
2448 c,null,this.$HasDistances?0:0.001,0,!0),h.SetChildren(c.left(),g),c.setLeft(h)));m&&(c=c.AscendTree(),-1<d&&null==c&&(k=this.ErrorStringrange(k,"File broke algorithm: Lost place in tree (is there an extra ')' ?)",7,r,a)));")"==a.charAt(r)?(d--,m=!0):","==a.charAt(r)&&(m?m=!1:null!=c.left()&&!c.left().isLeaf()&&(c=c.left()));g=null;j=0.001;n=-1;h=null;s=!1}0==p?q=e=r+1:(e=p,p=0)}if(null!=k)throw new java.io.IOException(jalview.util.MessageManager.formatMessage("exception.newfile",E(-1,[k.toString()])));
2449 if(null==this.root)throw new java.io.IOException(jalview.util.MessageManager.formatMessage("exception.newfile",E(-1,[jalview.util.MessageManager.getString("label.no_tree_read_in")])));this.root=this.root.right().detach();this.RootHasDistance||(this.root.dist=this.$HasDistances?0:0.001)});d(c$,"parseNHXNodeProps",function(a,b){if(null!=b&&b.startsWith("&&NHX"))for(var c=new java.util.StringTokenizer(b.substring(5),":");c.hasMoreTokens();){var d=c.nextToken(),e=d.indexOf("=");if(-1<e){var k=d.substring(0,
2450 e),d=d.substring(e+1);try{k.toLowerCase().equals("b")&&(e=-1,e=(new Float(d)).intValue(),a.setBootstrap(e),this.$HasBootstrap=!0)}catch(g){if(y(g,Exception))System.err.println("Couldn't parse code '"+k+"' = '"+d+"'"),g.printStackTrace(System.err);else throw g;}}}},"jalview.datamodel.SequenceNode,~S");d(c$,"getTree",function(){return this.root});d(c$,"print",function(){var a=new StringBuffer;this.print(a,this.root);return a.append(";").toString()});d(c$,"print",function(a){var b=this.$HasBootstrap;
2451 this.$HasBootstrap=a;a=this.print();this.$HasBootstrap=b;return a},"~B");d(c$,"print",function(a,b){var c=this.$HasDistances;this.$HasDistances=b;var d=this.print(a);this.$HasDistances=c;return d},"~B,~B");d(c$,"print",function(a,b,c){this.printRootInfo=c;a=this.print(a,b);this.printRootInfo=c;return a},"~B,~B,~B");d(c$,"getQuoteChar",function(){return this.QuoteChar});d(c$,"setQuoteChar",function(a){var b=this.QuoteChar;this.QuoteChar=a;return b},"~S");d(c$,"nodeName",function(a){return this.NodeSafeName[0].search(a)?
2452 this.QuoteChar+this.NodeSafeName[1].replaceAll(a)+this.QuoteChar:this.NodeSafeName[2].replaceAll(a)},"~S");d(c$,"printNodeField",function(a){return(null==a.getName()?"":this.nodeName(a.getName()))+(this.$HasBootstrap?-1<a.getBootstrap()?(null!=a.getName()?" ":"")+a.getBootstrap():"":"")+(this.$HasDistances?":"+a.dist:"")},"jalview.datamodel.SequenceNode");d(c$,"printRootField",function(a){return this.printRootInfo?(null==a.getName()?"":this.nodeName(a.getName()))+(this.$HasBootstrap?-1<a.getBootstrap()?
2453 (null!=a.getName()?" ":"")+ +a.getBootstrap():"":"")+(this.RootHasDistance?":"+a.dist:""):""},"jalview.datamodel.SequenceNode");d(c$,"print",function(a,b){null!=b&&(b.isLeaf()&&this.printRootInfo?a.append(this.printRootField(b)):b.isDummy()?(this._print(a,b.right()),this._print(a,b.left())):(a.append("("),this._print(a,b.right()),null!=b.left()&&a.append(","),this._print(a,b.left()),a.append(")"+this.printRootField(b))))},"StringBuffer,jalview.datamodel.SequenceNode");d(c$,"_print",function(a,b){null!=
2454 b&&(b.isLeaf()?a.append(this.printNodeField(b)):b.isDummy()?(this._print(a,b.left()),null!=b.left()&&a.append(","),this._print(a,b.right())):(a.append("("),this._print(a,b.right()),null!=b.left()&&a.append(","),this._print(a,b.left()),a.append(")"+this.printNodeField(b))))},"StringBuffer,jalview.datamodel.SequenceNode");c$.main=d(c$,"main",function(a){try{if(null==a||1!=a.length)System.err.println("Takes one argument - file name of a newick tree file."),System.exit(0);for(var b=new java.io.File(a[0]),
2455 c=new StringBuffer,d=new java.io.BufferedReader(new java.io.FileReader(b)),e;null!=(e=d.readLine());)c.append(e);d.close();System.out.println("Read file :\n");var k=new jalview.io.NewickFile(a[0],"File");k.parse();System.out.println("Original file :\n");var g=jalview.jsdev.RegExp.newRegex(["\n+",""]);System.out.println(g.replaceAll(c.toString())+"\n");System.out.println("Parsed file.\n");System.out.println("Default output type for original input.\n");System.out.println(k.print());System.out.println("Without bootstraps.\n");
2456 System.out.println(k.print(!1));System.out.println("Without distances.\n");System.out.println(k.print(!0,!1));System.out.println("Without bootstraps but with distanecs.\n");System.out.println(k.print(!1,!0));System.out.println("Without bootstraps or distanecs.\n");System.out.println(k.print(!1,!1));System.out.println("With bootstraps and with distances.\n");System.out.println(k.print(!0,!0))}catch(h){if(y(h,java.io.IOException))System.err.println("Exception\n"+h),h.printStackTrace();else throw h;
2457 }},"~A")});p("jalview.datamodel");q(["jalview.datamodel.BinaryNode","java.awt.Color"],"jalview.datamodel.SequenceNode",null,function(){c$=s(function(){this.ycount=this.height=this.count=this.dist=0;this.color=null;this.placeholder=this.dummy=!1;r(this,arguments)},jalview.datamodel,"SequenceNode",jalview.datamodel.BinaryNode);J(c$,function(){this.color=java.awt.Color.black});m(c$,function(a,b,c,d){t(this,jalview.datamodel.SequenceNode,[a,b,d]);this.dist=c},"~O,jalview.datamodel.SequenceNode,~N,~S");
2458 m(c$,function(a,b,c,d,e,k){t(this,jalview.datamodel.SequenceNode,[a,b,c]);this.dist=d;this.bootstrap=e;this.dummy=k},"~O,jalview.datamodel.SequenceNode,~S,~N,~N,~B");d(c$,"isDummy",function(){return this.dummy});d(c$,"isPlaceholder",function(){return this.placeholder});d(c$,"setDummy",function(a){var b=this.dummy;this.dummy=a;return b},"~B");d(c$,"setPlaceholder",function(a){this.placeholder=a},"~B");d(c$,"AscendTree",function(){var a=this;do a=a.parent();while(null!=a&&a.dummy);return a});d(c$,"isSequenceLabel",
2459 function(){if(null!=this.name&&0<this.name.length)for(var a=0,b=this.name.length;a<b;a++){var c=this.name.charAt(a);if(!("0"<=c&&"9">=c))return!0}return!1})});p("jalview.datamodel");c$=s(function(){this.$parent=this.$right=this.$left=this.name=this.$element=null;this.bootstrap=0;r(this,arguments)},jalview.datamodel,"BinaryNode");m(c$,function(){this.$left=this.$right=this.$parent=null;this.bootstrap=0});m(c$,function(a,b,c){this.$element=a;this.$parent=b;this.name=c;this.$left=this.$right=null},"~O,jalview.datamodel.BinaryNode,~S");
2460 d(c$,"element",function(){return this.$element});d(c$,"setElement",function(a){return this.$element=a},"~O");d(c$,"left",function(){return this.$left});d(c$,"setLeft",function(a){return this.$left=a},"jalview.datamodel.BinaryNode");d(c$,"right",function(){return this.$right});d(c$,"setRight",function(a){return this.$right=a},"jalview.datamodel.BinaryNode");d(c$,"parent",function(){return this.$parent});d(c$,"setParent",function(a){return this.$parent=a},"jalview.datamodel.BinaryNode");d(c$,"isLeaf",
2461 function(){return null==this.$left&&null==this.$right});d(c$,"SetChildren",function(a,b){null!=a&&(this.setLeft(a),a.detach(),a.setParent(this));null!=b&&(this.setRight(b),b.detach(),b.setParent(this))},"jalview.datamodel.BinaryNode,jalview.datamodel.BinaryNode");d(c$,"detach",function(){null!=this.$parent&&(this.$parent.$left===this?this.$parent.$left=null:this.$parent.$right===this&&(this.$parent.$right=null));this.$parent=null;return this});d(c$,"ascendLeft",function(){var a=this;do a=a.parent();
2462 while(null!=a&&null!=a.left()&&!a.left().isLeaf());return a});d(c$,"ascendRight",function(){var a=this;do a=a.parent();while(null!=a&&null!=a.right()&&!a.right().isLeaf());return a});d(c$,"setName",function(a){this.name=a},"~S");d(c$,"getName",function(){return this.name});d(c$,"setBootstrap",function(a){this.bootstrap=a},"~N");d(c$,"getBootstrap",function(){return this.bootstrap});p("jalview.appletgui");q(["jalview.appletgui.JVDialog"],"jalview.appletgui.EditNameDialog",["awt2swing.Label","$.Panel",
2463 "$.TextField","java.awt.BorderLayout","$.Font"],function(){c$=s(function(){this.description=this.id=null;r(this,arguments)},jalview.appletgui,"EditNameDialog",jalview.appletgui.JVDialog);e(c$,"getName",function(){return this.id.getText()});d(c$,"getDescription",function(){return 1>this.description.getText().length?null:this.description.getText()});m(c$,function(a,b,c,d,e,k,g,h,j){t(this,jalview.appletgui.EditNameDialog,[e,k,!0,g,h]);e=new java.awt.Font("Monospaced",0,12);k=new awt2swing.Panel(new java.awt.BorderLayout);
2464 g=new awt2swing.Panel(new java.awt.BorderLayout);this.id=new awt2swing.TextField(a,40);this.id.setFont(e);a=new awt2swing.Label(c);a.setFont(e);g.add(a,"West");g.add(this.id,"Center");k.add(g,"North");null!=d&&(g=new awt2swing.Panel(new java.awt.BorderLayout),this.description=new awt2swing.TextField(b,40),this.description.setFont(e),a=new awt2swing.Label(d),a.setFont(e),g.add(a,"West"),g.add(this.description,"Center"),k.add(g,"Center"));this.setMainPanel(k);this.setVisible(j)},"~S,~S,~S,~S,awt2swing.Frame,~S,~N,~N,~B")});
2465 p("awt2swing");q(["javax.swing.JTextField"],"awt2swing.TextField",["java.awt.event.TextEvent","javax.swing.event.DocumentListener"],function(){c$=B(awt2swing,"TextField",javax.swing.JTextField);d(c$,"addTextListener",function(a){this.getDocument().addDocumentListener((H("awt2swing.TextField$1")?0:awt2swing.TextField.$TextField$1$(),C(awt2swing.TextField$1,this,T("textListener",a))))},"java.awt.event.TextListener");c$.$TextField$1$=function(){A(self.c$);c$=L(awt2swing,"TextField$1",null,javax.swing.event.DocumentListener);
2466 e(c$,"insertUpdate",function(){},"javax.swing.event.DocumentEvent");e(c$,"removeUpdate",function(){},"javax.swing.event.DocumentEvent");e(c$,"changedUpdate",function(){this.f$.textListener.textValueChanged(new java.awt.event.TextEvent(this,0))},"javax.swing.event.DocumentEvent");c$=z()}});p("java.awt.event");q(["java.awt.AWTEvent"],"java.awt.event.TextEvent",null,function(){c$=B(java.awt.event,"TextEvent",java.awt.AWTEvent);e(c$,"paramString",function(){var a;switch(this.id){case 900:a="TEXT_VALUE_CHANGED";
2467 break;default:a="unknown type"}return a});G(c$,"TEXT_FIRST",900,"TEXT_LAST",900,"TEXT_VALUE_CHANGED",900)});p("jalview.appletgui");q(null,"jalview.appletgui.PaintRefresher",["jalview.appletgui.AlignmentPanel","java.util.Hashtable","$.Vector"],function(){c$=B(jalview.appletgui,"PaintRefresher");c$.Register=d(c$,"Register",function(a,b){null==jalview.appletgui.PaintRefresher.components&&(jalview.appletgui.PaintRefresher.components=new java.util.Hashtable);if(jalview.appletgui.PaintRefresher.components.containsKey(b)){var c=
2468 jalview.appletgui.PaintRefresher.components.get(b);c.contains(a)||c.addElement(a)}else c=new java.util.Vector,c.addElement(a),jalview.appletgui.PaintRefresher.components.put(b,c)},"java.awt.Component,~S");c$.RemoveComponent=d(c$,"RemoveComponent",function(a){if(null!=jalview.appletgui.PaintRefresher.components)for(var b=jalview.appletgui.PaintRefresher.components.keys();b.hasMoreElements();){var c=b.nextElement().toString(),d=jalview.appletgui.PaintRefresher.components.get(c);d.removeElement(a);0==
2469 d.size()&&jalview.appletgui.PaintRefresher.components.remove(c)}},"java.awt.Component");c$.Refresh=d(c$,"Refresh",function(a,b){jalview.appletgui.PaintRefresher.Refresh(a,b,!1,!1)},"java.awt.Component,~S");c$.Refresh=d(c$,"Refresh",function(a,b,c,d){if(null!=jalview.appletgui.PaintRefresher.components){var e=jalview.appletgui.PaintRefresher.components.get(b);if(null!=e)for(var k=e.elements();k.hasMoreElements();)b=k.nextElement(),b!==a&&(b.isValid()?d&&(v(b,jalview.appletgui.AlignmentPanel)&&v(a,
2470 jalview.appletgui.AlignmentPanel))&&jalview.appletgui.PaintRefresher.validateSequences(a.av.getAlignment(),b.av.getAlignment()):e.removeElement(b),v(b,jalview.appletgui.AlignmentPanel)&&c&&b.alignmentChanged(),b.repaint())}},"java.awt.Component,~S,~B,~B");c$.validateSequences=d(c$,"validateSequences",function(a,b){var c;c=0<a.getHiddenSequences().getSize()?a.getHiddenSequences().getFullAlignment().getSequencesArray():a.getSequencesArray();var d;d=0<b.getHiddenSequences().getSize()?b.getHiddenSequences().getFullAlignment().getSequencesArray():
2471 b.getSequencesArray();var e,k=c.length,g,h=d.length;if(k!=h){var j=!1;for(e=0;e<k;e++){j=!1;for(g=0;g<h;g++)if(d[g]===c[e]){j=!0;break}j||(e<b.getHeight()?(void 0).add(e,c[e]):b.addSequence(c[e]),d=0<b.getHiddenSequences().getSize()?b.getHiddenSequences().getFullAlignment().getSequencesArray():b.getSequencesArray(),h=d.length)}k=c.length;h=d.length;for(g=0;g<h;g++){j=!1;for(e=0;e<k;e++)if(d[g]===c[e]){j=!0;break}j||b.deleteSequence(d[g])}}},"jalview.datamodel.AlignmentI,jalview.datamodel.AlignmentI");
2472 c$.getAssociatedPanels=d(c$,"getAssociatedPanels",function(a){var b=jalview.appletgui.PaintRefresher.components.get(a);a=new java.util.Vector;var c,d=b.size();for(c=0;c<d;c++)v(b.elementAt(c),jalview.appletgui.AlignmentPanel)&&a.addElement(b.elementAt(c));b=Array(a.size());for(c=0;c<b.length;c++)b[c]=a.elementAt(c);return b},"~S");G(c$,"components",null)});p("jalview.appletgui");q(null,"jalview.appletgui.Tooltip",["awt2swing.Frame","java.applet.Applet","java.awt.Toolkit"],function(){c$=s(function(){this.tip=
2473 null;this.lastTip="";this.setPosition=!1;this.mainLayout=this.mainContainer=this.owner=null;this.shown=!1;this.VERTICAL_OFFSET=20;this.HORIZONTAL_ENLARGE=10;this.fontHeight=0;this.fm=this.linkImage=null;r(this,arguments)},jalview.appletgui,"Tooltip");d(c$,"setVisible",function(){},"~B");m(c$,function(a,b){this.owner=b;this.setTip(a);var c=this.getClass().getResource("/images/link.gif");null!=c&&(this.linkImage=java.awt.Toolkit.getDefaultToolkit().getImage(c))},"~S,java.awt.Component");d(c$,"setTip",
2474 function(a){System.err.println("Tooltip: "+a)},"~S");d(c$,"setTipLocation",function(){},"java.awt.event.MouseEvent");d(c$,"removeToolTip",function(){});d(c$,"mouseEntered",function(a){this.setTipLocation(a)},"java.awt.event.MouseEvent");d(c$,"mouseExited",function(){this.removeToolTip()},"java.awt.event.MouseEvent");d(c$,"mousePressed",function(){this.removeToolTip()},"java.awt.event.MouseEvent");d(c$,"mouseReleased",function(){},"java.awt.event.MouseEvent");d(c$,"mouseClicked",function(){},"java.awt.event.MouseEvent");
2475 d(c$,"mouseMoved",function(a){this.shown?this.setPosition&&this.setTipLocation(a):this.setTipLocation(a)},"java.awt.event.MouseEvent");d(c$,"mouseDragged",function(){},"java.awt.event.MouseEvent")});p("jalview.util");q(["java.lang.StringBuffer","java.util.ArrayList","java.util.regex.Pattern"],"jalview.util.ParseHtmlBodyAndLinks",["java.util.StringTokenizer"],function(){c$=s(function(){this.orig=null;this.htmlContent=!0;this.sb=this.links=null;r(this,arguments)},jalview.util,"ParseHtmlBodyAndLinks");
2476 J(c$,function(){this.links=new java.util.ArrayList;this.sb=new StringBuffer});d(c$,"getOrig",function(){return this.orig});d(c$,"isHtmlContent",function(){return this.htmlContent});d(c$,"getContent",function(){return this.sb.toString()});d(c$,"getLinks",function(){return this.links});m(c$,function(a,b,c){if(null==a||0==a.length)this.htmlContent=!1;else{-1==a.toUpperCase().indexOf("<HTML>")&&(this.htmlContent=!1);this.orig=a;for(var d=new java.util.StringTokenizer(a,"<"),e,k,g=null;d.hasMoreElements();)e=
2477 d.nextToken("&>"),!e.equalsIgnoreCase("html")&&!e.startsWith("/")&&(g=null,k=e.indexOf("<"),-1<k&&(g=e.substring(k+1),e=e.substring(0,k)),null!=g&&g.toUpperCase().startsWith("A HREF=")?(0<e.length&&this.sb.append(e),e=g.substring(g.indexOf('"')+1,g.length-1),k=d.nextToken("<>"),this.links.add(k+"|"+e),this.sb.append(k+"%LINK%")):null!=g&&g.equalsIgnoreCase("br")?this.sb.append(c):e.startsWith("lt;")?this.sb.append("<"+e.substring(3)):e.startsWith("gt;")?this.sb.append(">"+e.substring(3)):e.startsWith("amp;")?
2478 this.sb.append("&"+e.substring(4)):this.sb.append(e));b&&!this.htmlContent&&(this.sb=new StringBuffer(jalview.util.ParseHtmlBodyAndLinks.LEFT_ANGLE_BRACKET_PATTERN.matcher(a).replaceAll("&lt;")))}},"~S,~B,~S");d(c$,"getNonHtmlContent",function(){return this.isHtmlContent()?this.sb.toString():this.orig});c$.LEFT_ANGLE_BRACKET_PATTERN=c$.prototype.LEFT_ANGLE_BRACKET_PATTERN=java.util.regex.Pattern.compile("<")});p("jalview.appletgui");q("awt2swing.Panel jalview.renderer.AwtRenderPanelI java.awt.event.ActionListener $.AdjustmentListener $.MouseListener $.MouseMotionListener java.awt.Color".split(" "),
2479 "jalview.appletgui.AnnotationPanel","awt2swing.MenuItem $.PopupMenu $.Util jalview.appletgui.EditNameDialog $.UserDefinedColours jalview.datamodel.Annotation jalview.renderer.AnnotationRenderer jalview.util.MessageManager $.Platform java.awt.Dimension java.lang.StringBuffer".split(" "),function(){c$=s(function(){this.ap=this.av=null;this.activeRow=-1;this.HELIX="Helix";this.SHEET="Sheet";this.STEM="RNA Helix";this.LABEL="Label";this.REMOVE="Remove Annotation";this.COLOUR="Colour";this.fm=this.gg=
2480 this.image=this.SHEET_COLOUR=this.HELIX_COLOUR=null;this.imgWidth=0;this.$fastPaint=!1;this.graphStretchY=this.graphStretch=-1;this.MAC=this.mouseDragging=!1;this.renderer=null;this.needValidating=!1;this.scrollOffset=0;this.$bounds=null;r(this,arguments)},jalview.appletgui,"AnnotationPanel",awt2swing.Panel,[jalview.renderer.AwtRenderPanelI,java.awt.event.AdjustmentListener,java.awt.event.ActionListener,java.awt.event.MouseListener,java.awt.event.MouseMotionListener]);J(c$,function(){this.HELIX_COLOUR=
2481 java.awt.Color.red.darker();this.SHEET_COLOUR=java.awt.Color.green.darker().darker();this.$bounds=w(2,0)});m(c$,function(a){t(this,jalview.appletgui.AnnotationPanel,[]);this.MAC=jalview.util.Platform.isAMac();this.ap=a;this.av=a.av;this.setLayout(null);var b=this.adjustPanelHeight();a.apvscroll.setValues(0,this.getSize().height,0,b);this.addMouseMotionListener(this);this.addMouseListener(this);this.renderer=new jalview.renderer.AnnotationRenderer},"jalview.appletgui.AlignmentPanel");m(c$,function(a){t(this,
2482 jalview.appletgui.AnnotationPanel,[]);this.av=a;this.renderer=new jalview.renderer.AnnotationRenderer},"jalview.appletgui.AlignViewport");e(c$,"adjustmentValueChanged",function(){},"java.awt.event.AdjustmentEvent");e(c$,"actionPerformed",function(a){var b=this.av.getAlignment().getAlignmentAnnotation();if(null!=b){var c=b[this.activeRow].annotations;if(c.length<this.av.getColumnSelection().getMax()){var d=Array(this.av.getColumnSelection().getMax()+2);System.arraycopy(c,0,d,0,c.length);c=d;b[this.activeRow].annotations=
2483 c}var e="";null!=this.av.getColumnSelection()&&(0<this.av.getColumnSelection().size()&&null!=c[this.av.getColumnSelection().getMin()])&&(e=c[this.av.getColumnSelection().getMin()].displayCharacter);if(a.getActionCommand().equals("Remove Annotation"))for(a=0;a<this.av.getColumnSelection().size();a++)c[this.av.getColumnSelection().columnAt(a)]=null;else if(a.getActionCommand().equals("Label")){e=this.enterLabel(e,"Enter Label");if(null==e)return;0<e.length&&!b[this.activeRow].hasText&&(b[this.activeRow].hasText=
2484 !0);for(a=0;a<this.av.getColumnSelection().size();a++){var k=this.av.getColumnSelection().columnAt(a);this.av.getColumnSelection().isVisible(k)&&(null==c[k]&&(c[k]=new jalview.datamodel.Annotation(e,""," ",0)),c[k].displayCharacter=e)}}else if(a.getActionCommand().equals("Colour")){d=(new jalview.appletgui.UserDefinedColours(this,java.awt.Color.black,this.ap.alignFrame)).getColor();for(a=0;a<this.av.getColumnSelection().size();a++)k=this.av.getColumnSelection().columnAt(a),this.av.getColumnSelection().isVisible(k)&&
2485 (null==c[k]&&(c[k]=new jalview.datamodel.Annotation("",""," ",0)),c[k].colour=d)}else{d=String.fromCharCode(0);e="\u03b1";a.getActionCommand().equals("Helix")?d="H":a.getActionCommand().equals("Sheet")?(d="E",e="\u03b2"):a.getActionCommand().equals("RNA Helix")&&(d="S",e="\u03c3");b[this.activeRow].hasIcons||(b[this.activeRow].hasIcons=!0);e=this.enterLabel(e,"Enter Label");if(null==e)return;0<e.length&&!b[this.activeRow].hasText&&(b[this.activeRow].hasText=!0,a.getActionCommand().equals("RNA Helix")&&
2486 (b[this.activeRow].showAllColLabels=!0));for(a=0;a<this.av.getColumnSelection().size();a++)k=this.av.getColumnSelection().columnAt(a),this.av.getColumnSelection().isVisible(k)&&(null==c[k]&&(c[k]=new jalview.datamodel.Annotation(e,"",d,0)),c[k].secondaryStructure="S"!=d?d:0==e.length?" ":e.charAt(0),c[k].displayCharacter=e)}this.av.getAlignment().validateAnnotation(b[this.activeRow]);this.ap.alignmentChanged();this.adjustPanelHeight();this.repaint()}},"java.awt.event.ActionEvent");d(c$,"enterLabel",
2487 function(a,b){var c=new jalview.appletgui.EditNameDialog(a,null,b,null,this.ap.alignFrame,"Enter Label",400,200,!0);return c.accept?c.getName():null},"~S,~S");e(c$,"mousePressed",function(a){var b=this.av.getAlignment().getAlignmentAnnotation();if(null!=b){var c=-this.scrollOffset;this.activeRow=-1;for(var d=0;d<b.length;d++)if(b[d].visible&&(c+=b[d].height),a.getY()<c){b[d].editable?this.activeRow=d:0<b[d].graph&&(this.graphStretch=d,this.graphStretchY=a.getY());break}4==(a.getModifiers()&4)&&-1!=
2488 this.activeRow?null!=this.av.getColumnSelection()&&(b=new awt2swing.PopupMenu(jalview.util.MessageManager.getString("label.structure_type")),!0==this.av.getAlignment().isNucleotide()?c=new awt2swing.MenuItem("RNA Helix"):(c=new awt2swing.MenuItem("Helix"),c.addActionListener(this),b.add(c),c=new awt2swing.MenuItem("Sheet")),c.addActionListener(this),b.add(c),c=new awt2swing.MenuItem("Label"),c.addActionListener(this),b.add(c),c=new awt2swing.MenuItem("Colour"),c.addActionListener(this),b.add(c),c=
2489 new awt2swing.MenuItem("Remove Annotation"),c.addActionListener(this),b.add(c),this.ap.alignFrame.add(b),b.show(this,a.getX(),a.getY())):this.ap.scalePanel.mousePressed(a)}},"java.awt.event.MouseEvent");e(c$,"mouseReleased",function(a){this.graphStretchY=this.graphStretch=-1;this.mouseDragging=!1;this.needValidating&&(this.ap.validate(),this.needValidating=!1);this.ap.scalePanel.mouseReleased(a)},"java.awt.event.MouseEvent");e(c$,"mouseClicked",function(){},"java.awt.event.MouseEvent");e(c$,"mouseDragged",
2490 function(a){-1<this.graphStretch?(this.av.getAlignment().getAlignmentAnnotation()[this.graphStretch].graphHeight+=this.graphStretchY-a.getY(),0>this.av.getAlignment().getAlignmentAnnotation()[this.graphStretch].graphHeight&&(this.av.getAlignment().getAlignmentAnnotation()[this.graphStretch].graphHeight=0),this.graphStretchY=a.getY(),this.av.calcPanelHeight(),this.needValidating=!0,this.ap.paintAlignment(!0)):this.ap.scalePanel.mouseDragged(a)},"java.awt.event.MouseEvent");e(c$,"mouseMoved",function(a){var b=
2491 this.av.getAlignment().getAlignmentAnnotation();if(null!=b){for(var c=-1,d=-this.scrollOffset,e=0;e<b.length;e++)if(b[e].visible&&(d+=b[e].height),a.getY()<d){c=e;break}a=F(a.getX()/this.av.getCharWidth())+this.av.getStartRes();this.av.hasHiddenColumns()&&(a=this.av.getColumnSelection().adjustForHiddenColumns(a));-1<c&&(a<b[c].annotations.length&&null!=b[c].annotations[a])&&(d=new StringBuffer("Sequence position "+(a+1)),null!=b[c].annotations[a].description&&d.append("  "+b[c].annotations[a].description),
2492 this.ap.alignFrame.setStatus(d.toString()))}},"java.awt.event.MouseEvent");e(c$,"mouseEntered",function(a){this.ap.scalePanel.mouseEntered(a)},"java.awt.event.MouseEvent");e(c$,"mouseExited",function(a){this.ap.scalePanel.mouseExited(a)},"java.awt.event.MouseEvent");d(c$,"adjustPanelHeight",function(){return this.adjustPanelHeight(!0)});d(c$,"adjustPanelHeight",function(a){var b=this.av.calcPanelHeight();this.setSize(new java.awt.Dimension(this.getSize().width,b));a&&this.repaint();return b},"~B");
2493 d(c$,"addEditableColumn",function(){if(-1==this.activeRow){var a=this.av.getAlignment().getAlignmentAnnotation();if(null!=a)for(var b=0;b<a.length;b++)if(a[b].editable){this.activeRow=b;break}}},"~N");e(c$,"paintComponent",function(a){if(!this.av.getWrapAlignment()&&this.av.isShowAnnotation()){var b=this.getSize();this.imgWidth=b.width;if(!(1>this.imgWidth||1>b.height)){if(null==this.image||this.imgWidth!=this.image.getWidth(this)||b.height!=this.image.getHeight(this))this.image=this.createImage(this.imgWidth,
2494 b.height),this.gg=this.image.getGraphics(),this.gg.setFont(this.av.getFont()),this.fm=this.gg.getFontMetrics(),this.$fastPaint=!1;this.$fastPaint?(a.drawImage(this.image,0,0,this),this.$fastPaint=!1):(this.gg.setColor(java.awt.Color.white),this.gg.fillRect(0,0,this.getSize().width,this.getSize().height),this.drawComponent(this.gg,this.av.startRes,this.av.endRes+1),a.drawImage(this.image,0,0,this))}}},"java.awt.Graphics");d(c$,"fastPaint",function(a){if(!(0==a||null==this.av.getAlignment().getAlignmentAnnotation()||
2495 1>this.av.getAlignment().getAlignmentAnnotation().length)){this.gg.copyArea(0,0,this.imgWidth,this.getSize().height,-a*this.av.getCharWidth(),0);var b=this.av.startRes,c=this.av.endRes+1,d=0;0<a?(d=(c-b-a)*this.av.getCharWidth(),b=c-a):0>a&&(c=b-a);this.gg.translate(d,0);this.drawComponent(this.gg,b,c);this.gg.translate(-d,0);this.$fastPaint=!0}this.repaint()},"~N");d(c$,"drawComponent",function(a,b,c){var d=this.av.getFont();a.setFont(d);a.setColor(java.awt.Color.white);a.fillRect(0,0,(c-b)*this.av.getCharWidth(),
2496 this.getSize().height);null==this.fm&&(this.fm=a.getFontMetrics());null==this.av.getAlignment().getAlignmentAnnotation()||1>this.av.getAlignment().getAlignmentAnnotation().length?(a.setColor(java.awt.Color.white),a.fillRect(0,0,this.getSize().width,this.getSize().height),a.setColor(java.awt.Color.black),this.av.validCharWidth&&awt2swing.Util.drawString(a,jalview.util.MessageManager.getString("label.alignment_has_no_annotations"),20,15)):(a.translate(0,-this.scrollOffset),this.renderer.drawComponent(this,
2497 this.av,a,this.activeRow,b,c),a.translate(0,+this.scrollOffset))},"java.awt.Graphics,~N,~N");d(c$,"setScrollOffset",function(a,b){this.scrollOffset=a;b&&this.repaint()},"~N,~B");d(c$,"getFontMetrics",function(){return this.fm});e(c$,"getFadedImage",function(){return this.image});e(c$,"getFadedImageWidth",function(){return this.imgWidth});e(c$,"getVisibleVRange",function(){if(null!=this.ap&&null!=this.ap.alabels){var a=-this.ap.alabels.scrollOffset,b=a+this.ap.annotationPanelHolder.getHeight();this.$bounds[0]=
2498 a;this.$bounds[1]=b;return this.$bounds}return null});G(c$,"GRAPH_HEIGHT",40)});p("jalview.renderer");q(["java.awt.image.ImageObserver"],"jalview.renderer.AwtRenderPanelI",null,function(){M(jalview.renderer,"AwtRenderPanelI",java.awt.image.ImageObserver)});p("jalview.appletgui");q("awt2swing.Panel java.awt.event.ActionListener $.AdjustmentListener $.FocusListener awt2swing.Button $.Label $.Scrollbar $.TextField java.awt.GridLayout java.util.Vector".split(" "),"jalview.appletgui.UserDefinedColours",
2499 "awt2swing.Frame jalview.appletgui.AnnotationColourChooser $.FeatureColourChooser $.FeatureRenderer $.FeatureSettings jalview.bin.JalviewLite jalview.schemes.ResidueProperties $.UserColourScheme jalview.util.MessageManager java.awt.Color $.Dialog $.Font $.Rectangle java.awt.event.MouseAdapter java.lang.Error".split(" "),function(){c$=s(function(){this.originalColour=this.originalLabel=this.caller=this.dialog=this.jmol=this.frame=this.oldColourScheme=this.oldColours=this.selectedButton=this.seqGroup=
2500 this.ap=null;this.B=this.G=this.R=0;this.target=this.bText=this.bScroller=this.label5=this.gText=this.gScroller=this.label4=this.rText=this.label1=this.rScroller=this.cancelButton=this.applyButton=this.okButton=this.okcancelPanel=this.gridLayout=this.buttonPanel=null;r(this,arguments)},jalview.appletgui,"UserDefinedColours",awt2swing.Panel,[java.awt.event.ActionListener,java.awt.event.AdjustmentListener,java.awt.event.FocusListener]);J(c$,function(){this.oldColours=new java.util.Vector;this.buttonPanel=
2501 new awt2swing.Panel;this.gridLayout=new java.awt.GridLayout;this.okcancelPanel=new awt2swing.Panel;this.okButton=new awt2swing.Button;this.applyButton=new awt2swing.Button;this.cancelButton=new awt2swing.Button;this.rScroller=new awt2swing.Scrollbar;this.label1=new awt2swing.Label;this.rText=new awt2swing.TextField;this.label4=new awt2swing.Label;this.gScroller=new awt2swing.Scrollbar;this.gText=new awt2swing.TextField;this.label5=new awt2swing.Label;this.bScroller=new awt2swing.Scrollbar;this.bText=
2502 new awt2swing.TextField;this.target=new awt2swing.Panel});d(c$,"loadDefaultColours",function(){return null});m(c$,function(a,b){t(this,jalview.appletgui.UserDefinedColours,[]);this.ap=a;this.seqGroup=b;this.oldColourScheme=null!=this.seqGroup?this.seqGroup.cs:a.av.getGlobalColourScheme();this.init()},"jalview.appletgui.AlignmentPanel,jalview.datamodel.SequenceGroup");m(c$,function(a){t(this,jalview.appletgui.UserDefinedColours,[]);this.jmol=a;this.init()},"jalview.appletgui.AppletJmol");m(c$,function(a,
2503 b){t(this,jalview.appletgui.UserDefinedColours,[]);this.caller=a;this.originalColour=a.colourPanel.getBackground();this.originalLabel="Feature Colour";this.setForDialog("Select Feature Colour",b);this.setTargetColour(a.colourPanel.getBackground());this.dialog.setVisible(!0)},"jalview.appletgui.FeatureRenderer,awt2swing.Frame");m(c$,function(a,b,c){this.construct(a,b,c,"Select Colour")},"java.awt.Component,java.awt.Color,awt2swing.Frame");m(c$,function(a,b,c,d){t(this,jalview.appletgui.UserDefinedColours,
2504 []);this.caller=a;this.originalColour=b;this.originalLabel=d;this.setForDialog(d,c);this.setTargetColour(b);this.dialog.setVisible(!0)},"java.awt.Component,java.awt.Color,awt2swing.Frame,~S");m(c$,function(a,b,c){this.construct(a,b,c,c)},"~O,~S,java.awt.Color");m(c$,function(a,b,c){this.construct(a,b,c,c.getMaxColor())},"jalview.appletgui.FeatureSettings,~S,jalview.schemes.GraduatedColor");m(c$,function(a,b,c,d){t(this,jalview.appletgui.UserDefinedColours,[]);this.caller=a;this.originalColour=c;this.originalLabel=
2505 b;this.init();this.remove(this.buttonPanel);this.setTargetColour(d);this.okcancelPanel.setBounds(new java.awt.Rectangle(0,113,400,35));this.frame.setTitle(jalview.util.MessageManager.getString("label.user_defined_colours")+" - "+b);this.frame.setSize(420,200)},"~O,~S,~O,java.awt.Color");d(c$,"setForDialog",function(a,b){this.init();this.frame.setVisible(!1);this.remove(this.buttonPanel);if(v(b,awt2swing.Frame))this.dialog=new java.awt.Dialog(b,a,!0);else throw Error(jalview.util.MessageManager.getString("label.error_unsupported_owwner_user_colour_scheme"));
2506 this.dialog.add(this);this.setSize(400,123);this.okcancelPanel.setBounds(new java.awt.Rectangle(0,123,400,35));var c=160+b.getInsets().top+this.getInsets().bottom;this.dialog.setBounds(b.getBounds().x+F((b.getSize().width-400)/2),b.getBounds().y+F((b.getSize().height-c)/2),400,c)},"~S,java.awt.Container");e(c$,"actionPerformed",function(a){a=a.getSource();a===this.okButton?this.okButton_actionPerformed():a===this.applyButton?this.applyButton_actionPerformed():a===this.cancelButton?this.cancelButton_actionPerformed():
2507 a===this.rText?this.rText_actionPerformed():a===this.gText?this.gText_actionPerformed():a===this.bText&&this.bText_actionPerformed()},"java.awt.event.ActionEvent");e(c$,"adjustmentValueChanged",function(a){a.getSource()===this.rScroller?this.rScroller_adjustmentValueChanged():a.getSource()===this.gScroller?this.gScroller_adjustmentValueChanged():a.getSource()===this.bScroller&&this.bScroller_adjustmentValueChanged()},"java.awt.event.AdjustmentEvent");d(c$,"init",function(){try{this.jbInit()}catch(a){if(y(a,
2508 Exception))a.printStackTrace();else throw a;}this.frame=new awt2swing.Frame;this.frame.add(this);jalview.bin.JalviewLite.addFrame(this.frame,jalview.util.MessageManager.getString("label.user_defined_colours"),420,345);null!=this.seqGroup&&this.frame.setTitle(this.frame.getTitle()+" ("+this.seqGroup.getName()+")");for(var b=0;20>b;b++)this.makeButton(jalview.schemes.ResidueProperties.aa2Triplet.get(jalview.schemes.ResidueProperties.aa[b])+"",jalview.schemes.ResidueProperties.aa[b]);this.makeButton("B",
2509 "B");this.makeButton("Z","Z");this.makeButton("X","X");this.makeButton("Gap","'.','-',' '");this.validate()});d(c$,"rText_actionPerformed",function(){try{var a=Integer.parseInt(this.rText.getText());this.rScroller.setValue(a);this.rScroller_adjustmentValueChanged()}catch(b){if(!y(b,NumberFormatException))throw b;}});d(c$,"gText_actionPerformed",function(){try{var a=Integer.parseInt(this.gText.getText());this.gScroller.setValue(a);this.gScroller_adjustmentValueChanged()}catch(b){if(!y(b,NumberFormatException))throw b;
2510 }});d(c$,"bText_actionPerformed",function(){try{var a=Integer.parseInt(this.bText.getText());this.bScroller.setValue(a);this.bScroller_adjustmentValueChanged()}catch(b){if(!y(b,NumberFormatException))throw b;}});d(c$,"rScroller_adjustmentValueChanged",function(){this.R=this.rScroller.getValue();this.rText.setText(this.R+"");this.colourChanged()});d(c$,"gScroller_adjustmentValueChanged",function(){this.G=this.gScroller.getValue();this.gText.setText(this.G+"");this.colourChanged()});d(c$,"bScroller_adjustmentValueChanged",
2511 function(){this.B=this.bScroller.getValue();this.bText.setText(this.B+"");this.colourChanged()});d(c$,"colourChanged",function(){var a=new java.awt.Color(this.R,this.G,this.B);this.target.setBackground(a);this.target.repaint();null!=this.selectedButton&&(this.selectedButton.setBackground(a),this.selectedButton.repaint())});d(c$,"setTargetColour",function(a){this.R=a.getRed();this.G=a.getGreen();this.B=a.getBlue();this.rScroller.setValue(this.R);this.gScroller.setValue(this.G);this.bScroller.setValue(this.B);
2512 this.rText.setText(this.R+"");this.gText.setText(this.G+"");this.bText.setText(this.B+"");this.colourChanged()},"java.awt.Color");d(c$,"colourButtonPressed",function(a){this.selectedButton=a.getSource();this.setTargetColour(this.selectedButton.getBackground())},"java.awt.event.MouseEvent");d(c$,"makeButton",function(a,b){var c=new awt2swing.Button,d=java.awt.Color.white;if(null!=this.oldColourScheme)try{d=this.oldColourScheme.findColourSeq(b.charAt(0),-1,null)}catch(e){if(!y(e,Exception))throw e;
2513 }c.setBackground(d);this.oldColours.addElement(d);c.setLabel(a);c.setForeground(d.darker().darker().darker());c.setFont(new java.awt.Font("Verdana",1,10));c.addMouseListener((H("jalview.appletgui.UserDefinedColours$1")?0:jalview.appletgui.UserDefinedColours.$UserDefinedColours$1$(),C(jalview.appletgui.UserDefinedColours$1,this,null)));this.buttonPanel.add(c,null)},"~S,~S");d(c$,"okButton_actionPerformed",function(){this.applyButton_actionPerformed();null!=this.dialog&&this.dialog.setVisible(!1);this.frame.setVisible(!1)});
2514 d(c$,"getColor",function(){return new java.awt.Color(this.R,this.G,this.B)});d(c$,"applyButton_actionPerformed",function(){if(null!=this.caller)v(this.caller,jalview.appletgui.FeatureSettings)?this.caller.setUserColour(this.originalLabel,this.getColor()):v(this.caller,jalview.appletgui.AnnotationColourChooser)?this.originalLabel.equals("Min Colour")?this.caller.minColour_actionPerformed(this.getColor()):this.caller.maxColour_actionPerformed(this.getColor()):v(this.caller,jalview.appletgui.FeatureRenderer)?
2515 this.caller.colourPanel.updateColor(this.getColor()):v(this.caller,jalview.appletgui.FeatureColourChooser)&&(-1<this.originalLabel.indexOf("inimum")?this.caller.minColour_actionPerformed(this.getColor()):this.caller.maxColour_actionPerformed(this.getColor()));else{for(var a=Array(24),b=0;24>b;b++){var c=this.buttonPanel.getComponent(b);a[b]=c.getBackground()}a=new jalview.schemes.UserColourScheme(a);null!=this.ap&&a.setThreshold(0,this.ap.av.isIgnoreGapsConsensus());null!=this.ap?(null!=this.seqGroup?
2516 this.seqGroup.cs=a:this.ap.av.setGlobalColourScheme(a),this.ap.seqPanel.seqCanvas.img=null,this.ap.paintAlignment(!0)):null!=this.jmol&&this.jmol.setJalviewColourScheme(a)}});d(c$,"cancelButton_actionPerformed",function(){if(null!=this.caller)v(this.caller,jalview.appletgui.FeatureSettings)?this.caller.setUserColour(this.originalLabel,this.originalColour):v(this.caller,jalview.appletgui.AnnotationColourChooser)?this.originalLabel.equals("Min Colour")?this.caller.minColour_actionPerformed(this.originalColour):
2517 this.caller.maxColour_actionPerformed(this.originalColour):v(this.caller,jalview.appletgui.FeatureRenderer)?this.caller.colourPanel.updateColor(this.originalColour):v(this.caller,jalview.appletgui.FeatureColourChooser)&&(-1<this.originalLabel.indexOf("inimum")?this.caller.minColour_actionPerformed(this.originalColour):this.caller.maxColour_actionPerformed(this.originalColour)),null!=this.dialog&&this.dialog.setVisible(!1);else{for(var a=Array(24),b=0;24>b;b++)a[b]=this.oldColours.elementAt(b),this.buttonPanel.getComponent(b).setBackground(a[b]);
2518 a=new jalview.schemes.UserColourScheme(a);null!=this.ap?(null!=this.seqGroup?this.seqGroup.cs=a:this.ap.av.setGlobalColourScheme(a),this.ap.paintAlignment(!0)):null!=this.jmol&&this.jmol.setJalviewColourScheme(a)}this.frame.setVisible(!1)});d(c$,"jbInit",function(){this.setLayout(null);this.buttonPanel.setLayout(this.gridLayout);this.gridLayout.setColumns(6);this.gridLayout.setRows(4);this.okButton.setFont(new java.awt.Font("Verdana",0,11));this.okButton.setLabel(jalview.util.MessageManager.getString("action.ok"));
2519 this.okButton.addActionListener(this);this.applyButton.setFont(new java.awt.Font("Verdana",0,11));this.applyButton.setLabel(jalview.util.MessageManager.getString("action.apply"));this.applyButton.addActionListener(this);this.cancelButton.setFont(new java.awt.Font("Verdana",0,11));this.cancelButton.setLabel(jalview.util.MessageManager.getString("action.cancel"));this.cancelButton.addActionListener(this);this.setBackground(new java.awt.Color(212,208,223));this.okcancelPanel.setBounds(new java.awt.Rectangle(0,
2520 265,400,35));this.buttonPanel.setBounds(new java.awt.Rectangle(0,123,400,142));this.rScroller.setMaximum(256);this.rScroller.setMinimum(0);this.rScroller.setOrientation(0);this.rScroller.setUnitIncrement(1);this.rScroller.setVisibleAmount(1);this.rScroller.setBounds(new java.awt.Rectangle(36,27,119,19));this.rScroller.addAdjustmentListener(this);this.label1.setAlignment(4);this.label1.setText("R");this.label1.setBounds(new java.awt.Rectangle(19,30,16,15));this.rText.setFont(new java.awt.Font("Dialog",
2521 0,10));this.rText.setText("0        ");this.rText.setBounds(new java.awt.Rectangle(156,27,53,19));this.rText.addActionListener(this);this.rText.addFocusListener(this);this.label4.setAlignment(4);this.label4.setText("G");this.label4.setBounds(new java.awt.Rectangle(15,56,20,15));this.gScroller.setMaximum(256);this.gScroller.setMinimum(0);this.gScroller.setOrientation(0);this.gScroller.setUnitIncrement(1);this.gScroller.setVisibleAmount(1);this.gScroller.setBounds(new java.awt.Rectangle(35,52,120,20));
2522 this.gScroller.addAdjustmentListener(this);this.gText.setFont(new java.awt.Font("Dialog",0,10));this.gText.setText("0        ");this.gText.setBounds(new java.awt.Rectangle(156,52,53,20));this.gText.addActionListener(this);this.gText.addFocusListener(this);this.label5.setAlignment(4);this.label5.setText("B");this.label5.setBounds(new java.awt.Rectangle(14,82,20,15));this.bScroller.setMaximum(256);this.bScroller.setMinimum(0);this.bScroller.setOrientation(0);this.bScroller.setUnitIncrement(1);this.bScroller.setVisibleAmount(1);
2523 this.bScroller.setBounds(new java.awt.Rectangle(35,78,120,20));this.bScroller.addAdjustmentListener(this);this.bText.setFont(new java.awt.Font("Dialog",0,10));this.bText.setText("0        ");this.bText.setBounds(new java.awt.Rectangle(157,78,52,20));this.bText.addActionListener(this);this.bText.addFocusListener(this);this.target.setBackground(java.awt.Color.black);this.target.setBounds(new java.awt.Rectangle(229,26,134,79));this.add(this.okcancelPanel,null);this.okcancelPanel.add(this.okButton,null);
2524 this.okcancelPanel.add(this.applyButton,null);this.okcancelPanel.add(this.cancelButton,null);this.add(this.rText);this.add(this.gText);this.add(this.bText);this.add(this.buttonPanel,null);this.add(this.target,null);this.add(this.gScroller);this.add(this.rScroller);this.add(this.bScroller);this.add(this.label5);this.add(this.label4);this.add(this.label1)});e(c$,"focusGained",function(){},"java.awt.event.FocusEvent");e(c$,"focusLost",function(a){a=a.getComponent();a===this.rText?this.rText_actionPerformed():
2525 a===this.gText?this.gText_actionPerformed():a===this.bText&&this.bText_actionPerformed()},"java.awt.event.FocusEvent");c$.$UserDefinedColours$1$=function(){A(self.c$);c$=L(jalview.appletgui,"UserDefinedColours$1",java.awt.event.MouseAdapter);e(c$,"mousePressed",function(a){this.b$["jalview.appletgui.UserDefinedColours"].colourButtonPressed(a)},"java.awt.event.MouseEvent");c$=z()}});p("jalview.appletgui");q("awt2swing.Panel java.awt.event.ActionListener $.AdjustmentListener $.ItemListener $.MouseListener awt2swing.Button $.Checkbox $.Choice $.Scrollbar $.TextField java.awt.BorderLayout $.FlowLayout".split(" "),
2526 "jalview.appletgui.AnnotationColourChooser","awt2swing.Frame jalview.appletgui.UserDefinedColours jalview.bin.JalviewLite jalview.datamodel.GraphLine jalview.schemes.AnnotationColourGradient $.ColourSchemeI jalview.util.MessageManager java.awt.Color $.Dimension $.Font java.lang.Error $.Float java.util.Hashtable $.Vector".split(" "),function(){c$=s(function(){this.currentAnnotation=this.oldgroupColours=this.oldcs=this.ap=this.av=this.frame=null;this.adjusting=!1;this.thresholdIsMin=this.borderLayout1=
2527 this.currentColours=this.thresholdValue=this.slider=this.jPanel3=this.flowLayout1=this.threshold=this.jPanel2=this.jPanel1=this.defColours=this.cancel=this.ok=this.maxColour=this.minColour=this.annotations=null;r(this,arguments)},jalview.appletgui,"AnnotationColourChooser",awt2swing.Panel,[java.awt.event.ActionListener,java.awt.event.AdjustmentListener,java.awt.event.ItemListener,java.awt.event.MouseListener]);J(c$,function(){this.annotations=new awt2swing.Choice;this.minColour=new awt2swing.Button;
2528 this.maxColour=new awt2swing.Button;this.ok=new awt2swing.Button;this.cancel=new awt2swing.Button;this.defColours=new awt2swing.Button;this.jPanel1=new awt2swing.Panel;this.jPanel2=new awt2swing.Panel;this.threshold=new awt2swing.Choice;this.flowLayout1=new java.awt.FlowLayout;this.jPanel3=new awt2swing.Panel;this.slider=new awt2swing.Scrollbar(0);this.thresholdValue=new awt2swing.TextField(20);this.currentColours=new awt2swing.Checkbox;this.borderLayout1=new java.awt.BorderLayout;this.thresholdIsMin=
2529 new awt2swing.Checkbox});m(c$,function(a,b){t(this,jalview.appletgui.AnnotationColourChooser,[]);try{this.jbInit()}catch(c){if(!y(c,Exception))throw c;}this.oldcs=a.getGlobalColourScheme();if(null!=a.getAlignment().getGroups()){this.oldgroupColours=new java.util.Hashtable;for(var d,e=b.av.getAlignment().getGroups().iterator();e.hasNext()&&((d=e.next())||1);)null!=d.cs?this.oldgroupColours.put(d,d.cs):this.oldgroupColours.put(d,"null")}this.av=a;this.ap=b;this.slider.addAdjustmentListener(this);this.slider.addMouseListener(this);
2530 if(null!=a.getAlignment().getAlignmentAnnotation()){this.setDefaultMinMax();this.adjusting=!0;v(this.oldcs,jalview.schemes.AnnotationColourGradient)&&(d=this.oldcs,this.currentColours.setState(d.isPredefinedColours()||null!=d.getBaseColour()),!d.isPredefinedColours()&&null==d.getBaseColour()&&(this.minColour.setBackground(d.getMinColour()),this.maxColour.setBackground(d.getMaxColour())));d=new java.util.Vector;for(var e=1,k=0;k<a.getAlignment().getAlignmentAnnotation().length;k++){var g=a.getAlignment().getAlignmentAnnotation()[k].label;
2531 d.contains(g)?d.addElement(g+"_"+e++):d.addElement(g)}for(k=0;k<d.size();k++)this.annotations.addItem(d.elementAt(k).toString());this.threshold.addItem(jalview.util.MessageManager.getString("label.threshold_feature_no_thereshold"));this.threshold.addItem(jalview.util.MessageManager.getString("label.threshold_feature_above_thereshold"));this.threshold.addItem(jalview.util.MessageManager.getString("label.threshold_feature_below_thereshold"));if(v(this.oldcs,jalview.schemes.AnnotationColourGradient)){d=
2532 this.oldcs;this.annotations.select(d.getAnnotation());switch(d.getAboveThreshold()){case -1:this.threshold.select(new Integer(0));break;case 1:this.threshold.select(new Integer(1));break;case 0:this.threshold.select(new Integer(1));break;default:throw Error(jalview.util.MessageManager.getString("error.implementation_error_dont_know_thereshold_annotationcolourgradient"));}this.thresholdIsMin.setState(d.thresholdIsMinMax);this.thresholdValue.setText(""+d.getAnnotationThreshold())}this.adjusting=!1;
2533 this.changeColour();this.frame=new awt2swing.Frame;this.frame.add(this);jalview.bin.JalviewLite.addFrame(this.frame,jalview.util.MessageManager.getString("label.colour_by_annotation"),560,175);this.validate()}},"jalview.appletgui.AlignViewport,jalview.appletgui.AlignmentPanel");d(c$,"setDefaultMinMax",function(){this.minColour.setBackground(this.av.applet.getDefaultColourParameter("ANNOTATIONCOLOUR_MIN",java.awt.Color.orange));this.maxColour.setBackground(this.av.applet.getDefaultColourParameter("ANNOTATIONCOLOUR_MAX",
2534 java.awt.Color.red))});m(c$,function(){t(this,jalview.appletgui.AnnotationColourChooser,[]);try{this.jbInit()}catch(a){if(y(a,Exception))a.printStackTrace();else throw a;}});d(c$,"jbInit",function(){this.minColour.setFont(new java.awt.Font("Verdana",0,11));this.minColour.setLabel(jalview.util.MessageManager.getString("label.min_colour"));this.minColour.addActionListener(this);this.maxColour.setFont(new java.awt.Font("Verdana",0,11));this.maxColour.setLabel(jalview.util.MessageManager.getString("label.max_colour"));
2535 this.maxColour.addActionListener(this);this.thresholdIsMin.addItemListener(this);this.ok.setLabel(jalview.util.MessageManager.getString("action.ok"));this.ok.addActionListener(this);this.cancel.setLabel(jalview.util.MessageManager.getString("action.cancel"));this.cancel.addActionListener(this);this.defColours.setLabel(jalview.util.MessageManager.getString("action.set_defaults"));this.defColours.addActionListener(this);this.annotations.addItemListener(this);this.thresholdValue.addActionListener(this);
2536 this.slider.setBackground(java.awt.Color.white);this.slider.setPreferredSize(new java.awt.Dimension(193,21));this.slider.setEnabled(!1);this.thresholdValue.setPreferredSize(new java.awt.Dimension(79,22));this.thresholdValue.setEnabled(!1);this.thresholdValue.setColumns(5);this.currentColours.setFont(new java.awt.Font("Verdana",0,11));this.currentColours.setLabel(jalview.util.MessageManager.getString("label.use_original_colours"));this.currentColours.addItemListener(this);this.thresholdIsMin.setBackground(java.awt.Color.white);
2537 this.thresholdIsMin.setLabel(jalview.util.MessageManager.getString("label.threshold_minmax"));this.setLayout(this.borderLayout1);this.jPanel1.setBackground(java.awt.Color.white);this.jPanel2.setLayout(new java.awt.FlowLayout);this.jPanel2.setBackground(java.awt.Color.white);this.threshold.addItemListener(this);this.jPanel3.setLayout(new java.awt.FlowLayout);this.jPanel3.setBackground(java.awt.Color.white);var a=new awt2swing.Panel;a.setLayout(new java.awt.BorderLayout);a.setBackground(java.awt.Color.white);
2538 this.jPanel1.add(this.ok);this.jPanel1.add(this.cancel);this.jPanel2.add(this.annotations);this.jPanel2.add(this.currentColours);this.jPanel2.add(this.minColour);this.jPanel2.add(this.maxColour);a.add(this.thresholdIsMin,"West");a.add(this.slider,"Center");a.add(this.thresholdValue,"East");var b=new awt2swing.Panel;b.setLayout(new java.awt.BorderLayout);b.setBackground(java.awt.Color.white);b.add(this.jPanel2,"North");b.add(this.threshold,"West");this.jPanel3.add(this.defColours);b.add(this.jPanel3,
2539 "East");b.add(a,"South");this.add(b,"Center");this.add(this.jPanel1,"South")});e(c$,"actionPerformed",function(a){if(a.getSource()===this.thresholdValue)try{var b=(new Float(this.thresholdValue.getText())).floatValue();this.slider.setValue(I(1E3*b));this.adjustmentValueChanged(null)}catch(c){if(!y(c,NumberFormatException))throw c;}else a.getSource()===this.minColour?this.minColour_actionPerformed(null):a.getSource()===this.maxColour?this.maxColour_actionPerformed(null):a.getSource()===this.defColours?
2540 this.defColour_actionPerformed():a.getSource()===this.ok?(this.changeColour(),this.frame.setVisible(!1)):a.getSource()===this.cancel?(this.reset(),this.ap.paintAlignment(!0),this.frame.setVisible(!1)):this.changeColour()},"java.awt.event.ActionEvent");e(c$,"itemStateChanged",function(a){a.getSource()===this.currentColours&&(this.currentColours.getState()&&this.reset(),this.maxColour.setEnabled(!this.currentColours.getState()),this.minColour.setEnabled(!this.currentColours.getState()));this.changeColour()},
2541 "java.awt.event.ItemEvent");e(c$,"adjustmentValueChanged",function(){this.adjusting||(this.thresholdValue.setText(this.slider.getValue()/1E3+""),this.currentColours.getState()&&!v(this.av.getGlobalColourScheme(),jalview.schemes.AnnotationColourGradient)&&this.changeColour(),this.currentAnnotation.threshold.value=this.slider.getValue()/1E3,this.ap.paintAlignment(!1))},"java.awt.event.AdjustmentEvent");d(c$,"minColour_actionPerformed",function(a){null!=a?(this.minColour.setBackground(a),this.minColour.repaint(),
2542 this.changeColour()):new jalview.appletgui.UserDefinedColours(this,"Min Colour",this.minColour.getBackground())},"java.awt.Color");d(c$,"maxColour_actionPerformed",function(a){null!=a?(this.maxColour.setBackground(a),this.maxColour.repaint(),this.changeColour()):new jalview.appletgui.UserDefinedColours(this,"Max Colour",this.maxColour.getBackground())},"java.awt.Color");d(c$,"defColour_actionPerformed",function(){this.setDefaultMinMax();this.minColour.repaint();this.maxColour.repaint();this.changeColour()});
2543 d(c$,"changeColour",function(){if(!this.adjusting){this.currentAnnotation=this.av.getAlignment().getAlignmentAnnotation()[this.annotations.getSelectedIndex()];var a=-1;1==this.threshold.getSelectedIndex()?a=1:2==this.threshold.getSelectedIndex()&&(a=0);this.slider.setEnabled(!0);this.thresholdValue.setEnabled(!0);this.thresholdIsMin.setEnabled(!0);-1==a?(this.slider.setEnabled(!1),this.thresholdValue.setEnabled(!1),this.thresholdIsMin.setEnabled(!1),this.thresholdValue.setText("")):-1!=a&&null==this.currentAnnotation.threshold&&
2544 this.currentAnnotation.setThreshold(new jalview.datamodel.GraphLine((this.currentAnnotation.graphMax-this.currentAnnotation.graphMin)/2,"Threshold",java.awt.Color.black));-1!=a&&(this.adjusting=!0,this.slider.setMinimum(I(1E3*this.currentAnnotation.graphMin)),this.slider.setMaximum(I(1E3*this.currentAnnotation.graphMax)),this.slider.setValue(I(1E3*this.currentAnnotation.threshold.value)),this.thresholdValue.setText(this.currentAnnotation.threshold.value+""),this.slider.setEnabled(!0),this.thresholdValue.setEnabled(!0),
2545 this.adjusting=!1);var b=null,b=this.currentColours.getState()?new jalview.schemes.AnnotationColourGradient(this.currentAnnotation,this.av.getGlobalColourScheme(),a):new jalview.schemes.AnnotationColourGradient(this.currentAnnotation,this.minColour.getBackground(),this.maxColour.getBackground(),a);0==this.currentAnnotation.graphMin&&0==this.currentAnnotation.graphMax&&b.setPredefinedColours(!0);b.thresholdIsMinMax=this.thresholdIsMin.getState();this.av.setGlobalColourScheme(b);if(null!=this.av.getAlignment().getGroups())for(var c,
2546 b=this.ap.av.getAlignment().getGroups().iterator();b.hasNext()&&((c=b.next())||1);)null!=c.cs&&(c.cs=this.currentColours.getState()?new jalview.schemes.AnnotationColourGradient(this.currentAnnotation,c.cs,a):new jalview.schemes.AnnotationColourGradient(this.currentAnnotation,this.minColour.getBackground(),this.maxColour.getBackground(),a));this.ap.alignmentChanged();this.ap.paintAlignment(!0)}});d(c$,"reset",function(){this.av.setGlobalColourScheme(this.oldcs);if(null!=this.av.getAlignment().getGroups())for(var a,
2547 b=this.ap.av.getAlignment().getGroups().iterator();b.hasNext()&&((a=b.next())||1);){var c=this.oldgroupColours.get(a);a.cs=v(c,jalview.schemes.ColourSchemeI)?c:null}this.ap.paintAlignment(!0)});e(c$,"mouseClicked",function(){},"java.awt.event.MouseEvent");e(c$,"mousePressed",function(){},"java.awt.event.MouseEvent");e(c$,"mouseReleased",function(){this.ap.paintAlignment(!0)},"java.awt.event.MouseEvent");e(c$,"mouseEntered",function(){},"java.awt.event.MouseEvent");e(c$,"mouseExited",function(){},
2548 "java.awt.event.MouseEvent")});p("awt2swing");q(["javax.swing.JComboBox"],"awt2swing.Choice",null,function(){c$=B(awt2swing,"Choice",javax.swing.JComboBox);d(c$,"select",function(a){this.setSelectedItem(a)},"~O")});p("javax.swing");q("java.awt.ItemSelectable java.awt.event.ActionListener javax.swing.ActionPropertyChangeListener $.JComponent javax.swing.event.ListDataListener javax.swing.JPopupMenu".split(" "),"javax.swing.JComboBox","java.lang.IllegalArgumentException $.RuntimeException java.awt.Component $.EventQueue java.awt.event.ActionEvent $.InputEvent $.ItemEvent $.ItemListener javax.swing.AbstractAction $.DefaultComboBoxModel $.MutableComboBoxModel $.SwingUtilities $.UIManager javax.swing.event.AncestorListener $.PopupMenuEvent $.PopupMenuListener".split(" "),
2549 function(){c$=s(function(){this.editor=this.renderer=this.dataModel=null;this.maximumRowCount=8;this.$isEditable=!1;this.keySelectionManager=null;this.actionCommand="comboBoxChanged";this.lightWeightPopupEnabled=!1;this.prototypeDisplayValue=this.selectedItemReminder=null;this.selectingItem=this.firingActionEvent=!1;this.actionPropertyChangeListener=this.$action=null;H("javax.swing.JComboBox.DefaultKeySelectionManager")||javax.swing.JComboBox.$JComboBox$DefaultKeySelectionManager$();r(this,arguments)},
2550 javax.swing,"JComboBox",javax.swing.JComponent,[java.awt.ItemSelectable,javax.swing.event.ListDataListener,java.awt.event.ActionListener]);J(c$,function(){this.lightWeightPopupEnabled=javax.swing.JPopupMenu.getDefaultLightWeightPopupEnabled()});m(c$,function(a){t(this,javax.swing.JComboBox);this.setModel(a);this.init()},"javax.swing.ComboBoxModel");m(c$,function(a){t(this,javax.swing.JComboBox);this.setModel(new javax.swing.DefaultComboBoxModel(a));this.init()},"~A");m(c$,function(a){t(this,javax.swing.JComboBox);
2551 this.setModel(new javax.swing.DefaultComboBoxModel(a));this.init()},"java.util.Vector");m(c$,function(){t(this,javax.swing.JComboBox);this.setModel(new javax.swing.DefaultComboBoxModel);this.init()});d(c$,"init",function(){this.installAncestorListener();this.setUIProperty("opaque",new Boolean(!0));this.updateUI()});d(c$,"installAncestorListener",function(){this.addAncestorListener((H("javax.swing.JComboBox$1")?0:javax.swing.JComboBox.$JComboBox$1$(),C(javax.swing.JComboBox$1,this,null)))});e(c$,"updateUI",
2552 function(){this.setUI(javax.swing.UIManager.getUI(this));var a=this.getRenderer();v(a,java.awt.Component)&&javax.swing.SwingUtilities.updateComponentTreeUI(a)});e(c$,"getUIClassID",function(){return"ComboBoxUI"});e(c$,"getUI",function(){return this.ui});d(c$,"setModel",function(a){var b=this.dataModel;null!=b&&b.removeListDataListener(this);this.dataModel=a;this.dataModel.addListDataListener(this);this.selectedItemReminder=this.dataModel.getSelectedItem();this.firePropertyChangeObject("model",b,this.dataModel)},
2553 "javax.swing.ComboBoxModel");d(c$,"getModel",function(){return this.dataModel});d(c$,"setLightWeightPopupEnabled",function(a){var b=this.lightWeightPopupEnabled;this.lightWeightPopupEnabled=a;this.firePropertyChangeBool("lightWeightPopupEnabled",b,this.lightWeightPopupEnabled)},"~B");d(c$,"isLightWeightPopupEnabled",function(){return this.lightWeightPopupEnabled});d(c$,"setEditable",function(a){var b=this.$isEditable;this.$isEditable=a;this.firePropertyChangeBool("editable",b,this.$isEditable)},"~B");
2554 d(c$,"isEditable",function(){return this.$isEditable});d(c$,"setMaximumRowCount",function(a){var b=this.maximumRowCount;this.maximumRowCount=a;this.firePropertyChangeInt("maximumRowCount",b,this.maximumRowCount)},"~N");d(c$,"getMaximumRowCount",function(){return this.maximumRowCount});d(c$,"setRenderer",function(a){var b=this.renderer;this.renderer=a;this.firePropertyChangeObject("renderer",b,this.renderer);this.invalidate()},"javax.swing.ListCellRenderer");d(c$,"getRenderer",function(){return this.renderer});
2555 d(c$,"setEditor",function(a){var b=this.editor;null!=this.editor&&this.editor.removeActionListener(this);this.editor=a;null!=this.editor&&this.editor.addActionListener(this);this.firePropertyChangeObject("editor",b,this.editor)},"javax.swing.ComboBoxEditor");d(c$,"getEditor",function(){return this.editor});d(c$,"setSelectedItem",function(a){var b=this.selectedItemReminder,c=a;if(null==b||!b.equals(a)){if(null!=a&&!this.isEditable()){for(var b=!1,d=0;d<this.dataModel.getSize();d++){var e=this.dataModel.getElementAt(d);
2556 if(a.equals(e)){b=!0;c=e;break}}if(!b)return}this.selectingItem=!0;this.dataModel.setSelectedItem(c);this.selectingItem=!1;this.selectedItemReminder!==this.dataModel.getSelectedItem()&&this.selectedItemChanged()}this.fireActionEvent()},"~O");d(c$,"getSelectedItem",function(){return this.dataModel.getSelectedItem()});d(c$,"setSelectedIndex",function(a){var b=this.dataModel.getSize();if(-1==a)this.setSelectedItem(null);else{if(-1>a||a>=b)throw new IllegalArgumentException("setSelectedIndex: "+a+" out of bounds");
2557 this.setSelectedItem(this.dataModel.getElementAt(a))}},"~N");d(c$,"getSelectedIndex",function(){var a=this.dataModel.getSelectedItem(),b,c,d;b=0;for(c=this.dataModel.getSize();b<c;b++)if(d=this.dataModel.getElementAt(b),null!=d&&d.equals(a))return b;return-1});d(c$,"getPrototypeDisplayValue",function(){return this.prototypeDisplayValue});d(c$,"setPrototypeDisplayValue",function(a){var b=this.prototypeDisplayValue;this.prototypeDisplayValue=a;this.firePropertyChangeObject("prototypeDisplayValue",b,
2558 a)},"~O");d(c$,"addItem",function(a){this.checkMutableComboBoxModel();this.dataModel.addElement(a)},"~O");d(c$,"insertItemAt",function(a,b){this.checkMutableComboBoxModel();this.dataModel.insertElementAt(a,b)},"~O,~N");d(c$,"removeItem",function(a){this.checkMutableComboBoxModel();this.dataModel.removeElement(a)},"~O");d(c$,"removeItemAt",function(a){this.checkMutableComboBoxModel();this.dataModel.removeElementAt(a)},"~N");d(c$,"removeAllItems",function(){this.checkMutableComboBoxModel();var a=this.dataModel,
2559 b=a.getSize();if(v(a,javax.swing.DefaultComboBoxModel))a.removeAllElements();else for(var c=0;c<b;++c){var d=a.getElementAt(0);a.removeElement(d)}this.selectedItemReminder=null;this.isEditable()&&this.editor.setItem(null)});d(c$,"checkMutableComboBoxModel",function(){if(!v(this.dataModel,javax.swing.MutableComboBoxModel))throw new RuntimeException("Cannot use this method with a non-Mutable data model.");});d(c$,"showPopup",function(){this.setPopupVisible(!0)});d(c$,"hidePopup",function(){this.setPopupVisible(!1)});
2560 d(c$,"setPopupVisible",function(a){this.getUI().setPopupVisible(this,a)},"~B");d(c$,"isPopupVisible",function(){return this.getUI().isPopupVisible(this)});e(c$,"addItemListener",function(a){this.listenerList.add(java.awt.event.ItemListener,a)},"java.awt.event.ItemListener");e(c$,"removeItemListener",function(a){this.listenerList.remove(java.awt.event.ItemListener,a)},"java.awt.event.ItemListener");d(c$,"getItemListeners",function(){return this.listenerList.getListeners(java.awt.event.ItemListener)});
2561 d(c$,"addActionListener",function(a){this.listenerList.add(java.awt.event.ActionListener,a)},"java.awt.event.ActionListener");d(c$,"removeActionListener",function(a){null!=a&&this.getAction()===a?this.setAction(null):this.listenerList.remove(java.awt.event.ActionListener,a)},"java.awt.event.ActionListener");d(c$,"getActionListeners",function(){return this.listenerList.getListeners(java.awt.event.ActionListener)});d(c$,"addPopupMenuListener",function(a){this.listenerList.add(javax.swing.event.PopupMenuListener,
2562 a)},"javax.swing.event.PopupMenuListener");d(c$,"removePopupMenuListener",function(a){this.listenerList.remove(javax.swing.event.PopupMenuListener,a)},"javax.swing.event.PopupMenuListener");d(c$,"getPopupMenuListeners",function(){return this.listenerList.getListeners(javax.swing.event.PopupMenuListener)});d(c$,"firePopupMenuWillBecomeVisible",function(){for(var a=this.listenerList.getListenerList(),b=null,c=a.length-2;0<=c;c-=2)a[c]===javax.swing.event.PopupMenuListener&&(null==b&&(b=new javax.swing.event.PopupMenuEvent(this)),
2563 a[c+1].popupMenuWillBecomeVisible(b))});d(c$,"firePopupMenuWillBecomeInvisible",function(){for(var a=this.listenerList.getListenerList(),b=null,c=a.length-2;0<=c;c-=2)a[c]===javax.swing.event.PopupMenuListener&&(null==b&&(b=new javax.swing.event.PopupMenuEvent(this)),a[c+1].popupMenuWillBecomeInvisible(b))});d(c$,"firePopupMenuCanceled",function(){for(var a=this.listenerList.getListenerList(),b=null,c=a.length-2;0<=c;c-=2)a[c]===javax.swing.event.PopupMenuListener&&(null==b&&(b=new javax.swing.event.PopupMenuEvent(this)),
2564 a[c+1].popupMenuCanceled(b))});d(c$,"setActionCommand",function(a){this.actionCommand=a},"~S");d(c$,"getActionCommand",function(){return this.actionCommand});d(c$,"setAction",function(a){var b=this.getAction();if(null==this.$action||!this.$action.equals(a))this.$action=a,null!=b&&(this.removeActionListener(b),b.removePropertyChangeListener(this.actionPropertyChangeListener),this.actionPropertyChangeListener=null),this.configurePropertiesFromAction(this.$action),null!=this.$action&&(this.isListener(java.awt.event.ActionListener,
2565 this.$action)||this.addActionListener(this.$action),this.actionPropertyChangeListener=this.createActionPropertyChangeListener(this.$action),this.$action.addPropertyChangeListener(this.actionPropertyChangeListener)),this.firePropertyChangeObject("action",b,this.$action)},"javax.swing.Action");d(c$,"isListener",function(a,b){for(var c=!1,d=this.listenerList.getListenerList(),e=d.length-2;0<=e;e-=2)d[e]===a&&d[e+1]===b&&(c=!0);return c},"Class,java.awt.event.ActionListener");d(c$,"getAction",function(){return this.$action});
2566 d(c$,"configurePropertiesFromAction",function(a){javax.swing.AbstractAction.setEnabledFromAction(this,a);javax.swing.AbstractAction.setToolTipTextFromAction(this,a);this.setActionCommandFromAction(a)},"javax.swing.Action");d(c$,"createActionPropertyChangeListener",function(a){return new javax.swing.JComboBox.ComboBoxActionPropertyChangeListener(this,a)},"javax.swing.Action");d(c$,"actionPropertyChanged",function(a,b){"ActionCommandKey"===b?this.setActionCommandFromAction(a):"enabled"===b?javax.swing.AbstractAction.setEnabledFromAction(this,
2567 a):"ShortDescription"===b&&javax.swing.AbstractAction.setToolTipTextFromAction(this,a)},"javax.swing.Action,~S");d(c$,"setActionCommandFromAction",function(a){this.setActionCommand(null!=a?a.getValue("ActionCommandKey"):null)},"javax.swing.Action");d(c$,"fireItemStateChanged",function(a){for(var b=this.listenerList.getListenerList(),c=b.length-2;0<=c;c-=2)b[c]===java.awt.event.ItemListener&&b[c+1].itemStateChanged(a)},"java.awt.event.ItemEvent");d(c$,"fireActionEvent",function(){if(!this.firingActionEvent){this.firingActionEvent=
2568 !0;var a=null,b=this.listenerList.getListenerList(),c=java.awt.EventQueue.getMostRecentEventTime(),d=0,e=java.awt.EventQueue.getCurrentEvent();v(e,java.awt.event.InputEvent)?d=e.getModifiers():v(e,java.awt.event.ActionEvent)&&(d=e.getModifiers());for(e=b.length-2;0<=e;e-=2)b[e]===java.awt.event.ActionListener&&(null==a&&(a=new java.awt.event.ActionEvent(this,1001,this.getActionCommand(),c,d)),b[e+1].actionPerformed(a));this.firingActionEvent=!1}});d(c$,"selectedItemChanged",function(){null!=this.selectedItemReminder&&
2569 this.fireItemStateChanged(new java.awt.event.ItemEvent(this,701,this.selectedItemReminder,2));this.selectedItemReminder=this.dataModel.getSelectedItem();null!=this.selectedItemReminder&&this.fireItemStateChanged(new java.awt.event.ItemEvent(this,701,this.selectedItemReminder,1))});e(c$,"getSelectedObjects",function(){var a=this.getSelectedItem();if(null==a)return[];var b=Array(1);b[0]=a;return b});d(c$,"actionPerformed",function(){var a=this.getEditor().getItem();this.setPopupVisible(!1);this.getModel().setSelectedItem(a);
2570 a=this.getActionCommand();this.setActionCommand("comboBoxEdited");this.fireActionEvent();this.setActionCommand(a)},"java.awt.event.ActionEvent");e(c$,"contentsChanged",function(){var a=this.selectedItemReminder,b=this.dataModel.getSelectedItem();if(null==a||!a.equals(b))this.selectedItemChanged(),this.selectingItem||this.fireActionEvent()},"javax.swing.event.ListDataEvent");e(c$,"intervalAdded",function(){this.selectedItemReminder!==this.dataModel.getSelectedItem()&&this.selectedItemChanged()},"javax.swing.event.ListDataEvent");
2571 e(c$,"intervalRemoved",function(a){this.contentsChanged(a)},"javax.swing.event.ListDataEvent");d(c$,"selectWithKeyChar",function(a){null==this.keySelectionManager&&(this.keySelectionManager=this.createDefaultKeySelectionManager());a=this.keySelectionManager.selectionForKey(a,this.getModel());return-1!=a?(this.setSelectedIndex(a),!0):!1},"~S");d(c$,"setEnabled",function(a){K(this,javax.swing.JComboBox,"setEnabled",[a]);this.firePropertyChangeBool("enabled",!this.isEnabled(),this.isEnabled())},"~B");
2572 d(c$,"configureEditor",function(a,b){a.setItem(b)},"javax.swing.ComboBoxEditor,~O");d(c$,"processKeyEvent",function(a){9==a.getKeyCode()&&this.hidePopup();K(this,javax.swing.JComboBox,"processKeyEvent",[a])},"java.awt.event.KeyEvent");d(c$,"setKeySelectionManager",function(a){this.keySelectionManager=a},"javax.swing.JComboBox.KeySelectionManager");d(c$,"getKeySelectionManager",function(){return this.keySelectionManager});d(c$,"getItemCount",function(){return this.dataModel.getSize()});d(c$,"getItemAt",
2573 function(a){return this.dataModel.getElementAt(a)},"~N");d(c$,"createDefaultKeySelectionManager",function(){return C(javax.swing.JComboBox.DefaultKeySelectionManager,this,null)});d(c$,"paramString",function(){var a=null!=this.selectedItemReminder?this.selectedItemReminder.toString():"",b=this.$isEditable?"true":"false",c=this.lightWeightPopupEnabled?"true":"false";return K(this,javax.swing.JComboBox,"paramString",[])+",isEditable="+b+",lightWeightPopupEnabled="+c+",maximumRowCount="+this.maximumRowCount+
2574 ",selectedItemReminder="+a});c$.$JComboBox$DefaultKeySelectionManager$=function(){A(self.c$);c$=s(function(){O(this,arguments);r(this,arguments)},javax.swing.JComboBox,"DefaultKeySelectionManager",null,javax.swing.JComboBox.KeySelectionManager);e(c$,"selectionForKey",function(a,b){var c,d,e=-1,k=b.getSelectedItem();if(null!=k){c=0;for(d=b.getSize();c<d;c++)if(k===b.getElementAt(c)){e=c;break}}a=(""+a).toLowerCase().charAt(0);c=++e;for(d=b.getSize();c<d;c++)if(k=b.getElementAt(c),null!=k&&null!=k.toString()&&
2575 (k=k.toString().toLowerCase(),0<k.length&&k.charAt(0)==a))return c;for(c=0;c<e;c++)if(k=b.getElementAt(c),null!=k&&null!=k.toString()&&(k=k.toString().toLowerCase(),0<k.length&&k.charAt(0)==a))return c;return-1},"~S,javax.swing.ComboBoxModel");c$=z()};c$.$JComboBox$1$=function(){A(self.c$);c$=L(javax.swing,"JComboBox$1",null,javax.swing.event.AncestorListener);e(c$,"ancestorAdded",function(){this.b$["javax.swing.JComboBox"].hidePopup()},"javax.swing.event.AncestorEvent");e(c$,"ancestorRemoved",function(){this.b$["javax.swing.JComboBox"].hidePopup()},
2576 "javax.swing.event.AncestorEvent");e(c$,"ancestorMoved",function(a){a.getSource()!==this.b$["javax.swing.JComboBox"]&&this.b$["javax.swing.JComboBox"].hidePopup()},"javax.swing.event.AncestorEvent");c$=z()};A(self.c$);c$=B(javax.swing.JComboBox,"ComboBoxActionPropertyChangeListener",javax.swing.ActionPropertyChangeListener);e(c$,"actionPropertyChanged",function(a,b,c){javax.swing.AbstractAction.shouldReconfigure(c)?a.configurePropertiesFromAction(b):a.actionPropertyChanged(b,c.getPropertyName())},
2577 "javax.swing.JComboBox,javax.swing.Action,java.beans.PropertyChangeEvent");c$=z();M(javax.swing.JComboBox,"KeySelectionManager");G(c$,"$uiClassID","ComboBoxUI")});p("javax.swing.event");q(["java.util.EventListener"],"javax.swing.event.ListDataListener",null,function(){M(javax.swing.event,"ListDataListener",java.util.EventListener)});p("javax.swing");q(["javax.swing.AbstractListModel","$.MutableComboBoxModel"],"javax.swing.DefaultComboBoxModel",["java.util.Vector"],function(){c$=s(function(){this.selectedObject=
2578 this.objects=null;r(this,arguments)},javax.swing,"DefaultComboBoxModel",javax.swing.AbstractListModel,javax.swing.MutableComboBoxModel);m(c$,function(){t(this,javax.swing.DefaultComboBoxModel,[]);this.objects=new java.util.Vector});m(c$,function(a){t(this,javax.swing.DefaultComboBoxModel,[]);this.objects=new java.util.Vector;this.objects.ensureCapacity(a.length);var b,c;b=0;for(c=a.length;b<c;b++)this.objects.addElement(a[b]);0<this.getSize()&&(this.selectedObject=this.getElementAt(0))},"~A");m(c$,
2579 function(a){t(this,javax.swing.DefaultComboBoxModel,[]);this.objects=a;0<this.getSize()&&(this.selectedObject=this.getElementAt(0))},"java.util.Vector");e(c$,"setSelectedItem",function(a){if(null!=this.selectedObject&&!this.selectedObject.equals(a)||null==this.selectedObject&&null!=a)this.selectedObject=a,this.fireContentsChanged(this,-1,-1)},"~O");e(c$,"getSelectedItem",function(){return this.selectedObject});e(c$,"getSize",function(){return this.objects.size()});e(c$,"getElementAt",function(a){return 0<=
2580 a&&a<this.objects.size()?this.objects.elementAt(a):null},"~N");d(c$,"getIndexOf",function(a){return this.objects.indexOf(a)},"~O");e(c$,"addElement",function(a){this.objects.addElement(a);this.fireIntervalAdded(this,this.objects.size()-1,this.objects.size()-1);1==this.objects.size()&&(null==this.selectedObject&&null!=a)&&this.setSelectedItem(a)},"~O");e(c$,"insertElementAt",function(a,b){this.objects.insertElementAt(a,b);this.fireIntervalAdded(this,b,b)},"~O,~N");e(c$,"removeElementAt",function(a){this.getElementAt(a)===
2581 this.selectedObject&&(0==a?this.setSelectedItem(1==this.getSize()?null:this.getElementAt(a+1)):this.setSelectedItem(this.getElementAt(a-1)));this.objects.removeElementAt(a);this.fireIntervalRemoved(this,a,a)},"~N");e(c$,"removeElement",function(a){a=this.objects.indexOf(a);-1!=a&&this.removeElementAt(a)},"~O");d(c$,"removeAllElements",function(){if(0<this.objects.size()){var a=this.objects.size()-1;this.objects.removeAllElements();this.selectedObject=null;this.fireIntervalRemoved(this,0,a)}else this.selectedObject=
2582 null})});p("javax.swing");q(["javax.swing.ListModel","javax.swing.event.EventListenerList"],"javax.swing.AbstractListModel",["javax.swing.event.ListDataEvent","$.ListDataListener"],function(){c$=s(function(){this.listenerList=null;r(this,arguments)},javax.swing,"AbstractListModel",null,javax.swing.ListModel);J(c$,function(){this.listenerList=new javax.swing.event.EventListenerList});e(c$,"addListDataListener",function(a){this.listenerList.add(javax.swing.event.ListDataListener,a)},"javax.swing.event.ListDataListener");
2583 e(c$,"removeListDataListener",function(a){this.listenerList.remove(javax.swing.event.ListDataListener,a)},"javax.swing.event.ListDataListener");d(c$,"getListDataListeners",function(){return this.listenerList.getListeners(javax.swing.event.ListDataListener)});d(c$,"fireContentsChanged",function(a,b,c){for(var d=this.listenerList.getListenerList(),e=null,k=d.length-2;0<=k;k-=2)d[k]===javax.swing.event.ListDataListener&&(null==e&&(e=new javax.swing.event.ListDataEvent(a,0,b,c)),d[k+1].contentsChanged(e))},
2584 "~O,~N,~N");d(c$,"fireIntervalAdded",function(a,b,c){for(var d=this.listenerList.getListenerList(),e=null,k=d.length-2;0<=k;k-=2)d[k]===javax.swing.event.ListDataListener&&(null==e&&(e=new javax.swing.event.ListDataEvent(a,1,b,c)),d[k+1].intervalAdded(e))},"~O,~N,~N");d(c$,"fireIntervalRemoved",function(a,b,c){for(var d=this.listenerList.getListenerList(),e=null,k=d.length-2;0<=k;k-=2)d[k]===javax.swing.event.ListDataListener&&(null==e&&(e=new javax.swing.event.ListDataEvent(a,2,b,c)),d[k+1].intervalRemoved(e))},
2585 "~O,~N,~N");d(c$,"getListeners",function(a){return this.listenerList.getListeners(a)},"Class")});p("javax.swing");M(javax.swing,"ListModel");p("javax.swing.event");q(["java.util.EventObject"],"javax.swing.event.ListDataEvent",null,function(){c$=s(function(){this.index1=this.index0=this.type=0;r(this,arguments)},javax.swing.event,"ListDataEvent",java.util.EventObject);d(c$,"getType",function(){return this.type});d(c$,"getIndex0",function(){return this.index0});d(c$,"getIndex1",function(){return this.index1});
2586 m(c$,function(a,b,c,d){t(this,javax.swing.event.ListDataEvent,[a]);this.type=b;this.index0=Math.min(c,d);this.index1=Math.max(c,d)},"~O,~N,~N,~N");e(c$,"toString",function(){return this.getClass().getName()+"[type="+this.type+",index0="+this.index0+",index1="+this.index1+"]"});G(c$,"CONTENTS_CHANGED",0,"INTERVAL_ADDED",1,"INTERVAL_REMOVED",2)});p("javax.swing");q(["javax.swing.ComboBoxModel"],"javax.swing.MutableComboBoxModel",null,function(){M(javax.swing,"MutableComboBoxModel",javax.swing.ComboBoxModel)});
2587 p("javax.swing");q(["javax.swing.ListModel"],"javax.swing.ComboBoxModel",null,function(){M(javax.swing,"ComboBoxModel",javax.swing.ListModel)});p("jalview.schemes");q(["jalview.schemes.FollowerColourScheme"],"jalview.schemes.AnnotationColourGradient","jalview.datamodel.AlignmentI $.GraphLine jalview.renderer.AnnotationRenderer jalview.schemes.ColourSchemeProperty jalview.util.Comparison java.awt.Color java.util.IdentityHashMap".split(" "),function(){c$=s(function(){this.annotation=null;this.aboveAnnotationThreshold=
2588 -1;this.thresholdIsMinMax=!1;this.annotationThreshold=null;this.bb=this.gg=this.rr=this.b1=this.g1=this.r1=0;this.noGradient=this.seqAssociated=this.predefinedColours=!1;this.seqannot=null;this.aamax=this.aamin=0;r(this,arguments)},jalview.schemes,"AnnotationColourGradient",jalview.schemes.FollowerColourScheme);e(c$,"applyTo",function(){var a=new jalview.schemes.AnnotationColourGradient(this.annotation,this.colourScheme,this.aboveAnnotationThreshold);a.thresholdIsMinMax=this.thresholdIsMinMax;a.annotationThreshold=
2589 null==this.annotationThreshold?null:new jalview.datamodel.GraphLine(this.annotationThreshold);a.r1=this.r1;a.g1=this.g1;a.b1=this.b1;a.rr=this.rr;a.gg=this.gg;a.bb=this.bb;a.predefinedColours=this.predefinedColours;a.seqAssociated=this.seqAssociated;a.noGradient=this.noGradient;return a},"jalview.datamodel.AnnotatedCollectionI,java.util.Map");m(c$,function(a,b,c){t(this,jalview.schemes.AnnotationColourGradient,[]);this.colourScheme=v(b,jalview.schemes.AnnotationColourGradient)?b.colourScheme:b;this.annotation=
2590 a;this.aboveAnnotationThreshold=c;-1!=c&&null!=a.threshold&&(this.annotationThreshold=a.threshold);this.b1=this.g1=this.r1=254;this.bb=this.gg=this.rr=0;this.noGradient=!0},"jalview.datamodel.AlignmentAnnotation,jalview.schemes.ColourSchemeI,~N");m(c$,function(a,b,c,d){t(this,jalview.schemes.AnnotationColourGradient,[]);this.annotation=a;this.aboveAnnotationThreshold=d;-1!=d&&null!=a.threshold&&(this.annotationThreshold=a.threshold);this.r1=b.getRed();this.g1=b.getGreen();this.b1=b.getBlue();this.rr=
2591 c.getRed()-this.r1;this.gg=c.getGreen()-this.g1;this.bb=c.getBlue()-this.b1;this.noGradient=!1;this.aamax=a.graphMax;this.aamin=a.graphMin;a.isRNA()&&jalview.schemes.ColourSchemeProperty.initRnaHelicesShading(1+I(this.aamax))},"jalview.datamodel.AlignmentAnnotation,java.awt.Color,java.awt.Color,~N");d(c$,"alignmentChanged",function(a,b){K(this,jalview.schemes.AnnotationColourGradient,"alignmentChanged",[a,b]);if(this.seqAssociated&&null!=this.annotation.getCalcId()){null!=this.seqannot?this.seqannot.clear():
2592 this.seqannot=new java.util.IdentityHashMap;for(var c=!0,d=!1,e,k=(v(a,jalview.datamodel.AlignmentI)?a:a.getContext()).findAnnotation(this.annotation.getCalcId()).iterator();k.hasNext()&&((e=k.next())||1);)if(null!=e.sequenceRef&&null!=e.label&&null!=this.annotation&&e.label.equals(this.annotation.label)){!d&&e.isRNA()&&(d=!0);this.seqannot.put(e.sequenceRef,e);if(c||e.graphMax>this.aamax)this.aamax=e.graphMax;if(c||e.graphMin<this.aamin)this.aamin=e.graphMin;c=!1}d&&jalview.schemes.ColourSchemeProperty.initRnaHelicesShading(1+
2593 I(this.aamax))}},"jalview.datamodel.AnnotatedCollectionI,java.util.Map");d(c$,"getAnnotation",function(){return this.annotation.label});d(c$,"getAboveThreshold",function(){return this.aboveAnnotationThreshold});d(c$,"getAnnotationThreshold",function(){return null==this.annotationThreshold?0:this.annotationThreshold.value});d(c$,"getMinColour",function(){return new java.awt.Color(I(this.r1),I(this.g1),I(this.b1))});d(c$,"getMaxColour",function(){return new java.awt.Color(I(this.r1+this.rr),I(this.g1+
2594 this.gg),I(this.b1+this.bb))});e(c$,"findColour",function(){return java.awt.Color.red},"~S");e(c$,"findColourSeq",function(a,b,c){var d=java.awt.Color.white,e=this.seqAssociated&&null!=this.seqannot?this.seqannot.get(c):this.annotation;if(null==e)return d;if((0==this.threshold||this.aboveThreshold(a,b))&&null!=e.annotations&&b<e.annotations.length&&null!=e.annotations[b]&&!jalview.util.Comparison.isGap(a)){var k=e.annotations[b];if(-1==this.aboveAnnotationThreshold||null!=this.annotationThreshold&&
2595 (1==this.aboveAnnotationThreshold?k.value>=this.annotationThreshold.value:k.value<=this.annotationThreshold.value))if(this.predefinedColours&&null!=k.colour&&!k.colour.equals(java.awt.Color.black))d=k.colour;else if(e.hasIcons&&0==e.graph)if(" "<k.secondaryStructure&&"."!=k.secondaryStructure&&"-"!=k.secondaryStructure)d=null!=this.colourScheme?this.colourScheme.findColourSeq(a,b,c):e.isRNA()?jalview.schemes.ColourSchemeProperty.rnaHelices[I(k.value)]:"H"==e.annotations[b].secondaryStructure?jalview.renderer.AnnotationRenderer.HELIX_COLOUR:
2596 "E"==e.annotations[b].secondaryStructure?jalview.renderer.AnnotationRenderer.SHEET_COLOUR:jalview.renderer.AnnotationRenderer.STEM_COLOUR;else return java.awt.Color.white;else this.noGradient?null!=this.colourScheme?d=this.colourScheme.findColourSeq(a,b,c):null!=k.colour&&(d=k.colour):d=this.shadeCalculation(e,b);this.conservationColouring&&(d=this.applyConservation(d,b))}return d},"~S,~N,jalview.datamodel.SequenceI");d(c$,"shadeCalculation",function(a,b){var c=1,c=this.thresholdIsMinMax&&null!=a.threshold&&
2597 1==this.aboveAnnotationThreshold&&a.annotations[b].value>=a.threshold.value?(a.annotations[b].value-a.threshold.value)/(a.graphMax-a.threshold.value):this.thresholdIsMinMax&&null!=a.threshold&&0==this.aboveAnnotationThreshold&&a.annotations[b].value>=a.graphMin?(a.annotations[b].value-a.graphMin)/(a.threshold.value-a.graphMin):a.graphMax!=a.graphMin?(a.annotations[b].value-a.graphMin)/(a.graphMax-a.graphMin):0,d=I(this.rr*c+this.r1),e=I(this.gg*c+this.g1),c=I(this.bb*c+this.b1);return new java.awt.Color(d,
2598 e,c)},"jalview.datamodel.AlignmentAnnotation,~N");d(c$,"isPredefinedColours",function(){return this.predefinedColours});d(c$,"setPredefinedColours",function(a){this.predefinedColours=a},"~B");d(c$,"isSeqAssociated",function(){return this.seqAssociated});d(c$,"setSeqAssociated",function(a){this.seqAssociated=a},"~B");G(c$,"NO_THRESHOLD",-1,"BELOW_THRESHOLD",0,"ABOVE_THRESHOLD",1)});p("jalview.schemes");q(["jalview.schemes.ResidueColourScheme"],"jalview.schemes.FollowerColourScheme",null,function(){c$=
2599 s(function(){this.colourScheme=null;r(this,arguments)},jalview.schemes,"FollowerColourScheme",jalview.schemes.ResidueColourScheme);d(c$,"getBaseColour",function(){return this.colourScheme});e(c$,"setConsensus",function(a){null!=this.colourScheme&&this.colourScheme.setConsensus(a)},"~A");e(c$,"setConservation",function(a){null!=this.colourScheme&&this.colourScheme.setConservation(a)},"jalview.analysis.Conservation");e(c$,"setConservationInc",function(a){null!=this.colourScheme&&this.colourScheme.setConservationInc(a)},
2600 "~N")});p("jalview.renderer");q(["jalview.util.Platform","java.awt.Color"],"jalview.renderer.AnnotationRenderer","awt2swing.Util jalview.analysis.AAFrequency $.CodingUtils $.StructureFrequency jalview.jsdev.RegExp jalview.schemes.NucleotideColourScheme $.ResidueProperties $.ZappoColourScheme java.awt.BasicStroke java.awt.geom.AffineTransform java.util.BitSet".split(" "),function(){c$=s(function(){this.debugRedraw=!1;this.charHeight=this.endRes=this.charWidth=0;this.hasHiddenColumns=this.validCharWidth=
2601 !1;this.fm=null;this.MAC=!1;this.av_renderProfile=this.av_renderHistogram=!0;this.av_normaliseProfile=!1;this.hStrucConsensus=this.complementConsensus=this.hconsensus=this.columnSelection=this.profcolour=null;this.av_ignoreGapsConsensus=!1;this.annotationPanel=this.fadedImage=null;this.visHeight=this.sOffset=this.imgWidth=0;this.useClip=!0;this.rna=this.canClip=!1;this.sdNOTCANONICAL_COLOUR=null;r(this,arguments)},jalview.renderer,"AnnotationRenderer");J(c$,function(){this.MAC=jalview.util.Platform.isAMac()});
2602 m(c$,function(){this.construct(!1)});m(c$,function(a){this.debugRedraw=a},"~B");d(c$,"drawStemAnnot",function(a,b,c,d,e,k,g,h,j,n){a.setColor(jalview.renderer.AnnotationRenderer.STEM_COLOUR);var m=F(c/this.charWidth)+g;g=c;d*=this.charWidth;jalview.jsdev.RegExp.newRegex(["(\\))"]);var p=0==h||null==b[h-1]?" ":b[h-1].secondaryStructure,m=0==m||null==b[m-1]||p!=b[m-1].secondaryStructure;b=!j||!n||null==b[h]||p!=b[h].secondaryStructure;0<h&&jalview.schemes.ResidueProperties.isCloseParenRNA(p)?(m&&(a.fillPolygon(w(-1,
2603 [c+5,c+5,c]),w(-1,[e+k,e+14+k,e+8+k]),3),g+=5),b&&(d-=1)):(b&&(a.fillPolygon(w(-1,[d-5,d-5,d]),w(-1,[e+k,e+14+k,e+8+k]),3),d-=5),m&&(g+=1));a.fillRect(g,e+4+k,d-g,7)},"java.awt.Graphics,~A,~N,~N,~N,~N,~N,~N,~B,~B");d(c$,"drawNotCanonicalAnnot",function(a,b,c,d,e,k,g,h,j,n,m){a.setColor(b);var p=F(d/this.charWidth)+h;b=d;e*=this.charWidth;h=jalview.jsdev.RegExp.newRegex(["}|]|<|[a-z]"]);var q=0==j||null==c[j-1]?"":c[j-1].displayCharacter,p=0==p||null==c[p-1]||!q.equals(c[p-1].displayCharacter);c=!n||
2604 !m||null==c[j]||!q.equals(c[j].displayCharacter);0<j&&h.search(q)?(p&&(a.fillPolygon(w(-1,[d+5,d+5,d]),w(-1,[k+g,k+14+g,k+8+g]),3),b+=5),c&&(e-=1)):(c&&(a.fillPolygon(w(-1,[e-5,e-5,e]),w(-1,[k+g,k+14+g,k+8+g]),3),e-=5),p&&(b+=1));a.fillRect(b,k+4+g,e-b,7)},"java.awt.Graphics,java.awt.Color,~A,~N,~N,~N,~N,~N,~N,~B,~B");d(c$,"updateFromAwtRenderPanel",function(a,b){this.fm=a.getFontMetrics();this.annotationPanel=a;this.fadedImage=a.getFadedImage();this.imgWidth=a.getFadedImageWidth();var c=a.getVisibleVRange();
2605 null!=c?(this.sOffset=c[0],this.visHeight=c[1],this.useClip=0==this.visHeight?!1:this.canClip):this.useClip=!1;this.updateFromAlignViewport(b)},"jalview.renderer.AwtRenderPanelI,jalview.api.AlignViewportI");d(c$,"updateFromAlignViewport",function(a){this.charWidth=a.getCharWidth();this.endRes=a.getEndRes();this.charHeight=a.getCharHeight();this.hasHiddenColumns=a.hasHiddenColumns();this.validCharWidth=a.isValidCharWidth();this.av_renderHistogram=a.isShowConsensusHistogram();this.av_renderProfile=
2606 a.isShowSequenceLogo();this.av_normaliseProfile=a.isNormaliseSequenceLogo();this.profcolour=a.getGlobalColourScheme();null==this.profcolour&&(this.profcolour=a.getAlignment().isNucleotide()?new jalview.schemes.NucleotideColourScheme:new jalview.schemes.ZappoColourScheme);this.columnSelection=a.getColumnSelection();this.hconsensus=a.getSequenceConsensusHash();this.complementConsensus=a.getComplementConsensusHash();this.hStrucConsensus=a.getRnaStructureConsensusHash();this.av_ignoreGapsConsensus=a.isIgnoreGapsConsensus()},
2607 "jalview.api.AlignViewportI");d(c$,"getProfileFor",function(a,b){if(a.autoCalculated&&(a.label.startsWith("Consensus")||a.label.startsWith("cDNA Consensus"))){var c=a.label.startsWith("cDNA Consensus");if(null!=a.groupRef&&null!=a.groupRef.consensusData&&a.groupRef.isShowSequenceLogo())return jalview.analysis.AAFrequency.extractProfile(a.groupRef.consensusData[b],a.groupRef.getIgnoreGapsConsensus());if(null==a.groupRef&&null==a.sequenceRef)return c?jalview.analysis.AAFrequency.extractCdnaProfile(this.complementConsensus[b],
2608 this.av_ignoreGapsConsensus):jalview.analysis.AAFrequency.extractProfile(this.hconsensus[b],this.av_ignoreGapsConsensus)}else if(a.autoCalculated&&a.label.startsWith("StrucConsensus")&&null==a.groupRef&&null==a.sequenceRef&&null!=this.hStrucConsensus&&this.hStrucConsensus.length>b)return jalview.analysis.StructureFrequency.extractProfile(this.hStrucConsensus[b],this.av_ignoreGapsConsensus);return null},"jalview.datamodel.AlignmentAnnotation,~N");d(c$,"drawComponent",function(a,b,c,d,e,k){var g=System.currentTimeMillis(),
2609 h=!1;this.updateFromAwtRenderPanel(a,b);this.fm=c.getFontMetrics();a=b.getAlignment().getAlignmentAnnotation();if(null==a)return!1;var j=0,n=0,m=0,p,q,s=0,r=!1,t=!1,v=!1;b.isCentreColumnLabels();for(var w=!1,y=b.getAlignmentConsensusAnnotation(),z=b.getAlignmentStrucConsensusAnnotation(),A=b.getComplementConsensusAnnotation(),B=!0,E=!0,C=!1,F=this.rna,H=new java.util.BitSet,G=0,J=1,K=c.getFont(),L=0,M=0,N=0,O=0,Q=!1,T=!1,S=0;S<a.length;S++){var P=a[S],F=P.isRNA();null!=P.groupRef&&P===P.groupRef.getConsensus()?
2610 (B=P.groupRef.isShowConsensusHistogram(),E=P.groupRef.isShowSequenceLogo(),C=P.groupRef.isNormaliseSequenceLogo()):P===y||P===z||P===A?(B=this.av_renderHistogram,E=this.av_renderProfile,C=this.av_normaliseProfile):B=!0;var V=P.annotations;if(P.visible){v=P.showAllColLabels;w=P.scaleColLabel;p=" ";q=0;if(!this.useClip||n-this.charHeight<this.visHeight&&n+P.height+2*this.charHeight>=this.sOffset){Q||(Q=!0,L=n,M=S);N=n;O=S;if(0<P.graph){if(-1<P.graphGroup&&H.get(P.graphGroup))continue;n+=P.height;P.hasText&&
2611 (s=this.charHeight-this.fm.getDescent(),n-=this.charHeight)}else s=P.hasText?this.charHeight-this.fm.getDescent():0;if(P.autoCalculated&&b.isCalculationInProgress(P)){n+=this.charHeight;h=!0;c.drawImage(this.fadedImage,0,n-P.height,this.imgWidth,n,0,n-P.height,this.imgWidth,n,this.annotationPanel);c.setColor(java.awt.Color.black);continue}for(j=0==e?0:-1;j<k-e;){if(this.hasHiddenColumns){if(m=this.columnSelection.adjustForHiddenColumns(e+j),m>V.length-1)break}else m=e+j;var R=(r=null==V||V.length<=
2612 m||null==V[m]?!1:!0)?V[m].displayCharacter:null;if(-1<j){if(d==S&&(c.setColor(java.awt.Color.red),null!=this.columnSelection))for(G=0;G<this.columnSelection.size();G++)this.columnSelection.columnAt(G)==m&&c.fillRect(j*this.charWidth,n,this.charWidth,this.charHeight);P.getInvalidStrucPos()>j?(c.setColor(java.awt.Color.orange),c.fillRect(j*this.charWidth,n,this.charWidth,this.charHeight)):P.getInvalidStrucPos()==j&&(c.setColor(java.awt.Color.orange.darker()),c.fillRect(j*this.charWidth,n,this.charWidth,
2613 this.charHeight));this.validCharWidth&&(r&&null!=R&&0<R.length)&&(G=this.fm.charsWidth(R.toCharArray(),0,R.length),w&&G>this.charWidth&&(J=this.charWidth,J/=G,c.setFont(K.deriveFont(java.awt.geom.AffineTransform.getScaleInstance(J,1))),G=this.charWidth),G=I((this.charWidth-G)/2),null==V[m].colour?c.setColor(java.awt.Color.black):c.setColor(V[m].colour),0==m||0<P.graph?awt2swing.Util.drawString(c,R,j*this.charWidth+G,n+s):(null==V[m-1]||v||!R.equals(V[m-1].displayCharacter)||2>R.length&&" "==V[m].secondaryStructure)&&
2614 awt2swing.Util.drawString(c,R,j*this.charWidth+G,n+s),c.setFont(K))}if(P.hasIcons&&(G=r?V[m].secondaryStructure:"-","("==G&&-1<R.indexOf(")")&&(G=")"),"["==G&&-1<R.indexOf("]")&&(G="]"),"{"==G&&-1<R.indexOf("}")&&(G="}"),"<"==G&&-1<R.indexOf("<")&&(G=">"),65<=G.charCodeAt(0)&&-1<R.indexOf(G.charCodeAt(0)+32)&&(G=String.fromCharCode(G.charCodeAt(0)+32)),!r||G!=p)){if(-1<j)switch(p){case "(":case ")":this.drawStemAnnot(c,V,q,j,n,s,e,m,r,t);break;case "H":if(!F){this.drawHelixAnnot(c,V,q,j,n,s,e,m,r,
2615 t);break}case "E":if(!F){this.drawSheetAnnot(c,V,q,j,n,s,e,m,r,t);break}case "{":case "}":case "[":case "]":case ">":case "<":case "A":case "a":case "B":case "b":case "C":case "c":case "D":case "d":case "e":case "F":case "f":case "G":case "g":case "h":case "I":case "i":case "J":case "j":case "K":case "k":case "L":case "l":case "M":case "m":case "N":case "n":case "O":case "o":case "P":case "p":case "Q":case "q":case "R":case "r":case "S":case "s":case "T":case "t":case "U":case "u":case "V":case "v":case "W":case "w":case "X":case "x":case "Y":case "y":case "Z":case "z":p=
2616 this.getNotCanonicalColor(p);this.drawNotCanonicalAnnot(c,p,V,q,j,n,s,e,m,r,t);break;default:c.setColor(java.awt.Color.gray),c.fillRect(q,n+6+s,j*this.charWidth-q,2)}p=r?G:" ";-1<j&&(q=j*this.charWidth)}m++;j++}m>=V.length?(m=V.length-1,t=!1):t=!0;r=null==V||V.length<=m||null==V[m]?!1:!0;if(P.hasIcons)switch(p){case "H":if(!F){this.drawHelixAnnot(c,V,q,j,n,s,e,m,r,t);break}case "E":if(!F){this.drawSheetAnnot(c,V,q,j,n,s,e,m,r,t);break}case "(":case ")":this.drawStemAnnot(c,V,q,j,n,s,e,m,r,t);break;
2617 case "{":case "}":case "[":case "]":case ">":case "<":case "A":case "a":case "B":case "b":case "C":case "c":case "D":case "d":case "e":case "F":case "f":case "G":case "g":case "h":case "I":case "i":case "J":case "j":case "K":case "k":case "L":case "l":case "M":case "m":case "N":case "n":case "O":case "o":case "P":case "p":case "Q":case "q":case "R":case "r":case "T":case "t":case "U":case "u":case "V":case "v":case "W":case "w":case "X":case "x":case "Y":case "y":case "Z":case "z":p=this.getNotCanonicalColor(p);
2618 this.drawNotCanonicalAnnot(c,p,V,q,j,n,s,e,m,r,t);break;default:this.drawGlyphLine(c,V,q,j,n,s,e,m,r,t)}if(0<P.graph&&0<P.graphHeight)if(2==P.graph)if(-1<P.graphGroup&&!H.get(P.graphGroup)){j=-999999;q=9999999;for(r=0;r<a.length;r++)a[r].graphGroup==P.graphGroup&&(a[r]!==P&&(a[r].visible=!1),a[r].graphMax>j&&(j=a[r].graphMax),a[r].graphMin<q&&(q=a[r].graphMin));for(r=0;r<a.length;r++)a[r].graphGroup==P.graphGroup&&this.drawLineGraph(c,a[r],a[r].annotations,e,k,n,q,j,P.graphHeight);H.set(P.graphGroup)}else this.drawLineGraph(c,
2619 P,V,e,k,n,P.graphMin,P.graphMax,P.graphHeight);else 1==P.graph&&this.drawBarGraph(c,P,V,e,k,P.graphMin,P.graphMax,n,B,E,C)}else Q&&!T&&(T=!0);0<P.graph&&P.hasText&&(n+=this.charHeight);0==P.graph&&(n+=a[S].height)}}this.debugRedraw&&(this.canClip&&(Q&&System.err.println("Start clip at : "+L+" (index "+M+")"),T&&System.err.println("End clip at : "+N+" (index "+O+")")),System.err.println("Annotation Rendering time:"+(System.currentTimeMillis()-g)));return!h},"jalview.renderer.AwtRenderPanelI,jalview.api.AlignViewportI,java.awt.Graphics,~N,~N,~N");
2620 d(c$,"drawGlyphLine",function(a,b,c,d,e,k){a.setColor(jalview.renderer.AnnotationRenderer.GLYPHLINE_COLOR);a.fillRect(c,e+6+k,d*this.charWidth-c,2)},"java.awt.Graphics,~A,~N,~N,~N,~N,~N,~N,~B,~B");d(c$,"drawSheetAnnot",function(a,b,c,d,e,k,g,h,j,n){a.setColor(jalview.renderer.AnnotationRenderer.SHEET_COLOUR);!n||!j||null==b||null==b[h]||"E"!=b[h].secondaryStructure?(a.fillRect(c,e+4+k,d*this.charWidth-c-4,7),a.fillPolygon(w(-1,[d*this.charWidth-4,d*this.charWidth-4,d*this.charWidth]),w(-1,[e+k,e+
2621 14+k,e+7+k]),3)):a.fillRect(c,e+4+k,(d+1)*this.charWidth-c,7)},"java.awt.Graphics,~A,~N,~N,~N,~N,~N,~N,~B,~B");d(c$,"drawHelixAnnot",function(a,b,c,d,e,k,g,h,j){a.setColor(jalview.renderer.AnnotationRenderer.HELIX_COLOUR);g=F(c/this.charWidth)+g;var n=c,m=d*this.charWidth;if(this.MAC)d=F(this.charWidth/2),a.fillRoundRect(c,e+4+k,m-n,8,8,8),0==g||(null==b[g-1]||"H"!=b[g-1].secondaryStructure)||a.fillRoundRect(c,e+4+k,m-n-d+1,8,0,0),j&&!(null==b[h]||"H"!=b[h].secondaryStructure)&&a.fillRoundRect(c+
2622 d,e+4+k,m-n-d+1,8,0,0);else{if(0==g||null==b[g-1]||"H"!=b[g-1].secondaryStructure)a.fillArc(c,e+4+k,this.charWidth,8,90,180),n+=F(this.charWidth/2);if(!j||null==b[h]||"H"!=b[h].secondaryStructure)a.fillArc(d*this.charWidth-this.charWidth,e+4+k,this.charWidth,8,270,180),m-=F(this.charWidth/2);a.fillRect(n,e+4+k,m-n,8)}},"java.awt.Graphics,~A,~N,~N,~N,~N,~N,~N,~B,~B");d(c$,"drawLineGraph",function(a,b,c,d,e,k,g,h,j){if(!(d>c.length)){var n=0;e<this.endRes&&e++;e=Math.min(e,c.length);0==d&&n++;var m=
2623 k,p=k;h-=g;0>g&&(p=k-I((0-g/h)*j));a.setColor(java.awt.Color.gray);a.drawLine(n-this.charWidth,p,(e-d+1)*this.charWidth,p);e=Math.min(e,c.length);for(var q=c.length-1;n<e-d;){p=d+n;this.hasHiddenColumns&&(p=this.columnSelection.adjustForHiddenColumns(p));if(p>q)break;null==c[p]||null==c[p-1]||(null==c[p].colour?a.setColor(java.awt.Color.black):a.setColor(c[p].colour),m=k-I((c[p-1].value-g)/h*j),p=k-I((c[p].value-g)/h*j),a.drawLine(n*this.charWidth-F(this.charWidth/2),m,n*this.charWidth+F(this.charWidth/
2624 2),p));n++}null!=b.threshold&&(a.setColor(b.threshold.colour),a.setStroke(new java.awt.BasicStroke(1,2,1,3,Q(-1,[5,3]),0)),p=I(k-(b.threshold.value-g)/h*j),a.drawLine(0,p,(e-d)*this.charWidth,p),a.setStroke(new java.awt.BasicStroke))}},"java.awt.Graphics,jalview.datamodel.AlignmentAnnotation,~A,~N,~N,~N,~N,~N,~N");d(c$,"drawBarGraph",function(a,b,c,d,e,k,g,h,j,n,m){if(!(d>c.length)){var p=a.getFont();e=Math.min(e,c.length);var q=0,s=h,r=h;g-=k;0>k&&(r=h-I((0-k/g)*b.graphHeight));a.setColor(java.awt.Color.gray);
2625 a.drawLine(q,r,(e-d)*this.charWidth,r);for(var t,v=c.length-1;q<e-d;){t=d+q;this.hasHiddenColumns&&(t=this.columnSelection.adjustForHiddenColumns(t));if(t>v)break;if(null!=c[t]&&(null==c[t].colour?a.setColor(java.awt.Color.black):a.setColor(c[t].colour),s=h-I((c[t].value-k)/g*b.graphHeight),j&&(0<s-r?a.fillRect(q*this.charWidth,r,this.charWidth,s-r):a.fillRect(q*this.charWidth,s,this.charWidth,r-s)),n)){var w=this.getProfileFor(b,t);if(null!=w&&0!=w[2]){var y=1==w[0],z=2==w[0],A=m?h-b.graphHeight:
2626 s,s=m?b.graphHeight:r-s,B,E,C;C=N(y?2:z?3:1,"\x00");B=a.getFontMetrics(p).getLineMetrics("Q",a);var G=1/(m?w[2]:100);B.getAscent();for(var H=0,J=3,K=0;K<w[1];)y?(C[0]=String.fromCharCode(w[J++]),C[1]=String.fromCharCode(w[J++])):z?C=jalview.analysis.CodingUtils.decodeCodon(w[J++]):C[0]=String.fromCharCode(w[J++]),E=this.charWidth,E/=this.fm.charsWidth(C,0,C.length),A+=H,H=s*G*w[J++],B=p.getLineMetrics(C,0,1,a.getFontMetrics().getFontRenderContext()),a.setFont(p.deriveFont(java.awt.geom.AffineTransform.getScaleInstance(E,
2627 H/B.getAscent()))),B=a.getFontMetrics().getLineMetrics(C,0,1,a),E=null,z?(E=jalview.schemes.ResidueProperties.codonTranslate(String.instantialize(C)),E=this.profcolour.findColourSeq(E.charAt(0),t,null)):E=this.profcolour.findColourSeq(C[0],t,null),a.setColor(E===java.awt.Color.white?java.awt.Color.lightGray:E),B=A+(H-B.getDescent()-B.getBaselineOffsets()[B.getBaselineIndex()]),a.drawChars(C,0,C.length,q*this.charWidth,F(B)),K++;a.setFont(p)}}q++}null!=b.threshold&&(a.setColor(b.threshold.colour),
2628 a.setStroke(new java.awt.BasicStroke(1,2,1,3,Q(-1,[5,3]),0)),r=I(h-(b.threshold.value-k)/g*b.graphHeight),a.drawLine(0,r,(e-d)*this.charWidth,r),a.setStroke(new java.awt.BasicStroke))}},"java.awt.Graphics,jalview.datamodel.AlignmentAnnotation,~A,~N,~N,~N,~N,~N,~B,~B,~B");d(c$,"drawGraph",function(a,b,c,d,e,k,g){g=Math.min(g,c.length);a.setColor(java.awt.Color.white);a.fillRect(0,0,d,e);a.setColor(new java.awt.Color(0,0,180));d=0;for(var h=k;h<g;h++)null!=c[h]&&(null==c[h].colour?a.setColor(java.awt.Color.black):
2629 a.setColor(c[h].colour),k=I(c[h].value/b.graphMax*e),k>e&&(k=e),a.fillRect(d,e-k,this.charWidth,k)),d+=this.charWidth},"java.awt.Graphics,jalview.datamodel.AlignmentAnnotation,~A,~N,~N,~N,~N");d(c$,"getNotCanonicalColor",function(a){switch(a){case "{":case "}":return new java.awt.Color(255,125,5);case "[":case "]":return new java.awt.Color(245,115,10);case ">":case "<":return new java.awt.Color(235,135,15);case "A":case "a":return new java.awt.Color(225,105,20);case "B":case "b":return new java.awt.Color(215,
2630 145,30);case "C":case "c":return new java.awt.Color(205,95,35);case "D":case "d":return new java.awt.Color(195,155,45);case "E":case "e":return new java.awt.Color(185,85,55);case "F":case "f":return new java.awt.Color(175,165,65);case "G":case "g":return new java.awt.Color(170,75,75);case "H":case "h":return new java.awt.Color(160,175,85);case "I":case "i":return new java.awt.Color(150,65,95);case "J":case "j":return new java.awt.Color(140,185,105);case "K":case "k":return new java.awt.Color(130,
2631 55,110);case "L":case "l":return new java.awt.Color(120,195,120);case "M":case "m":return new java.awt.Color(110,45,130);case "N":case "n":return new java.awt.Color(100,205,140);case "O":case "o":return new java.awt.Color(90,35,150);case "P":case "p":return new java.awt.Color(85,215,160);case "Q":case "q":return new java.awt.Color(75,25,170);case "R":case "r":return new java.awt.Color(65,225,180);case "S":case "s":return new java.awt.Color(55,15,185);case "T":case "t":return new java.awt.Color(45,
2632 235,195);case "U":case "u":return new java.awt.Color(35,5,205);case "V":case "v":return new java.awt.Color(25,245,215);case "W":case "w":return new java.awt.Color(15,0,225);case "X":case "x":return new java.awt.Color(10,255,235);case "Y":case "y":return new java.awt.Color(5,150,245);case "Z":case "z":return new java.awt.Color(0,80,255);default:return System.out.println("This is not a interaction : "+a),null}},"~S");c$.GLYPHLINE_COLOR=c$.prototype.GLYPHLINE_COLOR=java.awt.Color.gray;c$.SHEET_COLOUR=
2633 c$.prototype.SHEET_COLOUR=java.awt.Color.green;c$.HELIX_COLOUR=c$.prototype.HELIX_COLOUR=java.awt.Color.red;c$.STEM_COLOUR=c$.prototype.STEM_COLOUR=java.awt.Color.blue});p("jalview.appletgui");q("awt2swing.Panel java.awt.event.ActionListener $.AdjustmentListener $.ItemListener $.MouseListener awt2swing.Checkbox $.Choice $.Scrollbar $.TextField".split(" "),"jalview.appletgui.FeatureColourChooser","awt2swing.Label jalview.appletgui.JVDialog $.PaintRefresher $.UserDefinedColours jalview.datamodel.GraphLine jalview.schemes.GraduatedColor jalview.util.MessageManager java.awt.Color $.Dimension $.FlowLayout $.Font $.GridLayout java.awt.event.ActionEvent java.lang.Float".split(" "),
2634 function(){c$=s(function(){this.oldgroupColours=this.oldcs=this.cs=this.fs=this.fr=this.owner=this.frame=null;this.adjusting=!1;this.max=this.min=0;this.threshline=this.colourFromLabel=this.thresholdIsMin=this.thresholdValue=this.slider=this.jPanel4=this.jPanel3=this.threshold=this.jPanel2=this.jPanel1=this.maxColour=this.minColour=this.af=this.type=null;r(this,arguments)},jalview.appletgui,"FeatureColourChooser",awt2swing.Panel,[java.awt.event.ActionListener,java.awt.event.AdjustmentListener,java.awt.event.ItemListener,
2635 java.awt.event.MouseListener]);J(c$,function(){this.minColour=new awt2swing.Panel;this.maxColour=new awt2swing.Panel;this.jPanel1=new awt2swing.Panel;this.jPanel2=new awt2swing.Panel;this.threshold=new awt2swing.Choice;this.jPanel3=new awt2swing.Panel;this.jPanel4=new awt2swing.Panel;this.slider=new awt2swing.Scrollbar(0);this.thresholdValue=new awt2swing.TextField(20);this.thresholdIsMin=new awt2swing.Checkbox;this.colourFromLabel=new awt2swing.Checkbox});m(c$,function(a,b){t(this,jalview.appletgui.FeatureColourChooser,
2636 []);this.af=a;this.init(a.getSeqcanvas().getFeatureRenderer(),b)},"jalview.appletgui.AlignFrame,~S");m(c$,function(a,b){t(this,jalview.appletgui.FeatureColourChooser,[]);this.fs=a;this.init(a.fr,b)},"jalview.appletgui.FeatureSettings,~S");d(c$,"init",function(a,b){this.type=b;this.fr=a;var c=this.fr.getMinMax().get(b)[0];this.min=c[0];this.max=c[1];this.oldcs=this.fr.getFeatureColours().get(b);if(v(this.oldcs,jalview.schemes.GraduatedColor))this.cs=new jalview.schemes.GraduatedColor(this.oldcs,this.min,
2637 this.max);else{var d=java.awt.Color.black;v(this.oldcs,java.awt.Color)&&(d=this.oldcs);this.cs=new jalview.schemes.GraduatedColor(java.awt.Color.white,d,c[0],c[1])}this.minColour.setBackground(this.cs.getMinColor());this.maxColour.setBackground(this.cs.getMaxColor());this.minColour.setForeground(this.cs.getMinColor());this.maxColour.setForeground(this.cs.getMaxColor());this.colourFromLabel.setState(this.cs.isColourByLabel());this.adjusting=!0;try{this.jbInit()}catch(e){if(!y(e,Exception))throw e;
2638 }this.threshold.select(new Integer(-1==this.cs.getThreshType()?0:1==this.cs.getThreshType()?1:2));this.adjusting=!1;this.changeColour();this.colourFromLabel.addItemListener(this);this.slider.addAdjustmentListener(this);this.slider.addMouseListener(this);this.owner=null!=this.af?this.af:this.fs.frame;this.frame=new jalview.appletgui.JVDialog(this.owner,jalview.util.MessageManager.formatMessage("label.graduated_color_for_params",E(-1,[b])),!0,480,248);this.frame.setMainPanel(this);this.validate();this.frame.setVisible(!0);
2639 this.frame.accept?this.changeColour():(this.reset(),jalview.appletgui.PaintRefresher.Refresh(this,this.fr.getViewport().getSequenceSetId()),this.frame.setVisible(!1))},"jalview.appletgui.FeatureRenderer,~S");m(c$,function(){t(this,jalview.appletgui.FeatureColourChooser,[]);try{this.jbInit()}catch(a){if(y(a,Exception))a.printStackTrace();else throw a;}});d(c$,"jbInit",function(){var a=new awt2swing.Label(jalview.util.MessageManager.getString("label.min")),b=new awt2swing.Label(jalview.util.MessageManager.getString("label.max"));
2640 a.setFont(new java.awt.Font("Verdana",0,11));b.setFont(new java.awt.Font("Verdana",0,11));this.minColour.setBounds(0,0,40,27);this.maxColour.setBounds(0,0,40,27);this.minColour.addMouseListener(this);this.maxColour.setFont(new java.awt.Font("Verdana",0,11));this.maxColour.addMouseListener(this);this.thresholdIsMin.addItemListener(this);this.setLayout(new java.awt.GridLayout(4,1));this.jPanel1.setLayout(new java.awt.FlowLayout);this.jPanel2.setLayout(new java.awt.FlowLayout);this.jPanel3.setLayout(new java.awt.GridLayout(1,
2641 1));this.jPanel4.setLayout(new java.awt.FlowLayout);this.jPanel1.setBackground(java.awt.Color.white);this.jPanel2.setBackground(java.awt.Color.white);this.jPanel4.setBackground(java.awt.Color.white);this.threshold.addItemListener(this);this.threshold.addItem(jalview.util.MessageManager.getString("label.threshold_feature_no_thereshold"));this.threshold.addItem(jalview.util.MessageManager.getString("label.threshold_feature_above_thereshold"));this.threshold.addItem(jalview.util.MessageManager.getString("label.threshold_feature_below_thereshold"));
2642 this.thresholdValue.addActionListener(this);this.slider.setBackground(java.awt.Color.white);this.slider.setEnabled(!1);this.slider.setSize(new java.awt.Dimension(93,21));this.thresholdValue.setEnabled(!1);this.thresholdValue.setSize(new java.awt.Dimension(79,22));this.thresholdValue.setColumns(5);this.jPanel3.setBackground(java.awt.Color.white);this.colourFromLabel.setFont(new java.awt.Font("Verdana",0,11));this.colourFromLabel.setLabel(jalview.util.MessageManager.getString("label.colour_by_label"));
2643 this.colourFromLabel.setSize(new java.awt.Dimension(139,22));this.thresholdIsMin.setBackground(java.awt.Color.white);this.thresholdIsMin.setLabel(jalview.util.MessageManager.getString("label.threshold_minmax"));this.thresholdIsMin.setSize(new java.awt.Dimension(135,23));this.jPanel1.add(a);this.jPanel1.add(this.minColour);this.jPanel1.add(b);this.jPanel1.add(this.maxColour);this.jPanel1.add(this.colourFromLabel);this.jPanel2.add(this.threshold);this.jPanel3.add(this.slider);this.jPanel4.add(this.thresholdValue);
2644 this.jPanel4.add(this.thresholdIsMin);this.add(this.jPanel1);this.add(this.jPanel2);this.add(this.jPanel3);this.add(this.jPanel4)});e(c$,"actionPerformed",function(a){if(a.getSource()===this.thresholdValue)try{var b=(new Float(this.thresholdValue.getText())).floatValue();this.slider.setValue(I(1E3*b));this.adjustmentValueChanged(null)}catch(c){if(!y(c,NumberFormatException))throw c;}else a.getSource()===this.minColour?this.minColour_actionPerformed(null):a.getSource()===this.maxColour?this.maxColour_actionPerformed(null):
2645 this.changeColour()},"java.awt.event.ActionEvent");e(c$,"itemStateChanged",function(){this.maxColour.setEnabled(!this.colourFromLabel.getState());this.minColour.setEnabled(!this.colourFromLabel.getState());this.changeColour()},"java.awt.event.ItemEvent");e(c$,"adjustmentValueChanged",function(){this.adjusting||(this.thresholdValue.setText(this.slider.getValue()/1E3+""),this.valueChanged())},"java.awt.event.AdjustmentEvent");d(c$,"valueChanged",function(){this.threshline.value=this.slider.getValue()/
2646 1E3;this.cs.setThresh(this.threshline.value);this.changeColour();jalview.appletgui.PaintRefresher.Refresh(this,this.fr.getViewport().getSequenceSetId())});d(c$,"minColour_actionPerformed",function(a){null==a?new jalview.appletgui.UserDefinedColours(this,this.minColour.getBackground(),this.owner,jalview.util.MessageManager.getString("label.select_colour_minimum_value")):(this.minColour.setBackground(a),this.minColour.setForeground(a),this.minColour.repaint(),this.changeColour())},"java.awt.Color");
2647 d(c$,"maxColour_actionPerformed",function(a){null==a?new jalview.appletgui.UserDefinedColours(this,this.maxColour.getBackground(),this.owner,jalview.util.MessageManager.getString("label.select_colour_maximum_value")):(this.maxColour.setBackground(a),this.maxColour.setForeground(a),this.maxColour.repaint(),this.changeColour())},"java.awt.Color");d(c$,"changeColour",function(){if(!this.adjusting){var a=-1;1==this.threshold.getSelectedIndex()?a=1:2==this.threshold.getSelectedIndex()&&(a=0);this.slider.setEnabled(!0);
2648 this.thresholdValue.setEnabled(!0);var b=new jalview.schemes.GraduatedColor(this.minColour.getBackground(),this.maxColour.getBackground(),this.min,this.max);b.setColourByLabel(this.colourFromLabel.getState());this.maxColour.setEnabled(!this.colourFromLabel.getState());this.minColour.setEnabled(!this.colourFromLabel.getState());-1==a?(this.slider.setEnabled(!1),this.thresholdValue.setEnabled(!1),this.thresholdValue.setText("")):-1!=a&&null==this.threshline&&(this.threshline=new jalview.datamodel.GraphLine((this.max-
2649 this.min)/2,"Threshold",java.awt.Color.black));-1!=a&&(this.adjusting=!0,b.setThresh(this.threshline.value),this.slider.setMinimum(I(1E3*this.min)),this.slider.setMaximum(I(1E3*this.max)),this.slider.setValue(I(1E3*this.threshline.value)),this.thresholdValue.setText(this.threshline.value+""),this.slider.setEnabled(!0),this.thresholdValue.setEnabled(!0),this.adjusting=!1);b.setThreshType(a);this.thresholdIsMin.getState()&&-1!=a&&(b=1==a?new jalview.schemes.GraduatedColor(b,this.threshline.value,this.max):
2650 new jalview.schemes.GraduatedColor(b,this.min,this.threshline.value));this.fr.setColour(this.type,b);this.cs=b;jalview.appletgui.PaintRefresher.Refresh(this,this.fr.getViewport().getSequenceSetId())}});d(c$,"reset",function(){this.fr.setColour(this.type,this.oldcs);jalview.appletgui.PaintRefresher.Refresh(this,this.fr.getViewport().getSequenceSetId())});e(c$,"mouseClicked",function(){},"java.awt.event.MouseEvent");e(c$,"mousePressed",function(){},"java.awt.event.MouseEvent");e(c$,"mouseReleased",
2651 function(a){a.getSource()===this.minColour||a.getSource()===this.maxColour?this.actionPerformed(new java.awt.event.ActionEvent(a.getSource(),1,"Clicked")):jalview.appletgui.PaintRefresher.Refresh(this,this.fr.getViewport().getSequenceSetId())},"java.awt.event.MouseEvent");e(c$,"mouseEntered",function(){},"java.awt.event.MouseEvent");e(c$,"mouseExited",function(){},"java.awt.event.MouseEvent")});p("jalview.schemes");q(null,"jalview.schemes.GraduatedColor",["jalview.schemes.UserColourScheme","java.awt.Color",
2652 "java.lang.Float"],function(){c$=s(function(){this.thresholdState=-1;this.thrsh=this.range=this.base=this.db=this.dg=this.dr=this.lb=this.lg=this.lr=0;this.tolow=!1;this.autoScale=!0;this.ucs=null;this.colourByLabel=!1;r(this,arguments)},jalview.schemes,"GraduatedColor");m(c$,function(a,b,c,d){this.thrsh=NaN;this.tolow=c>=d;this.lr=a.getRed()/255;this.lg=a.getGreen()/255;this.lb=a.getBlue()/255;this.dr=b.getRed()/255-this.lr;this.dg=b.getGreen()/255-this.lg;this.db=b.getBlue()/255-this.lb;this.tolow?
2653 (this.base=d,this.range=c-d):(this.base=c,this.range=d-c)},"java.awt.Color,java.awt.Color,~N,~N");m(c$,function(a){this.lr=a.lr;this.lg=a.lg;this.lb=a.lb;this.dr=a.dr;this.dg=a.dg;this.db=a.db;this.base=a.base;this.range=a.range;this.tolow=a.tolow;this.thresholdState=a.thresholdState;this.thrsh=a.thrsh;this.autoScale=a.autoScale;this.colourByLabel=a.colourByLabel},"jalview.schemes.GraduatedColor");m(c$,function(a,b,c){this.construct(a);this.updateBounds(b,c)},"jalview.schemes.GraduatedColor,~N,~N");
2654 d(c$,"getMinColor",function(){return new java.awt.Color(this.lr,this.lg,this.lb)});d(c$,"getMaxColor",function(){return new java.awt.Color(this.lr+this.dr,this.lg+this.dg,this.lb+this.db)});d(c$,"getTolow",function(){return this.tolow});d(c$,"setTolow",function(a){this.tolow=a},"~B");d(c$,"isColored",function(a){a=a.getScore();if(Float.isNaN(a)||-1==this.thresholdState||Float.isNaN(this.thrsh))return!0;var b=1==this.thresholdState;return a<=this.thrsh?!b:b},"jalview.datamodel.SequenceFeature");d(c$,
2655 "isColourByLabel",function(){return this.colourByLabel});d(c$,"setColourByLabel",function(a){this.colourByLabel=a},"~B");d(c$,"findColor",function(a){if(this.colourByLabel)return null==this.ucs&&(this.ucs=new jalview.schemes.UserColourScheme),this.ucs.createColourFromName(a.getDescription());if(0==this.range)return this.getMaxColor();a=a.getScore();if(Float.isNaN(a))return this.getMinColor();a=(a-this.base)/this.range;this.tolow&&(a=-a);0>a&&(a=0);1<a&&(a=1);return new java.awt.Color(this.lr+a*this.dr,
2656 this.lg+a*this.dg,this.lb+a*this.db)},"jalview.datamodel.SequenceFeature");d(c$,"setThresh",function(a){this.thrsh=a},"~N");d(c$,"getThresh",function(){return this.thrsh});d(c$,"setThreshType",function(a){this.thresholdState=a},"~N");d(c$,"getThreshType",function(){return this.thresholdState});d(c$,"getMax",function(){return this.tolow?this.base:this.base+this.range});d(c$,"getMin",function(){return this.tolow?this.base+this.range:this.base});d(c$,"isAutoScale",function(){return this.autoScale});
2657 d(c$,"setAutoScaled",function(a){this.autoScale=a},"~B");d(c$,"updateBounds",function(a,b){b<a?(this.base=b,this.range=a-b,this.tolow=!0):(this.base=a,this.range=b-a,this.tolow=!1)},"~N,~N")});p("jalview.appletgui");q(["awt2swing.Panel","jalview.renderer.seqfeatures.FeatureRenderer"],"jalview.appletgui.FeatureRenderer","awt2swing.Button $.Choice $.Label $.ScrollPane $.TextArea $.TextField $.Util jalview.appletgui.FeatureColourChooser $.JVDialog $.UserDefinedColours jalview.datamodel.SearchResults jalview.io.FeaturesFile jalview.schemes.GraduatedColor $.UserColourScheme jalview.util.MessageManager java.awt.BorderLayout $.Color $.Font $.GridLayout java.awt.event.ActionListener $.ItemListener $.MouseAdapter java.lang.Error".split(" "),
2658 function(){c$=s(function(){this.featureLinks=null;this.featureIndex=0;this.deleteFeature=!1;this.colourPanel=null;H("jalview.appletgui.FeatureRenderer.FeatureColourPanel")||jalview.appletgui.FeatureRenderer.$FeatureRenderer$FeatureColourPanel$();r(this,arguments)},jalview.appletgui,"FeatureRenderer",jalview.renderer.seqfeatures.FeatureRenderer);m(c$,function(a){t(this,jalview.appletgui.FeatureRenderer);this.av=a;this.setTransparencyAvailable(!System.getProperty("java.version").startsWith("1.1"))},
2659 "jalview.viewmodel.AlignmentViewport");d(c$,"amendFeatures",function(a,b,c,d){var e=new awt2swing.Panel(new java.awt.BorderLayout),k=new awt2swing.TextField(16),g=new awt2swing.TextField(16),h=new awt2swing.TextArea(3,35),j=new awt2swing.TextField(8),n=new awt2swing.TextField(8),m,p=new awt2swing.Button("Delete");this.deleteFeature=!1;this.colourPanel=C(jalview.appletgui.FeatureRenderer.FeatureColourPanel,this,null);this.colourPanel.setSize(110,15);var q=new awt2swing.Panel(new java.awt.GridLayout(3,
2660 1));this.featureIndex=0;var s;if(!c&&1<b.length){q=new awt2swing.Panel(new java.awt.GridLayout(4,1));s=new awt2swing.Panel;s.add(new awt2swing.Label("Select Feature: "));m=new awt2swing.Choice;for(var r=0;r<b.length;r++){var t=b[r].getType()+"/"+b[r].getBegin()+"-"+b[r].getEnd();null!=b[r].getFeatureGroup()&&(t+=" ("+b[r].getFeatureGroup()+")");m.addItem(t)}s.add(m);m.addItemListener((H("jalview.appletgui.FeatureRenderer$1")?0:jalview.appletgui.FeatureRenderer.$FeatureRenderer$1$(),C(jalview.appletgui.FeatureRenderer$1,
2661 this,T("overlaps",m,"name",k,"features",b,"description",h,"source",g,"start",j,"end",n,"sequences",a,"ap",d))));q.add(s)}s=new awt2swing.Panel;q.add(s);s.add(new awt2swing.Label("Name: ",4));s.add(k);s=new awt2swing.Panel;q.add(s);s.add(new awt2swing.Label("Group: ",4));s.add(g);s=new awt2swing.Panel;q.add(s);s.add(new awt2swing.Label("Colour: ",4));s.add(this.colourPanel);e.add(q,"North");q=new awt2swing.Panel;q.add(new awt2swing.Label("Description: ",4));q.add((new awt2swing.ScrollPane).add(h));
2662 c||(e.add(q,"South"),q=new awt2swing.Panel,q.add(new awt2swing.Label(" Start:",4)),q.add(j),q.add(new awt2swing.Label("  End:",4)),q.add(n));e.add(q,"Center");null==jalview.appletgui.FeatureRenderer.lastFeatureAdded&&(jalview.appletgui.FeatureRenderer.lastFeatureAdded=null!=b[0].type?b[0].type:"feature_1");null==jalview.appletgui.FeatureRenderer.lastFeatureGroupAdded&&(null!=b[0].featureGroup?jalview.appletgui.FeatureRenderer.lastFeatureGroupAdded=b[0].featureGroup:jalview.appletgui.FeatureRenderer.lastFeatureAdded=
2663 "Jalview");r=c?jalview.util.MessageManager.getString("label.create_new_sequence_features"):jalview.util.MessageManager.formatMessage("label.amend_delete_features",E(-1,[a[0].getName()]));r=new jalview.appletgui.JVDialog(d.alignFrame,r,!0,385,240);r.setMainPanel(e);c?(k.setText(jalview.appletgui.FeatureRenderer.lastFeatureAdded),g.setText(jalview.appletgui.FeatureRenderer.lastFeatureGroupAdded)):(r.ok.setLabel(jalview.util.MessageManager.getString("label.amend")),r.buttonPanel.add(p,1),p.addActionListener((H("jalview.appletgui.FeatureRenderer$2")?
2664 0:jalview.appletgui.FeatureRenderer.$FeatureRenderer$2$(),C(jalview.appletgui.FeatureRenderer$2,this,T("dialog",r)))),k.setText(b[0].getType()),g.setText(b[0].getFeatureGroup()));j.setText(b[0].getBegin()+"");n.setText(b[0].getEnd()+"");h.setText(b[0].getDescription());null==this.getColour(k.getText())&&(new jalview.schemes.UserColourScheme).createColourFromName(k.getText());e=this.getFeatureStyle(k.getText());this.colourPanel.updateColor(e);r.setResizable(!0);this.colourPanel.addMouseListener((H("jalview.appletgui.FeatureRenderer$3")?
2665 0:jalview.appletgui.FeatureRenderer.$FeatureRenderer$3$(),C(jalview.appletgui.FeatureRenderer$3,this,T("fr",this,"ap",d,"name",k,"dialog",r))));r.setVisible(!0);e=new jalview.io.FeaturesFile;r.accept&&(this.lastSeq=null,jalview.appletgui.FeatureRenderer.lastFeatureAdded=k.getText().trim(),jalview.appletgui.FeatureRenderer.lastFeatureGroupAdded=g.getText().trim(),jalview.appletgui.FeatureRenderer.lastDescriptionAdded=h.getText().$replace("\n"," "));null!=jalview.appletgui.FeatureRenderer.lastFeatureGroupAdded&&
2666 1>jalview.appletgui.FeatureRenderer.lastFeatureGroupAdded.length&&(jalview.appletgui.FeatureRenderer.lastFeatureGroupAdded=null);if(c)if(r.accept&&0<k.getText().length){for(r=0;r<a.length;r++)b[r].type=jalview.appletgui.FeatureRenderer.lastFeatureAdded,b[r].featureGroup=jalview.appletgui.FeatureRenderer.lastFeatureGroupAdded,b[r].description=jalview.appletgui.FeatureRenderer.lastDescriptionAdded,a[r].addSequenceFeature(b[r]),e.parseDescriptionHTML(b[r],!1);a=this.colourPanel.getBackground();null!=
2667 jalview.appletgui.FeatureRenderer.lastFeatureGroupAdded&&this.setGroupVisibility(jalview.appletgui.FeatureRenderer.lastFeatureGroupAdded,!0);this.setColour(jalview.appletgui.FeatureRenderer.lastFeatureAdded,a);this.setVisible(jalview.appletgui.FeatureRenderer.lastFeatureAdded);this.findAllFeatures(!1)}else return!1;else{b=b[this.featureIndex];if(r.accept){b.type=jalview.appletgui.FeatureRenderer.lastFeatureAdded;b.featureGroup=jalview.appletgui.FeatureRenderer.lastFeatureGroupAdded;b.description=
2668 jalview.appletgui.FeatureRenderer.lastDescriptionAdded;this.colourPanel.isGcol||this.setColour(b.type,this.colourPanel.getBackground());try{b.begin=Integer.parseInt(j.getText()),b.end=Integer.parseInt(n.getText())}catch(v){if(!y(v,NumberFormatException))throw v;}e.parseDescriptionHTML(b,!1);this.setVisible(jalview.appletgui.FeatureRenderer.lastFeatureAdded)}this.deleteFeature&&a[0].deleteFeature(b)}null!=this.av.featureSettings&&this.av.featureSettings.refreshTable();d.paintAlignment(!0);return!0},
2669 "~A,~A,~B,jalview.appletgui.AlignmentPanel");c$.$FeatureRenderer$FeatureColourPanel$=function(){A(self.c$);c$=s(function(){O(this,arguments);this.label="";this.maxCol=null;this.isGcol=this.isColourByLabel=!1;r(this,arguments)},jalview.appletgui.FeatureRenderer,"FeatureColourPanel",awt2swing.Panel);d(c$,"updateColor",function(a){var b=null,c=null,d="";if(v(a,java.awt.Color))this.isGcol=!1,b=a,c=null;else if(v(a,jalview.schemes.GraduatedColor))this.isGcol=!0,c=a,b=null;else throw Error(jalview.util.MessageManager.getString("error.invalid_colour_for_mycheckbox"));
2670 null!=b?this.setBackground(a=b):(-1!=c.getThreshType()&&(d+=" "+(1==c.getThreshType()?"(>)":"(<)")),(this.isColourByLabel=c.isColourByLabel())?(this.setBackground(a=java.awt.Color.white),d+=" (by Label)"):(this.setBackground(a=c.getMinColor()),this.maxCol=c.getMaxColor()));this.label=d;this.setBackground(a);this.repaint()},"~O");m(c$,function(){t(this,jalview.appletgui.FeatureRenderer.FeatureColourPanel,[null])});d(c$,"PaintComponent",function(a){var b=this.getSize();this.isGcol&&(this.isColourByLabel?
2671 (a.setColor(java.awt.Color.white),a.fillRect(F(b.width/2),0,F(b.width/2),b.height),a.setColor(java.awt.Color.black),b=new java.awt.Font("Verdana",0,10),a.setFont(b),awt2swing.Util.drawString(a,jalview.util.MessageManager.getString("label.label"),0,0)):(a.setColor(this.maxCol),a.fillRect(F(b.width/2),0,F(b.width/2),b.height)))},"java.awt.Graphics");c$=z()};c$.$FeatureRenderer$1$=function(){A(self.c$);c$=L(jalview.appletgui,"FeatureRenderer$1",null,java.awt.event.ItemListener);e(c$,"itemStateChanged",
2672 function(){var a=this.f$.overlaps.getSelectedIndex();if(-1!=a){this.b$["jalview.appletgui.FeatureRenderer"].featureIndex=a;this.f$.name.setText(this.f$.features[a].getType());this.f$.description.setText(this.f$.features[a].getDescription());this.f$.source.setText(this.f$.features[a].getFeatureGroup());this.f$.start.setText(this.f$.features[a].getBegin()+"");this.f$.end.setText(this.f$.features[a].getEnd()+"");var b=new jalview.datamodel.SearchResults;b.addResult(this.f$.sequences[0],this.f$.features[a].getBegin(),
2673 this.f$.features[a].getEnd());this.f$.ap.seqPanel.seqCanvas.highlightSearchResults(b)}a=this.b$["jalview.appletgui.FeatureRenderer"].getFeatureStyle(this.f$.name.getText());null==a&&(a=(new jalview.schemes.UserColourScheme).createColourFromName(this.f$.name.getText()));this.b$["jalview.appletgui.FeatureRenderer"].colourPanel.updateColor(a)},"java.awt.event.ItemEvent");c$=z()};c$.$FeatureRenderer$2$=function(){A(self.c$);c$=L(jalview.appletgui,"FeatureRenderer$2",null,java.awt.event.ActionListener);
2674 e(c$,"actionPerformed",function(){this.b$["jalview.appletgui.FeatureRenderer"].deleteFeature=!0;this.f$.dialog.setVisible(!1)},"java.awt.event.ActionEvent");c$=z()};c$.$FeatureRenderer$3$=function(){A(self.c$);c$=L(jalview.appletgui,"FeatureRenderer$3",java.awt.event.MouseAdapter);e(c$,"mousePressed",function(){this.b$["jalview.appletgui.FeatureRenderer"].colourPanel.isGcol?(new jalview.appletgui.FeatureColourChooser(this.f$.ap.alignFrame,this.f$.name.getText()),this.f$.dialog.transferFocus()):new jalview.appletgui.UserDefinedColours(this.f$.fr,
2675 this.f$.ap.alignFrame)},"java.awt.event.MouseEvent");c$=z()};G(c$,"lastFeatureAdded",null,"lastFeatureGroupAdded",null,"lastDescriptionAdded",null)});p("jalview.renderer.seqfeatures");q(["jalview.viewmodel.seqfeatures.FeatureRendererModel"],"jalview.renderer.seqfeatures.FeatureRenderer","awt2swing.Util jalview.util.Comparison java.awt.AlphaComposite $.Color java.awt.image.BufferedImage java.lang.Float".split(" "),function(){c$=s(function(){this.fm=null;this.charOffset=0;this.offscreenRender=!1;this.lastSeq=
2676 null;this.s="\x00";this.av_charWidth=this.av_charHeight=this.i=0;this.av_isShowSeqFeatureHeight=this.av_validCharWidth=!1;this.lastSequenceFeatures=this.offscreenImage=null;this.epos=this.spos=this.sfindex=this.sfSize=0;this.transparencyAvailable=!0;r(this,arguments)},jalview.renderer.seqfeatures,"FeatureRenderer",jalview.viewmodel.seqfeatures.FeatureRendererModel);d(c$,"updateAvConfig",function(){this.av_charHeight=this.av.getCharHeight();this.av_charWidth=this.av.getCharWidth();this.av_validCharWidth=
2677 this.av.isValidCharWidth();this.av_isShowSeqFeatureHeight=this.av.isShowSequenceFeaturesHeight()});d(c$,"renderFeature",function(a,b,c,d,e,k,g,h){this.updateAvConfig();if(c<=g&&d>=k){c<k&&(c=k);d>=g&&(d=g);g=h+this.av_charHeight-F(this.av_charHeight/5);for(this.i=c;this.i<=d;this.i++)this.s=b.getCharAt(this.i),jalview.util.Comparison.isGap(this.s)||(a.setColor(e),a.fillRect((this.i-k)*this.av_charWidth,h,this.av_charWidth,this.av_charHeight),!this.offscreenRender&&this.av_validCharWidth&&(a.setColor(java.awt.Color.white),
2678 this.charOffset=F((this.av_charWidth-this.fm.charWidth(this.s))/2),awt2swing.Util.drawString(a,String.valueOf(this.s),this.charOffset+this.av_charWidth*(this.i-k),g)))}},"java.awt.Graphics,jalview.datamodel.SequenceI,~N,~N,java.awt.Color,~N,~N,~N");d(c$,"renderScoreFeature",function(a,b,c,d,e,k,g,h,j){this.updateAvConfig();if(c<=g&&d>=k){c<k&&(c=k);d>=g&&(d=g);g=h+this.av_charHeight-F(this.av_charHeight/5);var n=0,m=this.av_charHeight;0!=j[0]?128>j[1]?(m=F(this.av_charHeight*(128-j[1])/512),n=this.av_charHeight-
2679 F(m/2)):(n=F(this.av_charHeight/2),m=F(this.av_charHeight*(j[1]-128)/512)):(m=F(this.av_charHeight*j[1]/255),n=this.av_charHeight-m);for(this.i=c;this.i<=d;this.i++)this.s=b.getCharAt(this.i),jalview.util.Comparison.isGap(this.s)||(a.setColor(e),c=(this.i-k)*this.av_charWidth,a.drawRect(c,h,this.av_charWidth,this.av_charHeight),a.fillRect(c,h+n,this.av_charWidth,m),!this.offscreenRender&&this.av_validCharWidth&&(a.setColor(java.awt.Color.black),this.charOffset=F((this.av_charWidth-this.fm.charWidth(this.s))/
2680 2),awt2swing.Util.drawString(a,String.valueOf(this.s),this.charOffset+this.av_charWidth*(this.i-k),g)))}},"java.awt.Graphics,jalview.datamodel.SequenceI,~N,~N,java.awt.Color,~N,~N,~N,~A");d(c$,"findFeatureColour",function(a,b,c){return new java.awt.Color(this.findFeatureColour(a.getRGB(),b,c))},"java.awt.Color,jalview.datamodel.SequenceI,~N");d(c$,"findFeatureColour",function(a,b,c){if(!this.av.isShowSequenceFeatures())return a;var d=b.getSequenceFeatures();b!==this.lastSeq?(this.lastSeq=b,this.lastSequenceFeatures=
2681 d,null!=this.lastSequenceFeatures&&(this.sfSize=this.lastSequenceFeatures.length)):this.lastSequenceFeatures!==d&&(this.lastSequenceFeatures=d,null!=this.lastSequenceFeatures&&(this.sfSize=this.lastSequenceFeatures.length));if(null==this.lastSequenceFeatures||0==this.sfSize)return a;if(jalview.util.Comparison.isGap(this.lastSeq.getCharAt(c)))return java.awt.Color.white.getRGB();1!=this.transparency&&null==this.offscreenImage&&(this.offscreenImage=new java.awt.image.BufferedImage(1,1,2));this.currentColour=
2682 null;this.offscreenRender=!0;if(null!=this.offscreenImage)return this.offscreenImage.setRGB(0,0,a),this.drawSequence(this.offscreenImage.getGraphics(),this.lastSeq,c,c,0),this.offscreenImage.getRGB(0,0);this.drawSequence(null,this.lastSeq,this.lastSeq.findPosition(c),-1,-1);return null==this.currentColour?a:this.currentColour.intValue()},"~N,jalview.datamodel.SequenceI,~N");d(c$,"drawSequence",function(a,b,c,d,e){var k=b.getSequenceFeatures();if(!(null==k||0==k.length)){null!=a&&(this.fm=a.getFontMetrics());
2683 this.updateFeatures();if(null==this.lastSeq||b!==this.lastSeq||k!==this.lastSequenceFeatures)this.lastSeq=b,this.lastSequenceFeatures=k;1!=this.transparency&&null!=a&&a.setComposite(java.awt.AlphaComposite.getInstance(3,this.transparency));this.offscreenRender||(this.spos=this.lastSeq.findPosition(c),this.epos=this.lastSeq.findPosition(d));this.sfSize=this.lastSequenceFeatures.length;for(var g=0;g<this.renderOrder.length;g++)if(k=this.renderOrder[g],null!=k&&this.showFeatureOfType(k))for(this.sfindex=
2684 0;this.sfindex<this.sfSize;this.sfindex++){var h=this.lastSequenceFeatures[this.sfindex];if(h.type.equals(k)&&!(null!=this.featureGroups&&null!=h.featureGroup&&0!=h.featureGroup.length&&this.featureGroups.containsKey(h.featureGroup)&&!this.featureGroups.get(h.featureGroup).booleanValue())&&(this.offscreenRender||!(h.getBegin()>this.epos||h.getEnd()<this.spos)))this.offscreenRender&&null==this.offscreenImage?h.begin<=c&&h.end>=c&&(this.currentColour=new Integer(this.getColour(h).getRGB())):h.type.equals("disulfide bond")?
2685 (this.renderFeature(a,b,b.findIndex(h.begin)-1,b.findIndex(h.begin)-1,this.getColour(h),c,d,e),this.renderFeature(a,b,b.findIndex(h.end)-1,b.findIndex(h.end)-1,this.getColour(h),c,d,e)):this.showFeature(h)&&(this.av_isShowSeqFeatureHeight&&!Float.isNaN(h.score)?this.renderScoreFeature(a,b,b.findIndex(h.begin)-1,b.findIndex(h.end)-1,this.getColour(h),c,d,e,this.normaliseScore(h)):this.renderFeature(a,b,b.findIndex(h.begin)-1,b.findIndex(h.end)-1,this.getColour(h),c,d,e))}1!=this.transparency&&(null!=
2686 a&&this.transparencyAvailable)&&a.setComposite(java.awt.AlphaComposite.getInstance(3,1))}},"java.awt.Graphics,jalview.datamodel.SequenceI,~N,~N,~N");d(c$,"setTransparencyAvailable",function(a){this.transparencyAvailable=a},"~B");e(c$,"isTransparencyAvailable",function(){return this.transparencyAvailable});e(c$,"featuresAdded",function(){this.lastSeq=null;this.findAllFeatures()})});p("jalview.viewmodel.seqfeatures");q(["jalview.api.FeatureRenderer","java.beans.PropertyChangeSupport","java.lang.Boolean",
2687 "java.util.Hashtable","java.util.concurrent.ConcurrentHashMap"],"jalview.viewmodel.seqfeatures.FeatureRendererModel","jalview.schemes.GraduatedColor $.UserColourScheme jalview.util.QuickSort jalview.viewmodel.seqfeatures.FeatureRendererSettings $.FeaturesDisplayed java.awt.Color java.lang.Error $.Float java.util.ArrayList $.Arrays".split(" "),function(){c$=s(function(){this.transparency=1;this.minmax=this.av=this.changeSupport=this.renderOrder=this.currentColour=this.featureGroups=this.featureColours=
2688 null;this.findingFeatures=this.newFeatureAdded=!1;this.featureOrder=this.firing=null;r(this,arguments)},jalview.viewmodel.seqfeatures,"FeatureRendererModel",null,jalview.api.FeatureRenderer);J(c$,function(){this.featureColours=new java.util.concurrent.ConcurrentHashMap;this.featureGroups=new java.util.concurrent.ConcurrentHashMap;this.changeSupport=new java.beans.PropertyChangeSupport(this);this.minmax=new java.util.Hashtable;this.firing=Boolean.FALSE});e(c$,"getViewport",function(){return this.av});
2689 d(c$,"getSettings",function(){return new jalview.viewmodel.seqfeatures.FeatureRendererSettings(this)});d(c$,"transferSettings",function(a){this.renderOrder=a.renderOrder;this.featureGroups=a.featureGroups;this.featureColours=a.featureColours;this.transparency=a.transparency;this.featureOrder=a.featureOrder},"jalview.viewmodel.seqfeatures.FeatureRendererSettings");d(c$,"transferSettings",function(a){var b=new jalview.viewmodel.seqfeatures.FeatureRendererSettings(a);this.renderOrder=b.renderOrder;this.featureGroups=
2690 b.featureGroups;this.featureColours=b.featureColours;this.transparency=b.transparency;this.featureOrder=b.featureOrder;if(null!=this.av&&this.av!==a.getViewport()&&null!=a.getFeaturesDisplayed())if(b=this.getFeaturesDisplayed(),null==b)this.setFeaturesDisplayedFrom(a.getFeaturesDisplayed());else{b.clear();for(a=a.getFeaturesDisplayed().getVisibleFeatures();a.hasNext();)b.setVisible(a.next())}},"jalview.api.FeatureRenderer");d(c$,"setFeaturesDisplayedFrom",function(a){this.av.setFeaturesDisplayed(new jalview.viewmodel.seqfeatures.FeaturesDisplayed(a))},
2691 "jalview.api.FeaturesDisplayedI");e(c$,"setVisible",function(a){var b=this.av.getFeaturesDisplayed();null==b&&this.av.setFeaturesDisplayed(b=new jalview.viewmodel.seqfeatures.FeaturesDisplayed);b.isRegistered(a)||this.pushFeatureType(java.util.Arrays.asList(E(-1,[a])));b.setVisible(a)},"~S");e(c$,"setAllVisible",function(a){var b=this.av.getFeaturesDisplayed();null==b&&this.av.setFeaturesDisplayed(b=new jalview.viewmodel.seqfeatures.FeaturesDisplayed);for(var c=new java.util.ArrayList,d,e=a.iterator();e.hasNext()&&
2692 ((d=e.next())||1);)b.isRegistered(d)||c.add(d);0<c.size()&&this.pushFeatureType(c);b.setAllVisible(a)},"java.util.List");d(c$,"pushFeatureType",function(a){var b=a.size(),c=Array((null==this.renderOrder?0:this.renderOrder.length)+b);a.toArray(c);null!=this.renderOrder&&(System.arraycopy(c,0,c,this.renderOrder.length,b),System.arraycopy(this.renderOrder,0,c,0,this.renderOrder.length));this.renderOrder=c},"java.util.List");d(c$,"getMinMax",function(){return this.minmax});d(c$,"normaliseScore",function(a){var b=
2693 this.minmax.get(a.type)[0],c=S(-1,[0,255]);null!=b&&(0!=c[0]||0>b[0]?(c[0]=1,c[1]=fa(F(128)+127*(a.score/b[1]))):c[1]=Clazz_floatToByte(F(255)*(a.score/b[1])));return c},"jalview.datamodel.SequenceFeature");d(c$,"updateFeatures",function(){if(null==this.av.getFeaturesDisplayed()||null==this.renderOrder||this.newFeatureAdded)if(this.findAllFeatures(),1>this.av.getFeaturesDisplayed().getVisibleFeatureCount())return!1;return!0});d(c$,"findAllFeatures",function(){this.firing.equals(Boolean.FALSE)&&(this.firing=
2694 Boolean.TRUE,this.findAllFeatures(!0),this.changeSupport.firePropertyChange("changeSupport",null,null),this.firing=Boolean.FALSE)});e(c$,"findFeaturesAtRes",function(a,b){var c=new java.util.ArrayList,d=a.getSequenceFeatures();if(null!=d)for(var e=0;e<d.length;e++)this.av.areFeaturesDisplayed()&&this.av.getFeaturesDisplayed().isVisible(d[e].getType())&&(null!=d[e].featureGroup&&null!=this.featureGroups&&this.featureGroups.containsKey(d[e].featureGroup)&&!this.featureGroups.get(d[e].featureGroup).booleanValue()||
2695 d[e].getBegin()<=b&&d[e].getEnd()>=b&&c.add(d[e]));return c},"jalview.datamodel.SequenceI,~N");d(c$,"findAllFeatures",function(a){this.newFeatureAdded=!1;if(this.findingFeatures)this.newFeatureAdded=!0;else{this.findingFeatures=!0;null==this.av.getFeaturesDisplayed()&&this.av.setFeaturesDisplayed(new jalview.viewmodel.seqfeatures.FeaturesDisplayed);var b=this.av.getFeaturesDisplayed(),c=new java.util.ArrayList,d=new java.util.ArrayList;if(null!=this.renderOrder)for(var e=0;e<this.renderOrder.length;e++)null!=
2696 this.renderOrder[e]&&d.add(this.renderOrder[e]);null==this.minmax&&(this.minmax=new java.util.Hashtable);for(var k=this.av.getAlignment(),e=0;e<k.getHeight();e++){var g=k.getSequenceAt(e).getSequenceFeatures();if(null!=g)for(var h=0;h<g.length;){if(!b.isRegistered(g[h].getType())){var j=g[h].getFeatureGroup();if(null!=j){var n=this.featureGroups.get(j);null==n&&(n=Boolean.$valueOf(a),this.featureGroups.put(j,n));if(!n.booleanValue()){h++;continue}}!(0==g[h].begin&&0==g[h].end)&&(a&&!d.contains(g[h].getType()))&&
2697 (b.setVisible(g[h].getType()),this.setOrder(g[h].getType(),0))}c.contains(g[h].getType())||c.add(g[h].getType());Float.isNaN(g[h].score)||(j=1<=g[h].getBegin()?0:1,n=this.minmax.get(g[h].getType()),null==n&&(n=E(-1,[null,null]),this.minmax.put(g[h].getType(),n)),null==n[j]?n[j]=Q(-1,[g[h].score,g[h].score]):(n[j][0]>g[h].score&&(n[j][0]=g[h].score),n[j][1]<g[h].score&&(n[j][1]=g[h].score)));h++}}this.updateRenderOrder(c);this.findingFeatures=!1}},"~B");d(c$,"updateRenderOrder",function(a){a=new java.util.ArrayList(a);
2698 var b=this.renderOrder;this.renderOrder=Array(a.size());var c,d=null,e=null==this.featureOrder,k=0;if(null!=b&&0<b.length)for(var g=0;g<b.length;g++)null!=b[g]&&(e&&this.setOrder(b[g],1-(1+g)/b.length),a.contains(b[g])&&(this.renderOrder[k++]=b[g],a.remove(b[g]),null!=this.minmax&&(c=this.minmax.get(b[g]),null!=c&&(d=this.featureColours.get(b[g]),null!=d&&(v(d,jalview.schemes.GraduatedColor)&&d.isAutoScale())&&d.updateBounds(c[0][0],c[0][1])))));if(0!=a.size()){for(var g=b=a.size()-1,h=!1,j=Array(a.size()),
2699 n=Q(a.size(),0),m,p=a.iterator();p.hasNext()&&((m=p.next())||1);){j[b]=m;null!=this.minmax&&(c=this.minmax.get(j[b]),null!=c&&(d=this.featureColours.get(j[b]),null!=d&&(v(d,jalview.schemes.GraduatedColor)&&d.isAutoScale())&&d.updateBounds(c[0][0],c[0][1])));if(e||!this.featureOrder.containsKey(j[b]))c=e?a.size():this.featureOrder.size(),this.setOrder(j[b],b/c);n[b]=2-this.featureOrder.get(j[b]).floatValue();b<g&&(h=h||n[b]>n[b+1]);b--}1<g&&h&&jalview.util.QuickSort.sortFloatObject(n,j);System.arraycopy(j,
2700 0,this.renderOrder,k,j.length)}},"java.util.List");e(c$,"getFeatureStyle",function(a){var b=this.featureColours.get(a);null==b&&(b=(new jalview.schemes.UserColourScheme).createColourFromName(a),this.featureColours.put(a,b));return b},"~S");d(c$,"getColour",function(a){var b=this.getFeatureStyle(a);if(v(b,java.awt.Color))return b;if(v(b,jalview.schemes.GraduatedColor))return b.getMaxColor();throw Error("Implementation Error: Unrecognised render object "+b.getClass()+" for features of type "+a);},"~S");
2701 d(c$,"getColour",function(a){var b=this.getFeatureStyle(a.getType());if(v(b,java.awt.Color))return b;if(v(b,jalview.schemes.GraduatedColor))return b.findColor(a);throw Error("Implementation Error: Unrecognised render object "+b.getClass()+" for features of type "+a.getType());},"jalview.datamodel.SequenceFeature");d(c$,"showFeature",function(a){var b=this.getFeatureStyle(a.type);return v(b,jalview.schemes.GraduatedColor)?b.isColored(a):!0},"jalview.datamodel.SequenceFeature");d(c$,"showFeatureOfType",
2702 function(a){return this.av.getFeaturesDisplayed().isVisible(a)},"~S");e(c$,"setColour",function(a,b){this.featureColours.put(a,b)},"~S,~O");d(c$,"setTransparency",function(a){this.transparency=a},"~N");d(c$,"getTransparency",function(){return this.transparency});d(c$,"setOrder",function(a,b){null==this.featureOrder&&(this.featureOrder=new java.util.Hashtable);this.featureOrder.put(a,new Float(b));return b},"~S,~N");d(c$,"getOrder",function(a){return null!=this.featureOrder&&this.featureOrder.containsKey(a)?
2703 this.featureOrder.get(a).floatValue():-1},"~S");e(c$,"getFeatureColours",function(){return new java.util.concurrent.ConcurrentHashMap(this.featureColours)});d(c$,"setFeaturePriority",function(a){this.setFeaturePriority(a,!0)},"~A");d(c$,"setFeaturePriority",function(a,b){var c=null;b?null!=(c=this.av.getFeaturesDisplayed())?this.av.getFeaturesDisplayed().clear():this.av.setFeaturesDisplayed(c=new jalview.viewmodel.seqfeatures.FeaturesDisplayed):c=this.av.getFeaturesDisplayed();if(null!=a&&(this.renderOrder=
2704 Array(a.length),0<a.length))for(var d=0;d<a.length;d++){var e=a[d][0].toString();this.setColour(e,a[d][1]);a[d][2].booleanValue()&&c.setVisible(e);this.renderOrder[a.length-d-1]=e}},"~A,~B");d(c$,"addPropertyChangeListener",function(a){this.changeSupport.addPropertyChangeListener(a)},"java.beans.PropertyChangeListener");d(c$,"removePropertyChangeListener",function(a){this.changeSupport.removePropertyChangeListener(a)},"java.beans.PropertyChangeListener");d(c$,"getAllFeatureColours",function(){return this.featureColours.keySet()});
2705 d(c$,"clearRenderOrder",function(){this.renderOrder=null});d(c$,"hasRenderOrder",function(){return null!=this.renderOrder});d(c$,"getRenderOrder",function(){return null==this.renderOrder?java.util.Arrays.asList(E(-1,[])):java.util.Arrays.asList(this.renderOrder)});d(c$,"getFeatureGroupsSize",function(){return null!=this.featureGroups?0:this.featureGroups.size()});e(c$,"getFeatureGroups",function(){return null==this.featureGroups?java.util.Arrays.asList([]):java.util.Arrays.asList(this.featureGroups.keySet().toArray([]))});
2706 d(c$,"checkGroupVisibility",function(a,b){return this.featureGroups.containsKey(a)?this.featureGroups.get(a).booleanValue():b?(this.featureGroups.put(a,new Boolean(!0)),!0):!1},"~S,~B");e(c$,"getGroups",function(a){if(null!=this.featureGroups){for(var b=new java.util.ArrayList,c,d=this.featureGroups.keySet().iterator();d.hasNext()&&((c=d.next())||1);)this.featureGroups.get(c).booleanValue()==a&&b.add(c);return b}return null},"~B");d(c$,"setGroupVisibility",function(a,b){this.featureGroups.put(a,new Boolean(b))},
2707 "~S,~B");d(c$,"setGroupVisibility",function(a,b){if(null!=a&&0<a.size()&&null!=this.featureGroups)for(var c=!1,d,e=a.iterator();e.hasNext()&&((d=e.next())||1);){var k=this.featureGroups.get(d);this.featureGroups.put(d,new Boolean(b));null!=k&&(c=c||b!=k.booleanValue())}},"java.util.List,~B");e(c$,"getDisplayedFeatureCols",function(){var a=new java.util.Hashtable;if(null==this.getViewport().getFeaturesDisplayed())return a;for(var b=this.getViewport().getFeaturesDisplayed().getVisibleFeatures();b.hasNext();){var c=
2708 b.next();a.put(c,this.getColour(c))}return a});d(c$,"getFeaturesDisplayed",function(){return this.av.getFeaturesDisplayed()});e(c$,"getDisplayedFeatureTypes",function(){var a=null,a=this.getRenderOrder().toArray([]),b=this.av.getFeaturesDisplayed();if(null!=b)for(var c=0;c<a.length;c++)b.isVisible(a[c])||(a[c]=null);return a});e(c$,"getDisplayedFeatureGroups",function(){for(var a=null,b=new java.util.ArrayList,c=this.getFeatureGroups().iterator(),d=!1;c.hasNext();)if(a=c.next(),this.checkGroupVisibility(a,
2709 !1)&&(d=!0,b.add(a)),d)a=Array(b.size()),b.toArray(a);else return null;return a})});p("jalview.api");M(jalview.api,"FeatureRenderer");p("java.util.concurrent");q(["java.util.AbstractMap","$.AbstractSet","$.Iterator","$.Map","$.MapEntry"],"java.util.concurrent.ConcurrentHashMap","java.lang.IllegalArgumentException $.IllegalStateException java.util.AbstractCollection $.Arrays $.ConcurrentModificationException java.util.MapEntry.Type java.util.NoSuchElementException".split(" "),function(){c$=s(function(){this.elementCount=
2710 0;this.elementData=null;this.modCount=this.threshold=this.loadFactor=0;r(this,arguments)},java.util.concurrent,"ConcurrentHashMap",java.util.AbstractMap,[java.util.Map,Cloneable,java.io.Serializable]);d(c$,"newElementArray",function(a){return Array(a)},"~N");m(c$,function(){this.construct(16)});m(c$,function(a){t(this,java.util.concurrent.ConcurrentHashMap,[]);if(0<=a)this.elementCount=0,this.elementData=this.newElementArray(0==a?1:a),this.loadFactor=0.75,this.computeMaxSize();else throw new IllegalArgumentException;
2711 },"~N");m(c$,function(a,b){t(this,java.util.concurrent.ConcurrentHashMap,[]);if(0<=a&&0<b)this.elementCount=0,this.elementData=this.newElementArray(0==a?1:a),this.loadFactor=b,this.computeMaxSize();else throw new IllegalArgumentException;},"~N,~N");m(c$,function(a){this.construct(6>a.size()?11:2*a.size());K(this,java.util.concurrent.ConcurrentHashMap,"putAll",[a])},"java.util.Map");e(c$,"clear",function(){0<this.elementCount&&(this.elementCount=0,java.util.Arrays.fill(this.elementData,null),this.modCount++)});
2712 d(c$,"clone",function(){return this.cloneHM()});d(c$,"cloneHM",function(){try{var a=this.cloneAM();a.elementData=this.newElementArray(this.elementData.length);for(var b,c=0;c<this.elementData.length;c++)if(null!=(b=this.elementData[c]))a.elementData[c]=b.clone();return a}catch(d){if(v(d,CloneNotSupportedException))return null;throw d;}});d(c$,"computeMaxSize",($fz=function(){this.threshold=Math.round(this.elementData.length*this.loadFactor)},$fz.isPrivate=!0,$fz));e(c$,"containsKey",function(a){return null!=
2713 this.getEntry(a)},"~O");d(c$,"keysEqual",function(a,b){return(null==a?0:a.hashCode())!=b.origKeyHash?!1:null==a&&null==b.key?!0:a.equals(b.key)},"~O,java.util.concurrent.ConcurrentHashMap.Entry");e(c$,"containsValue",function(a){if(null!=a)for(var b=this.elementData.length;0<=--b;)for(var c=this.elementData[b];null!=c;){if(a.equals(c.value))return!0;c=c.next}else for(b=this.elementData.length;0<=--b;)for(c=this.elementData[b];null!=c;){if(null==c.value)return!0;c=c.next}return!1},"~O");e(c$,"entrySet",
2714 function(){return new java.util.concurrent.ConcurrentHashMap.ConcurrentHashMapEntrySet(this)});e(c$,"get",function(a){a=this.getEntry(a);return null!=a?a.value:null},"~O");d(c$,"getEntry",function(a){var b=this.getModuloHash(a);return this.findEntry(a,b)},"~O");d(c$,"getModuloHash",function(a){return null==a?0:(a.hashCode()&2147483647)%this.elementData.length},"~O");d(c$,"findEntry",function(a,b){var c;c=this.elementData[b];if(null!=a)for(;null!=c&&!this.keysEqual(a,c);)c=c.next;else for(;null!=c&&
2715 null!=c.key;)c=c.next;return c},"~O,~N");e(c$,"isEmpty",function(){return 0==this.elementCount});e(c$,"keySet",function(){null==this.$keySet&&(this.$keySet=(H("java.util.concurrent.ConcurrentHashMap$1")?0:java.util.concurrent.ConcurrentHashMap.$ConcurrentHashMap$1$(),C(java.util.concurrent.ConcurrentHashMap$1,this,null)));return this.$keySet});e(c$,"put",function(a,b){var c=this.getModuloHash(a),d=this.findEntry(a,c);if(null==d)return this.modCount++,++this.elementCount>this.threshold&&(this.rehash(),
2716 c=null==a?0:(a.hashCode()&2147483647)%this.elementData.length),this.createEntry(a,c,b),null;c=d.value;d.value=b;return c},"~O,~O");d(c$,"createEntry",function(a,b,c){a=new java.util.concurrent.ConcurrentHashMap.Entry(a,c);a.next=this.elementData[b];return this.elementData[b]=a},"~O,~N,~O");d(c$,"putAll",function(a){if(!a.isEmpty()){var b=this.elementCount+a.size();b>this.threshold&&this.rehash(b);this.putAllHM(a)}},"java.util.Map");d(c$,"rehash",function(a){a=0==a?1:a<<1;for(var b=this.newElementArray(a),
2717 c=0;c<this.elementData.length;c++)for(var d=this.elementData[c];null!=d;){var e=d.key,e=null==e?0:(e.hashCode()&2147483647)%a,k=d.next;d.next=b[e];b[e]=d;d=k}this.elementData=b;this.computeMaxSize()},"~N");d(c$,"rehash",function(){this.rehash(this.elementData.length)});e(c$,"remove",function(a){a=this.removeEntry(a);return null!=a?a.value:null},"~O");d(c$,"removeEntry",function(a){var b=0,c,d=null;if(null!=a){b=(a.hashCode()&2147483647)%this.elementData.length;for(c=this.elementData[b];null!=c&&!this.keysEqual(a,
2718 c);)d=c,c=c.next}else for(c=this.elementData[0];null!=c&&null!=c.key;)d=c,c=c.next;if(null==c)return null;null==d?this.elementData[b]=c.next:d.next=c.next;this.modCount++;this.elementCount--;return c},"~O");e(c$,"size",function(){return this.elementCount});e(c$,"values",function(){null==this.valuesCollection&&(this.valuesCollection=(H("java.util.concurrent.ConcurrentHashMap$2")?0:java.util.concurrent.ConcurrentHashMap.$ConcurrentHashMap$2$(),C(java.util.concurrent.ConcurrentHashMap$2,this,null)));
2719 return this.valuesCollection});c$.$ConcurrentHashMap$1$=function(){A(self.c$);c$=L(java.util.concurrent,"ConcurrentHashMap$1",java.util.AbstractSet);e(c$,"contains",function(a){return this.b$["java.util.concurrent.ConcurrentHashMap"].containsKey(a)},"~O");e(c$,"size",function(){return this.b$["java.util.concurrent.ConcurrentHashMap"].size()});e(c$,"clear",function(){this.b$["java.util.concurrent.ConcurrentHashMap"].clear()});e(c$,"remove",function(a){return this.b$["java.util.concurrent.ConcurrentHashMap"].containsKey(a)?
2720 (this.b$["java.util.concurrent.ConcurrentHashMap"].remove(a),!0):!1},"~O");e(c$,"iterator",function(){return new java.util.concurrent.ConcurrentHashMap.ConcurrentHashMapIterator((H("java.util.concurrent.ConcurrentHashMap$1$1")?0:java.util.concurrent.ConcurrentHashMap.$ConcurrentHashMap$1$1$(),C(java.util.concurrent.ConcurrentHashMap$1$1,this,null)),this.b$["java.util.concurrent.ConcurrentHashMap"])});c$=z()};c$.$ConcurrentHashMap$1$1$=function(){A(self.c$);c$=L(java.util.concurrent,"ConcurrentHashMap$1$1",
2721 null,java.util.MapEntry.Type);e(c$,"get",function(a){return a.key},"java.util.MapEntry");c$=z()};c$.$ConcurrentHashMap$2$=function(){A(self.c$);c$=L(java.util.concurrent,"ConcurrentHashMap$2",java.util.AbstractCollection);e(c$,"contains",function(a){return this.b$["java.util.concurrent.ConcurrentHashMap"].containsValue(a)},"~O");e(c$,"size",function(){return this.b$["java.util.concurrent.ConcurrentHashMap"].size()});e(c$,"clear",function(){this.b$["java.util.concurrent.ConcurrentHashMap"].clear()});
2722 e(c$,"iterator",function(){return new java.util.concurrent.ConcurrentHashMap.ConcurrentHashMapIterator((H("java.util.concurrent.ConcurrentHashMap$2$1")?0:java.util.concurrent.ConcurrentHashMap.$ConcurrentHashMap$2$1$(),C(java.util.concurrent.ConcurrentHashMap$2$1,this,null)),this.b$["java.util.concurrent.ConcurrentHashMap"])});c$=z()};c$.$ConcurrentHashMap$2$1$=function(){A(self.c$);c$=L(java.util.concurrent,"ConcurrentHashMap$2$1",null,java.util.MapEntry.Type);e(c$,"get",function(a){return a.value},
2723 "java.util.MapEntry");c$=z()};A(self.c$);c$=s(function(){this.origKeyHash=0;this.next=null;r(this,arguments)},java.util.concurrent.ConcurrentHashMap,"Entry",java.util.MapEntry);m(c$,function(a,b){t(this,java.util.concurrent.ConcurrentHashMap.Entry,[a,b]);this.origKeyHash=null==a?0:a.hashCode()},"~O,~O");d(c$,"clone",function(){var a=K(this,java.util.concurrent.ConcurrentHashMap.Entry,"clone",[]);null!=this.next&&(a.next=this.next.clone());return a});c$=z();A(self.c$);c$=s(function(){this.expectedModCount=
2724 this.position=0;this.type=null;this.canRemove=!1;this.associatedMap=this.lastEntry=this.entry=null;r(this,arguments)},java.util.concurrent.ConcurrentHashMap,"ConcurrentHashMapIterator",null,java.util.Iterator);m(c$,function(a,b){this.associatedMap=b;this.type=a;this.expectedModCount=b.modCount},"java.util.MapEntry.Type,java.util.concurrent.ConcurrentHashMap");e(c$,"hasNext",function(){if(null!=this.entry)return!0;for(;this.position<this.associatedMap.elementData.length;)if(null==this.associatedMap.elementData[this.position])this.position++;
2725 else return!0;return!1});d(c$,"checkConcurrentMod",function(){if(this.expectedModCount!=this.associatedMap.modCount)throw new java.util.ConcurrentModificationException;});e(c$,"next",function(){this.checkConcurrentMod();if(!this.hasNext())throw new java.util.NoSuchElementException;var a;null==this.entry?(a=this.lastEntry=this.associatedMap.elementData[this.position++],this.entry=this.lastEntry.next):(this.lastEntry.next!==this.entry&&(this.lastEntry=this.lastEntry.next),a=this.entry,this.entry=this.entry.next);
2726 this.canRemove=!0;return this.type.get(a)});e(c$,"remove",function(){this.checkConcurrentMod();if(!this.canRemove)throw new IllegalStateException;this.canRemove=!1;this.associatedMap.modCount++;if(this.lastEntry.next===this.entry){for(;null==this.associatedMap.elementData[--this.position];);this.associatedMap.elementData[this.position]=this.associatedMap.elementData[this.position].next;this.entry=null}else this.lastEntry.next=this.entry;this.associatedMap.elementCount--;this.expectedModCount++});
2727 c$=z();A(self.c$);c$=s(function(){this.associatedMap=null;r(this,arguments)},java.util.concurrent.ConcurrentHashMap,"ConcurrentHashMapEntrySet",java.util.AbstractSet);m(c$,function(a){t(this,java.util.concurrent.ConcurrentHashMap.ConcurrentHashMapEntrySet,[]);this.associatedMap=a},"java.util.concurrent.ConcurrentHashMap");d(c$,"hashMap",function(){return this.associatedMap});e(c$,"size",function(){return this.associatedMap.elementCount});e(c$,"clear",function(){this.associatedMap.clear()});e(c$,"remove",
2728 function(a){return this.contains(a)?(this.associatedMap.remove(a.getKey()),!0):!1},"~O");e(c$,"contains",function(a){if(v(a,java.util.Map.Entry)){var b=this.associatedMap.getEntry(a.getKey());return a.equals(b)}return!1},"~O");e(c$,"iterator",function(){return new java.util.concurrent.ConcurrentHashMap.ConcurrentHashMapIterator((H("java.util.concurrent.ConcurrentHashMap$ConcurrentHashMapEntrySet$1")?0:java.util.concurrent.ConcurrentHashMap.ConcurrentHashMapEntrySet.$ConcurrentHashMap$ConcurrentHashMapEntrySet$1$(),
2729 C(java.util.concurrent.ConcurrentHashMap$ConcurrentHashMapEntrySet$1,this,null)),this.associatedMap)});c$.$ConcurrentHashMap$ConcurrentHashMapEntrySet$1$=function(){A(self.c$);c$=L(java.util.concurrent,"ConcurrentHashMap$ConcurrentHashMapEntrySet$1",null,java.util.MapEntry.Type);e(c$,"get",function(a){return a},"java.util.MapEntry");c$=z()};c$=z();G(c$,"DEFAULT_SIZE",16)});p("jalview.viewmodel.seqfeatures");q(null,"jalview.viewmodel.seqfeatures.FeatureRendererSettings",["jalview.schemes.GraduatedColor",
2730 "java.util.Arrays","java.util.concurrent.ConcurrentHashMap"],function(){c$=s(function(){this.featureColours=this.featureGroups=this.renderOrder=null;this.transparency=0;this.featureOrder=null;r(this,arguments)},jalview.viewmodel.seqfeatures,"FeatureRendererSettings",null,Cloneable);m(c$,function(a,b,c,d,e){this.renderOrder=java.util.Arrays.copyOf(a,a.length);this.featureGroups=new java.util.concurrent.ConcurrentHashMap(b);this.featureColours=new java.util.concurrent.ConcurrentHashMap(c);this.transparency=
2731 d;this.featureOrder=new java.util.concurrent.ConcurrentHashMap(e)},"~A,java.util.Hashtable,java.util.Hashtable,~N,java.util.Hashtable");m(c$,function(a){this.renderOrder=null;this.featureGroups=new java.util.concurrent.ConcurrentHashMap;this.featureColours=new java.util.concurrent.ConcurrentHashMap;this.featureOrder=new java.util.concurrent.ConcurrentHashMap;null!=a.renderOrder&&(this.renderOrder=Array(a.renderOrder.length),System.arraycopy(a.renderOrder,0,this.renderOrder,0,a.renderOrder.length));
2732 null!=a.featureGroups&&(this.featureGroups=new java.util.concurrent.ConcurrentHashMap(a.featureGroups));null!=a.featureColours&&(this.featureColours=new java.util.concurrent.ConcurrentHashMap(a.featureColours));for(var b=a.featureColours.keySet().iterator();b.hasNext();){var c=b.next(),d=this.featureColours.get(c);v(d,jalview.schemes.GraduatedColor)&&this.featureColours.put(c,new jalview.schemes.GraduatedColor(d))}this.transparency=a.transparency;null!=a.featureOrder&&(this.featureOrder=new java.util.concurrent.ConcurrentHashMap(a.featureOrder))},
2733 "jalview.viewmodel.seqfeatures.FeatureRendererModel")});p("jalview.viewmodel.seqfeatures");q(["jalview.api.FeaturesDisplayedI","java.util.HashSet"],"jalview.viewmodel.seqfeatures.FeaturesDisplayed",null,function(){c$=s(function(){this.featuresRegistered=this.featuresDisplayed=null;r(this,arguments)},jalview.viewmodel.seqfeatures,"FeaturesDisplayed",null,jalview.api.FeaturesDisplayedI);J(c$,function(){this.featuresDisplayed=new java.util.HashSet;this.featuresRegistered=new java.util.HashSet});m(c$,
2734 function(a){a=a.getVisibleFeatures();for(var b;a.hasNext();)b=a.next(),this.featuresDisplayed.add(b),this.featuresRegistered.add(b)},"jalview.api.FeaturesDisplayedI");m(c$,function(){});d(c$,"getVisibleFeatures",function(){return this.featuresDisplayed.iterator()});e(c$,"isVisible",function(a){return this.featuresDisplayed.contains(a)},"~S");e(c$,"areVisible",function(a){return this.featuresDisplayed.containsAll(a)},"java.util.Collection");e(c$,"clear",function(){this.featuresDisplayed.clear();this.featuresRegistered.clear()});
2735 e(c$,"setAllVisible",function(a){this.featuresDisplayed.addAll(a);this.featuresRegistered.addAll(a)},"java.util.Collection");e(c$,"setAllRegisteredVisible",function(){this.featuresDisplayed.addAll(this.featuresRegistered)});e(c$,"setVisible",function(a){this.featuresDisplayed.add(a);this.featuresRegistered.add(a)},"~S");e(c$,"isRegistered",function(a){return this.featuresRegistered.contains(a)},"~S");e(c$,"getVisibleFeatureCount",function(){return this.featuresDisplayed.size()});e(c$,"getRegisterdFeaturesCount",
2736 function(){return this.featuresRegistered.size()})});p("jalview.api");M(jalview.api,"FeaturesDisplayedI");p("java.awt");q(["java.awt.Composite"],"java.awt.AlphaComposite",["java.lang.Float","$.IllegalArgumentException","jssun.java2d.SunCompositeContext"],function(){c$=s(function(){this.rule=this.extraAlpha=0;r(this,arguments)},java.awt,"AlphaComposite",null,java.awt.Composite);m(c$,function(a){this.construct(a,1)},"~N");m(c$,function(a,b){if(0>b||1<b)throw new IllegalArgumentException("alpha value out of range");
2737 if(1>a||12<a)throw new IllegalArgumentException("unknown composite rule");this.rule=a;this.extraAlpha=b},"~N,~N");c$.getInstance=d(c$,"getInstance",function(a){switch(a){case 1:return java.awt.AlphaComposite.Clear;case 2:return java.awt.AlphaComposite.Src;case 9:return java.awt.AlphaComposite.Dst;case 3:return java.awt.AlphaComposite.SrcOver;case 4:return java.awt.AlphaComposite.DstOver;case 5:return java.awt.AlphaComposite.SrcIn;case 6:return java.awt.AlphaComposite.DstIn;case 7:return java.awt.AlphaComposite.SrcOut;
2738 case 8:return java.awt.AlphaComposite.DstOut;case 10:return java.awt.AlphaComposite.SrcAtop;case 11:return java.awt.AlphaComposite.DstAtop;case 12:return java.awt.AlphaComposite.Xor;default:throw new IllegalArgumentException("unknown composite rule");}},"~N");c$.getInstance=d(c$,"getInstance",function(a,b){return 1==b?java.awt.AlphaComposite.getInstance(a):new java.awt.AlphaComposite(a,b)},"~N,~N");e(c$,"createContext",function(a,b){return new jssun.java2d.SunCompositeContext(this,a,b)},"java.awt.image.ColorModel,java.awt.image.ColorModel,java.awt.RenderingHints");
2739 d(c$,"getAlpha",function(){return this.extraAlpha});d(c$,"getRule",function(){return this.rule});d(c$,"derive",function(a){return this.rule==a?this:java.awt.AlphaComposite.getInstance(a,this.extraAlpha)},"~N");d(c$,"derive",function(a){return this.extraAlpha==a?this:java.awt.AlphaComposite.getInstance(this.rule,a)},"~N");e(c$,"hashCode",function(){return 31*Float.floatToIntBits(this.extraAlpha)+this.rule});e(c$,"equals",function(a){return!v(a,java.awt.AlphaComposite)||this.rule!=a.rule||this.extraAlpha!=
2740 a.extraAlpha?!1:!0},"~O");G(c$,"CLEAR",1,"SRC",2,"DST",9,"SRC_OVER",3,"DST_OVER",4,"SRC_IN",5,"DST_IN",6,"SRC_OUT",7,"DST_OUT",8,"SRC_ATOP",10,"DST_ATOP",11,"XOR",12);c$.Clear=c$.prototype.Clear=new java.awt.AlphaComposite(1);c$.Src=c$.prototype.Src=new java.awt.AlphaComposite(2);c$.Dst=c$.prototype.Dst=new java.awt.AlphaComposite(9);c$.SrcOver=c$.prototype.SrcOver=new java.awt.AlphaComposite(3);c$.DstOver=c$.prototype.DstOver=new java.awt.AlphaComposite(4);c$.SrcIn=c$.prototype.SrcIn=new java.awt.AlphaComposite(5);
2741 c$.DstIn=c$.prototype.DstIn=new java.awt.AlphaComposite(6);c$.SrcOut=c$.prototype.SrcOut=new java.awt.AlphaComposite(7);c$.DstOut=c$.prototype.DstOut=new java.awt.AlphaComposite(8);c$.SrcAtop=c$.prototype.SrcAtop=new java.awt.AlphaComposite(10);c$.DstAtop=c$.prototype.DstAtop=new java.awt.AlphaComposite(11);c$.Xor=c$.prototype.Xor=new java.awt.AlphaComposite(12);G(c$,"MIN_RULE",1,"MAX_RULE",12)});p("java.awt");M(java.awt,"Composite");p("jssun.java2d");q(["java.awt.CompositeContext"],"jssun.java2d.SunCompositeContext",
2742 ["java.lang.NullPointerException","java.awt.image.BufferedImage","$.WritableRaster","jssun.java2d.loops.CompositeType"],function(){c$=s(function(){this.comptype=this.composite=this.dstCM=this.srcCM=null;r(this,arguments)},jssun.java2d,"SunCompositeContext",null,java.awt.CompositeContext);m(c$,function(a,b,c){if(null==b)throw new NullPointerException("Source color model cannot be null");if(null==c)throw new NullPointerException("Destination color model cannot be null");this.srcCM=b;this.dstCM=c;this.composite=
2743 a;this.comptype=jssun.java2d.loops.CompositeType.forAlphaComposite(a)},"java.awt.AlphaComposite,java.awt.image.ColorModel,java.awt.image.ColorModel");e(c$,"dispose",function(){});e(c$,"compose",function(a,b,c){var d;b!==c&&c.setDataElementsRaster(0,0,b);v(a,java.awt.image.WritableRaster)?d=a:(d=a.createCompatibleWritableRaster(),d.setDataElements(0,0,a));Math.min(d.getWidth(),b.getWidth());Math.min(d.getHeight(),b.getHeight());new java.awt.image.BufferedImage(this.srcCM,d,this.srcCM.isAlphaPremultiplied(),
2744 null);new java.awt.image.BufferedImage(this.dstCM,c,this.dstCM.isAlphaPremultiplied(),null)},"java.awt.image.Raster,java.awt.image.Raster,java.awt.image.WritableRaster")});p("java.awt");M(java.awt,"CompositeContext");p("java.awt.image");q(["java.awt.Image","$.Transparency"],"java.awt.image.BufferedImage","java.awt.Image java.lang.IllegalArgumentException $.NullPointerException java.util.Hashtable java.awt.GraphicsEnvironment $.Point $.Rectangle java.awt.image.ColorModel $.DirectColorModel $.Raster jssun.awt.image.OffScreenImageSource".split(" "),
2745 function(){c$=s(function(){this.imageType=0;this.properties=this.osis=this.raster=this.colorModel=null;this.$isAlphaPremultiplied=!1;r(this,arguments)},java.awt.image,"BufferedImage",java.awt.Image,java.awt.Transparency);m(c$,function(a,b,c){t(this,java.awt.image.BufferedImage,[]);switch(c){case 1:this.colorModel=new java.awt.image.DirectColorModel(24,16711680,65280,255,0);this.raster=this.colorModel.createCompatibleWritableRaster(a,b);break;case 2:this.colorModel=java.awt.image.ColorModel.getRGBdefault();
2746 this.raster=this.colorModel.createCompatibleWritableRaster(a,b);break;default:throw new IllegalArgumentException("Unknown image type "+c);}this.imageType=c},"~N,~N,~N");m(c$,function(a,b,c,d){t(this,java.awt.image.BufferedImage,[]);if(0!=b.minX||0!=b.minY)throw new IllegalArgumentException("Raster "+b+" has minX or minY not equal to zero: "+b.minX+" "+b.minY);this.colorModel=a;this.raster=b;this.properties=d;a.getColorSpace()},"java.awt.image.ColorModel,java.awt.image.WritableRaster,~B,java.util.Hashtable");
2747 d(c$,"getType",function(){return this.imageType});d(c$,"getColorModel",function(){return this.colorModel});d(c$,"getRaster",function(){return this.raster});d(c$,"getRGB",function(){return 0},"~N,~N");d(c$,"getRGB",function(a,b,c,d,e){return e},"~N,~N,~N,~N,~A,~N,~N");d(c$,"setRGB",function(){},"~N,~N,~N");d(c$,"setRGB",function(){},"~N,~N,~N,~N,~A,~N,~N");d(c$,"getWidth",function(){return this.raster.getWidth()});d(c$,"getHeight",function(){return this.raster.getHeight()});d(c$,"getWidth",function(){return this.raster.getWidth()},
2748 "java.awt.image.ImageObserver");d(c$,"getHeight",function(){return this.raster.getHeight()},"java.awt.image.ImageObserver");e(c$,"getSource",function(){null==this.osis&&(null==this.properties&&(this.properties=new java.util.Hashtable),this.osis=new jssun.awt.image.OffScreenImageSource(this,this.properties));return this.osis});d(c$,"getProperty",function(a){return this.getProperty(a)},"~S,java.awt.image.ImageObserver");d(c$,"getProperty",function(a){if(null==a)throw new NullPointerException("null property name is not allowed");
2749 if(null==this.properties)return java.awt.Image.UndefinedProperty;a=this.properties.get(a);null==a&&(a=java.awt.Image.UndefinedProperty);return a},"~S");e(c$,"getGraphics",function(){return this.createGraphics()});d(c$,"createGraphics",function(){return java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment().createGraphics(this)});d(c$,"getSubimage",function(a,b,c,d){return new java.awt.image.BufferedImage(this.colorModel,this.raster.createWritableChild(a,b,c,d,0,0,null),this.colorModel.isAlphaPremultiplied(),
2750 this.properties)},"~N,~N,~N,~N");d(c$,"isAlphaPremultiplied",function(){return!1});e(c$,"toString",function(){return String.instantialize("BufferedImage@"+Integer.toHexString(this.hashCode())+": type = "+this.imageType+" "+this.colorModel+" "+this.raster)});d(c$,"getSources",function(){return null});d(c$,"getPropertyNames",function(){return null});d(c$,"getMinX",function(){return this.raster.getMinX()});d(c$,"getMinY",function(){return this.raster.getMinY()});d(c$,"getSampleModel",function(){return this.raster.getSampleModel()});
2751 d(c$,"getNumXTiles",function(){return 1});d(c$,"getNumYTiles",function(){return 1});d(c$,"getMinTileX",function(){return 0});d(c$,"getMinTileY",function(){return 0});d(c$,"getTileWidth",function(){return this.raster.getWidth()});d(c$,"getTileHeight",function(){return this.raster.getHeight()});d(c$,"getTileGridXOffset",function(){return 0});d(c$,"getTileGridYOffset",function(){return 0});d(c$,"getTile",function(){return this.raster},"~N,~N");d(c$,"getData",function(){for(var a=this.raster.getWidth(),
2752 b=this.raster.getHeight(),c=this.raster.getMinX(),d=this.raster.getMinY(),e=java.awt.image.Raster.createWritableRaster(this.raster.getSampleModel(),new java.awt.Point(this.raster.getSampleModelTranslateX(),this.raster.getSampleModelTranslateY())),k=null,g=d;g<d+b;g++)k=this.raster.getDataElements(c,g,a,1,k),e.setDataElements(c,g,a,1,k);return e});d(c$,"getData",function(a){var b=this.raster.getSampleModel().createCompatibleSampleModel(a.width,a.height),b=java.awt.image.Raster.createWritableRaster(b,
2753 a.getLocation()),c=a.width,d=a.height,e=a.x;a=a.y;for(var k=null,g=a;g<a+d;g++)k=this.raster.getDataElements(e,g,c,1,k),b.setDataElements(e,g,c,1,k);return b},"java.awt.Rectangle");d(c$,"copyData",function(a){if(null==a)return this.getData();for(var b=a.getWidth(),c=a.getHeight(),d=a.getMinX(),e=a.getMinY(),k=null,g=e;g<e+c;g++)k=this.raster.getDataElements(d,g,b,1,k),a.setDataElements(d,g,b,1,k);return a},"java.awt.image.WritableRaster");d(c$,"setData",function(a){var b=a.getWidth(),c=a.getHeight(),
2754 d=a.getMinX(),e=a.getMinY(),k=null,b=new java.awt.Rectangle(d,e,b,c),c=new java.awt.Rectangle(0,0,this.raster.width,this.raster.height),e=b.intersection(c);if(!e.isEmpty())for(var b=e.width,c=e.height,d=e.x,g=e=e.y;g<e+c;g++)k=a.getPixels(d,g,b,1,k),this.raster.setPixels(d,g,b,1,k)},"java.awt.image.Raster");e(c$,"getTransparency",function(){return this.colorModel.getTransparency()});G(c$,"TYPE_CUSTOM",0,"TYPE_INT_RGB",1,"TYPE_INT_ARGB",2)});p("java.awt");c$=s(function(){this.accelerationPriority=
2755 0.5;r(this,arguments)},java.awt,"Image");d(c$,"getScaledInstance",function(){return null},"~N,~N,~N");d(c$,"flush",function(){});d(c$,"setAccelerationPriority",function(){},"~N");d(c$,"getAccelerationPriority",function(){return this.accelerationPriority});c$.UndefinedProperty=c$.prototype.UndefinedProperty=new W._O;G(c$,"SCALE_DEFAULT",1,"SCALE_FAST",2,"SCALE_SMOOTH",4,"SCALE_REPLICATE",8,"SCALE_AREA_AVERAGING",16);p("java.awt.image");q(["java.awt.image.PackedColorModel"],"java.awt.image.DirectColorModel",
2756 "java.lang.ClassCastException $.IllegalArgumentException $.UnsupportedOperationException java.awt.color.ColorSpace java.awt.image.ColorModel $.Raster".split(" "),function(){c$=s(function(){this.alpha_mask=this.blue_mask=this.green_mask=this.red_mask=0;this.is_LinearRGB=!1;this.lRGBprecision=0;this.fromsRGB8LUT16=this.fromsRGB8LUT8=this.tosRGB8LUT=null;r(this,arguments)},java.awt.image,"DirectColorModel",java.awt.image.PackedColorModel);m(c$,function(a,b,c,d){this.construct(a,b,c,d,0)},"~N,~N,~N,~N");
2757 m(c$,function(a,b,c,d,e){t(this,java.awt.image.DirectColorModel,[java.awt.color.ColorSpace.getInstance(1E3),a,b,c,d,e,!1,0==e?1:3,java.awt.image.ColorModel.getDefaultTransferType(a)])},"~N,~N,~N,~N,~N");m(c$,function(a,b,c,d,e,k,g,h){t(this,java.awt.image.DirectColorModel,[a,b,c,d,e,k,g,0==k?1:3,h])},"java.awt.color.ColorSpace,~N,~N,~N,~N,~N,~B,~N");d(c$,"getRedMask",function(){return this.maskArray[0]});d(c$,"getGreenMask",function(){return this.maskArray[1]});d(c$,"getBlueMask",function(){return this.maskArray[2]});
2758 d(c$,"getAlphaMask",function(){return this.supportsAlpha?this.maskArray[3]:0});d(c$,"getDefaultRGBComponents",function(a){a=this.getComponents(a,null,0);a=this.getNormalizedComponents(a,0,null,0);return this.colorSpace.toRGB(a)},"~N");d(c$,"getsRGBComponentFromsRGB",function(a,b){var c=(a&this.maskArray[b])>>>this.maskOffsets[b];if(this.$isAlphaPremultiplied)var d=(a&this.maskArray[3])>>>this.maskOffsets[3],c=0==d?0:I(255*c*this.scaleFactors[b]/(d*this.scaleFactors[3])+0.5);else 1!=this.scaleFactors[b]&&
2759 (c=I(c*this.scaleFactors[b]+0.5));return c},"~N,~N");d(c$,"getsRGBComponentFromLinearRGB",function(a,b){var c=(a&this.maskArray[b])>>>this.maskOffsets[b];if(this.$isAlphaPremultiplied)var d=(1<<this.lRGBprecision)-1,e=(a&this.maskArray[3])>>>this.maskOffsets[3],c=0==e?0:I(c*this.scaleFactors[b]*d/(e*this.scaleFactors[3])+0.5);else this.nBits[b]!=this.lRGBprecision&&(c=16==this.lRGBprecision?I(257*c*this.scaleFactors[b]+0.5):I(c*this.scaleFactors[b]+0.5));return this.tosRGB8LUT[c]&255},"~N,~N");d(c$,
2760 "getRed",function(a){if(this.is_sRGB)return this.getsRGBComponentFromsRGB(a,0);if(this.is_LinearRGB)return this.getsRGBComponentFromLinearRGB(a,0);a=this.getDefaultRGBComponents(a);return I(255*a[0]+0.5)},"~N");d(c$,"getGreen",function(a){if(this.is_sRGB)return this.getsRGBComponentFromsRGB(a,1);if(this.is_LinearRGB)return this.getsRGBComponentFromLinearRGB(a,1);a=this.getDefaultRGBComponents(a);return I(255*a[1]+0.5)},"~N");d(c$,"getBlue",function(a){if(this.is_sRGB)return this.getsRGBComponentFromsRGB(a,
2761 2);if(this.is_LinearRGB)return this.getsRGBComponentFromLinearRGB(a,2);a=this.getDefaultRGBComponents(a);return I(255*a[2]+0.5)},"~N");d(c$,"getAlpha",function(a){if(!this.supportsAlpha)return 255;a=(a&this.maskArray[3])>>>this.maskOffsets[3];1!=this.scaleFactors[3]&&(a=I(a*this.scaleFactors[3]+0.5));return a},"~N");d(c$,"getRGB",function(a){if(this.is_sRGB||this.is_LinearRGB)return this.getAlpha(a)<<24|this.getRed(a)<<16|this.getGreen(a)<<8|this.getBlue(a)<<0;var b=this.getDefaultRGBComponents(a);
2762 return this.getAlpha(a)<<24|I(255*b[0]+0.5)<<16|I(255*b[1]+0.5)<<8|I(255*b[2]+0.5)<<0},"~N");d(c$,"getRed",function(a){var b=0;switch(this.transferType){case 0:b=a[0]&255;break;case 3:b=a[0];break;default:throw new UnsupportedOperationException("This method has not been implemented for transferType "+this.transferType);}return this.getRed(b)},"~O");d(c$,"getGreen",function(a){var b=0;switch(this.transferType){case 0:b=a[0]&255;break;case 3:b=a[0];break;default:throw new UnsupportedOperationException("This method has not been implemented for transferType "+
2763 this.transferType);}return this.getGreen(b)},"~O");d(c$,"getBlue",function(a){var b=0;switch(this.transferType){case 0:b=a[0]&255;break;case 3:b=a[0];break;default:throw new UnsupportedOperationException("This method has not been implemented for transferType "+this.transferType);}return this.getBlue(b)},"~O");d(c$,"getAlpha",function(a){var b=0;switch(this.transferType){case 0:b=a[0]&255;break;case 3:b=a[0];break;default:throw new UnsupportedOperationException("This method has not been implemented for transferType "+
2764 this.transferType);}return this.getAlpha(b)},"~O");d(c$,"getRGB",function(a){var b=0;switch(this.transferType){case 0:b=a[0]&255;break;case 3:b=a[0];break;default:throw new UnsupportedOperationException("This method has not been implemented for transferType "+this.transferType);}return this.getRGB(b)},"~O");d(c$,"getDataElements",function(a,b){var c=null;3==this.transferType&&null!=b?(c=b,c[0]=0):c=w(1,0);var d=java.awt.image.ColorModel.getRGBdefault();if(this===d||this.equals(d))return c[0]=a,c;
2765 var e,k,g;e=a>>16&255;k=a>>8&255;g=a&255;if(this.is_sRGB||this.is_LinearRGB){var h,j;this.is_LinearRGB?8==this.lRGBprecision?(e=this.fromsRGB8LUT8[e]&255,k=this.fromsRGB8LUT8[k]&255,g=this.fromsRGB8LUT8[g]&255,h=8,j=0.003921569):(e=this.fromsRGB8LUT16[e]&65535,k=this.fromsRGB8LUT16[k]&65535,g=this.fromsRGB8LUT16[g]&65535,h=16,j=1.5259022E-5):(h=8,j=0.003921569);this.supportsAlpha&&(d=a>>24&255,this.$isAlphaPremultiplied&&(j*=0.003921569*d,h=-1),8!=this.nBits[3]&&(d=I(0.003921569*d*((1<<this.nBits[3])-
2766 1)+0.5),d>(1<<this.nBits[3])-1&&(d=(1<<this.nBits[3])-1)),c[0]=d<<this.maskOffsets[3]);this.nBits[0]!=h&&(e=I(e*j*((1<<this.nBits[0])-1)+0.5));this.nBits[1]!=h&&(k=I(k*j*((1<<this.nBits[1])-1)+0.5));this.nBits[2]!=h&&(g=I(g*j*((1<<this.nBits[2])-1)+0.5))}else{h=Q(3,0);j=0.003921569;h[0]=e*j;h[1]=k*j;h[2]=g*j;h=this.colorSpace.fromRGB(h);if(this.supportsAlpha){d=a>>24&255;if(this.$isAlphaPremultiplied){j*=d;for(e=0;3>e;e++)h[e]*=j}8!=this.nBits[3]&&(d=I(0.003921569*d*((1<<this.nBits[3])-1)+0.5),d>
2767 (1<<this.nBits[3])-1&&(d=(1<<this.nBits[3])-1));c[0]=d<<this.maskOffsets[3]}e=I(h[0]*((1<<this.nBits[0])-1)+0.5);k=I(h[1]*((1<<this.nBits[1])-1)+0.5);g=I(h[2]*((1<<this.nBits[2])-1)+0.5)}23<this.maxBits&&(e>(1<<this.nBits[0])-1&&(e=(1<<this.nBits[0])-1),k>(1<<this.nBits[1])-1&&(k=(1<<this.nBits[1])-1),g>(1<<this.nBits[2])-1&&(g=(1<<this.nBits[2])-1));c[0]|=e<<this.maskOffsets[0]|k<<this.maskOffsets[1]|g<<this.maskOffsets[2];switch(this.transferType){case 0:return d=null==b?S(1,0):b,d[0]=255&c[0],
2768 d;case 3:return c}throw new UnsupportedOperationException("This method has not been implemented for transferType "+this.transferType);},"~N,~O");d(c$,"getComponents",function(a,b,c){null==b&&(b=w(c+this.numComponents,0));for(var d=0;d<this.numComponents;d++)b[c+d]=(a&this.maskArray[d])>>>this.maskOffsets[d];return b},"~N,~A,~N");d(c$,"getComponents",function(a,b,c){var d=0;switch(this.transferType){case 0:d=a[0]&255;break;case 3:d=a[0];break;default:throw new UnsupportedOperationException("This method has not been implemented for transferType "+
2769 this.transferType);}return this.getComponents(d,b,c)},"~O,~A,~N");e(c$,"createCompatibleWritableRaster",function(a,b){if(0>=a||0>=b)throw new IllegalArgumentException("Width ("+a+") and height ("+b+") cannot be <= 0");var c;this.supportsAlpha?(c=w(4,0),c[3]=this.alpha_mask):c=w(3,0);c[0]=this.red_mask;c[1]=this.green_mask;c[2]=this.blue_mask;return 8<this.pixel_bits?java.awt.image.Raster.createPackedRaster(3,a,b,c,null):java.awt.image.Raster.createPackedRaster(0,a,b,c,null)},"~N,~N");d(c$,"getDataElement",
2770 function(a,b){for(var c=0,d=0;d<this.numComponents;d++)c|=a[b+d]<<this.maskOffsets[d]&this.maskArray[d];return c},"~A,~N");d(c$,"getDataElements",function(a,b,c){for(var d=0,e=0;e<this.numComponents;e++)d|=a[b+e]<<this.maskOffsets[e]&this.maskArray[e];switch(this.transferType){case 0:return v(c,Array)?(a=c,a[0]=d&255):a=S(-1,[d&255]),a;case 3:return v(c,Array)?(a=c,a[0]=d):a=w(-1,[d]),a;default:throw new ClassCastException("This method has not been implemented for transferType "+this.transferType);
2771 }},"~A,~N,~O");e(c$,"toString",function(){return String.instantialize("DirectColorModel: rmask="+Integer.toHexString(this.red_mask)+" gmask="+Integer.toHexString(this.green_mask)+" bmask="+Integer.toHexString(this.blue_mask)+" amask="+Integer.toHexString(this.alpha_mask))})});p("java.awt.image");q(["java.awt.image.ColorModel"],"java.awt.image.PackedColorModel",["java.lang.IllegalArgumentException"],function(){c$=s(function(){this.scaleFactors=this.maskOffsets=this.maskArray=null;r(this,arguments)},
2772 java.awt.image,"PackedColorModel",java.awt.image.ColorModel);m(c$,function(a,b,c,d,e,k,g){t(this,java.awt.image.PackedColorModel,[b,java.awt.image.PackedColorModel.createBitsArray(c,d),a,0==d?!1:!0,e,k,g]);if(1>b||32<b)throw new IllegalArgumentException("Number of bits must be between 1 and 32.");this.maskArray=w(this.numComponents,0);this.maskOffsets=w(this.numComponents,0);this.scaleFactors=Q(this.numComponents,0);for(b=0;b<this.numColorComponents;b++)this.DecomposeMask(c[b],b,a.getName(b));0!=
2773 d&&(this.DecomposeMask(d,this.numColorComponents,"alpha"),1==this.nBits[this.numComponents-1]&&(this.transparency=2))},"java.awt.color.ColorSpace,~N,~A,~N,~B,~N,~N");m(c$,function(a,b,c,d,e,k,g,h,j){t(this,java.awt.image.PackedColorModel,[b,java.awt.image.PackedColorModel.createBitsArray(c,d,e,k),a,0==k?!1:!0,g,h,j]);if(5!=a.getType())throw new IllegalArgumentException("ColorSpace must be TYPE_RGB.");this.maskArray=w(this.numComponents,0);this.maskOffsets=w(this.numComponents,0);this.scaleFactors=
2774 Q(this.numComponents,0);this.DecomposeMask(c,0,"red");this.DecomposeMask(d,1,"green");this.DecomposeMask(e,2,"blue");0!=k&&(this.DecomposeMask(k,3,"alpha"),1==this.nBits[3]&&(this.transparency=2))},"java.awt.color.ColorSpace,~N,~N,~N,~N,~N,~B,~N,~N");d(c$,"getMask",function(a){return this.maskArray[a]},"~N");d(c$,"getMasks",function(){return this.maskArray.clone()});d(c$,"DecomposeMask",function(a,b,c){var d=0,e=this.nBits[b];this.maskArray[b]=a;if(0!=a)for(;0==(a&1);)a>>>=1,d++;if(d+e>this.pixel_bits)throw new IllegalArgumentException(c+
2775 " mask "+Integer.toHexString(this.maskArray[b])+" overflows pixel (expecting "+this.pixel_bits+" bits");this.maskOffsets[b]=d;this.scaleFactors[b]=0==e?256:255/((1<<e)-1)},"~N,~N,~S");d(c$,"equals",function(a){if(!v(a,java.awt.image.PackedColorModel)||!K(this,java.awt.image.PackedColorModel,"equals",[a]))return!1;var b=a.getNumComponents();if(b!=this.numComponents)return!1;for(var c=0;c<b;c++)if(this.maskArray[c]!=a.getMask(c))return!1;return!0},"~O");c$.createBitsArray=d(c$,"createBitsArray",function(a,
2776 b){for(var c=a.length,d=w(c+(0==b?0:1),0),e=0;e<c;e++)if(d[e]=java.awt.image.PackedColorModel.countBits(a[e]),0>d[e])throw new IllegalArgumentException("Noncontiguous color mask ("+Integer.toHexString(a[e])+"at index "+e);if(0!=b&&(d[c]=java.awt.image.PackedColorModel.countBits(b),0>d[c]))throw new IllegalArgumentException("Noncontiguous alpha mask ("+Integer.toHexString(b));return d},"~A,~N");c$.createBitsArray=d(c$,"createBitsArray",function(a,b,c,d){var e=w(3+(0==d?0:1),0);e[0]=java.awt.image.PackedColorModel.countBits(a);
2777 e[1]=java.awt.image.PackedColorModel.countBits(b);e[2]=java.awt.image.PackedColorModel.countBits(c);if(0>e[0])throw new IllegalArgumentException("Noncontiguous red mask ("+Integer.toHexString(a));if(0>e[1])throw new IllegalArgumentException("Noncontiguous green mask ("+Integer.toHexString(b));if(0>e[2])throw new IllegalArgumentException("Noncontiguous blue mask ("+Integer.toHexString(c));if(0!=d&&(e[3]=java.awt.image.PackedColorModel.countBits(d),0>e[3]))throw new IllegalArgumentException("Noncontiguous alpha mask ("+
2778 Integer.toHexString(d));return e},"~N,~N,~N,~N");c$.countBits=d(c$,"countBits",function(a){var b=0;if(0!=a){for(;0==(a&1);)a>>>=1;for(;1==(a&1);)a>>>=1,b++}return 0!=a?-1:b},"~N")});p("java.awt.image");q(["java.awt.image.MultiPixelPackedSampleModel","$.SinglePixelPackedSampleModel"],"java.awt.image.Raster","java.lang.IllegalArgumentException $.NullPointerException java.awt.Point $.Rectangle java.awt.image.DataBuffer $.DataBufferByte $.DataBufferInt $.RasterFormatException swingjs.api.Interface".split(" "),
2779 function(){c$=s(function(){this.dataBuffer=this.sampleModel=null;this.numDataElements=this.numBands=this.sampleModelTranslateY=this.sampleModelTranslateX=this.height=this.width=this.minY=this.minX=0;this.parent=null;r(this,arguments)},java.awt.image,"Raster");c$.createPackedRaster=d(c$,"createPackedRaster",function(a,b,c,d,e){switch(a){case 0:a=new java.awt.image.DataBufferByte(b*c);break;case 3:a=new java.awt.image.DataBufferInt(b*c);break;default:throw new IllegalArgumentException("Unsupported data type "+
2780 a);}return java.awt.image.Raster.createPackedRaster(a,b,c,b,d,e)},"~N,~N,~N,~A,java.awt.Point");c$.createPackedRaster=d(c$,"createPackedRaster",function(a,b,c,d,e,k){if(0>=d)throw new IllegalArgumentException("Number of bands ("+d+") must be greater than 0");if(0>=e)throw new IllegalArgumentException("Bits per band ("+e+") must be greater than 0");if(1!=d){var g=w(d,0),h=(1<<e)-1,j=(d-1)*e;if(j+e>java.awt.image.DataBuffer.getDataTypeSize(a))throw new IllegalArgumentException("bitsPerBand("+e+") * bands is  greater than data type size.");
2781 switch(a){case 0:case 3:break;default:throw new IllegalArgumentException("Unsupported data type "+a);}for(var n=0;n<d;n++)g[n]=h<<j,j-=e;return java.awt.image.Raster.createPackedRaster(a,b,c,g,k)}switch(a){case 0:a=new java.awt.image.DataBufferByte(F(Math.ceil(b/F(8/e)))*c);break;case 3:a=new java.awt.image.DataBufferInt(F(Math.ceil(b/F(32/e)))*c);break;default:throw new IllegalArgumentException("Unsupported data type "+a);}return java.awt.image.Raster.createPackedRaster(a,b,c,e,k)},"~N,~N,~N,~N,~N,java.awt.Point");
2782 c$.createPackedRaster=d(c$,"createPackedRaster",function(a,b,c,d,e,k){if(null==a)throw new NullPointerException("DataBuffer cannot be null");null==k&&(k=new java.awt.Point(0,0));var g=a.getDataType();b=new java.awt.image.SinglePixelPackedSampleModel(g,b,c,d,e);switch(g){case 0:case 3:break;default:throw new IllegalArgumentException("Unsupported data type "+g);}g=swingjs.api.Interface.getInstance("jssun.awt.image."+(0==g?"Byte":"Integer")+"InterleavedRaster",!0);g.setParams(b,a,k);return g},"java.awt.image.DataBuffer,~N,~N,~N,~A,java.awt.Point");
2783 c$.createPackedRaster=d(c$,"createPackedRaster",function(a,b,c,d,e){if(null==a)throw new NullPointerException("DataBuffer cannot be null");null==e&&(e=new java.awt.Point(0,0));var k=a.getDataType();if(0!=k&&3!=k)throw new IllegalArgumentException("Unsupported data type "+k);if(1!=a.getNumBanks())throw new java.awt.image.RasterFormatException("DataBuffer for packed Rasters must only have 1 bank.");b=new java.awt.image.MultiPixelPackedSampleModel(k,b,c,d);return 0==k&&(1==d||2==d||4==d)?new jssun.awt.image.BytePackedRaster(b,
2784 a,e):new jssun.awt.image.SunWritableRaster(b,a,e)},"java.awt.image.DataBuffer,~N,~N,~N,java.awt.Point");c$.createRaster=d(c$,"createRaster",function(a,b,c){if(null==a||null==b)throw new NullPointerException("SampleModel and DataBuffer cannot be null");null==c&&(c=new java.awt.Point(0,0));var d=a.getDataType();return v(a,java.awt.image.MultiPixelPackedSampleModel)&&0==d&&8>a.getSampleSize(0)?new jssun.awt.image.BytePackedRaster(a,b,c):new java.awt.image.Raster(a,b,c)},"java.awt.image.SampleModel,java.awt.image.DataBuffer,java.awt.Point");
2785 c$.createWritableRaster=d(c$,"createWritableRaster",function(a,b){null==b&&(b=new java.awt.Point(0,0));return java.awt.image.Raster.createWritableRaster(a,a.createDataBuffer(),b)},"java.awt.image.SampleModel,java.awt.Point");c$.createWritableRaster=d(c$,"createWritableRaster",function(a,b,c){if(null==a||null==b)throw new NullPointerException("SampleModel and DataBuffer cannot be null");null==c&&(c=new java.awt.Point(0,0));var d=a.getDataType();return v(a,java.awt.image.MultiPixelPackedSampleModel)&&
2786 0==d&&8>a.getSampleSize(0)?new jssun.awt.image.BytePackedRaster(a,b,c):new jssun.awt.image.SunWritableRaster(a,b,c)},"java.awt.image.SampleModel,java.awt.image.DataBuffer,java.awt.Point");m(c$,function(a,b){this.setRaster(a,a.createDataBuffer(),new java.awt.Rectangle(b.x,b.y,a.getWidth(),a.getHeight()),b,null)},"java.awt.image.SampleModel,java.awt.Point");m(c$,function(a,b,c){this.setRaster(a,b,new java.awt.Rectangle(c.x,c.y,a.getWidth(),a.getHeight()),c,null)},"java.awt.image.SampleModel,java.awt.image.DataBuffer,java.awt.Point");
2787 m(c$,function(){});m(c$,function(a,b,c,d,e){this.setRaster(a,b,c,d,e)},"java.awt.image.SampleModel,java.awt.image.DataBuffer,java.awt.Rectangle,java.awt.Point,java.awt.image.Raster");d(c$,"setRaster",function(a,b,c,d,e){if(null==a||null==b||null==c||null==d)throw new NullPointerException("SampleModel, dataBuffer, aRegion and sampleModelTranslate cannot be null");this.sampleModel=a;this.dataBuffer=b;this.minX=c.x;this.minY=c.y;this.width=c.width;this.height=c.height;if(0>=this.width||0>=this.height)throw new java.awt.image.RasterFormatException("negative or zero "+
2788 (0>=this.width?"width":"height"));if(this.minX+this.width<this.minX)throw new java.awt.image.RasterFormatException("overflow condition for X coordinates of Raster");if(this.minY+this.height<this.minY)throw new java.awt.image.RasterFormatException("overflow condition for Y coordinates of Raster");this.sampleModelTranslateX=d.x;this.sampleModelTranslateY=d.y;this.numBands=a.getNumBands();this.numDataElements=a.getNumDataElements();this.parent=e},"java.awt.image.SampleModel,java.awt.image.DataBuffer,java.awt.Rectangle,java.awt.Point,java.awt.image.Raster");
2789 d(c$,"getParent",function(){return this.parent});d(c$,"getSampleModelTranslateX",function(){return this.sampleModelTranslateX});d(c$,"getSampleModelTranslateY",function(){return this.sampleModelTranslateY});d(c$,"createCompatibleWritableRaster",function(){return new jssun.awt.image.SunWritableRaster(this.sampleModel,new java.awt.Point(0,0))});d(c$,"createCompatibleWritableRaster",function(a,b){if(0>=a||0>=b)throw new java.awt.image.RasterFormatException("negative "+(0>=a?"width":"height"));var c=
2790 this.sampleModel.createCompatibleSampleModel(a,b);return new jssun.awt.image.SunWritableRaster(c,new java.awt.Point(0,0))},"~N,~N");d(c$,"createCompatibleWritableRaster",function(a){if(null==a)throw new NullPointerException("Rect cannot be null");return this.createCompatibleWritableRaster(a.x,a.y,a.width,a.height)},"java.awt.Rectangle");d(c$,"createCompatibleWritableRaster",function(a,b,c,d){return this.createCompatibleWritableRaster(c,d).createWritableChild(0,0,c,d,a,b,null)},"~N,~N,~N,~N");d(c$,
2791 "createTranslatedChild",function(a,b){return this.createChild(this.minX,this.minY,this.width,this.height,a,b,null)},"~N,~N");d(c$,"createChild",function(a,b,c,d,e,k,g){if(a<this.minX)throw new java.awt.image.RasterFormatException("parentX lies outside raster");if(b<this.minY)throw new java.awt.image.RasterFormatException("parentY lies outside raster");if(a+c<a||a+c>this.width+this.minX)throw new java.awt.image.RasterFormatException("(parentX + width) is outside raster");if(b+d<b||b+d>this.height+
2792 this.minY)throw new java.awt.image.RasterFormatException("(parentY + height) is outside raster");g=null==g?this.sampleModel:this.sampleModel.createSubsetSampleModel(g);a=e-a;b=k-b;return new java.awt.image.Raster(g,this.getDataBuffer(),new java.awt.Rectangle(e,k,c,d),new java.awt.Point(this.sampleModelTranslateX+a,this.sampleModelTranslateY+b),this)},"~N,~N,~N,~N,~N,~N,~A");d(c$,"getBounds",function(){return new java.awt.Rectangle(this.minX,this.minY,this.width,this.height)});d(c$,"getMinX",function(){return this.minX});
2793 d(c$,"getMinY",function(){return this.minY});d(c$,"getWidth",function(){return this.width});d(c$,"getHeight",function(){return this.height});d(c$,"getNumBands",function(){return this.numBands});d(c$,"getNumDataElements",function(){return this.sampleModel.getNumDataElements()});d(c$,"getTransferType",function(){return this.sampleModel.getTransferType()});d(c$,"getDataBuffer",function(){return this.dataBuffer});d(c$,"getSampleModel",function(){return this.sampleModel});d(c$,"getDataElements",function(a,
2794 b,c){return this.sampleModel.getDataElements(a-this.sampleModelTranslateX,b-this.sampleModelTranslateY,c,this.dataBuffer)},"~N,~N,~O");d(c$,"getDataElements",function(a,b,c,d,e){return this.sampleModel.getDataElements(a-this.sampleModelTranslateX,b-this.sampleModelTranslateY,c,d,e,this.dataBuffer)},"~N,~N,~N,~N,~O");d(c$,"getPixel",function(a,b,c){return this.sampleModel.getPixel(a-this.sampleModelTranslateX,b-this.sampleModelTranslateY,c,this.dataBuffer)},"~N,~N,~A");d(c$,"getPixel",function(a,b,
2795 c){return this.sampleModel.getPixel(a-this.sampleModelTranslateX,b-this.sampleModelTranslateY,c,this.dataBuffer)},"~N,~N,~A");d(c$,"getPixel",function(a,b,c){return this.sampleModel.getPixel(a-this.sampleModelTranslateX,b-this.sampleModelTranslateY,c,this.dataBuffer)},"~N,~N,~A");d(c$,"getPixels",function(a,b,c,d,e){return this.sampleModel.getPixels(a-this.sampleModelTranslateX,b-this.sampleModelTranslateY,c,d,e,this.dataBuffer)},"~N,~N,~N,~N,~A");d(c$,"getPixels",function(a,b,c,d,e){return this.sampleModel.getPixels(a-
2796 this.sampleModelTranslateX,b-this.sampleModelTranslateY,c,d,e,this.dataBuffer)},"~N,~N,~N,~N,~A");d(c$,"getPixels",function(a,b,c,d,e){return this.sampleModel.getPixels(a-this.sampleModelTranslateX,b-this.sampleModelTranslateY,c,d,e,this.dataBuffer)},"~N,~N,~N,~N,~A");d(c$,"getSample",function(a,b,c){return this.sampleModel.getSample(a-this.sampleModelTranslateX,b-this.sampleModelTranslateY,c,this.dataBuffer)},"~N,~N,~N");d(c$,"getSampleFloat",function(a,b,c){return this.sampleModel.getSampleFloat(a-
2797 this.sampleModelTranslateX,b-this.sampleModelTranslateY,c,this.dataBuffer)},"~N,~N,~N");d(c$,"getSampleDouble",function(a,b,c){return this.sampleModel.getSampleDouble(a-this.sampleModelTranslateX,b-this.sampleModelTranslateY,c,this.dataBuffer)},"~N,~N,~N");d(c$,"getSamples",function(a,b,c,d,e,k){return this.sampleModel.getSamples(a-this.sampleModelTranslateX,b-this.sampleModelTranslateY,c,d,e,k,this.dataBuffer)},"~N,~N,~N,~N,~N,~A");d(c$,"getSamples",function(a,b,c,d,e,k){return this.sampleModel.getSamples(a-
2798 this.sampleModelTranslateX,b-this.sampleModelTranslateY,c,d,e,k,this.dataBuffer)},"~N,~N,~N,~N,~N,~A");d(c$,"getSamples",function(a,b,c,d,e,k){return this.sampleModel.getSamples(a-this.sampleModelTranslateX,b-this.sampleModelTranslateY,c,d,e,k,this.dataBuffer)},"~N,~N,~N,~N,~N,~A")});p("java.awt.image");q(["java.awt.image.SampleModel"],"java.awt.image.MultiPixelPackedSampleModel","java.lang.ArrayIndexOutOfBoundsException $.IllegalArgumentException java.awt.image.DataBuffer $.DataBufferByte $.DataBufferInt $.RasterFormatException".split(" "),
2799 function(){c$=s(function(){this.scanlineStride=this.dataBitOffset=this.dataElementSize=this.pixelsPerDataElement=this.bitMask=this.pixelBitStride=0;r(this,arguments)},java.awt.image,"MultiPixelPackedSampleModel",java.awt.image.SampleModel);m(c$,function(a,b,c,d){this.construct(a,b,c,d,F((b*d+java.awt.image.DataBuffer.getDataTypeSize(a)-1)/java.awt.image.DataBuffer.getDataTypeSize(a)),0);if(0!=a&&3!=a)throw new IllegalArgumentException("Unsupported data type "+a);},"~N,~N,~N,~N");m(c$,function(a,b,
2800 c,d,e,k){t(this,java.awt.image.MultiPixelPackedSampleModel,[a,b,c,1]);if(0!=a&&3!=a)throw new IllegalArgumentException("Unsupported data type "+a);this.dataType=a;this.pixelBitStride=d;this.scanlineStride=e;this.dataBitOffset=k;this.dataElementSize=java.awt.image.DataBuffer.getDataTypeSize(a);this.pixelsPerDataElement=F(this.dataElementSize/d);if(this.pixelsPerDataElement*d!=this.dataElementSize)throw new java.awt.image.RasterFormatException("MultiPixelPackedSampleModel does not allow pixels to span data element boundaries");
2801 this.bitMask=(1<<d)-1},"~N,~N,~N,~N,~N,~N");e(c$,"createCompatibleSampleModel",function(a,b){return new java.awt.image.MultiPixelPackedSampleModel(this.dataType,a,b,this.pixelBitStride)},"~N,~N");e(c$,"createDataBuffer",function(){var a=null,b=this.scanlineStride*this.height;switch(this.dataType){case 0:a=new java.awt.image.DataBufferByte(b+F((this.dataBitOffset+7)/8));break;case 3:a=new java.awt.image.DataBufferInt(b+F((this.dataBitOffset+31)/32))}return a});e(c$,"getNumDataElements",function(){return 1});
2802 d(c$,"getSampleSize",function(){return w(-1,[this.pixelBitStride])});d(c$,"getSampleSize",function(){return this.pixelBitStride},"~N");d(c$,"getOffset",function(a,b){var c=b*this.scanlineStride;return c+=F((a*this.pixelBitStride+this.dataBitOffset)/this.dataElementSize)},"~N,~N");d(c$,"getBitOffset",function(a){return(a*this.pixelBitStride+this.dataBitOffset)%this.dataElementSize},"~N");d(c$,"getScanlineStride",function(){return this.scanlineStride});d(c$,"getPixelBitStride",function(){return this.pixelBitStride});
2803 d(c$,"getDataBitOffset",function(){return this.dataBitOffset});e(c$,"getTransferType",function(){return 3});e(c$,"createSubsetSampleModel",function(a){if(null!=a&&1!=a.length)throw new java.awt.image.RasterFormatException("MultiPixelPackedSampleModel has only one band.");return this.createCompatibleSampleModel(this.width,this.height)},"~A");e(c$,"getSample",function(a,b,c,d){if(0>a||0>b||a>=this.width||b>=this.height||0!=c)throw new ArrayIndexOutOfBoundsException("Coordinate out of bounds!");a=this.dataBitOffset+
2804 a*this.pixelBitStride;return d.getElem(b*this.scanlineStride+F(a/this.dataElementSize))>>this.dataElementSize-(a&this.dataElementSize-1)-this.pixelBitStride&this.bitMask},"~N,~N,~N,java.awt.image.DataBuffer");d(c$,"setSample",function(a,b,c,d,e){if(0>a||0>b||a>=this.width||b>=this.height||0!=c)throw new ArrayIndexOutOfBoundsException("Coordinate out of bounds!");a=this.dataBitOffset+a*this.pixelBitStride;b=b*this.scanlineStride+F(a/this.dataElementSize);a=this.dataElementSize-(a&this.dataElementSize-
2805 1)-this.pixelBitStride;c=e.getElem(b);c&=~(this.bitMask<<a);c|=(d&this.bitMask)<<a;e.setElem(b,c)},"~N,~N,~N,~N,java.awt.image.DataBuffer");d(c$,"getDataElements",function(a,b,c,d){if(0>a||0>b||a>=this.width||b>=this.height)throw new ArrayIndexOutOfBoundsException("Coordinate out of bounds!");var e=this.getTransferType();a=this.dataBitOffset+a*this.pixelBitStride;var k=this.dataElementSize-(a&this.dataElementSize-1)-this.pixelBitStride,g=0;switch(e){case 0:c=null==c?S(1,0):c;g=d.getElem(b*this.scanlineStride+
2806 F(a/this.dataElementSize));c[0]=g>>k&this.bitMask;break;case 3:c=null==c?w(1,0):c,g=d.getElem(b*this.scanlineStride+F(a/this.dataElementSize)),c[0]=g>>k&this.bitMask}return c},"~N,~N,~O,java.awt.image.DataBuffer");d(c$,"getPixel",function(a,b,c,d){if(0>a||0>b||a>=this.width||b>=this.height)throw new ArrayIndexOutOfBoundsException("Coordinate out of bounds!");c=null!=c?c:w(this.numBands,0);a=this.dataBitOffset+a*this.pixelBitStride;b=d.getElem(b*this.scanlineStride+F(a/this.dataElementSize));c[0]=
2807 b>>this.dataElementSize-(a&this.dataElementSize-1)-this.pixelBitStride&this.bitMask;return c},"~N,~N,~A,java.awt.image.DataBuffer");d(c$,"setDataElements",function(a,b,c,d){if(0>a||0>b||a>=this.width||b>=this.height)throw new ArrayIndexOutOfBoundsException("Coordinate out of bounds!");var e=this.getTransferType();a=this.dataBitOffset+a*this.pixelBitStride;b=b*this.scanlineStride+F(a/this.dataElementSize);a=this.dataElementSize-(a&this.dataElementSize-1)-this.pixelBitStride;var k=d.getElem(b),k=k&
2808 ~(this.bitMask<<a);switch(e){case 0:k|=(c[0]&255&this.bitMask)<<a;d.setElem(b,k);break;case 3:k|=(c[0]&this.bitMask)<<a,d.setElem(b,k)}},"~N,~N,~O,java.awt.image.DataBuffer");d(c$,"setPixel",function(a,b,c,d){if(0>a||0>b||a>=this.width||b>=this.height)throw new ArrayIndexOutOfBoundsException("Coordinate out of bounds!");a=this.dataBitOffset+a*this.pixelBitStride;b=b*this.scanlineStride+F(a/this.dataElementSize);a=this.dataElementSize-(a&this.dataElementSize-1)-this.pixelBitStride;var e=d.getElem(b),
2809 e=e&~(this.bitMask<<a),e=e|(c[0]&this.bitMask)<<a;d.setElem(b,e)},"~N,~N,~A,java.awt.image.DataBuffer");e(c$,"equals",function(a){return null==a||!v(a,java.awt.image.MultiPixelPackedSampleModel)?!1:this.width==a.width&&this.height==a.height&&this.numBands==a.numBands&&this.dataType==a.dataType&&this.pixelBitStride==a.pixelBitStride&&this.bitMask==a.bitMask&&this.pixelsPerDataElement==a.pixelsPerDataElement&&this.dataElementSize==a.dataElementSize&&this.dataBitOffset==a.dataBitOffset&&this.scanlineStride==
2810 a.scanlineStride},"~O");e(c$,"hashCode",function(){var a=0,a=this.width,a=a<<8^this.height,a=a<<8,a=a^this.numBands,a=a<<8,a=a^this.dataType,a=a<<8,a=a^this.pixelBitStride,a=a<<8,a=a^this.bitMask,a=a<<8,a=a^this.pixelsPerDataElement,a=a<<8,a=a^this.dataElementSize,a=a<<8,a=a^this.dataBitOffset,a=a<<8;return a^=this.scanlineStride})});p("java.awt.image");q(null,"java.awt.image.SampleModel",["java.lang.IllegalArgumentException"],function(){c$=s(function(){this.dataType=this.numBands=this.height=this.width=
2811 0;r(this,arguments)},java.awt.image,"SampleModel");m(c$,function(a,b,c,d){var e=b*c;if(0>=b||0>=c)throw new IllegalArgumentException("Width ("+b+") and height ("+c+") must be > 0");if(2147483647<=e)throw new IllegalArgumentException("Dimensions (width="+b+" height="+c+") are too large");if(0>a||3<a&&32!=a)throw new IllegalArgumentException("Unsupported dataType: "+a);if(0>=d)throw new IllegalArgumentException("Number of bands must be > 0");this.dataType=a;this.width=b;this.height=c;this.numBands=
2812 d},"~N,~N,~N,~N");d(c$,"getWidth",function(){return this.width});d(c$,"getHeight",function(){return this.height});d(c$,"getNumBands",function(){return this.numBands});d(c$,"getDataType",function(){return this.dataType});d(c$,"getTransferType",function(){return this.dataType});d(c$,"getPixel",function(a,b,c,d){c=null!=c?c:w(this.numBands,0);for(var e=0;e<this.numBands;e++)c[e]=this.getSample(a,b,e,d);return c},"~N,~N,~A,java.awt.image.DataBuffer");d(c$,"getDataElements",function(a,b,c,d,e,k){var g=
2813 this.getTransferType(),h=this.getNumDataElements(),j=0,n=null;switch(g){case 0:var m,p;p=null==e?S(h*c*d,0):e;for(e=b;e<b+d;e++)for(g=a;g<a+c;g++){m=n=this.getDataElements(g,e,n,k);for(var q=0;q<h;q++)p[j++]=m[q]}e=p;break;case 2:m=null==e?ga(h*c*d,0):e;for(e=b;e<b+d;e++)for(g=a;g<a+c;g++){p=n=this.getDataElements(g,e,n,k);for(q=0;q<h;q++)m[j++]=p[q]}e=m;break;case 3:m=null==e?w(h*c*d,0):e;for(e=b;e<b+d;e++)for(g=a;g<a+c;g++){p=n=this.getDataElements(g,e,n,k);for(q=0;q<h;q++)m[j++]=p[q]}e=m}return e},
2814 "~N,~N,~N,~N,~O,java.awt.image.DataBuffer");d(c$,"setDataElements",function(a,b,c,d,e,k){var g=0,h=this.getTransferType(),j=this.getNumDataElements();switch(h){case 0:for(var n=S(j,0),h=b;h<b+d;h++)for(var m=a;m<a+c;m++){for(var p=0;p<j;p++)n[p]=e[g++];this.setDataElements(m,h,n,k)}break;case 3:n=w(j,0);for(h=b;h<b+d;h++)for(m=a;m<a+c;m++){for(p=0;p<j;p++)n[p]=e[g++];this.setDataElements(m,h,n,k)}}},"~N,~N,~N,~N,~O,java.awt.image.DataBuffer");d(c$,"getPixels",function(a,b,c,d,e,k){var g=0;e=null!=
2815 e?e:w(this.numBands*c*d,0);for(var h=b;h<d+b;h++)for(var j=a;j<c+a;j++)for(var n=0;n<this.numBands;n++)e[g++]=this.getSample(j,h,n,k);return e},"~N,~N,~N,~N,~A,java.awt.image.DataBuffer");d(c$,"getSampleFloat",function(a,b,c,d){return this.getSample(a,b,c,d)},"~N,~N,~N,java.awt.image.DataBuffer");d(c$,"getSampleDouble",function(a,b,c,d){return this.getSample(a,b,c,d)},"~N,~N,~N,java.awt.image.DataBuffer");d(c$,"getSamples",function(a,b,c,d,e,k,g){var h=0;k=null!=k?k:w(c*d,0);for(var j=b;j<d+b;j++)for(var n=
2816 a;n<c+a;n++)k[h++]=this.getSample(n,j,e,g);return k},"~N,~N,~N,~N,~N,~A,java.awt.image.DataBuffer");d(c$,"setPixel",function(a,b,c,d){for(var e=0;e<this.numBands;e++)this.setSample(a,b,e,c[e],d)},"~N,~N,~A,java.awt.image.DataBuffer");d(c$,"setPixel",function(a,b,c,d){for(var e=0;e<this.numBands;e++)this.setSample(a,b,e,c[e],d)},"~N,~N,~A,java.awt.image.DataBuffer");d(c$,"setPixels",function(a,b,c,d,e,k){for(var g=0,h=b;h<b+d;h++)for(var j=a;j<a+c;j++)for(var n=0;n<this.numBands;n++)this.setSample(j,
2817 h,n,e[g++],k)},"~N,~N,~N,~N,~A,java.awt.image.DataBuffer");d(c$,"setSamples",function(a,b,c,d,e,k,g){for(var h=0,j=b;j<b+d;j++)for(var n=a;n<a+c;n++)this.setSample(n,j,e,k[h++],g)},"~N,~N,~N,~N,~N,~A,java.awt.image.DataBuffer")});p("java.awt.image");q(null,"java.awt.image.DataBuffer",["java.lang.ArrayIndexOutOfBoundsException","$.IllegalArgumentException","jssun.java2d.StateTrackable","$.StateTrackableDelegate"],function(){c$=s(function(){this.size=this.offset=this.banks=this.dataType=0;this.theTrackable=
2818 this.offsets=null;r(this,arguments)},java.awt.image,"DataBuffer");c$.getDataTypeSize=d(c$,"getDataTypeSize",function(a){if(0>a||3<a)throw new IllegalArgumentException("Unknown data type "+a);return java.awt.image.DataBuffer.dataTypeSize[a]},"~N");m(c$,function(a,b){this.construct(jssun.java2d.StateTrackable.State.UNTRACKABLE,a,b)},"~N,~N");m(c$,function(a,b,c){this.theTrackable=jssun.java2d.StateTrackableDelegate.createInstance(a);this.dataType=b;this.banks=1;this.size=c;this.offset=0;this.offsets=
2819 w(1,0)},"jssun.java2d.StateTrackable.State,~N,~N");m(c$,function(a,b,c){this.construct(jssun.java2d.StateTrackable.State.UNTRACKABLE,a,b,c)},"~N,~N,~N");m(c$,function(a,b,c,d){this.theTrackable=jssun.java2d.StateTrackableDelegate.createInstance(a);this.dataType=b;this.banks=d;this.size=c;this.offset=0;this.offsets=w(this.banks,0)},"jssun.java2d.StateTrackable.State,~N,~N,~N");m(c$,function(a,b,c,d){this.construct(jssun.java2d.StateTrackable.State.UNTRACKABLE,a,b,c,d)},"~N,~N,~N,~N");m(c$,function(a,
2820 b,c,d,e){this.theTrackable=jssun.java2d.StateTrackableDelegate.createInstance(a);this.dataType=b;this.banks=d;this.size=c;this.offset=e;this.offsets=w(d,0);for(a=0;a<d;a++)this.offsets[a]=e},"jssun.java2d.StateTrackable.State,~N,~N,~N,~N");m(c$,function(a,b,c,d){this.construct(jssun.java2d.StateTrackable.State.UNTRACKABLE,a,b,c,d)},"~N,~N,~N,~A");m(c$,function(a,b,c,d,e){if(d!=e.length)throw new ArrayIndexOutOfBoundsException("Number of banks does not match number of bank offsets");this.theTrackable=
2821 jssun.java2d.StateTrackableDelegate.createInstance(a);this.dataType=b;this.banks=d;this.size=c;this.offset=e[0];this.offsets=e.clone()},"jssun.java2d.StateTrackable.State,~N,~N,~N,~A");d(c$,"getDataType",function(){return this.dataType});d(c$,"getSize",function(){return this.size});d(c$,"getOffset",function(){return this.offset});d(c$,"getOffsets",function(){return this.offsets.clone()});d(c$,"getNumBanks",function(){return this.banks});d(c$,"getElem",function(a){return this.getElem(0,a)},"~N");d(c$,
2822 "setElem",function(a,b){this.setElem(0,a,b)},"~N,~N");d(c$,"getElemFloat",function(a){return this.getElem(a)},"~N");d(c$,"getElemFloat",function(a,b){return this.getElem(a,b)},"~N,~N");d(c$,"setElemFloat",function(a,b){this.setElem(a,I(b))},"~N,~N");d(c$,"setElemFloat",function(a,b,c){this.setElem(a,b,I(c))},"~N,~N,~N");d(c$,"getElemDouble",function(a){return this.getElem(a)},"~N");d(c$,"getElemDouble",function(a,b){return this.getElem(a,b)},"~N,~N");d(c$,"setElemDouble",function(a,b){this.setElem(a,
2823 F(b))},"~N,~N");d(c$,"setElemDouble",function(a,b,c){this.setElem(a,b,F(c))},"~N,~N,~N");c$.toIntArray=d(c$,"toIntArray",function(a){if(v(a,Array))return a;if(null!=a){if(v(a,Array)){for(var b=w(a.length,0),c=0;c<a.length;c++)b[c]=a[c]&65535;return b}if(v(a,Array)){b=w(a.length,0);for(c=0;c<a.length;c++)b[c]=255&a[c];return b}}return null},"~O");G(c$,"TYPE_BYTE",0,"TYPE_SHORT",2,"TYPE_INT",3,"TYPE_UNDEFINED",32,"dataTypeSize",w(-1,[8,16,16,32,32,64]))});p("jssun.java2d");q(["java.lang.Enum"],"jssun.java2d.StateTrackable",
2824 null,function(){M(jssun.java2d,"StateTrackable");A(self.c$);c$=B(jssun.java2d.StateTrackable,"State",Enum);R(c$,"IMMUTABLE",0,[]);R(c$,"STABLE",1,[]);R(c$,"DYNAMIC",2,[]);R(c$,"UNTRACKABLE",3,[]);c$=z()});p("jssun.java2d");q(["jssun.java2d.StateTrackable"],"jssun.java2d.StateTrackableDelegate",["java.lang.IllegalStateException","$.InternalError","jssun.java2d.StateTracker"],function(){c$=s(function(){this.theTracker=this.theState=null;this.numDynamicAgents=0;r(this,arguments)},jssun.java2d,"StateTrackableDelegate",
2825 null,jssun.java2d.StateTrackable);c$.createInstance=d(c$,"createInstance",function(a){switch(a){case jssun.java2d.StateTrackable.State.UNTRACKABLE:return jssun.java2d.StateTrackableDelegate.UNTRACKABLE_DELEGATE;case jssun.java2d.StateTrackable.State.STABLE:return new jssun.java2d.StateTrackableDelegate(jssun.java2d.StateTrackable.State.STABLE);case jssun.java2d.StateTrackable.State.DYNAMIC:return new jssun.java2d.StateTrackableDelegate(jssun.java2d.StateTrackable.State.DYNAMIC);case jssun.java2d.StateTrackable.State.IMMUTABLE:return jssun.java2d.StateTrackableDelegate.IMMUTABLE_DELEGATE;
2826 default:throw new InternalError("unknown state");}},"jssun.java2d.StateTrackable.State");m(c$,function(a){this.theState=a},"jssun.java2d.StateTrackable.State");e(c$,"getState",function(){return this.theState});e(c$,"getStateTracker",function(){var a=this.theTracker;if(null==a){switch(this.theState){case jssun.java2d.StateTrackable.State.IMMUTABLE:a=jssun.java2d.StateTracker.ALWAYS_CURRENT;break;case jssun.java2d.StateTrackable.State.STABLE:a=(H("jssun.java2d.StateTrackableDelegate$1")?0:jssun.java2d.StateTrackableDelegate.$StateTrackableDelegate$1$(),
2827 C(jssun.java2d.StateTrackableDelegate$1,this,null));break;case jssun.java2d.StateTrackable.State.DYNAMIC:case jssun.java2d.StateTrackable.State.UNTRACKABLE:a=jssun.java2d.StateTracker.NEVER_CURRENT}this.theTracker=a}return a});d(c$,"setImmutable",function(){if(this.theState===jssun.java2d.StateTrackable.State.UNTRACKABLE||this.theState===jssun.java2d.StateTrackable.State.DYNAMIC)throw new IllegalStateException("UNTRACKABLE or DYNAMIC objects cannot become IMMUTABLE");this.theState=jssun.java2d.StateTrackable.State.IMMUTABLE;
2828 this.theTracker=null});d(c$,"setUntrackable",function(){if(this.theState===jssun.java2d.StateTrackable.State.IMMUTABLE)throw new IllegalStateException("IMMUTABLE objects cannot become UNTRACKABLE");this.theState=jssun.java2d.StateTrackable.State.UNTRACKABLE;this.theTracker=null});d(c$,"addDynamicAgent",function(){if(this.theState===jssun.java2d.StateTrackable.State.IMMUTABLE)throw new IllegalStateException("Cannot change state from IMMUTABLE");++this.numDynamicAgents;this.theState===jssun.java2d.StateTrackable.State.STABLE&&
2829 (this.theState=jssun.java2d.StateTrackable.State.DYNAMIC,this.theTracker=null)});d(c$,"removeDynamicAgent",function(){0==--this.numDynamicAgents&&this.theState===jssun.java2d.StateTrackable.State.DYNAMIC&&(this.theState=jssun.java2d.StateTrackable.State.STABLE,this.theTracker=null)});d(c$,"markDirty",function(){this.theTracker=null});c$.$StateTrackableDelegate$1$=function(){A(self.c$);c$=L(jssun.java2d,"StateTrackableDelegate$1",null,jssun.java2d.StateTracker);e(c$,"isCurrent",function(){return this.b$["jssun.java2d.StateTrackableDelegate"].theTracker===
2830 this});c$=z()};c$.UNTRACKABLE_DELEGATE=c$.prototype.UNTRACKABLE_DELEGATE=new jssun.java2d.StateTrackableDelegate(jssun.java2d.StateTrackable.State.UNTRACKABLE);c$.IMMUTABLE_DELEGATE=c$.prototype.IMMUTABLE_DELEGATE=new jssun.java2d.StateTrackableDelegate(jssun.java2d.StateTrackable.State.IMMUTABLE)});p("jssun.java2d");c$=M(jssun.java2d,"StateTracker");c$.$StateTracker$1$=function(){A(self.c$);c$=L(jssun.java2d,"StateTracker$1",null,jssun.java2d.StateTracker);e(c$,"isCurrent",function(){return!0});
2831 c$=z()};c$.$StateTracker$2$=function(){A(self.c$);c$=L(jssun.java2d,"StateTracker$2",null,jssun.java2d.StateTracker);e(c$,"isCurrent",function(){return!1});c$=z()};c$.ALWAYS_CURRENT=c$.prototype.ALWAYS_CURRENT=(H("jssun.java2d.StateTracker$1")?0:jssun.java2d.StateTracker.$StateTracker$1$(),C(jssun.java2d.StateTracker$1,this,null));c$.NEVER_CURRENT=c$.prototype.NEVER_CURRENT=(H("jssun.java2d.StateTracker$2")?0:jssun.java2d.StateTracker.$StateTracker$2$(),C(jssun.java2d.StateTracker$2,this,null));p("java.awt.image");
2832 q(["java.awt.image.DataBuffer"],"java.awt.image.DataBufferByte",["JU.AU","jssun.java2d.StateTrackable"],function(){c$=s(function(){this.bankdata=this.data=null;r(this,arguments)},java.awt.image,"DataBufferByte",java.awt.image.DataBuffer);m(c$,function(a){t(this,java.awt.image.DataBufferByte,[jssun.java2d.StateTrackable.State.STABLE,0,a]);this.data=S(a,0);this.bankdata=S(1,0);this.bankdata[0]=this.data},"~N");m(c$,function(a,b){t(this,java.awt.image.DataBufferByte,[jssun.java2d.StateTrackable.State.STABLE,
2833 0,a,b]);this.bankdata=S(b,0);for(var c=0;c<b;c++)this.bankdata[c]=S(a,0);this.data=this.bankdata[0]},"~N,~N");m(c$,function(a,b){t(this,java.awt.image.DataBufferByte,[jssun.java2d.StateTrackable.State.UNTRACKABLE,0,b]);JU.AU.isAI(a)?(this.data=a,this.bankdata=S(1,0),this.bankdata[0]=this.data):(this.banks=a.length,this.bankdata=a.clone(),this.data=this.bankdata[0])},"~A,~N");m(c$,function(a,b,c){t(this,java.awt.image.DataBufferByte,[jssun.java2d.StateTrackable.State.UNTRACKABLE,0,b,1,c]);this.data=
2834 a;this.bankdata=S(1,0);this.bankdata[0]=this.data},"~A,~N,~N");m(c$,function(a,b,c){t(this,java.awt.image.DataBufferByte,[jssun.java2d.StateTrackable.State.UNTRACKABLE,0,b,a.length,c]);this.bankdata=a.clone();this.data=this.bankdata[0]},"~A,~N,~A");d(c$,"getData",function(){this.theTrackable.setUntrackable();return this.data});d(c$,"getData",function(a){this.theTrackable.setUntrackable();return this.bankdata[a]},"~N");d(c$,"getBankData",function(){this.theTrackable.setUntrackable();return this.bankdata.clone()});
2835 d(c$,"getElem",function(a){return this.data[a+this.offset]&255},"~N");d(c$,"getElem",function(a,b){return this.bankdata[a][b+this.offsets[a]]&255},"~N,~N");d(c$,"setElem",function(a,b){this.data[a+this.offset]=b;this.theTrackable.markDirty()},"~N,~N");d(c$,"setElem",function(a,b,c){this.bankdata[a][b+this.offsets[a]]=c;this.theTrackable.markDirty()},"~N,~N,~N")});p("java.awt.image");q(["java.awt.image.DataBuffer"],"java.awt.image.DataBufferInt",["JU.AU","jssun.java2d.StateTrackable"],function(){c$=
2836 s(function(){this.bankdata=this.data=null;r(this,arguments)},java.awt.image,"DataBufferInt",java.awt.image.DataBuffer);m(c$,function(a){t(this,java.awt.image.DataBufferInt,[jssun.java2d.StateTrackable.State.STABLE,3,a]);this.data=w(a,0);this.bankdata=w(1,0);this.bankdata[0]=this.data},"~N");m(c$,function(a,b){t(this,java.awt.image.DataBufferInt,[jssun.java2d.StateTrackable.State.STABLE,3,a,b]);this.bankdata=w(b,0);for(var c=0;c<b;c++)this.bankdata[c]=w(a,0);this.data=this.bankdata[0]},"~N,~N");m(c$,
2837 function(a,b){t(this,java.awt.image.DataBufferInt,[jssun.java2d.StateTrackable.State.UNTRACKABLE,3,b]);JU.AU.isAI(a)?(this.data=a,this.bankdata=w(1,0),this.bankdata[0]=this.data):(this.banks=a.length,this.bankdata=a.clone(),this.data=this.bankdata[0])},"~A,~N");m(c$,function(a,b,c){t(this,java.awt.image.DataBufferInt,[jssun.java2d.StateTrackable.State.UNTRACKABLE,3,b,1,c]);this.data=a;this.bankdata=w(1,0);this.bankdata[0]=this.data},"~A,~N,~N");m(c$,function(a,b,c){t(this,java.awt.image.DataBufferInt,
2838 [jssun.java2d.StateTrackable.State.UNTRACKABLE,3,b,a.length,c]);this.bankdata=a.clone();this.data=this.bankdata[0]},"~A,~N,~A");d(c$,"getData",function(){this.theTrackable.setUntrackable();return this.data});d(c$,"getData",function(a){this.theTrackable.setUntrackable();return this.bankdata[a]},"~N");d(c$,"getBankData",function(){this.theTrackable.setUntrackable();return this.bankdata.clone()});d(c$,"getElem",function(a){return this.data[a+this.offset]},"~N");d(c$,"getElem",function(a,b){return this.bankdata[a][b+
2839 this.offsets[a]]},"~N,~N");d(c$,"setElem",function(a,b){this.data[a+this.offset]=b;this.theTrackable.markDirty()},"~N,~N");d(c$,"setElem",function(a,b,c){this.bankdata[a][b+this.offsets[a]]=c;this.theTrackable.markDirty()},"~N,~N,~N")});p("java.awt.image");q(["java.lang.RuntimeException"],"java.awt.image.RasterFormatException",null,function(){c$=B(java.awt.image,"RasterFormatException",RuntimeException)});p("java.awt.image");q(["java.awt.image.SampleModel"],"java.awt.image.SinglePixelPackedSampleModel",
2840 "java.lang.ArrayIndexOutOfBoundsException $.IllegalArgumentException java.util.Arrays java.awt.image.DataBufferByte $.DataBufferInt $.RasterFormatException".split(" "),function(){c$=s(function(){this.bitSizes=this.bitOffsets=this.bitMasks=null;this.scanlineStride=this.maxBitSize=0;r(this,arguments)},java.awt.image,"SinglePixelPackedSampleModel",java.awt.image.SampleModel);m(c$,function(a,b,c,d){this.construct(a,b,c,b,d);if(0!=a&&3!=a)throw new IllegalArgumentException("Unsupported data type "+a);
2841 },"~N,~N,~N,~A");m(c$,function(a,b,c,d,e){t(this,java.awt.image.SinglePixelPackedSampleModel,[a,b,c,e.length]);if(0!=a&&3!=a)throw new IllegalArgumentException("Unsupported data type "+a);this.dataType=a;this.bitMasks=e.clone();this.scanlineStride=d;this.bitOffsets=w(this.numBands,0);this.bitSizes=w(this.numBands,0);for(a=this.maxBitSize=0;a<this.numBands;a++){c=b=0;d=e[a];if(0!=d){for(;0==(d&1);)d>>>=1,b++;for(;1==(d&1);)d>>>=1,c++;if(0!=d)throw new IllegalArgumentException("Mask "+e[a]+" must be contiguous");
2842 }this.bitOffsets[a]=b;this.bitSizes[a]=c;c>this.maxBitSize&&(this.maxBitSize=c)}},"~N,~N,~N,~N,~A");e(c$,"getNumDataElements",function(){return 1});d(c$,"getBufferSize",function(){return this.scanlineStride*(this.height-1)+this.width});e(c$,"createCompatibleSampleModel",function(a,b){return new java.awt.image.SinglePixelPackedSampleModel(this.dataType,a,b,this.bitMasks)},"~N,~N");e(c$,"createDataBuffer",function(){var a=null,b=this.getBufferSize();switch(this.dataType){case 0:a=new java.awt.image.DataBufferByte(b);
2843 break;case 3:a=new java.awt.image.DataBufferInt(b)}return a});d(c$,"getSampleSize",function(){for(var a,b=w(this.numBands,0),c=0;c<this.numBands;c++){b[c]=0;for(a=this.bitMasks[c]>>>this.bitOffsets[c];0!=(a&1);)b[c]++,a>>>=1}return b});d(c$,"getSampleSize",function(a){var b=0;for(a=this.bitMasks[a]>>>this.bitOffsets[a];0!=(a&1);)b++,a>>>=1;return b},"~N");d(c$,"getOffset",function(a,b){return b*this.scanlineStride+a},"~N,~N");d(c$,"getBitOffsets",function(){return this.bitOffsets.clone()});d(c$,"getBitMasks",
2844 function(){return this.bitMasks.clone()});d(c$,"getScanlineStride",function(){return this.scanlineStride});e(c$,"createSubsetSampleModel",function(a){if(a.length>this.numBands)throw new java.awt.image.RasterFormatException("There are only "+this.numBands+" bands");for(var b=w(a.length,0),c=0;c<a.length;c++)b[c]=this.bitMasks[a[c]];return new java.awt.image.SinglePixelPackedSampleModel(this.dataType,this.width,this.height,this.scanlineStride,b)},"~A");d(c$,"getDataElements",function(a,b,c,d){if(0>
2845 a||0>b||a>=this.width||b>=this.height)throw new ArrayIndexOutOfBoundsException("Coordinate out of bounds!");switch(this.getTransferType()){case 0:c=null==c?S(1,0):c;c[0]=d.getElem(b*this.scanlineStride+a);break;case 3:c=null==c?w(1,0):c,c[0]=d.getElem(b*this.scanlineStride+a)}return c},"~N,~N,~O,java.awt.image.DataBuffer");d(c$,"getPixel",function(a,b,c,d){if(0>a||0>b||a>=this.width||b>=this.height)throw new ArrayIndexOutOfBoundsException("Coordinate out of bounds!");c=null==c?w(this.numBands,0):
2846 c;a=d.getElem(b*this.scanlineStride+a);for(b=0;b<this.numBands;b++)c[b]=(a&this.bitMasks[b])>>>this.bitOffsets[b];return c},"~N,~N,~A,java.awt.image.DataBuffer");d(c$,"getPixels",function(a,b,c,d,e,k){if(0>a||0>b||a+c>this.width||b+d>this.height)throw new ArrayIndexOutOfBoundsException("Coordinate out of bounds!");e=null!=e?e:w(c*d*this.numBands,0);a=b*this.scanlineStride+a;for(var g=b=0;g<d;g++){for(var h=0;h<c;h++)for(var j=k.getElem(a+h),n=0;n<this.numBands;n++)e[b++]=(j&this.bitMasks[n])>>>this.bitOffsets[n];
2847 a+=this.scanlineStride}return e},"~N,~N,~N,~N,~A,java.awt.image.DataBuffer");e(c$,"getSample",function(a,b,c,d){if(0>a||0>b||a>=this.width||b>=this.height)throw new ArrayIndexOutOfBoundsException("Coordinate out of bounds!");return(d.getElem(b*this.scanlineStride+a)&this.bitMasks[c])>>>this.bitOffsets[c]},"~N,~N,~N,java.awt.image.DataBuffer");d(c$,"getSamples",function(a,b,c,d,e,k,g){if(0>a||0>b||a+c>this.width||b+d>this.height)throw new ArrayIndexOutOfBoundsException("Coordinate out of bounds!");
2848 k=null!=k?k:w(c*d,0);a=b*this.scanlineStride+a;for(var h=b=0;h<d;h++){for(var j=0;j<c;j++){var n=g.getElem(a+j);k[b++]=(n&this.bitMasks[e])>>>this.bitOffsets[e]}a+=this.scanlineStride}return k},"~N,~N,~N,~N,~N,~A,java.awt.image.DataBuffer");d(c$,"setDataElements",function(a,b,c,d){if(0>a||0>b||a>=this.width||b>=this.height)throw new ArrayIndexOutOfBoundsException("Coordinate out of bounds!");switch(this.getTransferType()){case 0:d.setElem(b*this.scanlineStride+a,c[0]&255);break;case 3:d.setElem(b*
2849 this.scanlineStride+a,c[0])}},"~N,~N,~O,java.awt.image.DataBuffer");d(c$,"setPixel",function(a,b,c,d){if(0>a||0>b||a>=this.width||b>=this.height)throw new ArrayIndexOutOfBoundsException("Coordinate out of bounds!");a=b*this.scanlineStride+a;b=d.getElem(a);for(var e=0;e<this.numBands;e++)b&=~this.bitMasks[e],b|=c[e]<<this.bitOffsets[e]&this.bitMasks[e];d.setElem(a,b)},"~N,~N,~A,java.awt.image.DataBuffer");d(c$,"setPixels",function(a,b,c,d,e,k){if(0>a||0>b||a+c>this.width||b+d>this.height)throw new ArrayIndexOutOfBoundsException("Coordinate out of bounds!");
2850 a=b*this.scanlineStride+a;for(var g=b=0;g<d;g++){for(var h=0;h<c;h++){for(var j=k.getElem(a+h),n=0;n<this.numBands;n++)var j=j&~this.bitMasks[n],m=e[b++],j=j|m<<this.bitOffsets[n]&this.bitMasks[n];k.setElem(a+h,j)}a+=this.scanlineStride}},"~N,~N,~N,~N,~A,java.awt.image.DataBuffer");d(c$,"setSample",function(a,b,c,d,e){if(0>a||0>b||a>=this.width||b>=this.height)throw new ArrayIndexOutOfBoundsException("Coordinate out of bounds!");var k=e.getElem(b*this.scanlineStride+a),k=k&~this.bitMasks[c],k=k|d<<
2851 this.bitOffsets[c]&this.bitMasks[c];e.setElem(b*this.scanlineStride+a,k)},"~N,~N,~N,~N,java.awt.image.DataBuffer");d(c$,"setSamples",function(a,b,c,d,e,k,g){if(0>a||0>b||a+c>this.width||b+d>this.height)throw new ArrayIndexOutOfBoundsException("Coordinate out of bounds!");a=b*this.scanlineStride+a;for(var h=b=0;h<d;h++){for(var j=0;j<c;j++){var n=g.getElem(a+j),n=n&~this.bitMasks[e],m=k[b++],n=n|m<<this.bitOffsets[e]&this.bitMasks[e];g.setElem(a+j,n)}a+=this.scanlineStride}},"~N,~N,~N,~N,~N,~A,java.awt.image.DataBuffer");
2852 e(c$,"equals",function(a){return null==a||!v(a,java.awt.image.SinglePixelPackedSampleModel)?!1:this.width==a.width&&this.height==a.height&&this.numBands==a.numBands&&this.dataType==a.dataType&&java.util.Arrays.equals(this.bitMasks,a.bitMasks)&&java.util.Arrays.equals(this.bitOffsets,a.bitOffsets)&&java.util.Arrays.equals(this.bitSizes,a.bitSizes)&&this.maxBitSize==a.maxBitSize&&this.scanlineStride==a.scanlineStride},"~O");e(c$,"hashCode",function(){for(var a=0,a=this.width,a=a<<8^this.height,a=a<<
2853 8,a=a^this.numBands,a=a<<8,a=a^this.dataType,a=a<<8,b=0;b<this.bitMasks.length;b++)a^=this.bitMasks[b],a<<=8;for(b=0;b<this.bitOffsets.length;b++)a^=this.bitOffsets[b],a<<=8;for(b=0;b<this.bitSizes.length;b++)a^=this.bitSizes[b],a<<=8;a^=this.maxBitSize;a<<=8;return a^=this.scanlineStride})});p("jssun.awt.image");q(["java.awt.image.ImageProducer"],"jssun.awt.image.OffScreenImageSource",["java.util.Hashtable"],function(){c$=s(function(){this.image=null;this.height=this.width=0;this.theConsumer=this.properties=
2854 null;r(this,arguments)},jssun.awt.image,"OffScreenImageSource",null,java.awt.image.ImageProducer);m(c$,function(a,b){this.image=a;this.properties=null!=b?b:new java.util.Hashtable;this.width=a.getWidth();this.height=a.getHeight()},"java.awt.image.BufferedImage,java.util.Hashtable");m(c$,function(a){this.construct(a,null)},"java.awt.image.BufferedImage");e(c$,"addConsumer",function(a){this.theConsumer=a;this.produce()},"java.awt.image.ImageConsumer");e(c$,"isConsumer",function(a){return a===this.theConsumer},
2855 "java.awt.image.ImageConsumer");e(c$,"removeConsumer",function(a){this.theConsumer===a&&(this.theConsumer=null)},"java.awt.image.ImageConsumer");e(c$,"startProduction",function(a){this.addConsumer(a)},"java.awt.image.ImageConsumer");e(c$,"requestTopDownLeftRightResend",function(){},"java.awt.image.ImageConsumer");d(c$,"sendPixels",function(){this.image.getColorModel()});d(c$,"produce",function(){try{this.theConsumer.setDimensions(this.image.getWidth(),this.image.getHeight()),this.theConsumer.setProperties(this.properties),
2856 this.sendPixels(),this.theConsumer.imageComplete(2)}catch(a){if(y(a,NullPointerException))null!=this.theConsumer&&this.theConsumer.imageComplete(1);else throw a;}})});p("java.awt.image");q(["java.awt.image.Raster"],"java.awt.image.WritableRaster",["java.lang.ArrayIndexOutOfBoundsException","java.awt.Point","$.Rectangle","java.awt.image.RasterFormatException"],function(){c$=B(java.awt.image,"WritableRaster",java.awt.image.Raster);d(c$,"setParams",function(){},"java.awt.image.SampleModel,java.awt.image.DataBuffer,java.awt.Point");
2857 m(c$,function(){t(this,java.awt.image.WritableRaster,[])});m(c$,function(a,b){t(this,java.awt.image.WritableRaster,[]);this.setRaster(a,a.createDataBuffer(),new java.awt.Rectangle(b.x,b.y,a.getWidth(),a.getHeight()),b,null)},"java.awt.image.SampleModel,java.awt.Point");m(c$,function(a,b,c){t(this,java.awt.image.WritableRaster,[]);this.setRaster(a,b,new java.awt.Rectangle(c.x,c.y,a.getWidth(),a.getHeight()),c,null)},"java.awt.image.SampleModel,java.awt.image.DataBuffer,java.awt.Point");m(c$,function(a,
2858 b,c,d,e){t(this,java.awt.image.WritableRaster,[]);this.setRaster(a,b,c,d,e)},"java.awt.image.SampleModel,java.awt.image.DataBuffer,java.awt.Rectangle,java.awt.Point,java.awt.image.Raster");d(c$,"getWritableParent",function(){return this.parent});d(c$,"createWritableTranslatedChild",function(a,b){return this.createWritableChild(this.minX,this.minY,this.width,this.height,a,b,null)},"~N,~N");d(c$,"createWritableChild",function(a,b,c,d,e,k,g){if(a<this.minX)throw new java.awt.image.RasterFormatException("parentX lies outside raster");
2859 if(b<this.minY)throw new java.awt.image.RasterFormatException("parentY lies outside raster");if(a+c<a||a+c>this.width+this.minX)throw new java.awt.image.RasterFormatException("(parentX + width) is outside raster");if(b+d<b||b+d>this.height+this.minY)throw new java.awt.image.RasterFormatException("(parentY + height) is outside raster");g=null!=g?this.sampleModel.createSubsetSampleModel(g):this.sampleModel;a=e-a;b=k-b;return new java.awt.image.WritableRaster(g,this.getDataBuffer(),new java.awt.Rectangle(e,
2860 k,c,d),new java.awt.Point(this.sampleModelTranslateX+a,this.sampleModelTranslateY+b),this)},"~N,~N,~N,~N,~N,~N,~A");d(c$,"setDataElements",function(a,b,c){v(c,java.awt.image.Raster)?this.setDataElementsRaster(a,b,c):this.sampleModel.setDataElements(a-this.sampleModelTranslateX,b-this.sampleModelTranslateY,c,this.dataBuffer)},"~N,~N,~O");d(c$,"setDataElementsRaster",function(a,b,c){a+=c.getMinX();b+=c.getMinY();var d=c.getWidth(),e=c.getHeight();if(a<this.minX||b<this.minY||a+d>this.minX+this.width||
2861 b+e>this.minY+this.height)throw new ArrayIndexOutOfBoundsException("Coordinate out of bounds!");for(var k=c.getMinX(),g=c.getMinY(),h=null,j=0;j<e;j++)h=c.getDataElements(k,g+j,d,1,h),this.setDataElements(a,b+j,d,1,h)},"~N,~N,java.awt.image.Raster");d(c$,"setDataElements",function(a,b,c,d,e){this.sampleModel.setDataElements(a-this.sampleModelTranslateX,b-this.sampleModelTranslateY,c,d,e,this.dataBuffer)},"~N,~N,~N,~N,~O");d(c$,"setRect",function(a){this.setRect(0,0,a)},"java.awt.image.Raster");d(c$,
2862 "setRect",function(a,b,c){var d=c.getWidth(),e=c.getHeight(),k=c.getMinX(),g=c.getMinY();a+=k;b+=g;a<this.minX&&(a=this.minX-a,d-=a,k+=a,a=this.minX);b<this.minY&&(b=this.minY-b,e-=b,g+=b,b=this.minY);a+d>this.minX+this.width&&(d=this.minX+this.width-a);b+e>this.minY+this.height&&(e=this.minY+this.height-b);if(!(0>=d||0>=e))switch(c.getSampleModel().getDataType()){case 0:case 3:for(var h=null,j=0;j<e;j++)h=c.getPixels(k,g+j,d,1,h),this.setPixels(a,b+j,d,1,h)}},"~N,~N,java.awt.image.Raster");d(c$,
2863 "setPixel",function(a,b,c){this.sampleModel.setPixel(a-this.sampleModelTranslateX,b-this.sampleModelTranslateY,c,this.dataBuffer)},"~N,~N,~A");d(c$,"setPixel",function(a,b,c){this.sampleModel.setPixel(a-this.sampleModelTranslateX,b-this.sampleModelTranslateY,c,this.dataBuffer)},"~N,~N,~A");d(c$,"setPixel",function(a,b,c){this.sampleModel.setPixel(a-this.sampleModelTranslateX,b-this.sampleModelTranslateY,c,this.dataBuffer)},"~N,~N,~A");d(c$,"setPixels",function(a,b,c,d,e){this.sampleModel.setPixels(a-
2864 this.sampleModelTranslateX,b-this.sampleModelTranslateY,c,d,e,this.dataBuffer)},"~N,~N,~N,~N,~A");d(c$,"setPixels",function(a,b,c,d,e){this.sampleModel.setPixels(a-this.sampleModelTranslateX,b-this.sampleModelTranslateY,c,d,e,this.dataBuffer)},"~N,~N,~N,~N,~A");d(c$,"setPixels",function(a,b,c,d,e){this.sampleModel.setPixels(a-this.sampleModelTranslateX,b-this.sampleModelTranslateY,c,d,e,this.dataBuffer)},"~N,~N,~N,~N,~A");d(c$,"setSample",function(a,b,c,d){this.sampleModel.setSample(a-this.sampleModelTranslateX,
2865 b-this.sampleModelTranslateY,c,d,this.dataBuffer)},"~N,~N,~N,~N");d(c$,"setSample",function(a,b,c,d){this.sampleModel.setSample(a-this.sampleModelTranslateX,b-this.sampleModelTranslateY,c,d,this.dataBuffer)},"~N,~N,~N,~N");d(c$,"setSample",function(a,b,c,d){this.sampleModel.setSample(a-this.sampleModelTranslateX,b-this.sampleModelTranslateY,c,d,this.dataBuffer)},"~N,~N,~N,~N");d(c$,"setSamples",function(a,b,c,d,e,k){this.sampleModel.setSamples(a-this.sampleModelTranslateX,b-this.sampleModelTranslateY,
2866 c,d,e,k,this.dataBuffer)},"~N,~N,~N,~N,~N,~A");d(c$,"setSamples",function(a,b,c,d,e,k){this.sampleModel.setSamples(a-this.sampleModelTranslateX,b-this.sampleModelTranslateY,c,d,e,k,this.dataBuffer)},"~N,~N,~N,~N,~N,~A");d(c$,"setSamples",function(a,b,c,d,e,k){this.sampleModel.setSamples(a-this.sampleModelTranslateX,b-this.sampleModelTranslateY,c,d,e,k,this.dataBuffer)},"~N,~N,~N,~N,~N,~A")});p("jssun.java2d.loops");q(null,"jssun.java2d.loops.CompositeType",["java.lang.InternalError"],function(){c$=
2867 s(function(){this.uniqueID=0;this.next=this.desc=null;r(this,arguments)},jssun.java2d.loops,"CompositeType");d(c$,"deriveSubType",function(a){return new jssun.java2d.loops.CompositeType(this,a)},"~S");c$.forAlphaComposite=d(c$,"forAlphaComposite",function(a){switch(a.getRule()){case 1:return jssun.java2d.loops.CompositeType.Clear;case 2:return 1<=a.getAlpha()?jssun.java2d.loops.CompositeType.SrcNoEa:jssun.java2d.loops.CompositeType.Src;case 9:return jssun.java2d.loops.CompositeType.Dst;case 3:return 1<=
2868 a.getAlpha()?jssun.java2d.loops.CompositeType.SrcOverNoEa:jssun.java2d.loops.CompositeType.SrcOver;case 4:return jssun.java2d.loops.CompositeType.DstOver;case 5:return jssun.java2d.loops.CompositeType.SrcIn;case 6:return jssun.java2d.loops.CompositeType.DstIn;case 7:return jssun.java2d.loops.CompositeType.SrcOut;case 8:return jssun.java2d.loops.CompositeType.DstOut;case 10:return jssun.java2d.loops.CompositeType.SrcAtop;case 11:return jssun.java2d.loops.CompositeType.DstAtop;case 12:return jssun.java2d.loops.CompositeType.AlphaXor;
2869 default:throw new InternalError("Unrecognized alpha rule");}},"java.awt.AlphaComposite");m(c$,function(a,b){this.next=a;this.desc=b;this.uniqueID=jssun.java2d.loops.CompositeType.makeUniqueID()},"jssun.java2d.loops.CompositeType,~S");c$.makeUniqueID=d(c$,"makeUniqueID",function(){if(255<jssun.java2d.loops.CompositeType.unusedUID)throw new InternalError("composite type id overflow");return jssun.java2d.loops.CompositeType.unusedUID++});d(c$,"getUniqueID",function(){return this.uniqueID});d(c$,"getDescriptor",
2870 function(){return this.desc});d(c$,"getSuperType",function(){return this.next});e(c$,"hashCode",function(){return this.desc.hashCode()});d(c$,"isDerivedFrom",function(a){var b=this;do{if(b.desc===a.desc)return!0;b=b.next}while(null!=b);return!1},"jssun.java2d.loops.CompositeType");e(c$,"equals",function(a){return v(a,jssun.java2d.loops.CompositeType)?a.uniqueID==this.uniqueID:!1},"~O");e(c$,"toString",function(){return this.desc});G(c$,"DESC_ANY","Any CompositeContext","DESC_XOR","XOR mode","DESC_CLEAR",
2871 "Porter-Duff Clear","DESC_SRC","Porter-Duff Src","DESC_DST","Porter-Duff Dst","DESC_SRC_OVER","Porter-Duff Src Over Dst","DESC_DST_OVER","Porter-Duff Dst Over Src","DESC_SRC_IN","Porter-Duff Src In Dst","DESC_DST_IN","Porter-Duff Dst In Src","DESC_SRC_OUT","Porter-Duff Src HeldOutBy Dst","DESC_DST_OUT","Porter-Duff Dst HeldOutBy Src","DESC_SRC_ATOP","Porter-Duff Src Atop Dst","DESC_DST_ATOP","Porter-Duff Dst Atop Src","DESC_ALPHA_XOR","Porter-Duff Xor","DESC_SRC_NO_EA","Porter-Duff Src, No Extra Alpha",
2872 "DESC_SRC_OVER_NO_EA","Porter-Duff SrcOverDst, No Extra Alpha","DESC_ANY_ALPHA","Any AlphaComposite Rule");c$.Any=c$.prototype.Any=new jssun.java2d.loops.CompositeType(null,"Any CompositeContext");c$.General=c$.prototype.General=jssun.java2d.loops.CompositeType.Any;c$.AnyAlpha=c$.prototype.AnyAlpha=jssun.java2d.loops.CompositeType.General.deriveSubType("Any AlphaComposite Rule");c$.Xor=c$.prototype.Xor=jssun.java2d.loops.CompositeType.General.deriveSubType("XOR mode");c$.Clear=c$.prototype.Clear=
2873 jssun.java2d.loops.CompositeType.AnyAlpha.deriveSubType("Porter-Duff Clear");c$.Src=c$.prototype.Src=jssun.java2d.loops.CompositeType.AnyAlpha.deriveSubType("Porter-Duff Src");c$.Dst=c$.prototype.Dst=jssun.java2d.loops.CompositeType.AnyAlpha.deriveSubType("Porter-Duff Dst");c$.SrcOver=c$.prototype.SrcOver=jssun.java2d.loops.CompositeType.AnyAlpha.deriveSubType("Porter-Duff Src Over Dst");c$.DstOver=c$.prototype.DstOver=jssun.java2d.loops.CompositeType.AnyAlpha.deriveSubType("Porter-Duff Dst Over Src");
2874 c$.SrcIn=c$.prototype.SrcIn=jssun.java2d.loops.CompositeType.AnyAlpha.deriveSubType("Porter-Duff Src In Dst");c$.DstIn=c$.prototype.DstIn=jssun.java2d.loops.CompositeType.AnyAlpha.deriveSubType("Porter-Duff Dst In Src");c$.SrcOut=c$.prototype.SrcOut=jssun.java2d.loops.CompositeType.AnyAlpha.deriveSubType("Porter-Duff Src HeldOutBy Dst");c$.DstOut=c$.prototype.DstOut=jssun.java2d.loops.CompositeType.AnyAlpha.deriveSubType("Porter-Duff Dst HeldOutBy Src");c$.SrcAtop=c$.prototype.SrcAtop=jssun.java2d.loops.CompositeType.AnyAlpha.deriveSubType("Porter-Duff Src Atop Dst");
2875 c$.DstAtop=c$.prototype.DstAtop=jssun.java2d.loops.CompositeType.AnyAlpha.deriveSubType("Porter-Duff Dst Atop Src");c$.AlphaXor=c$.prototype.AlphaXor=jssun.java2d.loops.CompositeType.AnyAlpha.deriveSubType("Porter-Duff Xor");c$.SrcNoEa=c$.prototype.SrcNoEa=jssun.java2d.loops.CompositeType.Src.deriveSubType("Porter-Duff Src, No Extra Alpha");c$.SrcOverNoEa=c$.prototype.SrcOverNoEa=jssun.java2d.loops.CompositeType.SrcOver.deriveSubType("Porter-Duff SrcOverDst, No Extra Alpha");G(c$,"unusedUID",1)});
2876 p("awt2swing");q(["javax.swing.JScrollPane"],"awt2swing.ScrollPane",null,function(){c$=B(awt2swing,"ScrollPane",javax.swing.JScrollPane)});p("javax.swing");q(["javax.swing.JComponent","$.JScrollBar","$.ScrollPaneConstants","javax.swing.plaf.UIResource"],"javax.swing.JScrollPane","java.lang.Boolean $.ClassCastException $.IllegalArgumentException java.awt.Point $.Rectangle javax.swing.JViewport $.ScrollPaneLayout $.Scrollable $.SwingUtilities $.UIManager".split(" "),function(){c$=s(function(){this.viewportBorder=
2877 null;this.verticalScrollBarPolicy=20;this.horizontalScrollBarPolicy=30;this.upperRight=this.upperLeft=this.lowerRight=this.lowerLeft=this.columnHeader=this.rowHeader=this.horizontalScrollBar=this.verticalScrollBar=this.viewport=null;this.wheelScrollState=!0;H("javax.swing.JScrollPane.ScrollBar")||javax.swing.JScrollPane.$JScrollPane$ScrollBar$();r(this,arguments)},javax.swing,"JScrollPane",javax.swing.JComponent,javax.swing.ScrollPaneConstants);m(c$,function(a,b,c){t(this,javax.swing.JScrollPane,
2878 []);this.setLayout(new javax.swing.ScrollPaneLayout.UIResource);this.setVerticalScrollBarPolicy(b);this.setHorizontalScrollBarPolicy(c);this.setViewport(this.createViewport());this.setVerticalScrollBar(this.createVerticalScrollBar());this.setHorizontalScrollBar(this.createHorizontalScrollBar());null!=a&&this.setViewportView(a);this.setUIProperty("opaque",new Boolean(!0));this.updateUI();this.getComponentOrientation().isLeftToRight()||this.viewport.setViewPosition(new java.awt.Point(2147483647,0))},
2879 "java.awt.Component,~N,~N");m(c$,function(a){this.construct(a,20,30)},"java.awt.Component");m(c$,function(a,b){this.construct(null,a,b)},"~N,~N");m(c$,function(){this.construct(null,20,30)});e(c$,"getUI",function(){return this.ui});e(c$,"updateUI",function(){this.setUI(javax.swing.UIManager.getUI(this))});e(c$,"getUIClassID",function(){return"ScrollPaneUI"});d(c$,"setLayout",function(a){if(v(a,javax.swing.ScrollPaneLayout))K(this,javax.swing.JScrollPane,"setLayout",[a]),a.syncWithScrollPane(this);
2880 else if(null==a)K(this,javax.swing.JScrollPane,"setLayout",[a]);else throw new ClassCastException("layout of JScrollPane must be a ScrollPaneLayout");},"java.awt.LayoutManager");e(c$,"isValidateRoot",function(){return!0});d(c$,"getVerticalScrollBarPolicy",function(){return this.verticalScrollBarPolicy});d(c$,"setVerticalScrollBarPolicy",function(a){switch(a){case 20:case 21:case 22:break;default:throw new IllegalArgumentException("invalid verticalScrollBarPolicy");}var b=this.verticalScrollBarPolicy;
2881 this.verticalScrollBarPolicy=a;this.firePropertyChangeInt("verticalScrollBarPolicy",b,a);this.revalidate();this.repaint()},"~N");d(c$,"getHorizontalScrollBarPolicy",function(){return this.horizontalScrollBarPolicy});d(c$,"setHorizontalScrollBarPolicy",function(a){switch(a){case 30:case 31:case 32:break;default:throw new IllegalArgumentException("invalid horizontalScrollBarPolicy");}var b=this.horizontalScrollBarPolicy;this.horizontalScrollBarPolicy=a;this.firePropertyChangeInt("horizontalScrollBarPolicy",
2882 b,a);this.revalidate();this.repaint()},"~N");d(c$,"getViewportBorder",function(){return this.viewportBorder});d(c$,"setViewportBorder",function(a){var b=this.viewportBorder;this.viewportBorder=a;this.firePropertyChangeObject("viewportBorder",b,a)},"javax.swing.border.Border");d(c$,"getViewportBorderBounds",function(){var a=new java.awt.Rectangle(this.getSize()),b=this.getInsets();a.x=b.left;a.y=b.top;a.width-=b.left+b.right;a.height-=b.top+b.bottom;var b=javax.swing.SwingUtilities.isLeftToRight(this),
2883 c=this.getColumnHeader();null!=c&&c.isVisible()&&(c=c.getHeight(),a.y+=c,a.height-=c);c=this.getRowHeader();null!=c&&c.isVisible()&&(c=c.getWidth(),b&&(a.x+=c),a.width-=c);c=this.getVerticalScrollBar();null!=c&&c.isVisible()&&(c=c.getWidth(),b||(a.x+=c),a.width-=c);b=this.getHorizontalScrollBar();null!=b&&b.isVisible()&&(a.height-=b.getHeight());return a});d(c$,"createHorizontalScrollBar",function(){return C(javax.swing.JScrollPane.ScrollBar,this,null,0)});d(c$,"getHorizontalScrollBar",function(){return this.horizontalScrollBar});
2884 d(c$,"setHorizontalScrollBar",function(a){var b=this.getHorizontalScrollBar();this.horizontalScrollBar=a;null!=a?this.add(a,"HORIZONTAL_SCROLLBAR"):null!=b&&this.remove(b);this.firePropertyChangeObject("horizontalScrollBar",b,a);this.revalidate();this.repaint()},"javax.swing.JScrollBar");d(c$,"createVerticalScrollBar",function(){return C(javax.swing.JScrollPane.ScrollBar,this,null,1)});d(c$,"getVerticalScrollBar",function(){return this.verticalScrollBar});d(c$,"setVerticalScrollBar",function(a){var b=
2885 this.getVerticalScrollBar();this.verticalScrollBar=a;this.add(a,"VERTICAL_SCROLLBAR");this.firePropertyChangeObject("verticalScrollBar",b,a);this.revalidate();this.repaint()},"javax.swing.JScrollBar");d(c$,"createViewport",function(){return new javax.swing.JViewport});d(c$,"getViewport",function(){return this.viewport});d(c$,"setViewport",function(a){var b=this.getViewport();this.viewport=a;null!=a?this.add(a,"VIEWPORT"):null!=b&&this.remove(b);this.firePropertyChangeObject("viewport",b,a);this.revalidate();
2886 this.repaint()},"javax.swing.JViewport");d(c$,"setViewportView",function(a){null==this.getViewport()&&this.setViewport(this.createViewport());this.getViewport().setView(a)},"java.awt.Component");d(c$,"getRowHeader",function(){return this.rowHeader});d(c$,"setRowHeader",function(a){var b=this.getRowHeader();this.rowHeader=a;null!=a?this.add(a,"ROW_HEADER"):null!=b&&this.remove(b);this.firePropertyChangeObject("rowHeader",b,a);this.revalidate();this.repaint()},"javax.swing.JViewport");d(c$,"setRowHeaderView",
2887 function(a){null==this.getRowHeader()&&this.setRowHeader(this.createViewport());this.getRowHeader().setView(a)},"java.awt.Component");d(c$,"getColumnHeader",function(){return this.columnHeader});d(c$,"setColumnHeader",function(a){var b=this.getColumnHeader();this.columnHeader=a;null!=a?this.add(a,"COLUMN_HEADER"):null!=b&&this.remove(b);this.firePropertyChangeObject("columnHeader",b,a);this.revalidate();this.repaint()},"javax.swing.JViewport");d(c$,"setColumnHeaderView",function(a){null==this.getColumnHeader()&&
2888 this.setColumnHeader(this.createViewport());this.getColumnHeader().setView(a)},"java.awt.Component");d(c$,"getCorner",function(a){var b=this.getComponentOrientation().isLeftToRight();a.equals("LOWER_LEADING_CORNER")?a=b?"LOWER_LEFT_CORNER":"LOWER_RIGHT_CORNER":a.equals("LOWER_TRAILING_CORNER")?a=b?"LOWER_RIGHT_CORNER":"LOWER_LEFT_CORNER":a.equals("UPPER_LEADING_CORNER")?a=b?"UPPER_LEFT_CORNER":"UPPER_RIGHT_CORNER":a.equals("UPPER_TRAILING_CORNER")&&(a=b?"UPPER_RIGHT_CORNER":"UPPER_LEFT_CORNER");return a.equals("LOWER_LEFT_CORNER")?
2889 this.lowerLeft:a.equals("LOWER_RIGHT_CORNER")?this.lowerRight:a.equals("UPPER_LEFT_CORNER")?this.upperLeft:a.equals("UPPER_RIGHT_CORNER")?this.upperRight:null},"~S");d(c$,"setCorner",function(a,b){var c;c=this.getComponentOrientation().isLeftToRight();a.equals("LOWER_LEADING_CORNER")?a=c?"LOWER_LEFT_CORNER":"LOWER_RIGHT_CORNER":a.equals("LOWER_TRAILING_CORNER")?a=c?"LOWER_RIGHT_CORNER":"LOWER_LEFT_CORNER":a.equals("UPPER_LEADING_CORNER")?a=c?"UPPER_LEFT_CORNER":"UPPER_RIGHT_CORNER":a.equals("UPPER_TRAILING_CORNER")&&
2890 (a=c?"UPPER_RIGHT_CORNER":"UPPER_LEFT_CORNER");if(a.equals("LOWER_LEFT_CORNER"))c=this.lowerLeft,this.lowerLeft=b;else if(a.equals("LOWER_RIGHT_CORNER"))c=this.lowerRight,this.lowerRight=b;else if(a.equals("UPPER_LEFT_CORNER"))c=this.upperLeft,this.upperLeft=b;else if(a.equals("UPPER_RIGHT_CORNER"))c=this.upperRight,this.upperRight=b;else throw new IllegalArgumentException("invalid corner key");null!=c&&this.remove(c);null!=b&&this.add(b,a);this.firePropertyChangeObject(a,c,b);this.revalidate();this.repaint()},
2891 "~S,java.awt.Component");d(c$,"setComponentOrientation",function(a){K(this,javax.swing.JScrollPane,"setComponentOrientation",[a]);null!=this.verticalScrollBar&&this.verticalScrollBar.setComponentOrientation(a);null!=this.horizontalScrollBar&&this.horizontalScrollBar.setComponentOrientation(a)},"java.awt.ComponentOrientation");d(c$,"isWheelScrollingEnabled",function(){return this.wheelScrollState});d(c$,"setWheelScrollingEnabled",function(a){var b=this.wheelScrollState;this.wheelScrollState=a;this.firePropertyChangeBool("wheelScrollingEnabled",
2892 b,a)},"~B");d(c$,"paramString",function(){var a=null!=this.viewportBorder?this.viewportBorder.toString():"",b=null!=this.viewport?this.viewport.toString():"",c;c=20==this.verticalScrollBarPolicy?"VERTICAL_SCROLLBAR_AS_NEEDED":21==this.verticalScrollBarPolicy?"VERTICAL_SCROLLBAR_NEVER":22==this.verticalScrollBarPolicy?"VERTICAL_SCROLLBAR_ALWAYS":"";var d;d=30==this.horizontalScrollBarPolicy?"HORIZONTAL_SCROLLBAR_AS_NEEDED":31==this.horizontalScrollBarPolicy?"HORIZONTAL_SCROLLBAR_NEVER":32==this.horizontalScrollBarPolicy?
2893 "HORIZONTAL_SCROLLBAR_ALWAYS":"";var e=null!=this.horizontalScrollBar?this.horizontalScrollBar.toString():"",k=null!=this.verticalScrollBar?this.verticalScrollBar.toString():"",g=null!=this.columnHeader?this.columnHeader.toString():"",h=null!=this.rowHeader?this.rowHeader.toString():"",j=null!=this.lowerLeft?this.lowerLeft.toString():"",n=null!=this.lowerRight?this.lowerRight.toString():"",m=null!=this.upperLeft?this.upperLeft.toString():"",p=null!=this.upperRight?this.upperRight.toString():"";return K(this,
2894 javax.swing.JScrollPane,"paramString",[])+",columnHeader="+g+",horizontalScrollBar="+e+",horizontalScrollBarPolicy="+d+",lowerLeft="+j+",lowerRight="+n+",rowHeader="+h+",upperLeft="+m+",upperRight="+p+",verticalScrollBar="+k+",verticalScrollBarPolicy="+c+",viewport="+b+",viewportBorder="+a});c$.$JScrollPane$ScrollBar$=function(){A(self.c$);c$=s(function(){O(this,arguments);this.blockIncrementSet=this.unitIncrementSet=!1;r(this,arguments)},javax.swing.JScrollPane,"ScrollBar",javax.swing.JScrollBar,
2895 javax.swing.plaf.UIResource);m(c$,function(a){t(this,javax.swing.JScrollPane.ScrollBar,[a]);this.putClientProperty("JScrollBar.fastWheelScrolling",Boolean.TRUE)},"~N");d(c$,"setUnitIncrement",function(a){this.unitIncrementSet=!0;this.putClientProperty("JScrollBar.fastWheelScrolling",null);K(this,javax.swing.JScrollPane.ScrollBar,"setUnitIncrement",[a])},"~N");d(c$,"getUnitIncrement",function(a){var b=this.b$["javax.swing.JScrollPane"].getViewport();if(!this.unitIncrementSet&&null!=b&&v(b.getView(),
2896 javax.swing.Scrollable)){var c=b.getView(),b=b.getViewRect();return c.getScrollableUnitIncrement(b,this.getOrientation(),a)}return K(this,javax.swing.JScrollPane.ScrollBar,"getUnitIncrement",[a])},"~N");d(c$,"setBlockIncrement",function(a){this.blockIncrementSet=!0;this.putClientProperty("JScrollBar.fastWheelScrolling",null);K(this,javax.swing.JScrollPane.ScrollBar,"setBlockIncrement",[a])},"~N");d(c$,"getBlockIncrement",function(a){var b=this.b$["javax.swing.JScrollPane"].getViewport();if(this.blockIncrementSet||
2897 null==b)return K(this,javax.swing.JScrollPane.ScrollBar,"getBlockIncrement",[a]);if(v(b.getView(),javax.swing.Scrollable)){var c=b.getView(),b=b.getViewRect();return c.getScrollableBlockIncrement(b,this.getOrientation(),a)}return 1==this.getOrientation()?b.getExtentSize().height:b.getExtentSize().width},"~N");c$=z()};G(c$,"$uiClassID","ScrollPaneUI")});p("javax.swing");c$=M(javax.swing,"ScrollPaneConstants");G(c$,"VIEWPORT","VIEWPORT","VERTICAL_SCROLLBAR","VERTICAL_SCROLLBAR","HORIZONTAL_SCROLLBAR",
2898 "HORIZONTAL_SCROLLBAR","ROW_HEADER","ROW_HEADER","COLUMN_HEADER","COLUMN_HEADER","LOWER_LEFT_CORNER","LOWER_LEFT_CORNER","LOWER_RIGHT_CORNER","LOWER_RIGHT_CORNER","UPPER_LEFT_CORNER","UPPER_LEFT_CORNER","UPPER_RIGHT_CORNER","UPPER_RIGHT_CORNER","LOWER_LEADING_CORNER","LOWER_LEADING_CORNER","LOWER_TRAILING_CORNER","LOWER_TRAILING_CORNER","UPPER_LEADING_CORNER","UPPER_LEADING_CORNER","UPPER_TRAILING_CORNER","UPPER_TRAILING_CORNER","VERTICAL_SCROLLBAR_POLICY","VERTICAL_SCROLLBAR_POLICY","HORIZONTAL_SCROLLBAR_POLICY",
2899 "HORIZONTAL_SCROLLBAR_POLICY","VERTICAL_SCROLLBAR_AS_NEEDED",20,"VERTICAL_SCROLLBAR_NEVER",21,"VERTICAL_SCROLLBAR_ALWAYS",22,"HORIZONTAL_SCROLLBAR_AS_NEEDED",30,"HORIZONTAL_SCROLLBAR_NEVER",31,"HORIZONTAL_SCROLLBAR_ALWAYS",32);p("javax.swing");q(["java.awt.LayoutManager","javax.swing.ScrollPaneConstants","javax.swing.plaf.UIResource"],"javax.swing.ScrollPaneLayout","java.lang.IllegalArgumentException java.awt.Dimension $.Insets $.Rectangle javax.swing.Scrollable $.SwingUtilities $.UIManager".split(" "),
2900 function(){c$=s(function(){this.upperRight=this.upperLeft=this.lowerRight=this.lowerLeft=this.colHead=this.rowHead=this.hsb=this.vsb=this.viewport=null;this.vsbPolicy=20;this.hsbPolicy=30;r(this,arguments)},javax.swing,"ScrollPaneLayout",null,[java.awt.LayoutManager,javax.swing.ScrollPaneConstants]);d(c$,"syncWithScrollPane",function(a){this.viewport=a.getViewport();this.vsb=a.getVerticalScrollBar();this.hsb=a.getHorizontalScrollBar();this.rowHead=a.getRowHeader();this.colHead=a.getColumnHeader();
2901 this.lowerLeft=a.getCorner("LOWER_LEFT_CORNER");this.lowerRight=a.getCorner("LOWER_RIGHT_CORNER");this.upperLeft=a.getCorner("UPPER_LEFT_CORNER");this.upperRight=a.getCorner("UPPER_RIGHT_CORNER");this.vsbPolicy=a.getVerticalScrollBarPolicy();this.hsbPolicy=a.getHorizontalScrollBarPolicy()},"javax.swing.JScrollPane");d(c$,"addSingletonComponent",function(a,b){null!=a&&a!==b&&a.getParent().remove(a);return b},"java.awt.Component,java.awt.Component");e(c$,"addLayoutComponent",function(a,b){if(a.equals("VIEWPORT"))this.viewport=
2902 this.addSingletonComponent(this.viewport,b);else if(a.equals("VERTICAL_SCROLLBAR"))this.vsb=this.addSingletonComponent(this.vsb,b);else if(a.equals("HORIZONTAL_SCROLLBAR"))this.hsb=this.addSingletonComponent(this.hsb,b);else if(a.equals("ROW_HEADER"))this.rowHead=this.addSingletonComponent(this.rowHead,b);else if(a.equals("COLUMN_HEADER"))this.colHead=this.addSingletonComponent(this.colHead,b);else if(a.equals("LOWER_LEFT_CORNER"))this.lowerLeft=this.addSingletonComponent(this.lowerLeft,b);else if(a.equals("LOWER_RIGHT_CORNER"))this.lowerRight=
2903 this.addSingletonComponent(this.lowerRight,b);else if(a.equals("UPPER_LEFT_CORNER"))this.upperLeft=this.addSingletonComponent(this.upperLeft,b);else if(a.equals("UPPER_RIGHT_CORNER"))this.upperRight=this.addSingletonComponent(this.upperRight,b);else throw new IllegalArgumentException("invalid layout key "+a);},"~S,java.awt.Component");e(c$,"removeLayoutComponent",function(a){a===this.viewport?this.viewport=null:a===this.vsb?this.vsb=null:a===this.hsb?this.hsb=null:a===this.rowHead?this.rowHead=null:
2904 a===this.colHead?this.colHead=null:a===this.lowerLeft?this.lowerLeft=null:a===this.lowerRight?this.lowerRight=null:a===this.upperLeft?this.upperLeft=null:a===this.upperRight&&(this.upperRight=null)},"java.awt.Component");d(c$,"getVerticalScrollBarPolicy",function(){return this.vsbPolicy});d(c$,"setVerticalScrollBarPolicy",function(a){switch(a){case 20:case 21:case 22:this.vsbPolicy=a;break;default:throw new IllegalArgumentException("invalid verticalScrollBarPolicy");}},"~N");d(c$,"getHorizontalScrollBarPolicy",
2905 function(){return this.hsbPolicy});d(c$,"setHorizontalScrollBarPolicy",function(a){switch(a){case 30:case 31:case 32:this.hsbPolicy=a;break;default:throw new IllegalArgumentException("invalid horizontalScrollBarPolicy");}},"~N");d(c$,"getViewport",function(){return this.viewport});d(c$,"getHorizontalScrollBar",function(){return this.hsb});d(c$,"getVerticalScrollBar",function(){return this.vsb});d(c$,"getRowHeader",function(){return this.rowHead});d(c$,"getColumnHeader",function(){return this.colHead});
2906 d(c$,"getCorner",function(a){return a.equals("LOWER_LEFT_CORNER")?this.lowerLeft:a.equals("LOWER_RIGHT_CORNER")?this.lowerRight:a.equals("UPPER_LEFT_CORNER")?this.upperLeft:a.equals("UPPER_RIGHT_CORNER")?this.upperRight:null},"~S");e(c$,"preferredLayoutSize",function(a){this.vsbPolicy=a.getVerticalScrollBarPolicy();this.hsbPolicy=a.getHorizontalScrollBarPolicy();var b=a.getInsets(),c=b.left+b.right,b=b.top+b.bottom,d=null,e=null,k=null;null!=this.viewport&&(d=this.viewport.getPreferredSize(),k=this.viewport.getView(),
2907 e=null!=k?k.getPreferredSize():new java.awt.Dimension(0,0));null!=d&&(c+=d.width,b+=d.height);var g=a.getViewportBorder();null!=g&&(a=g.getBorderInsets(a),c+=a.left+a.right,b+=a.top+a.bottom);null!=this.rowHead&&this.rowHead.isVisible()&&(c+=this.rowHead.getPreferredSize().width);null!=this.colHead&&this.colHead.isVisible()&&(b+=this.colHead.getPreferredSize().height);null!=this.vsb&&21!=this.vsbPolicy&&(22==this.vsbPolicy?c+=this.vsb.getPreferredSize().width:null!=e&&null!=d&&(a=!0,v(k,javax.swing.Scrollable)&&
2908 (a=!k.getScrollableTracksViewportHeight()),a&&e.height>d.height&&(c+=this.vsb.getPreferredSize().width)));null!=this.hsb&&31!=this.hsbPolicy&&(32==this.hsbPolicy?b+=this.hsb.getPreferredSize().height:null!=e&&null!=d&&(a=!0,v(k,javax.swing.Scrollable)&&(a=!k.getScrollableTracksViewportWidth()),a&&e.width>d.width&&(b+=this.hsb.getPreferredSize().height)));return new java.awt.Dimension(c,b)},"java.awt.Container");e(c$,"minimumLayoutSize",function(a){this.vsbPolicy=a.getVerticalScrollBarPolicy();this.hsbPolicy=
2909 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(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&&
2910 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 new java.awt.Dimension(c,b)},"java.awt.Container");e(c$,"layoutContainer",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=javax.swing.SwingUtilities.isLeftToRight(a),
2911 d=new java.awt.Rectangle(0,b.y,0,0);if(null!=this.colHead&&this.colHead.isVisible()){var e=Math.min(b.height,this.colHead.getPreferredSize().height);d.height=e;b.y+=e;b.height-=e}e=new java.awt.Rectangle(0,0,0,0);if(null!=this.rowHead&&this.rowHead.isVisible()){var k=Math.min(b.width,this.rowHead.getPreferredSize().width);e.width=k;b.width-=k;c?(e.x=b.x,b.x+=k):e.x=b.x+b.width}k=a.getViewportBorder();null!=k?(a=k.getBorderInsets(a),b.x+=a.left,b.y+=a.top,b.width-=a.left+a.right,b.height-=a.top+a.bottom):
2912 a=new java.awt.Insets(0,0,0,0);var g=null!=this.viewport?this.viewport.getView():null,k=null!=g?g.getPreferredSize():new java.awt.Dimension(0,0),h=null!=this.viewport?this.viewport.toViewCoordinates(b.getSize()):new java.awt.Dimension(0,0),j=!1,n=!1,m=0>b.width||0>b.height,p;!m&&v(g,javax.swing.Scrollable)?(p=g,j=p.getScrollableTracksViewportWidth(),n=p.getScrollableTracksViewportHeight()):p=null;var g=new java.awt.Rectangle(0,b.y-a.top,0,0),q;q=m?!1:22==this.vsbPolicy?!0:21==this.vsbPolicy?!1:!n&&
2913 k.height>h.height;null!=this.vsb&&q&&(this.adjustForVSB(!0,b,g,a,c),h=this.viewport.toViewCoordinates(b.getSize()));var r=new java.awt.Rectangle(b.x-a.left,0,0,0),m=m?!1:32==this.hsbPolicy?!0:31==this.hsbPolicy?!1:!j&&k.width>h.width;null!=this.hsb&&m&&(this.adjustForHSB(!0,b,r,a),null!=this.vsb&&(!q&&21!=this.vsbPolicy)&&(h=this.viewport.toViewCoordinates(b.getSize()),(q=k.height>h.height)&&this.adjustForVSB(!0,b,g,a,c)));if(null!=this.viewport&&(this.viewport.setBounds(b),null!=p)){var h=this.viewport.toViewCoordinates(b.getSize()),
2914 s=m,t=q,j=p.getScrollableTracksViewportWidth(),n=p.getScrollableTracksViewportHeight();null!=this.vsb&&20==this.vsbPolicy&&(n=!n&&k.height>h.height,n!=q&&(q=n,this.adjustForVSB(q,b,g,a,c),h=this.viewport.toViewCoordinates(b.getSize())));null!=this.hsb&&30==this.hsbPolicy&&(h=!j&&k.width>h.width,h!=m&&(m=h,this.adjustForHSB(m,b,r,a),null!=this.vsb&&(!q&&21!=this.vsbPolicy)&&(h=this.viewport.toViewCoordinates(b.getSize()),(q=k.height>h.height)&&this.adjustForVSB(!0,b,g,a,c))));(s!=m||t!=q)&&this.viewport.setBounds(b)}g.height=
2915 b.height+a.top+a.bottom;r.width=b.width+a.left+a.right;e.height=b.height+a.top+a.bottom;e.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(e);null!=this.colHead&&this.colHead.setBounds(d);if(null!=this.vsb)if(q){if(null!=this.colHead&&javax.swing.UIManager.getBoolean("ScrollPane.fillUpperCorner")&&(c&&null==this.upperRight||!c&&null==this.upperLeft))g.y=d.y,g.height+=d.height;this.vsb.setVisible(!0);this.vsb.setBounds(g)}else this.vsb.setVisible(!1);
2916 if(null!=this.hsb)if(m){if(null!=this.rowHead&&javax.swing.UIManager.getBoolean("ScrollPane.fillLowerCorner")&&(c&&null==this.lowerLeft||!c&&null==this.lowerRight))c&&(r.x=e.x),r.width+=e.width;this.hsb.setVisible(!0);this.hsb.setBounds(r)}else this.hsb.setVisible(!1);null!=this.lowerLeft&&this.lowerLeft.setBounds(c?e.x:g.x,r.y,c?e.width:g.width,r.height);null!=this.lowerRight&&this.lowerRight.setBounds(c?g.x:e.x,r.y,c?g.width:e.width,r.height);null!=this.upperLeft&&this.upperLeft.setBounds(c?e.x:
2917 g.x,d.y,c?e.width:g.width,d.height);null!=this.upperRight&&this.upperRight.setBounds(c?g.x:e.x,d.y,c?g.width:e.width,d.height)},"java.awt.Container");d(c$,"adjustForVSB",function(a,b,c,d,e){var k=c.width;a?(a=Math.max(0,Math.min(this.vsb.getPreferredSize().width,b.width)),b.width-=a,c.width=a,e?c.x=b.x+b.width+d.right:(c.x=b.x-d.left,b.x+=a)):b.width+=k},"~B,java.awt.Rectangle,java.awt.Rectangle,java.awt.Insets,~B");d(c$,"adjustForHSB",function(a,b,c,d){var e=c.height;a?(a=Math.max(0,Math.min(b.height,
2918 this.hsb.getPreferredSize().height)),b.height-=a,c.y=b.y+b.height+d.bottom,c.height=a):b.height+=e},"~B,java.awt.Rectangle,java.awt.Rectangle,java.awt.Insets");d(c$,"getViewportBorderBounds",function(a){return a.getViewportBorderBounds()},"javax.swing.JScrollPane");A(self.c$);c$=B(javax.swing.ScrollPaneLayout,"UIResource",javax.swing.ScrollPaneLayout,javax.swing.plaf.UIResource);c$=z()});p("jalview.io");q(["jalview.io.AlignFile","java.lang.Enum","$.Exception"],"jalview.io.FeaturesFile","jalview.analysis.SequenceIdMatcher jalview.datamodel.AlignedCodonFrame $.SequenceDummy $.SequenceFeature jalview.jsdev.GenericFileAdapter jalview.schemes.GraduatedColor $.UserColourScheme jalview.util.Format $.MapList $.ParseHtmlBodyAndLinks java.awt.Color java.lang.Float $.StringBuffer java.util.ArrayList $.Arrays $.HashMap $.Hashtable $.StringTokenizer $.Vector".split(" "),
2919 function(){c$=s(function(){this.doGffSource=!0;this.gffversion=0;H("jalview.io.FeaturesFile.InvalidGFF3FieldException")||jalview.io.FeaturesFile.$FeaturesFile$InvalidGFF3FieldException$();this.matcher=this.lastmatchedAl=null;r(this,arguments)},jalview.io,"FeaturesFile",jalview.io.AlignFile);m(c$,function(){t(this,jalview.io.FeaturesFile,[])});d(c$,"parse",function(a,b,c){return this.parse(a,b,null,c,!1)},"jalview.datamodel.AlignmentI,java.util.Hashtable,~B");d(c$,"parse",function(a,b,c,d){return this.parse(a,
2920 b,null,c,d)},"jalview.datamodel.AlignmentI,java.util.Map,~B,~B");d(c$,"parse",function(a,b,c,d){return this.parse(a,b,c,d,!1)},"jalview.datamodel.AlignmentI,java.util.Map,java.util.Map,~B");d(c$,"parse",function(a,b,c,d,e){var k=null;try{for(var g=null,h=new java.util.ArrayList,j,n,m=null,p,q,r,s,t,v,w=null,z=null,A=new java.util.Hashtable,B=!0,E=new java.util.HashMap;null!=(k=this.nextLine());)if(k.startsWith("#"))k.startsWith("##")&&(this.processGffPragma(k,E,a,h),k="");else if(t=new java.util.StringTokenizer(k,
2921 "\t"),1==t.countTokens()&&k.trim().equalsIgnoreCase("GFF"))B=!0;else if(1<t.countTokens()&&4>t.countTokens())if(B=!1,j=t.nextToken(),j.equalsIgnoreCase("startgroup"))w=t.nextToken(),t.hasMoreElements()&&(z=t.nextToken(),c.put(w,z));else if(j.equalsIgnoreCase("endgroup"))t.nextToken(),z=w=null;else{var C=null,F=t.nextToken();if(-1<F.indexOf("|")||F.trim().equalsIgnoreCase("label")){var G=new java.util.StringTokenizer(F,"|",!0),H=1.4E-45,I=3.4028235E38,J=!1,K=G.nextToken();if("|"===K){System.err.println("Expected either 'label' or a colour specification in the line: "+
2922 k);continue}var L=null;0==K.toLowerCase().indexOf("label")&&(J=!0,K=G.hasMoreTokens()?G.nextToken():null,K=G.hasMoreTokens()?G.nextToken():null);var M=null,N,O;if(null!=K){K.equals("|")?K="":G.nextToken();L=G.nextToken();L.equals("|")?L="":G.nextToken();M=G.nextToken();G.nextToken();0!=M.toLowerCase().indexOf("abso")?(N=M,M=null):(N=G.nextToken(),G.nextToken());O=G.nextToken();G.hasMoreTokens()&&G.nextToken();try{0<N.length&&(H=(new Float(N)).floatValue())}catch(Q){if(y(Q,Exception))System.err.println("Couldn't parse the minimum value for graduated colour for type ("+
2923 F+") - did you misspell 'auto' for the optional automatic colour switch ?"),Q.printStackTrace();else throw Q;}try{0<O.length&&(I=(new Float(O)).floatValue())}catch(R){if(y(R,Exception))System.err.println("Couldn't parse the maximum value for graduated colour for type ("+F+")"),R.printStackTrace();else throw R;}}else K="FFFFFF",L="000000";try{C=new jalview.schemes.GraduatedColor((new jalview.schemes.UserColourScheme(K)).findColour("A"),(new jalview.schemes.UserColourScheme(L)).findColour("A"),H,I)}catch(S){if(y(S,
2924 Exception))System.err.println("Couldn't parse the graduated colour scheme ("+F+")"),S.printStackTrace();else throw S;}if(null!=C){C.setColourByLabel(J);C.setAutoScaled(null==M);I=H=null;G.hasMoreTokens()&&(H=G.nextToken(),H.toLowerCase().startsWith("below")?C.setThreshType(0):H.toLowerCase().startsWith("above")?C.setThreshType(1):(C.setThreshType(-1),H.toLowerCase().startsWith("no")||System.err.println("Ignoring unrecognised threshold type : "+H)));if(-1!=C.getThreshType())try{G.nextToken(),I=G.nextToken(),
2925 C.setThresh((new Float(I)).floatValue())}catch(P){if(y(P,Exception))System.err.println("Couldn't parse threshold value as a float: ("+I+")"),P.printStackTrace();else throw P;}if(G.hasMoreTokens()){for(System.err.println("Ignoring additional tokens in parameters in graduated colour specification\n");G.hasMoreTokens();)System.err.println("|"+G.nextToken());System.err.println("\n")}}}else var T=new jalview.schemes.UserColourScheme(F),C=T.findColour("A");null!=C&&b.put(j,C);if(t.hasMoreElements()){var U=
2926 t.nextToken();A.put(j,U);null==c&&(c=new java.util.Hashtable);c.put(j,U)}}else for(C="";t.hasMoreElements();){if(B&&(C=m=t.nextToken(),g=this.findName(a,C,e,h),null!=g)){n=t.nextToken();H=null;this.doGffSource&&-1==n.indexOf(" ")&&(H=String.instantialize(n));j=t.nextToken();try{var W=t.nextToken();q=0==W.length||W.equals("-")?0:Integer.parseInt(W)}catch(X){if(y(X,NumberFormatException))q=0;else throw X;}try{W=t.nextToken(),r=0==W.length||W.equals("-")?0:Integer.parseInt(W)}catch(Y){if(y(Y,NumberFormatException))r=
2927 0;else throw Y;}0==r&&(q=0);try{s=(new Float(t.nextToken())).floatValue()}catch(Z){if(y(Z,NumberFormatException))s=0;else throw Z;}v=new jalview.datamodel.SequenceFeature(j,n,q,r,s,H);try{v.setValue("STRAND",t.nextToken()),v.setValue("FRAME",t.nextToken())}catch($){if(!y($,Exception))throw $;}if(t.hasMoreTokens()){for(var ba=new StringBuffer,H=!1;t.hasMoreTokens();)ba.append((H?"\t":"")+t.nextElement()),H=!0;v.setValue("ATTRIBUTES",ba.toString())}if(this.processOrAddSeqFeature(a,h,g,v,B,e))for(;null!=
2928 (g=a.findName(g,C,!0));)g.addSequenceFeature(new jalview.datamodel.SequenceFeature(v));break}n=B&&null==g?m:t.nextToken();if(!t.hasMoreTokens())return System.err.println("DEBUG: Run out of tokens when trying to identify the destination for the feature.. giving up."),!1;m=t.nextToken();if(m.equals("ID_NOT_SPECIFIED")){C=null;try{p=Integer.parseInt(t.nextToken()),g=a.getSequenceAt(p)}catch(ca){if(y(ca,NumberFormatException))g=null;else throw ca;}}else g=this.findName(a,C=m,e,null),t.nextToken();if(null==
2929 g){System.out.println("Sequence not found: "+k);break}q=Integer.parseInt(t.nextToken());r=Integer.parseInt(t.nextToken());j=t.nextToken();b.containsKey(j)||(T=new jalview.schemes.UserColourScheme(j),b.put(j,T.findColour("A")));v=new jalview.datamodel.SequenceFeature(j,n,"",q,r,w);if(t.hasMoreTokens()){try{s=(new Float(t.nextToken())).floatValue()}catch(da){if(y(da,NumberFormatException))s=0;else throw da;}v.setScore(s)}null!=z&&d&&(v.addLink(z),v.description+="%LINK%");A.containsKey(j)&&d&&(v.addLink(A.get(j).toString()),
2930 v.description+="%LINK%");this.parseDescriptionHTML(v,d);for(g.addSequenceFeature(v);null!=C&&null!=(g=a.findName(g,C,!1));)g.addSequenceFeature(new jalview.datamodel.SequenceFeature(v));B=!1}this.resetMatcher()}catch(aa){if(y(aa,Exception))return this.warningMessage=(null==this.warningMessage?"":this.warningMessage)+"Parsing error at\n"+k,System.out.println("Error parsing feature file: "+aa+"\n"+k),aa.printStackTrace(System.err),this.resetMatcher(),!1;throw aa;}return!0},"jalview.datamodel.AlignmentI,java.util.Map,java.util.Map,~B,~B");
2931 d(c$,"processGffPragma",function(a,b,c,d){b=a.indexOf(" ");var e=-1==b?a.substring(2).trim():a.substring(2,b),e=jalview.io.FeaturesFile.GFFPRAGMA.get(e.toLowerCase());if(null!=e)switch(e){case jalview.io.FeaturesFile.GffPragmas.gff_version:this.gffversion=Integer.parseInt(a.substring(b+1));break;case jalview.io.FeaturesFile.GffPragmas.feature_ontology:break;case jalview.io.FeaturesFile.GffPragmas.attribute_ontology:break;case jalview.io.FeaturesFile.GffPragmas.source_ontology:break;case jalview.io.FeaturesFile.GffPragmas.species_build:break;
2932 case jalview.io.FeaturesFile.GffPragmas.hash:break;case jalview.io.FeaturesFile.GffPragmas.fasta:this.process_as_fasta(c,d);break;default:System.err.println("Ignoring unknown pragma:\n"+a)}},"~S,java.util.Map,jalview.datamodel.AlignmentI,java.util.ArrayList");d(c$,"process_as_fasta",function(a,b){try{this.mark()}catch(c){if(!y(c,java.io.IOException))throw c;}for(var d=jalview.jsdev.GenericFileAdapter.getFile("FastaFile",[]).getSeqs(),e=new jalview.analysis.SequenceIdMatcher(b),k=0,g=d.size();k<g;k++){var h=
2933 e.findIdMatch(d.get(k));if(null!=h){var j=d.get(k);v(h,jalview.datamodel.SequenceDummy)&&(h.become(j),d.set(k,h))}}for(var n,d=d.iterator();d.hasNext()&&((n=d.next())||1);)a.addSequence(n)},"jalview.datamodel.AlignmentI,java.util.List");d(c$,"processOrAddSeqFeature",function(a,b,c,d,e,k){var g=d.getValue("ATTRIBUTES"),h=!0;if(e&&null!=g){e=8;for(var j,n=0,g=g.$plit("\t");n<g.length&&((j=g[n])||1);n++)if(!(null==j||0==j.trim().length)){e++;for(var m=new java.util.HashMap,p,q=0,r=j.trim().$plit(";");q<
2934 r.length&&((p=r[q])||1);q++)if(p=p.trim(),0!=p.length){var s=p.indexOf("="),t=p.indexOf(" "),v=null,w=null;-1<t&&(-1==s||t<s)?(v=p.substring(0,t),w=p.substring(t+1)):-1<s&&(-1==t||s<t)?(v=p.substring(0,s),w=p.substring(s+1)):v=p;null!=v&&(s=m.get(v),null==s&&(s=new java.util.ArrayList,m.put(v,s)),null!=w&&s.add(w.trim()))}try{h=(new Boolean(h&this.processGffKey(m,e,c,d,a,b,k))).valueOf()}catch(z){if(y(z,jalview.io.FeaturesFile.InvalidGFF3FieldException))System.err.println(z);else throw z;}}}h&&c.addSequenceFeature(d);
2935 return h},"jalview.datamodel.AlignmentI,java.util.List,jalview.datamodel.SequenceI,jalview.datamodel.SequenceFeature,~B,~B");d(c$,"processGffKey",function(a,b,c,d,e,k,g){if(d.getType().equals("similarity")){b=d.getStrand();k=this.findNames(e,k,g,a.get(d="Query"));if(null==k||1!=k.size())throw C(jalview.io.FeaturesFile.InvalidGFF3FieldException,this,null,d,a,"Expecting exactly one sequence in Query field (got "+a.get(d)+")");if(a.containsKey(d="Align"))return g=new jalview.datamodel.AlignedCodonFrame,
2936 a=this.constructCodonMappingFromAlign(a,d,b),g.addMap(c,k.get(0),a),e.addCodonFrame(g),!1}return!0},"java.util.Map,~N,jalview.datamodel.SequenceI,jalview.datamodel.SequenceFeature,jalview.datamodel.AlignmentI,java.util.List,~B");d(c$,"constructCodonMappingFromAlign",function(a,b,c){if(0==c)throw C(jalview.io.FeaturesFile.InvalidGFF3FieldException,this,null,b,a,"Invalid strand for a codon mapping (cannot be 0)");for(var d=new java.util.ArrayList,e=new java.util.ArrayList,k=0,g=0,h,j=a.get(b).iterator();j.hasNext()&&
2937 ((h=j.next())||1);){for(var n=new java.util.ArrayList,m=new java.util.StringTokenizer(h," ");m.hasMoreTokens();){var p=m.nextToken();try{n.add(new Integer(p))}catch(q){if(y(q,NumberFormatException))throw C(jalview.io.FeaturesFile.InvalidGFF3FieldException,this,null,b,a,"Invalid number in field "+p);throw q;}}if(3!=n.size())throw C(jalview.io.FeaturesFile.InvalidGFF3FieldException,this,null,b,a,"Invalid number of fields for this attribute ("+n.size()+")");d.add(new Integer(n.get(0).intValue()));d.add(new Integer(n.get(0).intValue()+
2938 c*n.get(2).intValue()));n.get(1).equals(new Integer(k))&&0<g?(k+=n.get(2).intValue()/3,g=n.get(2).intValue()%3,e.set(e.size()-1,new Integer(k))):(e.add(n.get(1)),k=n.get(1).intValue()+n.get(2).intValue()/3,g=n.get(2).intValue()%3,e.add(new Integer(k)))}if(1==d.size()%2)throw C(jalview.io.FeaturesFile.InvalidGFF3FieldException,this,null,b,a,"Couldn't parse the DNA alignment range correctly");if(1==e.size()%2)throw C(jalview.io.FeaturesFile.InvalidGFF3FieldException,this,null,b,a,"Couldn't parse the protein alignment range correctly");
2939 a=w(d.size(),0);b=w(e.size(),0);c=0;for(var r,d=d.iterator();d.hasNext()&&((r=d.next())||1);)a[c++]=r.intValue();c=0;for(d=e.iterator();d.hasNext()&&((r=d.next())||1);)b[c++]=r.intValue();return new jalview.util.MapList(a,b,3,1)},"java.util.Map,~S,~N");d(c$,"findNames",function(a,b,c,d){var e=new java.util.ArrayList,k;for(d=d.iterator();d.hasNext()&&((k=d.next())||1);){var g=this.findName(a,k,c,b);null!=g&&e.add(g)}return e},"jalview.datamodel.AlignmentI,java.util.List,~B,java.util.List");d(c$,"resetMatcher",
2940 function(){this.matcher=this.lastmatchedAl=null});d(c$,"findName",function(a,b,c,d){var e=null;if(c)this.lastmatchedAl!==a&&(this.matcher=new jalview.analysis.SequenceIdMatcher((this.lastmatchedAl=a).getSequencesArray()),null!=d&&this.matcher.addAll(d)),e=this.matcher.findIdMatch(b);else if(e=a.findName(b,!0),null==e&&null!=d){var k;for(a=d.iterator();a.hasNext()&&((k=a.next())||1);)if(b.equals(k.getName()))return k}null==e&&null!=d&&(e=new jalview.datamodel.SequenceDummy(b),c&&this.matcher.addAll(java.util.Arrays.asList(E(-1,
2941 [e]))),d.add(e));return e},"jalview.datamodel.AlignmentI,~S,~B,java.util.List");d(c$,"parseDescriptionHTML",function(a,b){if(null!=a.getDescription()){var c=new jalview.util.ParseHtmlBodyAndLinks(a.getDescription(),b,this.newline);a.description=b?c.getNonHtmlContent():a.description;for(var d,c=c.getLinks().iterator();c.hasNext()&&((d=c.next())||1);)a.addLink(d)}},"jalview.datamodel.SequenceFeature,~B");d(c$,"printJalviewFormat",function(a,b){return this.printJalviewFormat(a,b,!0,!0)},"~A,java.util.Map");
2942 d(c$,"printJalviewFormat",function(a,b,c,d){var e=new StringBuffer,k,g=!1;if(c&&!d&&(null==b||1>b.size()))return"No Features Visible";if(null!=b&&c){k=b.keySet().iterator();for(var h,j;k.hasNext();){h=k.next().toString();if(v(b.get(h),jalview.schemes.GraduatedColor)){var n=b.get(h);j=(n.isColourByLabel()?"label|":"")+jalview.util.Format.getHexString(n.getMinColor())+"|"+jalview.util.Format.getHexString(n.getMaxColor())+(n.isAutoScale()?"|":"|abso|")+n.getMin()+"|"+n.getMax()+"|";-1!=n.getThreshType()?
2943 (0==n.getThreshType()?j+="below":(1!=n.getThreshType()&&System.err.println("WARNING: Unsupported threshold type ("+n.getThreshType()+") : Assuming 'above'"),j+="above"),j+="|"+n.getThresh()):j+="none"}else j=v(b.get(h),java.awt.Color)?jalview.util.Format.getHexString(b.get(h)):jalview.util.Format.getHexString(new java.awt.Color(Integer.parseInt(b.get(h).toString())));e.append(h);e.append("\t");e.append(j);e.append(this.newline)}}h=new java.util.Vector;j=0;for(var m=!1,n=0;n<a.length;n++)if(k=a[n].getSequenceFeatures(),
2944 null!=k)for(var p=0;p<k.length;p++)m=0==k[p].begin&&0==k[p].end,!d&&m||!m&&c&&!b.containsKey(k[p].type)||null!=k[p].featureGroup&&!h.contains(k[p].featureGroup)&&h.addElement(k[p].featureGroup);var q=null;do{0<h.size()&&j<h.size()?(q=h.elementAt(j).toString(),e.append(this.newline),e.append("STARTGROUP\t"),e.append(q),e.append(this.newline)):q=null;for(n=0;n<a.length;n++)if(k=a[n].getSequenceFeatures(),null!=k)for(p=0;p<k.length;p++)if(m=0==k[p].begin&&0==k[p].end,!(!d&&m||!m&&c&&!b.containsKey(k[p].type)))if(!(null!=
2945 q&&(null==k[p].featureGroup||!k[p].featureGroup.equals(q)))&&!(null==q&&null!=k[p].featureGroup)){g=!0;if(null==k[p].description||k[p].description.equals(""))e.append(k[p].type+"\t");else{null!=k[p].links&&-1==k[p].getDescription().indexOf("<html>")&&e.append("<html>");e.append(k[p].description+" ");if(null!=k[p].links){for(m=0;m<k[p].links.size();m++){var r=k[p].links.elementAt(m).toString(),s=r.substring(r.indexOf("|")+1),r=r.substring(0,r.indexOf("|"));-1==k[p].description.indexOf(s)&&e.append('<a href="'+
2946 s+'">'+r+"</a>")}-1==k[p].getDescription().indexOf("</html>")&&e.append("</html>")}e.append("\t")}e.append(a[n].getName());e.append("\t-1\t");e.append(""+k[p].begin);e.append("\t");e.append(""+k[p].end);e.append("\t");e.append(k[p].type);Float.isNaN(k[p].score)||(e.append("\t"),e.append(k[p].score));e.append(this.newline)}if(null!=q)e.append("ENDGROUP\t"),e.append(q),e.append(this.newline),j++;else break}while(j<h.size()+1);return!g?"No Features Visible":e.toString()},"~A,java.util.Map,~B,~B");d(c$,
2947 "printGFFFormat",function(a,b){return this.printGFFFormat(a,b,!0,!0)},"~A,java.util.Map");d(c$,"printGFFFormat",function(a,b,c,d){for(var e=new StringBuffer,k,g,h=0;h<a.length;h++)if(null!=a[h].getSequenceFeatures()){k=a[h].getSequenceFeatures();for(var j=0;j<k.length;j++)g=0==k[j].begin&&0==k[j].end,!d&&g||!g&&c&&!b.containsKey(k[j].type)||(g=k[j].featureGroup,null==g&&(g=k[j].getDescription()),e.append(a[h].getName()),e.append("\t"),e.append(g),e.append("\t"),e.append(k[j].type),e.append("\t"),
2948 e.append(""+k[j].begin),e.append("\t"),e.append(""+k[j].end),e.append("\t"),e.append(k[j].score),e.append("\t"),null!=k[j].getValue("STRAND")?(e.append(k[j].getValue("STRAND")),e.append("\t")):e.append(".\t"),null!=k[j].getValue("FRAME")?e.append(k[j].getValue("FRAME")):e.append("."),null!=k[j].getValue("ATTRIBUTES")&&e.append(k[j].getValue("ATTRIBUTES")),e.append(this.newline))}return e.toString()},"~A,java.util.Map,~B,~B");d(c$,"parse",function(){});e(c$,"print",function(){return"USE printGFFFormat() or printJalviewFormat()"});
2949 c$.$FeaturesFile$InvalidGFF3FieldException$=function(){A(self.c$);c$=s(function(){O(this,arguments);this.value=this.field=null;r(this,arguments)},jalview.io.FeaturesFile,"InvalidGFF3FieldException",Exception);m(c$,function(a,b,c){t(this,jalview.io.FeaturesFile.InvalidGFF3FieldException,[c+" (Field was "+a+" and value was "+b.get(a).toString()]);this.field=a;this.value=b.get(a).toString()},"~S,java.util.Map,~S");c$=z()};A(self.c$);c$=B(jalview.io.FeaturesFile,"GffPragmas",Enum);R(c$,"gff_version",
2950 0,[]);R(c$,"sequence_region",1,[]);R(c$,"feature_ontology",2,[]);R(c$,"attribute_ontology",3,[]);R(c$,"source_ontology",4,[]);R(c$,"species_build",5,[]);R(c$,"fasta",6,[]);R(c$,"hash",7,[]);c$=z();G(c$,"GFFPRAGMA",null);jalview.io.FeaturesFile.GFFPRAGMA=new java.util.HashMap;jalview.io.FeaturesFile.GFFPRAGMA.put("sequence-region",jalview.io.FeaturesFile.GffPragmas.sequence_region);jalview.io.FeaturesFile.GFFPRAGMA.put("feature-ontology",jalview.io.FeaturesFile.GffPragmas.feature_ontology);jalview.io.FeaturesFile.GFFPRAGMA.put("#",
2951 jalview.io.FeaturesFile.GffPragmas.hash);jalview.io.FeaturesFile.GFFPRAGMA.put("fasta",jalview.io.FeaturesFile.GffPragmas.fasta);jalview.io.FeaturesFile.GFFPRAGMA.put("species-build",jalview.io.FeaturesFile.GffPragmas.species_build);jalview.io.FeaturesFile.GFFPRAGMA.put("source-ontology",jalview.io.FeaturesFile.GffPragmas.source_ontology);jalview.io.FeaturesFile.GFFPRAGMA.put("attribute-ontology",jalview.io.FeaturesFile.GffPragmas.attribute_ontology)});p("jalview.datamodel");q(["jalview.datamodel.Sequence",
2952 "$.SequenceI"],"jalview.datamodel.SequenceDummy",null,function(){c$=s(function(){this.dummy=!0;r(this,arguments)},jalview.datamodel,"SequenceDummy",jalview.datamodel.Sequence,jalview.datamodel.SequenceI);m(c$,function(a){t(this,jalview.datamodel.SequenceDummy,[a,"THISAPLACEHOLDER"])},"~S");d(c$,"become",function(a){this.initSeqFrom(a,null);this.dummy=!1},"jalview.datamodel.SequenceI");d(c$,"isDummy",function(){return this.dummy})});p("java.awt.event");q(["java.awt.event.MouseListener","$.MouseMotionListener",
2953 "$.MouseWheelListener"],"java.awt.event.MouseAdapter",null,function(){c$=B(java.awt.event,"MouseAdapter",null,[java.awt.event.MouseListener,java.awt.event.MouseWheelListener,java.awt.event.MouseMotionListener]);e(c$,"mouseClicked",function(){},"java.awt.event.MouseEvent");e(c$,"mousePressed",function(){},"java.awt.event.MouseEvent");e(c$,"mouseReleased",function(){},"java.awt.event.MouseEvent");e(c$,"mouseEntered",function(){},"java.awt.event.MouseEvent");e(c$,"mouseExited",function(){},"java.awt.event.MouseEvent");
2954 e(c$,"mouseWheelMoved",function(){},"java.awt.event.MouseWheelEvent");e(c$,"mouseDragged",function(){},"java.awt.event.MouseEvent");e(c$,"mouseMoved",function(){},"java.awt.event.MouseEvent")});p("jalview.appletgui");q("awt2swing.Checkbox $.Panel jalview.api.FeatureSettingsControllerI java.awt.event.ActionListener $.AdjustmentListener $.ItemListener $.MouseListener $.MouseMotionListener".split(" "),"jalview.appletgui.FeatureSettings","awt2swing.Button $.Frame $.Label $.MenuItem $.PopupMenu $.ScrollPane $.Scrollbar $.Util jalview.appletgui.FeatureColourChooser $.UserDefinedColours jalview.bin.JalviewLite jalview.schemes.GraduatedColor jalview.util.MessageManager java.awt.BorderLayout $.Color $.Font $.GridLayout $.Toolkit java.awt.event.WindowAdapter java.lang.Boolean $.Error java.util.Vector".split(" "),
2955 function(){c$=s(function(){this.selectedCheck=this.groupItemListener=this.transparency=this.linkImage=this.scrollPane=this.featurePanel=this.groupPanel=this.frame=this.av=this.ap=this.fr=null;this.dragging=!1;H("jalview.appletgui.FeatureSettings.MyCheckbox")||jalview.appletgui.FeatureSettings.$FeatureSettings$MyCheckbox$();r(this,arguments)},jalview.appletgui,"FeatureSettings",awt2swing.Panel,[java.awt.event.ItemListener,java.awt.event.MouseListener,java.awt.event.MouseMotionListener,java.awt.event.ActionListener,
2956 java.awt.event.AdjustmentListener,jalview.api.FeatureSettingsControllerI]);J(c$,function(){this.featurePanel=new awt2swing.Panel;this.groupItemListener=(H("jalview.appletgui.FeatureSettings$1")?0:jalview.appletgui.FeatureSettings.$FeatureSettings$1$(),C(jalview.appletgui.FeatureSettings$1,this,null))});m(c$,function(a){t(this,jalview.appletgui.FeatureSettings,[]);this.ap=a;this.av=a.av;a.av.featureSettings=this;this.fr=a.seqPanel.seqCanvas.getFeatureRenderer();this.transparency=new awt2swing.Scrollbar(0,
2957 100-I(100*this.fr.getTransparency()),1,1,100);this.fr.isTransparencyAvailable()?this.transparency.addAdjustmentListener(this):this.transparency.setEnabled(!1);a=this.getClass().getResource("/images/link.gif");null!=a&&(this.linkImage=java.awt.Toolkit.getDefaultToolkit().getImage(a));(this.av.isShowSequenceFeatures()||!this.fr.hasRenderOrder())&&this.fr.findAllFeatures(!0);this.discoverAllFeatureData();this.setLayout(new java.awt.BorderLayout);this.scrollPane=new awt2swing.ScrollPane;this.scrollPane.add(this.featurePanel);
2958 null!=this.fr.getAllFeatureColours()&&0<this.fr.getAllFeatureColours().size()&&this.add(this.scrollPane,"Center");var b=new awt2swing.Button("Invert Selection");b.addActionListener(this);a=new awt2swing.Panel(new java.awt.GridLayout(2,1,5,10));a.add(b);b=new awt2swing.Panel(new java.awt.BorderLayout);this.fr.isTransparencyAvailable()?(b.add(this.transparency,"Center"),b.add(new awt2swing.Label("Transparency"),"East")):b.add(new awt2swing.Label("Transparency not available in this web browser"),"Center");
2959 a.add(b,"South");this.add(a,"South");null!=this.groupPanel&&(this.groupPanel.setLayout(new java.awt.GridLayout(F(this.fr.getFeatureGroupsSize()/4)+1,4)),this.groupPanel.validate(),this.add(this.groupPanel,"North"));this.frame=new awt2swing.Frame;this.frame.add(this);this.frame.addWindowListener((H("jalview.appletgui.FeatureSettings$2")?0:jalview.appletgui.FeatureSettings.$FeatureSettings$2$(),C(jalview.appletgui.FeatureSettings$2,this,T("me",this))));a=50*this.featurePanel.getComponentCount()+60;
2960 a=Math.max(200,a);a=Math.min(400,a);jalview.bin.JalviewLite.addFrame(this.frame,jalview.util.MessageManager.getString("label.feature_settings"),300,a)},"jalview.appletgui.AlignmentPanel");d(c$,"PaintComponent",function(a){a.setColor(java.awt.Color.black);awt2swing.Util.drawString(a,jalview.util.MessageManager.getString("label.no_features_added_to_this_alignment"),10,20);awt2swing.Util.drawString(a,jalview.util.MessageManager.getString("label.features_can_be_added_from_searches_1"),10,40);awt2swing.Util.drawString(a,
2961 jalview.util.MessageManager.getString("label.features_can_be_added_from_searches_2"),10,60)},"java.awt.Graphics");d(c$,"popupSort",function(a,b,c,d){var e=a.type,k=this.fr.getFeatureStyle(e),g=new awt2swing.PopupMenu(jalview.util.MessageManager.formatMessage("label.settings_for_type",E(-1,[e]))),h=new awt2swing.MenuItem(jalview.util.MessageManager.getString("label.sort_by_score"));g.add(h);h.addActionListener((H("jalview.appletgui.FeatureSettings$3")?0:jalview.appletgui.FeatureSettings.$FeatureSettings$3$(),
2962 C(jalview.appletgui.FeatureSettings$3,this,T("me",this,"type",e))));h=new awt2swing.MenuItem(jalview.util.MessageManager.getString("label.sort_by_density"));h.addActionListener((H("jalview.appletgui.FeatureSettings$4")?0:jalview.appletgui.FeatureSettings.$FeatureSettings$4$(),C(jalview.appletgui.FeatureSettings$4,this,T("me",this,"type",e))));g.add(h);null!=b&&(b=b.get(e),null!=b&&null!=b[0]&&(b=new awt2swing.MenuItem(v(k,java.awt.Color)?"Graduated Colour":"Single Colour"),g.add(b),b.addActionListener((H("jalview.appletgui.FeatureSettings$5")?
2963 0:jalview.appletgui.FeatureSettings.$FeatureSettings$5$(),C(jalview.appletgui.FeatureSettings$5,this,T("typeCol",k,"me",this,"type",e,"check",a))))));this.featurePanel.add(g);g.show(this.featurePanel,c,d)},"jalview.appletgui.FeatureSettings.MyCheckbox,java.util.Hashtable,~N,~N");e(c$,"discoverAllFeatureData",function(){null!=this.fr.getAllFeatureColours()&&0<this.fr.getAllFeatureColours().size()&&this.rebuildGroups();this.resetTable(!1)});d(c$,"rebuildGroups",function(){var a=!1;null==this.groupPanel?
2964 this.groupPanel=new awt2swing.Panel:(a=!0,this.groupPanel.removeAll());for(var b,c=this.fr.getFeatureGroups().iterator();c.hasNext()&&((b=c.next())||1);){var d=this.fr.checkGroupVisibility(b,!1),e=C(jalview.appletgui.FeatureSettings.MyCheckbox,this,null,b,d,null!=this.fr.featureLinks&&this.fr.featureLinks.containsKey(b));e.addMouseListener(this);e.setFont(new java.awt.Font("Serif",1,12));e.addItemListener(this.groupItemListener);e.setVisible(d);this.groupPanel.add(e)}a&&this.groupPanel.validate()});
2965 d(c$,"resetTable",function(a){for(var b,c=null,d=new java.util.Vector,e=this.av.getAlignment(),k=0;k<e.getHeight();k++)if(null!=e.getSequenceAt(k).getSequenceFeatures()){b=e.getSequenceAt(k).getSequenceFeatures();for(var g=0;g<b.length;){c=b[g].featureGroup;if(null==c||this.fr.checkGroupVisibility(c,!0))c=b[g].getType(),d.contains(c)||d.addElement(c);g++}}b=this.featurePanel.getComponentCount();for(k=0;k<b;k++)e=this.featurePanel.getComponents(),e=e[k],d.contains(e.type)||(this.featurePanel.remove(k),
2966 b--,k--);if(null!=this.fr.getRenderOrder()){k=this.fr.getRenderOrder();for(b=k.size()-1;-1<b;b--)e=k.get(b),d.contains(e)&&(d.removeElement(e),this.addCheck(!1,e))}for(d=d.elements();d.hasMoreElements();)this.addCheck(a,d.nextElement().toString());this.featurePanel.setLayout(new java.awt.GridLayout(this.featurePanel.getComponentCount(),1,10,5));this.featurePanel.validate();null!=this.scrollPane&&this.scrollPane.validate();this.itemStateChanged(null)},"~B");d(c$,"addCheck",function(a,b){var c,d=this.featurePanel.getComponents(),
2967 e;c=!0;for(var k=0;k<this.featurePanel.getComponentCount();k++)if(e=d[k],e.type.equals(b)){c=!1;break}if(c){c=!1;if(a||this.av.getFeaturesDisplayed().isVisible(b))c=!0;e=C(jalview.appletgui.FeatureSettings.MyCheckbox,this,null,b,c,null!=this.fr.featureLinks&&this.fr.featureLinks.containsKey(b),this.fr.getFeatureStyle(b));e.addMouseListener(this);e.addMouseMotionListener(this);e.addItemListener(this);a?this.featurePanel.add(e,0):this.featurePanel.add(e)}},"~B,~S");e(c$,"actionPerformed",function(){for(var a=
2968 0;a<this.featurePanel.getComponentCount();a++){var b=this.featurePanel.getComponent(a);b.setState(!b.getState())}this.selectionChanged()},"java.awt.event.ActionEvent");e(c$,"itemStateChanged",function(){this.selectionChanged()},"java.awt.event.ItemEvent");d(c$,"selectionChanged",function(){for(var a=this.featurePanel.getComponents(),b=a.length,c=E(b,3,null),d=0,e=0;e<b;e++){var k=a[e];c[d][0]=k.type;c[d][1]=this.fr.getFeatureStyle(k.type);c[d][2]=new Boolean(k.getState());d++}a=E(d,3,null);System.arraycopy(c,
2969 0,a,0,d);this.fr.setFeaturePriority(a);this.ap.paintAlignment(!0)});e(c$,"mousePressed",function(a){this.selectedCheck=a.getSource();null!=this.fr.featureLinks&&this.fr.featureLinks.containsKey(this.selectedCheck.type)&&a.getX()>this.selectedCheck.stringWidth+20&&a.consume()},"java.awt.event.MouseEvent");e(c$,"mouseDragged",function(a){a.getSource().getParent()===this.featurePanel&&(this.dragging=!0)},"java.awt.event.MouseEvent");e(c$,"mouseReleased",function(a){if(a.getSource().getParent()===this.featurePanel){var b=
2970 null,c=null,b=a.getY()+a.getComponent().getLocation().y,b=b>this.featurePanel.getSize().height?this.featurePanel.getComponent(this.featurePanel.getComponentCount()-1):0>b?this.featurePanel.getComponent(0):this.featurePanel.getComponentAt(a.getX(),a.getY()+a.getComponent().getLocation().y);null!=b&&v(b,awt2swing.Checkbox)&&(c=b);if(null!=this.selectedCheck&&null!=c&&this.selectedCheck!==c){a=-1;for(b=0;b<this.featurePanel.getComponentCount();b++)if(c===this.featurePanel.getComponent(b)){a=b;break}this.featurePanel.remove(this.selectedCheck);
2971 this.featurePanel.add(this.selectedCheck,a);this.featurePanel.validate();this.itemStateChanged(null)}}},"java.awt.event.MouseEvent");d(c$,"setUserColour",function(a,b){if(v(b,java.awt.Color)||v(b,jalview.schemes.GraduatedColor))this.fr.setColour(a,b);else throw Error(jalview.util.MessageManager.getString("error.implementation_error_unsupported_feature_colour_object"));this.refreshTable()},"~S,~O");d(c$,"refreshTable",function(){this.featurePanel.removeAll();this.resetTable(!1);this.ap.paintAlignment(!0)});
2972 e(c$,"mouseEntered",function(){},"java.awt.event.MouseEvent");e(c$,"mouseExited",function(){},"java.awt.event.MouseEvent");e(c$,"mouseClicked",function(a){var b=a.getSource();0!=(a.getModifiers()&4)&&this.popupSort(b,this.fr.getMinMax(),a.getX(),a.getY());if(null!=this.fr.featureLinks&&this.fr.featureLinks.containsKey(b.type)&&a.getX()>b.stringWidth+20){a.consume();var c=this.fr.featureLinks.get(b.type).toString();this.ap.alignFrame.showURL(c.substring(c.indexOf("|")+1),c.substring(0,c.indexOf("|")))}b.getParent()===
2973 this.featurePanel&&1<a.getClickCount()&&(a=this.fr.getFeatureStyle(b.type),v(a,java.awt.Color)?new jalview.appletgui.UserDefinedColours(this,b.type,a):(new jalview.appletgui.FeatureColourChooser(this,b.type),b.updateColor(this.fr.getFeatureStyle(b.type))))},"java.awt.event.MouseEvent");e(c$,"mouseMoved",function(){},"java.awt.event.MouseEvent");e(c$,"adjustmentValueChanged",function(){this.fr.setTransparency((100-this.transparency.getValue())/100);this.ap.seqPanel.seqCanvas.repaint()},"java.awt.event.AdjustmentEvent");
2974 c$.$FeatureSettings$MyCheckbox$=function(){A(self.c$);c$=s(function(){O(this,arguments);this.type=null;this.stringWidth=0;this.hasLink=!1;this.col=this.gcol=null;r(this,arguments)},jalview.appletgui.FeatureSettings,"MyCheckbox",awt2swing.Checkbox);d(c$,"updateColor",function(a){if(v(a,java.awt.Color))this.col=a,this.gcol=null;else if(v(a,jalview.schemes.GraduatedColor))this.gcol=a,this.col=null;else throw Error(jalview.util.MessageManager.getString("error.invalid_colour_for_mycheckbox"));null!=this.col?
2975 this.setBackground(this.col):(a=this.type,-1!=this.gcol.getThreshType()&&(a+=" "+(1==this.gcol.getThreshType()?"(>)":"(<)")),this.gcol.isColourByLabel()?(this.setBackground(java.awt.Color.white),a+=" (by Label)"):this.setBackground(this.gcol.getMinColor()),this.setLabel(a));this.repaint()},"~O");m(c$,function(a,b,c){t(this,jalview.appletgui.FeatureSettings.MyCheckbox,[a,b]);this.type=a;this.stringWidth=this.b$["jalview.appletgui.FeatureSettings"].av.nullFrame.getFontMetrics(this.b$["jalview.appletgui.FeatureSettings"].av.nullFrame.getFont()).stringWidth(a);
2976 this.hasLink=c},"~S,~B,~B");m(c$,function(a,b,c,d){this.construct(a,b,c);this.updateColor(d)},"~S,~B,~B,~O");d(c$,"PaintComponent",function(a){var b=this.getSize();if(null!=this.gcol){if(this.gcol.isColourByLabel())a.setColor(java.awt.Color.white);else{var c=this.gcol.getMaxColor();a.setColor(c)}a.fillRect(F(b.width/2),0,F(b.width/2),b.height)}this.hasLink&&a.drawImage(this.b$["jalview.appletgui.FeatureSettings"].linkImage,this.stringWidth+25,F((this.getSize().height-this.b$["jalview.appletgui.FeatureSettings"].linkImage.getHeight(this))/
2977 2),this)},"java.awt.Graphics");c$=z()};c$.$FeatureSettings$1$=function(){A(self.c$);c$=L(jalview.appletgui,"FeatureSettings$1",null,java.awt.event.ItemListener);e(c$,"itemStateChanged",function(a){a=a.getSource();this.b$["jalview.appletgui.FeatureSettings"].fr.setGroupVisibility(a.getLabel(),a.getState());this.b$["jalview.appletgui.FeatureSettings"].ap.seqPanel.seqCanvas.repaint();null!=this.b$["jalview.appletgui.FeatureSettings"].ap.overviewPanel&&this.b$["jalview.appletgui.FeatureSettings"].ap.overviewPanel.updateOverviewImage();
2978 this.b$["jalview.appletgui.FeatureSettings"].resetTable(!0)},"java.awt.event.ItemEvent");c$=z()};c$.$FeatureSettings$2$=function(){A(self.c$);c$=L(jalview.appletgui,"FeatureSettings$2",java.awt.event.WindowAdapter);e(c$,"windowClosing",function(){this.f$.me.av.featureSettings===this.f$.me&&(this.f$.me.av.featureSettings=null,this.f$.me.ap=null,this.f$.me.av=null)},"java.awt.event.WindowEvent");c$=z()};c$.$FeatureSettings$3$=function(){A(self.c$);c$=L(jalview.appletgui,"FeatureSettings$3",null,java.awt.event.ActionListener);
2979 e(c$,"actionPerformed",function(){this.f$.me.ap.alignFrame.avc.sortAlignmentByFeatureScore(E(-1,[this.f$.type]))},"java.awt.event.ActionEvent");c$=z()};c$.$FeatureSettings$4$=function(){A(self.c$);c$=L(jalview.appletgui,"FeatureSettings$4",null,java.awt.event.ActionListener);e(c$,"actionPerformed",function(){this.f$.me.ap.alignFrame.avc.sortAlignmentByFeatureDensity(E(-1,[this.f$.type]))},"java.awt.event.ActionEvent");c$=z()};c$.$FeatureSettings$5$=function(){A(self.c$);c$=L(jalview.appletgui,"FeatureSettings$5",
2980 null,java.awt.event.ActionListener);e(c$,"actionPerformed",function(){v(this.f$.typeCol,java.awt.Color)?(new jalview.appletgui.FeatureColourChooser(this.f$.me,this.f$.type),this.f$.check.updateColor(this.b$["jalview.appletgui.FeatureSettings"].fr.getFeatureStyle(this.f$.type))):new jalview.appletgui.UserDefinedColours(this.f$.me,this.f$.check.type,this.f$.typeCol)},"java.awt.event.ActionEvent");c$=z()}});p("jalview.api");M(jalview.api,"FeatureSettingsControllerI");p("jalview.appletgui");q(["awt2swing.Panel",
2981 "java.awt.event.MouseListener","$.MouseMotionListener","java.lang.Thread","java.util.Vector"],"jalview.appletgui.IdPanel","jalview.appletgui.APopupMenu $.IdCanvas $.PaintRefresher $.Tooltip jalview.datamodel.SequenceGroup jalview.util.UrlLink java.awt.BorderLayout java.lang.Float $.StringBuffer".split(" "),function(){c$=s(function(){this.scrollThread=this.alignPanel=this.av=this.idCanvas=null;this.lastid=-1;this.mouseDragging=!1;this.tooltip=this.links=null;H("jalview.appletgui.IdPanel.ScrollThread")||
2982 jalview.appletgui.IdPanel.$IdPanel$ScrollThread$();r(this,arguments)},jalview.appletgui,"IdPanel",awt2swing.Panel,[java.awt.event.MouseListener,java.awt.event.MouseMotionListener]);J(c$,function(){this.links=new java.util.Vector});m(c$,function(a,b){t(this,jalview.appletgui.IdPanel,[]);this.setName("idPanel");this.av=a;this.alignPanel=b;this.idCanvas=new jalview.appletgui.IdCanvas(a);this.setLayout(new java.awt.BorderLayout);this.add(this.idCanvas,"Center");this.idCanvas.addMouseListener(this);this.idCanvas.addMouseMotionListener(this);
2983 null!=a.applet&&a.applet.getLinkParams(this.links);var c=this.links.indexOf("SRS|http://srs.ebi.ac.uk/srsbin/cgi-bin/wgetz?-newId+(([uniprot-all:$SEQUENCE_ID$]))+-view+SwissEntry");-1<c&&this.links.setElementAt("EMBL-EBI Search|http://www.ebi.ac.uk/ebisearch/search.ebi?db=allebi&query=$SEQUENCE_ID$",c);1>this.links.size()&&(this.links=new java.util.Vector,this.links.addElement("EMBL-EBI Search|http://www.ebi.ac.uk/ebisearch/search.ebi?db=allebi&query=$SEQUENCE_ID$"))},"jalview.appletgui.AlignViewport,jalview.appletgui.AlignmentPanel");
2984 e(c$,"mouseMoved",function(a){a=this.alignPanel.seqPanel.findSeq(a);a=this.av.getAlignment().getSequenceAt(a);var b=new StringBuffer;if(null!=a){null!=a.getDescription()&&(b.append(a.getDescription()),b.append("\n"));for(var c=a.getSequenceFeatures(),d=0;null!=c&&d<c.length;d++)if(c[d].begin==c[d].end&&0==c[d].begin){var e=!1;null!=c[d].getFeatureGroup()&&(b.append(c[d].getFeatureGroup()),e=!0);null!=c[d].getType()&&(b.append(" "),b.append(c[d].getType()),e=!0);null!=c[d].getDescription()&&(b.append(" "),
2985 b.append(c[d].getDescription()),e=!0);!Float.isNaN(c[d].getScore())&&0!=c[d].getScore()&&(b.append(" Score = "),b.append(c[d].getScore()),e=!0);null!=c[d].getStatus()&&0<c[d].getStatus().length&&(b.append(" ("),b.append(c[d].getStatus()),b.append(")"),e=!0);e&&b.append("\n")}}0==b.length()?(null!=this.tooltip&&this.tooltip.setVisible(!1),this.tooltip=null):null==this.tooltip?this.tooltip=new jalview.appletgui.Tooltip(a.getDisplayId(!0)+"\n"+b.toString(),this.idCanvas):this.tooltip.setTip(a.getDisplayId(!0)+
2986 "\n"+b.toString())},"java.awt.event.MouseEvent");e(c$,"mouseDragged",function(a){this.mouseDragging=!0;a=Math.max(0,this.alignPanel.seqPanel.findSeq(a));a<this.lastid?this.selectSeqs(this.lastid-1,a):a>this.lastid&&this.selectSeqs(this.lastid+1,a);this.lastid=a;this.alignPanel.paintAlignment(!1)},"java.awt.event.MouseEvent");e(c$,"mouseClicked",function(a){if(!(2>a.getClickCount())&&(a=this.alignPanel.seqPanel.findSeq(a),a=this.av.getAlignment().getSequenceAt(a),null!=a)){a=a.getName();for(var b=
2987 null,c=null,d=0;null==c&&d<this.links.size();){var c=this.links.elementAt(d++).toString(),e=null;try{e=new jalview.util.UrlLink(c),b=e.getTarget()}catch(k){if(y(k,Exception)){System.err.println("Exception for URLLink '"+c+"'");k.printStackTrace();c=null;continue}else throw k;}e.isValid()?(c=e.makeUrls(a,!0),c=null==c||null==c[0]||1>c[0].length?null:c[1]):(System.err.println(e.getInvalidMessage()),c=null)}try{this.alignPanel.alignFrame.showURL(c,b)}catch(g){if(y(g,Exception))g.printStackTrace();else throw g;
2988 }}},"java.awt.event.MouseEvent");e(c$,"mouseEntered",function(){null!=this.scrollThread&&(this.scrollThread.running=!1)},"java.awt.event.MouseEvent");e(c$,"mouseExited",function(a){this.av.getWrapAlignment()||(this.mouseDragging&&(0>a.getY()&&0<this.av.getStartSeq())&&(this.scrollThread=C(jalview.appletgui.IdPanel.ScrollThread,this,null,!0)),this.mouseDragging&&(a.getY()>=this.getSize().height&&this.av.getAlignment().getHeight()>this.av.getEndSeq())&&(this.scrollThread=C(jalview.appletgui.IdPanel.ScrollThread,
2989 this,null,!1)))},"java.awt.event.MouseEvent");e(c$,"mousePressed",function(a){if(!(1<a.getClickCount())){a.getY();this.av.getWrapAlignment()&&this.av.getCharHeight();var b=this.alignPanel.seqPanel.findSeq(a);if(4==(a.getModifiers()&4)){for(var b=this.av.getAlignment().getSequenceAt(b),c=new java.util.Vector,d=0,e=this.links.size();d<e;d++)c.addElement(this.links.elementAt(d));for(var k=null==b?null:b.getSequenceFeatures(),g=0;null!=k&&g<k.length;g++)if(k[g].begin==k[g].end&&0==k[g].begin&&null!=k[g].links&&
2990 0<k[g].links.size()){d=0;for(e=k[g].links.size();d<e;d++)c.addElement(k[g].links.elementAt(d))}b=new jalview.appletgui.APopupMenu(this.alignPanel,b,c);this.add(b);b.show(this,a.getX(),a.getY())}else{if(null==this.av.getSelectionGroup()||!a.isControlDown()&&!a.isShiftDown()&&null!=this.av.getSelectionGroup())this.av.setSelectionGroup(new jalview.datamodel.SequenceGroup),this.av.getSelectionGroup().setStartRes(0),this.av.getSelectionGroup().setEndRes(this.av.getAlignment().getWidth()-1);a.isShiftDown()&&
2991 -1!=this.lastid?this.selectSeqs(this.lastid,b):this.selectSeq(b);this.alignPanel.paintAlignment(!1)}}},"java.awt.event.MouseEvent");d(c$,"selectSeq",function(a){this.lastid=a;a=this.av.getAlignment().getSequenceAt(a);this.av.getSelectionGroup().addOrRemove(a,!0)},"~N");d(c$,"selectSeqs",function(a,b){this.lastid=a;b>=this.av.getAlignment().getHeight()&&(b=this.av.getAlignment().getHeight()-1);if(b<a){var c=a;a=b;this.lastid=b=c}null==this.av.getSelectionGroup()&&this.av.setSelectionGroup(new jalview.datamodel.SequenceGroup);
2992 for(c=a;c<=b;c++)this.av.getSelectionGroup().addSequence(this.av.getAlignment().getSequenceAt(c),c==b)},"~N,~N");e(c$,"mouseReleased",function(){null!=this.scrollThread&&(this.scrollThread.running=!1);null!=this.av.getSelectionGroup()&&this.av.getSelectionGroup().recalcConservation();this.mouseDragging=!1;jalview.appletgui.PaintRefresher.Refresh(this,this.av.getSequenceSetId());this.av.sendSelection()},"java.awt.event.MouseEvent");d(c$,"highlightSearchResults",function(a){this.idCanvas.setHighlighted(a);
2993 null!=a&&(a=this.av.getAlignment().findIndex(a.get(0)),(this.av.getStartSeq()>a||this.av.getEndSeq()<a)&&this.alignPanel.setScrollValues(this.av.getStartRes(),a))},"java.util.List");c$.$IdPanel$ScrollThread$=function(){A(self.c$);c$=s(function(){O(this,arguments);this.running=!1;this.up=!0;r(this,arguments)},jalview.appletgui.IdPanel,"ScrollThread",Thread);m(c$,function(a){t(this,jalview.appletgui.IdPanel.ScrollThread,[]);this.up=a;this.start()},"~B");d(c$,"stopScrolling",function(){this.running=
2994 !1});e(c$,"run",function(){for(this.running=!0;this.running;){if(this.b$["jalview.appletgui.IdPanel"].alignPanel.scrollUp(this.up)){var a=this.b$["jalview.appletgui.IdPanel"].av.getStartSeq();this.up||(a=this.b$["jalview.appletgui.IdPanel"].av.getEndSeq());a<this.b$["jalview.appletgui.IdPanel"].lastid?this.b$["jalview.appletgui.IdPanel"].selectSeqs(this.b$["jalview.appletgui.IdPanel"].lastid-1,a):a>this.b$["jalview.appletgui.IdPanel"].lastid&&a<this.b$["jalview.appletgui.IdPanel"].av.getAlignment().getHeight()&&
2995 this.b$["jalview.appletgui.IdPanel"].selectSeqs(this.b$["jalview.appletgui.IdPanel"].lastid+1,a);this.b$["jalview.appletgui.IdPanel"].lastid=a}else this.running=!1;this.b$["jalview.appletgui.IdPanel"].alignPanel.paintAlignment(!0);try{Thread.sleep(100)}catch(b){if(!y(b,Exception))throw b;}}});c$=z()}});p("jalview.appletgui");q("awt2swing.PopupMenu java.awt.event.ActionListener $.ItemListener awt2swing.CheckboxMenuItem $.Menu $.MenuItem jalview.util.MessageManager".split(" "),"jalview.appletgui.APopupMenu",
2996 "awt2swing.Frame jalview.analysis.AAFrequency $.AlignmentAnnotationUtils $.AlignmentUtils $.Conservation jalview.appletgui.AppletJmol $.CutAndPasteTransfer $.EditNameDialog $.SliderPanel $.UserDefinedColours jalview.bin.JalviewLite jalview.commands.ChangeCaseCommand $.EditCommand jalview.datamodel.SequenceFeature jalview.io.AppletFormatAdapter $.SequenceAnnotationReport jalview.schemes.Blosum62ColourScheme $.BuriedColourScheme $.ClustalxColourScheme $.HelixColourScheme $.HydrophobicColourScheme $.NucleotideColourScheme $.PIDColourScheme $.ResidueProperties $.StrandColourScheme $.TaylorColourScheme $.TurnColourScheme $.ZappoColourScheme jalview.util.DBRefUtils $.UrlLink java.lang.StringBuffer $.StringBuilder java.util.Arrays $.Collections $.LinkedHashMap $.TreeMap".split(" "),
2997 function(){c$=s(function(){this.revealSeq=this.revealAll=this.seq=this.makeReferenceSeq=this.selSeqDetails=this.sequenceDetails=this.editSequence=this.sequenceFeature=this.sequenceName=this.repGroup=this.hideSeqs=this.pdb=this.seqMenu=this.outputmenu=this.toggleCase=this.toLower=this.toUpper=this.cut=this.copy=this.editMenu=this.groupAddReferenceAnnotations=this.groupHideAnnotationsMenu=this.groupShowAnnotationsMenu=this.seqAddReferenceAnnotations=this.seqHideAnnotationsMenu=this.seqShowAnnotationsMenu=
2998 this.displayNonconserved=this.showColourText=this.showText=this.showBoxes=this.colourMenu=this.nucleotideMenuItem=this.createGroupMenuItem=this.unGroupMenuItem=this.ap=this.conservationMenuItem=this.noColourmenuItem=this.BLOSUM62Colour=this.PIDColour=this.userDefinedColour=this.abovePIDColour=this.buriedColour=this.turnColour=this.strandColour=this.helixColour=this.hydrophobicityColour=this.taylorColour=this.zappoColour=this.clustalColour=this.editGroupName=this.groupMenu=null;this.revealSeq_index=
2999 -1;this.menu1=null;r(this,arguments)},jalview.appletgui,"APopupMenu",awt2swing.PopupMenu,[java.awt.event.ActionListener,java.awt.event.ItemListener]);J(c$,function(){this.groupMenu=new awt2swing.Menu;this.editGroupName=new awt2swing.MenuItem;this.clustalColour=new awt2swing.MenuItem;this.zappoColour=new awt2swing.MenuItem;this.taylorColour=new awt2swing.MenuItem;this.hydrophobicityColour=new awt2swing.MenuItem;this.helixColour=new awt2swing.MenuItem;this.strandColour=new awt2swing.MenuItem;this.turnColour=
3000 new awt2swing.MenuItem;this.buriedColour=new awt2swing.MenuItem;this.abovePIDColour=new awt2swing.CheckboxMenuItem;this.userDefinedColour=new awt2swing.MenuItem;this.PIDColour=new awt2swing.MenuItem;this.BLOSUM62Colour=new awt2swing.MenuItem;this.noColourmenuItem=new awt2swing.MenuItem;this.conservationMenuItem=new awt2swing.CheckboxMenuItem;this.unGroupMenuItem=new awt2swing.MenuItem;this.createGroupMenuItem=new awt2swing.MenuItem;this.nucleotideMenuItem=new awt2swing.MenuItem;this.colourMenu=new awt2swing.Menu;
3001 this.showBoxes=new awt2swing.CheckboxMenuItem;this.showText=new awt2swing.CheckboxMenuItem;this.showColourText=new awt2swing.CheckboxMenuItem;this.displayNonconserved=new awt2swing.CheckboxMenuItem;this.seqShowAnnotationsMenu=new awt2swing.Menu(jalview.util.MessageManager.getString("label.show_annotations"));this.seqHideAnnotationsMenu=new awt2swing.Menu(jalview.util.MessageManager.getString("label.hide_annotations"));this.seqAddReferenceAnnotations=new awt2swing.MenuItem(jalview.util.MessageManager.getString("label.add_reference_annotations"));
3002 this.groupShowAnnotationsMenu=new awt2swing.Menu(jalview.util.MessageManager.getString("label.show_annotations"));this.groupHideAnnotationsMenu=new awt2swing.Menu(jalview.util.MessageManager.getString("label.hide_annotations"));this.groupAddReferenceAnnotations=new awt2swing.MenuItem(jalview.util.MessageManager.getString("label.add_reference_annotations"));this.editMenu=new awt2swing.Menu(jalview.util.MessageManager.getString("action.edit"));this.copy=new awt2swing.MenuItem(jalview.util.MessageManager.getString("action.copy"));
3003 this.cut=new awt2swing.MenuItem(jalview.util.MessageManager.getString("action.cut"));this.toUpper=new awt2swing.MenuItem(jalview.util.MessageManager.getString("label.to_upper_case"));this.toLower=new awt2swing.MenuItem(jalview.util.MessageManager.getString("label.to_lower_case"));this.toggleCase=new awt2swing.MenuItem(jalview.util.MessageManager.getString("label.toggle_case"));this.outputmenu=new awt2swing.Menu;this.seqMenu=new awt2swing.Menu;this.pdb=new awt2swing.MenuItem;this.hideSeqs=new awt2swing.MenuItem;
3004 this.repGroup=new awt2swing.MenuItem;this.sequenceName=new awt2swing.MenuItem(jalview.util.MessageManager.getString("label.edit_name_description"));this.sequenceFeature=new awt2swing.MenuItem(jalview.util.MessageManager.getString("label.create_sequence_feature"));this.editSequence=new awt2swing.MenuItem(jalview.util.MessageManager.getString("label.edit_sequence"));this.sequenceDetails=new awt2swing.MenuItem(jalview.util.MessageManager.getString("label.sequence_details")+"...");this.selSeqDetails=
3005 new awt2swing.MenuItem(jalview.util.MessageManager.getString("label.sequence_details")+"...");this.makeReferenceSeq=new awt2swing.MenuItem;this.revealAll=new awt2swing.MenuItem;this.revealSeq=new awt2swing.MenuItem;this.menu1=new awt2swing.Menu});m(c$,function(a,b,c){t(this,jalview.appletgui.APopupMenu,[]);this.ap=a;this.seq=b;try{this.jbInit()}catch(d){if(y(d,Exception))d.printStackTrace();else throw d;}for(a=0;a<jalview.io.AppletFormatAdapter.WRITEABLE_FORMATS.length;a++){var e=new awt2swing.MenuItem(jalview.io.AppletFormatAdapter.WRITEABLE_FORMATS[a]);
3006 e.addActionListener(this);this.outputmenu.add(e)}this.buildAnnotationSubmenus();a=this.ap.av.getSelectionGroup();null!=a&&0<a.getSize()?(this.editGroupName.setLabel(jalview.util.MessageManager.formatMessage("label.name_param",E(-1,[a.getName()]))),this.showText.setState(a.getDisplayText()),this.showColourText.setState(a.getColourText()),this.showBoxes.setState(a.getDisplayBoxes()),this.displayNonconserved.setState(a.getShowNonconserved()),this.ap.av.getAlignment().getGroups().contains(a)?(this.menu1.setLabel(jalview.util.MessageManager.getString("action.edit_group")),
3007 this.groupMenu.remove(this.createGroupMenuItem)):(this.menu1.setLabel(jalview.util.MessageManager.getString("action.edit_new_group")),this.groupMenu.remove(this.unGroupMenuItem))):(this.remove(this.hideSeqs),this.remove(this.groupMenu));if(null!=c&&0<c.size()){e=new awt2swing.Menu(jalview.util.MessageManager.getString("action.link"));for(a=0;a<c.size();a++){var k=c.elementAt(a),k=new jalview.util.UrlLink(k);if(k.isValid()){var g=k.getTarget(),h=k.getLabel();if(null!=b&&k.isDynamic()){var g=jalview.util.DBRefUtils.selectRefs(b.getDBRef(),
3008 E(-1,[g])),j=b.getName(),n=b.getDescription();null!=n&&1>n.length&&(n=null);if(null!=g)for(var m=0;m<g.length;m++){null!=j&&g[m].getAccessionId().equals(j)&&(j=null);var p=k.makeUrls(g[m].getAccessionId(),!0);if(null!=p)for(var q=0;q<p.length;q+=2)this.addshowLink(e,h+"|"+p[q],p[q+1])}if(null!=j&&(p=k.makeUrls(j,!0),null!=p))for(q=0;q<p.length;q+=2)this.addshowLink(e,h,p[q+1]);if(null!=n&&null!=k.getRegexReplace()&&(p=k.makeUrls(n,!0),null!=p))for(q=0;q<p.length;q+=2)this.addshowLink(e,h,p[q+1])}else this.addshowLink(e,
3009 g,k.getUrl_prefix())}else System.err.println(k.getInvalidMessage())}0<e.getItemCount()&&(null!=b?this.seqMenu.add(e):this.add(e))}null!=b?(this.seqMenu.setLabel(b.getName()),b===this.ap.av.getAlignment().getSeqrep()?this.makeReferenceSeq.setLabel(jalview.util.MessageManager.getString("action.unmark_as_reference")):this.makeReferenceSeq.setLabel(jalview.util.MessageManager.getString("action.set_as_reference")),this.repGroup.setLabel(jalview.util.MessageManager.formatMessage("label.represent_group_with",
3010 E(-1,[b.getName()])))):this.remove(this.seqMenu);this.ap.av.hasHiddenRows()?(b=this.ap.av.getAlignment().findIndex(b),1<this.ap.av.adjustForHiddenSeqs(b)-this.ap.av.adjustForHiddenSeqs(b-1)?this.revealSeq_index=b:this.remove(this.revealSeq)):(this.remove(this.revealAll),this.remove(this.revealSeq))},"jalview.appletgui.AlignmentPanel,jalview.datamodel.SequenceI,java.util.Vector");d(c$,"buildAnnotationSubmenus",function(){var a=null==this.seq?java.util.Collections.emptyList():java.util.Arrays.asList([this.seq]);
3011 this.buildAnnotationTypesMenus(this.seqShowAnnotationsMenu,this.seqHideAnnotationsMenu,a);this.configureReferenceAnnotationsMenu(this.seqAddReferenceAnnotations,a);a=null==this.ap.av.getSelectionGroup()?java.util.Collections.emptyList():this.ap.av.getSelectionGroup().getSequences();this.buildAnnotationTypesMenus(this.groupShowAnnotationsMenu,this.groupHideAnnotationsMenu,a);this.configureReferenceAnnotationsMenu(this.groupAddReferenceAnnotations,a)});d(c$,"configureReferenceAnnotationsMenu",function(a,
3012 b){a.setEnabled(!1);var c=new java.util.TreeMap,d=new java.util.LinkedHashMap,e=this.ap.av.getAlignment();jalview.analysis.AlignmentUtils.findAddableReferenceAnnotations(b,c,d,e);d.isEmpty()||((new StringBuilder(64)).append(jalview.util.MessageManager.getString("label.add_annotations_for")),a.setEnabled(!0),a.addActionListener((H("jalview.appletgui.APopupMenu$1")?0:jalview.appletgui.APopupMenu.$APopupMenu$1$(),C(jalview.appletgui.APopupMenu$1,this,T("candidates",d)))))},"awt2swing.MenuItem,java.util.List");
3013 d(c$,"addReferenceAnnotations_actionPerformed",function(a){var b=this.ap.av.getSelectionGroup(),c=this.ap.getAlignment();jalview.analysis.AlignmentUtils.addReferenceAnnotations(a,c,b);this.refresh()},"java.util.Map");d(c$,"addshowLink",function(a,b,c){this.addshowLink(a,b,b,c)},"awt2swing.Menu,~S,~S");d(c$,"addshowLink",function(a,b,c,d){c=new awt2swing.MenuItem(c);c.addActionListener((H("jalview.appletgui.APopupMenu$2")?0:jalview.appletgui.APopupMenu.$APopupMenu$2$(),C(jalview.appletgui.APopupMenu$2,
3014 this,T("url",d,"target",b))));a.add(c)},"awt2swing.Menu,~S,~S,~S");e(c$,"itemStateChanged",function(a){a.getSource()===this.abovePIDColour?this.abovePIDColour_itemStateChanged():a.getSource()===this.showColourText?this.showColourText_itemStateChanged():a.getSource()===this.showText?this.showText_itemStateChanged():a.getSource()===this.showBoxes?this.showBoxes_itemStateChanged():a.getSource()===this.displayNonconserved&&this.showNonconserved_itemStateChanged()},"java.awt.event.ItemEvent");e(c$,"actionPerformed",
3015 function(a){var b=a.getSource();if(b===this.clustalColour)this.clustalColour_actionPerformed();else if(b===this.zappoColour)this.zappoColour_actionPerformed();else if(b===this.taylorColour)this.taylorColour_actionPerformed();else if(b===this.hydrophobicityColour)this.hydrophobicityColour_actionPerformed();else if(b===this.helixColour)this.helixColour_actionPerformed();else if(b===this.strandColour)this.strandColour_actionPerformed();else if(b===this.turnColour)this.turnColour_actionPerformed();else if(b===
3016 this.buriedColour)this.buriedColour_actionPerformed();else if(b===this.nucleotideMenuItem)this.nucleotideMenuItem_actionPerformed();else if(b===this.userDefinedColour)this.userDefinedColour_actionPerformed();else if(b===this.PIDColour)this.PIDColour_actionPerformed();else if(b===this.BLOSUM62Colour)this.BLOSUM62Colour_actionPerformed();else if(b===this.noColourmenuItem)this.noColourmenuItem_actionPerformed();else if(b===this.conservationMenuItem)this.conservationMenuItem_itemStateChanged();else if(b===
3017 this.unGroupMenuItem)this.unGroupMenuItem_actionPerformed();else if(b===this.createGroupMenuItem)this.createGroupMenuItem_actionPerformed();else if(b===this.sequenceName)this.editName();else if(b===this.makeReferenceSeq)this.makeReferenceSeq_actionPerformed();else if(b===this.sequenceDetails)this.showSequenceDetails();else if(b===this.selSeqDetails)this.showSequenceSelectionDetails();else if(b===this.pdb)this.addPDB();else if(b===this.hideSeqs)this.hideSequences(!1);else if(b===this.repGroup)this.hideSequences(!0);
3018 else if(b===this.revealSeq)this.ap.av.showSequence(this.revealSeq_index);else if(b===this.revealAll)this.ap.av.showAllHiddenSeqs();else if(b===this.editGroupName){var c=new jalview.appletgui.EditNameDialog(this.getGroup().getName(),this.getGroup().getDescription(),"       Group Name","Group Description",this.ap.alignFrame,"Edit Group Name / Description",500,100,!0);c.accept&&(this.getGroup().setName(c.getName().$replace(" ","_")),this.getGroup().setDescription(c.getDescription()))}else if(b===this.copy)this.ap.alignFrame.copy_actionPerformed();
3019 else if(b===this.cut)this.ap.alignFrame.cut_actionPerformed();else if(b===this.editSequence)a=this.ap.av.getSelectionGroup(),null!=a&&(null==this.seq&&(this.seq=a.getSequenceAt(0)),c=new jalview.appletgui.EditNameDialog(this.seq.getSequenceAsString(a.getStartRes(),a.getEndRes()+1),null,"Edit Sequence ",null,this.ap.alignFrame,"Edit Sequence",500,100,!0),c.accept&&(a=new jalview.commands.EditCommand(jalview.util.MessageManager.getString("label.edit_sequences"),jalview.commands.EditCommand.Action.REPLACE,
3020 c.getName().$replace(" ",this.ap.av.getGapCharacter()),a.getSequencesAsArray(this.ap.av.getHiddenRepSequences()),a.getStartRes(),a.getEndRes()+1,this.ap.av.getAlignment()),this.ap.alignFrame.addHistoryItem(a),this.ap.av.firePropertyChange("alignment",null,this.ap.av.getAlignment().getSequences())));else if(b===this.toUpper||b===this.toLower||b===this.toggleCase){if(a=this.ap.av.getSelectionGroup(),null!=a){var c=this.ap.av.getVisibleRegionBoundaries(a.getStartRes(),a.getEndRes()+1),d;b===this.toggleCase?
3021 (b="Toggle Case",d=jalview.commands.ChangeCaseCommand.TOGGLE_CASE):b===this.toUpper?(b="To Upper Case",d=jalview.commands.ChangeCaseCommand.TO_UPPER):(b="To Lower Case",d=jalview.commands.ChangeCaseCommand.TO_LOWER);a=new jalview.commands.ChangeCaseCommand(b,a.getSequencesAsArray(this.ap.av.getHiddenRepSequences()),c,d);this.ap.alignFrame.addHistoryItem(a);this.ap.av.firePropertyChange("alignment",null,this.ap.av.getAlignment().getSequences())}}else if(b===this.sequenceFeature){if(a=this.ap.av.getSelectionGroup(),
3022 null!=a){var c=0,e=a.getSize(),b=Array(e);d=Array(e);for(var k=0;k<e;k++){var g=a.getSequenceAt(k).findPosition(a.getStartRes()),h=a.findEndRes(a.getSequenceAt(k));g<=h&&(b[c]=a.getSequenceAt(k),d[c]=new jalview.datamodel.SequenceFeature(null,null,null,g,h,"Jalview"),c++)}a=Array(c);e=Array(c);System.arraycopy(b,0,a,0,c);System.arraycopy(d,0,e,0,c);this.ap.seqPanel.seqCanvas.getFeatureRenderer().amendFeatures(a,e,!0,this.ap)&&(this.ap.alignFrame.sequenceFeatures.setState(!0),this.ap.av.setShowSequenceFeatures(!0),
3023 this.ap.highlightSearchResults(null))}}else this.outputText(a)},"java.awt.event.ActionEvent");d(c$,"outputText",function(a){var b=new jalview.appletgui.CutAndPasteTransfer(!0,this.ap.alignFrame),c=new awt2swing.Frame;c.add(b);jalview.bin.JalviewLite.addFrame(c,jalview.util.MessageManager.formatMessage("label.selection_output_command",E(-1,[a.getActionCommand()])),600,500);b.setText((new jalview.io.AppletFormatAdapter).formatSequences(a.getActionCommand(),this.ap.av.getShowJVSuffix(),this.ap,!0))},
3024 "java.awt.event.ActionEvent");d(c$,"showSequenceSelectionDetails",function(){this.createSequenceDetailsReport(this.ap.av.getSequenceSelection())});d(c$,"showSequenceDetails",function(){this.createSequenceDetailsReport(E(-1,[this.seq]))});d(c$,"createSequenceDetailsReport",function(a){for(var b=new jalview.appletgui.CutAndPasteTransfer(!1,this.ap.alignFrame),c=new StringBuffer,d,e=0;e<a.length&&((d=a[e])||1);e++)c.append(jalview.util.MessageManager.formatMessage("label.annotation_for_displayid",E(-1,
3025 [d.getDisplayId(!0)]))),(new jalview.io.SequenceAnnotationReport(null)).createSequenceAnnotationReport(c,d,!0,!0,!1,null!=this.ap.seqPanel.seqCanvas.fr?this.ap.seqPanel.seqCanvas.fr.getMinMax():null),c.append("</p>");d=new awt2swing.Frame;d.add(b);jalview.bin.JalviewLite.addFrame(d,"Sequence Details for "+(1==a.length?a[0].getDisplayId(!0):"Selection"),600,500);b.setText(jalview.util.MessageManager.formatMessage("label.html_content",E(-1,[c.toString()])))},"~A");d(c$,"editName",function(){var a=new jalview.appletgui.EditNameDialog(this.seq.getName(),
3026 this.seq.getDescription(),"       Sequence Name","Sequence Description",this.ap.alignFrame,"Edit Sequence Name / Description",500,100,!0);a.accept&&(this.seq.setName(a.getName()),this.seq.setDescription(a.getDescription()),this.ap.paintAlignment(!1))});d(c$,"addPDB",function(){if(null!=this.seq.getPDBId()){var a=this.seq.getPDBId().firstElement();this.ap.av.applet.jmolAvailable&&new jalview.appletgui.AppletJmol(a,E(-1,[this.seq]),null,this.ap,jalview.io.AppletFormatAdapter.URL)}else{a=new jalview.appletgui.CutAndPasteTransfer(!0,
3027 this.ap.alignFrame);a.setText(jalview.util.MessageManager.getString("label.paste_pdb_file"));a.setPDBImport(this.seq);var b=new awt2swing.Frame;b.add(a);jalview.bin.JalviewLite.addFrame(b,jalview.util.MessageManager.formatMessage("label.paste_pdb_file_for_sequence",E(-1,[this.seq.getName()])),400,300)}});d(c$,"jbInit",function(){this.groupMenu.setLabel(jalview.util.MessageManager.getString("label.selection"));this.sequenceFeature.addActionListener(this);this.editGroupName.addActionListener(this);
3028 this.unGroupMenuItem.setLabel(jalview.util.MessageManager.getString("action.remove_group"));this.unGroupMenuItem.addActionListener(this);this.createGroupMenuItem.setLabel(jalview.util.MessageManager.getString("action.create_group"));this.createGroupMenuItem.addActionListener(this);this.nucleotideMenuItem.setLabel(jalview.util.MessageManager.getString("label.nucleotide"));this.nucleotideMenuItem.addActionListener(this);this.conservationMenuItem.addItemListener(this);this.abovePIDColour.addItemListener(this);
3029 this.colourMenu.setLabel(jalview.util.MessageManager.getString("label.group_colour"));this.showBoxes.setLabel(jalview.util.MessageManager.getString("action.boxes"));this.showBoxes.setState(!0);this.showBoxes.addItemListener(this);this.sequenceName.addActionListener(this);this.sequenceDetails.addActionListener(this);this.selSeqDetails.addActionListener(this);this.displayNonconserved.setLabel(jalview.util.MessageManager.getString("label.show_non_conversed"));this.displayNonconserved.setState(!1);this.displayNonconserved.addItemListener(this);
3030 this.showText.setLabel(jalview.util.MessageManager.getString("action.text"));this.showText.addItemListener(this);this.showColourText.setLabel(jalview.util.MessageManager.getString("label.colour_text"));this.showColourText.addItemListener(this);this.outputmenu.setLabel(jalview.util.MessageManager.getString("label.out_to_textbox"));this.seqMenu.setLabel(jalview.util.MessageManager.getString("label.sequence"));this.pdb.setLabel(jalview.util.MessageManager.getString("label.view_pdb_structure"));this.hideSeqs.setLabel(jalview.util.MessageManager.getString("action.hide_sequences"));
3031 this.repGroup.setLabel(jalview.util.MessageManager.formatMessage("label.represent_group_with",E(-1,[""])));this.revealAll.setLabel(jalview.util.MessageManager.getString("action.reveal_all"));this.revealSeq.setLabel(jalview.util.MessageManager.getString("action.reveal_sequences"));this.menu1.setLabel(jalview.util.MessageManager.getString("label.group")+":");this.add(this.groupMenu);this.add(this.seqMenu);this.add(this.hideSeqs);this.add(this.revealSeq);this.add(this.revealAll);this.groupMenu.add(this.groupShowAnnotationsMenu);
3032 this.groupMenu.add(this.groupHideAnnotationsMenu);this.groupMenu.add(this.groupAddReferenceAnnotations);this.groupMenu.add(this.editMenu);this.groupMenu.add(this.outputmenu);this.groupMenu.add(this.sequenceFeature);this.groupMenu.add(this.createGroupMenuItem);this.groupMenu.add(this.unGroupMenuItem);this.groupMenu.add(this.menu1);this.colourMenu.add(this.noColourmenuItem);this.colourMenu.add(this.clustalColour);this.colourMenu.add(this.BLOSUM62Colour);this.colourMenu.add(this.PIDColour);this.colourMenu.add(this.zappoColour);
3033 this.colourMenu.add(this.taylorColour);this.colourMenu.add(this.hydrophobicityColour);this.colourMenu.add(this.helixColour);this.colourMenu.add(this.strandColour);this.colourMenu.add(this.turnColour);this.colourMenu.add(this.buriedColour);this.colourMenu.add(this.nucleotideMenuItem);this.colourMenu.add(this.userDefinedColour);this.colourMenu.addSeparator();this.colourMenu.add(this.abovePIDColour);this.colourMenu.add(this.conservationMenuItem);this.noColourmenuItem.setLabel(jalview.util.MessageManager.getString("label.none"));
3034 this.noColourmenuItem.addActionListener(this);this.clustalColour.setLabel(jalview.util.MessageManager.getString("label.clustalx_colours"));this.clustalColour.addActionListener(this);this.zappoColour.setLabel(jalview.util.MessageManager.getString("label.zappo"));this.zappoColour.addActionListener(this);this.taylorColour.setLabel(jalview.util.MessageManager.getString("label.taylor"));this.taylorColour.addActionListener(this);this.hydrophobicityColour.setLabel(jalview.util.MessageManager.getString("label.hydrophobicity"));
3035 this.hydrophobicityColour.addActionListener(this);this.helixColour.setLabel(jalview.util.MessageManager.getString("label.helix_propensity"));this.helixColour.addActionListener(this);this.strandColour.setLabel(jalview.util.MessageManager.getString("label.strand_propensity"));this.strandColour.addActionListener(this);this.turnColour.setLabel(jalview.util.MessageManager.getString("label.turn_propensity"));this.turnColour.addActionListener(this);this.buriedColour.setLabel(jalview.util.MessageManager.getString("label.buried_index"));
3036 this.buriedColour.addActionListener(this);this.abovePIDColour.setLabel(jalview.util.MessageManager.getString("label.above_identity_percentage"));this.userDefinedColour.setLabel(jalview.util.MessageManager.getString("action.user_defined"));this.userDefinedColour.addActionListener(this);this.PIDColour.setLabel(jalview.util.MessageManager.getString("action.percentage_identity"));this.PIDColour.addActionListener(this);this.BLOSUM62Colour.setLabel("BLOSUM62");this.BLOSUM62Colour.addActionListener(this);
3037 this.conservationMenuItem.setLabel(jalview.util.MessageManager.getString("label.conservation"));this.editMenu.add(this.copy);this.copy.addActionListener(this);this.editMenu.add(this.cut);this.cut.addActionListener(this);this.editMenu.add(this.editSequence);this.editSequence.addActionListener(this);this.editMenu.add(this.toUpper);this.toUpper.addActionListener(this);this.editMenu.add(this.toLower);this.toLower.addActionListener(this);this.editMenu.add(this.toggleCase);this.seqMenu.add(this.seqShowAnnotationsMenu);
3038 this.seqMenu.add(this.seqHideAnnotationsMenu);this.seqMenu.add(this.seqAddReferenceAnnotations);this.seqMenu.add(this.sequenceName);this.seqMenu.add(this.makeReferenceSeq);this.ap.av.applet.useXtrnalSviewer||this.seqMenu.add(this.pdb);this.seqMenu.add(this.repGroup);this.menu1.add(this.editGroupName);this.menu1.add(this.colourMenu);this.menu1.add(this.showBoxes);this.menu1.add(this.showText);this.menu1.add(this.showColourText);this.menu1.add(this.displayNonconserved);this.toggleCase.addActionListener(this);
3039 this.pdb.addActionListener(this);this.hideSeqs.addActionListener(this);this.repGroup.addActionListener(this);this.revealAll.addActionListener(this);this.revealSeq.addActionListener(this);this.makeReferenceSeq.addActionListener(this)});d(c$,"refresh",function(){this.ap.paintAlignment(!0)});d(c$,"clustalColour_actionPerformed",function(){var a=this.getGroup();a.cs=new jalview.schemes.ClustalxColourScheme(a,this.ap.av.getHiddenRepSequences());this.refresh()});d(c$,"zappoColour_actionPerformed",function(){this.getGroup().cs=
3040 new jalview.schemes.ZappoColourScheme;this.refresh()});d(c$,"taylorColour_actionPerformed",function(){this.getGroup().cs=new jalview.schemes.TaylorColourScheme;this.refresh()});d(c$,"hydrophobicityColour_actionPerformed",function(){this.getGroup().cs=new jalview.schemes.HydrophobicColourScheme;this.refresh()});d(c$,"helixColour_actionPerformed",function(){this.getGroup().cs=new jalview.schemes.HelixColourScheme;this.refresh()});d(c$,"strandColour_actionPerformed",function(){this.getGroup().cs=new jalview.schemes.StrandColourScheme;
3041 this.refresh()});d(c$,"turnColour_actionPerformed",function(){this.getGroup().cs=new jalview.schemes.TurnColourScheme;this.refresh()});d(c$,"buriedColour_actionPerformed",function(){this.getGroup().cs=new jalview.schemes.BuriedColourScheme;this.refresh()});d(c$,"nucleotideMenuItem_actionPerformed",function(){this.getGroup().cs=new jalview.schemes.NucleotideColourScheme;this.refresh()});d(c$,"abovePIDColour_itemStateChanged",function(){var a=this.getGroup();if(null!=a.cs){if(this.abovePIDColour.getState()){a.cs.setConsensus(jalview.analysis.AAFrequency.calculate(a.getSequences(this.ap.av.getHiddenRepSequences()),
3042 0,this.ap.av.getAlignment().getWidth()));var b=jalview.appletgui.SliderPanel.setPIDSliderSource(this.ap,a.cs,this.getGroup().getName());a.cs.setThreshold(b,this.ap.av.isIgnoreGapsConsensus());jalview.appletgui.SliderPanel.showPIDSlider()}else a.cs.setThreshold(0,this.ap.av.isIgnoreGapsConsensus());this.refresh()}});d(c$,"userDefinedColour_actionPerformed",function(){new jalview.appletgui.UserDefinedColours(this.ap,this.getGroup())});d(c$,"PIDColour_actionPerformed",function(){var a=this.getGroup();
3043 a.cs=new jalview.schemes.PIDColourScheme;a.cs.setConsensus(jalview.analysis.AAFrequency.calculate(a.getSequences(this.ap.av.getHiddenRepSequences()),0,this.ap.av.getAlignment().getWidth()));this.refresh()});d(c$,"BLOSUM62Colour_actionPerformed",function(){var a=this.getGroup();a.cs=new jalview.schemes.Blosum62ColourScheme;a.cs.setConsensus(jalview.analysis.AAFrequency.calculate(a.getSequences(this.ap.av.getHiddenRepSequences()),0,this.ap.av.getAlignment().getWidth()));this.refresh()});d(c$,"noColourmenuItem_actionPerformed",
3044 function(){this.getGroup().cs=null;this.refresh()});d(c$,"conservationMenuItem_itemStateChanged",function(){var a=this.getGroup();null!=a.cs&&(this.conservationMenuItem.getState()?(a.cs.setConservation(jalview.analysis.Conservation.calculateConservation("Group",jalview.schemes.ResidueProperties.propHash,3,a.getSequences(this.ap.av.getHiddenRepSequences()),0,this.ap.av.getAlignment().getWidth(),!1,this.ap.av.getConsPercGaps(),!1)),jalview.appletgui.SliderPanel.setConservationSlider(this.ap,a.cs,a.getName()),
3045 jalview.appletgui.SliderPanel.showConservationSlider()):a.cs.setConservation(null),this.refresh())});d(c$,"getGroup",function(){var a=this.ap.av.getSelectionGroup();null!=a&&this.ap.av.getAlignment().addGroup(a);return a});d(c$,"unGroupMenuItem_actionPerformed",function(){var a=this.ap.av.getSelectionGroup();this.ap.av.getAlignment().deleteGroup(a);this.ap.av.setSelectionGroup(null);this.ap.paintAlignment(!0)});d(c$,"createGroupMenuItem_actionPerformed",function(){this.getGroup();this.refresh()});
3046 d(c$,"showColourText_itemStateChanged",function(){this.getGroup().setColourText(this.showColourText.getState());this.refresh()});d(c$,"showText_itemStateChanged",function(){this.getGroup().setDisplayText(this.showText.getState());this.refresh()});d(c$,"makeReferenceSeq_actionPerformed",function(){this.ap.av.getAlignment().hasSeqrep()?this.ap.av.getAlignment().getSeqrep()===this.seq?this.ap.av.getAlignment().setSeqrep(null):this.ap.av.getAlignment().setSeqrep(this.seq):(this.ap.av.setDisplayReferenceSeq(!0),
3047 this.ap.av.setColourByReferenceSeq(!0),this.ap.av.getAlignment().setSeqrep(this.seq));this.refresh()});d(c$,"showNonconserved_itemStateChanged",function(){this.getGroup().setShowNonconserved(this.displayNonconserved.getState());this.refresh()});d(c$,"showBoxes_itemStateChanged",function(){this.getGroup().setDisplayBoxes(this.showBoxes.getState());this.refresh()});d(c$,"hideSequences",function(a){var b=this.ap.av.getSelectionGroup();if(null==b||1>b.getSize())this.ap.av.hideSequence(E(-1,[this.seq]));
3048 else if(this.ap.av.setSelectionGroup(null),a)this.ap.av.hideRepSequences(this.seq,b);else{a=b.getSize();var c;c=Array(a);for(var d=0,e=0;e<a;e++)c[d++]=b.getSequenceAt(e);this.ap.av.hideSequence(c);this.ap.av.sendSelection()}},"~B");d(c$,"buildAnnotationTypesMenus",function(a,b,c){a.removeAll();b.removeAll();var d=java.util.Arrays.asList(["All"]);this.addAnnotationTypeToShowHide(a,c,"",d,!0,!0);this.addAnnotationTypeToShowHide(b,c,"",d,!0,!1);a.addSeparator();b.addSeparator();var e=this.ap.getAlignment().getAlignmentAnnotation(),
3049 d=new java.util.LinkedHashMap,k=new java.util.LinkedHashMap;jalview.analysis.AlignmentAnnotationUtils.getShownHiddenTypes(d,k,jalview.analysis.AlignmentAnnotationUtils.asList(e),c);for(var g,e=k.keySet().iterator();e.hasNext()&&((g=e.next())||1);)for(var h,j=k.get(g).iterator();j.hasNext()&&((h=j.next())||1);)this.addAnnotationTypeToShowHide(a,c,g,h,!1,!0);a.setEnabled(!k.isEmpty());for(e=d.keySet().iterator();e.hasNext()&&((g=e.next())||1);)for(j=d.get(g).iterator();j.hasNext()&&((h=j.next())||1);)this.addAnnotationTypeToShowHide(b,
3050 c,g,h,!1,!1);b.setEnabled(!d.isEmpty())},"awt2swing.Menu,awt2swing.Menu,java.util.List");d(c$,"addAnnotationTypeToShowHide",function(a,b,c,d,e,k){c=d.toString();c=c.substring(1,c.length-1);c=new awt2swing.MenuItem(c);c.addActionListener((H("jalview.appletgui.APopupMenu$3")?0:jalview.appletgui.APopupMenu.$APopupMenu$3$(),C(jalview.appletgui.APopupMenu$3,this,T("types",d,"forSequences",b,"allTypes",e,"actionIsShow",k))));a.add(c)},"awt2swing.Menu,java.util.List,~S,java.util.List,~B,~B");c$.$APopupMenu$1$=
3051 function(){A(self.c$);c$=L(jalview.appletgui,"APopupMenu$1",null,java.awt.event.ActionListener);e(c$,"actionPerformed",function(){this.b$["jalview.appletgui.APopupMenu"].addReferenceAnnotations_actionPerformed(this.f$.candidates)},"java.awt.event.ActionEvent");c$=z()};c$.$APopupMenu$2$=function(){A(self.c$);c$=L(jalview.appletgui,"APopupMenu$2",null,java.awt.event.ActionListener);e(c$,"actionPerformed",function(){this.b$["jalview.appletgui.APopupMenu"].ap.alignFrame.showURL(this.f$.url,this.f$.target)},
3052 "java.awt.event.ActionEvent");c$=z()};c$.$APopupMenu$3$=function(){A(self.c$);c$=L(jalview.appletgui,"APopupMenu$3",null,java.awt.event.ActionListener);e(c$,"actionPerformed",function(){jalview.analysis.AlignmentUtils.showOrHideSequenceAnnotations(this.b$["jalview.appletgui.APopupMenu"].ap.getAlignment(),this.f$.types,this.f$.forSequences,this.f$.allTypes,this.f$.actionIsShow);this.b$["jalview.appletgui.APopupMenu"].refresh()},"java.awt.event.ActionEvent");c$=z()};G(c$,"ALL_ANNOTATIONS","All")});
3053 p("jalview.analysis");q(null,"jalview.analysis.AlignmentAnnotationUtils",["java.util.ArrayList","$.Arrays","$.BitSet","$.Collections","$.HashMap"],function(){c$=B(jalview.analysis,"AlignmentAnnotationUtils");c$.getShownHiddenTypes=d(c$,"getShownHiddenTypes",function(a,b,c,d){var e=jalview.analysis.AlignmentAnnotationUtils.getVisibleLineGraphGroups(c),k=new java.util.HashMap,g=new java.util.ArrayList,h=new java.util.ArrayList,j;for(c=c.iterator();c.hasNext()&&((j=c.next())||1);)if(null!=j.annotations&&
3054 null!=d&&null!=j.sequenceRef&&d.contains(j.sequenceRef)){var n=j.getCalcId(),m=new java.util.ArrayList,p=j.label;m.add(p);if(2==j.graph&&-1<j.graphGroup){k.containsKey(n)||k.put(n,new java.util.HashMap);var q=k.get(n);q.containsKey(new Integer(j.graphGroup))?q.get(new Integer(j.graphGroup)).contains(p)||q.get(new Integer(j.graphGroup)).add(p):q.put(new Integer(j.graphGroup),m)}else p=n+"!"+p,j.visible&&!g.contains(p)?(a.containsKey(n)||a.put(n,new java.util.ArrayList),a.get(n).add(m),g.add(p)):!j.visible&&
3055 !h.contains(p)&&(b.containsKey(n)||b.put(n,new java.util.ArrayList),b.get(n).add(m),h.add(p))}for(d=k.keySet().iterator();d.hasNext()&&((n=d.next())||1);)for(var r,g=k.get(n).keySet().iterator();g.hasNext()&&((r=g.next())||1);)h=k.get(n).get(new Integer(r)),java.util.Collections.sort(h),e.get(r)?(a.containsKey(n)||a.put(n,new java.util.ArrayList),a.get(n).contains(h)||a.get(n).add(h)):(b.containsKey(n)||b.put(n,new java.util.ArrayList),b.get(n).contains(h)||b.get(n).add(h))},"java.util.Map,java.util.Map,java.util.List,java.util.List");
3056 c$.getVisibleLineGraphGroups=d(c$,"getVisibleLineGraphGroups",function(a){var b=new java.util.BitSet,c;for(a=a.iterator();a.hasNext()&&((c=a.next())||1);)if(2==c.graph&&c.visible){var d=c.graphGroup;-1<d&&b.set(d)}return b},"java.util.List");c$.asList=d(c$,"asList",function(a){return null==a?java.util.Collections.emptyList():java.util.Arrays.asList(a)},"~A")});p("jalview.appletgui");q("awt2swing.Panel java.awt.event.ActionListener $.AdjustmentListener $.MouseListener awt2swing.Button $.Checkbox $.Label $.Scrollbar $.TextField java.awt.BorderLayout $.FlowLayout".split(" "),
3057 "jalview.appletgui.SliderPanel","awt2swing.Frame jalview.bin.JalviewLite jalview.util.MessageManager java.awt.Color $.Font java.awt.event.WindowAdapter".split(" "),function(){c$=s(function(){this.ap=null;this.forConservation=!0;this.flowLayout2=this.borderLayout2=this.borderLayout1=this.allGroupsCheck=this.flowLayout1=this.undoButton=this.applyButton=this.jPanel2=this.jPanel1=this.label=this.valueField=this.slider=this.cs=null;r(this,arguments)},jalview.appletgui,"SliderPanel",awt2swing.Panel,[java.awt.event.ActionListener,
3058 java.awt.event.AdjustmentListener,java.awt.event.MouseListener]);J(c$,function(){this.slider=new awt2swing.Scrollbar;this.valueField=new awt2swing.TextField;this.label=new awt2swing.Label;this.jPanel1=new awt2swing.Panel;this.jPanel2=new awt2swing.Panel;this.applyButton=new awt2swing.Button;this.undoButton=new awt2swing.Button;this.flowLayout1=new java.awt.FlowLayout;this.allGroupsCheck=new awt2swing.Checkbox;this.borderLayout1=new java.awt.BorderLayout;this.borderLayout2=new java.awt.BorderLayout;
3059 this.flowLayout2=new java.awt.FlowLayout});c$.setConservationSlider=d(c$,"setConservationSlider",function(a,b,c){var d=null;null==jalview.appletgui.SliderPanel.conservationSlider?(d=new jalview.appletgui.SliderPanel(a,b.getConservationInc(),!0,b),jalview.appletgui.SliderPanel.conservationSlider=new awt2swing.Frame,jalview.appletgui.SliderPanel.conservationSlider.add(d)):(d=jalview.appletgui.SliderPanel.conservationSlider.getComponent(0),d.cs=b);jalview.appletgui.SliderPanel.conservationSlider.setTitle(jalview.util.MessageManager.formatMessage("label.conservation_colour_increment",
3060 E(-1,[c])));null!=a.av.getAlignment().getGroups()?d.setAllGroupsCheckEnabled(!0):d.setAllGroupsCheckEnabled(!1);return d.getValue()},"jalview.appletgui.AlignmentPanel,jalview.schemes.ColourSchemeI,~S");c$.showConservationSlider=d(c$,"showConservationSlider",function(){try{jalview.appletgui.SliderPanel.PIDSlider.setVisible(!1),jalview.appletgui.SliderPanel.PIDSlider=null}catch(a){if(!y(a,Exception))throw a;}jalview.appletgui.SliderPanel.conservationSlider.isVisible()||(jalview.bin.JalviewLite.addFrame(jalview.appletgui.SliderPanel.conservationSlider,
3061 jalview.appletgui.SliderPanel.conservationSlider.getTitle(),420,100),jalview.appletgui.SliderPanel.conservationSlider.addWindowListener((H("jalview.appletgui.SliderPanel$1")?0:jalview.appletgui.SliderPanel.$SliderPanel$1$(),C(jalview.appletgui.SliderPanel$1,this,null))))});c$.setPIDSliderSource=d(c$,"setPIDSliderSource",function(a,b,c){var d=null;null==jalview.appletgui.SliderPanel.PIDSlider?(d=new jalview.appletgui.SliderPanel(a,50,!1,b),jalview.appletgui.SliderPanel.PIDSlider=new awt2swing.Frame,
3062 jalview.appletgui.SliderPanel.PIDSlider.add(d)):(d=jalview.appletgui.SliderPanel.PIDSlider.getComponent(0),d.cs=b);jalview.appletgui.SliderPanel.PIDSlider.setTitle(jalview.util.MessageManager.formatMessage("label.percentage_identity_thereshold",E(-1,[c])));null!=a.av.getAlignment().getGroups()?d.setAllGroupsCheckEnabled(!0):d.setAllGroupsCheckEnabled(!1);return d.getValue()},"jalview.appletgui.AlignmentPanel,jalview.schemes.ColourSchemeI,~S");c$.showPIDSlider=d(c$,"showPIDSlider",function(){try{jalview.appletgui.SliderPanel.conservationSlider.setVisible(!1),
3063 jalview.appletgui.SliderPanel.conservationSlider=null}catch(a){if(!y(a,Exception))throw a;}jalview.appletgui.SliderPanel.PIDSlider.isVisible()||(jalview.bin.JalviewLite.addFrame(jalview.appletgui.SliderPanel.PIDSlider,jalview.appletgui.SliderPanel.PIDSlider.getTitle(),420,100),jalview.appletgui.SliderPanel.PIDSlider.addWindowListener((H("jalview.appletgui.SliderPanel$2")?0:jalview.appletgui.SliderPanel.$SliderPanel$2$(),C(jalview.appletgui.SliderPanel$2,this,null))))});m(c$,function(a,b,c,d){t(this,
3064 jalview.appletgui.SliderPanel,[]);try{this.jbInit()}catch(e){if(y(e,Exception))e.printStackTrace();else throw e;}this.ap=a;this.cs=d;this.forConservation=c;this.undoButton.setVisible(!1);this.applyButton.setVisible(!1);this.forConservation?(this.label.setText(jalview.util.MessageManager.getString("label.modify_conservation_visibility")),this.slider.setMinimum(0),this.slider.setMaximum(50+this.slider.getVisibleAmount()),this.slider.setUnitIncrement(1)):(this.label.setText(jalview.util.MessageManager.getString("label.colour_residues_above_occurence")),
3065 this.slider.setMinimum(0),this.slider.setMaximum(100+this.slider.getVisibleAmount()),this.slider.setBlockIncrement(1));this.slider.addAdjustmentListener(this);this.slider.addMouseListener(this);this.slider.setValue(b);this.valueField.setText(b+"")},"jalview.appletgui.AlignmentPanel,~N,~B,jalview.schemes.ColourSchemeI");d(c$,"valueChanged",function(a){if(null!=this.cs){var b=this.cs,c=null;for(this.allGroupsCheck.getState()&&(c=this.ap.av.getAlignment().getGroups().listIterator());null!=b;)if(this.forConservation?
3066 b.setConservationInc(a):b.setThreshold(a,this.ap.av.isIgnoreGapsConsensus()),null!=c&&c.hasNext())for(;null==(b=c.next().cs)&&c.hasNext(););else b=null;this.ap.seqPanel.seqCanvas.repaint()}},"~N");d(c$,"setAllGroupsCheckEnabled",function(a){this.allGroupsCheck.setEnabled(a)},"~B");e(c$,"actionPerformed",function(a){a.getSource()===this.applyButton?this.applyButton_actionPerformed():a.getSource()===this.undoButton?this.undoButton_actionPerformed():a.getSource()===this.valueField&&this.valueField_actionPerformed()},
3067 "java.awt.event.ActionEvent");e(c$,"adjustmentValueChanged",function(){this.valueField.setText(this.slider.getValue()+"");this.valueChanged(this.slider.getValue())},"java.awt.event.AdjustmentEvent");d(c$,"valueField_actionPerformed",function(){try{var a=Integer.parseInt(this.valueField.getText());this.slider.setValue(a)}catch(b){if(y(b,Exception))this.valueField.setText(this.slider.getValue()+"");else throw b;}});d(c$,"setValue",function(a){this.slider.setValue(a)},"~N");d(c$,"getValue",function(){return Integer.parseInt(this.valueField.getText())});
3068 d(c$,"jbInit",function(){this.setLayout(this.borderLayout2);this.slider.setBackground(java.awt.Color.white);this.slider.setFont(new java.awt.Font("Verdana",0,11));this.slider.setOrientation(0);this.valueField.setFont(new java.awt.Font("Verdana",0,11));this.valueField.setText("   ");this.valueField.addActionListener(this);this.valueField.setColumns(3);this.label.setFont(new java.awt.Font("Verdana",0,11));this.label.setText(jalview.util.MessageManager.getString("label.set_this_label_text"));this.jPanel1.setLayout(this.borderLayout1);
3069 this.jPanel2.setLayout(this.flowLayout1);this.applyButton.setFont(new java.awt.Font("Verdana",0,11));this.applyButton.setLabel(jalview.util.MessageManager.getString("action.apply"));this.applyButton.addActionListener(this);this.undoButton.setEnabled(!1);this.undoButton.setFont(new java.awt.Font("Verdana",0,11));this.undoButton.setLabel(jalview.util.MessageManager.getString("action.undo"));this.undoButton.addActionListener(this);this.allGroupsCheck.setEnabled(!1);this.allGroupsCheck.setFont(new java.awt.Font("Verdana",
3070 0,11));this.allGroupsCheck.setLabel(jalview.util.MessageManager.getString("action.apply_threshold_all_groups"));this.allGroupsCheck.setName(jalview.util.MessageManager.getString("action.apply_all_groups"));this.setBackground(java.awt.Color.white);this.setForeground(java.awt.Color.black);this.jPanel2.add(this.label,null);this.jPanel2.add(this.applyButton,null);this.jPanel2.add(this.undoButton,null);this.jPanel2.add(this.allGroupsCheck);this.jPanel1.add(this.valueField,"East");this.jPanel1.add(this.slider,
3071 "Center");this.add(this.jPanel1,"South");this.add(this.jPanel2,"Center")});d(c$,"applyButton_actionPerformed",function(){});d(c$,"undoButton_actionPerformed",function(){});e(c$,"mousePressed",function(){},"java.awt.event.MouseEvent");e(c$,"mouseReleased",function(){this.ap.paintAlignment(!0)},"java.awt.event.MouseEvent");e(c$,"mouseClicked",function(){},"java.awt.event.MouseEvent");e(c$,"mouseEntered",function(){},"java.awt.event.MouseEvent");e(c$,"mouseExited",function(){},"java.awt.event.MouseEvent");
3072 c$.$SliderPanel$1$=function(){A(self.c$);c$=L(jalview.appletgui,"SliderPanel$1",java.awt.event.WindowAdapter);e(c$,"windowClosing",function(){jalview.appletgui.SliderPanel.conservationSlider=null},"java.awt.event.WindowEvent");c$=z()};c$.$SliderPanel$2$=function(){A(self.c$);c$=L(jalview.appletgui,"SliderPanel$2",java.awt.event.WindowAdapter);e(c$,"windowClosing",function(){jalview.appletgui.SliderPanel.PIDSlider=null},"java.awt.event.WindowEvent");c$=z()};G(c$,"conservationSlider",null,"PIDSlider",
3073 null)});p("jalview.commands");q(["jalview.commands.CommandI"],"jalview.commands.ChangeCaseCommand",["java.lang.StringBuffer"],function(){c$=s(function(){this.description=null;this.caseChange=-1;this.regions=this.seqs=null;r(this,arguments)},jalview.commands,"ChangeCaseCommand",null,jalview.commands.CommandI);m(c$,function(a,b,c,d){this.description=a;this.seqs=b;this.regions=c;this.caseChange=d;this.doCommand(null)},"~S,~A,java.util.List,~N");e(c$,"getDescription",function(){return this.description});
3074 e(c$,"getSize",function(){return 1});e(c$,"doCommand",function(){this.changeCase(!0)},"~A");e(c$,"undoCommand",function(){this.changeCase(!1)},"~A");d(c$,"changeCase",function(a){for(var b,c,d,e,k,g=this.regions.iterator();g.hasNext()&&((k=g.next())||1);){c=k[0];for(var h=0;h<this.seqs.length;h++){b=this.seqs[h].getSequenceAsString();var j=new StringBuffer;d=k[1]>b.length?b.length:k[1];0<c&&j.append(b.substring(0,c));if(this.caseChange==jalview.commands.ChangeCaseCommand.TO_UPPER&&a||this.caseChange==
3075 jalview.commands.ChangeCaseCommand.TO_LOWER&&!a)j.append(b.substring(c,d).toUpperCase());else if(this.caseChange==jalview.commands.ChangeCaseCommand.TO_LOWER&&a||this.caseChange==jalview.commands.ChangeCaseCommand.TO_UPPER&&!a)j.append(b.substring(c,d).toLowerCase());else for(var n=c;n<d;n++)e=b.charAt(n),"a"<=e&&"z">=e?e=String.fromCharCode(e.charCodeAt(0)-32):"A"<=e&&"Z">=e&&(e=String.fromCharCode(e.charCodeAt(0)+32)),j.append(e);d<b.length&&j.append(b.substring(d));this.seqs[h].setSequence(j.toString())}}},
3076 "~B");G(c$,"TO_LOWER",0,"TO_UPPER",1,"TOGGLE_CASE",2)});p("jalview.io");q(null,"jalview.io.SequenceAnnotationReport",["jalview.util.DBRefUtils","$.UrlLink","java.lang.Float","java.util.ArrayList"],function(){c$=s(function(){this.linkImageURL=null;r(this,arguments)},jalview.io,"SequenceAnnotationReport");m(c$,function(a){this.linkImageURL=a},"~S");d(c$,"appendFeatures",function(a,b,c){this.appendFeatures(a,b,c,null)},"StringBuffer,~N,java.util.List");d(c$,"appendFeatures",function(a,b,c,d){var e;if(null!=
3077 c){var k;for(c=c.iterator();c.hasNext()&&((k=c.next())||1);){if(k.getType().equals("disulfide bond")){if(k.getBegin()==b||k.getEnd()==b)6<a.length()&&a.append("<br>"),a.append("disulfide bond "+k.getBegin()+":"+k.getEnd())}else if(6<a.length()&&a.append("<br>"),null==k.getValue("linkonly")){a.append(k.getType()+" ");0!=b&&a.append(""+k.begin);k.begin!=k.end&&a.append(" "+k.end);if(null!=k.getDescription()&&!k.description.equals(k.getType())){e=k.getDescription();var g=e.toUpperCase(),h=g.indexOf("<HTML>");
3078 -1<h&&(e=e.substring(h+6),g=g.substring(h+6));var j=g.indexOf("</BODY>");-1<j&&(e=e.substring(0,j),g=g.substring(0,j));j=g.indexOf("</HTML>");-1<j&&(e=e.substring(0,j));-1<h?a.append("; "+e):-1<e.indexOf("<")||-1<e.indexOf(">")?(e=e.replaceAll("<","&lt;"),e=e.replaceAll(">","&gt;"),a.append("; "),a.append(e)):a.append("; "+e)}Float.isNaN(k.getScore())||(e=null==d?null:d.get(k.getType()),null!=e&&(null!=e[0]&&e[0][0]!=e[0][1])&&a.append(" Score="+k.getScore()));null!=k.getValue("status")&&0<k.getValue("status").toString().length&&
3079 a.append("; ("+k.getValue("status")+")")}if(null!=k.links)if(null!=this.linkImageURL)a.append(' <img src="'+this.linkImageURL+'">');else{var n;for(e=k.links.iterator();e.hasNext()&&((n=e.next())||1);)try{for(var m,g=0,p=this.createLinksFrom(null,n);g<p.length&&((m=p[g])||1);g++)a.append('<br/> <a href="'+m[3]+'" target="'+m[0]+'">'+(m[0].toLowerCase().equals(m[1].toLowerCase())?m[0]:m[0]+":"+m[1])+"</a></br>")}catch(q){if(y(q,Exception))System.err.println("problem when creating links from "+n),q.printStackTrace();
3080 else throw q;}}}}},"StringBuffer,~N,java.util.List,java.util.Hashtable");d(c$,"createLinksFrom",function(a,b){var c=new java.util.ArrayList,d=new java.util.ArrayList,e=new jalview.util.UrlLink(b);if(!e.isValid())return System.err.println(e.getInvalidMessage()),null;var k=e.getTarget(),g=e.getLabel();if(null!=a&&e.isDynamic()){var h=jalview.util.DBRefUtils.selectRefs(a.getDBRef(),E(-1,[k])),j=a.getName(),n=a.getDescription();null!=n&&1>n.length&&(n=null);if(null!=h)for(var m=0;m<h.length;m++){null!=
3081 j&&h[m].getAccessionId().equals(j)&&(j=null);var p=e.makeUrls(h[m].getAccessionId(),!0);if(null!=p)for(var q=0;q<p.length;q+=2){var r=p[q]+"|"+p[q+1];d.contains(r)||(c.add(E(-1,[k,g,p[q],p[q+1]])),d.add(r))}}if(null!=j&&(p=e.makeUrls(j,!0),null!=p))for(q=0;q<p.length;q+=2)r=p[q]+"|"+p[q+1],d.contains(r)||(c.add(E(-1,[k,g,p[q],p[q+1]])),d.add(r));if(null!=n&&null!=e.getRegexReplace()&&(p=e.makeUrls(n,!0),null!=p))for(q=0;q<p.length;q+=2)r=p[q]+"|"+p[q+1],d.contains(r)||(c.add(E(-1,[k,g,p[q],p[q+1]])),
3082 d.add(r))}else r=g+"|"+e.getUrl_prefix(),d.contains(r)||(d.add(r),c.add(E(-1,[k,g,null,e.getUrl_prefix()])));return c.toArray(E(-1,[]))},"jalview.datamodel.SequenceI,~S");d(c$,"createSequenceAnnotationReport",function(a,b,c,d,e){this.createSequenceAnnotationReport(a,b,c,d,!0,e)},"StringBuffer,jalview.datamodel.SequenceI,~B,~B,java.util.Hashtable");d(c$,"createSequenceAnnotationReport",function(a,b,c,d,e,k){var g;a.append("<i>");var h=0;null!=b.getDescription()&&(g=b.getDescription(),a.append("<br>"+
3083 g),h=Math.max(h,g.length));for(g=b;null!=g.getDatasetSequence();)g=g.getDatasetSequence();var j=g.getDBRef();if(c&&null!=j)for(c=0;c<j.length;c++)a.append("<br>"),g=j[c].getSource()+" "+j[c].getAccessionId(),a.append(g),h=Math.max(h,g.length);b=b.getSequenceFeatures();if(d&&null!=b)for(c=0;c<b.length;c++)0==b[c].begin&&0==b[c].end&&(d=-a.length(),g=new java.util.ArrayList,g.add(b[c]),this.appendFeatures(a,0,g,k),d+=a.length(),h=Math.max(h,d));e&&60<h&&(a.insert(0,"<table width=350 border=0><tr><td><i>"),
3084 a.append("</i></td></tr></table>"))},"StringBuffer,jalview.datamodel.SequenceI,~B,~B,~B,java.util.Hashtable")});p("jalview.util");q(null,"jalview.util.UrlLink",["jalview.jsdev.RegExp","java.util.Vector"],function(){c$=s(function(){this.regexReplace=this.label=this.target=this.url_prefix=this.url_suffix=null;this.dynamic=!1;this.invalidMessage=null;r(this,arguments)},jalview.util,"UrlLink");m(c$,function(a){var b=a.indexOf("|"),c=a.indexOf("$SEQUENCE_ID");if(-1<c){this.dynamic=!0;var d=b;do b=d,d=
3085 a.indexOf("|",b+1);while(d>b&&d<c);this.label=a.substring(0,b);this.target=-1<this.label.indexOf("|")?this.label.substring(0,this.label.indexOf("|")):2<this.label.indexOf(" ")?this.label.substring(0,this.label.indexOf(" ")):this.label;this.url_prefix=a.substring(b+1,c);if(a.indexOf("$SEQUENCE_ID=/")==c&&(d=a.indexOf("/=$",c+14))>c+14){this.url_suffix=a.substring(d+3);this.regexReplace=a.substring(c+14,d);try{null==jalview.jsdev.RegExp.perlCode("/"+this.regexReplace+"/")&&(this.invalidMessage="Invalid Regular Expression : '"+
3086 this.regexReplace+"'\n")}catch(e){if(y(e,Exception))this.invalidMessage="Invalid Regular Expression : '"+this.regexReplace+"'\n";else throw e;}}else this.regexReplace=null,a.indexOf("$SEQUENCE_ID$")==c?(this.url_suffix=a.substring(c+13),this.regexReplace=null):this.invalidMessage="Warning: invalid regex structure for URL link : "+a}else this.target=a.substring(0,b),this.label=a.substring(0,b=a.lastIndexOf("|")),this.url_prefix=a.substring(b+1),this.url_suffix=this.regexReplace=null},"~S");d(c$,"getUrl_suffix",
3087 function(){return this.url_suffix});d(c$,"getUrl_prefix",function(){return this.url_prefix});d(c$,"getTarget",function(){return this.target});d(c$,"getLabel",function(){return this.label});d(c$,"getRegexReplace",function(){return this.regexReplace});d(c$,"getInvalidMessage",function(){return this.invalidMessage});d(c$,"isValid",function(){return null==this.invalidMessage});d(c$,"makeUrls",function(a,b){if(this.dynamic){if(null!=this.regexReplace){var c=jalview.jsdev.RegExp.perlCode("/"+this.regexReplace+
3088 "/");if(c.search(a)){var d=c.numSubs();if(0==d)return E(-1,[c.stringMatchedI(d),this.url_prefix+c.stringMatched()+this.url_suffix]);for(var e=0;e<=c.numSubs();e++)System.err.println("Sub "+e+" : "+c.matchedFromI(e)+" : "+c.matchedToI(e)+" : '"+c.stringMatchedI(e)+"'");for(var k=new java.util.Vector,e=0;e<=d;)if(e+1<=d&&-1<c.matchedToI(e)&&-1<c.matchedToI(e+1)&&c.matchedToI(e+1)<c.matchedToI(e)){for(var g=e+1,h="";g<=d&&c.matchedToI(g)<=c.matchedToI(e);)-1<c.matchedFromI(g)&&(h+=c.stringMatchedI(g)),
3089 g++;0<h.length&&(k.addElement(h),k.addElement(this.url_prefix+h+this.url_suffix));e=g}else-1<c.matchedFromI(e)&&(k.addElement(c.stringMatchedI(e)),k.addElement(this.url_prefix+c.stringMatchedI(e)+this.url_suffix)),e++;c=Array(k.size());g=0;for(d=k.size();g<d;g++)c[g]=k.elementAt(g);k.removeAllElements();return c}if(b)return null}-1<a.indexOf("|")&&(a=a.substring(a.lastIndexOf("|")+1));return E(-1,[a,this.url_prefix+a+this.url_suffix])}return E(-1,["",this.url_prefix])},"~S,~B");e(c$,"toString",function(){return this.label+
3090 "|"+this.url_prefix+(this.dynamic?"$SEQUENCE_ID"+(null!=this.regexReplace?"="+this.regexReplace+"=$":"$"):"")+(null==this.url_suffix?"":this.url_suffix)});d(c$,"isDynamic",function(){return this.dynamic});d(c$,"setLabel",function(a){this.label=a},"~S")});p("jalview.appletgui");q(["awt2swing.Panel"],"jalview.appletgui.IdCanvas","awt2swing.Util jalview.appletgui.AnnotationLabels $.AnnotationPanel $.PaintRefresher java.awt.Color $.Font".split(" "),function(){c$=s(function(){this.av=null;this.showScores=
3091 !0;this.maxIdLength=-1;this.gg=this.image=this.maxIdStr=null;this.imgHeight=0;this.$fastPaint=!1;this.searchResults=null;this.avcharHeight=0;r(this,arguments)},jalview.appletgui,"IdCanvas",awt2swing.Panel);m(c$,function(a){t(this,jalview.appletgui.IdCanvas,[]);this.setLayout(null);this.av=a;jalview.appletgui.PaintRefresher.Register(this,a.getSequenceSetId())},"jalview.appletgui.AlignViewport");d(c$,"drawIdString",function(a,b,c,d,e,k){var g=this.av.getCharHeight();null!=this.searchResults&&this.searchResults.contains(c)?
3092 (a.setColor(java.awt.Color.black),a.fillRect(0,(d-e)*g+k,this.getSize().width,g),a.setColor(java.awt.Color.white)):null!=this.av.getSelectionGroup()&&this.av.getSelectionGroup().getSequences(null).contains(c)?(a.setColor(java.awt.Color.lightGray),a.fillRect(0,(d-e)*g+k,this.getSize().width,g),a.setColor(java.awt.Color.white)):(a.setColor(this.av.getSequenceColour(c)),a.fillRect(0,(d-e)*g+k,this.getSize().width,g),a.setColor(java.awt.Color.black));awt2swing.Util.drawString(a,c.getDisplayId(this.av.getShowJVSuffix()),
3093 0,(d-e)*g+k+g-F(g/5));b&&this.drawMarker(d,e,k)},"java.awt.Graphics,~B,jalview.datamodel.SequenceI,~N,~N,~N");d(c$,"fastPaint",function(a){if(null!=this.gg){this.gg.copyArea(0,0,this.getSize().width,this.imgHeight,0,-a*this.av.getCharHeight());var b=this.av.startSeq,c=this.av.endSeq,d=0;0<a?(b=c-a,b<this.av.startSeq?b=this.av.startSeq:d=this.imgHeight-a*this.av.getCharHeight()):0>a&&(c=b-a,c>this.av.endSeq&&(c=this.av.endSeq));this.gg.translate(0,d);this.drawIds(b,c);this.gg.translate(0,-d);this.$fastPaint=
3094 !0}this.repaint()},"~N");e(c$,"paintComponent",function(a){if(!(0>this.getSize().height||0>this.getSize().width))if(this.$fastPaint)this.$fastPaint=!1,a.drawImage(this.image,0,0,this);else if(this.imgHeight=this.getSize().height,this.imgHeight-=this.imgHeight%this.av.getCharHeight(),!(1>this.imgHeight)){if(null==this.image||this.imgHeight!=this.image.getHeight(this))this.image=this.createImage(this.getSize().width,this.imgHeight),this.gg=this.image.getGraphics(),this.gg.setFont(this.av.getFont());
3095 this.gg.setColor(java.awt.Color.white);var b=new java.awt.Font(this.av.getFont().getName(),2,this.av.getFont().getSize());this.gg.setFont(b);this.gg.fillRect(0,0,this.getSize().width,this.getSize().height);this.drawIds(this.av.startSeq,this.av.endSeq);a.drawImage(this.image,0,0,this)}},"java.awt.Graphics");d(c$,"drawIds",function(a,b){var c=new java.awt.Font(this.av.getFont().getName(),2,this.av.getFont().getSize());this.avcharHeight=this.av.getCharHeight();this.gg.setFont(c);var d=java.awt.Color.white,
3096 e=java.awt.Color.black,k=this.av.isDisplayReferenceSeq()||this.av.hasHiddenRows(),g=this.av.hasHiddenRows()&&this.av.getShowHiddenMarkers();if(this.av.getWrapAlignment()){d=this.av.getAlignment().getWidth();e=this.av.getAlignment().getHeight();this.av.hasHiddenColumns()&&(d=this.av.getColumnSelection().findColumnPosition(d)-1);var h=0,j=null;this.av.isShowAnnotation()&&(h=(new jalview.appletgui.AnnotationPanel(this.av)).adjustPanelHeight(),j=new jalview.appletgui.AnnotationLabels(this.av));var n=
3097 this.avcharHeight;this.av.getScaleAboveWrapped()&&(n+=this.avcharHeight);for(var h=e*this.avcharHeight+n+h,m=this.av.getEndRes()-this.av.getStartRes(),p=n,q=this.av.startRes;p<=this.getSize().height&&q<d;p+=h,q+=m){for(n=a;n<e;n++){var r=this.av.getAlignment().getSequenceAt(n);this.gg.setFont(c);k&&this.setHiddenFont(r);this.drawIdString(this.gg,g,r,n,0,p)}null!=j&&(this.gg.translate(0,p+e*this.avcharHeight),j.drawComponent(this.gg,this.getSize().width),this.gg.translate(0,-p-e*this.avcharHeight))}}else for(n=
3098 a;n<b;n++)j=this.av.getAlignment().getSequenceAt(n),null!=j&&(this.gg.setFont(c),k&&this.setHiddenFont(j),null!=this.searchResults&&this.searchResults.contains(j)?(d=java.awt.Color.black,e=java.awt.Color.white):(d=null!=this.av.getSelectionGroup()&&this.av.getSelectionGroup().getSequences(null).contains(j)?java.awt.Color.lightGray:this.av.getSequenceColour(j),e=java.awt.Color.black),this.gg.setColor(d),this.gg.fillRect(0,(n-a)*this.avcharHeight,this.getSize().width,this.avcharHeight),this.gg.setColor(e),
3099 awt2swing.Util.drawString(this.gg,j.getDisplayId(this.av.getShowJVSuffix()),0,(n-a)*this.avcharHeight+this.avcharHeight-F(this.avcharHeight/5)),g&&this.drawMarker(n,a,0))},"~N,~N");d(c$,"setHighlighted",function(a){this.searchResults=a;this.repaint()},"java.util.List");d(c$,"drawMarker",function(a,b,c){for(var d=this.av.getAlignment().getHiddenSequences().hiddenSequences,e=d.length,k=a,g=a-1,h=a+1,j=0;j<e;j++)null!=d[j]&&(j-1<k&&k++,j-1<g&&g++,j-1<h&&h++);d=k>g+1;k=h>k+1;this.gg.setColor(java.awt.Color.blue);
3100 d&&this.gg.fillPolygon(w(-1,[this.getSize().width-this.avcharHeight,this.getSize().width-this.avcharHeight,this.getSize().width]),w(-1,[(a-b)*this.avcharHeight+c,(a-b)*this.avcharHeight+c+F(this.avcharHeight/4),(a-b)*this.avcharHeight+c]),3);k&&this.gg.fillPolygon(w(-1,[this.getSize().width-this.avcharHeight,this.getSize().width-this.avcharHeight,this.getSize().width]),w(-1,[(a-b+1)*this.avcharHeight+c,(a-b+1)*this.avcharHeight+c-F(this.avcharHeight/4),(a-b+1)*this.avcharHeight+c]),3)},"~N,~N,~N");
3101 d(c$,"setHiddenFont",function(a){var b=new java.awt.Font(this.av.getFont().getName(),1,this.av.getFont().getSize());return this.av.isHiddenRepSequence(a)?(this.gg.setFont(b),!0):!1},"jalview.datamodel.SequenceI")});p("jalview.appletgui");q(["awt2swing.Panel","java.awt.event.MouseListener","$.MouseMotionListener"],"jalview.appletgui.IdwidthAdjuster",["java.awt.Color","$.Toolkit"],function(){c$=s(function(){this.active=!1;this.oldX=0;this.ap=this.image=null;r(this,arguments)},jalview.appletgui,"IdwidthAdjuster",
3102 awt2swing.Panel,[java.awt.event.MouseListener,java.awt.event.MouseMotionListener]);m(c$,function(a){t(this,jalview.appletgui.IdwidthAdjuster,[]);this.setName("IdwidthAdjuster");this.setLayout(null);this.ap=a;a=this.getClass().getResource("/images/idwidth.gif");null!=a&&(this.image=java.awt.Toolkit.getDefaultToolkit().getImage(a));this.addMouseListener(this);this.addMouseMotionListener(this)},"jalview.appletgui.AlignmentPanel");e(c$,"mousePressed",function(a){this.oldX=a.getX()},"java.awt.event.MouseEvent");
3103 e(c$,"mouseReleased",function(){this.active=!1;this.repaint()},"java.awt.event.MouseEvent");e(c$,"mouseEntered",function(){this.active=!0;this.repaint()},"java.awt.event.MouseEvent");e(c$,"mouseExited",function(){this.active=!1;this.repaint()},"java.awt.event.MouseEvent");e(c$,"mouseDragged",function(a){this.active=!0;var b=this.ap.idPanel.idCanvas.getSize(),c=a.getX()-this.oldX,d=b.width+c;if(20<d||0<c)this.ap.setIdWidth(d,b.height),this.setSize(d,this.getSize().height),this.oldX=a.getX()},"java.awt.event.MouseEvent");
3104 e(c$,"mouseMoved",function(){},"java.awt.event.MouseEvent");e(c$,"mouseClicked",function(){},"java.awt.event.MouseEvent");d(c$,"PaintComponent",function(a){a.setColor(java.awt.Color.white);a.fillRect(0,0,this.getSize().width,this.getSize().height);this.active&&null!=this.image&&a.drawImage(this.image,this.getSize().width-20,2,this)},"java.awt.Graphics")});p("jalview.appletgui");q(["awt2swing.Panel","java.awt.event.MouseListener","$.MouseMotionListener"],"jalview.appletgui.ScalePanel","awt2swing.MenuItem $.PopupMenu $.Util jalview.datamodel.SequenceGroup jalview.util.MessageManager java.awt.Color java.awt.event.ActionListener".split(" "),
3105 function(){c$=s(function(){this.offy=4;this.$width=0;this.ap=this.av=null;this.stretchingGroup=!1;this.max=this.min=0;this.mouseDragging=!1;this.reveal=null;r(this,arguments)},jalview.appletgui,"ScalePanel",awt2swing.Panel,[java.awt.event.MouseMotionListener,java.awt.event.MouseListener]);m(c$,function(a,b){t(this,jalview.appletgui.ScalePanel,[]);this.setName("scalePanel");this.setLayout(null);this.av=a;this.ap=b;this.addMouseListener(this);this.addMouseMotionListener(this)},"jalview.appletgui.AlignViewport,jalview.appletgui.AlignmentPanel");
3106 e(c$,"mousePressed",function(a){var b=F(a.getX()/this.av.getCharWidth())+this.av.getStartRes();this.max=this.min=b=this.av.hasHiddenColumns()?this.av.getColumnSelection().adjustForHiddenColumns(b):b;if(4==(a.getModifiers()&4)){var c=new awt2swing.PopupMenu;if(null!=this.reveal){var d=new awt2swing.MenuItem(jalview.util.MessageManager.getString("label.reveal"));d.addActionListener((H("jalview.appletgui.ScalePanel$1")?0:jalview.appletgui.ScalePanel.$ScalePanel$1$(),C(jalview.appletgui.ScalePanel$1,
3107 this,null)));c.add(d);this.av.getColumnSelection().hasManyHiddenColumns()&&(d=new awt2swing.MenuItem(jalview.util.MessageManager.getString("action.reveal_all")),d.addActionListener((H("jalview.appletgui.ScalePanel$2")?0:jalview.appletgui.ScalePanel.$ScalePanel$2$(),C(jalview.appletgui.ScalePanel$2,this,null))),c.add(d));this.add(c);c.show(this,a.getX(),a.getY())}else this.av.getColumnSelection().contains(b)&&(d=new awt2swing.MenuItem(jalview.util.MessageManager.getString("label.hide_columns")),d.addActionListener((H("jalview.appletgui.ScalePanel$3")?
3108 0:jalview.appletgui.ScalePanel.$ScalePanel$3$(),C(jalview.appletgui.ScalePanel$3,this,T("res",b)))),c.add(d),this.add(c),c.show(this,a.getX(),a.getY()))}else{!a.isControlDown()&&!a.isShiftDown()&&this.av.getColumnSelection().clear();this.av.getColumnSelection().addElement(b);c=new jalview.datamodel.SequenceGroup;for(d=0;d<this.av.getAlignment().getSequences().size();d++)c.addSequence(this.av.getAlignment().getSequenceAt(d),!1);c.setStartRes(b);c.setEndRes(b);this.av.setSelectionGroup(c);if(a.isShiftDown()){a=
3109 Math.min(this.av.getColumnSelection().getMin(),b);b=Math.max(this.av.getColumnSelection().getMax(),b);for(d=a;d<b;d++)this.av.getColumnSelection().addElement(d);c.setStartRes(a);c.setEndRes(b)}}this.ap.paintAlignment(!0);this.av.sendSelection()},"java.awt.event.MouseEvent");e(c$,"mouseReleased",function(a){this.mouseDragging=!1;a=F(a.getX()/this.av.getCharWidth())+this.av.getStartRes();a>this.av.getAlignment().getWidth()&&(a=this.av.getAlignment().getWidth()-1);this.av.hasHiddenColumns()&&(a=this.av.getColumnSelection().adjustForHiddenColumns(a));
3110 if(this.stretchingGroup){var b=this.av.getSelectionGroup();a>b.getStartRes()?b.setEndRes(a):a<b.getStartRes()&&b.setStartRes(a);this.stretchingGroup=!1;this.ap.paintAlignment(!1);this.av.sendSelection()}else this.ap.paintAlignment(!1)},"java.awt.event.MouseEvent");e(c$,"mouseDragged",function(a){this.mouseDragging=!0;var b=F(a.getX()/this.av.getCharWidth())+this.av.getStartRes();0>b&&(b=0);this.av.hasHiddenColumns()&&(b=this.av.getColumnSelection().adjustForHiddenColumns(b));b>this.av.getAlignment().getWidth()&&
3111 (b=this.av.getAlignment().getWidth()-1);b<this.min&&(this.min=b);b>this.max&&(this.max=b);a=this.av.getSelectionGroup();if(null!=a){this.stretchingGroup=!0;this.av.getColumnSelection().contains(b)||this.av.getColumnSelection().addElement(b);b>a.getStartRes()&&a.setEndRes(b);b<a.getStartRes()&&a.setStartRes(b);for(var c=this.min;c<=this.max;c++)b=this.av.getColumnSelection().adjustForHiddenColumns(c),b<a.getStartRes()||b>a.getEndRes()?this.av.getColumnSelection().removeElement(b):this.av.getColumnSelection().addElement(b);
3112 this.ap.paintAlignment(!1)}},"java.awt.event.MouseEvent");e(c$,"mouseEntered",function(){this.mouseDragging&&this.ap.seqPanel.scrollCanvas(null)},"java.awt.event.MouseEvent");e(c$,"mouseExited",function(a){this.mouseDragging&&this.ap.seqPanel.scrollCanvas(a)},"java.awt.event.MouseEvent");e(c$,"mouseClicked",function(){},"java.awt.event.MouseEvent");e(c$,"mouseMoved",function(a){if(this.av.hasHiddenColumns()){a=F(a.getX()/this.av.getCharWidth())+this.av.getStartRes();a=this.av.getColumnSelection().adjustForHiddenColumns(a);
3113 this.reveal=null;for(var b,c=this.av.getColumnSelection().getHiddenColumns().iterator();c.hasNext()&&((b=c.next())||1);)if(a+1==b[0]||a-1==b[1]){this.reveal=b;break}this.repaint()}},"java.awt.event.MouseEvent");e(c$,"paintComponent",function(a){this.av.getWrapAlignment()||this.drawScale(a,this.av.getStartRes(),this.av.getEndRes(),this.getSize().width,this.getSize().height)},"java.awt.Graphics");d(c$,"drawScale",function(a,b,c,d,e){a.setFont(this.av.getFont());a.setColor(java.awt.Color.white);a.fillRect(0,
3114 0,d,e);a.setColor(java.awt.Color.black);var k=this.av.getColumnSelection();a.setColor(new java.awt.Color(220,0,0));d=this.av.getCharWidth();e=this.av.getCharHeight();for(var g=0;g<k.size();g++){var h=k.columnAt(g);this.av.hasHiddenColumns()&&(h=this.av.getColumnSelection().findColumnPosition(h));h>=b&&h<=c&&a.fillRect((h-b)*d,0,d,this.getSize().height)}a.setColor(java.awt.Color.black);var k=10*F(b/10),j=a.getFontMetrics(this.av.getFont()),h=e-j.getDescent();0==k%10&&(k+=5);for(var n,m=0,g=k;g<c;g+=
3115 5)0==g%10?(n=String.valueOf(this.av.getColumnSelection().adjustForHiddenColumns(g)),(g-b-1)*d>m&&(awt2swing.Util.drawString(a,n,(g-b-1)*d,h),m=(g-b+1)*d+j.stringWidth(n)),a.drawLine((g-b-1)*d+F(d/2),h+2,(g-b-1)*d+F(d/2),h+2*j.getDescent())):a.drawLine((g-b-1)*d+F(d/2),h+j.getDescent(),(g-b-1)*d+F(d/2),h+2*j.getDescent());if(this.av.hasHiddenColumns()){a.setColor(java.awt.Color.blue);if(this.av.getShowHiddenMarkers())for(g=0;g<this.av.getColumnSelection().getHiddenColumns().size();g++)j=this.av.getColumnSelection().findHiddenRegionPosition(g)-
3116 b,0>j||j>c-k||a.fillPolygon(w(-1,[j*d-F(e/4),j*d+F(e/4),j*d]),w(-1,[h-F(e/2),h-F(e/2),h+8]),3);null!=this.reveal&&(this.reveal[0]>b&&this.reveal[0]<c)&&awt2swing.Util.drawString(a,jalview.util.MessageManager.getString("label.reveal_columns"),this.reveal[0]*d,0)}},"java.awt.Graphics,~N,~N,~N,~N");c$.$ScalePanel$1$=function(){A(self.c$);c$=L(jalview.appletgui,"ScalePanel$1",null,java.awt.event.ActionListener);e(c$,"actionPerformed",function(){this.b$["jalview.appletgui.ScalePanel"].av.showColumn(this.b$["jalview.appletgui.ScalePanel"].reveal[0]);
3117 this.b$["jalview.appletgui.ScalePanel"].reveal=null;this.b$["jalview.appletgui.ScalePanel"].ap.paintAlignment(!0);null!=this.b$["jalview.appletgui.ScalePanel"].ap.overviewPanel&&this.b$["jalview.appletgui.ScalePanel"].ap.overviewPanel.updateOverviewImage()},"java.awt.event.ActionEvent");c$=z()};c$.$ScalePanel$2$=function(){A(self.c$);c$=L(jalview.appletgui,"ScalePanel$2",null,java.awt.event.ActionListener);e(c$,"actionPerformed",function(){this.b$["jalview.appletgui.ScalePanel"].av.showAllHiddenColumns();
3118 this.b$["jalview.appletgui.ScalePanel"].reveal=null;this.b$["jalview.appletgui.ScalePanel"].ap.paintAlignment(!0);null!=this.b$["jalview.appletgui.ScalePanel"].ap.overviewPanel&&this.b$["jalview.appletgui.ScalePanel"].ap.overviewPanel.updateOverviewImage()},"java.awt.event.ActionEvent");c$=z()};c$.$ScalePanel$3$=function(){A(self.c$);c$=L(jalview.appletgui,"ScalePanel$3",null,java.awt.event.ActionListener);e(c$,"actionPerformed",function(){this.b$["jalview.appletgui.ScalePanel"].av.hideColumns(this.f$.res,
3119 this.f$.res);null!=this.b$["jalview.appletgui.ScalePanel"].av.getSelectionGroup()&&this.b$["jalview.appletgui.ScalePanel"].av.getSelectionGroup().getSize()==this.b$["jalview.appletgui.ScalePanel"].av.getAlignment().getHeight()&&this.b$["jalview.appletgui.ScalePanel"].av.setSelectionGroup(null);this.b$["jalview.appletgui.ScalePanel"].ap.paintAlignment(!0);null!=this.b$["jalview.appletgui.ScalePanel"].ap.overviewPanel&&this.b$["jalview.appletgui.ScalePanel"].ap.overviewPanel.updateOverviewImage()},
3120 "java.awt.event.ActionEvent");c$=z()}});p("jalview.appletgui");q("awt2swing.Panel jalview.structure.SelectionListener $.SequenceListener java.awt.event.MouseListener $.MouseMotionListener java.lang.Thread".split(" "),"jalview.appletgui.SeqPanel","jalview.api.AlignViewportI jalview.appletgui.APopupMenu $.AlignViewport $.PaintRefresher $.SeqCanvas $.SliderPanel $.Tooltip jalview.commands.EditCommand jalview.datamodel.ColumnSelection $.SearchResults $.SequenceGroup jalview.schemes.ResidueProperties jalview.structure.StructureSelectionManager jalview.util.Comparison $.MappingUtils $.MessageManager java.awt.BorderLayout $.Font java.lang.StringBuffer $.StringBuilder java.util.Vector".split(" "),
3121 function(){c$=s(function(){this.ap=this.seqCanvas=null;this.startseq=this.lastres=0;this.av=null;this.seqEditOccurred=!1;this.scrollThread=null;this.groupEditing=this.editingSeqs=this.mouseDragging=!1;this.oldSeq=-1;this.changeStartRes=this.changeEndRes=this.changeStartSeq=this.changeEndSeq=!1;this.keyboardNo2=this.keyboardNo1=this.stretchGroup=null;this.mouseWheelPressed=!1;this.ssm=this.editCommand=this.lastMousePress=null;this.wrappedBlock=this.startWrapBlock=-1;this.tooltip=this.lastMessage=null;
3122 H("jalview.appletgui.SeqPanel.ScrollThread")||jalview.appletgui.SeqPanel.$SeqPanel$ScrollThread$();r(this,arguments)},jalview.appletgui,"SeqPanel",awt2swing.Panel,[java.awt.event.MouseMotionListener,java.awt.event.MouseListener,jalview.structure.SequenceListener,jalview.structure.SelectionListener]);m(c$,function(a,b){t(this,jalview.appletgui.SeqPanel,[]);this.av=a;this.setName("seqPanel");this.seqCanvas=new jalview.appletgui.SeqCanvas(a);this.setLayout(new java.awt.BorderLayout);this.add(this.seqCanvas);
3123 this.ap=b;this.seqCanvas.addMouseMotionListener(this);this.seqCanvas.addMouseListener(this);this.ssm=jalview.structure.StructureSelectionManager.getStructureSelectionManager(this.av.applet);this.ssm.addStructureViewerListener(this);this.ssm.addSelectionListener(this);this.seqCanvas.repaint()},"jalview.appletgui.AlignViewport,jalview.appletgui.AlignmentPanel");d(c$,"endEditing",function(){null!=this.editCommand&&0<this.editCommand.getSize()&&(this.ap.alignFrame.addHistoryItem(this.editCommand),this.av.firePropertyChange("alignment",
3124 null,this.av.getAlignment().getSequences()));this.lastres=this.startseq=-1;this.groupEditing=this.editingSeqs=!1;this.editCommand=this.keyboardNo2=this.keyboardNo1=null});d(c$,"setCursorRow",function(){this.seqCanvas.cursorY=this.getKeyboardNo1()-1;this.scrollToVisible()});d(c$,"setCursorColumn",function(){this.seqCanvas.cursorX=this.getKeyboardNo1()-1;this.scrollToVisible()});d(c$,"setCursorRowAndColumn",function(){null==this.keyboardNo2?this.keyboardNo2=new StringBuffer:(this.seqCanvas.cursorX=
3125 this.getKeyboardNo1()-1,this.seqCanvas.cursorY=this.getKeyboardNo2()-1,this.scrollToVisible())});d(c$,"setCursorPosition",function(){var a=this.av.getAlignment().getSequenceAt(this.seqCanvas.cursorY);this.seqCanvas.cursorX=a.findIndex(this.getKeyboardNo1())-1;this.scrollToVisible()});d(c$,"moveCursor",function(a,b){this.seqCanvas.cursorX+=a;this.seqCanvas.cursorY+=b;if(this.av.hasHiddenColumns()&&!this.av.getColumnSelection().isVisible(this.seqCanvas.cursorX)){for(var c=this.seqCanvas.cursorX-a,d=
3126 this.av.getAlignment().getWidth();!this.av.getColumnSelection().isVisible(this.seqCanvas.cursorX)&&this.seqCanvas.cursorX<d&&0<this.seqCanvas.cursorX;)this.seqCanvas.cursorX+=a;if(this.seqCanvas.cursorX>=d||!this.av.getColumnSelection().isVisible(this.seqCanvas.cursorX))this.seqCanvas.cursorX=c}this.scrollToVisible()},"~N,~N");d(c$,"scrollToVisible",function(){0>this.seqCanvas.cursorX?this.seqCanvas.cursorX=0:this.seqCanvas.cursorX>this.av.getAlignment().getWidth()-1&&(this.seqCanvas.cursorX=this.av.getAlignment().getWidth()-
3127 1);0>this.seqCanvas.cursorY?this.seqCanvas.cursorY=0:this.seqCanvas.cursorY>this.av.getAlignment().getHeight()-1&&(this.seqCanvas.cursorY=this.av.getAlignment().getHeight()-1);this.endEditing();if(this.av.getWrapAlignment())this.ap.scrollToWrappedVisible(this.seqCanvas.cursorX);else{for(;this.seqCanvas.cursorY<this.av.startSeq;)this.ap.scrollUp(!0);for(;this.seqCanvas.cursorY+1>this.av.endSeq;)this.ap.scrollUp(!1);for(;this.seqCanvas.cursorX<this.av.getColumnSelection().adjustForHiddenColumns(this.av.startRes)&&
3128 this.ap.scrollRight(!1););for(;this.seqCanvas.cursorX>this.av.getColumnSelection().adjustForHiddenColumns(this.av.endRes)&&this.ap.scrollRight(!0););}this.setStatusMessage(this.av.getAlignment().getSequenceAt(this.seqCanvas.cursorY),this.seqCanvas.cursorX,this.seqCanvas.cursorY);this.seqCanvas.repaint()});d(c$,"setSelectionAreaAtCursor",function(a){var b=this.av.getAlignment().getSequenceAt(this.seqCanvas.cursorY);if(null!=this.av.getSelectionGroup()){for(var c=this.av.getSelectionGroup(),d=this.av.getAlignment().getHeight(),
3129 e=0,k=0;k<c.getSize();k++){var g=this.av.getAlignment().findIndex(c.getSequenceAt(k));g>e&&(e=g);g<d&&(d=g)}e++;a?(c.setStartRes(this.seqCanvas.cursorX),c.getEndRes()<this.seqCanvas.cursorX&&c.setEndRes(this.seqCanvas.cursorX),d=this.seqCanvas.cursorY):(c.setEndRes(this.seqCanvas.cursorX),c.getStartRes()>this.seqCanvas.cursorX&&c.setStartRes(this.seqCanvas.cursorX),e=this.seqCanvas.cursorY+1);if(d>e)this.av.setSelectionGroup(null);else{c.clear();for(k=d;k<e;k++)c.addSequence(this.av.getAlignment().getSequenceAt(k),
3130 !1)}}null==this.av.getSelectionGroup()&&(c=new jalview.datamodel.SequenceGroup,c.setStartRes(this.seqCanvas.cursorX),c.setEndRes(this.seqCanvas.cursorX),c.addSequence(b,!1),this.av.setSelectionGroup(c));this.ap.paintAlignment(!1);this.av.sendSelection()},"~B");d(c$,"insertGapAtCursor",function(a){this.groupEditing=a;this.startseq=this.seqCanvas.cursorY;this.lastres=this.seqCanvas.cursorX;this.editSequence(!0,this.seqCanvas.cursorX+this.getKeyboardNo1());this.endEditing()},"~B");d(c$,"deleteGapAtCursor",
3131 function(a){this.groupEditing=a;this.startseq=this.seqCanvas.cursorY;this.lastres=this.seqCanvas.cursorX+this.getKeyboardNo1();this.editSequence(!1,this.seqCanvas.cursorX);this.endEditing()},"~B");d(c$,"numberPressed",function(a){null==this.keyboardNo1&&(this.keyboardNo1=new StringBuffer);null!=this.keyboardNo2?this.keyboardNo2.append(a):this.keyboardNo1.append(a)},"~S");d(c$,"getKeyboardNo1",function(){try{if(null!=this.keyboardNo1){var a=Integer.parseInt(this.keyboardNo1.toString());this.keyboardNo1=
3132 null;return a}}catch(b){if(!y(b,Exception))throw b;}this.keyboardNo1=null;return 1});d(c$,"getKeyboardNo2",function(){try{if(null!=this.keyboardNo2){var a=Integer.parseInt(this.keyboardNo2.toString());this.keyboardNo2=null;return a}}catch(b){if(!y(b,Exception))throw b;}this.keyboardNo2=null;return 1});d(c$,"setStatusMessage",function(a,b,c){var d=new StringBuilder(32);d.append("Sequence"+(-1==c?"":" "+(c+1))+" ID: "+a.getName());c=null;c=String.valueOf(a.getCharAt(b));this.av.getAlignment().isNucleotide()?
3133 (c=jalview.schemes.ResidueProperties.nucleotideName.get(c),null!=c&&d.append(" Nucleotide: ").append(c)):(c="X".equalsIgnoreCase(c)?"X":jalview.schemes.ResidueProperties.aa2Triplet.get(c),null!=c&&d.append(" Residue: ").append(c));var e=-1;null!=c&&(e=a.findPosition(b),d.append(" (").append(Integer.toString(e)).append(")"));this.ap.alignFrame.setStatus(d.toString())},"jalview.datamodel.SequenceI,~N,~N");d(c$,"setStatusMessage",function(a){a=a.getResults();if(!a.isEmpty()){var b=a.get(0);a=b.getSequence();
3134 var c=this.av.getAlignment().findIndex(a),b=b.getStart()-1;this.setStatusMessage(a,b,c)}},"jalview.datamodel.SearchResults");e(c$,"mousePressed",function(a){this.lastMousePress=a.getPoint();if(8==(a.getModifiers()&8)&&!this.av.MAC)this.mouseWheelPressed=!0;else if(a.isShiftDown()||a.isControlDown()||a.isAltDown()){if(a.isControlDown()||a.isAltDown())this.groupEditing=!0;this.editingSeqs=!0;var b=this.findSeq(a);a=this.findRes(a);0>b||0>a||(b<this.av.getAlignment().getHeight()&&a<this.av.getAlignment().getSequenceAt(b).getLength()?
3135 (this.startseq=b,this.lastres=a):this.lastres=this.startseq=-1)}else this.doMousePressedDefineMode(a)},"java.awt.event.MouseEvent");e(c$,"mouseClicked",function(a){var b=this.av.getAlignment().getSequenceAt(this.findSeq(a));if(1<a.getClickCount()){null!=this.av.getSelectionGroup()&&(1==this.av.getSelectionGroup().getSize()&&2>this.av.getSelectionGroup().getEndRes()-this.av.getSelectionGroup().getStartRes())&&this.av.setSelectionGroup(null);a=this.findFeaturesAtRes(b,b.findPosition(this.findRes(a)));
3136 if(null!=a&&0<a.length){var c=new jalview.datamodel.SearchResults;c.addResult(b,a[0].getBegin(),a[0].getEnd());this.seqCanvas.highlightSearchResults(c)}null!=a&&0<a.length&&(this.seqCanvas.getFeatureRenderer().amendFeatures(E(-1,[b]),a,!1,this.ap),this.seqCanvas.highlightSearchResults(null))}},"java.awt.event.MouseEvent");e(c$,"mouseReleased",function(a){this.mouseWheelPressed=this.mouseDragging=!1;this.ap.paintAlignment(!0);this.editingSeqs?this.endEditing():this.doMouseReleasedDefineMode(a)},"java.awt.event.MouseEvent");
3137 d(c$,"findRes",function(a){var b=0,b=a.getX();if(this.av.getWrapAlignment()){var c=this.av.getCharHeight();this.av.getScaleAboveWrapped()&&(c+=this.av.getCharHeight());var d=this.av.getAlignment().getHeight()*this.av.getCharHeight()+c+this.seqCanvas.getAnnotationHeight();a=a.getY();a-=c;b-=this.seqCanvas.LABEL_WEST;c=this.seqCanvas.getWrappedCanvasWidth(this.getSize().width);if(1>c)return 0;this.wrappedBlock=F(a/d);this.wrappedBlock+=F(this.av.getStartRes()/c);b=this.wrappedBlock*c+F(b/this.av.getCharWidth())}else b=
3138 F(b/this.av.getCharWidth())+this.av.getStartRes();this.av.hasHiddenColumns()&&(b=this.av.getColumnSelection().adjustForHiddenColumns(b));return b},"java.awt.event.MouseEvent");d(c$,"findSeq",function(a){a=this.findAlRow(a);return 0>a?0:a},"java.awt.event.MouseEvent");d(c$,"findAlRow",function(a){var b=0;a=a.getY();if(this.av.getWrapAlignment()){b=this.av.getCharHeight();this.av.getScaleAboveWrapped()&&(b+=this.av.getCharHeight());var c=this.av.getAlignment().getHeight()*this.av.getCharHeight()+b+
3139 this.seqCanvas.getAnnotationHeight(),b=Math.min(F((a-b)%c/this.av.getCharHeight()),this.av.getAlignment().getHeight()-1)}else b=Math.min(F(a/this.av.getCharHeight())+this.av.getStartSeq(),this.av.getAlignment().getHeight()-1);0>b&&(b=-1);return b},"java.awt.event.MouseEvent");d(c$,"doMousePressed",function(a){var b=this.findSeq(a);a=this.findRes(a);b<this.av.getAlignment().getHeight()&&a<this.av.getAlignment().getSequenceAt(b).getLength()?(this.startseq=b,this.lastres=a):this.lastres=this.startseq=
3140 -1},"java.awt.event.MouseEvent");e(c$,"mouseOverSequence",function(a,b,c){var d=a.hashCode()+b+"";(null==this.lastMessage||!this.lastMessage.equals(d))&&this.ssm.mouseOverSequence(a,b,c,this.av);this.lastMessage=d},"jalview.datamodel.SequenceI,~N,~N");e(c$,"highlightSequence",function(a){this.av.isFollowHighlight()&&this.ap.scrollToPosition(a,!0)&&this.ap.alignFrame.repaint();this.setStatusMessage(a);this.seqCanvas.highlightSearchResults(a)},"jalview.datamodel.SearchResults");e(c$,"getVamsasSource",
3141 function(){return null==this.ap?null:this.ap.av});e(c$,"updateColours",function(){System.out.println("update the seqPanel colours")},"jalview.datamodel.SequenceI,~N");e(c$,"mouseMoved",function(a){var b=this.findRes(a),c=this.findSeq(a);if(c>=this.av.getAlignment().getHeight()||0>c||0>b)null!=this.tooltip&&this.tooltip.setTip("");else if(a=this.av.getAlignment().getSequenceAt(c),b>a.getLength())null!=this.tooltip&&this.tooltip.setTip("");else{var d=a.findPosition(b);null!=this.ssm&&this.mouseOverSequence(a,
3142 b,d);var e=new StringBuilder;e.append("Sequence ").append(Integer.toString(c+1)).append(" ID: ").append(a.getName());c=null;c=String.valueOf(a.getCharAt(b));this.av.getAlignment().isNucleotide()?(c=jalview.schemes.ResidueProperties.nucleotideName.get(c),null!=c&&e.append(" Nucleotide: ").append(c)):(c="X".equalsIgnoreCase(c)?"X":jalview.schemes.ResidueProperties.aa2Triplet.get(c),null!=c&&e.append(" Residue: ").append(c));null!=c&&e.append(" (").append(Integer.toString(d)).append(")");this.ap.alignFrame.setStatus(e.toString());
3143 d=new StringBuilder;e=this.av.getAlignment().findAllGroups(a);if(null!=e)for(c=0;c<e.length;c++)e[c].getStartRes()<=b&&e[c].getEndRes()>=b&&(!e[c].getName().startsWith("JTreeGroup")&&!e[c].getName().startsWith("JGroup")&&d.append(e[c].getName()).append(" "),null!=e[c].getDescription()&&d.append(e[c].getDescription()),d.append("\n"));b=this.findFeaturesAtRes(a,a.findPosition(b));for(a=0;a<b.length;)e=b[a],d.append(e.getType()+" "+e.begin+":"+e.end),null!=e.getDescription()&&d.append(" "+e.getDescription()),
3144 null!=e.getValue("status")&&0<e.getValue("status").toString().length&&d.append(" ("+e.getValue("status")+")"),d.append("\n"),a++;null==this.tooltip?this.tooltip=new jalview.appletgui.Tooltip(d.toString(),this.seqCanvas):this.tooltip.setTip(d.toString())}},"java.awt.event.MouseEvent");d(c$,"findFeaturesAtRes",function(a,b){var c=new java.util.Vector,d=a.getSequenceFeatures();if(null!=d)for(var e=0;e<d.length;e++)null!=this.av.getFeaturesDisplayed()&&this.av.getFeaturesDisplayed().isVisible(d[e].getType())&&
3145 (null==d[e].featureGroup||this.seqCanvas.fr.checkGroupVisibility(d[e].featureGroup,!1))&&d[e].getBegin()<=b&&d[e].getEnd()>=b&&c.addElement(d[e]);d=Array(c.size());c.copyInto(d);return d},"jalview.datamodel.SequenceI,~N");e(c$,"mouseDragged",function(a){if(this.mouseWheelPressed){var b=this.av.getCharWidth();if(Math.abs(a.getY()-this.lastMousePress.y)>Math.abs(a.getX()-this.lastMousePress.x)){var c=this.av.font.getSize();a.getY()<this.lastMousePress.y&&1<this.av.getCharHeight()?c--:a.getY()>this.lastMousePress.y&&
3146 c++;1>c&&(c=1);this.av.setFont(new java.awt.Font(this.av.font.getName(),this.av.font.getStyle(),c));this.av.setCharWidth(b)}else a.getX()<this.lastMousePress.x&&1<this.av.getCharWidth()?this.av.setCharWidth(this.av.getCharWidth()-1):a.getX()>this.lastMousePress.x&&this.av.setCharWidth(this.av.getCharWidth()+1),1>this.av.getCharWidth()&&this.av.setCharWidth(1);this.ap.fontChanged();b=this.getFontMetrics(this.av.getFont());this.av.validCharWidth=b.charWidth("M")<=this.av.getCharWidth();this.lastMousePress=
3147 a.getPoint();this.ap.paintAlignment(!1);this.ap.annotationPanel.image=null}else this.editingSeqs?(b=this.findRes(a),0>b&&(b=0),-1==this.lastres||this.lastres==b||(b<this.av.getAlignment().getWidth()&&b<this.lastres?this.editSequence(!1,b):this.editSequence(!0,b),this.mouseDragging=!0,null!=this.scrollThread&&this.scrollThread.setEvent(a))):this.doMouseDraggedDefineMode(a)},"java.awt.event.MouseEvent");d(c$,"editSequence",function(a,b){var c=-1,d=-1,e=!1,k=this.av.getSelectionGroup(),g=this.av.getAlignment().getSequenceAt(this.startseq);
3148 !this.groupEditing&&this.av.hasHiddenRows()&&this.av.isHiddenRepSequence(g)&&(k=this.av.getRepresentedSequences(g),this.groupEditing=!0);var h=new StringBuffer;if(this.groupEditing)h.append(jalview.util.MessageManager.getString("action.edit_group")).append(":"),null==this.editCommand&&(this.editCommand=new jalview.commands.EditCommand(jalview.util.MessageManager.getString("action.edit_group")));else{h.append(jalview.util.MessageManager.getString("label.edit_sequence")).append(" "+g.getName());var j=
3149 g.getName();10<j.length&&(j=j.substring(0,10));null==this.editCommand&&(this.editCommand=new jalview.commands.EditCommand(jalview.util.MessageManager.formatMessage("label.edit_params",E(-1,[j]))))}a?h.append(" insert "):h.append(" delete ");h.append(Math.abs(b-this.lastres)+" gaps.");this.ap.alignFrame.setStatus(h.toString());if(this.groupEditing||null!=k&&k.getSequences(this.av.getHiddenRepSequences()).contains(g)){e=!0;if(null==k){if(!this.av.isHiddenRepSequence(g)){this.endEditing();return}k=this.av.getRepresentedSequences(g)}c=
3150 k.getStartRes();d=k.getEndRes();if(b<c&&this.lastres>=c||b>=c&&this.lastres<c||b>d&&this.lastres<=d||b<=d&&this.lastres>d){this.endEditing();return}c>b?(d=c-1,c=0):d<b&&(c=d,d=-1)}if(this.av.hasHiddenColumns()){e=!0;h=this.av.getColumnSelection().getHiddenBoundaryLeft(b);j=this.av.getColumnSelection().getHiddenBoundaryRight(b);if(a&&b>h&&this.lastres<h||!a&&b<j&&this.lastres>j){this.endEditing();return}if(c<h&&(d>j||-1==d)&&!(b>=j))d=j-1}if(this.groupEditing){g=k.getSequences(this.av.getHiddenRepSequences()).toArray([]);
3151 if(a){0==k.getStartRes()&&(k.getEndRes()==d&&k.getEndRes()==this.av.getAlignment().getWidth()-1)&&(k.setEndRes(this.av.getAlignment().getWidth()+b-this.lastres),d=k.getEndRes());for(h=!1;d>this.lastres;d--){for(var h=!0,n,j=0,m=g;j<m.length&&((n=m[j])||1);j++)for(c=0;c<b-this.lastres;c++)if(!jalview.util.Comparison.isGap(n.getCharAt(d-c))){h=!1;break}if(h)break}if(!h)if(k.getSize()==this.av.getAlignment().getHeight()){if(this.av.hasHiddenColumns()&&b<this.av.getColumnSelection().getHiddenBoundaryRight(b)){this.endEditing();
3152 return}d=this.av.getAlignment().getWidth();this.av.hasHiddenRows()&&(n=this.av.getAlignment().getHiddenSequences().getWidth(),n>d&&(d=n));k.setEndRes(k.getEndRes()+b-this.lastres);d=d+b-this.lastres}else{this.endEditing();return}}else if(!a){j=0;for(m=g;j<m.length&&((n=m[j])||1);j++)for(c=b;c<this.lastres;c++)if(!(n.getLength()<=c)&&!jalview.util.Comparison.isGap(n.getCharAt(c))){this.endEditing();return}}if(a)if(e&&-1!=d)for(c=this.lastres;c<b;c++)this.insertChar(c,g,d);else this.editCommand.appendEdit(jalview.commands.EditCommand.Action.INSERT_GAP,
3153 g,b,b-this.lastres,this.av.getAlignment(),!0);else if(e&&-1!=d)for(c=this.lastres;c>b;c--)this.deleteChar(b,g,d);else this.editCommand.appendEdit(jalview.commands.EditCommand.Action.DELETE_GAP,g,b,this.lastres-b,this.av.getAlignment(),!0)}else if(a)if(e&&-1!=d)for(c=this.lastres;c<b;c++)this.insertChar(c,E(-1,[g]),d);else this.editCommand.appendEdit(jalview.commands.EditCommand.Action.INSERT_GAP,E(-1,[g]),this.lastres,b-this.lastres,this.av.getAlignment(),!0);else if(e&&-1!=d)for(c=this.lastres;c>
3154 b;c--){if(!jalview.util.Comparison.isGap(g.getCharAt(b))){this.endEditing();break}this.deleteChar(b,E(-1,[g]),d)}else{e=0;for(k=b;k<this.lastres&&jalview.util.Comparison.isGap(g.getCharAt(k));k++)e++;0<e&&this.editCommand.appendEdit(jalview.commands.EditCommand.Action.DELETE_GAP,E(-1,[g]),b,e,this.av.getAlignment(),!0)}this.lastres=b;this.seqCanvas.repaint()},"~B,~N");d(c$,"insertChar",function(a,b,c){for(var d=c,e=0;e<b.length;e++){for(d=c;d>a&&!jalview.util.Comparison.isGap(b[e].getCharAt(d));d--);
3155 if(d<=a){this.endEditing();return}}this.editCommand.appendEdit(jalview.commands.EditCommand.Action.DELETE_GAP,b,d,1,this.av.getAlignment(),!0);this.editCommand.appendEdit(jalview.commands.EditCommand.Action.INSERT_GAP,b,a,1,this.av.getAlignment(),!0)},"~N,~A,~N");d(c$,"deleteChar",function(a,b,c){this.editCommand.appendEdit(jalview.commands.EditCommand.Action.DELETE_GAP,b,a,1,this.av.getAlignment(),!0);this.editCommand.appendEdit(jalview.commands.EditCommand.Action.INSERT_GAP,b,c,1,this.av.getAlignment(),
3156 !0)},"~N,~A,~N");d(c$,"doMousePressedDefineMode",function(a){null!=this.scrollThread&&(this.scrollThread.running=!1,this.scrollThread=null);var b=this.findRes(a),c=this.findSeq(a);this.oldSeq=c;this.startWrapBlock=this.wrappedBlock;if(-1!=c){var d=this.av.getAlignment().getSequenceAt(c);if(!(null==d||b>d.getLength())){this.stretchGroup=this.av.getSelectionGroup();if(null==this.stretchGroup)this.stretchGroup=this.av.getAlignment().findGroup(d),null!=this.stretchGroup&&b>this.stretchGroup.getStartRes()&&
3157 b<this.stretchGroup.getEndRes()?this.av.setSelectionGroup(this.stretchGroup):this.stretchGroup=null;else if(!this.stretchGroup.getSequences(null).contains(d)||this.stretchGroup.getStartRes()>b||this.stretchGroup.getEndRes()<b){this.stretchGroup=null;var e=this.av.getAlignment().findAllGroups(d);if(null!=e)for(c=0;c<e.length;c++)if(e[c].getStartRes()<=b&&e[c].getEndRes()>=b){this.stretchGroup=e[c];break}this.av.setSelectionGroup(this.stretchGroup)}if(4==(a.getModifiers()&4)){b=this.findFeaturesAtRes(d,
3158 d.findPosition(b));d=null;if(null!=b)for(c=0;c<b.length;c++)if(null!=b[c].links){null==d&&(d=new java.util.Vector);for(e=0;e<b[c].links.size();e++)d.addElement(b[c].links.elementAt(e))}c=new jalview.appletgui.APopupMenu(this.ap,null,d);this.add(c);c.show(this,a.getX(),a.getY())}else this.av.cursorMode?(this.seqCanvas.cursorX=this.findRes(a),this.seqCanvas.cursorY=this.findSeq(a),this.seqCanvas.repaint()):null==this.stretchGroup&&(a=new jalview.datamodel.SequenceGroup,a.setStartRes(b),a.setEndRes(b),
3159 a.addSequence(d,!1),this.av.setSelectionGroup(a),this.stretchGroup=a,this.av.getConservationSelected()&&jalview.appletgui.SliderPanel.setConservationSlider(this.ap,this.av.getGlobalColourScheme(),"Background"),this.av.getAbovePIDThreshold()&&jalview.appletgui.SliderPanel.setPIDSliderSource(this.ap,this.av.getGlobalColourScheme(),"Background"))}}},"java.awt.event.MouseEvent");d(c$,"doMouseReleasedDefineMode",function(){null!=this.stretchGroup&&(this.stretchGroup.recalcConservation(),null!=this.stretchGroup.cs&&
3160 (this.stretchGroup.cs.alignmentChanged(this.stretchGroup,this.av.getHiddenRepSequences()),this.stretchGroup.cs.conservationApplied()?jalview.appletgui.SliderPanel.setConservationSlider(this.ap,this.stretchGroup.cs,this.stretchGroup.getName()):jalview.appletgui.SliderPanel.setPIDSliderSource(this.ap,this.stretchGroup.cs,this.stretchGroup.getName())),this.changeStartRes=this.changeEndRes=!1,this.stretchGroup=null,jalview.appletgui.PaintRefresher.Refresh(this.ap,this.av.getSequenceSetId()),this.ap.paintAlignment(!0),
3161 this.av.sendSelection())},"java.awt.event.MouseEvent");d(c$,"doMouseDraggedDefineMode",function(a){var b=this.findRes(a),c=this.findSeq(a);if(this.wrappedBlock==this.startWrapBlock&&null!=this.stretchGroup){this.mouseDragging=!0;c>this.av.getAlignment().getHeight()&&(c=this.av.getAlignment().getHeight()-1);b>=this.av.getAlignment().getWidth()&&(b=this.av.getAlignment().getWidth()-1);this.stretchGroup.getEndRes()==b?this.changeEndRes=!0:this.stretchGroup.getStartRes()==b&&(this.changeStartRes=!0);
3162 0>b&&(b=0);this.changeEndRes?b>this.stretchGroup.getStartRes()-1&&this.stretchGroup.setEndRes(b):this.changeStartRes&&b<this.stretchGroup.getEndRes()+1&&this.stretchGroup.setStartRes(b);var d=0;for(c>this.oldSeq?d=1:c<this.oldSeq&&(d=-1);c!=this.oldSeq&&-1<this.oldSeq&&c<this.av.getAlignment().getHeight();){var e=this.av.getAlignment().getSequenceAt(this.oldSeq);this.oldSeq+=d;if(0>this.oldSeq)break;var k=this.av.getAlignment().getSequenceAt(this.oldSeq);this.stretchGroup.getSequences(null).contains(k)?
3163 this.stretchGroup.deleteSequence(e,!1):(null!=e&&this.stretchGroup.addSequence(e,!1),this.stretchGroup.addSequence(k,!1))}0>this.oldSeq&&(this.oldSeq=-1);(b>this.av.endRes||b<this.av.startRes||c<this.av.startSeq||c>this.av.endSeq)&&this.mouseExited(a);null!=this.scrollThread&&this.scrollThread.setEvent(a);this.seqCanvas.repaint()}},"java.awt.event.MouseEvent");e(c$,"mouseEntered",function(){0>this.oldSeq&&(this.oldSeq=0);null!=this.scrollThread&&(this.scrollThread.running=!1,this.scrollThread=null)},
3164 "java.awt.event.MouseEvent");e(c$,"mouseExited",function(){!this.av.getWrapAlignment()&&(this.mouseDragging&&null==this.scrollThread)&&(this.scrollThread=C(jalview.appletgui.SeqPanel.ScrollThread,this,null))},"java.awt.event.MouseEvent");d(c$,"scrollCanvas",function(a){null==a?(null!=this.scrollThread&&(this.scrollThread.running=!1,this.scrollThread=null),this.mouseDragging=!1):(null==this.scrollThread&&(this.scrollThread=C(jalview.appletgui.SeqPanel.ScrollThread,this,null)),this.mouseDragging=!0,
3165 this.scrollThread.setEvent(a))},"java.awt.event.MouseEvent");e(c$,"selection",function(a,b,c){if(!(null!=this.av&&(this.av===c||!this.av.followSelection||v(c,jalview.appletgui.AlignViewport)&&c.getSequenceSetId().equals(this.av.getSequenceSetId())))&&!this.selectionFromTranslation(a,b,c)){var d=!1;c=!0;if(null==this.av.getSelectionGroup()||!this.av.isSelectionGroupChanged(!0)){d=null;if(null!=a&&0<a.getSize()){if(null==this.av.getAlignment()){System.out.println("Selection message: alignviewport av SeqSetId="+
3166 this.av.getSequenceSetId()+" ViewId="+this.av.getViewId()+" 's alignment is NULL! returning immediatly.");return}d=a.intersect(this.av.getAlignment(),this.av.hasHiddenRows()?this.av.getHiddenRepSequences():null);if((null==d||0==d.getSize())&&(null==b||0==b.size()))c=!1}null!=d&&0<d.getSize()?this.av.setSelectionGroup(d):this.av.setSelectionGroup(null);d=this.av.isSelectionGroupChanged(!0)}if(c&&(null==this.av.getColumnSelection()||!this.av.isColSelChanged(!0)))null==b||0==b.size()?null!=this.av.getColumnSelection()&&
3167 this.av.getColumnSelection().clear():null==this.av.getColumnSelection()?this.av.setColumnSelection(new jalview.datamodel.ColumnSelection(b)):this.av.getColumnSelection().setElementsFrom(b),d=(new Boolean(d|this.av.isColSelChanged(!0))).valueOf();c&&(this.av.hasHiddenColumns()&&(null==this.av.getColumnSelection()||null==this.av.getColumnSelection().getHiddenColumns()))&&System.err.println("Bad things");d&&(this.ap.scalePanelHolder.repaint(),this.ap.repaint())}},"jalview.datamodel.SequenceGroup,jalview.datamodel.ColumnSelection,jalview.structure.SelectionSource");
3168 d(c$,"scrollTo",function(a,b){a=0>a?this.ap.av.startSeq:a;b=0>b?this.ap.av.startRes:b;this.ap.scrollTo(b,b,a,!0,!0)},"~N,~N");d(c$,"scrollToRow",function(a){a=0>a?this.ap.av.startSeq:a;this.ap.scrollTo(this.ap.av.startRes,this.ap.av.startRes,a,!0,!0)},"~N");d(c$,"scrollToColumn",function(a){a=0>a?this.ap.av.startRes:a;this.ap.scrollTo(a,a,this.ap.av.startSeq,!0,!0)},"~N");d(c$,"selectionFromTranslation",function(a,b,c){if(!v(c,jalview.api.AlignViewportI)||c.getCodingComplement()!==this.av&&this.av.getCodingComplement()!==
3169 c)return!1;a=jalview.util.MappingUtils.mapSequenceGroup(a,c,this.av);this.av.setSelectionGroup(a);this.av.isSelectionGroupChanged(!0);b=jalview.util.MappingUtils.mapColumnSelection(b,c,this.av);this.av.setColumnSelection(b);this.av.isColSelChanged(!0);this.ap.scalePanelHolder.repaint();this.ap.repaint();return!0},"jalview.datamodel.SequenceGroup,jalview.datamodel.ColumnSelection,jalview.structure.SelectionSource");c$.$SeqPanel$ScrollThread$=function(){A(self.c$);c$=s(function(){O(this,arguments);
3170 this.evt=null;this.running=!1;r(this,arguments)},jalview.appletgui.SeqPanel,"ScrollThread",Thread);m(c$,function(){t(this,jalview.appletgui.SeqPanel.ScrollThread,[]);this.start()});d(c$,"setEvent",function(a){this.evt=a},"java.awt.event.MouseEvent");d(c$,"stopScrolling",function(){this.running=!1});e(c$,"run",function(){for(this.running=!0;this.running;){null!=this.evt&&(this.b$["jalview.appletgui.SeqPanel"].mouseDragging&&(0>this.evt.getY()&&0<this.b$["jalview.appletgui.SeqPanel"].av.getStartSeq())&&
3171 (this.running=this.b$["jalview.appletgui.SeqPanel"].ap.scrollUp(!0)),this.b$["jalview.appletgui.SeqPanel"].mouseDragging&&(this.evt.getY()>=this.b$["jalview.appletgui.SeqPanel"].getSize().height&&this.b$["jalview.appletgui.SeqPanel"].av.getAlignment().getHeight()>this.b$["jalview.appletgui.SeqPanel"].av.getEndSeq())&&(this.running=this.b$["jalview.appletgui.SeqPanel"].ap.scrollUp(!1)),this.b$["jalview.appletgui.SeqPanel"].mouseDragging&&0>this.evt.getX()?this.running=this.b$["jalview.appletgui.SeqPanel"].ap.scrollRight(!1):
3172 this.b$["jalview.appletgui.SeqPanel"].mouseDragging&&this.evt.getX()>=this.b$["jalview.appletgui.SeqPanel"].getSize().width&&(this.running=this.b$["jalview.appletgui.SeqPanel"].ap.scrollRight(!0)));try{Thread.sleep(75)}catch(a){if(!y(a,Exception))throw a;}}});c$=z()}});p("jalview.structure");M(jalview.structure,"SelectionListener");p("jalview.appletgui");q(["awt2swing.Panel"],"jalview.appletgui.SeqCanvas","awt2swing.Util jalview.appletgui.AnnotationPanel $.FeatureRenderer $.PaintRefresher $.SequenceRenderer jalview.util.Comparison java.awt.Color".split(" "),
3173 function(){c$=s(function(){this.gg=this.img=this.sr=this.fr=null;this.imgHeight=this.imgWidth=0;this.searchResults=this.av=null;this.$fastPaint=!1;this.LABEL_EAST=this.LABEL_WEST=this.lastsr=this.avcharWidth=this.avcharHeight=this.cursorY=this.cursorX=0;this.annotations=null;r(this,arguments)},jalview.appletgui,"SeqCanvas",awt2swing.Panel);m(c$,function(a){t(this,jalview.appletgui.SeqCanvas,[]);this.av=a;this.fr=new jalview.appletgui.FeatureRenderer(a);this.sr=new jalview.appletgui.SequenceRenderer(a);
3174 jalview.appletgui.PaintRefresher.Register(this,a.getSequenceSetId());this.updateViewport()},"jalview.appletgui.AlignViewport");d(c$,"updateViewport",function(){this.avcharHeight=this.av.getCharHeight();this.avcharWidth=this.av.getCharWidth()});d(c$,"getViewport",function(){return this.av});d(c$,"getFeatureRenderer",function(){return this.fr});d(c$,"getSequenceRenderer",function(){return this.sr});d(c$,"drawNorthScale",function(a,b,c,d){var e=b-b%10+10;for(a.setColor(java.awt.Color.black);e<c;e+=10){var k=
3175 e;this.av.hasHiddenColumns()&&(k=this.av.getColumnSelection().adjustForHiddenColumns(k));awt2swing.Util.drawString(a,String.valueOf(k),(e-b-1)*this.avcharWidth,d-F(this.avcharHeight/2));a.drawLine((e-b-1)*this.avcharWidth+F(this.avcharWidth/2),d+2-F(this.avcharHeight/2),(e-b-1)*this.avcharWidth+F(this.avcharWidth/2),d-2)}},"java.awt.Graphics,~N,~N,~N");d(c$,"drawWestScale",function(a,b,c,d){var e=this.getFontMetrics(this.av.getFont());d+=this.avcharHeight;this.av.hasHiddenColumns()&&(b=this.av.getColumnSelection().adjustForHiddenColumns(b),
3176 c=this.av.getColumnSelection().adjustForHiddenColumns(c));var k=this.av.getAlignment().getWidth();this.av.hasHiddenColumns()&&this.av.getColumnSelection().findColumnPosition(k);for(k=0;k<this.av.getAlignment().getHeight();k++){for(var g=this.av.getAlignment().getSequenceAt(k),h=b,j=-1;h<c;)if(jalview.util.Comparison.isGap(g.getCharAt(h)))h++;else{j=this.av.getAlignment().getSequenceAt(k).findPosition(h);break}-1!=j&&(g=this.LABEL_WEST-e.stringWidth(String.valueOf(j))-F(this.avcharWidth/2),awt2swing.Util.drawString(a,
3177 j+"",g,d+k*this.avcharHeight-F(this.avcharHeight/5)))}},"java.awt.Graphics,~N,~N,~N");d(c$,"drawEastScale",function(a,b,c,d){d+=this.avcharHeight;this.av.hasHiddenColumns()&&(c=this.av.getColumnSelection().adjustForHiddenColumns(c));for(var e,k=0;k<this.av.getAlignment().getHeight();k++){e=this.av.getAlignment().getSequenceAt(k);for(var g=c,h=-1;g>b;)if(jalview.util.Comparison.isGap(e.getCharAt(g)))g--;else{h=e.findPosition(g);break}-1!=h&&awt2swing.Util.drawString(a,String.valueOf(h),0,d+k*this.avcharHeight-
3178 F(this.avcharHeight/5))}},"java.awt.Graphics,~N,~N,~N");d(c$,"fastPaint",function(a,b){if(!(this.$fastPaint||null==this.gg)){this.updateViewport();this.lastsr+a!=this.av.startRes&&(a=this.av.startRes-this.lastsr);this.lastsr=this.av.startRes;this.$fastPaint=!0;this.gg.copyArea(a*this.avcharWidth,b*this.avcharHeight,this.imgWidth-a*this.avcharWidth,this.imgHeight-b*this.avcharHeight,-a*this.avcharWidth,-b*this.avcharHeight);var c=this.av.startRes,d=this.av.endRes,e=this.av.startSeq,k=this.av.endSeq,
3179 g=0,h=0;0<a?(g=(d-c-a)*this.avcharWidth,c=d-a):0>a?d=c-a:0<b?(e=k-b,e<this.av.startSeq?e=this.av.startSeq:h=this.imgHeight-b*this.avcharHeight):0>b&&(k=e-b,k>this.av.endSeq&&(k=this.av.endSeq));this.gg.translate(g,h);this.drawPanel(this.gg,c,d,e,k,0);this.gg.translate(-g,-h);this.repaint()}},"~N,~N");e(c$,"paintComponent",function(a){if(null!=this.img&&(this.$fastPaint||this.getSize().width!=a.getClipBounds().width||this.getSize().height!=a.getClipBounds().height))a.drawImage(this.img,0,0,this),this.$fastPaint=
3180 !1;else if(this.$fastPaint)a.drawImage(this.img,0,0,this),this.$fastPaint=!1;else if(this.updateViewport(),this.imgWidth=this.getSize().width,this.imgHeight=this.getSize().height,this.imgWidth-=this.imgWidth%this.avcharWidth,this.imgHeight-=this.imgHeight%this.avcharHeight,!(1>this.imgWidth||1>this.imgHeight)){if(null==this.img||this.imgWidth!=this.img.getWidth(this)||this.imgHeight!=this.img.getHeight(this))this.img=this.createImage(this.imgWidth,this.imgHeight),this.gg=this.img.getGraphics(),this.gg.setFont(this.av.getFont());
3181 this.gg.setColor(java.awt.Color.white);this.gg.fillRect(0,0,this.imgWidth,this.imgHeight);this.av.getWrapAlignment()?this.drawWrappedPanel(this.gg,this.imgWidth,this.imgHeight,this.av.startRes):this.drawPanel(this.gg,this.av.startRes,this.av.endRes,this.av.startSeq,this.av.endSeq,0);a.drawImage(this.img,0,0,this)}},"java.awt.Graphics");d(c$,"getWrappedCanvasWidth",function(a){a-=a%this.av.getCharWidth();var b=this.getFontMetrics(this.av.getFont());this.LABEL_WEST=this.LABEL_EAST=0;this.av.getScaleRightWrapped()&&
3182 (this.LABEL_EAST=b.stringWidth(this.getMask()));this.av.getScaleLeftWrapped()&&(this.LABEL_WEST=b.stringWidth(this.getMask()));return F((a-this.LABEL_EAST-this.LABEL_WEST)/this.av.getCharWidth())},"~N");d(c$,"getMask",function(){for(var a="0",b=0,c,d=this.av.getAlignment(),e=0;e<d.getHeight();e++)c=d.getSequenceAt(e).getEnd(),c>b&&(b=c);for(e=b;0<e;e/=10)a+="0";return a});d(c$,"drawWrappedPanel",function(a,b,c,d){var e=this.av.getAlignment(),k=this.getFontMetrics(this.av.getFont());this.av.getScaleRightWrapped()&&
3183 (this.LABEL_EAST=k.stringWidth(this.getMask()));this.av.getScaleLeftWrapped()&&(this.LABEL_WEST=k.stringWidth(this.getMask()));k=this.avcharHeight;this.av.getScaleAboveWrapped()&&(k+=this.avcharHeight);var g=F((b-this.LABEL_EAST-this.LABEL_WEST)/this.avcharWidth),h=this.av.getAlignment().getHeight()*this.avcharHeight;this.av.setWrappedWidth(g);this.av.endRes=this.av.startRes+g;var j,n=k,m=this.av.getAlignment().getWidth()-1;for(this.av.hasHiddenColumns()&&(m=this.av.getColumnSelection().findColumnPosition(m)-
3184 1);n<=c&&d<m;){j=d+g-1;j>m&&(j=m);a.setColor(java.awt.Color.black);this.av.getScaleLeftWrapped()&&this.drawWestScale(a,d,j,n);this.av.getScaleRightWrapped()&&(a.translate(b-this.LABEL_EAST,0),this.drawEastScale(a,d,j,n),a.translate(-(b-this.LABEL_EAST),0));a.translate(this.LABEL_WEST,0);this.av.getScaleAboveWrapped()&&this.drawNorthScale(a,d,j,n);if(this.av.hasHiddenColumns()&&this.av.getShowHiddenMarkers()){a.setColor(java.awt.Color.blue);for(var p,q=0;q<this.av.getColumnSelection().getHiddenColumns().size();q++)p=
3185 this.av.getColumnSelection().findHiddenRegionPosition(q)-d,0>p||p>j-d||this.gg.fillPolygon(w(-1,[p*this.avcharWidth-F(this.avcharHeight/4),p*this.avcharWidth+F(this.avcharHeight/4),p*this.avcharWidth]),w(-1,[n-F(this.avcharHeight/2),n-F(this.avcharHeight/2),n-F(this.avcharHeight/2)+8]),3)}null==a.getClip()&&a.setClip(0,0,g*this.avcharWidth,c);this.drawPanel(a,d,j,0,e.getHeight(),n);a.setClip(null);this.av.isShowAnnotation()&&(a.translate(0,h+n+4),null==this.annotations&&(this.annotations=new jalview.appletgui.AnnotationPanel(this.av)),
3186 this.annotations.drawComponent(a,d,j+1),a.translate(0,-h-n-4));a.translate(-this.LABEL_WEST,0);n+=h+this.getAnnotationHeight()+k;d+=g}},"java.awt.Graphics,~N,~N,~N");d(c$,"getAnnotationHeight",function(){if(!this.av.isShowAnnotation())return 0;null==this.annotations&&(this.annotations=new jalview.appletgui.AnnotationPanel(this.av));return this.annotations.adjustPanelHeight()});d(c$,"drawPanel",function(a,b,c,d,e,k){if(this.av.hasHiddenColumns()){var g=0,h=b,j=c;if(this.av.hasHiddenColumns())for(var n,
3187 m=this.av.getColumnSelection().getHiddenColumns().iterator();m.hasNext()&&((n=m.next())||1);){var j=n[0],p=n[1];j<=h?h+=p-j+1:(j-=1,a.translate(g*this.avcharWidth,0),this.draw(a,h,j,d,e,k),this.av.getShowHiddenMarkers()&&(a.setColor(java.awt.Color.blue),a.drawLine((j-h+1)*this.avcharWidth-1,0+k,(j-h+1)*this.avcharWidth-1,(e-d)*this.avcharHeight+k)),a.translate(-g*this.avcharWidth,0),g+=j-h+1,h=p+1)}g<=c-b&&(j=h+(c-b)-g,a.translate(g*this.avcharWidth,0),this.draw(a,h,j,d,e,k),a.translate(-g*this.avcharWidth,
3188 0))}else this.draw(a,b,c,d,e,k)},"java.awt.Graphics,~N,~N,~N,~N,~N");d(c$,"draw",function(a,b,c,d,e,k){a.setFont(this.av.getFont());this.sr.prepare(a,this.av.isRenderGaps());this.updateViewport();for(var g,h=d;h<e;h++)if(g=this.av.getAlignment().getSequenceAt(h),null!=g){this.sr.drawSequence(g,this.av.getAlignment().findAllGroups(g),b,c,k+(h-d)*this.avcharHeight);this.av.isShowSequenceFeatures()&&this.fr.drawSequence(a,g,b,c,k+(h-d)*this.avcharHeight);if(null!=this.searchResults){var j=this.searchResults.getResults(g,
3189 b,c);if(null!=j)for(var n=0;n<j.length;n+=2)this.sr.drawHighlightedText(g,j[n],j[n+1],(j[n]-b)*this.avcharWidth,k+(h-d)*this.avcharHeight)}this.av.cursorMode&&(this.cursorY==h&&this.cursorX>=b&&this.cursorX<=c)&&this.sr.drawCursor(g,this.cursorX,(this.cursorX-b)*this.avcharWidth,k+(h-d)*this.avcharHeight)}(null!=this.av.getSelectionGroup()||0<this.av.getAlignment().getGroups().size())&&this.drawGroupsBoundaries(a,b,c,d,e,k)},"java.awt.Graphics,~N,~N,~N,~N,~N");d(c$,"drawGroupsBoundaries",function(a,
3190 b,c,d,e,k){var g=this.av.getSelectionGroup(),h=-1,j=-1,n=-1,m=-1;null==g&&0<this.av.getAlignment().getGroups().size()&&(g=this.av.getAlignment().getGroups().get(0),m=0);if(null!=g){do{for(var p=-1,q=0,r=!1,s=-1,t=-1,v=this.av.getAlignment().getHeight()-1,q=d;q<e;q++)if(h=(g.getStartRes()-b)*this.avcharWidth,j=k+(q-d)*this.avcharHeight,n=(g.getEndRes()+1-g.getStartRes())*this.avcharWidth-1,!(0>h+n||h>this.imgWidth))if(h<=(c-b)*this.avcharWidth&&g.getSequences(null).contains(this.av.getAlignment().getSequenceAt(q))){if(-1==
3191 t&&(q>=v||!g.getSequences(null).contains(this.av.getAlignment().getSequenceAt(q+1))))t=j+this.avcharHeight;if(!r){if(-1==s&&0==q||!g.getSequences(null).contains(this.av.getAlignment().getSequenceAt(q-1)))s=j;p=j;r=!0;g===this.av.getSelectionGroup()?a.setColor(java.awt.Color.red):a.setColor(g.getOutlineColour())}}else r&&(0<=h&&h<this.imgWidth&&a.drawLine(h,p,h,j),h+n<this.imgWidth&&a.drawLine(h+n,p,h+n,j),0>h&&(n+=h,h=0),h+n>this.imgWidth?n=this.imgWidth:h+n>=(c-b+1)*this.avcharWidth&&(n=(c-b+1)*
3192 this.avcharWidth),-1!=s&&(a.drawLine(h,s,h+n,s),s=-1),-1!=t&&(a.drawLine(h,t,h+n,t),t=-1),r=!1);r&&(j=k+(q-d)*this.avcharHeight,0<=h&&h<this.imgWidth&&a.drawLine(h,p,h,j),h+n<this.imgWidth&&a.drawLine(h+n,p,h+n,j),0>h&&(n+=h,h=0),h+n>this.imgWidth?n=this.imgWidth:h+n>=(c-b+1)*this.avcharWidth&&(n=(c-b+1)*this.avcharWidth),-1!=s&&a.drawLine(h,s,h+n,s),-1!=t&&a.drawLine(h,t-1,h+n,t-1));m++;if(m>=this.av.getAlignment().getGroups().size())break;g=this.av.getAlignment().getGroups().get(m)}while(m<this.av.getAlignment().getGroups().size())
3193 }},"java.awt.Graphics,~N,~N,~N,~N,~N");d(c$,"highlightSearchResults",function(a){this.searchResults=a;this.repaint()},"jalview.datamodel.SearchResults")});p("jalview.appletgui");q(["jalview.api.SequenceRenderer"],"jalview.appletgui.SequenceRenderer",["awt2swing.Util","jalview.util.Comparison","java.awt.Color","$.Font"],function(){c$=s(function(){this.fm=this.av=null;this.renderGaps=!0;this.graphics=this.resBoxColour=this.allGroups=this.currentSequenceGroup=null;this.forOverview=!1;r(this,arguments)},
3194 jalview.appletgui,"SequenceRenderer",null,jalview.api.SequenceRenderer);m(c$,function(a){this.av=a},"jalview.appletgui.AlignViewport");d(c$,"prepare",function(a,b){this.graphics=a;this.fm=a.getFontMetrics();this.renderGaps=b},"java.awt.Graphics,~B");e(c$,"getResidueBoxColour",function(a,b){this.allGroups=this.av.getAlignment().findAllGroups(a);this.inCurrentSequenceGroup(b)?this.currentSequenceGroup.getDisplayBoxes()&&this.getBoxColour(this.currentSequenceGroup.cs,a,b):this.av.getShowBoxes()&&this.getBoxColour(this.av.getGlobalColourScheme(),
3195 a,b);return this.resBoxColour},"jalview.datamodel.SequenceI,~N");e(c$,"getResidueColour",function(a,b,c){var d=this.getResidueBoxColour(a,b);null!=c&&(d=c.findFeatureColour(d,a,b));return d},"jalview.datamodel.SequenceI,~N,jalview.api.FeatureRenderer");d(c$,"getBoxColour",function(a,b,c){this.resBoxColour=null!=a?a.findColourSeq(b.getCharAt(c),c,b):this.forOverview&&!jalview.util.Comparison.isGap(b.getCharAt(c))?java.awt.Color.lightGray:java.awt.Color.white},"jalview.schemes.ColourSchemeI,jalview.datamodel.SequenceI,~N");
3196 d(c$,"findSequenceColour",function(a,b){this.allGroups=this.av.getAlignment().findAllGroups(a);this.drawBoxes(a,b,b,0);return this.resBoxColour},"jalview.datamodel.SequenceI,~N");d(c$,"drawSequence",function(a,b,c,d,e){null!=a&&(this.allGroups=b,this.drawBoxes(a,c,d,e),this.av.validCharWidth&&this.drawText(a,c,d,e))},"jalview.datamodel.SequenceI,~A,~N,~N,~N");d(c$,"drawBoxes",function(a,b,c,d){for(var e=b,k=a.getLength(),g=-1,h=this.av.getCharWidth(),j=this.av.getCharWidth(),n=this.av.getCharHeight(),
3197 m=null;e<=c;)this.resBoxColour=java.awt.Color.white,e<k&&(this.inCurrentSequenceGroup(e)?this.currentSequenceGroup.getDisplayBoxes()&&this.getBoxColour(this.currentSequenceGroup.cs,a,e):this.av.getShowBoxes()&&this.getBoxColour(this.av.getGlobalColourScheme(),a,e)),this.resBoxColour!==m?(null!=m&&this.graphics.fillRect(j*(g-b),d,h,n),this.graphics.setColor(this.resBoxColour),g=e,h=j,m=this.resBoxColour):h+=j,e++;this.graphics.fillRect(j*(g-b),d,h,n)},"jalview.datamodel.SequenceI,~N,~N,~N");d(c$,"drawText",
3198 function(a,b,c,d){var e=this.av.getCharWidth(),k=this.av.getCharHeight(),g=null,h=!1;this.av.isUpperCasebold()&&(g=new java.awt.Font(this.av.getFont().getName(),1,k),this.graphics.setFont(this.av.getFont()));d+=k-F(k/5);k=0;c+1>=a.getLength()&&(c=a.getLength()-1);for(var j=" ",n=this.av.isDisplayReferenceSeq(),m=b;m<=c;m++)if(this.graphics.setColor(java.awt.Color.black),j=a.getCharAt(m),this.renderGaps||!jalview.util.Comparison.isGap(j)){if(this.inCurrentSequenceGroup(m)){if(!this.currentSequenceGroup.getDisplayText())continue;
3199 this.currentSequenceGroup.getColourText()&&(this.getBoxColour(this.currentSequenceGroup.cs,a,m),this.graphics.setColor(this.resBoxColour.darker()));this.currentSequenceGroup.getShowNonconserved()&&(j=this.getDisplayChar(n,m,j,"."))}else{if(!this.av.getShowText())continue;this.av.getColourText()&&(this.getBoxColour(this.av.getGlobalColourScheme(),a,m),this.av.getShowBoxes()?this.graphics.setColor(this.resBoxColour.darker()):this.graphics.setColor(this.resBoxColour));this.av.getShowUnconserved()&&(j=
3200 this.getDisplayChar(n,m,j,"."))}this.av.isUpperCasebold()&&(this.fm=this.graphics.getFontMetrics(),"A"<=j&&"Z">=j?(h||this.graphics.setFont(g),h=!0):h&&(this.graphics.setFont(this.av.font),h=!1));k=F((e-this.fm.charWidth(j))/2);awt2swing.Util.drawString(this.graphics,String.valueOf(j),k+e*(m-b),d)}},"jalview.datamodel.SequenceI,~N,~N,~N");d(c$,"getDisplayChar",function(a,b,c,d){a=a?this.av.getAlignment().getSeqrep().getCharAt(b):this.av.getAlignmentConsensusAnnotation().annotations[b].displayCharacter.charAt(0);
3201 "-"!=a&&c==a&&(c=d);return c},"~B,~N,~S,~S");d(c$,"inCurrentSequenceGroup",function(a){if(null==this.allGroups)return!1;for(var b=0;b<this.allGroups.length;b++)if(this.allGroups[b].getStartRes()<=a&&this.allGroups[b].getEndRes()>=a)return this.currentSequenceGroup=this.allGroups[b],!0;return!1},"~N");d(c$,"drawHighlightedText",function(a,b,c,d,e){var k=this.av.getCharWidth(),g=this.av.getCharHeight(),h=F(g/5),j=0;this.graphics.setColor(java.awt.Color.black);this.graphics.fillRect(d,e,k*(c-b+1),g);
3202 this.graphics.setColor(java.awt.Color.white);var n="~";if(this.av.validCharWidth)for(var m=b;m<=c;m++)m<a.getLength()&&(n=a.getCharAt(m)),j=F((k-this.fm.charWidth(n))/2),awt2swing.Util.drawString(this.graphics,String.valueOf(n),j+d+k*(m-b),e+g-h)},"jalview.datamodel.SequenceI,~N,~N,~N,~N");d(c$,"drawCursor",function(a,b,c,d){var e=F(this.av.getCharHeight()/5),k=0;this.graphics.setColor(java.awt.Color.black);this.graphics.fillRect(c,d,this.av.getCharWidth(),this.av.getCharHeight());this.graphics.setColor(java.awt.Color.white);
3203 this.graphics.setColor(java.awt.Color.white);a=a.getCharAt(b);this.av.validCharWidth&&(k=F((this.av.getCharWidth()-this.fm.charWidth(a))/2),awt2swing.Util.drawString(this.graphics,String.valueOf(a),k+c,d+this.av.getCharHeight()-e))},"jalview.datamodel.SequenceI,~N,~N,~N")});p("jalview.api");M(jalview.api,"SequenceRenderer");p("jalview.appletgui");q("awt2swing.Panel jalview.appletgui.AnnotationRowFilter $.TitledPanel java.awt.event.ActionListener $.AdjustmentListener $.ItemListener $.MouseListener awt2swing.Checkbox $.Choice $.TextField java.awt.BorderLayout $.CardLayout".split(" "),
3204 "jalview.appletgui.AnnotationColumnChooser","awt2swing.Frame jalview.bin.JalviewLite jalview.datamodel.ColumnSelection $.GraphLine jalview.util.MessageManager jalview.viewmodel.annotationfilter.AnnotationFilterParameter java.awt.Color $.Dimension java.awt.event.MouseAdapter $.TextListener java.lang.Float java.util.Vector javax.swing.JPanel".split(" "),function(){c$=s(function(){this.ngFurtherActionPanel=this.gFurtherActionPanel=this.currentFurtherActionPanel=this.ngSearchPanel=this.gSearchPanel=this.currentSearchPanel=
3205 this.currentStructureFilterPanel=this.ngStructureFilterPanel=this.gStructureFilterPanel=this.threshold=this.ngBorderLayout=this.gBorderLayout=this.borderLayout1=this.annotationComboBoxPanel=this.graphFilterView=this.noGraphFilterView=this.switchableViewsLayout=this.switchableViewsPanel=this.thresholdPanel=this.actionPanel=this.annotations=null;this.actionOption=1;this.oldColumnSelection=null;H("jalview.appletgui.AnnotationColumnChooser.FurtherActionPanel")||jalview.appletgui.AnnotationColumnChooser.$AnnotationColumnChooser$FurtherActionPanel$();
3206 H("jalview.appletgui.AnnotationColumnChooser.StructureFilterPanel")||jalview.appletgui.AnnotationColumnChooser.$AnnotationColumnChooser$StructureFilterPanel$();H("jalview.appletgui.AnnotationColumnChooser.SearchPanel")||jalview.appletgui.AnnotationColumnChooser.$AnnotationColumnChooser$SearchPanel$();r(this,arguments)},jalview.appletgui,"AnnotationColumnChooser",jalview.appletgui.AnnotationRowFilter,[java.awt.event.ActionListener,java.awt.event.AdjustmentListener,java.awt.event.ItemListener,java.awt.event.MouseListener]);
3207 J(c$,function(){this.annotations=new awt2swing.Choice;this.actionPanel=new awt2swing.Panel;this.thresholdPanel=new jalview.appletgui.TitledPanel;this.switchableViewsPanel=new awt2swing.Panel(new java.awt.CardLayout);this.switchableViewsLayout=this.switchableViewsPanel.getLayout();this.noGraphFilterView=new awt2swing.Panel;this.graphFilterView=new awt2swing.Panel;this.annotationComboBoxPanel=new awt2swing.Panel;this.borderLayout1=new java.awt.BorderLayout;this.gBorderLayout=new java.awt.BorderLayout;
3208 this.ngBorderLayout=new java.awt.BorderLayout;this.threshold=new awt2swing.Choice});m(c$,function(){t(this,jalview.appletgui.AnnotationColumnChooser,[]);try{this.jbInit()}catch(a){if(y(a,Exception))a.printStackTrace();else throw a;}});m(c$,function(a,b){t(this,jalview.appletgui.AnnotationColumnChooser,[a,b]);this.frame=new awt2swing.Frame;this.frame.add(this);jalview.bin.JalviewLite.addFrame(this.frame,jalview.util.MessageManager.getString("label.select_by_annotation"),520,215);this.slider.addAdjustmentListener(this);
3209 this.slider.addMouseListener(this);if(null!=a.getAlignment().getAlignmentAnnotation()){this.setOldColumnSelection(a.getColumnSelection());this.adjusting=!0;for(var c=new java.util.Vector,d=1,e=0;e<a.getAlignment().getAlignmentAnnotation().length;e++){var k=a.getAlignment().getAlignmentAnnotation()[e].label;c.contains(k)?c.addElement(k+"_"+d++):c.addElement(k)}for(e=0;e<c.size();e++)this.annotations.addItem(c.elementAt(e).toString());this.populateThresholdComboBox(this.threshold);null!=a.getAnnotationColumnSelectionState()&&
3210 (this.currentSearchPanel=a.getAnnotationColumnSelectionState().getCurrentSearchPanel(),this.currentStructureFilterPanel=a.getAnnotationColumnSelectionState().getCurrentStructureFilterPanel(),this.annotations.select(new Integer(a.getAnnotationColumnSelectionState().getAnnotations().getSelectedIndex())),this.threshold.select(new Integer(a.getAnnotationColumnSelectionState().getThreshold().getSelectedIndex())),this.actionOption=a.getAnnotationColumnSelectionState().getActionOption());try{this.jbInit()}catch(g){if(!y(g,
3211 Exception))throw g;}this.adjusting=!1;this.updateView();this.frame.invalidate();this.frame.pack()}},"jalview.appletgui.AlignViewport,jalview.appletgui.AlignmentPanel");d(c$,"jbInit",function(){this.ok.setLabel(jalview.util.MessageManager.getString("action.ok"));this.cancel.setLabel(jalview.util.MessageManager.getString("action.cancel"));this.thresholdValue.setEnabled(!1);this.thresholdValue.setColumns(7);this.ok.addActionListener(this);this.cancel.addActionListener(this);this.annotations.addItemListener(this);
3212 this.thresholdValue.addActionListener(this);this.threshold.addItemListener(this);this.slider.setBackground(java.awt.Color.white);this.slider.setEnabled(!1);this.slider.setPreferredSize(new java.awt.Dimension(100,32));this.thresholdPanel.setBackground(java.awt.Color.white);this.actionPanel.setBackground(java.awt.Color.white);this.graphFilterView.setLayout(this.gBorderLayout);this.graphFilterView.setBackground(java.awt.Color.white);this.noGraphFilterView.setLayout(this.ngBorderLayout);this.noGraphFilterView.setBackground(java.awt.Color.white);
3213 this.annotationComboBoxPanel.setBackground(java.awt.Color.white);this.gSearchPanel=C(jalview.appletgui.AnnotationColumnChooser.SearchPanel,this,null,this);this.ngSearchPanel=C(jalview.appletgui.AnnotationColumnChooser.SearchPanel,this,null,this);this.gFurtherActionPanel=C(jalview.appletgui.AnnotationColumnChooser.FurtherActionPanel,this,null,this);this.ngFurtherActionPanel=C(jalview.appletgui.AnnotationColumnChooser.FurtherActionPanel,this,null,this);this.gStructureFilterPanel=C(jalview.appletgui.AnnotationColumnChooser.StructureFilterPanel,
3214 this,null,this);this.ngStructureFilterPanel=C(jalview.appletgui.AnnotationColumnChooser.StructureFilterPanel,this,null,this);this.thresholdPanel.setTitle("Threshold Filter");this.thresholdPanel.add(this.getThreshold());this.thresholdPanel.add(this.slider);this.thresholdPanel.add(this.thresholdValue);this.actionPanel.add(this.ok);this.actionPanel.add(this.cancel);var a=new javax.swing.JPanel;a.setLayout(new java.awt.BorderLayout);a.setBackground(java.awt.Color.white);a.add(this.gSearchPanel,"North");
3215 a.add(this.gStructureFilterPanel,"South");this.graphFilterView.add(a,"North");this.graphFilterView.add(this.thresholdPanel,"Center");this.graphFilterView.add(this.gFurtherActionPanel,"South");this.noGraphFilterView.add(this.ngSearchPanel,"First");this.noGraphFilterView.add(this.ngStructureFilterPanel,"Center");this.noGraphFilterView.add(this.ngFurtherActionPanel,"Center");this.annotationComboBoxPanel.add(this.getAnnotations());this.switchableViewsPanel.add(this.noGraphFilterView,jalview.appletgui.AnnotationColumnChooser.NO_GRAPH_VIEW);
3216 this.switchableViewsPanel.add(this.graphFilterView,jalview.appletgui.AnnotationColumnChooser.GRAPH_VIEW);this.setLayout(this.borderLayout1);this.add(this.annotationComboBoxPanel,"First");this.add(this.switchableViewsPanel,"Center");this.add(this.actionPanel,"South");this.selectedAnnotationChanged();this.validate()});e(c$,"reset",function(){if(null!=this.getOldColumnSelection()){this.av.getColumnSelection().clear();if(null!=this.av.getAnnotationColumnSelectionState()){var a=this.av.getAnnotationColumnSelectionState().getOldColumnSelection();
3217 if(null!=a&&null!=a.getHiddenColumns()&&!a.getHiddenColumns().isEmpty())for(var b=a.getHiddenColumns().iterator();b.hasNext();){var c=b.next();this.av.hideColumns(c[0],c[1])}this.av.setColumnSelection(a)}this.ap.paintAlignment(!0)}});e(c$,"adjustmentValueChanged",function(){this.adjusting||(this.thresholdValue.setText(this.slider.getValue()/1E3+""),this.valueChanged(!this.sliderDragging))},"java.awt.event.AdjustmentEvent");d(c$,"addSliderMouseListeners",function(){this.slider.addMouseListener((H("jalview.appletgui.AnnotationColumnChooser$1")?
3218 0:jalview.appletgui.AnnotationColumnChooser.$AnnotationColumnChooser$1$(),C(jalview.appletgui.AnnotationColumnChooser$1,this,null)))});e(c$,"valueChanged",function(){this.slider.isEnabled()&&(this.getCurrentAnnotation().threshold.value=this.slider.getValue()/1E3,this.updateView(),this.ap.paintAlignment(!1))},"~B");d(c$,"getThreshold",function(){return this.threshold});d(c$,"setThreshold",function(a){this.threshold=a},"awt2swing.Choice");d(c$,"getAnnotations",function(){return this.annotations});d(c$,
3219 "setAnnotations",function(a){this.annotations=a},"awt2swing.Choice");e(c$,"updateView",function(){if(!this.adjusting){var a=new jalview.viewmodel.annotationfilter.AnnotationFilterParameter;this.setCurrentAnnotation(this.av.getAlignment().getAlignmentAnnotation()[this.getAnnotations().getSelectedIndex()]);var b=this.getSelectedThresholdItem(this.getThreshold().getSelectedIndex());this.slider.setEnabled(!0);this.thresholdValue.setEnabled(!0);-1==b?(this.slider.setEnabled(!1),this.thresholdValue.setEnabled(!1),
3220 this.thresholdValue.setText("")):-1!=b&&(null==this.getCurrentAnnotation().threshold&&this.getCurrentAnnotation().setThreshold(new jalview.datamodel.GraphLine((this.getCurrentAnnotation().graphMax-this.getCurrentAnnotation().graphMin)/2,"Threshold",java.awt.Color.black)),this.adjusting=!0,this.getCurrentAnnotation(),this.getCurrentAnnotation(),this.slider.setMinimum(I(1E3*this.getCurrentAnnotation().graphMin)),this.slider.setMaximum(I(1E3*this.getCurrentAnnotation().graphMax)),this.slider.setValue(I(1E3*
3221 this.getCurrentAnnotation().threshold.value)),this.thresholdValue.setText(this.getCurrentAnnotation().threshold.value+""),this.slider.setEnabled(!0),this.thresholdValue.setEnabled(!0),this.adjusting=!1,a.setThresholdType(jalview.viewmodel.annotationfilter.AnnotationFilterParameter.ThresholdType.NO_THRESHOLD),0!=this.getCurrentAnnotation().graph&&(a.setThresholdValue(this.getCurrentAnnotation().threshold.value),1==b?a.setThresholdType(jalview.viewmodel.annotationfilter.AnnotationFilterParameter.ThresholdType.ABOVE_THRESHOLD):
3222 0==b&&a.setThresholdType(jalview.viewmodel.annotationfilter.AnnotationFilterParameter.ThresholdType.BELOW_THRESHOLD)));null!=this.currentStructureFilterPanel&&(this.currentStructureFilterPanel.alphaHelix.getState()&&a.setFilterAlphaHelix(!0),this.currentStructureFilterPanel.betaStrand.getState()&&a.setFilterBetaSheet(!0),this.currentStructureFilterPanel.turn.getState()&&a.setFilterTurn(!0));null!=this.currentSearchPanel&&(this.currentSearchPanel.searchBox.getText().isEmpty()?(this.currentSearchPanel.description.setEnabled(!1),
3223 this.currentSearchPanel.displayName.setEnabled(!1)):(this.currentSearchPanel.description.setEnabled(!0),this.currentSearchPanel.displayName.setEnabled(!0),a.setRegexString(this.currentSearchPanel.searchBox.getText()),this.currentSearchPanel.displayName.getState()&&a.addRegexSearchField(jalview.viewmodel.annotationfilter.AnnotationFilterParameter.SearchableAnnotationField.DISPLAY_STRING),this.currentSearchPanel.description.getState()&&a.addRegexSearchField(jalview.viewmodel.annotationfilter.AnnotationFilterParameter.SearchableAnnotationField.DESCRIPTION)));
3224 this.av.getColumnSelection().filterAnnotations(this.getCurrentAnnotation().annotations,a);this.av.showAllHiddenColumns();this.getActionOption()==jalview.appletgui.AnnotationColumnChooser.ACTION_OPTION_HIDE&&this.av.hideSelectedColumns();this.av.setAnnotationColumnSelectionState(this);this.ap.paintAlignment(!0)}});d(c$,"getOldColumnSelection",function(){return this.oldColumnSelection});d(c$,"setOldColumnSelection",function(a){null!=a&&(this.oldColumnSelection=new jalview.datamodel.ColumnSelection(a))},
3225 "jalview.datamodel.ColumnSelection");d(c$,"getCurrentFutherActionPanel",function(){return this.currentFurtherActionPanel});d(c$,"setCurrentFutherActionPanel",function(a){this.currentFurtherActionPanel=a},"jalview.appletgui.AnnotationColumnChooser.FurtherActionPanel");d(c$,"getCurrentSearchPanel",function(){return this.currentSearchPanel});d(c$,"setCurrentSearchPanel",function(a){this.currentSearchPanel=a},"jalview.appletgui.AnnotationColumnChooser.SearchPanel");d(c$,"getActionOption",function(){return this.actionOption});
3226 d(c$,"setActionOption",function(a){this.actionOption=a},"~N");d(c$,"getCurrentStructureFilterPanel",function(){return this.currentStructureFilterPanel});d(c$,"setCurrentStructureFilterPanel",function(a){this.currentStructureFilterPanel=a},"jalview.appletgui.AnnotationColumnChooser.StructureFilterPanel");e(c$,"itemStateChanged",function(a){a.getSource()===this.annotations?this.selectedAnnotationChanged():a.getSource()===this.threshold&&this.threshold_actionPerformed(null)},"java.awt.event.ItemEvent");
3227 d(c$,"selectedAnnotationChanged",function(){var a=jalview.appletgui.AnnotationColumnChooser.NO_GRAPH_VIEW;0!=this.av.getAlignment().getAlignmentAnnotation()[this.getAnnotations().getSelectedIndex()].graph&&(a=jalview.appletgui.AnnotationColumnChooser.GRAPH_VIEW);this.gSearchPanel.syncState();this.gFurtherActionPanel.syncState();this.gStructureFilterPanel.syncState();this.ngSearchPanel.syncState();this.ngFurtherActionPanel.syncState();this.ngStructureFilterPanel.syncState();this.switchableViewsLayout.show(this.switchableViewsPanel,
3228 a);this.updateView()});e(c$,"actionPerformed",function(a){if(a.getSource()===this.thresholdValue)try{var b=(new Float(this.thresholdValue.getText())).floatValue();this.slider.setValue(I(1E3*b));this.adjustmentValueChanged(null)}catch(c){if(!y(c,NumberFormatException))throw c;}else a.getSource()===this.ok?this.ok_actionPerformed(null):a.getSource()===this.cancel?this.cancel_actionPerformed(null):a.getSource()===this.thresholdValue?this.thresholdValue_actionPerformed(null):this.updateView()},"java.awt.event.ActionEvent");
3229 e(c$,"mouseClicked",function(){},"java.awt.event.MouseEvent");e(c$,"mousePressed",function(a){a.getSource()===this.slider&&this.updateView()},"java.awt.event.MouseEvent");e(c$,"mouseReleased",function(a){a.getSource()===this.slider&&this.updateView()},"java.awt.event.MouseEvent");e(c$,"mouseEntered",function(a){a.getSource()===this.slider&&this.updateView()},"java.awt.event.MouseEvent");e(c$,"mouseExited",function(a){a.getSource()===this.slider&&this.updateView()},"java.awt.event.MouseEvent");c$.$AnnotationColumnChooser$FurtherActionPanel$=
3230 function(){A(self.c$);c$=s(function(){O(this,arguments);this.furtherAction=this.aColChooser=null;r(this,arguments)},jalview.appletgui.AnnotationColumnChooser,"FurtherActionPanel",awt2swing.Panel,java.awt.event.ItemListener);J(c$,function(){this.furtherAction=new awt2swing.Choice});m(c$,function(a){t(this,jalview.appletgui.AnnotationColumnChooser.FurtherActionPanel,[]);this.aColChooser=a;this.furtherAction.addItem("Select");this.furtherAction.addItem("Hide");this.furtherAction.addItemListener(this);
3231 this.syncState();this.add(this.furtherAction)},"jalview.appletgui.AnnotationColumnChooser");d(c$,"syncState",function(){this.aColChooser.getActionOption()==jalview.appletgui.AnnotationColumnChooser.ACTION_OPTION_HIDE?this.furtherAction.select("Hide"):this.furtherAction.select("Select")});e(c$,"itemStateChanged",function(){this.aColChooser.setCurrentFutherActionPanel(this);this.furtherAction.getSelectedItem().toString().equalsIgnoreCase("Select")?this.b$["jalview.appletgui.AnnotationColumnChooser"].setActionOption(1):
3232 this.b$["jalview.appletgui.AnnotationColumnChooser"].setActionOption(jalview.appletgui.AnnotationColumnChooser.ACTION_OPTION_HIDE);this.b$["jalview.appletgui.AnnotationColumnChooser"].updateView()},"java.awt.event.ItemEvent");c$=z()};c$.$AnnotationColumnChooser$StructureFilterPanel$=function(){A(self.c$);c$=s(function(){O(this,arguments);this.all=this.turn=this.betaStrand=this.alphaHelix=this.aColChooser=null;r(this,arguments)},jalview.appletgui.AnnotationColumnChooser,"StructureFilterPanel",jalview.appletgui.TitledPanel,
3233 java.awt.event.ItemListener);J(c$,function(){this.alphaHelix=new awt2swing.Checkbox;this.betaStrand=new awt2swing.Checkbox;this.turn=new awt2swing.Checkbox;this.all=new awt2swing.Checkbox});m(c$,function(a){t(this,jalview.appletgui.AnnotationColumnChooser.StructureFilterPanel,[]);this.aColChooser=a;this.alphaHelix.setLabel(jalview.util.MessageManager.getString("label.alpha_helix"));this.alphaHelix.setBackground(java.awt.Color.white);this.alphaHelix.addItemListener(this);this.betaStrand.setLabel(jalview.util.MessageManager.getString("label.beta_strand"));
3234 this.betaStrand.setBackground(java.awt.Color.white);this.betaStrand.addItemListener(this);this.turn.setLabel(jalview.util.MessageManager.getString("label.turn"));this.turn.setBackground(java.awt.Color.white);this.turn.addItemListener(this);this.all.setLabel(jalview.util.MessageManager.getString("label.select_all"));this.all.setBackground(java.awt.Color.white);this.all.addItemListener(this);this.setBackground(java.awt.Color.white);this.setTitle("Structure Filter");this.add(this.all);this.add(this.alphaHelix);
3235 this.add(this.betaStrand);this.add(this.turn)},"jalview.appletgui.AnnotationColumnChooser");d(c$,"alphaHelix_actionPerformed",function(){this.updateSelectAllState();this.aColChooser.setCurrentStructureFilterPanel(this);this.aColChooser.updateView()});d(c$,"betaStrand_actionPerformed",function(){this.updateSelectAllState();this.aColChooser.setCurrentStructureFilterPanel(this);this.aColChooser.updateView()});d(c$,"turn_actionPerformed",function(){this.updateSelectAllState();this.aColChooser.setCurrentStructureFilterPanel(this);
3236 this.aColChooser.updateView()});d(c$,"all_actionPerformed",function(){this.all.getState()?(this.alphaHelix.setState(!0),this.betaStrand.setState(!0),this.turn.setState(!0)):(this.alphaHelix.setState(!1),this.betaStrand.setState(!1),this.turn.setState(!1));this.aColChooser.setCurrentStructureFilterPanel(this);this.aColChooser.updateView()});d(c$,"updateSelectAllState",function(){this.alphaHelix.getState()&&this.betaStrand.getState()&&this.turn.getState()?this.all.setState(!0):this.all.setState(!1)});
3237 d(c$,"syncState",function(){var a=this.aColChooser.getCurrentStructureFilterPanel();null!=a&&(this.alphaHelix.setState(a.alphaHelix.getState()),this.betaStrand.setState(a.betaStrand.getState()),this.turn.setState(a.turn.getState()),a.all.getState()&&(this.all.setState(!0),this.alphaHelix.setState(!0),this.betaStrand.setState(!0),this.turn.setState(!0)))});e(c$,"itemStateChanged",function(a){a.getSource()===this.alphaHelix?this.alphaHelix_actionPerformed():a.getSource()===this.betaStrand?this.betaStrand_actionPerformed():
3238 a.getSource()===this.turn?this.turn_actionPerformed():a.getSource()===this.all&&this.all_actionPerformed()},"java.awt.event.ItemEvent");c$=z()};c$.$AnnotationColumnChooser$SearchPanel$=function(){A(self.c$);c$=s(function(){O(this,arguments);this.searchBox=this.description=this.displayName=this.aColChooser=null;r(this,arguments)},jalview.appletgui.AnnotationColumnChooser,"SearchPanel",jalview.appletgui.TitledPanel,java.awt.event.ItemListener);J(c$,function(){this.displayName=new awt2swing.Checkbox;
3239 this.description=new awt2swing.Checkbox;this.searchBox=new awt2swing.TextField(10)});m(c$,function(a){t(this,jalview.appletgui.AnnotationColumnChooser.SearchPanel,[]);this.aColChooser=a;this.searchBox.addTextListener((H("jalview.appletgui.AnnotationColumnChooser$SearchPanel$1")?0:jalview.appletgui.AnnotationColumnChooser.SearchPanel.$AnnotationColumnChooser$SearchPanel$1$(),C(jalview.appletgui.AnnotationColumnChooser$SearchPanel$1,this,null)));this.displayName.setLabel(jalview.util.MessageManager.getString("label.display_name"));
3240 this.displayName.setEnabled(!1);this.displayName.addItemListener(this);this.description.setLabel(jalview.util.MessageManager.getString("label.description"));this.description.setEnabled(!1);this.description.addItemListener(this);this.setTitle("Search Filter");this.syncState();this.add(this.searchBox);this.add(this.displayName);this.add(this.description)},"jalview.appletgui.AnnotationColumnChooser");d(c$,"displayNameCheckboxAction",function(){this.aColChooser.setCurrentSearchPanel(this);this.aColChooser.updateView()});
3241 d(c$,"discriptionCheckboxAction",function(){this.aColChooser.setCurrentSearchPanel(this);this.aColChooser.updateView()});d(c$,"searchStringAction",function(){this.aColChooser.setCurrentSearchPanel(this);this.aColChooser.updateView()});d(c$,"syncState",function(){var a=this.aColChooser.getCurrentSearchPanel();null!=a&&(this.description.setEnabled(a.description.isEnabled()),this.description.setState(a.description.getState()),this.displayName.setEnabled(a.displayName.isEnabled()),this.displayName.setState(a.displayName.getState()),
3242 this.searchBox.setText(a.searchBox.getText()))});e(c$,"itemStateChanged",function(a){a.getSource()===this.displayName?this.displayNameCheckboxAction():a.getSource()===this.description&&this.discriptionCheckboxAction()},"java.awt.event.ItemEvent");c$.$AnnotationColumnChooser$SearchPanel$1$=function(){A(self.c$);c$=L(jalview.appletgui,"AnnotationColumnChooser$SearchPanel$1",null,java.awt.event.TextListener);e(c$,"textValueChanged",function(){this.b$["jalview.appletgui.AnnotationColumnChooser.SearchPanel"].searchStringAction()},
3243 "java.awt.event.TextEvent");c$=z()};c$=z()};c$.$AnnotationColumnChooser$1$=function(){A(self.c$);c$=L(jalview.appletgui,"AnnotationColumnChooser$1",java.awt.event.MouseAdapter);d(c$,"mousePressed",function(a){this.b$["jalview.appletgui.AnnotationColumnChooser"].sliderDragging=!0;K(this,jalview.appletgui.AnnotationColumnChooser$1,"mousePressed",[a])},"java.awt.event.MouseEvent");d(c$,"mouseDragged",function(a){this.b$["jalview.appletgui.AnnotationColumnChooser"].sliderDragging=!0;K(this,jalview.appletgui.AnnotationColumnChooser$1,
3244 "mouseDragged",[a])},"java.awt.event.MouseEvent");e(c$,"mouseReleased",function(){this.b$["jalview.appletgui.AnnotationColumnChooser"].sliderDragging&&(this.b$["jalview.appletgui.AnnotationColumnChooser"].sliderDragging=!1,this.b$["jalview.appletgui.AnnotationColumnChooser"].valueChanged(!0));this.b$["jalview.appletgui.AnnotationColumnChooser"].ap.paintAlignment(!0)},"java.awt.event.MouseEvent");c$=z()};G(c$,"ACTION_OPTION_SELECT",1,"ACTION_OPTION_HIDE",2,"NO_GRAPH_VIEW","0","GRAPH_VIEW","1")});p("jalview.appletgui");
3245 q(["awt2swing.Panel","$.Button","$.Checkbox","$.Scrollbar","$.TextField"],"jalview.appletgui.AnnotationRowFilter",["jalview.util.MessageManager","java.lang.Float","java.util.Vector"],function(){c$=s(function(){this.annmap=this.ap=this.av=null;this.enableSeqAss=!1;this.currentAnnotation=null;this.adjusting=!1;this.cancel=this.ok=this.frame=this.thresholdValue=this.slider=this.thresholdIsMin=this.seqAssociated=this.maxColour=this.minColour=this.currentColours=null;this.sliderDragging=!1;r(this,arguments)},
3246 jalview.appletgui,"AnnotationRowFilter",awt2swing.Panel);J(c$,function(){this.currentColours=new awt2swing.Checkbox;this.minColour=new awt2swing.Panel;this.maxColour=new awt2swing.Panel;this.seqAssociated=new awt2swing.Checkbox;this.thresholdIsMin=new awt2swing.Checkbox;this.slider=new awt2swing.Scrollbar(0);this.thresholdValue=new awt2swing.TextField(20);this.ok=new awt2swing.Button;this.cancel=new awt2swing.Button});m(c$,function(a,b){t(this,jalview.appletgui.AnnotationRowFilter,[]);this.av=a;this.ap=
3247 b},"jalview.appletgui.AlignViewport,jalview.appletgui.AlignmentPanel");m(c$,function(){t(this,jalview.appletgui.AnnotationRowFilter,[])});d(c$,"getAnnotationItems",function(a){for(var b=new java.util.Vector,c=1,d=w(this.av.getAlignment().getAlignmentAnnotation().length,0),e=0;e<this.av.getAlignment().getAlignmentAnnotation().length;e++){if(null==this.av.getAlignment().getAlignmentAnnotation()[e].sequenceRef){if(a)continue}else this.enableSeqAss=!0;var k=this.av.getAlignment().getAlignmentAnnotation()[e].label;
3248 b.contains(k)?a||(d[b.size()]=e,b.add(k+"_"+c++)):(d[b.size()]=e,b.add(k))}this.annmap=w(b.size(),0);System.arraycopy(d,0,this.annmap,0,this.annmap.length);return b},"~B");d(c$,"getSelectedThresholdItem",function(a){var b=-1;1==a?b=1:2==a&&(b=0);return b},"~N");d(c$,"modelChanged",function(){this.seqAssociated.setEnabled(this.enableSeqAss)});d(c$,"ok_actionPerformed",function(){this.updateView();this.frame.setVisible(!1)},"java.awt.event.ActionEvent");d(c$,"cancel_actionPerformed",function(){this.reset();
3249 this.ap.paintAlignment(!0);this.frame.setVisible(!1)},"java.awt.event.ActionEvent");d(c$,"thresholdCheck_actionPerformed",function(){this.updateView()},"java.awt.event.ActionEvent");d(c$,"annotations_actionPerformed",function(){this.updateView()},"java.awt.event.ActionEvent");d(c$,"threshold_actionPerformed",function(){this.updateView()},"java.awt.event.ActionEvent");d(c$,"thresholdValue_actionPerformed",function(){try{var a=Float.parseFloat(this.thresholdValue.getText());this.slider.setValue(I(1E3*
3250 a));this.updateView()}catch(b){if(!y(b,NumberFormatException))throw b;}},"java.awt.event.ActionEvent");d(c$,"populateThresholdComboBox",function(a){a.addItem(jalview.util.MessageManager.getString("label.threshold_feature_no_thereshold"));a.addItem(jalview.util.MessageManager.getString("label.threshold_feature_above_thereshold"));a.addItem(jalview.util.MessageManager.getString("label.threshold_feature_below_thereshold"))},"awt2swing.Choice");d(c$,"getCurrentAnnotation",function(){return this.currentAnnotation});
3251 d(c$,"setCurrentAnnotation",function(a){this.currentAnnotation=a},"jalview.datamodel.AlignmentAnnotation")});p("jalview.appletgui");q(["awt2swing.Panel","java.awt.Insets"],"jalview.appletgui.TitledPanel",["awt2swing.Util"],function(){c$=s(function(){this.$insets=this.title=null;r(this,arguments)},jalview.appletgui,"TitledPanel",awt2swing.Panel);J(c$,function(){this.$insets=new java.awt.Insets(10,10,10,10)});m(c$,function(){this.construct("")});m(c$,function(a){t(this,jalview.appletgui.TitledPanel,
3252 []);this.setTitle(a)},"~S");d(c$,"getInsets",function(){return this.$insets});d(c$,"paintComponent",function(a){K(this,jalview.appletgui.TitledPanel,"paintComponent",[a]);a.setColor(this.getForeground());a.drawRect(5,5,this.getWidth()-10,this.getHeight()-10);var b=a.getFontMetrics().stringWidth(this.getTitle());a.setColor(this.getBackground());a.fillRect(10,0,b,10);a.setColor(this.getForeground());awt2swing.Util.drawString(a,this.getTitle(),10,10)},"java.awt.Graphics");d(c$,"getTitle",function(){return this.title});
3253 d(c$,"setTitle",function(a){this.title=a},"~S")});p("java.awt");q(["java.awt.LayoutManager2","java.io.ObjectStreamField","java.util.Hashtable","$.Vector"],"java.awt.CardLayout",["java.lang.IllegalArgumentException","java.awt.Dimension"],function(){c$=s(function(){this.vector=null;H("java.awt.CardLayout.Card")||java.awt.CardLayout.$CardLayout$Card$();this.vgap=this.hgap=this.currentCard=0;r(this,arguments)},java.awt,"CardLayout",null,[java.awt.LayoutManager2,java.io.Serializable]);J(c$,function(){this.vector=
3254 new java.util.Vector});m(c$,function(){this.construct(0,0)});m(c$,function(a,b){this.hgap=a;this.vgap=b},"~N,~N");d(c$,"getHgap",function(){return this.hgap});d(c$,"setHgap",function(a){this.hgap=a},"~N");d(c$,"getVgap",function(){return this.vgap});d(c$,"setVgap",function(a){this.vgap=a},"~N");d(c$,"addLayoutComponent",function(a,b){null==b&&(b="");if(v(b,String))this.addLayoutComponent(b,a);else throw new IllegalArgumentException("cannot add to layout: constraint must be a string");},"java.awt.Component,~O");
3255 d(c$,"addLayoutComponent",function(a,b){this.vector.isEmpty()||b.setVisible(!1);for(var c=0;c<this.vector.size();c++)if(this.vector.get(c).name.equals(a)){this.vector.get(c).comp=b;return}this.vector.add(C(java.awt.CardLayout.Card,this,null,a,b))},"~S,java.awt.Component");e(c$,"removeLayoutComponent",function(a){for(var b=0;b<this.vector.size();b++)if(this.vector.get(b).comp===a){a.isVisible()&&null!=a.getParent()&&this.next(a.getParent());this.vector.remove(b);this.currentCard>b&&this.currentCard--;
3256 break}},"java.awt.Component");e(c$,"preferredLayoutSize",function(a){for(var b=a.getInsets(),c=a.getComponentCount(),d=0,e=0,k=0;k<c;k++){var g=a.getComponent(k).getPreferredSize();g.width>d&&(d=g.width);g.height>e&&(e=g.height)}return new java.awt.Dimension(b.left+b.right+d+2*this.hgap,b.top+b.bottom+e+2*this.vgap)},"java.awt.Container");e(c$,"minimumLayoutSize",function(a){for(var b=a.getInsets(),c=a.getComponentCount(),d=0,e=0,k=0;k<c;k++){var g=a.getComponent(k).getMinimumSize();g.width>d&&(d=
3257 g.width);g.height>e&&(e=g.height)}return new java.awt.Dimension(b.left+b.right+d+2*this.hgap,b.top+b.bottom+e+2*this.vgap)},"java.awt.Container");e(c$,"maximumLayoutSize",function(){return new java.awt.Dimension(2147483647,2147483647)},"java.awt.Container");e(c$,"getLayoutAlignmentX",function(){return 0.5},"java.awt.Container");e(c$,"getLayoutAlignmentY",function(){return 0.5},"java.awt.Container");e(c$,"invalidateLayout",function(){},"java.awt.Container");e(c$,"layoutContainer",function(a){for(var b=
3258 a.getInsets(),c=a.getComponentCount(),d=null,e=!1,k=0;k<c;k++)d=a.getComponent(k),d.setBounds(this.hgap+b.left,this.vgap+b.top,a.width-(2*this.hgap+b.left+b.right),a.height-(2*this.vgap+b.top+b.bottom)),d.isVisible()&&(e=!0);!e&&0<c&&a.getComponent(0).setVisible(!0)},"java.awt.Container");d(c$,"checkLayout",function(a){if(a.getLayout()!==this)throw new IllegalArgumentException("wrong parent for CardLayout");},"java.awt.Container");d(c$,"first",function(a){this.checkLayout(a);for(var b=a.getComponentCount(),
3259 c=0;c<b;c++){var d=a.getComponent(c);if(d.isVisible()){d.setVisible(!1);break}}0<b&&(this.currentCard=0,a.getComponent(0).setVisible(!0),a.validate())},"java.awt.Container");d(c$,"next",function(a){this.checkLayout(a);for(var b=a.getComponentCount(),c=0;c<b;c++){var d=a.getComponent(c);if(d.isVisible()){d.setVisible(!1);this.currentCard=(c+1)%b;d=a.getComponent(this.currentCard);d.setVisible(!0);a.validate();return}}this.showDefaultComponent(a)},"java.awt.Container");d(c$,"previous",function(a){this.checkLayout(a);
3260 for(var b=a.getComponentCount(),c=0;c<b;c++){var d=a.getComponent(c);if(d.isVisible()){d.setVisible(!1);this.currentCard=0<c?c-1:b-1;d=a.getComponent(this.currentCard);d.setVisible(!0);a.validate();return}}this.showDefaultComponent(a)},"java.awt.Container");d(c$,"showDefaultComponent",function(a){0<a.getComponentCount()&&(this.currentCard=0,a.getComponent(0).setVisible(!0),a.validate())},"java.awt.Container");d(c$,"last",function(a){this.checkLayout(a);for(var b=a.getComponentCount(),c=0;c<b;c++){var d=
3261 a.getComponent(c);if(d.isVisible()){d.setVisible(!1);break}}0<b&&(this.currentCard=b-1,a.getComponent(this.currentCard).setVisible(!0),a.validate())},"java.awt.Container");d(c$,"show",function(a,b){this.checkLayout(a);for(var c=null,d=this.vector.size(),e=0;e<d;e++){var k=this.vector.get(e);if(k.name.equals(b)){c=k.comp;this.currentCard=e;break}}if(null!=c&&!c.isVisible()){d=a.getComponentCount();for(e=0;e<d;e++)if(k=a.getComponent(e),k.isVisible()){k.setVisible(!1);break}c.setVisible(!0);a.validate()}},
3262 "java.awt.Container,~S");e(c$,"toString",function(){return this.getClass().getName()+"[hgap="+this.hgap+",vgap="+this.vgap+"]"});c$.$CardLayout$Card$=function(){A(self.c$);c$=s(function(){O(this,arguments);this.comp=this.name=null;r(this,arguments)},java.awt.CardLayout,"Card",null,java.io.Serializable);m(c$,function(a,b){this.name=a;this.comp=b},"~S,java.awt.Component");c$=z()};c$.serialPersistentFields=c$.prototype.serialPersistentFields=E(-1,[new java.io.ObjectStreamField("tab",java.util.Hashtable),
3263 new java.io.ObjectStreamField("hgap",Integer.TYPE),new java.io.ObjectStreamField("vgap",Integer.TYPE),new java.io.ObjectStreamField("vector",java.util.Vector),new java.io.ObjectStreamField("currentCard",Integer.TYPE)])});q(null,"java.io.ObjectStreamField","java.lang.Boolean $.Byte $.Character $.Double $.Float $.Long $.NullPointerException $.Short java.util.Arrays".split(" "),function(){c$=s(function(){this.type=this.name=null;this.offset=0;this.typeString=null;this.isDeserialized=this.unshared=!1;
3264 r(this,arguments)},java.io,"ObjectStreamField",null,Comparable);m(c$,function(a,b){if(null==a||null==b)throw new NullPointerException;this.name=a;this.type=b},"~S,Class");m(c$,function(a,b,c){if(null==a||null==b)throw new NullPointerException;this.name=a;this.type=b;this.unshared=c},"~S,Class,~B");m(c$,function(a,b){if(null==b)throw new NullPointerException;this.name=b;this.typeString=a.$replace(".","/");this.isDeserialized=!0},"~S,~S");e(c$,"compareTo",function(a){var b=this.isPrimitive(),c=a.isPrimitive();
3265 return b!=c?b?-1:1:this.getName().compareTo(a.getName())},"~O");e(c$,"equals",function(a){return 0==this.compareTo(a)},"~O");e(c$,"hashCode",function(){return this.getName().hashCode()});d(c$,"getName",function(){return this.name});d(c$,"getOffset",function(){return this.offset});d(c$,"getTypeInternal",($fz=function(){return this.type},$fz.isPrivate=!0,$fz));d(c$,"getType",function(){var a=this.getTypeInternal();return this.isDeserialized&&!a.isPrimitive()?W._O:a});d(c$,"getTypeCode",function(){var a=
3266 this.getTypeInternal();return a===Integer.TYPE?"I":a===Byte.TYPE?"B":a===Character.TYPE?"C":a===Short.TYPE?"S":a===Boolean.TYPE?"Z":a===Long.TYPE?"J":a===Float.TYPE?"F":a===Double.TYPE?"D":a.isArray()?"[":"L"});d(c$,"getTypeString",function(){if(this.isPrimitive())return null;if(null==this.typeString){var a=this.getTypeInternal(),b=a.getName().$replace(".","/");this.typeString=(a.isArray()?b:"L"+b+";").intern()}return this.typeString});d(c$,"isPrimitive",function(){var a=this.getTypeInternal();return null!=
3267 a&&a.isPrimitive()});d(c$,"setOffset",function(a){this.offset=a},"~N");e(c$,"toString",function(){return this.getClass().getName()+"("+this.getName()+":"+this.getTypeInternal()+")"});c$.sortFields=d(c$,"sortFields",function(a){if(1<a.length){var b=(H("java.io.ObjectStreamField$1")?0:java.io.ObjectStreamField.$ObjectStreamField$1$(),C(java.io.ObjectStreamField$1,this,null));java.util.Arrays.sort(a,b)}},"~A");d(c$,"resolve",function(a){if(1==this.typeString.length)switch(this.typeString.charAt(0)){case "I":this.type=
3268 Integer.TYPE;return;case "B":this.type=Byte.TYPE;return;case "C":this.type=Character.TYPE;return;case "S":this.type=Short.TYPE;return;case "Z":this.type=Boolean.TYPE;return;case "J":this.type=Long.TYPE;return;case "F":this.type=Float.TYPE;return;case "D":this.type=Double.TYPE;return}var b=this.typeString.$replace("/",".");76==b.charAt(0).charCodeAt(0)&&(b=b.substring(1,b.length-1));try{this.type=W._4Name(b,!1,a)}catch(c){if(!v(c,ClassNotFoundException))throw c;}},"ClassLoader");d(c$,"isUnshared",
3269 function(){return this.unshared});c$.$ObjectStreamField$1$=function(){A(self.c$);c$=L(java.io,"ObjectStreamField$1",null,java.util.Comparator);e(c$,"compare",function(a,b){return a.compareTo(b)},"java.io.ObjectStreamField,java.io.ObjectStreamField");c$=z()}});p("jalview.appletgui");q("awt2swing.Panel java.awt.event.ActionListener awt2swing.Button $.Checkbox $.Label $.TextField java.awt.GridLayout".split(" "),"jalview.appletgui.Finder","awt2swing.Frame jalview.analysis.Finder jalview.bin.JalviewLite jalview.datamodel.SequenceFeature jalview.util.MessageManager java.awt.Font $.Rectangle java.awt.event.KeyAdapter $.WindowAdapter".split(" "),
3270 function(){c$=s(function(){this.searchResults=this.frame=this.ap=this.av=null;this.seqIndex=0;this.resIndex=-1;this.searchDescription=this.caseSensitive=this.createNewGroup=this.gridLayout1=this.actionsPanel=this.findNext=this.findAll=this.textfield=this.jLabel1=null;r(this,arguments)},jalview.appletgui,"Finder",awt2swing.Panel,java.awt.event.ActionListener);J(c$,function(){this.jLabel1=new awt2swing.Label;this.textfield=new awt2swing.TextField;this.findAll=new awt2swing.Button;this.findNext=new awt2swing.Button;
3271 this.actionsPanel=new awt2swing.Panel;this.gridLayout1=new java.awt.GridLayout;this.createNewGroup=new awt2swing.Button;this.caseSensitive=new awt2swing.Checkbox;this.searchDescription=new awt2swing.Checkbox});m(c$,function(a){t(this,jalview.appletgui.Finder,[]);try{this.jbInit()}catch(b){if(y(b,Exception))b.printStackTrace();else throw b;}this.av=a.av;this.ap=a;this.frame=new awt2swing.Frame;this.frame.add(this);jalview.bin.JalviewLite.addFrame(this.frame,jalview.util.MessageManager.getString("action.find"),
3272 340,120);this.frame.repaint();this.frame.addWindowListener((H("jalview.appletgui.Finder$1")?0:jalview.appletgui.Finder.$Finder$1$(),C(jalview.appletgui.Finder$1,this,T("ap",a))));this.textfield.requestFocus()},"jalview.appletgui.AlignmentPanel");e(c$,"actionPerformed",function(a){a.getSource()===this.textfield?this.doSearch(!1):a.getSource()===this.findNext?this.doSearch(!1):a.getSource()===this.findAll?(this.resIndex=-1,this.seqIndex=0,this.doSearch(!0)):a.getSource()===this.createNewGroup&&this.createNewGroup_actionPerformed()},
3273 "java.awt.event.ActionEvent");d(c$,"createNewGroup_actionPerformed",function(){for(var a=Array(this.searchResults.getSize()),b=Array(this.searchResults.getSize()),c=0;c<this.searchResults.getSize();c++)a[c]=this.searchResults.getResultSequence(c),b[c]=new jalview.datamodel.SequenceFeature(this.textfield.getText().trim(),"Search Results",null,this.searchResults.getResultStart(c),this.searchResults.getResultEnd(c),"Search Results");this.ap.seqPanel.seqCanvas.getFeatureRenderer().amendFeatures(a,b,!0,
3274 this.ap)&&(this.ap.alignFrame.sequenceFeatures.setState(!0),this.av.setShowSequenceFeatures(!0),this.ap.highlightSearchResults(null))});d(c$,"doSearch",function(a){null!=this.ap.av.applet.currentAlignFrame&&(this.ap=this.ap.av.applet.currentAlignFrame.alignPanel,this.av=this.ap.av);this.createNewGroup.setEnabled(!1);var b=new jalview.analysis.Finder(this.av.getAlignment(),this.av.getSelectionGroup(),this.seqIndex,this.resIndex);b.setCaseSensitive(this.caseSensitive.getState());b.setIncludeDescription(this.searchDescription.getState());
3275 b.setFindAll(a);var c=this.textfield.getText();b.find(c);this.seqIndex=b.getSeqIndex();this.resIndex=b.getResIndex();this.searchResults=b.getSearchResults();var b=b.getIdMatch(),d=!1;0<b.size()?(d=!0,this.ap.idPanel.highlightSearchResults(b)):this.ap.idPanel.highlightSearchResults(null);0<this.searchResults.getSize()?(d=!0,this.createNewGroup.setEnabled(!0)):this.searchResults=null;this.ap.highlightSearchResults(this.searchResults);d?a?(a=0<b.size()?""+b.size()+" IDs":"",0<b.size()&&(null!=this.searchResults&&
3276 0<this.searchResults.getSize())&&(a+=" and "),null!=this.searchResults&&(a+=this.searchResults.getSize()+" subsequence matches."),this.ap.alignFrame.setStatus(jalview.util.MessageManager.formatMessage("label.search_results",E(-1,[c,a])))):this.ap.alignFrame.setStatus(jalview.util.MessageManager.formatMessage("label.found_match_for",E(-1,[c]))):(this.ap.alignFrame.setStatus(jalview.util.MessageManager.getString("label.finished_searching")),this.resIndex=-1,this.seqIndex=0)},"~B");d(c$,"jbInit",function(){this.jLabel1.setFont(new java.awt.Font("Verdana",
3277 0,12));this.jLabel1.setText(jalview.util.MessageManager.getString("action.find"));this.jLabel1.setBounds(new java.awt.Rectangle(3,30,34,15));this.setLayout(null);this.textfield.setFont(new java.awt.Font("Verdana",0,10));this.textfield.setText("");this.textfield.setBounds(new java.awt.Rectangle(40,17,133,21));this.textfield.addKeyListener((H("jalview.appletgui.Finder$2")?0:jalview.appletgui.Finder.$Finder$2$(),C(jalview.appletgui.Finder$2,this,null)));this.textfield.addActionListener(this);this.findAll.setFont(new java.awt.Font("Verdana",
3278 0,10));this.findAll.setLabel(jalview.util.MessageManager.getString("action.find_all"));this.findAll.addActionListener(this);this.findNext.setEnabled(!1);this.findNext.setFont(new java.awt.Font("Verdana",0,10));this.findNext.setLabel(jalview.util.MessageManager.getString("action.find_next"));this.findNext.addActionListener(this);this.actionsPanel.setBounds(new java.awt.Rectangle(195,5,141,64));this.actionsPanel.setLayout(this.gridLayout1);this.gridLayout1.setHgap(0);this.gridLayout1.setRows(3);this.gridLayout1.setVgap(2);
3279 this.createNewGroup.setEnabled(!1);this.createNewGroup.setFont(new java.awt.Font("Verdana",0,10));this.createNewGroup.setLabel(jalview.util.MessageManager.getString("label.new_feature"));this.createNewGroup.addActionListener(this);this.caseSensitive.setLabel(jalview.util.MessageManager.getString("label.match_case"));this.caseSensitive.setBounds(new java.awt.Rectangle(30,39,126,23));this.searchDescription.setLabel(jalview.util.MessageManager.getString("label.include_description"));this.searchDescription.setBounds(new java.awt.Rectangle(30,
3280 59,170,23));this.actionsPanel.add(this.findNext,null);this.actionsPanel.add(this.findAll,null);this.actionsPanel.add(this.createNewGroup,null);this.add(this.caseSensitive);this.add(this.textfield,null);this.add(this.jLabel1,null);this.add(this.actionsPanel,null);this.add(this.searchDescription)});d(c$,"textfield_keyTyped",function(){this.findNext.setEnabled(!0)},"java.awt.event.KeyEvent");c$.$Finder$1$=function(){A(self.c$);c$=L(jalview.appletgui,"Finder$1",java.awt.event.WindowAdapter);e(c$,"windowClosing",
3281 function(){this.f$.ap.highlightSearchResults(null)},"java.awt.event.WindowEvent");c$=z()};c$.$Finder$2$=function(){A(self.c$);c$=L(jalview.appletgui,"Finder$2",java.awt.event.KeyAdapter);e(c$,"keyTyped",function(a){this.b$["jalview.appletgui.Finder"].textfield_keyTyped(a)},"java.awt.event.KeyEvent");c$=z()}});p("jalview.analysis");q(null,"jalview.analysis.Finder",["jalview.datamodel.SearchResults","jalview.jsdev.RegExp","jalview.util.Comparison","java.lang.StringBuffer","java.util.Vector"],function(){c$=
3282 s(function(){this.idMatch=this.selection=this.alignment=this.searchResults=null;this.findAll=this.includeDescription=this.caseSensitive=!1;this.regex=null;this.seqIndex=0;this.resIndex=-1;r(this,arguments)},jalview.analysis,"Finder");m(c$,function(a,b){this.alignment=a;this.selection=b},"jalview.datamodel.AlignmentI,jalview.datamodel.SequenceGroup");m(c$,function(a,b,c,d){this.construct(a,b);this.seqIndex=c;this.resIndex=d},"jalview.datamodel.AlignmentI,jalview.datamodel.SequenceGroup,~N,~N");d(c$,
3283 "find",function(a){var b=!1;this.caseSensitive||(a=a.toUpperCase());this.regex=jalview.jsdev.RegExp.newRegex([a]);this.regex.setIgnoreCase(!this.caseSensitive);this.searchResults=new jalview.datamodel.SearchResults;this.idMatch=new java.util.Vector;var c,d=null,e=!1,k=this.alignment.getHeight();if(null!=this.selection&&(1>this.selection.getSize()||2>this.selection.getEndRes()-this.selection.getStartRes()))this.selection=null;for(;!e&&this.seqIndex<k;)if(c=this.alignment.getSequenceAt(this.seqIndex),
3284 null!=this.selection&&0<this.selection.getSize()&&!this.selection.getSequences(null).contains(c))this.seqIndex++,this.resIndex=-1;else{if(0>this.resIndex){this.resIndex=0;try{var g=Integer.parseInt(a);if(c.getEnd()>=g&&(this.searchResults.addResult(c,g,g),b=!0,!this.findAll)){e=!0;break}}catch(h){if(!y(h,NumberFormatException))throw h;}if(this.regex.search(c.getName())&&(this.idMatch.addElement(c),b=!0,!this.findAll))break;if(this.isIncludeDescription()&&(null!=c.getDescription()&&this.regex.search(c.getDescription()))&&
3285 (this.idMatch.addElement(c),b=!0,!this.findAll))break}d=c.getSequenceAsString();null!=this.selection&&this.selection.getEndRes()<this.alignment.getWidth()-1&&(d=d.substring(0,this.selection.getEndRes()+1));for(var j=new StringBuffer,n=0,m=new java.util.Vector,p=0;p<d.length;p++)jalview.util.Comparison.isGap(d.charAt(p))?n++:(j.append(d.charAt(p)),m.addElement(new Integer(n)));d=j.toString();for(j=this.resIndex;j<d.length;j++)if(this.regex.searchFrom(d,j)){if(this.resIndex=this.regex.matchedFrom(),
3286 !(null!=this.selection&&0<this.selection.getSize()&&this.resIndex+Integer.parseInt(m.elementAt(this.resIndex).toString())<this.selection.getStartRes())){b=c.findPosition(this.resIndex+Integer.parseInt(m.elementAt(this.resIndex).toString()));j=c.findPosition(this.regex.matchedTo()-1+Integer.parseInt(m.elementAt(this.regex.matchedTo()-1).toString()));this.searchResults.addResult(c,b,j);b=!0;if(!this.findAll){e=!0;this.resIndex++;break}j=this.resIndex}}else break;e||(this.seqIndex++,this.resIndex=-1)}return b},
3287 "~S");d(c$,"getAlignment",function(){return this.alignment});d(c$,"setAlignment",function(a){this.alignment=a},"jalview.datamodel.AlignmentI");d(c$,"isCaseSensitive",function(){return this.caseSensitive});d(c$,"setCaseSensitive",function(a){this.caseSensitive=a},"~B");d(c$,"isFindAll",function(){return this.findAll});d(c$,"setFindAll",function(a){this.findAll=a},"~B");d(c$,"getSelection",function(){return this.selection});d(c$,"setSelection",function(a){this.selection=a},"jalview.datamodel.SequenceGroup");
3288 d(c$,"getIdMatch",function(){return this.idMatch});d(c$,"getRegex",function(){return this.regex});d(c$,"getSearchResults",function(){return this.searchResults});d(c$,"getResIndex",function(){return this.resIndex});d(c$,"setResIndex",function(a){this.resIndex=a},"~N");d(c$,"getSeqIndex",function(){return this.seqIndex});d(c$,"setSeqIndex",function(a){this.seqIndex=a},"~N");d(c$,"isIncludeDescription",function(){return this.includeDescription});d(c$,"setIncludeDescription",function(a){this.includeDescription=
3289 a},"~B")});p("java.awt.event");q(["java.awt.event.KeyListener"],"java.awt.event.KeyAdapter",null,function(){c$=B(java.awt.event,"KeyAdapter",null,java.awt.event.KeyListener);e(c$,"keyTyped",function(){},"java.awt.event.KeyEvent");e(c$,"keyPressed",function(){},"java.awt.event.KeyEvent");e(c$,"keyReleased",function(){},"java.awt.event.KeyEvent")});p("jalview.appletgui");q("awt2swing.Panel java.awt.event.ItemListener awt2swing.Button $.Checkbox $.Choice java.awt.Font".split(" "),"jalview.appletgui.FontChooser",
3290 "awt2swing.Frame $.Label jalview.appletgui.JVDialog jalview.bin.JalviewLite jalview.util.MessageManager java.awt.BorderLayout $.Color $.FlowLayout $.Toolkit java.awt.event.ActionListener".split(" "),function(){c$=s(function(){this.oldFont=this.tp=this.ap=this.cancel=this.ok=this.scaleAsCdna=this.fontName=this.fontStyle=this.fontSize=null;this.oldCharWidth=0;this.oldScaleProtein=!1;this.lastSelected=null;this.lastSelSize=this.lastSelStyle=0;this.$init=!0;this.frame=null;r(this,arguments)},jalview.appletgui,
3291 "FontChooser",awt2swing.Panel,java.awt.event.ItemListener);J(c$,function(){this.fontSize=new awt2swing.Choice;this.fontStyle=new awt2swing.Choice;this.fontName=new awt2swing.Choice;this.scaleAsCdna=new awt2swing.Checkbox;this.ok=new awt2swing.Button;this.cancel=new awt2swing.Button});m(c$,function(a){t(this,jalview.appletgui.FontChooser,[]);try{this.jbInit()}catch(b){if(y(b,Exception))b.printStackTrace();else throw b;}this.tp=a;this.oldFont=a.getTreeFont();this.init()},"jalview.appletgui.TreePanel");
3292 m(c$,function(a){t(this,jalview.appletgui.FontChooser,[]);this.ap=a;this.oldFont=a.av.getFont();this.oldCharWidth=a.av.getViewStyle().getCharWidth();this.oldScaleProtein=a.av.getViewStyle().isScaleProteinAsCdna();try{this.jbInit()}catch(b){if(y(b,Exception))b.printStackTrace();else throw b;}this.init()},"jalview.appletgui.AlignmentPanel");d(c$,"init",function(){for(var a=java.awt.Toolkit.getDefaultToolkit().getFontList(),b=0;b<a.length;b++)this.fontName.addItem(a[b]);for(b=1;31>b;b++)this.fontSize.addItem(b+
3293 "");this.fontStyle.addItem("plain");this.fontStyle.addItem("bold");this.fontStyle.addItem("italic");this.fontName.select(this.oldFont.getName());this.fontSize.select(this.oldFont.getSize()+"");this.fontStyle.select(new Integer(this.oldFont.getStyle()));this.frame=new awt2swing.Frame;this.frame.add(this);jalview.bin.JalviewLite.addFrame(this.frame,jalview.util.MessageManager.getString("action.change_font"),440,115);this.$init=!1});e(c$,"itemStateChanged",function(a){a=a.getSource();a===this.fontName?
3294 this.fontName_actionPerformed():a===this.fontSize?this.fontSize_actionPerformed():a===this.fontStyle?this.fontStyle_actionPerformed():a===this.scaleAsCdna&&this.scaleAsCdna_actionPerformed()},"java.awt.event.ItemEvent");d(c$,"ok_actionPerformed",function(){this.frame.setVisible(!1);null!=this.ap&&null!=this.ap.getOverviewPanel()&&this.ap.getOverviewPanel().updateOverviewImage()});d(c$,"cancel_actionPerformed",function(){if(null!=this.ap){this.ap.av.setScaleProteinAsCdna(this.oldScaleProtein);null!=
3295 this.ap.av.getCodingComplement()&&(this.ap.av.getCodingComplement().setScaleProteinAsCdna(this.oldScaleProtein),this.ap.alignFrame.getSplitFrame().repaint());this.ap.av.setFont(this.oldFont);var a=this.ap.av.getViewStyle();a.getCharWidth()!=this.oldCharWidth&&(a.setCharWidth(this.oldCharWidth),this.ap.av.setViewStyle(a));this.ap.paintAlignment(!0)}else null!=this.tp&&(this.tp.setTreeFont(this.oldFont),this.tp.treeCanvas.repaint());this.fontName.select(this.oldFont.getName());this.fontSize.select(this.oldFont.getSize()+
3296 "");this.fontStyle.select(new Integer(this.oldFont.getStyle()));this.frame.setVisible(!1)});d(c$,"changeFont",function(){null==this.lastSelected&&(this.lastSelected=this.oldFont,this.lastSelSize=this.oldFont.getSize(),this.lastSelStyle=this.oldFont.getStyle());var a=new java.awt.Font(this.fontName.getSelectedItem().toString(),this.fontStyle.getSelectedIndex(),Integer.parseInt(this.fontSize.getSelectedItem().toString())),b=this.getGraphics().getFontMetrics(a),c=b.getStringBounds("M",this.getGraphics()).getWidth(),
3297 b=b.getStringBounds("I",this.getGraphics()).getWidth();1>c||1>b?(this.fontName.select(this.lastSelected.getName()),this.fontStyle.select(new Integer(this.lastSelStyle)),this.fontSize.select(""+this.lastSelSize),a=new jalview.appletgui.JVDialog(this.frame,jalview.util.MessageManager.getString("label.invalid_font"),!0,350,200),c=new awt2swing.Panel,a.cancel.setVisible(!1),c.setLayout(new java.awt.FlowLayout),c.add(new awt2swing.Label("Font doesn't have letters defined\nso cannot be used\nwith alignment data.")),
3298 a.setMainPanel(c),a.setVisible(!0)):(null!=this.tp?this.tp.setTreeFont(a):null!=this.ap&&(this.ap.av.setFont(a),this.ap.fontChanged()),this.lastSelected=a)});d(c$,"fontName_actionPerformed",function(){this.$init||this.changeFont()});d(c$,"fontSize_actionPerformed",function(){this.$init||this.changeFont()});d(c$,"fontStyle_actionPerformed",function(){this.$init||this.changeFont()});d(c$,"jbInit",function(){this.setLayout(new java.awt.BorderLayout);this.setBackground(java.awt.Color.white);var a=new awt2swing.Label(jalview.util.MessageManager.getString("label.font"));
3299 a.setFont(jalview.appletgui.FontChooser.VERDANA_11PT);a.setAlignment(4);this.fontSize.setFont(jalview.appletgui.FontChooser.VERDANA_11PT);this.fontSize.addItemListener(this);this.fontStyle.setFont(jalview.appletgui.FontChooser.VERDANA_11PT);this.fontStyle.addItemListener(this);var b=new awt2swing.Label(jalview.util.MessageManager.getString("label.size"));b.setAlignment(4);b.setFont(jalview.appletgui.FontChooser.VERDANA_11PT);var c=new awt2swing.Label(jalview.util.MessageManager.getString("label.style"));
3300 c.setAlignment(4);c.setFont(jalview.appletgui.FontChooser.VERDANA_11PT);this.fontName.setFont(jalview.appletgui.FontChooser.VERDANA_11PT);this.fontName.addItemListener(this);this.scaleAsCdna.setLabel(jalview.util.MessageManager.getString("label.scale_as_cdna"));this.scaleAsCdna.setFont(jalview.appletgui.FontChooser.VERDANA_11PT);this.scaleAsCdna.addItemListener(this);this.scaleAsCdna.setState(this.ap.av.isScaleProteinAsCdna());this.ok.setFont(jalview.appletgui.FontChooser.VERDANA_11PT);this.ok.setLabel(jalview.util.MessageManager.getString("action.ok"));
3301 this.ok.addActionListener((H("jalview.appletgui.FontChooser$1")?0:jalview.appletgui.FontChooser.$FontChooser$1$(),C(jalview.appletgui.FontChooser$1,this,null)));this.cancel.setFont(jalview.appletgui.FontChooser.VERDANA_11PT);this.cancel.setLabel(jalview.util.MessageManager.getString("action.cancel"));this.cancel.addActionListener((H("jalview.appletgui.FontChooser$2")?0:jalview.appletgui.FontChooser.$FontChooser$2$(),C(jalview.appletgui.FontChooser$2,this,null)));var d=new awt2swing.Panel;d.setLayout(new java.awt.BorderLayout);
3302 var e=new awt2swing.Panel;e.setLayout(new java.awt.BorderLayout);var k=new awt2swing.Panel;k.setLayout(new java.awt.BorderLayout);var g=new awt2swing.Panel;g.setLayout(new java.awt.BorderLayout);var h=new awt2swing.Panel,j=new awt2swing.Panel;d.setBackground(java.awt.Color.white);e.setBackground(java.awt.Color.white);k.setBackground(java.awt.Color.white);h.setBackground(java.awt.Color.white);j.setBackground(java.awt.Color.white);d.add(a,"West");d.add(this.fontName,"Center");e.add(c,"West");e.add(this.fontStyle,
3303 "Center");k.add(b,"West");k.add(this.fontSize,"Center");g.add(this.scaleAsCdna,"Center");h.add(this.ok,null);h.add(this.cancel,null);j.add(d,null);j.add(k,null);j.add(e,null);this.add(j,"North");null!=this.ap.alignFrame.getSplitFrame()&&this.add(g,"Center");this.add(h,"South")});d(c$,"scaleAsCdna_actionPerformed",function(){this.ap.av.setScaleProteinAsCdna(this.scaleAsCdna.getState());this.ap.av.getCodingComplement().setScaleProteinAsCdna(this.scaleAsCdna.getState());this.ap.alignFrame.getSplitFrame().adjustLayout();
3304 this.ap.paintAlignment(!0);this.ap.alignFrame.getSplitFrame().repaint()});c$.$FontChooser$1$=function(){A(self.c$);c$=L(jalview.appletgui,"FontChooser$1",null,java.awt.event.ActionListener);e(c$,"actionPerformed",function(){this.b$["jalview.appletgui.FontChooser"].ok_actionPerformed()},"java.awt.event.ActionEvent");c$=z()};c$.$FontChooser$2$=function(){A(self.c$);c$=L(jalview.appletgui,"FontChooser$2",null,java.awt.event.ActionListener);e(c$,"actionPerformed",function(){this.b$["jalview.appletgui.FontChooser"].cancel_actionPerformed()},
3305 "java.awt.event.ActionEvent");c$=z()};c$.VERDANA_11PT=c$.prototype.VERDANA_11PT=new java.awt.Font("Verdana",0,11)});p("jalview.appletgui");q(["awt2swing.Panel","java.awt.event.MouseListener","$.MouseMotionListener"],"jalview.appletgui.OverviewPanel","awt2swing.Frame jalview.appletgui.FeatureRenderer $.SequenceRenderer java.awt.Color $.Dimension java.awt.event.ComponentAdapter java.lang.Thread".split(" "),function(){c$=s(function(){this.ap=this.av=this.offscreen=this.miniMe=null;this.scaleh=this.scalew=
3306 1;this.sequencesHeight=this.$width=0;this.graphHeight=20;this.boxHeight=this.boxWidth=this.boxY=this.boxX=-1;this.resizing=!1;this.nullFrame=this.fr=this.sr=null;this.resizeAgain=!1;r(this,arguments)},jalview.appletgui,"OverviewPanel",awt2swing.Panel,[Runnable,java.awt.event.MouseMotionListener,java.awt.event.MouseListener]);m(c$,function(a){t(this,jalview.appletgui.OverviewPanel,[]);this.av=a.av;this.ap=a;this.setLayout(null);this.nullFrame=new awt2swing.Frame;this.nullFrame.addNotify();this.sr=
3307 new jalview.appletgui.SequenceRenderer(this.av);this.sr.graphics=this.nullFrame.getGraphics();this.sr.renderGaps=!1;this.sr.forOverview=!0;this.fr=new jalview.appletgui.FeatureRenderer(this.av);a=this.av.getAlignment().getWidth()/this.av.getAlignment().getHeight();null==this.av.getSequenceConsensusHash()&&(this.graphHeight=0);this.av.getAlignment().getWidth()>this.av.getAlignment().getHeight()?(this.$width=400,this.sequencesHeight=I(400/a),40>this.sequencesHeight&&(this.sequencesHeight=40)):(this.$width=
3308 I(400*a),this.sequencesHeight=300,120>this.$width&&(this.$width=120));this.setSize(new java.awt.Dimension(this.$width,this.sequencesHeight+this.graphHeight));this.addComponentListener((H("jalview.appletgui.OverviewPanel$1")?0:jalview.appletgui.OverviewPanel.$OverviewPanel$1$(),C(jalview.appletgui.OverviewPanel$1,this,null)));this.addMouseMotionListener(this);this.addMouseListener(this);this.updateOverviewImage()},"jalview.appletgui.AlignmentPanel");e(c$,"mouseEntered",function(){},"java.awt.event.MouseEvent");
3309 e(c$,"mouseExited",function(){},"java.awt.event.MouseEvent");e(c$,"mouseClicked",function(){},"java.awt.event.MouseEvent");e(c$,"mouseMoved",function(){},"java.awt.event.MouseEvent");e(c$,"mousePressed",function(a){this.boxX=a.getX();this.boxY=a.getY();this.checkValid()},"java.awt.event.MouseEvent");e(c$,"mouseReleased",function(a){this.boxX=a.getX();this.boxY=a.getY();this.checkValid()},"java.awt.event.MouseEvent");e(c$,"mouseDragged",function(a){this.boxX=a.getX();this.boxY=a.getY();this.checkValid()},
3310 "java.awt.event.MouseEvent");d(c$,"checkValid",function(){0>this.boxY&&(this.boxY=0);this.boxY>this.sequencesHeight-this.boxHeight&&(this.boxY=this.sequencesHeight-this.boxHeight+1);0>this.boxX&&(this.boxX=0);this.boxX>this.$width-this.boxWidth&&(this.av.hasHiddenColumns()&&(this.boxWidth=I((this.av.endRes-this.av.startRes+1)*this.av.getCharWidth()*this.scalew)),this.boxX=this.$width-this.boxWidth);var a=I(this.boxX/this.scalew/this.av.getCharWidth()),b=I(this.boxY/this.scaleh/this.av.getCharHeight());
3311 if(this.av.hasHiddenColumns()){if(!this.av.getColumnSelection().isVisible(a))return;a=this.av.getColumnSelection().findColumnPosition(a)}this.av.hasHiddenRows()&&(b=this.av.getAlignment().getHiddenSequences().findIndexWithoutHiddenSeqs(b));this.ap.setScrollValues(a,b);this.ap.paintAlignment(!1)});d(c$,"updateOverviewImage",function(){this.resizing?this.resizeAgain=!0:(this.av.isShowSequenceFeatures()&&this.fr.transferSettings(this.ap.seqPanel.seqCanvas.fr),this.resizing=!0,0<this.getSize().width&&
3312 0<this.getSize().height&&(this.$width=this.getSize().width,this.sequencesHeight=this.getSize().height-this.graphHeight),this.setSize(new java.awt.Dimension(this.$width,this.sequencesHeight+this.graphHeight)),(new Thread(this)).start(),this.repaint())});e(c$,"run",function(){this.miniMe=null;var a=this.av.getAlignment().getWidth(),b=this.av.getAlignment().getHeight();this.av.isShowSequenceFeatures()&&this.fr.transferSettings(this.ap.seqPanel.seqCanvas.getFeatureRenderer());0<this.getSize().width&&
3313 0<this.getSize().height&&(this.$width=this.getSize().width,this.sequencesHeight=this.getSize().height-this.graphHeight);this.setSize(new java.awt.Dimension(this.$width,this.sequencesHeight+this.graphHeight));var c=a*this.av.getCharWidth(),d=b*this.av.getCharHeight();this.scalew=this.$width/c;this.scaleh=this.sequencesHeight/d;this.miniMe=this.nullFrame.createImage(this.$width,this.sequencesHeight+this.graphHeight);this.offscreen=this.nullFrame.createImage(this.$width,this.sequencesHeight+this.graphHeight);
3314 var c=this.miniMe.getGraphics(),a=a/this.$width,b=b/this.sequencesHeight,e=d=0,k=0,g=0,h=java.awt.Color.yellow,j,n,m=0,p=0,q,r=this.av.hasHiddenRows(),s=this.av.hasHiddenColumns(),t=!1,v=this.av.getAlignment();for(j=0;j<=this.sequencesHeight;j++)if(I(j*b)==e)m++;else{t=!1;r?(q=v.getHiddenSequences().getHiddenSequence(e),null==q?(h=v.getHiddenSequences().findIndexWithoutHiddenSeqs(e),q=v.getSequenceAt(h)):t=!0):q=v.getSequenceAt(e);for(n=0;n<this.$width;n++)if(I(n*a)==d&&I(j*b)==e)p++;else{d=I(n*a);
3315 q.getLength()>d?(h=this.sr.getResidueBoxColour(q,d),this.av.isShowSequenceFeatures()&&(h=this.fr.findFeatureColour(h,q,d))):h=java.awt.Color.white;if(t||s&&!this.av.getColumnSelection().isVisible(d))h=h.darker().darker();c.setColor(h);1==p&&1==m?c.drawLine(k,g,k,g):c.fillRect(k,g,p,m);k=n;p=1}e=I(j*b);g=j;m=1}if(null!=this.av.getAlignmentConservationAnnotation())for(n=0;n<this.$width;n++)I(n*a),c.translate(n,this.sequencesHeight),this.ap.annotationPanel.renderer.drawGraph(c,this.av.getAlignmentConservationAnnotation(),
3316 this.av.getAlignmentConservationAnnotation().annotations,I(a)+1,this.graphHeight,I(n*a),I(n*a)+1),c.translate(-n,-this.sequencesHeight);System.gc();this.resizing=!1;this.setBoxPosition();this.resizeAgain&&(this.resizeAgain=!1,this.updateOverviewImage())});d(c$,"setBoxPosition",function(){var a=this.av.getAlignment().getWidth()*this.av.getCharWidth(),b=(this.av.getAlignment().getHeight()+this.av.getAlignment().getHiddenSequences().getSize())*this.av.getCharHeight(),c=this.av.getStartRes(),d=this.av.getEndRes();
3317 this.av.hasHiddenColumns()&&(c=this.av.getColumnSelection().adjustForHiddenColumns(c),d=this.av.getColumnSelection().adjustForHiddenColumns(d));var e=this.av.startSeq,k=this.av.endSeq;this.av.hasHiddenRows()&&(e=this.av.getAlignment().getHiddenSequences().adjustForHiddenSeqs(e),k=this.av.getAlignment().getHiddenSequences().adjustForHiddenSeqs(k));this.scalew=this.$width/a;this.scaleh=this.sequencesHeight/b;this.boxX=I(c*this.av.getCharWidth()*this.scalew);this.boxY=I(e*this.av.getCharHeight()*this.scaleh);
3318 this.av.hasHiddenColumns();this.boxWidth=I((d-c+1)*this.av.getCharWidth()*this.scalew);this.boxHeight=I((k-e)*this.av.getCharHeight()*this.scaleh);this.repaint()});e(c$,"update",function(a){this.paint(a)},"java.awt.Graphics");e(c$,"paintComponent",function(a){var b=this.offscreen.getGraphics();null!=this.miniMe&&(b.drawImage(this.miniMe,0,0,this),b.setColor(java.awt.Color.red),b.drawRect(this.boxX,this.boxY,this.boxWidth,this.boxHeight),b.drawRect(this.boxX+1,this.boxY+1,this.boxWidth-2,this.boxHeight-
3319 2),a.drawImage(this.offscreen,0,0,this))},"java.awt.Graphics");c$.$OverviewPanel$1$=function(){A(self.c$);c$=L(jalview.appletgui,"OverviewPanel$1",java.awt.event.ComponentAdapter);e(c$,"componentResized",function(){(this.b$["jalview.appletgui.OverviewPanel"].getSize().width!=this.b$["jalview.appletgui.OverviewPanel"].$width||this.b$["jalview.appletgui.OverviewPanel"].getSize().height!=this.b$["jalview.appletgui.OverviewPanel"].sequencesHeight+this.b$["jalview.appletgui.OverviewPanel"].graphHeight)&&
3320 this.b$["jalview.appletgui.OverviewPanel"].updateOverviewImage()},"java.awt.event.ComponentEvent");c$=z()}});p("jalview.appletgui");q("jalview.appletgui.EmbmenuFrame java.awt.event.ActionListener $.ItemListener awt2swing.Button $.CheckboxMenuItem $.Choice $.Label $.Menu $.MenuBar $.MenuItem $.Panel java.awt.BorderLayout $.FlowLayout".split(" "),"jalview.appletgui.PCAPanel","awt2swing.Frame jalview.appletgui.AlignFrame $.CutAndPasteTransfer $.RotatableCanvas jalview.bin.JalviewLite jalview.datamodel.Alignment jalview.util.MessageManager jalview.viewmodel.PCAModel java.awt.Color $.Font java.lang.Thread".split(" "),
3321 function(){c$=s(function(){this.pcaModel=this.av=this.rc=null;this.top=0;this.inputData=this.values=this.nuclSetting=this.protSetting=this.labels=this.calcSettings=this.menu2=this.menu1=this.menuBar1=this.borderLayout1=this.flowLayout1=this.resetButton=this.zCombobox=this.yCombobox=this.xCombobox=this.jLabel3=this.jLabel2=this.jLabel1=this.jPanel2=null;r(this,arguments)},jalview.appletgui,"PCAPanel",jalview.appletgui.EmbmenuFrame,[Runnable,java.awt.event.ActionListener,java.awt.event.ItemListener]);
3322 J(c$,function(){this.jPanel2=new awt2swing.Panel;this.jLabel1=new awt2swing.Label;this.jLabel2=new awt2swing.Label;this.jLabel3=new awt2swing.Label;this.xCombobox=new awt2swing.Choice;this.yCombobox=new awt2swing.Choice;this.zCombobox=new awt2swing.Choice;this.resetButton=new awt2swing.Button;this.flowLayout1=new java.awt.FlowLayout;this.borderLayout1=new java.awt.BorderLayout;this.menuBar1=new awt2swing.MenuBar;this.menu1=new awt2swing.Menu;this.menu2=new awt2swing.Menu;this.calcSettings=new awt2swing.Menu;
3323 this.labels=new awt2swing.CheckboxMenuItem;this.protSetting=new awt2swing.CheckboxMenuItem;this.nuclSetting=new awt2swing.CheckboxMenuItem;this.values=new awt2swing.MenuItem;this.inputData=new awt2swing.MenuItem});m(c$,function(a){t(this,jalview.appletgui.PCAPanel,[]);try{this.jbInit()}catch(b){if(y(b,Exception))b.printStackTrace();else throw b;}for(var c=1;8>c;c++)this.xCombobox.addItem("dim "+c),this.yCombobox.addItem("dim "+c),this.zCombobox.addItem("dim "+c);this.av=a;var c=null!=a.getSelectionGroup()&&
3324 0<a.getSelectionGroup().getSize(),d=a.getAlignmentView(c),e=a.getAlignment().isNucleotide(),k;k=c?a.getSelectionGroup().getSequencesInOrder(a.getAlignment()):a.getAlignment().getSequencesArray();for(var g=d.getSequences(),h=g[0].getWidth(),c=0;c<k.length;c++)if(g[c].getWidth()!=h){System.out.println("Sequences must be equal length for PCA analysis");return}this.pcaModel=new jalview.viewmodel.PCAModel(d,k,e);this.rc=new jalview.appletgui.RotatableCanvas(a);this.embedMenuIfNeeded(this.rc);this.add(this.rc,
3325 "Center");jalview.bin.JalviewLite.addFrame(this,jalview.util.MessageManager.getString("label.principal_component_analysis"),475,400);(new Thread(this)).start()},"jalview.appletgui.AlignViewport");e(c$,"run",function(){this.calcSettings.setEnabled(!1);this.rc.setEnabled(!1);try{this.nuclSetting.setState(this.pcaModel.isNucleotide()),this.protSetting.setState(!this.pcaModel.isNucleotide()),this.pcaModel.run(),this.xCombobox.select(new Integer(0)),this.yCombobox.select(new Integer(1)),this.zCombobox.select(new Integer(2)),
3326 this.pcaModel.updateRc(this.rc),this.top=this.pcaModel.getTop()}catch(a){if(y(a,OutOfMemoryError)){System.err.println("Out of memory when calculating PCA.");return}throw a;}this.calcSettings.setEnabled(!0);this.rc.setEnabled(!0);this.rc.repaint();this.repaint()});d(c$,"doDimensionChange",function(){if(0!=this.top){var a=this.top-this.xCombobox.getSelectedIndex(),b=this.top-this.yCombobox.getSelectedIndex(),c=this.top-this.zCombobox.getSelectedIndex();this.pcaModel.updateRcView(a,b,c);this.rc.img=
3327 null;this.rc.rotmat.setIdentity();this.rc.initAxes();this.rc.paint(this.rc.getGraphics())}});e(c$,"actionPerformed",function(a){a.getSource()===this.inputData&&this.showOriginalData();a.getSource()===this.resetButton&&(this.xCombobox.select(new Integer(0)),this.yCombobox.select(new Integer(1)),this.zCombobox.select(new Integer(2)),this.doDimensionChange());a.getSource()===this.values&&this.values_actionPerformed()},"java.awt.event.ActionEvent");e(c$,"itemStateChanged",function(a){a.getSource()===
3328 this.xCombobox?this.xCombobox_actionPerformed():a.getSource()===this.yCombobox?this.yCombobox_actionPerformed():a.getSource()===this.zCombobox?this.zCombobox_actionPerformed():a.getSource()===this.labels?this.labels_itemStateChanged(a):a.getSource()===this.nuclSetting?this.pcaModel.isNucleotide()||(this.pcaModel.setNucleotide(!0),(new Thread(this)).start()):a.getSource()===this.protSetting&&this.pcaModel.isNucleotide()&&(this.pcaModel.setNucleotide(!1),(new Thread(this)).start())},"java.awt.event.ItemEvent");
3329 d(c$,"xCombobox_actionPerformed",function(){this.doDimensionChange()});d(c$,"yCombobox_actionPerformed",function(){this.doDimensionChange()});d(c$,"zCombobox_actionPerformed",function(){this.doDimensionChange()});d(c$,"values_actionPerformed",function(){var a=new jalview.appletgui.CutAndPasteTransfer(!1,null),b=new awt2swing.Frame;b.add(a);jalview.bin.JalviewLite.addFrame(b,jalview.util.MessageManager.getString("label.pca_details"),500,500);a.setText(this.pcaModel.getDetails())});d(c$,"showOriginalData",
3330 function(){var a="-";try{a=this.av.getGapCharacter()}catch(b){if(!y(b,Exception))throw b;}a=this.pcaModel.getSeqtrings().getAlignmentAndColumnSelection(a);if(null!=a&&null!=a[0]){var c=new jalview.datamodel.Alignment(a[0]);(new jalview.appletgui.AlignFrame(c,this.av.applet,"Original Data for PCA",!1)).viewport.setHiddenColumns(a[1])}});d(c$,"labels_itemStateChanged",function(){this.rc.showLabels(this.labels.getState())},"java.awt.event.ItemEvent");d(c$,"jbInit",function(){this.setLayout(this.borderLayout1);
3331 this.jPanel2.setLayout(this.flowLayout1);this.jLabel1.setFont(new java.awt.Font("Verdana",0,12));this.jLabel1.setText("x=");this.jLabel2.setFont(new java.awt.Font("Verdana",0,12));this.jLabel2.setText("y=");this.jLabel3.setFont(new java.awt.Font("Verdana",0,12));this.jLabel3.setText("z=");this.jPanel2.setBackground(java.awt.Color.white);this.zCombobox.setFont(new java.awt.Font("Verdana",0,12));this.zCombobox.addItemListener(this);this.yCombobox.setFont(new java.awt.Font("Verdana",0,12));this.yCombobox.addItemListener(this);
3332 this.xCombobox.setFont(new java.awt.Font("Verdana",0,12));this.xCombobox.addItemListener(this);this.resetButton.setFont(new java.awt.Font("Verdana",0,12));this.resetButton.setLabel(jalview.util.MessageManager.getString("action.reset"));this.resetButton.addActionListener(this);this.setMenuBar(this.menuBar1);this.menu1.setLabel(jalview.util.MessageManager.getString("action.file"));this.menu2.setLabel(jalview.util.MessageManager.getString("action.view"));this.calcSettings.setLabel(jalview.util.MessageManager.getString("action.change_params"));
3333 this.labels.setLabel(jalview.util.MessageManager.getString("label.labels"));this.labels.addItemListener(this);this.values.setLabel(jalview.util.MessageManager.getString("label.output_values"));this.values.addActionListener(this);this.inputData.setLabel(jalview.util.MessageManager.getString("label.input_data"));this.nuclSetting.setLabel(jalview.util.MessageManager.getString("label.nucleotide_matrix"));this.nuclSetting.addItemListener(this);this.protSetting.setLabel(jalview.util.MessageManager.getString("label.protein_matrix"));
3334 this.protSetting.addItemListener(this);this.add(this.jPanel2,"South");this.jPanel2.add(this.jLabel1,null);this.jPanel2.add(this.xCombobox,null);this.jPanel2.add(this.jLabel2,null);this.jPanel2.add(this.yCombobox,null);this.jPanel2.add(this.jLabel3,null);this.jPanel2.add(this.zCombobox,null);this.jPanel2.add(this.resetButton,null);this.menuBar1.add(this.menu1);this.menuBar1.add(this.menu2);this.menuBar1.add(this.calcSettings);this.menu2.add(this.labels);this.menu1.add(this.values);this.menu1.add(this.inputData);
3335 this.calcSettings.add(this.nuclSetting);this.calcSettings.add(this.protSetting);this.inputData.addActionListener(this)})});p("jalview.appletgui");q("awt2swing.Panel jalview.api.RotatableCanvasI java.awt.event.KeyListener $.MouseListener $.MouseMotionListener jalview.math.RotatableMatrix".split(" "),"jalview.appletgui.RotatableCanvas","awt2swing.Util jalview.appletgui.PaintRefresher jalview.datamodel.SequenceGroup jalview.util.Format $.MessageManager java.awt.Color $.Dimension $.Font".split(" "),function(){c$=
3336 s(function(){this.tooltip=this.rotmat=this.objmat=this.idmat=null;this.tooly=this.toolx=0;this.$drawAxes=!0;this.my=this.omy=this.mx=this.omx=0;this.min=this.max=this.$width=this.centre=this.prefsize=this.ig=this.img=null;this.npoint=this.scale=this.maxwidth=0;this.axes=this.orig=this.points=null;this.recty2=this.rectx2=this.recty1=this.rectx1=this.lasty=this.lastx=this.starty=this.startx=0;this.scalefactor=1;this.av=null;this.$showLabels=!1;r(this,arguments)},jalview.appletgui,"RotatableCanvas",
3337 awt2swing.Panel,[java.awt.event.MouseListener,java.awt.event.MouseMotionListener,java.awt.event.KeyListener,jalview.api.RotatableCanvasI]);J(c$,function(){this.idmat=new jalview.math.RotatableMatrix(3,3);this.objmat=new jalview.math.RotatableMatrix(3,3);this.rotmat=new jalview.math.RotatableMatrix(3,3);this.centre=Q(3,0);this.$width=Q(3,0);this.max=Q(3,0);this.min=Q(3,0)});m(c$,function(a){t(this,jalview.appletgui.RotatableCanvas,[]);this.av=a},"jalview.viewmodel.AlignmentViewport");d(c$,"showLabels",
3338 function(a){this.$showLabels=a;this.repaint()},"~B");e(c$,"setPoints",function(a,b){this.points=a;this.npoint=b;jalview.appletgui.PaintRefresher.Register(this,this.av.getSequenceSetId());this.prefsize=this.getPreferredSize();this.orig=Q(b,3,0);for(var c=0;c<b;c++)for(var d=a.elementAt(c),e=0;3>e;e++)this.orig[c][e]=d.coord[e];for(c=0;3>c;c++)for(e=0;3>e;e++)this.idmat.addElement(c,e,0),this.objmat.addElement(c,e,0),this.rotmat.addElement(c,e,0);this.axes=Q(3,3,0);this.initAxes();this.findCentre();
3339 this.findWidth();this.scale=this.findScale();this.addMouseListener(this);this.addKeyListener(this);this.addMouseMotionListener(this)},"java.util.Vector,~N");d(c$,"initAxes",function(){for(var a=0;3>a;a++)for(var b=0;3>b;b++)this.axes[a][b]=a!=b?0:1});d(c$,"findWidth",function(){this.max=Q(3,0);this.min=Q(3,0);this.max[0]=-1E30;this.max[1]=-1E30;this.max[2]=-1E30;this.min[0]=1E30;this.min[1]=1E30;this.min[2]=1E30;for(var a=0;3>a;a++)for(var b=0;b<this.npoint;b++){var c=this.points.elementAt(b);c.coord[a]>=
3340 this.max[a]&&(this.max[a]=c.coord[a]);c.coord[a]<=this.min[a]&&(this.min[a]=c.coord[a])}this.$width[0]=Math.abs(this.max[0]-this.min[0]);this.$width[1]=Math.abs(this.max[1]-this.min[1]);this.$width[2]=Math.abs(this.max[2]-this.min[2]);this.maxwidth=this.$width[0];this.$width[1]>this.$width[0]&&(this.maxwidth=this.$width[1]);this.$width[2]>this.$width[1]&&(this.maxwidth=this.$width[2])});d(c$,"findScale",function(){var a,b;0!=this.getSize().width?(a=this.getSize().width,b=this.getSize().height):(a=
3341 this.prefsize.width,b=this.prefsize.height);return(a<b?a:b)*this.scalefactor/(2*this.maxwidth)});d(c$,"findCentre",function(){this.findWidth();this.centre[0]=(this.max[0]+this.min[0])/2;this.centre[1]=(this.max[1]+this.min[1])/2;this.centre[2]=(this.max[2]+this.min[2])/2});e(c$,"getPreferredSize",function(){return null!=this.prefsize?this.prefsize:new java.awt.Dimension(400,400)});e(c$,"getMinimumSize",function(){return this.getPreferredSize()});e(c$,"update",function(a){this.paint(a)},"java.awt.Graphics");
3342 d(c$,"PaintComponent",function(a){if(null==this.points)a.setFont(new java.awt.Font("Verdana",0,18)),awt2swing.Util.drawString(a,jalview.util.MessageManager.getString("label.calculating_pca")+"....",20,F(this.getSize().height/2));else{if(null==this.img||this.prefsize.width!=this.getSize().width||this.prefsize.height!=this.getSize().height)this.prefsize.width=this.getSize().width,this.prefsize.height=this.getSize().height,this.scale=this.findScale(),this.img=this.createImage(this.getSize().width,this.getSize().height),
3343 this.ig=this.img.getGraphics();this.drawBackground(this.ig,java.awt.Color.black);this.drawScene(this.ig);!0==this.$drawAxes&&this.drawAxes(this.ig);null!=this.tooltip&&(this.ig.setColor(java.awt.Color.red),awt2swing.Util.drawString(this.ig,this.tooltip,this.toolx,this.tooly));a.drawImage(this.img,0,0,this)}},"java.awt.Graphics");d(c$,"drawAxes",function(a){a.setColor(java.awt.Color.yellow);for(var b=0;3>b;b++)a.drawLine(F(this.getSize().width/2),F(this.getSize().height/2),I(this.axes[b][0]*this.scale*
3344 this.max[0]+F(this.getSize().width/2)),I(this.axes[b][1]*this.scale*this.max[1]+F(this.getSize().height/2)))},"java.awt.Graphics");d(c$,"drawBackground",function(a,b){a.setColor(b);a.fillRect(0,0,this.prefsize.width,this.prefsize.height)},"java.awt.Graphics,java.awt.Color");d(c$,"drawScene",function(a){for(var b=F(this.getSize().width/2),c=F(this.getSize().height/2),d=0;d<this.npoint;d++){var e=this.points.elementAt(d),k=I((e.coord[0]-this.centre[0])*this.scale)+b,g=I((e.coord[1]-this.centre[1])*
3345 this.scale)+c,h=e.coord[1]-this.centre[2];this.av.getSequenceColour(e.sequence)===java.awt.Color.black?a.setColor(java.awt.Color.white):a.setColor(this.av.getSequenceColour(e.sequence));null!=this.av.getSelectionGroup()&&this.av.getSelectionGroup().getSequences(null).contains(this.points.elementAt(d).sequence)&&a.setColor(java.awt.Color.gray);0>h&&a.setColor(a.getColor().darker());a.fillRect(k-3,g-3,6,6);this.$showLabels&&(a.setColor(java.awt.Color.red),awt2swing.Util.drawString(a,this.points.elementAt(d).sequence.getName(),
3346 k-3,g-4))}},"java.awt.Graphics");d(c$,"minimumsize",function(){return this.prefsize});d(c$,"preferredsize",function(){return this.prefsize});e(c$,"keyTyped",function(){},"java.awt.event.KeyEvent");e(c$,"keyReleased",function(){},"java.awt.event.KeyEvent");e(c$,"keyPressed",function(a){38==a.getKeyCode()?(this.scalefactor*=1.1,this.scale=this.findScale()):40==a.getKeyCode()?(this.scalefactor*=0.9,this.scale=this.findScale()):"s"==a.getKeyChar()&&(System.err.println("DEBUG: Rectangle selection"),-1!=
3347 this.rectx2&&-1!=this.recty2&&this.rectSelect(this.rectx1,this.recty1,this.rectx2,this.recty2));this.repaint()},"java.awt.event.KeyEvent");d(c$,"printPoints",function(){for(var a=0;a<this.npoint;a++){var b=this.points.elementAt(a);jalview.util.Format.printLong(System.out,"%5d ",a);for(var c=0;3>c;c++)jalview.util.Format.printDouble(System.out,"%13.3f  ",b.coord[c]);System.out.println()}});e(c$,"mouseClicked",function(){},"java.awt.event.MouseEvent");e(c$,"mouseEntered",function(){},"java.awt.event.MouseEvent");
3348 e(c$,"mouseExited",function(){},"java.awt.event.MouseEvent");e(c$,"mouseReleased",function(){},"java.awt.event.MouseEvent");e(c$,"mousePressed",function(a){var b=a.getX();a=a.getY();this.mx=b;this.my=a;this.omx=this.mx;this.omy=this.my;this.startx=b;this.starty=a;this.rectx1=b;this.recty1=a;this.recty2=this.rectx2=-1;b=this.findPoint(b,a);null!=b&&(null==this.av.getSelectionGroup()&&this.av.setSelectionGroup(new jalview.datamodel.SequenceGroup),this.av.getSelectionGroup().addOrRemove(b,!0),this.av.getSelectionGroup().setEndRes(this.av.getAlignment().getWidth()-
3349 1),jalview.appletgui.PaintRefresher.Refresh(this,this.av.getSequenceSetId()),this.av.sendSelection());this.repaint()},"java.awt.event.MouseEvent");e(c$,"mouseMoved",function(a){var b=this.findPoint(a.getX(),a.getY());null==b?this.tooltip=null:(this.tooltip=b.getName(),this.toolx=a.getX(),this.tooly=a.getY());this.repaint()},"java.awt.event.MouseEvent");e(c$,"mouseDragged",function(a){this.mx=a.getX();this.my=a.getY();this.rotmat.setIdentity();this.rotmat.rotate(this.my-this.omy,"x");this.rotmat.rotate(this.mx-
3350 this.omx,"y");for(a=0;a<this.npoint;a++){var b=this.points.elementAt(a);b.coord[0]-=this.centre[0];b.coord[1]-=this.centre[1];b.coord[2]-=this.centre[2];b.coord=this.rotmat.vectorMultiply(b.coord);b.coord[0]+=this.centre[0];b.coord[1]+=this.centre[1];b.coord[2]+=this.centre[2]}for(a=0;3>a;a++)this.axes[a]=this.rotmat.vectorMultiply(this.axes[a]);this.omx=this.mx;this.omy=this.my;this.paint(this.getGraphics())},"java.awt.event.MouseEvent");d(c$,"rectSelect",function(a,b,c,d){for(var e=0;e<this.npoint;e++){var k=
3351 this.points.elementAt(e),g=F((k.coord[0]-this.centre[0])*this.scale+this.getSize().width/2),h=F((k.coord[1]-this.centre[1])*this.scale+this.getSize().height/2);g>a&&g<c&&h>b&&h<d&&null!=this.av&&(this.av.getSelectionGroup().getSequences(null).contains(k.sequence)||this.av.getSelectionGroup().addSequence(k.sequence,!0))}},"~N,~N,~N,~N");d(c$,"findPoint",function(a,b){for(var c=F(this.getSize().width/2),d=F(this.getSize().height/2),e=-1,k=0;k<this.npoint;k++){var g=this.points.elementAt(k),h=I((g.coord[0]-
3352 this.centre[0])*this.scale)+c,g=I((g.coord[1]-this.centre[1])*this.scale)+d;3>Math.abs(h-a)&&3>Math.abs(g-b)&&(e=k)}return-1!=e?this.points.elementAt(e).sequence:null},"~N,~N")});p("jalview.api");M(jalview.api,"RotatableCanvasI");p("jalview.math");c$=s(function(){this.rot=this.temp=this.matrix=null;r(this,arguments)},jalview.math,"RotatableMatrix");m(c$,function(a,b){this.matrix=Q(a,b,0);this.temp=Q(3,0);this.rot=Q(3,3,0)},"~N,~N");d(c$,"addElement",function(a,b,c){this.matrix[a][b]=c},"~N,~N,~N");
3353 d(c$,"print",function(){System.out.println(this.matrix[0][0]+" "+this.matrix[0][1]+" "+this.matrix[0][2]);System.out.println(this.matrix[1][0]+" "+this.matrix[1][1]+" "+this.matrix[1][2]);System.out.println(this.matrix[2][0]+" "+this.matrix[2][1]+" "+this.matrix[2][2])});d(c$,"rotate",function(a,b){var c=Math.cos(3.141592653589793*a/180),d=Math.sin(3.141592653589793*a/180);"z"==b&&(this.rot[0][0]=c,this.rot[0][1]=-d,this.rot[0][2]=0,this.rot[1][0]=d,this.rot[1][1]=c,this.rot[1][2]=0,this.rot[2][0]=
3354 0,this.rot[2][1]=0,this.rot[2][2]=1,this.preMultiply(this.rot));"x"==b&&(this.rot[0][0]=1,this.rot[0][1]=0,this.rot[0][2]=0,this.rot[1][0]=0,this.rot[1][1]=c,this.rot[1][2]=d,this.rot[2][0]=0,this.rot[2][1]=-d,this.rot[2][2]=c,this.preMultiply(this.rot));"y"==b&&(this.rot[0][0]=c,this.rot[0][1]=0,this.rot[0][2]=-d,this.rot[1][0]=0,this.rot[1][1]=1,this.rot[1][2]=0,this.rot[2][0]=d,this.rot[2][1]=0,this.rot[2][2]=c,this.preMultiply(this.rot))},"~N,~S");d(c$,"vectorMultiply",function(a){this.temp[0]=
3355 a[0];this.temp[1]=a[1];this.temp[2]=a[2];for(var b=0;3>b;b++)this.temp[b]=this.matrix[b][0]*a[0]+this.matrix[b][1]*a[1]+this.matrix[b][2]*a[2];a[0]=this.temp[0];a[1]=this.temp[1];a[2]=this.temp[2];return a},"~A");d(c$,"preMultiply",function(a){for(var b=Q(3,3,0),c=0;3>c;c++)for(var d=0;3>d;d++)b[c][d]=a[c][0]*this.matrix[0][d]+a[c][1]*this.matrix[1][d]+a[c][2]*this.matrix[2][d];for(c=0;3>c;c++)for(d=0;3>d;d++)this.matrix[c][d]=b[c][d]},"~A");d(c$,"postMultiply",function(a){for(var b=Q(3,3,0),c=0;3>
3356 c;c++)for(var d=0;3>d;d++)b[c][d]=this.matrix[c][0]*a[0][d]+this.matrix[c][1]*a[1][d]+this.matrix[c][2]*a[2][d];for(c=0;3>c;c++)for(d=0;3>d;d++)this.matrix[c][d]=b[c][d]},"~A");d(c$,"setIdentity",function(){this.matrix[0][0]=1;this.matrix[1][1]=1;this.matrix[2][2]=1;this.matrix[0][1]=0;this.matrix[0][2]=0;this.matrix[1][0]=0;this.matrix[1][2]=0;this.matrix[2][0]=0;this.matrix[2][1]=0});p("jalview.viewmodel");q(null,"jalview.viewmodel.PCAModel",["jalview.analysis.PCA","jalview.datamodel.SequencePoint",
3357 "java.lang.StringBuffer","java.util.Vector"],function(){c$=s(function(){this.pca=null;this.top=0;this.score_matrix=this.seqs=this.seqstrings=null;this.nucleotide=!1;this.points=null;this.jvCalcMode=!0;r(this,arguments)},jalview.viewmodel,"PCAModel");m(c$,function(a,b,c){this.seqstrings=a;this.seqs=b;this.score_matrix=(this.nucleotide=c)?"PID":"BLOSUM62"},"jalview.datamodel.AlignmentView,~A,~B");d(c$,"isJvCalcMode",function(){return this.jvCalcMode});d(c$,"run",function(){this.pca=new jalview.analysis.PCA(this.seqstrings.getSequenceStrings(" "),
3358 this.nucleotide,this.score_matrix);this.pca.setJvCalcMode(this.jvCalcMode);this.pca.run();for(var a=0;a<this.seqs.length&&null!=this.seqs[a];)a++;for(var b=U(a,a,0),c=0;c<a;c++)1E-4<this.pca.getEigenvalue(c)&&(b[c]=this.pca.component(c));this.top=this.pca.getM().rows-1;this.points=new java.util.Vector;a=this.pca.getComponents(this.top-1,this.top-2,this.top-3,100);for(c=0;c<this.pca.getM().rows;c++)b=new jalview.datamodel.SequencePoint(this.seqs[c],a[c]),this.points.addElement(b)});d(c$,"updateRc",
3359 function(a){a.setPoints(this.points,this.pca.getM().rows)},"jalview.api.RotatableCanvasI");d(c$,"isNucleotide",function(){return this.nucleotide});d(c$,"setNucleotide",function(a){this.nucleotide=a},"~B");d(c$,"getTop",function(){return this.top});d(c$,"updateRcView",function(a,b,c){a=this.pca.getComponents(a-1,b-1,c-1,100);for(b=0;b<this.pca.getM().rows;b++)this.points.elementAt(b).coord=a[b]},"~N,~N,~N");d(c$,"getDetails",function(){return this.pca.getDetails()});d(c$,"getSeqtrings",function(){return this.seqstrings});
3360 d(c$,"getPointsasCsv",function(a,b,c,d){var e=new StringBuffer;e.append('"Sequence"');if(a)e.append(","),e.append(""+b),e.append(","),e.append(""+c),e.append(","),e.append(""+d);else{b=1;for(c=this.pca.component(1).length;b<=c;b++)e.append(","+b)}e.append("\n");for(c=0;c<this.seqs.length;c++){e.append('"'+this.seqs[c].getName()+'"');if(a){d=this.getPointPosition(c);for(b=0;b<d.length;b++)e.append(","),e.append(d[b])}else{d=this.pca.component(c);for(b=d.length-1;0<=b;b--)e.append(","),e.append(d[b])}e.append("\n")}return e.toString()},
3361 "~B,~N,~N,~N");d(c$,"getPointPosition",function(a){var b=U(3,0);a=this.points.elementAt(a).coord;b[0]=a[0];b[1]=a[1];b[2]=a[2];return b},"~N");d(c$,"setJvCalcMode",function(a){this.jvCalcMode=a},"~B");d(c$,"getScore_matrix",function(){return this.score_matrix});d(c$,"setScore_matrix",function(a){this.score_matrix=a},"~S")});p("jalview.analysis");q(["java.lang.StringBuffer"],"jalview.analysis.PCA",["jalview.datamodel.BinarySequence","jalview.math.Matrix","jalview.schemes.ResidueProperties"],function(){c$=
3362 s(function(){this.details=this.eigenvector=this.eigenvalue=this.m2=this.symm=this.m=null;this.jvCalcMode=!0;r(this,arguments)},jalview.analysis,"PCA",null,Runnable);J(c$,function(){this.details=new StringBuffer});m(c$,function(a){this.construct(a,!1)},"~A");m(c$,function(a,b){this.construct(a,b,null)},"~A,~B");m(c$,function(a,b,c){for(var d=Array(a.length),e=0;e<a.length&&null!=a[e];)d[e]=new jalview.datamodel.BinarySequence(a[e],b),d[e].encode(),e++;var k=Array(a.length),e=0,g=null;null!=c&&(g=jalview.schemes.ResidueProperties.getScoreMatrix(c));
3363 null==g&&(g=jalview.schemes.ResidueProperties.getScoreMatrix(c=b?"DNA":"BLOSUM62"));for(this.details.append("PCA calculation using "+c+" sequence similarity matrix\n========\n\n");e<a.length&&null!=a[e];){k[e]=new jalview.datamodel.BinarySequence(a[e],b);if(null!=g)try{k[e].matrixEncode(g)}catch(h){if(y(h,jalview.datamodel.BinarySequence.InvalidSequenceTypeException))this.details.append("Unexpected mismatch of sequence type and score matrix. Calculation will not be valid!\n\n");else throw h;}e++}for(a=
3364 0;a<d.length&&null!=d[a];)a++;b=U(a,d[0].getDBinary().length,0);e=U(a,k[0].getDBinary().length,0);for(g=0;g<a;)b[g]=d[g].getDBinary(),e[g]=k[g].getDBinary(),g++;this.m=new jalview.math.Matrix(b,a,d[0].getDBinary().length);this.m2=new jalview.math.Matrix(e,a,k[0].getDBinary().length)},"~A,~B,~S");d(c$,"getM",function(){return this.m});d(c$,"getEigenvalue",function(a){return this.eigenvector.d[a]},"~N");d(c$,"getComponents",function(a,b,c,d){for(var e=Q(this.m.rows,3,0),k=0;k<this.m.rows;k++)e[k][0]=
3365 this.component(k,a)*d,e[k][1]=this.component(k,b)*d,e[k][2]=this.component(k,c)*d;return e},"~N,~N,~N,~N");d(c$,"component",function(a){for(var b=U(this.m.rows,0),c=0;c<this.m.rows;c++)b[c]=this.component(c,a);return b},"~N");d(c$,"component",function(a,b){for(var c=0,d=0;d<this.symm.cols;d++)c+=this.symm.value[a][d]*this.eigenvector.value[d][b];return c/this.eigenvector.d[b]},"~N,~N");d(c$,"getDetails",function(){return this.details.toString()});e(c$,"run",function(){var a=(H("jalview.analysis.PCA$1")?
3366 0:jalview.analysis.PCA.$PCA$1$(),C(jalview.analysis.PCA$1,this,null,System.out));try{this.details.append("PCA Calculation Mode is "+(this.jvCalcMode?"Jalview variant":"Original SeqSpace")+"\n");var b=this.m.transpose();this.details.append(" --- OrigT * Orig ---- \n");this.eigenvector=this.jvCalcMode?b.preMultiply(this.m2):b.preMultiply(this.m);this.eigenvector.print(a);this.symm=this.eigenvector.copy();this.eigenvector.tred();this.details.append(" ---Tridiag transform matrix ---\n");this.details.append(" --- D vector ---\n");
3367 this.eigenvector.printD(a);a.println();this.details.append("--- E vector ---\n");this.eigenvector.printE(a);a.println();this.eigenvector.tqli()}catch(c){if(y(c,Exception))c.printStackTrace(),this.details.append("\n*** Unexpected exception when performing PCA ***\n"+c.getLocalizedMessage()),this.details.append("*** Matrices below may not be fully diagonalised. ***\n");else throw c;}this.details.append(" --- New diagonalization matrix ---\n");this.eigenvector.print(a);this.details.append(" --- Eigenvalues ---\n");
3368 this.eigenvector.printD(a);a.println()});d(c$,"setJvCalcMode",function(a){this.jvCalcMode=a},"~B");c$.$PCA$1$=function(){A(self.c$);c$=L(jalview.analysis,"PCA$1",java.io.PrintStream);d(c$,"print",function(a){this.b$["jalview.analysis.PCA"].details.append(a)},"~S");d(c$,"println",function(){this.b$["jalview.analysis.PCA"].details.append("\n")});c$=z()}});p("jalview.datamodel");q(["jalview.datamodel.Sequence","java.lang.Exception"],"jalview.datamodel.BinarySequence",["jalview.schemes.ResidueProperties"],
3369 function(){c$=s(function(){H("jalview.datamodel.BinarySequence.InvalidSequenceTypeException")||jalview.datamodel.BinarySequence.$BinarySequence$InvalidSequenceTypeException$();this.dbinary=this.binary=null;this.isNa=!1;r(this,arguments)},jalview.datamodel,"BinarySequence",jalview.datamodel.Sequence);m(c$,function(a,b){t(this,jalview.datamodel.BinarySequence,["",a,0,a.length]);this.isNa=b},"~S,~B");d(c$,"initMatrixGetNoRes",function(){var a=this.isNa?10:23;this.dbinary=U(this.getSequence().length*
3370 a,0);for(var b=0;b<this.dbinary.length;b++)this.dbinary[b]=0;return a});d(c$,"getSymbolmatrix",function(){return this.isNa?jalview.schemes.ResidueProperties.nucleotideIndex:jalview.schemes.ResidueProperties.aaIndex});d(c$,"encode",function(){for(var a=this.initMatrixGetNoRes(),b=this.getSymbolmatrix(),c=0;c<this.getSequence().length;c++){var d=a-1;try{d=b[this.getCharAt(c).charCodeAt(0)]}catch(e){if(y(e,NullPointerException))d=a-1;else throw e;}d>=a&&(d=a-1);this.dbinary[c*a+d]=1}});d(c$,"matrixEncode",
3371 function(a){if(this.isNa!=a.isDNA())throw C(jalview.datamodel.BinarySequence.InvalidSequenceTypeException,this,null,"matrix "+a.getClass().getCanonicalName()+" is not a valid matrix for "+(this.isNa?"nucleotide":"protein")+"sequences");this.matrixEncode(a.isDNA()?jalview.schemes.ResidueProperties.nucleotideIndex:jalview.schemes.ResidueProperties.aaIndex,a.getMatrix())},"jalview.schemes.ScoreMatrix");d(c$,"matrixEncode",function(a,b){for(var c=this.initMatrixGetNoRes(),d=0,e=this.getSequence().length;d<
3372 e;d++){var k=c-1;try{k=a[this.getCharAt(d).charCodeAt(0)]}catch(g){if(y(g,NullPointerException))k=c-1;else throw g;}k>=c&&(k=c-1);for(var h=0;h<c;h++)this.dbinary[d*c+h]=b[k][h]}},"~A,~A");d(c$,"toBinaryString",function(){for(var a="",b=0;b<this.binary.length;b++)a+=(new Integer(this.binary[b])).toString(),b<this.binary.length-1&&(a+=" ");return a});d(c$,"getDBinary",function(){return this.dbinary});c$.$BinarySequence$InvalidSequenceTypeException$=function(){A(self.c$);c$=s(function(){O(this,arguments);
3373 r(this,arguments)},jalview.datamodel.BinarySequence,"InvalidSequenceTypeException",Exception);c$=z()}});p("jalview.math");q(null,"jalview.math.Matrix",["jalview.util.Format","$.MessageManager","java.lang.Exception"],function(){c$=s(function(){this.value=null;this.cols=this.rows=0;this.e=this.d=null;this.maxIter=45;r(this,arguments)},jalview.math,"Matrix");m(c$,function(a,b,c){this.rows=b;this.cols=c;this.value=a},"~A,~N,~N");d(c$,"transpose",function(){for(var a=U(this.cols,this.rows,0),b=0;b<this.cols;b++)for(var c=
3374 0;c<this.rows;c++)a[b][c]=this.value[c][b];return new jalview.math.Matrix(a,this.cols,this.rows)});d(c$,"print",function(a){for(var b=0;b<this.rows;b++){for(var c=0;c<this.cols;c++)jalview.util.Format.printDouble(a,"%8.2f",this.value[b][c]);a.println()}},"java.io.PrintStream");d(c$,"preMultiply",function(a){for(var b=U(a.rows,this.cols,0),c=0;c<a.rows;c++)for(var d=0;d<this.cols;d++)for(var e=b[c][d]=0;e<a.cols;e++)b[c][d]+=a.value[c][e]*this.value[e][d];return new jalview.math.Matrix(b,a.rows,this.cols)},
3375 "jalview.math.Matrix");d(c$,"vectorPostMultiply",function(a){for(var b=U(a.length,0),c=0;c<a.length;c++)for(var d=b[c]=0;d<a.length;d++)b[c]+=this.value[c][d]*a[d];return b},"~A");d(c$,"postMultiply",function(a){for(var b=U(this.rows,a.cols,0),c=0;c<this.rows;c++)for(var d=0;d<a.cols;d++)for(var e=b[c][d]=0;e<this.rows;e++)b[c][d]+=this.value[c][e]*a.value[e][d];return new jalview.math.Matrix(b,this.cols,a.rows)},"jalview.math.Matrix");d(c$,"copy",function(){for(var a=U(this.rows,this.cols,0),b=0;b<
3376 this.rows;b++)for(var c=0;c<this.cols;c++)a[b][c]=this.value[b][c];return new jalview.math.Matrix(a,this.rows,this.cols)});d(c$,"tred",function(){var a=this.rows,b,c,d,e,k,g,h,j;this.d=U(this.rows,0);this.e=U(this.rows,0);for(e=a;2<=e;e--){b=e-1;d=g=0;if(1<b){for(c=1;c<=b;c++)d+=Math.abs(this.value[e-1][c-1]);if(0==d)this.e[e-1]=this.value[e-1][b-1];else{for(c=1;c<=b;c++)this.value[e-1][c-1]/=d,g+=this.value[e-1][c-1]*this.value[e-1][c-1];j=this.value[e-1][b-1];h=0<j?-1*Math.sqrt(g):Math.sqrt(g);
3377 this.e[e-1]=d*h;g-=j*h;this.value[e-1][b-1]=j-h;j=0;for(d=1;d<=b;d++){this.value[d-1][e-1]=this.value[e-1][d-1]/g;h=0;for(c=1;c<=d;c++)h+=this.value[d-1][c-1]*this.value[e-1][c-1];for(c=d+1;c<=b;c++)h+=this.value[c-1][d-1]*this.value[e-1][c-1];this.e[d-1]=h/g;j+=this.e[d-1]*this.value[e-1][d-1]}k=j/(g+g);for(d=1;d<=b;d++){j=this.value[e-1][d-1];h=this.e[d-1]-k*j;this.e[d-1]=h;for(c=1;c<=d;c++)this.value[d-1][c-1]-=j*this.e[c-1]+h*this.value[e-1][c-1]}}}else this.e[e-1]=this.value[e-1][b-1];this.d[e-
3378 1]=g}this.d[0]=0;this.e[0]=0;for(e=1;e<=a;e++){b=e-1;if(0!=this.d[e-1])for(d=1;d<=b;d++){h=0;for(c=1;c<=b;c++)h+=this.value[e-1][c-1]*this.value[c-1][d-1];for(c=1;c<=b;c++)this.value[c-1][d-1]-=h*this.value[c-1][e-1]}this.d[e-1]=this.value[e-1][e-1];for(d=this.value[e-1][e-1]=1;d<=b;d++)this.value[d-1][e-1]=0,this.value[e-1][d-1]=0}});d(c$,"tqli",function(){var a=this.rows,b,c,d,e,k,g,h,j,n,m,p;for(e=2;e<=a;e++)this.e[e-2]=this.e[e-1];this.e[a-1]=0;for(c=1;c<=a;c++){d=0;do{for(b=c;b<=a-1&&!(e=Math.abs(this.d[b-
3379 1])+Math.abs(this.d[b]),Math.abs(this.e[b-1])+e==e);b++);if(b!=c){d++;if(d==this.maxIter)throw new Exception(jalview.util.MessageManager.formatMessage("exception.matrix_too_many_iteration",E(-1,["tqli",Integer.$valueOf(this.maxIter).toString()])));j=(this.d[c]-this.d[c-1])/(2*this.e[c-1]);k=Math.sqrt(j*j+1);j=this.d[b-1]-this.d[c-1]+this.e[c-1]/(j+this.sign(k,j));g=m=1;h=0;for(e=b-1;e>=c;e--){n=g*this.e[e-1];p=m*this.e[e-1];Math.abs(n)>=Math.abs(j)?(m=j/n,k=Math.sqrt(m*m+1),this.e[e]=n*k,g=1/k,m*=
3380 g):(g=n/j,k=Math.sqrt(g*g+1),this.e[e]=j*k,m=1/k,g*=m);j=this.d[e]-h;k=(this.d[e-1]-j)*g+2*m*p;h=g*k;this.d[e]=j+h;j=m*k-p;for(k=1;k<=a;k++)n=this.value[k-1][e],this.value[k-1][e]=g*this.value[k-1][e-1]+m*n,this.value[k-1][e-1]=m*this.value[k-1][e-1]-g*n}this.d[c-1]-=h;this.e[c-1]=j;this.e[b-1]=0}}while(b!=c)}});d(c$,"tred2",function(){var a=this.rows,b,c,d,e,k,g,h,j;this.d=U(this.rows,0);this.e=U(this.rows,0);for(e=a-1;1<=e;e--){b=e-1;d=g=0;if(0<b){for(c=0;c<b;c++)d+=Math.abs(this.value[e][c]);if(0==
3381 d)this.e[e]=this.value[e][b];else{for(c=0;c<b;c++)this.value[e][c]/=d,g+=this.value[e][c]*this.value[e][c];j=this.value[e][b];h=0<j?-1*Math.sqrt(g):Math.sqrt(g);this.e[e]=d*h;g-=j*h;this.value[e][b]=j-h;for(d=j=0;d<b;d++){this.value[d][e]=this.value[e][d]/g;for(c=h=0;c<d;c++)h+=this.value[d][c]*this.value[e][c];for(c=d;c<b;c++)h+=this.value[c][d]*this.value[e][c];this.e[d]=h/g;j+=this.e[d]*this.value[e][d]}k=j/(g+g);for(d=0;d<b;d++){j=this.value[e][d];h=this.e[d]-k*j;this.e[d]=h;for(c=0;c<d;c++)this.value[d][c]-=
3382 j*this.e[c]+h*this.value[e][c]}}}else this.e[e]=this.value[e][b];this.d[e]=g}this.d[0]=0;for(e=this.e[0]=0;e<a;e++){b=e-1;if(0!=this.d[e])for(d=0;d<b;d++){for(c=h=0;c<b;c++)h+=this.value[e][c]*this.value[c][d];for(c=0;c<b;c++)this.value[c][d]-=h*this.value[c][e]}this.d[e]=this.value[e][e];this.value[e][e]=1;for(d=0;d<b;d++)this.value[d][e]=0,this.value[e][d]=0}});d(c$,"tqli2",function(){var a=this.rows,b,c,d,e,k,g,h,j,n,m,p;for(e=2;e<=a;e++)this.e[e-2]=this.e[e-1];this.e[a-1]=0;for(c=1;c<=a;c++){d=
3383 0;do{for(b=c;b<=a-1&&!(e=Math.abs(this.d[b-1])+Math.abs(this.d[b]),Math.abs(this.e[b-1])+e==e);b++);if(b!=c){d++;if(d==this.maxIter)throw new Exception(jalview.util.MessageManager.formatMessage("exception.matrix_too_many_iteration",E(-1,["tqli2",Integer.$valueOf(this.maxIter).toString()])));j=(this.d[c]-this.d[c-1])/(2*this.e[c-1]);k=Math.sqrt(j*j+1);j=this.d[b-1]-this.d[c-1]+this.e[c-1]/(j+this.sign(k,j));g=m=1;h=0;for(e=b-1;e>=c;e--){n=g*this.e[e-1];p=m*this.e[e-1];Math.abs(n)>=Math.abs(j)?(m=j/
3384 n,k=Math.sqrt(m*m+1),this.e[e]=n*k,g=1/k,m*=g):(g=n/j,k=Math.sqrt(g*g+1),this.e[e]=j*k,m=1/k,g*=m);j=this.d[e]-h;k=(this.d[e-1]-j)*g+2*m*p;h=g*k;this.d[e]=j+h;j=m*k-p;for(k=1;k<=a;k++)n=this.value[k-1][e],this.value[k-1][e]=g*this.value[k-1][e-1]+m*n,this.value[k-1][e-1]=m*this.value[k-1][e-1]-g*n}this.d[c-1]-=h;this.e[c-1]=j;this.e[b-1]=0}}while(b!=c)}});d(c$,"sign",function(a,b){return 0>b?-Math.abs(a):Math.abs(a)},"~N,~N");d(c$,"getColumn",function(a){for(var b=U(this.rows,0),c=0;c<this.rows;c++)b[c]=
3385 this.value[c][a];return b},"~N");d(c$,"printD",function(a){for(var b=0;b<this.rows;b++)jalview.util.Format.printDouble(a,"%15.4e",this.d[b])},"java.io.PrintStream");d(c$,"printE",function(a){for(var b=0;b<this.rows;b++)jalview.util.Format.printDouble(a,"%15.4e",this.e[b])},"java.io.PrintStream")});p("jalview.datamodel");c$=s(function(){this.isPlaceholder=!1;this.coord=this.sequence=null;r(this,arguments)},jalview.datamodel,"SequencePoint");m(c$,function(a,b){this.sequence=a;this.coord=b},"jalview.datamodel.SequenceI,~A");
3386 p("jalview.appletgui");q("awt2swing.Panel java.awt.event.ActionListener awt2swing.Button $.ScrollPane $.TextArea java.awt.BorderLayout java.util.Vector".split(" "),"jalview.appletgui.PairwiseAlignPanel","jalview.analysis.AlignSeq jalview.appletgui.AlignFrame jalview.datamodel.Alignment jalview.util.Format $.MessageManager java.awt.Font".split(" "),function(){c$=s(function(){this.borderLayout1=this.jPanel1=this.viewInEditorButton=this.textarea=this.scrollPane=this.ap=this.sequences=null;r(this,arguments)},
3387 jalview.appletgui,"PairwiseAlignPanel",awt2swing.Panel,java.awt.event.ActionListener);J(c$,function(){this.sequences=new java.util.Vector;this.scrollPane=new awt2swing.ScrollPane;this.textarea=new awt2swing.TextArea;this.viewInEditorButton=new awt2swing.Button;this.jPanel1=new awt2swing.Panel;this.borderLayout1=new java.awt.BorderLayout});m(c$,function(a){t(this,jalview.appletgui.PairwiseAlignPanel,[]);try{this.jbInit()}catch(b){if(y(b,Exception))b.printStackTrace();else throw b;}this.ap=a;this.sequences=
3388 new java.util.Vector;var c,d=a.av.getViewAsString(!0);c=null==a.av.getSelectionGroup()?a.av.getAlignment().getSequencesArray():a.av.getSelectionGroup().getSequencesInOrder(a.av.getAlignment());var e=Q(c.length,c.length,0),k=0,g=a.av.getSelectionGroup().getSize();a=a.av.getAlignment().isNucleotide()?"dna":"pep";for(var h=1;h<g;h++)for(var j=0;j<h;j++){var n=new jalview.analysis.AlignSeq(c[h],d[h],c[j],d[j],a);0==n.s1str.length||0==n.s2str.length||(n.calcScoreMatrix(),n.traceAlignment(),n.printAlignment(System.out),
3389 e[h][j]=n.getMaxScore()/n.getASeq1().length,k+=e[h][j],this.textarea.append(n.getOutput()),this.sequences.add(n.getAlignedSeq1()),this.sequences.add(n.getAlignedSeq1()))}if(2<g){System.out.println("Pairwise alignment scaled similarity score matrix\n");for(h=0;h<g;h++)jalview.util.Format.print(System.out,"%s \n",""+h+" "+c[h].getName());System.out.println("\n");for(h=0;h<g;h++)for(j=0;j<h;j++)jalview.util.Format.printDouble(System.out,"%7.3f",e[h][j]/k);System.out.println("\n")}},"jalview.appletgui.AlignmentPanel");
3390 e(c$,"actionPerformed",function(a){a.getSource()===this.viewInEditorButton&&this.viewInEditorButton_actionPerformed()},"java.awt.event.ActionEvent");d(c$,"viewInEditorButton_actionPerformed",function(){for(var a=Array(this.sequences.size()),b=0;b<this.sequences.size();b++)a[b]=this.sequences.elementAt(b);new jalview.appletgui.AlignFrame(new jalview.datamodel.Alignment(a),this.ap.av.applet,"Pairwise Aligned Sequences",!1)});d(c$,"jbInit",function(){this.setLayout(this.borderLayout1);this.textarea.setFont(new java.awt.Font("Monospaced",
3391 0,12));this.textarea.setText("");this.viewInEditorButton.setFont(new java.awt.Font("Verdana",0,12));this.viewInEditorButton.setLabel(jalview.util.MessageManager.getString("label.view_alignment_editor"));this.viewInEditorButton.addActionListener(this);this.add(this.scrollPane,"Center");this.scrollPane.add(this.textarea);this.add(this.jPanel1,"South");this.jPanel1.add(this.viewInEditorButton,null)})});p("jalview.appletgui");q(["jalview.appletgui.SliderPanel","java.awt.event.WindowListener","java.util.Stack"],
3392 "jalview.appletgui.RedundancyPanel","awt2swing.Frame jalview.analysis.AlignSeq jalview.appletgui.PaintRefresher jalview.bin.JalviewLite jalview.commands.EditCommand jalview.util.MessageManager java.awt.event.AdjustmentListener java.lang.Thread java.util.ArrayList $.Vector".split(" "),function(){c$=s(function(){this.redundantSeqs=this.frame=this.originalSequences=this.redundancy=this.historyList=null;r(this,arguments)},jalview.appletgui,"RedundancyPanel",jalview.appletgui.SliderPanel,[Runnable,java.awt.event.WindowListener]);
3393 J(c$,function(){this.historyList=new java.util.Stack});m(c$,function(a){t(this,jalview.appletgui.RedundancyPanel,[a,0,!1,null]);this.redundantSeqs=new java.util.Vector;this.ap=a;this.undoButton.setVisible(!0);this.applyButton.setVisible(!0);this.allGroupsCheck.setVisible(!1);this.label.setText(jalview.util.MessageManager.getString("label.enter_redundancy_threshold"));this.valueField.setText("100");this.slider.setVisibleAmount(1);this.slider.setMinimum(0);this.slider.setMaximum(100+this.slider.getVisibleAmount());
3394 this.slider.setValue(100);this.slider.addAdjustmentListener((H("jalview.appletgui.RedundancyPanel$1")?0:jalview.appletgui.RedundancyPanel.$RedundancyPanel$1$(),C(jalview.appletgui.RedundancyPanel$1,this,null)));this.frame=new awt2swing.Frame;this.frame.add(this);jalview.bin.JalviewLite.addFrame(this.frame,jalview.util.MessageManager.getString("label.redundancy_threshold_selection"),400,100);this.frame.addWindowListener(this);(new Thread(this)).start()},"jalview.appletgui.AlignmentPanel");e(c$,"run",
3395 function(){this.label.setText(jalview.util.MessageManager.getString("label.calculating"));this.slider.setVisible(!1);this.applyButton.setEnabled(!1);this.valueField.setVisible(!1);this.validate();var a=this.ap.av.getSelectionGroup(),b;null!=a&&1<=a.getSize()?(this.originalSequences=a.getSequencesInOrder(this.ap.av.getAlignment()),b=a.getStartRes(),a=a.getEndRes()):(this.originalSequences=this.ap.av.getAlignment().getSequencesArray(),b=0,a=this.ap.av.getAlignment().getWidth());this.redundancy=jalview.analysis.AlignSeq.computeRedundancyMatrix(this.originalSequences,
3396 null,b,a,!1);this.label.setText(jalview.util.MessageManager.getString("label.enter_redundancy_threshold"));this.slider.setVisible(!0);this.applyButton.setEnabled(!0);this.valueField.setVisible(!0);this.validate();this.sliderValueChanged()});d(c$,"sliderValueChanged",function(){if(null!=this.redundancy){for(var a=this.slider.getValue(),b=new java.util.ArrayList,c=0;c<this.redundancy.length;c++)a<=this.redundancy[c]&&b.add(this.originalSequences[c]);this.ap.idPanel.idCanvas.setHighlighted(b);jalview.appletgui.PaintRefresher.Refresh(this,
3397 this.ap.av.getSequenceSetId(),!0,!0)}});e(c$,"applyButton_actionPerformed",function(){var a=new java.util.Vector;this.undoButton.setEnabled(!0);for(var b=this.slider.getValue(),c=this.ap.av.getSelectionGroup(),d=0;d<this.redundancy.length;d++)b<=this.redundancy[d]&&a.addElement(this.originalSequences[d]);if(0<a.size()){for(var b=Array(a.size()),e=0,d=0;d<a.size();d++)b[d]=a.elementAt(d),b[d].getLength()>e&&(e=b[d].getLength());for(var e=new jalview.commands.EditCommand(jalview.util.MessageManager.getString("action.remove_redundancy"),
3398 jalview.commands.EditCommand.Action.CUT,b,0,e,this.ap.av.getAlignment()),k=this.ap.av.getAlignment(),d=0;d<a.size();d++)k.deleteSequence(b[d]),null!=c&&c.deleteSequence(b[d],!1);this.historyList.push(e);this.ap.alignFrame.addHistoryItem(e);jalview.appletgui.PaintRefresher.Refresh(this,this.ap.av.getSequenceSetId(),!0,!0);this.ap.av.firePropertyChange("alignment",null,this.ap.av.getAlignment().getSequences())}});e(c$,"undoButton_actionPerformed",function(){var a=this.historyList.pop();a.undoCommand(null);
3399 this.ap.av.getHistoryList().contains(a)&&(this.ap.av.getHistoryList().remove(a),this.ap.alignFrame.updateEditMenuBar(),this.ap.av.firePropertyChange("alignment",null,this.ap.av.getAlignment().getSequences()));this.ap.paintAlignment(!0);0==this.historyList.size()&&this.undoButton.setEnabled(!1)});d(c$,"valueField_actionPerformed",function(){try{var a=Integer.parseInt(this.valueField.getText());this.slider.setValue(a)}catch(b){if(y(b,Exception))this.valueField.setText(this.slider.getValue()+"");else throw b;
3400 }},"java.awt.event.ActionEvent");e(c$,"windowOpened",function(){},"java.awt.event.WindowEvent");e(c$,"windowClosing",function(){this.ap.idPanel.idCanvas.setHighlighted(null)},"java.awt.event.WindowEvent");e(c$,"windowClosed",function(){},"java.awt.event.WindowEvent");e(c$,"windowActivated",function(){},"java.awt.event.WindowEvent");e(c$,"windowDeactivated",function(){},"java.awt.event.WindowEvent");e(c$,"windowIconified",function(){},"java.awt.event.WindowEvent");e(c$,"windowDeiconified",function(){},
3401 "java.awt.event.WindowEvent");c$.$RedundancyPanel$1$=function(){A(self.c$);c$=L(jalview.appletgui,"RedundancyPanel$1",null,java.awt.event.AdjustmentListener);e(c$,"adjustmentValueChanged",function(){this.b$["jalview.appletgui.RedundancyPanel"].valueField.setText(this.b$["jalview.appletgui.RedundancyPanel"].slider.getValue()+"");this.b$["jalview.appletgui.RedundancyPanel"].sliderValueChanged()},"java.awt.event.AdjustmentEvent");c$=z()}});p("jalview.appletgui");q("jalview.appletgui.EmbmenuFrame java.awt.event.ActionListener $.ItemListener java.lang.Thread awt2swing.CheckboxMenuItem $.Menu $.MenuBar $.MenuItem $.ScrollPane java.awt.BorderLayout".split(" "),
3402 "jalview.appletgui.TreePanel","awt2swing.Frame jalview.analysis.NJTree jalview.api.analysis.ViewBasedAnalysisI jalview.appletgui.AlignFrame $.CutAndPasteTransfer $.FontChooser $.TreeCanvas jalview.bin.JalviewLite jalview.datamodel.Alignment jalview.io.NewickFile jalview.schemes.ResidueProperties jalview.util.MessageManager java.awt.Color $.Font".split(" "),function(){c$=s(function(){this.pwtype=this.$type=this.seq=null;this.end=this.start=0;this.av=this.ap=this.tree=this.treeCanvas=null;H("jalview.appletgui.TreePanel.TreeLoader")||
3403 jalview.appletgui.TreePanel.$TreePanel$TreeLoader$();this.inputData=this.newickOutput=this.fileMenu=this.fitToWindow=this.placeholdersMenu=this.distanceMenu=this.bootstrapMenu=this.fontSize=this.jMenu2=this.jMenuBar1=this.scrollPane=this.borderLayout1=null;r(this,arguments)},jalview.appletgui,"TreePanel",jalview.appletgui.EmbmenuFrame,[java.awt.event.ActionListener,java.awt.event.ItemListener]);J(c$,function(){this.borderLayout1=new java.awt.BorderLayout;this.scrollPane=new awt2swing.ScrollPane;this.jMenuBar1=
3404 new awt2swing.MenuBar;this.jMenu2=new awt2swing.Menu;this.fontSize=new awt2swing.MenuItem;this.bootstrapMenu=new awt2swing.CheckboxMenuItem;this.distanceMenu=new awt2swing.CheckboxMenuItem;this.placeholdersMenu=new awt2swing.CheckboxMenuItem;this.fitToWindow=new awt2swing.CheckboxMenuItem;this.fileMenu=new awt2swing.Menu;this.newickOutput=new awt2swing.MenuItem;this.inputData=new awt2swing.MenuItem});d(c$,"getTree",function(){return this.tree});d(c$,"finalize",function(){this.av=this.ap=null;K(this,
3405 jalview.appletgui.TreePanel,"finalize",[])});m(c$,function(a,b,c){t(this,jalview.appletgui.TreePanel,[]);try{this.jbInit(),this.setMenuBar(this.jMenuBar1)}catch(d){if(y(d,Exception))d.printStackTrace();else throw d;}this.initTreePanel(a,b,c,null)},"jalview.appletgui.AlignmentPanel,~S,~S");m(c$,function(a,b,c,d){t(this,jalview.appletgui.TreePanel,[]);try{this.jbInit(),this.setMenuBar(this.jMenuBar1)}catch(e){if(y(e,Exception))e.printStackTrace();else throw e;}this.initTreePanel(a,b,c,d)},"jalview.appletgui.AlignmentPanel,~S,~S,jalview.io.NewickFile");
3406 d(c$,"initTreePanel",function(a,b,c,d){this.ap=a;this.av=a.av;this.$type=b;this.pwtype=c;this.treeCanvas=new jalview.appletgui.TreeCanvas(a,this.scrollPane);C(jalview.appletgui.TreePanel.TreeLoader,this,null,d).start();this.embedMenuIfNeeded(this.treeCanvas);this.scrollPane.add(this.treeCanvas,"Center")},"jalview.appletgui.AlignmentPanel,~S,~S,jalview.io.NewickFile");d(c$,"showOriginalData",function(){if(null!=this.tree.seqData){var a="-";try{a=this.av.getGapCharacter()}catch(b){if(!y(b,Exception))throw b;
3407 }a=this.tree.seqData.getAlignmentAndColumnSelection(a);if(null!=a&&null!=a[0]){var c=new jalview.datamodel.Alignment(a[0]);(new jalview.appletgui.AlignFrame(c,this.av.applet,"Original Data for Tree",!1)).viewport.setHiddenColumns(a[1])}}else System.out.println("Original Tree Data not available")});e(c$,"actionPerformed",function(a){a.getSource()===this.newickOutput?this.newickOutput_actionPerformed():a.getSource()===this.fontSize?this.fontSize_actionPerformed():a.getSource()===this.inputData&&this.showOriginalData()},
3408 "java.awt.event.ActionEvent");e(c$,"itemStateChanged",function(a){a.getSource()===this.fitToWindow?this.treeCanvas.fitToWindow=this.fitToWindow.getState():a.getSource()===this.distanceMenu?this.treeCanvas.setShowDistances(this.distanceMenu.getState()):a.getSource()===this.bootstrapMenu?this.treeCanvas.setShowBootstrap(this.bootstrapMenu.getState()):a.getSource()===this.placeholdersMenu&&this.treeCanvas.setMarkPlaceholders(this.placeholdersMenu.getState());this.treeCanvas.repaint()},"java.awt.event.ItemEvent");
3409 d(c$,"newickOutput_actionPerformed",function(){var a=(new jalview.io.NewickFile(this.tree.getTopNode())).print(!1,!0),b=new jalview.appletgui.CutAndPasteTransfer(!1,null);b.setText(a);a=new awt2swing.Frame;a.add(b);jalview.bin.JalviewLite.addFrame(a,this.$type+" "+this.pwtype,500,100)});d(c$,"getTreeFont",function(){return this.treeCanvas.$font});d(c$,"setTreeFont",function(a){this.treeCanvas.$font=a;this.treeCanvas.repaint()},"java.awt.Font");d(c$,"fontSize_actionPerformed",function(){null!=this.treeCanvas&&
3410 new jalview.appletgui.FontChooser(this)});d(c$,"jbInit",function(){this.setLayout(this.borderLayout1);this.setBackground(java.awt.Color.white);this.setFont(new java.awt.Font("Verdana",0,12));this.jMenu2.setLabel(jalview.util.MessageManager.getString("action.view"));this.fontSize.setLabel(jalview.util.MessageManager.getString("action.font"));this.fontSize.addActionListener(this);this.bootstrapMenu.setLabel(jalview.util.MessageManager.getString("label.show_bootstrap_values"));this.bootstrapMenu.addItemListener(this);
3411 this.distanceMenu.setLabel(jalview.util.MessageManager.getString("label.show_distances"));this.distanceMenu.addItemListener(this);this.placeholdersMenu.setLabel(jalview.util.MessageManager.getString("label.mark_unassociated_leaves"));this.placeholdersMenu.addItemListener(this);this.fitToWindow.setState(!0);this.fitToWindow.setLabel(jalview.util.MessageManager.getString("label.fit_to_window"));this.fitToWindow.addItemListener(this);this.fileMenu.setLabel(jalview.util.MessageManager.getString("action.file"));
3412 this.newickOutput.setLabel(jalview.util.MessageManager.getString("label.newick_format"));this.newickOutput.addActionListener(this);this.inputData.setLabel(jalview.util.MessageManager.getString("label.input_data"));this.add(this.scrollPane,"Center");this.jMenuBar1.add(this.fileMenu);this.jMenuBar1.add(this.jMenu2);this.jMenu2.add(this.fitToWindow);this.jMenu2.add(this.fontSize);this.jMenu2.add(this.distanceMenu);this.jMenu2.add(this.bootstrapMenu);this.jMenu2.add(this.placeholdersMenu);this.fileMenu.add(this.newickOutput);
3413 this.fileMenu.add(this.inputData);this.inputData.addActionListener(this)});c$.$TreePanel$TreeLoader$=function(){A(self.c$);c$=s(function(){O(this,arguments);this.odata=this.newtree=null;r(this,arguments)},jalview.appletgui.TreePanel,"TreeLoader",Thread);m(c$,function(a){t(this,jalview.appletgui.TreePanel.TreeLoader,[]);this.newtree=a},"jalview.io.NewickFile");e(c$,"run",function(){if(null!=this.newtree)this.b$["jalview.appletgui.TreePanel"].tree=null==this.odata?new jalview.analysis.NJTree(this.b$["jalview.appletgui.TreePanel"].av.getAlignment().getSequencesArray(),
3414 this.newtree):new jalview.analysis.NJTree(this.b$["jalview.appletgui.TreePanel"].av.getAlignment().getSequencesArray(),this.odata,this.newtree);else{var a,b,c;a=null!=this.b$["jalview.appletgui.TreePanel"].av.getSelectionGroup()&&1<this.b$["jalview.appletgui.TreePanel"].av.getSelectionGroup().getSize();var d=this.b$["jalview.appletgui.TreePanel"].av.getAlignmentView(a);a?(a=this.b$["jalview.appletgui.TreePanel"].av.getSelectionGroup().getStartRes(),b=this.b$["jalview.appletgui.TreePanel"].av.getSelectionGroup().getEndRes()+
3415 1,c=this.b$["jalview.appletgui.TreePanel"].av.getSelectionGroup().getSequencesInOrder(this.b$["jalview.appletgui.TreePanel"].av.getAlignment())):(a=0,b=this.b$["jalview.appletgui.TreePanel"].av.getAlignment().getWidth(),c=this.b$["jalview.appletgui.TreePanel"].av.getAlignment().getSequencesArray());var e=jalview.schemes.ResidueProperties.getScoreModel(this.b$["jalview.appletgui.TreePanel"].pwtype);if(v(e,jalview.api.analysis.ViewBasedAnalysisI)){try{e=e.getClass().newInstance(),e.configureFromAlignmentView(this.b$["jalview.appletgui.TreePanel"].treeCanvas.ap)}catch(k){if(y(k,
3416 Exception))System.err.println("Couldn't create a scoremodel instance for "+e.getName()),k.printStackTrace();else throw k;}this.b$["jalview.appletgui.TreePanel"].tree=new jalview.analysis.NJTree(c,d,this.b$["jalview.appletgui.TreePanel"].$type,this.b$["jalview.appletgui.TreePanel"].pwtype,e,a,b)}else this.b$["jalview.appletgui.TreePanel"].tree=new jalview.analysis.NJTree(c,d,this.b$["jalview.appletgui.TreePanel"].$type,this.b$["jalview.appletgui.TreePanel"].pwtype,null,a,b)}this.b$["jalview.appletgui.TreePanel"].tree.reCount(this.b$["jalview.appletgui.TreePanel"].tree.getTopNode());
3417 this.b$["jalview.appletgui.TreePanel"].tree.findHeight(this.b$["jalview.appletgui.TreePanel"].tree.getTopNode());this.b$["jalview.appletgui.TreePanel"].treeCanvas.setTree(this.b$["jalview.appletgui.TreePanel"].tree);null!=this.newtree&&(a=this.newtree.HasDistances()&&this.b$["jalview.appletgui.TreePanel"].av.applet.getDefaultParameter("showTreeDistances",this.newtree.HasDistances()),b=this.newtree.HasBootstrap()&&this.b$["jalview.appletgui.TreePanel"].av.applet.getDefaultParameter("showTreeBootstraps",
3418 this.newtree.HasBootstrap()),this.b$["jalview.appletgui.TreePanel"].distanceMenu.setState(a),this.b$["jalview.appletgui.TreePanel"].bootstrapMenu.setState(b),this.b$["jalview.appletgui.TreePanel"].treeCanvas.setShowBootstrap(b),this.b$["jalview.appletgui.TreePanel"].treeCanvas.setShowDistances(a),this.b$["jalview.appletgui.TreePanel"].treeCanvas.setMarkPlaceholders(this.b$["jalview.appletgui.TreePanel"].av.applet.getDefaultParameter("showUnlinkedTreeNodes",!1)));this.b$["jalview.appletgui.TreePanel"].treeCanvas.repaint();
3419 this.b$["jalview.appletgui.TreePanel"].av.setCurrentTree(this.b$["jalview.appletgui.TreePanel"].tree)});c$=z()}});p("jalview.analysis");q(["java.util.Vector"],["jalview.analysis.Cluster","$.NJTree"],"jalview.analysis.SequenceIdMatcher jalview.datamodel.AlignmentView $.CigarArray $.NodeTransformI $.SeqCigar $.Sequence $.SequenceI $.SequenceNode jalview.io.NewickFile jalview.schemes.ResidueProperties jalview.util.Format java.lang.StringBuffer".split(" "),function(){c$=s(function(){this.done=this.seqData=
3420 this.sequence=this.$cluster=null;this.noClus=this.noseqs=0;this.distance=null;this.rj=this.ri=this.minj=this.mini=0;this.top=this.maxdist=this.groups=null;this.ycount=this.maxheight=this.maxDistValue=0;this.leaves=this.found=this.pwtype=this.type=this.node=null;this.hasDistances=!0;this.hasBootstrap=!1;this.hasRootDistance=!0;this._lylimit=this._lycount=0;r(this,arguments)},jalview.analysis,"NJTree");J(c$,function(){this.groups=new java.util.Vector});m(c$,function(a,b,c){this.construct(a,c);null!=
3421 b&&(this.seqData=b)},"~A,jalview.datamodel.AlignmentView,jalview.io.NewickFile");m(c$,function(a,b){this.sequence=a;this.top=b.getTree();this.hasDistances=b.HasDistances();this.hasBootstrap=b.HasBootstrap();this.hasRootDistance=b.HasRootDistance();this.maxheight=this.findHeight(this.top);var c=new jalview.analysis.SequenceIdMatcher(a),d=new java.util.Vector;this.findLeaves(this.top,d);for(var e=0,k=a.length,g,h,j,n=new java.util.Vector,m=0;e<d.size();)g=d.elementAt(e++),j=g.getName(),h=null,-1<k&&
3422 (h=c.findIdMatch(j)),null!=h?(g.setElement(h),n.contains(h)?m++:(n.addElement(h),k--)):(g.setElement(new jalview.datamodel.Sequence(j,"THISISAPLACEHLDER")),g.setPlaceholder(!0))},"~A,jalview.io.NewickFile");m(c$,function(a,b,c,d,e,k,g){this.sequence=a;this.node=new java.util.Vector;this.type=c;this.pwtype=d;if(null!=b)this.seqData=b;else{b=Array(a.length);for(var h=0;h<a.length;h++)b[h]=new jalview.datamodel.SeqCigar(a[h],k,g);b=new jalview.datamodel.CigarArray(b);b.addOperation("M",g-k+1);this.seqData=
3423 new jalview.datamodel.AlignmentView(b,k)}c.equals("NJ");null==e&&!d.equals("PID")&&jalview.schemes.ResidueProperties.getScoreMatrix(d);h=0;for(this.done=w(a.length,0);h<a.length&&null!=a[h];)this.done[h]=0,h++;this.noseqs=h++;this.distance=this.findDistances(e);this.makeLeaves();this.noClus=this.$cluster.size();this.cluster()},"~A,jalview.datamodel.AlignmentView,~S,~S,jalview.api.analysis.ScoreModelI,~N,~N");e(c$,"toString",function(){return(new jalview.io.NewickFile(this.getTopNode())).print(this.isHasBootstrap(),
3424 this.isHasDistances(),this.isHasRootDistance())});d(c$,"UpdatePlaceHolders",function(a){var b=new java.util.Vector;this.findLeaves(this.top,b);for(var c=b.size(),d=null,e=0;e<c;){var k=b.elementAt(e++);if(a.contains(k.element()))k.setPlaceholder(!1);else{if(null==d){for(var d=Array(a.size()),g=0;g<d.length;g++)d[g]=a.get(g);d=new jalview.analysis.SequenceIdMatcher(d)}g=d.findIdMatch(k.getName());null!=g?(k.isPlaceholder(),k.setPlaceholder(!1),k.setElement(g)):(k.isPlaceholder()||k.setElement(new jalview.datamodel.Sequence(k.getName(),
3425 "THISISAPLACEHLDER")),k.setPlaceholder(!0))}}},"java.util.List");d(c$,"renameAssociatedNodes",function(){this.applyToNodes((H("jalview.analysis.NJTree$1")?0:jalview.analysis.NJTree.$NJTree$1$(),C(jalview.analysis.NJTree$1,this,null)))});d(c$,"cluster",function(){for(;2<this.noClus;){this.type.equals("NJ")?this.findMinNJDistance():this.findMinDistance();var a=this.joinClusters(this.mini,this.minj);this.done[this.minj]=1;this.$cluster.setElementAt(null,this.minj);this.$cluster.setElementAt(a,this.mini);
3426 this.noClus--}for(var a=!1,b=-1,c=-1,d=0;d<this.noseqs;d++)1!=this.done[d]&&(!1==a?(c=d,a=!0):b=d);this.joinClusters(b,c);this.top=this.node.elementAt(b);this.reCount(this.top);this.findHeight(this.top);this.findMaxDist(this.top)});d(c$,"joinClusters",function(a,b){for(var c=this.distance[a][b],d=this.$cluster.elementAt(a).value.length,e=this.$cluster.elementAt(b).value.length,k=w(d+e,0),g=0;g<d;g++)k[g]=this.$cluster.elementAt(a).value[g];for(g=d;g<d+e;g++)k[g]=this.$cluster.elementAt(b).value[g-
3427 d];d=new jalview.analysis.Cluster(k);this.ri=this.findr(a,b);this.rj=this.findr(b,a);this.type.equals("NJ")?this.findClusterNJDistance(a,b):this.findClusterDistance(a,b);e=new jalview.datamodel.SequenceNode;e.setLeft(this.node.elementAt(a));e.setRight(this.node.elementAt(b));k=this.node.elementAt(a);g=this.node.elementAt(b);this.type.equals("NJ")?this.findNewNJDistances(k,g,c):this.findNewDistances(k,g,c);k.setParent(e);g.setParent(e);this.node.setElementAt(e,a);return d},"~N,~N");d(c$,"findNewNJDistances",
3428 function(a,b,c){a.dist=(c+this.ri-this.rj)/2;b.dist=c-a.dist;0>a.dist&&(a.dist=0);0>b.dist&&(b.dist=0)},"jalview.datamodel.SequenceNode,jalview.datamodel.SequenceNode,~N");d(c$,"findNewDistances",function(a,b,c){for(var d=0,e=0,k=a,g=b;null!=k;)d+=k.dist,k=k.left();for(;null!=g;)e+=g.dist,g=g.left();a.dist=c/2-d;b.dist=c/2-e},"jalview.datamodel.SequenceNode,jalview.datamodel.SequenceNode,~N");d(c$,"findClusterDistance",function(a,b){for(var c=this.$cluster.elementAt(a).value.length,d=this.$cluster.elementAt(b).value.length,
3429 e=Q(this.noseqs,0),k=0;k<this.noseqs;k++)e[k]=k!=a&&k!=b?(this.distance[a][k]*c+this.distance[b][k]*d)/(c+d):0;for(c=0;c<this.noseqs;c++)this.distance[a][c]=e[c],this.distance[c][a]=e[c]},"~N,~N");d(c$,"findClusterNJDistance",function(a,b){for(var c=Q(this.noseqs,0),d=0;d<this.noseqs;d++)c[d]=d!=a&&d!=b?(this.distance[a][d]+this.distance[b][d]-this.distance[a][b])/2:0;for(d=0;d<this.noseqs;d++)this.distance[a][d]=c[d],this.distance[d][a]=c[d]},"~N,~N");d(c$,"findr",function(a,b){for(var c=1,d=0;d<
3430 this.noseqs;d++)d!=a&&(d!=b&&1!=this.done[d])&&(c+=this.distance[a][d]);2<this.noClus&&(c/=this.noClus-2);return c},"~N,~N");d(c$,"findMinNJDistance",function(){for(var a=1E5,b=0;b<this.noseqs-1;b++)for(var c=b+1;c<this.noseqs;c++)if(1!=this.done[b]&&1!=this.done[c]){var d=this.distance[b][c]-(this.findr(b,c)+this.findr(c,b));d<a&&(this.mini=b,this.minj=c,a=d)}return a});d(c$,"findMinDistance",function(){for(var a=1E5,b=0;b<this.noseqs-1;b++)for(var c=b+1;c<this.noseqs;c++)1!=this.done[b]&&1!=this.done[c]&&
3431 this.distance[b][c]<a&&(this.mini=b,this.minj=c,a=this.distance[b][c]);return a});d(c$,"findDistances",function(a){var b=Q(this.noseqs,this.noseqs,0);null==a&&(a=jalview.schemes.ResidueProperties.getScoreModel(this.pwtype),null==a&&(a=jalview.schemes.ResidueProperties.getScoreMatrix("BLOSUM62")));return b=a.findDistances(this.seqData)},"jalview.api.analysis.ScoreModelI");d(c$,"makeLeaves",function(){this.$cluster=new java.util.Vector;for(var a=0;a<this.noseqs;a++){var b=new jalview.datamodel.SequenceNode;
3432 b.setElement(this.sequence[a]);b.setName(this.sequence[a].getName());this.node.addElement(b);b=w(1,0);b[0]=a;b=new jalview.analysis.Cluster(b);this.$cluster.addElement(b)}});d(c$,"findLeaves",function(a,b){if(null==a)return b;null==a.left()&&null==a.right()?b.addElement(a):(this.findLeaves(a.left(),b),this.findLeaves(a.right(),b));return b},"jalview.datamodel.SequenceNode,java.util.Vector");d(c$,"findLeaf",function(a,b){return this.found=this._findLeaf(a,b)},"jalview.datamodel.SequenceNode,~N");d(c$,
3433 "_findLeaf",function(a,b){if(null==a)return null;a.ycount==b?this.found=a.element():(this._findLeaf(a.left(),b),this._findLeaf(a.right(),b));return this.found},"jalview.datamodel.SequenceNode,~N");d(c$,"printNode",function(a){null!=a&&(null==a.left()&&null==a.right()?(System.out.println("Leaf = "+a.element().getName()),System.out.println("Dist "+a.dist),System.out.println("Boot "+a.getBootstrap())):(System.out.println("Dist "+a.dist),this.printNode(a.left()),this.printNode(a.right())))},"jalview.datamodel.SequenceNode");
3434 d(c$,"findMaxDist",function(a){if(null!=a)if(null==a.left()&&null==a.right()){var b=a.dist;b>this.maxDistValue&&(this.maxdist=a,this.maxDistValue=b)}else this.findMaxDist(a.left()),this.findMaxDist(a.right())},"jalview.datamodel.SequenceNode");d(c$,"getGroups",function(){return this.groups});d(c$,"getMaxHeight",function(){return this.maxheight});d(c$,"groupNodes",function(a,b){null!=a&&(a.height/this.maxheight>b?this.groups.addElement(a):(this.groupNodes(a.left(),b),this.groupNodes(a.right(),b)))},
3435 "jalview.datamodel.SequenceNode,~N");d(c$,"findHeight",function(a){if(null==a)return this.maxheight;if(null==a.left()&&null==a.right()){if(a.height=a.parent().height+a.dist,a.height>this.maxheight)return a.height}else null!=a.parent()?a.height=a.parent().height+a.dist:(this.maxheight=0,a.height=0),this.maxheight=this.findHeight(a.left()),this.maxheight=this.findHeight(a.right());return this.maxheight},"jalview.datamodel.SequenceNode");d(c$,"reRoot",function(){if(null!=this.maxdist){this.ycount=0;
3436 var a=this.maxdist.dist,b=new jalview.datamodel.SequenceNode;b.setParent(null);var c=this.maxdist.parent();this.changeDirection(c,this.maxdist);System.out.println("Printing reversed tree");this.printN(c);c.dist=a/2;this.maxdist.dist=a/2;c.setParent(b);this.maxdist.setParent(b);b.setRight(c);b.setLeft(this.maxdist);this.top=b;this.ycount=0;this.reCount(this.top);this.findHeight(this.top)}return this.top});d(c$,"hasOriginalSequenceData",function(){return null!=this.seqData});d(c$,"printOriginalSequenceData",
3437 function(a){if(null==this.seqData)return null;var b=new StringBuffer;a=this.seqData.getSequenceStrings(a);for(var c=0;c<a.length;c++)b.append((new jalview.util.Format("%-15s")).form(this.sequence[c].getName())),b.append(" "+a[c]+"\n");return b.toString()},"~S");d(c$,"printN",function(a){null!=a&&(null!=a.left()&&null!=a.right()?(this.printN(a.left()),this.printN(a.right())):System.out.println(" name = "+a.element().getName()),System.out.println(" dist = "+a.dist+" "+a.count+" "+a.height))},"jalview.datamodel.SequenceNode");
3438 d(c$,"reCount",function(a){this._lycount=this.ycount=0;this._reCount(a)},"jalview.datamodel.SequenceNode");d(c$,"_reCount",function(a){if(null!=a){this._lycount++;if(null!=a.left()&&null!=a.right()){this._reCount(a.left());this._reCount(a.right());var b=a.left(),c=a.right();a.count=b.count+c.count;a.ycount=(b.ycount+c.ycount)/2}else a.count=1,a.ycount=this.ycount++;this._lycount--}},"jalview.datamodel.SequenceNode");d(c$,"swapNodes",function(a){if(null!=a){var b=a.left();a.setLeft(a.right());a.setRight(b)}},
3439 "jalview.datamodel.SequenceNode");d(c$,"changeDirection",function(a,b){if(null!=a)if(a.parent()!==this.top){this.changeDirection(a.parent(),a);var c=a.parent();b===a.left()?(a.setParent(b),a.setLeft(c)):b===a.right()&&(a.setParent(b),a.setRight(c))}else b===a.left()?(a.setParent(a.left()),this.top.left()===a?a.setRight(this.top.right()):a.setRight(this.top.left())):(a.setParent(a.right()),this.top.left()===a?a.setLeft(this.top.right()):a.setLeft(this.top.left()))},"jalview.datamodel.SequenceNode,jalview.datamodel.SequenceNode");
3440 d(c$,"getMaxDist",function(){return this.maxdist});d(c$,"getTopNode",function(){return this.top});d(c$,"isHasDistances",function(){return this.hasDistances});d(c$,"isHasBootstrap",function(){return this.hasBootstrap});d(c$,"isHasRootDistance",function(){return this.hasRootDistance});d(c$,"applyToNodes",function(a){for(var b=this.node.elements();b.hasMoreElements();a.transform(b.nextElement()));},"jalview.datamodel.NodeTransformI");c$.$NJTree$1$=function(){A(self.c$);c$=L(jalview.analysis,"NJTree$1",
3441 null,jalview.datamodel.NodeTransformI);d(c$,"transform",function(a){var b=a.element();null!=b&&v(b,jalview.datamodel.SequenceI)&&a.setName(b.getName())},"jalview.datamodel.BinaryNode");c$=z()};c$=s(function(){this.value=null;r(this,arguments)},jalview.analysis,"Cluster");m(c$,function(a){this.value=a},"~A")});p("jalview.datamodel");M(jalview.datamodel,"NodeTransformI");p("jalview.appletgui");q(["awt2swing.Panel","java.awt.event.MouseListener","$.MouseMotionListener","java.util.Hashtable"],"jalview.appletgui.TreeCanvas",
3442 "awt2swing.Util jalview.analysis.Conservation jalview.appletgui.PaintRefresher jalview.datamodel.SequenceGroup $.SequenceI $.SequenceNode jalview.schemes.ColourSchemeProperty $.ResidueProperties $.UserColourScheme jalview.util.Format $.MappingUtils java.awt.Color $.Dimension $.Point $.Rectangle java.util.Vector".split(" "),function(){c$=s(function(){this.$font=this.av=this.scrollPane=this.tree=null;this.fitToWindow=!0;this.markPlaceholders=this.showBootstrap=this.showDistances=!1;this.offx=20;this.threshold=
3443 this.offy=0;this.longestName=null;this.labelLength=-1;this.ap=this.highlightNode=this.nodeHash=this.nameHash=null;r(this,arguments)},jalview.appletgui,"TreeCanvas",awt2swing.Panel,[java.awt.event.MouseListener,java.awt.event.MouseMotionListener]);J(c$,function(){this.nameHash=new java.util.Hashtable;this.nodeHash=new java.util.Hashtable});m(c$,function(a,b){t(this,jalview.appletgui.TreeCanvas,[]);this.ap=a;this.av=a.av;this.$font=this.av.getFont();this.scrollPane=b;this.addMouseListener(this);this.addMouseMotionListener(this);
3444 this.setLayout(null);jalview.appletgui.PaintRefresher.Register(this,this.av.getSequenceSetId())},"jalview.appletgui.AlignmentPanel,awt2swing.ScrollPane");d(c$,"treeSelectionChanged",function(a){var b=this.av.getSelectionGroup();null==b&&(b=new jalview.datamodel.SequenceGroup,this.av.setSelectionGroup(b));b.setEndRes(this.av.getAlignment().getWidth()-1);b.addOrRemove(a,!0)},"jalview.datamodel.SequenceI");d(c$,"setTree",function(a){this.tree=a;a.findHeight(a.getTopNode());a=a.findLeaves(a.getTopNode(),
3445 new java.util.Vector);var b=!1;this.longestName="";for(var c=0;c<a.size();c++){var d=a.elementAt(c);d.isPlaceholder()&&(b=!0);this.longestName.length<d.element().getName().length&&(this.longestName=" * "+d.element().getName())}this.setMarkPlaceholders(b)},"jalview.analysis.NJTree");d(c$,"drawNode",function(a,b,c,d,e,k,g){if(null!=b)if(null==b.left()&&null==b.right()){var h=b.height;e=b.dist;var j=I((h-e)*d)+k,n=I(h*d)+k;e=I(b.ycount*c)+g;v(b.element(),jalview.datamodel.SequenceI)?(d=b.element(),this.av.getSequenceColour(d)===
3446 java.awt.Color.white?a.setColor(java.awt.Color.black):a.setColor(this.av.getSequenceColour(d).darker())):a.setColor(java.awt.Color.black);a.drawLine(j,e,n,e);d="";this.showDistances&&0<b.dist&&(d=(new jalview.util.Format("%-.2f")).formDouble(b.dist));this.showBootstrap&&(k=b.getBootstrap(),-1<k&&(this.showDistances&&(d+=" : "),d+=String.valueOf(b.getBootstrap())));d.equals("")||awt2swing.Util.drawString(a,d,j+2,e-2);j=this.markPlaceholders&&b.isPlaceholder()?" * "+b.getName():b.getName();k=a.getFontMetrics(this.$font);
3447 d=k.stringWidth(j)+3;k=k.getHeight();h=new java.awt.Rectangle(n+10,e-k,d,k);this.nameHash.put(b.element(),h);h=this.av.getSelectionGroup();null!=h&&h.getSequences(null).contains(b.element())&&(a.setColor(java.awt.Color.gray),a.fillRect(n+10,e-k+3,d,k),a.setColor(java.awt.Color.white));awt2swing.Util.drawString(a,j,n+10,e);a.setColor(java.awt.Color.black)}else{this.drawNode(a,b.left(),c,d,e,k,g);this.drawNode(a,b.right(),c,d,e,k,g);h=b.height;e=b.dist;j=I((h-e)*d)+k;n=I(h*d)+k;e=I(b.ycount*c)+g;a.setColor(b.color.darker());
3448 a.drawLine(j,e,n,e);b===this.highlightNode?a.fillRect(n-3,e-3,6,6):a.fillRect(n-2,e-2,4,4);var m=I(b.left().ycount*c)+g;c=I(b.right().ycount*c)+g;n=new java.awt.Rectangle(n-2,e-2,5,5);this.nodeHash.put(b,n);a.drawLine(I(h*d)+k,m,I(h*d)+k,c);d="";this.showDistances&&0<b.dist&&(d=(new jalview.util.Format("%-.2f")).formDouble(b.dist));this.showBootstrap&&(k=b.getBootstrap(),-1<k&&(this.showDistances&&(d+=" : "),d+=String.valueOf(b.getBootstrap())));d.equals("")||awt2swing.Util.drawString(a,d,j+2,e-2)}},
3449 "java.awt.Graphics,jalview.datamodel.SequenceNode,~N,~N,~N,~N,~N");d(c$,"findElement",function(a,b){for(var c=this.nameHash.keys();c.hasMoreElements();){var d=c.nextElement(),e=this.nameHash.get(d);if(a>=e.x&&a<=e.x+e.width&&b>=e.y&&b<=e.y+e.height)return d}for(c=this.nodeHash.keys();c.hasMoreElements();)if(d=c.nextElement(),e=this.nodeHash.get(d),a>=e.x&&a<=e.x+e.width&&b>=e.y&&b<=e.y+e.height)return d;return null},"~N,~N");d(c$,"pickNodes",function(a){var b=this.getSize().width,c=this.getSize().height,
3450 d=this.tree.getTopNode(),e=(0.8*b-2*this.offx)/this.tree.getMaxHeight();0==d.count&&(d.count=d.left().count+d.right().count);this.pickNode(a,d,(c-this.offy)/d.count,e,b,this.offx,this.offy)},"java.awt.Rectangle");d(c$,"pickNode",function(a,b,c,d,e,k,g){null!=b&&(null==b.left()&&null==b.right()?(d=I(b.height*d)+k,c=I(b.ycount*c)+g,a.contains(new java.awt.Point(d,c))&&v(b.element(),jalview.datamodel.SequenceI)&&(a=b.element(),b=this.av.getSelectionGroup(),null!=b&&b.addOrRemove(a,!0))):(this.pickNode(a,
3451 b.left(),c,d,e,k,g),this.pickNode(a,b.right(),c,d,e,k,g)))},"java.awt.Rectangle,jalview.datamodel.SequenceNode,~N,~N,~N,~N,~N");d(c$,"setColor",function(a,b){null!=a&&(null==a.left()&&null==a.right()?(a.color=b,v(a.element(),jalview.datamodel.SequenceI)&&this.av.setSequenceColour(a.element(),b)):(a.color=b,this.setColor(a.left(),b),this.setColor(a.right(),b)))},"jalview.datamodel.SequenceNode,java.awt.Color");e(c$,"update",function(a){this.paint(a)},"java.awt.Graphics");e(c$,"paintComponent",function(a){if(null!=
3452 this.tree){0==this.nameHash.size()&&this.repaint();var b=this.scrollPane.getSize().width,c=this.scrollPane.getSize().height;this.fitToWindow||(c=a.getFontMetrics(this.$font).getHeight()*this.nameHash.size());this.getSize().width>b?(this.setSize(new java.awt.Dimension(b,c)),this.scrollPane.validate()):(this.setSize(new java.awt.Dimension(b,c)),a.setFont(this.$font),this.draw(a,b,c),this.validate())}},"java.awt.Graphics");d(c$,"draw",function(a,b,c){this.offy=this.$font.getSize()+10;a.setColor(java.awt.Color.white);
3453 a.fillRect(0,0,b,c);this.labelLength=a.getFontMetrics(this.$font).stringWidth(this.longestName)+20;var d=(b-this.labelLength-2*this.offx)/this.tree.getMaxHeight(),e=this.tree.getTopNode();0==e.count&&(e.count=e.left().count+e.right().count);c=(c-this.offy)/e.count;this.drawNode(a,this.tree.getTopNode(),c,d,b,this.offx,this.offy);0!=this.threshold&&(this.av.getCurrentTree()===this.tree?a.setColor(java.awt.Color.red):a.setColor(java.awt.Color.gray),b=I(this.threshold*(this.getSize().width-this.labelLength-
3454 2*this.offx)+this.offx),a.drawLine(b,0,b,this.getSize().height))},"java.awt.Graphics,~N,~N");e(c$,"mouseReleased",function(){},"java.awt.event.MouseEvent");e(c$,"mouseEntered",function(){},"java.awt.event.MouseEvent");e(c$,"mouseExited",function(){},"java.awt.event.MouseEvent");e(c$,"mouseClicked",function(a){if(null!=this.highlightNode){if(1<a.getClickCount())this.tree.swapNodes(this.highlightNode),this.tree.reCount(this.tree.getTopNode()),this.tree.findHeight(this.tree.getTopNode());else{a=new java.util.Vector;
3455 this.tree.findLeaves(this.highlightNode,a);for(var b=0;b<a.size();b++){var c=a.elementAt(b).element();this.treeSelectionChanged(c)}}jalview.appletgui.PaintRefresher.Refresh(this,this.av.getSequenceSetId());this.repaint();this.av.sendSelection()}},"java.awt.event.MouseEvent");e(c$,"mouseDragged",function(){},"java.awt.event.MouseEvent");e(c$,"mouseMoved",function(a){this.av.setCurrentTree(this.tree);a=this.findElement(a.getX(),a.getY());v(a,jalview.datamodel.SequenceNode)?(this.highlightNode=a,this.repaint()):
3456 null!=this.highlightNode&&(this.highlightNode=null,this.repaint())},"java.awt.event.MouseEvent");e(c$,"mousePressed",function(a){this.av.setCurrentTree(this.tree);var b=a.getX();a=a.getY();a=this.findElement(b,a);v(a,jalview.datamodel.SequenceI)?(this.treeSelectionChanged(a),jalview.appletgui.PaintRefresher.Refresh(this,this.av.getSequenceSetId()),this.repaint(),this.av.sendSelection()):(!v(a,jalview.datamodel.SequenceNode)&&0!=this.tree.getMaxHeight()&&(this.threshold=(b-this.offx)/(this.getSize().width-
3457 this.labelLength-2*this.offx),this.tree.getGroups().removeAllElements(),this.tree.groupNodes(this.tree.getTopNode(),this.threshold),this.setColor(this.tree.getTopNode(),java.awt.Color.black),this.av.setSelectionGroup(null),this.av.getAlignment().deleteAllGroups(),this.av.clearSequenceColours(),b=this.av.getCodingComplement(),null!=b&&(b.setSelectionGroup(null),b.getAlignment().deleteAllGroups(),b.clearSequenceColours()),this.colourGroups()),jalview.appletgui.PaintRefresher.Refresh(this,this.av.getSequenceSetId()),
3458 this.repaint())},"java.awt.event.MouseEvent");d(c$,"colourGroups",function(){for(var a=0;a<this.tree.getGroups().size();a++){var b=new java.awt.Color(F(255*Math.random()),F(255*Math.random()),F(255*Math.random()));this.setColor(this.tree.getGroups().elementAt(a),b.brighter());for(var c=this.tree.findLeaves(this.tree.getGroups().elementAt(a),new java.util.Vector),d=new java.util.Vector,e=0;e<c.size();e++){var k=c.elementAt(e).element();d.contains(k)||d.addElement(k)}c=null;d=new jalview.datamodel.SequenceGroup(d,
3459 "",c,!0,!0,!1,0,this.av.getAlignment().getWidth()-1);null!=this.av.getGlobalColourScheme()&&(c=v(this.av.getGlobalColourScheme(),jalview.schemes.UserColourScheme)?new jalview.schemes.UserColourScheme(this.av.getGlobalColourScheme().getColours()):jalview.schemes.ColourSchemeProperty.getColour(d,jalview.schemes.ColourSchemeProperty.getColourName(this.av.getGlobalColourScheme())),null!=c&&c.setThreshold(this.av.getGlobalColourScheme().getThreshold(),this.av.isIgnoreGapsConsensus()));d.cs=c;d.setName("JTreeGroup:"+
3460 d.hashCode());d.setIdColour(b);null!=this.av.getGlobalColourScheme()&&this.av.getGlobalColourScheme().conservationApplied()&&(e=new jalview.analysis.Conservation("Group",jalview.schemes.ResidueProperties.propHash,3,d.getSequences(null),d.getStartRes(),d.getEndRes()),e.calculate(),e.verdict(!1,this.av.getConsPercGaps()),c.setConservation(e),d.cs=c);this.av.getAlignment().addGroup(d);this.av.getAlignment().addGroup(d);c=this.av.getCodingComplement();if(null!=c&&(d=jalview.util.MappingUtils.mapSequenceGroup(d,
3461 this.av,c),0<d.getSequences().size())){c.getAlignment().addGroup(d);for(var g,d=d.getSequences().iterator();d.hasNext()&&((g=d.next())||1);)c.setSequenceColour(g,b)}}this.ap.updateAnnotation();null!=this.av.getCodingComplement()&&this.av.getCodingComplement().firePropertyChange("alignment",null,this.ap.av.getAlignment().getSequences())});d(c$,"setShowDistances",function(a){this.showDistances=a;this.repaint()},"~B");d(c$,"setShowBootstrap",function(a){this.showBootstrap=a;this.repaint()},"~B");d(c$,
3462 "setMarkPlaceholders",function(a){this.markPlaceholders=a;this.repaint()},"~B");G(c$,"PLACEHOLDER"," * ")});p("jalview.commands");q(["jalview.commands.EditCommand"],"jalview.commands.RemoveGapColCommand",["jalview.util.Comparison"],function(){c$=s(function(){this.columnsDeleted=0;r(this,arguments)},jalview.commands,"RemoveGapColCommand",jalview.commands.EditCommand);m(c$,function(a,b,c,d,e){t(this,jalview.commands.RemoveGapColCommand,[]);this.description=a;a=b.length;var k=-1,g=-1;this.columnsDeleted=
3463 0;this.clearEdits();for(var h=!0,j=c;j<=d;j++){h=!0;for(c=0;c<a;c++)if(b[c].getLength()>j&&!jalview.util.Comparison.isGap(b[c].getCharAt(j))){h&&(g=j);h=!1;break}h&&-1==k&&(k=j);!h&&-1<k&&(this.appendEdit(jalview.commands.EditCommand.Action.DELETE_GAP,b,k-this.columnsDeleted,g-k,e,!1,null),this.columnsDeleted+=g-k,g=k=-1)}h&&-1<k&&(this.appendEdit(jalview.commands.EditCommand.Action.DELETE_GAP,b,k-this.columnsDeleted,d-k+1,e,!1,null),this.columnsDeleted+=d-k+1);this.performEdit(0,null)},"~S,~A,~N,~N,jalview.datamodel.AlignmentI");
3464 e(c$,"getSize",function(){return this.columnsDeleted})});p("jalview.commands");q(["jalview.commands.EditCommand"],"jalview.commands.RemoveGapsCommand",["jalview.util.Comparison"],function(){c$=B(jalview.commands,"RemoveGapsCommand",jalview.commands.EditCommand);m(c$,function(a,b,c){t(this,jalview.commands.RemoveGapsCommand,[]);this.description=a;for(var d=a=0;d<b.length;d++)b[d].getLength()>a&&(a=b[d].getLength());this.findGaps(b,0,a,c)},"~S,~A,jalview.datamodel.AlignmentI");m(c$,function(a,b,c,d,
3465 e){t(this,jalview.commands.RemoveGapsCommand,[]);this.description=a;this.findGaps(b,c,d,e)},"~S,~A,~N,~N,jalview.datamodel.AlignmentI");d(c$,"findGaps",function(a,b,c,d){var e=-1,k=-1,g=0,h,j;this.clearEdits();for(var n=!0,m,p=0;p<a.length;p++){g=0;k=e=-1;m=a[p].getSequence(b,c+1);j=m.length;for(h=0;h<j;h++)n=!0,jalview.util.Comparison.isGap(m[h])||(n&&(k=h),n=!1),n&&-1==e&&(e=h),!n&&-1<e&&(this.appendEdit(jalview.commands.EditCommand.Action.DELETE_GAP,E(-1,[a[p]]),b+e-g,k-e,d,!1,null),g+=k-e,k=e=
3466 -1);n&&-1<e&&this.appendEdit(jalview.commands.EditCommand.Action.DELETE_GAP,E(-1,[a[p]]),b+e-g,j-e,d,!1,null)}this.performEdit(0,null)},"~A,~N,~N,jalview.datamodel.AlignmentI")});p("jalview.commands");q(["jalview.commands.EditCommand"],"jalview.commands.SlideSequencesCommand",["jalview.util.Comparison"],function(){c$=s(function(){this.gapsInsertedBegin=!1;r(this,arguments)},jalview.commands,"SlideSequencesCommand",jalview.commands.EditCommand);m(c$,function(a,b,c,d,e){t(this,jalview.commands.SlideSequencesCommand,
3467 []);this.description=a;a=b.length;this.gapsInsertedBegin=!1;var k,g;for(k=0;k<a;k++)for(g=0;g<d;g++)if(!jalview.util.Comparison.isGap(b[k].getCharAt(g))){this.gapsInsertedBegin=!0;break}a=null;a=this.gapsInsertedBegin?C(jalview.commands.EditCommand.Edit,this,null,jalview.commands.EditCommand.Action.INSERT_GAP,c,0,d,e):C(jalview.commands.EditCommand.Edit,this,null,jalview.commands.EditCommand.Action.DELETE_GAP,b,0,d,e);this.setEdit(a);jalview.commands.EditCommand.performEdit(a,null)},"~S,~A,~A,~N,~S");
3468 d(c$,"getGapsInsertedBegin",function(){return this.gapsInsertedBegin});d(c$,"appendSlideCommand",function(a){var b=!1;if(a.getEdit(0).seqs.length==this.getEdit(0).seqs.length)for(var b=!0,c=0;c<a.getEdit(0).seqs.length;c++)this.getEdit(0).seqs[c]!==a.getEdit(0).seqs[c]&&(b=!1);b&&a.addEdit(this.getEdit(0));return b},"jalview.commands.SlideSequencesCommand")});p("jalview.commands");q(["jalview.commands.EditCommand"],"jalview.commands.TrimRegionCommand",null,function(){c$=s(function(){this.deletedHiddenColumns=
3469 this.selectionGroup=this.shiftList=this.start=this.colSel=null;this.columnsDeleted=0;r(this,arguments)},jalview.commands,"TrimRegionCommand",jalview.commands.EditCommand);m(c$,function(a,b,c,d,e,k,g){t(this,jalview.commands.TrimRegionCommand,[]);this.description=a;this.selectionGroup=g;this.colSel=k;if(b.equalsIgnoreCase(jalview.commands.TrimRegionCommand.TRIM_LEFT)){if(0==d)return;this.columnsDeleted=d;this.setEdit(C(jalview.commands.EditCommand.Edit,this,null,jalview.commands.EditCommand.Action.CUT,
3470 c,0,d,e))}else if(b.equalsIgnoreCase(jalview.commands.TrimRegionCommand.TRIM_RIGHT)){a=e.getWidth()-d-1;if(2>a)return;this.columnsDeleted=a-1;this.setEdit(C(jalview.commands.EditCommand.Edit,this,null,jalview.commands.EditCommand.Action.CUT,c,d+1,a,e))}d=this.getEdit(0).seqs.length;this.start=w(d,0);for(c=0;c<d;c++)this.start[c]=this.getEdit(0).seqs[c].getStart();this.performEdit(0,null)},"~S,~S,~A,~N,jalview.datamodel.AlignmentI,jalview.datamodel.ColumnSelection,jalview.datamodel.SequenceGroup");
3471 d(c$,"cut",function(a){var b,c,d=a.seqs.length;for(c=0;c<d;c++)0==a.position?(b=a.seqs[c].findPosition(a.number),a.seqs[c].setStart(b)):(b=a.seqs[c].findPosition(a.position)-1,a.seqs[c].setEnd(b));K(this,jalview.commands.TrimRegionCommand,"cut",[a,null]);0==a.position?(this.deletedHiddenColumns=this.colSel.compensateForEdit(0,a.number),null!=this.selectionGroup&&this.selectionGroup.adjustForRemoveLeft(a.number)):(this.deletedHiddenColumns=this.colSel.compensateForEdit(a.position,a.number),null!=this.selectionGroup&&
3472 this.selectionGroup.adjustForRemoveRight(a.position))},"jalview.commands.EditCommand.Edit");d(c$,"paste",function(a){K(this,jalview.commands.TrimRegionCommand,"paste",[a,null]);var b,c,d=a.seqs.length;for(c=0;c<d;c++)0==a.position?a.seqs[c].setStart(this.start[c]):(b=a.seqs[c].findPosition(a.number+a.position)-1,a.seqs[c].setEnd(b));0==a.position&&(this.colSel.compensateForEdit(0,-a.number),null!=this.selectionGroup&&this.selectionGroup.adjustForRemoveLeft(-a.number));if(null!=this.deletedHiddenColumns)for(b=
3473 0;b<this.deletedHiddenColumns.size();b++)a=this.deletedHiddenColumns.get(b),this.colSel.hideColumns(a[0],a[1])},"jalview.commands.EditCommand.Edit");e(c$,"getSize",function(){return this.columnsDeleted});G(c$,"TRIM_LEFT","TrimLeft","TRIM_RIGHT","TrimRight")});p("jalview.controller");q(["jalview.api.AlignViewControllerI"],"jalview.controller.AlignViewController","jalview.analysis.AlignmentSorter $.Grouping jalview.commands.OrderCommand jalview.datamodel.ColumnSelection jalview.io.FeaturesFile jalview.util.MessageManager java.awt.Color java.util.ArrayList $.BitSet".split(" "),
3474 function(){c$=s(function(){this.avcg=this.alignPanel=this.viewport=null;r(this,arguments)},jalview.controller,"AlignViewController",null,jalview.api.AlignViewControllerI);e(c$,"finalize",function(){this.avcg=this.alignPanel=this.viewport=null});m(c$,function(a,b,c){this.avcg=a;this.viewport=b;this.alignPanel=c},"jalview.api.AlignViewControllerGuiI,jalview.api.AlignViewportI,jalview.api.AlignmentViewPanel");e(c$,"setViewportAndAlignmentPanel",function(a,b){this.alignPanel=b;this.viewport=a},"jalview.api.AlignViewportI,jalview.api.AlignmentViewPanel");
3475 e(c$,"makeGroupsFromSelection",function(){var a=this.viewport.getSelectionGroup(),b=this.viewport.getColumnSelection(),c=null;null!=a&&(null==b||null==b.getSelected()||0==b.size())?c=jalview.analysis.Grouping.makeGroupsFrom(this.viewport.getSequenceSelection(),this.viewport.getAlignmentView(!0).getSequenceStrings(this.viewport.getGapCharacter()),this.viewport.getAlignment().getGroups()):null!=b&&(c=jalview.analysis.Grouping.makeGroupsFromCols(null==a?this.viewport.getAlignment().getSequencesArray():
3476 a.getSequences().toArray([]),b,this.viewport.getAlignment().getGroups()));if(null!=c){this.viewport.getAlignment().deleteAllGroups();this.viewport.clearSequenceColours();this.viewport.setSelectionGroup(null);for(a=0;a<c.length;a++){c[a].setshowSequenceLogo(this.viewport.isShowSequenceLogo());this.viewport.getAlignment().addGroup(c[a]);for(var b=new java.awt.Color(F(255*Math.random()),F(255*Math.random()),F(255*Math.random())),b=b.brighter(),d,e=c[a].getSequences(null).iterator();e.hasNext()&&((d=
3477 e.next())||1);)this.viewport.setSequenceColour(d,b)}return!0}return!1});e(c$,"createGroup",function(){var a=this.viewport.getSelectionGroup();return null!=a?(this.viewport.getAlignment().addGroup(a),!0):!1});e(c$,"unGroup",function(){var a=this.viewport.getSelectionGroup();return null!=a?(this.viewport.getAlignment().deleteGroup(a),!0):!1});e(c$,"deleteGroups",function(){return null!=this.viewport.getAlignment().getGroups()&&0<this.viewport.getAlignment().getGroups().size()?(this.viewport.getAlignment().deleteAllGroups(),
3478 this.viewport.clearSequenceColours(),this.viewport.setSelectionGroup(null),!0):!1});e(c$,"markColumnsContainingFeatures",function(a,b,c,d){var e=new java.util.BitSet,k,g,h=null==this.viewport.getSelectionGroup()?this.viewport.getAlignment():this.viewport.getSelectionGroup();g=h.getStartRes();k=h.getEndRes()+1;for(var j=0,n,m=h.getSequences().iterator();m.hasNext()&&((n=m.next())||1);){var p=0;if(null!=n){h=n.getSequenceFeatures();if(null!=h){var q=n.findIndex(n.getStart());if(n.findIndex(n.getEnd())<
3479 g||q>k)continue;for(var r,s=0,t=h;s<t.length&&((r=t[s])||1);s++)if(null!=r&&d.equals(r.getType())){p++;var h=n.findIndex(r.getBegin()),v=n.findIndex(r.getEnd());if(!(v<g||h>k)){h<g&&(h=g);h<q&&(h=q);for(v>k&&(v=k);h<=v;h++)e.set(h-1)}}}0<p&&j++}}n=this.viewport.getColumnSelection();if(0<e.cardinality()||a){null==n?n=new jalview.datamodel.ColumnSelection:b||n.clear();if(a){h=e.nextClearBit(g);for(b=e.nextSetBit(g);h>=g&&h<k;)0>b||h<b?c&&n.contains(h)?n.removeElement(h++):n.addElement(h++):(h=e.nextClearBit(b),
3480 b=e.nextSetBit(h))}else for(h=e.nextSetBit(g);h>=g;h=e.nextSetBit(h+1))c&&n.contains(h)?n.removeElement(h):n.addElement(h);this.viewport.setColumnSelection(n);this.alignPanel.paintAlignment(!0);this.avcg.setStatus(jalview.util.MessageManager.formatMessage("label.view_controller_toggled_marked",E(-1,[c?jalview.util.MessageManager.getString("label.toggled"):jalview.util.MessageManager.getString("label.marked"),a?Integer.$valueOf(k-g-e.cardinality()).toString():Integer.$valueOf(e.cardinality()).toString(),
3481 d,Integer.$valueOf(j).toString()])));return!0}this.avcg.setStatus(jalview.util.MessageManager.formatMessage("label.no_feature_of_type_found",E(-1,[d])));!b&&null!=n&&(n.clear(),this.alignPanel.paintAlignment(!0));return!1},"~B,~B,~B,~S");e(c$,"sortAlignmentByFeatureDensity",function(a){this.sortBy(a,"Sort by Density",jalview.analysis.AlignmentSorter.FEATURE_DENSITY)},"~A");d(c$,"sortBy",function(a,b,c){var d=this.alignPanel.getFeatureRenderer();null==a&&(a=null==d?null:d.getDisplayedFeatureTypes());
3482 var e=null,e=null==d?null:d.getDisplayedFeatureGroups();if(null!=a)for(var k=new java.util.ArrayList,d=0;d<a.length;d++)null!=a[d]&&k.add(a[d]),a=Array(k.size()),k.toArray(a);if(null!=e){k=new java.util.ArrayList;for(d=0;d<e.length;d++)null!=e[d]&&k.add(e[d]);e=Array(k.size());k.toArray(e)}var d=this.viewport.getAlignment(),g;g=this.viewport.getSelectionGroup();null!=g?(k=g.getStartRes(),g=g.getEndRes()):(k=0,g=d.getWidth());var h=d.getSequencesArray();jalview.analysis.AlignmentSorter.sortByFeature(a,
3483 e,k,g,d,c);this.avcg.addHistoryItem(new jalview.commands.OrderCommand(b,h,this.viewport.getAlignment()));this.alignPanel.paintAlignment(!0)},"~A,~S,~S");e(c$,"sortAlignmentByFeatureScore",function(a){this.sortBy(a,"Sort by Feature Score",jalview.analysis.AlignmentSorter.FEATURE_SCORE)},"~A");e(c$,"parseFeaturesFile",function(a,b,c){var d=!1;try{d=(new jalview.io.FeaturesFile(a,b)).parse(this.viewport.getAlignment().getDataset(),this.alignPanel.getFeatureRenderer().getFeatureColours(),!1,c)}catch(e){if(y(e,
3484 Exception))e.printStackTrace();else throw e;}d&&(this.avcg.refreshFeatureUI(!0),null!=this.alignPanel.getFeatureRenderer()&&this.alignPanel.getFeatureRenderer().findAllFeatures(!0),null!=this.avcg.getFeatureSettingsUI()&&this.avcg.getFeatureSettingsUI().discoverAllFeatureData(),this.alignPanel.paintAlignment(!0));return d},"~S,~S,~B")});p("jalview.api");M(jalview.api,"AlignViewControllerI");p("jalview.analysis");q(null,"jalview.analysis.Grouping",["jalview.datamodel.SequenceGroup","java.lang.StringBuilder",
3485 "java.util.ArrayList","$.HashMap"],function(){c$=B(jalview.analysis,"Grouping");c$.makeGroupsFrom=d(c$,"makeGroupsFrom",function(a,b,c){var d=new java.util.HashMap,e=0,k,g=new java.util.HashMap;if(null!=c)for(c=c.iterator();c.hasNext()&&((k=c.next())||1);)for(var h,j=k.getSequences(null).iterator();j.hasNext()&&((h=j.next())||1);)g.put(h.toString(),k);for(k=0;k<a.length;k++)h=b[k],c=g.get(a[k].toString()),null!=c&&(h=c.getName()+":"+h),c=d.get(h),null==c&&(c=new java.util.ArrayList,d.put(h,c)),e<
3486 a[k].getLength()&&(e=a[k].getLength()),c.add(a[k]);a=Array(d.size());k=0;var n;for(b=d.keySet().iterator();b.hasNext()&&((n=b.next())||1);)h=new jalview.datamodel.SequenceGroup(d.get(n),"Subseq: "+n,null,!0,!0,!1,0,e-1),a[k++]=h;d.clear();g.clear();return a},"~A,~A,java.util.List");c$.makeGroupsFromCols=d(c$,"makeGroupsFromCols",function(a,b,c){var d=new java.util.HashMap,e=new java.util.HashMap;if(null!=c){var k;for(c=c.iterator();c.hasNext()&&((k=c.next())||1);)for(var g,h=k.getSequences(null).iterator();h.hasNext()&&
3487 ((g=h.next())||1);)e.put(g.toString(),k)}c=w(b.getSelected().size(),0);k=-1;g=0;var j;for(b=b.getSelected().iterator();b.hasNext()&&((j=b.next())||1);)c[g++]=j.intValue();for(g=0;g<a.length;g++){b=a[g].getLength();k<b&&(k=b);h=e.get(a[g].toString());j=new StringBuilder;null!=h&&j.append(h.getName()+":");for(var n,h=0,m=c;h<m.length&&((n=m[h])||1);h++)n>=b?j.append("~"):j.append(a[g].getCharAt(n));b=d.get(j.toString());null==b&&(b=new java.util.ArrayList,d.put(j.toString(),b));b.add(a[g])}a=Array(d.size());
3488 g=0;var p;for(n=d.keySet().iterator();n.hasNext()&&((p=n.next())||1);)c=new jalview.datamodel.SequenceGroup(d.get(p),"Subseq: "+p,null,!0,!0,!1,0,k-1),a[g++]=c;d.clear();e.clear();return a},"~A,jalview.datamodel.ColumnSelection,java.util.List");c$.divideByFeature=d(c$,"divideByFeature",function(){},"~A,~A,~N,~N,~A,java.util.Vector,~S")});p("jalview.io");q(null,"jalview.io.AlignmentProperties",["java.lang.StringBuffer"],function(){c$=s(function(){this.alignment=null;r(this,arguments)},jalview.io,"AlignmentProperties");
3489 m(c$,function(a){this.alignment=a},"jalview.datamodel.AlignmentI");d(c$,"writeProperties",function(a,b){for(var c=b?"<br>":System.getProperty("line.separator"),d=0,e=2147483647,k=0,g=0;g<this.alignment.getHeight();g++){var h=1+this.alignment.getSequenceAt(g).getEnd()-this.alignment.getSequenceAt(g).getStart(),d=d+h;h>k&&(k=h);h<e&&(e=h)}d/=this.alignment.getHeight();a.append(c);a.append("Sequences: "+this.alignment.getHeight());a.append(c);a.append("Minimum Sequence Length: "+e);a.append(c);a.append("Maximum Sequence Length: "+
3490 k);a.append(c);a.append("Average Length: "+I(d));if(null!=this.alignment.alignmentProperties){a.append(c);a.append(c);b&&a.append('<table border="1">');d=this.alignment.alignmentProperties;for(e=d.keys();e.hasMoreElements();)if(k=e.nextElement().toString(),g=d.get(k).toString(),b){var h=new StringBuffer,j=0,n;do n=g.indexOf("\n",j),-1==n?h.append(g.substring(j)):(h.append(g.substring(j,n)),h.append("<br>")),j=n+1;while(-1!=n);a.append("<tr><td>"+k+"</td><td>"+h+"</td></tr>")}else a.append(c+k+"\t"+
3491 g);b&&a.append("</table>")}},"StringBuffer,~B");d(c$,"formatAsString",function(){return this.formatReport(!1)});d(c$,"formatReport",function(a){var b=new StringBuffer;this.writeProperties(b,a);return b},"~B");d(c$,"formatAsHtml",function(){return this.formatReport(!0)})});p("jalview.schemes");q(null,"jalview.schemes.RNAHelicesColourChooser",["jalview.schemes.RNAHelicesColour","java.util.Hashtable","$.Vector"],function(){c$=s(function(){this.currentAnnotation=this.oldgroupColours=this.oldcs=this.ap=
3492 this.av=null;this.adjusting=!1;r(this,arguments)},jalview.schemes,"RNAHelicesColourChooser");m(c$,function(a,b){this.oldcs=a.getGlobalColourScheme();if(null!=a.getAlignment().getGroups()){this.oldgroupColours=new java.util.Hashtable;for(var c,d=b.getAlignment().getGroups().iterator();d.hasNext()&&((c=d.next())||1);)null!=c.cs&&this.oldgroupColours.put(c,c.cs)}this.av=a;this.ap=b;v(this.oldcs,jalview.schemes.RNAHelicesColour);this.adjusting=!0;c=new java.util.Vector;for(var d=1,e=0;e<a.getAlignment().getAlignmentAnnotation().length;e++){var k=
3493 a.getAlignment().getAlignmentAnnotation()[e].label;c.contains(k)?c.addElement(k+"_"+d++):c.addElement(k)}this.adjusting=!1;this.changeColour()},"jalview.api.AlignViewportI,jalview.api.AlignmentViewPanel");d(c$,"changeColour",function(){if(!this.adjusting){var a=null,a=new jalview.schemes.RNAHelicesColour(this.av.getAlignment());this.av.setGlobalColourScheme(a);if(null!=this.av.getAlignment().getGroups())for(var b,a=this.ap.getAlignment().getGroups().iterator();a.hasNext()&&((b=a.next())||1);)null!=
3494 b.cs&&(b.cs=new jalview.schemes.RNAHelicesColour(b));this.ap.paintAlignment(!1)}});d(c$,"reset",function(){this.av.setGlobalColourScheme(this.oldcs);if(null!=this.av.getAlignment().getGroups())for(var a,b=this.ap.getAlignment().getGroups().iterator();b.hasNext()&&((a=b.next())||1);)a.cs=this.oldgroupColours.get(a)});d(c$,"annotations_actionPerformed",function(){this.changeColour()},"java.awt.event.ActionEvent")});p("jalview.schemes");q(["jalview.schemes.ResidueColourScheme"],"jalview.schemes.RNAInteractionColourScheme",
3495 ["jalview.schemes.ResidueProperties","java.awt.Color"],function(){c$=B(jalview.schemes,"RNAInteractionColourScheme",jalview.schemes.ResidueColourScheme);e(c$,"findColour",function(a){return this.colors[jalview.schemes.ResidueProperties.nucleotideIndex[a.charCodeAt(0)]]},"~S");e(c$,"findColourSeq",function(a,b){var c;if(0==this.threshold||this.aboveThreshold(a,b))try{c=this.colors[jalview.schemes.ResidueProperties.nucleotideIndex[a.charCodeAt(0)]]}catch(d){if(y(d,Exception))return java.awt.Color.white;
3496 throw d;}else return java.awt.Color.white;this.conservationColouring&&(c=this.applyConservation(c,b));return c},"~S,~N,jalview.datamodel.SequenceI")});p("java.net");c$=B(java.net,"URLEncoder");c$.encode=d(c$,"encode",function(a){return encodeURIComponent(a)},"~S");c$.encode=d(c$,"encode",function(a){return encodeURIComponent(a)},"~S,~S");G(c$,"digits","0123456789ABCDEF");p("jalview.io");q(null,"jalview.io.JnetAnnotationMaker",["jalview.datamodel.AlignmentAnnotation","$.Annotation","jalview.util.MessageManager",
3497 "java.lang.Exception","$.Float"],function(){c$=B(jalview.io,"JnetAnnotationMaker");c$.add_annotation=d(c$,"add_annotation",function(a,b,c,d){jalview.io.JnetAnnotationMaker.add_annotation(a,b,c,d,ha("Array"))},"jalview.io.AlignFile,jalview.datamodel.AlignmentI,~N,~B");c$.add_annotation=d(c$,"add_annotation",function(a,b,c,d,e){var k=0;a=a.getSeqsAsArray();var g=b.getSequenceAt(c),h=a[0].getSequence().length,j=b.getSequenceAt(c).gapMap();if(null!=e&&e.length>h||null==e&&j.length!=h)throw new Exception(jalview.util.MessageManager.formatMessage("exception.number_of_residues_in_query_sequence_differ_from_prediction",
3498 E(-1,[null==e?"":jalview.util.MessageManager.getString("label.mapped"),b.getSequenceAt(c).getName(),b.getSequenceAt(c).getSequenceAsString(),Integer.$valueOf(h).toString()])));var n;n=null;c=0;null!=b.getAlignmentAnnotation()&&(c=b.getAlignmentAnnotation().length);for(var m=Array(b.getWidth()),p=!0;k<a.length;){var q=a[k].getName().toUpperCase();if(q.startsWith("LUPAS")||q.startsWith("JNET")||q.startsWith("JPRED")){if(q.startsWith("JNETSOL")){n=q.endsWith("25")?3:q.endsWith("5")?6:9;for(q=0;q<h;q++){var r=
3499 null==e?j[q]:j[e[q]];p&&(m[r]=new jalview.datamodel.Annotation(0));if("B"==a[k].getCharAt(q)&&(0==m[r].value||m[r].value<n))m[r].value=n}p=!1}else{n=Array(b.getWidth());if(q.equals("JNETPRED")||q.equals("JNETPSSM")||q.equals("JNETFREQ")||q.equals("JNETHMM")||q.equals("JNETALIGN")||q.equals("JPRED"))if(null==e)for(r=0;r<h;r++)n[j[r]]=new jalview.datamodel.Annotation("","",a[k].getCharAt(r),0);else for(r=0;r<h;r++)n[j[e[r]]]=new jalview.datamodel.Annotation("","",a[k].getCharAt(r),0);else if(q.equals("JNETCONF"))if(null==
3500 e)for(r=0;r<h;r++){var s=(new Float(a[k].getCharAt(r)+"")).floatValue();n[j[r]]=new jalview.datamodel.Annotation(a[k].getCharAt(r)+"","",a[k].getCharAt(r),s)}else for(r=0;r<h;r++)s=(new Float(a[k].getCharAt(r)+"")).floatValue(),n[j[e[r]]]=new jalview.datamodel.Annotation(a[k].getCharAt(r)+"","",a[k].getCharAt(r),s);else if(null==e)for(r=0;r<h;r++)n[j[r]]=new jalview.datamodel.Annotation(a[k].getCharAt(r)+"",""," ",0);else for(r=0;r<h;r++)n[j[e[r]]]=new jalview.datamodel.Annotation(a[k].getCharAt(r)+
3501 "",""," ",0);n=q.equals("JNETCONF")?new jalview.datamodel.AlignmentAnnotation(a[k].getName(),"JNet Output",n,0,10,1):new jalview.datamodel.AlignmentAnnotation(a[k].getName(),"JNet Output",n);null!=g&&(n.createSequenceMapping(g,1,!0),g.addAlignmentAnnotation(n));b.addAnnotation(n);b.setAnnotationIndex(n,b.getAlignmentAnnotation().length-c-1)}d&&b.deleteSequence(a[k])}k++}p||(n=new jalview.datamodel.AlignmentAnnotation("Jnet Burial","<html>Prediction of Solvent Accessibility<br/>levels are<ul><li>0 - Exposed</li><li>3 - 25% or more S.A. accessible</li><li>6 - 5% or more S.A. accessible</li><li>9 - Buried (<5% exposed)</li></ul>",
3502 m,0,9,1),n.validateRangeAndDisplay(),null!=g&&(n.createSequenceMapping(g,1,!0),g.addAlignmentAnnotation(n)),b.addAnnotation(n),b.setAnnotationIndex(n,b.getAlignmentAnnotation().length-c-1))},"jalview.io.AlignFile,jalview.datamodel.AlignmentI,~N,~B,~A")});p("jalview.javascript");q(null,"jalview.javascript.JSFunctionExec","jalview.bin.JalviewLite java.lang.StringBuffer $.Thread java.net.MalformedURLException $.URL netscape.javascript.JSException $.JSObject".split(" "),function(){c$=s(function(){this.executor=
3503 this.jsExecQueue=this.jvlite=null;r(this,arguments)},jalview.javascript,"JSFunctionExec",null,Runnable);m(c$,function(a){this.jvlite=a;this.jsExecQueue=this.jvlite.getJsExecQueue();this.jvlite.setExecutor(this)},"jalview.bin.JalviewLite");e(c$,"finalize",function(){this.executor=this.jvlite=null;null!=this.jsExecQueue&&this.jsExecQueue.clear();this.jsExecQueue=null});d(c$,"stopQueue",function(){if(null!=this.jsExecQueue){var a=null,a=this.jsExecQueue;this.jsExecQueue=null;if(null!=a){for(var b,c=
3504 a.iterator();c.hasNext()&&((b=c.next())||1);)b.jvlite=null;a.removeAllElements();a.notifyAll()}}this.executor=this.jvlite=null});d(c$,"run",function(){for(;null!=this.jsExecQueue;)if(0<this.jsExecQueue.size()){var a=this.jsExecQueue.elementAt(0);this.jsExecQueue.removeElementAt(0);try{a.run()}catch(b){if(y(b,Exception))a=b,a.printStackTrace();else if(y(b,Error))a=b,a.printStackTrace();else throw b;}}else try{this.jsExecQueue.wait(1E3)}catch(c){if(!y(c,Exception))throw c;}});d(c$,"executeJavascriptFunction",
3505 function(a,b){this.executeJavascriptFunction(!1,a,b)},"~S,~A");d(c$,"executeJavascriptFunction",function(a,b,c){this.executeJavascriptFunction(a,b,c,null)},"~B,~S,~A");d(c$,"executeJavascriptFunction",function(a,b,c,d){var e=Array(null!=c?c.length:0);null!=c&&System.arraycopy(c,0,e,0,c.length);c=Array(1);b=(H("jalview.javascript.JSFunctionExec$1")?0:jalview.javascript.JSFunctionExec.$JSFunctionExec$1$(),C(jalview.javascript.JSFunctionExec$1,this,T("dbgMsg",d,"_listener",b,"objects",e,"jsex",c,"async",
3506 a)));if(a)null==this.executor&&(this.executor=new Thread(new jalview.javascript.JSFunctionExec(this.jvlite)),this.executor.start()),this.jsExecQueue.addElement(b),this.jsExecQueue.notify();else if(b.run(),null!=c[0])throw c[0];},"~B,~S,~A,~S");c$.$JSFunctionExec$1$=function(){A(self.c$);c$=L(jalview.javascript,"JSFunctionExec$1",null,Runnable);d(c$,"run",function(){try{var a=null;try{a=netscape.javascript.JSObject.getWindow(this.b$["jalview.javascript.JSFunctionExec"].jvlite)}catch(b){if(!y(b,Exception))throw b;
3507 }null!=a&&(jalview.bin.JalviewLite.debug&&null!=this.f$.dbgMsg&&System.err.println(this.f$.dbgMsg),a.call(this.f$._listener,this.f$.objects))}catch(c){if(y(c,Exception)){if(!v(c,java.net.MalformedURLException)){jalview.bin.JalviewLite.debug&&System.err.println(c);if(v(c,netscape.javascript.JSException)&&this.b$["jalview.javascript.JSFunctionExec"].jvlite.jsfallbackEnabled){this.f$.jsex[0]=c;jalview.bin.JalviewLite.debug&&System.err.println("Falling back to javascript: url call");for(var a=new StringBuffer("javascript:"+
3508 this.f$._listener+"("),d=0;null!=this.f$.objects&&d<this.f$.objects.length;d++)0<d&&a.append(","),a.append('"'),null!=this.f$.objects[d]&&0!=this.f$.objects[d].getClass().getName().indexOf("jalview")&&a.append(this.f$.objects[d].toString()),a.append('"');a.append(")");jalview.bin.JalviewLite.debug&&System.err.println(a.toString());d=null;try{d=new java.net.URL(a.toString()),this.b$["jalview.javascript.JSFunctionExec"].jvlite.getAppletContext().showDocument(d),c=null}catch(e){if(y(e,Exception))c=e;
3509 else throw e;}}null!=c&&(this.f$.async?c.printStackTrace():this.f$.jsex[0]=c)}}else throw c;}});c$=z()}});p("netscape.javascript");q(["java.lang.Exception"],"netscape.javascript.JSException",null,function(){c$=B(netscape.javascript,"JSException",Exception)});p("netscape.javascript");c$=B(netscape.javascript,"JSObject");c$.getWindow=d(c$,"getWindow",function(){return window},"jalview.bin.JalviewLite");d(c$,"call",function(a,b){alert("call "+a);a.apply(null,b)},"~S,~A");d(c$,"eval",function(a){alert("evval "+
3510 a);return this.eval(a)},"~S");p("jalview.javascript");q(["jalview.javascript.JSFunctionExec","$.JsCallBack","jalview.structure.SelectionListener"],"jalview.javascript.JsSelectionSender",["jalview.appletgui.AlignViewport","netscape.javascript.JSException"],function(){c$=s(function(){this._listener=this._af=null;r(this,arguments)},jalview.javascript,"JsSelectionSender",jalview.javascript.JSFunctionExec,[jalview.structure.SelectionListener,jalview.javascript.JsCallBack]);m(c$,function(a,b,c){t(this,
3511 jalview.javascript.JsSelectionSender,[a]);this._af=b;this._listener=c},"jalview.bin.JalviewLite,jalview.appletgui.AlignFrame,~S");e(c$,"selection",function(a,b,c){try{var d=this._af;null!=c&&(v(c,jalview.appletgui.AlignViewport)&&c.applet.currentAlignFrame.viewport===c)&&(d=c.applet.currentAlignFrame);var e=E(-1,[]),k=E(-1,[]);c=0;var g=null==d?-1:d.alignPanel.av.getAlignment().getWidth();if(null!=a&&0<a.getSize()){for(var e=Array(a.getSize()),h=0;h<e.length;h++)e[h]=a.getSequenceAt(h).getName();
3512 c<a.getStartRes()&&(c=a.getStartRes());if(-1==g||g>a.getEndRes())g=a.getEndRes()}if(null!=b&&0<b.size()){-1==g&&b.getMax();k=Array(b.getSelected().size());for(h=0;h<k.length;h++)k[h]=""+(1+b.getSelected().elementAt(h).intValue())}else null!=a&&0<a.getSize()&&(k=Array(2),k[0]=""+(1+c)+"-"+(1+g));System.err.println("Relaying selection to jsfunction:"+this._listener);this.executeJavascriptFunction(this._listener,E(-1,[d,"",this.jvlite.arrayToSeparatorList(e),this.jvlite.arrayToSeparatorList(k)]))}catch(j){if(y(j,
3513 Exception))System.err.println("Jalview Javascript exec error: Couldn't send selection message using function '"+this._listener+"'"),j.printStackTrace(),v(j,netscape.javascript.JSException)&&System.err.println("Javascript Exception: "+j.getCause().toString());else throw j;}},"jalview.datamodel.SequenceGroup,jalview.datamodel.ColumnSelection,jalview.structure.SelectionSource");e(c$,"getAlignFrame",function(){return this._af});e(c$,"getListenerFunction",function(){return this._listener})});p("jalview.javascript");
3514 M(jalview.javascript,"JsCallBack");p("jalview.javascript");q(["jalview.javascript.JSFunctionExec","$.JsCallBack","jalview.structure.VamsasListener"],"jalview.javascript.MouseOverListener",["jalview.appletgui.AlignViewport","netscape.javascript.JSException"],function(){c$=s(function(){this.last=this._listener=this._af=null;this.i=-1;r(this,arguments)},jalview.javascript,"MouseOverListener",jalview.javascript.JSFunctionExec,[jalview.structure.VamsasListener,jalview.javascript.JsCallBack]);e(c$,"mouseOverSequence",
3515 function(a,b,c){if(a!==this.last||this.i!=b){this.last=a;this.i=b;b=null;try{null!=c&&(v(c,jalview.appletgui.AlignViewport)&&c.applet.currentAlignFrame.viewport===c)&&(b=c.applet.currentAlignFrame),this.executeJavascriptFunction(this._listener,E(-1,[b,a.getDisplayId(!1),""+(1+this.i),""+a.findPosition(this.i)]))}catch(d){if(y(d,Exception))System.err.println("JalviewLite javascript error: Couldn't send mouseOver with handler '"+this._listener+"'"),v(d,netscape.javascript.JSException)&&System.err.println("Javascript Exception: "+
3516 d.getMessage()),d.printStackTrace();else throw d;}}},"jalview.datamodel.SequenceI,~N,jalview.structure.VamsasSource");m(c$,function(a,b,c){t(this,jalview.javascript.MouseOverListener,[a]);this._af=b;this._listener=c},"jalview.bin.JalviewLite,jalview.appletgui.AlignFrame,~S");e(c$,"getAlignFrame",function(){return this._af});e(c$,"getListenerFunction",function(){return this._listener})});p("jalview.javascript");q(["jalview.javascript.JSFunctionExec","$.JsCallBack","jalview.structure.StructureListener"],
3517 "jalview.javascript.MouseOverStructureListener","jalview.api.AlignmentViewPanel jalview.appletgui.FeatureRenderer jalview.ext.jmol.JmolCommands jalview.structure.StructureSelectionManager java.net.URL java.util.ArrayList".split(" "),function(){c$=s(function(){this.modelSet=this._listenerfn=null;r(this,arguments)},jalview.javascript,"MouseOverStructureListener",jalview.javascript.JSFunctionExec,[jalview.javascript.JsCallBack,jalview.structure.StructureListener]);m(c$,function(a,b,c){t(this,jalview.javascript.MouseOverStructureListener,
3518 [a]);this._listenerfn=b;this.modelSet=c;if(null!=this.modelSet)for(a=0;a<this.modelSet.length;a++){try{if(null!=(new java.net.URL(this.modelSet[a])).openConnection())continue}catch(d){if(!y(d,Exception))throw d;}try{var e=this.jvlite.getDocumentBase().toString(),e=e.substring(0,e.lastIndexOf("/"));if(null!=(new java.net.URL(e+"/"+this.modelSet[a])).openConnection()){this.modelSet[a]=e+"/"+this.modelSet[a];continue}}catch(k){if(!y(k,Exception))throw k;}try{null!=(new java.net.URL(this.jvlite.getCodeBase()+
3519 this.modelSet[a])).openConnection()&&(this.modelSet[a]=this.jvlite.getCodeBase()+this.modelSet[a])}catch(g){if(!y(g,Exception))throw g;}}},"jalview.bin.JalviewLite,~S,~A");e(c$,"getPdbFile",function(){return this.modelSet});d(c$,"mouseOverStructure",function(){},"~N,~S");e(c$,"highlightAtoms",function(a){var b;for(a=a.iterator();a.hasNext()&&((b=a.next())||1);)try{this.executeJavascriptFunction(this._listenerfn,E(-1,["mouseover",""+b.getPdbFile(),""+b.getChain(),""+b.getPdbResNum(),""+b.getAtomIndex()]))}catch(c){if(y(c,
3520 Exception))System.err.println("Couldn't execute callback with "+this._listenerfn+" for atomSpec: "+b),c.printStackTrace();else throw c;}},"java.util.List");e(c$,"updateColours",function(a){var b=jalview.structure.StructureSelectionManager.getStructureSelectionManager(this.jvlite);if(v(a,jalview.api.AlignmentViewPanel)){for(var c=Array(this.modelSet.length),d=0;d<this.modelSet.length;d++){var e=b.getMapping(this.modelSet[d]);if(null!=e&&0<e.length){c[d]=Array(e.length);for(var k=0;k<e.length;k++)c[d][k]=
3521 e[k].getSequence()}else c[d]=[]}var k=a.getSequenceRenderer(),g=a.av.isShowSequenceFeatures()?new jalview.appletgui.FeatureRenderer(a.av):null;null!=g&&g.transferSettings(a.getFeatureRenderer());e=new java.util.ArrayList;d=new java.util.ArrayList;k=jalview.ext.jmol.JmolCommands.getColourBySequenceCommand(b,this.modelSet,c,k,g,a.getAlignment());if(null!=k){for(var b=0,h,c=0;c<k.length&&((h=k[c])||1);c++)b+=h.commands.length,e.add(h.commands),d.add(h.mapping);k=Array(b);b=0;for(c=e.iterator();c.hasNext()&&
3522 ((h=c.next())||1);)System.arraycopy(h,0,k,b,h.length),b+=h.length;if(this.jvlite.isJsMessageSetChanged("colourstruct",h=a.av.getViewId(),k)){this.jvlite.setJsMessageSet("colourstruct",h,k);a=E(-1,["colourstruct",""+a.av.getViewId(),""+k.length,this.jvlite.arrayToSeparatorList(d.toArray(Array(d.size())))]);try{this.executeJavascriptFunction(!0,this._listenerfn,a)}catch(j){if(y(j,Exception))System.err.println("Couldn't execute callback with "+this._listenerfn+" using args { "+a[0]+", "+a[1]+", "+a[2]+
3523 ","+a[3]+"}"),j.printStackTrace();else throw j;}}}}},"~O");e(c$,"getAlignFrame",function(){return null});e(c$,"getListenerFunction",function(){return this._listenerfn});d(c$,"finalise",function(){this.jvlite=null;K(this,jalview.javascript.MouseOverStructureListener,"finalize",[])});e(c$,"releaseReferences",function(){},"~O");e(c$,"isListeningFor",function(){return!0},"jalview.datamodel.SequenceI")});p("jalview.ext.jmol");q(null,"jalview.ext.jmol.JmolCommands",["jalview.structure.StructureMappingcommandSet",
3524 "jalview.util.Comparison","java.lang.StringBuffer","java.util.ArrayList"],function(){c$=B(jalview.ext.jmol,"JmolCommands");c$.getColourBySequenceCommand=d(c$,"getColourBySequenceCommand",function(a,b,c,d,e,k){for(var g=new java.util.ArrayList,h=0;h<b.length;h++){var j=a.getMapping(b[h]),n=new StringBuffer,m=new java.util.ArrayList;if(!(null==j||1>j.length)){for(var p=-1,q=0;q<c[h].length;q++)for(var r,s=0;s<j.length;s++)if(j[s].getSequence()===c[h][q]&&-1<(r=k.findIndex(c[h][q]))){for(var t=k.getSequenceAt(r),
3525 v=0;v<t.getLength();v++)if(!jalview.util.Comparison.isGap(t.getCharAt(v))){var w=j[s].getPDBResNum(t.findPosition(v));if(!(1>w||w==p)){var p=w,y=d.getResidueBoxColour(c[h][q],v);null!=e&&(y=e.findFeatureColour(y,c[h][q],v));y=(" "!==j[s].getChain()?":"+j[s].getChain():"")+"/"+(h+1)+".1;color["+y.getRed()+","+y.getGreen()+","+y.getBlue()+"]";n.length()>y.length&&n.substring(n.length()-y.length).equals(y)?n=jalview.ext.jmol.JmolCommands.condenseCommand(n,w):(n.append(";"),51200<n.length()&&(m.add(n.toString()),
3526 n.setLength(0)),n.append("select "+w),n.append(y))}}break}m.add(n.toString());n.setLength(0);g.add(new jalview.structure.StructureMappingcommandSet(jalview.ext.jmol.JmolCommands,b[h],m.toArray(Array(m.size()))))}}return g.toArray(Array(g.size()))},"jalview.structure.StructureSelectionManager,~A,~A,jalview.api.SequenceRenderer,jalview.api.FeatureRenderer,jalview.datamodel.AlignmentI");c$.condenseCommand=d(c$,"condenseCommand",function(a,b){var c=a.length(),d=c;do c-=6,1>c&&(c=0);while(-1==(d=a.indexOf("select",
3527 c))&&0<c);c=new StringBuffer(a.substring(0,d+7));a=a.$delete(0,d+7);d=-1<a.indexOf("-")?a.substring(0,a.indexOf("-")):a.substring(0,a.indexOf(":"));c.append(d+"-"+b+a.substring(a.indexOf(":")));return c},"StringBuffer,~N")});p("jalview.structure");c$=s(function(){this.handledBy=this.commands=this.mapping=null;r(this,arguments)},jalview.structure,"StructureMappingcommandSet");m(c$,function(a,b,c){this.mapping=b;this.handledBy=a;this.commands=c},"~O,~S,~A");p("java.util");q(["java.util.Hashtable"],
3528 "java.util.Properties",["java.lang.IllegalArgumentException"],function(){c$=s(function(){this.defaults=null;H("java.util.Properties.LineReader")||java.util.Properties.$Properties$LineReader$();r(this,arguments)},java.util,"Properties",java.util.Hashtable);m(c$,function(){this.construct(null)});m(c$,function(a){t(this,java.util.Properties,[]);this.defaults=a},"java.util.Properties");d(c$,"setProperty",function(a,b){return this.put(a,b)},"~S,~S");d(c$,"load",function(a){this.load0(C(java.util.Properties.LineReader,
3529 this,null,a))},"java.io.Reader");d(c$,"load",function(a){this.load0(C(java.util.Properties.LineReader,this,null,a))},"java.io.InputStream");d(c$,"load0",function(a){for(var b=N(1024,"\x00"),c,d,e,k,g,h;0<=(c=a.readLine());){String.fromCharCode(0);d=0;e=c;for(h=g=!1;d<c;){k=a.lineBuf[d];if(("="==k||":"==k)&&!h){e=d+1;g=!0;break}else if((" "==k||"\t"==k||"\f"==k)&&!h){e=d+1;break}h="\\"==k?!h:!1;d++}for(;e<c;){k=a.lineBuf[e];if(" "!=k&&"\t"!=k&&"\f"!=k)if(!g&&("="==k||":"==k))g=!0;else break;e++}d=
3530 this.loadConvert(a.lineBuf,0,d,b);c=this.loadConvert(a.lineBuf,e,c-e,b);this.put(d,c)}},"java.util.Properties.LineReader");d(c$,"loadConvert",function(a,b,c,d){d.length<c&&(d=2*c,0>d&&(d=2147483647),d=N(d,"\x00"));for(var e=0,k=b+c;b<k;)if(c=a[b++],"\\"==c)if(c=a[b++],"u"==c){for(var g=0,h=0;4>h;h++)switch(c=a[b++],c){case "0":case "1":case "2":case "3":case "4":case "5":case "6":case "7":case "8":case "9":g=(g<<4)+c.charCodeAt(0)-48;break;case "a":case "b":case "c":case "d":case "e":case "f":g=(g<<
3531 4)+10+c.charCodeAt(0)-97;break;case "A":case "B":case "C":case "D":case "E":case "F":g=(g<<4)+10+c.charCodeAt(0)-65;break;default:throw new IllegalArgumentException("Malformed \\uxxxx encoding.");}d[e++]=String.fromCharCode(g)}else"t"==c?c="\t":"r"==c?c="\r":"n"==c?c="\n":"f"==c&&(c="\f"),d[e++]=c;else d[e++]=c;return String.instantialize(d,0,e)},"~A,~N,~N,~A");d(c$,"getProperty",function(a){var b=K(this,java.util.Properties,"get",[a]),b=v(b,String)?b:null;return null==b&&null!=this.defaults?this.defaults.getProperty(a):
3532 b},"~S");d(c$,"getProperty",function(a,b){var c=this.getProperty(a);return null==c?b:c},"~S,~S");d(c$,"propertyNames",function(){var a=new java.util.Hashtable;this.enumerate(a);return a.keys()});d(c$,"stringPropertyNames",function(){var a=new java.util.Hashtable;this.enumerateStringProperties(a);return a.keySet()});d(c$,"enumerate",function(a){null!=this.defaults&&this.defaults.enumerate(a);for(var b=this.keys();b.hasMoreElements();){var c=b.nextElement();a.put(c,this.get(c))}},"java.util.Hashtable");
3533 d(c$,"enumerateStringProperties",function(a){null!=this.defaults&&this.defaults.enumerateStringProperties(a);for(var b=this.keys();b.hasMoreElements();){var c=b.nextElement(),d=this.get(c);v(c,String)&&v(d,String)&&a.put(c,d)}},"java.util.Hashtable");c$.$Properties$LineReader$=function(){A(self.c$);c$=s(function(){O(this,arguments);this.lineBuf=this.inCharBuf=this.inByteBuf=null;this.inOff=this.inLimit=0;this.reader=this.inStream=null;r(this,arguments)},java.util.Properties,"LineReader");J(c$,function(){this.lineBuf=
3534 N(1024,"\x00")});m(c$,function(a){this.inStream=a;this.inByteBuf=S(8192,0)},"java.io.InputStream");m(c$,function(a){this.reader=a;this.inCharBuf=N(8192,"\x00")},"java.io.Reader");d(c$,"readLine",function(){for(var a=0,b=String.fromCharCode(0),c=!0,d=!1,e=!0,k=!1,g=!1,h=!1;;){if(this.inOff>=this.inLimit&&(this.inLimit=null==this.inStream?this.reader.read(this.inCharBuf):this.inStream.read(this.inByteBuf),this.inOff=0,0>=this.inLimit))return 0==a||d?-1:a;b=null!=this.inStream?String.fromCharCode(255&
3535 this.inByteBuf[this.inOff++]):this.inCharBuf[this.inOff++];if(h&&(h=!1,"\n"==b))continue;if(c){if(" "==b||"\t"==b||"\f"==b)continue;if(!k&&("\r"==b||"\n"==b))continue;k=c=!1}if(e&&(e=!1,"#"==b||"!"==b)){d=!0;continue}if("\n"!=b&&"\r"!=b){this.lineBuf[a++]=b;if(a==this.lineBuf.length){var j=N(2*this.lineBuf.length,"\x00");System.arraycopy(this.lineBuf,0,j,0,this.lineBuf.length);this.lineBuf=j}g="\\"==b?!g:!1}else if(d||0==a)d=!1,c=e=!0,a=0;else if(!(this.inOff>=this.inLimit&&(this.inLimit=null==this.inStream?
3536 this.reader.read(this.inCharBuf):this.inStream.read(this.inByteBuf),this.inOff=0,0>=this.inLimit))&&g)a-=1,k=c=!0,g=!1,"\r"==b&&(h=!0);else return a}});c$=z()}});p("jssun.util");q(["java.util.Enumeration"],"jssun.util.ResourceBundleEnumeration",["java.util.NoSuchElementException"],function(){c$=s(function(){this.next=this.enumeration=this.iterator=this.set=null;r(this,arguments)},jssun.util,"ResourceBundleEnumeration",null,java.util.Enumeration);m(c$,function(a,b){this.set=a;this.iterator=a.iterator();
3537 this.enumeration=b},"java.util.Set,java.util.Enumeration");d(c$,"hasMoreElements",function(){if(null==this.next)if(this.iterator.hasNext())this.next=this.iterator.next();else if(null!=this.enumeration)for(;null==this.next&&this.enumeration.hasMoreElements();)this.next=this.enumeration.nextElement(),this.set.contains(this.next)&&(this.next=null);return null!=this.next});d(c$,"nextElement",function(){if(this.hasMoreElements()){var a=this.next;this.next=null;return a}throw new java.util.NoSuchElementException;
3538 })});p("jalview.io");q(["jalview.io.AlignFile"],"jalview.io.FastaFile",["jalview.datamodel.AlignmentAnnotation","$.Annotation","java.lang.StringBuffer"],function(){c$=s(function(){this.len=72;this.out=null;r(this,arguments)},jalview.io,"FastaFile",jalview.io.AlignFile);m(c$,function(){t(this,jalview.io.FastaFile,[])});e(c$,"parse",function(){for(var a=new StringBuffer,b=!0,c,d,e=null,k=!1;null!=(d=this.nextLine());)c=d.trim(),0<c.length&&(">"==c.charAt(0)?(c.startsWith(">#_")?k&&this.annotations.addElement(this.makeAnnotation(e,
3539 a)):k=!1,b||(e.setSequence(a.toString()),k||this.seqs.addElement(e)),e=this.parseId(c.substring(1)),b=!1,a=new StringBuffer,c.startsWith(">#_")&&(k=!0)):a.append(k?d:c));k?this.annotations.addElement(this.makeAnnotation(e,a)):b||(e.setSequence(a.toString()),this.seqs.addElement(e))});d(c$,"makeAnnotation",function(a,b){for(var c=Array(b.length()),d=0;d<c.length;d++){var e=b.charAt(d);" "!=e&&(c[d]=new jalview.datamodel.Annotation(""+e,null," ",NaN))}return new jalview.datamodel.AlignmentAnnotation(a.getName().substring(2),
3540 a.getDescription(),c)},"jalview.datamodel.SequenceI,StringBuffer");d(c$,"addAnnotations",function(a){this.addProperties(a);for(var b=0;b<this.annotations.size();b++){var c=this.annotations.elementAt(b);c.setPadGaps(!0,a.getGapCharacter());a.addAnnotation(c)}},"jalview.datamodel.Alignment");d(c$,"print",function(a){this.out=new StringBuffer;for(var b=0;b<a.length&&null!=a[b];){this.out.append(">"+this.printId(a[b]));null!=a[b].getDescription()&&this.out.append(" "+a[b].getDescription());this.out.append(this.newline);
3541 for(var c=F(a[b].getLength()/this.len)+1,d=0;d<c;d++){var e=d*this.len,k=e+this.len;k<a[b].getLength()?this.out.append(a[b].getSequenceAsString(e,k)+this.newline):e<a[b].getLength()&&this.out.append(a[b].getSequenceAsString(e,a[b].getLength())+this.newline)}b++}return this.out.toString()},"~A");d(c$,"print",function(){return this.print(this.getSeqsAsArray())})});p("swingjs.plaf");q(["swingjs.plaf.JSPanelUI"],"swingjs.plaf.JSMenuBarUI",["java.awt.Dimension","javax.swing.LookAndFeel"],function(){c$=
3542 B(swingjs.plaf,"JSMenuBarUI",swingjs.plaf.JSPanelUI);m(c$,function(){t(this,swingjs.plaf.JSMenuBarUI,[]);this.isContainer=!0;this.setDoc()});e(c$,"getDOMObject",function(){null==this.domNode&&(this.domNode=this.createDOMObject("div",this.id,[]));return this.domNode});e(c$,"setHTMLSize",function(){return new java.awt.Dimension(this.c.getWidth(),this.c.getHeight())},"swingjs.api.DOMNode,~B");d(c$,"getPreferredSize",function(){return null},"javax.swing.JComponent");e(c$,"installJSUI",function(){javax.swing.LookAndFeel.installColorsAndFont(this.c,
3543 "MenuBar.background","MenuBar.foreground","MenuBar.font")});e(c$,"uninstallJSUI",function(){})});p("swingjs.plaf");q(["swingjs.plaf.JSComponentUI"],"swingjs.plaf.JSMenuUI",["java.awt.Dimension","javax.swing.LookAndFeel"],function(){c$=B(swingjs.plaf,"JSMenuUI",swingjs.plaf.JSComponentUI);m(c$,function(){t(this,swingjs.plaf.JSMenuUI,[]);this.isContainer=!0;this.setDoc()});e(c$,"getDOMObject",function(){null==this.domNode&&(this.domNode=this.createDOMObject("select",this.id,[]));return this.domNode});
3544 e(c$,"setHTMLSize",function(){return new java.awt.Dimension(this.c.getWidth(),this.c.getHeight())},"swingjs.api.DOMNode,~B");d(c$,"getPreferredSize",function(){return null},"javax.swing.JComponent");e(c$,"installJSUI",function(){javax.swing.LookAndFeel.installColorsAndFont(this.c,"Menu.background","Menu.foreground","Menu.font")});e(c$,"uninstallJSUI",function(){})});p("swingjs.plaf");q(["swingjs.plaf.JSButtonUI"],"swingjs.plaf.JSMenuItemUI",["javax.swing.LookAndFeel","$.UIManager","javax.swing.plaf.UIResource",
3545 "swingjs.api.DOMNode","swingjs.plaf.JSButtonListener"],function(){c$=s(function(){this.$domBtn=null;this.$defaultTextShiftOffset=this.$shiftOffset=0;r(this,arguments)},swingjs.plaf,"JSMenuItemUI",swingjs.plaf.JSButtonUI);e(c$,"getDOMObject",function(){null==this.domNode&&(this.$domBtn=this.enableNode=this.valueNode=this.domNode=this.createDOMObject("input",this.id,["type","button"]));this.setCssFont(swingjs.api.DOMNode.setAttr(this.domNode,"value",this.c.getText()),this.c.getFont());return this.domNode});
3546 e(c$,"verifyButtonClick",function(){return!0},"~B");e(c$,"installJSUI",function(){this.installDefaults(this.c);this.installListeners(this.c);this.installKeyboardActions(this.c)});e(c$,"uninstallJSUI",function(){this.uninstallKeyboardActions(this.c);this.uninstallListeners(this.c)});e(c$,"installListeners",function(a){var b=new swingjs.plaf.JSButtonListener(a);null!=b&&(a.addMouseListener(b),a.addMouseMotionListener(b),a.addFocusListener(b),a.addPropertyChangeListener(b),a.addChangeListener(b))},"javax.swing.AbstractButton");
3547 e(c$,"uninstallListeners",function(a){var b=this.getButtonListener(a);null!=b&&(a.removeMouseListener(b),a.removeMouseMotionListener(b),a.removeFocusListener(b),a.removeChangeListener(b),a.removePropertyChangeListener(b))},"javax.swing.AbstractButton");e(c$,"installKeyboardActions",function(a){var b=this.getButtonListener(a);null!=b&&b.installKeyboardActions(a)},"javax.swing.AbstractButton");e(c$,"uninstallKeyboardActions",function(a){var b=this.getButtonListener(a);null!=b&&b.uninstallKeyboardActions(a)},
3548 "javax.swing.AbstractButton");e(c$,"getPropertyPrefix",function(){return"Button."});e(c$,"installDefaults",function(a){var b=this.getPropertyPrefix();this.$defaultTextShiftOffset=javax.swing.UIManager.getInt(b+"textShiftOffset");(null==a.getMargin()||v(a.getMargin(),javax.swing.plaf.UIResource))&&a.setMargin(javax.swing.UIManager.getInsets(b+"margin"));javax.swing.LookAndFeel.installColorsAndFont(a,b+"background",b+"foreground",b+"font");javax.swing.LookAndFeel.installProperty(a,"iconTextGap",new Integer(4))},
3549 "javax.swing.AbstractButton")});p("swingjs.plaf");q(["swingjs.plaf.JSCheckBoxUI"],"swingjs.plaf.JSCheckBoxMenuItemUI",null,function(){c$=B(swingjs.plaf,"JSCheckBoxMenuItemUI",swingjs.plaf.JSCheckBoxUI);e(c$,"getDOMObject",function(){return this.getButtonObject("checkBox")});e(c$,"getPropertyPrefix",function(){return"CheckBoxMenuItem."})});p("swingjs.plaf");q(["swingjs.plaf.JSRadioButtonUI"],"swingjs.plaf.JSCheckBoxUI",null,function(){c$=B(swingjs.plaf,"JSCheckBoxUI",swingjs.plaf.JSRadioButtonUI);
3550 e(c$,"getDOMObject",function(){return this.getButtonObject("checkBox")});e(c$,"getPropertyPrefix",function(){return"CheckBox."})});p("swingjs.plaf");q(["swingjs.plaf.JSComponentUI"],"swingjs.plaf.JSLabelUI",["swingjs.api.DOMNode"],function(){c$=B(swingjs.plaf,"JSLabelUI",swingjs.plaf.JSComponentUI);e(c$,"getDOMObject",function(){null==this.domNode&&(this.textNode=this.domNode=this.createDOMObject("label",this.id,[]));swingjs.plaf.JSComponentUI.vCenter(this.domNode,10);return this.setCssFont(swingjs.api.DOMNode.setAttr(this.domNode,
3551 "innerHTML",this.c.getText()),this.c.getFont())});e(c$,"installJSUI",function(){});e(c$,"uninstallJSUI",function(){})});p("swingjs.plaf");q(["swingjs.plaf.JSMenuUI"],"swingjs.plaf.JSPopupMenuUI",["java.awt.Dimension","javax.swing.LookAndFeel"],function(){c$=B(swingjs.plaf,"JSPopupMenuUI",swingjs.plaf.JSMenuUI);m(c$,function(){t(this,swingjs.plaf.JSPopupMenuUI,[]);this.isContainer=!0;this.setDoc()});e(c$,"getDOMObject",function(){null==this.domNode&&(this.domNode=this.createDOMObject("select",this.id,
3552 []));return this.domNode});e(c$,"setHTMLSize",function(){return new java.awt.Dimension(this.c.getWidth(),this.c.getHeight())},"swingjs.api.DOMNode,~B");d(c$,"getPreferredSize",function(){return null},"javax.swing.JComponent");e(c$,"installJSUI",function(){javax.swing.LookAndFeel.installColorsAndFont(this.c,"PopupMenu.background","PopupMenu.foreground","PopupMenu.font")});e(c$,"uninstallJSUI",function(){})});p("swingjs.plaf");q(["swingjs.plaf.JSSeparatorUI"],"swingjs.plaf.JSPopupMenuSeparatorUI",["swingjs.api.DOMNode"],
3553 function(){c$=B(swingjs.plaf,"JSPopupMenuSeparatorUI",swingjs.plaf.JSSeparatorUI);e(c$,"getDOMObject",function(){null==this.domNode&&(this.textNode=this.domNode=this.createDOMObject("label",this.id,[]));swingjs.plaf.JSComponentUI.vCenter(this.domNode,10);return this.setCssFont(swingjs.api.DOMNode.setAttr(this.domNode,"innerHTML",this.c.getText()),this.c.getFont())});e(c$,"installJSUI",function(){});e(c$,"uninstallJSUI",function(){})});p("swingjs.plaf");q(["swingjs.plaf.JSComponentUI"],"swingjs.plaf.JSScrollBarUI",
3554 null,function(){c$=B(swingjs.plaf,"JSScrollBarUI",swingjs.plaf.JSComponentUI);e(c$,"getDOMObject",function(){null==this.domNode&&(this.domNode=this.createDOMObject("div",this.id,[]));return this.domNode});e(c$,"installJSUI",function(){});e(c$,"uninstallJSUI",function(){})});p("swingjs");q(null,"swingjs.JSImagekit",["java.util.Arrays","swingjs.JSImage","swingjs.api.Interface"],function(){c$=B(swingjs,"JSImagekit");m(c$,function(){});d(c$,"createImageFromBytes",function(a,b,c){var d=0,e=0,k=null,g=
3555 null,h=null;if(null==a)d=b,e=c;else{0>c&&(c=a.length);g=java.util.Arrays.copyOfRange(a,b,c);if(54>g.length)return null;switch(this.getSourceType(g)){case 3:k=swingjs.api.Interface.getInstance("javajs.img.BMPDecoder",!0).decodeWindowsBMP(g);if(null==k||null==k[0])return null;d=k[1].intValue();e=k[2].intValue();k=k[0];break;case 1:for(h=2;;){switch(this.getInt(g,h)){case 49407:case 49919:e=this.getIntRev(g,h+5),d=this.getIntRev(g,h+7),h=0}if(0==h)break;h+=2+this.getIntRev(g,h+2)}h="jpeg";break;case 0:d=
3556 this.getLong(g,16);e=this.getLong(g,20);h="png";break;case 2:d=this.getInt(g,6);e=this.getInt(g,8);h="gif";break;case -1:System.out.println("JSImagekit: Unknown image type: "+g[0]+" "+g[1]+" "+g[2]+" "+g[3]),a=null}}if(0==d||0==e)return null;d=new swingjs.JSImage(k,d,e);null!=a&&null==k&&d.getDOMImage(g,h);return d},"~A,~N,~N");d(c$,"getLong",function(a,b){return((a[b]&255)<<24)+((a[b+1]&255)<<16)+((a[b+2]&255)<<8)+(a[b+3]&255)},"~A,~N");d(c$,"getInt",function(a,b){return(a[b]&255)+((a[b+1]&255)<<
3557 8)},"~A,~N");d(c$,"getIntRev",function(a,b){return((a[b]&255)<<8)+(a[b+1]&255)},"~A,~N");d(c$,"getSourceType",function(a){return 137==(a[0]&255)&&80==a[1]&&78==a[2]&&71==a[3]?0:255==(a[0]&255)&&216==(a[1]&255)?1:71==a[0]&&73==a[1]&&70==a[2]?2:66==a[0]&&77==a[1]?3:-1},"~A");G(c$,"UNK",-1,"PNG",0,"JPG",1,"GIF",2,"BMP",3,"JPG_SOF0",49407,"JPG_SOF2",49919)});p("swingjs");q(["java.awt.image.BufferedImage"],"swingjs.JSImage",["JU.Base64","swingjs.api.DOMNode"],function(){c$=s(function(){this.typeRequested=
3558 0;this._imgNode=this.pix=null;this.height=this.width=0;r(this,arguments)},swingjs,"JSImage",java.awt.image.BufferedImage);m(c$,function(a,b,c){t(this,swingjs.JSImage,[b,c,2]);this.width=b;this.height=c;this.pix=a},"~A,~N,~N");d(c$,"toIntARGB",function(a){for(var b=F(a.length/4),c=w(b,0),d=0,e=0;d<b;e++)c[d++]=a[e++]<<16|a[e++]<<8|a[e++]|4278190080;return c},"~A");d(c$,"getDOMImage",function(a,b){var c="data:image/"+b+";base64,"+JU.Base64.getBase64(a).toString(),d=null,d=new Image(this.width,this.height);
3559 d.src=c;this.setDOMImage(d)},"~A,~S");d(c$,"setDOMImage",function(a){var b=swingjs.api.DOMNode.createElement("canvas","JSImage"),c=this.width,d=this.height;this._imgNode=a;b.width=c;b.height=d;b=b.getContext("2d");b.drawImage(a,0,0,c,d);c=b.getImageData(0,0,c,d).data;a._pbuf32=this.toIntARGB(c)},"swingjs.api.DOMNode");d(c$,"getHeight",function(){return this.height},"java.awt.image.ImageObserver");d(c$,"getWidth",function(){return this.width},"java.awt.image.ImageObserver")});p("jssun.awt.image");
3560 q(["jssun.awt.image.IntegerComponentRaster"],"jssun.awt.image.IntegerInterleavedRaster","java.lang.ArrayIndexOutOfBoundsException java.awt.Point $.Rectangle java.awt.image.DataBufferInt $.RasterFormatException $.SinglePixelPackedSampleModel".split(" "),function(){c$=s(function(){this.$maxY=this.$maxX=0;r(this,arguments)},jssun.awt.image,"IntegerInterleavedRaster",jssun.awt.image.IntegerComponentRaster);m(c$,function(a,b){t(this,jssun.awt.image.IntegerInterleavedRaster,[]);this.setIntInterRaster(a,
3561 a.createDataBuffer(),new java.awt.Rectangle(b.x,b.y,a.getWidth(),a.getHeight()),b,null)},"java.awt.image.SampleModel,java.awt.Point");m(c$,function(a,b,c){t(this,jssun.awt.image.IntegerInterleavedRaster,[]);this.setParams(a,b,c)},"java.awt.image.SampleModel,java.awt.image.DataBuffer,java.awt.Point");m(c$,function(){t(this,jssun.awt.image.IntegerInterleavedRaster,[])});e(c$,"setParams",function(a,b,c){this.setIntInterRaster(a,b,new java.awt.Rectangle(c.x,c.y,a.getWidth(),a.getHeight()),c,null)},"java.awt.image.SampleModel,java.awt.image.DataBuffer,java.awt.Point");
3562 m(c$,function(a,b,c,d,e){t(this,jssun.awt.image.IntegerInterleavedRaster,[]);this.setIntInterRaster(a,b,c,d,e)},"java.awt.image.SampleModel,java.awt.image.DataBuffer,java.awt.Rectangle,java.awt.Point,jssun.awt.image.IntegerInterleavedRaster");d(c$,"setIntInterRaster",function(a,b,c,d,e){this.setIntCompRaster(a,b,c,d,e);this.$maxX=this.minX+this.width;this.$maxY=this.minY+this.height;if(!v(b,java.awt.image.DataBufferInt))throw new java.awt.image.RasterFormatException("IntegerInterleavedRasters must haveinteger DataBuffers");
3563 this.data=jssun.awt.image.SunWritableRaster.stealData(b,0);if(v(a,java.awt.image.SinglePixelPackedSampleModel))this.scanlineStride=a.getScanlineStride(),this.pixelStride=1,this.dataOffsets=w(1,0),this.dataOffsets[0]=b.getOffset(),this.bandOffset=this.dataOffsets[0],this.dataOffsets[0]+=c.x-d.x+(c.y-d.y)*this.scanlineStride,this.numDataElems=a.getNumDataElements();else throw new java.awt.image.RasterFormatException("IntegerInterleavedRasters must have SinglePixelPackedSampleModel");this.verify()},
3564 "java.awt.image.SampleModel,java.awt.image.DataBuffer,java.awt.Rectangle,java.awt.Point,jssun.awt.image.IntegerInterleavedRaster");e(c$,"getDataOffsets",function(){return this.dataOffsets.clone()});e(c$,"getDataOffset",function(a){return this.dataOffsets[a]},"~N");e(c$,"getScanlineStride",function(){return this.scanlineStride});e(c$,"getPixelStride",function(){return this.pixelStride});e(c$,"getDataStorage",function(){return this.data});d(c$,"getDataElements",function(a,b,c){if(a<this.minX||b<this.minY||
3565 a>=this.$maxX||b>=this.$maxY)throw new ArrayIndexOutOfBoundsException("Coordinate out of bounds!");c=null==c?w(1,0):c;c[0]=this.data[(b-this.minY)*this.scanlineStride+(a-this.minX)+this.dataOffsets[0]];return c},"~N,~N,~O");d(c$,"getDataElements",function(a,b,c,d,e){if(a<this.minX||b<this.minY||a+c>this.$maxX||b+d>this.$maxY)throw new ArrayIndexOutOfBoundsException("Coordinate out of bounds!");e=v(e,Array)?e:w(c*d,0);a=(b-this.minY)*this.scanlineStride+(a-this.minX)+this.dataOffsets[0];for(var k=
3566 b=0;k<d;k++)System.arraycopy(this.data,a,e,b,c),b+=c,a+=this.scanlineStride;return e},"~N,~N,~N,~N,~O");d(c$,"setDataElements",function(a,b,c){if(a<this.minX||b<this.minY||a>=this.$maxX||b>=this.$maxY)throw new ArrayIndexOutOfBoundsException("Coordinate out of bounds!");this.data[(b-this.minY)*this.scanlineStride+(a-this.minX)+this.dataOffsets[0]]=c[0];this.markDirty()},"~N,~N,~O");d(c$,"setDataElements",function(a,b,c){a+=c.getMinX();b+=c.getMinY();var d=c.getWidth(),e=c.getHeight();if(a<this.minX||
3567 b<this.minY||a+d>this.$maxX||b+e>this.$maxY)throw new ArrayIndexOutOfBoundsException("Coordinate out of bounds!");this.setDataElements(a,b,d,e,c)},"~N,~N,java.awt.image.Raster");d(c$,"setDataElements",function(a,b,c,d,e){if(!(0>=c||0>=d)){var k=e.getMinX(),g=e.getMinY(),h=null;if(v(e,jssun.awt.image.IntegerInterleavedRaster)){h=e.getDataStorage();k=e.getScanlineStride();e=e.getDataOffset(0);a=this.dataOffsets[0]+(b-this.minY)*this.scanlineStride+(a-this.minX);for(var j=0;j<d;j++)System.arraycopy(h,
3568 e,this.data,a,c),e+=k,a+=this.scanlineStride;this.markDirty()}else{h=null;for(j=0;j<d;j++)h=e.getDataElements(k,g+j,c,1,h),this.setDataElements(a,b+j,c,1,h)}}},"~N,~N,~N,~N,java.awt.image.Raster");d(c$,"setDataElements",function(a,b,c,d,e){if(a<this.minX||b<this.minY||a+c>this.$maxX||b+d>this.$maxY)throw new ArrayIndexOutOfBoundsException("Coordinate out of bounds!");a=(b-this.minY)*this.scanlineStride+(a-this.minX)+this.dataOffsets[0];for(var k=b=0;k<d;k++)System.arraycopy(e,b,this.data,a,c),b+=
3569 c,a+=this.scanlineStride;this.markDirty()},"~N,~N,~N,~N,~O");e(c$,"createWritableChild",function(a,b,c,d,e,k,g){if(a<this.minX)throw new java.awt.image.RasterFormatException("x lies outside raster");if(b<this.minY)throw new java.awt.image.RasterFormatException("y lies outside raster");if(a+c<a||a+c>this.minX+this.width)throw new java.awt.image.RasterFormatException("(x + width) is outside raster");if(b+d<b||b+d>this.minY+this.height)throw new java.awt.image.RasterFormatException("(y + height) is outside raster");
3570 g=null!=g?this.sampleModel.createSubsetSampleModel(g):this.sampleModel;a=e-a;b=k-b;return new jssun.awt.image.IntegerInterleavedRaster(g,this.dataBuffer,new java.awt.Rectangle(e,k,c,d),new java.awt.Point(this.sampleModelTranslateX+a,this.sampleModelTranslateY+b),this)},"~N,~N,~N,~N,~N,~N,~A");e(c$,"createChild",function(a,b,c,d,e,k,g){return this.createWritableChild(a,b,c,d,e,k,g)},"~N,~N,~N,~N,~N,~N,~A");d(c$,"createCompatibleWritableRaster",function(a,b){if(0>=a||0>=b)throw new java.awt.image.RasterFormatException("negative "+
3571 (0>=a?"width":"height"));var c=this.sampleModel.createCompatibleSampleModel(a,b);return new jssun.awt.image.IntegerInterleavedRaster(c,new java.awt.Point(0,0))},"~N,~N");d(c$,"createCompatibleWritableRaster",function(){return this.createCompatibleWritableRaster(this.width,this.height)});e(c$,"toString",function(){return String.instantialize("IntegerInterleavedRaster: width = "+this.width+" height = "+this.height+" #Bands = "+this.numBands+" xOff = "+this.sampleModelTranslateX+" yOff = "+this.sampleModelTranslateY+
3572 " dataOffset[0] "+this.dataOffsets[0])})});p("jssun.awt.image");q(["jssun.awt.image.SunWritableRaster"],"jssun.awt.image.IntegerComponentRaster","java.lang.ArrayIndexOutOfBoundsException java.awt.Point $.Rectangle java.awt.image.DataBufferInt $.RasterFormatException $.SinglePixelPackedSampleModel".split(" "),function(){c$=s(function(){this.bandOffset=0;this.dataOffsets=null;this.pixelStride=this.scanlineStride=0;this.data=null;this.maxY=this.maxX=this.type=this.numDataElems=0;r(this,arguments)},jssun.awt.image,
3573 "IntegerComponentRaster",jssun.awt.image.SunWritableRaster);m(c$,function(a,b){t(this,jssun.awt.image.IntegerComponentRaster,[]);this.setIntCompRaster(a,a.createDataBuffer(),new java.awt.Rectangle(b.x,b.y,a.getWidth(),a.getHeight()),b,null)},"java.awt.image.SampleModel,java.awt.Point");m(c$,function(a,b,c){t(this,jssun.awt.image.IntegerComponentRaster,[]);this.setIntCompRaster(a,b,new java.awt.Rectangle(c.x,c.y,a.getWidth(),a.getHeight()),c,null)},"java.awt.image.SampleModel,java.awt.image.DataBuffer,java.awt.Point");
3574 m(c$,function(){t(this,jssun.awt.image.IntegerComponentRaster,[])});m(c$,function(a,b,c,d,e){t(this,jssun.awt.image.IntegerComponentRaster,[]);this.setIntCompRaster(a,b,c,d,e)},"java.awt.image.SampleModel,java.awt.image.DataBuffer,java.awt.Rectangle,java.awt.Point,java.awt.image.Raster");d(c$,"setIntCompRaster",function(a,b,c,d,e){this.setSunRaster(a,b,c,d,e);this.maxX=this.minX+this.width;this.maxY=this.minY+this.height;if(!v(b,java.awt.image.DataBufferInt))throw new java.awt.image.RasterFormatException("IntegerComponentRasters must haveinteger DataBuffers");
3575 if(1!=b.getNumBanks())throw new java.awt.image.RasterFormatException("DataBuffer for IntegerComponentRasters must only have 1 bank.");this.data=jssun.awt.image.SunWritableRaster.stealData(b,0);if(v(a,java.awt.image.SinglePixelPackedSampleModel)){e=a.getBitOffsets();for(var k=!1,g=1;g<e.length;g++)0!=e[g]%8&&(k=!0);this.type=k?9:10;this.scanlineStride=a.getScanlineStride();this.pixelStride=1;this.dataOffsets=w(1,0);this.dataOffsets[0]=b.getOffset();this.bandOffset=this.dataOffsets[0];this.dataOffsets[0]+=
3576 c.x-d.x+(c.y-d.y)*this.scanlineStride;this.numDataElems=a.getNumDataElements()}else throw new java.awt.image.RasterFormatException("IntegerComponentRasters must have SinglePixelPackedSampleModel");this.verify()},"java.awt.image.SampleModel,java.awt.image.DataBuffer,java.awt.Rectangle,java.awt.Point,java.awt.image.Raster");d(c$,"getDataOffsets",function(){return this.dataOffsets.clone()});d(c$,"getDataOffset",function(a){return this.dataOffsets[a]},"~N");d(c$,"getScanlineStride",function(){return this.scanlineStride});
3577 d(c$,"getPixelStride",function(){return this.pixelStride});d(c$,"getDataStorage",function(){return this.data});d(c$,"getDataElements",function(a,b,c){if(a<this.minX||b<this.minY||a>=this.maxX||b>=this.maxY)throw new ArrayIndexOutOfBoundsException("Coordinate out of bounds!");c=null==c?w(this.numDataElements,0):c;a=(b-this.minY)*this.scanlineStride+(a-this.minX)*this.pixelStride;for(b=0;b<this.numDataElements;b++)c[b]=this.data[this.dataOffsets[b]+a];return c},"~N,~N,~O");d(c$,"getDataElements",function(a,
3578 b,c,d,e){if(a<this.minX||b<this.minY||a+c>this.maxX||b+d>this.maxY)throw new ArrayIndexOutOfBoundsException("Coordinate out of bounds!");e=v(e,Array)?e:w(this.numDataElements*c*d,0);a=(b-this.minY)*this.scanlineStride+(a-this.minX)*this.pixelStride;var k=0,g,h;for(h=0;h<d;h++,a+=this.scanlineStride){b=a;for(g=0;g<c;g++,b+=this.pixelStride)for(var j=0;j<this.numDataElements;j++)e[k++]=this.data[this.dataOffsets[j]+b]}return e},"~N,~N,~N,~N,~O");d(c$,"setDataElements",function(a,b,c){if(a<this.minX||
3579 b<this.minY||a>=this.maxX||b>=this.maxY)throw new ArrayIndexOutOfBoundsException("Coordinate out of bounds!");a=(b-this.minY)*this.scanlineStride+(a-this.minX)*this.pixelStride;for(b=0;b<this.numDataElements;b++)this.data[this.dataOffsets[b]+a]=c[b];this.markDirty()},"~N,~N,~O");e(c$,"setDataElementsRaster",function(a,b,c){a+=c.getMinX();b+=c.getMinY();var d=c.getWidth(),e=c.getHeight();if(a<this.minX||b<this.minY||a+d>this.maxX||b+e>this.maxY)throw new ArrayIndexOutOfBoundsException("Coordinate out of bounds!");
3580 this.setDataElementsRaster4(a,b,d,e,c)},"~N,~N,java.awt.image.Raster");d(c$,"setDataElementsRaster4",function(a,b,c,d,e){if(!(0>=c||0>=d)){var k=e.getMinX(),g=e.getMinY(),h=null;if(v(e,jssun.awt.image.IntegerComponentRaster)&&1==this.pixelStride&&1==this.numDataElements){if(1!=e.getNumDataElements())throw new ArrayIndexOutOfBoundsException("Number of bands does not match");var h=e.getDataStorage(),j=e.getScanlineStride(),m=e.getDataOffset(0),p=this.dataOffsets[0]+(b-this.minY)*this.scanlineStride+
3581 (a-this.minX);if(e.getPixelStride()==this.pixelStride){c*=this.pixelStride;for(var q=0;q<d;q++)System.arraycopy(h,m,this.data,p,c),m+=j,p+=this.scanlineStride;this.markDirty();return}}h=null;for(q=0;q<d;q++)h=e.getDataElements(k,g+q,c,1,h),this.setDataElements(a,b+q,c,1,h)}},"~N,~N,~N,~N,java.awt.image.Raster");d(c$,"setDataElements",function(a,b,c,d,e){if(a<this.minX||b<this.minY||a+c>this.maxX||b+d>this.maxY)throw new ArrayIndexOutOfBoundsException("Coordinate out of bounds!");a=(b-this.minY)*this.scanlineStride+
3582 (a-this.minX)*this.pixelStride;var k=0,g,h;for(h=0;h<d;h++,a+=this.scanlineStride){b=a;for(g=0;g<c;g++,b+=this.pixelStride)for(var j=0;j<this.numDataElements;j++)this.data[this.dataOffsets[j]+b]=e[k++]}this.markDirty()},"~N,~N,~N,~N,~O");e(c$,"createWritableChild",function(a,b,c,d,e,k,g){if(a<this.minX)throw new java.awt.image.RasterFormatException("x lies outside raster");if(b<this.minY)throw new java.awt.image.RasterFormatException("y lies outside raster");if(a+c<a||a+c>this.minX+this.width)throw new java.awt.image.RasterFormatException("(x + width) is outside raster");
3583 if(b+d<b||b+d>this.minY+this.height)throw new java.awt.image.RasterFormatException("(y + height) is outside raster");g=null!=g?this.sampleModel.createSubsetSampleModel(g):this.sampleModel;a=e-a;b=k-b;return new jssun.awt.image.IntegerComponentRaster(g,this.dataBuffer,new java.awt.Rectangle(e,k,c,d),new java.awt.Point(this.sampleModelTranslateX+a,this.sampleModelTranslateY+b),this)},"~N,~N,~N,~N,~N,~N,~A");e(c$,"createChild",function(a,b,c,d,e,k,g){return this.createWritableChild(a,b,c,d,e,k,g)},"~N,~N,~N,~N,~N,~N,~A");
3584 d(c$,"createCompatibleWritableRaster",function(a,b){if(0>=a||0>=b)throw new java.awt.image.RasterFormatException("negative "+(0>=a?"width":"height"));var c=this.sampleModel.createCompatibleSampleModel(a,b);return new jssun.awt.image.IntegerComponentRaster(c,new java.awt.Point(0,0))},"~N,~N");d(c$,"createCompatibleWritableRaster",function(){return this.createCompatibleWritableRaster(this.width,this.height)});d(c$,"verify",function(){if(0>=this.width||0>=this.height||this.height>F(2147483647/this.width))throw new java.awt.image.RasterFormatException("Invalid raster dimension");
3585 if(0>this.dataOffsets[0])throw new java.awt.image.RasterFormatException("Data offset ("+this.dataOffsets[0]+") must be >= 0");if(0>this.minX-this.sampleModelTranslateX||0>this.minY-this.sampleModelTranslateY)throw new java.awt.image.RasterFormatException("Incorrect origin/translate: ("+this.minX+", "+this.minY+") / ("+this.sampleModelTranslateX+", "+this.sampleModelTranslateY+")");if(0>this.scanlineStride||this.scanlineStride>F(2147483647/this.height))throw new java.awt.image.RasterFormatException("Incorrect scanline stride: "+
3586 this.scanlineStride);if((1<this.height||0<this.minY-this.sampleModelTranslateY)&&this.scanlineStride>this.data.length)throw new java.awt.image.RasterFormatException("Incorrect scanline stride: "+this.scanlineStride);var a=(this.height-1)*this.scanlineStride;if(0>this.pixelStride||this.pixelStride>F(2147483647/this.width)||this.pixelStride>this.data.length)throw new java.awt.image.RasterFormatException("Incorrect pixel stride: "+this.pixelStride);var b=(this.width-1)*this.pixelStride;if(b>2147483647-
3587 a)throw new java.awt.image.RasterFormatException("Incorrect raster attributes");for(var b=b+a,c=0,d=0;d<this.numDataElements;d++){if(this.dataOffsets[d]>2147483647-b)throw new java.awt.image.RasterFormatException("Incorrect band offset: "+this.dataOffsets[d]);a=b+this.dataOffsets[d];a>c&&(c=a)}if(this.data.length<=c)throw new java.awt.image.RasterFormatException("Data array too small (should be > "+c+" )");});e(c$,"toString",function(){return String.instantialize("IntegerComponentRaster: width = "+
3588 this.width+" height = "+this.height+" #Bands = "+this.numBands+" #DataElements "+this.numDataElements+" xOff = "+this.sampleModelTranslateX+" yOff = "+this.sampleModelTranslateY+" dataOffset[0] "+this.dataOffsets[0])});G(c$,"TYPE_CUSTOM",0,"TYPE_BYTE_SAMPLES",1,"TYPE_USHORT_SAMPLES",2,"TYPE_INT_SAMPLES",3,"TYPE_BYTE_BANDED_SAMPLES",4,"TYPE_USHORT_BANDED_SAMPLES",5,"TYPE_INT_BANDED_SAMPLES",6,"TYPE_BYTE_PACKED_SAMPLES",7,"TYPE_USHORT_PACKED_SAMPLES",8,"TYPE_INT_PACKED_SAMPLES",9,"TYPE_INT_8BIT_SAMPLES",
3589 10,"TYPE_BYTE_BINARY_SAMPLES",11)});p("jssun.awt.image");q(["java.awt.image.WritableRaster","jssun.awt.image.DataStealer"],"jssun.awt.image.SunWritableRaster",["jssun.java2d.StateTrackable","$.StateTrackableDelegate"],function(){c$=s(function(){this.theTrackable=null;r(this,arguments)},jssun.awt.image,"SunWritableRaster",java.awt.image.WritableRaster);c$.getStealer=d(c$,"getStealer",function(){return null==jssun.awt.image.SunWritableRaster.stealer?jssun.awt.image.SunWritableRaster.stealer=(H("jssun.awt.image.SunWritableRaster$1")?
3590 0:jssun.awt.image.SunWritableRaster.$SunWritableRaster$1$(),C(jssun.awt.image.SunWritableRaster$1,this,null)):jssun.awt.image.SunWritableRaster.stealer});c$.stealData=d(c$,"stealData",function(a,b){return jssun.awt.image.SunWritableRaster.getStealer().getData(a,b)},"java.awt.image.DataBufferByte,~N");c$.stealData=d(c$,"stealData",function(a,b){return jssun.awt.image.SunWritableRaster.getStealer().getData(a,b)},"java.awt.image.DataBufferInt,~N");c$.stealTrackable=d(c$,"stealTrackable",function(a){return jssun.awt.image.SunWritableRaster.getStealer().getTrackable(a)},
3591 "java.awt.image.DataBuffer");c$.setTrackable=d(c$,"setTrackable",function(a,b){jssun.awt.image.SunWritableRaster.getStealer().setTrackable(a,b)},"java.awt.image.DataBuffer,jssun.java2d.StateTrackableDelegate");c$.makeTrackable=d(c$,"makeTrackable",function(a){jssun.awt.image.SunWritableRaster.getStealer().setTrackable(a,jssun.java2d.StateTrackableDelegate.createInstance(jssun.java2d.StateTrackable.State.STABLE))},"java.awt.image.DataBuffer");c$.markDirty=d(c$,"markDirty",function(a){jssun.awt.image.SunWritableRaster.getStealer().getTrackable(a).markDirty()},
3592 "java.awt.image.DataBuffer");c$.markDirty=d(c$,"markDirty",function(a){v(a,jssun.awt.image.SunWritableRaster)?a.markDirty():jssun.awt.image.SunWritableRaster.markDirty(a.getDataBuffer())},"java.awt.image.WritableRaster");m(c$,function(a,b){t(this,jssun.awt.image.SunWritableRaster,[a,b]);this.theTrackable=jssun.awt.image.SunWritableRaster.stealTrackable(this.dataBuffer)},"java.awt.image.SampleModel,java.awt.Point");m(c$,function(a,b,c){t(this,jssun.awt.image.SunWritableRaster,[a,b,c]);this.theTrackable=
3593 jssun.awt.image.SunWritableRaster.stealTrackable(b)},"java.awt.image.SampleModel,java.awt.image.DataBuffer,java.awt.Point");m(c$,function(){t(this,jssun.awt.image.SunWritableRaster,[])});m(c$,function(a,b,c,d,e){t(this,jssun.awt.image.SunWritableRaster,[]);this.setSunRaster(a,b,c,d,e)},"java.awt.image.SampleModel,java.awt.image.DataBuffer,java.awt.Rectangle,java.awt.Point,java.awt.image.Raster");d(c$,"setSunRaster",function(a,b,c,d,e){this.setRaster(a,b,c,d,e);this.theTrackable=jssun.awt.image.SunWritableRaster.stealTrackable(b)},
3594 "java.awt.image.SampleModel,java.awt.image.DataBuffer,java.awt.Rectangle,java.awt.Point,java.awt.image.Raster");d(c$,"markDirty",function(){this.theTrackable.markDirty()});c$.$SunWritableRaster$1$=function(){A(self.c$);c$=L(jssun.awt.image,"SunWritableRaster$1",null,jssun.awt.image.DataStealer);d(c$,"getData",function(a,b){return a.bankdata[b]},"java.awt.image.DataBufferByte,~N");d(c$,"getData",function(a,b){return a.bankdata[b]},"java.awt.image.DataBufferInt,~N");d(c$,"getTrackable",function(a){return a.theTrackable},
3595 "java.awt.image.DataBuffer");d(c$,"setTrackable",function(a,b){a.theTrackable=b},"java.awt.image.DataBuffer,jssun.java2d.StateTrackableDelegate");c$=z()};G(c$,"stealer",null)});p("jssun.awt.image");M(jssun.awt.image,"DataStealer")})(Clazz,Clazz.getClassName,Clazz.newLongArray,Clazz.doubleToByte,Clazz.doubleToInt,Clazz.doubleToLong,Clazz.declarePackage,Clazz.instanceOf,Clazz.load,Clazz.instantialize,Clazz.decorateAsClass,Clazz.floatToInt,Clazz.floatToLong,Clazz.makeConstructor,Clazz.defineEnumConstant,
3596 Clazz.exceptionOf,Clazz.newIntArray,Clazz.defineStatics,Clazz.newFloatArray,Clazz.declareType,Clazz.prepareFields,Clazz.superConstructor,Clazz.newByteArray,Clazz.declareInterface,Clazz.p0p,Clazz.pu$h,Clazz.newShortArray,Clazz.innerTypeInstance,Clazz.isClassDefined,Clazz.prepareCallback,Clazz.newArray,Clazz.castNullAs,Clazz.floatToShort,Clazz.superCall,Clazz.decorateAsType,Clazz.newBooleanArray,Clazz.newCharArray,Clazz.implementOf,Clazz.newDoubleArray,Clazz.overrideConstructor,Clazz.clone,Clazz.doubleToShort,
3597 Clazz.getInheritedLevel,Clazz.getParamsType,Clazz.isAF,Clazz.isAI,Clazz.isAS,Clazz.isASS,Clazz.isAP,Clazz.isAFloat,Clazz.isAII,Clazz.isAFF,Clazz.isAFFF,Clazz.tryToSearchAndExecute,Clazz.getStackTrace,Clazz.inheritArgs,Clazz.alert,Clazz.defineMethod,Clazz.overrideMethod,Clazz.declareAnonymous,Clazz.checkPrivateMethod,Clazz.cloneFinals);