Files
ASF_tools_legacy/asf-cloud-server/monitor/openproject_files/DuiGWzmiSGJ0WmdWCmCrAw8bK8w.br.js.download
2025-12-26 15:17:21 +01:00

1 line
12 KiB
Plaintext

var __assign=this&&this.__assign||function(){return __assign=Object.assign||function(n){for(var t,r,i=1,u=arguments.length;i<u;i++){t=arguments[i];for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},__assign.apply(this,arguments)},__spreadArray=this&&this.__spreadArray||function(n,t,i){if(i||arguments.length===2)for(var r=0,f=t.length,u;r<f;r++)!u&&r in t||(u||(u=Array.prototype.slice.call(t,0,r)),u[r]=t[r]);return n.concat(u||Array.prototype.slice.call(t))};define("clientinst_xls",["require","exports"],function(n,t){function ru(){function n(n,t){n in i||(i[n]=t)}i=_w[bi]=_w[bi]||{};n(d,2e3);n(ir,1e3);n(rr,5e5);n(ur,1e5);n(fr,500);n(s,!0);n(er,3);n(tu,5e3)}function sr(){gt=0;pi=_G.ST?_G.ST.getTime():0;ii=!1;oi={}}function y(n,t,r,u){var o,f,h;i[s]&&(o=(new Date).getTime(),f={errorType:n,failCount:t,ImpressionGuid:r,TS:o,SEQ:gt++},f[e]=v+"LER",ht(f),u?(wi++,wi>i[er]&&(f.errorType="Overload",i[s]=!1),h={impressionGuid:r,timestamp:o,data:{eventType:kt,eventData:f}},ci([h])):tt(kt,f,null))}function uu(){ru();sr();try{w=_w.localStorage;u.initialize()}catch(n){}}function p(n){u.append(n);l()}function hi(n){return JSON.stringify(n).replace(/]]>/g,"]]]\]><![CDATA[>")}function r(n,t,i){n.push("<",t,">",i,"<\/",t,">")}function fu(n,t,i){var s,e=n.data,o=e.eventData,h,u,f;o||(o=e.eventData={});t.push("<E>");r(t,"T","Event."+e.eventType);r(t,"IG",o.OvrIG||n[ft]);n[ui]&&(r(t,"PrevIG",n[ui]),n[fi]&&r(t,"DominantIG",n[fi]));h=e.dataSources;h&&r(t,"DS","<![CDATA["+hi(h)+"]\]>");u=e.pageLayout;u&&(t.push("<Page>"),f=!1,"Name"in u&&(r(t,"Name",u.Name),f=!0),"Number"in u&&(r(t,"Num",u.Number),f=!0),"IID"in u&&(r(t,"IID",u.IID),f=!0),"SFX"in u&&(r(t,"SFX",u.SFX),f=!0),f&&(u=(s=u.L)!==null&&s!==void 0?s:[]),r(t,"L","<![CDATA["+hi(u)+"]\]>"),t.push("<\/Page>"));o.UTS=i;r(t,"D","<![CDATA["+hi(o)+"]\]>");r(t,"TS",n[nr]);t.push("<\/E>")}function ht(n){var t=_w.location.href,i;return ut&&t.indexOf(ut)===0||(i=t.indexOf("?"),i<0&&(i=t.indexOf("#")),ut=i<0?t:t.substring(0,i)),n.CurUrl=ut,n}function hr(n){var i={isCompressed:!1,stringValue:""},t=["<ClientInstRequest>"],l=(new Date).getTime(),a=_G.CID||sj_cook.get(vi,vi),s,u,v,f,h,c,e,y,o;if(a&&r(t,"CID",a),n.length>0){for(s=n[0].data,s.eventType==dt&&(u=s.pageLayout,u&&u.IID&&u.SFX&&(v=u.IID+"_"+u.SFX,r(t,"AppNS",v))),f=0,h=nu;f<h.length;f++)c=h[f],_w[b]&&_w[b][c]&&_w[b][c](n,t,l,i);if(n.length>0){for(t.push("<Events>"),e=0;e<n.length;e++)y=n[e],fu(y,t,l);t.push("<\/Events>")}}if(t.push("<\/ClientInstRequest>"),o=t.join(""),_G.EnableCompression&&_w.fflate){var w=_w.fflate.strToU8(o),k=_w.fflate.deflateSync(w),p=btoa(String.fromCharCode.apply(String,k));if(p.length<o.length)return i.stringValue=p,i.isCompressed=!0,i}return i.stringValue=o,i}function cr(n){if(_w[o]&&_w[o][ki])return _w[o][ki](n);var t=[];return _G.XLSOvr&&t.push({key:"f",value:_G.XLSOvr}),n.isCompressed?ct(_G.XLSC,t):ct(_G.XLS,t)}function ct(n,t){var r=[],i,u,f,e;if(r.push({key:"dl"}),t)for(i=0,u=t;i<u.length;i++)f=u[i],r.push({key:f.key,value:f.value});return e=n.indexOf("?")!==-1?"&":"?",n+e+r.map(function(n){var t;return n.key?n.key+"="+encodeURIComponent((t=n.value)!==null&&t!==void 0?t:"1"):""}).join("&")}function l(n){if(n===void 0&&(n=!1),i[s]){var t=n?c[k]:c[et];t[ot]||(t[ot]=setTimeout(function(){return nt(n,!1)},t.getInterval()))}}function nt(n,t,r){var e,b,a,v,p,h,w,o;if(i[s]&&(e=n?c[k]:c[et],clearTimeout(e[ot]),e[ot]=null,!n||!c[et][f])){if(!n&&c[k][f]&&c[k][f].abort(),e[f])if(b=(new Date).getTime()-e[tr],b>i[d]||r&&r.forceFlushNoSB)e[f].abort(),e[f]=null,y("TimedOut",1,_G.IG);else return;if(a=br(r),v=u.getBatch(n),v.length!=0){if(p=v.map(function(n){return n.log}),a&&lt(p,"SB"),h=hr(p),w=cr(h),a&&ou(w,h.stringValue)){e[f]&&t&&(e[f].abort(),e[f]=null);u.clearSentItems(n,!0)&&!n&&l(!1);l(!0);return}o=sj_gx();o.open("POST",w,!0);i[d]>=1e3&&(o.timeout=i[d]);o.onload=function(){return eu(o,e,n)};o.setRequestHeader("Content-type","text/xml");e[f]=o;e[tr]=(new Date).getTime();o.send(h.stringValue)}}}function lt(n,t,i){n.forEach(function(n){var r,u;(r=(u=n.data.eventData)[bt])!==null&&r!==void 0?r:u[bt]={};n.data.eventData[bt][t]=i!==null&&i!==void 0?i:"1"})}function eu(n,t,i){if(n.readyState===4){t[f]=null;var r=Math.floor(n.status/100);r===2?(u.clearSentItems(i)&&!i&&l(!1),l(!0)):r===4?(u.markFailedItems(!0,i),l(!0)):u.markFailedItems(!1,i);i&&u.recordRetryAttempt()}}function at(n,t,i,r,u,f,e,o,s){for(var d,h,a,v,l,y,g,c,p,w,b,k=0,nt=gr;k<nt.length;k++)d=nt[k],_w[ni]&&_w[ni][d]&&_w[ni][d](t);if(h={},ht(h),t)if(typeof t=="string")h.Text=t;else for(a in t)t.hasOwnProperty(a)&&(h[a]=t[a]);if(i&&(or.indexOf(i)>=0?h.T=i:(i.substring(0,3)==="CI."&&(i=i.substring(3)),h.T="CI."+i)),v=s||(new Date).getTime(),h.TS=v,h.RTS=v-pi,h.SEQ=gt++,l=(c={},c[ft]=f||h.ImpressionGuid||_G.IG,c[ui]=e,c[nr]=v,c.data={eventType:n||rt,eventData:h,dataSources:r,pageLayout:u},c[fi]=o,c),_G.XLSThrottle&&iu.indexOf(h.T)===-1){if(y=[l[ft],n!==null&&n!==void 0?n:rt,(p=h.T)!==null&&p!==void 0?p:"",(w=h.FID)!==null&&w!==void 0?w:"",(b=h.Name)!==null&&b!==void 0?b:""].join(","),ei.hasOwnProperty(y)||(ei[y]=0),g=++ei[y],g>_G.XLSThrottle)return null;g===_G.XLSThrottle&&lt([l],"TT")}return h.T==="CI.Click"||h.T==="CI.PredictionShown"||n===dt?(ci([l]),null):l}function ci(n){var i=hr(n),r=cr(i),u=i.stringValue,t;navigator&&navigator.sendBeacon?navigator.sendBeacon(r,u):(t=sj_gx(),t.open("POST",r),t.setRequestHeader("Content-type","text/xml"),t.send(u))}function lr(n,t){var r=[];for(var i in n)n.hasOwnProperty(i)&&(typeof n[i]=="string"&&(n[i]=decodeURIComponent(n[i])),r.push(i,n[i]));a(n.T,n.FID,n.Name,t,r,"DL")}function li(n,t){(new Image).src=_G.lsUrl+"&dl=2&Type=Event.ClientInst&DATA="+n;a("Info","XLS","DLFallback",!1,["DATA",n,"SRC",t],"DLF")}function ai(n,t,i){var r,u,f,e;if(_G.DirectLogFlight!=null&&t<=_G.DirectLogFlight)try{r=null;try{r=JSON.parse(n)}catch(o){r=JSON.parse(decodeURIComponent(n).replace(/[\u0000-\u001F]+/g,""))}if(Array.isArray(r))for(u=0,f=r;u<f.length;u++)e=f[u],lr(e,i);else r!==null&&typeof r=="object"?lr(r,i):li(n,"Else JSON Parse")}catch(o){li(n,"DLErr -"+o.message)}else li(n,"Else Flight Group")}function ar(n){var i,t;if(_G.DLPState!=null)try{if(n=n.replace(/(\w+):(?=(?:[^"]*"[^"]*")*[^"]*$)/g,'"$1":'),n=JSON.parse(n),n[e]=(i=n[e])!==null&&i!==void 0?i:v+"LPerf",t=at("ClientInst",n,"CI.Perf"),!t)return;_G.DLPState==0?ci([t]):_G.DLPState==1&&p(t)}catch(r){a("Info","XLS","LPFallback",!1,["DATA",n,"SRC","LPErr - "+r.message],"LPF")}}function tt(n,t,r,u,f,o,h,c,l){var a,y;i[s]&&(t!==null&&t!==void 0?t:t={},t[e]=(a=t[e])!==null&&a!==void 0?a:v+"LE",y=at(n,t,r,u,f,o,h,c,l),y)&&p(y)}function vr(n){var t,i=[];n.forEach(function(n){oi.hasOwnProperty(n)||(oi[n]=1,i.push(n))});i.length>0&&tt(yi,(t={queryTags:i.join(",")},t[e]="F",t),yi)}function yr(n,t,r,u,f,o){var h,l,c;if(i[s]){if(!n||!t||!r||!u)return console.error("LogCustomData: Missing one or more required identifier fields in data object");(l=__assign((h={T:n,FID:t,Name:r,Namespace:u,CustomDataKeys:Object.keys(f).join(",")},h[e]=v+"CD",h),f),c=at(rt,l,n,null,null,o),c)&&p(c)}}function ou(n,t){var i="sendBeacon",r=!1;if(navigator&&navigator[i])try{r=navigator[i](n,t)}catch(u){y("SBFail",1,_G.IG)}return r}function br(n){return _w[o]&&_w[o][di]?_w[o][di](n):n&&n.useSendBeacon}function kr(n,t){n===void 0&&(n=!0);(br(t)||t&&t.forceFlushNoSB)&&(u.dumpToStorage(),nt(!1,!0,t))}function vt(){u.dumpToStorage();nt(!1,!1)}function yt(){u.dumpToStorage();ti=!0;nt(!1,!0,{useSendBeacon:!0})}function dr(n,t,i){n!==null&&n!==void 0?n:n={};n[e]=v+"LP";tt(dt,n,"ClientSidePartialImpression",t,i)}var it,pt,wt,or,u,c,pr,wr,a;t.__esModule=!0;t.LogPartialImpression=t.FlushMainQueueDontForce=t.ForceFlush=t.Log2=t.Log=t.LogCustomData=t.LogFilterFlare=t.LogEvent=t.LogPerf=t.DirectLog=t.modifyRoute=t.collectCommonEventProperties=t.enqueue=void 0;var v="XLS-",e="SDK",bt="XLSF",vi="MUID",kt="CIQueueError",dt="PartialDynamicContent.FrontDoor",rt="ClientInst",yi="FilterFlare",i,gt,pi,w,ut,wi=0,bi="ClientInstConfig",ni="XLS_PreProcessor",gr=["ChatPrivacy","WSB"],b="XLS_PostProcessor",nu=["WSB"],o="XLS_Plugin_Function_Overrides",ki="determineRoute",di="useSendBeacon",gi="forceFlushNoSendBeacon",ti=!1,ii=!1,h="inProgress",ri="retried",ft="impressionGuid",ui="previousImpressionGuid",fi="dominantImpressionGuid",nr="timestamp",f="currentRequest",tr="requestSentTimestamp",et="mainQueue",k="retryQueue",ot="flushTimeoutHandle",d="flushInterval",ir="retryInterval",rr="maxStorageUse",ur="maxBatchSize",fr="queueDumpInterval",s="isInstrumentationEnabled",er="maxDirectErrors",tu="pageInfoTimeout",ei={},iu=["CI.Click","CI.BoxModel","CI.FilterFlare"],oi={},g="sj_evt",st="sj_be",si;(function(n){n[n.EVENT=0]="EVENT";n[n.MASTER_PAGE_IMPRESSION=1]="MASTER_PAGE_IMPRESSION"})(si||(si={}));or=["IsCI","VDPChapterTimestampClick"],function(n){function p(n){var t=["proactive","search","zinc"].some(function(t){return n.indexOf(t)==1});return"eventLogQueue"+(t?"_Online":"_Offline")}function a(){return f&&i[s]}function u(){var n,t;if(a()){n=rt();try{t=o;w[t]=n}catch(i){if(i.name.toLowerCase().indexOf("quota")>=0)f=!1;else throw i;}}}function c(){a()&&(e&&clearTimeout(e),e=setTimeout(u,i[fr]))}function k(){var n,e,i,u,r;if(w){if(n=w[o],t=[],typeof n=="string"||n&&n.length!==0)try{if(t=JSON.parse(n),t.some(function(n){return!n.log}))y("LSItemErr",t.length,_G.IG),t=[];else if(e=t.length,e>0){for(i=0,u=t;i<u.length;i++)r=u[i],lt([r.log],"RE",r[h]?"IP":"NS"),r[h]=!1;_G.WSBSplit?nt(!1,!0,{useSendBeacon:!0}):l()}}catch(s){y("LSErr",0,_G.IG)}w[o]="[]";f=!0}}function d(n){var s=[],e=n?r[0]:t,o,c,f,u;if(e)for(o=0,c=e.length,f=0;f<c;f++)if((u=e[f],n||!u[ri])&&(!_G.XLSNoFlush||!u.log||u.log.type!==si.MASTER_PAGE_IMPRESSION||_w[b]&&_w[b].WSB))if(o+=u.size,o<=i[ur])u[h]=!0,s.push(u);else break;return s}function g(n,i){return i===void 0&&(i=!1),t=t.filter(function(t){return!t[h]&&(!n||t[ri])}),i?u():c(),t.length>0}function tt(n,i){for(var f=[],s=i?r[0]:t,e=0,u,o,l;e<s.length;)if(u=s[e],u[h])if(lt([u.log],"retry",n?"BR":"RE"),n){if(s.splice(e,1),u.log.data&&u.log.data.eventType===kt)continue;u[ri]=!0;f.push(u)}else u[h]=!1,e++;else e++;o=f.length;o==1?y("LogDrop",1,f[0].log[ft]):o>0&&(l=o/2,r.push(f.slice(0,l)),r.push(f.slice(l)));c()}function it(){var n,t,i;if(r.length>0){for(n=r[0],t=0;t<n.length;)i=n[t],i[h]?n.splice(t,1):t++;n.length==0&&r.shift()}}function rt(){var e=JSON.stringify(t),u=e.length-i[rr],o=t.length,r,n,f;if(u>0)for(r=0,n=0;n<o;n++)if(f=t[n].size,r+=f+1,r>=u){t.splice(0,n+1);y("QueueTrim",n+1,_G.IG,!0);break}return JSON.stringify(t)}function ut(n){var i,r=(i={log:n,retried:!1},i[h]=!1,i.size=0,i),f=JSON.stringify(r).length+3;r.size=f;t.push(r);ti?u():c()}var t=[],f=!1,e=null,r=[],v=_w.location.pathname,o=p(v);n.dumpToStorage=u;n.initialize=k;n.getBatch=d;n.clearSentItems=g;n.markFailedItems=tt;n.recordRetryAttempt=it;n.append=ut}(u||(u={}));t.enqueue=p;t.collectCommonEventProperties=ht;t.modifyRoute=ct;c=(it={},it[et]={getInterval:function(){return i[d]}},it[k]={getInterval:function(){return i[ir]}},it);t.DirectLog=ai;t.LogPerf=ar;t.LogEvent=tt;t.LogFilterFlare=vr;t.LogCustomData=yr;pr=function(n,t,i,r){for(var f=[],u=4;u<arguments.length;u++)f[u-4]=arguments[u];a(n,t,i,r,f,"L")};t.Log=pr;wr=function(n,t,i,r,u,f,e){var o=Object.keys(e).reduce(function(n,t){return __spreadArray(__spreadArray([],n,!0),[t,e[t]],!1)},[]);i&&o.push("Service",i);r&&o.push("Scenario",r);u&&o.push("AppNS",u);f&&o.push("K",f);a(n,null,t,!1,o,"L2")};t.Log2=wr;a=function(n,t,r,u,f,o){var l,h,c,y,b,w;if(i[s]){if(ii||(ii=!0,a("Init","CI","Base",!1,[],"L")),h={},f&&f.length>0&&f.length%2==0)for(c=0;c<f.length;c+=2)(y=f[c],b=f[c+1],y)&&(h[y]=b);(l=h[e])!==null&&l!==void 0?l:h[e]=v+(o!==null&&o!==void 0?o:"");h.hasOwnProperty("K")||typeof t!="number"||(h.K=t);h.Name=r||"";h.FID=typeof t!="number"?t||"VoidFID":"KFID";w=at(rt,h,n);w&&p(w)}};t.ForceFlush=kr;t.FlushMainQueueDontForce=vt;t.LogPartialImpression=dr;(pt=_w.Log)!==null&&pt!==void 0?pt:_w.Log={};_w.Log=__assign(__assign({},_w.Log),{Log:t.Log,LogFilterFlare:vr,DirectLog:ai,LogCustomData:yr,LogPerf:ar});(wt=_w.Log2)!==null&&wt!==void 0?wt:_w.Log2={};_w.Log2=__assign(__assign({},_w.Log2),{LogEvent:tt,ForceFlush:kr,FlushMainQueueDontForce:vt});_G.DLF&&(_w.directLog=ai);_w.sj_log2=t.Log2;_w.cspi_log=dr;_w.LogUtils={Enqueue:p,ModifyRoute:ct,CollectCommonEventProperties:ht};uu();_w[g]&&(_w[g].bind("onP1",vt,!0),_w[g].bind("ajax.postload",vt,!0),_G.WSBSplit||(_w[g].bind("ajax.unload",sr),_w[g].bind("unload",yt)));_w[st]&&(_w[st](_w,"beforeunload",yt),_G.WSBSplit||(_w[st](_w,"pagehide",yt),_w[st](_d,"visibilitychange",function(){_d.visibilityState==="hidden"?yt():ti=!1})))})