{"size": 9683, "ext": "js", "max_stars_repo_path": "dist/a.js", "max_stars_repo_name": "aasaam/analytics-client", "max_stars_repo_stars_event_min_datetime": "2021-11-02T10:45:57.000Z", "max_stars_repo_stars_event_max_datetime": "2022-02-05T15:05:42.000Z", "max_issues_repo_path": "dist/a.js", "max_issues_repo_name": "aasaam/analytics-client", "max_issues_repo_issues_event_min_datetime": "2021-12-20T01:17:30.000Z", "max_issues_repo_issues_event_max_datetime": "2022-01-19T00:43:22.000Z", "max_forks_repo_path": "dist/a.js", "max_forks_repo_name": "aasaam/analytics-client", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 3, "max_issues_count": 9, "max_forks_count": null, "avg_line_length": 9683.0, "max_line_length": 9683, "alphanum_fraction": 0.6665289683}
!function(d,y,b,v,r,a){const h="__COLLECTOR_URL__";let S="";const w=function(t,e){r.group("aasaam-analytics:error:"+t),e instanceof Error?r.error(e):e&&r.warn(e),r.groupEnd();const n=new URL(h);n.searchParams.set("m","err"),n.searchParams.set("i",S),n.searchParams.set("u",d.location.href),v.sendBeacon(n.toString(),JSON.stringify({msg:t,err:e?JSON.stringify(e,Object.getOwnPropertyNames(e)):void 0}))};if(!d.aasaamAnalytics){const e="on"===a.getItem("aasaam-analytics:debug"),A=function(t){e&&r.debug(t)},i=function(t){return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")},E=function(t){if("object"==typeof t&&s(t.lat)&&s(t.lon)&&Math.abs(t.lat)<=90&&Math.abs(t.lon)<=180)return t},o=function(t){if(t)try{return JSON.parse(t)}catch(t){w("storageParse",t)}return{}},c=function(t){let e={};var n=a.getItem(t);return n?e=o(n):(n=y.cookie.match(new RegExp(i(t)+"=([^;]+)")))&&(e=o(d.atob(L(n[1])))),e},O=function(t,e,n,r){const i=c(t);n={v:n,e:r?Date.now()+1e3*r:void 0};i[e]=n,a.setItem(t,JSON.stringify(i));const o=new Date;o.setFullYear(o.getFullYear()+1),y.cookie=t+"="+d.btoa(JSON.stringify(i))+";Expires="+o.toUTCString()+";Path=/;SameSite=Lax"},P=function(t,e){t=c(t);if(t[e]){t=t[e];if(!(t.e&&t.e<=Date.now()))return t.v}},L=function(t){return n(t)?t.replace(/[\n\s\r]+/g," ").trim():""},s=function(t){return"number"==typeof t&&isFinite(t)},j=function(t){try{var e=new URL(t);return/^http/.test(e.protocol)}catch(t){}return!1},n=function(t){var e=typeof t;return"string"==e||"object"==e&&null!=t&&!Array.isArray(t)&&"[object String]"==u(t)},N=function(t){return n(t)&&0<L(t).length},_=function(t){return N(t)&&/^[a-zA-Z0-9-_\/]{1,63}$/.test(t)},J=function(t){return N(t)&&/[a-z_]{1,31}/.test(t)},u=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":toString.call(t)},T=function(t){return!("string"!=typeof t||!/^[A-Z]{1}[0-9a-z]{4}$/.test(t))},x=function(t,e,n,r){return t&&Number.isInteger(t)&&e<=t&&t<=n?parseInt(t.toString(),10):r},D=function(t,e,n){return d.btoa([Math.round(t instanceof Date?t.getTime()/1e3:Date.now()/1e3).toString(),Math.round(e instanceof Date?e.getTime()/1e3:Date.now()/1e3).toString(),N(n)?n:((new Date).getTime().toString(32)+Math.random().toString(32).substring(2)).substring(0,16)].join(":"))},I=function(t){try{var e=d.atob(t).match(new RegExp("^([0-9]+):([0-9]+):([a-z0-9]{16})$"));if(e)return{i:new Date(1e3*parseInt(e[1],10)),s:new Date(1e3*parseInt(e[2],10)),r:e[3]};w("cidParse:regex",t)}catch(t){w("cidParse",t)}},k=function(t,e){O(t,"cid",e)},R=function(t){(!Number.isInteger(t.position)||t.position<1||5<t.position)&&w("breadcrumbValidateItem:position",t);const e={p:t.position,n:"",u:""};"string"==typeof t.name&&"string"==typeof t.item&&N(t.name)&&N(t.item)?(e.n=t.name,e.u=t.item,A(["breadcrumb:vi:ni",e])):"object"==typeof t.item&&"string"==typeof t.item["@id"]&&"string"==typeof t.item.name&&N(t.item["@id"])&&N(t.item.name)&&(e.n=t.item.name,e.u=t.item["@id"],A(["breadcrumb:vi:item",e])),e.n=L(e.n);try{const n=new URL(e.u);e.u=n.toString()}catch(t){return void w("breadcrumbValidateItem:url",t)}if(0<e.n.length||0<e.u.length)return e},C=function(t,e){return t.p>e.p?1:-1},U=function(t){let e=void 0;if(t.mainEntityOfPage&&t.mainEntityOfPage.breadcrumb?e=Array.isArray(t.mainEntityOfPage.breadcrumb)?t.mainEntityOfPage.breadcrumb[0]:t.mainEntityOfPage.breadcrumb:t["@type"]&&"breadcrumblist"===t["@type"].toLowerCase()?e=t:Array.isArray(t)&&t[0]&&t[0]["@type"]&&"breadcrumblist"===t[0]["@type"].toLowerCase()&&(e=t[0]),e&&e.itemListElement&&Array.isArray(e.itemListElement)&&0<e.itemListElement.length)return e},q=function(t){const i={};let o=!0;if(t.forEach(function(t,e){const n=e+1;var e=n.toString(),r="n"+e,e="u"+e;t.p!==n||t.p<1||5<t.p?o=!1:(i[r]=t.n,i[e]=t.u)}),o)return i},M=function(t,e,n){const r=void 0===n?t[e]:t[n]-t[e];if(s(r)&&0<=r)return r.toString()};d.aasaamAnalytics=function(c){S=c.i;const r={cid:void 0,pageView:void 0,event:void 0},s=(e=c.p,t="aa_std",N(e)?e:t);var t;const u=x(c.sd,60,86400,1800);let i,o=[],a=function(t){var e=P(t,"cid");if("string"==typeof e)return.5<Math.random()&&k(t,e),e}(s);{let t=!0;if(a){var e=I(a);if(e){const p=new Date;p.setTime(p.getTime()-1e3*u),e.s<p?(a=D(e.i,new Date,e.r),k(s,a)):t=!1}}t&&(a=D(),k(s,a))}let f=E(P(s,"gs"));function l(t,e){const n=new URL(h);Object.entries(t).forEach(function(t){n.searchParams.set(t[0],t[1])}),v.sendBeacon(n.toString(),JSON.stringify(e))}function g(){if(o.length){const r=o.reduce(function(t,e){return(t[e.i]=t[e.i]||[]).push(e),t},{});Object.keys(r).forEach(function(t){var e=t===c.i?"e_js_pv":"e_js_c",n=r[t].map(function(t){return{c:t.c,a:t.a,l:t.l,v:t.v}});l({i:t,m:e},{cid_std:a,p:i,ev:n})}),o=[]}}async function n(e){const n=e||{};var i,r,e=function(){const e=y.querySelector("main");if(e){var n=L(e.getAttribute("data-entity-id")),r=L(e.getAttribute("data-entity-module"));if(1<=n.length&&1<=r.length){let t;var i=e.getAttribute("data-entity-taxonomy");if(T(i)&&(t=i),_(n)&&J(r))return{i:n,m:r,t:t};w("mainEntity",{i:"",m:""})}}return{i:"",m:""}}();const o={u:j(n.u)?n.u:d.location.href,t:N(n.t)?n.t:function(){let t=y.title;const e=y.querySelector('meta[property="og:title"]');return e&&e.hasAttribute("content")&&(t=e.getAttribute("content")),L(t)}(),l:N(n.l)?n.l:function(){let t="";const e=y.querySelector("html[lang]");return e&&e.hasAttribute("lang")&&(t=e.getAttribute("lang")),L(t)}(),cu:j(n.cu)?n.cu:function(){const t=y.querySelector("link[rel=canonical]");if(t&&t.hasAttribute("href")){var e=t.getAttribute("href");if(j(e))return e;w("canonicalURL",e)}}(),ei:N(n.ei)?n.ei:e.i,em:J(n.em)?n.em:e.m,et:T(n.et)?n.et:e.t,r:void 0,bc:{},scr:d.screen.width+"x"+d.screen.height,vps:d.innerWidth+"x"+d.innerHeight,cd:d.screen.colorDepth.toString(),k:void 0,rs:void 0,dpr:d.devicePixelRatio.toString(),if:function(){try{return d.self!==d.top}catch(t){}return!0}(),ts:"ontouchstart"in d||0<v.maxTouchPoints,sot:function(){if(d.screen.orientation&&d.screen.orientation.type)return d.screen.orientation.type}(),prf:{},geo:f,usr:N(n.usr)?n.usr:void 0};{let t=y.referrer;n.r&&j(n.r)&&(t=n.r),o.r=t,o.rs=(e=t,"string"==typeof(i=P(s,"rs"))?i:(O(s,"rs",e,u),e))}{let t=function(){let t=[];const e=y.querySelector("meta[name=keywords]");return t=e&&e.hasAttribute("content")?L(e.getAttribute("content")).split(","):t}();Array.isArray(n.k)&&(t=n.k),o.k=t.map(function(t){return L(t).toLowerCase()}).slice(0,10).join(",")}if(n.bc&&(o.bc=function(t){let e=[];if("object"==typeof t&&Array.isArray(t.itemListElement)&&0<t.itemListElement.length)e=t.itemListElement;else if("string"==typeof t&&N(t)){var n=t,r=y.querySelector(n);if(r)try{var i=JSON.parse(r.innerHTML),o=U(i);o?e=o.itemListElement:w("breadcrumbProcess:selector:invalid:"+n)}catch(t){w("breadcrumbProcess:selector:"+n,t)}}else if(!0===t){r=y.querySelector('script[type="application/ld+json"]');if(r)try{var a=JSON.parse(r.innerHTML),c=U(a);c?e=c.itemListElement:w("breadcrumbProcess:first-json+ld",a)}catch(t){w("breadcrumbProcess:first-json+ld",t)}else w("breadcrumbProcess:first-json+ld:not-found")}if(0<e.length){const u=[];for(let t=0;t<e.length;t+=1){var s=R(e[t]);if(!s)return w("breadcrumbProcess:item-invalid",{list:e,item:s}),{};u.push(s)}if(0<u.length){i=u.sort(C),o=q(i);if(o)return o}}return{}}(n.bc)),void 0===o.geo)if(!0===n.geo){var a=P(s,"gf");if("1"!==a){let e=86400,n=604800,t=10,r=!0;c.gl&&(n=x(c.gl.lt,3600,7776e3,n),e=x(c.gl.fc,60,86400,e),t=x(c.gl.fc,1,60,t),r=(a=c.gl.ha,i=r,"boolean"==typeof a?a:i)),!async function(t,r,i){return new Promise(function(e,n){v.geolocation.getCurrentPosition(function(t){t={lat:t.coords.latitude,lon:t.coords.longitude};e(t)},function(t){n(t)},{maximumAge:t,timeout:r,enableHighAccuracy:i})})}(1e3*n,1e3*t,r).then(function(t){o.geo=t,O(s,"gs",t,n),A(["processGeo:success",t,{storagePrefix:s,geoCacheSuccessKey:"gs",geo:t,geoSuccessAgeSeconds:n}])}).catch(function(t){O(s,"gf","1",e),A(["processGeo:failed",t])})}}else"object"!=typeof n.geo||(a=E(n.geo))&&(o.geo=a);return r=n.pwt,(e=await new Promise(function(t){const e=d.performance;setTimeout(function(){if(!e||0===b.timeOrigin)return t(void 0);t(e.toJSON())},x(r,50,2e3,500))}))&&(o.prf.plt=M(e.timing,"navigationStart","loadEventStart"),o.prf.dlt=M(e.timing,"domainLookupStart","domainLookupEnd"),o.prf.tct=M(e.timing,"connectStart","connectEnd"),o.prf.srt=M(e.timing,"requestStart","responseStart"),o.prf.pdt=M(e.timing,"responseStart","responseEnd"),o.prf.rt=M(e.timing,"navigationStart","fetchStart"),o.prf.dit=M(e.timing,"navigationStart","domInteractive"),o.prf.clt=M(e.timing,"navigationStart","domContentLoadedEventStart")),o.prf.r=JSON.parse(JSON.stringify(d.performance.getEntries())).length,o}let m;return r.pageView=function(t){return n(t).then(function(t){i=JSON.parse(JSON.stringify(t)),l({i:c.i,m:"pv_js"},{cid_std:a,p:t}),d.aai.ie&&d.aai.ie.forEach(function(t){r.event(t)})}).catch(function(t){w("pageView",t)}),r},r.event=function(t,e){let n=c.i;return N(e)&&(n=e),J(t.c)?J(t.a)?void 0===t.l&&N(t.l)?void 0!==t.v&&(!Number.isInteger(t.v)||t.v<1)?w("event:value",t):(o.push({i:n,c:t.c,a:t.a,l:t.l,v:t.v}),50<=o.length?g():(d.clearTimeout(m),m=d.setTimeout(function(){g()},1e3))):w("event:label",t):w("event:action",t):w("event:category",t),r},void 0===c.pv||!0===c.pv?r.pageView():"object"==typeof c.pv&&r.pageView(c.pv),r.cid=function(){const t=I(a);if(t)return{i:t.i,s:t.s,r:t.r,p:t.i.getTime().toString()+t.r}},r.i=!0,r}}if(!0!==d.aai.i&&y.currentScript&&y.currentScript.hasAttribute("data-i"))try{d.aai=d.aasaamAnalytics(JSON.parse(decodeURIComponent(d.atob(y.currentScript.getAttribute("data-i")))))}catch(t){w("aasaam-analytics:initialize-error:",t)}}(window,document,performance,navigator,console,localStorage);