(function(e,t){if("function"==typeof define&&define.amd)define("Reselect",["exports"],t);else if("undefined"!=typeof exports)t(exports);else{var r={exports:{}};t(r.exports),e.Reselect=r.exports}})(this,(function(e){"use strict";function t(e,t){return e===t}function r(e,t,r){if(null===t||null===r||t.length!==r.length)return!1;for(var n=t.length,o=0;o1&&void 0!==arguments[1]?arguments[1]:t,o=null,i=null;return function(){return r(n,o,arguments)||(i=e.apply(null,arguments)),o=arguments,i}}function o(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every((function(e){return"function"==typeof e}))){var r=t.map((function(e){return typeof e})).join(", ");throw new Error("Selector creators expect all input-selectors to be functions, instead received the following types: ["+r+"]")}return t}function i(e){for(var t=arguments.length,r=Array(t>1?t-1:0),i=1;i1&&void 0!==arguments[1]?arguments[1]:u;if("object"!=typeof e)throw new Error("createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);var r=Object.keys(e);return t(r.map((function(t){return e[t]})),(function(){for(var e=arguments.length,t=Array(e),n=0;n=500?l:e);var c={raw:{status:t,responseBody:u},summary:null,error:{},headers:r};try{var p=JSON.parse(u)||{};c.error=p.error,c.summary=p.error_summary,a=null!=p.user_message?p.user_message.text:""}catch(e){}429!==t||a||(a=o._('Folder updates in progress — please try again later.\nLearn more'));var f=void 0;return a&&(f=new n.HTML(a)),i.assignIn(new s(f),c)},e})();t.ApiError=u;var s=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t})(u);t.BadRequestError=s;var a=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t})(u);t.AuthError=a;var c=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t})(u);t.AppError=c;var l=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t})(u);t.ServerError=l;var p=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t})(u);function f(e){return e instanceof u}t.RateLimitError=p,t.isApiError=f,t.isBadRequestError=function(e){return e instanceof s},t.isAuthError=function(e){return e instanceof a},t.isAppError=function(e){return e instanceof c},t.isServerError=function(e){return e instanceof l},t.isRateLimitError=function(e){return e instanceof p},t.catchApiError=function(e){return function(t){if(f(t))return e(t);throw t}};var d={400:s,401:a,409:c,429:p}})),define("modules/clean/api_v2/noauth_client",["require","exports","tslib","modules/clean/api_v2/types","modules/clean/api_v2/client_base","modules/constants/request"],(function(e,t,r,n,o,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=(function(e){function t(t){return e.call(this,t)||this}return r.__extends(t,e),t.prototype._headers=function(e){var t;return r.__assign(((t={})[n.ApiV2HeaderNames.DropboxUid]=String(i.LOGGED_OUT_X_DROPBOX_UID),t),e.headers)},t})(o.ApiV2ClientBase);t.NoAuthApiV2Client=u})),define("modules/clean/api_v2/transport/jquery",["require","exports","tslib","jquery","external/lodash","modules/clean/api_v2/error"],(function(e,t,r,n,o,i){"use strict";function u(e){var t=e.getAllResponseHeaders(),r={};if(t){var n=t.trim().split(/[\r\n]+/).map((function(e){return e.split(": ")}));r=o.zipObject(o.map(n,o.first),o.map(n,(function(e){return null!=e&&e[1]})))}return r}function s(e,t,r,n){return{result:JSON.parse(n.responseText),headers:u(n)}}function a(e){return i.ApiError.parseResponse(e.status,u(e),e.responseText)}Object.defineProperty(t,"__esModule",{value:!0}),n=r.__importDefault(n),o=r.__importStar(o);var c=(function(){function e(){}return e.prototype.executeRpc=function(e,t,r,o){return new Promise((function(i,u){return n.default.ajax({type:"POST",url:e.toString(),contentType:o,headers:t,data:r}).done((function(e,t,r){return i(s(0,0,0,r))})).fail((function(e){return u(a(e))}))}))},e})();t.JQueryAsyncTransport=c;var l=(function(){function e(e){if(e<=0)throw new Error("You passed syncTimeout=${syncTimeout}. syncTimeout must be a positive number");this.syncTimeout=e}return e.prototype.executeRpc=function(e,t,r,o){var i=Promise.resolve(null);return n.default.ajax({type:"POST",url:e.toString(),contentType:o,headers:t,data:r,async:!1,timeout:this.syncTimeout,success:function(e,t,r){i=Promise.resolve(s(0,0,0,r))},error:function(e){i=Promise.reject(a(e))}}),i},e})();t.JQuerySyncTransport=l})),define("modules/clean/api_v2/types",["require","exports","tslib"],(function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),(function(e){e.DropboxApiArg="Dropbox-API-Arg",e.DropboxApiSelectAdmin="Dropbox-API-Select-Admin",e.DropboxPathRoot="X-Dropbox-Path-Root",e.DropboxUid="X-Dropbox-Uid",e.DropboxTeamId="X-Dropbox-Teamid",e.DropboxTeamAuthorization="X-Dropbox-Team-Authorization",e.CsrfToken="X-CSRF-Token"})(t.ApiV2HeaderNames||(t.ApiV2HeaderNames={})),(function(e){e[e.TeamAdminRole=0]="TeamAdminRole",e[e.MTARole=1]="MTARole",e[e.FederationAdminRole=2]="FederationAdminRole"})(t.TeamAuthRequestRole||(t.TeamAuthRequestRole={})),(function(e){e[e.AdminAction=0]="AdminAction",e[e.AssumeAction=1]="AssumeAction",e[e.OnBehalfOfAction=2]="OnBehalfOfAction"})(t.TeamAuthRequestActionType||(t.TeamAuthRequestActionType={}));var n=(function(){function e(e,t,r){this.type=e,this.value=t,this.isScalar=r}return e.parse=function(e){var t=e[".tag"];return 2===Object.keys(e).length&&null!=e[t]?new o(t,e[t]):new i(t,e)},e})();t.Union=n;var o=(function(e){function t(t,r){return void 0===r&&(r=null),e.call(this,t,r,!0)||this}return r.__extends(t,e),t.prototype.toJSON=function(){var e={".tag":this.type};return null!=this.value&&(e[this.type]=this.value),e},t})(n);t.UnionScalar=o;var i=(function(e){function t(t,r){return void 0===r&&(r={}),e.call(this,t,r,!1)||this}return r.__extends(t,e),t.prototype.toJSON=function(){return r.__assign({".tag":this.type},this.value)},t})(n);t.UnionStruct=i})),define("modules/clean/api_v2/user_client",["require","exports","tslib","modules/clean/api_v2/types","modules/clean/api_v2/client_base","modules/clean/viewer"],(function(e,t,r,n,o,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=(function(e){function t(t){return e.call(this,t)||this}return r.__extends(t,e),t.prototype._headers=function(e){var t,o=i.Viewer.get_viewer().get_user_by_id(e.subjectUserId);return r.__assign(((t={})[n.ApiV2HeaderNames.DropboxUid]=String(o.id),t[n.ApiV2HeaderNames.DropboxPathRoot]=String(o.root_ns_id),t),e.headers)},t})(o.ApiV2ClientBase);t.UserApiV2Client=u})),define("modules/clean/query_string_helpers",["require","exports"],(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=["gclid","oqa","trigger","_tk","_camp","_ad","_net","_kw","utm_campaign","utm_content","utm_medium","utm_source","utm_term","cont"];function n(e){return void 0===e&&(e=window),e.location.search}function o(e){var t={};if(e.length)for(var r=0,n=e.substring(1).replace(/&/g,"&").split("&");r');e.toHTML?p.html(e.toHTML()):p.text(e);var f=n.default('