/* jQuery.unparam v1.0 - https://github.com/yeikos/jquery.unparam */ ;(function(a){a.unparam=function(b){var c,d,e=/\[(.*?)\]/g,f=/(.+?)\[/,g={};if((d=a.type(b))!="string"||d=="string"&&!d.length)return{};c=decodeURIComponent(b).split("&");if(!(d=c.length)||d==1&&d==="")return g;a.each(c,function(b,c){if(!c.length)return;d=c.split("=");var h=d.shift(),i=d.join("=").replace(/\+/g," "),j,k,l=[];if(!h.length)return;while(d=e.exec(h))l.push(d[1]);if(!(j=l.length)){g[h]=i;return}j--;d=f.exec(h);if(!d||!(h=d[1])||!h.length)return;if(a.type(g[h])!="object")g[h]={};k=g[h];a.each(l,function(b,c){if(!(d=c).length){d=0;a.each(k,function(a){if(!isNaN(a)&&a>=0&&a%1===0&&a>=d)d=Number(a)+1})}if(b==j){k[d]=i}else if(a.type(k[d])!="object"){k=k[d]={}}else{k=k[d]}})});return g}})(jQuery);