1,7063,7065,7068,7071,7074,7077,7080,7083,7086,7089,7092,7096,7099,7102,7105,7108,7111,7114,7118,7120,7123,7126,7128]},"version":"5.0.4"}
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="cf3f1545-9aae-55af-b1d5-95132c34e4e8")}catch(e){}}();
!function(e){var r={};function t(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:n})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var o in e)t.d(n,o,function(r){return e[r]}.bind(null,o));return n},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="",t(t.s=152)}({13:function(e,r){e.exports=require("electron")},152:function(e,r,t){"use strict";t.r(r);var n=t(13);n.contextBridge.exposeInMainWorld("auxiliary_view_actions",{reloadBrowserWindow:()=>n.ipcRenderer.send("reload_browser_window")})}});
//# sourceMappingURL=preload.js.map
//# debugId=cf3f1545-9aae-55af-b1d5-95132c34e4e8

!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="4d9d58bf-c534-5808-96b3-85b33e9369f1")}catch(e){}}();
!function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=651)}([function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return o}));var i=n(25);function r(e,...t){s(1,e,...t)}function a(e,...t){s(2,e,...t)}function o(e,...t){s(3,e,...t)}function s(e,t,...n){let r,a;"undefined"!=typeof window?(r="ElectronBrowser",a="preload"):(r="MainThread",a="electron_main");t+=n.length>0?" "+n.map(String).join(" "):"",Object(i.getApexContext)().getTraceLogger().log({threadname:r,file:a,line:0,level:e,msg:t,kv:{}})}},function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",(function(){return r})),n.d(t,"__assign",(function(){return a})),n.d(t,"__rest",(function(){return o})),n.d(t,"__decorate",(function(){return s})),n.d(t,"__param",(function(){return c})),n.d(t,"__esDecorate",(function(){return l})),n.d(t,"__runInitializers",(function(){return d})),n.d(t,"__propKey",(function(){return u})),n.d(t,"__setFunctionName",(function(){return p})),n.d(t,"__metadata",(function(){return m})),n.d(t,"__awaiter",(function(){return h})),n.d(t,"__generator",(function(){return g})),n.d(t,"__createBinding",(function(){return f})),n.d(t,"__exportStar",(function(){return b})),n.d(t,"__values",(function(){return _})),n.d(t,"__read",(function(){return v})),n.d(t,"__spread",(function(){return y})),n.d(t,"__spreadArrays",(function(){return I})),n.d(t,"__spreadArray",(function(){return w})),n.d(t,"__await",(function(){return A})),n.d(t,"__asyncGenerator",(function(){return C})),n.d(t,"__asyncDelegator",(function(){return E})),n.d(t,"__asyncValues",(function(){return S})),n.d(t,"__makeTemplateObject",(function(){return O})),n.d(t,"__importStar",(function(){return N})),n.d(t,"__importDefault",(function(){return T})),n.d(t,"__classPrivateFieldGet",(function(){return x})),n.d(t,"__classPrivateFieldSet",(function(){return B})),n.d(t,"__classPrivateFieldIn",(function(){return G})),n.d(t,"__addDisposableResource",(function(){return k})),n.d(t,"__disposeResources",(function(){return W}));var i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var a=function(){return(a=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function o(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}function s(e,t,n,i){var r,a=arguments.length,o=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(o=(a<3?r(o):a>3?r(t,n,o):r(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o}function c(e,t){return function(n,i){t(n,i,e)}}function l(e,t,n,i,r,a){function o(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var s,c=i.kind,l="getter"===c?"get":"setter"===c?"set":"value",d=!t&&e?i.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,i.name):{}),p=!1,m=n.length-1;m>=0;m--){var h={};for(var g in i)h[g]="access"===g?{}:i[g];for(var g in i.access)h.access[g]=i.access[g];h.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");a.push(o(e||null))};var f=(0,n[m])("accessor"===c?{get:u.get,set:u.set}:u[l],h);if("accessor"===c){if(void 0===f)continue;if(null===f||"object"!=typeof f)throw new TypeError("Object expected");(s=o(f.get))&&(u.get=s),(s=o(f.set))&&(u.set=s),(s=o(f.init))&&r.unshift(s)}else(s=o(f))&&("field"===c?r.unshift(s):u[l]=s)}d&&Object.defineProperty(d,i.name,u),p=!0}function d(e,t,n){for(var i=arguments.length>2,r=0;r<t.length;r++)n=i?t[r].call(e,n):t[r].call(e);return i?n:void 0}function u(e){return"symbol"==typeof e?e:"".concat(e)}function p(e,t,n){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function m(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function h(e,t,n,i){return new(n||(n=Promise))((function(r,a){function o(e){try{c(i.next(e))}catch(e){a(e)}}function s(e){try{c(i.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((i=i.apply(e,t||[])).next())}))}function g(e,t){var n,i,r,a,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,i&&(r=2&s[0]?i.return:s[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,s[1])).done)return r;switch(i=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,i=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){o.label=s[1];break}if(6===s[0]&&o.label<r[1]){o.label=r[1],r=s;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(s);break}r[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],i=0}finally{n=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}var f=Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]};function b(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||f(t,e,n)}function _(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function v(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,a=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(i=a.next()).done;)o.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return o}function y(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(v(arguments[t]));return e}function I(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,r++)i[r]=a[o];return i}function w(e,t,n){if(n||2===arguments.length)for(var i,r=0,a=t.length;r<a;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}function A(e){return this instanceof A?(this.v=e,this):new A(e)}function C(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=n.apply(e,t||[]),a=[];return i={},o("next"),o("throw"),o("return",(function(e){return function(t){return Promise.resolve(t).then(e,l)}})),i[Symbol.asyncIterator]=function(){return this},i;function o(e,t){r[e]&&(i[e]=function(t){return new Promise((function(n,i){a.push([e,t,n,i])>1||s(e,t)}))},t&&(i[e]=t(i[e])))}function s(e,t){try{(n=r[e](t)).value instanceof A?Promise.resolve(n.value.v).then(c,l):d(a[0][2],n)}catch(e){d(a[0][3],e)}var n}function c(e){s("next",e)}function l(e){s("throw",e)}function d(e,t){e(t),a.shift(),a.length&&s(a[0][0],a[0][1])}}function E(e){var t,n;return t={},i("next"),i("throw",(function(e){throw e})),i("return"),t[Symbol.iterator]=function(){return this},t;function i(i,r){t[i]=e[i]?function(t){return(n=!n)?{value:A(e[i](t)),done:!1}:r?r(t):t}:r}}function S(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=_(e),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(n){t[n]=e[n]&&function(t){return new Promise((function(i,r){(function(e,t,n,i){Promise.resolve(i).then((function(t){e({value:t,done:n})}),t)})(i,r,(t=e[n](t)).done,t.value)}))}}}function O(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var R=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function N(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&f(t,e,n);return R(t,e),t}function T(e){return e&&e.__esModule?e:{default:e}}function x(e,t,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(e):i?i.value:t.get(e)}function B(e,t,n,i,r){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?r.call(e,n):r?r.value=n:t.set(e,n),n}function G(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function k(e,t,n){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var i,r;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");i=t[Symbol.asyncDispose]}if(void 0===i){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");i=t[Symbol.dispose],n&&(r=i)}if("function"!=typeof i)throw new TypeError("Object not disposable.");r&&(i=function(){try{r.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:i,async:n})}else n&&e.stack.push({async:!0});return t}var V="function"==typeof SuppressedError?SuppressedError:function(e,t,n){var i=new Error(n);return i.name="SuppressedError",i.error=e,i.suppressed=t,i};function W(e){function t(t){e.error=e.hasError?new V(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}return function n(){for(;e.stack.length;){var i=e.stack.pop();try{var r=i.dispose&&i.dispose.call(i.value);if(i.async)return Promise.resolve(r).then(n,(function(e){return t(e),n()}))}catch(e){t(e)}}if(e.hasError)throw e.error}()}t.default={__extends:r,__assign:a,__rest:o,__decorate:s,__param:c,__metadata:m,__awaiter:h,__generator:g,__createBinding:f,__exportStar:b,__values:_,__read:v,__spread:y,__spreadArrays:I,__spreadArray:w,__await:A,__asyncGenerator:C,__asyncDelegator:E,__asyncValues:S,__makeTemplateObject:O,__importStar:N,__importDefault:T,__classPrivateFieldGet:x,__classPrivateFieldSet:B,__classPrivateFieldIn:G,__addDisposableResource:k,__disposeResources:W}},function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return d}));var i=n(76),r=n(13),a=n(25),o=n(7),s=n(12),c=n(0);function l(e){return function(t,n,i){const c=i.value;if(Object(r.e)(c))return i.value=async function(...t){const i=Object(a.getApexContext)(),r=Object(s.b)();try{const a=await c.call(this,...t);return await Object(o.h)(i,this.serviceName,n,!0,r,{process:"main",implemented_via:e}),a}catch(t){throw await Object(o.h)(i,this.serviceName,n,!1,r,{process:"main",implemented_via:e},t instanceof Error?{error_name:t.name,error_message:t.message}:{}),t}},i}}function d(e,t){return function(n,l,d){const u=d.value;if(Object(r.e)(u))return d.value=async function(...n){var r;const d=`fenix_api_calls/${this.serviceName}/${l}`,p=Object(a.getApexContext)(),m=i.performance.now(),h=p.getMetricsReporter().createTimer({ns:o.b,name:d+"/perf"},{process:"main",implemented_via:e}),g=p.getMetricsReporter().createTimer({ns:o.b,name:"fenix_api_calls_consolidated/perf"},{process:"main",service_name:this.serviceName,api_name:l,implemented_via:e}),f=await u.call(this,...n),b=i.performance.now()-m;if(Object(c.b)(`Execution time: ${b} milliseconds for ${this.serviceName}:${l}`),h.record(),g.record(),void 0!==t&&b>t){const t={service_name:this.serviceName,api:l,implemented_via:e,total_time:b.toString()},n={event_name:"LongFenixEvent",component:o.c.name,extra:t},i=Object(s.b)(),[a,c,d,u]=await Object(o.e)(i);if(a){const e=Number(a.hostId),t=Number(null===(r=a.business)||void 0===r?void 0:r.teamId),i=Number(a.uid),s=Number(null==c?void 0:c.uid);p.getAnalyticsClient().logLegacyCloggerEvent(o.a,n,{userId:i,pairedUserId:s,teamId:t},e,d,u)}}return f},d}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));class i{constructor(e,t,n){this.name=e,this.jiraComponent=t,this.metricNamespace=n}}i.ACCOUNT_MANAGEMENT=new i("ACCOUNT_MANAGEMENT","DC Account Management","account_management"),i.APEX=new i("APEX","DC Apex","apex"),i.AUTH=new i("AUTH","DC Authentication","auth"),i.AUTORESTART=new i("AUTORESTART","DC Autorestart","autorestart"),i.AUTO_UPDATE=new i("AUTO_UPDATE","DC Auto Update","auto_update"),i.BACKUP_ENGINE=new i("BACKUP_ENGINE","DC Backup Engine","desktop_backup_instance"),i.BASIC_USER_OQ_NOTIFICATION=new i("BASIC_USER_OQ_NOTIFICATION","DC Basic User OQ Notification","basic_user_oq_notification"),i.BUG_REPORTER=new i("BUG_REPORTER","DC Bug Reporter","bug_reporter"),i.BUILD_SYSTEM=new i("BUILD_SYSTEM","DC Build System","build_system"),i.CAMERA_UPLOAD=new i("CAMERA_UPLOAD","DC Camera Upload","camera_upload"),i.CAPTURE_UPSELL_MEV=new i("CAPTURE_UPSELL_MEV","Capture","capture_upsell_mev"),i.CDM=new i("CDM","DC Nucleus","cdm"),i.CENTENNIAL=new i("CENTENNIAL","DC Centennial","centennial"),i.CESNA=new i("CESNA","DC CESNA","cesna"),i.CLOUD_DOCS=new i("CLOUD_DOCS","DC Cloud Docs","cloud_docs"),i.CLOUD_FILES_MIGRATION_UI=new i("CLOUD_FILES_MIGRATION_UI","DC Cloud Files Migration","cloud_files_migration_ui"),i.COAUTH_CONTROLLER=new i("COAUTH_CONTROLLER","DC Sync Engine","coauth_controller"),i.COMMENTS=new i("COMMENTS","Comments","comments"),i.CONTENT_INGEST=new i("CONTENT_INGEST","DC PCOEM","content_ingest"),i.CONTEXT_MENU_FILE_INFO=new i("CONTEXT_MENU_FILE_INFO","DC Context Menu File Info","context_menu_file_info"),i.CONTEXT_MENU_UI=new i("CONTEXT_MENU_UI","DC Context Menu UI","desktop_shell_extension"),i.CORE_METRICS=new i("CORE_METRICS","DC Core Metrics","core_metrics"),i.CRASHPAD=new i("CRASHPAD","DC Crashpad","crashpad"),i.CRASH_AND_EXCEPTION_REPORTING=new i("CRASH_AND_EXCEPTION_REPORTING","DC Exception and Crash Reporting","crash_and_exception_reporting"),i.DASH_ESV=new i("DASH_ESV","DC Dash ESV","dash_esv"),i.DATABASES=new i("DATABASES","DC Databases","databases"),i.DEPRECATION=new i("DEPRECATION","DC Deprecation","deprecation"),i.DESKTOP_APP=new i("DESKTOP_APP","DC Desktop App","desktop_browse"),i.DESKTOP_LOGIN=new i("DESKTOP_LOGIN","DC Desktop Login (Web Redirect)","desktop_login"),i.DESKTOP_SPRIG=new i("DESKTOP_SPRIG","DC Sprig","desktop_sprig"),i.DROPBOX_PYTHON=new i("DROPBOX_PYTHON","DC dropbox-python","dropbox_python"),i.DROPBOX_UPDATE=new i("DROPBOX_UPDATE","DC DropboxUpdate","dropbox_update"),i.EDISON_SERVER_VIEWS=new i("EDISON_SERVER_VIEWS","DC Edison Server Views","edison_server_views"),i.ELECTRON=new i("ELECTRON","DC Electron","electron"),i.ENCRYPTED_FOLDER=new i("ENCRYPTED_FOLDER","DC Encrypted Folder","encrypted_folder"),i.EVENT_REPORTING=new i("EVENT_REPORTING","DC Event Reporting","event_reporting"),i.EXTENSIONS=new i("EXTENSIONS","Extensions","extensions"),i.EXTERNAL_DRIVE_BACKUP=new i("EXTERNAL_DRIVE_BACKUP","DC External Drive Backup","sync_everything"),i.FEATURE_GATING=new i("FEATURE_GATING","DC Feature Gating","feature_gating"),i.FENIX=new i("FENIX","DC Fenix Framework","fenix"),i.FILE_EVENTS=new i("FILE_EVENTS","DC File Events","file_events"),i.FILE_LOCKING=new i("FILE_LOCKING","DC File Locking","file_locking"),i.FILE_METADATA_STATUSES_TAGS=new i("FILE_METADATA_STATUSES_TAGS","File Metadata","file_metadata_statuses_tags"),i.FILE_PROVIDER=new i("FILE_PROVIDER","DC FileProvider","file_provider"),i.FILE_SYSTEM_WARNINGS=new i("FILE_SYSTEM_WARNINGS","DC FSW Framework","file_system_warnings"),i.FILE_TRANSFER=new i("FILE_TRANSFER","DC File Transfer","file_transfers"),i.FILE_VIEWER=new i("FILE_VIEWER","DC Previews","file_viewer"),i.FOLDER_OVERVIEW=new i("FOLDER_OVERVIEW","Folder Overview","folder_overview"),i.FOLDER_SELECTION=new i("FOLDER_SELECTION","DC Folder Selection","folder_selection"),i.FOLDER_TAGGER=new i("FOLDER_TAGGER","DC Folder Tagger","folder_tagger"),i.GANDALF=new i("GANDALF","DC Gandalf","gandalf"),i.HARMONY=new i("HARMONY","DC Harmony","harmony"),i.HEADLESS_LINK=new i("HEADLESS_LINK","DC Authentication","headless_link"),i.HTML_VIEWS=new i("HTML_VIEWS","DC HTML Views","desktop_ui_framework"),i.I18N=new i("I18N","DC i18n Pipeline","i18n"),i.INFINITE=new i("INFINITE","DC Infinite","infinite"),i.INFINITE_UI=new i("INFINITE_UI","DC Infinite UI","infinite_ui"),i.INITIALIZATION=new i("INITIALIZATION","DC Initialization","initialization"),i.INSTALLER=new i("INSTALLER","DC Installer","installer"),i.INTEGRATION_TEST_FRAMEWORK=new i("INTEGRATION_TEST_FRAMEWORK","DC Integration Test Framework","integration_test_framework"),i.LAN_SYNC=new i("LAN_SYNC","DC Nucleus","lan_sync"),i.LAUNCHER=new i("LAUNCHER","DC Launcher","launcher"),i.LINUX_COMMAND_LINE_INTERFACE=new i("LINUX_COMMAND_LINE_INTERFACE","DC Linux CLI","linux_command_line_interface"),i.LOCAL_VIEWS_NATIVE_ICON=new i("LOCAL_VIEWS_NATIVE_ICON","DC Native Icon","local_views_native_icon"),i.MANAGED_ELECTRON_VIEWS=new i("MANAGED_ELECTRON_VIEWS","DC Managed Electron Views","managed_electron_views"),i.MOVE_DROPBOX_FOLDER=new i("MOVE_DROPBOX_FOLDER","DC Move Dropbox","move_dropbox_folder"),i.NATIVE_ALERTS=new i("NATIVE_ALERTS","DC Native Alerts","native_alerts"),i.NATIVE_FILE_OPENER=new i("NATIVE_FILE_OPENER","DC Native File Opener","native_file_opener"),i.NATIVE_NOTIFICATIONS=new i("NATIVE_NOTIFICATIONS","DC Notifications","native_notifications"),i.NESTED_SHARED_FOLDERS_NUCLEUS=new i("NESTED_SHARED_FOLDERS_NUCLEUS","DC Nested Shared Folders - Nucleus","nested_shared_folders_nucleus"),i.NETWORKING=new i("NETWORKING","DC Networking","dbxconn"),i.NUCLEUS=new i("NUCLEUS","DC Nucleus","client_nucleus"),i.NUDGES=new i("NUDGES","DC Nudges","nudges"),i.PCOEM=new i("PCOEM","DC PCOEM","pcoem"),i.PER_NODE_METADATA=new i("PER_NODE_METADATA","DC Per Node Metadata","per_node_metadata"),i.POLARIS_PRIMITIVES=new i("POLARIS_PRIMITIVES","DC Polaris Primitives","polaris_primitives"),i.PREFERENCES_UI=new i("PREFERENCES_UI","DC Preferences UI","preferences_ui"),i.PYOBJECTIVEC=new i("PYOBJECTIVEC","DC PyObjectiveC","pyobjectivec"),i.PYTEST=new i("PYTEST","DC pytest","pytest"),i.RELEASE=new i("RELEASE","DC Release","desktop_release"),i.REMOTE_WIPE=new i("REMOTE_WIPE","DC Remote Wipe","remote_wipe"),i.RUN_BOX=new i("RUN_BOX","DC run-box","run_box"),i.SCREENSHOTS=new i("SCREENSHOTS","DC Screenshots","screenshots"),i.SECURITY=new i("SECURITY","DC Initialization","security"),i.SEC_NETWORKING=new i("SEC_NETWORKING","DC Sync Engine","sec_networking"),i.SELECTIVE_SYNC_UI=new i("SELECTIVE_SYNC_UI","DC Selective Sync","desktop_selective_sync"),i.SETUP_WIZARD=new i("SETUP_WIZARD","DC Setup Wizard","setup_wizard"),i.SHARED_WORKER=new i("SHARED_WORKER","DC Polaris Primitives","shared_worker"),i.SHARING=new i("SHARING","DC Sharing","sharing"),i.SHELL_INTEGRATION_FILE_EXPLORER=new i("SHELL_INTEGRATION_FILE_EXPLORER","DC Shell Integration - File Explorer","desktop_shell_extension"),i.SHELL_INTEGRATION_FINDER_SYNC=new i("SHELL_INTEGRATION_FINDER_SYNC","DC Shell Integration - Finder Sync","desktop_shell_extension"),i.SHELL_INTEGRATION_NAUTILUS=new i("SHELL_INTEGRATION_NAUTILUS","DC Shell Integration - Nautilus","desktop_shell_extension"),i.SMART_SYNC_AUTO_EVICT=new i("SMART_SYNC_AUTO_EVICT","DC Infinite UI","smart_sync_auto_evict"),i.SYNC_AND_STORAGE_UI=new i("SYNC_AND_STORAGE_UI","DC Sync and Storage UI","sync_and_storage_ui"),i.SYNC_DASHBOARD=new i("SYNC_DASHBOARD","DC Sync Dashboard UI","client_sync_dashboard"),i.SYNC_ENGINE=new i("SYNC_ENGINE","DC Sync Engine","client_sync_events"),i.SYNC_ENGINE_BOUNDARY=new i("SYNC_ENGINE_BOUNDARY","DC Sync Engine Boundary","client_sync_boundary"),i.SYNC_ERRORS=new i("SYNC_ERRORS","DC Sync Errors UI","client_sync_errors"),i.SYNC_EVERYTHING=new i("SYNC_EVERYTHING","DC Computer Backup","sync_everything"),i.SYNC_IGNORE=new i("SYNC_IGNORE","DC Sync Ignore","sync_ignore"),i.SYNC_NOTIFICATIONS=new i("SYNC_NOTIFICATIONS","DC Notifications","desktop_sync_notification"),i.SYNC_ROOT_MANAGER=new i("SYNC_ROOT_MANAGER","DC Sync Root Manager","sync_root_manager"),i.SYNC_STATUS_IN_TRAY=new i("SYNC_STATUS_IN_TRAY","DC Tray Sync","desktop_tray"),i.THEME_MANAGEMENT=new i("THEME_MANAGEMENT","DC Theme Management","theme_management"),i.TPRT=new i("TPRT","DC TPRT","tprt"),i.TRACES=new i("TRACES","DC Traces","traces"),i.TRAY=new i("TRAY","DC Tray","desktop_tray"),i.TRAY_SEARCH=new i("TRAY_SEARCH","DC Tray Search","desktop_tray_search"),i.TRAY_SYNC=new i("TRAY_SYNC","DC Tray Sync","desktop_tray_sync"),i.UI_KIT=new i("UI_KIT","DC UI Kit","ui_kit"),i.UNITY_FEATURES=new i("UNITY_FEATURES","DC Unity Features","unity_features"),i.VAULT=new i("VAULT","DC Vault","vault"),i.WATCHDOG=new i("WATCHDOG","DC Watchdog","watchdog"),i.WEBKIT=new i("WEBKIT","DC WebKit","webkit"),i.UNKNOWN=new i("UNKNOWN","","")},function(e,t){e.exports=require("electron")},function(e,t,n){"use strict";n.d(t,"p",(function(){return h})),n.d(t,"q",(function(){return g})),n.d(t,"t",(function(){return f})),n.d(t,"s",(function(){return b})),n.d(t,"u",(function(){return y})),n.d(t,"h",(function(){return I})),n.d(t,"v",(function(){return A})),n.d(t,"i",(function(){return C})),n.d(t,"l",(function(){return E})),n.d(t,"o",(function(){return S})),n.d(t,"j",(function(){return O})),n.d(t,"m",(function(){return R})),n.d(t,"e",(function(){return N})),n.d(t,"c",(function(){return T})),n.d(t,"f",(function(){return x})),n.d(t,"g",(function(){return B})),n.d(t,"n",(function(){return G})),n.d(t,"b",(function(){return V})),n.d(t,"a",(function(){return F})),n.d(t,"r",(function(){return Z})),n.d(t,"d",(function(){return D})),n.d(t,"k",(function(){return j}));var i=n(80),r=n.n(i),a=n(39),o=n.n(a),s=n(145),c=n(42),l=n(77),d=n(4),u=n(0),p=n(108),m=n(12);const h="dbx-local",g=22,f={static:"/static",nativeImage:"/native_img",previewsAsset:"/previews_asset",previewsHtml:"/previews_html",appAsar:"/app.asar"},b="X-Partition-Name";let _,v=!1;function y(e){v=e}function I(){return v}let w=new Promise(e=>{_=e});function A(e){_(e)}function C(){return w}function E(){return"darwin"===o.a.platform()}function S(){return"win32"===o.a.platform()}function O(){const e={darwin:p.a.MAC,win32:p.a.WIN,linux:p.a.LINUX}[o.a.platform()];if(!e)throw new Error(`Unsupported platform: '${o.a.platform()}'`);return e}function R(){if(!S())return!1;const e=process.getSystemVersion(),[t]=e.split(".").map(Number);return t<10}function N(e){return{rect:{origin:{x:e.bounds.x,y:e.bounds.y},size:{width:e.bounds.width,height:e.bounds.height}},dpiScaleFactor:e.scaleFactor,isMain:e.id===d.screen.getPrimaryDisplay().id}}function T(e){const t=e=>{let t=Number(e);return Object(s.assert)(e.toString()===t.toString()),l.b(t)};return"LE"===o.a.endianness()?"win32"===o.a.platform()?l.b(e.readInt32LE(0)):t(e.readBigInt64LE(0)):t(e.readBigInt64BE(0))}function x(){return r.a.randomUUID()}function B(e){return r.a.randomBytes(e).toString("hex")}function G(e){return e&&Object.keys(e).length}const k={onResponseStarted:[],onErrorOccurred:[],onCompleted:[]},V=e=>{k[e.event].push(e.callback)},W=({event:e,details:t})=>{k[e].forEach(n=>{try{n(t)}catch(t){Object(u.a)(`Error in handler for ${e}: ${t}`)}})};function F(e){const t=e.webRequest;t.onResponseStarted(e=>{W({event:"onResponseStarted",details:e}),"mainFrame"===e.resourceType&&Object(u.b)(`Response started for url ${e.url} with status: ${e.statusCode}`)}),t.onErrorOccurred(e=>{W({event:"onErrorOccurred",details:e}),"mainFrame"===e.resourceType&&Object(u.b)(`Response errored for url ${e.url} with error: ${e.error}`)}),t.onCompleted(e=>{W({event:"onCompleted",details:e}),"mainFrame"===e.resourceType&&Object(u.b)(`Response completed for url ${e.url} with status: ${e.statusCode}`)})}function Z(e){const t=Object(m.b)();return`${t.dropboxVersion.buildKey} ${""+t.dropboxVersion.versionNumber}\n${e.join("\n")}`}function D(e){const t=new c.PassThrough;return t.push(e),t.push(null),t.end(),t}function j(){return I()&&Boolean(process.env.IS_PLAYWRIGHT_TEST)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return p}));var i,r,a=n(1),o=n(33),s=n(114);!function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"}(i||(i={})),function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"}(r||(r={}));var c=function(e){var t=Object(s.a)(),n=e.value,i=e.children,r=Object(a.__rest)(e,["value","children"]);return i(t.formatNumberToParts(n,r))};c.displayName="FormattedNumberParts";function l(e){var t=function(t){var n=Object(s.a)(),i=t.value,r=t.children,o=Object(a.__rest)(t,["value","children"]),c="string"==typeof i?new Date(i||0):i;return r("formatDate"===e?n.formatDateToParts(c,o):n.formatTimeToParts(c,o))};return t.displayName=r[e],t}function d(e){var t=function(t){var n=Object(s.a)(),i=t.value,r=t.children,c=Object(a.__rest)(t,["value","children"]),l=n[e](i,c);if("function"==typeof r)return r(l);var d=n.textComponent||o.Fragment;return o.createElement(d,null,l)};return t.displayName=i[e],t}function u(e){return e}function p(e){return e}c.displayName="FormattedNumberParts";d("formatDate"),d("formatTime"),d("formatNumber"),d("formatList"),d("formatDisplayName"),l("formatDate"),l("formatTime")},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"f",(function(){return l})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return u})),n.d(t,"h",(function(){return p})),n.d(t,"e",(function(){return h})),n.d(t,"g",(function(){return g})),n.d(t,"d",(function(){return f}));var i=n(0),r=n(21),a=n(14),o=n(3),s=n(37);const c="desktop-consolidated_all-events",l=(e,t)=>{if(!e)throw new Error(`Uninitialized rpc in ${t}. Implement and call initialize() first.`);return e},d="desktop_fenix",u=o.a.FENIX;async function p(e,t,n,i,s,l,u){const p=`fenix_api_calls/${t}/${n}`;if(e.getMetricsReporter().createStats({ns:d,name:p+"/success"},l).record(i?1:0),e.getMetricsReporter().createStats({ns:d,name:p+"/failure"},l).record(i?0:1),e.getMetricsReporter().createStats({ns:d,name:"fenix_api_calls_consolidated"},{service_name:t,api_name:n,success:i?"1":"0",...l}).record(1),!i)try{const i={...l,...u};await m(e,c,s,{serviceName:t,apiName:n,eventName:"fenix_api_event_failed",tags:i})}catch(e){await Object(a.b)(e,{desktopComponent:o.a.FENIX,severity:r.a.CRITICAL})}}async function m(e,t,n,i){var r;const{eventName:a,tags:o}=i;let s;if("serviceName"in i&&"apiName"in i){const{serviceName:e,apiName:t}=i;s={service_name:e,api:t,...o}}else s={...o};const c={event_name:a,component:u.name,extra:s},[l,d,p,m]=await h(n);if(l){const n=Number(l.hostId),i=Number(null===(r=l.business)||void 0===r?void 0:r.teamId),a=Number(l.uid),o=Number(null==d?void 0:d.uid);e.getAnalyticsClient().logLegacyCloggerEvent(t,c,{userId:a,pairedUserId:o,teamId:i},n,p,m)}}async function h(e,t){let n,s,c="",l="";try{c=e.dropboxVersion.buildId,l=e.clientSessionId;let r=[];try{r=await e.accountManager.getAccounts()}catch(e){Object(i.b)("[Fenix Logging] getAccounts() Exception when logging: "+e)}if(t)for(const e of r)e.accountId===t?n=e:s=e;else r.length>=1&&(n=r[0])}catch(e){await Object(a.b)(e,{desktopComponent:o.a.FENIX,severity:r.a.CRITICAL})}return[n,s,c,l]}async function g(e,t,n,i,s,l,u){const p=`fenix_event_received/${n}/${t}`;if(e.getMetricsReporter().createStats({ns:d,name:p+"/success"},l).record(i?1:0),e.getMetricsReporter().createStats({ns:d,name:p+"/failure"},l).record(i?0:1),e.getMetricsReporter().createStats({ns:d,name:"fenix_event_received_consolidated"},{receivedEventName:t,serviceName:n,success:i?"1":"0",...l}).record(1),!i)try{const n={...l,...u};await m(e,c,s,{eventName:"fenix_event_received_failed",receivedEventName:t,tags:n})}catch(e){await Object(a.b)(e,{desktopComponent:o.a.FENIX,severity:r.a.CRITICAL})}}function f(e){switch(e){case s.c.LINKED:return"LINKED";case s.c.UNLINKED:return"UNLINKED";default:return"UNKNOWN - "+e}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return C})),n.d(t,"d",(function(){return x})),n.d(t,"e",(function(){return B})),n.d(t,"c",(function(){return k})),n.d(t,"a",(function(){return V})),n.d(t,"g",(function(){return W})),n.d(t,"f",(function(){return F}));var i=n(15),r=n.n(i),a=n(4),o=n(77),s=n(146),c=n(25),l=n(45),d=n(123),u=n(12),p=n(65),m=n(5),h=n(147),g=n(74),f=n(14),b=n(10),_=n(13),v=n(3),y=n(0),I=n(21);var w=n(28);var A,C,E;!function(e){e.ViewCreateTriggered="view_create_triggered",e.BrowserWindowCreated="browser_window_created",e.BrowserWindowFailed="browser_window_creation_failed",e.BrowserWindowConfigured="browser_window_configured",e.BrowserWindowConfigurationFailed="browser_window_configuration_failed",e.ViewLoadFinished="view_load_finished",e.ViewLoadFailed="view_load_failed",e.UserCancelled="user_cancelled"}(A||(A={})),function(e){e.Fullscreen="fullscreen"}(C||(C={})),function(e){e.ViewLoadTimedOut="view_load_timed_out"}(E||(E={}));class S extends Error{constructor(e,t){super("User cancelled load for "+e),this.durationToCancelled=t}}class O extends Error{constructor(e){super(`BrowserWindow for ${e} is gone`)}}class R{constructor(e,t,n,i){this.electronMetricsReporter=e,this.sessionId=t,this.viewId=n,this.isEsv=i,this.state=A.ViewCreateTriggered,this.viewCreateTS=Date.now(),this.logState()}advanceState(e){if(this.state===A.UserCancelled){const e=Date.now()-this.viewCreateTS;throw this.electronMetricsReporter.reportMetric("user_cancelled_load",{extras:{view:this.viewId.toString(),duration:e.toString(),is_esv:this.isEsv.toString()}}),new S(this.viewId,e)}if(!R.allowedNextStates[this.state].includes(e))throw new Error(`View ${this.viewId}: attempted to advance view creation state machine past a terminal state. Current: '${this.state}', next: '${e}'`);this.state=e,this.logState()}markFailed(){switch(this.state){case A.ViewCreateTriggered:this.advanceState(A.BrowserWindowFailed);break;case A.BrowserWindowCreated:this.advanceState(A.BrowserWindowConfigurationFailed);break;case A.BrowserWindowConfigured:this.advanceState(A.ViewLoadFailed);break;case A.UserCancelled:break;default:throw new Error(`View ${this.viewId}: attempted to mark state '${this.state}' as failed, but unsure how.`)}}markCancelled(){this.isInTerminalState()||this.advanceState(A.UserCancelled)}isCancelled(){return this.state===A.UserCancelled}logEvent(e,t,n){const i={session_id:this.sessionId,view_id:this.viewId,is_esv:this.isEsv.toString()};this.electronMetricsReporter.reportRestrictedMetric("spawnView/"+e,{extras:i,extrasLogToAmp:["view_id","is_esv"],amisNamespace:h.a,amisMetricName:e});const r=`${t} ${JSON.stringify(i)}`;n===c.Level.Info?Object(y.b)(r):n===c.Level.Warn?Object(y.c)(r):Object(y.a)(r)}attachLoadEventsLoggers(e){const t=t=>(n,i,r,a,o,s,c)=>{this.electronMetricsReporter.reportRestrictedMetric(t,{extras:{errorCode:i.toString(),errorDescription:r,validatedUrl:a,webContentsId:e.id.toString(),isMainFrame:""+o,frameProcessId:s.toString(),frameRoutingId:c.toString()},extrasLogToAmp:["errorCode","isMainFrame"]}),Object(y.a)("Failed to load web contents for browser window: "+JSON.stringify({errorCode:i,errorDescription:r,validatedUrl:a,frameProcessId:s,frameRoutingId:c}))};let n=null;e.on("did-start-navigation",(t,i,r,a,o,s)=>{const c=new URL(i),l=null!=n&&n.hostname===c.hostname&&n.pathname===c.pathname;this.electronMetricsReporter.reportRestrictedMetric("mev_did_start_navigation",{extras:{url:""+c,previousUrl:""+n,isNavigationUnsound:""+l,webContentsId:e.id.toString(),isInPlace:""+r,isMainFrame:""+a,frameProcessId:o.toString(),frameRoutingId:s.toString()}}),n=c}),e.on("did-fail-load",t("mev_did_fail_load")),e.on("did-fail-provisional-load",t("mev_did_fail_provisional_load")),e.on("did-finish-load",()=>{this.electronMetricsReporter.reportRestrictedMetric("mev_did_finish_load_but_not_necessarily_successfully",{extras:{webContentsId:e.id.toString()}})})}logState(){this.logEvent(this.state,`State is currently ${this.state}.`,1)}isInTerminalState(){return 0===R.allowedNextStates[this.state].length}}R.allowedNextStates={[A.ViewCreateTriggered]:[A.BrowserWindowCreated,A.BrowserWindowFailed,A.UserCancelled],[A.BrowserWindowCreated]:[A.BrowserWindowConfigured,A.BrowserWindowConfigurationFailed,A.UserCancelled],[A.BrowserWindowConfigured]:[A.ViewLoadFinished,A.ViewLoadFailed,A.UserCancelled],[A.BrowserWindowFailed]:[],[A.BrowserWindowConfigurationFailed]:[],[A.ViewLoadFinished]:[],[A.ViewLoadFailed]:[],[A.UserCancelled]:[]};const N=new Map,T=new Map;function x(e){return T.get(e)}function B(){return new Map(N)}async function G(e,t,n,i){const r=(await u.d).rpcFactory(t,{signalHandlers:n,invocationHandlers:i});return e.on("closed",()=>r.close()),r}class k{constructor(){this.isEsv=!1,this.createRpcForWindow=G}static async closeAllViews(){Object(y.b)(`Closing ${N.size} Views`),await Promise.race([Object(l.b)(4500),Promise.all(Array.from(N.keys()).map(async e=>{if(!e.isDestroyed()){const t=a.BrowserWindow.fromWebContents(e);if(t&&!t.isDestroyed()){const e=new Promise(e=>t.once("closed",e));await Promise.race([g.a.notifyWindowClose(t.id),Object(l.b)(1e3)]),t.close(),await e}else Object(y.a)("Unable to close webContents with no BrowserWindow: "+e.getURL())}}))]),await Array.from(N.keys()).map(async e=>{const t=a.BrowserWindow.fromWebContents(e);t&&!t.isDestroyed()&&(Object(y.a)("View failed to close within allotted time. Forcibly destroying "+e.getURL()),t.destroy())}),Object(y.b)("Finished closing all Managed Electron Views")}static isRestrictedWebContents(e){var t;return!!(null===(t=N.get(e))||void 0===t?void 0:t.restricted)}static blockRestrictedWebContents(e,t){if(k.isRestrictedWebContents(e))throw new Error(`View ${e.id}: ${e.getURL()} is restricted from handling ${t}`)}static sessionFromPartition(e){const t=Object(u.b)().sessionFactory({kind:"named",name:e});return this.managedViewSessions.has(t)||(t.setPermissionRequestHandler(k.handlePermissionRequest),t.webRequest.onBeforeSendHeaders({urls:[m.p+"://*/*"]},(t,n)=>{t.requestHeaders[m.s]=e,n({requestHeaders:t.requestHeaders})}),this.managedViewSessions.add(t)),t}static handlePermissionRequest(e,t,n){var i;const r=null===(i=function(e){return N.get(e)}(e))||void 0===i?void 0:i.permissionConfig;if(!r)return Object(y.c)(`Disallowing permission "${t}" for ${e.getURL()} because no permission config is defined`),n(!1);const a=r.allowedPermissions.includes(t);return a||Object(y.c)(`Requested permission "${t}" not in list of allowed permissions for ${e.getURL()}`),n(a)}getSessionName(){return null}async loadView(e,t){return e.loadURL(`${m.p}://${t}/app.asar/views/${this.name}/index.html`)}prepareInjectedValues(e,t){return{injectedConfig:{dropboxVersion:t.dropboxVersion,osPlatform:Object(m.j)(),translationInfo:{locale:t.translations.locale,translations:t.translations.messages},clientSessionId:t.clientSessionId,featureFlags:t.featureFlags},viewArgs:e.args,viewName:this.name,desktopComponent:this.desktopComponent,userJourneyInstanceId:e.userJourneyInstanceId,restricted:e.restricted||!1,isProxyV2Enabled:e.isProxyV2Enabled,usesFenixServices:e.usesFenixServices}}async createManagedBrowserWindow(e){var t;const n=await u.d,i=e.isProxyV2Enabled;Object(y.b)("createManagedBrowserWindow isProxyV2Enabled: "+i);const c=Object(m.g)(16),g=n.metricsReporter,b=new R(g,c,this.name,this.isEsv);let _;const C=()=>{if(void 0===_||(null==_?void 0:_.isDestroyed()))throw new O(this.name);return _},x=g.withPerfSession("managed_electron_views","spawn_view",s.a.DESKTOP_PERFORMANCE,{view_id:this.name,sessionId:c,is_esv:this.isEsv.toString()},["view_id","is_esv"],async t=>{var i;_=t.withSpan("create_browser_window",()=>{var t;const n=new a.BrowserWindow({backgroundColor:a.nativeTheme.shouldUseDarkColors?"#1a1918":void 0,...e.browserWindowOptions,webPreferences:{...e.browserWindowOptions.webPreferences,...Object(d.a)(r.a.join("..","views",this.name,"preload.js"),k.sessionFromPartition(null!==(t=this.getSessionName())&&void 0!==t?t:"persist:"+this.name))}});return!e.browserWindowOptions.autoHideMenuBar||e.additionalMevOptions&&e.additionalMevOptions.allowShowingHiddenMenubar||n.removeMenu(),b.attachLoadEventsLoggers(n.webContents),n});let s=()=>{b.markCancelled(),C().hide()};C().once("close",s),b.advanceState(A.BrowserWindowCreated);const l={browserWindow:C(),sessionId:c,name:this.name,restricted:e.restricted||!1,permissionConfig:e.permissionConfig};N.set(C().webContents,l),T.set(c,l),w.b.invokeMainProcessEvent(w.a.MevViewSpawned,{viewName:this.name,sessionId:c,args:e.args});const u=C().webContents;return u.once("destroyed",async()=>{N.delete(u),T.delete(c)}),C().on("close",()=>{var e;for(let t of C().getChildWindows())null===(e=p.b.get(t))||void 0===e||e.setCloseReason(o.c.PARENT_CLOSED)}),(null===(i=e.additionalMevOptions)||void 0===i?void 0:i.allowUnfocusedClickMac)&&"mac"===Object(m.j)()&&C().on("focus",()=>{try{(e=>{let t=a.screen.getCursorScreenPoint(),n=e.getBounds(),i=t.x-n.x,r=t.y-n.y,o=e.webContents;o.sendInputEvent({type:"mouseMove",x:i,y:r,movementX:0,movementY:0}),o.sendInputEvent({type:"mouseDown",x:i,y:r,button:"left",clickCount:1}),o.sendInputEvent({type:"mouseUp",x:i,y:r,button:"left",clickCount:1})})(C())}catch(e){Object(f.b)(e,{desktopComponent:v.a.MANAGED_ELECTRON_VIEWS,severity:I.a.CRITICAL})}}),await t.withAsyncSpan("browser_window_post_configuration",()=>{var t;return Promise.resolve(null===(t=e.configureWindowBeforeLaunch)||void 0===t?void 0:t.call(e,C(),c))}),b.advanceState(A.BrowserWindowConfigured),t.withAsyncSpan("load_finished",async()=>{C().webContents.on("ipc-message-sync",(t,i)=>{if(i===h.b){const i=this.prepareInjectedValues(e,n);t.returnValue=i,t.preventDefault()}});try{return await this.loadView(C(),c),b.advanceState(A.ViewLoadFinished),C().removeListener("close",s),l}catch(e){throw Object(f.b)(e,{desktopComponent:v.a.MANAGED_ELECTRON_VIEWS,severity:b.isCancelled()?I.a.TRACE:I.a.CRITICAL}),e}})});try{return await Object(l.c)(x,null!==(t=null==e?void 0:e.timeoutMS)&&void 0!==t?t:3e5)}catch(e){if(void 0===_||_.isDestroyed()||_.destroy(),b.isCancelled())throw e instanceof S?e:new S(this.name,Date.now()-b.viewCreateTS);if(e instanceof l.a){const t=`View load for ${this.name} has timed out (${E.ViewLoadTimedOut}) with error: ${e}.`;b.logEvent(E.ViewLoadTimedOut,t,3)}throw b.markFailed(),e}}}var V;k.managedViewSessions=new WeakSet,function(e){e[e.Cancel=0]="Cancel",e[e.Success=1]="Success",e[e.Fail=2]="Fail"}(V||(V={}));const W=async e=>{const{view:t,viewArgs:n,rpcTopicName:i,userJourneyInstanceId:r,isProxyV2Enabled:a,usesFenixServices:o}=e;try{return await t.spawnView({args:n,rpcConnectionDetails:i,userJourneyInstanceId:r,isProxyV2Enabled:a,usesFenixServices:o})}catch(e){return Object(b.b)(v.a.MANAGED_ELECTRON_VIEWS,W.name,Object(_.b)(e)),e instanceof S?{result:V.Cancel,durationToCancelled:e.durationToCancelled,error:{name:"MEVSpawnViewCancelled",details:`User cancelled MEV prior to it loading. MEV was launched ${e.durationToCancelled}ms prior to being cancelled`}}:{result:V.Fail,error:{name:"MEVSpawnViewError",details:Object(_.b)(e)}}}},F=e=>{null==e||e.isDestroyed()||(e.show(),Object(m.o)()&&!e.isAlwaysOnTop()&&(e.setAlwaysOnTop(!0),e.setAlwaysOnTop(!1)),e.focus())};u.c.then(()=>{a.ipcMain.handle("__platform/getWindowId",e=>{var t;return k.blockRestrictedWebContents(e.sender,"__platform/getWindowId"),null===(t=a.BrowserWindow.fromWebContents(e.sender))||void 0===t?void 0:t.id}),a.ipcMain.handle("__platform/getWebContentsId",e=>(k.blockRestrictedWebContents(e.sender,"__platform/getWebContentsId"),e.sender.id)),a.ipcMain.handle("__platform/reportError",(e,t)=>{u.d.then(n=>{Object(y.a)("Uncaught Exception in renderer",""+t,e.sender.getURL(),e.sender.id),Object(y.a)(t.stack||"[Error has no stack]"),n.exceptionReporter.reportExceptionInRenderer(t,e.sender.getURL(),e.sender.id)})})})},function(e,t,n){"use strict";n.d(t,"q",(function(){return i})),n.d(t,"C",(function(){return r})),n.d(t,"f",(function(){return a})),n.d(t,"d",(function(){return o})),n.d(t,"F",(function(){return s})),n.d(t,"o",(function(){return c})),n.d(t,"K",(function(){return l})),n.d(t,"x",(function(){return d})),n.d(t,"I",(function(){return u})),n.d(t,"N",(function(){return p})),n.d(t,"y",(function(){return m})),n.d(t,"s",(function(){return h})),n.d(t,"e",(function(){return g})),n.d(t,"g",(function(){return f})),n.d(t,"a",(function(){return b})),n.d(t,"J",(function(){return _})),n.d(t,"k",(function(){return v})),n.d(t,"h",(function(){return y})),n.d(t,"H",(function(){return I})),n.d(t,"L",(function(){return w})),n.d(t,"D",(function(){return A})),n.d(t,"A",(function(){return C})),n.d(t,"T",(function(){return E})),n.d(t,"b",(function(){return S})),n.d(t,"c",(function(){return O})),n.d(t,"n",(function(){return R})),n.d(t,"l",(function(){return N})),n.d(t,"P",(function(){return T})),n.d(t,"t",(function(){return x})),n.d(t,"z",(function(){return B})),n.d(t,"R",(function(){return G})),n.d(t,"Q",(function(){return k})),n.d(t,"v",(function(){return V})),n.d(t,"O",(function(){return W})),n.d(t,"m",(function(){return F})),n.d(t,"r",(function(){return Z})),n.d(t,"u",(function(){return D})),n.d(t,"w",(function(){return j})),n.d(t,"B",(function(){return L})),n.d(t,"G",(function(){return U})),n.d(t,"p",(function(){return Y})),n.d(t,"j",(function(){return H})),n.d(t,"i",(function(){return P})),n.d(t,"M",(function(){return M})),n.d(t,"E",(function(){return X})),n.d(t,"S",(function(){return K}));const i="fenix",r="onboardingLegacyService",a="authenticationService",o="appInfoService",s="serviceDefinitions",c="eventHubService",l="stormcrowService",d="localConfigService",u="staticGatingService",p="syncRootService",m="loggerService",h="fileSystemService",g="appLifecycleService",f="backupService",b="accountService",_="storageService",v="databaseService",y="browserService",I="sqliteService",w="syncEngineService",A="preferencesService",C="notificationDialogService",E="userCacheService",S="activeAccountService",O="apiV2Service",R="dropboxLocationChangerService",N="dealsService",T="trayIconService",x="fileTransferService",B="markupService",G="trayNavigationService",k="trayLoggerService",V="harmonyService",W="trayActivityService",F="dockService",Z="fileActionService",D="fssLauncherEventService",j="keyboardShortcutService",L="notificationService",U="snoozeSyncService",Y="externalContextMenuSharingService",H="dashIntegrationService",P="clipboardService",M="syncErrorService",X="searchService",K="updaterService"},function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return s})),n.d(t,"d",(function(){return c})),n.d(t,"a",(function(){return l}));var i=n(71),r=n(0);const a=(e,t,n,r)=>{const a=[];return a.push(`[${e}: ${t}]`),n&&a.push(" "+n),r&&a.push("\n"+Object(i.a)(r)),a.join("")},o=(e,t,n,i)=>{Object(r.b)(a(e.name,t,n,i))},s=(e,t,n,i)=>{Object(r.a)(a(e.name,t,n,i))},c=(e,t,n,i)=>{Object(r.c)(a(e.name,t,n,i))};function l(){var e;if("undefined"!=typeof window&&(null===(e=window.crypto)||void 0===e?void 0:e.randomUUID))return window.crypto.randomUUID();{const{randomUUID:e}=n(80);return e()}}},function(e,t,n){"use strict";n.r(t),n.d(t,"applyAggregateErrorsToEvent",(function(){return i.a})),n.d(t,"getComponentName",(function(){return r.a})),n.d(t,"getDomElement",(function(){return r.b})),n.d(t,"getLocationHref",(function(){return r.c})),n.d(t,"htmlTreeAsString",(function(){return r.d})),n.d(t,"dsnFromString",(function(){return a.a})),n.d(t,"dsnToString",(function(){return a.b})),n.d(t,"makeDsn",(function(){return a.c})),n.d(t,"SentryError",(function(){return o.a})),n.d(t,"GLOBAL_OBJ",(function(){return s.a})),n.d(t,"getGlobalObject",(function(){return s.b})),n.d(t,"getGlobalSingleton",(function(){return s.c})),n.d(t,"addInstrumentationHandler",(function(){return b})),n.d(t,"isDOMError",(function(){return _.a})),n.d(t,"isDOMException",(function(){return _.b})),n.d(t,"isElement",(function(){return _.c})),n.d(t,"isError",(function(){return _.d})),n.d(t,"isErrorEvent",(function(){return _.e})),n.d(t,"isEvent",(function(){return _.f})),n.d(t,"isInstanceOf",(function(){return _.g})),n.d(t,"isNaN",(function(){return _.h})),n.d(t,"isParameterizedString",(function(){return _.i})),n.d(t,"isPlainObject",(function(){return _.j})),n.d(t,"isPrimitive",(function(){return _.k})),n.d(t,"isRegExp",(function(){return _.l})),n.d(t,"isString",(function(){return _.m})),n.d(t,"isSyntheticEvent",(function(){return _.n})),n.d(t,"isThenable",(function(){return _.o})),n.d(t,"isVueViewModel",(function(){return _.p})),n.d(t,"isBrowser",(function(){return v.a})),n.d(t,"CONSOLE_LEVELS",(function(){return l.a})),n.d(t,"consoleSandbox",(function(){return l.b})),n.d(t,"logger",(function(){return l.c})),n.d(t,"originalConsoleMethods",(function(){return l.d})),n.d(t,"memoBuilder",(function(){return y.a})),n.d(t,"addContextToFrame",(function(){return I.a})),n.d(t,"addExceptionMechanism",(function(){return I.b})),n.d(t,"addExceptionTypeValue",(function(){return I.c})),n.d(t,"arrayify",(function(){return I.d})),n.d(t,"checkOrSetAlreadyCaught",(function(){return I.e})),n.d(t,"getEventDescription",(function(){return I.f})),n.d(t,"parseSemver",(function(){return I.g})),n.d(t,"uuid4",(function(){return I.h})),n.d(t,"dynamicRequire",(function(){return w.a})),n.d(t,"isNodeEnv",(function(){return w.b})),n.d(t,"loadModule",(function(){return w.c})),n.d(t,"normalize",(function(){return A.a})),n.d(t,"normalizeToSize",(function(){return A.b})),n.d(t,"normalizeUrlToBase",(function(){return A.c})),n.d(t,"walk",(function(){return A.d})),n.d(t,"addNonEnumerableProperty",(function(){return C.a})),n.d(t,"convertToPlainObject",(function(){return C.b})),n.d(t,"dropUndefinedKeys",(function(){return C.c})),n.d(t,"extractExceptionKeysForMessage",(function(){return C.d})),n.d(t,"fill",(function(){return C.e})),n.d(t,"getOriginalFunction",(function(){return C.f})),n.d(t,"markFunctionWrapped",(function(){return C.g})),n.d(t,"objectify",(function(){return C.h})),n.d(t,"urlEncode",(function(){return C.i})),n.d(t,"basename",(function(){return E.a})),n.d(t,"dirname",(function(){return E.b})),n.d(t,"isAbsolute",(function(){return E.c})),n.d(t,"join",(function(){return E.d})),n.d(t,"normalizePath",(function(){return E.e})),n.d(t,"relative",(function(){return E.f})),n.d(t,"resolve",(function(){return E.g})),n.d(t,"makePromiseBuffer",(function(){return S.a})),n.d(t,"DEFAULT_USER_INCLUDES",(function(){return O.a})),n.d(t,"addRequestDataToEvent",(function(){return O.b})),n.d(t,"addRequestDataToTransaction",(function(){return O.c})),n.d(t,"extractPathForTransaction",(function(){return O.d})),n.d(t,"extractRequestData",(function(){return O.e})),n.d(t,"winterCGHeadersToDict",(function(){return O.f})),n.d(t,"winterCGRequestToRequestData",(function(){return O.g})),n.d(t,"severityFromString",(function(){return R.a})),n.d(t,"severityLevelFromString",(function(){return R.b})),n.d(t,"validSeverityLevels",(function(){return R.c})),n.d(t,"createStackParser",(function(){return N.a})),n.d(t,"getFunctionName",(function(){return N.b})),n.d(t,"nodeStackLineParser",(function(){return N.c})),n.d(t,"stackParserFromStackParserOptions",(function(){return N.d})),n.d(t,"stripSentryFramesAndReverse",(function(){return N.e})),n.d(t,"isMatchingPattern",(function(){return T.a})),n.d(t,"safeJoin",(function(){return T.b})),n.d(t,"snipLine",(function(){return T.c})),n.d(t,"stringMatchesSomePattern",(function(){return T.d})),n.d(t,"truncate",(function(){return T.e})),n.d(t,"isNativeFetch",(function(){return x.a})),n.d(t,"supportsDOMError",(function(){return x.b})),n.d(t,"supportsDOMException",(function(){return x.c})),n.d(t,"supportsErrorEvent",(function(){return x.d})),n.d(t,"supportsFetch",(function(){return x.e})),n.d(t,"supportsNativeFetch",(function(){return x.f})),n.d(t,"supportsReferrerPolicy",(function(){return x.g})),n.d(t,"supportsReportingObserver",(function(){return x.h})),n.d(t,"SyncPromise",(function(){return B.a})),n.d(t,"rejectedSyncPromise",(function(){return B.b})),n.d(t,"resolvedSyncPromise",(function(){return B.c})),n.d(t,"_browserPerformanceTimeOriginMode",(function(){return G.a})),n.d(t,"browserPerformanceTimeOrigin",(function(){return G.b})),n.d(t,"dateTimestampInSeconds",(function(){return G.c})),n.d(t,"timestampInSeconds",(function(){return G.d})),n.d(t,"timestampWithMs",(function(){return G.e})),n.d(t,"TRACEPARENT_REGEXP",(function(){return k.a})),n.d(t,"extractTraceparentData",(function(){return k.b})),n.d(t,"generateSentryTraceHeader",(function(){return k.c})),n.d(t,"propagationContextFromHeaders",(function(){return k.d})),n.d(t,"tracingContextFromHeaders",(function(){return k.e})),n.d(t,"getSDKSource",(function(){return V.a})),n.d(t,"isBrowserBundle",(function(){return V.b})),n.d(t,"addItemToEnvelope",(function(){return W.a})),n.d(t,"createAttachmentEnvelopeItem",(function(){return W.b})),n.d(t,"createEnvelope",(function(){return W.c})),n.d(t,"createEventEnvelopeHeaders",(function(){return W.d})),n.d(t,"envelopeContainsItemType",(function(){return W.e})),n.d(t,"envelopeItemTypeToDataCategory",(function(){return W.f})),n.d(t,"forEachEnvelopeItem",(function(){return W.g})),n.d(t,"getSdkMetadataForEnvelopeHeader",(function(){return W.h})),n.d(t,"parseEnvelope",(function(){return W.i})),n.d(t,"serializeEnvelope",(function(){return W.j})),n.d(t,"createClientReportEnvelope",(function(){return F.a})),n.d(t,"DEFAULT_RETRY_AFTER",(function(){return Z.a})),n.d(t,"disabledUntil",(function(){return Z.b})),n.d(t,"isRateLimited",(function(){return Z.c})),n.d(t,"parseRetryAfterHeader",(function(){return Z.d})),n.d(t,"updateRateLimits",(function(){return Z.e})),n.d(t,"BAGGAGE_HEADER_NAME",(function(){return D.a})),n.d(t,"MAX_BAGGAGE_STRING_LENGTH",(function(){return D.b})),n.d(t,"SENTRY_BAGGAGE_KEY_PREFIX",(function(){return D.c})),n.d(t,"SENTRY_BAGGAGE_KEY_PREFIX_REGEX",(function(){return D.d})),n.d(t,"baggageHeaderToDynamicSamplingContext",(function(){return D.e})),n.d(t,"dynamicSamplingContextToSentryBaggageHeader",(function(){return D.f})),n.d(t,"getNumberOfUrlSegments",(function(){return j.a})),n.d(t,"getSanitizedUrlString",(function(){return j.b})),n.d(t,"parseUrl",(function(){return j.c})),n.d(t,"stripUrlQueryAndFragment",(function(){return j.d})),n.d(t,"addOrUpdateIntegration",(function(){return U})),n.d(t,"makeFifoCache",(function(){return H})),n.d(t,"eventFromMessage",(function(){return P.a})),n.d(t,"eventFromUnknownInput",(function(){return P.b})),n.d(t,"exceptionFromError",(function(){return P.c})),n.d(t,"parseStackFrames",(function(){return P.d})),n.d(t,"callFrameToStackFrame",(function(){return K})),n.d(t,"watchdogTimer",(function(){return X})),n.d(t,"LRUMap",(function(){return J.a})),n.d(t,"_asyncNullishCoalesce",(function(){return q})),n.d(t,"_asyncOptionalChain",(function(){return Q})),n.d(t,"_asyncOptionalChainDelete",(function(){return $})),n.d(t,"_nullishCoalesce",(function(){return z.a})),n.d(t,"_optionalChain",(function(){return ee.a})),n.d(t,"_optionalChainDelete",(function(){return te.a})),n.d(t,"addConsoleInstrumentationHandler",(function(){return d.a})),n.d(t,"addClickKeypressInstrumentationHandler",(function(){return u.a})),n.d(t,"SENTRY_XHR_DATA_KEY",(function(){return f.a})),n.d(t,"addXhrInstrumentationHandler",(function(){return f.b})),n.d(t,"addFetchInstrumentationHandler",(function(){return p.a})),n.d(t,"addHistoryInstrumentationHandler",(function(){return g.a})),n.d(t,"addGlobalErrorInstrumentationHandler",(function(){return m.a})),n.d(t,"addGlobalUnhandledRejectionInstrumentationHandler",(function(){return h.a})),n.d(t,"resetInstrumentationHandlers",(function(){return ne.c})),n.d(t,"filenameIsInApp",(function(){return M.a})),n.d(t,"escapeStringForRegex",(function(){return ie})),n.d(t,"supportsHistory",(function(){return re.a}));var i=n(283),r=n(134),a=n(89),o=n(191),s=n(30),c=n(62),l=n(17),d=n(139),u=n(159),p=n(140),m=n(136),h=n(137),g=n(160),f=n(106);function b(e,t){switch(e){case"console":return Object(d.a)(t);case"dom":return Object(u.a)(t);case"xhr":return Object(f.b)(t);case"fetch":return Object(p.a)(t);case"history":return Object(g.a)(t);case"error":return Object(m.a)(t);case"unhandledrejection":return Object(h.a)(t);default:c.a&&l.c.warn("unknown instrumentation type:",e)}}var _=n(26),v=n(303),y=n(217),I=n(32),w=n(75),A=n(57),C=n(29),E=n(104),S=n(282),O=n(105),R=n(189),N=n(103),T=n(50),x=n(79),B=n(99),G=n(58),k=n(112),V=n(188),W=n(44),F=n(302),Z=n(113),D=n(102),j=n(120);function L(e,t,n){const i=t.match(/([a-z_]+)\.(.*)/i);if(null===i)e[t]=n;else{L(e[i[1]],i[2],n)}}function U(e,t,n={}){return Array.isArray(t)?Y(e,t,n):function(e,t,n){return i=>{const r=t(i);if(e.allowExclusionByUser){if(!r.find(t=>t.name===e.name))return r}return Y(e,r,n)}}(e,t,n)}function Y(e,t,n){const i=t.find(t=>t.name===e.name);if(i){for(const[e,t]of Object.entries(n))L(i,e,t);return t}return[...t,e]}function H(e){let t=[],n={};return{add(i,r){for(;t.length>=e;){const e=t.shift();void 0!==e&&delete n[e]}n[i]&&this.delete(i),t.push(i),n[i]=r},clear(){n={},t=[]},get:e=>n[e],size:()=>t.length,delete(e){if(!n[e])return!1;delete n[e];for(let n=0;n<t.length;n++)if(t[n]===e){t.splice(n,1);break}return!0}}}var P=n(161),M=n(122);function X(e,t,n,i){const r=e();let a=!1,o=!0;return setInterval(()=>{const e=r.getTimeMs();!1===a&&e>t+n&&(a=!0,o&&i()),e<t+n&&(a=!1)},20),{poll:()=>{r.reset()},enabled:e=>{o=e}}}function K(e,t,n){const i=t?t.replace(/^file:\/\//,""):void 0,r=e.location.columnNumber?e.location.columnNumber+1:void 0,a=e.location.lineNumber?e.location.lineNumber+1:void 0;return Object(C.c)({filename:i,module:n(i),function:e.functionName||"?",colno:r,lineno:a,in_app:i?Object(M.a)(i):void 0})}var J=n(306),z=n(220);async function q(e,t){return Object(z.a)(e,t)}async function Q(e){let t=void 0,n=e[0],i=1;for(;i<e.length;){const r=e[i],a=e[i+1];if(i+=2,("optionalAccess"===r||"optionalCall"===r)&&null==n)return;"access"===r||"optionalAccess"===r?(t=n,n=await a(n)):"call"!==r&&"optionalCall"!==r||(n=await a((...e)=>n.call(t,...e)),t=void 0)}return n}async function $(e){const t=await Q(e);return null==t||t}var ee=n(193),te=n(226),ne=n(41);function ie(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var re=n(219)},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return c})),n.d(t,"e",(function(){return d})),n.d(t,"b",(function(){return u}));var i=n(47),r=n(224),a=n(53);class o{constructor(e,t,n,i){this.locale=e,this.language=t,this.messages=n,this.langOverride=i,this.intl=Object(r.a)({locale:e,messages:n},Object(a.c)())}translate(e,t){return this.intl.formatMessage(e,t)}}const s=new i.a,c=new i.a;let l=null;function d(e){l=e,c.resolve(e)}function u(){if(null==l)throw new Error("getPlatform() called before platformInitializationComplete has fired.");return l}},function(e,t,n){"use strict";n.d(t,"e",(function(){return r})),n.d(t,"f",(function(){return a})),n.d(t,"g",(function(){return o})),n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return c})),n.d(t,"c",(function(){return l})),n.d(t,"d",(function(){return d}));var i=n(45);const r=e=>"function"==typeof e&&"AsyncFunction"===e.constructor.name,a=async(e,t,n=5,r=1,a=!1,o)=>{0===(r=Math.max(r,0))&&(a=!1);let c=0;for(;;){let l;try{return await e()}catch(e){null==o||o(e),l=e}if(--n<=0)throw new Error(`DBX_MAX_RETRY_REACHED: ${t}: ${s(l)}`,{cause:l});if(r>0){let e=1e3*r;a&&(e+=2**c++*500),await Object(i.b)(e)}}};async function o(e,t,n){return new Promise((i,r)=>{var a;const o=()=>{var e;return i(null===(e=null==n?void 0:n.composeResult)||void 0===e?void 0:e.call(n))};t.once(e,o),null===(a=null==n?void 0:n.abortSignal)||void 0===a||a.addEventListener("abort",n=>{t.off(e,o),r(n)},{once:!0})})}function s(e){return e instanceof Error?e.message:JSON.stringify(e)}function c(e){if(null!=e)return e instanceof Error?{error_name:e.name,error_message:e.message}:"string"==typeof e?{error_message:e}:{error:JSON.stringify(e)}}function l(e){if("object"==typeof e&&null!=e&&"code"in e){const{code:t}=e;return{name:t}}return e instanceof Error?{name:e.name,details:e.message}:{name:"unknown",details:JSON.stringify(e)}}const d=e=>"mac"===e?"macOS":"win"===e?"Windows":"linux"===e?"Linux":"unknown"},function(e,t,n){"use strict";n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return p}));var i=n(126),r=n(21),a=n(71),o=n(10),s=n(0),c=n(12);function l(){return Object(o.a)()}function d(e,t){return c.d.then(n=>n.exceptionReporter.reportException(e,t.desktopComponent,t.severity,t.tags))}function u(e){return c.d.then(t=>t.exceptionReporter.reportSentryEnvelope(e))}class p{constructor(e){this.rpc=e("error_reporting")}async reportException(e,t,n,o){var s;const c=l();return n!==r.a.TRACE&&i.withScope(r=>{r.setTags({...o,component:t.name,severity:Object(a.b)(n),sentryCorrelationId:c}),i.captureException(e)}),this.rpc.sendSignal("exception",{stack:null!==(s=e.stack)&&void 0!==s?s:"",desktopComponent:t,severity:n,use_electron_transport:!0,sentryCorrelationId:c})}async reportExceptionInRenderer(e,t,n){return this.rpc.sendSignal("exception_in_renderer",{error_details:e,url:t,renderer_id:n,use_electron_transport:!0})}async reportRejectedPromise(e,t){var n;const o=l();if(e instanceof Error)return i.withScope(n=>{n.setTags({component:t.name,severity:Object(a.b)(r.a.CRITICAL),sentryCorrelationId:o}),i.captureException(e)}),this.rpc.sendSignal("unhandled_rejection",{stack:null!==(n=e.stack)&&void 0!==n?n:"",desktopComponent:t,use_electron_transport:!0,sentryCorrelationId:o});throw Object(s.a)("Expected an Error for a rejected promise, but received",e),new Error("Expected an Error for a rejected promise, but received "+JSON.stringify(e))}reportSentryEnvelope(e){return this.rpc.sendSignal("report_sentry_envelope",{envelope:e})}}},function(e,t){e.exports=require("path")},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var i=n(42),r=n(9),a=n(7),o=n(25),s=n(83),c=n(0),l=n(8),d=n(3),u=n(12);let p=0;class m{constructor(){this.serviceInstanceId=++p,this.internalEventEmitter=new i.EventEmitter}get eventEmitter(){return this.internalEventEmitter}addEventListener(e,t){const n=n=>{const i=Object(o.getApexContext)(),r=Object(u.b)();try{Object(a.g)(i,String(e),this.serviceName,!0,r,{process:"main"}),t(n)}catch(t){Object(a.g)(i,String(e),this.serviceName,!1,r,{process:"main"},t instanceof Error?{error_name:t.name,error_message:t.message}:{})}};return this.internalEventEmitter.on(e,n),()=>this.internalEventEmitter.off(e,n)}registerOnceListener(e,t){const n=n=>{const i=Object(o.getApexContext)(),r=Object(u.b)();try{Object(a.g)(i,String(e),this.serviceName,!0,r,{process:"main"}),t(n)}catch(t){Object(a.g)(i,String(e),this.serviceName,!1,r,{process:"main"},t instanceof Error?{error_name:t.name,error_message:t.message}:{})}};return this.internalEventEmitter.once(e,n),()=>this.internalEventEmitter.off(e,n)}removeAllEventListeners(e){this.internalEventEmitter.removeAllListeners(e)}emitEvent(e,t){this.internalEventEmitter.emit(e,t),this.logEmittedEvent("event_emitted_from_fenix_to_main",String(e));const n=Object(l.e)();for(const i of n.keys()){const a=n.get(i).name,o=`${r.q}:${this.serviceName}:${String(e)}`;i.send(o,t),Object(c.b)("Event emitted to event channel: "+o),this.logEmittedEvent("event_emitted_from_fenix_to_view",String(e),a)}}logEmittedEvent(e,t,n){let i={emitted_event_name:String(t),service_name:this.serviceName};n&&(i={...i,view:n}),Object(s.c)({pii_fields:i,event_name:e,amis_only:!0,skip_trace:!0,component:d.a.FENIX,tags:i},void 0,void 0)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return c})),n.d(t,"d",(function(){return o}));var i=n(62),r=n(30);const a=["debug","info","warn","error","log","assert","trace"],o={};function s(e){if(!("console"in r.a))return e();const t=r.a.console,n={},i=Object.keys(o);i.forEach(e=>{const i=o[e];n[e]=t[e],t[e]=i});try{return e()}finally{i.forEach(e=>{t[e]=n[e]})}}const c=function(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return i.a?a.forEach(n=>{t[n]=(...t)=>{e&&s(()=>{r.a.console[n](`Sentry Logger [${n}]:`,...t)})}}):a.forEach(e=>{t[e]=()=>{}}),t}()},function(e,t,n){"use strict";n.r(t),n.d(t,"ApexStormcrowServiceImpl",(function(){return f})),n.d(t,"StormcrowServiceImpl",(function(){return b})),n.d(t,"stormcrowService",(function(){return _}));var i=n(1),r=n(9),a=n(20),o=n(2),s=n(7),c=n(25),l=n(16),d=n(47),u=n(12),p=n(45),m=n(14),h=n(21),g=n(3);let f=class extends l.a{constructor(){super(...arguments),this.serviceName=r.K}async getUserVariant(e,t){var n;let i=null;return i="string"==typeof t?await Object(c.getApexContext)().getStormcrowClient().getUserVariant(e,t):await Object(c.getApexContext)().getStormcrowClient().getUserVariant(e,t.account_id),null!==(n=null==i?void 0:i.next())&&void 0!==n?n:null}async getMachineVariants(e){var t;const n=await Object(c.getApexContext)().getStormcrowClient().getMachineVariant(e),i=null!==(t=await(null==n?void 0:n.next()))&&void 0!==t?t:null;return null===i?null:Array.isArray(i)?i:[i]}async getBulkMachineVariants(e){return Promise.reject("Not Implemented")}async waitUntilMachineStormcrowReady(){return Promise.reject("Not Implemented")}};Object(i.__decorate)([Object(o.a)("native-typescript"),Object(o.b)("native-typescript")],f.prototype,"getUserVariant",null),Object(i.__decorate)([Object(o.a)("native-typescript"),Object(o.b)("native-typescript")],f.prototype,"getMachineVariants",null),Object(i.__decorate)([Object(o.a)("native-typescript"),Object(o.b)("native-typescript")],f.prototype,"getBulkMachineVariants",null),Object(i.__decorate)([Object(o.a)("native-typescript"),Object(o.b)("native-typescript")],f.prototype,"waitUntilMachineStormcrowReady",null),f=Object(i.__decorate)([a.a],f);let b=class extends l.a{constructor(){super(...arguments),this.waitUntilMachineStormcrowReadyPromise=new d.a,this.serviceName=r.K}async getUserVariant(e,t){return Object(s.f)(this.rpc,r.K).invokeCommand("get_user_variant",{feature_name:e,account_or_id:t})}async getMachineVariants(e){return Object(s.f)(this.rpc,r.K).invokeCommand("get_machine_variant",{feature_name:e})}async getBulkMachineVariants(e){return Object(s.f)(this.rpc,r.K).invokeCommand("get_bulk_machine_variants",{feature_names:e})}async waitUntilMachineStormcrowReady(){return this.waitUntilMachineStormcrowReadyPromise}async initialize(e){this.rpc=e("fenix:stormcrow"),this.checkMachineStormcrow()}async checkMachineStormcrow(){for(await u.d;;)try{if(await this.isMachineStormcrowReady())return void this.waitUntilMachineStormcrowReadyPromise.resolve()}catch(e){Object(m.b)(e,{desktopComponent:g.a.FENIX,severity:h.a.WARN})}finally{await Object(p.b)(5e3)}}async isMachineStormcrowReady(){return Object(s.f)(this.rpc,r.K).invokeCommand("is_machine_stormcrow_ready",{})}};Object(i.__decorate)([Object(o.a)("python-rpc"),Object(o.b)("python-rpc")],b.prototype,"getUserVariant",null),Object(i.__decorate)([Object(o.a)("python-rpc"),Object(o.b)("python-rpc")],b.prototype,"getMachineVariants",null),Object(i.__decorate)([Object(o.a)("python-rpc"),Object(o.b)("python-rpc")],b.prototype,"getBulkMachineVariants",null),Object(i.__decorate)([Object(o.a)("python-rpc"),Object(o.b)("python-rpc")],b.prototype,"waitUntilMachineStormcrowReady",null),b=Object(i.__decorate)([a.a],b);const _=new b},function(e,t,n){"use strict";n.r(t),n.d(t,"addTracingExtensions",(function(){return r.a})),n.d(t,"startIdleTransaction",(function(){return r.b})),n.d(t,"IdleTransaction",(function(){return a.a})),n.d(t,"TRACING_DEFAULTS",(function(){return a.b})),n.d(t,"Span",(function(){return o.a})),n.d(t,"Transaction",(function(){return s.a})),n.d(t,"extractTraceparentData",(function(){return c.a})),n.d(t,"getActiveTransaction",(function(){return c.b})),n.d(t,"SpanStatus",(function(){return l.a})),n.d(t,"getSpanStatusFromHttpCode",(function(){return l.b})),n.d(t,"setHttpStatus",(function(){return l.c})),n.d(t,"spanStatusfromHttpCode",(function(){return l.d})),n.d(t,"continueTrace",(function(){return d.a})),n.d(t,"getActiveSpan",(function(){return d.b})),n.d(t,"startActiveSpan",(function(){return d.d})),n.d(t,"startInactiveSpan",(function(){return d.e})),n.d(t,"startSpan",(function(){return d.f})),n.d(t,"startSpanManual",(function(){return d.g})),n.d(t,"trace",(function(){return d.h})),n.d(t,"getDynamicSamplingContextFromClient",(function(){return u.a})),n.d(t,"getDynamicSamplingContextFromSpan",(function(){return u.b})),n.d(t,"setMeasurement",(function(){return p.a})),n.d(t,"isValidSampleRate",(function(){return m.a})),n.d(t,"SEMANTIC_ATTRIBUTE_PROFILE_ID",(function(){return h.a})),n.d(t,"SEMANTIC_ATTRIBUTE_SENTRY_OP",(function(){return h.b})),n.d(t,"SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN",(function(){return h.c})),n.d(t,"SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE",(function(){return h.d})),n.d(t,"SEMANTIC_ATTRIBUTE_SENTRY_SOURCE",(function(){return h.e})),n.d(t,"createEventEnvelope",(function(){return g.a})),n.d(t,"createSessionEnvelope",(function(){return g.b})),n.d(t,"addBreadcrumb",(function(){return f.a})),n.d(t,"captureCheckIn",(function(){return f.b})),n.d(t,"captureEvent",(function(){return f.c})),n.d(t,"captureException",(function(){return f.d})),n.d(t,"captureMessage",(function(){return f.e})),n.d(t,"captureSession",(function(){return f.f})),n.d(t,"close",(function(){return f.g})),n.d(t,"configureScope",(function(){return f.h})),n.d(t,"endSession",(function(){return f.i})),n.d(t,"flush",(function(){return f.j})),n.d(t,"getClient",(function(){return f.k})),n.d(t,"getCurrentScope",(function(){return f.l})),n.d(t,"isInitialized",(function(){return f.m})),n.d(t,"lastEventId",(function(){return f.n})),n.d(t,"setContext",(function(){return f.o})),n.d(t,"setExtra",(function(){return f.p})),n.d(t,"setExtras",(function(){return f.q})),n.d(t,"setTag",(function(){return f.r})),n.d(t,"setTags",(function(){return f.s})),n.d(t,"setUser",(function(){return f.t})),n.d(t,"startSession",(function(){return f.u})),n.d(t,"startTransaction",(function(){return f.v})),n.d(t,"withActiveSpan",(function(){return f.w})),n.d(t,"withIsolationScope",(function(){return f.x})),n.d(t,"withMonitor",(function(){return f.y})),n.d(t,"withScope",(function(){return f.z})),n.d(t,"Hub",(function(){return b.a})),n.d(t,"ensureHubOnCarrier",(function(){return b.b})),n.d(t,"getCurrentHub",(function(){return b.c})),n.d(t,"getHubFromCarrier",(function(){return b.d})),n.d(t,"getIsolationScope",(function(){return b.e})),n.d(t,"getMainCarrier",(function(){return b.f})),n.d(t,"makeMain",(function(){return b.g})),n.d(t,"runWithAsyncContext",(function(){return b.h})),n.d(t,"setAsyncContextStrategy",(function(){return b.i})),n.d(t,"setHubOnCarrier",(function(){return b.j})),n.d(t,"closeSession",(function(){return _.a})),n.d(t,"makeSession",(function(){return _.b})),n.d(t,"updateSession",(function(){return _.c})),n.d(t,"SessionFlusher",(function(){return v.a})),n.d(t,"Scope",(function(){return y.a})),n.d(t,"getGlobalScope",(function(){return y.b})),n.d(t,"setGlobalScope",(function(){return y.c})),n.d(t,"addGlobalEventProcessor",(function(){return I.a})),n.d(t,"notifyEventProcessors",(function(){return I.c})),n.d(t,"getEnvelopeEndpointWithUrlEncodedAuth",(function(){return w.a})),n.d(t,"getReportDialogEndpoint",(function(){return w.b})),n.d(t,"BaseClient",(function(){return A.a})),n.d(t,"addEventProcessor",(function(){return A.b})),n.d(t,"ServerRuntimeClient",(function(){return C.a})),n.d(t,"initAndBind",(function(){return E.a})),n.d(t,"setCurrentClient",(function(){return E.b})),n.d(t,"createTransport",(function(){return S.a})),n.d(t,"makeOfflineTransport",(function(){return O.a})),n.d(t,"makeMultiplexedTransport",(function(){return R.a})),n.d(t,"SDK_VERSION",(function(){return N.a})),n.d(t,"addIntegration",(function(){return T.a})),n.d(t,"convertIntegrationFnToClass",(function(){return T.c})),n.d(t,"defineIntegration",(function(){return T.d})),n.d(t,"getIntegrationsToSetup",(function(){return T.e})),n.d(t,"applyScopeDataToEvent",(function(){return x.a})),n.d(t,"mergeScopeData",(function(){return x.b})),n.d(t,"prepareEvent",(function(){return B.b})),n.d(t,"createCheckInEnvelope",(function(){return G.a})),n.d(t,"createSpanEnvelope",(function(){return k.a})),n.d(t,"hasTracingEnabled",(function(){return V.a})),n.d(t,"isSentryRequestUrl",(function(){return W.a})),n.d(t,"handleCallbackErrors",(function(){return F.a})),n.d(t,"parameterize",(function(){return Z.a})),n.d(t,"spanIsSampled",(function(){return D.c})),n.d(t,"spanToJSON",(function(){return D.e})),n.d(t,"spanToTraceContext",(function(){return D.f})),n.d(t,"spanToTraceHeader",(function(){return D.g})),n.d(t,"getRootSpan",(function(){return j.a})),n.d(t,"applySdkMetadata",(function(){return L.a})),n.d(t,"DEFAULT_ENVIRONMENT",(function(){return U.a})),n.d(t,"ModuleMetadata",(function(){return Y.a})),n.d(t,"moduleMetadataIntegration",(function(){return Y.b})),n.d(t,"RequestData",(function(){return H.a})),n.d(t,"requestDataIntegration",(function(){return H.b})),n.d(t,"InboundFilters",(function(){return P.a})),n.d(t,"inboundFiltersIntegration",(function(){return P.b})),n.d(t,"FunctionToString",(function(){return M.a})),n.d(t,"functionToStringIntegration",(function(){return M.b})),n.d(t,"LinkedErrors",(function(){return X.a})),n.d(t,"linkedErrorsIntegration",(function(){return X.b})),n.d(t,"metrics",(function(){return K.a})),n.d(t,"Integrations",(function(){return J}));var i={};n.r(i),n.d(i,"FunctionToString",(function(){return M.a})),n.d(i,"InboundFilters",(function(){return P.a})),n.d(i,"LinkedErrors",(function(){return X.a}));var r=n(186),a=n(187),o=n(143),s=n(165),c=n(138),l=n(101),d=n(87),u=n(69),p=n(300),m=n(192),h=n(48),g=n(164),f=n(24),b=n(31),_=n(63),v=n(221),y=n(88),I=n(96),w=n(135),A=n(190),C=n(405),E=n(229),S=n(297),O=n(305),R=n(298),N=n(142),T=n(36),x=n(98),B=n(163),G=n(222),k=n(304),V=n(144),W=n(284),F=n(166),Z=n(299),D=n(35),j=n(95),L=n(301),U=n(107),Y=n(281),H=n(231),P=n(170),M=n(169),X=n(171),K=n(404);const J=i},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n(13);const r=e=>class extends e{constructor(...t){super(...t);for(const t of Object.getOwnPropertyNames(e.prototype)){const n=e.prototype[t];Object(i.e)(n)&&Object.defineProperty(this,t,{enumerable:!0,value:n,configurable:!1,writable:!1})}}}},function(e,t,n){"use strict";var i;n.d(t,"a",(function(){return i})),function(e){e[e.FATAL=60]="FATAL",e[e.CRITICAL=50]="CRITICAL",e[e.WARN=40]="WARN",e[e.DEBUG=30]="DEBUG",e[e.TRACE=20]="TRACE"}(i||(i={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));const i="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},function(e,t){e.exports=require("fs")},function(e,t,n){"use strict";n.d(t,"a",(function(){return b})),n.d(t,"b",(function(){return R})),n.d(t,"c",(function(){return g})),n.d(t,"d",(function(){return m})),n.d(t,"e",(function(){return h})),n.d(t,"f",(function(){return D})),n.d(t,"g",(function(){return x})),n.d(t,"h",(function(){return f})),n.d(t,"i",(function(){return F})),n.d(t,"j",(function(){return T})),n.d(t,"k",(function(){return G})),n.d(t,"l",(function(){return V})),n.d(t,"m",(function(){return k})),n.d(t,"n",(function(){return B})),n.d(t,"o",(function(){return _})),n.d(t,"p",(function(){return y})),n.d(t,"q",(function(){return v})),n.d(t,"r",(function(){return w})),n.d(t,"s",(function(){return I})),n.d(t,"t",(function(){return A})),n.d(t,"u",(function(){return W})),n.d(t,"v",(function(){return O})),n.d(t,"w",(function(){return S})),n.d(t,"x",(function(){return E})),n.d(t,"y",(function(){return N})),n.d(t,"z",(function(){return C}));var i=n(17),r=n(32),a=n(58),o=n(26),s=n(30),c=n(107),l=n(22),d=n(31),u=n(63),p=n(163);function m(e,t){return Object(d.c)().captureException(e,Object(p.a)(t))}function h(e,t){const n="string"==typeof t?t:void 0,i="string"!=typeof t?{captureContext:t}:void 0;return Object(d.c)().captureMessage(e,n,i)}function g(e,t){return Object(d.c)().captureEvent(e,t)}function f(e){Object(d.c)().configureScope(e)}function b(e,t){Object(d.c)().addBreadcrumb(e,t)}function _(e,t){Object(d.c)().setContext(e,t)}function v(e){Object(d.c)().setExtras(e)}function y(e,t){Object(d.c)().setExtra(e,t)}function I(e){Object(d.c)().setTags(e)}function w(e,t){Object(d.c)().setTag(e,t)}function A(e){Object(d.c)().setUser(e)}function C(...e){const t=Object(d.c)();if(2===e.length){const[n,i]=e;return n?t.withScope(()=>(t.getStackTop().scope=n,i(n))):t.withScope(i)}return t.withScope(e[0])}function E(e){return Object(d.h)(()=>e(Object(d.e)()))}function S(e,t){return C(n=>(n.setSpan(e),t(n)))}function O(e,t){return Object(d.c)().startTransaction({...e},t)}function R(e,t){const n=V(),a=G();if(a){if(a.captureCheckIn)return a.captureCheckIn(e,t,n);l.a&&i.c.warn("Cannot capture check-in. Client does not support sending check-ins.")}else l.a&&i.c.warn("Cannot capture check-in. No client defined.");return Object(r.h)()}function N(e,t,n){const i=R({monitorSlug:e,status:"in_progress"},n),r=Object(a.d)();function s(t){R({monitorSlug:e,status:t,checkInId:i,duration:Object(a.d)()-r})}let c;try{c=t()}catch(e){throw s("error"),e}return Object(o.o)(c)?Promise.resolve(c).then(()=>{s("ok")},()=>{s("error")}):s("ok"),c}async function T(e){const t=G();return t?t.flush(e):(l.a&&i.c.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function x(e){const t=G();return t?t.close(e):(l.a&&i.c.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function B(){return Object(d.c)().lastEventId()}function G(){return Object(d.c)().getClient()}function k(){return!!G()}function V(){return Object(d.c)().getScope()}function W(e){const t=G(),n=Object(d.e)(),i=V(),{release:r,environment:a=c.a}=t&&t.getOptions()||{},{userAgent:o}=s.a.navigator||{},l=Object(u.b)({release:r,environment:a,user:i.getUser()||n.getUser(),...o&&{userAgent:o},...e}),p=n.getSession();return p&&"ok"===p.status&&Object(u.c)(p,{status:"exited"}),F(),n.setSession(l),i.setSession(l),l}function F(){const e=Object(d.e)(),t=V(),n=t.getSession()||e.getSession();n&&Object(u.a)(n),Z(),e.setSession(),t.setSession()}function Z(){const e=Object(d.e)(),t=V(),n=G(),i=t.getSession()||e.getSession();i&&n&&n.captureSession&&n.captureSession(i)}function D(e=!1){e?F():Z()}},function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)},a=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function o(e){try{c(i.next(e))}catch(e){a(e)}}function s(e){try{c(i.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((i=i.apply(e,t||[])).next())}))},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};if(Object.defineProperty(t,"__esModule",{value:!0}),t.KVStoreDatabase=t.KVStore=void 0,"undefined"!=typeof window)throw"Cannot import Apex native module in renderer process!\n         You should import 'dropbox-apex/preload' in the preload script.";r(n(418),t);var s=n(296);Object.defineProperty(t,"KVStore",{enumerable:!0,get:function(){return s.KVStore}}),Object.defineProperty(t,"KVStoreDatabase",{enumerable:!0,get:function(){return s.KVStoreDatabase}});const c=n(4),l=o(n(15)),d=o(n(54)),u=n(294),p=n(421),m=n(296),h=n(422),g=n(423);function f(e){let t=e.getAutoUpdater();return e.getAutoUpdater=()=>new h.AutoUpdaterEventEmitter(t),e.getFetchHttpClient=()=>new p.FetchClient(e.getHttpClient()),e}let b;(t=Object.assign(Object.assign({},e.exports),g)).createApexContext=e=>{if(void 0!==b||void 0!==g._initializeFromMainThread)throw"Apex context already exists";const t={common:{cacheDir:l.default.join(c.app.getPath("userData"),"apex")},autoUpdater:(0,h.getAutoUpdaterConfig)()};return b=g.createContext(e,t),f(b)},t.getApexContext=()=>(void 0===b&&(b=void 0!==g._initializeFromMainThread?f(g._initializeFromMainThread()):t.createApexContext({appName:c.app.getName(),appVersion:c.app.getVersion(),buildChannel:c.app.isPackaged?"stable":"developer"})),b),delete t.createContext,t.retrieveAccountsFromCoreClient=e=>a(void 0,void 0,void 0,(function*(){return yield g.retrieveAccountsFromCoreClient(e)})),t.fetchAuthTokenForAccount=(e,n)=>a(void 0,void 0,void 0,(function*(){return yield(0,u.internal_fetchAuthTokenForAccount)(e,n,t.getApexContext())})),t.crashIfInstalling=()=>{g.isInstalling(c.app.getName())&&c.app.exit(80)},delete t.isInstalling,m.KVStoreDatabase.impl=g.kvstore,delete t.kvstore,e.exports=t,c.ipcMain.handle("dropbox-apex:context:analytics",(e,n,...i)=>a(void 0,void 0,void 0,(function*(){if("flushEvents"===n)return yield t.getApexContext().getAnalyticsClient().flushEvents();t.getApexContext().getAnalyticsClient()[n](...i)}))),c.ipcMain.handle("dropbox-apex:context:metrics",(e,n,i,r,o)=>a(void 0,void 0,void 0,(function*(){(0,d.default)("string"==typeof i||"number"==typeof i,"Recorded metric value must be a string or number"),(0,d.default)("string"==typeof(null==r?void 0:r.ns),"Metric 'ns' should be a string"),(0,d.default)("string"==typeof(null==r?void 0:r.name),"Metric 'name' should be a string"),(0,d.default)("object"==typeof o&&null!=o,"Tags must be a key/value map of strings");for(const[e,t]of Object.entries(o))(0,d.default)("string"==typeof t,`Metric tag ${e} has a non-string value`);if("record"===n)t.getApexContext().getMetricsReporter().createStats(r,o).record(i);else{if("observe"!==n)throw"Unknown metrics operation "+n;t.getApexContext().getMetricsReporter().createSet(r,o).observe(i)}}))),c.ipcMain.handle("dropbox-apex:context:logging",(e,n,...i)=>a(void 0,void 0,void 0,(function*(){t.getApexContext().getTraceLogger()[n](...i)}))),c.ipcMain.handle("dropbox-apex:context:http_client",(e,n,i,r,o,s,c,l)=>a(void 0,void 0,void 0,(function*(){return yield t.getApexContext().getHttpClient().request(i,r,o,s,c,l)})));let _=0,v={};c.ipcMain.handle("dropbox-apex:context:stormcrow:get_variant",(e,n,i,r)=>{if("machine"===n){const e=t.getApexContext().getStormcrowClient().getMachineVariant(i),n=_++;return v[n]=e,{id:n}}if("user"===n){if(null==r)throw"Missing account id for user stormcrow";const e=t.getApexContext().getStormcrowClient().getUserVariant(i,r),n=_++;return v[n]=e,{id:n}}throw"Unknown stormcrow operation "+n}),c.ipcMain.handle("dropbox-apex:context:stormcrow:variant:next",(e,t,n)=>a(void 0,void 0,void 0,(function*(){const e=v[n];if(e)return yield e.next();throw"Subscribing to unknown variant, might have been closed already"}))),c.ipcMain.handle("dropbox-apex:context:stormcrow:variant:destroy",(e,t,n)=>a(void 0,void 0,void 0,(function*(){delete v[n]}))),c.ipcMain.handle("dropbox-apex:context:oauth",(e,n,...i)=>a(void 0,void 0,void 0,(function*(){t.getApexContext().getOAuthClient()[n](...i)}))),c.ipcMain.handle("dropbox-apex:context:auto_updater",(e,n,...i)=>{t.getApexContext().getAutoUpdater()[n](...i)})},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return h})),n.d(t,"d",(function(){return r})),n.d(t,"e",(function(){return o})),n.d(t,"f",(function(){return m})),n.d(t,"g",(function(){return v})),n.d(t,"h",(function(){return _})),n.d(t,"i",(function(){return d})),n.d(t,"j",(function(){return p})),n.d(t,"k",(function(){return u})),n.d(t,"l",(function(){return g})),n.d(t,"m",(function(){return l})),n.d(t,"n",(function(){return b})),n.d(t,"o",(function(){return f})),n.d(t,"p",(function(){return y}));const i=Object.prototype.toString;function r(e){switch(i.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return v(e,Error)}}function a(e,t){return i.call(e)===`[object ${t}]`}function o(e){return a(e,"ErrorEvent")}function s(e){return a(e,"DOMError")}function c(e){return a(e,"DOMException")}function l(e){return a(e,"String")}function d(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function u(e){return null===e||d(e)||"object"!=typeof e&&"function"!=typeof e}function p(e){return a(e,"Object")}function m(e){return"undefined"!=typeof Event&&v(e,Event)}function h(e){return"undefined"!=typeof Element&&v(e,Element)}function g(e){return a(e,"RegExp")}function f(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function b(e){return p(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function _(e){return"number"==typeof e&&e!=e}function v(e,t){try{return e instanceof t}catch(e){return!1}}function y(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));const i="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return g}));var i,r=n(42),a=n(13),o=n(37),s=n(0),c=n(34),l=n(109),d=n(9),u=n(148);let p;!function(e){e.LaunchUserJourneyEvent="LAUNCH_USER_JOURNEY_EVENT",e.RegisterLocallyAuthenticatedAccount="REGISTER_LOCALLY_AUTHENTICATED_ACCOUNT",e.ScanDropbox="SCAN_DROPBOX",e.RunPatronusTests="RUN_PATRONUS_TESTS",e.LocalAccountChange="LOCAL_ACCOUNT_CHANGE",e.LocalAccountPaired="LOCAL_ACCOUNT_PAIRED",e.KnownAccountsLinked="KNOWN_ACCOUNTS_LINKED",e.FileTransferFileListUpdated="FILE_TRANSFER_FILE_LIST_UPDATED",e.FileTransferFileProcessCompleted="FILE_TRANSFER_FILE_PROCESS_COMPLETED",e.FileTransferProductConfigUpdated="FILE_TRANSFER_PRODUCT_CONFIG_UPDATED",e.FileTransferUploadCompleted="FILE_TRANSFER_UPLOAD_COMPLETED",e.HarmonyDocumentUpdate="HARMONY_DOCUMENT_UPDATE",e.TrayActiveAccountChanged="TRAY_ACTIVE_ACCOUNT_CHANGED",e.TrayConsentChanged="TRAY_CONSENT_CHANGED",e.TrayUpgradeButtonChanged="TRAY_UPGRADE_BUTTON_CHANGED",e.MetaEngineAPIEventReceived="META_ENGINE_API_EVENT_TO_TRANSPORT",e.SetExternalUrl="SET_EXTERNAL_URL",e.NotificationsChanged="NOTIFICATIONS_CHANGED",e.ExternalContextMenuSharingCopyStart="EXTERNAL_CONTEXT_MENU_SHARING_COPY_START",e.ThemeChanged="THEME_CHANGED",e.BackupEngineAPIEventReceived="BACKUP_ENGINE_API_EVENT_TO_TRANSPORT",e.UpdaterShouldPromote="UPDATER_SHOULD_PROMOTE",e.UpdaterPromoted="UPDATER_PROMOTED",e.MevViewSpawned="MEV_VIEW_SPAWNED"}(i||(i={}));const m=new r.EventEmitter,h=async(e,t)=>{Object(s.b)("[event_hub.callListenersAndSettlePromises] all settled");return{handlerResponses:await Promise.all(m.rawListeners(e).map(async e=>(async(e,t)=>{try{return{status:"fulfilled",value:await e(t)}}catch(e){return{status:"rejected",reason:Object(a.b)(e)}}})(e,t)))}},g=Object.freeze({serviceName:d.o,invokeMainProcessEvent:async(e,t)=>(Object(s.b)("[event_hub.invokeMainProcessEvent]"),h(e,t)),addListener(e,t){return Object(s.b)("[event_hub.addListener] for "+String(e)),this.on(e,t)},on(e,t){if(!Object(a.e)(t))throw Object(s.b)("[event_hub.on] error due to listener not async"),new Error("DBX_FENIX_EVENT_HUB_LISTENERS_MUST_TO_BE_ASYNC");return Object(s.b)("[event_hub.on] "+String(e)),m.on(e,t)},once(e,t){if(!Object(a.e)(t))throw Object(s.b)("[event_hub.once] error due to listener not async"),new Error("DBX_FENIX_EVENT_HUB_LISTENERS_MUST_TO_BE_ASYNC");return Object(s.b)("[event_hub.once] "+String(e)),m.once(e,t)},off:m.off.bind(m),removeListener:m.removeListener.bind(m),removeAllListeners:m.removeAllListeners.bind(m),setMaxListeners:m.setMaxListeners.bind(m),getMaxListeners:m.getMaxListeners.bind(m),listenerCount:m.listenerCount.bind(m),prependListener:m.prependListener.bind(m),prependOnceListener:m.prependOnceListener.bind(m),emit:(e,...t)=>{throw new Error("DBX_FENIX_EVENT_HUB_EMIT_IS_PRIVATE")},listeners:e=>{throw new Error("DBX_FENIX_EVENT_HUB_LISTENERS_IS_PRIVATE")},rawListeners:e=>{throw new Error("DBX_FENIX_EVENT_HUB_RAW_LISTENERS_IS_PRIVATE")},eventNames:()=>{throw new Error("DBX_FENIX_EVENT_HUB_EVENT_NAMES_IS_PRIVATE")},initialize:async e=>{(e=>{p=e("fenix:event_hub",{invocationHandlers:{[i.LaunchUserJourneyEvent]:async e=>h(i.LaunchUserJourneyEvent,e),[i.RunPatronusTests]:async e=>h(i.RunPatronusTests,e),[i.LocalAccountChange]:async e=>h(o.b.LocalAccountChange,e),[i.LocalAccountPaired]:async e=>h(o.b.LocalAccountPaired,e),[i.KnownAccountsLinked]:async e=>h(o.b.KnownAccountsLinked,e),[i.TrayActiveAccountChanged]:async e=>h(o.b.TrayActiveAccountChanged,e),[i.TrayConsentChanged]:async e=>h(i.TrayConsentChanged,e),[i.TrayUpgradeButtonChanged]:async e=>h(i.TrayUpgradeButtonChanged,e),[i.FileTransferFileListUpdated]:async e=>h(l.a.FileListUpdated,e),[i.FileTransferFileProcessCompleted]:async e=>h(l.a.FileProcessCompleted,e),[i.FileTransferProductConfigUpdated]:async e=>h(l.a.ProductConfigUpdated,e),[i.FileTransferUploadCompleted]:async e=>h(l.a.UploadCompleted,e),[i.HarmonyDocumentUpdate]:async e=>h(c.b.HarmonyDocumentUpdate,e),[i.MetaEngineAPIEventReceived]:async e=>h(u.b,e),[i.SetExternalUrl]:async e=>h(i.SetExternalUrl,e),[i.NotificationsChanged]:async e=>h(i.NotificationsChanged,e),[i.ExternalContextMenuSharingCopyStart]:async e=>h(i.ExternalContextMenuSharingCopyStart,e),[i.ThemeChanged]:async e=>h(i.ThemeChanged,e),[i.BackupEngineAPIEventReceived]:async e=>h(u.a,e),[i.UpdaterShouldPromote]:async e=>h(i.UpdaterShouldPromote,e),[i.UpdaterPromoted]:async e=>h(i.UpdaterPromoted,e),[i.MevViewSpawned]:async e=>h(i.MevViewSpawned,e)}})})(e),Object(s.b)("[event_hub.initialize] Rpc initialized")},invokeEvent(e,t){return this.socketTransport.emit(i[e],t)},socketTransport:Object.freeze({emit:(e,t)=>{if(!p)throw Object(s.b)("[event_hub.emit] error due to rpc not initialized"),new Error("DBX_FENIX_EVENT_HUB_PYTHON_SOCKET_NOT_INITIALIZED");return Object(s.b)("[event_hub.emit] rpc.invokeCommand "+e),p.invokeCommand("invoke-event",{event_name:e,event_arg:t})}}),trptTransport:Object.freeze({emit:(e,t)=>{throw new Error("DBX_NOT_SUPPORTED_YET")}})})},function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return m})),n.d(t,"c",(function(){return b})),n.d(t,"d",(function(){return f})),n.d(t,"e",(function(){return c})),n.d(t,"f",(function(){return u})),n.d(t,"g",(function(){return d})),n.d(t,"h",(function(){return _})),n.d(t,"i",(function(){return p}));var i=n(134),r=n(62),a=n(26),o=n(17),s=n(50);function c(e,t,n){if(!(t in e))return;const i=e[t],r=n(i);"function"==typeof r&&d(r,i),e[t]=r}function l(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(n){r.a&&o.c.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function d(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,l(e,"__sentry_original__",t)}catch(e){}}function u(e){return e.__sentry_original__}function p(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function m(e){if(Object(a.d)(e))return{message:e.message,name:e.name,stack:e.stack,...g(e)};if(Object(a.f)(e)){const t={type:e.type,target:h(e.target),currentTarget:h(e.currentTarget),...g(e)};return"undefined"!=typeof CustomEvent&&Object(a.g)(e,CustomEvent)&&(t.detail=e.detail),t}return e}function h(e){try{return Object(a.c)(e)?Object(i.d)(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function g(e){if("object"==typeof e&&null!==e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function f(e,t=40){const n=Object.keys(m(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return Object(s.e)(n[0],t);for(let e=n.length;e>0;e--){const i=n.slice(0,e).join(", ");if(!(i.length>t))return e===n.length?i:Object(s.e)(i,t)}return""}function b(e){return function e(t,n){if(function(e){if(!Object(a.j)(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(e){return!0}}(t)){const i=n.get(t);if(void 0!==i)return i;const r={};n.set(t,r);for(const i of Object.keys(t))void 0!==t[i]&&(r[i]=e(t[i],n));return r}if(Array.isArray(t)){const i=n.get(t);if(void 0!==i)return i;const r=[];return n.set(t,r),t.forEach(t=>{r.push(e(t,n))}),r}return t}(e,new Map)}function _(e){let t;switch(!0){case null==e:t=new String(e);break;case"symbol"==typeof e||"bigint"==typeof e:t=Object(e);break;case Object(a.k)(e):t=new e.constructor(e);break;default:t=e}return t}},function(e,t,n){"use strict";function i(e){return e&&e.Math==Math?e:void 0}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return o}));const r="object"==typeof globalThis&&i(globalThis)||"object"==typeof window&&i(window)||"object"==typeof self&&i(self)||"object"==typeof global&&i(global)||function(){return this}()||{};function a(){return r}function o(e,t,n){const i=n||r,a=i.__SENTRY__=i.__SENTRY__||{};return a[e]||(a[e]=t())}},function(e,t,n){"use strict";n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return I})),n.d(t,"c",(function(){return _})),n.d(t,"d",(function(){return E})),n.d(t,"e",(function(){return v})),n.d(t,"f",(function(){return f})),n.d(t,"g",(function(){return b})),n.d(t,"h",(function(){return A})),n.d(t,"i",(function(){return w})),n.d(t,"j",(function(){return S}));var i=n(26),r=n(32),a=n(58),o=n(17),s=n(30),c=n(107),l=n(22),d=n(88),u=n(63),p=n(142);const m=parseFloat(p.a),h=100;class g{constructor(e,t,n,i=m){let r,a;this._version=i,t?r=t:(r=new d.a,r.setClient(e)),n?a=n:(a=new d.a,a.setClient(e)),this._stack=[{scope:r}],e&&this.bindClient(e),this._isolationScope=a}isOlderThan(e){return this._version<e}bindClient(e){const t=this.getStackTop();t.client=e,t.scope.setClient(e),e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){const e=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}withScope(e){const t=this.pushScope();let n;try{n=e(t)}catch(e){throw this.popScope(),e}return Object(i.o)(n)?n.then(e=>(this.popScope(),e),e=>{throw this.popScope(),e}):(this.popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){const n=this._lastEventId=t&&t.event_id?t.event_id:Object(r.h)(),i=new Error("Sentry syntheticException");return this.getScope().captureException(e,{originalException:e,syntheticException:i,...t,event_id:n}),n}captureMessage(e,t,n){const i=this._lastEventId=n&&n.event_id?n.event_id:Object(r.h)(),a=new Error(e);return this.getScope().captureMessage(e,t,{originalException:e,syntheticException:a,...n,event_id:i}),i}captureEvent(e,t){const n=t&&t.event_id?t.event_id:Object(r.h)();return e.type||(this._lastEventId=n),this.getScope().captureEvent(e,{...t,event_id:n}),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){const{scope:n,client:i}=this.getStackTop();if(!i)return;const{beforeBreadcrumb:r=null,maxBreadcrumbs:s=h}=i.getOptions&&i.getOptions()||{};if(s<=0)return;const c={timestamp:Object(a.c)(),...e},l=r?Object(o.b)(()=>r(c,t)):c;null!==l&&(i.emit&&i.emit("beforeAddBreadcrumb",l,t),n.addBreadcrumb(l,s))}setUser(e){this.getScope().setUser(e),this.getIsolationScope().setUser(e)}setTags(e){this.getScope().setTags(e),this.getIsolationScope().setTags(e)}setExtras(e){this.getScope().setExtras(e),this.getIsolationScope().setExtras(e)}setTag(e,t){this.getScope().setTag(e,t),this.getIsolationScope().setTag(e,t)}setExtra(e,t){this.getScope().setExtra(e,t),this.getIsolationScope().setExtra(e,t)}setContext(e,t){this.getScope().setContext(e,t),this.getIsolationScope().setContext(e,t)}configureScope(e){const{scope:t,client:n}=this.getStackTop();n&&e(t)}run(e){const t=b(this);try{e(this)}finally{b(t)}}getIntegration(e){const t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return l.a&&o.c.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){const n=this._callExtensionMethod("startTransaction",e,t);if(l.a&&!n){this.getClient()?o.c.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"):o.c.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")}return n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){const e=this.getStackTop().scope,t=e.getSession();t&&Object(u.a)(t),this._sendSessionUpdate(),e.setSession()}startSession(e){const{scope:t,client:n}=this.getStackTop(),{release:i,environment:r=c.a}=n&&n.getOptions()||{},{userAgent:a}=s.a.navigator||{},o=Object(u.b)({release:i,environment:r,user:t.getUser(),...a&&{userAgent:a},...e}),l=t.getSession&&t.getSession();return l&&"ok"===l.status&&Object(u.c)(l,{status:"exited"}),this.endSession(),t.setSession(o),o}shouldSendDefaultPii(){const e=this.getClient(),t=e&&e.getOptions();return Boolean(t&&t.sendDefaultPii)}_sendSessionUpdate(){const{scope:e,client:t}=this.getStackTop(),n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}_callExtensionMethod(e,...t){const n=f().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[e])return n.extensions[e].apply(this,t);l.a&&o.c.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function f(){return s.a.__SENTRY__=s.a.__SENTRY__||{extensions:{},hub:void 0},s.a}function b(e){const t=f(),n=E(t);return S(t,e),n}function _(){const e=f();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return y(e)}function v(){return _().getIsolationScope()}function y(e=f()){return C(e)&&!E(e).isOlderThan(m)||S(e,new g),E(e)}function I(e,t=y()){if(!C(e)||E(e).isOlderThan(m)){const n=t.getClient(),i=t.getScope(),r=t.getIsolationScope();S(e,new g(n,i.clone(),r.clone()))}}function w(e){const t=f();t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.acs=e}function A(e,t={}){const n=f();return n.__SENTRY__&&n.__SENTRY__.acs?n.__SENTRY__.acs.runWithAsyncContext(e,t):e()}function C(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function E(e){return Object(s.c)("hub",()=>new g,e)}function S(e,t){if(!e)return!1;return(e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0}},function(e,t,n){"use strict";n.d(t,"a",(function(){return m})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return l})),n.d(t,"d",(function(){return g})),n.d(t,"e",(function(){return h})),n.d(t,"f",(function(){return c})),n.d(t,"g",(function(){return p})),n.d(t,"h",(function(){return o}));var i=n(29),r=n(50),a=n(30);function o(){const e=a.a,t=e.crypto||e.msCrypto;let n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(e){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,e=>(e^(15&n())>>e/4).toString(16))}function s(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function c(e){const{message:t,event_id:n}=e;if(t)return t;const i=s(e);return i?i.type&&i.value?`${i.type}: ${i.value}`:i.type||i.value||n||"<unknown>":n||"<unknown>"}function l(e,t,n){const i=e.exception=e.exception||{},r=i.values=i.values||[],a=r[0]=r[0]||{};a.value||(a.value=t||""),a.type||(a.type=n||"Error")}function d(e,t){const n=s(e);if(!n)return;const i=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...i,...t},t&&"data"in t){const e={...i&&i.data,...t.data};n.mechanism.data=e}}const u=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;function p(e){const t=e.match(u)||[],n=parseInt(t[1],10),i=parseInt(t[2],10),r=parseInt(t[3],10);return{buildmetadata:t[5],major:isNaN(n)?void 0:n,minor:isNaN(i)?void 0:i,patch:isNaN(r)?void 0:r,prerelease:t[4]}}function m(e,t,n=5){if(void 0===t.lineno)return;const i=e.length,a=Math.max(Math.min(i-1,t.lineno-1),0);t.pre_context=e.slice(Math.max(0,a-n),a).map(e=>Object(r.c)(e,0)),t.context_line=Object(r.c)(e[Math.min(i-1,a)],t.colno||0),t.post_context=e.slice(Math.min(a+1,i),a+1+n).map(e=>Object(r.c)(e,0))}function h(e){if(e&&e.__sentry_captured__)return!0;try{Object(i.a)(e,"__sentry_captured__",!0)}catch(e){}return!1}function g(e){return Array.isArray(e)?e:[e]}},function(e,t,n){"use strict";e.exports=n(429)},function(e,t,n){"use strict";var i,r,a,o,s;n.d(t,"c",(function(){return i})),n.d(t,"d",(function(){return r})),n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return s})),function(e){e.STARTED="started",e.DONE="done",e.CANCELLED="cancelled"}(i||(i={})),function(e){e.TOP_LEFT="top-left",e.TOP_RIGHT="top-right",e.BOTTOM_LEFT="bottom-left",e.BOTTOM_RIGHT="bottom-right",e.CENTER_RIGHT="center-right",e.CENTER_LEFT="center-left",e.CENTER_TOP="center-top",e.CENTER_BOTTOM="center-bottom",e.CENTER="center"}(r||(r={})),function(e){e.NO_UPDATE="no-update",e.READY="ready",e.PENDING="pending",e.COORDINATING="coordinating"}(a||(a={})),function(e){e.STARTED="started",e.ENDED="ended",e.CHANGED="changed",e.ACTIVE_SESSION_CHANGED="active_session_changed",e.DISABLED_BADGE_REMOVED_ALL_SESSIONS="disabled_badge_removed_all_sessions"}(o||(o={})),function(e){e.HarmonyDocumentUpdate="HARMONY_DOCUMENT_UPDATE",e.HarmonyWindowStateChanged="HARMONY_WINDOW_STATE_CHANGED"}(s||(s={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return m})),n.d(t,"d",(function(){return d})),n.d(t,"e",(function(){return p})),n.d(t,"f",(function(){return c})),n.d(t,"g",(function(){return l}));var i=n(29),r=n(112),a=n(58);const o=0,s=1;function c(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:a,parent_span_id:o,status:s,tags:c,origin:l}=p(e);return Object(i.c)({data:r,op:a,parent_span_id:o,span_id:t,status:s,tags:c,trace_id:n,origin:l})}function l(e){const{traceId:t,spanId:n}=e.spanContext(),i=m(e);return Object(r.c)(t,n,i)}function d(e){return"number"==typeof e?u(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?u(e.getTime()):Object(a.d)()}function u(e){return e>9999999999?e/1e3:e}function p(e){return function(e){return"function"==typeof e.getSpanJSON}(e)?e.getSpanJSON():"function"==typeof e.toJSON?e.toJSON():{}}function m(e){const{traceFlags:t}=e.spanContext();return Boolean(t&s)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return p})),n.d(t,"c",(function(){return g})),n.d(t,"d",(function(){return f})),n.d(t,"e",(function(){return d})),n.d(t,"f",(function(){return m})),n.d(t,"g",(function(){return u}));var i=n(32),r=n(17),a=n(22),o=n(96),s=n(24),c=n(31);const l=[];function d(e){const t=e.defaultIntegrations||[],n=e.integrations;let r;t.forEach(e=>{e.isDefaultInstance=!0}),r=Array.isArray(n)?[...t,...n]:"function"==typeof n?Object(i.d)(n(t)):t;const a=function(e){const t={};return e.forEach(e=>{const{name:n}=e,i=t[n];i&&!i.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)}),Object.keys(t).map(e=>t[e])}(r),o=function(e,t){for(let n=0;n<e.length;n++)if(!0===t(e[n]))return n;return-1}(a,e=>"Debug"===e.name);if(-1!==o){const[e]=a.splice(o,1);a.push(e)}return a}function u(e,t){const n={};return t.forEach(t=>{t&&m(e,t,n)}),n}function p(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function m(e,t,n){if(n[t.name])a.a&&r.c.log("Integration skipped because it was already installed: "+t.name);else{if(n[t.name]=t,-1===l.indexOf(t.name)&&(t.setupOnce(o.a,c.c),l.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),e.on&&"function"==typeof t.preprocessEvent){const n=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,i)=>n(t,i,e))}if(e.addEventProcessor&&"function"==typeof t.processEvent){const n=t.processEvent.bind(t),i=Object.assign((t,i)=>n(t,i,e),{id:t.name});e.addEventProcessor(i)}a.a&&r.c.log("Integration installed: "+t.name)}}function h(e){const t=Object(s.k)();t&&t.addIntegration?t.addIntegration(e):a.a&&r.c.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`)}function g(e,t){return Object.assign((function(...e){return t(...e)}),{id:e})}function f(e){return e}},function(e,t,n){"use strict";var i,r,a;n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a})),function(e){e[e.LINKED=0]="LINKED",e[e.UNLINKED=1]="UNLINKED"}(i||(i={})),function(e){e[e.Personal=1]="Personal",e[e.Business=2]="Business"}(r||(r={})),function(e){e.LocalAccountChange="LOCAL_ACCOUNT_CHANGE",e.LocalAccountPaired="LOCAL_ACCOUNT_PAIRED",e.KnownAccountsLinked="KNOWN_ACCOUNTS_LINKED",e.TrayActiveAccountChanged="TRAY_ACTIVE_ACCOUNT_CHANGED"}(a||(a={}))},function(e,t,n){"use strict";var i,r,a,o,s,c,l,d,u;n.d(t,"h",(function(){return i})),n.d(t,"i",(function(){return r})),n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return o})),n.d(t,"e",(function(){return s})),n.d(t,"g",(function(){return c})),n.d(t,"f",(function(){return l})),n.d(t,"d",(function(){return d})),n.d(t,"c",(function(){return u})),function(e){e.SYNC_AND_STORAGE_VIEW="sync_and_storage_view",e.SYNC_AND_STORAGE_FILE_TABLE="sync_and_storage_file_table",e.SYNC_AND_STORAGE_FILE_TABLE_CHECKBOX="sync_and_storage_file_table_checkbox",e.SYNC_AND_STORAGE_FOLDER_TABLE_CHECKBOX="sync_and_storage_folder_table_checkbox",e.SYNC_AND_STORAGE_EVICT_BUTTON="sync_and_storage_evict_button",e.SYNC_AND_STORAGE_EVICT_ALL_BUTTON="sync_and_storage_evict_all_button",e.SYNC_AND_STORAGE_REFETCH_FILES_BUTTON="sync_and_storage_refetch_files_button",e.SYNC_AND_STORAGE_LOCATION_BREADCRUMB="sync_and_storage_location_breadcrumb",e.SYNC_AND_STORAGE_NAME_BREADCRUMB="sync_and_storage_name_breadcrumb",e.SYNC_AND_STORAGE_SUMMARY_BAR="sync_and_storage_summary_bar",e.SYNC_AND_STORAGE_WINDOW="sync_and_storage_window",e.STORAGE_SERVICE="storage_service",e.DATABASE_SERVICE="sync_and_storage_db_service",e.DROPBOX_SCANNER="sync_and_storage_scanner",e.CLOSE_MODAL="sync_and_storage_close_modal"}(i||(i={})),function(e){e.SYNC_DASHBOARD_WINDOW="sync_dashboard_window"}(r||(r={})),function(e){e.HARMONY_VIEW="harmony_view",e.HARMONY_SERVICE="harmony_service",e.HARMONY_CONTROLLER="harmony_controller",e.HARMONY_BAUBLE="harmony_bauble",e.HARMONY_FILE_VIEW="harmony_file_view",e.HARMONY_FILE="harmony_file",e.HARMONY_FILE_TOOLTIP="harmony_file_tooltip",e.HARMONY_NOTIFICATION="harmony_notification",e.HARMONY_COORDINATE_FILE_ROW_ACTION="harmony_coordinate_file_row_action",e.HARMONY_COORDINATE_FILE_SAVE_CHANGES_BUTTON="harmony_coordinate_file_save_changes_button",e.HARMONY_COORDINATE_FILE_DISCARD_CHANGES_BUTTON="harmony_coordinate_file_discard_changes_button",e.HARMONY_SHARE_MENU_ACTION="harmony_share_menu_action",e.HARMONY_COPY_LINK_MENU_ACTION="harmony_copy_link_menu_action",e.HARMONY_COMMENT_MENU_ACTION="harmony_comment_menu_action",e.HARMONY_VERSION_HISTORY_MENU_ACTION="harmony_view_version_history_menu_action",e.HARMONY_HELP_ARTICLE_BUTTON="harmony_help_article_button",e.HARMONY_PREFS_BUTTON="harmony_prefs_buttons",e.HARMONY_HIDE_BUTTON="harmony_hide_button"}(a||(a={})),function(e){e.NOTIFICATION_DIALOG_WINDOW="notification_dialog_window",e.CLOSE_WINDOW="notification_dialog_close_window",e.OPEN_MANAGE_ACCESS="copy_link_and_share_manage_access"}(o||(o={})),function(e){e.PREVIEW_VIEW="preview_view",e.LOADING_COMPLETED="preview_loading_completed",e.LOADING_FAILED="preview_loading_failed",e.UNRESPONSIVE="preview_unresponsive"}(s||(s={})),function(e){e.SHARE_MODAL_VIEW="share_modal_view"}(c||(c={})),function(e){e.SELECTIVE_SYNC_VIEW="selective_sync_view",e.SELECTIVE_SYNC_WINDOW="selective_sync_window",e.SELSYNC_ERROR_MODAL="selective_sync_error_modal",e.SELSYNC_CONFIRM_MODAL="selective_sync_confirm_modal",e.SELSYNC_RESTART_MODAL="selective_sync_restart_modal"}(l||(l={})),function(e){e.DEFAULT_TESTING="default_testing",e.PREFERENCES_VIEW="preferences_view",e.GENERAL_TAB="general_tab",e.GENERAL_MEV_TRAY_TOGGLE="general_mev_tray_toggle",e.GENERAL_FSS_LAUNCHER_PLUS_TRAY_TOGGLE="general_fss_launcher_plus_tray_toggle",e.GENERAL_DASH_AI_TOGGLE="general_dash_ai_toggle",e.GENERAL_STARTUP_TOGGLE="general_startup_toggle",e.GENERAL_LANGUAGE_DROPDOWN="general_language_dropdown",e.GENERAL_HARMONY_DROPDOWN="general_harmony_dropdown",e.GENERAL_THEME_DROPDOWN="general_theme_dropdown",e.GENERAL_LANGUAGE_MODAL_RESTART="general_language_modal_restart",e.GENERAL_LANGUAGE_MODAL_PHOTOS="general_language_modal_photos",e.GENERAL_LEAVE_BETA_BUTTON="general_leave_beta_button",e.GENERAL_MODAL_LEAVE_BETA_BUTTON="general_modal_leave_beta_button",e.GENERAL_KEYBOARD_SHORTCUT_CUSTOMIZE="general_keyboard_shortcut_customize",e.PREFERENCES_ACCOUNT_TAB="preferences_account_tab",e.ACCOUNT_ADD_ACCOUNT_BUTTON="accounts_sign_in_button",e.ACCOUNT_SIGN_IN_BUTTON="accounts_sign_in_button",e.ACCOUNT_SIGN_OUT_BUTTON="accounts_sign_out_button",e.ACCOUNT_MODAL_SIGN_OUT="accounts_modal_sign_out",e.ACCOUNT_MODAL_SIGN_OUT_W_BACKUP="accounts_modal_sign_out_with_backup",e.ACCOUNT_MODAL_BUTTON="accounts_modal_button",e.PREFERENCES_NOTIFICATIONS_MENTION_CHECKBOX="preferences_notifications_mention_checkbox",e.PREFERENCES_NETWORK_TAB="preferences_network_tab",e.PREFERENCES_NETWORK_TAB_MODAL="preferences_network_tab_modal",e.PREFERENCES_SYNC_TAB="preferences_sync_tab",e.PREFERENCES_URL="preferences_url",e.SELECTIVE_SYNC_WINDOW="selective_sync_window",e.SELSYNC_ERROR_MODAL="selective_sync_error_modal",e.BACKUP_EDB_TOGGLE="backup_edb_toggle",e.BACKUP_SCREENSHOTS_TOGGLE="backup_screenshots_toggle",e.BACKUP_CU_TOGGLE="backup_cu_toggle",e.BACKUP_CU_DEVICES_TOGGLE="backup_cu_devices_toggle",e.BACKUP_REMOVE_CU_DEVICES_BUTTON="backup_remove_cu_devices_button",e.BACKUP_SCREENSHOT_ACCOUNT_DROPDOWN="backup_screenshot_account_dropdown",e.BACKUP_CU_MODE_DROPDOWN="backup_cu_mode_dropdown",e.BACKUP_CU_OPEN_AUTOPLAY_BUTTON="backup_open_autoplay_button",e.SAVE_SCREENSHOTS_TOGGLE="save_screenshots_toggle",e.SAVE_SCREENSHOTS_ACCOUNT_DROPDOWN="save_screenshots_account_dropdown",e.SHOW_QUICK_ACTIONS_TOGGLE="show_quick_actions_toggle",e.COPY_LINK_WINDOWS_TOGGLE="copy_link_windows_toggle",e.COPY_IMAGE_OR_LINK_DROPDOWN="copy_image_or_link_dropdown",e.NETWORK_BANDWIDTH_TOGGLE="network_bandwidth_toggle",e.NETWORK_UPLOAD_LIMIT_TOGGLE="network_upload_limit_toggle",e.NETWORK_DOWNLOAD_LIMIT_TOGGLE="network_download_limit_toggle",e.NETWORK_UPLOAD_RATE="network_upload_rate",e.NETWORK_DOWNLOAD_RATE="network_download_rate",e.NETWORK_LAN_SYNC_TOGGLE="network_lan_sync_toggle",e.NETWORK_PROXY_TOGGLE="network_proxy_toggle",e.NETWORK_PROXY_MODE_DROPDOWN="network_proxy_mode_dropdown",e.NETWORK_PROXY_TYPE_DROPDOWN="network_proxy_type_dropdown",e.NETWORK_PROXY_SERVER="network_proxy_server",e.NETWORK_PROXY_PORT="network_proxy_port",e.NETWORK_PROXY_REQUIRE_AUTH_TOGGLE="network_proxy_require_auth_toggle",e.NETWORK_PROXY_USERNAME="network_proxy_username",e.NETWORK_PROXY_PASSWORD="network_proxy_password",e.PREFERENCES_NOTIFICATIONS_TAB="preferences_notifications_tab",e.NOTIFICATIONS_SNOOZE_DROPDOWN="notifications_snooze_dropdown",e.NOTIFICATIONS_MENTIONS_TOGGLE="notifications_mentions_toggle",e.NOTIFICATIONS_FOLLOWED_COMMENTS_TOGGLE="notifications_followed_comments_toggle",e.NOTIFICATIONS_ASSIGNED_TASKS_TOGGLE="notifications_assigned_tasks_toggle",e.NOTIFICATIONS_SHARED_CONTENT_TOGGLE="notifications_shared_content_toggle",e.NOTIFICATIONS_VIEWS_TOGGLE="notifications_views_toggle",e.NOTIFICATIONS_SYNC_ADD_TOGGLE="notifications_sync_add_toggle",e.NOTIFICATIONS_SYNC_EDIT_DELETE_TOGGLE="notifications_sync_edit_delete_toggle",e.NOTIFICATIONS_IN_BROWSER="notifications_in_browser",e.SMART_SYNC_AUTO_EVICT_SETTING="smart_sync_auto_evict_setting",e.SMART_SYNC_AUTO_EVICT_TOGGLE="smart_sync_auto_evict_toggle",e.SYNC_INFINITE_SETTING="sync_infinite_setting",e.SYNC_ONLINE_ONLY_RADIO="sync_online_only_radio",e.SYNC_AVAILABLE_OFFLINE_RADIO="sync_available_offline_radio",e.SYNC_SELSYNC_HAS_HIDDEN_FILEIDS="sync_selsync_has_hidden_fileids",e.SYNC_SELSYNC_BANNER="sync_selsync_banner",e.SYNC_SELSYNC_BUTTON="sync_selsync_button",e.SYNC_SELSYNC_BUTTON_BANNER="sync_selsync_button_banner",e.SYNC_FOLDER_LOCATION_BUTTON="sync_folder_location_button",e.SYNC_AVAILABLE_UPDATES_SETTING="sync_available_updates_setting",e.SYNC_AVAILABLE_UPDATES_BUTTON="sync_available_updates_button",e.SYNC_AVAILABLE_UPDATES_LINK="sync_available_updates_link",e.SYNC_OPT_OUT_OF_FP_UPDATE_BUTTON="sync_opt_out_of_fp_update_button",e.SYNC_FP_AUTO_MIGRATION_SCHEDULE_BUTTON="sync_fp_auto_migration_schedule_button",e.SYNC_MODAL_FOLDER_LOCATION_CONFIRM="sync_modal_folder_location_confirm",e.SYNC_MODAL_FOLDER_LOCATION_ERROR="sync_modal_folder_location_error",e.SYNC_MODAL_FOLDER_LOCATION_PRECHECK_ERROR="sync_modal_folder_location_precheck_error",e.SYNC_MODAL_BUTTON="sync_modal_button",e.SYNC_FLEXIBLE_FILENAMES_ENABLED="sync_flexible_filenames_enabled",e.SYNC_FLEXIBLE_FILENAMES_DISABLED="sync_flexible_filenames_disabled",e.SYNC_DBXIGNORE_FILE_BUTTON="sync_dbxignore_file_button"}(d||(d={})),function(e){e.DONE="done_slide",e.LOW_DISK="low_disk_slide",e.LARGE_DROPBOX="large_dropbox_slide",e.SCALE_MITIGATION="scale_mitigation_slide",e.ADVANCED_SETTINGS="advanced_settings_slide",e.AUTHENTICATION_SLIDE="authentication_landing_slide",e.UPSELL="upsell",e.TRY_PURCHASE_PLUS_REDIRECT="try_purchase_plus_redirect",e.DEVICE_LIMIT_LANDING_STATE="device_limit_landing_state_slide",e.DEVICE_LIMIT_MANAGE_STATE="device_limit_manage_state_slide",e.DEVICE_LIMIT_COMPLETE_STATE="device_limit_complete_state_slide",e.DEVICE_LIMIT="device_limit",e.AUTHENTICATION_LANDING_STATE_SLIDE="authentication_landing_state_slide",e.AUTHENTICATION_REDIRECT_STATE_SLIDE="authentication_redirect_state_slide",e.ADVANCED_USER_SETTINGS="advanced_user_settings",e.RIGHT_CLICK="right_click",e.WELCOME_TO_FOLDER="welcome_to_folder",e.WELCOME_BACK="welcome_back",e.SYNC_ACROSS="sync_across",e.TRY_PLUS="try_plus",e.DROPBOX_LOGO_INTRO="dropbox_logo_intro",e.ALL_DONE="all_done",e.PAIR_ACCOUNT="pair_account",e.SETUP_WIZARD="setup_wizard",e.UNKNOWN_SLIDE="unknown_slide",e.ERROR_BOUNDARY="error_boundary",e.CAROUSEL="carousel"}(u||(u={}))},function(e,t){e.exports=require("os")},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return a})),n.d(t,"h",(function(){return o})),n.d(t,"d",(function(){return s})),n.d(t,"f",(function(){return c})),n.d(t,"c",(function(){return l})),n.d(t,"e",(function(){return d})),n.d(t,"g",(function(){return u}));var i,r=n(1);!function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"}(i||(i={}));var a=function(e){function t(n,i,r){var a=this,o=r?r instanceof Error?r:new Error(String(r)):void 0;return(a=e.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(i," \n").concat(o?"\n".concat(o.message,"\n").concat(o.stack):""))||this).code=n,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(a,t),a}return Object(r.__extends)(t,e),t}(Error),o=function(e){function t(t,n){return e.call(this,i.UNSUPPORTED_FORMATTER,t,n)||this}return Object(r.__extends)(t,e),t}(a),s=function(e){function t(t,n){return e.call(this,i.INVALID_CONFIG,t,n)||this}return Object(r.__extends)(t,e),t}(a),c=function(e){function t(t,n){return e.call(this,i.MISSING_DATA,t,n)||this}return Object(r.__extends)(t,e),t}(a),l=function(e){function t(t,n,r){return e.call(this,i.FORMAT_ERROR,"".concat(t," \nLocale: ").concat(n,"\n"),r)||this}return Object(r.__extends)(t,e)