/**
 * @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) 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) 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, 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-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: 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) 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, 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, 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,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) 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) 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, 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, 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: 
 *		Felipe Heidrich (IBM Corporation) - initial API and implementation
 *		Silenio Quarti (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). 
 * 
 * Contributors: IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2009, 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, 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) 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). 
 * 
 * Contributors: Anton McConville - 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: Anton McConville - IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2009, 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, 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: 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, 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) 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) 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) 2009, 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, 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, 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
 *     Andy Clement (vmware) - bug 344614
 *******************************************************************************/
/*******************************************************************************
 * @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,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) 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, 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, 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-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: 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) 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, 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, 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,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) 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) 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, 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, 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, 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: 
 Felipe Heidrich (IBM Corporation) - initial API and implementation
 Silenio Quarti (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). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2009, 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, 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, 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). 

 Contributors: Anton McConville - 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: Anton McConville - IBM Corporation - initial API and implementation

 Copyright (c) 2009, 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). 

 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: 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) 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, 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, 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, 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,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, 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
 Andy Clement (vmware) - bug 344614

 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,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) 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
*/
(function(){function b(a,b,c,e,g,k){b[a]&&(c.push(a),(b[a]===!0||b[a]===1)&&e.push(g+a+"/"+k))}function e(a,b,c,e,g){b=e+b+"/"+g;require._fileExists(a.toUrl(b))&&c.push(b)}var a=/(^.*(^|\/)nls(\/|$))([^\/]*)\/?([^\/]*)/,c={};define("i18n",{version:"1.0.0",load:function(d,f,j,h){var h=h||{},g=a.exec(d),k=g[1],l=g[4],n=g[5],m=l.split("-"),o=[],p={},q,r,s="";g[5]?(k=g[1],d=k+n):(n=g[4],l=h.locale||(h.locale=typeof navigator==="undefined"?"root":(navigator.language||navigator.userLanguage||"root").toLowerCase()),
m=l.split("-"));if(h.isBuild){o.push(d);e(f,"root",o,k,n);for(q=0;r=m[q];q++)s+=(s?"-":"")+r,e(f,s,o,k,n);f(o,function(){j()})}else f([d],function(a){var g=[];b("root",a,g,o,k,n);for(q=0;r=m[q];q++)s+=(s?"-":"")+r,b(s,a,g,o,k,n);f(o,function(){var b,d;for(b=g.length-1;b>-1&&(r=g[b]);b--){d=a[r];if(d===!0||d===1)d=f(k+r+"/"+n);var e=p,h=void 0;for(h in d)!(h in c)&&!(h in e)&&(e[h]=d[h])}j(p)})})}})})();
define("orion/i18n",[],function(){return{load:function(b,e,a,c){var c=c||{},d=/(^.*(?:^|\/)nls(?:\/|$))([^\/]*)\/?([^\/]*)/,f=d.exec(b);if(f)if(e.defined(b))a(e(b));else if(c.isBuild||c.isTest)a({});else{var j=f[1],h=f[3]?f[2]:"",g=f[3]||f[2];e(["orion/bootstrap"],function(k){k.startup().then(function(k){var n=k.serviceRegistry,k=n.getServiceReferences("orion.i18n.message");if(h)k.some(function(c){return b===c.getProperty("name")?(n.getService(c).getMessageBundle().then(function(b){a(b)},function(){a({})}),
!0):!1})||a({});else{var m={},o;k.forEach(function(a){var b=a.getProperty("name");if((f=d.exec(b))&&j===f[1]&&g===(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,e.specified(b)||define(b,["orion/i18n!"+b],function(a){return a})}else o=a});e.specified(b)?a(m):o?n.getService(o).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/shell/nls/messages",["orion/i18n!orion/shell/nls/messages"],function(b){var e={root:!0};Object.keys(b).forEach(function(a){typeof e[a]==="undefined"&&(e[a]=b[a])});return e});
define("orion/shell/nls/root/messages",{Shell:"Shell","Changed to: ":"Changed to: ","${0} is not a directory":"${0} is not a directory","${0} was not found":"${0} was not found","Changes the current directory":"Changes the current directory","The name of the directory":"The name of the directory","Edits a file":"Edits a file","The name of the file":"The name of the file","Lists the files in the current directory":"Lists the files in the current directory","Prints the current directory location":"Prints the current directory location",
"'${0}' is not valid":"'${0}' is not valid","File service error: ${0}":"File service error: ${0}"});
(function(){function b(a,b,d){(function(){if(typeof this.loadFirebugConsole=="function")this.loadFirebugConsole();else{this.console=this.console||{};for(var f="assert,count,debug,dir,dirxml,error,group,groupEnd,info,profile,profileEnd,time,timeEnd,trace,warn,log".split(","),e=0,h;h=f[e++];)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 g=a;typeof b=="undefined"&&(b={_scopeName:"dijit"});typeof d=="undefined"&&(d={_scopeName:"dojox"});if(!g._scopeArgs)g._scopeArgs=[a,b,d];g.global=this;g.config={isDebug:!1,debugAtAllCosts:!1};if(f=typeof djConfig!="undefined"?djConfig:typeof dojoConfig!="undefined"?dojoConfig:null)for(var k in f)g.config[k]=f[k];a.locale=g.config.locale;k="$Rev: 24595 $".match(/\d+/);a.version={major:1,minor:6,patch:1,flag:"",
revision:k?+k[0]:NaN,toString:function(){with(g.version)return major+"."+minor+"."+patch+flag+" ("+revision+")"}};typeof OpenAjax!="undefined"&&OpenAjax.hub.registerLibrary(a._scopeName,"http://dojotoolkit.org",g.version.toString());var l,n,m={};for(e in{toString:1}){l=[];break}a._extraNames=l=l||"hasOwnProperty,valueOf,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,constructor".split(",");n=l.length;a._mixin=function(a,b){var c,g,d;for(c in b)if(g=b[c],!(c in a)||a[c]!==g&&(!(c in m)||
m[c]!==g))a[c]=g;if(n&&b)for(d=0;d<n;++d)if(c=l[d],g=b[c],!(c in a)||a[c]!==g&&(!(c in m)||m[c]!==g))a[c]=g;return a};a.mixin=function(a,b){a||(a={});for(var c=1,d=arguments.length;c<d;c++)g._mixin(a,arguments[c]);return a};a._getProp=function(a,b,c){for(var c=c||g.global,d=0,f;c&&(f=a[d]);d++)d==0&&g._scopeMap[f]&&(f=g._scopeMap[f]),c=f in c?c[f]:b?c[f]={}:void 0;return c};a.setObject=function(a,b,c){var d=a.split("."),a=d.pop();return(c=g._getProp(d,!0,c))&&a?c[a]=b:void 0};a.getObject=function(a,
b,c){return g._getProp(a.split("."),b,c)};a.exists=function(a,b){return g.getObject(a,!1,b)!==void 0};a.eval=function(a){return g.global.eval?g.global.eval(a):eval(a)};g.deprecated=g.experimental=function(){}})();return{dojo:a,dijit:b,dojox:d}}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 e=b();dojo=e.dojo;dijit=e.dijit;dojox=e.dojox}})();
define("domReady",[],function(){function b(a){for(var b=0,c;c=a[b];b++)c(j)}function e(){var a=h,c=g;f&&(a.length&&(h=[],b(a)),k.resourcesDone&&c.length&&(g=[],b(c)))}function a(){f||(f=!0,n&&clearInterval(n),e())}function c(a){f?a(j):h.push(a);return c}var d=typeof window!=="undefined"&&window.document,f=!d,j=d?document:null,h=[],g=[],k=requirejs||require||{},l=k.resourcesReady,n;if("resourcesReady"in k)k.resourcesReady=function(a){l&&l(a);a&&e()};d&&(document.addEventListener?(document.addEventListener("DOMContentLoaded",
a,!1),window.addEventListener("load",a,!1)):window.attachEvent&&(window.attachEvent("onload",a),self===self.top&&(n=setInterval(function(){try{document.body&&(document.documentElement.doScroll("left"),a())}catch(b){}},30))),document.readyState==="complete"&&a());c.withResources=function(a){f&&k.resourcesDone?a(j):g.push(a);return c};c.version="1.0.0";c.load=function(a,b,g,d){d.isBuild?g(null):c(g)};return c});
define("dojo/lib/backCompat",["require","dojo/_base/_loader/bootstrap","domReady"],function(b,e,a){var c="_moduleHasPrefix,_loadPath,_loadUri,_loadUriAndCheck,loaded,_callLoaded,_getModuleSymbols,_loadModule,require,provide,platformRequire,requireIf,requireAfterIf,registerModulePath".split(","),d,f;for(d=0;d<c.length;)f=c[d++],e[f]=function(a){return function(){console.warn("dojo."+a+" not available when using an AMD loader.")}}(f);var j=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};e.ready=e.addOnLoad=function(b,c){a(c?h(b,c):b)};e.addOnLoad(function(){e.postLoad=e.config.afterOnLoad=!0});if(c=e.config.addOnLoad)e.addOnLoad[c instanceof Array?"apply":"call"](e,c);var g=e._loaders=[],k=function(){var a=g.slice(0);for(Array.prototype.splice.apply(g,[0,g.length]);a.length;)a.shift().call()};g.unshift=function(){Array.prototype.unshift.apply(g,j(arguments));a(k)};g.splice=function(){Array.prototype.splice.apply(g,
j(arguments));a(k)};var l=e._unloaders=[];e.unloaded=function(){for(;l.length;)l.pop().call()};e._onto=function(a,b,c){a.push(c?h(b,c):b)};e._modulesLoaded=function(){};e.loadInit=function(a){a()};e.getL10nName=function(a,b,c){c=c?c.toLowerCase():e.locale;a="i18n!"+a.replace(/\./g,"/");return/root/i.test(c)?a+"/nls/"+b:a+"/nls/"+c+"/"+b};e.requireLocalization=function(a,c,g){b.vendor!="altoviso.com"&&(g=!g||g.toLowerCase()===e.locale?"root":g);return b(e.getL10nName(a,c,g))};e.i18n={getLocalization:e.requireLocalization,
normalizeLocale:function(a){a=a?a.toLowerCase():e.locale;a=="root"&&(a="ROOT");return a}};var n=/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/,m=/^((([^\[:]+):)?([^@]+)@)?(\[([^\]]+)\]|([^\[:]*))(:([0-9]+))?$/;e._Url=function(){for(var a=arguments,b=[a[0]],c=1;c<a.length;c++)if(a[c]){var g=new e._Url(a[c]+""),b=new e._Url(b[0]+"");if(g.path==""&&!g.scheme&&!g.authority&&!g.query){if(g.fragment!=null)b.fragment=g.fragment;g=b}else if(!g.scheme&&(g.scheme=b.scheme,!g.authority&&(g.authority=
b.authority,g.path.charAt(0)!="/"))){for(var b=(b.path.substring(0,b.path.lastIndexOf("/")+1)+g.path).split("/"),d=0;d<b.length;d++)b[d]=="."?d==b.length-1?b[d]="":(b.splice(d,1),d--):d>0&&!(d==1&&b[0]=="")&&b[d]==".."&&b[d-1]!=".."&&(d==b.length-1?(b.splice(d,1),b[d-1]=""):(b.splice(d-1,2),d-=2));g.path=b.join("/")}b=[];g.scheme&&b.push(g.scheme,":");g.authority&&b.push("//",g.authority);b.push(g.path);g.query&&b.push("?",g.query);g.fragment&&b.push("#",g.fragment)}this.uri=b.join("");a=this.uri.match(n);
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};e._Url.prototype.toString=function(){return this.uri};e.moduleUrl=function(a,c){if(!a)return null;var a=a.replace(/\./g,"/")+(c?"/"+c:""),g="",d=a.match(/(.+)(\.[^\/]*)$/);d&&(a=d[1],g=d[2]);return new e._Url(b.nameToUrl(a,
g))};return e});
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"),d=/dojo(\.xd)?\.js(\W|$)/i,f=0;f<c.length;f++){var e=c[f].getAttribute("src");if(e){var h=e.match(d);if(h){if(!a.config.baseUrl)a.config.baseUrl=e.substring(0,h.index);if(c=c[f].getAttribute("djConfig")||c[f].getAttribute("data-dojo-config")){var c=eval("({ "+
c+" })"),g;for(g in c)b.config[g]=c[g]}break}}}a.baseUrl=a.config.baseUrl;g=navigator;c=g.userAgent;d=g.appVersion;f=parseFloat(d);if(c.indexOf("Opera")>=0)a.isOpera=f;if(c.indexOf("AdobeAIR")>=0)a.isAIR=1;a.isKhtml=d.indexOf("Konqueror")>=0?f:0;a.isWebKit=parseFloat(c.split("WebKit/")[1])||void 0;a.isChrome=parseFloat(c.split("Chrome/")[1])||void 0;a.isMac=d.indexOf("Macintosh")>=0;if((e=Math.max(d.indexOf("WebKit"),d.indexOf("Safari"),0))&&!b.isChrome)if(a.isSafari=parseFloat(d.split("Version/")[1]),
!a.isSafari||parseFloat(d.substr(e+7))<=419.3)a.isSafari=2;if(c.indexOf("Gecko")>=0&&!a.isKhtml&&!a.isWebKit)a.isMozilla=a.isMoz=f;if(a.isMoz)a.isFF=parseFloat(c.split("Firefox/")[1]||c.split("Minefield/")[1])||void 0;if(document.all&&!a.isOpera&&(a.isIE=parseFloat(d.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?g.userLanguage:g.language).toLowerCase();a._XMLHTTP_PROGIDS=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"];a._xhrObj=function(){var c,g;if(!b.isIE||!b.config.ieForceActiveXXhr)try{c=new XMLHttpRequest}catch(d){}if(!c)for(var f=0;f<3;++f){var e=a._XMLHTTP_PROGIDS[f];try{c=new ActiveXObject(e)}catch(k){g=k}if(c){a._XMLHTTP_PROGIDS=[e];break}}if(!c)throw Error("XMLHTTP not available: "+g);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 k=window.location+"",l=(g=document.getElementsByTagName("base"))&&g.length>0;a._getText=function(c,g){var d=a._xhrObj();!l&&b._Url&&(c=(new b._Url(k,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(e){if(g)return null;throw e;}return d.responseText};var n=window,m=function(a,b){var c=n.attachEvent||n.addEventListener,a=n.attachEvent?a:a.substring(2);c(a,function(){b.apply(n,arguments)},!1)};a._windowUnloaders=[];a.windowUnloaded=function(){for(var b=a._windowUnloaders;b.length;)b.pop()();a=null};var o=0;a.addOnWindowUnload=function(b,c){a._onto(a._windowUnloaders,b,c);o||(o=1,m("onunload",a.windowUnloaded))};var p=0;a.addOnUnload=function(c,g){a._onto(a._unloaders,
c,g);p||(p=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,d=1,f=document.createStyleSheet();if(b.isIE>=8)c=1,d=a.length;for(;c<d;++c)f.addRule("v\\:"+a[c],"behavior:url(#default#VML); display:inline-block")})()}catch(e){}}(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 e=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 e.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 d=1,f=arguments.length;d<f;d++)b._mixin(a.prototype,arguments[d]);return a};b._hitchArgs=function(a,c){var d=b._toArray(arguments,2),f=b.isString(c);return function(){var e=b._toArray(arguments),j=f?(a||b.global)[c]:c;return j&&j.apply(a||this,d.concat(e))}};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,d){a.prototype=c;var f=new a;a.prototype=null;d&&b._mixin(f,d);return f}}();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 d=b._extraNames,f=d.length,j={};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,e,h,m;if(b.isArray(a)){c=[];for(e=0,h=a.length;e<
h;++e)e in a&&c.push(b.clone(a[e]))}else c=a.constructor?new a.constructor:{};for(m in a)if(h=a[m],!(m in c)||c[m]!==h&&(!(m in j)||j[m]!==h))c[m]=b.clone(h);if(f)for(e=0;e<f;++e)if(m=d[e],h=a[m],!(m in c)||c[m]!==h&&(!(m in j)||j[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,d){return a.replace(d||h,b.isFunction(c)?c:function(a,g){return b.getObject(g,
!1,c)})}})();return b});
define("dojo/_base/array",["dojo/lib/kernel","dojo/_base/lang"],function(b){(function(){var e=function(a,d,f){return[typeof a=="string"?a.split(""):a,d||b.global,typeof f=="string"?new Function("item","index","array",f):f]},a=function(a,b,f,j){for(var f=e(b,j,f),b=f[0],j=0,h=b.length;j<h;++j){var g=!!f[2].call(f[1],b[j],j,b);if(a^g)return g}return a};b.mixin(b,{indexOf:function(a,b,f,e){var h=1,g=a.length||0,k=0;e&&(k=g-1,h=g=-1);f!=void 0&&(k=f);if(e&&k>g||k<g)for(;k!=g;k+=h)if(a[k]==b)return k;
return-1},lastIndexOf:function(a,d,f){return b.indexOf(a,d,f,!0)},forEach:function(a,b,f){if(a&&a.length)for(var b=e(a,f,b),a=b[0],f=0,j=a.length;f<j;++f)b[2].call(b[1],a[f],f,a)},every:function(b,d,f){return a(!0,b,d,f)},some:function(b,d,f){return a(!1,b,d,f)},map:function(a,b,f,j){for(var b=e(a,f,b),a=b[0],j=j?new j:[],f=0,h=a.length;f<h;++f)j.push(b[2].call(b[1],a[f],f,a));return j},filter:function(a,b,f){for(var b=e(a,f,b),a=b[0],f=[],j=0,h=a.length;j<h;++j)b[2].call(b[1],a[j],j,a)&&f.push(a[j]);
return f}})})();return b});
define("dojo/_base/declare",["dojo/lib/kernel","dojo/_base/lang","dojo/_base/array"],function(b){(function(){function e(a,b){throw Error("declare"+(b?" "+b:"")+": "+a);}function a(a,b,c){var g,d,f,k,h,j,l,n=this._inherited=this._inherited||{};typeof a=="string"&&(g=a,a=b,b=c);c=0;k=a.callee;(g=g||k.nom)||e("can't deduce a name to call inherited()",this.declaredClass);h=this.constructor._meta;f=h.bases;l=n.p;if(g!=v){if(n.c!==k&&(l=0,j=f[0],h=j._meta,h.hidden[g]!==k)){(d=h.chains)&&typeof d[g]=="string"&&
e("calling chained method with inherited: "+g,this.declaredClass);do if(h=j._meta,d=j.prototype,h&&(d[g]===k&&d.hasOwnProperty(g)||h.hidden[g]===k))break;while(j=f[++l]);l=j?l:-1}if(j=f[++l])if(d=j.prototype,j._meta&&d.hasOwnProperty(g))c=d[g];else{k=r[g];do if(d=j.prototype,(c=d[g])&&(j._meta?d.hasOwnProperty(g):c!==k))break;while(j=f[++l])}c=j&&c||r[g]}else{if(n.c!==k&&(l=0,(h=f[0]._meta)&&h.ctor!==k)){d=h.chains;for((!d||d.constructor!=="manual")&&e("calling chained constructor with inherited",
this.declaredClass);j=f[++l];)if((h=j._meta)&&h.ctor===k)break;l=j?l:-1}for(;j=f[++l];)if(c=(h=j._meta)?h.ctor:j)break;c=j&&c}n.c=c;n.p=l;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 d(a){for(var b=this.constructor._meta.bases,c=0,g=b.length;c<g;++c)if(b[c]===a)return!0;return this instanceof a}function f(a,b){var c,g=0,d=p._extraNames.length;for(c in b)c!=v&&b.hasOwnProperty(c)&&(a[c]=b[c]);for(;g<d;++g)c=p._extraNames[g],
c!=v&&b.hasOwnProperty(c)&&(a[c]=b[c])}function j(a,b){var c,g,d=0,f=p._extraNames.length;for(c in b)if(g=b[c],(g!==r[c]||!(c in r))&&c!=v){if(s.call(g)=="[object Function]")g.nom=c;a[c]=g}for(;d<f;++d)if(c=p._extraNames[d],g=b[c],(g!==r[c]||!(c in r))&&c!=v){if(s.call(g)=="[object Function]")g.nom=c;a[c]=g}return a}function h(a){j(this.prototype,a);return this}function g(a,b){return function(){var w;var c=arguments,g=c,d=c[0],f,e;e=a.length;var k;if(!(this instanceof c.callee))return o(c);if(b&&
(d&&d.preamble||this.preamble)){k=Array(a.length);k[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==e)break;k[f]=c}}for(f=e-1;f>=0;--f)d=a[f],(w=(e=d._meta)?e.ctor:d,d=w)&&d.apply(this,k?k[f]:c);(d=this.postscript)&&d.apply(this,g)}}function k(a,b){return function(){var c=arguments,g=c,d=c[0];if(!(this instanceof c.callee))return o(c);if(b){if(d)(d=d.preamble)&&(g=d.apply(this,g)||g);(d=
this.preamble)&&d.apply(this,g)}a&&a.apply(this,c);(d=this.postscript)&&d.apply(this,c)}}function l(a){return function(){var w;var b=arguments,c=0,g,d;if(!(this instanceof b.callee))return o(b);for(;g=a[c];++c)if(w=(d=g._meta)?d.ctor:g,g=w){g.apply(this,b);break}(g=this.postscript)&&g.apply(this,b)}}function n(a,b,c){return function(){var g,d,f=0,e=1;c&&(f=b.length-1,e=-1);for(;g=b[f];f+=e)d=g._meta,(g=(d?d.hidden:g.prototype)[a])&&g.apply(this,arguments)}}function m(a){u.prototype=a.prototype;a=
new u;u.prototype=null;return a}function o(a){var b=a.callee,c=m(b);b.apply(c,a);return c}var p=b,q=p._mixin,r=Object.prototype,s=r.toString,u=new Function,t=0,v="constructor";p.declare=function(b,o,u){typeof b!="string"&&(u=o,o=b,b="");var u=u||{},B,z,y,w,G,D,M,I=1,S=o;if(s.call(o)=="[object Array]"){I=b;y=[];w=[{cls:0,refs:[]}];D={};for(var T=1,P=o.length,K=0,F,N,H,E;K<P;++K){(F=o[K])?s.call(F)!="[object Function]"&&e("mixin #"+K+" is not a callable constructor.",I):e("mixin #"+K+" is unknown. Did you use dojo.require to pull it in?",
I);N=F._meta?F._meta.bases:[F];H=0;for(F=N.length-1;F>=0;--F){E=N[F].prototype;if(!E.hasOwnProperty("declaredClass"))E.declaredClass="uniqName_"+t++;E=E.declaredClass;D.hasOwnProperty(E)||(D[E]={count:0,refs:[],cls:N[F]},++T);E=D[E];H&&H!==E&&(E.refs.push(H),++H.count);H=E}++H.count;w[0].refs.push(H)}for(;w.length;){H=w.pop();y.push(H.cls);for(--T;z=H.refs,z.length==1;){H=z[0];if(!H||--H.count){H=0;break}y.push(H.cls);--T}if(H)for(K=0,P=z.length;K<P;++K)H=z[K],--H.count||w.push(H)}T&&e("can't build consistent linearization",
I);F=o[0];y[0]=F?F._meta&&F===y[y.length-F._meta.bases.length]?F._meta.bases.length:1:0;D=y;y=D[0];I=D.length-y;o=D[I]}else D=[0],o?s.call(o)=="[object Function]"?(y=o._meta,D=D.concat(y?y.bases:o)):e("base class is not a callable constructor.",b):o!==null&&e("unknown base class. Did you use dojo.require to pull it in?",b);if(o)for(z=I-1;;--z){B=m(o);if(!z)break;y=D[z];(y._meta?f:q)(B,y.prototype);w=new Function;w.superclass=o;w.prototype=B;o=B.constructor=w}else B={};j(B,u);y=u.constructor;if(y!==
r.constructor)y.nom=v,B.constructor=y;for(z=I-1;z;--z)(y=D[z]._meta)&&y.chains&&(M=q(M||{},y.chains));B["-chains-"]&&(M=q(M||{},B["-chains-"]));y=!M||!M.hasOwnProperty(v);D[0]=w=M&&M.constructor==="manual"?l(D):D.length==1?k(u.constructor,y):g(D,y);w._meta={bases:D,hidden:u,chains:M,parents:S,ctor:u.constructor};w.superclass=o&&o.prototype;w.extend=h;w.prototype=B;B.constructor=w;B.getInherited=c;B.inherited=a;B.isInstanceOf=d;if(b)B.declaredClass=b,p.setObject(b,w);if(M)for(G in M)if(B[G]&&typeof M[G]==
"string"&&G!=v)y=B[G]=n(G,D,M[G]==="after"),y.nom=G;return w};p.safeMixin=j})();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),d,c=[].concat(c);for(d in c)d in b||c[d].apply(this,arguments);return a}},add:function(e,a,c){var e=e||b.global,d=e[a];if(!d||!d._listeners){var f=b._listener.getDispatcher();f.target=d;f._listeners=[];d=e[a]=f}return d._listeners.push(c)},remove:function(e,a,c){(e=(e||b.global)[a])&&
e._listeners&&c--&&delete e._listeners[c]}};b.connect=function(e,a,c,d,f){var j=arguments,h=[],g=0;h.push(b.isString(j[0])?null:j[g++],j[g++]);var k=j[g+1];h.push(b.isString(k)||b.isFunction(k)?j[g++]:null,j[g++]);for(k=j.length;g<k;g++)h.push(j[g]);return b._connect.apply(this,h)};b._connect=function(e,a,c,d){var f=b._listener,c=f.add(e,a,b.hitch(c,d));return[e,a,c,f]};b.disconnect=function(e){e&&e[0]!==void 0&&(b._disconnect.apply(this,e),delete e[0])};b._disconnect=function(b,a,c,d){d.remove(b,
a,c)};b._topics={};b.subscribe=function(e,a,c){return[e,b._listener.add(b._topics,e,b.hitch(a,c))]};b.unsubscribe=function(e){e&&b._listener.remove(b._topics,e[0],e[1])};b.publish=function(e,a){var c=b._topics[e];c&&c.apply(this,a||[])};b.connectPublisher=function(e,a,c){var d=function(){b.publish(e,arguments)};return c?b.connect(a,c,d):b.connect(a,d)};return b.connect});
define("dojo/_base/Deferred",["dojo/lib/kernel","dojo/_base/lang"],function(b){(function(){var e=function(){},a=Object.freeze||function(){},c=function(){var a,b,c,e,g=!1,k=function(){};return function(l){if(g)a?(b.next={task:l,next:null},b=b.next):b=a={task:l,next:null};else{g=!0;do try{for(;l;){l();if(c)a?b.next=c:a=c,b=e;a?(c=a.next,e=b,l=a.task,a=b=null):l=null}g=!1}catch(n){l=k,console.error(n)}while(g)}}}();b.Deferred=function(d){function f(a){if(g)throw Error("This deferred has already been resolved");
h=a;g=!0;c(j)}function j(){for(var a;!a&&n;){var c=n;n=n.next;if(a=c.progress==e)g=!1;var d=k?c.error:c.resolved;if(d)try{var f=d(h);f&&typeof f.then==="function"?f.then(b.hitch(c.deferred,"resolve"),b.hitch(c.deferred,"reject"),b.hitch(c.deferred,"progress")):(d=a&&f===void 0,a&&!d&&(k=f instanceof Error),c.deferred[d&&k?"reject":"resolve"](d?h:f))}catch(j){c.deferred.reject(j)}else k?c.deferred.reject(h):c.deferred.resolve(h)}}var h,g,k,l,n,m=this.promise={};this.resolve=this.callback=function(a){this.fired=
0;this.results=[a,null];f(a)};this.reject=this.errback=function(a){k=!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=n;b;){var c=b.progress;c&&c(a);b=b.next}};this.addCallbacks=function(a,b){this.then(a,b,e);return this};this.then=m.then=function(a,d,f){var k=f==e?this:new b.Deferred(m.cancel),a={resolved:a,error:d,progress:f,deferred:k};n?l=l.next=a:n=l=a;g&&c(j);return k.promise};var o=
this;this.cancel=m.cancel=function(){if(!g){var a=d&&d(o);if(!g)a instanceof Error||(a=Error(a)),a.log=!1,o.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,d){return b&&typeof b.then==="function"?b.then(a,c,d):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(e,a,c){if(e===void 0)return"undefined";var d=typeof e;if(d=="number"||d=="boolean")return e+"";if(e===null)return"null";if(b.isString(e))return b._escapeString(e);var f=
arguments.callee,j,c=c||"",h=a?c+b.toJsonIndentStr:"";j=e.__json__||e.json;if(b.isFunction(j)&&(j=j.call(e),e!==j))return f(j,a,h);if(e.nodeType&&e.cloneNode)throw Error("Can't serialize DOM nodes");j=a?" ":"";var g=a?"\n":"";if(b.isArray(e))return"["+b.map(e,function(b){b=f(b,a,h);typeof b!="string"&&(b="undefined");return g+h+b}).join(","+j)+g+c+"]";if(d=="function")return null;var d=[],k;for(k in e){var l,n;if(typeof k=="number")l='"'+k+'"';else if(typeof k=="string")l=b._escapeString(k);else continue;
n=f(e[k],a,h);typeof n=="string"&&d.push(g+h+l+":"+j+n)}return"{"+d.join(","+j)+g+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,d){this.r=b;this.g=a;this.b=c;this.a=d},setColor:function(e){b.isString(e)?b.colorFromString(e,this):b.isArray(e)?b.colorFromArray(e,this):(this._set(e.r,e.g,e.b,e.a),e 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(e,a,c,d){var f=d||new b.Color;b.forEach(["r","g","b","a"],function(b){f[b]=e[b]+(a[b]-e[b])*c;b!="a"&&(f[b]=Math.round(f[b]))});return f.sanitize()};b.colorFromRgb=function(e,a){var c=e.toLowerCase().match(/^rgba?\(([\s\.,0-9]+)\)/);return c&&b.colorFromArray(c[1].split(/\s*,\s*/),a)};b.colorFromHex=function(e,
a){var c=a||new b.Color,d=e.length==4?4:8,f=(1<<d)-1,e=Number("0x"+e.substr(1));if(isNaN(e))return null;b.forEach(["b","g","r"],function(a){var b=e&f;e>>=d;c[a]=d==4?17*b:b});c.a=1;return c};b.colorFromArray=function(e,a){var c=a||new b.Color;c._set(Number(e[0]),Number(e[1]),Number(e[2]),Number(e[3]));if(isNaN(c.a))c.a=1;return c.sanitize()};b.colorFromString=function(e,a){var c=b.Color.named[e];return c&&b.colorFromArray(c,a)||b.colorFromRgb(e,a)||b.colorFromHex(e,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(e,a){b.global=e;b.doc=a};b.withGlobal=function(e,a,c,d){var f=b.global;try{return b.global=e,b.withDoc.call(null,e.document,a,c,d)}finally{b.global=f}};b.withDoc=function(e,a,c,d){var f=b.doc,j=b._bodyLtr,h=b.isQuirks;try{return b.doc=e,delete b._bodyLtr,b.isQuirks=b.doc.compatMode=="BackCompat",c&&typeof a=="string"&&
(a=c[a]),a.apply(c,d||[])}finally{b.doc=f;delete b._bodyLtr;if(j!==void 0)b._bodyLtr=j;b.isQuirks=h}};return b});
define("dojo/_base/event",["dojo/lib/kernel","dojo/_base/connect"],function(b){(function(){var e=b._event_listener={add:function(a,c,d){if(a){c=e._normalizeEventName(c);d=e._fixCallback(c,d);if(!b.isIE&&(c=="mouseenter"||c=="mouseleave"))var f=d,c=c=="mouseenter"?"mouseover":"mouseout",d=function(c){if(!b.isDescendant(c.relatedTarget,a))return f.call(this,c)};a.addEventListener(c,d,!1);return d}},remove:function(a,c,d){if(a){c=e._normalizeEventName(c);if(!b.isIE&&(c=="mouseenter"||c=="mouseleave"))c=
c=="mouseenter"?"mouseover":"mouseout";a.removeEventListener(c,d,!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,e._fixEvent(a,this))}},_fixEvent:function(a){switch(a.type){case "keypress":e._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 e._fixEvent(a,b)};b.stopEvent=function(a){a.preventDefault&&a.preventDefault();a.stopPropagation&&a.stopPropagation()};var a=b._listener;b._connect=function(c,d,f,h,j){j=c&&(c.nodeType||c.attachEvent||c.addEventListener)?j?2:1:0;f=[b._listener,e,a][j].add(c,d,b.hitch(f,h));return[c,d,f,j]};b._disconnect=function(c,d,f,j){[b._listener,e,a][j].remove(c,d,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 d=function(a,b){try{return a.keyCode=b}catch(c){return 0}},f=b._listener,j=b._ieListenersName="_"+b._scopeName+"_listeners";if(!b.config._allow_leaks)var a=f=b._ie_listener={handlers:[],add:function(a,c,d){var a=a||b.global,f=a[c];if(!f||!f[j]){var e=b._getIeDispatcher();e.target=f&&h.push(f)-1;e[j]=[];f=a[c]=e}return f[j].push(h.push(d)-1)},remove:function(a,
c,d){var g;g=(a=(a||b.global)[c])&&a[j],c=g;a&&c&&d--&&(delete h[c[d]],delete c[d])}},h=f.handlers;b.mixin(e,{add:function(a,b,c){if(a){b=e._normalizeEventName(b);if(b=="onkeypress"){var d=a.onkeydown;if(!d||!d[j]||!d._stealthKeydownHandle){var h=e.add(a,"onkeydown",e._stealthKeyDown),d=a.onkeydown;d._stealthKeydownHandle=h;d._stealthKeydownRefs=1}else d._stealthKeydownRefs++}return f.add(a,b,e._fixCallback(c))}},remove:function(a,b,c){b=e._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 d=a.srcElement,d=d&&d.ownerDocument||document,d=b.isIE<6||d.compatMode=="BackCompat"?
d.body:d.documentElement,f=b._getIeDocumentElementOffset();a.pageX=a.clientX+b._fixIeBiDiScrollLeft(d.scrollLeft||0)-f.x;a.pageY=a.clientY+(d.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=e._stopPropagation,a.preventDefault=e._preventDefault;return e._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;e._setKeyChar(a)}return a},_stealthKeyDown:function(a){var c=a.currentTarget.onkeypress;if(c&&c[j]){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=e._punctMap[h]||h;f=e._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;d(a,f.keyCode)}}},_stopPropagation:function(){this.cancelBubble=!0},_preventDefault:function(){this.bubbledKeyCode=this.keyCode;this.ctrlKey&&d(this,0);this.returnValue=!1}});b.stopEvent=b.isIE<9||b.isQuirks?function(a){a=a||window.event;e._stopPropagation.call(a);e._preventDefault.call(a)}:b.stopEvent}e._synthesizeEvent=function(a,c){var d=b.mixin({},a,c);e._setKeyChar(d);d.preventDefault=function(){a.preventDefault()};d.stopPropagation=
function(){a.stopPropagation()};return d};b.isOpera&&b.mixin(e,{_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 e._synthesizeEvent(a,{charCode:b})}return a}});if(b.isWebKit)e._add=e.add,e._remove=e.remove,b.mixin(e,{add:function(a,b,c){if(a){var d=e._add(a,b,c);if(e._normalizeEventName(b)=="keypress")d._stealthKeyDownHandle=e._add(a,"keydown",function(a){var b=a.keyCode,d=b!=13&&b!=32&&(b<
48||b>90)&&(b<96||b>111)&&(b<186||b>192)&&(b<219||b>222);if(d||a.ctrlKey){d=d?0:b;if(a.ctrlKey)if(b==3||b==13)return;else d>95&&d<106?d-=48:!a.shiftKey&&d>=65&&d<=90?d+=32:d=e._punctMap[d]||d;b=e._synthesizeEvent(a,{type:"keypress",faux:!0,charCode:d});c.call(a.currentTarget,b)}});return d}},remove:function(a,b,c){a&&(c._stealthKeyDownHandle&&e._remove(a,"keydown",c._stealthKeyDownHandle),e._remove(a,b,c))},_fixEvent:function(a){switch(a.type){case "keypress":if(a.faux)break;var b=a.charCode;return e._synthesizeEvent(a,
{charCode:b>=32?b:0,faux:!0})}return a}})})();if(b.isIE)b._ieDispatcher=function(e,a){var c=Array.prototype,d=b._ie_listener.handlers,f=e.callee,j=f[b._ieListenersName],f=(f=d[f.target])&&f.apply(a,e),j=[].concat(j),h;for(h in j){var g=d[j[h]];!(h in c)&&g&&g.apply(a,e)}return f},b._getIeDispatcher=function(){return new Function(b._scopeName+"._ieDispatcher(arguments, this)")},b._event_listener._fixCallback=function(e){var a=b._event_listener._fixEvent;return function(b){return e.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(e){}b.byId=b.isIE?function(a,c){if(typeof a!="string")return a;var d=c||b.doc,f=d.getElementById(a);if(f&&(f.attributes.id.value==a||f.id==a))return f;else{d=d.all[a];if(!d||d.nodeName)d=[d];for(var e=0;f=d[e++];)if(f.attributes&&f.attributes.id&&f.attributes.id.value==a||f.id==a)return f}}:function(a,c){return(typeof a=="string"?(c||b.doc).getElementById(a):a)||
null};(function(){var a=b.byId,c=null,d;b.addOnWindowUnload(function(){c=null});b._destroyElement=b.destroy=function(b){b=a(b);try{var f=b.ownerDocument;if(!c||d!=f)c=f.createElement("div"),d=f;c.appendChild(b.parentNode?b.parentNode.removeChild(b):b);c.innerHTML=""}catch(g){}};b.isDescendant=function(b,c){try{b=a(b);for(c=a(c);b;){if(b==c)return!0;b=b.parentNode}}catch(d){}return!1};b.setSelectable=function(c,d){c=a(c);if(b.isMozilla)c.style.MozUserSelect=d?"":"none";else if(b.isKhtml||b.isWebKit)c.style.KhtmlUserSelect=
d?"auto":"none";else if(b.isIE){var f=c.unselectable=d?"":"on";b.query("*",c).forEach("item.unselectable = '"+f+"'")}};var f=function(a,b){var c=b.parentNode;c&&c.insertBefore(a,b)};b.place=function(c,d,g){d=a(d);typeof c=="string"&&(c=/^\s*</.test(c)?b._toDom(c,d.ownerDocument):a(c));if(typeof g=="number"){var e=d.childNodes;!e.length||e.length<=g?d.appendChild(c):f(c,e[g<0?0:g])}else switch(g){case "before":f(c,d);break;case "after":g=c;(e=d.parentNode)&&(e.lastChild==d?e.appendChild(g):e.insertBefore(g,
d.nextSibling));break;case "replace":d.parentNode.replaceChild(c,d);break;case "only":b.empty(d);d.appendChild(c);break;case "first":if(d.firstChild){f(c,d.firstChild);break}default:d.appendChild(c)}return c};b.boxModel="content-box";if(b.isIE)b.boxModel=document.compatMode=="BackCompat"?"border-box":"content-box";var e;e=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=e;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,d=runtimeStyle.left;runtimeStyle.left=currentStyle.left;try{style.left=b,b=style.pixelLeft}catch(f){b=0}style.left=c;runtimeStyle.left=d}return b}:function(a,b){return parseFloat(b)||
0};var h=b._toPixelValue,g=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 g(a).Opacity/100}catch(b){return 1}}:function(a){return e(a).opacity};b._setOpacity=b.isIE<9?function(a,c){var d=c*100,f=c==1;a.style.zoom=f?"":1;if(g(a))g(a,1).Opacity=d;else{if(f)return c;a.style.filter+=" progid:DXImageTransform.Microsoft.Alpha(Opacity="+d+")"}g(a,1).Enabled=!f;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 k={left:!0,top:!0},l=/margin|padding|width|height|max|min|offset/,n=function(a,c,d){c=c.toLowerCase();if(b.isIE){if(d=="auto"){if(c=="height")return a.offsetHeight;if(c=="width")return a.offsetWidth}if(c=="fontweight")switch(d){case 700:return"bold";default:return"normal"}}c in k||(k[c]=l.test(c));return k[c]?h(a,d):d},m=b.isIE?"styleFloat":"cssFloat",o={cssFloat:m,styleFloat:m,"float":m};b.style=function(c,
d,f){var g=a(c),k=arguments.length,h=d=="opacity",d=o[d]||d;if(k==3)return h?b._setOpacity(g,f):g.style[d]=f;if(k==2&&h)return b._getOpacity(g);h=e(g);if(k==2&&typeof d!="string"){for(var l in d)b.style(c,l,d[l]);return h}return k==1?h:n(g,d,h[d]||g.style[d])};b._getPadExtents=function(a,b){var c=b||e(a),d=h(a,c.paddingLeft),f=h(a,c.paddingTop);return{l:d,t:f,w:d+h(a,c.paddingRight),h:f+h(a,c.paddingBottom)}};b._getBorderExtents=function(a,b){var c=b||e(a),d=c.borderLeftStyle!="none"?h(a,c.borderLeftWidth):
0,f=c.borderTopStyle!="none"?h(a,c.borderTopWidth):0;return{l:d,t:f,w:d+(c.borderRightStyle!="none"?h(a,c.borderRightWidth):0),h:f+(c.borderBottomStyle!="none"?h(a,c.borderBottomWidth):0)}};b._getPadBorderExtents=function(a,c){var d=c||e(a),f=b._getPadExtents(a,d),d=b._getBorderExtents(a,d);return{l:f.l+d.l,t:f.t+d.t,w:f.w+d.w,h:f.h+d.h}};b._getMarginExtents=function(a,c){var d=c||e(a),f=h(a,d.marginLeft),g=h(a,d.marginTop),k=h(a,d.marginRight),l=h(a,d.marginBottom);b.isWebKit&&d.position!="absolute"&&
(k=f);return{l:f,t:g,w:f+k,h:g+l}};b._getMarginBox=function(a,c){var d=c||e(a),f=b._getMarginExtents(a,d),g=a.offsetLeft-f.l,k=a.offsetTop-f.t,h=a.parentNode;if(b.isMoz){var l=parseFloat(d.left),d=parseFloat(d.top);!isNaN(l)&&!isNaN(d)?(g=l,k=d):h&&h.style&&(l=e(h),l.overflow!="visible"&&(h=b._getBorderExtents(h,l),g+=h.l,k+=h.t))}else if((b.isOpera||b.isIE>7&&!b.isQuirks)&&h)h=b._getBorderExtents(h),g-=h.l,k-=h.t;return{l:g,t:k,w:a.offsetWidth+f.w,h:a.offsetHeight+f.h}};b._getMarginSize=function(c,
d){var c=a(c),f=b._getMarginExtents(c,d||e(c)),g=c.getBoundingClientRect();return{w:g.right-g.left+f.w,h:g.bottom-g.top+f.h}};b._getContentBox=function(a,c){var d=c||e(a),f=b._getPadExtents(a,d),d=b._getBorderExtents(a,d),g=a.clientWidth,k;g?(k=a.clientHeight,d.w=d.h=0):(g=a.offsetWidth,k=a.offsetHeight);b.isOpera&&(f.l+=d.l,f.t+=d.t);return{l:f.l,t:f.t,w:g-f.w-d.w,h:k-f.h-d.h}};b._getBorderBox=function(a,c){var d=c||e(a),f=b._getPadExtents(a,d),d=b._getContentBox(a,d);return{l:d.l-f.l,t:d.t-f.t,
w:d.w+f.w,h:d.h+f.h}};b._setBox=function(a,b,c,d,f,g){g=g||"px";a=a.style;if(!isNaN(b))a.left=b+g;if(!isNaN(c))a.top=c+g;if(d>=0)a.width=d+g;if(f>=0)a.height=f+g};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,d,f){b._usesBorderBox(a)&&(f=b._getPadBorderExtents(a,f),c>=0&&(c+=f.w),
d>=0&&(d+=f.h));b._setBox(a,NaN,NaN,c,d)};b._setMarginBox=function(a,c,d,f,g,k){var h=k||e(a),k=b._usesBorderBox(a)?p:b._getPadBorderExtents(a,h);if(b.isWebKit&&b._isButtonTag(a)){var l=a.style;if(f>=0&&!l.width)l.width="4px";if(g>=0&&!l.height)l.height="4px"}h=b._getMarginExtents(a,h);f>=0&&(f=Math.max(f-k.w-h.w,0));g>=0&&(g=Math.max(g-k.h-h.h,0));b._setBox(a,c,d,f,g)};var p={l:0,t:0,w:0,h:0};b.marginBox=function(c,d){var f=a(c),g=e(f);return!d?b._getMarginBox(f,g):b._setMarginBox(f,d.l,d.t,d.w,
d.h,g)};b.contentBox=function(c,d){var f=a(c),g=e(f);return!d?b._getContentBox(f,g):b._setContentSize(f,d.w,d.h,g)};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(),d=c.left,c=c.top;b.isIE<7&&(d+=a.clientLeft,c+=a.clientTop);return{x:d<0?0:d,y:c<0?0:c}}else return{x:0,y:0}};b._fixIeBiDiScrollLeft=function(a){var c=b.isIE;if(c&&!b._isBodyLtr()){var d=b.isQuirks,f=d?b.doc.body:b.doc.documentElement;c==6&&!d&&b.global.frameElement&&f.scrollHeight>f.clientHeight&&(a+=f.clientLeft);return c<8||d?a+f.clientWidth-f.scrollWidth:-a}return a};b._abs=b.position=function(c,d){var c=a(c),f=b.body(),g=f.parentNode,
k=c.getBoundingClientRect(),k={x:k.left,y:k.top,w:k.right-k.left,h:k.bottom-k.top};b.isIE?(g=b._getIeDocumentElementOffset(),k.x-=g.x+(b.isQuirks?f.clientLeft+f.offsetLeft:0),k.y-=g.y+(b.isQuirks?f.clientTop+f.offsetTop:0)):b.isFF==3&&(f=e(g),k.x-=h(g,f.marginLeft)+h(g,f.borderLeftWidth),k.y-=h(g,f.marginTop)+h(g,f.borderTopWidth));d&&(f=b._docScroll(),k.x+=f.x,k.y+=f.y);return k};b.coords=function(c,d){var f=a(c),g=e(f),g=b._getMarginBox(f,g),f=b.position(f,d);g.x=f.x;g.y=f.y;return g};var q={"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"},s={innerHTML:1,className:1,htmlFor:b.isIE,value:1},u=function(a,b){var c=a.getAttributeNode&&a.getAttributeNode(b);return c&&c.specified};b.hasAttr=function(b,c){var d=c.toLowerCase();return s[q[d]||c]||u(a(b),r[d]||c)};var t={},v=0,C=b._scopeName+"attrid",x={col:1,colgroup:1,table:1,
tbody:1,tfoot:1,thead:1,tr:1,title:1};b.attr=function(c,d,f){var c=a(c),g=arguments.length;if(g==2&&typeof d!="string"){for(var e in d)b.attr(c,e,d[e]);return c}var k=d.toLowerCase();e=q[k]||d;var h=s[e],k=r[k]||d;if(g==3){if(e=="style"&&typeof f!="string")b.style(c,f);else if(e=="innerHTML")b.isIE&&c.tagName.toLowerCase()in x?(b.empty(c),c.appendChild(b._toDom(f,c.ownerDocument))):c[e]=f;else if(b.isFunction(f)){g=b.attr(c,C);g||(g=v++,b.attr(c,C,g));t[g]||(t[g]={});if(h=t[g][e])b.disconnect(h);
else try{delete c[e]}catch(j){}t[g][e]=b.connect(c,e,f)}else h||typeof f=="boolean"?c[e]=f:c.setAttribute(k,f);return c}f=c[e];return h&&typeof f!="undefined"?f:e!="href"&&(typeof f=="boolean"||b.isFunction(f))?f:u(c,k)?c.getAttribute(k):null};b.removeAttr=function(b,c){a(b).removeAttribute(r[c.toLowerCase()]||c)};b.getNodeProp=function(b,c){var b=a(b),d=c.toLowerCase(),f=q[d]||c;if(f in b&&f!="href")return b[f];d=r[d]||c;return u(b,d)?b.getAttribute(d):null};b.create=function(c,d,f,g){var e=b.doc;
if(f)f=a(f),e=f.ownerDocument;typeof c=="string"&&(c=e.createElement(c));d&&b.attr(c,d);f&&b.place(c,f,g);return c};b.empty=b.isIE?function(c){for(var c=a(c),d;d=c.lastChild;)b.destroy(d)}:function(b){a(b).innerHTML=""};var A={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"]},B=/<\s*([\w\:]+)/,z={},y=0,w="__"+b._scopeName+
"ToDomId",G;for(G in A)if(A.hasOwnProperty(G))m=A[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,d=c[w];d||(c[w]=d=++y+"",z[d]=c.createElement("div"));a+="";var f=a.match(B),g=f?f[1].toLowerCase():"",d=z[d];if(f&&A[g]){f=A[g];d.innerHTML=f.pre+a+f.post;for(f=f.length;f;--f)d=d.firstChild}else d.innerHTML=a;if(d.childNodes.length==1)return d.removeChild(d.firstChild);for(g=c.createDocumentFragment();f=
d.firstChild;)g.appendChild(f);return g};b.hasClass=function(b,c){return(" "+a(b).className+" ").indexOf(" "+c+" ")>=0};var D=/\s+/,M=[""],I={},S=function(a){return typeof a=="string"||a instanceof String?a.indexOf(" ")<0?(M[0]=a,M):a.split(D):a||""};b.addClass=function(b,c){var b=a(b),c=S(c),d=b.className,f,d=d?" "+d+" ":" ";f=d.length;for(var g=0,e=c.length,k;g<e;++g)(k=c[g])&&d.indexOf(" "+k+" ")<0&&(d+=k+" ");f<d.length&&(b.className=d.substr(1,d.length-2))};b.removeClass=function(c,d){var c=
a(c),f;if(d!==void 0){d=S(d);f=" "+c.className+" ";for(var g=0,e=d.length;g<e;++g)f=f.replace(" "+d[g]+" "," ");f=b.trim(f)}else f="";c.className!=f&&(c.className=f)};b.replaceClass=function(c,d,f){c=a(c);I.className=c.className;b.removeClass(I,f);b.addClass(I,d);if(c.className!==I.className)c.className=I.className};b.toggleClass=function(a,c,d){d===void 0&&(d=!b.hasClass(a,c));b[d?"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 e=Array.prototype,a=e.slice,c=e.concat,d=function(c,d,f){c.sort||(c=a.call(c,0));f=f||this._NodeListCtor||b._NodeListCtor;c.constructor=f;b._mixin(c,f.prototype);c._NodeListCtor=f;return d?c._stash(d):c},f=function(c,d,f){d=[0].concat(a.call(d,0));f=f||b.global;return function(a){d[0]=a;return c.apply(f,d)}},j=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))}},g=function(a,c,d){return function(){var g=arguments,e=f(a,g,d);if(c.call(d||b.global,g))return this.map(e);this.forEach(e);return this}},k=function(a){return a.length==1&&typeof a[0]=="string"},l=function(a){var b=a.parentNode;b&&b.removeChild(a)};b.NodeList=function(){return d(Array.apply(null,arguments))};var n=b._NodeListCtor=b.NodeList,m=n.prototype;n._wrap=m._wrap=d;n._adaptAsMap=h;n._adaptAsForEach=
j;n._adaptAsFilter=function(a,b){return function(){return this.filter(f(a,arguments,b))}};n._adaptWithCondition=g;b.forEach(["slice","splice"],function(a){var b=e[a];m[a]=function(){return this._wrap(b.apply(this,arguments),a=="slice"?this:null)}});b.forEach(["indexOf","lastIndexOf","every","some"],function(c){var d=b[c];m[c]=function(){return d.apply(b,[this].concat(a.call(arguments,0)))}});b.forEach(["attr","style"],function(a){m[a]=g(b[a],k)});b.forEach("connect,addClass,removeClass,replaceClass,toggleClass,empty,removeAttr".split(","),
function(a){m[a]=j(b[a])});b.extend(b.NodeList,{_normalize:function(a,c){var d=a.parse===!0?!0:!1;if(typeof a.template=="string")var f=a.templateFunc||b.string&&b.string.substitute,a=f?f(a.template,a):a;f=typeof a;f=="string"||f=="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(d)a._runParse=!0;return a},_cloneNode:function(a){return a.cloneNode(!0)},_place:function(a,c,d,f){if(!(c.nodeType!=1&&d=="only"))for(var g,
e=a.length,k=e-1;k>=0;k--){var h=f?this._cloneNode(a[k]):a[k];if(a._runParse&&b.parser&&b.parser.parse){g||(g=c.ownerDocument.createElement("div"));g.appendChild(h);b.parser.parse(g);for(h=g.firstChild;g.firstChild;)g.removeChild(g.firstChild)}k==e-1?b.place(h,c,d):c.parentNode.insertBefore(h,c);c=h}},_stash:function(a){this._parent=a;return this},end:function(){return this._parent?this._parent:new this._NodeListCtor},concat:function(d){var f=b.isArray(this)?this:a.call(this,0),g=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(f,g),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 d=b.query(a)[0];return this.forEach(function(a){b.place(a,d,c)})},orphan:function(a){return(a?b._filterQueryResult(this,a):this).forEach(l)},
adopt:function(a,c){return b.query(a).place(this[0],c)._stash(this)},query:function(a){if(!a)return this;var d=this.map(function(c){return b.query(a,c).filter(function(a){return a!==void 0})});return this._wrap(c.apply([],d),this)},filter:function(a){var c=arguments,d=this,f=0;if(typeof a=="string"){d=b._filterQueryResult(this,c[0]);if(c.length==1)return d._stash(this);f=1}return this._wrap(b.filter(d,c[f],c[f+1]),this)},addContent:function(a,b){for(var a=this._normalize(a,this[0]),c=0,d;d=this[c];c++)this._place(a,
d,b,c>0);return this},instantiate:function(a,c){var d=b.isFunction(a)?a:b.getObject(a),c=c||{};return this.forEach(function(a){new d(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)}});n.events="blur,focus,change,click,error,keydown,keypress,keyup,load,mousedown,mouseenter,mouseleave,mousemove,mouseout,mouseover,mouseup,submit".split(",");b.forEach(n.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,d=a.forEach,f=a._NodeListCtor=a.NodeList,e=(a.isWebKit||a.isMozilla)&&a.doc.compatMode=="BackCompat",h=a.doc.firstChild.children?"children":"childNodes",g=!1,k=function(){return!0},l=function(a){a+=">~+".indexOf(a.slice(-1))>=0?" * ":" ";for(var d=function(d,f){return b(a.slice(d,f))},f=[],e=-1,k=-1,h=-1,j=-1,l=-1,n=-1,m=-1,o="",p="",C,s=0,q=a.length,r=null,u=null,t=function(){if(n>=0)r.id=d(n,s).replace(/\\/g,""),n=-1;if(m>=0){var a=m==s?null:d(m,s);r[">~+".indexOf(a)<
0?"tag":"oper"]=a;m=-1}l>=0&&(r.classes.push(d(l+1,s).replace(/\\/g,"")),l=-1)};o=p,p=a.charAt(s),s<q;s++)if(o!="\\")if(r||(C=s,r={query:null,pseudos:[],attrs:[],classes:[],tag:null,oper:null,id:null,getTag:function(){return g?this.otag:this.tag}},m=s),e>=0)if(p=="]"){u.attr?u.matchFor=d(h||e+1,s):u.attr=d(e+1,s);if((e=u.matchFor)&&(e.charAt(0)=='"'||e.charAt(0)=="'"))u.matchFor=e.slice(1,-1);r.attrs.push(u);u=null;e=h=-1}else{if(p=="=")h="|~^$*".indexOf(o)>=0?o:"",u.type=h+p,u.attr=d(e+1,s-h.length),
h=s+1}else if(k>=0){if(p==")"){if(j>=0)u.value=d(k+1,s);j=k=-1}}else if(p=="#")t(),n=s+1;else if(p==".")t(),l=s;else if(p==":")t(),j=s;else if(p=="[")t(),e=s,u={};else if(p=="(")j>=0&&(u={name:d(j+1,s),value:null},r.pseudos.push(u)),k=s;else if(p==" "&&o!=p){t();j>=0&&r.pseudos.push({name:d(j+1,s)});r.loops=r.pseudos.length||r.attrs.length||r.classes.length;r.oquery=r.query=d(C,s);r.otag=r.tag=r.oper?null:r.tag||"*";if(r.tag)r.tag=r.tag.toUpperCase();if(f.length&&f[f.length-1].oper)r.infixOper=f.pop(),
r.query=r.infixOper.query+" "+r.query;f.push(r);r=null}return f},n=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},o=function(a){return 1==a.nodeType},p=function(a,b){return!a?"":b=="class"?a.className||"":b=="for"?a.htmlFor||"":b=="style"?a.style.cssText||"":(g?a.getAttribute(b):a.getAttribute(b,2))||""},q={"*=":function(a,b){return function(c){return p(c,a).indexOf(b)>=0}},"^=":function(a,b){return function(c){return p(c,
a).indexOf(b)==0}},"$=":function(a,b){return function(c){c=" "+p(c,a);return c.lastIndexOf(b)==c.length-b.length}},"~=":function(a,b){var c=" "+b+" ";return function(b){return(" "+p(b,a)+" ").indexOf(c)>=0}},"|=":function(a,b){var c=" "+b+"-";return function(d){d=" "+p(d,a);return d==b||d.indexOf(c)==0}},"=":function(a,b){return function(c){return p(c,a)==b}}},r=typeof a.doc.firstChild.nextElementSibling=="undefined",s=!r?"nextElementSibling":"nextSibling",u=!r?"previousElementSibling":"previousSibling",
t=r?o:k,v=function(a){for(;a=a[u];)if(t(a))return!1;return!0},C=function(a){for(;a=a[s];)if(t(a))return!1;return!0},x=function(a){var b=a.parentNode,c=0,d=b[h],f=a._i||-1,g=b._l||-1;if(!d)return-1;d=d.length;if(g==d&&f>=0&&g>=0)return f;b._l=d;f=-1;for(b=b.firstElementChild||b.firstChild;b;b=b[s])if(t(b))b._i=++c,a===b&&(f=c);return f},A=function(a){return!(x(a)%2)},B=function(a){return x(a)%2},z={checked:function(){return function(a){return!!("checked"in a?a.checked:a.selected)}},"first-child":function(){return v},
"last-child":function(){return C},"only-child":function(){return function(a){return!v(a)?!1:!C(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=l(b)[0],d={el:1};if(c.tag!="*")d.tag=1;if(!c.classes.length)d.classes=1;var f=w(c,d);return function(a){return!f(a)}},
"nth-child":function(a,b){var c=parseInt;if(b=="odd")return B;else if(b=="even")return A;if(b.indexOf("n")!=-1){var d=b.split("n",2),f=d[0]?d[0]=="-"?-1:c(d[0]):1,g=d[1]?c(d[1]):0,e=0,k=-1;f>0?g<0?g=g%f&&f+g%f:g>0&&(g>=f&&(e=g-g%f),g%=f):f<0&&(f*=-1,g>0&&(k=g,g%=f));if(f>0)return function(a){a=x(a);return a>=e&&(k<0||a<=k)&&a%f==g};else b=g}var h=c(b);return function(a){return x(a)==h}}},y=a.isIE<9||dojo.isIE&&dojo.isQuirks?function(a){var b=a.toLowerCase();b=="class"&&(a="className");return function(c){return g?
c.getAttribute(a):c[a]||c[b]}}:function(a){return function(b){return b&&b.getAttribute&&b.hasAttribute(a)}},w=function(a,b){if(!a)return k;var b=b||{},c=null;"el"in b||(c=n(c,o));"tag"in b||a.tag!="*"&&(c=n(c,function(b){return b&&b.tagName==a.getTag()}));"classes"in b||d(a.classes,function(a,b){var d=RegExp("(?:^|\\s)"+a+"(?:\\s|$)");c=n(c,function(a){return d.test(a.className)});c.count=b});"pseudos"in b||d(a.pseudos,function(a){var b=a.name;z[b]&&(c=n(c,z[b](b,a.value)))});"attrs"in b||d(a.attrs,
function(a){var b,d=a.attr;a.type&&q[a.type]?b=q[a.type](d,a.matchFor):d.length&&(b=y(d));b&&(c=n(c,b))});"id"in b||a.id&&(c=n(c,function(b){return!!b&&b.id==a.id}));c||"default"in b||(c=k);return c},G=function(a){return function(b,c,d){for(;b=b[s];)if(!r||o(b)){(!d||J(b,d))&&a(b)&&c.push(b);break}return c}},D=function(a){return function(b,c,d){for(b=b[s];b;){if(t(b)){if(d&&!J(b,d))break;a(b)&&c.push(b)}b=b[s]}return c}},M=function(a){a=a||k;return function(b,c,d){for(var f=0,g=b[h];b=g[f++];)t(b)&&
(!d||J(b,d))&&a(b,f)&&c.push(b);return c}},I={},S=function(b){var c=I[b.query];if(c)return c;var d=b.infixOper,d=d?d.oper:"",f=w(b,{el:1}),g="*"==b.tag,h=a.doc.getElementsByClassName;if(d){h={el:1};if(g)h.tag=1;f=w(b,h);"+"==d?c=G(f):"~"==d?c=D(f):">"==d&&(c=M(f))}else if(b.id)f=!b.loops&&g?k:w(b,{el:1,id:1}),c=function(c,d){var g=a.byId(b.id,c.ownerDocument||c);if(g&&f(g))if(9==c.nodeType)return m(g,d);else{for(var e=g.parentNode;e;){if(e==c)break;e=e.parentNode}if(e)return m(g,d)}};else if(h&&/\{\s*\[native code\]\s*\}/.test(String(h))&&
b.classes.length&&!e)var f=w(b,{el:1,classes:1,id:1}),l=b.classes.join(" "),c=function(a,b,c){for(var b=m(0,b),d,g=0,e=a.getElementsByClassName(l);d=e[g++];)f(d,a)&&J(d,c)&&b.push(d);return b};else!g&&!b.loops?c=function(a,c,d){for(var c=m(0,c),f=0,g=a.getElementsByTagName(b.getTag());a=g[f++];)J(a,d)&&c.push(a);return c}:(f=w(b,{el:1,tag:1,id:1}),c=function(a,c,d){for(var c=m(0,c),g,e=0,k=a.getElementsByTagName(b.getTag());g=k[e++];)f(g,a)&&J(g,d)&&c.push(g);return c});return I[b.query]=c},T={},
P={},K=function(a){var d=l(b(a));if(d.length==1){var g=S(d[0]);return function(a){if(a=g(a,new f))a.nozip=!0;return a}}return function(a){for(var a=m(a),b,c,f=d.length,g,e,k=0;k<f;k++){e=[];b=d[k];c=a.length-1;if(c>0)g={},e.nozip=!0;c=S(b);for(var h=0;b=a[h];h++)c(b,e,g);if(!e.length)break;a=e}return e}},F=navigator.userAgent,F=a.isWebKit&&F.indexOf("WebKit/")>0&&parseFloat(F.split("WebKit/")[1])>528,N=a.isIE?"commentStrip":"nozip",H=!!a.doc.querySelectorAll&&(!a.isSafari||a.isSafari>3.1||F),E=/n\+\d|([^ ])?([>~+])([^ =])?/g,
L=function(a,b,c,d){return c?(b?b+" ":"")+c+(d?" "+d:""):a},U=function(b,c){b=b.replace(E,L);if(H){var d=P[b];if(d&&!c)return d}if(d=T[b])return d;var d=b.charAt(0),f=-1==b.indexOf(" ");b.indexOf("#")>=0&&f&&(c=!0);if(H&&!c&&">~+".indexOf(d)==-1&&(!a.isIE||b.indexOf(":")==-1)&&!(e&&b.indexOf(".")>=0)&&b.indexOf(":contains")==-1&&b.indexOf(":checked")==-1&&b.indexOf("|=")==-1){var g=">~+".indexOf(b.charAt(b.length-1))>=0?b+" *":b;return P[b]=function(a){try{if(!(9==a.nodeType||f))throw"";var c=a.querySelectorAll(g);
c[N]=!0;return c}catch(d){return U(b,!0)(a)}}}else{var k=b.split(/\s*,\s*/);return T[b]=k.length<2?K(b):function(a){for(var b=0,c=[],d;d=k[b++];)c=c.concat(K(d)(a));return c}}},Q=0,O=a.isIE?function(a){return g?a.getAttribute("_uid")||a.setAttribute("_uid",++Q)||Q:a.uniqueID}:function(a){return a._uid||(a._uid=++Q)},J=function(a,b){if(!b)return 1;var c=O(a);return!b[c]?b[c]=1:0},V=function(b){if(b&&b.nozip)return f._wrap?f._wrap(b):b;var c=new f;if(!b||!b.length)return c;b[0]&&c.push(b[0]);if(b.length<
2)return c;Q++;if(a.isIE&&g){var d=Q+"";b[0].setAttribute("_zipIdx",d);for(var e=1,k;k=b[e];e++)b[e].getAttribute("_zipIdx")!=d&&c.push(k),k.setAttribute("_zipIdx",d)}else if(a.isIE&&b.commentStrip)try{for(e=1;k=b[e];e++)o(k)&&c.push(k)}catch(h){}else{b[0]&&(b[0]._zipIdx=Q);for(e=1;k=b[e];e++)b[e]._zipIdx!=Q&&c.push(k),k._zipIdx=Q}return c};a.query=function(b,c){f=a._NodeListCtor;if(!b)return new f;if(b.constructor==f)return b;if(typeof b!="string")return new f(b);if(typeof c=="string"&&(c=a.byId(c),
!c))return new f;var c=c||a.doc,d=c.ownerDocument||c.documentElement;g=c.contentType&&c.contentType=="application/xml"||a.isOpera&&(c.doctype||d.toString()=="[object XMLDocument]")||!!d&&(a.isIE?d.xml:c.xmlVersion||d.xmlVersion);return(d=U(b)(c))&&d.nozip&&!f._wrap?d:V(d)};a.query.pseudos=z;a._filterQueryResult=function(b,c,d){for(var f=new a._NodeListCtor,g=l(c),g=g.length==1&&!/[^\w#\.]/.test(c)?w(g[0]):function(a){return dojo.query(c,d).indexOf(a)!=-1},e=0,k;k=b[e];e++)g(k)&&f.push(k);return f}},
e=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 d=0,e=a.length;d<e;++d)b.call(c||window,a[d],d,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,d=parseFloat(a);acme.isOpera=b.indexOf("Opera")>=0?d:void 0;acme.isKhtml=a.indexOf("Konqueror")>=
0?d: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||e()))})();
define("dojo/_base/xhr",["dojo/lib/kernel","dojo/_base/Deferred","dojo/_base/json","dojo/_base/lang","dojo/_base/query"],function(b){(function(){var e=b.config;b.fieldToObject=function(a){var c=null;if(a=b.byId(a)){var d=a.name,f=(a.type||"").toLowerCase();if(d&&f&&!a.disabled)if(f=="radio"||f=="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 d=a.name,f=(a.type||"").toLowerCase();if(d&&f&&"file|submit|image|reset|button|".indexOf(f)==-1&&!a.disabled){a=b.fieldToObject(a);if(a!==null){var g=c[d];typeof g=="string"?c[d]=[g,a]:b.isArray(g)?g.push(a):c[d]=a}if(f=="image")c[d+".x"]=c[d+".y"]=c[d].x=c[d].y=0}});return c};b.objectToQuery=function(a){var c=encodeURIComponent,d=[],f={},g;for(g in a){var e=a[g];if(e!=f[g]){var k=c(g)+"=";if(b.isArray(e))for(var h=0;h<e.length;h++)d.push(k+c(e[h]));else d.push(k+c(e))}}return d.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("&"),d=decodeURIComponent;b.forEach(a,function(a){if(a.length){var f=a.split("="),a=d(f.shift()),f=d(f.join("="));typeof c[a]=="string"&&(c[a]=[c[a]]);b.isArray(c[a])?c[a].push(f):c[a]=f}});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("/*"),d=a.lastIndexOf("*/");if(c==-1||d==-1)throw Error("JSON was not comment filtered");return b.fromJson(a.substring(c+
2,d))},javascript:function(a){return b.eval(a.responseText)},xml:function(a){var c=a.responseXML;if(b.isIE&&(!c||!c.documentElement)){var d=function(a){return"MSXML"+a+".DOMDocument"},d=["Microsoft.XMLDOM",d(6),d(4),d(3),d(2)];b.some(d,function(b){try{var d=new ActiveXObject(b);d.async=!1;d.loadXML(a.responseText);c=d}catch(f){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,d,f){var g={args:a,url:a.url},k=null;if(a.form){var k=b.byId(a.form),h=k.getAttributeNode("action");g.url=g.url||(h?h.value:null);k=b.formToObject(k)}h=[{}];k&&h.push(k);a.content&&h.push(a.content);a.preventCache&&h.push({"dojo.preventCache":(new Date).valueOf()});g.query=b.objectToQuery(b.mixin.apply(null,h));g.handleAs=a.handleAs||"text";var j=new b.Deferred(c);j.addCallbacks(d,function(a){return f(a,j)});var l=a.load;l&&b.isFunction(l)&&j.addCallback(function(b){return l.call(a,b,
g)});var n=a.error;n&&b.isFunction(n)&&j.addErrback(function(b){return n.call(a,b,g)});var m=a.handle;m&&b.isFunction(m)&&j.addBoth(function(b){return m.call(a,b,g)});e.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},d=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},j=null,h=[],g=0,k=function(a){g<=0&&(g=0,e.ioPublish&&b.publish&&(!a||a&&a.ioArgs.args.ioPublish!==!1)&&b.publish("/dojo/io/stop"))},l=function(){var a=(new Date).getTime();if(!b._blockAsync)for(var c=0,d;c<h.length&&(d=h[c]);c++){var f=
d.dfd,e=function(){if(!f||f.canceled||!d.validCheck(f))h.splice(c--,1),g-=1;else if(d.ioCheck(f))h.splice(c--,1),d.resHandle(f),g-=1;else if(f.startTime&&f.startTime+(f.ioArgs.args.timeout||0)<a){h.splice(c--,1);var b=Error("timeout exceeded");b.dojoType="timeout";f.errback(b);f.cancel();g-=1}};if(b.config.debugAtAllCosts)e.call(this);else try{e.call(this)}catch(l){f.errback(l)}}k(f);h.length||(clearInterval(j),j=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){e.ioPublish&&b.publish&&a.ioArgs.args.ioPublish!==!1&&(g||b.publish("/dojo/io/start"),g+=1,b.publish("/dojo/io/send",[a]))};b._ioWatch=function(a,b,c,d){var f=a.ioArgs.args;if(f.timeout)a.startTime=(new Date).getTime();h.push({dfd:a,validCheck:b,ioCheck:c,resHandle:d});j||(j=setInterval(l,50));f.sync&&l()};var n=function(a){return a.ioArgs.xhr.readyState},m=function(a){return 4==a.ioArgs.xhr.readyState},o=function(a){var c=a.ioArgs.xhr;
if(b._isDocumentOk(c))a.callback(a);else{var d=Error("Unable to load "+a.ioArgs.url+" status:"+c.status);d.status=c.status;d.responseText=c.responseText;a.errback(d)}};b._ioAddQueryToUrl=function(a){if(a.query.length)a.url+=(a.url.indexOf("?")==-1?"?":"&")+a.query,a.query=null};b.xhr=function(a,g,e){var k=b._ioSetArgs(g,c,d,f),h=k.ioArgs,j=h.xhr=b._xhrObj(h.args);if(!j)return k.cancel(),k;"postData"in g?h.query=g.postData:"putData"in g?h.query=g.putData:"rawBody"in g?h.query=g.rawBody:(arguments.length>
2&&!e||"POST|PUT".indexOf(a.toUpperCase())==-1)&&b._ioAddQueryToUrl(h);j.open(a,h.url,g.sync!==!0,g.user||void 0,g.password||void 0);if(g.headers)for(var l in g.headers)l.toLowerCase()==="content-type"&&!g.contentType?g.contentType=g.headers[l]:g.headers[l]&&j.setRequestHeader(l,g.headers[l]);j.setRequestHeader("Content-Type",g.contentType||"application/x-www-form-urlencoded");(!g.headers||!("X-Requested-With"in g.headers))&&j.setRequestHeader("X-Requested-With","XMLHttpRequest");b._ioNotifyStart(k);
if(b.config.debugAtAllCosts)j.send(h.query);else try{j.send(h.query)}catch(C){h.error=C,k.cancel()}b._ioWatch(k,n,m,o);return k};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 e=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){e(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 d=c||[];if(this[a])if(b.config.debugAtAllCosts)this[a].apply(this,d);else try{this[a].apply(this,d)}catch(f){console.error("exception in animation handler for:",a),console.error(f)}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 d=
a||this.delay,f=b.hitch(this,"_play",c);if(d>0)return this._delayTimer=setTimeout(f,d),this;f();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,d={run:function(){}};b.extend(b.Animation,{_startTimer:function(){if(!this._timer)this._timer=b.connect(d,"run",this,"_cycle"),a++;c||(c=setInterval(b.hitch(d,"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=e({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(e({end:1},a))};b.fadeOut=function(a){return b._fade(e({end:0},a))};b._defaultEasing=function(a){return 0.5+Math.sin((a+
1.5)*Math.PI)/2};var j=function(a){this._properties=a;for(var c in a){var d=a[c];if(d.start instanceof b.Color)d.tempColor=new b.Color}};j.prototype.getValue=function(a){var c={},d;for(d in this._properties){var f=this._properties[d],e=f.start;e instanceof b.Color?c[d]=b.blendColors(e,f.end,a,f.tempColor).toCss():b.isArray(e)||(c[d]=(f.end-e)*a+e+(d!="opacity"?f.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={},d;for(d in this.properties){if(d=="width"||d=="height")this.node.display="block";var f=this.properties[d];b.isFunction(f)&&(f=f(c));f=a[d]=e({},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=d.toLowerCase().indexOf("color")>=0,o=function(a,c){var d={height:a.offsetHeight,width:a.offsetWidth}[c];if(d!==void 0)return d;d=b.style(a,c);return c=="opacity"?+d:h?d:parseFloat(d)};if("end"in f){if(!("start"in
f))f.start=o(c,d)}else f.end=o(c,d);h?(f.start=new b.Color(f.start),f.end=new b.Color(f.end)):f.start=d=="opacity"?+f.start:parseFloat(f.start)}this.curve=new j(a)});b.connect(a,"onAnimate",b.hitch(b,"style",a.node));return a};b.anim=function(a,c,d,f,e,j){return b.animateProperty({node:a,duration:d||b.Animation.prototype.duration,properties:c,easing:f,onEnd:e}).play(j||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});
(function(b,e){typeof define==="function"&&define.amd?define("orion/Deferred",[],e):typeof exports==="object"?module.exports=e():(b.orion=b.orion||{},b.orion.Deferred=e())})(this,function(){function b(a){if(h)c?(d.next={fn:a,next:null},d=d.next):d=c={fn:a,next:null};else{h=!0;do{for(;a;){a();if(f)c?d.next=f:c=f,d=j;c?(f=c.next,j=d,a=c.fn,c=d=null):a=null}h=!1}while(h)}}function e(a){return function(){a.apply(null,arguments)}}function a(c){function d(){for(;o;){var a=o;o=o.next;var b=a.deferred,c=
r.isResolved()?"resolve":"reject";if(a[c])try{var f=a[c](h);f&&typeof f.then==="function"?(a.cancel=f.cancel,f.then(e(b.resolve),e(b.reject),b.progress)):b.resolve(f)}catch(g){b.reject(g)}else b[c](h)}o=p=null}function f(a){if(j){if(a)throw Error("already "+j);return!0}return!1}var h,j,o,p,q=!1,r=this;this.reject=function(a,c){f(c)||(j="rejected",h=a,o&&b(d));return r.promise};this.resolve=function(a,c){f(c)||(j="resolved",h=a,o&&b(d));return r.promise};this.progress=function(a,b){if(!f(b))for(var c=
o;c;)c.progress&&c.progress(a),c=c.next;return r.promise};this.cancel=function(a,e){if(!f(e))return q=!0,c&&(a=c(a)||a),a=a||Error("canceled"),b(r.reject.bind(r,a)),a;for(var h=o;h;){if(h.canceling)return delete h.canceling,d(),h.cancel&&h.cancel(a);h=h.next}};this.then=function(c,f,g){var e={resolve:c,reject:f,progress:g,cancel:this.cancel,deferred:new a(function(a){e.canceling=!0;return e.cancel&&e.cancel(a)})};o?p.next=e:o=e;p=e;j&&b(d);return e.deferred.promise};this.isResolved=function(){return j===
"resolved"};this.isRejected=function(){return j==="rejected"};this.isFulfilled=function(){return!!j};this.isCanceled=function(){return q};this.promise={then:this.then,cancel:this.cancel,isResolved:this.isResolved,isRejected:this.isRejected,isFulfilled:this.isFulfilled,isCanceled:this.isCanceled};this.notify=this.progress;this.state=function(){return j||"pending"};this.promise.state=this.state}var c,d,f,j,h=!1;a.all=function(b,c){function d(a,b){j.isFulfilled()||(h[a]=b,--e===0&&j.resolve(h))}function f(a,
b){if(!j.isFulfilled()){if(c)try{d(a,c(b));return}catch(g){b=g}j.reject(b)}}var e=b.length,h=[],j=new a(function(a){b.forEach(function(b){b.cancel&&b.cancel(a)})});e===0?j.resolve(h):b.forEach(function(a,b){a.then(d.bind(null,b),f.bind(null,b))});return j.promise};a.when=function(b,c,d,f){var e;if(!(b&&typeof b.then==="function"))e=new a,e.resolve(b),b=e.promise;return b.then(c,d,f)};return a});
define("orion/EventTarget",[],function(){function b(){this._namedListeners={}}b.prototype={dispatchEvent:function(b){if(!b.type)throw Error("unspecified type");var a=this._namedListeners[b.type];a&&a.forEach(function(a){try{typeof a==="function"?a(b):a.handleEvent(b)}catch(d){typeof console!=="undefined"&&console.log(d)}});return!b.defaultPrevented},addEventListener:function(b,a){if(typeof a==="function"||a.handleEvent)this._namedListeners[b]=this._namedListeners[b]||[],this._namedListeners[b].push(a)},
removeEventListener:function(b,a){var c=this._namedListeners[b];if(c)for(var d=0;d<c.length;d++)if(c[d]===a){c.length===1?delete this._namedListeners[b]:c.splice(d,1);break}}};b.prototype.constructor=b;b.attach=function(e){var a=new b;e.dispatchEvent=a.dispatchEvent.bind(a);e.addEventListener=a.addEventListener.bind(a);e.removeEventListener=a.removeEventListener.bind(a)};return b});
define("orion/serviceregistry",["orion/Deferred","orion/EventTarget"],function(b,e){function a(a,b,c){this._properties=c||{};this._properties["service.id"]=a;this._properties.objectClass=b;this._properties["service.names"]=b}function c(a,b,c){this._serviceId=a;this._serviceReference=b;this._internalRegistry=c}function d(a,c){function d(f){return function(){var d;try{if(!c())throw Error("Service was unregistered");var e=a[f].apply(a,Array.prototype.slice.call(arguments));if(e&&typeof e.then==="function")return e;
else d=new b,d.resolve(e)}catch(k){d=new b,d.reject(k)}return d.promise}}for(var f in a)typeof a[f]==="function"&&(this[f]=d(f))}function f(a,b){this.type=a;this.serviceReference=b}function j(){this._entries=[];this._namedReferences={};this._serviceEventTarget=new e;var a=this;this._internalRegistry={isRegistered:function(b){return a._entries[b]?!0:!1},unregisterService:function(b){var c=a._entries[b];if(!c)throw Error("already unregistered");var d=c.reference;a._serviceEventTarget.dispatchEvent(new f("unregistering",
d));a._entries[b]=null;d.getProperty("objectClass").forEach(function(b){for(var c=a._namedReferences[b],f=0;f<c.length;f++)if(c[f]===d){c.length===1?delete a._namedReferences[b]:c.splice(f,1);break}})},modifyService:function(b){b=a._entries[b];if(!b)throw Error("already unregistered");a._serviceEventTarget.dispatchEvent(new f("modified",b.reference))}}}a.prototype={getPropertyKeys: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]}};
a.prototype.constructor=a;c.prototype={unregister:function(){this._internalRegistry.unregisterService(this._serviceId)},getReference:function(){if(!this._internalRegistry.isRegistered(this._serviceId))throw Error("already unregistered");return this._serviceReference},setProperties:function(a){var b=this._serviceReference._properties;this._serviceReference._properties=a||{};a["service.id"]=this._serviceId;a.objectClass=b.objectClass;a["service.names"]=b["service.names"];this._internalRegistry.modifyService(this._serviceId)}};
c.prototype.constructor=c;j.prototype={getService:function(a){var b;if(typeof a==="string")(a=this._namedReferences[a])&&a.some(function(a){b=this._entries[a.getProperty("service.id")].service;return!!b},this);else if(a=this._entries[a.getProperty("service.id")])b=a.service;return b||null},getServiceReferences:function(a){if(a)return this._namedReferences[a]?this._namedReferences[a]:[];var b=[];this._entries.forEach(function(a){a&&b.push(a.reference)});return b},registerService:function(b,g,e){if(typeof g===
"undefined"||g===null)throw Error("invalid service");typeof b==="string"?b=[b]:Array.isArray(b)||(b=[]);var j=this._entries.length,n=new a(j,b,e),m=this._namedReferences;b.forEach(function(a){m[a]=m[a]||[];m[a].push(n)});b=new d(g,this._internalRegistry.isRegistered.bind(null,j));this._entries.push({reference:n,service:b});b=this._internalRegistry;this._serviceEventTarget.dispatchEvent(new f("registered",n));return new c(j,n,b)},addEventListener:function(a,b){this._serviceEventTarget.addEventListener(a,
b)},removeEventListener:function(a,b){this._serviceEventTarget.removeEventListener(a,b)}};j.prototype.constructor=j;return{ServiceRegistry:j}});
define("orion/xhr",["orion/Deferred"],function(b){function e(a){return encodeURIComponent(a).replace(/[!'()*]/g,function(a){return"%"+a.charCodeAt(0).toString(16).toUpperCase()})}function a(a,b,f,e){var h=typeof f.response!=="undefined"?f.response:f.responseText,a={args:b,response:h,responseText:typeof h==="string"?h:null,status:f.status,url:a,xhr:f};if(typeof e!=="undefined")a.error=e;return a}return function(c,d,f){var f=f||{},j=arguments.length>3&&arguments[3]?arguments[3]:new XMLHttpRequest,h=
new b,g=f.headers||{},k=f.log||!1,l,n;typeof g["X-Requested-With"]==="undefined"&&(g["X-Requested-With"]="XMLHttpRequest");if(f.query&&typeof f.query==="object"){var m=f.query,o=Object.keys(m),p=[];for(n=0;n<o.length;n++){var q=o[n],r=m[q];p.push(e(q)+"="+e(r))}p.length&&(m=d.split("#"),m[0]+=(m[0].indexOf("?")===-1?"?":"&")+p.join("&"),d=m.join("#"))}if(typeof f.data!=="undefined"&&(c==="POST"||c==="PUT"))l=f.data;if(typeof f.responseType==="string")j.responseType=f.responseType;j.onreadystatechange=
function(){if(j.readyState===4){var b=a(d,f,j),c=j.status;200<=c&&c<400?h.resolve(b):(k&&typeof console!=="undefined"&&console.log(Error(j.statusText)),h.reject(b))}};try{j.open(c,d,!0);if(typeof f.timeout==="number")typeof j.timeout==="number"?(j.timeout=f.timeout,j.addEventListener("timeout",function(){h.reject(a(d,f,j,"Timeout exceeded"))})):setTimeout(function(){h.state()!=="resolved"&&h.state()!=="rejected"&&h.reject(a(d,f,j,"Timeout exceeded"))},f.timeout);var s=Object.keys(g);for(n=0;n<s.length;n++){var u=
s[n];j.setRequestHeader(u,g[u])}j.send(l)}catch(t){h.reject(a(d,f,j,t))}return h}});
define("orion/preferences",["require","orion/Deferred","orion/xhr"],function(b,e,a){function c(a,b){this._name=a;this._providers=b;this._flushPending=!1;this._cached=null;this._stores=[];this._dirty=[]}function d(a,b){return{get:function(c,d){if(b===0)return null;var f=localStorage.getItem(a+c);if(f===null)return null;f=JSON.parse(f);return d||b===-1||f._expires&&f._expires>(new Date).getTime()?(delete f._expires,f):null},set:function(c,d){if(b!==0){if(b!==-1)d._expires=(new Date).getTime()+1E3*b;
if(Object.keys(d).length===0)localStorage.removeItem(a+c);else{var f=JSON.stringify(d);localStorage.setItem(a+c,f);delete d._expires}}},remove:function(b){localStorage.removeItem(a+b)}}}function f(a){this._currentPromises={};this._cache=new d("/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 j(a){this._location=
a;this._currentPromise=null;this._cache=new d("/orion/preferences/default",3600)}function h(){this._cache=new d("/orion/preferences/local",-1)}function g(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 j(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 e.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=[],d=0;d<this._providers.length;++d)c.push(this._providers[d].get(this._name,a).then(function(a){return function(c){b._stores[a]=c}}(d)));return e.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 e,d=null;
b?this._cache.remove(a):d=this._cache.get(a);if(d!==null)c.resolve(d);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)}};j.prototype={get:function(b,c){if(this._currentPromise)return this._currentPromise;
var d=new e,f=null;c?this._cache.remove(b):f=this._cache.get(b);if(f!==null)d.resolve(f);else{this._currentPromise=d;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;d.resolve(a[b]||{})},function(a){a.xhr.status===401||a.xhr.status===404?(g._cache.set(b,{}),g._currentPromise=null,d.resolve({})):(g._currentPromise=null,a=g._cache.get(b,!0),a!==null?d.resolve(a[b]||{}):d.resolve({}))})}return d},
put:function(){var a=new e;a.resolve();return a}};h.prototype={get:function(a){var b=new e,a=this._cache.get(a);a!==null?b.resolve(a):b.resolve({});return b},put:function(a,b){var c=new e;this._cache.set(a,b);c.resolve();return c}};g.DEFAULT_SCOPE=1;g.LOCAL_SCOPE=2;g.USER_SCOPE=4;g.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=g.DEFAULT_SCOPE|g.LOCAL_SCOPE|
g.USER_SCOPE;var d=[];g.USER_SCOPE&b&&this._userProvider.available()&&d.push(this._userProvider);g.LOCAL_SCOPE&b&&d.push(this._localProvider);g.DEFAULT_SCOPE&b&&d.push(this._defaultsProvider);var f=new c(a,d);return f.sync().then(function(){return f})},getSetting:function(a,b,c){for(var d,f=0;f<a.length;f++)if(a[f].label===b)for(var g=0;g<a[f].data.length;g++)if(a[f].data[g].label===c){d=a[f].data[g].value;break}return d}};return{PreferencesService:g}});
define("orion/pluginregistry",["orion/Deferred","orion/EventTarget"],function(b,e){function a(a,b){var c=Object.keys(a),d=Object.keys(b);if(c.length!==d.length)return!1;c.sort();d.sort();for(var f=0,e=c.length;f<e;f++){var j=c[f];if(j!==d[f])return!1;var h=a[j],j=b[j];if(h!==j&&JSON.stringify(h)!==JSON.stringify(j))return!1}return!0}function c(a){if(a.indexOf("://")===-1){var b=document.createElement("a");b.href=a;return b.href}return a}function d(a){var b=null;return{key:function(c){return(b=b||
Object.keys(a))[c]},getItem:function(b){return a[b]},setItem:function(c,d){a[c]=d;b=null},removeItem:function(c){delete a[c];b=null},clear:function(){(b=b||Object.keys(a)).forEach(function(b){delete a[b]}.bind(this));b=null}}}function f(a,b){return{type:a,plugin:b}}function j(c,d,j){function h(a,c,d){if(!y)return(new b).reject(Error("plugin not connected"));var f=G++,g=new b(function(a){A==="active"&&j.postMessage({id:f,cancel:typeof a==="string"?a:"canceled"},y)});D[String(f)]=g;j.postMessage({id:f,
serviceId:a,method:c,params:d},y);return g.promise}function m(a){var b={};if(a.methods&&(a.methods.forEach(function(c){b[c]=function(){var b=Array.prototype.slice.call(arguments);return A==="active"?h(a.serviceId,c,b):s.start({"transient":!0}).then(function(){return h(a.serviceId,c,b)})}}),b.addEventListener&&b.removeEventListener)){var c=new e;b.dispatchEvent=c.dispatchEvent.bind(c);var d=b.addEventListener;b.addEventListener=function(a,b){c._namedListeners[a]||d(a);c.addEventListener(a,b)};var f=
b.removeEventListener;b.removeEventListener=function(a,b){c.removeEventListener(a,b);c._namedListeners[a]&&f(a)}}return b}function o(a){var b=JSON.parse(JSON.stringify(a.properties));b.__plugin__=c;a=a.names||a.type||[];Array.isArray(a)||(a=[a]);b.objectClass=a;return b}function p(a){var b=m(a),c=o(a),c=j.registerService(a.names||a.type,b,c);w[a.serviceId]={registration:c,proxy:b}}function q(){j.persist(c,{created:u,headers:t,services:v,autostart:C,lastModified:x})}function r(b){var d;try{if(b.method)if("manifest"===
b.method||"plugin"===b.method){var f=b.params[0];f.headers=f.headers||{};f.services=f.services||{};a(f.headers,t)&&a(f.services,v)?z.resolve(s):s.update({headers:f.headers,services:f.services}).then(function(){z.resolve(s)})}else if("dispatchEvent"===b.method){var e=w[b.serviceId].proxy;e.dispatchEvent.apply(e,b.params)}else if("progress"===b.method)d=D[String(b.requestId)],d.progress.apply(d,b.params);else if("timeout"===b.method)z&&z.reject(Error("Load timeout for plugin: "+c));else throw Error("Bad response method: "+
b.method);else if(d=D[String(b.id)],delete D[String(b.id)],b.error){var h=j.handleServiceError(s,b.error);d.reject(h)}else d.resolve(b.result)}catch(k){console.log("Plugin._responseHandler "+k)}}var s=this,d=d||{},u=d.created||(new Date).getTime(),t=d.headers||{},v=d.services||[],C=d.autostart,x=d.lastModified||0,A="installed",B,z,y,w={},G=0,D={};this._persist=q;this._resolve=function(){A="resolved";j.dispatchEvent(new f("resolved",s))};this._getAutostart=function(){return C};this._getCreated=function(){return u};
this.getLocation=function(){return c};this.getHeaders=function(){return JSON.parse(JSON.stringify(t))};this.getName=function(){var a=this.getHeaders();return a?a.name||"":null};this.getVersion=function(){var a=this.getHeaders();return a?a.version||"0.0.0":null};this.getLastModified=function(){return x};this.getServiceReferences=function(){var a=[];Object.keys(w).forEach(function(b){a.push(w[b].registration.getReference())});return a};this.getState=function(){return A};this.start=function(a){if(A===
"uninstalled")return(new b).reject(Error("Plugin is uninstalled"));if(B)return B.promise.then(this.start.bind(this,a));if(A==="active")return(new b).resolve();if(!a||!a["transient"]){var d=a&&a.lazy?"lazy":"started";d!==C&&(C=d,q())}d=j.getState();if(d!=="starting"&&d!=="active")return a["transient"]?(new b).reject(Error("start transient error")):(new b).resolve();if(A==="installed")try{this._resolve()}catch(e){return(new b).reject(e)}A==="resolved"&&v.forEach(function(a){p(a)});if(a&&a.lazy)return A!==
"starting"&&(A="starting",j.dispatchEvent(new f("lazy activation",s))),(new b).resolve();var h=new b;B=h;A="starting";j.dispatchEvent(new f("starting",s));z=new b;y=j.connect(c,r);z.then(function(){z=null;A="active";j.dispatchEvent(new f("started",s));B=null;h.resolve()},function(){z=null;A="stopping";j.dispatchEvent(new f("stopping",s));Object.keys(w).forEach(function(a){w[a].registration.unregister();delete w[a]});j.disconnect(y);y=null;A="resolved";B=null;j.dispatchEvent(new f("stopped",s));h.reject(Error("plugin activation error"))});
return h.promise};this.stop=function(a){if(A==="uninstalled")return(new b).reject(Error("Plugin is uninstalled"));if(B)return B.promise.then(this.stop.bind(this,a));if((!a||!a["transient"])&&"stopped"!==C)C="stopped",q();if(A!=="active"&&A!=="starting")return(new b).resolve();B=a=new b;A="stopping";j.dispatchEvent(new f("stopping",s));Object.keys(w).forEach(function(a){w[a].registration.unregister();delete w[a]});y&&(j.disconnect(y),y=null);A="resolved";B=null;j.dispatchEvent(new f("stopped",s));
a.resolve();return a.promise};this.update=function(d){if(A==="uninstalled")return(new b).reject(Error("Plugin is uninstalled"));if(!d)return x===0&&(x=(new Date).getTime(),q()),j.loadManifest(c).then(this.update.bind(this));t=d.headers||{};v=d.services||{};C=d.autostart||C;d.lastModified?x=d.lastModified:(x=(new Date).getTime(),q());if(A==="active"||A==="starting"){var e=[];Object.keys(v).forEach(function(b){var c=v[b];e.push(b);var d=w[b];if(d){if(a(c.methods,Object.keys(d.proxy))){var b=o(c),f=
d.registration.getReference(),g={};f.getPropertyKeys().forEach(function(a){g[a]=f.getProperty(a)});a(b,g)||d.registration.setProperties(b);return}d.registration.unregister();delete w[b]}p(c)});Object.keys(w).forEach(function(a){e.indexOf(a)===-1&&(w[a].registration.unregister(),delete w[a])})}A==="active"&&(j.disconnect(y),z=new b,y=j.connect(c,r),z.then(function(){z=null},function(){z=null;A="stopping";j.dispatchEvent(new f("stopping"),s);Object.keys(w).forEach(function(a){w[a].registration.unregister();
delete w[a]});j.disconnect(y);y=null;A="resolved";j.dispatchEvent(new f("stopped",s))}));j.dispatchEvent(new f("updated",s));return(new b).resolve()};this.uninstall=function(){if(A==="uninstalled")return(new b).reject(Error("Plugin is uninstalled"));if(A==="active"||A==="starting"||A==="stopping")return this.stop().then(this.uninstall.bind(this),this.uninstall.bind(this));j.removePlugin(this);A="uninstalled";j.dispatchEvent(new f("uninstalled",s));return(new b).resolve()}}var h=/^http[s]?/i;return{Plugin:j,
PluginRegistry:function(a,k){function l(a){var b=a.source;p.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}})}var k=k||{},n=k.storage||localStorage;n.getItem||(n=d(n));var m="installed",o=[],p=[],q=new e,r={},s={registerService:a.registerService.bind(a),connect:function(a,b,c){function d(){b({method:"timeout"})}var f={handler:b,url:a},g=setTimeout(d,c||15E3);
if(a.match(/\.js$/)&&typeof Worker!=="undefined"){var e=new Worker(a);e.onmessage=function(a){if(typeof f.useStructuredClone==="undefined")f.useStructuredClone=typeof a.data!=="string";f.handler(f.useStructuredClone?a.data:JSON.parse(a.data))};f.target=e;f.close=function(){e.terminate()}}else{var j=document.createElement("iframe");j.name=a+"_"+(new Date).getTime();if(!k.visible)j.style.display="none",j.style.visibility="hidden";j.src=a;j.onload=function(){clearTimeout(g);setTimeout(d,5E3)};j.sandbox=
"allow-scripts allow-same-origin";document.body.appendChild(j);f.target=j.contentWindow;f.close=function(){j&&(document.body.removeChild(j),j=null)}}p.push(f);return f},disconnect:function(a){for(var b=0;b<p.length;b++)if(a===p[b]){p.splice(b,1);try{a.close()}catch(c){}break}},removePlugin:function(a){for(var b=0;b<o.length;b++)if(a===o[b]){o.splice(b,1);break}n.removeItem("plugin."+a.getLocation())},persist:function(a,b){n.setItem("plugin."+a,JSON.stringify(b))},postMessage:function(a,b){b.target.postMessage(b.useStructuredClone?
a:JSON.stringify(a),b.url)},dispatchEvent:function(a){try{q.dispatchEvent(a)}catch(b){console&&console.log("PluginRegistry.dispatchEvent "+b)}},loadManifest:function(a){var c=new b,d=s.connect(a,function(b){d&&b.method&&("manifest"===b.method||"plugin"===b.method?(b=b.params[0],s.disconnect(d),d=null,c.resolve(b)):"timeout"===b.method&&(s.disconnect(d),d=null,c.reject(Error("Load timeout for plugin: "+a))))});return c.promise},getState:function(){return m},handleServiceError:function(a,b){if(b&&b.status===
401){var c=a.getHeaders(),d=a.getName()||a.getLocation(),f=document.createElement("span");f.appendChild(document.createTextNode("Authentication required for: "+d+"."));if(c.login)f.appendChild(document.createTextNode(" ")),d=document.createElement("a"),d.target="_blank",d.textContent="Login",d.href=c.login,h.test(d.href)?(f.appendChild(d),f.appendChild(document.createTextNode(" and re-try the request."))):console.log("Illegal Login URL: "+c.login);return{Severity:"Error",HTML:!0,Message:(new XMLSerializer).serializeToString(f)}}return b}};
this.getLocation=function(){return"System"};this.getHeaders=function(){return{}};this.getName=function(){return"System"};this.getVersion=function(){return"0.0.0"};this.getLastModified=function(){return 0};this.getState=s.getState;this.init=function(){if(!(m==="starting"||m==="active"||m==="stopping")){addEventListener("message",l,!1);for(var a=[],b=0,d=n.length;b<d;b++)a.push(n.key(b));a.forEach(function(a){if(a.indexOf("plugin.")===0){var b=a.substring(7),a=JSON.parse(n.getItem(a));a.created&&o.push(new j(b,
a,s))}});o.sort(function(a,b){return a._getCreated()<b._getCreated()?-1:1});k.plugins&&Object.keys(k.plugins).forEach(function(a){a=c(a);if(h.test(a)){if(!this.getPlugin(a)){var b=k.plugins[a],b=typeof b==="object"||{};b.autostart=b.autostart||k.defaultAutostart||"lazy";o.push(new j(a,b,s))}}else console.log("Illegal Plugin URL: "+a)}.bind(this));m="starting"}};this.start=function(){m!=="starting"&&this.init();if(m!=="starting")return(new b).reject("Cannot start framework. Framework is already "+
m+".");var a=[];o.forEach(function(b){var c=b._getAutostart();b.getLastModified()===0?a.push(b.update().then(function(){if("started"===c)return b.start({"transient":!0});if("lazy"===c)return b.start({lazy:!0,"transient":!0});b._resolve()})):"started"===c?a.push(b.start({"transient":!0})):"lazy"===c?a.push(b.start({lazy:!0,"transient":!0})):b._resolve()});return b.all(a,function(a){console.log("PluginRegistry.stop "+a)}).then(function(){m="active"})};this.stop=function(){if(m!=="starting"&&m!=="active")return(new b).reject("Cannot stop registry. Registry is already "+
m+".");m="stopping";var a=[];o.forEach(function(b){a.push(b.stop({"transient":!0}))});return b.all(a,function(a){console.log("PluginRegistry.stop "+a)}).then(function(){removeEventListener("message",l);m="resolved"})};this.update=function(){this.stop().then(this.start.bind(this))};this.uninstall=function(){return(new b).reject("Cannot uninstall registry")};this.installPlugin=function(a,d){a=c(a);if(!h.test(a))return(new b).reject("Illegal Plugin URL: "+a);var g=this.getPlugin(a);if(g)return(new b).resolve(g);
if(r[a])return r[a];if(d)return g=new j(a,d,s),o.push(g),g._persist(),s.dispatchEvent(new f("installed",g)),(new b).resolve(g);var e=s.loadManifest(a).then(function(b){g=new j(a,b,s);o.push(g);g._persist();delete r[a];s.dispatchEvent(new f("installed",g));return g},function(b){delete r[a];throw b;});return r[a]=e};this.getPlugins=function(){return o.slice()};this.getPlugin=function(a){var b=null,a=c(a);o.some(function(c){if(a===c.getLocation())return b=c,!0});return b};this.addEventListener=q.addEventListener.bind(q);
this.removeEventListener=q.removeEventListener.bind(q);this.resolvePlugins=function(){var a=!0;o.forEach(function(b){a=a&&b._resolve()});return a}}}});
define("orion/textview/eventTarget",[],function(){function b(){}b.addMixin=function(e){var a=b.prototype,c;for(c in a)a.hasOwnProperty(c)&&(e[c]=a[c])};b.prototype={addEventListener:function(b,a,c){if(!this._eventTypes)this._eventTypes={};var d=this._eventTypes[b];d||(d=this._eventTypes[b]={level:0,listeners:[]});d.listeners.push({listener:a,useCapture:c})},dispatchEvent:function(b){var a=b.type;this._dispatchEvent("pre"+a,b);this._dispatchEvent(a,b);this._dispatchEvent("post"+a,b)},_dispatchEvent:function(b,
a){var c=this._eventTypes?this._eventTypes[b]:null;if(c){var d=c.listeners;try{if(c.level++,d)for(var f=0,j=d.length;f<j;f++)if(d[f]){var h=d[f].listener;typeof h==="function"?h.call(this,a):h.handleEvent&&typeof h.handleEvent==="function"&&h.handleEvent(a)}}finally{if(c.level--,c.compact&&c.level===0){for(f=d.length-1;f>=0;f--)d[f]||d.splice(f,1);d.length===0&&delete this._eventTypes[b];c.compact=!1}}}},isListening:function(b){return!this._eventTypes?!1:this._eventTypes[b]!==void 0},removeEventListener:function(b,
a,c){if(this._eventTypes){var d=this._eventTypes[b];if(d){for(var f=d.listeners,j=0,h=f.length;j<h;j++){var g=f[j];if(g&&g.listener===a&&g.useCapture===c){d.level!==0?(f[j]=null,d.compact=!0):f.splice(j,1);break}}f.length===0&&delete this._eventTypes[b]}}}};return{EventTarget:b}});
define("orion/serviceTracker",[],function(){function b(b,d){function f(a){var b=a.getProperty("service.id"),c=this.addingService(a);c&&(h[b]=a,g[b]=c)}function j(a){var b=a.getProperty("service.id"),c=g[b];delete h[b];delete g[b];this.removedService(a,c)}this.serviceRegistry=b;var h={},g={},k=e,l,n;this.close=function(){if(k!==a)throw"Already closed";k=e;b.removeEventListener("registered",l);b.removeEventListener("unregistering",n);n=l=null;var d=this;this.getServiceReferences().forEach(function(a){j.call(d,
a)});if(typeof this.onClose==="function")this.onClose()};this.getServiceReferences=function(){var a=a;return a.length?Object.keys(a).map(function(b){return a[b]}):null};this.open=function(){if(k!==e)throw"Already open";k=a;var g=this;l=function(a){if(a.serviceReference.getProperty("objectClass").indexOf(d)!==-1&&(f.call(g,a.serviceReference),typeof g.onServiceAdded==="function"))return g.onServiceAdded(a.serviceReference,g.serviceRegistry.getService(a.serviceReference))};n=function(a){a.serviceReference.getProperty("objectClass").indexOf(d)!==
-1&&j.call(g,a.serviceReference)};b.addEventListener("registered",l);b.addEventListener("unregistering",n);b.getServiceReferences(d).forEach(function(a){f.call(g,a)});if(typeof this.onOpen==="function")this.onOpen()}}var e=0,a=1;b.prototype={addingService:function(a){return this.serviceRegistry.getService(a)},onOpen:null,onClose:null,onServiceAdded:null,removedService:function(){}};return b});
define("orion/config",["orion/textview/eventTarget","orion/Deferred","orion/serviceTracker"],function(b,e,a){var c,d,f,j,h="pid";c=function(b,c,d){function f(a,b,d){b.forEach(function(f,g){try{var e=a[g].getProperty("__plugin__"),j=e&&c.getPlugin(e);(!e||j&&j.getState()==="active")&&b[g].updated(d)}catch(h){typeof console!=="undefined"&&console.log(h)}})}a.call(this,b,"orion.cm.managedservice");var g={},j={},q=function(a){var c=[];a.plugin.getServiceReferences().forEach(function(a){if(a.getProperty("objectClass").indexOf("orion.cm.managedservice")!==
-1){var f=a.getProperty(h),a=b.getService(a);f&&a&&(f=(f=d._find(f))&&f.getProperties(),c.push(a.updated(f)))}});return e.all(c)};this.addingService=function(a){var c=a.getProperty(h),d=b.getService(a);if(!c||!d)return null;g[c]||(g[c]=[]);j[c]||(j[c]=[]);g[c].push(a);j[c].push(d);return d};this.onServiceAdded=function(a,b){var c=a.getProperty(h),c=d._find(c);f([a],[b],c&&c.getProperties())};this.onOpen=function(){c.addEventListener("started",q)};this.onClose=function(){c.removeEventListener("started",
q)};this.notifyUpdated=function(a){var b=a.getPid();f(g[b]||[],j[b]||[],a.getProperties())};this.notifyDeleted=function(a){a=a.getPid();f(g[a]||[],j[a]||[],null)};this.removedService=function(a,b){var c=a.getProperty(h),d=g[c],f=j[c];d.length>1?d.splice(d.indexOf(a),1):delete g[c];f.length>1?f.splice(f.indexOf(b),1):delete j[c]}};b=function(){function a(b,g,e){this.store=new d(this,e);this.configAdmin=new f(this,this.store);this.tracker=new c(b,g,this.store)}a.prototype={getConfigurationAdmin:function(){var a=
this;return this.configAdmin._init().then(function(b){a.tracker.open();return b})},notifyDeleted:function(a){this.tracker.notifyDeleted(a)},notifyUpdated:function(a){this.tracker.notifyUpdated(a)}};return a}();f=function(){function a(b,c){this.factory=b;this.store=c}a.prototype={_init:function(){var a=this;return this.store._init().then(function(){return a})},getConfiguration:function(a){return this.store.get(a)},listConfigurations:function(){return this.store.list()}};return a}();var g="/cm/configurations";
d=function(){function a(b,c){this.factory=b;this.prefsService=c;this.configs=Object.create(null);this.pref=null;var d=this;this.initPromise=this.prefsService.getPreferences(g).then(function(a){d.pref=a;a.keys().forEach(function(b){if(!d.configs[b]){var c=a.get(b);typeof c==="object"&&c!==null&&Object.keys(c).length>0&&(c[h]=b,d.configs[b]=new j(d.factory,d,c))}})})}a.prototype={_init:function(){return this.initPromise},_find:function(a){return this.configs[a]||null},get:function(a){var b=this._find(a);
b||(b=new j(this.factory,this,a),this.configs[a]=b);return b},list:function(){var a=this,b=[];this.pref.keys().forEach(function(c){(c=a._find(c))&&c.getProperties()!==null&&b.push(c)});return b},remove:function(a){this.pref.remove(a);delete this.configs[a]},save:function(a,b){this.pref.put(a,b.getProperties(!0)||{})}};return a}();j=function(){function a(b){for(var c={},d=Object.keys(b),f=0;f<d.length;f++){var g=d[f],e=b[g];c[g]=e instanceof Array?e.slice():e}return c}function b(c,d,f){this.factory=
c;this.store=d;if(f!==null&&typeof f==="object")this.pid=f[h],c=a(f),delete c[h],this.properties=c;else if(typeof f==="string")this.pid=f,this.properties=null;else throw Error("Invalid pid/properties "+f);}b.prototype={_checkRemoved:function(){if(this._removed)throw Error("Configuration was removed");},getPid:function(){this._checkRemoved();return this.pid},getProperties:function(b){this._checkRemoved();var c=null;if(this.properties&&(c=a(this.properties),!b))c[h]=this.pid;return c},remove:function(){this._checkRemoved();
this.factory.notifyDeleted(this);this.store.remove(this.pid);this._removed=!0},update:function(b){this._checkRemoved();b=a(b);delete b[h];this.properties=b;this.store.save(this.pid,this);this.factory.notifyUpdated(this)},toString:function(){return"[ConfigImpl pid: "+this.pid+", properties: "+JSON.stringify(this.properties)+"]"}};return b}();return{ConfigurationAdminFactory:b}});
define("orion/bootstrap","require,orion/Deferred,orion/serviceregistry,orion/preferences,orion/pluginregistry,orion/config".split(","),function(b,e,a,c,d,f){var j;return{startup:function(){if(j)return j;j=new e;var h=window.serviceRegistry=new a.ServiceRegistry,g=new c.PreferencesService(h);return g.getPreferences("/plugins").then(function(a){var c={plugins:{}};a.keys().forEach(function(d){var f=b.toUrl(d);c.plugins[f]=a[d]});var n=window.pluginRegistry=new d.PluginRegistry(h,c);return n.start().then(function(){if(h.getServiceReferences("orion.core.preference.provider").length>
0)return g.getPreferences("/plugins",g.USER_SCOPE).then(function(a){var c=[];a.keys().forEach(function(a){a=b.toUrl(a);n.getPlugin(a)||c.push(n.installPlugin(a,{autostart:"lazy"}).then(function(a){return a.update().then(function(){return a.start({lazy:!0})})}))});return e.all(c,function(a){console.log(a)})})}).then(function(){return(new f.ConfigurationAdminFactory(h,n,g)).getConfigurationAdmin().then(h.registerService.bind(h,"orion.cm.configadmin"))}).then(function(){var a=h.getService("orion.core.auth");
if(a){var b=a.getUser().then(function(b){if(b)localStorage.setItem("lastLogin",(new Date).getTime());else return a.getAuthForm(window.location.href).then(function(a){window.location=a})}),c=localStorage.getItem("lastLogin");if(!c||c<(new Date).getTime()-9E5)return b}}).then(function(){var a={serviceRegistry:h,preferences:g,pluginRegistry:n};j.resolve(a);return a})})}}});define("dijit",["dojo"],function(b){return dijit=b._dijit||{}});
define("orion/nls/messages",["orion/i18n!orion/nls/messages"],function(b){var e={root:!0};Object.keys(b).forEach(function(a){typeof e[a]==="undefined"&&(e[a]=b[a])});return e});
define("orion/nls/root/messages",{Navigator:"Navigator",Sites:"Sites",Repositories:"Repositories",Shell:"Shell","Get Plugins":"Get Plugins",Global:"Global",Editor:"Editor","Orion Editor":"Orion 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.":"Orion build I20121019-1304. See the FAQ for terms of service","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",Search:"Search",Submit:"Submit",More:"More","Saved searches":"Saved searches","Recent searches":"Recent searches","Open in new tab":"Open in new tab","Regular expression":"Regular expression","Search options":"Search options"});
define("dojo/hash",["dojo"],function(b){(function(){function e(a,b){var c=a.indexOf(b);return c>=0?a.substring(c+1):""}function a(){return e(location.href,"#")}function c(){b.publish("/dojo/hashchange",[a()])}function d(){a()!==h&&(h=a(),c())}function f(a){if(g)if(g.isTransitioning())setTimeout(b.hitch(null,f,a),l);else{var c=g.iframe.location.href,e=c.indexOf("?");g.iframe.location.replace(c.substring(0,e)+"?"+a)}else location.replace("#"+a),!k&&d()}function j(){function d(){h=a();j=u?h:e(t.href,
"?");k=!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 j,k,r,s,u,t=this.iframe.location;this.isTransitioning=function(){return k};this.pollLocation=function(){if(!u)try{var v=e(t.href,"?");if(document.title!=s)s=this.iframe.document.title=document.title}catch(C){u=!0,console.error("dojo.hash: Error adding history entry. Server unreachable.")}var x=a();if(k&&h===x)if(u||v===r)d(),c();else{setTimeout(b.hitch(this,this.pollLocation),0);return}else if(!(h===x&&(u||j===v)))if(h!==x){h=x;k=!0;r=x;f.src=g+"?"+r;u=!1;setTimeout(b.hitch(this,this.pollLocation),
0);return}else if(!u)location.href="#"+t.search.substring(1),d(),c();setTimeout(b.hitch(this,this.pollLocation),l)};d();setTimeout(b.hitch(this,this.pollLocation),l)}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,g,k,l=b.config.hashPollFrequency||100;b.addOnLoad(function(){"onhashchange"in b.global&&(!b.isIE||b.isIE>=8&&document.compatMode!="BackCompat")?k=b.connect(b.global,"onhashchange",c):document.addEventListener?
(h=a(),setInterval(d,l)):document.attachEvent&&(g=new j)})})();return b.hash});
(function(){var b=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],e=/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,a=/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im,c=typeof location!=="undefined"&&location.href,d=c&&location.protocol&&location.protocol.replace(/\:/,""),f=c&&location.hostname,j=c&&(location.port||void 0),h=[];define("text",[],function(){var g,k,l;typeof window!=="undefined"&&window.navigator&&window.document?k=function(a,b){var c=g.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?(l=require.nodeRequire("fs"),k=function(a,b){var c=l.readFileSync(a,"utf8");c.indexOf("\ufeff")===0&&(c=c.substring(1));b(c)}):typeof Packages!=="undefined"&&(k=function(a,b){var c=new java.io.File(a),d=java.lang.System.getProperty("line.separator"),c=new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream(c),"utf-8")),f,g,e="";try{f=new java.lang.StringBuffer;
(g=c.readLine())&&g.length()&&g.charAt(0)===65279&&(g=g.substring(1));for(f.append(g);(g=c.readLine())!==null;)f.append(d),f.append(g);e=String(f.toString())}finally{c.close()}b(e)});return g={version:"1.0.7",strip:function(b){if(b){var b=b.replace(e,""),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,
d;if(typeof XMLHttpRequest!=="undefined")return new XMLHttpRequest;else for(c=0;c<3;c++){d=b[c];try{a=new ActiveXObject(d)}catch(f){}if(a){b=[d];break}}if(!a)throw Error("createXhr(): XMLHttpRequest not available");return a},get:k,parseName:function(a){var b=!1,c=a.indexOf("."),d=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:d,ext:a,strip:b}},xdRegExp:/^((\w+)\:)?\/\/([^\/\\]+)/,useXhr:function(a,
b,c,d){var f=g.xdRegExp.exec(a),e;if(!f)return!0;a=f[2];f=f[3];f=f.split(":");e=f[1];f=f[0];return(!a||a===b)&&(!f||f===c)&&(!e&&!f||e===d)},finishLoad:function(a,b,c,d,f){c=b?g.strip(c):c;f.isBuild&&(h[a]=c);d(c)},load:function(a,b,e,h){if(h.isBuild&&!h.inlineText)e();else{var k=g.parseName(a),l=k.moduleName+"."+k.ext,s=b.toUrl(l),u=h&&h.text&&h.text.useXhr||g.useXhr;!c||u(s,d,f,j)?g.get(s,function(b){g.finishLoad(a,k.strip,b,e,h)}):b([l],function(a){g.finishLoad(k.moduleName+"."+k.ext,k.strip,a,
e,h)})}},write:function(a,b,c){if(b in h){var d=g.jsEscape(h[b]);c.asModule(a+"!"+b,"define(function () { return '"+d+"';});\n")}},writeFile:function(a,b,c,d,f){var b=g.parseName(b),e=b.moduleName+"."+b.ext,j=c.toUrl(b.moduleName+"."+b.ext)+".js";g.load(e,c,function(){var b=function(a){return d(j,a)};b.asModule=function(a,b){return d.asModule(a,j,b)};g.write(a,e,b,f)},f)}}})})();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,e){e.getObject("i18n",!0,e);e.i18n.getLocalization=e.i18n.getLocalization||function(a,c,d){var d=e.i18n.normalizeLocale(d),f=d.split("-"),j=[a,"nls",c].join(".");if(typeof e.global.require!=="undefined"){var h=b("i18n!"+[a.replace(/\./g,"/"),"nls",c].join("/"));(e._loadedModules[j]=e._loadedModules[j]||{})[f.join("_")]=h.root||h}if(j=e._loadedModules[j]){for(var g,h=f.length;h>0;h--){var k=f.slice(0,h).join("_");if(j[k]){g=j[k];break}}if(!g)g=j.ROOT;
if(g)return a=function(){},a.prototype=g,new a}throw Error("Bundle not found: "+c+" in "+a+" , locale="+d);};e.i18n.normalizeLocale=function(a){a=a?a.toLowerCase():e.locale;a=="root"&&(a="ROOT");return a};e.i18n._requireLocalization=function(a,b,d,f){var d=e.i18n.normalizeLocale(d),j=[a,"nls",b].join("."),h="";if(f){for(var g=f.split(","),k=0;k<g.length;k++)d.indexOf(g[k])==0&&g[k].length>h.length&&(h=g[k]);h||(h="ROOT")}var g=f?h:d,l=e._loadedModules[j],k=null;if(l){if(e.config.localizationComplete&&
l._built)return;k=g.replace(/-/g,"_");k=e._loadedModules[j+"."+k]}if(!k){var l=e.provide(j),n=e._getModuleSymbols(a).concat("nls").join("/"),m;e.i18n._searchLocalePath(g,f,function(a){var d=a.replace(/-/g,"_"),g=j+"."+d,h=!1;e._loadedModules[g]?h=!0:(e.provide(g),g=[n],a!="ROOT"&&g.push(a),g.push(b),a=g.join("/")+".js",h=e._loadPath(a,null,function(a){var a=a.root||a,b=function(){};b.prototype=m;l[d]=new b;for(var c in a)l[d][c]=a[c]}));h&&l[d]?m=l[d]:l[d]=m;if(f)return!0})}f&&d!=h&&(l[d.replace(/-/g,
"_")]=l[h.replace(/-/g,"_")])};(function(){var a=e.config.extraLocale;if(a){!a instanceof Array&&(a=[a]);var b=e.i18n._requireLocalization;e.i18n._requireLocalization=function(d,f,e,h){b(d,f,e,h);if(!e)for(e=0;e<a.length;e++)b(d,f,a[e],h)}}})();e.i18n._searchLocalePath=function(a,b,d){for(var a=e.i18n.normalizeLocale(a),f=a.split("-"),a=[],j=f.length;j>0;j--)a.push(f.slice(0,j).join("-"));a.push(!1);b&&a.reverse();for(b=a.length-1;b>=0;b--)if(d(a[b]||"ROOT"))break};e.i18n._preloadLocalizations=function(a,
b){function d(d){d=e.i18n.normalizeLocale(d);e.i18n._searchLocalePath(d,!0,function(d){for(var f=0;f<b.length;f++)if(b[f]==d)return e.require(a+"_"+d),!0;return!1})}d();for(var f=e.config.extraLocale||[],j=0;j<f.length;j++)d(f[j])};return e.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 e=b.doc.compatMode=="BackCompat"?b.body():b.doc.documentElement,a=b._docScroll();return{w:e.clientWidth,h:e.clientHeight,l:a.x,t:a.y}};b.window.get=function(e){if(b.isIE&&window!==document.parentWindow){e.parentWindow.execScript("document._parentWindow = window;","Javascript");var a=e._parentWindow;e._parentWindow=null;return a}return e.parentWindow||e.defaultView};b.window.scrollIntoView=function(e,
a){try{var e=b.byId(e),c=e.ownerDocument||b.doc,d=c.body||b.body(),f=c.documentElement||d.parentNode,j=b.isIE,h=b.isWebKit;if((!b.isMoz&&!j&&!h&&!b.isOpera||e==d||e==f)&&typeof e.scrollIntoView!="undefined")e.scrollIntoView(!1);else{var g=c.compatMode=="BackCompat",k=j>=9&&e.ownerDocument.parentWindow.frameElement?f.clientHeight>0&&f.clientWidth>0&&(d.clientHeight==0||d.clientWidth==0||d.clientHeight>f.clientHeight||d.clientWidth>f.clientWidth)?f:d:g?d:f,c=h?d:k,l=k.clientWidth,n=k.clientHeight,m=
!b._isBodyLtr(),o=a||b.position(e),p=e.parentNode,k=function(a){return j<=6||j&&g?!1:b.style(a,"position").toLowerCase()=="fixed"};if(!k(e))for(;p;){p==d&&(p=c);var q=b.position(p),r=k(p);if(p==c){q.w=l;q.h=n;c==f&&j&&m&&(q.x+=c.offsetWidth-q.w);if(q.x<0||!j)q.x=0;if(q.y<0||!j)q.y=0}else{var s=b._getPadBorderExtents(p);q.w-=s.w;q.h-=s.h;q.x+=s.l;q.y+=s.t;var u=p.clientWidth,t=q.w-u;if(u>0&&t>0)q.w=u,q.x+=m&&(j||p.clientLeft>s.l)?t:0;u=p.clientHeight;t=q.h-u;if(u>0&&t>0)q.h=u}if(r){if(q.y<0)q.h+=q.y,
q.y=0;if(q.x<0)q.w+=q.x,q.x=0;if(q.y+q.h>n)q.h=n-q.y;if(q.x+q.w>l)q.w=l-q.x}var v=o.x-q.x,C=o.y-Math.max(q.y,0),x=v+o.w-q.w,A=C+o.h-q.h;if(x*v>0){var B=Math[v<0?"max":"min"](v,x);if(m&&(j==8&&!g||j>=9))B=-B;o.x+=p.scrollLeft;p.scrollLeft+=B;o.x-=p.scrollLeft}A*C>0&&(o.y+=p.scrollTop,p.scrollTop+=Math[C<0?"max":"min"](C,A),o.y-=p.scrollTop);p=p!=c&&!r&&p.parentNode}}}catch(z){console.error("scrollIntoView: "+z),e.scrollIntoView(!1)}};return b.window});
define("dijit/_base/manager",["dojo","dijit"],function(b,e){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,d=0,f;for(f in this._hash)a.call(c,this._hash[f],d++,this._hash);return this},filter:function(a,
c){var c=c||b.global,d=new e.WidgetSet,f=0,j;for(j in this._hash){var h=this._hash[j];a.call(c,h,f++,this._hash)&&d.add(h)}return d},byId:function(a){return this._hash[a]},byClass:function(a){var b=new e.WidgetSet,d,f;for(d in this._hash)f=this._hash[d],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,d=0,f;for(f in this._hash)if(!a.call(c,
this._hash[f],d++,this._hash))return!1;return!0},some:function(a,c){var c=c||b.global,d=0,f;for(f in this._hash)if(a.call(c,this._hash[f],d++,this._hash))return!0;return!1}});(function(){e.registry=new e.WidgetSet;var a=e.registry._hash,c=b.attr,d=b.hasAttr,f=b.style;e.byId=function(b){return typeof b=="string"?a[b]:b};var j={};e.getUniqueId=function(b){var c;do c=b+"_"+(b in j?++j[b]:j[b]=0);while(a[c]);return e._scopeName=="dijit"?c:e._scopeName+"_"+c};e.findWidgets=function(b){function c(b){for(b=
b.firstChild;b;b=b.nextSibling)if(b.nodeType==1){var f=b.getAttribute("widgetId");f?(f=a[f])&&d.push(f):c(b)}}var d=[];c(b);return d};e._destroyAll=function(){e._curFocus=null;e._prevFocus=null;e._activeStack=[];b.forEach(e.findWidgets(b.body()),function(a){a._destroyed||(a.destroyRecursive?a.destroyRecursive():a.destroy&&a.destroy())})};b.isIE&&b.addOnWindowUnload(function(){e._destroyAll()});e.byNode=function(b){return a[b.getAttribute("widgetId")]};e.getEnclosingWidget=function(b){for(;b;){var c=
b.getAttribute&&b.getAttribute("widgetId");if(c)return a[c];b=b.parentNode}return null};var h=e._isElementShown=function(a){var b=f(a);return b.visibility!="hidden"&&b.visibility!="collapsed"&&b.display!="none"&&c(a,"type")!="hidden"};e.hasDefaultTabStop=function(a){switch(a.nodeName.toLowerCase()){case "a":return d(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(f){try{b=a.contentWindow.document.body}catch(g){return!1}}return b.contentEditable=="true"||b.firstChild&&b.firstChild.contentEditable=="true";default:return a.contentEditable=="true"}};var g=e.isTabNavigable=function(a){return c(a,"disabled")?!1:d(a,"tabIndex")?c(a,"tabIndex")>=0:e.hasDefaultTabStop(a)};e._getTabNavigable=function(a){function f(a){return a&&a.tagName.toLowerCase()=="input"&&a.type&&a.type.toLowerCase()=="radio"&&a.name&&a.name.toLowerCase()}var e,j,o,
p,q,r,s={},u=function(a){b.query("> *",a).forEach(function(a){if(!(b.isIE&&a.scopeName!=="HTML")&&h(a)){if(g(a)){var k=c(a,"tabIndex");if(!d(a,"tabIndex")||k==0)e||(e=a),j=a;else if(k>0){if(!o||k<p)p=k,o=a;if(!q||k>=r)r=k,q=a}k=f(a);b.attr(a,"checked")&&k&&(s[k]=a)}a.nodeName.toUpperCase()!="SELECT"&&u(a)}})};h(a)&&u(a);return{first:s[f(e)]||e,last:s[f(j)]||j,lowest:s[f(o)]||o,highest:s[f(q)]||q}};e.getFirstInTabbingOrder=function(a){a=e._getTabNavigable(b.byId(a));return a.lowest?a.lowest:a.first};
e.getLastInTabbingOrder=function(a){a=e._getTabNavigable(b.byId(a));return a.last?a.last:a.highest};e.defaultDuration=b.config.defaultDuration||200})();return e});
define("dojo/Stateful",["dojo"],function(b){b.declare("dojo.Stateful",null,{postscript:function(e){e&&b.mixin(this,e)},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(e,a){var c=this._watchCallbacks;if(!c)var d=this,c=this._watchCallbacks=function(a,b,f,e){var l=function(c){if(c)for(var c=c.slice(),e=0,k=c.length;e<k;e++)try{c[e].call(d,
a,b,f)}catch(l){console.error(l)}};l(c["_"+a]);e||l(c["*"])};!a&&typeof e==="function"?(a=e,e="*"):e="_"+e;var f=c[e];typeof f!=="object"&&(f=c[e]=[]);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,e){(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=e.getUniqueId(this.declaredClass.replace(/\./g,"_"));e.registry.add(this);this.buildRendering();if(this.domNode){this._applyAttributes();var d=this.srcNodeRef;d&&d.parentNode&&this.domNode!==d&&d.parentNode.replaceChild(this.domNode,d)}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=[],d,f=a.prototype,e;for(e in f)b.isFunction(f[e])&&(d=e.match(/^_set([a-zA-Z]*)Attr$/))&&
d[1]&&c.push(d[1].charAt(0).toLowerCase()+d[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,d=b.unsubscribe;c(this._connects,function(a){c(a,b.disconnect)});c(this._subscribes,function(a){d(a)});c(this._supportingWidgets||[],function(a){a.destroyRecursive?a.destroyRecursive():a.destroy&&a.destroy()});this.destroyRendering(a);e.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 d=this.attributeMap[a];b.forEach(b.isArray(d)?d:[d],function(d){var e=this[d.node||d||"domNode"];switch(d.type||"attribute"){case "attribute":b.isFunction(c)&&(c=b.hitch(this,c));d=d.attribute?d.attribute:/^on[A-Z][a-zA-Z]*$/.test(a)?a.toLowerCase():a;b.attr(e,d,c);break;case "innerText":e.innerHTML="";e.appendChild(b.doc.createTextNode(c));break;case "innerHTML":e.innerHTML=c;break;case "class":b.replaceClass(e,
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 d in a)this.set(d,a[d]);return this}d=this._getAttrNames(a);if(this[d.s])var f=this[d.s].apply(this,Array.prototype.slice.call(arguments,1));else a in this.attributeMap&&this._attrToDom(a,b),this._set(a,b);return f||this},_attrPairNames:{},_getAttrNames:function(a){var b=this._attrPairNames;if(b[a])return b[a];var d=a.charAt(0).toUpperCase()+a.substr(1);
return b[a]={n:a+"Node",s:"_set"+d+"Attr",g:"_get"+d+"Attr"}},_set:function(a,b){var d=this[a];this[a]=b;this._watchCallbacks&&this._created&&b!==d&&this._watchCallbacks(a,d,b)},toString:function(){return"[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]"},getDescendants:function(){return this.containerNode?b.query("[widgetId]",this.containerNode).map(e.byNode):[]},getChildren:function(){return this.containerNode?e.findWidgets(this.containerNode):[]},connect:function(a,c,d){a=[b._connect(a,
c,this,d)];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 d=b.subscribe(a,this,c);this._subscribes.push(d);return d},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 e._WidgetBase});
define("dijit/_base/focus",["dojo","dijit","dojo/window","dijit/_base/manager"],function(b,e){b.mixin(e,{_curFocus:null,_prevFocus:null,isCollapsed:function(){return e.getBookmark().isCollapsed},getBookmark:function(){var a,c,d=b.doc.selection,f=e._curFocus;if(b.global.getSelection){if(d=b.global.getSelection())if(d.isCollapsed){if(a=f?f.tagName:"")if(a=a.toLowerCase(),a=="textarea"||a=="input"&&(!f.type||f.type.toLowerCase()=="text"))return d={start:f.selectionStart,end:f.selectionEnd,node:f,pRange:!0},
{isCollapsed:d.end<=d.start,mark:d};a={isCollapsed:!0};if(d.rangeCount)a.mark=d.getRangeAt(0).cloneRange()}else c=d.getRangeAt(0),a={isCollapsed:!1,mark:c.cloneRange()}}else if(d){a=f?f.tagName:"";a=a.toLowerCase();if(f&&a&&(a=="button"||a=="textarea"||a=="input"))return d.type&&d.type.toLowerCase()=="none"?{isCollapsed:!0,mark:null}:(c=d.createRange(),{isCollapsed:c.text&&c.text.length?!1:!0,mark:{range:c,pRange:!0}});a={};try{c=d.createRange(),a.isCollapsed=!(d.type=="Text"?c.htmlText.length:c.length)}catch(j){return a.isCollapsed=
!0,a}if(d.type.toUpperCase()=="CONTROL")if(c.length){a.mark=[];d=0;for(f=c.length;d<f;)a.mark.push(c.item(d++))}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 d;a.pRange?d=a.range:b.isArray(a)?(d=c.body.createControlRange(),b.forEach(a,function(a){d.addElement(a)})):(d=c.body.createTextRange(),d.moveToBookmark(a));d.select()}},getFocus:function(a,c){var d=!e._curFocus||a&&b.isDescendant(e._curFocus,a.domNode)?e._prevFocus:e._curFocus;return{node:d,bookmark:d==e._curFocus&&b.withGlobal(c||b.global,e.getBookmark),openedForWindow:c}},focus:function(a){if(a){var c="node"in a?a.node:a,d=a.bookmark,a=a.openedForWindow,f=d?d.isCollapsed:
!1;if(c){var j=c.tagName.toLowerCase()=="iframe"?c.contentWindow:c;if(j&&j.focus)try{j.focus()}catch(h){}e._onFocusNode(c)}if(d&&b.withGlobal(a||b.global,e.isCollapsed)&&!f){a&&a.focus();try{b.withGlobal(a||b.global,e.moveToBookmark,null,[d])}catch(g){}}}},_activeStack:[],registerIframe:function(a){return e.registerWin(a.contentWindow,a)},unregisterIframe:function(a){e.unregisterWin(a)},registerWin:function(a,c){var d=function(a){e._justMouseDowned=!0;setTimeout(function(){e._justMouseDowned=!1},
0);if(!b.isIE||!a||!(a.srcElement&&a.srcElement.parentNode==null))e._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",d);var j=function(a){a.srcElement.tagName.toLowerCase()!="#document"&&e.isTabNavigable(a.srcElement)?e._onFocusNode(c||a.srcElement):e._onTouchNode(c||a.srcElement)};f.attachEvent("onactivate",j);var h=function(a){e._onBlurNode(c||a.srcElement)};f.attachEvent("ondeactivate",h);return function(){a.document.detachEvent("onmousedown",
d);f.detachEvent("onactivate",j);f.detachEvent("ondeactivate",h);f=null}}else{f.body.addEventListener("mousedown",d,!0);var g=function(a){e._onFocusNode(c||a.target)};f.addEventListener("focus",g,!0);var k=function(a){e._onBlurNode(c||a.target)};f.addEventListener("blur",k,!0);return function(){f.body.removeEventListener("mousedown",d,!0);f.removeEventListener("focus",g,!0);f.removeEventListener("blur",k,!0);f=null}}},unregisterWin:function(a){a&&a()},_onBlurNode:function(){e._prevFocus=e._curFocus;
e._curFocus=null;if(!e._justMouseDowned)e._clearActiveWidgetsTimer&&clearTimeout(e._clearActiveWidgetsTimer),e._clearActiveWidgetsTimer=setTimeout(function(){delete e._clearActiveWidgetsTimer;e._setStack([]);e._prevFocus=null},100)},_onTouchNode:function(a,c){e._clearActiveWidgetsTimer&&(clearTimeout(e._clearActiveWidgetsTimer),delete e._clearActiveWidgetsTimer);var d=[];try{for(;a;){var f=b.attr(a,"dijitPopupParent");if(f)a=e.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 j=a.getAttribute&&a.getAttribute("widgetId"),h=j&&e.byId(j);h&&!(c=="mouse"&&h.get("disabled"))&&d.unshift(j);a=a.parentNode}}}catch(g){}e._setStack(d,c)},_onFocusNode:function(a){if(a&&a.nodeType!=9&&(e._onTouchNode(a),a!=e._curFocus)){if(e._curFocus)e._prevFocus=e._curFocus;e._curFocus=a;b.publish("focusNode",[a])}},_setStack:function(a,c){var d=e._activeStack;e._activeStack=a;for(var f=0;f<Math.min(d.length,a.length);f++)if(d[f]!=
a[f])break;for(var j,h=d.length-1;h>=f;h--)if(j=e.byId(d[h]))j._focused=!1,j.set("focused",!1),j._hasBeenBlurred=!0,j._onBlur&&j._onBlur(c),b.publish("widgetBlur",[j,c]);for(h=f;h<a.length;h++)if(j=e.byId(a[h]))j._focused=!0,j.set("focused",!0),j._onFocus&&j._onFocus(c),b.publish("widgetFocus",[j,c])}});b.addOnLoad(function(){var a=e.registerWin(window);b.isIE&&b.addOnWindowUnload(function(){e.unregisterWin(a);a=null})});return e});
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,d,f){this.pairs[f?"unshift":"push"]([b,a,c,d])},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,e){e.getViewport=function(){return b.window.getBox()};e.placeOnScreen=function(a,c,d,f){d=b.map(d,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 e._place(a,d)};e._place=function(a,c,d,f){var e=b.window.getBox();(!a.parentNode||String(a.parentNode.tagName).toLowerCase()!="body")&&b.body().appendChild(a);var h=null;b.some(c,
function(c){var g=c.corner,n=c.pos,m=0,o={w:g.charAt(1)=="L"?e.l+e.w-n.x:n.x-e.l,h:g.charAt(1)=="T"?e.t+e.h-n.y:n.y-e.t};d&&(m=d(a,c.aroundCorner,g,o,f),m=typeof m=="undefined"?0:m);var p=a.style,q=p.display,r=p.visibility;p.visibility="hidden";p.display="";var s=b.marginBox(a);p.display=q;p.visibility=r;p=Math.max(e.l,g.charAt(1)=="L"?n.x:n.x-s.w);q=Math.max(e.t,g.charAt(0)=="T"?n.y:n.y-s.h);r=Math.min(e.l+e.w,g.charAt(1)=="L"?p+s.w:n.x);n=Math.min(e.t+e.h,g.charAt(0)=="T"?q+s.h:n.y);r-=p;n-=q;m+=
s.w-r+(s.h-n);if(h==null||m<h.overflow)h={corner:g,aroundCorner:c.aroundCorner,x:p,y:q,w:r,h:n,overflow:m,spaceAvailable:o};return!m});h.overflow&&d&&d(a,h.aroundCorner,h.corner,h.spaceAvailable,f);var c=b._isBodyLtr(),g=a.style;g.top=h.y+"px";g[c?"left":"right"]=(c?h.x:e.w-h.x-h.w)+"px";return h};e.placeOnScreenAroundNode=function(a,c,d,f){c=b.byId(c);c=b.position(c,!0);return e._placeOnScreenAroundRect(a,c.x,c.y,c.w,c.h,d,f)};e.placeOnScreenAroundRectangle=function(a,b,d,f){return e._placeOnScreenAroundRect(a,
b.x,b.y,b.width,b.height,d,f)};e._placeOnScreenAroundRect=function(a,b,d,f,j,h,g){var k=[],l;for(l in h)k.push({aroundCorner:l,corner:h[l],pos:{x:b+(l.charAt(1)=="L"?0:f),y:d+(l.charAt(0)=="T"?0:j)}});return e._place(a,k,g,{w:f,h:j})};e.placementRegistry=new b.AdapterRegistry;e.placementRegistry.register("node",function(a,b){return typeof b=="object"&&typeof b.offsetWidth!="undefined"&&typeof b.offsetHeight!="undefined"},e.placeOnScreenAroundNode);e.placementRegistry.register("rect",function(a,b){return typeof b==
"object"&&"x"in b&&"y"in b&&"width"in b&&"height"in b},e.placeOnScreenAroundRectangle);e.placeOnScreenAroundElement=function(a,b,d,f){return e.placementRegistry.match.apply(e.placementRegistry,arguments)};e.getPopupAroundAlignment=function(a,c){var d={};b.forEach(a,function(a){switch(a){case "after":d[c?"BR":"BL"]=c?"BL":"BR";break;case "before":d[c?"BL":"BR"]=c?"BR":"BL";break;case "below-alt":c=!c;case "below":d[c?"BL":"BR"]=c?"TL":"TR";d[c?"BR":"BL"]=c?"TR":"TL";break;case "above-alt":c=!c;default:d[c?
"TL":"TR"]=c?"BL":"BR",d[c?"TR":"TL"]=c?"BR":"BL"}});return d};return e});define("dijit/_base/scroll",["dojo","dijit","dojo/window"],function(b,e){e.scrollIntoView=function(a,c){b.window.scrollIntoView(a,c)};return e.scrollIntoView});
define("dojo/uacss",["dojo"],function(b){(function(){var e=b.doc.documentElement,a=b.isIE,c=b.isOpera,d=Math.floor,f=b.isFF,j=b.boxModel.replace(/-/,""),a={dj_ie:a,dj_ie6:d(a)==6,dj_ie7:d(a)==7,dj_ie8:d(a)==8,dj_ie9:d(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:d(f)==3};a["dj_"+j]=!0;var h="",g;for(g in a)a[g]&&(h+=g+" ");e.className=b.trim(e.className+" "+h);b._loaders.unshift(function(){if(!b._isBodyLtr()){var a=
"dj_rtl dijitRtl "+h.replace(/ /g,"-rtl ");e.className=b.trim(e.className+" "+a)}})})();return b});define("dijit/_base/sniff",["dojo","dijit","dojo/uacss"],function(b,e){return e});
define("dijit/_base/typematic",["dojo","dijit"],function(b,e){e.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,d,f,e,h,g,k){if(e!=this._obj)this.stop(),
this._initialDelay=g||500,this._subsequentDelay=h||0.9,this._minDelay=k||10,this._obj=e,this._evt=a,this._node=d,this._count=this._currentTimeout=-1,this._callback=b.hitch(c,f),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,d,f,j,h,g){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(k){k.charOrCode==c.charOrCode&&(c.ctrlKey===void 0||c.ctrlKey==k.ctrlKey)&&(c.altKey===void 0||c.altKey==k.altKey)&&(c.metaKey===void 0||c.metaKey==(k.metaKey||!1))&&(c.shiftKey===void 0||c.shiftKey==k.shiftKey)?(b.stopEvent(k),e.typematic.trigger(k,d,a,
f,c,j,h,g)):e.typematic._obj==c&&e.typematic.stop()}),b.connect(a,"onkeyup",this,function(){e.typematic._obj==c&&e.typematic.stop()})]},addMouseListener:function(a,c,d,f,j,h){var g=b.connect;return[g(a,"mousedown",this,function(g){b.stopEvent(g);e.typematic.trigger(g,c,a,d,a,f,j,h)}),g(a,"mouseup",this,function(a){b.stopEvent(a);e.typematic.stop()}),g(a,"mouseout",this,function(a){b.stopEvent(a);e.typematic.stop()}),g(a,"mousemove",this,function(a){a.preventDefault()}),g(a,"dblclick",this,function(g){b.stopEvent(g);
b.isIE&&(e.typematic.trigger(g,c,a,d,a,f,j,h),setTimeout(b.hitch(this,e.typematic.stop),50))})]},addListener:function(a,b,d,f,e,h,g,k){return this.addKeyListener(b,d,f,e,h,g,k).concat(this.addMouseListener(a,f,e,h,g,k))}};return e.typematic});
define("dijit/_base/wai",["dojo","dijit"],function(b,e){e.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 d=c.backgroundImage;b[c.borderTopColor==c.borderRightColor||d!=null&&(d=="none"||d=="url(invalid-url:)")?"addClass":"removeClass"](b.body(),
"dijit_a11y");b.isIE?a.outerHTML="":b.body().removeChild(a)}}};(b.isIE||b.isMoz)&&b._loaders.unshift(e.wai.onload);b.mixin(e,{hasWaiRole:function(a,b){var d=this.getWaiRole(a);return b?d.indexOf(b)>-1:d.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 d=b.attr(a,"role");d&&(c?(d=b.trim((" "+d+" ").replace(" "+c+" "," ")),b.attr(a,"role",d)):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,d){a.setAttribute("aria-"+b,d)},removeWaiState:function(a,b){a.removeAttribute("aria-"+b)}});return e});define("dijit/_base/window",["dojo","dijit","dojo/window"],function(b,e){e.getDocumentWindow=function(a){return b.window.get(a)};return e});
define("dijit/_base/popup",["dojo","dijit","dijit/_base/focus","dijit/_base/place","dijit/_base/window"],function(b,e){e.popup={_stack:[],_beginZIndex:1E3,_idGen:1,_createWrapper:function(a){var c=a.declaredClass?a._popupWrapper:a.parentNode&&b.hasClass(a.parentNode,"dijitPopup"),d=a.domNode||a;if(!c&&(c=b.create("div",{"class":"dijitPopup",style:{display:"none"},role:"presentation"},b.body()),c.appendChild(d),d=d.style,d.display="",d.visibility="",d.position="",d.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,d=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"}),j=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));)e.popup.close(c[c.length-1].widget);var g=this._createWrapper(d);b.attr(g,{id:h,style:{zIndex:this._beginZIndex+c.length},"class":"dijitPopup "+(d.baseClass||d["class"]||"").split(" ")[0]+"Popup",dijitPopupParent:a.parent?a.parent.id:""});if((b.isIE||b.isMoz)&&!d.bgIframe)d.bgIframe=
new e.BackgroundIframe(g);f=j?e.placeOnScreenAroundElement(g,j,f,d.orient?b.hitch(d,"orient"):null):e.placeOnScreen(g,a,f=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],a.padding);g.style.display="";g.style.visibility="visible";d.domNode.style.visibility="visible";j=[];j.push(b.connect(g,"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()}));d.onCancel&&
j.push(b.connect(d,"onCancel",a.onCancel));j.push(b.connect(d,d.onExecute?"onExecute":"onChange",this,function(){var a=this.getTopPopup();if(a&&a.onExecute)a.onExecute()}));c.push({widget:d,parent:a.parent,onExecute:a.onExecute,onCancel:a.onCancel,onClose:a.onClose,handlers:j});if(d.onOpen)d.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 d=c.pop(),f=d.widget,e=d.onClose;if(f.onClose)f.onClose();b.forEach(d.handlers,b.disconnect);
f&&f.domNode&&this.hide(f);e&&e()}}};e._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,e.setWaiRole(c,
"presentation"));return c};this.push=function(b){b.style.display="none";a.push(b)}};e.BackgroundIframe=function(a){if(!a.id)throw Error("no id");if(b.isIE||b.isMoz){var c=this.iframe=e._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(e.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&&(e._frames.push(this.iframe),delete this.iframe)}});return e.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,e){return e._base});
define("dijit/_Widget",["dojo","dijit","dijit/_WidgetBase","dijit/_base"],function(b,e){b.connect(b,"_connect",function(a,c){a&&b.isFunction(a._onConnect)&&a._onConnect(c)});e._connectOnUseEventHandler=function(){};e._lastKeyDownNode=null;b.isIE?function(){var a=function(a){e._lastKeyDownNode=a.srcElement};b.doc.attachEvent("onkeydown",a);b.addOnWindowUnload(function(){b.doc.detachEvent("onkeydown",a)})}():b.doc.addEventListener("keydown",function(a){e._lastKeyDownNode=a.target},!0);(function(){b.declare("dijit._Widget",
e._WidgetBase,{_deferredConnects:{onClick:"",onDblClick:"",onKeyDown:"",onKeyPress:"",onKeyUp:"",onMouseMove:"",onMouseDown:"",onMouseOut:"",onMouseOver:"",onMouseLeave:"",onMouseEnter:"",onMouseUp:""},onClick:e._connectOnUseEventHandler,onDblClick:e._connectOnUseEventHandler,onKeyDown:e._connectOnUseEventHandler,onKeyPress:e._connectOnUseEventHandler,onKeyUp:e._connectOnUseEventHandler,onMouseDown:e._connectOnUseEventHandler,onMouseMove:e._connectOnUseEventHandler,onMouseOut:e._connectOnUseEventHandler,
onMouseOver:e._connectOnUseEventHandler,onMouseLeave:e._connectOnUseEventHandler,onMouseEnter:e._connectOnUseEventHandler,onMouseUp:e._connectOnUseEventHandler,create:function(a,c){this._deferredConnects=b.clone(this._deferredConnects);for(var d in this.attributeMap)delete this._deferredConnects[d];for(d in this._deferredConnects)this[d]!==e._connectOnUseEventHandler&&delete this._deferredConnects[d];this.inherited(arguments);if(this.domNode)for(d in this.params)this._onConnect(d)},_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 d=arguments.callee._ach||(arguments.callee._ach={}),f=(arguments.callee.caller||"unknown caller").toString();d[f]||(b.deprecated(this.declaredClass+"::attr() is deprecated. Use get() or set() instead, called from "+f,"","2.0"),d[f]=!0)}return arguments.length>=2||typeof a==="object"?this.set.apply(this,arguments):this.get(a)},nodesWithKeyClick:["input","button"],connect:function(a,c,d){var f=b._connect,j=this.inherited(arguments,[a,c=="ondijitclick"?"onclick":c,d]);if(c==
"ondijitclick"&&b.indexOf(this.nodesWithKeyClick,a.nodeName.toLowerCase())==-1){var h=b.hitch(this,d);j.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)e._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==e._lastKeyDownNode&&!a.ctrlKey&&!a.shiftKey&&!a.altKey&&!a.metaKey)return e._lastKeyDownNode=
null,h(a)}))}return j},_onShow:function(){this.onShow()},onShow:function(){},onHide:function(){},onClose:function(){return!0}})})();return e._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(e,a,c,d){c||(c="0");e=String(e);a=b.string.rep(c,Math.ceil((a-e.length)/c.length));return d?e+a:a+e};b.string.substitute=function(e,a,c,d){d=d||b.global;c=c?b.hitch(d,c):function(a){return a};return e.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(f,e,h){f=b.getObject(e,!1,a);h&&
(f=b.getObject(h,!1,d).call(d,f,e));return c(f,e).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(e,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(e),d=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}));d=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&&d.setFullYear(c[0]||1970);var f=0,j=c[7]&&c[7].charAt(0);j!="Z"&&(f=(c[8]||0)*60+(Number(c[9])||0),j!="-"&&(f*=-1));j&&(f-=d.getTimezoneOffset());f&&d.setTime(d.getTime()+f*6E4)}return d};b.date.stamp.toISOString=function(b,a){var c=function(a){return a<10?"0"+a:a},a=a||{},d=[],f=a.zulu?"getUTC":"get",j="";a.selector!="time"&&(j=b[f+"FullYear"](),j=["0000".substr((j+"").length)+j,
c(b[f+"Month"]()+1),c(b[f+"Date"]())].join("-"));d.push(j);if(a.selector!="date"){j=[c(b[f+"Hours"]()),c(b[f+"Minutes"]()),c(b[f+"Seconds"]())].join(":");f=b[f+"Milliseconds"]();a.milliseconds&&(j+="."+(f<100?"0":"")+c(f));if(a.zulu)j+="Z";else if(a.selector!="time"){var f=b.getTimezoneOffset(),h=Math.abs(f);j+=(f>0?"-":"+")+c(Math.floor(h/60))+":"+c(h%60)}d.push(j)}return d.join("T")};return b.date.stamp});
define("dojo/parser",["dojo","dojo/date/stamp"],function(b){b.parser=new function(){function e(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":d.isFunction(a)&&(a=a.toString(),a=d.trim(a.substring(a.indexOf("{")+1,a.length-1)));try{return a===""||a.search(/[^\w\.]+/i)!=-1?new Function(a):d.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 d.date.stamp.fromISOString(a)}case "url":return d.baseUrl+a;default:return d.fromJson(a)}}function a(a,b){for(var c in a)if(c.charAt(0)!="_"&&!(c in f)){var e=b,j=c,m;m=a[c];m=d.isString(m)?"string":typeof m=="number"?"number":typeof m=="boolean"?"boolean":d.isFunction(m)?"function":d.isArray(m)?"array":m instanceof Date?"date":m instanceof d._Url?"url":"object";e[j]=m}return b}function c(b,c){var f=j[b];
if(f){if(!c&&!f.params)f.params=a(f.cls.prototype,{})}else{var f=d.getObject(b),e=null;if(!f)return null;c||(e=a(f.prototype,{}));f={cls:f,params:e}}return f}var d=b,f={},j={};d.connect(d,"extend",function(){j={}});this._functionFromScript=function(a,b){var c="",f="",e=a.getAttribute(b+"args")||a.getAttribute("args");e&&d.forEach(e.split(/\s*,\s*/),function(a,b){c+="var "+a+" = arguments["+b+"]; "});(e=a.getAttribute("with"))&&e.length&&d.forEach(e.split(/\s*,\s*/),function(a){c+="with("+a+"){";f+=
"}"});return new Function(c+a.innerHTML+f)};this.instantiate=function(a,f,j){var l=[],f=f||{},j=j||{},n=(j.scope||d._scopeName)+"Type",m="data-"+(j.scope||d._scopeName)+"-";d.forEach(a,function(a){if(a){var h,q,r,s,u,t;a.node?(h=a.node,q=a.type,t=a.fastpath,s=(r=a.clsInfo||q&&c(q,t))&&r.cls,u=a.scripts):(h=a,u=(s=(r=(q=n in f?f[n]:h.getAttribute(n))&&c(q))&&r.cls)&&(s._noScript||s.prototype._noScript)?[]:d.query("> script[type^='dojo/']",h));if(!r)throw Error("Could not load class '"+q);var v={};
j.defaults&&d._mixin(v,j.defaults);a.inherited&&d._mixin(v,a.inherited);if(t){if((r=h.getAttribute(m+"props"))&&r.length)try{r=d.fromJson.call(j.propsThis,"{"+r+"}"),d._mixin(v,r)}catch(C){throw Error(C.toString()+" in data-dojo-props='"+r+"'");}if(r=h.getAttribute(m+"attach-point"))v.dojoAttachPoint=r;if(r=h.getAttribute(m+"attach-event"))v.dojoAttachEvent=r;b.mixin(v,f)}else{var a=h.attributes,x;for(x in r.params)if((q=x in f?{value:f[x],specified:!0}:a.getNamedItem(x))&&(q.specified||b.isIE&&x.toLowerCase()==
"value")){q=q.value;switch(x){case "class":q="className"in f?f.className:h.className;break;case "style":q="style"in f?f.style:h.style&&h.style.cssText}t=r.params[x];v[x]=typeof q=="string"?e(q,t):q}}var A=[],B=[];d.forEach(u,function(a){h.removeChild(a);var b=a.getAttribute(m+"event")||a.getAttribute("event"),c=a.getAttribute("type"),a=d.parser._functionFromScript(a,m);b?c=="dojo/connect"?A.push({event:b,func:a}):v[b]=a:B.push(a)});var z=(u=s.markupFactory||s.prototype&&s.prototype.markupFactory)?
u(v,h,s):new s(v,h);l.push(z);(s=h.getAttribute(m+"id")||h.getAttribute("jsId"))&&d.setObject(s,z);d.forEach(A,function(a){d.connect(z,a.event,null,a.func)});d.forEach(B,function(a){a.call(z)})}});f._started||d.forEach(l,function(a){!j.noStart&&a&&b.isFunction(a.startup)&&!a._started&&(!a.getParent||!a.getParent())&&a.startup()});return l};this.parse=function(a,f){function e(a,d){var j=b.clone(a.inherited);b.forEach(["dir","lang"],function(b){var c=a.node.getAttribute(b);c&&(j[b]=c)});for(var h=a.clsInfo&&
!a.clsInfo.cls.prototype._noScript?a.scripts:null,l=!a.clsInfo||!a.clsInfo.cls.prototype.stopParser||f&&f.template,o=a.node.firstChild;o;o=o.nextSibling)if(o.nodeType==1){var C,p=l&&o.getAttribute(m+"type");C=p?p:l&&o.getAttribute(n);p=p==C;C?(C={type:C,fastpath:p,clsInfo:c(C,p),node:o,scripts:[],inherited:j},d.push(C),e(C,d)):h&&o.nodeName.toLowerCase()=="script"?(C=o.getAttribute("type"))&&/^dojo\/\w/i.test(C)&&h.push(o):l&&e({node:o,inherited:j},d)}}var j;!f&&a&&a.rootNode?(f=a,j=f.rootNode):j=
a;j=j?b.byId(j):b.body();var f=f||{},n=(f.scope||d._scopeName)+"Type",m="data-"+(f.scope||d._scopeName)+"-",o={};if(f&&f.inherited)for(var p in f.inherited)f.inherited[p]&&(o[p]=f.inherited[p]);p=[];e({node:j,inherited:o},p);return this.instantiate(p,f&&f.template?{template:!0}:null,f)}};(function(){var e=function(){b.config.parseOnLoad&&b.parser.parse()};b.getObject("dijit.wai.onload")===b._loaders[0]?b._loaders.splice(1,0,e):b._loaders.unshift(e)})();return b.parser});
define("dojo/cache",["dojo"],function(b){var e={};b.cache=function(a,c,d){if(typeof a=="string")var f=b.moduleUrl(a,c);else f=a,d=c;var f=f.toString(),j=d;d!=void 0&&!b.isString(d)&&(j="value"in d?d.value:void 0);d=d&&d.sanitize?!0:!1;if(typeof j=="string")j=e[f]=d?b.cache._sanitize(j):j;else if(j===null)delete e[f];else{if(!(f in e)){j=void 0;if(b.isFunction(require)&&b.isString(a))try{var h=(a?a.replace(/\./g,"/")+"/":"")+c,j=require("text!"+h)}catch(g){}typeof j==="undefined"&&(j=b._getText(f));
e[f]=d?b.cache._sanitize(j):j}j=e[f]}return j};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,e){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,d=this;return b.string.substitute(a,this,function(a,e){e.charAt(0)=="!"&&(a=b.getObject(e.substr(1),!1,d));if(typeof a=="undefined")throw Error(c+
" template:"+e);return a==null?"":e.charAt(0)=="!"?a:a.toString().replace(/"/g,"&quot;")},this)},buildRendering:function(){var a=e._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=e.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)},d=b.isArray(a)?a:a.all||a.getElementsByTagName("*"),f=b.isArray(a)?0:-1;f<d.length;f++){var j=
f==-1?a:d[f];if(!this.widgetsInTemplate||!c(j,"dojoType")&&!c(j,"data-dojo-type")){var h=c(j,"dojoAttachPoint")||c(j,"data-dojo-attach-point");if(h)for(var g=h.split(/\s*,\s*/);h=g.shift();)b.isArray(this[h])?this[h].push(j):this[h]=j,this._attachPoints.push(h);if(h=c(j,"dojoAttachEvent")||c(j,"data-dojo-attach-event"))for(var g=h.split(/\s*,\s*/),k=b.trim;h=g.shift();)if(h){var l=null;h.indexOf(":")!=-1?(l=h.split(":"),h=k(l[0]),l=k(l[1])):h=k(h);l||(l=h);this._attachEvents.push(this.connect(j,h,
l))}(h=c(j,"waiRole"))&&e.setWaiRole(j,h);(h=c(j,"waiState"))&&b.forEach(h.split(/\s*,\s*/),function(a){a.indexOf("-")!=-1&&(a=a.split("-"),e.setWaiState(j,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)}});
e._Templated._templateCache={};e._Templated.getCachedTemplate=function(a,c,d){var f=e._Templated._templateCache,j=c||a,h=f[j];if(h){try{if(!h.ownerDocument||h.ownerDocument==b.doc)return h}catch(g){}b.destroy(h)}c||(c=b.cache(a,{sanitize:!0}));c=b.string.trim(c);if(d||c.match(/\$\{([^\}]+)\}/g))return f[j]=c;else{a=b._toDom(c);if(a.nodeType!=1)throw Error("Invalid template: "+c);return f[j]=a}};b.isIE&&b.addOnWindowUnload(function(){var a=e._Templated._templateCache,c;for(c in a){var d=a[c];typeof d==
"object"&&b.destroy(d);delete a[c]}});b.extend(e._Widget,{dojoAttachEvent:"",dojoAttachPoint:"",waiRole:"",waiState:""});return e._Templated});
define("dijit/_CssStateMixin",["dojo","dijit"],function(b,e){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 d=this.stateNode||this.domNode,f={};b.forEach(d.className.split(" "),function(a){f[a]=!0});"_stateClasses"in this&&b.forEach(this._stateClasses,function(a){delete f[a]});
b.forEach(c,function(a){f[a]=!0});var e=[],h;for(h in f)e.push(h);d.className=e.join(" ");this._stateClasses=c},_trackMouseState:function(a,c){function d(){var d="disabled"in g&&g.disabled||"readonly"in g&&g.readonly;b.toggleClass(a,c+"Hover",f&&!e&&!d);b.toggleClass(a,c+"Active",e&&!d);b.toggleClass(a,c+"Focused",h&&!d)}var f=!1,e=!1,h=!1,g=this,k=b.hitch(this,"connect",a);k("onmouseenter",function(){f=!0;d()});k("onmouseleave",function(){e=f=!1;d()});k("onmousedown",function(){e=!0;d()});k("onmouseup",
function(){e=!1;d()});k("onfocus",function(){h=!0;d()});k("onblur",function(){h=!1;d()});this.watch("disabled",d);this.watch("readOnly",d)}});return e._CssStateMixin});
define("dijit/form/_FormWidget","dojo,dijit,dojo/window,dijit/_Widget,dijit/_Templated,dijit/_CssStateMixin".split(","),function(b,e){b.declare("dijit.form._FormWidget",[e._Widget,e._Templated,e._CssStateMixin],{name:"",alt:"",value:"",type:"text",tabIndex:"0",disabled:!1,intermediateChanges:!1,scrollOnFocus:!0,attributeMap:b.delegate(e._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);e.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||e.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||e.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",
e.form._FormWidget,{readOnly:!1,attributeMap:b.delegate(e.form._FormWidget.prototype.attributeMap,{value:"",readOnly:"focusNode"}),_setReadOnlyAttr:function(a){b.attr(this.focusNode,"readOnly",a);e.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,d=a.firstChild||a,f=d.style.filter,e=this;c&&c.clientHeight==0;)(function(){var a=e.connect(c,"onscroll",function(){e.disconnect(a);d.style.filter=(new Date).getMilliseconds();setTimeout(function(){d.style.filter=f},0)})})(),c=c.parentNode}});return e.form._FormWidget});
define("dijit/form/TextBox",["dojo","dijit","text!dijit/form/templates/TextBox.html","dijit/form/_FormWidget"],function(b,e){b.declare("dijit.form.TextBox",e.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(e.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==e.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,d){var f;a!==void 0&&(f=this.filter(a),typeof d!="string"&&(d=f!==null&&(typeof f!="number"||!isNaN(f))?this.filter(this.format(f,this.constraints)):""));if(d!=null&&d!=void 0&&(typeof d!="number"||!isNaN(d))&&this.textbox.value!=d)this.textbox.value=d,this._set("displayedValue",this.get("displayedValue"));this._updatePlaceHolder();this.inherited(arguments,[f,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 d=0;d<c.length;d++)c[d].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&&e.selectInputText(this.textbox)});this._updatePlaceHolder();this.inherited(arguments);this._refreshState()}},reset:function(){this.textbox.value="";this.inherited(arguments)}});e.selectInputText=function(a,c,d){var f=b.global,j=b.doc,a=b.byId(a);isNaN(c)&&(c=0);isNaN(d)&&(d=a.value?a.value.length:0);e.focus(a);j.selection&&b.body().createTextRange?a.createTextRange&&(a=a.createTextRange(),a.collapse(!0),a.moveStart("character",-99999),a.moveStart("character",c),a.moveEnd("character",
d-c),a.select()):f.getSelection&&a.setSelectionRange&&a.setSelectionRange(c,d)};return e.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(){var b=/^http[s]?/i;return{matchResourceParameters:function(b){var b=b||window.location.toString(),a={resource:""},c=b.indexOf("#");if(c!==-1&&(b=b.substring(c+1),b.length!==0)){b=b.split(",");a.resource=decodeURIComponent(b[0]);for(c=1;c<b.length;c++){var d=b[c].split("="),f=decodeURIComponent(d[0]),d=d.length===2?decodeURIComponent(d[1]):null;d!==null&&f!=="resource"&&(a[f]=d)}}return a},validateURLScheme:function(e,a){var c=e;if(e.indexOf("://")===-1){var d=
document.createElement("a");d.href=e;c=d.href}d=!1;return(d=a?a.some(function(a){return RegExp("^"+a+":","i").test(c)}):b.test(c))?e:(console.log("Illegal URL Scheme: '"+e+"'"),"")}}});
define("orion/explorers/navigationUtils",["dojo"],function(b){function e(c,d,f,e){!a&&c&&(f?(c.push({domNode:d,widget:f,onClick:e}),b.attr(f,"tabIndex",-1)):(c.push({domNode:d}),b.attr(d,"tabIndex",-1),b.style(d,"outline","none")))}var a=navigator.userAgent.indexOf("iPad")!==-1;return{addNavGrid:function(a,b,f,j,h){a&&(a=a.getGridNavHolder(b,!0))&&e(a,f,j,h)},generateNavGrid:e,removeNavGrid:function(a,b){if(a)for(var f=0;f<a.length;f++)if(a[f].domNode===b){a.splice(f,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,e){b.declare("dijit._Container",null,{isContainer:!0,buildRendering:function(){this.inherited(arguments);if(!this.containerNode)this.containerNode=this.domNode},addChild:function(a,c){var d=this.containerNode;if(c&&typeof c=="number"){var f=this.getChildren();if(f&&f.length>=c)d=f[c-1].domNode,c="after"}b.place(a.domNode,d,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 d=a.domNode,f=b>0?"nextSibling":"previousSibling";do d=d[f];while(d&&(d.nodeType!=1||!e.byNode(d)));return d&&e.byNode(d)},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 e._Container});
define("dijit/_KeyNavContainer",["dojo","dijit","dijit/_Container"],function(b,e){b.declare("dijit._KeyNavContainer",e._Container,{tabIndex:"0",_keyNavCodes:{},connectKeyNavHandlers:function(a,c){var d=this._keyNavCodes={},f=b.hitch(this,this.focusPrev),e=b.hitch(this,this.focusNext);b.forEach(a,function(a){d[a]=f});b.forEach(c,function(a){d[a]=e});d[b.keys.HOME]=b.hitch(this,"focusFirstChild");d[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){e._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 d=this.getChildren(),f=0;f<d.length;f++){a||(a=d[b>0?0:d.length-1]);if(a.isFocusable())return a;a=this._getSiblingOfChild(a,b)}return null}});return e._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,e){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,d=!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&&!d;)b.hasClass(f,"dijitPopup")?d=!0:f=f.parentNode;if(d){f=a.target;if(c.onItemClick){for(var j;f&&!(j=e.byNode(f));)f=f.parentNode;if(j&&j.onClick&&j.getParent)j.getParent().onItemClick(j,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,d=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==" ")&&((d.tagName||"").toLowerCase()!=="input"||d.type&&d.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(e._curFocus&&this.dropDown&&b.isDescendant(e._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,d=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 j={display:"",visibility:"hidden"};if(!this._explicitDDWidth)j.width="";if(!this._explicitDDHeight)j.height="";b.style(c,j);j=this.maxHeight;if(j==-1)var j=b.window.getBox(),h=b.position(d,!1),j=Math.floor(Math.max(h.y,j.h-(h.y+h.h)));a.startup&&!a._started&&
a.startup();e.popup.moveOffScreen(a);var h=b._getMarginSize(c),g=j&&h.h>j;b.style(c,{overflowX:"hidden",overflowY:g?"auto":"hidden"});g?(h.h=j,"w"in h&&(h.w+=16)):delete h.h;this.forceWidth?h.w=d.offsetWidth:this.autoWidth?h.w=Math.max(h.w,d.offsetWidth):delete h.w;b.isFunction(a.resize)?a.resize(h):b.marginBox(c,h)}a=e.popup.open({parent:this,popup:a,around:d,orient:e.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(),e.popup.close(this.dropDown),this._opened=!1}});return e._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,e){b.declare("dijit.form.Button",e.form._FormWidget,{label:"",showLabel:!0,iconClass:"",type:"button",baseClass:"dijitButton",templateString:b.cache("dijit.form","templates/Button.html"),attributeMap:b.delegate(e.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 d=e.byNode(b);if(d&&typeof d._onSubmit=="function"){d._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",[e.form.Button,e._Container,e._HasDropDown],{baseClass:"dijitDropDownButton",templateString:b.cache("dijit.form","templates/DropDownButton.html"),_fillContent:function(){if(this.srcNodeRef){var a=
b.query("*",this.srcNodeRef);e.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=e.byNode(a);delete this.dropDownContainer}this.dropDown&&e.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",e.form.DropDownButton,{templateString:b.cache("dijit.form","templates/ComboButton.html"),attributeMap:b.mixin(b.clone(e.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"])e.focus(this._popupStateNode),b.stopEvent(a)},_onArrowKeyPress:function(a){if(a.charOrCode==b.keys[this.isLeftToRight()?"LEFT_ARROW":"RIGHT_ARROW"])e.focus(this.titleNode),b.stopEvent(a)},focus:function(a){this.disabled||e.focus(a=="start"?this.titleNode:this._popupStateNode)}});
b.declare("dijit.form.ToggleButton",e.form.Button,{baseClass:"dijitToggleButton",checked:!1,attributeMap:b.mixin(b.clone(e.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);e.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 e.form.Button});define("dijit/form/DropDownButton",["dojo","dijit","dijit/form/Button"],function(b,e){return e.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,e){b.declare("dijit._Contained",null,{getParent:function(){var a=e.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&&e.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 e._Contained});
define("dijit/MenuItem","dojo,dijit,text!dijit/templates/MenuItem.html,dijit/_Widget,dijit/_Templated,dijit/_Contained,dijit/_CssStateMixin".split(","),function(b,e){b.declare("dijit.MenuItem",[e._Widget,e._Templated,e._Contained,e._CssStateMixin],{templateString:b.cache("dijit","templates/MenuItem.html"),attributeMap:b.delegate(e._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");e.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(),e.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){e.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 e.MenuItem});
define("dijit/CheckedMenuItem",["dojo","dijit","text!dijit/templates/CheckedMenuItem.html","dijit/MenuItem"],function(b,e){b.declare("dijit.CheckedMenuItem",e.MenuItem,{templateString:b.cache("dijit","templates/CheckedMenuItem.html"),checked:!1,_setCheckedAttr:function(a){b.toggleClass(this.domNode,"dijitCheckedMenuItemChecked",a);e.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 e.CheckedMenuItem});
define("dijit/PopupMenuItem",["dojo","dijit","dijit/MenuItem"],function(b,e){b.declare("dijit.PopupMenuItem",e.MenuItem,{_fillContent:function(){if(this.srcNodeRef){var a=b.query("*",this.srcNodeRef);e.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=e.byNode(a)}b.body().appendChild(this.popup.domNode);this.popup.startup();
this.popup.domNode.style.display="none";this.arrowWrapper&&b.style(this.arrowWrapper,"visibility","");e.setWaiState(this.focusNode,"haspopup","true")}},destroyDescendants:function(){this.popup&&(this.popup._destroyed||this.popup.destroyRecursive(),delete this.popup);this.inherited(arguments)}});return e.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,e){b.declare("dijit.MenuSeparator",[e._Widget,e._Templated,e._Contained],{templateString:b.cache("dijit","templates/MenuSeparator.html"),buildRendering:function(){this.inherited(arguments);b.setSelectable(this.domNode,!1)},isFocusable:function(){return!1}});return e.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,e){b.declare("dijit._MenuBase",[e._Widget,e._Templated,e._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;e.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),e.popup.close(this.currentPopup));c.parentMenu=this;c.from_item=a;var d=this;e.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(){d.focusChild(a);d._cleanUp();a._setSelected(!0);d.focusedChild=a},onExecute:b.hitch(this,"_cleanUp")});this.currentPopup=c;c.connect(c.domNode,"onmouseenter",b.hitch(d,"_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)e._curFocus&&b.isDescendant(e._curFocus,this.currentPopup.domNode)&&this.focusedChild.focusNode.focus(),e.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",e._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 d=a,f=this._iframeContentWindow(d);c=
b.withGlobal(f,b.body)}else c=a==b.body()?b.doc.documentElement:a;var e={node:a,iframe:d};b.attr(a,"_dijitMenu"+this.id,this._bindings.push(e));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,d,{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,d))})]});e.connects=c?h(c):[];if(d)e.onloadHandler=b.hitch(this,
function(){var a=this._iframeContentWindow(d);c=b.withGlobal(a,b.body);e.connects=h(c)}),d.addEventListener?d.addEventListener("load",e.onloadHandler,!1):d.attachEvent("onload",e.onloadHandler)},unBindDomNode:function(a){var c;try{c=b.byId(a)}catch(d){return}a="_dijitMenu"+this.id;if(c&&b.hasAttr(c,a)){var f=b.attr(c,a)-1,e=this._bindings[f];b.forEach(e.connects,b.disconnect);var h=e.iframe;h&&(h.removeEventListener?h.removeEventListener("load",e.onloadHandler,!1):h.detachEvent("onload",e.onloadHandler));
b.removeAttr(c,a);delete this._bindings[f]}},_scheduleOpen:function(a,c,d){if(!this._openTimer)this._openTimer=setTimeout(b.hitch(this,function(){delete this._openTimer;this._openMyself({target:a,iframe:c,coords:d})}),1)},_openMyself:function(a){function c(){l.refocus&&e.focus(n);e.popup.close(l)}var d=a.target,f=a.iframe;if(a=a.coords){if(f){var d=b.position(f,!0),j=this._iframeContentWindow(f),j=b.withGlobal(j,"_docScroll",b),h=b.getComputedStyle(f),g=b._toPixelValue,k=(b.isIE&&b.isQuirks?0:g(f,
h.paddingLeft))+(b.isIE&&b.isQuirks?g(f,h.borderLeftWidth):0),f=(b.isIE&&b.isQuirks?0:g(f,h.paddingTop))+(b.isIE&&b.isQuirks?g(f,h.borderTopWidth):0);a.x+=d.x+k-j.x;a.y+=d.y+f-j.y}}else a=b.position(d,!0),a.x+=10,a.y+=10;var l=this,n=e.getFocus(this);e.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);e.popup.close(this)}},uninitialize:function(){b.forEach(this._bindings,function(a){a&&
this.unBindDomNode(a.node)},this);this.inherited(arguments)}});return e.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,e){b.declare("dijit._MasterTooltip",[e._Widget,e._Templated],{duration:e.defaultDuration,templateString:b.cache("dijit","templates/Tooltip.html"),postCreate:function(){b.body().appendChild(this.domNode);this.bgIframe=new e.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,d,f){if(!(this.aroundNode&&this.aroundNode===c))this.domNode.width="auto",this.fadeOut.status()=="playing"?this._onDeck=arguments:(this.containerNode.innerHTML=a,e.placeOnScreenAroundElement(this.domNode,c,e.getPopupAroundAlignment(d&&d.length?d:e.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,d,f,e){this.connectorNode.style.top=
"";var h=f.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+"-"+d];this.domNode.style.width="auto";var g=b.contentBox(this.domNode),k=Math.min(Math.max(h,1),g.w),l=k<g.w;this.domNode.style.width=k+"px";if(l&&(this.containerNode.style.overflow=
"auto",l=this.containerNode.scrollWidth,this.containerNode.style.overflow="visible",l>k))l=l+b.style(this.domNode,"paddingLeft")+b.style(this.domNode,"paddingRight"),this.domNode.style.width=l+"px";d.charAt(0)=="B"&&c.charAt(0)=="B"?(a=b.marginBox(a),c=this.connectorNode.offsetHeight,a.h>f.h?(this.connectorNode.style.top=f.h-e.h/2-c/2+"px",this.connectorNode.style.bottom=""):(this.connectorNode.style.bottom=Math.min(Math.max(e.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,g.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}});e.showTooltip=function(a,b,d,f){if(!e._masterTT)e._masterTT=
new e._MasterTooltip;return e._masterTT.show(a,b,d,f)};e.hideTooltip=function(a){if(!e._masterTT)e._masterTT=new e._MasterTooltip;return e._masterTT.hide(a)};b.declare("dijit.Tooltip",e._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);e.showTooltip(this.label||this.domNode.innerHTML,a,this.position,!this.isLeftToRight());this._connectNode=a;this.onShow(a,this.position)},close:function(){this._connectNode&&(e.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)}});e.Tooltip.defaultPosition=["after","before"];return e.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,e){b.declare("dijit.form.ValidationTextBox",e.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="",d=this.disabled||this.isValid(a);if(d)this._maskValidSubsetError=!0;var f=this._isEmpty(this.textbox.value),j=!d&&a&&this._isValidSubset();this._set("state",d?"":((!this._hasBeenBlurred||a)&&f||j)&&this._maskValidSubsetError?"Incomplete":"Error");e.setWaiState(this.focusNode,
"invalid",d?"false":"true");this.state=="Error"?(this._maskValidSubsetError=a&&j,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 d},displayMessage:function(a){e.hideTooltip(this.domNode);a&&this._focused&&e.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(d){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);e.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",e.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",e.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,d=!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)d=this.constraints.max,d=this.compare(a,typeof d!="number"||d>0?d:0),d=typeof d=="number"&&d>0;return b||d},_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?e.setWaiState(this.focusNode,"valuemin",this.constraints.min):
e.removeWaiState(this.focusNode,"valuemin"),this.constraints.max!==void 0?e.setWaiState(this.focusNode,"valuemax",this.constraints.max):e.removeWaiState(this.focusNode,"valuemax"))},_setValueAttr:function(a,b){e.setWaiState(this.focusNode,"valuenow",a);this.inherited(arguments)}});return e.form.ValidationTextBox});
define("orion/uiUtils",["i18n!orion/nls/messages","dojo","dijit","dojo/hash","dijit/form/ValidationTextBox"],function(b,e,a){function c(a){var b=window.navigator.platform.indexOf("Mac")!==-1;return b&&a.metaKey||!b&&a.ctrlKey}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 h in e.keys)if(typeof(e.keys[h]==="number")&&e.keys[h]===
a.keyCode)return b+h;var g;switch(a.keyCode){case 59:g=a.mod2?":":";";break;case 61:g=a.mod2?"+":"=";break;case 188:g=a.mod2?"<":",";break;case 190:g=a.mod2?">":".";break;case 191:g=a.mod2?"?":"/";break;case 192:g=a.mod2?"~":"`";break;case 219:g=a.mod2?"{":"[";break;case 220:g=a.mod2?"|":"\\";break;case 221:g=a.mod2?"}":"]";break;case 222:g=a.mod2?'"':"'"}return g?b+g:b+String.fromCharCode(a.keyCode)},getUserText:function(b,c,j,h,g,k,l,n,m){var l=function(l){return function(n){var o=a.byId(b),s=o.get("value");
l&&n.keyCode===e.keys.ESCAPE?(j&&e.style(c,"display","inline"),o.destroyRecursive(),k&&k()):l&&n.keyCode!==e.keys.ENTER||(!o.isValid()||!m&&s===h?j&&e.style(c,"display","inline"):g(s),o.destroyRecursive(),k&&k())}},o=new a.form.ValidationTextBox({id:b,required:!0,value:h||""});e.place(o.domNode,c,"after");e.addClass(o.domNode,"userEditBoxPrompt");j&&e.style(c,"display","none");e.connect(o,"onKeyDown",l(!0));e.connect(o,"onBlur",l(!1));window.setTimeout(function(){o.focus();if(h){var c=e.byId(b),f=
n?h.indexOf(n):-1;f>0?a.selectInputText(c,0,f):c.select()}},0)},openInNewWindow:c,followLink:function(a,b){b&&c(b)?window.open(a):window.location=a}}});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,e){b.declare("dijit.layout._LayoutWidget",[e._Widget,e._Container,e._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 d=this.domNode;if(a){b.marginBox(d,a);if(a.t)d.style.top=a.t+"px";if(a.l)d.style.left=a.l+"px"}var f=c||{};b.mixin(f,a||{});if(!("h"in f)||!("w"in f))f=b.mixin(b.marginBox(d),f);var e=b.getComputedStyle(d),h=b._getMarginExtents(d,e),g=b._getBorderExtents(d,e),f=this._borderBox={w:f.w-(h.w+g.w),h:f.h-(h.h+g.h)},h=b._getPadExtents(d,e);this._contentBox={l:b._toPixelValue(d,e.paddingLeft),t:b._toPixelValue(d,e.paddingTop),
w:f.w-h.w,h:f.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)}});e.layout.marginBox2contentBox=function(a,c){var d=b.getComputedStyle(a),f=b._getMarginExtents(a,
d),e=b._getPadBorderExtents(a,d);return{l:b._toPixelValue(a,d.paddingLeft),t:b._toPixelValue(a,d.paddingTop),w:c.w-(f.w+e.w),h:c.h-(f.h+e.h)}};(function(){var a=function(a,d){var f=a.resize?a.resize(d):b.marginBox(a.domNode,d);f?b.mixin(a,f):(b.mixin(a,b.marginBox(a.domNode)),b.mixin(a,d))};e.layout.layoutChildren=function(c,d,f,e,h){d=b.mixin({},d);b.addClass(c,"dijitLayoutContainer");f=b.filter(f,function(a){return a.region!="center"&&a.layoutAlign!="client"}).concat(b.filter(f,function(a){return a.region==
"center"||a.layoutAlign=="client"}));b.forEach(f,function(c){var f=c.domNode,l=c.region||c.layoutAlign,n=f.style;n.left=d.l+"px";n.top=d.t+"px";n.position="absolute";b.addClass(f,"dijitAlign"+(l.substring(0,1).toUpperCase()+l.substring(1)));f={};e&&e==c.id&&(f[c.region=="top"||c.region=="bottom"?"h":"w"]=h);l=="top"||l=="bottom"?(f.w=d.w,a(c,f),d.h-=c.h,l=="top"?d.t+=c.h:n.top=d.t+d.h+"px"):l=="left"||l=="right"?(f.h=d.h,a(c,f),d.w-=c.w,l=="left"?d.l+=c.w:n.left=d.l+d.w+"px"):(l=="client"||l=="center")&&
a(c,d)})}})();return e.layout._LayoutWidget});
define("dijit/layout/_ContentPaneResizeMixin",["dojo","dijit","dijit/_Contained","dijit/layout/_LayoutWidget"],function(b,e){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=e._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")}),d=b.filter(c.map(e.byNode),function(a){return a&&
a.domNode&&a.resize});a.length==c.length&&d.length==1?this._singleChild=d[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 d=this.containerNode;
if(d===this.domNode){var f=c||{};b.mixin(f,a||{});if(!("h"in f)||!("w"in f))f=b.mixin(b.marginBox(d),f);this._contentBox=e.layout.marginBox2contentBox(d,f)}else this._contentBox=b.contentBox(d);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 e.layout._ContentPaneResizeMixin});
define("dojo/html",["dojo","dojo/parser"],function(b){b.getObject("html",!0,b);(function(){var e=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 d=c.length,f=0;f<c.length;f=d==c.length?f+1:0)b.place(c[f],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:"",e++].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 d=this.onContentError(c);try{a.innerHTML=d}catch(f){console.error("Fatal "+this.declaredClass+".setContent could not change content due to "+f.message,f)}}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={},d;for(d in a)d in b||(this[d]=a[d])},_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(d){this._onError("Content",d,"Error parsing in _ContentSetter#"+this.id)}},_onError:function(a,c,d){a=this["on"+a+"Error"].call(this,c);d?console.error(d,c):a&&b.html._setNodeContent(this.node,a,!0)}});b.html.set=function(a,c,d){void 0==c&&(console.warn("dojo.html.set: no cont argument provided, using empty string"),c="");return d?(new b.html._ContentSetter(b.mixin(d,
{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,e){b.declare("dijit.layout.ContentPane",[e._Widget,e.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(e._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 d=b.doc.createDocumentFragment(),c=b.byId(c);c.firstChild;)d.appendChild(c.firstChild);a=b.delegate(a,{content:d})}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")||e.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 d=this._xhrDfd=(this.ioMethod||b.xhrGet)(c);d.addCallback(function(b){try{a._isDownloaded=!0,a._setContent(b,!1),a.onDownloadEnd()}catch(c){a._onError("Content",c)}delete a._xhrDfd;return b});d.addErrback(function(b){d.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 d=this._contentSetter;if(!(d&&d instanceof b.html._ContentSetter))d=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 f=b.mixin({cleanContent:this.cleanContent,extractContent:this.extractContent,parseContent:this.parseOnLoad,parserScope:this.parserScope,startup:!1,dir:this.dir,lang:this.lang},this._contentSetterParams||{});d.set(b.isObject(a)&&a.domNode?a.domNode:a,f);delete this._contentSetterParams;this.doLayout&&this._checkIfSingleChild();c||(this._started&&(this._startChildren(),this._scheduleLayout()),this._onLoadHandler(a))},
_onError:function(a,b,d){this.onLoadDeferred.errback(b);a=this["on"+a+"Error"].call(this,b);d?console.error(d,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 e.layout.ContentPane});
define("dijit/form/_FormMixin",["dojo","dijit","dojo/window"],function(b,e){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 d=c.disabled||!c.validate||c.validate();!d&&!a&&(b.window.scrollIntoView(c.containerNode||c.domNode),c.focus(),a=!0);return d}),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 d in c)if(c.hasOwnProperty(d)){var f=c[d],e=b.getObject(d,!1,a);e!==void 0&&(b.isArray(e)||(e=[e]),typeof f[0].checked=="boolean"?b.forEach(f,function(a){a.set("value",b.indexOf(e,a.value)!=-1)}):f[0].multiple?f[0].set("value",e):b.forEach(f,function(a,b){a.set("value",
e[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 d=c.name;if(d&&!c.disabled){var f=c.get("value");typeof c.checked=="boolean"?/Radio/.test(c.declaredClass)?f!==!1?b.setObject(d,f,a):(f=b.getObject(d,!1,a),f===void 0&&b.setObject(d,null,a)):(c=b.getObject(d,!1,a),c||(c=[],b.setObject(d,c,a)),f!==!1&&c.push(f)):
(c=b.getObject(d,!1,a),typeof c!="undefined"?b.isArray(c)?c.push(f):b.setObject(d,[c,f],a):b.setObject(d,f,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 d=this._childConnections=[],f=this._childWatches=[];b.forEach(b.filter(this._descendants,function(a){return a.validate}),function(a){b.forEach(["state","disabled"],function(b){f.push(a.watch(b,function(){c.set("state",c._getState())}))})});var e=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){d.push(c.connect(a,"onChange",e));f.push(a.watch("disabled",e))})},startup:function(){this.inherited(arguments);this.connectChildren(!0);this.watch("state",function(a,b,d){this.onValidStateChange(d=="")})},destroy:function(){this.disconnectChildren();this.inherited(arguments)}});
return e.form._FormMixin});
define("dijit/_DialogMixin",["dojo","dijit","dijit/_Widget"],function(b,e){b.declare("dijit._DialogMixin",null,{attributeMap:e._Widget.prototype.attributeMap,execute:function(){},onCancel:function(){},onExecute:function(){},_onSubmit:function(){this.onExecute();this.execute(this.get("value"))},_getFocusItems:function(){var a=e._getTabNavigable(this.containerNode);this._firstFocusItem=a.lowest||a.first||this.closeButtonNode||this.domNode;this._lastFocusItem=a.last||a.highest||this._firstFocusItem}});
return e._DialogMixin});
define("dijit/TooltipDialog","dojo,dijit,text!dijit/templates/TooltipDialog.html,dijit/layout/ContentPane,dijit/_Templated,dijit/form/_FormMixin,dijit/_DialogMixin".split(","),function(b,e){b.declare("dijit.TooltipDialog",[e.layout.ContentPane,e._Templated,e.form._FormMixin,e._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,d){a="dijitTooltipAB"+(d.charAt(1)=="L"?"Left":"Right")+" dijitTooltip"+(d.charAt(0)=="T"?"Below":"Above");b.replaceClass(this.domNode,a,this._currentOrientClass||"");this._currentOrientClass=a},focus:function(){this._getFocusItems(this.containerNode);e.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,d=b.keys;a.charOrCode===d.TAB&&this._getFocusItems(this.containerNode);var f=this._firstFocusItem==this._lastFocusItem;a.charOrCode==d.ESCAPE?(setTimeout(b.hitch(this,"onCancel"),0),b.stopEvent(a)):c==this._firstFocusItem&&a.shiftKey&&a.charOrCode===d.TAB?(f||e.focus(this._lastFocusItem),b.stopEvent(a)):c==this._lastFocusItem&&a.charOrCode===d.TAB&&!a.shiftKey?(f||e.focus(this._firstFocusItem),b.stopEvent(a)):a.charOrCode===d.TAB&&
a.stopPropagation()}});return e.TooltipDialog});
define("orion/commands","i18n!orion/nls/messages,require,dojo,dijit,orion/uiUtils,orion/PageUtil,orion/explorers/navigationUtils,dijit/Menu,dijit/form/DropDownButton,dijit/MenuItem,dijit/PopupMenuItem,dijit/MenuSeparator,dijit/Tooltip,dijit/TooltipDialog".split(","),function(b,e,a,c,d,f,j){function h(b,c,d){var f=function(){d&&a.addClass(this,d)},e=function(){d&&a.removeClass(this,d)};a.connect(b,"onmouseover",b,f);a.connect(c,"onfocus",b,f);a.connect(b,"onmouseout",b,e);a.connect(c,"onblur",b,e)}
function g(a,b,c,d,f){this.commandService=a;this.handler=b;this.items=c;this.userData=d;this.command=f;if(f.parameters)this.parameters=f.parameters.makeCopy();this.id=f.id}function k(a){this._commandList={};this._contributionsByScopeId={};this._activeBindings={};this._urlBindings={};this._init(a);this._parameterCollector=null;this.showMenuIcons=!1}function l(b,c,d){a.addClass(c,"commandImage");var f;b.imageClass?(f=a.create("span",{},c,"last"),a.addClass(f,b.spriteClass),a.addClass(f,b.imageClass)):
(f=new Image,f.alt=b.name,f.name=d,f.id=d,f.src=b.image,a.place(f,c,"last"));return f}function n(a){this._init(a)}function m(b,c,d,f,e,g,j){this.keyCode=typeof b==="string"?b.toUpperCase().charCodeAt(0):b;this.mod1=c!==void 0&&c!==null?c:!1;this.mod2=d!==void 0&&d!==null?d:!1;this.mod3=f!==void 0&&f!==null?f:!1;this.mod4=e!==void 0&&e!==null?e:!1;typeof g==="string"?(this.domScope=a.byId(g),this.scopeName=j||g):(this.domScope=g,this.scopeName=j||g?g.id:null)}function o(a,b){this.token=a;this.parameterName=
b}function p(a,b,c,d,f){this.name=a;this.type=b;this.label=c;this.value=d;this.lines=f||1}function q(a,b,c){this._storeParameters(a);this._hasOptionalParameters=b&&b.hasOptionalParameters;this._options=b;this.optionsRequested=!1;this.getParameters=c;this.clientCollect=b&&b.clientCollect}var r=window.navigator.platform.indexOf("Mac")!==-1;g.prototype={collectsParameters:function(){return this.commandService&&this.commandService.collectsParameters()},makeCopy:function(a){var b=new g(this.commandService,
this.handler,this.items,this.userData,this.command);b.domNode=this.domNode;b.domParent=this.domParent;if(a)b.parameters=a.makeCopy();else if(this.parameters)b.parameters=this.parameters.makeCopy();return b}};g.prototype.constructor=g;var s=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},_setLabelAttr:function(b){typeof b==="string"?this.containerNode.textContent=b:b&&(a.empty(this.containerNode),this.containerNode.appendChild(b.cloneNode(!0)))},setLink:function(b,c){var b=f.validateURLScheme(b),d=a.create("a",{className:"commandMenuItemAnchor",href:b});d.textContent=c;a.place(d,this.containerNode,"only");this._anchorLocation=
b},_onClick:function(a){this.hasLink||this.inherited(arguments)}}),u=a.declare(c.form.DropDownButton,{_setLabelAttr:function(b){if(typeof b==="string"){if(this._set("label",b),this.containerNode.textContent=b,this.showLabel===!1&&!this.params.title)this.titleNode.title=a.trim(this.containerNode.innerText||this.containerNode.textContent||"")}else b&&(a.empty(this.containerNode),this.containerNode.appendChild(b.cloneNode(!0)))}}),t=a.declare(c.PopupMenuItem,{_setLabelAttr:function(b){typeof b==="string"?
this.containerNode.textContent=b:(a.empty(this.containerNode),this.containerNode.appendChild(b.cloneNode(!0)))}}),v=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()}))},_setLabelAttr:function(b){this.label=null;typeof b==="string"?this.domNode.textContent=b:(a.empty(this.domNode),this.domNode.appendChild(b.cloneNode(!0)))}});k.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(function(a){if(r){if(a.metaKey&&
!a.altKey)return!a.shiftKey&&!a.ctrlKey&&(a.keyCode===65||a.keyCode===67||a.keyCode===86||a.keyCode===88||a.keyCode===90)?!0:!1}else{if(a.ctrlKey&&!a.altKey)return!a.shiftKey&&(a.keyCode===65||a.keyCode===67||a.keyCode===86||a.keyCode===88||a.keyCode===90)?!0:!1;if(a.altKey&&!a.ctrlKey)return!1}if(a["char"])return a["char"].length>0;else if(a.charCode||a.keyCode)switch(a=a.charCode||a.keyCode,a){case 8:case 9:case 13:case 46:return!0;default:return a>=32&&a<112||a>123}return!1}(a)){if(a.target.contentEditable===
"true")return;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 d in this._activeBindings)if(this._activeBindings[d]&&
this._activeBindings[d].keyBinding&&this._activeBindings[d].command&&this._activeBindings[d].keyBinding.match(b)){var f=this._activeBindings[d],e=f.invocation;if(e)if(f=f.command,f.hrefCallback){c(b);b=f.hrefCallback.call(e.handler||window,e);b.then?b.then(function(a){window.open(a)}):window.open(b);break}else if(f.callback){c(b);window.setTimeout(a.hitch(this,function(){this._invoke(e)}),0);break}}},processURL:function(b){for(var c in this._urlBindings)if(this._urlBindings[c]&&this._urlBindings[c].urlBinding&&
this._urlBindings[c].command){var d=this._urlBindings[c].urlBinding.match(b);if(d){var f=this._urlBindings[c],e=f.command,g=f.invocation;if(g&&g.parameters&&e.callback){g.parameters.setValue(d.parameterName,d.parameterValue);window.setTimeout(a.hitch(this,function(){this._invoke(g)}),0);break}}}},findCommand:function(a){return this._commandList[a]},runCommand:function(b,c,d,f){if(c){var e=this._commandList[b];e&&(e.visibleWhen?e.visibleWhen(c):1)&&e.callback&&window.setTimeout(a.hitch(this,function(){this._invoke(new g(this,
d,c,null,e),f)}),0)}else{var j=this._urlBindings[b];j&&j.command&&j.command.callback&&window.setTimeout(a.hitch(this,function(){this._invoke(j.invocation,f)}),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,b){return this._collectAndInvoke(a.makeCopy(b),!1)},_collectAndInvoke:function(b,d){if(b)if(this._parameterCollector&&b.parameters&&b.parameters.hasParameters()&&(d||b.parameters.shouldCollectParameters())){var f=!1;b.parameters.updateParameters(b);f=this._parameterCollector.collectParameters(b);if(!f){var e=new c.TooltipDialog({onBlur:function(){c.popup.close(e)}}),g=a.create("div");a.addClass(g,"parameterPopup");var j=
window.document.activeElement,h=this._parameterCollector.getFillFunction(b,function(){c.popup.close(e);e.destroyRecursive();j&&j.focus()})(g);g.childNodes.length>0&&(e.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:e,x:g.x+g.w-8,y:g.y+8}),window.setTimeout(function(){h.focus();h.select()},0),f=!0))}f||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={},f,e,g;for(g in this._activeBindings)if((e=this._activeBindings[g])&&e.keyBinding&&e.command)e.keyBinding.scopeName?(c[e.keyBinding.scopeName]||(c[e.keyBinding.scopeName]=[]),c[e.keyBinding.scopeName].push(e)):(f=d.getUserKeyString(e.keyBinding),a.place("<span role='listitem'>"+f+" = "+e.command.name+"<br></span>",b,"last"));for(var j in c)if(c[j].length&&c[j].length>0){a.place("<h2>"+j+"</h2>",b,"last");
for(g=0;g<c[j].length;g++)e=c[j][g],f=d.getUserKeyString(e.keyBinding),a.place("<span role='listitem'>"+f+" = "+e.command.name+"<br></span>",b,"last")}},addCommand:function(a){this._commandList[a.id]=a},addCommandGroup:function(a,b,c,d,f,e){this._contributionsByScopeId[a]||(this._contributionsByScopeId[a]={});a=this._contributionsByScopeId[a];f&&(a=this._createEntryForPath(a,f));if(a[b]){if(d)a[b].title=d;if(c)a[b].position=c;a[b].emptyGroupMessage=e}else a[b]={title:d,position:c,emptyGroupMessage:e,
children:{}},a.sortedContributions=null},_createEntryForPath:function(a,b){if(b)for(var c=b.split("/"),d=0;d<c.length;d++)if(c[d].length>1)a[c[d]]||(a[c[d]]={position:0,children:{}}),a=a[c[d]].children;return a},registerSelectionService:function(a,b){this._contributionsByScopeId[a]||(this._contributionsByScopeId[a]={});this._contributionsByScopeId[a].localSelectionService=b},registerCommandContribution:function(a,b,c,d,f,e,g){this._contributionsByScopeId[a]||(this._contributionsByScopeId[a]={});a=
this._contributionsByScopeId[a];d&&(a=this._createEntryForPath(a,d));a[b]={position:c};e&&(c=this._commandList[b])&&(this._activeBindings[b]={command:c,keyBinding:e,bindingOnly:f});g&&(c=this._commandList[b])&&(this._urlBindings[b]={command:c,urlBinding:g,bindingOnly:f});a.sortedContributions=null},_isLastChildSeparator:function(b,d){if(d==="tool"||d==="button")return b.childNodes.length>0&&a.hasClass(b.childNodes[b.childNodes.length-1],"commandSeparator");if(d==="menu"){var f=b.getChildren();return f.length>
0&&f[f.length-1]instanceof c.MenuSeparator}return!1},renderCommands:function(b,c,d,f,e,g,j){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 h=this._contributionsByScopeId[b];if(!d&&h){var d=h.localSelectionService||this._defaultSelectionService,k=this;d&&d.getSelections(function(a){k.renderCommands(b,c,a,f,e,g)})}else h&&(this._render(this._contributionsByScopeId[b],c,d,f,e,g,j),e==="tool"||e==="button"?this._isLastChildSeparator(c,
e)&&c.removeChild(c.childNodes[c.childNodes.length-1]):e==="menu"&&this._isLastChildSeparator(c,e)&&(d=c.getChildren()[c.getChildren().length-1],c.removeChild(d),d.destroy()))},destroy:function(b){typeof b==="string"&&(b=a.byId(b));if(!b)throw"no parent";var d=c.findWidgets(b);a.forEach(d,function(a){a.destroyRecursive()});a.empty(b)},_render:function(d,f,e,k,l,n,m){var o=d.sortedContributions;if(!o){var o=[],s=!1,p;for(p in d)if(!d.hasOwnProperty||d.hasOwnProperty(p)){var r=d[p];if(r&&typeof r.position===
"number")r.id=p,o.push(r),s=!0}if(s)o.sort(function(a,b){return a.position-b.position}),d.sortedContributions=o}for(d=0;d<o.length;d++){var q,v;if(o[d].children&&Object.getOwnPropertyNames(o[d].children).length>0){p=o[d];var P,s=o[d].children,K=this;if(l==="tool"||l==="button")if(p.title){var F=new c.Menu({style:"display: none;"});q=new u({label:p.title==="*"?b.Actions:p.title,showLabel:p.title!=="*",style:"visibility: hidden;",dropDown:F});a.addClass(q.domNode,"commandMenu");m&&j.generateNavGrid(m,
q.domNode,q);r=f;f.nodeName.toLowerCase()==="ul"?r=a.create("li",{},f):a.addClass(q.domNode,"commandMargins");a.removeAttr(q.titleNode,"title");a.destroy(q.valueNode);h(q.domNode,q.focusNode);a.place(q.domNode,r,"last");F.eclipseScopeId=f.eclipseScopeId||f.id;window.setTimeout(a.hitch({contributions:s,emptyGroupMessage:p.emptyGroupMessage},function(){if(!F._destroyed){K._render(this.contributions,F,e,k,"menu",n,m);P=F.getChildren();if(K._isLastChildSeparator(F,"menu")){var b=P[P.length-1];F.removeChild(b);
b.destroy();P=F.getChildren()}P.length===0?this.emptyGroupMessage?(a.connect(q.focusNode,"onclick",this,function(){var a=document.createElement("p");a.textContent=this.emptyGroupMessage;var b=new c.TooltipDialog({content:a,onMouseLeave:function(){c.popup.close(b);b.destroyRecursive()}});c.popup.open({popup:b,around:q.domNode});window.setTimeout(function(){c.popup.close(b);b.destroyRecursive()},15E3)}),a.style(q.domNode,"visibility","visible")):(m&&j.removeNavGrid(m,q.domNode),q.destroyRecursive()):
a.style(q.domNode,"visibility","visible")}}),0)}else{var N;f.childNodes.length>0&&!this._isLastChildSeparator(f,l)&&(N=this.generateSeparatorImage(f));K._render(s,f,e,k,l,n,m);f.childNodes.length>0&&f.childNodes[f.childNodes.length-1]!==N&&(N=this.generateSeparatorImage(f))}else if(p.title)r=new c.Menu,p=new t({label:p.title,popup:r}),f.addChild(p),K._render(s,r,e,k,l,n,m),r.getChildren().length===0&&(p.set("label","removeme"),f.removeChild(p),p.destroyRecursive());else{var H;f.getChildren().length>
0&&!this._isLastChildSeparator(f,l)&&(H=new c.MenuSeparator,f.addChild(H));K._render(s,f,e,k,l,n,m);s=f.getChildren();s[s.length-1]!==H&&(H=new c.MenuSeparator,f.addChild(H))}}else{p=(s=this._commandList[o[d].id])?!0:!1;var E=null,E=null;if(s){v=new g(this,k,e,n,s);v.domParent=f;r=p&&(s.visibleWhen?s.visibleWhen(e):!0);if(this._activeBindings[s.id]&&this._activeBindings[s.id].keyBinding)E=this._activeBindings[s.id],E.invocation=r?v:null,E.bindingOnly&&(p=!1);if(this._urlBindings[s.id]&&this._urlBindings[s.id].urlBinding)E=
this._urlBindings[s.id],E.invocation=r?v:null,E.bindingOnly&&(p=!1);p=p&&r}if(p)if(s.choiceCallback)if(p=new c.Menu({style:"display: none;"}),l==="tool"||l==="button"){q=new u({label:s.name,dropDown:p,postCreate:function(){a.connect(this._buttonNode,"mousedown",this,function(){this.eclipseCommand.populateChoicesMenu(this.eclipseChoices,e,k,n)});u.prototype.postCreate.apply(this,Array.prototype.slice.call(arguments))}});a.addClass(q.domNode,"commandMenu");a.removeAttr(q.titleNode,"title");a.destroy(q.valueNode);
if(s.image)a.addClass(q.iconNode,"commandImage"),q.iconNode.src=s.image;a.place(q.domNode,f,"last");q.eclipseCommand=s;q.eclipseChoices=p}else{if(l==="menu")r=new t({label:s.name,popup:p}),f.addChild(r),r.eclipseCommand=s,r.eclipseChoices=p,a.connect(f,"_openPopup",r,function(){this.eclipseCommand.populateChoicesMenu(this.eclipseChoices,e,k,n)})}else l==="tool"?(p="tool"+s.id+d,s._addTool(f,p,v,m)):l==="button"?(p="button"+s.id+d,s._addButton(f,p,v,m)):l==="menu"&&s._addMenuItem(f,v,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}};k.prototype.constructor=k;n.prototype={_init:function(a){this.id=a.id;this.name=a.name;a.tooltip||a.name?(this.tooltip=document.createElement("span"),this.tooltip.textContent=a.tooltip||a.name):this.tooltip=null;this.callback=a.callback;this.hrefCallback=a.hrefCallback;this.choiceCallback=a.choiceCallback;
this.image=a.image||e.toUrl("images/none.png");this.imageClass=a.imageClass;this.spriteClass=a.spriteClass||"commandSprite";this.visibleWhen=a.visibleWhen;this.parameters=a.parameters},_addTool:function(b,c,d,f){d.handler=d.handler||this;var e,g;if(this.hrefCallback){if(e=this._makeLink(d),!e)return}else e=a.create("span",{tabindex:f?"-1":"0",role:"button"}),this.hasImage()?(g=l(this,e,c),this._addAccessibleLabel(e)):(c=window.document.createTextNode(this.name),a.place(c,e,"last"),a.addClass(e,"commandMissingImageButton commandButton")),
this._hookCallback(e,d),h(e,e,g?"commandImageOver":"commandButtonOver");d.domNode=e;d.domParent=b;this.tooltip&&new v({connectId:[e],label:this.tooltip,position:["above","left","right","below"],commandParent:b,commandService:d.commandService});b.nodeName.toLowerCase()==="ul"?b=a.create("li",{},b):a.addClass(e,"commandMargins");a.place(e,b,"last");j.generateNavGrid(f,d.domNode)},_addButton:function(b,c,d,f){d.handler=d.handler||this;var e;if(this.hrefCallback){if(e=this._makeLink(d),!e)return}else{e=
a.create("span",{tabindex:"0",role:"button"});this._hookCallback(e,d);var g;this.name?(a.place(window.document.createTextNode(this.name),e,"last"),a.addClass(e,"commandButton"),g="commandButtonOver"):(l(this,e,c),g="commandImageOver",this._addAccessibleLabel(e));h(e,e,g)}e.id=c;this.tooltip&&new v({connectId:[e],label:this.tooltip,position:["above","left","right","below"],commandParent:b,commandService:d.commandService});d.domParent=b;d.domNode=e;b.nodeName.toLowerCase()==="ul"?b=a.create("li",{},
b):a.addClass(e,"commandMargins");a.place(e,b,"last");j.generateNavGrid(f,d.domNode)},_addMenuItem:function(b,c,d){var f=c.commandService.showMenuIcons;c.domParent=b.domNode;var e=new s({labelType:this.hrefCallback?"html":"text",label:this.name,iconClass:f?this.imageClass:null,hasLink:!!this.hrefCallback});this.tooltip&&new v({connectId:[e.domNode],label:this.tooltip,commandParent:b,commandService:c.commandService});if(this.hrefCallback){var g=this.hrefCallback.call(c.handler,c);if(g)if(g.then)g.then(a.hitch(this,
function(a){e.setLink(a,this.name)}));else if(g)e.setLink(g,this.name);else return}else if(this.callback)e.onClick=a.hitch(this,function(){c.commandService._invoke(c)});e.eclipseCommand=this;b.addChild(e);if(f)if(this.imageClass)a.addClass(e.iconNode,this.spriteClass);else if(this.image)a.addClass(e.iconNode,"commandMenuItem"),e.iconNode.src=this.image;c.domNode=e.domNode;j.generateNavGrid(d,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,d,f,e){b.focusedChild=
null;a.forEach(b.getChildren(),function(a){b.removeChild(a);a.destroy()});for(var f=this.getChoices(d,f,e),e=this.showMenuIcons,g=0;g<f.length;g++){var j=f[g],h;if(j.name){if(h=new c.MenuItem({label:j.name,iconClass:e?j.imageClass:null,onClick:this.makeChoiceCallback(j,d)}),e)if(j.imageClass)a.addClass(h.iconNode,j.spriteClass||"commandSprite");else if(j.image)a.addClass(h.iconNode,"commandImage"),h.iconNode.src=j.image}else h=new c.MenuSeparator;b.addChild(h)}},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!==e.toUrl("images/none.png")}};n.prototype.constructor=n;m.prototype={match:function(a){if(this.keyCode===a.keyCode){if(this.mod1!==(r?a.metaKey:a.ctrlKey))return!1;if(this.mod2!==a.shiftKey)return!1;if(this.mod3!==a.altKey)return!1;if(r&&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;o.prototype={match:function(a){a=f.matchResourceParameters(a);return typeof a[this.token]!=="undefined"?(this.parameterValue=a[this.token],this):null}};o.prototype.constructor=o;p.prototype={optionsRequested:function(){return this.optionsRequested}};
p.prototype.constructor=p;q.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 p(b.name,b.type,b.label,b.value,b.lines);a.push(b)});var b=new q(a,this._options,this.getParameters);b.clientCollect=this.clientCollect;return b},hasOptionalParameters:function(){return this._hasOptionalParameters}};
q.prototype.constructor=q;return{CommandService:k,CommandKeyBinding:m,Command:n,CommandInvocation:g,CommandMenuItem:s,URLBinding:o,ParametersDescription:q,CommandParameter:p,CommandTooltip:v}});define("orion/navigate/nls/messages",["orion/i18n!orion/navigate/nls/messages"],function(b){var e={root:!0};Object.keys(b).forEach(function(a){typeof e[a]==="undefined"&&(e[a]=b[a])});return e});
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","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","Compare with each other":"Compare with each other","Compare the selected 2 files with each other":"Compare the selected 2 files with each other","Compare with...":"Compare with...","Compare the selected folder with a specified folder":"Compare the selected folder with a specified folder",
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","Name:":"Name:","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 ${0}":"Importing from ${0}","SFTP to...":"SFTP to...","Copy files and folders to a specified SFTP location":"Copy files and folders to a specified SFTP location","Exporting from ${0}":"Exporting from ${0}","Pasting ${0}":"Pasting ${0}",
"Copy to":"Copy to","Move to":"Move to","Copying ${0}":"Copying ${0}","Moving ${0}":"Moving ${0}","Renaming ${0}":"Renaming ${0}","Deleting ${0}":"Deleting ${0}","Creating ${0}":"Creating ${0}","Linking to ${0}":"Linking to ${0}","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","Orion Content":"Orion Content"," is not supported in this file system":" is not supported in this file system","Create new content":"Create new content",Favorites:"Favorites",
"Import from HTTP...":"Import from HTTP...","File URL:":"File URL:","Copy a file from a URL and optionally unzip it":"Copy a file from a URL and optionally unzip it","Unzip *.zip files:":"Unzip *.zip files:"});define("orion/search/nls/messages",["orion/i18n!orion/search/nls/messages"],function(b){var e={root:!0};Object.keys(b).forEach(function(a){typeof e[a]==="undefined"&&(e[a]=b[a])});return e});
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 ${0}":"Search ${0}","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 ${0}":"No matches found for ${0}","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/commands"],function(b,e,a,c){var d=d||{};d.searchUtils=d.searchUtils||{};d.searchUtils.parseQueryStr=function(a,b){var c=a.indexOf("?"),e=a.indexOf("q=");c<e&&e>0&&(a=a.substring(c+1));c=a.indexOf("regEx&");c===0&&(a=a.substring(c+6));var e=a.split("&"),k={queryStr:a,start:0,rows:10,sort:"Path asc",replace:null};k.useRegEx=c===0;for(var l=0;l<e.length;l++){var n=e[l].indexOf("q="),m=e[l].indexOf("replace=");if(n>=0)c===0?d.searchUtils.parseLocationAndSearchStrRegEx(e[l].substring(n+
2),k,b):d.searchUtils.parseLocationAndSearchStr(e[l].substring(n+2),k,b);else if(m>=0)k.replace=e[l].substring(m+8);else if(n=e[l].split("="),n.length===2)if(n[0]==="rows")k.rows=parseInt(n[1]);else if(n[0]==="start")k.start=parseInt(n[1]);else if(n[0]==="sort")k.sort=n[1]}return k};d.searchUtils.copyQueryParams=function(a,b){return{sort:a.sort,useRegEx:a.useRegEx,rows:a.rows,start:a.start,searchStr:a.searchStr,location:a.location,replace:b?a.replace:null}};d.searchUtils.generateSearchHref=function(a){return b.toUrl("search/search.html")+
"#"+d.searchUtils.generateSearchQuery(a)};d.searchUtils.generateSearchQuery=function(a){var b="Path asc",c=40,d=0,e="",l="",n="",m="";if(a){a.useRegEx&&(m="regEx&");if(a.sort)b=a.sort;if(a.rows)c=a.rows;if(a.start)d=a.start;if(a.searchStr)e=a.searchStr;if(a.location)l=a.location,l.length>0&&l[l.length-1]!=="*"&&(l+="*"),l!==""&&(l="+Location:"+l);a.replace!==null&&a.replace!==void 0&&(n="&replace="+a.replace)}return"?"+m+"sort="+b+"&rows="+c+"&start="+d+"&q="+e+l+n};d.searchUtils.parseLocationAndSearchStr=
function(a,b,c){var e=a.indexOf("+Location:")>-1;b.location="";b.searchStr=a;if(e&&(a=a.split("+Location:"),a.length===2))e=a[1],e.length>0&&e[e.length-1]==="*"&&(e=e.substring(0,e.length-1)),b.location=e,b.searchStr=a[0];b.searchStrTitle=b.searchStr.split("\\").join("");if(b.searchStr.indexOf(" ")>=0)b.searchStrWithWhiteSpace='"'+b.searchStr+'"';b.inFileQuery=d.searchUtils.generateInFileQuery(b.searchStr,c)};d.searchUtils.parseLocationAndSearchStrRegEx=function(a,b,c){var e=a.indexOf("+Location:")>
-1;b.location="";b.searchStr=a;if(e&&(a=a.split("+Location:"),a.length===2))e=a[1],e.length>0&&e[e.length-1]==="*"&&(e=e.substring(0,e.length-1)),b.location=e,b.searchStr=a[0];b.searchStrTitle=b.searchStr;b.inFileQuery=d.searchUtils.generateInFileQueryRegEx(b.searchStr,c)};d.searchUtils.generateInFileQuery=function(b,c){var d={};d.originalSearchStr=b;var e=b.indexOf("*")>-1,k=b.indexOf("?")>-1;e&&(b=b.split("*").join(".*"));k&&(b=b.split("?").join("."));if(!e&&!k)d.searchStr=b.split("\\").join("").toLowerCase(),
d.wildCard=!1;else if(d.searchStr=b.toLowerCase(),e="",c&&(e="^"),k=a.parse("/"+e+d.searchStr+"/"))e=k.pattern,k=k.flags,k+=k.indexOf("i")===-1?"i":"",d.regExp={pattern:e,flags:k},d.wildCard=!0;d.searchStrLength=d.searchStr.length;return d};d.searchUtils.generateInFileQueryRegEx=function(b,c){var d={};d.originalSearchStr=b;d.searchStr=b;var e="";c&&(e="^");var k=a.parse("/"+e+d.searchStr+"/");if(k)e=k.pattern,k=k.flags,k+=k.indexOf("i")===-1?"i":"",d.regExp={pattern:e,flags:k},d.wildCard=!0;d.searchStrLength=
d.searchStr.length;return d};d.searchUtils.generateFindURLBinding=function(a,b,c){var d=",find=";a.wildCard&&(d+="@@useRegEx@@true@@");d+=encodeURIComponent(a.searchStr);typeof c==="string"&&(d=d+"@@replaceWith@@"+encodeURIComponent(c));typeof b==="number"&&(d=d+"@@atLine@@"+b);return d};d.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],e=!1;d.indexOf("@@useRegEx@@true@@")===
0&&(e=!0,d=d.split("@@useRegEx@@true@@")[1]);c.length>1&&(a=c[1]);return{searchStr:d,replaceStr:a,lineNumber:b,useRegExp:e}};d.searchUtils.replaceRegEx=function(a,b,c){return a.replace(RegExp(b.pattern,b.flags),c)};d.searchUtils.replaceStringLiteral=function(b,c,e){c=a.parse("/"+c+"/gim");return d.searchUtils.replaceRegEx(b,c,e)};d.searchUtils.searchOnelineLiteral=function(a,b,c){var d;d=0;for(var e=!1,l=[];;)if(d=b.indexOf(a.searchStr,d),d<0)break;else{l.push({startIndex:d});e=!0;if(c)break;d+=a.searchStrLength}return e?
l:null};d.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}};d.searchUtils.searchOnelineRegEx=function(a,b,c){for(var e=0,k=!1,l=[];;)if(e=d.searchUtils.findRegExp(b,a.regExp.pattern,a.regExp.flags,e)){l.push(e);k=!0;if(c)break;e=e.startIndex+e.length}else break;return k?l:null};d.searchUtils.generateNewContents=function(a,b,
c,e,k){if(c&&a){var l;l=b.length>0?!0:!1;for(var n=0;n<a.length;n++){for(var m=a[n],o=!1,p=!1,q=[],r,s=0,u=0;u<c.children.length;u++)if(c.children[u].lineNumber-1===n){s=u;for(o=0;o<c.children[u].matches.length;o++)c.children[u+o].checked!==!1&&q.push(o);p=q.length>0;r=c.children[u].matches;o=!0;break}if(o){if(p){q=d.searchUtils.replaceCheckedMatches(m,e,r,q,k);m=q.replacedStr;for(o=0;o<c.children[s].matches.length;o++)c.children[s+o].newMatches=q.newMatches}else for(o=0;o<c.children[s].matches.length;o++)c.children[s+
o].newMatches=c.children[s+o].matches;l?b[n]=m:b.push(m)}else l||b.push(m)}}};d.searchUtils.generateMatchContext=function(a,b,c){var d=[],e=a*2+1,l;b.length<=e?(l=0,a=b.length-1):(l=c-a,l<0?(l=0,a=l+e-1):(a=c+a,a>b.length-1&&(a=b.length-1,l=a-e+1)));for(e=l;e<=a;e++)d.push({context:b[e],current:e===c});return d};d.searchUtils.splitFile=function(a){for(var b=0,c=0,d=0,e=0,l=[];;){b!==-1&&b<=d&&(b=a.indexOf("\r",d));c!==-1&&c<=d&&(c=a.indexOf("\n",d));if(c===-1&&b===-1){l.push(a.substring(e));break}var n=
1;b!==-1&&c!==-1?b+1===c?(n=2,d=c+1):d=(b<c?b:c)+1:d=b!==-1?b+1:c+1;l.push(a.substring(e,d-n));e=d}return l};d.searchUtils.searchWithinFile=function(a,b,c,e,k,l){c=d.searchUtils.splitFile(c);if(k)b.contents=c;if(b){b.children=[];for(var n=e=0;n<c.length;n++){var m=c[n];if(m&&m.length>0){var o=l?m:m.toLowerCase();if(o=a.wildCard?d.searchUtils.searchOnelineRegEx(a,o):d.searchUtils.searchOnelineLiteral(a,o)){var p=n+1;if(k)for(var q=0;q<o.length;q++){var r=q+1,r={parent:b,checked:b.checked,type:"detail",
matches:o,lineNumber:p,matchNumber:r,name:m,location:b.location+"-"+p+"-"+r};b.children.push(r)}else r={parent:b,context:d.searchUtils.generateMatchContext(2,c,n),checked:b.checked,type:"detail",matches:o,lineNumber:p,name:m,location:b.location+"-"+p},b.children.push(r);e+=o.length}}}b.totalMatches=e}};d.searchUtils.replaceCheckedMatches=function(a,b,c,d,e){for(var l=0,n="",m=[],o=0;o<c.length;o++){l!==c[o].startIndex&&(n+=a.substring(l,c[o].startIndex));if(c[o].length)e=c[o].length;for(var l=!1,
p=0;p<d.length;p++)if(d[p]===o){l=!0;break}l?(m.push({startIndex:n.length,length:b.length}),n+=b):(m.push({startIndex:n.length,length:e}),n+=a.substring(c[o].startIndex,c[o].startIndex+e));l=c[o].startIndex+e}l<a.length&&(n+=a.substring(l));return{replacedStr:n,newMatches:m}};d.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};d.searchUtils.path2FolderName=function(a,b,c){return a.substring(0,a.length-b.length-(c?0:1))};
d.searchUtils._storeRecentSearch=function(a,b){a.getService("orion.core.preference").getPreferences("/window/favorites").then(function(a){a.put("recentSearch",b)})};d.searchUtils.addRecentSearch=function(a,b,c){typeof b==="string"&&b&&a.getService("orion.core.preference").getPreferences("/window/favorites").then(function(e){var k,e=e.get("recentSearch");typeof e==="string"&&(e=JSON.parse(e));if(e){for(k in e)if(e[k].name===b)return;e.length>=20&&e.splice(19,e.length-20+1)}else e=[];e.splice(0,0,{name:b,
regEx:c});d.searchUtils._storeRecentSearch(a,e)})};d.searchUtils.populateSearchMenu=function(a,b,h,g){b.focusedChild=null;e.forEach(b.getChildren(),function(a){b.removeChild(a);a.destroy()});d.searchUtils.getSearches(a,h,function(a){if(a)for(i in a)b.addChild(new c.CommandMenuItem({label:g(a[i]),hasLink:!0}))})};d.searchUtils.getSearches=function(a,b,c){a.getService("orion.core.preference").getPreferences("/window/favorites").then(function(a){a=a.get(b);typeof a==="string"&&(a=JSON.parse(a));a&&c&&
c(a)})};d.searchUtils.getMixedSearches=function(a,b,c){a.getService("orion.core.preference").getPreferences("/window/favorites").then(function(a){var f,e=a.get("recentSearch");typeof e==="string"&&(e=JSON.parse(e));if(b)for(f in a=a.get("search"),typeof a==="string"&&(a=JSON.parse(a)),a){var n=d.searchUtils.parseQueryStr(a[f].query);e.some(function(a){return n.searchStrTitle===a.name})||e.push({name:n.searchStrTitle,label:a[f].name})}e&&c&&c(e)})};d.searchUtils.getOpenSearchPref=function(a,b){a.getService("orion.core.preference").getPreferences("/window/favorites").then(function(a){a=
a.get("openSearchPref");typeof a==="string"&&(a=JSON.parse(a));b(a?a.openInNewTab:!0)})};d.searchUtils.setOpenSearchPref=function(a,b){a.getService("orion.core.preference").getPreferences("/window/favorites").then(function(a){a.put("openSearchPref",{openInNewTab:b})})};return d.searchUtils});define("orion/crawler/nls/messages",["orion/i18n!orion/crawler/nls/messages"],function(b){var e={root:!0};Object.keys(b).forEach(function(a){typeof e[a]==="undefined"&&(e[a]=b[a])});return e});
define("orion/crawler/nls/root/messages",{"Searching file:":"Searching file:","is not supported in this file system":"is not supported in this file system","${0} files found out of ${1}":"${0} files found out of ${1}","The search term on this location will not use indexed files.":"The search term on this location will not use indexed files.","It will take longer time. Do you want to proceed?":"It will take longer time. Do you want to proceed?"});
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(e,a,c){if(!(e instanceof Array))return a(e);for(var d=[],f=0;f<e.length;f++)d.push(a(e[f]));return b.regexp.group(d.join("|"),c)};b.regexp.group=function(b,a){return"("+(a?"?:":"")+b+")"};return b.regexp});
define("dojo/cookie",["dojo","dojo/regexp"],function(b){b.cookie=function(e,a,c){var d=document.cookie;if(arguments.length==1){var f=d.match(RegExp("(?:^|; )"+b.regexp.escapeString(e)+"=([^;]*)"));return f?decodeURIComponent(f[1]):void 0}else{c=c||{};d=c.expires;if(typeof d=="number"){var j=new Date;j.setTime(j.getTime()+d*864E5);d=c.expires=j}if(d&&d.toUTCString)c.expires=d.toUTCString();a=encodeURIComponent(a);d=e+"="+a;for(f in c)d+="; "+f,j=c[f],j!==!0&&(d+="="+j);document.cookie=d}};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,e){b.declare("dijit.layout.BorderContainer",e.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 d=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);d.sort(function(a,b){for(var c=a.weight,d=b.weight,f=0;f<c.length;f++)if(c[f]!=d[f])return c[f]-d[f];return 0});var f=[];b.forEach(d,function(a){a=a.pane;f.push(a);a._splitterWidget&&f.push(a._splitterWidget)});e.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(e._Widget,{region:"",layoutPriority:0,splitter:!1,minSize:0,maxSize:Infinity});b.declare("dijit.layout._Splitter",[e._Widget,e._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",e=a[f],h=this.domNode.style,g=b.marginBox(this.child.domNode)[d?"h":"w"],k=this._computeMaxSize(),l=this.child.minSize||20,d=this.region,n=d=="top"||d=="bottom"?
"top":"left",m=parseInt(h[n],10),o=this._resize,p=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]-e,u=c*d+g,t=Math.max(Math.min(u,k),l);(o||b)&&p(t);h[n]=d+m+c*(t-u)+"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",[e._Widget,e._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 e.layout.BorderContainer});
define("orion/commonHTMLFragments",["i18n!orion/nls/messages","require"],function(b,e){function a(a){if(!a)return"";var b=document.createElement("span");b.textContent=a;return b.innerHTML}function c(a){return'<div id="'+a+'slideContainer" class="layoutBlock slideParameters slideContainer"><span id="'+a+'pageCommandParameters" class="layoutLeft parameters"></span><span id="'+a+'pageCommandDismiss" class="layoutRight parametersDismiss"></span></div>'}var d='<header id="banner" role="banner" class="headerLayout"><div id="staticBanner" class="layoutBlock topRowBanner"><a id="home" class="layoutLeft logo" href="'+
e.toUrl("navigate/table.html")+'" aria-label="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" autocomplete="off" placeholder="Search" title="Type a keyword or wild card to search in root" class="layoutLeft spacingLeft searchbox" role="search"><div id="searchOptions" class="layoutLeft" style="padding-top:1px;"></div><div id="userMenu" class="spacingLeft layoutLeft"></div></div></div><div id="titleArea" class="layoutBlock titleArea"><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="Add this page to the favorites list" class="spacingLeft layoutLeft imageSprite core-sprite-favorite_sml"></span></div></div></header>',
f='<footer id="footerContent" class="layoutBlock footerLayout" role="contentinfo"><div class="footerBlock">'+a(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">'+a(b.FAQ)+'</a> | <a href="https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Orion&version=1.0" target="_blank">'+a(b["Report a Bug"])+'</a> | <a href="http://www.eclipse.org/legal/privacy.php" target="_blank">'+a(b["Privacy Policy"])+
'</a> | <a href="http://www.eclipse.org/legal/termsofuse.php" target="_blank">'+a(b["Terms of Use"])+'</a> | <a href="http://www.eclipse.org/legal/copyright.php" target="_blank">'+a(b["Copyright Agent"])+"</a></div></footer>",j='<ul class="layoutLeft commandList pageActions" id="pageActions"></ul><ul class="layoutLeft commandList pageActions" id="selectionTools"></ul><img class="layoutRight progressPane" src="'+e.toUrl("images/none.png")+'" id="progressPane" tabindex="0" role="progressbar" aria-label="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>'+
c("mainToolbar");return{topHTMLFragment:d,bottomHTMLFragment:f,toolbarHTMLFragment:j,slideoutHTMLFragment:c}});
define("orion/parameterCollectors","i18n!orion/nls/messages,require,dojo,dijit,dijit/Menu,dijit/MenuItem,dijit/form/DropDownButton".split(","),function(b,e,a){function c(a,b){this._activeContainer=null;this._getElementsFunction=a;this._toolbarLayoutFunction=b}c.prototype={close:function(){if(this._activeElements){this._activeElements.parameterArea&&a.empty(this._activeElements.parameterArea);this._activeElements.slideContainer&&a.removeClass(this._activeElements.slideContainer,"slideContainerActive");
this._activeElements.dismissArea&&a.empty(this._activeElements.dismissArea);this._activeElements.commandNode&&a.removeClass(this._activeElements.commandNode,"activeCommand");this._toolbarLayoutFunction(this._activeElements);if(this._activeElements.onClose)this._activeElements.onClose();if(this._oldFocusNode)this._oldFocusNode.focus(),this._oldFocusNode=null}this._activeElements=null},open:function(c,f,e){typeof c==="string"&&(c=a.byId(c));if(this._activeElements&&this._activeElements.commandNode===
c)return this._activeElements.focusNode&&this._activeElements.focusNode.focus(),!0;this.close();this._activeElements=null;if((this._activeElements=this._getElementsFunction(c))&&this._activeElements.parameterArea&&this._activeElements.slideContainer){this._activeElements.onClose=e;var h=f(this._activeElements.parameterArea,this._activeElements.dismissArea);if(!h)return!1;this._activeElements.focusNode=h;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");this._toolbarLayoutFunction(this._activeElements);
if(h)this._oldFocusNode=window.document.activeElement,window.setTimeout(function(){h.focus();h.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,f){return a.hitch(this,function(e,h){var g=null,k=a.hitch(this,function(){f&&f();this.close()}),l=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)k(),a.stopEvent(b)});
c.parameters.forEach(function(b){if(b.label)a.create("label",{"class":"parameterInput","for":b.name+"parameterCollector"},e,"last").textContent=b.label;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"),l=a.hitch(this,function(b){b.keyCode===a.keys.ESCAPE&&(k(),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",l)});var n=h||e,m=function(a){a._collectAndCall(c,e);k()};if(c.parameters.hasOptionalParameters()){c.parameters.optionsRequested=!1;var o=a.create("span",{role:"button",tabindex:"0"},n,"last");a.place(window.document.createTextNode(b.More),o,"last");a.addClass(o,"dismiss");
a.connect(o,"onclick",a.hitch(this,function(){c.parameters.optionsRequested=!0;m(this)}));a.connect(o,"onkeypress",a.hitch(this,function(b){if(b.keyCode===a.keys.ENTER||b.charCode===a.keys.SPACE)c.parameters.optionsRequested=!0,m(this)}))}o=a.create("span",{role:"button",tabindex:"0"},n,"last");a.place(window.document.createTextNode(b.Submit),o,"last");a.addClass(o,"dismiss");a.connect(o,"onclick",a.hitch(this,function(){m(this)}));a.connect(o,"onkeypress",a.hitch(this,function(b){(b.keyCode===a.keys.ENTER||
b.charCode===a.keys.SPACE)&&m(this)}));n=a.create("span",{id:"closebox",role:"button",tabindex:"0"},n,"last");a.addClass(n,"imageSprite");a.addClass(n,"core-sprite-close");a.addClass(n,"dismiss");n.title=b.Close;a.connect(n,"onclick",a.hitch(this,function(){k()}));a.connect(n,"onkeypress",a.hitch(this,function(b){(b.keyCode===a.keys.ENTER||b.charCode===a.keys.SPACE)&&k()}));return g})}};c.prototype.constructor=c;return{CommandParameterCollector:c}});
define("orion/textview/keyBinding",[],function(){function b(a,b,d,f,e){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=e!==void 0&&e!==null?e:!1}var e=window.navigator.platform.indexOf("Mac")!==-1;b.prototype={match:function(a){return this.keyCode===a.keyCode?this.mod1!==(e?a.metaKey:a.ctrlKey)?!1:this.mod2!==a.shiftKey?!1:this.mod3!==a.altKey?!1:e&&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"],function(b,e){function a(a){this._init(a)}a.prototype={_init:function(a){var b=a.container;typeof b==="string"&&(b=e.byId(b));if(!b)throw"no parent container";this._container=b;e.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");e.place(document.createTextNode(this._workspaceRootSegmentName),a,"only");return a}return null},render:function(){var a=this._container,d=e.byId(this._id);d?e.empty(d):(d=document.createElement("span"),d.id=this._id,a.appendChild(d));var f;if(f=this.getNavigatorWorkspaceRootSegment())if(e.addClass(f,"breadcrumb"),d.appendChild(f),
this._resource&&this._resource.Parents)f=document.createElement("span"),e.place(document.createTextNode(" / "),f,"only"),this.path+="/",e.addClass(f,"breadcrumbSeparator"),d.appendChild(f);else{f.href="";e.removeClass(f,"breadcrumb");e.addClass(f,"currentLocation");return}a=this._rootSegmentName;if(this._resource){if(this._resource.Parents)for(var j=this._resource.Parents,h=j.length;--h>=0;)f=document.createElement("a"),e.addClass(f,"breadcrumb"),a?(e.place(document.createTextNode(a),f,"only"),a=
null):e.place(document.createTextNode(j[h].Name),f,"only"),this.path+=j[h].Name,this._makeHref?this._makeHref(f,j[h].Location):f.href=b.toUrl("navigate/table.html")+"#"+j[h].ChildrenLocation,d.appendChild(f),f=document.createElement("span"),e.place(document.createTextNode(" / "),f,"only"),this.path+="/",e.addClass(f,"breadcrumbSeparator"),d.appendChild(f);f=document.createElement("span");a?(e.place(document.createTextNode(a),f,"only"),a=null):e.place(document.createTextNode(this._resource.Name),f,
"only");e.addClass(f,"currentLocation");this.path+=this._resource.Name;d.appendChild(f)}d.childNodes.length===0&&(f=document.createElement("span"),e.place(document.createTextNode(a||document.title),f,"only"),e.addClass(f,"breadcrumb"),e.addClass(f,"currentLocation"),d.appendChild(f))}};a.prototype.constructor=a;return{BreadCrumbs:a}});
define("orion/splitter",["require","dojo"],function(b,e){function a(a){this._init(a)}a.prototype={_init:function(a){function b(a){var c=a;typeof a==="string"&&(c=e.byId(a));return c}this._tracking=null;this._resizeListeners=[];this._animationDelay=501;this._prefix="/orion/splitter/"+document.body.id;this._node=b(a.node);if(!this._node)throw"no dom node for splitter found";this._sideNode=b(a.sidePanel);if(!this._sideNode)throw"no dom node for side panel found";this._mainNode=b(a.mainPanel);if(!this._mainNode)throw"no dom node for main panel found";
e.place("<div id='splitThumb' class='splitThumb splitThumbLayout'></div>",this._node,"only");this._initializeFromStoredSettings();this._thumb=e.query("#splitThumb",this._node)[0];this._closed?(this._closed=!1,this._thumbDown()):this._adjustToSplitPosition();e.style(this._node,{visibility:"visible"});e.style(this._mainNode,{display:"block"});e.style(this._sideNode,{display:"block"});e.connect(this._node,"onmousedown",this,this._mouseDown);e.connect(window,"onmouseup",this,this._mouseUp);e.connect(window,
"onresize",this,this._resize)},toggleSidePanel:function(){this._thumbDown()},openSidePanel:function(){this._closed||this._thumbDown()},addResizeListener:function(a){this._resizeListeners.push(a)},_initializeFromStoredSettings:function(){this._closed=localStorage.getItem(this._prefix+"/toggleState")==="closed";var a=localStorage.getItem(this._prefix+"/xPosition");if(a)this._splitLeft=parseInt(a,10)},_adjustToSplitPosition:function(a){var b=e.position(this._node);this._splitWidth=b.w;if(a||!this._splitLeft)this._splitLeft=
b.x,localStorage.setItem(this._prefix+"/xPosition",this._splitLeft);e.style(this._sideNode,{width:this._splitLeft+"px",right:this._splitLeft-1+"px",display:"block"});e.style(this._node,{left:this._splitLeft+"px"});this._resize()},_resize:function(a){var a=a||0,b=e.position(this._node.parentNode);this._totalWidth=b.w;b=e.position(this._node);e.style(this._mainNode,{width:this._totalWidth-b.x-b.w+"px"});window.setTimeout(e.hitch(this,function(){this._notifyResizeListeners(this._mainNode)}),a);window.setTimeout(e.hitch(this,
function(){this._notifyResizeListeners(this._sideNode)}),a)},_notifyResizeListeners:function(a){for(var b=0;b<this._resizeListeners.length;b++)this._resizeListeners[b](a)},_thumbDown:function(){this._closed?(this._closed=!1,this._addAnimation(),e.style(this._sideNode,{width:this._splitLeft+"px"}),e.style(this._node,{left:this._splitLeft+"px"})):(this._closed=!0,this._addAnimation(),e.style(this._sideNode,{width:0}),e.style(this._node,{left:"1px"}));this._resize(this._animationDelay);this._removeAnimation();
localStorage.setItem(this._prefix+"/toggleState",this._closed?"closed":null)},_removeAnimation:function(){window.setTimeout(e.hitch(this,function(){e.removeClass(this._sideNode,"sidePanelLayoutAnimation");e.removeClass(this._mainNode,"mainPanelLayoutAnimation");e.removeClass(this._node,"splitLayoutAnimation");e.removeClass(this._thumb,"splitLayoutAnimation")}),this._animationDelay)},_addAnimation:function(){e.addClass(this._sideNode,"sidePanelLayoutAnimation");e.addClass(this._mainNode,"mainPanelLayoutAnimation");
e.addClass(this._node,"splitLayoutAnimation");e.addClass(this._thumb,"splitLayoutAnimation")},_mouseDown:function(a){if(a.target===this._thumb)return this._thumbDown(a);if(!this._tracking)e.addClass(this._node,"splitTracking"),e.addClass(this._mainNode,"panelTracking"),e.addClass(this._sideNode,"panelTracking"),this._tracking=e.connect(window,"onmousemove",this,this._mouseMove)},_mouseMove:function(a){if(this._tracking)this._splitLeft=a.clientX,e.style(this._node,{left:a.clientX+"px"}),this._adjustToSplitPosition(!0),
window.document.all?a.keyCode=0:(a.preventDefault(),a.stopPropagation())},_mouseUp:function(){if(this._tracking)e.disconnect(this._tracking),this._tracking=null,e.removeClass(this._node,"splitTracking"),e.removeClass(this._mainNode,"panelTracking"),e.removeClass(this._sideNode,"panelTracking")}};a.prototype.constructor=a;return{Splitter:a}});
define("orion/fileUtils",["i18n!orion/nls/messages","dojo","dijit","dojo/hash","dijit/form/ValidationTextBox"],function(){return{makeRelative:function(b){if(!b)return b;var e=window.location.protocol+"//"+window.location.host;return b.indexOf(e)===0?b.substring(e.length):b},isAtRoot:function(b){return this.makeRelative(b).indexOf("/workspace")===0}}});
define("orion/favorites",["require","dojo","orion/fileUtils","orion/EventTarget"],function(b,e,a,c){function d(a){this._favorites=[];c.attach(this);this._init(a);this._initializeFavorites()}d.prototype={_init:function(a){this._registry=a.serviceRegistry;this._serviceRegistration=this._registry.registerService("orion.core.favorite",this)},_notifyListeners:function(){this.dispatchEvent({type:"favoritesChanged",navigator:this._favorites,registry:this._registry})},makeFavorites:function(b){for(var b=
e.isArray(b)?b:[b],c=0;c<b.length;c++){var d=b[c],g=d.ChildrenLocation?d.ChildrenLocation:d.Location,g=a.makeRelative(g);this.addFavorite(d.Name,g,d.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 e=this._favorites[d];if(e.name!==b)e.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}}};d.prototype.constructor=d;return{FavoritesService:d}});
define("orion/URITemplate",[],function(){function b(a){this._text=a}function e(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 d=[],f=0;f<a.length;f++)typeof a[f]!=="undefined"&&
d.push(e(a[f],b));return d.join(c)}function c(a,b,c,d){for(var f=Object.keys(a),j=[],h=0;h<f.length;h++)typeof a[f[h]]!=="undefined"&&j.push(e(f[h],b)+c+e(a[f[h]],b));return j.join(d)}function d(a){if(a.length===0)throw Error("Invalid Expression: 0 length expression");(this._operator=j[a[0]])?a=a.substring(1):this._operator=j.NUL;for(var b=[],c=a.split(","),d=0;d<c.length;d++){var f=c[d].match(h);if(f===null)throw Error("Bad VarSpec: "+a);b.push({name:f[1],explode:!!f[2],prefix:f[3]?parseInt(f[3],
10):-1})}this._varSpecList=b}function f(a){for(var c=[],f=0,e=a.indexOf("{",f);e!==-1;){c.push(new b(a.substring(f,e)));f=a.indexOf("}",e+1);if(f===-1)throw Error("Invalid template: "+a);c.push(new d(a.substring(e+1,f)));f+=1;e=a.indexOf("{",f)}c.push(new b(a.substring(f)));this._templateComponents=c}var j={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)}};d.prototype={expand:function(b){for(var d=[],f=
0;f<this._varSpecList.length;f++){var j=this._varSpecList[f],h=j.name,o=b[h],p=typeof o;if(p!=="undefined"&&o!==null){var q=d.length===0?this._operator.first:this._operator.sep;if(p==="string")this._operator.named&&(q+=e(h,"U+R"),q+=o.length===0?this._operator.ifemp:"="),j.prefix!==-1&&j.prefix<o.length&&(o=o.substring(0,j.prefix)),q+=e(o,this._operator.allow);else if(Array.isArray(o))j.explode?q+=a(o,this._operator.allow,this._operator.sep):(this._operator.named&&(q+=e(h,"U+R"),q+=o.length===0?this._operator.ifemp:
"="),q+=a(o,this._operator.allow,","));else if(p==="object")j.explode?q+=c(o,this._operator.allow,"=",this._operator.sep):(this._operator.named&&(q+=e(h,"U+R"),q+=Object.keys(o).length===0?this._operator.ifemp:"="),q+=c(o,this._operator.allow,",",","));else throw Error("bad param type: "+h+" : "+p);d.push(q)}}return d.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("orion/settings/nls/messages",["orion/i18n!orion/settings/nls/messages"],function(b){var e={root:!0};Object.keys(b).forEach(function(a){typeof e[a]==="undefined"&&(e[a]=b[a])});return e});
define("orion/settings/nls/root/messages",{"Plugin Description":"Plugin Description",Create:"Create","Loading...":"Loading...","Label:":"Label:",Title:"Title",Plugins:"Plugins","User Profile":"User Profile","JavaScript Editor":"JavaScript Editor",General:"General",Navigation:"Navigation","Open in same tab":"Open in same tab","Open in new tab":"Open in new tab",Links:"Links",Font:"Font",Family:"Family","Sans Serif":"Sans Serif",Serif:"Serif",Size:"Size","8pt":"8pt","9pt":"9pt","10pt":"10pt","12pt":"12pt",
Color:"Color",Background:"Background",Strings:"Strings","String Types":"String Types",blue:"blue",Weight:"Weight",Normal:"Normal",Bold:"Bold",Comments:"Comments","Comment Types":"Comment Types",green:"green",Keywords:"Keywords","Keyword Types":"Keyword Types",darkred:"darkred",Categories:"Categories",Username:"Username","Full Name":"Full Name","Email Address":"Email Address",Account:"Account","Current Password":"Current Password","New Password":"New Password","Verify Password":"Verify Password",Password:"Password",
OpenId:"OpenId",AOL:"AOL",Yahoo:"Yahoo",Google:"Google",Unlink:"Unlink",Link:"Link",Unlinked:"Unlinked",Linked:"Linked","Linked Accounts":"Linked Accounts","Git Email Address":"Git Email Address","Git Username":"Git Username","Git Credentials Storage":"Git Credentials Storage",Update:"Update","Update Profile Settings":"Update Profile Settings","Update Git Credentials":"Update Git Credentials","User profile data successfully updated.":"User profile data successfully updated.","Git Credentials successfully updated.":"Git Credentials successfully updated.",
"Edit Plugin JavaScript":"Edit Plugin JavaScript","Install Plugin":"Install Plugin","Plugin Name:":"Plugin Name:","Author Name:":"Author Name:","Licence:":"Licence:","Description:":"Description:","A plugin for Eclipse Orion":"A plugin for Eclipse Orion","Plugin Link":"Plugin Link",Install:"Install","Install a plugin by specifying its URL":"Install a plugin by specifying its URL","Plugin URL:":"Plugin URL:","Reload all":"Reload all","Reload all installed plugins":"Reload all installed plugins","Create a new Orion Plugin":"Create a new Orion Plugin",
Reload:"Reload","Reload the plugin":"Reload the plugin",Delete:"Delete","Delete this plugin from the configuration":"Delete this plugin from the configuration","Type a plugin url here ...":"Type a plugin url here ...","Installed ":"Installed ","Installing ":"Installing ","Already installed":"Already installed"," plugin":" plugin","Reloaded ":"Reloaded ","Uninstalled ":"Uninstalled ","Are you sure you want to uninstall '":"Are you sure you want to uninstall '",Services:"Services",Value:"Value","JavaScript Object":"JavaScript Object",
"click here, then check javascript console to drill down":"click here, then check javascript console to drill down",Item:"Item","Git Config":"Git Config","Clear Git Credentials":"Clear Git Credentials","Enable Storage":"Enable Storage","Please be aware that your credentials will be stored persistently in the browser.":"Please be aware that your credentials will be stored persistently in the browser.","Do you wish to enable the Key Storage?":"Do you wish to enable the Key Storage?",general:"General",
validation:"Validation","Deleted git credentials for ${0}":"Deleted git credentials for ${0}"});
define("orion/widgets/themes/ThemeClass",["i18n!orion/settings/nls/messages","require"],function(){function b(b){this.attributes=[];this.element=document.createElement("div");this.style=this.element.style;this.className=b;this.classString="."+b+"{ "}b.prototype.className=null;b.prototype.classString=void 0;b.prototype.style=void 0;b.prototype.closeString=" }\n";b.prototype.toString=function(){return this.classString=this.classString+this.style.cssText+this.closeString};return{ThemeClass:b}});
define("orion/widgets/themes/container/ThemeSheetWriter",["i18n!orion/settings/nls/messages","require","dojo","dijit","orion/widgets/themes/ThemeClass"],function(b,e,a,c,d){function f(){}f.prototype.navbar="#333";f.prototype.button="#777777";f.prototype.location="#EFEFEF";f.prototype.selection="FEC";f.prototype.sidepanel="#FBFBFB";f.prototype.mainpanel="white";f.prototype.navtext="#bfbfbf";f.prototype.content="#3087B3";f.prototype.search="#444";f.prototype.toolpanel="white";f.prototype.writeNavigationStyle=
function(){var a="",b=[],c=new d.ThemeClass("orionPage");c.style.backgroundColor="#fdfdfd";c.style.width="100%";c.style.height="100%";b.push(c);c=new d.ThemeClass("topRowBanner");c.style.margin="0";c.style.border="0";c.style.backgroundColor=this.navbar;c.style.background="-webkit-gradient(linear, left top, left bottom, color-stop(0%,"+this.navbar+"), color-stop(100%,"+this.navbar+"))";c.style.background="-moz-linear-gradient(top,"+this.navbar+"0%,"+this.navbar+"100%)";c.style.height="28px";b.push(c);
c=new d.ThemeClass("a");c.style.textDecoration="none";c.style.color=this.content;b.push(c);c=new d.ThemeClass("navlink");c.style.display="inline-block";c.style.padding="2px";c.style.color=this.content;b.push(c);c=new d.ThemeClass("primaryNav");c.style.color=this.navtext;c.style.fontSize="8pt";c.style.fontWeight="normal";c.style.paddingTop="6px";c.style.verticalAlign="baseline";b.push(c);c=new d.ThemeClass("primaryNav a");c.style.fontSize="8pt";c.style.color=this.navtext;c.style.marginRight="6px";
c.style.marginLeft="6px";c.style.verticalAlign="baseline";c.style.textDecoration="none";b.push(c);c=new d.ThemeClass("primaryNav a:hover");c.style.color="#bfbfbf";c.style.cursor="hand";c.style.color="white";c.style.fontWeight="normal";b.push(c);for(var f in b)a+=b[f].toString();return a};f.prototype.writeLocationStyle=function(){var a="",b=[],c=new d.ThemeClass("titleArea");c.style.margin="0";c.style.paddingTop="5px";c.style.border="0";c.style.background=this.location;c.style.background="-webkit-gradient(linear, left top, left bottom, color-stop(0%,"+
this.location+"), color-stop(100%,"+this.location+"))";c.style.borderBottom="1px solid "+this.location;c.style.minHeight="20px";b.push(c);c=new d.ThemeClass("breadcrumb");c.style.fontSize="8pt";c.style.textDecoration="none";c.style.color=this.content;c.style.paddingTop="2px";b.push(c);c=new d.ThemeClass("a.breadcrumb:hover");c.style.textDecoration="none";c.style.borderBottom="1px dotted";c.style.color="#F58B0F";c.style.cursor="pointer";b.push(c);c=new d.ThemeClass("breadcrumbSeparator");c.style.fontSize=
"8pt";c.style.textDecoration="none";c.style.color=this.navbar;c.style.fontWeight="bold";b.push(c);c=new d.ThemeClass("currentLocation");c.style.fontWeight="bold";c.style.fontSize="8pt";c.style.color=this.navbar;c.style.textDecoration="none";c.style.textWrap="normal";c.style.lineHeight="10pt";b.push(c);c=new d.ThemeClass("a.currentLocation:hover");c.style.fontWeight="bold";c.style.fontSize="10pt";c.style.color="#666666";c.style.textDecoration="none";c.style.borderBottom="0";b.push(c);c=new d.ThemeClass("navlinkonpage");
c.style.color=this.content;b.push(c);for(var f in b)a+=b[f].toString();return a};f.prototype.writeButtonStyle=function(){var a="",b=[],c=new d.ThemeClass("commandButton");c.style.color="#222";c.style.border="1px solid #dedede";c.style.backgroundColor=this.button;c.style.textAlign="center";c.style.verticalAlign="baseline";c.style.cursor="pointer";c.style.display="inline-block";c.style.padding="6px";c.style.paddingTop="4px";c.style.borderRadius="1px";c.style.lineHeight="12px";c.style.fontSize="8pt";
c.style.userSelect="none";b.push(c);c=new d.ThemeClass("commandButton:over");c.style.backgroundColor="#e6e6e6";c.style.border="1px solid #808080";b.push(c);c=new d.ThemeClass("commandMenu");c.style.color="#222";c.style.display="inline-block";c.style.verticalAlign="baseline";c.style.margin="0";c.style.fontSize="8pt";c.style.fontWeight="normal";c.style.border="1px solid #dedede";c.style.backgroundColor="#efefef";c.style.cursor="pointer";c.style.borderRadius="1px";b.push(c);c=new d.ThemeClass("commandMenuItem");
c.style.border="0";c.style.padding="0";c.style.margin="0";b.push(c);for(var f in b)a+=b[f].toString();return a};f.prototype.writeMainStyle=function(){var a="",b=[],c=new d.ThemeClass("searchbox");c.style.backgroundImage="url(../images/core_sprites.png)";c.style.backgroundRepeat="no-repeat";c.style.backgroundPosition="4px -297px";c.style.width="12px";c.style.height="12px";c.style.backgroundColor=this.search;c.style.border="1px solid "+this.search;c.style.fontSize="11px";c.style.width="15em";c.style.height=
"16px";c.style.borderRadius="10px";c.style.color="#999";c.style.padding="0";c.style.paddingLeft="20px";c.style.marginLeft="5px";c.style.marginTop="6px !important";c.style.font="7pt Lucida Sans Unicode,Lucida Grande,Verdana,Arial,Helvetica,Myriad,Tahoma,clean,sans-serif !important";b.push(c);c=new d.ThemeClass("searchbox:focus");c.style.color="white";c.style.outline="none";b.push(c);c=new d.ThemeClass("checkedRow");c.style.cssText="background-color:"+this.selection+" !important;";b.push(c);c=new d.ThemeClass("navbar-item-selected");
c.style.background=this.selection;c.style.color=this.content;b.push(c);c=new d.ThemeClass("auxpane");c.style.border="0";c.style.background=this.sidepanel;c.style.background="-webkit-gradient(linear, left top, left bottom, color-stop(0%,"+this.sidepanel+"), color-stop(100%,"+this.sidepanel+"))";c.style.background="-moz-linear-gradient(top, "+this.sidepanel+" 0%, "+this.sidepanel+" 100%)";c.style.overflowX="auto";c.style.minWidth="200px";c.style.paddingTop="16px";b.push(c);c=new d.ThemeClass("mainpane");
c.style.background=this.mainpanel;c.style.border=0;b.push(c);c=new d.ThemeClass("mainToolbar");c.style.background=this.toolpanel;c.style.height="31px";c.style.borderBottom="1px solid #ebebeb";b.push(c);for(var f in b)a+=b[f].toString();return a};f.prototype.render=function(){console.log(this.writeNavigationStyle());console.log(this.writeLocationStyle());console.log(this.writeMainStyle());console.log(this.writeButtonStyle())};f.prototype.getSheet=function(a){a.navbar.value?(this.navbar=a.navbar.value,
this.button=a.button.value,this.location=a.location.value,this.selection=a.selection.value,this.sidepanel=a.sidepanel.value,this.mainpanel=a.mainpanel.value,this.navtext=a.navtext.value,this.search=a.search.value,this.content=a.content.value,this.toolpanel=a.toolpanel.value):(this.navbar=a.navbar,this.button=a.button,this.location=a.location,this.selection=a.selection,this.sidepanel=a.sidepanel,this.mainpanel=a.mainpanel,this.navtext=a.navtext,this.search=a.search,this.content=a.content,this.toolpanel=
a.toolpanel);return this.writeNavigationStyle()+this.writeLocationStyle()+this.writeMainStyle()+this.writeButtonStyle()};return{ThemeSheetWriter:f}});
define("orion/inputCompletion/inputCompletion",[],function(){function b(b,a,c){this._inputField=b;if(typeof this._inputField==="string")this._inputField=document.getElementById(this._inputField);this._binderFunc=a;(b=c?c.group:null)||(b=this._inputField.id?this._inputField.id:"default__input__group");this._completionIdPrefix=b+"__completion__";this._proposeFromStart=c?c.proposeFromStart:!1;this._extendedProvider=c?c.extendedProvider:null;this._proposalIndex=-1;this._dismissed=!0;this._mouseDown=!1;
this._initUI();var d=this;this._completionUIContainer.addEventListener("mousedown",function(){d._mouseDown=!0});this._completionUIContainer.addEventListener("mouseup",function(){d._mouseDown=!1});this._inputField.addEventListener("blur",function(){d._mouseDown?window.setTimeout(function(){d._inputField.focus()},200):d._dismiss()});this._inputField.addEventListener("keydown",function(a){d.onKeyDown(a)});this._inputField.addEventListener("input",function(){d._proposeOn(d._inputField.value)});this._inputField.addEventListener("focus",
function(){if(d._dismissed&&d._binderFunc)d._dismissing?d._dismissing=!1:d._binderFunc&&d._binderFunc(function(a){d._bind(a);d._proposeOn(d._inputField.value)})})}b.prototype.onKeyDown=function(b){if(this._dismissed)return!0;var a=b.charCode||b.keyCode;if(a===13){if(this._proposalList&&this._proposalList.length>0&&this._proposalIndex>=0&&this._proposalIndex<this._proposalList.length)return b.preventDefault(),this._dismiss(this._proposalList[this._proposalIndex].item.value),b.stopPropagation(),!1}else if((a===
40||a===38)&&this._proposalList&&this._proposalList.length>0)return b.preventDefault(),this._walk(a===40),b.stopPropagation(),!1;else if(a===27)return b.preventDefault(),this._dismiss(),!1;return!0};b.prototype._bind=function(b){this._dataList=b};b.prototype._getUIContainerID=function(){return this._completionIdPrefix+"UIContainer"};b.prototype._getUIProposalListId=function(){return this._completionIdPrefix+"UIProposalList"};b.prototype._initUI=function(){this._completionUIContainer=document.getElementById(this._getUIContainerID());
if(!this._completionUIContainer)this._completionUIContainer=document.createElement("div"),this._completionUIContainer.id=this._getUIContainerID(),this._completionUIContainer.style.display="none",this._completionUIContainer.className="inputCompletionContainer",this._completionUIContainer.setAttribute("role","list"),this._completionUIContainer.setAttribute("aria-atomic","true"),this._completionUIContainer.setAttribute("aria-live","assertive"),document.body.appendChild(this._completionUIContainer);this._completionUIContainer.textContent=
"";this._completionUL=document.getElementById(this._getUIProposalListId());if(!this._completionUL)this._completionUL=document.createElement("ul"),this._completionUL.id=this._getUIProposalListId(),this._completionUL.className="inputCompletionUL";this._completionUL.textContent="";this._completionUIContainer.appendChild(this._completionUL)};b.prototype._proposeOnCategory=function(b,a){if(a.length!==0){var c=this;if(b){var d=document.createElement("li");d.className="inputCompletionLICategory";var f=document.createTextNode(b);
d.appendChild(f);this._completionUL.appendChild(d)}for(var j=0;j<a.length;j++)d=document.createElement("li"),d.onmouseover=function(a){c._selectProposal(a.currentTarget)},d.onclick=function(a){c._dismiss(a.currentTarget.completionItem.value)},d.className="inputCompletionLINormal",d.completionItem=a[j],f=document.createTextNode(a[j].value),d.appendChild(f),this._completionUL.appendChild(d),this._proposalList.push({item:a[j],domNode:d})}};b.prototype._domNode2Index=function(b){for(var a=0;a<this._proposalList.length;a++)if(this._proposalList[a].domNode===
b)return a;return-1};b.prototype._highlight=function(b,a){var c=b,d=!1;isNaN(c)||(d=!0,c=this._proposalList&&b>=0&&b<this._proposalList.length?this._proposalList[b].domNode:null);if(c)c.className=a?"inputCompletionLISelected":"inputCompletionLINormal",a&&d&&(c.offsetTop<this._completionUIContainer.scrollTop?c.scrollIntoView(!0):c.offsetTop+c.offsetHeight>this._completionUIContainer.scrollTop+this._completionUIContainer.clientHeight&&c.scrollIntoView(!1))};b.prototype._selectProposal=function(b){var a=
b;isNaN(a)&&(a=this._domNode2Index(b));if(a!==this._proposalIndex)this._highlight(this._proposalIndex,!1),this._proposalIndex=a,this._highlight(this._proposalIndex,!0)};b.prototype._dismiss=function(b){if(!this._mouseDown){this._dismissed=!0;this._proposalList=null;this._proposalIndex=-1;if(b)this._inputField.value=b,this._dismissing=!0,this._inputField.focus();var a=this;window.setTimeout(function(){a._completionUIContainer.style.display="none"},200)}};b.prototype._show=function(){if(this._proposalList&&
this._proposalList.length>0){for(var b=0,a=0,c=this._inputField;c;)b+=c.offsetLeft,a+=c.offsetTop,c=c.offsetParent;this._completionUIContainer.style.display="block";this._completionUIContainer.style.top=a+this._inputField.offsetHeight+2+"px";this._completionUIContainer.style.left=b+"px";this._completionUIContainer.style.width=this._inputField.offsetWidth+"px";this._dismissed=this._mouseDown=!1}else this._dismissed=!0,this._proposalList=null,this._proposalIndex=-1,this._completionUIContainer.style.display=
"none"};b.prototype._walk=function(b){b=this._proposalIndex+(b?1:-1);b<-1?b=this._proposalList.length-1:b>=this._proposalList.length&&(b=-1);this._selectProposal(b)};b.prototype._proposeOnList=function(b,a,c){for(var d="",f=[],j=0;j<b.length;j++)if(b[j].type==="category")this._proposeOnCategory(d,f),d=b[j].label,f=[];else{var h=!0;if(a&&c){var g=b[j].value.toLowerCase().indexOf(a);g<0?h=!1:this._proposeFromStart&&(h=g===0)}h&&f.push(b[j])}this._proposeOnCategory(d,f)};b.prototype._proposeOn=function(b){this._completionUL.textContent=
"";var a=b?b.toLowerCase():null;this._proposalList=[];this._proposeOnList(this._dataList,a,!0);if(this._extendedProvider&&a){var c=this;this._extendedProvider(b,function(d){if(d)for(var f=0;f<d.length;f++)c._proposeOnList(d[f].proposals,d[f].filterForMe?a:b,d[f].filterForMe);c._show()},[])}else this._show()};b.prototype.constructor=b;return{InputCompletion:b}});
define("dojo/DeferredList",["dojo"],function(b){b.DeferredList=function(e,a,c,d){var f=[];b.Deferred.call(this);var j=this;e.length===0&&!a&&this.resolve([0,[]]);var h=0;b.forEach(e,function(b,k){function l(a,b){f[k]=[a,b];h++;h===e.length&&j.resolve(f)}b.then(function(b){a?j.resolve([k,b]):l(!0,b)},function(a){c?j.reject(a):l(!1,a);if(d)return null;throw a;})})};b.DeferredList.prototype=new b.Deferred;b.DeferredList.prototype.gatherResults=function(e){e=new b.DeferredList(e,!1,!0,!1);e.addCallback(function(a){var c=
[];b.forEach(a,function(a){c.push(a[1])});return c});return e};return b.DeferredList});define("orion/widgets/nls/messages",["orion/i18n!orion/widgets/nls/messages"],function(b){var e={root:!0};Object.keys(b).forEach(function(a){typeof e[a]==="undefined"&&(e[a]=b[a])});return e});
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 here":"Drag a file here","unzip zips":"Unzip *.zip files","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","If the same file exists in both the source and destination:":"If the same file exists in both the source and destination:","Cancel the transfer":"Cancel the transfer","Always overwrite destination":"Always overwrite destination","Overwrite if source is newer":"Overwrite if source is newer",
New:"New","Building file skeleton...":"Building file skeleton...",Add:"Add","Upload...":"Upload...","For a list of available commands type '${0}'.":"For a list of available commands type '${0}'."});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 e;do e=b._scopeName+"Unique"+ ++b.dnd._uniqueId;while(b.byId(e));return e};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(e){var a=b.window.getBox(),c=0,d=0;if(e.clientX<b.dnd.H_TRIGGER_AUTOSCROLL)c=-b.dnd.H_AUTOSCROLL_VALUE;else if(e.clientX>a.w-b.dnd.H_TRIGGER_AUTOSCROLL)c=b.dnd.H_AUTOSCROLL_VALUE;if(e.clientY<b.dnd.V_TRIGGER_AUTOSCROLL)d=-b.dnd.V_AUTOSCROLL_VALUE;
else if(e.clientY>a.h-b.dnd.V_TRIGGER_AUTOSCROLL)d=b.dnd.V_AUTOSCROLL_VALUE;window.scrollBy(c,d)};b.dnd._validNodes={div:1,p:1,td:1};b.dnd._validOverflow={auto:1,scroll:1};b.dnd.autoScrollNodes=function(e){for(var a=e.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 d=b._getContentBox(a,c),c=b.position(a,!0),f=Math.min(b.dnd.H_TRIGGER_AUTOSCROLL,d.w/2),j=Math.min(b.dnd.V_TRIGGER_AUTOSCROLL,
d.h/2),h=e.pageX-c.x,g=e.pageY-c.y,k=c=0;if(b.isWebKit||b.isOpera)h+=b.body().scrollLeft,g+=b.body().scrollTop;h>0&&h<d.w&&(h<f?c=-f:h>d.w-f&&(c=f));g>0&&g<d.h&&(g<j?k=-j:g>d.h-j&&(k=j));d=a.scrollLeft;f=a.scrollTop;a.scrollLeft+=c;a.scrollTop+=k;if(d!=a.scrollLeft||f!=a.scrollTop)return}}try{a=a.parentNode}catch(l){a=null}}b.dnd.autoScroll(e)};return b.dnd});
define("dojo/dnd/Mover",["dojo","dojo/dnd/common","dojo/dnd/autoscroll"],function(b){b.declare("dojo.dnd.Mover",null,{constructor:function(e,a,c){this.node=b.byId(e);var d=a.touches?a.touches[0]:a;this.marginBox={l:d.pageX,t:d.pageY};this.mouseButton=a.button;a=this.host=c;e=e.ownerDocument;this.events=[b.connect(e,"onmousemove",this,"onFirstMove"),b.connect(e,"ontouchmove",this,"onFirstMove"),b.connect(e,"onmousemove",this,"onMouseMove"),b.connect(e,"ontouchmove",this,"onMouseMove"),b.connect(e,
"onmouseup",this,"onMouseUp"),b.connect(e,"ontouchend",this,"onMouseUp"),b.connect(e,"ondragstart",b.stopEvent),b.connect(e.body,"onselectstart",b.stopEvent)];if(a&&a.onMoveStart)a.onMoveStart(this)},onMouseMove:function(e){b.dnd.autoScroll(e);var a=this.marginBox,c=e.touches?e.touches[0]:e;this.host.onMove(this,{l:a.l+c.pageX,t:a.t+c.pageY},e);b.stopEvent(e)},onMouseUp:function(e){(b.isWebKit&&b.isMac&&this.mouseButton==2?e.button==0:this.mouseButton==e.button)&&this.destroy();b.stopEvent(e)},onFirstMove:function(e){var a=
this.node.style,c,d=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),j=b._getMarginBox(c,f),f=b._getContentBox(c,f);c=a.l-(f.l-j.l);a=a.t-(f.t-j.t)}this.marginBox.l=c-this.marginBox.l;this.marginBox.t=a-this.marginBox.t;if(d&&d.onFirstMove)d.onFirstMove(this,e);b.disconnect(this.events.shift());b.disconnect(this.events.shift())},
destroy:function(){b.forEach(this.events,b.disconnect);var e=this.host;if(e&&e.onMoveStop)e.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(e,a){this.node=b.byId(e);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(e,a){return new b.dnd.Moveable(a,e)},destroy:function(){b.forEach(this.events,b.disconnect);this.events=this.node=this.handle=null},onMouseDown:function(e){if(!this.skip||!b.dnd.isFormElement(e)){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=e.touches?e.touches[0]:e;this._lastX=a.pageX;this._lastY=a.pageY}else this.onDragDetected(e);b.stopEvent(e)}},onMouseMove:function(e){var a=e.touches?e.touches[0]:e;if(Math.abs(a.pageX-this._lastX)>this.delay||Math.abs(a.pageY-this._lastY)>this.delay)this.onMouseUp(e),this.onDragDetected(e);b.stopEvent(e)},onMouseUp:function(e){for(var a=0;a<2;++a)b.disconnect(this.events.pop());b.stopEvent(e)},onSelectStart:function(e){(!this.skip||!b.dnd.isFormElement(e))&&
b.stopEvent(e)},onDragDetected:function(b){new this.mover(this.node,b,this)},onMoveStart:function(e){b.publish("/dnd/move/start",[e]);b.addClass(b.body(),"dojoMove");b.addClass(this.node,"dojoMoveItem")},onMoveStop:function(e){b.publish("/dnd/move/stop",[e]);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(e,a){return new b.dnd.move.constrainedMoveable(a,e)},constructor:function(b,a){a||(a={});this.constraints=a.constraints;this.within=a.within},onFirstMove:function(e){var a=this.constraintBox=this.constraints.call(this,e);a.r=a.l+a.w;a.b=a.t+a.h;this.within&&(e=b._getMarginSize(e.node),a.r-=e.w,a.b-=
e.h)},onMove:function(b,a){var c=this.constraintBox,d=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;d.left=a.l+"px";d.top=a.t+"px";this.onMoved(b,a)}});b.declare("dojo.dnd.move.boxConstrainedMoveable",b.dnd.move.constrainedMoveable,{box:{},markupFactory:function(e,a){return new b.dnd.move.boxConstrainedMoveable(a,e)},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(e,a){return new b.dnd.move.parentConstrainedMoveable(a,e)},constructor:function(e,a){var c=a&&a.area;this.constraints=function(){var a=this.node.parentNode,f=b.getComputedStyle(a),e=b._getMarginBox(a,f);if(c=="margin")return e;var h=b._getMarginExtents(a,f);e.l+=h.l;e.t+=h.t;e.w-=h.w;e.h-=h.h;if(c=="border")return e;h=b._getBorderExtents(a,f);e.l+=h.l;e.t+=h.t;e.w-=h.w;e.h-=h.h;if(c=="padding")return e;h=b._getPadExtents(a,f);e.l+=
h.l;e.t+=h.t;e.w-=h.w;e.h-=h.h;return e}}});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 e=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),e.call(this,a,a._leftTop));b.dnd.Moveable.prototype.onMoveStop.apply(this,arguments)},
onMove:function(a,b){a._leftTop=b;if(!a._timer){var d=this;a._timer=setTimeout(function(){a._timer=null;e.call(d,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(e){b.mixin(this,e);this.node=e.node;this._showArgs=b.mixin({},e);this._showArgs.node=this.node;this._showArgs.duration=this.showDuration;this.showAnim=this.showFunc(this._showArgs);this._hideArgs=b.mixin({},e);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 e={_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 e=b.connect(this._current,"beforeBegin",this,function(){this._fire("beforeBegin")}),
h=b.connect(this._current,"onBegin",this,function(a){this._fire("onBegin",arguments)}),g=b.connect(this._current,"onPlay",this,function(a){this._fire("onPlay",arguments);b.disconnect(e);b.disconnect(h);b.disconnect(g)});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 e=this.duration*a;this._current=null;b.some(this._animations,function(a){if(a.duration<=e)return this._current=a,!0;e-=a.duration;return!1});this._current&&this._current.gotoPercent(e/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,e);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 e=this.duration*
a;b.forEach(this._animations,function(a){a.gotoPercent(a.duration<e?1:e/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,e);b.fx.combine=function(a){return new c(a)};b.fx.wipeIn=function(a){var c=a.node=b.byId(a.node),e=c.style,h,a=b.animateProperty(b.mixin({properties:{height:{start:function(){h=
e.overflow;e.overflow="hidden";if(e.visibility=="hidden"||e.display=="none")return e.height="1px",e.display="",e.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(){e.height="auto";e.overflow=h});return a};b.fx.wipeOut=function(a){var c=(a.node=b.byId(a.node)).style,e,a=b.animateProperty(b.mixin({properties:{height:{end:1}}},a));b.connect(a,"beforeBegin",function(){e=c.overflow;c.overflow="hidden";c.display=
""});b.connect(a,"onEnd",function(){c.overflow=e;c.height="auto";c.display="none"});return a};b.fx.slideTo=function(a){var c=null,e=null,h=function(a){return function(){var d=b.getComputedStyle(a),h=d.position;c=h=="absolute"?a.offsetTop:parseInt(d.top)||0;e=h=="absolute"?a.offsetLeft:parseInt(d.left)||0;if(h!="absolute"&&h!="relative")d=b.position(a,!0),c=d.y,e=d.x,a.style.position="absolute",a.style.top=c+"px",a.style.left=e+"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,e){b.declare("dijit.DialogUnderlay",[e._Widget,e._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 e.BackgroundIframe(this.domNode)},hide:function(){this.bgIframe.destroy();delete this.bgIframe;this.domNode.style.display="none"}});return e.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,e){b.declare("dijit._DialogBase",[e._Templated,e.form._FormMixin,e._DialogMixin,e._CssStateMixin],{templateString:b.cache("dijit","templates/Dialog.html"),baseClass:"dijitDialog",
cssStateNodes:{closeButtonNode:"dijitDialogCloseIcon"},attributeMap:b.delegate(e._Widget.prototype.attributeMap,{title:[{node:"titleNode",type:"innerHTML"},{node:"titleBar",type:"attribute"}],"aria-describedby":""}),open:!1,duration:e.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&&e._DialogLevelManager.isTop(this)&&(this._getFocusItems(this.domNode),e.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,d=a.target;a.charOrCode===c.TAB&&this._getFocusItems(this.domNode);var f=this._firstFocusItem==this._lastFocusItem;
if(d==this._firstFocusItem&&a.shiftKey&&a.charOrCode===c.TAB)f||e.focus(this._lastFocusItem),b.stopEvent(a);else if(d==this._lastFocusItem&&a.charOrCode===c.TAB&&!a.shiftKey)f||e.focus(this._firstFocusItem),b.stopEvent(a);else{for(;d;){if(d==this.domNode||b.hasClass(d,"dijitPopup"))if(a.charOrCode==c.ESCAPE)this.onCancel();else return;d=d.parentNode}if(a.charOrCode!==c.TAB)b.stopEvent(a);else if(!b.isOpera)try{this._firstFocusItem.focus()}catch(j){}}}},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(){e._DialogLevelManager.show(this,this.underlayAttrs)}),onEnd:b.hitch(this,function(){this.autofocus&&e._DialogLevelManager.isTop(this)&&(this._getFocusItems(this.domNode),e.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";e._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"&&(e._underlay&&e._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);e._DialogLevelManager.hide(this);this.inherited(arguments)}});b.declare("dijit.Dialog",[e.layout.ContentPane,e._DialogBase],{});e._DialogLevelManager={show:function(a,c){var d=e._dialogStack;d[d.length-1].focus=e.getFocus(a);var f=e._underlay;!f||f._destroyed?f=e._underlay=new e.DialogUnderlay(c):f.set(a.underlayAttrs);var j=d[d.length-1].dialog?d[d.length-1].zIndex+2:950;d.length==1&&f.show();b.style(e._underlay.domNode,
"zIndex",j-1);b.style(a.domNode,"zIndex",j);d.push({dialog:a,underlayAttrs:c,zIndex:j})},hide:function(a){var c=e._dialogStack;if(c[c.length-1].dialog==a){c.pop();var d=c[c.length-1];c.length==1?e._underlay._destroyed||e._underlay.hide():(b.style(e._underlay.domNode,"zIndex",d.zIndex-1),e._underlay.set(d.underlayAttrs));if(a.refocus){c=d.focus;if(!c||d.dialog&&!b.isDescendant(c.node,d.dialog.domNode))d.dialog._getFocusItems(d.dialog.domNode),c=d.dialog._firstFocusItem;try{e.focus(c)}catch(f){}}}else d=
b.indexOf(b.map(c,function(a){return a.dialog}),a),d!=-1&&c.splice(d,1)},isTop:function(a){var b=e._dialogStack;return b[b.length-1].dialog==a}};e._dialogStack=[{dialog:null,focus:null,underlayAttrs:null}];return e.Dialog});
define("orion/widgets/_OrionDialogMixin",["i18n!orion/widgets/nls/messages","dojo","dijit"],function(b,e,a){return e.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);e.connect(this,"onKeyPress",e.hitch(this,function(a){a.keyCode===e.keys.ENTER&&this._onSubmit()}))},onHide:function(){this.inherited(arguments);setTimeout(e.hitch(this,
function(){if(e.isDescendant(a._curFocus,this.domNode))a._curFocus=null;if(e.isDescendant(a._prevFocus,this.domNode))a._prevFocus=null;this.destroyRecursive()}),this.duration)}})});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:32em;">\n\t\t\t\t</div>\n\t\t\t\t<div style="display:table-cell; padding:0" id="crawlingProgress">\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/UserMenu","i18n!orion/widgets/nls/messages,require,dojo,dijit,orion/commands,dijit/Menu".split(","),function(b,e,a,c,d){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>',postCreate:function(){this.inherited(arguments);this.label=b.test;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,e,h){var g=this;(e=this.authenticatedServices[c].authService)&&e.logout&&this.addChild(new d.CommandMenuItem({label:h?b["Sign Out "]+h:b["Sign Out"],onClick:a.hitch(this,function(b,c){return function(){b.logout().then(a.hitch(g,function(){this.addUserItem(c,b,this.authenticatedServices[c].label);localStorage.removeItem(c);localStorage.removeItem("lastLogin");for(var a=localStorage.length-1;a>=0;a--){var d=localStorage.key(a);d&&d.indexOf("/orion/preferences/user")===
0&&localStorage.removeItem(d)}b.getAuthForm(window.location.href).then(function(a){window.location=a})}))}})(e,c)}))},_renderUnauthenticatedService:function(c,e,h){var g=this,k=this.unauthenticatedServices[c].authService;if(k)k.getAuthForm?a.hitch(g,function(a){k.getAuthForm(eclipse.globalCommandUtils.notifyAuthenticationSite).then(function(c){c+=c.indexOf("?")===-1?"?redirect="+eclipse.globalCommandUtils.notifyAuthenticationSite+"?key="+a:"&redirect="+eclipse.globalCommandUtils.notifyAuthenticationSite+
"?key="+a;g.addChild(new d.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}),e)})})(c):k.login&&this.addChild(new d.CommandMenuItem({label:h?"Sign In To "+h:"Sign In",onClick:a.hitch(g,function(a){return function(){a.login(eclipse.globalCommandUtils.notifyAuthenticationSite)}})(k)}),e);else{var l=this.unauthenticatedServices[c].SignInLocation;l+=l.indexOf("?")===-1?"?redirect="+eclipse.globalCommandUtils.notifyAuthenticationSite+
"?key="+c:"&redirect="+eclipse.globalCommandUtils.notifyAuthenticationSite+"?key="+c;c=document.createElement("a");c.target="_blank";c.href=l;c.textContent=h?b["Sign In To "]+h:b["Sign In"];this.addChild(new d.Command.MenuItem({label:c,hasLink:!0}),e)}},renderServices:function(){for(var a=this.getChildren(),j=0;j<a.length;j++)this.removeChild(a[j]);a=document.createElement("a");a.href=e.toUrl("help/index.jsp");a.textContent=b.Help;this.addChild(new d.CommandMenuItem({label:a,hasLink:!0}));this.keyAssistFunction&&
this.addChild(new d.CommandMenuItem({label:b["Keyboard Shortcuts"],onClick:this.keyAssistFunction}));this.addChild(new c.MenuSeparator);a=document.createElement("a");a.href=e.toUrl("settings/settings.html");a.textContent=b.Settings;this.addChild(new d.CommandMenuItem({label:a,hasLink:!0}));if(this.isSingleService())for(j in this.authenticatedServices)this._renderAuthenticatedService(j,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(c,j,h,g){g?(this.unauthenticatedServices[c]&&delete this.unauthenticatedServices[c],this.authenticatedServices[c]={authService:j,label:h,data:g}):(this.authenticatedServices[c]&&delete this.authenticatedServices[c],this.unauthenticatedServices[c]=this.unauthenticatedServices[c]?
{authService:j,label:h,pending:this.unauthenticatedServices[c].pending}:{authService:j,label:h});a.hitch(this,this.renderServices)();if(a.byId("userInfo"))if(this.isSingleService()&&g)h=c=g.Name&&g.Name.replace(/^\s+|\s+$/g,"")!==""?g.Name:g.login,h.length>40&&(h=h.substring(0,30)+"..."),g=a.create("a",{href:e.toUrl("profile/user-profile.html")+"#"+g.Location,style:"margin-right: 0px"},a.byId("userInfo"),"only"),g.textContent=h,g.setAttribute("aria-label",b["View profile of "]+c),new d.CommandTooltip({connectId:[g],
label:b["View profile of "]+c,position:["above","left","right","below"]});else if(this.isSingleService()&&!g)if(j.getAuthForm)a.hitch(this,function(c){j.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",{href:d,style:"margin-right: 0px",target:"_blank"},a.byId("userInfo"),"only").textContent=
b["Sign In"]})})(c);else{if(j.login){var k=a.create("a",{style:"margin-right: 0px"},a.byId("userInfo"),"only");k.textContent=b["Sign In"];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(){j.login(eclipse.globalCommandUtils.notifyAuthenticationSite)})}}else a.empty(a.byId("userInfo"))}})});
define("orion/widgets/UserMenuDropDown",["require","dojo","dijit","dijit/form/DropDownButton"],function(b,e,a){e.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/legacy",["require","exports","module"],function(){if(!(typeof window==="undefined"||typeof document==="undefined")){if(window.console==null)window.console={};"debug,log,warn,error,trace,group,groupEnd".split(",").forEach(function(b){window.console[b]||(window.console[b]=function(){})});!("classList"in document.documentElement)&&Object.defineProperty&&typeof HTMLElement!=="undefined"&&Object.defineProperty(HTMLElement.prototype,"classList",{get:function(){function b(a){return function(b){var f=
e.className.split(/\s+/),j=f.indexOf(b);a(f,j,b);e.className=f.join(" ")}}var e=this,a={add:b(function(a,b,f){~b||a.push(f)}),remove:b(function(a,b){~b&&a.splice(b,1)}),toggle:b(function(a,b,f){~b?a.splice(b,1):a.push(f)}),contains:function(a){return!!~e.className.split(/\s+/).indexOf(a)},item:function(a){return e.className.split(/\s+/)[a]||null}};Object.defineProperty(a,"length",{get:function(){return e.className.split(/\s+/).length}});return a}});if(typeof Range.prototype.createContextualFragment===
"undefined")Range.prototype.createContextualFragment=function(b){var e=this.startContainer,a=e.nodeType==9?e:e.ownerDocument,e=a.createElement("div");e.innerHTML=b;for(b=a.createDocumentFragment();a=e.firstChild;)b.appendChild(a);return b};if(!String.prototype.trimLeft)String.prototype.trimLeft=function(){return String(this).replace(/\s*$/,"")}}});
define("gcli/nls/strings",["require","exports","module"],function(b,e){e.root={canonDescNone:"(No description)",cliEvalJavascript:"Enter JavaScript directly",cliUnusedArg:"Too many arguments",cliOptions:"Available Options",fieldSelectionSelect:"Select a %S\u2026",fieldArrayAdd:"Add",fieldArrayDel:"Delete",fieldMenuMore:"More matches, keep typing",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",helpSearchManual2:"<strong>search string</strong> to use in narrowing down the displayed commands. Regular expressions not supported.",helpManSynopsis:"Synopsis",helpManDescription:"Description",helpManParameters:"Parameters",helpManNone:"None",helpListAll:"Available Commands:",helpListPrefix:"Commands starting with '%1$S':",helpListNone:"No commands starting with '%1$S'",helpManRequired:"required",helpManOptional:"optional",subCommands:"Sub-Commands",subCommandsNone:"None",
prefDesc:"Commands to control settings",prefManual:"Commands to display and alter preferences both for GCLI and the surrounding environment",prefListDesc:"Display available settings",prefListManual:"Display a list of preferences, optionally filtered when using the 'search' parameter",prefListSearchDesc:"Filter the list of settings displayed",prefListSearchManual:"Search for the given string in the list of available preferences",prefShowDesc:"Display setting value",prefShowManual:"Display the value of a given preference",
prefShowSettingDesc:"Setting to display",prefShowSettingManual:"The name of the setting to display",prefSetDesc:"Alter a setting",prefSetManual:"Alter preferences defined by the environment",prefSetSettingDesc:"Setting to alter",prefSetSettingManual:"The name of the setting to alter.",prefSetValueDesc:"New value for setting",prefSetValueManual:"The new value for the specified setting",prefSetCheckHeading:"This might void your warranty!",prefSetCheckBody:"Changing these advanced settings can be harmful to the stability, security, and performance of this application. You should only continue if you are sure of what you are doing.",
prefSetCheckGo:"I'll be careful, I promise!",prefResetDesc:"Reset a setting",prefResetManual:"Reset the value of a setting to the system defaults",prefResetSettingDesc:"Setting to reset",prefResetSettingManual:"The name of the setting to reset to the system default value",prefOutputFilter:"Filter",prefOutputName:"Name",prefOutputValue:"Value",introDesc:"Show the opening message",introManual:"Redisplay the message that is shown to new users until they click the 'Got it!' button",introTextOpening:"The Firefox command line is designed for developers. It focuses on speed of input over JavaScript syntax and a rich display over monospace output.",
introTextCommands:"For a list of commands type",introTextKeys:"or to show/hide command hints press",introTextF1Escape:"F1/Escape",introTextGo:"Got it!",hideIntroDesc:"Show the initial welcome message",eagerHelperDesc:"How eager are the tooltips",allowSetDesc:"Has the user enabled the 'pref set' command?"}});
define("gcli/l10n",["require","exports","module","gcli/nls/strings"],function(b,e){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 d(){if(!h){var a=navigator.language||
navigator.userLanguage;j.some(function(b){return b.locales.indexOf(a)!==-1?(h=b,!0):!1});h||(console.error("Failed to find plural rule for "+a),h=j[0])}return h}var f={};e.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)};b("gcli/nls/strings");e.registerStringsSource("gcli/nls/strings");e.unregisterStringsSource=function(a){a=b(a).root;Object.keys(a).forEach(function(a){delete f[a]},
this)};e.getPreferredLocales=function(){var a=(typeof navigator!=="undefined"?(navigator.language||navigator.userLanguage).toLowerCase():"en-us").split("-"),b=a.map(function(b,c){return a.slice(0,a.length-c).join("-")});b.push("root");return b};e.lookup=function(a){var b=f[a];if(b==null)throw Error("No i18n key: "+a);return b};e.propertyLookup=typeof Proxy!=="undefined"?Proxy.create({get:function(a,b){return e.lookup(b)}}):f;e.lookupSwap=function(b,c){var d=e.lookup(b);return a(d,c)};e.lookupFormat=
function(a,b){var d=e.lookup(a);return c(d,b)};e.lookupPlural=function(b,c,f){var h=d().get(c),b=e.lookup(b)[h],f=f||{};f.ord=c;return a(b,f)};var j=[{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,e){function a(a,b){if(!a.__gcliHighlighting){a.__gcliHighlighting=!0;var f=a.style.background;a.style.background=b?"green":"red";setTimeout(function(){a.style.background=f;delete a.__gcliHighlighting},500)}}e.flashNodes=function(b,d){b.style?a(b,d):Array.prototype.forEach.call(b,function(b){a(b,d)})};e.exec=function(a,b){var f=JSON.stringify(b),e=new XMLHttpRequest;e.open("POST","/exec/",!0);e.setRequestHeader("Content-Type","application/json; charset=utf-8");
e.setRequestHeader("Content-Length",f.length);e.onreadystatechange=function(){e.readyState==4&&(e.status>=300||e.status<200?a.reject(e.responseText):a.resolve(e.responseText))};e.send(f)};e.func=function(a,b){var e=JSON.stringify(b),j=new XMLHttpRequest;j.open("POST","/func/",!0);j.setRequestHeader("Content-Type","application/json; charset=utf-8");j.setRequestHeader("Content-Length",e.length);j.onreadystatechange=function(){j.readyState==4&&(j.status>=300||j.status<200?a.reject(JSON.parse(j.responseText)):
a.resolve(JSON.parse(j.responseText)))};j.send(e)}});
define("gcli/ui/domtemplate",["require","exports","module"],function(b,e){function a(a){a==null&&(a={allowEval:!0});this.options=a;this.stack=a.stack&&Array.isArray(a.stack)?a.stack:typeof a.stack==="string"?[a.stack]:[];this.nodes=[]}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:""));var e=!1;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;this.nodes.push(b.__element);b.__element=a;for(var e=!0,j=Array.prototype.slice.call(a.attributes),h=0;h<j.length;h++){var g=j[h].value,k=j[h].name;this.stack.push(k);try{if(k==="save")g=this._stripBraces(g),this._property(g,b,a),a.removeAttribute("save");else if(k.substring(0,2)==="on"){var g=this._stripBraces(g),
l=this._property(g,b);typeof l!=="function"&&this._handleError("Expected "+g+" to resolve to a function, but got "+typeof l);a.removeAttribute(k);var n=a.hasAttribute("capture"+k.substring(2));a.addEventListener(k.substring(2),l,n);n&&a.removeAttribute("capture"+k.substring(2))}else{var m=g.replace(this._templateRegion,function(a){a=this._envEval(a.slice(2,-1),b,g);this.options.blankNullUndefined&&a==null&&(a="");return a}.bind(this));if(k.charAt(0)==="_")a.removeAttribute(k),a.setAttribute(k.substring(1),
m);else if(g!==m)j[h].value=m}}finally{this.stack.pop()}}}for(var o=Array.prototype.slice.call(a.childNodes),j=0;j<o.length;j++)this.processNode(o[j],b);a.nodeType===3&&this._processTextNode(a,b)}finally{if(e)b.__element=this.nodes.pop();this.stack.pop()}};a.prototype._processIf=function(a,b){this.stack.push("if");try{var e=a.getAttribute("if"),j=this._stripBraces(e),h=!0;try{h=!!this._envEval(j,b,e)}catch(g){this._handleError("Error with '"+j+"'",g),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 e=a.getAttribute("foreach"),j=e,h="param";if(j.charAt(0)==="$")j=this._stripBraces(j);else var g=j.split(" in "),h=g[0].trim(),j=this._stripBraces(g[1].trim());a.removeAttribute("foreach");try{this._handleAsync(this._envEval(j,b,e),a,function(e,f){this._processForEachLoop(e,a,f,b,h)}.bind(this)),a.parentNode.removeChild(a)}catch(k){this._handleError("Error with '"+j+"'",k)}}finally{this.stack.pop()}};
a.prototype._processForEachLoop=function(a,b,e,j,h){if(Array.isArray(a))a.forEach(function(a,c){this._processForEachMember(a,b,e,j,h,""+c)},this);else for(var g in a)a.hasOwnProperty(g)&&this._processForEachMember(g,b,e,j,h,g)};a.prototype._processForEachMember=function(a,b,e,j,h,g){this.stack.push(g);try{this._handleAsync(a,e,function(a,c){j[h]=a;if(b.nodeName.toLowerCase()==="loop")for(var e=0;e<b.childNodes.length;e++){var f=b.childNodes[e].cloneNode(!0);c.parentNode.insertBefore(f,c);this.processNode(f,
j)}else f=b.cloneNode(!0),f.removeAttribute("foreach"),c.parentNode.insertBefore(f,c),this.processNode(f,j);delete j[h]}.bind(this))}finally{this.stack.pop()}};a.prototype._processTextNode=function(a,b){var e=a.data,e=e.replace(this._templateRegion,"\uf001$$$1\uf002"),e=e.split(this._splitSpecial);e.length>1&&(e.forEach(function(e){e===null||e===void 0||e===""||(e.charAt(0)==="$"&&(e=this._envEval(e.slice(1),b,a.data)),this._handleAsync(e,a,function(a,b){var c=b.ownerDocument;a==null&&(a=this.options.blankNullUndefined?
"":""+a);typeof a.cloneNode==="function"?(a=this._maybeImportNode(a,c),b.parentNode.insertBefore(a,b)):typeof a.item==="function"&&a.length?Array.prototype.slice.call(a,0).forEach(function(a){a=this._maybeImportNode(a,c);b.parentNode.insertBefore(a,b)}.bind(this)):(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,e){if(a!=null&&typeof a.then==="function"){var j=b.ownerDocument.createElement("span");b.parentNode.insertBefore(j,b);a.then(function(a){e(a,j);j.parentNode.removeChild(j)}.bind(this))}else e(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,e){try{typeof a==="string"&&(a=a.split("."));var j=b[a[0]];if(a.length===1)return e!==void 0&&(b[a[0]]=e),typeof j==="function"?
j.bind(b):j;return!j?(this._handleError('"'+a[0]+'" is undefined'),null):this._property(a.slice(1),j,e)}catch(h){return this._handleError("Path error with '"+a+"'",h),"${"+a+"}"}};a.prototype._envEval=function(a,b,e){try{if(this.stack.push(e.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(j){return this._handleError("Template error evaluating '"+
a+"'",j),"${"+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)};e.Templater=a;e.template=function(b,d,e){e=new a(e||{});e.processNode(b,d);return e}});define("text!gcli/ui/intro.html",[],function(){return'\n<div>\n  <p>${l10n.introTextOpening}</p>\n\n  <p>\n    ${l10n.introTextCommands}\n    <span class="gcli-out-shortcut" onclick="${onclick}"\n        ondblclick="${ondblclick}" data-command="help">help</span>,\n    ${l10n.introTextKeys} <code>${l10n.introTextF1Escape}</code>.\n  </p>\n\n  <button onclick="${onGotIt}" if="${showHideButton}">${l10n.introTextGo}</button>\n</div>'});
define("text!gcli/ui/tooltip.css",[],function(){return"\n.gcli-panel {\n  -moz-transition-property: opacity, height;\n  -moz-transition-duration: 0.5s, 2s;\n  overflow-y: auto;\n  overflow-x: hidden;\n  z-index: 2;\n  position: absolute;\n  max-height: 100%;\n  max-width: 350px;\n  left: 0;\n  bottom: 0;\n  font-family: Segoe UI, Helvetica Neue, Verdana, Arial, sans-serif;\n  margin-bottom: -3px;\n}\n\n.gcli-panel.gcli-panel-hide {\n  opacity: 0;\n  height: 0;\n}\n\n.gcli-panel-connector {\n  height: 10px;\n  margin-top: -1px;\n  margin-left: 20px;\n  width: 20px;\n  background: white;\n  border-left: 1px solid #999;\n  border-right: 1px solid #999;\n}\n\n.gcli-tt-description {\n  padding: 5px 10px 0;\n  font-size: 90%;\n}\n\n.gcli-tt-error {\n  font-size: 80%;\n  color: #900;\n  padding: 0 10px;\n}\n\n.gcli-field {\n  width: 100%;\n}\n\n.gcli-field-javascript {\n  margin-bottom: 0;\n}\n\n.gcli-tt {\n  box-shadow: 0 0 10px 1px #ddd;\n  border: 1px solid #999;\n  border-radius: 3px;\n  margin: 10px 0 0 0;\n  background: hsla(0, 100%, 100%, 0.95);\n  padding-bottom: 5px;\n}"});
define("text!gcli/ui/tooltip.html",[],function(){return'\n<div class="gcli-tt" aria-live="polite">\n  <div class="gcli-tt-description" save="${descriptionEle}">${description}</div>\n  ${field.element}\n  <div class="gcli-tt-error" save="${errorEle}">${assignment.conversion.message}</div>\n  <div class="gcli-tt-highlight" save="${highlightEle}"></div>\n</div>'});define("text!gcli/ui/output_view.css",[],function(){return"\n.gcli-row-in {\n  padding: 0 4px;\n  box-shadow: 0 -6px 10px -6px #ddd;\n  border-top: 1px solid #bbb;\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-duration {\n  color: #666;\n}\n\n.gcli-row-prompt {\n  color: #00F;\n  font-weight: bold;\n  font-size: 120%;\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  margin: 0 10px 15px;\n  padding: 0 10px;\n  line-height: 1.2em;\n  font-size: 95%;\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 p {\n  margin: 5px 0;\n}\n\n.gcli-row-out a {\n  color: hsl(200,40%,40%);\n  text-decoration: none;\n}\n\n.gcli-row-out a:hover {\n  cursor: pointer;\n  border-bottom: 1px dotted hsl(200,40%,60%);\n}\n\n.gcli-row-out input[type=password],\n.gcli-row-out input[type=text],\n.gcli-row-out textarea {\n  font-size: 120%;\n  background: transparent;\n  padding: 3px;\n  border-radius: 3px;\n  border: 1px solid #bbb;\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}\n\n.gcli-row-terminal,\n.gcli-row-subterminal {\n  border-radius: 3px;\n  border: 1px solid #ddd;\n}\n\n.gcli-row-terminal {\n  height: 200px;\n  width: 620px;\n  font-size: 80%;\n}\n\n.gcli-row-subterminal {\n  height: 150px;\n  width: 300px;\n  font-size: 75%;\n}\n\n.gcli-out-shortcut {\n  font-weight: normal;\n  border: 1px solid #999;\n  border-radius: 3px;\n  color: #666;\n  cursor: pointer;\n  padding: 0 3px 1px;\n  margin: 1px 4px;\n  display: inline-block;\n}\n\n.gcli-out-shortcut:before {\n  content: '\\bb';\n  padding-right: 2px;\n  color: hsl(25,78%,50%);\n  font-weight: bold;\n  font-size: 110%;\n}"});
define("text!gcli/ui/output_terminal.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\' : \'\'}">${prompt}</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="${url(\'images/minus.png\')}"/>\n    <img class="gcli-row-hover gcli-row-hidden" onclick="${showOutput}" save="${elems.show}"\n        alt="Show command output" _src="${url(\'images/plus.png\')}"/>\n    <img class="gcli-row-hover" onclick="${remove}"\n        alt="Remove this command from the history"\n        _src="${url(\'images/closer.png\')}"/>\n    --\>\n    <img style="float:right;" _src="${url(\'images/throbber.gif\')}" save="${elems.throb}"/>\n  </div>\n\n  <\!-- The div for the command output --\>\n  <div class="gcli-row-out" aria-live="assertive" save="${elems.rowout}">\n  </div>\n</div>'});
define("gcli/history",["require","exports","module"],function(b,e){function a(){this._buffer=[""];this._current=0}a.prototype.destroy=function(){delete this._buffer};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]};e.History=a});
define("text!gcli/ui/inputter.css",[],function(){return"\n.gcli-in-input,\n.gcli-in-complete,\n.gcli-prompt {\n  font-family: Segoe UI, Helvetica Neue, Verdana, Arial, sans-serif;\n}\n\n.gcli-in-input,\n.gcli-in-complete {\n  font-size: 110%;\n  font-weight: normal;\n  font-style: normal;\n  padding: 0 0 0 22px;\n  background-color: transparent;\n}\n\n.gcli-in-input {\n  color: #000;\n  border: 0;\n  box-shadow: 0 0 10px 1px #ddd;\n  border-top: 1px solid #999;\n}\n\n.gcli-in-complete {\n  position: absolute;\n  z-index: -1000;\n  color: transparent;\n  margin-top: -1px;\n  border-top: 1px solid transparent;\n}\n\n.gcli-prompt {\n  position: absolute;\n  z-index: -1001;\n  padding: 0 1px;\n  color: hsl(25,78%,50%);\n  font-size: 150%;\n  font-weight: bold;\n  line-height: 95%;\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: hsl(200,40%,70%);\n}\n\n.gcli-in-todo {\n  color: hsl(48,28%,76%);\n}\n\n.gcli-in-closebrace {\n  color: hsl(0,0%,80%);\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/completer.html",[],function(){return'\n<div>\n  <loop foreach="member in ${statusMarkup}">\n    <span class="${member.className}">${member.string}</span>\n  </loop>\n  <span class="gcli-in-ontab">${directTabText}</span>\n  <span class="gcli-in-todo" foreach="param in ${emptyParameters}">${param}</span>\n  <span class="gcli-in-ontab">${arrowTabText}</span>\n  <span class="gcli-in-closebrace" if="${unclosedJs}">}</span>\n  <div class="gcli-in-scratchlink" if="${scratchLink}">${scratchLink}</div>\n</div>'});
define("gcli/ui/prompt",["require","exports","module"],function(b,e){function a(a,b){this.element=b.element;this.element.classList.add("gcli-prompt");this.element.appendChild(this.element.ownerDocument.createTextNode(a.promptChar||"\u00bb"));if(this.inputter=b.inputter){this.inputter.onResize.add(this.resized,this);var e=this.inputter.getDimensions();e&&this.resized(e)}}a.prototype.destroy=function(){this.inputter&&this.inputter.onResize.remove(this.resized,this);delete this.element};a.prototype.resized=
function(a){this.element.style.top=a.top+"px";this.element.style.height=a.height+"px";this.element.style.left=a.left+"px";this.element.style.width=a.width+"px"};e.Prompt=a});define("text!gcli/ui/display.css",[],function(){return"\n.gcli-output {\n  height: 100%;\n  overflow-x: hidden;\n  overflow-y: auto;\n  font-family: Segoe UI, Helvetica Neue, Verdana, Arial, sans-serif;\n}"});define("text!gcli/ui/display.html",[],function(){return'\n<div class="gcli-panel" save="${panel}">\n  <div save="${tooltip}"></div>\n  <div class="gcli-panel-connector"></div>\n</div>'});
define("gcli/types/spell",["require","exports","module"],function(b,e){function a(){this._nWords={}}a.letters="abcdefghijklmnopqrstuvwxyz".split("");a.prototype.train=function(a){a.forEach(function(a){a=a.toLowerCase();this._nWords[a]=this._nWords.hasOwnProperty(a)?this._nWords[a]+1:1},this)};a.prototype.correct=function(a){if(this._nWords.hasOwnProperty(a))return a;var b={},a=this._edits(a);a.forEach(function(a){this._nWords.hasOwnProperty(a)&&(b[this._nWords[a]]=a)},this);if(this._countKeys(b)>
0)return b[this._max(b)];a.forEach(function(a){this._edits(a).forEach(function(a){this._nWords.hasOwnProperty(a)&&(b[this._nWords[a]]=a)},this)},this);return this._countKeys(b)>0?b[this._max(b)]:null};a.prototype._countKeys=function(a){var b=0,e;for(e in a)a.hasOwnProperty(e)&&b++;return b};a.prototype._max=function(a){var b=[],e;for(e in a)a.hasOwnProperty(e)&&b.push(e);return Math.max.apply(null,b)};a.prototype._edits=function(b){for(var d=[],e=0;e<b.length;e++)d.push(b.slice(0,e)+b.slice(e+1));
for(e=0;e<b.length-1;e++)d.push(b.slice(0,e)+b.slice(e+1,e+2)+b.slice(e,e+1)+b.slice(e+2));for(e=0;e<b.length;e++)a.letters.forEach(function(a){d.push(b.slice(0,e)+a+b.slice(e+1))},this);for(e=0;e<=b.length;e++)a.letters.forEach(function(a){d.push(b.slice(0,e)+a+b.slice(e))},this);return d};e.Speller=a});
define("gcli/argument",["require","exports","module"],function(b,e){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(){this.suffix=this.prefix=this.text=""}function d(a,b,c){this.text=a!==void 0?a:"";this.prefix=b!==void 0?b:"";this.suffix=c!==void 0?c:"";d._moveSpaces(this)}function f(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 j(a){this.arg=a;this.text=a.text;this.prefix=a.prefix;this.suffix=a.suffix}function h(){this.suffix=this.prefix=this.text=""}function g(a,b,c){typeof a==="string"?(this.valueArg=this.nameArg=null,this.text=a,this.prefix=b,this.suffix=c):b==null?(this.nameArg=a,this.valueArg=null,this.text="",this.prefix=this.nameArg.toString(),this.suffix=""):(this.nameArg=a,this.valueArg=b,this.text=this.valueArg.text,this.prefix=this.nameArg.toString()+
this.valueArg.prefix,this.suffix=this.valueArg.suffix)}function k(){this.args=[]}a.prototype.type="Argument";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){var c=this.text,d=this.prefix,e=this.suffix;if(b.text!=null&&(c=b.text,!b.dontQuote)){var f=c.indexOf(" ")>=0||c.length==0,g=/['"]$/.test(d);f&&!g&&(d+="'",e="'"+e)}b.prefixSpace&&d.charAt(0)!==" "&&(d=" "+d);b.prefixPostSpace&&d.charAt(d.length-1)!==" "&&(d+=
" ");b.suffixSpace&&e.charAt(e.length-1)!==" "&&(e+=" ");return c===this.text&&e===this.suffix&&d===this.prefix?this:new (b.type||a)(c,d,e)};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};Object.defineProperty(a.prototype,"_summaryJson",{get:function(){return"<"+this.prefix+":"+this.text+":"+this.suffix+"> (a="+(this.assignment==null?"null":this.assignment.param.name)+", t="+this.type+")"},enumerable:!0});e.Argument=a;c.prototype=Object.create(a.prototype);c.prototype.type="BlankArgument";e.BlankArgument=c;d.prototype=Object.create(a.prototype);d.prototype.type="ScriptArgument";d._moveSpaces=function(a){for(;a.text.charAt(0)===
" ";)a.prefix+=" ",a.text=a.text.substring(1);for(;a.text.charAt(a.text.length-1)===" ";)a.suffix=" "+a.suffix,a.text=a.text.slice(0,-1)};d.prototype.beget=function(b){b.type=d;b=a.prototype.beget.call(this,b);d._moveSpaces(b);return b};e.ScriptArgument=d;f.prototype=Object.create(a.prototype);f.prototype.type="MergedArgument";f.prototype.assign=function(a){this.args.forEach(function(b){b.assign(a)},this);this.assignment=a};f.prototype.getArgs=function(){return this.args};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};e.MergedArgument=f;j.prototype=Object.create(a.prototype);j.prototype.type="TrueNamedArgument";j.prototype.assign=function(a){this.arg&&this.arg.assign(a);this.assignment=a};j.prototype.getArgs=function(){return[this.arg]};j.prototype.equals=function(a){return this===a?!0:a==null||!(a instanceof j)?!1:this.text===a.text&&this.prefix===a.prefix&&this.suffix===a.suffix};j.prototype.beget=function(b){b.text&&
console.error("Can't change text of a TrueNamedArgument",this,b);b.type=j;b=a.prototype.beget.call(this,b);b.arg=new a(b.text,b.prefix,b.suffix);return b};e.TrueNamedArgument=j;h.prototype=Object.create(a.prototype);h.prototype.type="FalseNamedArgument";h.prototype.getArgs=function(){return[]};h.prototype.equals=function(a){return this===a?!0:a==null||!(a instanceof h)?!1:this.text===a.text&&this.prefix===a.prefix&&this.suffix===a.suffix};e.FalseNamedArgument=h;g.prototype=Object.create(a.prototype);
g.prototype.type="NamedArgument";g.prototype.assign=function(a){this.nameArg.assign(a);this.valueArg!=null&&this.valueArg.assign(a);this.assignment=a};g.prototype.getArgs=function(){return this.valueArg?[this.nameArg,this.valueArg]:[this.nameArg]};g.prototype.equals=function(a){return this===a?!0:a==null?!1:!(a instanceof g)?!1:this.text===a.text&&this.prefix===a.prefix&&this.suffix===a.suffix};g.prototype.beget=function(b){b.type=g;var b=a.prototype.beget.call(this,b),c=/^([\s]*)([^\s]*)([\s]*['"]?)$/.exec(b.prefix);
this.valueArg==null&&b.text===""?(b.nameArg=new a(c[2],c[1],c[3]),b.valueArg=null):(b.nameArg=new a(c[2],c[1],""),b.valueArg=new a(b.text,c[3],b.suffix));return b};e.NamedArgument=g;k.prototype=Object.create(a.prototype);k.prototype.type="ArrayArgument";k.prototype.addArgument=function(a){this.args.push(a)};k.prototype.addArguments=function(a){Array.prototype.push.apply(this.args,a)};k.prototype.getArguments=function(){return this.args};k.prototype.assign=function(a){this.args.forEach(function(b){b.assign(a)},
this);this.assignment=a};k.prototype.getArgs=function(){return this.args};k.prototype.equals=function(a){if(this===a)return!0;if(a==null)return!1;if(a.type!=="ArrayArgument")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};k.prototype.toString=function(){return"{"+this.args.map(function(a){return a.toString()},this).join(",")+"}"};e.ArrayArgument=k});
define("gcli/types",["require","exports","module","gcli/argument","gcli/argument"],function(b,e){function a(a,b,c,d,e){this.value=a;this.arg=b;if(b==null)throw Error("Missing arg");this._status=c||h.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=h.combine(a.map(function(a){return a.getStatus()}));this.message="";this.predictions=[]}function d(){}var f=b("gcli/argument").Argument,j=b("gcli/argument").BlankArgument,
h={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=h.VALID,b=0;b<arguments.length;b++){var c=arguments[b];Array.isArray(c)&&(c=h.combine.apply(null,c));c>a&&(a=c)}return a}};e.Status=h;a.prototype.assign=function(a){this.arg.assign(a)};a.prototype.isDataProvided=function(){return this.arg.type!==
"BlankArgument"};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 a==null?!1: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||[]};a.prototype.constrainPredictionIndex=
function(a){if(a!=null){var b=this.getPredictions();if(b.length!==0)return a%=b.length,a<0&&(a=b.length+a),a}};a.maxPredictions=11;e.Conversion=a;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(", ")+" ]"};e.ArrayConversion=c;d.prototype.stringify=function(){throw Error("Not implemented");};d.prototype.parse=function(){throw Error("Not implemented");
};d.prototype.parseString=function(a){return this.parse(new f(a))};d.prototype.name=void 0;d.prototype.increment=function(){};d.prototype.decrement=function(){};d.prototype.getBlank=function(){return this.parse(new j)};d.prototype.getType=function(){return this};e.Type=d;var g={};e.getTypeNames=function(){return Object.keys(g)};e.registerType=function(a){if(typeof a==="object")if(a instanceof d){if(!a.name)throw Error("All registered types must have a name");g[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");g[a.prototype.name]=a}else throw Error("Unknown type: "+a);};e.registerTypes=function(a){Object.keys(a).forEach(function(b){var c=a[b];c.name=b;a.registerType(c)})};e.deregisterType=function(a){delete g[a.name]};e.getType=function(a){var b;if(typeof a==="string")return b=g[a],typeof b==="function"&&(b=new b({})),b;if(typeof a==="object"){if(!a.name)throw Error("Missing 'name' member to typeSpec");
b=g[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,e){var a,c;function d(){}function f(a){return a.indexOf("moz")===0||a.indexOf("webkit")===0||a.indexOf("ms")===0}var j=b("gcli/l10n"),h=b("gcli/types"),g=h.Conversion,k=h.Type,l=h.Status;e.startup=function(){h.registerType(d)};e.shutdown=function(){h.unregisterType(d)};var n;typeof window!=="undefined"&&(n=window);e.setGlobalObject=function(a){n=a};e.getGlobalObject=function(){return n};e.unsetGlobalObject=
function(){n=void 0};d.prototype=Object.create(k.prototype);d.prototype.stringify=function(a){return a==null?"":a};d.MAX_COMPLETION_MATCHES=10;d.prototype.parse=function(b){var e=b.text,h=n;if(e==="")return new g(void 0,b,l.INCOMPLETE);if(!isNaN(parseFloat(e))&&isFinite(e))return new g(e,b);if(e.trim().match(/(null|undefined|NaN|Infinity|true|false)/))return new g(e,b);var k=this._findCompletionBeginning(e);if(k.err)return new g(e,b,l.ERROR,k.err);if(k.state===a)return new g(e,b);if(k.state!==c)return new g(e,
b,l.INCOMPLETE,"");var k=e.substring(k.startPos).split("."),m,o;if(k.length>1){m=k.pop().trimLeft();for(var p=0;p<k.length;p++){o=k[p].trim();if(h==null)return new g(e,b,l.ERROR,j.lookup("jstypeParseScope"));if(o==="")return new g(e,b,l.INCOMPLETE,"");if(this._isSafeProperty(h,o))return new g(e,b);try{h=h[o]}catch(q){return new g(e,b,l.VALID,"")}}}else m=k[0].trimLeft();if(o&&!o.match(/^[0-9A-Za-z]*$/))return new g(e,b);if(h==null)return new g(e,b,l.ERROR,j.lookupFormat("jstypeParseMissing",[o]));
if(!m.match(/^[0-9A-Za-z]*$/))return new g(e,b);if(this._isIteratorOrGenerator(h))return null;o=m.length;var B=o===0?e:e.slice(0,-o),z=l.INCOMPLETE;o="";var y={},w=0,k=h;try{for(;k!=null&&Object.keys(y).length<d.MAX_COMPLETION_MATCHES;)Object.keys(k).forEach(function(a){a.indexOf(m)===0&&!(a in y)&&(y[a]={prop:a,distUpPrototypeChain:w})}),w++,k=Object.getPrototypeOf(k)}catch(G){return new g(e,b,l.INCOMPLETE,"")}y=Object.keys(y).map(function(a){if(a===m)z=l.VALID;return y[a]});y.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)});y.length>d.MAX_COMPLETION_MATCHES&&(y=y.slice(0,d.MAX_COMPLETION_MATCHES-1));k=y.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="("+j.lookup("jstypeParseError")+")"}return{name:B+a.prop,value:{name:B+a.prop,description:b},description:b,incomplete:c}},this);if(k.length===0)z=l.ERROR,o=j.lookupFormat("jstypeParseMissing",[m]);k.length===1&&z===l.VALID&&(k=void 0);return new g(e,b,z,o,k)};c=0;a=1;var m="{[(".split(""),o="}])".split(""),p={"{":"}","[":"]","(":")"},q=/[a-zA-Z0-9.]/;d.prototype._findCompletionBeginning=function(b){for(var d=[],e=c,f=0,g,h=!1,k=0;k<b.length;k++)switch(g=
b[k],q.test(g)||(h=!0),e){case c:if(g==='"')e=3;else if(g==="'")e=2;else if(g===";")f=k+1;else if(g===" ")f=k+1;else if(m.indexOf(g)!=-1)d.push({token:g,start:f}),f=k+1;else if(o.indexOf(g)!=-1){f=d.pop();if(!f||p[f.token]!=g)return{err:j.lookup("jstypeBeginSyntax")};f=g==="}"?k+1:f.start}break;case 3:if(g==="\\")k++;else if(g==="\n")return{err:j.lookup("jstypeBeginUnterm")};else g==='"'&&(e=c);break;case 2:if(g==="\\")k++;else if(g==="\n")return{err:j.lookup("jstypeBeginUnterm")};else g==="'"&&(e=
c)}e===c&&h&&(e=a);return{state:e,startPos:f}};d.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};d.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};d.prototype.name="javascript";e.JavascriptType=d});
define("gcli/types/node","require,exports,module,gcli/host,gcli/l10n,gcli/types,gcli/types,gcli/types,gcli/types,gcli/argument".split(","),function(b,e){function a(){}function c(a){if("allowEmpty"in a&&typeof a.allowEmpty!=="boolean")throw Error("Legal values for allowEmpty are [true|false]");this.allowEmpty=a.allowEmpty}var d=b("gcli/host"),f=b("gcli/l10n"),j=b("gcli/types"),h=b("gcli/types").Type,g=b("gcli/types").Status,k=b("gcli/types").Conversion,l=b("gcli/argument").BlankArgument;e.startup=
function(){j.registerType(a);j.registerType(c)};e.shutdown=function(){j.unregisterType(a);j.unregisterType(c)};var n;typeof document!=="undefined"&&(n=document);e._empty=[];e.setDocument=function(a){n=a;if(n!=null)e._empty=n.querySelectorAll("x>:root")};e.unsetDocument=function(){n=void 0};e.getDocument=function(){return n};a.prototype=Object.create(h.prototype);a.prototype.stringify=function(a){return a==null?"":a.__gcliQuery||"Error"};a.prototype.parse=function(a){if(a.text==="")return new k(void 0,
a,g.INCOMPLETE);var b;try{b=n.querySelectorAll(a.text)}catch(c){return new k(void 0,a,g.ERROR,f.lookup("nodeParseSyntax"))}if(b.length===0)return new k(void 0,a,g.INCOMPLETE,f.lookup("nodeParseNone"));if(b.length===1)return b=b.item(0),b.__gcliQuery=a.text,d.flashNodes(b,!0),new k(b,a,g.VALID,"");d.flashNodes(b,!1);return new k(void 0,a,g.ERROR,f.lookupFormat("nodeParseMultiple",[b.length]))};a.prototype.name="node";c.prototype=Object.create(h.prototype);c.prototype.getBlank=function(){return new k(e._empty,
new l,g.VALID)};c.prototype.stringify=function(a){return a==null?"":a.__gcliQuery||"Error"};c.prototype.parse=function(a){if(a.text==="")return new k(void 0,a,g.INCOMPLETE);var b;try{b=n.querySelectorAll(a.text)}catch(c){return new k(void 0,a,g.ERROR,f.lookup("nodeParseSyntax"))}if(b.length===0&&!this.allowEmpty)return new k(void 0,a,g.INCOMPLETE,f.lookup("nodeParseNone"));d.flashNodes(b,!1);return new k(b,a,g.VALID,"")};c.prototype.name="nodelist"});
define("gcli/types/selection","require,exports,module,gcli/l10n,gcli/types,gcli/types,gcli/types,gcli/types,gcli/types/spell".split(","),function(b,e){function a(a){a&&Object.keys(a).forEach(function(b){this[b]=a[b]},this)}var c=b("gcli/l10n"),d=b("gcli/types"),f=b("gcli/types").Type,j=b("gcli/types").Status,h=b("gcli/types").Conversion;b("gcli/types/spell");e.startup=function(){d.registerType(a)};e.shutdown=function(){d.unregisterType(a)};a.prototype=Object.create(f.prototype);a.prototype.stringify=
function(a){if(a==null)return"";if(this.stringifyProperty!=null)return a[this.stringifyProperty];var b=null;this.getLookup().some(function(c){return c.value===a?(b=c.name,!0):!1},this);return b};a.prototype.clearCache=function(){delete this._cachedLookup};a.prototype.getLookup=function(){if(this._cachedLookup)return this._cachedLookup;if(this.lookup)return typeof this.lookup==="function"?this.cacheable?this._cachedLookup=this.lookup():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");};a.prototype._dataToLookup=function(a){return a.map(function(a){return{name:a,value:a}},this)};a.prototype._findPredictions=function(a){var b=[],c=this.getLookup(),d,e,f=h.maxPredictions,j=a.text.toLowerCase();if(a.suffix.length>0){for(d=0;d<c.length&&b.length<f;d++)e=c[d],e.name===a.text&&this._addToPredictions(b,e,a);return b}for(d=0;d<c.length;d++)if(e=
c[d],e._gcliLowerName==null)e._gcliLowerName=e.name.toLowerCase();for(d=0;d<c.length&&b.length<f;d++)e=c[d],e.name===a.text&&this._addToPredictions(b,e,a);for(d=0;d<c.length&&b.length<f;d++)e=c[d],e._gcliLowerName.indexOf(j)===0&&!e.value.hidden&&b.indexOf(e)===-1&&this._addToPredictions(b,e,a);if(b.length<f/2)for(d=0;d<c.length&&b.length<f;d++)e=c[d],e._gcliLowerName.indexOf(j)!==-1&&!e.value.hidden&&b.indexOf(e)===-1&&this._addToPredictions(b,e,a);return b};a.prototype._addToPredictions=function(a,
b){a.push(b)};a.prototype.parse=function(a){var b=this._findPredictions(a);if(b.length===0){var d=c.lookupFormat("typesSelectionNomatch",[a.text]);return new h(void 0,a,j.ERROR,d,b)}this.noMatch&&this.noMatch();return b[0].name===a.text?new h(b[0].value,a,j.VALID,"",b):new h(void 0,a,j.INCOMPLETE,"",b)};a.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};a.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};a.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};a.prototype.name="selection";e.SelectionType=a});
define("gcli/types/basic","require,exports,module,gcli/l10n,gcli/types,gcli/types,gcli/types,gcli/types,gcli/types,gcli/types/selection,gcli/argument,gcli/argument".split(","),function(b,e){function a(){}function c(a){a?(this._min=a.min,this._max=a.max,this._step=a.step||1):this._step=1}function d(){}function f(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 j(){}
function h(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 g=b("gcli/l10n"),k=b("gcli/types"),l=b("gcli/types").Type,n=b("gcli/types").Status,m=b("gcli/types").Conversion,o=b("gcli/types").ArrayConversion,p=b("gcli/types/selection").SelectionType,q=b("gcli/argument").BlankArgument,r=b("gcli/argument").ArrayArgument;e.startup=function(){k.registerType(a);
k.registerType(c);k.registerType(d);k.registerType(j);k.registerType(f);k.registerType(h)};e.shutdown=function(){k.unregisterType(a);k.unregisterType(c);k.unregisterType(d);k.unregisterType(j);k.unregisterType(f);k.unregisterType(h)};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 m(void 0,a,n.INCOMPLETE,""):new m(a.text,a)};a.prototype.name="string";e.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}};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*-?/,"").length===0)return new m(void 0,a,n.INCOMPLETE,"");var b=parseInt(a.text,
10);if(isNaN(b))return new m(void 0,a,n.ERROR,g.lookupFormat("typesNumberNan",[a.text]));var c=this.getMax();if(c!=null&&b>c)return new m(void 0,a,n.ERROR,g.lookupFormat("typesNumberMax",[b,c]));c=this.getMin();return c!=null&&b<c?new m(void 0,a,n.ERROR,g.lookupFormat("typesNumberMin",[b,c])):new m(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 a=this.getMin(),a!=null?a:0;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(b!=null&&a<b)return b;b=this.getMax();return b!=null&&a>b?b:a};c.prototype.name="number";e.NumberType=c;d.prototype=Object.create(p.prototype);d.prototype.lookup=[{name:"false",value:!1},{name:"true",value:!0}];d.prototype.parse=function(a){return a.type==="TrueNamedArgument"?new m(!0,
a):a.type==="FalseNamedArgument"?new m(!1,a):p.prototype.parse.call(this,a)};d.prototype.stringify=function(a){return a==null?"":""+a};d.prototype.getBlank=function(){return new m(!1,new q,n.VALID,"",this.lookup)};d.prototype.name="boolean";e.BooleanType=d;f.prototype=Object.create(l.prototype);f.prototype.stringify=function(a){return this.defer().stringify(a)};f.prototype.parse=function(a){return this.defer().parse(a)};f.prototype.decrement=function(a){var b=this.defer();return b.decrement?b.decrement(a):
void 0};f.prototype.increment=function(a){var b=this.defer();return b.increment?b.increment(a):void 0};f.prototype.increment=function(a){var b=this.defer();return b.increment?b.increment(a):void 0};f.prototype.getType=function(){return this.defer()};Object.defineProperty(f.prototype,"isImportant",{get:function(){return this.defer().isImportant},enumerable:!0});f.prototype.name="deferred";e.DeferredType=f;j.prototype=Object.create(l.prototype);j.prototype.stringify=function(){return""};j.prototype.parse=
function(a){return new m(void 0,a)};j.prototype.name="blank";e.BlankType=j;h.prototype=Object.create(l.prototype);h.prototype.stringify=function(a){return a==null?"":a.join(" ")};h.prototype.parse=function(a){if(a.type==="ArrayArgument"){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");};h.prototype.getBlank=function(){return new o([],
new r)};h.prototype.name="array";e.ArrayType=h});
define("gcli/types/resource",["require","exports","module","gcli/types","gcli/types/selection"],function(b,e){function a(a,b,c,d){this.name=a;this.type=b;this.inline=c;this.element=d}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 d(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 j(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);}var h=b("gcli/types"),g=b("gcli/types/selection").SelectionType;e.startup=function(){h.registerType(j)};e.shutdown=function(){h.unregisterType(j);e.clearResourceCache()};
e.clearResourceCache=function(){l.clear()};var k;typeof document!=="undefined"&&(k=document);e.setDocument=function(a){k=a};e.unsetDocument=function(){l.clear();k=void 0};e.getDocument=function(){return k};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=[];if(k==null)return a;Array.prototype.forEach.call(k.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=l.get(a);d||(d=new c(a),l.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){}};d.prototype=Object.create(a.prototype);d.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()}};d._getAllScripts=function(){if(k==null)return[];var a=k.querySelectorAll("script"),a=Array.prototype.map.call(a,function(a){var b=l.get(a);b||(b=new d(a),l.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};j.prototype=Object.create(g.prototype);j.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,d._getAllScripts());return b.map(function(a){return{name:a.name,value:a}})};j.prototype.name="resource";var l={_cached:[],get:function(a){for(var b=0;b<l._cached.length;b++)if(l._cached[b].node===a)return l._cached[b].resource;return null},add:function(a,b){l._cached.push({node:a,resource:b})},clear:function(){l._cached=[]}}});define("text!gcli/ui/fields/menu.css",[],function(){return"\n.gcli-menu {\n  width: 100%;\n  overflow: hidden;\n  font-size: 90%;\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}\n\n.gcli-menu-template {\n  border-collapse: collapse;\n  width: 100%;\n}\n\n.gcli-menu-option {\n  overflow: hidden;\n  white-space: nowrap;\n  cursor: pointer;\n}\n\n.gcli-menu-option:hover {\n  background-image: -moz-linear-gradient(top, #f8f8f8, #ccc);\n  background-color: #ddd;\n}\n\n.gcli-menu-name {\n  padding: 2px 3px;\n  -moz-padding-start: 8px;\n  -webkit-padding-start: 8px;\n}\n\n.gcli-menu-desc {\n  color: #777;\n  padding: 0 3px;\n  -moz-padding-end: 8px;\n  -webkit-padding-end: 8px;\n}\n\n.gcli-menu-highlight,\n.gcli-menu-highlight.gcli-menu-option:hover {\n  background-image: -moz-linear-gradient(top, #eee, #b8b8b8);\n  background-color: #c8c8c8;\n}\n\n.gcli-menu-typed {\n  color: #FF6600;\n}\n\n.gcli-menu-more {\n  font-size: 80%;\n  text-align: right;\n  -moz-padding-end: 8px;\n  -webkit-padding-end: 8px;\n}"});
define("text!gcli/ui/fields/menu.html",[],function(){return'\n<div>\n  <table class="gcli-menu-template" aria-live="polite">\n    <tr class="gcli-menu-option" foreach="item in ${items}"\n        onclick="${onItemClickInternal}" title="${item.manual}">\n      <td class="gcli-menu-name">${item.name}</td>\n      <td class="gcli-menu-desc">${item.description}</td>\n    </tr>\n  </table>\n  <div class="gcli-menu-more" if="${items.hasMore}">${l10n.fieldMenuMore}</div>\n</div>'});
define("gcli/util",["require","exports","module"],function(b,e){function a(a,b){for(var c=0;c<b.length;c++)if(a===b[c])return c;return-1}function c(a,b){var c=a.getAttribute("data-command");c||(c=a.querySelector("*[data-command]").getAttribute("data-command"));c?b(c):console.warn("Missing data-command for "+util.findCssSelector(a))}e.createEvent=function(a){var b=[],c=!1,d=[],e=void 0,l=function(a){if(c)d.push(a);else for(var e=0;e<b.length;e++){var f=b[e];f.func.call(f.scope,a)}};l.add=function(a,
c){b.push({func:a,scope:c})};l.remove=function(c,d){var e=!1;b=b.filter(function(a){(a=a.func!==c&&a.scope!==d)||(e=!0);return a});e||console.warn("Failed to remove handler from "+a)};l.removeAll=function(){b=[]};l.holdFire=function(){c=!0};l.resumeFire=function(){if(c!==!0)throw Error("Event not held: "+a);c=!1;if(d.length!==0){if(d.length===1)l(d[0]);else{var b=d[0],j=d[d.length-1];e?l(e(b,j,d)):l(j)}d=[]}};Object.defineProperty(l,"eventCombiner",{set:function(a){if(typeof a!=="function")throw Error("eventCombiner is not a function");
e=a},enumerable:!0});return l};e.NS_XHTML="http://www.w3.org/1999/xhtml";e.NS_XUL="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";e.createElement=function(a,b){return e.isXmlDocument(a)?a.createElementNS(e.NS_XHTML,b):a.createElement(b)};e.clearElement=function(a){for(;a.hasChildNodes();)a.removeChild(a.firstChild)};var d=/^\s*$/;e.removeWhitespace=function(a,b){for(var c=0;c<a.childNodes.length;){var g=a.childNodes.item(c);g.nodeType===3&&d.test(g.textContent)?a.removeChild(g):(b&&
g.nodeType===1&&e.removeWhitespace(g,b),c++)}};e.importCss=function(a,b,c){if(a){b=b||document;if(!c){c=0;if(a.length!=0)for(var d=0;d<a.length;d++){var k=a.charCodeAt(d),c=(c<<5)-c+k;c&=c}c="hash-"+c}if(d=b.getElementById(c))return d.tagName.toLowerCase()!=="style"&&console.error("Warning: importCss passed id="+c+", but that pre-exists (and isn't a style tag)"),d;d=e.createElement(b,"style");d.id=c;d.appendChild(b.createTextNode(a));(b.getElementsByTagName("head")[0]||b.documentElement).appendChild(d);
return d}};e.setContents=function(a,b){if(typeof HTMLElement!=="undefined"&&b instanceof HTMLElement)e.clearElement(a),a.appendChild(b);else if(e.isXmlDocument(a.ownerDocument))try{var c=a.ownerDocument.documentElement.namespaceURI;if(!c)c=e.NS_XHTML;e.clearElement(a);for(var d=a.ownerDocument.createRange().createContextualFragment('<div xmlns="'+c+'">'+b+"</div>").firstChild;d.hasChildNodes();)a.appendChild(d.firstChild)}catch(k){throw console.error("Bad XHTML",k),console.trace(),k;}else a.innerHTML=
b};e.setTextContent=function(a,b){a.textContent=b};e.toDom=function(a,b){var c=e.createElement(a,"div");e.setContents(c,b);return c.children[0]};e.isXmlDocument=function(a){a=a||document;return a.contentType&&a.contentType!="text/html"?!0:a.xmlVersion!=null?!0:!1};e.findCssSelector=function(b){var c=b.ownerDocument;if(b.id&&c.getElementById(b.id)===b)return"#"+b.id;var d=b.tagName.toLowerCase();if(d==="html")return"html";if(d==="head")return"head";if(d==="body")return"body";b.parentNode==null&&console.log("danger: "+
d);var g,k;if(b.classList.length>0)for(var l=0;l<b.classList.length;l++){g="."+b.classList.item(l);k=c.querySelectorAll(g);if(k.length===1)return g;g=d+g;k=c.querySelectorAll(g);if(k.length===1)return g;k=a(b,b.parentNode.children)+1;g=g+":nth-child("+k+")";k=c.querySelectorAll(g);if(k.length===1)return g}k=a(b,b.parentNode.children)+1;return g=e.findCssSelector(b.parentNode)+" > "+d+":nth-child("+k+")"};e.createUrlLookup=function(a){return function(c){try{return b("text!gcli/ui/"+c)}catch(d){if(a.filename)return a.filename+
c;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}}};e.updateCommand=function(a,b){c(a,function(a){b.update(a)})};e.executeCommand=function(a,b){c(a,function(a){b.exec({visible:!0,typed:a})})};e.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}});
define("gcli/ui/view",["require","exports","module","gcli/util","gcli/ui/domtemplate"],function(b,e){var a=b("gcli/util"),c=b("gcli/ui/domtemplate");e.createView=function(b){if(b.html==null)throw Error("options.html is missing");return{isView:!0,appendTo:function(b,c){c===!0&&a.clearElement(b);b.appendChild(this.toDom(b.ownerDocument))},toDom:function(e){b.css&&a.importCss(b.css,e,b.cssId);e=a.toDom(e,b.html);c.template(e,b.data||{},b.options||{});return e}}}});
define("gcli/ui/inputter","require,exports,module,gcli/util,gcli/util,gcli/types,gcli/history,text!gcli/ui/inputter.css".split(","),function(b,e){var a;function c(a,b){this.requisition=b.requisition;this.focusManager=b.focusManager;this.element=b.element;this.element.classList.add("gcli-in-input");this.element.spellcheck=!1;this.document=this.element.ownerDocument;this.scratchpad=a.scratchpad;if(g!=null)this.style=d.importCss(g,this.document,"gcli-inputter");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.history=new h;this._scrollingThroughHistory=!1;this._choice=null;this.onChoiceChange=d.createEvent("Inputter.onChoiceChange");this.onMouseUp=this.onMouseUp.bind(this);this.element.addEventListener("mouseup",this.onMouseUp,!1);this.focusManager&&this.focusManager.addMonitoredElement(this.element,"input");
this.requisition.onTextChange.add(this.textChanged,this);this.assignment=this.requisition.getAssignmentAt(0);this.onAssignmentChange=d.createEvent("Inputter.onAssignmentChange");this.onInputChange=d.createEvent("Inputter.onInputChange");this.onResize=d.createEvent("Inputter.onResize");this.onWindowResize=this.onWindowResize.bind(this);this.document.defaultView.addEventListener("resize",this.onWindowResize,!1);this.requisition.update(this.element.value||"")}var d=b("gcli/util"),f=b("gcli/util").KeyEvent,
j=b("gcli/types").Status,h=b("gcli/history").History,g=b("text!gcli/ui/inputter.css");c.prototype.destroy=function(){this.document.defaultView.removeEventListener("resize",this.onWindowResize,!1);this.requisition.onTextChange.remove(this.textChanged,this);this.focusManager&&this.focusManager.removeMonitoredElement(this.element,"input");this.element.removeEventListener("mouseup",this.onMouseUp,!1);this.element.removeEventListener("keydown",this.onKeyDown,!1);this.element.removeEventListener("keyup",
this.onKeyUp,!1);this.history.destroy();this.style&&(this.style.parentNode.removeChild(this.style),delete this.style);delete this.onMouseUp;delete this.onKeyDown;delete this.onKeyUp;delete this.onWindowResize;delete this.tooltip;delete this.document;delete this.element};c.prototype.onWindowResize=function(){if(this.element){var a=this.getDimensions();if(a)this.onResize(a)}};c.prototype.getDimensions=function(){if(this.element.getBoundingClientRect){for(var a,b,c=this.element.parentNode;c&&c.nodeName!==
"#document";){var d=this.document.defaultView.getComputedStyle(c,"");if(d&&(d=d.getPropertyValue("position"),d==="absolute"||d==="fixed")){b=c.getBoundingClientRect();a=b.top;b=b.left;break}c=c.parentNode}c=this.element.getBoundingClientRect();return{top:c.top-(a||0)+1,height:c.bottom-c.top-1,left:c.left-(b||0)+2,width:c.right-c.left}}};c.prototype.onMouseUp=function(){this._checkAssignment()};c.prototype.textChanged=function(){if(this.document){if(this._caretChange==null)this._caretChange=a;var b=
this.requisition.toString(),c=this.getInputState();c.typed=b;this._processCaretChange(c);if(this.element.value!==b)this.element.value=b;this.onInputChange({inputState:c})}};a=3;c.prototype._processCaretChange=function(b){var c,d;switch(this._caretChange){case 1:c=0;d=b.typed.length;break;case 2:d=c=b.typed.length;break;case a:c=b.cursor.start;do c++;while(c<b.typed.length&&b.typed[c-1]!==" ");d=c;break;default:c=b.cursor.start,d=b.cursor.end}c=c>b.typed.length?b.typed.length:c;d=d>b.typed.length?
b.typed.length:d;b={typed:b.typed,cursor:{start:c,end:d}};if(this.element.selectionStart!==c)this.element.selectionStart=c;if(this.element.selectionEnd!==d)this.element.selectionEnd=d;this._checkAssignment(c);this._caretChange=null;return b};c.prototype._checkAssignment=function(a){if(a==null)a=this.element.selectionStart;a=this.requisition.getAssignmentAt(a);if(this.assignment!==a)this.assignment=a,this.onAssignmentChange({assignment:this.assignment});if(this.focusManager)a=this.assignment.conversion.message,
this.focusManager.setError(a!=null&&a!=="")};c.prototype.setInput=function(a){this.requisition.update(a)};c.prototype.setCursor=function(a){this._caretChange=0;this._processCaretChange({typed:this.element.value,cursor:a})};c.prototype.focus=function(){this.element.focus();this._checkAssignment()};c.prototype.onKeyDown=function(a){if(a.keyCode===f.DOM_VK_UP||a.keyCode===f.DOM_VK_DOWN)a.preventDefault();else if(!(a.keyCode===f.DOM_VK_F1||a.keyCode===f.DOM_VK_ESCAPE||a.keyCode===f.DOM_VK_UP||a.keyCode===
f.DOM_VK_DOWN)){if(this.focusManager)this.focusManager.onInputChange();if(a.keyCode===f.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.focusManager&&b.keyCode===f.DOM_VK_F1)this.focusManager.helpRequest();else if(this.focusManager&&b.keyCode===f.DOM_VK_ESCAPE)this.focusManager.removeHelp();
else if(b.keyCode===f.DOM_VK_UP)if(this.tooltip&&this.tooltip.isMenuShowing)this.changeChoice(-1);else if(this.element.value===""||this._scrollingThroughHistory)this._scrollingThroughHistory=!0,this.requisition.update(this.history.backward());else if(this.assignment.getStatus()===j.VALID){if(this.requisition.increment(this.assignment),this.focusManager)this.focusManager.onInputChange()}else this.changeChoice(-1);else if(b.keyCode===f.DOM_VK_DOWN)if(this.tooltip&&this.tooltip.isMenuShowing)this.changeChoice(1);
else if(this.element.value===""||this._scrollingThroughHistory)this._scrollingThroughHistory=!0,this.requisition.update(this.history.forward());else if(this.assignment.getStatus()===j.VALID){if(this.requisition.decrement(this.assignment),this.focusManager)this.focusManager.onInputChange()}else this.changeChoice(1);else if(b.keyCode===f.DOM_VK_RETURN)this.requisition.getStatus()===j.VALID?(this._scrollingThroughHistory=!1,this.history.add(this.element.value),this.requisition.exec()):this.tooltip.selectChoice()||
this.focusManager.setError(!0),this._choice=null;else if(b.keyCode===f.DOM_VK_TAB&&!b.shiftKey){if(this.element.value.length>0&&this.lastTabDownAt+1E3>b.timeStamp){this._caretChange=a;b=this.getInputState();this._processCaretChange(b);if(this._choice==null)this._choice=0;this.requisition.complete(b.cursor,this._choice)}this.lastTabDownAt=0;this._scrollingThroughHistory=!1;this._choice=null;this.onChoiceChange({choice:this._choice})}else this.scratchpad&&this.scratchpad.shouldActivate(b)?this.scratchpad.activate(this.element.value)&&
this.requisition.update(""):(this._scrollingThroughHistory=!1,this._caretChange=0,this.requisition.update(this.element.value),this._choice=null,this.onChoiceChange({choice:this._choice}))};c.prototype.changeChoice=function(a){if(this._choice==null)this._choice=0;this._choice+=a;this.onChoiceChange({choice:this._choice})};c.prototype.getCurrentAssignment=function(){return this.requisition.getAssignmentAt(this.element.selectionStart)};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};e.Inputter=c});
define("gcli/ui/completer","require,exports,module,gcli/util,gcli/ui/domtemplate,text!gcli/ui/completer.html".split(","),function(b,e){function a(a,b){this.requisition=b.requisition;this.scratchpad=a.scratchpad;this.input={typed:"",cursor:{start:0,end:0}};this.choice=0;this.element=b.element;this.element.classList.add("gcli-in-complete");this.element.setAttribute("tabindex","-1");this.element.setAttribute("aria-live","polite");this.document=this.element.ownerDocument;this.inputter=b.inputter;this.inputter.onInputChange.add(this.update,
this);this.inputter.onAssignmentChange.add(this.update,this);this.inputter.onChoiceChange.add(this.update,this);if(b.autoResize){this.inputter.onResize.add(this.resized,this);var d=this.inputter.getDimensions();d&&this.resized(d)}this.template=c.toDom(this.document,f);c.removeWhitespace(this.template,!0);this.update()}var c=b("gcli/util"),d=b("gcli/ui/domtemplate"),f=b("text!gcli/ui/completer.html");a.prototype.destroy=function(){this.inputter.onInputChange.remove(this.update,this);this.inputter.onAssignmentChange.remove(this.update,
this);this.inputter.onChoiceChange.remove(this.update,this);this.inputter.onResize.remove(this.resized,this);delete this.document;delete this.element;delete this.template;delete this.inputter};a.prototype.resized=function(a){this.element.style.top=a.top+"px";this.element.style.height=a.height+"px";this.element.style.lineHeight=a.height+"px";this.element.style.left=a.left+"px";this.element.style.width=a.width+"px"};a.prototype.update=function(a){this.choice=a&&a.choice!=null?a.choice:0;var a=this._getCompleterTemplateData(),
b=this.template.cloneNode(!0);d.template(b,a,{stack:"completer.html"});for(c.clearElement(this.element);b.hasChildNodes();)this.element.appendChild(b.firstChild)};a.prototype._getCompleterTemplateData=function(){var a=this.inputter.getInputState(),b="",c="",d=this.requisition.getAssignmentAt(a.cursor.start),e=[];if(a.typed.trim().length!==0){var f=d.arg,m=d.getPredictionAt(this.choice);if(m){if(m=m.name,f=f.text,d.isInName()&&(m=" "+m),f!==m){var o=f.replace(/^\s*/,"");m.indexOf(o)===0&&a.cursor.start===
a.typed.length?(o=f.match(/^(\s*)/)[0].length,b=m.slice(f.length-o)):c="\u21e5 "+m}}else f.type==="NamedArgument"&&f.text===""&&e.push("<"+d.param.type.name+">\u00a0")}b!==""?b+="\u00a0":this.requisition.typedEndsWithSeparator()||e.unshift("\u00a0");a=this.requisition.getInputStatusMarkup(a.cursor.start);a.forEach(function(a){a.string=a.string.replace(/ /g,"\u00a0");a.className="gcli-in-"+a.status.toString().toLowerCase()},this);m=(f=this.requisition.commandAssignment.value)&&f.name==="{";this.requisition.getAssignments().forEach(function(a){a.param.isPositionalAllowed&&
a.arg.toString().trim()===""&&(b!==""&&d===a||e.push(a.param.isDataRequired?"<"+a.param.name+">\u00a0":"["+a.param.name+"]\u00a0"))}.bind(this));var p=!1;f&&f.hasNamedParameters&&f.params.forEach(function(a){var b=this.requisition.getAssignment(a.name).arg;!a.isPositionalAllowed&&!a.hidden&&b.type==="BlankArgument"&&(p=!0)},this);p&&e.push("[options]\u00a0");f=m&&this.requisition.getAssignment(0).arg.suffix.indexOf("}")===-1;return{statusMarkup:a,directTabText:b,emptyParameters:e,arrowTabText:c,unclosedJs:f,
scratchLink:this.scratchpad&&m?this.scratchpad.linkText:""}};e.Completer=a});
define("gcli/ui/fields","require,exports,module,gcli/util,gcli/util,gcli/types/basic".split(","),function(b,e){function a(a,b){this.type=a;this.document=b.document;this.requisition=b.requisition}function c(b,c){a.call(this,b,c);this.element=d.createElement(this.document,"div");this.onFieldChange=d.createEvent("BlankField.onFieldChange")}var d=b("gcli/util"),f=b("gcli/util").KeyEvent,j=b("gcli/types/basic").BlankType;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=""),d.setContents(this.messageElement,a))};a.prototype.onInputChange=function(a){var b=this.getConversion();this.onFieldChange({conversion:b});this.setMessage(b.message);a.keyCode===f.DOM_VK_RETURN&&
this.requisition.exec()};a.prototype.isImportant=!1;a.claim=function(){throw Error("Field should not be used directly");};a.TOOLTIP_MATCH=5;a.TOOLTIP_DEFAULT=4;a.MATCH=3;a.DEFAULT=2;a.BASIC=1;a.NO_MATCH=0;e.Field=a;var h=[];e.addField=function(a){if(typeof a!=="function")throw console.error("addField erroring on ",a),Error("addField requires a Field constructor");h.push(a)};e.removeField=function(b){if(typeof b!=="string")fields=fields.filter(function(a){return a!==b}),delete fields[b];else if(b instanceof
a)removeField(b.name);else throw console.error("removeField erroring on ",b),Error("removeField requires an instance of Field");};e.getField=function(b,d){var e,f=-1;h.forEach(function(a){var c=a.claim(b);c>f&&(f=c,e=a)});if(!e)throw console.error("Unknown field type ",b," in ",h),Error("Can't find field for "+b);return d.tooltip&&f<a.TOOLTIP_DEFAULT?new c(b,d):new e(b,d)};c.prototype=Object.create(a.prototype);c.claim=function(b){return b instanceof j?a.MATCH:a.NO_MATCH};c.prototype.setConversion=
function(a){this.setMessage(a.message)};c.prototype.getConversion=function(){return this.type.parse(new Argument)};e.addField(c)});
define("gcli/ui/fields/basic","require,exports,module,gcli/util,gcli/l10n,gcli/argument,gcli/argument,gcli/argument,gcli/argument,gcli/types,gcli/types,gcli/types/basic,gcli/types/basic,gcli/types/basic,gcli/types/basic,gcli/types/basic,gcli/ui/fields,gcli/ui/fields".split(","),function(b,e){function a(a,b){t.call(this,a,b);this.arg=new k;this.element=h.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.onFieldChange=h.createEvent("StringField.onFieldChange")}function c(a,b){t.call(this,a,b);this.arg=new k;this.element=h.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.onFieldChange=h.createEvent("NumberField.onFieldChange")}function d(a,b){t.call(this,a,b);this.name=b.name;this.named=b.named;this.element=h.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.onFieldChange=h.createEvent("BooleanField.onFieldChange")}function f(a,b){t.call(this,a,b);this.options=b;this.requisition.onAssignmentChange.add(this.update,
this);this.element=h.createElement(this.document,"div");this.update();this.onFieldChange=h.createEvent("DeferredField.onFieldChange")}function j(a,b){t.call(this,a,b);this.options=b;this._onAdd=this._onAdd.bind(this);this.members=[];this.element=h.createElement(this.document,"div");this.element.classList.add("gcli-array-parent");this.addButton=h.createElement(this.document,"button");this.addButton.classList.add("gcli-array-member-add");this.addButton.addEventListener("click",this._onAdd,!1);this.addButton.innerHTML=
g.lookup("fieldArrayAdd");this.element.appendChild(this.addButton);this.container=h.createElement(this.document,"div");this.container.classList.add("gcli-array-members");this.element.appendChild(this.container);this.onInputChange=this.onInputChange.bind(this);this.onFieldChange=h.createEvent("ArrayField.onFieldChange")}var h=b("gcli/util"),g=b("gcli/l10n"),k=b("gcli/argument").Argument,l=b("gcli/argument").TrueNamedArgument,n=b("gcli/argument").FalseNamedArgument,m=b("gcli/argument").ArrayArgument;
b("gcli/types");var o=b("gcli/types").ArrayConversion,p=b("gcli/types/basic").StringType,q=b("gcli/types/basic").NumberType,r=b("gcli/types/basic").BooleanType,s=b("gcli/types/basic").DeferredType,u=b("gcli/types/basic").ArrayType,t=b("gcli/ui/fields").Field,v=b("gcli/ui/fields");e.startup=function(){v.addField(a);v.addField(c);v.addField(d);v.addField(f);v.addField(j)};e.shutdown=function(){v.removeField(a);v.removeField(c);v.removeField(d);v.removeField(f);v.removeField(j)};a.prototype=Object.create(t.prototype);
a.prototype.destroy=function(){t.prototype.destroy.call(this);this.element.removeEventListener("keyup",this.onInputChange,!1);delete this.element;delete this.document;delete this.onInputChange};a.prototype.setConversion=function(a){this.arg=a.arg;this.element.value=a.arg.text;this.setMessage(a.message)};a.prototype.getConversion=function(){this.arg=this.arg.beget({text:this.element.value,prefixSpace:!0});return this.type.parse(this.arg)};a.claim=function(a){return a instanceof p?t.MATCH:t.BASIC};
c.prototype=Object.create(t.prototype);c.claim=function(a){return a instanceof q?t.MATCH:t.NO_MATCH};c.prototype.destroy=function(){t.prototype.destroy.call(this);this.element.removeEventListener("keyup",this.onInputChange,!1);delete this.element;delete this.document;delete this.onInputChange};c.prototype.setConversion=function(a){this.arg=a.arg;this.element.value=a.arg.text;this.setMessage(a.message)};c.prototype.getConversion=function(){this.arg=this.arg.beget({text:this.element.value,prefixSpace:!0});
return this.type.parse(this.arg)};d.prototype=Object.create(t.prototype);d.claim=function(a){return a instanceof r?t.MATCH:t.NO_MATCH};d.prototype.destroy=function(){t.prototype.destroy.call(this);this.element.removeEventListener("change",this.onInputChange,!1);delete this.element;delete this.document;delete this.onInputChange};d.prototype.setConversion=function(a){this.element.checked=a.value;this.setMessage(a.message)};d.prototype.getConversion=function(){return this.type.parse(this.named?this.element.checked?
new l(new k(" --"+this.name)):new n:new k(" "+this.element.checked))};f.prototype=Object.create(t.prototype);f.prototype.update=function(){var a=this.type.defer();if(a!==this.subtype)this.field&&(this.field.onFieldChange.remove(this.fieldChanged,this),this.field.destroy()),this.subtype=a,this.field=v.getField(a,this.options),this.field.onFieldChange.add(this.fieldChanged,this),h.clearElement(this.element),this.element.appendChild(this.field.element)};f.claim=function(a){return a instanceof s?t.MATCH:
t.NO_MATCH};f.prototype.destroy=function(){t.prototype.destroy.call(this);this.requisition.onAssignmentChange.remove(this.update,this);delete this.element;delete this.document;delete this.onInputChange};f.prototype.setConversion=function(a){this.field.setConversion(a)};f.prototype.getConversion=function(){return this.field.getConversion()};Object.defineProperty(f.prototype,"isImportant",{get:function(){return this.field.isImportant},enumerable:!0});j.prototype=Object.create(t.prototype);j.claim=function(a){return a instanceof
u?t.MATCH:t.NO_MATCH};j.prototype.destroy=function(){t.prototype.destroy.call(this);this.addButton.removeEventListener("click",this._onAdd,!1)};j.prototype.setConversion=function(a){h.clearElement(this.container);this.members=[];a.conversions.forEach(function(a){this._onAdd(null,a)},this)};j.prototype.getConversion=function(){for(var a=[],b=new m,c=0;c<this.members.length;c++){var d=this.members[c].field.getConversion();a.push(d);b.addArgument(d.arg)}return new o(a,b)};j.prototype._onAdd=function(a,
b){var c=h.createElement(this.document,"div");c.classList.add("gcli-array-member");this.container.appendChild(c);var d=v.getField(this.type.subtype,this.options);d.onFieldChange.add(function(){var a=this.getConversion();this.onFieldChange({conversion:a});this.setMessage(a.message)},this);b&&d.setConversion(b);c.appendChild(d.element);var e=h.createElement(this.document,"button");e.classList.add("gcli-array-member-del");e.addEventListener("click",this._onDel,!1);e.innerHTML=g.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)}});
define("gcli/settings",["require","exports","module","gcli/util","gcli/types"],function(b,e){function a(){}function c(a,b,c,e){this.name=a;this.type=b;this.description=c;this._defaultValue=e;this.onChange=d.createEvent("Setting.onChange");this.setDefault()}var d=b("gcli/util"),f=b("gcli/types"),j={},h={},g;e.setDefaults=function(a){Object.keys(a).forEach(function(b){h[b]===void 0&&(h[b]=a[b])})};e.startup=function(){g=new a;g.load(h)};e.shutdown=function(){};e.getAll=function(a){var b=[];Object.keys(j).forEach(function(c){(a==
null||c.indexOf(a)!==-1)&&b.push(j[c])}.bind(this));b.sort(function(a,b){return a.name.localeCompare(b.name)}.bind(this));return b};e.addSetting=function(a){var b=f.getType(a.type),a=new c(a.name,b,a.description,a.defaultValue);j[a.name]=a;e.onChange({added:a.name});return a};e.getSetting=function(a){return j[a]};e.removeSetting=function(a){a=typeof nameOrPrefSpec==="string"?a:a.name;delete j[a];e.onChange({removed:a})};e.onChange=d.createEvent("Settings.onChange");a.prototype.load=function(a){if(typeof localStorage!==
"undefined"){var b=localStorage.getItem("gcli-settings");if(b!=null){var c=JSON.parse(b);Object.keys(c).forEach(function(b){a[b]=c[b]})}}};a.prototype.save=function(a){typeof localStorage!=="undefined"&&(a=JSON.stringify(a),localStorage.setItem("gcli-settings",a))};e.LocalSettingStorage=a;c.prototype.setDefault=function(){this.value=this._defaultValue};Object.defineProperty(c.prototype,"value",{get:function(){return h[this.name]},set:function(a){h[this.name]=a;g.save(h);this.onChange({setting:this,
value:a})},enumerable:!0})});
define("gcli/types/setting","require,exports,module,gcli/settings,gcli/types,gcli/types/selection,gcli/types/basic".split(","),function(b,e){function a(){d.onChange.add(function(){this.clearCache()},this)}function c(){}var d=b("gcli/settings"),f=b("gcli/types"),j=b("gcli/types/selection").SelectionType,h=b("gcli/types/basic").DeferredType;e.startup=function(){f.registerType(a);f.registerType(c)};e.shutdown=function(){f.unregisterType(a);f.unregisterType(c)};var g=null;a.prototype=new j({cacheable:!0});
a.prototype.lookup=function(){return d.getAll().map(function(a){return{name:a.name,value:a}})};a.prototype.noMatch=function(){g=null};a.prototype.stringify=function(a){g=a;return j.prototype.stringify.call(this,a)};a.prototype.parse=function(a){a=j.prototype.parse.call(this,a);g=a.value;return a};a.prototype.name="setting";c.prototype=Object.create(h.prototype);c.prototype.defer=function(){return g!=null?g.type:f.getType("blank")};c.prototype.name="settingValue"});
define("gcli/canon","require,exports,module,gcli/util,gcli/l10n,gcli/types,gcli/types,gcli/types/basic,gcli/types/selection".split(","),function(b,e){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.hasNamedParameters=!1;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 e=!1;if(this.returnType==null)this.returnType="string";c.forEach(function(a){if(a.group)a.params.forEach(function(b){b=new d(b,this,a.group);this.params.push(b);if(!b.isPositionalAllowed)this.hasNamedParameters=!0},this),e=!0;else if(e)throw Error("Parameters can't come after param groups. Ignoring "+this.name+"/"+a.name);else{var b=new d(a,this,null);this.params.push(b);if(!b.isPositionalAllowed)this.hasNamedParameters=!0}},this)}function d(a,b,c){this.command=b||{name:"unnamed"};
this.paramSpec=a;this.name=this.paramSpec.name;this.type=this.paramSpec.type;this.groupName=c;this.defaultValue=this.paramSpec.defaultValue;if(!this.name)throw Error("In "+this.command.name+": all params must have a name");a=this.type;this.type=g.getType(a);if(this.type==null)throw console.error("Known types: "+g.getTypeNames().join(", ")),Error("In "+this.command.name+"/"+this.name+": can't find type for: "+JSON.stringify(a));if(this.type instanceof l){if(this.defaultValue!==void 0)throw Error("In "+
this.command.name+"/"+this.name+": boolean parameters can not have a defaultValue. Ignoring");this.defaultValue=!1}if(this.defaultValue!=null)try{var d=this.type.parseString(this.type.stringify(this.defaultValue));if(d.getStatus()!==k.VALID)throw Error("In "+this.command.name+"/"+this.name+": Error round tripping defaultValue. status = "+d.getStatus());}catch(e){throw Error("In "+this.command.name+"/"+this.name+": "+e);}if(this.defaultValue===void 0)this.defaultValue=this.type.getBlank().value;if(!this.isPositionalAllowed&&
this.defaultValue===void 0)throw Error("In "+this.command.name+"/"+this.name+": Missing defaultValue for optional parameter.");}function f(){this.onOutput=j.createEvent("CommandOutputManager.onOutput")}var j=b("gcli/util"),h=b("gcli/l10n"),g=b("gcli/types"),k=b("gcli/types").Status,l=b("gcli/types/basic").BooleanType;b("gcli/types/selection");e.Command=c;d.prototype.isKnownAs=function(a){return a==="--"+this.name?!0:!1};d.prototype.getBlank=function(){return this.type.getBlank?this.type.getBlank():
this.type.parseString("")};Object.defineProperty(d.prototype,"manual",{get:function(){return a(this.paramSpec.manual||void 0)},enumerable:!0});Object.defineProperty(d.prototype,"description",{get:function(){return a(this.paramSpec.description||void 0,"canonDescNone")},enumerable:!0});Object.defineProperty(d.prototype,"isDataRequired",{get:function(){return this.defaultValue===void 0},enumerable:!0});Object.defineProperty(d.prototype,"hidden",{get:function(){return this.paramSpec.hidden},enumerable:!0});
Object.defineProperty(d.prototype,"isPositionalAllowed",{get:function(){return this.groupName==null},enumerable:!0});e.Parameter=d;var n={},m=[],o={};e.addCommand=function(a){n[a.name]!=null&&(delete n[a.name],m=m.filter(function(b){return b!==a.name}));var b=new c(a);n[a.name]=b;m.push(a.name);m.sort();o[a.name]=a;e.onCanonChange();return b};e.removeCommand=function(a){var b=typeof a==="string"?a:a.name;if(!n[b])return!1;delete n[b];delete o[b];m=m.filter(function(a){return a!==b});e.onCanonChange();
return!0};e.getCommand=function(a){return n[a]||void 0};e.getCommands=function(){return Object.keys(n).map(function(a){return n[a]},this)};e.getCommandNames=function(){return m.slice(0)};e.getCommandSpecs=function(){return o};e.onCanonChange=j.createEvent("canon.onCanonChange");e.CommandOutputManager=f;e.commandOutputManager=new f});
define("gcli/types/command","require,exports,module,gcli/canon,gcli/l10n,gcli/types,gcli/types/selection,gcli/types,gcli/types".split(","),function(b,e){function a(a){this.requisition=a.requisition;this.isIncompleteName=a.isIncompleteName;this.stringifyProperty="name"}function c(){this.stringifyProperty="name"}var d=b("gcli/canon"),f=b("gcli/l10n"),j=b("gcli/types"),h=b("gcli/types/selection").SelectionType,g=b("gcli/types").Status,k=b("gcli/types").Conversion;e.startup=function(){j.registerType(c);
j.registerType(a)};e.shutdown=function(){j.unregisterType(c);j.unregisterType(a)};a.prototype=Object.create(h.prototype);a.prototype.name="param";a.prototype.lookup=function(){var a=[];this.requisition.commandAssignment.value.params.forEach(function(b){var c=this.requisition.getAssignment(b.name).arg;!b.isPositionalAllowed&&c.type==="BlankArgument"&&a.push({name:"--"+b.name,value:b})},this);return a};a.prototype.parse=function(a){return this.isIncompleteName?h.prototype.parse.call(this,a):new k(void 0,
a,g.ERROR,f.lookup("cliUnusedArg"))};c.prototype=Object.create(h.prototype);c.prototype.name="command";c.prototype.lookup=function(){var a=d.getCommands();a.sort(function(a,b){return a.name.localeCompare(b.name)});return a.map(function(a){return{name:a.name,value:a}},this)};c.prototype._addToPredictions=function(a,b,c){(c.text.length!==0||b.name.indexOf(" ")===-1)&&a.push(b)};c.prototype.parse=function(a){var b=function(){return this._findPredictions(a)}.bind(this),c=this._findPredictions(a);if(c.length===
0)return c=f.lookupFormat("typesSelectionNomatch",[a.text]),new k(void 0,a,g.ERROR,c,b);var d=c[0].value;return c.length===1?d.name===a.text&&typeof d.exec==="function"?new k(d,a,g.VALID,""):new k(void 0,a,g.INCOMPLETE,"",b):c[0].name===a.text?new k(d,a,g.VALID,"",b):new k(void 0,a,g.INCOMPLETE,"",b)}});
define("gcli/ui/focus","require,exports,module,gcli/util,gcli/settings,gcli/l10n,gcli/canon".split(","),function(b,e){function a(a,b){a=a||{};this._document=b.document||document;this._debug=a.debug||!1;this._blurDelay=a.blurDelay||150;this._window=this._document.defaultView;this._commandOutputManager=a.commandOutputManager||j.commandOutputManager;this._commandOutputManager.onOutput.add(this._outputted,this);this._blurDelayTimeout=null;this._monitoredElements=[];this._recentOutput=this._helpRequested=
this._hasFocus=this._isError=!1;this.onVisibilityChange=c.createEvent("FocusManager.onVisibilityChange");this._focused=this._focused.bind(this);this._document.addEventListener("focus",this._focused,!0);g.onChange.add(this._eagerHelperChanged,this);this.isOutputVisible=this.isTooltipVisible=void 0;this._checkShow()}var c=b("gcli/util"),d=b("gcli/settings"),f=b("gcli/l10n"),j=b("gcli/canon"),h={name:"eagerHelper",type:{name:"selection",lookup:[{name:"never",value:1},{name:"sometimes",value:2},{name:"always",
value:3}]},defaultValue:2,description:f.lookup("eagerHelperDesc"),ignoreTypeDifference:!0},g;e.startup=function(){g=d.addSetting(h)};e.shutdown=function(){d.removeSetting(h);g=void 0};a.prototype.destroy=function(){g.onChange.remove(this._eagerHelperChanged,this);this._document.removeEventListener("focus",this._focused,!0);this._commandOutputManager.onOutput.remove(this._outputted,this);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)this._window.clearTimeout(this._blurDelayTimeout),this._blurDelayTimeout=null;delete this._focused;delete this._document;delete this._window;delete this._commandOutputManager};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._document.activeElement===a&&this._reportFocus(b);this._monitoredElements.push(c)};a.prototype.removeMonitoredElement=function(a,b){this._debug&&console.log("FocusManager.removeMonitoredElement("+(b||"unknown")+")");this._monitoredElements=this._monitoredElements.filter(function(b){return b.element===a?(a.removeEventListener("focus",b.onFocus,!0),a.removeEventListener("blur",
b.onBlur,!0),!1):!0})};a.prototype.updatePosition=function(a){this.onVisibilityChange({tooltipVisible:this.isTooltipVisible,outputVisible:this.isOutputVisible,dimensions:a})};a.prototype._outputted=function(){this._recentOutput=!0;this._helpRequested=!1;this._checkShow()};a.prototype._focused=function(){this._reportBlur("document")};a.prototype._reportFocus=function(a){this._debug&&console.log("FocusManager._reportFocus("+(a||"unknown")+")");if(this._blurDelayTimeout)this._debug&&console.log("FocusManager.cancelBlur"),
this._window.clearTimeout(this._blurDelayTimeout),this._blurDelayTimeout=null;if(!this._hasFocus)this._hasFocus=!0;this._checkShow()};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=this._window.setTimeout(function(){this._debug&&console.log("FocusManager.blur");this._hasFocus=!1;this._checkShow();this._blurDelayTimeout=null}.bind(this),
this._blurDelay)};a.prototype._eagerHelperChanged=function(){this._checkShow()};a.prototype.onInputChange=function(){this._recentOutput=!1;this._checkShow()};a.prototype.helpRequest=function(){this._debug&&console.log("FocusManager.helpRequest");this._helpRequested=!0;this._recentOutput=!1;this._checkShow()};a.prototype.removeHelp=function(){this._debug&&console.log("FocusManager.removeHelp");this._recentOutput=this._helpRequested=this._isError=this._importantFieldFlag=!1;this._checkShow()};a.prototype.setImportantFieldFlag=
function(a){this._debug&&console.log("FocusManager.setImportantFieldFlag",a);this._importantFieldFlag=a;this._checkShow()};a.prototype.setError=function(a){this._debug&&console.log("FocusManager._isError",a);this._isError=a;this._checkShow()};a.prototype._checkShow=function(){var a=!1,b={tooltipVisible:this.isTooltipVisible,outputVisible:this.isOutputVisible},c=this._shouldShowTooltip();if(this.isTooltipVisible!==c.visible)b.tooltipVisible=this.isTooltipVisible=c.visible,a=!0;c=this._shouldShowOutput();
if(this.isOutputVisible!==c.visible)b.outputVisible=this.isOutputVisible=c.visible,a=!0;a&&(this._debug&&console.log("FocusManager.onVisibilityChange",b),this.onVisibilityChange(b))};a.prototype._shouldShowTooltip=function(){return!this._hasFocus?{visible:!1,reason:"notHasFocus"}:g.value===1?{visible:!1,reason:"eagerHelperNever"}:g.value===3?{visible:!0,reason:"eagerHelperAlways"}:this._isError?{visible:!0,reason:"isError"}:this._helpRequested?{visible:!0,reason:"helpRequested"}:this._importantFieldFlag?
{visible:!0,reason:"importantFieldFlag"}:{visible:!1,reason:"default"}};a.prototype._shouldShowOutput=function(){return!this._hasFocus?{visible:!1,reason:"notHasFocus"}:this._recentOutput?{visible:!0,reason:"recentOutput"}:{visible:!1,reason:"default"}};e.FocusManager=a});
define("gcli/ui/output_terminal","require,exports,module,gcli/util,gcli/canon,gcli/ui/domtemplate,text!gcli/ui/output_view.css,text!gcli/ui/output_terminal.html".split(","),function(b,e,a){function c(a,b){this.element=b.element;this.requisition=b.requisition;this.commandOutputManager=a.commandOutputManager||j.commandOutputManager;this.commandOutputManager.onOutput.add(this.outputted,this);var c=b.element.ownerDocument;if(g!=null)this.style=f.importCss(g,c,"gcli-output-view");this.template=f.toDom(c,
k);this.templateOptions={allowEval:!0,stack:"output_terminal.html"}}function d(b,c){this.outputData=b;this.outputTerminal=c;this.url=f.createUrlLookup(a);this.elems={rowin:null,rowout:null,hide:null,show:null,duration:null,throb:null,prompt:null};var d=this.outputTerminal.template.cloneNode(!0);h.template(d,this,this.outputTerminal.templateOptions);this.outputTerminal.element.appendChild(this.elems.rowin);this.outputTerminal.element.appendChild(this.elems.rowout);this.outputData.onClose.add(this.closed,
this);this.outputData.onChange.add(this.changed,this)}var f=b("gcli/util"),j=b("gcli/canon"),h=b("gcli/ui/domtemplate"),g=b("text!gcli/ui/output_view.css"),k=b("text!gcli/ui/output_terminal.html");c.prototype.destroy=function(){this.style&&(this.style.parentNode.removeChild(this.style),delete this.style);this.commandOutputManager.onOutput.remove(this.outputted,this);delete this.commandOutputManager;delete this.requisition;delete this.element;delete this.template};c.prototype.outputted=function(a){if(!a.output.hidden)a.output.view=
new d(a.output,this)};c.prototype.setHeight=function(a){this.element.style.height=a+"px"};e.OutputTerminal=c;d.prototype.destroy=function(){this.outputData.onChange.remove(this.changed,this);this.outputData.onClose.remove(this.closed,this);this.outputTerminal.element.removeChild(this.elems.rowin);this.outputTerminal.element.removeChild(this.elems.rowout);delete this.outputData;delete this.outputTerminal;delete this.url;delete this.elems};Object.defineProperty(d.prototype,"prompt",{get:function(){return this.outputData.canonical?
"\u00bb":""},enumerable:!0});d.prototype.copyToInput=function(){this.outputTerminal.requisition&&this.outputTerminal.requisition.update(this.outputData.typed)};d.prototype.execute=function(){this.outputTerminal.requisition&&this.outputTerminal.requisition.exec({typed:this.outputData.typed})};d.prototype.hideOutput=function(a){this.elems.rowout.style.display="none";this.elems.hide.classList.add("cmd_hidden");this.elems.show.classList.remove("cmd_hidden");a.stopPropagation()};d.prototype.showOutput=
function(a){this.elems.rowout.style.display="block";this.elems.hide.classList.remove("cmd_hidden");this.elems.show.classList.add("cmd_hidden");a.stopPropagation()};d.prototype.closed=function(){this.destroy()};d.prototype.changed=function(){var a=this.outputData.duration!=null?"completed in "+this.outputData.duration/1E3+" sec ":"",a=this.elems.rowout.ownerDocument.createTextNode(a);this.elems.duration.appendChild(a);this.outputData.completed&&this.elems.prompt.classList.add("gcli-row-complete");
this.outputData.error&&this.elems.prompt.classList.add("gcli-row-error");this.outputData.toDom(this.elems.rowout);this.outputTerminal.element.scrollTop=Math.max(this.outputTerminal.element.scrollHeight,this.outputTerminal.element.clientHeight)-this.outputTerminal.element.clientHeight;this.elems.throb.style.display=this.outputData.completed?"none":"block"};e.OutputView=d});
define("gcli/ui/fields/menu","require,exports,module,gcli/util,gcli/l10n,gcli/argument,gcli/types,gcli/canon,gcli/ui/domtemplate,text!gcli/ui/fields/menu.css,text!gcli/ui/fields/menu.html".split(","),function(b,e){function a(a){a=a||{};this.document=a.document||document;this.type=a.type;if(!this.document)throw Error("No document");this.element=d.createElement(this.document,"div");this.element.classList.add(a.menuClass||"gcli-menu");a&&a.field&&this.element.classList.add(a.menuFieldClass||"gcli-menu-field");
k!=null&&d.importCss(k,this.document,"gcli-menu");this.template=d.toDom(this.document,l);this.templateOptions={blankNullUndefined:!0,stack:"menu.html"};this.items=null;this.onItemClick=d.createEvent("Menu.onItemClick")}function c(a,b,c){return typeof Proxy==="undefined"?a:Proxy.create({get:function(d,e){var f=a[e];if(e!=="name")return f;var g=f.indexOf(b);if(g===-1)return f;var h=f.substr(0,g),f=f.substr(g+b.length),g=c.createElement("span");g.appendChild(c.createTextNode(h));h=c.createElement("span");
h.classList.add("gcli-menu-typed");h.appendChild(c.createTextNode(b));g.appendChild(h);g.appendChild(c.createTextNode(f));return g}})}var d=b("gcli/util"),f=b("gcli/l10n"),j=b("gcli/argument").Argument,h=b("gcli/types").Conversion;b("gcli/canon");var g=b("gcli/ui/domtemplate"),k=b("text!gcli/ui/fields/menu.css"),l=b("text!gcli/ui/fields/menu.html");a.prototype.l10n=f.propertyLookup;a.prototype.destroy=function(){delete this.element;delete this.template;delete this.document};a.prototype.onItemClickInternal=
function(a){a=a.currentTarget.querySelector(".gcli-menu-name").textContent;a=new j(a);a.suffix=" ";a.prefix=" ";this.onItemClick({conversion:this.type.parse(a)})};a.prototype.show=function(a,b){this.items=a.filter(function(a){return a.hidden===void 0||a.hidden!==!0}.bind(this));if(b)this.items=this.items.map(function(a){return c(a,b,this.template.ownerDocument)}.bind(this));if(this.items.length===0)this.element.style.display="none";else{if(this.items.length>=h.maxPredictions)this.items.splice(-1),
this.items.hasMore=!0;var e=this.template.cloneNode(!0);g.template(e,this,this.templateOptions);d.clearElement(this.element);this.element.appendChild(e);this.element.style.display="block"}};a.prototype.setChoiceIndex=function(a){for(var b=this.element.querySelectorAll(".gcli-menu-option"),c=0;c<b.length;c++)b[c].classList.remove("gcli-menu-highlight");a!=null&&(b.length<=a?console.error("Cant highlight "+a+". Only "+b.length+" options"):b.item(a).classList.add("gcli-menu-highlight"))};a.prototype.selectChoice=
function(){var a=this.element.querySelector(".gcli-menu-highlight .gcli-menu-name");if(!a)return!1;a=new j(a.textContent);a.suffix=" ";a.prefix=" ";this.onItemClick({conversion:this.type.parse(a)});return!0};a.prototype.hide=function(){this.element.style.display="none"};a.prototype.setMaxHeight=function(a){this.element.style.maxHeight=a+"px"};e.Menu=a});
define("gcli/ui/fields/javascript","require,exports,module,gcli/util,gcli/argument,gcli/types/javascript,gcli/ui/fields/menu,gcli/ui/fields,gcli/ui/fields".split(","),function(b,e){function a(a,b){h.call(this,a,b);this.onInputChange=this.onInputChange.bind(this);this.arg=new d("","{ "," }");this.element=c.createElement(this.document,"div");this.input=c.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 j({document:this.document,field:!0,type:a});this.element.appendChild(this.menu.element);this.setConversion(this.type.parse(new d("")));this.onFieldChange=c.createEvent("JavascriptField.onFieldChange");this.menu.onItemClick.add(this.itemClicked,this)}var c=b("gcli/util"),d=b("gcli/argument").ScriptArgument,f=b("gcli/types/javascript").JavascriptType,j=b("gcli/ui/fields/menu").Menu,h=b("gcli/ui/fields").Field,
g=b("gcli/ui/fields");e.startup=function(){g.addField(a)};e.shutdown=function(){g.removeField(a)};a.prototype=Object.create(h.prototype);a.claim=function(a){return a instanceof f?h.TOOLTIP_MATCH:h.NO_MATCH};a.prototype.destroy=function(){h.prototype.destroy.call(this);this.input.removeEventListener("keyup",this.onInputChange,!1);this.menu.onItemClick.remove(this.itemClicked,this);this.menu.destroy();delete this.element;delete this.input;delete this.menu;delete this.document;delete this.onInputChange};
a.prototype.setConversion=function(a){this.arg=a.arg;this.input.value=a.arg.text;var b=0;if(this.type instanceof f){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)};a.prototype.itemClicked=function(a){this.onFieldChange(a);this.setMessage(a.conversion.message)};a.prototype.onInputChange=function(a){this.item=
a.currentTarget.item;a=this.getConversion();this.onFieldChange({conversion:a});this.setMessage(a.message)};a.prototype.getConversion=function(){this.arg=new d(this.input.value,"{ "," }");return this.type.parse(this.arg)};a.DEFAULT_VALUE="__JavascriptField.DEFAULT_VALUE"});
define("gcli/ui/fields/selection","require,exports,module,gcli/util,gcli/l10n,gcli/argument,gcli/types,gcli/types,gcli/types/basic,gcli/types/selection,gcli/ui/fields/menu,gcli/ui/fields,gcli/ui/fields".split(","),function(b,e){function a(a,b){l.call(this,a,b);this.items=[];this.element=d.createElement(this.document,"select");this.element.classList.add("gcli-field");this._addOption({name:f.lookupFormat("fieldSelectionSelect",[b.name])});this.type.getLookup().forEach(this._addOption,this);this.onInputChange=
this.onInputChange.bind(this);this.element.addEventListener("change",this.onInputChange,!1);this.onFieldChange=d.createEvent("SelectionField.onFieldChange")}function c(a,b){l.call(this,a,b);this.onInputChange=this.onInputChange.bind(this);this.arg=new j;this.menu=new k({document:this.document,type:a});this.element=this.menu.element;this.onFieldChange=d.createEvent("SelectionTooltipField.onFieldChange");this.menu.onItemClick.add(this.itemClicked,this)}var d=b("gcli/util"),f=b("gcli/l10n"),j=b("gcli/argument").Argument;
b("gcli/types");b("gcli/types");var h=b("gcli/types/basic").BooleanType,g=b("gcli/types/selection").SelectionType,k=b("gcli/ui/fields/menu").Menu,l=b("gcli/ui/fields").Field,n=b("gcli/ui/fields");e.startup=function(){n.addField(a);n.addField(c)};e.shutdown=function(){n.removeField(a);n.removeField(c)};a.prototype=Object.create(l.prototype);a.claim=function(a){return a instanceof h?l.BASIC:a instanceof g?l.DEFAULT:l.NO_MATCH};a.prototype.destroy=function(){l.prototype.destroy.call(this);this.element.removeEventListener("change",
this.onInputChange,!1);delete this.element;delete this.document;delete this.onInputChange};a.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)};a.prototype.getConversion=function(){return this.type.parse(new j(this.items[this.element.value].name," "))};a.prototype._addOption=function(a){a.index=this.items.length;this.items.push(a);var b=d.createElement(this.document,"option");b.innerHTML=
a.name;b.value=a.index;this.element.appendChild(b)};c.prototype=Object.create(l.prototype);c.claim=function(a){return a.getType()instanceof g?l.TOOLTIP_MATCH:l.NO_MATCH};c.prototype.destroy=function(){l.prototype.destroy.call(this);this.menu.onItemClick.remove(this.itemClicked,this);this.menu.destroy();delete this.element;delete this.document;delete this.onInputChange};c.prototype.setConversion=function(a){this.arg=a.arg;this.menu.show(a.getPredictions().map(function(a){return a.value.description?
a.value:a},this),a.arg.text);this.setMessage(a.message)};c.prototype.itemClicked=function(a){this.onFieldChange(a);this.setMessage(a.conversion.message)};c.prototype.onInputChange=function(a){this.item=a.currentTarget.item;a=this.getConversion();this.onFieldChange({conversion:a});this.setMessage(a.message)};c.prototype.getConversion=function(){this.arg=this.arg.beget({text:this.input.value});return this.type.parse(this.arg)};c.prototype.setChoiceIndex=function(a){this.menu.setChoiceIndex(a)};c.prototype.selectChoice=
function(){return this.menu.selectChoice()};Object.defineProperty(c.prototype,"isImportant",{get:function(){return this.type.name!=="command"},enumerable:!0});c.DEFAULT_VALUE="__SelectionTooltipField.DEFAULT_VALUE"});
define("gcli/promise",["require","exports","module"],function(b,e){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(e){d.reject(e)}},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,e,j){if(this._status!=a.PENDING)throw a._error("Promise complete. Attempted "+j+"() with ",e),a._error("Prev status = ",this._status,", value = ",this._value),Error("Promise already complete");else if(b.length==0&&d==a.ERROR){a._error("Promise rejection ignored and silently dropped");a._error(e);
var h;if(e.stack){a._error("Printing original stack");for(h=e.stack;h;h=h.caller)a._error(h)}else if(e.fileName&&e.lineNumber)a._error("Error originating at "+e.fileName+", line "+e.lineNumber);else if(typeof Components!=="undefined")try{if(Components.stack){a._error("Original stack not available. Printing current stack");for(h=Components.stack;h;h=h.caller)a._error(h)}}catch(g){}}a._setTimeout(function(){this._status=d;this._value=e;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()}.bind(this),1);return this};a.prototype.toString=function(){return"[Promise "+this._id+"]"};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,e=[],j=0,h=function(g){return function(h){e[g]=h;j++;d._status!==a.ERROR&&j===b.length&&d.resolve(e)}};b.forEach(function(a,b){var c=h(b),e=d.reject.bind(d);
a.then(c,e)});return d};a._setTimeout=function(a,b){return setTimeout(a,b)};a._error=function(){console.warn(arguments)};e.Promise=a});
define("gcli/cli","require,exports,module,gcli/util,gcli/ui/view,gcli/l10n,gcli/canon,gcli/promise,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,e){function a(a,b){this.param=a;this.conversion=void 0;this.paramIndex=b;this.onAssignmentChange=g.createEvent("Assignment.onAssignmentChange");this.setBlank()}function c(){var a={name:"__command",type:"command"},
b=this;Object.defineProperty(a,"description",{get:function(){var a=b.value;return a&&a.description?a.description:"The command to execute"},enumerable:!0});this.param=new n.Parameter(a);this.paramIndex=-1;this.onAssignmentChange=g.createEvent("CommandAssignment.onAssignmentChange");this.setBlank()}function d(a,b){this.param=new n.Parameter({name:"__unassigned",description:l.lookup("cliOptions"),type:{name:"param",requisition:a,isIncompleteName:b.text.charAt(0)==="-"}});this.paramIndex=-1;this.onAssignmentChange=
g.createEvent("UnassignedAssignment.onAssignmentChange");this.conversion=this.param.type.parse(b);this.conversion.assign(this)}function f(a,b){this.environment=a;this.document=b;if(this.document==null)try{this.document=document}catch(d){}this.commandAssignment=new c;this._assignments={};this.assignmentCount=0;this._args=[];this._unassigned=[];this._structuralChangeInProgress=!1;this.commandAssignment.onAssignmentChange.add(this._commandAssignmentChanged,this);this.commandAssignment.onAssignmentChange.add(this._assignmentChanged,
this);this.commandOutputManager=n.commandOutputManager;this.onAssignmentChange=g.createEvent("Requisition.onAssignmentChange");this.onTextChange=g.createEvent("Requisition.onTextChange")}function j(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 h(a){a=a||{};this.command=a.command||"";this.args=a.args||{};this.typed=a.typed||"";this.canonical=a.canonical||"";this.hidden=a.hidden===!0?!0:!1;this.data=void 0;this.error=
this.completed=!1;this.start=new Date;this.onClose=g.createEvent("Output.onClose");this.onChange=g.createEvent("Output.onChange")}var g=b("gcli/util"),k=b("gcli/ui/view"),l=b("gcli/l10n"),n=b("gcli/canon"),m=b("gcli/promise").Promise,o=b("gcli/types").Status,p=b("gcli/types").Conversion,q=b("gcli/types/basic").ArrayType,r=b("gcli/types/basic").StringType,s=b("gcli/types/basic").BooleanType,u=b("gcli/types/basic").NumberType,t=b("gcli/argument").Argument,v=b("gcli/argument").ArrayArgument,C=b("gcli/argument").NamedArgument,
x=b("gcli/argument").TrueNamedArgument,A=b("gcli/argument").MergedArgument,B=b("gcli/argument").ScriptArgument,z;e.startup=function(){z=n.addCommand(w)};e.shutdown=function(){n.removeCommand(w.name);z=void 0};Object.defineProperty(a.prototype,"arg",{get:function(){return this.conversion.arg},enumerable:!0});Object.defineProperty(a.prototype,"value",{get:function(){return this.conversion.value},enumerable:!0});a.prototype.getMessage=function(){return this.conversion.message?this.conversion.message:
""};a.prototype.getPredictions=function(){return this.conversion.getPredictions()};a.prototype.getPredictionAt=function(a){a==null&&(a=0);if(!this.isInName()){var b=this.getPredictions();if(b.length!==0)return a%=b.length,a<0&&(a=b.length+a),b[a]}};a.prototype.isInName=function(){return this.conversion.arg.type==="NamedArgument"&&this.conversion.arg.prefix.slice(-1)!==" "};a.prototype.setConversion=function(a){var b=this.conversion;this.conversion=a;this.conversion.assign(this);if(!this.conversion.equals(b))this.onAssignmentChange({assignment:this,
conversion:this.conversion,oldConversion:b})};a.prototype.setBlank=function(){this.setConversion(this.param.type.getBlank())};a.prototype.ensureVisibleArgument=function(){if(this.conversion.arg.type!=="BlankArgument")return!1;this.conversion=this.param.type.parse(this.conversion.arg.beget({text:"",prefixSpace:this.param instanceof c}));this.conversion.assign(this);return!0};a.prototype.getStatus=function(a){return this.param.isDataRequired&&!this.conversion.isDataProvided()?o.INCOMPLETE:!this.param.isDataRequired&&
this.arg.type==="BlankArgument"?o.VALID:this.conversion.getStatus(a)};a.prototype.toString=function(){return this.conversion.toString()};Object.defineProperty(a.prototype,"_summaryJson",{get:function(){return{param:this.param.name+"/"+this.param.type.name,defaultValue:this.param.defaultValue,arg:this.conversion.arg._summaryJson,value:this.value,message:this.getMessage(),status:this.getStatus().toString(),predictionCount:this.getPredictions().length}},enumerable:!0});e.Assignment=a;var y=eval;e.setEvalFunction=
function(a){y=a};e.unsetEvalFunction=function(){y=void 0};var w={name:"{",params:[{name:"javascript",type:"javascript",description:""}],hidden:!0,returnType:"object",description:{key:"cliEvalJavascript"},exec:function(a){return y(a.javascript)},evalRegexp:/^\s*{\s*/};c.prototype=Object.create(a.prototype);c.prototype.getStatus=function(b){return o.combine(a.prototype.getStatus.call(this,b),this.conversion.value&&this.conversion.value.exec?o.VALID:o.INCOMPLETE)};e.CommandAssignment=c;d.prototype=Object.create(a.prototype);
d.prototype.getStatus=function(){return this.conversion.getStatus()};f.prototype.destroy=function(){this.commandAssignment.onAssignmentChange.remove(this._commandAssignmentChanged,this);this.commandAssignment.onAssignmentChange.remove(this._assignmentChanged,this);delete this.document;delete this.environment};f.prototype._assignmentChanged=function(a){if(!(a.oldConversion!=null&&a.conversion.valueEquals(a.oldConversion))&&!this._structuralChangeInProgress&&(this.onAssignmentChange(a),!a.conversion.argEquals(a.oldConversion)))this.onTextChange()};
f.prototype._commandAssignmentChanged=function(b){if(!b.conversion.valueEquals(b.oldConversion)){this._assignments={};if(b=this.commandAssignment.value)for(var c=0;c<b.params.length;c++){var d=b.params[c],e=new a(d,c);e.onAssignmentChange.add(this._assignmentChanged,this);this._assignments[d.name]=e}this.assignmentCount=Object.keys(this._assignments).length}};f.prototype.getAssignment=function(a){return this._assignments[typeof a==="string"?a:Object.keys(this._assignments)[a]]||void 0};f.prototype._getFirstBlankPositionalAssignment=
function(){var a=null;Object.keys(this._assignments).some(function(b){b=this.getAssignment(b);return b.arg.type==="BlankArgument"&&b.param.isPositionalAllowed?(a=b,!0):!1},this);return a};f.prototype.getParameterNames=function(){return Object.keys(this._assignments)};f.prototype.cloneAssignments=function(){return Object.keys(this._assignments).map(function(a){return this._assignments[a]},this)};f.prototype.getStatus=function(){var a=o.VALID;if(this._unassigned.length!==0){var b=!0;this._unassigned.forEach(function(a){a.param.type.isIncompleteName||
(b=!1)});a=b?o.INCOMPLETE:o.ERROR}this.getAssignments(!0).forEach(function(b){b=b.getStatus();b>a&&(a=b)},this);if(a===o.INCOMPLETE)a=o.ERROR;return a};f.prototype.getArgsObject=function(){var a={};this.getAssignments().forEach(function(b){a[b.param.name]=b.conversion.isDataProvided()?b.value:b.param.defaultValue},this);return a};f.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};f.prototype.setAssignment=function(a,b){for(var c=a.arg.getArgs(),d=b.getArgs(),e=Math.max(c.length,d.length),f=0;f<e;f++)if(f>=c.length||c[f].type==="BlankArgument")this._args.push(d[f]);else{var g=this._args.indexOf(c[f]);if(g===-1)throw console.error("Couldn't find ",c[f]," in ",this._args),Error("Couldn't find "+c[f]);f>=d.length?this._args.splice(g,1):this._args[g]=d[f]}c=a.param.type.parse(b);a.setConversion(c)};f.prototype.setBlankArguments=function(){this.getAssignments().forEach(function(a){a.setBlank()},
this)};f.prototype.complete=function(a,b){var c=this.getAssignmentAt(a.start);this.onTextChange.holdFire();var e=c.getPredictionAt(b);if(e==null)c.arg.suffix.slice(-1)!==" "&&c.getStatus()===o.VALID&&this._addSpace(c),c.isInName()&&(e=c.conversion.arg.beget({prefixPostSpace:!0}),this.setAssignment(c,e));else{var f=c.arg.beget({text:e.name,dontQuote:c===this.commandAssignment});this.setAssignment(c,f);e.incomplete||(this._addSpace(c),c instanceof d&&this.update(this.toString()))}this.onTextChange();
this.onTextChange.resumeFire()};f.prototype._addSpace=function(a){var b=a.conversion.arg.beget({suffixSpace:!0});b!==a.conversion.arg&&this.setAssignment(a,b)};f.prototype.decrement=function(a){var b=a.param.type.decrement(a.conversion.value);b!=null&&(b=a.param.type.stringify(b),b=a.conversion.arg.beget({text:b}),this.setAssignment(a,b))};f.prototype.increment=function(a){var b=a.param.type.increment(a.conversion.value);b!=null&&(b=a.param.type.stringify(b),b=a.conversion.arg.beget({text:b}),this.setAssignment(a,
b))};f.prototype.toCanonicalString=function(){var a=[],b=this.commandAssignment.value?this.commandAssignment.value.name:this.commandAssignment.arg.text;a.push(b);Object.keys(this._assignments).forEach(function(b){var b=this._assignments[b],c=b.param.type;b.value!==b.param.defaultValue&&(a.push(" "),a.push(c.stringify(b.value)))},this);b==="{"&&this.getAssignment(0).arg.suffix.indexOf("}")===-1&&a.push(" }");return a.join("")};f.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,chr:c.prefix[b],part:"prefix"});for(b=0;b<c.text.length;b++)a.push({arg:c,chr:c.text[b],part:"text"});for(b=0;b<c.suffix.length;b++)a.push({arg:c,chr:c.suffix[b],part:"suffix"})});return a};f.prototype.toString=function(){return this._args?this._args.map(function(a){return a.toString()}).join(""):this.toCanonicalString()};f.prototype.typedEndsWithSeparator=function(){if(this._args){var a=this._args.slice(-1)[0];
return a.suffix.slice(-1)===" "?!0:a.text===""&&a.suffix===""&&a.prefix.slice(-1)===" "}return this.toCanonicalString().slice(-1)===" "};f.prototype.getInputStatusMarkup=function(a){for(var b=this.createInputArgTrace(),a=b[a===0?0:a-1],d=[],e=0;e<b.length;e++){var f=b[e],g=f.arg,h=o.VALID;if(f.part==="text"&&(h=g.assignment.getStatus(g),h===o.INCOMPLETE)){var j=a.arg.assignment.arg.type==="NamedArgument",j=a.part==="text"||j&&a.part==="suffix";if((g.assignment!==a.arg.assignment||!j)&&!(g.assignment instanceof
c))h=o.ERROR}d.push({status:h,string:f.chr})}for(e=0;e<d.length-1;)d[e].status===d[e+1].status?(d[e].string+=d[e+1].string,d.splice(e+1,1)):e++;return d};f.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);if(e.assignment.arg.type!=="NamedArgument")this._args.length>
c+1?f=this._args[c+1].assignment:(d=this._getFirstBlankPositionalAssignment(),d!=null&&(f=d));for(d=0;d<e.suffix.length;d++)b.push(f)}b=b[a-1];if(!b)throw Error("Missing assignment. cursor="+a+" text="+this.toString());return b};f.prototype.exec=function(a){var b,c,d=!1;a&&a.hidden&&(d=!0);if(a)if(typeof a==="string")this.update(a);else if(typeof a.typed==="string")this.update(a.typed);else if(a.command!=null)(b=n.getCommand(a.command))||console.error("Command not found: "+a.command),c=a.args;if(!b)b=
this.commandAssignment.value,c=this.getArgsObject();if(!b)throw Error("Unknown command");a=this.toString();w.evalRegexp.test(a)&&(a=a.replace(w.evalRegexp,""),a=a.replace(/\s*}\s*$/,""));var f=new h({command:b,args:c,typed:a,canonical:this.toCanonicalString(),hidden:d});this.commandOutputManager.onOutput({output:f});try{var g=e.createExecutionContext(this),j=b.exec(c,g);j!=null&&typeof j.then==="function"?(j.then(function(a){f.complete(a)},function(a){f.error=!0;f.complete(a)}),f.promise=j):f.complete(j)}catch(k){console.error(k),
f.error=!0,f.complete(k)}this.update("");return f};f.prototype.update=function(a){this._structuralChangeInProgress=!0;this._args=this._tokenize(a);a=this._args.slice(0);this._split(a);this._assign(a);this._structuralChangeInProgress=!1;this.onTextChange()};Object.defineProperty(f.prototype,"_summaryJson",{get:function(){var a={$args:this._args.map(function(a){return a._summaryJson}),_command:this.commandAssignment._summaryJson,_unassigned:this._unassigned.forEach(function(a){return a._summaryJson})};
Object.keys(this._assignments).forEach(function(b){a[b]=this.getAssignment(b)._summaryJson}.bind(this));return a},enumerable:!0});f.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(j(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=[],h=0;;){var k=a[d];switch(c){case 1:k==="'"?(f=a.substring(e,d+1),c=3,e=d+1):k==='"'?(f=a.substring(e,d+1),c=4,e=d+1):k==="{"?(f=a.substring(e,d+1),c=5,h++,e=d+1):/ /.test(k)||(f=a.substring(e,d),c=2,e=d);break;case 2:k===" "&&(c=b(a.substring(e,d)),g.push(new t(c,
f,"")),c=1,e=d,f="");break;case 3:k==="'"&&(c=b(a.substring(e,d)),g.push(new t(c,f,k)),c=1,e=d+1,f="");break;case 4:k==='"'&&(c=b(a.substring(e,d)),g.push(new t(c,f,k)),c=1,e=d+1,f="");break;case 5:k==="{"?h++:k==="}"&&(h--,h===0&&(c=b(a.substring(e,d)),g.push(new B(c,f,k)),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 B(c,f,""))):(c=b(a.substring(e,d+1)),g.push(new t(c,f,"")));
break}}return g};f.prototype._split=function(a){var b;if(a[0].type==="ScriptArgument")b=new p(z,new B),this.commandAssignment.setConversion(b);else{for(var c=1;c<=a.length;){b=this.commandAssignment.param.type.parse(c===1?a[0]:new A(a,0,c));if(!b.value||b.value.exec)break;c++}this.commandAssignment.setConversion(b);for(b=0;b<c;b++)a.shift()}};f.prototype._addUnassignedArgs=function(a){a.forEach(function(a){this._unassigned.push(new d(this,a))}.bind(this))};f.prototype._assign=function(a){this._unassigned=
[];if(this.commandAssignment.value)if(a.length===0)this.setBlankArguments();else{if(this.assignmentCount!==0){if(this.assignmentCount===1){var b=this.getAssignment(0);if(b.param.type instanceof r){var c=a.length===1?a[0]:new A(a),c=b.param.type.parse(c);b.setConversion(c);return}}var e=this.getParameterNames(),f={};this.getAssignments(!1).forEach(function(b){for(var c=0;c<a.length;)if(b.param.isKnownAs(a[c].text)){var d=a.splice(c,1)[0];e=e.filter(function(a){return a!==b.param.name});if(b.param.type instanceof
s)d=new x(d);else{var g=null;c+1<=a.length&&(g=a.splice(c,1)[0]);d=new C(d,g)}b.param.type instanceof q?(g=f[b.param.name],g||(g=new v,f[b.param.name]=g),g.addArgument(d)):(d=b.param.type.parse(d),b.setConversion(d))}else c++},this);e.forEach(function(b){b=this.getAssignment(b);if(b.param.isPositionalAllowed)if(b.param.type instanceof q){var c=f[b.param.name];c||(c=new v,f[b.param.name]=c);c.addArguments(a);a=[]}else a.length===0?b.setBlank():(c=a.splice(0,1)[0],(b.param.type instanceof u?/-[-a-zA-Z_]/.test(c.text):
c.text.charAt(0)==="-")?this._unassigned.push(new d(this,c)):(c=b.param.type.parse(c),b.setConversion(c)));else b.setBlank()},this);Object.keys(f).forEach(function(a){var b=this.getAssignment(a),a=b.param.type.parse(f[a]);b.setConversion(a)},this)}this._addUnassignedArgs(a)}else this._addUnassignedArgs(a)};e.Requisition=f;h.prototype.complete=function(a){this.data=a;this.end=new Date;this.duration=this.end.getTime()-this.start.getTime();this.completed=!0;this.onChange({output:this})};h.prototype.toDom=
function(a){g.clearElement(a);var b=a.ownerDocument,c=this.data;if(c!=null){var d;typeof HTMLElement!=="undefined"&&c instanceof HTMLElement?d=c:c.isView?d=c.toDom(b):(this.command.returnType==="terminal"?Array.isArray(c)?(d=g.createElement(b,"div"),c.forEach(function(){var a=g.createElement(b,"textarea");a.classList.add("gcli-row-subterminal");a.readOnly=!0;d.appendChild(a)})):(d=g.createElement(b,"textarea"),d.classList.add("gcli-row-terminal"),d.readOnly=!0):d=g.createElement(b,"p"),this.command.returnType===
"string"?g.setTextContent(d,c):g.setContents(d,c.toString()));for(var c=d.querySelectorAll("*[href]"),e=0;e<c.length;e++)c[e].setAttribute("target","_blank");a.appendChild(d)}};h.prototype.toString=function(a){var b=this.data;return b==null?"":typeof HTMLElement!=="undefined"&&b instanceof HTMLElement?b.textContent:b.isView?b.toDom(a).textContent:b.toString()};e.Output=h;e.createExecutionContext=function(a){return{exec:a.exec.bind(a),update:a.update.bind(a),document:a.document,environment:a.environment,
createView:k.createView,createPromise:function(){return new m}}}});
define("gcli/ui/intro","require,exports,module,gcli/settings,gcli/l10n,gcli/util,gcli/ui/view,gcli/cli,text!gcli/ui/intro.html".split(","),function(b,e){var a=b("gcli/settings"),c=b("gcli/l10n"),d=b("gcli/util"),f=b("gcli/ui/view"),j=b("gcli/cli").Output,h={name:"hideIntro",type:"boolean",description:c.lookup("hideIntroDesc"),defaultValue:!1},g;e.startup=function(){g=a.addSetting(h)};e.shutdown=function(){a.removeSetting(h);g=void 0};e.maybeShowIntro=function(a,b){if(!g.value){var c=new j;a.onOutput({output:c});
var d=this.createView(b,c);c.complete(d)}};e.createView=function(a,e){return f.createView({html:b("text!gcli/ui/intro.html"),options:{stack:"intro.html"},data:{l10n:c.propertyLookup,onclick:function(b){d.updateCommand(b.currentTarget,a)},ondblclick:function(b){d.executeCommand(b.currentTarget,a)},showHideButton:e!=null,onGotIt:function(){g.value=!0;e.onClose()}}})}});
define("gcli/ui/tooltip","require,exports,module,gcli/util,gcli/cli,gcli/ui/fields,gcli/ui/domtemplate,text!gcli/ui/tooltip.css,text!gcli/ui/tooltip.html".split(","),function(b,e){function a(a,b){this.inputter=b.inputter;this.requisition=b.requisition;this.focusManager=b.focusManager;this.element=b.element;this.element.classList.add(a.tooltipClass||"gcli-tooltip");this.document=this.element.ownerDocument;if(this.panelElement=b.panelElement)this.panelElement.classList.add("gcli-panel-hide"),this.focusManager.onVisibilityChange.add(this.visibilityChanged,
this);this.focusManager.addMonitoredElement(this.element,"tooltip");this.fields=[];if(h!=null)this.style=c.importCss(h,this.document,"gcli-tooltip");this.template=c.toDom(this.document,g);this.templateOptions={blankNullUndefined:!0,stack:"tooltip.html"};this.inputter.onChoiceChange.add(this.choiceChanged,this);this.inputter.onAssignmentChange.add(this.assignmentChanged,this);this.assignment=void 0;this.assignmentChanged({assignment:this.inputter.assignment})}var c=b("gcli/util"),d=b("gcli/cli").CommandAssignment,
f=b("gcli/ui/fields"),j=b("gcli/ui/domtemplate"),h=b("text!gcli/ui/tooltip.css"),g=b("text!gcli/ui/tooltip.html");a.prototype.destroy=function(){this.inputter.onAssignmentChange.remove(this.assignmentChanged,this);this.inputter.onChoiceChange.remove(this.choiceChanged,this);this.panelElement&&this.focusManager.onVisibilityChange.remove(this.visibilityChanged,this);this.focusManager.removeMonitoredElement(this.element,"tooltip");this.style&&(this.style.parentNode.removeChild(this.style),delete this.style);
this.field.onFieldChange.remove(this.fieldChanged,this);this.field.destroy();delete this.errorEle;delete this.descriptionEle;delete this.highlightEle;delete this.document;delete this.element;delete this.panelElement;delete this.template};Object.defineProperty(a.prototype,"isMenuShowing",{get:function(){return this.focusManager.isTooltipVisible&&this.field!=null&&this.field.menu!=null},enumerable:!0});a.prototype.assignmentChanged=function(a){if(this.assignment!==a.assignment)this.assignment&&this.assignment.onAssignmentChange.remove(this.assignmentContentsChanged,
this),this.assignment=a.assignment,this.field&&(this.field.onFieldChange.remove(this.fieldChanged,this),this.field.destroy()),this.field=f.getField(this.assignment.param.type,{document:this.document,name:this.assignment.param.name,requisition:this.requisition,required:this.assignment.param.isDataRequired,named:!this.assignment.param.isPositionalAllowed,tooltip:!0}),this.focusManager.setImportantFieldFlag(this.field.isImportant),this.field.onFieldChange.add(this.fieldChanged,this),this.assignment.onAssignmentChange.add(this.assignmentContentsChanged,
this),this.field.setConversion(this.assignment.conversion),this.highlightEle=this.descriptionEle=this.errorEle=void 0,a=this.template.cloneNode(!0),j.template(a,this,this.templateOptions),c.clearElement(this.element),this.element.appendChild(a),this.element.style.display="block",this.field.setMessageElement(this.errorEle),this._updatePosition()};a.prototype.choiceChanged=function(a){this.field&&this.field.setChoiceIndex&&this.field.setChoiceIndex(this.assignment.conversion.constrainPredictionIndex(a.choice))};
a.prototype.selectChoice=function(){return this.field&&this.field.selectChoice?this.field.selectChoice():!1};a.prototype.fieldChanged=function(a){this.requisition.setAssignment(this.assignment,a.conversion.arg);this.focusManager.setError(a.conversion.message!=null&&a.conversion.message!=="");this.document.defaultView.setTimeout(function(){this.inputter.focus()}.bind(this),10)};a.prototype.assignmentContentsChanged=function(a){a.conversion.arg.text!==a.oldConversion.arg.text&&(this.field.setConversion(a.conversion),
c.setContents(this.descriptionEle,this.description),this._updatePosition())};a.prototype._updatePosition=function(){var a=this.getDimensionsOfAssignment();if(this.panelElement)this.panelElement.style.left=a.start*10+"px";this.focusManager.updatePosition(a)};a.prototype.getDimensionsOfAssignment=function(){for(var a="",b=this.requisition.getAssignments(!0),c=0;c<b.length;c++){if(b[c]===this.assignment)break;a+=b[c].toString()}a+=this.assignment.arg.prefix;b=a.length;a+=this.assignment.arg.text;return{start:b,
end:a.length}};Object.defineProperty(a.prototype,"description",{get:function(){if(this.assignment instanceof d&&this.assignment.value==null)return"";var a=this.assignment.param.manual;if(a){var b=this.document.createElement("span");c.setContents(b,a);this.assignment.param.isDataRequired||(a=this.document.createElement("span"),a.appendChild(this.document.createTextNode(" (Optional)")),b.appendChild(a));return b}return this.assignment.param.description},enumerable:!0});a.prototype.visibilityChanged=
function(a){this.panelElement&&(a.tooltipVisible?this.panelElement.classList.remove("gcli-panel-hide"):this.panelElement.classList.add("gcli-panel-hide"))};e.Tooltip=a});
define("gcli/ui/display","require,exports,module,gcli/util,gcli/settings,gcli/ui/intro,gcli/ui/domtemplate,gcli/ui/tooltip,gcli/ui/output_terminal,gcli/ui/inputter,gcli/ui/completer,gcli/ui/focus,gcli/ui/prompt,gcli/cli,text!gcli/ui/display.css,text!gcli/ui/display.html".split(","),function(b,e){function a(a){var b=a.document||document;this.displayStyle=void 0;if(r!=null)this.displayStyle=f.importCss(r,b,"gcli-css-display");this.requisition=new q(a.enviroment||{},b);this.focusManager=new o(a,{document:b});
this.inputElement=c(b,a.inputElement||null,"gcli-input");this.inputter=new n(a,{requisition:this.requisition,focusManager:this.focusManager,element:this.inputElement});this.completeElement=d(this.inputElement,a.completeElement||null,"gcli-row-complete");this.completer=new m(a,{requisition:this.requisition,inputter:this.inputter,autoResize:this.completeElement.gcliCreated,element:this.completeElement});this.prompt=new p(a,{inputter:this.inputter,element:d(this.inputElement,a.promptElement||null,"gcli-prompt")});
this.element=c(b,a.displayElement||null,"gcli-display");this.element.classList.add("gcli-display");this.template=f.toDom(b,s);this.elements={};g.template(this.template,this.elements,{stack:"display.html"});this.element.appendChild(this.template);this.tooltip=new k(a,{requisition:this.requisition,inputter:this.inputter,focusManager:this.focusManager,element:this.elements.tooltip,panelElement:this.elements.panel});this.inputter.tooltip=this.tooltip;this.outputElement=f.createElement(b,"div");this.outputElement.classList.add("gcli-output");
this.outputList=new l(a,{requisition:this.requisition,element:this.outputElement});this.element.appendChild(this.outputElement);h.maybeShowIntro(this.outputList.commandOutputManager,this.requisition)}function c(a,b,c){if(!b&&(b=a.getElementById(c),!b))throw Error("Missing element, id="+c);return b}function d(a,b){var c=a.ownerDocument;if(!b&&(b=c.getElementById("gcli-row-complete"),!b))b=f.createElement(c,"div"),a.parentNode.insertBefore(b,a.nextSibling),b.gcliCreated=!0;return b}var f=b("gcli/util"),
j=b("gcli/settings"),h=b("gcli/ui/intro"),g=b("gcli/ui/domtemplate"),k=b("gcli/ui/tooltip").Tooltip,l=b("gcli/ui/output_terminal").OutputTerminal,n=b("gcli/ui/inputter").Inputter,m=b("gcli/ui/completer").Completer,o=b("gcli/ui/focus").FocusManager,p=b("gcli/ui/prompt").Prompt,q=b("gcli/cli").Requisition,r=b("text!gcli/ui/display.css"),s=b("text!gcli/ui/display.html");e.createDisplay=function(b){b.settings!=null&&j.setDefaults(b.settings);var b=new a(b),c=b.requisition;return{exec:c.exec.bind(c),update:c.update.bind(c),
destroy:b.destroy.bind(b)}};a.prototype.destroy=function(){delete this.element;delete this.template;this.outputList.destroy();delete this.outputList;delete this.outputElement;this.tooltip.destroy();delete this.tooltip;this.prompt.destroy();delete this.prompt;this.completer.destroy();delete this.completer;delete this.completeElement;this.inputter.destroy();delete this.inputter;delete this.inputElement;this.focusManager.destroy();delete this.focusManager;this.requisition.destroy();delete this.requisition;
this.displayStyle&&this.displayStyle.parentNode.removeChild(this.displayStyle);delete this.displayStyle};e.Display=a});
define("gcli/index","require,exports,module,gcli/legacy,gcli/canon,gcli/canon,gcli/types/basic,gcli/types/command,gcli/types/javascript,gcli/types/node,gcli/types/resource,gcli/types/selection,gcli/types/setting,gcli/settings,gcli/cli,gcli/ui/intro,gcli/ui/focus,gcli/ui/fields/basic,gcli/ui/fields/javascript,gcli/ui/fields/selection,gcli/ui/display".split(","),function(b,e){b("gcli/legacy");e.addCommand=b("gcli/canon").addCommand;e.removeCommand=b("gcli/canon").removeCommand;b("gcli/types/basic").startup();
b("gcli/types/command").startup();b("gcli/types/javascript").startup();b("gcli/types/node").startup();b("gcli/types/resource").startup();b("gcli/types/selection").startup();b("gcli/types/setting").startup();b("gcli/settings").startup();b("gcli/cli").startup();b("gcli/ui/intro").startup();b("gcli/ui/focus").startup();b("gcli/ui/fields/basic").startup();b("gcli/ui/fields/javascript").startup();b("gcli/ui/fields/selection").startup();var a=b("gcli/ui/display");e.createDisplay=function(b){return a.createDisplay(b||
{})};e.createView=e.createDisplay});define("text!gcli/commands/help_man.html",[],function(){return'\n<div>\n  <h3>${command.name}</h3>\n\n  <h4 class="gcli-help-header">\n    ${l10n.helpManSynopsis}:\n    <span class="gcli-out-shortcut" onclick="${onclick}" data-command="${command.name}">\n      ${command.name}\n      <span foreach="param in ${command.params}">\n        ${param.defaultValue !== undefined ? \'[\' + param.name + \']\' : param.name}\n      </span>\n    </span>\n  </h4>\n\n  <h4 class="gcli-help-header">${l10n.helpManDescription}:</h4>\n\n  <p class="gcli-help-description">${describe(command, __element)}</p>\n\n  <div if="${command.exec}">\n    <h4 class="gcli-help-header">${l10n.helpManParameters}:</h4>\n\n    <ul class="gcli-help-parameter">\n      <li if="${command.params.length === 0}">${l10n.helpManNone}</li>\n      <li foreach="param in ${command.params}">\n        ${param.name} <em>${getTypeDescription(param)}</em>\n        <br/>\n        ${describe(param, __element)}\n      </li>\n    </ul>\n  </div>\n\n  <div if="${!command.exec}">\n    <h4 class="gcli-help-header">${l10n.subCommands}:</h4>\n\n    <ul class="gcli-help-${subcommands}">\n      <li if="${subcommands.length === 0}">${l10n.subcommandsNone}</li>\n      <li foreach="subcommand in ${subcommands}">\n        <strong>${subcommand.name}</strong>:\n        ${subcommand.description}\n        <span class="gcli-out-shortcut" data-command="help ${subcommand.name}"\n            onclick="${onclick}" ondblclick="${ondblclick}">\n          help ${subcommand.name}\n        </span>\n      </li>\n    </ul>\n  </div>\n\n</div>'});
define("text!gcli/commands/help_list.html",[],function(){return'\n<div>\n  <div if="${includeIntro}">\n    <h2>Welcome to GCLI</h2>\n    <p>GCLI is an experiment to create a highly usable JavaScript command line for developers.</p>\n    <p>\n      Useful links:\n      <a href=\'https://github.com/joewalker/gcli\'>Source</a> (Apache-2.0),\n      <a href=\'https://github.com/joewalker/gcli/blob/master/docs/index.md\'>Documentation</a> (for users/embedders),\n      <a href=\'https://wiki.mozilla.org/DevTools/Features/GCLI\'>Mozilla feature page</a> (for GCLI in the web console).\n    </p>\n  </div>\n\n  <h3>${heading}</h3>\n\n  <table>\n    <tr foreach="command in ${matchingCommands}">\n      <th class="gcli-help-name">${command.name}</th>\n      <td class="gcli-help-arrow">-</td>\n      <td>\n        ${command.description}\n        <span class="gcli-out-shortcut"\n            onclick="${onclick}" ondblclick="${ondblclick}"\n            data-command="help ${command.name}">help ${command.name}</span>\n      </td>\n    </tr>\n  </table>\n</div>'});
define("text!gcli/commands/help.css",[],function(){return"\n.gcli-help-name {\n  text-align: end;\n}\n\n.gcli-help-arrow {\n  color: #AAA;\n}\n\n.gcli-help-description {\n  margin: 0 20px;\n  padding: 0;\n}\n\n.gcli-help-parameter {\n  margin: 0 30px;\n  padding: 0;\n}\n\n.gcli-help-header {\n  margin: 10px 0 6px;\n}"});
define("gcli/commands/help","require,exports,module,gcli/canon,gcli/l10n,gcli/util,gcli/ui/view,text!gcli/commands/help_man.html,text!gcli/commands/help_list.html,text!gcli/commands/help.css".split(","),function(b,e){function a(a,b){var c=d.getCommands().filter(function(b){return b.hidden?!1:a.search&&b.name.indexOf(a.search)!==0?!1:!a.search&&b.name.indexOf(" ")!=-1?!1:!0});c.sort(function(a,b){return a.name.localeCompare(b.name)});var e;e=c.length===0?f.lookupFormat("helpListNone",[a.search]):a.search==
null?f.lookup("helpListAll"):f.lookupFormat("helpListPrefix",[a.search]);return{l10n:f.propertyLookup,includeIntro:a.search==null,matchingCommands:c,heading:e,onclick:function(a){j.updateCommand(a.currentTarget,b)},ondblclick:function(a){j.executeCommand(a.currentTarget,b)}}}function c(a,b){var c={l10n:f.propertyLookup,command:a,onclick:function(a){j.updateCommand(a.currentTarget,b)},ondblclick:function(a){j.executeCommand(a.currentTarget,b)},describe:function(a,b){var c=a.manual||a.description,d=
b.ownerDocument.createElement("div");j.setContents(d,c);return d.childNodes},getTypeDescription:function(a){var b="",b=a.defaultValue===void 0?f.lookup("helpManRequired"):a.defaultValue===null?f.lookup("helpManOptional"):a.defaultValue;return"("+a.type.name+", "+b+")"}};Object.defineProperty(c,"subcommands",{get:function(){var b=d.getCommands().filter(function(b){return b.name.indexOf(a.name)===0&&b.name!==a.name});b.sort(function(a,b){return a.name.localeCompare(b.name)});return b},enumerable:!0});
return c}var d=b("gcli/canon"),f=b("gcli/l10n"),j=b("gcli/util"),h=b("gcli/ui/view");e.helpManHtml=b("text!gcli/commands/help_man.html");e.helpListHtml=b("text!gcli/commands/help_list.html");e.helpCss=b("text!gcli/commands/help.css");var g={name:"help",description:f.lookup("helpDesc"),manual:f.lookup("helpManual"),params:[{name:"search",type:"string",description:f.lookup("helpSearchDesc"),manual:f.lookup("helpSearchManual2"),defaultValue:null}],returnType:"html",exec:function(b,f){var g=d.getCommand(b.search||
void 0);return g?h.createView({html:e.helpManHtml,options:{allowEval:!0,stack:"help_man.html"},data:c(g,f),css:e.helpCss,cssId:"gcli-help"}):h.createView({html:e.helpListHtml,options:{allowEval:!0,stack:"help_list.html"},data:a(b,f),css:e.helpCss,cssId:"gcli-help"})}};e.startup=function(){d.addCommand(g)};e.shutdown=function(){d.removeCommand(g)}});
define("orion/i18nUtil",["require","orion/Deferred"],function(b,e){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(d){function f(){b(["i18n!"+d],function(a){if(a){var b=d;a._expires=(new Date).getTime()+9E5;localStorage.setItem("orion/messageBundle/"+b,JSON.stringify(a));delete a._expires}j.resolve(a)})}if(c[d])return c[d];var j=new e;c[d]=
j;var h=a(d);if(h)return j.resolve(h),j;try{b([d],f)}catch(g){b(["orion/i18n!"+d],f)}return j},formatMessage:function(a){var b=arguments;return a.replace(/\$\{([^\}]+)\}/g,function(a,c){return b[(c<<0)+1]})}}});
define("orion/fileClient",["i18n!orion/navigate/nls/messages","orion/Deferred","orion/i18nUtil"],function(b,e,a){function c(a,c,d){if(!a[c])throw c+b[" is not supported in this file system"];return a[c].apply(a,d)}function d(a,f,g,k){if(!a.readBlob)throw b["source file service does not support binary read"];if(!g.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(g,"writeBlob",[k,a])});var l=k.substring(0,
k.length-1),n=decodeURIComponent(l.substring(l.lastIndexOf("/")+1)),l=l.substring(0,l.lastIndexOf("/")+1);return c(g,"createFolder",[l,n]).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,l=h;b[f].Directory&&(l=h.substring(0,h.length-1));l=decodeURIComponent(l.substring(l.lastIndexOf("/")+1));l=k+encodeURIComponent(l);b[f].Directory&&(l+="/");c[f]=d(a,h,g,l)}return e.all(c)})})}
function f(c,d){function f(a){var c=new e;c.reject(b["No Matching FileService for location:"]+a);return c}var k=c.getServiceReferences("orion.core.file"),l=k;if(d)for(var l=[],n=0;n<k.length;++n)d(k[n])&&l.push(k[n]);for(var m=[],o=[],p=[],q=[],r={fetchChildren:function(){var a=new e;a.resolve(q);return a},createWorkspace:function(){var a=new e;a.reject(b["no file service"]);return a},loadWorkspaces:function(){var a=new e;a.reject(b["no file service"]);return a},loadWorkspace:function(){var a=new e;
window.setTimeout(function(){a.resolve({Directory:!0,Length:0,LocalTimeStamp:0,Name:b["File Servers"],Location:"/",Children:q,ChildrenLocation:"/"})},100);return a},search:f,createProject:f,createFolder:f,createFile:f,deleteFile:f,moveFile:f,copyFile:f,read:f,write:f},k=0;k<l.length;++k)q[k]={Directory:!0,Length:0,LocalTimeStamp:0,Location:l[k].getProperty("top"),ChildrenLocation:l[k].getProperty("top"),Name:l[k].getProperty("Name")},n=l[k].getProperty("pattern")||".*",n[0]!=="^"&&(n="^"+n),m[k]=
RegExp(n),o[k]=c.getService(l[k]),p[k]=l[k].getProperty("Name"),l[k].getProperty("NameKey")&&l[k].getProperty("nls")&&a.getMessageBundle(l[k].getProperty("nls")).then(function(a,b){q[a].Name=b[l[a].getProperty("NameKey")];p[a]=b[l[a].getProperty("NameKey")]}.bind(this,k));this._getServiceIndex=function(a){if(a==="/")return-1;else if(!a||a.length&&a.length===0)return o[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:o[a]};this._getServiceName=function(a){a=this._getServiceIndex(a);return a===-1?r.Name:p[a]};this._getServiceRootURL=function(a){a=this._getServiceIndex(a);return a===-1?r.Location:q[a].Location}}f.prototype={getService:function(a){return this._getService(a)},fileServiceName:function(a){return this._getServiceName(a)},fileServiceRootURL:function(a){return this._getServiceRootURL(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,e){var f=this._getService(a),l=this._getService(b);if(f===l)return c(f,"moveFile",arguments);var n=a[a.length-1]==="/",m=b;m[m.length-1]!=="/"&&(m+="/");if(e)m+=encodeURIComponent(e);else{var o=a;n&&(o=o.substring(0,o.length-1));m+=o.substring(o.lastIndexOf("/")+1)}n&&m[m.length-1]!=="/"&&(m+="/");return d(f,a,l,m).then(function(){return c(f,"deleteFile",[a])})},copyFile:function(a,b,e){var f=
this._getService(a),l=this._getService(b);if(f===l)return c(f,"copyFile",arguments);var n=a[a.length-1]==="/",m=b;m[m.length-1]!=="/"&&(m+="/");if(e)m+=encodeURIComponent(e);else{var o=a;n&&(o=o.substring(0,o.length-1));m+=o.substring(o.lastIndexOf("/")+1)}n&&m[m.length-1]!=="/"&&(m+="/");return d(f,a,l,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("shell/shellPageFileService",["dojo","orion/bootstrap","orion/fileClient"],function(b,e,a){var c;c={};var d;c.ShellPageFileService=function(){function a(){this.currentDirectory=null;var b=this;this.withNode(this.SEPARATOR,function(a){b.rootNode=a})}a.prototype={SEPARATOR:"/",computePathString:function(a){if(a.Location===this.SEPARATOR)return this.SEPARATOR;var b=this.SEPARATOR+d.fileServiceName(a.Location),c=a.Parents;if(c){b+=this.SEPARATOR;for(var e=c.length;--e>=0;)b+=c[e].Name,b+=this.SEPARATOR;
b+=a.Name}a.Directory&&(b+=this.SEPARATOR);return b},getChild:function(a,b){if(b.length===0)return null;if(b==="..")return this.getParent(a);if(!a.Children)return null;for(var c=0;c<a.Children.length;c++)if(a.Children[c].Name===b)return a.Children[c];return null},getCurrentDirectory:function(){return this.currentDirectory},getDirectory:function(a,b){if(b.indexOf(this.SEPARATOR)===0)a=this.rootNode,b=b.substring(1);else if(!a){if(!this.currentDirectory)return null;a=this.currentDirectory}for(var c=
b.substring(0,b.lastIndexOf(this.SEPARATOR)).split(this.SEPARATOR),d=a,e=0;e<c.length;e++)if(c[e].length>0&&(d=this.getChild(d,c[e]),!d||!d.Directory))return null;c=b.substring(b.lastIndexOf(this.SEPARATOR)+1);(c=this.getChild(d,c))&&this._retrieveNode(c);d.Children||this._retrieveNode(d);return d},getParent:function(a){a.parent&&this._retrieveNode(a.parent);return a.parent},setCurrentDirectory:function(a){this.currentDirectory=a;this._retrieveNode(a)},withChildren:function(a,b,c){if(a.Children)b&&
b(a.Children);else if(a.ChildrenLocation){var e=this;d.fetchChildren(a.ChildrenLocation).then(function(c){e._sort(c);var d=a.Parents?a.Parents.slice(0):[];d.unshift(a);for(var f=0;f<c.length;f++)c[f].parent=a,c[f].Parents=d;a.Children=c;b&&b(c)},function(a){c&&c(a)})}else b&&b(null)},withNode:function(a,b,c){var e=this;d.loadWorkspace(a).then(function(a){e._retrieveNode(a,b,c)},c)},_retrieveNode:function(a,b,c){if(a.Parents&&a.Children)b&&b(a);else{var e=this,f=function(a,b,c){a.Directory&&!a.Children?
e.withChildren(a,function(){b&&b(a)},c):b&&b(a)},n=function(a){if(a.Location!==e.SEPARATOR)if(a.Parents)if(a.Parents.length===0){var b=a.Location.indexOf(e.SEPARATOR,1),b=a.Location.substring(0,b);d.loadWorkspace(b).then(function(b){b.parent=e.rootNode;a.parent=b})}else{a.parent=a.Parents[0];for(b=0;b<a.Parents.length-1;b++)a.Parents[b].parent=a.Parents[b+1],a.Parents[b].Directory=!0}else a.parent=e.rootNode};if(!a.Parents&&!a.Projects&&a.Location!==e.SEPARATOR&&a.Name!==d.fileServiceName(a.Location))d.loadWorkspace(a.Location).then(function(d){a.Parents=
d.Parents;e.updateParents(a);f(a,b,c)});else{if(a.ChildrenLocation)a.Directory=!0;n(a);f(a,b,c)}}},_sort:function(a){a.sort(function(a,b){if(a.Directory!==b.Directory)return a.Directory?-1:1;var c=a.Name&&a.Name.toLowerCase(),d=b.Name&&b.Name.toLowerCase();return c<d?-1:c>d?1:0})}};return a}();b.ready(function(){e.startup().then(function(b){d=new a.FileClient(b.serviceRegistry)})});return c});
define("orion/widgets/Shell","i18n!orion/widgets/nls/messages,orion/i18nUtil,gcli/index,gcli/types,gcli/types/selection,gcli/argument,gcli/ui/fields,gcli/ui/fields/menu,gcli/util,gcli/settings,gcli/canon,gcli/cli,gcli/commands/help".split(","),function(b,e,a,c,d,f,j,h,g,k,l,n,m){function o(){}o.prototype=Object.create(d.SelectionType.prototype);var p;p={CompletionStatus:{MATCH:0,PARTIAL:1,ERROR:2}};p.Shell=function(){function d(a){this._init(a.input,a.output)}d.prototype={output:function(a){var b=
new n.Output;l.commandOutputManager.onOutput({output:b});b.complete(a)},registerCommand:function(b){if(!b.exec)b.exec=b.callback;if(!b.params)b.params=b.parameters;a.addCommand(b)},registerType:function(a){function b(){}b.prototype=Object.create(o.prototype);b.prototype.name=a.name;b.prototype.parse=function(b){var d=a.parse(b.toString().trim()),e=c.Status.VALID;if(d.status)switch(d.status){case p.CompletionStatus.ERROR:e=c.Status.ERROR;break;case p.CompletionStatus.PARTIAL:e=c.Status.INCOMPLETE}return new c.Conversion(d.value,
b,e,d.message,d.predictions)};if(a.stringify)b.prototype.stringify=function(b){return a.stringify(b)};if(a.increment)b.prototype.increment=function(b){return a.increment(b)};if(a.decrement)b.prototype.decrement=function(b){return a.decrement(b)};c.registerType(b)},setFocus:function(){this.inputText.focus()},addField:function(){},_init:function(c,d){function f(a,b){j.Field.call(this,a,b);this.isImportant=!0;this.element=g.createElement(this.document,"div");this.element.className="orion";this.menu=
new h.Menu({document:this.document,field:!0,type:a});this.menu.onItemClick=this.onItemClick.bind(this);this.element.appendChild(this.menu.element);this.onFieldChange=g.createEvent("CustomField.fieldChanged");this.onInputChange=this.onInputChange.bind(this)}var l=document.createElement("div");l.id="gcli-display";l.style.height="100%";l.style.width="100%";d.appendChild(l);this.inputText=document.createElement("input");this.inputText.type="text";this.inputText.id="gcli-input";this.inputText.style.width=
"100%";this.inputText.style.height="100%";c.appendChild(this.inputText);k.getSetting("hideIntro").value=!0;k.getSetting("eagerHelper").value=2;var n=this;setTimeout(function(){a.createDisplay();n.output(e.formatMessage(b["For a list of available commands type '${0}'."],"<b>help</b>"))});m.startup();m.helpListHtml=m.helpListHtml.replace('"${includeIntro}"',"${false}");f.prototype=Object.create(j.Field.prototype);f.prototype.destroy=function(){j.Field.prototype.destroy.call(this);this.menu.destroy();
delete this.element;delete this.menu;delete this.document;delete this.onInputChange};f.prototype.setConversion=function(a){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())})}};f.prototype.onItemClick=function(a){a=a.conversion;this.onFieldChange({conversion:a});this.setMessage(a.message)};
f.claim=function(a){return a instanceof o?j.Field.MATCH+1:j.Field.NO_MATCH};j.addField(f)}};return d}();return p});
define("shell/paramType-file",["i18n!orion/shell/nls/messages","orion/widgets/Shell","orion/i18nUtil"],function(b,e,a){var c;c={};c.ParamTypeFile=function(){function c(a,b,d,e){this.name=a;this.shellPageFileService=b;this.directories=d;this.files=e}c.prototype={parse:function(a){a=a||"";a.indexOf("'")===0&&(a=a.substring(1));a.lastIndexOf("'")===a.length-1&&(a=a.substring(0,a.length-1));var b=this._getPredictions(a);return this._createCompletion(a,b)},stringify:function(a){return a.typedPath||this.shellPageFileService.computePathString(a)},
_createCompletion:function(c,d){var h;if(d)for(var g=0;g<d.length;g++){var k=d[g];if(k.name===c&&(k.value.Directory&&this.directories||!k.value.Directory&&this.files)){h=k;break}}var l;h?g=e.CompletionStatus.MATCH:d&&d.length>0?g=e.CompletionStatus.PARTIAL:(g=e.CompletionStatus.ERROR,l=a.formatMessage(b["'${0}' is not valid"],c));return{value:h?h.value:null,status:g,message:l,predictions:d}},_find:function(a,b){for(var c=0;c<a.length;c++)if(b(a[c]))return a[c];return null},_getPredictions:function(a){var b=
this.shellPageFileService.getDirectory(null,a);if(!b)return null;var c=b.Children||[],d=a.lastIndexOf(this.shellPageFileService.SEPARATOR)+1,e=a.substring(0,d),a=a.substring(d),d=[],l=[],n;if(a.length===0||a==="."||a===".."){var m=this.shellPageFileService.getParent(b);if(m)n=e+"..",m.typedPath=n,d.push({name:n,value:m,incomplete:!0})}if(a.trim().length===0&&e.length>0)n=e,b.typedPath=n,d.push({name:n,value:b,incomplete:!1});for(b=0;b<c.length;b++)if(m=c[b],(m.Directory||this.files)&&m.Name.indexOf(a)===
0){var o=!m.Directory||m.Children&&m.Children.length===0;n=e+m.Name;m.typedPath=n;m.Directory?d.push({name:n,value:m,incomplete:!o}):l.push({name:n,value:m,incomplete:!o})}return d.concat(l)}};return c}();return 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,l=0;l<b.length;l++){var n=b[l];c(e,n,a,d)===n&&(e=n)}return e}function e(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(d)),
e={},f=0;f<a.length;f++)for(var l=b(a[f].getProperty("contentTypes")),n=0;n<l.length;n++){var m=l[n];e[m.id]||(e[m.id]={id:m.id,name:m.name,image:m.image,"extends":m["extends"],extension:b(m.extension),filename:b(m.filename)})}return e}(b);b.registerService(a,this)}var a="orion.core.contenttypes",c="orion.core.contenttype",d="orion.file.contenttype";e.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:e,getFilenameContentType:b}});
define("orion/crawler/searchCrawler","i18n!orion/crawler/nls/messages,require,orion/searchUtils,orion/contentTypes,orion/Deferred,dojo".split(","),function(b,e,a,c,d,f){function j(b,c,d,e){this.registry=b;this.fileClient=c;this.fileLocations=[];this.fileSkeleton=[];this._totalCounter=this._hitCounter=0;this._searchOnName=e&&e.searchOnName;this._buildSkeletonOnly=e&&e.buildSkeletonOnly;this._fetchChildrenCallBack=e&&e.fetchChildrenCallBack;this.queryObj=this._searchOnName||this._buildSkeletonOnly?
null:a.parseQueryStr(d);this._location=e&&e.location;this._childrenLocation=e&&e.childrenLocation?e.childrenLocation:this._location}j.prototype.search=function(a){var c=this.registry.getService("orion.core.contenttypes");this._onSearchComplete=a;var d=this;this.registry.getService("orion.page.dialog").confirm(b["The search term on this location will not use indexed files."]+"\n"+b["It will take longer time. Do you want to proceed?"],function(a){a&&c.getContentTypes().then(function(a){d.contentTypesCache=
a;d._visitRecursively(d._childrenLocation).then(function(){d._sort(d.fileLocations);d._onSearchComplete({response:{numFound:d.fileLocations.length,docs:d.fileLocations}})})})})};j.prototype.searchName=function(b,c){if(b)this.queryObj=a.parseQueryStr(b,!0);if(c)this.onSearchNameComplete=c;var d=[];this._sort(this.fileSkeleton);if(this.fileSkeleton.length>0){for(var e=0;e<this.fileSkeleton.length;e++){var f=this.fileSkeleton[e].Name.toLowerCase();if(this.queryObj.inFileQuery.wildCard?a.searchOnelineRegEx(this.queryObj.inFileQuery,
f,!0):a.searchOnelineLiteral(this.queryObj.inFileQuery,f,!0))if(d.push(this.fileSkeleton[e]),d.length>=this.queryObj.rows)break}this.onSearchNameComplete({response:{numFound:d.length,docs:d}})}};j.prototype.buildSkeleton=function(a,b){this._buildingSkeleton=!0;var c=this.registry.getService("orion.core.contenttypes"),d=this;a();c.getContentTypes().then(function(a){d.contentTypesCache=a;d._visitRecursively(d._childrenLocation).then(function(){d._buildingSkeleton=!1;b();d.queryObj&&!d._buildSkeletonOnly&&
d.searchName()})})};j.prototype._searchCompleted=function(){console.log("Search Completed.")};j.prototype._searchFiles=function(){var a=[],b;if(this.fileLocations.length>0){b=this;for(var c=0;c<b.fileLocations.length;c++)a.push(b._sniffSearch(b.fileLocations[c]))}return d.all(a)};j.prototype._sort=function(a){a.sort(function(a,b){var c=a.Name&&a.Name.toLowerCase(),d=b.Name&&b.Name.toLowerCase();return c<d?-1:c>d?1:0})};j.prototype._visitRecursively=function(a){var b=[],e=this;this._fetchChildrenCallBack&&
this._fetchChildrenCallBack(a);return e.fileClient.fetchChildren(a).then(function(a){for(var f=0;f<a.length;f++)if(a[f].Directory!==void 0&&a[f].Directory===!1)if(e._searchOnName)b.push(e._buildSingleSkeleton(a[f]));else if(e._buildSkeletonOnly)b.push(e._buildSingleSkeleton(a[f]));else{var h=c.getFilenameContentType(a[f].Name,e.contentTypesCache);h&&h["extends"]==="text/plain"&&b.push(e._sniffSearch(a[f]))}else a[f].Location&&b.push(e._visitRecursively(a[f].ChildrenLocation));return d.all(b)})};j.prototype._hitOnceWithinFile=
function(b){b=b.toLowerCase();return this.queryObj.inFileQuery.wildCard?a.searchOnelineRegEx(this.queryObj.inFileQuery,b,!0):a.searchOnelineLiteral(this.queryObj.inFileQuery,b,!0)};j.prototype._sniffSearch=function(a){this._totalCounter++;var c=this;return c.fileClient.read(a.Location).then(function(d){if(c._hitOnceWithinFile(d))a.LastModified=a.LocalTimeStamp,c.fileLocations.push(a),c._hitCounter++,c._sort(c.fileLocations),c._onSearchComplete({response:{numFound:c.fileLocations.length,docs:c.fileLocations}},
!0);c.registry.getService("orion.page.message").setProgressResult({Message:f.string.substitute(b["${0} files found out of ${1}"],[c._hitCounter,c._totalCounter])})},function(a){console.error("Error loading file content: "+a.message)})};j.prototype._buildSingleSkeleton=function(a){this._totalCounter++;this.fileSkeleton.push(a);this.queryObj&&!this._buildSkeletonOnly&&this._totalCounter%100===0&&this.searchName();a=new d;a.resolve(this._totalCounter);return a};j.prototype.constructor=j;return{SearchCrawler:j}});
define("orion/searchClient","i18n!orion/search/nls/messages,require,dojo,dijit,orion/searchUtils,orion/crawler/searchCrawler,dijit/form/Button,dijit/layout/BorderContainer,dijit/layout/ContentPane".split(","),function(b,e,a,c,d,f){function j(a){this.registry=a.serviceRegistry;this._commandService=a.commandService;(this._fileService=a.fileService)||console.error("No file service on search client")}j.prototype={search:function(a,b,c,e){var j=d.parseQueryStr(a),m=function(a){for(var b=[],c=0;c<a.response.docs.length;c++){var e=
a.response.docs[c];b.push({name:e.Name,path:e.Location,folderName:d.path2FolderName(e.Path?e.Path:e.Location,e.Name),directory:e.Directory,lineNumber:e.LineNumber})}return b};if(this._crawler&&!e)this._crawler.searchName(a,function(a){c(m(a),null)});else try{this._fileService.search(j.location,a).then(function(a){var b=j.searchStr,b=b.substring(b.indexOf("}")+1),b=b.substring(b.indexOf(":")+1);c(m(a),b)},function(a){c(null,null,a)})}catch(o){typeof o==="string"&&o.indexOf("search")>-1&&this._crawler?
this._crawler.searchName(a,function(a){c(m(a),null)}):typeof o==="string"&&o.indexOf("search")>-1&&e?(new f.SearchCrawler(this.registry,this._fileService,a,{childrenLocation:this.getChildrenLocation()})).search(function(a){c(m(a),null)}):this.registry.getService("orion.page.message").setErrorMessage(o)}},getFileService:function(){return this._fileService},setCrawler:function(a){this._crawler=a},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;this._searchRootLocation=this._fileService.fileServiceRootURL(c.Location);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);if(f)this.setLocationbyURL(f.Location),e=f.Name,this._childrenLocation=f.ChildrenLocation;else if(c)this.setLocationbyURL(this._searchRootLocation),e=this._fileService.fileServiceName(c.Location),this._childrenLocation=c.ChildrenLocation;
f=a.byId("search");e||(e="");if(f&&f.placeholder){f.value="";var j=a.string.substitute(b["Search ${0}"],[e]);f.placeholder=j.length>30?j.substring(0,27)+"...":a.string.substitute(b["Search ${0}"],[e])}if(f&&f.title)f.title=b["Type a keyword or wild card to search in "]+e},setLocationbyURL:function(a){this._searchLocation=a},setRootLocationbyURL:function(a){this._searchRootLocation=a},setChildrenLocationbyURL:function(a){this._childrenLocation=a},getSearchLocation:function(){return this._searchLocation},
getSearchRootLocation:function(){return this._searchRootLocation},getChildrenLocation:function(){return this._childrenLocation},createSearchQuery:function(a,b,c,e,f,j){c||(c="Path");c+=" asc";if(b)return a=/\*$/.test(b)?"":"*",d.generateSearchQuery({sort:c,rows:100,start:0,location:e?this._searchRootLocation:this._searchLocation,searchStr:f+this._luceneEscape(b,!0)+a});b=j?!0:this.useRegEx;return d.generateSearchQuery({sort:c,useRegEx:b,rows:40,start:0,searchStr:b?a:this._luceneEscape(a,!0),location:e?
this._searchRootLocation:this._searchLocation})},_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,d,f,j,n){function m(a){return!c?!0:(a=c.getFilenameContentType(a))&&a["extends"]==="text/plain"?!0:!1}return function(c,h,q){if(q)a.place("<div>"+b["Search failed."]+"</div>",d,"only"),typeof j==="function"&&j(d);else{var q=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)}}}(),r=!1;a.empty(d);if(c&&c.length>0){var s=document.createElement("table");s.setAttribute("role","presentation");for(var u=0;u<c.length;u++){var t=c[u],v;if(!r&&(r=!0,f))v=
s.insertRow(0).insertCell(0),v.textContent=f;v=s.insertRow(-1).insertCell(0);v.colspan=2;n&&n(v);var C=document.createElement("a");a.place(document.createTextNode(t.name),C);t.LineNumber&&a.place(document.createTextNode(" (Line "+t.LineNumber+")"),C);var x=t.location;t.isExternalResource?x=t.path:(x=t.directory?e.toUrl("navigate/table.html")+"#"+t.path:m(t.name)?e.toUrl("edit/edit.html")+"#"+t.path:t.path,x==="#"&&(x=""));C.setAttribute("href",x);C.setAttribute("aria-describedby",(t.folderName?t.folderName:
t.path).replace(/[^a-zA-Z0-9_\.:\-]/g,""));a.style(C,"verticalAlign","middle");v.appendChild(C);q(v,t)}a.place(s,d,"last");typeof j==="function"&&j(d)}!r&&h&&(c=a.string.substitute(b["No matches found for ${0}"],[h]),a.place(document.createTextNode(c),d,"only"),typeof j==="function"&&j(d))}}}}};j.prototype.constructor=j;return{Searcher:j}});
define("orion/extensionCommands","require,dojo,orion/commands,orion/editor/regex,orion/contentTypes,orion/URITemplate,orion/i18nUtil".split(","),function(b,e,a,c,d,f,j){var h={},b=window.location.href.split("#")[0],g=b.substring(0,b.length-window.location.pathname.length);h._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};h._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,j=b(a,g);j.length&&e.push({properties:{name:g.name||g.id,nameKey:g.nameKey,id:"eclipse.openWithCommand."+g.id,tooltip:g.name,tooltipKey:g.nameKey,contentType:j,uriTemplate:g.uriTemplate,nls:g.nls,forceSingleItem:!0,isEditor:h?"default":"editor"},service:{}})}return e};
h._makeValidator=function(a,b,c,h){function j(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),j(a,f,c,d)?!0:j(a,b,c,d);else if(b.indexOf(":")>=0)return f=b.substring(0,b.indexOf(":")),b=b.substring(b.indexOf(":")+1),a[f]?j(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=e.hitch(b,function(b){typeof h==="function"&&(b=h.call(this,b));if(b){if(e.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 f=0;f<b.length;f++){var g;a:{var n=b[f],t=c;if(this.info.validationProperties)for(g=0;g<this.info.validationProperties.length;g++){var v=this.info.validationProperties[g];if(v.source){if(!j(n,v.source,v,this)){g=!1;break a}}else{window.console.log("Invalid validationProperties in "+
a.id+".  No source property specified.");g=!1;break a}}if(this.info.contentType&&t){v=!1;if(n=d.getFilenameContentType(n.Name,t))for(g=0;g<this.info.contentType.length;g++)if(n.id===this.info.contentType[g]){v=!0;break}g=v}else g=!0}if(!g)return!1}return!0}return!1});b.generatesURI=e.hitch(b,function(){return!!this.info.uriTemplate});b.getURI=e.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]||j(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=g;a=new f(this.info.uriTemplate);return window.decodeURIComponent(a.expand(b))}return null});return b};h._createCommandOptions=function(a,b,c,d,f,g){function r(j,
s){var r=h._makeValidator(a,c,d,g);j.visibleWhen=r.validationFunction;if(f)r.generatesURI()?j.hrefCallback=e.hitch(r,function(a){return this.getURI(e.isArray(a.items)?a.items[0]:a.items)}):j.callback=e.hitch(a,function(a){var d;if(this.forceSingleItem)a=e.isArray(a.items)?a.items[0]:a.items,d=h._cloneItemWithoutChildren(a);else if(e.isArray(a.items)){d=[];for(var f=0;f<a.items.length;f++)d.push(h._cloneItemWithoutChildren(a.items[f]))}else d=h._cloneItemWithoutChildren(a.items);b.run?b.run(d):c&&
c.getService(b).run(d)});s.resolve(j)}var s=new e.Deferred;a.nls?j.getMessageBundle(a.nls).then(function(b){r({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)}):r({name:a.name,image:a.image,id:a.id||a.name,tooltip:a.tooltip,isEditor:a.isEditor},s);return s};h.getOpenWithCommands=function(a){var b=[],c;for(c in a._commandList){var d=a._commandList[c];d.isEditor&&b.push(d)}return b};return h});
define("orion/widgets/OpenResourceDialog","i18n!orion/widgets/nls/messages,orion/crawler/searchCrawler,orion/contentTypes,require,dojo,dijit,dijit/Dialog,dijit/form/TextBox,orion/widgets/_OrionDialogMixin,text!orion/widgets/templates/OpenResourceDialog.html".split(","),function(b,e,a,c,d,f){return d.declare("orion.widgets.OpenResourceDialog",[f.Dialog,orion.widgets._OrionDialogMixin],{widgetsInTemplate:!0,templateString:d.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;this.contentTypeService=new a.ContentTypeService(this.searcher.registry);if(!this.searcher)throw Error("Missing required argument: searcher");this.searcher.setCrawler(null);this._forceUseCrawler=!1;this._searchOnRoot=!0;this.fileService=this.searcher.getFileService();
if(!this.fileService)throw Error(b["Missing required argument: fileService"]);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);d.connect(this.resourceName,"onChange",this,function(){this.time=+new Date;clearTimeout(this.timeoutId);this.timeoutId=setTimeout(d.hitch(this,this.checkSearch),0)});d.connect(this.resourceName,"onKeyPress",this,function(a){a.keyCode===d.keys.ENTER&&this.results&&(a=d.query("a",this.results),a.length>0&&(window.open(a[0].href),
this.hide()))});d.connect(this,"onKeyPress",this,function(a){var b,c,e,j,m;if(a.keyCode===d.keys.DOWN_ARROW||a.keyCode===d.keys.UP_ARROW)c=d.query("a",this.results),b=d.query("a",this.favresults),e=f.getFocus(),m=c.indexOf(e.node),j=b.indexOf(e.node),a.keyCode===d.keys.DOWN_ARROW?j>=0?f.focus(j<b.length-1?b[j+1]:c.length>0?c[0]:b[0]):m>=0?f.focus(m<c.length-1?c[m+1]:b.length>0?b[0]:c[0]):(c.length>0||b.length>0)&&f.focus(-1<b.length-1?b[0]:c[0]):j>=0?(e=this.resourceName&&this.resourceName.get("textbox"),
f.focus(j>0?b[j-1]:e)):m>=0?(e=this.resourceName&&this.resourceName.get("textbox"),f.focus(m>0?c[m-1]:b.length>0?b[b.length-1]:e)):c.length>0?f.focus(c[c.length-1]):b.length>0&&f.focus(b[b.length-1]),d.stopEvent(a)});d.connect(this,"onMouseUp",function(a){a.target.focus()});this.populateFavorites();var a=this;setTimeout(function(){if(a._forceUseCrawler||!a.fileService.getService(a.searcher.getSearchLocation()).search){var c=a._searchOnRoot?a.searcher.getSearchRootLocation():a.searcher.getChildrenLocation(),
c=new e.SearchCrawler(a.searcher.registry,a.fileService,"",{searchOnName:!0,location:c});a.searcher.setCrawler(c);c.buildSkeleton(function(){d.addClass("crawlingProgress","progressPane_running_dialog");d.byId("crawlingProgress").title=b["Building file skeleton..."]},function(){d.removeClass("crawlingProgress","progressPane_running_dialog");d.byId("crawlingProgress").title=""})}},0)},populateFavorites:function(){d.place("<div>"+b["Populating favorites&#x2026;"]+"</div>",this.favresults,"only");this.favService.getFavorites().then(this.showFavorites());
this.favService.addEventListener("favoritesChanged",this.showFavorites())},onCancel:function(){console.log("cancelled")},showFavorites:function(){var a=this;return function(b){if(b.navigator)b=b.navigator;a.searchRenderer.makeRenderFunction(a.contentTypeService,a.favresults,!1,d.hitch(a,a.decorateResult),a.showFavoritesImage)(b);b&&b.length>0&&d.place("<hr/>",a.favresults,"last")}},showFavoritesImage:function(a){var e=new Image;d.addClass(e,"modelDecorationSprite");d.addClass(e,"core-sprite-makeFavorite");
e.src=c.toUrl("images/none.png");e.title=b.Favorite;a.appendChild(e);d.style(e,"verticalAlign","middle")},checkSearch:function(){clearTimeout(this.timeoutId);var a=(new Date).getTime();a-this.time>this.SEARCH_DELAY?(this.time=a,this.doSearch()):this.timeoutId=setTimeout(d.hitch(this,"checkSearch"),50)},doSearch:function(){var a=this.resourceName&&this.resourceName.get("value"),c=this.showFavorites();this.favService.queryFavorites(a).then(function(a){c(a)});if(a){d.place("<div>"+b["Searching&#x2026;"]+
"</div>",this.results,"only");var e=this;setTimeout(function(){var b=e.searcher.createSearchQuery(null,a,e.searcher._crawler?!1:"NameLower",e._searchOnRoot,e.searcher._crawler?"":"NameLower:"),c=e.searchRenderer.makeRenderFunction(e.contentTypeService,e.results,!1,d.hitch(e,e.decorateResult));e.searcher.search(b,!1,c)},0)}},decorateResult:function(a){var b=this;d.query("a",a).forEach(function(a){d.connect(a,"onmouseup",function(a){!d.mouseButtons.isMiddle(a)&&!d.isCopyKey(a)&&b.hide()});d.connect(a,
"onkeyup",b,function(a){a.keyCode===d.keys.ENTER&&b.hide()})})},show:function(){this.inherited(arguments);this.resourceName.focus()},onHide:function(){clearTimeout(this.timeoutId);this.inherited(arguments)}})});
define("orion/globalCommands","i18n!orion/nls/messages,require,dojo,dijit,orion/commonHTMLFragments,orion/commands,orion/parameterCollectors,orion/extensionCommands,orion/uiUtils,orion/textview/keyBinding,orion/breadcrumbs,orion/splitter,orion/favorites,orion/contentTypes,orion/URITemplate,orion/PageUtil,orion/widgets/themes/container/ThemeSheetWriter,orion/searchUtils,orion/inputCompletion/inputCompletion,orion/Deferred,dojo/DeferredList,dijit/Menu,dijit/MenuItem,dijit/form/DropDownButton,orion/widgets/OpenResourceDialog,orion/widgets/UserMenu,orion/widgets/UserMenuDropDown".split(","),function(b,
e,a,c,d,f,j,h,g,k,l,n,m,o,p,q,r,s,u,t){function v(b,c){if(b.getLabel)return b.getLabel();else{var d=new a.Deferred;d.callback(c.properties.name);return d}}function C(b){(b=b.getService("orion.page.progress"))&&a.hitch(b,b.init)("progressPane")}function x(a,b){var c=a.getService("orion.core.auth");c!==null&&c.getUser().then(function(a){if(a.Name)b.containerNode.textContent=a.Name;else if(a.login)b.containerNode.textContent=a.login})}function A(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:H,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"]});x(d,h)}for(g=0;g<e.length;g++){var h=e[g],j=d.getService(h);a.hitch(this,function(a,b){v(a,b).then(function(b){a.getKey().then(function(c){E.push(c);
a.getUser().then(function(d){H.addUserItem(c,a,b,d)},function(d,e){H.addUserItem(c,a,b,e)});window.addEventListener("storage",function(){N[c]!==localStorage.getItem(c)&&(N[c]=localStorage.getItem(c),a.getUser().then(function(d){H.addUserItem(c,a,b,d)},function(){H.addUserItem(c,a,b)}))},!1)})})})(j,h)}}}function B(b,d,e,f,g){var h=new c.Menu({style:"display: none;"}),d=new c.PopupMenuItem({label:d,popup:h});b.addChild(d);s.populateSearchMenu(e,h,f,function(a){return g(a)});a.connect(b,"_openPopup",
d,function(){s.populateSearchMenu(e,h,f,function(a){return g(a)})})}function z(a,b){var c=document.createElement("a");c.href=e.toUrl("search/search.html")+"#"+a;c.textContent=b;return c}function y(d,e,f,g){(e=c.byId("searchOptionsDropDown"))&&e.destroy();e=new c.Menu({style:"display: none;padding:0px;border-radius:3px;",id:"searchOptionsMenu"});a.addClass(e.domNode,"commandMenu");e.addChild(new c.CheckedMenuItem({label:b["Open in new tab"],checked:g,onChange:function(a){s.setOpenSearchPref(d,a)}}));
e.addChild(new c.MenuSeparator);e.addChild(new c.CheckedMenuItem({label:b["Regular expression"],checked:!1,onChange:function(a){f.useRegEx=a}}));e.addChild(new c.MenuSeparator);B(e,b["Recent searches"],d,"recentSearch",function(a){return z(f.createSearchQuery(a.name,!1,null,!1,null,a.regEx),a.name)});B(e,b["Saved searches"],d,"search",function(a){return z(a.query,a.name)});g=new orion.widgets.UserMenuDropDown({label:b["Search options"],showLabel:!1,id:"searchOptionsDropDown",dropDown:e});g.valueNode&&
a.destroy(g.valueNode);g.titleNode&&a.attr(g.titleNode,"title")&&a.removeAttr(g.titleNode,"title");a.addClass(g.domNode,"bannerMenu");a.addClass(g.domNode,"bannerMenuSearchOptions");a.place(g.domNode,"searchOptions","last")}function w(){if(a.byId("relatedLinks")&&L){var b=c.byId("related");b&&b.closeDropDown();L.focusedChild=null;a.forEach(L.getChildren(),function(a){L.removeChild(a);a.destroy()})}}function G(d,e){L||(L=new c.Menu({style:"display: none;padding:3px;border-radius:3px;",id:"relatedLinksMenu"}));
d._addMenuItem(L,e);var f=c.byId("related"),g=a.byId("relatedLinks");g&&!f&&(f=new orion.widgets.UserMenuDropDown({id:"related",label:b.Related,dropDown:L}),f.valueNode&&a.destroy(f.valueNode),f.titleNode&&a.attr(f.titleNode,"title")&&a.removeAttr(f.titleNode,"title"),a.addClass(f.domNode,"bannerMenu"),a.place(f.domNode,g,"only"))}function D(b,c,d,e,g){var j,k=b.getServiceReferences("orion.page.link.related");k.length<=0||a.byId("relatedLinks")&&a.when(function(){if(j)return j;var a=b.getService("orion.core.contenttypes");
a||(a=new o.ContentTypeService(b),a=b.getService("orion.core.contenttypes"));return a.getContentTypes().then(function(a){return j=a})}(),a.hitch(this,function(){var l;w();for(var o=[],n=0;n<k.length;n++){var m={},p,q=k[n].getPropertyKeys();for(p=0;p<q.length;p++)m[q[p]]=k[n].getProperty(q[p]);if(m.id){var s=function(b){if(b)if(!b.visibleWhen||b.visibleWhen(c)){var d=new f.CommandInvocation(e,c,c,null,b);G(b,d)}else typeof g==="function"&&(l||(l=g()),a.when(l,a.hitch(b,function(a){a&&c===U&&(!this.visibleWhen||
this.visibleWhen(a))&&G(this,new f.CommandInvocation(e,a,a,null,this))})))},r=null;if(a.indexOf(d,m.id)<0)if((m.nls&&m.nameKey||m.name)&&m.uriTemplate)p=h._createCommandOptions(m,k[n],b,j,!0),o.push(p),p.then(a.hitch(this,function(a){a=new f.Command(a);s(a)}));else{if(!r&&(r=e.findCommand(m.id))){s(r);continue}if(!r){var t=b.getServiceReferences("orion.navigate.command");for(p=0;p<t.length;p++)if(t[p].getProperty("id")===m.id){for(var m={},q=t[p].getPropertyKeys(),u=0;u<q.length;u++)m[q[u]]=t[p].getProperty(q[u]);
p=h._createCommandOptions(m,t[p],b,j,!0);o.push(p);p.then(a.hitch(this,function(a){r=new f.Command(a);s(r)}));break}}}}}(new a.DeferredList(o)).addBoth(a.hitch(this,function(){var b=a.byId("relatedLinks");L&&b&&(L.getChildren().length===0?a.style(b,"visibility","hidden"):a.style(b,"visibility","visible"))}))}))}function M(b){var c=a.byId("globalActions");c&&(b.destroy(c),b.renderCommands(c.id,c,{},{},"tool"))}function I(a){var c=a.getService("orion.core.favorite");c||(c=new m.FavoritesService({serviceRegistry:a}),
c=a.getService("orion.core.favorite"));O&&O.Location&&c.hasFavorite(O.ChildrenLocation||O.Location).then(function(d){d?a.getService("orion.page.message").setMessage(O.Name+b[" is already a favorite."],2E3):(c.makeFavorites([O]),a.getService("orion.page.message").setMessage(O.Name+b[" has been added to the favorites list."],2E3))})}function S(c,d){var e=a.byId("pageFavorite");e&&(O&&O.Location?(a.addClass(e,"bannerButton"),a.connect(e,"onclick",this,function(){I(c)}),a.connect(e,"onkeypress",this,
function(b){b.keyCode===a.keys.ENTER&&I(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"))}function T(a){a.getPreferences("/themes",2).then(function(a){var b=a.get("selected");if(b){var b=JSON.parse(b),a=JSON.parse(a.get("styles")),c;for(c in a)if(a[c].name===b.selected){c=a[c];c=(new r.ThemeSheetWriter).getSheet(c);a=document.createElement("STYLE");
a.appendChild(document.createTextNode(c));(document.getElementsByTagName("HEAD")[0]||document.documentElement).appendChild(a);break}}})}function P(b){var c={},d=null;typeof b==="string"&&(b=a.byId(b));b||(b=a.byId("pageActions"));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.parameterArea=a.query(".parameters",d)[0],c.dismissArea=a.query(".parametersDismiss",d)[0],
c.notifications=a.query("#notificationArea",d)[0],d.parentNode&&(c.toolbarTarget=a.query(".toolbarTarget",d.parentNode)[0],c.toolbarTarget)))b=a.position(d),c.toolbarTargetY=b.h+1;return c}function K(b){if(b.toolbarTarget&&b.toolbarTargetY){var c=0,d;b.notifications&&a.hasClass(b.notifications,"slideContainerActive")&&(d=a.position(b.notifications),c+=d.h);b.slideContainer&&a.hasClass(b.slideContainer,"slideContainerActive")&&(d=a.position(b.slideContainer),c+=d.h);c>0&&(c+=8);a.style(b.toolbarTarget,
{top:b.toolbarTargetY+c+"px",bottom:0})}}var F=function(a){var b=document.createElement("a");b.href=a;return b.href}(e.toUrl("auth/NotifyAuthentication.html")),N={},H=new orion.widgets.UserMenu,E=[],L,U,Q=[],O=null,J;return{generateUserInfo:A,generateRelatedLinks:D,generateBanner:function(h,l,o,r,v,x,w,I){function z(b){a.query(".targetSelector").forEach(function(a){a.target=b})}function B(a){a.registerService("orion.cm.managedservice",{updated:function(a){z(a&&a["links.newtab"]!=="undefined"?a["links.newtab"]?
"_blank":"_self":"_self")}},{pid:"nav.config"})}var F;T(r);r=a.byId(h);if(!a.byId("staticBanner")){if(!r)throw b["could not find banner parent, id was "]+h;a.place(d.topHTMLFragment,r,"first")}if(h=a.byId("pageToolbar"))a.addClass(h,"toolbarLayout"),a.place(d.toolbarHTMLFragment,h,"only");(h=a.byId("footer"))&&a.place(d.bottomHTMLFragment,h,"only");o.setParameterCollector(new j.CommandParameterCollector(P,K));a.place('<div id="keyAssist" style="display: none" class="keyAssistFloat" role="list" aria-atomic="true" aria-live="assertive"></div>',
document.body,"last");var D=a.byId("primaryNav");if(D)for(var h=l.getServiceReferences("orion.page.link"),r=q.matchResourceParameters(window.location.href),G={OrionHome:window.location.protocol+"//"+window.location.host,Location:r.resource},r=0;r<h.length;r++){for(var E={},x=h[r].getPropertyKeys(),N=0;N<x.length;N++)E[x[N]]=h[r].getProperty(x[N]);E.uriTemplate&&E.nls&&(E.name||E.nameKey)?e(["i18n!"+E.nls],function(b){var c=new p(E.uriTemplate),c=window.decodeURIComponent(c.expand(G)),c=q.validateURLScheme(c),
c=a.create("a",{href:c,target:"_self","class":"targetSelector"},D,"last");F=document.createTextNode(E.nameKey?b[E.nameKey]:E.name);a.place(F,c,"only")}):E.uriTemplate&&E.name&&(x=new p(E.uriTemplate),x=window.decodeURIComponent(x.expand(G)),x=q.validateURLScheme(x),x=a.create("a",{href:x,target:"_self","class":"targetSelector"},D,"last"),F=document.createTextNode(E.name),a.place(F,x,"only"))}var J=a.byId("search");if(!J)throw"failed to generate HTML for banner";new u.InputCompletion(J,function(a){s.getMixedSearches(l,
!0,function(b){var c,d=[],e=!1;for(c in b)b[c].label?(e||(d.push({type:"category",label:"Saved searches"}),e=!0),d.push({type:"proposal",label:b[c].label,value:b[c].name})):d.push({type:"proposal",label:b[c].name,value:b[c].name});a(d)})},{group:"globalSearch",extendedProvider:function(a,b){var c=l.getServiceReferences("orion.search.proposal");if(!c||c.length===0)b(null);else{var d=[];c.forEach(function(b){var c=b.getProperty("filterForMe");d.push(l.getService(b).run(a).then(function(a){for(var b=
{filterForMe:c,proposals:[]},d=0;d<a.length;d++){b.proposals.push({type:"category",label:a[d].category});for(var e=0;e<a[d].datalist.length;e++)b.proposals.push({type:"proposal",label:a[d].datalist[e],value:a[d].datalist[e]})}return b}))});t.all(d).then(function(a){for(var c=[],d=0;d<a.length;d++)c.push(a[d]);b(c)})}}});J.addEventListener("keydown",function(a){if(!a.defaultPrevented&&(a.charCode||a.keyCode)===13)if(v){if(J.value.length>0){s.addRecentSearch(l,J.value,v.useRegEx);var c=v.createSearchQuery(J.value);
s.getOpenSearchPref(l,function(a){var b=e.toUrl("search/search.html")+"#"+c;a?window.open(b):window.location=b})}}else window.alert(b["Can't search: no search service is available"])});s.getOpenSearchPref(l,function(a){y(l,o,v,a)});var h=a.query(".dijitManagesLayout")[0],L;h&&h.id&&(L=c.byId(h.id));var O;if(h=a.query(".split")[0]){var r=a.query(".sidePanelLayout")[0],Q=a.query(".mainPanelLayout")[0];if(r&&Q&&(O=new n.Splitter({node:h,sidePanel:r,mainPanel:Q}),h=new f.Command({name:"Toggle side panel",
tooltip:"Open or close the side panel",id:"orion.toggleSidePane",callback:function(){O.toggleSidePanel()}}),o.addCommand(h),o.registerCommandContribution("pageActions","orion.toggleSidePane",1,null,!0,new f.CommandKeyBinding("o",!0)),w||L))O.addResizeListener(function(a){w&&a===Q&&w.getTextView().resize();L&&L.resize()}),w&&(w.getTextView().setKeyBinding(new k.KeyBinding("o",!0),"toggleOutliner"),w.getTextView().setAction("toggleOutliner",function(){O.toggleSidePanel();return!0},{name:"Toggle Outliner"}))}L&&
window.setTimeout(function(){L.layout()},10);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=l.getService("orion.core.favorite"),e=function(a){return function(c){c?l.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))}}});o.addCommand(h);var U=function(b,c,d){var e=c.getService("orion.core.favorite");e||(e=new m.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(){U(v,l,w)}});w&&(w.getTextView().setKeyBinding(new k.KeyBinding("f",!0,!0,!1),h.id),w.getTextView().setAction(h.id,function(){U(v,l,w);return!0},h));o.addCommand(h);o.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=a.byId("banner"),c=a.byId("footer"),d=a.query(".content-fixedHeight")[0];b.style.display==="none"?(b.style.display="block",c.style.display="block",a.removeClass(d,"content-fixedHeight-maximized")):(b.style.display="none",c.style.display="none",a.addClass(d,"content-fixedHeight-maximized"));w&&w.getTextView().resize();L&&window.setTimeout(function(){L.resize()},10);return!0}});o.addCommand(h);o.registerCommandContribution("globalActions","orion.toggleTrim",
100,null,!0,new f.CommandKeyBinding("m",!0,!0));w&&(w.getTextView().setKeyBinding(new f.CommandKeyBinding("m",!0,!0),h.id),w.getTextView().setAction(h.id,h.callback,h));var R=a.byId("keyAssist");a.connect(document,"onkeypress",a.hitch(this,function(b){if(b.charOrCode===a.keys.ESCAPE)R.style.display="none"}));a.connect(document,"onclick",a.hitch(this,function(a){if((a=a.target||a.originalTarget||a.srcElement)&&a.id!=="keyAssist")R.style.display="none"}));w&&w.getTextView().addEventListener("MouseDown",
function(){R.style.display="none"});I&&I.addHandler({isActive:function(){return R.style.display==="block"},cancel:function(){return this.isActive()?(R.style.display="none",!0):!1}});I=new f.Command({name:b["System Configuration Details"],tooltip:b["System Config Tooltip"],id:"orion.configDetailsPage",hrefCallback:function(){return e.toUrl("help/about.html")}});o.addCommand(I);o.registerCommandContribution("globalActions","orion.configDetailsPage",100,null,!0,new f.CommandKeyBinding(112,!0,!0));I=
new f.Command({name:b["Background Operations"],tooltip:b["Background Operations Tooltip"],id:"orion.backgroundOperations",hrefCallback:function(){return e.toUrl("operations/list.html")}});o.addCommand(I);o.registerCommandContribution("globalActions","orion.backgroundOperations",100,null,!0,new f.CommandKeyBinding("o",!0,!0));I=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(R.style.display==="none"){a.empty(R);
if(w){a.place("<h2>"+b.Editor+"</h2>",R,"last");for(var c=w.getTextView().getActions(!1),d=0;d<c.length;d++){var e=c[d],f=e,h=w.getTextView(),j=h.getActionDescription(e);if(j&&j.name)f=j.name;e=h.getKeyBindings(e);for(h=0;h<e.length;h++)a.place('<span role="listitem">'+g.getUserKeyString(e[h])+" = "+f+"<br></span>",R,"last")}}a.place("<h2>"+b.Global+"</h2>",R,"last");o.showKeyBindings(R);R.style.display="block"}else R.style.display="none";return!0}});o.addCommand(I);o.registerCommandContribution("globalActions",
"eclipse.keyAssist",100,null,!0,new f.CommandKeyBinding(191,!1,!0));w&&(h=window.navigator.platform.indexOf("Mac")!==-1,w.getTextView().setKeyBinding(new f.CommandKeyBinding(191,!1,!0,!h,h),I.id),w.getTextView().setAction(I.id,I.callback,I));H.setKeyAssist(I.callback);S(l,o);M(o);A(l);C(l);a.subscribe("/dojo/hashchange",o,function(){o.processURL(window.location.href)});window.setTimeout(function(){B(l)},0)},getToolbarElements:P,layoutToolbarElements:K,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,U=b.target,D(b.serviceRegistry,b.target,Q,b.commandService,b.makeAlternate)):(b.breadcrumbTarget||(e=e||b.task||b.name),c=b.name);(J=b.title)||(J=c?c+" - "+b.task:b.task);window.document.title=J;a.empty("location");new l.BreadCrumbs({container:"location",resource:b.breadcrumbTarget||b.target,
rootSegmentName:e,workspaceRootSegmentName:d,makeHref:b.makeBreadcrumbLink});O=b.target&&b.isFavoriteTarget?b.target:null;S(b.serviceRegistry,b.commandService)},setDirtyIndicator:function(b){if(J)J.charAt(0)==="*"&&!b&&(J=J.substring(1)),b&&J.charAt(0)!=="*"&&(J="*"+J),window.document.title=J;var c=a.byId("dirty");if(c)c.textContent=b?"*":""},setPageCommandExclusions:function(a){Q=a},notifyAuthenticationSite:F}});
define("shell/extensionCommands",["require","dojo","orion/contentTypes","orion/URITemplate","orion/i18nUtil"],function(b,e,a,c,d){var f={},b=window.location.href.split("#")[0],j=b.substring(0,b.length-window.location.pathname.length);f._cloneItemWithoutChildren=function g(a){if(a===null||typeof a!=="object")return a;var b=a.constructor(),c;for(c in a)c!=="children"&&c!=="Children"&&(b[c]=g(a[c]));return b};f._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 j=c[f],q=d&&d.editor===j.id,r=b(a,j);r.length&&e.push({properties:{name:j.name||j.id,nameKey:j.nameKey,id:"eclipse.openWithCommand."+j.id,tooltip:j.name,tooltipKey:j.nameKey,contentType:r,uriTemplate:j.uriTemplate,nls:j.nls,forceSingleItem:!0,isEditor:q?"default":"editor"},service:{}})}return e};f._makeValidator=function(b,
d,f,n){function m(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),m(a,f,c,d)?!0:m(a,b,c,d);else if(b.indexOf(":")>=0)return f=b.substring(0,b.indexOf(":")),b=b.substring(b.indexOf(":")+1),a[f]?m(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}}d={info:b};d.validationFunction=e.hitch(d,function(c){typeof n==="function"&&(c=n.call(this,c));if(c){if(e.isArray(c)){if((this.info.forceSingleItem||this.info.uriTemplate)&&c.length!==1)return!1;if(c.length<1)return!1}else c=[c];for(var d=0;d<c.length;d++){var j;a:{var k=c[d],s=f;if(this.info.validationProperties)for(j=0;j<this.info.validationProperties.length;j++){var u=this.info.validationProperties[j];if(u.source){if(!m(k,u.source,u,this)){j=!1;break a}}else{window.console.log("Invalid validationProperties in "+
b.id+".  No source property specified.");j=!1;break a}}if(this.info.contentType&&s){u=!1;if(k=a.getFilenameContentType(k.Name,s))for(j=0;j<this.info.contentType.length;j++)if(k.id===this.info.contentType[j]){u=!0;break}j=u}else j=!0}if(!j)return!1}return!0}return!1});d.generatesURI=e.hitch(d,function(){return!!this.info.uriTemplate});d.getURI=e.hitch(d,function(a){if(this.info.uriTemplate){var b={},d;for(d in a)a.hasOwnProperty(d)&&(b[d]=a[d]);if(this.info.validationProperties)for(d=0;d<this.info.validationProperties.length;d++){var e=
this.info.validationProperties[d];e.source&&e.variableName&&(this.itemCached===a&&this[e.variableName]||m(a,e.source,e,this),a[e.variableName]?window.console.log("Variable name "+e.variableName+" in the extension "+this.info.id+" conflicts with an existing property in the item metadata."):b[e.variableName]=this[e.variableName])}b.OrionHome=j;a=new c(this.info.uriTemplate);return window.decodeURIComponent(a.expand(b))}return null});return d};f._createCommandOptions=function(a,b,c,j,m,o){function p(d,
p){var q=f._makeValidator(a,c,j,o);d.visibleWhen=q.validationFunction;if(m)q.generatesURI()?d.hrefCallback=e.hitch(q,function(a){return this.getURI(e.isArray(a.items)?a.items[0]:a.items)}):d.callback=e.hitch(a,function(a){var d;if(this.forceSingleItem)a=e.isArray()?a.items[0]:a.items,d=f._cloneItemWithoutChildren(a);else if(e.isArray(a.items)){d=[];for(var g=0;g<a.items.length;g++)d.push(f._cloneItemWithoutChildren(a.items[g]))}else d=f._cloneItemWithoutChildren(a.items);b.run?b.run(d):c&&c.getService(b).run(d)});
p.resolve(d)}var q=new e.Deferred;a.nls?d.getMessageBundle(a.nls).then(function(b){p({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},q)}):p({name:a.name,image:a.image,id:a.id||a.name,tooltip:a.tooltip,isEditor:a.isEditor},q);return q};f.getOpenWithCommands=function(a){var b=[],c;for(c in a._commandList){var d=a._commandList[c];d.isEditor&&b.push(d)}return b};return f});
define("shell/shellPage","i18n!orion/shell/nls/messages,require,dojo,orion/bootstrap,orion/commands,orion/fileClient,orion/searchClient,orion/globalCommands,orion/widgets/Shell,shell/shellPageFileService,shell/paramType-file,orion/i18nUtil,shell/extensionCommands,orion/contentTypes".split(","),function(b,e,a,c,d,f,j,h,g,k,l,n,m,o){function p(a){for(var b=0;b<w.length;b++){var c=w[b];if(c.visibleWhen(a))return c.hrefCallback({items:a})}b=y.getFileContentType(a);switch(b&&b.id){case "image/jpeg":case "image/png":case "image/gif":case "image/ico":case "image/tiff":case "image/svg":return a.Location}c=
null;for(b=0;b<w.length;b++)if(w[b].isEditor==="default"){c=w[b];break}return!c?a.Location:c.hrefCallback({items:a})}function q(a){var b=document.createElement("a");if(a.Directory)return b.href="#"+a.Location,b.className="shellPageDirectory",b.textContent=a.Name,b;b.href=p(a);b.target="_blank";b.textContent=a.Name;return b}function r(a){var c=document.createElement("span");c.appendChild(document.createTextNode(b["Changed to: "]));var d=document.createElement("b");d.appendChild(document.createTextNode(a));
c.appendChild(d);return c}function s(b){b=b.directory;if(!b)return"";x.setCurrentDirectory(b);z=!0;a.hash(b.Location);b=x.computePathString(b);return r(b)}function u(a){a.file&&(a=p(a.file),window.open(a))}function t(b,c){var d=c.createPromise(),e=a.hash()||x.SEPARATOR;A.loadWorkspace(e).then(function(a){x.setCurrentDirectory(a);x.withChildren(a,function(a){for(var b=document.createElement("div"),c=0;c<a.length;c++)b.appendChild(q(a[c])),b.appendChild(document.createElement("br"));d.resolve(b);setTimeout(function(){for(var a=
B.querySelectorAll(".shellPageDirectory"),b=0;b<a.length;b++)a[b].setAttribute("target","_self"),a[b].className=""},1)},function(a){D(d,a)})},function(a){D(d,a)});return d}function v(a,b){var c=b.createPromise(),d=x.getCurrentDirectory();A.loadWorkspace(d.Location).then(function(a){var a=x.computePathString(a),b=document.createElement("b");b.appendChild(document.createTextNode(a));c.resolve(b)},function(a){D(c,a)});return c}function C(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){D(d,a)});return d}}var x,A,B,z=!1,y,w=[],G,D=function(a,c){if(c&&c.Message)c=c.Message;var d=document.createElement("span");d.textContent=n.formatMessage(b["File service error: ${0}"],c);a.resolve(d)};a.addOnLoad(function(){c.startup().then(function(c){G=c.serviceRegistry;var c=c.preferences,e=new d.CommandService({serviceRegistry:G});A=new f.FileClient(G);var p=new j.Searcher({serviceRegistry:G,commandService:e,fileService:A});
h.generateBanner("orion-shellPage",G,e,c,p);h.setPageTarget({task:b.Shell});B=document.getElementById("shell-output");var c=document.getElementById("shell-input"),q=new g.Shell({input:c,output:B});q.setFocus();x=new k.ShellPageFileService;c=a.hash();A.loadWorkspace(c||"/file").then(function(a){x.setCurrentDirectory(a)});c.length===0&&(z=!0,a.hash("/file"));c=new l.ParamTypeFile("directory",x,!0,!1);q.registerType(c);c=new l.ParamTypeFile("file",x,!1,!0);q.registerType(c);q.registerCommand({name:"cd",
description:b["Changes the current directory"],callback:s,parameters:[{name:"directory",type:"directory",description:b["The name of the directory"]}],returnType:"html"});q.registerCommand({name:"edit",description:b["Edits a file"],callback:u,parameters:[{name:"file",type:"file",description:b["The name of the file"]}]});q.registerCommand({name:"ls",description:b["Lists the files in the current directory"],callback:t,returnType:"html"});q.registerCommand({name:"pwd",description:b["Prints the current directory location"],
callback:v,returnType:"html"});y=new o.ContentTypeService(G);G.getService("orion.core.contenttypes").getContentTypes().then(function(a){for(var b=m._createOpenWithCommands(G,a),c=0;c<b.length;c++)m._createCommandOptions(b[c].properties,b[c].service,G,a,!0).then(function(a){w.push(a)})});c=G.getServiceReferences("orion.shell.command");for(e=0;e<c.length;++e){var p=c[e],D=G.getService(p);D&&(p.getProperty("nls")&&p.getProperty("descriptionKey")?n.getMessageBundle(p.getProperty("nls")).then(function(a,
b){q.registerCommand({name:a.getProperty("name"),description:b[a.getProperty("descriptionKey")],callback:C(D),returnType:"string",parameters:a.getProperty("parameters"),manual:a.getProperty("manual")})},p):q.registerCommand({name:p.getProperty("name"),description:p.getProperty("description"),callback:C(D),returnType:"string",parameters:p.getProperty("parameters"),manual:p.getProperty("manual")}))}a.subscribe("/dojo/hashchange",function(a){z?z=!1:a.length===0?(A.loadWorkspace(x.SEPARATOR).then(function(a){x.setCurrentDirectory(a)}),
q.output(r("/"))):A.loadWorkspace(a).then(function(a){x.setCurrentDirectory(a);a=x.computePathString(a);q.output(r(a))})})})})});