(function(a,h){"function"===typeof define&&define.amd?define("orion/Deferred",h):"object"===typeof exports?module.exports=h():(a.orion=a.orion||{},a.orion.Deferred=h())})(this,function(){function a(){for(var b;b=c.shift();)b();d=!1}function h(b){c.push(b);d||(d=!0,g())}function f(b){return function(c){b(c)}}function b(){function c(){for(var b;b=m.shift();){var a=b.deferred,d="fulfilled"===e?"resolve":"reject";b=b[d];if("function"===typeof b)try{var k=b(n),p=k&&("object"===typeof k||"function"===typeof k)&&
k.then;if("function"===typeof p)if(k===a.promise)a.reject(new TypeError);else{var g=k.cancel;"function"===typeof g?a._parentCancel=g.bind(k):delete a._parentCancel;p.call(k,f(a.resolve),f(a.reject),f(a.progress))}else a.resolve(k)}catch(h){a.reject(h)}else a[d](n)}}function a(b){delete l._parentCancel;e="rejected";n=b;m.length&&h(c)}function d(f){function g(z){return function(a){(!e||"assumed"===e)&&z(a)}}delete l._parentCancel;try{var q=f&&("object"===typeof f||"function"===typeof f)&&f.then;if("function"===
typeof q)if(f===l)a(new TypeError);else{e="assumed";var t=f&&f.cancel;if("function"!==typeof t){var s=new b;f=s.promise;try{q(s.resolve,s.reject,s.progress)}catch(v){s.reject(v)}t=f.cancel;q=f.then}n=f;q.call(f,g(d),g(a));l._parentCancel=t.bind(f)}else e="fulfilled",n=f,m.length&&h(c)}catch(r){g(a)(r)}}function g(){var b=l._parentCancel;b?(delete l._parentCancel,b()):e||(b=Error("Cancel"),b.name="Cancel",a(b))}var n,e,m=[],l=this;this.resolve=function(b){e||d(b);return l};this.reject=function(b){e||
a(b);return l};this.progress=function(b){e||m.forEach(function(a){if(a.progress)try{a.progress(b)}catch(f){}});return l.promise};this.cancel=function(){l._parentCancel?setTimeout(g,0):g();return l};this.then=function(a,f,k){var d=new b;d._parentCancel=l.promise.cancel;m.push({resolve:a,reject:f,progress:k,deferred:d});("fulfilled"===e||"rejected"===e)&&h(c);return d.promise};this.promise={then:l.then,cancel:l.cancel}}var c=[],d=!1,g=function(){if("undefined"!==typeof process&&"function"===typeof process.nextTick){var b=
process.nextTick;return function(){b(a)}}if("function"===typeof MutationObserver){var f=document.createElement("div");(new MutationObserver(a)).observe(f,{attributes:!0});return function(){f.setAttribute("class","_tick")}}return function(){setTimeout(a,0)}}();b.all=function(a,f){function c(b,a){h||(e[b]=a,0===--g&&l.resolve(e))}function d(b,a){if(!h){if(f)try{c(b,f(a));return}catch(e){a=e}l.reject(a)}}var g=a.length,e=[],h=!1,l=new b;l.then(void 0,function(){h=!0;a.forEach(function(b){b.cancel&&b.cancel()})});
0===g?l.resolve(e):a.forEach(function(b,a){b.then(c.bind(void 0,a),d.bind(void 0,a))});return l.promise};b.when=function(a,f,c,d){var g;a&&"function"===typeof a.then||(g=new b,g.resolve(a),a=g.promise);return a.then(f,c,d)};return b});
(function(a,h){"function"===typeof define&&define.amd?define("orion/plugin",["orion/Deferred"],h):"object"===typeof exports?module.exports=h(require("orion/Deferred")):(a.orion=a.orion||{},a.orion.PluginProvider=h(a.orion.Deferred))})(this,function(a){function h(a,b){this.__objectId=a;this.__methods=b}return function(f){function b(a){m&&("undefined"===typeof ArrayBuffer&&(a=JSON.stringify(a)),m===self?m.postMessage(a):m.postMessage(a,"*"))}function c(){var a=[];Object.keys(v).forEach(function(b){var f=
v[b];a.push({serviceId:b,names:f.names,methods:f.methods,properties:f.properties})});return{headers:n||{},services:a}}function d(a,b){if(b&&b instanceof XMLHttpRequest){var f,c;try{f=b.status,c=b.statusText}catch(d){f=0,c=""}return{status:f||0,statusText:c}}return b}function g(a){var b=a?JSON.parse(JSON.stringify(a,d)):a;a instanceof Error&&(b.__isError=!0,b.message=b.message||a.message,b.name=b.name||a.name);return b}function p(b){if(!m)return(new a).reject(Error("plugin not connected"));b.id=String(l++);
var f=new a;t[b.id]=f;f.then(null,function(a){e&&a instanceof Error&&"Cancel"===a.name&&r({requestId:b.id,method:"cancel",params:a.message?[a.message]:[]})});var c=Object.prototype.toString;b.params.forEach(function(a,d){if("[object Object]"===c.call(a)&&!(a instanceof h)){var e,g;for(e in a)"[object Function]"===c.call(a[e])&&(g=g||[],g.push(e));if(g){var k=w++;s[k]=a;e=function(){delete s[k]};f.then(e,e);b.params[d]=new h(k,g)}}});r(b);return f.promise}function k(a,b){a||0===a?r({id:a,result:null,
error:b}):console.log(b)}function u(a,b,f,c){c.forEach(function(a,b){if(a&&"undefined"!==typeof a.__objectId){var f={};a.__methods.forEach(function(b){f[b]=function(){return p({objectId:a.__objectId,method:b,params:Array.prototype.slice.call(arguments)})}});c[b]=f}});var e=void 0===typeof a?null:{id:a,result:null,error:null};try{var d=f.apply(b,c);e&&(d&&"function"===typeof d.then?(x[a]=d,d.then(function(b){delete x[a];e.result=b;r(e)},function(b){x[a]&&(delete x[a],e.error=g(b),r(e))},function(){r({responseId:a,
method:"progress",params:Array.prototype.slice.call(arguments)})})):(e.result=d,r(e)))}catch(k){e&&(e.error=g(k),r(e))}}function q(a){if(!(a.source!==m&&"undefined"!==typeof window)){a="string"!==typeof a.data?a.data:JSON.parse(a.data);try{if(a.method){var b=a.method,f=a.params||[];if("serviceId"in a){var c=v[a.serviceId];c||k(a.id,"service not found");c=c.implementation;b in c?u(a.id,c,c[b],f):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?u(a.id,e,e[b],f):k(a.id,"method not found")}else if("requestId"in a){var d=x[a.requestId];d&&"cancel"===b&&d.cancel&&d.cancel.apply(d,f)}else if("responseId"in a){var g=t[a.responseId];g&&"progress"===b&&g.progress&&g.progress.apply(g,f)}else throw Error("Bad method: "+a.method);}else{var h=t[String(a.id)];delete t[String(a.id)];a.error?h.reject(a.error):h.resolve(a.result)}}catch(l){console.log("Plugin._messageHandler "+l)}}}var n=f,e=!1,m=null,l=0,w=0,y=0,x={},t={},s={},v={},r=b;this.updateHeaders=
function(a){if(e)throw Error("Cannot update headers. Plugin Provider is connected");n=a};this.registerServiceProvider=this.registerService=function(a,b,f){if(e)throw Error("Cannot register service. Plugin Provider is connected");"string"===typeof a?a=[a]:Array.isArray(a)||(a=[]);var c=null,d=[];for(c in b)"function"===typeof b[c]&&d.push(c);v[y++]={names:a,methods:d,implementation:b,properties:f||{},listeners:{}}};this.connect=function(a,f){if(!e){if("undefined"===typeof window)m=self;else if(window!==
window.parent)m=window.parent;else if(null!==window.opener)m=window.opener;else{f&&f("No valid plugin target");return}addEventListener("message",q,!1);var d={method:"plugin",params:[c()]};b(d);e=!0}a&&a()};this.disconnect=function(){e&&(removeEventListener("message",q),m=null,e=!1)}}});
define("orion/editor/templates",[],function(){function a(a,b,c,d){this.prefix=a;this.description=b;this.template=c;this.name=d;this._parse()}function h(a,b){this._keywords=a||[];this._templates=[];this.addTemplates(b||[])}a.prototype={getProposal:function(a,b,c){a=b-a.length;b={};var d,g=void 0!==c.delimiter?c.delimiter:"\n";c.indentation&&(g+=c.indentation);var h=void 0!==c.tab?c.tab:"\t",k=0,u=this.variables,q=this.segments;c=[];for(var n=0;n<q.length;n++){var e=q[n],m=u[e];if(void 0!==m)switch(e){case "${tab}":e=
h;break;case "${delimiter}":e=g;break;case "${cursor}":e="";d=k;break;default:var l=b[e];l||(l=b[e]={data:m.data,positions:[]});e=m.substitution;l.data&&l.data.values&&(e=l.data.values[0]);l.positions.push({offset:a+k,length:e.length})}c.push(e);k+=e.length}var g=[],w;for(w in b)b.hasOwnProperty(w)&&g.push(b[w]);c=c.join("");void 0===d&&(d=c.length);return{proposal:c,name:this.name,description:this.description,groups:g,escapePosition:a+d,style:"noemphasis"}},match:function(a){return 0===this.prefix.indexOf(a)},
_parse:function(){var a=this.template,b=[],c={},d,g=0,a=a.replace(/\n/g,"${delimiter}"),a=a.replace(/\t/g,"${tab}");a.replace(/\$\{((?:[^\\}]+|\\.))*\}/g,function(h,k,u){var q=h.substring(2,h.length-1);k=h;var n=q,e=null,m=n.indexOf(":");-1!==m&&(n=n.substring(0,m),k="${"+n+"}",e=JSON.parse(q.substring(m+1).replace("\\}","}").trim()));(q=c[k])||(q=c[k]={});q.substitution=n;e&&(q.data=e);(d=a.substring(g,u))&&b.push(d);b.push(k);g=u+h.length;return n});(d=a.substring(g,a.length))&&b.push(d);this.segments=
b;this.variables=c}};h.prototype={addTemplates:function(f){for(var b=this.getTemplates(),c=0;c<f.length;c++)b.push(new a(f[c].prefix,f[c].description,f[c].template,f[c].name))},computeProposals:function(a,b,c){var d=this.getPrefix(a,b,c),g=[];this.isValid(d,a,b,c)&&(g=g.concat(this.getTemplateProposals(d,b,c)),g=g.concat(this.getKeywordProposals(d)));return g},getKeywords:function(){return this._keywords},getKeywordProposals:function(a){var b=[],c=this.getKeywords();if(c){for(var d=0;d<c.length;d++)0===
c[d].indexOf(a)&&b.push({proposal:c[d].substring(a.length),description:c[d],style:"noemphasis_keyword"});0<b.length&&b.splice(0,0,{proposal:"",description:"Keywords",style:"noemphasis_title_keywords",unselectable:!0})}return b},getPrefix:function(a,b,c){return c.prefix},getTemplates:function(){return this._templates},getTemplateProposals:function(a,b,c){for(var d=[],g=this.getTemplates(),h=0;h<g.length;h++){var k=g[h];k.match(a)&&(k=k.getProposal(a,b,c),this.removePrefix(a,k),d.push(k))}0<d.length&&
(d.sort(function(a,b){return a.name<b.name?-1:a.name>b.name?1:0}),d.splice(0,0,{proposal:"",description:"Templates",style:"noemphasis_title",unselectable:!0}));return d},removePrefix:function(a,b){if(!(b.overwrite=b.proposal.substring(0,a.length)!==a))b.proposal=b.proposal.substring(a.length)},isValid:function(a,b,c,d){return!0}};return{Template:a,TemplateContentAssist:h}});
define("orion/editor/htmlContentAssist",["orion/editor/templates"],function(a){function h(){}var f=new a.Template("","Simple HTML document",'\x3c!DOCTYPE html\x3e\n\x3chtml lang\x3d"en"\x3e\n\t\x3chead\x3e\n\t\t\x3cmeta charset\x3dutf-8\x3e\n\t\t\x3ctitle\x3e${title}\x3c/title\x3e\n\t\x3c/head\x3e\n\t\x3cbody\x3e\n\t\t\x3ch1\x3e${header}\x3c/h1\x3e\n\t\t\x3cp\x3e\n\t\t\t${cursor}\n\t\t\x3c/p\x3e\n\t\x3c/body\x3e\n\x3c/html\x3e'),b=[{prefix:"\x3cimg",name:"\x3cimg\x3e",description:" - HTML image element",
template:'\x3cimg src\x3d"${cursor}" alt\x3d"${Image}"/\x3e'},{prefix:"\x3ca",name:"\x3ca\x3e",description:" - HTML anchor element",template:'\x3ca href\x3d"${cursor}"\x3e\x3c/a\x3e'},{prefix:"\x3cul",name:"\x3cul\x3e",description:" - HTML unordered list",template:"\x3cul\x3e\n\t\x3cli\x3e${cursor}\x3c/li\x3e\n\x3c/ul\x3e"},{prefix:"\x3col",name:"\x3col\x3e",description:" - HTML ordered list",template:"\x3col\x3e\n\t\x3cli\x3e${cursor}\x3c/li\x3e\n\x3c/ol\x3e"},{prefix:"\x3cdl",name:"\x3cdl\x3e",
description:" - HTML definition list",template:"\x3cdl\x3e\n\t\x3cdt\x3e${cursor}\x3c/dt\x3e\n\t\x3cdd\x3e\x3c/dd\x3e\n\x3c/dl\x3e"},{prefix:"\x3ctable",name:"\x3ctable\x3e",description:" - basic HTML table",template:"\x3ctable\x3e\n\t\x3ctr\x3e\n\t\t\x3ctd\x3e${cursor}\x3c/td\x3e\n\t\x3c/tr\x3e\n\x3c/table\x3e"},{prefix:"\x3c!--",name:"\x3c!-- --\x3e",description:" - HTML comment",template:"\x3c!-- ${cursor} --\x3e"}],c,d,g,p,k="abbr b button canvas cite command dd del dfn dt em embed font h1 h2 h3 h4 h5 h6 i ins kbd label li mark meter object option output progress q rp rt samp small strong sub sup td time title tt u var".split(" ");
for(p=0;p<k.length;p++)c=k[p],g="\x3c"+c+"\x3e\x3c/"+c+"\x3e",d="\x3c"+c+"\x3e${cursor}\x3c/"+c+"\x3e",b.push({prefix:"\x3c"+c,description:g,template:d});k="address article aside audio bdo blockquote body caption code colgroup datalist details div fieldset figure footer form head header hgroup iframe legend map menu nav noframes noscript optgroup p pre ruby script section select span style tbody textarea tfoot th thead tr video".split(" ");for(p=0;p<k.length;p++)c=k[p],g="\x3c"+c+"\x3e\x3c/"+c+"\x3e",
d="\x3c"+c+"\x3e\n\t${cursor}\n\x3c/"+c+"\x3e",b.push({prefix:"\x3c"+c,description:g,template:d});k="area base br col hr input link meta param keygen source".split(" ");for(p=0;p<k.length;p++)c=k[p],d=g="\x3c"+c+"/\x3e",b.push({prefix:"\x3c"+c,description:g,template:d});h.prototype=new a.TemplateContentAssist([],b);h.prototype.getPrefix=function(a,b,c){c="";for(var e=b;e&&/[A-Za-z0-9<!-]/.test(a.charAt(e-1));)if(e--,"\x3c"===a.charAt(e)){c=a.substring(e,b);break}return c};h.prototype.computeProposals=
function(b,c,d){return 0===b.length?[f.getProposal("",c,d)]:a.TemplateContentAssist.prototype.computeProposals.call(this,b,c,d).sort(function(a,b){var c=a.prefix||a.proposal,d=b.prefix||b.proposal;if(c){if(!d)return 1}else return-1;return c.toLowerCase().localeCompare(d.toLowerCase())})};return{HTMLContentAssistProvider:h}});
define("orion/editor/htmlGrammar",[],function(){return{HtmlGrammar:function(){return{scopeName:"source.html",uuid:"3B5C76FB-EBB5-D930-F40C-047D082CE99B",patterns:[{begin:"\x3c!(doctype|DOCTYPE)",end:"\x3e",contentName:"entity.name.tag.doctype.html",beginCaptures:{0:{name:"entity.name.tag.doctype.html"}},endCaptures:{0:{name:"entity.name.tag.doctype.html"}}},{begin:"\x3c!--",end:"--\x3e",beginCaptures:{0:{name:"punctuation.definition.comment.html"}},endCaptures:{0:{name:"punctuation.definition.comment.html"}},
patterns:[{match:"--",name:"invalid.illegal.badcomment.html"}],contentName:"comment.block.html"},{match:"\x3c[A-Za-z0-9_\\-:]+(?\x3d ?)",name:"entity.name.tag.html"},{include:"#attrName"},{include:"#qString"},{include:"#qqString"},{include:"#entity"},{match:"\x3c/[A-Za-z0-9_\\-:]+\x3e",name:"entity.name.tag.html"},{match:"\x3e",name:"entity.name.tag.html"}],repository:{attrName:{match:"[A-Za-z\\-:]+(?\x3d\\s*\x3d\\s*['\"])",name:"entity.other.attribute.name.html"},qqString:{match:'(")[^"]+(")',name:"string.quoted.double.html"},
qString:{match:"(')[^']+(')",name:"string.quoted.single.html"},entity:{match:"\x26[A-Za-z0-9]+;",name:"constant.character.entity.html"}}}}}});
define("orion/editor/stylers/lib/syntax",[],function(){return{id:"orion.lib",grammars:[{id:"orion.lib",repository:{brace_open:{match:"{",name:"punctuation.section.block.begin"},brace_close:{match:"}",name:"punctuation.section.block.end"},bracket_open:{match:"\\[",name:"punctuation.section.bracket.begin"},bracket_close:{match:"\\]",name:"punctuation.section.bracket.end"},parenthesis_open:{match:"\\(",name:"punctuation.section.parens.begin"},parenthesis_close:{match:"\\)",name:"punctuation.section.parens.end"},
doc_block:{begin:{match:"/\\*\\*",literal:"/**"},end:{match:"\\*/",literal:"*/"},name:"comment.block.documentation",patterns:[{match:"@(?:(?!\\*/)\\S)*",name:"keyword.other.documentation.tag"},{match:"\\\x3c\\S*\\\x3e",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",repository:{comment_singleLine:{match:{match:"//.*",literal:"//"},name:"comment.line.double-slash",
patterns:[{include:"orion.lib#todo_comment_singleLine"}]},comment_block:{begin:{match:"/\\*",literal:"/*"},end:{match:"\\*/",literal:"*/"},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/application_javascript/syntax",["orion/editor/stylers/lib/syntax"],function(a){var h="break case class catch continue const debugger default delete do else enum export extends false finally for function if implements import in instanceof interface let new null package private protected public return static super switch this throw true try typeof undefined var void while with yield".split(" ");a=a.grammars;a.push({id:"orion.js",contentTypes:["application/javascript"],patterns:[{begin:"'(?:\\\\.|[^\\\\'])*\\\\$",
end:"^(?:$|(?:\\\\.|[^\\\\'])*('|[^\\\\]$))",name:"string.quoted.single.js"},{begin:'"(?:\\\\.|[^\\\\"])*\\\\$',end:'^(?:$|(?:\\\\.|[^\\\\"])*("|[^\\\\]$))',name:"string.quoted.double.js"},{include:"orion.lib#string_doubleQuote"},{include:"orion.lib#string_singleQuote"},{include:"orion.c-like#comment_singleLine"},{match:"/(?![\\s\\*])(?:\\\\.|[^/])+/(?:[gim]{0,3})",name:"string.regexp.js"},{include:"orion.lib#doc_block"},{include:"orion.c-like#comment_block"},{include:"orion.lib#brace_open"},{include:"orion.lib#brace_close"},
{include:"orion.lib#bracket_open"},{include:"orion.lib#bracket_close"},{include:"orion.lib#parenthesis_open"},{include:"orion.lib#parenthesis_close"},{include:"orion.lib#number_decimal"},{include:"orion.lib#number_hex"},{match:"\\b(?:"+h.join("|")+")\\b",name:"keyword.control.js"}]});return{id:a[a.length-1].id,grammars:a,keywords:h}});
define("orion/editor/stylers/text_css/syntax",["orion/editor/stylers/lib/syntax"],function(a){var h="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(" ");a=
a.grammars;a.push({id:"orion.css",contentTypes:["text/css"],patterns:[{begin:"'(?:\\\\.|[^\\\\'])*\\\\$",end:"^(?:$|(?:\\\\.|[^\\\\'])*('|[^\\\\]$))",name:"string.quoted.single.css"},{begin:'"(?:\\\\.|[^\\\\"])*\\\\$',end:'^(?:$|(?:\\\\.|[^\\\\"])*("|[^\\\\]$))',name:"string.quoted.double.css"},{include:"orion.lib#string_doubleQuote"},{include:"orion.lib#string_singleQuote"},{include:"orion.c-like#comment_block"},{include:"orion.lib#brace_open"},{include:"orion.lib#brace_close"},{include:"orion.lib#bracket_open"},
{include:"orion.lib#bracket_close"},{include:"orion.lib#parenthesis_open"},{include:"orion.lib#parenthesis_close"},{include:"orion.lib#number_decimal"},{include:"#number_hex"},{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"},{match:"(?:-webkit-|-moz-|-ms-|\\b)(?:"+h.join("|")+")\\b",name:"keyword.control.css"}],repository:{number_hex:{match:"#[0-9A-Fa-f]+\\b",name:"constant.numeric.hex.css"}}});
return{id:a[a.length-1].id,grammars:a,keywords:h}});
define("orion/editor/stylers/application_xml/syntax",["orion/editor/stylers/lib/syntax"],function(a){a=a.grammars;a.push({id:"orion.xml",contentTypes:["application/xml","application/xhtml+xml"],patterns:[{include:"#comment"},{include:"#doctype"},{include:"#xmlDeclaration"},{include:"#tag"},{include:"#ampersandEscape"}],repository:{ampersandEscape:{match:"\x26lt;|\x26gt;|\x26amp;",name:"constant.character"},comment:{begin:{match:"\x3c!--",literal:"\x3c!--"},end:{match:"--\x3e",literal:"--\x3e"},name:"comment.block.xml",
patterns:[{match:"(\\b)(TODO)(\\b)(((?!--\x3e).)*)",name:"meta.annotation.task.todo",captures:{2:{name:"keyword.other.documentation.task"},4:{name:"comment.line"}}}]},doctype:{begin:"\x3c!(?:doctype|DOCTYPE)",end:"\x3e",name:"meta.tag.doctype.xml",captures:{0:{name:"entity.name.tag.doctype.xml"}},patterns:[{include:"#comment"},{include:"orion.lib#string_doubleQuote"},{include:"orion.lib#string_singleQuote"}]},tag:{begin:"\x3c/?[A-Za-z0-9]+",end:"/?\x3e",captures:{0:{name:"entity.name.tag.xml"}},name:"meta.tag.xml",
patterns:[{include:"#comment"},{include:"orion.lib#string_doubleQuote"},{include:"orion.lib#string_singleQuote"}]},xmlDeclaration:{begin:"\x3c\\?xml",end:"\\?\x3e",captures:{0:{name:"entity.name.tag.declaration.xml"}},patterns:[{include:"#comment"},{include:"orion.lib#string_doubleQuote"},{include:"orion.lib#string_singleQuote"}],name:"meta.tag.declaration.xml"}}});return{id:a[a.length-1].id,grammars:a,keywords:[]}});
define("orion/editor/stylers/text_html/syntax",["orion/editor/stylers/lib/syntax","orion/editor/stylers/application_javascript/syntax","orion/editor/stylers/text_css/syntax","orion/editor/stylers/application_xml/syntax"],function(a,h,f,b){a=a.grammars.concat(h.grammars).concat(f.grammars).concat(b.grammars);a.push({id:"orion.html",contentTypes:["text/html"],patterns:[{begin:"(?i)(\x3cstyle)([^\x3e]*)(\x3e)",end:"(?i)(\x3c/style\x3e)",captures:{1:{name:"entity.name.tag.html"},3:{name:"entity.name.tag.html"}},
contentName:"source.css.embedded.html",patterns:[{include:"orion.css"}]},{begin:"(?i)\x3cscript\\s*\x3e|\x3cscript\\s.*?(?:language\\s*\x3d\\s*(['\"])javascript\\1|type\\s*\x3d\\s*(['\"])(?:text|application)/(?:javascript|ecmascript)\\2).*?\x3e",end:"(?i)\x3c/script\x3e",captures:{0:{name:"entity.name.tag.html"}},contentName:"source.js.embedded.html",patterns:[{include:"orion.js"}]},{include:"orion.xml#comment"},{include:"orion.xml#doctype"},{include:"orion.xml#tag"},{include:"orion.xml#ampersandEscape"}]});
return{id:a[a.length-1].id,grammars:a,keywords:[]}});
define("built-htmlPlugin.js",["orion/plugin","orion/editor/htmlContentAssist","orion/editor/htmlGrammar","orion/editor/stylers/text_html/syntax"],function(a,h,f,b){a=new a({name:"Orion HTML Tool Support",version:"1.0",description:"This plugin provides HTML tools support for Orion."});a.registerServiceProvider("orion.core.contenttype",{},{contentTypes:[{id:"text/html","extends":"text/plain",name:"HTML",extension:["html","htm"],imageClass:"file-sprite-html modelDecorationSprite"}]});a.registerService("orion.edit.contentassist",
new h.HTMLContentAssistProvider,{name:"HTML content assist",contentType:["text/html"],charTriggers:"\x3c",excludedStyles:"(comment.*|string.*)"});a.registerServiceProvider("orion.edit.highlighter",{},b.grammars[b.grammars.length-1]);a.connect()});
//@ sourceMappingURL=built-htmlPlugin.js.map