!function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,n){var i,r,o,s,u;({getVisitorId:s}=n(1)),({getClientId:r,getStep:o}=n(3)),i=n(4),u=function(t,e,n){var r,o;console.log(`[send] v:1.0.5, clientId:${t}, visitorId:${e}, step:${n}`),r=`${e}-${t}.tag.yunyunid.com`,n&&(r=`${n}-${r}`),o=`?c=${t}&v=${e}`,n&&(o+="&s="+n),new i(`//${r}/yunid/js${o}`)},function(){var t,e,n;console.log("YUNID-JS-CLIENT app init"),(t=r())?(n=s())?(e=o(),document.addEventListener("DOMContentLoaded",(function(){u(t,n,e)})),window.__YUNID||(window.__YUNID={trackStep:function(e){(e=String(e||"").trim())&&e!==o()&&u(t,n,e)}})):console.log("[main] missing visitorId"):console.log("[main] missing clientId")}()},function(t,e,n){var i,r,o,s,u;i=n(2),({customAlphabet:o}=n(5)),u=o("0123456789abcdefghijklmnopqrstuvwxyz",16),r=new i({namespace:"yun1d",storages:["local","cookie"],expireDays:10950}),s=function(){var t,e;try{e=r.get("v1s1t07")}catch(e){t=e,console.log("[getVisitorId] fail to get. error:",t)}if(e=String(e||"").trim())return e;e=u();try{r.set("v1s1t07",e)}catch(e){t=e,console.log("[getVisitorId] fail to set. error:",t)}return e},t.exports={getVisitorId:s}},function(t,e,n){var i;!function(){var r=function(t){return r.utils.extend({},r.plugins,(new r.Storage).init(t))};r.version="0.4.11",r.utils={extend:function(){for(var t="object"==typeof arguments[0]?arguments[0]:{},e=1;e<arguments.length;e++)if(arguments[e]&&"object"==typeof arguments[e])for(var n in arguments[e])t[n]=arguments[e][n];return t},each:function(t,e,n){if(this.isArray(t)){for(var i=0;i<t.length;i++)if(!1===e.call(n,t[i],i))return}else if(t)for(var r in t)if(!1===e.call(n,t[r],r))return},tryEach:function(t,e,n,i){this.each(t,(function(t,r){try{return e.call(i,t,r)}catch(e){if(this.isFunction(n))try{n.call(i,t,r,e)}catch(t){}}}),this)},registerPlugin:function(t){r.plugins=this.extend(t,r.plugins)},getTypeOf:function(t){return null==t?""+t:Object.prototype.toString.call(t).replace(/^\[object\s(.*)\]$/,(function(t,e){return e.toLowerCase()}))}};for(var o=["Arguments","Boolean","Function","String","Array","Number","Date","RegExp","Undefined","Null"],s=0;s<o.length;s++)r.utils["is"+o[s]]=function(t){return function(e){return r.utils.getTypeOf(e)===t.toLowerCase()}}(o[s]);r.plugins={},r.options=r.utils.extend({namespace:"b45i1",storages:["local","cookie","session","memory"],expireDays:365,keyDelimiter:"."},window.Basil?window.Basil.options:{}),r.Storage=function(){var t="b45i1"+(Math.random()+1).toString(36).substring(7),e={},n=function(t){var e=r.utils.getTypeOf(t);return"string"===e&&t||"number"===e||"boolean"===e},i=function(t){return r.utils.isArray(t)?t:r.utils.isString(t)?[t]:[]},o=function(t,e,i){var o="";return n(e)?o+=e:r.utils.isArray(e)&&(o=(e=r.utils.isFunction(e.filter)?e.filter(n):e).join(i)),o&&n(t)?t+i+o:o},s=function(t,e,i){return n(t)?e.replace(new RegExp("^"+t+i),""):e},u={engine:null,check:function(){try{window[this.engine].setItem(t,!0),window[this.engine].removeItem(t)}catch(t){return!1}return!0},set:function(t,e,n){if(!t)throw Error("invalid key");window[this.engine].setItem(t,e)},get:function(t){return window[this.engine].getItem(t)},remove:function(t){window[this.engine].removeItem(t)},reset:function(t){for(var e,n=0;n<window[this.engine].length;n++)e=window[this.engine].key(n),t&&0!==e.indexOf(t)||(this.remove(e),n--)},keys:function(t,e){for(var n,i=[],r=0;r<window[this.engine].length;r++)n=window[this.engine].key(r),t&&0!==n.indexOf(t)||i.push(s(t,n,e));return i}};return e.local=r.utils.extend({},u,{engine:"localStorage"}),e.session=r.utils.extend({},u,{engine:"sessionStorage"}),e.memory={_hash:{},check:function(){return!0},set:function(t,e,n){if(!t)throw Error("invalid key");this._hash[t]=e},get:function(t){return this._hash[t]||null},remove:function(t){delete this._hash[t]},reset:function(t){for(var e in this._hash)t&&0!==e.indexOf(t)||this.remove(e)},keys:function(t,e){var n=[];for(var i in this._hash)t&&0!==i.indexOf(t)||n.push(s(t,i,e));return n}},e.cookie={check:function(e){if(!navigator.cookieEnabled)return!1;if(window.self!==window.top){var n="thirdparty.check="+Math.round(1e3*Math.random());return document.cookie=n+"; path=/",-1!==document.cookie.indexOf(n)}if(e&&e.secure)try{this.set(t,t,e);var i=this.get(t)===t;return this.remove(t),i}catch(t){return!1}return!0},set:function(t,e,n){if(!this.check())throw Error("cookies are disabled");if(n=n||{},!t)throw Error("invalid key");var i=encodeURIComponent(t)+"="+encodeURIComponent(e);if(n.expireDays){var r=new Date;r.setTime(r.getTime()+24*n.expireDays*60*60*1e3),i+="; expires="+r.toGMTString()}if(n.domain&&n.domain!==document.domain){var o=n.domain.replace(/^\./,"");if(-1===document.domain.indexOf(o)||o.split(".").length<=1)throw Error("invalid domain");i+="; domain="+n.domain}n.sameSite&&["lax","strict","none"].includes(n.sameSite.toLowerCase())&&(i+="; SameSite="+n.sameSite),!0===n.secure&&(i+="; Secure"),document.cookie=i+"; path=/"},get:function(t){if(!this.check())throw Error("cookies are disabled");for(var e,n=encodeURIComponent(t),i=document.cookie?document.cookie.split(";"):[],r=i.length-1;r>=0;r--)if(0===(e=i[r].replace(/^\s*/,"")).indexOf(n+"="))return decodeURIComponent(e.substring(n.length+1,e.length));return null},remove:function(t){this.set(t,"",{expireDays:-1});for(var e=document.domain.split("."),n=e.length;n>1;n--)this.set(t,"",{expireDays:-1,domain:"."+e.slice(-n).join(".")})},reset:function(t){for(var e,n,i=document.cookie?document.cookie.split(";"):[],r=0;r<i.length;r++)n=(e=i[r].replace(/^\s*/,"")).substr(0,e.indexOf("=")),t&&0!==n.indexOf(t)||this.remove(n)},keys:function(t,e){if(!this.check())throw Error("cookies are disabled");for(var n,i,r=[],o=document.cookie?document.cookie.split(";"):[],u=0;u<o.length;u++)n=o[u].replace(/^\s*/,""),i=decodeURIComponent(n.substr(0,n.indexOf("="))),t&&0!==i.indexOf(t)||r.push(s(t,i,e));return r}},{init:function(t){return this.setOptions(t),this},setOptions:function(t){this.options=r.utils.extend({},this.options||r.options,t)},support:function(t){return e.hasOwnProperty(t)},check:function(t){return!!this.support(t)&&e[t].check(this.options)},set:function(t,n,s){if(s=r.utils.extend({},this.options,s),!(t=o(s.namespace,t,s.keyDelimiter)))return!1;n=!0===s.raw?n:function(t){return JSON.stringify(t)}(n);var u=null;return r.utils.tryEach(i(s.storages),(function(i,r){return e[i].set(t,n,s),u=i,!1}),null,this),!!u&&(r.utils.tryEach(i(s.storages),(function(n,i){n!==u&&e[n].remove(t)}),null,this),!0)},get:function(t,n){if(n=r.utils.extend({},this.options,n),!(t=o(n.namespace,t,n.keyDelimiter)))return null;var s=null;return r.utils.tryEach(i(n.storages),(function(i,r){if(null!==s)return!1;s=e[i].get(t,n)||null,s=!0===n.raw?s:function(t){return t?JSON.parse(t):null}(s)}),(function(t,e,n){s=null}),this),s},remove:function(t,n){n=r.utils.extend({},this.options,n),(t=o(n.namespace,t,n.keyDelimiter))&&r.utils.tryEach(i(n.storages),(function(n){e[n].remove(t)}),null,this)},reset:function(t){t=r.utils.extend({},this.options,t),r.utils.tryEach(i(t.storages),(function(n){e[n].reset(t.namespace)}),null,this)},keys:function(t){t=t||{};var e=[];for(var n in this.keysMap(t))e.push(n);return e},keysMap:function(t){t=r.utils.extend({},this.options,t);var n={};return r.utils.tryEach(i(t.storages),(function(i){r.utils.each(e[i].keys(t.namespace,t.keyDelimiter),(function(t){n[t]=r.utils.isArray(n[t])?n[t]:[],n[t].push(i)}),this)}),null,this),n}}},r.memory=(new r.Storage).init({storages:"memory",namespace:null,raw:!0}),r.cookie=(new r.Storage).init({storages:"cookie",namespace:null,raw:!0}),r.localStorage=(new r.Storage).init({storages:"local",namespace:null,raw:!0}),r.sessionStorage=(new r.Storage).init({storages:"session",namespace:null,raw:!0}),window.Basil=r,void 0===(i=function(){return r}.call(e,n,e,t))||(t.exports=i)}()},function(t,e){var n,i,r;document.currentScript=document.currentScript||(r=document.getElementsByTagName("script"))[r.length-1],n=function(){return String(document.currentScript&&document.currentScript.getAttribute("data-cid")||"").trim()},i=function(){return String(document.currentScript&&document.currentScript.getAttribute("data-step")||"").trim()},t.exports={getClientId:n,getStep:i}},function(t,e){var n;n=class{constructor(t){this.href=t,this.send(),this.count=1}send(){var t,e;console.log(`[Revolver:send] count:${this.count}, href:`,this.href),(t=document&&document.body||document.getElementsByTagName("body")[0])?(this,(e=document.createElement&&document.createElement("img")||new Image).src=this.href+"&r="+Date.now().toString(32),e.width=1,e.height=1,e.style.width="1px",e.style.height="1px",e.style.position="fixed",e.style.right="1px",e.style.bottom="0px",t.appendChild(e),setTimeout(()=>{e.parentNode.removeChild(e),this.count=1.2*this.count,this.send()},50*this.count)):console.log("missing document body")}},t.exports=n},function(t,e,n){"use strict";n.r(e),n.d(e,"nanoid",(function(){return u})),n.d(e,"customAlphabet",(function(){return s})),n.d(e,"customRandom",(function(){return o})),n.d(e,"urlAlphabet",(function(){return i})),n.d(e,"random",(function(){return r}));let i="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";let r=t=>crypto.getRandomValues(new Uint8Array(t)),o=(t,e,n)=>{let i=(2<<Math.log(t.length-1)/Math.LN2)-1,r=-~(1.6*i*e/t.length);return()=>{let o="";for(;;){let s=n(r),u=r;for(;u--;)if(o+=t[s[u]&i]||"",o.length===+e)return o}}},s=(t,e)=>o(t,e,r),u=(t=21)=>{let e="",n=crypto.getRandomValues(new Uint8Array(t));for(;t--;){let i=63&n[t];e+=i<36?i.toString(36):i<62?(i-26).toString(36).toUpperCase():i<63?"_":"-"}return e}}]);