define("modules/clean/ajax",["require","exports","tslib","jquery","modules/clean/devtools/panels/performance/perf_hub_action_types","modules/clean/devtools/panels/performance/perf_hub_actions","modules/clean/job_progress","modules/clean/storage","modules/constants/ajax_strings","modules/constants/debug","modules/constants/page_load","modules/constants/request","modules/core/browser","modules/core/exception","modules/core/html","modules/core/notify","modules/core/uri","modules/clean/csrf","modules/clean/viewer"],(function(e,t,n,r,o,i,s,a,u,l,c,d,_,f,p,h,g,m,v){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r=n.__importDefault(r),s=n.__importStar(s),a=n.__importStar(a),u=n.__importStar(u),l=n.__importStar(l),c=n.__importStar(c),d=n.__importStar(d),_=n.__importStar(_),f=n.__importStar(f);function y(e,t){var n;null==e&&(e={}),null==t&&(t=[]),null==e.type&&(null!=e.method?(f.reportStack("Use of method property within modules/clean/ajax's Request",{tags:["module:ajax"]}),n=e.method):n="POST",e.type=n);var o=new b(e),i=w(o,t),s=r.default.ajax({url:i.url(),type:e.type,data:i.data(),dataType:e.dataType||"text",headers:i.headers(),traditional:!0,xhrFields:i.xhrFields(),success:function(e,t,n){return i.success(e,t,n)},error:function(e,t,n){return i.error(e,t,n)},complete:function(e,t){return i.complete(e,t)},async:null==e.async||e.async,timeout:e.timeout});return i.request(s)}t.Request=y;var w=function(e,t){for(var n=[e],r=0,o=Array.from(t.slice(0).reverse());r3e4)&&(a.SessionStorage.set("reload-timestamp",o),window.location.reload(!0))}return this.next.error(e,t,n)},t})(x),k=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.data=function(){var e=this.next.data();return null!=r.default.ajaxSettings.restrict&&(e.restrict=r.default.ajaxSettings.restrict),e},t})(x),A=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.data=function(){var e=this.next.data();if(!d.REQUEST_TRACING_ENABLED||"post"!==this.options().type.toLowerCase())return e;var t={parent_request_id:d.REQUEST_ID};return r.default.extend(t,e)},t})(x),I=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.data=function(){var e=this.next.data(),t={};return c.PUBLIC_MODE_OVERRIDE&&(t.public_mode_override=1),c.COUNTRY_OVERRIDE&&(t.country_override=c.COUNTRY_OVERRIDE),r.default.extend(t,e)},t})(x),L=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.headers=function(){var e=this.next.headers();return l.CPROFILE_ENABLED&&(e[o.PerfHubHeaderNames.FORCE_REQUEST_TRACING_HEADER]="ON"),e},t.prototype.url=function(){var e=this.next.url();if(!l.CPROFILE_ENABLED)return e;var t=l.CPROFILE_PARAMETER;return 0!==t.indexOf("deps:")?g.URI.parse(e).updateQuery({cProfile:t}).toString():e},t.prototype.success=function(e,t,n){var r=n.getResponseHeader(o.PerfHubHeaderNames.SERVER_RESPONSE_TIME)||"-1",s=n.getResponseHeader(o.PerfHubHeaderNames.REQUEST_PROFILE_ID)||"",a=n.getResponseHeader(o.PerfHubHeaderNames.REQUEST_ID);return i.PerfHubActions.add_ajax_profile(this.url(),r,s,a),this.next.success(e,t,n)},t})(x),P=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.error=function(e,t,n){return this._notify_dev(e,t,n),this.next.error(e,t,n)},t.prototype._notify_dev=function(e,t,n){},t})(x),R=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.success=function(e,t,n){var r;if(!n.responseText.length)return this.next.error(n,t,"");var o=!0,i=!1;if(0===n.responseText.indexOf("err:"))r=n.responseText.substr("err:".length),["{","["].includes(r[0])&&(o=!1);else{if(0!==n.responseText.indexOf("htmlerr:"))return this.next.success(e,t,n);r=n.responseText.substr("htmlerr:".length),i=!0}var s=this.next.error(n,t,r);return o&&!this.options().skipNotifyError&&(i&&(r=new p.HTML(r)),h.Notify.error(r)),s},t.prototype.error=function(e,t,n){return"abort"!==t&&h.Notify.error(u.PROBLEM_COMPLETING_REQUEST),this.next.error(e,t,n)},t})(x),C=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.success=function(e,t,n){if(!this.options().skipErrorHandling){if(!n.responseText.length)return this.next.error(n,t,"");if(0===n.responseText.indexOf("err:")){var r=n.responseText.substr("err:".length);return this.next.error(n,t,r)}}return this.next.success(e,t,n)},t})(x),M=(function(e){function t(){var t=e.call(this)||this;return t._clear_working_msg=t._clear_working_msg.bind(t),t}return n.__extends(t,e),t.prototype.request=function(e){var t=this;return this.xhr=e,setTimeout((function(){if(!t._request_finished())return t._should_show_working_msg()?(t._show_working_msg(),t.xhr.done(t._clear_working_msg)):void 0}),4e3),this.next.request(this.xhr)},t.prototype._request_finished=function(){return 4===this.xhr.readyState},t.prototype._should_show_working_msg=function(){return h.Notify.isShown()},t.prototype._show_working_msg=function(){return this.notification=h.Notify.success(u.STILL_WORKING)},t.prototype._clear_working_msg=function(){if(h.Notify.isShown()&&this.notification===h.Notify.current())return h.Notify.clear()},t})(x),N=(function(e){function t(){var t=e.call(this)||this;return t._watch=t._watch.bind(t),t}return n.__extends(t,e),t.prototype.data=function(){this.job_id=t.generate_job_id();var e=this.next.data();this.uid=e._subject_uid;var n=this.options().subject_user;return!this.uid&&n&&(this.uid=String(n)),r.default.extend({job_id:this.job_id},e)},t.prototype.request=function(e){return this._interval=1e3,this._failures=0,this._watch_count=0,this._watch_id=setInterval(this._watch,this._interval),this.next.request(e)},t.prototype.success=function(e,t,n){return this.next.success(e,t,n)},t.prototype.error=function(e,t,n){return this.next.error(e,t,n)},t.prototype.complete=function(e,t){return this._stop(),s.Job.handled(this.job_id),this.next.complete(e,t)},t.prototype._watch=function(){return s.Job.peek(this.job_id)?this._stop():(this._watch_count++,this._watch_count%10==0&&(clearInterval(this._watch_id),this._interval=Math.min(Math.floor(1.5*this._interval),3e4),this._watch_id=setInterval(this._watch,this._interval)),this._show_progress_modal(),this._fetch_progress())},t.prototype._stop=function(){return clearInterval(this._watch_id),s.ModalProgress.hide()},t.prototype._show_progress_modal=function(){if(!this._modal_shown)return this._modal_shown=!0,s.ModalProgress.show(this.options().progress_text)},t.prototype._fetch_progress=function(){var e=this,t={};return this.uid&&(t._subject_uid=this.uid),W({url:"/job_status/"+this.job_id,data:t,success:function(e,t,n){var r;return r=0===n.responseText.indexOf("done")?"1/1":n.responseText,s.ModalProgress.update(r)},error:function(t,n,r){if(e._failures++,!(e._failures<3))return e._stop(),e.next.error(t,n,r)}})},t.generate_job_id=function(){var e=(new Date).getTime().toString(),t=Math.floor(1e6*Math.random()).toString();return e+(t=("000000"+t).substring(t.length))},t})(x),j=(function(e){function t(){var t=e.call(this)||this;return t._watch=t._watch.bind(t),t}return n.__extends(t,e),t.prototype.data=function(){var e=this.next.data();this.uid=e._subject_uid;var t=this.options().subject_user;return!this.uid&&t&&(this.uid=String(t)),e},t.prototype.success=function(e,t,n){return this._is_async_job_response(n)?(this.job_id=n.responseText.split(":")[1],this._interval=1e3,this._failures=0,this._watch_count=0,this._watch_id=setInterval(this._watch,this._interval)):this.next.success(e,t,n)},t.prototype.complete=function(e,t){if(!this._is_async_job_response(e))return this.next.complete(e,t)},t.prototype._is_async_job_response=function(e){return 0===(null!=e.responseText?e.responseText.indexOf("async_task_started:"):void 0)&&e.responseText.split(":")[1].match(/^[A-Za-z0-9_\-=]*$/)},t.prototype._watch=function(){return s.Job.peek(this.job_id)?this._stop():(this._watch_count++,this._watch_count%10==0&&(clearInterval(this._watch_id),this._interval=Math.min(Math.floor(1.5*this._interval),3e4),this._watch_id=setInterval(this._watch,this._interval)),this._show_progress_modal(),this._fetch_progress())},t.prototype._stop=function(){return clearInterval(this._watch_id),s.ModalProgress.hide()},t.prototype._show_progress_modal=function(){if(!this._modal_shown)return this._modal_shown=!0,s.ModalProgress.show(this.options().progress_text)},t.prototype._fetch_progress=function(){var e=this,t={};return this.uid&&(t._subject_uid=this.uid),X({url:"/async_task_status/"+this.job_id,data:t,success:function(t,n,r){var o=r.responseText;if(0===o.indexOf("done:"))return s.Job.handled(e.job_id),e._stop(),o=o.substr("done:".length),r.responseText=o,e.next.success(o,n,r),e.next.complete(r,n);if(0===o.indexOf("err:")){s.Job.handled(e.job_id),e._stop();var i=o.substr("err:".length);return h.Notify.error(i),e.next.error(r,n,i),e.next.complete(r,n)}if(0===o.indexOf("async_task_err:")){s.Job.handled(e.job_id),e._stop();var a=o.substr("async_task_err:".length);return h.Notify.error(new p.HTML(a)),e.next.complete(r,n)}return s.ModalProgress.update(o)},error:function(t,n,r){if(e._failures++,!(e._failures<3))return e._stop(),e.next.error(t,n,r),e.next.complete(t,n)}})},t})(x),q=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.data=function(){var e,t,n=_.get_uri().getQuery().oref;return e=this.next.data(),t=function(e){return e.oref},!(null!=e?t(e):void 0)&&n?r.default.extend({oref:n},this.next.data()):this.next.data()},t})(x),U=[(function(e){function t(){var t=e.call(this)||this;return t.browser_unload_handler=t.browser_unload_handler.bind(t),t.is_browser_unloading=!1,t}return n.__extends(t,e),t.prototype.browser_unload_handler=function(){this.is_browser_unloading=!0},t.prototype.request=function(e){var t;return r.default(window).on("beforeunload",this.browser_unload_handler),(t=this.next).request.apply(t,arguments)},t.prototype.error=function(e,t,n){var r,o=0===e.status&&0===e.readyState&&"error"===t&&!n,i=o&&this.is_browser_unloading;return i?this.next.error(e,"abort","unload"):(r=this.next).error.apply(r,arguments)},t.prototype.complete=function(){var e;return r.default(window).off("beforeunload",this.browser_unload_handler),(e=this.next).complete.apply(e,arguments)},t})(x)],D=[E,O,S,T,k],F=[M],H=[P,L,A,I],B=[j],J=[].concat(U,F,R,H,D,B);t.WebRequest=function(e){return null==e&&(e={}),y(e,J)},t.WebRequestOref=function(e){return null==e&&(e={}),y(e,[].concat(q,J))};var G=[].concat(U,F,C,H,D,B);t.FormWebRequest=function(e){return null==e&&(e={}),y(e,G)};var V=[].concat(U,F,R,H,D,N,B);function W(e){return null==e&&(e={}),y(e,[].concat(U,H,D))}t.WebProgressRequest=function(e){return null==e&&(e={}),y(e,V)},t.BackgroundRequest=W;var Q=[E,O,S,k],Y=[].concat(U,H,Q);function X(e){return null==e&&(e={}),y(e,Y)}t.SilentBackgroundRequest=X,t.SilentBackgroundRequestOref=function(e){return null==e&&(e={}),y(e,[].concat(q,Y))},t.ValidationSchemaRequest=function(e){null==e&&(e={});var t=new b(e),n=w(t,D),o=r.default.ajax({url:n.url(),type:"OPTIONS",data:n.data(),success:function(e,t,r){return n.success(e,t,r)},error:function(e,t,r){return n.error(e,t,r)},complete:function(e,t){return n.complete(e,t)}});return n.request(o)},t.SilentBackgroundBeaconRequest=function(e){if(null==e&&(e={}),delete e.success,delete e.error,delete e.complete,null==navigator.sendBeacon)return X(e);null==e.type&&(e.type="POST");var t=new b(e),n=w(t,[].concat(Q,A)),r=n.url(),o=new FormData,i=n.data();for(var s in i){var a=i[s];null!=a&&""!==a&&o.append(s,a)}navigator.sendBeacon(r,o)||console.warn("Beacon request failed: "+r)}})),define("modules/clean/analytics",["require","exports","tslib","modules/clean/ajax","modules/clean/insecure_uuid","modules/clean/viewer"],(function(e,t,n,r,o,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r=n.__importStar(r),t.get_uids_for_logging=function(e){var t=i.Viewer.get_viewer();return e?[e]:t.get_users().map((function(e){return e.id}))};t.UXAnalyticsLogger={log:function(e,t,n){var o={url:"/log/ux_analytics",data:{event_type:e,extra_params:JSON.stringify(t)}};n?r.SilentBackgroundBeaconRequest(o):r.SilentBackgroundRequest(o)}},t.GrowthEventsLogger={log:function(e,t,n,o){r.SilentBackgroundRequest({url:"/log/pro_events",data:{event:e,extra:JSON.stringify(t),is_client:!!o},success:n||void 0,error:n||void 0})}},(function(e){e.BUY_TRY_PAGE_CHECKOUT="buy_try_page_checkout",e.BUY_TRY_PAGE_CHECKOUT_CRASH="buy_try_page_checkout_crash"})(t.ProEventNames||(t.ProEventNames={})),t.ProEventsLogger={log:function(e,t,n,o,i){r.SilentBackgroundRequest({url:"/log/pro_events",data:{event:e,extra:JSON.stringify(t),is_client:!!o,project:i},success:n||void 0,error:n||void 0})}},t.ProWebActivityLogger={log:function(e,t,n){r.SilentBackgroundRequest({url:"/log/pro_web_activity",data:{endpoint_name:e,url:t,query_params:n?JSON.stringify(n):void 0}})}},t.RestorationStepsLogger={generate_restore_id:function(e){return{type:"restore",value:"restore#"+e+"#"+o.InsecureUUID.v4()}},restore_id_from_string:function(e){return{type:"restore",value:e}},log_step:function(e){var t=e.postHandler||void 0;r.SilentBackgroundRequest({url:"/log/restoration_step/step",data:{restore_id:e.restoreId.value,step:e.step,extra:JSON.stringify(e.extra)},subject_user:e.userId,success:t,error:t})},log_entry:function(e){var n=e.postHandler||void 0,o=e.restoreId||t.RestorationStepsLogger.generate_restore_id(e.userId);return r.SilentBackgroundRequest({url:"/log/restoration_step/entry",data:{restore_id:o.value,step:e.step,entry_point:e.entry_point,extra:JSON.stringify(e.extra)},subject_user:e.userId,success:n,error:n}),o},log_success:function(e){var t=e.postHandler||void 0;r.SilentBackgroundRequest({url:"/log/restoration_step/success",data:{restore_id:e.restoreId.value,step:e.step,success:e.success||"success",extra:JSON.stringify(e.extra)},subject_user:e.userId,success:t,error:t})},log_failure:function(e){var t=e.postHandler||void 0;r.SilentBackgroundRequest({url:"/log/restoration_step/failure",data:{restore_id:e.restoreId.value,step:e.step,failure:e.failure,extra:JSON.stringify(e.extra)},subject_user:e.userId,success:t,error:t})}},t.PreviewActivityLogger={start_times:{},start:function(e,n){t.PreviewActivityLogger.start_times[e]=n||Date.now()},stop:function(e,n){null!=t.PreviewActivityLogger.start_times[e]&&(n.total_time=Date.now()-t.PreviewActivityLogger.start_times[e],t.PreviewActivityLogger.log(e,n),delete t.PreviewActivityLogger.start_times[e])},log:function(e,t){r.SilentBackgroundRequest({url:"/preview_activity_log",data:{event_name:e,input_method:t.input_method,file_ext:t.file_ext,extra:t.extra}})}},t.MobileFilePreviewLogger={log:function(e,t,n,o,i,s){r.SilentBackgroundRequest({url:"/log/mobile_file_preview",data:{client_time:+new Date,event_name:e,file_viewer_session_id:t,file_preview_session_id:n,file_ns_id:o,file_sjid:i,extra:JSON.stringify(s)}})}},t.SearchClientActivityLogger={create_search_log_dict:function(e,t,n,r,o,i,s){return null!=t&&(e.request_id=t),null!=n&&(e.latency=(new Date).getTime()-n),null!=r&&(e.query_string=r),null!=o&&(e.result_count=o),null!=i&&"200"!==i&&(e.failure_type=i),null!=s&&(e.search_session_id=s),e},log:function(e,t,o){r.SilentBackgroundRequest({url:"/searchclientlogger",subject_user:t,data:n.__assign({event_name:e,typeahead_session_id:o.search_session_id},o,{extra:JSON.stringify(o.extra)})})}},t.ShareTibEventLogger={log:function(e,t,n,o){r.SilentBackgroundRequest({url:"/share_tib_log",data:{event:t,origin:n,extra:JSON.stringify(o)},subject_user:e})},log_unauth:function(e,t,n){r.SilentBackgroundRequest({url:"/share_tib_log_unauth",data:{event:e,origin:t,extra:JSON.stringify(n)}})}},t.SharingExperimentsLogger={log:function(e,t,n){void 0===n&&(n={}),r.SilentBackgroundRequest({url:"/log/sharing_experiments",data:{action_type:t,action_extras:JSON.stringify(n)},subject_user:e})}},t.TeamsWebActionsLogger={LOG_CATEGORY:{PROMO_TEAMS:"promo_teams",TEAM_INFO:"team_info",UPGRADE:"upgrade_to_dfb",USAGE_INFO:"usage_info",LIMITED_TEAM_INFO_DETAILED:"limited_team_info_detailed",TEAM_AND_USER_INFO:"team_and_user_info"},log:function(e,n,o,i,s,a){var u=t.get_uids_for_logging(i);return new Promise((function(t,i){r.SilentBackgroundRequest({url:"/teamswalogger",data:{event_name:e,extra:n?JSON.stringify(n):void 0,for_uids:JSON.stringify(u),log_category:a,restricted:s?"1":void 0},success:o||void 0,error:o||void 0}).then(t,i)}))},log_for_category:function(e,n,r){t.TeamsWebActionsLogger.log(e,r,void 0,void 0,!1,n)}},t.IntentLogger={log:function(e,t,o,s){var a=(function(e,t){void 0===t&&(t=!0);var n=i.Viewer.get_viewer();return e?[n.get_user_by_id(e).account_id]:n.get_account_ids?n.get_account_ids(t):[]})(s),u={};t&&t.extra&&(u=t.extra,delete t.extra);var l=n.__assign({event_name:e,extra:JSON.stringify(u),for_acc_ids:JSON.stringify(a)},t);r.SilentBackgroundRequest({url:"/intentlogger",data:l,success:o||void 0,error:o||void 0})}},t.UserActivityLogger={start_times:{},start:function(e,n,r){t.UserActivityLogger.start_times[n]=r||Date.now()},stop:function(e,n,r,o){null!=t.UserActivityLogger.start_times[n]&&(r.total_time=Date.now()-t.UserActivityLogger.start_times[n],t.UserActivityLogger.log(e,n,r,o),delete t.UserActivityLogger.start_times[n])},log:function(e,n,o,i){o=o||{};var s=t.get_uids_for_logging(i);r.SilentBackgroundRequest({url:"/ualogger",data:{platform:e,event_name:n,extra:JSON.stringify(o),for_uids:JSON.stringify(s)}})}},t.WebMiscActivityLogger={log:function(e,n,o,i){var s=t.get_uids_for_logging(o);r.SilentBackgroundRequest({url:"/misclogger",data:{event_name:e,extra:JSON.stringify(n),for_uids:JSON.stringify(s)},success:i||void 0,error:i||void 0})}};var s=(function(){function e(e,t){void 0===e&&(e=null),this.context=e,this.search_mode=t,this._clear_buffers()}return e.prototype._clear_buffers=function(){this.selection_buffer=[],this.timing_buffer=[],this.total_searches=0,this.slow_searches=0,this.downloaded_contacts=null,this.downloading_time=null},e.prototype.add_record=function(e){e.deleted=!1,this.selection_buffer.push(e)},e.prototype.flag_record_as_removed=function(e){for(var t=0,n=this.selection_buffer;t=0;t--){var n=e.__stack[t];n.visible&&n._hide()}r.default(document).trigger(e.CLEAR),e.__stack=[]},e.register=function(t,n){r.default(document).on(t,n),r.default(document).on(e.CLEAR,(function(){return r.default(document).off(t,n)}))},e.unregister=function(e,t){r.default(document).off(e,t)},e.trigger=function(e,t){r.default(document).trigger(e,t)},e})();t.DBModalStack=o,o.initClass()})),define("modules/clean/devtools/panels/performance/perf_hub_action_types",["require","exports"],(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),(function(e){e.PROFILED_AJAX_LOAD_FINISHED="PROFILED_AJAX_LOAD_FINISHED",e.WEB_TIMING_FETCHED="WEB_TIMING_FETCHED"})(t.ActionTypes||(t.ActionTypes={})),(function(e){e.SERVER_RESPONSE_TIME="x-server-response-time",e.REQUEST_PROFILE_ID="x-dropbox-request-profile-id",e.REQUEST_ID="x-dropbox-request-id",e.FORCE_REQUEST_TRACING_HEADER="x-dropbox-force-request-tracing"})(t.PerfHubHeaderNames||(t.PerfHubHeaderNames={}))})),define("modules/clean/devtools/panels/performance/perf_hub_actions",["require","exports","modules/clean/devtools/panels/performance/perf_hub_action_types","modules/clean/flux/dispatcher"],(function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=(function(){function e(){}return e.prototype.add_ajax_profile=function(e,t,o,i){var s=i?i.substring(0,Math.min(i.length,16)):i;return r.Dispatcher.dispatch({type:n.ActionTypes.PROFILED_AJAX_LOAD_FINISHED,data:{url:e,serverResponseTime:t,profileRequestId:o,traceId:s}})},e.prototype.add_web_timing_details=function(e){return r.Dispatcher.dispatch({type:n.ActionTypes.WEB_TIMING_FETCHED,data:e})},e})();t.PerfHubActions=new o})),define("modules/clean/em_string",["require","exports"],(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=(function(){function e(t){if(!(this instanceof e))return new e(t);this.s=t,this.info=this.widthInfo(),this.length=t.length?this.info[this.s.length-1]:0}return e.initClass=function(){this.ACCURACY=2,this.CODEPOINT_TO_WIDTH={32:38,33:25,34:42,35:67,36:58,37:92,38:75,39:25,40:33,41:33,42:58,43:58,44:25,45:33,46:25,47:42,48:58,49:58,50:58,51:58,52:58,53:58,54:58,55:58,56:58,57:58,58:25,59:25,60:58,61:58,62:58,63:50,64:100,65:67,66:67,67:67,68:75,69:58,70:58,71:75,72:83,73:33,74:25,75:67,76:58,77:100,78:83,79:83,80:67,81:83,82:67,83:58,84:58,85:75,86:67,87:100,88:67,89:58,90:58,91:33,92:42,93:33,94:58,95:50,96:67,97:58,98:67,99:50,100:67,101:58,102:33,103:58,104:67,105:25,106:25,107:58,108:25,109:100,110:67,111:67,112:67,113:67,114:42,115:50,116:42,117:67,118:58,119:83,120:58,121:58,122:50,123:42,124:58,125:42,126:58,161:25,162:58,163:58,164:58,165:58,166:58,167:58,168:67,169:92,170:42,171:50,172:58,174:92,175:58,176:50,177:58,178:42,179:42,180:67,181:67,182:75,183:25,184:25,185:42,186:42,187:50,188:83,189:83,190:83,191:50,192:67,193:67,194:67,195:67,196:67,197:67,198:92,199:67,200:58,201:58,202:58,203:58,204:33,205:33,206:33,207:33,208:75,209:83,210:83,211:83,212:83,213:83,214:83,215:58,216:83,217:75,218:75,219:75,220:75,221:58,222:67,223:67,224:58,225:58,226:58,227:58,228:58,229:58,230:92,231:50,232:58,233:58,234:58,235:58,236:25,237:25,238:25,239:25,240:67,241:67,242:67,243:67,244:67,245:67,246:67,247:58,248:67,249:67,250:67,251:67,252:67,253:58,254:67,255:58,256:75,257:67,258:75,259:67,260:75,261:67,262:75,263:58,264:75,265:58,266:75,267:58,268:75,269:58,270:83,271:83,272:83,273:75,274:67,275:67,276:67,277:67,278:67,279:67,280:67,281:67,282:67,283:67,284:83,285:75,286:83,287:75,288:83,289:75,290:83,291:75,292:83,293:75,294:92,295:75,296:33,297:33,298:33,299:33,300:33,301:33,302:33,303:33,304:33,305:25,306:67,307:67,308:42,309:33,310:75,311:67,312:67,313:58,314:33,315:58,316:33,317:58,318:42,319:58,320:50,321:67,322:42,323:83,324:75,325:83,326:75,327:83,328:75,329:83,330:83,331:75,332:92,333:67,334:92,335:67,336:92,337:67,338:100,339:100,340:75,341:50,342:75,343:50,344:75,345:50,346:67,347:58,348:67,349:58,350:67,351:58,352:67,353:58,354:75,355:42,356:75,357:42,358:75,359:42,360:83,361:75,362:83,363:75,364:83,365:75,366:83,367:75,368:83,369:75,370:83,371:75,372:100,373:92,374:75,375:58,376:75,377:67,378:67,379:67,380:67,381:67,382:67,383:42,384:75,385:83,386:67,387:75,388:75,389:67,390:75,391:83,392:58,393:83,394:100,395:67,396:75,397:67,398:67,399:75,400:58,401:58,402:75,403:83,404:75,405:100,406:50,407:50,408:75,409:67,410:50,411:67,412:117,413:83,414:75,415:92,416:92,417:75,418:117,419:100,420:75,421:75,422:75,423:67,424:58,425:67,426:58,427:42,428:75,429:42,430:75,431:83,432:75,433:92,434:83,435:75,436:75,437:67,438:67,439:67,440:67,441:58,442:58,443:75,444:75,445:58,446:50,447:67,448:33,449:50,450:50,451:33,452:142,453:142,454:133,455:100,456:92,457:67,458:117,459:117,460:100,461:75,462:67,463:33,464:33,465:92,466:67,467:83,468:75,469:83,470:75,471:83,472:75,473:83,474:75,475:83,476:75,477:67,478:75,479:67,480:75,481:67,482:100,483:100,484:92,485:75,486:83,487:75,488:75,489:67,490:92,491:67,492:92,493:67,494:67,495:58,496:33,497:142,498:142,499:133,500:83,501:75,502:117,503:67,504:83,505:75,506:75,507:67,508:100,509:100,510:92,511:67,512:75,513:67,514:75,515:67,516:67,517:67,518:67,519:67,520:33,521:33,522:33,523:33,524:92,525:67,526:92,527:67,528:75,529:50,530:75,531:50,532:83,533:75,534:83,535:75,536:67,537:58,538:75,539:42,540:58,541:58,542:83,543:75,544:83,545:100,546:92,547:67,548:67,549:67,550:75,551:67,552:67,553:67,554:92,555:67,556:92,557:67,558:92,559:67,560:92,561:67,562:75,563:58,564:67,565:100,566:67,567:33,568:100,569:100,570:75,571:75,572:58,573:58,574:67,575:58,576:58,577:67,578:50,579:75,580:75,581:75,582:75,583:58,584:58,585:25,586:83,587:58,588:75,589:33,590:75,591:58,880:67,881:50,882:67,883:50,884:33,885:33,886:75,887:67,888:108,889:108,890:67,891:58,892:58,893:58,894:42,895:108,896:108,897:108,898:108,899:108,900:67,901:67,902:75,903:42,904:83,905:100,906:58,907:108,908:100,909:108,910:100,911:100,912:42,913:75,914:67,915:58,916:83,917:67,918:67,919:83,920:92,921:33,922:75,923:75,924:100,925:83,926:75,927:92,928:83,929:67,930:108,931:67,932:75,933:75,934:83,935:75,936:83,937:92,938:33,939:75,940:83,941:58,942:75,943:42,944:67,945:83,946:67,947:67,948:67,949:58,950:75,951:75,952:67,953:42,954:67,955:67,956:75,957:67,958:67,959:67,960:92,961:67,962:67,963:75,964:67,965:67,966:92,967:67,968:92,969:100,970:42,971:67,972:67,973:67,974:100,975:108,976:58,977:75,978:75,979:100,980:75,981:92,982:100,983:67,984:92,985:67,986:75,987:58,988:58,989:58,990:67,991:58,992:75,993:92,994:100,995:92,996:75,997:58,998:75,999:58,1e3:75,1001:75,1002:67,1003:67,1004:83,1005:58,1006:50,1007:42,1008:67,1009:67,1010:58,1011:33,1012:92,1013:58,1014:58,1015:67,1016:67,1017:75,1018:100,1019:83,1020:58,1021:75,1022:75,1023:75,1024:67,1025:67,1026:92,1027:58,1028:75,1029:67,1030:33,1031:33,1032:42,1033:108,1034:108,1035:83,1036:75,1037:83,1038:75,1039:83,1040:75,1041:67,1042:67,1043:58,1044:83,1045:67,1046:92,1047:67,1048:83,1049:83,1050:75,1051:83,1052:100,1053:83,1054:92,1055:83,1056:67,1057:75,1058:75,1059:75,1060:83,1061:75,1062:83,1063:75,1064:108,1065:108,1066:75,1067:92,1068:67,1069:75,1070:108,1071:75,1072:67,1073:67,1074:58,1075:58,1076:75,1077:67,1078:83,1079:58,1080:75,1081:75,1082:67,1083:67,1084:83,1085:75,1086:67,1087:75,1088:75,1089:58,1090:58,1091:58,1092:92,1093:67,1094:75,1095:58,1096:92,1097:100,1098:67,1099:83,1100:58,1101:58,1102:92,1103:58,1104:67,1105:67,1106:75,1107:58,1108:58,1109:58,1110:33,1111:33,1112:42,1113:92,1114:92,1115:75,1116:67,1117:75,1118:58,1119:75,1120:100,1121:75,1122:75,1123:67,1124:83,1125:83,1126:75,1127:67,1128:100,1129:92,1130:92,1131:83,1132:117,1133:108,1134:67,1135:67,1136:83,1137:83,1138:92,1139:67,1140:83,1141:67,1142:83,1143:67,1144:133,1145:125,1146:92,1147:67,1148:100,1149:75,1150:100,1151:75,1152:75,1153:58,1154:75,1155:0,1156:0,1157:0,1158:0,1159:108,1160:0,1161:0,1162:83,1163:75,1164:67,1165:58,1166:67,1167:75,1168:58,1169:58,1170:67,1171:58,1172:75,1173:67,1174:100,1175:92,1176:67,1177:58,1178:75,1179:67,1180:83,1181:75,1182:75,1183:67,1184:83,1185:75,1186:83,1187:75,1188:100,1189:83,1190:117,1191:100,1192:92,1193:75,1194:75,1195:58,1196:75,1197:58,1198:75,1199:58,1200:75,1201:58,1202:75,1203:75,1204:100,1205:83,1206:75,1207:67,1208:75,1209:67,1210:75,1211:58,1212:92,1213:75,1214:92,1215:75,1216:33,1217:92,1218:83,1219:75,1220:67,1221:83,1222:67,1223:83,1224:75,1225:83,1226:75,1227:75,1228:58,1229:100,1230:83,1231:25,1232:75,1233:67,1234:75,1235:67,1236:100,1237:100,1238:67,1239:67,1240:75,1241:67,1242:75,1243:67,1244:92,1245:83,1246:67,1247:58,1248:67,1249:58,1250:83,1251:75,1252:83,1253:75,1254:92,1255:67,1256:92,1257:67,1258:92,1259:67,1260:75,1261:58,1262:75,1263:58,1264:75,1265:58,1266:75,1267:58,1268:75,1269:58,1270:58,1271:42,1272:92,1273:83,1274:58,1275:42,1276:75,1277:58,1278:75,1279:58,2026:67,19977:108,65403:58},this._ELLIPSIS_LENGTH=new e("…").length},e.em_snippet=function(t,n,r){return null==n&&(n=50),null==r&&(r=.75),new e(t.toString()).snippet(n,r).toString()},e.prototype.widthInfo=function(){for(var e={"-1":0},t=0,n=this.s.length,r=0<=n;r?tn;r?t++:t--)e[t]=e[t-1]+this.ems(this.s.charAt(t));return e},e.prototype.findSpot=function(e){var t;if(!e)return 0;for(var n=0,r=this.s.length;n<=r;){t=Math.floor(n/2+r/2);var o=this.info[t-1];if(o>e)r=t-1;else{if(!(ot?n:t},e.prototype.ems=function(t){var n=t.charCodeAt(0),r=e.CODEPOINT_TO_WIDTH[n];return r?r/Math.pow(10,e.ACCURACY):768<=n&&n<=879?0:65377<=n&&n<=65500?.58:11904<=n&&n<=40911||44032<=n&&n<=55215||4352<=n&&n<=4607||63744<=n&&n<=64255||65280<=n&&n<=65535||131072<=n&&n<=196607?1.08:.65},e.prototype.substr=function(t,n){var r=this.findSpot(t);if(null!=n){var o=this.findSpot(t+n);if(o-r0&&"."===e[0],r=e.indexOf(".")<0;n&&(r=t.length<=2);var o=t.pop();return o&&!r?{name:t.join("."),ext:o}:{name:e,ext:""}}function o(e){return r(e).ext.toLowerCase()}function i(e){return e.split("/").slice(0,-1).join("/")||"/"}Object.defineProperty(t,"__esModule",{value:!0}),t.normalize=n,t.paths_are_equal=function(e,t){return n(e).toLowerCase()===n(t).toLowerCase()},t.inSameDirectory=function(e){if(!e.length)return!1;var t=i(e[0]);return!e.find((function(e){return i(e)!==t}))},t.inSubDirectory=function(e,t){var r=(e=n(e)).split("/"),o=(t=n(t)).split("/");if(o.length<=r.length)return!1;for(var i=0;i",{class:"outer-progress-bar"}).css({width:n}),i=r.default("
",{class:"inner-progress-bar",id:"pb_"+e}).css({width:n}),s=r.default("
",{class:"under-pb progress-bar"}).css({width:n}),a=r.default("
",{class:"over-pb progress-bar",id:"pb_"+e+"_over"}).css({display:"none"}),u=r.default("
",{class:"pb-percentage",id:"pb_"+e+"_upct"}).css({width:n}),l=r.default("
",{class:"pb-percentage",id:"pb_"+e+"_opct"}).css({width:n});return s.append(u),a.append(l),i.append(s),i.append(a),o.append(i),a.data("progress-width",t),o},a=function(e,t){var n=r.default("#pb_"+e+"_over");if(n){var o=t.split("/").map(Number);t=o.length>1?o[0]/o[1]:o[0],t=isNaN(t)?0:t;var i=100*Math.min(t,1),s=String(i)+"%";return n.show(),n.css({backgroundColor:"#348DD3",overflow:"hidden",width:s})}},u={complete:{},handled:function(e){if(!e)return!1;var t=!!u.complete[e];return u.complete[e]=!0,t},peek:function(e){return!!e&&!!u.complete[e]}};t.Job=u;var l={show:function(e){if(e){var t,n;t=o.DBModalStack.top(),n=function(e){return e.hide()},null!=t&&n(t);var a=r.default("body"),u=r.default("
",{id:"modal-progress-overlay"});if(u.hide(),u.appendTo(a),r.default("#browse-box").length?i.clone_position(u,r.default("#browse-box")):r.default("#gallery-view-media").length?i.clone_position(u,r.default("#gallery-view-media")):u.css({position:"fixed",width:"100%",height:"100%"}),u.width()){var l=r.default("
",{id:"modal-progress-content"}),c=r.default("
",{id:"modal-progress-container"}),d=r.default("
",{id:"modal-progress-bar",opacity:1,html:s("modal-progress",150,"")}),_=r.default("
",{id:"modal-progress-text",text:e});return l.hide(),c.append(d,_),l.append(c),a.append(l),u.fadeTo(250,.7),l.fadeIn(250)}}},update:function(e){if(!(e.indexOf("progress")>-1&&(e=e.substring("progress".length),isNaN(e))))return a("modal-progress",e)},hide:function(){return r.default("#modal-progress-overlay").fadeOut(250,(function(){return r.default("#modal-progress-overlay").remove()})),r.default("#modal-progress-content").fadeOut(250,(function(){return r.default("#modal-progress-content").remove()}))}};t.ModalProgress=l})),define("modules/clean/keycode",["require","exports"],(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),(function(e){e[e.A=65]="A",e[e.C=67]="C",e[e.F=70]="F",e[e.P=80]="P",e[e.V=86]="V",e[e.BACKSPACE=8]="BACKSPACE",e[e.TAB=9]="TAB",e[e.ENTER=13]="ENTER",e[e.SHIFT=16]="SHIFT",e[e.CONTROL=17]="CONTROL",e[e.ALT=18]="ALT",e[e.ESC=27]="ESC",e[e.SPACE=32]="SPACE",e[e.PAGE_UP=33]="PAGE_UP",e[e.PAGE_DOWN=34]="PAGE_DOWN",e[e.END=35]="END",e[e.HOME=36]="HOME",e[e.LEFT=37]="LEFT",e[e.UP=38]="UP",e[e.RIGHT=39]="RIGHT",e[e.DOWN=40]="DOWN",e[e.INSERT=45]="INSERT",e[e.DELETE=46]="DELETE",e[e.TWO_KEY=50]="TWO_KEY",e[e.EQUALS=61]="EQUALS",e[e.COMMAND=91]="COMMAND",e[e.PLUS_EQUALS_FF=107]="PLUS_EQUALS_FF",e[e.MINUS_FF=109]="MINUS_FF",e[e.F1=112]="F1",e[e.F2=113]="F2",e[e.F3=114]="F3",e[e.F4=115]="F4",e[e.F5=116]="F5",e[e.F6=117]="F6",e[e.F7=118]="F7",e[e.F8=119]="F8",e[e.F9=120]="F9",e[e.F10=121]="F10",e[e.F11=122]="F11",e[e.F12=123]="F12",e[e.PLUS_EQUALS_FF_GERMAN=171]="PLUS_EQUALS_FF_GERMAN",e[e.MINUS_FF_MAC=173]="MINUS_FF_MAC",e[e.PLUS_CHROME=187]="PLUS_CHROME",e[e.MINUS_CHROME=189]="MINUS_CHROME",e[e.FORWARD_SLASH=191]="FORWARD_SLASH",e[e.AT_SIGN=64]="AT_SIGN",e[e.PROCESSING=229]="PROCESSING"})(t.KeyCode||(t.KeyCode={}))})),define("modules/clean/static_urls",["require","exports","modules/constants/env","modules/core/exception","modules/core/uri"],(function(e,t,n,r,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.static_url=function(e){return r.assert(0===e.indexOf("/static/"),"#{path} is not a /static url"),new o.URI({scheme:"https",authority:n.STATIC_CONTENT_HOST,path:e}).toString()}})),define("modules/clean/storage",["require","exports"],(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=(function(){function e(){this.storage={}}return e.prototype.clear=function(){this.storage={}},e.prototype.getItem=function(e){return this.storage[e]},e.prototype.key=function(e){return Object.keys(this.storage)[e]},e.prototype.removeItem=function(e){delete this.storage[e]},e.prototype.setItem=function(e,t){this.storage[e]=t},e})();t.MemoryStorage=n;var r=(function(){function e(e){this.initFn=e}return Object.defineProperty(e.prototype,"storage",{get:function(){return this.initFn&&(this._storage=(function(e){var t;try{t=e()||new n}catch(e){t=new n}try{var r="__storage_test__";return t.setItem(r,r),t.removeItem(r),t}catch(e){return t&&i(e)?t:new n}})(this.initFn),delete this.initFn),this._storage},enumerable:!0,configurable:!0}),e.prototype.get=function(e){if(this.storage){var t=this.storage.getItem(e);return t?JSON.parse(t):t}},e.prototype.set=function(e,t){if(this.storage)try{return null===t?this.delete(e):this.storage.setItem(e,JSON.stringify(t))}catch(e){if(i(e))return;throw e}},e.prototype.delete=function(e){return this.storage?this.storage.removeItem(e):void 0},e.prototype.reset=function(){return this.storage?this.storage.clear():void 0},e})();t.BrowserStorage=r;var o=(function(){function e(e){this.idPrefix="userId:",this.browserStorage=e}return e.prototype.get=function(e,t){return this.browserStorage.get(this.formatKey(e,t))},e.prototype.set=function(e,t,n){return this.browserStorage.set(this.formatKey(e,t),n)},e.prototype.clearOtherUsers=function(e){var t=this;Object.keys(this.browserStorage.storage).map((function(n){if(n.startsWith(t.idPrefix)){var r=n.substring(t.idPrefix.length,n.indexOf("."));e.includes(Number(r))||t.browserStorage.delete(n)}}))},e.prototype.delete=function(e,t){return this.browserStorage.delete(this.formatKey(e,t))},e.prototype.formatKey=function(e,t){return""+this.idPrefix+e+"."+t},e})();function i(e){return e instanceof DOMException&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)}t.SessionStorage=new r((function(){return window.sessionStorage})),t.LocalStorage=new r((function(){return window.localStorage})),t.UserLocalStorage=new o(t.LocalStorage)})),define("modules/clean/user",["require","exports"],(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=(function(){function e(e){Object.assign(this,e)}return e.prototype.toString=function(){return String(this.id)},e})();t.mkUser=function(e){return new n(e)}})),define("modules/clean/ux_analytics",["require","exports","modules/clean/ux_analytics/lazy_ux_analytics","modules/clean/ux_analytics/ux_variants"],(function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function o(){return(new Date).getTime()}function i(){var e=document.documentElement;return(window.pageYOffset||e.scrollTop)-(e.clientTop||0)}function s(e){return void 0===e&&(e=window),e.location.href}function a(){var e,t={},n=(void 0===e&&(e=window),e.location.search);if(n.length)for(var r=0,o=n.substring(1).replace(/&/g,"&").split("&");r-1}));if(t)return t.replace("db-modal-custom-","")}return e.id},this.trackModalShow=function(){var e=document.querySelectorAll(n.modalClass),t=Array.from(e).find((function(e){return"none"!==window.getComputedStyle(e).display||e.classList.contains("clean-react-modal")||e.classList.contains("uxa-modal-tracking-span")}));t&&(n.currentModalId=n._modalIdSanitizer(t)||"n/a -- file bug to retain-expand",n.logModal(m.modalOpen,n.currentModalId))},this.trackModalHide=function(){n.currentModalId&&(n.logModal(m.modalClose,n.currentModalId),n.currentModalId=null)},this.cleanSessionStorage();var r=p.get(x)||t.previousUrl;p.set(x,s()),this.requestId=t.requestId,this.orgReferrer=t.orgReferrer,this.httpReferrer=t.httpReferrer,this.previousUrl=r,this.visitId=p.get(b),this.requestSeq=0,this.logger=e,void 0!==t.delayed_link_click_logging?this.delayedLinkClickLogging=t.delayed_link_click_logging:this.delayedLinkClickLogging=!0,void 0!==t.modal_class?this.modalClass=t.modal_class:this.modalClass=".uxa-modal",this.initTime=o(),this.startHeartbeat(),setTimeout(this.delayedInit,200)}return e.initialize=function(t,n,r){if(void 0===r&&(r=null),null===e.singleton)e.singleton=new e(t,n);else if(r){[["requestId",n.requestId,e.singleton.requestId],["orgReferrer",n.orgReferrer,e.singleton.orgReferrer],["httpReferrer",n.httpReferrer,e.singleton.httpReferrer],["configs.delayed_link_click_logging",n.delayed_link_click_logging,e.singleton.delayedLinkClickLogging],["configs.modal_class",n.modal_class,e.singleton.modalClass]].forEach((function(e){var t=e[0],n=e[1],o=e[2];void 0!==n&&n!==o&&r(new Error("UX Analytics initialize overload attempt; "+t+" '"+n+"' !== '"+o+"'"))}))}return e.singleton},e.prototype.setupListeners=function(){var e=this;window.addEventListener("scroll",(function(e,t,n){void 0===n&&(n={});var r=null,i=0;return function(){var s=o();i||!1!==n.leading||(i=s);var a=t-(s.valueOf()-i.valueOf()),u=arguments;if(a<=0||a>t)r&&(clearTimeout(r),r=null),i=s,e.apply(null,u),u=null;else if(!r&&!1!==n.trailing){var l=function(){i=!1===n.leading?0:o(),r=null,e.apply(null,u),u=null};r=setTimeout(l,a)}}})(this.trackScrolling,2e3,{leading:!0})),window.addEventListener("pageshow",this.handlePageShow),window.addEventListener("unload",this.handlePageClose),document.body.addEventListener("mousedown",this.handleMousedown),document.body.addEventListener("keydown",this.handleKeyboardEnter),document.addEventListener("modalOpened",this.trackModalShow),document.addEventListener("modalClosed",this.trackModalHide),window.addEventListener(t.UXA_HISTORY_CHANGE_EVENT,this.onHistoryChange),document.addEventListener(t.UXA_VIEW_UPDATE_EVENT,(function(t){return e.logViewUpdate(t)})),n.uxaIsListening()},e.prototype.cleanSessionStorage=function(){var e=(new Date).getTime(),t=p.get(b),n=p.get(S);null===t?p.set(b,_()):null!==n&&e-n>=18e5&&(p.remove(x),p.set(b,_())),p.set(S,e)},e.prototype.logPageView=function(){this.logEvent(this.createEvent(m.pageView))},e.prototype.logModal=function(e,t){var n={modal:t};this.logOnPage(e,n,!0)},e.prototype.logViewUpdate=function(e){var t=e.detail,n={view:t.viewId,view_step:t.viewStep};this.logOnPage("view_update",n,!0)},e.prototype.logDelayedClickEvent=function(){if(!p.isEnabled())return null;var e=p.get(y);if(e)try{e.destination_url=s();var t={eventName:m.linkClick,extra:e};this.logEvent(t),p.remove(y)}catch(e){}return null},e.prototype.logOnPage=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n=!1);var r=this.getTimeOnPage();t.vertical_offset=t.vertical_offset||i(),t.time_on_page=t.time_on_page||r,(r<600||n)&&this.logEvent(this.createEvent(e,t))},e.prototype.logEvent=function(e){try{if(-1===v.indexOf(e.eventName))throw new Error("UXAnalytics.log: trying to log an invalid event ("+e.eventName+")");r.addMatchedVariantsToEvent(e),e.eventName===m.finalHeartbeat?this.logger.log(e.eventName,e.extra,!0):this.logger.log(e.eventName,e.extra,!1)}catch(e){throw e}},e.prototype.createEvent=function(e,t){if(void 0===t&&(t={}),this.orgReferrer&&(t.org_referrer=this.orgReferrer),this.visitId&&(t.visit_id=this.visitId),t.request_seq=this.requestSeq,this.httpReferrer&&(t.http_referrer=this.httpReferrer),this.previousUrl&&(t.previous_url=this.previousUrl),t.request_id=t.request_id||this.requestId,t.url=t.url||s(),t.uxa_v=2.2,this.trackingParams)for(var n=0,r=Object.keys(this.trackingParams);n1?n.find((function(e){return e.indexOf("modal")>-1}))||t[0]+"-modal":t.indexOf("modal")>-1?t:t+"-modal"}}})),define("modules/clean/viewer",["require","exports","tslib","modules/constants/viewer","modules/core/exception","modules/clean/user"],(function(e,t,n,r,o,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=(function(){function e(e){void 0===e&&(e={}),this.replace_viewer_data(e)}return e.get_viewer=function(){return e._cached_viewer},e.get_role_title=function(e){return this.get_viewer().get_title_by_role(e.role)},e.get_root_name=function(e){return this.get_viewer().get_root_name_by_role(e.role)},e.get_is_signed_in=function(e){return e.is_signed_in},e.prototype.replace_viewer_data=function(e){void 0===e&&(e={}),this._authed_users={},this._all_users={};for(var t=e._user_data||[],n=0,r=t;n0,this.is_paired=t.length>1,e.deprecated_first_user_in_the_cookie_id&&(this.deprecated_first_user_in_the_cookie=this.get_user_by_id(e.deprecated_first_user_in_the_cookie_id)),this._load_cached_users()},e.prototype.get_user_by_role=function(e,t){var n=this.get_uid_by_role(e);return null!=n?this.get_user_by_id(n,t):void 0},e.prototype.role_exists=function(e){return null!=this.get_uid_by_role(e)},e.prototype.get_user_by_id=function(e,t){o.assert(this.is_uid_associated(e),"User "+e+" is not associated with this viewer");var n=(t?this._all_users:this._authed_users)[e];return o.assert(!!n,"User "+e+" is not signed in"),n},e.prototype.is_role_signed_in=function(e){var t=this.get_uid_by_role(e);return null!=t&&t in this._authed_users},e.prototype.is_uid_signed_in=function(e){return e in this._authed_users},e.prototype.is_user_signed_in=function(e){return null!=e&&this.is_uid_signed_in(e.id)},e.prototype.is_uid_associated=function(e){return e in this._all_users},e.prototype.get_users=function(e){var t=e?this._all_users:this._authed_users,n=Object.keys(t).map((function(e){return t[e]}));return n.sort((function(e,t){return"personal"===e.role?-1:1})),n},e.prototype.get_user_ids=function(e){return this.get_users(e).map((function(e){return e.id}))},e.prototype.get_roles=function(e){return this.get_users(e).map((function(e){return e.role}))},e.prototype.get_account_ids=function(e){return this.get_users(e).map((function(e){return e.account_id}))},e.prototype.get_email_by_role=function(e){var t=this.get_user_by_role(e,!0);return t&&t.email},e.prototype.get_uid_by_role=function(e){for(var t in"photos"===e&&(e=this.is_paired||!this.is_signed_in?"personal":this._all_users[Object.keys(this._all_users)[0]].role),this._all_users)if(this._all_users.hasOwnProperty(t)){var n=this._all_users[t];if(n.role===e)return n.id}},e.prototype.get_title_by_role=function(e){return"work"===e?this.team_name:this.is_paired?r.PERSONAL_ROLE_STRING:""},e.prototype.get_root_name_by_role=function(e){return this.get_title_by_role(e)||r.DEFAULT_ROOT_NAME},e.prototype._sign_in_all_users=function(){this._authed_users=n.__assign({},this._all_users),this._load_cached_users()},e.prototype._sign_out_user_by_id=function(e){delete this._authed_users[e],this._load_cached_users()},e.prototype.sign_in_user_by_id=function(e){o.assert(this.is_uid_associated(e),"User "+e+" is not associated with this viewer"),this._authed_users[e]=this._all_users[e],this._load_cached_users()},e.prototype._load_cached_users=function(){this.personal_user=this._authed_users[this.get_uid_by_role("personal")],this.photos_user=this._authed_users[this.get_uid_by_role("photos")],this.work_user=this._authed_users[this.get_uid_by_role("work")],this.personal_email=this.get_email_by_role("personal"),this.work_email=this.get_email_by_role("work"),this.is_personal_user_signed_in=this.is_role_signed_in("personal"),this.is_photos_user_signed_in=this.is_role_signed_in("photos"),this.is_work_user_signed_in=this.is_role_signed_in("work")},e._cached_viewer=new e(r._viewer_properties),e})();t.Viewer=s})),define("modules/core/accessible_announce",["require","exports","tslib","jquery","purify","modules/clean/css"],(function(e,t,n,r,o,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r=n.__importDefault(r),o=n.__importStar(o);var s=(function(){function e(){}return e.polite=function(e,t){return void 0===t&&(t=10),this.announce("polite",e,t)},e.assertive=function(e,t){return void 0===t&&(t=10),this.announce("assertive",e,t)},e.clear=function(){return this.lastTimeout&&clearTimeout(this.lastTimeout),r.default("#accessible-announce").html("").attr("aria-live","off")},e.announce=function(e,t,n){var o=this;return void 0===n&&(n=10),i.require_css("/static/css/accessibility-vfliGZNRm.css",(function(){return r.default("#accessible-announce").length?(o.setMessage(t,e),o.scheduleClear(n)):(r.default("body").append("
"),setTimeout((function(){return o.setMessage(t,e),o.scheduleClear(n)}),o.TIMEOUT_LENGTH))}))},e.setMessage=function(e,t){this.clear();var n=r.default("#accessible-announce");n.attr("aria-live",t),e.toHTML?n.html(o.sanitize(e.toHTML())):"string"==typeof e?n.text(e):e instanceof r.default&&n.html(o.sanitize(e.html()))},e.scheduleClear=function(e){return this.lastTimeout=setTimeout(this.clear,1e3*e)},e.TIMEOUT_LENGTH=50,e})();t.AccessibleAnnounce=s})),define("modules/core/browser",["require","exports","tslib","modules/constants/env","modules/core/exception","modules/core/uri"],(function(e,t,n,r,o,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=(r=n.__importStar(r)).REDIRECT_SAFE_ORIGINS;function a(e){return void 0===e&&(e=window),e.location.href}t.get_href=a,t.get_pathname=function(e){return void 0===e&&(e=window),e.location.pathname},t.get_hostname=function(e){return void 0===e&&(e=window),e.location.hostname},t.get_uri=function(e){return void 0===e&&(e=window),i.URI.parse(a(e))},t.get_hash=function(){return window.location.hash.split("#")[1]},t.get_href_no_hash=function(){return a().split("#")[0]},t.set_hash=function(e){window.location.hash=e},t.mockableInternalMethods={_navigate:function(e,t){void 0===t&&(t=window),t.location.href=e},_parse_target:function(e,t){var n=void 0===t?{}:t,r=n.target_window,a=void 0===r?window:r,u=n.checkDomainWhitelist,l=void 0===u||u,c=n.httpsOnly,d=void 0===c||c,_=a.document.createElement("a");e instanceof i.URI?_.href=e.toString():_.href=e;var f=_.protocol||a.location.protocol;":"===_.protocol&&(f=a.location.protocol);var p=_.hostname||a.location.hostname,h=_.port||a.location.port;"443"===h&&"https:"===f&&(h=""),l&&o.assert(!h,"Non-default port not legal when checking the whitelist.");var g=0===_.pathname.indexOf("/")?_.pathname:"/"+_.pathname;d?o.assert("https:"===f,"Target URI must be secure"):o.assert("data:"!==f&&"javascript:"!==f&&"vbscript:"!==f,"Target URI can't use the data or javascript scheme"),l&&o.assert(s.indexOf(p)>-1,"Target URI must be in the domain whitelist");var m=p;return h&&(m=m+":"+h),e=f+"//"+m+g+_.search+_.hash}},t.open_tab=function(e,n){void 0===n&&(n=!1);var r=t.mockableInternalMethods._parse_target(e),o=window.open(r,"_blank");return n?o:null},t.unsafe_open_tab=function(e){return e=t.mockableInternalMethods._parse_target(e,{checkDomainWhitelist:!1,httpsOnly:!1}),window.open(e,"_blank")},t.open_mail=function(e,t){void 0===t&&(t="_blank"),o.assert(e.startsWith("mailto:"),"Mailto link is malformed."),window.open(e,t)};var u=[];function l(){return window.performance||null}t.onBrowserRedirect=function(e){u.push(e)},t.redirect=function(e,n){void 0===n&&(n=window);for(var r="string"==typeof e?e:e.toString(),o=0,i=u;o=n:Boolean(e)&&parseInt(t.version,10)<=n}function a(e){void 0===e&&(e=navigator.userAgent);var n=(e||"").toLowerCase();return t.ipod||t.iphone||-1!==n.indexOf("tizen")||-1!==n.indexOf("android")&&-1!==n.indexOf("mobile")||-1!==n.indexOf("bb10")||-1!==n.indexOf("netfront")||/windows phone|opera mini|blackberry|nokia/.test(n)||-1!==n.indexOf("firefox")&&-1!==n.indexOf("mobile")||-1!==n.indexOf("googlebot-mobile")||-1!==n.indexOf("iemobile")||-1!==n.indexOf("opera mobi")||/ucweb|ucbrowser/.test(n)||-1!==n.indexOf("microsoft office mobile")}function u(e){void 0===e&&(e=navigator.userAgent);var t=(e||"").toLowerCase();return-1!==t.indexOf("android")||-1!==t.indexOf("silk")}function l(e){return void 0===e&&(e=navigator.userAgent),t.ipad||u(e)&&!a(e)}t.ipad="ipad"===i.browser||void 0,t.chrome="chrome"===i.browser||void 0,t.safari=!("webkit"!==i.browser&&!Boolean(t.ipad))||void 0,t.opera="opera"===i.browser||void 0,t.msie="msie"===i.browser||void 0,t.edge="edge"===i.browser||"edg"===i.browser,t.edgeChromium=function(){return"edg"===r().browser},t.chromium=function(){return Boolean(t.chrome)||t.edgeChromium()},t.mozilla="mozilla"===i.browser||void 0,t.webkit=!("webkit"!==i.browser&&!Boolean(t.ipad)&&!Boolean(t.chrome))||void 0,t.mac=Boolean(/(macintosh)/.exec(navigator.userAgent.toLowerCase())),t.windows=/win(16|nt|dows)/.test(navigator.userAgent.toLowerCase()),t.windowsInfo=n(navigator.userAgent.toLowerCase(),t.windows),t.iphone=Boolean(/(iphone)/.exec(navigator.userAgent.toLowerCase())),t.ipod=Boolean(/(ipod)/.exec(navigator.userAgent.toLowerCase())),t.iOS=t.ipad||t.ipod||t.iphone,t.browser_name=i.browser,t.version=i.version,t.userAgent=i.userAgent,t.plugins=o(),t.pluginNames=t.plugins.map((function(e){return e.name})),t.msie_version_at_most=function(e){return s(t.msie,e,!1)},t.is_high_density_display=function(){if(window.matchMedia){return Boolean(window.matchMedia("(-webkit-min-device-pixel-ratio: 1.1), (min-resolution: 192dpx), (min-resolution: 1.1dppx)").matches)}return!1},t.isOnline=function(){return navigator.onLine},t.subscribeConnectivityStatusChange=function(e){window.addEventListener("online",e),window.addEventListener("offline",e)},t.unsubscribeConnectivityStatusChange=function(e){window.removeEventListener("online",e),window.removeEventListener("offline",e)},t.checkBrowserVersion=s,t.is_supported_mobile_browser=a,t.is_android=u,t.is_tablet=l,t.is_mobile_or_tablet=function(e){return void 0===e&&(e=navigator.userAgent),a(e)||l(e)},t.is_input_webkitdirectory_supported=function(){return"webkitdirectory"in document.createElement("input")},t.INTERNAL_FILE_DATA_TRANSFER_TYPE=t.msie?"text":t.edge?"text/plain":"application/x-dropbox-file-list"})),define("modules/core/dom",["require","exports","tslib","jquery","modules/clean/keycode"],(function(e,t,n,r,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r=n.__importDefault(r);t.is_element=function(e){return!!e&&(1===e.nodeType||e.length>=1&&1===e[0].nodeType)},t.focus_in_input=function(){return t.is_input(document.activeElement)},t.is_input=function(e){return null!=e&&(["INPUT","TEXTAREA","SELECT"].includes(e.tagName)&&!(e.type in["submit","button"])||t.is_content_editable(e))},t.is_content_editable=function(e){return null!=e&&(e.hasAttribute&&e.hasAttribute("contenteditable")&&"false"!==e.getAttribute("contenteditable").toLowerCase())},t.viewport_offset=function(e){var t=r.default(e).offset(),n=r.default(window);return{left:t.left-n.scrollLeft(),top:t.top-n.scrollTop()}};var i=null,s=null;t.viewport_dimensions=function(){return i||(i={height:r.default(window).height(),width:r.default(window).width()}),s||(s=r.default(window).on("resize",(function(){return i=null}))),i},t.document_height=function(){return Math.max(r.default(document).height(),r.default(window).height(),document.documentElement.clientHeight)};var a=null,u=null,l=0,c=null;t.scroll_offsets=function(){var e,n;return a||(a=r.default(window).scroll((function(){return u=null}))),t.is_page_scrollable()?u||(n=r.default(window).scrollTop(),e=r.default(window).scrollLeft(),u={0:e,1:n,left:e,top:n}):(n=c.top,e=c.left,u={0:e,1:n,left:e,top:n}),u},t.scroll_clear_cache=function(){return u=null},t.is_page_scrollable=function(){return!r.default(document.documentElement).hasClass("no-scroll")},t.scroll_lock_document=function(){l++;var e=r.default(document.documentElement);if(!e.hasClass("no-scroll")){var n=-1*(c=t.scroll_offsets()).top+"px",o=-1*c.left+"px";e.css({top:n,left:o}),e.addClass("no-scroll")}},t.scroll_unlock_document=function(){l>0&&l--;var e=r.default(document.documentElement);if(0===l&&e.hasClass("no-scroll")&&c){var n=c.top,o=c.left;e.css({top:"",left:""}),e.removeClass("no-scroll"),t.scroll_to(o,n+1),t.scroll_to(o,n-1),t.scroll_to(o,n)}},t.scroll_to=function(e,n){if(e=Math.max(e,0),(n=Math.max(n,0))>t.scroll_offsets().top&&(n=Math.min(n,t.document_height()-t.viewport_dimensions().height)),t.is_page_scrollable())window.scrollTo(e,n),u={0:e,1:n,left:e,top:n};else{c={0:e,1:n,left:e,top:n};var o=-1*n+"px",i=-1*e+"px";r.default(document.documentElement).css({top:o,left:i})}},t.clone_position=function(e,n,o){var i=r.default(n),s=r.default(e),a=r.default.extend({},{setLeft:!0,setTop:!0,setWidth:!0,setHeight:!0,offsetTop:0,offsetLeft:0},o),u=t.viewport_offset(i),l={top:0,left:0},c=null;if("absolute"===s.css("position")&&(c=s.offsetParent(),l=t.viewport_offset(c)),c&&c[0]===document.body&&(l.left-=document.body.offsetLeft,l.top-=document.body.offsetTop),a.setLeft){var d=u.left-l.left+a.offsetLeft+"px";s.css("left",d)}if(a.setTop){var _=u.top-l.top+a.offsetTop+"px";s.css("top",_)}return a.setWidth&&s.width(i[0].offsetWidth),a.setHeight&&s.height(i[0].offsetHeight),s},t.getFocusableElementsIn=function(e,t){var n=r.default(e).find("a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable]").filter((function(){return!!(this.offsetWidth&&this.offsetHeight||this.getClientRects().length)}));return t?n.not('*[tabindex="-1"]'):n},t.getTabbableElementsIn=function(e){var n=t.getFocusableElementsIn(e,!0),r=n.filter('*:not([tabindex]), *[tabindex="0"]'),o=n.not(r).toArray();if(!o.length)return r.toArray();return o.sort((function(e,t){return parseInt(e.getAttribute("tabindex"),10)-parseInt(t.getAttribute("tabindex"),10)})),o.concat(r.toArray())},t.keepFocusIn=function(e,n,r){if(n.which===o.KeyCode.TAB){var i=t.getTabbableElementsIn(e);if(i.length){var s=i.indexOf(n.target);if(-1!==s)n.shiftKey?0===s?(n.preventDefault(),i[i.length-1].focus()):r&&i[s-1]&&(n.preventDefault(),i[s-1].focus()):s===i.length-1?(n.preventDefault(),i[0].focus()):r&&i[s+1]&&(n.preventDefault(),i[s+1].focus());else{n.preventDefault();var a=t.getFocusableElementsIn(e).toArray();n.shiftKey&&a.reverse();var u=a.indexOf(n.target);if(-1===u)i[0].focus();else{for(var l=null,c=0,d=a.slice(u);c=0&&n-t<=window.innerHeight}})),define("modules/core/html",["require","exports","tslib","external/lodash","jquery","modules/clean/global_constants"],(function(e,t,n,r,o,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r=n.__importStar(r),o=n.__importDefault(o);var s=/[^\w@\.\ \-\(\)\,\$~%#\[\]\{\}\!\^]/g,a=function(e){return"&#"+e.charCodeAt(0)+";"},u=function(e){return(""+e).replace(s,a)},l=(function(){function e(e){this._str_DONT_TOUCH=e}return e.prototype.toHTML=function(){return this._str_DONT_TOUCH},e.prototype.toString=function(){return"[object HTML]"},e.tmpl=function(t,n){if(!/[^\w:.-]/.test(t)){var s=document.getElementById(t);t=s.innerHTML,i.GlobalConstants.CSP_SCRIPT_NONCE!==(s.nonce||s.getAttribute("nonce"))&&(t="")}var a=t.replace(/[\r\t\n]/g," ").replace(/'(?=[^%]*%>)/g,"\t").split("'").join("\\'").split("\t").join("'").replace(/<%=(.*?)%>/g,"',__no_conflict_HTML__._raw_escape($1),'").split("<%").join("');").split("%>").join("p.push('"),u=new Function("__no_conflict_HTML__","__no_conflict_jQuery__","TEMPLATE_DATA","var p=[],print=function(){p.push.apply(p,arguments);}; p.push('"+a+"'); return new __no_conflict_HTML__(__no_conflict_jQuery__.trim(p.join('')));"),l=r.partial(u,e,o.default);return n?l(n):l},e.escape=function(t){return t instanceof e?t:new e(u(t))},e._raw_escape=function(t){return t instanceof e?t.toHTML():"number"==typeof t?t:u(t)},e})();t.HTML=l})),define("modules/core/notify",["require","exports","tslib","jquery","modules/core/accessible_announce"],(function(e,t,n,r,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r=n.__importDefault(r);var i=(function(){function e(){}return e.success=function(e,t,n){return void 0===t&&(t=10),o.AccessibleAnnounce.polite(e,t+1),this._show(e,t,"server-success",n),this.current()},e.error=function(e,t,n){return void 0===t&&(t=10),o.AccessibleAnnounce.assertive(e,t+1),this._show(e,t,"server-error",n),this.current()},e.warning=function(e,t,n){return void 0===t&&(t=10),o.AccessibleAnnounce.polite(e,t+1),this._show(e,t,"server-warning",n),this.current()},e.info=function(e,t,n){return void 0===t&&(t=10),o.AccessibleAnnounce.polite(e,t+1),this._show(e,t,"server-info",n),this.current()},e.clear=function(){this._last_timeout&&clearTimeout(this._last_timeout),this._last_animation&&this._last_animation.stop(),this._last_timeout=null,this._last_animation=null,r.default("#notify").removeClass("server-error server-info server-success server-warning").hide()},e.isShown=function(){return r.default("#notify").is(":visible")},e.current=function(){return this._last_timeout},e._show=function(e,t,n,r){return this._buildElement(),this.clear(),this._setMessage(e),this._showElement(n),this._scheduleHide(t,r),this.current()},e._buildElement=function(){if(!r.default("#notify").length){r.default("body").append('
'),r.default(".maestro .has-top-notification").length&&r.default("#notify-wrapper").addClass("with-top-notification")}},e._setMessage=function(e){var t=r.default("#notify-msg");e.toHTML?t.html(e.toHTML()):"string"==typeof e?t.text(e):e instanceof r.default&&(t.empty(),t.append(e))},e._showElement=function(e){var t=r.default("#notify");t.addClass(e),this._last_animation=t.fadeIn(500)},e._scheduleHide=function(e,t){this._last_timeout=setTimeout(this._hide(t),1e3*e)},e._hide=function(e){var t=this;return function(){var n=r.default("#notify");return t._last_animation=n.fadeOut(1e3),e&&e(),t._last_timeout=null}},e})();t.Notify=i})),define("modules/core/uri",["require","exports","modules/core/exception"],(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=/^(?:([^:\/\\?#]+):)?(?:[\/\\]{2}([^\/\\?#]*))?([^?#]*)(?:\?([^#]*))?(?:[#](.*))?$/,o=/^[a-zA-Z][a-zA-Z0-9+.\-]*$/,i=(function(){function e(e){void 0===e&&(e={}),this.dict={},this.add(e)}return e.parseString=function(t){if(!t)return{};var n={};return t.split("&").forEach((function(t){if(""!==t){var r=t.split("="),o=e.decode(r[0]),i=e.decode(r.slice(1).join("="));if(n.hasOwnProperty(o)){var s=n[o];"string"==typeof s&&(n[o]=[s]),n[o].push(i)}else n[o]=i}})),n},e.prototype.add=function(e,t){if("string"==typeof e)t&&(Array.isArray(t)?this.dict[e]=t.map(String):this.dict[e]=String(t));else for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];null!=r&&(Array.isArray(r)?this.dict[n]=r.map(String):this.dict[n]=String(r))}return this},e.prototype.remove=function(e){return delete this.dict[e],this},e.prototype.replace=function(e){return this.dict=e,this},e.prototype.toString=function(){for(var t=[],n=Object.keys(this.dict).sort(),r=function(n){if(o.dict.hasOwnProperty(n)){var r=o.dict[n];Array.isArray(r)?r.forEach((function(r){t.push(e.encode(n)+"="+e.encode(r))})):t.push(e.encode(n)+"="+e.encode(r))}},o=this,i=0,s=n;i