/*!
 * PAPI 0.5.3 (2015-04-08, 14:01)
 * https://github.com/e-sites/PAPI
 * MIT licensed
 *
 * Copyright (C) 2015 E-sites, http://e-sites.nl/
 */
(function(e,t,i){"use strict";function r(e){"string"==typeof e&&(e=JSON.parse(e)),e.hasOwnProperty("success")&&e.hasOwnProperty("resource")&&o(e)}function o(t,i){t.success&&(i||e.papi.cache.setItem(e.papi.activeZipcode,JSON.stringify(t.resource)),e.papi._ok.apply(e.papi,[t.resource]))}function n(t){var i;switch(t.status){case 401:i="authorization required, please check your api-key";break;case 0:case 404:if(i="no additional data found",e.papi._notfound)return e.papi._notfound.apply(e.papi,[t]);break;case 500:i="server error, shit has hit the fan yo! Contact @postcodeapi"}throw Error("PAPI error: "+i)}var s="papi",a={event:"change",source:null,placeholders:{},bag:!1},c={type:"GET",dataType:"json",crossDomain:!0},u="^[1-9][0-9]{3} ?[a-zA-Z]{2}$",p=["latitude","longitude","municipality","postcode","province","street","town","house_number","x","y","bag"],h="https://api.postcodeapi.nu/",l="?view=bag";e.papi={_ok:null,_notfound:null,apiKey:null,proxyUrl:null,cache:function(){var e,i,r=new Date;try{return(e=t.localStorage).setItem(r,r),i=e.getItem(r)==r,e.removeItem(r),i&&e}catch(o){}}(),isCached:function(e){return this.cache.getItem(e)},activeZipcode:null,setApiKey:function(t){if(!t||t.constructor!==String)throw Error("PAPI error: no valid api-key given");return this.apiKey=t,e.extend(c,{beforeSend:function(e){e.setRequestHeader("Api-Key",t)}}),this},proxy:function(e){return e&&"string"==typeof e&&(this.proxyUrl=e),this},lookup:function(t,i,o){var s=t.replace(/\s+/g,""),a=h+[s,i].join("/")+(o?"/"+l:"");return this.activeZipcode=s,this.isCached(s)?this:s&&this.isValidZipcode(s)?(this.proxyUrl&&(a=this.proxyUrl+"?"+e.param({zipcode:s,houseNr:i,bag:o,apikey:this.apiKey}),c.crossDomain=!1),e.extend(c,{url:a}),e.ajax(c).success(r).error(n),this):this},ok:function(t){return t&&e.isFunction(t)&&(this._ok=t,this.isCached(this.activeZipcode)&&o({success:!0,resource:JSON.parse(this.cache.getItem(this.activeZipcode))},!0)),this},notfound:function(t){return t&&e.isFunction(t)&&(this._notfound=t),this},setValue:function(e,t){return t?("input"===t.nodeName.toLowerCase()&&(t.value=JSON.parse(this.cache.getItem(this.activeZipcode))[e]),this):this},setValues:function(e){for(var t=p.length;t--;)e.hasOwnProperty(p[t])&&this.setValue(p[t],e[p[t]]);return this},isValidZipcode:function(e){return RegExp(u).test(e)}},e.fn[s]=function(t){var r=this;return r.each(function(){var o=e.extend({},a,t);if(!e.papi.apiKey)throw Error("PAPI error: no valid api-key given");e(i).on(o.event,r.selector,function(){var t,i=this.value;o.source&&(i=o.source.constructor===HTMLInputElement?o.source.value:e(o.source).val(),t=this.value),i=i.replace(/\s/,""),e.papi.lookup(i,t,o.bag).ok(function(){this.setValues(o.placeholders)})})})}})(jQuery,window,document);
@@ -13,17 +13,17 @@
 0.5.
-3
+2
  (2015-0
 4-08
@@ -22,19 +22,19 @@
 15-0
-4-08, 14:01
+1-27, 17:49
 )%0A *
@@ -2776,29 +2776,8 @@
 ue),
-i=i.replace(/%5Cs/,%22%22),
 e.pa

Revert "Minified new release"