removeAttr:function(a){vara=I(a),b=a.shift(),d=this._data[b];if(a.length)returnd.removeAttr(a);deletethis._data[b];binthis.constructor.prototype||deletethis[b];p(this,"change",[b,"remove",l,d]);p(this,b,[l,d]);returnd},_get:function(a){vara=I(a),b=this.__get(a.shift());returna.length?b?b._get(a):l:b},__get:function(a){returna?this._data[a]:this._data},_set:function(a,b){vard=I(a),c=d.shift(),e=this.__get(c);if(q(e)&&d.length)e._set(d,b);else{if(d.length)throw"can.Observe: Object does not exist";
g.then(function(a){h=a(b,d)});returnh}});c.isDeferred=function(a){returna&&D(a.then)&&D(a.pipe)};varka=function(a,b){if(!a.length)throw"can.view: No template or empty template:"+b;},ia=function(a,b){vard=a.match(/\.[\w\d]+$/),f,e,g,h=function(a){vara=f.renderer(g,a),b=newc.Deferred;b.resolve(a);k.cache&&(k.cached[g]=b);returnb};a.match(/^#/)&&(a=a.substr(1));if(e=document.getElementById(a))d="."+e.type.match(/\/(x\-)?(.+)/)[2];!d&&!k.cached[a]&&(a+=d=k.ext);c.isArray(d)&&(d=d[0]);g=c.view.toId(a);
l),j.triggerBatch(this,"change",[b,"remove",l,d]),j.triggerBatch(this,b,[l,d]));returnd},_get:function(a){vara=T(a),b=this.__get(a.shift());returna.length?b?b._get(a):l:b},__get:function(a){returna?this._data[a]:this._data},_set:function(a,b){vard=T(a),c=d.shift(),f=this.__get(c);if(v(f)&&d.length)f._set(d,b);else{if(d.length)throw"can.Observe: Object does not exist";this.__convert&&(b=this.__convert(c,b));f||j.triggerBatch(this,"__keys",l);this.__set(c,b,f)}},__set:function(a,b,d){if(b!==d){varc=
elsefor(varjinb)c.isDeferred(b[j])&&(b[j]=Aa(f.shift()));f=g(b,d);h.resolve(f);e&&e(f)});returnh}varg,f=D(e),h=za(a,f);if(f)g=h,h.then(function(a){e(b?a(b,d):a)});else{if("resolved"===h.state()&&h.__view_id)returna=k.cachedRenderers[h.__view_id],b?a(b,d):a;h.then(function(a){g=b?a(b,d):a})}returng},registerView:function(a,b,d,e){b=(d||k.types[k.ext]).renderer(a,b);e=e||newc.Deferred;k.cache&&(k.cached[a]=e,e.__view_id=a,k.cachedRenderers[a]=b);returne.resolve(b)}});varBa=function(a,b){if(!a.length)throw"can.view: No template or empty template:"+