(this["webpackJsonpipfs-webui"]=this["webpackJsonpipfs-webui"]||[]).push([[19],{1659:function(e,t,n){var i,o;o="undefined"!==typeof window?window:this,void 0===(i=function(){return function(e){"use strict";var t,n,i,o="19.08",r="javascript_native_web",a=!1,s=!1,c="/i",d="/o/sdk",l=500,u=1e3,f=[],m=[],p={},_=[],g={},y=[],h=null,v=!0,w=0,k=null,b=0,x=0,L=0,C=60,S=20,E=0,O=60,N=10,T=100,A=!0,M=30,B=0,I=!0,q=!1,H=!1,P={},J={},z=/^(((([^:\/#\?]+:)?(?:(\/\/)((?:(([^:@\/#\?]+)(?:\:([^:@\/#\?]+))?)@)?(([^:\/#\?\]\[]+|\[[^\/\]@#?]+\])(?:\:([0-9]+))?))?)?)?((\/?(?:[^\/\?#]+\/+)*)([^\?#]*)))?(\?[^#]+)?)(#.*)?/,D=/(CountlySiteBot|nuhk|Googlebot|GoogleSecurityScanner|Yammybot|Openbot|Slurp|MSNBot|Ask Jeeves\/Teoma|ia_archiver|bingbot|Google Web Preview|Mediapartners-Google|AdsBot-Google|Baiduspider|Ezooms|YahooSeeker|AltaVista|AVSearch|Mercator|Scooter|InfoSeek|Ultraseek|Lycos|Wget|YandexBot|Yandex|YaDirectFetcher|SiteBot|Exabot|AhrefsBot|MJ12bot|TurnitinBot|magpie-crawler|Nutch Crawler|CMS Crawler|rogerbot|Domnutch|ssearch_bot|XoviBot|netseer|digincore|fr-crawler|wesee|AliasIO|contxbot|PingdomBot|BingPreview|HeadlessChrome)/,j=!0;(e=e||{}).features=["sessions","events","views","scrolls","clicks","forms","crashes","attribution","users","star-rating","location"];for(var R,V={},Y=0;Y0)for(var i=0;i0&&(ie({events:JSON.stringify(m)}),Oe("cly_event",m=[])),e.end_session(null,!0),g={});var i=e.device_id;e.device_id=t,Oe("cly_id",e.device_id),de("Changing id"),n?e.check_any_consent()?ie({old_device_id:i}):J.change_id=arguments:e.begin_session(!v,!0),e.remote_config&&(Oe("cly_remote_configs",p={}),e.fetch_remote_config(e.remote_config))}},e.add_event=function(t){e.check_consent("events")&&U(t)},e.start_event=function(e){g[e]?de("Timed event with key "+e+" already started"):g[e]=le()},e.end_event=function(t){"string"==typeof t&&(t={key:t}),t.key?g[t.key]?(t.dur=le()-g[t.key],e.add_event(t),delete g[t.key]):de("Timed event with key "+t.key+" was not started"):de("Event must have key property")},e.user_details=function(t){if(e.check_consent("users")){de("Adding userdetails: ",t);var n=["name","username","email","organization","phone","picture","gender","byear","custom"];ie({user_details:JSON.stringify(ye(t,n))})}},e.report_conversion=function(t,n){e.check_consent("attribution")&&(t=t||Oe("cly_cmp_id")||"cly_organic",n=n||Oe("cly_cmp_uid"),t&&n?ie({campaign_id:t,campaign_user:n}):t&&ie({campaign_id:t}))};var X={},G=function(t,n,i){e.check_consent("users")&&(X[t]||(X[t]={}),"$push"===i||"$pull"===i||"$addToSet"===i?(X[t][i]||(X[t][i]=[]),X[t][i].push(n)):X[t][i]=n)};function $(){e.ignore_prefetch&&"undefined"!==typeof document.visibilityState&&"prerender"===document.visibilityState&&(e.ignore_visitor=!0),e.ignore_bots&&D.test(navigator.userAgent)&&(e.ignore_visitor=!0)}function W(e){var t=[];if("undefined"!==typeof e.options)for(var n=0;n0){for(t=0;tu&&f.shift(),f.push(t),Oe("cly_queue",f,!0)):de("app_key or device_id is missing"))}function oe(){if(Q(),e.test_mode||e.ignore_visitor)q=!1;else{q=!0;var n=0;if("undefined"!==typeof e.q&&e.q.length>0){var i,o=e.q;for(e.q=[],n=0;n0)if("undefined"!==typeof e[i[0]])e[i[0]].apply(null,i.slice(1));else{var r=i[0].replace("userData.","");"undefined"!==typeof e.userData[r]&&e.userData[r].apply(null,i.slice(1))}}if(s&&v&&j){var a=le();a-t>O&&(e.session_duration(a-t),t=a)}if(m.length>0){if(m.length<=N)ie({events:JSON.stringify(m)}),m=[];else{var d=m.splice(0,N);ie({events:JSON.stringify(d)})}Oe("cly_event",m)}if(!H&&f.length>0&&I&&le()>L){I=!1;var u=f.shift();Ee(P)&&(R&&(clearTimeout(R),R=null),u.consent=JSON.stringify(P),P={}),de("Processing request",u),Oe("cly_queue",f,!0),pe(e.url+c,u,(function(e,t){de("Request Finished",t,e),e&&(f.unshift(t),L=le()+C),Oe("cly_queue",f,!0),I=!0}))}setTimeout(oe,l)}}function re(){return Oe("cly_id")||ae()}function ae(){var e=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?n:3&n|8).toString(16)}))}function se(){return/[0-9a-fA-F]{8}\-[0-9a-fA-F]{4}\-4[0-9a-fA-F]{3}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{12}/.test(e.device_id)}function ce(){var t={};if(t._app_version=e.app_version,t._ua=navigator.userAgent,screen.width){var n=screen.width?parseInt(screen.width):0,i=screen.height?parseInt(screen.height):0;if(0!==n&&0!==i){if(navigator.platform&&/iPad|iPhone|iPod/.test(navigator.platform)&&window.devicePixelRatio)n=Math.round(n*window.devicePixelRatio),i=Math.round(i*window.devicePixelRatio);else if(90===Math.abs(window.orientation)){var o=n;n=i,i=o}t._resolution=n+"x"+i}}window.devicePixelRatio&&(t._density=window.devicePixelRatio);var r=navigator.language||navigator.browserLanguage||navigator.systemLanguage||navigator.userLanguage;if("undefined"!==typeof r&&(t._locale=r),"undefined"!==typeof document.referrer&&document.referrer.length){var a=z.exec(document.referrer);if(a&&a[11]&&a[11]!==window.location.hostname){var s=!1;if(y&&y.length)for(var c=0;c=e?B++:B=e,B}function fe(t,n,i){return"undefined"!==typeof n[t]?n[t]:"undefined"!==typeof e[t]?e[t]:i}function me(t,n,o){if(e.check_consent("crashes")&&t){o=o||h;var r="";"object"===typeof t?"undefined"!==typeof t.stack?r=t.stack:("undefined"!==typeof t.name&&(r+=t.name+":"),"undefined"!==typeof t.message&&(r+=t.message+"\n"),"undefined"!==typeof t.fileName&&(r+="in "+t.fileName+"\n"),"undefined"!==typeof t.lineNumber&&(r+="on "+t.lineNumber),"undefined"!==typeof t.columnNumber&&(r+=":"+t.columnNumber)):r=t+"",n=!!n;var a=ce(),s={_resolution:a._resolution,_error:r,_app_version:a._app_version,_run:le()-i,_not_os_specific:!0},c=navigator.battery||navigator.webkitBattery||navigator.mozBattery||navigator.msBattery;c&&(s._bat=Math.floor(100*c.level)),"undefined"!==typeof navigator.onLine&&(s._online=!!navigator.onLine),s._background=!document.hasFocus(),_.length>0&&(s._logs=_.join("\n")),_=[],s._nonfatal=n,s._view=(window.location.pathname||"")+(window.location.search||"")+(window.location.hash||""),"undefined"!==typeof o&&(s._custom=o);try{var d=document.createElement("canvas").getContext("experimental-webgl");s._opengl=d.getParameter(d.VERSION)}catch(l){}ie({crash:JSON.stringify(s)})}}function pe(t,n,i){try{de("Sending XML HTTP request");var o=window.XMLHttpRequest?new window.XMLHttpRequest:window.ActiveXObject?new window.ActiveXObject("Microsoft.XMLHTTP"):null,r=_e(n=n||{}),a="GET";(e.force_post||r.length>=2e3)&&(a="POST"),"GET"===a?o.open("GET",t+"?"+r,!0):(o.open("POST",t,!0),o.setRequestHeader("Content-type","application/x-www-form-urlencoded")),o.onreadystatechange=function(){4===this.readyState&&this.status>=200&&this.status<300?"function"===typeof i&&i(!1,n,this.responseText):4===this.readyState&&(de("Failed Server XML HTTP request",this.status),"function"===typeof i&&i(!0,n))},"GET"===a?o.send():o.send(r)}catch(s){de("Failed XML HTTP request",s),"function"===typeof i&&i(!0,n)}}function _e(e){var t=[];for(var n in e)t.push(n+"="+encodeURIComponent(e[n]));return t.join("&")}function ge(e){return"/"===e.substr(e.length-1)?e.substr(0,e.length-1):e}function ye(e,t){for(var n,i={},o=0;oT&&_.shift(),_.push(t))},e.fetch_remote_config=function(t,n,i){if(e.check_any_consent()){var o={method:"fetch_remote_config"};e.check_consent("sessions")&&(o.metrics=JSON.stringify(ce())),t&&(i||"function"!==typeof t?Array.isArray(t)&&t.length&&(o.keys=JSON.stringify(t)):(i=t,t=null)),n&&(i||"function"!==typeof n?Array.isArray(n)&&n.length&&(o.omit_keys=JSON.stringify(n)):(i=n,n=null)),ne(o),pe(e.url+d,o,(function(e,t,n){try{var r=JSON.parse(n);if(o.keys||o.omit_keys)for(var a in r)p[a]=r[a];else p=r;Oe("cly_remote_configs",p)}catch(s){}"function"===typeof i&&i(e,p)}))}},e.get_remote_config=function(e){return"undefined"!==typeof e?p[e]:p},e.stop_time=function(){j&&(j=!1,w=le()-t,x=le()-b)},e.start_time=function(){j||(j=!0,t=le()-w,b=le()-x,x=0,te())},e.track_sessions=function(){e.begin_session(),e.start_time(),he(window,"beforeunload",(function(){e.end_session()})),he(window,"unload",(function(){e.end_session()}));var t="hidden";function n(){document[t]?e.stop_time():e.start_time()}function i(){E>=S&&e.start_time(),E=0}t in document?document.addEventListener("visibilitychange",n):(t="mozHidden")in document?document.addEventListener("mozvisibilitychange",n):(t="webkitHidden")in document?document.addEventListener("webkitvisibilitychange",n):(t="msHidden")in document?document.addEventListener("msvisibilitychange",n):"onfocusin"in document?(he(window,"focusin",(function(){e.start_time()})),he(window,"focusout",(function(){e.stop_time()}))):(he(window,"focus",(function(){e.start_time()})),he(window,"blur",(function(){e.stop_time()})),he(window,"pageshow",(function(){e.start_time()})),he(window,"pagehide",(function(){e.stop_time()}))),he(window,"mousemove",i),he(window,"click",i),he(window,"keydown",i),he(window,"scroll",i),setInterval((function(){++E>=S&&e.stop_time()}),6e4)},e.track_pageview=function(t,n){if(Z(),t&&Array.isArray(t)&&(n=t,t=null),t||(t=e.getViewName()),n&&n.length)for(var i=0;i0?(document.body.insertAdjacentHTML("beforeend",'
'),pe(e.url+"/o/feedback/multiple-widgets-by-id",{widgets:JSON.stringify(n)},(function(e,t,n){e&&de("Errors occurred:",e);try{for(var i=JSON.parse(n),o=0;o