//>>built define("xstyle/core/base","xstyle/core/elemental xstyle/core/expression xstyle/core/Definition xstyle/core/utils put-selector/put xstyle/core/Rule xstyle/core/es6".split(" "),function(r,g,t,h,x,k,B){function l(a,b,d){function c(b){return{selectElement:function(e){d.newElement&&(e=e.parentNode);if(b&&b.selector)for(;!u(e,b);)if(e=e.parentNode,!e)throw Error("Rule not found");if(d.inherit)for(;!(a in e);)if(e=e.parentNode,!e)throw Error(a?a+" not found":"Property was never defined");return e},forElement:function(e){var c= e;e=this.selectElement(e);d.newElement&&(e["_"+a+"Node"]=c);e=d.get?d.get(e,a):e[a];return void 0===e&&b?n(a).valueOf().forRule(b):e},forRule:d.inherit&&function(a){return c(a)}}}var f=new t(function(){return c(b)});f.define=function(b,c){return l(a||c,b,d)};f.keepCSSValue=!0;f.put=d.inherit?function(b,d){return n(a).put(b,d,a)}:function(c){return{forElement:function(e){if(b&&b.selector)for(;!u(e,b);)if(e=e.parentNode,!e)throw Error("Rule not found");d.set?d.set(e,a,c):e[a]=c;f.invalidate({elements:[e]})}}}; return f}function C(a,b,d,c){return h.when(g.evaluate(a,d),function(b){b.forElement?r.addRenderer(a,function(a){c(b.forElement(a),a)}):c(b)})}function v(a,b){return{apply:function(d,c,f){C(d,f,c[0],function(c,e){c.observe(function(c){c=c?a:b;value.toString().replace(new RegExp(a+"\\([^)]+\\)","g"),c);e?e.style[f]=c:d.setStyle(f,c)})})}}}function y(a,b){var d=a.variables;if(d&&b in d)return d[b];if(a=a.bases)for(d=0;d