!function(e,o){"function"==typeof define&&define.amd?define([],o):"undefined"!=typeof module&&module.exports?module.exports=o():e.ppo=o()}(this,function(){function ppo(){}ppo.isIOS=ppo.isIos=function(){return/iPad|iPhone|iPod/.test(ppo.ua())},ppo.isIPad=function(){return/iPad/.test(ppo.ua())},ppo.isAndroid=function(){return-1t?clearInterval(i):(r.index==t&&(r.over=!0),e.apply(r,n))},o);return i},ppo.clearTimesout=function(e){clearInterval(e)},ppo.construct=function(){var e=arguments[0];return new(Function.prototype.bind.apply(e,arguments))},ppo.paramsName=function(e){return/\(\s*([\s\S]*?)\s*\)/.exec(e.toString())[1].split(/\s*,\s*/)},ppo.getDate=function(e,o){var t=new Date,n=t.getDate(),r=t.getMonth()+1,i=t.getFullYear(),p=t.getHours(),a=t.getMinutes(),s=t.getSeconds();return n=ppo.fill0(n),i+(e=e||"/")+(r=ppo.fill0(r))+e+n+" "+(p=ppo.fill0(p))+(o=o||":")+(a=ppo.fill0(a))+o+(s=ppo.fill0(s))},ppo.getUrlParam=function(e,o){o=o||window.location.href,e=e.replace(/[\[\]]/g,"\\$&");var t=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(o);return t?t[2]?decodeURIComponent(t[2].replace(/\+/g," ")):"":null},ppo.setUrlParam=function(e,o,t){t=t||window.location.href;var n=new RegExp("([?|&])"+e+"=.*?(&|#|$)","i");if(t.match(n))return t.replace(n,"$1"+e+"="+encodeURIComponent(o)+"$2");var r="";-1!==t.indexOf("#")&&(r=t.replace(/.*#/,"#"),t=t.replace(/#.*/,""));var i=-1!==t.indexOf("?")?"&":"?";return t+i+e+"="+encodeURIComponent(o)+r},ppo.deleteUrlParam=ppo.delUrlParam=function(e,o){var t=(o=o||window.location.href).split("?");if(2<=t.length){for(var n=encodeURIComponent(e)+"=",r=t[1].split(/[&;]/g),i=r.length;0=e.length&&o&&o()}},_insertScript=function(e,o){var t=document.createElement("script");t.setAttribute("type","text/javascript"),t.setAttribute("src",e),document.getElementsByTagName("head")[0].appendChild(t),/msie/.test(ppo.ua("l"))?t.onreadystatechange=function(){"loaded"!=this.readyState&&"complete"!=this.readyState||o()}:/gecko/.test(ppo.ua("l"))?t.onload=function(){o()}:setTimeout(function(){o()},50)};return ppo});