!function(t,e){"object"==typeofexports&&"undefined"!=typeofmodule?module.exports=e():"function"==typeofdefine&&define.amd?define(e):t.VueResource=e()}(this,function(){"use strict";functions(t){this.state=2,this.value=void0,this.deferred=[];vare=this;try{t(function(t){e.resolve(t)},function(t){e.reject(t)})}catch(t){e.reject(t)}}s.reject=function(n){returnnews(function(t,e){e(n)})},s.resolve=function(n){returnnews(function(t,e){t(n)})},s.all=function(i){returnnews(function(n,t){varo=0,r=[];0===i.length&&n(r);for(vare=0;e<i.length;e+=1)s.resolve(i[e]).then(function(e){returnfunction(t){r[e]=t,(o+=1)===i.length&&n(r)}}(e),t)})},s.race=function(o){returnnews(function(t,e){for(varn=0;n<o.length;n+=1)s.resolve(o[n]).then(t,e)})};vart=s.prototype;functiona(t,e){tinstanceofPromise?this.promise=t:this.promise=newPromise(t.bind(e)),this.context=e}t.resolve=function(t){vare=this;if(2===e.state){if(t===e)thrownewTypeError("Promise settled with itself.");varn=!1;try{varo=t&&t.then;if(null!==t&&"object"==typeoft&&"function"==typeofo)returnvoido.call(t,function(t){n||e.resolve(t),n=!0},function(t){n||e.reject(t),n=!0})}catch(t){returnvoid(n||e.reject(t))}e.state=0,e.value=t,e.notify()}},t.reject=function(t){vare=this;if(2===e.state){if(t===e)thrownewTypeError("Promise settled with itself.");e.state=1,e.value=t,e.notify()}},t.notify=function(){vari=this;o(function(){if(2!==i.state)for(;i.deferred.length;){vart=i.deferred.shift(),e=t[0],n=t[1],o=t[2],r=t[3];try{0===i.state?o("function"==typeofe?e.call(void0,i.value):i.value):1===i.state&&("function"==typeofn?o(n.call(void0,i.value)):r(i.value))}catch(t){r(t)}}},void0)},t.then=function(n,o){varr=this;returnnews(function(t,e){r.deferred.push([n,o,t,e]),r.notify()})},t.catch=function(t){returnthis.then(void0,t)},"undefined"==typeofPromise&&(window.Promise=s),a.all=function(t,e){returnnewa(Promise.all(t),e)},a.resolve=function(t,e){returnnewa(Promise.resolve(t),e)},a.reject=function(t,e){returnnewa(Promise.reject(t),e)},a.race=function(t,e){returnnewa(Promise.race(t),e)};t=a.prototype;t.bind=function(t){returnthis.context=t,this},t.then=function(t,e){returnt&&t.bind&&this.context&&(t=t.bind(this.context)),e&&e.bind&&this.context&&(e=e.bind(this.context)),newa(this.promise.then(t,e),this.context)},t.catch=function(t){returnt&&t.bind&&this.context&&(t=t.bind(this.context)),newa(this.promise.catch(t),this.context)},t.finally=function(e){returnthis.then(function(t){returne.call(this),t},function(t){returne.call(this),Promise.reject(t)})};varo,r={}.hasOwnProperty,i=[].slice,u=!1,c="undefined"!=typeofwindow;functionf(t){returnt?t.replace(/^\s*|\s*$/g,""):""}functionh(t){returnt?t.toLowerCase():""}varp=Array.isArray;functiond(t){return"string"==typeoft}functionl(t){return"function"==typeoft}functionm(t){returnnull!==t&&"object"==typeoft}functionv(t){returnm(t)&&Object.getPrototypeOf(t)==Object.prototype}functiony(t,e,n){t=a.resolve(t);returnarguments.length<2?t:t.then(e,n)}functionb(t,e,n){returnl(n=n||{})&&(n=n.call(e)),T(t.bind({$vm:e,$options:n}),t,{$options:n})}functiong(t,e){varn,o;if(p(t))for(n=0;n<t.length;n++)e.call(t[n],t[n],n);elseif(m(t))for(oint)r.call(t,o)&&e.call(t[o],t[o],o);returnt}varw=Object.assign||function(e){returni.call(arguments,1).forEach(function(t){j(e,t)}),e};functionT(e){returni.call(arguments,1).forEach(function(t){j(e,t,!0)}),e}functionj(t,e,n){for(varoine)n&&(v(e[o])||p(e[o]))?(v(e[o])&&!v(t[o])&&(t[o]={}),p(e[o])&&!p(t[o])&&(t[o]=[]),j(t[o],e[o],n)):void0!==e[o]&&(t[o]=e[o])}functionx(t,e,n){varo,s,u,t=(o=t,s=["+","#",".","/",";","?","&"],{vars:u=[],expand:function(i){returno.replace(/\{([^{}]+)\}|([^{}]+)/g,function(t,e,n){if(e){varo=null,r=[];if(-1!==s.indexOf(e.charAt(0))&&(o=e.charAt(0),e=e.substr(1)),e.split(/,/g).forEach(function(t){t=/([^:*]*)(?::(\d+)|(\*))?/.exec(t);r.push.apply(r,function(t,e,n,o){varr=t[n],i=[];{vars;E(r)&&""!==r?"string"==typeofr||"number"==typeofr||"boolean"==typeofr?(r=r.toString(),o&&"*"!==o&&(r=r.substring(0,parseInt(o,10))),i