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

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

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

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

 Contributors:
 IBM Corporation - initial API and implementation
*/
(function(){var n=this;if(!n.define)n.define=function(z){n.orion=n.orion||{};n.orion.PluginProvider=z();n.eclipse=n.orion;delete n.define}})();
define("orion/plugin",[],function(){return function(n){function z(c){p&&(typeof ArrayBuffer==="undefined"&&(c=JSON.stringify(c)),p===self?p.postMessage(c):p.postMessage(c,"*"))}function F(c,b){return b&&b instanceof XMLHttpRequest?{status:b.status,statusText:b.statusText}:b}function A(c){return function(b){h&&z({serviceId:c,method:"dispatchEvent",params:[b]})}}function B(c){if(c.source===p){var b=typeof c.data!=="string"?c.data:JSON.parse(c.data);if(typeof b.cancel==="string"){var h=s[b.id];h&&(delete s[b.id],
h.cancel&&h.cancel(b.cancel))}else{var c=b.serviceId,k=b.method,v=b.params,w=i[c],B=w.implementation,x=B[k];k==="addEventListener"?(k=v[0],w.listeners[k]=w.listeners[k]||A(c),v=[k,w.listeners[k]]):k==="removeEventListener"&&(k=v[0],v=[k,w.listeners[k]],delete w.listeners[k]);var n={id:b.id,result:null,error:null};try{(h=x.apply(B,v))&&typeof h.then==="function"?(s[b.id]=h,h.then(function(c){delete s[b.id];n.result=c;z(n)},function(c){if(s[b.id])delete s[b.id],n.error=c?JSON.parse(JSON.stringify(c,
F)):c,z(n)},function(){z({requestId:b.id,method:"progress",params:Array.prototype.slice.call(arguments)})})):(n.result=h,z(n))}catch(J){n.error=J?JSON.parse(JSON.stringify(J,F)):J,z(n)}}}}var c=n,i=[],h=!1,s={},p=null;this.updateHeaders=function(i){if(h)throw Error("Cannot update headers. Plugin Provider is connected");c=i};this.registerServiceProvider=this.registerService=function(c,b,r){if(h)throw Error("Cannot register service. Plugin Provider is connected");typeof c==="string"?c=[c]:Array.isArray(c)||
(c=[]);var p=null,s=[];for(p in b)typeof b[p]==="function"&&s.push(p);i[i.length]={names:c,methods:s,implementation:b,properties:r||{},listeners:{}}};this.connect=function(l,b){if(!h){if(typeof window==="undefined")p=self;else if(window!==window.parent)p=window.parent;else if(window.opener!==null)p=window.opener;else{b&&b("No valid plugin target");return}addEventListener("message",B,!1);for(var r=[],k=0;k<i.length;k++)r.push({serviceId:k,names:i[k].names,methods:i[k].methods,properties:i[k].properties});
z({method:"plugin",params:[{headers:c||{},services:r}]});h=!0}l&&l()};this.disconnect=function(){h&&(removeEventListener("message",B),p=null,h=!1)}}});if(!this.JSON)this.JSON={};
(function(){function n(c){return c<10?"0"+c:c}function z(c){B.lastIndex=0;return B.test(c)?'"'+c.replace(B,function(c){var b=h[c];return typeof b==="string"?b:"\\u"+("0000"+c.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+c+'"'}function F(h,l){var b,r,k,v,w=c,n,x=l[h];x&&typeof x==="object"&&typeof x.toJSON==="function"&&(x=x.toJSON(h));typeof s==="function"&&(x=s.call(l,h,x));switch(typeof x){case "string":return z(x);case "number":return isFinite(x)?String(x):"null";case "boolean":case "null":return String(x);
case "object":if(!x)return"null";c+=i;n=[];if(Object.prototype.toString.apply(x)==="[object Array]"){v=x.length;for(b=0;b<v;b+=1)n[b]=F(b,x)||"null";k=n.length===0?"[]":c?"[\n"+c+n.join(",\n"+c)+"\n"+w+"]":"["+n.join(",")+"]";c=w;return k}if(s&&typeof s==="object"){v=s.length;for(b=0;b<v;b+=1)r=s[b],typeof r==="string"&&(k=F(r,x))&&n.push(z(r)+(c?": ":":")+k)}else for(r in x)Object.hasOwnProperty.call(x,r)&&(k=F(r,x))&&n.push(z(r)+(c?": ":":")+k);k=n.length===0?"{}":c?"{\n"+c+n.join(",\n"+c)+"\n"+
w+"}":"{"+n.join(",")+"}";c=w;return k}}if(typeof Date.prototype.toJSON!=="function")Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+n(this.getUTCMonth()+1)+"-"+n(this.getUTCDate())+"T"+n(this.getUTCHours())+":"+n(this.getUTCMinutes())+":"+n(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()};var A=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
B=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,c,i,h={"\u0008":"\\b","\t":"\\t","\n":"\\n","\u000c":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},s;if(typeof JSON.stringify!=="function")JSON.stringify=function(h,l,b){var r;i=c="";if(typeof b==="number")for(r=0;r<b;r+=1)i+=" ";else typeof b==="string"&&(i=b);if((s=l)&&typeof l!=="function"&&(typeof l!=="object"||typeof l.length!=="number"))throw Error("JSON.stringify");return F("",
{"":h})};if(typeof JSON.parse!=="function")JSON.parse=function(c,h){function b(c,i){var r,p,s=c[i];if(s&&typeof s==="object")for(r in s)Object.hasOwnProperty.call(s,r)&&(p=b(s,r),p!==void 0?s[r]=p:delete s[r]);return h.call(c,i,s)}var i,c=String(c);A.lastIndex=0;A.test(c)&&(c=c.replace(A,function(c){return"\\u"+("0000"+c.charCodeAt(0).toString(16)).slice(-4)}));if(/^[\],:{}\s]*$/.test(c.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return i=eval("("+c+")"),typeof h==="function"?b({"":i},""):i;throw new SyntaxError("JSON.parse");}})();
var JSLINT=function(){function n(){}function z(a,g){return Object.prototype.hasOwnProperty.call(a,g)}function F(a,g){for(var d in g)z(g,d)&&(a[d]=g[d])}function A(){j.safe||(j.rhino&&F(D,ob),j.devel&&F(D,pb),j.browser&&F(D,qb),j.windows&&F(D,rb),j.widget&&F(D,sb))}function B(a,g,d){throw{name:"JSLintError",line:g,character:d,message:a+" ("+Math.floor(g/la.length*100)+"% scanned)."};}function c(e,g,d,c,b,m){var h,g=g||a;g.id==="(end)"&&(g=f);h=g.line||0;g=g.from||0;d={id:"(error)",raw:e,evidence:la[h-
1]||"",line:h,character:g,a:d,b:c,c:b,d:m};d.reason=e.supplant(d);JSLINT.errors.push(d);j.passfail&&B("Stopping. ",h,g);Ha+=1;Ha>=j.maxerr&&B("Too many errors.",h,g);return d}function i(a,g,d,b,f,m,j){return c(a,{line:g,from:d},b,f,m,j)}function h(a,g,d,b,f,m){a=c(a,g,d,b,f,m);B("Stopping, unable to continue.",a.line,a.character)}function s(a,g,d,c,b,f,j){return h(a,{line:g,from:d},c,b,f,j)}function p(e,g){j.safe&&t["(global)"]&&typeof D[e]!=="boolean"?c("ADsafe global: "+e+".",f):e==="hasOwnProperty"&&
c("'hasOwnProperty' is a really bad name.");z(t,e)&&!t["(global)"]&&c(t[e]===!0?"'{a}' was used before it was defined.":"'{a}' is already defined.",a,e);t[e]=g;t["(global)"]?(eb[e]=t,z(Z,e)&&(c("'{a}' was used before it was defined.",a,e),delete Z[e])):E[e]=t}function l(a){for(var a=a||0,g=0,d;g<=a;)(d=va[g])||(d=va[g]=S.token()),g+=1;return d}function b(e,g){switch(f.id){case "(number)":a.id==="."&&c("A dot following a number can be confused with a decimal point.",f);break;case "-":(a.id==="-"||
a.id==="--")&&c("Confusing minusses.");break;case "+":(a.id==="+"||a.id==="++")&&c("Confusing plusses.")}if(f.type==="(string)"||f.identifier)Ia=f.value;e&&a.id!==e&&(g?a.id==="(end)"?c("Unmatched '{a}'.",g,g.id):c("Expected '{a}' to match '{b}' from line {c} and instead saw '{d}'.",a,e,g.id,g.line,a.value):(a.type!=="(identifier)"||a.value!==e)&&c("Expected '{a}' and instead saw '{b}'.",a,e,a.value));K=f;for(f=a;;){a=va.shift()||S.token();if(a.id==="(end)"||a.id==="(error)")break;if(a.type==="special"){var d=
void 0,b=void 0,ua=void 0,m=a.value,i=d=void 0;switch(m){case "*/":h("Unbegun comment.");break;case "/*members":case "/*member":m="/*members";ba||(ba={});b=ba;break;case "/*jslint":j.safe&&c("ADsafe restriction.");b=j;ua=tb;break;case "/*global":j.safe&&c("ADsafe restriction."),b=D}d=S.token();a:for(;;){for(;;){if(d.type==="special"&&d.value==="*/")break a;if(d.id!=="(endline)"&&d.id!==",")break;d=S.token()}d.type!=="(string)"&&d.type!=="(identifier)"&&m!=="/*members"&&h("Bad option.",d);i=S.token();
i.id===":"?(i=S.token(),b===ba&&h("Expected '{a}' and instead saw '{b}'.",d,"*/",":"),d.value==="indent"&&m==="/*jslint"?(d=+i.value,(typeof d!=="number"||!isFinite(d)||d<=0||Math.floor(d)!==d)&&h("Expected a small integer and instead saw '{a}'.",i,i.value),b.white=!0,b.indent=d):d.value==="maxerr"&&m==="/*jslint"?(d=+i.value,(typeof d!=="number"||!isFinite(d)||d<=0||Math.floor(d)!==d)&&h("Expected a small integer and instead saw '{a}'.",i,i.value),b.maxerr=d):d.value==="maxlen"&&m==="/*jslint"?(d=
+i.value,(typeof d!=="number"||!isFinite(d)||d<=0||Math.floor(d)!==d)&&h("Expected a small integer and instead saw '{a}'.",i,i.value),b.maxlen=d):i.value==="true"?b[d.value]=!0:i.value==="false"?b[d.value]=!1:h("Bad option value.",i),d=S.token()):(m==="/*jslint"&&h("Missing option value.",d),b[d.value]=!1,d=i)}ua&&A()}else if(a.id!=="(endline)")break}}function r(e,g){var d;a.id==="(end)"&&h("Unexpected early end of program.",f);b();j.safe&&typeof D[f.value]==="boolean"&&a.id!=="("&&a.id!=="."&&c("ADsafe violation.",
f);if(g)Ia="anonymous",t["(verb)"]=f.value;if(g===!0&&f.fud)d=f.fud();else{if(f.nud)d=f.nud();else if(a.type==="(number)"&&f.id===".")return c("A leading decimal point can be confused with a dot: '.{a}'.",f,a.value),b(),f;else h("Expected an identifier and instead saw '{a}'.",f,f.id);for(;e<a.lbp;)b(),f.led?d=f.led(d):h("Expected an operator and instead saw '{a}'.",f,f.id)}return d}function k(e,g){e=e||f;g=g||a;(j.white||u==="styleproperty"||u==="style")&&e.character!==g.from&&e.line===g.line&&c("Unexpected space after '{a}'.",
g,e.value)}function v(e,g){e=e||f;g=g||a;j.white&&!e.comment&&e.line===g.line&&k(e,g)}function w(e,g){j.white&&(e=e||f,g=g||a,e.line===g.line&&e.character===g.from&&c("Missing space after '{a}'.",a,e.value))}function db(e,g){e=e||f;g=g||a;!j.laxbreak&&e.line!==g.line?c("Bad line breaking before '{a}'.",g,g.id):j.white&&(e=e||f,g=g||a,e.character===g.from&&c("Missing space after '{a}'.",a,e.value))}function x(e){j.white&&a.id!=="(end)"&&(e=G+(e||0),a.from!==e&&c("Expected '{a}' to have an indentation at {b} instead at {c}.",
a,a.value,e,a.from))}function X(e){e=e||f;e.line!==a.line&&c("Line breaking error '{a}'.",e,e.value)}function J(){f.line!==a.line?j.laxbreak||c("Bad line breaking before '{a}'.",f,a.id):f.character!==a.from&&j.white&&c("Unexpected space after '{a}'.",a,f.value);b(",");w(f,a)}function Y(a,g){var d=N[a];if(!d||typeof d!=="object")N[a]=d={id:a,lbp:g,value:a};return d}function H(a){return Y(a,0)}function $(a,g){var d=H(a);d.identifier=d.reserved=!0;d.fud=g;return d}function ea(a,g){var d=$(a,g);d.block=
!0;return d}function Ja(a){var g=a.id.charAt(0);if(g>="a"&&g<="z"||g>="A"&&g<="Z")a.identifier=a.reserved=!0;return a}function Q(a,g){var d=Y(a,150);Ja(d);d.nud=typeof g==="function"?g:function(){this.right=r(150);this.arity="unary";if(this.id==="++"||this.id==="--")j.plusplus?c("Unexpected use of '{a}'.",this,this.id):(!this.right.identifier||this.right.reserved)&&this.right.id!=="."&&this.right.id!=="["&&c("Bad operand.",this);return this};return d}function wa(a,g){var d=H(a);d.type=a;d.nud=g;return d}
function C(a,g){var d=wa(a,g);d.identifier=d.reserved=!0;return d}function T(a){return C(a,function(){if(this.id==="this"||this.id==="arguments"||this.id==="eval")Ka&&t["(global)"]?c("Strict violation.",this):j.safe&&c("ADsafe violation.",this);return this})}function L(e,g,d,b){e=Y(e,d);Ja(e);e.led=function(e){b||(db(K,f),w(f,a));return typeof g==="function"?g(e,this):(this.left=e,this.right=r(d),this)};return e}function aa(e,g){var d=Y(e,100);d.led=function(e){db(K,f);w(f,a);var d=r(100);e&&e.id===
"NaN"||d&&d.id==="NaN"?c("Use the isNaN function to compare with NaN.",this):g&&g.apply(this,[e,d]);e.id==="!"&&c("Confusing use of '{a}'.",e,"!");d.id==="!"&&c("Confusing use of '{a}'.",e,"!");this.left=e;this.right=d;return this};return d}function xa(a){return a&&(a.type==="(number)"&&+a.value===0||a.type==="(string)"&&a.value===" "||a.type==="true"||a.type==="false"||a.type==="undefined"||a.type==="null")}function fa(a){Y(a,20).exps=!0;return L(a,function(a,e){var b;e.left=a;D[a.value]===!1&&E[a.value]["(global)"]===
!0&&c("Read only.",a);if(j.safe){b=a;do typeof D[b.value]==="boolean"&&c("ADsafe violation.",b),b=b.left;while(b)}if(a){if(a.id==="."||a.id==="[")return(!a.left||a.left.value==="arguments")&&c("Bad assignment.",e),e.right=r(19),e;else if(a.identifier&&!a.reserved)return t[a.value]==="exception"&&c("Do not assign to the exception parameter.",a),e.right=r(19),e;a===N["function"]&&c("Expected an identifier in an assignment and instead saw a function invocation.",f)}h("Bad assignment.",e)},20)}function ga(a,
g,d){a=Y(a,d);Ja(a);a.led=typeof g==="function"?g:function(a){j.bitwise&&c("Unexpected use of '{a}'.",this,this.id);this.left=a;this.right=r(d);return this};return a}function ha(e){Y(e,20).exps=!0;return L(e,function(e,d){j.bitwise&&c("Unexpected use of '{a}'.",d,d.id);w(K,f);w(f,a);if(e){if(e.id==="."||e.id==="["||e.identifier&&!e.reserved)return r(19),d;e===N["function"]&&c("Expected an identifier in an assignment, and instead saw a function invocation.",f);return d}h("Bad assignment.",d)},20)}
function fb(a){a=Y(a,150);a.led=function(a){j.plusplus?c("Unexpected use of '{a}'.",this,this.id):(!a.identifier||a.reserved)&&a.id!=="."&&a.id!=="["&&c("Bad operand.",this);this.left=a;return this};return a}function La(){if(a.identifier)return b(),j.safe&&Ma[f.value]?c("ADsafe violation: '{a}'.",f,f.value):f.reserved&&c("Expected an identifier and instead saw '{a}' (a reserved word).",f,f.id),f.value}function ma(){var e=La();if(e)return e;f.id==="function"&&a.id==="("?c("Missing name in function statement."):
h("Expected an identifier and instead saw '{a}'.",a,a.value)}function ya(e){var b=0,d;if(!(a.id!==";"||Na))for(;;){d=l(b);if(d.reach)break;if(d.id!=="(endline)"){if(d.id==="function"){c("Inner functions should be listed at the top of the outer function.",d);break}c("Unreachable '{a}' after '{b}'.",d,d.value,e);break}b+=1}}function Oa(e){var g=G,d=E,M=a;if(M.id===";")c("Unnecessary semicolon.",M),b(";");else{if(M.identifier&&!M.reserved&&l().id===":")b(),b(":"),E=Object.create(d),p(M.value,"label"),
a.labelled||c("Label '{a}' on {b} statement.",a,M.value,a.value),Pa.test(M.value+":")&&c("Label '{a}' looks like a javascript url.",M,M.value),a.label=M.value,M=a;e||x();e=r(0,!0);M.block||(!e||!e.exps?c("Expected an assignment or function call and instead saw an expression.",f):e.id==="("&&e.left.id==="new"&&c("Do not use 'new' for side effects."),a.id!==";"?i("Missing semicolon.",f.line,f.from+f.value.length):(k(f,a),b(";"),w(f,a)));G=g;E=d;return e}}function gb(){return a.value==="use strict"?
(b(),b(";"),Ka=!0):!1}function na(e){var g=[],d;e&&!gb()&&j.strict&&c('Missing "use strict" statement.',a);if(j.adsafe)switch(e){case "script":ia||(a.value!=="ADSAFE"||l(0).id!=="."||l(1).value!=="id"&&l(1).value!=="go")&&h("ADsafe violation: Missing ADSAFE.id or ADSAFE.go.",a);a.value==="ADSAFE"&&l(0).id==="."&&l(1).value==="id"&&(ia&&h("ADsafe violation.",a),b("ADSAFE"),b("."),b("id"),b("("),a.value!==P&&h("ADsafe violation: id does not match.",a),b("(string)"),b(")"),b(";"),ia=!0);break;case "lib":if(a.value===
"ADSAFE")return b("ADSAFE"),b("."),b("lib"),b("("),b("(string)"),J(),e=r(0),e.id!=="function"&&h("The second argument to lib must be a function.",e),(d=(d=e.funct["(params)"])&&d.join(", "))&&d!=="lib"&&h("Expected '{a}' and instead saw '{b}'.",e,"(lib)","("+d+")"),b(")"),b(";"),g;else h("ADsafe lib violation.")}for(;!a.reach&&a.id!=="(end)";)a.id===";"?(c("Unnecessary semicolon."),b(";")):g.push(Oa());return g}function R(e){var g,d=oa,M=G,ua=E,m;oa=e;E=Object.create(E);w(f,a);m=a;if(a.id==="{"){b("{");
if(a.id!=="}"||f.line!==a.line){for(G+=j.indent;!e&&a.from>G;)G+=j.indent;e||gb();g=na();G-=j.indent;x()}b("}",m);G=M}else c("Expected '{a}' and instead saw '{b}'.",a,"{",a.value),Na=!0,g=[Oa()],Na=!1;t["(verb)"]=null;E=ua;oa=d;return g}function hb(){return this}function za(a){ba&&typeof ba[a]!=="boolean"&&c("Unexpected /*member '{a}'.",f,a);typeof ca[a]==="number"?ca[a]+=1:ca[a]=1}function Qa(a){var b=a.value,a=a.line,d=Z[b];typeof d==="function"&&(d=!1);d?d[d.length-1]!==a&&d.push(a):(d=[a],Z[b]=
d)}function Ra(){if(a.identifier)return b(),!0}function Aa(){a.id==="-"&&(b("-"),k(),X());if(a.type==="(number)")return b("(number)"),!0}function Sa(){if(a.type==="(string)")return b(),!0}function U(){var e,g,d;if(a.identifier)if(d=a.value,d==="rgb"||d==="rgba"){b();b("(");for(e=0;e<3;e+=1)e&&b(","),g=a.value,a.type!=="(number)"||g<0?(c("Expected a positive number and instead saw '{a}'",a,g),b()):(b(),a.id==="%"?(b("%"),g>100&&c("Expected a percentage and instead saw '{a}'",f,g)):g>255&&c("Expected a small number and instead saw '{a}'",
f,g));d==="rgba"&&(b(","),g=+a.value,(a.type!=="(number)"||g<0||g>1)&&c("Expected a number between 0 and 1 and instead saw '{a}'",a,g),b(),a.id==="%"&&(c("Unexpected '%'."),b("%")));b(")");return!0}else{if(ub[a.value]===!0)return b(),!0}else if(a.type==="(color)")return b(),!0;return!1}function y(){a.id==="-"&&(b("-"),k(),X());return a.type==="(number)"?(b(),a.type!=="(string)"&&ib[a.value]===!0?(k(),b()):+f.value!==0&&c("Expected a linear unit and instead saw '{a}'.",a,a.value),!0):!1}function ja(){if(a.identifier)switch(a.value){case "thin":case "medium":case "thick":return b(),
!0}else return y()}function pa(){if(a.identifier){if(a.value==="auto")return b(),!0}else return y()}function da(){var e,g;if(a.identifier&&a.value==="url"){a=S.range("(",")");g=a.value;e=g.charAt(0);if(e==='"'||e==="'")g.slice(-1)!==e?c("Bad url string."):(g=g.slice(1,-1),g.indexOf(e)>=0&&c("Bad url string."));g||c("Missing url.");b();j.safe&&jb.test(g)&&h("ADsafe URL violation.");qa.push(g);return!0}return!1}function Ta(e){var g=0,d,c,f,m=0;switch(typeof e){case "function":return e();case "string":return a.identifier&&
a.value===e?(b(),!0):!1}for(;;){if(g>=e.length)return!1;f=e[g];g+=1;if(f===!0)break;else typeof f==="number"?(d=f,f=e[g],g+=1):d=1;for(c=!1;d>0;)if(Ta(f))c=!0,d-=1;else break;if(c)return!0}m=g;for(d=[];;){f=!1;for(g=m;g<e.length;g+=1)if(!d[g]&&Ta(Ba[e[g]])){f=c=!0;d[g]=!0;break}if(!f)return c}}function kb(){for(var e;;){if(a.id==="}"||a.id==="(end)"||O&&a.id===O)break;for(;a.id===";";)c("Misplaced ';'."),b(";");for(e=void 0;a.id==="*"||a.id==="#"||a.value==="_";)j.css||c("Unexpected '{a}'.",a,a.value),
b();a.id==="-"?(j.css||c("Unexpected '{a}'.",a,a.value),b("-"),a.identifier||c("Expected a non-standard style attribute and instead saw '{a}'.",a,a.value),b(),e=Ua):(a.identifier?z(Ba,a.value)?e=Ba[a.value]:(e=Ua,j.css||c("Unrecognized style attribute '{a}'.",a,a.value)):c("Excepted a style attribute, and instead saw '{a}'.",a,a.value),b());b(":");a.identifier&&a.value==="inherit"?b():Ta(e)||(c("Unexpected token '{a}'.",a,a.value),b());a.id==="!"&&(b("!"),k(),a.identifier&&a.value==="important"?b():
c("Expected '{a}' and instead saw '{b}'.",a,"important",a.value));a.id==="}"||a.id===O?c("Missing '{a}'.",a,";"):b(";")}}function Va(){if(a.identifier)z(Wa,a.value)||c("Expected a tagName, and instead saw {a}.",a,a.value),b();else switch(a.id){case ">":case "+":b();Va();break;case ":":b(":");switch(a.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":b();
break;case "lang":b();b("(");a.identifier||c("Expected a lang code, and instead saw :{a}.",a,a.value);b(")");break;case "nth-child":case "nth-last-child":case "nth-last-of-type":case "nth-of-type":b();b("(");a:if(a.id==="(number)")b(),a.value==="n"&&a.identifier&&(k(),b(),a.id==="+"&&(k(),b("+"),k(),b("(number)")));else{switch(a.value){case "odd":case "even":if(a.identifier){b();break a}}c("Unexpected token '{a}'.",a,a.value)}b(")");break;case "not":b();b("(");a.id===":"&&l(0).value==="not"&&c("Nested not.");
Va();b(")");break;default:c("Expected a pseudo, and instead saw :{a}.",a,a.value)}break;case "#":b("#");a.identifier||c("Expected an id, and instead saw #{a}.",a,a.value);b();break;case "*":b("*");break;case ".":b(".");a.identifier||c("Expected a class, and instead saw #.{a}.",a,a.value);b();break;case "[":b("[");a.identifier||c("Expected an attribute, and instead saw [{a}].",a,a.value);b();if(a.id==="="||a.value==="~="||a.value==="$="||a.value==="|="||a.id==="*="||a.id==="^=")b(),a.type!=="(string)"&&
c("Expected a string, and instead saw {a}.",a,a.value),b();b("]");break;default:h("Expected a CSS selector, and instead saw {a}.",a,a.value)}}function lb(){for(var e;a.id==="@";)if(e=l(),e.identifier&&e.value==="import")b("@"),b(),da()||(c("Expected '{a}' and instead saw '{b}'.",a,"url",a.value),b()),b(";");else break;for(;a.id!=="</"&&a.id!=="(end)";){a:{e=void 0;if(a.id==="{")c("Expected a style pattern, and instead saw '{a}'.",a,a.id);else if(a.id==="@"){b("@");e=a.value;if(a.identifier&&vb[e]===
!0){b();break a}c("Expected an at-rule, and instead saw @{a}.",a,e)}for(;;){Va();if(a.id==="</"||a.id==="{"||a.id==="(end)")break a;a.id===","&&J()}}u="styleproperty";a.id===";"?b(";"):(b("{"),kb(),u="style",b("}"))}}function Xa(){var e=La(!0);if(!e)a.id==="(string)"?(e=a.value,b()):a.id==="(number)"&&(e=a.value.toString(),b());return e}function Ca(e){var g,d=E;E=Object.create(d);g=t={"(name)":e||'"'+Ia+'"',"(line)":a.line,"(context)":t,"(breakage)":0,"(loopage)":0,"(scope)":E};f.funct=t;ra.push(t);
e&&p(e,"function");var e=t,c;a:{var j,m=a,h=[];b("(");v();if(a.id===")")b(")"),v(K,f),c=void 0;else for(;;)if(j=ma(),h.push(j),p(j,"parameter"),a.id===",")J();else{b(")",m);v(K,f);c=h;break a}}e["(params)"]=c;R(!1);E=d;t["(last)"]=f.line;t=t["(context)"];return g}function Ya(e){var g,d;t["(onevar)"]&&j.onevar?c("Too many var statements."):t["(global)"]||(t["(onevar)"]=!0);for(this.first=[];;){w(f,a);g=ma();t["(global)"]&&D[g]===!1&&c("Redefinition of '{a}'.",f,g);p(g,"unused");if(e)break;d=f;this.first.push(f);
if(a.id==="=")w(f,a),b("="),w(f,a),a.id==="undefined"&&c("It is not necessary to initialize '{a}' to 'undefined'.",f,g),l(0).id==="="&&a.identifier&&h("Variable {a} was not declared correctly.",a,a.value),g=r(0),d.first=g;if(a.id!==",")break;J()}return this}function Za(){function e(){var e={},g=a;b("{");if(a.id!=="}")for(;;){if(a.id==="(end)")h("Missing '}' to match '{' from line {a}.",a,g.line);else if(a.id==="}"){c("Unexpected comma.",f);break}else a.id===","?h("Unexpected comma.",a):a.id!=="(string)"&&
c("Expected a string and instead saw {a}.",a,a.value);e[a.value]===!0?c("Duplicate key '{a}'.",a,a.value):a.value==="__proto__"?c("Stupid key '{a}'.",a,a.value):e[a.value]=!0;b();b(":");Za();if(a.id!==",")break;b(",")}b("}")}function g(){var e=a;b("[");if(a.id!=="]")for(;;){if(a.id==="(end)")h("Missing ']' to match '[' from line {a}.",a,e.line);else if(a.id==="]"){c("Unexpected comma.",f);break}else a.id===","&&h("Unexpected comma.",a);Za();if(a.id!==",")break;b(",")}b("]")}switch(a.id){case "{":e();
break;case "[":g();break;case "true":case "false":case "null":case "(number)":case "(string)":b();break;case "-":b("-");f.character!==a.from&&c("Unexpected space after '-'.",f);k(f,a);b("(number)");break;default:h("Expected a JSON value.",a)}}function mb(a){var b=[],d;for(d in a)z(a,d)&&b.push(d);return b}var P,ia,sa,Ia,Da,vb={media:!0,"font-face":!0,page:!0},wb={"<":!0,"<=":!0,"==":!0,"===":!0,"!==":!0,"!=":!0,">":!0,">=":!0,"+":!0,"-":!0,"*":!0,"/":!0,"%":!0},Ma={arguments:!0,callee:!0,caller:!0,
constructor:!0,eval:!0,prototype:!0,stack:!0,unwatch:!0,valueOf:!0,watch:!0},tb={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,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},qb={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,XMLHttpRequest:!1},Ba,Ua,ub={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},V,$a,ib={"%":!0,cm:!0,em:!0,ex:!0,"in":!0,mm:!0,pc:!0,pt:!0,px:!0},Ea,pb={alert:!1,confirm:!1,console:!1,Debug:!1,opera:!1,prompt:!1},xb={"\u0008":"\\b","\t":"\\t","\n":"\\n","\u000c":"\\f","\r":"\\r",'"':'\\"',"/":"\\/","\\":"\\\\"},t,ta="closure,exception,global,label,outer,unused,var".split(","),ra,eb,Wa={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:{}},Fa,Z,oa,G,ka,la,va,ca,ba,a,Na,j,D,ab,K,ob={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},E,rb={ActiveXObject:!1,CScript:!1,Debug:!1,Enumerator:!1,System:!1,VBArray:!1,WScript:!1},Ga,I,yb={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},zb={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},Ka,N={},bb,f,qa,Ha,sb={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},u,O,cb=/@cc|<\/?|script|\]*s\]|<\s*!|&lt/i,Ab=/[\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/,
Bb=/^\s*([(){}\[.,:;'"~\?\]#@]|==?=?|\/(\*(jslint|members?|global)?|=|\/)?|\*[\/=]?|\+[+=]?|-[\-=]?|%=?|&[&=]?|\|[|=]?|>>?>?=?|<([\/=!]|\!(\[|--)?|<=?)?|\^=?|\!=?=?|[a-zA-Z_$][a-zA-Z0-9_$]*|[0-9]+([xX][0-9a-fA-F]+|\.[0-9]*)?([eE][+\-]?[0-9]+)?)/;V=/^\s*(['"=>\/&#]|<(?:\/|\!(?:--)?)?|[a-zA-Z][a-zA-Z0-9_\-]*|[0-9]+|--)/;var Cb=/[\u0000-\u001f&<"\/\\\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/,Db=/[\u0000-\u001f&<"\/\\\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
Eb=/[>&]|<[\/!]?|--/,Fb=/\*\/|\/\*/,nb=/^([a-zA-Z_$][a-zA-Z0-9_$]*)$/,Pa=/^(?:javascript|jscript|ecmascript|vbscript|mocha|livescript)\s*:/i,jb=/&|\+|\u00AD|\.\.|\/\*|%[^;]|base64|url|expression|data|mailto/i,Gb=/[^a-zA-Z0-9+\-_\/ ]/,Hb=/[\[\]\/\\"'*<>.&:(){}+=#]/,Ib={outer:V,html:V,style:/^\s*([{:#%.=,>+\[\]@()"';]|\*=?|\$=|\|=|\^=|~=|[a-zA-Z_][a-zA-Z0-9_\-]*|[0-9]+|<\/|\/\*)/,styleproperty:/^\s*([@#!"'};:\-%.=,+\[\]()*_]|[a-zA-Z][a-zA-Z0-9._\-]*|\/\*?|\d+(?:\.\d+)?|<\/)/};if(typeof Object.create!==
"function")Object.create=function(a){n.prototype=a;return new n};String.prototype.entityify=function(){return this.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")};String.prototype.isAlpha=function(){return this>="a"&&this<="z\uffff"||this>="A"&&this<="Z\uffff"};String.prototype.isDigit=function(){return this>="0"&&this<="9"};String.prototype.supplant=function(a){return this.replace(/\{([^{}]*)\}/g,function(b,d){var c=a[d];return typeof c==="string"||typeof c==="number"?c:b})};String.prototype.name=
function(){return nb.test(this)?this:Cb.test(this)?'"'+this.replace(Db,function(a){var b=xb[a];return b?b:"\\u"+("0000"+a.charCodeAt().toString(16)).slice(-4)})+'"':'"'+this+'"'};var S=function(){function a(){var e;if(h>=la.length)return!1;d=1;m=la[h];h+=1;e=m.search(/ \t/);e>=0&&i("Mixed spaces and tabs.",h,e+1);m=m.replace(/\t/g,bb);e=m.search(Ab);e>=0&&i("Unsafe character.",h,e);j.maxlen&&j.maxlen<m.length&&i("Line too long.",h,m.length);return!0}function b(a,e){var g,f;f=a==="(color)"?{type:a}:
a==="(punctuator)"||a==="(identifier)"&&z(N,e)?N[e]||N["(error)"]:N[a];f=Object.create(f);(a==="(string)"||a==="(range)")&&Pa.test(e)&&i("Script URL.",h,c);if(a==="(identifier)")f.identifier=!0,e==="__iterator__"||e==="__proto__"?s("Reserved name '{a}'.",h,c,e):j.nomen&&(e.charAt(0)==="_"||e.charAt(e.length-1)==="_")&&i("Unexpected {a} in '{b}'.",h,c,"dangling '_'",e);f.value=e;f.line=h;f.character=d;f.from=c;g=f.id;g!=="(endline)"&&(ab=g&&("(,=:[!&|?{};".indexOf(g.charAt(g.length-1))>=0||g==="return"));
return f}var d,c,h,m;return{init:function(d){la=typeof d==="string"?d.replace(/\r\n/g,"\n").replace(/\r/g,"\n").split("\n"):d;h=0;a();c=1},range:function(a,e){var f,j="";c=d;for(m.charAt(0)!==a&&s("Expected '{a}' and instead saw '{b}'.",h,d,a,m.charAt(0));;){m=m.slice(1);d+=1;f=m.charAt(0);switch(f){case "":s("Missing '{a}'.",h,d,f);break;case e:return m=m.slice(1),d+=1,b("(range)",j);case O:case "\\":i("Unexpected '{a}'.",h,d,f)}j+=f}},token:function(){function r(a){if(a=a.exec(m))return q=a[0].length,
a=a[1],o=a.charAt(0),m=m.substr(q),c=d+q-a.length,d+=q,a}function t(f){function r(a){var e=parseInt(m.substr(k+1,a),16);k+=a;e>=32&&e<=126&&e!==34&&e!==92&&e!==39&&i("Unnecessary escapement.",h,d);d+=a;o=String.fromCharCode(e)}var o,k,q="";ka&&f!=='"'&&i("Strings must use doublequote.",h,d);if(O===f||u==="scriptstring"&&!O)return b("(punctuator)",f);for(k=0;;){for(;k>=m.length;)k=0,(u!=="html"||!a())&&s("Unclosed string.",h,c);o=m.charAt(k);if(o===f)return d+=1,m=m.substr(k+1),b("(string)",q,f);if(o<
" "){if(o==="\n"||o==="\r")break;i("Control character in string: {a}.",h,d+k,m.slice(0,k))}else if(o===O)i("Bad HTML string",h,d+k);else if(o==="<")j.safe&&u==="html"?i("ADsafe string violation.",h,d+k):m.charAt(k+1)==="/"&&(u||j.safe)?i("Expected '<\\/' and instead saw '</'.",h,d):m.charAt(k+1)==="!"&&(u||j.safe)&&i("Unexpected '<!' in a string.",h,d);else if(o==="\\")if(u==="html")j.safe&&i("ADsafe string violation.",h,d+k);else if(u==="styleproperty")k+=1,d+=1,o=m.charAt(k),o!==f&&i("Escapement in style string.",
h,d+k);else switch(k+=1,d+=1,o=m.charAt(k),o){case O:i("Bad HTML string",h,d+k);break;case "\\":case "'":case '"':case "/":break;case "b":o="\u0008";break;case "f":o="\u000c";break;case "n":o="\n";break;case "r":o="\r";break;case "t":o="\t";break;case "u":r(4);break;case "v":o="\u000b";break;case "x":ka&&i("Avoid \\x-.",h,d);r(2);break;default:i("Bad escapement.",h,d)}q+=o;d+=1;k+=1}}for(var p,o,k,l,q,n;;){if(!m)return b(a()?"(endline)":"(end)","");for(;u==="outer";)if(l=m.search(Eb),l===0)break;
else if(l>0){d+=1;m=m.slice(l);break}else if(!a())return b("(end)","");if(k=r(Ib[u]||Bb)){if(o.isAlpha()||o==="_"||o==="$")return b("(identifier)",k);if(o.isDigit())return u!=="style"&&!isFinite(Number(k))&&i("Bad number '{a}'.",h,d,k),u!=="style"&&u!=="styleproperty"&&m.substr(0,1).isAlpha()&&i("Missing space after '{a}'.",h,d,k),o==="0"&&(l=k.substr(1,1),l.isDigit()?f.id!=="."&&u!=="styleproperty"&&i("Don't use extra leading zeros '{a}'.",h,d,k):ka&&(l==="x"||l==="X")&&i("Avoid 0x-. '{a}'.",h,d,
k)),k.substr(k.length-1)==="."&&i("A trailing decimal point can be confused with a dot '{a}'.",h,d,k),b("(number)",k);switch(k){case '"':case "'":return t(k);case "//":Ga||u&&u!=="script"?i("Unexpected comment.",h,d):u==="script"&&/<\s*\//i.test(m)?i("Unexpected </ in comment.",h,d):(j.safe||u==="script")&&cb.test(m)&&i("Dangerous comment.",h,d);m="";f.comment=!0;break;case "/*":(Ga||u&&u!=="script"&&u!=="style"&&u!=="styleproperty")&&i("Unexpected comment.",h,d);for(j.safe&&cb.test(m)&&i("ADsafe comment violation.",
h,d);;){l=m.search(Fb);if(l>=0)break;a()?j.safe&&cb.test(m)&&i("ADsafe comment violation.",h,d):s("Unclosed comment.",h,d)}d+=l+2;m.substr(l,1)==="/"&&s("Nested comment.",h,d);m=m.substr(l+2);f.comment=!0;break;case "/*members":case "/*member":case "/*jslint":case "/*global":case "*/":return{value:k,type:"special",line:h,character:d,from:c};case "":break;case "/":f.id==="/="&&s("A regular expression literal can be confused with '/='.",h,c);if(ab){for(q=k=l=0;;){p=!0;o=m.charAt(q);q+=1;switch(o){case "":s("Unclosed regular expression.",
h,c);return;case "/":l>0&&i("Unescaped '{a}'.",h,c+q,"/");o=m.substr(0,q-1);for(n={g:!0,i:!0,m:!0};n[m.charAt(q)]===!0;)n[m.charAt(q)]=!1,q+=1;d+=q;m=m.substr(q);n=m.charAt(0);(n==="/"||n==="*")&&s("Confusing regular expression.",h,c);return b("(regexp)",o);case "\\":o=m.charAt(q);o<" "?i("Unexpected control character in regular expression.",h,c+q):o==="<"&&i("Unexpected escaped character '{a}' in regular expression.",h,c+q,o);q+=1;break;case "(":l+=1;p=!1;if(m.charAt(q)==="?")switch(q+=1,m.charAt(q)){case ":":case "=":case "!":q+=
1;break;default:i("Expected '{a}' and instead saw '{b}'.",h,c+q,":",m.charAt(q))}else k+=1;break;case "|":p=!1;break;case ")":l===0?i("Unescaped '{a}'.",h,c+q,")"):l-=1;break;case " ":for(n=1;m.charAt(q)===" ";)q+=1,n+=1;n>1&&i("Spaces are hard to count. Use {{a}}.",h,c+q,n);break;case "[":o=m.charAt(q);o==="^"&&(q+=1,j.regexp&&i("Insecure '{a}'.",h,c+q,o));n=!1;o==="]"&&(i("Empty class.",h,c+q-1),n=!0);a:do switch(o=m.charAt(q),q+=1,o){case "[":case "^":i("Unescaped '{a}'.",h,c+q,o);n=!0;break;case "-":n?
n=!1:(i("Unescaped '{a}'.",h,c+q,"-"),n=!0);break;case "]":n||i("Unescaped '{a}'.",h,c+q-1,"-");break a;case "\\":o=m.charAt(q);o<" "?i("Unexpected control character in regular expression.",h,c+q):o==="<"&&i("Unexpected escaped character '{a}' in regular expression.",h,c+q,o);q+=1;n=!0;break;case "/":i("Unescaped '{a}'.",h,c+q-1,"/");n=!0;break;case "<":u==="script"&&(o=m.charAt(q),(o==="!"||o==="/")&&i("HTML confusion in regular expression '<{a}'.",h,c+q,o));n=!0;break;default:n=!0}while(o);break;
case ".":j.regexp&&i("Insecure '{a}'.",h,c+q,o);break;case "]":case "?":case "{":case "}":case "+":case "*":i("Unescaped '{a}'.",h,c+q,o);break;case "<":u==="script"&&(o=m.charAt(q),(o==="!"||o==="/")&&i("HTML confusion in regular expression '<{a}'.",h,c+q,o))}if(p)switch(m.charAt(q)){case "?":case "+":case "*":q+=1;m.charAt(q)==="?"&&(q+=1);break;case "{":q+=1;o=m.charAt(q);(o<"0"||o>"9")&&i("Expected a number and instead saw '{a}'.",h,c+q,o);q+=1;for(n=+o;;){o=m.charAt(q);if(o<"0"||o>"9")break;
q+=1;n=+o+n*10}p=n;if(o===","&&(q+=1,p=Infinity,o=m.charAt(q),o>="0"&&o<="9")){q+=1;for(p=+o;;){o=m.charAt(q);if(o<"0"||o>"9")break;q+=1;p=+o+p*10}}m.charAt(q)!=="}"?i("Expected '{a}' and instead saw '{b}'.",h,c+q,"}",o):q+=1;m.charAt(q)==="?"&&(q+=1);n>p&&i("'{a}' should not be greater than '{b}'.",h,c+q,n,p)}}o=m.substr(0,q-1);d+=q;m=m.substr(q);return b("(regexp)",o)}return b("(punctuator)",k);case "<\!--":q=h;for(o=d;;){l=m.indexOf("--");if(l>=0)break;l=m.indexOf("<!");l>=0&&s("Nested HTML comment.",
h,d+l);a()||s("Unclosed HTML comment.",q,o)}q=m.indexOf("<!");q>=0&&q<l&&s("Nested HTML comment.",h,d+q);d+=l;m[l+2]!==">"&&s("Expected --\>.",h,d);d+=3;m=m.slice(l+3);break;case "#":if(u==="html"||u==="styleproperty"){for(;;){o=m.charAt(0);if((o<"0"||o>"9")&&(o<"a"||o>"f")&&(o<"A"||o>"F"))break;d+=1;m=m.substr(1);k+=o}k.length!==4&&k.length!==7&&i("Bad hex color '{a}'.",h,c+q,k);return b("(color)",k)}return b("(punctuator)",k);default:if(u==="outer"&&o==="&"){d+=1;for(m=m.substr(1);;){o=m.charAt(0);
d+=1;m=m.substr(1);if(o===";")break;o>="0"&&o<="9"||o>="a"&&o<="z"||o==="#"||s("Bad entity",h,c+q,d)}break}return b("(punctuator)",k)}}else{for(o=k="";m&&m<"!";)m=m.substr(1);if(m)if(u==="html")return k=m.charAt(0),m=m.substr(1),b("(error)",k);else s("Unexpected '{a}'.",h,d,m.substr(0,1))}}}}}();Ua=[da,function(){for(;;)if(a.identifier)switch(a.value.toLowerCase()){case "url":da();break;case "expression":c("Unexpected expression '{a}'.",a,a.value);b();break;default:b()}else{if(a.id===";"||a.id===
"!"||a.id==="(end)"||a.id==="}")return!0;b()}}];V="none,hidden,dotted,dashed,solid,double,ridge,inset,outset".split(",");$a=["auto","always","avoid","left","right"];Ea=["auto","hidden","scroll","visible"];Ba={background:[!0,"background-attachment","background-color","background-image","background-position","background-repeat"],"background-attachment":["scroll","fixed"],"background-color":["transparent",U],"background-image":["none",da],"background-position":[2,[y,"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":U,"border-bottom-style":V,"border-bottom-width":ja,"border-collapse":["collapse","separate"],"border-color":["transparent",4,U],"border-left":[!0,"border-left-color","border-left-style","border-left-width"],"border-left-color":U,"border-left-style":V,"border-left-width":ja,
"border-right":[!0,"border-right-color","border-right-style","border-right-width"],"border-right-color":U,"border-right-style":V,"border-right-width":ja,"border-spacing":[2,y],"border-style":[4,V],"border-top":[!0,"border-top-color","border-top-style","border-top-width"],"border-top-color":U,"border-top-style":V,"border-top-width":ja,"border-width":[4,ja],bottom:[y,"auto"],"caption-side":["bottom","left","right","top"],clear:["both","left","none","right"],clip:[function(){var e;if(a.identifier&&a.value===
"rect"){b();b("(");for(e=0;e<4;e+=1)if(!y()){c("Expected a number and instead saw '{a}'.",a,a.value);break}b(")");return!0}return!1},"auto"],color:U,content:["open-quote","close-quote","no-open-quote","no-close-quote",Sa,da,function(){if(a.identifier&&a.value==="counter")return b(),b("("),b(),a.id===","&&(J(),a.type!=="(string)"&&c("Expected a string and instead saw '{a}'.",a,a.value),b()),b(")"),!0;return a.identifier&&a.value==="counters"?(b(),b("("),a.identifier||c("Expected a name and instead saw '{a}'.",
a,a.value),b(),a.id===","&&(J(),a.type!=="(string)"&&c("Expected a string and instead saw '{a}'.",a,a.value),b()),a.id===","&&(J(),a.type!=="(string)"&&c("Expected a string and instead saw '{a}'.",a,a.value),b()),b(")"),!0):!1},function(){return a.identifier&&a.value==="attr"?(b(),b("("),a.identifier||c("Expected a name and instead saw '{a}'.",a,a.value),b(),b(")"),!0):!1}],"counter-increment":[Ra,"none"],"counter-reset":[Ra,"none"],cursor:[da,"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".split(","),"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":function(){for(;a.id!==";";){!Ra()&&!Sa()&&c("Expected a name and instead saw '{a}'.",a,a.value);if(a.id!==",")return!0;J()}},"font-size":["xx-small","x-small","small","medium","large","x-large","xx-large","larger","smaller",y],"font-size-adjust":["none",Aa],"font-stretch":"normal,wider,narrower,ultra-condensed,extra-condensed,condensed,semi-condensed,semi-expanded,expanded,extra-expanded".split(","),"font-style":["normal","italic","oblique"],
"font-variant":["normal","small-caps"],"font-weight":["normal","bold","bolder","lighter",Aa],height:[y,"auto"],left:[y,"auto"],"letter-spacing":["normal",y],"line-height":["normal",function(){a.id==="-"&&(b("-"),k());return a.type==="(number)"?(b(),a.type!=="(string)"&&ib[a.value]===!0&&(k(),b()),!0):!1}],"list-style":[!0,"list-style-image","list-style-position","list-style-type"],"list-style-image":["none",da],"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".split(","),
margin:[4,pa],"margin-bottom":pa,"margin-left":pa,"margin-right":pa,"margin-top":pa,"marker-offset":[y,"auto"],"max-height":[y,"none"],"max-width":[y,"none"],"min-height":y,"min-width":y,opacity:Aa,outline:[!0,"outline-color","outline-style","outline-width"],"outline-color":["invert",U],"outline-style":"dashed,dotted,double,groove,inset,none,outset,ridge,solid".split(","),"outline-width":ja,overflow:Ea,"overflow-x":Ea,"overflow-y":Ea,padding:[4,y],"padding-bottom":y,"padding-left":y,"padding-right":y,
"padding-top":y,"page-break-after":$a,"page-break-before":$a,position:["absolute","fixed","relative","static"],quotes:[8,Sa],right:[y,"auto"],"table-layout":["auto","fixed"],"text-align":["center","justify","left","right"],"text-decoration":["none","underline","overline","line-through","blink"],"text-indent":y,"text-shadow":["none",4,[U,y]],"text-transform":["capitalize","uppercase","lowercase","none"],top:[y,"auto"],"unicode-bidi":["normal","embed","bidi-override"],"vertical-align":["baseline","bottom",
"sub","super","top","text-top","middle","text-bottom",y],visibility:["visible","hidden","collapse"],"white-space":"normal,nowrap,pre,pre-line,pre-wrap,inherit".split(","),width:[y,"auto"],"word-spacing":["normal",y],"word-wrap":["break-word","normal"],"z-index":["auto",Aa]};wa("(number)",hb);wa("(string)",hb);N["(identifier)"]={type:"(identifier)",lbp:0,identifier:!0,nud:function(){var a=this.value,b=E[a],d;typeof b==="function"?b=void 0:typeof b==="boolean"&&(d=t,t=ra[0],p(a,"var"),b=t,t=d);if(t===
b)switch(t[a]){case "unused":t[a]="var";break;case "label":c("'{a}' is a statement label.",f,a)}else if(t["(global)"])j.undef&&D[a]!=="boolean"&&c("'{a}' is not defined.",f,a),Qa(f);else switch(t[a]){case "closure":case "function":case "var":case "unused":c("'{a}' used out of scope.",f,a);break;case "label":c("'{a}' is a statement label.",f,a);break;case "outer":case "global":break;default:if(b===!0)t[a]=!0;else if(b===null)c("'{a}' is not allowed.",f,a),Qa(f);else if(typeof b!=="object")j.undef?
c("'{a}' is not defined.",f,a):t[a]=!0,Qa(f);else switch(b[a]){case "function":case "var":case "unused":b[a]="closure";t[a]=b["(global)"]?"global":"outer";break;case "closure":case "parameter":t[a]=b["(global)"]?"global":"outer";break;case "label":c("'{a}' is a statement label.",f,a)}}return this},led:function(){h("Expected an operator and instead saw '{a}'.",a,a.value)}};wa("(regexp)",function(){return this});H("(endline)");H("(begin)");H("(end)").reach=!0;H("</").reach=!0;H("<!");H("<\!--");H("--\>");
H("(error)").reach=!0;H("}").reach=!0;H(")");H("]");H('"').reach=!0;H("'").reach=!0;H(";");H(":").reach=!0;H(",");H("#");H("@");C("else");C("case").reach=!0;C("catch");C("default").reach=!0;C("finally");T("arguments");T("eval");T("false");T("Infinity");T("NaN");T("null");T("this");T("true");T("undefined");fa("=","assign",20);fa("+=","assignadd",20);fa("-=","assignsub",20);fa("*=","assignmult",20);fa("/=","assigndiv",20).nud=function(){h("A regular expression literal can be confused with '/='.")};
fa("%=","assignmod",20);ha("&=","assignbitand",20);ha("|=","assignbitor",20);ha("^=","assignbitxor",20);ha("<<=","assignshiftleft",20);ha(">>=","assignshiftright",20);ha(">>>=","assignshiftrightunsigned",20);L("?",function(a,c){c.left=a;c.right=r(10);b(":");c["else"]=r(10);return c},30);L("||","or",40);L("&&","and",50);ga("|","bitor",70);ga("^","bitxor",80);ga("&","bitand",90);aa("==",function(a,b){j.eqeqeq?c("Expected '{a}' and instead saw '{b}'.",this,"===","=="):xa(a)?c("Use '{a}' to compare with '{b}'.",
this,"===",a.value):xa(b)&&c("Use '{a}' to compare with '{b}'.",this,"===",b.value);return this});aa("===");aa("!=",function(a,b){j.eqeqeq?c("Expected '{a}' and instead saw '{b}'.",this,"!==","!="):xa(a)?c("Use '{a}' to compare with '{b}'.",this,"!==",a.value):xa(b)&&c("Use '{a}' to compare with '{b}'.",this,"!==",b.value);return this});aa("!==");aa("<");aa(">");aa("<=");aa(">=");ga("<<","shiftleft",120);ga(">>","shiftright",120);ga(">>>","shiftrightunsigned",120);L("in","in",120);L("instanceof",
"instanceof",120);L("+",function(a,b){var d=r(130);if(a&&d&&a.id==="(string)"&&d.id==="(string)")return a.value+=d.value,a.character=d.character,Pa.test(a.value)&&c("JavaScript URL.",a),a;b.left=a;b.right=d;return b},130);Q("+","num");L("-","sub",130);Q("-","neg");L("*","mult",140);L("/","div",140);L("%","mod",140);fb("++","postinc");Q("++","preinc");N["++"].exps=!0;fb("--","postdec");Q("--","predec");N["--"].exps=!0;Q("delete",function(){var b=r(0);(!b||b.id!=="."&&b.id!=="[")&&c("Expected '{a}' and instead saw '{b}'.",
a,".",a.value);this.first=b;return this}).exps=!0;Q("~",function(){j.bitwise&&c("Unexpected '{a}'.",this,"~");r(150);return this});Q("!",function(){this.right=r(150);this.arity="unary";wb[this.right.id]===!0&&c("Confusing use of '{a}'.",this,"!");return this});Q("typeof","typeof");Q("new",function(){var e=r(155),g;if(e&&e.id!=="function")if(e.identifier)switch(e["new"]=!0,e.value){case "Object":c("Use the object literal notation {}.",f);break;case "Array":return a.id!=="("?c("Use the array literal notation [].",
f):(b("("),a.id===")"?c("Use the array literal notation [].",f):(g=r(0),e.dimension=g,(g.id==="(number)"&&/[.+\-Ee]/.test(g.value)||g.id==="-"&&!g.right||g.id==="(string)"||g.id==="["||g.id==="{"||g.id==="true"||g.id==="false"||g.id==="null"||g.id==="undefined"||g.id==="Infinity")&&c("Use the array literal notation [].",f),a.id!==")"&&h("Use the array literal notation [].",f)),b(")")),this.first=e,this;case "Number":case "String":case "Boolean":case "Math":case "JSON":c("Do not use {a} as a constructor.",
f,e.value);break;case "Function":j.evil||c("The Function constructor is eval.");break;case "Date":case "RegExp":break;default:e.id!=="function"&&(g=e.value.substr(0,1),j.newcap&&(g<"A"||g>"Z")&&c("A constructor name should start with an uppercase letter.",f))}else e.id!=="."&&e.id!=="["&&e.id!=="("&&c("Bad constructor.",f);else c("Weird construction. Delete 'new'.",this);k(f,a);a.id!=="("&&c("Missing '()' invoking a constructor.");this.first=e;return this});N["new"].exps=!0;L(".",function(e,g){k(K,
f);var d=ma();typeof d==="string"&&za(d);g.left=e;g.right=d;!j.evil&&e&&e.value==="document"&&(d==="write"||d==="writeln")?c("document.write can be a form of eval.",e):j.adsafe&&e&&e.value==="ADSAFE"&&(d==="id"||d==="lib"?c("ADsafe violation.",g):d==="go"&&(u!=="script"?c("ADsafe violation.",g):(sa||a.id!=="("||l(0).id!=="(string)"||l(0).value!==P||l(1).id!==",")&&h("ADsafe violation: go.",g),sa=!0,ia=!1));if(!j.evil&&(d==="eval"||d==="execScript"))c("eval is evil.");else if(j.safe)for(;;){Ma[d]===
!0&&c("ADsafe restricted word '{a}'.",f,d);if(typeof D[e.value]!=="boolean"||a.id==="(")break;if(zb[d]===!0){a.id==="."&&c("ADsafe violation.",g);break}if(a.id!=="."){c("ADsafe violation.",g);break}b(".");f.left=g;f.right=d;g=f;d=ma();typeof d==="string"&&za(d)}return g},160,!0);L("(",function(e,g){k(K,f);v();var d=0,h=[];e&&(e.type==="(identifier)"?e.value.match(/^[A-Z]([A-Z0-9_$]*[a-z][A-Za-z0-9_$]*)?$/)&&e.value!=="Number"&&e.value!=="String"&&e.value!=="Boolean"&&e.value!=="Date"&&(e.value===
"Math"?c("Math is not a function.",e):j.newcap&&c("Missing 'new' prefix when invoking a constructor.",e)):e.id==="."&&j.safe&&e.left.value==="Math"&&e.right==="random"&&c("ADsafe violation.",e));if(a.id!==")")for(;;){h[h.length]=r(10);d+=1;if(a.id!==",")break;J()}b(")");j.immed&&e.id==="function"&&a.id!==")"&&c("Wrap the entire immediate function invocation in parens.",g);v(K,f);typeof e==="object"&&(e.value==="parseInt"&&d===1&&c("Missing radix parameter.",e),j.evil||(e.value==="eval"||e.value===
"Function"||e.value==="execScript"?c("eval is evil.",e):h[0]&&h[0].id==="(string)"&&(e.value==="setTimeout"||e.value==="setInterval")&&c("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!=="?"&&c("Bad invocation.",e));g.left=e;return g},155,!0).exps=!0;Q("(",function(){v();var e=r(0);b(")",this);v(K,f);j.immed&&e.id==="function"&&(a.id==="("?c("Move the invocation into the parens that contain the function.",
a):c("Do not wrap function literals in parens unless they are to be immediately invoked.",this));return e});L("[",function(a,g){v();var d=r(0),h;d&&d.type==="(string)"?(j.safe&&Ma[d.value]===!0?c("ADsafe restricted word '{a}'.",g,d.value):!j.evil&&(d.value==="eval"||d.value==="execScript")?c("eval is evil.",g):j.safe&&(d.value.charAt(0)==="_"||d.value.charAt(0)==="-")&&c("ADsafe restricted subscript '{a}'.",g,d.value),za(d.value),!j.sub&&nb.test(d.value)&&(h=N[d.value],(!h||!h.reserved)&&c("['{a}'] is better written in dot notation.",
d,d.value))):(!d||d.type!=="(number)"||d.value<0)&&j.safe&&c("ADsafe subscripting.");b("]",g);v(K,f);g.left=a;g.right=d;return g},160,!0);Q("[",function(){var e=f.line!==a.line;this.first=[];e&&(G+=j.indent,a.from===G+j.indent&&(G+=j.indent));for(;a.id!=="(end)";){for(;a.id===",";)c("Extra comma."),b(",");if(a.id==="]")break;e&&f.line!==a.line&&x();this.first.push(r(10));if(a.id===","){if(J(),a.id==="]"){c("Extra comma.",f);break}}else break}e&&(G-=j.indent,x());b("]",this);return this},160);(function(e){e.nud=
function(){var e,d,i,n,m={};if(e=f.line!==a.line)G+=j.indent,a.from===G+j.indent&&(G+=j.indent);for(;;){if(a.id==="}")break;e&&x();if(a.value==="get"&&l().id!==":")b("get"),j.es5||h("get/set are ES5 features."),(i=Xa())||h("Missing property name."),n=a,k(f,a),d=Ca(i),t["(loopage)"]&&c("Don't make functions within a loop.",n),(d=d["(params)"])&&c("Unexpected parameter '{a}' in get {b} function.",n,d[0],i),k(f,a),b(","),x(),b("set"),n=Xa(),i!==n&&h("Expected {a} and instead saw {b}.",f,i,n),n=a,k(f,
a),d=Ca(i),d=d["(params)"],(!d||d.length!==1||d[0]!=="value")&&c("Expected (value) in set {a} function.",n,i);else{i=Xa();if(typeof i!=="string")break;b(":");w(f,a);r(10)}m[i]===!0&&c("Duplicate member '{a}'.",a,i);m[i]=!0;za(i);if(a.id===",")J(),a.id===","?c("Extra comma.",f):a.id==="}"&&c("Extra comma.",f);else break}e&&(G-=j.indent,x());b("}",this);return this};e.fud=function(){h("Expected to see a statement and instead saw a block.",f)}})(H("{"));$("var",Ya).exps=!0;ea("function",function(){oa&&
c("Function statements cannot be placed in blocks. Use a function expression or move the statement to the top of the outer function.",f);var b=ma();k(f,a);p(b,"unused");Ca(b);a.id==="("&&a.line===f.line&&h("Function statements are not invocable. Wrap the whole function invocation in parens.");return this});Q("function",function(){var b=La();b?k(f,a):w(f,a);Ca(b);t["(loopage)"]&&c("Don't make functions within a loop.");return this});ea("if",function(){var e=a;b("(");w(this,e);v();r(20);a.id==="="&&
(c("Expected a conditional expression and instead saw an assignment."),b("="),r(20));b(")",e);v(K,f);R(!0);a.id==="else"&&(w(f,a),b("else"),a.id==="if"||a.id==="switch"?Oa(!0):R(!0));return this});ea("try",function(){var e,g;j.adsafe&&c("ADsafe try violation.",this);R(!1);if(a.id==="catch")b("catch"),w(f,a),b("("),g=E,E=Object.create(g),e=a.value,a.type!=="(identifier)"?c("Expected an identifier and instead saw '{a}'.",a,e):p(e,"exception"),b(),b(")"),R(!1),e=!0,E=g;if(a.id==="finally")b("finally"),
R(!1);else return e||h("Expected '{a}' and instead saw '{b}'.",a,"catch",a.value),this});ea("while",function(){var e=a;t["(breakage)"]+=1;t["(loopage)"]+=1;b("(");w(this,e);v();r(20);a.id==="="&&(c("Expected a conditional expression and instead saw an assignment."),b("="),r(20));b(")",e);v(K,f);R(!0);t["(breakage)"]-=1;t["(loopage)"]-=1;return this}).labelled=!0;C("with");ea("switch",function(){var e=a,g=!1;t["(breakage)"]+=1;b("(");w(this,e);v();this.condition=r(20);b(")",e);v(K,f);w(f,a);e=a;b("{");
w(f,a);G+=j.indent;for(this.cases=[];;)switch(a.id){case "case":switch(t["(verb)"]){case "break":case "case":case "continue":case "return":case "switch":case "throw":break;default:c("Expected a 'break' statement before 'case'.",f)}x(-j.indent);b("case");this.cases.push(r(20));g=!0;b(":");t["(verb)"]="case";break;case "default":switch(t["(verb)"]){case "break":case "continue":case "return":case "throw":break;default:c("Expected a 'break' statement before 'default'.",f)}x(-j.indent);b("default");g=
!0;b(":");break;case "}":G-=j.indent;x();b("}",e);(this.cases.length===1||this.condition.id==="true"||this.condition.id==="false")&&c("This 'switch' should be an 'if'.",this);t["(breakage)"]-=1;t["(verb)"]=void 0;return;case "(end)":h("Missing '{a}'.",a,"}");return;default:if(g)switch(f.id){case ",":h("Each value should have its own case label.");return;case ":":na();break;default:h("Missing ':' on a case clause.",f)}else h("Expected '{a}' and instead saw '{b}'.",a,"case",a.value)}}).labelled=!0;
$("debugger",function(){j.debug||c("All 'debugger' statements should be removed.");return this}).exps=!0;(function(){var e=$("do",function(){t["(breakage)"]+=1;t["(loopage)"]+=1;this.first=R(!0);b("while");var e=a;w(f,e);b("(");v();r(20);a.id==="="&&(c("Expected a conditional expression and instead saw an assignment."),b("="),r(20));b(")",e);v(K,f);t["(breakage)"]-=1;t["(loopage)"]-=1;return this});e.labelled=!0;e.exps=!0})();ea("for",function(){var e=j.forin,g;g=a;t["(breakage)"]+=1;t["(loopage)"]+=
1;b("(");w(this,g);v();if(l(a.id==="var"?1:0).id==="in"){if(a.id==="var")b("var"),Ya(!0);else{switch(t[a.value]){case "unused":t[a.value]="var";break;case "var":break;default:c("Bad for in variable '{a}'.",a,a.value)}b()}b("in");r(20);b(")",g);g=R(!0);!e&&(g.length>1||typeof g[0]!=="object"||g[0].value!=="if")&&c("The body of a for in should be wrapped in an if statement to filter unwanted properties from the prototype.",this)}else{if(a.id!==";")if(a.id==="var")b("var"),Ya();else for(;;){r(0,"for");
if(a.id!==",")break;J()}X(f);b(";");a.id!==";"&&(r(20),a.id==="="&&(c("Expected a conditional expression and instead saw an assignment."),b("="),r(20)));X(f);b(";");a.id===";"&&h("Expected '{a}' and instead saw '{b}'.",a,")",";");if(a.id!==")")for(;;){r(0,"for");if(a.id!==",")break;J()}b(")",g);v(K,f);R(!0)}t["(breakage)"]-=1;t["(loopage)"]-=1;return this}).labelled=!0;$("break",function(){var e=a.value;t["(breakage)"]===0&&c("Unexpected '{a}'.",a,this.value);X(this);if(a.id!==";"&&f.line===a.line)t[e]!==
"label"?c("'{a}' is not a statement label.",a,e):E[e]!==t&&c("'{a}' is out of scope.",a,e),this.first=a,b();ya("break");return this}).exps=!0;$("continue",function(){var e=a.value;t["(breakage)"]===0&&c("Unexpected '{a}'.",a,this.value);X(this);if(a.id!==";"){if(f.line===a.line)t[e]!=="label"?c("'{a}' is not a statement label.",a,e):E[e]!==t&&c("'{a}' is out of scope.",a,e),this.first=a,b()}else t["(loopage)"]||c("Unexpected '{a}'.",a,this.value);ya("continue");return this}).exps=!0;$("return",function(){X(this);
a.id==="(regexp)"&&c("Wrap the /regexp/ literal in parens to disambiguate the slash operator.");if(a.id!==";"&&!a.reach)w(f,a),this.first=r(20);ya("return");return this}).exps=!0;$("throw",function(){X(this);w(f,a);this.first=r(20);ya("throw");return this}).exps=!0;C("void");C("class");C("const");C("enum");C("export");C("extends");C("import");C("super");C("let");C("yield");C("implements");C("interface");C("package");C("private");C("protected");C("public");C("static");"abstract boolean byte char class double extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile".split(" ").forEach(C);
var W=function(e,g){var d,i;JSLINT.errors=[];D=Object.create(yb);if(g){d=g.predef;if(d instanceof Array)for(i=0;i<d.length;i+=1)D[d[i]]=!0;if(g.adsafe)g.safe=!0;if(g.safe)g.browser=!1,g.css=!1,g.debug=!1,g.devel=!1,g.eqeqeq=!0,g.evil=!1,g.forin=!1,g.nomen=!0,g.on=!1,g.rhino=!1,g.safe=!0,g.windows=!1,g.strict=!0,g.sub=!1,g.undef=!0,g.widget=!1,D.Date=null,D.eval=null,D.Function=null,D.Object=null,D.ADSAFE=!1,D.lib=!1;j=g}else j={};j.indent=j.indent||4;j.maxerr=j.maxerr||50;P="";sa=ia=!1;Da={};if(j.approved)for(i=
0;i<j.approved.length;i+=1)Da[j.approved[i]]=j.approved[i];else Da.test="test";bb="";for(i=0;i<j.indent;i+=1)bb+=" ";G=1;E=eb=Object.create(D);t={"(global)":!0,"(name)":"(global)","(scope)":E,"(breakage)":0,"(loopage)":0};ra=[t];Fa={};qa=[];u=Ga=!1;I=null;ca={};ba=null;Z={};oa=!1;va=[];ka=!1;Ha=0;S.init(e);ab=!0;Ka=!1;K=f=a=N["(begin)"];A();try{b();if(a.value.charAt(0)==="<"){a:{var k,m,r,l,n,o,p,s=j.white,q;u="html";O="";for(I=null;;){switch(a.value){case "<":u="html";b("<");m={};o=a;o.identifier||
c("Bad identifier {a}.",o,o.value);l=o.value;j.cap&&(l=l.toLowerCase());o.name=l;b();if(!I)I=[],d=l,d!=="html"&&!j.fragment&&(d==="div"&&j.adsafe?h("ADSAFE: Use the fragment option."):h("Expected '{a}' and instead saw '{b}'.",f,"html",d)),j.adsafe&&(d==="html"&&h("Currently, ADsafe does not operate on whole HTML documents. It operates on <div> fragments and .js files.",f),j.fragment?d!=="div"&&h("ADsafe violation: Wrap the widget in a div.",f):h("Use the fragment option.",f)),j.browser=!0,A();p=Wa[l];
typeof p!=="object"&&h("Unrecognized tag '<{a}>'.",o,l);r=p.empty;for(o.type=l;;){if(a.id==="/"){b("/");a.id!==">"&&c("Expected '{a}' and instead saw '{b}'.",a,">",a.value);break}if(a.id&&a.id.substr(0,1)===">")break;a.identifier||((a.id==="(end)"||a.id==="(error)")&&h("Missing '>'.",a),c("Bad identifier."));j.white=!0;w(f,a);k=a.value;j.white=s;b();!j.cap&&k!==k.toLowerCase()&&c("Attribute '{a}' not all lower case.",a,k);k=k.toLowerCase();O="";z(m,k)&&c("Attribute '{a}' repeated.",a,k);k.slice(0,
2)==="on"?(j.on||c("Avoid HTML event handlers."),u="scriptstring",b("="),n=a.id,n!=='"'&&n!=="'"&&h("Missing quote."),O=n,q=j.white,j.white=!1,b(n),na("on"),j.white=q,a.id!==n&&h("Missing close quote on script attribute."),u="html",O="",b(n),p=!1):k==="style"?(u="scriptstring",b("="),n=a.id,n!=='"'&&n!=="'"&&h("Missing quote."),u="styleproperty",O=n,b(n),kb(),u="html",O="",b(n),p=!1):a.id==="="?(b("="),p=a.value,!a.identifier&&a.id!=='"'&&a.id!=="'"&&a.type!=="(string)"&&a.type!=="(number)"&&a.type!==
"(color)"&&c("Expected an attribute value and instead saw '{a}'.",f,k),b()):p=!0;m[k]=p;d=k;i=p;var v=void 0,B=void 0;d==="id"?(v=typeof i==="string"?i.toUpperCase():"",Fa[v]===!0&&c("Duplicate id='{a}'.",a,i),/^[A-Za-z][A-Za-z0-9._:\-]*$/.test(i)?j.adsafe&&(P?i.slice(0,P.length)!==P?c("ADsafe violation: An id must have a '{a}' prefix",a,P):/^[A-Z]+_[A-Z]+$/.test(i)||c("ADSAFE violation: bad id."):(P=i,/^[A-Z]+_$/.test(i)||c("ADSAFE violation: bad id."))):c("Bad id: '{a}'.",a,i),B=i.search(Hb),B>=
0&&c("Unexpected character '{a}' in {b}.",f,i.charAt(B),d),Fa[v]=!0):d==="class"||d==="type"||d==="name"?(B=i.search(Gb),B>=0&&c("Unexpected character '{a}' in {b}.",f,i.charAt(B),d),Fa[v]=!0):d==="href"||d==="background"||d==="content"||d==="data"||d.indexOf("src")>=0||d.indexOf("url")>=0?(j.safe&&jb.test(i)&&h("ADsafe URL violation."),qa.push(i)):d==="for"?j.adsafe&&(P?i.slice(0,P.length)!==P?c("ADsafe violation: An id must have a '{a}' prefix",a,P):/^[A-Z]+_[A-Z]+$/.test(i)||c("ADSAFE violation: bad id."):
c("ADSAFE violation: bad id.")):d==="name"&&j.adsafe&&i.indexOf("_")>=0&&c("ADsafe name violation.")}d=l;i=m;var v=void 0,x=Wa[d],B=void 0;Ga=!1;x||h("Unrecognized tag '<{a}>'.",a,d===d.toLowerCase()?d:d+" (capitalization error)");if(I.length>0)if(d==="html"&&h("Too many <html> tags.",f),B=x.parent)B.indexOf(" "+I[I.length-1].name+" ")<0&&h("A '<{a}>' must be within '<{b}>'.",f,d,B);else if(!j.adsafe&&!j.fragment){v=I.length;do v<=0&&h("A '<{a}>' must be within '<{b}>'.",f,d,"body"),v-=1;while(I[v].name!==
"body")}switch(d){case "div":j.adsafe&&I.length===1&&!P&&c("ADSAFE violation: missing ID_.");break;case "script":u="script";b(">");G=a.from;i.lang&&c("lang is deprecated.",f);j.adsafe&&I.length!==1&&c("ADsafe script placement violation.",f);i.src?(j.adsafe&&(!ia||!Da[i.src])&&c("ADsafe unapproved script source.",f),i.type&&c("type is unnecessary.",f)):(sa&&h("ADsafe script violation.",f),na("script"));u="html";b("</");!a.identifier&&a.value!=="script"&&c("Expected '{a}' and instead saw '{b}'.",a,
"script",a.value);b();u="outer";break;case "style":u="style";b(">");lb();u="html";b("</");!a.identifier&&a.value!=="style"&&c("Expected '{a}' and instead saw '{b}'.",a,"style",a.value);b();u="outer";break;case "input":switch(i.type){case "radio":case "checkbox":case "button":case "reset":case "submit":break;case "text":case "password":case "file":case "hidden":case "image":j.adsafe&&i.autocomplete!=="off"&&c("ADsafe autocomplete violation.");break;default:c("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":j.adsafe&&
c("ADsafe violation: Disallowed tag: "+d)}r||I.push(o);u="outer";b(">");break;case "</":u="html";b("</");a.identifier||c("Bad identifier.");l=a.value;j.cap&&(l=l.toLowerCase());b();I||h("Unexpected '{a}'.",a,"</"+l+">");(o=I.pop())||h("Unexpected '{a}'.",a,"</"+l+">");o.name!==l&&h("Expected '{a}' and instead saw '{b}'.",a,"</"+o.name+">","</"+l+">");a.id!==">"&&h("Missing '{a}'.",a,">");u="outer";b(">");break;case "<!":j.safe&&c("ADsafe HTML violation.");for(u="html";;){b();if(a.id===">"||a.id===
"(end)")break;a.value.indexOf("--")>=0&&c("Unexpected --.");a.value.indexOf("<")>=0&&c("Unexpected <.");a.value.indexOf(">")>=0&&c("Unexpected >.")}u="outer";b(">");break;case "(end)":break a;default:a.id==="(end)"?h("Missing '{a}'.",a,"</"+I[I.length-1].value+">"):b()}if(I&&I.length===0&&(j.adsafe||!j.fragment||a.id==="(end)"))break}a.id!=="(end)"&&h("Unexpected material after the end.")}j.adsafe&&!sa&&c("ADsafe violation: Missing ADSAFE.go.",this)}else switch(a.id){case "{":case "[":ka=j.laxbreak=
!0;Za();break;case "@":case "*":case "#":case ".":case ":":u="style";b();(f.id!=="@"||!a.identifier||a.value!=="charset"||f.line!==1||f.from!==1)&&h('A css file should begin with @charset "UTF-8";');b();a.type!=="(string)"&&a.value!=="UTF-8"&&h('A css file should begin with @charset "UTF-8";');b();b(";");lb();break;default:j.adsafe&&j.fragment&&h("Expected '{a}' and instead saw '{b}'.",a,"<div>",a.value),na("lib")}b("(end)")}catch(y){y&&JSLINT.errors.push({reason:y.message,line:y.line||a.line,character:y.character||
a.from},null)}return JSLINT.errors.length===0};W.data=function(){var a={functions:[]},b;b=[];var d,c,f,h,i=[];if(W.errors.length)a.errors=W.errors;if(ka)a.json=!0;for(h in Z)z(Z,h)&&b.push({name:h,line:Z[h]});if(b.length>0)a.implieds=b;if(qa.length>0)a.urls=qa;b=mb(E);if(b.length>0)a.globals=b;for(c=1;c<ra.length;c+=1){d=ra[c];b={};for(f=0;f<ta.length;f+=1)b[ta[f]]=[];for(h in d)z(d,h)&&h.charAt(0)!=="("&&(f=d[h],Object.prototype.toString.apply(b[f])==="[object Array]"&&(b[f].push(h),f==="unused"&&
i.push({name:h,line:d["(line)"],"function":d["(name)"]})));for(f=0;f<ta.length;f+=1)b[ta[f]].length===0&&delete b[ta[f]];b.name=d["(name)"];b.param=d["(params)"];b.line=d["(line)"];b.last=d["(last)"];a.functions.push(b)}if(i.length>0)a.unused=i;for(h in ca)if(typeof ca[h]==="number"){a.member=ca;break}return a};W.report=function(a){function b(a,c){var d,e,f;if(c){l.push("<div><i>"+a+"</i> ");c=c.sort();for(e=0;e<c.length;e+=1)c[e]!==f&&(f=c[e],l.push((d?", ":"")+f),d=!0);l.push("</div>")}}var c=W.data(),
f=[],h,i,j;h="";var k,l=[];if(c.errors||c.implieds||c.unused){i=!0;l.push("<div id=errors><i>Error:</i>");if(c.errors)for(j=0;j<c.errors.length;j+=1)if(f=c.errors[j])h=f.evidence||"",l.push("<p>Problem"+(isFinite(f.line)?" at line "+f.line+" character "+f.character:"")+": "+f.reason.entityify()+"</p><p class=evidence>"+(h&&(h.length>80?h.slice(0,77)+"...":h).entityify())+"</p>");if(c.implieds){f=[];for(j=0;j<c.implieds.length;j+=1)f[j]="<code>"+c.implieds[j].name+"</code>&nbsp;<i>"+c.implieds[j].line+
"</i>";l.push("<p><i>Implied global:</i> "+f.join(", ")+"</p>")}if(c.unused){f=[];for(j=0;j<c.unused.length;j+=1)f[j]="<code><u>"+c.unused[j].name+"</u></code>&nbsp;<i>"+c.unused[j].line+"</i> <code>"+c.unused[j]["function"]+"</code>";l.push("<p><i>Unused variable:</i> "+f.join(", ")+"</p>")}c.json&&l.push("<p>JSON: bad.</p>");l.push("</div>")}if(!a){l.push("<br><div id=functions>");c.urls&&b("URLs<br>",c.urls,"<br>");u==="style"?l.push("<p>CSS.</p>"):c.json&&!i?l.push("<p>JSON: good.</p>"):c.globals?
l.push("<div><i>Global</i> "+c.globals.sort().join(", ")+"</div>"):l.push("<div><i>No new global variables introduced.</i></div>");for(j=0;j<c.functions.length;j+=1)a=c.functions[j],l.push("<br><div class=function><i>"+a.line+"-"+a.last+"</i> "+(a.name||"")+"("+(a.param?a.param.join(", "):"")+")</div>"),b("<big><b>Unused</b></big>",a.unused),b("Closure",a.closure),b("Variable",a["var"]),b("Exception",a.exception),b("Outer",a.outer),b("Global",a.global),b("Label",a.label);if(c.member){f=mb(c.member);
if(f.length){f=f.sort();h="<br><pre id=members>/*members ";i=10;for(j=0;j<f.length;j+=1)a=f[j],k=a.name(),i+k.length>72&&(l.push(h+"<br>"),h="    ",i=1),i+=k.length+2,c.member[a]===1&&(k="<i>"+k+"</i>"),j<f.length-1&&(k+=", "),h+=k;l.push(h+"<br>*/</pre>")}l.push("</div>")}}return l.join("")};W.jslint=W;W.edition="2010-04-06";return W}();define("orion/jslintworker",function(){});
define("domReady",[],function(){function n(b){for(var c=0,h;h=b[c];c++)h(i)}function z(){var b=h,i=s;c&&(b.length&&(h=[],n(b)),p.resourcesDone&&i.length&&(s=[],n(i)))}function F(){c||(c=!0,b&&clearInterval(b),z())}function A(b){c?b(i):h.push(b);return A}var B=typeof window!=="undefined"&&window.document,c=!B,i=B?document:null,h=[],s=[],p=requirejs||require||{},l=p.resourcesReady,b;if("resourcesReady"in p)p.resourcesReady=function(b){l&&l(b);b&&z()};B&&(document.addEventListener?(document.addEventListener("DOMContentLoaded",
F,!1),window.addEventListener("load",F,!1)):window.attachEvent&&(window.attachEvent("onload",F),self===self.top&&(b=setInterval(function(){try{document.body&&(document.documentElement.doScroll("left"),F())}catch(b){}},30))),document.readyState==="complete"&&F());A.withResources=function(b){c&&p.resourcesDone?b(i):s.push(b);return A};A.version="1.0.0";A.load=function(b,c,h,i){i.isBuild?h(null):A(h)};return A});
define("plugins/jslintPlugin",["orion/plugin","orion/jslintworker","domReady!"],function(n){function z(n){JSLINT(n,A);return JSLINT.data()}function F(n){function c(c,h,s){for(var p=n.description,l=0;l<c.length;l++){var b=c[l],r=typeof b==="string"?null:b[1],b=p.indexOf(typeof b==="string"?b:b[0])!==-1;if(s||b)n.severity=h;if(b&&r)n.description=r}}c([["Expected '{'","Statement body should be inside '{ }' braces."]],"warning",!0);c("Missing semicolon;Extra comma;Missing property name;Unmatched ; and instead saw; is not defined;Unclosed string;Stopping, unable to continue".split(";"),
"error");return function(){for(var c=["Dangerous comment"],h=n.description,s=0;s<c.length;s++)if(h.indexOf(c[s])!==-1)return!0;return!1}(n)?null:n}var A={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},n=new n({name:"Orion JSLint Service",version:"1.0",description:"This plugin provides JSLint functionality for outlining and validating JavaScript."});n.registerService(["orion.edit.validator","orion.cm.managedservice"],
{updated:function(n){if(n&&typeof n.options==="string"&&(n=n.options,!/^\s*$/.test(n))){var c={};n.split(/,/).forEach(function(i){var h=/\s*(\w+)\s*:\s*(\w+)\s*/.exec(i);h===null?console.log("JSLINT ignoring bad option: "+i):c[h[1]]=h[2]});Object.keys(c).length>0&&(A=c,console.log("JSLINT using custom options: "+Object.keys(A).map(function(i){return i+":"+c[i]}).join(",")))}},checkSyntax:function(n,c){var i=z(c),h=[],s;if(i.errors){var p=i.errors;for(s=0;s<p.length;s++){var l=p[s];if(l){var b=l.character-
1,r=b+1;l.evidence&&(b=l.evidence.substring(b).search(/.\b/),b>-1&&(r+=b));l.description=l.reason;l.start=l.character;l.end=r;(l=F(l))&&h.push(l)}}}if(i.functions){var i=i.functions,k;for(s=0;s<i.length;s++)if(p=i[s],(l=p.unused)&&l.length!==0){k||(k=c.split(/\r?\n/));for(var b=(r=p.name[0]==='"')?p.name.substring(1,p.name.length-1):p.name,v=k[p.line-1],w=0;w<l.length;w++){var A=v.indexOf(b),A=r?v.indexOf("function",A):v.lastIndexOf("function",A);A!==-1&&h.push({reason:"Function declares unused variable '"+
l[w]+"'.",line:p.line,character:A+1,end:A+8,severity:"warning"})}}}return{problems:h}}},{contentType:["application/javascript","text/html"],pid:"jslint.config"});n.registerService("orion.edit.outliner",{getOutline:function(n,c){if(/\.js$/.test(c)){var i=[],h=z(n).functions,s;for(s in h){var p=h[s],l=p.name;if(l[0]==='"')p.name=l=l.substring(1,l.length-1);l+="(";if(p.param){var b=[],r;for(r in p.param)b.push(p.param[r]);l+=b.join(",")}l+=")";i.push({label:l,children:null,line:p.line,text:p.name})}return i}else if(/\.html?$/.test(c)){i=
[];for(h=/id=['"]\S*["']/gi;(p=h.exec(n))!==null;)s=p.index,p=p[0],p[0]==="<"?(p="&lt;"+p.substring(1)+"&gt;",s+=1):(s+=4,p=p.substring(4,p.length-1)),i.push({label:p,children:null,start:s,end:s+p.length});return i}}},{contentType:["application/javascript","text/html"],nameKey:"Flat outline",nls:"orion/editor/nls/messages",id:"orion.edit.outliner.jslint"});n.registerService("orion.core.setting",{},{settings:[{pid:"jslint.config",name:"JSLint Validator",tags:"validation javascript js jslint".split(" "),
category:"validation",properties:[{id:"options",name:"Default Options",type:"string"}]}]});n.connect()});