/*******************************************************************************
 * @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, 2016 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) 2014 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 RequireJS i18n 2.0.4 Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved.
 * Available via the MIT or new BSD license.
 * see: http://github.com/requirejs/i18n 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). 
 * 
 ******************************************************************************/

/*******************************************************************************
 * @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, 2015 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) 2002 Douglas Crockford  (www.JSLint.com)

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/

/*******************************************************************************
 * @license
 * Copyright (c) 2016 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
 *******************************************************************************/

/*

  The MIT License (MIT)

  Copyright (c) 2007-2013 Einar Lielmanis and contributors.

  Permission is hereby granted, free of charge, to any person
  obtaining a copy of this software and associated documentation files
  (the "Software"), to deal in the Software without restriction,
  including without limitation the rights to use, copy, modify, merge,
  publish, distribute, sublicense, and/or sell copies of the Software,
  and to permit persons to whom the Software is furnished to do so,
  subject to the following conditions:

  The above copyright notice and this permission notice shall be
  included in all copies or substantial portions of the Software.

  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
  BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
  ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  SOFTWARE.

 JS Beautifier
---------------


  Written by Einar Lielmanis, <einar@jsbeautifier.org>
      http://jsbeautifier.org/

  Originally converted to javascript by Vital, <vital76@gmail.com>
  "End braces on own line" added by Chris J. Shull, <chrisjshull@gmail.com>
  Parsing improvements for brace-less statements by Liam Newman <bitwiseman@gmail.com>


  Usage:
    js_beautify(js_source_text);
    js_beautify(js_source_text, options);

  The options are:
    indent_size (default 4)          - indentation size,
    indent_char (default space)      - character to indent with,
    preserve_newlines (default true) - whether existing line breaks should be preserved,
    max_preserve_newlines (default unlimited) - maximum number of line breaks to be preserved in one chunk,

    jslint_happy (default false) - if true, then jslint-stricter mode is enforced.

            jslint_happy        !jslint_happy
            ---------------------------------
            function ()         function()

            switch () {         switch() {
            case 1:               case 1:
              break;                break;
            }                   }

    space_after_anon_function (default false) - should the space before an anonymous function's parens be added, "function()" vs "function ()",
          NOTE: This option is overriden by jslint_happy (i.e. if jslint_happy is true, space_after_anon_function is true by design)

    brace_style (default "collapse") - "collapse-preserve-inline" | "collapse" | "expand" | "end-expand" | "none"
            put braces on the same line as control statements (default), or put braces on own line (Allman / ANSI style), or just put end braces on own line, or attempt to keep them where they are.

    space_before_conditional (default true) - should the space before conditional statement be added, "if(true)" vs "if (true)",

    unescape_strings (default false) - should printable characters in strings encoded in \xNN notation be unescaped, "example" vs "\x65\x78\x61\x6d\x70\x6c\x65"

    wrap_line_length (default unlimited) - lines should wrap at next opportunity after this number of characters.
          NOTE: This is not a hard limit. Lines will continue until a point where a newline would
                be preserved if it were present.

    end_with_newline (default false)  - end output with a newline


    e.g

    js_beautify(js_source_text, {
      'indent_size': 1,
      'indent_char': '\t'
    });

*/

// if (a) if (b) if(c) d(); else e(); else f();

/*******************************************************************************
 * @license
 * Copyright (c) 2016 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) 2016 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) 2016 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) 2014, 2016 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
 *******************************************************************************/

!function(e,t){"function"==typeof define&&define.amd?define("orion/Deferred",t):"object"==typeof exports?module.exports=t():(e.orion=e.orion||{},e.orion.Deferred=t())}(this,function(){function e(){for(var e;e=r.shift();)e();o=!1}function t(e){r.push(e),o||(o=!0,s())}function n(e){return function(t){e(t)}}function a(e,t,a){try{var i=e(t),r=i&&("object"==typeof i||"function"==typeof i)&&i.then;if("function"==typeof r)if(i===a.promise)a.reject(new TypeError);else{var o=i.cancel;"function"==typeof o?a._parentCancel=o.bind(i):delete a._parentCancel,r.call(i,n(a.resolve),n(a.reject),n(a.progress))}else a.resolve(i)}catch(s){a.reject(s)}}function i(){function e(){for(var e;e=c.shift();){var t=e.deferred,n="fulfilled"===l?"resolve":"reject",i=e[n];"function"==typeof i?a(i,s,t):t[n](s)}}function n(n){delete d._parentCancel,l="rejected",s=n,c.length&&t(e)}function r(a){function o(e){return function(t){l&&"assumed"!==l||e(t)}}delete d._parentCancel;try{var u=a&&("object"==typeof a||"function"==typeof a)&&a.then;if("function"==typeof u)if(a===d)n(new TypeError);else{l="assumed";var f=a&&a.cancel;if("function"!=typeof f){var p=new i;a=p.promise;try{u(p.resolve,p.reject,p.progress)}catch(h){p.reject(h)}f=a.cancel,u=a.then}s=a,u.call(a,o(r),o(n)),d._parentCancel=f.bind(a)}else l="fulfilled",s=a,c.length&&t(e)}catch(m){o(n)(m)}}function o(){var e=d._parentCancel;if(e)delete d._parentCancel,e();else if(!l){var t=new Error("Cancel");t.name="Cancel",n(t)}}var s,l,c=[],d=this;this.resolve=function(e){return l||r(e),d},this.reject=function(e){return l||n(e),d},this.progress=function(e){return l||c.forEach(function(t){if(t.progress)try{t.progress(e)}catch(n){}}),d.promise},this.cancel=function(){return d._parentCancel?setTimeout(o,0):o(),d},this.then=function(n,a,r){var o=new i;return o._parentCancel=d.promise.cancel,c.push({resolve:n,reject:a,progress:r,deferred:o}),("fulfilled"===l||"rejected"===l)&&t(e),o.promise},this.promise={then:d.then,cancel:d.cancel}}var r=[],o=!1,s=function(){if("undefined"!=typeof process&&"function"==typeof process.nextTick){var t=process.nextTick;return function(){t(e)}}if("function"==typeof MutationObserver){var n=document.createElement("div"),a=new MutationObserver(e);return a.observe(n,{attributes:!0}),function(){n.setAttribute("class","_tick")}}return function(){setTimeout(e,0)}}();return i.all=function(e,t){function n(e,t){s||(o[e]=t,0===--r&&l.resolve(o))}function a(e,a){if(!s){if(t)try{return void n(e,t(a))}catch(i){a=i}l.reject(a)}}var r=e.length,o=[],s=!1,l=new i;return l.then(void 0,function(){s=!0,e.forEach(function(e){e.cancel&&e.cancel()})}),0===r?l.resolve(o):e.forEach(function(e,t){e.then(n.bind(void 0,t),a.bind(void 0,t))}),l.promise},i.when=function(e,t,n,a){var r,o;return e&&"function"==typeof e.then?r=e:(o=new i,o.resolve(e),r=o.promise),r.then(t,n,a)},i}),define("orion/EventTarget",[],function(){function e(){this._namedListeners={}}return e.prototype={dispatchEvent:function(e){if(!e.type)throw new Error("unspecified type");var t=this._namedListeners[e.type];return t&&t.forEach(function(t){try{"function"==typeof t?t(e):t.handleEvent(e)}catch(n){"undefined"!=typeof console&&console.log(n)}}),!e.defaultPrevented},addEventListener:function(e,t){("function"==typeof t||t.handleEvent)&&(this._namedListeners[e]=this._namedListeners[e]||[],this._namedListeners[e].push(t))},removeEventListener:function(e,t){var n=this._namedListeners[e];if(n)for(var a=0;a<n.length;a++)if(n[a]===t){1===n.length?delete this._namedListeners[e]:n.splice(a,1);break}}},e.prototype.constructor=e,e.attach=function(t){var n=new e;t.dispatchEvent=n.dispatchEvent.bind(n),t.addEventListener=n.addEventListener.bind(n),t.removeEventListener=n.removeEventListener.bind(n)},e}),function(e,t){"function"==typeof define&&define.amd?define("orion/plugin",["orion/Deferred","orion/EventTarget"],t):"object"==typeof exports?module.exports=t(require("orion/Deferred"),require("orion/EventTarget")):(e.orion=e.orion||{},e.orion.PluginProvider=t(e.orion.Deferred,e.orion.EventTarget))}(this,function(e,t){function n(e,t){var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;n.sort(),a.sort();for(var i=0,r=n.length;r>i;i++){var o=n[i];if(o!==a[i])return!1;var s=e[o],l=t[o];if(s!==l&&JSON.stringify(s)!==JSON.stringify(l))return!1}return!0}function a(e,t){this.__objectId=e,this.__methods=t}function i(i,r){function o(e,t){t=t||C,t&&("undefined"==typeof ArrayBuffer&&(e=JSON.stringify(e)),t===self||L?t.postMessage(e):t.postMessage(e,"*"))}function s(e){"undefined"!=typeof localStorage&&localStorage.pluginLogging&&console.log(e+"("+(Date.now()-B)+"ms)="+self.location)}function l(){var e=Date.now();I&&4e3>e-I||(I=e,o({method:"loading"}),s("heartbeat"))}function c(){var e=[];return Object.keys(K).forEach(function(t){var n=K[t];e.push({serviceId:t,names:n.names,methods:n.methods,properties:n.properties})}),{updateRegistry:!!D,headers:w||{},services:e}}function d(e,t){if(t&&t instanceof XMLHttpRequest){var n,a;try{n=t.status,a=t.statusText}catch(i){n=0,a=""}return{status:n||0,statusText:a}}return t}function u(e){var t=e?JSON.parse(JSON.stringify(e,d)):e;return e instanceof Error&&(t.__isError=!0,t.message=t.message||e.message,t.name=t.name||e.name),t}function f(t,n){if(n=n||C,!n)return(new e).reject(new Error("plugin not connected"));t.id=String(k++);var i=new e;O[t.id]=i,i.then(null,function(e){E&&e instanceof Error&&"Cancel"===e.name&&N({requestId:t.id,method:"cancel",params:e.message?[e.message]:[]},n)});var r=Object.prototype.toString;return t.params.forEach(function(e,n){if("[object Object]"===r.call(e)&&!(e instanceof a)){var o,s;for(o in e)"[object Function]"===r.call(e[o])&&(s=s||[],s.push(o));if(s){var l=T++;R[l]=e;var c=function(){delete R[l]};i.then(c,c),t.params[n]=new a(l,s)}}}),N(t,n),i.promise}function p(e,t,n){e||0===e?N({id:e,result:null,error:t},n):console.log(t)}function h(e,t,n,a,i){a.forEach(function(e,t){if(e&&"undefined"!=typeof e.__objectId){var n={};e.__methods.forEach(function(t){n[t]=function(){return f({objectId:e.__objectId,method:t,params:Array.prototype.slice.call(arguments)},i)}}),a[t]=n}});var r="undefined"==typeof e?null:{id:e,result:null,error:null};try{var o=n.apply(t,a);if(!r)return;o&&"function"==typeof o.then?(S[e]=o,o.then(function(t){delete S[e],r.result=t,N(r,i)},function(t){S[e]&&(delete S[e],r.error=u(t),N(r,i))},function(){N({responseId:e,method:"progress",params:Array.prototype.slice.call(arguments)},i)})):(r.result=o,N(r,i))}catch(s){r&&(r.error=u(s),N(r,i))}}function m(e,t){if(L||e.source===C||"undefined"==typeof window){var n=e.data,a="string"!=typeof n?n:JSON.parse(n);try{if(a.method){var i=a.method,r=a.params||[];if("serviceId"in a){var o=K[a.serviceId];o?(o=o.implementation,i in o?h(a.id,o,o[i],r,t):p(a.id,"method not found",t)):p(a.id,"service not found",t)}else if("objectId"in a){var s=R[a.objectId];s?i in s?h(a.id,s,s[i],r,t):p(a.id,"method not found",t):p(a.id,"object not found",t)}else if("requestId"in a){var l=S[a.requestId];l&&"cancel"===i&&l.cancel&&l.cancel.apply(l,r)}else if("responseId"in a){var c=O[a.responseId];c&&"progress"===i&&c.progress&&c.progress.apply(c,r)}else{if("plugin"!==a.method)throw new Error("Bad method: "+a.method);var d=a.params[0];v({services:d.services})}}else if(a.id){var u=O[String(a.id)];u&&(delete O[String(a.id)],a.error?u.reject(a.error):u.resolve(a.result))}}catch(f){console.log("Plugin._messageHandler "+f)}}}function _(e){var n={};if(e.methods&&(e.methods.forEach(function(t){n[t]=function(){var n={serviceId:e.serviceId,method:t,params:Array.prototype.slice.call(arguments)};return f(n)}}),n.addEventListener&&n.removeEventListener&&t)){var i=new t,r=T++;R[r]={handleEvent:i.dispatchEvent.bind(i)};var o=new a(r,["handleEvent"]),s=n.addEventListener;n.addEventListener=function(e,t){i._namedListeners[e]||s(e,o),i.addEventListener(e,t)};var l=n.removeEventListener;n.removeEventListener=function(e,t){i.removeEventListener(e,t),i._namedListeners[e]||l(e,o)}}return n}function b(e){var t=JSON.parse(JSON.stringify(e.properties)),n=e.names||e.type||[];return Array.isArray(n)||(n=[n]),t.objectClass=n,t}function g(e){if(D){var t=_(e),n=b(e),a=D.registerService(e.names||e.type,t,n);j[e.serviceId]={registration:a,proxy:t}}}function v(e){var t=y||[];if(y=e.services||[],!n(y,t)){var a=[];y.forEach(function(e){var t=e.serviceId;a.push(t);var i=j[t];if(i){if(n(e.methods,Object.keys(i.proxy))){var r=b(e),o=i.registration.getReference(),s={};return o.getPropertyKeys().forEach(function(e){s[e]=o.getProperty(e)}),void(n(r,s)||i.registration.setProperties(r))}i.registration.unregister(),delete j[t]}g(e)}),Object.keys(j).forEach(function(e){-1===a.indexOf(e)&&(j[e].registration.unregister(),delete j[e])})}x&&(x(),x=null)}var y,x,w=i,E=!1,k=0,T=0,A=0,S={},O={},R={},K={},j={},D=r,U=[],L=!1,C=null;"undefined"==typeof window?self.postMessage?C=self:L=!0:window!==window.parent?C=window.parent:null!==window.opener&&(C=window.opener);var N=o,M=function(e){o({method:"error",error:u(e.error)})};addEventListener("error",M);var I,B=Date.now();l(),L&&self.addEventListener("connect",function(e){var t=e.ports[0];if(U.push(t),E){var n={method:"plugin",params:[c()]};o(n,t)}else l();t.addEventListener("message",function(e){m(e,t)}),t.start()}),this.updateHeaders=function(e){if(E)throw new Error("Cannot update headers. Plugin Provider is connected");w=e},this.registerService=function(e,t,n){if(E)throw new Error("Cannot register service. Plugin Provider is connected");"string"==typeof e?e=[e]:Array.isArray(e)||(e=[]);var a=null,i=[];for(a in t)"function"==typeof t[a]&&i.push(a);K[A++]={names:e,methods:i,implementation:t,properties:n||{},listeners:{}},l()},this.registerServiceProvider=this.registerService,this.connect=function(e,t){if(E)return void(e&&e());removeEventListener("error",M);var n={method:"plugin",params:[c()]};if(!L){if(!C)return void(t&&t("No valid plugin target"));addEventListener("message",m,!1),o(n)}if("undefined"!=typeof window){var a=document.getElementsByTagName("head")[0]||document.documentElement,i=a.getElementsByTagName("title")[0];i||(i=document.createElement("title"),i.textContent=w?w.name:"",a.appendChild(i))}U.forEach(function(e){o(n,e)}),E=!0,D?x=e:e&&e()},this.disconnect=function(){E&&(removeEventListener("message",m),U.forEach(function(e){e.close()}),U=null,C=null,E=!1)}}return i}),define("orion/editor/stylers/lib/syntax",[],function(){return{id:"orion.lib",grammars:[{id:"orion.lib",repository:{brace_open:{match:"{",name:"punctuation.section.block.begin"},brace_close:{match:"}",name:"punctuation.section.block.end"},bracket_open:{match:"\\[",name:"punctuation.section.bracket.begin"},bracket_close:{match:"\\]",name:"punctuation.section.bracket.end"},parenthesis_open:{match:"\\(",name:"punctuation.section.parens.begin"},parenthesis_close:{match:"\\)",name:"punctuation.section.parens.end"},operator:{match:"(\\+|-|!|=|>|<|&|(\\|\\|))+",name:"punctuation.operator"},doc_block:{begin:"/\\*\\*",end:"\\*/",name:"comment.block.documentation",beginCaptures:{0:{name:"comment.block.documentation.start"}},endCaptures:{0:{name:"comment.block.documentation.end"}},patterns:[{match:"@(?:(?!\\*/)\\S)*",name:"meta.documentation.annotation"},{match:"<[^\\s>]*>",name:"meta.documentation.tag"},{match:"(\\b)(TODO)(\\b)(((?!\\*/).)*)",name:"meta.annotation.task.todo",captures:{2:{name:"keyword.other.documentation.task"},4:{name:"comment.block"}}}]},number_decimal:{match:"\\b-?(?:\\.\\d+|\\d+\\.?\\d*)(?:[eE][+-]?\\d+)?\\b",name:"constant.numeric.number"},number_hex:{match:"\\b0[xX][0-9A-Fa-f]+\\b",name:"constant.numeric.hex"},string_doubleQuote:{match:'"(?:\\\\.|[^"])*"?',name:"string.quoted.double"},string_singleQuote:{match:"'(?:\\\\.|[^'])*'?",name:"string.quoted.single"},todo_comment_singleLine:{match:"(\\b)(TODO)(\\b)(.*)",name:"meta.annotation.task.todo",captures:{2:{name:"keyword.other.documentation.task"},4:{name:"comment.line"}}}}},{id:"orion.c-like",repository:{comment_singleLine:{match:{match:"(//).*",literal:"//"},name:"comment.line.double-slash",captures:{1:{name:"comment.line.double-slash.start"}},patterns:[{include:"orion.lib#todo_comment_singleLine"}]},comment_block:{begin:{match:"/\\*",literal:"/*"},end:{match:"\\*/",literal:"*/"},name:"comment.block",beginCaptures:{0:{name:"comment.block.start"}},endCaptures:{0:{name:"comment.block.end"}},patterns:[{match:"(\\b)(TODO)(\\b)(((?!\\*/).)*)",name:"meta.annotation.task.todo",captures:{2:{name:"keyword.other.documentation.task"},4:{name:"comment.block"}}}]}}}],keywords:[]}}),define("orion/editor/stylers/application_json/syntax",["orion/editor/stylers/lib/syntax"],function(e){var t=["false","true"],n=[];return n.push.apply(n,e.grammars),n.push({id:"orion.json",contentTypes:["application/json"],patterns:[{include:"orion.lib#string_doubleQuote"},{include:"orion.lib#string_singleQuote"},{include:"orion.lib#brace_open"},{include:"orion.lib#brace_close"},{include:"orion.lib#bracket_open"},{include:"orion.lib#bracket_close"},{include:"orion.lib#parenthesis_open"},{include:"orion.lib#parenthesis_close"},{include:"orion.lib#number_decimal"},{include:"orion.lib#number_hex"},{match:"\\b(?:"+t.join("|")+")\\b",name:"keyword.operator.json"}]}),{id:n[n.length-1].id,grammars:n,keywords:t}}),define("orion/editor/stylers/application_schema_json/syntax",["orion/editor/stylers/application_json/syntax"],function(e){var t=["additionalItems","additionalProperties","allOf","anyOf","default","definitions","dependencies","description","enum","exclusiveMaximum","exclusiveMinimum","format","id","maximum","maxItems","maxLength","maxProperties","minimum","minItems","minLength","minProperties","multipleOf","not","oneOf","patternProperties","pattern","properties","required","title","type","uniqueItems"],n=[];return n.push.apply(n,e.grammars),n.push({id:"orion.json.schema",contentTypes:["application/schema+json"],patterns:[{include:"orion.json"},{match:"(?:\\$schema|(?:\\b(?:"+t.join("|")+")))\\b",name:"keyword.operator.schema.json"}]}),{id:n[n.length-1].id,grammars:n,keywords:t}}),function(){"use strict";function e(e,t,n,a,i,r){t[e]&&(n.push(e),(t[e]===!0||1===t[e])&&a.push(i+e+"/"+r))}function t(e,t,n,a,i){var r=a+t+"/"+i;require._fileExists(e.toUrl(r+".js"))&&n.push(r)}function n(e,t,a){var i;for(i in t)!t.hasOwnProperty(i)||e.hasOwnProperty(i)&&!a?"object"==typeof t[i]&&(!e[i]&&t[i]&&(e[i]={}),n(e[i],t[i],a)):e[i]=t[i]}var a=/(^.*(^|\/)nls(\/|$))([^\/]*)\/?([^\/]*)/;define("i18n",["module"],function(i){var r=i.config?i.config():{};return r=r||{},{version:"2.0.4",load:function(i,o,s,l){l=l||{},l.locale&&(r.locale=l.locale);var c,d,u,f=a.exec(i),p=f[1],h=f[4],m=f[5],_=h.split("-"),b=[],g={},v="";if(f[5]?(p=f[1],c=p+m):(c=i,m=f[4],h=r.locale,h||(h=r.locale="undefined"==typeof navigator?"root":(navigator.language||navigator.userLanguage||"root").toLowerCase()),_=h.split("-")),l.isBuild){for(b.push(c),t(o,"root",b,p,m),d=0;d<_.length;d++)u=_[d],v+=(v?"-":"")+u,t(o,v,b,p,m);if(l.locales){var y,x;for(y=0;y<l.locales.length;y++)for(h=l.locales[y],_=h.split("-"),v="",x=0;x<_.length;x++)u=_[x],v+=(v?"-":"")+u,t(o,v,b,p,m)}o(b,function(){s()})}else o([c],function(t){var a,i=[];for(e("root",t,i,b,p,m),d=0;d<_.length;d++)a=_[d],v+=(v?"-":"")+a,e(v,t,i,b,p,m);o(b,function(){var e,a,r;for(e=i.length-1;e>-1&&i[e];e--)r=i[e],a=t[r],(a===!0||1===a)&&(a=o(p+r+"/"+m)),n(g,a);s(g)})})}}})}(),define("orion/jslint/nls/messages",["module"],function(e){var t=e.config();return t&&t.root?t:{root:!0}}),define("orion/jslint/nls/root/messages",{"Stopping.":"Stopping. (${0}% scanned)","Too many errors.":"Too many errors. (${0}% scanned)","Stopping, unable to continue.":"Stopping, unable to continue. (${0}% scanned)","'{a}' is a reserved key.":"'${0}' is a reserved key.","'{a}' should not be greater than '{b}'.":"'${0}' should not be greater than '${1}'.","A regular expression literal can be confused with '/='.":"A regular expression literal can be confused with '/='.","A trailing decimal point can be confused with a dot '{a}'.":"A trailing decimal point can be confused with a dot '${0}'.","ADsafe comment violation.":"ADsafe comment violation.","ADsafe string violation.":"ADsafe string violation.","Avoid \\x-.":"Avoid \\x-.","Avoid 0x-. '{a}'.":"Avoid 0x-. '${0}'.","Bad escapement.":"Bad escapement.","Bad hex color '{a}'.":"Bad hex color '${0}'.","Bad HTML string":"Bad HTML string","Bad identifier {a}.":"Bad identifier ${0}.","Bad number '{a}'.":"Bad number '${0}'.","Confusing regular expression.":"Confusing regular expression.","Control character in string: {a}.":"Control character in string: ${0}.","Dangerous comment.":"Dangerous comment.","Don't use extra leading zeros '{a}'.":"Don't use extra leading zeros '${0}'.","Duplicate key '{a}'.":"Duplicate key '${0}'.","Empty class.":"Empty class.","Escapement in style string.":"Escapement in style string.","Expected '<\\/' and instead saw '</'.":"Expected '<\\/' and instead saw '</'.","Expected {a} and instead saw {b}.":"Expected ${0} and instead saw ${1}.","Expected '{a}' and instead saw '{b}'.":"Expected '${0}' and instead saw '${1}'.","Expected a number and instead saw '{a}'.":"Expected a number and instead saw '${0}'.","Expected a string and instead saw {a}.":"Expected a string and instead saw ${0}.","Expected a JSON value.":"Expected a JSON value.","HTML confusion in regular expression '<{a}'.":"HTML confusion in regular expression '<${0}'.","Insecure '{a}'.":"Insecure '${0}'.","Missing ']' to match '[' from line {a}.":"Missing '}' to match '{' from line ${0}.","Missing '}' to match '{' from line {a}.":"Missing '}' to match '{' from line ${0}.","Missing semicolon.":"Missing semicolon.","Missing space after '{a}'.":"Missing space after '${0}'.","Nested comment.":"Nested comment.","Spaces are hard to count. Use {{a}}.":"Spaces are hard to count. Use {${0}}.","Strings must use doublequote.":"Strings must use doublequote.","Unclosed comment.":"Unclosed comment.","Unclosed regular expression.":"Unclosed regular expression.","Unclosed string.":"Unclosed string.","Unescaped '{a}'.":"Unescaped '${0}'.","Unexpected </ in comment.":"Unexpected </ in comment.","Unexpected {a} in '{b}'.":"Unexpected ${0} in '${1}'.","Unexpected '{a}'.":"Unexpected '${0}'.","Unexpected '<!' in a string.":"Unexpected '<!' in a string.","Unexpected comma.":"Unexpected comma.","Unexpected comment.":"Unexpected comment.","Unexpected control character in regular expression.":"Unexpected control character in regular expression.","Unexpected escaped character '{a}' in regular expression.":"Unexpected escaped character '${0}' in regular expression.","Unexpected space after '-'.":"Unexpected space after '-'.","Unexpected space after '{a}'.":"Unexpected space after '${0}'.","Unnecessary escapement.":"Unnecessary escapement."}),define("orion/i18nUtil",[],function(){function e(e){var t=/\$\{([^\}]+)\}/g,n=arguments;return 2===n.length&&n[1]&&"object"==typeof n[1]?e.replace(t,function(e,t){return n[1][t]}):e.replace(t,function(e,t){return n[(t<<0)+1]})}return{formatMessage:e}}),this.JSON||(this.JSON={}),function(){function f(e){return 10>e?"0"+e:e}function quote(e){return escapable.lastIndex=0,escapable.test(e)?'"'+e.replace(escapable,function(e){var t=meta[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}function str(e,t){var n,a,i,r,o,s=gap,l=t[e];switch(l&&"object"==typeof l&&"function"==typeof l.toJSON&&(l=l.toJSON(e)),"function"==typeof rep&&(l=rep.call(t,e,l)),typeof l){case"string":return quote(l);case"number":return isFinite(l)?String(l):"null";case"boolean":case"null":return String(l);case"object":if(!l)return"null";if(gap+=indent,o=[],"[object Array]"===Object.prototype.toString.apply(l)){for(r=l.length,n=0;r>n;n+=1)o[n]=str(n,l)||"null";return i=0===o.length?"[]":gap?"[\n"+gap+o.join(",\n"+gap)+"\n"+s+"]":"["+o.join(",")+"]",gap=s,i}if(rep&&"object"==typeof rep)for(r=rep.length,n=0;r>n;n+=1)a=rep[n],"string"==typeof a&&(i=str(a,l),i&&o.push(quote(a)+(gap?": ":":")+i));else for(a in l)Object.hasOwnProperty.call(l,a)&&(i=str(a,l),i&&o.push(quote(a)+(gap?": ":":")+i));return i=0===o.length?"{}":gap?"{\n"+gap+o.join(",\n"+gap)+"\n"+s+"}":"{"+o.join(",")+"}",gap=s,i}}"function"!=typeof Date.prototype.toJSON&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()});var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","	":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;"function"!=typeof JSON.stringify&&(JSON.stringify=function(e,t,n){var a;if(gap="",indent="","number"==typeof n)for(a=0;n>a;a+=1)indent+=" ";else"string"==typeof n&&(indent=n);if(rep=t,t&&"function"!=typeof t&&("object"!=typeof t||"number"!=typeof t.length))throw new Error("JSON.stringify");return str("",{"":e})}),"function"!=typeof JSON.parse&&(JSON.parse=function(text,reviver){function walk(e,t){var n,a,i=e[t];if(i&&"object"==typeof i)for(n in i)Object.hasOwnProperty.call(i,n)&&(a=walk(i,n),void 0!==a?i[n]=a:delete i[n]);return reviver.call(e,t,i)}var j;if(text=String(text),cx.lastIndex=0,cx.test(text)&&(text=text.replace(cx,function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})),/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return j=eval("("+text+")"),"function"==typeof reviver?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}();var JSLINT=function(){function e(){}function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function n(e,n){var a;for(a in n)t(n,a)&&(e[a]=n[a])}function a(){Zt.safe||(Zt.rhino&&n(Ht,wn),Zt.devel&&n(Ht,bn),Zt.browser&&n(Ht,hn),Zt.node&&n(Ht,xn),Zt.windows&&n(Ht,En),Zt.widget&&n(Ht,Sn))}function i(e,t,n){throw{name:"JSLintError",line:t,character:n,message:e+" ("+Math.floor(t/Vt.length*100)+"% scanned)."}}function r(e,t,n,a,r,o){var s,l,c;return t=t||Wt,"(end)"===t.id&&(t=rn),l=t.line||0,s=t.from||0,c={id:"(error)",raw:e,evidence:Vt[l-1]||"",line:l,character:s,a:n,b:a,c:r,d:o},c.reason=e.supplant(c),JSLINT.errors.push(c),Zt.passfail&&i("Stopping. ",l,s),sn+=1,sn>=Zt.maxerr&&i("Too many errors.",l,s),c}function o(e,t,n,a,i,o,s){return r(e,{line:t,from:n},a,i,o,s)}function s(e,t,n,a,o,s){var l=r(e,t,n,a,o,s);i("Stopping, unable to continue.",l.line,l.character)}function l(e,t,n,a,i,r,o){return s(e,{line:t,from:n},a,i,r,o)}function c(e,n){Zt.safe&&Ct["(global)"]&&"boolean"!=typeof Ht[e]?r("ADsafe global: "+e+".",rn):"hasOwnProperty"===e&&r("'hasOwnProperty' is a really bad name."),t(Ct,e)&&!Ct["(global)"]&&r(Ct[e]===!0?"'{a}' was used before it was defined.":"'{a}' is already defined.",Wt,e),Ct[e]=n,Ct["(global)"]?(Mt[e]=Ct,t(Bt,e)&&(r("'{a}' was used before it was defined.",Wt,e),delete Bt[e])):Yt[e]=Ct}function d(){var e,t,n,i,o,l=Wt.value;switch(l){case"*/":s("Unbegun comment.");break;case"/*members":case"/*member":l="/*members",Jt||(Jt={}),t=Jt;break;case"/*jslint":Zt.safe&&r("ADsafe restriction."),t=Zt,n=pn;break;case"/*global":Zt.safe&&r("ADsafe restriction."),t=Ht}i=qn.token();e:for(;;){for(;;){if("special"===i.type&&"*/"===i.value)break e;if("(endline)"!==i.id&&","!==i.id)break;i=qn.token()}"(string)"!==i.type&&"(identifier)"!==i.type&&"/*members"!==l&&s("Bad option.",i),o=qn.token(),":"===o.id?(o=qn.token(),t===Jt&&s("Expected '{a}' and instead saw '{b}'.",i,"*/",":"),"indent"===i.value&&"/*jslint"===l?(e=+o.value,("number"!=typeof e||!isFinite(e)||0>=e||Math.floor(e)!==e)&&s("Expected a small integer and instead saw '{a}'.",o,o.value),t.white=!0,t.indent=e):"maxerr"===i.value&&"/*jslint"===l?(e=+o.value,("number"!=typeof e||!isFinite(e)||0>=e||Math.floor(e)!==e)&&s("Expected a small integer and instead saw '{a}'.",o,o.value),t.maxerr=e):"maxlen"===i.value&&"/*jslint"===l?(e=+o.value,("number"!=typeof e||!isFinite(e)||0>=e||Math.floor(e)!==e)&&s("Expected a small integer and instead saw '{a}'.",o,o.value),t.maxlen=e):"true"===o.value?t[i.value]=!0:"false"===o.value?t[i.value]=!1:s("Bad option value.",o),i=qn.token()):("/*jslint"===l&&s("Missing option value.",i),t[i.value]=!1,i=o)}n&&a()}function u(e){for(var t,n=e||0,a=0;n>=a;)t=qt[a],t||(t=qt[a]=qn.token()),a+=1;return t}function f(e,t){switch(rn.id){case"(number)":"."===Wt.id&&r("A dot following a number can be confused with a decimal point.",rn);break;case"-":("-"===Wt.id||"--"===Wt.id)&&r("Confusing minusses.");break;case"+":("+"===Wt.id||"++"===Wt.id)&&r("Confusing plusses.")}for(("(string)"===rn.type||rn.identifier)&&(Ot=rn.value),e&&Wt.id!==e&&(t?"(end)"===Wt.id?r("Unmatched '{a}'.",t,t.id):r("Expected '{a}' to match '{b}' from line {c} and instead saw '{d}'.",Wt,e,t.id,t.line,Wt.value):("(identifier)"!==Wt.type||Wt.value!==e)&&r("Expected '{a}' and instead saw '{b}'.",Wt,e,Wt.value)),Gt=rn,rn=Wt;;){if(Wt=qt.shift()||qn.token(),"(end)"===Wt.id||"(error)"===Wt.id)return;if("special"===Wt.type)d();else if("(endline)"!==Wt.id)break}}function p(e,t){var n;if("(end)"===Wt.id&&s("Unexpected early end of program.",rn),f(),Zt.safe&&"boolean"==typeof Ht[rn.value]&&"("!==Wt.id&&"."!==Wt.id&&r("ADsafe violation.",rn),t&&(Ot="anonymous",Ct["(verb)"]=rn.value),t===!0&&rn.fud)n=rn.fud();else{if(rn.nud)n=rn.nud();else{if("(number)"===Wt.type&&"."===rn.id)return r("A leading decimal point can be confused with a dot: '.{a}'.",rn,Wt.value),f(),rn;s("Expected an identifier and instead saw '{a}'.",rn,rn.id)}for(;e<Wt.lbp;)f(),rn.led?n=rn.led(n):s("Expected an operator and instead saw '{a}'.",rn,rn.id)}return n}function h(e,t){e=e||rn,t=t||Wt,(Zt.white||"styleproperty"===ln||"style"===ln)&&e.character!==t.from&&e.line===t.line&&r("Unexpected space after '{a}'.",t,e.value)}function m(e,t){e=e||rn,t=t||Wt,Zt.white&&!e.comment&&e.line===t.line&&h(e,t)}function _(e,t){Zt.white&&(e=e||rn,t=t||Wt,e.line===t.line&&e.character===t.from&&r("Missing space after '{a}'.",Wt,e.value))}function b(e,t){e=e||rn,t=t||Wt,Zt.laxbreak||e.line===t.line?Zt.white&&(e=e||rn,t=t||Wt,e.character===t.from&&r("Missing space after '{a}'.",Wt,e.value)):r("Bad line breaking before '{a}'.",t,t.id)}function g(e){var t;Zt.white&&"(end)"!==Wt.id&&(t=Ft+(e||0),Wt.from!==t&&r("Expected '{a}' to have an indentation at {b} instead at {c}.",Wt,Wt.value,t,Wt.from))}function v(e){e=e||rn,e.line!==Wt.line&&r("Line breaking error '{a}'.",e,e.value)}function y(){rn.line!==Wt.line?Zt.laxbreak||r("Bad line breaking before '{a}'.",rn,Wt.id):rn.character!==Wt.from&&Zt.white&&r("Unexpected space after '{a}'.",Wt,rn.value),f(","),_(rn,Wt)}function x(e,t){var n=An[e];return n&&"object"==typeof n||(An[e]=n={id:e,lbp:t,value:e}),n}function w(e){return x(e,0)}function E(e,t){var n=w(e);return n.identifier=n.reserved=!0,n.fud=t,n}function k(e,t){var n=E(e,t);return n.block=!0,n}function T(e){var t=e.id.charAt(0);return(t>="a"&&"z">=t||t>="A"&&"Z">=t)&&(e.identifier=e.reserved=!0),e}function A(e,t){var n=x(e,150);return T(n),n.nud="function"==typeof t?t:function(){return this.right=p(150),this.arity="unary",("++"===this.id||"--"===this.id)&&(Zt.plusplus?r("Unexpected use of '{a}'.",this,this.id):this.right.identifier&&!this.right.reserved||"."===this.right.id||"["===this.right.id||r("Bad operand.",this)),this},n}function S(e,t){var n=w(e);return n.type=e,n.nud=t,n}function O(e,t){var n=S(e,t);return n.identifier=n.reserved=!0,n}function R(e){return O(e,function(){return("this"===this.id||"arguments"===this.id||"eval"===this.id)&&(nn&&Ct["(global)"]?r("Strict violation.",this):Zt.safe&&r("ADsafe violation.",this)),this})}function K(e,t,n,a){var i=x(e,n);return T(i),i.led=function(e){return a||(b(Gt,rn),_(rn,Wt)),"function"==typeof t?t(e,this):(this.left=e,this.right=p(n),this)},i}function j(e,t){var n=x(e,100);return n.led=function(e){b(Gt,rn),_(rn,Wt);var n=p(100);return e&&"NaN"===e.id||n&&"NaN"===n.id?r("Use the isNaN function to compare with NaN.",this):t&&t.apply(this,[e,n]),"!"===e.id&&r("Confusing use of '{a}'.",e,"!"),"!"===n.id&&r("Confusing use of '{a}'.",e,"!"),this.left=e,this.right=n,this},n}function D(e){return e&&("(number)"===e.type&&0===+e.value||"(string)"===e.type&&" "===e.value||"true"===e.type||"false"===e.type||"undefined"===e.type||"null"===e.type)}function U(e){return x(e,20).exps=!0,K(e,function(e,t){var n;if(t.left=e,Ht[e.value]===!1&&Yt[e.value]["(global)"]===!0&&r("Read only.",e),Zt.safe){n=e;do"boolean"==typeof Ht[n.value]&&r("ADsafe violation.",n),n=n.left;while(n)}if(e){if("."===e.id||"["===e.id)return e.left&&"arguments"!==e.left.value||r("Bad assignment.",t),t.right=p(19),t;if(e.identifier&&!e.reserved)return"exception"===Ct[e.value]&&r("Do not assign to the exception parameter.",e),t.right=p(19),t;e===An["function"]&&r("Expected an identifier in an assignment and instead saw a function invocation.",rn)}s("Bad assignment.",t)},20)}function L(e,t,n){var a=x(e,n);return T(a),a.led="function"==typeof t?t:function(e){return Zt.bitwise&&r("Unexpected use of '{a}'.",this,this.id),this.left=e,this.right=p(n),this},a}function C(e){return x(e,20).exps=!0,K(e,function(e,t){return Zt.bitwise&&r("Unexpected use of '{a}'.",t,t.id),_(Gt,rn),_(rn,Wt),e?"."===e.id||"["===e.id||e.identifier&&!e.reserved?(p(19),t):(e===An["function"]&&r("Expected an identifier in an assignment, and instead saw a function invocation.",rn),t):void s("Bad assignment.",t)},20)}function N(e){var t=x(e,150);return t.led=function(e){return Zt.plusplus?r("Unexpected use of '{a}'.",this,this.id):e.identifier&&!e.reserved||"."===e.id||"["===e.id||r("Bad operand.",this),this.left=e,this},t}function M(){return Wt.identifier?(f(),Zt.safe&&fn[rn.value]?r("ADsafe violation: '{a}'.",rn,rn.value):rn.reserved&&!Zt.es5&&r("Expected an identifier and instead saw '{a}' (a reserved word).",rn,rn.id),rn.value):void 0}function I(){var e=M();return e?e:void("function"===rn.id&&"("===Wt.id?r("Missing name in function statement."):s("Expected an identifier and instead saw '{a}'.",Wt,Wt.value))}function B(e){var t,n=0;if(";"===Wt.id&&!Xt)for(;;){if(t=u(n),t.reach)return;if("(endline)"!==t.id){if("function"===t.id){r("Inner functions should be listed at the top of the outer function.",t);break}r("Unreachable '{a}' after '{b}'.",t,t.value,e);break}n+=1}}function P(e){var t,n=Ft,a=Yt,i=Wt;return";"===i.id?(r("Unnecessary semicolon.",i),void f(";")):(i.identifier&&!i.reserved&&":"===u().id&&(f(),f(":"),Yt=Object.create(a),c(i.value,"label"),Wt.labelled||r("Label '{a}' on {b} statement.",Wt,i.value,Wt.value),Mn.test(i.value+":")&&r("Label '{a}' looks like a javascript url.",i,i.value),Wt.label=i.value,i=Wt),e||g(),t=p(0,!0),i.block||(t&&t.exps?"("===t.id&&"new"===t.left.id&&r("Do not use 'new' for side effects."):r("Expected an assignment or function call and instead saw an expression.",rn),";"!==Wt.id?o("Missing semicolon.",rn.line,rn.from+rn.value.length):(h(rn,Wt),f(";"),_(rn,Wt))),Ft=n,Yt=a,t)}function F(){return"use strict"===Wt.value?(f(),f(";"),nn=!0,!0):!1}function z(e){var t,n,a=[];if(e&&!F()&&Zt.strict&&r('Missing "use strict" statement.',Wt),Zt.adsafe)switch(e){case"script":At||("ADSAFE"!==Wt.value||"."!==u(0).id||"id"!==u(1).value&&"go"!==u(1).value)&&s("ADsafe violation: Missing ADSAFE.id or ADSAFE.go.",Wt),"ADSAFE"===Wt.value&&"."===u(0).id&&"id"===u(1).value&&(At&&s("ADsafe violation.",Wt),f("ADSAFE"),f("."),f("id"),f("("),Wt.value!==Tt&&s("ADsafe violation: id does not match.",Wt),f("(string)"),f(")"),f(";"),At=!0);break;case"lib":if("ADSAFE"===Wt.value)return f("ADSAFE"),f("."),f("lib"),f("("),f("(string)"),y(),t=p(0),"function"!==t.id&&s("The second argument to lib must be a function.",t),n=t.funct["(params)"],n=n&&n.join(", "),n&&"lib"!==n&&s("Expected '{a}' and instead saw '{b}'.",t,"(lib)","("+n+")"),f(")"),f(";"),a;
s("ADsafe lib violation.")}for(;!Wt.reach&&"(end)"!==Wt.id;)";"===Wt.id?(r("Unnecessary semicolon."),f(";")):a.push(P());return a}function V(e){var t,n,a=Pt,i=Ft,o=Yt;if(Pt=e,Yt=Object.create(Yt),_(rn,Wt),n=Wt,"{"===Wt.id){if(f("{"),"}"!==Wt.id||rn.line!==Wt.line){for(Ft+=Zt.indent;!e&&Wt.from>Ft;)Ft+=Zt.indent;e||F(),t=z(),Ft-=Zt.indent,g()}f("}",n),Ft=i}else r("Expected '{a}' and instead saw '{b}'.",Wt,"{",Wt.value),Xt=!0,t=[P()],Xt=!1;return Ct["(verb)"]=null,Yt=o,Pt=a,t}function q(){return this}function $(e){Jt&&"boolean"!=typeof Jt[e]&&r("Unexpected /*member '{a}'.",rn,e),"number"==typeof $t[e]?$t[e]+=1:$t[e]=1}function J(e){var t=e.value,n=e.line,a=Bt[t];"function"==typeof a&&(a=!1),a?a[a.length-1]!==n&&a.push(n):(a=[n],Bt[t]=a)}function W(){return Wt.identifier?(f(),!0):void 0}function X(){return"-"===Wt.id&&(f("-"),h(),v()),"(number)"===Wt.type?(f("(number)"),!0):void 0}function Z(){return"(string)"===Wt.type?(f(),!0):void 0}function H(){var e,t,n;if(Wt.identifier){if(n=Wt.value,"rgb"===n||"rgba"===n){for(f(),f("("),e=0;3>e;e+=1)e&&f(","),t=Wt.value,"(number)"!==Wt.type||0>t?(r("Expected a positive number and instead saw '{a}'",Wt,t),f()):(f(),"%"===Wt.id?(f("%"),t>100&&r("Expected a percentage and instead saw '{a}'",rn,t)):t>255&&r("Expected a small number and instead saw '{a}'",rn,t));return"rgba"===n&&(f(","),t=+Wt.value,("(number)"!==Wt.type||0>t||t>1)&&r("Expected a number between 0 and 1 and instead saw '{a}'",Wt,t),f(),"%"===Wt.id&&(r("Unexpected '%'."),f("%"))),f(")"),!0}if(mn[Wt.value]===!0)return f(),!0}else if("(color)"===Wt.type)return f(),!0;return!1}function Q(){return"-"===Wt.id&&(f("-"),h(),v()),"(number)"===Wt.type?(f(),"(string)"!==Wt.type&&_n[Wt.value]===!0?(h(),f()):0!==+rn.value&&r("Expected a linear unit and instead saw '{a}'.",Wt,Wt.value),!0):!1}function G(){return"-"===Wt.id&&(f("-"),h()),"(number)"===Wt.type?(f(),"(string)"!==Wt.type&&_n[Wt.value]===!0&&(h(),f()),!0):!1}function Y(){if(!Wt.identifier)return Q();switch(Wt.value){case"thin":case"medium":case"thick":return f(),!0}}function et(){return Wt.identifier?"auto"===Wt.value?(f(),!0):void 0:Q()}function tt(){return Wt.identifier&&"attr"===Wt.value?(f(),f("("),Wt.identifier||r("Expected a name and instead saw '{a}'.",Wt,Wt.value),f(),f(")"),!0):!1}function nt(){for(;";"!==Wt.id;){if(W()||Z()||r("Expected a name and instead saw '{a}'.",Wt,Wt.value),","!==Wt.id)return!0;y()}}function at(){return Wt.identifier&&"counter"===Wt.value?(f(),f("("),!Wt.identifier,f(),","===Wt.id&&(y(),"(string)"!==Wt.type&&r("Expected a string and instead saw '{a}'.",Wt,Wt.value),f()),f(")"),!0):Wt.identifier&&"counters"===Wt.value?(f(),f("("),Wt.identifier||r("Expected a name and instead saw '{a}'.",Wt,Wt.value),f(),","===Wt.id&&(y(),"(string)"!==Wt.type&&r("Expected a string and instead saw '{a}'.",Wt,Wt.value),f()),","===Wt.id&&(y(),"(string)"!==Wt.type&&r("Expected a string and instead saw '{a}'.",Wt,Wt.value),f()),f(")"),!0):!1}function it(){var e;if(Wt.identifier&&"rect"===Wt.value){for(f(),f("("),e=0;4>e;e+=1)if(!Q()){r("Expected a number and instead saw '{a}'.",Wt,Wt.value);break}return f(")"),!0}return!1}function rt(){var e,t;return Wt.identifier&&"url"===Wt.value?(Wt=qn.range("(",")"),t=Wt.value,e=t.charAt(0),('"'===e||"'"===e)&&(t.slice(-1)!==e?r("Bad url string."):(t=t.slice(1,-1),t.indexOf(e)>=0&&r("Bad url string."))),t||r("Missing url."),f(),Zt.safe&&In.test(t)&&s("ADsafe URL violation."),on.push(t),!0):!1}function ot(){for(var e;"*"===Wt.id||"#"===Wt.id||"_"===Wt.value;)Zt.css||r("Unexpected '{a}'.",Wt,Wt.value),f();return"-"===Wt.id?(Zt.css||r("Unexpected '{a}'.",Wt,Wt.value),f("-"),Wt.identifier||r("Expected a non-standard style attribute and instead saw '{a}'.",Wt,Wt.value),f(),jt):(Wt.identifier?t(Kt,Wt.value)?e=Kt[Wt.value]:(e=jt,Zt.css||r("Unrecognized style attribute '{a}'.",Wt,Wt.value)):r("Excepted a style attribute, and instead saw '{a}'.",Wt,Wt.value),f(),e)}function st(e){var t,n,a,i,r,o=0,s=0;switch(typeof e){case"function":return e();case"string":return Wt.identifier&&Wt.value===e?(f(),!0):!1}for(;;){if(o>=e.length)return!1;if(r=e[o],o+=1,r===!0)break;for("number"==typeof r?(t=r,r=e[o],o+=1):t=1,a=!1;t>0&&st(r);)a=!0,t-=1;if(a)return!0}for(s=o,n=[];;){for(i=!1,o=s;o<e.length;o+=1)if(!n[o]&&st(Kt[e[o]])){a=!0,i=!0,n[o]=!0;break}if(!i)return a}}function lt(){if("(number)"===Wt.id)return f(),void("n"===Wt.value&&Wt.identifier&&(h(),f(),"+"===Wt.id&&(h(),f("+"),h(),f("(number)"))));switch(Wt.value){case"odd":case"even":if(Wt.identifier)return void f()}r("Unexpected token '{a}'.",Wt,Wt.value)}function ct(){for(var e;;){if("}"===Wt.id||"(end)"===Wt.id||cn&&Wt.id===cn)return;for(;";"===Wt.id;)r("Misplaced ';'."),f(";");e=ot(),f(":"),Wt.identifier&&"inherit"===Wt.value?f():st(e)||(r("Unexpected token '{a}'.",Wt,Wt.value),f()),"!"===Wt.id&&(f("!"),h(),Wt.identifier&&"important"===Wt.value?f():r("Expected '{a}' and instead saw '{b}'.",Wt,"important",Wt.value)),"}"===Wt.id||Wt.id===cn?r("Missing '{a}'.",Wt,";"):f(";")}}function dt(){if(Wt.identifier)t(yn,Wt.value)||r("Expected a tagName, and instead saw {a}.",Wt,Wt.value),f();else switch(Wt.id){case">":case"+":f(),dt();break;case":":switch(f(":"),Wt.value){case"active":case"after":case"before":case"checked":case"disabled":case"empty":case"enabled":case"first-child":case"first-letter":case"first-line":case"first-of-type":case"focus":case"hover":case"last-of-type":case"link":case"only-of-type":case"root":case"target":case"visited":f();break;case"lang":f(),f("("),Wt.identifier||r("Expected a lang code, and instead saw :{a}.",Wt,Wt.value),f(")");break;case"nth-child":case"nth-last-child":case"nth-last-of-type":case"nth-of-type":f(),f("("),lt(),f(")");break;case"not":f(),f("("),":"===Wt.id&&"not"===u(0).value&&r("Nested not."),dt(),f(")");break;default:r("Expected a pseudo, and instead saw :{a}.",Wt,Wt.value)}break;case"#":f("#"),Wt.identifier||r("Expected an id, and instead saw #{a}.",Wt,Wt.value),f();break;case"*":f("*");break;case".":f("."),Wt.identifier||r("Expected a class, and instead saw #.{a}.",Wt,Wt.value),f();break;case"[":f("["),Wt.identifier||r("Expected an attribute, and instead saw [{a}].",Wt,Wt.value),f(),("="===Wt.id||"~="===Wt.value||"$="===Wt.value||"|="===Wt.value||"*="===Wt.id||"^="===Wt.id)&&(f(),"(string)"!==Wt.type&&r("Expected a string, and instead saw {a}.",Wt,Wt.value),f()),f("]");break;default:s("Expected a CSS selector, and instead saw {a}.",Wt,Wt.value)}}function ut(){var e;if("{"===Wt.id)r("Expected a style pattern, and instead saw '{a}'.",Wt,Wt.id);else if("@"===Wt.id){if(f("@"),e=Wt.value,Wt.identifier&&dn[e]===!0)return f(),e;r("Expected an at-rule, and instead saw @{a}.",Wt,e)}for(;;){if(dt(),"</"===Wt.id||"{"===Wt.id||"(end)"===Wt.id)return"";","===Wt.id&&y()}}function ft(){for(var e;"@"===Wt.id&&(e=u(),e.identifier&&"import"===e.value);)f("@"),f(),rt()||(r("Expected '{a}' and instead saw '{b}'.",Wt,"url",Wt.value),f()),f(";");for(;"</"!==Wt.id&&"(end)"!==Wt.id;)ut(),ln="styleproperty",";"===Wt.id?f(";"):(f("{"),ct(),ln="style",f("}"))}function pt(e){"html"===e||Zt.fragment||("div"===e&&Zt.adsafe?s("ADSAFE: Use the fragment option."):s("Expected '{a}' and instead saw '{b}'.",rn,"html",e)),Zt.adsafe&&("html"===e&&s("Currently, ADsafe does not operate on whole HTML documents. It operates on <div> fragments and .js files.",rn),Zt.fragment?"div"!==e&&s("ADsafe violation: Wrap the widget in a div.",rn):s("Use the fragment option.",rn)),Zt.browser=!0,a()}function ht(e,t,n){var a,i;"id"===t?(a="string"==typeof n?n.toUpperCase():"",It[a]===!0&&r("Duplicate id='{a}'.",Wt,n),/^[A-Za-z][A-Za-z0-9._:\-]*$/.test(n)?Zt.adsafe&&(Tt?n.slice(0,Tt.length)!==Tt?r("ADsafe violation: An id must have a '{a}' prefix",Wt,Tt):/^[A-Z]+_[A-Z]+$/.test(n)||r("ADSAFE violation: bad id."):(Tt=n,/^[A-Z]+_$/.test(n)||r("ADSAFE violation: bad id."))):r("Bad id: '{a}'.",Wt,n),i=n.search(zn),i>=0&&r("Unexpected character '{a}' in {b}.",rn,n.charAt(i),t),It[a]=!0):"class"===t||"type"===t||"name"===t?(i=n.search(Fn),i>=0&&r("Unexpected character '{a}' in {b}.",rn,n.charAt(i),t),It[a]=!0):"href"===t||"background"===t||"content"===t||"data"===t||t.indexOf("src")>=0||t.indexOf("url")>=0?(Zt.safe&&In.test(n)&&s("ADsafe URL violation."),on.push(n)):"for"===t?Zt.adsafe&&(Tt?n.slice(0,Tt.length)!==Tt?r("ADsafe violation: An id must have a '{a}' prefix",Wt,Tt):/^[A-Z]+_[A-Z]+$/.test(n)||r("ADSAFE violation: bad id."):r("ADSAFE violation: bad id.")):"name"===t&&Zt.adsafe&&n.indexOf("_")>=0&&r("ADsafe name violation.")}function mt(e,t){var n,a,i=yn[e];if(en=!1,i||s("Unrecognized tag '<{a}>'.",Wt,e===e.toLowerCase()?e:e+" (capitalization error)"),tn.length>0)if("html"===e&&s("Too many <html> tags.",rn),a=i.parent)a.indexOf(" "+tn[tn.length-1].name+" ")<0&&s("A '<{a}>' must be within '<{b}>'.",rn,e,a);else if(!Zt.adsafe&&!Zt.fragment){n=tn.length;do 0>=n&&s("A '<{a}>' must be within '<{b}>'.",rn,e,"body"),n-=1;while("body"!==tn[n].name)}switch(e){case"div":Zt.adsafe&&1===tn.length&&!Tt&&r("ADSAFE violation: missing ID_.");break;case"script":ln="script",f(">"),Ft=Wt.from,t.lang&&r("lang is deprecated.",rn),Zt.adsafe&&1!==tn.length&&r("ADsafe script placement violation.",rn),t.src?(!Zt.adsafe||At&&Rt[t.src]||r("ADsafe unapproved script source.",rn),t.type&&r("type is unnecessary.",rn)):(St&&s("ADsafe script violation.",rn),z("script")),ln="html",f("</"),Wt.identifier||"script"===Wt.value||r("Expected '{a}' and instead saw '{b}'.",Wt,"script",Wt.value),f(),ln="outer";break;case"style":ln="style",f(">"),ft(),ln="html",f("</"),Wt.identifier||"style"===Wt.value||r("Expected '{a}' and instead saw '{b}'.",Wt,"style",Wt.value),f(),ln="outer";break;case"input":switch(t.type){case"radio":case"checkbox":case"button":case"reset":case"submit":break;case"text":case"password":case"file":case"hidden":case"image":Zt.adsafe&&"off"!==t.autocomplete&&r("ADsafe autocomplete violation.");break;default:r("Bad input type.")}break;case"applet":case"body":case"embed":case"frame":case"frameset":case"head":case"iframe":case"noembed":case"noframes":case"object":case"param":Zt.adsafe&&r("ADsafe violation: Disallowed tag: "+e)}}function _t(e){return"</"+e+">"}function bt(){var e,n,a,i,o,l,c,d,u=Zt.white;for(ln="html",cn="",tn=null;;){switch(Wt.value){case"<":for(ln="html",f("<"),n={},l=Wt,l.identifier||r("Bad identifier {a}.",l,l.value),i=l.value,Zt.cap&&(i=i.toLowerCase()),l.name=i,f(),tn||(tn=[],pt(i)),c=yn[i],"object"!=typeof c&&s("Unrecognized tag '<{a}>'.",l,i),a=c.empty,l.type=i;;){if("/"===Wt.id){f("/"),">"!==Wt.id&&r("Expected '{a}' and instead saw '{b}'.",Wt,">",Wt.value);break}if(Wt.id&&">"===Wt.id.substr(0,1))break;Wt.identifier||(("(end)"===Wt.id||"(error)"===Wt.id)&&s("Missing '>'.",Wt),r("Bad identifier.")),Zt.white=!0,_(rn,Wt),e=Wt.value,Zt.white=u,f(),Zt.cap||e===e.toLowerCase()||r("Attribute '{a}' not all lower case.",Wt,e),e=e.toLowerCase(),cn="",t(n,e)&&r("Attribute '{a}' repeated.",Wt,e),"on"===e.slice(0,2)?(Zt.on||r("Avoid HTML event handlers."),ln="scriptstring",f("="),o=Wt.id,'"'!==o&&"'"!==o&&s("Missing quote."),cn=o,d=Zt.white,Zt.white=!1,f(o),z("on"),Zt.white=d,Wt.id!==o&&s("Missing close quote on script attribute."),ln="html",cn="",f(o),c=!1):"style"===e?(ln="scriptstring",f("="),o=Wt.id,'"'!==o&&"'"!==o&&s("Missing quote."),ln="styleproperty",cn=o,f(o),ct(),ln="html",cn="",f(o),c=!1):"="===Wt.id?(f("="),c=Wt.value,Wt.identifier||'"'===Wt.id||"'"===Wt.id||"(string)"===Wt.type||"(number)"===Wt.type||"(color)"===Wt.type||r("Expected an attribute value and instead saw '{a}'.",rn,e),f()):c=!0,n[e]=c,ht(i,e,c)}mt(i,n),a||tn.push(l),ln="outer",f(">");break;case"</":ln="html",f("</"),Wt.identifier||r("Bad identifier."),i=Wt.value,Zt.cap&&(i=i.toLowerCase()),f(),tn||s("Unexpected '{a}'.",Wt,_t(i)),l=tn.pop(),l||s("Unexpected '{a}'.",Wt,_t(i)),l.name!==i&&s("Expected '{a}' and instead saw '{b}'.",Wt,_t(l.name),_t(i)),">"!==Wt.id&&s("Missing '{a}'.",Wt,">"),ln="outer",f(">");break;case"<!":for(Zt.safe&&r("ADsafe HTML violation."),ln="html";f(),">"!==Wt.id&&"(end)"!==Wt.id;)Wt.value.indexOf("--")>=0&&r("Unexpected --."),Wt.value.indexOf("<")>=0&&r("Unexpected <."),Wt.value.indexOf(">")>=0&&r("Unexpected >.");ln="outer",f(">");break;case"(end)":return;default:"(end)"===Wt.id?s("Missing '{a}'.",Wt,"</"+tn[tn.length-1].value+">"):f()}if(tn&&0===tn.length&&(Zt.adsafe||!Zt.fragment||"(end)"===Wt.id))break}"(end)"!==Wt.id&&s("Unexpected material after the end.")}function gt(){var e=M(!0);return e||("(string)"===Wt.id?(e=Wt.value,f()):"(number)"===Wt.id&&(e=Wt.value.toString(),f())),e}function vt(){var e,t=Wt,n=[];if(f("("),m(),")"===Wt.id)return f(")"),void m(Gt,rn);for(;;){if(e=I(),n.push(e),c(e,"parameter"),","!==Wt.id)return f(")",t),m(Gt,rn),n;y()}}function yt(e){var t,n=Yt;return Yt=Object.create(n),Ct={"(name)":e||'"'+Ot+'"',"(line)":Wt.line,"(context)":Ct,"(breakage)":0,"(loopage)":0,"(scope)":Yt},t=Ct,rn.funct=Ct,Nt.push(Ct),e&&c(e,"function"),Ct["(params)"]=vt(),V(!1),Yt=n,Ct["(last)"]=rn.line,Ct=Ct["(context)"],t}function xt(e){var t,n,a;for(Ct["(onevar)"]&&Zt.onevar?r("Too many var statements."):Ct["(global)"]||(Ct["(onevar)"]=!0),this.first=[];(_(rn,Wt),t=I(),Ct["(global)"]&&Ht[t]===!1&&r("Redefinition of '{a}'.",rn,t),c(t,"unused"),!e)&&(n=rn,this.first.push(rn),"="===Wt.id&&(_(rn,Wt),f("="),_(rn,Wt),"undefined"===Wt.id&&r("It is not necessary to initialize '{a}' to 'undefined'.",rn,t),"="===u(0).id&&Wt.identifier&&s("Variable {a} was not declared correctly.",Wt,Wt.value),a=p(0),n.first=a),","===Wt.id);)y();return this}function wt(){function e(){var e={},t=Wt;if(f("{"),"}"!==Wt.id)for(;;){if("(end)"===Wt.id)s("Missing '}' to match '{' from line {a}.",Wt,t.line);else{if("}"===Wt.id){r("Unexpected comma.",rn);break}","===Wt.id?s("Unexpected comma.",Wt):"(string)"!==Wt.id&&r("Expected a string and instead saw {a}.",Wt,Wt.value)}if(e[Wt.value]===!0?r("Duplicate key '{a}'.",Wt,Wt.value):"__proto__"===Wt.value?r("'{a}' is a reserved key.",Wt,Wt.value):e[Wt.value]=!0,f(),f(":"),wt(),","!==Wt.id)break;f(",")}f("}")}function t(){var e=Wt;if(f("["),"]"!==Wt.id)for(;;){if("(end)"===Wt.id)s("Missing ']' to match '[' from line {a}.",Wt,e.line);else{if("]"===Wt.id){r("Unexpected comma.",rn);break}","===Wt.id&&s("Unexpected comma.",Wt)}if(wt(),","!==Wt.id)break;f(",")}f("]")}switch(Wt.id){case"{":e();break;case"[":t();break;case"true":case"false":case"null":case"(number)":case"(string)":f();break;case"-":f("-"),rn.character!==Wt.from&&r("Unexpected space after '-'.",rn),h(rn,Wt),f("(number)");break;default:s("Expected a JSON value.",Wt)}}function Et(e){return"[object Array]"===Object.prototype.toString.apply(e)}function kt(e){var n,a=[];for(n in e)t(e,n)&&a.push(n);return a}var Tt,At,St,Ot,Rt,Kt,jt,Dt,Ut,Lt,Ct,Nt,Mt,It,Bt,Pt,Ft,zt,Vt,qt,$t,Jt,Wt,Xt,Zt,Ht,Qt,Gt,Yt,en,tn,nn,an,rn,on,sn,ln,cn,dn={media:!0,"font-face":!0,page:!0},un={"<":!0,"<=":!0,"==":!0,"===":!0,"!==":!0,"!=":!0,">":!0,">=":!0,"+":!0,"-":!0,"*":!0,"/":!0,"%":!0},fn={arguments:!0,callee:!0,caller:!0,constructor:!0,eval:!0,prototype:!0,stack:!0,unwatch:!0,valueOf:!0,watch:!0},pn={adsafe:!0,bitwise:!0,browser:!0,cap:!0,css:!0,debug:!0,devel:!0,eqeqeq:!0,es5:!0,evil:!0,forin:!0,fragment:!0,immed:!0,laxbreak:!0,newcap:!0,node:!0,nomen:!0,on:!0,onevar:!0,passfail:!0,plusplus:!0,regexp:!0,rhino:!0,undef:!0,safe:!0,windows:!0,strict:!0,sub:!0,white:!0,widget:!0},hn={addEventListener:!1,blur:!1,clearInterval:!1,clearTimeout:!1,close:!1,closed:!1,defaultStatus:!1,document:!1,event:!1,focus:!1,frames:!1,getComputedStyle:!1,history:!1,Image:!1,length:!1,location:!1,moveBy:!1,moveTo:!1,name:!1,navigator:!1,onbeforeunload:!0,onblur:!0,onerror:!0,onfocus:!0,onload:!0,onresize:!0,onunload:!0,open:!1,opener:!1,Option:!1,parent:!1,print:!1,removeEventListener:!1,resizeBy:!1,resizeTo:!1,screen:!1,scroll:!1,scrollBy:!1,scrollTo:!1,setInterval:!1,setTimeout:!1,status:!1,top:!1,window:!1,XMLHttpRequest:!1},mn={aliceblue:!0,antiquewhite:!0,aqua:!0,aquamarine:!0,azure:!0,beige:!0,bisque:!0,black:!0,blanchedalmond:!0,blue:!0,blueviolet:!0,brown:!0,burlywood:!0,cadetblue:!0,chartreuse:!0,chocolate:!0,coral:!0,cornflowerblue:!0,cornsilk:!0,crimson:!0,cyan:!0,darkblue:!0,darkcyan:!0,darkgoldenrod:!0,darkgray:!0,darkgreen:!0,darkkhaki:!0,darkmagenta:!0,darkolivegreen:!0,darkorange:!0,darkorchid:!0,darkred:!0,darksalmon:!0,darkseagreen:!0,darkslateblue:!0,darkslategray:!0,darkturquoise:!0,darkviolet:!0,deeppink:!0,deepskyblue:!0,dimgray:!0,dodgerblue:!0,firebrick:!0,floralwhite:!0,forestgreen:!0,fuchsia:!0,gainsboro:!0,ghostwhite:!0,gold:!0,goldenrod:!0,gray:!0,green:!0,greenyellow:!0,honeydew:!0,hotpink:!0,indianred:!0,indigo:!0,ivory:!0,khaki:!0,lavender:!0,lavenderblush:!0,lawngreen:!0,lemonchiffon:!0,lightblue:!0,lightcoral:!0,lightcyan:!0,lightgoldenrodyellow:!0,lightgreen:!0,lightpink:!0,lightsalmon:!0,lightseagreen:!0,lightskyblue:!0,lightslategray:!0,lightsteelblue:!0,lightyellow:!0,lime:!0,limegreen:!0,linen:!0,magenta:!0,maroon:!0,mediumaquamarine:!0,mediumblue:!0,mediumorchid:!0,mediumpurple:!0,mediumseagreen:!0,mediumslateblue:!0,mediumspringgreen:!0,mediumturquoise:!0,mediumvioletred:!0,midnightblue:!0,mintcream:!0,mistyrose:!0,moccasin:!0,navajowhite:!0,navy:!0,oldlace:!0,olive:!0,olivedrab:!0,orange:!0,orangered:!0,orchid:!0,palegoldenrod:!0,palegreen:!0,paleturquoise:!0,palevioletred:!0,papayawhip:!0,peachpuff:!0,peru:!0,pink:!0,plum:!0,powderblue:!0,purple:!0,red:!0,rosybrown:!0,royalblue:!0,saddlebrown:!0,salmon:!0,sandybrown:!0,seagreen:!0,seashell:!0,sienna:!0,silver:!0,skyblue:!0,slateblue:!0,slategray:!0,snow:!0,springgreen:!0,steelblue:!0,tan:!0,teal:!0,thistle:!0,tomato:!0,turquoise:!0,violet:!0,wheat:!0,white:!0,whitesmoke:!0,yellow:!0,yellowgreen:!0},_n={"%":!0,cm:!0,em:!0,ex:!0,"in":!0,mm:!0,pc:!0,pt:!0,px:!0},bn={alert:!1,confirm:!1,console:!1,Debug:!1,opera:!1,prompt:!1},gn={"\b":"\\b","	":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"/":"\\/","\\":"\\\\"},vn=["closure","exception","global","label","outer","unused","var"],yn={a:{},abbr:{},acronym:{},address:{},applet:{},area:{empty:!0,parent:" map "},article:{},aside:{},audio:{},b:{},base:{empty:!0,parent:" head "},bdo:{},big:{},blockquote:{},body:{parent:" html noframes "},br:{empty:!0},button:{},canvas:{parent:" body p div th td "},caption:{parent:" table "},center:{},cite:{},code:{},col:{empty:!0,parent:" table colgroup "},colgroup:{parent:" table "},command:{parent:" menu "},datalist:{},dd:{parent:" dl "},del:{},details:{},dialog:{},dfn:{},dir:{},div:{},dl:{},dt:{parent:" dl "},em:{},embed:{},fieldset:{},figure:{},font:{},footer:{},form:{},frame:{empty:!0,parent:" frameset "},frameset:{parent:" html frameset "},h1:{},h2:{},h3:{},h4:{},h5:{},h6:{},head:{parent:" html "},header:{},hgroup:{},html:{parent:"*"},hr:{empty:!0},i:{},iframe:{},img:{empty:!0},input:{empty:!0},ins:{},kbd:{},keygen:{},label:{},legend:{parent:" details fieldset figure "},li:{parent:" dir menu ol ul "},link:{empty:!0,parent:" head "},map:{},mark:{},menu:{},meta:{empty:!0,parent:" head noframes noscript "},meter:{},nav:{},noframes:{parent:" html body "},noscript:{parent:" body head noframes "},object:{},ol:{},optgroup:{parent:" select "},option:{parent:" optgroup select "},output:{},p:{},param:{empty:!0,parent:" applet object "},pre:{},progress:{},q:{},rp:{},rt:{},ruby:{},samp:{},script:{empty:!0,parent:" body div frame head iframe p pre span "},section:{},select:{},small:{},span:{},source:{},strong:{},style:{parent:" head ",empty:!0},sub:{},sup:{},table:{},tbody:{parent:" table "},td:{parent:" tr "},textarea:{},tfoot:{parent:" table "},th:{parent:" tr "},thead:{parent:" table "},time:{},title:{parent:" head "},tr:{parent:" table tbody thead tfoot "},tt:{},u:{},ul:{},"var":{},video:{}},xn={Buffer:!1,clearInterval:!1,clearTimeout:!1,console:!1,exports:!1,global:!1,module:!1,process:!1,require:!1,setInterval:!1,setTimeout:!1,__filename:!1,__dirname:!1},wn={defineClass:!1,deserialize:!1,gc:!1,help:!1,load:!1,loadClass:!1,print:!1,quit:!1,readFile:!1,readUrl:!1,runCommand:!1,seal:!1,serialize:!1,spawn:!1,sync:!1,toint32:!1,version:!1},En={ActiveXObject:!1,CScript:!1,Debug:!1,Enumerator:!1,System:!1,VBArray:!1,WScript:!1},kn={Array:!1,Boolean:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,eval:!1,EvalError:!1,Function:!1,hasOwnProperty:!1,isFinite:!1,isNaN:!1,JSON:!1,Math:!1,Number:!1,Object:!1,parseInt:!1,parseFloat:!1,RangeError:!1,ReferenceError:!1,RegExp:!1,String:!1,SyntaxError:!1,TypeError:!1,URIError:!1},Tn={E:!0,LN2:!0,LN10:!0,LOG2E:!0,LOG10E:!0,PI:!0,SQRT1_2:!0,SQRT2:!0,MAX_VALUE:!0,MIN_VALUE:!0,NEGATIVE_INFINITY:!0,POSITIVE_INFINITY:!0},An={},Sn={alert:!0,animator:!0,appleScript:!0,beep:!0,bytesToUIString:!0,Canvas:!0,chooseColor:!0,chooseFile:!0,chooseFolder:!0,closeWidget:!0,COM:!0,convertPathToHFS:!0,convertPathToPlatform:!0,CustomAnimation:!0,escape:!0,FadeAnimation:!0,filesystem:!0,Flash:!0,focusWidget:!0,form:!0,FormField:!0,Frame:!0,HotKey:!0,Image:!0,include:!0,isApplicationRunning:!0,iTunes:!0,konfabulatorVersion:!0,log:!0,md5:!0,MenuItem:!0,MoveAnimation:!0,openURL:!0,play:!0,Point:!0,popupMenu:!0,preferenceGroups:!0,preferences:!0,print:!0,prompt:!0,random:!0,Rectangle:!0,reloadWidget:!0,ResizeAnimation:!0,resolvePath:!0,resumeUpdates:!0,RotateAnimation:!0,runCommand:!0,runCommandInBg:!0,saveAs:!0,savePreferences:!0,screen:!0,ScrollBar:!0,showWidgetPreferences:!0,sleep:!0,speak:!0,Style:!0,suppressUpdates:!0,system:!0,tellWidget:!0,Text:!0,TextArea:!0,Timer:!0,unescape:!0,updateNow:!0,URL:!0,Web:!0,widget:!0,Window:!0,XMLDOM:!0,XMLHttpRequest:!0,yahooCheckLogin:!0,yahooLogin:!0,yahooLogout:!0},On=/@cc|<\/?|script|\]*s\]|<\s*!|&lt/i,Rn=/[\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/,Kn=/^\s*([(){}\[.,:;'"~\?\]#@]|==?=?|\/(\*(jslint|members?|global)?|=|\/)?|\*[\/=]?|\+[+=]?|-[\-=]?|%=?|&[&=]?|\|[|=]?|>>?>?=?|<([\/=!]|\!(\[|--)?|<=?)?|\^=?|\!=?=?|[a-zA-Z_$][a-zA-Z0-9_$]*|[0-9]+([xX][0-9a-fA-F]+|\.[0-9]*)?([eE][+\-]?[0-9]+)?)/,jn=/^\s*(['"=>\/&#]|<(?:\/|\!(?:--)?)?|[a-zA-Z][a-zA-Z0-9_\-]*|[0-9]+|--)/,Dn=/[\u0000-\u001f&<"\/\\\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/,Un=/[\u0000-\u001f&<"\/\\\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,Ln=/[>&]|<[\/!]?|--/,Cn=/\*\/|\/\*/,Nn=/^([a-zA-Z_$][a-zA-Z0-9_$]*)$/,Mn=/^(?:javascript|jscript|ecmascript|vbscript|mocha|livescript)\s*:/i,In=/&|\+|\u00AD|\.\.|\/\*|%[^;]|base64|url|expression|data|mailto/i,Bn=/^\s*([{:#%.=,>+\[\]@()"';]|\*=?|\$=|\|=|\^=|~=|[a-zA-Z_][a-zA-Z0-9_\-]*|[0-9]+|<\/|\/\*)/,Pn=/^\s*([@#!"'};:\-%.=,+\[\]()*_]|[a-zA-Z][a-zA-Z0-9._\-]*|\/\*?|\d+(?:\.\d+)?|<\/)/,Fn=/[^a-zA-Z0-9+\-_\/ ]/,zn=/[\[\]\/\\"'*<>.&:(){}+=#]/,Vn={outer:jn,html:jn,style:Bn,styleproperty:Pn};"function"!=typeof Object.create&&(Object.create=function(t){return e.prototype=t,new e}),String.prototype.entityify=function(){return this.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")},String.prototype.isAlpha=function(){return this>="a"&&"z">=this||this>="A"&&"Z">=this},String.prototype.isDigit=function(){return this>="0"&&"9">=this},String.prototype.supplant=function(e){return this.replace(/\{([^{}]*)\}/g,function(t,n){var a=e[n];return"string"==typeof a||"number"==typeof a?a:t})},String.prototype.name=function(){return Nn.test(this)?this:Dn.test(this)?'"'+this.replace(Un,function(e){var t=gn[e];return t?t:"\\u"+("0000"+e.charCodeAt().toString(16)).slice(-4)})+'"':'"'+this+'"'};var qn=function(){function e(){var e;return r>=Vt.length?!1:(a=1,s=Vt[r],r+=1,e=s.search(/ \t/),e>=0&&o("Mixed spaces and tabs.",r,e+1),s=s.replace(/\t/g,an),e=s.search(Rn),e>=0&&o("Unsafe character.",r,e),Zt.maxlen&&Zt.maxlen<s.length&&o("Line too long.",r,s.length),!0)}function n(e,n){var s,c;return c="(color)"===e?{type:e}:"(punctuator)"===e||"(identifier)"===e&&t(An,n)?An[n]||An["(error)"]:An[e],c=Object.create(c),("(string)"===e||"(range)"===e)&&Mn.test(n)&&o("Script URL.",r,i),"(identifier)"===e&&(c.identifier=!0,"__iterator__"===n||"__proto__"===n?l("Reserved name '{a}'.",r,i,n):!Zt.nomen||"_"!==n.charAt(0)&&"_"!==n.charAt(n.length-1)||o("Unexpected {a} in '{b}'.",r,i,"dangling '_'",n)),c.value=n,c.line=r,c.character=a,c.from=i,s=c.id,"(endline)"!==s&&(Qt=s&&("(,=:[!&|?{};".indexOf(s.charAt(s.length-1))>=0||"return"===s)),c}var a,i,r,s;return{init:function(t){Vt="string"==typeof t?t.replace(/\r\n/g,"\n").replace(/\r/g,"\n").split("\n"):t,r=0,e(),i=1},range:function(e,t){var c,d="";for(i=a,s.charAt(0)!==e&&l("Expected '{a}' and instead saw '{b}'.",r,a,e,s.charAt(0));;){switch(s=s.slice(1),a+=1,c=s.charAt(0)){case"":l("Missing '{a}'.",r,a,c);break;case t:return s=s.slice(1),a+=1,n("(range)",d);case cn:case"\\":o("Unexpected '{a}'.",r,a,c)}d+=c}},token:function(){function t(e){var t,n=e.exec(s);return n?(g=n[0].length,t=n[1],u=t.charAt(0),s=s.substr(g),i=a+g-t.length,a+=g,t):void 0}function c(t){function c(e){var t=parseInt(s.substr(u+1,e),16);u+=e,t>=32&&126>=t&&34!==t&&92!==t&&39!==t&&o("Unnecessary escapement.",r,a),a+=e,d=String.fromCharCode(t)}var d,u,f="";if(zt&&'"'!==t&&o("Strings must use doublequote.",r,a),cn===t||"scriptstring"===ln&&!cn)return n("(punctuator)",t);for(u=0;;){for(;u>=s.length;)u=0,"html"===ln&&e()||l("Unclosed string.",r,i);if(d=s.charAt(u),d===t)return a+=1,s=s.substr(u+1),n("(string)",f,t);if(" ">d){if("\n"===d||"\r"===d)break;o("Control character in string: {a}.",r,a+u,s.slice(0,u))}else if(d===cn)o("Bad HTML string",r,a+u);else if("<"===d)Zt.safe&&"html"===ln?o("ADsafe string violation.",r,a+u):"/"===s.charAt(u+1)&&(ln||Zt.safe)?o("Expected '<\\/' and instead saw '</'.",r,a):"!"===s.charAt(u+1)&&(ln||Zt.safe)&&o("Unexpected '<!' in a string.",r,a);else if("\\"===d)if("html"===ln)Zt.safe&&o("ADsafe string violation.",r,a+u);else if("styleproperty"===ln)u+=1,a+=1,d=s.charAt(u),d!==t&&o("Escapement in style string.",r,a+u);else switch(u+=1,a+=1,d=s.charAt(u)){case cn:o("Bad HTML string",r,a+u);break;case"\\":case"'":case'"':case"/":break;case"b":d="\b";break;case"f":d="\f";break;case"n":d="\n";break;case"r":d="\r";break;case"t":d="	";break;case"u":c(4);break;case"v":d="";break;case"x":zt&&o("Avoid \\x-.",r,a),c(2);break;default:o("Bad escapement.",r,a)}f+=d,a+=1,u+=1}}for(var d,u,f,p,h,m,_,b,g,v,y,x;;){if(!s)return n(e()?"(endline)":"(end)","");for(;"outer"===ln&&(b=s.search(Ln),0!==b);){if(b>0){a+=1,s=s.slice(b);break}if(!e())return n("(end)","")}if(x=t(Vn[ln]||Kn)){if(u.isAlpha()||"_"===u||"$"===u)return n("(identifier)",x);if(u.isDigit())return"style"===ln||isFinite(Number(x))||o("Bad number '{a}'.",r,a,x),"style"!==ln&&"styleproperty"!==ln&&s.substr(0,1).isAlpha()&&o("Missing space after '{a}'.",r,a,x),"0"===u&&(h=x.substr(1,1),h.isDigit()?"."!==rn.id&&"styleproperty"!==ln&&o("Don't use extra leading zeros '{a}'.",r,a,x):!zt||"x"!==h&&"X"!==h||o("Avoid 0x-. '{a}'.",r,a,x)),"."===x.substr(x.length-1)&&o("A trailing decimal point can be confused with a dot '{a}'.",r,a,x),n("(number)",x);switch(x){case'"':case"'":return c(x);case"//":en||ln&&"script"!==ln?o("Unexpected comment.",r,a):"script"===ln&&/<\s*\//i.test(s)?o("Unexpected </ in comment.",r,a):(Zt.safe||"script"===ln)&&On.test(s)&&o("Dangerous comment.",r,a),s="",rn.comment=!0;break;case"/*":for((en||ln&&"script"!==ln&&"style"!==ln&&"styleproperty"!==ln)&&o("Unexpected comment.",r,a),Zt.safe&&On.test(s)&&o("ADsafe comment violation.",r,a);b=s.search(Cn),!(b>=0);)e()?Zt.safe&&On.test(s)&&o("ADsafe comment violation.",r,a):l("Unclosed comment.",r,a);a+=b+2,"/"===s.substr(b,1)&&l("Nested comment.",r,a),s=s.substr(b+2),rn.comment=!0;break;case"/*members":case"/*member":case"/*jslint":case"/*global":case"*/":return{value:x,type:"special",line:r,character:a,from:i};case"":break;case"/":if("/="===rn.id&&l("A regular expression literal can be confused with '/='.",r,i),Qt){for(m=0,p=0,g=0;;){switch(d=!0,u=s.charAt(g),g+=1,u){case"":return void l("Unclosed regular expression.",r,i);case"/":for(m>0&&o("Unescaped '{a}'.",r,i+g,"/"),u=s.substr(0,g-1),y={g:!0,i:!0,m:!0};y[s.charAt(g)]===!0;)y[s.charAt(g)]=!1,g+=1;return a+=g,s=s.substr(g),y=s.charAt(0),("/"===y||"*"===y)&&l("Confusing regular expression.",r,i),n("(regexp)",u);case"\\":u=s.charAt(g)," ">u?o("Unexpected control character in regular expression.",r,i+g):"<"===u&&o("Unexpected escaped character '{a}' in regular expression.",r,i+g,u),g+=1;break;case"(":if(m+=1,d=!1,"?"===s.charAt(g))switch(g+=1,s.charAt(g)){case":":case"=":case"!":g+=1;break;default:o("Expected '{a}' and instead saw '{b}'.",r,i+g,":",s.charAt(g))}else p+=1;break;case"|":d=!1;break;case")":0===m?o("Unescaped '{a}'.",r,i+g,")"):m-=1;break;case" ":for(y=1;" "===s.charAt(g);)g+=1,y+=1;y>1&&o("Spaces are hard to count. Use {{a}}.",r,i+g,y);break;case"[":u=s.charAt(g),"^"===u&&(g+=1,Zt.regexp&&o("Insecure '{a}'.",r,i+g,u)),y=!1,"]"===u&&(o("Empty class.",r,i+g-1),y=!0);e:do switch(u=s.charAt(g),g+=1,u){case"[":case"^":o("Unescaped '{a}'.",r,i+g,u),y=!0;break;case"-":y?y=!1:(o("Unescaped '{a}'.",r,i+g,"-"),y=!0);break;case"]":y||o("Unescaped '{a}'.",r,i+g-1,"-");break e;case"\\":u=s.charAt(g)," ">u?o("Unexpected control character in regular expression.",r,i+g):"<"===u&&o("Unexpected escaped character '{a}' in regular expression.",r,i+g,u),g+=1,y=!0;break;case"/":o("Unescaped '{a}'.",r,i+g-1,"/"),y=!0;break;case"<":"script"===ln&&(u=s.charAt(g),("!"===u||"/"===u)&&o("HTML confusion in regular expression '<{a}'.",r,i+g,u)),y=!0;break;default:y=!0}while(u);break;case".":Zt.regexp&&o("Insecure '{a}'.",r,i+g,u);break;case"]":case"?":case"{":case"}":case"+":case"*":o("Unescaped '{a}'.",r,i+g,u);break;case"<":"script"===ln&&(u=s.charAt(g),("!"===u||"/"===u)&&o("HTML confusion in regular expression '<{a}'.",r,i+g,u))}if(d)switch(s.charAt(g)){case"?":case"+":case"*":g+=1,"?"===s.charAt(g)&&(g+=1);break;case"{":for(g+=1,u=s.charAt(g),("0">u||u>"9")&&o("Expected a number and instead saw '{a}'.",r,i+g,u),g+=1,v=+u;u=s.charAt(g),!("0">u||u>"9");)g+=1,v=+u+10*v;if(_=v,","===u&&(g+=1,_=1/0,u=s.charAt(g),u>="0"&&"9">=u))for(g+=1,_=+u;u=s.charAt(g),!("0">u||u>"9");)g+=1,_=+u+10*_;"}"!==s.charAt(g)?o("Expected '{a}' and instead saw '{b}'.",r,i+g,"}",u):g+=1,"?"===s.charAt(g)&&(g+=1),v>_&&o("'{a}' should not be greater than '{b}'.",r,i+g,v,_)}}return u=s.substr(0,g-1),a+=g,s=s.substr(g),n("(regexp)",u)}return n("(punctuator)",x);case"<!--":for(g=r,u=a;b=s.indexOf("--"),!(b>=0);)b=s.indexOf("<!"),b>=0&&l("Nested HTML comment.",r,a+b),e()||l("Unclosed HTML comment.",g,u);g=s.indexOf("<!"),g>=0&&b>g&&l("Nested HTML comment.",r,a+g),a+=b,">"!==s[b+2]&&l("Expected -->.",r,a),a+=3,s=s.slice(b+3);break;case"#":if("html"===ln||"styleproperty"===ln){for(;u=s.charAt(0),!(("0">u||u>"9")&&("a">u||u>"f")&&("A">u||u>"F"));)a+=1,s=s.substr(1),x+=u;return 4!==x.length&&7!==x.length&&o("Bad hex color '{a}'.",r,i+g,x),n("(color)",x)}return n("(punctuator)",x);default:if("outer"===ln&&"&"===u){for(a+=1,s=s.substr(1);u=s.charAt(0),a+=1,s=s.substr(1),";"!==u;)u>="0"&&"9">=u||u>="a"&&"z">=u||"#"===u||l("Bad entity",r,i+g,a);break}return n("(punctuator)",x)}}else{for(x="",u="";s&&"!">s;)s=s.substr(1);if(s){if("html"===ln)return f=s.charAt(0),s=s.substr(1),n("(error)",f);l("Unexpected '{a}'.",r,a,s.substr(0,1))}}}}}}();jt=[rt,function(){for(;;)if(Wt.identifier)switch(Wt.value.toLowerCase()){case"url":rt();break;case"expression":r("Unexpected expression '{a}'.",Wt,Wt.value),f();break;default:f()}else{if(";"===Wt.id||"!"===Wt.id||"(end)"===Wt.id||"}"===Wt.id)return!0;f()}}],Dt=["none","hidden","dotted","dashed","solid","double","ridge","inset","outset"],Ut=["auto","always","avoid","left","right"],Lt=["auto","hidden","scroll","visible"],Kt={background:[!0,"background-attachment","background-color","background-image","background-position","background-repeat"],"background-attachment":["scroll","fixed"],"background-color":["transparent",H],"background-image":["none",rt],"background-position":[2,[Q,"top","bottom","left","right","center"]],"background-repeat":["repeat","repeat-x","repeat-y","no-repeat"],border:[!0,"border-color","border-style","border-width"],"border-bottom":[!0,"border-bottom-color","border-bottom-style","border-bottom-width"],"border-bottom-color":H,"border-bottom-style":Dt,"border-bottom-width":Y,"border-collapse":["collapse","separate"],"border-color":["transparent",4,H],"border-left":[!0,"border-left-color","border-left-style","border-left-width"],"border-left-color":H,"border-left-style":Dt,"border-left-width":Y,"border-right":[!0,"border-right-color","border-right-style","border-right-width"],"border-right-color":H,"border-right-style":Dt,"border-right-width":Y,"border-spacing":[2,Q],"border-style":[4,Dt],"border-top":[!0,"border-top-color","border-top-style","border-top-width"],"border-top-color":H,"border-top-style":Dt,"border-top-width":Y,"border-width":[4,Y],bottom:[Q,"auto"],"caption-side":["bottom","left","right","top"],clear:["both","left","none","right"],clip:[it,"auto"],color:H,content:["open-quote","close-quote","no-open-quote","no-close-quote",Z,rt,at,tt],"counter-increment":[W,"none"],"counter-reset":[W,"none"],cursor:[rt,"auto","crosshair","default","e-resize","help","move","n-resize","ne-resize","nw-resize","pointer","s-resize","se-resize","sw-resize","w-resize","text","wait"],direction:["ltr","rtl"],display:["block","compact","inline","inline-block","inline-table","list-item","marker","none","run-in","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group"],"empty-cells":["show","hide"],"float":["left","none","right"],font:["caption","icon","menu","message-box","small-caption","status-bar",!0,"font-size","font-style","font-weight","font-family"],"font-family":nt,"font-size":["xx-small","x-small","small","medium","large","x-large","xx-large","larger","smaller",Q],"font-size-adjust":["none",X],"font-stretch":["normal","wider","narrower","ultra-condensed","extra-condensed","condensed","semi-condensed","semi-expanded","expanded","extra-expanded"],"font-style":["normal","italic","oblique"],"font-variant":["normal","small-caps"],"font-weight":["normal","bold","bolder","lighter",X],height:[Q,"auto"],left:[Q,"auto"],"letter-spacing":["normal",Q],"line-height":["normal",G],"list-style":[!0,"list-style-image","list-style-position","list-style-type"],"list-style-image":["none",rt],"list-style-position":["inside","outside"],"list-style-type":["circle","disc","square","decimal","decimal-leading-zero","lower-roman","upper-roman","lower-greek","lower-alpha","lower-latin","upper-alpha","upper-latin","hebrew","katakana","hiragana-iroha","katakana-oroha","none"],margin:[4,et],"margin-bottom":et,"margin-left":et,"margin-right":et,"margin-top":et,"marker-offset":[Q,"auto"],"max-height":[Q,"none"],"max-width":[Q,"none"],"min-height":Q,"min-width":Q,opacity:X,outline:[!0,"outline-color","outline-style","outline-width"],"outline-color":["invert",H],"outline-style":["dashed","dotted","double","groove","inset","none","outset","ridge","solid"],"outline-width":Y,overflow:Lt,"overflow-x":Lt,"overflow-y":Lt,padding:[4,Q],"padding-bottom":Q,"padding-left":Q,"padding-right":Q,"padding-top":Q,"page-break-after":Ut,"page-break-before":Ut,position:["absolute","fixed","relative","static"],quotes:[8,Z],right:[Q,"auto"],"table-layout":["auto","fixed"],"text-align":["center","justify","left","right"],"text-decoration":["none","underline","overline","line-through","blink"],"text-indent":Q,"text-shadow":["none",4,[H,Q]],"text-transform":["capitalize","uppercase","lowercase","none"],top:[Q,"auto"],"unicode-bidi":["normal","embed","bidi-override"],"vertical-align":["baseline","bottom","sub","super","top","text-top","middle","text-bottom",Q],visibility:["visible","hidden","collapse"],"white-space":["normal","nowrap","pre","pre-line","pre-wrap","inherit"],width:[Q,"auto"],"word-spacing":["normal",Q],"word-wrap":["break-word","normal"],"z-index":["auto",X]},S("(number)",q),S("(string)",q),An["(identifier)"]={type:"(identifier)",lbp:0,identifier:!0,nud:function(){var e,t=this.value,n=Yt[t];
if("function"==typeof n?n=void 0:"boolean"==typeof n&&(e=Ct,Ct=Nt[0],c(t,"var"),n=Ct,Ct=e),Ct===n)switch(Ct[t]){case"unused":Ct[t]="var";break;case"label":r("'{a}' is a statement label.",rn,t)}else if(Ct["(global)"])Zt.undef&&"boolean"!==Ht[t]&&r("'{a}' is not defined.",rn,t),J(rn);else switch(Ct[t]){case"closure":case"function":case"var":case"unused":r("'{a}' used out of scope.",rn,t);break;case"label":r("'{a}' is a statement label.",rn,t);break;case"outer":case"global":break;default:if(n===!0)Ct[t]=!0;else if(null===n)r("'{a}' is not allowed.",rn,t),J(rn);else if("object"!=typeof n)Zt.undef?r("'{a}' is not defined.",rn,t):Ct[t]=!0,J(rn);else switch(n[t]){case"function":case"var":case"unused":n[t]="closure",Ct[t]=n["(global)"]?"global":"outer";break;case"closure":case"parameter":Ct[t]=n["(global)"]?"global":"outer";break;case"label":r("'{a}' is a statement label.",rn,t)}}return this},led:function(){s("Expected an operator and instead saw '{a}'.",Wt,Wt.value)}},S("(regexp)",function(){return this}),w("(endline)"),w("(begin)"),w("(end)").reach=!0,w("</").reach=!0,w("<!"),w("<!--"),w("-->"),w("(error)").reach=!0,w("}").reach=!0,w(")"),w("]"),w('"').reach=!0,w("'").reach=!0,w(";"),w(":").reach=!0,w(","),w("#"),w("@"),O("else"),O("case").reach=!0,O("catch"),O("default").reach=!0,O("finally"),R("arguments"),R("eval"),R("false"),R("Infinity"),R("NaN"),R("null"),R("this"),R("true"),R("undefined"),U("=","assign",20),U("+=","assignadd",20),U("-=","assignsub",20),U("*=","assignmult",20),U("/=","assigndiv",20).nud=function(){s("A regular expression literal can be confused with '/='.")},U("%=","assignmod",20),C("&=","assignbitand",20),C("|=","assignbitor",20),C("^=","assignbitxor",20),C("<<=","assignshiftleft",20),C(">>=","assignshiftright",20),C(">>>=","assignshiftrightunsigned",20),K("?",function(e,t){return t.left=e,t.right=p(10),f(":"),t["else"]=p(10),t},30),K("||","or",40),K("&&","and",50),L("|","bitor",70),L("^","bitxor",80),L("&","bitand",90),j("==",function(e,t){return Zt.eqeqeq?r("Expected '{a}' and instead saw '{b}'.",this,"===","=="):D(e)?r("Use '{a}' to compare with '{b}'.",this,"===",e.value):D(t)&&r("Use '{a}' to compare with '{b}'.",this,"===",t.value),this}),j("==="),j("!=",function(e,t){return Zt.eqeqeq?r("Expected '{a}' and instead saw '{b}'.",this,"!==","!="):D(e)?r("Use '{a}' to compare with '{b}'.",this,"!==",e.value):D(t)&&r("Use '{a}' to compare with '{b}'.",this,"!==",t.value),this}),j("!=="),j("<"),j(">"),j("<="),j(">="),L("<<","shiftleft",120),L(">>","shiftright",120),L(">>>","shiftrightunsigned",120),K("in","in",120),K("instanceof","instanceof",120),K("+",function(e,t){var n=p(130);return e&&n&&"(string)"===e.id&&"(string)"===n.id?(e.value+=n.value,e.character=n.character,Mn.test(e.value)&&r("JavaScript URL.",e),e):(t.left=e,t.right=n,t)},130),A("+","num"),K("-","sub",130),A("-","neg"),K("*","mult",140),K("/","div",140),K("%","mod",140),N("++","postinc"),A("++","preinc"),An["++"].exps=!0,N("--","postdec"),A("--","predec"),An["--"].exps=!0,A("delete",function(){var e=p(0);return(!e||"."!==e.id&&"["!==e.id)&&r("Expected '{a}' and instead saw '{b}'.",Wt,".",Wt.value),this.first=e,this}).exps=!0,A("~",function(){return Zt.bitwise&&r("Unexpected '{a}'.",this,"~"),p(150),this}),A("!",function(){return this.right=p(150),this.arity="unary",un[this.right.id]===!0&&r("Confusing use of '{a}'.",this,"!"),this}),A("typeof","typeof"),A("new",function(){var e,t=p(155);if(t&&"function"!==t.id)if(t.identifier)switch(t["new"]=!0,t.value){case"Object":r("Use the object literal notation {}.",rn);break;case"Array":return"("!==Wt.id?r("Use the array literal notation [].",rn):(f("("),")"===Wt.id?r("Use the array literal notation [].",rn):(e=p(0),t.dimension=e,("(number)"===e.id&&/[.+\-Ee]/.test(e.value)||"-"===e.id&&!e.right||"(string)"===e.id||"["===e.id||"{"===e.id||"true"===e.id||"false"===e.id||"null"===e.id||"undefined"===e.id||"Infinity"===e.id)&&r("Use the array literal notation [].",rn),")"!==Wt.id&&s("Use the array literal notation [].",rn)),f(")")),this.first=t,this;case"Number":case"String":case"Boolean":case"Math":case"JSON":r("Do not use {a} as a constructor.",rn,t.value);break;case"Function":Zt.evil||r("The Function constructor is eval.");break;case"Date":case"RegExp":break;default:"function"!==t.id&&(e=t.value.substr(0,1),Zt.newcap&&("A">e||e>"Z")&&r("A constructor name should start with an uppercase letter.",rn))}else"."!==t.id&&"["!==t.id&&"("!==t.id&&r("Bad constructor.",rn);else r("Weird construction. Delete 'new'.",this);return h(rn,Wt),"("!==Wt.id&&r("Missing '()' invoking a constructor."),this.first=t,this}),An["new"].exps=!0,K(".",function(e,t){h(Gt,rn);var n=I();if("string"==typeof n&&$(n),t.left=e,t.right=n,Zt.evil||!e||"document"!==e.value||"write"!==n&&"writeln"!==n?Zt.adsafe&&e&&"ADSAFE"===e.value&&("id"===n||"lib"===n?r("ADsafe violation.",t):"go"===n&&("script"!==ln?r("ADsafe violation.",t):(St||"("!==Wt.id||"(string)"!==u(0).id||u(0).value!==Tt||","!==u(1).id)&&s("ADsafe violation: go.",t),St=!0,At=!1)):r("document.write can be a form of eval.",e),Zt.evil||"eval"!==n&&"execScript"!==n){if(Zt.safe)for(;fn[n]===!0&&r("ADsafe restricted word '{a}'.",rn,n),"boolean"==typeof Ht[e.value]&&"("!==Wt.id;){if(Tn[n]===!0){"."===Wt.id&&r("ADsafe violation.",t);break}if("."!==Wt.id){r("ADsafe violation.",t);break}f("."),rn.left=t,rn.right=n,t=rn,n=I(),"string"==typeof n&&$(n)}}else r("eval is evil.");return t},160,!0),K("(",function(e,t){h(Gt,rn),m();var n=0,a=[];if(e&&("(identifier)"===e.type?e.value.match(/^[A-Z]([A-Z0-9_$]*[a-z][A-Za-z0-9_$]*)?$/)&&"Number"!==e.value&&"String"!==e.value&&"Boolean"!==e.value&&"Date"!==e.value&&("Math"===e.value?r("Math is not a function.",e):Zt.newcap&&r("Missing 'new' prefix when invoking a constructor.",e)):"."===e.id&&Zt.safe&&"Math"===e.left.value&&"random"===e.right&&r("ADsafe violation.",e)),")"!==Wt.id)for(;a[a.length]=p(10),n+=1,","===Wt.id;)y();return f(")"),Zt.immed&&"function"===e.id&&")"!==Wt.id&&r("Wrap the entire immediate function invocation in parens.",t),m(Gt,rn),"object"==typeof e&&("parseInt"===e.value&&1===n&&r("Missing radix parameter.",e),Zt.evil||("eval"===e.value||"Function"===e.value||"execScript"===e.value?r("eval is evil.",e):!a[0]||"(string)"!==a[0].id||"setTimeout"!==e.value&&"setInterval"!==e.value||r("Implied eval is evil. Pass a function instead of a string.",e)),e.identifier||"."===e.id||"["===e.id||"("===e.id||"&&"===e.id||"||"===e.id||"?"===e.id||r("Bad invocation.",e)),t.left=e,t},155,!0).exps=!0,A("(",function(){m();var e=p(0);return f(")",this),m(Gt,rn),Zt.immed&&"function"===e.id&&("("===Wt.id?r("Move the invocation into the parens that contain the function.",Wt):r("Do not wrap function literals in parens unless they are to be immediately invoked.",this)),e}),K("[",function(e,t){m();var n,a=p(0);return a&&"(string)"===a.type?(Zt.safe&&fn[a.value]===!0?r("ADsafe restricted word '{a}'.",t,a.value):Zt.evil||"eval"!==a.value&&"execScript"!==a.value?!Zt.safe||"_"!==a.value.charAt(0)&&"-"!==a.value.charAt(0)||r("ADsafe restricted subscript '{a}'.",t,a.value):r("eval is evil.",t),$(a.value),!Zt.sub&&Nn.test(a.value)&&(n=An[a.value],n&&n.reserved||r("['{a}'] is better written in dot notation.",a,a.value))):(!a||"(number)"!==a.type||a.value<0)&&Zt.safe&&r("ADsafe subscripting."),f("]",t),m(Gt,rn),t.left=e,t.right=a,t},160,!0),A("[",function(){var e=rn.line!==Wt.line;for(this.first=[],e&&(Ft+=Zt.indent,Wt.from===Ft+Zt.indent&&(Ft+=Zt.indent));"(end)"!==Wt.id;){for(;","===Wt.id;)r("Extra comma."),f(",");if("]"===Wt.id)break;if(e&&rn.line!==Wt.line&&g(),this.first.push(p(10)),","!==Wt.id)break;if(y(),"]"===Wt.id){r("Extra comma.",rn);break}}return e&&(Ft-=Zt.indent,g()),f("]",this),this},160),function(e){e.nud=function(){var e,t,n,a,i,o,l={};for(e=rn.line!==Wt.line,e&&(Ft+=Zt.indent,Wt.from===Ft+Zt.indent&&(Ft+=Zt.indent));"}"!==Wt.id;){if(e&&g(),"get"===Wt.value&&":"!==u().id)f("get"),Zt.es5||s("get/set are ES5 features."),n=gt(),n||s("Missing property name."),o=Wt,h(rn,Wt),t=yt(n),Ct["(loopage)"]&&r("Don't make functions within a loop.",o),i=t["(params)"],i&&r("Unexpected parameter '{a}' in get {b} function.",o,i[0],n),h(rn,Wt),f(","),g(),f("set"),a=gt(),n!==a&&s("Expected {a} and instead saw {b}.",rn,n,a),o=Wt,h(rn,Wt),t=yt(n),i=t["(params)"],i&&1===i.length&&"value"===i[0]||r("Expected (value) in set {a} function.",o,n);else{if(n=gt(),"string"!=typeof n)break;f(":"),_(rn,Wt),p(10)}if(l[n]===!0&&r("Duplicate member '{a}'.",Wt,n),l[n]=!0,$(n),","!==Wt.id)break;y(),","===Wt.id?r("Extra comma.",rn):"}"===Wt.id&&r("Extra comma.",rn)}return e&&(Ft-=Zt.indent,g()),f("}",this),this},e.fud=function(){s("Expected to see a statement and instead saw a block.",rn)}}(w("{")),E("var",xt).exps=!0,k("function",function(){Pt&&r("Function statements cannot be placed in blocks. Use a function expression or move the statement to the top of the outer function.",rn);var e=I();return h(rn,Wt),c(e,"unused"),yt(e),"("===Wt.id&&Wt.line===rn.line&&s("Function statements are not invocable. Wrap the whole function invocation in parens."),this}),A("function",function(){var e=M();return e?h(rn,Wt):_(rn,Wt),yt(e),Ct["(loopage)"]&&r("Don't make functions within a loop."),this}),k("if",function(){var e=Wt;return f("("),_(this,e),m(),p(20),"="===Wt.id&&(r("Expected a conditional expression and instead saw an assignment."),f("="),p(20)),f(")",e),m(Gt,rn),V(!0),"else"===Wt.id&&(_(rn,Wt),f("else"),"if"===Wt.id||"switch"===Wt.id?P(!0):V(!0)),this}),k("try",function(){var e,t,n;return Zt.adsafe&&r("ADsafe try violation.",this),V(!1),"catch"===Wt.id&&(f("catch"),_(rn,Wt),f("("),n=Yt,Yt=Object.create(n),t=Wt.value,"(identifier)"!==Wt.type?r("Expected an identifier and instead saw '{a}'.",Wt,t):c(t,"exception"),f(),f(")"),V(!1),e=!0,Yt=n),"finally"===Wt.id?(f("finally"),void V(!1)):(e||s("Expected '{a}' and instead saw '{b}'.",Wt,"catch",Wt.value),this)}),k("while",function(){var e=Wt;return Ct["(breakage)"]+=1,Ct["(loopage)"]+=1,f("("),_(this,e),m(),p(20),"="===Wt.id&&(r("Expected a conditional expression and instead saw an assignment."),f("="),p(20)),f(")",e),m(Gt,rn),V(!0),Ct["(breakage)"]-=1,Ct["(loopage)"]-=1,this}).labelled=!0,O("with"),k("switch",function(){var e=Wt,t=!1;for(Ct["(breakage)"]+=1,f("("),_(this,e),m(),this.condition=p(20),f(")",e),m(Gt,rn),_(rn,Wt),e=Wt,f("{"),_(rn,Wt),Ft+=Zt.indent,this.cases=[];;)switch(Wt.id){case"case":switch(Ct["(verb)"]){case"break":case"case":case"continue":case"return":case"switch":case"throw":break;default:r("Expected a 'break' statement before 'case'.",rn)}g(-Zt.indent),f("case"),this.cases.push(p(20)),t=!0,f(":"),Ct["(verb)"]="case";break;case"default":switch(Ct["(verb)"]){case"break":case"continue":case"return":case"throw":break;default:r("Expected a 'break' statement before 'default'.",rn)}g(-Zt.indent),f("default"),t=!0,f(":");break;case"}":return Ft-=Zt.indent,g(),f("}",e),(1===this.cases.length||"true"===this.condition.id||"false"===this.condition.id)&&r("This 'switch' should be an 'if'.",this),Ct["(breakage)"]-=1,void(Ct["(verb)"]=void 0);case"(end)":return void s("Missing '{a}'.",Wt,"}");default:if(t)switch(rn.id){case",":return void s("Each value should have its own case label.");case":":z();break;default:s("Missing ':' on a case clause.",rn)}else s("Expected '{a}' and instead saw '{b}'.",Wt,"case",Wt.value)}}).labelled=!0,E("debugger",function(){return Zt.debug||r("All 'debugger' statements should be removed."),this}).exps=!0,function(){var e=E("do",function(){Ct["(breakage)"]+=1,Ct["(loopage)"]+=1,this.first=V(!0),f("while");var e=Wt;return _(rn,e),f("("),m(),p(20),"="===Wt.id&&(r("Expected a conditional expression and instead saw an assignment."),f("="),p(20)),f(")",e),m(Gt,rn),Ct["(breakage)"]-=1,Ct["(loopage)"]-=1,this});e.labelled=!0,e.exps=!0}(),k("for",function(){var e,t=Zt.forin,n=Wt;if(Ct["(breakage)"]+=1,Ct["(loopage)"]+=1,f("("),_(this,n),m(),"in"===u("var"===Wt.id?1:0).id){if("var"===Wt.id)f("var"),xt(!0);else{switch(Ct[Wt.value]){case"unused":Ct[Wt.value]="var";break;case"var":break;default:r("Bad for in variable '{a}'.",Wt,Wt.value)}f()}return f("in"),p(20),f(")",n),e=V(!0),!t&&(e.length>1||"object"!=typeof e[0]||"if"!==e[0].value)&&r("The body of a for in should be wrapped in an if statement to filter unwanted properties from the prototype.",this),Ct["(breakage)"]-=1,Ct["(loopage)"]-=1,this}if(";"!==Wt.id)if("var"===Wt.id)f("var"),xt();else for(;p(0,"for"),","===Wt.id;)y();if(v(rn),f(";"),";"!==Wt.id&&(p(20),"="===Wt.id&&(r("Expected a conditional expression and instead saw an assignment."),f("="),p(20))),v(rn),f(";"),";"===Wt.id&&s("Expected '{a}' and instead saw '{b}'.",Wt,")",";"),")"!==Wt.id)for(;p(0,"for"),","===Wt.id;)y();return f(")",n),m(Gt,rn),V(!0),Ct["(breakage)"]-=1,Ct["(loopage)"]-=1,this}).labelled=!0,E("break",function(){var e=Wt.value;return 0===Ct["(breakage)"]&&r("Unexpected '{a}'.",Wt,this.value),v(this),";"!==Wt.id&&rn.line===Wt.line&&("label"!==Ct[e]?r("'{a}' is not a statement label.",Wt,e):Yt[e]!==Ct&&r("'{a}' is out of scope.",Wt,e),this.first=Wt,f()),B("break"),this}).exps=!0,E("continue",function(){var e=Wt.value;return 0===Ct["(breakage)"]&&r("Unexpected '{a}'.",Wt,this.value),v(this),";"!==Wt.id?rn.line===Wt.line&&("label"!==Ct[e]?r("'{a}' is not a statement label.",Wt,e):Yt[e]!==Ct&&r("'{a}' is out of scope.",Wt,e),this.first=Wt,f()):Ct["(loopage)"]||r("Unexpected '{a}'.",Wt,this.value),B("continue"),this}).exps=!0,E("return",function(){return v(this),"(regexp)"===Wt.id&&r("Wrap the /regexp/ literal in parens to disambiguate the slash operator."),";"===Wt.id||Wt.reach||(_(rn,Wt),this.first=p(20)),B("return"),this}).exps=!0,E("throw",function(){return v(this),_(rn,Wt),this.first=p(20),B("throw"),this}).exps=!0,O("void"),O("class"),O("const"),O("enum"),O("export"),O("extends"),O("import"),O("super"),O("let"),O("yield"),O("implements"),O("interface"),O("package"),O("private"),O("protected"),O("public"),O("static");var $n=function(e,t){var n,i;if(JSLINT.errors=[],Ht=Object.create(kn),t){if(n=t.predef,n instanceof Array)for(i=0;i<n.length;i+=1)Ht[n[i]]=!0;t.adsafe&&(t.safe=!0),t.safe&&(t.browser=!1,t.css=!1,t.debug=!1,t.devel=!1,t.eqeqeq=!0,t.evil=!1,t.forin=!1,t.nomen=!0,t.on=!1,t.rhino=!1,t.safe=!0,t.windows=!1,t.strict=!0,t.sub=!1,t.undef=!0,t.widget=!1,Ht.Date=null,Ht.eval=null,Ht.Function=null,Ht.Object=null,Ht.ADSAFE=!1,Ht.lib=!1),Zt=t}else Zt={};if(Zt.indent=Zt.indent||4,Zt.maxerr=Zt.maxerr||50,Tt="",At=!1,St=!1,Rt={},Zt.approved)for(i=0;i<Zt.approved.length;i+=1)Rt[Zt.approved[i]]=Zt.approved[i];else Rt.test="test";for(an="",i=0;i<Zt.indent;i+=1)an+=" ";Ft=1,Mt=Object.create(Ht),Yt=Mt,Ct={"(global)":!0,"(name)":"(global)","(scope)":Yt,"(breakage)":0,"(loopage)":0},Nt=[Ct],It={},on=[],en=!1,ln=!1,tn=null,$t={},Jt=null,Bt={},Pt=!1,qt=[],zt=!1,sn=0,qn.init(e),Qt=!0,nn=!1,Gt=rn=Wt=An["(begin)"],a();try{if(f(),"<"===Wt.value.charAt(0))bt(),Zt.adsafe&&!St&&r("ADsafe violation: Missing ADSAFE.go.",this);else switch(Wt.id){case"{":case"[":Zt.laxbreak=!0,zt=!0,wt();break;case"@":case"*":case"#":case".":case":":ln="style",f(),"@"===rn.id&&Wt.identifier&&"charset"===Wt.value&&1===rn.line&&1===rn.from||s('A css file should begin with @charset "UTF-8";'),f(),"(string)"!==Wt.type&&"UTF-8"!==Wt.value&&s('A css file should begin with @charset "UTF-8";'),f(),f(";"),ft();break;default:Zt.adsafe&&Zt.fragment&&s("Expected '{a}' and instead saw '{b}'.",Wt,"<div>",Wt.value),z("lib")}f("(end)")}catch(o){o&&JSLINT.errors.push({reason:o.message,line:o.line||Wt.line,character:o.character||Wt.from},null)}return 0===JSLINT.errors.length};return $n.data=function(){var e,n,a,i,r,o,s,l={functions:[]},c=[],d=[],u=[];$n.errors.length&&(l.errors=$n.errors),zt&&(l.json=!0);for(o in Bt)t(Bt,o)&&c.push({name:o,line:Bt[o]});for(c.length>0&&(l.implieds=c),on.length>0&&(l.urls=on),n=kt(Yt),n.length>0&&(l.globals=n),i=1;i<Nt.length;i+=1){for(a=Nt[i],e={},r=0;r<vn.length;r+=1)e[vn[r]]=[];for(o in a)t(a,o)&&"("!==o.charAt(0)&&(s=a[o],Et(e[s])&&(e[s].push(o),"unused"===s&&u.push({name:o,line:a["(line)"],"function":a["(name)"]})));for(r=0;r<vn.length;r+=1)0===e[vn[r]].length&&delete e[vn[r]];e.name=a["(name)"],e.param=a["(params)"],e.line=a["(line)"],e.last=a["(last)"],l.functions.push(e)}u.length>0&&(l.unused=u),d=[];for(o in $t)if("number"==typeof $t[o]){l.member=$t;break}return l},$n.report=function(e){function t(e,t){var n,a,i;if(t){for(h.push("<div><i>"+e+"</i> "),t=t.sort(),a=0;a<t.length;a+=1)t[a]!==i&&(i=t[a],h.push((n?", ":"")+i),n=!0);h.push("</div>")}}var n,a,i,r,o,s,l,c,d,u=$n.data(),f=[],p="",h=[];if(u.errors||u.implieds||u.unused){if(i=!0,h.push("<div id=errors><i>Error:</i>"),u.errors)for(o=0;o<u.errors.length;o+=1)n=u.errors[o],n&&(a=n.evidence||"",h.push("<p>Problem"+(isFinite(n.line)?" at line "+n.line+" character "+n.character:"")+": "+n.reason.entityify()+"</p><p class=evidence>"+(a&&(a.length>80?a.slice(0,77)+"...":a).entityify())+"</p>"));if(u.implieds){for(d=[],o=0;o<u.implieds.length;o+=1)d[o]="<code>"+u.implieds[o].name+"</code>&nbsp;<i>"+u.implieds[o].line+"</i>";h.push("<p><i>Implied global:</i> "+d.join(", ")+"</p>")}if(u.unused){for(d=[],o=0;o<u.unused.length;o+=1)d[o]="<code><u>"+u.unused[o].name+"</u></code>&nbsp;<i>"+u.unused[o].line+"</i> <code>"+u.unused[o]["function"]+"</code>";h.push("<p><i>Unused variable:</i> "+d.join(", ")+"</p>")}u.json&&h.push("<p>JSON: bad.</p>"),h.push("</div>")}if(!e){for(h.push("<br><div id=functions>"),u.urls&&t("URLs<br>",u.urls,"<br>"),h.push("style"===ln?"<p>CSS.</p>":u.json&&!i?"<p>JSON: good.</p>":u.globals?"<div><i>Global</i> "+u.globals.sort().join(", ")+"</div>":"<div><i>No new global variables introduced.</i></div>"),o=0;o<u.functions.length;o+=1)r=u.functions[o],h.push("<br><div class=function><i>"+r.line+"-"+r.last+"</i> "+(r.name||"")+"("+(r.param?r.param.join(", "):"")+")</div>"),t("<big><b>Unused</b></big>",r.unused),t("Closure",r.closure),t("Variable",r["var"]),t("Exception",r.exception),t("Outer",r.outer),t("Global",r.global),t("Label",r.label);if(u.member){if(f=kt(u.member),f.length){for(f=f.sort(),p="<br><pre id=members>/*members ",l=10,o=0;o<f.length;o+=1)s=f[o],c=s.name(),l+c.length>72&&(h.push(p+"<br>"),p="    ",l=1),l+=c.length+2,1===u.member[s]&&(c="<i>"+c+"</i>"),o<f.length-1&&(c+=", "),p+=c;h.push(p+"<br>*/</pre>")}h.push("</div>")}}return h.join("")},$n.jslint=$n,$n.edition="2010-04-06",$n}();define("plugins/languages/json/jslint",function(){}),define("plugins/languages/json/validator",["i18n!orion/jslint/nls/messages","orion/i18nUtil","plugins/languages/json/jslint"],function(e,t){function n(){}function a(e){return JSLINT(e,s),JSLINT.data()}function i(e,t){var n,i=a(t),s=[];if(i.errors){var l=i.errors;for(n=0;n<l.length;n++){var c=l[n];if(c){var d=c.character-1,u=d+1;if(c.evidence){var f=c.evidence.substring(d).search(/.\b/);f>-1&&(u+=f)}c.description=o(c),c.start=c.character,c.end=u,c=r(c),c&&s.push(c)}}}if(i.functions){var p,h=i.functions;for(n=0;n<h.length;n++){var m=h[n],_=m.unused;if(_&&0!==_.length){p||(p=t.split(/\r?\n/));for(var b='"'===m.name[0],g=b?m.name.substring(1,m.name.length-1):m.name,v=p[m.line-1],y=0;y<_.length;y++){var x=v.indexOf(g),w=b?v.indexOf("function",x):v.lastIndexOf("function",x);-1!==w&&s.push({reason:"Function declares unused variable '"+_[y]+"'.",line:m.line,character:w+1,end:w+"function".length,severity:"warning"})}}}}return{problems:s}}function r(e){var t=[["Expected '{'","Statement body should be inside '{ }' braces."],"Missing semicolon","Extra comma","Missing property name","Unmatched "," and instead saw"," is not defined","Unclosed string","Stopping, unable to continue"],n=e.description;if(-1===n.indexOf("Dangerous comment")){for(var a=0;a<t.length;a++){var i=t[a],r="string"==typeof i?i:i[0],o="string"==typeof i?null:i[1];-1!==n.indexOf(r)&&o&&(e.description=o)}return"Unexpected comma."===e.raw&&(e.id="no-comma-dangle"),e}return null}function o(n){var a=n.raw;if(a){if("string"==typeof e[a])return a.match(/\{a\}|\{b\}|\{c\}|\{d\}/)?t.formatMessage(e[a],n.a,n.b,n.c,n.d):e[a]}else{var i=/(.*)\(([0-9]*)\%/.exec(n.reason);if(i)return t.formatMessage(e[i[1].trim()],i[2]);if(e[n.reason.trim()])return t.formatMessage(e[n.reason.trim()],"100")}return n.reason}var s={bitwise:!1,eqeqeq:!0,es5:!0,immed:!0,indent:1,maxerr:300,newcap:!0,nomen:!1,onevar:!1,plusplus:!1,regexp:!0,strict:!1,undef:!0,white:!1};return n.prototype.computeProblems=function(e,t){return e.getText().then(i.bind(null,t))},n}),define("plugins/languages/json/beautifier",[],function(){function e(e){return 10===e||13===e||8232===e||8233==e}function t(e,t){for(var n=65536,a=0;a<t.length;a+=2){if(n+=t[a],n>e)return!1;if(n+=t[a+1],n>=e)return!0}}function n(e,n){return 65>e?36===e:91>e?!0:97>e?95===e:123>e?!0:65535>=e?e>=170&&l.test(String.fromCharCode(e)):n===!1?!1:t(e,d)}function a(e,n){return 48>e?36===e:58>e?!0:65>e?!1:91>e?!0:97>e?95===e:123>e?!0:65535>=e?e>=170&&c.test(String.fromCharCode(e)):n===!1?!1:t(e,d)||t(e,u)}function i(t,i){function o(e,t){for(var n=0;n<t.length;n+=1)if(t[n]===e)return!0;return!1}function s(e){return e.replace(/^\s+|\s+$/g,"")}function l(e){return e.replace(/^\s+/g,"")}function c(e){e=e||h.before_newline;var t=Object.values(h);if(!o(e,t))throw new Error("Invalid Option Value: The option 'operator_position' must be one of the following values\n"+t+"\nYou passed in: '"+e+"'");return e}function d(t,n){"use strict";function a(e,t){var n=0;e&&(n=e.indentation_level,!W.just_added_newline()&&e.line_indent_level>n&&(n=e.line_indent_level));var a={mode:t,parent:e,last_text:e?e.last_text:"",last_word:e?e.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,indentation_level:n,line_indent_level:e?e.line_indent_level:n,start_line_index:W.get_line_number(),ternary_depth:0};return a}function i(e){var t=e.newlines,n=rt.keep_array_indentation&&E(et.mode);if(n)for(var a=0;t>a;a+=1)b(a>0);else if(rt.max_preserve_newlines&&t>rt.max_preserve_newlines&&(t=rt.max_preserve_newlines),rt.preserve_newlines&&e.newlines>1){b();for(var i=1;t>i;i+=1)b(!0)}H=e,it[H.type]()}function d(e){e=e.replace(acorn.allLineBreaks,"\n");for(var t=[],n=e.indexOf("\n");-1!==n;)t.push(e.substring(0,n)),e=e.substring(n+1),n=e.indexOf("\n");return e.length&&t.push(e),t}function u(e){if(e=void 0===e?!1:e,!W.just_added_newline()){var t=rt.preserve_newlines&&H.wanted_newline||e,n=o(et.last_text,Z.positionable_operators)||o(H.text,Z.positionable_operators);if(n){var a=o(et.last_text,Z.positionable_operators)&&o(rt.operator_position,m)||o(H.text,Z.positionable_operators);t=t&&a}if(t)b(!1,!0);else if(rt.wrap_line_length){if("TK_RESERVED"===Q&&o(et.last_text,ct))return;var i=W.current_line.get_character_count()+H.text.length+(W.space_before_token?1:0);i>=rt.wrap_line_length&&b(!1,!0)}}}function b(e,t){if(!t&&";"!==et.last_text&&","!==et.last_text&&"="!==et.last_text&&"TK_OPERATOR"!==Q)for(;et.mode===_.Statement&&!et.if_block&&!et.do_block;)T();W.add_new_line(e)&&(et.multiline_frame=!0)}function g(){W.just_added_newline()&&(rt.keep_array_indentation&&E(et.mode)&&H.wanted_newline?(W.current_line.push(H.whitespace_before),W.space_before_token=!1):W.set_indent(et.indentation_level)&&(et.line_indent_level=et.indentation_level))}function v(e){if(W.raw)return void W.add_raw_token(H);if(rt.comma_first&&"TK_COMMA"===Q&&W.just_added_newline()&&","===W.previous_line.last()){var t=W.previous_line.pop();W.previous_line.is_empty()&&(W.previous_line.push(t),W.trim(!0),W.current_line.pop(),W.trim()),g(),W.add_token(","),W.space_before_token=!0}e=e||H.text,g(),W.add_token(e)}function y(){et.indentation_level+=1}function x(){et.indentation_level>0&&(!et.parent||et.indentation_level>et.parent.indentation_level)&&(et.indentation_level-=1)}function w(e){et?(nt.push(et),tt=et):tt=a(null,e),et=a(tt,e)}function E(e){return e===_.ArrayLiteral}function k(e){return o(e,[_.Expression,_.ForInitializer,_.Conditional])}function T(){nt.length>0&&(tt=et,et=nt.pop(),tt.mode===_.Statement&&W.remove_redundant_indentation(tt))}function A(){return et.parent.mode===_.ObjectLiteral&&et.mode===_.Statement&&(":"===et.last_text&&0===et.ternary_depth||"TK_RESERVED"===Q&&o(et.last_text,["get","set"]))}function S(){return"TK_RESERVED"===Q&&o(et.last_text,["var","let","const"])&&"TK_WORD"===H.type||"TK_RESERVED"===Q&&"do"===et.last_text||"TK_RESERVED"===Q&&o(et.last_text,["return","throw"])&&!H.wanted_newline||"TK_RESERVED"===Q&&"else"===et.last_text&&("TK_RESERVED"!==H.type||"if"!==H.text)||"TK_END_EXPR"===Q&&(tt.mode===_.ForInitializer||tt.mode===_.Conditional)||"TK_WORD"===Q&&et.mode===_.BlockStatement&&!et.in_case&&"--"!==H.text&&"++"!==H.text&&"function"!==G&&"TK_WORD"!==H.type&&"TK_RESERVED"!==H.type||et.mode===_.ObjectLiteral&&(":"===et.last_text&&0===et.ternary_depth||"TK_RESERVED"===Q&&o(et.last_text,["get","set"]))?(w(_.Statement),y(),"TK_RESERVED"===Q&&o(et.last_text,["var","let","const"])&&"TK_WORD"===H.type&&(et.declaration_statement=!0),A()||u("TK_RESERVED"===H.type&&o(H.text,["do","for","if","while"])),!0):!1}function O(e,t){for(var n=0;n<e.length;n++){var a=s(e[n]);if(a.charAt(0)!==t)return!1}return!0}function R(e,t){for(var n,a=0,i=e.length;i>a;a++)if(n=e[a],n&&0!==n.indexOf(t))return!1;return!0}function K(e){return o(e,["case","return","do","if","throw","else"])}function j(e){var t=X+(e||0);return 0>t||t>=ot.length?null:ot[t]}function D(){S();var e=_.Expression;if("["===H.text){if("TK_WORD"===Q||")"===et.last_text)return"TK_RESERVED"===Q&&o(et.last_text,Z.line_starters)&&(W.space_before_token=!0),w(e),v(),y(),void(rt.space_in_paren&&(W.space_before_token=!0));e=_.ArrayLiteral,E(et.mode)&&("["===et.last_text||","===et.last_text&&("]"===G||"}"===G))&&(rt.keep_array_indentation||b())}else"TK_RESERVED"===Q&&"for"===et.last_text?e=_.ForInitializer:"TK_RESERVED"===Q&&o(et.last_text,["if","while"])&&(e=_.Conditional);";"===et.last_text||"TK_START_BLOCK"===Q?b():"TK_END_EXPR"===Q||"TK_START_EXPR"===Q||"TK_END_BLOCK"===Q||"."===et.last_text?u(H.wanted_newline):"TK_RESERVED"===Q&&"("===H.text||"TK_WORD"===Q||"TK_OPERATOR"===Q?"TK_RESERVED"===Q&&("function"===et.last_word||"typeof"===et.last_word)||"*"===et.last_text&&"function"===G?rt.space_after_anon_function&&(W.space_before_token=!0):"TK_RESERVED"!==Q||!o(et.last_text,Z.line_starters)&&"catch"!==et.last_text||rt.space_before_conditional&&(W.space_before_token=!0):W.space_before_token=!0,"("===H.text&&"TK_RESERVED"===Q&&"await"===et.last_word&&(W.space_before_token=!0),"("===H.text&&("TK_EQUALS"===Q||"TK_OPERATOR"===Q)&&(A()||u()),"("===H.text&&"TK_WORD"!==Q&&"TK_RESERVED"!==Q&&u(),w(e),v(),rt.space_in_paren&&(W.space_before_token=!0),y()}function U(){for(;et.mode===_.Statement;)T();et.multiline_frame&&u("]"===H.text&&E(et.mode)&&!rt.keep_array_indentation),rt.space_in_paren&&("TK_START_EXPR"!==Q||rt.space_in_empty_paren?W.space_before_token=!0:(W.trim(),W.space_before_token=!1)),"]"===H.text&&rt.keep_array_indentation?(v(),T()):(T(),v()),W.remove_redundant_indentation(tt),et.do_while&&tt.mode===_.Conditional&&(tt.mode=_.Expression,et.do_block=!1,et.do_while=!1)}function L(){var e=j(1),t=j(2);w(t&&(o(t.text,[":",","])&&o(e.type,["TK_STRING","TK_WORD","TK_RESERVED"])||o(e.text,["get","set"])&&o(t.type,["TK_WORD","TK_RESERVED"]))?o(G,["class","interface"])?_.BlockStatement:_.ObjectLiteral:"TK_OPERATOR"===Q&&"=>"===et.last_text?_.BlockStatement:o(Q,["TK_EQUALS","TK_START_EXPR","TK_COMMA","TK_OPERATOR"])||"TK_RESERVED"===Q&&o(et.last_text,["return","throw","import"])?_.ObjectLiteral:_.BlockStatement);var n=!e.comments_before.length&&"}"===e.text,a=n&&"function"===et.last_word&&"TK_END_EXPR"===Q;if("expand"===rt.brace_style||"none"===rt.brace_style&&H.wanted_newline)"TK_OPERATOR"!==Q&&(a||"TK_EQUALS"===Q||"TK_RESERVED"===Q&&K(et.last_text)&&"else"!==et.last_text)?W.space_before_token=!0:b(!1,!0);else{if("collapse-preserve-inline"===rt.brace_style){var i=0,r=null;et.inline_frame=!0;do if(i+=1,r=j(i),r.wanted_newline){et.inline_frame=!1;break}while("TK_EOF"!==r.type&&("TK_END_BLOCK"!==r.type||r.opened!==H))}!E(tt.mode)||"TK_START_EXPR"!==Q&&"TK_COMMA"!==Q?"TK_OPERATOR"!==Q&&"TK_START_EXPR"!==Q&&("TK_START_BLOCK"===Q?b():W.space_before_token=!0):(("TK_COMMA"===Q||rt.space_in_paren)&&(W.space_before_token=!0),"collapse-preserve-inline"===rt.brace_style&&("TK_COMMA"===Q||"TK_START_EXPR"===Q&&et.inline_frame)&&(u(),tt.multiline_frame=tt.multiline_frame||et.multiline_frame,et.multiline_frame=!1))}v(),y()}function C(){for(;et.mode===_.Statement;)T();var e="TK_START_BLOCK"===Q;"expand"===rt.brace_style?e||b():e||(et.inline_frame?W.space_before_token=!0:E(et.mode)&&rt.keep_array_indentation?(rt.keep_array_indentation=!1,b(),rt.keep_array_indentation=!0):b()),T(),v()}function N(){if("TK_RESERVED"===H.type)if(o(H.text,["set","get"])&&et.mode!==_.ObjectLiteral)H.type="TK_WORD";else if(o(H.text,["as","from"])&&!et.import_block)H.type="TK_WORD";else if(et.mode===_.ObjectLiteral){var e=j(1);":"===e.text&&(H.type="TK_WORD")}if(S()||!H.wanted_newline||k(et.mode)||"TK_OPERATOR"===Q&&"--"!==et.last_text&&"++"!==et.last_text||"TK_EQUALS"===Q||!rt.preserve_newlines&&"TK_RESERVED"===Q&&o(et.last_text,["var","let","const","set","get"])||b(),et.do_block&&!et.do_while){if("TK_RESERVED"===H.type&&"while"===H.text)return W.space_before_token=!0,v(),W.space_before_token=!0,void(et.do_while=!0);b(),et.do_block=!1}if(et.if_block)if(et.else_block||"TK_RESERVED"!==H.type||"else"!==H.text){for(;et.mode===_.Statement;)T();et.if_block=!1,et.else_block=!1}else et.else_block=!0;if("TK_RESERVED"===H.type&&("case"===H.text||"default"===H.text&&et.in_case_statement))return b(),(et.case_body||rt.jslint_happy)&&(x(),et.case_body=!1),v(),et.in_case=!0,void(et.in_case_statement=!0);if("TK_RESERVED"===H.type&&"function"===H.text&&((o(et.last_text,["}",";"])||W.just_added_newline()&&!o(et.last_text,["[","{",":","=",","]))&&(W.just_added_blankline()||H.comments_before.length||(b(),b(!0))),"TK_RESERVED"===Q||"TK_WORD"===Q?"TK_RESERVED"===Q&&o(et.last_text,["get","set","new","return","export","async"])?W.space_before_token=!0:"TK_RESERVED"===Q&&"default"===et.last_text&&"export"===G?W.space_before_token=!0:b():"TK_OPERATOR"===Q||"="===et.last_text?W.space_before_token=!0:(et.multiline_frame||!k(et.mode)&&!E(et.mode))&&b()),("TK_COMMA"===Q||"TK_START_EXPR"===Q||"TK_EQUALS"===Q||"TK_OPERATOR"===Q)&&(A()||u()),"TK_RESERVED"===H.type&&o(H.text,["function","get","set"]))return v(),void(et.last_word=H.text);if(at="NONE","TK_END_BLOCK"===Q?"TK_RESERVED"===H.type&&o(H.text,["else","catch","finally","from"])?"expand"===rt.brace_style||"end-expand"===rt.brace_style||"none"===rt.brace_style&&H.wanted_newline?at="NEWLINE":(at="SPACE",W.space_before_token=!0):at="NEWLINE":"TK_SEMICOLON"===Q&&et.mode===_.BlockStatement?at="NEWLINE":"TK_SEMICOLON"===Q&&k(et.mode)?at="SPACE":"TK_STRING"===Q?at="NEWLINE":"TK_RESERVED"===Q||"TK_WORD"===Q||"*"===et.last_text&&"function"===G?at="SPACE":"TK_START_BLOCK"===Q?at=et.inline_frame?"SPACE":"NEWLINE":"TK_END_EXPR"===Q&&(W.space_before_token=!0,at="NEWLINE"),"TK_RESERVED"===H.type&&o(H.text,Z.line_starters)&&")"!==et.last_text&&(at="else"===et.last_text||"export"===et.last_text?"SPACE":"NEWLINE"),"TK_RESERVED"===H.type&&o(H.text,["else","catch","finally"]))if("TK_END_BLOCK"!==Q||tt.mode!==_.BlockStatement||"expand"===rt.brace_style||"end-expand"===rt.brace_style||"none"===rt.brace_style&&H.wanted_newline)b();else{W.trim(!0);var t=W.current_line;"}"!==t.last()&&b(),W.space_before_token=!0}else"NEWLINE"===at?"TK_RESERVED"===Q&&K(et.last_text)?W.space_before_token=!0:"TK_END_EXPR"!==Q?"TK_START_EXPR"===Q&&"TK_RESERVED"===H.type&&o(H.text,["var","let","const"])||":"===et.last_text||("TK_RESERVED"===H.type&&"if"===H.text&&"else"===et.last_text?W.space_before_token=!0:b()):"TK_RESERVED"===H.type&&o(H.text,Z.line_starters)&&")"!==et.last_text&&b():et.multiline_frame&&E(et.mode)&&","===et.last_text&&"}"===G?b():"SPACE"===at&&(W.space_before_token=!0);v(),et.last_word=H.text,"TK_RESERVED"===H.type&&("do"===H.text?et.do_block=!0:"if"===H.text?et.if_block=!0:"import"===H.text?et.import_block=!0:et.import_block&&"TK_RESERVED"===H.type&&"from"===H.text&&(et.import_block=!1))
}function M(){for(S()&&(W.space_before_token=!1);et.mode===_.Statement&&!et.if_block&&!et.do_block;)T();et.import_block&&(et.import_block=!1),v()}function I(){S()?W.space_before_token=!0:"TK_RESERVED"===Q||"TK_WORD"===Q||et.inline_frame?W.space_before_token=!0:"TK_COMMA"===Q||"TK_START_EXPR"===Q||"TK_EQUALS"===Q||"TK_OPERATOR"===Q?A()||u():b(),v()}function B(){S(),et.declaration_statement&&(et.declaration_assignment=!0),W.space_before_token=!0,v(),W.space_before_token=!0}function P(){v(),W.space_before_token=!0,et.declaration_statement?(k(et.parent.mode)&&(et.declaration_assignment=!1),et.declaration_assignment?(et.declaration_assignment=!1,b(!1,!0)):rt.comma_first&&u()):et.mode===_.ObjectLiteral||et.mode===_.Statement&&et.parent.mode===_.ObjectLiteral?(et.mode===_.Statement&&T(),et.inline_frame||b()):rt.comma_first&&u()}function F(){if(S(),"TK_RESERVED"===Q&&K(et.last_text))return W.space_before_token=!0,void v();if("*"===H.text&&"TK_DOT"===Q)return void v();if("::"===H.text)return void v();if("TK_OPERATOR"===Q&&o(rt.operator_position,m)&&u(),":"===H.text&&et.in_case)return et.case_body=!0,y(),v(),b(),void(et.in_case=!1);var e=!0,t=!0,n=!1,a="*"===H.text&&"TK_RESERVED"===Q&&"function"===et.last_text,i=o(H.text,["-","+"])&&(o(Q,["TK_START_BLOCK","TK_START_EXPR","TK_EQUALS","TK_OPERATOR"])||o(et.last_text,Z.line_starters)||","===et.last_text);if(":"===H.text?0===et.ternary_depth?e=!1:(et.ternary_depth-=1,n=!0):"?"===H.text&&(et.ternary_depth+=1),!i&&!a&&rt.preserve_newlines&&o(H.text,Z.positionable_operators)){var r=":"===H.text,s=r&&n,l=r&&!n;switch(rt.operator_position){case h.before_newline:return W.space_before_token=!l,v(),(!r||s)&&u(),void(W.space_before_token=!0);case h.after_newline:return W.space_before_token=!0,!r||s?j(1).wanted_newline?b(!1,!0):u():W.space_before_token=!1,v(),void(W.space_before_token=!0);case h.preserve_newline:return l||u(),e=!(W.just_added_newline()||l),W.space_before_token=e,v(),void(W.space_before_token=!0)}}o(H.text,["--","++","!","~"])||i?(e=!1,t=!1,!H.wanted_newline||"--"!==H.text&&"++"!==H.text||b(!1,!0),";"===et.last_text&&k(et.mode)&&(e=!0),"TK_RESERVED"===Q?e=!0:"TK_END_EXPR"===Q?e=!("]"===et.last_text&&("--"===H.text||"++"===H.text)):"TK_OPERATOR"===Q&&(e=o(H.text,["--","-","++","+"])&&o(et.last_text,["--","-","++","+"]),o(H.text,["+","-"])&&o(et.last_text,["--","++"])&&(t=!0)),(et.mode!==_.BlockStatement||et.inline_frame)&&et.mode!==_.Statement||"{"!==et.last_text&&";"!==et.last_text||b()):a&&(e=!1,t=!1),W.space_before_token=W.space_before_token||e,v(),W.space_before_token=t}function z(){if(W.raw)return W.add_raw_token(H),void(H.directives&&"end"===H.directives.preserve&&(W.raw=rt.test_output_raw));if(H.directives)return b(!1,!0),v(),"start"===H.directives.preserve&&(W.raw=!0),void b(!1,!0);if(!e(H.text.charCodeAt(0))&&!H.wanted_newline)return W.space_before_token=!0,v(),void(W.space_before_token=!0);var t,n=d(H.text),a=!1,i=!1,r=H.whitespace_before,o=r.length;for(b(!1,!0),n.length>1&&(a=O(n.slice(1),"*"),i=R(n.slice(1),r)),v(n[0]),t=1;t<n.length;t++)b(!1,!0),a?v(" "+l(n[t])):i&&n[t].length>o?v(n[t].substring(o)):W.add_token(n[t]);b(!1,!0)}function V(){H.wanted_newline?b(!1,!0):W.trim(!0),W.space_before_token=!0,v(),b(!1,!0)}function q(){S(),"TK_RESERVED"===Q&&K(et.last_text)?W.space_before_token=!0:u(")"===et.last_text&&rt.break_chained_methods),v()}function $(){v(),"\n"===H.text[H.text.length-1]&&b()}function J(){for(;et.mode===_.Statement;)T()}var W,X,Z,H,Q,G,Y,et,tt,nt,at,it,rt,ot=[],st="";for(it={TK_START_EXPR:D,TK_END_EXPR:U,TK_START_BLOCK:L,TK_END_BLOCK:C,TK_WORD:N,TK_RESERVED:N,TK_SEMICOLON:M,TK_STRING:I,TK_EQUALS:B,TK_OPERATOR:F,TK_COMMA:P,TK_BLOCK_COMMENT:z,TK_COMMENT:V,TK_DOT:q,TK_UNKNOWN:$,TK_EOF:J},n=n?n:{},rt={},void 0!==n.braces_on_own_line&&(rt.brace_style=n.braces_on_own_line?"expand":"collapse"),rt.brace_style=n.brace_style?n.brace_style:rt.brace_style?rt.brace_style:"collapse","expand-strict"===rt.brace_style&&(rt.brace_style="expand"),rt.indent_size=n.indent_size?parseInt(n.indent_size,10):4,rt.indent_char=n.indent_char?n.indent_char:" ",rt.eol=n.eol?n.eol:"auto",rt.preserve_newlines=void 0===n.preserve_newlines?!0:n.preserve_newlines,rt.break_chained_methods=void 0===n.break_chained_methods?!1:n.break_chained_methods,rt.max_preserve_newlines=void 0===n.max_preserve_newlines?0:parseInt(n.max_preserve_newlines,10),rt.space_in_paren=void 0===n.space_in_paren?!1:n.space_in_paren,rt.space_in_empty_paren=void 0===n.space_in_empty_paren?!1:n.space_in_empty_paren,rt.jslint_happy=void 0===n.jslint_happy?!1:n.jslint_happy,rt.space_after_anon_function=void 0===n.space_after_anon_function?!1:n.space_after_anon_function,rt.keep_array_indentation=void 0===n.keep_array_indentation?!1:n.keep_array_indentation,rt.space_before_conditional=void 0===n.space_before_conditional?!0:n.space_before_conditional,rt.unescape_strings=void 0===n.unescape_strings?!1:n.unescape_strings,rt.wrap_line_length=void 0===n.wrap_line_length?0:parseInt(n.wrap_line_length,10),rt.e4x=void 0===n.e4x?!1:n.e4x,rt.end_with_newline=void 0===n.end_with_newline?!1:n.end_with_newline,rt.comma_first=void 0===n.comma_first?!1:n.comma_first,rt.operator_position=c(n.operator_position),rt.test_output_raw=void 0===n.test_output_raw?!1:n.test_output_raw,rt.jslint_happy&&(rt.space_after_anon_function=!0),n.indent_with_tabs&&(rt.indent_char="	",rt.indent_size=1),"auto"===rt.eol&&(rt.eol="\n",t&&r.test(t||"")&&(rt.eol=t.match(r)[0])),rt.eol=rt.eol.replace(/\\r/,"\r").replace(/\\n/,"\n"),Y="";rt.indent_size>0;)Y+=rt.indent_char,rt.indent_size-=1;var lt=0;if(t&&t.length){for(;" "===t.charAt(lt)||"	"===t.charAt(lt);)st+=t.charAt(lt),lt+=1;t=t.substring(lt)}Q="TK_START_BLOCK",G="",W=new f(Y,st),W.raw=rt.test_output_raw,nt=[],w(_.BlockStatement),this.beautify=function(){function e(){return n=j()}var n,a;for(Z=new p(t,rt,Y),ot=Z.tokenize(),X=0;e();){for(var r=0;r<n.comments_before.length;r++)i(n.comments_before[r]);i(n),G=et.last_text,Q=n.type,et.last_text=n.text,X+=1}return a=W.get_code(),rt.end_with_newline&&(a+="\n"),"\n"!==rt.eol&&(a=a.replace(/[\n]/g,rt.eol)),a};var ct=["break","contiue","return","throw"]}function u(e){var t=0,n=-1,a=[],i=!0;this.set_indent=function(a){t=e.baseIndentLength+a*e.indent_length,n=a},this.get_character_count=function(){return t},this.is_empty=function(){return i},this.last=function(){return this._empty?null:a[a.length-1]},this.push=function(e){a.push(e),t+=e.length,i=!1},this.pop=function(){var e=null;return i||(e=a.pop(),t-=e.length,i=0===a.length),e},this.remove_indent=function(){n>0&&(n-=1,t-=e.indent_length)},this.trim=function(){for(;" "===this.last();)a.pop(),t-=1;i=0===a.length},this.toString=function(){var t="";return this._empty||(n>=0&&(t=e.indent_cache[n]),t+=a.join("")),t}}function f(e,t){t=t||"",this.indent_cache=[t],this.baseIndentLength=t.length,this.indent_length=e.length,this.raw=!1;var n=[];this.baseIndentString=t,this.indent_string=e,this.previous_line=null,this.current_line=null,this.space_before_token=!1,this.add_outputline=function(){this.previous_line=this.current_line,this.current_line=new u(this),n.push(this.current_line)},this.add_outputline(),this.get_line_number=function(){return n.length},this.add_new_line=function(e){return 1===this.get_line_number()&&this.just_added_newline()?!1:e||!this.just_added_newline()?(this.raw||this.add_outputline(),!0):!1},this.get_code=function(){var e=n.join("\n").replace(/[\r\n\t ]+$/,"");return e},this.set_indent=function(e){if(n.length>1){for(;e>=this.indent_cache.length;)this.indent_cache.push(this.indent_cache[this.indent_cache.length-1]+this.indent_string);return this.current_line.set_indent(e),!0}return this.current_line.set_indent(0),!1},this.add_raw_token=function(e){for(var t=0;t<e.newlines;t++)this.add_outputline();this.current_line.push(e.whitespace_before),this.current_line.push(e.text),this.space_before_token=!1},this.add_token=function(e){this.add_space_before_token(),this.current_line.push(e)},this.add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&this.current_line.push(" "),this.space_before_token=!1},this.remove_redundant_indentation=function(e){if(!e.multiline_frame&&e.mode!==_.ForInitializer&&e.mode!==_.Conditional)for(var t=e.start_line_index,a=n.length;a>t;)n[t].remove_indent(),t++},this.trim=function(a){for(a=void 0===a?!1:a,this.current_line.trim(e,t);a&&n.length>1&&this.current_line.is_empty();)n.pop(),this.current_line=n[n.length-1],this.current_line.trim();this.previous_line=n.length>1?n[n.length-2]:null},this.just_added_newline=function(){return this.current_line.is_empty()},this.just_added_blankline=function(){if(this.just_added_newline()){if(1===n.length)return!0;var e=n[n.length-2];return e.is_empty()}return!1}}function p(t,i){function r(e){if(!e.match(A))return null;var t={};S.lastIndex=0;for(var n=S.exec(e);n;)t[n[1]]=n[2],n=S.exec(e);return t}function l(){var l,A=[];if(_=0,g="",x>=w)return["","TK_EOF"];var S;S=y.length?y[y.length-1]:new b("TK_START_BLOCK","{");var K=t.charAt(x);for(x+=1;o(K,d);){if(e(K.charCodeAt(0))?("\n"!==K||"\r"!==t.charAt(x-2))&&(_+=1,A=[]):A.push(K),x>=w)return["","TK_EOF"];K=t.charAt(x),x+=1}if(A.length&&(g=A.join("")),u.test(K)||"."===K&&u.test(t.charAt(x))){var j=!0,D=!0,U=u;for("0"===K&&w>x&&/[XxOoBb]/.test(t.charAt(x))?(j=!1,D=!1,U=/[Bb]/.test(t.charAt(x))?f:/[Oo]/.test(t.charAt(x))?p:h,K+=t.charAt(x),x+=1):"."===K?j=!1:(K="",x-=1);w>x&&U.test(t.charAt(x));)K+=t.charAt(x),x+=1,j&&w>x&&"."===t.charAt(x)?(K+=t.charAt(x),x+=1,j=!1):D&&w>x&&/[Ee]/.test(t.charAt(x))&&(K+=t.charAt(x),x+=1,w>x&&/[+-]/.test(t.charAt(x))&&(K+=t.charAt(x),x+=1),D=!1,j=!1);return[K,"TK_WORD"]}if(n(t.charCodeAt(x-1))){if(w>x)for(;a(t.charCodeAt(x))&&(K+=t.charAt(x),x+=1,x!==w););return"TK_DOT"===S.type||"TK_RESERVED"===S.type&&o(S.text,["set","get"])||!o(K,E)?[K,"TK_WORD"]:"in"===K?[K,"TK_OPERATOR"]:[K,"TK_RESERVED"]}if("("===K||"["===K)return[K,"TK_START_EXPR"];if(")"===K||"]"===K)return[K,"TK_END_EXPR"];if("{"===K)return[K,"TK_START_BLOCK"];if("}"===K)return[K,"TK_END_BLOCK"];if(";"===K)return[K,"TK_SEMICOLON"];if("/"===K){var L,C="";if("*"===t.charAt(x)){x+=1,k.lastIndex=x,L=k.exec(t),C="/*"+L[0],x+=L[0].length;var N=r(C);return N&&"start"===N.ignore&&(O.lastIndex=x,L=O.exec(t),C+=L[0],x+=L[0].length),C=C.replace(acorn.allLineBreaks,"\n"),[C,"TK_BLOCK_COMMENT",N]}if("/"===t.charAt(x))return x+=1,T.lastIndex=x,L=T.exec(t),C="//"+L[0],x+=L[0].length,[C,"TK_COMMENT"]}var M=/^<([-a-zA-Z:0-9_.]+|{.+?}|!\[CDATA\[[\s\S]*?\]\])(\s+{.+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{.+?}))*\s*(\/?)\s*>/;if("`"===K||"'"===K||'"'===K||("/"===K||i.e4x&&"<"===K&&t.slice(x-1).match(M))&&("TK_RESERVED"===S.type&&o(S.text,["return","case","throw","else","do","typeof","yield"])||"TK_END_EXPR"===S.type&&")"===S.text&&S.parent&&"TK_RESERVED"===S.parent.type&&o(S.parent.text,["if","while","for"])||o(S.type,["TK_COMMENT","TK_START_EXPR","TK_START_BLOCK","TK_END_BLOCK","TK_OPERATOR","TK_EQUALS","TK_EOF","TK_SEMICOLON","TK_COMMA"]))){var I=K,B=!1,P=!1;if(l=K,"/"===I)for(var F=!1;w>x&&(B||F||t.charAt(x)!==I)&&!e(t.charCodeAt(x));)l+=t.charAt(x),B?B=!1:(B="\\"===t.charAt(x),"["===t.charAt(x)?F=!0:"]"===t.charAt(x)&&(F=!1)),x+=1;else if(i.e4x&&"<"===I){var z=/<(\/?)([-a-zA-Z:0-9_.]+|{.+?}|!\[CDATA\[[\s\S]*?\]\])(\s+{.+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{.+?}))*\s*(\/?)\s*>/g,V=t.slice(x-1),q=z.exec(V);if(q&&0===q.index){for(var $=q[2],J=0;q;){var W=!!q[1],X=q[2],Z=!!q[q.length-1]||"![CDATA["===X.slice(0,8);if(X!==$||Z||(W?--J:++J),0>=J)break;q=z.exec(V)}var H=q?q.index+q[0].length:V.length;return V=V.slice(0,H),x+=H-1,V=V.replace(acorn.allLineBreaks,"\n"),[V,"TK_STRING"]}}else{var Q=function(n,a,i){for(var r;w>x&&(r=t.charAt(x),B||r!==n&&(a||!e(r.charCodeAt(0))));)(B||a)&&e(r.charCodeAt(0))?("\r"===r&&"\n"===t.charAt(x+1)&&(x+=1,r=t.charAt(x)),l+="\n"):l+=r,B?(("x"===r||"u"===r)&&(P=!0),B=!1):B="\\"===r,x+=1,i&&-1!==l.indexOf(i,l.length-i.length)&&("`"===n?Q("}",a,"`"):Q("`",a,"${"))};"`"===I?Q("`",!0,"${"):Q(I)}if(P&&i.unescape_strings&&(l=c(l)),w>x&&t.charAt(x)===I&&(l+=I,x+=1,"/"===I))for(;w>x&&n(t.charCodeAt(x));)l+=t.charAt(x),x+=1;return[l,"TK_STRING"]}if("#"===K){if(0===y.length&&"!"===t.charAt(x)){for(l=K;w>x&&"\n"!==K;)K=t.charAt(x),l+=K,x+=1;return[s(l)+"\n","TK_UNKNOWN"]}var G="#";if(w>x&&u.test(t.charAt(x))){do K=t.charAt(x),G+=K,x+=1;while(w>x&&"#"!==K&&"="!==K);return"#"===K||("["===t.charAt(x)&&"]"===t.charAt(x+1)?(G+="[]",x+=2):"{"===t.charAt(x)&&"}"===t.charAt(x+1)&&(G+="{}",x+=2)),[G,"TK_WORD"]}}if("<"===K&&("?"===t.charAt(x)||"%"===t.charAt(x))){R.lastIndex=x-1;var Y=R.exec(t);if(Y)return K=Y[0],x+=K.length-1,K=K.replace(acorn.allLineBreaks,"\n"),[K,"TK_STRING"]}if("<"===K&&"<!--"===t.substring(x-1,x+3)){for(x+=3,K="<!--";!e(t.charCodeAt(x))&&w>x;)K+=t.charAt(x),x++;return v=!0,[K,"TK_COMMENT"]}if("-"===K&&v&&"-->"===t.substring(x-1,x+2))return v=!1,x+=2,["-->","TK_COMMENT"];if("."===K)return[K,"TK_DOT"];if(o(K,m)){for(;w>x&&o(K+t.charAt(x),m)&&(K+=t.charAt(x),x+=1,!(x>=w)););return","===K?[K,"TK_COMMA"]:"="===K?[K,"TK_EQUALS"]:[K,"TK_OPERATOR"]}return[K,"TK_UNKNOWN"]}function c(e){for(var t,n=!1,a="",i=0,r="",o=0;n||i<e.length;)if(t=e.charAt(i),i++,n){if(n=!1,"x"===t)r=e.substr(i,2),i+=2;else{if("u"!==t){a+="\\"+t;continue}r=e.substr(i,4),i+=4}if(!r.match(/^[0123456789abcdefABCDEF]+$/))return e;if(o=parseInt(r,16),o>=0&&32>o){a+="x"===t?"\\x"+r:"\\u"+r;continue}if(34===o||39===o||92===o)a+="\\"+String.fromCharCode(o);else{if("x"===t&&o>126&&255>=o)return e;a+=String.fromCharCode(o)}}else"\\"===t?n=!0:a+=t;return a}var d="\n\r	 ".split(""),u=/[0-9]/,f=/[01]/,p=/[01234567]/,h=/[0123456789abcdefABCDEF]/;this.positionable_operators="!= !== % & && * ** + - / : < << <= == === > >= >> >>> ? ^ | ||".split(" ");var m=this.positionable_operators.concat("! %= &= *= **= ++ += , -- -= /= :: <<= = => >>= >>>= ^= |= ~".split(" "));this.line_starters="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(",");var _,g,v,y,x,w,E=this.line_starters.concat(["do","in","else","get","set","new","catch","finally","typeof","yield","async","await","from","as"]),k=/([\s\S]*?)((?:\*\/)|$)/g,T=/([^\n\r\u2028\u2029]*)/g,A=/\/\* beautify( \w+[:]\w+)+ \*\//g,S=/ (\w+)[:](\w+)/g,O=/([\s\S]*?)((?:\/\*\sbeautify\signore:end\s\*\/)|$)/g,R=/((<\?php|<\?=)[\s\S]*?\?>)|(<%[\s\S]*?%>)/g;this.tokenize=function(){w=t.length,x=0,v=!1,y=[];for(var e,n,a,i=null,r=[],o=[];!n||"TK_EOF"!==n.type;){for(a=l(),e=new b(a[1],a[0],_,g);"TK_COMMENT"===e.type||"TK_BLOCK_COMMENT"===e.type||"TK_UNKNOWN"===e.type;)"TK_BLOCK_COMMENT"===e.type&&(e.directives=a[2]),o.push(e),a=l(),e=new b(a[1],a[0],_,g);o.length&&(e.comments_before=o,o=[]),"TK_START_BLOCK"===e.type||"TK_START_EXPR"===e.type?(e.parent=n,r.push(i),i=e):("TK_END_BLOCK"===e.type||"TK_END_EXPR"===e.type)&&i&&("]"===e.text&&"["===i.text||")"===e.text&&"("===i.text||"}"===e.text&&"{"===i.text)&&(e.parent=i.parent,e.opened=i,i=r.pop()),y.push(e),n=e}return y}}var h={before_newline:"before-newline",after_newline:"after-newline",preserve_newline:"preserve-newline"},m=[h.before_newline,h.preserve_newline],_={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"},b=function(e,t,n,a,i){this.type=e,this.text=t,this.comments_before=[],this.newlines=n||0,this.wanted_newline=n>0,this.whitespace_before=a||"",this.parent=i||null,this.opened=null,this.directives=null},g=new d(t,i);return g.beautify()}var r=/\r\n?|\n|\u2028|\u2029/,o="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠ-ࢴऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿕ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞭꞰ-ꞷꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭥꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ﬀ-ﬆﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼＡ-Ｚａ-ｚｦ-ﾾￂ-ￇￊ-ￏￒ-ￗￚ-ￜ",s="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣣ-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఃా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഁ-ഃാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ංඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ູົຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭ᳲ-᳴᳸᳹᷀-᷵᷼-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-꣄꣐-꣙꣠-꣱꤀-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏０-９＿",l=new RegExp("["+o+"]"),c=new RegExp("["+o+s+"]"),d=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,17,26,6,37,11,29,3,35,5,7,2,4,43,157,99,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,26,45,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,785,52,76,44,33,24,27,35,42,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,287,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,86,25,391,63,32,0,449,56,1288,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,881,68,12,0,67,12,16481,1,3071,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,4149,196,1340,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42710,42,4148,12,221,3,5761,10591,541],u=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,1306,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,52,0,13,2,49,13,10,2,4,9,83,11,168,11,6,9,7,3,57,0,2,6,3,1,3,2,10,0,11,1,3,6,4,4,316,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,423,9,20855,9,135,4,60,6,26,9,1016,45,17,3,19723,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,3617,6,792618,239];return Object.values||(Object.values=function(e){if(e!==Object(e))throw new TypeError("Object.values called on a non-object");var t,n=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.push(e[t]);return n}),{js_beautify:i}}),define("plugins/languages/json/jsonFormatter",["orion/Deferred","plugins/languages/json/beautifier"],function(e,t){function n(){i.setDefaults()}function a(e,n,a){return e.getSelection().then(function(i){var r=i.start,o=i.end;return o!==r?e.getText(r,o).then(function(i){var s=t.js_beautify(i,a);return s?n.resolve(e.setText(s,r,o)):n.reject(),n}):e.getText().then(function(i){var r=t.js_beautify(i,a);return r?n.resolve(e.setText(r)):n.reject(),n})})}var i={defaults:{indent_char:" ",preserve_newlines:!0,indent_level:0,indent_size:4,eol:"\n",wrap_line_length:0,end_with_newline:!1},setOption:function(e,t,n){if(Array.isArray(this.rules[e])){var a=this.rules[e];n?(a[1]=a[1]||{},a[1][n]=t):a[0]=t}else this.rules[e]=t},setDefaults:function(){this.rules=Object.create(null);for(var e=Object.keys(this.defaults),t=0;t<e.length;t++){var n=e[t];this.rules[n]=this.defaults[n]}}};return n.prototype.format=function(t){var n=new e;return a(t,n,i.rules),n},n.prototype.updated=function(e){if(e){var t,n,a,r,o="json.config.format"===e.pid,s=Object.keys(e);for(t=0;t<s.length;t++)n=s[t],r=n,n=n.replace(/^json_/,""),a=n,o&&i.rules[n]!==i.defaults[n]||i.setOption(a,e[r])}},n}),define("plugins/languages/json/nls/messages",["module"],function(e){var t=e.config();return t&&t.root?t:{root:!0}}),define("plugins/languages/json/nls/root/messages",{pluginName:"Orion JSON Support",pluginDescription:"This plugin provides JSON support for Orion.",jsonFormatter:"Orion JSON formatting support",jsonFormattingOptions:"Formatting Settings for JSON",jsonFormatting:"JSON Formatting",indentation_space:"space",indentation_tab:"tab",json_indent_char:"Indentation character:",json_indent_size:"Indentation size:",indentation_unix:"Unix",indentation_mac:"Mac",indentation_windows:"Windows",json_eol:"Character(s) to use as line terminators:",json_end_with_newline:"End ouput with newline:"}),define("plugins/languages/json/jsonPlugin",["orion/plugin","orion/editor/stylers/application_json/syntax","orion/editor/stylers/application_schema_json/syntax","plugins/languages/json/validator","plugins/languages/json/jsonFormatter","i18n!plugins/languages/json/nls/messages"],function(e,t,n,a,i,r){function o(e){e.registerService("orion.core.contenttype",{},{contentTypes:[{id:"application/json","extends":"text/plain",name:"JSON",extension:["json"],imageClass:"file-sprite-javascript modelDecorationSprite"}]}),e.registerService(["orion.edit.validator"],new a,{contentType:["application/json"]});var o=new i;e.registerServiceProvider("orion.edit.format",o,{contentType:["application/json"],id:"orion.format.json.formatter",name:r.jsonFormatter}),e.registerService("orion.cm.managedservice",o,{pid:"json.config.format"});var s=" ",l="	",c=[{label:r.indentation_space,value:s},{label:r.indentation_tab,value:l}],d="\n",u="\r",f="\n\r",p=[{label:r.indentation_unix,value:d},{label:r.indentation_mac,value:u},{label:r.indentation_windows,value:f}];e.registerServiceProvider("orion.core.setting",{},{settings:[{pid:"json.config.format",name:r.jsonFormattingOptions,tags:"beautify json formatting".split(" "),category:"jsonFormatting",categoryLabel:r.jsonFormatting,properties:[{id:"json_indent_size",name:r.json_indent_size,type:"number",defaultValue:4},{id:"json_indent_char",name:r.json_indent_char,type:"string",defaultValue:s,options:c},{id:"json_eol",name:r.json_eol,type:"string",defaultValue:d,options:p},{id:"json_end_with_newline",name:r.json_end_with_newline,type:"boolean",defaultValue:!1}]}]});var h={};t.grammars.forEach(function(e){h[e.id]=e}),n.grammars.forEach(function(e){h[e.id]=e});for(var m in h)h.hasOwnProperty(m)&&e.registerService("orion.edit.highlighter",{},h[m])}return{connect:function(){var t={name:r.pluginName,version:"1.0",description:r.pluginDescription},n=new e(t);o(n),n.connect()},registerServiceProviders:o}});