/**
 * @license RequireJS i18n 1.0.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
 * Available via the MIT or new BSD license.
 * see: http://github.com/jrburke/requirejs for details
 */
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 ******************************************************************************/
/**
 * @license RequireJS domReady 1.0.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
 * Available via the MIT or new BSD license.
 * see: http://github.com/jrburke/requirejs for details
 */
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2011 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2010, 2011 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2010, 2011 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2011 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 ******************************************************************************/
/**
 * @license RequireJS text 1.0.7 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
 * Available via the MIT or new BSD license.
 * see: http://github.com/jrburke/requirejs for details
 */
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2009, 2011 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 *
 * Contributors: IBM Corporation - initial API and implementation
 *******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2009, 2011 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 *
 * Contributors: IBM Corporation - initial API and implementation
 *******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2010,2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2010, 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2011 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2011 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2011, 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2011 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 *
 * Contributors: IBM Corporation - initial API and implementation
 *******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2011, 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2010, 2011 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2010, 2011 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2011 IBM Corporation and others. 
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2011 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2010, 2011 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: 
 *		Felipe Heidrich (IBM Corporation) - initial API and implementation
 *		Silenio Quarti (IBM Corporation) - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2010, 2011 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2010, 2011 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2011 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2011 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2010, 2011 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *     Andy Clement (vmware) - bug 344614
 *******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made
 * available under the terms of the Eclipse Public License v1.0
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html).
 *
 * Contributors:
 *     Kris De Volder (VMWare) - initial API and implementation
 *******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2011 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2011 IBM Corporation and others. 
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2011,2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2011 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2010, 2011 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2010, 2011 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made
 * available under the terms of the Eclipse Public License v1.0
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html).
 *
 * Contributors:
 *     Kris De Volder (VMWare) - initial API and implementation
 *******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made
 * available under the terms of the Eclipse Public License v1.0
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html).
 *
 * Contributors:
 *     Kris De Volder (VMWare) - initial API and implementation
 *******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2010, 2012 IBM Corporation and others 
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors:
 * IBM Corporation - initial API and implementation
 *******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made
 * available under the terms of the Eclipse Public License v1.0
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html).
 *
 * Contributors:
 *     Kris De Volder (VMWare) - initial API and implementation
 *******************************************************************************/
/*

 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 


 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 RequireJS domReady 1.0.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
 Available via the MIT or new BSD license.
 see: http://github.com/jrburke/requirejs for details

 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2011 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors:
 IBM Corporation - initial API and implementation

 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors:
 IBM Corporation - initial API and implementation

 Copyright (c) 2010, 2011 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2010, 2011 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors:
 IBM Corporation - initial API and implementation

 Copyright (c) 2011 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors:
 IBM Corporation - initial API and implementation

 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 


 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 RequireJS text 1.0.7 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
 Available via the MIT or new BSD license.
 see: http://github.com/jrburke/requirejs for details

 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors:
 IBM Corporation - initial API and implementation

 Copyright (c) 2009, 2011 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2009, 2011 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2010,2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 


 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 


 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 


 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 


 Copyright (c) 2010, 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 


 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 


 Copyright (c) 2011 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors:
 IBM Corporation - initial API and implementation

 Copyright (c) 2011, 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors:
 IBM Corporation - initial API and implementation

 Copyright (c) 2011 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors:
 IBM Corporation - initial API and implementation

 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2010, 2011 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2010, 2011 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors:
 IBM Corporation - initial API and implementation

 Copyright (c) 2011 IBM Corporation and others. 
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2011 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2010, 2011 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: 
 Felipe Heidrich (IBM Corporation) - initial API and implementation
 Silenio Quarti (IBM Corporation) - initial API and implementation

 Copyright (c) 2010, 2011 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2010, 2011 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2011 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors:
 IBM Corporation - initial API and implementation

 Copyright (c) 2011 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors:
 IBM Corporation - initial API and implementation

 Copyright (c) 2010, 2011 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors:
 IBM Corporation - initial API and implementation
 Andy Clement (vmware) - bug 344614

 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made
 available under the terms of the Eclipse Public License v1.0
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html).

 Contributors:
 Kris De Volder (VMWare) - initial API and implementation

 Copyright (c) 2011 IBM Corporation and others. 
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2011,2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors:
 IBM Corporation - initial API and implementation

 Copyright (c) 2011 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors:
 IBM Corporation - initial API and implementation

 Copyright (c) 2010, 2011 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made
 available under the terms of the Eclipse Public License v1.0
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html).

 Contributors:
 Kris De Volder (VMWare) - initial API and implementation

 Copyright (c) 2010, 2012 IBM Corporation and others 
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors:
 IBM Corporation - initial API and implementation

 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made
 available under the terms of the Eclipse Public License v1.0
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html).

 Contributors:
 Kris De Volder (VMWare) - initial API and implementation
 RequireJS i18n 1.0.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
 Available via the MIT or new BSD license.
 see: http://github.com/jrburke/requirejs for details

 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors:
 IBM Corporation - initial API and implementation

 Copyright (c) 2011 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors:
 IBM Corporation - initial API and implementation

 Copyright (c) 2011, 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2011 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors:
 IBM Corporation - initial API and implementation

 Copyright (c) 2010, 2011 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made
 available under the terms of the Eclipse Public License v1.0
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html).

 Contributors:
 Kris De Volder (VMWare) - initial API and implementation
*/
(function(){function b(a,b,c,d,i,j){b[a]&&(c.push(a),(b[a]===!0||b[a]===1)&&d.push(i+a+"/"+j))}function d(a,b,c,d,i){b=d+b+"/"+i;require._fileExists(a.toUrl(b))&&c.push(b)}var a=/(^.*(^|\/)nls(\/|$))([^\/]*)\/?([^\/]*)/,c={};define("i18n",{version:"1.0.0",load:function(e,f,g,h){var h=h||{},i=a.exec(e),j=i[1],k=i[4],l=i[5],m=k.split("-"),n=[],o={},p,r,q="";i[5]?(j=i[1],e=j+l):(l=i[4],k=h.locale||(h.locale=typeof navigator==="undefined"?"root":(navigator.language||navigator.userLanguage||"root").toLowerCase()),
m=k.split("-"));if(h.isBuild){n.push(e);d(f,"root",n,j,l);for(p=0;r=m[p];p++)q+=(q?"-":"")+r,d(f,q,n,j,l);f(n,function(){g()})}else f([e],function(a){var e=[];b("root",a,e,n,j,l);for(p=0;r=m[p];p++)q+=(q?"-":"")+r,b(q,a,e,n,j,l);f(n,function(){var b,d;for(b=e.length-1;b>-1&&(r=e[b]);b--){d=a[r];if(d===!0||d===1)d=f(j+r+"/"+l);var i=o,h=void 0;for(h in d)!(h in c)&&!(h in i)&&(i[h]=d[h])}g(o)})})}})})();
define("orion/i18n",[],function(){return{load:function(b,d,a,c){var c=c||{},e=/(^.*(?:^|\/)nls(?:\/|$))([^\/]*)\/?([^\/]*)/,f=e.exec(b);if(f)if(d.defined(b))a(d(b));else if(c.isBuild||c.isTest)a({});else{var g=f[1],h=f[3]?f[2]:"",i=f[3]||f[2];d(["orion/bootstrap"],function(j){j.startup().then(function(j){var l=j.serviceRegistry,j=l.getServiceReferences("orion.i18n.message");if(h)j.some(function(c){return b===c.getProperty("name")?(l.getService(c).getMessageBundle().then(function(b){a(b)},function(){a({})}),
!0):!1})||a({});else{var m={},n;j.forEach(function(a){var b=a.getProperty("name");if((f=e.exec(b))&&g===f[1]&&i===(f[3]||f[2]))if(h=f[3]?f[2]:""){if((a=c.locale||(typeof navigator!=="undefined"?navigator.language||navigator.userLanguage:null))&&a.indexOf(h)===0)m[h]=!0,d.specified(b)||define(b,["orion/i18n!"+b],function(a){return a})}else n=a});d.specified(b)?a(m):n?l.getService(n).getMessageBundle().then(function(c){Object.keys(m).forEach(function(a){typeof c[a]==="undefined"&&(c[a]=m[a])});define(b,
[],c);a(c)},function(){define(b,[],m);a(m)}):(define(b,[],m),a(m))}})})}else a(null)}}});define("orion/console/nls/messages",["orion/i18n!orion/console/nls/messages"],function(b){var d={root:!0};Object.keys(b).forEach(function(a){typeof d[a]==="undefined"&&(d[a]=b[a])});return d});
define("orion/console/nls/root/messages",{"Changed to: ${0}":"Changed to: ${0}","${0} is not a directory":"${0} is not a directory","${0} was not found":"${0} was not found","Change current directory":"Change current directory",Directory:"Directory","Edit a file":"Edit a file",File:"File","Show a list of files in the current directory":"Show a list of files in the current directory","Print current directory":"Print current directory","'${0}' is not valid":"'${0}' is not valid","File service error: ${0}":"File service error: ${0}"});
(function(){function b(a,b,e){(function(){if(typeof this.loadFirebugConsole=="function")this.loadFirebugConsole();else{this.console=this.console||{};for(var d="assert,count,debug,dir,dirxml,error,group,groupEnd,info,profile,profileEnd,time,timeEnd,trace,warn,log".split(","),g=0,h;h=d[g++];)console[h]||function(){var a=h+"";console[a]="log"in console?function(){var b=Array.apply({},arguments);b.unshift(a+":");console.log(b.join(" "))}:function(){};console[a]._fake=!0}()}typeof a=="undefined"&&(a={_scopeName:"dojo",
_scopePrefix:"",_scopePrefixArgs:"",_scopeSuffix:"",_scopeMap:{},_scopeMapRev:{}});var i=a;typeof b=="undefined"&&(b={_scopeName:"dijit"});typeof e=="undefined"&&(e={_scopeName:"dojox"});if(!i._scopeArgs)i._scopeArgs=[a,b,e];i.global=this;i.config={isDebug:!1,debugAtAllCosts:!1};if(d=typeof djConfig!="undefined"?djConfig:typeof dojoConfig!="undefined"?dojoConfig:null)for(var j in d)i.config[j]=d[j];a.locale=i.config.locale;j="$Rev: 24595 $".match(/\d+/);a.version={major:1,minor:6,patch:1,flag:"",
revision:j?+j[0]:NaN,toString:function(){with(i.version)return major+"."+minor+"."+patch+flag+" ("+revision+")"}};typeof OpenAjax!="undefined"&&OpenAjax.hub.registerLibrary(a._scopeName,"http://dojotoolkit.org",i.version.toString());var k,l,m={};for(g in{toString:1}){k=[];break}a._extraNames=k=k||"hasOwnProperty,valueOf,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,constructor".split(",");l=k.length;a._mixin=function(a,b){var c,e,d;for(c in b)if(e=b[c],!(c in a)||a[c]!==e&&(!(c in m)||
m[c]!==e))a[c]=e;if(l&&b)for(d=0;d<l;++d)if(c=k[d],e=b[c],!(c in a)||a[c]!==e&&(!(c in m)||m[c]!==e))a[c]=e;return a};a.mixin=function(a,b){a||(a={});for(var c=1,e=arguments.length;c<e;c++)i._mixin(a,arguments[c]);return a};a._getProp=function(a,b,c){for(var c=c||i.global,e=0,d;c&&(d=a[e]);e++)e==0&&i._scopeMap[d]&&(d=i._scopeMap[d]),c=d in c?c[d]:b?c[d]={}:void 0;return c};a.setObject=function(a,b,c){var e=a.split("."),a=e.pop();return(c=i._getProp(e,!0,c))&&a?c[a]=b:void 0};a.getObject=function(a,
b,c){return i._getProp(a.split("."),b,c)};a.exists=function(a,b){return i.getObject(a,!1,b)!==void 0};a.eval=function(a){return i.global.eval?i.global.eval(a):eval(a)};i.deprecated=i.experimental=function(){}})();return{dojo:a,dijit:b,dojox:e}}if(this.define)define("dojo/_base/_loader/bootstrap",[],function(){var a=b();a.dojo._dijit=a.dijit;a.dojo._dojox=a.dojox;return a.dojo});else{var d=b();dojo=d.dojo;dijit=d.dijit;dojox=d.dojox}})();
define("domReady",[],function(){function b(a){for(var b=0,c;c=a[b];b++)c(g)}function d(){var a=h,c=i;f&&(a.length&&(h=[],b(a)),j.resourcesDone&&c.length&&(i=[],b(c)))}function a(){f||(f=!0,l&&clearInterval(l),d())}function c(a){f?a(g):h.push(a);return c}var e=typeof window!=="undefined"&&window.document,f=!e,g=e?document:null,h=[],i=[],j=requirejs||require||{},k=j.resourcesReady,l;if("resourcesReady"in j)j.resourcesReady=function(a){k&&k(a);a&&d()};e&&(document.addEventListener?(document.addEventListener("DOMContentLoaded",
a,!1),window.addEventListener("load",a,!1)):window.attachEvent&&(window.attachEvent("onload",a),self===self.top&&(l=setInterval(function(){try{document.body&&(document.documentElement.doScroll("left"),a())}catch(b){}},30))),document.readyState==="complete"&&a());c.withResources=function(a){f&&j.resourcesDone?a(g):i.push(a);return c};c.version="1.0.0";c.load=function(a,b,e,d){d.isBuild?e(null):c(e)};return c});
define("dojo/lib/backCompat",["require","dojo/_base/_loader/bootstrap","domReady"],function(b,d,a){var c="_moduleHasPrefix,_loadPath,_loadUri,_loadUriAndCheck,loaded,_callLoaded,_getModuleSymbols,_loadModule,require,provide,platformRequire,requireIf,requireAfterIf,registerModulePath".split(","),e,f;for(e=0;e<c.length;)f=c[e++],d[f]=function(a){return function(){console.warn("dojo."+a+" not available when using an AMD loader.")}}(f);var g=function(a){var b=[],c;for(c=0;c<a.length;)b.push(a[c++]);return b},
h=function(a,b){return b?typeof b=="string"?function(){a[b]()}:function(){b.call(a)}:a};d.ready=d.addOnLoad=function(b,c){a(c?h(b,c):b)};d.addOnLoad(function(){d.postLoad=d.config.afterOnLoad=!0});if(c=d.config.addOnLoad)d.addOnLoad[c instanceof Array?"apply":"call"](d,c);var i=d._loaders=[],j=function(){var a=i.slice(0);for(Array.prototype.splice.apply(i,[0,i.length]);a.length;)a.shift().call()};i.unshift=function(){Array.prototype.unshift.apply(i,g(arguments));a(j)};i.splice=function(){Array.prototype.splice.apply(i,
g(arguments));a(j)};var k=d._unloaders=[];d.unloaded=function(){for(;k.length;)k.pop().call()};d._onto=function(a,b,c){a.push(c?h(b,c):b)};d._modulesLoaded=function(){};d.loadInit=function(a){a()};d.getL10nName=function(a,b,c){c=c?c.toLowerCase():d.locale;a="i18n!"+a.replace(/\./g,"/");return/root/i.test(c)?a+"/nls/"+b:a+"/nls/"+c+"/"+b};d.requireLocalization=function(a,c,e){b.vendor!="altoviso.com"&&(e=!e||e.toLowerCase()===d.locale?"root":e);return b(d.getL10nName(a,c,e))};d.i18n={getLocalization:d.requireLocalization,
normalizeLocale:function(a){a=a?a.toLowerCase():d.locale;a=="root"&&(a="ROOT");return a}};var l=/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/,m=/^((([^\[:]+):)?([^@]+)@)?(\[([^\]]+)\]|([^\[:]*))(:([0-9]+))?$/;d._Url=function(){for(var a=arguments,b=[a[0]],c=1;c<a.length;c++)if(a[c]){var e=new d._Url(a[c]+""),b=new d._Url(b[0]+"");if(e.path==""&&!e.scheme&&!e.authority&&!e.query){if(e.fragment!=null)b.fragment=e.fragment;e=b}else if(!e.scheme&&(e.scheme=b.scheme,!e.authority&&(e.authority=
b.authority,e.path.charAt(0)!="/"))){for(var b=(b.path.substring(0,b.path.lastIndexOf("/")+1)+e.path).split("/"),f=0;f<b.length;f++)b[f]=="."?f==b.length-1?b[f]="":(b.splice(f,1),f--):f>0&&!(f==1&&b[0]=="")&&b[f]==".."&&b[f-1]!=".."&&(f==b.length-1?(b.splice(f,1),b[f-1]=""):(b.splice(f-1,2),f-=2));e.path=b.join("/")}b=[];e.scheme&&b.push(e.scheme,":");e.authority&&b.push("//",e.authority);b.push(e.path);e.query&&b.push("?",e.query);e.fragment&&b.push("#",e.fragment)}this.uri=b.join("");a=this.uri.match(l);
this.scheme=a[2]||(a[1]?"":null);this.authority=a[4]||(a[3]?"":null);this.path=a[5];this.query=a[7]||(a[6]?"":null);this.fragment=a[9]||(a[8]?"":null);if(this.authority!=null)a=this.authority.match(m),this.user=a[3]||null,this.password=a[4]||null,this.host=a[6]||a[7],this.port=a[9]||null};d._Url.prototype.toString=function(){return this.uri};d.moduleUrl=function(a,c){if(!a)return null;var a=a.replace(/\./g,"/")+(c?"/"+c:""),e="",f=a.match(/(.+)(\.[^\/]*)$/);f&&(a=f[1],e=f[2]);return new d._Url(b.nameToUrl(a,
e))};return d});
define("dojo/_base/_loader/hostenv_browser",["dojo/lib/backCompat"],function(b){if(typeof window!="undefined"){b.isBrowser=!0;b._name="browser";(function(){var a=b;if(document&&document.getElementsByTagName)for(var c=document.getElementsByTagName("script"),e=/dojo(\.xd)?\.js(\W|$)/i,d=0;d<c.length;d++){var g=c[d].getAttribute("src");if(g){var h=g.match(e);if(h){if(!a.config.baseUrl)a.config.baseUrl=g.substring(0,h.index);if(c=c[d].getAttribute("djConfig")||c[d].getAttribute("data-dojo-config")){var c=eval("({ "+
c+" })"),i;for(i in c)b.config[i]=c[i]}break}}}a.baseUrl=a.config.baseUrl;i=navigator;c=i.userAgent;e=i.appVersion;d=parseFloat(e);if(c.indexOf("Opera")>=0)a.isOpera=d;if(c.indexOf("AdobeAIR")>=0)a.isAIR=1;a.isKhtml=e.indexOf("Konqueror")>=0?d:0;a.isWebKit=parseFloat(c.split("WebKit/")[1])||void 0;a.isChrome=parseFloat(c.split("Chrome/")[1])||void 0;a.isMac=e.indexOf("Macintosh")>=0;if((g=Math.max(e.indexOf("WebKit"),e.indexOf("Safari"),0))&&!b.isChrome)if(a.isSafari=parseFloat(e.split("Version/")[1]),
!a.isSafari||parseFloat(e.substr(g+7))<=419.3)a.isSafari=2;if(c.indexOf("Gecko")>=0&&!a.isKhtml&&!a.isWebKit)a.isMozilla=a.isMoz=d;if(a.isMoz)a.isFF=parseFloat(c.split("Firefox/")[1]||c.split("Minefield/")[1])||void 0;if(document.all&&!a.isOpera&&(a.isIE=parseFloat(e.split("MSIE ")[1])||void 0,(c=document.documentMode)&&c!=5&&Math.floor(a.isIE)!=c))a.isIE=c;if(b.isIE&&window.location.protocol==="file:")b.config.ieForceActiveXXhr=!0;a.isQuirks=document.compatMode=="BackCompat";a.locale=b.config.locale||
(a.isIE?i.userLanguage:i.language).toLowerCase();a._XMLHTTP_PROGIDS=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"];a._xhrObj=function(){var c,e;if(!b.isIE||!b.config.ieForceActiveXXhr)try{c=new XMLHttpRequest}catch(d){}if(!c)for(var f=0;f<3;++f){var g=a._XMLHTTP_PROGIDS[f];try{c=new ActiveXObject(g)}catch(i){e=i}if(c){a._XMLHTTP_PROGIDS=[g];break}}if(!c)throw Error("XMLHTTP not available: "+e);return c};a._isDocumentOk=function(a){var a=a.status||0,b=location.protocol;return a>=200&&
a<300||a==304||a==1223||!a&&(b=="file:"||b=="chrome:"||b=="chrome-extension:"||b=="app:")};var j=window.location+"",k=(i=document.getElementsByTagName("base"))&&i.length>0;a._getText=function(c,e){var d=a._xhrObj();!k&&b._Url&&(c=(new b._Url(j,c)).toString());a.config.cacheBust&&(c+="",c+=(c.indexOf("?")==-1?"?":"&")+String(a.config.cacheBust).replace(/\W+/g,""));d.open("GET",c,!1);try{if(d.send(null),!a._isDocumentOk(d)){var f=Error("Unable to load "+c+" status:"+d.status);f.status=d.status;f.responseText=
d.responseText;throw f;}}catch(g){if(e)return null;throw g;}return d.responseText};var l=window,m=function(a,b){var c=l.attachEvent||l.addEventListener,a=l.attachEvent?a:a.substring(2);c(a,function(){b.apply(l,arguments)},!1)};a._windowUnloaders=[];a.windowUnloaded=function(){for(var b=a._windowUnloaders;b.length;)b.pop()();a=null};var n=0;a.addOnWindowUnload=function(b,c){a._onto(a._windowUnloaders,b,c);n||(n=1,m("onunload",a.windowUnloaded))};var o=0;a.addOnUnload=function(c,e){a._onto(a._unloaders,
c,e);o||(o=1,m("onbeforeunload",b.unloaded))}})();b._initFired=!1;b._loadInit=function(){if(b._scrollIntervalId)clearInterval(b._scrollIntervalId),b._scrollIntervalId=0;if(!b._initFired)b._initFired=!0,!b.config.afterOnLoad&&window.detachEvent&&window.detachEvent("onload",b._loadInit),b._inFlightCount==0&&b._modulesLoaded()};if(!b.config.afterOnLoad)if(document.addEventListener)document.addEventListener("DOMContentLoaded",b._loadInit,!1),window.addEventListener("load",b._loadInit,!1);else if(window.attachEvent&&
(window.attachEvent("onload",b._loadInit),!b.config.skipIeDomLoaded&&self===self.top))b._scrollIntervalId=setInterval(function(){try{document.body&&(document.documentElement.doScroll("left"),b._loadInit())}catch(a){}},30);if(b.isIE)try{(function(){document.namespaces.add("v","urn:schemas-microsoft-com:vml");var a="*,group,roundrect,oval,shape,rect,imagedata,path,textpath,text".split(","),c=0,e=1,d=document.createStyleSheet();if(b.isIE>=8)c=1,e=a.length;for(;c<e;++c)d.addRule("v\\:"+a[c],"behavior:url(#default#VML); display:inline-block")})()}catch(d){}}(function(){var a=
b.config.modulePaths;if(a)for(var c in a)b.registerModulePath(c,a[c])})();b.config.isDebug&&b.require("dojo._firebug.firebug");b.config.debugAtAllCosts&&(b.require("dojo._base._loader.loader_debug"),b.require("dojo.i18n"));return b});define("dojo/lib/kernel",["dojo/_base/_loader/hostenv_browser"],function(b){return dojo=b});
define("dojo/_base/lang",["dojo/lib/kernel"],function(b){(function(){var d=Object.prototype.toString;b.isString=function(a){return typeof a=="string"||a instanceof String};b.isArray=function(a){return a&&(a instanceof Array||typeof a=="array")};b.isFunction=function(a){return d.call(a)==="[object Function]"};b.isObject=function(a){return a!==void 0&&(a===null||typeof a=="object"||b.isArray(a)||b.isFunction(a))};b.isArrayLike=function(a){return a&&a!==void 0&&!b.isString(a)&&!b.isFunction(a)&&!(a.tagName&&
a.tagName.toLowerCase()=="form")&&(b.isArray(a)||isFinite(a.length))};b.isAlien=function(a){return a&&!b.isFunction(a)&&/\{\s*\[native code\]\s*\}/.test(String(a))};b.extend=function(a,c){for(var e=1,d=arguments.length;e<d;e++)b._mixin(a.prototype,arguments[e]);return a};b._hitchArgs=function(a,c){var e=b._toArray(arguments,2),d=b.isString(c);return function(){var f=b._toArray(arguments),g=d?(a||b.global)[c]:c;return g&&g.apply(a||this,e.concat(f))}};b.hitch=function(a,c){if(arguments.length>2)return b._hitchArgs.apply(b,
arguments);c||(c=a,a=null);if(b.isString(c)){a=a||b.global;if(!a[c])throw['dojo.hitch: scope["',c,'"] is null (scope="',a,'")'].join("");return function(){return a[c].apply(a,arguments||[])}}return!a?c:function(){return c.apply(a,arguments||[])}};b.delegate=b._delegate=function(){function a(){}return function(c,e){a.prototype=c;var d=new a;a.prototype=null;e&&b._mixin(d,e);return d}}();var a=function(a,b,c){return(c||[]).concat(Array.prototype.slice.call(a,b||0))},c=function(a,b,c){c=c||[];for(b=
b||0;b<a.length;b++)c.push(a[b]);return c};b._toArray=b.isIE?function(b){return(b.item?c:a).apply(this,arguments)}:a;b.partial=function(a){return b.hitch.apply(b,[null].concat(b._toArray(arguments)))};var e=b._extraNames,f=e.length,g={};b.clone=function(a){if(!a||typeof a!="object"||b.isFunction(a))return a;if(a.nodeType&&"cloneNode"in a)return a.cloneNode(!0);if(a instanceof Date)return new Date(a.getTime());if(a instanceof RegExp)return RegExp(a);var c,d,h,m;if(b.isArray(a)){c=[];for(d=0,h=a.length;d<
h;++d)d in a&&c.push(b.clone(a[d]))}else c=a.constructor?new a.constructor:{};for(m in a)if(h=a[m],!(m in c)||c[m]!==h&&(!(m in g)||g[m]!==h))c[m]=b.clone(h);if(f)for(d=0;d<f;++d)if(m=e[d],h=a[m],!(m in c)||c[m]!==h&&(!(m in g)||g[m]!==h))c[m]=h;return c};b.trim=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^\s\s*/,"").replace(/\s\s*$/,"")};var h=/\{([^\}]+)\}/g;b.replace=function(a,c,e){return a.replace(e||h,b.isFunction(c)?c:function(a,e){return b.getObject(e,
!1,c)})}})();return b});
define("dojo/_base/array",["dojo/lib/kernel","dojo/_base/lang"],function(b){(function(){var d=function(a,e,d){return[typeof a=="string"?a.split(""):a,e||b.global,typeof d=="string"?new Function("item","index","array",d):d]},a=function(a,b,f,g){for(var f=d(b,g,f),b=f[0],g=0,h=b.length;g<h;++g){var i=!!f[2].call(f[1],b[g],g,b);if(a^i)return i}return a};b.mixin(b,{indexOf:function(a,b,d,g){var h=1,i=a.length||0,j=0;g&&(j=i-1,h=i=-1);d!=void 0&&(j=d);if(g&&j>i||j<i)for(;j!=i;j+=h)if(a[j]==b)return j;
return-1},lastIndexOf:function(a,e,d){return b.indexOf(a,e,d,!0)},forEach:function(a,b,f){if(a&&a.length)for(var b=d(a,f,b),a=b[0],f=0,g=a.length;f<g;++f)b[2].call(b[1],a[f],f,a)},every:function(b,e,d){return a(!0,b,e,d)},some:function(b,e,d){return a(!1,b,e,d)},map:function(a,b,f,g){for(var b=d(a,f,b),a=b[0],g=g?new g:[],f=0,h=a.length;f<h;++f)g.push(b[2].call(b[1],a[f],f,a));return g},filter:function(a,b,f){for(var b=d(a,f,b),a=b[0],f=[],g=0,h=a.length;g<h;++g)b[2].call(b[1],a[g],g,a)&&f.push(a[g]);
return f}})})();return b});
define("dojo/_base/declare",["dojo/lib/kernel","dojo/_base/lang","dojo/_base/array"],function(b){(function(){function d(a,b){throw Error("declare"+(b?" "+b:"")+": "+a);}function a(a,b,c){var e,f,g,i,j,h,k,l=this._inherited=this._inherited||{};typeof a=="string"&&(e=a,a=b,b=c);c=0;i=a.callee;(e=e||i.nom)||d("can't deduce a name to call inherited()",this.declaredClass);j=this.constructor._meta;g=j.bases;k=l.p;if(e!=t){if(l.c!==i&&(k=0,h=g[0],j=h._meta,j.hidden[e]!==i)){(f=j.chains)&&typeof f[e]=="string"&&
d("calling chained method with inherited: "+e,this.declaredClass);do if(j=h._meta,f=h.prototype,j&&(f[e]===i&&f.hasOwnProperty(e)||j.hidden[e]===i))break;while(h=g[++k]);k=h?k:-1}if(h=g[++k])if(f=h.prototype,h._meta&&f.hasOwnProperty(e))c=f[e];else{i=r[e];do if(f=h.prototype,(c=f[e])&&(h._meta?f.hasOwnProperty(e):c!==i))break;while(h=g[++k])}c=h&&c||r[e]}else{if(l.c!==i&&(k=0,(j=g[0]._meta)&&j.ctor!==i)){f=j.chains;for((!f||f.constructor!=="manual")&&d("calling chained constructor with inherited",
this.declaredClass);h=g[++k];)if((j=h._meta)&&j.ctor===i)break;k=h?k:-1}for(;h=g[++k];)if(c=(j=h._meta)?j.ctor:h)break;c=h&&c}l.c=c;l.p=k;if(c)return b===!0?c:c.apply(this,b||a)}function c(a,b){return typeof a=="string"?this.inherited(a,b,!0):this.inherited(a,!0)}function e(a){for(var b=this.constructor._meta.bases,c=0,e=b.length;c<e;++c)if(b[c]===a)return!0;return this instanceof a}function f(a,b){var c,e=0,d=o._extraNames.length;for(c in b)c!=t&&b.hasOwnProperty(c)&&(a[c]=b[c]);for(;e<d;++e)c=o._extraNames[e],
c!=t&&b.hasOwnProperty(c)&&(a[c]=b[c])}function g(a,b){var c,e,d=0,f=o._extraNames.length;for(c in b)if(e=b[c],(e!==r[c]||!(c in r))&&c!=t){if(q.call(e)=="[object Function]")e.nom=c;a[c]=e}for(;d<f;++d)if(c=o._extraNames[d],e=b[c],(e!==r[c]||!(c in r))&&c!=t){if(q.call(e)=="[object Function]")e.nom=c;a[c]=e}return a}function h(a){g(this.prototype,a);return this}function i(a,b){return function(){var u;var c=arguments,e=c,d=c[0],f,g;g=a.length;var i;if(!(this instanceof c.callee))return n(c);if(b&&
(d&&d.preamble||this.preamble)){i=Array(a.length);i[0]=c;for(f=0;;){if(d=c[0])(d=d.preamble)&&(c=d.apply(this,c)||c);d=a[f].prototype;(d=d.hasOwnProperty("preamble")&&d.preamble)&&(c=d.apply(this,c)||c);if(++f==g)break;i[f]=c}}for(f=g-1;f>=0;--f)d=a[f],(u=(g=d._meta)?g.ctor:d,d=u)&&d.apply(this,i?i[f]:c);(d=this.postscript)&&d.apply(this,e)}}function j(a,b){return function(){var c=arguments,e=c,d=c[0];if(!(this instanceof c.callee))return n(c);if(b){if(d)(d=d.preamble)&&(e=d.apply(this,e)||e);(d=
this.preamble)&&d.apply(this,e)}a&&a.apply(this,c);(d=this.postscript)&&d.apply(this,c)}}function k(a){return function(){var u;var b=arguments,c=0,e,d;if(!(this instanceof b.callee))return n(b);for(;e=a[c];++c)if(u=(d=e._meta)?d.ctor:e,e=u){e.apply(this,b);break}(e=this.postscript)&&e.apply(this,b)}}function l(a,b,c){return function(){var e,d,f=0,g=1;c&&(f=b.length-1,g=-1);for(;e=b[f];f+=g)d=e._meta,(e=(d?d.hidden:e.prototype)[a])&&e.apply(this,arguments)}}function m(a){s.prototype=a.prototype;a=
new s;s.prototype=null;return a}function n(a){var b=a.callee,c=m(b);b.apply(c,a);return c}var o=b,p=o._mixin,r=Object.prototype,q=r.toString,s=new Function,w=0,t="constructor";o.declare=function(b,n,s){typeof b!="string"&&(s=n,n=b,b="");var s=s||{},z,v,u,y,G,E,D,B=1,I=n;if(q.call(n)=="[object Array]"){B=b;u=[];y=[{cls:0,refs:[]}];E={};for(var C=1,F=n.length,L=0,H,M,J,N;L<F;++L){(H=n[L])?q.call(H)!="[object Function]"&&d("mixin #"+L+" is not a callable constructor.",B):d("mixin #"+L+" is unknown. Did you use dojo.require to pull it in?",
B);M=H._meta?H._meta.bases:[H];J=0;for(H=M.length-1;H>=0;--H){N=M[H].prototype;if(!N.hasOwnProperty("declaredClass"))N.declaredClass="uniqName_"+w++;N=N.declaredClass;E.hasOwnProperty(N)||(E[N]={count:0,refs:[],cls:M[H]},++C);N=E[N];J&&J!==N&&(N.refs.push(J),++J.count);J=N}++J.count;y[0].refs.push(J)}for(;y.length;){J=y.pop();u.push(J.cls);for(--C;v=J.refs,v.length==1;){J=v[0];if(!J||--J.count){J=0;break}u.push(J.cls);--C}if(J)for(L=0,F=v.length;L<F;++L)J=v[L],--J.count||y.push(J)}C&&d("can't build consistent linearization",
B);H=n[0];u[0]=H?H._meta&&H===u[u.length-H._meta.bases.length]?H._meta.bases.length:1:0;E=u;u=E[0];B=E.length-u;n=E[B]}else E=[0],n?q.call(n)=="[object Function]"?(u=n._meta,E=E.concat(u?u.bases:n)):d("base class is not a callable constructor.",b):n!==null&&d("unknown base class. Did you use dojo.require to pull it in?",b);if(n)for(v=B-1;;--v){z=m(n);if(!v)break;u=E[v];(u._meta?f:p)(z,u.prototype);y=new Function;y.superclass=n;y.prototype=z;n=z.constructor=y}else z={};g(z,s);u=s.constructor;if(u!==
r.constructor)u.nom=t,z.constructor=u;for(v=B-1;v;--v)(u=E[v]._meta)&&u.chains&&(D=p(D||{},u.chains));z["-chains-"]&&(D=p(D||{},z["-chains-"]));u=!D||!D.hasOwnProperty(t);E[0]=y=D&&D.constructor==="manual"?k(E):E.length==1?j(s.constructor,u):i(E,u);y._meta={bases:E,hidden:s,chains:D,parents:I,ctor:s.constructor};y.superclass=n&&n.prototype;y.extend=h;y.prototype=z;z.constructor=y;z.getInherited=c;z.inherited=a;z.isInstanceOf=e;if(b)z.declaredClass=b,o.setObject(b,y);if(D)for(G in D)if(z[G]&&typeof D[G]==
"string"&&G!=t)u=z[G]=l(G,E,D[G]==="after"),u.nom=G;return y};o.safeMixin=g})();return b.declare});
define("dojo/_base/connect",["dojo/lib/kernel","dojo/_base/lang"],function(b){b._listener={getDispatcher:function(){return function(){var b=Array.prototype,a=arguments.callee,c=a._listeners,a=(a=a.target)&&a.apply(this,arguments),e,c=[].concat(c);for(e in c)e in b||c[e].apply(this,arguments);return a}},add:function(d,a,c){var d=d||b.global,e=d[a];if(!e||!e._listeners){var f=b._listener.getDispatcher();f.target=e;f._listeners=[];e=d[a]=f}return e._listeners.push(c)},remove:function(d,a,c){(d=(d||b.global)[a])&&
d._listeners&&c--&&delete d._listeners[c]}};b.connect=function(d,a,c,e,f){var g=arguments,h=[],i=0;h.push(b.isString(g[0])?null:g[i++],g[i++]);var j=g[i+1];h.push(b.isString(j)||b.isFunction(j)?g[i++]:null,g[i++]);for(j=g.length;i<j;i++)h.push(g[i]);return b._connect.apply(this,h)};b._connect=function(d,a,c,e){var f=b._listener,c=f.add(d,a,b.hitch(c,e));return[d,a,c,f]};b.disconnect=function(d){d&&d[0]!==void 0&&(b._disconnect.apply(this,d),delete d[0])};b._disconnect=function(b,a,c,e){e.remove(b,
a,c)};b._topics={};b.subscribe=function(d,a,c){return[d,b._listener.add(b._topics,d,b.hitch(a,c))]};b.unsubscribe=function(d){d&&b._listener.remove(b._topics,d[0],d[1])};b.publish=function(d,a){var c=b._topics[d];c&&c.apply(this,a||[])};b.connectPublisher=function(d,a,c){var e=function(){b.publish(d,arguments)};return c?b.connect(a,c,e):b.connect(a,e)};return b.connect});
define("dojo/_base/Deferred",["dojo/lib/kernel","dojo/_base/lang"],function(b){(function(){var d=function(){},a=Object.freeze||function(){},c=function(){var a,b,c,d,i=!1,j=function(){};return function(k){if(i)a?(b.next={task:k,next:null},b=b.next):b=a={task:k,next:null};else{i=!0;do try{for(;k;){k();if(c)a?b.next=c:a=c,b=d;a?(c=a.next,d=b,k=a.task,a=b=null):k=null}i=!1}catch(l){k=j,console.error(l)}while(i)}}}();b.Deferred=function(e){function f(a){if(i)throw Error("This deferred has already been resolved");
h=a;i=!0;c(g)}function g(){for(var a;!a&&l;){var c=l;l=l.next;if(a=c.progress==d)i=!1;var e=j?c.error:c.resolved;if(e)try{var f=e(h);f&&typeof f.then==="function"?f.then(b.hitch(c.deferred,"resolve"),b.hitch(c.deferred,"reject"),b.hitch(c.deferred,"progress")):(e=a&&f===void 0,a&&!e&&(j=f instanceof Error),c.deferred[e&&j?"reject":"resolve"](e?h:f))}catch(g){c.deferred.reject(g)}else j?c.deferred.reject(h):c.deferred.resolve(h)}}var h,i,j,k,l,m=this.promise={};this.resolve=this.callback=function(a){this.fired=
0;this.results=[a,null];f(a)};this.reject=this.errback=function(a){j=!0;this.fired=1;f(a);this.results=[null,a];if(!a||a.log!==!1)(b.config.deferredOnError||function(a){console.error(a)})(a)};this.progress=function(a){for(var b=l;b;){var c=b.progress;c&&c(a);b=b.next}};this.addCallbacks=function(a,b){this.then(a,b,d);return this};this.then=m.then=function(a,e,f){var j=f==d?this:new b.Deferred(m.cancel),a={resolved:a,error:e,progress:f,deferred:j};l?k=k.next=a:l=k=a;i&&c(g);return j.promise};var n=
this;this.cancel=m.cancel=function(){if(!i){var a=e&&e(n);if(!i)a instanceof Error||(a=Error(a)),a.log=!1,n.reject(a)}};a(m)};b.extend(b.Deferred,{addCallback:function(a){return this.addCallbacks(b.hitch.apply(b,arguments))},addErrback:function(a){return this.addCallbacks(null,b.hitch.apply(b,arguments))},addBoth:function(a){var c=b.hitch.apply(b,arguments);return this.addCallbacks(c,c)},fired:-1})})();b.when=function(b,a,c,e){return b&&typeof b.then==="function"?b.then(a,c,e):a(b)};return b.Deferred});
define("dojo/_base/json",["dojo/lib/kernel"],function(b){b.fromJson=function(b){return eval("("+b+")")};b._escapeString=function(b){return('"'+b.replace(/(["\\])/g,"\\$1")+'"').replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r")};b.toJsonIndentStr="\t";b.toJson=function(d,a,c){if(d===void 0)return"undefined";var e=typeof d;if(e=="number"||e=="boolean")return d+"";if(d===null)return"null";if(b.isString(d))return b._escapeString(d);var f=
arguments.callee,g,c=c||"",h=a?c+b.toJsonIndentStr:"";g=d.__json__||d.json;if(b.isFunction(g)&&(g=g.call(d),d!==g))return f(g,a,h);if(d.nodeType&&d.cloneNode)throw Error("Can't serialize DOM nodes");g=a?" ":"";var i=a?"\n":"";if(b.isArray(d))return"["+b.map(d,function(b){b=f(b,a,h);typeof b!="string"&&(b="undefined");return i+h+b}).join(","+g)+i+c+"]";if(e=="function")return null;var e=[],j;for(j in d){var k,l;if(typeof j=="number")k='"'+j+'"';else if(typeof j=="string")k=b._escapeString(j);else continue;
l=f(d[j],a,h);typeof l=="string"&&e.push(i+h+k+":"+g+l)}return"{"+e.join(","+g)+i+c+"}"};return b});
define("dojo/_base/Color",["dojo/lib/kernel","dojo/_base/array","dojo/_base/lang"],function(b){(function(){b.Color=function(b){b&&this.setColor(b)};b.Color.named={black:[0,0,0],silver:[192,192,192],gray:[128,128,128],white:[255,255,255],maroon:[128,0,0],red:[255,0,0],purple:[128,0,128],fuchsia:[255,0,255],green:[0,128,0],lime:[0,255,0],olive:[128,128,0],yellow:[255,255,0],navy:[0,0,128],blue:[0,0,255],teal:[0,128,128],aqua:[0,255,255],transparent:b.config.transparentColor||[255,255,255]};b.extend(b.Color,
{r:255,g:255,b:255,a:1,_set:function(b,a,c,e){this.r=b;this.g=a;this.b=c;this.a=e},setColor:function(d){b.isString(d)?b.colorFromString(d,this):b.isArray(d)?b.colorFromArray(d,this):(this._set(d.r,d.g,d.b,d.a),d instanceof b.Color||this.sanitize());return this},sanitize:function(){return this},toRgb:function(){return[this.r,this.g,this.b]},toRgba:function(){return[this.r,this.g,this.b,this.a]},toHex:function(){return"#"+b.map(["r","g","b"],function(b){b=this[b].toString(16);return b.length<2?"0"+
b:b},this).join("")},toCss:function(b){var a=this.r+", "+this.g+", "+this.b;return(b?"rgba("+a+", "+this.a:"rgb("+a)+")"},toString:function(){return this.toCss(!0)}});b.blendColors=function(d,a,c,e){var f=e||new b.Color;b.forEach(["r","g","b","a"],function(b){f[b]=d[b]+(a[b]-d[b])*c;b!="a"&&(f[b]=Math.round(f[b]))});return f.sanitize()};b.colorFromRgb=function(d,a){var c=d.toLowerCase().match(/^rgba?\(([\s\.,0-9]+)\)/);return c&&b.colorFromArray(c[1].split(/\s*,\s*/),a)};b.colorFromHex=function(d,
a){var c=a||new b.Color,e=d.length==4?4:8,f=(1<<e)-1,d=Number("0x"+d.substr(1));if(isNaN(d))return null;b.forEach(["b","g","r"],function(a){var b=d&f;d>>=e;c[a]=e==4?17*b:b});c.a=1;return c};b.colorFromArray=function(d,a){var c=a||new b.Color;c._set(Number(d[0]),Number(d[1]),Number(d[2]),Number(d[3]));if(isNaN(c.a))c.a=1;return c.sanitize()};b.colorFromString=function(d,a){var c=b.Color.named[d];return c&&b.colorFromArray(c,a)||b.colorFromRgb(d,a)||b.colorFromHex(d,a)}})();return b.Color});
define("dojo/_base/window",["dojo/lib/kernel"],function(b){b.doc=window.document||null;b.body=function(){return b.doc.body||b.doc.getElementsByTagName("body")[0]};b.setContext=function(d,a){b.global=d;b.doc=a};b.withGlobal=function(d,a,c,e){var f=b.global;try{return b.global=d,b.withDoc.call(null,d.document,a,c,e)}finally{b.global=f}};b.withDoc=function(d,a,c,e){var f=b.doc,g=b._bodyLtr,h=b.isQuirks;try{return b.doc=d,delete b._bodyLtr,b.isQuirks=b.doc.compatMode=="BackCompat",c&&typeof a=="string"&&
(a=c[a]),a.apply(c,e||[])}finally{b.doc=f;delete b._bodyLtr;if(g!==void 0)b._bodyLtr=g;b.isQuirks=h}};return b});
define("dojo/_base/event",["dojo/lib/kernel","dojo/_base/connect"],function(b){(function(){var d=b._event_listener={add:function(a,c,e){if(a){c=d._normalizeEventName(c);e=d._fixCallback(c,e);if(!b.isIE&&(c=="mouseenter"||c=="mouseleave"))var f=e,c=c=="mouseenter"?"mouseover":"mouseout",e=function(c){if(!b.isDescendant(c.relatedTarget,a))return f.call(this,c)};a.addEventListener(c,e,!1);return e}},remove:function(a,c,e){if(a){c=d._normalizeEventName(c);if(!b.isIE&&(c=="mouseenter"||c=="mouseleave"))c=
c=="mouseenter"?"mouseover":"mouseout";a.removeEventListener(c,e,!1)}},_normalizeEventName:function(a){return a.slice(0,2)=="on"?a.slice(2):a},_fixCallback:function(a,b){return a!="keypress"?b:function(a){return b.call(this,d._fixEvent(a,this))}},_fixEvent:function(a){switch(a.type){case "keypress":d._setKeyChar(a)}return a},_setKeyChar:function(a){a.keyChar=a.charCode>=32?String.fromCharCode(a.charCode):"";a.charOrCode=a.keyChar||a.keyCode},_punctMap:{106:42,111:47,186:59,187:43,188:44,189:45,190:46,
191:47,192:96,219:91,220:92,221:93,222:39}};b.fixEvent=function(a,b){return d._fixEvent(a,b)};b.stopEvent=function(a){a.preventDefault();a.stopPropagation()};var a=b._listener;b._connect=function(c,e,f,g,h){h=c&&(c.nodeType||c.attachEvent||c.addEventListener)?h?2:1:0;f=[b._listener,d,a][h].add(c,e,b.hitch(f,g));return[c,e,f,h]};b._disconnect=function(c,e,f,g){[b._listener,d,a][g].remove(c,e,f)};b.keys={BACKSPACE:8,TAB:9,CLEAR:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,META:b.isSafari?91:224,PAUSE:19,CAPS_LOCK:20,
ESCAPE:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT_ARROW:37,UP_ARROW:38,RIGHT_ARROW:39,DOWN_ARROW:40,INSERT:45,DELETE:46,HELP:47,LEFT_WINDOW:91,RIGHT_WINDOW:92,SELECT:93,NUMPAD_0:96,NUMPAD_1:97,NUMPAD_2:98,NUMPAD_3:99,NUMPAD_4:100,NUMPAD_5:101,NUMPAD_6:102,NUMPAD_7:103,NUMPAD_8:104,NUMPAD_9:105,NUMPAD_MULTIPLY:106,NUMPAD_PLUS:107,NUMPAD_ENTER:108,NUMPAD_MINUS:109,NUMPAD_PERIOD:110,NUMPAD_DIVIDE:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,
F13:124,F14:125,F15:126,NUM_LOCK:144,SCROLL_LOCK:145,copyKey:b.isMac&&!b.isAIR?b.isSafari?91:224:17};var c=b.isMac?"metaKey":"ctrlKey";b.isCopyKey=function(a){return a[c]};b.mouseButtons=b.isIE<9||b.isIE&&b.isQuirks?{LEFT:1,MIDDLE:4,RIGHT:2,isButton:function(a,b){return a.button&b},isLeft:function(a){return a.button&1},isMiddle:function(a){return a.button&4},isRight:function(a){return a.button&2}}:{LEFT:0,MIDDLE:1,RIGHT:2,isButton:function(a,b){return a.button==b},isLeft:function(a){return a.button==
0},isMiddle:function(a){return a.button==1},isRight:function(a){return a.button==2}};if(b.isIE){var e=function(a,b){try{return a.keyCode=b}catch(c){return 0}},f=b._listener,g=b._ieListenersName="_"+b._scopeName+"_listeners";if(!b.config._allow_leaks)var a=f=b._ie_listener={handlers:[],add:function(a,c,e){var a=a||b.global,d=a[c];if(!d||!d[g]){var f=b._getIeDispatcher();f.target=d&&h.push(d)-1;f[g]=[];d=a[c]=f}return d[g].push(h.push(e)-1)},remove:function(a,c,e){var i;i=(a=(a||b.global)[c])&&a[g],
c=i;a&&c&&e--&&(delete h[c[e]],delete c[e])}},h=f.handlers;b.mixin(d,{add:function(a,b,c){if(a){b=d._normalizeEventName(b);if(b=="onkeypress"){var e=a.onkeydown;if(!e||!e[g]||!e._stealthKeydownHandle){var h=d.add(a,"onkeydown",d._stealthKeyDown),e=a.onkeydown;e._stealthKeydownHandle=h;e._stealthKeydownRefs=1}else e._stealthKeydownRefs++}return f.add(a,b,d._fixCallback(c))}},remove:function(a,b,c){b=d._normalizeEventName(b);f.remove(a,b,c);if(b=="onkeypress")b=a.onkeydown,--b._stealthKeydownRefs<=
0&&(f.remove(a,"onkeydown",b._stealthKeydownHandle),delete b._stealthKeydownHandle)},_normalizeEventName:function(a){return a.slice(0,2)!="on"?"on"+a:a},_nop:function(){},_fixEvent:function(a,c){if(!a)a=(c&&(c.ownerDocument||c.document||c).parentWindow||window).event;if(!a)return a;a.target=a.srcElement;a.currentTarget=c||a.srcElement;a.layerX=a.offsetX;a.layerY=a.offsetY;var e=a.srcElement,e=e&&e.ownerDocument||document,e=b.isIE<6||e.compatMode=="BackCompat"?e.body:e.documentElement,f=b._getIeDocumentElementOffset();
a.pageX=a.clientX+b._fixIeBiDiScrollLeft(e.scrollLeft||0)-f.x;a.pageY=a.clientY+(e.scrollTop||0)-f.y;if(a.type=="mouseover")a.relatedTarget=a.fromElement;if(a.type=="mouseout")a.relatedTarget=a.toElement;if(b.isIE<9||b.isQuirks)a.stopPropagation=d._stopPropagation,a.preventDefault=d._preventDefault;return d._fixKeys(a)},_fixKeys:function(a){switch(a.type){case "keypress":var b="charCode"in a?a.charCode:a.keyCode;b==10?(b=0,a.keyCode=13):b==13||b==27?b=0:b==3&&(b=99);a.charCode=b;d._setKeyChar(a)}return a},
_stealthKeyDown:function(a){var c=a.currentTarget.onkeypress;if(c&&c[g]){var f=a.keyCode,h=(f!=13||b.isIE>=9&&!b.isQuirks)&&f!=32&&f!=27&&(f<48||f>90)&&(f<96||f>111)&&(f<186||f>192)&&(f<219||f>222);if(h||a.ctrlKey){h=h?0:f;if(a.ctrlKey)if(f==3||f==13)return;else h>95&&h<106?h-=48:!a.shiftKey&&h>=65&&h<=90?h+=32:h=d._punctMap[h]||h;f=d._synthesizeEvent(a,{type:"keypress",faux:!0,charCode:h});c.call(a.currentTarget,f);if(b.isIE<9||b.isIE&&b.isQuirks)a.cancelBubble=f.cancelBubble;a.returnValue=f.returnValue;
e(a,f.keyCode)}}},_stopPropagation:function(){this.cancelBubble=!0},_preventDefault:function(){this.bubbledKeyCode=this.keyCode;this.ctrlKey&&e(this,0);this.returnValue=!1}});b.stopEvent=b.isIE<9||b.isQuirks?function(a){a=a||window.event;d._stopPropagation.call(a);d._preventDefault.call(a)}:b.stopEvent}d._synthesizeEvent=function(a,c){var e=b.mixin({},a,c);d._setKeyChar(e);e.preventDefault=function(){a.preventDefault()};e.stopPropagation=function(){a.stopPropagation()};return e};b.isOpera&&b.mixin(d,
{_fixEvent:function(a){switch(a.type){case "keypress":var b=a.which;b==3&&(b=99);b=b<41&&!a.shiftKey?0:b;a.ctrlKey&&!a.shiftKey&&b>=65&&b<=90&&(b+=32);return d._synthesizeEvent(a,{charCode:b})}return a}});if(b.isWebKit)d._add=d.add,d._remove=d.remove,b.mixin(d,{add:function(a,b,c){if(a){var e=d._add(a,b,c);if(d._normalizeEventName(b)=="keypress")e._stealthKeyDownHandle=d._add(a,"keydown",function(a){var b=a.keyCode,e=b!=13&&b!=32&&(b<48||b>90)&&(b<96||b>111)&&(b<186||b>192)&&(b<219||b>222);if(e||
a.ctrlKey){e=e?0:b;if(a.ctrlKey)if(b==3||b==13)return;else e>95&&e<106?e-=48:!a.shiftKey&&e>=65&&e<=90?e+=32:e=d._punctMap[e]||e;b=d._synthesizeEvent(a,{type:"keypress",faux:!0,charCode:e});c.call(a.currentTarget,b)}});return e}},remove:function(a,b,c){a&&(c._stealthKeyDownHandle&&d._remove(a,"keydown",c._stealthKeyDownHandle),d._remove(a,b,c))},_fixEvent:function(a){switch(a.type){case "keypress":if(a.faux)break;var b=a.charCode;return d._synthesizeEvent(a,{charCode:b>=32?b:0,faux:!0})}return a}})})();
if(b.isIE)b._ieDispatcher=function(d,a){var c=Array.prototype,e=b._ie_listener.handlers,f=d.callee,g=f[b._ieListenersName],f=(f=e[f.target])&&f.apply(a,d),g=[].concat(g),h;for(h in g){var i=e[g[h]];!(h in c)&&i&&i.apply(a,d)}return f},b._getIeDispatcher=function(){return new Function(b._scopeName+"._ieDispatcher(arguments, this)")},b._event_listener._fixCallback=function(d){var a=b._event_listener._fixEvent;return function(b){return d.call(this,a(b,this))}};return b.connect});
define("dojo/_base/html",["dojo/lib/kernel","dojo/_base/lang"],function(b){try{document.execCommand("BackgroundImageCache",!1,!0)}catch(d){}b.byId=b.isIE?function(a,c){if(typeof a!="string")return a;var e=c||b.doc,d=e.getElementById(a);if(d&&(d.attributes.id.value==a||d.id==a))return d;else{e=e.all[a];if(!e||e.nodeName)e=[e];for(var g=0;d=e[g++];)if(d.attributes&&d.attributes.id&&d.attributes.id.value==a||d.id==a)return d}}:function(a,c){return(typeof a=="string"?(c||b.doc).getElementById(a):a)||
null};(function(){var a=b.byId,c=null,e;b.addOnWindowUnload(function(){c=null});b._destroyElement=b.destroy=function(b){b=a(b);try{var d=b.ownerDocument;if(!c||e!=d)c=d.createElement("div"),e=d;c.appendChild(b.parentNode?b.parentNode.removeChild(b):b);c.innerHTML=""}catch(f){}};b.isDescendant=function(b,c){try{b=a(b);for(c=a(c);b;){if(b==c)return!0;b=b.parentNode}}catch(e){}return!1};b.setSelectable=function(c,e){c=a(c);if(b.isMozilla)c.style.MozUserSelect=e?"":"none";else if(b.isKhtml||b.isWebKit)c.style.KhtmlUserSelect=
e?"auto":"none";else if(b.isIE){var d=c.unselectable=e?"":"on";b.query("*",c).forEach("item.unselectable = '"+d+"'")}};var d=function(a,b){var c=b.parentNode;c&&c.insertBefore(a,b)};b.place=function(c,e,g){e=a(e);typeof c=="string"&&(c=/^\s*</.test(c)?b._toDom(c,e.ownerDocument):a(c));if(typeof g=="number"){var h=e.childNodes;!h.length||h.length<=g?e.appendChild(c):d(c,h[g<0?0:g])}else switch(g){case "before":d(c,e);break;case "after":g=c;(h=e.parentNode)&&(h.lastChild==e?h.appendChild(g):h.insertBefore(g,
e.nextSibling));break;case "replace":e.parentNode.replaceChild(c,e);break;case "only":b.empty(e);e.appendChild(c);break;case "first":if(e.firstChild){d(c,e.firstChild);break}default:e.appendChild(c)}return c};b.boxModel="content-box";if(b.isIE)b.boxModel=document.compatMode=="BackCompat"?"border-box":"content-box";var g;g=b.isWebKit?function(a){var b;if(a.nodeType==1){var c=a.ownerDocument.defaultView;b=c.getComputedStyle(a,null);if(!b&&a.style)a.style.display="",b=c.getComputedStyle(a,null)}return b||
{}}:b.isIE?function(a){return a.nodeType==1?a.currentStyle:{}}:function(a){return a.nodeType==1?a.ownerDocument.defaultView.getComputedStyle(a,null):{}};b.getComputedStyle=g;b._toPixelValue=b.isIE?function(a,b){if(!b)return 0;if(b=="medium")return 4;if(b.slice&&b.slice(-2)=="px")return parseFloat(b);with(a){var c=style.left,e=runtimeStyle.left;runtimeStyle.left=currentStyle.left;try{style.left=b,b=style.pixelLeft}catch(d){b=0}style.left=c;runtimeStyle.left=e}return b}:function(a,b){return parseFloat(b)||
0};var h=b._toPixelValue,i=function(a,b){try{return a.filters.item("DXImageTransform.Microsoft.Alpha")}catch(c){return b?{}:null}};b._getOpacity=b.isIE<9?function(a){try{return i(a).Opacity/100}catch(b){return 1}}:function(a){return g(a).opacity};b._setOpacity=b.isIE<9?function(a,c){var e=c*100,d=c==1;a.style.zoom=d?"":1;if(i(a))i(a,1).Opacity=e;else{if(d)return c;a.style.filter+=" progid:DXImageTransform.Microsoft.Alpha(Opacity="+e+")"}i(a,1).Enabled=!d;a.nodeName.toLowerCase()=="tr"&&b.query("> td",
a).forEach(function(a){b._setOpacity(a,c)});return c}:function(a,b){return a.style.opacity=b};var j={left:!0,top:!0},k=/margin|padding|width|height|max|min|offset/,l=function(a,c,e){c=c.toLowerCase();if(b.isIE){if(e=="auto"){if(c=="height")return a.offsetHeight;if(c=="width")return a.offsetWidth}if(c=="fontweight")switch(e){case 700:return"bold";default:return"normal"}}c in j||(j[c]=k.test(c));return j[c]?h(a,e):e},m=b.isIE?"styleFloat":"cssFloat",n={cssFloat:m,styleFloat:m,"float":m};b.style=function(c,
e,d){var f=a(c),h=arguments.length,i=e=="opacity",e=n[e]||e;if(h==3)return i?b._setOpacity(f,d):f.style[e]=d;if(h==2&&i)return b._getOpacity(f);i=g(f);if(h==2&&typeof e!="string"){for(var j in e)b.style(c,j,e[j]);return i}return h==1?i:l(f,e,i[e]||f.style[e])};b._getPadExtents=function(a,b){var c=b||g(a),e=h(a,c.paddingLeft),d=h(a,c.paddingTop);return{l:e,t:d,w:e+h(a,c.paddingRight),h:d+h(a,c.paddingBottom)}};b._getBorderExtents=function(a,b){var c=b||g(a),e=c.borderLeftStyle!="none"?h(a,c.borderLeftWidth):
0,d=c.borderTopStyle!="none"?h(a,c.borderTopWidth):0;return{l:e,t:d,w:e+(c.borderRightStyle!="none"?h(a,c.borderRightWidth):0),h:d+(c.borderBottomStyle!="none"?h(a,c.borderBottomWidth):0)}};b._getPadBorderExtents=function(a,c){var e=c||g(a),d=b._getPadExtents(a,e),e=b._getBorderExtents(a,e);return{l:d.l+e.l,t:d.t+e.t,w:d.w+e.w,h:d.h+e.h}};b._getMarginExtents=function(a,c){var e=c||g(a),d=h(a,e.marginLeft),f=h(a,e.marginTop),i=h(a,e.marginRight),j=h(a,e.marginBottom);b.isWebKit&&e.position!="absolute"&&
(i=d);return{l:d,t:f,w:d+i,h:f+j}};b._getMarginBox=function(a,c){var e=c||g(a),d=b._getMarginExtents(a,e),f=a.offsetLeft-d.l,h=a.offsetTop-d.t,i=a.parentNode;if(b.isMoz){var j=parseFloat(e.left),e=parseFloat(e.top);!isNaN(j)&&!isNaN(e)?(f=j,h=e):i&&i.style&&(j=g(i),j.overflow!="visible"&&(i=b._getBorderExtents(i,j),f+=i.l,h+=i.t))}else if((b.isOpera||b.isIE>7&&!b.isQuirks)&&i)i=b._getBorderExtents(i),f-=i.l,h-=i.t;return{l:f,t:h,w:a.offsetWidth+d.w,h:a.offsetHeight+d.h}};b._getMarginSize=function(c,
e){var c=a(c),d=b._getMarginExtents(c,e||g(c)),f=c.getBoundingClientRect();return{w:f.right-f.left+d.w,h:f.bottom-f.top+d.h}};b._getContentBox=function(a,c){var e=c||g(a),d=b._getPadExtents(a,e),e=b._getBorderExtents(a,e),f=a.clientWidth,h;f?(h=a.clientHeight,e.w=e.h=0):(f=a.offsetWidth,h=a.offsetHeight);b.isOpera&&(d.l+=e.l,d.t+=e.t);return{l:d.l,t:d.t,w:f-d.w-e.w,h:h-d.h-e.h}};b._getBorderBox=function(a,c){var e=c||g(a),d=b._getPadExtents(a,e),e=b._getContentBox(a,e);return{l:e.l-d.l,t:e.t-d.t,
w:e.w+d.w,h:e.h+d.h}};b._setBox=function(a,b,c,e,d,f){f=f||"px";a=a.style;if(!isNaN(b))a.left=b+f;if(!isNaN(c))a.top=c+f;if(e>=0)a.width=e+f;if(d>=0)a.height=d+f};b._isButtonTag=function(a){return a.tagName=="BUTTON"||a.tagName=="INPUT"&&(a.getAttribute("type")||"").toUpperCase()=="BUTTON"};b._usesBorderBox=function(a){var c=a.tagName;return b.boxModel=="border-box"||c=="TABLE"||b._isButtonTag(a)};b._setContentSize=function(a,c,e,d){b._usesBorderBox(a)&&(d=b._getPadBorderExtents(a,d),c>=0&&(c+=d.w),
e>=0&&(e+=d.h));b._setBox(a,NaN,NaN,c,e)};b._setMarginBox=function(a,c,e,d,f,h){var i=h||g(a),h=b._usesBorderBox(a)?o:b._getPadBorderExtents(a,i);if(b.isWebKit&&b._isButtonTag(a)){var j=a.style;if(d>=0&&!j.width)j.width="4px";if(f>=0&&!j.height)j.height="4px"}i=b._getMarginExtents(a,i);d>=0&&(d=Math.max(d-h.w-i.w,0));f>=0&&(f=Math.max(f-h.h-i.h,0));b._setBox(a,c,e,d,f)};var o={l:0,t:0,w:0,h:0};b.marginBox=function(c,e){var d=a(c),f=g(d);return!e?b._getMarginBox(d,f):b._setMarginBox(d,e.l,e.t,e.w,
e.h,f)};b.contentBox=function(c,e){var d=a(c),f=g(d);return!e?b._getContentBox(d,f):b._setContentSize(d,e.w,e.h,f)};b._docScroll=function(){var a=b.global;return"pageXOffset"in a?{x:a.pageXOffset,y:a.pageYOffset}:(a=b.isQuirks?b.doc.body:b.doc.documentElement,{x:b._fixIeBiDiScrollLeft(a.scrollLeft||0),y:a.scrollTop||0})};b._isBodyLtr=function(){return"_bodyLtr"in b?b._bodyLtr:b._bodyLtr=(b.body().dir||b.doc.documentElement.dir||"ltr").toLowerCase()=="ltr"};b._getIeDocumentElementOffset=function(){var a=
b.doc.documentElement;if(b.isIE<8){var c=a.getBoundingClientRect(),e=c.left,c=c.top;b.isIE<7&&(e+=a.clientLeft,c+=a.clientTop);return{x:e<0?0:e,y:c<0?0:c}}else return{x:0,y:0}};b._fixIeBiDiScrollLeft=function(a){var c=b.isIE;if(c&&!b._isBodyLtr()){var e=b.isQuirks,d=e?b.doc.body:b.doc.documentElement;c==6&&!e&&b.global.frameElement&&d.scrollHeight>d.clientHeight&&(a+=d.clientLeft);return c<8||e?a+d.clientWidth-d.scrollWidth:-a}return a};b._abs=b.position=function(c,e){var c=a(c),d=b.body(),f=d.parentNode,
i=c.getBoundingClientRect(),i={x:i.left,y:i.top,w:i.right-i.left,h:i.bottom-i.top};b.isIE?(f=b._getIeDocumentElementOffset(),i.x-=f.x+(b.isQuirks?d.clientLeft+d.offsetLeft:0),i.y-=f.y+(b.isQuirks?d.clientTop+d.offsetTop:0)):b.isFF==3&&(d=g(f),i.x-=h(f,d.marginLeft)+h(f,d.borderLeftWidth),i.y-=h(f,d.marginTop)+h(f,d.borderTopWidth));e&&(d=b._docScroll(),i.x+=d.x,i.y+=d.y);return i};b.coords=function(c,e){var d=a(c),f=g(d),f=b._getMarginBox(d,f),d=b.position(d,e);f.x=d.x;f.y=d.y;return f};var p={"class":"className",
"for":"htmlFor",tabindex:"tabIndex",readonly:"readOnly",colspan:"colSpan",frameborder:"frameBorder",rowspan:"rowSpan",valuetype:"valueType"},r={classname:"class",htmlfor:"for",tabindex:"tabIndex",readonly:"readOnly"},q={innerHTML:1,className:1,htmlFor:b.isIE,value:1},s=function(a,b){var c=a.getAttributeNode&&a.getAttributeNode(b);return c&&c.specified};b.hasAttr=function(b,c){var e=c.toLowerCase();return q[p[e]||c]||s(a(b),r[e]||c)};var w={},t=0,x=b._scopeName+"attrid",A={col:1,colgroup:1,table:1,
tbody:1,tfoot:1,thead:1,tr:1,title:1};b.attr=function(c,e,d){var c=a(c),f=arguments.length;if(f==2&&typeof e!="string"){for(var g in e)b.attr(c,g,e[g]);return c}var h=e.toLowerCase();g=p[h]||e;var i=q[g],h=r[h]||e;if(f==3){if(g=="style"&&typeof d!="string")b.style(c,d);else if(g=="innerHTML")b.isIE&&c.tagName.toLowerCase()in A?(b.empty(c),c.appendChild(b._toDom(d,c.ownerDocument))):c[g]=d;else if(b.isFunction(d)){f=b.attr(c,x);f||(f=t++,b.attr(c,x,f));w[f]||(w[f]={});if(i=w[f][g])b.disconnect(i);
else try{delete c[g]}catch(j){}w[f][g]=b.connect(c,g,d)}else i||typeof d=="boolean"?c[g]=d:c.setAttribute(h,d);return c}d=c[g];return i&&typeof d!="undefined"?d:g!="href"&&(typeof d=="boolean"||b.isFunction(d))?d:s(c,h)?c.getAttribute(h):null};b.removeAttr=function(b,c){a(b).removeAttribute(r[c.toLowerCase()]||c)};b.getNodeProp=function(b,c){var b=a(b),e=c.toLowerCase(),d=p[e]||c;if(d in b&&d!="href")return b[d];e=r[e]||c;return s(b,e)?b.getAttribute(e):null};b.create=function(c,e,d,f){var g=b.doc;
if(d)d=a(d),g=d.ownerDocument;typeof c=="string"&&(c=g.createElement(c));e&&b.attr(c,e);d&&b.place(c,d,f);return c};b.empty=b.isIE?function(c){for(var c=a(c),e;e=c.lastChild;)b.destroy(e)}:function(b){a(b).innerHTML=""};var K={option:["select"],tbody:["table"],thead:["table"],tfoot:["table"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","thead","tr"],legend:["fieldset"],caption:["table"],colgroup:["table"],col:["table","colgroup"],li:["ul"]},z=/<\s*([\w\:]+)/,v={},u=0,y="__"+b._scopeName+
"ToDomId",G;for(G in K)if(K.hasOwnProperty(G))m=K[G],m.pre=G=="option"?'<select multiple="multiple">':"<"+m.join("><")+">",m.post="</"+m.reverse().join("></")+">";b._toDom=function(a,c){var c=c||b.doc,e=c[y];e||(c[y]=e=++u+"",v[e]=c.createElement("div"));a+="";var d=a.match(z),f=d?d[1].toLowerCase():"",e=v[e];if(d&&K[f]){d=K[f];e.innerHTML=d.pre+a+d.post;for(d=d.length;d;--d)e=e.firstChild}else e.innerHTML=a;if(e.childNodes.length==1)return e.removeChild(e.firstChild);for(f=c.createDocumentFragment();d=
e.firstChild;)f.appendChild(d);return f};b.hasClass=function(b,c){return(" "+a(b).className+" ").indexOf(" "+c+" ")>=0};var E=/\s+/,D=[""],B={},I=function(a){return typeof a=="string"||a instanceof String?a.indexOf(" ")<0?(D[0]=a,D):a.split(E):a||""};b.addClass=function(b,c){var b=a(b),c=I(c),e=b.className,d,e=e?" "+e+" ":" ";d=e.length;for(var f=0,g=c.length,h;f<g;++f)(h=c[f])&&e.indexOf(" "+h+" ")<0&&(e+=h+" ");d<e.length&&(b.className=e.substr(1,e.length-2))};b.removeClass=function(c,e){var c=
a(c),d;if(e!==void 0){e=I(e);d=" "+c.className+" ";for(var f=0,g=e.length;f<g;++f)d=d.replace(" "+e[f]+" "," ");d=b.trim(d)}else d="";c.className!=d&&(c.className=d)};b.replaceClass=function(c,e,d){c=a(c);B.className=c.className;b.removeClass(B,d);b.addClass(B,e);if(c.className!==B.className)c.className=B.className};b.toggleClass=function(a,c,e){e===void 0&&(e=!b.hasClass(a,c));b[e?"addClass":"removeClass"](a,c)}})();return b});
define("dojo/_base/NodeList",["dojo/lib/kernel","dojo/_base/lang","dojo/_base/array","dojo/_base/connect","dojo/_base/html"],function(b){(function(){var d=Array.prototype,a=d.slice,c=d.concat,e=function(c,e,d){c.sort||(c=a.call(c,0));d=d||this._NodeListCtor||b._NodeListCtor;c.constructor=d;b._mixin(c,d.prototype);c._NodeListCtor=d;return e?c._stash(e):c},f=function(c,e,d){e=[0].concat(a.call(e,0));d=d||b.global;return function(a){e[0]=a;return c.apply(d,e)}},g=function(a,b){return function(){this.forEach(f(a,
arguments,b));return this}},h=function(a,b){return function(){return this.map(f(a,arguments,b))}},i=function(a,c,e){return function(){var d=arguments,g=f(a,d,e);if(c.call(e||b.global,d))return this.map(g);this.forEach(g);return this}},j=function(a){return a.length==1&&typeof a[0]=="string"},k=function(a){var b=a.parentNode;b&&b.removeChild(a)};b.NodeList=function(){return e(Array.apply(null,arguments))};var l=b._NodeListCtor=b.NodeList,m=l.prototype;l._wrap=m._wrap=e;l._adaptAsMap=h;l._adaptAsForEach=
g;l._adaptAsFilter=function(a,b){return function(){return this.filter(f(a,arguments,b))}};l._adaptWithCondition=i;b.forEach(["slice","splice"],function(a){var b=d[a];m[a]=function(){return this._wrap(b.apply(this,arguments),a=="slice"?this:null)}});b.forEach(["indexOf","lastIndexOf","every","some"],function(c){var e=b[c];m[c]=function(){return e.apply(b,[this].concat(a.call(arguments,0)))}});b.forEach(["attr","style"],function(a){m[a]=i(b[a],j)});b.forEach("connect,addClass,removeClass,replaceClass,toggleClass,empty,removeAttr".split(","),
function(a){m[a]=g(b[a])});b.extend(b.NodeList,{_normalize:function(a,c){var e=a.parse===!0?!0:!1;if(typeof a.template=="string")var d=a.templateFunc||b.string&&b.string.substitute,a=d?d(a.template,a):a;d=typeof a;d=="string"||d=="number"?(a=b._toDom(a,c&&c.ownerDocument),a=a.nodeType==11?b._toArray(a.childNodes):[a]):b.isArrayLike(a)?b.isArray(a)||(a=b._toArray(a)):a=[a];if(e)a._runParse=!0;return a},_cloneNode:function(a){return a.cloneNode(!0)},_place:function(a,c,e,d){if(!(c.nodeType!=1&&e=="only"))for(var f,
g=a.length,h=g-1;h>=0;h--){var i=d?this._cloneNode(a[h]):a[h];if(a._runParse&&b.parser&&b.parser.parse){f||(f=c.ownerDocument.createElement("div"));f.appendChild(i);b.parser.parse(f);for(i=f.firstChild;f.firstChild;)f.removeChild(f.firstChild)}h==g-1?b.place(i,c,e):c.parentNode.insertBefore(i,c);c=i}},_stash:function(a){this._parent=a;return this},end:function(){return this._parent?this._parent:new this._NodeListCtor},concat:function(e){var d=b.isArray(this)?this:a.call(this,0),f=b.map(arguments,
function(c){return c&&!b.isArray(c)&&(typeof NodeList!="undefined"&&c.constructor===NodeList||c.constructor===this._NodeListCtor)?a.call(c,0):c});return this._wrap(c.apply(d,f),this)},map:function(a,c){return this._wrap(b.map(this,a,c),this)},forEach:function(a,c){b.forEach(this,a,c);return this},coords:h(b.coords),position:h(b.position),place:function(a,c){var e=b.query(a)[0];return this.forEach(function(a){b.place(a,e,c)})},orphan:function(a){return(a?b._filterQueryResult(this,a):this).forEach(k)},
adopt:function(a,c){return b.query(a).place(this[0],c)._stash(this)},query:function(a){if(!a)return this;var e=this.map(function(c){return b.query(a,c).filter(function(a){return a!==void 0})});return this._wrap(c.apply([],e),this)},filter:function(a){var c=arguments,e=this,d=0;if(typeof a=="string"){e=b._filterQueryResult(this,c[0]);if(c.length==1)return e._stash(this);d=1}return this._wrap(b.filter(e,c[d],c[d+1]),this)},addContent:function(a,b){for(var a=this._normalize(a,this[0]),c=0,e;e=this[c];c++)this._place(a,
e,b,c>0);return this},instantiate:function(a,c){var e=b.isFunction(a)?a:b.getObject(a),c=c||{};return this.forEach(function(a){new e(c,a)})},at:function(){var a=new this._NodeListCtor;b.forEach(arguments,function(b){b<0&&(b=this.length+b);this[b]&&a.push(this[b])},this);return a._stash(this)}});l.events="blur,focus,change,click,error,keydown,keypress,keyup,load,mousedown,mouseenter,mouseleave,mousemove,mouseout,mouseover,mouseup,submit".split(",");b.forEach(l.events,function(a){var b="on"+a;m[b]=
function(a,c){return this.connect(b,a,c)}})})();return b.NodeList});
(function(){var b=function(a){var b=a.trim,e=a.forEach,d=a._NodeListCtor=a.NodeList,g=(a.isWebKit||a.isMozilla)&&a.doc.compatMode=="BackCompat",h=a.doc.firstChild.children?"children":"childNodes",i=!1,j=function(){return!0},k=function(a){a+=">~+".indexOf(a.slice(-1))>=0?" * ":" ";for(var e=function(e,d){return b(a.slice(e,d))},d=[],f=-1,g=-1,h=-1,j=-1,k=-1,l=-1,m=-1,w="",n="",o,t=0,p=a.length,q=null,r=null,s=function(){if(l>=0)q.id=e(l,t).replace(/\\/g,""),l=-1;if(m>=0){var a=m==t?null:e(m,t);q[">~+".indexOf(a)<
0?"tag":"oper"]=a;m=-1}k>=0&&(q.classes.push(e(k+1,t).replace(/\\/g,"")),k=-1)};w=n,n=a.charAt(t),t<p;t++)if(w!="\\")if(q||(o=t,q={query:null,pseudos:[],attrs:[],classes:[],tag:null,oper:null,id:null,getTag:function(){return i?this.otag:this.tag}},m=t),f>=0)if(n=="]"){r.attr?r.matchFor=e(h||f+1,t):r.attr=e(f+1,t);if((f=r.matchFor)&&(f.charAt(0)=='"'||f.charAt(0)=="'"))r.matchFor=f.slice(1,-1);q.attrs.push(r);r=null;f=h=-1}else{if(n=="=")h="|~^$*".indexOf(w)>=0?w:"",r.type=h+n,r.attr=e(f+1,t-h.length),
h=t+1}else if(g>=0){if(n==")"){if(j>=0)r.value=e(g+1,t);j=g=-1}}else if(n=="#")s(),l=t+1;else if(n==".")s(),k=t;else if(n==":")s(),j=t;else if(n=="[")s(),f=t,r={};else if(n=="(")j>=0&&(r={name:e(j+1,t),value:null},q.pseudos.push(r)),g=t;else if(n==" "&&w!=n){s();j>=0&&q.pseudos.push({name:e(j+1,t)});q.loops=q.pseudos.length||q.attrs.length||q.classes.length;q.oquery=q.query=e(o,t);q.otag=q.tag=q.oper?null:q.tag||"*";if(q.tag)q.tag=q.tag.toUpperCase();if(d.length&&d[d.length-1].oper)q.infixOper=d.pop(),
q.query=q.infixOper.query+" "+q.query;d.push(q);q=null}return d},l=function(a,b){return!a?b:!b?a:function(){return a.apply(window,arguments)&&b.apply(window,arguments)}},m=function(a,b){var c=b||[];a&&c.push(a);return c},n=function(a){return 1==a.nodeType},o=function(a,b){return!a?"":b=="class"?a.className||"":b=="for"?a.htmlFor||"":b=="style"?a.style.cssText||"":(i?a.getAttribute(b):a.getAttribute(b,2))||""},p={"*=":function(a,b){return function(c){return o(c,a).indexOf(b)>=0}},"^=":function(a,b){return function(c){return o(c,
a).indexOf(b)==0}},"$=":function(a,b){return function(c){c=" "+o(c,a);return c.lastIndexOf(b)==c.length-b.length}},"~=":function(a,b){var c=" "+b+" ";return function(b){return(" "+o(b,a)+" ").indexOf(c)>=0}},"|=":function(a,b){var c=" "+b+"-";return function(e){e=" "+o(e,a);return e==b||e.indexOf(c)==0}},"=":function(a,b){return function(c){return o(c,a)==b}}},r=typeof a.doc.firstChild.nextElementSibling=="undefined",q=!r?"nextElementSibling":"nextSibling",s=!r?"previousElementSibling":"previousSibling",
w=r?n:j,t=function(a){for(;a=a[s];)if(w(a))return!1;return!0},x=function(a){for(;a=a[q];)if(w(a))return!1;return!0},A=function(a){var b=a.parentNode,c=0,e=b[h],d=a._i||-1,f=b._l||-1;if(!e)return-1;e=e.length;if(f==e&&d>=0&&f>=0)return d;b._l=e;d=-1;for(b=b.firstElementChild||b.firstChild;b;b=b[q])if(w(b))b._i=++c,a===b&&(d=c);return d},K=function(a){return!(A(a)%2)},z=function(a){return A(a)%2},v={checked:function(){return function(a){return!!("checked"in a?a.checked:a.selected)}},"first-child":function(){return t},
"last-child":function(){return x},"only-child":function(){return function(a){return!t(a)?!1:!x(a)?!1:!0}},empty:function(){return function(a){for(var b=a.childNodes,a=a.childNodes.length-1;a>=0;a--){var c=b[a].nodeType;if(c===1||c==3)return!1}return!0}},contains:function(a,b){var c=b.charAt(0);if(c=='"'||c=="'")b=b.slice(1,-1);return function(a){return a.innerHTML.indexOf(b)>=0}},not:function(a,b){var c=k(b)[0],e={el:1};if(c.tag!="*")e.tag=1;if(!c.classes.length)e.classes=1;var d=y(c,e);return function(a){return!d(a)}},
"nth-child":function(a,b){var c=parseInt;if(b=="odd")return z;else if(b=="even")return K;if(b.indexOf("n")!=-1){var e=b.split("n",2),d=e[0]?e[0]=="-"?-1:c(e[0]):1,f=e[1]?c(e[1]):0,g=0,h=-1;d>0?f<0?f=f%d&&d+f%d:f>0&&(f>=d&&(g=f-f%d),f%=d):d<0&&(d*=-1,f>0&&(h=f,f%=d));if(d>0)return function(a){a=A(a);return a>=g&&(h<0||a<=h)&&a%d==f};else b=f}var i=c(b);return function(a){return A(a)==i}}},u=a.isIE<9||dojo.isIE&&dojo.isQuirks?function(a){var b=a.toLowerCase();b=="class"&&(a="className");return function(c){return i?
c.getAttribute(a):c[a]||c[b]}}:function(a){return function(b){return b&&b.getAttribute&&b.hasAttribute(a)}},y=function(a,b){if(!a)return j;var b=b||{},c=null;"el"in b||(c=l(c,n));"tag"in b||a.tag!="*"&&(c=l(c,function(b){return b&&b.tagName==a.getTag()}));"classes"in b||e(a.classes,function(a,b){var e=RegExp("(?:^|\\s)"+a+"(?:\\s|$)");c=l(c,function(a){return e.test(a.className)});c.count=b});"pseudos"in b||e(a.pseudos,function(a){var b=a.name;v[b]&&(c=l(c,v[b](b,a.value)))});"attrs"in b||e(a.attrs,
function(a){var b,e=a.attr;a.type&&p[a.type]?b=p[a.type](e,a.matchFor):e.length&&(b=u(e));b&&(c=l(c,b))});"id"in b||a.id&&(c=l(c,function(b){return!!b&&b.id==a.id}));c||"default"in b||(c=j);return c},G=function(a){return function(b,c,e){for(;b=b[q];)if(!r||n(b)){(!e||Q(b,e))&&a(b)&&c.push(b);break}return c}},E=function(a){return function(b,c,e){for(b=b[q];b;){if(w(b)){if(e&&!Q(b,e))break;a(b)&&c.push(b)}b=b[q]}return c}},D=function(a){a=a||j;return function(b,c,e){for(var d=0,f=b[h];b=f[d++];)w(b)&&
(!e||Q(b,e))&&a(b,d)&&c.push(b);return c}},B={},I=function(b){var c=B[b.query];if(c)return c;var e=b.infixOper,e=e?e.oper:"",d=y(b,{el:1}),f="*"==b.tag,h=a.doc.getElementsByClassName;if(e){h={el:1};if(f)h.tag=1;d=y(b,h);"+"==e?c=G(d):"~"==e?c=E(d):">"==e&&(c=D(d))}else if(b.id)d=!b.loops&&f?j:y(b,{el:1,id:1}),c=function(c,e){var f=a.byId(b.id,c.ownerDocument||c);if(f&&d(f))if(9==c.nodeType)return m(f,e);else{for(var g=f.parentNode;g;){if(g==c)break;g=g.parentNode}if(g)return m(f,e)}};else if(h&&/\{\s*\[native code\]\s*\}/.test(String(h))&&
b.classes.length&&!g)var d=y(b,{el:1,classes:1,id:1}),i=b.classes.join(" "),c=function(a,b,c){for(var b=m(0,b),e,f=0,g=a.getElementsByClassName(i);e=g[f++];)d(e,a)&&Q(e,c)&&b.push(e);return b};else!f&&!b.loops?c=function(a,c,e){for(var c=m(0,c),d=0,f=a.getElementsByTagName(b.getTag());a=f[d++];)Q(a,e)&&c.push(a);return c}:(d=y(b,{el:1,tag:1,id:1}),c=function(a,c,e){for(var c=m(0,c),f,g=0,h=a.getElementsByTagName(b.getTag());f=h[g++];)d(f,a)&&Q(f,e)&&c.push(f);return c});return B[b.query]=c},C={},
F={},L=function(a){var e=k(b(a));if(e.length==1){var g=I(e[0]);return function(a){if(a=g(a,new d))a.nozip=!0;return a}}return function(a){for(var a=m(a),b,c,d=e.length,f,g,h=0;h<d;h++){g=[];b=e[h];c=a.length-1;if(c>0)f={},g.nozip=!0;c=I(b);for(var i=0;b=a[i];i++)c(b,g,f);if(!g.length)break;a=g}return g}},H=navigator.userAgent,H=a.isWebKit&&H.indexOf("WebKit/")>0&&parseFloat(H.split("WebKit/")[1])>528,M=a.isIE?"commentStrip":"nozip",J=!!a.doc.querySelectorAll&&(!a.isSafari||a.isSafari>3.1||H),N=/n\+\d|([^ ])?([>~+])([^ =])?/g,
T=function(a,b,c,e){return c?(b?b+" ":"")+c+(e?" "+e:""):a},S=function(b,c){b=b.replace(N,T);if(J){var e=F[b];if(e&&!c)return e}if(e=C[b])return e;var e=b.charAt(0),d=-1==b.indexOf(" ");b.indexOf("#")>=0&&d&&(c=!0);if(J&&!c&&">~+".indexOf(e)==-1&&(!a.isIE||b.indexOf(":")==-1)&&!(g&&b.indexOf(".")>=0)&&b.indexOf(":contains")==-1&&b.indexOf(":checked")==-1&&b.indexOf("|=")==-1){var f=">~+".indexOf(b.charAt(b.length-1))>=0?b+" *":b;return F[b]=function(a){try{if(!(9==a.nodeType||d))throw"";var c=a.querySelectorAll(f);
c[M]=!0;return c}catch(e){return S(b,!0)(a)}}}else{var h=b.split(/\s*,\s*/);return C[b]=h.length<2?L(b):function(a){for(var b=0,c=[],e;e=h[b++];)c=c.concat(L(e)(a));return c}}},P=0,U=a.isIE?function(a){return i?a.getAttribute("_uid")||a.setAttribute("_uid",++P)||P:a.uniqueID}:function(a){return a._uid||(a._uid=++P)},Q=function(a,b){if(!b)return 1;var c=U(a);return!b[c]?b[c]=1:0},V=function(b){if(b&&b.nozip)return d._wrap?d._wrap(b):b;var c=new d;if(!b||!b.length)return c;b[0]&&c.push(b[0]);if(b.length<
2)return c;P++;if(a.isIE&&i){var e=P+"";b[0].setAttribute("_zipIdx",e);for(var g=1,h;h=b[g];g++)b[g].getAttribute("_zipIdx")!=e&&c.push(h),h.setAttribute("_zipIdx",e)}else if(a.isIE&&b.commentStrip)try{for(g=1;h=b[g];g++)n(h)&&c.push(h)}catch(j){}else{b[0]&&(b[0]._zipIdx=P);for(g=1;h=b[g];g++)b[g]._zipIdx!=P&&c.push(h),h._zipIdx=P}return c};a.query=function(b,c){d=a._NodeListCtor;if(!b)return new d;if(b.constructor==d)return b;if(typeof b!="string")return new d(b);if(typeof c=="string"&&(c=a.byId(c),
!c))return new d;var c=c||a.doc,e=c.ownerDocument||c.documentElement;i=c.contentType&&c.contentType=="application/xml"||a.isOpera&&(c.doctype||e.toString()=="[object XMLDocument]")||!!e&&(a.isIE?e.xml:c.xmlVersion||e.xmlVersion);return(e=S(b)(c))&&e.nozip&&!d._wrap?e:V(e)};a.query.pseudos=v;a._filterQueryResult=function(b,c,e){for(var d=new a._NodeListCtor,f=k(c),f=f.length==1&&!/[^\w#\.]/.test(c)?y(f[0]):function(a){return dojo.query(c,e).indexOf(a)!=-1},g=0,h;h=b[g];g++)f(h)&&d.push(h);return d}},
d=function(){acme={trim:function(a){for(var a=a.replace(/^\s+/,""),b=a.length-1;b>=0;b--)if(/\S/.test(a.charAt(b))){a=a.substring(0,b+1);break}return a},forEach:function(a,b,c){if(a&&a.length)for(var e=0,d=a.length;e<d;++e)b.call(c||window,a[e],e,a)},byId:function(a,b){return typeof a=="string"?(b||document).getElementById(a):a},doc:document,NodeList:Array};var a=navigator,b=a.userAgent,a=a.appVersion,e=parseFloat(a);acme.isOpera=b.indexOf("Opera")>=0?e:void 0;acme.isKhtml=a.indexOf("Konqueror")>=
0?e:void 0;acme.isWebKit=parseFloat(b.split("WebKit/")[1])||void 0;acme.isChrome=parseFloat(b.split("Chrome/")[1])||void 0;if((b=Math.max(a.indexOf("WebKit"),a.indexOf("Safari"),0))&&!acme.isChrome)if(acme.isSafari=parseFloat(a.split("Version/")[1]),!acme.isSafari||parseFloat(a.substr(b+7))<=419.3)acme.isSafari=2;if(document.all&&!acme.isOpera)acme.isIE=parseFloat(a.split("MSIE ")[1])||void 0;Array._wrap=function(a){return a};return acme};typeof define=="function"&&define("dojo/_base/query",["dojo/lib/kernel",
"dojo/_base/NodeList","dojo/_base/lang","dojo/_base/window"],function(a){b(this.queryPortability||this.acme||a)});typeof define!="function"&&(this.dojo?(dojo.provide("dojo._base.query"),dojo.require("dojo._base.NodeList"),dojo.require("dojo._base.lang"),b(this.queryPortability||this.acme||dojo)):b(this.queryPortability||this.acme||d()))})();
define("dojo/_base/xhr",["dojo/lib/kernel","dojo/_base/Deferred","dojo/_base/json","dojo/_base/lang","dojo/_base/query"],function(b){(function(){var d=b.config;b.fieldToObject=function(a){var c=null;if(a=b.byId(a)){var e=a.name,d=(a.type||"").toLowerCase();if(e&&d&&!a.disabled)if(d=="radio"||d=="checkbox"){if(a.checked)c=a.value}else a.multiple?(c=[],b.query("option",a).forEach(function(a){a.selected&&c.push(a.value)})):c=a.value}return c};b.formToObject=function(a){var c={};b.forEach(b.byId(a).elements,
function(a){var e=a.name,d=(a.type||"").toLowerCase();if(e&&d&&"file|submit|image|reset|button|".indexOf(d)==-1&&!a.disabled){a=b.fieldToObject(a);if(a!==null){var f=c[e];typeof f=="string"?c[e]=[f,a]:b.isArray(f)?f.push(a):c[e]=a}if(d=="image")c[e+".x"]=c[e+".y"]=c[e].x=c[e].y=0}});return c};b.objectToQuery=function(a){var c=encodeURIComponent,e=[],d={},f;for(f in a){var g=a[f];if(g!=d[f]){var h=c(f)+"=";if(b.isArray(g))for(var i=0;i<g.length;i++)e.push(h+c(g[i]));else e.push(h+c(g))}}return e.join("&")};
b.formToQuery=function(a){return b.objectToQuery(b.formToObject(a))};b.formToJson=function(a,c){return b.toJson(b.formToObject(a),c)};b.queryToObject=function(a){var c={},a=a.split("&"),e=decodeURIComponent;b.forEach(a,function(a){if(a.length){var d=a.split("="),a=e(d.shift()),d=e(d.join("="));typeof c[a]=="string"&&(c[a]=[c[a]]);b.isArray(c[a])?c[a].push(d):c[a]=d}});return c};b._blockAsync=!1;var a=b._contentHandlers=b.contentHandlers={text:function(a){return a.responseText},json:function(a){return b.fromJson(a.responseText||
null)},"json-comment-filtered":function(a){b.config.useCommentedJson||console.warn("Consider using the standard mimetype:application/json. json-commenting can introduce security issues. To decrease the chances of hijacking, use the standard the 'json' handler and prefix your json with: {}&&\nUse djConfig.useCommentedJson=true to turn off this message.");var a=a.responseText,c=a.indexOf("/*"),e=a.lastIndexOf("*/");if(c==-1||e==-1)throw Error("JSON was not comment filtered");return b.fromJson(a.substring(c+
2,e))},javascript:function(a){return b.eval(a.responseText)},xml:function(a){var c=a.responseXML;if(b.isIE&&(!c||!c.documentElement)){var e=function(a){return"MSXML"+a+".DOMDocument"},e=["Microsoft.XMLDOM",e(6),e(4),e(3),e(2)];b.some(e,function(b){try{var e=new ActiveXObject(b);e.async=!1;e.loadXML(a.responseText);c=e}catch(d){return!1}return!0})}return c},"json-comment-optional":function(b){return b.responseText&&/^[^{\[]*\/\*/.test(b.responseText)?a["json-comment-filtered"](b):a.json(b)}};b._ioSetArgs=
function(a,c,e,f){var g={args:a,url:a.url},h=null;if(a.form){var h=b.byId(a.form),i=h.getAttributeNode("action");g.url=g.url||(i?i.value:null);h=b.formToObject(h)}i=[{}];h&&i.push(h);a.content&&i.push(a.content);a.preventCache&&i.push({"dojo.preventCache":(new Date).valueOf()});g.query=b.objectToQuery(b.mixin.apply(null,i));g.handleAs=a.handleAs||"text";var j=new b.Deferred(c);j.addCallbacks(e,function(a){return f(a,j)});var k=a.load;k&&b.isFunction(k)&&j.addCallback(function(b){return k.call(a,b,
g)});var l=a.error;l&&b.isFunction(l)&&j.addErrback(function(b){return l.call(a,b,g)});var m=a.handle;m&&b.isFunction(m)&&j.addBoth(function(b){return m.call(a,b,g)});d.ioPublish&&b.publish&&g.args.ioPublish!==!1&&(j.addCallbacks(function(a){b.publish("/dojo/io/load",[j,a]);return a},function(a){b.publish("/dojo/io/error",[j,a]);return a}),j.addBoth(function(a){b.publish("/dojo/io/done",[j,a]);return a}));j.ioArgs=g;return j};var c=function(a){a.canceled=!0;var b=a.ioArgs.xhr,c=typeof b.abort;(c==
"function"||c=="object"||c=="unknown")&&b.abort();a=a.ioArgs.error;if(!a)a=Error("xhr cancelled"),a.dojoType="cancel";return a},e=function(b){b=a[b.ioArgs.handleAs](b.ioArgs.xhr);return b===void 0?null:b},f=function(a,b){b.ioArgs.args.failOk||console.error(a);return a},g=null,h=[],i=0,j=function(a){i<=0&&(i=0,d.ioPublish&&b.publish&&(!a||a&&a.ioArgs.args.ioPublish!==!1)&&b.publish("/dojo/io/stop"))},k=function(){var a=(new Date).getTime();if(!b._blockAsync)for(var c=0,e;c<h.length&&(e=h[c]);c++){var d=
e.dfd,f=function(){if(!d||d.canceled||!e.validCheck(d))h.splice(c--,1),i-=1;else if(e.ioCheck(d))h.splice(c--,1),e.resHandle(d),i-=1;else if(d.startTime&&d.startTime+(d.ioArgs.args.timeout||0)<a){h.splice(c--,1);var b=Error("timeout exceeded");b.dojoType="timeout";d.errback(b);d.cancel();i-=1}};if(b.config.debugAtAllCosts)f.call(this);else try{f.call(this)}catch(k){d.errback(k)}}j(d);h.length||(clearInterval(g),g=null)};b._ioCancelAll=function(){try{b.forEach(h,function(a){try{a.dfd.cancel()}catch(b){}})}catch(a){}};
b.isIE&&b.addOnWindowUnload(b._ioCancelAll);b._ioNotifyStart=function(a){d.ioPublish&&b.publish&&a.ioArgs.args.ioPublish!==!1&&(i||b.publish("/dojo/io/start"),i+=1,b.publish("/dojo/io/send",[a]))};b._ioWatch=function(a,b,c,e){var d=a.ioArgs.args;if(d.timeout)a.startTime=(new Date).getTime();h.push({dfd:a,validCheck:b,ioCheck:c,resHandle:e});g||(g=setInterval(k,50));d.sync&&k()};var l=function(a){return a.ioArgs.xhr.readyState},m=function(a){return 4==a.ioArgs.xhr.readyState},n=function(a){var c=a.ioArgs.xhr;
if(b._isDocumentOk(c))a.callback(a);else{var e=Error("Unable to load "+a.ioArgs.url+" status:"+c.status);e.status=c.status;e.responseText=c.responseText;a.errback(e)}};b._ioAddQueryToUrl=function(a){if(a.query.length)a.url+=(a.url.indexOf("?")==-1?"?":"&")+a.query,a.query=null};b.xhr=function(a,d,g){var h=b._ioSetArgs(d,c,e,f),i=h.ioArgs,j=i.xhr=b._xhrObj(i.args);if(!j)return h.cancel(),h;"postData"in d?i.query=d.postData:"putData"in d?i.query=d.putData:"rawBody"in d?i.query=d.rawBody:(arguments.length>
2&&!g||"POST|PUT".indexOf(a.toUpperCase())==-1)&&b._ioAddQueryToUrl(i);j.open(a,i.url,d.sync!==!0,d.user||void 0,d.password||void 0);if(d.headers)for(var k in d.headers)k.toLowerCase()==="content-type"&&!d.contentType?d.contentType=d.headers[k]:d.headers[k]&&j.setRequestHeader(k,d.headers[k]);j.setRequestHeader("Content-Type",d.contentType||"application/x-www-form-urlencoded");(!d.headers||!("X-Requested-With"in d.headers))&&j.setRequestHeader("X-Requested-With","XMLHttpRequest");b._ioNotifyStart(h);
if(b.config.debugAtAllCosts)j.send(i.query);else try{j.send(i.query)}catch(x){i.error=x,h.cancel()}b._ioWatch(h,l,m,n);return h};b.xhrGet=function(a){return b.xhr("GET",a)};b.rawXhrPost=b.xhrPost=function(a){return b.xhr("POST",a,!0)};b.rawXhrPut=b.xhrPut=function(a){return b.xhr("PUT",a,!0)};b.xhrDelete=function(a){return b.xhr("DELETE",a)}})();return b.xhr});
define("dojo/_base/fx",["dojo/lib/kernel","dojo/_base/Color","dojo/_base/connect","dojo/_base/lang","dojo/_base/html"],function(b){(function(){var d=b._mixin;b._Line=function(a,b){this.start=a;this.end=b};b._Line.prototype.getValue=function(a){return(this.end-this.start)*a+this.start};b.Animation=function(a){d(this,a);if(b.isArray(this.curve))this.curve=new b._Line(this.curve[0],this.curve[1])};b._Animation=b.Animation;b.extend(b.Animation,{duration:350,repeat:0,rate:20,_percent:0,_startRepeatCount:0,
_getStep:function(){var a=this._percent,b=this.easing;return b?b(a):a},_fire:function(a,c){var e=c||[];if(this[a])if(b.config.debugAtAllCosts)this[a].apply(this,e);else try{this[a].apply(this,e)}catch(d){console.error("exception in animation handler for:",a),console.error(d)}return this},play:function(a,c){this._delayTimer&&this._clearTimer();if(c)this._stopTimer(),this._active=this._paused=!1,this._percent=0;else if(this._active&&!this._paused)return this;this._fire("beforeBegin",[this.node]);var e=
a||this.delay,d=b.hitch(this,"_play",c);if(e>0)return this._delayTimer=setTimeout(d,e),this;d();return this},_play:function(){this._delayTimer&&this._clearTimer();this._startTime=(new Date).valueOf();this._paused&&(this._startTime-=this.duration*this._percent);this._active=!0;this._paused=!1;var a=this.curve.getValue(this._getStep());if(!this._percent){if(!this._startRepeatCount)this._startRepeatCount=this.repeat;this._fire("onBegin",[a])}this._fire("onPlay",[a]);this._cycle();return this},pause:function(){this._delayTimer&&
this._clearTimer();this._stopTimer();if(!this._active)return this;this._paused=!0;this._fire("onPause",[this.curve.getValue(this._getStep())]);return this},gotoPercent:function(a,b){this._stopTimer();this._active=this._paused=!0;this._percent=a;b&&this.play();return this},stop:function(a){this._delayTimer&&this._clearTimer();if(!this._timer)return this;this._stopTimer();if(a)this._percent=1;this._fire("onStop",[this.curve.getValue(this._getStep())]);this._active=this._paused=!1;return this},status:function(){return this._active?
this._paused?"paused":"playing":"stopped"},_cycle:function(){if(this._active){var a=((new Date).valueOf()-this._startTime)/this.duration;a>=1&&(a=1);this._percent=a;this.easing&&(a=this.easing(a));this._fire("onAnimate",[this.curve.getValue(a)]);if(this._percent<1)this._startTimer();else{this._active=!1;if(this.repeat>0)this.repeat--,this.play(null,!0);else if(this.repeat==-1)this.play(null,!0);else if(this._startRepeatCount)this.repeat=this._startRepeatCount,this._startRepeatCount=0;this._percent=
0;this._fire("onEnd",[this.node]);!this.repeat&&this._stopTimer()}}return this},_clearTimer:function(){clearTimeout(this._delayTimer);delete this._delayTimer}});var a=0,c=null,e={run:function(){}};b.extend(b.Animation,{_startTimer:function(){if(!this._timer)this._timer=b.connect(e,"run",this,"_cycle"),a++;c||(c=setInterval(b.hitch(e,"run"),this.rate))},_stopTimer:function(){if(this._timer)b.disconnect(this._timer),this._timer=null,a--;a<=0&&(clearInterval(c),c=null,a=0)}});var f=b.isIE?function(a){var c=
a.style;if(!c.width.length&&b.style(a,"width")=="auto")c.width="auto"}:function(){};b._fade=function(a){a.node=b.byId(a.node);var c=d({properties:{}},a),a=c.properties.opacity={};a.start=!("start"in c)?function(){return+b.style(c.node,"opacity")||0}:c.start;a.end=c.end;a=b.animateProperty(c);b.connect(a,"beforeBegin",b.partial(f,c.node));return a};b.fadeIn=function(a){return b._fade(d({end:1},a))};b.fadeOut=function(a){return b._fade(d({end:0},a))};b._defaultEasing=function(a){return 0.5+Math.sin((a+
1.5)*Math.PI)/2};var g=function(a){this._properties=a;for(var c in a){var e=a[c];if(e.start instanceof b.Color)e.tempColor=new b.Color}};g.prototype.getValue=function(a){var c={},e;for(e in this._properties){var d=this._properties[e],f=d.start;f instanceof b.Color?c[e]=b.blendColors(f,d.end,a,d.tempColor).toCss():b.isArray(f)||(c[e]=(d.end-f)*a+f+(e!="opacity"?d.units||"px":0))}return c};b.animateProperty=function(a){var c=a.node=b.byId(a.node);if(!a.easing)a.easing=b._defaultEasing;a=new b.Animation(a);
b.connect(a,"beforeBegin",a,function(){var a={},e;for(e in this.properties){if(e=="width"||e=="height")this.node.display="block";var f=this.properties[e];b.isFunction(f)&&(f=f(c));f=a[e]=d({},b.isObject(f)?f:{end:f});if(b.isFunction(f.start))f.start=f.start(c);if(b.isFunction(f.end))f.end=f.end(c);var h=e.toLowerCase().indexOf("color")>=0,n=function(a,c){var e={height:a.offsetHeight,width:a.offsetWidth}[c];if(e!==void 0)return e;e=b.style(a,c);return c=="opacity"?+e:h?e:parseFloat(e)};if("end"in f){if(!("start"in
f))f.start=n(c,e)}else f.end=n(c,e);h?(f.start=new b.Color(f.start),f.end=new b.Color(f.end)):f.start=e=="opacity"?+f.start:parseFloat(f.start)}this.curve=new g(a)});b.connect(a,"onAnimate",b.hitch(b,"style",a.node));return a};b.anim=function(a,c,e,d,f,g){return b.animateProperty({node:a,duration:e||b.Animation.prototype.duration,properties:c,easing:d,onEnd:f}).play(g||0)}})();return b.animateProperty});
define("dojo","dojo/lib/kernel,dojo/_base/lang,dojo/_base/array,dojo/_base/declare,dojo/_base/connect,dojo/_base/Deferred,dojo/_base/json,dojo/_base/Color,dojo/_base/window,dojo/_base/event,dojo/_base/html,dojo/_base/NodeList,dojo/_base/query,dojo/_base/xhr,dojo/_base/fx".split(","),function(b){return b});define("dijit",["dojo"],function(b){return dijit=b._dijit||{}});(function(){var b=this;if(!b.define)b.define=function(d){b.orion=b.orion||{};b.orion.Deferred=d();delete b.define}})();
define("orion/Deferred",[],function(){function b(b){if(g)a?(c.next={notify:b,next:null},c=c.next):c=a={notify:b,next:null};else{g=!0;do{for(;b;){b();if(e)a?c.next=e:a=e,c=f;a?(e=a.next,f=c,b=a.notify,a=c=null):b=null}g=!1}while(g)}}function d(){function a(){for(;f;){var b=f;f=f.next;var d=b.deferred;if(b[e])try{var h=b[e](c);h&&typeof h.then==="function"?h.then(d.resolve,d.reject,d.update):d.resolve(h)}catch(p){d.reject(p)}else d[e](c)}f=g=null}var c,e,f,g;this.resolve=function(d){if(e)throw Error("'"+
e+"' already called");e="resolve";c=d;b(a)};this.reject=function(d){if(e)throw Error("'"+e+"' already called");e="reject";c=d;b(a)};this.update=this.progress=this.notify=function(a){for(var b=f;b;){if(b.update)try{b.update(a)}catch(c){}b=b.next}};this.then=function(c,i,o){c={resolve:c,reject:i,update:o,deferred:new d};f?g.next=c:f=c;g=c;e&&b(a);return c.deferred.promise};this.promise={then:this.then};this.state=function(){return e||"wait"};this.all=function(a,b){function c(a,b){e||(g[a]=b,--f===0&&
h.resolve(g))}function d(a,f){if(!e){if(b)try{c(a,b(f));return}catch(g){f=g}h.reject(f)}}var f=a.length,g=[],h=this;f===0?this.resolve(g):a.forEach(function(a,b){a.then(c.bind(null,b),d.bind(null,b))});return this.promise}}var a,c,e,f,g=!1;d.when=function(a,b,c,e){var f;if(!(a&&typeof a.then==="function"))f=new d,f.resolve(a),a=f.promise;return a.then(b,c,e)};return d});
define("orion/serviceregistry",["orion/Deferred"],function(b){function d(a,b,c){this.serviceId=a;this.name=b;this.properties=c}function a(a,b,c){this.serviceId=a;this.serviceReference=b;this.internalRegistry=c}function c(a,c,e,d){return function(){var f;if(a.isRegistered(c)){try{var g=e[d].apply(e,Array.prototype.slice.call(arguments));if(g&&typeof g.then==="function")return g;else f=new b,f.resolve(g)}catch(n){f=new b,f.reject(n)}return f.promise}throw Error("Service was unregistered");}}function e(a,
b,e){this.serviceId=a;this.implementation=b;this.internalRegistry=e;for(var d in b)typeof b[d]==="function"&&(this[d]=c(e,a,b,d))}function f(){this._namedlisteners={}}function g(){this._entries=[];this._namedReferences={};this._serviceEventTarget=new f;var a=this;this.internalRegistry={isRegistered:function(b){return a._entries[b]?!0:!1},unregisterService:function(b){var c=a._entries[b];if(c){for(var e=c.reference,d=a._namedReferences[e.getName()],f=0;f<d.length;f++)if(d[f]===e){d.length===1?delete a._namedReferences[e.getName()]:
d.splice(f,1);break}a._entries[b]=null;a._serviceEventTarget.dispatchEvent("serviceRemoved",e,c.service)}},dispatchEvent:function(b,c){var e=a._entries[b];e&&e.eventTarget.dispatchEvent.apply(e.eventTarget,[c].concat(Array.prototype.slice.call(arguments,2)))},addEventListener:function(b,c,e){(b=a._entries[b])&&b.eventTarget.addEventListener(c,e)},removeEventListener:function(b,c,e){(b=a._entries[b])&&b.eventTarget.removeEventListener(c,e)}}}d.prototype={getServiceId:function(){return this.serviceId},
getName:function(){return this.name},getPropertyNames:function(){var a=[],b;for(b in this.properties)this.properties.hasOwnProperty(b)&&a.push(b);return a},getProperty:function(a){return this.properties[a]}};d.prototype.constructor=d;a.prototype={unregister:function(){this.internalRegistry.unregisterService(this.serviceId)},dispatchEvent:function(a){this.internalRegistry.dispatchEvent.apply(this.internalRegistry,[this.serviceId,a].concat(Array.prototype.slice.call(arguments,1)))},getServiceReference:function(){return this.serviceReference}};
a.prototype.constructor=a;e.prototype={addEventListener:function(a,b){this.internalRegistry.addEventListener(this.serviceId,a,b)},removeEventListener:function(a,b){this.internalRegistry.removeEventListener(this.serviceId,a,b)}};e.prototype.constructor=e;f.prototype={dispatchEvent:function(a){var b=this._namedlisteners[a];if(b)for(var c=0;c<b.length;c++)try{var e=Array.prototype.slice.call(arguments,1);b[c].apply(null,e)}catch(d){console.log(d)}},addEventListener:function(a,b){this._namedlisteners[a]=
this._namedlisteners[a]||[];this._namedlisteners[a].push(b)},removeEventListener:function(a,b){var c=this._namedlisteners[a];if(c)for(var e=0;e<c.length;e++)if(c[e]===b){c.length===1?delete this._namedlisteners[a]:c.splice(e,1);break}}};f.prototype.constructor=f;g.prototype={getService:function(a){var b;if(typeof a==="string"){if(this._namedReferences[a])for(var c=0;c<this._namedReferences[a].length;c++)if(b=this._entries[this._namedReferences[a][c].getServiceId()].service)break}else b=this._entries[a.getServiceId()].service;
return b},getServiceReferences:function(a){if(a)return this._namedReferences[a]?this._namedReferences[a]:[];for(var a=[],b=0;b<this._entries.length;b++)this._entries[b]&&a.push(this._entries[b].reference);return a},registerService:function(b,c,g){var k=this._entries.length,g=new d(k,b,g),c=new e(k,c,this.internalRegistry);this._namedReferences[b]=this._namedReferences[b]||[];this._namedReferences[b].push(g);this._entries.push({reference:g,service:c,eventTarget:new f});this._serviceEventTarget.dispatchEvent("serviceAdded",
g,c);return new a(k,g,this.internalRegistry)},addEventListener:function(a,b){this._serviceEventTarget.addEventListener(a,b)},removeEventListener:function(a,b){this._serviceEventTarget.removeEventListener(a,b)}};g.prototype.constructor=g;return{ServiceReference:d,ServiceRegistration:a,Service:e,EventTarget:f,ServiceRegistry:g}});
define("orion/xhr",["orion/Deferred"],function(b){function d(a){return encodeURIComponent(a).replace(/[!'()*]/g,function(a){return"%"+a.charCodeAt(0).toString(16).toUpperCase()})}return function(a,c,e){var e=e||{},f=arguments.length>3&&arguments[3]?arguments[3]:new XMLHttpRequest,g=new b,h=e.headers||{},i=e.log||!1,j,k;typeof h["X-Requested-With"]==="undefined"&&(h["X-Requested-With"]="XMLHttpRequest");if(e.query&&typeof e.query==="object"){var l=e.query,m=Object.keys(l),n=[];for(k=0;k<m.length;k++){var o=
m[k],p=l[o];n.push(d(o)+"="+d(p))}n.length&&(l=c.split("#"),l[0]+=(l[0].indexOf("?")===-1?"?":"&")+n.join("&"),c=l.join("#"))}if(typeof e.data!=="undefined"&&(a==="POST"||a==="PUT"))j=e.data;if(typeof e.responseType==="string")f.responseType=e.responseType;f.onreadystatechange=function(){if(f.readyState===4){var a=f.status,b=typeof f.response!=="undefined"?f.response:f.responseText,b={args:e,response:b,responseText:typeof b==="string"?b:null,status:a,url:c,xhr:f};200<=a&&a<400?g.resolve(b):(i&&console&&
console.log(Error(f.statusText)),g.reject(b))}};try{f.open(a,c,!0);if(typeof e.timeout==="number")f.timeout=e.timeout,f.addEventListener("timeout",function(a){g.reject("Timeout exceeded: "+a)});var r=Object.keys(h);for(k=0;k<r.length;k++){var q=r[k];f.setRequestHeader(q,h[q])}f.send(j)}catch(s){g.reject(s)}return g}});
define("orion/es5shim",[],function(){if(!Function.prototype.bind)Function.prototype.bind=function(b){var d=this,a=Array.prototype.slice.call(arguments,1);return a.length?function(){return arguments.length?d.apply(b,a.concat(Array.prototype.slice.call(arguments))):d.apply(b,a)}:function(){return arguments.length?d.apply(b,arguments):d.call(b)}}});
define("orion/preferences",["require","orion/Deferred","orion/xhr","orion/es5shim"],function(b,d,a){function c(a,b){this._name=a;this._providers=b;this._flushPending=!1;this._cached=null;this._stores=[];this._dirty=[]}function e(a,b){return{get:function(c,e){if(b===0)return null;var d=localStorage.getItem(a+c);if(d===null)return null;d=JSON.parse(d);return e||b===-1||d._expires&&d._expires>(new Date).getTime()?(delete d._expires,d):null},set:function(c,e){if(b!==0){if(b!==-1)e._expires=(new Date).getTime()+
1E3*b;if(Object.keys(e).length===0)localStorage.removeItem(a+c);else{var d=JSON.stringify(e);localStorage.setItem(a+c,d);delete e._expires}}},remove:function(b){localStorage.removeItem(a+b)}}}function f(a){this._currentPromises={};this._cache=new e("/orion/preferences/user",3600);this._service=null;this.available=function(){if(!this._service){var b=a.getServiceReferences("orion.core.preference.provider");if(b.length>0)this._service=a.getService(b[0])}return!!this._service}}function g(a){this._location=
a;this._currentPromise=null;this._cache=new e("/orion/preferences/default",3600)}function h(){this._cache=new e("/orion/preferences/local",-1)}function i(a,c){this._userProvider=new f(a);this._localProvider=new h;c=c||"defaults.pref";c.indexOf("://")===-1&&(c=b.toUrl(c));this._defaultsProvider=new g(c);this._serviceRegistration=a.registerService("orion.core.preference",this)}c.prototype={_flush:function(){for(var a=[],b=0;b<this._stores.length;++b){var c=this._stores[b];this._dirty.indexOf(c)!==-1&&
a.push(this._providers[b].put(this._name,c))}this._dirty=[];return(new d).all(a)},_scheduleFlush:function(a){this._dirty.indexOf(a)===-1&&this._dirty.push(a);if(!this._flushPending)this._flushPending=!0,window.setTimeout(function(){if(this._flushPending)this._flushPending=!1,this._flush()}.bind(this),0)},_getCached:function(){if(!this._cached){this._cached={};for(var a=0;a<this._stores.length;++a){var b=this._stores[a],c;for(c in b)b.hasOwnProperty(c)&&typeof this._cached[c]==="undefined"&&(this._cached[c]=
b[c])}}return this._cached},keys:function(){return Object.keys(this._getCached())},get:function(a){return this._getCached()[a]},put:function(a,b){if(this._stores.length!==0){var c=this._stores[0];if(c[a]!==b)c[a]=b,this._cached=null,this._scheduleFlush(c)}},remove:function(a){for(var b=0;b<this._stores.length;++b){var c=this._stores[b];if(c.hasOwnProperty(a))return delete c[a],this._cached=null,this._scheduleFlush(c),!0}return!1},clear:function(){for(var a=0;a<this._stores.length;++a)this._stores[a]=
{},this._scheduleFlush(this._stores[a]);this._cached=null},sync:function(a){if(this._flushPending)return this._flushPending=!1,this._flush();for(var b=this,c=[],e=0;e<this._providers.length;++e)c.push(this._providers[e].get(this._name,a).then(function(a){return function(c){b._stores[a]=c}}(e)));return(new d).all(c).then(function(){b._cached=null;b._getCached()})},flush:function(){this._flush()}};f.prototype={get:function(a,b){if(this._currentPromises[a])return this._currentPromises[a];var c=new d,
e=null;b?this._cache.remove(a):e=this._cache.get(a);if(e!==null)c.resolve(e);else{this._currentPromises[a]=c;var f=this;this._service.get(a).then(function(b){f._cache.set(a,b);delete f._currentPromises[a];c.resolve(b)},function(b){b.status===404?(b={},f._cache.set(a,b),delete f._currentPromises[a],c.resolve(b)):(delete f._currentPromises[a],c.resolve(f._cache.get(a,!0)||{}))})}return c},put:function(a,b){this._cache.set(a,b);return this._service.put(a,b)}};g.prototype={get:function(b,c){if(this._currentPromise)return this._currentPromise;
var e=new d,f=null;c?this._cache.remove(b):f=this._cache.get(b);if(f!==null)e.resolve(f);else{this._currentPromise=e;var g=this;a("GET",this._location,{headers:{"Orion-Version":"1"},timeout:15E3}).then(function(a){a=JSON.parse(a.response);g._cache.set(b,a[b]||{});g._currentPromise=null;e.resolve(a[b]||{})},function(a){a.xhr.status===401||a.xhr.status===404?(g._cache.set(b,{}),g._currentPromise=null,e.resolve({})):(g._currentPromise=null,a=g._cache.get(b,!0),a!==null?e.resolve(a[b]||{}):e.resolve({}))})}return e},
put:function(){var a=new d;a.resolve();return a}};h.prototype={get:function(a){var b=new d,a=this._cache.get(a);a!==null?b.resolve(a):b.resolve({});return b},put:function(a,b){var c=new d;this._cache.set(a,b);c.resolve();return c}};i.DEFAULT_SCOPE=1;i.LOCAL_SCOPE=2;i.USER_SCOPE=4;i.prototype={listenForChangedSettings:function(a){window.addEventListener("storage",a,!1);return"/orion/preferences/local/settings"},getPreferences:function(a,b){if(!b||typeof b!=="number"||b>7||b<1)b=i.DEFAULT_SCOPE|i.LOCAL_SCOPE|
i.USER_SCOPE;var e=[];i.USER_SCOPE&b&&this._userProvider.available()&&e.push(this._userProvider);i.LOCAL_SCOPE&b&&e.push(this._localProvider);i.DEFAULT_SCOPE&b&&e.push(this._defaultsProvider);var d=new c(a,e);return d.sync().then(function(){return d})},getSetting:function(a,b,c){for(var e,d=0;d<a.length;d++)if(a[d].label===b)for(var f=0;f<a[d].data.length;f++)if(a[d].data[f].label===c){e=a[d].data[f].value;break}return e}};return{PreferencesService:i}});
define("orion/pluginregistry",["orion/Deferred","orion/serviceregistry","orion/es5shim"],function(b,d){var a=a||{};a.Plugin=function(a,e,d){function g(a,c,e){if(!l)throw Error("plugin not connected");var g=p++,h=new b;r[String(g)]=h;d.postMessage({id:g,serviceId:a,method:c,params:e},l);return h.promise}function h(a){var b={};a.methods&&a.methods.forEach(function(c){b[c]=function(){var b=Array.prototype.slice.call(arguments);return o?g(a.serviceId,c,b):k._load().then(function(){return g(a.serviceId,
c,b)})}});return b}function i(){var a=e.services;a&&a.forEach(function(a){var b=h(a);q[a.serviceId]=d.registerService(a.type,b,a.properties)})}function j(b){var g,h;try{if(b.method)if("plugin"===b.method){if(e){if(JSON.stringify(e)!==JSON.stringify(b.params[0])){for(var j in q)q.hasOwnProperty(j)&&(q[j].unregister(),delete q[j]);e=b.params[0];i();d.updatePlugin(k)}}else e=b.params[0],i();o||(o=!0,d.dispatchEvent("pluginLoaded",k),m.resolve(k));n&&(n.resolve(k),n=null)}else"dispatchEvent"===b.method?
(g=q[b.serviceId],g.dispatchEvent.apply(g,b.params)):"progress"===b.method?(h=r[String(b.requestId)],h.update.apply(h,b.params)):(o||m.reject(Error("Load timeout for plugin: "+a)),n&&(n.reject(Error("Load timeout for plugin: "+a)),n=null));else h=r[String(b.id)],delete r[String(b.id)],b.error?h.reject(b.error):h.resolve(b.result)}catch(l){console.log(l)}}var k=this,l=null,m=new b,n=null,o=!1,p=0,r={},q={};this.getLocation=function(){return a};this.getData=function(){return e};this.uninstall=function(){for(var a in q)q.hasOwnProperty(a)&&
(q[a].unregister(),delete q[a]);l&&(d.disconnect(l),l=null);d.uninstallPlugin(this)};this.getServiceReferences=function(){var a=[],b;for(b in q)q.hasOwnProperty(b)&&a.push(q[b].getServiceReference());return a};this.update=function(){if(!o)return this._load();n===null&&(n=new b,d.disconnect(l),l=d.connect(a,j));return n.promise};this._load=function(b,g){l||(l=d.connect(a,j,g),m.then(null,function(){b||(e={},d.updatePlugin(k))}));return m.promise};if(typeof a!=="string")throw Error("invalid url:"+a);
e&&i()};a.PluginRegistry=function(c,e,f){function g(a){if(a.indexOf("://")===-1){var b=document.createElement("a");b.href=a;return b.href}return a}function h(a){a.getData()._expires=(new Date).getTime()+36E5;j["plugin."+a.getLocation()]=JSON.stringify(a.getData())}function i(a){var b=null,a=g(a);k.some(function(c){if(a===c.getLocation())return b=c,!0});return b}var j=e||localStorage||{},k=[],l=[],m=new d.EventTarget;addEventListener("message",function(a){var b=a.source;l.some(function(c){if(b===c.target){if(typeof c.useStructuredClone===
"undefined")c.useStructuredClone=typeof a.data!=="string";c.handler(c.useStructuredClone?a.data:JSON.parse(a.data));return!0}})},!1);var n={registerService:c.registerService.bind(c),connect:function(a,b,c){function e(){b({method:"timeout"})}var d={handler:b,url:a},g=setTimeout(e,c||15E3);if(a.match(/\.js$/)&&typeof Worker!=="undefined"){var h=new Worker(a);h.onmessage=function(a){if(typeof d.useStructuredClone==="undefined")d.useStructuredClone=typeof a.data!=="string";d.handler(d.useStructuredClone?
a.data:JSON.parse(a.data))};d.target=h;d.close=function(){h.terminate()}}else{var i=document.createElement("iframe");i.id=a;i.name=a;if(!f)i.style.display="none",i.style.visibility="hidden";i.src=a;i.onload=function(){clearTimeout(g);setTimeout(e,5E3)};i.sandbox="allow-scripts allow-same-origin";document.body.appendChild(i);d.target=i.contentWindow;d.close=function(){document.body.removeChild(i)}}l.push(d);return d},disconnect:function(a){for(var b=0;b<l.length;b++)if(a===l[b]){l.splice(b,1);try{a.close()}catch(c){}break}},
uninstallPlugin:function(a){delete j["plugin."+a.getLocation()];for(var b=0;b<k.length;b++)if(a===k[b]){k.splice(b,1);m.dispatchEvent("pluginRemoved",a);break}},updatePlugin:function(a){h(a);m.dispatchEvent("pluginUpdated",a)},postMessage:function(a,b){b.target.postMessage(b.useStructuredClone?a:JSON.stringify(a),b.url)},dispatchEvent:function(a,b){try{m.dispatchEvent(a,b)}catch(c){console&&console.log(c)}}};this.startup=function(c){var e=[];c.forEach(function(b){var b=g(b),c="plugin."+b,d=j[c]?JSON.parse(j[c]):
null;d&&d._expires&&d._expires>(new Date).getTime()?i(b)===null&&(delete d._expires,k.push(new a.Plugin(b,d,n))):(j[c]="{}",b=new a.Plugin(b,{},n),k.push(b),e.push(b._load(!1,5E3)))});return(new b).all(e,function(){})};this.shutdown=function(){l.forEach(function(a){try{a.close()}catch(b){}})};this.installPlugin=function(c,e){var c=g(c),d=new b,f=i(c);if(f)if(f.getData())d.resolve(f);else{var j=function(a){a.getLocation()===c&&(d.resolve(a),m.removeEventListener("pluginAdded",j))};m.addEventListener("pluginAdded",
j)}else f=new a.Plugin(c,e,n),k.push(f),f.getData()?(h(f),m.dispatchEvent("pluginAdded",f),d.resolve(f)):f._load(!0).then(function(){h(f);m.dispatchEvent("pluginAdded",f);d.resolve(f)},function(a){d.reject(a)});return d.promise};this.getPlugins=function(){var a=[];k.forEach(function(b){b.getData()&&a.push(b)});return a};this.getPlugin=function(a){return(a=i(a))&&a.getData()?a:null};this.addEventListener=function(a,b){m.addEventListener(a,b)};this.removeEventListener=function(a,b){m.removeEventListener(a,
b)}};return a});
define("orion/bootstrap",["require","orion/Deferred","orion/serviceregistry","orion/preferences","orion/pluginregistry"],function(b,d,a,c,e){var f;return{startup:function(){if(f)return f;f=new d;var g=new a.ServiceRegistry,h=new c.PreferencesService(g),i=new e.PluginRegistry(g);return h.getPreferences("/plugins").then(function(a){for(var a=a.keys(),c=0;c<a.length;++c)a[c].indexOf("://")===-1&&(a[c]=b.toUrl(a[c]));return i.startup(a)}).then(function(){if(g.getServiceReferences("orion.core.preference.provider").length>0)return h.getPreferences("/plugins",
h.USER_SCOPE).then(function(a){for(var a=a.keys(),c=0;c<a.length;++c)a[c].indexOf("://")===-1&&(a[c]=b.toUrl(a[c]));return i.startup(a)})}).then(function(){var a=g.getService("orion.core.auth");a&&a.getUser().then(function(b){b||a.getAuthForm(window.location.href).then(function(a){window.location=a})})}).then(function(){var a={serviceRegistry:g,preferences:h,pluginRegistry:i};f.resolve(a);return a})}}});
define("orion/nls/messages",["orion/i18n!orion/nls/messages"],function(b){var d={root:!0};Object.keys(b).forEach(function(a){typeof d[a]==="undefined"&&(d[a]=b[a])});return d});
define("orion/nls/root/messages",{Navigator:"Navigator",Sites:"Sites",Repositories:"Repositories",Console:"Console","Get Plugins":"Get Plugins",Global:"Global",Editor:"Editor","View on Site":"View on Site","View this file or folder on a web site hosted by Orion":"View this file or folder on a web site hosted by Orion","Show a list of all the keybindings on this page":"Show a list of all the keybindings on this page","Show Keys":"Show Keys","Hide or show the page banner and footer":"Hide or show the page banner and footer",
"Toggle banner and footer":"Toggle banner and footer","Choose a file by name and open an editor on it":"Choose a file by name and open an editor on it","Find File Named...":"Find File Named...","System Configuration Details":"System Configuration Details","System Config Tooltip":"Go to the System Configuration Details page","Background Operations":"Background Operations","Background Operations Tooltip":"Go to the Background Operations page","Operation status is unknown":"Operation status is unknown",
" is already a favorite.":" is already a favorite.","Add to the favorites list":"Add to the favorites list","Make Favorite":"Make Favorite","Unknown item":"Unknown item","Can't search: no search service is available":"Can't search: no search service is available","could not find banner parent, id was ":"could not find banner parent, id was "," has been added to the favorites list.":" has been added to the favorites list.",Related:"Related",Options:"Options",FAQ:"FAQ","Report a Bug":"Report a Bug",
"Privacy Policy":"Privacy Policy","Terms of Use":"Terms of Use","Copyright Agent":"Copyright Agent","Orion Logo":"Orion Logo","Type a keyword or wild card to search in root":"Type a keyword or wild card to search in root","Orion is in Beta. Please try it out but BEWARE your data may be lost.":"Beta build I20120622-1139. Please try it out but BEWARE your data may be lost.","Add this page to the favorites list":"Add this page to the favorites list","LOG: ":"LOG: ",Switch:"Switch","Switch the type of outliner used":"Switch the type of outliner used",
Outliner:"Outliner","no parent":"no parent","no tree model":"no tree model","no renderer":"no renderer","could not find table row ":"could not find table row ","Resource is out of sync with the server. Do you want to save it anyway?":"Resource is out of sync with the server. Do you want to save it anyway?","Orion Home":"Orion Home","Operations - Press spacebar to show current operations":"Operations - Press spacebar to show current operations",Operations:"Operations","Operations running":"Operations running",
"Some operations finished with warning":"Some operations finished with warning","Some operations finished with error":"Some operations finished with error","no service registry":"no service registry","Are you sure you want to delete '${0}' from the favorites?":"Are you sure you want to delete '${0}' from the favorites?","Are you sure you want to delete these ${0} favorites?":"Are you sure you want to delete these ${0} favorites?","You can create favorites by selecting any file or folder in the navigator and choosing ${0} from the More menu.":"You can create favorites by selecting any file or folder in the navigator and choosing ${0} from the More menu.",
Tasks:"Tasks",Close:"Close","Expand all":"Expand all","Collapse all":"Collapse all"});
define("dojo/hash",["dojo"],function(b){(function(){function d(a,b){var c=a.indexOf(b);return c>=0?a.substring(c+1):""}function a(){return d(location.href,"#")}function c(){b.publish("/dojo/hashchange",[a()])}function e(){a()!==h&&(h=a(),c())}function f(a){if(i)if(i.isTransitioning())setTimeout(b.hitch(null,f,a),k);else{var c=i.iframe.location.href,d=c.indexOf("?");i.iframe.location.replace(c.substring(0,d)+"?"+a)}else location.replace("#"+a),!j&&e()}function g(){function e(){h=a();i=s?h:d(w.href,
"?");j=!1;r=null}var f=document.createElement("iframe"),g=b.config.dojoBlankHtmlUrl||b.moduleUrl("dojo","resources/blank.html");b.config.useXDomain&&!b.config.dojoBlankHtmlUrl&&console.warn("dojo.hash: When using cross-domain Dojo builds, please save dojo/resources/blank.html to your domain and set djConfig.dojoBlankHtmlUrl to the path on your domain to blank.html");f.id="dojo-hash-iframe";f.src=g+"?"+a();f.style.display="none";document.body.appendChild(f);this.iframe=b.global["dojo-hash-iframe"];
var i,j,r,q,s,w=this.iframe.location;this.isTransitioning=function(){return j};this.pollLocation=function(){if(!s)try{var t=d(w.href,"?");if(document.title!=q)q=this.iframe.document.title=document.title}catch(x){s=!0,console.error("dojo.hash: Error adding history entry. Server unreachable.")}var A=a();if(j&&h===A)if(s||t===r)e(),c();else{setTimeout(b.hitch(this,this.pollLocation),0);return}else if(!(h===A&&(s||i===t)))if(h!==A){h=A;j=!0;r=A;f.src=g+"?"+r;s=!1;setTimeout(b.hitch(this,this.pollLocation),
0);return}else if(!s)location.href="#"+w.search.substring(1),e(),c();setTimeout(b.hitch(this,this.pollLocation),k)};e();setTimeout(b.hitch(this,this.pollLocation),k)}b.hash=function(b,c){if(!arguments.length)return a();b.charAt(0)=="#"&&(b=b.substring(1));c?f(b):location.href="#"+b;return b};var h,i,j,k=b.config.hashPollFrequency||100;b.addOnLoad(function(){"onhashchange"in b.global&&(!b.isIE||b.isIE>=8&&document.compatMode!="BackCompat")?j=b.connect(b.global,"onhashchange",c):document.addEventListener?
(h=a(),setInterval(e,k)):document.attachEvent&&(i=new g)})})();return b.hash});
(function(){var b=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],d=/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,a=/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im,c=typeof location!=="undefined"&&location.href,e=c&&location.protocol&&location.protocol.replace(/\:/,""),f=c&&location.hostname,g=c&&(location.port||void 0),h=[];define("text",[],function(){var i,j,k;typeof window!=="undefined"&&window.navigator&&window.document?j=function(a,b){var c=i.createXhr();c.open("GET",a,!0);c.onreadystatechange=
function(){c.readyState===4&&b(c.responseText)};c.send(null)}:typeof process!=="undefined"&&process.versions&&process.versions.node?(k=require.nodeRequire("fs"),j=function(a,b){var c=k.readFileSync(a,"utf8");c.indexOf("\ufeff")===0&&(c=c.substring(1));b(c)}):typeof Packages!=="undefined"&&(j=function(a,b){var c=new java.io.File(a),e=java.lang.System.getProperty("line.separator"),c=new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream(c),"utf-8")),d,f,g="";try{d=new java.lang.StringBuffer;
(f=c.readLine())&&f.length()&&f.charAt(0)===65279&&(f=f.substring(1));for(d.append(f);(f=c.readLine())!==null;)d.append(e),d.append(f);g=String(d.toString())}finally{c.close()}b(g)});return i={version:"1.0.7",strip:function(b){if(b){var b=b.replace(d,""),c=b.match(a);c&&(b=c[1])}else b="";return b},jsEscape:function(a){return a.replace(/(['\\])/g,"\\$1").replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r")},createXhr:function(){var a,c,
e;if(typeof XMLHttpRequest!=="undefined")return new XMLHttpRequest;else for(c=0;c<3;c++){e=b[c];try{a=new ActiveXObject(e)}catch(d){}if(a){b=[e];break}}if(!a)throw Error("createXhr(): XMLHttpRequest not available");return a},get:j,parseName:function(a){var b=!1,c=a.indexOf("."),e=a.substring(0,c),a=a.substring(c+1,a.length),c=a.indexOf("!");c!==-1&&(b=a.substring(c+1,a.length),b=b==="strip",a=a.substring(0,c));return{moduleName:e,ext:a,strip:b}},xdRegExp:/^((\w+)\:)?\/\/([^\/\\]+)/,useXhr:function(a,
b,c,e){var d=i.xdRegExp.exec(a),f;if(!d)return!0;a=d[2];d=d[3];d=d.split(":");f=d[1];d=d[0];return(!a||a===b)&&(!d||d===c)&&(!f&&!d||f===e)},finishLoad:function(a,b,c,e,d){c=b?i.strip(c):c;d.isBuild&&(h[a]=c);e(c)},load:function(a,b,d,h){if(h.isBuild&&!h.inlineText)d();else{var j=i.parseName(a),k=j.moduleName+"."+j.ext,q=b.toUrl(k),s=h&&h.text&&h.text.useXhr||i.useXhr;!c||s(q,e,f,g)?i.get(q,function(b){i.finishLoad(a,j.strip,b,d,h)}):b([k],function(a){i.finishLoad(j.moduleName+"."+j.ext,j.strip,a,
d,h)})}},write:function(a,b,c){if(b in h){var e=i.jsEscape(h[b]);c.asModule(a+"!"+b,"define(function () { return '"+e+"';});\n")}},writeFile:function(a,b,c,e,d){var b=i.parseName(b),f=b.moduleName+"."+b.ext,g=c.toUrl(b.moduleName+"."+b.ext)+".js";i.load(f,c,function(){var b=function(a){return e(g,a)};b.asModule=function(a,b){return e.asModule(a,g,b)};i.write(a,f,b,d)},d)}}})})();define("text!dijit/form/templates/ValidationTextBox.html",[],function(){return'<div class="dijit dijitReset dijitInlineTable dijitLeft"\n\tid="widget_${id}" role="presentation"\n\t><div class=\'dijitReset dijitValidationContainer\'\n\t\t><input class="dijitReset dijitInputField dijitValidationIcon dijitValidationInner" value="&#935; " type="text" tabIndex="-1" readonly="readonly" role="presentation"\n\t/></div\n\t><div class="dijitReset dijitInputField dijitInputContainer"\n\t\t><input class="dijitReset dijitInputInner" dojoAttachPoint=\'textbox,focusNode\' autocomplete="off"\n\t\t\t${!nameAttrSetting} type=\'${type}\'\n\t/></div\n></div>'});
define("dojo/i18n",["require","dojo"],function(b,d){d.getObject("i18n",!0,d);d.i18n.getLocalization=d.i18n.getLocalization||function(a,c,e){var e=d.i18n.normalizeLocale(e),f=e.split("-"),g=[a,"nls",c].join(".");if(typeof d.global.require!=="undefined"){var h=b("i18n!"+[a.replace(/\./g,"/"),"nls",c].join("/"));(d._loadedModules[g]=d._loadedModules[g]||{})[f.join("_")]=h.root||h}if(g=d._loadedModules[g]){for(var i,h=f.length;h>0;h--){var j=f.slice(0,h).join("_");if(g[j]){i=g[j];break}}if(!i)i=g.ROOT;
if(i)return a=function(){},a.prototype=i,new a}throw Error("Bundle not found: "+c+" in "+a+" , locale="+e);};d.i18n.normalizeLocale=function(a){a=a?a.toLowerCase():d.locale;a=="root"&&(a="ROOT");return a};d.i18n._requireLocalization=function(a,b,e,f){var e=d.i18n.normalizeLocale(e),g=[a,"nls",b].join("."),h="";if(f){for(var i=f.split(","),j=0;j<i.length;j++)e.indexOf(i[j])==0&&i[j].length>h.length&&(h=i[j]);h||(h="ROOT")}var i=f?h:e,k=d._loadedModules[g],j=null;if(k){if(d.config.localizationComplete&&
k._built)return;j=i.replace(/-/g,"_");j=d._loadedModules[g+"."+j]}if(!j){var k=d.provide(g),l=d._getModuleSymbols(a).concat("nls").join("/"),m;d.i18n._searchLocalePath(i,f,function(a){var e=a.replace(/-/g,"_"),h=g+"."+e,i=!1;d._loadedModules[h]?i=!0:(d.provide(h),h=[l],a!="ROOT"&&h.push(a),h.push(b),a=h.join("/")+".js",i=d._loadPath(a,null,function(a){var a=a.root||a,b=function(){};b.prototype=m;k[e]=new b;for(var c in a)k[e][c]=a[c]}));i&&k[e]?m=k[e]:k[e]=m;if(f)return!0})}f&&e!=h&&(k[e.replace(/-/g,
"_")]=k[h.replace(/-/g,"_")])};(function(){var a=d.config.extraLocale;if(a){!a instanceof Array&&(a=[a]);var b=d.i18n._requireLocalization;d.i18n._requireLocalization=function(e,d,g,h){b(e,d,g,h);if(!g)for(g=0;g<a.length;g++)b(e,d,a[g],h)}}})();d.i18n._searchLocalePath=function(a,b,e){for(var a=d.i18n.normalizeLocale(a),f=a.split("-"),a=[],g=f.length;g>0;g--)a.push(f.slice(0,g).join("-"));a.push(!1);b&&a.reverse();for(b=a.length-1;b>=0;b--)if(e(a[b]||"ROOT"))break};d.i18n._preloadLocalizations=function(a,
b){function e(e){e=d.i18n.normalizeLocale(e);d.i18n._searchLocalePath(e,!0,function(e){for(var f=0;f<b.length;f++)if(b[f]==e)return d.require(a+"_"+e),!0;return!1})}e();for(var f=d.config.extraLocale||[],g=0;g<f.length;g++)e(f[g])};return d.i18n});define("text!dijit/form/templates/TextBox.html",[],function(){return'<div class="dijit dijitReset dijitInline dijitLeft" id="widget_${id}" role="presentation"\n\t><div class="dijitReset dijitInputField dijitInputContainer"\n\t\t><input class="dijitReset dijitInputInner" dojoAttachPoint=\'textbox,focusNode\' autocomplete="off"\n\t\t\t${!nameAttrSetting} type=\'${type}\'\n\t/></div\n></div>'});
define("dojo/window",["dojo"],function(b){b.getObject("window",!0,b);b.window.getBox=function(){var d=b.doc.compatMode=="BackCompat"?b.body():b.doc.documentElement,a=b._docScroll();return{w:d.clientWidth,h:d.clientHeight,l:a.x,t:a.y}};b.window.get=function(d){if(b.isIE&&window!==document.parentWindow){d.parentWindow.execScript("document._parentWindow = window;","Javascript");var a=d._parentWindow;d._parentWindow=null;return a}return d.parentWindow||d.defaultView};b.window.scrollIntoView=function(d,
a){try{var d=b.byId(d),c=d.ownerDocument||b.doc,e=c.body||b.body(),f=c.documentElement||e.parentNode,g=b.isIE,h=b.isWebKit;if((!b.isMoz&&!g&&!h&&!b.isOpera||d==e||d==f)&&typeof d.scrollIntoView!="undefined")d.scrollIntoView(!1);else{var i=c.compatMode=="BackCompat",j=g>=9&&d.ownerDocument.parentWindow.frameElement?f.clientHeight>0&&f.clientWidth>0&&(e.clientHeight==0||e.clientWidth==0||e.clientHeight>f.clientHeight||e.clientWidth>f.clientWidth)?f:e:i?e:f,c=h?e:j,k=j.clientWidth,l=j.clientHeight,m=
!b._isBodyLtr(),n=a||b.position(d),o=d.parentNode,j=function(a){return g<=6||g&&i?!1:b.style(a,"position").toLowerCase()=="fixed"};if(!j(d))for(;o;){o==e&&(o=c);var p=b.position(o),r=j(o);if(o==c){p.w=k;p.h=l;c==f&&g&&m&&(p.x+=c.offsetWidth-p.w);if(p.x<0||!g)p.x=0;if(p.y<0||!g)p.y=0}else{var q=b._getPadBorderExtents(o);p.w-=q.w;p.h-=q.h;p.x+=q.l;p.y+=q.t;var s=o.clientWidth,w=p.w-s;if(s>0&&w>0)p.w=s,p.x+=m&&(g||o.clientLeft>q.l)?w:0;s=o.clientHeight;w=p.h-s;if(s>0&&w>0)p.h=s}if(r){if(p.y<0)p.h+=p.y,
p.y=0;if(p.x<0)p.w+=p.x,p.x=0;if(p.y+p.h>l)p.h=l-p.y;if(p.x+p.w>k)p.w=k-p.x}var t=n.x-p.x,x=n.y-Math.max(p.y,0),A=t+n.w-p.w,K=x+n.h-p.h;if(A*t>0){var z=Math[t<0?"max":"min"](t,A);if(m&&(g==8&&!i||g>=9))z=-z;n.x+=o.scrollLeft;o.scrollLeft+=z;n.x-=o.scrollLeft}K*x>0&&(n.y+=o.scrollTop,o.scrollTop+=Math[x<0?"max":"min"](x,K),n.y-=o.scrollTop);o=o!=c&&!r&&o.parentNode}}}catch(v){console.error("scrollIntoView: "+v),d.scrollIntoView(!1)}};return b.window});
define("dijit/_base/manager",["dojo","dijit"],function(b,d){b.declare("dijit.WidgetSet",null,{constructor:function(){this._hash={};this.length=0},add:function(a){if(this._hash[a.id])throw Error("Tried to register widget with id=="+a.id+" but that id is already registered");this._hash[a.id]=a;this.length++},remove:function(a){this._hash[a]&&(delete this._hash[a],this.length--)},forEach:function(a,c){var c=c||b.global,e=0,d;for(d in this._hash)a.call(c,this._hash[d],e++,this._hash);return this},filter:function(a,
c){var c=c||b.global,e=new d.WidgetSet,f=0,g;for(g in this._hash){var h=this._hash[g];a.call(c,h,f++,this._hash)&&e.add(h)}return e},byId:function(a){return this._hash[a]},byClass:function(a){var b=new d.WidgetSet,e,f;for(e in this._hash)f=this._hash[e],f.declaredClass==a&&b.add(f);return b},toArray:function(){var a=[],b;for(b in this._hash)a.push(this._hash[b]);return a},map:function(a,c){return b.map(this.toArray(),a,c)},every:function(a,c){var c=c||b.global,e=0,d;for(d in this._hash)if(!a.call(c,
this._hash[d],e++,this._hash))return!1;return!0},some:function(a,c){var c=c||b.global,e=0,d;for(d in this._hash)if(a.call(c,this._hash[d],e++,this._hash))return!0;return!1}});(function(){d.registry=new d.WidgetSet;var a=d.registry._hash,c=b.attr,e=b.hasAttr,f=b.style;d.byId=function(b){return typeof b=="string"?a[b]:b};var g={};d.getUniqueId=function(b){var c;do c=b+"_"+(b in g?++g[b]:g[b]=0);while(a[c]);return d._scopeName=="dijit"?c:d._scopeName+"_"+c};d.findWidgets=function(b){function c(b){for(b=
b.firstChild;b;b=b.nextSibling)if(b.nodeType==1){var d=b.getAttribute("widgetId");d?(d=a[d])&&e.push(d):c(b)}}var e=[];c(b);return e};d._destroyAll=function(){d._curFocus=null;d._prevFocus=null;d._activeStack=[];b.forEach(d.findWidgets(b.body()),function(a){a._destroyed||(a.destroyRecursive?a.destroyRecursive():a.destroy&&a.destroy())})};b.isIE&&b.addOnWindowUnload(function(){d._destroyAll()});d.byNode=function(b){return a[b.getAttribute("widgetId")]};d.getEnclosingWidget=function(b){for(;b;){var c=
b.getAttribute&&b.getAttribute("widgetId");if(c)return a[c];b=b.parentNode}return null};var h=d._isElementShown=function(a){var b=f(a);return b.visibility!="hidden"&&b.visibility!="collapsed"&&b.display!="none"&&c(a,"type")!="hidden"};d.hasDefaultTabStop=function(a){switch(a.nodeName.toLowerCase()){case "a":return e(a,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return!0;case "iframe":var b;try{var c=a.contentDocument;if("designMode"in c&&c.designMode==
"on")return!0;b=c.body}catch(d){try{b=a.contentWindow.document.body}catch(f){return!1}}return b.contentEditable=="true"||b.firstChild&&b.firstChild.contentEditable=="true";default:return a.contentEditable=="true"}};var i=d.isTabNavigable=function(a){return c(a,"disabled")?!1:e(a,"tabIndex")?c(a,"tabIndex")>=0:d.hasDefaultTabStop(a)};d._getTabNavigable=function(a){function d(a){return a&&a.tagName.toLowerCase()=="input"&&a.type&&a.type.toLowerCase()=="radio"&&a.name&&a.name.toLowerCase()}var f,g,n,
o,p,r,q={},s=function(a){b.query("> *",a).forEach(function(a){if(!(b.isIE&&a.scopeName!=="HTML")&&h(a)){if(i(a)){var j=c(a,"tabIndex");if(!e(a,"tabIndex")||j==0)f||(f=a),g=a;else if(j>0){if(!n||j<o)o=j,n=a;if(!p||j>=r)r=j,p=a}j=d(a);b.attr(a,"checked")&&j&&(q[j]=a)}a.nodeName.toUpperCase()!="SELECT"&&s(a)}})};h(a)&&s(a);return{first:q[d(f)]||f,last:q[d(g)]||g,lowest:q[d(n)]||n,highest:q[d(p)]||p}};d.getFirstInTabbingOrder=function(a){a=d._getTabNavigable(b.byId(a));return a.lowest?a.lowest:a.first};
d.getLastInTabbingOrder=function(a){a=d._getTabNavigable(b.byId(a));return a.last?a.last:a.highest};d.defaultDuration=b.config.defaultDuration||200})();return d});
define("dojo/Stateful",["dojo"],function(b){b.declare("dojo.Stateful",null,{postscript:function(d){d&&b.mixin(this,d)},get:function(b){return this[b]},set:function(b,a){if(typeof b==="object"){for(var c in b)this.set(c,b[c]);return this}c=this[b];this[b]=a;this._watchCallbacks&&this._watchCallbacks(b,c,a);return this},watch:function(d,a){var c=this._watchCallbacks;if(!c)var e=this,c=this._watchCallbacks=function(a,b,d,f){var k=function(c){if(c)for(var c=c.slice(),f=0,j=c.length;f<j;f++)try{c[f].call(e,
a,b,d)}catch(k){console.error(k)}};k(c["_"+a]);f||k(c["*"])};!a&&typeof d==="function"?(a=d,d="*"):d="_"+d;var f=c[d];typeof f!=="object"&&(f=c[d]=[]);f.push(a);return{unwatch:function(){f.splice(b.indexOf(f,a),1)}}}});return b.Stateful});
define("dijit/_WidgetBase",["dojo","dijit","dijit/_base/manager","dojo/Stateful"],function(b,d){(function(){b.declare("dijit._WidgetBase",b.Stateful,{id:"",lang:"",dir:"","class":"",style:"",title:"",tooltip:"",baseClass:"",srcNodeRef:null,domNode:null,containerNode:null,attributeMap:{id:"",dir:"",lang:"","class":"",style:"",title:""},_blankGif:(b.config.blankGif||b.moduleUrl("dojo","resources/blank.gif")).toString(),postscript:function(a,b){this.create(a,b)},create:function(a,c){this.srcNodeRef=
b.byId(c);this._connects=[];this._subscribes=[];if(this.srcNodeRef&&typeof this.srcNodeRef.id=="string")this.id=this.srcNodeRef.id;if(a)this.params=a,b._mixin(this,a);this.postMixInProperties();if(!this.id)this.id=d.getUniqueId(this.declaredClass.replace(/\./g,"_"));d.registry.add(this);this.buildRendering();if(this.domNode){this._applyAttributes();var e=this.srcNodeRef;e&&e.parentNode&&this.domNode!==e&&e.parentNode.replaceChild(this.domNode,e)}this.domNode&&this.domNode.setAttribute("widgetId",
this.id);this.postCreate();this.srcNodeRef&&!this.srcNodeRef.parentNode&&delete this.srcNodeRef;this._created=!0},_applyAttributes:function(){var a=function(a,b){(b.params&&a in b.params||b[a])&&b.set(a,b[a])},c;for(c in this.attributeMap)a(c,this);b.forEach(this._getSetterAttributes(),function(b){b in this.attributeMap||a(b,this)},this)},_getSetterAttributes:function(){var a=this.constructor;if(!a._setterAttrs){var c=a._setterAttrs=[],e,d=a.prototype,g;for(g in d)b.isFunction(d[g])&&(e=g.match(/^_set([a-zA-Z]*)Attr$/))&&
e[1]&&c.push(e[1].charAt(0).toLowerCase()+e[1].substr(1))}return a._setterAttrs},postMixInProperties:function(){},buildRendering:function(){if(!this.domNode)this.domNode=this.srcNodeRef||b.create("div");if(this.baseClass){var a=this.baseClass.split(" ");this.isLeftToRight()||(a=a.concat(b.map(a,function(a){return a+"Rtl"})));b.addClass(this.domNode,a)}},postCreate:function(){},startup:function(){this._started=!0},destroyRecursive:function(a){this._beingDestroyed=!0;this.destroyDescendants(a);this.destroy(a)},
destroy:function(a){this._beingDestroyed=!0;this.uninitialize();var c=b.forEach,e=b.unsubscribe;c(this._connects,function(a){c(a,b.disconnect)});c(this._subscribes,function(a){e(a)});c(this._supportingWidgets||[],function(a){a.destroyRecursive?a.destroyRecursive():a.destroy&&a.destroy()});this.destroyRendering(a);d.registry.remove(this.id);this._destroyed=!0},destroyRendering:function(a){this.bgIframe&&(this.bgIframe.destroy(a),delete this.bgIframe);this.domNode&&(a?b.removeAttr(this.domNode,"widgetId"):
b.destroy(this.domNode),delete this.domNode);this.srcNodeRef&&(a||b.destroy(this.srcNodeRef),delete this.srcNodeRef)},destroyDescendants:function(a){b.forEach(this.getChildren(),function(b){b.destroyRecursive&&b.destroyRecursive(a)})},uninitialize:function(){return!1},_setClassAttr:function(a){b.replaceClass(this[this.attributeMap["class"]||"domNode"],a,this["class"]);this._set("class",a)},_setStyleAttr:function(a){var c=this[this.attributeMap.style||"domNode"];b.isObject(a)?b.style(c,a):c.style.cssText?
c.style.cssText+="; "+a:c.style.cssText=a;this._set("style",a)},_attrToDom:function(a,c){var e=this.attributeMap[a];b.forEach(b.isArray(e)?e:[e],function(e){var d=this[e.node||e||"domNode"];switch(e.type||"attribute"){case "attribute":b.isFunction(c)&&(c=b.hitch(this,c));e=e.attribute?e.attribute:/^on[A-Z][a-zA-Z]*$/.test(a)?a.toLowerCase():a;b.attr(d,e,c);break;case "innerText":d.innerHTML="";d.appendChild(b.doc.createTextNode(c));break;case "innerHTML":d.innerHTML=c;break;case "class":b.replaceClass(d,
c,this[a])}},this)},get:function(a){var b=this._getAttrNames(a);return this[b.g]?this[b.g]():this[a]},set:function(a,b){if(typeof a==="object"){for(var e in a)this.set(e,a[e]);return this}e=this._getAttrNames(a);if(this[e.s])var d=this[e.s].apply(this,Array.prototype.slice.call(arguments,1));else a in this.attributeMap&&this._attrToDom(a,b),this._set(a,b);return d||this},_attrPairNames:{},_getAttrNames:function(a){var b=this._attrPairNames;if(b[a])return b[a];var e=a.charAt(0).toUpperCase()+a.substr(1);
return b[a]={n:a+"Node",s:"_set"+e+"Attr",g:"_get"+e+"Attr"}},_set:function(a,b){var e=this[a];this[a]=b;this._watchCallbacks&&this._created&&b!==e&&this._watchCallbacks(a,e,b)},toString:function(){return"[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]"},getDescendants:function(){return this.containerNode?b.query("[widgetId]",this.containerNode).map(d.byNode):[]},getChildren:function(){return this.containerNode?d.findWidgets(this.containerNode):[]},connect:function(a,c,e){a=[b._connect(a,
c,this,e)];this._connects.push(a);return a},disconnect:function(a){for(var c=0;c<this._connects.length;c++)if(this._connects[c]==a){b.forEach(a,b.disconnect);this._connects.splice(c,1);break}},subscribe:function(a,c){var e=b.subscribe(a,this,c);this._subscribes.push(e);return e},unsubscribe:function(a){for(var c=0;c<this._subscribes.length;c++)if(this._subscribes[c]==a){b.unsubscribe(a);this._subscribes.splice(c,1);break}},isLeftToRight:function(){return this.dir?this.dir=="ltr":b._isBodyLtr()},placeAt:function(a,
c){a.declaredClass&&a.addChild?a.addChild(this,c):b.place(this.domNode,a,c);return this}})})();return d._WidgetBase});
define("dijit/_base/focus",["dojo","dijit","dojo/window","dijit/_base/manager"],function(b,d){b.mixin(d,{_curFocus:null,_prevFocus:null,isCollapsed:function(){return d.getBookmark().isCollapsed},getBookmark:function(){var a,c,e=b.doc.selection,f=d._curFocus;if(b.global.getSelection){if(e=b.global.getSelection())if(e.isCollapsed){if(a=f?f.tagName:"")if(a=a.toLowerCase(),a=="textarea"||a=="input"&&(!f.type||f.type.toLowerCase()=="text"))return e={start:f.selectionStart,end:f.selectionEnd,node:f,pRange:!0},
{isCollapsed:e.end<=e.start,mark:e};a={isCollapsed:!0};if(e.rangeCount)a.mark=e.getRangeAt(0).cloneRange()}else c=e.getRangeAt(0),a={isCollapsed:!1,mark:c.cloneRange()}}else if(e){a=f?f.tagName:"";a=a.toLowerCase();if(f&&a&&(a=="button"||a=="textarea"||a=="input"))return e.type&&e.type.toLowerCase()=="none"?{isCollapsed:!0,mark:null}:(c=e.createRange(),{isCollapsed:c.text&&c.text.length?!1:!0,mark:{range:c,pRange:!0}});a={};try{c=e.createRange(),a.isCollapsed=!(e.type=="Text"?c.htmlText.length:c.length)}catch(g){return a.isCollapsed=
!0,a}if(e.type.toUpperCase()=="CONTROL")if(c.length){a.mark=[];e=0;for(f=c.length;e<f;)a.mark.push(c.item(e++))}else a.isCollapsed=!0,a.mark=null;else a.mark=c.getBookmark()}else console.warn("No idea how to store the current selection for this browser!");return a},moveToBookmark:function(a){var c=b.doc;if(a=a.mark)if(b.global.getSelection)(c=b.global.getSelection())&&c.removeAllRanges?a.pRange?(c=a.node,c.selectionStart=a.start,c.selectionEnd=a.end):(c.removeAllRanges(),c.addRange(a)):console.warn("No idea how to restore selection for this browser!");
else if(c.selection&&a){var e;a.pRange?e=a.range:b.isArray(a)?(e=c.body.createControlRange(),b.forEach(a,function(a){e.addElement(a)})):(e=c.body.createTextRange(),e.moveToBookmark(a));e.select()}},getFocus:function(a,c){var e=!d._curFocus||a&&b.isDescendant(d._curFocus,a.domNode)?d._prevFocus:d._curFocus;return{node:e,bookmark:e==d._curFocus&&b.withGlobal(c||b.global,d.getBookmark),openedForWindow:c}},focus:function(a){if(a){var c="node"in a?a.node:a,e=a.bookmark,a=a.openedForWindow,f=e?e.isCollapsed:
!1;if(c){var g=c.tagName.toLowerCase()=="iframe"?c.contentWindow:c;if(g&&g.focus)try{g.focus()}catch(h){}d._onFocusNode(c)}if(e&&b.withGlobal(a||b.global,d.isCollapsed)&&!f){a&&a.focus();try{b.withGlobal(a||b.global,d.moveToBookmark,null,[e])}catch(i){}}}},_activeStack:[],registerIframe:function(a){return d.registerWin(a.contentWindow,a)},unregisterIframe:function(a){d.unregisterWin(a)},registerWin:function(a,c){var e=function(a){d._justMouseDowned=!0;setTimeout(function(){d._justMouseDowned=!1},
0);if(!b.isIE||!a||!(a.srcElement&&a.srcElement.parentNode==null))d._onTouchNode(c||a.target||a.srcElement,"mouse")},f=b.isIE?a.document.documentElement:a.document;if(f)if(b.isIE){a.document.body.attachEvent("onmousedown",e);var g=function(a){a.srcElement.tagName.toLowerCase()!="#document"&&d.isTabNavigable(a.srcElement)?d._onFocusNode(c||a.srcElement):d._onTouchNode(c||a.srcElement)};f.attachEvent("onactivate",g);var h=function(a){d._onBlurNode(c||a.srcElement)};f.attachEvent("ondeactivate",h);return function(){a.document.detachEvent("onmousedown",
e);f.detachEvent("onactivate",g);f.detachEvent("ondeactivate",h);f=null}}else{f.body.addEventListener("mousedown",e,!0);var i=function(a){d._onFocusNode(c||a.target)};f.addEventListener("focus",i,!0);var j=function(a){d._onBlurNode(c||a.target)};f.addEventListener("blur",j,!0);return function(){f.body.removeEventListener("mousedown",e,!0);f.removeEventListener("focus",i,!0);f.removeEventListener("blur",j,!0);f=null}}},unregisterWin:function(a){a&&a()},_onBlurNode:function(){d._prevFocus=d._curFocus;
d._curFocus=null;if(!d._justMouseDowned)d._clearActiveWidgetsTimer&&clearTimeout(d._clearActiveWidgetsTimer),d._clearActiveWidgetsTimer=setTimeout(function(){delete d._clearActiveWidgetsTimer;d._setStack([]);d._prevFocus=null},100)},_onTouchNode:function(a,c){d._clearActiveWidgetsTimer&&(clearTimeout(d._clearActiveWidgetsTimer),delete d._clearActiveWidgetsTimer);var e=[];try{for(;a;){var f=b.attr(a,"dijitPopupParent");if(f)a=d.byId(f).domNode;else if(a.tagName&&a.tagName.toLowerCase()=="body"){if(a===
b.body())break;a=b.window.get(a.ownerDocument).frameElement}else{var g=a.getAttribute&&a.getAttribute("widgetId"),h=g&&d.byId(g);h&&!(c=="mouse"&&h.get("disabled"))&&e.unshift(g);a=a.parentNode}}}catch(i){}d._setStack(e,c)},_onFocusNode:function(a){if(a&&a.nodeType!=9&&(d._onTouchNode(a),a!=d._curFocus)){if(d._curFocus)d._prevFocus=d._curFocus;d._curFocus=a;b.publish("focusNode",[a])}},_setStack:function(a,c){var e=d._activeStack;d._activeStack=a;for(var f=0;f<Math.min(e.length,a.length);f++)if(e[f]!=
a[f])break;for(var g,h=e.length-1;h>=f;h--)if(g=d.byId(e[h]))g._focused=!1,g.set("focused",!1),g._hasBeenBlurred=!0,g._onBlur&&g._onBlur(c),b.publish("widgetBlur",[g,c]);for(h=f;h<a.length;h++)if(g=d.byId(a[h]))g._focused=!0,g.set("focused",!0),g._onFocus&&g._onFocus(c),b.publish("widgetFocus",[g,c])}});b.addOnLoad(function(){var a=d.registerWin(window);b.isIE&&b.addOnWindowUnload(function(){d.unregisterWin(a);a=null})});return d});
define("dojo/AdapterRegistry",["dojo"],function(b){b.AdapterRegistry=function(b){this.pairs=[];this.returnWrappers=b||!1};b.extend(b.AdapterRegistry,{register:function(b,a,c,e,f){this.pairs[f?"unshift":"push"]([b,a,c,e])},match:function(){for(var b=0;b<this.pairs.length;b++){var a=this.pairs[b];if(a[1].apply(this,arguments))return a[3]||this.returnWrappers?a[2]:a[2].apply(this,arguments)}throw Error("No match found");},unregister:function(b){for(var a=0;a<this.pairs.length;a++)if(this.pairs[a][0]==
b)return this.pairs.splice(a,1),!0;return!1}});return b.AdapterRegistry});
define("dijit/_base/place",["dojo","dijit","dojo/window","dojo/AdapterRegistry"],function(b,d){d.getViewport=function(){return b.window.getBox()};d.placeOnScreen=function(a,c,e,f){e=b.map(e,function(a){var b={corner:a,pos:{x:c.x,y:c.y}};f&&(b.pos.x+=a.charAt(1)=="L"?f.x:-f.x,b.pos.y+=a.charAt(0)=="T"?f.y:-f.y);return b});return d._place(a,e)};d._place=function(a,c,e,d){var g=b.window.getBox();(!a.parentNode||String(a.parentNode.tagName).toLowerCase()!="body")&&b.body().appendChild(a);var h=null;b.some(c,
function(c){var i=c.corner,l=c.pos,m=0,n={w:i.charAt(1)=="L"?g.l+g.w-l.x:l.x-g.l,h:i.charAt(1)=="T"?g.t+g.h-l.y:l.y-g.t};e&&(m=e(a,c.aroundCorner,i,n,d),m=typeof m=="undefined"?0:m);var o=a.style,p=o.display,r=o.visibility;o.visibility="hidden";o.display="";var q=b.marginBox(a);o.display=p;o.visibility=r;o=Math.max(g.l,i.charAt(1)=="L"?l.x:l.x-q.w);p=Math.max(g.t,i.charAt(0)=="T"?l.y:l.y-q.h);r=Math.min(g.l+g.w,i.charAt(1)=="L"?o+q.w:l.x);l=Math.min(g.t+g.h,i.charAt(0)=="T"?p+q.h:l.y);r-=o;l-=p;m+=
q.w-r+(q.h-l);if(h==null||m<h.overflow)h={corner:i,aroundCorner:c.aroundCorner,x:o,y:p,w:r,h:l,overflow:m,spaceAvailable:n};return!m});h.overflow&&e&&e(a,h.aroundCorner,h.corner,h.spaceAvailable,d);var c=b._isBodyLtr(),i=a.style;i.top=h.y+"px";i[c?"left":"right"]=(c?h.x:g.w-h.x-h.w)+"px";return h};d.placeOnScreenAroundNode=function(a,c,e,f){c=b.byId(c);c=b.position(c,!0);return d._placeOnScreenAroundRect(a,c.x,c.y,c.w,c.h,e,f)};d.placeOnScreenAroundRectangle=function(a,b,e,f){return d._placeOnScreenAroundRect(a,
b.x,b.y,b.width,b.height,e,f)};d._placeOnScreenAroundRect=function(a,b,e,f,g,h,i){var j=[],k;for(k in h)j.push({aroundCorner:k,corner:h[k],pos:{x:b+(k.charAt(1)=="L"?0:f),y:e+(k.charAt(0)=="T"?0:g)}});return d._place(a,j,i,{w:f,h:g})};d.placementRegistry=new b.AdapterRegistry;d.placementRegistry.register("node",function(a,b){return typeof b=="object"&&typeof b.offsetWidth!="undefined"&&typeof b.offsetHeight!="undefined"},d.placeOnScreenAroundNode);d.placementRegistry.register("rect",function(a,b){return typeof b==
"object"&&"x"in b&&"y"in b&&"width"in b&&"height"in b},d.placeOnScreenAroundRectangle);d.placeOnScreenAroundElement=function(a,b,e,f){return d.placementRegistry.match.apply(d.placementRegistry,arguments)};d.getPopupAroundAlignment=function(a,c){var e={};b.forEach(a,function(a){switch(a){case "after":e[c?"BR":"BL"]=c?"BL":"BR";break;case "before":e[c?"BL":"BR"]=c?"BR":"BL";break;case "below-alt":c=!c;case "below":e[c?"BL":"BR"]=c?"TL":"TR";e[c?"BR":"BL"]=c?"TR":"TL";break;case "above-alt":c=!c;default:e[c?
"TL":"TR"]=c?"BL":"BR",e[c?"TR":"TL"]=c?"BR":"BL"}});return e};return d});define("dijit/_base/scroll",["dojo","dijit","dojo/window"],function(b,d){d.scrollIntoView=function(a,c){b.window.scrollIntoView(a,c)};return d.scrollIntoView});
define("dojo/uacss",["dojo"],function(b){(function(){var d=b.doc.documentElement,a=b.isIE,c=b.isOpera,e=Math.floor,f=b.isFF,g=b.boxModel.replace(/-/,""),a={dj_ie:a,dj_ie6:e(a)==6,dj_ie7:e(a)==7,dj_ie8:e(a)==8,dj_ie9:e(a)==9,dj_quirks:b.isQuirks,dj_iequirks:a&&b.isQuirks,dj_opera:c,dj_khtml:b.isKhtml,dj_webkit:b.isWebKit,dj_safari:b.isSafari,dj_chrome:b.isChrome,dj_gecko:b.isMozilla,dj_ff3:e(f)==3};a["dj_"+g]=!0;var h="",i;for(i in a)a[i]&&(h+=i+" ");d.className=b.trim(d.className+" "+h);b._loaders.unshift(function(){if(!b._isBodyLtr()){var a=
"dj_rtl dijitRtl "+h.replace(/ /g,"-rtl ");d.className=b.trim(d.className+" "+a)}})})();return b});define("dijit/_base/sniff",["dojo","dijit","dojo/uacss"],function(b,d){return d});
define("dijit/_base/typematic",["dojo","dijit"],function(b,d){d.typematic={_fireEventAndReload:function(){this._timer=null;this._callback(++this._count,this._node,this._evt);this._currentTimeout=Math.max(this._currentTimeout<0?this._initialDelay:this._subsequentDelay>1?this._subsequentDelay:Math.round(this._currentTimeout*this._subsequentDelay),this._minDelay);this._timer=setTimeout(b.hitch(this,"_fireEventAndReload"),this._currentTimeout)},trigger:function(a,c,e,d,g,h,i,j){if(g!=this._obj)this.stop(),
this._initialDelay=i||500,this._subsequentDelay=h||0.9,this._minDelay=j||10,this._obj=g,this._evt=a,this._node=e,this._count=this._currentTimeout=-1,this._callback=b.hitch(c,d),this._fireEventAndReload(),this._evt=b.mixin({faux:!0},a)},stop:function(){if(this._timer)clearTimeout(this._timer),this._timer=null;if(this._obj)this._callback(-1,this._node,this._evt),this._obj=null},addKeyListener:function(a,c,e,f,g,h,i){if(c.keyCode)c.charOrCode=c.keyCode,b.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.",
"","2.0");else if(c.charCode)c.charOrCode=String.fromCharCode(c.charCode),b.deprecated("charCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");return[b.connect(a,"onkeypress",this,function(j){j.charOrCode==c.charOrCode&&(c.ctrlKey===void 0||c.ctrlKey==j.ctrlKey)&&(c.altKey===void 0||c.altKey==j.altKey)&&(c.metaKey===void 0||c.metaKey==(j.metaKey||!1))&&(c.shiftKey===void 0||c.shiftKey==j.shiftKey)?(b.stopEvent(j),d.typematic.trigger(j,e,a,
f,c,g,h,i)):d.typematic._obj==c&&d.typematic.stop()}),b.connect(a,"onkeyup",this,function(){d.typematic._obj==c&&d.typematic.stop()})]},addMouseListener:function(a,c,e,f,g,h){var i=b.connect;return[i(a,"mousedown",this,function(i){b.stopEvent(i);d.typematic.trigger(i,c,a,e,a,f,g,h)}),i(a,"mouseup",this,function(a){b.stopEvent(a);d.typematic.stop()}),i(a,"mouseout",this,function(a){b.stopEvent(a);d.typematic.stop()}),i(a,"mousemove",this,function(a){a.preventDefault()}),i(a,"dblclick",this,function(i){b.stopEvent(i);
b.isIE&&(d.typematic.trigger(i,c,a,e,a,f,g,h),setTimeout(b.hitch(this,d.typematic.stop),50))})]},addListener:function(a,b,e,d,g,h,i,j){return this.addKeyListener(b,e,d,g,h,i,j).concat(this.addMouseListener(a,d,g,h,i,j))}};return d.typematic});
define("dijit/_base/wai",["dojo","dijit"],function(b,d){d.wai={onload:function(){var a=b.create("div",{id:"a11yTestNode",style:{cssText:'border: 1px solid;border-color:red green;position: absolute;height: 5px;top: -999px;background-image: url("'+(b.config.blankGif||b.moduleUrl("dojo","resources/blank.gif"))+'");'}},b.body()),c=b.getComputedStyle(a);if(c){var e=c.backgroundImage;b[c.borderTopColor==c.borderRightColor||e!=null&&(e=="none"||e=="url(invalid-url:)")?"addClass":"removeClass"](b.body(),
"dijit_a11y");b.isIE?a.outerHTML="":b.body().removeChild(a)}}};(b.isIE||b.isMoz)&&b._loaders.unshift(d.wai.onload);b.mixin(d,{hasWaiRole:function(a,b){var e=this.getWaiRole(a);return b?e.indexOf(b)>-1:e.length>0},getWaiRole:function(a){return b.trim((b.attr(a,"role")||"").replace("wairole:",""))},setWaiRole:function(a,c){b.attr(a,"role",c)},removeWaiRole:function(a,c){var e=b.attr(a,"role");e&&(c?(e=b.trim((" "+e+" ").replace(" "+c+" "," ")),b.attr(a,"role",e)):a.removeAttribute("role"))},hasWaiState:function(a,
b){return a.hasAttribute?a.hasAttribute("aria-"+b):!!a.getAttribute("aria-"+b)},getWaiState:function(a,b){return a.getAttribute("aria-"+b)||""},setWaiState:function(a,b,e){a.setAttribute("aria-"+b,e)},removeWaiState:function(a,b){a.removeAttribute("aria-"+b)}});return d});define("dijit/_base/window",["dojo","dijit","dojo/window"],function(b,d){d.getDocumentWindow=function(a){return b.window.get(a)};return d});
define("dijit/_base/popup",["dojo","dijit","dijit/_base/focus","dijit/_base/place","dijit/_base/window"],function(b,d){d.popup={_stack:[],_beginZIndex:1E3,_idGen:1,_createWrapper:function(a){var c=a.declaredClass?a._popupWrapper:a.parentNode&&b.hasClass(a.parentNode,"dijitPopup"),e=a.domNode||a;if(!c&&(c=b.create("div",{"class":"dijitPopup",style:{display:"none"},role:"presentation"},b.body()),c.appendChild(e),e=e.style,e.display="",e.visibility="",e.position="",e.top="0px",a.declaredClass))a._popupWrapper=
c,b.connect(a,"destroy",function(){b.destroy(c);delete a._popupWrapper});return c},moveOffScreen:function(a){a=this._createWrapper(a);b.style(a,{visibility:"hidden",top:"-9999px",display:""})},hide:function(a){a=this._createWrapper(a);b.style(a,"display","none")},getTopPopup:function(){for(var a=this._stack,b=a.length-1;b>0&&a[b].parent===a[b-1].widget;b--);return a[b]},open:function(a){for(var c=this._stack,e=a.popup,f=a.orient||((a.parent?a.parent.isLeftToRight():b._isBodyLtr())?{BL:"TL",BR:"TR",
TL:"BL",TR:"BR"}:{BR:"TR",BL:"TL",TR:"BR",TL:"BL"}),g=a.around,h=a.around&&a.around.id?a.around.id+"_dropdown":"popup_"+this._idGen++;c.length&&(!a.parent||!b.isDescendant(a.parent.domNode,c[c.length-1].widget.domNode));)d.popup.close(c[c.length-1].widget);var i=this._createWrapper(e);b.attr(i,{id:h,style:{zIndex:this._beginZIndex+c.length},"class":"dijitPopup "+(e.baseClass||e["class"]||"").split(" ")[0]+"Popup",dijitPopupParent:a.parent?a.parent.id:""});if((b.isIE||b.isMoz)&&!e.bgIframe)e.bgIframe=
new d.BackgroundIframe(i);f=g?d.placeOnScreenAroundElement(i,g,f,e.orient?b.hitch(e,"orient"):null):d.placeOnScreen(i,a,f=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],a.padding);i.style.display="";i.style.visibility="visible";e.domNode.style.visibility="visible";g=[];g.push(b.connect(i,"onkeypress",this,function(c){if(c.charOrCode==b.keys.ESCAPE&&a.onCancel)b.stopEvent(c),a.onCancel();else if(c.charOrCode===b.keys.TAB&&(b.stopEvent(c),(c=this.getTopPopup())&&c.onCancel))c.onCancel()}));e.onCancel&&
g.push(b.connect(e,"onCancel",a.onCancel));g.push(b.connect(e,e.onExecute?"onExecute":"onChange",this,function(){var a=this.getTopPopup();if(a&&a.onExecute)a.onExecute()}));c.push({widget:e,parent:a.parent,onExecute:a.onExecute,onCancel:a.onCancel,onClose:a.onClose,handlers:g});if(e.onOpen)e.onOpen(f);return f},close:function(a){for(var c=this._stack;a&&b.some(c,function(b){return b.widget==a})||!a&&c.length;){var e=c.pop(),d=e.widget,g=e.onClose;if(d.onClose)d.onClose();b.forEach(e.handlers,b.disconnect);
d&&d.domNode&&this.hide(d);g&&g()}}};d._frames=new function(){var a=[];this.pop=function(){var c;a.length?(c=a.pop(),c.style.display=""):(b.isIE<9?(c="<iframe src='"+(b.config.dojoBlankHtmlUrl||b.moduleUrl("dojo","resources/blank.html")+""||'javascript:""')+"' style='position: absolute; left: 0px; top: 0px;z-index: -1; filter:Alpha(Opacity=\"0\");'>",c=b.doc.createElement(c)):(c=b.create("iframe"),c.src='javascript:""',c.className="dijitBackgroundIframe",b.style(c,"opacity",0.1)),c.tabIndex=-1,d.setWaiRole(c,
"presentation"));return c};this.push=function(b){b.style.display="none";a.push(b)}};d.BackgroundIframe=function(a){if(!a.id)throw Error("no id");if(b.isIE||b.isMoz){var c=this.iframe=d._frames.pop();a.appendChild(c);b.isIE<7||b.isQuirks?(this.resize(a),this._conn=b.connect(a,"onresize",this,function(){this.resize(a)})):b.style(c,{width:"100%",height:"100%"})}};b.extend(d.BackgroundIframe,{resize:function(a){this.iframe&&b.style(this.iframe,{width:a.offsetWidth+"px",height:a.offsetHeight+"px"})},destroy:function(){if(this._conn)b.disconnect(this._conn),
this._conn=null;this.iframe&&(d._frames.push(this.iframe),delete this.iframe)}});return d.popup});define("dijit/_base","dojo,dijit,dijit/_base/focus,dijit/_base/manager,dijit/_base/place,dijit/_base/popup,dijit/_base/scroll,dijit/_base/sniff,dijit/_base/typematic,dijit/_base/wai,dijit/_base/window".split(","),function(b,d){return d._base});
define("dijit/_Widget",["dojo","dijit","dijit/_WidgetBase","dijit/_base"],function(b,d){b.connect(b,"_connect",function(a,c){a&&b.isFunction(a._onConnect)&&a._onConnect(c)});d._connectOnUseEventHandler=function(){};d._lastKeyDownNode=null;b.isIE?function(){var a=function(a){d._lastKeyDownNode=a.srcElement};b.doc.attachEvent("onkeydown",a);b.addOnWindowUnload(function(){b.doc.detachEvent("onkeydown",a)})}():b.doc.addEventListener("keydown",function(a){d._lastKeyDownNode=a.target},!0);(function(){b.declare("dijit._Widget",
d._WidgetBase,{_deferredConnects:{onClick:"",onDblClick:"",onKeyDown:"",onKeyPress:"",onKeyUp:"",onMouseMove:"",onMouseDown:"",onMouseOut:"",onMouseOver:"",onMouseLeave:"",onMouseEnter:"",onMouseUp:""},onClick:d._connectOnUseEventHandler,onDblClick:d._connectOnUseEventHandler,onKeyDown:d._connectOnUseEventHandler,onKeyPress:d._connectOnUseEventHandler,onKeyUp:d._connectOnUseEventHandler,onMouseDown:d._connectOnUseEventHandler,onMouseMove:d._connectOnUseEventHandler,onMouseOut:d._connectOnUseEventHandler,
onMouseOver:d._connectOnUseEventHandler,onMouseLeave:d._connectOnUseEventHandler,onMouseEnter:d._connectOnUseEventHandler,onMouseUp:d._connectOnUseEventHandler,create:function(a,c){this._deferredConnects=b.clone(this._deferredConnects);for(var e in this.attributeMap)delete this._deferredConnects[e];for(e in this._deferredConnects)this[e]!==d._connectOnUseEventHandler&&delete this._deferredConnects[e];this.inherited(arguments);if(this.domNode)for(e in this.params)this._onConnect(e)},_onConnect:function(a){a in
this._deferredConnects&&(this.connect(this[this._deferredConnects[a]||"domNode"],a.toLowerCase(),a),delete this._deferredConnects[a])},focused:!1,isFocusable:function(){return this.focus&&b.style(this.domNode,"display")!="none"},onFocus:function(){},onBlur:function(){},_onFocus:function(){this.onFocus()},_onBlur:function(){this.onBlur()},setAttribute:function(a,c){b.deprecated(this.declaredClass+"::setAttribute(attr, value) is deprecated. Use set() instead.","","2.0");this.set(a,c)},attr:function(a,
c){if(b.config.isDebug){var e=arguments.callee._ach||(arguments.callee._ach={}),d=(arguments.callee.caller||"unknown caller").toString();e[d]||(b.deprecated(this.declaredClass+"::attr() is deprecated. Use get() or set() instead, called from "+d,"","2.0"),e[d]=!0)}return arguments.length>=2||typeof a==="object"?this.set.apply(this,arguments):this.get(a)},nodesWithKeyClick:["input","button"],connect:function(a,c,e){var f=b._connect,g=this.inherited(arguments,[a,c=="ondijitclick"?"onclick":c,e]);if(c==
"ondijitclick"&&b.indexOf(this.nodesWithKeyClick,a.nodeName.toLowerCase())==-1){var h=b.hitch(this,e);g.push(f(a,"onkeydown",this,function(c){if((c.keyCode==b.keys.ENTER||c.keyCode==b.keys.SPACE)&&!c.ctrlKey&&!c.shiftKey&&!c.altKey&&!c.metaKey)d._lastKeyDownNode=c.target,"openDropDown"in this&&a==this._buttonNode||c.preventDefault()}),f(a,"onkeyup",this,function(a){if((a.keyCode==b.keys.ENTER||a.keyCode==b.keys.SPACE)&&a.target==d._lastKeyDownNode&&!a.ctrlKey&&!a.shiftKey&&!a.altKey&&!a.metaKey)return d._lastKeyDownNode=
null,h(a)}))}return g},_onShow:function(){this.onShow()},onShow:function(){},onHide:function(){},onClose:function(){return!0}})})();return d._Widget});
define("dojo/string",["dojo"],function(b){b.getObject("string",!0,b);b.string.rep=function(b,a){if(a<=0||!b)return"";for(var c=[];;){a&1&&c.push(b);if(!(a>>=1))break;b+=b}return c.join("")};b.string.pad=function(d,a,c,e){c||(c="0");d=String(d);a=b.string.rep(c,Math.ceil((a-d.length)/c.length));return e?d+a:a+d};b.string.substitute=function(d,a,c,e){e=e||b.global;c=c?b.hitch(e,c):function(a){return a};return d.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(d,g,h){d=b.getObject(g,!1,a);h&&
(d=b.getObject(h,!1,e).call(e,d,g));return c(d,g).toString()})};b.string.trim=String.prototype.trim?b.trim:function(b){for(var b=b.replace(/^\s+/,""),a=b.length-1;a>=0;a--)if(/\S/.test(b.charAt(a))){b=b.substring(0,a+1);break}return b};return b.string});
define("dojo/date/stamp",["dojo"],function(b){b.getObject("date.stamp",!0,b);b.date.stamp.fromISOString=function(d,a){if(!b.date.stamp._isoRegExp)b.date.stamp._isoRegExp=/^(?:(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(.\d+)?)?((?:[+-](\d{2}):(\d{2}))|Z)?)?$/;var c=b.date.stamp._isoRegExp.exec(d),e=null;if(c){c.shift();c[1]&&c[1]--;c[6]&&(c[6]*=1E3);a&&(a=new Date(a),b.forEach(b.map("FullYear,Month,Date,Hours,Minutes,Seconds,Milliseconds".split(","),function(b){return a["get"+
b]()}),function(a,b){c[b]=c[b]||a}));e=new Date(c[0]||1970,c[1]||0,c[2]||1,c[3]||0,c[4]||0,c[5]||0,c[6]||0);c[0]<100&&e.setFullYear(c[0]||1970);var f=0,g=c[7]&&c[7].charAt(0);g!="Z"&&(f=(c[8]||0)*60+(Number(c[9])||0),g!="-"&&(f*=-1));g&&(f-=e.getTimezoneOffset());f&&e.setTime(e.getTime()+f*6E4)}return e};b.date.stamp.toISOString=function(b,a){var c=function(a){return a<10?"0"+a:a},a=a||{},e=[],f=a.zulu?"getUTC":"get",g="";a.selector!="time"&&(g=b[f+"FullYear"](),g=["0000".substr((g+"").length)+g,
c(b[f+"Month"]()+1),c(b[f+"Date"]())].join("-"));e.push(g);if(a.selector!="date"){g=[c(b[f+"Hours"]()),c(b[f+"Minutes"]()),c(b[f+"Seconds"]())].join(":");f=b[f+"Milliseconds"]();a.milliseconds&&(g+="."+(f<100?"0":"")+c(f));if(a.zulu)g+="Z";else if(a.selector!="time"){var f=b.getTimezoneOffset(),h=Math.abs(f);g+=(f>0?"-":"+")+c(Math.floor(h/60))+":"+c(h%60)}e.push(g)}return e.join("T")};return b.date.stamp});
define("dojo/parser",["dojo","dojo/date/stamp"],function(b){b.parser=new function(){function d(a,b){switch(b){case "string":return a;case "number":return a.length?Number(a):NaN;case "boolean":return typeof a=="boolean"?a:a.toLowerCase()!="false";case "function":e.isFunction(a)&&(a=a.toString(),a=e.trim(a.substring(a.indexOf("{")+1,a.length-1)));try{return a===""||a.search(/[^\w\.]+/i)!=-1?new Function(a):e.getObject(a,!1)||new Function(a)}catch(c){return new Function}case "array":return a?a.split(/\s*,\s*/):
[];case "date":switch(a){case "":return new Date("");case "now":return new Date;default:return e.date.stamp.fromISOString(a)}case "url":return e.baseUrl+a;default:return e.fromJson(a)}}function a(a,b){for(var c in a)if(c.charAt(0)!="_"&&!(c in f)){var d=b,g=c,m;m=a[c];m=e.isString(m)?"string":typeof m=="number"?"number":typeof m=="boolean"?"boolean":e.isFunction(m)?"function":e.isArray(m)?"array":m instanceof Date?"date":m instanceof e._Url?"url":"object";d[g]=m}return b}function c(b,c){var d=g[b];
if(d){if(!c&&!d.params)d.params=a(d.cls.prototype,{})}else{var d=e.getObject(b),f=null;if(!d)return null;c||(f=a(d.prototype,{}));d={cls:d,params:f}}return d}var e=b,f={},g={};e.connect(e,"extend",function(){g={}});this._functionFromScript=function(a,b){var c="",d="",f=a.getAttribute(b+"args")||a.getAttribute("args");f&&e.forEach(f.split(/\s*,\s*/),function(a,b){c+="var "+a+" = arguments["+b+"]; "});(f=a.getAttribute("with"))&&f.length&&e.forEach(f.split(/\s*,\s*/),function(a){c+="with("+a+"){";d+=
"}"});return new Function(c+a.innerHTML+d)};this.instantiate=function(a,f,g){var k=[],f=f||{},g=g||{},l=(g.scope||e._scopeName)+"Type",m="data-"+(g.scope||e._scopeName)+"-";e.forEach(a,function(a){if(a){var h,p,r,q,s,w;a.node?(h=a.node,p=a.type,w=a.fastpath,q=(r=a.clsInfo||p&&c(p,w))&&r.cls,s=a.scripts):(h=a,s=(q=(r=(p=l in f?f[l]:h.getAttribute(l))&&c(p))&&r.cls)&&(q._noScript||q.prototype._noScript)?[]:e.query("> script[type^='dojo/']",h));if(!r)throw Error("Could not load class '"+p);var t={};
g.defaults&&e._mixin(t,g.defaults);a.inherited&&e._mixin(t,a.inherited);if(w){if((r=h.getAttribute(m+"props"))&&r.length)try{r=e.fromJson.call(g.propsThis,"{"+r+"}"),e._mixin(t,r)}catch(x){throw Error(x.toString()+" in data-dojo-props='"+r+"'");}if(r=h.getAttribute(m+"attach-point"))t.dojoAttachPoint=r;if(r=h.getAttribute(m+"attach-event"))t.dojoAttachEvent=r;b.mixin(t,f)}else{var a=h.attributes,A;for(A in r.params)if((p=A in f?{value:f[A],specified:!0}:a.getNamedItem(A))&&(p.specified||b.isIE&&A.toLowerCase()==
"value")){p=p.value;switch(A){case "class":p="className"in f?f.className:h.className;break;case "style":p="style"in f?f.style:h.style&&h.style.cssText}w=r.params[A];t[A]=typeof p=="string"?d(p,w):p}}var K=[],z=[];e.forEach(s,function(a){h.removeChild(a);var b=a.getAttribute(m+"event")||a.getAttribute("event"),c=a.getAttribute("type"),a=e.parser._functionFromScript(a,m);b?c=="dojo/connect"?K.push({event:b,func:a}):t[b]=a:z.push(a)});var v=(s=q.markupFactory||q.prototype&&q.prototype.markupFactory)?
s(t,h,q):new q(t,h);k.push(v);(q=h.getAttribute(m+"id")||h.getAttribute("jsId"))&&e.setObject(q,v);e.forEach(K,function(a){e.connect(v,a.event,null,a.func)});e.forEach(z,function(a){a.call(v)})}});f._started||e.forEach(k,function(a){!g.noStart&&a&&b.isFunction(a.startup)&&!a._started&&(!a.getParent||!a.getParent())&&a.startup()});return k};this.parse=function(a,d){function f(a,e){var g=b.clone(a.inherited);b.forEach(["dir","lang"],function(b){var c=a.node.getAttribute(b);c&&(g[b]=c)});for(var h=a.clsInfo&&
!a.clsInfo.cls.prototype._noScript?a.scripts:null,k=!a.clsInfo||!a.clsInfo.cls.prototype.stopParser||d&&d.template,n=a.node.firstChild;n;n=n.nextSibling)if(n.nodeType==1){var o,A=k&&n.getAttribute(m+"type");o=A?A:k&&n.getAttribute(l);A=A==o;o?(o={type:o,fastpath:A,clsInfo:c(o,A),node:n,scripts:[],inherited:g},e.push(o),f(o,e)):h&&n.nodeName.toLowerCase()=="script"?(o=n.getAttribute("type"))&&/^dojo\/\w/i.test(o)&&h.push(n):k&&f({node:n,inherited:g},e)}}var g;!d&&a&&a.rootNode?(d=a,g=d.rootNode):g=
a;g=g?b.byId(g):b.body();var d=d||{},l=(d.scope||e._scopeName)+"Type",m="data-"+(d.scope||e._scopeName)+"-",n={};if(d&&d.inherited)for(var o in d.inherited)d.inherited[o]&&(n[o]=d.inherited[o]);o=[];f({node:g,inherited:n},o);return this.instantiate(o,d&&d.template?{template:!0}:null,d)}};(function(){var d=function(){b.config.parseOnLoad&&b.parser.parse()};b.getObject("dijit.wai.onload")===b._loaders[0]?b._loaders.splice(1,0,d):b._loaders.unshift(d)})();return b.parser});
define("dojo/cache",["dojo"],function(b){var d={};b.cache=function(a,c,e){if(typeof a=="string")var f=b.moduleUrl(a,c);else f=a,e=c;var f=f.toString(),g=e;e!=void 0&&!b.isString(e)&&(g="value"in e?e.value:void 0);e=e&&e.sanitize?!0:!1;if(typeof g=="string")g=d[f]=e?b.cache._sanitize(g):g;else if(g===null)delete d[f];else{if(!(f in d)){g=void 0;if(b.isFunction(require)&&b.isString(a))try{var h=(a?a.replace(/\./g,"/")+"/":"")+c,g=require("text!"+h)}catch(i){}typeof g==="undefined"&&(g=b._getText(f));
d[f]=e?b.cache._sanitize(g):g}g=d[f]}return g};b.cache._sanitize=function(a){if(a){var a=a.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,""),b=a.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);b&&(a=b[1])}else a="";return a};return b.cache});
define("dijit/_Templated","dojo,dijit,dijit/_Widget,dojo/string,dojo/parser,dojo/cache".split(","),function(b,d){b.declare("dijit._Templated",null,{templateString:null,templatePath:null,widgetsInTemplate:!1,_skipNodeCache:!1,_earlyTemplatedStartup:!1,constructor:function(){this._attachPoints=[];this._attachEvents=[]},_stringRepl:function(a){var c=this.declaredClass,e=this;return b.string.substitute(a,this,function(a,d){d.charAt(0)=="!"&&(a=b.getObject(d.substr(1),!1,e));if(typeof a=="undefined")throw Error(c+
" template:"+d);return a==null?"":d.charAt(0)=="!"?a:a.toString().replace(/"/g,"&quot;")},this)},buildRendering:function(){var a=d._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache),c;if(b.isString(a)){if(c=b._toDom(this._stringRepl(a)),c.nodeType!=1)throw Error("Invalid template: "+a);}else c=a.cloneNode(!0);this.domNode=c;this.inherited(arguments);this._attachTemplateNodes(c);if(this.widgetsInTemplate)a=this._startupWidgets=b.parser.parse(c,{noStart:!this._earlyTemplatedStartup,
template:!0,inherited:{dir:this.dir,lang:this.lang},propsThis:this,scope:"dojo"}),this._supportingWidgets=d.findWidgets(c),this._attachTemplateNodes(a,function(a,b){return a[b]});this._fillContent(this.srcNodeRef)},_fillContent:function(a){var b=this.containerNode;if(a&&b)for(;a.hasChildNodes();)b.appendChild(a.firstChild)},_attachTemplateNodes:function(a,c){for(var c=c||function(a,b){return a.getAttribute(b)},e=b.isArray(a)?a:a.all||a.getElementsByTagName("*"),f=b.isArray(a)?0:-1;f<e.length;f++){var g=
f==-1?a:e[f];if(!this.widgetsInTemplate||!c(g,"dojoType")&&!c(g,"data-dojo-type")){var h=c(g,"dojoAttachPoint")||c(g,"data-dojo-attach-point");if(h)for(var i=h.split(/\s*,\s*/);h=i.shift();)b.isArray(this[h])?this[h].push(g):this[h]=g,this._attachPoints.push(h);if(h=c(g,"dojoAttachEvent")||c(g,"data-dojo-attach-event"))for(var i=h.split(/\s*,\s*/),j=b.trim;h=i.shift();)if(h){var k=null;h.indexOf(":")!=-1?(k=h.split(":"),h=j(k[0]),k=j(k[1])):h=j(h);k||(k=h);this._attachEvents.push(this.connect(g,h,
k))}(h=c(g,"waiRole"))&&d.setWaiRole(g,h);(h=c(g,"waiState"))&&b.forEach(h.split(/\s*,\s*/),function(a){a.indexOf("-")!=-1&&(a=a.split("-"),d.setWaiState(g,a[0],a[1]))})}}},startup:function(){b.forEach(this._startupWidgets,function(a){a&&!a._started&&a.startup&&a.startup()});this.inherited(arguments)},destroyRendering:function(){b.forEach(this._attachPoints,function(a){delete this[a]},this);this._attachPoints=[];b.forEach(this._attachEvents,this.disconnect,this);this._attachEvents=[];this.inherited(arguments)}});
d._Templated._templateCache={};d._Templated.getCachedTemplate=function(a,c,e){var f=d._Templated._templateCache,g=c||a,h=f[g];if(h){try{if(!h.ownerDocument||h.ownerDocument==b.doc)return h}catch(i){}b.destroy(h)}c||(c=b.cache(a,{sanitize:!0}));c=b.string.trim(c);if(e||c.match(/\$\{([^\}]+)\}/g))return f[g]=c;else{a=b._toDom(c);if(a.nodeType!=1)throw Error("Invalid template: "+c);return f[g]=a}};b.isIE&&b.addOnWindowUnload(function(){var a=d._Templated._templateCache,c;for(c in a){var e=a[c];typeof e==
"object"&&b.destroy(e);delete a[c]}});b.extend(d._Widget,{dojoAttachEvent:"",dojoAttachPoint:"",waiRole:"",waiState:""});return d._Templated});
define("dijit/_CssStateMixin",["dojo","dijit"],function(b,d){b.declare("dijit._CssStateMixin",[],{cssStateNodes:{},hovering:!1,active:!1,_applyAttributes:function(){this.inherited(arguments);b.forEach(["onmouseenter","onmouseleave","onmousedown"],function(a){this.connect(this.domNode,a,"_cssMouseEvent")},this);b.forEach("disabled,readOnly,checked,selected,focused,state,hovering,active".split(","),function(a){this.watch(a,b.hitch(this,"_setStateClass"))},this);for(var a in this.cssStateNodes)this._trackMouseState(this[a],
this.cssStateNodes[a]);this._setStateClass()},_cssMouseEvent:function(a){if(!this.disabled)switch(a.type){case "mouseenter":case "mouseover":this._set("hovering",!0);this._set("active",this._mouseDown);break;case "mouseleave":case "mouseout":this._set("hovering",!1);this._set("active",!1);break;case "mousedown":this._set("active",!0);this._mouseDown=!0;var c=this.connect(b.body(),"onmouseup",function(){this._mouseDown=!1;this._set("active",!1);this.disconnect(c)})}},_setStateClass:function(){function a(a){c=
c.concat(b.map(c,function(b){return b+a}),"dijit"+a)}var c=this.baseClass.split(" ");this.isLeftToRight()||a("Rtl");this.checked&&a("Checked");this.state&&a(this.state);this.selected&&a("Selected");this.disabled?a("Disabled"):this.readOnly?a("ReadOnly"):this.active?a("Active"):this.hovering&&a("Hover");this._focused&&a("Focused");var e=this.stateNode||this.domNode,d={};b.forEach(e.className.split(" "),function(a){d[a]=!0});"_stateClasses"in this&&b.forEach(this._stateClasses,function(a){delete d[a]});
b.forEach(c,function(a){d[a]=!0});var g=[],h;for(h in d)g.push(h);e.className=g.join(" ");this._stateClasses=c},_trackMouseState:function(a,c){function e(){var e="disabled"in i&&i.disabled||"readonly"in i&&i.readonly;b.toggleClass(a,c+"Hover",d&&!g&&!e);b.toggleClass(a,c+"Active",g&&!e);b.toggleClass(a,c+"Focused",h&&!e)}var d=!1,g=!1,h=!1,i=this,j=b.hitch(this,"connect",a);j("onmouseenter",function(){d=!0;e()});j("onmouseleave",function(){g=d=!1;e()});j("onmousedown",function(){g=!0;e()});j("onmouseup",
function(){g=!1;e()});j("onfocus",function(){h=!0;e()});j("onblur",function(){h=!1;e()});this.watch("disabled",e);this.watch("readOnly",e)}});return d._CssStateMixin});
define("dijit/form/_FormWidget","dojo,dijit,dojo/window,dijit/_Widget,dijit/_Templated,dijit/_CssStateMixin".split(","),function(b,d){b.declare("dijit.form._FormWidget",[d._Widget,d._Templated,d._CssStateMixin],{name:"",alt:"",value:"",type:"text",tabIndex:"0",disabled:!1,intermediateChanges:!1,scrollOnFocus:!0,attributeMap:b.delegate(d._Widget.prototype.attributeMap,{value:"focusNode",id:"focusNode",tabIndex:"focusNode",alt:"focusNode",title:"focusNode"}),postMixInProperties:function(){this.nameAttrSetting=
this.name?'name="'+this.name.replace(/'/g,"&quot;")+'"':"";this.inherited(arguments)},postCreate:function(){this.inherited(arguments);this.connect(this.domNode,"onmousedown","_onMouseDown")},_setDisabledAttr:function(a){this._set("disabled",a);b.attr(this.focusNode,"disabled",a);this.valueNode&&b.attr(this.valueNode,"disabled",a);d.setWaiState(this.focusNode,"disabled",a);a?(this._set("hovering",!1),this._set("active",!1),a="tabIndex"in this.attributeMap?this.attributeMap.tabIndex:"focusNode",b.forEach(b.isArray(a)?
a:[a],function(a){a=this[a];b.isWebKit||d.hasDefaultTabStop(a)?a.setAttribute("tabIndex","-1"):a.removeAttribute("tabIndex")},this)):this.tabIndex!=""&&this.focusNode.setAttribute("tabIndex",this.tabIndex)},setDisabled:function(a){b.deprecated("setDisabled("+a+") is deprecated. Use set('disabled',"+a+") instead.","","2.0");this.set("disabled",a)},_onFocus:function(a){this.scrollOnFocus&&b.window.scrollIntoView(this.domNode);this.inherited(arguments)},isFocusable:function(){return!this.disabled&&this.focusNode&&
b.style(this.domNode,"display")!="none"},focus:function(){this.disabled||d.focus(this.focusNode)},compare:function(a,b){return typeof a=="number"&&typeof b=="number"?isNaN(a)&&isNaN(b)?0:a-b:a>b?1:a<b?-1:0},onChange:function(){},_onChangeActive:!1,_handleOnChange:function(a,c){if(this._lastValueReported==void 0&&(c===null||!this._onChangeActive))this._resetValue=this._lastValueReported=a;this._pendingOnChange=this._pendingOnChange||typeof a!=typeof this._lastValueReported||this.compare(a,this._lastValueReported)!=
0;if((this.intermediateChanges||c||c===void 0)&&this._pendingOnChange)if(this._lastValueReported=a,this._pendingOnChange=!1,this._onChangeActive)this._onChangeHandle&&clearTimeout(this._onChangeHandle),this._onChangeHandle=setTimeout(b.hitch(this,function(){this._onChangeHandle=null;this.onChange(a)}),0)},create:function(){this.inherited(arguments);this._onChangeActive=!0},destroy:function(){this._onChangeHandle&&(clearTimeout(this._onChangeHandle),this.onChange(this._lastValueReported));this.inherited(arguments)},
setValue:function(a){b.deprecated("dijit.form._FormWidget:setValue("+a+") is deprecated.  Use set('value',"+a+") instead.","","2.0");this.set("value",a)},getValue:function(){b.deprecated(this.declaredClass+"::getValue() is deprecated. Use get('value') instead.","","2.0");return this.get("value")},_onMouseDown:function(a){if(!a.ctrlKey&&b.mouseButtons.isLeft(a)&&this.isFocusable())var c=this.connect(b.body(),"onmouseup",function(){this.isFocusable()&&this.focus();this.disconnect(c)})}});b.declare("dijit.form._FormValueWidget",
d.form._FormWidget,{readOnly:!1,attributeMap:b.delegate(d.form._FormWidget.prototype.attributeMap,{value:"",readOnly:"focusNode"}),_setReadOnlyAttr:function(a){b.attr(this.focusNode,"readOnly",a);d.setWaiState(this.focusNode,"readonly",a);this._set("readOnly",a)},postCreate:function(){this.inherited(arguments);if(b.isIE<9||b.isIE&&b.isQuirks)this.connect(this.focusNode||this.domNode,"onkeydown",this._onKeyDown);if(this._resetValue===void 0)this._lastValueReported=this._resetValue=this.value},_setValueAttr:function(a,
b){this._handleOnChange(a,b)},_handleOnChange:function(a,b){this._set("value",a);this.inherited(arguments)},undo:function(){this._setValueAttr(this._lastValueReported,!1)},reset:function(){this._hasBeenBlurred=!1;this._setValueAttr(this._resetValue,!0)},_onKeyDown:function(a){if(a.keyCode==b.keys.ESCAPE&&!a.ctrlKey&&!a.altKey&&!a.metaKey){var c;if(b.isIE)a.preventDefault(),c=document.createEventObject(),c.keyCode=b.keys.ESCAPE,c.shiftKey=a.shiftKey,a.srcElement.fireEvent("onkeypress",c)}},_layoutHackIE7:function(){if(b.isIE==
7)for(var a=this.domNode,c=a.parentNode,e=a.firstChild||a,d=e.style.filter,g=this;c&&c.clientHeight==0;)(function(){var a=g.connect(c,"onscroll",function(){g.disconnect(a);e.style.filter=(new Date).getMilliseconds();setTimeout(function(){e.style.filter=d},0)})})(),c=c.parentNode}});return d.form._FormWidget});
define("dijit/form/TextBox",["dojo","dijit","text!dijit/form/templates/TextBox.html","dijit/form/_FormWidget"],function(b,d){b.declare("dijit.form.TextBox",d.form._FormValueWidget,{trim:!1,uppercase:!1,lowercase:!1,propercase:!1,maxLength:"",selectOnClick:!1,placeHolder:"",templateString:b.cache("dijit.form","templates/TextBox.html"),_singleNodeTemplate:'<input class="dijit dijitReset dijitLeft dijitInputField" dojoAttachPoint="textbox,focusNode" autocomplete="off" type="${type}" ${!nameAttrSetting} />',
_buttonInputDisabled:b.isIE?"disabled":"",baseClass:"dijitTextBox",attributeMap:b.delegate(d.form._FormValueWidget.prototype.attributeMap,{maxLength:"focusNode"}),postMixInProperties:function(){var a=this.type.toLowerCase();if(this.templateString&&this.templateString.toLowerCase()=="input"||(a=="hidden"||a=="file")&&this.templateString==d.form.TextBox.prototype.templateString)this.templateString=this._singleNodeTemplate;this.inherited(arguments)},_setPlaceHolderAttr:function(a){this._set("placeHolder",
a);if(!this._phspan)this._attachPoints.push("_phspan"),this._phspan=b.create("span",{className:"dijitPlaceHolder dijitInputField"},this.textbox,"after");this._phspan.innerHTML="";this._phspan.appendChild(document.createTextNode(a));this._updatePlaceHolder()},_updatePlaceHolder:function(){if(this._phspan)this._phspan.style.display=this.placeHolder&&!this._focused&&!this.textbox.value?"":"none"},_getValueAttr:function(){return this.parse(this.get("displayedValue"),this.constraints)},_setValueAttr:function(a,
b,e){var d;a!==void 0&&(d=this.filter(a),typeof e!="string"&&(e=d!==null&&(typeof d!="number"||!isNaN(d))?this.filter(this.format(d,this.constraints)):""));if(e!=null&&e!=void 0&&(typeof e!="number"||!isNaN(e))&&this.textbox.value!=e)this.textbox.value=e,this._set("displayedValue",this.get("displayedValue"));this._updatePlaceHolder();this.inherited(arguments,[d,b])},displayedValue:"",getDisplayedValue:function(){b.deprecated(this.declaredClass+"::getDisplayedValue() is deprecated. Use set('displayedValue') instead.",
"","2.0");return this.get("displayedValue")},_getDisplayedValueAttr:function(){return this.filter(this.textbox.value)},setDisplayedValue:function(a){b.deprecated(this.declaredClass+"::setDisplayedValue() is deprecated. Use set('displayedValue', ...) instead.","","2.0");this.set("displayedValue",a)},_setDisplayedValueAttr:function(a){a===null||a===void 0?a="":typeof a!="string"&&(a=String(a));this.textbox.value=a;this._setValueAttr(this.get("value"),void 0);this._set("displayedValue",this.get("displayedValue"))},
format:function(a){return a==null||a==void 0?"":a.toString?a.toString():a},parse:function(a){return a},_refreshState:function(){},_onInput:function(a){if(a&&a.type&&/key/i.test(a.type)&&a.keyCode)switch(a.keyCode){case b.keys.SHIFT:case b.keys.ALT:case b.keys.CTRL:case b.keys.TAB:return}if(this.intermediateChanges){var c=this;setTimeout(function(){c._handleOnChange(c.get("value"),!1)},0)}this._refreshState();this._set("displayedValue",this.get("displayedValue"))},postCreate:function(){b.isIE&&setTimeout(b.hitch(this,
function(){var a=b.getComputedStyle(this.domNode);if(a&&(a=a.fontFamily)){var c=this.domNode.getElementsByTagName("INPUT");if(c)for(var e=0;e<c.length;e++)c[e].style.fontFamily=a}}),0);this.textbox.setAttribute("value",this.textbox.value);this.inherited(arguments);b.isMoz||b.isOpera?this.connect(this.textbox,"oninput","_onInput"):(this.connect(this.textbox,"onkeydown","_onInput"),this.connect(this.textbox,"onkeyup","_onInput"),this.connect(this.textbox,"onpaste","_onInput"),this.connect(this.textbox,
"oncut","_onInput"))},_blankValue:"",filter:function(a){if(a===null)return this._blankValue;if(typeof a!="string")return a;this.trim&&(a=b.trim(a));this.uppercase&&(a=a.toUpperCase());this.lowercase&&(a=a.toLowerCase());this.propercase&&(a=a.replace(/[^\s]+/g,function(a){return a.substring(0,1).toUpperCase()+a.substring(1)}));return a},_setBlurValue:function(){this._setValueAttr(this.get("value"),!0)},_onBlur:function(a){if(!this.disabled){this._setBlurValue();this.inherited(arguments);this._selectOnClickHandle&&
this.disconnect(this._selectOnClickHandle);if(this.selectOnClick&&b.isMoz)this.textbox.selectionStart=this.textbox.selectionEnd=void 0;this._updatePlaceHolder()}},_onFocus:function(a){if(!this.disabled&&!this.readOnly){if(this.selectOnClick&&a=="mouse")this._selectOnClickHandle=this.connect(this.domNode,"onmouseup",function(){this.disconnect(this._selectOnClickHandle);var a;b.isIE?(a=b.doc.selection.createRange(),a=a.parentElement()==this.textbox&&a.text.length==0):a=this.textbox.selectionStart==
this.textbox.selectionEnd;a&&d.selectInputText(this.textbox)});this._updatePlaceHolder();this.inherited(arguments);this._refreshState()}},reset:function(){this.textbox.value="";this.inherited(arguments)}});d.selectInputText=function(a,c,e){var f=b.global,g=b.doc,a=b.byId(a);isNaN(c)&&(c=0);isNaN(e)&&(e=a.value?a.value.length:0);d.focus(a);g.selection&&b.body().createTextRange?a.createTextRange&&(a=a.createTextRange(),a.collapse(!0),a.moveStart("character",-99999),a.moveStart("character",c),a.moveEnd("character",
e-c),a.select()):f.getSelection&&a.setSelectionRange&&a.setSelectionRange(c,e)};return d.form.TextBox});define("dijit/form/nls/validate",{root:{invalidMessage:"The value entered is not valid.",missingMessage:"This value is required.",rangeMessage:"This value is out of range."},zh:!0,"zh-tw":!0,tr:!0,th:!0,sv:!0,sl:!0,sk:!0,ru:!0,ro:!0,pt:!0,"pt-pt":!0,pl:!0,nl:!0,nb:!0,ko:!0,kk:!0,ja:!0,it:!0,hu:!0,he:!0,fr:!0,fi:!0,es:!0,el:!0,de:!0,da:!0,cs:!0,ca:!0,ar:!0});
define("orion/PageUtil",[],function(){return{matchResourceParameters:function(b){var b=b||window.location.toString(),d={resource:""},a=b.indexOf("#");if(a!==-1&&(b=b.substring(a+1),b.length!==0)){b=b.split(",");d.resource=decodeURIComponent(b[0]);for(a=1;a<b.length;a++){var c=b[a].split("="),e=decodeURIComponent(c[0]),c=c.length===2?decodeURIComponent(c[1]):null;c!==null&&e!=="resource"&&(d[e]=c)}}return d}}});
define("orion/navigationUtils",["dojo"],function(b){function d(c,e,d,g){!a&&c&&(d?(c.push({domNode:e,widget:d,onClick:g}),b.attr(d,"tabIndex",-1)):(c.push({domNode:e}),b.attr(e,"tabIndex",-1),b.style(e,"outline","none")))}var a=navigator.userAgent.indexOf("iPad")!==-1;return{addNavGrid:function(a,b,f,g,h){a&&(a=a.getGridNavHolder(b,!0))&&d(a,f,g,h)},generateNavGrid:d,removeNavGrid:function(a,b){if(a)for(var d=0;d<a.length;d++)if(a[d].domNode===b){a.splice(d,1);break}}}});
define("text!dijit/templates/Menu.html",[],function(){return'<table class="dijit dijitMenu dijitMenuPassive dijitReset dijitMenuTable" role="menu" tabIndex="${tabIndex}" dojoAttachEvent="onkeypress:_onKeyPress" cellspacing="0">\n\t<tbody class="dijitReset" dojoAttachPoint="containerNode"></tbody>\n</table>'});
define("dijit/_Container",["dojo","dijit"],function(b,d){b.declare("dijit._Container",null,{isContainer:!0,buildRendering:function(){this.inherited(arguments);if(!this.containerNode)this.containerNode=this.domNode},addChild:function(a,c){var e=this.containerNode;if(c&&typeof c=="number"){var d=this.getChildren();if(d&&d.length>=c)e=d[c-1].domNode,c="after"}b.place(a.domNode,e,c);this._started&&!a._started&&a.startup()},removeChild:function(a){typeof a=="number"&&(a=this.getChildren()[a]);if(a)(a=
a.domNode)&&a.parentNode&&a.parentNode.removeChild(a)},hasChildren:function(){return this.getChildren().length>0},destroyDescendants:function(a){b.forEach(this.getChildren(),function(b){b.destroyRecursive(a)})},_getSiblingOfChild:function(a,b){var e=a.domNode,f=b>0?"nextSibling":"previousSibling";do e=e[f];while(e&&(e.nodeType!=1||!d.byNode(e)));return e&&d.byNode(e)},getIndexOfChild:function(a){return b.indexOf(this.getChildren(),a)},startup:function(){this._started||(b.forEach(this.getChildren(),
function(a){a.startup()}),this.inherited(arguments))}});return d._Container});
define("dijit/_KeyNavContainer",["dojo","dijit","dijit/_Container"],function(b,d){b.declare("dijit._KeyNavContainer",d._Container,{tabIndex:"0",_keyNavCodes:{},connectKeyNavHandlers:function(a,c){var e=this._keyNavCodes={},d=b.hitch(this,this.focusPrev),g=b.hitch(this,this.focusNext);b.forEach(a,function(a){e[a]=d});b.forEach(c,function(a){e[a]=g});e[b.keys.HOME]=b.hitch(this,"focusFirstChild");e[b.keys.END]=b.hitch(this,"focusLastChild");this.connect(this.domNode,"onkeypress","_onContainerKeypress");
this.connect(this.domNode,"onfocus","_onContainerFocus")},startupKeyNavChildren:function(){b.forEach(this.getChildren(),b.hitch(this,"_startupChild"))},addChild:function(a,b){d._KeyNavContainer.superclass.addChild.apply(this,arguments);this._startupChild(a)},focus:function(){this.focusFirstChild()},focusFirstChild:function(){var a=this._getFirstFocusableChild();a&&this.focusChild(a)},focusLastChild:function(){var a=this._getLastFocusableChild();a&&this.focusChild(a)},focusNext:function(){this.focusChild(this._getNextFocusableChild(this.focusedChild,
1))},focusPrev:function(){this.focusChild(this._getNextFocusableChild(this.focusedChild,-1),!0)},focusChild:function(a,b){this.focusedChild&&a!==this.focusedChild&&this._onChildBlur(this.focusedChild);a.set("tabIndex",this.tabIndex);a.focus(b?"end":"start");this._set("focusedChild",a)},_startupChild:function(a){a.set("tabIndex","-1");this.connect(a,"_onFocus",function(){a.set("tabIndex",this.tabIndex)});this.connect(a,"_onBlur",function(){a.set("tabIndex","-1")})},_onContainerFocus:function(a){a.target===
this.domNode&&(this.focusFirstChild(),b.attr(this.domNode,"tabIndex","-1"))},_onBlur:function(a){this.tabIndex&&b.attr(this.domNode,"tabIndex",this.tabIndex);this.inherited(arguments)},_onContainerKeypress:function(a){if(!a.ctrlKey&&!a.altKey){var c=this._keyNavCodes[a.charOrCode];c&&(c(),b.stopEvent(a))}},_onChildBlur:function(){},_getFirstFocusableChild:function(){return this._getNextFocusableChild(null,1)},_getLastFocusableChild:function(){return this._getNextFocusableChild(null,-1)},_getNextFocusableChild:function(a,
b){a&&(a=this._getSiblingOfChild(a,b));for(var e=this.getChildren(),d=0;d<e.length;d++){a||(a=e[b>0?0:e.length-1]);if(a.isFocusable())return a;a=this._getSiblingOfChild(a,b)}return null}});return d._KeyNavContainer});define("text!dijit/templates/CheckedMenuItem.html",[],function(){return'<tr class="dijitReset dijitMenuItem" dojoAttachPoint="focusNode" role="menuitemcheckbox" tabIndex="-1"\n\t\tdojoAttachEvent="onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick">\n\t<td class="dijitReset dijitMenuItemIconCell" role="presentation">\n\t\t<img src="${_blankGif}" alt="" class="dijitMenuItemIcon dijitCheckedMenuItemIcon" dojoAttachPoint="iconNode"/>\n\t\t<span class="dijitCheckedMenuItemIconChar">&#10003;</span>\n\t</td>\n\t<td class="dijitReset dijitMenuItemLabel" colspan="2" dojoAttachPoint="containerNode,labelNode"></td>\n\t<td class="dijitReset dijitMenuItemAccelKey" style="display: none" dojoAttachPoint="accelKeyNode"></td>\n\t<td class="dijitReset dijitMenuArrowCell" role="presentation">&nbsp;</td>\n</tr>'});
define("text!dijit/form/templates/Button.html",[],function(){return'<span class="dijit dijitReset dijitInline"\n\t><span class="dijitReset dijitInline dijitButtonNode"\n\t\tdojoAttachEvent="ondijitclick:_onButtonClick"\n\t\t><span class="dijitReset dijitStretch dijitButtonContents"\n\t\t\tdojoAttachPoint="titleNode,focusNode"\n\t\t\trole="button" aria-labelledby="${id}_label"\n\t\t\t><span class="dijitReset dijitInline dijitIcon" dojoAttachPoint="iconNode"></span\n\t\t\t><span class="dijitReset dijitToggleButtonIconChar">&#x25CF;</span\n\t\t\t><span class="dijitReset dijitInline dijitButtonText"\n\t\t\t\tid="${id}_label"\n\t\t\t\tdojoAttachPoint="containerNode"\n\t\t\t></span\n\t\t></span\n\t></span\n\t><input ${!nameAttrSetting} type="${type}" value="${value}" class="dijitOffScreen" tabIndex="-1"\n\t\tdojoAttachPoint="valueNode"\n/></span>'});
define("text!dijit/form/templates/DropDownButton.html",[],function(){return'<span class="dijit dijitReset dijitInline"\n\t><span class=\'dijitReset dijitInline dijitButtonNode\'\n\t\tdojoAttachEvent="ondijitclick:_onButtonClick" dojoAttachPoint="_buttonNode"\n\t\t><span class="dijitReset dijitStretch dijitButtonContents"\n\t\t\tdojoAttachPoint="focusNode,titleNode,_arrowWrapperNode"\n\t\t\trole="button" aria-haspopup="true" aria-labelledby="${id}_label"\n\t\t\t><span class="dijitReset dijitInline dijitIcon"\n\t\t\t\tdojoAttachPoint="iconNode"\n\t\t\t></span\n\t\t\t><span class="dijitReset dijitInline dijitButtonText"\n\t\t\t\tdojoAttachPoint="containerNode,_popupStateNode"\n\t\t\t\tid="${id}_label"\n\t\t\t></span\n\t\t\t><span class="dijitReset dijitInline dijitArrowButtonInner"></span\n\t\t\t><span class="dijitReset dijitInline dijitArrowButtonChar">&#9660;</span\n\t\t></span\n\t></span\n\t><input ${!nameAttrSetting} type="${type}" value="${value}" class="dijitOffScreen" tabIndex="-1"\n\t\tdojoAttachPoint="valueNode"\n/></span>'});
define("text!dijit/form/templates/ComboButton.html",[],function(){return'<table class="dijit dijitReset dijitInline dijitLeft"\n\tcellspacing=\'0\' cellpadding=\'0\' role="presentation"\n\t><tbody role="presentation"><tr role="presentation"\n\t\t><td class="dijitReset dijitStretch dijitButtonNode" dojoAttachPoint="buttonNode" dojoAttachEvent="ondijitclick:_onButtonClick,onkeypress:_onButtonKeyPress"\n\t\t><div id="${id}_button" class="dijitReset dijitButtonContents"\n\t\t\tdojoAttachPoint="titleNode"\n\t\t\trole="button" aria-labelledby="${id}_label"\n\t\t\t><div class="dijitReset dijitInline dijitIcon" dojoAttachPoint="iconNode" role="presentation"></div\n\t\t\t><div class="dijitReset dijitInline dijitButtonText" id="${id}_label" dojoAttachPoint="containerNode" role="presentation"></div\n\t\t></div\n\t\t></td\n\t\t><td id="${id}_arrow" class=\'dijitReset dijitRight dijitButtonNode dijitArrowButton\'\n\t\t\tdojoAttachPoint="_popupStateNode,focusNode,_buttonNode"\n\t\t\tdojoAttachEvent="onkeypress:_onArrowKeyPress"\n\t\t\ttitle="${optionsTitle}"\n\t\t\trole="button" aria-haspopup="true"\n\t\t\t><div class="dijitReset dijitArrowButtonInner" role="presentation"></div\n\t\t\t><div class="dijitReset dijitArrowButtonChar" role="presentation">&#9660;</div\n\t\t></td\n\t\t><td style="display:none !important;"\n\t\t\t><input ${!nameAttrSetting} type="${type}" value="${value}" dojoAttachPoint="valueNode"\n\t\t/></td></tr></tbody\n></table>'});
define("dijit/_HasDropDown",["dojo","dijit","dijit/_Widget"],function(b,d){b.declare("dijit._HasDropDown",null,{_buttonNode:null,_arrowWrapperNode:null,_popupStateNode:null,_aroundNode:null,dropDown:null,autoWidth:!0,forceWidth:!1,maxHeight:0,dropDownPosition:["below","above"],_stopClickEvents:!0,_onDropDownMouseDown:function(a){if(!this.disabled&&!this.readOnly)b.stopEvent(a),this._docHandler=this.connect(b.doc,"onmouseup","_onDropDownMouseUp"),this.toggleDropDown()},_onDropDownMouseUp:function(a){a&&
this._docHandler&&this.disconnect(this._docHandler);var c=this.dropDown,e=!1;if(a&&this._opened){var f=b.position(this._buttonNode,!0);if(!(a.pageX>=f.x&&a.pageX<=f.x+f.w)||!(a.pageY>=f.y&&a.pageY<=f.y+f.h)){for(f=a.target;f&&!e;)b.hasClass(f,"dijitPopup")?e=!0:f=f.parentNode;if(e){f=a.target;if(c.onItemClick){for(var g;f&&!(g=d.byNode(f));)f=f.parentNode;if(g&&g.onClick&&g.getParent)g.getParent().onItemClick(g,a)}return}}}this._opened&&c.focus&&c.autoFocus!==!1&&window.setTimeout(b.hitch(c,"focus"),
1)},_onDropDownClick:function(a){this._stopClickEvents&&b.stopEvent(a)},buildRendering:function(){this.inherited(arguments);this._buttonNode=this._buttonNode||this.focusNode||this.domNode;this._popupStateNode=this._popupStateNode||this.focusNode||this._buttonNode;var a={after:this.isLeftToRight()?"Right":"Left",before:this.isLeftToRight()?"Left":"Right",above:"Up",below:"Down",left:"Left",right:"Right"}[this.dropDownPosition[0]]||this.dropDownPosition[0]||"Down";b.addClass(this._arrowWrapperNode||
this._buttonNode,"dijit"+a+"ArrowButton")},postCreate:function(){this.inherited(arguments);this.connect(this._buttonNode,"onmousedown","_onDropDownMouseDown");this.connect(this._buttonNode,"onclick","_onDropDownClick");this.connect(this.focusNode,"onkeypress","_onKey");this.connect(this.focusNode,"onkeyup","_onKeyUp")},destroy:function(){this.dropDown&&(this.dropDown._destroyed||this.dropDown.destroyRecursive(),delete this.dropDown);this.inherited(arguments)},_onKey:function(a){if(!this.disabled&&
!this.readOnly){var c=this.dropDown,e=a.target;if(c&&this._opened&&c.handleKey&&c.handleKey(a)===!1)b.stopEvent(a);else if(c&&this._opened&&a.charOrCode==b.keys.ESCAPE)this.closeDropDown(),b.stopEvent(a);else if(!this._opened&&(a.charOrCode==b.keys.DOWN_ARROW||(a.charOrCode==b.keys.ENTER||a.charOrCode==" ")&&((e.tagName||"").toLowerCase()!=="input"||e.type&&e.type.toLowerCase()!=="text")))this._toggleOnKeyUp=!0,b.stopEvent(a)}},_onKeyUp:function(){if(this._toggleOnKeyUp){delete this._toggleOnKeyUp;
this.toggleDropDown();var a=this.dropDown;a&&a.focus&&setTimeout(b.hitch(a,"focus"),1)}},_onBlur:function(){this.closeDropDown(d._curFocus&&this.dropDown&&b.isDescendant(d._curFocus,this.dropDown.domNode));this.inherited(arguments)},isLoaded:function(){return!0},loadDropDown:function(a){a()},toggleDropDown:function(){!this.disabled&&!this.readOnly&&(this._opened?this.closeDropDown():this.isLoaded()?this.openDropDown():this.loadDropDown(b.hitch(this,"openDropDown")))},openDropDown:function(){var a=
this.dropDown,c=a.domNode,e=this._aroundNode||this.domNode,f=this;if(!this._preparedNode){this._preparedNode=!0;if(c.style.width)this._explicitDDWidth=!0;if(c.style.height)this._explicitDDHeight=!0}if(this.maxHeight||this.forceWidth||this.autoWidth){var g={display:"",visibility:"hidden"};if(!this._explicitDDWidth)g.width="";if(!this._explicitDDHeight)g.height="";b.style(c,g);g=this.maxHeight;if(g==-1)var g=b.window.getBox(),h=b.position(e,!1),g=Math.floor(Math.max(h.y,g.h-(h.y+h.h)));a.startup&&!a._started&&
a.startup();d.popup.moveOffScreen(a);var h=b._getMarginSize(c),i=g&&h.h>g;b.style(c,{overflowX:"hidden",overflowY:i?"auto":"hidden"});i?(h.h=g,"w"in h&&(h.w+=16)):delete h.h;this.forceWidth?h.w=e.offsetWidth:this.autoWidth?h.w=Math.max(h.w,e.offsetWidth):delete h.w;b.isFunction(a.resize)?a.resize(h):b.marginBox(c,h)}a=d.popup.open({parent:this,popup:a,around:e,orient:d.getPopupAroundAlignment(this.dropDownPosition&&this.dropDownPosition.length?this.dropDownPosition:["below"],this.isLeftToRight()),
onExecute:function(){f.closeDropDown(!0)},onCancel:function(){f.closeDropDown(!0)},onClose:function(){b.attr(f._popupStateNode,"popupActive",!1);b.removeClass(f._popupStateNode,"dijitHasDropDownOpen");f._opened=!1}});b.attr(this._popupStateNode,"popupActive","true");b.addClass(f._popupStateNode,"dijitHasDropDownOpen");this._opened=!0;return a},closeDropDown:function(a){if(this._opened)a&&this.focus(),d.popup.close(this.dropDown),this._opened=!1}});return d._HasDropDown});
define("dijit/form/Button","dojo,dijit,text!dijit/form/templates/Button.html,text!dijit/form/templates/DropDownButton.html,text!dijit/form/templates/ComboButton.html,dijit/form/_FormWidget,dijit/_Container,dijit/_HasDropDown".split(","),function(b,d){b.declare("dijit.form.Button",d.form._FormWidget,{label:"",showLabel:!0,iconClass:"",type:"button",baseClass:"dijitButton",templateString:b.cache("dijit.form","templates/Button.html"),attributeMap:b.delegate(d.form._FormWidget.prototype.attributeMap,
{value:"valueNode"}),_onClick:function(a){if(this.disabled)return!1;this._clicked();return this.onClick(a)},_onButtonClick:function(a){if(this._onClick(a)===!1)a.preventDefault();else if(this.type=="submit"&&!(this.valueNode||this.focusNode).form)for(var b=this.domNode;b.parentNode;b=b.parentNode){var e=d.byNode(b);if(e&&typeof e._onSubmit=="function"){e._onSubmit(a);break}}else this.valueNode&&(this.valueNode.click(),a.preventDefault())},buildRendering:function(){this.inherited(arguments);b.setSelectable(this.focusNode,
!1)},_fillContent:function(a){a&&(!this.params||!("label"in this.params))&&this.set("label",a.innerHTML)},_setShowLabelAttr:function(a){this.containerNode&&b.toggleClass(this.containerNode,"dijitDisplayNone",!a);this._set("showLabel",a)},onClick:function(){return!0},_clicked:function(){},setLabel:function(a){b.deprecated("dijit.form.Button.setLabel() is deprecated.  Use set('label', ...) instead.","","2.0");this.set("label",a)},_setLabelAttr:function(a){this._set("label",a);this.containerNode.innerHTML=
a;if(this.showLabel==!1&&!this.params.title)this.titleNode.title=b.trim(this.containerNode.innerText||this.containerNode.textContent||"")},_setIconClassAttr:function(a){b.replaceClass(this.iconNode,a||"dijitNoIcon",this.iconClass||"dijitNoIcon");this._set("iconClass",a)}});b.declare("dijit.form.DropDownButton",[d.form.Button,d._Container,d._HasDropDown],{baseClass:"dijitDropDownButton",templateString:b.cache("dijit.form","templates/DropDownButton.html"),_fillContent:function(){if(this.srcNodeRef){var a=
b.query("*",this.srcNodeRef);d.form.DropDownButton.superclass._fillContent.call(this,a[0]);this.dropDownContainer=this.srcNodeRef}},startup:function(){if(!this._started){if(!this.dropDown&&this.dropDownContainer){var a=b.query("[widgetId]",this.dropDownContainer)[0];this.dropDown=d.byNode(a);delete this.dropDownContainer}this.dropDown&&d.popup.hide(this.dropDown);this.inherited(arguments)}},isLoaded:function(){var a=this.dropDown;return!!a&&(!a.href||a.isLoaded)},loadDropDown:function(){var a=this.dropDown;
if(a)if(this.isLoaded())this.openDropDown();else{var c=b.connect(a,"onLoad",this,function(){b.disconnect(c);this.openDropDown()});a.refresh()}},isFocusable:function(){return this.inherited(arguments)&&!this._mouseDown}});b.declare("dijit.form.ComboButton",d.form.DropDownButton,{templateString:b.cache("dijit.form","templates/ComboButton.html"),attributeMap:b.mixin(b.clone(d.form.Button.prototype.attributeMap),{id:"",tabIndex:["focusNode","titleNode"],title:"titleNode"}),optionsTitle:"",baseClass:"dijitComboButton",
cssStateNodes:{buttonNode:"dijitButtonNode",titleNode:"dijitButtonContents",_popupStateNode:"dijitDownArrowButton"},_focusedNode:null,_onButtonKeyPress:function(a){if(a.charOrCode==b.keys[this.isLeftToRight()?"RIGHT_ARROW":"LEFT_ARROW"])d.focus(this._popupStateNode),b.stopEvent(a)},_onArrowKeyPress:function(a){if(a.charOrCode==b.keys[this.isLeftToRight()?"LEFT_ARROW":"RIGHT_ARROW"])d.focus(this.titleNode),b.stopEvent(a)},focus:function(a){this.disabled||d.focus(a=="start"?this.titleNode:this._popupStateNode)}});
b.declare("dijit.form.ToggleButton",d.form.Button,{baseClass:"dijitToggleButton",checked:!1,attributeMap:b.mixin(b.clone(d.form.Button.prototype.attributeMap),{checked:"focusNode"}),_clicked:function(){this.set("checked",!this.checked)},_setCheckedAttr:function(a,c){this._set("checked",a);b.attr(this.focusNode||this.domNode,"checked",a);d.setWaiState(this.focusNode||this.domNode,"pressed",a);this._handleOnChange(a,c)},setChecked:function(a){b.deprecated("setChecked("+a+") is deprecated. Use set('checked',"+
a+") instead.","","2.0");this.set("checked",a)},reset:function(){this._hasBeenBlurred=!1;this.set("checked",this.params.checked||!1)}});return d.form.Button});define("dijit/form/DropDownButton",["dojo","dijit","dijit/form/Button"],function(b,d){return d.form.DropDownButton});define("text!dijit/templates/MenuItem.html",[],function(){return'<tr class="dijitReset dijitMenuItem" dojoAttachPoint="focusNode" role="menuitem" tabIndex="-1"\n\t\tdojoAttachEvent="onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick">\n\t<td class="dijitReset dijitMenuItemIconCell" role="presentation">\n\t\t<img src="${_blankGif}" alt="" class="dijitIcon dijitMenuItemIcon" dojoAttachPoint="iconNode"/>\n\t</td>\n\t<td class="dijitReset dijitMenuItemLabel" colspan="2" dojoAttachPoint="containerNode"></td>\n\t<td class="dijitReset dijitMenuItemAccelKey" style="display: none" dojoAttachPoint="accelKeyNode"></td>\n\t<td class="dijitReset dijitMenuArrowCell" role="presentation">\n\t\t<div dojoAttachPoint="arrowWrapper" style="visibility: hidden">\n\t\t\t<img src="${_blankGif}" alt="" class="dijitMenuExpand"/>\n\t\t\t<span class="dijitMenuExpandA11y">+</span>\n\t\t</div>\n\t</td>\n</tr>'});
define("dijit/_Contained",["dojo","dijit"],function(b,d){b.declare("dijit._Contained",null,{getParent:function(){var a=d.getEnclosingWidget(this.domNode.parentNode);return a&&a.isContainer?a:null},_getSibling:function(a){var b=this.domNode;do b=b[a+"Sibling"];while(b&&b.nodeType!=1);return b&&d.byNode(b)},getPreviousSibling:function(){return this._getSibling("previous")},getNextSibling:function(){return this._getSibling("next")},getIndexInParent:function(){var a=this.getParent();return!a||!a.getIndexOfChild?
-1:a.getIndexOfChild(this)}});return d._Contained});
define("dijit/MenuItem","dojo,dijit,text!dijit/templates/MenuItem.html,dijit/_Widget,dijit/_Templated,dijit/_Contained,dijit/_CssStateMixin".split(","),function(b,d){b.declare("dijit.MenuItem",[d._Widget,d._Templated,d._Contained,d._CssStateMixin],{templateString:b.cache("dijit","templates/MenuItem.html"),attributeMap:b.delegate(d._Widget.prototype.attributeMap,{label:{node:"containerNode",type:"innerHTML"},iconClass:{node:"iconNode",type:"class"}}),baseClass:"dijitMenuItem",label:"",iconClass:"",
accelKey:"",disabled:!1,_fillContent:function(a){a&&!("label"in this.params)&&this.set("label",a.innerHTML)},buildRendering:function(){this.inherited(arguments);var a=this.id+"_text";b.attr(this.containerNode,"id",a);this.accelKeyNode&&(b.attr(this.accelKeyNode,"id",this.id+"_accel"),a+=" "+this.id+"_accel");d.setWaiState(this.domNode,"labelledby",a);b.setSelectable(this.domNode,!1)},_onHover:function(){this.getParent().onItemHover(this)},_onUnhover:function(){this.getParent().onItemUnhover(this);
this._set("hovering",!1)},_onClick:function(a){this.getParent().onItemClick(this,a);b.stopEvent(a)},onClick:function(){},focus:function(){try{b.isIE==8&&this.containerNode.focus(),d.focus(this.focusNode)}catch(a){}},_onFocus:function(){this._setSelected(!0);this.getParent()._onItemFocus(this);this.inherited(arguments)},_setSelected:function(a){b.toggleClass(this.domNode,"dijitMenuItemSelected",a)},setLabel:function(a){b.deprecated("dijit.MenuItem.setLabel() is deprecated.  Use set('label', ...) instead.",
"","2.0");this.set("label",a)},setDisabled:function(a){b.deprecated("dijit.Menu.setDisabled() is deprecated.  Use set('disabled', bool) instead.","","2.0");this.set("disabled",a)},_setDisabledAttr:function(a){d.setWaiState(this.focusNode,"disabled",a?"true":"false");this._set("disabled",a)},_setAccelKeyAttr:function(a){this.accelKeyNode.style.display=a?"":"none";this.accelKeyNode.innerHTML=a;b.attr(this.containerNode,"colSpan",a?"1":"2");this._set("accelKey",a)}});return d.MenuItem});
define("dijit/CheckedMenuItem",["dojo","dijit","text!dijit/templates/CheckedMenuItem.html","dijit/MenuItem"],function(b,d){b.declare("dijit.CheckedMenuItem",d.MenuItem,{templateString:b.cache("dijit","templates/CheckedMenuItem.html"),checked:!1,_setCheckedAttr:function(a){b.toggleClass(this.domNode,"dijitCheckedMenuItemChecked",a);d.setWaiState(this.domNode,"checked",a);this._set("checked",a)},onChange:function(){},_onClick:function(a){this.disabled||(this.set("checked",!this.checked),this.onChange(this.checked));
this.inherited(arguments)}});return d.CheckedMenuItem});
define("dijit/PopupMenuItem",["dojo","dijit","dijit/MenuItem"],function(b,d){b.declare("dijit.PopupMenuItem",d.MenuItem,{_fillContent:function(){if(this.srcNodeRef){var a=b.query("*",this.srcNodeRef);d.PopupMenuItem.superclass._fillContent.call(this,a[0]);this.dropDownContainer=this.srcNodeRef}},startup:function(){if(!this._started){this.inherited(arguments);if(!this.popup){var a=b.query("[widgetId]",this.dropDownContainer)[0];this.popup=d.byNode(a)}b.body().appendChild(this.popup.domNode);this.popup.startup();
this.popup.domNode.style.display="none";this.arrowWrapper&&b.style(this.arrowWrapper,"visibility","");d.setWaiState(this.focusNode,"haspopup","true")}},destroyDescendants:function(){this.popup&&(this.popup._destroyed||this.popup.destroyRecursive(),delete this.popup);this.inherited(arguments)}});return d.PopupMenuItem});define("text!dijit/templates/MenuSeparator.html",[],function(){return'<tr class="dijitMenuSeparator">\n\t<td class="dijitMenuSeparatorIconCell">\n\t\t<div class="dijitMenuSeparatorTop"></div>\n\t\t<div class="dijitMenuSeparatorBottom"></div>\n\t</td>\n\t<td colspan="3" class="dijitMenuSeparatorLabelCell">\n\t\t<div class="dijitMenuSeparatorTop dijitMenuSeparatorLabel"></div>\n\t\t<div class="dijitMenuSeparatorBottom"></div>\n\t</td>\n</tr>'});
define("dijit/MenuSeparator","dojo,dijit,text!dijit/templates/MenuSeparator.html,dijit/_Widget,dijit/_Templated,dijit/_Contained".split(","),function(b,d){b.declare("dijit.MenuSeparator",[d._Widget,d._Templated,d._Contained],{templateString:b.cache("dijit","templates/MenuSeparator.html"),buildRendering:function(){this.inherited(arguments);b.setSelectable(this.domNode,!1)},isFocusable:function(){return!1}});return d.MenuSeparator});
define("dijit/Menu","dojo,dijit,text!dijit/templates/Menu.html,dojo/window,dijit/_Widget,dijit/_KeyNavContainer,dijit/_Templated,dijit/MenuItem,dijit/PopupMenuItem,dijit/CheckedMenuItem,dijit/MenuSeparator".split(","),function(b,d){b.declare("dijit._MenuBase",[d._Widget,d._Templated,d._KeyNavContainer],{parentMenu:null,popupDelay:500,startup:function(){this._started||(b.forEach(this.getChildren(),function(a){a.startup()}),this.startupKeyNavChildren(),this.inherited(arguments))},onExecute:function(){},
onCancel:function(){},_moveToPopup:function(a){this.focusedChild&&this.focusedChild.popup&&!this.focusedChild.disabled?this.focusedChild._onClick(a):(a=this._getTopMenu())&&a._isMenuBar&&a.focusNext()},_onPopupHover:function(){if(this.currentPopup&&this.currentPopup._pendingClose_timer){var a=this.currentPopup.parentMenu;a.focusedChild&&a.focusedChild._setSelected(!1);a.focusedChild=this.currentPopup.from_item;a.focusedChild._setSelected(!0);this._stopPendingCloseTimer(this.currentPopup)}},onItemHover:function(a){if(this.isActive&&
(this.focusChild(a),this.focusedChild.popup&&!this.focusedChild.disabled&&!this.hover_timer))this.hover_timer=setTimeout(b.hitch(this,"_openPopup"),this.popupDelay);this.focusedChild&&this.focusChild(a);this._hoveredChild=a},_onChildBlur:function(a){this._stopPopupTimer();a._setSelected(!1);var b=a.popup;if(b)this._stopPendingCloseTimer(b),b._pendingClose_timer=setTimeout(function(){b._pendingClose_timer=null;if(b.parentMenu)b.parentMenu.currentPopup=null;d.popup.close(b)},this.popupDelay)},onItemUnhover:function(a){this.isActive&&
this._stopPopupTimer();if(this._hoveredChild==a)this._hoveredChild=null},_stopPopupTimer:function(){if(this.hover_timer)clearTimeout(this.hover_timer),this.hover_timer=null},_stopPendingCloseTimer:function(a){if(a._pendingClose_timer)clearTimeout(a._pendingClose_timer),a._pendingClose_timer=null},_stopFocusTimer:function(){if(this._focus_timer)clearTimeout(this._focus_timer),this._focus_timer=null},_getTopMenu:function(){for(var a=this;a.parentMenu;a=a.parentMenu);return a},onItemClick:function(a,
b){typeof this.isShowingNow=="undefined"&&this._markActive();this.focusChild(a);if(a.disabled)return!1;a.popup?this._openPopup():(this.onExecute(),a.onClick(b))},_openPopup:function(){this._stopPopupTimer();var a=this.focusedChild;if(a){var c=a.popup;if(!c.isShowingNow){this.currentPopup&&(this._stopPendingCloseTimer(this.currentPopup),d.popup.close(this.currentPopup));c.parentMenu=this;c.from_item=a;var e=this;d.popup.open({parent:this,popup:c,around:a.domNode,orient:this._orient||(this.isLeftToRight()?
{TR:"TL",TL:"TR",BR:"BL",BL:"BR"}:{TL:"TR",TR:"TL",BL:"BR",BR:"BL"}),onCancel:function(){e.focusChild(a);e._cleanUp();a._setSelected(!0);e.focusedChild=a},onExecute:b.hitch(this,"_cleanUp")});this.currentPopup=c;c.connect(c.domNode,"onmouseenter",b.hitch(e,"_onPopupHover"));if(c.focus)c._focus_timer=setTimeout(b.hitch(c,function(){this._focus_timer=null;this.focus()}),0)}}},_markActive:function(){this.isActive=!0;b.replaceClass(this.domNode,"dijitMenuActive","dijitMenuPassive")},onOpen:function(){this.isShowingNow=
!0;this._markActive()},_markInactive:function(){this.isActive=!1;b.replaceClass(this.domNode,"dijitMenuPassive","dijitMenuActive")},onClose:function(){this._stopFocusTimer();this._markInactive();this.isShowingNow=!1;this.parentMenu=null},_closeChild:function(){this._stopPopupTimer();if(this.currentPopup)d._curFocus&&b.isDescendant(d._curFocus,this.currentPopup.domNode)&&this.focusedChild.focusNode.focus(),d.popup.close(this.currentPopup),this.currentPopup=null;if(this.focusedChild)this.focusedChild._setSelected(!1),
this.focusedChild._onUnhover(),this.focusedChild=null},_onItemFocus:function(a){this._hoveredChild&&this._hoveredChild!=a&&this._hoveredChild._onUnhover()},_onBlur:function(){this._cleanUp();this.inherited(arguments)},_cleanUp:function(){this._closeChild();typeof this.isShowingNow=="undefined"&&this._markInactive()}});b.declare("dijit.Menu",d._MenuBase,{constructor:function(){this._bindings=[]},templateString:b.cache("dijit","templates/Menu.html"),baseClass:"dijitMenu",targetNodeIds:[],contextMenuForWindow:!1,
leftClickToOpen:!1,refocus:!0,postCreate:function(){this.contextMenuForWindow?this.bindDomNode(b.body()):b.forEach(this.targetNodeIds,this.bindDomNode,this);var a=b.keys,c=this.isLeftToRight();this._openSubMenuKey=c?a.RIGHT_ARROW:a.LEFT_ARROW;this._closeSubMenuKey=c?a.LEFT_ARROW:a.RIGHT_ARROW;this.connectKeyNavHandlers([a.UP_ARROW],[a.DOWN_ARROW])},_onKeyPress:function(a){if(!a.ctrlKey&&!a.altKey)switch(a.charOrCode){case this._openSubMenuKey:this._moveToPopup(a);b.stopEvent(a);break;case this._closeSubMenuKey:if(this.parentMenu)if(this.parentMenu._isMenuBar)this.parentMenu.focusPrev();
else this.onCancel(!1);else b.stopEvent(a)}},_iframeContentWindow:function(a){return b.window.get(this._iframeContentDocument(a))||this._iframeContentDocument(a).__parent__||a.name&&b.doc.frames[a.name]||null},_iframeContentDocument:function(a){return a.contentDocument||a.contentWindow&&a.contentWindow.document||a.name&&b.doc.frames[a.name]&&b.doc.frames[a.name].document||null},bindDomNode:function(a){var a=b.byId(a),c;if(a.tagName.toLowerCase()=="iframe"){var e=a,d=this._iframeContentWindow(e);c=
b.withGlobal(d,b.body)}else c=a==b.body()?b.doc.documentElement:a;var g={node:a,iframe:e};b.attr(a,"_dijitMenu"+this.id,this._bindings.push(g));var h=b.hitch(this,function(a){return[b.connect(a,this.leftClickToOpen?"onclick":"oncontextmenu",this,function(a){b.stopEvent(a);this._scheduleOpen(a.target,e,{x:a.pageX,y:a.pageY})}),b.connect(a,"onkeydown",this,function(a){a.shiftKey&&a.keyCode==b.keys.F10&&(b.stopEvent(a),this._scheduleOpen(a.target,e))})]});g.connects=c?h(c):[];if(e)g.onloadHandler=b.hitch(this,
function(){var a=this._iframeContentWindow(e);c=b.withGlobal(a,b.body);g.connects=h(c)}),e.addEventListener?e.addEventListener("load",g.onloadHandler,!1):e.attachEvent("onload",g.onloadHandler)},unBindDomNode:function(a){var c;try{c=b.byId(a)}catch(e){return}a="_dijitMenu"+this.id;if(c&&b.hasAttr(c,a)){var d=b.attr(c,a)-1,g=this._bindings[d];b.forEach(g.connects,b.disconnect);var h=g.iframe;h&&(h.removeEventListener?h.removeEventListener("load",g.onloadHandler,!1):h.detachEvent("onload",g.onloadHandler));
b.removeAttr(c,a);delete this._bindings[d]}},_scheduleOpen:function(a,c,e){if(!this._openTimer)this._openTimer=setTimeout(b.hitch(this,function(){delete this._openTimer;this._openMyself({target:a,iframe:c,coords:e})}),1)},_openMyself:function(a){function c(){k.refocus&&d.focus(l);d.popup.close(k)}var e=a.target,f=a.iframe;if(a=a.coords){if(f){var e=b.position(f,!0),g=this._iframeContentWindow(f),g=b.withGlobal(g,"_docScroll",b),h=b.getComputedStyle(f),i=b._toPixelValue,j=(b.isIE&&b.isQuirks?0:i(f,
h.paddingLeft))+(b.isIE&&b.isQuirks?i(f,h.borderLeftWidth):0),f=(b.isIE&&b.isQuirks?0:i(f,h.paddingTop))+(b.isIE&&b.isQuirks?i(f,h.borderTopWidth):0);a.x+=e.x+j-g.x;a.y+=e.y+f-g.y}}else a=b.position(e,!0),a.x+=10,a.y+=10;var k=this,l=d.getFocus(this);d.popup.open({popup:this,x:a.x,y:a.y,onExecute:c,onCancel:c,orient:this.isLeftToRight()?"L":"R"});this.focus();this._onBlur=function(){this.inherited("_onBlur",arguments);d.popup.close(this)}},uninitialize:function(){b.forEach(this._bindings,function(a){a&&
this.unBindDomNode(a.node)},this);this.inherited(arguments)}});return d.Menu});define("text!dijit/templates/Tooltip.html",[],function(){return'<div class="dijitTooltip dijitTooltipLeft" id="dojoTooltip"\n\t><div class="dijitTooltipContainer dijitTooltipContents" dojoAttachPoint="containerNode" role=\'alert\'></div\n\t><div class="dijitTooltipConnector" dojoAttachPoint="connectorNode"></div\n></div>'});
define("dijit/Tooltip",["dojo","dijit","dijit/_Widget","dijit/_Templated","text!dijit/templates/Tooltip.html"],function(b,d){b.declare("dijit._MasterTooltip",[d._Widget,d._Templated],{duration:d.defaultDuration,templateString:b.cache("dijit","templates/Tooltip.html"),postCreate:function(){b.body().appendChild(this.domNode);this.bgIframe=new d.BackgroundIframe(this.domNode);this.fadeIn=b.fadeIn({node:this.domNode,duration:this.duration,onEnd:b.hitch(this,"_onShow")});this.fadeOut=b.fadeOut({node:this.domNode,
duration:this.duration,onEnd:b.hitch(this,"_onHide")})},show:function(a,c,e,f){if(!(this.aroundNode&&this.aroundNode===c))this.domNode.width="auto",this.fadeOut.status()=="playing"?this._onDeck=arguments:(this.containerNode.innerHTML=a,d.placeOnScreenAroundElement(this.domNode,c,d.getPopupAroundAlignment(e&&e.length?e:d.Tooltip.defaultPosition,!f),b.hitch(this,"orient")),b.style(this.domNode,"opacity",0),this.fadeIn.play(),this.isShowingNow=!0,this.aroundNode=c)},orient:function(a,c,e,d,g){this.connectorNode.style.top=
"";var h=d.w-this.connectorNode.offsetWidth;a.className="dijitTooltip "+{"BL-TL":"dijitTooltipBelow dijitTooltipABLeft","TL-BL":"dijitTooltipAbove dijitTooltipABLeft","BR-TR":"dijitTooltipBelow dijitTooltipABRight","TR-BR":"dijitTooltipAbove dijitTooltipABRight","BR-BL":"dijitTooltipRight","BL-BR":"dijitTooltipLeft"}[c+"-"+e];this.domNode.style.width="auto";var i=b.contentBox(this.domNode),j=Math.min(Math.max(h,1),i.w),k=j<i.w;this.domNode.style.width=j+"px";if(k&&(this.containerNode.style.overflow=
"auto",k=this.containerNode.scrollWidth,this.containerNode.style.overflow="visible",k>j))k=k+b.style(this.domNode,"paddingLeft")+b.style(this.domNode,"paddingRight"),this.domNode.style.width=k+"px";e.charAt(0)=="B"&&c.charAt(0)=="B"?(a=b.marginBox(a),c=this.connectorNode.offsetHeight,a.h>d.h?(this.connectorNode.style.top=d.h-g.h/2-c/2+"px",this.connectorNode.style.bottom=""):(this.connectorNode.style.bottom=Math.min(Math.max(g.h/2-c/2,0),a.h-c)+"px",this.connectorNode.style.top="")):(this.connectorNode.style.top=
"",this.connectorNode.style.bottom="");return Math.max(0,i.w-h)},_onShow:function(){if(b.isIE)this.domNode.style.filter=""},hide:function(a){if(this._onDeck&&this._onDeck[1]==a)this._onDeck=null;else if(this.aroundNode===a)this.fadeIn.stop(),this.isShowingNow=!1,this.aroundNode=null,this.fadeOut.play()},_onHide:function(){this.domNode.style.cssText="";this.containerNode.innerHTML="";if(this._onDeck)this.show.apply(this,this._onDeck),this._onDeck=null}});d.showTooltip=function(a,b,e,f){if(!d._masterTT)d._masterTT=
new d._MasterTooltip;return d._masterTT.show(a,b,e,f)};d.hideTooltip=function(a){if(!d._masterTT)d._masterTT=new d._MasterTooltip;return d._masterTT.hide(a)};b.declare("dijit.Tooltip",d._Widget,{label:"",showDelay:400,connectId:[],position:[],_setConnectIdAttr:function(a){b.forEach(this._connections||[],function(a){b.forEach(a,b.hitch(this,"disconnect"))},this);var c=b.isArrayLike(a)?a:a?[a]:[];this._connections=b.map(c,function(a){return(a=b.byId(a))?[this.connect(a,"onmouseenter","_onTargetMouseEnter"),
this.connect(a,"onmouseleave","_onTargetMouseLeave"),this.connect(a,"onfocus","_onTargetFocus"),this.connect(a,"onblur","_onTargetBlur")]:[]},this);this._set("connectId",a);this._connectIds=c},addTarget:function(a){a=a.id||a;b.indexOf(this._connectIds,a)==-1&&this.set("connectId",this._connectIds.concat(a))},removeTarget:function(a){a=b.indexOf(this._connectIds,a.id||a);a>=0&&(this._connectIds.splice(a,1),this.set("connectId",this._connectIds))},buildRendering:function(){this.inherited(arguments);
b.addClass(this.domNode,"dijitTooltipData")},startup:function(){this.inherited(arguments);var a=this.connectId;b.forEach(b.isArrayLike(a)?a:[a],this.addTarget,this)},_onTargetMouseEnter:function(a){this._onHover(a)},_onTargetMouseLeave:function(a){this._onUnHover(a)},_onTargetFocus:function(a){this._focus=!0;this._onHover(a)},_onTargetBlur:function(a){this._focus=!1;this._onUnHover(a)},_onHover:function(a){if(!this._showTimer){var c=a.target;this._showTimer=setTimeout(b.hitch(this,function(){this.open(c)}),
this.showDelay)}},_onUnHover:function(){this._focus||(this._showTimer&&(clearTimeout(this._showTimer),delete this._showTimer),this.close())},open:function(a){this._showTimer&&(clearTimeout(this._showTimer),delete this._showTimer);d.showTooltip(this.label||this.domNode.innerHTML,a,this.position,!this.isLeftToRight());this._connectNode=a;this.onShow(a,this.position)},close:function(){this._connectNode&&(d.hideTooltip(this._connectNode),delete this._connectNode,this.onHide());this._showTimer&&(clearTimeout(this._showTimer),
delete this._showTimer)},onShow:function(){},onHide:function(){},uninitialize:function(){this.close();this.inherited(arguments)}});d.Tooltip.defaultPosition=["after","before"];return d.Tooltip});
define("dijit/form/ValidationTextBox","dojo,dijit,text!dijit/form/templates/ValidationTextBox.html,dojo/i18n,dijit/form/TextBox,dijit/Tooltip,i18n!dijit/form/nls/validate".split(","),function(b,d){b.declare("dijit.form.ValidationTextBox",d.form.TextBox,{templateString:b.cache("dijit.form","templates/ValidationTextBox.html"),baseClass:"dijitTextBox dijitValidationTextBox",required:!1,promptMessage:"",invalidMessage:"$_unset_$",missingMessage:"$_unset_$",message:"",constraints:{},regExp:".*",regExpGen:function(){return this.regExp},
state:"",tooltipPosition:[],_setValueAttr:function(){this.inherited(arguments);this.validate(this._focused)},validator:function(a,b){return RegExp("^(?:"+this.regExpGen(b)+")"+(this.required?"":"?")+"$").test(a)&&(!this.required||!this._isEmpty(a))&&(this._isEmpty(a)||this.parse(a,b)!==void 0)},_isValidSubset:function(){return this.textbox.value.search(this._partialre)==0},isValid:function(){return this.validator(this.textbox.value,this.constraints)},_isEmpty:function(a){return(this.trim?/^\s*$/:
/^$/).test(a)},getErrorMessage:function(){return this.required&&this._isEmpty(this.textbox.value)?this.missingMessage:this.invalidMessage},getPromptMessage:function(){return this.promptMessage},_maskValidSubsetError:!0,validate:function(a){var b="",e=this.disabled||this.isValid(a);if(e)this._maskValidSubsetError=!0;var f=this._isEmpty(this.textbox.value),g=!e&&a&&this._isValidSubset();this._set("state",e?"":((!this._hasBeenBlurred||a)&&f||g)&&this._maskValidSubsetError?"Incomplete":"Error");d.setWaiState(this.focusNode,
"invalid",e?"false":"true");this.state=="Error"?(this._maskValidSubsetError=a&&g,b=this.getErrorMessage(a)):this.state=="Incomplete"?(b=this.getPromptMessage(a),this._maskValidSubsetError=!this._hasBeenBlurred||a):f&&(b=this.getPromptMessage(a));this.set("message",b);return e},displayMessage:function(a){d.hideTooltip(this.domNode);a&&this._focused&&d.showTooltip(a,this.domNode,this.tooltipPosition,!this.isLeftToRight())},_refreshState:function(){this.validate(this._focused);this.inherited(arguments)},
constructor:function(){this.constraints={}},_setConstraintsAttr:function(a){if(!a.locale&&this.lang)a.locale=this.lang;this._set("constraints",a);this._computePartialRE()},_computePartialRE:function(){var a=this.regExpGen(this.constraints);this.regExp=a;var b="";a!=".*"&&this.regExp.replace(/\\.|\[\]|\[.*?[^\\]{1}\]|\{.*?\}|\(\?[=:!]|./g,function(a){switch(a.charAt(0)){case "{":case "+":case "?":case "*":case "^":case "$":case "|":case "(":b+=a;break;case ")":b+="|$)";break;default:b+="(?:"+a+"|$)"}});
try{"".search(b)}catch(e){b=this.regExp,console.warn("RegExp error in "+this.declaredClass+": "+this.regExp)}this._partialre="^(?:"+b+")$"},postMixInProperties:function(){this.inherited(arguments);this.messages=b.i18n.getLocalization("dijit.form","validate",this.lang);if(this.invalidMessage=="$_unset_$")this.invalidMessage=this.messages.invalidMessage;if(!this.invalidMessage)this.invalidMessage=this.promptMessage;if(this.missingMessage=="$_unset_$")this.missingMessage=this.messages.missingMessage;
if(!this.missingMessage)this.missingMessage=this.invalidMessage;this._setConstraintsAttr(this.constraints)},_setDisabledAttr:function(a){this.inherited(arguments);this._refreshState()},_setRequiredAttr:function(a){this._set("required",a);d.setWaiState(this.focusNode,"required",a);this._refreshState()},_setMessageAttr:function(a){this._set("message",a);this.displayMessage(a)},reset:function(){this._maskValidSubsetError=!0;this.inherited(arguments)},_onBlur:function(){this.displayMessage("");this.inherited(arguments)}});
b.declare("dijit.form.MappedTextBox",d.form.ValidationTextBox,{postMixInProperties:function(){this.inherited(arguments);this.nameAttrSetting=""},serialize:function(a){return a.toString?a.toString():""},toString:function(){var a=this.filter(this.get("value"));return a!=null?typeof a=="string"?a:this.serialize(a,this.constraints):""},validate:function(){this.valueNode.value=this.toString();return this.inherited(arguments)},buildRendering:function(){this.inherited(arguments);this.valueNode=b.place("<input type='hidden'"+
(this.name?" name='"+this.name.replace(/'/g,"&quot;")+"'":"")+"/>",this.textbox,"after")},reset:function(){this.valueNode.value="";this.inherited(arguments)}});b.declare("dijit.form.RangeBoundTextBox",d.form.MappedTextBox,{rangeMessage:"",rangeCheck:function(a,b){return("min"in b?this.compare(a,b.min)>=0:!0)&&("max"in b?this.compare(a,b.max)<=0:!0)},isInRange:function(){return this.rangeCheck(this.get("value"),this.constraints)},_isDefinitelyOutOfRange:function(){var a=this.get("value"),b=!1,e=!1;
if("min"in this.constraints)b=this.constraints.min,b=this.compare(a,typeof b=="number"&&b>=0&&a!=0?0:b),b=typeof b=="number"&&b<0;if("max"in this.constraints)e=this.constraints.max,e=this.compare(a,typeof e!="number"||e>0?e:0),e=typeof e=="number"&&e>0;return b||e},_isValidSubset:function(){return this.inherited(arguments)&&!this._isDefinitelyOutOfRange()},isValid:function(a){return this.inherited(arguments)&&(this._isEmpty(this.textbox.value)&&!this.required||this.isInRange(a))},getErrorMessage:function(a){var b=
this.get("value");return b!==null&&b!==""&&b!==void 0&&(typeof b!="number"||!isNaN(b))&&!this.isInRange(a)?this.rangeMessage:this.inherited(arguments)},postMixInProperties:function(){this.inherited(arguments);if(!this.rangeMessage)this.messages=b.i18n.getLocalization("dijit.form","validate",this.lang),this.rangeMessage=this.messages.rangeMessage},_setConstraintsAttr:function(a){this.inherited(arguments);this.focusNode&&(this.constraints.min!==void 0?d.setWaiState(this.focusNode,"valuemin",this.constraints.min):
d.removeWaiState(this.focusNode,"valuemin"),this.constraints.max!==void 0?d.setWaiState(this.focusNode,"valuemax",this.constraints.max):d.removeWaiState(this.focusNode,"valuemax"))},_setValueAttr:function(a,b){d.setWaiState(this.focusNode,"valuenow",a);this.inherited(arguments)}});return d.form.ValidationTextBox});
define("orion/util",["i18n!orion/nls/messages","dojo","dijit","dojo/hash","dijit/form/ValidationTextBox"],function(b,d,a){function c(a){var b=window.navigator.platform.indexOf("Mac")!==-1;return b&&a.metaKey||!b&&a.ctrlKey}function e(a){return typeof a.textContent!=="undefined"?a.textContent:a.innerText}return{getUserKeyString:function(a){var b="",c=navigator.platform.indexOf("Mac")!==-1;a.mod1&&(b+=c?"Cmd+":"Ctrl+");a.mod2&&(b+="Shift+");a.mod3&&(b+="Alt+");a.mod4&&c&&(b+="Ctrl+");if(a.alphaKey)return b+
a.alphaKey;for(var e in d.keys)if(typeof(d.keys[e]==="number")&&d.keys[e]===a.keyCode)return b+e;var j;switch(a.keyCode){case 59:j=a.mod2?":":";";break;case 61:j=a.mod2?"+":"=";break;case 188:j=a.mod2?"<":",";break;case 190:j=a.mod2?">":".";break;case 191:j=a.mod2?"?":"/";break;case 192:j=a.mod2?"~":"`";break;case 219:j=a.mod2?"{":"[";break;case 220:j=a.mod2?"|":"\\";break;case 221:j=a.mod2?"}":"]";break;case 222:j=a.mod2?'"':"'"}return j?b+j:b+String.fromCharCode(a.keyCode)},openDialog:function(b,
c){b.startup();if(typeof c==="string"){var e=d.byId(c);if(!e&&(e=a.byId(c)))e=e.domNode;c=e?e:null}c&&(e=d.position(c),b._setStyleAttr("left:"+(e.x+16)+"px !important;"),b._setStyleAttr("top:"+(e.y+16)+"px !important;"));b.show()},getUserText:function(b,c,e,i,j,k,l,m,n){var l=function(l){return function(m){var q=a.byId(b),o=q.get("value");l&&m.keyCode===d.keys.ESCAPE?(e&&d.style(c,"display","inline"),q.destroyRecursive(),k&&k()):l&&m.keyCode!==d.keys.ENTER||(!q.isValid()||!n&&o===i?e&&d.style(c,"display",
"inline"):j(o),q.destroyRecursive(),k&&k())}},o=new a.form.ValidationTextBox({id:b,required:!0,value:i||""});d.place(o.domNode,c,"after");d.addClass(o.domNode,"userEditBoxPrompt");e&&d.style(c,"display","none");d.connect(o,"onKeyDown",l(!0));d.connect(o,"onBlur",l(!1));window.setTimeout(function(){o.focus();if(i){var c=d.byId(b),e=m?i.indexOf(m):-1;e>0?a.selectInputText(c,0,e):c.select()}},0)},openInNewWindow:c,followLink:function(a,b){b&&c(b)?window.open(a):window.location=a},makeRelative:function(a){if(!a)return a;
var b=window.location.protocol+"//"+window.location.host;return a.indexOf(b)===0?a.substring(b.length):a},makeFullPath:function(a){if(!a)return a;var b=window.location.protocol+"//"+window.location.host;a.charAt(0)!=="/"&&(a="/"+a);return b+a},isAtRoot:function(a){return this.makeRelative(a).indexOf("/workspace")===0},processNavigatorParent:function(a,b){a.children=b;for(var c in b)b[c].parent=a;a.children.sort(function(a,b){var c=a.Directory;if(c!==b.Directory)return c?-1:1;var c=a.Name&&a.Name.toLowerCase(),
e=b.Name&&b.Name.toLowerCase();return c<e?-1:c>e?1:0})},getText:e,safeText:function(a){return e(document.createTextNode(a))},setText:function(a,b){typeof a.textContent!=="undefined"?a.textContent=b:a.innerText=b},forceLayout:function(b){for(typeof b==="string"&&(b=d.byId(b));b;){var c=a.byId(b.id);if(c&&typeof c.layout==="function"){c.layout();break}b=b.parentNode}},saveFileContents:function(a,c,e,d){a.write(c.Location,e,{ETag:c.ETag}).then(function(){d&&d()},function(j){j.status===412?window.confirm(b["Resource is out of sync with the server. Do you want to save it anyway?"])&&
a.write(c.Location,e).then(function(a){c.ETag=a.ETag;d&&d()}):j.log=!0})},splitFile:function(a){for(var b=0,c=0,e=0,d=0,k=[];;){b!==-1&&b<=e&&(b=a.indexOf("\r",e));c!==-1&&c<=e&&(c=a.indexOf("\n",e));if(c===-1&&b===-1){k.push(a.substring(d));break}var l=1;b!==-1&&c!==-1?b+1===c?(l=2,e=c+1):e=(b<c?b:c)+1:e=b!==-1?b+1:c+1;k.push(a.substring(d,e-l));d=e}return k}}});define("text!dijit/templates/TooltipDialog.html",[],function(){return'<div role="presentation" tabIndex="-1">\n\t<div class="dijitTooltipContainer" role="presentation">\n\t\t<div class ="dijitTooltipContents dijitTooltipFocusNode" dojoAttachPoint="containerNode" role="dialog"></div>\n\t</div>\n\t<div class="dijitTooltipConnector" role="presentation"></div>\n</div>'});
define("dijit/layout/_LayoutWidget",["dojo","dijit","dijit/_Widget","dijit/_Container","dijit/_Contained"],function(b,d){b.declare("dijit.layout._LayoutWidget",[d._Widget,d._Container,d._Contained],{baseClass:"dijitLayoutContainer",isLayoutContainer:!0,buildRendering:function(){this.inherited(arguments);b.addClass(this.domNode,"dijitContainer")},startup:function(){if(!this._started){this.inherited(arguments);var a=this.getParent&&this.getParent();if(!a||!a.isLayoutContainer)this.resize(),this.connect(b.isIE?
this.domNode:b.global,"onresize",function(){this.resize()})}},resize:function(a,c){var e=this.domNode;if(a){b.marginBox(e,a);if(a.t)e.style.top=a.t+"px";if(a.l)e.style.left=a.l+"px"}var d=c||{};b.mixin(d,a||{});if(!("h"in d)||!("w"in d))d=b.mixin(b.marginBox(e),d);var g=b.getComputedStyle(e),h=b._getMarginExtents(e,g),i=b._getBorderExtents(e,g),d=this._borderBox={w:d.w-(h.w+i.w),h:d.h-(h.h+i.h)},h=b._getPadExtents(e,g);this._contentBox={l:b._toPixelValue(e,g.paddingLeft),t:b._toPixelValue(e,g.paddingTop),
w:d.w-h.w,h:d.h-h.h};this.layout()},layout:function(){},_setupChild:function(a){b.addClass(a.domNode,this.baseClass+"-child "+(a.baseClass?this.baseClass+"-"+a.baseClass:""))},addChild:function(a,b){this.inherited(arguments);this._started&&this._setupChild(a)},removeChild:function(a){b.removeClass(a.domNode,this.baseClass+"-child"+(a.baseClass?" "+this.baseClass+"-"+a.baseClass:""));this.inherited(arguments)}});d.layout.marginBox2contentBox=function(a,c){var e=b.getComputedStyle(a),d=b._getMarginExtents(a,
e),g=b._getPadBorderExtents(a,e);return{l:b._toPixelValue(a,e.paddingLeft),t:b._toPixelValue(a,e.paddingTop),w:c.w-(d.w+g.w),h:c.h-(d.h+g.h)}};(function(){var a=function(a,e){var d=a.resize?a.resize(e):b.marginBox(a.domNode,e);d?b.mixin(a,d):(b.mixin(a,b.marginBox(a.domNode)),b.mixin(a,e))};d.layout.layoutChildren=function(c,e,d,g,h){e=b.mixin({},e);b.addClass(c,"dijitLayoutContainer");d=b.filter(d,function(a){return a.region!="center"&&a.layoutAlign!="client"}).concat(b.filter(d,function(a){return a.region==
"center"||a.layoutAlign=="client"}));b.forEach(d,function(c){var d=c.domNode,f=c.region||c.layoutAlign,l=d.style;l.left=e.l+"px";l.top=e.t+"px";l.position="absolute";b.addClass(d,"dijitAlign"+(f.substring(0,1).toUpperCase()+f.substring(1)));d={};g&&g==c.id&&(d[c.region=="top"||c.region=="bottom"?"h":"w"]=h);f=="top"||f=="bottom"?(d.w=e.w,a(c,d),e.h-=c.h,f=="top"?e.t+=c.h:l.top=e.t+e.h+"px"):f=="left"||f=="right"?(d.h=e.h,a(c,d),e.w-=c.w,f=="left"?e.l+=c.w:l.left=e.l+e.w+"px"):(f=="client"||f=="center")&&
a(c,e)})}})();return d.layout._LayoutWidget});
define("dijit/layout/_ContentPaneResizeMixin",["dojo","dijit","dijit/_Contained","dijit/layout/_LayoutWidget"],function(b,d){b.declare("dijit.layout._ContentPaneResizeMixin",null,{doLayout:!0,isContainer:!0,isLayoutContainer:!0,_startChildren:function(){b.forEach(this.getChildren(),function(a){a.startup();a._started=!0})},startup:function(){if(!this._started){var a=d._Contained.prototype.getParent.call(this);this._childOfLayoutWidget=a&&a.isLayoutContainer;this._needLayout=!this._childOfLayoutWidget;
this.inherited(arguments);this._startChildren();this._isShown()&&this._onShow();this._childOfLayoutWidget||this.connect(b.isIE?this.domNode:b.global,"onresize",function(){this._needLayout=!this._childOfLayoutWidget;this.resize()})}},_checkIfSingleChild:function(){var a=b.query("> *",this.containerNode).filter(function(a){return a.tagName!=="SCRIPT"}),c=a.filter(function(a){return b.hasAttr(a,"data-dojo-type")||b.hasAttr(a,"dojoType")||b.hasAttr(a,"widgetId")}),e=b.filter(c.map(d.byNode),function(a){return a&&
a.domNode&&a.resize});a.length==c.length&&e.length==1?this._singleChild=e[0]:delete this._singleChild;b.toggleClass(this.containerNode,this.baseClass+"SingleChild",!!this._singleChild)},resize:function(a,b){!this._wasShown&&this.open!==!1&&this._onShow();this._resizeCalled=!0;this._scheduleLayout(a,b)},_scheduleLayout:function(a,b){this._isShown()?this._layout(a,b):(this._needLayout=!0,this._changeSize=a,this._resultSize=b)},_layout:function(a,c){a&&b.marginBox(this.domNode,a);var e=this.containerNode;
if(e===this.domNode){var f=c||{};b.mixin(f,a||{});if(!("h"in f)||!("w"in f))f=b.mixin(b.marginBox(e),f);this._contentBox=d.layout.marginBox2contentBox(e,f)}else this._contentBox=b.contentBox(e);this._layoutChildren();delete this._needLayout},_layoutChildren:function(){this.doLayout&&this._checkIfSingleChild();if(this._singleChild&&this._singleChild.resize){var a=this._contentBox||b.contentBox(this.containerNode);this._singleChild.resize({w:a.w,h:a.h})}else b.forEach(this.getChildren(),function(a){a.resize&&
a.resize()})},_isShown:function(){if(this._childOfLayoutWidget)return this._resizeCalled&&"open"in this?this.open:this._resizeCalled;else if("open"in this)return this.open;else{var a=this.domNode,c=this.domNode.parentNode;return a.style.display!="none"&&a.style.visibility!="hidden"&&!b.hasClass(a,"dijitHidden")&&c&&c.style&&c.style.display!="none"}},_onShow:function(){this._needLayout&&this._layout(this._changeSize,this._resultSize);this.inherited(arguments);this._wasShown=!0}});return d.layout._ContentPaneResizeMixin});
define("dojo/html",["dojo","dojo/parser"],function(b){b.getObject("html",!0,b);(function(){var d=0;b.html._secureForInnerHtml=function(a){return a.replace(/(?:\s*<!DOCTYPE\s[^>]+>|<title[^>]*>[\s\S]*?<\/title>)/ig,"")};b.html._emptyNode=b.empty;b.html._setNodeContent=function(a,c){b.empty(a);if(c)if(typeof c=="string"&&(c=b._toDom(c,a.ownerDocument)),!c.nodeType&&b.isArrayLike(c))for(var e=c.length,d=0;d<c.length;d=e==c.length?d+1:0)b.place(c[d],a,"last");else b.place(c,a,"last");return a};b.declare("dojo.html._ContentSetter",
null,{node:"",content:"",id:"",cleanContent:!1,extractContent:!1,parseContent:!1,parserScope:b._scopeName,startup:!0,constructor:function(a,c){b.mixin(this,a||{});c=this.node=b.byId(this.node||c);if(!this.id)this.id=["Setter",c?c.id||c.tagName:"",d++].join("_")},set:function(a,b){if(void 0!==a)this.content=a;b&&this._mixin(b);this.onBegin();this.setContent();this.onEnd();return this.node},setContent:function(){var a=this.node;if(!a)throw Error(this.declaredClass+": setContent given no node");try{a=
b.html._setNodeContent(a,this.content)}catch(c){var e=this.onContentError(c);try{a.innerHTML=e}catch(d){console.error("Fatal "+this.declaredClass+".setContent could not change content due to "+d.message,d)}}this.node=a},empty:function(){this.parseResults&&this.parseResults.length&&(b.forEach(this.parseResults,function(a){a.destroy&&a.destroy()}),delete this.parseResults);b.html._emptyNode(this.node)},onBegin:function(){var a=this.content;if(b.isString(a)&&(this.cleanContent&&(a=b.html._secureForInnerHtml(a)),
this.extractContent)){var c=a.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);c&&(a=c[1])}this.empty();this.content=a;return this.node},onEnd:function(){this.parseContent&&this._parse();return this.node},tearDown:function(){delete this.parseResults;delete this.node;delete this.content},onContentError:function(a){return"Error occured setting content: "+a},_mixin:function(a){var b={},e;for(e in a)e in b||(this[e]=a[e])},_parse:function(){var a=this.node;try{var c={};b.forEach(["dir","lang","textDir"],
function(a){this[a]&&(c[a]=this[a])},this);this.parseResults=b.parser.parse({rootNode:a,noStart:!this.startup,inherited:c,scope:this.parserScope})}catch(e){this._onError("Content",e,"Error parsing in _ContentSetter#"+this.id)}},_onError:function(a,c,e){a=this["on"+a+"Error"].call(this,c);e?console.error(e,c):a&&b.html._setNodeContent(this.node,a,!0)}});b.html.set=function(a,c,e){void 0==c&&(console.warn("dojo.html.set: no cont argument provided, using empty string"),c="");return e?(new b.html._ContentSetter(b.mixin(e,
{content:c,node:a}))).set():b.html._setNodeContent(a,c,!0)}})();return b.html});define("dijit/nls/loading",{root:{loadingState:"Loading...",errorState:"Sorry, an error occurred"},zh:!0,"zh-tw":!0,tr:!0,th:!0,sv:!0,sl:!0,sk:!0,ru:!0,ro:!0,pt:!0,"pt-pt":!0,pl:!0,nl:!0,nb:!0,ko:!0,kk:!0,ja:!0,it:!0,hu:!0,he:!0,fr:!0,fi:!0,es:!0,el:!0,de:!0,da:!0,cs:!0,ca:!0,ar:!0});
define("dijit/layout/ContentPane","dojo,dijit,dijit/_Widget,dijit/layout/_ContentPaneResizeMixin,dojo/string,dojo/html,i18n!dijit/nls/loading".split(","),function(b,d){b.declare("dijit.layout.ContentPane",[d._Widget,d.layout._ContentPaneResizeMixin],{href:"",extractContent:!1,parseOnLoad:!0,parserScope:b._scopeName,preventCache:!1,preload:!1,refreshOnShow:!1,loadingMessage:"<span class='dijitContentPaneLoading'>${loadingState}</span>",errorMessage:"<span class='dijitContentPaneError'>${errorState}</span>",
isLoaded:!1,baseClass:"dijitContentPane",ioArgs:{},onLoadDeferred:null,attributeMap:b.delegate(d._Widget.prototype.attributeMap,{title:[]}),stopParser:!0,template:!1,create:function(a,c){if((!a||!a.template)&&c&&!("href"in a)&&!("content"in a)){for(var e=b.doc.createDocumentFragment(),c=b.byId(c);c.firstChild;)e.appendChild(c.firstChild);a=b.delegate(a,{content:e})}this.inherited(arguments,[a,c])},postMixInProperties:function(){this.inherited(arguments);var a=b.i18n.getLocalization("dijit","loading",
this.lang);this.loadingMessage=b.string.substitute(this.loadingMessage,a);this.errorMessage=b.string.substitute(this.errorMessage,a)},buildRendering:function(){this.inherited(arguments);if(!this.containerNode)this.containerNode=this.domNode;this.domNode.title="";b.attr(this.domNode,"role")||d.setWaiRole(this.domNode,"group")},_startChildren:function(){this.inherited(arguments);this._contentSetter&&b.forEach(this._contentSetter.parseResults,function(a){if(!a._started&&!a._destroyed&&b.isFunction(a.startup))a.startup(),
a._started=!0},this)},setHref:function(a){b.deprecated("dijit.layout.ContentPane.setHref() is deprecated. Use set('href', ...) instead.","","2.0");return this.set("href",a)},_setHrefAttr:function(a){this.cancel();this.onLoadDeferred=new b.Deferred(b.hitch(this,"cancel"));this.onLoadDeferred.addCallback(b.hitch(this,"onLoad"));this._set("href",a);this.preload||this._created&&this._isShown()?this._load():this._hrefChanged=!0;return this.onLoadDeferred},setContent:function(a){b.deprecated("dijit.layout.ContentPane.setContent() is deprecated.  Use set('content', ...) instead.",
"","2.0");this.set("content",a)},_setContentAttr:function(a){this._set("href","");this.cancel();this.onLoadDeferred=new b.Deferred(b.hitch(this,"cancel"));this._created&&this.onLoadDeferred.addCallback(b.hitch(this,"onLoad"));this._setContent(a||"");this._isDownloaded=!1;return this.onLoadDeferred},_getContentAttr:function(){return this.containerNode.innerHTML},cancel:function(){this._xhrDfd&&this._xhrDfd.fired==-1&&this._xhrDfd.cancel();delete this._xhrDfd;this.onLoadDeferred=null},uninitialize:function(){this._beingDestroyed&&
this.cancel();this.inherited(arguments)},destroyRecursive:function(a){this._beingDestroyed||this.inherited(arguments)},_onShow:function(){this.inherited(arguments);if(this.href&&!this._xhrDfd&&(!this.isLoaded||this._hrefChanged||this.refreshOnShow))return this.refresh()},refresh:function(){this.cancel();this.onLoadDeferred=new b.Deferred(b.hitch(this,"cancel"));this.onLoadDeferred.addCallback(b.hitch(this,"onLoad"));this._load();return this.onLoadDeferred},_load:function(){this._setContent(this.onDownloadStart(),
!0);var a=this,c={preventCache:this.preventCache||this.refreshOnShow,url:this.href,handleAs:"text"};b.isObject(this.ioArgs)&&b.mixin(c,this.ioArgs);var e=this._xhrDfd=(this.ioMethod||b.xhrGet)(c);e.addCallback(function(b){try{a._isDownloaded=!0,a._setContent(b,!1),a.onDownloadEnd()}catch(c){a._onError("Content",c)}delete a._xhrDfd;return b});e.addErrback(function(b){e.canceled||a._onError("Download",b);delete a._xhrDfd;return b});delete this._hrefChanged},_onLoadHandler:function(a){this._set("isLoaded",
!0);try{this.onLoadDeferred.callback(a)}catch(b){console.error("Error "+this.widgetId+" running custom onLoad code: "+b.message)}},_onUnloadHandler:function(){this._set("isLoaded",!1);try{this.onUnload()}catch(a){console.error("Error "+this.widgetId+" running custom onUnload code: "+a.message)}},destroyDescendants:function(){this.isLoaded&&this._onUnloadHandler();var a=this._contentSetter;b.forEach(this.getChildren(),function(a){a.destroyRecursive&&a.destroyRecursive()});a&&(b.forEach(a.parseResults,
function(a){a.destroyRecursive&&a.domNode&&a.domNode.parentNode==b.body()&&a.destroyRecursive()}),delete a.parseResults);b.html._emptyNode(this.containerNode);delete this._singleChild},_setContent:function(a,c){this.destroyDescendants();var e=this._contentSetter;if(!(e&&e instanceof b.html._ContentSetter))e=this._contentSetter=new b.html._ContentSetter({node:this.containerNode,_onError:b.hitch(this,this._onError),onContentError:b.hitch(this,function(a){a=this.onContentError(a);try{this.containerNode.innerHTML=
a}catch(b){console.error("Fatal "+this.id+" could not change content due to "+b.message,b)}})});var d=b.mixin({cleanContent:this.cleanContent,extractContent:this.extractContent,parseContent:this.parseOnLoad,parserScope:this.parserScope,startup:!1,dir:this.dir,lang:this.lang},this._contentSetterParams||{});e.set(b.isObject(a)&&a.domNode?a.domNode:a,d);delete this._contentSetterParams;this.doLayout&&this._checkIfSingleChild();c||(this._started&&(this._startChildren(),this._scheduleLayout()),this._onLoadHandler(a))},
_onError:function(a,b,e){this.onLoadDeferred.errback(b);a=this["on"+a+"Error"].call(this,b);e?console.error(e,b):a&&this._setContent(a,!0)},onLoad:function(){},onUnload:function(){},onDownloadStart:function(){return this.loadingMessage},onContentError:function(){},onDownloadError:function(){return this.errorMessage},onDownloadEnd:function(){}});return d.layout.ContentPane});
define("dijit/form/_FormMixin",["dojo","dijit","dojo/window"],function(b,d){b.declare("dijit.form._FormMixin",null,{state:"",reset:function(){b.forEach(this.getDescendants(),function(a){a.reset&&a.reset()})},validate:function(){var a=!1;return b.every(b.map(this.getDescendants(),function(c){c._hasBeenBlurred=!0;var e=c.disabled||!c.validate||c.validate();!e&&!a&&(b.window.scrollIntoView(c.containerNode||c.domNode),c.focus(),a=!0);return e}),function(a){return a})},setValues:function(a){b.deprecated(this.declaredClass+
"::setValues() is deprecated. Use set('value', val) instead.","","2.0");return this.set("value",a)},_setValueAttr:function(a){var c={};b.forEach(this.getDescendants(),function(a){a.name&&(c[a.name]||(c[a.name]=[])).push(a)});for(var e in c)if(c.hasOwnProperty(e)){var d=c[e],g=b.getObject(e,!1,a);g!==void 0&&(b.isArray(g)||(g=[g]),typeof d[0].checked=="boolean"?b.forEach(d,function(a){a.set("value",b.indexOf(g,a.value)!=-1)}):d[0].multiple?d[0].set("value",g):b.forEach(d,function(a,b){a.set("value",
g[b])}))}},getValues:function(){b.deprecated(this.declaredClass+"::getValues() is deprecated. Use get('value') instead.","","2.0");return this.get("value")},_getValueAttr:function(){var a={};b.forEach(this.getDescendants(),function(c){var e=c.name;if(e&&!c.disabled){var d=c.get("value");typeof c.checked=="boolean"?/Radio/.test(c.declaredClass)?d!==!1?b.setObject(e,d,a):(d=b.getObject(e,!1,a),d===void 0&&b.setObject(e,null,a)):(c=b.getObject(e,!1,a),c||(c=[],b.setObject(e,c,a)),d!==!1&&c.push(d)):
(c=b.getObject(e,!1,a),typeof c!="undefined"?b.isArray(c)?c.push(d):b.setObject(e,[c,d],a):b.setObject(e,d,a))}});return a},isValid:function(){return this.state==""},onValidStateChange:function(){},_getState:function(){var a=b.map(this._descendants,function(a){return a.get("state")||""});return b.indexOf(a,"Error")>=0?"Error":b.indexOf(a,"Incomplete")>=0?"Incomplete":""},disconnectChildren:function(){b.forEach(this._childConnections||[],b.hitch(this,"disconnect"));b.forEach(this._childWatches||[],
function(a){a.unwatch()})},connectChildren:function(a){var c=this;this.disconnectChildren();this._descendants=this.getDescendants();a=a?function(a,b){c[a]=b}:b.hitch(this,"_set");a("value",this.get("value"));a("state",this._getState());var e=this._childConnections=[],d=this._childWatches=[];b.forEach(b.filter(this._descendants,function(a){return a.validate}),function(a){b.forEach(["state","disabled"],function(b){d.push(a.watch(b,function(){c.set("state",c._getState())}))})});var g=function(){c._onChangeDelayTimer&&
clearTimeout(c._onChangeDelayTimer);c._onChangeDelayTimer=setTimeout(function(){delete c._onChangeDelayTimer;c._set("value",c.get("value"))},10)};b.forEach(b.filter(this._descendants,function(a){return a.onChange}),function(a){e.push(c.connect(a,"onChange",g));d.push(a.watch("disabled",g))})},startup:function(){this.inherited(arguments);this.connectChildren(!0);this.watch("state",function(a,b,e){this.onValidStateChange(e=="")})},destroy:function(){this.disconnectChildren();this.inherited(arguments)}});
return d.form._FormMixin});
define("dijit/_DialogMixin",["dojo","dijit","dijit/_Widget"],function(b,d){b.declare("dijit._DialogMixin",null,{attributeMap:d._Widget.prototype.attributeMap,execute:function(){},onCancel:function(){},onExecute:function(){},_onSubmit:function(){this.onExecute();this.execute(this.get("value"))},_getFocusItems:function(){var a=d._getTabNavigable(this.containerNode);this._firstFocusItem=a.lowest||a.first||this.closeButtonNode||this.domNode;this._lastFocusItem=a.last||a.highest||this._firstFocusItem}});
return d._DialogMixin});
define("dijit/TooltipDialog","dojo,dijit,text!dijit/templates/TooltipDialog.html,dijit/layout/ContentPane,dijit/_Templated,dijit/form/_FormMixin,dijit/_DialogMixin".split(","),function(b,d){b.declare("dijit.TooltipDialog",[d.layout.ContentPane,d._Templated,d.form._FormMixin,d._DialogMixin],{title:"",doLayout:!1,autofocus:!0,baseClass:"dijitTooltipDialog",_firstFocusItem:null,_lastFocusItem:null,templateString:b.cache("dijit","templates/TooltipDialog.html"),_setTitleAttr:function(a){this.containerNode.title=a;
this._set("title",a)},postCreate:function(){this.inherited(arguments);this.connect(this.containerNode,"onkeypress","_onKey")},orient:function(a,c,e){a="dijitTooltipAB"+(e.charAt(1)=="L"?"Left":"Right")+" dijitTooltip"+(e.charAt(0)=="T"?"Below":"Above");b.replaceClass(this.domNode,a,this._currentOrientClass||"");this._currentOrientClass=a},focus:function(){this._getFocusItems(this.containerNode);d.focus(this._firstFocusItem)},onOpen:function(a){this.orient(this.domNode,a.aroundCorner,a.corner);this._onShow()},
onClose:function(){this.onHide()},_onKey:function(a){var c=a.target,e=b.keys;a.charOrCode===e.TAB&&this._getFocusItems(this.containerNode);var f=this._firstFocusItem==this._lastFocusItem;a.charOrCode==e.ESCAPE?(setTimeout(b.hitch(this,"onCancel"),0),b.stopEvent(a)):c==this._firstFocusItem&&a.shiftKey&&a.charOrCode===e.TAB?(f||d.focus(this._lastFocusItem),b.stopEvent(a)):c==this._lastFocusItem&&a.charOrCode===e.TAB&&!a.shiftKey?(f||d.focus(this._firstFocusItem),b.stopEvent(a)):a.charOrCode===e.TAB&&
a.stopPropagation()}});return d.TooltipDialog});
define("orion/commands","i18n!orion/nls/messages,require,dojo,dijit,orion/util,orion/PageUtil,orion/navigationUtils,dijit/Menu,dijit/form/DropDownButton,dijit/MenuItem,dijit/PopupMenuItem,dijit/MenuSeparator,dijit/Tooltip,dijit/TooltipDialog".split(","),function(b,d,a,c,e,f,g){function h(b,c,e){var d=function(){e&&a.addClass(this,e)},f=function(){e&&a.removeClass(this,e)};a.connect(b,"onmouseover",b,d);a.connect(c,"onfocus",b,d);a.connect(b,"onmouseout",b,f);a.connect(c,"onblur",b,f)}function i(a,
b,c,e,d){this.commandService=a;this.handler=b;this.items=c;this.userData=e;this.command=d;if(d.parameters)this.parameters=d.parameters.makeCopy();this.id=d.id}function j(a){this._commandList={};this._contributionsByScopeId={};this._activeBindings={};this._urlBindings={};this._init(a);this._parameterCollector=null;this.showMenuIcons=!1}function k(b,c,e){a.addClass(c,"commandImage");var d;b.imageClass?(d=a.create("span",{},c,"last"),a.addClass(d,b.spriteClass),a.addClass(d,b.imageClass)):(d=new Image,
d.alt=b.name,d.name=e,d.id=e,d.src=b.image,a.place(d,c,"last"));return d}function l(a){this._init(a)}function m(b,c,e,d,f,g,h){this.keyCode=typeof b==="string"?b.toUpperCase().charCodeAt(0):b;this.mod1=c!==void 0&&c!==null?c:!1;this.mod2=e!==void 0&&e!==null?e:!1;this.mod3=d!==void 0&&d!==null?d:!1;this.mod4=f!==void 0&&f!==null?f:!1;typeof g==="string"?(this.domScope=a.byId(g),this.scopeName=h||g):(this.domScope=g,this.scopeName=h||g?g.id:null)}function n(a,b){this.token=a;this.parameterName=b}function o(a,
b,c,e,d){this.name=a;this.type=b;this.label=c;this.value=e;this.lines=d||1}function p(a,b,c){this._storeParameters(a);this._hasOptionalParameters=b&&b.hasOptionalParameters;this._clientCollect=b&&b.clientCollect;this._options=b;this.optionsRequested=!1;this.getParameters=c}i.prototype={collectsParameters:function(){return this.commandService&&this.commandService.collectsParameters()},makeCopy:function(){var a=new i(this.commandService,this.handler,this.items,this.userData,this.command);a.domNode=
this.domNode;a.domParent=this.domParent;if(this.parameters)a.parameters=this.parameters.makeCopy();return a}};i.prototype.constructor=i;var r=a.declare(c.MenuItem,{constructor:function(){var b=arguments[0]||{};b.onKeyDown=a.hitch(this,function(b){if((b.keyCode===a.keys.ENTER||b.keyCode===a.keys.SPACE)&&this._anchorLocation)b.ctrlKey?window.open(this._anchorLocation):window.location=this._anchorLocation});this.inherited(arguments||[b])},postCreate:function(){var b=a.query("a",this.domNode)[0];if(b)a.addClass(b,
"commandMenuItemAnchor"),this._anchorLocation=b.href},setLink:function(a,b){this.set("label","<a class='commandMenuItemAnchor' href='"+a+"'>"+b+"</a>");this._anchorLocation=a},_onClick:function(a){this.hasLink||this.inherited(arguments)}}),q=a.declare(c.Tooltip,{constructor:function(){this.inherited(arguments);this.options=arguments[0]||{};this.showDelay=1E3},_onUnHover:function(){this._showTimer&&(window.clearTimeout(this._showTimer),delete this._showTimer);this.polling=!1;this.close()},_onHover:function(b){this.inherited(arguments);
this.polling=!0;this.pollForMissingTarget();window.setTimeout(function(){c._masterTT&&a.removeAttr(c._masterTT.containerNode,"role")},this.showDelay+1)},pollForMissingTarget:function(){this.polling&&window.setTimeout(a.hitch(this,function(){this._stillInDocument(this._connectNode)?this.pollForMissingTarget():(this.polling=!1,this.close())}),this.showDelay+500)},_stillInDocument:function(a){for(;a;){if(a===window.document)return!0;a=a.parentNode}return!1},postMixInProperties:function(){this.inherited(arguments);
this.options.commandParent&&c.byId(this.options.commandParent.id)&&a.connect(this.options.commandParent,"onClose",a.hitch(this,function(){this.close()}))}});j.prototype={_init:function(b){this._registry=b.serviceRegistry;this._serviceRegistration=this._registry.registerService("orion.page.command",this);this._defaultSelectionService=b.selection;a.connect(window.document,"onkeydown",a.hitch(this,function(a){a=a||window.event;if(a.target.contentEditable!=="true"){var b=a.target.nodeName.toLowerCase();
if(b==="input")switch(a.target.type.toLowerCase()){case "text":case "password":case "search":case "color":case "date":case "datetime":case "datetime-local":case "email":case "month":case "number":case "range":case "tel":case "time":case "url":case "week":return}else if(b==="textarea")return;this._processKey(a)}}))},_processKey:function(b){function c(a){window.document.all?a.keyCode=0:(a.preventDefault(),a.stopPropagation())}for(var e in this._activeBindings)if(this._activeBindings[e]&&this._activeBindings[e].keyBinding&&
this._activeBindings[e].command&&this._activeBindings[e].keyBinding.match(b)){var d=this._activeBindings[e],f=d.invocation;if(f)if(d=d.command,d.hrefCallback){c(b);b=d.hrefCallback.call(f.handler||window,f);b.then?b.then(function(a){window.open(a)}):window.open(b);break}else if(d.callback){c(b);window.setTimeout(a.hitch(this,function(){this._invoke(f)}),0);break}}},processURL:function(b){for(var c in this._urlBindings)if(this._urlBindings[c]&&this._urlBindings[c].urlBinding&&this._urlBindings[c].command){var e=
this._urlBindings[c].urlBinding.match(b);if(e){var d=this._urlBindings[c],f=d.command,g=d.invocation;if(g&&g.parameters&&f.callback){g.parameters.setValue(e.parameterName,e.parameterValue);window.setTimeout(a.hitch(this,function(){this._invoke(g)}),0);break}}}},findCommand:function(a){return this._commandList[a]},runCommand:function(b,c,e){if(c){var d=this._commandList[b];(d.visibleWhen?d.visibleWhen(c):1)&&d.callback&&window.setTimeout(a.hitch(this,function(){this._invoke(new i(this,e,c,null,d))}),
0)}else{var f=this._urlBindings[b];f&&f.command&&f.command.callback&&window.setTimeout(a.hitch(this,function(){this._invoke(f.invocation)}),0)}},getSelectionService:function(){return this._defaultSelectionService},setParameterCollector:function(a){this._parameterCollector=a},openParameterCollector:function(a,b,c){this._parameterCollector&&(this._parameterCollector.close(),this._parameterCollector.open(a,b,c))},closeParameterCollector:function(){this._parameterCollector&&this._parameterCollector.close()},
collectsParameters:function(){return this._parameterCollector},_invoke:function(a){return this._collectAndInvoke(a.makeCopy(),!1)},_collectAndInvoke:function(b,e){if(b)if(this._parameterCollector&&b.parameters&&b.parameters.hasParameters()&&(e||b.parameters.shouldCollectParameters())){var d=!1;b.parameters.updateParameters(b);d=this._parameterCollector.collectParameters(b);if(!d){var f=new c.TooltipDialog({onBlur:function(){c.popup.close(f)}}),g=a.create("div"),h=window.document.activeElement,i=this._parameterCollector.getFillFunction(b,
function(){c.popup.close(f);f.destroyRecursive();h&&h.focus()})(g);f.set("content",g);g=(g=c.byId(b.domParent.id))?a.position(g.eclipseScopeId,!0):a.position(b.domNode,!0);g.x&&g.y&&g.w&&(c.popup.open({popup:f,x:g.x+g.w-8,y:g.y+8}),window.setTimeout(function(){i.focus();i.select()},0),d=!0)}if(!d)b.parameters=null,b.command.callback.call(b.handler||window,b)}else b.command.callback.call(b.handler||window,b);else window.console.log("Client attempted to invoke command without an available (rendered) command invocation")},
collectParameters:function(a){this._collectAndInvoke(a,!0)},showKeyBindings:function(b){var c={},d,f,g;for(g in this._activeBindings)if((f=this._activeBindings[g])&&f.keyBinding&&f.command)f.keyBinding.scopeName?(c[f.keyBinding.scopeName]||(c[f.keyBinding.scopeName]=[]),c[f.keyBinding.scopeName].push(f)):(d=e.getUserKeyString(f.keyBinding),a.place("<span role='listitem'>"+d+" = "+f.command.name+"<br></span>",b,"last"));for(var h in c)if(c[h].length&&c[h].length>0){a.place("<h2>"+h+"</h2>",b,"last");
for(g=0;g<c[h].length;g++)f=c[h][g],d=e.getUserKeyString(f.keyBinding),a.place("<span role='listitem'>"+d+" = "+f.command.name+"<br></span>",b,"last")}},addCommand:function(a){this._commandList[a.id]=a},addCommandGroup:function(a,b,c,e,d,f){this._contributionsByScopeId[a]||(this._contributionsByScopeId[a]={});a=this._contributionsByScopeId[a];d&&(a=this._createEntryForPath(a,d));if(a[b]){if(e)a[b].title=e;if(c)a[b].position=c;a[b].emptyGroupMessage=f}else a[b]={title:e,position:c,emptyGroupMessage:f,
children:{}},a.sortedContributions=null},_createEntryForPath:function(a,b){if(b)for(var c=b.split("/"),e=0;e<c.length;e++)if(c[e].length>1)a[c[e]]||(a[c[e]]={position:0,children:{}}),a=a[c[e]].children;return a},registerSelectionService:function(a,b){this._contributionsByScopeId[a]||(this._contributionsByScopeId[a]={});this._contributionsByScopeId[a].localSelectionService=b},registerCommandContribution:function(a,b,c,e,d,f,g){this._contributionsByScopeId[a]||(this._contributionsByScopeId[a]={});a=
this._contributionsByScopeId[a];e&&(a=this._createEntryForPath(a,e));a[b]={position:c};f&&(c=this._commandList[b])&&(this._activeBindings[b]={command:c,keyBinding:f,bindingOnly:d});g&&(c=this._commandList[b])&&(this._urlBindings[b]={command:c,urlBinding:g,bindingOnly:d});a.sortedContributions=null},_isLastChildSeparator:function(b,e){if(e==="tool"||e==="button")return b.childNodes.length>0&&a.hasClass(b.childNodes[b.childNodes.length-1],"commandSeparator");if(e==="menu"){var d=b.getChildren();return d.length>
0&&d[d.length-1]instanceof c.MenuSeparator}return!1},renderCommands:function(b,c,d,f,g,h,i){if(typeof b!=="string")throw"a scope id for rendering must be specified";typeof c==="string"&&(c=a.byId(c));if(!c)throw"no parent";var j=this._contributionsByScopeId[b];if(!d&&j){var d=j.localSelectionService||this._defaultSelectionService,k=this;d&&d.getSelections(function(a){k.renderCommands(b,c,a,f,g,h)})}else j&&(this._render(this._contributionsByScopeId[b],c,d,f,g,h,i),g==="tool"||g==="button"?this._isLastChildSeparator(c,
g)&&c.removeChild(c.childNodes[c.childNodes.length-1]):g==="menu"&&this._isLastChildSeparator(c,g)&&(d=c.getChildren()[c.getChildren().length-1],c.removeChild(d),d.destroy()),e.forceLayout(c))},destroy:function(b){typeof b==="string"&&(b=a.byId(b));if(!b)throw"no parent";var e=c.findWidgets(b);a.forEach(e,function(a){a.destroyRecursive()});a.empty(b)},_render:function(e,d,f,j,k,l,m){var n=e.sortedContributions;if(!n){var n=[],q=!1,o;for(o in e)if(!e.hasOwnProperty||e.hasOwnProperty(o)){var r=e[o];
if(r&&typeof r.position==="number")r.id=o,n.push(r),q=!0}if(q)n.sort(function(a,b){return a.position-b.position}),e.sortedContributions=n}for(e=0;e<n.length;e++){var p,s;if(n[e].children&&Object.getOwnPropertyNames(n[e].children).length>0){o=n[e];var I,q=n[e].children,C=this;if(k==="tool"||k==="button")if(o.title){var F=new c.Menu({style:"display: none;"});p=new c.form.DropDownButton({label:o.title==="*"?b.Actions:o.title,showLabel:o.title!=="*",style:"visibility: hidden;",dropDown:F});a.addClass(p.domNode,
"commandMenu");m&&g.generateNavGrid(m,p.domNode,p);r=d;d.nodeName.toLowerCase()==="ul"?r=a.create("li",{},d):a.addClass(p.domNode,"commandMargins");a.removeAttr(p.titleNode,"title");a.destroy(p.valueNode);h(p.domNode,p.focusNode);a.place(p.domNode,r,"last");F.eclipseScopeId=d.eclipseScopeId||d.id;window.setTimeout(a.hitch({contributions:q,emptyGroupMessage:o.emptyGroupMessage},function(){if(!F._destroyed){C._render(this.contributions,F,f,j,"menu",l,m);I=F.getChildren();if(C._isLastChildSeparator(F,
"menu")){var b=I[I.length-1];F.removeChild(b);b.destroy();I=F.getChildren()}I.length===0?this.emptyGroupMessage?(a.connect(p.focusNode,"onclick",this,function(){var a=new c.TooltipDialog({content:"<p>"+this.emptyGroupMessage+"</p>",onMouseLeave:function(){c.popup.close(a);a.destroyRecursive()}});c.popup.open({popup:a,around:p.domNode});window.setTimeout(function(){c.popup.close(a);a.destroyRecursive()},15E3)}),a.style(p.domNode,"visibility","visible")):(m&&g.removeNavGrid(m,p.domNode),p.destroyRecursive()):
a.style(p.domNode,"visibility","visible")}}),0)}else{var L;d.childNodes.length>0&&!this._isLastChildSeparator(d,k)&&(L=this.generateSeparatorImage(d));C._render(q,d,f,j,k,l,m);d.childNodes.length>0&&d.childNodes[d.childNodes.length-1]!==L&&(L=this.generateSeparatorImage(d))}else if(o.title)r=new c.Menu,o=new c.PopupMenuItem({label:o.title,popup:r}),d.addChild(o),C._render(q,r,f,j,k,l,m),r.getChildren().length===0&&(o.set("label","removeme"),d.removeChild(o),o.destroyRecursive());else{var H;d.getChildren().length>
0&&!this._isLastChildSeparator(d,k)&&(H=new c.MenuSeparator,d.addChild(H));C._render(q,d,f,j,k,l,m);q=d.getChildren();q[q.length-1]!==H&&(H=new c.MenuSeparator,d.addChild(H))}}else{o=(q=this._commandList[n[e].id])?!0:!1;var M=null,M=null;if(q){s=new i(this,j,f,l,q);s.domParent=d;r=o&&(q.visibleWhen?q.visibleWhen(f):!0);if(this._activeBindings[q.id]&&this._activeBindings[q.id].keyBinding)M=this._activeBindings[q.id],M.invocation=r?s:null,M.bindingOnly&&(o=!1);if(this._urlBindings[q.id]&&this._urlBindings[q.id].urlBinding)M=
this._urlBindings[q.id],M.invocation=r?s:null,M.bindingOnly&&(o=!1);o=o&&r}if(o)if(q.choiceCallback)if(o=new c.Menu({style:"display: none;"}),k==="tool"||k==="button"){p=new c.form.DropDownButton({label:q.name,dropDown:o});a.addClass(p.domNode,"commandMenu");a.removeAttr(p.titleNode,"title");a.destroy(p.valueNode);if(q.image)a.addClass(p.iconNode,"commandImage"),p.iconNode.src=q.image;a.place(p.domNode,d,"last");p.eclipseCommand=q;p.eclipseChoices=o;a.connect(p,"onClick",p,function(){this.eclipseCommand.populateChoicesMenu(this.eclipseChoices,
f,j,l)})}else{if(k==="menu")r=new c.PopupMenuItem({label:q.name,popup:o}),d.addChild(r),r.eclipseCommand=q,r.eclipseChoices=o,a.connect(d,"_openPopup",r,function(){this.eclipseCommand.populateChoicesMenu(this.eclipseChoices,f,j,l)})}else k==="tool"?(o="tool"+q.id+e,q._addTool(d,o,s,m)):k==="button"?(o="button"+q.id+e,q._addButton(d,o,s,m)):k==="menu"&&q._addMenuItem(d,s,m)}}},generateSeparatorImage:function(b){b=b.nodeName.toLowerCase()==="ul"?a.create("li",null,b,"last"):a.create("span",null,b,"last");
a.addClass(b,"core-sprite-sep");a.addClass(b,"imageSprite");a.addClass(b,"commandSeparator");return b}};j.prototype.constructor=j;l.prototype={_init:function(a){this.id=a.id;this.name=a.name;this.tooltip=a.tooltip||a.name;this.callback=a.callback;this.hrefCallback=a.hrefCallback;this.choiceCallback=a.choiceCallback;this.image=a.image||d.toUrl("images/none.png");this.imageClass=a.imageClass;this.spriteClass=a.spriteClass||"commandSprite";this.visibleWhen=a.visibleWhen;this.parameters=a.parameters;
this.description=a.description},_addTool:function(b,c,e,d){e.handler=e.handler||this;var f,i;if(this.hrefCallback){if(f=this._makeLink(e),!f)return}else f=a.create("span",{tabindex:d?"-1":"0",role:"button"}),this.hasImage()?(i=k(this,f,c),this._addAccessibleLabel(f)):(c=window.document.createTextNode(this.name),a.place(c,f,"last"),a.addClass(f,"commandMissingImageButton commandButton")),this._hookCallback(f,e),h(f,f,i?"commandImageOver":"commandButtonOver");e.domNode=f;e.domParent=b;this.tooltip&&
new q({connectId:[f],label:this.tooltip,position:["above","left","right","below"],commandParent:b,commandService:e.commandService});b.nodeName.toLowerCase()==="ul"?b=a.create("li",{},b):a.addClass(f,"commandMargins");a.place(f,b,"last");g.generateNavGrid(d,e.domNode)},_addButton:function(b,c,e,d){e.handler=e.handler||this;var f;if(this.hrefCallback){if(f=this._makeLink(e),!f)return}else{f=a.create("span",{tabindex:"0",role:"button"});this._hookCallback(f,e);var i;this.name?(a.place(window.document.createTextNode(this.name),
f,"last"),a.addClass(f,"commandButton"),i="commandButtonOver"):(k(this,f,c),i="commandImageOver",this._addAccessibleLabel(f));h(f,f,i)}f.id=c;this.tooltip&&new q({connectId:[f],label:this.tooltip,position:["above","left","right","below"],commandParent:b,commandService:e.commandService});e.domParent=b;e.domNode=f;b.nodeName.toLowerCase()==="ul"?b=a.create("li",{},b):a.addClass(f,"commandMargins");a.place(f,b,"last");g.generateNavGrid(d,e.domNode)},_addMenuItem:function(b,c,e){var d=c.commandService.showMenuIcons;
c.domParent=b.domNode;var f=new r({labelType:this.hrefCallback?"html":"text",label:this.name,iconClass:d?this.imageClass:null,hasLink:!!this.hrefCallback});this.tooltip&&new q({connectId:[f.domNode],label:this.tooltip,commandParent:b,commandService:c.commandService});if(this.hrefCallback){var h=this.hrefCallback.call(c.handler,c);if(h)if(h.then)h.then(a.hitch(this,function(a){f.setLink(a,this.name)}));else if(h)f.setLink(h,this.name);else return}else if(this.callback)f.onClick=a.hitch(this,function(){c.commandService._invoke(c)});
f.eclipseCommand=this;b.addChild(f);if(d)if(this.imageClass)a.addClass(f.iconNode,this.spriteClass);else if(this.image)a.addClass(f.iconNode,"commandMenuItem"),f.iconNode.src=this.image;c.domNode=f.domNode;g.generateNavGrid(e,c.domNode)},_makeLink:function(b){var c=a.create("a",{tabindex:"0"});a.addClass(c,"commandLink");a.place(window.document.createTextNode(this.name),c,"last");b=this.hrefCallback.call(b.handler,b);if(b.then)b.then(function(a){c.href=a});else if(b)c.href=b;else return null;return c},
_hookCallback:function(b,c){a.connect(b,"onclick",this,function(){c.commandService._invoke(c)});a.connect(b,"onkeypress",this,function(b){(b.keyCode===a.keys.ENTER||b.charCode===a.keys.SPACE)&&c.commandService._invoke(c)})},_addAccessibleLabel:function(b){var c=this.name||this.tooltip;c&&a.attr(b,"aria-label",c)},populateChoicesMenu:function(b,e,d,f){b.focusedChild=null;a.forEach(b.getChildren(),function(a){b.removeChild(a);a.destroy()});for(var d=this.getChoices(e,d,f),f=this.showMenuIcons,g=0;g<
d.length;g++){var h=d[g],i;if(h.name){if(i=new c.MenuItem({label:h.name,iconClass:f?h.imageClass:null,onClick:this.makeChoiceCallback(h,e)}),f)if(h.imageClass)a.addClass(i.iconNode,h.spriteClass||"commandSprite");else if(h.image)a.addClass(i.iconNode,"commandImage"),i.iconNode.src=h.image}else i=new c.MenuSeparator;b.addChild(i)}},getChoices:function(a,b,c){return this.choiceCallback?this.choiceCallback.call(b,a,c):null},makeChoiceCallback:function(a,b){return function(c){a.callback&&a.callback.call(a,
b,c)}},hasImage:function(){return this.imageClass||this.image!==d.toUrl("images/none.png")}};l.prototype.constructor=l;var s=window.navigator.platform.indexOf("Mac")!==-1;m.prototype={match:function(a){if(this.keyCode===a.keyCode){if(this.mod1!==(s?a.metaKey:a.ctrlKey))return!1;if(this.mod2!==a.shiftKey)return!1;if(this.mod3!==a.altKey)return!1;if(s&&this.mod4!==a.ctrlKey)return!1;if(!this.domScope)return!0;for(a=a.target;a;){if(a===window.document)break;if(a===this.domScope)return!0;a=a.parentNode}}return!1},
equals:function(a){return!a?!1:this.keyCode!==a.keyCode?!1:this.mod1!==a.mod1?!1:this.mod2!==a.mod2?!1:this.mod3!==a.mod3?!1:this.mod4!==a.mod4?!1:this.domScope!==a.domScope?!1:!0}};m.prototype.constructor=m;n.prototype={match:function(a){a=f.matchResourceParameters(a);return typeof a[this.token]!=="undefined"?(this.parameterValue=a[this.token],this):null}};n.prototype.constructor=n;o.prototype={optionsRequested:function(){return this.optionsRequested}};o.prototype.constructor=o;p.prototype={_storeParameters:function(a){this.parameterTable=
null;if(a){this.parameterTable={};for(var b=0;b<a.length;b++)this.parameterTable[a[b].name]=a[b]}},updateParameters:function(a){typeof this.getParameters==="function"&&this._storeParameters(this.getParameters(a))},hasParameters:function(){return this.parameterTable!==null},shouldCollectParameters:function(){return!this._clientCollect&&this.hasParameters()},parameterNamed:function(a){return this.parameterTable[a]},valueFor:function(a){return(a=this.parameterTable[a])?a.value:null},setValue:function(a,
b){var c=this.parameterTable[a];if(c)c.value=b},forEach:function(a){for(var b in this.parameterTable)this.parameterTable[b].type&&this.parameterTable[b].name&&a(this.parameterTable[b])},makeCopy:function(){var a=[];this.forEach(function(b){b=new o(b.name,b.type,b.label,b.value,b.lines);a.push(b)});return new p(a,this._options,this.getParameters)},hasOptionalParameters:function(){return this._hasOptionalParameters}};p.prototype.constructor=p;return{CommandService:j,CommandKeyBinding:m,Command:l,CommandInvocation:i,
CommandMenuItem:r,URLBinding:n,ParametersDescription:p,CommandParameter:o,CommandTooltip:q}});define("orion/navigate/nls/messages",["orion/i18n!orion/navigate/nls/messages"],function(b){var d={root:!0};Object.keys(b).forEach(function(a){typeof d[a]==="undefined"&&(d[a]=b[a])});return d});
define("orion/navigate/nls/root/messages",{"Click one of the tasks below to create an Orion folder.  You can upload, import, or generate files.":"Click one of the tasks below to create an Orion folder.  You can upload, import, or generate files.","Toggle Left Pane":"Toggle Left Pane","Open or close the left pane":"Open or close the left pane",Navigator:"Navigator","Strings Xtrnalizr":"Strings Xtrnalizr","Externalize Strings from JavaScript files in this folder":"Externalize Strings from JavaScript files in this folder",
"Choose a Folder":"Choose a Folder","could not find toolbar ":"could not find toolbar ","Copy of ${0}":"Copy of ${0}","Enter a new name for '${0}'":"Enter a new name for '${0}'","Choose folder...":"Choose folder...",Rename:"Rename","Rename the selected files or folders":"Rename the selected files or folders",Delete:"Delete","Unknown item":"Unknown item","Make Favorite":"Make Favorite","Delete the selected files or folders":"Delete the selected files or folders","Are you sure you want to delete these ${0} items?":"Are you sure you want to delete these ${0} items?",
"Are you sure you want to delete '${0}'?":"Are you sure you want to delete '${0}'?","Are you sure you want to delete '${0}' from the favorites?":"Are you sure you want to delete '${0}' from the favorites?","Are you sure you want to delete these ${0} favorites?":"Are you sure you want to delete these ${0} favorites?","You can create favorites by selecting any file or folder in the navigator and choosing ${0} from the More menu.":"You can create favorites by selecting any file or folder in the navigator and choosing ${0} from the More menu.",
"Export as zip":"Export as zip","Create a zip file of the folder contents and download it":"Create a zip file of the folder contents and download it","New File":"New File","Create a new file":"Create a new file","New Folder":"New Folder","Folder name:":"Folder name:","Create a new folder":"Create a new folder","Creating folder":"Creating folder",Folder:"Folder","Create an empty folder":"Create an empty folder","Create an empty folder on the Orion server.  You can import, upload, or create content in the editor.":"Create an empty folder on the Orion server.  You can import, upload, or create content in the editor.",
"Sample HTML5 Site":"Sample HTML5 Site","Generate a sample":"Generate a sample",'Generate an HTML5 "Hello World" website, including JavaScript, HTML, and CSS files.':'Generate an HTML5 "Hello World" website, including JavaScript, HTML, and CSS files.',"Creating a folder for ${0}":"Creating a folder for ${0}","SFTP Import":"SFTP Import","Import content from SFTP":"Import content from SFTP","Import content from an SFTP location into an Orion folder.  You will be prompted for the SFTP location and credentials.":"Import content from an SFTP location into an Orion folder.  You will be prompted for the SFTP location and credentials.",
"Imported Content":"Imported Content","Upload a Zip":"Upload a Zip","Upload content from a local zip file":"Upload content from a local zip file","Upload content from a local zip file into an Orion folder.  You will be prompted for the local zip file.":"Upload content from a local zip file into an Orion folder.  You will be prompted for the local zip file.","Uploaded Content":"Uploaded Content","Creating an upload folder for ":"Creating an upload folder for ","Clone Git Repository":"Clone Git Repository",
"Clone a git repository":"Clone a git repository","Go to the Orion repositories page to provide a git repository URL.  Once the repository is created, it will appear in the Navigator.":"Go to the Orion repositories page to provide a git repository URL.  Once the repository is created, it will appear in the Navigator.","Link to Server":"Link to Server","Link to existing content on the server":"Link to existing content on the server","Create a folder that links to an existing folder on the server.":"Create a folder that links to an existing folder on the server.",
"Server path:":"Server path:","The name and server location were not specified.":"The name and server location were not specified.","Go Up":"Go Up","Move up to the parent folder":"Move up to the parent folder","Import local file...":"Import local file...","Copy files and folders from your local file system":"Copy files and folders from your local file system","SFTP from...":"SFTP from...","Copy files and folders from a specified SFTP connection":"Copy files and folders from a specified SFTP connection",
"Importing from ":"Importing from ","SFTP to...":"SFTP to...","Copy files and folders to a specified SFTP location":"Copy files and folders to a specified SFTP location","Exporting from ":"Exporting from ","Copy to":"Copy to","Move to":"Move to","Move files and folders to a new location":"Move files and folders to a new location","Copy Items":"Copy Items","Copy the selected items to the copy/paste buffer":"Copy the selected items to the copy/paste buffer","Paste Items":"Paste Items","Paste items from the copy/paste buffer":"Paste items from the copy/paste buffer",
"Cannot paste into the Workspace root":"Cannot paste into the Workspace root","Open With":"Open With","Loading ":"Loading ",New:"New","Click on an item to make a selection, then use this menu to see what actions are available.":"Click on an item to make a selection, then use this menu to see what actions are available.",Actions:"Actions"});
define("dojo/date",["dojo"],function(b){b.getObject("date",!0,b);b.date.getDaysInMonth=function(d){var a=d.getMonth(),c=[31,28,31,30,31,30,31,31,30,31,30,31];return a==1&&b.date.isLeapYear(d)?29:c[a]};b.date.isLeapYear=function(b){b=b.getFullYear();return!(b%400)||!(b%4)&&!!(b%100)};b.date.getTimezoneName=function(b){var a=b.toString(),c="",e=a.indexOf("(");if(e>-1)c=a.substring(++e,a.indexOf(")"));else if(e=/([A-Z\/]+) \d{4}$/,a=a.match(e))c=a[1];else if(a=b.toLocaleString(),e=/ ([A-Z\/]+)$/,a=a.match(e))c=
a[1];return c=="AM"||c=="PM"?"":c};b.date.compare=function(b,a,c){b=new Date(+b);a=new Date(+(a||new Date));c=="date"?(b.setHours(0,0,0,0),a.setHours(0,0,0,0)):c=="time"&&(b.setFullYear(0,0,0),a.setFullYear(0,0,0));return b>a?1:b<a?-1:0};b.date.add=function(b,a,c){var e=new Date(+b),f=!1,g="Date";switch(a){case "day":break;case "weekday":var h;(a=c%5)?h=parseInt(c/5):(a=c>0?5:-5,h=c>0?(c-5)/5:(c+5)/5);var i=b.getDay(),j=0;i==6&&c>0?j=1:i==0&&c<0&&(j=-1);i+=a;if(i==0||i==6)j=c>0?2:-2;c=7*h+a+j;break;
case "year":g="FullYear";f=!0;break;case "week":c*=7;break;case "quarter":c*=3;case "month":f=!0;g="Month";break;default:g="UTC"+a.charAt(0).toUpperCase()+a.substring(1)+"s"}if(g)e["set"+g](e["get"+g]()+c);f&&e.getDate()<b.getDate()&&e.setDate(0);return e};b.date.difference=function(d,a,c){var a=a||new Date,c=c||"day",e=a.getFullYear()-d.getFullYear(),f=1;switch(c){case "quarter":d=d.getMonth();a=a.getMonth();d=Math.floor(d/3)+1;a=Math.floor(a/3)+1;a+=e*4;f=a-d;break;case "weekday":e=Math.round(b.date.difference(d,
a,"day"));c=parseInt(b.date.difference(d,a,"week"));if(e%7==0)e=c*5;else{var f=0,g=d.getDay(),h=a.getDay(),c=parseInt(e/7),a=e%7,d=new Date(d);d.setDate(d.getDate()+c*7);d=d.getDay();if(e>0)switch(!0){case g==6:f=-1;break;case g==0:f=0;break;case h==6:f=-1;break;case h==0:f=-2;break;case d+a>5:f=-2}else if(e<0)switch(!0){case g==6:f=0;break;case g==0:f=1;break;case h==6:f=2;break;case h==0:f=1;break;case d+a<0:f=2}e+=f;e-=c*2}f=e;break;case "year":f=e;break;case "month":f=a.getMonth()-d.getMonth()+
e*12;break;case "week":f=parseInt(b.date.difference(d,a,"day")/7);break;case "day":f/=24;case "hour":f/=60;case "minute":f/=60;case "second":f/=1E3;case "millisecond":f*=a.getTime()-d.getTime()}return Math.round(f)};return b.date});
define("dojo/cldr/supplemental",["dojo","dojo/i18n"],function(b){b.getObject("cldr.supplemental",!0,b);b.cldr.supplemental.getFirstDayOfWeek=function(d){d={mv:5,ae:6,af:6,bh:6,dj:6,dz:6,eg:6,er:6,et:6,iq:6,ir:6,jo:6,ke:6,kw:6,ly:6,ma:6,om:6,qa:6,sa:6,sd:6,so:6,sy:6,tn:6,ye:6,ar:0,as:0,az:0,bw:0,ca:0,cn:0,fo:0,ge:0,gl:0,gu:0,hk:0,il:0,"in":0,jm:0,jp:0,kg:0,kr:0,la:0,mh:0,mn:0,mo:0,mp:0,mt:0,nz:0,ph:0,pk:0,sg:0,th:0,tt:0,tw:0,um:0,us:0,uz:0,vi:0,zw:0}[b.cldr.supplemental._region(d)];return d===void 0?
1:d};b.cldr.supplemental._region=function(d){var d=b.i18n.normalizeLocale(d),d=d.split("-"),a=d[1];a?a.length==4&&(a=d[2]):a={de:"de",en:"us",es:"es",fi:"fi",fr:"fr",he:"il",hu:"hu",it:"it",ja:"jp",ko:"kr",nl:"nl",pt:"br",sv:"se",zh:"cn"}[d[0]];return a};b.cldr.supplemental.getWeekend=function(d){var a=b.cldr.supplemental._region(d),d={"in":0,af:4,dz:4,ir:4,om:4,sa:4,ye:4,ae:5,bh:5,eg:5,il:5,iq:5,jo:5,kw:5,ly:5,ma:5,qa:5,sd:5,sy:5,tn:5}[a],a={af:5,dz:5,ir:5,om:5,sa:5,ye:5,ae:6,bh:5,eg:6,il:6,iq:6,
jo:6,kw:6,ly:6,ma:6,qa:6,sd:6,sy:6,tn:6}[a];d===void 0&&(d=6);a===void 0&&(a=0);return{start:d,end:a}};return b.cldr.supplemental});
define("dojo/regexp",["dojo"],function(b){b.getObject("regexp",!0,b);b.regexp.escapeString=function(b,a){return b.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(b){return a&&a.indexOf(b)!=-1?b:"\\"+b})};b.regexp.buildGroupRE=function(d,a,c){if(!(d instanceof Array))return a(d);for(var e=[],f=0;f<d.length;f++)e.push(a(d[f]));return b.regexp.group(e.join("|"),c)};b.regexp.group=function(b,a){return"("+(a?"?:":"")+b+")"};return b.regexp});
define("dojo/cldr/nls/gregorian",{root:{"months-format-narrow":"1,2,3,4,5,6,7,8,9,10,11,12".split(","),"quarters-standAlone-narrow":["1","2","3","4"],"field-weekday":"Day of the Week","dateFormatItem-yQQQ":"y QQQ","dateFormatItem-yMEd":"EEE, y-M-d","dateFormatItem-MMMEd":"E MMM d",eraNarrow:["BCE","CE"],"dateTimeFormats-appendItem-Day-Of-Week":"{0} {1}","dateFormat-long":"y MMMM d","months-format-wide":"1,2,3,4,5,6,7,8,9,10,11,12".split(","),"dateTimeFormat-medium":"{1} {0}","dateFormatItem-EEEd":"d EEE",
"dayPeriods-format-wide-pm":"PM","dateFormat-full":"EEEE, y MMMM dd","dateFormatItem-Md":"M-d","dayPeriods-format-abbr-am":"AM","dateTimeFormats-appendItem-Second":"{0} ({2}: {1})","field-era":"Era","dateFormatItem-yM":"y-M","months-standAlone-wide":"1,2,3,4,5,6,7,8,9,10,11,12".split(","),"timeFormat-short":"HH:mm","quarters-format-wide":["Q1","Q2","Q3","Q4"],"timeFormat-long":"HH:mm:ss z","field-year":"Year","dateFormatItem-yMMM":"y MMM","dateFormatItem-yQ":"y Q","dateTimeFormats-appendItem-Era":"{0} {1}",
"field-hour":"Hour","months-format-abbr":"1,2,3,4,5,6,7,8,9,10,11,12".split(","),"timeFormat-full":"HH:mm:ss zzzz","dateTimeFormats-appendItem-Week":"{0} ({2}: {1})","field-day-relative+0":"Today","field-day-relative+1":"Tomorrow","dateFormatItem-H":"HH","months-standAlone-abbr":"1,2,3,4,5,6,7,8,9,10,11,12".split(","),"quarters-format-abbr":["Q1","Q2","Q3","Q4"],"quarters-standAlone-wide":["Q1","Q2","Q3","Q4"],"dateFormatItem-M":"L","days-standAlone-wide":"1,2,3,4,5,6,7".split(","),"timeFormat-medium":"HH:mm:ss",
"dateFormatItem-Hm":"HH:mm","quarters-standAlone-abbr":["Q1","Q2","Q3","Q4"],eraAbbr:["BCE","CE"],"field-minute":"Minute","field-dayperiod":"Dayperiod","days-standAlone-abbr":"1,2,3,4,5,6,7".split(","),"dateFormatItem-d":"d","dateFormatItem-ms":"mm:ss","quarters-format-narrow":["1","2","3","4"],"field-day-relative+-1":"Yesterday","dateFormatItem-h":"h a","dateTimeFormat-long":"{1} {0}","dayPeriods-format-narrow-am":"AM","dateFormatItem-MMMd":"MMM d","dateFormatItem-MEd":"E, M-d","dateTimeFormat-full":"{1} {0}",
"field-day":"Day","days-format-wide":"1,2,3,4,5,6,7".split(","),"field-zone":"Zone","dateTimeFormats-appendItem-Day":"{0} ({2}: {1})","dateFormatItem-y":"y","months-standAlone-narrow":"1,2,3,4,5,6,7,8,9,10,11,12".split(","),"dateFormatItem-hm":"h:mm a","dateTimeFormats-appendItem-Year":"{0} {1}","dateTimeFormats-appendItem-Hour":"{0} ({2}: {1})","dayPeriods-format-abbr-pm":"PM","days-format-abbr":"1,2,3,4,5,6,7".split(","),eraNames:["BCE","CE"],"days-format-narrow":"1,2,3,4,5,6,7".split(","),"days-standAlone-narrow":"1,2,3,4,5,6,7".split(","),
"dateFormatItem-MMM":"LLL","field-month":"Month","dateTimeFormats-appendItem-Quarter":"{0} ({2}: {1})","dayPeriods-format-wide-am":"AM","dateTimeFormats-appendItem-Month":"{0} ({2}: {1})","dateTimeFormats-appendItem-Minute":"{0} ({2}: {1})","dateFormat-short":"yyyy-MM-dd","field-second":"Second","dateFormatItem-yMMMEd":"EEE, y MMM d","dateTimeFormats-appendItem-Timezone":"{0} {1}","field-week":"Week","dateFormat-medium":"y MMM d","dayPeriods-format-narrow-pm":"PM","dateTimeFormat-short":"{1} {0}",
"dateFormatItem-Hms":"HH:mm:ss","dateFormatItem-hms":"h:mm:ss a"},ar:!0,ca:!0,cs:!0,da:!0,de:!0,el:!0,en:!0,"en-au":!0,"en-ca":!0,"en-gb":!0,es:!0,fi:!0,fr:!0,"fr-ch":!0,he:!0,hu:!0,it:!0,ja:!0,ko:!0,nb:!0,nl:!0,pl:!0,pt:!0,"pt-pt":!0,ro:!0,ru:!0,sk:!0,sl:!0,sv:!0,th:!0,tr:!0,zh:!0,"zh-hant":!0,"zh-hk":!0,"zh-tw":!0});
define("dojo/cldr/nls/en/gregorian",{"dateFormatItem-yM":"M/y","field-dayperiod":"AM/PM","dateFormatItem-yQ":"Q y","dayPeriods-format-wide-pm":"PM","field-minute":"Minute",eraNames:["Before Christ","Anno Domini"],"dateFormatItem-MMMEd":"E, MMM d","dateTimeFormat-full":"{1} {0}","field-day-relative+-1":"Yesterday","field-weekday":"Day of the Week","dateFormatItem-hms":"h:mm:ss a","dateFormatItem-yQQQ":"QQQ y","days-standAlone-wide":"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),
"dateFormatItem-MMM":"LLL","months-standAlone-narrow":"J,F,M,A,M,J,J,A,S,O,N,D".split(","),"dateTimeFormat-short":"{1} {0}","field-era":"Era","field-hour":"Hour","dayPeriods-format-wide-am":"AM","dateTimeFormat-medium":"{1} {0}","dateFormatItem-y":"y","timeFormat-full":"h:mm:ss a zzzz","months-standAlone-abbr":"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),"dateFormatItem-yMMM":"MMM y","field-day-relative+0":"Today","field-day-relative+1":"Tomorrow","days-standAlone-narrow":"S,M,T,W,T,F,S".split(","),
eraAbbr:["BC","AD"],"dateFormat-long":"MMMM d, y","timeFormat-medium":"h:mm:ss a","dateFormatItem-EEEd":"d EEE","field-zone":"Zone","dateFormatItem-Hm":"HH:mm","dateFormat-medium":"MMM d, y","dateFormatItem-Hms":"HH:mm:ss","quarters-standAlone-wide":["1st quarter","2nd quarter","3rd quarter","4th quarter"],"dateFormatItem-ms":"mm:ss","field-year":"Year","quarters-standAlone-narrow":["1","2","3","4"],"dateTimeFormat-long":"{1} {0}","field-week":"Week","months-standAlone-wide":"January,February,March,April,May,June,July,August,September,October,November,December".split(","),
"dateFormatItem-MMMd":"MMM d","timeFormat-long":"h:mm:ss a z","months-format-abbr":"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),"dayPeriods-format-wide-noon":"noon","timeFormat-short":"h:mm a","field-month":"Month","quarters-format-abbr":["Q1","Q2","Q3","Q4"],"days-format-abbr":"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(","),"dateFormatItem-M":"L","days-format-narrow":"S,M,T,W,T,F,S".split(","),"field-second":"Second","field-day":"Day","dateFormatItem-MEd":"E, M/d","months-format-narrow":"J,F,M,A,M,J,J,A,S,O,N,D".split(","),
"dateFormatItem-hm":"h:mm a","days-standAlone-abbr":"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(","),"dateFormat-short":"M/d/yy","dateFormatItem-yMMMEd":"EEE, MMM d, y","dateFormat-full":"EEEE, MMMM d, y","dateFormatItem-Md":"M/d","dateFormatItem-yMEd":"EEE, M/d/y","months-format-wide":"January,February,March,April,May,June,July,August,September,October,November,December".split(","),"dateFormatItem-d":"d","quarters-format-wide":["1st quarter","2nd quarter","3rd quarter","4th quarter"],"days-format-wide":"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),
eraNarrow:["B","A"]});
define("dojo/date/locale","dojo,dojo/date,dojo/cldr/supplemental,dojo/regexp,dojo/string,dojo/i18n,i18n!dojo/cldr/nls/gregorian".split(","),function(b){b.getObject("date.locale",!0,b);(function(){function d(a,c,d,h){return h.replace(/([a-z])\1*/ig,function(i){var j,k,l=i.charAt(0),i=i.length,m=["abbr","wide","narrow"];switch(l){case "G":j=c[i<4?"eraAbbr":"eraNames"][a.getFullYear()<0?0:1];break;case "y":j=a.getFullYear();switch(i){case 1:break;case 2:if(!d.fullYear){j=String(j);j=j.substr(j.length-
2);break}default:k=!0}break;case "Q":case "q":j=Math.ceil((a.getMonth()+1)/3);k=!0;break;case "M":j=a.getMonth();i<3?(j+=1,k=!0):(l=["months-format",m[i-3]].join("-"),j=c[l][j]);break;case "w":j=b.date.locale._getWeekOfYear(a,0);k=!0;break;case "d":j=a.getDate();k=!0;break;case "D":j=b.date.locale._getDayOfYear(a);k=!0;break;case "E":j=a.getDay();i<3?(j+=1,k=!0):(l=["days-format",m[i-3]].join("-"),j=c[l][j]);break;case "a":j=a.getHours()<12?"am":"pm";j=d[j]||c["dayPeriods-format-wide-"+j];break;case "h":case "H":case "K":case "k":k=
a.getHours();switch(l){case "h":j=k%12||12;break;case "H":j=k;break;case "K":j=k%12;break;case "k":j=k||24}k=!0;break;case "m":j=a.getMinutes();k=!0;break;case "s":j=a.getSeconds();k=!0;break;case "S":j=Math.round(a.getMilliseconds()*Math.pow(10,i-3));k=!0;break;case "v":case "z":if(j=b.date.locale._getZone(a,!0,d))break;i=4;case "Z":j=b.date.locale._getZone(a,!1,d);j=[j<=0?"+":"-",b.string.pad(Math.floor(Math.abs(j)/60),2),b.string.pad(Math.abs(j)%60,2)];i==4&&(j.splice(0,0,"GMT"),j.splice(3,0,":"));
j=j.join("");break;default:throw Error("dojo.date.locale.format: invalid pattern char: "+h);}k&&(j=b.string.pad(j,i));return j})}function a(a,c,d,h){var i=function(a){return a},c=c||i,d=d||i,h=h||i,j=a.match(/(''|[^'])+/g),k=a.charAt(0)=="'";b.forEach(j,function(a,b){a?(j[b]=(k?d:c)(a.replace(/''/g,"'")),k=!k):j[b]=""});return h(j.join(""))}function c(a,c,d,h){h=b.regexp.escapeString(h);d.strict||(h=h.replace(" a"," ?a"));return h.replace(/([a-z])\1*/ig,function(b){var h;h=b.charAt(0);var k=b.length,
l="",m="";d.strict?(k>1&&(l="0{"+(k-1)+"}"),k>2&&(m="0{"+(k-2)+"}")):(l="0?",m="0{0,2}");switch(h){case "y":h="\\d{2,4}";break;case "M":h=k>2?"\\S+?":"1[0-2]|"+l+"[1-9]";break;case "D":h="[12][0-9][0-9]|3[0-5][0-9]|36[0-6]|"+m+"[1-9][0-9]|"+l+"[1-9]";break;case "d":h="3[01]|[12]\\d|"+l+"[1-9]";break;case "w":h="[1-4][0-9]|5[0-3]|"+l+"[1-9]";break;case "E":h="\\S+";break;case "h":h="1[0-2]|"+l+"[1-9]";break;case "k":h="1[01]|"+l+"\\d";break;case "H":h="1\\d|2[0-3]|"+l+"\\d";break;case "K":h="1\\d|2[0-4]|"+
l+"[1-9]";break;case "m":case "s":h="[0-5]\\d";break;case "S":h="\\d{"+k+"}";break;case "a":k=d.am||c["dayPeriods-format-wide-am"];l=d.pm||c["dayPeriods-format-wide-pm"];h=k+"|"+l;d.strict||(k!=k.toLowerCase()&&(h+="|"+k.toLowerCase()),l!=l.toLowerCase()&&(h+="|"+l.toLowerCase()),h.indexOf(".")!=-1&&(h+="|"+h.replace(/\./g,"")));h=h.replace(/\./g,"\\.");break;default:h=".*"}a&&a.push(b);return"("+h+")"}).replace(/[\xa0 ]/g,"[\\s\\xa0]")}b.date.locale._getZone=function(a,c){return c?b.date.getTimezoneName(a):
a.getTimezoneOffset()};b.date.locale.format=function(c,f){var f=f||{},g=b.i18n.normalizeLocale(f.locale),h=f.formatLength||"short",g=b.date.locale._getGregorianBundle(g),i=[],j=b.hitch(this,d,c,g,f);if(f.selector=="year")return a(g["dateFormatItem-yyyy"]||"yyyy",j);var k;f.selector!="date"&&(k=f.timePattern||g["timeFormat-"+h])&&i.push(a(k,j));f.selector!="time"&&(k=f.datePattern||g["dateFormat-"+h])&&i.push(a(k,j));return i.length==1?i[0]:g["dateTimeFormat-"+h].replace(/\{(\d+)\}/g,function(a,b){return i[b]})};
b.date.locale.regexp=function(a){return b.date.locale._parseInfo(a).regexp};b.date.locale._parseInfo=function(e){var e=e||{},d=b.i18n.normalizeLocale(e.locale),d=b.date.locale._getGregorianBundle(d),g=e.formatLength||"short",h=e.datePattern||d["dateFormat-"+g],i=e.timePattern||d["timeFormat-"+g],g=e.selector=="date"?h:e.selector=="time"?i:d["dateTimeFormat-"+g].replace(/\{(\d+)\}/g,function(a,b){return[i,h][b]}),j=[];return{regexp:a(g,b.hitch(this,c,j,d,e)),tokens:j,bundle:d}};b.date.locale.parse=
function(a,c){var d=/[\u200E\u200F\u202A\u202E]/g,h=b.date.locale._parseInfo(c),i=h.tokens,j=h.bundle,d=RegExp("^"+h.regexp.replace(d,"")+"$",h.strict?"":"i").exec(a&&a.replace(d,""));if(!d)return null;var k=["abbr","wide","narrow"],l=[1970,0,1,0,0,0,0],m="",d=b.every(d,function(a,e){if(!e)return!0;var d=i[e-1],g=d.length;switch(d.charAt(0)){case "y":if(g!=2&&c.strict)l[0]=a;else if(a<100)a=Number(a),g=""+(new Date).getFullYear(),d=g.substring(0,2)*100,g=Math.min(Number(g.substring(2,4))+20,99),l[0]=
a<g?d+a:d-100+a;else{if(c.strict)return!1;l[0]=a}break;case "M":if(g>2){if(d=j["months-format-"+k[g-3]].concat(),c.strict||(a=a.replace(".","").toLowerCase(),d=b.map(d,function(a){return a.replace(".","").toLowerCase()})),a=b.indexOf(d,a),a==-1)return!1}else a--;l[1]=a;break;case "E":case "e":d=j["days-format-"+k[g-3]].concat();c.strict||(a=a.toLowerCase(),d=b.map(d,function(a){return a.toLowerCase()}));a=b.indexOf(d,a);if(a==-1)return!1;break;case "D":l[1]=0;case "d":l[2]=a;break;case "a":d=c.am||
j["dayPeriods-format-wide-am"];g=c.pm||j["dayPeriods-format-wide-pm"];if(!c.strict)var h=/\./g,a=a.replace(h,"").toLowerCase(),d=d.replace(h,"").toLowerCase(),g=g.replace(h,"").toLowerCase();if(c.strict&&a!=d&&a!=g)return!1;m=a==g?"p":a==d?"a":"";break;case "K":a==24&&(a=0);case "h":case "H":case "k":if(a>23)return!1;l[3]=a;break;case "m":l[4]=a;break;case "s":l[5]=a;break;case "S":l[6]=a}return!0}),h=+l[3];m==="p"&&h<12?l[3]=h+12:m==="a"&&h==12&&(l[3]=0);h=new Date(l[0],l[1],l[2],l[3],l[4],l[5],
l[6]);c.strict&&h.setFullYear(l[0]);var n=i.join(""),o=n.indexOf("d")!=-1,n=n.indexOf("M")!=-1;if(!d||n&&h.getMonth()>l[1]||o&&h.getDate()>l[2])return null;if(n&&h.getMonth()<l[1]||o&&h.getDate()<l[2])h=b.date.add(h,"hour",1);return h}})();(function(){var d=[];b.date.locale.addCustomFormats=function(a,b){d.push({pkg:a,name:b})};b.date.locale._getGregorianBundle=function(a){var c={};b.forEach(d,function(e){e=b.i18n.getLocalization(e.pkg,e.name,a);c=b.mixin(c,e)},this);return c}})();b.date.locale.addCustomFormats("dojo.cldr",
"gregorian");b.date.locale.getNames=function(d,a,c,e){var f,e=b.date.locale._getGregorianBundle(e),d=[d,c,a];c=="standAlone"&&(c=d.join("-"),f=e[c],f[0]==1&&(f=void 0));d[1]="format";return(f||e[d.join("-")]).concat()};b.date.locale.isWeekend=function(d,a){var c=b.cldr.supplemental.getWeekend(a),e=(d||new Date).getDay();c.end<c.start&&(c.end+=7,e<c.start&&(e+=7));return e>=c.start&&e<=c.end};b.date.locale._getDayOfYear=function(d){return b.date.difference(new Date(d.getFullYear(),0,1,d.getHours()),
d)+1};b.date.locale._getWeekOfYear=function(d,a){arguments.length==1&&(a=0);var c=(new Date(d.getFullYear(),0,1)).getDay(),e=Math.floor((b.date.locale._getDayOfYear(d)+(c-a+7)%7-1)/7);c==a&&e++;return e};return b.date.locale});define("text!orion/widgets/templates/LoginDialog.html",[],function(){return'\n<div>\n\t<div class="dijitTooltipContainer" role="presentation" style="width: 300px; padding-left: 0; padding-right: 0; padding-top: 0; padding-bottom: 0.45em">\n\t\t<div class="dijitTooltipContents dijitTooltipFocusNode" role="dialog"\n\t\t\tdojoattachpoint="containerNode" style="padding: 0">\n\t\t\t<table style="width: 100%;">\n\t\t\t\t<tr>\n\t\t\t\t\t<td style="text-align: left; vertical-align: top;">\n\t\t\t\t\t\t<h2 dojoAttachPoint="emptyListInfo" class="LoginWindowLeft">No authentication required.</h2>\n\t\t\t\t\t\t<table dojoAttachPoint="authenticated" style="display: none; width: 100%;">\n\t\t\t\t\t\t\t<tbody dojoAttachPoint="authenticatedList">\n\t\t\t\t\t\t\t</tbody>\n\t\t\t\t\t\t</table>\n\t\t\t\t\t\t<table dojoAttachPoint="otherUnauthenticated" style="display: none; width: 100%;">\n\t\t\t\t\t\t\t<tbody dojoAttachPoint="otherUnauthenticatedList">\n\t\t\t\t\t\t\t</tbody>\n\t\t\t\t\t\t</table>\n\t\t\t\t\t</td>\n\t\t\t\t\t<td style="text-align: right; vertical-align: top; padding-right: 2px; margin: 0">\n\t\t\t\t\t\t<span dojoAttachPoint="closeLink" role="button" title="Close"></span>\n\t\t\t\t\t</td>\n\t\t\t\t</tr>\n\t\t\t</table>\n\t\t</div>\n\t</div>\n\t<div class="dijitTooltipConnector" role="presentation"></div>\n\n</div>'});
define("orion/widgets/nls/messages",["orion/i18n!orion/widgets/nls/messages"],function(b){var d={root:!0};Object.keys(b).forEach(function(a){typeof d[a]==="undefined"&&(d[a]=b[a])});return d});
define("orion/widgets/nls/root/messages",{"no input":"no input","no output":"no output","Choose a Folder":"Choose a Folder",OK:"OK",Profile:"Profile","Sign out":"Sign out","N/A":"N/A","logged in since ":"logged in since ","Sign in":"Sign in","Authentication required!":"Authentication required!","Name:":"Name:","Plug-ins":"Plug-ins"," <No available services or timed out, check URL and try reloading>":" <No available services or timed out, check URL and try reloading>",Properties:"Properties"," (Service Id: ":" (Service Id: ",
Services:"Services","SFTP Transfer":"SFTP Transfer","Remote host:":"Remote host:","Remote path:":"Remote path:","User name:":"User name:","Password:":"Password:","Start Transfer":"Start Transfer","Location:":"Location:","orion.sftpConnections":"orion.sftpConnections","Drag a File or Zip here":"Drag a File or Zip here","or if you prefer":"or if you prefer","Browse...":"Browse...","Import a file or zip":"Import a file or zip","Missing required argument: searchRenderer":"Missing required argument: searchRenderer",
"Missing required argument: favService":"Missing required argument: favService","Find File Named":"Find File Named","Type the name of a file to open (? = any character, * = any string):":"Type the name of a file to open (? = any character, * = any string):",Search:"Search","Populating favorites&#x2026;":"Populating favorites&#x2026;",Favorite:"Favorite","Searching&#x2026;":"Searching&#x2026;",name:"name","orion.widgets.UserMenu":"orion.widgets.UserMenu",test:"test","Sign Out":"Sign Out","Sign Out ":"Sign Out ",
"</a>":"</a>",">":">","Sign In To ":"Sign In To ","Sign In":"Sign In",Help:"Help","Keyboard Shortcuts":"Keyboard Shortcuts",Settings:"Settings","View profile of ":"View profile of ",Profiles:"Profiles","Information Needed":"Information Needed",Cancel:"Cancel","Sorry, the Console is not supported on your browser.":"Sorry, the Console is not supported on your browser."});
define("orion/widgets/LoginDialog","i18n!orion/widgets/nls/messages,require,dojo,dijit,orion/util,dijit/TooltipDialog,text!orion/widgets/templates/LoginDialog.html".split(","),function(b,d,a,c){a.declare("orion.widgets.LoginDialog",[c.TooltipDialog],{widgetsInTemplate:!0,templateString:a.cache("orion","widgets/templates/LoginDialog.html"),constructor:function(){this.inherited(arguments);this.options=arguments[0]||{};this.authenticatedServices={};this.unauthenticatedServices={}},postCreate:function(){this.inherited(arguments);
var b=this;a.addClass(this.closeLink,"imageSprite");a.addClass(this.closeLink,"core-sprite-close");a.connect(this.closeLink,"onmouseover",this.closeLink,function(){b.closeLink.style.cursor="pointer"});a.connect(this.closeLink,"onmouseout",this.closeLink,function(){b.closeLink.style.cursor="default"});a.connect(this.closeLink,"onclick",function(){a.hitch(b,b.closeDialog)()})},setPendingAuthentication:function(a){for(var b in this.unauthenticatedServices)delete this.unauthenticatedServices[b].pending;
for(b in a)this.unauthenticatedServices[a[b].SignInKey]?this.unauthenticatedServices[a[b].SignInKey].pending=!0:this.authenticatedServices[a[b].SignInKey]?(this.unauthenticatedServices[a[b].SignInKey]=this.authenticatedServices[a[b].SignInKey],this.unauthenticatedServices[a[b].SignInKey].pending=!0,delete this.authenticatedServices[a[b].SignInKey]):this.unauthenticatedServices[a[b].SignInKey]={label:a[b].label,SignInLocation:a[b].SignInLocation,pending:!0};this.renderUnauthenticatedServices();this.renderAuthenticatedServices()},
authenticatedService:function(a){this.unauthenticatedServices[a]&&!this.unauthenticatedServices[a].authService&&(this.authenticatedServices[a]=this.unauthenticatedServices[a],delete this.unauthenticatedServices[a])},addUserItem:function(b,c,d,h){h?(this.unauthenticatedServices[b]&&delete this.unauthenticatedServices[b],this.authenticatedServices[b]={authService:c,label:d,data:h}):(this.authenticatedServices[b]&&delete this.authenticatedServices[b],this.unauthenticatedServices[b]=this.unauthenticatedServices[b]?
{authService:c,label:d,pending:this.unauthenticatedServices[b].pending}:{authService:c,label:d});a.hitch(this,this.renderAuthenticatedServices)();a.hitch(this,this.renderUnauthenticatedServices)()},renderAuthenticatedServices:function(){a.empty(this.authenticatedList);this.authenticated.style.display=this.isEmpty(this.authenticatedServices)?"none":"";var c=this,f=!0,g;for(g in this.authenticatedServices){if(!f){var h=a.create("tr",null,this.authenticatedList);a.create("td",{style:"padding: 0; margin 0;",
colspan:2,innerHTML:"<hr style='border-bottom: medium none; border-top: 1px solid #D3D3D3; color: gray; height: 0; margin: 2px;'>"},h)}var f=!1,h=a.create("tr",{className:"navTableHeading"}),i=this.authenticatedServices[g].authService,j=a.create("td",null,h,"only"),k=a.create("h2",null,j,"only");if(i)i.getAuthForm?a.hitch(c,function(a,b){i.getAuthForm(eclipse.globalCommandUtils.notifyAuthenticationSite).then(function(d){if(c.authenticatedServices[b].label)a.innerHTML=c.authenticatedServices[b].label+
"<br>";a.innerHTML+=c.getHostname(d)})})(k,g):k.innerHTML=this.authenticatedServices[g].label?this.authenticatedServices[g].label:g;else{var l=this.authenticatedServices[g].SignInLocation;if(this.authenticatedServices[g].label)k.innerHTML=this.authenticatedServices[g].label+"<br>";k.innerHTML+=this.getHostname(l)}a.addClass(j,"LoginWindowLeft");j=a.create("td",{style:"text-align: right"},h,"last");a.addClass(j,"LoginWindowRight");k=this.authenticatedServices[g].data;i=this.authenticatedServices[g].authService;
if(!i){a.place(h,this.authenticatedList,"last");break}k.Location&&a.create("a",{href:d.toUrl("profile/user-profile.html")+"#"+k.Location,innerHTML:b.Profile},j,"last");a.place(document.createTextNode(" "),j,"last");if(i.logout){var m=a.create("a",{innerHTML:b["Sign out"]},j,"last");a.connect(m,"onmouseover",m,function(){m.style.cursor="pointer"});a.connect(m,"onmouseout",m,function(){m.style.cursor="default"});a.connect(m,"onclick",a.hitch(c,function(b,d){return function(){b.logout().then(a.hitch(c,
function(){this.addUserItem(d,b,this.authenticatedServices[d].label);this.isSingleService()&&this.closeDialog();localStorage.removeItem(d)}))}})(i,g))}a.place(h,this.authenticatedList,"last");j=b["N/A"];k&&k.lastlogintimestamp&&(j=a.date.locale.format(new Date(k.lastlogintimestamp),{formatLength:"short"}));k=k.Name&&k.Name.replace(/^\s+|\s+$/g,"")!==""?k.Name:k.login;h=a.create("tr");j=k.length>40?a.create("td",{innerHTML:k.substring(0,30)+"... "+b["logged in since "]+j,colspan:2,title:k+" "+b["logged in since "]+
j},h,"only"):a.create("td",{innerHTML:k+" "+b["logged in since "]+j,colspan:2},h,"only");a.addClass(j,"LoginWindowLeft");a.addClass(j,"LoginWindowRight");a.addClass(j,"LoginWindowComment");a.place(h,this.authenticatedList,"last")}},renderUnauthenticatedServices:function(){this.emptyListInfo.style.display=this.unauthenticatedServices.length===0&&this.authenticatedServices.length===0?"":"none";a.empty(this.otherUnauthenticatedList);var e=this;this.otherUnauthenticated.style.display=this.isEmpty(this.unauthenticatedServices)?
"none":"";var f=!0,g;for(g in this.unauthenticatedServices){if(!f||!this.isEmpty(this.authenticatedServices)){var h=a.create("tr",null,this.otherUnauthenticatedList);a.create("td",{style:"padding: 0; margin 0;",colspan:2,innerHTML:"<hr style='border-bottom: medium none; border-top: 1px solid #D3D3D3; color: gray; height: 0; margin: 2px;'>"},h)}var f=!1,h=a.create("tr",{className:"navTableHeading"}),i=a.create("td",null,h,"only");a.addClass(i,"LoginWindowLeft");var j=a.create("h2",null,i,"only"),i=
a.create("td",{style:"text-align: right"},h,"last");a.addClass(i,"LoginWindowRight");var k=this.unauthenticatedServices[g].authService,l=eclipse.globalCommandUtils.notifyAuthenticationSite,m=l+(l.indexOf("?")===-1?"?":"&")+"key="+g;if(k)if(k.getAuthForm)a.hitch(e,function(c,d){k.getAuthForm(m).then(function(f){a.create("a",{target:"_blank",href:f,innerHTML:b["Sign in"]},c,"last");if(e.unauthenticatedServices[d].label)j.innerHTML=e.unauthenticatedServices[d].label+"<br>";j.innerHTML+=e.getHostname(f)})})(i,
g);else{if(k.login){a.place(document.createTextNode(this.unauthenticatedServices[g].label?this.unauthenticatedServices[g].label:g),j,"only");var n=a.create("a",{innerHTML:b["Sign in"],style:"cursor: hand;"},i,"last");a.connect(n,"onmouseover",n,function(){n.style.cursor="pointer"});a.connect(n,"onmouseout",n,function(){n.style.cursor="default"});a.connect(n,"onclick",a.hitch(e,function(a){return function(){a.login(m).then(function(){e.isSingleService()&&c.popup.hide&&c.popup.hide(e);c.popup.close(e)})}})(k))}}else{l=
this.unauthenticatedServices[g].SignInLocation;l.indexOf("?")===-1?a.create("a",{target:"_blank",href:l+"?redirect="+encodeURIComponent(m),innerHTML:b["Sign in"]},i,"last"):a.create("a",{target:"_blank",href:l+"&redirect="+encodeURIComponent(m),innerHTML:b["Sign in"]},i,"last");if(this.unauthenticatedServices[g].label)j.innerHTML=this.unauthenticatedServices[g].label+"<br>";j.innerHTML+=this.getHostname(l)}a.place(h,this.otherUnauthenticatedList,"last");this.unauthenticatedServices[g].pending&&(h=
a.create("tr"),i=a.create("td",{innerHTML:b["Authentication required!"],style:"padding-left: 10px",colspan:2},h,"only"),a.addClass(i,"LoginWindowLeft"),a.addClass(i,"LoginWindowRight"),a.create("img",{src:d.toUrl("images/warning.gif"),style:"padding-right: 4px; vertical-align: bottom; padding-bottom: 2px;"},i,"first"),a.place(h,this.otherUnauthenticatedList,"last"))}},isSingleService:function(){return this.length(this.unauthenticatedServices)+this.length(this.authenticatedServices)===1},isEmpty:function(a){for(var b in a)if(a.hasOwnProperty(b))return!1;
return!0},length:function(a){var b=0,c;for(c in a)a.hasOwnProperty(c)&&b++;return b},getHostname:function(a){var b=document.createElement("a");b.href=a;a=b.href;return a.match(/^(?:f|ht)tp(?:s)?:\/\/([^/]+)/im)[1].toString()},closeDialog:function(){c.popup.hide&&c.popup.hide(this);c.popup.close(this)}})});define("orion/search/nls/messages",["orion/i18n!orion/search/nls/messages"],function(b){var d={root:!0};Object.keys(b).forEach(function(a){typeof d[a]==="undefined"&&(d[a]=b[a])});return d});
define("orion/search/nls/root/messages",{"Find:":"Find:","Find With":"Find With","ReplaceWith:":"ReplaceWith:","Replace With":"Replace With","Show all":"Show all","Case sensitive":"Case sensitive","Wrap search":"Wrap search","Incremental search":"Incremental search","Whole Word":"Whole Word","Regular expression":"Regular expression","Find after replace":"Find after replace",Options:"Options","Find next match":"Find next match","Find previous match":"Find previous match",Replace:"Replace","Replace All":"Replace All",
"Not found":"Not found","Replacing all...":"Replacing all..."," matches":" matches","Replaced ":"Replaced ","Nothing replaced":"Nothing replaced","Search ":"Search ","Type a keyword or wild card to search in ":"Type a keyword or wild card to search in ","Search failed.":"Search failed.","No matches found for ":"No matches found for ","Searching...":"Searching...","Resource has been changed by others.":"Resource has been changed by others.","Failed to write file.":"Failed to write file.",Results:"Results",
"Files ${0} of ${1} matching ${2}":"Files ${0} of ${1} matching ${2}","Replace ${0} with ${1} for files ${2} of ${3}":"Replace ${0} with ${1} for files ${2} of ${3}",Location:"Location","Click to compare":"Click to compare",'Search again in this folder with "${0}"':'Search again in this folder with "${0}"',"Files replaced":"Files replaced",Status:"Status","${0} out of ${1}  matches replaced.":"${0} out of ${1}  matches replaced.","Save Search":"Save Search","Save search query":"Save search query",
"Replace all matches with...":"Replace all matches with...","Apply Changes":"Apply Changes","Replace all selected matches":"Replace all selected matches","Hide Compare":"Hide Compare","Hide compare view of changes":"Hide compare view of changes","Show Compare":"Show Compare","Show compare view of changes":"Show compare view of changes","Search Again":"Search Again","Search again":"Search again","< Previous Page":"< Previous Page","Show previous page of search result":"Show previous page of search result",
"Next Page >":"Next Page >","Show next page of search result":"Show next page of search result","Next result":"Next result","Previous result":"Previous result","Expand all results":"Expand all results","Collapse all results":"Collapse all results","Writing files...":"Writing files...","Preparing preview...":"Preparing preview...","Replaced File (${0})":"Replaced File (${0})","Original File (${0})":"Original File (${0})","Sort by Name":"Sort by Name","Compare changes":"Compare changes","Search Results":"Search Results",
"Replace All Matches":"Replace All Matches","No matches":"No matches",Rename:"Rename",Searches:"Searches","You can save frequently used by searches by choosing ${0} in the search toolbar.":"You can save frequently used by searches by choosing ${0} in the search toolbar."});define("orion/editor/regex",[],function(){return{escape:function(b){return b.replace(/([\\$\^*\/+?\.\(\)|{}\[\]])/g,"\\$&")},parse:function(b){return(b=/^\s*\/(.+)\/([gim]{0,3})\s*$/.exec(b))?{pattern:b[1],flags:b[2]}:null}}});
define("orion/searchUtils",["require","dojo","orion/editor/regex","orion/util"],function(b,d,a,c){var e=e||{};e.searchUtils=e.searchUtils||{};e.searchUtils.parseQueryStr=function(a){var b=a.indexOf("?"),c=a.indexOf("q=");b<c&&c>0&&(a=a.substring(b+1));b=a.split("&");a={queryStr:a,start:0,rows:10,sort:"Path asc",replace:null};for(c=0;c<b.length;c++){var d=b[c].indexOf("q="),j=b[c].indexOf("replace=");if(d>=0)e.searchUtils.parseLocationAndSearchStr(b[c].substring(d+2),a);else if(j>=0)a.replace=b[c].substring(j+
8);else if(d=b[c].split("="),d.length===2)if(d[0]==="rows")a.rows=parseInt(d[1]);else if(d[0]==="start")a.start=parseInt(d[1]);else if(d[0]==="sort")a.sort=d[1]}return a};e.searchUtils.copyQueryParams=function(a,b){return{sort:a.sort,rows:a.rows,start:a.start,searchStr:a.searchStr,location:a.location,replace:b?a.replace:null}};e.searchUtils.generateSearchHref=function(a){return b.toUrl("search/search.html")+"#"+e.searchUtils.generateSearchQuery(a)};e.searchUtils.generateSearchQuery=function(a){var b=
"Path asc",c=40,d=0,e="",k="",l="";if(a){if(a.sort)b=a.sort;if(a.rows)c=a.rows;if(a.start)d=a.start;if(a.searchStr)e=a.searchStr,e=e.split(" ").join("");if(a.location)k=a.location,k.length>0&&k[k.length-1]!=="*"&&(k+="*"),k!==""&&(k="+Location:"+k);a.replace!==null&&a.replace!==void 0&&(l="&replace="+a.replace)}return"?sort="+b+"&rows="+c+"&start="+d+"&q="+e+k+l};e.searchUtils.parseLocationAndSearchStr=function(a,b){var c=a.indexOf("+Location:")>-1;b.location="";b.searchStr=a;if(c&&(c=a.split("+Location:"),
c.length===2)){var d=c[1];d.length>0&&d[d.length-1]==="*"&&(d=d.substring(0,d.length-1));b.location=d;b.searchStr=c[0].split(" ").join("")}b.searchStrTitle=b.searchStr.split("\\").join("");b.inFileQuery=e.searchUtils.generateInFileQuery(b.searchStr)};e.searchUtils.generateInFileQuery=function(b){var c={};c.originalSearchStr=b;var d=b.indexOf("*")>-1,e=b.indexOf("?")>-1;d&&(b=b.split("*").join(".*"));e&&(b=b.split("?").join("."));if(!d&&!e)c.searchStr=b.split("\\").join("").toLowerCase(),c.wildCard=
!1;else if(c.searchStr=b.toLowerCase(),d=a.parse("/"+c.searchStr+"/"))b=d.pattern,d=d.flags,d+=d.indexOf("i")===-1?"i":"",c.regExp={pattern:b,flags:d},c.wildCard=!0;c.searchStrLength=c.searchStr.length;return c};e.searchUtils.generateFindURLBinding=function(a,b,c){a=",find="+a.originalSearchStr;typeof c==="string"&&(a=a+"@@replaceWith@@"+c);typeof b==="number"&&(a=a+"@@atLine@@"+b);return a};e.searchUtils.parseFindURLBinding=function(a){var b=null,c=a.split("@@atLine@@");c.length>1&&(b=parseInt(c[1]),
b<1&&(b=1));var a=null,c=c[0].split("@@replaceWith@@"),d=c[0];c.length>1&&(a=c[1]);c=e.searchUtils.generateInFileQuery(d);return{searchStr:c.searchStr,replaceStr:a,lineNumber:b,useRegExp:c.wildCard}};e.searchUtils.replaceRegEx=function(a,b,c){return a.replace(RegExp(b.pattern,b.flags),c)};e.searchUtils.replaceStringLiteral=function(b,c,d){c=a.parse("/"+c+"/gim");return e.searchUtils.replaceRegEx(b,c,d)};e.searchUtils.searchOnelineLiteral=function(a,b,c){var d;d=0;for(var e=!1,k=[];;)if(d=b.indexOf(a.searchStr,
d),d<0)break;else{k.push({startIndex:d});e=!0;if(c)break;d+=a.searchStrLength}return e?k:null};e.searchUtils.findRegExp=function(a,b,c,d){if(!b)return null;c=c||"";c+=(c.indexOf("g")===-1?"g":"")+(c.indexOf("m")===-1?"m":"");var e=null;return(e=RegExp(b,c).exec(a.substring(d)))&&{startIndex:e.index+d,length:e[0].length}};e.searchUtils.searchOnelineRegEx=function(a,b,c){for(var d=0,j=!1,k=[];;)if(d=e.searchUtils.findRegExp(b,a.regExp.pattern,a.regExp.flags,d)){k.push(d);j=!0;if(c)break;d=d.startIndex+
d.length}else break;return j?k:null};e.searchUtils.generateNewContents=function(a,b,c,d,j){if(c&&a){var k;k=b.length>0?!0:!1;for(var l=0;l<a.length;l++){for(var m=a[l],n=!1,o=!1,p=[],r,q=0,s=0;s<c.children.length;s++)if(c.children[s].lineNumber-1===l){q=s;for(n=0;n<c.children[s].matches.length;n++)c.children[s+n].checked!==!1&&p.push(n);o=p.length>0;r=c.children[s].matches;n=!0;break}if(n){if(o){p=e.searchUtils.replaceCheckedMatches(m,d,r,p,j);m=p.replacedStr;for(n=0;n<c.children[q].matches.length;n++)c.children[q+
n].newMatches=p.newMatches}else for(n=0;n<c.children[q].matches.length;n++)c.children[q+n].newMatches=c.children[q+n].matches;k?b[l]=m:b.push(m)}else k||b.push(m)}}};e.searchUtils.generateMatchContext=function(a,b,c){var d=[],e=a*2+1,k;b.length<=e?(k=0,a=b.length-1):(k=c-a,k<0?(k=0,a=k+e-1):(a=c+a,a>b.length-1&&(a=b.length-1,k=a-e+1)));for(e=k;e<=a;e++)d.push({context:b[e],current:e===c});return d};e.searchUtils.searchWithinFile=function(a,b,d,i,j,k){d=c.splitFile(d);if(j)b.contents=d;if(b){b.children=
[];for(var l=i=0;l<d.length;l++){var m=d[l];if(m&&m.length>0){var n=k?m:m.toLowerCase();if(n=a.wildCard?e.searchUtils.searchOnelineRegEx(a,n):e.searchUtils.searchOnelineLiteral(a,n)){var o=l+1;if(j)for(var p=0;p<n.length;p++){var r=p+1,r={parent:b,checked:b.checked,type:"detail",matches:n,lineNumber:o,matchNumber:r,name:m,location:b.location+"-"+o+"-"+r};b.children.push(r)}else r={parent:b,context:e.searchUtils.generateMatchContext(2,d,l),checked:b.checked,type:"detail",matches:n,lineNumber:o,name:m,
location:b.location+"-"+o},b.children.push(r);i+=n.length}}}b.totalMatches=i}};e.searchUtils.replaceCheckedMatches=function(a,b,c,d,e){for(var k=0,l="",m=[],n=0;n<c.length;n++){k!==c[n].startIndex&&(l+=a.substring(k,c[n].startIndex));if(c[n].length)e=c[n].length;for(var k=!1,o=0;o<d.length;o++)if(d[o]===n){k=!0;break}k?(m.push({startIndex:l.length,length:b.length}),l+=b):(m.push({startIndex:l.length,length:e}),l+=a.substring(c[n].startIndex,c[n].startIndex+e));k=c[n].startIndex+e}k<a.length&&(l+=
a.substring(k));return{replacedStr:l,newMatches:m}};e.searchUtils.fullPathNameByMeta=function(a){var b=a.length,c="";if(b>0)for(b-=1;b>-1;b--)c=c+(c===""?"":"/")+a[b].Name;return c};e.searchUtils.path2FolderName=function(a,b,c){return a.substring(0,a.length-b.length-(c?0:1))};return e.searchUtils});
define("dojo/cookie",["dojo","dojo/regexp"],function(b){b.cookie=function(d,a,c){var e=document.cookie;if(arguments.length==1){var f=e.match(RegExp("(?:^|; )"+b.regexp.escapeString(d)+"=([^;]*)"));return f?decodeURIComponent(f[1]):void 0}else{c=c||{};e=c.expires;if(typeof e=="number"){var g=new Date;g.setTime(g.getTime()+e*864E5);e=c.expires=g}if(e&&e.toUTCString)c.expires=e.toUTCString();a=encodeURIComponent(a);e=d+"="+a;for(f in c)e+="; "+f,g=c[f],g!==!0&&(e+="="+g);document.cookie=e}};b.cookie.isSupported=
function(){if(!("cookieEnabled"in navigator))this("__djCookieTest__","CookiesAllowed"),navigator.cookieEnabled=this("__djCookieTest__")=="CookiesAllowed",navigator.cookieEnabled&&this("__djCookieTest__","",{expires:-1});return navigator.cookieEnabled};return b.cookie});
define("dijit/layout/BorderContainer",["dojo","dijit","dijit/layout/_LayoutWidget","dojo/cookie","dijit/_Templated"],function(b,d){b.declare("dijit.layout.BorderContainer",d.layout._LayoutWidget,{design:"headline",gutters:!0,liveSplitters:!0,persist:!1,baseClass:"dijitBorderContainer",_splitterClass:"dijit.layout._Splitter",postMixInProperties:function(){this.gutters||(this.baseClass+="NoGutter");this.inherited(arguments)},startup:function(){this._started||(b.forEach(this.getChildren(),this._setupChild,
this),this.inherited(arguments))},_setupChild:function(a){var c=a.region;if(c){this.inherited(arguments);b.addClass(a.domNode,this.baseClass+"Pane");var d=this.isLeftToRight();c=="leading"&&(c=d?"left":"right");c=="trailing"&&(c=d?"right":"left");if(c!="center"&&(a.splitter||this.gutters)&&!a._splitterWidget)d=new (b.getObject(a.splitter?this._splitterClass:"dijit.layout._Gutter"))({id:a.id+"_splitter",container:this,child:a,region:c,live:this.liveSplitters}),d.isSplitter=!0,a._splitterWidget=d,b.place(d.domNode,
a.domNode,"after"),d.startup();a.region=c}},layout:function(){this._layoutChildren()},addChild:function(a,b){this.inherited(arguments);this._started&&this.layout()},removeChild:function(a){var c=a.region,d=a._splitterWidget;d&&(d.destroy(),delete a._splitterWidget);this.inherited(arguments);this._started&&this._layoutChildren();b.removeClass(a.domNode,this.baseClass+"Pane");b.style(a.domNode,{top:"auto",bottom:"auto",left:"auto",right:"auto",position:"static"});b.style(a.domNode,c=="top"||c=="bottom"?
"width":"height","auto")},getChildren:function(){return b.filter(this.inherited(arguments),function(a){return!a.isSplitter})},getSplitter:function(a){return b.filter(this.getChildren(),function(b){return b.region==a})[0]._splitterWidget},resize:function(a,c){if(!this.cs||!this.pe){var d=this.domNode;this.cs=b.getComputedStyle(d);this.pe=b._getPadExtents(d,this.cs);this.pe.r=b._toPixelValue(d,this.cs.paddingRight);this.pe.b=b._toPixelValue(d,this.cs.paddingBottom);b.style(d,"padding","0px")}this.inherited(arguments)},
_layoutChildren:function(a,c){if(this._borderBox&&this._borderBox.h){var e=b.map(this.getChildren(),function(a,b){return{pane:a,weight:[a.region=="center"?Infinity:0,a.layoutPriority,(this.design=="sidebar"?1:-1)*(/top|bottom/.test(a.region)?1:-1),b]}},this);e.sort(function(a,b){for(var c=a.weight,d=b.weight,e=0;e<c.length;e++)if(c[e]!=d[e])return c[e]-d[e];return 0});var f=[];b.forEach(e,function(a){a=a.pane;f.push(a);a._splitterWidget&&f.push(a._splitterWidget)});d.layout.layoutChildren(this.domNode,
{l:this.pe.l,t:this.pe.t,w:this._borderBox.w-this.pe.w,h:this._borderBox.h-this.pe.h},f,a,c)}},destroyRecursive:function(){b.forEach(this.getChildren(),function(a){var b=a._splitterWidget;b&&b.destroy();delete a._splitterWidget});this.inherited(arguments)}});b.extend(d._Widget,{region:"",layoutPriority:0,splitter:!1,minSize:0,maxSize:Infinity});b.declare("dijit.layout._Splitter",[d._Widget,d._Templated],{live:!0,templateString:'<div class="dijitSplitter" dojoAttachEvent="onkeypress:_onKeyPress,onmousedown:_startDrag,onmouseenter:_onMouse,onmouseleave:_onMouse" tabIndex="0" role="separator"><div class="dijitSplitterThumb"></div></div>',
postMixInProperties:function(){this.inherited(arguments);this.horizontal=/top|bottom/.test(this.region);this._factor=/top|left/.test(this.region)?1:-1;this._cookieName=this.container.id+"_"+this.region},buildRendering:function(){this.inherited(arguments);b.addClass(this.domNode,"dijitSplitter"+(this.horizontal?"H":"V"));if(this.container.persist){var a=b.cookie(this._cookieName);a&&(this.child.domNode.style[this.horizontal?"height":"width"]=a)}},_computeMaxSize:function(){var a=this.horizontal?"h":
"w",c=b.marginBox(this.child.domNode)[a],d=b.filter(this.container.getChildren(),function(a){return a.region=="center"})[0],a=b.marginBox(d.domNode)[a];return Math.min(this.child.maxSize,c+a)},_startDrag:function(a){if(!this.cover)this.cover=b.doc.createElement("div"),b.addClass(this.cover,"dijitSplitterCover"),b.place(this.cover,this.child.domNode,"after");b.addClass(this.cover,"dijitSplitterCoverActive");this.fake&&b.destroy(this.fake);if(!(this._resize=this.live))(this.fake=this.domNode.cloneNode(!0)).removeAttribute("id"),
b.addClass(this.domNode,"dijitSplitterShadow"),b.place(this.fake,this.domNode,"after");b.addClass(this.domNode,"dijitSplitterActive dijitSplitter"+(this.horizontal?"H":"V")+"Active");this.fake&&b.removeClass(this.fake,"dijitSplitterHover dijitSplitter"+(this.horizontal?"H":"V")+"Hover");var c=this._factor,d=this.horizontal,f=d?"pageY":"pageX",g=a[f],h=this.domNode.style,i=b.marginBox(this.child.domNode)[d?"h":"w"],j=this._computeMaxSize(),k=this.child.minSize||20,d=this.region,l=d=="top"||d=="bottom"?
"top":"left",m=parseInt(h[l],10),n=this._resize,o=b.hitch(this.container,"_layoutChildren",this.child.id),d=b.doc;this._handlers=(this._handlers||[]).concat([b.connect(d,"onmousemove",this._drag=function(a,b){var d=a[f]-g,e=c*d+i,w=Math.max(Math.min(e,j),k);(n||b)&&o(w);h[l]=d+m+c*(w-e)+"px"}),b.connect(d,"ondragstart",b.stopEvent),b.connect(b.body(),"onselectstart",b.stopEvent),b.connect(d,"onmouseup",this,"_stopDrag")]);b.stopEvent(a)},_onMouse:function(a){a=a.type=="mouseover"||a.type=="mouseenter";
b.toggleClass(this.domNode,"dijitSplitterHover",a);b.toggleClass(this.domNode,"dijitSplitter"+(this.horizontal?"H":"V")+"Hover",a)},_stopDrag:function(a){try{this.cover&&b.removeClass(this.cover,"dijitSplitterCoverActive"),this.fake&&b.destroy(this.fake),b.removeClass(this.domNode,"dijitSplitterActive dijitSplitter"+(this.horizontal?"H":"V")+"Active dijitSplitterShadow"),this._drag(a),this._drag(a,!0)}finally{this._cleanupHandlers(),delete this._drag}this.container.persist&&b.cookie(this._cookieName,
this.child.domNode.style[this.horizontal?"height":"width"],{expires:365})},_cleanupHandlers:function(){b.forEach(this._handlers,b.disconnect);delete this._handlers},_onKeyPress:function(a){this._resize=!0;var c=this.horizontal,d=1,f=b.keys;switch(a.charOrCode){case c?f.UP_ARROW:f.LEFT_ARROW:d*=-1;case c?f.DOWN_ARROW:f.RIGHT_ARROW:break;default:return}c=b._getMarginSize(this.child.domNode)[c?"h":"w"]+this._factor*d;this.container._layoutChildren(this.child.id,Math.max(Math.min(c,this._computeMaxSize()),
this.child.minSize));b.stopEvent(a)},destroy:function(){this._cleanupHandlers();delete this.child;delete this.container;delete this.cover;delete this.fake;this.inherited(arguments)}});b.declare("dijit.layout._Gutter",[d._Widget,d._Templated],{templateString:'<div class="dijitGutter" role="presentation"></div>',postMixInProperties:function(){this.inherited(arguments);this.horizontal=/top|bottom/.test(this.region)},buildRendering:function(){this.inherited(arguments);b.addClass(this.domNode,"dijitGutter"+
(this.horizontal?"H":"V"))}});return d.layout.BorderContainer});
define("orion/commonHTMLFragments",["i18n!orion/nls/messages","require"],function(b,d){function a(a){return'<div id="'+a+'slideContainer" class="layoutBlock slideParameters slideContainer"><span id="'+a+'pageParameterArea" class="slide"><span id="'+a+'pageCommandParameters" class="layoutLeft parameters"></span><span id="'+a+'pageCommandDismiss" class="layoutRight parametersDismiss"></span></span></div>'}var c='<header role="banner"><div id="staticBanner" class="layoutBlock topRowBanner"><a id="home" class="layoutLeft logo" href="'+d.toUrl("navigate/table.html")+
'" aria-label="'+b["Orion Home"]+'"></a><nav id="primaryNav" class="layoutLeft primaryNav" role="navigation"></nav><div class="layoutRight"><div id="globalActions" class="spacingLeft layoutLeft"></div><div id="relatedLinks" class="spacingLeft layoutLeft" style="padding-top:1px;"></div><input type="text" id="search" placeholder="Search" title="'+b["Type a keyword or wild card to search in root"]+'" class="layoutLeft spacingLeft searchbox" role="search"><div id="userMenu" class="spacingLeft layoutLeft"></div></div></div><div id="titleArea" class="layoutBlock titleArea"><div class="layoutLeft pageTitle"></div><div class="clear" style="padding-bottom:5px;display:inline;"><span id="location" class="currentLocation"></span><span id="dirty" class="currentLocation"></span></div><div class="layoutRight pageNav"><span id="pageFavorite" tabindex="0" role="button" aria-label="'+
b["Add this page to the favorites list"]+'" class="spacingLeft layoutLeft imageSprite core-sprite-favorite_sml"></span></div></div></header>',e='<footer id="footerContent" class="layoutBlock" role="contentinfo"><div class="footerBlock">'+b["Orion is in Beta. Please try it out but BEWARE your data may be lost."]+'</div><div class="footerRightBlock"><a href="http://wiki.eclipse.org/Orion/FAQ" target="_blank">'+b.FAQ+'</a> | <a href="https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Orion&version=0.5" target="_blank">'+
b["Report a Bug"]+'</a> | <a href="http://www.eclipse.org/legal/privacy.php" target="_blank">'+b["Privacy Policy"]+'</a> | <a href="http://www.eclipse.org/legal/termsofuse.php" target="_blank">'+b["Terms of Use"]+'</a> | <a href="http://www.eclipse.org/legal/copyright.php" target="_blank">'+b["Copyright Agent"]+"</a></div></footer>",f='<ul class="layoutLeft commandList pageActions" id="pageActions"></ul><ul class="layoutLeft commandList pageActions" id="selectionTools"></ul><img class="layoutRight progressPane" src="'+
d.toUrl("images/none.png")+'" id="progressPane" tabindex="0" role="progressbar" aria-label="'+b["Operations - Press spacebar to show current operations"]+'"></img><div class="layoutRight status" id="statusPane" role="status" aria-live="off"></div><ul class="layoutRight commandList pageActions" id="pageNavigationActions"></ul><div id="notificationArea" class="layoutLeft layoutBlock slideContainer"><div class="layoutLeft" id="notifications" aria-live="assertive" aria-atomic="true"></div><div class="layoutRight"><span tabindex="0" role="button" aria-label="Close notification" class="layoutRight core-sprite-close imageSprite" id="closeNotifications"></span></div></div>'+
a("mainToolbar");return{topHTMLFragment:c,bottomHTMLFragment:e,toolbarHTMLFragment:f,slideoutHTMLFragment:a}});
define("orion/parameterCollectors","i18n!orion/nls/messages,require,dojo,dijit,orion/commands,orion/util,dijit/Menu,dijit/MenuItem,dijit/form/DropDownButton".split(","),function(b,d,a,c,e,f){function g(){this._activeContainer=null}g.prototype={close:function(){if(this._activeElements){this._activeElements.parameterArea&&a.empty(this._activeElements.parameterArea);this._activeElements.parameterContainer&&(a.removeClass(this._activeElements.parameterContainer,"slideActive"),a.removeClass(this._activeElements.slideContainer,
"slideContainerActive"));this._activeElements.dismissArea&&a.empty(this._activeElements.dismissArea);this._activeElements.commandNode&&a.removeClass(this._activeElements.commandNode,"activeCommand");f.forceLayout(this._activeElements.parameterContainer);if(this._activeElements.onClose)this._activeElements.onClose();if(this._oldFocusNode)this._oldFocusNode.focus(),this._oldFocusNode=null}this._activeElements=null},_findParameterElements:function(b){var c={},d=null;typeof b==="string"&&(b=a.byId(b));
for(var e=b;e;){if(a.hasClass(e,"toolComposite")){d=e;break}e=e.parentNode}if(a.hasClass(b,"commandMarker"))c.commandNode=b;if(d)c.slideContainer=a.query(".slideParameters",d)[0],c.parameterContainer=a.query(".slide",d)[0],c.parameterArea=a.query(".parameters",d)[0],c.dismissArea=a.query(".parametersDismiss",d)[0];return c},open:function(c,d,e){typeof c==="string"&&(c=a.byId(c));this.close();this._activeElements=null;if((this._activeElements=this._findParameterElements(c))&&this._activeElements.parameterArea&&
this._activeElements.slideContainer&&this._activeElements.parameterContainer){this._activeElements.onClose=e;var g=d(this._activeElements.parameterArea,this._activeElements.dismissArea),c=a.query("#closebox",this._activeElements.dismissArea||this._activeElements.parameterArea);if(c.length===0)c=a.create("span",{id:"closebox",role:"button",tabindex:"0"},this._activeElements.dismissArea||this._activeElements.parameterArea,"last"),a.addClass(c,"imageSprite"),a.addClass(c,"core-sprite-close"),a.addClass(c,
"dismiss"),c.title=b.Close,a.connect(c,"onclick",a.hitch(this,function(){this.close()})),a.connect(c,"onkeypress",a.hitch(this,function(b){(b.keyCode===a.keys.ENTER||b.charCode===a.keys.SPACE)&&this.close()}));a.addClass(this._activeElements.slideContainer,"slideContainerActive");a.addClass(this._activeElements.parameterContainer,"slideActive");f.forceLayout(this._activeElements.parameterContainer);if(g)this._oldFocusNode=window.document.activeElement,window.setTimeout(function(){g.focus();g.select()},
0);this._activeElements.commandNode&&a.addClass(this._activeElements.commandNode,"activeCommand");return!0}return!1},_collectAndCall:function(b,c){a.query("input",c).forEach(function(a){a.type==="checkbox"?b.parameters.setValue(a.parameterName,a.checked):a.type!=="button"&&b.parameters.setValue(a.parameterName,a.value.trim())});a.query("textArea",c).forEach(function(a){b.parameters.setValue(a.parameterName,a.value.trim())});b.command.callback&&b.command.callback.call(b.handler,b)},collectParameters:function(b){return b.parameters?
(b.domNode&&a.addClass(b.domNode,"commandMarker"),this.open(b.domNode||b.domParent,this.getFillFunction(b))):!1},getFillFunction:function(c,d){return a.hitch(this,function(e,f){var g=null,m=a.hitch(this,function(){d&&d();this.close()}),n=a.hitch(this,function(b){b.keyCode===a.keys.ENTER&&this._collectAndCall(c,e);if(b.keyCode===a.keys.ESCAPE||b.keyCode===a.keys.ENTER)m(),a.stopEvent(b)});c.parameters.forEach(function(b){b.label&&a.create("label",{innerHTML:b.label,"class":"parameterInput","for":b.name+
"parameterCollector"},e,"last");var c={type:b.type,id:b.name+"parameterCollector"},d;if(b.type==="text"&&typeof b.lines==="number"&&b.lines>1)c.rows=b.lines,c.type="textarea",d=a.create("textarea",c,e,"last"),n=a.hitch(this,function(b){b.keyCode===a.keys.ESCAPE&&(m(),a.stopEvent(b))});else if(b.type==="boolean"){if(c.type="checkbox",b.value)c.checked=!0}else if(b.value)c.value=b.value;d||(d=a.create("input",c,e,"last"));a.addClass(d,"parameterInput parameterInput"+c.type);d.setAttribute("speech",
"speech");d.setAttribute("x-webkit-speech","x-webkit-speech");d.parameterName=b.name;g||(g=d);a.connect(d,"onkeypress",n)});var o=f||e,p=function(a){a._collectAndCall(c,e);m()};if(c.parameters.hasOptionalParameters()){c.parameters.optionsRequested=!1;var r=a.create("span",{role:"button",tabindex:"0"},o,"last");a.place(window.document.createTextNode("More"),r,"last");a.addClass(r,"dismiss");a.connect(r,"onclick",a.hitch(this,function(){c.parameters.optionsRequested=!0;p(this)}));a.connect(r,"onkeypress",
a.hitch(this,function(b){if(b.keyCode===a.keys.ENTER||b.charCode===a.keys.SPACE)c.parameters.optionsRequested=!0,p(this)}))}r=a.create("span",{role:"button",tabindex:"0"},o,"last");a.place(window.document.createTextNode("Submit"),r,"last");a.addClass(r,"dismiss");a.connect(r,"onclick",a.hitch(this,function(){p(this)}));a.connect(r,"onkeypress",a.hitch(this,function(b){(b.keyCode===a.keys.ENTER||b.charCode===a.keys.SPACE)&&p(this)}));o=a.create("span",{id:"closebox",role:"button",tabindex:"0"},o,"last");
a.addClass(o,"imageSprite");a.addClass(o,"core-sprite-close");a.addClass(o,"dismiss");o.title=b.Close;a.connect(o,"onclick",a.hitch(this,function(){m()}));a.connect(o,"onkeypress",a.hitch(this,function(b){(b.keyCode===a.keys.ENTER||b.charCode===a.keys.SPACE)&&m()}));return g})}};g.prototype.constructor=g;return{CommandParameterCollector:g}});
define("orion/i18nUtil",["require","orion/Deferred"],function(b,d){function a(a){if(a=localStorage.getItem("orion/messageBundle/"+a))if(a=JSON.parse(a),a._expires&&a._expires>(new Date).getTime())return delete a._expires,a;return null}var c={};return{getMessageBundle:function(e){function f(){b(["i18n!"+e],function(a){if(a){var b=e;a._expires=(new Date).getTime()+9E5;localStorage.setItem("orion/messageBundle/"+b,JSON.stringify(a));delete a._expires}g.resolve(a)})}if(c[e])return c[e];var g=new d;c[e]=
g;var h=a(e);if(h)return g.resolve(h),g;try{b([e],f)}catch(i){b(["orion/i18n!"+e],f)}return g},formatMessage:function(a){var b=arguments;return a.replace(/\$\{([^\}]+)\}/g,function(a,c){return b[(c<<0)+1]})}}});define("text!dijit/templates/Dialog.html",[],function(){return'<div class="dijitDialog" role="dialog" aria-labelledby="${id}_title">\n\t<div dojoAttachPoint="titleBar" class="dijitDialogTitleBar">\n\t<span dojoAttachPoint="titleNode" class="dijitDialogTitle" id="${id}_title"></span>\n\t<span dojoAttachPoint="closeButtonNode" class="dijitDialogCloseIcon" dojoAttachEvent="ondijitclick: onCancel" title="${buttonCancel}" role="button" tabIndex="-1">\n\t\t<span dojoAttachPoint="closeText" class="closeText" title="${buttonCancel}">x</span>\n\t</span>\n\t</div>\n\t\t<div dojoAttachPoint="containerNode" class="dijitDialogPaneContent"></div>\n</div>'});
define("dojo/dnd/common",["dojo"],function(b){b.getObject("dnd",!0,b);b.dnd.getCopyKeyState=b.isCopyKey;b.dnd._uniqueId=0;b.dnd.getUniqueId=function(){var d;do d=b._scopeName+"Unique"+ ++b.dnd._uniqueId;while(b.byId(d));return d};b.dnd._empty={};b.dnd.isFormElement=function(b){b=b.target;if(b.nodeType==3)b=b.parentNode;return" button textarea input select option ".indexOf(" "+b.tagName.toLowerCase()+" ")>=0};return b.dnd});
define("dojo/dnd/autoscroll",["dojo","dojo/window"],function(b){b.getObject("dnd",!0,b);b.dnd.getViewport=b.window.getBox;b.dnd.V_TRIGGER_AUTOSCROLL=32;b.dnd.H_TRIGGER_AUTOSCROLL=32;b.dnd.V_AUTOSCROLL_VALUE=16;b.dnd.H_AUTOSCROLL_VALUE=16;b.dnd.autoScroll=function(d){var a=b.window.getBox(),c=0,e=0;if(d.clientX<b.dnd.H_TRIGGER_AUTOSCROLL)c=-b.dnd.H_AUTOSCROLL_VALUE;else if(d.clientX>a.w-b.dnd.H_TRIGGER_AUTOSCROLL)c=b.dnd.H_AUTOSCROLL_VALUE;if(d.clientY<b.dnd.V_TRIGGER_AUTOSCROLL)e=-b.dnd.V_AUTOSCROLL_VALUE;
else if(d.clientY>a.h-b.dnd.V_TRIGGER_AUTOSCROLL)e=b.dnd.V_AUTOSCROLL_VALUE;window.scrollBy(c,e)};b.dnd._validNodes={div:1,p:1,td:1};b.dnd._validOverflow={auto:1,scroll:1};b.dnd.autoScrollNodes=function(d){for(var a=d.target;a;){if(a.nodeType==1&&a.tagName.toLowerCase()in b.dnd._validNodes){var c=b.getComputedStyle(a);if(c.overflow.toLowerCase()in b.dnd._validOverflow){var e=b._getContentBox(a,c),c=b.position(a,!0),f=Math.min(b.dnd.H_TRIGGER_AUTOSCROLL,e.w/2),g=Math.min(b.dnd.V_TRIGGER_AUTOSCROLL,
e.h/2),h=d.pageX-c.x,i=d.pageY-c.y,j=c=0;if(b.isWebKit||b.isOpera)h+=b.body().scrollLeft,i+=b.body().scrollTop;h>0&&h<e.w&&(h<f?c=-f:h>e.w-f&&(c=f));i>0&&i<e.h&&(i<g?j=-g:i>e.h-g&&(j=g));e=a.scrollLeft;f=a.scrollTop;a.scrollLeft+=c;a.scrollTop+=j;if(e!=a.scrollLeft||f!=a.scrollTop)return}}try{a=a.parentNode}catch(k){a=null}}b.dnd.autoScroll(d)};return b.dnd});
define("dojo/dnd/Mover",["dojo","dojo/dnd/common","dojo/dnd/autoscroll"],function(b){b.declare("dojo.dnd.Mover",null,{constructor:function(d,a,c){this.node=b.byId(d);var e=a.touches?a.touches[0]:a;this.marginBox={l:e.pageX,t:e.pageY};this.mouseButton=a.button;a=this.host=c;d=d.ownerDocument;this.events=[b.connect(d,"onmousemove",this,"onFirstMove"),b.connect(d,"ontouchmove",this,"onFirstMove"),b.connect(d,"onmousemove",this,"onMouseMove"),b.connect(d,"ontouchmove",this,"onMouseMove"),b.connect(d,
"onmouseup",this,"onMouseUp"),b.connect(d,"ontouchend",this,"onMouseUp"),b.connect(d,"ondragstart",b.stopEvent),b.connect(d.body,"onselectstart",b.stopEvent)];if(a&&a.onMoveStart)a.onMoveStart(this)},onMouseMove:function(d){b.dnd.autoScroll(d);var a=this.marginBox,c=d.touches?d.touches[0]:d;this.host.onMove(this,{l:a.l+c.pageX,t:a.t+c.pageY},d);b.stopEvent(d)},onMouseUp:function(d){(b.isWebKit&&b.isMac&&this.mouseButton==2?d.button==0:this.mouseButton==d.button)&&this.destroy();b.stopEvent(d)},onFirstMove:function(d){var a=
this.node.style,c,e=this.host;switch(a.position){case "relative":case "absolute":c=Math.round(parseFloat(a.left))||0;a=Math.round(parseFloat(a.top))||0;break;default:a.position="absolute";a=b.marginBox(this.node);c=b.doc.body;var f=b.getComputedStyle(c),g=b._getMarginBox(c,f),f=b._getContentBox(c,f);c=a.l-(f.l-g.l);a=a.t-(f.t-g.t)}this.marginBox.l=c-this.marginBox.l;this.marginBox.t=a-this.marginBox.t;if(e&&e.onFirstMove)e.onFirstMove(this,d);b.disconnect(this.events.shift());b.disconnect(this.events.shift())},
destroy:function(){b.forEach(this.events,b.disconnect);var d=this.host;if(d&&d.onMoveStop)d.onMoveStop(this);this.events=this.node=this.host=null}});return b.dnd.Mover});
define("dojo/dnd/Moveable",["dojo","dojo/dnd/Mover"],function(b){b.declare("dojo.dnd.Moveable",null,{handle:"",delay:0,skip:!1,constructor:function(d,a){this.node=b.byId(d);a||(a={});this.handle=a.handle?b.byId(a.handle):null;if(!this.handle)this.handle=this.node;this.delay=a.delay>0?a.delay:0;this.skip=a.skip;this.mover=a.mover?a.mover:b.dnd.Mover;this.events=[b.connect(this.handle,"onmousedown",this,"onMouseDown"),b.connect(this.handle,"ontouchstart",this,"onMouseDown"),b.connect(this.handle,"ondragstart",
this,"onSelectStart"),b.connect(this.handle,"onselectstart",this,"onSelectStart")]},markupFactory:function(d,a){return new b.dnd.Moveable(a,d)},destroy:function(){b.forEach(this.events,b.disconnect);this.events=this.node=this.handle=null},onMouseDown:function(d){if(!this.skip||!b.dnd.isFormElement(d)){if(this.delay){this.events.push(b.connect(this.handle,"onmousemove",this,"onMouseMove"),b.connect(this.handle,"ontouchmove",this,"onMouseMove"),b.connect(this.handle,"onmouseup",this,"onMouseUp"),b.connect(this.handle,
"ontouchend",this,"onMouseUp"));var a=d.touches?d.touches[0]:d;this._lastX=a.pageX;this._lastY=a.pageY}else this.onDragDetected(d);b.stopEvent(d)}},onMouseMove:function(d){var a=d.touches?d.touches[0]:d;if(Math.abs(a.pageX-this._lastX)>this.delay||Math.abs(a.pageY-this._lastY)>this.delay)this.onMouseUp(d),this.onDragDetected(d);b.stopEvent(d)},onMouseUp:function(d){for(var a=0;a<2;++a)b.disconnect(this.events.pop());b.stopEvent(d)},onSelectStart:function(d){(!this.skip||!b.dnd.isFormElement(d))&&
b.stopEvent(d)},onDragDetected:function(b){new this.mover(this.node,b,this)},onMoveStart:function(d){b.publish("/dnd/move/start",[d]);b.addClass(b.body(),"dojoMove");b.addClass(this.node,"dojoMoveItem")},onMoveStop:function(d){b.publish("/dnd/move/stop",[d]);b.removeClass(b.body(),"dojoMove");b.removeClass(this.node,"dojoMoveItem")},onFirstMove:function(){},onMove:function(b,a){this.onMoving(b,a);var c=b.node.style;c.left=a.l+"px";c.top=a.t+"px";this.onMoved(b,a)},onMoving:function(){},onMoved:function(){}});
return b.dnd.Moveable});
define("dojo/dnd/move",["dojo","dojo/dnd/Mover","dojo/dnd/Moveable"],function(b){b.declare("dojo.dnd.move.constrainedMoveable",b.dnd.Moveable,{constraints:function(){},within:!1,markupFactory:function(d,a){return new b.dnd.move.constrainedMoveable(a,d)},constructor:function(b,a){a||(a={});this.constraints=a.constraints;this.within=a.within},onFirstMove:function(d){var a=this.constraintBox=this.constraints.call(this,d);a.r=a.l+a.w;a.b=a.t+a.h;this.within&&(d=b._getMarginSize(d.node),a.r-=d.w,a.b-=
d.h)},onMove:function(b,a){var c=this.constraintBox,e=b.node.style;this.onMoving(b,a);a.l=a.l<c.l?c.l:c.r<a.l?c.r:a.l;a.t=a.t<c.t?c.t:c.b<a.t?c.b:a.t;e.left=a.l+"px";e.top=a.t+"px";this.onMoved(b,a)}});b.declare("dojo.dnd.move.boxConstrainedMoveable",b.dnd.move.constrainedMoveable,{box:{},markupFactory:function(d,a){return new b.dnd.move.boxConstrainedMoveable(a,d)},constructor:function(b,a){var c=a&&a.box;this.constraints=function(){return c}}});b.declare("dojo.dnd.move.parentConstrainedMoveable",
b.dnd.move.constrainedMoveable,{area:"content",markupFactory:function(d,a){return new b.dnd.move.parentConstrainedMoveable(a,d)},constructor:function(d,a){var c=a&&a.area;this.constraints=function(){var a=this.node.parentNode,d=b.getComputedStyle(a),g=b._getMarginBox(a,d);if(c=="margin")return g;var h=b._getMarginExtents(a,d);g.l+=h.l;g.t+=h.t;g.w-=h.w;g.h-=h.h;if(c=="border")return g;h=b._getBorderExtents(a,d);g.l+=h.l;g.t+=h.t;g.w-=h.w;g.h-=h.h;if(c=="padding")return g;h=b._getPadExtents(a,d);g.l+=
h.l;g.t+=h.t;g.w-=h.w;g.h-=h.h;return g}}});b.dnd.constrainedMover=b.dnd.move.constrainedMover;b.dnd.boxConstrainedMover=b.dnd.move.boxConstrainedMover;b.dnd.parentConstrainedMover=b.dnd.move.parentConstrainedMover;return b.dnd.move});
define("dojo/dnd/TimedMoveable",["dojo","dojo/dnd/Moveable"],function(b){(function(){var d=b.dnd.Moveable.prototype.onMove;b.declare("dojo.dnd.TimedMoveable",b.dnd.Moveable,{timeout:40,constructor:function(a,b){b||(b={});if(b.timeout&&typeof b.timeout=="number"&&b.timeout>=0)this.timeout=b.timeout},markupFactory:function(a,c){return new b.dnd.TimedMoveable(c,a)},onMoveStop:function(a){a._timer&&(clearTimeout(a._timer),d.call(this,a,a._leftTop));b.dnd.Moveable.prototype.onMoveStop.apply(this,arguments)},
onMove:function(a,b){a._leftTop=b;if(!a._timer){var e=this;a._timer=setTimeout(function(){a._timer=null;d.call(e,a,a._leftTop)},this.timeout)}}})})();return b.dnd.TimedMoveable});
define("dojo/fx/Toggler",["dojo"],function(b){b.declare("dojo.fx.Toggler",null,{node:null,showFunc:b.fadeIn,hideFunc:b.fadeOut,showDuration:200,hideDuration:200,constructor:function(d){b.mixin(this,d);this.node=d.node;this._showArgs=b.mixin({},d);this._showArgs.node=this.node;this._showArgs.duration=this.showDuration;this.showAnim=this.showFunc(this._showArgs);this._hideArgs=b.mixin({},d);this._hideArgs.node=this.node;this._hideArgs.duration=this.hideDuration;this.hideAnim=this.hideFunc(this._hideArgs);
b.connect(this.showAnim,"beforeBegin",b.hitch(this.hideAnim,"stop",!0));b.connect(this.hideAnim,"beforeBegin",b.hitch(this.showAnim,"stop",!0))},show:function(b){return this.showAnim.play(b||0)},hide:function(b){return this.hideAnim.play(b||0)}});return b.fx.Toggler});
define("dojo/fx",["dojo","dojo/fx/Toggler"],function(b){(function(){var d={_fire:function(a,b){this[a]&&this[a].apply(this,b||[]);return this}},a=function(a){this._index=-1;this._animations=a||[];this._current=this._onAnimateCtx=this._onEndCtx=null;this.duration=0;b.forEach(this._animations,function(a){this.duration+=a.duration;a.delay&&(this.duration+=a.delay)},this)};b.extend(a,{_onAnimate:function(){this._fire("onAnimate",arguments)},_onEnd:function(){b.disconnect(this._onAnimateCtx);b.disconnect(this._onEndCtx);
this._onAnimateCtx=this._onEndCtx=null;this._index+1==this._animations.length?this._fire("onEnd"):(this._current=this._animations[++this._index],this._onAnimateCtx=b.connect(this._current,"onAnimate",this,"_onAnimate"),this._onEndCtx=b.connect(this._current,"onEnd",this,"_onEnd"),this._current.play(0,!0))},play:function(a,c){if(!this._current)this._current=this._animations[this._index=0];if(!c&&this._current.status()=="playing")return this;var d=b.connect(this._current,"beforeBegin",this,function(){this._fire("beforeBegin")}),
h=b.connect(this._current,"onBegin",this,function(a){this._fire("onBegin",arguments)}),i=b.connect(this._current,"onPlay",this,function(a){this._fire("onPlay",arguments);b.disconnect(d);b.disconnect(h);b.disconnect(i)});this._onAnimateCtx&&b.disconnect(this._onAnimateCtx);this._onAnimateCtx=b.connect(this._current,"onAnimate",this,"_onAnimate");this._onEndCtx&&b.disconnect(this._onEndCtx);this._onEndCtx=b.connect(this._current,"onEnd",this,"_onEnd");this._current.play.apply(this._current,arguments);
return this},pause:function(){if(this._current){var a=b.connect(this._current,"onPause",this,function(c){this._fire("onPause",arguments);b.disconnect(a)});this._current.pause()}return this},gotoPercent:function(a,c){this.pause();var d=this.duration*a;this._current=null;b.some(this._animations,function(a){if(a.duration<=d)return this._current=a,!0;d-=a.duration;return!1});this._current&&this._current.gotoPercent(d/this._current.duration,c);return this},stop:function(a){if(this._current){if(a){for(;this._index+
1<this._animations.length;++this._index)this._animations[this._index].stop(!0);this._current=this._animations[this._index]}var c=b.connect(this._current,"onStop",this,function(a){this._fire("onStop",arguments);b.disconnect(c)});this._current.stop()}return this},status:function(){return this._current?this._current.status():"stopped"},destroy:function(){this._onAnimateCtx&&b.disconnect(this._onAnimateCtx);this._onEndCtx&&b.disconnect(this._onEndCtx)}});b.extend(a,d);b.fx.chain=function(b){return new a(b)};
var c=function(a){this._animations=a||[];this._connects=[];this.duration=this._finished=0;b.forEach(a,function(a){var c=a.duration;a.delay&&(c+=a.delay);if(this.duration<c)this.duration=c;this._connects.push(b.connect(a,"onEnd",this,"_onEnd"))},this);this._pseudoAnimation=new b.Animation({curve:[0,1],duration:this.duration});var c=this;b.forEach("beforeBegin,onBegin,onPlay,onAnimate,onPause,onStop,onEnd".split(","),function(a){c._connects.push(b.connect(c._pseudoAnimation,a,function(){c._fire(a,arguments)}))})};
b.extend(c,{_doAction:function(a,c){b.forEach(this._animations,function(b){b[a].apply(b,c)});return this},_onEnd:function(){++this._finished>this._animations.length&&this._fire("onEnd")},_call:function(a,b){var c=this._pseudoAnimation;c[a].apply(c,b)},play:function(a,b){this._finished=0;this._doAction("play",arguments);this._call("play",arguments);return this},pause:function(){this._doAction("pause",arguments);this._call("pause",arguments);return this},gotoPercent:function(a,c){var d=this.duration*
a;b.forEach(this._animations,function(a){a.gotoPercent(a.duration<d?1:d/a.duration,c)});this._call("gotoPercent",arguments);return this},stop:function(a){this._doAction("stop",arguments);this._call("stop",arguments);return this},status:function(){return this._pseudoAnimation.status()},destroy:function(){b.forEach(this._connects,b.disconnect)}});b.extend(c,d);b.fx.combine=function(a){return new c(a)};b.fx.wipeIn=function(a){var c=a.node=b.byId(a.node),d=c.style,h,a=b.animateProperty(b.mixin({properties:{height:{start:function(){h=
d.overflow;d.overflow="hidden";if(d.visibility=="hidden"||d.display=="none")return d.height="1px",d.display="",d.visibility="",1;else{var a=b.style(c,"height");return Math.max(a,1)}},end:function(){return c.scrollHeight}}}},a));b.connect(a,"onEnd",function(){d.height="auto";d.overflow=h});return a};b.fx.wipeOut=function(a){var c=(a.node=b.byId(a.node)).style,d,a=b.animateProperty(b.mixin({properties:{height:{end:1}}},a));b.connect(a,"beforeBegin",function(){d=c.overflow;c.overflow="hidden";c.display=
""});b.connect(a,"onEnd",function(){c.overflow=d;c.height="auto";c.display="none"});return a};b.fx.slideTo=function(a){var c=null,d=null,h=function(a){return function(){var e=b.getComputedStyle(a),h=e.position;c=h=="absolute"?a.offsetTop:parseInt(e.top)||0;d=h=="absolute"?a.offsetLeft:parseInt(e.left)||0;if(h!="absolute"&&h!="relative")e=b.position(a,!0),c=e.y,d=e.x,a.style.position="absolute",a.style.top=c+"px",a.style.left=d+"px"}}(a.node=b.byId(a.node));h();a=b.animateProperty(b.mixin({properties:{top:a.top||
0,left:a.left||0}},a));b.connect(a,"beforeBegin",a,h);return a}})();return b.fx});
define("dijit/DialogUnderlay",["dojo","dijit","dojo/window","dijit/_Widget","dijit/_Templated"],function(b,d){b.declare("dijit.DialogUnderlay",[d._Widget,d._Templated],{templateString:"<div class='dijitDialogUnderlayWrapper'><div class='dijitDialogUnderlay' dojoAttachPoint='node'></div></div>",dialogId:"","class":"",attributeMap:{id:"domNode"},_setDialogIdAttr:function(a){b.attr(this.node,"id",a+"_underlay");this._set("dialogId",a)},_setClassAttr:function(a){this.node.className="dijitDialogUnderlay "+
a;this._set("class",a)},postCreate:function(){b.body().appendChild(this.domNode)},layout:function(){var a=this.node.style,c=this.domNode.style;c.display="none";var d=b.window.getBox();c.top=d.t+"px";c.left=d.l+"px";a.width=d.w+"px";a.height=d.h+"px";c.display="block"},show:function(){this.domNode.style.display="block";this.layout();this.bgIframe=new d.BackgroundIframe(this.domNode)},hide:function(){this.bgIframe.destroy();delete this.bgIframe;this.domNode.style.display="none"}});return d.DialogUnderlay});
define("dijit/nls/common",{root:{buttonOk:"OK",buttonCancel:"Cancel",buttonSave:"Save",itemClose:"Close"},zh:!0,"zh-tw":!0,tr:!0,th:!0,sv:!0,sl:!0,sk:!0,ru:!0,ro:!0,pt:!0,"pt-pt":!0,pl:!0,nl:!0,nb:!0,ko:!0,kk:!0,ja:!0,it:!0,hu:!0,he:!0,fr:!0,fi:!0,es:!0,el:!0,de:!0,da:!0,cs:!0,ca:!0,ar:!0});
define("dijit/Dialog","dojo,dijit,text!dijit/templates/Dialog.html,dojo/dnd/move,dojo/dnd/TimedMoveable,dojo/fx,dojo/window,dijit/_Widget,dijit/_Templated,dijit/_CssStateMixin,dijit/form/_FormMixin,dijit/_DialogMixin,dijit/DialogUnderlay,dijit/layout/ContentPane,i18n!dijit/nls/common,dijit/TooltipDialog".split(","),function(b,d){b.declare("dijit._DialogBase",[d._Templated,d.form._FormMixin,d._DialogMixin,d._CssStateMixin],{templateString:b.cache("dijit","templates/Dialog.html"),baseClass:"dijitDialog",
cssStateNodes:{closeButtonNode:"dijitDialogCloseIcon"},attributeMap:b.delegate(d._Widget.prototype.attributeMap,{title:[{node:"titleNode",type:"innerHTML"},{node:"titleBar",type:"attribute"}],"aria-describedby":""}),open:!1,duration:d.defaultDuration,refocus:!0,autofocus:!0,_firstFocusItem:null,_lastFocusItem:null,doLayout:!1,draggable:!0,"aria-describedby":"",postMixInProperties:function(){var a=b.i18n.getLocalization("dijit","common");b.mixin(this,a);this.inherited(arguments)},postCreate:function(){b.style(this.domNode,
{display:"none",position:"absolute"});b.body().appendChild(this.domNode);this.inherited(arguments);this.connect(this,"onExecute","hide");this.connect(this,"onCancel","hide");this._modalconnects=[]},onLoad:function(){this._position();this.autofocus&&d._DialogLevelManager.isTop(this)&&(this._getFocusItems(this.domNode),d.focus(this._firstFocusItem));this.inherited(arguments)},_endDrag:function(a){if(a&&a.node&&a.node===this.domNode)this._relativePosition=b.position(a.node)},_setup:function(){var a=
this.domNode;this.titleBar&&this.draggable?(this._moveable=b.isIE==6?new b.dnd.TimedMoveable(a,{handle:this.titleBar}):new b.dnd.Moveable(a,{handle:this.titleBar,timeout:0}),this._dndListener=b.subscribe("/dnd/move/stop",this,"_endDrag")):b.addClass(a,"dijitDialogFixed");this.underlayAttrs={dialogId:this.id,"class":b.map(this["class"].split(/\s/),function(a){return a+"_underlay"}).join(" ")}},_size:function(){this._checkIfSingleChild();if(this._singleChild){if(this._singleChildOriginalStyle)this._singleChild.domNode.style.cssText=
this._singleChildOriginalStyle;delete this._singleChildOriginalStyle}else b.style(this.containerNode,{width:"auto",height:"auto"});var a=b._getMarginSize(this.domNode),c=b.window.getBox();if(a.w>=c.w||a.h>=c.h){var d=Math.min(a.w,Math.floor(c.w*0.75)),a=Math.min(a.h,Math.floor(c.h*0.75));this._singleChild&&this._singleChild.resize?(this._singleChildOriginalStyle=this._singleChild.domNode.style.cssText,this._singleChild.resize({w:d,h:a})):b.style(this.containerNode,{width:d+"px",height:a+"px",overflow:"auto",
position:"relative"})}else this._singleChild&&this._singleChild.resize&&this._singleChild.resize()},_position:function(){if(!b.hasClass(b.body(),"dojoMove")){var a=this.domNode,c=b.window.getBox(),d=this._relativePosition,f=d?null:b._getBorderBox(a);b.style(a,{left:Math.floor(c.l+(d?d.x:(c.w-f.w)/2))+"px",top:Math.floor(c.t+(d?d.y:(c.h-f.h)/2))+"px"})}},_onKey:function(a){if(a.charOrCode){var c=b.keys,e=a.target;a.charOrCode===c.TAB&&this._getFocusItems(this.domNode);var f=this._firstFocusItem==this._lastFocusItem;
if(e==this._firstFocusItem&&a.shiftKey&&a.charOrCode===c.TAB)f||d.focus(this._lastFocusItem),b.stopEvent(a);else if(e==this._lastFocusItem&&a.charOrCode===c.TAB&&!a.shiftKey)f||d.focus(this._firstFocusItem),b.stopEvent(a);else{for(;e;){if(e==this.domNode||b.hasClass(e,"dijitPopup"))if(a.charOrCode==c.ESCAPE)this.onCancel();else return;e=e.parentNode}if(a.charOrCode!==c.TAB)b.stopEvent(a);else if(!b.isOpera)try{this._firstFocusItem.focus()}catch(g){}}}},show:function(){if(!this.open){this._started||
this.startup();if(!this._alreadyInitialized)this._setup(),this._alreadyInitialized=!0;this._fadeOutDeferred&&this._fadeOutDeferred.cancel();this._modalconnects.push(b.connect(window,"onscroll",this,"layout"));this._modalconnects.push(b.connect(window,"onresize",this,function(){var a=b.window.getBox();if(!this._oldViewport||a.h!=this._oldViewport.h||a.w!=this._oldViewport.w)this.layout(),this._oldViewport=a}));this._modalconnects.push(b.connect(this.domNode,"onkeypress",this,"_onKey"));b.style(this.domNode,
{opacity:0,display:""});this._set("open",!0);this._onShow();this._size();this._position();var a;this._fadeInDeferred=new b.Deferred(b.hitch(this,function(){a.stop();delete this._fadeInDeferred}));a=b.fadeIn({node:this.domNode,duration:this.duration,beforeBegin:b.hitch(this,function(){d._DialogLevelManager.show(this,this.underlayAttrs)}),onEnd:b.hitch(this,function(){this.autofocus&&d._DialogLevelManager.isTop(this)&&(this._getFocusItems(this.domNode),d.focus(this._firstFocusItem));this._fadeInDeferred.callback(!0);
delete this._fadeInDeferred})}).play();return this._fadeInDeferred}},hide:function(){if(this._alreadyInitialized){this._fadeInDeferred&&this._fadeInDeferred.cancel();var a;this._fadeOutDeferred=new b.Deferred(b.hitch(this,function(){a.stop();delete this._fadeOutDeferred}));a=b.fadeOut({node:this.domNode,duration:this.duration,onEnd:b.hitch(this,function(){this.domNode.style.display="none";d._DialogLevelManager.hide(this);this.onHide();this._fadeOutDeferred.callback(!0);delete this._fadeOutDeferred})}).play();
if(this._scrollConnected)this._scrollConnected=!1;b.forEach(this._modalconnects,b.disconnect);this._modalconnects=[];this._relativePosition&&delete this._relativePosition;this._set("open",!1);return this._fadeOutDeferred}},layout:function(){this.domNode.style.display!="none"&&(d._underlay&&d._underlay.layout(),this._position())},destroy:function(){this._fadeInDeferred&&this._fadeInDeferred.cancel();this._fadeOutDeferred&&this._fadeOutDeferred.cancel();this._moveable&&this._moveable.destroy();this._dndListener&&
b.unsubscribe(this._dndListener);b.forEach(this._modalconnects,b.disconnect);d._DialogLevelManager.hide(this);this.inherited(arguments)}});b.declare("dijit.Dialog",[d.layout.ContentPane,d._DialogBase],{});d._DialogLevelManager={show:function(a,c){var e=d._dialogStack;e[e.length-1].focus=d.getFocus(a);var f=d._underlay;!f||f._destroyed?f=d._underlay=new d.DialogUnderlay(c):f.set(a.underlayAttrs);var g=e[e.length-1].dialog?e[e.length-1].zIndex+2:950;e.length==1&&f.show();b.style(d._underlay.domNode,
"zIndex",g-1);b.style(a.domNode,"zIndex",g);e.push({dialog:a,underlayAttrs:c,zIndex:g})},hide:function(a){var c=d._dialogStack;if(c[c.length-1].dialog==a){c.pop();var e=c[c.length-1];c.length==1?d._underlay._destroyed||d._underlay.hide():(b.style(d._underlay.domNode,"zIndex",e.zIndex-1),d._underlay.set(e.underlayAttrs));if(a.refocus){c=e.focus;if(!c||e.dialog&&!b.isDescendant(c.node,e.dialog.domNode))e.dialog._getFocusItems(e.dialog.domNode),c=e.dialog._firstFocusItem;try{d.focus(c)}catch(f){}}}else e=
b.indexOf(b.map(c,function(a){return a.dialog}),a),e!=-1&&c.splice(e,1)},isTop:function(a){var b=d._dialogStack;return b[b.length-1].dialog==a}};d._dialogStack=[{dialog:null,focus:null,underlayAttrs:null}];return d.Dialog});define("text!dijit/form/templates/CheckBox.html",[],function(){return'<div class="dijit dijitReset dijitInline" role="presentation"\n\t><input\n\t \t${!nameAttrSetting} type="${type}" ${checkedAttrSetting}\n\t\tclass="dijitReset dijitCheckBoxInput"\n\t\tdojoAttachPoint="focusNode"\n\t \tdojoAttachEvent="onclick:_onClick"\n/></div>'});
define("dijit/form/ToggleButton",["dojo","dijit","dijit/form/Button"],function(b,d){return d.form.ToggleButton});
define("dijit/form/CheckBox",["dojo","dijit","text!dijit/form/templates/CheckBox.html","dijit/form/ToggleButton"],function(b,d){b.declare("dijit.form.CheckBox",d.form.ToggleButton,{templateString:b.cache("dijit.form","templates/CheckBox.html"),baseClass:"dijitCheckBox",type:"checkbox",value:"on",readOnly:!1,attributeMap:b.delegate(d.form._FormWidget.prototype.attributeMap,{readOnly:"focusNode"}),_setReadOnlyAttr:function(a){this._set("readOnly",a);b.attr(this.focusNode,"readOnly",a);d.setWaiState(this.focusNode,
"readonly",a)},_setValueAttr:function(a,c){typeof a=="string"&&(this._set("value",a),b.attr(this.focusNode,"value",a),a=!0);this._created&&this.set("checked",a,c)},_getValueAttr:function(){return this.checked?this.value:!1},_setLabelAttr:void 0,postMixInProperties:function(){if(this.value=="")this.value="on";this.checkedAttrSetting=this.checked?"checked":"";this.inherited(arguments)},_fillContent:function(){},reset:function(){this._hasBeenBlurred=!1;this.set("checked",this.params.checked||!1);this._set("value",
this.params.value||"on");b.attr(this.focusNode,"value",this.value)},_onFocus:function(){this.id&&b.query("label[for='"+this.id+"']").addClass("dijitFocusedLabel");this.inherited(arguments)},_onBlur:function(){this.id&&b.query("label[for='"+this.id+"']").removeClass("dijitFocusedLabel");this.inherited(arguments)},_onClick:function(a){return this.readOnly?(b.stopEvent(a),!1):this.inherited(arguments)}});b.declare("dijit.form.RadioButton",d.form.CheckBox,{type:"radio",baseClass:"dijitRadio",_setCheckedAttr:function(a){this.inherited(arguments);
if(this._created&&a){var c=this;b.query("INPUT[type=radio]",this.focusNode.form||b.doc).forEach(function(a){a.name==c.name&&a!=c.focusNode&&a.form==c.focusNode.form&&(a=d.getEnclosingWidget(a))&&a.checked&&a.set("checked",!1)})}},_clicked:function(){this.checked||this.set("checked",!0)}});return d.form.CheckBox});
define("dijit/form/Form","dojo,dijit,dijit/_Widget,dijit/_Templated,dijit/form/_FormMixin,dijit/layout/_ContentPaneResizeMixin".split(","),function(b,d){b.declare("dijit.form.Form",[d._Widget,d._Templated,d.form._FormMixin,d.layout._ContentPaneResizeMixin],{name:"",action:"",method:"",encType:"","accept-charset":"",accept:"",target:"",templateString:"<form dojoAttachPoint='containerNode' dojoAttachEvent='onreset:_onReset,onsubmit:_onSubmit' ${!nameAttrSetting}></form>",attributeMap:b.delegate(d._Widget.prototype.attributeMap,
{action:"",method:"",encType:"","accept-charset":"",accept:"",target:""}),postMixInProperties:function(){this.nameAttrSetting=this.name?"name='"+this.name+"'":"";this.inherited(arguments)},execute:function(){},onExecute:function(){},_setEncTypeAttr:function(a){this.encType=a;b.attr(this.domNode,"encType",a);if(b.isIE)this.domNode.encoding=a},postCreate:function(){if(b.isIE&&this.srcNodeRef&&this.srcNodeRef.attributes){var a=this.srcNodeRef.attributes.getNamedItem("encType");a&&!a.specified&&typeof a.value==
"string"&&this.set("encType",a.value)}this.inherited(arguments)},reset:function(a){var b={returnValue:!0,preventDefault:function(){this.returnValue=!1},stopPropagation:function(){},currentTarget:a?a.target:this.domNode,target:a?a.target:this.domNode};this.onReset(b)!==!1&&b.returnValue&&this.inherited(arguments,[])},onReset:function(){return!0},_onReset:function(a){this.reset(a);b.stopEvent(a);return!1},_onSubmit:function(a){var c=d.form.Form.prototype;if(this.execute!=c.execute||this.onExecute!=
c.onExecute)b.deprecated("dijit.form.Form:execute()/onExecute() are deprecated. Use onSubmit() instead.","","2.0"),this.onExecute(),this.execute(this.getValues());this.onSubmit(a)===!1&&b.stopEvent(a)},onSubmit:function(){return this.isValid()},submit:function(){this.onSubmit()!==!1&&this.containerNode.submit()}});return d.form.Form});
define("dojo/data/util/filter",["dojo"],function(b){b.getObject("data.util.filter",!0,b);b.data.util.filter.patternToRegExp=function(b,a){for(var c="^",e=null,f=0;f<b.length;f++)switch(e=b.charAt(f),e){case "\\":c+=e;f++;c+=b.charAt(f);break;case "*":c+=".*";break;case "?":c+=".";break;case "$":case "^":case "/":case "+":case ".":case "|":case "(":case ")":case "{":case "}":case "[":case "]":c+="\\";default:c+=e}c+="$";return a?RegExp(c,"mi"):RegExp(c,"m")};return b.data.util.filter});
define("dojo/data/util/sorter",["dojo"],function(b){b.getObject("data.util.sorter",!0,b);b.data.util.sorter.basicComparator=function(b,a){var c=-1;b===null&&(b=void 0);a===null&&(a=void 0);if(b==a)c=0;else if(b>a||b==null)c=1;return c};b.data.util.sorter.createSortFunction=function(d,a){function c(a,b,c,d){return function(e,f){var g=d.getValue(e,a),h=d.getValue(f,a);return b*c(g,h)}}for(var e=[],f,g=a.comparatorMap,h=b.data.util.sorter.basicComparator,i=0;i<d.length;i++){f=d[i];var j=f.attribute;
if(j){f=f.descending?-1:1;var k=h;g&&(typeof j!=="string"&&"toString"in j&&(j=j.toString()),k=g[j]||h);e.push(c(j,f,k,a))}}return function(a,b){for(var c=0;c<e.length;){var d=e[c++](a,b);if(d!==0)return d}return 0}};return b.data.util.sorter});
define("dojo/data/util/simpleFetch",["dojo","dojo/data/util/sorter"],function(b){b.getObject("data.util.simpleFetch",!0,b);b.data.util.simpleFetch.fetch=function(d){d=d||{};if(!d.store)d.store=this;var a=this;this._fetchItems(d,function(c,d){var f=d.abort||null,g=!1,h=d.start?d.start:0,i=d.count&&d.count!==Infinity?h+d.count:c.length;d.abort=function(){g=!0;f&&f.call(d)};var j=d.scope||b.global;if(!d.store)d.store=a;d.onBegin&&d.onBegin.call(j,c.length,d);d.sort&&c.sort(b.data.util.sorter.createSortFunction(d.sort,
a));if(d.onItem)for(var k=h;k<c.length&&k<i;++k){var l=c[k];g||d.onItem.call(j,l,d)}d.onComplete&&!g&&(k=null,d.onItem||(k=c.slice(h,i)),d.onComplete.call(j,k,d))},function(a,d){d.onError&&d.onError.call(d.scope||b.global,a,d)});return d};return b.data.util.simpleFetch});
define("dojo/data/ItemFileReadStore",["dojo","dojo/data/util/filter","dojo/data/util/simpleFetch","dojo/date/stamp"],function(b){b.declare("dojo.data.ItemFileReadStore",null,{constructor:function(d){this._arrayOfAllItems=[];this._arrayOfTopLevelItems=[];this._loadFinished=!1;this.url=this._ccUrl=this._jsonFileUrl=d.url;this._jsonData=d.data;this.data=null;this._datatypeMap=d.typeMap||{};this._datatypeMap.Date||(this._datatypeMap.Date={type:Date,deserialize:function(a){return b.date.stamp.fromISOString(a)}});
this._features={"dojo.data.api.Read":!0,"dojo.data.api.Identity":!0};this._itemsByIdentity=null;this._storeRefPropName="_S";this._itemNumPropName="_0";this._rootItemPropName="_RI";this._reverseRefMap="_RRM";this._loadInProgress=!1;this._queuedFetches=[];if(d.urlPreventCache!==void 0)this.urlPreventCache=d.urlPreventCache?!0:!1;if(d.hierarchical!==void 0)this.hierarchical=d.hierarchical?!0:!1;if(d.clearOnClose)this.clearOnClose=!0;if("failOk"in d)this.failOk=d.failOk?!0:!1},url:"",_ccUrl:"",data:null,
typeMap:null,clearOnClose:!1,urlPreventCache:!1,failOk:!1,hierarchical:!0,_assertIsItem:function(b){if(!this.isItem(b))throw Error("dojo.data.ItemFileReadStore: Invalid item argument.");},_assertIsAttribute:function(b){if(typeof b!=="string")throw Error("dojo.data.ItemFileReadStore: Invalid attribute argument.");},getValue:function(b,a,c){b=this.getValues(b,a);return b.length>0?b[0]:c},getValues:function(b,a){this._assertIsItem(b);this._assertIsAttribute(a);return(b[a]||[]).slice(0)},getAttributes:function(b){this._assertIsItem(b);
var a=[],c;for(c in b)c!==this._storeRefPropName&&c!==this._itemNumPropName&&c!==this._rootItemPropName&&c!==this._reverseRefMap&&a.push(c);return a},hasAttribute:function(b,a){this._assertIsItem(b);this._assertIsAttribute(a);return a in b},containsValue:function(d,a,c){var e=void 0;typeof c==="string"&&(e=b.data.util.filter.patternToRegExp(c,!1));return this._containsValue(d,a,c,e)},_containsValue:function(d,a,c,e){return b.some(this.getValues(d,a),function(a){if(a!==null&&!b.isObject(a)&&e){if(a.toString().match(e))return!0}else if(c===
a)return!0})},isItem:function(b){return b&&b[this._storeRefPropName]===this&&this._arrayOfAllItems[b[this._itemNumPropName]]===b?!0:!1},isItemLoaded:function(b){return this.isItem(b)},loadItem:function(b){this._assertIsItem(b.item)},getFeatures:function(){return this._features},getLabel:function(b){if(this._labelAttr&&this.isItem(b))return this.getValue(b,this._labelAttr)},getLabelAttributes:function(){return this._labelAttr?[this._labelAttr]:null},_fetchItems:function(d,a,c){var e=this,f=function(c,
d){var f=[],g,h;if(c.query){var i;g=c.queryOptions?c.queryOptions.ignoreCase:!1;var p={};for(h in c.query)i=c.query[h],typeof i==="string"?p[h]=b.data.util.filter.patternToRegExp(i,g):i instanceof RegExp&&(p[h]=i);for(g=0;g<d.length;++g){var r=!0,q=d[g];if(q===null)r=!1;else for(h in c.query)i=c.query[h],e._containsValue(q,h,i,p[h])||(r=!1);r&&f.push(q)}}else for(g=0;g<d.length;++g)h=d[g],h!==null&&f.push(h);a(f,c)};if(this._loadFinished)f(d,this._getItemsArray(d.queryOptions));else{if(this._jsonFileUrl!==
this._ccUrl)b.deprecated("dojo.data.ItemFileReadStore: ","To change the url, set the url property of the store, not _jsonFileUrl.  _jsonFileUrl support will be removed in 2.0"),this.url=this._ccUrl=this._jsonFileUrl;else if(this.url!==this._ccUrl)this._ccUrl=this._jsonFileUrl=this.url;if(this.data!=null)this._jsonData=this.data,this.data=null;if(this._jsonFileUrl)if(this._loadInProgress)this._queuedFetches.push({args:d,filter:f});else{this._loadInProgress=!0;var g=b.xhrGet({url:e._jsonFileUrl,handleAs:"json-comment-optional",
preventCache:this.urlPreventCache,failOk:this.failOk});g.addCallback(function(a){try{e._getItemsFromLoadedData(a),e._loadFinished=!0,e._loadInProgress=!1,f(d,e._getItemsArray(d.queryOptions)),e._handleQueuedFetches()}catch(b){e._loadFinished=!0,e._loadInProgress=!1,c(b,d)}});g.addErrback(function(a){e._loadInProgress=!1;c(a,d)});var h=null;if(d.abort)h=d.abort;d.abort=function(){g&&g.fired===-1&&g.cancel();h&&h.call(d)}}else if(this._jsonData)try{this._loadFinished=!0,this._getItemsFromLoadedData(this._jsonData),
this._jsonData=null,f(d,this._getItemsArray(d.queryOptions))}catch(i){c(i,d)}else c(Error("dojo.data.ItemFileReadStore: No JSON source data was provided as either URL or a nested Javascript object."),d)}},_handleQueuedFetches:function(){if(this._queuedFetches.length>0){for(var b=0;b<this._queuedFetches.length;b++){var a=this._queuedFetches[b],c=a.args;(a=a.filter)?a(c,this._getItemsArray(c.queryOptions)):this.fetchItemByIdentity(c)}this._queuedFetches=[]}},_getItemsArray:function(b){return b&&b.deep?
this._arrayOfAllItems:this._arrayOfTopLevelItems},close:function(){if(this.clearOnClose&&this._loadFinished&&!this._loadInProgress)(this._jsonFileUrl==""||this._jsonFileUrl==null)&&(this.url==""||this.url==null)&&this.data==null&&console.debug("dojo.data.ItemFileReadStore: WARNING!  Data reload  information has not been provided.  Please set 'url' or 'data' to the appropriate value before the next fetch"),this._arrayOfAllItems=[],this._arrayOfTopLevelItems=[],this._loadFinished=!1,this._itemsByIdentity=
null,this._loadInProgress=!1,this._queuedFetches=[]},_getItemsFromLoadedData:function(d){function a(a){return a!==null&&typeof a==="object"&&(!b.isArray(a)||e)&&!b.isFunction(a)&&(a.constructor==Object||b.isArray(a))&&typeof a._reference==="undefined"&&typeof a._type==="undefined"&&typeof a._value==="undefined"&&f.hierarchical}function c(d){f._arrayOfAllItems.push(d);for(var e in d){var g=d[e];if(g)if(b.isArray(g))for(var h=0;h<g.length;++h){var i=g[h];a(i)&&c(i)}else a(g)&&c(g)}}var e=!1,f=this;
this._labelAttr=d.label;var g,h;this._arrayOfAllItems=[];this._arrayOfTopLevelItems=d.items;for(g=0;g<this._arrayOfTopLevelItems.length;++g)h=this._arrayOfTopLevelItems[g],b.isArray(h)&&(e=!0),c(h),h[this._rootItemPropName]=!0;var i={},j;for(g=0;g<this._arrayOfAllItems.length;++g)for(j in h=this._arrayOfAllItems[g],h){if(j!==this._rootItemPropName){var k=h[j];k!==null?b.isArray(k)||(h[j]=[k]):h[j]=[null]}i[j]=j}for(;i[this._storeRefPropName];)this._storeRefPropName+="_";for(;i[this._itemNumPropName];)this._itemNumPropName+=
"_";for(;i[this._reverseRefMap];)this._reverseRefMap+="_";if(i=d.identifier){this._itemsByIdentity={};this._features["dojo.data.api.Identity"]=i;for(g=0;g<this._arrayOfAllItems.length;++g)if(h=this._arrayOfAllItems[g],d=h[i],d=d[0],Object.hasOwnProperty.call(this._itemsByIdentity,d))if(this._jsonFileUrl)throw Error("dojo.data.ItemFileReadStore:  The json data as specified by: ["+this._jsonFileUrl+"] is malformed.  Items within the list have identifier: ["+i+"].  Value collided: ["+d+"]");else{if(this._jsonData)throw Error("dojo.data.ItemFileReadStore:  The json data provided by the creation arguments is malformed.  Items within the list have identifier: ["+
i+"].  Value collided: ["+d+"]");}else this._itemsByIdentity[d]=h}else this._features["dojo.data.api.Identity"]=Number;for(g=0;g<this._arrayOfAllItems.length;++g)h=this._arrayOfAllItems[g],h[this._storeRefPropName]=this,h[this._itemNumPropName]=g;for(g=0;g<this._arrayOfAllItems.length;++g)for(j in h=this._arrayOfAllItems[g],h){d=h[j];for(i=0;i<d.length;++i)if(k=d[i],k!==null&&typeof k=="object"){if("_type"in k&&"_value"in k){var l=k._type,m=this._datatypeMap[l];if(m)if(b.isFunction(m))d[i]=new m(k._value);
else if(b.isFunction(m.deserialize))d[i]=m.deserialize(k._value);else throw Error("dojo.data.ItemFileReadStore: Value provided in typeMap was neither a constructor, nor a an object with a deserialize function");else throw Error("dojo.data.ItemFileReadStore: in the typeMap constructor arg, no object class was specified for the datatype '"+l+"'");}if(k._reference){k=k._reference;if(b.isObject(k))for(l=0;l<this._arrayOfAllItems.length;++l){var m=this._arrayOfAllItems[l],n=!0,o;for(o in k)m[o]!=k[o]&&
(n=!1);n&&(d[i]=m)}else d[i]=this._getItemByIdentity(k);this.referenceIntegrity&&(k=d[i],this.isItem(k)&&this._addReferenceToMap(k,h,j))}else this.isItem(k)&&this.referenceIntegrity&&this._addReferenceToMap(k,h,j)}}},_addReferenceToMap:function(){},getIdentity:function(b){var a=this._features["dojo.data.api.Identity"];if(a===Number)return b[this._itemNumPropName];else if(b=b[a])return b[0];return null},fetchItemByIdentity:function(d){var a,c;if(this._loadFinished)a=this._getItemByIdentity(d.identity),
d.onItem&&(c=d.scope?d.scope:b.global,d.onItem.call(c,a));else{var e=this;if(this._jsonFileUrl!==this._ccUrl)b.deprecated("dojo.data.ItemFileReadStore: ","To change the url, set the url property of the store, not _jsonFileUrl.  _jsonFileUrl support will be removed in 2.0"),this.url=this._ccUrl=this._jsonFileUrl;else if(this.url!==this._ccUrl)this._ccUrl=this._jsonFileUrl=this.url;if(this.data!=null&&this._jsonData==null)this._jsonData=this.data,this.data=null;if(this._jsonFileUrl)this._loadInProgress?
this._queuedFetches.push({args:d}):(this._loadInProgress=!0,c=b.xhrGet({url:e._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk}),c.addCallback(function(c){var g=d.scope?d.scope:b.global;try{e._getItemsFromLoadedData(c),e._loadFinished=!0,e._loadInProgress=!1,a=e._getItemByIdentity(d.identity),d.onItem&&d.onItem.call(g,a),e._handleQueuedFetches()}catch(h){e._loadInProgress=!1,d.onError&&d.onError.call(g,h)}}),c.addErrback(function(a){e._loadInProgress=
!1;d.onError&&d.onError.call(d.scope?d.scope:b.global,a)}));else if(this._jsonData)e._getItemsFromLoadedData(e._jsonData),e._jsonData=null,e._loadFinished=!0,a=e._getItemByIdentity(d.identity),d.onItem&&(c=d.scope?d.scope:b.global,d.onItem.call(c,a))}},_getItemByIdentity:function(b){var a=null;this._itemsByIdentity&&Object.hasOwnProperty.call(this._itemsByIdentity,b)?a=this._itemsByIdentity[b]:Object.hasOwnProperty.call(this._arrayOfAllItems,b)&&(a=this._arrayOfAllItems[b]);a===void 0&&(a=null);return a},
getIdentityAttributes:function(){var b=this._features["dojo.data.api.Identity"];return b===Number?null:[b]},_forceLoad:function(){var d=this;if(this._jsonFileUrl!==this._ccUrl)b.deprecated("dojo.data.ItemFileReadStore: ","To change the url, set the url property of the store, not _jsonFileUrl.  _jsonFileUrl support will be removed in 2.0"),this.url=this._ccUrl=this._jsonFileUrl;else if(this.url!==this._ccUrl)this._ccUrl=this._jsonFileUrl=this.url;if(this.data!=null)this._jsonData=this.data,this.data=
null;if(this._jsonFileUrl){var a=b.xhrGet({url:this._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk,sync:!0});a.addCallback(function(a){try{if(d._loadInProgress!==!0&&!d._loadFinished)d._getItemsFromLoadedData(a),d._loadFinished=!0;else if(d._loadInProgress)throw Error("dojo.data.ItemFileReadStore:  Unable to perform a synchronous load, an async load is in progress.");}catch(b){throw console.log(b),b;}});a.addErrback(function(a){throw a;})}else if(this._jsonData)d._getItemsFromLoadedData(d._jsonData),
d._jsonData=null,d._loadFinished=!0}});b.extend(b.data.ItemFileReadStore,b.data.util.simpleFetch);return b.data.ItemFileReadStore});
define("orion/widgets/_OrionDialogMixin",["i18n!orion/widgets/nls/messages","dojo","dijit"],function(b,d,a){d.declare("orion.widgets._OrionDialogMixin",null,{postMixInProperties:function(){this.inherited(arguments);this.title=this.options.title||b["Information Needed"];this.buttonCancel=b.Cancel},postCreate:function(){this.inherited(arguments);d.connect(this,"onKeyPress",d.hitch(this,function(a){a.keyCode===d.keys.ENTER&&this._onSubmit()}))},onHide:function(){this.inherited(arguments);setTimeout(d.hitch(this,
function(){if(d.isDescendant(a._curFocus,this.domNode))a._curFocus=null;if(d.isDescendant(a._prevFocus,this.domNode))a._prevFocus=null;this.destroyRecursive()}),this.duration)}})});define("text!orion/widgets/templates/NewItemDialog.html",[],function(){return'<div class="dijitDialog" tabindex="-1" waiRole="dialog" waiState="labelledby-${id}_title">\n\t<div dojoAttachPoint="titleBar" class="dijitDialogTitleBar">\n\t\t<span dojoAttachPoint="titleNode" class="dijitDialogTitle" id="${id}_title"></span>\n\t\t<span dojoAttachPoint="closeButtonNode" class="dijitDialogCloseIcon" dojoAttachEvent="onclick: onCancel" title="${buttonCancel}">\n\t\t\t<span dojoAttachPoint="closeText" class="closeText" title="${buttonCancel}">x</span>\n\t\t</span>\n\t</div>\n\t<div dojoAttachPoint="containerNode" class="dijitDialogPaneContent">\n\t\t<\!-- Actual content here --\>\n\t\t<div style="display: table">\n\t\t\t<div style="display: table-row">\n\t\t\t\t<div style="display: table-cell; padding: 5">\n\t\t\t\t\t<label dojoAttachPoint="itemNameLabel" for="${id}_itemName" style="padding-right: 10">${itemNameLabelText}</label>\n\t\t\t\t</div>\n\t\t\t\t<div style="display: table-cell; padding: 5; width: 30em; text-align: left;">\n\t\t\t\t\t<input dojoType="dijit.form.ValidationTextBox" dojoAttachPoint="itemName" id="${id}_itemName" style="display: inline-block; width: 98%;" value="">\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div style="display: none;" dojoAttachPoint="itemAdvancedInfo">\n\t\t\t\t<div style="display: table-cell; padding: 5">\n\t\t\t\t\t<label dojoAttachPoint="itemURLLabel" for="itemURL" style="padding-right: 10">Server Path:</label>\n\t\t\t\t</div>\n\t\t\t\t<div style="display: table-cell; width: 40em; text-align: left; padding:5;">\n\t\t\t\t\t<input dojoAttachPoint="itemURL" style="display: inline-block; width: 98%;" value="">\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div style="display: none;" dojoAttachPoint="itemAdvancedInfo1">\n\t\t\t\t<div style="display: table-cell;"></div>\n\t\t\t\t<div style="display: table-cell;">\n\t\t\t\t\t<input dojoAttachPoint="createCheckbox" id="${id}_createCheckbox" dojoType="dijit.form.CheckBox" checked="checked" value="on" type="checkbox">\n\t\t\t\t\t<label dojoAttachPoint="createCheckboxLabel" for="${id}_createCheckbox">Create if doesn\'t exist</label>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div style="display: table-row">\n\t\t\t\t<div style="display: table-cell; padding: 5"></div>\n\t\t\t\t<div style="display: table-cell; padding: 5">\n\t\t\t\t\t<button dojoAttachPoint="newItemButton" dojoType="dijit.form.Button" type="submit" value="OK" style="padding: 20 0 10 0; float: right; clear: both;">OK\n\t\t\t\t\t</button>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>'});
define("orion/widgets/NewItemDialog","i18n!orion/widgets/nls/messages,dojo,dijit,dijit/Dialog,dijit/form/CheckBox,dijit/form/CheckBox,dijit/form/Form,dijit/form/ValidationTextBox,dojo/data/ItemFileReadStore,orion/widgets/_OrionDialogMixin,text!orion/widgets/templates/NewItemDialog.html".split(","),function(b,d,a){d.declare("orion.widgets.NewItemDialog",[a.Dialog,orion.widgets._OrionDialogMixin],{widgetsInTemplate:!0,templateString:d.cache("orion","widgets/templates/NewItemDialog.html"),constructor:function(a){this.options=
a||{};this.options.advanced=this.options.advanced||!1},postMixInProperties:function(){this.inherited(arguments);this.itemNameLabelText=this.options.label||b["Name:"]},postCreate:function(){this.inherited(arguments);this.options.advanced?(this.itemAdvancedInfo.style.display="table-row",this.itemAdvancedInfo1.style.display="table-row",d.connect(this.itemURL,"onkeyup",null,d.hitch(this,this.onURLChange))):(this.itemAdvancedInfo.style.display="none",this.itemAdvancedInfo1.style.display="none")},execute:function(){var a,
b;this.newItemButton.focus();this.options.advanced&&(a=this.itemURL.value.replace(/^\s+|\s+$/g,""),b=this.createCheckbox.get("disabled")?!1:this.createCheckbox.get("checked"));this.options.func(this.itemName.value,a&&a!==""?a:void 0,b)},onURLChange:function(){var a=this.itemURL.value;a.match(/^file:\/\//)?this.createCheckbox.set("disabled",!1):a.match(/^[a-zA-Z][a-zA-Z]+:\/\/.+/)?this.createCheckbox.set("disabled",!0):this.createCheckbox.set("disabled",!1)}})});
define("text!dijit/templates/TreeNode.html",[],function(){return'<div class="dijitTreeNode" role="presentation"\n\t><div dojoAttachPoint="rowNode" class="dijitTreeRow" role="presentation" dojoAttachEvent="onmouseenter:_onMouseEnter, onmouseleave:_onMouseLeave, onclick:_onClick, ondblclick:_onDblClick"\n\t\t><img src="${_blankGif}" alt="" dojoAttachPoint="expandoNode" class="dijitTreeExpando" role="presentation"\n\t\t/><span dojoAttachPoint="expandoNodeText" class="dijitExpandoText" role="presentation"\n\t\t></span\n\t\t><span dojoAttachPoint="contentNode"\n\t\t\tclass="dijitTreeContent" role="presentation">\n\t\t\t<img src="${_blankGif}" alt="" dojoAttachPoint="iconNode" class="dijitIcon dijitTreeIcon" role="presentation"\n\t\t\t/><span dojoAttachPoint="labelNode" class="dijitTreeLabel" role="treeitem" tabindex="-1" aria-selected="false" dojoAttachEvent="onfocus:_onLabelFocus"></span>\n\t\t</span\n\t></div>\n\t<div dojoAttachPoint="containerNode" class="dijitTreeContainer" role="presentation" style="display: none;"></div>\n</div>'});
define("text!dijit/templates/Tree.html",[],function(){return'<div class="dijitTree dijitTreeContainer" role="tree"\n\tdojoAttachEvent="onkeypress:_onKeyPress">\n\t<div class="dijitInline dijitTreeIndent" style="position: absolute; top: -9999px" dojoAttachPoint="indentDetector"></div>\n</div>'});
define("dojo/DeferredList",["dojo"],function(b){b.DeferredList=function(d,a,c,e){var f=[];b.Deferred.call(this);var g=this;d.length===0&&!a&&this.resolve([0,[]]);var h=0;b.forEach(d,function(b,j){function k(a,b){f[j]=[a,b];h++;h===d.length&&g.resolve(f)}b.then(function(b){a?g.resolve([j,b]):k(!0,b)},function(a){c?g.reject(a):k(!1,a);if(e)return null;throw a;})})};b.DeferredList.prototype=new b.Deferred;b.DeferredList.prototype.gatherResults=function(d){d=new b.DeferredList(d,!1,!0,!1);d.addCallback(function(a){var c=
[];b.forEach(a,function(a){c.push(a[1])});return c});return d};return b.DeferredList});
define("dijit/tree/TreeStoreModel",["dojo","dijit"],function(b,d){b.declare("dijit.tree.TreeStoreModel",null,{store:null,childrenAttrs:["children"],newItemIdAttr:"id",labelAttr:"",root:null,query:null,deferItemLoadingUntilExpand:!1,constructor:function(a){b.mixin(this,a);this.connects=[];a=this.store;if(!a.getFeatures()["dojo.data.api.Identity"])throw Error("dijit.Tree: store must support dojo.data.Identity");if(a.getFeatures()["dojo.data.api.Notification"])this.connects=this.connects.concat([b.connect(a,
"onNew",this,"onNewItem"),b.connect(a,"onDelete",this,"onDeleteItem"),b.connect(a,"onSet",this,"onSetItem")])},destroy:function(){b.forEach(this.connects,b.disconnect)},getRoot:function(a,c){this.root?a(this.root):this.store.fetch({query:this.query,onComplete:b.hitch(this,function(c){if(c.length!=1)throw Error(this.declaredClass+": query "+b.toJson(this.query)+" returned "+c.length+" items, but must return exactly one item");this.root=c[0];a(this.root)}),onError:c})},mayHaveChildren:function(a){return b.some(this.childrenAttrs,
function(b){return this.store.hasAttribute(a,b)},this)},getChildren:function(a,c,d){var f=this.store;if(f.isItemLoaded(a)){for(var g=[],h=0;h<this.childrenAttrs.length;h++)var i=f.getValues(a,this.childrenAttrs[h]),g=g.concat(i);var j=0;this.deferItemLoadingUntilExpand||b.forEach(g,function(a){f.isItemLoaded(a)||j++});j==0?c(g):b.forEach(g,function(a,b){f.isItemLoaded(a)||f.loadItem({item:a,onItem:function(a){g[b]=a;--j==0&&c(g)},onError:d})})}else{var k=b.hitch(this,arguments.callee);f.loadItem({item:a,
onItem:function(a){k(a,c,d)},onError:d})}},isItem:function(a){return this.store.isItem(a)},fetchItemByIdentity:function(a){this.store.fetchItemByIdentity(a)},getIdentity:function(a){return this.store.getIdentity(a)},getLabel:function(a){return this.labelAttr?this.store.getValue(a,this.labelAttr):this.store.getLabel(a)},newItem:function(a,b,d){var f={parent:b,attribute:this.childrenAttrs[0]},g;this.newItemIdAttr&&a[this.newItemIdAttr]?this.fetchItemByIdentity({identity:a[this.newItemIdAttr],scope:this,
onItem:function(h){h?this.pasteItem(h,null,b,!0,d):(g=this.store.newItem(a,f))&&d!=void 0&&this.pasteItem(g,b,b,!1,d)}}):(g=this.store.newItem(a,f))&&d!=void 0&&this.pasteItem(g,b,b,!1,d)},pasteItem:function(a,c,d,f,g){var h=this.store,i=this.childrenAttrs[0];c&&b.forEach(this.childrenAttrs,function(d){if(h.containsValue(c,d,a)){if(!f){var e=b.filter(h.getValues(c,d),function(b){return b!=a});h.setValues(c,d,e)}i=d}});if(d)if(typeof g=="number"){var j=h.getValues(d,i).slice();j.splice(g,0,a);h.setValues(d,
i,j)}else h.setValues(d,i,h.getValues(d,i).concat(a))},onChange:function(){},onChildrenChange:function(){},onDelete:function(){},onNewItem:function(a,c){c&&this.getChildren(c.item,b.hitch(this,function(a){this.onChildrenChange(c.item,a)}))},onDeleteItem:function(a){this.onDelete(a)},onSetItem:function(a,c){if(b.indexOf(this.childrenAttrs,c)!=-1)this.getChildren(a,b.hitch(this,function(b){this.onChildrenChange(a,b)}));else this.onChange(a)}});return d.tree.TreeStoreModel});
define("dijit/tree/ForestStoreModel",["dojo","dijit","dijit/tree/TreeStoreModel"],function(b,d){b.declare("dijit.tree.ForestStoreModel",d.tree.TreeStoreModel,{rootId:"$root$",rootLabel:"ROOT",query:null,constructor:function(a){this.root={store:this,root:!0,id:a.rootId,label:a.rootLabel,children:a.rootChildren}},mayHaveChildren:function(a){return a===this.root||this.inherited(arguments)},getChildren:function(a,c,d){a===this.root?this.root.children?c(this.root.children):this.store.fetch({query:this.query,
onComplete:b.hitch(this,function(a){this.root.children=a;c(a)}),onError:d}):this.inherited(arguments)},isItem:function(a){return a===this.root?!0:this.inherited(arguments)},fetchItemByIdentity:function(a){if(a.identity==this.root.id){var c=a.scope?a.scope:b.global;a.onItem&&a.onItem.call(c,this.root)}else this.inherited(arguments)},getIdentity:function(a){return a===this.root?this.root.id:this.inherited(arguments)},getLabel:function(a){return a===this.root?this.root.label:this.inherited(arguments)},
newItem:function(a,b,d){return b===this.root?(this.onNewRootItem(a),this.store.newItem(a)):this.inherited(arguments)},onNewRootItem:function(){},pasteItem:function(a,b,e,f,g){if(b===this.root&&!f)this.onLeaveRoot(a);d.tree.TreeStoreModel.prototype.pasteItem.call(this,a,b===this.root?null:b,e===this.root?null:e,f,g);if(e===this.root)this.onAddToRoot(a)},onAddToRoot:function(a){console.log(this,": item ",a," added to root")},onLeaveRoot:function(a){console.log(this,": item ",a," removed from root")},
_requeryTop:function(){var a=this.root.children||[];this.store.fetch({query:this.query,onComplete:b.hitch(this,function(c){this.root.children=c;if(a.length!=c.length||b.some(a,function(a,b){return c[b]!=a}))this.onChildrenChange(this.root,c)})})},onNewItem:function(a,b){this._requeryTop();this.inherited(arguments)},onDeleteItem:function(a){b.indexOf(this.root.children,a)!=-1&&this._requeryTop();this.inherited(arguments)},onSetItem:function(a,b,d,f){this._requeryTop();this.inherited(arguments)}});
return d.tree.ForestStoreModel});
define("dojo/dnd/Container",["dojo","dojo/dnd/common","dojo/parser"],function(b){b.declare("dojo.dnd.Container",null,{skipForm:!1,constructor:function(d,a){this.node=b.byId(d);a||(a={});this.creator=a.creator||null;this.skipForm=a.skipForm;this.parent=a.dropParent&&b.byId(a.dropParent);this.map={};this.current=null;this.containerState="";b.addClass(this.node,"dojoDndContainer");(!a||!a._skipStartup)&&this.startup();this.events=[b.connect(this.node,"onmouseover",this,"onMouseOver"),b.connect(this.node,
"onmouseout",this,"onMouseOut"),b.connect(this.node,"ondragstart",this,"onSelectStart"),b.connect(this.node,"onselectstart",this,"onSelectStart")]},creator:function(){},getItem:function(b){return this.map[b]},setItem:function(b,a){this.map[b]=a},delItem:function(b){delete this.map[b]},forInItems:function(d,a){var a=a||b.global,c=this.map,e=b.dnd._empty,f;for(f in c)f in e||d.call(a,c[f],f,this);return a},clearItems:function(){this.map={}},getAllNodes:function(){return b.query("> .dojoDndItem",this.parent)},
sync:function(){var d={};this.getAllNodes().forEach(function(a){if(a.id){var c=this.getItem(a.id);if(c){d[a.id]=c;return}}else a.id=b.dnd.getUniqueId();var c=a.getAttribute("dndType"),e=a.getAttribute("dndData");d[a.id]={data:e||a.innerHTML,type:c?c.split(/\s*,\s*/):["text"]}},this);this.map=d;return this},insertNodes:function(b,a,c){if(this.parent.firstChild)if(a){if(!c)c=this.parent.firstChild}else{if(c)c=c.nextSibling}else c=null;if(c)for(a=0;a<b.length;++a){var e=this._normalizedCreator(b[a]);
this.setItem(e.node.id,{data:e.data,type:e.type});this.parent.insertBefore(e.node,c)}else for(a=0;a<b.length;++a)e=this._normalizedCreator(b[a]),this.setItem(e.node.id,{data:e.data,type:e.type}),this.parent.appendChild(e.node);return this},destroy:function(){b.forEach(this.events,b.disconnect);this.clearItems();this.node=this.parent=this.current=null},markupFactory:function(d,a){d._skipStartup=!0;return new b.dnd.Container(a,d)},startup:function(){if(!this.parent&&(this.parent=this.node,this.parent.tagName.toLowerCase()==
"table")){var d=this.parent.getElementsByTagName("tbody");if(d&&d.length)this.parent=d[0]}this.defaultCreator=b.dnd._defaultCreator(this.parent);this.sync()},onMouseOver:function(b){for(var a=b.relatedTarget;a;){if(a==this.node)break;try{a=a.parentNode}catch(c){a=null}}a||(this._changeState("Container","Over"),this.onOverEvent());a=this._getChildByEvent(b);if(this.current!=a)this.current&&this._removeItemClass(this.current,"Over"),a&&this._addItemClass(a,"Over"),this.current=a},onMouseOut:function(b){for(b=
b.relatedTarget;b;){if(b==this.node)return;try{b=b.parentNode}catch(a){b=null}}if(this.current)this._removeItemClass(this.current,"Over"),this.current=null;this._changeState("Container","");this.onOutEvent()},onSelectStart:function(d){(!this.skipForm||!b.dnd.isFormElement(d))&&b.stopEvent(d)},onOverEvent:function(){},onOutEvent:function(){},_changeState:function(d,a){var c="dojoDnd"+d,e=d.toLowerCase()+"State";b.replaceClass(this.node,c+a,c+this[e]);this[e]=a},_addItemClass:function(d,a){b.addClass(d,
"dojoDndItem"+a)},_removeItemClass:function(d,a){b.removeClass(d,"dojoDndItem"+a)},_getChildByEvent:function(d){if(d=d.target)for(var a=d.parentNode;a;d=a,a=d.parentNode)if(a==this.parent&&b.hasClass(d,"dojoDndItem"))return d;return null},_normalizedCreator:function(d,a){var c=(this.creator||this.defaultCreator).call(this,d,a);if(!b.isArray(c.type))c.type=["text"];if(!c.node.id)c.node.id=b.dnd.getUniqueId();b.addClass(c.node,"dojoDndItem");return c}});b.dnd._createNode=function(d){return!d?b.dnd._createSpan:
function(a){return b.create(d,{innerHTML:a})}};b.dnd._createTrTd=function(d){var a=b.create("tr");b.create("td",{innerHTML:d},a);return a};b.dnd._createSpan=function(d){return b.create("span",{innerHTML:d})};b.dnd._defaultCreatorNodes={ul:"li",ol:"li",div:"div",p:"div"};b.dnd._defaultCreator=function(d){var d=d.tagName.toLowerCase(),a=d=="tbody"||d=="thead"?b.dnd._createTrTd:b.dnd._createNode(b.dnd._defaultCreatorNodes[d]);return function(c,d){var f=c&&b.isObject(c),g,h;f&&c.tagName&&c.nodeType&&
c.getAttribute?(g=c.getAttribute("dndData")||c.innerHTML,f=(f=c.getAttribute("dndType"))?f.split(/\s*,\s*/):["text"],h=c):(g=f&&c.data?c.data:c,f=f&&c.type?c.type:["text"],h=(d=="avatar"?b.dnd._createSpan:a)(String(g)));if(!h.id)h.id=b.dnd.getUniqueId();return{node:h,data:g,type:f}}};return b.dnd.Container});
define("dijit/tree/_dndContainer",["dojo","dijit","dojo/dnd/common","dojo/dnd/Container"],function(b,d){b.getObject("tree",!0,b);d.tree._compareNodes=function(a,b){if(a===b)return 0;if("sourceIndex"in document.documentElement)return a.sourceIndex-b.sourceIndex;else if("compareDocumentPosition"in document.documentElement)return a.compareDocumentPosition(b)&2?1:-1;else if(document.createRange){var d=doc.createRange();d.setStartBefore(a);var f=doc.createRange();f.setStartBefore(b);return d.compareBoundaryPoints(d.END_TO_END,
f)}else throw Error("dijit.tree._compareNodes don't know how to compare two different nodes in this browser");};b.declare("dijit.tree._dndContainer",null,{constructor:function(a,c){this.tree=a;this.node=a.domNode;b.mixin(this,c);this.map={};this.current=null;this.containerState="";b.addClass(this.node,"dojoDndContainer");this.events=[b.connect(this.node,"onmouseenter",this,"onOverEvent"),b.connect(this.node,"onmouseleave",this,"onOutEvent"),b.connect(this.tree,"_onNodeMouseEnter",this,"onMouseOver"),
b.connect(this.tree,"_onNodeMouseLeave",this,"onMouseOut"),b.connect(this.node,"ondragstart",b,"stopEvent"),b.connect(this.node,"onselectstart",b,"stopEvent")]},getItem:function(a){return{data:this.selection[a],type:["treeNode"]}},destroy:function(){b.forEach(this.events,b.disconnect);this.node=this.parent=null},onMouseOver:function(a){this.current=a},onMouseOut:function(){this.current=null},_changeState:function(a,c){var d="dojoDnd"+a,f=a.toLowerCase()+"State";b.replaceClass(this.node,d+c,d+this[f]);
this[f]=c},_addItemClass:function(a,c){b.addClass(a,"dojoDndItem"+c)},_removeItemClass:function(a,c){b.removeClass(a,"dojoDndItem"+c)},onOverEvent:function(){this._changeState("Container","Over")},onOutEvent:function(){this._changeState("Container","")}});return d.tree._dndContainer});
define("dijit/tree/_dndSelector",["dojo","dijit","dojo/dnd/common","dijit/tree/_dndContainer"],function(b,d){b.declare("dijit.tree._dndSelector",d.tree._dndContainer,{constructor:function(){this.selection={};this.anchor=null;d.setWaiState(this.tree.domNode,"multiselect",!this.singular);this.events.push(b.connect(this.tree.domNode,"onmousedown",this,"onMouseDown"),b.connect(this.tree.domNode,"onmouseup",this,"onMouseUp"),b.connect(this.tree.domNode,"onmousemove",this,"onMouseMove"))},singular:!1,getSelectedTreeNodes:function(){var a=
[],b=this.selection,d;for(d in b)a.push(b[d]);return a},selectNone:function(){this.setSelection([]);return this},destroy:function(){this.inherited(arguments);this.selection=this.anchor=null},addTreeNode:function(a,b){this.setSelection(this.getSelectedTreeNodes().concat([a]));if(b)this.anchor=a;return a},removeTreeNode:function(a){this.setSelection(this._setDifference(this.getSelectedTreeNodes(),[a]));return a},isTreeNodeSelected:function(a){return a.id&&!!this.selection[a.id]},setSelection:function(a){var c=
this.getSelectedTreeNodes();b.forEach(this._setDifference(c,a),b.hitch(this,function(a){a.setSelected(!1);this.anchor==a&&delete this.anchor;delete this.selection[a.id]}));b.forEach(this._setDifference(a,c),b.hitch(this,function(a){a.setSelected(!0);this.selection[a.id]=a}));this._updateSelectionProperties()},_setDifference:function(a,c){b.forEach(c,function(a){a.__exclude__=!0});var d=b.filter(a,function(a){return!a.__exclude__});b.forEach(c,function(a){delete a.__exclude__});return d},_updateSelectionProperties:function(){var a=
this.getSelectedTreeNodes(),c=[],d=[];b.forEach(a,function(a){d.push(a);c.push(a.getTreePath())});a=b.map(d,function(a){return a.item});this.tree._set("paths",c);this.tree._set("path",c[0]||[]);this.tree._set("selectedNodes",d);this.tree._set("selectedNode",d[0]||null);this.tree._set("selectedItems",a);this.tree._set("selectedItem",a[0]||null)},onMouseDown:function(a){if(this.current&&!this.tree.isExpandoNode(a.target,this.current)&&a.button!=b.mouseButtons.RIGHT){b.stopEvent(a);var c=this.current,
d=b.isCopyKey(a),f=c.id;!this.singular&&!a.shiftKey&&this.selection[f]?this._doDeselect=!0:(this._doDeselect=!1,this.userSelect(c,d,a.shiftKey))}},onMouseUp:function(a){if(this._doDeselect)this._doDeselect=!1,this.userSelect(this.current,b.isCopyKey(a),a.shiftKey)},onMouseMove:function(){this._doDeselect=!1},userSelect:function(a,b,e){if(this.singular)this.anchor==a&&b?this.selectNone():(this.setSelection([a]),this.anchor=a);else if(e&&this.anchor){e=this.anchor;d.tree._compareNodes(this.anchor.rowNode,
a.rowNode)<0?b=e:(b=a,a=e);for(nodes=[];b!=a;)nodes.push(b),b=this.tree._getNextNode(b);nodes.push(a);this.setSelection(nodes)}else this.selection[a.id]&&b?this.removeTreeNode(a):b?this.addTreeNode(a,!0):(this.setSelection([a]),this.anchor=a)},forInSelectedItems:function(a,c){var c=c||b.global,d;for(d in this.selection)a.call(c,this.getItem(d),d,this)}});return d.tree._dndSelector});
define("dijit/Tree","dojo,dijit,text!dijit/templates/TreeNode.html,text!dijit/templates/Tree.html,dojo/fx,dojo/DeferredList,dijit/_Widget,dijit/_Templated,dijit/_Container,dijit/_Contained,dijit/_CssStateMixin,dojo/cookie,dijit/tree/TreeStoreModel,dijit/tree/ForestStoreModel,dijit/tree/_dndSelector".split(","),function(b,d){b.declare("dijit._TreeNode",[d._Widget,d._Templated,d._Container,d._Contained,d._CssStateMixin],{item:null,isTreeNode:!0,label:"",isExpandable:null,isExpanded:!1,state:"UNCHECKED",
templateString:b.cache("dijit","templates/TreeNode.html"),baseClass:"dijitTreeNode",cssStateNodes:{rowNode:"dijitTreeRow",labelNode:"dijitTreeLabel"},attributeMap:b.delegate(d._Widget.prototype.attributeMap,{label:{node:"labelNode",type:"innerText"},tooltip:{node:"rowNode",type:"attribute",attribute:"title"}}),buildRendering:function(){this.inherited(arguments);this._setExpando();this._updateItemClasses(this.item);this.isExpandable&&d.setWaiState(this.labelNode,"expanded",this.isExpanded);this.setSelected(!1)},
_setIndentAttr:function(a){var c=Math.max(a,0)*this.tree._nodePixelIndent+"px";b.style(this.domNode,"backgroundPosition",c+" 0px");b.style(this.rowNode,this.isLeftToRight()?"paddingLeft":"paddingRight",c);b.forEach(this.getChildren(),function(b){b.set("indent",a+1)});this._set("indent",a)},markProcessing:function(){this.state="LOADING";this._setExpando(!0)},unmarkProcessing:function(){this._setExpando(!1)},_updateItemClasses:function(a){var b=this.tree,d=b.model;b._v10Compat&&a===d.root&&(a=null);
this._applyClassAndStyle(a,"icon","Icon");this._applyClassAndStyle(a,"label","Label");this._applyClassAndStyle(a,"row","Row")},_applyClassAndStyle:function(a,c,d){var f="_"+c+"Class";c+="Node";var g=this[f];this[f]=this.tree["get"+d+"Class"](a,this.isExpanded);b.replaceClass(this[c],this[f]||"",g||"");b.style(this[c],this.tree["get"+d+"Style"](a,this.isExpanded)||{})},_updateLayout:function(){var a=this.getParent();!a||a.rowNode.style.display=="none"?b.addClass(this.domNode,"dijitTreeIsRoot"):b.toggleClass(this.domNode,
"dijitTreeIsLast",!this.getNextSibling())},_setExpando:function(a){var c=["dijitTreeExpandoLoading","dijitTreeExpandoOpened","dijitTreeExpandoClosed","dijitTreeExpandoLeaf"],a=a?0:this.isExpandable?this.isExpanded?1:2:3;b.replaceClass(this.expandoNode,c[a],c);this.expandoNodeText.innerHTML=["*","-","+","*"][a]},expand:function(){if(this._expandDeferred)return this._expandDeferred;this._wipeOut&&this._wipeOut.stop();this.isExpanded=!0;d.setWaiState(this.labelNode,"expanded","true");(this.tree.showRoot||
this!==this.tree.rootNode)&&d.setWaiRole(this.containerNode,"group");b.addClass(this.contentNode,"dijitTreeContentExpanded");this._setExpando();this._updateItemClasses(this.item);this==this.tree.rootNode&&d.setWaiState(this.tree.domNode,"expanded","true");var a,c=b.fx.wipeIn({node:this.containerNode,duration:d.defaultDuration,onEnd:function(){a.callback(!0)}});a=this._expandDeferred=new b.Deferred(function(){c.stop()});c.play();return a},collapse:function(){if(this.isExpanded){this._expandDeferred&&
(this._expandDeferred.cancel(),delete this._expandDeferred);this.isExpanded=!1;d.setWaiState(this.labelNode,"expanded","false");this==this.tree.rootNode&&d.setWaiState(this.tree.domNode,"expanded","false");b.removeClass(this.contentNode,"dijitTreeContentExpanded");this._setExpando();this._updateItemClasses(this.item);if(!this._wipeOut)this._wipeOut=b.fx.wipeOut({node:this.containerNode,duration:d.defaultDuration});this._wipeOut.play()}},indent:0,setChildItems:function(a){var c=this.tree,e=c.model,
f=[];b.forEach(this.getChildren(),function(a){d._Container.prototype.removeChild.call(this,a)},this);this.state="LOADED";a&&a.length>0?(this.isExpandable=!0,b.forEach(a,function(a){var b=e.getIdentity(a),d=c._itemNodesMap[b],j;if(d)for(var k=0;k<d.length;k++)if(d[k]&&!d[k].getParent()){j=d[k];j.set("indent",this.indent+1);break}j||(j=this.tree._createTreeNode({item:a,tree:c,isExpandable:e.mayHaveChildren(a),label:c.getLabel(a),tooltip:c.getTooltip(a),dir:c.dir,lang:c.lang,indent:this.indent+1}),d?
d.push(j):c._itemNodesMap[b]=[j]);this.addChild(j);(this.tree.autoExpand||this.tree._state(a))&&f.push(c._expandNode(j))},this),b.forEach(this.getChildren(),function(a){a._updateLayout()})):this.isExpandable=!1;this._setExpando&&this._setExpando(!1);this._updateItemClasses(this.item);if(this==c.rootNode)(a=this.tree.showRoot?this:this.getChildren()[0])?(a.setFocusable(!0),c.lastFocused=a):c.domNode.setAttribute("tabIndex","0");return new b.DeferredList(f)},getTreePath:function(){for(var a=this,b=
[];a&&a!==this.tree.rootNode;)b.unshift(a.item),a=a.getParent();b.unshift(this.tree.rootNode.item);return b},getIdentity:function(){return this.tree.model.getIdentity(this.item)},removeChild:function(a){this.inherited(arguments);var c=this.getChildren();if(c.length==0)this.isExpandable=!1,this.collapse();b.forEach(c,function(a){a._updateLayout()})},makeExpandable:function(){this.isExpandable=!0;this._setExpando(!1)},_onLabelFocus:function(){this.tree._onNodeFocus(this)},setSelected:function(a){d.setWaiState(this.labelNode,
"selected",a);b.toggleClass(this.rowNode,"dijitTreeRowSelected",a)},setFocusable:function(a){this.labelNode.setAttribute("tabIndex",a?"0":"-1")},_onClick:function(a){this.tree._onClick(this,a)},_onDblClick:function(a){this.tree._onDblClick(this,a)},_onMouseEnter:function(a){this.tree._onNodeMouseEnter(this,a)},_onMouseLeave:function(a){this.tree._onNodeMouseLeave(this,a)}});b.declare("dijit.Tree",[d._Widget,d._Templated],{store:null,model:null,query:null,label:"",showRoot:!0,childrenAttr:["children"],
paths:[],path:[],selectedItems:null,selectedItem:null,openOnClick:!1,openOnDblClick:!1,templateString:b.cache("dijit","templates/Tree.html"),persist:!0,autoExpand:!1,dndController:"dijit.tree._dndSelector",dndParams:"onDndDrop,itemCreator,onDndCancel,checkAcceptance,checkItemAcceptance,dragThreshold,betweenThreshold".split(","),onDndDrop:null,itemCreator:null,onDndCancel:null,checkAcceptance:null,checkItemAcceptance:null,dragThreshold:5,betweenThreshold:0,_nodePixelIndent:19,_publish:function(a,c){b.publish(this.id,
[b.mixin({tree:this,event:a},c||{})])},postMixInProperties:function(){this.tree=this;if(this.autoExpand)this.persist=!1;this._itemNodesMap={};if(!this.cookieName)this.cookieName=this.id+"SaveStateCookie";this._loadDeferred=new b.Deferred;this.inherited(arguments)},postCreate:function(){this._initState();this.model||this._store2model();this.connect(this.model,"onChange","_onItemChange");this.connect(this.model,"onChildrenChange","_onItemChildrenChange");this.connect(this.model,"onDelete","_onItemDelete");
this._load();this.inherited(arguments);if(this.dndController){if(b.isString(this.dndController))this.dndController=b.getObject(this.dndController);for(var a={},c=0;c<this.dndParams.length;c++)this[this.dndParams[c]]&&(a[this.dndParams[c]]=this[this.dndParams[c]]);this.dndController=new this.dndController(this,a)}},_store2model:function(){this._v10Compat=!0;b.deprecated("Tree: from version 2.0, should specify a model object rather than a store/query");var a={id:this.id+"_ForestStoreModel",store:this.store,
query:this.query,childrenAttrs:this.childrenAttr};if(this.params.mayHaveChildren)a.mayHaveChildren=b.hitch(this,"mayHaveChildren");if(this.params.getItemChildren)a.getChildren=b.hitch(this,function(a,b,d){this.getItemChildren(this._v10Compat&&a===this.model.root?null:a,b,d)});this.model=new d.tree.ForestStoreModel(a);this.showRoot=Boolean(this.label)},onLoad:function(){},_load:function(){this.model.getRoot(b.hitch(this,function(a){var c=this.rootNode=this.tree._createTreeNode({item:a,tree:this,isExpandable:!0,
label:this.label||this.getLabel(a),indent:this.showRoot?0:-1});if(!this.showRoot)c.rowNode.style.display="none",d.setWaiRole(this.domNode,"presentation"),d.setWaiRole(c.labelNode,"presentation"),d.setWaiRole(c.containerNode,"tree");this.domNode.appendChild(c.domNode);a=this.model.getIdentity(a);this._itemNodesMap[a]?this._itemNodesMap[a].push(c):this._itemNodesMap[a]=[c];c._updateLayout();this._expandNode(c).addCallback(b.hitch(this,function(){this._loadDeferred.callback(!0);this.onLoad()}))}),function(a){console.error(this,
": error loading root: ",a)})},getNodesByItem:function(a){return!a?[]:[].concat(this._itemNodesMap[b.isString(a)?a:this.model.getIdentity(a)])},_setSelectedItemAttr:function(a){this.set("selectedItems",[a])},_setSelectedItemsAttr:function(a){var c=this;this._loadDeferred.addCallback(b.hitch(this,function(){var d=b.map(a,function(a){return!a||b.isString(a)?a:c.model.getIdentity(a)}),f=[];b.forEach(d,function(a){f=f.concat(c._itemNodesMap[a]||[])});this.set("selectedNodes",f)}))},_setPathAttr:function(a){return a.length?
this.set("paths",[a]):this.set("paths",[])},_setPathsAttr:function(a){function c(a,g,h){var i=a.shift(),j=b.filter(g,function(a){return a.getIdentity()==i})[0];j?a.length?d._expandNode(j).addCallback(function(){c(a,j.getChildren(),h)}):h.callback(j):h.errback("Could not expand path at "+i)}var d=this;return(new b.DeferredList(b.map(a,function(a){var g=new b.Deferred,a=b.map(a,function(a){return b.isString(a)?a:d.model.getIdentity(a)});a.length?d._loadDeferred.addCallback(function(){c(a,[d.rootNode],
g)}):g.errback("Empty path");return g}))).addCallback(function(a){d.set("selectedNodes",b.map(b.filter(a,function(a){return a[0]}),function(a){return a[1]}))})},_setSelectedNodeAttr:function(a){this.set("selectedNodes",[a])},_setSelectedNodesAttr:function(a){this._loadDeferred.addCallback(b.hitch(this,function(){this.dndController.setSelection(a)}))},mayHaveChildren:function(){},getItemChildren:function(){},getLabel:function(a){return this.model.getLabel(a)},getIconClass:function(a,b){return!a||this.model.mayHaveChildren(a)?
b?"dijitFolderOpened":"dijitFolderClosed":"dijitLeaf"},getLabelClass:function(){},getRowClass:function(){},getIconStyle:function(){},getLabelStyle:function(){},getRowStyle:function(){},getTooltip:function(){return""},_onKeyPress:function(a){if(!a.altKey){var c=b.keys,e=d.getEnclosingWidget(a.target);if(e){var f=a.charOrCode;if(typeof f=="string"&&f!=" ")!a.altKey&&!a.ctrlKey&&!a.shiftKey&&!a.metaKey&&(this._onLetterKeyNav({node:e,key:f.toLowerCase()}),b.stopEvent(a));else{this._curSearch&&(clearTimeout(this._curSearch.timer),
delete this._curSearch);var g=this._keyHandlerMap;if(!g)g={},g[c.ENTER]="_onEnterKey",g[c.SPACE]=g[" "]="_onEnterKey",g[this.isLeftToRight()?c.LEFT_ARROW:c.RIGHT_ARROW]="_onLeftArrow",g[this.isLeftToRight()?c.RIGHT_ARROW:c.LEFT_ARROW]="_onRightArrow",g[c.UP_ARROW]="_onUpArrow",g[c.DOWN_ARROW]="_onDownArrow",g[c.HOME]="_onHomeKey",g[c.END]="_onEndKey",this._keyHandlerMap=g;this._keyHandlerMap[f]&&(this[this._keyHandlerMap[f]]({node:e,item:e.item,evt:a}),b.stopEvent(a))}}}},_onEnterKey:function(a){this._publish("execute",
{item:a.item,node:a.node});this.dndController.userSelect(a.node,b.isCopyKey(a.evt),a.evt.shiftKey);this.onClick(a.item,a.node,a.evt)},_onDownArrow:function(a){(a=this._getNextNode(a.node))&&a.isTreeNode&&this.focusNode(a)},_onUpArrow:function(a){var a=a.node,b=a.getPreviousSibling();if(b)for(a=b;a.isExpandable&&a.isExpanded&&a.hasChildren();)a=a.getChildren(),a=a[a.length-1];else if(b=a.getParent(),this.showRoot||b!==this.rootNode)a=b;a&&a.isTreeNode&&this.focusNode(a)},_onRightArrow:function(a){a=
a.node;a.isExpandable&&!a.isExpanded?this._expandNode(a):a.hasChildren()&&(a=a.getChildren()[0])&&a.isTreeNode&&this.focusNode(a)},_onLeftArrow:function(a){a=a.node;a.isExpandable&&a.isExpanded?this._collapseNode(a):(a=a.getParent())&&a.isTreeNode&&(this.showRoot||a!==this.rootNode)&&this.focusNode(a)},_onHomeKey:function(){var a=this._getRootOrFirstNode();a&&this.focusNode(a)},_onEndKey:function(){for(var a=this.rootNode;a.isExpanded;)a=a.getChildren(),a=a[a.length-1];a&&a.isTreeNode&&this.focusNode(a)},
multiCharSearchDuration:250,_onLetterKeyNav:function(a){var b=this._curSearch;b?(b.pattern+=a.key,clearTimeout(b.timer)):b=this._curSearch={pattern:a.key,startNode:a.node};var d=this;b.timer=setTimeout(function(){delete d._curSearch},this.multiCharSearchDuration);a=b.startNode;do(a=this._getNextNode(a))||(a=this._getRootOrFirstNode());while(a!==b.startNode&&a.label.toLowerCase().substr(0,b.pattern.length)!=b.pattern);a&&a.isTreeNode&&a!==b.startNode&&this.focusNode(a)},isExpandoNode:function(a,c){return b.isDescendant(a,
c.expandoNode)},_onClick:function(a,c){var d=this.isExpandoNode(c.target,a);this.openOnClick&&a.isExpandable||d?a.isExpandable&&this._onExpandoClick({node:a}):(this._publish("execute",{item:a.item,node:a,evt:c}),this.onClick(a.item,a,c),this.focusNode(a));b.stopEvent(c)},_onDblClick:function(a,c){var d=c.target,d=d==a.expandoNode||d==a.expandoNodeText;this.openOnDblClick&&a.isExpandable||d?a.isExpandable&&this._onExpandoClick({node:a}):(this._publish("execute",{item:a.item,node:a,evt:c}),this.onDblClick(a.item,
a,c),this.focusNode(a));b.stopEvent(c)},_onExpandoClick:function(a){a=a.node;this.focusNode(a);a.isExpanded?this._collapseNode(a):this._expandNode(a)},onClick:function(){},onDblClick:function(){},onOpen:function(){},onClose:function(){},_getNextNode:function(a){if(a.isExpandable&&a.isExpanded&&a.hasChildren())return a.getChildren()[0];else{for(;a&&a.isTreeNode;){var b=a.getNextSibling();if(b)return b;a=a.getParent()}return null}},_getRootOrFirstNode:function(){return this.showRoot?this.rootNode:this.rootNode.getChildren()[0]},
_collapseNode:function(a){a._expandNodeDeferred&&delete a._expandNodeDeferred;a.isExpandable&&a.state!="LOADING"&&(a.collapse(),this.onClose(a.item,a),a.item&&(this._state(a.item,!1),this._saveState()))},_expandNode:function(a,c){if(a._expandNodeDeferred&&!c)return a._expandNodeDeferred;var d=this.model,f=a.item,g=this;switch(a.state){case "UNCHECKED":a.markProcessing();var h=a._expandNodeDeferred=new b.Deferred;d.getChildren(f,function(b){a.unmarkProcessing();var b=a.setChildItems(b),c=g._expandNode(a,
!0);b.addCallback(function(){c.addCallback(function(){h.callback()})})},function(a){console.error(g,": error loading root children: ",a)});break;default:h=a._expandNodeDeferred=a.expand(),this.onOpen(a.item,a),f&&(this._state(f,!0),this._saveState())}return h},focusNode:function(a){d.focus(a.labelNode)},_onNodeFocus:function(a){if(a&&a!=this.lastFocused)this.lastFocused&&!this.lastFocused._destroyed&&this.lastFocused.setFocusable(!1),a.setFocusable(!0),this.lastFocused=a},_onNodeMouseEnter:function(){},
_onNodeMouseLeave:function(){},_onItemChange:function(a){var c=this._itemNodesMap[this.model.getIdentity(a)];if(c){var d=this.getLabel(a),f=this.getTooltip(a);b.forEach(c,function(b){b.set({item:a,label:d,tooltip:f});b._updateItemClasses(a)})}},_onItemChildrenChange:function(a,c){var d=this._itemNodesMap[this.model.getIdentity(a)];d&&b.forEach(d,function(a){a.setChildItems(c)})},_onItemDelete:function(a){var a=this.model.getIdentity(a),c=this._itemNodesMap[a];c&&(b.forEach(c,function(a){this.dndController.removeTreeNode(a);
var b=a.getParent();b&&b.removeChild(a);a.destroyRecursive()},this),delete this._itemNodesMap[a])},_initState:function(){if(this.persist){var a=b.cookie(this.cookieName);this._openedItemIds={};a&&b.forEach(a.split(","),function(a){this._openedItemIds[a]=!0},this)}},_state:function(a,b){if(!this.persist)return!1;var d=this.model.getIdentity(a);if(arguments.length===1)return this._openedItemIds[d];b?this._openedItemIds[d]=!0:delete this._openedItemIds[d]},_saveState:function(){if(this.persist){var a=
[],c;for(c in this._openedItemIds)a.push(c);b.cookie(this.cookieName,a.join(","),{expires:365})}},destroy:function(){this._curSearch&&(clearTimeout(this._curSearch.timer),delete this._curSearch);this.rootNode&&this.rootNode.destroyRecursive();this.dndController&&!b.isString(this.dndController)&&this.dndController.destroy();this.rootNode=null;this.inherited(arguments)},destroyRecursive:function(){this.destroy()},resize:function(a){a&&b.marginBox(this.domNode,a);this._nodePixelIndent=b._getMarginSize(this.tree.indentDetector).w;
this.tree.rootNode&&this.tree.rootNode.set("indent",this.showRoot?0:-1)},_createTreeNode:function(a){return new d._TreeNode(a)}});return d.Tree});define("text!orion/widgets/templates/_ExplorerTreeNode.html",[],function(){return'<div class="dijitTreeNode" waiRole="presentation">\n\t<div dojoAttachPoint="rowNode" class="dijitTreeRow"\n\t\twaiRole="presentation"\n\t\tdojoAttachEvent="onmouseenter:_onMouseEnter, onmouseleave:_onMouseLeave, onclick:_onClick, ondblclick:_onDblClick">\n\t\t<img src="${_blankGif}" alt="" dojoAttachPoint="expandoNode" class="dijitTreeExpando" waiRole="presentation" />\n\t\t<span dojoAttachPoint="expandoNodeText" class="dijitExpandoText" waiRole="presentation"></span>\n\t\t<span dojoAttachPoint="contentNode" class="dijitTreeContent" waiRole="presentation">\n\t\t\t<img src="${_blankGif}" alt="" dojoAttachPoint="iconNode" class="dijitIcon dijitTreeIcon" waiRole="presentation" />\n\t\t\t<\!-- labelNode\'s innerText will be label string --\>\n\t\t\t<span dojoAttachPoint="labelNode" class="dijitTreeLabel" wairole="treeitem" tabindex="-1" waiState="selected-false" dojoAttachEvent="onfocus:_onLabelFocus"></span>\n\t\t\t<a href="" dojoAttachPoint="followLink"><img src="${_blankGif}" alt="" dojoAttachPoint="followNode" class="dijitIcon dijitTreeIcon follow" waiRole="link"></a>\n\t\t</span>\n\t</div>\n\t<div dojoAttachPoint="containerNode" class="dijitTreeContainer"\n\t\twaiRole="presentation" style="display: none;">\n\t</div>\n</div>'});
define("orion/widgets/ExplorerTree",["dojo","dijit","dijit/Tree","text!orion/widgets/templates/_ExplorerTreeNode.html"],function(b,d){b.declare("orion.widgets._ExplorerTreeNode",[d._TreeNode],{templateString:b.cache("orion","widgets/templates/_ExplorerTreeNode.html"),_updateItemClasses:function(a){this.inherited(arguments);this._applyClassAndStyle(a,"follow","Follow");typeof this.tree.updateFollowLink==="function"&&this.tree.updateFollowLink(a,this.followLink)}});b.declare("orion.widgets.ExplorerTree",
[d.Tree],{selectedNodes:{},postCreate:function(){b.connect(this,"onMouseDown",this._eatSelectionEvent);b.connect(this.domNode,"onselectstart",this._eatSelectionEvent);this.inherited(arguments)},getFollowClass:function(){},getFollowStyle:function(){},updateFollowLink:function(){},onFollowClick:function(){},getSelectedItems:function(){var a=[];this._forEachSelectedNode(function(b,d){a.push(d.item)});return a},_getSelectedNodes:function(){var a=[];this._forEachSelectedNode(function(b,d){a.push(d)});
return a},_forEachSelectedNode:function(a){var b=this.selectedNodes,d;for(d in b)b.hasOwnProperty(d)&&a(d,b[d])},_createTreeNode:function(a){return new orion.widgets._ExplorerTreeNode(a)},_eatSelectionEvent:function(a){(b.isCopyKey(a)||a.shiftKey)&&b.stopEvent(a)},_onClick:function(a,c){var d=c.target,f=d===a.expandoNode||d===a.expandoNodeText,d=d===a.followNode;if(b.isCopyKey(c))this._toggleSelectNode(a),this.focusNode(a);else if(c.shiftKey)this.selectedNode&&(this._selectRange(this.selectedNode,
a),this.focusNode(a));else{if(d)this.onFollowClick(a.item,a,c);else this.openOnClick&&a.isExpandable||f?a.isExpandable&&this._onExpandoClick({node:a}):(this._publish("execute",{item:a.item,node:a,evt:c}),this.onClick(a.item,a,c),this.focusNode(a));!f&&!d&&this._selectNode(a)}d||b.stopEvent(c)},_onItemDelete:function(a){var c=this._itemNodesMap[this.model.getIdentity(a)];if(c){var d=this;b.forEach(c,function(a){d._removeFromSelection(a)})}this.inherited(arguments)},_getVisibleAncestor:function(a){if(!a)return null;
for(var b=a.getParent();b&&(!b.isExpandable||!b.isExpanded);)a=b,b=b.getParent();return a},_toggleSelectNode:function(a){this.selectedNodes[a.get("id")]?(a.setSelected(!1),this._removeFromSelection(a)):(a.setSelected(!0),this._addToSelection(a))},_addToSelection:function(a){this.selectedNodes[a.get("id")]=a},_removeFromSelection:function(a){delete this.selectedNodes[a.get("id")]},_selectRange:function(a,b){function d(a,b){var c=[],e=a;do c.push(e),e=h._getNextNode(e);while(e&&e!==b);return e===b?
(c.push(b),c):null}var f=this._getVisibleAncestor(a),g=this._getVisibleAncestor(b);if(f&&g)if(f===g)this._selectNode(f);else{var h=this,i=d(f,g);i?this._selectNodes(i.reverse(),!0):(i=d(g,f))?this._selectNodes(i,!0):console.debug("Warning: couldn't select range from "+f.label+" to "+g.label)}},_selectNode:function(a){this._selectNodes(a?[a]:null)},_selectNodes:function(a){this._forEachSelectedNode(function(a,b){b._destroyed||b.setSelected(!1)});this.selectedNodes={};if(a)for(var b=0;b<a.length;b++){var d=
a[b];d.setSelected(!0);this._addToSelection(d);this.selectedNode=d}}})});define("text!orion/widgets/templates/DirectoryPrompterDialog.html",[],function(){return'<div class="dijitDialog" tabindex="-1" waiRole="dialog" waiState="labelledby-${id}_title">\n\t<div dojoAttachPoint="titleBar" class="dijitDialogTitleBar">\n\t\t<span dojoAttachPoint="titleNode" class="dijitDialogTitle" id="${id}_title"></span>\n\t\t<span dojoAttachPoint="closeButtonNode" class="dijitDialogCloseIcon" dojoAttachEvent="onclick: onCancel" title="${buttonCancel}">\n\t\t\t<span dojoAttachPoint="closeText" class="closeText" title="${buttonCancel}">x</span>\n\t\t</span>\n\t</div>\n\t<div dojoAttachPoint="containerNode" class="dijitDialogPaneContent">\n\t\t<\!-- Actual content here --\>\n\t\t\t<div style="display: table">\n\t\t\t\t<div style="display: table-row" dojoAttachPoint="messageCell">\n\t\t\t\t\t<div style="display: table-cell;"><div style="width: 25em; padding-bottom: 5px;">${message}</div></div>\n\t\t\t\t</div>\n\t\t\t\t<div style="display: table-row"> \n\n\t\t\t\t\t<div style="display: table-cell; padding: 1px; vertical-align: bottom;">\n\t\t\t\t\t\t<div dojoAttachPoint="treeContainerNode" id="${id}_treeContainerNode" dojoType="dijit.layout.BorderContainer" style="width:25em; height:25em; overflow:auto;" design="sidebar" gutters="true">\n\t\t\t\t\t\t\t<div dojoAttachPoint="treeContentPane" class="dijitDialogPaneContent" id="${id}_treeContentPane dojoType="dijit.layout.ContentPane" region="center" gutters="true">\n\t\t\t\t\t\t\t\t<div dojoAttachPoint="browseDirectoryExplorerTree" class="explorerTreeClass" id="${id}_browseDirectoryExplorerTree" style="margin-top: -3px;"></div> \n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style="display: table-cell; padding: 1px; vertical-align: bottom;">\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style="display: table-cell; padding: 1px; vertical-align: bottom;">\n\t\t\t\t\t</div>\n\t\t\t\t</div> \n\t\t\t\t<div style="display: table-row">\n\t\t\t\t\t<div style="display: table-cell; padding: 1px;">\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style="display: table-cell; padding: 1px;">\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style="display: table-cell; padding: 1px;">\n\t\t\t\t\t\n\t\t\t\t\t\t<button dojoAttachPoint="directoryBrowserButton" dojoType="dijit.form.Button" type="submit" value="OK" style="padding: 20 0 10 0; float: right; clear: both;">${buttonOk}\n\t\t\t\t\t\t</button>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div> <\!-- end table --\>\n\t</div> <\!-- content pane --\>\n</div>'});
define("orion/widgets/DirectoryPrompterDialog","i18n!orion/widgets/nls/messages,dojo,dijit,orion/util,dijit/Dialog,dijit/form/Button,orion/widgets/ExplorerTree,orion/widgets/_OrionDialogMixin,text!orion/widgets/templates/DirectoryPrompterDialog.html".split(","),function(b,d,a,c){d.declare("orion.widgets.DirectoryPrompterDialog",[a.Dialog,orion.widgets._OrionDialogMixin],{treeWidget:null,treeRoot:{},widgetsInTemplate:!0,templateString:d.cache("orion","widgets/templates/DirectoryPrompterDialog.html"),
constructor:function(){this.inherited(arguments);this.options=arguments[0]||{}},postMixInProperties:function(){this.inherited(arguments);this.title=this.options.title||b["Choose a Folder"];this.buttonOk=b.OK;this.message=this.options.message||""},postCreate:function(){this.inherited(arguments);this.loadFolderList("/");this.message||d.style(this.messageCell,{display:"none"})},loadFolderList:function(a){a=c.makeRelative(a);this.treeRoot.Location=a;this.options.fileClient.loadWorkspace(a).then(d.hitch(this,
function(a){for(var b in a)this.treeRoot[b]=a[b];c.processNavigatorParent(this.treeRoot,a.Children);this.createTree()}))},createTree:function(){var a=new orion.widgets.DirectoryTreeModel(this.options.serviceRegistry,this.treeRoot,this.options.fileClient);this.treeWidget=new orion.widgets.ExplorerTree({id:"treeWidget",style:"width:100%; height:100%",model:a,showRoot:!1,persist:!1,openOnClick:!1,getLabel:function(a){return a.Name},getIconClass:function(){return"folderItem"}});this.treeWidget.startup();
d.byId(this.treeContentPane.id).appendChild(this.treeWidget.domNode)},execute:function(){var a=this.treeWidget.getSelectedItems();this.onHide();this.options.func(a[0])}});orion.widgets.DirectoryTreeModel=function(){function a(b,c,d){this.registry=b;this.root=c;this.fileClient=d}a.prototype={destroy:function(){},getRoot:function(a){a(this.root)},mayHaveChildren:function(){return!0},getChildren:function(a,b){a.children?b(a.children):a.Directory!==void 0&&a.Directory===!1?b([]):a.Location?this.fileClient.fetchChildren(a.ChildrenLocation).then(d.hitch(this,
function(d){for(var e=[],j=0;j<d.length;j++)d[j].Directory&&e.push(d[j]);c.processNavigatorParent(a,e);b(e)})):b([])},getIdentity:function(a){return a.Name?a.Location:"ROOT"},getLabel:function(a){return a.Name},onChildrenChange:function(){}};return a}()});define("dojox",["dojo"],function(b){return dojox=b._dojox||{}});define("text!dijit/templates/ProgressBar.html",[],function(){return'<div class="dijitProgressBar dijitProgressBarEmpty" role="progressbar"\n\t><div  dojoAttachPoint="internalProgress" class="dijitProgressBarFull"\n\t\t><div class="dijitProgressBarTile" role="presentation"></div\n\t\t><span style="visibility:hidden">&nbsp;</span\n\t></div\n\t><div dojoAttachPoint="labelNode" class="dijitProgressBarLabel" id="${id}_label"></div\n\t><img dojoAttachPoint="indeterminateHighContrastImage" class="dijitProgressBarIndeterminateHighContrastImage" alt=""\n/></div>'});
define("dojo/cldr/nls/number",{root:{scientificFormat:"#E0","currencySpacing-afterCurrency-currencyMatch":"[:letter:]",infinity:"\u221e",list:";",percentSign:"%",minusSign:"-","currencySpacing-beforeCurrency-surroundingMatch":"[:digit:]","decimalFormat-short":"000T","currencySpacing-afterCurrency-insertBetween":"\u00a0",nan:"NaN",nativeZeroDigit:"0",plusSign:"+","currencySpacing-afterCurrency-surroundingMatch":"[:digit:]","currencySpacing-beforeCurrency-currencyMatch":"[:letter:]",currencyFormat:"\u00a4\u00a0#,##0.00",
perMille:"\u2030",group:",",percentFormat:"#,##0%",decimalFormat:"#,##0.###",decimal:".",patternDigit:"#","currencySpacing-beforeCurrency-insertBetween":"\u00a0",exponential:"E"},ar:!0,ca:!0,cs:!0,da:!0,de:!0,el:!0,en:!0,"en-au":!0,"en-gb":!0,es:!0,fi:!0,fr:!0,"fr-ch":!0,he:!0,hu:!0,it:!0,ja:!0,ko:!0,nb:!0,nl:!0,pl:!0,pt:!0,"pt-pt":!0,ro:!0,ru:!0,sk:!0,sl:!0,sv:!0,th:!0,tr:!0,zh:!0,"zh-hant":!0,"zh-hk":!0});
define("dojo/cldr/nls/en/number",{group:",",percentSign:"%",exponential:"E",scientificFormat:"#E0",percentFormat:"#,##0%",list:";",infinity:"\u221e",patternDigit:"#",minusSign:"-",decimal:".",nan:"NaN",nativeZeroDigit:"0",perMille:"\u2030",decimalFormat:"#,##0.###",currencyFormat:"\u00a4#,##0.00;(\u00a4#,##0.00)",plusSign:"+","decimalFormat-short":"000T"});
define("dojo/number",["dojo","dojo/i18n","i18n!dojo/cldr/nls/number","dojo/string","dojo/regexp"],function(b){b.getObject("number",!0,b);b.number.format=function(d,a){var a=b.mixin({},a||{}),c=b.i18n.normalizeLocale(a.locale),c=b.i18n.getLocalization("dojo.cldr","number",c);a.customs=c;c=a.pattern||c[(a.type||"decimal")+"Format"];return isNaN(d)||Math.abs(d)==Infinity?null:b.number._applyPattern(d,c,a)};b.number._numberPatternRE=/[#0,]*[#0](?:\.0*#*)?/;b.number._applyPattern=function(d,a,c){var c=
c||{},e=c.customs.group,f=c.customs.decimal,a=a.split(";"),g=a[0],a=a[d<0?1:0]||"-"+g;if(a.indexOf("%")!=-1)d*=100;else if(a.indexOf("\u2030")!=-1)d*=1E3;else if(a.indexOf("\u00a4")!=-1)e=c.customs.currencyGroup||e,f=c.customs.currencyDecimal||f,a=a.replace(/\u00a4{1,3}/,function(a){return c[["symbol","currency","displayName"][a.length-1]]||c.currency||""});else if(a.indexOf("E")!=-1)throw Error("exponential notation not supported");var h=b.number._numberPatternRE,g=g.match(h);if(!g)throw Error("unable to find a number expression in pattern: "+
a);if(c.fractional===!1)c.places=0;return a.replace(h,b.number._formatAbsolute(d,g[0],{decimal:f,group:e,places:c.places,round:c.round}))};b.number.round=function(b,a,c){c=10/(c||10);return(c*+b).toFixed(a)/c};(0.9).toFixed()==0&&function(){var d=b.number.round;b.number.round=function(a,b,e){var f=Math.pow(10,-b||0),g=Math.abs(a);if(!a||g>=f||g*Math.pow(10,b+1)<5)f=0;return d(a,b,e)+(a>0?f:-f)}}();b.number._formatAbsolute=function(d,a,c){c=c||{};if(c.places===!0)c.places=0;if(c.places===Infinity)c.places=
6;var a=a.split("."),e=typeof c.places=="string"&&c.places.indexOf(","),f=c.places;if(e)f=c.places.substring(e+1);else if(!(f>=0))f=(a[1]||[]).length;c.round<0||(d=b.number.round(d,f,c.round));var d=String(Math.abs(d)).split("."),g=d[1]||"";if(a[1]||c.places){if(e)c.places=c.places.substring(0,e);e=c.places!==void 0?c.places:a[1]&&a[1].lastIndexOf("0")+1;e>g.length&&(d[1]=b.string.pad(g,e,"0",!0));f<g.length&&(d[1]=g.substr(0,f))}else d[1]&&d.pop();f=a[0].replace(",","");e=f.indexOf("0");e!=-1&&(e=
f.length-e,e>d[0].length&&(d[0]=b.string.pad(d[0],e)),f.indexOf("#")==-1&&(d[0]=d[0].substr(d[0].length-e)));var f=a[0].lastIndexOf(","),h,i;f!=-1&&(h=a[0].length-f-1,a=a[0].substr(0,f),f=a.lastIndexOf(","),f!=-1&&(i=a.length-f-1));a=[];for(f=d[0];f;)e=f.length-h,a.push(e>0?f.substr(e):f),f=e>0?f.slice(0,e):"",i&&(h=i,delete i);d[0]=a.reverse().join(c.group||",");return d.join(c.decimal||".")};b.number.regexp=function(d){return b.number._parseInfo(d).regexp};b.number._parseInfo=function(d){var d=
d||{},a=b.i18n.normalizeLocale(d.locale),a=b.i18n.getLocalization("dojo.cldr","number",a),c=d.pattern||a[(d.type||"decimal")+"Format"],e=a.group,f=a.decimal,g=1;if(c.indexOf("%")!=-1)g/=100;else if(c.indexOf("\u2030")!=-1)g/=1E3;else{var h=c.indexOf("\u00a4")!=-1;h&&(e=a.currencyGroup||e,f=a.currencyDecimal||f)}a=c.split(";");a.length==1&&a.push("-"+a[0]);a=b.regexp.buildGroupRE(a,function(a){a="(?:"+b.regexp.escapeString(a,".")+")";return a.replace(b.number._numberPatternRE,function(a){var c={signed:!1,
separator:d.strict?e:[e,""],fractional:d.fractional,decimal:f,exponent:!1},a=a.split("."),h=d.places;a.length==1&&g!=1&&(a[1]="###");if(a.length==1||h===0)c.fractional=!1;else{h===void 0&&(h=d.pattern?a[1].lastIndexOf("0")+1:Infinity);if(h&&d.fractional==void 0)c.fractional=!0;!d.places&&h<a[1].length&&(h+=","+a[1].length);c.places=h}a=a[0].split(",");if(a.length>1&&(c.groupSize=a.pop().length,a.length>1))c.groupSize2=a.pop().length;return"("+b.number._realNumberRegexp(c)+")"})},!0);h&&(a=a.replace(/([\s\xa0]*)(\u00a4{1,3})([\s\xa0]*)/g,
function(a,c,e,f){a=b.regexp.escapeString(d[["symbol","currency","displayName"][e.length-1]]||d.currency||"");c=c?"[\\s\\xa0]":"";f=f?"[\\s\\xa0]":"";return!d.strict?(c&&(c+="*"),f&&(f+="*"),"(?:"+c+a+f+")?"):c+a+f}));return{regexp:a.replace(/[\xa0 ]/g,"[\\s\\xa0]"),group:e,decimal:f,factor:g}};b.number.parse=function(d,a){var c=b.number._parseInfo(a),e=RegExp("^"+c.regexp+"$").exec(d);if(!e)return NaN;var f=e[1];if(!e[1]){if(!e[2])return NaN;f=e[2];c.factor*=-1}f=f.replace(RegExp("["+c.group+"\\s\\xa0]",
"g"),"").replace(c.decimal,".");return f*c.factor};b.number._realNumberRegexp=function(d){d=d||{};if(!("places"in d))d.places=Infinity;if(typeof d.decimal!="string")d.decimal=".";if(!("fractional"in d)||/^0/.test(d.places))d.fractional=[!0,!1];if(!("exponent"in d))d.exponent=[!0,!1];if(!("eSigned"in d))d.eSigned=[!0,!1];var a=b.number._integerRegexp(d),c=b.regexp.buildGroupRE(d.fractional,function(a){var b="";a&&d.places!==0&&(b="\\"+d.decimal,d.places==Infinity?b="(?:"+b+"\\d+)?":b+="\\d{"+d.places+
"}");return b},!0),e=b.regexp.buildGroupRE(d.exponent,function(a){return a?"([eE]"+b.number._integerRegexp({signed:d.eSigned})+")":""});a+=c;c&&(a="(?:(?:"+a+")|(?:"+c+"))");return a+e};b.number._integerRegexp=function(d){d=d||{};if(!("signed"in d))d.signed=[!0,!1];if("separator"in d){if(!("groupSize"in d))d.groupSize=3}else d.separator="";var a=b.regexp.buildGroupRE(d.signed,function(a){return a?"[-+]":""},!0),c=b.regexp.buildGroupRE(d.separator,function(a){if(!a)return"(?:\\d+)";a=b.regexp.escapeString(a);
a==" "?a="\\s":a=="\u00a0"&&(a="\\s\\xa0");var c=d.groupSize,g=d.groupSize2;return g?(a="(?:0|[1-9]\\d{0,"+(g-1)+"}(?:["+a+"]\\d{"+g+"})*["+a+"]\\d{"+c+"})",c-g>0?"(?:"+a+"|(?:0|[1-9]\\d{0,"+(c-1)+"}))":a):"(?:0|[1-9]\\d{0,"+(c-1)+"}(?:["+a+"]\\d{"+c+"})*)"},!0);return a+c};return b.number});
define("dijit/ProgressBar","dojo,dijit,text!dijit/templates/ProgressBar.html,dojo/fx,dojo/number,dijit/_Widget,dijit/_Templated".split(","),function(b,d){b.declare("dijit.ProgressBar",[d._Widget,d._Templated],{progress:"0",value:"",maximum:100,places:0,indeterminate:!1,label:"",name:"",templateString:b.cache("dijit","templates/ProgressBar.html"),_indeterminateHighContrastImagePath:b.moduleUrl("dijit","themes/a11y/indeterminate_progress.gif"),postMixInProperties:function(){this.inherited(arguments);
if(!("value"in this.params))this.value=this.indeterminate?Infinity:this.progress},buildRendering:function(){this.inherited(arguments);this.indeterminateHighContrastImage.setAttribute("src",this._indeterminateHighContrastImagePath.toString());this.update()},update:function(a){b.mixin(this,a||{});var a=this.internalProgress,c=this.domNode,e=1;this.indeterminate?(d.removeWaiState(c,"valuenow"),d.removeWaiState(c,"valuemin"),d.removeWaiState(c,"valuemax")):(String(this.progress).indexOf("%")!=-1?(e=Math.min(parseFloat(this.progress)/
100,1),this.progress=e*this.maximum):(this.progress=Math.min(this.progress,this.maximum),e=this.progress/this.maximum),d.setWaiState(c,"describedby",this.labelNode.id),d.setWaiState(c,"valuenow",this.progress),d.setWaiState(c,"valuemin",0),d.setWaiState(c,"valuemax",this.maximum));this.labelNode.innerHTML=this.report(e);b.toggleClass(this.domNode,"dijitProgressBarIndeterminate",this.indeterminate);a.style.width=e*100+"%";this.onChange()},_setValueAttr:function(a){this._set("value",a);a==Infinity?
this.update({indeterminate:!0}):this.update({indeterminate:!1,progress:a})},_setLabelAttr:function(a){this._set("label",a);this.update()},_setIndeterminateAttr:function(a){this.indeterminate=a;this.update()},report:function(a){return this.label?this.label:this.indeterminate?"&nbsp;":b.number.format(a,{type:"percent",places:this.places,locale:this.lang})},onChange:function(){}});return d.ProgressBar});define("text!orion/widgets/templates/ImportDialog.html",[],function(){return'<div class="dijitDialog" tabindex="-1" waiRole="dialog" waiState="labelledby-${id}_title">\n\t<div dojoAttachPoint="titleBar" class="dijitDialogTitleBar">\n\t\t<span dojoAttachPoint="titleNode" class="dijitDialogTitle" id="${id}_title"></span>\n\t\t<span dojoAttachPoint="closeButtonNode" class="dijitDialogCloseIcon" dojoAttachEvent="onclick: onCancel" title="${buttonCancel}">\n\t\t\t<span dojoAttachPoint="closeText" class="closeText" title="${buttonCancel}">x</span>\n\t\t</span>\n\t</div>\n\t<div dojoAttachPoint="containerNode" class="dijitDialogPaneContent">\n\t\t<\!-- Actual content here --\>\n\n\t\t<form method="post" id="importDialog.myForm"\n\t\t\tenctype="multipart/form-data" >\n\t\t\t<fieldset>\n\t\t\t\t<div style="display: table-row">\n\t\t\t\t\t<div style="display: table-row; height: 20px">\n\t\t\t\t\t\t<div style="display: table-cell; padding: 1px;">\n\t\t\t\t\t\t\tFile:\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div style="display: table-cell; padding: 1px; vertical-align: top;">\n\t\t\t\t\t\t\t<div id="files" dojoType="dojox.form.uploader.FileList" uploaderId="importDialog.uploader"></div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div style="display: table-cell; padding: 1px;">\n\t\t\t\t\t\t\t<input name="uploadedfile" multiple="false" type="file" id="importDialog.uploader" force="iframe"\n\t\t\t\t\t\t\t\tdojoType="dojox.form.Uploader" style="height: 20px" label="Browse..." >\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style="display: table-row">\n\t\t\t\t\t\t<div style="display: table-cell; padding: 1px;">\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div style="display: table-cell; padding: 1px;">\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div style="display: table-cell; padding: 1px;">\n\t\t\t\t\t\t\t<input type="submit" label="Finish" value="OK" dojoType="dijit.form.Button"\n\t\t\t\t\t\t\t\tstyle="padding: 20 0 10 0; float: right; clear: both;"/>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\t\n\t\t\t</fieldset>\n\t\t</form>\n\t</div>\n</div>'});
define("dojo/io/iframe",["dojo"],function(b){b.getObject("io",!0,b);b.io.iframe={create:function(d,a,c){if(window[d])return window[d];if(window.frames[d])return window.frames[d];var e=null;c||(b.config.useXDomain&&!b.config.dojoBlankHtmlUrl&&console.warn("dojo.io.iframe.create: When using cross-domain Dojo builds, please save dojo/resources/blank.html to your domain and set djConfig.dojoBlankHtmlUrl to the path on your domain to blank.html"),c=b.config.dojoBlankHtmlUrl||b.moduleUrl("dojo","resources/blank.html"));
e=b.place('<iframe id="'+d+'" name="'+d+'" src="'+c+'" onload="'+a+'" style="position: absolute; left: 1px; top: 1px; height: 1px; width: 1px; visibility: hidden">',b.body());return window[d]=e},setSrc:function(d,a,c){try{if(c){var e;(e=b.isIE||b.isWebKit?d.contentWindow.document:d.contentWindow)?e.location.replace(a):d.location=a}else b.isWebKit?d.location=a:frames[d.name].location=a}catch(f){console.log("dojo.io.iframe.setSrc: ",f)}},doc:function(d){return d.contentDocument||d.name&&d.document&&
b.doc.getElementsByTagName("iframe")[d.name].contentWindow&&b.doc.getElementsByTagName("iframe")[d.name].contentWindow.document||d.name&&b.doc.frames[d.name]&&b.doc.frames[d.name].document||null},send:function(d){if(!this._frame)this._frame=this.create(this._iframeName,b._scopeName+".io.iframe._iframeOnload();");d=b._ioSetArgs(d,function(a){a.canceled=!0;a.ioArgs._callNext()},function(a){var c=null;try{var d=a.ioArgs,f=b.io.iframe,g=f.doc(f._frame),h=d.handleAs,c=g;if(h!="html")if(h=="xml"){if(b.isIE<
9||b.isIE&&b.isQuirks){b.query("a",f._frame.contentWindow.document.documentElement).orphan();var i=f._frame.contentWindow.document.documentElement.innerText,i=i.replace(/>\s+</g,"><"),i=b.trim(i),c=b._contentHandlers.xml({responseText:i})}}else c=g.getElementsByTagName("textarea")[0].value,h=="json"?c=b.fromJson(c):h=="javascript"&&(c=b.eval(c))}catch(j){c=j}finally{d._callNext()}return c},function(a,b){b.ioArgs._hasError=!0;b.ioArgs._callNext();return a});d.ioArgs._callNext=function(){if(!this._calledNext)this._calledNext=
!0,b.io.iframe._currentDfd=null,b.io.iframe._fireNextRequest()};this._dfdQueue.push(d);this._fireNextRequest();b._ioWatch(d,function(a){return!a.ioArgs._hasError},function(a){return!!a.ioArgs._finished},function(a){a.ioArgs._finished?a.callback(a):a.errback(Error("Invalid dojo.io.iframe request state"))});return d},_currentDfd:null,_dfdQueue:[],_iframeName:b._scopeName+"IoIframe",_fireNextRequest:function(){try{if(!(this._currentDfd||this._dfdQueue.length==0)){do var d=this._currentDfd=this._dfdQueue.shift();
while(d&&d.canceled&&this._dfdQueue.length);if(!d||d.canceled)this._currentDfd=null;else{var a=d.ioArgs,c=a.args;a._contentToClean=[];var e=b.byId(c.form),f=c.content||{};if(e){if(f){var g=function(c,d){b.create("input",{type:"hidden",name:c,value:d},e);a._contentToClean.push(c)},h;for(h in f){var i=f[h];if(b.isArray(i)&&i.length>1){var j;for(j=0;j<i.length;j++)g(h,i[j])}else e[h]?e[h].value=i:g(h,i)}}var k=e.getAttributeNode("action"),l=e.getAttributeNode("method"),m=e.getAttributeNode("target");
if(c.url)a._originalAction=k?k.value:null,k?k.value=c.url:e.setAttribute("action",c.url);if(!l||!l.value)l?l.value=c.method?c.method:"post":e.setAttribute("method",c.method?c.method:"post");a._originalTarget=m?m.value:null;m?m.value=this._iframeName:e.setAttribute("target",this._iframeName);e.target=this._iframeName;b._ioNotifyStart(d);e.submit()}else g=c.url+(c.url.indexOf("?")>-1?"&":"?")+a.query,b._ioNotifyStart(d),this.setSrc(this._frame,g,!0)}}}catch(n){d.errback(n)}},_iframeOnload:function(){var d=
this._currentDfd;if(d){var d=d.ioArgs,a=b.byId(d.args.form);if(a){for(var c=d._contentToClean,e=0;e<c.length;e++)for(var f=c[e],g=0;g<a.childNodes.length;g++){var h=a.childNodes[g];if(h.name==f){b.destroy(h);break}}d._originalAction&&a.setAttribute("action",d._originalAction);if(d._originalTarget)a.setAttribute("target",d._originalTarget),a.target=d._originalTarget}d._finished=!0}else this._fireNextRequest()}};return b.io.iframe});define("text!dijit/form/templates/DropDownBox.html",[],function(){return'<div class="dijit dijitReset dijitInlineTable dijitLeft"\n\tid="widget_${id}"\n\trole="combobox"\n\t><div class=\'dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton dijitArrowButtonContainer\'\n\t\tdojoAttachPoint="_buttonNode, _popupStateNode" role="presentation"\n\t\t><input class="dijitReset dijitInputField dijitArrowButtonInner" value="&#9660; " type="text" tabIndex="-1" readonly="readonly" role="presentation"\n\t\t\t${_buttonInputDisabled}\n\t/></div\n\t><div class=\'dijitReset dijitValidationContainer\'\n\t\t><input class="dijitReset dijitInputField dijitValidationIcon dijitValidationInner" value="&#935; " type="text" tabIndex="-1" readonly="readonly" role="presentation"\n\t/></div\n\t><div class="dijitReset dijitInputField dijitInputContainer"\n\t\t><input class=\'dijitReset dijitInputInner\' ${!nameAttrSetting} type="text" autocomplete="off"\n\t\t\tdojoAttachPoint="textbox,focusNode" role="textbox" aria-haspopup="true"\n\t/></div\n></div>'});
define("dijit/form/nls/ComboBox",{root:{previousMessage:"Previous choices",nextMessage:"More choices"},zh:!0,"zh-tw":!0,tr:!0,th:!0,sv:!0,sl:!0,sk:!0,ru:!0,ro:!0,pt:!0,"pt-pt":!0,pl:!0,nl:!0,nb:!0,ko:!0,kk:!0,ja:!0,it:!0,hu:!0,he:!0,fr:!0,fi:!0,es:!0,el:!0,de:!0,da:!0,cs:!0,ca:!0,ar:!0});
define("dijit/form/ComboBox","dojo,dijit,text!dijit/form/templates/DropDownBox.html,dojo/window,dojo/regexp,dojo/data/util/simpleFetch,dojo/data/util/filter,dijit/_CssStateMixin,dijit/form/_FormWidget,dijit/form/ValidationTextBox,dijit/_HasDropDown,i18n!dijit/form/nls/ComboBox".split(","),function(b,d){b.declare("dijit.form.ComboBoxMixin",d._HasDropDown,{item:null,pageSize:Infinity,store:null,fetchProperties:{},query:{},autoComplete:!0,highlightMatch:"first",searchDelay:100,searchAttr:"name",labelAttr:"",
labelType:"text",queryExpr:"${0}*",ignoreCase:!0,hasDownArrow:!0,templateString:b.cache("dijit.form","templates/DropDownBox.html"),baseClass:"dijitTextBox dijitComboBox",dropDownClass:"dijit.form._ComboBoxMenu",cssStateNodes:{_buttonNode:"dijitDownArrowButton"},maxHeight:-1,_stopClickEvents:!1,_getCaretPos:function(a){var c=0;if(typeof a.selectionStart=="number")c=a.selectionStart;else if(b.isIE){var d=b.doc.selection.createRange().duplicate(),a=a.createTextRange();d.move("character",0);a.move("character",
0);try{a.setEndPoint("EndToEnd",d),c=String(a.text).replace(/\r/g,"").length}catch(f){}}return c},_setCaretPos:function(a,b){b=parseInt(b);d.selectInputText(a,b,b)},_setDisabledAttr:function(a){this.inherited(arguments);d.setWaiState(this.domNode,"disabled",a)},_abortQuery:function(){if(this.searchTimer)clearTimeout(this.searchTimer),this.searchTimer=null;if(this._fetchHandle)this._fetchHandle.abort&&this._fetchHandle.abort(),this._fetchHandle=null},_onInput:function(a){if(!this.searchTimer&&(a.type==
"paste"||a.type=="input")&&this._lastInput!=this.textbox.value)this.searchTimer=setTimeout(b.hitch(this,function(){this._onKey({charOrCode:229})}),100);this.inherited(arguments)},_onKey:function(a){var c=a.charOrCode;if(!a.altKey&&!((a.ctrlKey||a.metaKey)&&c!="x"&&c!="v"||c==b.keys.SHIFT)){var d=!1,f=this.dropDown,g=b.keys,h=null;this._prev_key_backspace=!1;this._abortQuery();this.inherited(arguments);this._opened&&(h=f.getHighlightedOption());switch(c){case g.PAGE_DOWN:case g.DOWN_ARROW:case g.PAGE_UP:case g.UP_ARROW:this._opened&&
this._announceOption(h);b.stopEvent(a);break;case g.ENTER:if(h)if(h==f.nextButton){this._nextSearch(1);b.stopEvent(a);break}else{if(h==f.previousButton){this._nextSearch(-1);b.stopEvent(a);break}}else this._setBlurValue(),this._setCaretPos(this.focusNode,this.focusNode.value.length);(this._opened||this._fetchHandle)&&a.preventDefault();case g.TAB:c=this.get("displayedValue");if(f&&(c==f._messages.previousMessage||c==f._messages.nextMessage))break;h&&this._selectOption();if(this._opened)this._lastQuery=
null,this.closeDropDown();break;case " ":h?(b.stopEvent(a),this._selectOption(),this.closeDropDown()):d=!0;break;case g.DELETE:case g.BACKSPACE:d=this._prev_key_backspace=!0;break;default:d=typeof c=="string"||c==229}if(d)this.item=void 0,this.searchTimer=setTimeout(b.hitch(this,"_startSearchFromInput"),1)}},_autoCompleteText:function(a){var b=this.focusNode;d.selectInputText(b,b.value.length);var e=this.ignoreCase?"toLowerCase":"substr";if(a[e](0).indexOf(this.focusNode.value[e](0))==0){if(e=this._getCaretPos(b),
e+1>b.value.length)b.value=a,d.selectInputText(b,e)}else b.value=a,d.selectInputText(b)},_openResultList:function(a,c){this._fetchHandle=null;if(!this.disabled&&!(this.readOnly||c.query[this.searchAttr]!=this._lastQuery)){var d=this.dropDown._highlighted_option&&b.hasClass(this.dropDown._highlighted_option,"dijitMenuItemSelected");this.dropDown.clearResultList();if(!a.length&&!this._maxOptions)this.closeDropDown();else{c._maxOptions=this._maxOptions;var f=this.dropDown.createOptions(a,c,b.hitch(this,
"_getMenuLabelFromItem"));this._showResultList();c.direction?(1==c.direction?this.dropDown.highlightFirstOption():-1==c.direction&&this.dropDown.highlightLastOption(),d&&this._announceOption(this.dropDown.getHighlightedOption())):this.autoComplete&&!this._prev_key_backspace&&!/^[*]+$/.test(c.query[this.searchAttr])&&this._announceOption(f[1])}}},_showResultList:function(){this.closeDropDown(!0);this.displayMessage("");this.openDropDown();d.setWaiState(this.domNode,"expanded","true")},loadDropDown:function(){this._startSearchAll()},
isLoaded:function(){return!1},closeDropDown:function(){this._abortQuery();this._opened&&(this.inherited(arguments),d.setWaiState(this.domNode,"expanded","false"),d.removeWaiState(this.focusNode,"activedescendant"))},_setBlurValue:function(){var a=this.get("displayedValue"),b=this.dropDown;b&&(a==b._messages.previousMessage||a==b._messages.nextMessage)?this._setValueAttr(this._lastValueReported,!0):typeof this.item=="undefined"?(this.item=null,this.set("displayedValue",a)):(this.value!=this._lastValueReported&&
d.form._FormValueWidget.prototype._setValueAttr.call(this,this.value,!0),this._refreshState())},_onBlur:function(){this.closeDropDown();this.inherited(arguments)},_setItemAttr:function(a,b,e){e||(e=this.store.getValue(a,this.searchAttr));var f=this._getValueField()!=this.searchAttr?this.store.getIdentity(a):e;this._set("item",a);d.form.ComboBox.superclass._setValueAttr.call(this,f,b,e)},_announceOption:function(a){if(a){var c;a==this.dropDown.nextButton||a==this.dropDown.previousButton?(c=a.innerHTML,
this.item=void 0,this.value=""):(c=this.store.getValue(a.item,this.searchAttr).toString(),this.set("item",a.item,!1,c));this.focusNode.value=this.focusNode.value.substring(0,this._lastInput.length);d.setWaiState(this.focusNode,"activedescendant",b.attr(a,"id"));this._autoCompleteText(c)}},_selectOption:function(a){a&&this._announceOption(a.target);this.closeDropDown();this._setCaretPos(this.focusNode,this.focusNode.value.length);d.form._FormValueWidget.prototype._setValueAttr.call(this,this.value,
!0)},_startSearchAll:function(){this._startSearch("")},_startSearchFromInput:function(){this._startSearch(this.focusNode.value.replace(/([\\\*\?])/g,"\\$1"))},_getQueryString:function(a){return b.string.substitute(this.queryExpr,[a])},_startSearch:function(a){if(!this.dropDown){var c=this.id+"_popup";this.dropDown=new (b.getObject(this.dropDownClass,!1))({onChange:b.hitch(this,this._selectOption),id:c,dir:this.dir});d.removeWaiState(this.focusNode,"activedescendant");d.setWaiState(this.textbox,"owns",
c)}c=b.clone(this.query);this._lastInput=a;this._lastQuery=c[this.searchAttr]=this._getQueryString(a);this.searchTimer=setTimeout(b.hitch(this,function(a,c){this.searchTimer=null;var d={queryOptions:{ignoreCase:this.ignoreCase,deep:!0},query:a,onBegin:b.hitch(this,"_setMaxOptions"),onComplete:b.hitch(this,"_openResultList"),onError:function(a){c._fetchHandle=null;console.error("dijit.form.ComboBox: "+a);c.closeDropDown()},start:0,count:this.pageSize};b.mixin(d,c.fetchProperties);this._fetchHandle=
c.store.fetch(d);this._nextSearch=this.dropDown.onPage=b.hitch(this,function(a,b){a.start+=a.count*b;a.direction=b;this._fetchHandle=this.store.fetch(a);this.focus()},this._fetchHandle)},c,this),this.searchDelay)},_setMaxOptions:function(a){this._maxOptions=a},_getValueField:function(){return this.searchAttr},constructor:function(){this.query={};this.fetchProperties={}},postMixInProperties:function(){if(!this.store&&(this.store=new d.form._ComboBoxDataStore(this.srcNodeRef),!("value"in this.params))){var a=
this.item=this.store.fetchSelectedItem();if(a){var b=this._getValueField();this.value=this.store.getValue(a,b)}}this.inherited(arguments)},postCreate:function(){var a=b.query('label[for="'+this.id+'"]');if(a.length)a[0].id=this.id+"_label",d.setWaiState(this.domNode,"labelledby",a[0].id);this.inherited(arguments)},_setHasDownArrowAttr:function(a){this.hasDownArrow=a;this._buttonNode.style.display=a?"":"none"},_getMenuLabelFromItem:function(a){var a=this.labelFunc(a,this.store),b=this.labelType;this.highlightMatch!=
"none"&&this.labelType=="text"&&this._lastInput&&(a=this.doHighlight(a,this._escapeHtml(this._lastInput)),b="html");return{html:b=="html",label:a}},doHighlight:function(a,c){var d=(this.ignoreCase?"i":"")+(this.highlightMatch=="all"?"g":""),f=this.queryExpr.indexOf("${0}"),c=b.regexp.escapeString(c);return this._escapeHtml(a).replace(RegExp((f==0?"^":"")+"("+c+")"+(f==this.queryExpr.length-4?"$":""),d),'<span class="dijitComboBoxHighlightMatch">$1</span>')},_escapeHtml:function(a){return a=String(a).replace(/&/gm,
"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;")},reset:function(){this.item=null;this.inherited(arguments)},labelFunc:function(a,b){return b.getValue(a,this.labelAttr||this.searchAttr).toString()}});b.declare("dijit.form._ComboBoxMenu",[d._Widget,d._Templated,d._CssStateMixin],{templateString:"<ul class='dijitReset dijitMenu' dojoAttachEvent='onmousedown:_onMouseDown,onmouseup:_onMouseUp,onmouseover:_onMouseOver,onmouseout:_onMouseOut' style='overflow: \"auto\"; overflow-x: \"hidden\";'><li class='dijitMenuItem dijitMenuPreviousButton' dojoAttachPoint='previousButton' role='option'></li><li class='dijitMenuItem dijitMenuNextButton' dojoAttachPoint='nextButton' role='option'></li></ul>",
_messages:null,baseClass:"dijitComboBoxMenu",postMixInProperties:function(){this.inherited(arguments);this._messages=b.i18n.getLocalization("dijit.form","ComboBox",this.lang)},buildRendering:function(){this.inherited(arguments);this.previousButton.innerHTML=this._messages.previousMessage;this.nextButton.innerHTML=this._messages.nextMessage},_setValueAttr:function(a){this.value=a;this.onChange(a)},onChange:function(){},onPage:function(){},onClose:function(){this._blurOptionNode()},_createOption:function(a,
c){var d=b.create("li",{"class":"dijitReset dijitMenuItem"+(this.isLeftToRight()?"":" dijitMenuItemRtl"),role:"option"}),f=c(a);f.html?d.innerHTML=f.label:d.appendChild(b.doc.createTextNode(f.label));if(d.innerHTML=="")d.innerHTML="&nbsp;";d.item=a;return d},createOptions:function(a,c,d){this.previousButton.style.display=c.start==0?"none":"";b.attr(this.previousButton,"id",this.id+"_prev");b.forEach(a,function(a,c){var f=this._createOption(a,d);b.attr(f,"id",this.id+c);this.domNode.insertBefore(f,
this.nextButton)},this);var f=!1;c._maxOptions&&c._maxOptions!=-1?c.start+c.count<c._maxOptions?f=!0:c.start+c.count>c._maxOptions&&c.count==a.length&&(f=!0):c.count==a.length&&(f=!0);this.nextButton.style.display=f?"":"none";b.attr(this.nextButton,"id",this.id+"_next");return this.domNode.childNodes},clearResultList:function(){for(;this.domNode.childNodes.length>2;)this.domNode.removeChild(this.domNode.childNodes[this.domNode.childNodes.length-2]);this._blurOptionNode()},_onMouseDown:function(a){b.stopEvent(a)},
_onMouseUp:function(a){if(a.target!==this.domNode&&this._highlighted_option)if(a.target==this.previousButton)this._blurOptionNode(),this.onPage(-1);else if(a.target==this.nextButton)this._blurOptionNode(),this.onPage(1);else{for(a=a.target;!a.item;)a=a.parentNode;this._setValueAttr({target:a},!0)}},_onMouseOver:function(a){if(a.target!==this.domNode){a=a.target;if(!(a==this.previousButton||a==this.nextButton))for(;!a.item;)a=a.parentNode;this._focusOptionNode(a)}},_onMouseOut:function(a){a.target!==
this.domNode&&this._blurOptionNode()},_focusOptionNode:function(a){if(this._highlighted_option!=a)this._blurOptionNode(),this._highlighted_option=a,b.addClass(this._highlighted_option,"dijitMenuItemSelected")},_blurOptionNode:function(){if(this._highlighted_option)b.removeClass(this._highlighted_option,"dijitMenuItemSelected"),this._highlighted_option=null},_highlightNextOption:function(){if(this.getHighlightedOption()){var a=this._highlighted_option.nextSibling;a&&a.style.display!="none"?this._focusOptionNode(a):
this.highlightFirstOption()}else a=this.domNode.firstChild,this._focusOptionNode(a.style.display=="none"?a.nextSibling:a);b.window.scrollIntoView(this._highlighted_option)},highlightFirstOption:function(){var a=this.domNode.firstChild,c=a.nextSibling;this._focusOptionNode(c.style.display=="none"?a:c);b.window.scrollIntoView(this._highlighted_option)},highlightLastOption:function(){this._focusOptionNode(this.domNode.lastChild.previousSibling);b.window.scrollIntoView(this._highlighted_option)},_highlightPrevOption:function(){if(this.getHighlightedOption()){var a=
this._highlighted_option.previousSibling;a&&a.style.display!="none"?this._focusOptionNode(a):this.highlightLastOption()}else a=this.domNode.lastChild,this._focusOptionNode(a.style.display=="none"?a.previousSibling:a);b.window.scrollIntoView(this._highlighted_option)},_page:function(a){var c=0,d=this.domNode.scrollTop,f=b.style(this.domNode,"height");for(this.getHighlightedOption()||this._highlightNextOption();c<f;){if(a){if(!this.getHighlightedOption().previousSibling||this._highlighted_option.previousSibling.style.display==
"none")break;this._highlightPrevOption()}else{if(!this.getHighlightedOption().nextSibling||this._highlighted_option.nextSibling.style.display=="none")break;this._highlightNextOption()}var g=this.domNode.scrollTop;c+=(g-d)*(a?-1:1);d=g}},pageUp:function(){this._page(!0)},pageDown:function(){this._page(!1)},getHighlightedOption:function(){var a=this._highlighted_option;return a&&a.parentNode?a:null},handleKey:function(a){switch(a.charOrCode){case b.keys.DOWN_ARROW:return this._highlightNextOption(),
!1;case b.keys.PAGE_DOWN:return this.pageDown(),!1;case b.keys.UP_ARROW:return this._highlightPrevOption(),!1;case b.keys.PAGE_UP:return this.pageUp(),!1;default:return!0}}});b.declare("dijit.form.ComboBox",[d.form.ValidationTextBox,d.form.ComboBoxMixin],{_setValueAttr:function(a,b,e){this._set("item",null);a||(a="");d.form.ValidationTextBox.prototype._setValueAttr.call(this,a,b,e)}});b.declare("dijit.form._ComboBoxDataStore",null,{constructor:function(a){this.root=a;if(a.tagName!="SELECT"&&a.firstChild)a=
b.query("select",a),a.length>0?a=a[0]:(this.root.innerHTML="<SELECT>"+this.root.innerHTML+"</SELECT>",a=this.root.firstChild),this.root=a;b.query("> option",a).forEach(function(a){a.innerHTML=b.trim(a.innerHTML)})},getValue:function(a,b){return b=="value"?a.value:a.innerText||a.textContent||""},isItemLoaded:function(){return!0},getFeatures:function(){return{"dojo.data.api.Read":!0,"dojo.data.api.Identity":!0}},_fetchItems:function(a,c){if(!a.query)a.query={};if(!a.query.name)a.query.name="";if(!a.queryOptions)a.queryOptions=
{};var d=b.data.util.filter.patternToRegExp(a.query.name,a.queryOptions.ignoreCase),f=b.query("> option",this.root).filter(function(a){return(a.innerText||a.textContent||"").match(d)});a.sort&&f.sort(b.data.util.sorter.createSortFunction(a.sort,this));c(f,a)},close:function(){},getLabel:function(a){return a.innerHTML},getIdentity:function(a){return b.attr(a,"value")},fetchItemByIdentity:function(a){var c=b.query("> option[value='"+a.identity+"']",this.root)[0];a.onItem(c)},fetchSelectedItem:function(){var a=
this.root,c=a.selectedIndex;return typeof c=="number"?b.query("> option:nth-child("+(c!=-1?c+1:1)+")",a)[0]:null}});b.extend(d.form._ComboBoxDataStore,b.data.util.simpleFetch);return d.form.ComboBox});define("text!orion/widgets/templates/SFTPConnectionDialog.html",[],function(){return'<div class="dijitDialog" tabindex="-1" waiRole="dialog" waiState="labelledby-${id}_title">\n\t<div dojoType="dojo.data.ItemFileReadStore" data="sftpConnectionStoreData" jsId="sftpConnectionStore">\n\t</div>\n\t<div dojoAttachPoint="titleBar" class="dijitDialogTitleBar">\n\t\t<span dojoAttachPoint="titleNode" class="dijitDialogTitle" id="${id}_title"></span>\n\t\t<span dojoAttachPoint="closeButtonNode" class="dijitDialogCloseIcon" dojoAttachEvent="onclick: onCancel" title="${buttonCancel}">\n\t\t\t<span dojoAttachPoint="closeText" class="closeText" title="${buttonCancel}">x</span>\n\t\t</span>\n\t</div>\n\t<div dojoAttachPoint="containerNode" class="dijitDialogPaneContent">\n\t\t<\!-- Actual content here --\>\n\t\t<div style="display: table">\n\t\t\t<div style="display: table-row">\n\t\t\t\t<div style="display: table-cell; padding: 5">\n\t\t\t\t\t<label dojoAttachPoint="locationLabel" for="${id}_sftpPath" style="padding-right: 10">${locationLabelText}</label>\n\t\t\t\t</div>\n\t\t\t\t<div style="display: table-cell; padding: 5; width: 40em; text-align: left;">\n\t\t\t\t\t<div dojoType="dijit.form.ComboBox" store="sftpConnectionStore" style="display: inline-block; width: 88%;" dojoAttachPoint="sftpConnectionList" searchAttr="name">\n\t\t\t\t\t</div>\n\t\t\t\t\t<div dojoType="dijit.form.DropDownButton">\n\t\t\t\t\t    <span>New</span>\n\t\t\t    \t\t<div dojoType="dijit.TooltipDialog">\n\t\t\t\t\t\t\t<div style="display: table">\n\t\t\t\t\t\t\t\t<div style="display: table-row">\n\t\t\t\t\t\t\t\t\t<div style="display: table-cell; padding: 5">\n\t\t\t\t\t\t\t\t\t\t<label dojoAttachPoint="sftpHostLabel" for="${id}_sftpHost" style="padding-right: 10">${sftpHostLabelText}</label>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div style="display: table-cell; padding: 5; width: 40em; text-align: left;">\n\t\t\t\t\t\t\t\t\t\t<input dojoAttachPoint="sftpHost" id="${id}_sftpHost" style="display: inline-block; width: 98%;" value="">\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div style="display: table-row">\n\t\t\t\t\t\t\t\t\t<div style="display: table-cell; padding: 5">\n\t\t\t\t\t\t\t\t\t\t<label dojoAttachPoint="sftpPathLabel" for="${id}_sftpPath" style="padding-right: 10">${sftpPathLabelText}</label>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div style="display: table-cell; padding: 5; width: 40em; text-align: left;">\n\t\t\t\t\t\t\t\t\t\t<input dojoAttachPoint="sftpPath" id="${id}_sftpPath" style="display: inline-block; width: 98%;" value="">\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\t\n\t\t\t\t\t\t\t\t<div style="display: table-row">\n\t\t\t\t\t\t\t\t\t<div style="display: table-cell; padding: 5">\n\t\t\t\t\t\t\t\t\t\t<label dojoAttachPoint="sftpUserLabel" for="${id}_sftpUser" style="padding-right: 10">${sftpUserLabelText}</label>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div style="display: table-cell; padding: 5; width: 40em; text-align: left;">\n\t\t\t\t\t\t\t\t\t\t<input dojoAttachPoint="sftpUser" id="${id}_sftpUser" style="display: inline-block; width: 98%;" value="">\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div style="display: table-row">\n\t\t\t\t\t\t\t\t\t<div style="display: table-cell; padding: 5"></div>\n\t\t\t\t\t\t\t\t\t<div style="display: table-cell; padding: 5">\n\t\t\t\t\t\t\t\t\t\t<button dojoAttachPoint="addSFTPConnection" type="submit" dojoType="dijit.form.Button" style="padding: 20 0 10 0; float: right; clear: both;">Add</button>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div><\!-- End inner table--\>\n\t\t\t    \t\t</div><\!-- End TooltipDialog --\>\n\t\t\t    \t</div><\!-- End DropDownButton --\>\n\t\t\t\t</div><\!-- End table cell --\>\n\t\t\t</div><\!-- End table row --\>\n\t\t\t<div style="display: table-row">\n\t\t\t\t<div style="display: table-cell; padding: 5">\n\t\t\t\t\t<label dojoAttachPoint="sftpPasswordLabel" for="${id}_sftpPassword" style="padding-right: 10">${sftpPasswordLabelText}</label>\n\t\t\t\t</div>\n\t\t\t\t<div style="display: table-cell; padding: 5; width: 40em; text-align: left;">\n\t\t\t\t\t<input type="password" dojoAttachPoint="sftpPassword" id="${id}_sftpPassword" style="display: inline-block; width: 98%;" value="">\n\t\t\t\t</div>\n\t\t\t</div>\t\n\t\t\t<div style="display: table-row">\n\t\t\t\t<div style="display: table-cell; padding: 5"></div>\n\t\t\t\t<div style="display: table-cell; padding: 5">\n\t\t\t\t\t<p>If the same file exists in both the source and destination:</p>\n\t\t\t\t    <input type="radio" dojoAttachPoint="overwriteCancel" dojoType="dijit.form.RadioButton" name="overwriteOption" id="overwriteCancel" checked value="overwriteCancel" />\n\t\t\t\t    <label for="radioOne">Cancel the transfer</label>\n\t\t\t\t    <br />\n\t\t\t\t    <input type="radio" dojoAttachPoint="overwriteAll" dojoType="dijit.form.RadioButton" name="overwriteOption" id="overwriteAll"/>\n\t\t\t\t    <label for="radioOne">Always overwrite destination</label>\n\t\t\t\t    <br />\n\t\t\t\t    <input type="radio" dojoAttachPoint="overwriteOlder" dojoType="dijit.form.RadioButton" name="overwriteOption" id="overwriteOlder"/>\n\t\t\t\t    <label for="radioOne">Overwrite if source is newer</label>\n\t\t\t\t</div>\n\t\t\t</div><\!-- End table row --\>\n\t\t\t<div style="display: table-row">\n\t\t\t\t<div style="display: table-cell; padding: 5"></div>\n\t\t\t\t<div style="display: table-cell; padding: 5">\n\t\t\t\t\t<button dojoAttachPoint="sftpConnectionButton" dojoType="dijit.form.Button" type="submit" value="OK" style="padding: 20 0 10 0; float: right; clear: both;">${buttonOk}\n\t\t\t\t\t</button>\n\t\t\t\t</div>\n\t\t\t</div><\!-- End table row --\>\n\t\t</div><\!-- End table --\>\n\t</div><\!-- End dijitDialogPaneContent --\>\n</div>'});
define("orion/widgets/SFTPConnectionDialog","i18n!orion/widgets/nls/messages,dojo,dijit,dijit/Dialog,dijit/form/CheckBox,dijit/form/ComboBox,dojo/data/ItemFileReadStore,orion/widgets/_OrionDialogMixin,text!orion/widgets/templates/SFTPConnectionDialog.html".split(","),function(b,d,a){localStorage.getItem("orion.sftpConnections")||localStorage.setItem("orion.sftpConnections",JSON.stringify({identifier:"name",label:b.name,items:[]}));window.sftpConnectionStoreData=JSON.parse(localStorage.getItem("orion.sftpConnections"));
d.declare("orion.widgets.SFTPConnectionDialog",[a.Dialog,orion.widgets._OrionDialogMixin],{widgetsInTemplate:!0,templateString:d.cache("orion","widgets/templates/SFTPConnectionDialog.html"),constructor:function(){this.inherited(arguments);this.options=arguments[0]||{}},postMixInProperties:function(){this.inherited(arguments);this.title="SFTP Transfer";this.sftpHostLabelText=b["Remote host:"];this.sftpPathLabelText=b["Remote path:"];this.sftpUserLabelText=b["User name:"];this.sftpPasswordLabelText=
b["Password:"];this.buttonOk=b["Start Transfer"];this.locationLabelText=b["Location:"];sftpConnectionStoreData=JSON.parse(localStorage.getItem("orion.sftpConnections"))},postCreate:function(){this.inherited(arguments);d.connect(this.addSFTPConnection,"onClick",null,d.hitch(this,this.onAddConnection))},execute:function(){var a=this.sftpConnectionList.value.split("@");if(a.length===2){var b=a[0],d=a[1].indexOf("/");if(!(d<=0)){var g=a[1].substring(0,d),a=a[1].substring(d);this.options.func(g,a,b,this.sftpPassword.value,
this._computeOverwriteValue())}}},_computeOverwriteValue:function(){if(this.overwriteCancel.checked)return"no-overwrite";else if(this.overwriteOlder.checked)return"overwrite-older";return""},onAddConnection:function(){for(var a={name:this.sftpUser.value+"@"+this.sftpHost.value+this.sftpPath.value},b=JSON.parse(localStorage.getItem("orion.sftpConnections")),d=!1,g=0;g<b.items.length;g++)if(b.items[g].name===a.name){d=!0;break}d||(b.items.unshift(a),localStorage.setItem("orion.sftpConnections",JSON.stringify(b)),
this.sftpConnectionList.set("value",a.name))}})});
define("orion/textview/keyBinding",[],function(){function b(a,b,d,f,g){this.keyCode=typeof a==="string"?a.toUpperCase().charCodeAt(0):a;this.mod1=b!==void 0&&b!==null?b:!1;this.mod2=d!==void 0&&d!==null?d:!1;this.mod3=f!==void 0&&f!==null?f:!1;this.mod4=g!==void 0&&g!==null?g:!1}var d=window.navigator.platform.indexOf("Mac")!==-1;b.prototype={match:function(a){return this.keyCode===a.keyCode?this.mod1!==(d?a.metaKey:a.ctrlKey)?!1:this.mod2!==a.shiftKey?!1:this.mod3!==a.altKey?!1:d&&this.mod4!==a.ctrlKey?
!1:!0:!1},equals:function(a){return!a?!1:this.keyCode!==a.keyCode?!1:this.mod1!==a.mod1?!1:this.mod2!==a.mod2?!1:this.mod3!==a.mod3?!1:this.mod4!==a.mod4?!1:!0}};return{KeyBinding:b}});
define("orion/breadcrumbs",["require","dojo","orion/util"],function(b,d,a){function c(a){this._init(a)}c.prototype={_init:function(a){var b=a.container;typeof b==="string"&&(b=d.byId(b));if(!b)throw"no parent container";this._container=b;d.removeClass(b,"currentLocation");this._id=a.id||"eclipse.breadcrumbs";this._resource=a.resource||null;this._rootSegmentName=a.rootSegmentName;this._workspaceRootSegmentName=a.workspaceRootSegmentName;this._makeHref=a.makeHref;this.path="";this.render()},getNavigatorWorkspaceRootSegment:function(){if(this._workspaceRootSegmentName){var a;
this._resource&&this._resource.Parents?(a=document.createElement("a"),this._makeHref?this._makeHref(a,""):a.href=b.toUrl("navigate/table.html")+"#"):a=document.createElement("span");d.place(document.createTextNode(this._workspaceRootSegmentName),a,"only");return a}return null},render:function(){var c=this._container,f=d.byId(this._id);f?d.empty(f):(f=document.createElement("span"),f.id=this._id,c.appendChild(f));var g;if(g=this.getNavigatorWorkspaceRootSegment())if(d.addClass(g,"breadcrumb"),f.appendChild(g),
this._resource&&this._resource.Parents)g=document.createElement("span"),d.place(document.createTextNode(" / "),g,"only"),this.path+="/",d.addClass(g,"breadcrumbSeparator"),f.appendChild(g);else{g.href="";d.removeClass(g,"breadcrumb");d.addClass(g,"currentLocation");a.forceLayout(c);return}var h=this._rootSegmentName;if(this._resource){if(this._resource.Parents)for(var i=this._resource.Parents,j=i.length;--j>=0;)g=document.createElement("a"),d.addClass(g,"breadcrumb"),h?(d.place(document.createTextNode(h),
g,"only"),h=null):d.place(document.createTextNode(i[j].Name),g,"only"),this.path+=i[j].Name,this._makeHref?this._makeHref(g,i[j].Location):g.href=b.toUrl("navigate/table.html")+"#"+i[j].ChildrenLocation,f.appendChild(g),g=document.createElement("span"),d.place(document.createTextNode(" / "),g,"only"),this.path+="/",d.addClass(g,"breadcrumbSeparator"),f.appendChild(g);g=document.createElement("span");h?(d.place(document.createTextNode(h),g,"only"),h=null):d.place(document.createTextNode(this._resource.Name),
g,"only");d.addClass(g,"currentLocation");this.path+=this._resource.Name;f.appendChild(g)}f.childNodes.length===0&&(g=document.createElement("a"),d.place(document.createTextNode(h||document.title),g,"only"),d.addClass(g,"breadcrumb"),d.addClass(g,"currentLocation"),f.appendChild(g));a.forceLayout(c)}};c.prototype.constructor=c;return{BreadCrumbs:c}});
define("orion/favorites",["require","dojo","orion/util"],function(b,d,a){function c(a){this._favorites=[];this._init(a);this._initializeFavorites()}c.prototype={_init:function(a){this._registry=a.serviceRegistry;this._serviceRegistration=this._registry.registerService("orion.core.favorite",this)},_notifyListeners:function(){this._serviceRegistration.dispatchEvent("favoritesChanged",{navigator:this._favorites,registry:this._registry})},makeFavorites:function(b){for(var b=d.isArray(b)?b:[b],c=0;c<b.length;c++){var g=
b[c],h=g.ChildrenLocation?g.ChildrenLocation:g.Location,h=a.makeRelative(h);this.addFavorite(g.Name,h,g.Directory)}this._storeFavorites();this._notifyListeners()},addFavoriteUrl:function(a){this.addFavorite(a,a,!1,!0)},addFavorite:function(a,b,c){this._favorites.push({name:a,path:b,directory:c,isFavorite:!0});this._favorites.sort(this._sorter);this._storeFavorites();this._notifyListeners()},removeFavorite:function(a){for(var b in this._favorites)if(this._favorites[b].path===a){this._favorites.splice(b,
1);break}this._favorites.sort(this._sorter);this._storeFavorites();this._notifyListeners()},renameFavorite:function(a,b){var c=!1,d;for(d in this._favorites)if(this._favorites[d].path===a){var i=this._favorites[d];if(i.name!==b)i.name=b,c=!0}c&&(this._favorites.sort(this._sorter),this._storeFavorites(),this._notifyListeners())},hasFavorite:function(a){for(var b in this._favorites)if(this._favorites[b].path===a)return!0;return!1},_SPECIAL_CHARS:"^$\\+[]().",queryFavorites:function(a){var b;if(!a)return this._favorites;
var c="";for(b=0;b<a.length;b++){var d=a.charAt(b);c+=d==="*"?".*":d==="?"?".?":this._SPECIAL_CHARS.indexOf(d)>=0?"\\"+d:d}c+=".*";a=RegExp(c);c=[];for(b in this._favorites)this._favorites[b].name.search(a)===0&&c.push(this._favorites[b]);return c},_initializeFavorites:function(){var a=this;this._registry.getService("orion.core.preference").getPreferences("/window/favorites").then(function(b){var c,b=b.get("navigate");typeof b==="string"&&(b=JSON.parse(b));if(b)for(c in b)b[c].isFavorite=!0,a._favorites.push(b[c]);
a._favorites.sort(a._sorter);a._notifyListeners()})},_storeFavorites:function(){var a=this._favorites;this._registry.getService("orion.core.preference").getPreferences("/window/favorites").then(function(b){b.put("navigate",a)})},_sorter:function(a,b){var c=a.name.toLowerCase(),d=b.name.toLowerCase();return c>d?1:c<d?-1:0},getFavorites:function(){return{navigator:this._favorites}}};c.prototype.constructor=c;return{FavoritesService:c}});
define("orion/contentTypes",[],function(){function b(a,b){function c(a,b,d,e){var d=b.filename.indexOf(d)>=0,f=b.extension.indexOf(e)>=0;if(d||f)if(!a||d&&a.extension.indexOf(e)>=0)return b;return a}for(var d=a&&a.split(".").pop(),e=null,k=0;k<b.length;k++){var l=b[k];c(e,l,a,d)===l&&(e=l)}return e}function d(b){this.serviceRegistry=b;this.map=function(a){function b(a){return a===null||typeof a==="undefined"?[]:a instanceof Array?a:[a]}for(var a=a.getServiceReferences(c).concat(a.getServiceReferences(e)),
d={},f=0;f<a.length;f++)for(var k=b(a[f].getProperty("contentTypes")),l=0;l<k.length;l++){var m=k[l];d[m.id]||(d[m.id]={id:m.id,name:m.name,image:m.image,"extends":m["extends"],extension:b(m.extension),filename:b(m.filename)})}return d}(b);b.registerService(a,this)}var a="orion.core.contenttypes",c="orion.core.contenttype",e="orion.file.contenttype";d.prototype={getContentTypes:function(){var a=this.getContentTypesMap(),b=[],c;for(c in a)a.hasOwnProperty(c)&&b.push(a[c]);return b},getContentTypesMap:function(){return this.map},
getFileContentType:function(a){return b(a.Name,this.getContentTypes())},getFilenameContentType:function(a){return b(a,this.getContentTypes())},getContentType:function(a){return this.map[a]||null},isExtensionOf:function(a,b){a=typeof a==="string"?this.getContentType(a):a;b=typeof b==="string"?this.getContentType(b):b;if(!a||!b)return!1;if(a.id===b.id)return!0;else for(var c=a,d={};c&&(c=this.getContentType(c["extends"]));){if(c.id===b.id)return!0;if(d[c.id])throw Error("Cycle: "+c.id);d[c.id]=!0}return!1},
isSomeExtensionOf:function(a,b){for(var c=0;c<b.length;c++)if(this.isExtensionOf(a,b[c]))return!0;return!1}};return{ContentTypeService:d,getFilenameContentType:b}});
define("orion/URITemplate",[],function(){function b(a){this._text=a}function d(a,b){if(b==="U")return encodeURIComponent(a).replace(/[!'()*]/g,function(a){return"%"+a.charCodeAt(0).toString(16).toUpperCase()});if(b==="U+R")return encodeURI(a).replace(/%5B/g,"[").replace(/%5D/g,"]");if(b==="U+R-,")return encodeURI(a).replace(/%5B/g,"[").replace(/%5D/g,"]").replace(/,/g,"%2C");throw Error("Unknown allowed character set: "+b);}function a(a,b,c){for(var e=[],f=0;f<a.length;f++)typeof a[f]!=="undefined"&&
e.push(d(a[f],b));return e.join(c)}function c(a,b,c,e){for(var f=Object.keys(a),g=[],h=0;h<f.length;h++)typeof a[f[h]]!=="undefined"&&g.push(d(f[h],b)+c+d(a[f[h]],b));return g.join(e)}function e(a){if(a.length===0)throw Error("Invalid Expression: 0 length expression");(this._operator=g[a[0]])?a=a.substring(1):this._operator=g.NUL;for(var b=[],c=a.split(","),d=0;d<c.length;d++){var e=c[d].match(h);if(e===null)throw Error("Bad VarSpec: "+a);b.push({name:e[1],explode:!!e[2],prefix:e[3]?parseInt(e[3],
10):-1})}this._varSpecList=b}function f(a){for(var c=[],d=0,f=a.indexOf("{",d);f!==-1;){c.push(new b(a.substring(d,f)));d=a.indexOf("}",f+1);if(d===-1)throw Error("Invalid template: "+a);c.push(new e(a.substring(f+1,d)));d+=1;f=a.indexOf("{",d)}c.push(new b(a.substring(d)));this._templateComponents=c}var g={NUL:{first:"",sep:",",named:!1,ifemp:"",allow:"U"},"+":{first:"",sep:",",named:!1,ifemp:"",allow:"U+R"},".":{first:".",sep:",",named:!1,ifemp:"",allow:"U"},"/":{first:"/",sep:"/",named:!1,ifemp:"",
allow:"U"},";":{first:";",sep:";",named:!0,ifemp:"",allow:"U"},"?":{first:"?",sep:"&",named:!0,ifemp:"=",allow:"U"},"&":{first:"&",sep:"&",named:!0,ifemp:"=",allow:"U"},"#":{first:"#",sep:",",named:!1,ifemp:"",allow:"U+R"},",":{first:"",sep:",",named:!1,ifemp:"",allow:"U+R-,"}},h=/^((?:(?:[a-zA-Z0-9_])|(?:%[0-9A-F][0-9A-F]))(?:(?:[a-zA-Z0-9_.])|(?:%[0-9A-F][0-9A-F]))*)(?:(\*)|:([0-9]+))?$/;b.prototype={expand:function(){return encodeURI(this._text)}};e.prototype={expand:function(b){for(var e=[],f=
0;f<this._varSpecList.length;f++){var g=this._varSpecList[f],h=g.name,n=b[h],o=typeof n;if(o!=="undefined"&&n!==null){var p=e.length===0?this._operator.first:this._operator.sep;if(o==="string")this._operator.named&&(p+=d(h,"U+R"),p+=n.length===0?this._operator.ifemp:"="),g.prefix!==-1&&g.prefix<n.length&&(n=n.substring(0,g.prefix)),p+=d(n,this._operator.allow);else if(Array.isArray(n))g.explode?p+=a(n,this._operator.allow,this._operator.sep):(this._operator.named&&(p+=d(h,"U+R"),p+=n.length===0?this._operator.ifemp:
"="),p+=a(n,this._operator.allow,","));else if(o==="object")g.explode?p+=c(n,this._operator.allow,"=",this._operator.sep):(this._operator.named&&(p+=d(h,"U+R"),p+=Object.keys(n).length===0?this._operator.ifemp:"="),p+=c(n,this._operator.allow,",",","));else throw Error("bad param type: "+h+" : "+o);e.push(p)}}return e.join("")}};f.prototype={expand:function(a){for(var b=[],c=0;c<this._templateComponents.length;c++)b.push(this._templateComponents[c].expand(a));return b.join("")}};return f});
define("text!orion/widgets/templates/OpenResourceDialog.html",[],function(){return'<div class="dijitDialog" tabindex="-1" waiRole="dialog" title="${title}" waiState="labelledby-${id}_title">\n\t<div dojoAttachPoint="titleBar" class="dijitDialogTitleBar">\n\t\t<span dojoAttachPoint="titleNode" class="dijitDialogTitle" id="${id}_title"></span>\n\t\t<span dojoAttachPoint="closeButtonNode" class="dijitDialogCloseIcon" dojoAttachEvent="onclick: onCancel" title="${buttonCancel}">\n\t\t\t<span dojoAttachPoint="closeText" class="closeText" title="${buttonCancel}">x</span>\n\t\t</span>\n\t</div>\n\t<div dojoAttachPoint="containerNode" class="dijitDialogPaneContent">\n\t\t<div style="display:table" role="search">\n\t\t\t<div style="display:table-row">\n\t\t\t\t<div style="display:table-cell; padding:5;">\n\t\t\t\t\t<label for="findfileSearchBox" style="padding-right:10">${selectFile}</label>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div style="display:table-row">\n\t\t\t\t<div style="display:table-cell; padding:5;">\n\t\t\t\t\t<input id="findfileSearchBox" type="text" dojoType="dijit.form.TextBox" dojoAttachPoint="resourceName" \n\t\t\t\t\t\tplaceHolder="${searchPlaceHolder}"\n\t\t\t\t\t\tintermediateChanges="true" style="width:30em;">\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div style="display:table-row">\n\t\t\t\t<div dojoAttachPoint="favresults" style="max-height:400px; height:auto; overflow-y:auto;"></div>\n\t\t\t</div>\n\t\t\t<div style="display:table-row">\n\t\t\t\t<div dojoAttachPoint="results" style="max-height:400px; height:auto; overflow-y:auto;" aria-live="off"></div>\n\t\t\t</div>\n\t\t\t<div style="display:table-row">\n\t\t\t\t<div dojoAttachPoint="statusbar" style="display:table-cell;"></div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>'});
define("orion/widgets/OpenResourceDialog","i18n!orion/widgets/nls/messages,require,dojo,dijit,dijit/Dialog,dijit/form/TextBox,orion/widgets/_OrionDialogMixin,text!orion/widgets/templates/OpenResourceDialog.html".split(","),function(b,d,a,c){return a.declare("orion.widgets.OpenResourceDialog",[c.Dialog,orion.widgets._OrionDialogMixin],{widgetsInTemplate:!0,templateString:a.cache("orion","widgets/templates/OpenResourceDialog.html"),SEARCH_DELAY:500,timeoutId:null,time:null,options:null,searcher:null,
searchRenderer:null,favService:null,constructor:function(){this.inherited(arguments);this.timeoutId=null;this.time=0;this.searcher=(this.options=arguments[0])&&this.options.searcher;if(!this.searcher)throw Error("Missing required argument: searcher");this.searchRenderer=this.options&&this.options.searchRenderer;if(!this.searchRenderer||typeof this.searchRenderer.makeRenderFunction!=="function")throw Error(b["Missing required argument: searchRenderer"]);this.favService=this.options.favoriteService;
if(!this.favService)throw Error(b["Missing required argument: favService"]);},postMixInProperties:function(){this.options.title=this.options.title||b["Find File Named"];this.selectFile=b["Type the name of a file to open (? = any character, * = any string):"];this.searchPlaceHolder=b.Search;this.inherited(arguments)},postCreate:function(){this.inherited(arguments);a.connect(this.resourceName,"onChange",this,function(){this.time=+new Date;clearTimeout(this.timeoutId);this.timeoutId=setTimeout(a.hitch(this,
this.checkSearch),0)});a.connect(this.resourceName,"onKeyPress",this,function(b){b.keyCode===a.keys.ENTER&&this.results&&(b=a.query("a",this.results),b.length>0&&(window.open(b[0].href),this.hide()))});a.connect(this,"onKeyPress",this,function(b){var d,g,h,i,j;if(b.keyCode===a.keys.DOWN_ARROW||b.keyCode===a.keys.UP_ARROW)g=a.query("a",this.results),d=a.query("a",this.favresults),h=c.getFocus(),j=g.indexOf(h.node),i=d.indexOf(h.node),b.keyCode===a.keys.DOWN_ARROW?i>=0?c.focus(i<d.length-1?d[i+1]:g.length>
0?g[0]:d[0]):j>=0?c.focus(j<g.length-1?g[j+1]:d.length>0?d[0]:g[0]):(g.length>0||d.length>0)&&c.focus(-1<d.length-1?d[0]:g[0]):i>=0?(h=this.resourceName&&this.resourceName.get("textbox"),c.focus(i>0?d[i-1]:h)):j>=0?(h=this.resourceName&&this.resourceName.get("textbox"),c.focus(j>0?g[j-1]:d.length>0?d[d.length-1]:h)):g.length>0?c.focus(g[g.length-1]):d.length>0&&c.focus(d[d.length-1]),a.stopEvent(b)});a.connect(this,"onMouseUp",function(a){a.target.focus()});this.populateFavorites()},populateFavorites:function(){a.place("<div>"+
b["Populating favorites&#x2026;"]+"</div>",this.favresults,"only");this.favService.getFavorites().then(this.showFavorites());this.favService.addEventListener("favoritesChanged",this.showFavorites())},showFavorites:function(){var b=this;return function(c){if(c.navigator)c=c.navigator;b.searchRenderer.makeRenderFunction(b.favresults,!1,a.hitch(b,b.decorateResult),b.showFavoritesImage)(c);c&&c.length>0&&a.place("<hr/>",b.favresults,"last")}},showFavoritesImage:function(c){var f=new Image;a.addClass(f,
"modelDecorationSprite");a.addClass(f,"core-sprite-makeFavorite");f.src=d.toUrl("images/none.png");f.title=b.Favorite;c.appendChild(f);a.style(f,"verticalAlign","middle")},checkSearch:function(){clearTimeout(this.timeoutId);var b=(new Date).getTime();b-this.time>this.SEARCH_DELAY?(this.time=b,this.doSearch()):this.timeoutId=setTimeout(a.hitch(this,"checkSearch"),50)},doSearch:function(){var c=this.resourceName&&this.resourceName.get("value"),d=this.showFavorites();this.favService.queryFavorites(c).then(function(a){d(a)});
if(c){a.place("<div>"+b["Searching&#x2026;"]+"</div>",this.results,"only");var g=this;setTimeout(function(){var b=g.searcher.createSearchQuery(null,c,"NameLower"),d=g.searchRenderer.makeRenderFunction(g.results,!1,a.hitch(g,g.decorateResult));g.searcher.search(b,!1,d)},0)}},decorateResult:function(b){var c=this;a.query("a",b).forEach(function(b){a.connect(b,"onmouseup",function(b){!a.mouseButtons.isMiddle(b)&&!a.isCopyKey(b)&&c.hide()});a.connect(b,"onkeyup",c,function(b){b.keyCode===a.keys.ENTER&&
c.hide()})})},show:function(){this.inherited(arguments);this.resourceName.focus()},onHide:function(){clearTimeout(this.timeoutId);this.inherited(arguments)}})});
define("orion/widgets/UserMenu","i18n!orion/widgets/nls/messages,require,dojo,dijit,orion/commands,orion/util,dijit/Menu".split(","),function(b,d,a,c,e){a.declare("orion.widgets.UserMenu",[c.Menu],{widgetsInTemplate:!1,id:"userMenu",templateString:'<table role="menu" tabIndex="${tabIndex}" dojoAttachEvent="onkeypress:_onKeyPress" cellspacing="0"><tbody class="dijitReset" dojoAttachPoint="containerNode"></tbody></table>',label:b.test,postCreate:function(){this.inherited(arguments);a.style(this.domNode,
"border-radius","3px");a.style(this.domNode,"border","1px solid #DDD")},constructor:function(){this.inherited(arguments);this.options=arguments[0]||{};this.authenticatedServices={};this.unauthenticatedServices={}},isSingleService:function(){return this.length(this.unauthenticatedServices)+this.length(this.authenticatedServices)===1},hasServices:function(){return this.length(this.unauthenticatedServices)+this.length(this.authenticatedServices)>0},length:function(a){var b=0,c;for(c in a)a.hasOwnProperty(c)&&
b++;return b},_renderAuthenticatedService:function(c,d,h){var i=this;(d=this.authenticatedServices[c].authService)&&d.logout&&this.addChild(new e.CommandMenuItem({label:h?b["Sign Out "]+h:b["Sign Out"],onClick:a.hitch(this,function(b,c){return function(){b.logout().then(a.hitch(i,function(){this.addUserItem(c,b,this.authenticatedServices[c].label);localStorage.removeItem(c);for(var a=0,d=localStorage.length;a<d;a++){var e=localStorage.key(a);e&&e.indexOf("/orion/preferences/user")===0&&localStorage.removeItem(e)}b.getAuthForm(window.location.href).then(function(a){window.location=
a})}))}})(d,c)}))},_renderUnauthenticatedService:function(c,d,h){var i=this,j=this.unauthenticatedServices[c].authService;if(j)j.getAuthForm?a.hitch(i,function(a){j.getAuthForm(eclipse.globalCommandUtils.notifyAuthenticationSite).then(function(c){c+=c.indexOf("?")===-1?"?redirect="+eclipse.globalCommandUtils.notifyAuthenticationSite+"?key="+a:"&redirect="+eclipse.globalCommandUtils.notifyAuthenticationSite+"?key="+a;i.addChild(new e.CommandMenuItem({label:h?"<a target='_blank' href="+c+">"+b["Sign In To "]+
h+"</a>":"<a target='_blank' href="+c+">"+b["Sign In"]+"</a>",hasLink:!0}),d)})})(c):j.login&&this.addChild(new e.CommandMenuItem({label:h?"Sign In To "+h:"Sign In",onClick:a.hitch(i,function(a){return function(){a.login(eclipse.globalCommandUtils.notifyAuthenticationSite)}})(j)}),d);else{var k=this.unauthenticatedServices[c].SignInLocation;k+=k.indexOf("?")===-1?"?redirect="+eclipse.globalCommandUtils.notifyAuthenticationSite+"?key="+c:"&redirect="+eclipse.globalCommandUtils.notifyAuthenticationSite+
"?key="+c;this.addChild(new e.Command.MenuItem({label:h?"<a target='_blank' href="+k+">"+b["Sign In To "]+h+"</a>":"<a target='_blank' href="+k+">"+b["Sign In"]+"</a>",hasLink:!0}),d)}},renderServices:function(){for(var a=this.getChildren(),g=0;g<a.length;g++)this.removeChild(a[g]);this.addChild(new e.CommandMenuItem({label:"<a href="+d.toUrl("help/index.jsp")+">"+b.Help+"</a>",hasLink:!0}));this.keyAssistFunction&&this.addChild(new e.CommandMenuItem({label:b["Keyboard Shortcuts"],onClick:this.keyAssistFunction}));
this.addChild(new c.MenuSeparator);this.addChild(new e.CommandMenuItem({label:"<a href="+d.toUrl("settings/settings.html")+">"+b.Settings+"</a>",hasLink:!0}));if(this.isSingleService())for(g in this.authenticatedServices)this._renderAuthenticatedService(g,0)},getUserLabel:function(a){if(a.data){var b=a.data.Name&&a.data.Name.replace(/^\s+|\s+$/g,"")!==""?a.data.Name:a.data.login;b.length>40&&(b=b.substring(0,30)+"...");b+=" ("+a.label+")";return b}else return a.label},setUserName:function(){},setKeyAssist:function(a){this.keyAssistFunction=
a;this.renderServices()},addUserItem:function(f,g,h,i){var j=this;i?(this.unauthenticatedServices[f]&&delete this.unauthenticatedServices[f],this.authenticatedServices[f]={authService:g,label:h,data:i}):(this.authenticatedServices[f]&&delete this.authenticatedServices[f],this.unauthenticatedServices[f]=this.unauthenticatedServices[f]?{authService:g,label:h,pending:this.unauthenticatedServices[f].pending}:{authService:g,label:h});a.hitch(this,this.renderServices)();if(a.byId("userInfo"))if(this.isSingleService()&&
i)h=f=i.Name&&i.Name.replace(/^\s+|\s+$/g,"")!==""?i.Name:i.login,h.length>40&&(h=h.substring(0,30)+"..."),i=a.create("a",{innerHTML:h,href:d.toUrl("profile/user-profile.html")+"#"+i.Location,"aria-label":b["View profile of "]+f,style:"margin-right: 0px"},a.byId("userInfo"),"only"),new e.CommandTooltip({connectId:[i],label:b["View profile of "]+f,position:["above","left","right","below"]});else if(this.isSingleService()&&!i)if(g.getAuthForm)a.hitch(this,function(c){g.getAuthForm(eclipse.globalCommandUtils.notifyAuthenticationSite).then(function(d){d+=
d.indexOf("?")===-1?"?redirect="+eclipse.globalCommandUtils.notifyAuthenticationSite+"?key="+c:"&redirect="+eclipse.globalCommandUtils.notifyAuthenticationSite+"?key="+c;a.create("a",{innerHTML:b["Sign In"],href:d,style:"margin-right: 0px",target:"_blank"},a.byId("userInfo"),"only")})})(f);else{if(g.login){var k=a.create("a",{innerHTML:b["Sign In"],style:"margin-right: 0px"},a.byId("userInfo"),"only");a.connect(k,"onmouseover",k,function(){k.style.cursor="pointer"});a.connect(k,"onmouseout",k,function(){k.style.cursor=
"default"});a.connect(k,"onclick",function(){g.login(eclipse.globalCommandUtils.notifyAuthenticationSite)})}}else this.hasServices()?(k=a.create("a",{innerHTML:b.Profiles,style:"margin-right: 0px"},a.byId("userInfo"),"only"),a.connect(k,"onmouseover",k,function(){k.style.cursor="pointer"}),a.connect(k,"onmouseout",k,function(){k.style.cursor="default"}),a.connect(k,"onclick",function(){try{c.popup.open({popup:j.options.loginDialog,around:a.byId("userInfo")})}catch(b){}c.focus(j.options.loginDialog.domNode)})):
a.empty(a.byId("userInfo"))}})});define("orion/widgets/UserMenuDropDown","require,dojo,dijit,orion/commands,orion/util,dijit/form/DropDownButton".split(","),function(b,d,a){d.declare("orion.widgets.UserMenuDropDown",[a.form.DropDownButton],{templateString:'<span class="dijit dijitReset dijitInline" style="padding-top: 3px;"><span class="primaryNav" dojoAttachEvent="ondijitclick:_onButtonClick" dojoAttachPoint="_buttonNode"><span class="dijitReset dijitStretch dijitButtonContents" dojoAttachPoint="focusNode,titleNode,_arrowWrapperNode"  role="button" aria-haspopup="true" aria-labelledby="${id}_label"><span class="dijitReset dijitInline dijitIcon" dojoAttachPoint="iconNode"></span><span class="dijitReset dijitInline dijitButtonText" dojoAttachPoint="containerNode,_popupStateNode" id="${id}_label" style="padding-right:3px"></span><span class="dijitReset dijitInline dijitArrowButtonInner"></span><span class="dijitReset dijitInline dijitArrowButtonChar">&#9660;</span></span></span><input ${!nameAttrSetting} type="${type}" value="${value}" class="dijitOffScreen" dojoAttachPoint="valueNode"/></span>'})});
define("gcli/nls/strings",["require","exports","module"],function(b,d){d.root={canonDescNone:"(No description)",cliEvalJavascript:"Enter JavaScript directly",fieldSelectionSelect:"Select a %S\u2026",fieldArrayAdd:"Add",fieldArrayDel:"Delete",jstypeParseScope:"Scope lost",jstypeParseMissing:"Can't find property '%S'",jstypeBeginSyntax:"Syntax error",jstypeBeginUnterm:"Unterminated string literal",jstypeParseError:"Error",typesNumberNan:'Can\'t convert "%S" to a number.',typesNumberMax:"%1$S is greater than maximum allowed: %2$S.",
typesNumberMin:"%1$S is smaller than minimum allowed: %2$S.",typesSelectionNomatch:"Can't use '%S'.",nodeParseSyntax:"Syntax error in CSS query",nodeParseMultiple:"Too many matches (%S)",nodeParseNone:"No matches",helpDesc:"Get help on the available commands",helpManual:"Provide help either on a specific command (if a search string is provided and an exact match is found) or on the available commands (if a search string is not provided, or if no exact match is found).",helpSearchDesc:"Search string",
helpSearchManual:"A search string to use in narrowing down the list of commands that are displayed to the user. Any part of the command name can match, regular expressions are not supported.",helpManSynopsis:"Synopsis",helpManDescription:"Description",helpManParameters:"Parameters",helpManNone:"None"}});
define("gcli/l10n",["require","exports","module"],function(b,d){function a(a,b){return a.replace(/\{[^}]*\}/g,function(a){a=a.slice(1,-1);if(b==null)return console.log("Missing swaps while looking up '"+a+"'"),"";var c=b[a];c==null&&(console.log("Can't find '"+a+"' in "+JSON.stringify(b)),c="");return c})}function c(a,b){var c=0,a=a.replace(/%S/g,function(){return b[c++]});return a=a.replace(/%([0-9])\$S/g,function(a,c){return b[c-1]})}function e(){if(!h){var a=navigator.language||navigator.userLanguage;
g.some(function(b){return b.locales.indexOf(a)!==-1?(h=b,!0):!1});h||(console.error("Failed to find plural rule for "+a),h=g[0])}return h}var f={};d.registerStringsSource=function(a){var c=b(a).root;Object.keys(c).forEach(function(b){f[b]?console.error("Key '"+b+"' (loaded from "+a+") already exists. Ignoring."):f[b]=c[b]},this)};d.unregisterStringsSource=function(a){a=b(a).root;Object.keys(a).forEach(function(a){delete f[a]},this)};d.getPreferredLocales=function(){var a=(navigator.language||navigator.userLanguage).toLowerCase().split("-"),
b=a.map(function(b,c){return a.slice(0,a.length-c).join("-")});b.push("root");return b};d.lookup=function(a){var b=f[a];if(!b)throw Error("No i18n key: "+a);return b};if(typeof Proxy!=="undefined")d.propertyLookup=Proxy.create({get:function(a,b){return d.lookup(b)}});d.lookupSwap=function(b,c){var e=d.lookup(b);return a(e,c)};d.lookupFormat=function(a,b){var e=d.lookup(a);return c(e,b)};d.lookupPlural=function(b,c,f){var g=e().get(c),b=d.lookup(b)[g],f=f||{};f.ord=c;return a(b,f)};var g=[{locales:"fa,fa-ir,id,ja,ja-jp-mac,ka,ko,ko-kr,th,th-th,tr,tr-tr,zh,zh-tw,zh-cn".split(","),
numForms:1,get:function(){return 0}},{locales:"af,af-za,as,ast,bg,br,bs,bs-ba,ca,cy,cy-gb,da,de,de-de,de-ch,en,en-gb,en-us,en-za,el,el-gr,eo,es,es-es,es-ar,es-cl,es-mx,et,et-ee,eu,fi,fi-fi,fy,fy-nl,gl,gl-gl,he,hu,hu-hu,hy,hy-am,it,it-it,kk,ku,lg,mai,ml,ml-in,mn,nb,nb-no,no,no-no,nl,nn,nn-no,no,no-no,nb,nb-no,nso,nso-za,pa,pa-in,pt,pt-pt,rm,rm-ch,si,si-lk,son,son-ml,sq,sq-al,sv,sv-se,vi,vi-vn,zu,zu-za".split(","),numForms:2,get:function(a){return a!=1?1:0}},{locales:"ak,ak-gh,bn,bn-in,bn-bd,fr,fr-fr,gu,gu-in,kn,kn-in,mr,mr-in,oc,oc-oc,or,or-in,pt-br,ta,ta-in,ta-lk,te,te-in".split(","),
numForms:2,get:function(a){return a>1?1:0}},{locales:["lv"],numForms:3,get:function(a){return a%10==1&&a%100!=11?1:a!=0?2:0}},{locales:["gd","gd-gb"],numForms:4,get:function(a){return a==1||a==11?0:a==2||a==12?1:a>0&&a<20?2:3}},{locales:["ro","ro-ro"],numForms:3,get:function(a){return a==1?0:a==0||a%100>0&&a%100<20?1:2}},{locales:["lt"],numForms:3,get:function(a){return a%10==1&&a%100!=11?0:a%10>=2&&(a%100<10||a%100>=20)?2:1}},{locales:"be,be-by,hr,hr-hr,ru,ru-ru,sr,sr-rs,sr-cs,uk".split(","),numForms:3,
get:function(a){return a%10==1&&a%100!=11?0:a%10>=2&&a%10<=4&&(a%100<10||a%100>=20)?1:2}},{locales:["cs","sk"],numForms:3,get:function(a){return a==1?0:a>=2&&a<=4?1:2}},{locales:["pl"],numForms:3,get:function(a){return a==1?0:a%10>=2&&a%10<=4&&(a%100<10||a%100>=20)?1:2}},{locales:["sl"],numForms:4,get:function(a){return a%100==1?0:a%100==2?1:a%100==3||a%100==4?2:3}},{locales:["ga-ie","ga-ie","ga","en-ie"],numForms:5,get:function(a){return a==1?0:a==2?1:a>=3&&a<=6?2:a>=7&&a<=10?3:4}},{locales:["ar"],
numForms:6,get:function(a){return a==0?5:a==1?0:a==2?1:a%100>=3&&a%100<=10?2:a%100>=11&&a%100<=99?3:4}},{locales:["mt"],numForms:4,get:function(a){return a==1?0:a==0||a%100>0&&a%100<=10?1:a%100>10&&a%100<20?2:3}},{locales:["mk","mk-mk"],numForms:3,get:function(a){return a%10==1?0:a%10==2?1:2}},{locales:["is"],numForms:2,get:function(a){return a%10==1&&a%100!=11?0:1}}],h});
define("gcli/host",["require","exports","module"],function(b,d){d.flashNode=function(a,b){if(!a.__gcliHighlighting){a.__gcliHighlighting=!0;var d=a.style.background;a.style.background=b;setTimeout(function(){a.style.background=d;delete a.__gcliHighlighting},1E3)}}});
define("gcli/promise",["require","exports","module"],function(b,d){function a(){this._status=a.PENDING;this._value=void 0;this._onSuccessHandlers=[];this._onErrorHandlers=[];this._id=a._nextId++;a._outstanding[this._id]=this}a._nextId=0;a._outstanding=[];a._recent=[];a.ERROR=-1;a.PENDING=0;a.SUCCESS=1;a.prototype.isPromise=!0;a.prototype.isComplete=function(){return this._status!=a.PENDING};a.prototype.isResolved=function(){return this._status==a.SUCCESS};a.prototype.isRejected=function(){return this._status==
a.ERROR};a.prototype.then=function(b,d){typeof b==="function"&&(this._status===a.SUCCESS?b.call(null,this._value):this._status===a.PENDING&&this._onSuccessHandlers.push(b));typeof d==="function"&&(this._status===a.ERROR?d.call(null,this._value):this._status===a.PENDING&&this._onErrorHandlers.push(d));return this};a.prototype.chainPromise=function(b){var d=new a;d._chainedFrom=this;this.then(function(a){try{d.resolve(b(a))}catch(g){d.reject(g)}},function(a){d.reject(a)});return d};a.prototype.resolve=
function(b){return this._complete(this._onSuccessHandlers,a.SUCCESS,b,"resolve")};a.prototype.reject=function(b){return this._complete(this._onErrorHandlers,a.ERROR,b,"reject")};a.prototype._complete=function(b,d,f){if(this._status!=a.PENDING)throw Error("Promise already complete");this._status=d;this._value=f;b.forEach(function(a){a.call(null,this._value)},this);delete this._onSuccessHandlers;delete this._onErrorHandlers;delete a._outstanding[this._id];for(a._recent.push(this);a._recent.length>20;)a._recent.shift();
return this};a.group=function(b){Array.isArray(b)||(b=Array.prototype.slice.call(arguments));if(b.length===0)return(new a).resolve([]);var d=new a,f=[],g=0,h=function(h){return function(j){f[h]=j;g++;d._status!==a.ERROR&&g===b.length&&d.resolve(f)}};b.forEach(function(a,b){var c=h(b),f=d.reject.bind(d);a.then(c,f)});return d};d.Promise=a});define("text!gcli/ui/arg_fetch.css",[],function(){return"\n.gcli-argfetch {\n  width: 100%;\n  -moz-box-sizing: border-box;\n}\n\n.gcli-af-cmddesc {\n  font-weight: bold;\n  text-align: center;\n  margin-bottom: 5px;\n  padding: 3px 10px 0;\n}\n\n.gcli-af-params {\n  padding: 0 10px;\n  width: 100%;\n  -moz-box-sizing: border-box;\n}\n\n.gcli-af-paramname {\n  text-align: right;\n  font-size: 90%;\n}\n\n.gcli-af-required {\n  font-size: 90%;\n  color: #f66;\n  -moz-padding-start: 5px;\n  -webkit-padding-start: 5px;\n}\n\n.gcli-af-error {\n  font-size: 80%;\n  color: #900;\n}\n\n.gcli-af-submit {\n  text-align: right;\n}\n\n.gcli-field {\n  width: 100%;\n}\n\n.gcli-field-javascript {\n  margin-bottom: 0;\n}"});
define("text!gcli/ui/arg_fetch.html",[],function(){return'\n<\!--\nTemplate for an Assignment.\nEvaluated each time the commandAssignment changes\n--\>\n<div class="gcli-af-template" aria-live="polite">\n  <div>\n    <div class="gcli-af-cmddesc">\n      ${requisition.commandAssignment.getValue().description}\n    </div>\n    <table class="gcli-af-params">\n      <tbody foreach="assignment in ${requisition.getAssignments()}">\n        <\!-- Parameter --\>\n        <tr>\n          <td class="gcli-af-paramname">\n            <label for="gcliForm${assignment.param.name}">\n              ${assignment.param.description ? assignment.param.description + \':\' : \'\'}\n            </label>\n          </td>\n          <td>${getInputFor(assignment)}</td>\n          <td>\n            <span class="gcli-af-required" if="${assignment.param.isDataRequired()}">*</span>\n          </td>\n        </tr>\n        <tr>\n          <td class="gcli-af-error" colspan="2">\n            ${linkMessageElement(assignment, __element)}\n          </td>\n        </tr>\n      </tbody>\n      <tfoot>\n        <tr>\n          <td colspan="3" class="gcli-af-submit">\n            <input type="submit" value="Cancel" onclick="${onFormCancel}"/>\n            <input type="submit" value="OK" onclick="${onFormOk}" save="${okElement}"/>\n          </td>\n        </tr>\n      </tfoot>\n    </table>\n  </div>\n</div>'});
define("text!gcli/ui/command_output_view.css",[],function(){return"\n.gcli-row-in {\n  margin: 5px;\n  color: #333;\n  background-color: #EEE;\n  padding: 3px 8px 1px 1px;\n  border: 1px solid #aaa;\n  border-radius: 4px;\n}\n\n.gcli-row-in > img {\n  cursor: pointer;\n}\n\n.gcli-row-hover {\n  display: none;\n  float: right;\n  padding: 2px 2px 0;\n}\n\n.gcli-row-in:hover > .gcli-row-hover {\n  display: inline;\n}\n\n.gcli-row-in:hover > .gcli-row-hover.gcli-row-hidden {\n  display: none;\n}\n\n.gcli-row-in-typed {\n  color: #000;\n  font-family: consolas, courier, monospace;\n}\n\n.gcli-row-prompt {\n  font-family: consolas, courier, monospace;\n  color: #00F;\n  font-weight: bold;\n  font-size: 120%;\n  padding-left: 2px;\n}\n\n.gcli-row-prompt.gcli-row-complete {\n  color: #060;\n}\n\n.gcli-row-prompt.gcli-row-error {\n  color: #F00;\n}\n\n.gcli-row-duration {\n  font-size: 80%;\n}\n\n.gcli-row-out {\n  padding-left: 10px;\n  line-height: 1.2em;\n  font-size: 95%;\n  margin-bottom: 20px;\n}\n\n.gcli-row-out strong,\n.gcli-row-out b,\n.gcli-row-out th,\n.gcli-row-out h1,\n.gcli-row-out h2,\n.gcli-row-out h3 {\n  color: #000;\n}\n\n.gcli-row-out a {\n  font-weight: bold;\n  color: #666;\n  text-decoration: none;\n}\n\n.gcli-row-out a:hover {\n  text-decoration: underline;\n  cursor: pointer;\n}\n\n.gcli-row-out input[type=password],\n.gcli-row-out input[type=text],\n.gcli-row-out textarea {\n  color: #000;\n  font-size: 120%;\n  background: transparent;\n  padding: 3px;\n  border-radius: 5px;\n}\n\n.gcli-row-out table,\n.gcli-row-out td,\n.gcli-row-out th {\n  border: 0;\n  padding: 0 2px;\n}"});
define("text!gcli/ui/command_output_view.html",[],function(){return'\n<div class="gcli-row">\n  <\!-- The div for the input (i.e. what was typed) --\>\n  <div class="gcli-row-in" save="${elems.rowin}" aria-live="assertive"\n      onclick="${copyToInput}" ondblclick="${execute}">\n\n    <\!-- What the user actually typed --\>\n    <span save="${elems.prompt}" class="gcli-row-prompt ${elems.error ? \'gcli-row-error\' : \'\'} ${elems.completed ? \'gcli-row-complete\' : \'\'}">&#x00BB;</span>\n    <span class="gcli-row-in-typed">${outputData.canonical}</span>\n\n    <\!-- The extra details that appear on hover --\>\n    <span class="gcli-row-duration gcli-row-hover" save="${elems.duration}"></span>\n    <\!--\n    <img class="gcli-row-hover" onclick="${hideOutput}" save="${elems.hide}"\n        alt="Hide command output" _src="${imageUrl(\'images/minus.png\')}"/>\n    <img class="gcli-row-hover gcli-row-hidden" onclick="${showOutput}" save="${elems.show}"\n        alt="Show command output" _src="${imageUrl(\'images/plus.png\')}"/>\n    <img class="gcli-row-hover" onclick="${remove}"\n        alt="Remove this command from the history"\n        _src="${imageUrl(\'images/closer.png\')}"/>\n    --\>\n    <img style="float:right;" _src="${imageUrl(\'images/throbber.gif\')}" save="${elems.throb}"/>\n  </div>\n\n  <\!-- The div for the command output --\>\n  <div aria-live="assertive" save="${elems.rowout}">\n    <div class="gcli-row-out" save="${elems.output}"></div>\n  </div>\n</div>'});
define("gcli/ui/domtemplate",["require","exports","module"],function(b,d){function a(a){a==null&&(a={allowEval:!0});this.options=a;this.stack=Array.isArray(a.stack)?a.stack:typeof a.stack==="string"?[a.stack]:[]}a.prototype._templateRegion=/\$\{([^}]*)\}/g;a.prototype._splitSpecial=/\uF001|\uF002/;a.prototype._isPropertyScript=/^[a-zA-Z0-9.]*$/;a.prototype.processNode=function(a,b){typeof a==="string"&&(a=document.getElementById(a));b==null&&(b={});this.stack.push(a.nodeName+(a.id?"#"+a.id:""));try{if(a.attributes&&
a.attributes.length){if(a.hasAttribute("foreach")){this._processForEach(a,b);return}if(a.hasAttribute("if")&&!this._processIf(a,b))return;b.__element=a;for(var d=Array.prototype.slice.call(a.attributes),g=0;g<d.length;g++){var h=d[g].value,i=d[g].name;this.stack.push(i);try{if(i==="save")h=this._stripBraces(h),this._property(h,b,a),a.removeAttribute("save");else if(i.substring(0,2)==="on"){var h=this._stripBraces(h),j=this._property(h,b);typeof j!=="function"&&this._handleError("Expected "+h+" to resolve to a function, but got "+
typeof j);a.removeAttribute(i);var k=a.hasAttribute("capture"+i.substring(2));a.addEventListener(i.substring(2),j,k);k&&a.removeAttribute("capture"+i.substring(2))}else{var l=h.replace(this._templateRegion,function(a){return this._envEval(a.slice(2,-1),b,h)}.bind(this));if(i.charAt(0)==="_")a.removeAttribute(i),a.setAttribute(i.substring(1),l);else if(h!==l)d[g].value=l}}finally{this.stack.pop()}}}for(var m=Array.prototype.slice.call(a.childNodes),d=0;d<m.length;d++)this.processNode(m[d],b);a.nodeType===
3&&this._processTextNode(a,b)}finally{delete b.__element,this.stack.pop()}};a.prototype._processIf=function(a,b){this.stack.push("if");try{var d=a.getAttribute("if"),g=this._stripBraces(d),h=!0;try{h=!!this._envEval(g,b,d)}catch(i){this._handleError("Error with '"+g+"'",i),h=!1}h||a.parentNode.removeChild(a);a.removeAttribute("if");return h}finally{this.stack.pop()}};a.prototype._processForEach=function(a,b){this.stack.push("foreach");try{var d=a.getAttribute("foreach"),g=d,h="param";if(g.charAt(0)===
"$")g=this._stripBraces(g);else var i=g.split(" in "),h=i[0].trim(),g=this._stripBraces(i[1].trim());a.removeAttribute("foreach");try{this._handleAsync(this._envEval(g,b,d),a,function(d,f){this._processForEachLoop(d,a,f,b,h)}.bind(this)),a.parentNode.removeChild(a)}catch(j){this._handleError("Error with '"+g+"'",j)}}finally{this.stack.pop()}};a.prototype._processForEachLoop=function(a,b,d,g,h){if(Array.isArray(a))a.forEach(function(a,c){this._processForEachMember(a,b,d,g,h,""+c)},this);else for(var i in a)a.hasOwnProperty(i)&&
this._processForEachMember(i,b,d,g,h,i)};a.prototype._processForEachMember=function(a,b,d,g,h,i){this.stack.push(i);try{this._handleAsync(a,d,function(a,c){g[h]=a;if(b.nodeName.toLowerCase()==="loop")for(var d=0;d<b.childNodes.length;d++){var f=b.childNodes[d].cloneNode(!0);c.parentNode.insertBefore(f,c);this.processNode(f,g)}else f=b.cloneNode(!0),f.removeAttribute("foreach"),c.parentNode.insertBefore(f,c),this.processNode(f,g);delete g[h]}.bind(this))}finally{this.stack.pop()}};a.prototype._processTextNode=
function(a,b){var d=a.data,d=d.replace(this._templateRegion,"\uf001$$$1\uf002"),d=d.split(this._splitSpecial);d.length>1&&(d.forEach(function(d){d===null||d===void 0||d===""||(d.charAt(0)==="$"&&(d=this._envEval(d.slice(1),b,a.data)),this._handleAsync(d,a,function(a,b){var c=b.ownerDocument;a==null&&(a=""+a);if(typeof a.cloneNode==="function")a=this._maybeImportNode(a,c),b.parentNode.insertBefore(a,b);else if(typeof a.item==="function"&&a.length)for(var d=0;d<a.length;d++){var e=this._maybeImportNode(a.item(d),
c);b.parentNode.insertBefore(e,b)}else a=c.createTextNode(a.toString()),b.parentNode.insertBefore(a,b)}.bind(this)))},this),a.parentNode.removeChild(a))};a.prototype._maybeImportNode=function(a,b){return a.ownerDocument===b?a:b.importNode(a,!0)};a.prototype._handleAsync=function(a,b,d){if(a!=null&&typeof a.then==="function"){var g=b.ownerDocument.createElement("span");b.parentNode.insertBefore(g,b);a.then(function(a){d(a,g);g.parentNode.removeChild(g)}.bind(this))}else d(a,b)};a.prototype._stripBraces=
function(a){return!a.match(this._templateRegion)?(this._handleError("Expected "+a+" to match ${...}"),a):a.slice(2,-1)};a.prototype._property=function(a,b,d){typeof a==="string"&&(a=a.split("."));var g=b[a[0]];if(a.length===1)return d!==void 0&&(b[a[0]]=d),typeof g==="function"?g.bind(b):g;return!g?(this._handleError('"'+a[0]+'" is undefined'),null):this._property(a.slice(1),g,d)};a.prototype._envEval=function(a,b,d){try{if(this.stack.push(d.replace(/\s+/g," ")),this._isPropertyScript.test(a))return this._property(a,
b);else{if(!this.options.allowEval)return this._handleError("allowEval is not set, however '"+a+"' can not be resolved using a simple property path."),"${"+a+"}";with(b)return eval(a)}}catch(g){return this._handleError("Template error evaluating '"+a+"' environment="+Object.keys(b).join(", "),g),"${"+a+"}"}finally{this.stack.pop()}};a.prototype._handleError=function(a,b){this._logError(a+" (In: "+this.stack.join(" > ")+")");b&&this._logError(b)};a.prototype._logError=function(a){console.log(a)};d.Templater=
a;d.template=function(b,d,f){f=new a(f||{});f.processNode(b,d);return f}});
define("gcli/history",["require","exports","module"],function(b,d){function a(){this._buffer=[""];this._current=0}a.prototype.destroy=function(){};a.prototype.add=function(a){this._buffer.splice(1,0,a);this._current=0};a.prototype.forward=function(){this._current>0&&this._current--;return this._buffer[this._current]};a.prototype.backward=function(){this._current<this._buffer.length-1&&this._current++;return this._buffer[this._current]};d.History=a});define("text!gcli/ui/completer.html",[],function(){return'\n<div>\n  <span class="gcli-prompt">${completionPrompt} </span>\n  <loop foreach="member in ${statusMarkup}">\n    <span class="${member.className}">${member.string}</span>\n  </loop>\n  <span class="gcli-in-ontab">${tabText}</span>\n  <span foreach="param in ${emptyParameters}">\n    [<span title="${param.description}">${param.name}</span>]\n  </span>\n  <span class="gcli-in-closebrace" if="${unclosedJs}">}</span>\n  <div class="gcli-in-scratchlink" if="${scratchLink}">${scratchLink}</div>\n</div>'});
define("text!gcli/ui/inputter.css",[],function(){return"\n.gcli-in-complete {\n  position: absolute;\n  z-index: -1000;\n  border: 1px transparent solid;\n  padding: 1px 1px 1px 2px;\n  color: #DDD;\n}\n\n.gcli-in-incomplete {\n  border-bottom: 2px dotted #999;\n}\n\n.gcli-in-error {\n  border-bottom: 2px dotted #F00;\n}\n\n.gcli-in-ontab {\n  color: #999;\n}\n\n.gcli-in-closebrace {\n  color: #999;\n}\n\n.gcli-prompt {\n  color: #66F;\n  font-weight: bold;\n}\n\n.gcli-in-scratchlink {\n  float: right;\n  font-size: 85%;\n  color: #888;\n  padding-right: 10px;\n}"});
define("text!gcli/ui/display.css",[],function(){return"\n#gcli-display.gcli-display-autohide {\n  z-index: 999;\n}\n\n.gcli-display-hint {\n  border: 1px solid #AAA;\n  border-top-right-radius: 5px;\n  border-top-left-radius: 5px;\n  border-bottom: 2px solid #fff;\n  margin: 10px 10px -1px;\n  overflow-y: auto;\n  overflow-x: hidden;\n  z-index: 99;\n  position: absolute;\n  max-height: 100%;\n  width: 280px;\n  left: 0;\n  bottom: 0;\n}\n\n.gcli-display-output {\n  height: 100%;\n  margin-left: 300px;\n  overflow: auto;\n}\n\n.gcli-out-shortcut {\n  border: 1px solid #999;\n  border-radius: 3px;\n  padding: 0 4px;\n  margin: 0 4px;\n  font-size: 70%;\n  font-family: Consolas, Inconsolata, \"Courier New\", monospace;\n  color: #666;\n  cursor: pointer;\n  vertical-align: bottom;\n}\n\n.gcli-out-shortcut:before {\n  color: #66F;\n  content: '\\bb';\n  padding: 0 2px;\n}"});
define("text!gcli/ui/display.html",[],function(){return'\n<div class="gcli-display-hint">\n  ${menu.element}\n  ${argFetcher.element}\n</div>\n\n<div class="gcli-display-output" save="${outputList}">\n</div>'});
define("gcli/argument",["require","exports","module"],function(b,d){function a(a,b,c){a===void 0?this.suffix=this.prefix=this.text="":(this.text=a,this.prefix=b!==void 0?b:"",this.suffix=c!==void 0?c:"")}function c(a,b,c){this.text=a;this.prefix=b!==void 0?b:"";for(this.suffix=c!==void 0?c:"";this.text.charAt(0)===" ";)this.prefix+=" ",this.text=this.text.substring(1);for(;this.text.charAt(this.text.length-1)===" ";)this.suffix=" "+this.suffix,this.text=this.text.slice(0,-1)}function e(b,c,d){if(!Array.isArray(b))throw Error("args is not an array of Arguments");
this.args=c===void 0?b:b.slice(c,d);b=a.merge(this.args);this.text=b.text;this.prefix=b.prefix;this.suffix=b.suffix}function f(a,b){this.text=(this.arg=b)?b.text:"--"+a;this.prefix=b?b.prefix:" ";this.suffix=b?b.suffix:""}function g(){this.suffix=this.prefix=this.text=""}function h(a,b){this.nameArg=a;this.valueArg=b;this.text=b.text;this.prefix=a.toString()+b.prefix;this.suffix=b.suffix}function i(){this.args=[]}a.prototype.merge=function(b){return new a(this.text+this.suffix+b.prefix+b.text,this.prefix,
b.suffix)};a.prototype.beget=function(b,c){var d=this.prefix,e=this.suffix,f=b.indexOf(" ")>=0||b.length==0?"'":"";c&&(d=(c.prefixSpace?" ":"")+f,e=f);return new a(b,d,e)};a.prototype.isBlank=function(){return this.text===""&&this.prefix.trim()===""&&this.suffix.trim()===""};a.prototype.assign=function(a){this.assignment=a};a.prototype.getArgs=function(){return[this]};a.prototype.equals=function(b){return this===b?!0:b==null||!(b instanceof a)?!1:this.text===b.text&&this.prefix===b.prefix&&this.suffix===
b.suffix};a.prototype.toString=function(){return this.prefix+this.text+this.suffix};a.merge=function(a,b,c){for(var c=c===void 0?a.length:c,d,b=b===void 0?0:b;b<c;b++){var e=a[b];d=d?d.merge(e):e}return d};d.Argument=a;c.prototype=Object.create(a.prototype);c.prototype.beget=function(a,b){var d=this.prefix,e=this.suffix;a.indexOf(" ");b&&b.normalize&&(d="{ ",e=" }");return new c(a,d,e)};d.ScriptArgument=c;e.prototype=Object.create(a.prototype);e.prototype.assign=function(a){this.args.forEach(function(b){b.assign(a)},
this);this.assignment=a};e.prototype.getArgs=function(){return this.args};e.prototype.equals=function(a){return this===a?!0:a==null||!(a instanceof e)?!1:this.text===a.text&&this.prefix===a.prefix&&this.suffix===a.suffix};d.MergedArgument=e;f.prototype=Object.create(a.prototype);f.prototype.assign=function(a){this.arg&&this.arg.assign(a);this.assignment=a};f.prototype.getArgs=function(){return this.arg?[this,this.arg]:[this]};f.prototype.equals=function(a){return this===a?!0:a==null||!(a instanceof
f)?!1:this.text===a.text&&this.prefix===a.prefix&&this.suffix===a.suffix};d.TrueNamedArgument=f;g.prototype=Object.create(a.prototype);g.prototype.getArgs=function(){return[]};g.prototype.equals=function(a){return this===a?!0:a==null||!(a instanceof g)?!1:this.text===a.text&&this.prefix===a.prefix&&this.suffix===a.suffix};d.FalseNamedArgument=g;h.prototype=Object.create(a.prototype);h.prototype.assign=function(a){this.nameArg.assign(a);this.valueArg.assign(a);this.assignment=a};h.prototype.getArgs=
function(){return[this.nameArg,this.valueArg]};h.prototype.equals=function(a){return this===a?!0:a==null?!1:!(a instanceof h)?!1:this.text===a.text&&this.prefix===a.prefix&&this.suffix===a.suffix};d.NamedArgument=h;i.prototype=Object.create(a.prototype);i.prototype.addArgument=function(a){this.args.push(a)};i.prototype.addArguments=function(a){Array.prototype.push.apply(this.args,a)};i.prototype.getArguments=function(){return this.args};i.prototype.assign=function(a){this.args.forEach(function(b){b.assign(a)},
this);this.assignment=a};i.prototype.getArgs=function(){return this.args};i.prototype.equals=function(a){if(this===a)return!0;if(a==null)return!1;if(!(a instanceof i))return!1;if(this.args.length!==a.args.length)return!1;for(var b=0;b<this.args.length;b++)if(!this.args[b].equals(a.args[b]))return!1;return!0};i.prototype.toString=function(){return"{"+this.args.map(function(a){return a.toString()},this).join(",")+"}"};d.ArrayArgument=i});
define("gcli/types",["require","exports","module","gcli/argument"],function(b,d){function a(a,b,c,d,e){this.value=a;this.arg=b;if(b==null)throw Error("Missing arg");this._status=c||g.VALID;this.message=d;this.predictions=e}function c(a,b){this.arg=b;this.conversions=a;this.value=a.map(function(a){return a.value},this);this._status=g.combine(a.map(function(a){return a.getStatus()}));this.message="";this.predictions=[]}function e(){}var f=b("gcli/argument").Argument,g={VALID:{toString:function(){return"VALID"},
valueOf:function(){return 0}},INCOMPLETE:{toString:function(){return"INCOMPLETE"},valueOf:function(){return 1}},ERROR:{toString:function(){return"ERROR"},valueOf:function(){return 2}},combine:function(){for(var a=g.VALID,b=0;b<arguments.length;b++){var c=arguments[b];Array.isArray(c)&&(c=g.combine.apply(null,c));c>a&&(a=c)}return a}};d.Status=g;d.Conversion=a;a.prototype.assign=function(a){this.arg.assign(a)};a.prototype.isDataProvided=function(){var a=this.arg.text!=="";return this.value!==void 0||
a};a.prototype.equals=function(a){return this===a?!0:a==null?!1:this.valueEquals(a)&&this.argEquals(a)};a.prototype.valueEquals=function(a){return this.value===a.value};a.prototype.argEquals=function(a){return this.arg.equals(a.arg)};a.prototype.getStatus=function(){return this._status};a.prototype.toString=function(){return this.arg.toString()};a.prototype.getPredictions=function(){return typeof this.predictions==="function"?this.predictions():this.predictions||[]};c.prototype=Object.create(a.prototype);
c.prototype.assign=function(a){this.conversions.forEach(function(b){b.assign(a)},this);this.assignment=a};c.prototype.getStatus=function(a){return a&&a.conversion?a.conversion.getStatus():this._status};c.prototype.isDataProvided=function(){return this.conversions.length>0};c.prototype.valueEquals=function(a){if(!(a instanceof c))throw Error("Can't compare values with non ArrayConversion");if(this.value===a.value)return!0;if(this.value.length!==a.value.length)return!1;for(var b=0;b<this.conversions.length;b++)if(!this.conversions[b].valueEquals(a.conversions[b]))return!1;
return!0};c.prototype.toString=function(){return"[ "+this.conversions.map(function(a){return a.toString()},this).join(", ")+" ]"};d.ArrayConversion=c;e.prototype.stringify=function(){throw Error("Not implemented");};e.prototype.parse=function(){throw Error("Not implemented");};e.prototype.parseString=function(a){return this.parse(new f(a))};e.prototype.name=void 0;e.prototype.increment=function(){};e.prototype.decrement=function(){};e.prototype.getDefault=void 0;d.Type=e;var h={};d.getTypeNames=function(){return Object.keys(h)};
d.registerType=function(a){if(typeof a==="object")if(a instanceof e){if(!a.name)throw Error("All registered types must have a name");h[a.name]=a}else throw Error("Can't registerType using: "+a);else if(typeof a==="function"){if(!a.prototype.name)throw Error("All registered types must have a name");h[a.prototype.name]=a}else throw Error("Unknown type: "+a);};d.registerTypes=function(a){Object.keys(a).forEach(function(b){var c=a[b];c.name=b;a.registerType(c)})};d.deregisterType=function(a){delete h[a.name]};
d.getType=function(a){var b;if(typeof a==="string")return b=h[a],typeof b==="function"&&(b=new b({})),b;if(typeof a==="object"){if(!a.name)throw Error("Missing 'name' member to typeSpec");b=h[a.name];typeof b==="function"&&(b=new b(a));return b}throw Error("Can't extract type from "+a);}});
define("gcli/types/javascript",["require","exports","module","gcli/l10n","gcli/types"],function(b,d){var a,c;function e(a){if(Object.keys(a).length>0)throw Error("JavascriptType can not be customized");}function f(a){return a.indexOf("moz")===0||a.indexOf("webkit")===0||a.indexOf("ms")===0}var g=b("gcli/l10n"),h=b("gcli/types"),i=h.Conversion,j=h.Type,k=h.Status;d.startup=function(){h.registerType(e)};d.shutdown=function(){h.unregisterType(e)};var l;typeof window!=="undefined"&&(l=window);d.setGlobalObject=
function(a){l=a};d.getGlobalObject=function(){return l};d.unsetGlobalObject=function(){l=void 0};e.prototype=Object.create(j.prototype);e.prototype.stringify=function(a){return a==null?"":a};e.MAX_COMPLETION_MATCHES=10;e.prototype.parse=function(b){var d=b.text,h=l;if(!isNaN(parseFloat(d))&&isFinite(d))return new i(d,b);if(d.trim().match(/(null|undefined|NaN|Infinity|true|false)/))return new i(d,b);var j=this._findCompletionBeginning(d);if(j.err)return new i(d,b,k.ERROR,j.err);if(j.state===a)return new i(d,
b);if(j.state!==c)return new i(d,b,k.INCOMPLETE,"");var j=d.substring(j.startPos).split("."),m,n;if(j.length>1){m=j.pop().trimLeft();for(var o=0;o<j.length;o++){n=j[o].trim();if(h==null)return new i(d,b,k.ERROR,g.lookup("jstypeParseScope"));if(n==="")return new i(d,b,k.INCOMPLETE,"");if(this._isSafeProperty(h,n))return new i(d,b);try{h=h[n]}catch(p){return new i(d,b,k.VALID,"")}}}else m=j[0].trimLeft();if(n&&!n.match(/^[0-9A-Za-z]*$/))return new i(d,b);if(h==null)return new i(d,b,k.ERROR,g.lookupFormat("jstypeParseMissing",
[n]));if(!m.match(/^[0-9A-Za-z]*$/))return new i(d,b);if(this._isIteratorOrGenerator(h))return null;n=m.length;var z=n===0?d:d.slice(0,-n),v=k.INCOMPLETE;n="";var u={},y=0,j=h;try{for(;j!=null&&Object.keys(u).length<e.MAX_COMPLETION_MATCHES;)Object.keys(j).forEach(function(a){a.indexOf(m)===0&&!(a in u)&&(u[a]={prop:a,distUpPrototypeChain:y})}),y++,j=Object.getPrototypeOf(j)}catch(G){return new i(d,b,k.INCOMPLETE,"")}u=Object.keys(u).map(function(a){if(a===m)v=k.VALID;return u[a]});u.sort(function(a,
b){return a.distUpPrototypeChain!==b.distUpPrototypeChain?a.distUpPrototypeChain-b.distUpPrototypeChain:f(a.prop)?f(b.prop)?a.prop.localeCompare(b.prop):1:f(b.prop)?-1:a.prop.localeCompare(b.prop)});u.length>e.MAX_COMPLETION_MATCHES&&(u=u.slice(0,e.MAX_COMPLETION_MATCHES-1));j=u.map(function(a){var b,c=!0;if(this._isSafeProperty(h,a.prop))b="(property getter)";else try{var d=h[a.prop];typeof d==="function"?b="(function)":typeof d==="boolean"||typeof d==="number"?(b="= "+d,c=!1):typeof d==="string"?
(d.length>40&&(d=d.substring(0,37)+"\u2026"),b="= '"+d+"'",c=!1):b="("+typeof d+")"}catch(e){b="("+g.lookup("jstypeParseError")+")"}return{name:z+a.prop,value:{name:z+a.prop,description:b},description:b,incomplete:c}},this);if(j.length===0)v=k.ERROR,n=g.lookupFormat("jstypeParseMissing",[m]);j.length===1&&v===k.VALID&&(j=void 0);return new i(d,b,v,n,j)};c=0;a=1;var m="{[(".split(""),n="}])".split(""),o={"{":"}","[":"]","(":")"},p=/[a-zA-Z0-9.]/;e.prototype._findCompletionBeginning=function(b){for(var d=
[],e=c,f=0,h,i=!1,j=0;j<b.length;j++)switch(h=b[j],p.test(h)||(i=!0),e){case c:if(h==='"')e=3;else if(h==="'")e=2;else if(h===";")f=j+1;else if(h===" ")f=j+1;else if(m.indexOf(h)!=-1)d.push({token:h,start:f}),f=j+1;else if(n.indexOf(h)!=-1){f=d.pop();if(!f||o[f.token]!=h)return{err:g.lookup("jstypeBeginSyntax")};f=h==="}"?j+1:f.start}break;case 3:if(h==="\\")j++;else if(h==="\n")return{err:g.lookup("jstypeBeginUnterm")};else h==='"'&&(e=c);break;case 2:if(h==="\\")j++;else if(h==="\n")return{err:g.lookup("jstypeBeginUnterm")};
else h==="'"&&(e=c)}e===c&&i&&(e=a);return{state:e,startPos:f}};e.prototype._isIteratorOrGenerator=function(a){if(a===null)return!1;if(typeof aObject==="object"){if(typeof a.__iterator__==="function"||a.constructor&&a.constructor.name==="Iterator")return!0;try{var b=a.toString();if(typeof a.next==="function"&&b.indexOf("[object Generator")===0)return!0}catch(c){}}return!1};e.prototype._isSafeProperty=function(a,b){if(typeof a!=="object")return!1;for(var c;a;){try{if(c=Object.getOwnPropertyDescriptor(a,
b))break}catch(d){return d.name==="NS_ERROR_XPC_BAD_CONVERT_JS"||d.name==="NS_ERROR_XPC_BAD_OP_ON_WN_PROTO"?!1:!0}a=Object.getPrototypeOf(a)}return!c?!1:!c.get?!1:typeof c.get!=="function"||"prototype"in c.get};e.prototype.name="javascript";d.JavascriptType=e});
define("gcli/types/node","require,exports,module,gcli/host,gcli/l10n,gcli/types,gcli/types,gcli/types,gcli/types".split(","),function(b,d){function a(a){if(Object.keys(a).length>0)throw Error("NodeType can not be customized");}var c=b("gcli/host"),e=b("gcli/l10n"),f=b("gcli/types"),g=b("gcli/types").Type,h=b("gcli/types").Status,i=b("gcli/types").Conversion;d.startup=function(){f.registerType(a)};d.shutdown=function(){f.unregisterType(a)};var j;typeof document!=="undefined"&&(j=document);d.setDocument=
function(a){j=a};d.unsetDocument=function(){j=void 0};d.getDocument=function(){return j};a.prototype=Object.create(g.prototype);a.prototype.stringify=function(a){return a.__gcliQuery||"Error"};a.prototype.parse=function(a){if(a.text==="")return new i(null,a,h.INCOMPLETE,e.lookup("nodeParseNone"));var b;try{b=j.querySelectorAll(a.text)}catch(d){return new i(null,a,h.ERROR,e.lookup("nodeParseSyntax"))}if(b.length===0)return new i(null,a,h.INCOMPLETE,e.lookup("nodeParseNone"));if(b.length===1)return b=
b.item(0),b.__gcliQuery=a.text,c.flashNode(b,"green"),new i(b,a,h.VALID,"");Array.prototype.forEach.call(b,function(a){c.flashNode(a,"red")});return new i(null,a,h.ERROR,e.lookupFormat("nodeParseMultiple",[b.length]))};a.prototype.name="node"});
define("gcli/types/basic","require,exports,module,gcli/l10n,gcli/types,gcli/types,gcli/types,gcli/types,gcli/types,gcli/argument,gcli/argument,gcli/argument,gcli/argument".split(","),function(b,d){function a(a){if(Object.keys(a).length>0)throw Error("StringType can not be customized");}function c(a){a?(this._min=a.min,this._max=a.max,this._step=a.step||1):this._step=1}function e(a){a&&Object.keys(a).forEach(function(b){this[b]=a[b]},this)}function f(a){if(Object.keys(a).length>0)throw Error("BooleanType can not be customized");
}function g(a){if(typeof a.defer!=="function")throw Error("Instances of DeferredType need typeSpec.defer to be a function that returns a type");Object.keys(a).forEach(function(b){this[b]=a[b]},this)}function h(a){if(Object.keys(a).length>0)throw Error("BlankType can not be customized");}function i(a){if(!a.subtype)console.error("Array.typeSpec is missing subtype. Assuming string."+JSON.stringify(a)),a.subtype="string";Object.keys(a).forEach(function(b){this[b]=a[b]},this);this.subtype=k.getType(this.subtype)}
var j=b("gcli/l10n"),k=b("gcli/types"),l=b("gcli/types").Type,m=b("gcli/types").Status,n=b("gcli/types").Conversion,o=b("gcli/types").ArrayConversion,p=b("gcli/argument").Argument,r=b("gcli/argument").TrueNamedArgument,q=b("gcli/argument").FalseNamedArgument,s=b("gcli/argument").ArrayArgument;d.startup=function(){k.registerType(a);k.registerType(c);k.registerType(f);k.registerType(h);k.registerType(e);k.registerType(g);k.registerType(i)};d.shutdown=function(){k.unregisterType(a);k.unregisterType(c);
k.unregisterType(f);k.unregisterType(h);k.unregisterType(e);k.unregisterType(g);k.unregisterType(i)};a.prototype=Object.create(l.prototype);a.prototype.stringify=function(a){return a==null?"":a.toString()};a.prototype.parse=function(a){return a.text==null||a.text===""?new n(null,a,m.INCOMPLETE,""):new n(a.text,a)};a.prototype.name="string";d.StringType=a;c.prototype=Object.create(l.prototype);c.prototype.stringify=function(a){return a==null?"":""+a};c.prototype.getMin=function(){if(this._min){if(typeof this._min===
"function")return this._min();if(typeof this._min==="number")return this._min}return 0};c.prototype.getMax=function(){if(this._max){if(typeof this._max==="function")return this._max();if(typeof this._max==="number")return this._max}};c.prototype.parse=function(a){if(a.text.replace(/\s/g,"").length===0)return new n(null,a,m.INCOMPLETE,"");var b=parseInt(a.text,10);return isNaN(b)?new n(null,a,m.ERROR,j.lookupFormat("typesNumberNan",[a.text])):this.getMax()!=null&&b>this.getMax()?new n(null,a,m.ERROR,
j.lookupFormat("typesNumberMax",[b,this.getMax()])):b<this.getMin()?new n(null,a,m.ERROR,j.lookupFormat("typesNumberMin",[b,this.getMin()])):new n(b,a)};c.prototype.decrement=function(a){if(typeof a!=="number"||isNaN(a))return this.getMax()||1;a-=this._step;a=Math.ceil(a/this._step)*this._step;return this._boundsCheck(a)};c.prototype.increment=function(a){if(typeof a!=="number"||isNaN(a))return this.getMin();a+=this._step;a=Math.floor(a/this._step)*this._step;return this.getMax()==null?a:this._boundsCheck(a)};
c.prototype._boundsCheck=function(a){var b=this.getMin();if(a<b)return b;b=this.getMax();return a>b?b:a};c.prototype.name="number";d.NumberType=c;e.prototype=Object.create(l.prototype);e.prototype.stringify=function(a){var b=null;this.getLookup().some(function(c){return(c.value==null?c:c.value)===a?(b=c.name,!0):!1},this);return b};e.prototype.getLookup=function(){if(this.lookup)return typeof this.lookup==="function"?this.lookup():this.lookup;if(Array.isArray(this.data))return this.lookup=this._dataToLookup(this.data);
if(typeof this.data==="function")return this._dataToLookup(this.data());throw Error("SelectionType has no data");};e.prototype._dataToLookup=function(a){return a.map(function(a){return{name:a,value:a}})};e.prototype._findPredictions=function(a){var b=[];this.getLookup().forEach(function(c){c.name.indexOf(a.text)===0&&b.push(c)},this);return b};e.prototype.parse=function(a){var b=this._findPredictions(a);this.noMatch&&this.noMatch();if(b.length>0)return b[0].name===a.text?new n(b[0].value?b[0].value:
b[0],a,m.VALID,"",b):new n(null,a,m.INCOMPLETE,"",b);var c=j.lookupFormat("typesSelectionNomatch",[a.text]);return new n(null,a,m.ERROR,c,b)};e.prototype.decrement=function(a){var b=this.getLookup(),a=this._findValue(b,a);a===-1&&(a=0);a++;a>=b.length&&(a=0);return b[a].value};e.prototype.increment=function(a){var b=this.getLookup(),a=this._findValue(b,a);a===-1&&(a=1);a--;a<0&&(a=b.length-1);return b[a].value};e.prototype._findValue=function(a,b){for(var c=-1,d=0;d<a.length;d++)if(a[d].value===b){c=
d;break}return c};e.prototype.name="selection";d.SelectionType=e;f.prototype=Object.create(e.prototype);f.prototype.lookup=[{name:"true",value:!0},{name:"false",value:!1}];f.prototype.parse=function(a){return a instanceof r?new n(!0,a):a instanceof q?new n(!1,a):e.prototype.parse.call(this,a)};f.prototype.stringify=function(a){return""+a};f.prototype.getDefault=function(){return new n(!1,new p(""))};f.prototype.name="boolean";d.BooleanType=f;g.prototype=Object.create(l.prototype);g.prototype.stringify=
function(a){return this.defer().stringify(a)};g.prototype.parse=function(a){return this.defer().parse(a)};g.prototype.decrement=function(a){var b=this.defer();return b.decrement?b.decrement(a):void 0};g.prototype.increment=function(a){var b=this.defer();return b.increment?b.increment(a):void 0};g.prototype.increment=function(a){var b=this.defer();return b.increment?b.increment(a):void 0};g.prototype.name="deferred";d.DeferredType=g;h.prototype=Object.create(l.prototype);h.prototype.stringify=function(){return""};
h.prototype.parse=function(a){return new n(null,a)};h.prototype.name="blank";d.BlankType=h;i.prototype=Object.create(l.prototype);i.prototype.stringify=function(a){return a.join(" ")};i.prototype.parse=function(a){if(a instanceof s){var b=a.getArguments().map(function(a){var b=this.subtype.parse(a);return a.conversion=b},this);return new o(b,a)}else throw console.error("non ArrayArgument to ArrayType.parse",a),Error("non ArrayArgument to ArrayType.parse");};i.prototype.getDefault=function(){return new o([],
new s)};i.prototype.name="array";d.ArrayType=i});
define("gcli/types/resource","require,exports,module,gcli/host,gcli/l10n,gcli/types,gcli/types/basic,gcli/types,gcli/types".split(","),function(b,d){function a(a,b,c,d,e){this.id=a;this.name=b;this.type=c;this.inline=d;this.element=e}function c(b){this.name=b.href;if(!this.name)this.name=b.ownerNode.id?"css#"+b.ownerNode.id:"inline-css";this.inline=b.href==null;this.type=a.TYPE_CSS;this.element=b}function e(b){this.name=b.src;if(!this.name)this.name=b.id?"script#"+b.id:"inline-script";this.inline=
b.src===""||b.src==null;this.type=a.TYPE_SCRIPT;this.element=b}function f(a,b){var c={};a.forEach(function(a){c[a.name]==null&&(c[a.name]=[]);c[a.name].push(a)});Object.keys(c).forEach(function(a){a=c[a];a.length>1&&b(a)})}function g(b){this.include=b.include;if(this.include!==a.TYPE_SCRIPT&&this.include!==a.TYPE_CSS&&this.include!=null)throw Error("invalid include property: "+this.include);}b("gcli/host");b("gcli/l10n");var h=b("gcli/types"),i=b("gcli/types/basic").SelectionType;b("gcli/types");
b("gcli/types");d.startup=function(){h.registerType(g)};d.shutdown=function(){h.unregisterType(g);d.clearResourceCache()};d.clearResourceCache=function(){k.clear()};var j;typeof document!=="undefined"&&(j=document);d.setDocument=function(a){j=a};d.unsetDocument=function(){j=void 0};d.getDocument=function(){return j};a.prototype.getContents=function(){throw Error("not implemented");};a.TYPE_SCRIPT="text/javascript";a.TYPE_CSS="text/css";c.prototype=Object.create(a.prototype);c.prototype.loadContents=
function(a){a(this.element.ownerNode.innerHTML)};c._getAllStyles=function(){var a=[];Array.prototype.forEach.call(j.styleSheets,function(b){c._getStyle(b,a)});f(a,function(a){for(var b=0;b<a.length;b++)a[b].name=a[b].name+"-"+b});return a};c._getStyle=function(a,b){var d=k.get(a);d||(d=new c(a),k.add(a,d));b.push(d);try{Array.prototype.forEach.call(a.cssRules,function(a){a.type==CSSRule.IMPORT_RULE&&a.styleSheet&&c._getStyle(a.styleSheet,b)},this)}catch(e){}};e.prototype=Object.create(a.prototype);
e.prototype.loadContents=function(a){if(this.inline)a(this.element.innerHTML);else{var b=new XMLHttpRequest;b.onreadystatechange=function(){b.readyState===b.DONE&&a(b.responseText)};b.open("GET",this.element.src,!0);b.send()}};e._getAllScripts=function(){var a=j.querySelectorAll("script"),a=Array.prototype.map.call(a,function(a){var b=k.get(a);b||(b=new e(a),k.add(a,b));return b});f(a,function(a){for(var b=0;b<a.length;b++)a[b].name=a[b].name+"-"+b});return a};g.prototype=Object.create(i.prototype);
g.prototype.getLookup=function(){var b=[];this.include!==a.TYPE_SCRIPT&&Array.prototype.push.apply(b,c._getAllStyles());this.include!==a.TYPE_CSS&&Array.prototype.push.apply(b,e._getAllScripts());return b.map(function(a){return{name:a.name,value:a}})};g.prototype.name="resource";var k={_cached:[],get:function(a){for(var b=0;b<k._cached.length;b++)if(k._cached[b].node===a)return k._cached[b].resource;return null},add:function(a,b){k._cached.push({node:a,resource:b})},clear:function(){k._cached={}}}});
define("gcli/util",["require","exports","module"],function(b,d){function a(a,b){for(var c=0;c<b.length;c++)if(a===b[c])return c;return-1}d.createEvent=function(){var a=[],b=function(b){for(var c=0;c<a.length;c++){var d=a[c];d.func.call(d.scope,b)}};b.add=function(b,c){a.push({func:b,scope:c})};b.remove=function(b,c){a=a.filter(function(a){return a.func!==b&&a.scope!==c})};b.removeAll=function(){a=[]};return b};var c={NS_XHTML:"http://www.w3.org/1999/xhtml",NS_XUL:"http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"};
c.createElement=function(a,b){return c.isXmlDocument(a)?a.createElementNS(c.NS_XHTML,b):a.createElement(b)};c.clearElement=function(a){for(;a.hasChildNodes();)a.removeChild(a.firstChild)};var e=/^\s*$/;c.removeWhitespace=function(a,b){for(var d=0;d<a.childNodes.length;){var f=a.childNodes.item(d);f.nodeType===Node.TEXT_NODE&&e.test(f.textContent)?a.removeChild(f):(b&&f.nodeType===Node.ELEMENT_NODE&&c.removeWhitespace(f,b),d++)}};c.importCss=function(a,b){var b=b||document,d=c.createElement(b,"style");
d.appendChild(b.createTextNode(a));(b.getElementsByTagName("head")[0]||b.documentElement).appendChild(d);return d};c.setInnerHtml=function(a,b){if(c.isXmlDocument(a.ownerDocument))try{c.clearElement(a);for(var b='<div xmlns="'+c.NS_XHTML+'">'+b+"</div>",d=a.ownerDocument.createRange().createContextualFragment(b).firstChild;d.hasChildNodes();)a.appendChild(d.firstChild)}catch(e){throw console.error("Bad XHTML",e),console.trace(),e;}else a.innerHTML=b};c.isXmlDocument=function(a){a=a||document;return a.contentType&&
a.contentType!="text/html"?!0:a.xmlVersion!=null?!0:!1};d.dom=c;c.findCssSelector=function(b){var d=b.ownerDocument;if(b.id&&d.getElementById(b.id)===b)return"#"+b.id;var e=b.tagName.toLowerCase();if(e==="html")return"html";if(e==="head")return"head";if(e==="body")return"body";b.parentNode==null&&console.log("danger: "+e);var f,k;if(b.classList.length>0)for(var l=0;l<b.classList.length;l++){f="."+b.classList.item(l);k=d.querySelectorAll(f);if(k.length===1)return f;f=e+f;k=d.querySelectorAll(f);if(k.length===
1)return f;k=a(b,b.parentNode.children)+1;f=f+":nth-child("+k+")";k=d.querySelectorAll(f);if(k.length===1)return f}k=a(b,b.parentNode.children)+1;return f=c.findCssSelector(b.parentNode)+" > "+e+":nth-child("+k+")"};var f={};f.KeyEvent="KeyEvent"in this?this.KeyEvent:{DOM_VK_CANCEL:3,DOM_VK_HELP:6,DOM_VK_BACK_SPACE:8,DOM_VK_TAB:9,DOM_VK_CLEAR:12,DOM_VK_RETURN:13,DOM_VK_ENTER:14,DOM_VK_SHIFT:16,DOM_VK_CONTROL:17,DOM_VK_ALT:18,DOM_VK_PAUSE:19,DOM_VK_CAPS_LOCK:20,DOM_VK_ESCAPE:27,DOM_VK_SPACE:32,DOM_VK_PAGE_UP:33,
DOM_VK_PAGE_DOWN:34,DOM_VK_END:35,DOM_VK_HOME:36,DOM_VK_LEFT:37,DOM_VK_UP:38,DOM_VK_RIGHT:39,DOM_VK_DOWN:40,DOM_VK_PRINTSCREEN:44,DOM_VK_INSERT:45,DOM_VK_DELETE:46,DOM_VK_0:48,DOM_VK_1:49,DOM_VK_2:50,DOM_VK_3:51,DOM_VK_4:52,DOM_VK_5:53,DOM_VK_6:54,DOM_VK_7:55,DOM_VK_8:56,DOM_VK_9:57,DOM_VK_SEMICOLON:59,DOM_VK_EQUALS:61,DOM_VK_A:65,DOM_VK_B:66,DOM_VK_C:67,DOM_VK_D:68,DOM_VK_E:69,DOM_VK_F:70,DOM_VK_G:71,DOM_VK_H:72,DOM_VK_I:73,DOM_VK_J:74,DOM_VK_K:75,DOM_VK_L:76,DOM_VK_M:77,DOM_VK_N:78,DOM_VK_O:79,
DOM_VK_P:80,DOM_VK_Q:81,DOM_VK_R:82,DOM_VK_S:83,DOM_VK_T:84,DOM_VK_U:85,DOM_VK_V:86,DOM_VK_W:87,DOM_VK_X:88,DOM_VK_Y:89,DOM_VK_Z:90,DOM_VK_CONTEXT_MENU:93,DOM_VK_NUMPAD0:96,DOM_VK_NUMPAD1:97,DOM_VK_NUMPAD2:98,DOM_VK_NUMPAD3:99,DOM_VK_NUMPAD4:100,DOM_VK_NUMPAD5:101,DOM_VK_NUMPAD6:102,DOM_VK_NUMPAD7:103,DOM_VK_NUMPAD8:104,DOM_VK_NUMPAD9:105,DOM_VK_MULTIPLY:106,DOM_VK_ADD:107,DOM_VK_SEPARATOR:108,DOM_VK_SUBTRACT:109,DOM_VK_DECIMAL:110,DOM_VK_DIVIDE:111,DOM_VK_F1:112,DOM_VK_F2:113,DOM_VK_F3:114,DOM_VK_F4:115,
DOM_VK_F5:116,DOM_VK_F6:117,DOM_VK_F7:118,DOM_VK_F8:119,DOM_VK_F9:120,DOM_VK_F10:121,DOM_VK_F11:122,DOM_VK_F12:123,DOM_VK_F13:124,DOM_VK_F14:125,DOM_VK_F15:126,DOM_VK_F16:127,DOM_VK_F17:128,DOM_VK_F18:129,DOM_VK_F19:130,DOM_VK_F20:131,DOM_VK_F21:132,DOM_VK_F22:133,DOM_VK_F23:134,DOM_VK_F24:135,DOM_VK_NUM_LOCK:144,DOM_VK_SCROLL_LOCK:145,DOM_VK_COMMA:188,DOM_VK_PERIOD:190,DOM_VK_SLASH:191,DOM_VK_BACK_QUOTE:192,DOM_VK_OPEN_BRACKET:219,DOM_VK_BACK_SLASH:220,DOM_VK_CLOSE_BRACKET:221,DOM_VK_QUOTE:222,DOM_VK_META:224};
d.event=f});
define("gcli/canon","require,exports,module,gcli/util,gcli/l10n,gcli/types,gcli/types,gcli/types/basic".split(","),function(b,d){function a(a,b){if(a==null)return b?h.lookup(b):a;if(typeof a==="string")return a;if(typeof a==="object"){if(a.key)return h.lookup(a.key);var c=h.getPreferredLocales(),d;c.some(function(b){d=a[b];return d!=null});if(d!=null)return d;console.error("Can't find locale in descriptions: locales="+JSON.stringify(c)+", description="+JSON.stringify(a));return"(No description)"}return h.lookup(b)}function c(b){Object.keys(b).forEach(function(a){this[a]=
b[a]},this);if(!this.name)throw Error("All registered commands must have a name");if(this.params==null)this.params=[];if(!Array.isArray(this.params))throw Error("command.params must be an array in "+this.name);this.description="description"in this?this.description:void 0;this.description=a(this.description,"canonDescNone");this.manual="manual"in this?this.manual:void 0;this.manual=a(this.manual);var c=this.params;this.params=[];var d=!1;if(this.returnType==null)this.returnType="string";c.forEach(function(a){a.group?
(a.params.forEach(function(b){this.params.push(new e(b,this,a.group))},this),d=!0):d?console.error("Parameters can't come after param groups. Ignoring "+this.name+"/"+a.name):this.params.push(new e(a,this,null))},this)}function e(b,c,d){this.command=c||{name:"unnamed"};Object.keys(b).forEach(function(a){this[a]=b[a]},this);this.description="description"in this?this.description:void 0;this.description=a(this.description,"canonDescNone");this.manual="manual"in this?this.manual:void 0;this.manual=a(this.manual);
this.groupName=d;if(!this.name)throw Error("In "+this.command.name+": all params must have a name");c=this.type;this.type=i.getType(c);if(this.type==null)throw console.error("Known types: "+i.getTypeNames().join(", ")),Error("In "+this.command.name+"/"+this.name+": can't find type for: "+JSON.stringify(c));if(this.type instanceof k)"defaultValue"in this&&console.error("In "+this.command.name+"/"+this.name+": boolean parameters can not have a defaultValue. Ignoring"),this.defaultValue=!1;if(this.defaultValue!=
null)try{var e=this.type.parseString(this.type.stringify(this.defaultValue));e.getStatus()!==j.VALID&&console.error("In "+this.command.name+"/"+this.name+": Error round tripping defaultValue. status = "+e.getStatus())}catch(f){console.error("In "+this.command.name+"/"+this.name+": "+f)}}function f(){this._event=g.createEvent("CommandOutputManager")}var g=b("gcli/util"),h=b("gcli/l10n"),i=b("gcli/types"),j=b("gcli/types").Status,k=b("gcli/types/basic").BooleanType,l={},m=[];d.Command=c;e.prototype.isKnownAs=
function(a){return a==="--"+this.name?!0:!1};e.prototype.isDataRequired=function(){return this.defaultValue===void 0};e.prototype.isPositionalAllowed=function(){return this.groupName==null};d.Parameter=e;d.addCommand=function(a){var b=new c(a);l[a.name]=b;m.push(a.name);m.sort();d.canonChange();return b};d.removeCommand=function(a){var b=typeof a==="string"?a:a.name;delete l[b];m=m.filter(function(a){return a!==b});d.canonChange()};d.getCommand=function(a){return l[a]||void 0};d.getCommands=function(){return Object.keys(l).map(function(a){return l[a]},
this)};d.getCommandNames=function(){return m.slice(0)};d.canonChange=g.createEvent("canon.canonChange");f.prototype.sendCommandOutput=function(a){this._event({output:a})};f.prototype.addListener=function(a,b){this._event.add(a,b)};f.prototype.removeListener=function(a,b){this._event.remove(a,b)};d.CommandOutputManager=f;d.commandOutputManager=new f});
define("gcli/cli","require,exports,module,gcli/util,gcli/canon,gcli/promise,gcli/types,gcli/types,gcli/types,gcli/types,gcli/types/basic,gcli/types/basic,gcli/types/basic,gcli/types/basic,gcli/argument,gcli/argument,gcli/argument,gcli/argument,gcli/argument,gcli/argument".split(","),function(b,d){function a(a,b){this.param=a;this.paramIndex=b;this.assignmentChange=j.createEvent("Assignment.assignmentChange");this.setDefault()}function c(){}function e(){this.param=new k.Parameter({name:"__command",
type:"command",description:"The command to execute"});this.paramIndex=-1;this.assignmentChange=j.createEvent("CommandAssignment.assignmentChange");this.setDefault()}function f(){this.param=new k.Parameter({name:"__unassigned",type:"string"});this.paramIndex=-1;this.assignmentChange=j.createEvent("UnassignedAssignment.assignmentChange");this.setDefault()}function g(a,b){this.environment=a;this.document=b;if(this.document==null)try{this.document=document}catch(c){}this.commandAssignment=new e;this._assignments=
{};this.assignmentCount=0;this._args=[];this._unassigned=new f;this._structuralChangeInProgress=!1;this.commandAssignment.assignmentChange.add(this._onCommandAssignmentChange,this);this.commandAssignment.assignmentChange.add(this._onAssignmentChange,this);this.commandOutputManager=k.commandOutputManager;this.assignmentChange=j.createEvent("Requisition.assignmentChange");this.commandChange=j.createEvent("Requisition.commandChange");this.inputChange=j.createEvent("Requisition.inputChange")}function h(a){for(var b=
0;b<a.length;b++){var c=a.charAt(b);if(c===" "||c==='"'||c==="'"||c==="{"||c==="}"||c==="\\")return!1}return!0}function i(a){this.requisition=a;this.environment=a.environment;this.document=a.document}var j=b("gcli/util"),k=b("gcli/canon"),l=b("gcli/promise").Promise,m=b("gcli/types"),n=b("gcli/types").Status,o=b("gcli/types").Conversion,p=b("gcli/types").Type,r=b("gcli/types/basic").ArrayType,q=b("gcli/types/basic").StringType,s=b("gcli/types/basic").BooleanType,w=b("gcli/types/basic").SelectionType,
t=b("gcli/argument").Argument,x=b("gcli/argument").ArrayArgument,A=b("gcli/argument").NamedArgument,K=b("gcli/argument").TrueNamedArgument,z=b("gcli/argument").MergedArgument,v=b("gcli/argument").ScriptArgument,u;d.startup=function(){m.registerType(c);u=k.addCommand(G)};d.shutdown=function(){m.unregisterType(c);k.removeCommand(G.name);u=void 0};a.prototype.param=void 0;a.prototype.conversion=void 0;a.prototype.paramIndex=void 0;a.prototype.getArg=function(){return this.conversion.arg};a.prototype.getValue=
function(){return this.conversion.value};a.prototype.getMessage=function(){return this.conversion.message?this.conversion.message:""};a.prototype.getPredictions=function(){return this.conversion.getPredictions()};a.prototype.setConversion=function(a){var b=this.conversion;this.conversion=a;this.conversion.assign(this);this.conversion.equals(b)||this.assignmentChange({assignment:this,conversion:this.conversion,oldConversion:b})};a.prototype.setDefault=function(){this.setConversion(this.param.getDefault?
this.param.getDefault():this.param.type.getDefault?this.param.type.getDefault():this.param.type.parse(new t))};a.prototype.ensureVisibleArgument=function(){if(!this.conversion.arg.isBlank())return!1;this.conversion=this.param.type.parse(this.conversion.arg.beget("",{prefixSpace:this.param instanceof e}));this.conversion.assign(this);return!0};a.prototype.getStatus=function(a){return this.param.isDataRequired()&&!this.conversion.isDataProvided()?n.ERROR:!this.param.isDataRequired()&&this.getArg().isBlank()?
n.VALID:this.conversion.getStatus(a)};a.prototype.complete=function(){var a=this.conversion.getPredictions();if(a.length>0){var b=this.conversion.arg.beget(a[0].name);if(!a[0].incomplete)b.suffix=" ";this.setConversion(this.param.type.parse(b))}};a.prototype.decrement=function(){var a=this.param.type.decrement(this.conversion.value);if(a!=null){var b=this.conversion.arg.beget(this.param.type.stringify(a));this.setConversion(new o(a,b))}};a.prototype.increment=function(){var a=this.param.type.increment(this.conversion.value);
if(a!=null){var b=this.conversion.arg.beget(this.param.type.stringify(a));this.setConversion(new o(a,b))}};a.prototype.toString=function(){return this.conversion.toString()};d.Assignment=a;c.prototype=Object.create(p.prototype);c.prototype.name="command";c.prototype.decrement=w.prototype.decrement;c.prototype.increment=w.prototype.increment;c.prototype._findValue=w.prototype._findValue;c.prototype.stringify=function(a){return a.name};c.prototype._findPredictions=function(a){var b=[];k.getCommands().forEach(function(c){c.name.indexOf(a.text)===
0&&(a.text.length!==0||c.name.indexOf(" ")===-1)&&b.push(c)},this);return b};c.prototype.parse=function(a){var b=function(){return this._findPredictions(a)}.bind(this),c=this._findPredictions(a);if(c.length===0)return new o(null,a,n.ERROR,"Can't use '"+a.text+"'.",b);var d=c[0];return c.length===1?d.name===a.text&&typeof d.exec==="function"?new o(d,a,n.VALID,""):new o(null,a,n.INCOMPLETE,"",b):d.name===a.text?new o(d,a,n.VALID,"",b):new o(null,a,n.INCOMPLETE,"",b)};var y=eval;d.setEvalFunction=function(a){y=
a};d.unsetEvalFunction=function(){y=void 0};var G={name:"{",params:[{name:"javascript",type:"javascript",description:""}],returnType:"object",description:{key:"cliEvalJavascript"},exec:function(a){return y(a.javascript)},evalRegexp:/^\s*{\s*/};e.prototype=Object.create(a.prototype);e.prototype.getStatus=function(b){return n.combine(a.prototype.getStatus.call(this,b),this.conversion.value&&!this.conversion.value.exec?n.INCOMPLETE:n.VALID)};f.prototype=Object.create(a.prototype);f.prototype.getStatus=
function(){return n.ERROR};f.prototype.setUnassigned=function(a){!a||a.length===0?this.setDefault():this.setConversion(this.param.type.parse(new z(a)))};g.prototype.destroy=function(){this.commandAssignment.assignmentChange.remove(this._onCommandAssignmentChange,this);this.commandAssignment.assignmentChange.remove(this._onAssignmentChange,this);delete this.document;delete this.environment};g.prototype._onAssignmentChange=function(a){if(!(a.oldConversion!=null&&a.conversion.valueEquals(a.oldConversion))&&
!this._structuralChangeInProgress&&(this.assignmentChange(a),!a.conversion.argEquals(a.oldConversion))){this._structuralChangeInProgress=!0;var b;if(a.assignment.param.isPositionalAllowed())for(b=0;b<a.assignment.paramIndex;b++){var c=this.getAssignment(b);c.param.isPositionalAllowed()&&c.ensureVisibleArgument()&&this._args.push(c.getArg())}c=1E6;for(b=0;b<this._args.length;b++)this._args[b].assignment===a.assignment&&(b<c&&(c=b),this._args.splice(b,1),b--);if(c===1E6)this._args.push(a.assignment.getArg());
else{a=a.conversion.arg.getArgs();for(b=0;b<a.length;b++)this._args.splice(c+b,0,a[b])}this._structuralChangeInProgress=!1;this.inputChange()}};g.prototype._onCommandAssignmentChange=function(b){this._assignments={};var c=this.commandAssignment.getValue();if(c)for(var d=0;d<c.params.length;d++){var e=c.params[d],f=new a(e,d);f.assignmentChange.add(this._onAssignmentChange,this);this._assignments[e.name]=f}this.assignmentCount=Object.keys(this._assignments).length;this.commandChange({requisition:this,
oldValue:b.oldValue,newValue:c})};g.prototype.getAssignment=function(a){return this._assignments[typeof a==="string"?a:Object.keys(this._assignments)[a]]||void 0};g.prototype.getParameterNames=function(){return Object.keys(this._assignments)};g.prototype.cloneAssignments=function(){return Object.keys(this._assignments).map(function(a){return this._assignments[a]},this)};g.prototype.getStatus=function(){var a=n.VALID;this.getAssignments(!0).forEach(function(b){var c=b.getStatus();b.getStatus()>a&&
(a=c)},this);if(a===n.INCOMPLETE)a=n.ERROR;return a};g.prototype.getArgsObject=function(){var a={};this.getAssignments().forEach(function(b){a[b.param.name]=b.getValue()},this);return a};g.prototype.getAssignments=function(a){var b=[];a===!0&&b.push(this.commandAssignment);Object.keys(this._assignments).forEach(function(a){b.push(this.getAssignment(a))},this);return b};g.prototype.setDefaultArguments=function(){this.getAssignments().forEach(function(a){a.setDefault()},this)};g.prototype.toCanonicalString=
function(){var a=[],b=this.commandAssignment.getValue()?this.commandAssignment.getValue().name:this.commandAssignment.getArg().text;a.push(b);Object.keys(this._assignments).forEach(function(b){var b=this._assignments[b],c=b.param.type;b.getValue()!==b.param.defaultValue&&(a.push(" "),a.push(c.stringify(b.getValue())))},this);b==="{"&&this.getAssignment(0).getArg().suffix.indexOf("}")===-1&&a.push(" }");return a.join("")};g.prototype.createInputArgTrace=function(){if(!this._args)throw Error("createInputMap requires a command line. See source.");
var a=[],b;this._args.forEach(function(c){for(b=0;b<c.prefix.length;b++)a.push({arg:c,"char":c.prefix[b],part:"prefix"});for(b=0;b<c.text.length;b++)a.push({arg:c,"char":c.text[b],part:"text"});for(b=0;b<c.suffix.length;b++)a.push({arg:c,"char":c.suffix[b],part:"suffix"})});return a};g.prototype.toString=function(){return this._args?this._args.map(function(a){return a.toString()}).join(""):this.toCanonicalString()};g.prototype.getInputStatusMarkup=function(a){for(var b=this.createInputArgTrace(),
a=b[a===0?0:a-1],c=[],d=0;d<b.length;d++){var f=b[d],g=f.arg,h=n.VALID;if(f.part==="text"&&(h=g.assignment.getStatus(g),h===n.INCOMPLETE&&(g!==a.arg||a.part!=="text")&&!(g.assignment instanceof e)))h=n.ERROR;c.push({status:h,string:f["char"]})}for(d=0;d<c.length-1;)c[d].status===c[d+1].status?(c[d].string+=c[d+1].string,c.splice(d+1,1)):d++;return c};g.prototype.getAssignmentAt=function(a){if(!this._args)throw console.trace(),Error("Missing args");if(a===0)return this.commandAssignment;var b=[],c,
d;for(c=0;c<this._args.length;c++){var e=this._args[c],f=e.assignment;for(d=0;d<e.prefix.length;d++)b.push(f);for(d=0;d<e.text.length;d++)b.push(f);this._args.length>c+1?f=this._args[c+1].assignment:f&&f.paramIndex+1<this.assignmentCount&&(f=this.getAssignment(f.paramIndex+1));for(d=0;d<e.suffix.length;d++)b.push(f)}b=b[a-1];if(!b)throw Error("Missing assignment. cursor="+a+" text.length="+this.toString().length);return b};g.prototype.exec=function(a){var b,c,d=!0;if(a)a.args!=null?((b=k.getCommand(a.typed))||
console.error("Command not found: "+b),c=a.args,d="visible"in a?a.visible:!1):this.update(a);b||(b=this.commandAssignment.getValue(),c=this.getArgsObject());if(!b)return!1;a=this.toString();G.evalRegexp.test(a)&&(a=a.replace(G.evalRegexp,""),a=a.replace(/\s*}\s*$/,""));var e={command:b,args:c,typed:a,canonical:this.toCanonicalString(),completed:!1,start:new Date};this.commandOutputManager.sendCommandOutput(e);var f=function(a,b){if(d)e.end=new Date,e.duration=e.end.getTime()-e.start.getTime(),e.error=
b,e.output=a,e.completed=!0,this.commandOutputManager.sendCommandOutput(e)}.bind(this);try{var g=new i(this),h=b.exec(c,g);h!=null&&h.isPromise?h.then(function(a){f(a,!1)},function(a){f(a,!0)}):f(h,!1)}catch(j){console.error(j),f(j,!0)}this.clear();return!0};g.prototype.update=function(a){if(a.cursor==null)a.cursor={start:a.length,end:a.length};this._structuralChangeInProgress=!0;this._args=this._tokenize(a.typed);a=this._args.slice(0);this._split(a);this._assign(a);this._structuralChangeInProgress=
!1;this.inputChange()};g.prototype.clear=function(){this.update({typed:"",cursor:{start:0,end:0}})};g.prototype._tokenize=function(a){function b(a){return a.replace(/\uF000/g," ").replace(/\uF001/g,"'").replace(/\uF002/g,'"').replace(/\uF003/g,"{").replace(/\uF004/g,"}")}if(a==null||a.length===0)return[new t("","","")];if(h(a))return[new t(a,"","")];for(var c=1,a=a.replace(/\\\\/g,"\\").replace(/\\b/g,"\u0008").replace(/\\f/g,"\u000c").replace(/\\n/g,"\n").replace(/\\r/g,"\r").replace(/\\t/g,"\t").replace(/\\v/g,
"\u000b").replace(/\\n/g,"\n").replace(/\\r/g,"\r").replace(/\\ /g,"\uf000").replace(/\\'/g,"\uf001").replace(/\\"/g,"\uf002").replace(/\\{/g,"\uf003").replace(/\\}/g,"\uf004"),d=0,e=0,f="",g=[],i=0;;){var j=a[d];switch(c){case 1:j==="'"?(f=a.substring(e,d+1),c=3,e=d+1):j==='"'?(f=a.substring(e,d+1),c=4,e=d+1):j==="{"?(f=a.substring(e,d+1),c=5,i++,e=d+1):/ /.test(j)||(f=a.substring(e,d),c=2,e=d);break;case 2:j===" "&&(c=b(a.substring(e,d)),g.push(new t(c,f,"")),c=1,e=d,f="");break;case 3:j==="'"&&
(c=b(a.substring(e,d)),g.push(new t(c,f,j)),c=1,e=d+1,f="");break;case 4:j==='"'&&(c=b(a.substring(e,d)),g.push(new t(c,f,j)),c=1,e=d+1,f="");break;case 5:j==="{"?i++:j==="}"&&(i--,i===0&&(c=b(a.substring(e,d)),g.push(new v(c,f,j)),c=1,e=d+1,f=""))}d++;if(d>=a.length){c===1?d!==e&&(a=a.substring(e,d),(d=g[g.length-1])?d.suffix+=a:g.push(new t("",a,""))):c===5?(c=b(a.substring(e,d+1)),g.push(new v(c,f,""))):(c=b(a.substring(e,d+1)),g.push(new t(c,f,"")));break}}return g};g.prototype._split=function(a){var b;
if(a[0]instanceof v)b=new o(u,new t),this.commandAssignment.setConversion(b);else{for(var c=1;c<=a.length;){b=this.commandAssignment.param.type.parse(c===1?a[0]:new z(a,0,c));if(!b.value||b.value.exec)break;c++}this.commandAssignment.setConversion(b);for(b=0;b<c;b++)a.shift()}};g.prototype._assign=function(a){if(this.commandAssignment.getValue())if(a.length===0)this.setDefaultArguments(),this._unassigned.setDefault();else if(this.assignmentCount===0)this._unassigned.setUnassigned(a);else{if(this.assignmentCount===
1){var b=this.getAssignment(0);if(b.param.type instanceof q){var c=a.length===1?a[0]:new z(a),c=b.param.type.parse(c);b.setConversion(c);this._unassigned.setDefault();return}}var d=this.getParameterNames(),e={};this.getAssignments(!1).forEach(function(b){for(var c=0;c<a.length;)if(b.param.isKnownAs(a[c].text)){var f=a.splice(c,1)[0];d=d.filter(function(a){return a!==b.param.name});if(b.param.type instanceof s)f=new K(null,f);else{var g=null;c+1>=a.length&&(g=a.splice(c,1)[0]);f=new A(f,g)}b.param.type instanceof
r?(g=e[b.param.name],g||(g=new x,e[b.param.name]=g),g.addArgument(f)):(f=b.param.type.parse(f),b.setConversion(f))}else c++},this);d.forEach(function(b){b=this.getAssignment(b);if(b.param.isPositionalAllowed())if(b.param.type instanceof r){var c=e[b.param.name];c||(c=new x,e[b.param.name]=c);c.addArguments(a);a=[]}else c=a.length>0?a.splice(0,1)[0]:new t,c=b.param.type.parse(c),b.setConversion(c);else b.setDefault()},this);Object.keys(e).forEach(function(a){var b=this.getAssignment(a),a=b.param.type.parse(e[a]);
b.setConversion(a)},this);a.length>0?this._unassigned.setUnassigned(a):this._unassigned.setDefault()}else this._unassigned.setUnassigned(a)};d.Requisition=g;i.prototype.createPromise=function(){return new l}});
define("gcli/ui/command_output_view","require,exports,module,gcli/util,gcli/canon,gcli/ui/domtemplate,text!gcli/ui/command_output_view.css,text!gcli/ui/command_output_view.html".split(","),function(b,d,a){function c(c){try{return b("text!gcli/ui/"+c)}catch(d){var e=a.id.split("/").pop()+".js";return a.uri.substr(-e.length)!==e?(console.error("Can't work out path from module.uri/module.id"),c):a.uri?a.uri.substr(0,a.uri.length-e.length-1)+"/"+c:e+"/"+c}}function e(a,b){this.element=a;this.document=
b.document||document;this.inputter=b.inputter;this.requisition=b.requisition;this.commandOutputManager=b.commandOutputManager||h.commandOutputManager;this.commandOutputManager.addListener(this.onOutputCommandChange,this);if(j!=null)this.style=g.importCss(j,this.document);var c=g.createElement(this.document,"div");g.setInnerHtml(c,k);this._row=c.querySelector(".gcli-row")}function f(a,b){this.outputData=a;this.listView=b;this.imageUrl=c;this.elems={rowin:null,rowout:null,output:null,hide:null,show:null,
duration:null,throb:null,prompt:null};i.template(this.listView._row.cloneNode(!0),this,{allowEval:!0,stack:"command_output_view.html"});this.listView.element.appendChild(this.elems.rowin);this.listView.element.appendChild(this.elems.rowout)}var g=b("gcli/util").dom,h=b("gcli/canon"),i=b("gcli/ui/domtemplate"),j=b("text!gcli/ui/command_output_view.css"),k=b("text!gcli/ui/command_output_view.html");e.prototype.destroy=function(){this.style&&(this.style.parentNode.removeChild(this.style),delete this.style);
delete this.element;delete this.document;delete this._row};e.prototype.onOutputCommandChange=function(a){if(!a.output.view)a.output.view=new f(a.output,this);a.output.view.onChange(a)};e.prototype.setHeight=function(a){this.element.style.height=a+"px"};d.CommandOutputListView=e;f.prototype.copyToInput=function(){this.listView.inputter&&this.listView.inputter.setInput(this.outputData.typed)};f.prototype.execute=function(){this.listView.requisition&&this.listView.requisition.exec({typed:this.outputData.typed})};
f.prototype.hideOutput=function(a){this.elems.output.style.display="none";this.elems.hide.classList.add("cmd_hidden");this.elems.show.classList.remove("cmd_hidden");a.stopPropagation()};f.prototype.showOutput=function(a){this.elems.output.style.display="block";this.elems.hide.classList.remove("cmd_hidden");this.elems.show.classList.add("cmd_hidden");a.stopPropagation()};f.prototype.remove=function(a){this.listView.element.removeChild(this.elems.rowin);this.listView.element.removeChild(this.elems.rowout);
a.stopPropagation()};f.prototype.onChange=function(){g.setInnerHtml(this.elems.duration,this.outputData.duration!=null?"completed in "+this.outputData.duration/1E3+" sec ":"");this.outputData.completed&&this.elems.prompt.classList.add("gcli-row-complete");this.outputData.error&&this.elems.prompt.classList.add("gcli-row-error");g.clearElement(this.elems.output);var a,b=this.outputData.output;b!=null&&((typeof HTMLElement==="object"?b instanceof HTMLElement:typeof b==="object"&&b.nodeType===1&&typeof b.nodeName===
"string")?this.elems.output.appendChild(b):(a=g.createElement(this.listView.document,"p"),g.setInnerHtml(a,b.toString()),this.elems.output.appendChild(a)));this.listView.element.scrollTop=Math.max(this.listView.element.scrollHeight,this.listView.element.clientHeight)-this.listView.element.clientHeight;this.outputData.error?this.elems.output.classList.add("cmd_error"):this.elems.output.classList.remove("cmd_error");this.elems.throb.style.display=this.outputData.completed?"none":"block"};d.CommandOutputView=
f});
define("gcli/ui/completer","require,exports,module,gcli/util,gcli/ui/domtemplate,text!gcli/ui/completer.html".split(","),function(b,d){function a(a){this.document=a.document||document;this.requisition=a.requisition;this.elementCreated=!1;this.scratchpad=a.scratchpad;this.input={typed:"",cursor:{start:0,end:0}};this.element=a.completeElement||"gcli-row-complete";if(typeof this.element==="string"&&(this.element=this.document.getElementById(this.element),!this.element))this.elementCreated=!0,this.element=c.createElement(this.document,
"div"),this.element.className="gcli-in-complete gcli-in-valid",this.element.setAttribute("tabindex","-1"),this.element.setAttribute("aria-live","polite");this.completionPrompt=typeof a.completionPrompt==="string"?a.completionPrompt:"\u00bb";this.backgroundElement=a.inputBackgroundElement?a.inputBackgroundElement:this.element;this.template=c.createElement(this.document,"div");c.setInnerHtml(this.template,f);this.template=this.template.children[0];c.removeWhitespace(this.template,!0)}var c=b("gcli/util").dom,
e=b("gcli/ui/domtemplate"),f=b("text!gcli/ui/completer.html");a.prototype.destroy=function(){delete this.document;delete this.element;delete this.backgroundElement;delete this.template;this.elementCreated&&this.document.defaultView.removeEventListener("resize",this.resizer,!1);delete this.inputter};a.copyStyles=["fontSize","fontFamily","fontWeight","fontStyle"];a.prototype.decorate=function(b){this.inputter=b;b=b.element;if(this.elementCreated){this.inputter.appendAfter(this.element);var c=this.document.defaultView.getComputedStyle(b,
null);a.copyStyles.forEach(function(a){this.element.style[a]=c[a]},this);this.element.style.color=b.style.backgroundColor;this.element.style.backgroundColor=this.backgroundElement!=this.element?"transparent":b.style.backgroundColor;b.style.backgroundColor="transparent";b.style.paddingLeft="20px";this.resizer=this.resizer.bind(this);this.document.defaultView.addEventListener("resize",this.resizer,!1);this.resizer()}};a.prototype.resizer=function(){if(this.inputter.element.getBoundingClientRect){var a=
this.inputter.element.getBoundingClientRect(),b=a.bottom-a.top-4;this.element.style.top=a.top+"px";this.element.style.height=b+"px";this.element.style.lineHeight=b+"px";this.element.style.left=a.left+"px";this.element.style.width=a.right-a.left+"px"}};a.prototype.update=function(a){this.input=a;a=this.template.cloneNode(!0);e.template(a,this,{stack:"completer.html"});for(c.clearElement(this.element);a.hasChildNodes();)this.element.appendChild(a.firstChild)};Object.defineProperty(a.prototype,"statusMarkup",
{get:function(){var a=this.requisition.getInputStatusMarkup(this.input.cursor.start);a.forEach(function(a){a.string=a.string.replace(/ /g,"\u00a0");a.className="gcli-in-"+a.status.toString().toLowerCase()},this);return a}});Object.defineProperty(a.prototype,"tabText",{get:function(){var a=this.requisition.getAssignmentAt(this.input.cursor.start),b=a.getPredictions();if(this.input.typed.length===0||b.length===0)return"";var b=b[0].name,a=a.getArg().text,c;c=a.replace(/^\s*/,"");return b.indexOf(c)===
0&&this.input.cursor.start===this.input.typed.length?(c=a.match(/^(\s*)/)[0].length,b.slice(a.length-c)):" \u00a0\u21e5 "+b}});Object.defineProperty(a.prototype,"scratchLink",{get:function(){if(!this.scratchpad)return null;var a=this.requisition.commandAssignment.getValue();return a&&a.name==="{"?this.scratchpad.linkText:null}});Object.defineProperty(a.prototype,"unclosedJs",{get:function(){var a=this.requisition.commandAssignment.getValue();return a&&a.name==="{"&&this.requisition.getAssignment(0).getArg().suffix.indexOf("}")===
-1}});Object.defineProperty(a.prototype,"emptyParameters",{get:function(){var a=[];this.requisition.getAssignments().forEach(function(b){b.getValue()==null&&a.push(b.param)});return a}});d.Completer=a});
define("gcli/ui/inputter","require,exports,module,gcli/util,gcli/util,gcli/l10n,gcli/types,gcli/history,gcli/ui/completer,text!gcli/ui/inputter.css".split(","),function(b,d){var a;function c(a){this.requisition=a.requisition;this.scratchpad=a.scratchpad;this.element=a.inputElement||"gcli-input";if(typeof this.element==="string"){this.document=a.document||document;var b=this.element;this.element=this.document.getElementById(b);if(!this.element)throw Error("No element with id="+b+".");}else this.document=
this.element.ownerDocument;if(j!=null)this.style=f.importCss(j,this.document);this.element.spellcheck=!1;this.lastTabDownAt=0;this._caretChange=null;this.onKeyDown=this.onKeyDown.bind(this);this.onKeyUp=this.onKeyUp.bind(this);this.element.addEventListener("keydown",this.onKeyDown,!1);this.element.addEventListener("keyup",this.onKeyUp,!1);this.completer=a.completer||new i(a);this.completer.decorate(this);this.history=a.history||new h(a);this._scrollingThroughHistory=!1;this.onMouseUp=function(){this.completer.update(this.getInputState())}.bind(this);
this.element.addEventListener("mouseup",this.onMouseUp,!1);(this.focusManager=a.focusManager)&&this.focusManager.addMonitoredElement(this.element,"input");this.requisition.inputChange.add(this.onInputChange,this);this.update()}var e=b("gcli/util").event.KeyEvent,f=b("gcli/util").dom;b("gcli/l10n");var g=b("gcli/types").Status,h=b("gcli/history").History,i=b("gcli/ui/completer").Completer,j=b("text!gcli/ui/inputter.css");c.prototype.destroy=function(){this.requisition.inputChange.remove(this.onInputChange,
this);this.focusManager&&this.focusManager.removeMonitoredElement(this.element,"input");this.element.removeEventListener("keydown",this.onKeyDown,!1);this.element.removeEventListener("keyup",this.onKeyUp,!1);delete this.onKeyDown;delete this.onKeyUp;this.history.destroy();this.completer.destroy();this.style&&(this.style.parentNode.removeChild(this.style),delete this.style);delete this.document;delete this.element};c.prototype.appendAfter=function(a){this.element.parentNode.insertBefore(a,this.element.nextSibling)};
c.prototype.onInputChange=function(){if(this._caretChange==null)this._caretChange=a;this._setInputInternal(this.requisition.toString())};c.prototype._setInputInternal=function(a,b){this.document&&(this.element.value&&this.element.value===a?this._processCaretChange(this.getInputState(),!1):this.document.defaultView.setTimeout(function(){if(this.document){var c=this.getInputState();c.typed=a;this._processCaretChange(c);this.element.value=a;b&&this.update()}}.bind(this),0))};a=3;c.prototype._processCaretChange=
function(b,c){var d,e;switch(this._caretChange){case 1:d=0;e=b.typed.length;break;case 2:e=d=b.typed.length;break;case a:d=b.cursor.start;do d++;while(d<b.typed.length&&b.typed[d-1]!==" ");e=d;break;case null:case 0:d=b.cursor.start,e=b.cursor.end}d=d>b.typed.length?b.typed.length:d;e=e>b.typed.length?b.typed.length:e;var f={typed:b.typed,cursor:{start:d,end:e}};(d!==b.cursor.start||e!==b.cursor.end||c)&&this.completer.update(f);this.element.selectionStart=f.cursor.start;this.element.selectionEnd=
f.cursor.end;this._caretChange=null;return f};c.prototype.setInput=function(a){this.element.value=a;this.update()};c.prototype.focus=function(){this.element.focus()};c.prototype.onKeyDown=function(a){(a.keyCode===e.DOM_VK_UP||a.keyCode===e.DOM_VK_DOWN)&&a.preventDefault();if(a.keyCode===e.DOM_VK_TAB){this.lastTabDownAt=0;if(!a.shiftKey)a.preventDefault(),this.lastTabDownAt=a.timeStamp;if(a.metaKey||a.altKey||a.crtlKey)this.document.commandDispatcher?this.document.commandDispatcher.advanceFocus():
this.element.blur()}};c.prototype.onKeyUp=function(b){if(this.scratchpad&&this.scratchpad.shouldActivate(b))this.scratchpad.activate(this.element.value)&&this._setInputInternal("",!0);else if(b.keyCode===e.DOM_VK_RETURN){if(this.requisition.getStatus()===g.VALID)this._scrollingThroughHistory=!1,this.history.add(this.element.value),this.requisition.exec()}else if(b.keyCode===e.DOM_VK_TAB&&!b.shiftKey){if(this.lastTabDownAt+1E3>b.timeStamp)this._caretChange=a,this._processCaretChange(this.getInputState(),
!0),this.getCurrentAssignment().complete();this.lastTabDownAt=0;this._scrollingThroughHistory=!1}else b.keyCode===e.DOM_VK_UP?this.element.value===""||this._scrollingThroughHistory?(this._scrollingThroughHistory=!0,this._setInputInternal(this.history.backward(),!0)):this.getCurrentAssignment().increment():b.keyCode===e.DOM_VK_DOWN?this.element.value===""||this._scrollingThroughHistory?(this._scrollingThroughHistory=!0,this._setInputInternal(this.history.forward(),!0)):this.getCurrentAssignment().decrement():
(this._scrollingThroughHistory=!1,this._caretChange=0,this.update())};c.prototype.getCurrentAssignment=function(){return this.requisition.getAssignmentAt(this.element.selectionStart)};c.prototype.update=function(){var a=this.getInputState();this.requisition.update(a);this.completer.update(a)};c.prototype.getInputState=function(){var a={typed:this.element.value,cursor:{start:this.element.selectionStart,end:this.element.selectionEnd}};a.typed==null&&(a={typed:"",cursor:{start:0,end:0}},console.log('fixing input.typed=""',
a));if(a.cursor.start==null)a.cursor.start=0;return a};d.Inputter=c});
define("gcli/ui/focus",["require","exports","module","gcli/util"],function(b,d){function a(a){a=a||{};this._debug=a.debug||!1;this._blurDelayTimeout=null;this._monitoredElements=[];this.hasFocus=!1;this.blurDelay=a.blurDelay||250;this.document=a.document||document;this.onFocus=c.createEvent("FocusManager.onFocus");this.onBlur=c.createEvent("FocusManager.onBlur");this._onDocumentFocus=function(){this.reportBlur("document")}.bind(this);this.document.addEventListener("focus",this._onDocumentFocus,!0)}
var c=b("gcli/util");a.prototype.destroy=function(){this.document.removeEventListener("focus",this._onDocumentFocus,!0);delete this.document;for(var a=0;a<this._monitoredElements.length;a++){var b=this._monitoredElements[a];console.error("Hanging monitored element: ",b.element);b.element.removeEventListener("focus",b.onFocus,!0);b.element.removeEventListener("blur",b.onBlur,!0)}if(this._blurDelayTimeout)clearTimeout(this._blurDelayTimeout),this._blurDelayTimeout=null};a.prototype.addMonitoredElement=
function(a,b){this._debug&&console.log("FocusManager.addMonitoredElement("+(b||"unknown")+")");var c={element:a,where:b,onFocus:function(){this.reportFocus(b)}.bind(this),onBlur:function(){this.reportBlur(b)}.bind(this)};a.addEventListener("focus",c.onFocus,!0);a.addEventListener("blur",c.onBlur,!0);this._monitoredElements.push(c)};a.prototype.removeMonitoredElement=function(a){for(var b,c,d=0;d<this._monitoredElements.length;d++)this._monitoredElements[d].element===a&&(b=this._monitoredElements[d],
c=d);b?(this._monitoredElements.splice(c,1),a.removeEventListener("focus",b.onFocus,!0),a.removeEventListener("blur",b.onBlur,!0)):this._debug&&console.error("Missing monitor for element. ",a)};a.prototype.reportFocus=function(a){this._debug&&console.log("FocusManager.reportFocus("+(a||"unknown")+")");if(this._blurDelayTimeout)this._debug&&console.log("FocusManager.cancelBlur"),clearTimeout(this._blurDelayTimeout),this._blurDelayTimeout=null;if(!this.hasFocus)this.hasFocus=!0,this.onFocus()};a.prototype.reportBlur=
function(a){this._debug&&console.log("FocusManager.reportBlur("+a+")");if(this.hasFocus)this._blurDelayTimeout?this._debug&&console.log("FocusManager.blurPending"):this._blurDelayTimeout=setTimeout(function(){this._debug&&console.log("FocusManager.blur");this.hasFocus=!1;this.onBlur();this._blurDelayTimeout=null}.bind(this),this.blurDelay)};d.FocusManager=a});define("text!gcli/ui/menu.css",[],function(){return"\n.gcli-menu {\n  width: 100%;\n  overflow: hidden;\n}\n\n.gcli-menu-field {\n  border: 1px solid #aaa;\n  border-top: 0;\n  border-bottom-right-radius: 5px;\n  border-bottom-left-radius: 5px;\n  max-height: 300px;\n  margin: 0 3px;\n  padding: 0;\n  font: -webkit-small-control;\n}\n\n.gcli-menu-template {\n  border-collapse: collapse;\n  width: 100%;\n  margin: 10px 0;\n}\n\n.gcli-menu-option {\n  overflow: hidden;\n  white-space: nowrap;\n  cursor: pointer;\n  padding: 2px;\n}\n\n.gcli-menu-option:hover {\n  background-color: rgb(230, 230, 230);\n}\n\n.gcli-menu-name {\n  padding-top: 0;\n  padding-bottom: 0;\n  -moz-padding-start: 10px;\n  -webkit-padding-start: 10px;\n  -moz-padding-end: 2px;\n  -webkit-padding-end: 2px;\n}\n\n.gcli-menu-desc {\n  font-size: 80%;\n  color: #999;\n}\n\n.gcli-menu-error {\n  overflow: hidden;\n  white-space: nowrap;\n  padding-top: 8px;\n  padding-bottom: 2px;\n  -moz-padding-start: 10px;\n  -webkit-padding-start: 10px;\n  -moz-padding-end: 2px;\n  -webkit-padding-end: 2px;\n  font-size: 80%;\n  color: red;\n}"});
define("text!gcli/ui/menu.html",[],function(){return'\n<table class="gcli-menu-template" aria-live="polite">\n  <tr class="gcli-menu-option" foreach="item in ${items}"\n      onclick="${onItemClick}" title="${item.manual || \'\'}">\n    <td class="gcli-menu-name">${item.name}</td>\n    <td class="gcli-menu-desc">${item.description}</td>\n  </tr>\n  <tr if="${error}">\n    <td class="gcli-menu-error" colspan="2">${error}</td>\n  </tr>\n</table>'});
define("gcli/ui/menu","require,exports,module,gcli/util,gcli/types,gcli/argument,gcli/canon,gcli/ui/domtemplate,text!gcli/ui/menu.css,text!gcli/ui/menu.html".split(","),function(b,d){function a(a){a=a||{};this.document=a.document||document;if(!this.document)throw Error("No document");this.element=e.createElement(this.document,"div");this.element.classList.add(a.menuClass||"gcli-menu");a&&a.field&&this.element.classList.add(a.menuFieldClass||"gcli-menu-field");if(i!=null)this.style=e.importCss(i,this.document);
a=e.createElement(this.document,"div");e.setInnerHtml(a,j);this.optTempl=a.querySelector(".gcli-menu-template");this.items=null}function c(b){a.call(this,b);this.requisition=b.requisition;this.requisition.commandChange.add(this.onCommandChange,this);g.canonChange.add(this.onCommandChange,this);this.onCommandChange()}var e=b("gcli/util").dom;b("gcli/types");var f=b("gcli/argument").Argument,g=b("gcli/canon"),h=b("gcli/ui/domtemplate"),i=b("text!gcli/ui/menu.css"),j=b("text!gcli/ui/menu.html");a.prototype.destroy=
function(){this.style&&(this.style.parentNode.removeChild(this.style),delete this.style);delete this.element;delete this.items;delete this.optTempl};a.prototype.onItemClick=function(){};a.prototype.show=function(a,b){this.error=b;this.items=a;if(this.error==null&&this.items.length===0)this.element.style.display="none";else{var c=this.optTempl.cloneNode(!0);h.template(c,this,{allowEval:!0,stack:"menu.html"});e.clearElement(this.element);this.element.appendChild(c);this.element.style.display="block"}};
a.prototype.hide=function(){this.element.style.display="none"};a.prototype.setMaxHeight=function(a){this.element.style.maxHeight=a+"px"};d.Menu=a;c.prototype=Object.create(a.prototype);c.prototype.destroy=function(){this.requisition.commandChange.remove(this.onCommandChange,this);g.canonChange.remove(this.onCommandChange,this);a.prototype.destroy.call(this)};c.prototype.onItemClick=function(a){var b=this.requisition.commandAssignment.param.type,a=a.currentTarget.querySelector(".gcli-menu-name").innerHTML,
a=new f(a);a.suffix=" ";this.requisition.commandAssignment.setConversion(b.parse(a))};c.prototype.onCommandChange=function(a){var b=this.requisition.commandAssignment.getValue();if(!b||!b.exec){a=this.requisition.commandAssignment.getMessage();b=this.requisition.commandAssignment.getPredictions();b.length===0&&(b=this.requisition.commandAssignment.param.type.parse(new f).getPredictions());b.sort(function(a,b){return a.name.localeCompare(b.name)});var c=[];b.forEach(function(a){a.description&&!a.hidden&&
c.push(a)},this);this.show(c,a)}else a&&a.oldValue===a.newValue||this.hide()};d.CommandMenu=c});
define("gcli/ui/field","require,exports,module,gcli/util,gcli/util,gcli/util,gcli/l10n,gcli/argument,gcli/argument,gcli/argument,gcli/argument,gcli/types,gcli/types,gcli/types,gcli/types/basic,gcli/types/basic,gcli/types/basic,gcli/types/basic,gcli/types/basic,gcli/types/basic,gcli/types/basic,gcli/types/javascript,gcli/ui/menu".split(","),function(b,d){function a(a,b){this.type=a;this.document=b.document;this.requisition=b.requisition}function c(a){if(typeof a!=="function")throw console.error("addField erroring on ",
a),Error("addField requires a Field constructor");C.push(a)}function e(b){if(typeof b!=="string")fields=fields.filter(function(a){return a!==b}),delete fields[b];else if(b instanceof a)e(b.name);else throw console.error("removeField erroring on ",b),Error("removeField requires an instance of Field");}function f(a,b){var c,d=-1;C.forEach(function(b){var e=b.claim(a);e>d&&(d=e,c=b)});if(!c)throw console.error("Unknown field type ",a," in ",C),Error("Can't find field for "+a);return new c(a,b)}function g(b,
c){a.call(this,b,c);this.arg=new s;this.element=o.createElement(this.document,"input");this.element.type="text";this.element.classList.add("gcli-field");this.onInputChange=this.onInputChange.bind(this);this.element.addEventListener("keyup",this.onInputChange,!1);this.fieldChanged=p("StringField.fieldChanged")}function h(b,c){a.call(this,b,c);this.arg=new s;this.element=o.createElement(this.document,"input");this.element.type="number";if(this.type.max)this.element.max=this.type.max;if(this.type.min)this.element.min=
this.type.min;if(this.type.step)this.element.step=this.type.step;this.onInputChange=this.onInputChange.bind(this);this.element.addEventListener("keyup",this.onInputChange,!1);this.fieldChanged=p("NumberField.fieldChanged")}function i(b,c){a.call(this,b,c);this.name=c.name;this.named=c.named;this.element=o.createElement(this.document,"input");this.element.type="checkbox";this.element.id="gcliForm"+this.name;this.onInputChange=this.onInputChange.bind(this);this.element.addEventListener("change",this.onInputChange,
!1);this.fieldChanged=p("BooleanField.fieldChanged")}function j(b,c){a.call(this,b,c);this.items=[];this.element=o.createElement(this.document,"select");this.element.classList.add("gcli-field");this._addOption({name:q.lookupFormat("fieldSelectionSelect",[c.name])});this.type.getLookup().forEach(this._addOption,this);this.onInputChange=this.onInputChange.bind(this);this.element.addEventListener("change",this.onInputChange,!1);this.fieldChanged=p("SelectionField.fieldChanged")}function k(b,c){a.call(this,
b,c);this.onInputChange=this.onInputChange.bind(this);this.arg=new s("","{ "," }");this.element=o.createElement(this.document,"div");this.input=o.createElement(this.document,"input");this.input.type="text";this.input.addEventListener("keyup",this.onInputChange,!1);this.input.classList.add("gcli-field");this.input.classList.add("gcli-field-javascript");this.element.appendChild(this.input);this.menu=new I({document:this.document,field:!0});this.element.appendChild(this.menu.element);this.setConversion(this.type.parse(new s("")));
this.fieldChanged=p("JavascriptField.fieldChanged");this.menu.onItemClick=this.onItemClick.bind(this)}function l(b,c){a.call(this,b,c);this.options=c;this.requisition.assignmentChange.add(this.update,this);this.element=o.createElement(this.document,"div");this.update();this.fieldChanged=p("DeferredField.fieldChanged")}function m(b,c){a.call(this,b,c);this.element=o.createElement(this.document,"div");this.fieldChanged=p("BlankField.fieldChanged")}function n(b,c){a.call(this,b,c);this.options=c;this._onAdd=
this._onAdd.bind(this);this.members=[];this.element=o.createElement(this.document,"div");this.element.classList.add("gcli-array-parent");this.addButton=o.createElement(this.document,"button");this.addButton.classList.add("gcli-array-member-add");this.addButton.addEventListener("click",this._onAdd,!1);this.addButton.innerHTML=q.lookup("fieldArrayAdd");this.element.appendChild(this.addButton);this.container=o.createElement(this.document,"div");this.container.classList.add("gcli-array-members");this.element.appendChild(this.container);
this.onInputChange=this.onInputChange.bind(this);this.fieldChanged=p("ArrayField.fieldChanged")}var o=b("gcli/util").dom,p=b("gcli/util").createEvent,r=b("gcli/util").event.KeyEvent,q=b("gcli/l10n"),s=b("gcli/argument").Argument,w=b("gcli/argument").TrueNamedArgument,t=b("gcli/argument").FalseNamedArgument,x=b("gcli/argument").ArrayArgument;b("gcli/types");var A=b("gcli/types").Conversion,K=b("gcli/types").ArrayConversion,z=b("gcli/types/basic").StringType,v=b("gcli/types/basic").NumberType,u=b("gcli/types/basic").BooleanType,
y=b("gcli/types/basic").BlankType,G=b("gcli/types/basic").SelectionType,E=b("gcli/types/basic").DeferredType,D=b("gcli/types/basic").ArrayType,B=b("gcli/types/javascript").JavascriptType,I=b("gcli/ui/menu").Menu;a.prototype.element=void 0;a.prototype.destroy=function(){delete this.messageElement};a.prototype.setConversion=function(){throw Error("Field should not be used directly");};a.prototype.getConversion=function(){throw Error("Field should not be used directly");};a.prototype.setMessageElement=
function(a){this.messageElement=a};a.prototype.setMessage=function(a){this.messageElement&&(a==null&&(a=""),o.setInnerHtml(this.messageElement,a))};a.prototype.onInputChange=function(a){var b=this.getConversion();this.fieldChanged({conversion:b});this.setMessage(b.message);a.keyCode===r.DOM_VK_RETURN&&this.requisition.exec()};a.claim=function(){throw Error("Field should not be used directly");};a.MATCH=5;a.DEFAULT_MATCH=4;a.IF_NOTHING_BETTER=1;a.NO_MATCH=0;var C=[];d.Field=a;d.addField=c;d.removeField=
e;d.getField=f;g.prototype=Object.create(a.prototype);g.prototype.destroy=function(){a.prototype.destroy.call(this);this.element.removeEventListener("keyup",this.onInputChange,!1);delete this.element;delete this.document;delete this.onInputChange};g.prototype.setConversion=function(a){this.arg=a.arg;this.element.value=a.arg.text;this.setMessage(a.message)};g.prototype.getConversion=function(){this.arg=this.arg.beget(this.element.value,{prefixSpace:!0});return this.type.parse(this.arg)};g.claim=function(b){return b instanceof
z?a.MATCH:a.IF_NOTHING_BETTER};d.StringField=g;c(g);h.prototype=Object.create(a.prototype);h.claim=function(b){return b instanceof v?a.MATCH:a.NO_MATCH};h.prototype.destroy=function(){a.prototype.destroy.call(this);this.element.removeEventListener("keyup",this.onInputChange,!1);delete this.element;delete this.document;delete this.onInputChange};h.prototype.setConversion=function(a){this.arg=a.arg;this.element.value=a.arg.text;this.setMessage(a.message)};h.prototype.getConversion=function(){this.arg=
this.arg.beget(this.element.value,{prefixSpace:!0});return this.type.parse(this.arg)};d.NumberField=h;c(h);i.prototype=Object.create(a.prototype);i.claim=function(b){return b instanceof u?a.MATCH:a.NO_MATCH};i.prototype.destroy=function(){a.prototype.destroy.call(this);this.element.removeEventListener("change",this.onInputChange,!1);delete this.element;delete this.document;delete this.onInputChange};i.prototype.setConversion=function(a){this.element.checked=a.value;this.setMessage(a.message)};i.prototype.getConversion=
function(){var a=this.element.checked,b=this.named?a?new w(this.name):new t:new s(" "+a);return new A(a,b)};d.BooleanField=i;c(i);j.prototype=Object.create(a.prototype);j.claim=function(b){return b instanceof G?a.DEFAULT_MATCH:a.NO_MATCH};j.prototype.destroy=function(){a.prototype.destroy.call(this);this.element.removeEventListener("change",this.onInputChange,!1);delete this.element;delete this.document;delete this.onInputChange};j.prototype.setConversion=function(a){var b;this.items.forEach(function(c){if(c.value&&
c.value===a.value)b=c.index},this);this.element.value=b;this.setMessage(a.message)};j.prototype.getConversion=function(){var a=this.items[this.element.value],b=new s(a.name," ");return new A(a.value?a.value:a,b)};j.prototype._addOption=function(a){a.index=this.items.length;this.items.push(a);var b=o.createElement(this.document,"option");b.innerHTML=a.name;b.value=a.index;this.element.appendChild(b)};d.SelectionField=j;c(j);k.prototype=Object.create(a.prototype);k.claim=function(b){return b instanceof
B?a.MATCH:a.NO_MATCH};k.prototype.destroy=function(){a.prototype.destroy.call(this);this.input.removeEventListener("keyup",this.onInputChange,!1);this.menu.destroy();delete this.element;delete this.input;delete this.menu;delete this.document;delete this.onInputChange};k.prototype.setConversion=function(a){this.arg=a.arg;this.input.value=a.arg.text;var b=0;if(this.type instanceof B){var c=a.arg.text.lastIndexOf(".");c!==-1&&(b=c)}var d=[];a.getPredictions().forEach(function(a){a.hidden||d.push({name:a.name.substring(b),
complete:a.name,description:a.description||""})},this);this.menu.show(d);this.setMessage(a.message)};k.prototype.onItemClick=function(a){this.item=a.currentTarget.item;this.arg=this.arg.beget(this.item.complete,{normalize:!0});a=this.type.parse(this.arg);this.fieldChanged({conversion:a});this.setMessage(a.message)};k.prototype.onInputChange=function(a){this.item=a.currentTarget.item;a=this.getConversion();this.fieldChanged({conversion:a});this.setMessage(a.message)};k.prototype.getConversion=function(){this.arg=
this.arg.beget(this.input.value,{normalize:!0});return this.type.parse(this.arg)};k.DEFAULT_VALUE="__JavascriptField.DEFAULT_VALUE";d.JavascriptField=k;c(k);l.prototype=Object.create(a.prototype);l.prototype.update=function(){var a=this.type.defer();if(a!==this.subtype)this.field&&this.field.destroy(),this.subtype=a,this.field=f(a,this.options),this.field.fieldChanged.add(this.fieldChanged,this),o.clearElement(this.element),this.element.appendChild(this.field.element)};l.claim=function(b){return b instanceof
E?a.MATCH:a.NO_MATCH};l.prototype.destroy=function(){a.prototype.destroy.call(this);this.requisition.assignmentChange.remove(this.update,this);delete this.element;delete this.document;delete this.onInputChange};l.prototype.setConversion=function(a){this.field.setConversion(a)};l.prototype.getConversion=function(){return this.field.getConversion()};d.DeferredField=l;c(l);m.prototype=Object.create(a.prototype);m.claim=function(b){return b instanceof y?a.MATCH:a.NO_MATCH};m.prototype.setConversion=function(){};
m.prototype.getConversion=function(){return new A(null)};d.BlankField=m;c(m);n.prototype=Object.create(a.prototype);n.claim=function(b){return b instanceof D?a.MATCH:a.NO_MATCH};n.prototype.destroy=function(){a.prototype.destroy.call(this);this.addButton.removeEventListener("click",this._onAdd,!1)};n.prototype.setConversion=function(a){o.clearElement(this.container);this.members=[];a.conversions.forEach(function(a){this._onAdd(null,a)},this)};n.prototype.getConversion=function(){for(var a=[],b=new x,
c=0;c<this.members.length;c++){var d=this.members[c].field.getConversion();a.push(d);b.addArgument(d.arg)}return new K(a,b)};n.prototype._onAdd=function(a,b){var c=o.createElement(this.document,"div");c.classList.add("gcli-array-member");this.container.appendChild(c);var d=f(this.type.subtype,this.options);d.fieldChanged.add(function(){var a=this.getConversion();this.fieldChanged({conversion:a});this.setMessage(a.message)},this);b&&d.setConversion(b);c.appendChild(d.element);var e=o.createElement(this.document,
"button");e.classList.add("gcli-array-member-del");e.addEventListener("click",this._onDel,!1);e.innerHTML=q.lookup("fieldArrayDel");c.appendChild(e);c={element:c,field:d,parent:this};c.onDelete=function(){this.parent.container.removeChild(this.element);this.parent.members=this.parent.members.filter(function(a){return a!==this});this.parent.onInputChange()}.bind(c);e.addEventListener("click",c.onDelete,!1);this.members.push(c)};d.ArrayField=n;c(n)});
define("gcli/ui/arg_fetch","require,exports,module,gcli/util,gcli/types,gcli/ui/field,gcli/ui/domtemplate,text!gcli/ui/arg_fetch.css,text!gcli/ui/arg_fetch.html".split(","),function(b,d){function a(a){this.document=a.document||document;this.requisition=a.requisition;if(!this.document)throw Error("No document");this.element=c.createElement(this.document,"div");this.element.className=a.argFetcherClass||"gcli-argfetch";this.fields=[];this.okElement=null;if(h!=null)this.style=c.importCss(h,this.document);
a=c.createElement(this.document,"div");c.setInnerHtml(a,i);this.reqTempl=a.querySelector(".gcli-af-template");this.requisition.commandChange.add(this.onCommandChange,this);this.requisition.inputChange.add(this.onInputChange,this);this.onCommandChange()}var c=b("gcli/util").dom,e=b("gcli/types").Status,f=b("gcli/ui/field").getField,g=b("gcli/ui/domtemplate"),h=b("text!gcli/ui/arg_fetch.css"),i=b("text!gcli/ui/arg_fetch.html");a.prototype.destroy=function(){this.requisition.inputChange.remove(this.onInputChange,
this);this.requisition.commandChange.remove(this.onCommandChange,this);this.style&&(this.style.parentNode.removeChild(this.style),delete this.style);this.fields.forEach(function(a){a.destroy()});delete this.document;delete this.element;delete this.okElement;delete this.reqTempl};a.prototype.onCommandChange=function(a){var b=this.requisition.commandAssignment.getValue();if(!b||!b.exec)this.element.style.display="none";else if(!(a&&a.oldValue===a.newValue))this.fields.forEach(function(a){a.destroy()}),
this.fields=[],a=this.reqTempl.cloneNode(!0),g.template(a,this,{allowEval:!0,stack:"arg_fetch.html"}),c.clearElement(this.element),this.element.appendChild(a),this.okElement.disabled=this.requisition.getStatus()===e.VALID,this.element.style.display="block"};a.prototype.onInputChange=function(){var a=this.requisition.commandAssignment.getValue();if(a&&a.exec)this.okElement.disabled=this.requisition.getStatus()!==e.VALID};a.prototype.getInputFor=function(a){try{var b=f(a.param.type,{document:this.document,
type:a.param.type,name:a.param.name,requisition:this.requisition,required:a.param.isDataRequired(),named:!a.param.isPositionalAllowed()});b.fieldChanged.add(function(b){a.setConversion(b.conversion)},this);a.assignmentChange.add(function(a){b.setConversion(a.conversion)}.bind(this));this.fields.push(b);b.setConversion(this.assignment.conversion);a.field=b;return b.element}catch(c){return console.error(c),""}};a.prototype.linkMessageElement=function(a,b){var c=a.field;delete a.field;if(c==null)return console.error("Missing field for "+
a.param.name),"Missing field";c.setMessageElement(b);return""};a.prototype.onFormOk=function(){this.requisition.exec()};a.prototype.onFormCancel=function(){this.requisition.clear()};a.prototype.setMaxHeight=function(a){this.fields.forEach(function(b){b.menu&&b.menu.setMaxHeight(a-105)})};d.ArgFetcher=a});
define("gcli/ui/display","require,exports,module,gcli/util,gcli/ui/arg_fetch,gcli/ui/menu,gcli/ui/command_output_view,gcli/ui/domtemplate,gcli/ui/inputter,gcli/ui/focus,text!gcli/ui/display.css,text!gcli/ui/display.html".split(","),function(b,d){function a(a){this.document=a.document||document;this.window=this.document.defaultView;this.autoHide=!1;this.inputter=a.inputter||new i(a);this.menu=a.menu||new f(a);this.argFetcher=a.argFetcher||new e(a);if(k!=null)this.style=c.importCss(k,this.document);
this.element=a.displayElement||"gcli-display";if(typeof this.element==="string"&&(this.element=this.document.getElementById(this.element),!this.element))this.element=c.createElement(this.document,"div"),this.element.id="gcli-display",this.autoHide=!0,this.inputter&&this.inputter.appendAfter(this.element);if(a.autoHide!=null)this.autoHide=a.autoHide;if(this.autoHide)this.element.classList.add("gcli-display-autohide"),this.resizer=this.resizer.bind(this),this.window.addEventListener("resize",this.resizer,
!1);this.outputList=void 0;c.setInnerHtml(this.element,l);h.template(this.element,this,{stack:"display.html"});this.outputList=new g(this.outputList,a);if(a.useFocusManager)this.focusManager=a.focusManager||new j(a),this.focusManager.onFocus.add(this.show,this),this.focusManager.onBlur.add(this.hide,this),this.focusManager.addMonitoredElement(this.element,"display");this._outputHeight=a.outputHeight||300;this.autoHide&&this.setOutputHeight(this._outputHeight)}var c=b("gcli/util").dom,e=b("gcli/ui/arg_fetch").ArgFetcher,
f=b("gcli/ui/menu").CommandMenu,g=b("gcli/ui/command_output_view").CommandOutputListView,h=b("gcli/ui/domtemplate"),i=b("gcli/ui/inputter").Inputter,j=b("gcli/ui/focus").FocusManager,k=b("text!gcli/ui/display.css"),l=b("text!gcli/ui/display.html");a.prototype.destroy=function(){this.autoHide&&this.window.removeEventListener("resize",this.resizer,!1);this.focusManager&&(this.focusManager.removeMonitoredElement(this.element),this.focusManager.onFocus.remove(this.show,this),this.focusManager.onBlur.remove(this.hide,
this));this.style&&(this.style.parentNode.removeChild(this.style),delete this.style);delete this.document;delete this.element};a.prototype.setOutputHeight=function(a){if(a==null)this._outputHeight=a;if(this._outputHeight!==-1)this.element.style.height=this._outputHeight+"px"};a.prototype.show=function(){this.element.style.display="block"};a.prototype.hide=function(){this.element.style.display="none"};a.prototype.resizer=function(){var a=this.inputter.element.getBoundingClientRect();a.width=a.right-
a.left;a.height=a.bottom-a.top;this.element.style.top="auto";this.element.style.bottom=this.document.documentElement.clientHeight-a.top+"px";this.element.style.left=a.left+"px";this.element.style.width=a.width-80+"px"};d.Display=a});
define("gcli/index","require,exports,module,gcli/canon,gcli/canon,gcli/nls/strings,gcli/l10n,gcli/types/basic,gcli/types/javascript,gcli/types/node,gcli/types/resource,gcli/cli,gcli/cli,gcli/ui/display".split(","),function(b,d){d.addCommand=b("gcli/canon").addCommand;d.removeCommand=b("gcli/canon").removeCommand;b("gcli/nls/strings");b("gcli/l10n").registerStringsSource("gcli/nls/strings");b("gcli/types/basic").startup();b("gcli/types/javascript").startup();b("gcli/types/node").startup();b("gcli/types/resource").startup();
b("gcli/cli").startup();var a=b("gcli/cli").Requisition,c=b("gcli/ui/display").Display;d.createView=function(b){b=b||{};b.requisition=b.requisition||new a;b.display=new c(b)}});
define("orion/widgets/Console","i18n!orion/widgets/nls/messages,gcli/index,gcli/types,gcli/types/basic,gcli/ui/field,gcli/argument,gcli/util,gcli/ui/menu".split(","),function(b,d,a,c,e,f,g,h){function i(){}i.prototype=Object.create(c.DeferredType.prototype);var j;j={CompletionStatus:{MATCH:0,PARTIAL:1,ERROR:2}};j.Console=function(){function c(a,b){this._init(a,b)}c.prototype={_init:function(a,c){function j(a,b){e.Field.call(this,a,b);this.onInputChange=this.onInputChange.bind(this);this.arg=new f.Argument;
this.element=g.dom.createElement(this.document,"div");this.element.className="orion";this.menu=new h.Menu({document:this.document,field:!0});this.element.appendChild(this.menu.element);this.fieldChanged=g.createEvent("DirectoryField.fieldChanged");this.menu.onItemClick=this.onItemClick.bind(this)}if(!a)throw b["no input"];if(!c)throw b["no output"];if(Range.prototype.createContextualFragment){var k=document.createElement("div");k.id="gcli-display";k.style.height="100%";k.style.width="100%";c.appendChild(k);
k=document.createElement("div");k.id="gcli-input-area";k.style.height="100%";k.style.width="100%";a.appendChild(k);var p=document.createElement("input");p.id="gcli-input";p.className="inputText";p.style.paddingLeft="1em";p.style.width="100%";k.appendChild(p);p=document.createElement("div");p.id="gcli-row-complete";p.style.position="absolute";p.style.top="2px";p.style.zIndex="-1000";k.appendChild(p);d.createView();j.prototype=Object.create(e.Field.prototype);j.prototype.destroy=function(){e.Field.prototype.destroy.call(this);
this.menu.destroy();delete this.element;delete this.menu;delete this.document;delete this.onInputChange};j.prototype.setConversion=function(a){this.arg=a.arg;this.setMessage(a.message);var b=[];a.getPredictions().forEach(function(a){a.hidden||b.push({name:a.name,complete:a.name,description:a.description||""})},this);this.menu.show(b);if(a.then){var c=this;a.then(function(){c.element&&c.setConversion(c.getConversion())})}};j.prototype.onItemClick=function(a){this.arg=this.arg.beget(a.currentTarget.querySelector(".gcli-menu-name").innerHTML);
a=this.type.parse(this.arg);this.fieldChanged({conversion:a});this.setMessage(a.message)};j.claim=function(a){return a instanceof i?e.Field.MATCH+1:e.Field.NO_MATCH};e.addField(j)}else k=document.createElement("label"),k.innerText=b["Sorry, the Console is not supported on your browser."],c.appendChild(k)},addCommand:function(a){if(!a.exec)a.exec=a.callback;if(!a.params)a.params=a.parameters;d.addCommand(a)},addField:function(){},addType:function(b){function c(){}c.prototype=Object.create(i.prototype);
c.prototype.name=b.name;c.prototype.parse=function(c){var d=b.parse(c.toString().trim()),e=a.Status.VALID;if(d.status)switch(d.status){case j.CompletionStatus.ERROR:e=a.Status.ERROR;break;case j.CompletionStatus.PARTIAL:e=a.Status.INCOMPLETE}return new a.Conversion(d.value,c,e,d.message,d.predictions)};if(b.stringify)c.prototype.stringify=function(a){return b.stringify(a)};if(b.increment)c.prototype.increment=function(a){return b.increment(a)};if(b.decrement)c.prototype.decrement=function(a){return b.decrement(a)};
a.registerType(c)}};return c}();return j});var eclipse=eclipse||{};eclipse.ServiceProvider=function(b,d){this.dispatchEvent=function(a){d.dispatchEvent.apply(d,[b,a].concat(Array.prototype.slice.call(arguments,1)))};this.unregister=function(){d.unregisterServiceProvider(b)}};
eclipse.PluginProvider=function(b){function d(a){g&&(typeof ArrayBuffer==="undefined"&&(a=JSON.stringify(a)),g===self?g.postMessage(a):g.postMessage(a,"*"))}function a(a,b){return b&&b instanceof XMLHttpRequest?{status:b.status,statusText:b.statusText}:b}function c(b){if(b.source===g){var c=typeof b.data!=="string"?b.data:JSON.parse(b.data),b=e[c.serviceId].implementation,f=b[c.method],h={id:c.id,result:null,error:null};try{var m=f.apply(b,c.params);m&&typeof m.then==="function"?m.then(function(a){h.result=
a;d(h)},function(b){h.error=b?JSON.parse(JSON.stringify(b,a)):b;d(h)},function(){d({requestId:c.id,method:"progress",params:Array.prototype.slice.call(arguments)})}):(h.result=m,d(h))}catch(n){h.error=n?JSON.parse(JSON.stringify(n,a)):n,d(h)}}}var e=[],f=!1,g=null,h={dispatchEvent:function(a,b){if(!f)throw Error("Cannot dispatchEvent. Plugin Provider not connected");var c={serviceId:a,method:"dispatchEvent",params:[b].concat(Array.prototype.slice.call(arguments,2))};d(c)},unregisterServiceProvider:function(a){if(f)throw Error("Cannot unregister. Plugin Provider is connected");
e[a]=null}};this.registerServiceProvider=function(a,b,c){if(f)throw Error("Cannot register. Plugin Provider is connected");var d=null,g=[];for(d in b)typeof b[d]==="function"&&g.push(d);d=e.length;e[d]={type:a,methods:g,implementation:b,properties:c||{}};return new eclipse.ServiceProvider(d,h)};this.connect=function(a,h){if(!f){if(typeof window==="undefined")g=self;else if(window!==window.parent)g=window.parent;else if(window.opener!==null)g=window.opener;else{h&&h("No valid plugin target");return}addEventListener("message",
c,!1);for(var k=[],l=0;l<e.length;l++)e[l]&&k.push({serviceId:l,type:e[l].type,methods:e[l].methods,properties:e[l].properties});d({method:"plugin",params:[{services:k,metadata:b||{}}]});f=!0}a&&a()};this.disconnect=function(){f&&(removeEventListener("message",c),g=null,f=!1)}};define("orion/plugin",function(){});
define("dojox/form/uploader/Base","dojo,dijit,dojox,dojox/form/uploader/Base,dijit/_Widget,dijit/_Templated".split(","),function(b,d){b.declare("dojox.form.uploader.Base",[d._Widget,d._Templated],{getForm:function(){if(!this.form)for(var a=this.domNode;a&&a.tagName&&a!==document.body;){if(a.tagName.toLowerCase()=="form"){this.form=a;break}a=a.parentNode}return this.form},getUrl:function(){if(this.uploadUrl)this.url=this.uploadUrl;if(this.url)return this.url;if(this.getForm())this.url=this.form.action;
return this.url},connectForm:function(){this.url=this.getUrl();if(!this._fcon&&this.getForm())this._fcon=!0,this.connect(this.form,"onsubmit",function(a){b.stopEvent(a);this.submit(b.formToObject(this.form))})},supports:function(a){if(!this._hascache)this._hascache={testDiv:b.create("div"),testInput:b.create("input",{type:"file"}),xhr:window.XMLHttpRequest?new XMLHttpRequest:{}},b.style(this._hascache.testDiv,"opacity",0.7);switch(a){case "FormData":return!!window.FormData;case "sendAsBinary":return!!this._hascache.xhr.sendAsBinary;
case "opacity":return b.style(this._hascache.testDiv,"opacity")==0.7;case "multiple":if(this.force=="flash"||this.force=="iframe")break;a=b.attr(this._hascache.testInput,"multiple");return a===!0||a===!1}return!1},getMimeType:function(){return"application/octet-stream"},getFileType:function(a){return a.substring(a.lastIndexOf(".")+1).toUpperCase()},convertBytes:function(a){var b=Math.round(a/1024*1E5)/1E5,d=Math.round(a/1048576*1E5)/1E5,f=Math.round(a/1073741824*1E5)/1E5,g=a;b>1&&(g=b.toFixed(1)+
" kb");d>1&&(g=d.toFixed(1)+" mb");f>1&&(g=f.toFixed(1)+" gb");return{kb:b,mb:d,gb:f,bytes:a,value:g}}})});
define("dojox/form/Uploader",["dojo","dijit","dojox","dojox/form/uploader/Base"],function(b,d,a){b.declare("dojox.form.Uploader",[a.form.uploader.Base],{uploadOnSelect:!1,tabIndex:0,multiple:!1,label:"Upload...",url:"",name:"uploadedfile",flashFieldName:"",uploadType:"form",_nameIndex:0,widgetsInTemplate:!0,templateString:'<div class="dojoxFileInput"><div dojoType="dijit.form.Button" dojoAttachPoint="button">${label}</div></div>',postMixInProperties:function(){this._inputs=[];this._getButtonStyle(this.srcNodeRef);
this.inherited(arguments)},postCreate:function(){var a=!1,d=this._getNodePosition(this.domNode);if(!this.btnSize.w||!this.btnSize.h)b.body().appendChild(this.domNode),this._getButtonStyle(this.domNode),a=!0;this._setButtonStyle();a&&b.place(this.domNode,d.node,d.pos);this.inherited(arguments)},onChange:function(){},onBegin:function(){},onProgress:function(){},onComplete:function(){this.reset()},onCancel:function(){},onAbort:function(){},onError:function(){},upload:function(){},submit:function(){},
reset:function(){this._disconnectButton();b.forEach(this._inputs,b.destroy,b);this._inputs=[];this._nameIndex=0;this._createInput()},getFileList:function(){var a=[];this.supports("multiple")?b.forEach(this.inputNode.files,function(b,d){a.push({index:d,name:b.name,size:b.size,type:b.type})},this):b.forEach(this._inputs,function(b,d){a.push({index:d,name:b.value.substring(b.value.lastIndexOf("\\")+1),size:0,type:b.value.substring(b.value.lastIndexOf(".")+1)})},this);return a},_getValueAttr:function(){return this.getFileList()},
_setValueAttr:function(){console.error("Uploader value is read only")},_getDisabledAttr:function(){return this._disabled},_setDisabledAttr:function(a){this._disabled!=a&&(this.button.set("disabled",a),b.style(this.inputNode,"display",a?"none":"block"))},_getNodePosition:function(a){return a.previousSibling?{node:a.previousSibling,pos:"after"}:{node:a.nextSibling,pos:"before"}},_getButtonStyle:function(a){this.btnSize=a?b.marginBox(a):{w:80,h:25}},_setButtonStyle:function(){var a=!0;if(!this.domNode.parentNode||
!this.domNode.parentNode.tagName)document.body.appendChild(this.domNode),a=!1;b.style(this.domNode,{width:this.btnSize.w+"px",height:this.btnSize.h+4+"px",overflow:"hidden",position:"relative"});this.inputNodeFontSize=Math.max(2,Math.max(Math.ceil(this.btnSize.w/60),Math.ceil(this.btnSize.h/15)));this._createInput();b.style(this.button.domNode,{margin:"0px",display:"block",verticalAlign:"top"});b.style(this.button.domNode.firstChild,{margin:"0px",display:"block"});a||document.body.removeChild(this.domNode)},
_createInput:function(){this._inputs.length&&(b.style(this.inputNode,{top:"500px"}),this._disconnectButton(),this._nameIndex++);var a;a=this.supports("multiple")?this.name+"s[]":this.name+(this.multiple?this._nameIndex:"");this.inputNode=b.create("input",{type:"file",name:a,className:"dojoxInputNode"},this.domNode,"first");this.supports("multiple")&&this.multiple&&b.attr(this.inputNode,"multiple",!0);this._inputs.push(this.inputNode);b.style(this.inputNode,{fontSize:this.inputNodeFontSize+"em"});
a=b.marginBox(this.inputNode);b.style(this.inputNode,{position:"absolute",top:"-2px",left:"-"+(a.w-this.btnSize.w-2)+"px",opacity:0});this._connectButton()},_connectButton:function(){this._cons=[];var a=b.hitch(this,function(a){this._cons.push(b.connect(this.inputNode,a,this,function(){this.button._cssMouseEvent({type:a})}))});a("mouseover");a("mouseout");a("mousedown");this._cons.push(b.connect(this.inputNode,"change",this,function(a){this.onChange(this.getFileList(a));!this.supports("multiple")&&
this.multiple&&this._createInput()}));this.button.set("tabIndex",-1);if(this.tabIndex>-1){this.inputNode.tabIndex=this.tabIndex;var d=b.style(this.button.domNode.firstChild,"border");this._cons.push(b.connect(this.inputNode,"focus",this,function(){b.style(this.button.domNode.firstChild,"border","1px dashed #ccc")}));this._cons.push(b.connect(this.inputNode,"blur",this,function(){b.style(this.button.domNode.firstChild,"border",d)}))}},_disconnectButton:function(){b.forEach(this._cons,b.disconnect,
b)}});(function(){a.form.UploaderOrg=a.form.Uploader;var c=[a.form.UploaderOrg];a.form.addUploaderPlugin=function(a){c.push(a);b.declare("dojox.form.Uploader",c,{})}})()});
define("dojox/form/uploader/plugins/HTML5",["dojo","dijit","dojox","dojox/form/Uploader"],function(b,d,a){b.declare("dojox.form.uploader.plugins.HTML5",[],{errMsg:"Error uploading files. Try checking permissions",uploadType:"html5",postCreate:function(){this.connectForm();this.inherited(arguments);this.uploadOnSelect&&this.connect(this,"onChange","upload")},upload:function(a){this.onBegin(this.getFileList());this.supports("FormData")?this.uploadWithFormData(a):this.supports("sendAsBinary")&&this.sendAsBinary(a)},
submit:function(a){a=a?a.tagName?a:this.getForm():this.getForm();a=b.formToObject(a);console.log("form data:",a);this.upload(a)},sendAsBinary:function(a){if(this.getUrl()){var b="---------------------------"+(new Date).getTime(),d=this.createXhr();d.setRequestHeader("Content-Type","multipart/form-data; boundary="+b);if(a=this._buildRequestBody(a,b))d.sendAsBinary(a);else this.onError(this.errMsg)}else console.error("No upload url found.",this)},uploadWithFormData:function(a){if(this.getUrl()){var d=
new FormData;b.forEach(this.inputNode.files,function(a){d.append(this.name+"s[]",a)},this);if(a)for(var f in a)d.append(f,a[f]);this.createXhr().send(d)}else console.error("No upload url found.",this)},_xhrProgress:function(a){if(a.lengthComputable){var b={bytesLoaded:a.loaded,bytesTotal:a.total,type:a.type,timeStamp:a.timeStamp};a.type=="load"?(b.percent="100%",b.decimal=1):(b.decimal=a.loaded/a.total,b.percent=Math.ceil(a.loaded/a.total*100)+"%");this.onProgress(b)}},createXhr:function(){var a=
new XMLHttpRequest,d;a.upload.addEventListener("progress",b.hitch(this,"_xhrProgress"),!1);a.addEventListener("load",b.hitch(this,"_xhrProgress"),!1);a.addEventListener("error",b.hitch(this,function(a){this.onError(a);clearInterval(d)}),!1);a.addEventListener("abort",b.hitch(this,function(a){this.onAbort(a);clearInterval(d)}),!1);a.onreadystatechange=b.hitch(this,function(){a.readyState===4&&(console.info("COMPLETE"),clearInterval(d),this.onComplete(b.eval(a.responseText)))});a.open("POST",this.getUrl());
d=setInterval(b.hitch(this,function(){}),250);return a},_buildRequestBody:function(a,d){var f="",d="--"+d,g=[];b.forEach(this.inputNode.files,function(a,b){var c=this.name+"s[]",h=this.inputNode.files[b].fileName,m;try{m=this.inputNode.files[b].getAsBinary()+"\r\n",f+=d+"\r\n",f+="Content-Disposition: form-data; ",f+='name="'+c+'"; ',f+='filename="'+h+'"\r\n',f+="Content-Type: "+this.getMimeType()+"\r\n\r\n",f+=m}catch(n){g.push({index:b,name:h})}},this);g.length&&g.length>=this.inputNode.files.length&&
(this.onError({message:this.errMsg,filesInError:g}),f=!1);if(!f)return!1;if(a)for(var h in a)f+=d+"\r\n",f+="Content-Disposition: form-data; ",f+='name="'+h+'"\r\n\r\n',f+=a[h]+"\r\n";f+=d+"--\r\n";return f}});a.form.addUploaderPlugin(a.form.uploader.plugins.HTML5)});
define("dojox/form/uploader/plugins/IFrame","dojo,dijit,dojox,dojo/io/iframe,dojox/form/uploader/plugins/HTML5,dojox/form/Uploader".split(","),function(b,d,a){b.declare("dojox.form.uploader.plugins.IFrame",[],{force:"",postMixInProperties:function(){this.inherited(arguments);if(!this.supports("multiple"))this.uploadType="iframe"},upload:function(a){if(!this.supports("multiple")||this.force=="iframe")this.uploadIFrame(a),b.stopEvent(a)},uploadIFrame:function(){this.getUrl();b.io.iframe.send({url:this.getUrl(),
form:this.form,handleAs:"json",error:b.hitch(this,function(a){console.error("HTML Upload Error:"+a.message)}),load:b.hitch(this,function(a){this.onComplete(a)})})}});a.form.addUploaderPlugin(a.form.uploader.plugins.IFrame)});
define("dojox/form/uploader/FileList","dojo,dijit,dojox,dojox/form/uploader/Base,dijit/_Widget,dijit/_Templated".split(","),function(b,d,a){b.declare("dojox.form.uploader.FileList",[a.form.uploader.Base],{uploaderId:"",uploader:null,headerIndex:"#",headerType:"Type",headerFilename:"File Name",headerFilesize:"Size",_upCheckCnt:0,rowAmt:0,templateString:'<div class="dojoxUploaderFileList"><div dojoAttachPoint="progressNode" class="dojoxUploaderFileListProgress"><div dojoAttachPoint="percentBarNode" class="dojoxUploaderFileListProgressBar"></div><div dojoAttachPoint="percentTextNode" class="dojoxUploaderFileListPercentText">0%</div></div><table class="dojoxUploaderFileListTable"><tr class="dojoxUploaderFileListHeader"><th class="dojoxUploaderIndex">${headerIndex}</th><th class="dojoxUploaderIcon">${headerType}</th><th class="dojoxUploaderFileName">${headerFilename}</th><th class="dojoxUploaderFileSize">${headerFilesize}</th></tr><tr ><td colSpan="4" class="dojoxUploaderFileListContainer" dojoAttachPoint="containerNode"><table class="dojoxUploaderFileListContent" dojoAttachPoint="listNode"></table></td><tr></table><div>',
postCreate:function(){this.setUploader();this.hideProgress()},reset:function(){for(var a=0;a<this.rowAmt;a++)this.listNode.deleteRow(0);this.rowAmt=0},setUploader:function(){if(!this.uploaderId&&!this.uploader)console.warn("uploaderId not passed to UploaderFileList");else if(this.uploaderId&&!this.uploader)this.uploader=d.byId(this.uploaderId);else if(this._upCheckCnt>4){console.warn("uploader not found for ID ",this.uploaderId);return}this.uploader?(this.connect(this.uploader,"onChange","_onUploaderChange"),
this.connect(this.uploader,"reset","reset"),this.connect(this.uploader,"onBegin",function(){this.showProgress(!0)}),this.connect(this.uploader,"onProgress","_progress"),this.connect(this.uploader,"onComplete",function(){setTimeout(b.hitch(this,function(){this.hideProgress(!0)}),1250)})):(this._upCheckCnt++,setTimeout(b.hitch(this,"setUploader"),250))},hideProgress:function(a){this._hideShowProgress(a?{ani:!0,endDisp:"none",beg:15,end:0}:{endDisp:"none",ani:!1})},showProgress:function(a){this._hideShowProgress(a?
{ani:!0,endDisp:"block",beg:0,end:15}:{endDisp:"block",ani:!1})},_progress:function(a){this.percentTextNode.innerHTML=a.percent;b.style(this.percentBarNode,"width",a.percent)},_hideShowProgress:function(a){var d=this.progressNode,f=function(){b.style(d,"display",a.endDisp)};a.ani?(b.style(d,"display","block"),b.animateProperty({node:d,properties:{height:{start:a.beg,end:a.end,units:"px"}},onEnd:f}).play()):f()},_onUploaderChange:function(a){this.reset();b.forEach(a,function(a,b){this._addRow(b+1,
this.getFileType(a.name),a.name,a.size)},this)},_addRow:function(a,d,f,g){var h,i=this.listNode.insertRow(-1);h=i.insertCell(-1);b.addClass(h,"dojoxUploaderIndex");h.innerHTML=a;h=i.insertCell(-1);b.addClass(h,"dojoxUploaderIcon");h.innerHTML=d;h=i.insertCell(-1);b.addClass(h,"dojoxUploaderFileName");h.innerHTML=f;h=i.insertCell(-1);b.addClass(h,"dojoxUploaderSize");h.innerHTML=this.convertBytes(g).value;this.rowAmt++}})});
define("orion/widgets/ImportDialog","i18n!orion/widgets/nls/messages,dojo,dijit,dojox,dijit/Dialog,dojo/data/ItemFileReadStore,dojox/form/Uploader,dojox/form/uploader/FileList,dojox/form/uploader/plugins/IFrame,dijit/form/Button,dijit/ProgressBar,orion/widgets/_OrionDialogMixin,text!orion/widgets/templates/ImportDialog.html,dojo/io/iframe".split(","),function(b,d,a){d.declare("orion.widgets.ImportDialog",[a.Dialog,orion.widgets._OrionDialogMixin],{widgetsInTemplate:!0,templateString:'<div class="dijitDialog" tabindex="-1" waiRole="dialog" waiState="labelledby-${id}_title"><div data-dojo-attach-point="titleBar" class="dijitDialogTitleBar"><span data-dojo-attach-point="titleNode" class="dijitDialogTitle" id="${id}_title"></span><span data-dojo-attach-point="closeButtonNode" class="dijitDialogCloseIcon" data-dojo-attach-event="onclick:onCancel" title="${buttonCancel}"><span data-dojo-attach-point="closeText" class="closeText" title="${buttonCancel}">x</span></span></div><div ondragover="event.preventDefault()" data-dojo-attach-point="containerNode" class="dijitDialogPaneContent"><div class="uploadContainer" data-dojo-attach-event="drop:drop,dragenter:dragEnter,dragexit:dragExit,dragover:dragOver"><div class="dottedOutline"><div data-dojo-attach-point="dragArea" class="floatingSection"><div class="uploadInstruction">'+
b["Drag a File or Zip here"]+'</div><div class="tipInstruction">'+b["or if you prefer"]+'</div><form data-dojo-attach-point="importform" method="post" id="importDialog.myForm" enctype="multipart/form-data" ><input class="uploadBrowser" data-dojo-attach-point="importloader" name="uploadedfile" multiple="false" type="file" id="importLoader" force="iframe" data-dojo-type="dojox.form.Uploader" style="height: 20px" label="'+b["Browse..."]+'" ><input type="submit" label="Finish" value="OK" dojoType="dijit.form.Button" style="visibility:hidden;padding: 20 0 10 0; float: right; clear: both;"/></form></div></div></div></div></div>',
constructor:function(){this.inherited(arguments);this.options=arguments[0]||{}},postMixInProperties:function(){this.inherited(arguments);this.title=b["Import a file or zip"]},handleReadyState:function(){this.req.readyState===4&&(this.hide(),this.options.func())},uploadDroppedFiles:function(a){this.req=new XMLHttpRequest;this.req.open("post",this.options.importLocation,!0);this.req.setRequestHeader("X-Requested-With","XMLHttpRequest");this.req.setRequestHeader("Slug",a.name);a.name.indexOf(".zip")!==
a.name.length-4&&this.req.setRequestHeader("X-Xfer-Options","raw");this.req.setRequestHeader("Content-Type",a.type);this.req.onreadystatechange=d.hitch(this,"handleReadyState");this.req.send(a)},upload:function(a){a&&this.importloader.upload(a)},handleFiles:function(a){for(this.importloader.form[0].files=a;0<a.length;a++)this.uploadDroppedFiles(a[0])},dragEnter:function(){return!1},dragExit:function(){return!1},dragOver:function(){return!1},drop:function(a){a.preventDefault();a.stopPropagation();
a=a.dataTransfer.files;a.length>0&&this.handleFiles(a)},postCreate:function(){this.inherited(arguments);d.style(this.importloader.domNode,"left","100px");d.style(this.titleBar,"padding","10px 10px 10px");this.importloader.force="iframe";this.importloader.preventDefault=function(){};this.importloader.stopPropagation=function(){};this.importform.action=this.options.importLocation;this.importloader.url=this.options.importLocation;d.connect(this.importloader,"onChange",d.hitch(this,function(){this.importloader.upload({preventDefault:function(){},
stopPropagation:function(){}})}));d.connect(this.importloader,"onError",d.hitch(this,function(){setTimeout(d.hitch(this,function(){this.hide()}),2E3)}));d.connect(this.importloader,"onComplete",d.hitch(this,function(){setTimeout(d.hitch(this,function(){this.hide();this.options.func()}),2E3)}));d.connect(this.importloader,"onKeyPress",function(a){a.keyCode===d.keys.ENTER&&a.stopPropagation()})}})});
define("orion/extensionCommands","require,dojo,orion/util,orion/commands,orion/editor/regex,orion/contentTypes,orion/URITemplate,orion/i18nUtil,orion/widgets/NewItemDialog,orion/widgets/DirectoryPrompterDialog,orion/widgets/ImportDialog,orion/widgets/SFTPConnectionDialog".split(","),function(b,d,a,c,e,f,g,h){var i={},b=window.location.href.split("#")[0],j=b.substring(0,b.length-window.location.pathname.length);i._cloneItemWithoutChildren=function l(a){if(a===null||typeof a!=="object")return a;var b=
a.constructor(),c;for(c in a)c!=="children"&&c!=="Children"&&(b[c]=l(a[c]));return b};i._createOpenWithCommands=function(a){function b(a,c){for(var d=a.getServiceReferences("orion.navigate.openWith"),e=[],f=0;f<d.length;f++){var g=d[f];g.getProperty("editor")===c.id&&(g=g.getProperty("contentType"),g instanceof Array?e=e.concat(g):g!==null&&typeof g!=="undefined"&&e.push(g))}return e}for(var c=function(){for(var b=a.getServiceReferences("orion.edit.editor"),c=[],d=0;d<b.length;d++){var e=b[d],f=e.getProperty("id");
c.push({id:f,name:e.getProperty("name"),nameKey:e.getProperty("nameKey"),nls:e.getProperty("nls"),uriTemplate:e.getProperty("orionTemplate")||e.getProperty("uriTemplate")})}return c}(),d=function(a){for(a=a.getServiceReferences("orion.navigate.openWith.default");0<a.length;)return{editor:a[0].getProperty("editor")};return null}(a),e=[],f=0;f<c.length;f++){var g=c[f],h=d&&d.editor===g.id,i=b(a,g);i.length&&e.push({properties:{name:g.name||g.id,nameKey:g.nameKey,id:"eclipse.openWithCommand."+g.id,tooltip:g.name,
tooltipKey:g.nameKey,contentType:i,uriTemplate:g.uriTemplate,nls:g.nls,forceSingleItem:!0,isEditor:h?"default":"editor"},service:{}})}return e};i._makeValidator=function(a,b,c,e){function h(a,b,c,d){var e=c.match,f;if(b.indexOf("|")>=0)return f=b.substring(0,b.indexOf("|")),b=b.substring(b.indexOf("|")+1),h(a,f,c,d)?!0:h(a,b,c,d);else if(b.indexOf(":")>=0)return f=b.substring(0,b.indexOf(":")),b=b.substring(b.indexOf(":")+1),a[f]?h(a[f],b,c,d):!1;else{a:{f=!1;var g;if(a[b]){if(e)if(typeof e==="string"){if(!typeof(a[b]===
"string")){c=!1;break a}if(c.variableName){if(e=RegExp(e).exec(a[b]))f=e[0],g=c.variableMatchPosition==="before"?a[b].substring(0,e.index):c.variableMatchPosition==="after"?a[b].substring(e.index+f.length):c.variableMatchPosition==="only"?f:a[b],f=!0}else{c=RegExp(e).test(a[b]);break a}}else a[b]===e&&(g=a[b],f=!0);else g=a[b],f=!0;if(f&&c.variableName&&(d[c.variableName]=g,d.itemCached=a,c.replacements))for(a=0;a<c.replacements.length;a++)b=!1,c.replacements[a].pattern?d[c.variableName]=d[c.variableName].replace(RegExp(c.replacements[a].pattern),
c.replacements[a].replacement||""):b=!0,b&&window.console.log("Invalid replacements specified in validation property.  "+c.replacements[a]);c=f}else c=!1}return c}}b={info:a};b.validationFunction=d.hitch(b,function(b){typeof e==="function"&&(b=e.call(this,b));if(b){if(d.isArray(b)){if((this.info.forceSingleItem||this.info.uriTemplate)&&b.length!==1)return!1;if(b.length<1)return!1}else b=[b];for(var g=0;g<b.length;g++){var i;a:{var j=b[g],m=c;if(this.info.validationProperties)for(i=0;i<this.info.validationProperties.length;i++){var x=
this.info.validationProperties[i];if(x.source){if(!h(j,x.source,x,this)){i=!1;break a}}else{window.console.log("Invalid validationProperties in "+a.id+".  No source property specified.");i=!1;break a}}if(this.info.contentType&&m){x=!1;if(j=f.getFilenameContentType(j.Name,m))for(i=0;i<this.info.contentType.length;i++)if(j.id===this.info.contentType[i]){x=!0;break}i=x}else i=!0}if(!i)return!1}return!0}return!1});b.generatesURI=d.hitch(b,function(){return!!this.info.uriTemplate});b.getURI=d.hitch(b,
function(a){if(this.info.uriTemplate){var b={},c;for(c in a)a.hasOwnProperty(c)&&(b[c]=a[c]);if(this.info.validationProperties)for(c=0;c<this.info.validationProperties.length;c++){var d=this.info.validationProperties[c];d.source&&d.variableName&&(this.itemCached===a&&this[d.variableName]||h(a,d.source,d,this),a[d.variableName]?window.console.log("Variable name "+d.variableName+" in the extension "+this.info.id+" conflicts with an existing property in the item metadata."):b[d.variableName]=this[d.variableName])}b.OrionHome=
j;a=new g(this.info.uriTemplate);return window.decodeURIComponent(a.expand(b))}return null});return b};i._createCommandOptions=function(a,b,c,e,f,g){function j(h,q){var s=i._makeValidator(a,c,e,g);h.visibleWhen=s.validationFunction;if(f)s.generatesURI()?h.hrefCallback=d.hitch(s,function(a){return this.getURI(d.isArray(a.items)?a.items[0]:a.items)}):h.callback=d.hitch(a,function(a){var e;if(this.forceSingleItem)a=d.isArray()?a.items[0]:a.items,e=i._cloneItemWithoutChildren(a);else if(d.isArray(a.items)){e=
[];for(var f=0;f<a.items.length;f++)e.push(i._cloneItemWithoutChildren(a.items[f]))}else e=i._cloneItemWithoutChildren(a.items);b.run?b.run(e):c&&c.getService(b).run(e)});q.resolve(h)}var s=new d.Deferred;a.nls?h.getMessageBundle(a.nls).then(function(b){j({name:a.nameKey?b[a.nameKey]:a.name,image:a.image,id:a.id||a.name,tooltip:a.tooltipKey?b[a.tooltipKey]:a.tooltip,isEditor:a.isEditor},s)}):j({name:a.name,image:a.image,id:a.id||a.name,tooltip:a.tooltip,isEditor:a.isEditor},s);return s};i.getOpenWithCommands=
function(a){var b=[],c;for(c in a._commandList){var d=a._commandList[c];d.isEditor&&b.push(d)}return b};return i});
define("orion/globalCommands","i18n!orion/nls/messages,require,dojo,dijit,orion/commonHTMLFragments,orion/commands,orion/parameterCollectors,orion/extensionCommands,orion/util,orion/textview/keyBinding,orion/breadcrumbs,orion/favorites,orion/contentTypes,orion/URITemplate,orion/PageUtil,dijit/Menu,dijit/MenuItem,dijit/form/DropDownButton,orion/widgets/OpenResourceDialog,orion/widgets/LoginDialog,orion/widgets/UserMenu,orion/widgets/UserMenuDropDown".split(","),function(b,d,a,c,e,f,g,h,i,j,k,l,m,n,
o){function p(b,c){if(b.getLabel)return b.getLabel();else{var d=new a.Deferred;d.callback(c.properties.name);return d}}function r(b){(b=b.getService("orion.page.progress"))&&a.hitch(b,b.init)("progressPane")}function q(a,b){var c=a.getService("orion.core.auth");c!==null&&c.getUser().then(function(a){a.Name?b.set("label",a.Name):a.login&&b.set("label",a.login)})}function s(d){var e=d.getServiceReferences("orion.core.auth");E=[];var g=a.byId("userMenu");if(g){if(!c.byId("logins")){var h=new orion.widgets.UserMenuDropDown({id:"logins",
dropDown:G,label:b.Options,showLabel:!0});a.place(h.domNode,g,"only");h.valueNode&&a.destroy(h.valueNode);h.titleNode&&a.attr(h.titleNode,"title")&&a.removeAttr(h.titleNode,"title");new f.CommandTooltip({connectId:[h.focusNode],label:b.Options,position:["above","left","right","below"]});q(d,h)}for(g=0;g<e.length;g++){var h=e[g],i=d.getService(h);a.hitch(this,function(a,b){p(a,b).then(function(b){a.getKey().then(function(c){E.push(c);a.getUser().then(function(d){y.addUserItem(c,a,b,d);G.addUserItem(c,
a,b,d)},function(d,e){y.addUserItem(c,a,b);G.addUserItem(c,a,b,e)});window.addEventListener("storage",function(){u[c]!==localStorage.getItem(c)&&(u[c]=localStorage.getItem(c),a.getUser().then(function(d){y.addUserItem(c,a,b,d);G.addUserItem(c,a,b,d)},function(){y.addUserItem(c,a,b);G.addUserItem(c,a,b)}))},!1)})})})(i,h)}}}function w(){if(a.byId("relatedLinks")&&D){var b=c.byId("related");b&&b.closeDropDown();D.focusedChild=null;a.forEach(D.getChildren(),function(a){D.removeChild(a);a.destroy()})}}
function t(d,e){D||(D=new c.Menu({style:"display: none;padding:3px;border-radius:3px;",id:"relatedLinksMenu"}));d._addMenuItem(D,e);var f=c.byId("related"),g=a.byId("relatedLinks");g&&!f&&(f=new orion.widgets.UserMenuDropDown({id:"related",label:b.Related,dropDown:D}),a.addClass(f.domNode,"bannerMenu"),a.place(f.domNode,g,"only"),i.forceLayout(g))}function x(b,c,d,e,g){var j,k=b.getServiceReferences("orion.page.link.related");if(!(k.length<=0)){var l=a.byId("relatedLinks");l&&a.when(function(){if(j)return j;
var a=b.getService("orion.core.contenttypes");a||(a=new m.ContentTypeService(b),a=b.getService("orion.core.contenttypes"));return a.getContentTypes().then(function(a){return j=a})}(),a.hitch(this,function(){var m;w();for(var n=[],o=0;o<k.length;o++){var q={},p,r=k[o].getPropertyNames();for(p=0;p<r.length;p++)q[r[p]]=k[o].getProperty(r[p]);if(q.id){var s=function(b){if(b)if(!b.visibleWhen||b.visibleWhen(c)){var d=new f.CommandInvocation(e,c,c,null,b);t(b,d)}else typeof g==="function"&&(m||(m=g()),
a.when(m,a.hitch(b,function(a){a&&c===B&&(!this.visibleWhen||this.visibleWhen(a))&&t(this,new f.CommandInvocation(e,a,a,null,this))})))},u=null;if(a.indexOf(d,q.id)<0)if((q.nls&&q.nameKey||q.name)&&q.uriTemplate)p=h._createCommandOptions(q,k[o],b,j,!0),n.push(p),p.then(a.hitch(this,function(a){a=new f.Command(a);s(a)}));else{if(!u&&(u=e.findCommand(q.id))){s(u);continue}if(!u){var v=b.getServiceReferences("orion.navigate.command");for(p=0;p<v.length;p++)if(v[p].getProperty("id")===q.id){for(var q=
{},r=v[p].getPropertyNames(),z=0;z<r.length;z++)q[r[z]]=v[p].getProperty(r[z]);p=h._createCommandOptions(q,v[p],b,j,!0);n.push(p);p.then(a.hitch(this,function(a){u=new f.Command(a);s(u)}));break}}}}}(new a.DeferredList(n)).addBoth(a.hitch(this,function(){var b=a.byId("relatedLinks");D&&b&&(D.getChildren().length===0?a.style(b,"visibility","hidden"):a.style(b,"visibility","visible"));i.forceLayout(l)}))}))}}function A(b){var c=a.byId("globalActions");c&&(a.empty(c),b.renderCommands(c.id,c,{},{},"tool"))}
function K(a){var c=a.getService("orion.core.favorite");c||(c=new l.FavoritesService({serviceRegistry:a}),c=a.getService("orion.core.favorite"));C&&C.Location&&c.hasFavorite(C.ChildrenLocation||C.Location).then(function(d){d?a.getService("orion.page.message").setMessage(C.Name+b[" is already a favorite."],2E3):(c.makeFavorites([C]),a.getService("orion.page.message").setMessage(C.Name+b[" has been added to the favorites list."],2E3))})}function z(c,d){var e=a.byId("pageFavorite");e&&(C&&C.Location?
(a.addClass(e,"bannerButton"),a.connect(e,"onclick",this,function(){K(c)}),a.connect(e,"onkeypress",this,function(b){b.keyCode===a.keys.ENTER&&K(c)}),new f.CommandTooltip({connectId:[e],label:b["Add to the favorites list"],position:["below","left","right","above"],commandService:d}),a.style(e,"visibility","visible")):a.style(e,"visibility","hidden"))}var v=function(a){var b=document.createElement("a");b.href=a;return b.href}(d.toUrl("auth/NotifyAuthentication.html")),u={},y=new orion.widgets.LoginDialog,
G=new orion.widgets.UserMenu({loginDialog:y}),E=[],D,B,I=[],C=null,F;return{generateUserInfo:s,generateRelatedLinks:x,generateDomCommandsInBanner:function(b,c,d,e,f,g,h){b.closeParameterCollector();if(g=a.byId("pageActions"))a.empty(g),(g=b.renderCommands(g.id,g,d||c,c,"button"))&&g.then?g.then(function(){b.processURL(window.location.href)}):b.processURL(window.location.href);if(!h&&(g=a.byId("pageNavigationActions")))a.empty(g),b.renderCommands(g.id,g,f||d||c,e||c,"button")},generateBanner:function(h,
k,m,q,p,u,v,t){function y(b){a.query(".targetSelector").forEach(function(a){a.target=b})}function K(){q.getPreferences("/settings",2).then(function(a){a=a.get("General");if(a!==void 0&&(a=JSON.parse(a)))a=q.getSetting(a,"Navigation","Links"),y(a==="Open in new tab"?"_blank":"_self")})}var w,x=a.byId(h);if(!x)throw b["could not find banner parent, id was "]+h;a.byId("staticBanner")||a.place(e.topHTMLFragment,x,"only");(h=a.byId("pageToolbar"))?(a.place(e.toolbarHTMLFragment,h,"only"),a.addClass(h,
"toolComposite")):(h=a.create("div",{id:"pageToolbar","class":"toolbar toolComposite layoutBlock"},"titleArea","after"),a.place(e.toolbarHTMLFragment,h,"only"));a.byId("footerContent")||(h=a.byId("footer"))&&a.place(e.bottomHTMLFragment,h,"only");m.setParameterCollector(new g.CommandParameterCollector);a.place('<div id="keyAssist" style="display: none" class="keyAssistFloat" role="list" aria-atomic="true" aria-live="assertive"></div>',document.body,"last");var E=a.byId("primaryNav");if(E)for(var h=
k.getServiceReferences("orion.page.link"),u=o.matchResourceParameters(window.location.href),D={OrionHome:window.location.protocol+"//"+window.location.host,Location:u.resource},u=0;u<h.length;u++){for(var B={},C=h[u].getPropertyNames(),F=0;F<C.length;F++)B[C[F]]=h[u].getProperty(C[F]);B.uriTemplate&&B.nls&&(B.name||B.nameKey)?d(["i18n!"+B.nls],function(b){var c=new n(B.uriTemplate),c=window.decodeURIComponent(c.expand(D)),c=a.create("a",{href:c,target:"_self","class":"targetSelector"},E,"last");w=
document.createTextNode(B.nameKey?b[B.nameKey]:B.name);a.place(w,c,"only")}):B.uriTemplate&&B.name&&(C=new n(B.uriTemplate),C=window.decodeURIComponent(C.expand(D)),C=a.create("a",{href:C,target:"_self","class":"targetSelector"},E,"last"),w=document.createTextNode(B.name),a.place(w,C,"only"))}var I=a.byId("search");if(!I)throw"failed to generate HTML for banner";a.connect(I,"onkeypress",function(c){if(c.charOrCode===a.keys.ENTER)if(p){if(I.value.length>0)c=p.createSearchQuery(I.value),window.location=
d.toUrl("search/search.html")+"#"+c}else window.alert(b["Can't search: no search service is available"])});h=new f.Command({name:b["Make Favorite"],tooltip:b["Add to the favorites list"],imageClass:"core-sprite-makeFavorite",id:"orion.makeFavorite",visibleWhen:function(b){b=a.isArray(b)?b:[b];if(b.length===0)return!1;for(var c=0;c<b.length;c++)if(!b[c].Location)return!1;return!0},callback:function(c){for(var c=a.isArray(c.items)?c.items:[c.items],d=k.getService("orion.core.favorite"),e=function(a){return function(c){c?
k.getService("orion.page.message").setMessage(a.Name+b[" is already a favorite."],2E3):d.makeFavorites(a)}},f=0;f<c.length;f++){var g=c[f];d.hasFavorite(g.ChildrenLocation||g.Location).then(e(g))}}});m.addCommand(h);var R=function(b,c,d){var e=c.getService("orion.core.favorite");e||(e=new l.FavoritesService({serviceRegistry:c}),e=c.getService("orion.core.favorite"));var f=new orion.widgets.OpenResourceDialog({searcher:b,searchRenderer:b.defaultRenderer,favoriteService:e});d&&a.connect(f,"onHide",
function(){d.getTextView().focus()});window.setTimeout(function(){f.show()},0)},h=new f.Command({name:b["Find File Named..."],tooltip:b["Choose a file by name and open an editor on it"],id:"eclipse.openResource",callback:function(){R(p,k,v)}});v&&(v.getTextView().setKeyBinding(new j.KeyBinding("f",!0,!0,!1),h.id),v.getTextView().setAction(h.id,function(){R(p,k,v);return!0},h));m.addCommand(h);m.registerCommandContribution("globalActions","eclipse.openResource",100,null,!0,new f.CommandKeyBinding("f",
!0,!0));h=new f.Command({name:b["Toggle banner and footer"],tooltip:b["Hide or show the page banner and footer"],id:"orion.toggleTrim",callback:function(){var b=c.byId(x.parentNode.id);if(b){var d=a.byId("footer");x.style.display==="none"?(x.style.display="block",d.style.display="block"):(x.style.display="none",d.style.display="none");b.layout()}return!0}});m.addCommand(h);m.registerCommandContribution("globalActions","orion.toggleTrim",100,null,!0,new f.CommandKeyBinding("m",!0,!0));v&&(v.getTextView().setKeyBinding(new f.CommandKeyBinding("m",
!0,!0),h.id),v.getTextView().setAction(h.id,h.callback,h));var O=a.byId("keyAssist");a.connect(document,"onkeypress",a.hitch(this,function(b){if(b.charOrCode===a.keys.ESCAPE)O.style.display="none"}));a.connect(document,"onclick",a.hitch(this,function(a){if((a=a.target||a.originalTarget||a.srcElement)&&a.id!=="keyAssist")O.style.display="none"}));v&&v.getTextView().addEventListener("MouseDown",function(){O.style.display="none"});t&&t.addHandler({isActive:function(){return O.style.display==="block"},
cancel:function(){return this.isActive()?(O.style.display="none",!0):!1}});t=new f.Command({name:b["System Configuration Details"],tooltip:b["System Config Tooltip"],id:"orion.configDetailsPage",hrefCallback:function(){return d.toUrl("help/about.html")}});m.addCommand(t);m.registerCommandContribution("globalActions","orion.configDetailsPage",100,null,!0,new f.CommandKeyBinding(112,!0,!0));t=new f.Command({name:b["Background Operations"],tooltip:b["Background Operations Tooltip"],id:"orion.backgroundOperations",
hrefCallback:function(){return d.toUrl("operations/list.html")}});m.addCommand(t);m.registerCommandContribution("globalActions","orion.backgroundOperations",100,null,!0,new f.CommandKeyBinding("o",!0,!0));t=new f.Command({name:b["Show Keys"],tooltip:b["Show a list of all the keybindings on this page"],id:"eclipse.keyAssist",callback:function(){if(O.style.display==="none"){a.empty(O);if(v){a.place("<h2>"+b.Editor+"</h2>",O,"last");for(var c=v.getTextView().getActions(!1),d=0;d<c.length;d++){var e=
c[d],f=e,g=v.getTextView(),h=g.getActionDescription(e);if(h&&h.name)f=h.name;e=g.getKeyBindings(e);for(g=0;g<e.length;g++)a.place('<span role="listitem">'+i.getUserKeyString(e[g])+" = "+f+"<br></span>",O,"last")}}a.place("<h2>"+b.Global+"</h2>",O,"last");m.showKeyBindings(O);O.style.display="block"}else O.style.display="none";return!0}});m.addCommand(t);m.registerCommandContribution("globalActions","eclipse.keyAssist",100,null,!0,new f.CommandKeyBinding(191,!1,!0));v&&(h=window.navigator.platform.indexOf("Mac")!==
-1,v.getTextView().setKeyBinding(new f.CommandKeyBinding(191,!1,!0,!h,h),t.id),v.getTextView().setAction(t.id,t.callback,t));G.setKeyAssist(t.callback);z(k,m);A(m);s(k);r(k);i.forceLayout(x.parentNode);a.subscribe("/dojo/hashchange",m,function(){m.processURL(window.location.href)});window.setTimeout(function(){K()},0)},notifyAuthenticationSite:v,setPendingAuthentication:function(b){y.setPendingAuthentication(b);for(var d in b)if(b.hasOwnProperty(d)){var e=a.byId("userMenu");if(e.innerHTML)try{c.popup.open({popup:y,
around:e})}catch(f){}else window.setTimeout(function(){try{c.popup.open({popup:y,around:e})}catch(a){}},500);return}c.popup.hide&&c.popup.hide(y);c.popup.close(y)},getAuthenticationIds:function(){return E},setPageTarget:function(b){var c,d,e=b.breadcrumbRootName;b.target?(b.searchService&&b.searchService.setLocationByMetaData(b.target),b.fileService&&!b.breadcrumbTarget&&(d=e?e+" ":"",d+=b.fileService.fileServiceName(b.target.Location),e=null),c=b.name||b.target.Name,B=b.target,x(b.serviceRegistry,
b.target,I,b.commandService,b.makeAlternate)):(b.breadcrumbTarget||(e=e||b.task||b.name),c=b.name);(F=b.title)||(F=c?c+" - "+b.task:b.task);window.document.title=F;a.empty("location");new k.BreadCrumbs({container:"location",resource:b.breadcrumbTarget||b.target,rootSegmentName:e,workspaceRootSegmentName:d,makeHref:b.makeBreadcrumbLink});C=b.target&&b.isFavoriteTarget?b.target:null;z(b.serviceRegistry,b.commandService)},setDirtyIndicator:function(b){if(F)F.charAt(0)==="*"&&!b&&(F=F.substring(1)),b&&
F.charAt(0)!=="*"&&(F="*"+F),window.document.title=F;var c=a.byId("dirty");if(c)c.innerHTML=b?"*":""},setPageCommandExclusions:function(a){I=a},authenticatedService:function(a){y.authenticatedService(a)}}});
define("orion/auth","i18n!orion/nls/messages,dojo,dijit,orion/globalCommands,dojo/date/locale,orion/widgets/LoginDialog".split(","),function(b,d,a,c){var e,f={};d.addOnLoad(function(){window.dojo=d;window.eclipse=window.eclipse||{};eclipse.globalCommandUtils=c});return{handleAuthenticationError:function(d,h){if(d.status===403){typeof e==="undefined"&&(e=new a.Dialog({title:b["Forbidden access"]}));var i=d.message;d.responseText&&(i=JSON.parse(d.responseText).Message||d.message);e.set("content",i);
e.show()}else if(d.status===401)try{var j=JSON.parse(d.responseText);if(!j.SignInKey)return j;var k=localStorage.getItem(j.SignInKey),l=function(){var a=localStorage.getItem(j.SignInKey);k!==a&&(window.removeEventListener("storage",l,!1),delete f[j.SignInKey],c.setPendingAuthentication(f),c.authenticatedService(j.SignInKey),h&&h())};window.addEventListener("storage",l,!1);j.SignInKey&&(f[j.SignInKey]=j,c.setPendingAuthentication(f))}catch(m){}else try{return JSON.parse(d.responseText)}catch(n){return{Message:d.Message,
HttpCode:d.status}}}}});
define("orion/fileClient",["i18n!orion/navigate/nls/messages","orion/Deferred","orion/auth"],function(b,d,a){function c(c,e,f){if(!c[e])throw e+b[" is not supportted in this file system"];var j=new d;c[e].apply(c,f).then(function(a){j.resolve(a)},function(b){b.status===401?a.handleAuthenticationError(b,function(){c[e].apply(c,f).then(function(a){j.resolve(a)},function(a){j.reject(a)})}):j.reject(b)});return j}function e(a,f,i,j){if(!a.readBlob)throw b["source file service does not support binary read"];if(!i.writeBlob)throw b["target file service does not support binary write"];
if(f[f.length-1]!=="/")return c(a,"readBlob",[f]).then(function(a){return c(i,"writeBlob",[j,a])});var k=j.substring(0,j.length-1),l=decodeURIComponent(k.substring(k.lastIndexOf("/")+1)),k=k.substring(0,k.lastIndexOf("/")+1);return c(i,"createFolder",[k,l]).then(function(){},function(){}).then(function(){f.indexOf("/")===0&&(f+="?depth=1");return c(a,"fetchChildren",[f]).then(function(b){for(var c=[],f=0;f<b.length;++f){var h=b[f].Location,k=h;b[f].Directory&&(k=h.substring(0,h.length-1));k=decodeURIComponent(k.substring(k.lastIndexOf("/")+
1));k=j+encodeURIComponent(k);b[f].Directory&&(k+="/");c[f]=e(a,h,i,k)}return(new d).all(c)})})}function f(a,c){function e(a){var c=new d;c.reject(b["No Matching FileService for location:"]+a);return c}var f=a.getServiceReferences("orion.core.file"),k=f;if(c)for(var k=[],l=0;l<f.length;++l)c(f[l])&&k.push(f[l]);for(var m=[],n=[],o=[],p=[],r={fetchChildren:function(){var a=new d;a.resolve(p);return a},createWorkspace:function(){var a=new d;a.reject(b["no file service"]);return a},loadWorkspaces:function(){var a=
new d;a.reject(b["no file service"]);return a},loadWorkspace:function(){var a=new d;window.setTimeout(function(){a.resolve({Directory:!0,Length:0,LocalTimeStamp:0,Name:b["File Servers"],Location:"/",Children:p,ChildrenLocation:"/"})},100);return a},search:e,createProject:e,createFolder:e,createFile:e,deleteFile:e,moveFile:e,copyFile:e,read:e,write:e},f=0;f<k.length;++f)p[f]={Directory:!0,Length:0,LocalTimeStamp:0,Location:k[f].getProperty("top"),ChildrenLocation:k[f].getProperty("top"),Name:k[f].getProperty("Name")},
l=k[f].getProperty("pattern")||".*",l[0]!=="^"&&(l="^"+l),m[f]=RegExp(l),n[f]=a.getService(k[f]),o[f]=k[f].getProperty("Name");this._getServiceIndex=function(a){if(a==="/")return-1;else if(!a||a.length&&a.length===0)return n[0]?0:-1;for(var c=0;c<m.length;++c)if(m[c].test(a))return c;throw b["No Matching FileService for location:"]+a;};this._getService=function(a){a=this._getServiceIndex(a);return a===-1?r:n[a]};this._getServiceName=function(a){a=this._getServiceIndex(a);return a===-1?r.Name:o[a]}}
f.prototype={fileServiceName:function(a){return this._getServiceName(a)},fetchChildren:function(a){return c(this._getService(a),"fetchChildren",arguments)},createWorkspace:function(a){return c(this._getService(),"createWorkspace",arguments)},loadWorkspaces:function(){return c(this._getService(),"loadWorkspaces",arguments)},loadWorkspace:function(a){return c(this._getService(a),"loadWorkspace",arguments)},createProject:function(a,b,d,e){return c(this._getService(a),"createProject",arguments)},createFolder:function(a,
b){return c(this._getService(a),"createFolder",arguments)},createFile:function(a,b){return c(this._getService(a),"createFile",arguments)},deleteFile:function(a){return c(this._getService(a),"deleteFile",arguments)},moveFile:function(a,b,d){var f=this._getService(a),k=this._getService(b);if(f===k)return c(f,"moveFile",arguments);var l=a[a.length-1]==="/",m=b;m[m.length-1]!=="/"&&(m+="/");if(d)m+=encodeURIComponent(d);else{var n=a;l&&(n=n.substring(0,n.length-1));m+=n.substring(n.lastIndexOf("/")+1)}l&&
m[m.length-1]!=="/"&&(m+="/");return e(f,a,k,m).then(function(){return c(f,"deleteFile",[a])})},copyFile:function(a,b,d){var f=this._getService(a),k=this._getService(b);if(f===k)return c(f,"copyFile",arguments);var l=a[a.length-1]==="/",m=b;m[m.length-1]!=="/"&&(m+="/");if(d)m+=encodeURIComponent(d);else{var n=a;l&&(n=n.substring(0,n.length-1));m+=n.substring(n.lastIndexOf("/")+1)}l&&m[m.length-1]!=="/"&&(m+="/");return e(f,a,k,m)},read:function(a,b){return c(this._getService(a),"read",arguments)},
write:function(a,b,d){return c(this._getService(a),"write",arguments)},remoteImport:function(a,b){return c(this._getService(a),"remoteImport",arguments)},remoteExport:function(a,b){return c(this._getService(a),"remoteExport",arguments)},search:function(a,b){return c(this._getService(a),"search",arguments)}};f.prototype.constructor=f;return{FileClient:f}});
define("console/current-directory",["dojo","orion/bootstrap","orion/fileClient"],function(b,d,a){function c(a,c){if(h!==null)a(h);else{var d=b.hash()||"/";g.loadWorkspace(d).then(function(b){h=b;a(b)},function(a){c&&c(a)})}}function e(a,b,c){a.Children?b(a.Children):a.ChildrenLocation&&g.fetchChildren(a.ChildrenLocation).then(function(c){a.Children=c;b(c)},function(a){c&&c(a)})}var f={},g,h=null;f.withCurrentTreeNode=c;f.setCurrentTreeNode=function(a){h=a};f.withChildren=e;f.withCurrentChildren=function(a,
b){c(function(c){e(c,a,b)},b)};b.ready(function(){d.startup().then(function(b){g=new a.FileClient(b.serviceRegistry)})});return f});
define("console/paramType-file",["i18n!orion/console/nls/messages","dojo","console/current-directory","orion/widgets/Console"],function(b,d,a,c){var e;e={};e.ParamTypeFile=function(){function e(a,b,c){this._init(a,b,c)}e.prototype={_init:function(a,b,c){this.name=a;this.directories=b;this.files=c;this._initCache();var e=this;d.subscribe("/dojo/hashchange",function(){e._initCache()})},_initCache:function(){this.cache={};var a=this;this.withValidFiles(function(b){b.sort(function(a,b){var c=a.Directory;
if(c!==b.Directory)return c?-1:1;var c=a.Name&&a.Name.toLowerCase(),d=b.Name&&b.Name.toLowerCase();return c<d?-1:c>d?1:0});a.cache.validFiles=b},function(){a.cache.validFiles=[]})},parse:function(a){var b=a||"",a=this.getPredictions(b);return a!==null?this.createCompletion(b,a):{value:b,status:c.CompletionStatus.PARTIAL,then:function(a){this.withCompletions(b,function(c){a(this.createCompletion(b,c))})}}},stringify:function(a){return typeof a==="string"?a:a.Name},computePredictions:function(a,b){var c=
[];if(this.directories){var d=a.length<3;if(d)for(var e=0;e<a.length;e++)if(a.charAt(e)!=="."){d=!1;break}d&&c.push({name:"..",value:".."})}for(e=0;e<b.length;e++){var d=b[e],f=d.Name;this.startsWith(f,a)&&c.push({name:f,value:d})}return c},createCompletion:function(a,e){var f=this.find(e,function(b){return b.name===a}),j,k,l=a;f?(j=c.CompletionStatus.MATCH,l=f.value):e!==null&&e.length>0?j=c.CompletionStatus.PARTIAL:(j=c.CompletionStatus.ERROR,k=d.string.substitute(b["'${0}' is not valid"],[a]));
return{value:l,status:j,message:k,predictions:e}},find:function(a,b){for(var c=0;c<a.length;c++)if(b(a[c]))return a[c];return null},getPredictions:function(a){if(this.cache.predictions&&this.cache.text===a)return this.cache.predictions;return this.cache.validFiles?(this.cache.predictions=this.computePredictions(a,this.cache.validFiles),this.cache.text=a,this.cache.predictions):null},startsWith:function(a,b){return typeof a==="string"&&typeof b==="string"?a.indexOf(b)===0:!1},withCompletions:function(a,
b){var c=this.getPredictions(a);if(c)b(c);else{var d=this;this.withValidFiles(function(c){d.cache.validFiles=c;b(this.getPredictions(a))})}},withValidFiles:function(b,c){var d=this;a.withCurrentChildren(function(a){for(var c=[],e=0;e<a.length;e++){var f=a[e];(f.Directory&&d.directories||!f.Directory&&d.files)&&c.push(f)}b(c)},c)}};return e}();return e});
define("orion/searchClient","i18n!orion/search/nls/messages,require,dojo,dijit,orion/auth,orion/util,orion/searchUtils,dijit/form/Button,dijit/layout/BorderContainer,dijit/layout/ContentPane".split(","),function(b,d,a,c,e,f,g){function h(a){this.registry=a.serviceRegistry;this._commandService=a.commandService;(this._fileService=a.fileService)||console.error("No file service on search client")}h.prototype={search:function(a,b,c){b=g.parseQueryStr(a);try{this._fileService.search(b.location,a).then(function(a){var b=
a.responseHeader.params.q,b=b.substring(b.indexOf("}")+1),b=b.substring(b.indexOf(":")+1);c(function(a){for(var b=[],c=0;c<a.response.docs.length;c++){var d=a.response.docs[c];b.push({name:d.Name,path:d.Location,folderName:g.path2FolderName(d.Path,d.Name),directory:d.Directory,lineNumber:d.LineNumber})}return b}(a),b)},function(a){c(null,null,a)})}catch(d){this.registry.getService("orion.page.message").setErrorMessage(d)}},handleError:function(b,c){console.error(b);var d=document.createTextNode(b);
a.place(d,c,"only");return b},setLocationByMetaData:function(c,d){var e="",f=null;d&&c&&c.Parents&&c.Parents.length>0?f=d.index==="last"?c.Parents[c.Parents.length-1]:c.Parents[0]:c&&c.Directory&&c.Location&&c.Parents&&(f=c);f?(this.setLocationByURL(f.Location),e=f.Name):c&&(e=this._fileService.fileServiceName(c&&c.Location));f=a.byId("search");e||(e="");if(f&&f.placeholder)f.value="",f.placeholder=e.length>23?b["Search "]+e.substring(0,20)+"...":b["Search "]+e;if(f&&f.title)f.title=b["Type a keyword or wild card to search in "]+
e},setLocationByURL:function(a){this.location=a},createSearchQuery:function(a,b,c,d){c||(c="Path");c+=" asc";return b?(a=/\*$/.test(b)?"":"*",g.generateSearchQuery({sort:c,rows:100,start:0,searchStr:"NameLower:"+this._luceneEscape(b,!0)+a})):g.generateSearchQuery({sort:c,rows:40,start:0,searchStr:this._luceneEscape(a,!0),location:d?"":this.location})},_luceneEscape:function(a,b){for(var c="",d='+-&|!(){}[]^"~:\\'+(!b?"*?":""),e=0;e<a.length;e++){var f=a.charAt(e);d.indexOf(f)>=0&&(c+="\\");c+=f}return c},
defaultRenderer:{makeRenderFunction:function(c,e,f,g){return function(h,n,o){if(o)a.place("<div>"+b["Search failed."]+"</div>",c,"only"),typeof f==="function"&&f(c);else{var o=function(){function a(b,c){var d=c.folderName?c.folderName:c.path,e=document.createElement("span");e.id=d.replace(/[^a-zA-Z0-9_\.:\-]/g,"");e.appendChild(document.createTextNode(" - "+d+" "));b.appendChild(e)}var b={};return function(c,d){var e=d.name;if(b.hasOwnProperty(e)){a(c,d);var f=b[e];typeof f==="function"&&(b[e]=null,
f())}else b[e]=function(){a(c,d)}}}(),p=!1;a.empty(c);if(h&&h.length>0){var r=document.createElement("table");r.setAttribute("role","presentation");for(var q=0;q<h.length;q++){var s=h[q],w;if(!p&&(p=!0,e))w=r.insertRow(0).insertCell(0),w.innerHTML=e;w=r.insertRow(-1).insertCell(0);w.colspan=2;g&&g(w);var t=document.createElement("a");a.place(document.createTextNode(s.name),t);s.LineNumber&&a.place(document.createTextNode(" (Line "+s.LineNumber+")"),t);var x=s.location;s.isExternalResource?x=s.path:
(x=s.directory?d.toUrl("navigate/table.html")+"#"+s.path:d.toUrl("edit/edit.html")+"#"+s.path,x==="#"&&(x=""));t.setAttribute("href",x);t.setAttribute("aria-describedby",(s.folderName?s.folderName:s.path).replace(/[^a-zA-Z0-9_\.:\-]/g,""));a.style(t,"verticalAlign","middle");w.appendChild(t);o(w,s)}a.place(r,c,"last");typeof f==="function"&&f(c)}!p&&n&&(h=a.place("<div>"+b["No matches found for "]+"</div>",c,"only"),h=a.create("b",null,h,"last"),a.place(document.createTextNode(n),h,"only"),typeof f===
"function"&&f(c))}}}}};h.prototype.constructor=h;return{Searcher:h}});
define("console/consolePage","i18n!orion/console/nls/messages,require,dojo,dijit,orion/bootstrap,orion/commands,orion/fileClient,orion/searchClient,orion/globalCommands,orion/widgets/Console,console/current-directory,console/paramType-file,orion/plugin".split(","),function(b,d,a,c,e,f,g,h,i,j,k,l){function m(a){window.open("/edit/edit.html#"+a.file.Location)}function n(a,b){b=b||[];a.Name&&(a.Directory?(b.push(a.Name),b.push("/")):(b.push('<a href="/edit/edit.html#'+a.Location+'">'),b.push(a.Name),
b.push("</a>")),b.push("<br>"));return b}function o(a){var b=t.fileServiceName(a.Location)||"",c=a.Parents;if(c){b+="/";for(var d=c.length;--d>=0;)b+=c[d].Name,b+="/";b+=a.Name}a.Directory&&(b+="/");return b}function p(a,b,c){b=b||[];k.withChildren(a,function(a){a.sort(function(a,b){var c=a.Directory;if(c!==b.Directory)return c?-1:1;var c=a.Name&&a.Name.toLowerCase(),d=b.Name&&b.Name.toLowerCase();return c<d?-1:c>d?1:0});for(var d=0;d<a.length;d++)n(a[d],b);c(b)},function(){c([])})}function r(a,b){var c=
b.createPromise();k.setCurrentTreeNode(null);k.withCurrentTreeNode(function(a){p(a,[],function(a){c.resolve(a.join(""))})},function(a){x(c,a)});return c}function q(c,d){var e=c.directory;if(typeof e!=="string")e=e.Name;var f=d.createPromise();k.withCurrentTreeNode(function(c){e===".."?t.loadWorkspace(c.Location).then(a.hitch(this,function(c){if(c.Parents)if(c.Parents.length===0){k.setCurrentTreeNode(null);var d=c.Location.indexOf("/",1),d=c.Location.substr(0,d);a.hash(d);c=t.fileServiceName(c.Location);
f.resolve(a.string.substitute(b["Changed to: ${0}"],["<b>"+c+"</b>"]))}else t.loadWorkspace(c.Parents[0].Location).then(a.hitch(this,function(c){k.setCurrentTreeNode(c);a.hash(c.Location);c=o(c);f.resolve(a.string.substitute(b["Changed to: ${0}"],["<b>"+c+"</b>"]))}),a.hitch(this,function(a){x(f,a)}));else k.setCurrentTreeNode(null),a.hash("#"),f.resolve(a.string.substitute(b["Changed to: ${0}"],["<b>/</b>"]))}),a.hitch(this,function(a){x(f,a)})):k.withChildren(c,function(c){for(var d=!1,g=0;g<c.length;g++){var h=
c[g];if(h.Name===e){h.Directory?(d=!0,k.setCurrentTreeNode(h),a.hash(h.Location),t.loadWorkspace(h.Location).then(a.hitch(this,function(c){c=o(c);f.resolve(a.string.substitute(b["Changed to: ${0}"],["<b>"+c+"</b>"]))}),a.hitch(this,function(a){x(f,a)}))):x(f,a.string.substitute(b["${0} is not a directory"],[e]));break}}d||x(f,a.string.substitute(b["${0} was not found"],[e]))},function(a){x(f,a)})},function(a){x(f,a)});return f}function s(b,c){var d=c.createPromise();k.withCurrentTreeNode(function(b){t.loadWorkspace(b.Location).then(a.hitch(this,
function(a){a=o(a);d.resolve("<b>"+a+"</b>")}),a.hitch(this,function(a){x(d,a)}))},function(a){x(d,a)});return d}function w(a){if(typeof a.callback==="function")return function(b,c){var d=c.createPromise();a.callback(b).then(function(a){d.resolve(a)},function(a){x(d,a)});return d}}var t,x=function(c,d){c.resolve(a.string.substitute(b["File service error: ${0}"],["<em>"+d+"</em>"]))};a.addOnLoad(function(){e.startup().then(function(d){var e=d.serviceRegistry,d=d.preferences;document.body.style.visibility=
"visible";a.parser.parse();var k=new f.CommandService({serviceRegistry:e});t=new g.FileClient(e);var n=new h.Searcher({serviceRegistry:e,commandService:k,fileService:t});i.generateBanner("toolbar",e,k,d,n);i.setPageTarget({task:"Console"});d=new j.Console(a.byId("console-input"),a.byId("console-output"));c.byId("centerPane").resize();k=new l.ParamTypeFile("directory",!0,!1);d.addType(k);k=new l.ParamTypeFile("file",!1,!0);d.addType(k);d.addCommand({name:"cd",description:b["Change current directory"],
callback:q,returnType:"string",parameters:[{name:"directory",type:"directory",description:b.Directory}]});d.addCommand({name:"edit",description:b["Edit a file"],callback:m,returnType:"string",parameters:[{name:"file",type:"file",description:b.File}]});d.addCommand({name:"ls",description:b["Show a list of files in the current directory"],callback:r,returnType:"string"});d.addCommand({name:"pwd",description:b["Print current directory"],callback:s,returnType:"string"});k=e.getServiceReferences("orion.console.command");
for(n=0;n<k.length;++n){var o=k[n],p=e.getService(o);p&&d.addCommand({name:o.getProperty("name"),description:o.getProperty("description"),callback:w(p),returnType:"string",parameters:o.getProperty("parameters"),manual:o.getProperty("manual")})}})})});