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

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

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

/*

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

 Contributors: IBM Corporation - initial API and implementation

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

 Contributors:
 IBM Corporation - initial API and implementation

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

 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

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

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

 Contributors:
 IBM Corporation - initial API and implementation

 Copyright (c) 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
*/
(function(c,i){typeof define==="function"&&define.amd?define("orion/Deferred",i):typeof exports==="object"?module.exports=i():(c.orion=c.orion||{},c.orion.Deferred=i())})(this,function(){function c(){for(var b;b=a.shift();)b();e=!1}function i(b){a.push(b);e||(e=!0,setTimeout(c,0))}function b(a){return function(){a.apply(void 0,arguments)}}function d(){function l(){for(var p;p=j.shift();){var d=p.deferred,f=c==="fulfilled"?"resolve":"reject";if(typeof p[f]==="function")try{var g=(0,p[f])(h),l=g&&(typeof g===
"object"||typeof g==="function")&&g.then;if(typeof l==="function")if(g===d.promise)d.reject(new TypeError);else{var e=g.cancel;typeof e==="function"?d._protected(a).parentCancel=e.bind(g):delete d._protected(a).parentCancel;l.call(g,b(d.resolve),b(d.reject),b(d.progress))}else d.resolve(g)}catch(k){d.reject(k)}else d[f](h)}}function f(a){delete m.parentCancel;c="rejected";h=a;j.length&&i(l)}function k(a){function b(a){return function(v){e||(e=!0,a(v))}}var e=!1;delete m.parentCancel;try{var n=a&&
(typeof a==="object"||typeof a==="function")&&a.then;if(typeof n==="function")if(a===g)f(new TypeError);else{c="assumed";var s=a&&a.cancel;if(typeof s!=="function"){var q=new d,a=q.promise;try{n(q.resolve,q.reject,q.progress)}catch(r){q.reject(r)}s=a.cancel;n=a.then}h=a;n.call(a,b(k),b(f));m.parentCancel=s.bind(a)}else c="fulfilled",h=a,j.length&&i(l)}catch(v){b(f)(v)}}function e(){var a=m.parentCancel;if(a)delete m.parentCancel,a();else if(!c)a=Error("Cancel"),a.name="Cancel",f(a)}var h,c,j=[],g=
this,m={};Object.defineProperty(this,"_protected",{value:function(b){if(b!==a)throw Error("protected");return m}});this.resolve=function(a){c||k(a);return g};this.reject=function(a){c||f(a);return g};this.progress=function(a){c||j.forEach(function(b){if(b.progress)try{b.progress(a)}catch(d){}});return g.promise};this.cancel=function(){m.parentCancel?setTimeout(e,0):e();return g};this.then=function(b,f,e){b={resolve:b,reject:f,progress:e,deferred:new d};j.push(b);b.deferred._protected(a).parentCancel=
g.promise.cancel.bind(g);(c==="fulfilled"||c==="rejected")&&i(l);return b.deferred.promise};this.promise={then:g.then,cancel:g.cancel}}var a=[],e=!1;d.all=function(a,b){function e(a,b){j||(i[a]=b,--h===0&&g.resolve(i))}function c(a,d){if(!j){if(b)try{e(a,b(d));return}catch(h){d=h}g.reject(d)}}var h=a.length,i=[],j=!1,g=new d;g.then(void 0,function(){j=!0;a.forEach(function(a){a.cancel&&a.cancel()})});h===0?g.resolve(i):a.forEach(function(a,b){a.then(e.bind(void 0,b),c.bind(void 0,b))});return g.promise};
d.when=function(a,b,e,c){var h;if(!(a&&typeof a.then==="function"))h=new d,h.resolve(a),a=h.promise;return a.then(b,e,c)};return d});
(function(c,i){typeof define==="function"&&define.amd?define("orion/plugin",["orion/Deferred"],i):typeof exports==="object"?module.exports=i(require("orion/Deferred")):(c.orion=c.orion||{},c.orion.PluginProvider=i(c.orion.Deferred))})(this,function(c){function i(b,d){this.__objectId=b;this.__methods=d}return function(b){function d(a){g&&(typeof ArrayBuffer==="undefined"&&(a=JSON.stringify(a)),g===self?g.postMessage(a):g.postMessage(a,"*"))}function a(){var a=[];Object.keys(q).forEach(function(b){var d=
q[b];a.push({serviceId:b,names:d.names,methods:d.methods,properties:d.properties})});return{headers:o||{},services:a}}function e(a,b){if(b&&b instanceof XMLHttpRequest){var d,e;try{d=b.status,e=b.statusText}catch(g){d=0,e=""}return{status:d||0,statusText:e}}return b}function l(a){var b=a?JSON.parse(JSON.stringify(a,e)):a;if(a instanceof Error)b.__isError=!0,b.message=b.message||a.message,b.name=b.name||a.name;return b}function f(a){if(!g)return(new c).reject(Error("plugin not connected"));a.id=String(m++);
var b=new c;u[a.id]=b;b.then(null,function(b){j&&b instanceof Error&&b.name==="Cancel"&&r({requestId:a.id,method:"cancel",params:b.message?[b.message]:[]})});var d=Object.prototype.toString;a.params.forEach(function(e,g){if(d.call(e)==="[object Object]"&&!(e instanceof i)){var c,f;for(c in e)d.call(e[c])==="[object Function]"&&(f=f||[],f.push(c));if(f){var h=p++;s[h]=e;c=function(){delete s[h]};b.then(c,c);a.params[g]=new i(h,f)}}});r(a);return b.promise}function k(a,b){a||a===0?r({id:a,result:null,
error:b}):console.log(b)}function n(a,b,d,e){e.forEach(function(a,b){if(a&&typeof a.__objectId!=="undefined"){var d={};a.__methods.forEach(function(b){d[b]=function(){return f({objectId:a.__objectId,method:b,params:Array.prototype.slice.call(arguments)})}});e[b]=d}});var c=typeof a===void 0?null:{id:a,result:null,error:null};try{var g=d.apply(b,e);if(c)g&&typeof g.then==="function"?(t[a]=g,g.then(function(b){delete t[a];c.result=b;r(c)},function(b){if(t[a])delete t[a],c.error=l(b),r(c)},function(){r({responseId:a,
method:"progress",params:Array.prototype.slice.call(arguments)})})):(c.result=g,r(c))}catch(h){if(c)c.error=l(h),r(c)}}function h(a){if(a.source===g){a=typeof a.data!=="string"?a.data:JSON.parse(a.data);try{if(a.method){var b=a.method,d=a.params||[];if("serviceId"in a){var c=q[a.serviceId];c||k(a.id,"service not found");c=c.implementation;b in c?n(a.id,c,c[b],d):k(a.id,"method not found")}else if("objectId"in a){var e=s[a.objectId];e||k(a.id,"object not found");!b in e?n(a.id,e,e[b],d):k(a.id,"method not found")}else if("requestId"in
a){var f=t[a.requestId];f&&b==="cancel"&&f.cancel&&f.cancel.apply(f,d)}else if("responseId"in a){var h=u[a.responseId];h&&b==="progress"&&h.progress&&h.progress.apply(h,d)}else throw Error("Bad method: "+a.method);}else{var j=u[String(a.id)];delete u[String(a.id)];a.error?j.reject(a.error):j.resolve(a.result)}}catch(l){console.log("Plugin._messageHandler "+l)}}}var o=b,j=!1,g=null,m=0,p=0,w=0,t={},u={},s={},q={},r=d;this.updateHeaders=function(a){if(j)throw Error("Cannot update headers. Plugin Provider is connected");
o=a};this.registerServiceProvider=this.registerService=function(a,b,d){if(j)throw Error("Cannot register service. Plugin Provider is connected");typeof a==="string"?a=[a]:Array.isArray(a)||(a=[]);var c=null,e=[];for(c in b)typeof b[c]==="function"&&e.push(c);q[w++]={names:a,methods:e,implementation:b,properties:d||{},listeners:{}}};this.connect=function(b,c){if(!j){if(typeof window==="undefined")g=self;else if(window!==window.parent)g=window.parent;else if(window.opener!==null)g=window.opener;else{c&&
c("No valid plugin target");return}addEventListener("message",h,!1);var e={method:"plugin",params:[a()]};d(e);j=!0}b&&b()};this.disconnect=function(){j&&(removeEventListener("message",h),g=null,j=!1)}}});
define("orion/editor/stylers/lib/syntax",[],function(){return{id:"orion.lib",grammars:[{id:"orion.lib",patterns:[{include:"#brace_open"},{include:"#brace_close"},{include:"#bracket_open"},{include:"#bracket_close"},{include:"#parenthesis_open"},{include:"#parenthesis_close"},{include:"#number_decimal"},{include:"#number_hex"},{include:"#string_doubleQuote"},{include:"#string_singleQuote"}],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"},doc_block:{begin:"/\\*\\*",end:"\\*/",name:"comment.block.documentation",patterns:[{match:"@(?:(?!\\*/)\\S)*",name:"keyword.other.documentation.tag"},{match:"\\<\\S*\\>",name:"keyword.other.documentation.markup"},{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",patterns:[{include:"orion.lib"},{include:"#comment_singleLine"},{include:"#comment_block"}],repository:{comment_singleLine:{match:"//.*",name:"comment.line.double-slash",patterns:[{include:"orion.lib#todo_comment_singleLine"}]},comment_block:{begin:"/\\*",end:"\\*/",name:"comment.block",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/text_css/syntax",["orion/editor/stylers/lib/syntax"],function(c){var i="alignment-adjust,alignment-baseline,animation-delay,animation-direction,animation-duration,animation-iteration-count,animation-name,animation-play-state,animation-timing-function,animation,appearance,azimuth,backface-visibility,background-attachment,background-clip,background-color,background-image,background-origin,background-position,background-repeat,background-size,background,baseline-shift,binding,bleed,bookmark-label,bookmark-level,bookmark-state,bookmark-target,border-bottom-color,border-bottom-left-radius,border-bottom-right-radius,border-bottom-style,border-bottom-width,border-bottom,border-collapse,border-color,border-image-outset,border-image-repeat,border-image-slice,border-image-source,border-image-width,border-image,border-left-color,border-left-style,border-left-width,border-left,border-radius,border-right-color,border-right-style,border-right-width,border-right,border-spacing,border-style,border-top-color,border-top-left-radius,border-top-right-radius,border-top-style,border-top-width,border-top,border-width,border,bottom,box-align,box-decoration-break,box-direction,box-flex-group,box-flex,box-lines,box-ordinal-group,box-orient,box-pack,box-shadow,box-sizing,break-after,break-before,break-inside,caption-side,clear,clip,color-profile,color,column-count,column-fill,column-gap,column-rule-color,column-rule-style,column-rule-width,column-rule,column-span,column-width,columns,content,counter-increment,counter-reset,crop,cue-after,cue-before,cue,cursor,direction,display,dominant-baseline,drop-initial-after-adjust,drop-initial-after-align,drop-initial-before-adjust,drop-initial-before-align,drop-initial-size,drop-initial-value,elevation,empty-cells,fit-position,fit,flex-align,flex-flow,flex-inline-pack,flex-order,flex-pack,float-offset,float,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,font,grid-columns,grid-rows,hanging-punctuation,height,hyphenate-after,hyphenate-before,hyphenate-character,hyphenate-lines,hyphenate-resource,hyphens,icon,image-orientation,image-rendering,image-resolution,inline-box-align,left,letter-spacing,line-height,line-stacking-ruby,line-stacking-shift,line-stacking-strategy,line-stacking,list-style-image,list-style-position,list-style-type,list-style,margin-bottom,margin-left,margin-right,margin-top,margin,mark-after,mark-before,mark,marker-offset,marks,marquee-direction,marquee-loop,marquee-play-count,marquee-speed,marquee-style,max-height,max-width,min-height,min-width,move-to,nav-down,nav-index,nav-left,nav-right,nav-up,opacity,orphans,outline-color,outline-offset,outline-style,outline-width,outline,overflow-style,overflow-x,overflow-y,overflow,padding-bottom,padding-left,padding-right,padding-top,padding,page-break-after,page-break-before,page-break-inside,page-policy,page,pause-after,pause-before,pause,perspective-origin,perspective,phonemes,pitch-range,pitch,play-during,position,presentation-level,punctuation-trim,quotes,rendering-intent,resize,rest-after,rest-before,rest,richness,right,rotation-point,rotation,ruby-align,ruby-overhang,ruby-position,ruby-span,size,speak-header,speak-numeral,speak-punctuation,speak,speech-rate,stress,string-set,table-layout,target-name,target-new,target-position,target,text-align-last,text-align,text-decoration,text-emphasis,text-height,text-indent,text-justify,text-outline,text-shadow,text-transform,text-wrap,top,transform-origin,transform-style,transform,transition-delay,transition-duration,transition-property,transition-timing-function,transition,unicode-bidi,vertical-align,visibility,voice-balance,voice-duration,voice-family,voice-pitch-range,voice-pitch,voice-rate,voice-stress,voice-volume,volume,white-space-collapse,white-space,widows,width,word-break,word-spacing,word-wrap,z-index".split(","),c=
c.grammars;c.push({id:"orion.css",contentTypes:["text/css"],patterns:[{include:"orion.lib"},{include:"orion.c-like#comment_block"},{match:"(?:-webkit-|-moz-|-ms-|\\b)(?:"+i.join("|")+")\\b",name:"keyword.control.css"},{match:"(?i)\\b-?(?:\\.\\d+|\\d+\\.?\\d*)(?:%|em|ex|ch|rem|vw|vh|vmin|vmax|in|cm|mm|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?\\b",name:"constant.numeric.value.css"},{begin:"(['\"])(?:\\\\.|[^\\\\\\1])*\\\\$",end:"^(?:$|(?:\\\\.|[^\\\\\\1])*(\\1|[^\\\\]$))",name:"string.quoted.multiline.css"}],
repository:{number_hex:{match:"#[0-9A-Fa-f]+\\b",name:"constant.numeric.hex.css"}}});return{id:c[c.length-1].id,grammars:c,keywords:i}});
define("orion/editor/templates",[],function(){function c(b,d,a,c){this.prefix=b;this.description=d;this.template=a;this.name=c;this._parse()}function i(b,d){this._keywords=b||[];this._templates=[];this.addTemplates(d||[])}c.prototype={getProposal:function(b,d,a){var b=d-b.length,d={},c,l=a.delimiter!==void 0?a.delimiter:"\n";a.indentation&&(l+=a.indentation);for(var f=a.tab!==void 0?a.tab:"\t",k=0,i=this.variables,h=this.segments,a=[],o=0;o<h.length;o++){var j=h[o],g=i[j];if(g!==void 0)switch(j){case "${tab}":j=
f;break;case "${delimiter}":j=l;break;case "${cursor}":j="";c=k;break;default:var m=d[j];m||(m=d[j]={data:g.data,positions:[]});j=g.substitution;m.data&&m.data.values&&(j=m.data.values[0]);m.positions.push({offset:b+k,length:j.length})}a.push(j);k+=j.length}var l=[],p;for(p in d)d.hasOwnProperty(p)&&l.push(d[p]);a=a.join("");if(c===void 0)c=a.length;return{proposal:a,name:this.name,description:this.description,groups:l,escapePosition:b+c,style:"noemphasis"}},match:function(b){return this.prefix.indexOf(b)===
0},_parse:function(){var b=this.template,d=[],a={},c,l=0,b=b.replace(/\n/g,"${delimiter}"),b=b.replace(/\t/g,"${tab}");b.replace(/\$\{((?:[^\\}]+|\\.))*\}/g,function(f,k,i){var h=f.substring(2,f.length-1),k=f,o=h,j=null,g=o.indexOf(":");g!==-1&&(o=o.substring(0,g),k="${"+o+"}",j=JSON.parse(h.substring(g+1).replace("\\}","}").trim()));(h=a[k])||(h=a[k]={});h.substitution=o;if(j)h.data=j;(c=b.substring(l,i))&&d.push(c);d.push(k);l=i+f.length;return o});(c=b.substring(l,b.length))&&d.push(c);this.segments=
d;this.variables=a}};i.prototype={addTemplates:function(b){for(var d=this.getTemplates(),a=0;a<b.length;a++)d.push(new c(b[a].prefix,b[a].description,b[a].template,b[a].name))},computeProposals:function(b,c,a){var e=this.getPrefix(b,c,a),i=[];this.isValid(e,b,c,a)&&(i=i.concat(this.getTemplateProposals(e,c,a)),i=i.concat(this.getKeywordProposals(e)));return i},getKeywords:function(){return this._keywords},getKeywordProposals:function(b){var c=[],a=this.getKeywords();if(a){for(var e=0;e<a.length;e++)a[e].indexOf(b)===
0&&c.push({proposal:a[e].substring(b.length),description:a[e],style:"noemphasis_keyword"});0<c.length&&c.splice(0,0,{proposal:"",description:"Keywords",style:"noemphasis_title_keywords",unselectable:!0})}return c},getPrefix:function(b,c,a){return a.prefix},getTemplates:function(){return this._templates},getTemplateProposals:function(b,c,a){for(var e=[],i=this.getTemplates(),f=0;f<i.length;f++){var k=i[f];k.match(b)&&(k=k.getProposal(b,c,a),this.removePrefix(b,k),e.push(k))}0<e.length&&(e.sort(function(a,
b){return a.name<b.name?-1:a.name>b.name?1:0}),e.splice(0,0,{proposal:"",description:"Templates",style:"noemphasis_title",unselectable:!0}));return e},removePrefix:function(b,c){if(!(c.overwrite=c.proposal.substring(0,b.length)!==b))c.proposal=c.proposal.substring(b.length)},isValid:function(){return!0}};return{Template:c,TemplateContentAssist:i}});
define("orion/editor/cssContentAssist",["orion/editor/templates","orion/editor/stylers/text_css/syntax"],function(c,i){function b(a){return JSON.stringify(a).replace("}","\\}")}function d(){}for(var a={type:"link",values:"visible,hidden,scroll,auto,no-display,no-content".split(",")},e={type:"link",values:"solid,dashed,dotted,double,groove,ridge,inset,outset".split(",")},l={type:"link",values:[]},f=0;f<10;f++)l.values.push(f.toString());for(var k={type:"link",values:"black,white,red,green,blue,magenta,yellow,cyan,grey,darkred,darkgreen,darkblue,darkmagenta,darkcyan,darkyellow,darkgray,lightgray".split(",")},
n=[{prefix:"rule",description:"rule - class selector rule",template:".${class} {\n\t${cursor}\n}"},{prefix:"rule",description:"rule - id selector rule",template:"#${id} {\n\t${cursor}\n}"},{prefix:"outline",description:"outline - outline style",template:"outline: ${color:"+b(k)+"} ${style:"+b(e)+"} ${width:"+b(l)+"}px;"},{prefix:"background-image",description:"background-image - image style",template:'background-image: url("${uri}");'},{prefix:"url",description:"url - url image",template:'url("${uri}");'},
{prefix:"rgb",description:"rgb - rgb color",template:"rgb(${red},${green},${blue});"},{prefix:"@",description:"import - import style sheet",template:'@import "${uri}";'}],h=[{prop:"display",values:{type:"link",values:"none,block,box,flex,inline,inline-block,inline-flex,inline-table,list-item,table,table-caption,table-cell,table-column,table-column-group,table-footer-group,table-header-group,table-row,table-row-group,inherit".split(",")}},{prop:"overflow",values:a},{prop:"overflow-x",values:a},{prop:"overflow-y",
values:a},{prop:"float",values:{type:"link",values:["left","right","none","inherit"]}},{prop:"position",values:{type:"link",values:["absolute","fixed","relative","static","inherit"]}},{prop:"cursor",values:{type:"link",values:"auto,crosshair,default,e-resize,help,move,n-resize,ne-resize,nw-resize,pointer,progress,s-resize,se-resize,sw-resize,text,w-resize,wait,inherit".split(",")}},{prop:"color",values:k},{prop:"border-top-color",values:k},{prop:"border-bottom-color",values:k},{prop:"border-right-color",
values:k},{prop:"border-left-color",values:k},{prop:"background-color",values:k},{prop:"font-style",values:{type:"link",values:["italic","normal","oblique","inherit"]}},{prop:"font-weight",values:{type:"link",values:"bold,normal,bolder,lighter,100,200,300,400,500,600,700,800,900,inherit".split(",")}},{prop:"white-space",values:{type:"link",values:"pre,pre-line,pre-wrap,nowrap,normal,inherit".split(",")}},{prop:"word-wrap",values:{type:"link",values:["normal","break-word"]}},{prop:"visibility",values:{type:"link",
values:["hidden","visible","collapse","inherit"]}}],f=0;f<h.length;f++)a=h[f],n.push({prefix:a.prop,description:a.prop+" - "+a.prop+" style",template:a.prop+": ${value:"+b(a.values)+"};"});h="width,height,top,bottom,left,right,min-width,min-height,max-width,max-height,margin,padding,padding-left,padding-right,padding-top,padding-bottom,margin-left,margin-top,margin-bottom,margin-right".split(",");for(f=0;f<h.length;f++)a=h[f],n.push({prefix:a,description:a+" - "+a+" pixel style",template:a+": ${value}px;"});
h=["padding","margin"];for(f=0;f<h.length;f++)a=h[f],n.push({prefix:a,description:a+" - "+a+" top right bottom left style",template:a+": ${top}px ${left}px ${bottom}px ${right}px;"}),n.push({prefix:a,description:a+" - "+a+" top right,left bottom style",template:a+": ${top}px ${right_left}px ${bottom}px;"}),n.push({prefix:a,description:a+" - "+a+" top,bottom right,left style",template:a+": ${top_bottom}px ${right_left}px"});h=["border","border-top","border-bottom","border-left","border-right"];for(f=
0;f<h.length;f++)a=h[f],n.push({prefix:a,description:a+" - "+a+" style",template:a+": ${width:"+b(l)+"}px ${style:"+b(e)+"} ${color:"+b(k)+"};"});d.prototype=new c.TemplateContentAssist(i.keywords,n);d.prototype.getPrefix=function(a,b){for(var c=b;c&&/[A-Za-z\-\@]/.test(a.charAt(c-1));)c--;return c?a.substring(c,b):""};return{CssContentAssistProvider:d}});
define('built-cssPlugin.js',["orion/plugin","orion/editor/stylers/text_css/syntax","orion/editor/cssContentAssist"],function(c,i,b){c=new c({name:"Orion CSS Tool Support",version:"1.0",description:"This plugin provides CSS tools support for Orion."});c.registerServiceProvider("orion.core.contenttype",{},{contentTypes:[{id:"text/css","extends":"text/plain",name:"CSS",extension:["css"],imageClass:"file-sprite-css modelDecorationSprite"}]});c.registerService("orion.edit.contentassist",new b.CssContentAssistProvider,
{name:"CSS content assist",contentType:["text/css"]});c.registerServiceProvider("orion.edit.highlighter",{},i.grammars[i.grammars.length-1]);c.connect()});