vh-plugin
Version:
轻量级JS插件包
2 lines (1 loc) • 19.2 kB
JavaScript
var t=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.6,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"#000000";if(Array.from(document.querySelectorAll("style")).filter((function(t){return t.textContent.includes("ξvh-loading")})).length<1){var r=document.querySelector("style")||document.createElement("style");r.appendChild(document.createTextNode("body>.ξvh-loading{position:fixed;left:0;top:0;box-sizing:border-box;width:100vw;height:100vh;display:flex;align-items:center;justify-content:center;transition:all .166s;z-index:-99;pointer-events:none;opacity:0;overflow:hidden}body>.ξvh-loading.ξvh-loading-active{z-index:6666666666666666;pointer-events:auto;opacity:1}body>.ξvh-loading.ξvh-loading-active>.ξvh-loading-span-1,body>.ξvh-loading.ξvh-loading-active>.ξvh-loading-span-2,body>.ξvh-loading.ξvh-loading-active>.ξvh-loading-span-3{position:relative;width:5px;height:5px;margin:3px;border-radius:5px}body>.ξvh-loading.ξvh-loading-active>.ξvh-loading-span-1{-webkit-animation:scale .8s ease infinite;animation:vh_loading_animation .8s ease infinite}body>.ξvh-loading.ξvh-loading-active>.ξvh-loading-span-2{-webkit-animation:scale .8s ease .2s infinite;animation:vh_loading_animation .8s ease .2s infinite}body>.ξvh-loading.ξvh-loading-active>.ξvh-loading-span-3{-webkit-animation:scale .8s ease .4s infinite;animation:vh_loading_animation .8s ease .4s infinite}@-webkit-keyframes vh_loading_animation{50%{height:25px}0%{height:5px}}@keyframes vh_loading_animation{50%{height:25px}0%{height:5px}}")),document.head.appendChild(r)}var o=document.querySelector(".ξvh-loading"),a=document.querySelector(".ξvh-loading-span-1"),i=document.querySelector(".ξvh-loading-span-2"),c=document.querySelector(".ξvh-loading-span-3");o||((o=document.createElement("section")).classList.add("ξvh-loading"),[a=document.createElement("span"),i=document.createElement("span"),c=document.createElement("span")].forEach((function(t,e){t.classList.add("ξvh-loading-span-".concat(e+1)),o.appendChild(t)})),document.body.appendChild(o)),o.style.background="rgba(255,255,255,".concat(e,")"),[a,i,c].forEach((function(t){return t.style.background=n})),t?o.classList.add("ξvh-loading-active"):o.classList.remove("ξvh-loading-active")},e=null,n=function(t){if(Array.from(document.querySelectorAll("style")).filter((function(t){return t.textContent.includes("ξvh-message")})).length<1){var n=document.querySelector("style")||document.createElement("style");n.appendChild(document.createTextNode('body > .ξvh-message {pointer-events: none;position: fixed;top: 50%;left: 50%;transform: translate(-50%, -50%);box-sizing: border-box;padding: 12.88px 14.88px;display: flex;align-items: center;height: max-content;width: max-content;max-width: 318px;color: #fff;border-radius: 8.88px;background-color: rgba(0, 0, 0, 0.6);font-size: 14px;line-height: 18px;opacity: 0;z-index: -1;transition: all 0.18s;font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Segoe UI, Arial, Roboto, "PingFang SC", "miui", "Hiragino Sans GB", "Microsoft Yahei", sans-serif;}body > .ξvh-message.active {pointer-events: auto;opacity: 1;z-index: 6666666666666668;}')),document.head.appendChild(n)}var r=document.querySelector(".ξvh-message");r||((r=document.createElement("section")).classList.add("ξvh-message"),document.body.appendChild(r)),clearTimeout(e),r.innerHTML=t,setTimeout((function(){r.classList.add("active"),e=setTimeout((function(){return r.classList.remove("active")}),2666)}),6)},r={phone:function(t){return/^(?:(?:\+|00)86)?1(?:(?:3[\d])|(?:4[5-79])|(?:5[0-35-9])|(?:6[5-7])|(?:7[0-8])|(?:8[\d])|(?:9[189]))\d{8}$/.test(t)},email:function(t){return/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(t)},idcard:function(t){return/^[1-9]\d{5}(?:18|19|20)\d{2}(?:0[1-9]|10|11|12)(?:0[1-9]|[1-2]\d|30|31)\d{3}[\dXx]$/.test(t)},url:function(t){return/^((https|http|ftp|rtsp|mms)?:\/\/)[^\s]+/.test(t)},ua:function(){var t=navigator.userAgent,e=/Android|webOS|iPhone|iPod|iPad|BlackBerry|IEMobile|OperaMini/i.test(t),n=/iPhone|iPad|iPod/i.test(t),r=/\b(Macintosh|Mac)\b/.test(t),o=Boolean(navigator.userAgent.match(/(iPad)/)||navigator.userAgent.match(/(Macintosh)/)&&navigator.maxTouchPoints>=1);return{windows:!e&&!r,mac:r&&!o,android:e&&!n,ios:n||o}}};function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function a(t,e,n,r,o,a,i){try{var c=t[a](i),u=c.value}catch(t){return void n(t)}c.done?e(u):Promise.resolve(u).then(r,o)}function i(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function c(t){a(i,r,o,c,u,"next",t)}function u(t){a(i,r,o,c,u,"throw",t)}c(void 0)}))}}function c(){c=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function h(t,e,n,r){var a=e&&e.prototype instanceof y?e:y,i=Object.create(a.prototype),c=new P(r||[]);return o(i,"_invoke",{value:A(t,n,c)}),i}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var f="suspendedStart",v="suspendedYield",p="executing",g="completed",m={};function y(){}function w(){}function b(){}var x={};s(x,i,(function(){return this}));var S=Object.getPrototypeOf,L=S&&S(S(j([])));L&&L!==n&&r.call(L,i)&&(x=L);var E=b.prototype=y.prototype=Object.create(x);function T(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function n(o,a,i,c){var u=d(t[o],t,a);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==typeof s&&r.call(s,"__await")?e.resolve(s.__await).then((function(t){n("next",t,i,c)}),(function(t){n("throw",t,i,c)})):e.resolve(s).then((function(t){l.value=t,i(l)}),(function(t){return n("throw",t,i,c)}))}c(u.arg)}var a;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function A(e,n,r){var o=f;return function(a,i){if(o===p)throw Error("Generator is already running");if(o===g){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var c=r.delegate;if(c){var u=C(c,r);if(u){if(u===m)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=p;var l=d(e,n,r);if("normal"===l.type){if(o=r.done?g:v,l.arg===m)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=g,r.method="throw",r.arg=l.arg)}}}function C(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,C(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var a=d(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,m;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function j(e){if(e||""===e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(typeof e+" is not iterable")}return w.prototype=b,o(E,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:w,configurable:!0}),w.displayName=s(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,s(t,l,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},T(k.prototype),s(k.prototype,u,(function(){return this})),e.AsyncIterator=k,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new k(h(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},T(E),s(E,l,"Generator"),s(E,i,(function(){return this})),s(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=j,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(O),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return c.type="throw",c.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(u&&l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),O(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:j(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function u(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return o(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var l=function(){var t=i(c().mark((function t(e){var r,o,a,i=arguments;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=i.length>1&&void 0!==i[1]?i[1]:"Copy Success",o=!1,t.prev=2,t.next=5,navigator.clipboard.writeText(e);case 5:o=!0,t.next=16;break;case 8:t.prev=8,t.t0=t.catch(2),(a=document.createElement("textarea")).value=e,document.body.appendChild(a),a.select(),o=document.execCommand("copy"),document.body.removeChild(a);case 16:return o&&r&&n("Copy Success"),t.abrupt("return",!!o);case 18:case"end":return t.stop()}}),t,null,[[2,8]])})));return function(e){return t.apply(this,arguments)}}();function s(t){return function(t){for(var e="0123456789abcdef",n="",r=0;r<4*t.length;r++)n+=e.charAt(t[r>>2]>>r%4*8+4&15)+e.charAt(t[r>>2]>>r%4*8&15);return n}(function(t,e){t[e>>5]|=128<<e%32,t[14+(e+64>>>9<<4)]=e;for(var n=1732584193,r=-271733879,o=-1732584194,a=271733878,i=0;i<t.length;i+=16){var c=n,u=r,l=o,s=a;n=d(n,r,o,a,t[i+0],7,-680876936),a=d(a,n,r,o,t[i+1],12,-389564586),o=d(o,a,n,r,t[i+2],17,606105819),r=d(r,o,a,n,t[i+3],22,-1044525330),n=d(n,r,o,a,t[i+4],7,-176418897),a=d(a,n,r,o,t[i+5],12,1200080426),o=d(o,a,n,r,t[i+6],17,-1473231341),r=d(r,o,a,n,t[i+7],22,-45705983),n=d(n,r,o,a,t[i+8],7,1770035416),a=d(a,n,r,o,t[i+9],12,-1958414417),o=d(o,a,n,r,t[i+10],17,-42063),r=d(r,o,a,n,t[i+11],22,-1990404162),n=d(n,r,o,a,t[i+12],7,1804603682),a=d(a,n,r,o,t[i+13],12,-40341101),o=d(o,a,n,r,t[i+14],17,-1502002290),n=f(n,r=d(r,o,a,n,t[i+15],22,1236535329),o,a,t[i+1],5,-165796510),a=f(a,n,r,o,t[i+6],9,-1069501632),o=f(o,a,n,r,t[i+11],14,643717713),r=f(r,o,a,n,t[i+0],20,-373897302),n=f(n,r,o,a,t[i+5],5,-701558691),a=f(a,n,r,o,t[i+10],9,38016083),o=f(o,a,n,r,t[i+15],14,-660478335),r=f(r,o,a,n,t[i+4],20,-405537848),n=f(n,r,o,a,t[i+9],5,568446438),a=f(a,n,r,o,t[i+14],9,-1019803690),o=f(o,a,n,r,t[i+3],14,-187363961),r=f(r,o,a,n,t[i+8],20,1163531501),n=f(n,r,o,a,t[i+13],5,-1444681467),a=f(a,n,r,o,t[i+2],9,-51403784),o=f(o,a,n,r,t[i+7],14,1735328473),n=v(n,r=f(r,o,a,n,t[i+12],20,-1926607734),o,a,t[i+5],4,-378558),a=v(a,n,r,o,t[i+8],11,-2022574463),o=v(o,a,n,r,t[i+11],16,1839030562),r=v(r,o,a,n,t[i+14],23,-35309556),n=v(n,r,o,a,t[i+1],4,-1530992060),a=v(a,n,r,o,t[i+4],11,1272893353),o=v(o,a,n,r,t[i+7],16,-155497632),r=v(r,o,a,n,t[i+10],23,-1094730640),n=v(n,r,o,a,t[i+13],4,681279174),a=v(a,n,r,o,t[i+0],11,-358537222),o=v(o,a,n,r,t[i+3],16,-722521979),r=v(r,o,a,n,t[i+6],23,76029189),n=v(n,r,o,a,t[i+9],4,-640364487),a=v(a,n,r,o,t[i+12],11,-421815835),o=v(o,a,n,r,t[i+15],16,530742520),n=p(n,r=v(r,o,a,n,t[i+2],23,-995338651),o,a,t[i+0],6,-198630844),a=p(a,n,r,o,t[i+7],10,1126891415),o=p(o,a,n,r,t[i+14],15,-1416354905),r=p(r,o,a,n,t[i+5],21,-57434055),n=p(n,r,o,a,t[i+12],6,1700485571),a=p(a,n,r,o,t[i+3],10,-1894986606),o=p(o,a,n,r,t[i+10],15,-1051523),r=p(r,o,a,n,t[i+1],21,-2054922799),n=p(n,r,o,a,t[i+8],6,1873313359),a=p(a,n,r,o,t[i+15],10,-30611744),o=p(o,a,n,r,t[i+6],15,-1560198380),r=p(r,o,a,n,t[i+13],21,1309151649),n=p(n,r,o,a,t[i+4],6,-145523070),a=p(a,n,r,o,t[i+11],10,-1120210379),o=p(o,a,n,r,t[i+2],15,718787259),r=p(r,o,a,n,t[i+9],21,-343485551),n=g(n,c),r=g(r,u),o=g(o,l),a=g(a,s)}return[n,r,o,a]}(function(t){for(var e=[],n=255,r=0;r<8*t.length;r+=8)e[r>>5]|=(t.charCodeAt(r/8)&n)<<r%32;return e}(t),8*t.length))}function h(t,e,n,r,o,a){return g((i=g(g(e,t),g(r,a)))<<(c=o)|i>>>32-c,n);var i,c}function d(t,e,n,r,o,a,i){return h(e&n|~e&r,t,e,o,a,i)}function f(t,e,n,r,o,a,i){return h(e&r|n&~r,t,e,o,a,i)}function v(t,e,n,r,o,a,i){return h(e^n^r,t,e,o,a,i)}function p(t,e,n,r,o,a,i){return h(n^(e|~r),t,e,o,a,i)}function g(t,e){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}var m={showLoading:function(e,n){t(!0,n,e)},hideLoading:function(){t(!1)},Toast:n,CopyText:l,Debounce:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,n=null;return function(){for(var r=this,o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];n&&(clearTimeout(n),n=null),n=setTimeout((function(){t.apply(r,a)}),e)}},Throttle:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,n=0;return function(){var r=Date.now();if(r-n>e){n=r;for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];t.apply(this,a)}}},getUrlParams:function(t){var e=window.location.href;return new URLSearchParams(e.split("?")[1]).get(t)},getUrlParamsJson:function(){var t=new URLSearchParams(window.location.search);return Object.fromEntries(t.entries())},jsonToUrlParams:function(t){return new URLSearchParams(t).toString()},TimeFormat:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYY-MM-DD hh:mm:ss";t=13===String(t).length?Number(t):1e3*Number(t);var n=new Date(t),r={YYYY:n.getFullYear(),MM:String(n.getMonth()+1).padStart(2,"0"),DD:String(n.getDate()).padStart(2,"0"),hh:String(n.getHours()).padStart(2,"0"),mm:String(n.getMinutes()).padStart(2,"0"),ss:String(n.getSeconds()).padStart(2,"0")};return e.replace(/YYYY|MM|DD|hh|mm|ss/g,(function(t){return String(r[t])}))},OneKey:function(t){var e,n,r,o,a,i,c=t?navigator.userAgent||"userAgent":"",l=t&&screen.width||0,h=t&&screen.height||0,d=screen.colorDepth||0,f=(new Date).getTimezoneOffset()||0,v=Intl.DateTimeFormat().resolvedOptions().timeZone||"timeZone",p=navigator.hardwareConcurrency||0,g=navigator.language||"language",m=u(navigator.languages||["languages"]),y=navigator.onLine||"onLine",w=navigator.cookieEnabled||"cookieEnabled",b=navigator.doNotTrack||"doNotTrack";return s(JSON.stringify({userAgent:c,screenWidth:l,screenHeight:h,colorDepth:d,timezoneOffset:f,timeZone:v,language:g,languages:m,hardwareConcurrency:p,onLine:y,cookieEnabled:w,doNotTrack:b,fonts:(a=document.createElement("canvas").getContext("2d"),i="abcdefghijklmnopqrstuvwxyz0123456789",["Arial","Verdana","Times New Roman","Courier New","Georgia","Comic Sans MS","Trebuchet MS","Arial Black","Impact","San Francisco","Lucida Grande","Segoe UI","Roboto"].map((function(t){a.font="16px ".concat(t);var e=a.measureText(i).width;return a.font="16px 'HelloHan'",a.measureText(i).width!==e?t:null})).filter(Boolean).join(",")),canvasHash:(e=document.createElement("canvas"),n=e.getContext("2d"),r="www.vvhan.com",o="骤雨重山博客",n.textBaseline="top",n.font="14px 'Arial'",n.textBaseline="alphabetic",n.fillStyle="#f60",n.fillRect(125,1,62,20),n.fillStyle="#069",n.fillText("".concat(r," - ").concat(o),2,15),n.fillStyle="rgba(102, 204, 0, 0.7)",n.fillText("".concat(r," - ").concat(o),4,17),e.toDataURL().split("").reduce((function(t,e){return(t<<5)+t+e.charCodeAt(0)}),5666)>>>0)})).toString()},OpenURL:function(){var t=i(c().mark((function t(e){var n,r,o,a=arguments;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=a.length>1&&void 0!==a[1]?a[1]:"",r=a.length>2&&void 0!==a[2]?a[2]:"_blank",(o=document.createElement("a")).className="vh-open-new-window-a",o.style.position="fixed",o.style.left="0",o.style.top="0",o.style.opacity="0",o.style.pointerEvents="none",o.href=e,n&&(o.download=n),o.target=r,document.body.appendChild(o),t.next=15,new Promise((function(t){return setTimeout(t,66)}));case 15:o.click(),o.remove();case 17:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),check:r};export{m as default};