box-ui-elements 22.0.0-beta.1 → 22.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/explorer.css +1 -1
- package/dist/explorer.js +1 -1
- package/dist/openwith.js +1 -1
- package/dist/picker.js +1 -1
- package/dist/preview.css +1 -1
- package/dist/preview.js +1 -1
- package/dist/sharing.js +1 -1
- package/dist/sidebar.js +1 -1
- package/dist/uploader.js +1 -1
- package/es/api/Metadata.js +22 -7
- package/es/api/Metadata.js.flow +25 -7
- package/es/api/Metadata.js.map +1 -1
- package/es/api/utils.js +13 -5
- package/es/api/utils.js.flow +16 -5
- package/es/api/utils.js.map +1 -1
- package/es/elements/common/content-answers/ContentAnswers.js +7 -7
- package/es/elements/common/content-answers/ContentAnswers.js.map +1 -1
- package/es/elements/common/content-answers/ContentAnswersModal.js +0 -2
- package/es/elements/common/content-answers/ContentAnswersModal.js.map +1 -1
- package/es/elements/content-preview/preview-header/PreviewHeader.js +6 -3
- package/es/elements/content-preview/preview-header/PreviewHeader.js.flow +11 -3
- package/es/elements/content-preview/preview-header/PreviewHeader.js.map +1 -1
- package/es/elements/content-preview/preview-header/PreviewHeader.scss +6 -0
- package/es/src/elements/common/content-answers/ContentAnswers.d.ts +2 -1
- package/package.json +1 -1
- package/src/api/Metadata.js +25 -7
- package/src/api/__tests__/Metadata.test.js +21 -7
- package/src/api/__tests__/utils.test.js +30 -1
- package/src/api/utils.js +16 -5
- package/src/elements/common/content-answers/ContentAnswers.tsx +5 -3
- package/src/elements/common/content-answers/ContentAnswersModal.tsx +0 -2
- package/src/elements/content-preview/preview-header/PreviewHeader.js +11 -3
- package/src/elements/content-preview/preview-header/PreviewHeader.scss +6 -0
- package/src/elements/content-preview/preview-header/__tests__/PreviewHeader.test.js +2 -4
package/dist/openwith.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see openwith.js.LICENSE.txt */
|
|
2
|
-
(()=>{var __webpack_modules__={53095:(e,t,r)=>{e.exports=r(44569)},85846:(e,t,r)=>{"use strict";var n=r(40898),i=r(7184),o=r(50310),a=r(81036),s=r(42629),l=r(30902),c=r(27004),u=r(35449),d=r(47345),h=r(20918);e.exports=function(e){return new Promise((function(t,r){var f,p=e.data,m=e.headers,b=e.responseType;function g(){e.cancelToken&&e.cancelToken.unsubscribe(f),e.signal&&e.signal.removeEventListener("abort",f)}n.isFormData(p)&&delete m["Content-Type"];var y=new XMLHttpRequest;if(e.auth){var v=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";m.Authorization="Basic "+btoa(v+":"+w)}var E=s(e.baseURL,e.url);function S(){if(y){var n="getAllResponseHeaders"in y?l(y.getAllResponseHeaders()):null,o={data:b&&"text"!==b&&"json"!==b?y.response:y.responseText,status:y.status,statusText:y.statusText,headers:n,config:e,request:y};i((function(e){t(e),g()}),(function(e){r(e),g()}),o),y=null}}if(y.open(e.method.toUpperCase(),a(E,e.params,e.paramsSerializer),!0),y.timeout=e.timeout,"onloadend"in y?y.onloadend=S:y.onreadystatechange=function(){y&&4===y.readyState&&(0!==y.status||y.responseURL&&0===y.responseURL.indexOf("file:"))&&setTimeout(S)},y.onabort=function(){y&&(r(u("Request aborted",e,"ECONNABORTED",y)),y=null)},y.onerror=function(){r(u("Network Error",e,null,y)),y=null},y.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",n=e.transitional||d.transitional;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(u(t,e,n.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",y)),y=null},n.isStandardBrowserEnv()){var C=(e.withCredentials||c(E))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;C&&(m[e.xsrfHeaderName]=C)}"setRequestHeader"in y&&n.forEach(m,(function(e,t){void 0===p&&"content-type"===t.toLowerCase()?delete m[t]:y.setRequestHeader(t,e)})),n.isUndefined(e.withCredentials)||(y.withCredentials=!!e.withCredentials),b&&"json"!==b&&(y.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&y.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&y.upload&&y.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(f=function(e){y&&(r(!e||e&&e.type?new h("canceled"):e),y.abort(),y=null)},e.cancelToken&&e.cancelToken.subscribe(f),e.signal&&(e.signal.aborted?f():e.signal.addEventListener("abort",f))),p||(p=null),y.send(p)}))}},44569:(e,t,r)=>{"use strict";var n=r(40898),i=r(6654),o=r(28905),a=r(1441),s=function e(t){var r=new o(t),s=i(o.prototype.request,r);return n.extend(s,o.prototype,r),n.extend(s,r),s.create=function(r){return e(a(t,r))},s}(r(47345));s.Axios=o,s.Cancel=r(20918),s.CancelToken=r(87709),s.isCancel=r(7770),s.VERSION=r(78219).version,s.all=function(e){return Promise.all(e)},s.spread=r(27238),s.isAxiosError=r(75657),e.exports=s,e.exports.default=s},20918:e=>{"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},87709:(e,t,r)=>{"use strict";var n=r(20918);function i(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var r=this;this.promise.then((function(e){if(r._listeners){var t,n=r._listeners.length;for(t=0;t<n;t++)r._listeners[t](e);r._listeners=null}})),this.promise.then=function(e){var t,n=new Promise((function(e){r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e){r.reason||(r.reason=new n(e),t(r.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},i.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},i.source=function(){var e;return{token:new i((function(t){e=t})),cancel:e}},e.exports=i},7770:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},28905:(e,t,r)=>{"use strict";var n=r(40898),i=r(81036),o=r(761),a=r(68768),s=r(1441),l=r(89419),c=l.validators;function u(e){this.defaults=e,this.interceptors={request:new o,response:new o}}u.prototype.request=function(e,t){if("string"==typeof e?(t=t||{}).url=e:t=e||{},!t.url)throw new Error("Provided config url is not valid");(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;void 0!==r&&l.assertOptions(r,{silentJSONParsing:c.transitional(c.boolean),forcedJSONParsing:c.transitional(c.boolean),clarifyTimeoutError:c.transitional(c.boolean)},!1);var n=[],i=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(i=i&&e.synchronous,n.unshift(e.fulfilled,e.rejected))}));var o,u=[];if(this.interceptors.response.forEach((function(e){u.push(e.fulfilled,e.rejected)})),!i){var d=[a,void 0];for(Array.prototype.unshift.apply(d,n),d=d.concat(u),o=Promise.resolve(t);d.length;)o=o.then(d.shift(),d.shift());return o}for(var h=t;n.length;){var f=n.shift(),p=n.shift();try{h=f(h)}catch(e){p(e);break}}try{o=a(h)}catch(e){return Promise.reject(e)}for(;u.length;)o=o.then(u.shift(),u.shift());return o},u.prototype.getUri=function(e){if(!e.url)throw new Error("Provided config url is not valid");return e=s(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},n.forEach(["delete","get","head","options"],(function(e){u.prototype[e]=function(t,r){return this.request(s(r||{},{method:e,url:t,data:(r||{}).data}))}})),n.forEach(["post","put","patch"],(function(e){u.prototype[e]=function(t,r,n){return this.request(s(n||{},{method:e,url:t,data:r}))}})),e.exports=u},761:(e,t,r)=>{"use strict";var n=r(40898);function i(){this.handlers=[]}i.prototype.use=function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){n.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},42629:(e,t,r)=>{"use strict";var n=r(97571),i=r(51190);e.exports=function(e,t){return e&&!n(t)?i(e,t):t}},35449:(e,t,r)=>{"use strict";var n=r(9703);e.exports=function(e,t,r,i,o){var a=new Error(e);return n(a,t,r,i,o)}},68768:(e,t,r)=>{"use strict";var n=r(40898),i=r(35871),o=r(7770),a=r(47345),s=r(20918);function l(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s("canceled")}e.exports=function(e){return l(e),e.headers=e.headers||{},e.data=i.call(e,e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),n.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return l(e),t.data=i.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(l(e),t&&t.response&&(t.response.data=i.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},9703:e=>{"use strict";e.exports=function(e,t,r,n,i){return e.config=t,r&&(e.code=r),e.request=n,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e}},1441:(e,t,r)=>{"use strict";var n=r(40898);e.exports=function(e,t){t=t||{};var r={};function i(e,t){return n.isPlainObject(e)&&n.isPlainObject(t)?n.merge(e,t):n.isPlainObject(t)?n.merge({},t):n.isArray(t)?t.slice():t}function o(r){return n.isUndefined(t[r])?n.isUndefined(e[r])?void 0:i(void 0,e[r]):i(e[r],t[r])}function a(e){if(!n.isUndefined(t[e]))return i(void 0,t[e])}function s(r){return n.isUndefined(t[r])?n.isUndefined(e[r])?void 0:i(void 0,e[r]):i(void 0,t[r])}function l(r){return r in t?i(e[r],t[r]):r in e?i(void 0,e[r]):void 0}var c={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l};return n.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||o,i=t(e);n.isUndefined(i)&&t!==l||(r[e]=i)})),r}},7184:(e,t,r)=>{"use strict";var n=r(35449);e.exports=function(e,t,r){var i=r.config.validateStatus;r.status&&i&&!i(r.status)?t(n("Request failed with status code "+r.status,r.config,null,r.request,r)):e(r)}},35871:(e,t,r)=>{"use strict";var n=r(40898),i=r(47345);e.exports=function(e,t,r){var o=this||i;return n.forEach(r,(function(r){e=r.call(o,e,t)})),e}},47345:(e,t,r)=>{"use strict";var n=r(40898),i=r(41752),o=r(9703),a={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var l,c={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(l=r(85846)),l),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),n.isFormData(e)||n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e)?e:n.isArrayBufferView(e)?e.buffer:n.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):n.isObject(e)||t&&"application/json"===t["Content-Type"]?(s(t,"application/json"),function(e,t,r){if(n.isString(e))try{return(0,JSON.parse)(e),n.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||c.transitional,r=t&&t.silentJSONParsing,i=t&&t.forcedJSONParsing,a=!r&&"json"===this.responseType;if(a||i&&n.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(a){if("SyntaxError"===e.name)throw o(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),n.forEach(["post","put","patch"],(function(e){c.headers[e]=n.merge(a)})),e.exports=c},78219:e=>{e.exports={version:"0.25.0"}},6654:e=>{"use strict";e.exports=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return e.apply(t,r)}}},81036:(e,t,r)=>{"use strict";var n=r(40898);function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,r){if(!t)return e;var o;if(r)o=r(t);else if(n.isURLSearchParams(t))o=t.toString();else{var a=[];n.forEach(t,(function(e,t){null!=e&&(n.isArray(e)?t+="[]":e=[e],n.forEach(e,(function(e){n.isDate(e)?e=e.toISOString():n.isObject(e)&&(e=JSON.stringify(e)),a.push(i(t)+"="+i(e))})))})),o=a.join("&")}if(o){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},51190:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},50310:(e,t,r)=>{"use strict";var n=r(40898);e.exports=n.isStandardBrowserEnv()?{write:function(e,t,r,i,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),n.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),n.isString(i)&&s.push("path="+i),n.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},97571:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},75657:(e,t,r)=>{"use strict";var n=r(40898);e.exports=function(e){return n.isObject(e)&&!0===e.isAxiosError}},27004:(e,t,r)=>{"use strict";var n=r(40898);e.exports=n.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function i(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=i(window.location.href),function(t){var r=n.isString(t)?i(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0}},41752:(e,t,r)=>{"use strict";var n=r(40898);e.exports=function(e,t){n.forEach(e,(function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])}))}},30902:(e,t,r)=>{"use strict";var n=r(40898),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,r,o,a={};return e?(n.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=n.trim(e.substr(0,o)).toLowerCase(),r=n.trim(e.substr(o+1)),t){if(a[t]&&i.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([r]):a[t]?a[t]+", "+r:r}})),a):a}},27238:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},89419:(e,t,r)=>{"use strict";var n=r(78219).version,i={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){i[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));var o={};i.transitional=function(e,t,r){function i(e,t){return"[Axios v"+n+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,n,a){if(!1===e)throw new Error(i(n," has been removed"+(t?" in "+t:"")));return t&&!o[n]&&(o[n]=!0,console.warn(i(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,n,a)}},e.exports={assertOptions:function(e,t,r){if("object"!=typeof e)throw new TypeError("options must be an object");for(var n=Object.keys(e),i=n.length;i-- >0;){var o=n[i],a=t[o];if(a){var s=e[o],l=void 0===s||a(s,o,e);if(!0!==l)throw new TypeError("option "+o+" must be "+l)}else if(!0!==r)throw Error("Unknown option "+o)}},validators:i}},40898:(e,t,r)=>{"use strict";var n=r(6654),i=Object.prototype.toString;function o(e){return Array.isArray(e)}function a(e){return void 0===e}function s(e){return"[object ArrayBuffer]"===i.call(e)}function l(e){return null!==e&&"object"==typeof e}function c(e){if("[object Object]"!==i.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){return"[object Function]"===i.call(e)}function d(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),o(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}e.exports={isArray:o,isArrayBuffer:s,isBuffer:function(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"[object FormData]"===i.call(e)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&s(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:l,isPlainObject:c,isUndefined:a,isDate:function(e){return"[object Date]"===i.call(e)},isFile:function(e){return"[object File]"===i.call(e)},isBlob:function(e){return"[object Blob]"===i.call(e)},isFunction:u,isStream:function(e){return l(e)&&u(e.pipe)},isURLSearchParams:function(e){return"[object URLSearchParams]"===i.call(e)},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:d,merge:function e(){var t={};function r(r,n){c(t[n])&&c(r)?t[n]=e(t[n],r):c(r)?t[n]=e({},r):o(r)?t[n]=r.slice():t[n]=r}for(var n=0,i=arguments.length;n<i;n++)d(arguments[n],r);return t},extend:function(e,t,r){return d(t,(function(t,i){e[i]=r&&"function"==typeof t?n(t,r):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},6224:e=>{"use strict";var t="%[a-f0-9]{2}",r=new RegExp("("+t+")|([^%]+?)","gi"),n=new RegExp("("+t+")+","gi");function i(e,t){try{return[decodeURIComponent(e.join(""))]}catch(e){}if(1===e.length)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],i(r),i(n))}function o(e){try{return decodeURIComponent(e)}catch(o){for(var t=e.match(r)||[],n=1;n<t.length;n++)t=(e=i(t,n).join("")).match(r)||[];return e}}e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},r=n.exec(e);r;){try{t[r[0]]=decodeURIComponent(r[0])}catch(e){var i=o(r[0]);i!==r[0]&&(t[r[0]]=i)}r=n.exec(e)}t["%C2"]="�";for(var a=Object.keys(t),s=0;s<a.length;s++){var l=a[s];e=e.replace(new RegExp(l,"g"),t[l])}return e}(e)}}},57825:e=>{"use strict";var t,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(r,n){function i(r){e.removeListener(t,o),n(r)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),r([].slice.call(arguments))}m(e,t,o,{once:!0}),"error"!==t&&function(e,t,r){"function"==typeof e.on&&m(e,"error",t,{once:!0})}(e,i)}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function c(e,t,r,n){var i,o,a,c;if(s(r),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),a=o[t]),void 0===a)a=o[t]=r,++e._eventsCount;else if("function"==typeof a?a=o[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(i=l(e))>0&&a.length>i&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,c=u,console&&console.warn&&console.warn(c)}return e}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=u.bind(n);return i.listener=r,n.wrapFn=i,i}function h(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(i):p(i,i.length)}function f(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function p(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function m(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(o){n.once&&e.removeEventListener(t,i),r(o)}))}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return l(this)},o.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=o[e];if(void 0===l)return!1;if("function"==typeof l)n(l,this,t);else{var c=l.length,u=p(l,c);for(r=0;r<c;++r)n(u[r],this,t)}return!0},o.prototype.addListener=function(e,t){return c(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return c(this,e,t,!0)},o.prototype.once=function(e,t){return s(t),this.on(e,d(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,d(this,e,t)),this},o.prototype.removeListener=function(e,t){var r,n,i,o,a;if(s(t),void 0===(n=this._events))return this;if(void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(i=-1,o=r.length-1;o>=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,i),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,a||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var i,o=Object.keys(r);for(n=0;n<o.length;++n)"removeListener"!==(i=o[n])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},o.prototype.listeners=function(e){return h(this,e,!0)},o.prototype.rawListeners=function(e){return h(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):f.call(e,t)},o.prototype.listenerCount=f,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},57160:(e,t,r)=>{"use strict";var n=r(52305),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return n.isMemo(e)?a:s[e.$$typeof]||i}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(p){var i=f(r);i&&i!==p&&e(t,i,n)}var a=u(r);d&&(a=a.concat(d(r)));for(var s=l(t),m=l(r),b=0;b<a.length;++b){var g=a[b];if(!(o[g]||n&&n[g]||m&&m[g]||s&&s[g])){var y=h(r,g);try{c(t,g,y)}catch(e){}}}}return t}},5026:(module,exports,__webpack_require__)=>{var __WEBPACK_AMD_DEFINE_RESULT__;(function(){"use strict";var root="object"==typeof window?window:{},NODE_JS=!root.JS_SHA1_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;NODE_JS&&(root=__webpack_require__.g);var COMMON_JS=!root.JS_SHA1_NO_COMMON_JS&&module.exports,AMD=__webpack_require__.amdO,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"],blocks=[],createOutputMethod=function(e){return function(t){return new Sha1(!0).update(t)[e]()}},createMethod=function(){var e=createOutputMethod("hex");NODE_JS&&(e=nodeWrap(e)),e.create=function(){return new Sha1},e.update=function(t){return e.create().update(t)};for(var t=0;t<OUTPUT_TYPES.length;++t){var r=OUTPUT_TYPES[t];e[r]=createOutputMethod(r)}return e},nodeWrap=function(method){var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer"),nodeMethod=function(e){if("string"==typeof e)return crypto.createHash("sha1").update(e,"utf8").digest("hex");if(e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(void 0===e.length)return method(e);return crypto.createHash("sha1").update(new Buffer(e)).digest("hex")};return nodeMethod};function Sha1(e){e?(blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,this.blocks=blocks):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.h0=1732584193,this.h1=4023233417,this.h2=2562383102,this.h3=271733878,this.h4=3285377520,this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}Sha1.prototype.update=function(e){if(!this.finalized){var t="string"!=typeof e;t&&e.constructor===root.ArrayBuffer&&(e=new Uint8Array(e));for(var r,n,i=0,o=e.length||0,a=this.blocks;i<o;){if(this.hashed&&(this.hashed=!1,a[0]=this.block,a[16]=a[1]=a[2]=a[3]=a[4]=a[5]=a[6]=a[7]=a[8]=a[9]=a[10]=a[11]=a[12]=a[13]=a[14]=a[15]=0),t)for(n=this.start;i<o&&n<64;++i)a[n>>2]|=e[i]<<SHIFT[3&n++];else for(n=this.start;i<o&&n<64;++i)(r=e.charCodeAt(i))<128?a[n>>2]|=r<<SHIFT[3&n++]:r<2048?(a[n>>2]|=(192|r>>6)<<SHIFT[3&n++],a[n>>2]|=(128|63&r)<<SHIFT[3&n++]):r<55296||r>=57344?(a[n>>2]|=(224|r>>12)<<SHIFT[3&n++],a[n>>2]|=(128|r>>6&63)<<SHIFT[3&n++],a[n>>2]|=(128|63&r)<<SHIFT[3&n++]):(r=65536+((1023&r)<<10|1023&e.charCodeAt(++i)),a[n>>2]|=(240|r>>18)<<SHIFT[3&n++],a[n>>2]|=(128|r>>12&63)<<SHIFT[3&n++],a[n>>2]|=(128|r>>6&63)<<SHIFT[3&n++],a[n>>2]|=(128|63&r)<<SHIFT[3&n++]);this.lastByteIndex=n,this.bytes+=n-this.start,n>=64?(this.block=a[16],this.start=n-64,this.hash(),this.hashed=!0):this.start=n}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296|0,this.bytes=this.bytes%4294967296),this}},Sha1.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=EXTRA[3&t],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}},Sha1.prototype.hash=function(){var e,t,r=this.h0,n=this.h1,i=this.h2,o=this.h3,a=this.h4,s=this.blocks;for(e=16;e<80;++e)t=s[e-3]^s[e-8]^s[e-14]^s[e-16],s[e]=t<<1|t>>>31;for(e=0;e<20;e+=5)r=(t=(n=(t=(i=(t=(o=(t=(a=(t=r<<5|r>>>27)+(n&i|~n&o)+a+1518500249+s[e]|0)<<5|a>>>27)+(r&(n=n<<30|n>>>2)|~r&i)+o+1518500249+s[e+1]|0)<<5|o>>>27)+(a&(r=r<<30|r>>>2)|~a&n)+i+1518500249+s[e+2]|0)<<5|i>>>27)+(o&(a=a<<30|a>>>2)|~o&r)+n+1518500249+s[e+3]|0)<<5|n>>>27)+(i&(o=o<<30|o>>>2)|~i&a)+r+1518500249+s[e+4]|0,i=i<<30|i>>>2;for(;e<40;e+=5)r=(t=(n=(t=(i=(t=(o=(t=(a=(t=r<<5|r>>>27)+(n^i^o)+a+1859775393+s[e]|0)<<5|a>>>27)+(r^(n=n<<30|n>>>2)^i)+o+1859775393+s[e+1]|0)<<5|o>>>27)+(a^(r=r<<30|r>>>2)^n)+i+1859775393+s[e+2]|0)<<5|i>>>27)+(o^(a=a<<30|a>>>2)^r)+n+1859775393+s[e+3]|0)<<5|n>>>27)+(i^(o=o<<30|o>>>2)^a)+r+1859775393+s[e+4]|0,i=i<<30|i>>>2;for(;e<60;e+=5)r=(t=(n=(t=(i=(t=(o=(t=(a=(t=r<<5|r>>>27)+(n&i|n&o|i&o)+a-1894007588+s[e]|0)<<5|a>>>27)+(r&(n=n<<30|n>>>2)|r&i|n&i)+o-1894007588+s[e+1]|0)<<5|o>>>27)+(a&(r=r<<30|r>>>2)|a&n|r&n)+i-1894007588+s[e+2]|0)<<5|i>>>27)+(o&(a=a<<30|a>>>2)|o&r|a&r)+n-1894007588+s[e+3]|0)<<5|n>>>27)+(i&(o=o<<30|o>>>2)|i&a|o&a)+r-1894007588+s[e+4]|0,i=i<<30|i>>>2;for(;e<80;e+=5)r=(t=(n=(t=(i=(t=(o=(t=(a=(t=r<<5|r>>>27)+(n^i^o)+a-899497514+s[e]|0)<<5|a>>>27)+(r^(n=n<<30|n>>>2)^i)+o-899497514+s[e+1]|0)<<5|o>>>27)+(a^(r=r<<30|r>>>2)^n)+i-899497514+s[e+2]|0)<<5|i>>>27)+(o^(a=a<<30|a>>>2)^r)+n-899497514+s[e+3]|0)<<5|n>>>27)+(i^(o=o<<30|o>>>2)^a)+r-899497514+s[e+4]|0,i=i<<30|i>>>2;this.h0=this.h0+r|0,this.h1=this.h1+n|0,this.h2=this.h2+i|0,this.h3=this.h3+o|0,this.h4=this.h4+a|0},Sha1.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,r=this.h2,n=this.h3,i=this.h4;return HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>4&15]+HEX_CHARS[15&t]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[15&r]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[15&n]+HEX_CHARS[i>>28&15]+HEX_CHARS[i>>24&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>4&15]+HEX_CHARS[15&i]},Sha1.prototype.toString=Sha1.prototype.hex,Sha1.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,r=this.h2,n=this.h3,i=this.h4;return[e>>24&255,e>>16&255,e>>8&255,255&e,t>>24&255,t>>16&255,t>>8&255,255&t,r>>24&255,r>>16&255,r>>8&255,255&r,n>>24&255,n>>16&255,n>>8&255,255&n,i>>24&255,i>>16&255,i>>8&255,255&i]},Sha1.prototype.array=Sha1.prototype.digest,Sha1.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(20),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),e};var exports=createMethod();COMMON_JS?module.exports=exports:(root.sha1=exports,AMD&&(__WEBPACK_AMD_DEFINE_RESULT__=function(){return exports}.call(exports,__webpack_require__,exports,module),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)))})()},84708:function(e,t,r){var n;!function(i){var o={starts_with_slashes:/^\/+/,ends_with_slashes:/\/+$/,pluses:/\+/g,query_separator:/[&;]/,uri_parser:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@\/]*)(?::([^:@]*))?)?@)?(\[[0-9a-fA-F:.]+\]|[^:\/?#]*)(?::(\d+|(?=:)))?(:)?)((((?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/};function a(e){return e&&(e=e.toString().replace(o.pluses,"%20"),e=decodeURIComponent(e)),e}function s(e){var t,r,n,i,s,l,c,u=[];if(null==e||""===e)return u;for(0===e.indexOf("?")&&(e=e.substring(1)),t=0,c=(r=e.toString().split(o.query_separator)).length;t<c;t++)0!==(i=(n=r[t]).indexOf("="))&&(s=a(n.substring(0,i)),l=a(n.substring(i+1)),u.push(-1===i?[n,null]:[s,l]));return u}function l(e){this.uriParts=function(e){var t=o.uri_parser.exec(e||""),r={};return["source","protocol","authority","userInfo","user","password","host","port","isColonUri","relative","path","directory","file","query","anchor"].forEach((function(e,n){r[e]=t[n]||""})),r}(e),this.queryPairs=s(this.uriParts.query),this.hasAuthorityPrefixUserPref=null}Array.prototype.forEach||(Array.prototype.forEach=function(e,t){var r,n;if(null==this)throw new TypeError(" this is null or not defined");var i=Object(this),o=i.length>>>0;if("function"!=typeof e)throw new TypeError(e+" is not a function");for(arguments.length>1&&(r=t),n=0;n<o;){var a;n in i&&(a=i[n],e.call(r,a,n,i)),n++}}),["protocol","userInfo","host","port","path","anchor"].forEach((function(e){l.prototype[e]=function(t){return void 0!==t&&(this.uriParts[e]=t),this.uriParts[e]}})),l.prototype.hasAuthorityPrefix=function(e){return void 0!==e&&(this.hasAuthorityPrefixUserPref=e),null===this.hasAuthorityPrefixUserPref?-1!==this.uriParts.source.indexOf("//"):this.hasAuthorityPrefixUserPref},l.prototype.isColonUri=function(e){if(void 0===e)return!!this.uriParts.isColonUri;this.uriParts.isColonUri=!!e},l.prototype.query=function(e){var t,r,n,i="";for(void 0!==e&&(this.queryPairs=s(e)),t=0,n=this.queryPairs.length;t<n;t++)r=this.queryPairs[t],i.length>0&&(i+="&"),null===r[1]?i+=r[0]:(i+=r[0],i+="=",void 0!==r[1]&&(i+=encodeURIComponent(r[1])));return i.length>0?"?"+i:i},l.prototype.getQueryParamValue=function(e){var t,r,n;for(r=0,n=this.queryPairs.length;r<n;r++)if(e===(t=this.queryPairs[r])[0])return t[1]},l.prototype.getQueryParamValues=function(e){var t,r,n,i=[];for(t=0,n=this.queryPairs.length;t<n;t++)e===(r=this.queryPairs[t])[0]&&i.push(r[1]);return i},l.prototype.deleteQueryParam=function(e,t){var r,n,i,o,s,l=[];for(r=0,s=this.queryPairs.length;r<s;r++)i=a((n=this.queryPairs[r])[0])===a(e),o=n[1]===t,(1!==arguments.length||i)&&(2!==arguments.length||i&&o)||l.push(n);return this.queryPairs=l,this},l.prototype.addQueryParam=function(e,t,r){return 3===arguments.length&&-1!==r?(r=Math.min(r,this.queryPairs.length),this.queryPairs.splice(r,0,[e,t])):arguments.length>0&&this.queryPairs.push([e,t]),this},l.prototype.hasQueryParam=function(e){var t,r=this.queryPairs.length;for(t=0;t<r;t++)if(this.queryPairs[t][0]==e)return!0;return!1},l.prototype.replaceQueryParam=function(e,t,r){var n,i,o=-1,s=this.queryPairs.length;if(3===arguments.length){for(n=0;n<s;n++)if(a((i=this.queryPairs[n])[0])===a(e)&&decodeURIComponent(i[1])===a(r)){o=n;break}o>=0&&this.deleteQueryParam(e,a(r)).addQueryParam(e,t,o)}else{for(n=0;n<s;n++)if(a((i=this.queryPairs[n])[0])===a(e)){o=n;break}this.deleteQueryParam(e),this.addQueryParam(e,t,o)}return this},["protocol","hasAuthorityPrefix","isColonUri","userInfo","host","port","path","query","anchor"].forEach((function(e){var t="set"+e.charAt(0).toUpperCase()+e.slice(1);l.prototype[t]=function(t){return this[e](t),this}})),l.prototype.scheme=function(){var e="";return this.protocol()?(e+=this.protocol(),this.protocol().indexOf(":")!==this.protocol().length-1&&(e+=":"),e+="//"):this.hasAuthorityPrefix()&&this.host()&&(e+="//"),e},l.prototype.origin=function(){var e=this.scheme();return this.userInfo()&&this.host()&&(e+=this.userInfo(),this.userInfo().indexOf("@")!==this.userInfo().length-1&&(e+="@")),this.host()&&(e+=this.host(),(this.port()||this.path()&&this.path().substr(0,1).match(/[0-9]/))&&(e+=":"+this.port())),e},l.prototype.addTrailingSlash=function(){var e=this.path()||"";return"/"!==e.substr(-1)&&this.path(e+"/"),this},l.prototype.toString=function(){var e,t=this.origin();return this.isColonUri()?this.path()&&(t+=":"+this.path()):this.path()?(e=this.path(),o.ends_with_slashes.test(t)||o.starts_with_slashes.test(e)?(t&&t.replace(o.ends_with_slashes,"/"),e=e.replace(o.starts_with_slashes,"/")):t+="/",t+=e):this.host()&&(this.query().toString()||this.anchor())&&(t+="/"),this.query().toString()&&(t+=this.query().toString()),this.anchor()&&(0!==this.anchor().indexOf("#")&&(t+="#"),t+=this.anchor()),t},l.prototype.clone=function(){return new l(this.toString())},void 0===(n=function(){return l}.call(t,r,t,e))||(e.exports=n)}()},9438:(e,t,r)=>{var n=r(5264)(r(75619),"DataView");e.exports=n},22139:(e,t,r)=>{var n=r(45850),i=r(56988),o=r(71631),a=r(27699),s=r(76491);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},11649:(e,t,r)=>{var n=r(28924),i=r(48122),o=r(31381),a=r(14489),s=r(48721);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},56285:(e,t,r)=>{var n=r(5264)(r(75619),"Map");e.exports=n},22583:(e,t,r)=>{var n=r(40126),i=r(85464),o=r(45755),a=r(12343),s=r(55071);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},86974:(e,t,r)=>{var n=r(5264)(r(75619),"Promise");e.exports=n},75867:(e,t,r)=>{var n=r(5264)(r(75619),"Set");e.exports=n},66787:(e,t,r)=>{var n=r(11649),i=r(73634),o=r(91636),a=r(19719),s=r(98971),l=r(89987);function c(e){var t=this.__data__=new n(e);this.size=t.size}c.prototype.clear=i,c.prototype.delete=o,c.prototype.get=a,c.prototype.has=s,c.prototype.set=l,e.exports=c},75799:(e,t,r)=>{var n=r(75619).Symbol;e.exports=n},86882:(e,t,r)=>{var n=r(75619).Uint8Array;e.exports=n},53173:(e,t,r)=>{var n=r(5264)(r(75619),"WeakMap");e.exports=n},44375:e=>{e.exports=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}},7515:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}},18472:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,i=0,o=[];++r<n;){var a=e[r];t(a,r,e)&&(o[i++]=a)}return o}},74113:(e,t,r)=>{var n=r(41458),i=r(24254),o=r(37603),a=r(23470),s=r(68327),l=r(24373),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=o(e),u=!r&&i(e),d=!r&&!u&&a(e),h=!r&&!u&&!d&&l(e),f=r||u||d||h,p=f?n(e.length,String):[],m=p.length;for(var b in e)!t&&!c.call(e,b)||f&&("length"==b||d&&("offset"==b||"parent"==b)||h&&("buffer"==b||"byteLength"==b||"byteOffset"==b)||s(b,m))||p.push(b);return p}},22654:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}},81026:e=>{e.exports=function(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}},70104:e=>{e.exports=function(e,t,r,n){var i=-1,o=null==e?0:e.length;for(n&&o&&(r=e[++i]);++i<o;)r=t(r,e[i],i,e);return r}},25983:e=>{var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(t)||[]}},43379:(e,t,r)=>{var n=r(52162),i=r(91114);e.exports=function(e,t,r){(void 0!==r&&!i(e[t],r)||void 0===r&&!(t in e))&&n(e,t,r)}},40581:(e,t,r)=>{var n=r(52162),i=r(91114),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){var a=e[t];o.call(e,t)&&i(a,r)&&(void 0!==r||t in e)||n(e,t,r)}},98639:(e,t,r)=>{var n=r(91114);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},96239:(e,t,r)=>{var n=r(96945),i=r(45e3);e.exports=function(e,t){return e&&n(t,i(t),e)}},51412:(e,t,r)=>{var n=r(96945),i=r(83735);e.exports=function(e,t){return e&&n(t,i(t),e)}},52162:(e,t,r)=>{var n=r(72097);e.exports=function(e,t,r){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}},71649:(e,t,r)=>{var n=r(66787),i=r(7515),o=r(40581),a=r(96239),s=r(51412),l=r(71204),c=r(57861),u=r(47605),d=r(97478),h=r(23280),f=r(65279),p=r(42711),m=r(14503),b=r(9961),g=r(42631),y=r(37603),v=r(23470),w=r(31204),E=r(3715),S=r(13558),C=r(45e3),k=r(83735),x="[object Arguments]",P="[object Function]",_="[object Object]",O={};O[x]=O["[object Array]"]=O["[object ArrayBuffer]"]=O["[object DataView]"]=O["[object Boolean]"]=O["[object Date]"]=O["[object Float32Array]"]=O["[object Float64Array]"]=O["[object Int8Array]"]=O["[object Int16Array]"]=O["[object Int32Array]"]=O["[object Map]"]=O["[object Number]"]=O[_]=O["[object RegExp]"]=O["[object Set]"]=O["[object String]"]=O["[object Symbol]"]=O["[object Uint8Array]"]=O["[object Uint8ClampedArray]"]=O["[object Uint16Array]"]=O["[object Uint32Array]"]=!0,O["[object Error]"]=O[P]=O["[object WeakMap]"]=!1,e.exports=function e(t,r,A,T,I,M){var D,R=1&r,F=2&r,L=4&r;if(A&&(D=I?A(t,T,I,M):A(t)),void 0!==D)return D;if(!E(t))return t;var j=y(t);if(j){if(D=m(t),!R)return c(t,D)}else{var N=p(t),U=N==P||"[object GeneratorFunction]"==N;if(v(t))return l(t,R);if(N==_||N==x||U&&!I){if(D=F||U?{}:g(t),!R)return F?d(t,s(D,t)):u(t,a(D,t))}else{if(!O[N])return I?t:{};D=b(t,N,R)}}M||(M=new n);var H=M.get(t);if(H)return H;M.set(t,D),S(t)?t.forEach((function(n){D.add(e(n,r,A,n,t,M))})):w(t)&&t.forEach((function(n,i){D.set(i,e(n,r,A,i,t,M))}));var B=j?void 0:(L?F?f:h:F?k:C)(t);return i(B||t,(function(n,i){B&&(n=t[i=n]),o(D,i,e(n,r,A,i,t,M))})),D}},90938:(e,t,r)=>{var n=r(3715),i=Object.create,o=function(){function e(){}return function(t){if(!n(t))return{};if(i)return i(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();e.exports=o},17621:e=>{e.exports=function(e,t,r,n){for(var i=e.length,o=r+(n?1:-1);n?o--:++o<i;)if(t(e[o],o,e))return o;return-1}},18142:(e,t,r)=>{var n=r(81026),i=r(46609);e.exports=function e(t,r,o,a,s){var l=-1,c=t.length;for(o||(o=i),s||(s=[]);++l<c;){var u=t[l];r>0&&o(u)?r>1?e(u,r-1,o,a,s):n(s,u):a||(s[s.length]=u)}return s}},6043:(e,t,r)=>{var n=r(68119)();e.exports=n},99216:(e,t,r)=>{var n=r(62323),i=r(60299);e.exports=function(e,t){for(var r=0,o=(t=n(t,e)).length;null!=e&&r<o;)e=e[i(t[r++])];return r&&r==o?e:void 0}},51141:(e,t,r)=>{var n=r(81026),i=r(37603);e.exports=function(e,t,r){var o=t(e);return i(e)?o:n(o,r(e))}},33754:(e,t,r)=>{var n=r(75799),i=r(36969),o=r(11916),a=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},38868:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e,r){return null!=e&&t.call(e,r)}},73989:(e,t,r)=>{var n=r(17621),i=r(5641),o=r(5749);e.exports=function(e,t,r){return t==t?o(e,t,r):n(e,i,r)}},59720:(e,t,r)=>{var n=r(33754),i=r(34140);e.exports=function(e){return i(e)&&"[object Arguments]"==n(e)}},70422:(e,t,r)=>{var n=r(42711),i=r(34140);e.exports=function(e){return i(e)&&"[object Map]"==n(e)}},5641:e=>{e.exports=function(e){return e!=e}},12185:(e,t,r)=>{var n=r(51028),i=r(33014),o=r(3715),a=r(10839),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,h=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(n(e)?h:s).test(a(e))}},12068:(e,t,r)=>{var n=r(42711),i=r(34140);e.exports=function(e){return i(e)&&"[object Set]"==n(e)}},42875:(e,t,r)=>{var n=r(33754),i=r(25404),o=r(34140),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!a[n(e)]}},27914:(e,t,r)=>{var n=r(50469),i=r(64756),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return i(e);var t=[];for(var r in Object(e))o.call(e,r)&&"constructor"!=r&&t.push(r);return t}},28141:(e,t,r)=>{var n=r(3715),i=r(50469),o=r(83163),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return o(e);var t=i(e),r=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&r.push(s);return r}},59584:(e,t,r)=>{var n=r(66787),i=r(43379),o=r(6043),a=r(58686),s=r(3715),l=r(83735),c=r(47400);e.exports=function e(t,r,u,d,h){t!==r&&o(r,(function(o,l){if(h||(h=new n),s(o))a(t,r,l,u,e,d,h);else{var f=d?d(c(t,l),o,l+"",t,r,h):void 0;void 0===f&&(f=o),i(t,l,f)}}),l)}},58686:(e,t,r)=>{var n=r(43379),i=r(71204),o=r(90467),a=r(57861),s=r(42631),l=r(24254),c=r(37603),u=r(53739),d=r(23470),h=r(51028),f=r(3715),p=r(19961),m=r(24373),b=r(47400),g=r(43082);e.exports=function(e,t,r,y,v,w,E){var S=b(e,r),C=b(t,r),k=E.get(C);if(k)n(e,r,k);else{var x=w?w(S,C,r+"",e,t,E):void 0,P=void 0===x;if(P){var _=c(C),O=!_&&d(C),A=!_&&!O&&m(C);x=C,_||O||A?c(S)?x=S:u(S)?x=a(S):O?(P=!1,x=i(C,!0)):A?(P=!1,x=o(C,!0)):x=[]:p(C)||l(C)?(x=S,l(S)?x=g(S):f(S)&&!h(S)||(x=s(C))):P=!1}P&&(E.set(C,x),v(x,C,y,w,E),E.delete(C)),n(e,r,x)}}},35022:e=>{e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},84016:(e,t,r)=>{var n=r(97286),i=r(7539),o=r(81239);e.exports=function(e,t){return o(i(e,t,n),e+"")}},42612:(e,t,r)=>{var n=r(40581),i=r(62323),o=r(68327),a=r(3715),s=r(60299);e.exports=function(e,t,r,l){if(!a(e))return e;for(var c=-1,u=(t=i(t,e)).length,d=u-1,h=e;null!=h&&++c<u;){var f=s(t[c]),p=r;if("__proto__"===f||"constructor"===f||"prototype"===f)return e;if(c!=d){var m=h[f];void 0===(p=l?l(m,f,h):void 0)&&(p=a(m)?m:o(t[c+1])?[]:{})}n(h,f,p),h=h[f]}return e}},60280:(e,t,r)=>{var n=r(18620),i=r(72097),o=r(97286),a=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:o;e.exports=a},82982:e=>{e.exports=function(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(i);++n<i;)o[n]=e[n+t];return o}},41458:e=>{e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},12258:(e,t,r)=>{var n=r(75799),i=r(22654),o=r(37603),a=r(9924),s=n?n.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(a(t))return l?l.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r}},17406:(e,t,r)=>{var n=r(45362),i=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(i,""):e}},45083:e=>{e.exports=function(e){return function(t){return e(t)}}},2937:(e,t,r)=>{var n=r(62323),i=r(85272),o=r(75019),a=r(60299);e.exports=function(e,t){return t=n(t,e),null==(e=o(e,t))||delete e[a(i(t))]}},73292:(e,t,r)=>{var n=r(22654);e.exports=function(e,t){return n(t,(function(t){return e[t]}))}},62323:(e,t,r)=>{var n=r(37603),i=r(688),o=r(16648),a=r(96004);e.exports=function(e,t){return n(e)?e:i(e,t)?[e]:o(a(e))}},86451:(e,t,r)=>{var n=r(86882);e.exports=function(e){var t=new e.constructor(e.byteLength);return new n(t).set(new n(e)),t}},71204:(e,t,r)=>{e=r.nmd(e);var n=r(75619),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?n.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=s?s(r):new e.constructor(r);return e.copy(n),n}},99915:(e,t,r)=>{var n=r(86451);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}},90923:e=>{var t=/\w*$/;e.exports=function(e){var r=new e.constructor(e.source,t.exec(e));return r.lastIndex=e.lastIndex,r}},61310:(e,t,r)=>{var n=r(75799),i=n?n.prototype:void 0,o=i?i.valueOf:void 0;e.exports=function(e){return o?Object(o.call(e)):{}}},90467:(e,t,r)=>{var n=r(86451);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}},57861:e=>{e.exports=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}},96945:(e,t,r)=>{var n=r(40581),i=r(52162);e.exports=function(e,t,r,o){var a=!r;r||(r={});for(var s=-1,l=t.length;++s<l;){var c=t[s],u=o?o(r[c],e[c],c,r,e):void 0;void 0===u&&(u=e[c]),a?i(r,c,u):n(r,c,u)}return r}},47605:(e,t,r)=>{var n=r(96945),i=r(83270);e.exports=function(e,t){return n(e,i(e),t)}},97478:(e,t,r)=>{var n=r(96945),i=r(48145);e.exports=function(e,t){return n(e,i(e),t)}},80591:(e,t,r)=>{var n=r(75619)["__core-js_shared__"];e.exports=n},12317:(e,t,r)=>{var n=r(84016),i=r(14494);e.exports=function(e){return n((function(t,r){var n=-1,o=r.length,a=o>1?r[o-1]:void 0,s=o>2?r[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(r[0],r[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);++n<o;){var l=r[n];l&&e(t,l,n,a)}return t}))}},68119:e=>{e.exports=function(e){return function(t,r,n){for(var i=-1,o=Object(t),a=n(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===r(o[l],l,o))break}return t}}},78073:(e,t,r)=>{var n=r(70104),i=r(70794),o=r(43243),a=RegExp("['’]","g");e.exports=function(e){return function(t){return n(o(i(t).replace(a,"")),e,"")}}},77292:(e,t,r)=>{var n=r(19961);e.exports=function(e){return n(e)?void 0:e}},46177:(e,t,r)=>{var n=r(35022)({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"});e.exports=n},72097:(e,t,r)=>{var n=r(5264),i=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},63126:(e,t,r)=>{var n=r(11616),i=r(7539),o=r(81239);e.exports=function(e){return o(i(e,void 0,n),e+"")}},57326:(e,t,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},23280:(e,t,r)=>{var n=r(51141),i=r(83270),o=r(45e3);e.exports=function(e){return n(e,o,i)}},65279:(e,t,r)=>{var n=r(51141),i=r(48145),o=r(83735);e.exports=function(e){return n(e,o,i)}},60113:(e,t,r)=>{var n=r(63492);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},5264:(e,t,r)=>{var n=r(12185),i=r(28050);e.exports=function(e,t){var r=i(e,t);return n(r)?r:void 0}},86065:(e,t,r)=>{var n=r(38233)(Object.getPrototypeOf,Object);e.exports=n},36969:(e,t,r)=>{var n=r(75799),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=n?n.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),r=e[s];try{e[s]=void 0;var n=!0}catch(e){}var i=a.call(e);return n&&(t?e[s]=r:delete e[s]),i}},83270:(e,t,r)=>{var n=r(18472),i=r(94759),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),n(a(e),(function(t){return o.call(e,t)})))}:i;e.exports=s},48145:(e,t,r)=>{var n=r(81026),i=r(86065),o=r(83270),a=r(94759),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)n(t,o(e)),e=i(e);return t}:a;e.exports=s},42711:(e,t,r)=>{var n=r(9438),i=r(56285),o=r(86974),a=r(75867),s=r(53173),l=r(33754),c=r(10839),u="[object Map]",d="[object Promise]",h="[object Set]",f="[object WeakMap]",p="[object DataView]",m=c(n),b=c(i),g=c(o),y=c(a),v=c(s),w=l;(n&&w(new n(new ArrayBuffer(1)))!=p||i&&w(new i)!=u||o&&w(o.resolve())!=d||a&&w(new a)!=h||s&&w(new s)!=f)&&(w=function(e){var t=l(e),r="[object Object]"==t?e.constructor:void 0,n=r?c(r):"";if(n)switch(n){case m:return p;case b:return u;case g:return d;case y:return h;case v:return f}return t}),e.exports=w},28050:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},5256:(e,t,r)=>{var n=r(62323),i=r(24254),o=r(37603),a=r(68327),s=r(25404),l=r(60299);e.exports=function(e,t,r){for(var c=-1,u=(t=n(t,e)).length,d=!1;++c<u;){var h=l(t[c]);if(!(d=null!=e&&r(e,h)))break;e=e[h]}return d||++c!=u?d:!!(u=null==e?0:e.length)&&s(u)&&a(h,u)&&(o(e)||i(e))}},51856:e=>{var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return t.test(e)}},45850:(e,t,r)=>{var n=r(73180);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},56988:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},71631:(e,t,r)=>{var n=r(73180),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return i.call(t,e)?t[e]:void 0}},27699:(e,t,r)=>{var n=r(73180),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:i.call(t,e)}},76491:(e,t,r)=>{var n=r(73180);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},14503:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var r=e.length,n=new e.constructor(r);return r&&"string"==typeof e[0]&&t.call(e,"index")&&(n.index=e.index,n.input=e.input),n}},9961:(e,t,r)=>{var n=r(86451),i=r(99915),o=r(90923),a=r(61310),s=r(90467);e.exports=function(e,t,r){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return n(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return i(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,r);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return o(e);case"[object Symbol]":return a(e)}}},42631:(e,t,r)=>{var n=r(90938),i=r(86065),o=r(50469);e.exports=function(e){return"function"!=typeof e.constructor||o(e)?{}:n(i(e))}},46609:(e,t,r)=>{var n=r(75799),i=r(24254),o=r(37603),a=n?n.isConcatSpreadable:void 0;e.exports=function(e){return o(e)||i(e)||!!(a&&e&&e[a])}},68327:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}},14494:(e,t,r)=>{var n=r(91114),i=r(52284),o=r(68327),a=r(3715);e.exports=function(e,t,r){if(!a(r))return!1;var s=typeof t;return!!("number"==s?i(r)&&o(t,r.length):"string"==s&&t in r)&&n(r[t],e)}},688:(e,t,r)=>{var n=r(37603),i=r(9924),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(n(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!i(e))||a.test(e)||!o.test(e)||null!=t&&e in Object(t)}},63492:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},33014:(e,t,r)=>{var n,i=r(80591),o=(n=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!o&&o in e}},50469:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},28924:e=>{e.exports=function(){this.__data__=[],this.size=0}},48122:(e,t,r)=>{var n=r(98639),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0||(r==t.length-1?t.pop():i.call(t,r,1),--this.size,0))}},31381:(e,t,r)=>{var n=r(98639);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},14489:(e,t,r)=>{var n=r(98639);e.exports=function(e){return n(this.__data__,e)>-1}},48721:(e,t,r)=>{var n=r(98639);e.exports=function(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}},40126:(e,t,r)=>{var n=r(22139),i=r(11649),o=r(56285);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(o||i),string:new n}}},85464:(e,t,r)=>{var n=r(60113);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},45755:(e,t,r)=>{var n=r(60113);e.exports=function(e){return n(this,e).get(e)}},12343:(e,t,r)=>{var n=r(60113);e.exports=function(e){return n(this,e).has(e)}},55071:(e,t,r)=>{var n=r(60113);e.exports=function(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}},27722:(e,t,r)=>{var n=r(35446);e.exports=function(e){var t=n(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}},73180:(e,t,r)=>{var n=r(5264)(Object,"create");e.exports=n},64756:(e,t,r)=>{var n=r(38233)(Object.keys,Object);e.exports=n},83163:e=>{e.exports=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}},4187:(e,t,r)=>{e=r.nmd(e);var n=r(57326),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i&&n.process,s=function(){try{return o&&o.require&&o.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},11916:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},38233:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},7539:(e,t,r)=>{var n=r(44375),i=Math.max;e.exports=function(e,t,r){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),l=Array(s);++a<s;)l[a]=o[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=o[a];return c[t]=r(l),n(e,this,c)}}},75019:(e,t,r)=>{var n=r(99216),i=r(82982);e.exports=function(e,t){return t.length<2?e:n(e,i(t,0,-1))}},75619:(e,t,r)=>{var n=r(57326),i="object"==typeof self&&self&&self.Object===Object&&self,o=n||i||Function("return this")();e.exports=o},47400:e=>{e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},81239:(e,t,r)=>{var n=r(60280),i=r(84909)(n);e.exports=i},84909:e=>{var t=Date.now;e.exports=function(e){var r=0,n=0;return function(){var i=t(),o=16-(i-n);if(n=i,o>0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}},73634:(e,t,r)=>{var n=r(11649);e.exports=function(){this.__data__=new n,this.size=0}},91636:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},19719:e=>{e.exports=function(e){return this.__data__.get(e)}},98971:e=>{e.exports=function(e){return this.__data__.has(e)}},89987:(e,t,r)=>{var n=r(11649),i=r(56285),o=r(22583);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new o(a)}return r.set(e,t),this.size=r.size,this}},5749:e=>{e.exports=function(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}},16648:(e,t,r)=>{var n=r(27722),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=n((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,(function(e,r,n,i){t.push(n?i.replace(o,"$1"):r||e)})),t}));e.exports=a},60299:(e,t,r)=>{var n=r(9924);e.exports=function(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},10839:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},45362:e=>{var t=/\s/;e.exports=function(e){for(var r=e.length;r--&&t.test(e.charAt(r)););return r}},51095:e=>{var t="\\ud800-\\udfff",r="\\u2700-\\u27bf",n="a-z\\xdf-\\xf6\\xf8-\\xff",i="A-Z\\xc0-\\xd6\\xd8-\\xde",o="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",a="["+o+"]",s="\\d+",l="["+r+"]",c="["+n+"]",u="[^"+t+o+s+r+n+i+"]",d="(?:\\ud83c[\\udde6-\\uddff]){2}",h="[\\ud800-\\udbff][\\udc00-\\udfff]",f="["+i+"]",p="(?:"+c+"|"+u+")",m="(?:"+f+"|"+u+")",b="(?:['’](?:d|ll|m|re|s|t|ve))?",g="(?:['’](?:D|LL|M|RE|S|T|VE))?",y="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",v="[\\ufe0e\\ufe0f]?",w=v+y+"(?:\\u200d(?:"+["[^"+t+"]",d,h].join("|")+")"+v+y+")*",E="(?:"+[l,d,h].join("|")+")"+w,S=RegExp([f+"?"+c+"+"+b+"(?="+[a,f,"$"].join("|")+")",m+"+"+g+"(?="+[a,f+p,"$"].join("|")+")",f+"?"+p+"+"+b,f+"+"+g,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",s,E].join("|"),"g");e.exports=function(e){return e.match(S)||[]}},18620:e=>{e.exports=function(e){return function(){return e}}},70794:(e,t,r)=>{var n=r(46177),i=r(96004),o=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=i(e))&&e.replace(o,n).replace(a,"")}},91114:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},11616:(e,t,r)=>{var n=r(18142);e.exports=function(e){return null!=e&&e.length?n(e,1):[]}},25358:(e,t,r)=>{var n=r(99216);e.exports=function(e,t,r){var i=null==e?void 0:n(e,t);return void 0===i?r:i}},75322:(e,t,r)=>{var n=r(38868),i=r(5256);e.exports=function(e,t){return null!=e&&i(e,t,n)}},97286:e=>{e.exports=function(e){return e}},69849:(e,t,r)=>{var n=r(73989),i=r(52284),o=r(67373),a=r(20263),s=r(5570),l=Math.max;e.exports=function(e,t,r,c){e=i(e)?e:s(e),r=r&&!c?a(r):0;var u=e.length;return r<0&&(r=l(u+r,0)),o(e)?r<=u&&e.indexOf(t,r)>-1:!!u&&n(e,t,r)>-1}},24254:(e,t,r)=>{var n=r(59720),i=r(34140),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,l=n(function(){return arguments}())?n:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},37603:e=>{var t=Array.isArray;e.exports=t},52284:(e,t,r)=>{var n=r(51028),i=r(25404);e.exports=function(e){return null!=e&&i(e.length)&&!n(e)}},53739:(e,t,r)=>{var n=r(52284),i=r(34140);e.exports=function(e){return i(e)&&n(e)}},23470:(e,t,r)=>{e=r.nmd(e);var n=r(75619),i=r(55597),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?n.Buffer:void 0,l=(s?s.isBuffer:void 0)||i;e.exports=l},87579:(e,t,r)=>{var n=r(27914),i=r(42711),o=r(24254),a=r(37603),s=r(52284),l=r(23470),c=r(50469),u=r(24373),d=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||u(e)||o(e)))return!e.length;var t=i(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(c(e))return!n(e).length;for(var r in e)if(d.call(e,r))return!1;return!0}},51028:(e,t,r)=>{var n=r(33754),i=r(3715);e.exports=function(e){if(!i(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},25404:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},31204:(e,t,r)=>{var n=r(70422),i=r(45083),o=r(4187),a=o&&o.isMap,s=a?i(a):n;e.exports=s},76519:(e,t,r)=>{var n=r(91553);e.exports=function(e){return n(e)&&e!=+e}},91553:(e,t,r)=>{var n=r(33754),i=r(34140);e.exports=function(e){return"number"==typeof e||i(e)&&"[object Number]"==n(e)}},3715:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},34140:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},19961:(e,t,r)=>{var n=r(33754),i=r(86065),o=r(34140),a=Function.prototype,s=Object.prototype,l=a.toString,c=s.hasOwnProperty,u=l.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=n(e))return!1;var t=i(e);if(null===t)return!0;var r=c.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&l.call(r)==u}},13558:(e,t,r)=>{var n=r(12068),i=r(45083),o=r(4187),a=o&&o.isSet,s=a?i(a):n;e.exports=s},67373:(e,t,r)=>{var n=r(33754),i=r(37603),o=r(34140);e.exports=function(e){return"string"==typeof e||!i(e)&&o(e)&&"[object String]"==n(e)}},9924:(e,t,r)=>{var n=r(33754),i=r(34140);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==n(e)}},24373:(e,t,r)=>{var n=r(42875),i=r(45083),o=r(4187),a=o&&o.isTypedArray,s=a?i(a):n;e.exports=s},45e3:(e,t,r)=>{var n=r(74113),i=r(27914),o=r(52284);e.exports=function(e){return o(e)?n(e):i(e)}},83735:(e,t,r)=>{var n=r(74113),i=r(28141),o=r(52284);e.exports=function(e){return o(e)?n(e,!0):i(e)}},85272:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},59315:(e,t,r)=>{var n=r(78073)((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}));e.exports=n},35446:(e,t,r)=>{var n=r(22583);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(i.Cache||n),r}i.Cache=n,e.exports=i},19474:(e,t,r)=>{var n=r(59584),i=r(12317)((function(e,t,r){n(e,t,r)}));e.exports=i},18564:e=>{e.exports=function(){}},64633:(e,t,r)=>{var n=r(22654),i=r(71649),o=r(2937),a=r(62323),s=r(96945),l=r(77292),c=r(63126),u=r(65279),d=c((function(e,t){var r={};if(null==e)return r;var c=!1;t=n(t,(function(t){return t=a(t,e),c||(c=t.length>1),t})),s(e,u(e),r),c&&(r=i(r,7,l));for(var d=t.length;d--;)o(r,t[d]);return r}));e.exports=d},19170:(e,t,r)=>{var n=r(42612);e.exports=function(e,t,r){return null==e?e:n(e,t,r)}},94759:e=>{e.exports=function(){return[]}},55597:e=>{e.exports=function(){return!1}},95134:(e,t,r)=>{var n=r(41888),i=1/0;e.exports=function(e){return e?(e=n(e))===i||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},20263:(e,t,r)=>{var n=r(95134);e.exports=function(e){var t=n(e),r=t%1;return t==t?r?t-r:t:0}},41888:(e,t,r)=>{var n=r(17406),i=r(3715),o=r(9924),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var r=s.test(e);return r||l.test(e)?c(e.slice(2),r?2:8):a.test(e)?NaN:+e}},43082:(e,t,r)=>{var n=r(96945),i=r(83735);e.exports=function(e){return n(e,i(e))}},96004:(e,t,r)=>{var n=r(12258);e.exports=function(e){return null==e?"":n(e)}},70406:(e,t,r)=>{var n=r(96004),i=0;e.exports=function(e){var t=++i;return n(e)+t}},5570:(e,t,r)=>{var n=r(73292),i=r(45e3);e.exports=function(e){return null==e?[]:n(e,i(e))}},43243:(e,t,r)=>{var n=r(25983),i=r(51856),o=r(96004),a=r(51095);e.exports=function(e,t,r){return e=o(e),void 0===(t=r?void 0:t)?i(e)?a(e):n(e):e.match(t)||[]}},17466:e=>{"use strict";function t(){return t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},t.apply(null,arguments)}var r=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var r={},n=0;n<10;n++)r["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(r).map((function(e){return r[e]})).join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach((function(e){i[e]=e})),"abcdefghijklmnopqrst"===Object.keys(t({},i)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var o,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var c in o=Object(arguments[l]))n.call(o,c)&&(s[c]=o[c]);if(r){a=r(o);for(var u=0;u<a.length;u++)i.call(o,a[u])&&(s[a[u]]=o[a[u]])}}return s}},74836:(e,t,r)=>{"use strict";var n=r(25059);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,r,i,o,a){if(a!==n){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return r.PropTypes=r,r}},39970:(e,t,r)=>{e.exports=r(74836)()},25059:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},43165:(e,t,r)=>{"use strict";var n=r(12010),i=r(17466),o=r(6224);function a(e,t){return t.encode?t.strict?n(e):encodeURIComponent(e):e}function s(e){return Array.isArray(e)?e.sort():"object"==typeof e?s(Object.keys(e)).sort((function(e,t){return Number(e)-Number(t)})).map((function(t){return e[t]})):e}function l(e){var t=e.indexOf("?");return-1===t?"":e.slice(t+1)}function c(e,t){var r=function(e){var t;switch(e.arrayFormat){case"index":return function(e,r,n){t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===n[e]&&(n[e]={}),n[e][t[1]]=r):n[e]=r};case"bracket":return function(e,r,n){t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==n[e]?n[e]=[].concat(n[e],r):n[e]=[r]:n[e]=r};default:return function(e,t,r){void 0!==r[e]?r[e]=[].concat(r[e],t):r[e]=t}}}(t=i({arrayFormat:"none"},t)),n=Object.create(null);return"string"!=typeof e?n:(e=e.trim().replace(/^[?#&]/,""))?(e.split("&").forEach((function(e){var t=e.replace(/\+/g," ").split("="),i=t.shift(),a=t.length>0?t.join("="):void 0;a=void 0===a?null:o(a),r(o(i),a,n)})),Object.keys(n).sort().reduce((function(e,t){var r=n[t];return Boolean(r)&&"object"==typeof r&&!Array.isArray(r)?e[t]=s(r):e[t]=r,e}),Object.create(null))):n}t.extract=l,t.parse=c,t.stringify=function(e,t){!1===(t=i({encode:!0,strict:!0,arrayFormat:"none"},t)).sort&&(t.sort=function(){});var r=function(e){switch(e.arrayFormat){case"index":return function(t,r,n){return null===r?[a(t,e),"[",n,"]"].join(""):[a(t,e),"[",a(n,e),"]=",a(r,e)].join("")};case"bracket":return function(t,r){return null===r?a(t,e):[a(t,e),"[]=",a(r,e)].join("")};default:return function(t,r){return null===r?a(t,e):[a(t,e),"=",a(r,e)].join("")}}}(t);return e?Object.keys(e).sort(t.sort).map((function(n){var i=e[n];if(void 0===i)return"";if(null===i)return a(n,t);if(Array.isArray(i)){var o=[];return i.slice().forEach((function(e){void 0!==e&&o.push(r(n,e,o.length))})),o.join("&")}return a(n,t)+"="+a(i,t)})).filter((function(e){return e.length>0})).join("&"):""},t.parseUrl=function(e,t){return{url:e.split("?")[0]||"",query:c(l(e),t)}}},50213:(e,t,r)=>{"use strict";var n=r(1986),i=r(40552);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,s={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(s[e]=t,e=0;e<t.length;e++)a.add(t[e])}var u=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=Object.prototype.hasOwnProperty,h=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,f={},p={};function m(e,t,r,n,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var b={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){b[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];b[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){b[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){b[e]=new m(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){b[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){b[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){b[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){b[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){b[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var g=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function v(e,t,r,n){var i=b.hasOwnProperty(t)?b[t]:null;(null!==i?0!==i.type:n||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,r,n){if(null==t||function(e,t,r,n){if(null!==r&&0===r.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!n&&(null!==r?!r.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,r,n))return!0;if(n)return!1;if(null!==r)switch(r.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,r,i,n)&&(r=null),n||null===i?function(e){return!!d.call(p,e)||!d.call(f,e)&&(h.test(e)?p[e]=!0:(f[e]=!0,!1))}(t)&&(null===r?e.removeAttribute(t):e.setAttribute(t,""+r)):i.mustUseProperty?e[i.propertyName]=null===r?3!==i.type&&"":r:(t=i.attributeName,n=i.attributeNamespace,null===r?e.removeAttribute(t):(r=3===(i=i.type)||4===i&&!0===r?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(g,y);b[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(g,y);b[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(g,y);b[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){b[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),b.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){b[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,E=Symbol.for("react.element"),S=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),P=Symbol.for("react.provider"),_=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),M=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var D=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var R=Symbol.iterator;function F(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=R&&e[R]||e["@@iterator"])?e:null}var L,j=Object.assign;function N(e){if(void 0===L)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);L=t&&t[1]||""}return"\n"+L+e}var U=!1;function H(e,t){if(!e||U)return"";U=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var n=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){n=e}e.call(t.prototype)}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var i=t.stack.split("\n"),o=n.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s]){var l="\n"+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{U=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?N(e):""}function B(e){switch(e.tag){case 5:return N(e.type);case 16:return N("Lazy");case 13:return N("Suspense");case 19:return N("SuspenseList");case 0:case 2:case 15:return H(e.type,!1);case 11:return H(e.type.render,!1);case 1:return H(e.type,!0);default:return""}}function z(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case C:return"Fragment";case S:return"Portal";case x:return"Profiler";case k:return"StrictMode";case A:return"Suspense";case T:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case _:return(e.displayName||"Context")+".Consumer";case P:return(e._context.displayName||"Context")+".Provider";case O:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case I:return null!==(t=e.displayName||null)?t:z(e.type)||"Memo";case M:t=e._payload,e=e._init;try{return z(e(t))}catch(e){}}return null}function V(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return z(t);case 8:return t===k?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function $(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function q(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function G(e){e._valueTracker||(e._valueTracker=function(e){var t=q(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==r&&"function"==typeof r.get&&"function"==typeof r.set){var i=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function W(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=q(e)?e.checked?"true":"false":e.value),(e=n)!==r&&(t.setValue(e),!0)}function X(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function K(e,t){var r=t.checked;return j({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=r?r:e._wrapperState.initialChecked})}function Q(e,t){var r=null==t.defaultValue?"":t.defaultValue,n=null!=t.checked?t.checked:t.defaultChecked;r=$(null!=t.value?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Y(e,t){null!=(t=t.checked)&&v(e,"checked",t,!1)}function J(e,t){Y(e,t);var r=$(t.value),n=t.type;if(null!=r)"number"===n?(0===r&&""===e.value||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if("submit"===n||"reset"===n)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,r):t.hasOwnProperty("defaultValue")&&ee(e,t.type,$(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Z(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!("submit"!==n&&"reset"!==n||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}""!==(r=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==r&&(e.name=r)}function ee(e,t,r){"number"===t&&X(e.ownerDocument)===e||(null==r?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var te=Array.isArray;function re(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i<r.length;i++)t["$"+r[i]]=!0;for(r=0;r<e.length;r++)i=t.hasOwnProperty("$"+e[r].value),e[r].selected!==i&&(e[r].selected=i),i&&n&&(e[r].defaultSelected=!0)}else{for(r=""+$(r),t=null,i=0;i<e.length;i++){if(e[i].value===r)return e[i].selected=!0,void(n&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function ne(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return j({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ie(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(o(92));if(te(r)){if(1<r.length)throw Error(o(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:$(r)}}function oe(e,t){var r=$(t.value),n=$(t.defaultValue);null!=r&&((r=""+r)!==e.value&&(e.value=r),null==t.defaultValue&&e.defaultValue!==r&&(e.defaultValue=r)),null!=n&&(e.defaultValue=""+n)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,ue,de=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,r,n){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function he(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&3===r.nodeType)return void(r.nodeValue=t)}e.textContent=t}var fe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},pe=["Webkit","ms","Moz","O"];function me(e,t,r){return null==t||"boolean"==typeof t||""===t?"":r||"number"!=typeof t||0===t||fe.hasOwnProperty(e)&&fe[e]?(""+t).trim():t+"px"}function be(e,t){for(var r in e=e.style,t)if(t.hasOwnProperty(r)){var n=0===r.indexOf("--"),i=me(r,t[r],n);"float"===r&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}Object.keys(fe).forEach((function(e){pe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fe[t]=fe[e]}))}));var ge=j({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(ge[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(o(62))}}function ve(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function Ee(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Se=null,Ce=null,ke=null;function xe(e){if(e=vi(e)){if("function"!=typeof Se)throw Error(o(280));var t=e.stateNode;t&&(t=Ei(t),Se(e.stateNode,e.type,t))}}function Pe(e){Ce?ke?ke.push(e):ke=[e]:Ce=e}function _e(){if(Ce){var e=Ce,t=ke;if(ke=Ce=null,xe(e),t)for(e=0;e<t.length;e++)xe(t[e])}}function Oe(e,t){return e(t)}function Ae(){}var Te=!1;function Ie(e,t,r){if(Te)return e(t,r);Te=!0;try{return Oe(e,t,r)}finally{Te=!1,(null!==Ce||null!==ke)&&(Ae(),_e())}}function Me(e,t){var r=e.stateNode;if(null===r)return null;var n=Ei(r);if(null===n)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(n=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!n;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(o(231,t,typeof r));return r}var De=!1;if(u)try{var Re={};Object.defineProperty(Re,"passive",{get:function(){De=!0}}),window.addEventListener("test",Re,Re),window.removeEventListener("test",Re,Re)}catch(ue){De=!1}function Fe(e,t,r,n,i,o,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(r,c)}catch(e){this.onError(e)}}var Le=!1,je=null,Ne=!1,Ue=null,He={onError:function(e){Le=!0,je=e}};function Be(e,t,r,n,i,o,a,s,l){Le=!1,je=null,Fe.apply(He,arguments)}function ze(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(r=t.return),e=t.return}while(e)}return 3===t.tag?r:null}function Ve(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function $e(e){if(ze(e)!==e)throw Error(o(188))}function qe(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=ze(e)))throw Error(o(188));return t!==e?null:e}for(var r=e,n=t;;){var i=r.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(n=i.return)){r=n;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===r)return $e(i),e;if(a===n)return $e(i),t;a=a.sibling}throw Error(o(188))}if(r.return!==n.return)r=i,n=a;else{for(var s=!1,l=i.child;l;){if(l===r){s=!0,r=i,n=a;break}if(l===n){s=!0,n=i,r=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===r){s=!0,r=a,n=i;break}if(l===n){s=!0,n=a,r=i;break}l=l.sibling}if(!s)throw Error(o(189))}}if(r.alternate!==n)throw Error(o(190))}if(3!==r.tag)throw Error(o(188));return r.stateNode.current===r?e:t}(e))?Ge(e):null}function Ge(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ge(e);if(null!==t)return t;e=e.sibling}return null}var We=i.unstable_scheduleCallback,Xe=i.unstable_cancelCallback,Ke=i.unstable_shouldYield,Qe=i.unstable_requestPaint,Ye=i.unstable_now,Je=i.unstable_getCurrentPriorityLevel,Ze=i.unstable_ImmediatePriority,et=i.unstable_UserBlockingPriority,tt=i.unstable_NormalPriority,rt=i.unstable_LowPriority,nt=i.unstable_IdlePriority,it=null,ot=null,at=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2,ct=64,ut=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ht(e,t){var r=e.pendingLanes;if(0===r)return 0;var n=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&r;if(0!==a){var s=a&~i;0!==s?n=dt(s):0!=(o&=a)&&(n=dt(o))}else 0!=(a=r&~i)?n=dt(a):0!==o&&(n=dt(o));if(0===n)return 0;if(0!==t&&t!==n&&!(t&i)&&((i=n&-n)>=(o=t&-t)||16===i&&4194240&o))return t;if(4&n&&(n|=16&r),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=n;0<t;)i=1<<(r=31-at(t)),n|=e[r],t&=~i;return n}function ft(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function pt(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ct;return!(4194240&(ct<<=1))&&(ct=64),e}function bt(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function gt(e,t,r){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=r}function yt(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-at(r),i=1<<n;i&t|e[n]&t&&(e[n]|=t),r&=~i}}var vt=0;function wt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var Et,St,Ct,kt,xt,Pt=!1,_t=[],Ot=null,At=null,Tt=null,It=new Map,Mt=new Map,Dt=[],Rt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Ft(e,t){switch(e){case"focusin":case"focusout":Ot=null;break;case"dragenter":case"dragleave":At=null;break;case"mouseover":case"mouseout":Tt=null;break;case"pointerover":case"pointerout":It.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Mt.delete(t.pointerId)}}function Lt(e,t,r,n,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:o,targetContainers:[i]},null!==t&&null!==(t=vi(t))&&St(t),e):(e.eventSystemFlags|=n,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function jt(e){var t=yi(e.target);if(null!==t){var r=ze(t);if(null!==r)if(13===(t=r.tag)){if(null!==(t=Ve(r)))return e.blockedOn=t,void xt(e.priority,(function(){Ct(r)}))}else if(3===t&&r.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===r.tag?r.stateNode.containerInfo:null)}e.blockedOn=null}function Nt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var r=Kt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==r)return null!==(t=vi(r))&&St(t),e.blockedOn=r,!1;var n=new(r=e.nativeEvent).constructor(r.type,r);we=n,r.target.dispatchEvent(n),we=null,t.shift()}return!0}function Ut(e,t,r){Nt(e)&&r.delete(t)}function Ht(){Pt=!1,null!==Ot&&Nt(Ot)&&(Ot=null),null!==At&&Nt(At)&&(At=null),null!==Tt&&Nt(Tt)&&(Tt=null),It.forEach(Ut),Mt.forEach(Ut)}function Bt(e,t){e.blockedOn===t&&(e.blockedOn=null,Pt||(Pt=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Ht)))}function zt(e){function t(t){return Bt(t,e)}if(0<_t.length){Bt(_t[0],e);for(var r=1;r<_t.length;r++){var n=_t[r];n.blockedOn===e&&(n.blockedOn=null)}}for(null!==Ot&&Bt(Ot,e),null!==At&&Bt(At,e),null!==Tt&&Bt(Tt,e),It.forEach(t),Mt.forEach(t),r=0;r<Dt.length;r++)(n=Dt[r]).blockedOn===e&&(n.blockedOn=null);for(;0<Dt.length&&null===(r=Dt[0]).blockedOn;)jt(r),null===r.blockedOn&&Dt.shift()}var Vt=w.ReactCurrentBatchConfig,$t=!0;function qt(e,t,r,n){var i=vt,o=Vt.transition;Vt.transition=null;try{vt=1,Wt(e,t,r,n)}finally{vt=i,Vt.transition=o}}function Gt(e,t,r,n){var i=vt,o=Vt.transition;Vt.transition=null;try{vt=4,Wt(e,t,r,n)}finally{vt=i,Vt.transition=o}}function Wt(e,t,r,n){if($t){var i=Kt(e,t,r,n);if(null===i)$n(e,t,n,Xt,r),Ft(e,n);else if(function(e,t,r,n,i){switch(t){case"focusin":return Ot=Lt(Ot,e,t,r,n,i),!0;case"dragenter":return At=Lt(At,e,t,r,n,i),!0;case"mouseover":return Tt=Lt(Tt,e,t,r,n,i),!0;case"pointerover":var o=i.pointerId;return It.set(o,Lt(It.get(o)||null,e,t,r,n,i)),!0;case"gotpointercapture":return o=i.pointerId,Mt.set(o,Lt(Mt.get(o)||null,e,t,r,n,i)),!0}return!1}(i,e,t,r,n))n.stopPropagation();else if(Ft(e,n),4&t&&-1<Rt.indexOf(e)){for(;null!==i;){var o=vi(i);if(null!==o&&Et(o),null===(o=Kt(e,t,r,n))&&$n(e,t,n,Xt,r),o===i)break;i=o}null!==i&&n.stopPropagation()}else $n(e,t,n,null,r)}}var Xt=null;function Kt(e,t,r,n){if(Xt=null,null!==(e=yi(e=Ee(n))))if(null===(t=ze(e)))e=null;else if(13===(r=t.tag)){if(null!==(e=Ve(t)))return e;e=null}else if(3===r){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Xt=e,null}function Qt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Je()){case Ze:return 1;case et:return 4;case tt:case rt:return 16;case nt:return 536870912;default:return 16}default:return 16}}var Yt=null,Jt=null,Zt=null;function er(){if(Zt)return Zt;var e,t,r=Jt,n=r.length,i="value"in Yt?Yt.value:Yt.textContent,o=i.length;for(e=0;e<n&&r[e]===i[e];e++);var a=n-e;for(t=1;t<=a&&r[n-t]===i[o-t];t++);return Zt=i.slice(e,1<t?1-t:void 0)}function tr(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function rr(){return!0}function nr(){return!1}function ir(e){function t(t,r,n,i,o){for(var a in this._reactName=t,this._targetInst=n,this.type=r,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?rr:nr,this.isPropagationStopped=nr,this}return j(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=rr)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=rr)},persist:function(){},isPersistent:rr}),t}var or,ar,sr,lr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cr=ir(lr),ur=j({},lr,{view:0,detail:0}),dr=ir(ur),hr=j({},ur,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:kr,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==sr&&(sr&&"mousemove"===e.type?(or=e.screenX-sr.screenX,ar=e.screenY-sr.screenY):ar=or=0,sr=e),or)},movementY:function(e){return"movementY"in e?e.movementY:ar}}),fr=ir(hr),pr=ir(j({},hr,{dataTransfer:0})),mr=ir(j({},ur,{relatedTarget:0})),br=ir(j({},lr,{animationName:0,elapsedTime:0,pseudoElement:0})),gr=j({},lr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yr=ir(gr),vr=ir(j({},lr,{data:0})),wr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Er={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Sr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Cr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sr[e])&&!!t[e]}function kr(){return Cr}var xr=j({},ur,{key:function(e){if(e.key){var t=wr[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tr(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Er[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:kr,charCode:function(e){return"keypress"===e.type?tr(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tr(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Pr=ir(xr),_r=ir(j({},hr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Or=ir(j({},ur,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:kr})),Ar=ir(j({},lr,{propertyName:0,elapsedTime:0,pseudoElement:0})),Tr=j({},hr,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Ir=ir(Tr),Mr=[9,13,27,32],Dr=u&&"CompositionEvent"in window,Rr=null;u&&"documentMode"in document&&(Rr=document.documentMode);var Fr=u&&"TextEvent"in window&&!Rr,Lr=u&&(!Dr||Rr&&8<Rr&&11>=Rr),jr=String.fromCharCode(32),Nr=!1;function Ur(e,t){switch(e){case"keyup":return-1!==Mr.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hr(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Br=!1,zr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Vr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!zr[e.type]:"textarea"===t}function $r(e,t,r,n){Pe(n),0<(t=Gn(t,"onChange")).length&&(r=new cr("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var qr=null,Gr=null;function Wr(e){Nn(e,0)}function Xr(e){if(W(wi(e)))return e}function Kr(e,t){if("change"===e)return t}var Qr=!1;if(u){var Yr;if(u){var Jr="oninput"in document;if(!Jr){var Zr=document.createElement("div");Zr.setAttribute("oninput","return;"),Jr="function"==typeof Zr.oninput}Yr=Jr}else Yr=!1;Qr=Yr&&(!document.documentMode||9<document.documentMode)}function en(){qr&&(qr.detachEvent("onpropertychange",tn),Gr=qr=null)}function tn(e){if("value"===e.propertyName&&Xr(Gr)){var t=[];$r(t,Gr,e,Ee(e)),Ie(Wr,t)}}function rn(e,t,r){"focusin"===e?(en(),Gr=r,(qr=t).attachEvent("onpropertychange",tn)):"focusout"===e&&en()}function nn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Xr(Gr)}function on(e,t){if("click"===e)return Xr(t)}function an(e,t){if("input"===e||"change"===e)return Xr(t)}var sn="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function ln(e,t){if(sn(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var i=r[n];if(!d.call(t,i)||!sn(e[i],t[i]))return!1}return!0}function cn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function un(e,t){var r,n=cn(e);for(e=0;n;){if(3===n.nodeType){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=cn(n)}}function dn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function hn(){for(var e=window,t=X();t instanceof e.HTMLIFrameElement;){try{var r="string"==typeof t.contentWindow.location.href}catch(e){r=!1}if(!r)break;t=X((e=t.contentWindow).document)}return t}function fn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function pn(e){var t=hn(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&dn(r.ownerDocument.documentElement,r)){if(null!==n&&fn(r))if(t=n.start,void 0===(e=n.end)&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if((e=(t=r.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=r.textContent.length,o=Math.min(n.start,i);n=void 0===n.end?o:Math.min(n.end,i),!e.extend&&o>n&&(i=n,n=o,o=i),i=un(r,o);var a=un(r,n);i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>n?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=r;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof r.focus&&r.focus(),r=0;r<t.length;r++)(e=t[r]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mn=u&&"documentMode"in document&&11>=document.documentMode,bn=null,gn=null,yn=null,vn=!1;function wn(e,t,r){var n=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;vn||null==bn||bn!==X(n)||(n="selectionStart"in(n=bn)&&fn(n)?{start:n.selectionStart,end:n.selectionEnd}:{anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},yn&&ln(yn,n)||(yn=n,0<(n=Gn(gn,"onSelect")).length&&(t=new cr("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=bn)))}function En(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Sn={animationend:En("Animation","AnimationEnd"),animationiteration:En("Animation","AnimationIteration"),animationstart:En("Animation","AnimationStart"),transitionend:En("Transition","TransitionEnd")},Cn={},kn={};function xn(e){if(Cn[e])return Cn[e];if(!Sn[e])return e;var t,r=Sn[e];for(t in r)if(r.hasOwnProperty(t)&&t in kn)return Cn[e]=r[t];return e}u&&(kn=document.createElement("div").style,"AnimationEvent"in window||(delete Sn.animationend.animation,delete Sn.animationiteration.animation,delete Sn.animationstart.animation),"TransitionEvent"in window||delete Sn.transitionend.transition);var Pn=xn("animationend"),_n=xn("animationiteration"),On=xn("animationstart"),An=xn("transitionend"),Tn=new Map,In="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Mn(e,t){Tn.set(e,t),l(t,[e])}for(var Dn=0;Dn<In.length;Dn++){var Rn=In[Dn];Mn(Rn.toLowerCase(),"on"+(Rn[0].toUpperCase()+Rn.slice(1)))}Mn(Pn,"onAnimationEnd"),Mn(_n,"onAnimationIteration"),Mn(On,"onAnimationStart"),Mn("dblclick","onDoubleClick"),Mn("focusin","onFocus"),Mn("focusout","onBlur"),Mn(An,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Fn="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ln=new Set("cancel close invalid load scroll toggle".split(" ").concat(Fn));function jn(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,n,i,a,s,l,c){if(Be.apply(this,arguments),Le){if(!Le)throw Error(o(198));var u=je;Le=!1,je=null,Ne||(Ne=!0,Ue=u)}}(n,t,void 0,e),e.currentTarget=null}function Nn(e,t){t=!!(4&t);for(var r=0;r<e.length;r++){var n=e[r],i=n.event;n=n.listeners;e:{var o=void 0;if(t)for(var a=n.length-1;0<=a;a--){var s=n[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;jn(i,s,c),o=l}else for(a=0;a<n.length;a++){if(l=(s=n[a]).instance,c=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;jn(i,s,c),o=l}}}if(Ne)throw e=Ue,Ne=!1,Ue=null,e}function Un(e,t){var r=t[mi];void 0===r&&(r=t[mi]=new Set);var n=e+"__bubble";r.has(n)||(Vn(t,e,2,!1),r.add(n))}function Hn(e,t,r){var n=0;t&&(n|=4),Vn(r,e,n,t)}var Bn="_reactListening"+Math.random().toString(36).slice(2);function zn(e){if(!e[Bn]){e[Bn]=!0,a.forEach((function(t){"selectionchange"!==t&&(Ln.has(t)||Hn(t,!1,e),Hn(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Bn]||(t[Bn]=!0,Hn("selectionchange",!1,t))}}function Vn(e,t,r,n){switch(Qt(t)){case 1:var i=qt;break;case 4:i=Gt;break;default:i=Wt}r=i.bind(null,t,r,e),i=void 0,!De||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),n?void 0!==i?e.addEventListener(t,r,{capture:!0,passive:i}):e.addEventListener(t,r,!0):void 0!==i?e.addEventListener(t,r,{passive:i}):e.addEventListener(t,r,!1)}function $n(e,t,r,n,i){var o=n;if(!(1&t||2&t||null===n))e:for(;;){if(null===n)return;var a=n.tag;if(3===a||4===a){var s=n.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=n.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=yi(s)))return;if(5===(l=a.tag)||6===l){n=o=a;continue e}s=s.parentNode}}n=n.return}Ie((function(){var n=o,i=Ee(r),a=[];e:{var s=Tn.get(e);if(void 0!==s){var l=cr,c=e;switch(e){case"keypress":if(0===tr(r))break e;case"keydown":case"keyup":l=Pr;break;case"focusin":c="focus",l=mr;break;case"focusout":c="blur",l=mr;break;case"beforeblur":case"afterblur":l=mr;break;case"click":if(2===r.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=fr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=pr;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Or;break;case Pn:case _n:case On:l=br;break;case An:l=Ar;break;case"scroll":l=dr;break;case"wheel":l=Ir;break;case"copy":case"cut":case"paste":l=yr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=_r}var u=!!(4&t),d=!u&&"scroll"===e,h=u?null!==s?s+"Capture":null:s;u=[];for(var f,p=n;null!==p;){var m=(f=p).stateNode;if(5===f.tag&&null!==m&&(f=m,null!==h&&null!=(m=Me(p,h))&&u.push(qn(p,m,f))),d)break;p=p.return}0<u.length&&(s=new l(s,c,null,r,i),a.push({event:s,listeners:u}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||r===we||!(c=r.relatedTarget||r.fromElement)||!yi(c)&&!c[pi])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=n,null!==(c=(c=r.relatedTarget||r.toElement)?yi(c):null)&&(c!==(d=ze(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=n),l!==c)){if(u=fr,m="onMouseLeave",h="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(u=_r,m="onPointerLeave",h="onPointerEnter",p="pointer"),d=null==l?s:wi(l),f=null==c?s:wi(c),(s=new u(m,p+"leave",l,r,i)).target=d,s.relatedTarget=f,m=null,yi(i)===n&&((u=new u(h,p+"enter",c,r,i)).target=f,u.relatedTarget=d,m=u),d=m,l&&c)e:{for(h=c,p=0,f=u=l;f;f=Wn(f))p++;for(f=0,m=h;m;m=Wn(m))f++;for(;0<p-f;)u=Wn(u),p--;for(;0<f-p;)h=Wn(h),f--;for(;p--;){if(u===h||null!==h&&u===h.alternate)break e;u=Wn(u),h=Wn(h)}u=null}else u=null;null!==l&&Xn(a,s,l,u,!1),null!==c&&null!==d&&Xn(a,d,c,u,!0)}if("select"===(l=(s=n?wi(n):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var b=Kr;else if(Vr(s))if(Qr)b=an;else{b=nn;var g=rn}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(b=on);switch(b&&(b=b(e,n))?$r(a,b,r,i):(g&&g(e,s,n),"focusout"===e&&(g=s._wrapperState)&&g.controlled&&"number"===s.type&&ee(s,"number",s.value)),g=n?wi(n):window,e){case"focusin":(Vr(g)||"true"===g.contentEditable)&&(bn=g,gn=n,yn=null);break;case"focusout":yn=gn=bn=null;break;case"mousedown":vn=!0;break;case"contextmenu":case"mouseup":case"dragend":vn=!1,wn(a,r,i);break;case"selectionchange":if(mn)break;case"keydown":case"keyup":wn(a,r,i)}var y;if(Dr)e:{switch(e){case"compositionstart":var v="onCompositionStart";break e;case"compositionend":v="onCompositionEnd";break e;case"compositionupdate":v="onCompositionUpdate";break e}v=void 0}else Br?Ur(e,r)&&(v="onCompositionEnd"):"keydown"===e&&229===r.keyCode&&(v="onCompositionStart");v&&(Lr&&"ko"!==r.locale&&(Br||"onCompositionStart"!==v?"onCompositionEnd"===v&&Br&&(y=er()):(Jt="value"in(Yt=i)?Yt.value:Yt.textContent,Br=!0)),0<(g=Gn(n,v)).length&&(v=new vr(v,e,null,r,i),a.push({event:v,listeners:g}),(y||null!==(y=Hr(r)))&&(v.data=y))),(y=Fr?function(e,t){switch(e){case"compositionend":return Hr(t);case"keypress":return 32!==t.which?null:(Nr=!0,jr);case"textInput":return(e=t.data)===jr&&Nr?null:e;default:return null}}(e,r):function(e,t){if(Br)return"compositionend"===e||!Dr&&Ur(e,t)?(e=er(),Zt=Jt=Yt=null,Br=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Lr&&"ko"!==t.locale?null:t.data}}(e,r))&&0<(n=Gn(n,"onBeforeInput")).length&&(i=new vr("onBeforeInput","beforeinput",null,r,i),a.push({event:i,listeners:n}),i.data=y)}Nn(a,t)}))}function qn(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Gn(e,t){for(var r=t+"Capture",n=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=Me(e,r))&&n.unshift(qn(e,o,i)),null!=(o=Me(e,t))&&n.push(qn(e,o,i))),e=e.return}return n}function Wn(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Xn(e,t,r,n,i){for(var o=t._reactName,a=[];null!==r&&r!==n;){var s=r,l=s.alternate,c=s.stateNode;if(null!==l&&l===n)break;5===s.tag&&null!==c&&(s=c,i?null!=(l=Me(r,o))&&a.unshift(qn(r,l,s)):i||null!=(l=Me(r,o))&&a.push(qn(r,l,s))),r=r.return}0!==a.length&&e.push({event:t,listeners:a})}var Kn=/\r\n?/g,Qn=/\u0000|\uFFFD/g;function Yn(e){return("string"==typeof e?e:""+e).replace(Kn,"\n").replace(Qn,"")}function Jn(e,t,r){if(t=Yn(t),Yn(e)!==t&&r)throw Error(o(425))}function Zn(){}var ei=null,ti=null;function ri(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ni="function"==typeof setTimeout?setTimeout:void 0,ii="function"==typeof clearTimeout?clearTimeout:void 0,oi="function"==typeof Promise?Promise:void 0,ai="function"==typeof queueMicrotask?queueMicrotask:void 0!==oi?function(e){return oi.resolve(null).then(e).catch(si)}:ni;function si(e){setTimeout((function(){throw e}))}function li(e,t){var r=t,n=0;do{var i=r.nextSibling;if(e.removeChild(r),i&&8===i.nodeType)if("/$"===(r=i.data)){if(0===n)return e.removeChild(i),void zt(t);n--}else"$"!==r&&"$?"!==r&&"$!"!==r||n++;r=i}while(r);zt(t)}function ci(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ui(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var r=e.data;if("$"===r||"$!"===r||"$?"===r){if(0===t)return e;t--}else"/$"===r&&t++}e=e.previousSibling}return null}var di=Math.random().toString(36).slice(2),hi="__reactFiber$"+di,fi="__reactProps$"+di,pi="__reactContainer$"+di,mi="__reactEvents$"+di,bi="__reactListeners$"+di,gi="__reactHandles$"+di;function yi(e){var t=e[hi];if(t)return t;for(var r=e.parentNode;r;){if(t=r[pi]||r[hi]){if(r=t.alternate,null!==t.child||null!==r&&null!==r.child)for(e=ui(e);null!==e;){if(r=e[hi])return r;e=ui(e)}return t}r=(e=r).parentNode}return null}function vi(e){return!(e=e[hi]||e[pi])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function wi(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function Ei(e){return e[fi]||null}var Si=[],Ci=-1;function ki(e){return{current:e}}function xi(e){0>Ci||(e.current=Si[Ci],Si[Ci]=null,Ci--)}function Pi(e,t){Ci++,Si[Ci]=e.current,e.current=t}var _i={},Oi=ki(_i),Ai=ki(!1),Ti=_i;function Ii(e,t){var r=e.type.contextTypes;if(!r)return _i;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in r)o[i]=t[i];return n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Mi(e){return null!=e.childContextTypes}function Di(){xi(Ai),xi(Oi)}function Ri(e,t,r){if(Oi.current!==_i)throw Error(o(168));Pi(Oi,t),Pi(Ai,r)}function Fi(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,"function"!=typeof n.getChildContext)return r;for(var i in n=n.getChildContext())if(!(i in t))throw Error(o(108,V(e)||"Unknown",i));return j({},r,n)}function Li(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||_i,Ti=Oi.current,Pi(Oi,e),Pi(Ai,Ai.current),!0}function ji(e,t,r){var n=e.stateNode;if(!n)throw Error(o(169));r?(e=Fi(e,t,Ti),n.__reactInternalMemoizedMergedChildContext=e,xi(Ai),xi(Oi),Pi(Oi,e)):xi(Ai),Pi(Ai,r)}var Ni=null,Ui=!1,Hi=!1;function Bi(e){null===Ni?Ni=[e]:Ni.push(e)}function zi(){if(!Hi&&null!==Ni){Hi=!0;var e=0,t=vt;try{var r=Ni;for(vt=1;e<r.length;e++){var n=r[e];do{n=n(!0)}while(null!==n)}Ni=null,Ui=!1}catch(t){throw null!==Ni&&(Ni=Ni.slice(e+1)),We(Ze,zi),t}finally{vt=t,Hi=!1}}return null}var Vi=[],$i=0,qi=null,Gi=0,Wi=[],Xi=0,Ki=null,Qi=1,Yi="";function Ji(e,t){Vi[$i++]=Gi,Vi[$i++]=qi,qi=e,Gi=t}function Zi(e,t,r){Wi[Xi++]=Qi,Wi[Xi++]=Yi,Wi[Xi++]=Ki,Ki=e;var n=Qi;e=Yi;var i=32-at(n)-1;n&=~(1<<i),r+=1;var o=32-at(t)+i;if(30<o){var a=i-i%5;o=(n&(1<<a)-1).toString(32),n>>=a,i-=a,Qi=1<<32-at(t)+i|r<<i|n,Yi=o+e}else Qi=1<<o|r<<i|n,Yi=e}function eo(e){null!==e.return&&(Ji(e,1),Zi(e,1,0))}function to(e){for(;e===qi;)qi=Vi[--$i],Vi[$i]=null,Gi=Vi[--$i],Vi[$i]=null;for(;e===Ki;)Ki=Wi[--Xi],Wi[Xi]=null,Yi=Wi[--Xi],Wi[Xi]=null,Qi=Wi[--Xi],Wi[Xi]=null}var ro=null,no=null,io=!1,oo=null;function ao(e,t){var r=Ic(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,null===(t=e.deletions)?(e.deletions=[r],e.flags|=16):t.push(r)}function so(e,t){switch(e.tag){case 5:var r=e.type;return null!==(t=1!==t.nodeType||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ro=e,no=ci(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ro=e,no=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(r=null!==Ki?{id:Qi,overflow:Yi}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},(r=Ic(18,null,null,0)).stateNode=t,r.return=e,e.child=r,ro=e,no=null,!0);default:return!1}}function lo(e){return!(!(1&e.mode)||128&e.flags)}function co(e){if(io){var t=no;if(t){var r=t;if(!so(e,t)){if(lo(e))throw Error(o(418));t=ci(r.nextSibling);var n=ro;t&&so(e,t)?ao(n,r):(e.flags=-4097&e.flags|2,io=!1,ro=e)}}else{if(lo(e))throw Error(o(418));e.flags=-4097&e.flags|2,io=!1,ro=e}}}function uo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ro=e}function ho(e){if(e!==ro)return!1;if(!io)return uo(e),io=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ri(e.type,e.memoizedProps)),t&&(t=no)){if(lo(e))throw fo(),Error(o(418));for(;t;)ao(e,t),t=ci(t.nextSibling)}if(uo(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){no=ci(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}no=null}}else no=ro?ci(e.stateNode.nextSibling):null;return!0}function fo(){for(var e=no;e;)e=ci(e.nextSibling)}function po(){no=ro=null,io=!1}function mo(e){null===oo?oo=[e]:oo.push(e)}var bo=w.ReactCurrentBatchConfig;function go(e,t,r){if(null!==(e=r.ref)&&"function"!=typeof e&&"object"!=typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(o(309));var n=r.stateNode}if(!n)throw Error(o(147,e));var i=n,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=i.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(o(284));if(!r._owner)throw Error(o(290,e))}return e}function yo(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function vo(e){return(0,e._init)(e._payload)}function wo(e){function t(t,r){if(e){var n=t.deletions;null===n?(t.deletions=[r],t.flags|=16):n.push(r)}}function r(r,n){if(!e)return null;for(;null!==n;)t(r,n),n=n.sibling;return null}function n(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Dc(e,t)).index=0,e.sibling=null,e}function a(t,r,n){return t.index=n,e?null!==(n=t.alternate)?(n=n.index)<r?(t.flags|=2,r):n:(t.flags|=2,r):(t.flags|=1048576,r)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,r,n){return null===t||6!==t.tag?((t=jc(r,e.mode,n)).return=e,t):((t=i(t,r)).return=e,t)}function c(e,t,r,n){var o=r.type;return o===C?d(e,t,r.props.children,n,r.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===M&&vo(o)===t.type)?((n=i(t,r.props)).ref=go(e,t,r),n.return=e,n):((n=Rc(r.type,r.key,r.props,null,e.mode,n)).ref=go(e,t,r),n.return=e,n)}function u(e,t,r,n){return null===t||4!==t.tag||t.stateNode.containerInfo!==r.containerInfo||t.stateNode.implementation!==r.implementation?((t=Nc(r,e.mode,n)).return=e,t):((t=i(t,r.children||[])).return=e,t)}function d(e,t,r,n,o){return null===t||7!==t.tag?((t=Fc(r,e.mode,n,o)).return=e,t):((t=i(t,r)).return=e,t)}function h(e,t,r){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=jc(""+t,e.mode,r)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case E:return(r=Rc(t.type,t.key,t.props,null,e.mode,r)).ref=go(e,null,t),r.return=e,r;case S:return(t=Nc(t,e.mode,r)).return=e,t;case M:return h(e,(0,t._init)(t._payload),r)}if(te(t)||F(t))return(t=Fc(t,e.mode,r,null)).return=e,t;yo(e,t)}return null}function f(e,t,r,n){var i=null!==t?t.key:null;if("string"==typeof r&&""!==r||"number"==typeof r)return null!==i?null:l(e,t,""+r,n);if("object"==typeof r&&null!==r){switch(r.$$typeof){case E:return r.key===i?c(e,t,r,n):null;case S:return r.key===i?u(e,t,r,n):null;case M:return f(e,t,(i=r._init)(r._payload),n)}if(te(r)||F(r))return null!==i?null:d(e,t,r,n,null);yo(e,r)}return null}function p(e,t,r,n,i){if("string"==typeof n&&""!==n||"number"==typeof n)return l(t,e=e.get(r)||null,""+n,i);if("object"==typeof n&&null!==n){switch(n.$$typeof){case E:return c(t,e=e.get(null===n.key?r:n.key)||null,n,i);case S:return u(t,e=e.get(null===n.key?r:n.key)||null,n,i);case M:return p(e,t,r,(0,n._init)(n._payload),i)}if(te(n)||F(n))return d(t,e=e.get(r)||null,n,i,null);yo(t,n)}return null}function m(i,o,s,l){for(var c=null,u=null,d=o,m=o=0,b=null;null!==d&&m<s.length;m++){d.index>m?(b=d,d=null):b=d.sibling;var g=f(i,d,s[m],l);if(null===g){null===d&&(d=b);break}e&&d&&null===g.alternate&&t(i,d),o=a(g,o,m),null===u?c=g:u.sibling=g,u=g,d=b}if(m===s.length)return r(i,d),io&&Ji(i,m),c;if(null===d){for(;m<s.length;m++)null!==(d=h(i,s[m],l))&&(o=a(d,o,m),null===u?c=d:u.sibling=d,u=d);return io&&Ji(i,m),c}for(d=n(i,d);m<s.length;m++)null!==(b=p(d,i,m,s[m],l))&&(e&&null!==b.alternate&&d.delete(null===b.key?m:b.key),o=a(b,o,m),null===u?c=b:u.sibling=b,u=b);return e&&d.forEach((function(e){return t(i,e)})),io&&Ji(i,m),c}function b(i,s,l,c){var u=F(l);if("function"!=typeof u)throw Error(o(150));if(null==(l=u.call(l)))throw Error(o(151));for(var d=u=null,m=s,b=s=0,g=null,y=l.next();null!==m&&!y.done;b++,y=l.next()){m.index>b?(g=m,m=null):g=m.sibling;var v=f(i,m,y.value,c);if(null===v){null===m&&(m=g);break}e&&m&&null===v.alternate&&t(i,m),s=a(v,s,b),null===d?u=v:d.sibling=v,d=v,m=g}if(y.done)return r(i,m),io&&Ji(i,b),u;if(null===m){for(;!y.done;b++,y=l.next())null!==(y=h(i,y.value,c))&&(s=a(y,s,b),null===d?u=y:d.sibling=y,d=y);return io&&Ji(i,b),u}for(m=n(i,m);!y.done;b++,y=l.next())null!==(y=p(m,i,b,y.value,c))&&(e&&null!==y.alternate&&m.delete(null===y.key?b:y.key),s=a(y,s,b),null===d?u=y:d.sibling=y,d=y);return e&&m.forEach((function(e){return t(i,e)})),io&&Ji(i,b),u}return function e(n,o,a,l){if("object"==typeof a&&null!==a&&a.type===C&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case E:e:{for(var c=a.key,u=o;null!==u;){if(u.key===c){if((c=a.type)===C){if(7===u.tag){r(n,u.sibling),(o=i(u,a.props.children)).return=n,n=o;break e}}else if(u.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===M&&vo(c)===u.type){r(n,u.sibling),(o=i(u,a.props)).ref=go(n,u,a),o.return=n,n=o;break e}r(n,u);break}t(n,u),u=u.sibling}a.type===C?((o=Fc(a.props.children,n.mode,l,a.key)).return=n,n=o):((l=Rc(a.type,a.key,a.props,null,n.mode,l)).ref=go(n,o,a),l.return=n,n=l)}return s(n);case S:e:{for(u=a.key;null!==o;){if(o.key===u){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){r(n,o.sibling),(o=i(o,a.children||[])).return=n,n=o;break e}r(n,o);break}t(n,o),o=o.sibling}(o=Nc(a,n.mode,l)).return=n,n=o}return s(n);case M:return e(n,o,(u=a._init)(a._payload),l)}if(te(a))return m(n,o,a,l);if(F(a))return b(n,o,a,l);yo(n,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==o&&6===o.tag?(r(n,o.sibling),(o=i(o,a)).return=n,n=o):(r(n,o),(o=jc(a,n.mode,l)).return=n,n=o),s(n)):r(n,o)}}var Eo=wo(!0),So=wo(!1),Co=ki(null),ko=null,xo=null,Po=null;function _o(){Po=xo=ko=null}function Oo(e){var t=Co.current;xi(Co),e._currentValue=t}function Ao(e,t,r){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==n&&(n.childLanes|=t)):null!==n&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function To(e,t){ko=e,Po=xo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(vs=!0),e.firstContext=null)}function Io(e){var t=e._currentValue;if(Po!==e)if(e={context:e,memoizedValue:t,next:null},null===xo){if(null===ko)throw Error(o(308));xo=e,ko.dependencies={lanes:0,firstContext:e}}else xo=xo.next=e;return t}var Mo=null;function Do(e){null===Mo?Mo=[e]:Mo.push(e)}function Ro(e,t,r,n){var i=t.interleaved;return null===i?(r.next=r,Do(t)):(r.next=i.next,i.next=r),t.interleaved=r,Fo(e,n)}function Fo(e,t){e.lanes|=t;var r=e.alternate;for(null!==r&&(r.lanes|=t),r=e,e=e.return;null!==e;)e.childLanes|=t,null!==(r=e.alternate)&&(r.childLanes|=t),r=e,e=e.return;return 3===r.tag?r.stateNode:null}var Lo=!1;function jo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function No(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Uo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ho(e,t,r){var n=e.updateQueue;if(null===n)return null;if(n=n.shared,2&Ol){var i=n.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),n.pending=t,Fo(e,r)}return null===(i=n.interleaved)?(t.next=t,Do(n)):(t.next=i.next,i.next=t),n.interleaved=t,Fo(e,r)}function Bo(e,t,r){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&r)){var n=t.lanes;r|=n&=e.pendingLanes,t.lanes=r,yt(e,r)}}function zo(e,t){var r=e.updateQueue,n=e.alternate;if(null!==n&&r===(n=n.updateQueue)){var i=null,o=null;if(null!==(r=r.firstBaseUpdate)){do{var a={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};null===o?i=o=a:o=o.next=a,r=r.next}while(null!==r);null===o?i=o=t:o=o.next=t}else i=o=t;return r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:n.shared,effects:n.effects},void(e.updateQueue=r)}null===(e=r.lastBaseUpdate)?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Vo(e,t,r,n){var i=e.updateQueue;Lo=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,c=l.next;l.next=null,null===a?o=c:a.next=c,a=l;var u=e.alternate;null!==u&&(s=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l)}if(null!==o){var d=i.baseState;for(a=0,u=c=l=null,s=o;;){var h=s.lane,f=s.eventTime;if((n&h)===h){null!==u&&(u=u.next={eventTime:f,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,m=s;switch(h=t,f=r,m.tag){case 1:if("function"==typeof(p=m.payload)){d=p.call(f,d,h);break e}d=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null==(h="function"==typeof(p=m.payload)?p.call(f,d,h):p))break e;d=j({},d,h);break e;case 2:Lo=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(h=i.effects)?i.effects=[s]:h.push(s))}else f={eventTime:f,lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=f,l=d):u=u.next=f,a|=h;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(h=s).next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}if(null===u&&(l=d),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,null!==(t=i.shared.interleaved)){i=t;do{a|=i.lane,i=i.next}while(i!==t)}else null===o&&(i.shared.lanes=0);Ll|=a,e.lanes=a,e.memoizedState=d}}function $o(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var n=e[t],i=n.callback;if(null!==i){if(n.callback=null,n=r,"function"!=typeof i)throw Error(o(191,i));i.call(n)}}}var qo={},Go=ki(qo),Wo=ki(qo),Xo=ki(qo);function Ko(e){if(e===qo)throw Error(o(174));return e}function Qo(e,t){switch(Pi(Xo,t),Pi(Wo,e),Pi(Go,qo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}xi(Go),Pi(Go,t)}function Yo(){xi(Go),xi(Wo),xi(Xo)}function Jo(e){Ko(Xo.current);var t=Ko(Go.current),r=le(t,e.type);t!==r&&(Pi(Wo,e),Pi(Go,r))}function Zo(e){Wo.current===e&&(xi(Go),xi(Wo))}var ea=ki(0);function ta(e){for(var t=e;null!==t;){if(13===t.tag){var r=t.memoizedState;if(null!==r&&(null===(r=r.dehydrated)||"$?"===r.data||"$!"===r.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ra=[];function na(){for(var e=0;e<ra.length;e++)ra[e]._workInProgressVersionPrimary=null;ra.length=0}var ia=w.ReactCurrentDispatcher,oa=w.ReactCurrentBatchConfig,aa=0,sa=null,la=null,ca=null,ua=!1,da=!1,ha=0,fa=0;function pa(){throw Error(o(321))}function ma(e,t){if(null===t)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!sn(e[r],t[r]))return!1;return!0}function ba(e,t,r,n,i,a){if(aa=a,sa=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ia.current=null===e||null===e.memoizedState?Za:es,e=r(n,i),da){a=0;do{if(da=!1,ha=0,25<=a)throw Error(o(301));a+=1,ca=la=null,t.updateQueue=null,ia.current=ts,e=r(n,i)}while(da)}if(ia.current=Ja,t=null!==la&&null!==la.next,aa=0,ca=la=sa=null,ua=!1,t)throw Error(o(300));return e}function ga(){var e=0!==ha;return ha=0,e}function ya(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ca?sa.memoizedState=ca=e:ca=ca.next=e,ca}function va(){if(null===la){var e=sa.alternate;e=null!==e?e.memoizedState:null}else e=la.next;var t=null===ca?sa.memoizedState:ca.next;if(null!==t)ca=t,la=e;else{if(null===e)throw Error(o(310));e={memoizedState:(la=e).memoizedState,baseState:la.baseState,baseQueue:la.baseQueue,queue:la.queue,next:null},null===ca?sa.memoizedState=ca=e:ca=ca.next=e}return ca}function wa(e,t){return"function"==typeof t?t(e):t}function Ea(e){var t=va(),r=t.queue;if(null===r)throw Error(o(311));r.lastRenderedReducer=e;var n=la,i=n.baseQueue,a=r.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}n.baseQueue=i=a,r.pending=null}if(null!==i){a=i.next,n=n.baseState;var l=s=null,c=null,u=a;do{var d=u.lane;if((aa&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),n=u.hasEagerState?u.eagerState:e(n,u.action);else{var h={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(l=c=h,s=n):c=c.next=h,sa.lanes|=d,Ll|=d}u=u.next}while(null!==u&&u!==a);null===c?s=n:c.next=l,sn(n,t.memoizedState)||(vs=!0),t.memoizedState=n,t.baseState=s,t.baseQueue=c,r.lastRenderedState=n}if(null!==(e=r.interleaved)){i=e;do{a=i.lane,sa.lanes|=a,Ll|=a,i=i.next}while(i!==e)}else null===i&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Sa(e){var t=va(),r=t.queue;if(null===r)throw Error(o(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,a=t.memoizedState;if(null!==i){r.pending=null;var s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);sn(a,t.memoizedState)||(vs=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),r.lastRenderedState=a}return[a,n]}function Ca(){}function ka(e,t){var r=sa,n=va(),i=t(),a=!sn(n.memoizedState,i);if(a&&(n.memoizedState=i,vs=!0),n=n.queue,La(_a.bind(null,r,n,e),[e]),n.getSnapshot!==t||a||null!==ca&&1&ca.memoizedState.tag){if(r.flags|=2048,Ia(9,Pa.bind(null,r,n,i,t),void 0,null),null===Al)throw Error(o(349));30&aa||xa(r,t,i)}return i}function xa(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.stores=[e]):null===(r=t.stores)?t.stores=[e]:r.push(e)}function Pa(e,t,r,n){t.value=r,t.getSnapshot=n,Oa(t)&&Aa(e)}function _a(e,t,r){return r((function(){Oa(t)&&Aa(e)}))}function Oa(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!sn(e,r)}catch(e){return!0}}function Aa(e){var t=Fo(e,1);null!==t&&rc(t,e,1,-1)}function Ta(e){var t=ya();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:wa,lastRenderedState:e},t.queue=e,e=e.dispatch=Xa.bind(null,sa,e),[t.memoizedState,e]}function Ia(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.lastEffect=e.next=e):null===(r=t.lastEffect)?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e),e}function Ma(){return va().memoizedState}function Da(e,t,r,n){var i=ya();sa.flags|=e,i.memoizedState=Ia(1|t,r,void 0,void 0===n?null:n)}function Ra(e,t,r,n){var i=va();n=void 0===n?null:n;var o=void 0;if(null!==la){var a=la.memoizedState;if(o=a.destroy,null!==n&&ma(n,a.deps))return void(i.memoizedState=Ia(t,r,o,n))}sa.flags|=e,i.memoizedState=Ia(1|t,r,o,n)}function Fa(e,t){return Da(8390656,8,e,t)}function La(e,t){return Ra(2048,8,e,t)}function ja(e,t){return Ra(4,2,e,t)}function Na(e,t){return Ra(4,4,e,t)}function Ua(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ha(e,t,r){return r=null!=r?r.concat([e]):null,Ra(4,4,Ua.bind(null,t,e),r)}function Ba(){}function za(e,t){var r=va();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&ma(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function Va(e,t){var r=va();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&ma(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function $a(e,t,r){return 21&aa?(sn(r,t)||(r=mt(),sa.lanes|=r,Ll|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,vs=!0),e.memoizedState=r)}function qa(e,t){var r=vt;vt=0!==r&&4>r?r:4,e(!0);var n=oa.transition;oa.transition={};try{e(!1),t()}finally{vt=r,oa.transition=n}}function Ga(){return va().memoizedState}function Wa(e,t,r){var n=tc(e);r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},Ka(e)?Qa(t,r):null!==(r=Ro(e,t,r,n))&&(rc(r,e,n,ec()),Ya(r,t,n))}function Xa(e,t,r){var n=tc(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(Ka(e))Qa(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,r);if(i.hasEagerState=!0,i.eagerState=s,sn(s,a)){var l=t.interleaved;return null===l?(i.next=i,Do(t)):(i.next=l.next,l.next=i),void(t.interleaved=i)}}catch(e){}null!==(r=Ro(e,t,i,n))&&(rc(r,e,n,i=ec()),Ya(r,t,n))}}function Ka(e){var t=e.alternate;return e===sa||null!==t&&t===sa}function Qa(e,t){da=ua=!0;var r=e.pending;null===r?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function Ya(e,t,r){if(4194240&r){var n=t.lanes;r|=n&=e.pendingLanes,t.lanes=r,yt(e,r)}}var Ja={readContext:Io,useCallback:pa,useContext:pa,useEffect:pa,useImperativeHandle:pa,useInsertionEffect:pa,useLayoutEffect:pa,useMemo:pa,useReducer:pa,useRef:pa,useState:pa,useDebugValue:pa,useDeferredValue:pa,useTransition:pa,useMutableSource:pa,useSyncExternalStore:pa,useId:pa,unstable_isNewReconciler:!1},Za={readContext:Io,useCallback:function(e,t){return ya().memoizedState=[e,void 0===t?null:t],e},useContext:Io,useEffect:Fa,useImperativeHandle:function(e,t,r){return r=null!=r?r.concat([e]):null,Da(4194308,4,Ua.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Da(4194308,4,e,t)},useInsertionEffect:function(e,t){return Da(4,2,e,t)},useMemo:function(e,t){var r=ya();return t=void 0===t?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=ya();return t=void 0!==r?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=Wa.bind(null,sa,e),[n.memoizedState,e]},useRef:function(e){return e={current:e},ya().memoizedState=e},useState:Ta,useDebugValue:Ba,useDeferredValue:function(e){return ya().memoizedState=e},useTransition:function(){var e=Ta(!1),t=e[0];return e=qa.bind(null,e[1]),ya().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=sa,i=ya();if(io){if(void 0===r)throw Error(o(407));r=r()}else{if(r=t(),null===Al)throw Error(o(349));30&aa||xa(n,t,r)}i.memoizedState=r;var a={value:r,getSnapshot:t};return i.queue=a,Fa(_a.bind(null,n,a,e),[e]),n.flags|=2048,Ia(9,Pa.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=ya(),t=Al.identifierPrefix;if(io){var r=Yi;t=":"+t+"R"+(r=(Qi&~(1<<32-at(Qi)-1)).toString(32)+r),0<(r=ha++)&&(t+="H"+r.toString(32)),t+=":"}else t=":"+t+"r"+(r=fa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},es={readContext:Io,useCallback:za,useContext:Io,useEffect:La,useImperativeHandle:Ha,useInsertionEffect:ja,useLayoutEffect:Na,useMemo:Va,useReducer:Ea,useRef:Ma,useState:function(){return Ea(wa)},useDebugValue:Ba,useDeferredValue:function(e){return $a(va(),la.memoizedState,e)},useTransition:function(){return[Ea(wa)[0],va().memoizedState]},useMutableSource:Ca,useSyncExternalStore:ka,useId:Ga,unstable_isNewReconciler:!1},ts={readContext:Io,useCallback:za,useContext:Io,useEffect:La,useImperativeHandle:Ha,useInsertionEffect:ja,useLayoutEffect:Na,useMemo:Va,useReducer:Sa,useRef:Ma,useState:function(){return Sa(wa)},useDebugValue:Ba,useDeferredValue:function(e){var t=va();return null===la?t.memoizedState=e:$a(t,la.memoizedState,e)},useTransition:function(){return[Sa(wa)[0],va().memoizedState]},useMutableSource:Ca,useSyncExternalStore:ka,useId:Ga,unstable_isNewReconciler:!1};function rs(e,t){if(e&&e.defaultProps){for(var r in t=j({},t),e=e.defaultProps)void 0===t[r]&&(t[r]=e[r]);return t}return t}function ns(e,t,r,n){r=null==(r=r(n,t=e.memoizedState))?t:j({},t,r),e.memoizedState=r,0===e.lanes&&(e.updateQueue.baseState=r)}var is={isMounted:function(e){return!!(e=e._reactInternals)&&ze(e)===e},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=ec(),i=tc(e),o=Uo(n,i);o.payload=t,null!=r&&(o.callback=r),null!==(t=Ho(e,o,i))&&(rc(t,e,i,n),Bo(t,e,i))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=ec(),i=tc(e),o=Uo(n,i);o.tag=1,o.payload=t,null!=r&&(o.callback=r),null!==(t=Ho(e,o,i))&&(rc(t,e,i,n),Bo(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=ec(),n=tc(e),i=Uo(r,n);i.tag=2,null!=t&&(i.callback=t),null!==(t=Ho(e,i,n))&&(rc(t,e,n,r),Bo(t,e,n))}};function os(e,t,r,n,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(n,o,a):!(t.prototype&&t.prototype.isPureReactComponent&&ln(r,n)&&ln(i,o))}function as(e,t,r){var n=!1,i=_i,o=t.contextType;return"object"==typeof o&&null!==o?o=Io(o):(i=Mi(t)?Ti:Oi.current,o=(n=null!=(n=t.contextTypes))?Ii(e,i):_i),t=new t(r,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=is,e.stateNode=t,t._reactInternals=e,n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function ss(e,t,r,n){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(r,n),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&is.enqueueReplaceState(t,t.state,null)}function ls(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs={},jo(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=Io(o):(o=Mi(t)?Ti:Oi.current,i.context=Ii(e,o)),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(ns(e,t,o,r),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&is.enqueueReplaceState(i,i.state,null),Vo(e,r,i,n),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4194308)}function cs(e,t){try{var r="",n=t;do{r+=B(n),n=n.return}while(n);var i=r}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i,digest:null}}function us(e,t,r){return{value:e,source:null,stack:null!=r?r:null,digest:null!=t?t:null}}function ds(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var hs="function"==typeof WeakMap?WeakMap:Map;function fs(e,t,r){(r=Uo(-1,r)).tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){$l||($l=!0,ql=n),ds(0,t)},r}function ps(e,t,r){(r=Uo(-1,r)).tag=3;var n=e.type.getDerivedStateFromError;if("function"==typeof n){var i=t.value;r.payload=function(){return n(i)},r.callback=function(){ds(0,t)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(r.callback=function(){ds(0,t),"function"!=typeof n&&(null===Gl?Gl=new Set([this]):Gl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),r}function ms(e,t,r){var n=e.pingCache;if(null===n){n=e.pingCache=new hs;var i=new Set;n.set(t,i)}else void 0===(i=n.get(t))&&(i=new Set,n.set(t,i));i.has(r)||(i.add(r),e=xc.bind(null,e,t,r),t.then(e,e))}function bs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function gs(e,t,r,n,i){return 1&e.mode?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,1===r.tag&&(null===r.alternate?r.tag=17:((t=Uo(-1,1)).tag=2,Ho(r,t,1))),r.lanes|=1),e)}var ys=w.ReactCurrentOwner,vs=!1;function ws(e,t,r,n){t.child=null===e?So(t,null,r,n):Eo(t,e.child,r,n)}function Es(e,t,r,n,i){r=r.render;var o=t.ref;return To(t,i),n=ba(e,t,r,n,o,i),r=ga(),null===e||vs?(io&&r&&eo(t),t.flags|=1,ws(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,$s(e,t,i))}function Ss(e,t,r,n,i){if(null===e){var o=r.type;return"function"!=typeof o||Mc(o)||void 0!==o.defaultProps||null!==r.compare||void 0!==r.defaultProps?((e=Rc(r.type,null,n,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Cs(e,t,o,n,i))}if(o=e.child,!(e.lanes&i)){var a=o.memoizedProps;if((r=null!==(r=r.compare)?r:ln)(a,n)&&e.ref===t.ref)return $s(e,t,i)}return t.flags|=1,(e=Dc(o,n)).ref=t.ref,e.return=t,t.child=e}function Cs(e,t,r,n,i){if(null!==e){var o=e.memoizedProps;if(ln(o,n)&&e.ref===t.ref){if(vs=!1,t.pendingProps=n=o,!(e.lanes&i))return t.lanes=e.lanes,$s(e,t,i);131072&e.flags&&(vs=!0)}}return Ps(e,t,r,n,i)}function ks(e,t,r){var n=t.pendingProps,i=n.children,o=null!==e?e.memoizedState:null;if("hidden"===n.mode)if(1&t.mode){if(!(1073741824&r))return e=null!==o?o.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Pi(Dl,Ml),Ml|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=null!==o?o.baseLanes:r,Pi(Dl,Ml),Ml|=n}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Pi(Dl,Ml),Ml|=r;else null!==o?(n=o.baseLanes|r,t.memoizedState=null):n=r,Pi(Dl,Ml),Ml|=n;return ws(e,t,i,r),t.child}function xs(e,t){var r=t.ref;(null===e&&null!==r||null!==e&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function Ps(e,t,r,n,i){var o=Mi(r)?Ti:Oi.current;return o=Ii(t,o),To(t,i),r=ba(e,t,r,n,o,i),n=ga(),null===e||vs?(io&&n&&eo(t),t.flags|=1,ws(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,$s(e,t,i))}function _s(e,t,r,n,i){if(Mi(r)){var o=!0;Li(t)}else o=!1;if(To(t,i),null===t.stateNode)Vs(e,t),as(t,r,n),ls(t,r,n,i),n=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=r.contextType;c="object"==typeof c&&null!==c?Io(c):Ii(t,c=Mi(r)?Ti:Oi.current);var u=r.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==n||l!==c)&&ss(t,a,n,c),Lo=!1;var h=t.memoizedState;a.state=h,Vo(t,n,a,i),l=t.memoizedState,s!==n||h!==l||Ai.current||Lo?("function"==typeof u&&(ns(t,r,u,n),l=t.memoizedState),(s=Lo||os(t,r,s,n,h,l,c))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=l),a.props=n,a.state=l,a.context=c,n=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),n=!1)}else{a=t.stateNode,No(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:rs(t.type,s),a.props=c,d=t.pendingProps,h=a.context,l="object"==typeof(l=r.contextType)&&null!==l?Io(l):Ii(t,l=Mi(r)?Ti:Oi.current);var f=r.getDerivedStateFromProps;(u="function"==typeof f||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||h!==l)&&ss(t,a,n,l),Lo=!1,h=t.memoizedState,a.state=h,Vo(t,n,a,i);var p=t.memoizedState;s!==d||h!==p||Ai.current||Lo?("function"==typeof f&&(ns(t,r,f,n),p=t.memoizedState),(c=Lo||os(t,r,c,n,h,p,l)||!1)?(u||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(n,p,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(n,p,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=p),a.props=n,a.state=p,a.context=l,n=c):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),n=!1)}return Os(e,t,r,n,o,i)}function Os(e,t,r,n,i,o){xs(e,t);var a=!!(128&t.flags);if(!n&&!a)return i&&ji(t,r,!1),$s(e,t,o);n=t.stateNode,ys.current=t;var s=a&&"function"!=typeof r.getDerivedStateFromError?null:n.render();return t.flags|=1,null!==e&&a?(t.child=Eo(t,e.child,null,o),t.child=Eo(t,null,s,o)):ws(e,t,s,o),t.memoizedState=n.state,i&&ji(t,r,!0),t.child}function As(e){var t=e.stateNode;t.pendingContext?Ri(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ri(0,t.context,!1),Qo(e,t.containerInfo)}function Ts(e,t,r,n,i){return po(),mo(i),t.flags|=256,ws(e,t,r,n),t.child}var Is,Ms,Ds,Rs,Fs={dehydrated:null,treeContext:null,retryLane:0};function Ls(e){return{baseLanes:e,cachePool:null,transitions:null}}function js(e,t,r){var n,i=t.pendingProps,a=ea.current,s=!1,l=!!(128&t.flags);if((n=l)||(n=(null===e||null!==e.memoizedState)&&!!(2&a)),n?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Pi(ea,1&a),null===e)return co(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=i.children,e=i.fallback,s?(i=t.mode,s=t.child,l={mode:"hidden",children:l},1&i||null===s?s=Lc(l,i,0,null):(s.childLanes=0,s.pendingProps=l),e=Fc(e,i,r,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ls(r),t.memoizedState=Fs,e):Ns(t,l));if(null!==(a=e.memoizedState)&&null!==(n=a.dehydrated))return function(e,t,r,n,i,a,s){if(r)return 256&t.flags?(t.flags&=-257,Us(e,t,s,n=us(Error(o(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=n.fallback,i=t.mode,n=Lc({mode:"visible",children:n.children},i,0,null),(a=Fc(a,i,s,null)).flags|=2,n.return=t,a.return=t,n.sibling=a,t.child=n,1&t.mode&&Eo(t,e.child,null,s),t.child.memoizedState=Ls(s),t.memoizedState=Fs,a);if(!(1&t.mode))return Us(e,t,s,null);if("$!"===i.data){if(n=i.nextSibling&&i.nextSibling.dataset)var l=n.dgst;return n=l,Us(e,t,s,n=us(a=Error(o(419)),n,void 0))}if(l=!!(s&e.childLanes),vs||l){if(null!==(n=Al)){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=i&(n.suspendedLanes|s)?0:i)&&i!==a.retryLane&&(a.retryLane=i,Fo(e,i),rc(n,e,i,-1))}return mc(),Us(e,t,s,n=us(Error(o(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=_c.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,no=ci(i.nextSibling),ro=t,io=!0,oo=null,null!==e&&(Wi[Xi++]=Qi,Wi[Xi++]=Yi,Wi[Xi++]=Ki,Qi=e.id,Yi=e.overflow,Ki=t),(t=Ns(t,n.children)).flags|=4096,t)}(e,t,l,i,n,a,r);if(s){s=i.fallback,l=t.mode,n=(a=e.child).sibling;var c={mode:"hidden",children:i.children};return 1&l||t.child===a?(i=Dc(a,c)).subtreeFlags=14680064&a.subtreeFlags:((i=t.child).childLanes=0,i.pendingProps=c,t.deletions=null),null!==n?s=Dc(n,s):(s=Fc(s,l,r,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,l=null===(l=e.child.memoizedState)?Ls(r):{baseLanes:l.baseLanes|r,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~r,t.memoizedState=Fs,i}return e=(s=e.child).sibling,i=Dc(s,{mode:"visible",children:i.children}),!(1&t.mode)&&(i.lanes=r),i.return=t,i.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=i,t.memoizedState=null,i}function Ns(e,t){return(t=Lc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Us(e,t,r,n){return null!==n&&mo(n),Eo(t,e.child,null,r),(e=Ns(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Hs(e,t,r){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),Ao(e.return,t,r)}function Bs(e,t,r,n,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=n,o.tail=r,o.tailMode=i)}function zs(e,t,r){var n=t.pendingProps,i=n.revealOrder,o=n.tail;if(ws(e,t,n.children,r),2&(n=ea.current))n=1&n|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Hs(e,r,t);else if(19===e.tag)Hs(e,r,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(Pi(ea,n),1&t.mode)switch(i){case"forwards":for(r=t.child,i=null;null!==r;)null!==(e=r.alternate)&&null===ta(e)&&(i=r),r=r.sibling;null===(r=i)?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),Bs(t,!1,i,r,o);break;case"backwards":for(r=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===ta(e)){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}Bs(t,!0,r,null,o);break;case"together":Bs(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Vs(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function $s(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),Ll|=t.lanes,!(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(r=Dc(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Dc(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function qs(e,t){if(!io)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;null!==r;)null!==r.alternate&&(n=r),r=r.sibling;null===n?t||null===e.tail?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Gs(e){var t=null!==e.alternate&&e.alternate.child===e.child,r=0,n=0;if(t)for(var i=e.child;null!==i;)r|=i.lanes|i.childLanes,n|=14680064&i.subtreeFlags,n|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function Ws(e,t,r){var n=t.pendingProps;switch(to(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Gs(t),null;case 1:case 17:return Mi(t.type)&&Di(),Gs(t),null;case 3:return n=t.stateNode,Yo(),xi(Ai),xi(Oi),na(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(ho(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==oo&&(ac(oo),oo=null))),Ms(e,t),Gs(t),null;case 5:Zo(t);var i=Ko(Xo.current);if(r=t.type,null!==e&&null!=t.stateNode)Ds(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(null===t.stateNode)throw Error(o(166));return Gs(t),null}if(e=Ko(Go.current),ho(t)){n=t.stateNode,r=t.type;var a=t.memoizedProps;switch(n[hi]=t,n[fi]=a,e=!!(1&t.mode),r){case"dialog":Un("cancel",n),Un("close",n);break;case"iframe":case"object":case"embed":Un("load",n);break;case"video":case"audio":for(i=0;i<Fn.length;i++)Un(Fn[i],n);break;case"source":Un("error",n);break;case"img":case"image":case"link":Un("error",n),Un("load",n);break;case"details":Un("toggle",n);break;case"input":Q(n,a),Un("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!a.multiple},Un("invalid",n);break;case"textarea":ie(n,a),Un("invalid",n)}for(var l in ye(r,a),i=null,a)if(a.hasOwnProperty(l)){var c=a[l];"children"===l?"string"==typeof c?n.textContent!==c&&(!0!==a.suppressHydrationWarning&&Jn(n.textContent,c,e),i=["children",c]):"number"==typeof c&&n.textContent!==""+c&&(!0!==a.suppressHydrationWarning&&Jn(n.textContent,c,e),i=["children",""+c]):s.hasOwnProperty(l)&&null!=c&&"onScroll"===l&&Un("scroll",n)}switch(r){case"input":G(n),Z(n,a,!0);break;case"textarea":G(n),ae(n);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(n.onclick=Zn)}n=i,t.updateQueue=n,null!==n&&(t.flags|=4)}else{l=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(r)),"http://www.w3.org/1999/xhtml"===e?"script"===r?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof n.is?e=l.createElement(r,{is:n.is}):(e=l.createElement(r),"select"===r&&(l=e,n.multiple?l.multiple=!0:n.size&&(l.size=n.size))):e=l.createElementNS(e,r),e[hi]=t,e[fi]=n,Is(e,t,!1,!1),t.stateNode=e;e:{switch(l=ve(r,n),r){case"dialog":Un("cancel",e),Un("close",e),i=n;break;case"iframe":case"object":case"embed":Un("load",e),i=n;break;case"video":case"audio":for(i=0;i<Fn.length;i++)Un(Fn[i],e);i=n;break;case"source":Un("error",e),i=n;break;case"img":case"image":case"link":Un("error",e),Un("load",e),i=n;break;case"details":Un("toggle",e),i=n;break;case"input":Q(e,n),i=K(e,n),Un("invalid",e);break;case"option":default:i=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=j({},n,{value:void 0}),Un("invalid",e);break;case"textarea":ie(e,n),i=ne(e,n),Un("invalid",e)}for(a in ye(r,i),c=i)if(c.hasOwnProperty(a)){var u=c[a];"style"===a?be(e,u):"dangerouslySetInnerHTML"===a?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===a?"string"==typeof u?("textarea"!==r||""!==u)&&he(e,u):"number"==typeof u&&he(e,""+u):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=u&&"onScroll"===a&&Un("scroll",e):null!=u&&v(e,a,u,l))}switch(r){case"input":G(e),Z(e,n,!1);break;case"textarea":G(e),ae(e);break;case"option":null!=n.value&&e.setAttribute("value",""+$(n.value));break;case"select":e.multiple=!!n.multiple,null!=(a=n.value)?re(e,!!n.multiple,a,!1):null!=n.defaultValue&&re(e,!!n.multiple,n.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=Zn)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Gs(t),null;case 6:if(e&&null!=t.stateNode)Rs(e,t,e.memoizedProps,n);else{if("string"!=typeof n&&null===t.stateNode)throw Error(o(166));if(r=Ko(Xo.current),Ko(Go.current),ho(t)){if(n=t.stateNode,r=t.memoizedProps,n[hi]=t,(a=n.nodeValue!==r)&&null!==(e=ro))switch(e.tag){case 3:Jn(n.nodeValue,r,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Jn(n.nodeValue,r,!!(1&e.mode))}a&&(t.flags|=4)}else(n=(9===r.nodeType?r:r.ownerDocument).createTextNode(n))[hi]=t,t.stateNode=n}return Gs(t),null;case 13:if(xi(ea),n=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(io&&null!==no&&1&t.mode&&!(128&t.flags))fo(),po(),t.flags|=98560,a=!1;else if(a=ho(t),null!==n&&null!==n.dehydrated){if(null===e){if(!a)throw Error(o(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(o(317));a[hi]=t}else po(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Gs(t),a=!1}else null!==oo&&(ac(oo),oo=null),a=!0;if(!a)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=r,t):((n=null!==n)!=(null!==e&&null!==e.memoizedState)&&n&&(t.child.flags|=8192,1&t.mode&&(null===e||1&ea.current?0===Rl&&(Rl=3):mc())),null!==t.updateQueue&&(t.flags|=4),Gs(t),null);case 4:return Yo(),Ms(e,t),null===e&&zn(t.stateNode.containerInfo),Gs(t),null;case 10:return Oo(t.type._context),Gs(t),null;case 19:if(xi(ea),null===(a=t.memoizedState))return Gs(t),null;if(n=!!(128&t.flags),null===(l=a.rendering))if(n)qs(a,!1);else{if(0!==Rl||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(l=ta(e))){for(t.flags|=128,qs(a,!1),null!==(n=l.updateQueue)&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;null!==r;)e=n,(a=r).flags&=14680066,null===(l=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,a.type=l.type,e=l.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Pi(ea,1&ea.current|2),t.child}e=e.sibling}null!==a.tail&&Ye()>zl&&(t.flags|=128,n=!0,qs(a,!1),t.lanes=4194304)}else{if(!n)if(null!==(e=ta(l))){if(t.flags|=128,n=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),qs(a,!0),null===a.tail&&"hidden"===a.tailMode&&!l.alternate&&!io)return Gs(t),null}else 2*Ye()-a.renderingStartTime>zl&&1073741824!==r&&(t.flags|=128,n=!0,qs(a,!1),t.lanes=4194304);a.isBackwards?(l.sibling=t.child,t.child=l):(null!==(r=a.last)?r.sibling=l:t.child=l,a.last=l)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Ye(),t.sibling=null,r=ea.current,Pi(ea,n?1&r|2:1&r),t):(Gs(t),null);case 22:case 23:return dc(),n=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==n&&(t.flags|=8192),n&&1&t.mode?!!(1073741824&Ml)&&(Gs(t),6&t.subtreeFlags&&(t.flags|=8192)):Gs(t),null;case 24:case 25:return null}throw Error(o(156,t.tag))}function Xs(e,t){switch(to(t),t.tag){case 1:return Mi(t.type)&&Di(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Yo(),xi(Ai),xi(Oi),na(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Zo(t),null;case 13:if(xi(ea),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));po()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return xi(ea),null;case 4:return Yo(),null;case 10:return Oo(t.type._context),null;case 22:case 23:return dc(),null;default:return null}}Is=function(e,t){for(var r=t.child;null!==r;){if(5===r.tag||6===r.tag)e.appendChild(r.stateNode);else if(4!==r.tag&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===t)break;for(;null===r.sibling;){if(null===r.return||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},Ms=function(){},Ds=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,Ko(Go.current);var o,a=null;switch(r){case"input":i=K(e,i),n=K(e,n),a=[];break;case"select":i=j({},i,{value:void 0}),n=j({},n,{value:void 0}),a=[];break;case"textarea":i=ne(e,i),n=ne(e,n),a=[];break;default:"function"!=typeof i.onClick&&"function"==typeof n.onClick&&(e.onclick=Zn)}for(u in ye(r,n),r=null,i)if(!n.hasOwnProperty(u)&&i.hasOwnProperty(u)&&null!=i[u])if("style"===u){var l=i[u];for(o in l)l.hasOwnProperty(o)&&(r||(r={}),r[o]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(s.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in n){var c=n[u];if(l=null!=i?i[u]:void 0,n.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(o in l)!l.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(r||(r={}),r[o]="");for(o in c)c.hasOwnProperty(o)&&l[o]!==c[o]&&(r||(r={}),r[o]=c[o])}else r||(a||(a=[]),a.push(u,r)),r=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(a=a||[]).push(u,c)):"children"===u?"string"!=typeof c&&"number"!=typeof c||(a=a||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(s.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&Un("scroll",e),a||l===c||(a=[])):(a=a||[]).push(u,c))}r&&(a=a||[]).push("style",r);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},Rs=function(e,t,r,n){r!==n&&(t.flags|=4)};var Ks=!1,Qs=!1,Ys="function"==typeof WeakSet?WeakSet:Set,Js=null;function Zs(e,t){var r=e.ref;if(null!==r)if("function"==typeof r)try{r(null)}catch(r){kc(e,t,r)}else r.current=null}function el(e,t,r){try{r()}catch(r){kc(e,t,r)}}var tl=!1;function rl(e,t,r){var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var i=n=n.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&el(t,r,o)}i=i.next}while(i!==n)}}function nl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function il(e){var t=e.ref;if(null!==t){var r=e.stateNode;e.tag,e=r,"function"==typeof t?t(e):t.current=e}}function ol(e){var t=e.alternate;null!==t&&(e.alternate=null,ol(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[hi],delete t[fi],delete t[mi],delete t[bi],delete t[gi]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function al(e){return 5===e.tag||3===e.tag||4===e.tag}function sl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||al(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ll(e,t,r){var n=e.tag;if(5===n||6===n)e=e.stateNode,t?8===r.nodeType?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(8===r.nodeType?(t=r.parentNode).insertBefore(e,r):(t=r).appendChild(e),null!=(r=r._reactRootContainer)||null!==t.onclick||(t.onclick=Zn));else if(4!==n&&null!==(e=e.child))for(ll(e,t,r),e=e.sibling;null!==e;)ll(e,t,r),e=e.sibling}function cl(e,t,r){var n=e.tag;if(5===n||6===n)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(4!==n&&null!==(e=e.child))for(cl(e,t,r),e=e.sibling;null!==e;)cl(e,t,r),e=e.sibling}var ul=null,dl=!1;function hl(e,t,r){for(r=r.child;null!==r;)fl(e,t,r),r=r.sibling}function fl(e,t,r){if(ot&&"function"==typeof ot.onCommitFiberUnmount)try{ot.onCommitFiberUnmount(it,r)}catch(e){}switch(r.tag){case 5:Qs||Zs(r,t);case 6:var n=ul,i=dl;ul=null,hl(e,t,r),dl=i,null!==(ul=n)&&(dl?(e=ul,r=r.stateNode,8===e.nodeType?e.parentNode.removeChild(r):e.removeChild(r)):ul.removeChild(r.stateNode));break;case 18:null!==ul&&(dl?(e=ul,r=r.stateNode,8===e.nodeType?li(e.parentNode,r):1===e.nodeType&&li(e,r),zt(e)):li(ul,r.stateNode));break;case 4:n=ul,i=dl,ul=r.stateNode.containerInfo,dl=!0,hl(e,t,r),ul=n,dl=i;break;case 0:case 11:case 14:case 15:if(!Qs&&null!==(n=r.updateQueue)&&null!==(n=n.lastEffect)){i=n=n.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(2&o||4&o)&&el(r,t,a),i=i.next}while(i!==n)}hl(e,t,r);break;case 1:if(!Qs&&(Zs(r,t),"function"==typeof(n=r.stateNode).componentWillUnmount))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(e){kc(r,t,e)}hl(e,t,r);break;case 21:hl(e,t,r);break;case 22:1&r.mode?(Qs=(n=Qs)||null!==r.memoizedState,hl(e,t,r),Qs=n):hl(e,t,r);break;default:hl(e,t,r)}}function pl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var r=e.stateNode;null===r&&(r=e.stateNode=new Ys),t.forEach((function(t){var n=Oc.bind(null,e,t);r.has(t)||(r.add(t),t.then(n,n))}))}}function ml(e,t){var r=t.deletions;if(null!==r)for(var n=0;n<r.length;n++){var i=r[n];try{var a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:ul=l.stateNode,dl=!1;break e;case 3:case 4:ul=l.stateNode.containerInfo,dl=!0;break e}l=l.return}if(null===ul)throw Error(o(160));fl(a,s,i),ul=null,dl=!1;var c=i.alternate;null!==c&&(c.return=null),i.return=null}catch(e){kc(i,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)bl(t,e),t=t.sibling}function bl(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ml(t,e),gl(e),4&n){try{rl(3,e,e.return),nl(3,e)}catch(t){kc(e,e.return,t)}try{rl(5,e,e.return)}catch(t){kc(e,e.return,t)}}break;case 1:ml(t,e),gl(e),512&n&&null!==r&&Zs(r,r.return);break;case 5:if(ml(t,e),gl(e),512&n&&null!==r&&Zs(r,r.return),32&e.flags){var i=e.stateNode;try{he(i,"")}catch(t){kc(e,e.return,t)}}if(4&n&&null!=(i=e.stateNode)){var a=e.memoizedProps,s=null!==r?r.memoizedProps:a,l=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===l&&"radio"===a.type&&null!=a.name&&Y(i,a),ve(l,s);var u=ve(l,a);for(s=0;s<c.length;s+=2){var d=c[s],h=c[s+1];"style"===d?be(i,h):"dangerouslySetInnerHTML"===d?de(i,h):"children"===d?he(i,h):v(i,d,h,u)}switch(l){case"input":J(i,a);break;case"textarea":oe(i,a);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var p=a.value;null!=p?re(i,!!a.multiple,p,!1):f!==!!a.multiple&&(null!=a.defaultValue?re(i,!!a.multiple,a.defaultValue,!0):re(i,!!a.multiple,a.multiple?[]:"",!1))}i[fi]=a}catch(t){kc(e,e.return,t)}}break;case 6:if(ml(t,e),gl(e),4&n){if(null===e.stateNode)throw Error(o(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(t){kc(e,e.return,t)}}break;case 3:if(ml(t,e),gl(e),4&n&&null!==r&&r.memoizedState.isDehydrated)try{zt(t.containerInfo)}catch(t){kc(e,e.return,t)}break;case 4:default:ml(t,e),gl(e);break;case 13:ml(t,e),gl(e),8192&(i=e.child).flags&&(a=null!==i.memoizedState,i.stateNode.isHidden=a,!a||null!==i.alternate&&null!==i.alternate.memoizedState||(Bl=Ye())),4&n&&pl(e);break;case 22:if(d=null!==r&&null!==r.memoizedState,1&e.mode?(Qs=(u=Qs)||d,ml(t,e),Qs=u):ml(t,e),gl(e),8192&n){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&1&e.mode)for(Js=e,d=e.child;null!==d;){for(h=Js=d;null!==Js;){switch(p=(f=Js).child,f.tag){case 0:case 11:case 14:case 15:rl(4,f,f.return);break;case 1:Zs(f,f.return);var m=f.stateNode;if("function"==typeof m.componentWillUnmount){n=f,r=f.return;try{t=n,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){kc(n,r,e)}}break;case 5:Zs(f,f.return);break;case 22:if(null!==f.memoizedState){El(h);continue}}null!==p?(p.return=f,Js=p):El(h)}d=d.sibling}e:for(d=null,h=e;;){if(5===h.tag){if(null===d){d=h;try{i=h.stateNode,u?"function"==typeof(a=i.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=h.stateNode,s=null!=(c=h.memoizedProps.style)&&c.hasOwnProperty("display")?c.display:null,l.style.display=me("display",s))}catch(t){kc(e,e.return,t)}}}else if(6===h.tag){if(null===d)try{h.stateNode.nodeValue=u?"":h.memoizedProps}catch(t){kc(e,e.return,t)}}else if((22!==h.tag&&23!==h.tag||null===h.memoizedState||h===e)&&null!==h.child){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;null===h.sibling;){if(null===h.return||h.return===e)break e;d===h&&(d=null),h=h.return}d===h&&(d=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:ml(t,e),gl(e),4&n&&pl(e);case 21:}}function gl(e){var t=e.flags;if(2&t){try{e:{for(var r=e.return;null!==r;){if(al(r)){var n=r;break e}r=r.return}throw Error(o(160))}switch(n.tag){case 5:var i=n.stateNode;32&n.flags&&(he(i,""),n.flags&=-33),cl(e,sl(e),i);break;case 3:case 4:var a=n.stateNode.containerInfo;ll(e,sl(e),a);break;default:throw Error(o(161))}}catch(t){kc(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function yl(e,t,r){Js=e,vl(e,t,r)}function vl(e,t,r){for(var n=!!(1&e.mode);null!==Js;){var i=Js,o=i.child;if(22===i.tag&&n){var a=null!==i.memoizedState||Ks;if(!a){var s=i.alternate,l=null!==s&&null!==s.memoizedState||Qs;s=Ks;var c=Qs;if(Ks=a,(Qs=l)&&!c)for(Js=i;null!==Js;)l=(a=Js).child,22===a.tag&&null!==a.memoizedState?Sl(i):null!==l?(l.return=a,Js=l):Sl(i);for(;null!==o;)Js=o,vl(o,t,r),o=o.sibling;Js=i,Ks=s,Qs=c}wl(e)}else 8772&i.subtreeFlags&&null!==o?(o.return=i,Js=o):wl(e)}}function wl(e){for(;null!==Js;){var t=Js;if(8772&t.flags){var r=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Qs||nl(5,t);break;case 1:var n=t.stateNode;if(4&t.flags&&!Qs)if(null===r)n.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:rs(t.type,r.memoizedProps);n.componentDidUpdate(i,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&$o(t,a,n);break;case 3:var s=t.updateQueue;if(null!==s){if(r=null,null!==t.child)switch(t.child.tag){case 5:case 1:r=t.child.stateNode}$o(t,s,r)}break;case 5:var l=t.stateNode;if(null===r&&4&t.flags){r=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&r.focus();break;case"img":c.src&&(r.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var h=d.dehydrated;null!==h&&zt(h)}}}break;default:throw Error(o(163))}Qs||512&t.flags&&il(t)}catch(e){kc(t,t.return,e)}}if(t===e){Js=null;break}if(null!==(r=t.sibling)){r.return=t.return,Js=r;break}Js=t.return}}function El(e){for(;null!==Js;){var t=Js;if(t===e){Js=null;break}var r=t.sibling;if(null!==r){r.return=t.return,Js=r;break}Js=t.return}}function Sl(e){for(;null!==Js;){var t=Js;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{nl(4,t)}catch(e){kc(t,r,e)}break;case 1:var n=t.stateNode;if("function"==typeof n.componentDidMount){var i=t.return;try{n.componentDidMount()}catch(e){kc(t,i,e)}}var o=t.return;try{il(t)}catch(e){kc(t,o,e)}break;case 5:var a=t.return;try{il(t)}catch(e){kc(t,a,e)}}}catch(e){kc(t,t.return,e)}if(t===e){Js=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Js=s;break}Js=t.return}}var Cl,kl=Math.ceil,xl=w.ReactCurrentDispatcher,Pl=w.ReactCurrentOwner,_l=w.ReactCurrentBatchConfig,Ol=0,Al=null,Tl=null,Il=0,Ml=0,Dl=ki(0),Rl=0,Fl=null,Ll=0,jl=0,Nl=0,Ul=null,Hl=null,Bl=0,zl=1/0,Vl=null,$l=!1,ql=null,Gl=null,Wl=!1,Xl=null,Kl=0,Ql=0,Yl=null,Jl=-1,Zl=0;function ec(){return 6&Ol?Ye():-1!==Jl?Jl:Jl=Ye()}function tc(e){return 1&e.mode?2&Ol&&0!==Il?Il&-Il:null!==bo.transition?(0===Zl&&(Zl=mt()),Zl):0!==(e=vt)?e:e=void 0===(e=window.event)?16:Qt(e.type):1}function rc(e,t,r,n){if(50<Ql)throw Ql=0,Yl=null,Error(o(185));gt(e,r,n),2&Ol&&e===Al||(e===Al&&(!(2&Ol)&&(jl|=r),4===Rl&&sc(e,Il)),nc(e,n),1===r&&0===Ol&&!(1&t.mode)&&(zl=Ye()+500,Ui&&zi()))}function nc(e,t){var r=e.callbackNode;!function(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-at(o),s=1<<a,l=i[a];-1===l?s&r&&!(s&n)||(i[a]=ft(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var n=ht(e,e===Al?Il:0);if(0===n)null!==r&&Xe(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(null!=r&&Xe(r),1===t)0===e.tag?function(e){Ui=!0,Bi(e)}(lc.bind(null,e)):Bi(lc.bind(null,e)),ai((function(){!(6&Ol)&&zi()})),r=null;else{switch(wt(n)){case 1:r=Ze;break;case 4:r=et;break;case 16:default:r=tt;break;case 536870912:r=nt}r=Ac(r,ic.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function ic(e,t){if(Jl=-1,Zl=0,6&Ol)throw Error(o(327));var r=e.callbackNode;if(Sc()&&e.callbackNode!==r)return null;var n=ht(e,e===Al?Il:0);if(0===n)return null;if(30&n||n&e.expiredLanes||t)t=bc(e,n);else{t=n;var i=Ol;Ol|=2;var a=pc();for(Al===e&&Il===t||(Vl=null,zl=Ye()+500,hc(e,t));;)try{yc();break}catch(t){fc(e,t)}_o(),xl.current=a,Ol=i,null!==Tl?t=0:(Al=null,Il=0,t=Rl)}if(0!==t){if(2===t&&0!==(i=pt(e))&&(n=i,t=oc(e,i)),1===t)throw r=Fl,hc(e,0),sc(e,n),nc(e,Ye()),r;if(6===t)sc(e,n);else{if(i=e.current.alternate,!(30&n||function(e){for(var t=e;;){if(16384&t.flags){var r=t.updateQueue;if(null!==r&&null!==(r=r.stores))for(var n=0;n<r.length;n++){var i=r[n],o=i.getSnapshot;i=i.value;try{if(!sn(o(),i))return!1}catch(e){return!1}}}if(r=t.child,16384&t.subtreeFlags&&null!==r)r.return=t,t=r;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)||(t=bc(e,n),2===t&&(a=pt(e),0!==a&&(n=a,t=oc(e,a))),1!==t)))throw r=Fl,hc(e,0),sc(e,n),nc(e,Ye()),r;switch(e.finishedWork=i,e.finishedLanes=n,t){case 0:case 1:throw Error(o(345));case 2:case 5:Ec(e,Hl,Vl);break;case 3:if(sc(e,n),(130023424&n)===n&&10<(t=Bl+500-Ye())){if(0!==ht(e,0))break;if(((i=e.suspendedLanes)&n)!==n){ec(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ni(Ec.bind(null,e,Hl,Vl),t);break}Ec(e,Hl,Vl);break;case 4:if(sc(e,n),(4194240&n)===n)break;for(t=e.eventTimes,i=-1;0<n;){var s=31-at(n);a=1<<s,(s=t[s])>i&&(i=s),n&=~a}if(n=i,10<(n=(120>(n=Ye()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*kl(n/1960))-n)){e.timeoutHandle=ni(Ec.bind(null,e,Hl,Vl),n);break}Ec(e,Hl,Vl);break;default:throw Error(o(329))}}}return nc(e,Ye()),e.callbackNode===r?ic.bind(null,e):null}function oc(e,t){var r=Ul;return e.current.memoizedState.isDehydrated&&(hc(e,t).flags|=256),2!==(e=bc(e,t))&&(t=Hl,Hl=r,null!==t&&ac(t)),e}function ac(e){null===Hl?Hl=e:Hl.push.apply(Hl,e)}function sc(e,t){for(t&=~Nl,t&=~jl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-at(t),n=1<<r;e[r]=-1,t&=~n}}function lc(e){if(6&Ol)throw Error(o(327));Sc();var t=ht(e,0);if(!(1&t))return nc(e,Ye()),null;var r=bc(e,t);if(0!==e.tag&&2===r){var n=pt(e);0!==n&&(t=n,r=oc(e,n))}if(1===r)throw r=Fl,hc(e,0),sc(e,t),nc(e,Ye()),r;if(6===r)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ec(e,Hl,Vl),nc(e,Ye()),null}function cc(e,t){var r=Ol;Ol|=1;try{return e(t)}finally{0===(Ol=r)&&(zl=Ye()+500,Ui&&zi())}}function uc(e){null!==Xl&&0===Xl.tag&&!(6&Ol)&&Sc();var t=Ol;Ol|=1;var r=_l.transition,n=vt;try{if(_l.transition=null,vt=1,e)return e()}finally{vt=n,_l.transition=r,!(6&(Ol=t))&&zi()}}function dc(){Ml=Dl.current,xi(Dl)}function hc(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(-1!==r&&(e.timeoutHandle=-1,ii(r)),null!==Tl)for(r=Tl.return;null!==r;){var n=r;switch(to(n),n.tag){case 1:null!=(n=n.type.childContextTypes)&&Di();break;case 3:Yo(),xi(Ai),xi(Oi),na();break;case 5:Zo(n);break;case 4:Yo();break;case 13:case 19:xi(ea);break;case 10:Oo(n.type._context);break;case 22:case 23:dc()}r=r.return}if(Al=e,Tl=e=Dc(e.current,null),Il=Ml=t,Rl=0,Fl=null,Nl=jl=Ll=0,Hl=Ul=null,null!==Mo){for(t=0;t<Mo.length;t++)if(null!==(n=(r=Mo[t]).interleaved)){r.interleaved=null;var i=n.next,o=r.pending;if(null!==o){var a=o.next;o.next=i,n.next=a}r.pending=n}Mo=null}return e}function fc(e,t){for(;;){var r=Tl;try{if(_o(),ia.current=Ja,ua){for(var n=sa.memoizedState;null!==n;){var i=n.queue;null!==i&&(i.pending=null),n=n.next}ua=!1}if(aa=0,ca=la=sa=null,da=!1,ha=0,Pl.current=null,null===r||null===r.return){Rl=1,Fl=t,Tl=null;break}e:{var a=e,s=r.return,l=r,c=t;if(t=Il,l.flags|=32768,null!==c&&"object"==typeof c&&"function"==typeof c.then){var u=c,d=l,h=d.tag;if(!(1&d.mode||0!==h&&11!==h&&15!==h)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var p=bs(s);if(null!==p){p.flags&=-257,gs(p,s,l,0,t),1&p.mode&&ms(a,u,t),c=u;var m=(t=p).updateQueue;if(null===m){var b=new Set;b.add(c),t.updateQueue=b}else m.add(c);break e}if(!(1&t)){ms(a,u,t),mc();break e}c=Error(o(426))}else if(io&&1&l.mode){var g=bs(s);if(null!==g){!(65536&g.flags)&&(g.flags|=256),gs(g,s,l,0,t),mo(cs(c,l));break e}}a=c=cs(c,l),4!==Rl&&(Rl=2),null===Ul?Ul=[a]:Ul.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,zo(a,fs(0,c,t));break e;case 1:l=c;var y=a.type,v=a.stateNode;if(!(128&a.flags||"function"!=typeof y.getDerivedStateFromError&&(null===v||"function"!=typeof v.componentDidCatch||null!==Gl&&Gl.has(v)))){a.flags|=65536,t&=-t,a.lanes|=t,zo(a,ps(a,l,t));break e}}a=a.return}while(null!==a)}wc(r)}catch(e){t=e,Tl===r&&null!==r&&(Tl=r=r.return);continue}break}}function pc(){var e=xl.current;return xl.current=Ja,null===e?Ja:e}function mc(){0!==Rl&&3!==Rl&&2!==Rl||(Rl=4),null===Al||!(268435455&Ll)&&!(268435455&jl)||sc(Al,Il)}function bc(e,t){var r=Ol;Ol|=2;var n=pc();for(Al===e&&Il===t||(Vl=null,hc(e,t));;)try{gc();break}catch(t){fc(e,t)}if(_o(),Ol=r,xl.current=n,null!==Tl)throw Error(o(261));return Al=null,Il=0,Rl}function gc(){for(;null!==Tl;)vc(Tl)}function yc(){for(;null!==Tl&&!Ke();)vc(Tl)}function vc(e){var t=Cl(e.alternate,e,Ml);e.memoizedProps=e.pendingProps,null===t?wc(e):Tl=t,Pl.current=null}function wc(e){var t=e;do{var r=t.alternate;if(e=t.return,32768&t.flags){if(null!==(r=Xs(r,t)))return r.flags&=32767,void(Tl=r);if(null===e)return Rl=6,void(Tl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(r=Ws(r,t,Ml)))return void(Tl=r);if(null!==(t=t.sibling))return void(Tl=t);Tl=t=e}while(null!==t);0===Rl&&(Rl=5)}function Ec(e,t,r){var n=vt,i=_l.transition;try{_l.transition=null,vt=1,function(e,t,r,n){do{Sc()}while(null!==Xl);if(6&Ol)throw Error(o(327));r=e.finishedWork;var i=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var a=r.lanes|r.childLanes;if(function(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var i=31-at(r),o=1<<i;t[i]=0,n[i]=-1,e[i]=-1,r&=~o}}(e,a),e===Al&&(Tl=Al=null,Il=0),!(2064&r.subtreeFlags)&&!(2064&r.flags)||Wl||(Wl=!0,Ac(tt,(function(){return Sc(),null}))),a=!!(15990&r.flags),15990&r.subtreeFlags||a){a=_l.transition,_l.transition=null;var s=vt;vt=1;var l=Ol;Ol|=4,Pl.current=null,function(e,t){if(ei=$t,fn(e=hn())){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{var n=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(n&&0!==n.rangeCount){r=n.anchorNode;var i=n.anchorOffset,a=n.focusNode;n=n.focusOffset;try{r.nodeType,a.nodeType}catch(e){r=null;break e}var s=0,l=-1,c=-1,u=0,d=0,h=e,f=null;t:for(;;){for(var p;h!==r||0!==i&&3!==h.nodeType||(l=s+i),h!==a||0!==n&&3!==h.nodeType||(c=s+n),3===h.nodeType&&(s+=h.nodeValue.length),null!==(p=h.firstChild);)f=h,h=p;for(;;){if(h===e)break t;if(f===r&&++u===i&&(l=s),f===a&&++d===n&&(c=s),null!==(p=h.nextSibling))break;f=(h=f).parentNode}h=p}r=-1===l||-1===c?null:{start:l,end:c}}else r=null}r=r||{start:0,end:0}}else r=null;for(ti={focusedElem:e,selectionRange:r},$t=!1,Js=t;null!==Js;)if(e=(t=Js).child,1028&t.subtreeFlags&&null!==e)e.return=t,Js=e;else for(;null!==Js;){t=Js;try{var m=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var b=m.memoizedProps,g=m.memoizedState,y=t.stateNode,v=y.getSnapshotBeforeUpdate(t.elementType===t.type?b:rs(t.type,b),g);y.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(o(163))}}catch(e){kc(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Js=e;break}Js=t.return}m=tl,tl=!1}(e,r),bl(r,e),pn(ti),$t=!!ei,ti=ei=null,e.current=r,yl(r,e,i),Qe(),Ol=l,vt=s,_l.transition=a}else e.current=r;if(Wl&&(Wl=!1,Xl=e,Kl=i),0===(a=e.pendingLanes)&&(Gl=null),function(e){if(ot&&"function"==typeof ot.onCommitFiberRoot)try{ot.onCommitFiberRoot(it,e,void 0,!(128&~e.current.flags))}catch(e){}}(r.stateNode),nc(e,Ye()),null!==t)for(n=e.onRecoverableError,r=0;r<t.length;r++)n((i=t[r]).value,{componentStack:i.stack,digest:i.digest});if($l)throw $l=!1,e=ql,ql=null,e;!!(1&Kl)&&0!==e.tag&&Sc(),1&(a=e.pendingLanes)?e===Yl?Ql++:(Ql=0,Yl=e):Ql=0,zi()}(e,t,r,n)}finally{_l.transition=i,vt=n}return null}function Sc(){if(null!==Xl){var e=wt(Kl),t=_l.transition,r=vt;try{if(_l.transition=null,vt=16>e?16:e,null===Xl)var n=!1;else{if(e=Xl,Xl=null,Kl=0,6&Ol)throw Error(o(331));var i=Ol;for(Ol|=4,Js=e.current;null!==Js;){var a=Js,s=a.child;if(16&Js.flags){var l=a.deletions;if(null!==l){for(var c=0;c<l.length;c++){var u=l[c];for(Js=u;null!==Js;){var d=Js;switch(d.tag){case 0:case 11:case 15:rl(8,d,a)}var h=d.child;if(null!==h)h.return=d,Js=h;else for(;null!==Js;){var f=(d=Js).sibling,p=d.return;if(ol(d),d===u){Js=null;break}if(null!==f){f.return=p,Js=f;break}Js=p}}}var m=a.alternate;if(null!==m){var b=m.child;if(null!==b){m.child=null;do{var g=b.sibling;b.sibling=null,b=g}while(null!==b)}}Js=a}}if(2064&a.subtreeFlags&&null!==s)s.return=a,Js=s;else e:for(;null!==Js;){if(2048&(a=Js).flags)switch(a.tag){case 0:case 11:case 15:rl(9,a,a.return)}var y=a.sibling;if(null!==y){y.return=a.return,Js=y;break e}Js=a.return}}var v=e.current;for(Js=v;null!==Js;){var w=(s=Js).child;if(2064&s.subtreeFlags&&null!==w)w.return=s,Js=w;else e:for(s=v;null!==Js;){if(2048&(l=Js).flags)try{switch(l.tag){case 0:case 11:case 15:nl(9,l)}}catch(e){kc(l,l.return,e)}if(l===s){Js=null;break e}var E=l.sibling;if(null!==E){E.return=l.return,Js=E;break e}Js=l.return}}if(Ol=i,zi(),ot&&"function"==typeof ot.onPostCommitFiberRoot)try{ot.onPostCommitFiberRoot(it,e)}catch(e){}n=!0}return n}finally{vt=r,_l.transition=t}}return!1}function Cc(e,t,r){e=Ho(e,t=fs(0,t=cs(r,t),1),1),t=ec(),null!==e&&(gt(e,1,t),nc(e,t))}function kc(e,t,r){if(3===e.tag)Cc(e,e,r);else for(;null!==t;){if(3===t.tag){Cc(t,e,r);break}if(1===t.tag){var n=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof n.componentDidCatch&&(null===Gl||!Gl.has(n))){t=Ho(t,e=ps(t,e=cs(r,e),1),1),e=ec(),null!==t&&(gt(t,1,e),nc(t,e));break}}t=t.return}}function xc(e,t,r){var n=e.pingCache;null!==n&&n.delete(t),t=ec(),e.pingedLanes|=e.suspendedLanes&r,Al===e&&(Il&r)===r&&(4===Rl||3===Rl&&(130023424&Il)===Il&&500>Ye()-Bl?hc(e,0):Nl|=r),nc(e,t)}function Pc(e,t){0===t&&(1&e.mode?(t=ut,!(130023424&(ut<<=1))&&(ut=4194304)):t=1);var r=ec();null!==(e=Fo(e,t))&&(gt(e,t,r),nc(e,r))}function _c(e){var t=e.memoizedState,r=0;null!==t&&(r=t.retryLane),Pc(e,r)}function Oc(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;null!==i&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(o(314))}null!==n&&n.delete(t),Pc(e,r)}function Ac(e,t){return We(e,t)}function Tc(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ic(e,t,r,n){return new Tc(e,t,r,n)}function Mc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Dc(e,t){var r=e.alternate;return null===r?((r=Ic(e.tag,t,e.key,e.mode)).elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=14680064&e.flags,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Rc(e,t,r,n,i,a){var s=2;if(n=e,"function"==typeof e)Mc(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case C:return Fc(r.children,i,a,t);case k:s=8,i|=8;break;case x:return(e=Ic(12,r,t,2|i)).elementType=x,e.lanes=a,e;case A:return(e=Ic(13,r,t,i)).elementType=A,e.lanes=a,e;case T:return(e=Ic(19,r,t,i)).elementType=T,e.lanes=a,e;case D:return Lc(r,i,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case P:s=10;break e;case _:s=9;break e;case O:s=11;break e;case I:s=14;break e;case M:s=16,n=null;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Ic(s,r,t,i)).elementType=e,t.type=n,t.lanes=a,t}function Fc(e,t,r,n){return(e=Ic(7,e,n,t)).lanes=r,e}function Lc(e,t,r,n){return(e=Ic(22,e,n,t)).elementType=D,e.lanes=r,e.stateNode={isHidden:!1},e}function jc(e,t,r){return(e=Ic(6,e,null,t)).lanes=r,e}function Nc(e,t,r){return(t=Ic(4,null!==e.children?e.children:[],e.key,t)).lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Uc(e,t,r,n,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=bt(0),this.expirationTimes=bt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=bt(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Hc(e,t,r,n,i,o,a,s,l){return e=new Uc(e,t,r,s,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Ic(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},jo(o),e}function Bc(e){if(!e)return _i;e:{if(ze(e=e._reactInternals)!==e||1!==e.tag)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Mi(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(o(171))}if(1===e.tag){var r=e.type;if(Mi(r))return Fi(e,r,t)}return t}function zc(e,t,r,n,i,o,a,s,l){return(e=Hc(r,n,!0,e,0,o,0,s,l)).context=Bc(null),r=e.current,(o=Uo(n=ec(),i=tc(r))).callback=null!=t?t:null,Ho(r,o,i),e.current.lanes=i,gt(e,i,n),nc(e,n),e}function Vc(e,t,r,n){var i=t.current,o=ec(),a=tc(i);return r=Bc(r),null===t.context?t.context=r:t.pendingContext=r,(t=Uo(o,a)).payload={element:e},null!==(n=void 0===n?null:n)&&(t.callback=n),null!==(e=Ho(i,t,a))&&(rc(e,i,a,o),Bo(e,i,a)),a}function $c(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function qc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var r=e.retryLane;e.retryLane=0!==r&&r<t?r:t}}function Gc(e,t){qc(e,t),(e=e.alternate)&&qc(e,t)}Cl=function(e,t,r){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ai.current)vs=!0;else{if(!(e.lanes&r||128&t.flags))return vs=!1,function(e,t,r){switch(t.tag){case 3:As(t),po();break;case 5:Jo(t);break;case 1:Mi(t.type)&&Li(t);break;case 4:Qo(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,i=t.memoizedProps.value;Pi(Co,n._currentValue),n._currentValue=i;break;case 13:if(null!==(n=t.memoizedState))return null!==n.dehydrated?(Pi(ea,1&ea.current),t.flags|=128,null):r&t.child.childLanes?js(e,t,r):(Pi(ea,1&ea.current),null!==(e=$s(e,t,r))?e.sibling:null);Pi(ea,1&ea.current);break;case 19:if(n=!!(r&t.childLanes),128&e.flags){if(n)return zs(e,t,r);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),Pi(ea,ea.current),n)break;return null;case 22:case 23:return t.lanes=0,ks(e,t,r)}return $s(e,t,r)}(e,t,r);vs=!!(131072&e.flags)}else vs=!1,io&&1048576&t.flags&&Zi(t,Gi,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Vs(e,t),e=t.pendingProps;var i=Ii(t,Oi.current);To(t,r),i=ba(null,t,n,e,i,r);var a=ga();return t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Mi(n)?(a=!0,Li(t)):a=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,jo(t),i.updater=is,t.stateNode=i,i._reactInternals=t,ls(t,n,e,r),t=Os(null,t,n,!0,a,r)):(t.tag=0,io&&a&&eo(t),ws(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Vs(e,t),e=t.pendingProps,n=(i=n._init)(n._payload),t.type=n,i=t.tag=function(e){if("function"==typeof e)return Mc(e)?1:0;if(null!=e){if((e=e.$$typeof)===O)return 11;if(e===I)return 14}return 2}(n),e=rs(n,e),i){case 0:t=Ps(null,t,n,e,r);break e;case 1:t=_s(null,t,n,e,r);break e;case 11:t=Es(null,t,n,e,r);break e;case 14:t=Ss(null,t,n,rs(n.type,e),r);break e}throw Error(o(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,Ps(e,t,n,i=t.elementType===n?i:rs(n,i),r);case 1:return n=t.type,i=t.pendingProps,_s(e,t,n,i=t.elementType===n?i:rs(n,i),r);case 3:e:{if(As(t),null===e)throw Error(o(387));n=t.pendingProps,i=(a=t.memoizedState).element,No(e,t),Vo(t,n,null,r);var s=t.memoizedState;if(n=s.element,a.isDehydrated){if(a={element:n,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Ts(e,t,n,r,i=cs(Error(o(423)),t));break e}if(n!==i){t=Ts(e,t,n,r,i=cs(Error(o(424)),t));break e}for(no=ci(t.stateNode.containerInfo.firstChild),ro=t,io=!0,oo=null,r=So(t,null,n,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(po(),n===i){t=$s(e,t,r);break e}ws(e,t,n,r)}t=t.child}return t;case 5:return Jo(t),null===e&&co(t),n=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,s=i.children,ri(n,i)?s=null:null!==a&&ri(n,a)&&(t.flags|=32),xs(e,t),ws(e,t,s,r),t.child;case 6:return null===e&&co(t),null;case 13:return js(e,t,r);case 4:return Qo(t,t.stateNode.containerInfo),n=t.pendingProps,null===e?t.child=Eo(t,null,n,r):ws(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,Es(e,t,n,i=t.elementType===n?i:rs(n,i),r);case 7:return ws(e,t,t.pendingProps,r),t.child;case 8:case 12:return ws(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,a=t.memoizedProps,s=i.value,Pi(Co,n._currentValue),n._currentValue=s,null!==a)if(sn(a.value,s)){if(a.children===i.children&&!Ai.current){t=$s(e,t,r);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var c=l.firstContext;null!==c;){if(c.context===n){if(1===a.tag){(c=Uo(-1,r&-r)).tag=2;var u=a.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}a.lanes|=r,null!==(c=a.alternate)&&(c.lanes|=r),Ao(a.return,r,t),l.lanes|=r;break}c=c.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(o(341));s.lanes|=r,null!==(l=s.alternate)&&(l.lanes|=r),Ao(s,r,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}ws(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,To(t,r),n=n(i=Io(i)),t.flags|=1,ws(e,t,n,r),t.child;case 14:return i=rs(n=t.type,t.pendingProps),Ss(e,t,n,i=rs(n.type,i),r);case 15:return Cs(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:rs(n,i),Vs(e,t),t.tag=1,Mi(n)?(e=!0,Li(t)):e=!1,To(t,r),as(t,n,i),ls(t,n,i,r),Os(null,t,n,!0,e,r);case 19:return zs(e,t,r);case 22:return ks(e,t,r)}throw Error(o(156,t.tag))};var Wc="function"==typeof reportError?reportError:function(e){console.error(e)};function Xc(e){this._internalRoot=e}function Kc(e){this._internalRoot=e}function Qc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Yc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Jc(){}function Zc(e,t,r,n,i){var o=r._reactRootContainer;if(o){var a=o;if("function"==typeof i){var s=i;i=function(){var e=$c(a);s.call(e)}}Vc(t,a,e,i)}else a=function(e,t,r,n,i){if(i){if("function"==typeof n){var o=n;n=function(){var e=$c(a);o.call(e)}}var a=zc(t,n,e,0,null,!1,0,"",Jc);return e._reactRootContainer=a,e[pi]=a.current,zn(8===e.nodeType?e.parentNode:e),uc(),a}for(;i=e.lastChild;)e.removeChild(i);if("function"==typeof n){var s=n;n=function(){var e=$c(l);s.call(e)}}var l=Hc(e,0,!1,null,0,!1,0,"",Jc);return e._reactRootContainer=l,e[pi]=l.current,zn(8===e.nodeType?e.parentNode:e),uc((function(){Vc(t,l,r,n)})),l}(r,t,e,i,n);return $c(a)}Kc.prototype.render=Xc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(o(409));Vc(e,t,null,null)},Kc.prototype.unmount=Xc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;uc((function(){Vc(null,e,null,null)})),t[pi]=null}},Kc.prototype.unstable_scheduleHydration=function(e){if(e){var t=kt();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Dt.length&&0!==t&&t<Dt[r].priority;r++);Dt.splice(r,0,e),0===r&&jt(e)}},Et=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=dt(t.pendingLanes);0!==r&&(yt(t,1|r),nc(t,Ye()),!(6&Ol)&&(zl=Ye()+500,zi()))}break;case 13:uc((function(){var t=Fo(e,1);if(null!==t){var r=ec();rc(t,e,1,r)}})),Gc(e,1)}},St=function(e){if(13===e.tag){var t=Fo(e,134217728);null!==t&&rc(t,e,134217728,ec()),Gc(e,134217728)}},Ct=function(e){if(13===e.tag){var t=tc(e),r=Fo(e,t);null!==r&&rc(r,e,t,ec()),Gc(e,t)}},kt=function(){return vt},xt=function(e,t){var r=vt;try{return vt=e,t()}finally{vt=r}},Se=function(e,t,r){switch(t){case"input":if(J(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var i=Ei(n);if(!i)throw Error(o(90));W(n),J(n,i)}}}break;case"textarea":oe(e,r);break;case"select":null!=(t=r.value)&&re(e,!!r.multiple,t,!1)}},Oe=cc,Ae=uc;var eu={usingClientEntryPoint:!1,Events:[vi,wi,Ei,Pe,_e,cc]},tu={findFiberByHostInstance:yi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},ru={bundleType:tu.bundleType,version:tu.version,rendererPackageName:tu.rendererPackageName,rendererConfig:tu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=qe(e))?null:e.stateNode},findFiberByHostInstance:tu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var nu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!nu.isDisabled&&nu.supportsFiber)try{it=nu.inject(ru),ot=nu}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=eu,t.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Qc(t))throw Error(o(200));return function(e,t,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==n?null:""+n,children:e,containerInfo:t,implementation:r}}(e,t,null,r)},t.createRoot=function(e,t){if(!Qc(e))throw Error(o(299));var r=!1,n="",i=Wc;return null!=t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(n=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=Hc(e,1,!1,null,0,r,0,n,i),e[pi]=t.current,zn(8===e.nodeType?e.parentNode:e),new Xc(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(o(188));throw e=Object.keys(e).join(","),Error(o(268,e))}return null===(e=qe(t))?null:e.stateNode},t.flushSync=function(e){return uc(e)},t.hydrate=function(e,t,r){if(!Yc(t))throw Error(o(200));return Zc(null,e,t,!0,r)},t.hydrateRoot=function(e,t,r){if(!Qc(e))throw Error(o(405));var n=null!=r&&r.hydratedSources||null,i=!1,a="",s=Wc;if(null!=r&&(!0===r.unstable_strictMode&&(i=!0),void 0!==r.identifierPrefix&&(a=r.identifierPrefix),void 0!==r.onRecoverableError&&(s=r.onRecoverableError)),t=zc(t,null,e,1,null!=r?r:null,i,0,a,s),e[pi]=t.current,zn(e),n)for(e=0;e<n.length;e++)i=(i=(r=n[e])._getVersion)(r._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[r,i]:t.mutableSourceEagerHydrationData.push(r,i);return new Kc(t)},t.render=function(e,t,r){if(!Yc(t))throw Error(o(200));return Zc(null,e,t,!1,r)},t.unmountComponentAtNode=function(e){if(!Yc(e))throw Error(o(40));return!!e._reactRootContainer&&(uc((function(){Zc(null,null,e,!1,(function(){e._reactRootContainer=null,e[pi]=null}))})),!0)},t.unstable_batchedUpdates=cc,t.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Yc(r))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return Zc(e,t,r,!1,n)},t.version="18.3.1-next-f1338f8080-20240426"},62275:(e,t,r)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=r(50213)},10173:(e,t)=>{"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,u=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,h=r?Symbol.for("react.forward_ref"):60112,f=r?Symbol.for("react.suspense"):60113,p=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,b=r?Symbol.for("react.lazy"):60116,g=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,v=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case u:case d:case o:case s:case a:case f:return e;default:switch(e=e&&e.$$typeof){case c:case h:case b:case m:case l:return e;default:return t}}case i:return t}}}function S(e){return E(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=n,t.ForwardRef=h,t.Fragment=o,t.Lazy=b,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=f,t.isAsyncMode=function(e){return S(e)||E(e)===u},t.isConcurrentMode=S,t.isContextConsumer=function(e){return E(e)===c},t.isContextProvider=function(e){return E(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return E(e)===h},t.isFragment=function(e){return E(e)===o},t.isLazy=function(e){return E(e)===b},t.isMemo=function(e){return E(e)===m},t.isPortal=function(e){return E(e)===i},t.isProfiler=function(e){return E(e)===s},t.isStrictMode=function(e){return E(e)===a},t.isSuspense=function(e){return E(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===s||e===a||e===f||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===b||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===h||e.$$typeof===y||e.$$typeof===v||e.$$typeof===w||e.$$typeof===g)},t.typeOf=E},52305:(e,t,r)=>{"use strict";e.exports=r(10173)},86742:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]}return t.default=e,t}(r(1986)),i=s(r(39970)),o=s(r(62275)),a=s(r(88072));function s(e){return e&&e.__esModule?e:{default:e}}function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function c(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}a.default||console.error("It looks like Tether has not been included. Please load this dependency first https://github.com/HubSpot/tether");var m=void 0!==o.default.createPortal,b=[i.default.string,i.default.shape({appendChild:i.default.func.isRequired})],g=["auto auto","top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],y=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=function(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?f(e):t}(this,d(t).call(this,e)),p(f(f(r)),"_targetNode",null),p(f(f(r)),"_elementParentNode",null),p(f(f(r)),"_tether",null),p(f(f(r)),"_elementComponent",null),p(f(f(r)),"_targetComponent",null),r.updateChildrenComponents(r.props),r}var r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(t,e),r=t,i=[{key:"updateChildrenComponents",value:function(e){var t=n.Children.toArray(e.children);if(this._targetComponent=t[0],this._elementComponent=t[1],this._targetComponent&&this._elementComponent&&this._createContainer(),this._elementParentNode&&this.props.className!==e.className){var r,i,o=(this.props.className||"").split(" ").filter((function(e){return e.length>0})),a=(e.className||"").split(" ").filter((function(e){return e.length>0}));(r=this._elementParentNode.classList).remove.apply(r,c(o)),(i=this._elementParentNode.classList).add.apply(i,c(a))}}},{key:"componentDidMount",value:function(){this._update()}},{key:"componentDidUpdate",value:function(){this._update()}},{key:"componentWillUnmount",value:function(){this._destroy()}},{key:"getTetherInstance",value:function(){return this._tether}},{key:"disable",value:function(){this._tether.disable()}},{key:"enable",value:function(){this._tether.enable()}},{key:"on",value:function(e,t,r){this._tether.on(e,t,r)}},{key:"once",value:function(e,t,r){this._tether.once(e,t,r)}},{key:"off",value:function(e,t){this._tether.off(e,t)}},{key:"position",value:function(){this._tether.position()}},{key:"_registerEventListeners",value:function(){var e=this;this.on("update",(function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e.props.onUpdate&&e.props.onUpdate.apply(e,r)})),this.on("repositioned",(function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e.props.onRepositioned&&e.props.onRepositioned.apply(e,r)}))}},{key:"_destroy",value:function(){this._elementParentNode&&(m||o.default.unmountComponentAtNode(this._elementParentNode),this._elementParentNode.parentNode.removeChild(this._elementParentNode)),this._tether&&this._tether.destroy(),this._elementParentNode=null,this._tether=null,this._targetNode=null,this._targetComponent=null,this._elementComponent=null}},{key:"_createContainer",value:function(){if(!this._elementParentNode){var e=this.props,t=e.renderElementTag,r=e.className;this._elementParentNode=document.createElement(t),this._elementParentNode.className=r||"",this._renderNode.appendChild(this._elementParentNode)}}},{key:"_update",value:function(){var e=this,t=!this._elementComponent||!this._targetComponent;t||(this._targetNode=o.default.findDOMNode(this),t=!this._targetNode),t?this._destroy():m?this._updateTether():o.default.unstable_renderSubtreeIntoContainer(this,this._elementComponent,this._elementParentNode,(function(){e._elementParentNode&&e._updateTether()}))}},{key:"_updateTether",value:function(){var e=this.props,t=(e.children,e.renderElementTag,e.renderElementTo,e.id),r=(e.className,e.style),n=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["children","renderElementTag","renderElementTo","id","className","style"]),i=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){p(e,t,r[t])}))}return e}({target:this._targetNode,element:this._elementParentNode},n),o=t||"";if(this._elementParentNode.id!==o&&(this._elementParentNode.id=o),r){var s=this._elementParentNode.style;Object.keys(r).forEach((function(e){s[e]!==r[e]&&(s[e]=r[e])}))}this._tether?this._tether.setOptions(i):(this._tether=new a.default(i),this._registerEventListeners()),this._tether.position()}},{key:"render",value:function(){return this._targetComponent?m&&this._elementComponent?[this._targetComponent,o.default.createPortal(this._elementComponent,this._elementParentNode)]:this._targetComponent:null}},{key:"_renderNode",get:function(){var e=this.props.renderElementTo;return"string"==typeof e?document.querySelector(e):e||document.body}}],i&&u(r.prototype,i),t}(n.Component);function v(e){this.updateChildrenComponents(e)}p(y,"propTypes",{renderElementTag:i.default.string,renderElementTo:i.default.oneOfType(b),attachment:i.default.oneOf(g).isRequired,targetAttachment:i.default.oneOf(g),offset:i.default.string,targetOffset:i.default.string,targetModifier:i.default.string,enabled:i.default.bool,classes:i.default.object,classPrefix:i.default.string,optimizations:i.default.object,constraints:i.default.array,id:i.default.string,className:i.default.string,style:i.default.object,onUpdate:i.default.func,onRepositioned:i.default.func,children:function(e,t,r){var i=e.children,o=n.Children.count(i);return o<=0?new Error("".concat(r," expects at least one child to use as the target element.")):o>2?new Error("Only a max of two children allowed in ".concat(r,".")):void 0}}),p(y,"defaultProps",{renderElementTag:"div",renderElementTo:null});var w,E=function(e){if(Array.isArray(e))return e}(w=n.default.version.split(".").map(Number))||function(e,t){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),2!==r.length);n=!0);}catch(e){i=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return r}(w)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}(),S=E[0],C=E[1];S<16||16===S&&C<9?y.prototype.componentWillUpdate=v:y.prototype.UNSAFE_componentWillUpdate=v;var k=y;t.default=k},91695:(e,t,r)=>{"use strict";Object.defineProperty(t,"A",{enumerable:!0,get:function(){return i.default}});var n,i=(n=r(86742))&&n.__esModule?n:{default:n}},16109:(e,t)=>{"use strict";var r=Symbol.for("react.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),f=Symbol.iterator,p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,b={};function g(e,t,r){this.props=e,this.context=t,this.refs=b,this.updater=r||p}function y(){}function v(e,t,r){this.props=e,this.context=t,this.refs=b,this.updater=r||p}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=g.prototype;var w=v.prototype=new y;w.constructor=v,m(w,g.prototype),w.isPureReactComponent=!0;var E=Array.isArray,S=Object.prototype.hasOwnProperty,C={current:null},k={key:!0,ref:!0,__self:!0,__source:!0};function x(e,t,n){var i,o={},a=null,s=null;if(null!=t)for(i in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)S.call(t,i)&&!k.hasOwnProperty(i)&&(o[i]=t[i]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(i in l=e.defaultProps)void 0===o[i]&&(o[i]=l[i]);return{$$typeof:r,type:e,key:a,ref:s,props:o,_owner:C.current}}function P(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}var _=/\/+/g;function O(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function A(e,t,i,o,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case r:case n:l=!0}}if(l)return a=a(l=e),e=""===o?"."+O(l,0):o,E(a)?(i="",null!=e&&(i=e.replace(_,"$&/")+"/"),A(a,t,i,"",(function(e){return e}))):null!=a&&(P(a)&&(a=function(e,t){return{$$typeof:r,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,i+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(_,"$&/")+"/")+e)),t.push(a)),1;if(l=0,o=""===o?".":o+":",E(e))for(var c=0;c<e.length;c++){var u=o+O(s=e[c],c);l+=A(s,t,i,u,a)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=f&&e[f]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),c=0;!(s=e.next()).done;)l+=A(s=s.value,t,i,u=o+O(s,c++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function T(e,t,r){if(null==e)return e;var n=[],i=0;return A(e,n,"","",(function(e){return t.call(r,e,i++)})),n}function I(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var M={current:null},D={transition:null},R={ReactCurrentDispatcher:M,ReactCurrentBatchConfig:D,ReactCurrentOwner:C};function F(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:T,forEach:function(e,t,r){T(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return T(e,(function(){t++})),t},toArray:function(e){return T(e,(function(e){return e}))||[]},only:function(e){if(!P(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=g,t.Fragment=i,t.Profiler=a,t.PureComponent=v,t.StrictMode=o,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=R,t.act=F,t.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=m({},e.props),o=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=C.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)S.call(t,c)&&!k.hasOwnProperty(c)&&(i[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)i.children=n;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];i.children=l}return{$$typeof:r,type:e.type,key:o,ref:a,props:i,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=x,t.createFactory=function(e){var t=x.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=P,t.lazy=function(e){return{$$typeof:h,_payload:{_status:-1,_result:e},_init:I}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=D.transition;D.transition={};try{e()}finally{D.transition=t}},t.unstable_act=F,t.useCallback=function(e,t){return M.current.useCallback(e,t)},t.useContext=function(e){return M.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return M.current.useDeferredValue(e)},t.useEffect=function(e,t){return M.current.useEffect(e,t)},t.useId=function(){return M.current.useId()},t.useImperativeHandle=function(e,t,r){return M.current.useImperativeHandle(e,t,r)},t.useInsertionEffect=function(e,t){return M.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return M.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return M.current.useMemo(e,t)},t.useReducer=function(e,t,r){return M.current.useReducer(e,t,r)},t.useRef=function(e){return M.current.useRef(e)},t.useState=function(e){return M.current.useState(e)},t.useSyncExternalStore=function(e,t,r){return M.current.useSyncExternalStore(e,t,r)},t.useTransition=function(){return M.current.useTransition()},t.version="18.3.1"},1986:(e,t,r)=>{"use strict";e.exports=r(16109)},46414:e=>{var t=function(e){"use strict";var t,r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof g?t:g,a=Object.create(o.prototype),s=new T(n||[]);return i(a,"_invoke",{value:P(e,r,s)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var h="suspendedStart",f="suspendedYield",p="executing",m="completed",b={};function g(){}function y(){}function v(){}var w={};c(w,a,(function(){return this}));var E=Object.getPrototypeOf,S=E&&E(E(I([])));S&&S!==r&&n.call(S,a)&&(w=S);var C=v.prototype=g.prototype=Object.create(w);function k(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function r(i,o,a,s){var l=d(e[i],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==typeof u&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var o;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return o=o?o.then(i,i):i()}})}function P(e,r,n){var i=h;return function(o,a){if(i===p)throw new Error("Generator is already running");if(i===m){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var l=_(s,n);if(l){if(l===b)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=p;var c=d(e,r,n);if("normal"===c.type){if(i=n.done?m:f,c.arg===b)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=m,n.method="throw",n.arg=c.arg)}}}function _(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,_(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var o=d(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,b;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,b):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function I(e){if(null!=e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(typeof e+" is not iterable")}return y.prototype=v,i(C,"constructor",{value:v,configurable:!0}),i(v,"constructor",{value:y,configurable:!0}),y.displayName=c(v,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,l,"GeneratorFunction")),e.prototype=Object.create(C),e},e.awrap=function(e){return{__await:e}},k(x.prototype),c(x.prototype,s,(function(){return this})),e.AsyncIterator=x,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new x(u(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},k(C),c(C,l,"Generator"),c(C,a,(function(){return this})),c(C,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=I,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(A),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type="throw",s.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),A(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;A(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),b}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},97245:(e,t)=>{"use strict";function r(e,t){var r=e.length;e.push(t);e:for(;0<r;){var n=r-1>>>1,i=e[n];if(!(0<o(i,t)))break e;e[n]=t,e[r]=i,r=n}}function n(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],r=e.pop();if(r!==t){e[0]=r;e:for(var n=0,i=e.length,a=i>>>1;n<a;){var s=2*(n+1)-1,l=e[s],c=s+1,u=e[c];if(0>o(l,r))c<i&&0>o(u,l)?(e[n]=u,e[c]=r,n=c):(e[n]=l,e[s]=r,n=s);else{if(!(c<i&&0>o(u,r)))break e;e[n]=u,e[c]=r,n=c}}}return t}function o(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var c=[],u=[],d=1,h=null,f=3,p=!1,m=!1,b=!1,g="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=n(u);null!==t;){if(null===t.callback)i(u);else{if(!(t.startTime<=e))break;i(u),t.sortIndex=t.expirationTime,r(c,t)}t=n(u)}}function E(e){if(b=!1,w(e),!m)if(null!==n(c))m=!0,D(S);else{var t=n(u);null!==t&&R(E,t.startTime-e)}}function S(e,r){m=!1,b&&(b=!1,y(P),P=-1),p=!0;var o=f;try{for(w(r),h=n(c);null!==h&&(!(h.expirationTime>r)||e&&!A());){var a=h.callback;if("function"==typeof a){h.callback=null,f=h.priorityLevel;var s=a(h.expirationTime<=r);r=t.unstable_now(),"function"==typeof s?h.callback=s:h===n(c)&&i(c),w(r)}else i(c);h=n(c)}if(null!==h)var l=!0;else{var d=n(u);null!==d&&R(E,d.startTime-r),l=!1}return l}finally{h=null,f=o,p=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var C,k=!1,x=null,P=-1,_=5,O=-1;function A(){return!(t.unstable_now()-O<_)}function T(){if(null!==x){var e=t.unstable_now();O=e;var r=!0;try{r=x(!0,e)}finally{r?C():(k=!1,x=null)}}else k=!1}if("function"==typeof v)C=function(){v(T)};else if("undefined"!=typeof MessageChannel){var I=new MessageChannel,M=I.port2;I.port1.onmessage=T,C=function(){M.postMessage(null)}}else C=function(){g(T,0)};function D(e){x=e,k||(k=!0,C())}function R(e,r){P=g((function(){e(t.unstable_now())}),r)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||p||(m=!0,D(S))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):_=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_getFirstCallbackNode=function(){return n(c)},t.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var r=f;f=t;try{return e()}finally{f=r}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=f;f=e;try{return t()}finally{f=r}},t.unstable_scheduleCallback=function(e,i,o){var a=t.unstable_now();switch(o="object"==typeof o&&null!==o&&"number"==typeof(o=o.delay)&&0<o?a+o:a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:i,priorityLevel:e,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>a?(e.sortIndex=o,r(u,e),null===n(c)&&e===n(u)&&(b?(y(P),P=-1):b=!0,R(E,o-a))):(e.sortIndex=s,r(c,e),m||p||(m=!0,D(S))),e},t.unstable_shouldYield=A,t.unstable_wrapCallback=function(e){var t=f;return function(){var r=f;f=t;try{return e.apply(this,arguments)}finally{f=r}}}},40552:(e,t,r)=>{"use strict";e.exports=r(97245)},12010:e=>{"use strict";e.exports=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}},88072:function(e,t){var r,n;r=function(){"use strict";var e=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=void 0;void 0===r&&(r={modules:[]});var n=null;function i(e){var t=e.getBoundingClientRect(),r={};for(var n in t)r[n]=t[n];try{if(e.ownerDocument!==document){var o=e.ownerDocument.defaultView.frameElement;if(o){var a=i(o);r.top+=a.top,r.bottom+=a.top,r.left+=a.left,r.right+=a.left}}}catch(e){}return r}function o(e){var t=(getComputedStyle(e)||{}).position,r=[];if("fixed"===t)return[e];for(var n=e;(n=n.parentNode)&&n&&1===n.nodeType;){var i=void 0;try{i=getComputedStyle(n)}catch(e){}if(null==i)return r.push(n),r;var o=i,a=o.overflow,s=o.overflowX,l=o.overflowY;/(auto|scroll|overlay)/.test(a+l+s)&&("absolute"!==t||["relative","absolute","fixed"].indexOf(i.position)>=0)&&r.push(n)}return r.push(e.ownerDocument.body),e.ownerDocument!==document&&r.push(e.ownerDocument.defaultView),r}var a,s=(a=0,function(){return++a}),l={},c=function(){var e=n;e&&document.body.contains(e)||((e=document.createElement("div")).setAttribute("data-tether-id",s()),m(e.style,{top:0,left:0,position:"absolute"}),document.body.appendChild(e),n=e);var t=e.getAttribute("data-tether-id");return void 0===l[t]&&(l[t]=i(e),C((function(){delete l[t]}))),l[t]};function u(){n&&document.body.removeChild(n),n=null}function d(e){var t=void 0;e===document?(t=document,e=document.documentElement):t=e.ownerDocument;var r=t.documentElement,n=i(e),o=c();return n.top-=o.top,n.left-=o.left,void 0===n.width&&(n.width=document.body.scrollWidth-n.left-n.right),void 0===n.height&&(n.height=document.body.scrollHeight-n.top-n.bottom),n.top=n.top-r.clientTop,n.left=n.left-r.clientLeft,n.right=t.body.clientWidth-n.width-n.left,n.bottom=t.body.clientHeight-n.height-n.top,n}function h(e){return e.offsetParent||document.documentElement}var f=null;function p(){if(f)return f;var e=document.createElement("div");e.style.width="100%",e.style.height="200px";var t=document.createElement("div");m(t.style,{position:"absolute",top:0,left:0,pointerEvents:"none",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),t.appendChild(e),document.body.appendChild(t);var r=e.offsetWidth;t.style.overflow="scroll";var n=e.offsetWidth;r===n&&(n=t.clientWidth),document.body.removeChild(t);var i=r-n;return f={width:i,height:i}}function m(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],t=[];return Array.prototype.push.apply(t,arguments),t.slice(1).forEach((function(t){if(t)for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])})),e}function b(e,t){if(void 0!==e.classList)t.split(" ").forEach((function(t){t.trim()&&e.classList.remove(t)}));else{var r=new RegExp("(^| )"+t.split(" ").join("|")+"( |$)","gi"),n=v(e).replace(r," ");w(e,n)}}function g(e,t){if(void 0!==e.classList)t.split(" ").forEach((function(t){t.trim()&&e.classList.add(t)}));else{b(e,t);var r=v(e)+" "+t;w(e,r)}}function y(e,t){if(void 0!==e.classList)return e.classList.contains(t);var r=v(e);return new RegExp("(^| )"+t+"( |$)","gi").test(r)}function v(e){return e.className instanceof e.ownerDocument.defaultView.SVGAnimatedString?e.className.baseVal:e.className}function w(e,t){e.setAttribute("class",t)}function E(e,t,r){r.forEach((function(r){-1===t.indexOf(r)&&y(e,r)&&b(e,r)})),t.forEach((function(t){y(e,t)||g(e,t)}))}var S=[],C=function(e){S.push(e)},k=function(){for(var e=void 0;e=S.pop();)e()},x=function(){function r(){t(this,r)}return e(r,[{key:"on",value:function(e,t,r){var n=!(arguments.length<=3||void 0===arguments[3])&&arguments[3];void 0===this.bindings&&(this.bindings={}),void 0===this.bindings[e]&&(this.bindings[e]=[]),this.bindings[e].push({handler:t,ctx:r,once:n})}},{key:"once",value:function(e,t,r){this.on(e,t,r,!0)}},{key:"off",value:function(e,t){if(void 0!==this.bindings&&void 0!==this.bindings[e])if(void 0===t)delete this.bindings[e];else for(var r=0;r<this.bindings[e].length;)this.bindings[e][r].handler===t?this.bindings[e].splice(r,1):++r}},{key:"trigger",value:function(e){if(void 0!==this.bindings&&this.bindings[e]){for(var t=0,r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];for(;t<this.bindings[e].length;){var o=this.bindings[e][t],a=o.handler,s=o.ctx,l=o.once,c=s;void 0===c&&(c=this),a.apply(c,n),l?this.bindings[e].splice(t,1):++t}}}}]),r}();r.Utils={getActualBoundingClientRect:i,getScrollParents:o,getBounds:d,getOffsetParent:h,extend:m,addClass:g,removeClass:b,hasClass:y,updateClasses:E,defer:C,flush:k,uniqueId:s,Evented:x,getScrollBarSize:p,removeUtilElements:u};var P=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){i=!0,o=e}finally{try{!n&&s.return&&s.return()}finally{if(i)throw o}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},_=(e=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),function(e,t,r){for(var n=!0;n;){var i=e,o=t,a=r;n=!1,null===i&&(i=Function.prototype);var s=Object.getOwnPropertyDescriptor(i,o);if(void 0!==s){if("value"in s)return s.value;var l=s.get;if(void 0===l)return;return l.call(a)}var c=Object.getPrototypeOf(i);if(null===c)return;e=c,t=o,r=a,n=!0,s=c=void 0}});function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}if(void 0===r)throw new Error("You must include the utils.js file before tether.js");var o=(X=r.Utils).getScrollParents,h=(d=X.getBounds,X.getOffsetParent),g=(m=X.extend,X.addClass),b=X.removeClass,p=(E=X.updateClasses,C=X.defer,k=X.flush,X.getScrollBarSize),u=X.removeUtilElements;function O(e,t){var r=arguments.length<=2||void 0===arguments[2]?1:arguments[2];return e+r>=t&&t>=e-r}var A,T,I,M,D=function(){if("undefined"==typeof document)return"";for(var e=document.createElement("div"),t=["transform","WebkitTransform","OTransform","MozTransform","msTransform"],r=0;r<t.length;++r){var n=t[r];if(void 0!==e.style[n])return n}}(),R=[],F=function(){R.forEach((function(e){e.position(!1)})),k()};function L(){return"object"==typeof performance&&"function"==typeof performance.now?performance.now():+new Date}A=null,T=null,I=null,M=function e(){if(void 0!==T&&T>16)return T=Math.min(T-16,250),void(I=setTimeout(e,250));void 0!==A&&L()-A<10||(null!=I&&(clearTimeout(I),I=null),A=L(),F(),T=L()-A)},"undefined"!=typeof window&&void 0!==window.addEventListener&&["resize","scroll","touchmove"].forEach((function(e){window.addEventListener(e,M)}));var j={center:"center",left:"right",right:"left"},N={middle:"middle",top:"bottom",bottom:"top"},U={top:0,left:0,middle:"50%",center:"50%",bottom:"100%",right:"100%"},H=function(e){var t=e.left,r=e.top;return void 0!==U[e.left]&&(t=U[e.left]),void 0!==U[e.top]&&(r=U[e.top]),{left:t,top:r}};function B(){for(var e={top:0,left:0},t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return r.forEach((function(t){var r=t.top,n=t.left;"string"==typeof r&&(r=parseFloat(r,10)),"string"==typeof n&&(n=parseFloat(n,10)),e.top+=r,e.left+=n})),e}function z(e,t){return"string"==typeof e.left&&-1!==e.left.indexOf("%")&&(e.left=parseFloat(e.left,10)/100*t.width),"string"==typeof e.top&&-1!==e.top.indexOf("%")&&(e.top=parseFloat(e.top,10)/100*t.height),e}var V=function(e){var t=e.split(" "),r=P(t,2);return{top:r[0],left:r[1]}},$=V,q=function(n){function i(e){var n=this;t(this,i),_(Object.getPrototypeOf(i.prototype),"constructor",this).call(this),this.position=this.position.bind(this),R.push(this),this.history=[],this.setOptions(e,!1),r.modules.forEach((function(e){void 0!==e.initialize&&e.initialize.call(n)})),this.position()}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,n),e(i,[{key:"getClass",value:function(){var e=arguments.length<=0||void 0===arguments[0]?"":arguments[0],t=this.options.classes;return void 0!==t&&t[e]?this.options.classes[e]:this.options.classPrefix?this.options.classPrefix+"-"+e:e}},{key:"setOptions",value:function(e){var t=this,r=arguments.length<=1||void 0===arguments[1]||arguments[1];this.options=m({offset:"0 0",targetOffset:"0 0",targetAttachment:"auto auto",classPrefix:"tether"},e);var n=this.options,i=n.element,a=n.target,s=n.targetModifier;if(this.element=i,this.target=a,this.targetModifier=s,"viewport"===this.target?(this.target=document.body,this.targetModifier="visible"):"scroll-handle"===this.target&&(this.target=document.body,this.targetModifier="scroll-handle"),["element","target"].forEach((function(e){if(void 0===t[e])throw new Error("Tether Error: Both element and target must be defined");void 0!==t[e].jquery?t[e]=t[e][0]:"string"==typeof t[e]&&(t[e]=document.querySelector(t[e]))})),g(this.element,this.getClass("element")),!1!==this.options.addTargetClasses&&g(this.target,this.getClass("target")),!this.options.attachment)throw new Error("Tether Error: You must provide an attachment");this.targetAttachment=$(this.options.targetAttachment),this.attachment=$(this.options.attachment),this.offset=V(this.options.offset),this.targetOffset=V(this.options.targetOffset),void 0!==this.scrollParents&&this.disable(),"scroll-handle"===this.targetModifier?this.scrollParents=[this.target]:this.scrollParents=o(this.target),!1!==this.options.enabled&&this.enable(r)}},{key:"getTargetBounds",value:function(){if(void 0===this.targetModifier)return d(this.target);if("visible"===this.targetModifier)return this.target===document.body?{top:pageYOffset,left:pageXOffset,height:innerHeight,width:innerWidth}:((o={height:(e=d(this.target)).height,width:e.width,top:e.top,left:e.left}).height=Math.min(o.height,e.height-(pageYOffset-e.top)),o.height=Math.min(o.height,e.height-(e.top+e.height-(pageYOffset+innerHeight))),o.height=Math.min(innerHeight,o.height),o.height-=2,o.width=Math.min(o.width,e.width-(pageXOffset-e.left)),o.width=Math.min(o.width,e.width-(e.left+e.width-(pageXOffset+innerWidth))),o.width=Math.min(innerWidth,o.width),o.width-=2,o.top<pageYOffset&&(o.top=pageYOffset),o.left<pageXOffset&&(o.left=pageXOffset),o);if("scroll-handle"===this.targetModifier){var e=void 0,t=this.target;t===document.body?(t=document.documentElement,e={left:pageXOffset,top:pageYOffset,height:innerHeight,width:innerWidth}):e=d(t);var r=getComputedStyle(t),n=0;(t.scrollWidth>t.clientWidth||[r.overflow,r.overflowX].indexOf("scroll")>=0||this.target!==document.body)&&(n=15);var i=e.height-parseFloat(r.borderTopWidth)-parseFloat(r.borderBottomWidth)-n,o={width:15,height:.975*i*(i/t.scrollHeight),left:e.left+e.width-parseFloat(r.borderLeftWidth)-15},a=0;i<408&&this.target===document.body&&(a=-11e-5*Math.pow(i,2)-.00727*i+22.58),this.target!==document.body&&(o.height=Math.max(o.height,24));var s=this.target.scrollTop/(t.scrollHeight-i);return o.top=s*(i-o.height-a)+e.top+parseFloat(r.borderTopWidth),this.target===document.body&&(o.height=Math.max(o.height,24)),o}}},{key:"clearCache",value:function(){this._cache={}}},{key:"cache",value:function(e,t){return void 0===this._cache&&(this._cache={}),void 0===this._cache[e]&&(this._cache[e]=t.call(this)),this._cache[e]}},{key:"enable",value:function(){var e=this,t=arguments.length<=0||void 0===arguments[0]||arguments[0];!1!==this.options.addTargetClasses&&g(this.target,this.getClass("enabled")),g(this.element,this.getClass("enabled")),this.enabled=!0,this.scrollParents.forEach((function(t){t!==e.target.ownerDocument&&t.addEventListener("scroll",e.position)})),t&&this.position()}},{key:"disable",value:function(){var e=this;b(this.target,this.getClass("enabled")),b(this.element,this.getClass("enabled")),this.enabled=!1,void 0!==this.scrollParents&&this.scrollParents.forEach((function(t){t.removeEventListener("scroll",e.position)}))}},{key:"destroy",value:function(){var e=this;this.disable(),R.forEach((function(t,r){t===e&&R.splice(r,1)})),0===R.length&&u()}},{key:"updateAttachClasses",value:function(e,t){var r=this;e=e||this.attachment,t=t||this.targetAttachment;void 0!==this._addAttachClasses&&this._addAttachClasses.length&&this._addAttachClasses.splice(0,this._addAttachClasses.length),void 0===this._addAttachClasses&&(this._addAttachClasses=[]);var n=this._addAttachClasses;e.top&&n.push(this.getClass("element-attached")+"-"+e.top),e.left&&n.push(this.getClass("element-attached")+"-"+e.left),t.top&&n.push(this.getClass("target-attached")+"-"+t.top),t.left&&n.push(this.getClass("target-attached")+"-"+t.left);var i=[];["left","top","bottom","right","middle","center"].forEach((function(e){i.push(r.getClass("element-attached")+"-"+e),i.push(r.getClass("target-attached")+"-"+e)})),C((function(){void 0!==r._addAttachClasses&&(E(r.element,r._addAttachClasses,i),!1!==r.options.addTargetClasses&&E(r.target,r._addAttachClasses,i),delete r._addAttachClasses)}))}},{key:"position",value:function(){var e=this,t=arguments.length<=0||void 0===arguments[0]||arguments[0];if(this.enabled){this.clearCache();var n=function(e,t){var r=e.left,n=e.top;return"auto"===r&&(r=j[t.left]),"auto"===n&&(n=N[t.top]),{left:r,top:n}}(this.targetAttachment,this.attachment);this.updateAttachClasses(this.attachment,n);var i=this.cache("element-bounds",(function(){return d(e.element)})),o=i.width,a=i.height;if(0===o&&0===a&&void 0!==this.lastSize){var s=this.lastSize;o=s.width,a=s.height}else this.lastSize={width:o,height:a};var l=this.cache("target-bounds",(function(){return e.getTargetBounds()})),c=l,u=z(H(this.attachment),{width:o,height:a}),f=z(H(n),c),m=z(this.offset,{width:o,height:a}),b=z(this.targetOffset,c);u=B(u,m),f=B(f,b);for(var g=l.left+f.left-u.left,y=l.top+f.top-u.top,v=0;v<r.modules.length;++v){var w=r.modules[v].position.call(this,{left:g,top:y,targetAttachment:n,targetPos:l,elementPos:i,offset:u,targetOffset:f,manualOffset:m,manualTargetOffset:b,scrollbarSize:x,attachment:this.attachment});if(!1===w)return!1;void 0!==w&&"object"==typeof w&&(y=w.top,g=w.left)}var E={page:{top:y,left:g},viewport:{top:y-pageYOffset,bottom:pageYOffset-y-a+innerHeight,left:g-pageXOffset,right:pageXOffset-g-o+innerWidth}},S=this.target.ownerDocument,C=S.defaultView,x=void 0;return C.innerHeight>S.documentElement.clientHeight&&(x=this.cache("scrollbar-size",p),E.viewport.bottom-=x.height),C.innerWidth>S.documentElement.clientWidth&&(x=this.cache("scrollbar-size",p),E.viewport.right-=x.width),-1!==["","static"].indexOf(S.body.style.position)&&-1!==["","static"].indexOf(S.body.parentElement.style.position)||(E.page.bottom=S.body.scrollHeight-y-a,E.page.right=S.body.scrollWidth-g-o),void 0!==this.options.optimizations&&!1!==this.options.optimizations.moveElement&&void 0===this.targetModifier&&function(){var t=e.cache("target-offsetparent",(function(){return h(e.target)})),r=e.cache("target-offsetparent-bounds",(function(){return d(t)})),n=getComputedStyle(t),i=r,o={};if(["Top","Left","Bottom","Right"].forEach((function(e){o[e.toLowerCase()]=parseFloat(n["border"+e+"Width"])})),r.right=S.body.scrollWidth-r.left-i.width+o.right,r.bottom=S.body.scrollHeight-r.top-i.height+o.bottom,E.page.top>=r.top+o.top&&E.page.bottom>=r.bottom&&E.page.left>=r.left+o.left&&E.page.right>=r.right){var a=t.scrollTop,s=t.scrollLeft;E.offset={top:E.page.top-r.top+a-o.top,left:E.page.left-r.left+s-o.left}}}(),this.move(E),this.history.unshift(E),this.history.length>3&&this.history.pop(),t&&k(),!0}}},{key:"move",value:function(e){var t,r,n=this;if(void 0!==this.element.parentNode){var i={};for(var o in e)for(var a in i[o]={},e[o]){for(var s=!1,l=0;l<this.history.length;++l){var c=this.history[l];if(void 0!==c[o]&&!O(c[o][a],e[o][a])){s=!0;break}}s||(i[o][a]=!0)}var u={top:"",left:"",right:"",bottom:""},d=function(e,t){if(!1!==(void 0!==n.options.optimizations?n.options.optimizations.gpu:null)){var r=void 0,i=void 0;e.top?(u.top=0,r=t.top):(u.bottom=0,r=-t.bottom),e.left?(u.left=0,i=t.left):(u.right=0,i=-t.right),"number"==typeof window.devicePixelRatio&&devicePixelRatio%1==0&&(i=Math.round(i*devicePixelRatio)/devicePixelRatio,r=Math.round(r*devicePixelRatio)/devicePixelRatio),u[D]="translateX("+i+"px) translateY("+r+"px)","msTransform"!==D&&(u[D]+=" translateZ(0)")}else e.top?u.top=t.top+"px":u.bottom=t.bottom+"px",e.left?u.left=t.left+"px":u.right=t.right+"px"},f=!1;if((i.page.top||i.page.bottom)&&(i.page.left||i.page.right)?(u.position="absolute",d(i.page,e.page)):(i.viewport.top||i.viewport.bottom)&&(i.viewport.left||i.viewport.right)?(u.position="fixed",d(i.viewport,e.viewport)):void 0!==i.offset&&i.offset.top&&i.offset.left?function(){u.position="absolute";var t=n.cache("target-offsetparent",(function(){return h(n.target)}));h(n.element)!==t&&C((function(){n.element.parentNode.removeChild(n.element),t.appendChild(n.element)})),d(i.offset,e.offset),f=!0}():(u.position="absolute",d({top:!0,left:!0},e.page)),!f)if(this.options.bodyElement)this.element.parentNode!==this.options.bodyElement&&this.options.bodyElement.appendChild(this.element);else{for(var p=!0,b=this.element.parentNode;b&&1===b.nodeType&&"BODY"!==b.tagName&&(r=void 0,((r=(t=b).ownerDocument).fullscreenElement||r.webkitFullscreenElement||r.mozFullScreenElement||r.msFullscreenElement)!==t);){if("static"!==getComputedStyle(b).position){p=!1;break}b=b.parentNode}p||(this.element.parentNode.removeChild(this.element),this.element.ownerDocument.body.appendChild(this.element))}var g={},y=!1;for(var a in u){var v=u[a];this.element.style[a]!==v&&(y=!0,g[a]=v)}y&&C((function(){m(n.element.style,g),n.trigger("repositioned")}))}}}]),i}(x);q.modules=[],r.position=F;var G=m(q,r);P=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){i=!0,o=e}finally{try{!n&&s.return&&s.return()}finally{if(i)throw o}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},d=(X=r.Utils).getBounds;var m=X.extend,W=(E=X.updateClasses,C=X.defer,["left","top","right","bottom"]);r.modules.push({position:function(e){var t=this,r=e.top,n=e.left,i=e.targetAttachment;if(!this.options.constraints)return!0;var o=this.cache("element-bounds",(function(){return d(t.element)})),a=o.height,s=o.width;if(0===s&&0===a&&void 0!==this.lastSize){var l=this.lastSize;s=l.width,a=l.height}var c=this.cache("target-bounds",(function(){return t.getTargetBounds()})),u=c.height,h=c.width,f=[this.getClass("pinned"),this.getClass("out-of-bounds")];this.options.constraints.forEach((function(e){var t=e.outOfBoundsClass,r=e.pinnedClass;t&&f.push(t),r&&f.push(r)})),f.forEach((function(e){["left","top","right","bottom"].forEach((function(t){f.push(e+"-"+t)}))}));var p=[],b=m({},i),g=m({},this.attachment);return this.options.constraints.forEach((function(e){var o=e.to,l=e.attachment,c=e.pin;void 0===l&&(l="");var f=void 0,m=void 0;if(l.indexOf(" ")>=0){var y=l.split(" "),v=P(y,2);m=v[0],f=v[1]}else f=m=l;var w=function(e,t){return"scrollParent"===t?t=e.scrollParents[0]:"window"===t&&(t=[pageXOffset,pageYOffset,innerWidth+pageXOffset,innerHeight+pageYOffset]),t===document&&(t=t.documentElement),void 0!==t.nodeType&&function(){var e=t,r=d(t),n=r,i=getComputedStyle(t);if(t=[n.left,n.top,r.width+n.left,r.height+n.top],e.ownerDocument!==document){var o=e.ownerDocument.defaultView;t[0]+=o.pageXOffset,t[1]+=o.pageYOffset,t[2]+=o.pageXOffset,t[3]+=o.pageYOffset}W.forEach((function(e,r){"Top"===(e=e[0].toUpperCase()+e.substr(1))||"Left"===e?t[r]+=parseFloat(i["border"+e+"Width"]):t[r]-=parseFloat(i["border"+e+"Width"])}))}(),t}(t,o);"target"!==m&&"both"!==m||(r<w[1]&&"top"===b.top&&(r+=u,b.top="bottom"),r+a>w[3]&&"bottom"===b.top&&(r-=u,b.top="top")),"together"===m&&("top"===b.top&&("bottom"===g.top&&r<w[1]?(r+=u,b.top="bottom",r+=a,g.top="top"):"top"===g.top&&r+a>w[3]&&r-(a-u)>=w[1]&&(r-=a-u,b.top="bottom",g.top="bottom")),"bottom"===b.top&&("top"===g.top&&r+a>w[3]?(r-=u,b.top="top",r-=a,g.top="bottom"):"bottom"===g.top&&r<w[1]&&r+(2*a-u)<=w[3]&&(r+=a-u,b.top="top",g.top="top")),"middle"===b.top&&(r+a>w[3]&&"top"===g.top?(r-=a,g.top="bottom"):r<w[1]&&"bottom"===g.top&&(r+=a,g.top="top"))),"target"!==f&&"both"!==f||(n<w[0]&&"left"===b.left&&(n+=h,b.left="right"),n+s>w[2]&&"right"===b.left&&(n-=h,b.left="left")),"together"===f&&(n<w[0]&&"left"===b.left?"right"===g.left?(n+=h,b.left="right",n+=s,g.left="left"):"left"===g.left&&(n+=h,b.left="right",n-=s,g.left="right"):n+s>w[2]&&"right"===b.left?"left"===g.left?(n-=h,b.left="left",n-=s,g.left="right"):"right"===g.left&&(n-=h,b.left="left",n+=s,g.left="left"):"center"===b.left&&(n+s>w[2]&&"left"===g.left?(n-=s,g.left="right"):n<w[0]&&"right"===g.left&&(n+=s,g.left="left"))),"element"!==m&&"both"!==m||(r<w[1]&&"bottom"===g.top&&(r+=a,g.top="top"),r+a>w[3]&&"top"===g.top&&(r-=a,g.top="bottom")),"element"!==f&&"both"!==f||(n<w[0]&&("right"===g.left?(n+=s,g.left="left"):"center"===g.left&&(n+=s/2,g.left="left")),n+s>w[2]&&("left"===g.left?(n-=s,g.left="right"):"center"===g.left&&(n-=s/2,g.left="right"))),"string"==typeof c?c=c.split(",").map((function(e){return e.trim()})):!0===c&&(c=["top","left","right","bottom"]),c=c||[];var E,S,C=[],k=[];r<w[1]&&(c.indexOf("top")>=0?(r=w[1],C.push("top")):k.push("top")),r+a>w[3]&&(c.indexOf("bottom")>=0?(r=w[3]-a,C.push("bottom")):k.push("bottom")),n<w[0]&&(c.indexOf("left")>=0?(n=w[0],C.push("left")):k.push("left")),n+s>w[2]&&(c.indexOf("right")>=0?(n=w[2]-s,C.push("right")):k.push("right")),C.length&&(void 0,E=void 0!==t.options.pinnedClass?t.options.pinnedClass:t.getClass("pinned"),p.push(E),C.forEach((function(e){p.push(E+"-"+e)}))),k.length&&(void 0,S=void 0!==t.options.outOfBoundsClass?t.options.outOfBoundsClass:t.getClass("out-of-bounds"),p.push(S),k.forEach((function(e){p.push(S+"-"+e)}))),(C.indexOf("left")>=0||C.indexOf("right")>=0)&&(g.left=b.left=!1),(C.indexOf("top")>=0||C.indexOf("bottom")>=0)&&(g.top=b.top=!1),b.top===i.top&&b.left===i.left&&g.top===t.attachment.top&&g.left===t.attachment.left||(t.updateAttachClasses(g,b),t.trigger("update",{attachment:g,targetAttachment:b}))})),C((function(){!1!==t.options.addTargetClasses&&E(t.target,p,f),E(t.element,p,f)})),{top:r,left:n}}});var X,d=(X=r.Utils).getBounds,E=X.updateClasses;return C=X.defer,r.modules.push({position:function(e){var t=this,r=e.top,n=e.left,i=this.cache("element-bounds",(function(){return d(t.element)})),o=i.height,a=i.width,s=this.getTargetBounds(),l=r+o,c=n+a,u=[];r<=s.bottom&&l>=s.top&&["left","right"].forEach((function(e){var t=s[e];t!==n&&t!==c||u.push(e)})),n<=s.right&&c>=s.left&&["top","bottom"].forEach((function(e){var t=s[e];t!==r&&t!==l||u.push(e)}));var h=[],f=[];return h.push(this.getClass("abutted")),["left","top","right","bottom"].forEach((function(e){h.push(t.getClass("abutted")+"-"+e)})),u.length&&f.push(this.getClass("abutted")),u.forEach((function(e){f.push(t.getClass("abutted")+"-"+e)})),C((function(){!1!==t.options.addTargetClasses&&E(t.target,f,h),E(t.element,f,h)})),!0}}),P=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){i=!0,o=e}finally{try{!n&&s.return&&s.return()}finally{if(i)throw o}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r.modules.push({position:function(e){var t=e.top,r=e.left;if(this.options.shift){var n=this.options.shift;"function"==typeof this.options.shift&&(n=this.options.shift.call(this,{top:t,left:r}));var i=void 0,o=void 0;if("string"==typeof n){(n=n.split(" "))[1]=n[1]||n[0];var a=P(n,2);i=a[0],o=a[1],i=parseFloat(i,10),o=parseFloat(o,10)}else i=n.top,o=n.left;return{top:t+=i,left:r+=o}}}}),G},void 0===(n=r.apply(t,[]))||(e.exports=n)},78444:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=a(e,o(r)))}return e}function o(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)n.call(e,r)&&e[r]&&(t=a(t,r));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(r=function(){return i}.apply(t,[]))||(e.exports=r)}()}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.loaded=!0,r.exports}__webpack_require__.amdO={},__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var __webpack_exports__={};(()=>{"use strict";__webpack_require__(46414);var e=__webpack_require__(1986),t=__webpack_require__(62275),r=__webpack_require__(57825),n=__webpack_require__.n(r);function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const a={language:"en-US",messages:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},{"be.accessStatsPermissionsError":"Sorry, you do not have permission to see the access stats for this file.","be.activityFeed.fullDateTime":"{time, date, full} at {time, time, short}","be.activityFeedItemApiError":"There was a problem loading the activity feed. Please refresh the page or try again later.","be.activitySidebar.activityFeed.annotationMissingError":"This comment no longer exists","be.activitySidebar.activityFeed.commentMissingError":"This comment no longer exists","be.activitySidebar.activityFeed.feedInlineErrorTitle":"Error","be.activitySidebar.activityFeed.hideReplies":"Hide replies","be.activitySidebar.activityFeed.reply":"Reply","be.activitySidebar.activityFeed.replyInThread":"Reply in thread","be.activitySidebar.activityFeed.showReplies":"See {repliesToLoadCount, plural, one {# reply} other {# replies}}","be.activitySidebar.activityFeed.taskMissingError":"This task no longer exists","be.activitySidebarFilter.status.allActivity":"All Activity","be.activitySidebarFilter.status.allComments":"All Comments","be.activitySidebarFilter.status.open":"Unresolved Comments","be.activitySidebarFilter.status.resolved":"Resolved Comments","be.activitySidebarFilter.status.tasks":"Tasks","be.add":"Add","be.additionalTab.blockedByShieldAccessPolicy":"Use of this app is blocked due to a security policy.","be.annotationThread.errorDeleteAnnotation":"There was an error deleting this item.","be.annotationThread.errorEditAnnotation":"This annotation could not be modified.","be.annotattionThread.errorFetchAnnotation":"The annotation could not be fetched.","be.api.appActivityDeleteErrorMessage":"There was an error deleting this item.","be.api.commentCreateConflictMessage":"This comment already exists.","be.api.commentCreateErrorMessage":"There was an error creating this comment.","be.api.commentDeleteErrorMessage":"There was an error deleting this comment.","be.api.commentUpdateErrorMessage":"This comment could not be modified.","be.api.repliesFetchErrorMessage":"The replies to this comment could not be loaded.","be.api.taskActionErrorTitle":"Error","be.api.taskApproveErrorMessage":"An error has occurred while approving this task. Please refresh the page and try again.","be.api.taskCompleteErrorMessage":"An error has occurred while completing this task. Please refresh the page and try again.","be.api.taskCreateErrorMessage":"An error occurred while creating this task. Please try again.","be.api.taskDeleteErrorMessage":"There was an error while deleting this task. Please refresh the page and try again.","be.api.taskGroupExceedsWarningTitle":"One or more groups can not receive this task as a group size cannot exceed the limit of {max} assignees per group.","be.api.taskRejectErrorMessage":"An error has occurred while rejecting this task. Please refresh the page and try again.","be.appActivity.altIcon":"{appActivityName} Icon","be.appActivity.deleteMenuItem":"Delete","be.appActivity.deletePrompt":"Are you sure you want to permanently delete this app activity?","be.back":"Back","be.bookmark":"Bookmark","be.boxEditBlacklistedError":"This file cannot be opened locally","be.boxEditErrorBlockedByPolicy":"Local editing of this content has been disabled based on an access policy","be.boxToolsInstallMessage":"Install {boxTools} to open this file on your desktop","be.cancel":"Cancel","be.choose":"Choose","be.close":"Close","be.collaboratedFolder":"Collaborated Folder","be.collapse":"Collapse","be.complete":"Complete","be.contentInsights.contentAnalyticsErrorText":"There was a problem loading content insights. Please try again.","be.contentInsights.contentAnalyticsPermissionError":"Oops! You no longer have access to view content insights.","be.contentInsights.contentInsightsTitle":"Content Insights","be.contentInsights.downloadGraphLabel":"Chart displaying the number of downloads over the selected time period","be.contentInsights.downloadGraphType":"DOWNLOADS","be.contentInsights.openContentInsightsButton":"See Details","be.contentInsights.peopleGraphLabel":"Chart displaying the number of users over the selected time period","be.contentInsights.peopleTitle":"PEOPLE","be.contentInsights.previewGraphLabel":"Chart displaying the number of previews over the selected time period","be.contentInsights.previewGraphType":"PREVIEWS","be.contentInsights.trendDown":"Trending down","be.contentInsights.trendMonth":"PAST MONTH","be.contentInsights.trendThreeMonths":"PAST 3 MONTHS","be.contentInsights.trendUp":"Trending up","be.contentInsights.trendWeek":"PAST WEEK","be.contentInsights.trendYear":"PAST YEAR","be.contentSharing.badRequestError":"The request for this item was malformed.","be.contentSharing.collaboratorsLoadingError":"Could not retrieve collaborators for this item.","be.contentSharing.getContactsError":"Could not retrieve contacts.","be.contentSharing.loadingError":"Could not load shared link for this item.","be.contentSharing.noAccessError":"You do not have access to this item.","be.contentSharing.notFoundError":"Could not find shared link for this item.","be.contentSharing.sendInvitesError":"Could not send invites.","be.contentSharing.sendInvitesSuccess":"Successfully invited collaborators.","be.contentSharing.sharedLinkRemovalSuccess":"The shared link for this item was removed.","be.contentSharing.sharedLinkSettingsUpdateSuccess":"The shared link for this item was successfully updated.","be.contentSharing.sharedLinkUpdateError":"Could not update the shared link for this item.","be.contentSidebar.activityFeed.annotationActivity.annotationActivityDeleteMenuItem":"Delete","be.contentSidebar.activityFeed.annotationActivity.annotationActivityDeletePrompt":"Are you sure you want to permanently delete this comment?","be.contentSidebar.activityFeed.annotationActivity.annotationActivityEditMenuItem":"Modify","be.contentSidebar.activityFeed.annotationActivity.annotationActivityPostedFullDateTime":"{time, date, full} at {time, time, short}","be.contentSidebar.activityFeed.annotationActivity.annotationActivityResolveMenuItem":"Resolve","be.contentSidebar.activityFeed.annotationActivity.annotationActivityUnresolveMenuItem":"Unresolve","be.contentSidebar.activityFeed.annotationActivityPageItem":"Page {number}","be.contentSidebar.activityFeed.annotationActivityVersionLink":"Version {number}","be.contentSidebar.activityFeed.annotationActivityVersionUnavailable":"Version Unavailable","be.contentSidebar.activityFeed.comment.commentDeleteMenuItem":"Delete","be.contentSidebar.activityFeed.comment.commentDeletePrompt":"Are you sure you want to permanently delete this comment?","be.contentSidebar.activityFeed.comment.commentEditMenuItem":"Modify","be.contentSidebar.activityFeed.comment.commentPostedFullDateTime":"{time, date, full} at {time, time, short}","be.contentSidebar.activityFeed.comment.commentResolveMenuItem":"Resolve","be.contentSidebar.activityFeed.comment.commentUnresolveMenuItem":"Unresolve","be.contentSidebar.activityFeed.comment.hideReplies":"Hide replies","be.contentSidebar.activityFeed.comment.inlineCommentAnnotationIconTitle":"Inline Comment","be.contentSidebar.activityFeed.comment.reply":"Reply","be.contentSidebar.activityFeed.comment.replyInThread":"Reply in thread","be.contentSidebar.activityFeed.comment.showReplies":"See {repliesToLoadCount, plural, one {# reply} other {# replies}}","be.contentSidebar.activityFeed.commentForm.approvalAddAssignee":"Add an assignee","be.contentSidebar.activityFeed.commentForm.approvalAddTask":"Add Task","be.contentSidebar.activityFeed.commentForm.approvalAddTaskTooltip":"Assigning a task to someone will send them a notification with the message in the comment box and allow them to approve or deny.","be.contentSidebar.activityFeed.commentForm.approvalAssignees":"Assignees","be.contentSidebar.activityFeed.commentForm.approvalDueDate":"Due Date","be.contentSidebar.activityFeed.commentForm.approvalSelectDate":"Select a date","be.contentSidebar.activityFeed.commentForm.atMentionTip":"@mention users to notify them.","be.contentSidebar.activityFeed.commentForm.atMentionTipDescription":"Use the @ symbol to mention users and use the up and down arrow keys to scroll through autocomplete suggestions.","be.contentSidebar.activityFeed.commentForm.commentCancel":"Cancel","be.contentSidebar.activityFeed.commentForm.commentLabel":"Write a comment","be.contentSidebar.activityFeed.commentForm.commentPost":"Post","be.contentSidebar.activityFeed.commentForm.commentWrite":"Write a comment","be.contentSidebar.activityFeed.commmon.showOriginalMessage":"Show Original","be.contentSidebar.activityFeed.common.activityStatusResolved":"RESOLVED","be.contentSidebar.activityFeed.common.editedMessage":" (edited)","be.contentSidebar.activityFeed.common.seeLessMessage":"See less","be.contentSidebar.activityFeed.common.seeMoreMessage":"See more","be.contentSidebar.activityFeed.common.translateMessage":"Translate","be.contentSidebar.activityFeed.task.approvalTaskAnnotationIconTitle":"Approval Task","be.contentSidebar.activityFeed.task.generalTaskAnnotationIconTitle":"General Task","be.contentSidebar.activityFeed.task.taskAnyAffordanceTooltip":"Only one assignee is required to complete this task","be.contentSidebar.activityFeed.task.taskDeleteMenuItem":"Delete task","be.contentSidebar.activityFeed.task.taskDeletePrompt":"Are you sure you want to permanently delete this task?","be.contentSidebar.activityFeed.task.taskEditMenuItem":"Modify task","be.contentSidebar.activityFeed.task.taskMultipleFilesAffordanceTooltip":"There are multiple files associated with this task","be.contentSidebar.activityFeed.taskForm.taskAnyCheckboxLabel":"Only one assignee is required to complete this task","be.contentSidebar.activityFeed.taskForm.taskAnyInfoGroupTooltip":"Selecting this option will require only one assignee to complete this task. This will include assignees across all groups.","be.contentSidebar.activityFeed.taskForm.taskAnyInfoTooltip":"By default, all assignees are required to take action before a task is complete. Selecting this option will require only one assignee to complete this task.","be.contentSidebar.activityFeed.taskForm.taskApprovalAssigneeRemovalWarningMessage":"Unable to remove assignee(s) because the task is now approved.","be.contentSidebar.activityFeed.taskForm.taskCreateErrorTitle":"Error","be.contentSidebar.activityFeed.taskForm.taskCreateGroupLabel":"Group","be.contentSidebar.activityFeed.taskForm.taskEditWarningTitle":"Task Updated with Errors","be.contentSidebar.activityFeed.taskForm.taskGeneralAssigneeRemovalWarningMessage":"Unable to remove assignee(s) because the task is now completed.","be.contentSidebar.activityFeed.taskForm.taskGroupExceedsWarningTitle":"Exceeded max assignees per group","be.contentSidebar.activityFeed.taskForm.taskUpdateErrorMessage":"An error occurred while modifying this task. Please try again.","be.contentSidebar.activityFeed.taskForm.tasksAddTaskFormCancelLabel":"Cancel","be.contentSidebar.activityFeed.taskForm.tasksAddTaskFormDueDateLabel":"Due Date","be.contentSidebar.activityFeed.taskForm.tasksAddTaskFormMessageLabel":"Message","be.contentSidebar.activityFeed.taskForm.tasksAddTaskFormSelectAssigneesLabel":"Select Assignees","be.contentSidebar.activityFeed.taskForm.tasksAddTaskFormSubmitLabel":"Create","be.contentSidebar.activityFeed.taskForm.tasksEditTaskFormSubmitLabel":"Update","be.contentSidebar.activityFeed.taskNew.taskAssignmentCompleted":"Completed","be.contentSidebar.activityFeed.taskNew.taskCollaboratorLoadErrorMessage":"An error has occurred while loading collaborators for this task. Please try again.","be.contentSidebar.activityFeed.taskNew.taskDueDateLabel":"Due: {date}","be.contentSidebar.activityFeed.taskNew.taskFeedStatusDue":"DUE {dateTime}","be.contentSidebar.activityFeed.taskNew.taskShowLessAssignees":"Show Less","be.contentSidebar.activityFeed.taskNew.taskShowMoreAssignees":"Show {additionalAssigneeCount} More","be.contentSidebar.activityFeed.taskNew.taskShowMoreAssigneesOverflow":"{additionalAssigneeCount, plural, one {Show #+ More} other {Show #+ More}}","be.contentSidebar.activityFeed.taskNew.tasksFeedApproveAction":"Approve","be.contentSidebar.activityFeed.taskNew.tasksFeedApprovedLabel":"Approved","be.contentSidebar.activityFeed.taskNew.tasksFeedApprovedUppercaseLabel":"APPROVED","be.contentSidebar.activityFeed.taskNew.tasksFeedAssigneeListTitle":"Assignees","be.contentSidebar.activityFeed.taskNew.tasksFeedCompleteAction":"Mark as Complete","be.contentSidebar.activityFeed.taskNew.tasksFeedCompletedLabel":"Completed","be.contentSidebar.activityFeed.taskNew.tasksFeedCompletedUppercaseLabel":"COMPLETED","be.contentSidebar.activityFeed.taskNew.tasksFeedHeadlineApproval":"{user} assigned an Approval Task","be.contentSidebar.activityFeed.taskNew.tasksFeedHeadlineApprovalCurrentUser":"{user} assigned you an Approval Task","be.contentSidebar.activityFeed.taskNew.tasksFeedHeadlineGeneral":"{user} assigned a Task","be.contentSidebar.activityFeed.taskNew.tasksFeedHeadlineGeneralCurrentUser":"{user} assigned you a Task","be.contentSidebar.activityFeed.taskNew.tasksFeedInProgressLabel":"In Progress","be.contentSidebar.activityFeed.taskNew.tasksFeedInProgressUppercaseLabel":"IN PROGRESS","be.contentSidebar.activityFeed.taskNew.tasksFeedMoreAssigneesLabel":"See all assignees","be.contentSidebar.activityFeed.taskNew.tasksFeedRejectAction":"Reject","be.contentSidebar.activityFeed.taskNew.tasksFeedRejectedLabel":"Rejected","be.contentSidebar.activityFeed.taskNew.tasksFeedRejectedUppercaseLabel":"REJECTED","be.contentSidebar.activityFeed.taskNew.tasksFeedStatusApproved":"Approved {dateTime}","be.contentSidebar.activityFeed.taskNew.tasksFeedStatusCompleted":"Completed {dateTime}","be.contentSidebar.activityFeed.taskNew.tasksFeedStatusRejected":"Rejected {dateTime}","be.contentSidebar.activityFeed.taskNew.tasksFeedViewDetailsAction":"View Task Details","be.contentSidebar.addTask":"Add Task","be.contentSidebar.addTask.approval":"Approval Task","be.contentSidebar.addTask.approval.description":"Assignees will be responsible for approving or rejecting tasks","be.contentSidebar.addTask.approval.title":"Create Approval Task","be.contentSidebar.addTask.general":"General Task","be.contentSidebar.addTask.general.description":"Assignees will be responsible for marking tasks as complete","be.contentSidebar.addTask.general.title":"Create General Task","be.contentSidebar.boxAI.expand":"Expand","be.contentSidebar.boxSignFtuxBody":"Sign documents or send signature requests, right from where your content lives","be.contentSidebar.boxSignFtuxTitle":"Box Sign - Secure, seamless e-signatures in Box","be.contentSidebar.boxSignRequest":"Request Signature","be.contentSidebar.boxSignRequestSignature":"Request Signature","be.contentSidebar.boxSignSecurityBlockedTooltip":"This action is unavailable due to a security policy.","be.contentSidebar.boxSignSignMyself":"Sign Myself","be.contentSidebar.boxSignSignature":"Sign","be.contentSidebar.boxSignWatermarkBlockedTooltip":"This action is unavailable, because the file is watermarked.","be.contentSidebar.editTask.approval.title":"Modify Approval Task","be.contentSidebar.editTask.general.title":"Modify General Task","be.copy":"Copy","be.create":"Create","be.createDialogErrorInUse":"A folder with the same name already exists.","be.createDialogErrorInvalid":"This is an invalid folder name.","be.createDialogErrorTooLong":"This folder name is too long.","be.createDialogLabel":"New Folder","be.createDialogText":"Please enter a name.","be.currentUserErrorHeaderMessage":"Something went wrong when fetching the current user.","be.dateASC":"Date: Oldest → Newest","be.dateDESC":"Date: Newest → Oldest","be.defaultErrorMaskHeaderMessage":"We’re sorry, something went wrong.","be.defaultErrorMaskSubHeaderMessage":"Please refresh the page or try again later.","be.defaultInlineErrorContentMessage":"Please try again later.","be.defaultOpenWithDescription":"Open this file with a partner service","be.defaultSkill":"Skill Card","be.delete":"Delete","be.deleteDialogFileText":"Are you sure you want to delete {name}?","be.deleteDialogFolderText":"Are you sure you want to delete {name} and all its contents?","be.deleteDialogLabel":"Confirm Delete","be.description":"Description","be.descriptionPlaceholder":"Enter a description","be.docGenSidebar.docGenTags":"Doc Gen Tags","be.docGenSidebar.emptyTags":"This document has no tags","be.docGenSidebar.errorTags":"We couldn't load the tags","be.docGenSidebar.imageTags":"Image tags","be.docGenSidebar.refreshButton":"Refresh","be.docGenSidebar.refreshPrompt":"Please refresh the list.","be.docGenSidebar.textTags":"Text tags","be.download":"Download","be.drawAnnotation":"Drawing annotation mode","be.editLabel":"Edit","be.emptyOpenWithDescription":"No integrations are available for this file","be.error":"Error","be.errorBreadcrumb":"Error","be.errorOccured":"An error occurred","be.errorOpenWithDescription":"Opening this file with other services is currently unavailable","be.errorState":"A network error has occurred while trying to load.","be.executeIntegrationOpenWithErrorHeader":"We’re sorry, this integration is currently unavailable.","be.executeIntegrationOpenWithErrorSubHeader":"Please try again later.","be.expand":"Expand","be.externalFolder":"External Folder","be.faceSkill":"Faces","be.feedbackCtaText":"Click to provide feedback","be.feedbackFormDescription":"Beta Feedback Form","be.file":"File","be.fileAccessStatsErrorHeaderMessage":"Something went wrong when fetching the access stats.","be.fileClassificationErrorHeaderMessage":"Something went wrong when fetching classification.","be.fileDescriptionInlineErrorTitleMessage":"Something went wrong when saving the description.","be.fileRequestDisplayName":"File Request","be.folder":"Folder","be.folderState":"There are no items in this folder.","be.getVersionInfo":"Get version information","be.gridView":"Switch to Grid View","be.gridView.columnSize":"Column size","be.gridView.decreaseColumnSize":"Decrease column size","be.gridView.increaseColumnSize":"Increase column size","be.in":"In","be.interactedDate":"Last accessed on {date}","be.itemCreated":"Created","be.itemInteracted":"Last Accessed","be.itemModified":"Modified","be.itemName":"Name","be.itemOwner":"Owner","be.itemSize":"Size","be.itemUploader":"Uploader","be.keywordSkill":"Topics","be.keywordsAppliedList":"Keywords were applied","be.keywordsList":"Keywords: {words}","be.listView":"Switch to List View","be.loading":"Loading","be.loadingState":"Please wait while the items load...","be.logo":"Logo","be.max":"max","be.messageCenter.all":"All","be.messageCenter.boxEducation":"Box Education","be.messageCenter.errorFetchingPosts":"Sorry, we are having trouble showing posts at the moment. It may help to refresh the page.","be.messageCenter.events":"Events","be.messageCenter.noPosts":"There are no posts for this category at the moment.","be.messageCenter.previewError":"Sorry, we're having trouble showing this image. ","be.messageCenter.product":"Product","be.messageCenter.title":"What's New","be.metadataState":"There are no items in this folder.","be.modifiedDate":"Modified {date}","be.modifiedDateBy":"Modified {date} by {name}","be.moreOptions":"More options","be.nameASC":"Name: A → Z","be.nameDESC":"Name: Z → A","be.nameDate":"{date} by {name}","be.newFolder":"New Folder","be.nextFile":"Next File","be.nextSegment":"Next Segment","be.noActivity":"No activity to show","be.noActivityAnnotationPrompt":"Hover over the preview and use the controls at the bottom to annotate the file.","be.noActivityCommentPrompt":"Comment and @mention people to notify them.","be.open":"Open","be.pagination.nextPage":"Next Page","be.pagination.pageStatus":"{pageNumber} of {pageCount}","be.pagination.previousPage":"Previous Page","be.personalFolder":"Personal Folder","be.pointAnnotation":"Point annotation mode","be.preview":"Preview","be.previewError":"This preview didn’t load. Please try to open or download the file to view.","be.previewErrorBlockedByPolicy":"Your access to this content is restricted due to a security policy.","be.previewUpdate":"A new version of this file is available.","be.previousFile":"Previous File","be.previousSegment":"Previous Segment","be.print":"Print","be.priorCollaborator":"A Prior Collaborator","be.recentsBreadcrumb":"Recents","be.recentsState":"There are no recent items yet.","be.reload":"Reload","be.remove":"Remove","be.rename":"Rename","be.renameDialogErrorInUse":"An item with the same name already exists.","be.renameDialogErrorInvalid":"This name is invalid.","be.renameDialogErrorTooLong":"This name is too long.","be.renameDialogLabel":"Rename","be.renameDialogText":"Please enter a new name for {name}:","be.resume":"Resume","be.resumeAll":"Resume All","be.retry":"Retry","be.rootBreadcrumb":"All Files","be.save":"Save","be.searchBreadcrumb":"Search Results","be.searchPlaceholder":"Search files and folders","be.searchState":"Sorry, we couldn’t find what you’re looking for.","be.selected":"{count} Selected","be.selectedBreadcrumb":"Selected Items","be.selectedState":"You haven’t selected any items yet.","be.share":"Share","be.shareAccessCollab":"Access: People in this folder","be.shareAccessCompany":"People in this company","be.shareAccessNone":"No shared link","be.shareAccessOpen":"Access: People with the link","be.shareAccessRemove":"Remove shared link","be.shareDialogLabel":"Share","be.shareDialogNone":"None","be.shareDialogText":"Shared Link:","be.sidebarAccessStats":"Access Stats","be.sidebarActivityTitle":"Activity","be.sidebarBoxAITitle":"Box AI","be.sidebarContentInsights":"Content Insights","be.sidebarDetailsTitle":"Details","be.sidebarDocGenTitle":"Doc Gen Tags","be.sidebarDocGenTooltip":"Box Doc Gen","be.sidebarFileFetchingErrorContent":"An error has occurred while fetching your Box file. Please refresh the page and try again.","be.sidebarHide":"Hide Sidebar","be.sidebarMetadataEditingErrorContent":"An error has occurred while updating metadata. Please refresh the page and try again.","be.sidebarMetadataFetchingErrorContent":"An error has occurred while fetching metadata. Please refresh the page and try again.","be.sidebarMetadataTitle":"Metadata","be.sidebarNavLabel":"Sidebar","be.sidebarProperties":"File Properties","be.sidebarShow":"Show Sidebar","be.sidebarSkillsErrorContent":"An error has occurred while updating skills. Please refresh the page and try again.","be.sidebarSkillsErrorTitle":"Skills Error","be.sidebarSkillsTitle":"Skills","be.sidebarVersions.current":"Current Version","be.sidebarVersions.delete":"Delete","be.sidebarVersions.deleteError":"File version could not be deleted.","be.sidebarVersions.deletedBy":"Deleted by {name}","be.sidebarVersions.disabledByRetention":"Disabled by retention policy","be.sidebarVersions.download":"Download","be.sidebarVersions.downloadError":"File version could not be downloaded.","be.sidebarVersions.empty":"No prior versions are available for this file.","be.sidebarVersions.fetchError":"File versions could not be retrieved.","be.sidebarVersions.fileRequestDisplayName":"File Request","be.sidebarVersions.notAvailable":"Sorry, version history is not available with your current account plan. To access versioning, select from one of our paid plans.","be.sidebarVersions.preview":"Preview","be.sidebarVersions.priorWeek":"Last Week","be.sidebarVersions.promote":"Make Current","be.sidebarVersions.promoteError":"File version could not be made current.","be.sidebarVersions.promotedBy":"Promoted from v{versionPromoted} by {name}","be.sidebarVersions.restore":"Restore","be.sidebarVersions.restoreError":"File version could not be restored.","be.sidebarVersions.restoredBy":"Restored by {name}","be.sidebarVersions.serverError":"Server Error","be.sidebarVersions.thisMonth":"This Month","be.sidebarVersions.title":"Version History","be.sidebarVersions.today":"Today","be.sidebarVersions.toggle":"Toggle Actions Menu","be.sidebarVersions.upgradeButton":"Upgrade","be.sidebarVersions.upgradeLink":"Upgrade Now","be.sidebarVersions.uploadedBy":"Uploaded by {name}","be.sidebarVersions.versionLimitExceeded":"You are limited to the last {versionLimit, number} {versionLimit, plural, one {version} other {versions}}.","be.sidebarVersions.versionMaxEntries":"Version history is limited to the last {maxVersions} entries.","be.sidebarVersions.versionNumberBadge":"V{versionNumber}","be.sidebarVersions.versionNumberLabel":"Version number {versionNumber}","be.sidebarVersions.versionRetentionDelete":"Will be deleted {time} by retention policy.","be.sidebarVersions.versionRetentionIndefinite":"Retained indefinitely by retention policy.","be.sidebarVersions.versionRetentionRemove":"Retention policy expires on {time}.","be.sidebarVersions.versionUpsell":"Sorry, version history is not available with your current account plan. To access versioning, select from one of our paid plans.","be.sidebarVersions.versionUserUnknown":"Unknown","be.sidebarVersions.yesterday":"Yesterday","be.sizeASC":"Size: Smallest → Largest","be.sizeDESC":"Size: Largest → Smallest","be.skillFileProcessingError":"We’re sorry, something went wrong with processing the file.","be.skillInvalidFileExtensionError":"We’re sorry, no skills information was found. This file extension is currently not supported.","be.skillInvalidFileSizeError":"We’re sorry, no skills information was found. This file size is currently not supported.","be.skillInvokedStatus":"We’re preparing to process your file - please hold!","be.skillNoInfoFoundError":"We’re sorry, no skills information was found.","be.skillPendingStatus":"We’re working on processing your file - please hold!","be.skillUnknownError":"Something went wrong with running this skill or fetching its data.","be.sort":"Sort","be.statusSkill":"Status","be.today":"today","be.topicsSkill":"Topics","be.transcriptEdit":"Click any section to edit.","be.transcriptSkill":"Transcript","be.upload":"Upload","be.uploadEmptyFileInput":"Browse your device","be.uploadEmptyFolderInput":"Select Folders","be.uploadEmptyState":"Empty state","be.uploadEmptyWithFolderUploadDisabled":"Drag and drop files","be.uploadEmptyWithFolderUploadEnabled":"Drag and drop files and folders","be.uploadError":"A network error has occurred while trying to upload.","be.uploadErrorState":"Error state","be.uploadErrorTooManyFiles":"You can only upload up to {fileLimit} file(s) at a time.","be.uploadInProgress":"Drag and drop to add additional files","be.uploadNoDragDrop":"Select files from your device","be.uploadOptions":"{option1} or {option2}","be.uploadSuccess":"Success! Your files have been uploaded.","be.uploadSuccessFileInput":"Select More Files","be.uploadSuccessFolderInput":"Select More Folders","be.uploadSuccessState":"Success state","be.uploadsCancelButtonTooltip":"Cancel this upload","be.uploadsDefaultErrorMessage":"Something went wrong with the upload. Please try again.","be.uploadsFileSizeLimitExceededErrorMessage":"File size exceeds the folder owner’s file size limit","be.uploadsFileSizeLimitExceededErrorMessageForUpgradeCta":"This file exceeds your plan’s upload limit. Upgrade now to store larger files.","be.uploadsFileSizeLimitExceededUpgradeMessageForUpgradeCta":"Upgrade","be.uploadsItemNameInUseErrorMessage":"A file with this name already exists.","be.uploadsManagerUploadComplete":"Completed","be.uploadsManagerUploadFailed":"Some Uploads Failed","be.uploadsManagerUploadInProgress":"Uploading","be.uploadsManagerUploadPrompt":"Drop files on this page to upload them into this folder.","be.uploadsOneOrMoreChildFoldersFailedToUploadMessage":"One or more child folders failed to upload.","be.uploadsPackageUploadErrorMessage":"Failed to upload package file. Please retry by saving as a single file.","be.uploadsPendingFolderSizeLimitErrorMessage":"Pending app folder size limit exceeded","be.uploadsProvidedFolderNameInvalidMessage":"Provided folder name, {name}, could not be used to create a folder.","be.uploadsRetryButtonTooltip":"Retry upload","be.uploadsStorageLimitErrorMessage":"Account storage limit reached","be.versionDeleted":"{name} deleted v{version_number}","be.versionMultipleUsersUploaded":"{numberOfCollaborators} collaborators uploaded v{versions}","be.versionPromoted":"{name} promoted v{version_promoted} to v{version_number}","be.versionRestored":"{name} restored v{version_number}","be.versionUploadCollapsed":"{name} uploaded v{versions}","be.versionUploaded":"{name} uploaded v{version_number}","be.yesterday":"yesterday","boxui.accessStats.accessStatsComments":"Comments","boxui.accessStats.accessStatsDownloads":"Downloads","boxui.accessStats.accessStatsEdits":"Edits","boxui.accessStats.accessStatsPreviews":"Previews","boxui.accessStats.accessStatsViewDetails":"View Details","boxui.accessStats.accessStatsViews":"Views","boxui.advancedContentInsights.advancedContentInsightsDescription":"Get actionable insights into how viewers are engaging with this content. Measure average time spent, page-by-page engagement, per person and per visit details.","boxui.advancedContentInsights.advancedContentInsightsTitleDisabled":"Activate Engagement Insights","boxui.advancedContentInsights.advancedContentInsightsTitleEnabled":"Engagement Insights is activated","boxui.avatar.externalUser":"External user","boxui.badges.beta":"BETA","boxui.badges.trial":"TRIAL","boxui.badges.upgrade":"UPGRADE","boxui.base.nextMonth":"Next Month","boxui.base.previousMonth":"Previous Month","boxui.breadcrumb.breadcrumbLabel":"Breadcrumb","boxui.categorySelector.label.more":"More","boxui.checkboxTooltip.iconInfoText":"Info","boxui.classification.add":"Add","boxui.classification.classification":"Classification","boxui.classification.classificationDarkBlue":"Dark Blue","boxui.classification.classificationGreen":"Green","boxui.classification.classificationGrey":"Grey","boxui.classification.classificationLightBlue":"Light Blue","boxui.classification.classificationOrange":"Orange","boxui.classification.classificationPurple":"Purple","boxui.classification.classificationRed":"Red","boxui.classification.classificationYellow":"Yellow","boxui.classification.definition":"Definition","boxui.classification.edit":"Edit","boxui.classification.importedBy":"Imported from {modifiedBy} on {modifiedAt}","boxui.classification.missing":"Not classified","boxui.classification.modifiedBy":"Applied by {modifiedBy} on {modifiedAt}","boxui.classification.modifiedByLabel":"Classification Label","boxui.collaboratorAvatars.collaboration.pendingCollabText":"Pending","boxui.collaboratorAvatars.collaboratorAvatarsLabel":"Shared with","boxui.collaboratorAvatars.collaborators.expirationTooltipText":"Access expires on {date}","boxui.collaboratorAvatars.collaborators.externalCollabTooltipText":"{email} is from outside of your company","boxui.collaboratorAvatars.manageAllLinkText":"Manage All","boxui.collaboratorAvatars.viewAdditionalPeopleText":"View additional people","boxui.collapsiblesidebar.collapseBtnLabel":"Collapse","boxui.collapsiblesidebar.expandBtnLabel":"Expand","boxui.contentAnswers.contentAnswersTitle":"Box AI","boxui.contentAnswers.defaultTooltip":"Get instant answers about this document using Box AI","boxui.contentAnswers.disabledTooltipFileNotCompatible":"Box AI is not currently supported for this file type","boxui.contentAnswers.documentSuggestedQuestionLabel1":"Summarize this document","boxui.contentAnswers.documentSuggestedQuestionLabel2":"What are the key takeaways?","boxui.contentAnswers.documentSuggestedQuestionLabel3":"How can this document be improved?","boxui.contentAnswers.documentSuggestedQuestionLabel4":"Are there any next steps defined?","boxui.contentAnswers.documentSuggestedQuestionPrompt1":"Summarize this document","boxui.contentAnswers.documentSuggestedQuestionPrompt2":"What are the key takeaways?","boxui.contentAnswers.documentSuggestedQuestionPrompt3":"How can this document be improved?","boxui.contentAnswers.documentSuggestedQuestionPrompt4":"Are there any next steps defined?","boxui.contentAnswers.hasQuestionsTooltip":"Return to Box AI","boxui.contentAnswers.welcomeMessageSpreadsheetNotice":"Spreadsheet support works best for text dense files","boxui.contentAnswers.welcomeMessageSpreadsheetNoticeAriaLabel":"spreadsheet support notification banner","boxui.contentExplorer.breadcrumb":"Breadcrumb","boxui.contentExplorer.cancel":"Cancel","boxui.contentExplorer.choose":"Choose","boxui.contentExplorer.clickToGoBack":"Click to go back","boxui.contentExplorer.clickToViewPath":"Click to view path","boxui.contentExplorer.copy":"Copy","boxui.contentExplorer.emptyFolder":"There are no subfolders in this folder.","boxui.contentExplorer.emptySearch":"Sorry, we couldn't find what you're looking for.","boxui.contentExplorer.filepath":"File path","boxui.contentExplorer.folderTreeBreadcrumbsText":"{folderName} ({totalItems})","boxui.contentExplorer.includeSubfolders":"Include Subfolders","boxui.contentExplorer.infoNoticeIconAriaLabel":"Info icon","boxui.contentExplorer.move":"Move","boxui.contentExplorer.name":"Name","boxui.contentExplorer.newFolder":"New Folder","boxui.contentExplorer.numFoldersSelected":"{numSelected, plural, =0 {0 folders selected} one {1 folder selected} other {# folders selected} } ","boxui.contentExplorer.numItemsSelected":"{numSelected, plural, =0 {0 items selected} one {1 item selected} other {# items selected} } ","boxui.contentExplorer.numSelected":"{numSelected} Selected","boxui.contentExplorer.result":"{itemsCount} result","boxui.contentExplorer.results":"{itemsCount} results","boxui.contentExplorer.searchPlaceholder":"Search","boxui.contentExplorer.searchResults":"Search Results","boxui.contentExplorer.selectAll":"Select All","boxui.contentExplorer.selectItem":"Select {name}","boxui.contentexplorer.newFolder.forbidden":"You do not have permission to create a folder here.","boxui.core.cancel":"Cancel","boxui.core.close":"Close","boxui.core.copied":"Copied","boxui.core.copy":"Copy","boxui.core.done":"Done","boxui.core.guidetooltip.navigation":"{currentStepIndex} of {totalNumSteps}","boxui.core.hotkeys.altKey":"Alt","boxui.core.hotkeys.ctrlKey":"Ctrl","boxui.core.hotkeys.enterKey":"Enter","boxui.core.hotkeys.escKey":"Esc","boxui.core.hotkeys.hotkeyModalTitle":"Keyboard Shortcuts","boxui.core.hotkeys.hotkeySequence":"{key1} then {key2}","boxui.core.hotkeys.shiftKey":"Shift","boxui.core.hotkeys.spacebarKey":"Spacebar","boxui.core.okay":"Okay","boxui.core.optional":"optional","boxui.core.save":"Save","boxui.core.selection.deselectAllDescription":"Deselect all items","boxui.core.selection.downDescription":"Select next item","boxui.core.selection.selectAllDescription":"Select all items","boxui.core.selection.shiftDownDescription":"Add next item to current selection","boxui.core.selection.shiftUpDescription":"Add previous item to current selection","boxui.core.selection.shiftXDescription":"Select current item","boxui.core.selection.upDescription":"Select previous item","boxui.core.send":"Send","boxui.datePicker.chooseDate":"Choose Date","boxui.datePicker.dateClearButton":"Clear Date","boxui.datePicker.dateInputMaxError":"Please enter a date before {maxLocaleDate}","boxui.datePicker.dateInputMinError":"Please enter a date after {minLocaleDate}","boxui.datePicker.dateInputRangeError":"Please enter a date between {minLocaleDate} and {maxLocaleDate}","boxui.datePicker.iconAlertText":"Invalid Date","boxui.draftjs.mentionSelector.noUsersFound":"No users found","boxui.draftjs.mentionSelector.startMention":"Mention someone to notify them","boxui.draftjs.mentionSelector.usersFound":"{usersCount, plural, one {one user found} other {{usersCount} users found}}","boxui.errorMask.iconSadCloudText":"Sad Box Cloud","boxui.features.VirtualizedTableRenderers.allFiles":"All Files","boxui.features.VirtualizedTableRenderers.anonymousUser":"Anonymous User","boxui.features.VirtualizedTableRenderers.externalFile":"External File","boxui.features.VirtualizedTableRenderers.externalFolder":"External Folder","boxui.features.VirtualizedTableRenderers.lastModifiedBy":"{lastModified} by {user}","boxui.features.VirtualizedTableRenderers.unknownUser":"Unknown User","boxui.itemDetails.archived":"Archived","boxui.itemDetails.bookmarkExpiration":"This bookmark will be deleted on {expiration}.","boxui.itemDetails.created":"Created","boxui.itemDetails.deleted":"Deleted","boxui.itemDetails.description":"Description","boxui.itemDetails.descriptionPlaceholder":"Enter a description","boxui.itemDetails.enterpriseOwner":"Enterprise Owner","boxui.itemDetails.fileExpiration":"This file will be deleted on {expiration}.","boxui.itemDetails.folderExpiration":"This folder will be deleted on {expiration}.","boxui.itemDetails.modified":"Modified","boxui.itemDetails.owner":"Owner","boxui.itemDetails.retentionPolicyDescription":"Policy","boxui.itemDetails.retentionPolicyExpiration":"Policy Expiration","boxui.itemDetails.retentionPolicyExtend":"Extend","boxui.itemDetails.savedVersions":"{versionCount, number} Saved Versions","boxui.itemDetails.sharedLinkExpiration":"This shared link will be disabled on {expiration}.","boxui.itemDetails.size":"Size","boxui.itemDetails.uploader":"Uploader","boxui.itemDetails.url":"URL","boxui.itemDetails.urlPlaceholder":"Enter a valid url","boxui.media.menuButtonArialLabel":"Options","boxui.metadataInstanceEditor.allAttributesAreHidden":"All attributes in this template have been hidden.","boxui.metadataInstanceEditor.applyCascadePolicyText":"Apply template and its values to all new and existing items in this folder and its subfolders.","boxui.metadataInstanceEditor.cannotApplyCascadePolicyText":"Cascade policy cannot be applied to custom metadata at this time.","boxui.metadataInstanceEditor.cascadePolicyLearnMore":"Learn more","boxui.metadataInstanceEditor.cascadePolicyModeQuestion":"In the case of conflicts when applying this template and its values to existing items, what would you like to do? This is a one time action.","boxui.metadataInstanceEditor.cascadePolicyOverwriteMode":"Overwrite all existing template values","boxui.metadataInstanceEditor.cascadePolicySkipMode":"Skip and keep all existing template values","boxui.metadataInstanceEditor.customAdd":"Add","boxui.metadataInstanceEditor.customErrorDuplicateKey":"A field with that key already exists.","boxui.metadataInstanceEditor.customErrorInternalKey":"Keys cannot begin with a $.","boxui.metadataInstanceEditor.customErrorRequired":"A key is required.","boxui.metadataInstanceEditor.customKey":"Key","boxui.metadataInstanceEditor.customKeyPlaceholder":"e.g. Order Number","boxui.metadataInstanceEditor.customNewField":"New Field","boxui.metadataInstanceEditor.customNewFieldMessage":"Add a custom metadata field. Other people will be able to see and search for this field.","boxui.metadataInstanceEditor.customRemove":"Remove","boxui.metadataInstanceEditor.customTitle":"Custom Metadata","boxui.metadataInstanceEditor.customValue":"Value","boxui.metadataInstanceEditor.customValuePlaceholder":"e.g. 42","boxui.metadataInstanceEditor.editTooltip":"Edit Metadata","boxui.metadataInstanceEditor.enableCascadePolicy":"Enable Cascade Policy","boxui.metadataInstanceEditor.fileMetadataRemoveCustomTemplateConfirm":"Are you sure you want to delete this custom metadata and all of its values from this file?","boxui.metadataInstanceEditor.fileMetadataRemoveTemplateConfirm":'Are you sure you want to delete "{metadataName}" and all of its values from this file?',"boxui.metadataInstanceEditor.folderMetadataRemoveCustomTemplateConfirm":"Are you sure you want to delete this custom metadata and all of its values? Any metadata template values already applied to files in this folder will not be deleted.","boxui.metadataInstanceEditor.folderMetadataRemoveTemplateConfirm":'Are you sure you want to delete "{metadataName}" and all of its values? Any metadata template values already applied to files in this folder will not be deleted.',"boxui.metadataInstanceEditor.invalidValue":"Invalid Input!","boxui.metadataInstanceEditor.metadataCancel":"Cancel","boxui.metadataInstanceEditor.metadataCascadePolicyEnabledInfo":"This template and its values are being cascaded to all items in this folder and its subfolders.","boxui.metadataInstanceEditor.metadataSave":"Save","boxui.metadataInstanceEditor.noAttributesForTemplate":"There are no attributes in this template.","boxui.metadataInstanceEditor.noMetadata":"No Metadata Applied","boxui.metadataInstanceEditor.noMetadataAddTemplate":"Click 'Add' in the top right to add metadata to this item","boxui.metadataInstanceEditor.operationNotImmediate":"This operation is not immediate and may take some time.","boxui.metadataInstanceEditor.removeTemplate":"Remove","boxui.metadataInstanceEditor.templateAdd":"Add","boxui.metadataInstanceEditor.templateSearchPlaceholder":"Search all templates","boxui.metadataInstanceEditor.templatesFetchFailed":"Sorry! We could not fetch templates. Please contact your administrator","boxui.metadataInstanceEditor.templatesNoRemainingTemplates":"All templates have been added","boxui.metadataInstanceEditor.templatesNoResults":"No Results","boxui.metadataInstanceEditor.templatesServerHasNoTemplates":"Zero templates","boxui.metadataInstanceEditor.templatesTitle":"Templates","boxui.metadataInstanceFields.customAdd":"Add","boxui.metadataInstanceFields.customRemove":"Remove","boxui.metadataInstanceFields.fieldMultiSelectValue":"Select Values","boxui.metadataInstanceFields.fieldNoValue":"No Value","boxui.metadataInstanceFields.fieldSelectValue":"Select Value","boxui.metadataInstanceFields.fieldSetDate":"Set Date","boxui.metadataInstanceFields.fieldSetValue":"Set Value","boxui.metadataInstanceFields.invalidMetadataFieldType":"Invalid metadata field type!","boxui.modalDialog.backModalText":"Back","boxui.modalDialog.closeModalText":"Close Modal","boxui.newFolderModal.cancel":"Cancel","boxui.newFolderModal.create":"Create","boxui.newFolderModal.folderName.label":"Folder Name","boxui.newFolderModal.folderName.placeholder":"My New Folder","boxui.newFolderModal.title":'Create a New Folder in "{parentFolderName}"',"boxui.notification.clearNotification":"Clear Notification","boxui.presence.accessedInTheLastMinute":"Viewed less than a minute ago","boxui.presence.activeNow":"Active now","boxui.presence.commentedIntheLastMinute":"Commented less than a minute ago","boxui.presence.getLinkButton":"Get Link","boxui.presence.inviteButton":"Invite People","boxui.presence.modifiedIntheLastMinute":"Edited less than a minute ago","boxui.presence.previewPresenceFlyoutAccessStatsLink":"See all activity","boxui.presence.previewPresenceFlyoutActivityCTA":"View Recent Activity","boxui.presence.previewPresenceFlyoutCopy":"Quickly see who has commented on, edited, or viewed this file.","boxui.presence.previewedIntheLastMinute":"Previewed less than a minute ago","boxui.presence.recentActivity":"Recent Activity","boxui.presence.timeSinceLastAccessed":"Viewed {timeAgo}","boxui.presence.timeSinceLastCommented":"Commented {timeAgo}","boxui.presence.timeSinceLastModified":"Edited {timeAgo}","boxui.presence.timeSinceLastPreviewed":"Previewed {timeAgo}","boxui.presence.toggleButtonLabel":"Recent Activity","boxui.queryBar.addFilterButtonText":"+ Add Filter","boxui.queryBar.applyFiltersButtonText":"Apply","boxui.queryBar.columnsButtonText":"Columns","boxui.queryBar.columnsHiddenButtonText":"{count, plural, one {1 Column Hidden} other {{count} Columns Hidden}}","boxui.queryBar.connectorAndText":"AND","boxui.queryBar.connectorOrText":"OR","boxui.queryBar.connectorWhereText":"WHERE","boxui.queryBar.filtersButtonText":"Modify Filters","boxui.queryBar.metadataViewTemplateListHeaderTitle":"METADATA TEMPLATES","boxui.queryBar.multipleFiltersButtonText":"{number} Filters","boxui.queryBar.noFiltersAppliedText":"No Filters Applied","boxui.queryBar.noTemplatesText":"No Templates Available","boxui.queryBar.selectValuePlaceholderText":"Select value","boxui.queryBar.templatesButtonText":"Select Metadata","boxui.queryBar.templatesLoadingButtonText":"Template Name","boxui.queryBar.tooltipEnterValueError":"Please Enter a Value","boxui.queryBar.tooltipInvalidFloatError":"Please Enter a Decimal Number","boxui.queryBar.tooltipInvalidNumberError":"Please Enter an Integer","boxui.queryBar.tooltipSelectDateError":"Please Select a Date","boxui.queryBar.tooltipSelectValueError":"Please Select a Value","boxui.quickSearch.bookmark":"Bookmark","boxui.quickSearch.collaboratedFolder":"Collaborated Folder","boxui.quickSearch.externalFolder":"External Folder","boxui.quickSearch.file":"File","boxui.quickSearch.parentFolder":"Parent Folder","boxui.quickSearch.personalFolder":"Personal Folder","boxui.quickSearch.updatedText":"{date, date, medium} by {user}","boxui.quickSearch.updatedTextToday":"Today by {user}","boxui.quickSearch.updatedTextYesterday":"Yesterday by {user}","boxui.readableTime.eventTime":"{time, date, medium}","boxui.readableTime.eventTimeDate":"{time, date, medium} at {time, time, short}","boxui.readableTime.eventTimeDateShort":"{date} at {time, time, short}","boxui.readableTime.eventTimeToday":"Today at {time, time, short}","boxui.readableTime.eventTimeWeekdayLong":"{weekday}, {time, date, medium}","boxui.readableTime.eventTimeYesterday":"Yesterday at {time, time, short}","boxui.searchForm.clearButtonTitle":"Clear","boxui.searchForm.searchButtonTitle":"Search","boxui.searchForm.searchLabel":"Search query","boxui.securityCloudGame.accessibilityInstructions":"For security purposes, please drag the cloud object onto the target. You are on a {row} by {column} grid with a movable cloud object and a target area. Press spacebar to grab the cloud object, arrow keys to move, and spacebar to drop on the target.","boxui.securityCloudGame.cloudDropped":"Cloud object dropped.","boxui.securityCloudGame.cloudGrabbed":"Cloud object grabbed.","boxui.securityCloudGame.cloudObject":"Cloud object","boxui.securityCloudGame.currentPosition":"Current position: Row {row}, Column {column}.","boxui.securityCloudGame.instructions":"For security purposes, please drag the white cloud onto the dark cloud. Keyboard users: Press spacebar to grab the cloud, arrow keys to move, and spacebar to drop.","boxui.securityCloudGame.reachBottomEdge":"Reached bottom edge of grid.","boxui.securityCloudGame.reachLeftEdge":"Reached left edge of grid.","boxui.securityCloudGame.reachRightEdge":"Reached right edge of grid.","boxui.securityCloudGame.reachTopEdge":"Reached top edge of grid.","boxui.securityCloudGame.success":"Success!","boxui.securityCloudGame.target":"Target","boxui.securityCloudGame.targetInRange":"Target in range, you can drop the cloud object.","boxui.securityCloudGame.targetPosition":"Target position: Row {row}, Column {column}.","boxui.securityControls.allAppNames":"All applications: {appsList}","boxui.securityControls.appDownloadBlacklist":"Download restricted for some applications: {appNames}","boxui.securityControls.appDownloadBlacklistOverflow":"Download restricted for some applications: {appNames} +{remainingAppCount} more","boxui.securityControls.appDownloadRestricted":"Download restricted for some applications.","boxui.securityControls.appDownloadWhitelist":"Only select applications are allowed: {appNames}","boxui.securityControls.appDownloadWhitelistOverflow":"Only select applications are allowed: {appNames} +{remainingAppCount} more","boxui.securityControls.boxSignRequestRestricted":"Sign restrictions apply.","boxui.securityControls.desktopDownloadExternalOwners":"Download restricted on Box Drive, except Owners/Co-Owners. Also restricted for external users.","boxui.securityControls.desktopDownloadExternalOwnersEditors":"Download restricted on Box Drive, except Owners/Co-Owners/Editors. Also restricted for external users.","boxui.securityControls.desktopDownloadOwners":"Download restricted on Box Drive, except Owners/Co-Owners.","boxui.securityControls.desktopDownloadOwnersEditors":"Download restricted on Box Drive, except Owners/Co-Owners/Editors.","boxui.securityControls.downloadExternal":"Download restricted on Box Drive for external users.","boxui.securityControls.externalCollabBlock":"External collaboration restricted.","boxui.securityControls.externalCollabDomainList":"External collaboration limited to approved domains.","boxui.securityControls.mobileDownloadExternal":"Download restricted on mobile for external users.","boxui.securityControls.mobileDownloadExternalOwners":"Download restricted on mobile, except Owners/Co-Owners. Also restricted for external users.","boxui.securityControls.mobileDownloadExternalOwnersEditors":"Download restricted on mobile, except Owners/Co-Owners/Editors. Also restricted for external users.","boxui.securityControls.mobileDownloadOwners":"Download restricted on mobile, except Owners/Co-Owners.","boxui.securityControls.mobileDownloadOwnersEditors":"Download restricted on mobile, except Owners/Co-Owners/Editors.","boxui.securityControls.modalDescription":"Classification labels defined by your administrator can be used to label content and apply security policies.","boxui.securityControls.modalTitle":"View Classification for “{itemName}”","boxui.securityControls.securityControlsLabel":"Restrictions","boxui.securityControls.sharingCollabAndCompanyOnly":"Shared links cannot be made publicly accessible.","boxui.securityControls.sharingCollabOnly":"Shared links allowed for collaborators only.","boxui.securityControls.shortApp":"Application restrictions apply","boxui.securityControls.shortAppSign":"App and Sign restrictions apply","boxui.securityControls.shortDownload":"Download restrictions apply","boxui.securityControls.shortDownloadApp":"Download and app restrictions apply","boxui.securityControls.shortDownloadAppSign":"Download, app and Sign restrictions apply","boxui.securityControls.shortDownloadSign":"Download and Sign restrictions apply","boxui.securityControls.shortSharing":"Sharing restriction applies","boxui.securityControls.shortSharingApp":"Sharing and app restrictions apply","boxui.securityControls.shortSharingAppSign":"Sharing, app and Sign restrictions apply","boxui.securityControls.shortSharingDownload":"Sharing and download restrictions apply","boxui.securityControls.shortSharingDownloadApp":"Sharing, download and app restrictions apply","boxui.securityControls.shortSharingDownloadAppSign":"Sharing, download, app and Sign restrictions apply","boxui.securityControls.shortSharingDownloadSign":"Sharing, download and Sign restrictions apply","boxui.securityControls.shortSharingSign":"Sharing and Sign restrictions apply","boxui.securityControls.shortSign":"Sign restrictions apply","boxui.securityControls.shortWatermarking":"Watermarking applies","boxui.securityControls.viewAll":"View All","boxui.securityControls.watermarkingApplied":"Watermarking will be applied.","boxui.securityControls.webDownloadExternal":"Download restricted on web for external users.","boxui.securityControls.webDownloadExternalOwners":"Download restricted on web, except Owners/Co-Owners. Also restricted for external users.","boxui.securityControls.webDownloadExternalOwnersEditors":"Download restricted on web, except Owners/Co-Owners/Editors. Also restricted for external users.","boxui.securityControls.webDownloadOwners":"Download restricted on web, except Owners/Co-Owners.","boxui.securityControls.webDownloadOwnersEditors":"Download restricted on web, except Owners/Co-Owners/Editors.","boxui.select.moreInfo":"More Info","boxui.selectField.clearAll":"Clear All","boxui.selectField.noResults":"No Results","boxui.selectField.searchPlaceholder":"Search","boxui.share.accessType":"ACCESS TYPE","boxui.share.canEdit":"Can edit","boxui.share.canView":"Can view","boxui.share.coownerLevelText":"Co-owner","boxui.share.deleteTableHeaderText":"Delete","boxui.share.downloadTableHeaderText":"Download","boxui.share.editTableHeaderText":"Edit","boxui.share.editorLevelText":"Editor","boxui.share.emailSharedLink":"Email Shared Link","boxui.share.enterAtLeastOneEmail":"Enter at least one valid email","boxui.share.getLinkTableHeaderText":"Get Link","boxui.share.groupLabel":"Group","boxui.share.inviteCollaboratorsModalCancelButton":"Cancel","boxui.share.inviteCollaboratorsModalSendInvites":"Send Invites","boxui.share.inviteCollaboratorsModalTitle":"Invite to {itemName}","boxui.share.inviteFieldLabel":"Invite","boxui.share.inviteFileEditorsLabel":"Invite people to become editors of this file.","boxui.share.inviteePermissionsFieldLabel":"Invitee Permissions","boxui.share.inviteePermissionsLearnMore":"Learn More","boxui.share.message":"Message","boxui.share.messageSelectorPlaceholder":"Add a message","boxui.share.ownerTableHeaderText":"Owner","boxui.share.peopleInCompanyCanDownloadFile":"Anyone in your company with the link can view and download this file.","boxui.share.peopleInCompanyCanDownloadFolder":"Anyone in your company with the link can view this folder and download its contents.","boxui.share.peopleInCompanyCanEditFile":"Anyone in your company with the link can edit and download this file.","boxui.share.peopleInCompanyCanViewFile":"Anyone in your company with the link can view this file.","boxui.share.peopleInCompanyCanViewFolder":"Anyone in your company with the link can view this folder.","boxui.share.peopleInEnterprise":"People in {enterpriseName}","boxui.share.peopleInItemCanAccessFile":"Any collaborator on the file with the link can access this file.","boxui.share.peopleInItemCanAccessFolder":"Any collaborator on the folder with the link can access this folder.","boxui.share.peopleInItemCanDownloadFile":"Any collaborator on this file with the link can download this file.","boxui.share.peopleInItemCanDownloadFolder":"Any collaborator on this folder with the link can download this folder.","boxui.share.peopleInItemCanEditFile":"Any collaborator on this file with the link can edit this file and download its contents.","boxui.share.peopleInItemCanPreviewAndDownloadFile":"Any collaborator on this file with the link can view this file and download its contents.","boxui.share.peopleInItemCanPreviewAndDownloadFolder":"Any collaborator on this folder with the link can view this folder and download its contents.","boxui.share.peopleInItemCanPreviewFile":"Any collaborator on this file with the link can view this file.","boxui.share.peopleInItemCanPreviewFolder":"Any collaborator on this folder with the link can view this folder.","boxui.share.peopleInSpecifiedCompanyCanDownloadFile":"Anyone in {company} with the link can view and download this file.","boxui.share.peopleInSpecifiedCompanyCanDownloadFolder":"Anyone in {company} with the link can view this folder and download its contents.","boxui.share.peopleInSpecifiedCompanyCanEditFile":"Anyone in {company} with the link can edit and download this file.","boxui.share.peopleInSpecifiedCompanyCanViewFile":"Anyone in {company} with the link can view this file.","boxui.share.peopleInSpecifiedCompanyCanViewFolder":"Anyone in {company} with the link can view this folder.","boxui.share.peopleInThisFile":"People in this file","boxui.share.peopleInThisFolder":"People in this folder","boxui.share.peopleInYourCompany":"People in your company","boxui.share.peopleWithLinkCanDownloadFile":"Anyone with the link can view and download this file.","boxui.share.peopleWithLinkCanDownloadFolder":"Anyone with the link can view this folder and download its contents.","boxui.share.peopleWithLinkCanEditFile":"Anyone with the link can edit and download this file.","boxui.share.peopleWithLinkCanViewFile":"Anyone with the link can view this file.","boxui.share.peopleWithLinkCanViewFolder":"Anyone with the link can view this folder.","boxui.share.peopleWithTheLink":"People with the link","boxui.share.permissionLevelsTableHeaderText":"Permission Levels","boxui.share.personalMessageLabel":"Personal Message","boxui.share.pillSelectorPlaceholder":"Add names or email addresses","boxui.share.previewTableHeaderText":"Preview","boxui.share.previewerLevelText":"Previewer","boxui.share.previewerUploaderLevelText":"Previewer Uploader","boxui.share.referAFriendBadgeText":"REFER","boxui.share.referAFriendRewardCenterLinkText":"Click Here","boxui.share.referAFriendText":"Want a free month of Box? Refer your friend!","boxui.share.removeLink":"Remove Link","boxui.share.removeLinkConfirmationDescription":"This will permanently remove the shared link. If this item is embedded on other sites it will also become inaccessible. Any custom properties, settings and expirations will be removed as well. Do you want to continue?","boxui.share.removeLinkConfirmationTitle":"Remove Shared Link","boxui.share.settingsButtonLabel":"Open shared link settings popup","boxui.share.sharedLinkExpirationTooltip":"This link will expire on {expiration, date, long}","boxui.share.sharedLinkLabel":"Shared Link","boxui.share.sharedLinkModalTitle":"Shared Link for {itemName}","boxui.share.sharedLinkSettings.accessLevel.inCompanyView":"This content is available to anyone within your company with the link, and can be viewed.","boxui.share.sharedLinkSettings.accessLevel.inCompanyViewDownload":"This content is available to anyone within your company with the link, and can be viewed or downloaded.","boxui.share.sharedLinkSettings.accessLevel.inItem":"This content is available to invited collaborators with the link.","boxui.share.sharedLinkSettings.accessLevel.withLinkView":"This content is publicly available to anyone with the link, and can be viewed.","boxui.share.sharedLinkSettings.accessLevel.withLinkViewDownload":"This content is publicly available to anyone with the link, and can be viewed or downloaded.","boxui.share.sharedLinkSettings.allowDownloadLabel":"Allow users with the shared link to download this item","boxui.share.sharedLinkSettings.allowDownloadTitle":"Allow Download","boxui.share.sharedLinkSettings.customURLLabel":"Non-private custom URL","boxui.share.sharedLinkSettings.directDownloadBlockedByAccessPolicyWithClassification":"Download has been disabled for content due to the classification.","boxui.share.sharedLinkSettings.directDownloadBlockedByAccessPolicyWithoutClassification":"Download has been disabled for content without classification.","boxui.share.sharedLinkSettings.directDownloadBlockedByMaliciousContent":"Download for this content has been disabled due to a security policy.","boxui.share.sharedLinkSettings.directLinkLabel":"Direct Link","boxui.share.sharedLinkSettings.expirationLabel":"Disable Shared Link on","boxui.share.sharedLinkSettings.expirationTitle":"Link Expiration","boxui.share.sharedLinkSettings.inaccessibleSettingsNotice":"Certain settings may not be available for this item due to permissions.","boxui.share.sharedLinkSettings.modalTitle":"Shared Link Settings","boxui.share.sharedLinkSettings.passwordLabel":"Require password","boxui.share.sharedLinkSettings.passwordPlaceholder":"Enter a password","boxui.share.sharedLinkSettings.passwordTitle":"Password Protect","boxui.share.sharedLinkSettings.sharedLinkSettingWarningLinkText":"Learn more about shared link settings.","boxui.share.sharedLinkSettings.sharedLinkWarningText":"This content is publicly available to anyone with the link.","boxui.share.sharedLinkSettings.vanityNameNotSet":"The custom URL has not been set","boxui.share.sharedLinkSettings.vanityNamePlaceholder":"Enter a custom path (12 or more characters)","boxui.share.sharedLinkSettings.vanityURLWarning":"Custom URLs should not be used when sharing sensitive content.","boxui.share.sharedLinkURLLabel":"URL","boxui.share.upgradeGetMoreAccessControls":"Get More Access Controls","boxui.share.uploadTableHeaderText":"Upload","boxui.share.uploaderLevelText":"Uploader","boxui.share.vanityURLEnableText":"Publish content broadly with a custom, non-private URL","boxui.share.viewerLevelText":"Viewer","boxui.share.viewerUploaderLevelText":"Viewer Uploader","boxui.shareMenu.downloadOnly":"Download Only","boxui.shareMenu.editAndComment":"Edit and Comment","boxui.shareMenu.getSharedLink":"Get Shared Link","boxui.shareMenu.insufficientPermissionsMenuOption":"Insufficient sharing permissions. Please contact the folder owner.","boxui.shareMenu.insufficientPermissionsTooltip":"You have insufficient permissions to invite collaborators.","boxui.shareMenu.inviteCollabs":"Invite Collaborators","boxui.shareMenu.ownerCoownerOnlyTooltip":"You have insufficient permissions to invite collaborators. Only the owner and co-owners can invite collaborators.","boxui.shareMenu.shortcutOnly":"Shortcut Only","boxui.shareMenu.viewAndDownload":"View and Download","boxui.shareMenu.viewOnly":"View Only","boxui.timeInput.emptyTimeError":"Required field. Enter a time in the format HH:MM A.","boxui.timeInput.invalidTimeError":"Invalid time format. Enter a time in the format HH:MM A.","boxui.unifiedShare.collabAccess":"collaborator access","boxui.unifiedShare.collaboration.groupCollabText":"Group","boxui.unifiedShare.collaboration.userCollabText":"User","boxui.unifiedShare.collaboratorListTitle":"People in ‘{itemName}’","boxui.unifiedShare.collaborators.expirationTooltipClickableText":"Access expires on {date}. Click for details.","boxui.unifiedShare.contactEmailsTooltipText":"{emails}, and {remainingEmailsCount} more","boxui.unifiedShare.contactRestrictionNotice":"{count, plural, one {{count} invitation} other {{count} invitations}} cannot be sent because external collaboration is restricted due to the applied security policy.","boxui.unifiedShare.contactRestrictionNoticeInformationBarrier":"{count, plural, one {{count} invitation} other {{count} invitations}} cannot be sent due to a security policy.","boxui.unifiedShare.contactRestrictionNoticeInformationBarrierSingular":"Invitations cannot be sent to {email} due to a security policy.","boxui.unifiedShare.contactRestrictionNoticeInformationBarrierSingularGroup":'Invitations cannot be sent to "{groupName}" due to a security policy.',"boxui.unifiedShare.contactRestrictionNoticeSingular":"Invitations cannot be sent to {email} because external collaboration is restricted due to the applied security policy.","boxui.unifiedShare.contactRestrictionRemoveButtonLabel":"Remove to continue","boxui.unifiedShare.contactsExceedLimitError":"Oops! The maximum number of collaborators that can be added at once is {maxContacts} collaborators. Please try again by splitting your invitations into batches.","boxui.unifiedShare.contentSharedWithExternalCollaborators":"This content will be shared with external collaborators.","boxui.unifiedShare.coownerLevelButtonLabel":"Invite as Co-owner","boxui.unifiedShare.coownerLevelDescription":"Manage security, upload, download, preview, share, edit, and delete","boxui.unifiedShare.coownerLevelText":"Co-owner","boxui.unifiedShare.disabledCreateLinkTooltip":"You do not have permission to create the link.","boxui.unifiedShare.disabledMaliciousContentShareLinkPermission":"This option isn’t available for this item due to a security policy.","boxui.unifiedShare.disabledShareLinkPermission":"This option is not available due to a security policy.","boxui.unifiedShare.editorLevelButtonLabel":"Invite as Editor","boxui.unifiedShare.editorLevelDescription":"Upload, download, preview, share, edit, and delete","boxui.unifiedShare.editorLevelFileDescription":"Upload, download, preview, share, and edit","boxui.unifiedShare.editorLevelText":"Editor","boxui.unifiedShare.emailModalTitle":"Send Link to ‘{itemName}’","boxui.unifiedShare.enterAtLeastOneEmail":"Enter at least one valid email","boxui.unifiedShare.enterEmailAddressesCalloutText":"Share this item with coworkers by entering their email addresses","boxui.unifiedShare.expiresMessage":"Expires","boxui.unifiedShare.ftuxConfirmLabel":"Got it","boxui.unifiedShare.ftuxEditPermissionTooltipBody":"Select the new edit option to easily share your file with people or groups.","boxui.unifiedShare.ftuxEditPermissionTooltipTitle":"Collaboration made easy","boxui.unifiedShare.ftuxLinkText":"Read more about shared link security here.","boxui.unifiedShare.ftuxNewUSMUserBody":"We’ve simplified the sharing experience when you click 'Share'. Invite people to this item here and toggle the link on or off below for easy sharing.","boxui.unifiedShare.ftuxNewUsmUserTitle":"Simplified sharing for files and folders","boxui.unifiedShare.ftuxSharedLinkPermissionsEditTag":"NEW","boxui.unifiedShare.groupLabel":"Group","boxui.unifiedShare.inviteDisabledTooltip":"You do not have permission to invite collaborators.","boxui.unifiedShare.inviteDisabledWeblinkTooltip":"Collaborators cannot be added to bookmarks.","boxui.unifiedShare.inviteFieldLabel":"Invite People","boxui.unifiedShare.justifiableContactRestrictionNotice":"This content requires a business justification for {count, plural, one {{count} invitation} other {{count} invitations}}. Please select a business justification below.","boxui.unifiedShare.justifiableContactRestrictionNoticeSingular":"This content requires a business justification to invite {email}. Please select a business justification below.","boxui.unifiedShare.justifiableContactRestrictionRemoveButtonLabel":"Alternatively, remove to continue","boxui.unifiedShare.justificationRequiredError":"Select a justification or remove to continue","boxui.unifiedShare.justificationSelectPlaceholder":"Select Justification","boxui.unifiedShare.levelOfCollabAccess":"Set the level of {collaboratorAccess} and increase security through one of our paid plans. {upgradeLink}","boxui.unifiedShare.linkShareOff":"Create shared link","boxui.unifiedShare.linkShareOn":"Shared link is created","boxui.unifiedShare.message":"Message","boxui.unifiedShare.modalTitle":"Share ‘{itemName}’","boxui.unifiedShare.peopleInCompanyCanAccessFile":"Anyone in your company with the link or people invited to this file can access","boxui.unifiedShare.peopleInCompanyCanAccessFolder":"Anyone in your company with the link or people invited to this folder can access","boxui.unifiedShare.peopleInCompanyCanAccessHub":"Anyone in your company with the link or people invited to this hub can access","boxui.unifiedShare.peopleInEnterpriseName":"People in {enterpriseName}","boxui.unifiedShare.peopleInItemCanAccessFile":"Only invited people can access this file","boxui.unifiedShare.peopleInItemCanAccessFolder":"Only invited people can access this folder","boxui.unifiedShare.peopleInItemCanAccessHub":"Only invited people can access this hub","boxui.unifiedShare.peopleInSpecifiedCompanyCanAccessFile":"Anyone at {company} with the link or people invited to this file can access","boxui.unifiedShare.peopleInSpecifiedCompanyCanAccessFolder":"Anyone at {company} with the link or people invited to this folder can access","boxui.unifiedShare.peopleInSpecifiedCompanyCanAccessHub":"Anyone at {company} with the link or people invited to this hub can access","boxui.unifiedShare.peopleInThisFile":"Invited people only","boxui.unifiedShare.peopleInThisFolder":"Invited people only","boxui.unifiedShare.peopleInYourCompany":"People in your company","boxui.unifiedShare.peopleWithLinkDescription":"Publicly accessible and no sign-in required","boxui.unifiedShare.peopleWithTheLinkText":"People with the link","boxui.unifiedShare.previewerLevelButtonLabel":"Invite as Previewer","boxui.unifiedShare.previewerLevelDescription":"Preview only","boxui.unifiedShare.previewerLevelText":"Previewer","boxui.unifiedShare.previewerUploaderLevelButtonLabel":"Invite as Previewer Uploader","boxui.unifiedShare.previewerUploaderLevelDescription":"Upload and preview","boxui.unifiedShare.previewerUploaderLevelText":"Previewer Uploader","boxui.unifiedShare.recommendedSharingTooltipCalloutText":"Based on your usage, we think {fullName} would be interested in this file.","boxui.unifiedShare.removeLinkConfirmationDescription":"This will permanently remove the shared link. If this item is embedded on other sites it will also become inaccessible. Any custom properties, settings and expirations will be removed as well. Do you want to continue?","boxui.unifiedShare.removeLinkConfirmationTitle":"Remove Shared Link","boxui.unifiedShare.removeLinkTooltip":"You do not have permission to remove the link.","boxui.unifiedShare.restrictedContactsError":"Remove to continue","boxui.unifiedShare.sendSharedLink":"Send Shared Link","boxui.unifiedShare.sendSharedLinkFieldLabel":"Email Shared Link","boxui.unifiedShare.sharedLinkDisabledTooltipCopy":"Create and copy link for sharing","boxui.unifiedShare.sharedLinkEditablePubliclyAvailable":"Publicly available for anyone to view and download. Any logged in users with the link can edit.","boxui.unifiedShare.sharedLinkElevatedEditableCompanyAvailable":"People who have access to this link can edit.","boxui.unifiedShare.sharedLinkExpirationTooltip":"This link will expire and be inaccessible on {expiration, date, long}.","boxui.unifiedShare.sharedLinkPermissionsEdit":"Can edit","boxui.unifiedShare.sharedLinkPermissionsEditTooltip":"This permission can only be changed in Box Notes","boxui.unifiedShare.sharedLinkPermissionsViewDownload":"Can view and download","boxui.unifiedShare.sharedLinkPermissionsViewOnly":"Can view only","boxui.unifiedShare.sharedLinkPubliclyAvailable":"This content is publicly available to anyone with the link.","boxui.unifiedShare.sharedLinkSectionLabel":"Share Link","boxui.unifiedShare.sharedLinkSettings":"Link Settings","boxui.unifiedShare.sharedLinkSettingsCalloutText":"Create a custom URL, enable password protection, enable link expiration, and much more","boxui.unifiedShare.suggestedCollabsTitle":"Suggested","boxui.unifiedShare.upgradeGetMoreAccessControlsDescription":"62% of customers on your plan {upgradeGetMoreAccessControlsLink} to manage collaborators’ access and permission settings","boxui.unifiedShare.upgradeGetMoreAccessControlsLink":"upgrade","boxui.unifiedShare.upgradeInlineNoticeTitle":"Upgrade Your Plan","boxui.unifiedShare.upgradeLink":"Upgrade now","boxui.unifiedShare.uploaderLevelButtonLabel":"Invite as Uploader","boxui.unifiedShare.uploaderLevelDescription":"Upload only","boxui.unifiedShare.uploaderLevelText":"Uploader","boxui.unifiedShare.viewerLevelButtonLabel":"Invite as Viewer","boxui.unifiedShare.viewerLevelDescription":"Download, preview, and share","boxui.unifiedShare.viewerLevelText":"Viewer","boxui.unifiedShare.viewerUploaderLevelButtonLabel":"Invite as Viewer Uploader","boxui.unifiedShare.viewerUploaderLevelDescription":"Upload, download, preview, share, and edit","boxui.unifiedShare.viewerUploaderLevelText":"Viewer Uploader","boxui.validation.URLError":"Invalid URL","boxui.validation.emailError":"Invalid Email Address","boxui.validation.genericError":"Invalid Input","boxui.validation.invalidDateError":"Invalid Date","boxui.validation.invalidUserError":"Invalid User","boxui.validation.requiredError":"Required Field","boxui.validation.tooLongError":"Input cannot exceed {max} characters","boxui.validation.tooShortError":"Input must be at least {min} characters"})};let s;class l{static getUserAgent(){return __webpack_require__.g.navigator.userAgent}static isMobile(){const e=l.getUserAgent();return/iphone|ipad|ipod|android|blackberry|bb10|mini|windows\sce|palm/i.test(e)||/Mobi/i.test(e)}static isIE(){return/Trident/i.test(l.getUserAgent())}static isFirefox(){const e=l.getUserAgent();return/Firefox/i.test(e)&&!/Seamonkey\//i.test(e)}static isSafari(){const e=l.getUserAgent();return/AppleWebKit/i.test(e)&&!/Chrome\//i.test(e)}static isMobileSafari(){return l.isMobile()&&l.isSafari()&&!l.isMobileChromeOniOS()}static isMobileChromeOniOS(){const e=l.getUserAgent();return l.isMobile()&&/AppleWebKit/i.test(e)&&/CriOS\//i.test(e)}static canDownload(){return!l.isMobile()||!window.externalHost&&"download"in document.createElement("a")}static canPlayDash(e=!1){if(void 0===s||e){const e=__webpack_require__.g.MediaSource;s=!!e&&"function"==typeof e.isTypeSupported&&e.isTypeSupported('video/mp4; codecs="avc1.64001E"')}return s}static canWriteToClipboard(){return!(!__webpack_require__.g.navigator.clipboard||!__webpack_require__.g.navigator.clipboard.writeText)}static canReadFromClipboard(){return!(!__webpack_require__.g.navigator.clipboard||!__webpack_require__.g.navigator.clipboard.readText)}}const c=l,u="folder",d="file",h="web_link",f="annotation",p="comment",m="file_version",b="folder_",g="file_",y=b,v=g,w="search_",E="DESC",S="Content-Type",C="Accept-Language",k="securityClassification-6VMVochwUWo",x="boxSkillsCards",P="properties",_="global",O="enterprise",A="experimental",T="id",I="name",M="size",D="extension",R="permissions",F="modified_at",L="restored_at",j="restored_from",N="created_at",U="is_externally_owned",H="created_by",B="modified_by",z="promoted_by",V="restored_by",$="trashed_by",q="representations",G="authenticated_download_url",W="file_version",X="is_download_available",K="version_number",Q="metadata",Y=`${Q}.${_}.archivedItemTemplate`,J=`${Q}.${_}.${x}`,Z="trashed_at",ee="uploader_display_name",te="can_comment",re="can_create_annotations",ne="can_delete",ie="can_edit",oe="can_resolve",ae="can_upload",se="can_view_annotations",le="https://api.box.com",ce="https://upload.box.com",ue="https://upload.app.box.com",de="bcow-integration-icon",he="fetch_comments_error",fe="fetch_replies_error",pe="fetch_tasks_error",me="fetch_metadata_error",be="execute_integrations_error",ge="create_comment_error",ye="create_reply_error",ve="create_task_error",we="create_task_collaborator_error",Ee="create_metadata_error",Se="delete_comment_error",Ce="group_exceeds_limit",ke="update_task_error",xe="update_comment_error",Pe="update_metadata_error",_e="share_item_error",Oe="isErrorDisplayed",Ae="[3d][pdf][text][mp3][json][jpg?dimensions=1024x1024&paged=false][jpg?dimensions=2048x2048,png?dimensions=2048x2048]"+(c.canPlayDash()?"[dash,mp4][filmstrip]":"[mp4]"),Te=3e3,Ie=1e3,Me="[jpg?dimensions=1024x1024&paged=false,png?dimensions=1024x1024][pdf][text]",De="GET",Re="POST",Fe="PUT",Le="DELETE",je="OPTIONS",Ne=429,Ue="upload",He={type:"user",id:"2",name:""},Be="1338",ze="13418",Ve=26,$e="NOT_STARTED",qe="annotation",Ge="app_activity",We="comment",Xe="task",Ke="versions";function Qe(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class Ye extends(n()){constructor(...e){super(...e),Qe(this,"language",a.language),Qe(this,"messages",a.messages),Qe(this,"setComponent",(e=>{this.component=e})),Qe(this,"onInteraction",(e=>{this.emit("interaction",e)}))}show(e,t,r={}){this.id=e,this.token=t,this.options=r,this.options.version="0.0.0-semantically-released",this.emit=this.emit.bind(this);const n=r.container||"body";this.container=n instanceof HTMLElement?n:document.querySelector(n),this.render()}hide(){this.removeAllListeners(),t.unmountComponentAtNode(this.container),this.container&&(this.container.innerHTML="")}render(){throw new Error("Unimplemented!")}getComponent(){return this.component}clearCache(){const e=this.getComponent();e&&"function"==typeof e.clearCache&&e.clearCache()}emit(e,t){try{return super.emit(e,t)}catch(e){}return!1}}const Je=Ye;var Ze=__webpack_require__(78444),et=__webpack_require__.n(Ze),tt=__webpack_require__(70406),rt=__webpack_require__.n(tt),nt=__webpack_require__(18564),it=__webpack_require__.n(nt),ot=function(e,t){return ot=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},ot(e,t)};function at(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}ot(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var st=function(){return st=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},st.apply(this,arguments)};function lt(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}function ct(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var ut,dt,ht,ft=__webpack_require__(57160),pt=__webpack_require__.n(ft);function mt(e,t,r){if(void 0===r&&(r=Error),!e)throw new r(t)}function bt(e){return e.type===dt.literal}function gt(e){return e.type===dt.argument}function yt(e){return e.type===dt.number}function vt(e){return e.type===dt.date}function wt(e){return e.type===dt.time}function Et(e){return e.type===dt.select}function St(e){return e.type===dt.plural}function Ct(e){return e.type===dt.pound}function kt(e){return e.type===dt.tag}function xt(e){return!(!e||"object"!=typeof e||e.type!==ht.number)}function Pt(e){return!(!e||"object"!=typeof e||e.type!==ht.dateTime)}!function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(ut||(ut={})),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(dt||(dt={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(ht||(ht={}));var _t=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Ot=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function At(e){var t={};return e.replace(Ot,(function(e){var r=e.length;switch(e[0]){case"G":t.era=4===r?"long":5===r?"narrow":"short";break;case"y":t.year=2===r?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===r?"long":5===r?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}var Tt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,It=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Mt=/^(@+)?(\+|#+)?[rs]?$/g,Dt=/(\*)(0+)|(#+)(0+)|(0+)/g,Rt=/^(0+)$/;function Ft(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(Mt,(function(e,r,n){return"string"!=typeof n?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===n?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""})),t}function Lt(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function jt(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!Rt.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Nt(e){return Lt(e)||{}}function Ut(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=st(st(st({},t),{notation:"scientific"}),i.options.reduce((function(e,t){return st(st({},e),Nt(t))}),{}));continue;case"engineering":t=st(st(st({},t),{notation:"engineering"}),i.options.reduce((function(e,t){return st(st({},e),Nt(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Dt,(function(e,r,n,i,o,a){if(r)t.minimumIntegerDigits=n.length;else{if(i&&o)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(Rt.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if(It.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(It,(function(e,r,n,i,o,a){return"*"===n?t.minimumFractionDigits=r.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:o&&a?(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length+a.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""}));var o=i.options[0];"w"===o?t=st(st({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=st(st({},t),Ft(o)))}else if(Mt.test(i.stem))t=st(st({},t),Ft(i.stem));else{var a=Lt(i.stem);a&&(t=st(st({},t),a));var s=jt(i.stem);s&&(t=st(st({},t),s))}}return t}var Ht,Bt={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function zt(e){var t=e.hourCycle;if(void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r,n=e.language;return"root"!==n&&(r=e.maximize().region),(Bt[r||""]||Bt[n||""]||Bt["".concat(n,"-001")]||Bt["001"])[0]}var Vt=new RegExp("^".concat(_t.source,"*")),$t=new RegExp("".concat(_t.source,"*$"));function qt(e,t){return{start:e,end:t}}var Gt=!!String.prototype.startsWith&&"_a".startsWith("a",1),Wt=!!String.fromCodePoint,Xt=!!Object.fromEntries,Kt=!!String.prototype.codePointAt,Qt=!!String.prototype.trimStart,Yt=!!String.prototype.trimEnd,Jt=Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Zt=!0;try{Zt="a"===(null===(Ht=sr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Ht?void 0:Ht[0])}catch(e){Zt=!1}var er,tr=Gt?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},rr=Wt?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",i=e.length,o=0;i>o;){if((r=e[o++])>1114111)throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},nr=Xt?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r],o=i[0],a=i[1];t[o]=a}return t},ir=Kt?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||t>=r)){var n,i=e.charCodeAt(t);return i<55296||i>56319||t+1===r||(n=e.charCodeAt(t+1))<56320||n>57343?i:n-56320+(i-55296<<10)+65536}},or=Qt?function(e){return e.trimStart()}:function(e){return e.replace(Vt,"")},ar=Yt?function(e){return e.trimEnd()}:function(e){return e.replace($t,"")};function sr(e,t){return new RegExp(e,t)}if(Zt){var lr=sr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");er=function(e,t){var r;return lr.lastIndex=t,null!==(r=lr.exec(e)[1])&&void 0!==r?r:""}}else er=function(e,t){for(var r=[];;){var n=ir(e,t);if(void 0===n||dr(n)||hr(n))break;r.push(n),t+=n>=65536?2:1}return rr.apply(void 0,r)};var cr=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var i=this.char();if(123===i){if((o=this.parseArgument(e,r)).err)return o;n.push(o.val)}else{if(125===i&&e>0)break;if(35!==i||"plural"!==t&&"selectordinal"!==t){if(60===i&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(ut.UNMATCHED_CLOSING_TAG,qt(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&ur(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o;n.push(o.val)}else{var o;if((o=this.parseLiteral(e,t)).err)return o;n.push(o.val)}}else{var a=this.clonePosition();this.bump(),n.push({type:dt.pound,location:qt(a,this.clonePosition())})}}}return{val:n,err:null}},e.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:dt.literal,value:"<".concat(n,"/>"),location:qt(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var o=i.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!ur(this.char()))return this.error(ut.INVALID_TAG,qt(a,this.clonePosition()));var s=this.clonePosition();return n!==this.parseTagName()?this.error(ut.UNMATCHED_CLOSING_TAG,qt(s,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:dt.tag,value:n,children:o,location:qt(r,this.clonePosition())},err:null}:this.error(ut.INVALID_TAG,qt(a,this.clonePosition())))}return this.error(ut.UNCLOSED_TAG,qt(r,this.clonePosition()))}return this.error(ut.INVALID_TAG,qt(r,this.clonePosition()))},e.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var i=this.tryParseQuote(t);if(i)n+=i;else{var o=this.tryParseUnquoted(e,t);if(o)n+=o;else{var a=this.tryParseLeftAngleBracket();if(!a)break;n+=a}}}var s=qt(r,this.clonePosition());return{val:{type:dt.literal,value:n,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(ur(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return rr.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&e>0?null:(this.bump(),rr(r))},e.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(ut.EXPECT_ARGUMENT_CLOSING_BRACE,qt(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(ut.EMPTY_ARGUMENT,qt(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(ut.MALFORMED_ARGUMENT,qt(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(ut.EXPECT_ARGUMENT_CLOSING_BRACE,qt(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:dt.argument,value:n,location:qt(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(ut.EXPECT_ARGUMENT_CLOSING_BRACE,qt(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(ut.MALFORMED_ARGUMENT,qt(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=er(this.message,t),n=t+r.length;return this.bumpTo(n),{value:r,location:qt(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,r,n){var i,o=this.clonePosition(),a=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(a){case"":return this.error(ut.EXPECT_ARGUMENT_TYPE,qt(o,s));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((g=this.parseSimpleArgStyleIfPossible()).err)return g;if(0===(f=ar(g.val)).length)return this.error(ut.EXPECT_ARGUMENT_STYLE,qt(this.clonePosition(),this.clonePosition()));l={style:f,styleLocation:qt(c,this.clonePosition())}}if((y=this.tryParseArgumentClose(n)).err)return y;var u=qt(n,this.clonePosition());if(l&&tr(null==l?void 0:l.style,"::",0)){var d=or(l.style.slice(2));if("number"===a)return(g=this.parseNumberSkeletonFromString(d,l.styleLocation)).err?g:{val:{type:dt.number,value:r,location:u,style:g.val},err:null};if(0===d.length)return this.error(ut.EXPECT_DATE_TIME_SKELETON,u);var h=d;this.locale&&(h=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if("j"===i){for(var o=0;n+1<e.length&&e.charAt(n+1)===i;)o++,n++;var a=1+(1&o),s=o<2?1:3+(o>>1),l=zt(t);for("H"!=l&&"k"!=l||(s=0);s-- >0;)r+="a";for(;a-- >0;)r=l+r}else r+="J"===i?"H":i}return r}(d,this.locale));var f={type:ht.dateTime,pattern:h,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?At(h):{}};return{val:{type:"date"===a?dt.date:dt.time,value:r,location:u,style:f},err:null}}return{val:{type:"number"===a?dt.number:"date"===a?dt.date:dt.time,value:r,location:u,style:null!==(i=null==l?void 0:l.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":var p=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(ut.EXPECT_SELECT_ARGUMENT_OPTIONS,qt(p,st({},p)));this.bumpSpace();var m=this.parseIdentifierIfPossible(),b=0;if("select"!==a&&"offset"===m.value){if(!this.bumpIf(":"))return this.error(ut.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,qt(this.clonePosition(),this.clonePosition()));var g;if(this.bumpSpace(),(g=this.tryParseDecimalInteger(ut.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ut.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return g;this.bumpSpace(),m=this.parseIdentifierIfPossible(),b=g.val}var y,v=this.tryParsePluralOrSelectOptions(e,a,t,m);if(v.err)return v;if((y=this.tryParseArgumentClose(n)).err)return y;var w=qt(n,this.clonePosition());return"select"===a?{val:{type:dt.select,value:r,options:nr(v.val),location:w},err:null}:{val:{type:dt.plural,value:r,options:nr(v.val),offset:b,pluralType:"plural"===a?"cardinal":"ordinal",location:w},err:null};default:return this.error(ut.INVALID_ARGUMENT_TYPE,qt(o,s))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(ut.EXPECT_ARGUMENT_CLOSING_BRACE,qt(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(ut.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,qt(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],r=0,n=e.split(Tt).filter((function(e){return e.length>0}));r<n.length;r++){var i=n[r].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],a=i.slice(1),s=0,l=a;s<l.length;s++)if(0===l[s].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:a})}return t}(e)}catch(e){return this.error(ut.INVALID_NUMBER_SKELETON,t)}return{val:{type:ht.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?Ut(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var i,o=!1,a=[],s=new Set,l=n.value,c=n.location;;){if(0===l.length){var u=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var d=this.tryParseDecimalInteger(ut.EXPECT_PLURAL_ARGUMENT_SELECTOR,ut.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;c=qt(u,this.clonePosition()),l=this.message.slice(u.offset,this.offset())}if(s.has(l))return this.error("select"===t?ut.DUPLICATE_SELECT_ARGUMENT_SELECTOR:ut.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);"other"===l&&(o=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?ut.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:ut.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,qt(this.clonePosition(),this.clonePosition()));var f=this.parseMessage(e+1,t,r);if(f.err)return f;var p=this.tryParseArgumentClose(h);if(p.err)return p;a.push([l,{value:f.val,location:qt(h,this.clonePosition())}]),s.add(l),this.bumpSpace(),l=(i=this.parseIdentifierIfPossible()).value,c=i.location}return 0===a.length?this.error("select"===t?ut.EXPECT_SELECT_ARGUMENT_SELECTOR:ut.EXPECT_PLURAL_ARGUMENT_SELECTOR,qt(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(ut.MISSING_OTHER_CLAUSE,qt(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,o=0;!this.isEOF();){var a=this.char();if(!(a>=48&&a<=57))break;i=!0,o=10*o+(a-48),this.bump()}var s=qt(n,this.clonePosition());return i?Jt(o*=r)?{val:o,err:null}:this.error(t,s):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=ir(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(tr(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),r=this.message.indexOf(e,t);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&dr(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),r=this.message.charCodeAt(t+(e>=65536?2:1));return null!=r?r:null},e}();function ur(e){return e>=97&&e<=122||e>=65&&e<=90}function dr(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function hr(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function fr(e){e.forEach((function(e){if(delete e.location,Et(e)||St(e))for(var t in e.options)delete e.options[t].location,fr(e.options[t].value);else yt(e)&&xt(e.style)||(vt(e)||wt(e))&&Pt(e.style)?delete e.style.location:kt(e)&&fr(e.children)}))}function pr(e,t){void 0===t&&(t={}),t=st({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new cr(e,t).parse();if(r.err){var n=SyntaxError(ut[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return(null==t?void 0:t.captureLocation)||fr(r.val),r.val}function mr(e,t){var r=t&&t.cache?t.cache:kr,n=t&&t.serializer?t.serializer:wr;return(t&&t.strategy?t.strategy:vr)(e,{cache:r,serializer:n})}function br(e,t,r,n){var i,o=null==(i=n)||"number"==typeof i||"boolean"==typeof i?n:r(n),a=t.get(o);return void 0===a&&(a=e.call(this,n),t.set(o,a)),a}function gr(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),o=t.get(i);return void 0===o&&(o=e.apply(this,n),t.set(i,o)),o}function yr(e,t,r,n,i){return r.bind(t,e,n,i)}function vr(e,t){return yr(e,this,1===e.length?br:gr,t.cache.create(),t.serializer)}var wr=function(){return JSON.stringify(arguments)};function Er(){this.cache=Object.create(null)}Er.prototype.get=function(e){return this.cache[e]},Er.prototype.set=function(e,t){this.cache[e]=t};var Sr,Cr,kr={create:function(){return new Er}},xr={variadic:function(e,t){return yr(e,this,gr,t.cache.create(),t.serializer)},monadic:function(e,t){return yr(e,this,br,t.cache.create(),t.serializer)}};(Cr=Sr||(Sr={})).MISSING_VALUE="MISSING_VALUE",Cr.INVALID_VALUE="INVALID_VALUE",Cr.MISSING_INTL_API="MISSING_INTL_API";var Pr,_r=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.code=r,i.originalMessage=n,i}return at(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Or=function(e){function t(t,r,n,i){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(r,'". Options are "').concat(Object.keys(n).join('", "'),'"'),Sr.INVALID_VALUE,i)||this}return at(t,e),t}(_r),Ar=function(e){function t(t,r,n){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(r),Sr.INVALID_VALUE,n)||this}return at(t,e),t}(_r),Tr=function(e){function t(t,r){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(r,'"'),Sr.MISSING_VALUE,r)||this}return at(t,e),t}(_r);function Ir(e){return"function"==typeof e}function Mr(e,t,r,n,i,o,a){if(1===e.length&&bt(e[0]))return[{type:Pr.literal,value:e[0].value}];for(var s=[],l=0,c=e;l<c.length;l++){var u=c[l];if(bt(u))s.push({type:Pr.literal,value:u.value});else if(Ct(u))"number"==typeof o&&s.push({type:Pr.literal,value:r.getNumberFormat(t).format(o)});else{var d=u.value;if(!i||!(d in i))throw new Tr(d,a);var h=i[d];if(gt(u))h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),s.push({type:"string"==typeof h?Pr.literal:Pr.object,value:h});else if(vt(u)){var f="string"==typeof u.style?n.date[u.style]:Pt(u.style)?u.style.parsedOptions:void 0;s.push({type:Pr.literal,value:r.getDateTimeFormat(t,f).format(h)})}else if(wt(u))f="string"==typeof u.style?n.time[u.style]:Pt(u.style)?u.style.parsedOptions:n.time.medium,s.push({type:Pr.literal,value:r.getDateTimeFormat(t,f).format(h)});else if(yt(u))(f="string"==typeof u.style?n.number[u.style]:xt(u.style)?u.style.parsedOptions:void 0)&&f.scale&&(h*=f.scale||1),s.push({type:Pr.literal,value:r.getNumberFormat(t,f).format(h)});else{if(kt(u)){var p=u.children,m=u.value,b=i[m];if(!Ir(b))throw new Ar(m,"function",a);var g=b(Mr(p,t,r,n,i,o).map((function(e){return e.value})));Array.isArray(g)||(g=[g]),s.push.apply(s,g.map((function(e){return{type:"string"==typeof e?Pr.literal:Pr.object,value:e}})))}if(Et(u)){if(!(y=u.options[h]||u.options.other))throw new Or(u.value,h,Object.keys(u.options),a);s.push.apply(s,Mr(y.value,t,r,n,i))}else if(St(u)){var y;if(!(y=u.options["=".concat(h)])){if(!Intl.PluralRules)throw new _r('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Sr.MISSING_INTL_API,a);var v=r.getPluralRules(t,{type:u.pluralType}).select(h-(u.offset||0));y=u.options[v]||u.options.other}if(!y)throw new Or(u.value,h,Object.keys(u.options),a);s.push.apply(s,Mr(y.value,t,r,n,i,h-(u.offset||0)))}}}}return(w=s).length<2?w:w.reduce((function(e,t){var r=e[e.length-1];return r&&r.type===Pr.literal&&t.type===Pr.literal?r.value+=t.value:e.push(t),e}),[]);var w}function Dr(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(Pr||(Pr={}));var Rr,Fr=function(){function e(t,r,n,i){var o,a,s,l=this;if(void 0===r&&(r=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=l.formatToParts(e);if(1===t.length)return t[0].value;var r=t.reduce((function(e,t){return e.length&&t.type===Pr.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(e){return Mr(l.ast,l.locales,l.formatters,l.formats,e,void 0,l.message)},this.resolvedOptions=function(){var e;return{locale:(null===(e=l.resolvedLocale)||void 0===e?void 0:e.toString())||Intl.NumberFormat.supportedLocalesOf(l.locales)[0]}},this.getAst=function(){return l.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var c=i||{},u=(c.formatters,lt(c,["formatters"]));this.ast=e.__parse(t,st(st({},u),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(a=e.formats,(s=n)?Object.keys(a).reduce((function(e,t){var r,n;return e[t]=(r=a[t],(n=s[t])?st(st(st({},r||{}),n||{}),Object.keys(r).reduce((function(e,t){return e[t]=st(st({},r[t]),n[t]||{}),e}),{})):r),e}),st({},a)):a),this.formatters=i&&i.formatters||(void 0===(o=this.formatterCache)&&(o={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:mr((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,ct([void 0],t,!1)))}),{cache:Dr(o.number),strategy:xr.variadic}),getDateTimeFormat:mr((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,ct([void 0],t,!1)))}),{cache:Dr(o.dateTime),strategy:xr.variadic}),getPluralRules:mr((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,ct([void 0],t,!1)))}),{cache:Dr(o.pluralRules),strategy:xr.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){if(void 0!==Intl.Locale){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])}},e.__parse=pr,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();!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"}(Rr||(Rr={}));var Lr=function(e){function t(r,n,i){var o=this,a=i?i instanceof Error?i:new Error(String(i)):void 0;return(o=e.call(this,"[@formatjs/intl Error ".concat(r,"] ").concat(n,"\n").concat(a?"\n".concat(a.message,"\n").concat(a.stack):""))||this).code=r,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(o,t),o}return at(t,e),t}(Error),jr=function(e){function t(t,r){return e.call(this,Rr.UNSUPPORTED_FORMATTER,t,r)||this}return at(t,e),t}(Lr),Nr=function(e){function t(t,r){return e.call(this,Rr.INVALID_CONFIG,t,r)||this}return at(t,e),t}(Lr),Ur=function(e){function t(t,r){return e.call(this,Rr.MISSING_DATA,t,r)||this}return at(t,e),t}(Lr),Hr=function(e){function t(t,r,n){var i=e.call(this,Rr.FORMAT_ERROR,"".concat(t,"\nLocale: ").concat(r,"\n"),n)||this;return i.locale=r,i}return at(t,e),t}(Lr),Br=function(e){function t(t,r,n,i){var o=e.call(this,"".concat(t,"\nMessageID: ").concat(null==n?void 0:n.id,"\nDefault Message: ").concat(null==n?void 0:n.defaultMessage,"\nDescription: ").concat(null==n?void 0:n.description,"\n"),r,i)||this;return o.descriptor=n,o.locale=r,o}return at(t,e),t}(Hr),zr=function(e){function t(t,r){var n=e.call(this,Rr.MISSING_TRANSLATION,'Missing message: "'.concat(t.id,'" for locale "').concat(r,'", using ').concat(t.defaultMessage?"default message (".concat("string"==typeof t.defaultMessage?t.defaultMessage:t.defaultMessage.map((function(e){var t;return null!==(t=e.value)&&void 0!==t?t:JSON.stringify(e)})).join(),")"):"id"," as fallback."))||this;return n.descriptor=t,n}return at(t,e),t}(Lr);function Vr(e,t,r){return void 0===r&&(r={}),t.reduce((function(t,n){return n in e?t[n]=e[n]:n in r&&(t[n]=r[n]),t}),{})}var $r={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:function(e){},onWarn:function(e){}};function qr(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function Gr(e,t,r,n){var i,o=e&&e[t];if(o&&(i=o[r]),i)return i;n(new jr("No ".concat(t," format named: ").concat(r)))}function Wr(e){mt(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var Xr=st(st({},$r),{textComponent:e.Fragment});function Kr(e,t){if(e===t)return!0;if(!e||!t)return!1;var r=Object.keys(e),n=Object.keys(t),i=r.length;if(n.length!==i)return!1;for(var o=0;o<i;o++){var a=r[o];if(e[a]!==t[a]||!Object.prototype.hasOwnProperty.call(t,a))return!1}return!0}var Qr="undefined"==typeof window||window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?e.createContext(null):window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=e.createContext(null)),Yr=Qr.Consumer,Jr=Qr.Provider,Zr=Qr;function en(){var t=e.useContext(Zr);return Wr(t),t}function tn(e,t){var r=e.values,n=lt(e,["values"]),i=t.values,o=lt(t,["values"]);return Kr(i,r)&&Kr(n,o)}function rn(t){var r=en(),n=r.formatMessage,i=r.textComponent,o=void 0===i?e.Fragment:i,a=t.id,s=t.description,l=t.defaultMessage,c=t.values,u=t.children,d=t.tagName,h=void 0===d?o:d,f=n({id:a,description:s,defaultMessage:l},c,{ignoreTag:t.ignoreTag});return"function"==typeof u?u(Array.isArray(f)?f:[f]):h?e.createElement(h,null,e.Children.toArray(f)):e.createElement(e.Fragment,null,f)}rn.displayName="FormattedMessage";var nn=e.memo(rn,tn);nn.displayName="MemoizedFormattedMessage";const on=nn;var an=__webpack_require__(43165);function sn(e,t){return Object.keys(e).reduce((function(r,n){return r[n]=st({timeZone:t},e[n]),r}),{})}function ln(e,t){return Object.keys(st(st({},e),t)).reduce((function(r,n){return r[n]=st(st({},e[n]||{}),t[n]||{}),r}),{})}function cn(e,t){if(!t)return e;var r=Fr.formats;return st(st(st({},r),e),{date:ln(sn(r.date,t),sn(e.date||{},t)),time:ln(sn(r.time,t),sn(e.time||{},t))})}var un=function(e,t,r,n,i){var o=e.locale,a=e.formats,s=e.messages,l=e.defaultLocale,c=e.defaultFormats,u=e.fallbackOnEmptyString,d=e.onError,h=e.timeZone,f=e.defaultRichTextElements;void 0===r&&(r={id:""});var p=r.id,m=r.defaultMessage;mt(!!p,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var b=String(p),g=s&&Object.prototype.hasOwnProperty.call(s,b)&&s[b];if(Array.isArray(g)&&1===g.length&&g[0].type===dt.literal)return g[0].value;if(!n&&g&&"string"==typeof g&&!f)return g.replace(/'\{(.*?)\}'/gi,"{$1}");if(n=st(st({},f),n||{}),a=cn(a,h),c=cn(c,h),!g){if(!1===u&&""===g)return g;if((!m||o&&o.toLowerCase()!==l.toLowerCase())&&d(new zr(r,o)),m)try{return t.getMessageFormat(m,l,c,i).format(n)}catch(e){return d(new Br('Error formatting default message for: "'.concat(b,'", rendering default message verbatim'),o,r,e)),"string"==typeof m?m:b}return b}try{return t.getMessageFormat(g,o,a,st({formatters:t},i||{})).format(n)}catch(e){d(new Br('Error formatting message: "'.concat(b,'", using ').concat(m?"default message":"id"," as fallback."),o,r,e))}if(m)try{return t.getMessageFormat(m,l,c,i).format(n)}catch(e){d(new Br('Error formatting the default message for: "'.concat(b,'", rendering message verbatim'),o,r,e))}return"string"==typeof g?g:"string"==typeof m?m:b},dn=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function hn(e,t,r){var n=e.locale,i=e.formats,o=e.onError;void 0===r&&(r={});var a=r.format,s=a&&Gr(i,"number",a,o)||{};return t(n,Vr(r,dn,s))}function fn(e,t,r,n){void 0===n&&(n={});try{return hn(e,t,n).format(r)}catch(t){e.onError(new Hr("Error formatting number.",e.locale,t))}return String(r)}function pn(e,t,r,n){void 0===n&&(n={});try{return hn(e,t,n).formatToParts(r)}catch(t){e.onError(new Hr("Error formatting number.",e.locale,t))}return[]}var mn=["numeric","style"];function bn(e,t,r,n,i){void 0===i&&(i={}),n||(n="second"),Intl.RelativeTimeFormat||e.onError(new _r('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n',Sr.MISSING_INTL_API));try{return function(e,t,r){var n=e.locale,i=e.formats,o=e.onError;void 0===r&&(r={});var a=r.format,s=!!a&&Gr(i,"relative",a,o)||{};return t(n,Vr(r,mn,s))}(e,t,i).format(r,n)}catch(t){e.onError(new Hr("Error formatting relative time.",e.locale,t))}return String(r)}var gn=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function yn(e,t,r,n){var i=e.locale,o=e.formats,a=e.onError,s=e.timeZone;void 0===n&&(n={});var l=n.format,c=st(st({},s&&{timeZone:s}),l&&Gr(o,t,l,a)),u=Vr(n,gn,c);return"time"!==t||u.hour||u.minute||u.second||u.timeStyle||u.dateStyle||(u=st(st({},u),{hour:"numeric",minute:"numeric"})),r(i,u)}function vn(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=void 0===o?{}:o,s="string"==typeof i?new Date(i||0):i;try{return yn(e,"date",t,a).format(s)}catch(t){e.onError(new Hr("Error formatting date.",e.locale,t))}return String(s)}function wn(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=void 0===o?{}:o,s="string"==typeof i?new Date(i||0):i;try{return yn(e,"time",t,a).format(s)}catch(t){e.onError(new Hr("Error formatting time.",e.locale,t))}return String(s)}function En(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=r[2],s=void 0===a?{}:a,l=e.timeZone,c=e.locale,u=e.onError,d=Vr(s,gn,l?{timeZone:l}:{});try{return t(c,d).formatRange(i,o)}catch(t){u(new Hr("Error formatting date time range.",e.locale,t))}return String(i)}function Sn(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=void 0===o?{}:o,s="string"==typeof i?new Date(i||0):i;try{return yn(e,"date",t,a).formatToParts(s)}catch(t){e.onError(new Hr("Error formatting date.",e.locale,t))}return[]}function Cn(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=void 0===o?{}:o,s="string"==typeof i?new Date(i||0):i;try{return yn(e,"time",t,a).formatToParts(s)}catch(t){e.onError(new Hr("Error formatting time.",e.locale,t))}return[]}var kn=["type"];function xn(e,t,r,n){var i=e.locale,o=e.onError;void 0===n&&(n={}),Intl.PluralRules||o(new _r('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Sr.MISSING_INTL_API));var a=Vr(n,kn);try{return t(i,a).select(r)}catch(e){o(new Hr("Error formatting plural.",i,e))}return"other"}var Pn=["type","style"],_n=Date.now();function On(e,t,r,n){void 0===n&&(n={});var i=An(e,t,r,n).reduce((function(e,t){var r=t.value;return"string"!=typeof r?e.push(r):"string"==typeof e[e.length-1]?e[e.length-1]+=r:e.push(r),e}),[]);return 1===i.length?i[0]:0===i.length?"":i}function An(e,t,r,n){var i=e.locale,o=e.onError;void 0===n&&(n={}),Intl.ListFormat||o(new _r('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n',Sr.MISSING_INTL_API));var a=Vr(n,Pn);try{var s={},l=r.map((function(e,t){if("object"==typeof e){var r=function(e){return"".concat(_n,"_").concat(e,"_").concat(_n)}(t);return s[r]=e,r}return String(e)}));return t(i,a).formatToParts(l).map((function(e){return"literal"===e.type?e:st(st({},e),{value:s[e.value]||e.value})}))}catch(e){o(new Hr("Error formatting list.",i,e))}return r}var Tn,In=["style","type","fallback","languageDisplay"];function Mn(e,t,r,n){var i=e.locale,o=e.onError;Intl.DisplayNames||o(new _r('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n',Sr.MISSING_INTL_API));var a=Vr(n,In);try{return t(i,a).of(r)}catch(e){o(new Hr("Error formatting display name.",i,e))}}function Dn(e,t){var r=function(e){void 0===e&&(e={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}});var t=Intl.RelativeTimeFormat,r=Intl.ListFormat,n=Intl.DisplayNames,i=mr((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,ct([void 0],t,!1)))}),{cache:qr(e.dateTime),strategy:xr.variadic}),o=mr((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,ct([void 0],t,!1)))}),{cache:qr(e.number),strategy:xr.variadic}),a=mr((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,ct([void 0],t,!1)))}),{cache:qr(e.pluralRules),strategy:xr.variadic});return{getDateTimeFormat:i,getNumberFormat:o,getMessageFormat:mr((function(e,t,r,n){return new Fr(e,t,r,st({formatters:{getNumberFormat:o,getDateTimeFormat:i,getPluralRules:a}},n||{}))}),{cache:qr(e.message),strategy:xr.variadic}),getRelativeTimeFormat:mr((function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new(t.bind.apply(t,ct([void 0],e,!1)))}),{cache:qr(e.relativeTime),strategy:xr.variadic}),getPluralRules:a,getListFormat:mr((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(r.bind.apply(r,ct([void 0],e,!1)))}),{cache:qr(e.list),strategy:xr.variadic}),getDisplayNames:mr((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(n.bind.apply(n,ct([void 0],e,!1)))}),{cache:qr(e.displayNames),strategy:xr.variadic})}}(t),n=st(st({},$r),e),i=n.locale,o=n.defaultLocale,a=n.onError;return i?!Intl.NumberFormat.supportedLocalesOf(i).length&&a?a(new Ur('Missing locale data for locale: "'.concat(i,'" in Intl.NumberFormat. Using default locale: "').concat(o,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(i).length&&a&&a(new Ur('Missing locale data for locale: "'.concat(i,'" in Intl.DateTimeFormat. Using default locale: "').concat(o,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(a&&a(new Nr('"locale" was not configured, using "'.concat(o,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),n.locale=n.defaultLocale||"en"),function(e){var t;e.onWarn&&e.defaultRichTextElements&&"string"==typeof((t=e.messages||{})?t[Object.keys(t)[0]]:void 0)&&e.onWarn('[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled. \nPlease consider using "@formatjs/cli" to pre-compile your messages for performance.\nFor more details see https://formatjs.io/docs/getting-started/message-distribution')}(n),st(st({},n),{formatters:r,formatNumber:fn.bind(null,n,r.getNumberFormat),formatNumberToParts:pn.bind(null,n,r.getNumberFormat),formatRelativeTime:bn.bind(null,n,r.getRelativeTimeFormat),formatDate:vn.bind(null,n,r.getDateTimeFormat),formatDateToParts:Sn.bind(null,n,r.getDateTimeFormat),formatTime:wn.bind(null,n,r.getDateTimeFormat),formatDateTimeRange:En.bind(null,n,r.getDateTimeFormat),formatTimeToParts:Cn.bind(null,n,r.getDateTimeFormat),formatPlural:xn.bind(null,n,r.getPluralRules),formatMessage:un.bind(null,n,r),$t:un.bind(null,n,r),formatList:On.bind(null,n,r.getListFormat),formatListToParts:An.bind(null,n,r.getListFormat),formatDisplayName:Mn.bind(null,n,r.getDisplayNames)})}function Rn(t){return t?Object.keys(t).reduce((function(r,n){var i,o=t[n];return r[n]="function"==typeof o?(i=o,function(t){return i(e.Children.toArray(t))}):o,r}),{}):t}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(Tn||(Tn={}));var Fn=function(t,r,n,i){for(var o=[],a=4;a<arguments.length;a++)o[a-4]=arguments[a];var s=Rn(i),l=un.apply(void 0,ct([t,r,n,s],o,!1));return Array.isArray(l)?e.Children.toArray(l):l},Ln=function(e,t){var r=e.defaultRichTextElements,n=lt(e,["defaultRichTextElements"]),i=Rn(r),o=Dn(st(st(st({},Xr),n),{defaultRichTextElements:i}),t),a={locale:o.locale,timeZone:o.timeZone,fallbackOnEmptyString:o.fallbackOnEmptyString,formats:o.formats,defaultLocale:o.defaultLocale,defaultFormats:o.defaultFormats,messages:o.messages,onError:o.onError,defaultRichTextElements:i};return st(st({},o),{formatMessage:Fn.bind(null,a,o.formatters),$t:Fn.bind(null,a,o.formatters)})};function jn(e){return{locale:e.locale,timeZone:e.timeZone,fallbackOnEmptyString:e.fallbackOnEmptyString,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,onWarn:e.onWarn,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}var Nn=function(t){function r(){var e=null!==t&&t.apply(this,arguments)||this;return e.cache={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}},e.state={cache:e.cache,intl:Ln(jn(e.props),e.cache),prevConfig:jn(e.props)},e}return at(r,t),r.getDerivedStateFromProps=function(e,t){var r=t.prevConfig,n=t.cache,i=jn(e);return Kr(r,i)?null:{intl:Ln(i,n),prevConfig:i}},r.prototype.render=function(){return Wr(this.state.intl),e.createElement(Jr,{value:this.state.intl},this.props.children)},r.displayName="IntlProvider",r.defaultProps=Xr,r}(e.PureComponent);const Un=Nn,Hn=({language:t,messages:r,children:n})=>t&&r?e.createElement(Un,{locale:t,messages:r},n):e.Children.only(n);var Bn,zn;!function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"}(Bn||(Bn={})),function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"}(zn||(zn={}));var Vn=function(e){var t=en(),r=e.value,n=e.children,i=lt(e,["value","children"]);return n(t.formatNumberToParts(r,i))};function $n(e){var t=function(t){var r=en(),n=t.value,i=t.children,o=lt(t,["value","children"]),a="string"==typeof n?new Date(n||0):n;return i("formatDate"===e?r.formatDateToParts(a,o):r.formatTimeToParts(a,o))};return t.displayName=zn[e],t}function qn(t){var r=function(r){var n=en(),i=r.value,o=r.children,a=lt(r,["value","children"]),s=n[t](i,a);if("function"==typeof o)return o(s);var l=n.textComponent||e.Fragment;return e.createElement(l,null,s)};return r.displayName=Bn[t],r}Vn.displayName="FormattedNumberParts",Vn.displayName="FormattedNumberParts",qn("formatDate"),qn("formatTime"),qn("formatNumber"),qn("formatList"),qn("formatDisplayName"),$n("formatDate"),$n("formatTime");const Gn={today:{id:"be.today",defaultMessage:"today"},yesterday:{id:"be.yesterday",defaultMessage:"yesterday"},logo:{id:"be.logo",defaultMessage:"Logo"},error:{id:"be.error",defaultMessage:"Error"},preview:{id:"be.preview",defaultMessage:"Preview"},previewError:{id:"be.previewError",defaultMessage:"This preview didn’t load. Please try to open or download the file to view."},previewErrorBlockedByPolicy:{id:"be.previewErrorBlockedByPolicy",defaultMessage:"Your access to this content is restricted due to a security policy."},boxEditErrorBlockedByPolicy:{id:"be.boxEditErrorBlockedByPolicy",defaultMessage:"Local editing of this content has been disabled based on an access policy"},previewUpdate:{id:"be.previewUpdate",defaultMessage:"A new version of this file is available."},complete:{id:"be.complete",defaultMessage:"Complete"},loading:{id:"be.loading",defaultMessage:"Loading"},reload:{id:"be.reload",defaultMessage:"Reload"},open:{id:"be.open",defaultMessage:"Open"},close:{id:"be.close",defaultMessage:"Close"},copy:{id:"be.copy",defaultMessage:"Copy"},delete:{id:"be.delete",defaultMessage:"Delete"},rename:{id:"be.rename",defaultMessage:"Rename"},remove:{id:"be.remove",defaultMessage:"Remove"},resume:{id:"be.resume",defaultMessage:"Resume"},resumeAll:{id:"be.resumeAll",defaultMessage:"Resume All"},retry:{id:"be.retry",defaultMessage:"Retry"},share:{id:"be.share",defaultMessage:"Share"},download:{id:"be.download",defaultMessage:"Download"},save:{id:"be.save",defaultMessage:"Save"},cancel:{id:"be.cancel",defaultMessage:"Cancel"},create:{id:"be.create",defaultMessage:"Create"},choose:{id:"be.choose",defaultMessage:"Choose"},upload:{id:"be.upload",defaultMessage:"Upload"},uploadEmptyState:{id:"be.uploadEmptyState",defaultMessage:"Empty state"},uploadErrorState:{id:"be.uploadErrorState",defaultMessage:"Error state"},uploadSuccessState:{id:"be.uploadSuccessState",defaultMessage:"Success state"},add:{id:"be.add",defaultMessage:"Add"},gridView:{id:"be.gridView",defaultMessage:"Switch to Grid View"},gridViewColumnSize:{id:"be.gridView.columnSize",defaultMessage:"Column size"},gridViewIncreaseColumnSize:{id:"be.gridView.increaseColumnSize",defaultMessage:"Increase column size"},gridViewDecreaseColumnSize:{id:"be.gridView.decreaseColumnSize",defaultMessage:"Decrease column size"},listView:{id:"be.listView",defaultMessage:"Switch to List View"},sort:{id:"be.sort",defaultMessage:"Sort"},newFolder:{id:"be.newFolder",defaultMessage:"New Folder"},in:{id:"be.in",defaultMessage:"In"},print:{id:"be.print",defaultMessage:"Print"},selected:{id:"be.selected",defaultMessage:"{count} Selected"},max:{id:"be.max",defaultMessage:"max"},nameDate:{id:"be.nameDate",defaultMessage:"{date} by {name}"},modified:{id:"be.itemModified",defaultMessage:"Modified"},modifiedDateBy:{id:"be.modifiedDateBy",defaultMessage:"Modified {date} by {name}"},modifiedDate:{id:"be.modifiedDate",defaultMessage:"Modified {date}"},created:{id:"be.itemCreated",defaultMessage:"Created"},owner:{id:"be.itemOwner",defaultMessage:"Owner"},uploader:{id:"be.itemUploader",defaultMessage:"Uploader"},interacted:{id:"be.itemInteracted",defaultMessage:"Last Accessed"},interactedDate:{id:"be.interactedDate",defaultMessage:"Last accessed on {date}"},name:{id:"be.itemName",defaultMessage:"Name"},size:{id:"be.itemSize",defaultMessage:"Size"},deleteDialogLabel:{id:"be.deleteDialogLabel",defaultMessage:"Confirm Delete"},deleteDialogFileText:{id:"be.deleteDialogFileText",defaultMessage:"Are you sure you want to delete {name}?"},deleteDialogFolderText:{id:"be.deleteDialogFolderText",defaultMessage:"Are you sure you want to delete {name} and all its contents?"},renameDialogLabel:{id:"be.renameDialogLabel",defaultMessage:"Rename"},renameDialogText:{id:"be.renameDialogText",defaultMessage:"Please enter a new name for {name}:"},renameDialogErrorInvalid:{id:"be.renameDialogErrorInvalid",defaultMessage:"This name is invalid."},renameDialogErrorInUse:{id:"be.renameDialogErrorInUse",defaultMessage:"An item with the same name already exists."},renameDialogErrorTooLong:{id:"be.renameDialogErrorTooLong",defaultMessage:"This name is too long."},createDialogLabel:{id:"be.createDialogLabel",defaultMessage:"New Folder"},createDialogText:{id:"be.createDialogText",defaultMessage:"Please enter a name."},createDialogErrorInvalid:{id:"be.createDialogErrorInvalid",defaultMessage:"This is an invalid folder name."},createDialogErrorTooLong:{id:"be.createDialogErrorTooLong",defaultMessage:"This folder name is too long."},createDialogErrorInUse:{id:"be.createDialogErrorInUse",defaultMessage:"A folder with the same name already exists."},shareDialogLabel:{id:"be.shareDialogLabel",defaultMessage:"Share"},shareDialogText:{id:"be.shareDialogText",defaultMessage:"Shared Link:"},shareDialogNone:{id:"be.shareDialogNone",defaultMessage:"None"},shareAccessOpen:{id:"be.shareAccessOpen",defaultMessage:"Access: People with the link"},shareAccessCollab:{id:"be.shareAccessCollab",defaultMessage:"Access: People in this folder"},shareAccessCompany:{id:"be.shareAccessCompany",defaultMessage:"People in this company"},shareAccessNone:{id:"be.shareAccessNone",defaultMessage:"No shared link"},shareAccessRemove:{id:"be.shareAccessRemove",defaultMessage:"Remove shared link"},searchPlaceholder:{id:"be.searchPlaceholder",defaultMessage:"Search files and folders"},sidebarAccessStats:{id:"be.sidebarAccessStats",defaultMessage:"Access Stats"},sidebarContentInsights:{id:"be.sidebarContentInsights",defaultMessage:"Content Insights"},sidebarShow:{id:"be.sidebarShow",defaultMessage:"Show Sidebar"},sidebarHide:{id:"be.sidebarHide",defaultMessage:"Hide Sidebar"},description:{id:"be.description",defaultMessage:"Description"},descriptionPlaceholder:{id:"be.descriptionPlaceholder",defaultMessage:"Enter a description"},sidebarDetailsTitle:{id:"be.sidebarDetailsTitle",defaultMessage:"Details"},sidebarSkillsTitle:{id:"be.sidebarSkillsTitle",defaultMessage:"Skills"},sidebarSkillsErrorTitle:{id:"be.sidebarSkillsErrorTitle",defaultMessage:"Skills Error"},sidebarSkillsErrorContent:{id:"be.sidebarSkillsErrorContent",defaultMessage:"An error has occurred while updating skills. Please refresh the page and try again."},sidebarBoxAITitle:{id:"be.sidebarBoxAITitle",defaultMessage:"Box AI"},sidebarActivityTitle:{id:"be.sidebarActivityTitle",defaultMessage:"Activity"},sidebarDocGenTitle:{id:"be.sidebarDocGenTitle",defaultMessage:"Doc Gen Tags"},sidebarDocGenTooltip:{id:"be.sidebarDocGenTooltip",defaultMessage:"Box Doc Gen"},sidebarMetadataTitle:{id:"be.sidebarMetadataTitle",defaultMessage:"Metadata"},sidebarMetadataEditingErrorContent:{id:"be.sidebarMetadataEditingErrorContent",defaultMessage:"An error has occurred while updating metadata. Please refresh the page and try again."},sidebarMetadataFetchingErrorContent:{id:"be.sidebarMetadataFetchingErrorContent",defaultMessage:"An error has occurred while fetching metadata. Please refresh the page and try again."},sidebarFileFetchingErrorContent:{id:"be.sidebarFileFetchingErrorContent",defaultMessage:"An error has occurred while fetching your Box file. Please refresh the page and try again."},sidebarProperties:{id:"be.sidebarProperties",defaultMessage:"File Properties"},sidebarNavLabel:{id:"be.sidebarNavLabel",defaultMessage:"Sidebar"},defaultSkill:{id:"be.defaultSkill",defaultMessage:"Skill Card"},statusSkill:{id:"be.statusSkill",defaultMessage:"Status"},topicsSkill:{id:"be.topicsSkill",defaultMessage:"Topics"},keywordSkill:{id:"be.keywordSkill",defaultMessage:"Topics"},faceSkill:{id:"be.faceSkill",defaultMessage:"Faces"},transcriptSkill:{id:"be.transcriptSkill",defaultMessage:"Transcript"},skillPendingStatus:{id:"be.skillPendingStatus",defaultMessage:"We’re working on processing your file - please hold!"},skillInvokedStatus:{id:"be.skillInvokedStatus",defaultMessage:"We’re preparing to process your file - please hold!"},skillUnknownError:{id:"be.skillUnknownError",defaultMessage:"Something went wrong with running this skill or fetching its data."},skillInvalidFileSizeError:{id:"be.skillInvalidFileSizeError",defaultMessage:"We’re sorry, no skills information was found. This file size is currently not supported."},skillInvalidFileExtensionError:{id:"be.skillInvalidFileExtensionError",defaultMessage:"We’re sorry, no skills information was found. This file extension is currently not supported."},skillNoInfoFoundError:{id:"be.skillNoInfoFoundError",defaultMessage:"We’re sorry, no skills information was found."},skillFileProcessingError:{id:"be.skillFileProcessingError",defaultMessage:"We’re sorry, something went wrong with processing the file."},uploadErrorTooManyFiles:{id:"be.uploadErrorTooManyFiles",defaultMessage:"You can only upload up to {fileLimit} file(s) at a time."},uploadError:{id:"be.uploadError",defaultMessage:"A network error has occurred while trying to upload."},uploadEmptyWithFolderUploadEnabled:{id:"be.uploadEmptyWithFolderUploadEnabled",defaultMessage:"Drag and drop files and folders"},uploadEmptyWithFolderUploadDisabled:{id:"be.uploadEmptyWithFolderUploadDisabled",defaultMessage:"Drag and drop files"},uploadEmptyFileInput:{id:"be.uploadEmptyFileInput",defaultMessage:"Browse your device"},uploadEmptyFolderInput:{id:"be.uploadEmptyFolderInput",defaultMessage:"Select Folders"},uploadNoDragDrop:{id:"be.uploadNoDragDrop",defaultMessage:"Select files from your device"},uploadInProgress:{id:"be.uploadInProgress",defaultMessage:"Drag and drop to add additional files"},uploadSuccess:{id:"be.uploadSuccess",defaultMessage:"Success! Your files have been uploaded."},uploadSuccessFileInput:{id:"be.uploadSuccessFileInput",defaultMessage:"Select More Files"},uploadSuccessFolderInput:{id:"be.uploadSuccessFolderInput",defaultMessage:"Select More Folders"},uploadOptions:{id:"be.uploadOptions",defaultMessage:"{option1} or {option2}"},nameASC:{id:"be.nameASC",defaultMessage:"Name: A → Z"},nameDESC:{id:"be.nameDESC",defaultMessage:"Name: Z → A"},dateASC:{id:"be.dateASC",defaultMessage:"Date: Oldest → Newest"},dateDESC:{id:"be.dateDESC",defaultMessage:"Date: Newest → Oldest"},sizeASC:{id:"be.sizeASC",defaultMessage:"Size: Smallest → Largest"},sizeDESC:{id:"be.sizeDESC",defaultMessage:"Size: Largest → Smallest"},searchState:{id:"be.searchState",defaultMessage:"Sorry, we couldn’t find what you’re looking for."},selectedState:{id:"be.selectedState",defaultMessage:"You haven’t selected any items yet."},errorState:{id:"be.errorState",defaultMessage:"A network error has occurred while trying to load."},folderState:{id:"be.folderState",defaultMessage:"There are no items in this folder."},metadataState:{id:"be.metadataState",defaultMessage:"There are no items in this folder."},recentsState:{id:"be.recentsState",defaultMessage:"There are no recent items yet."},loadingState:{id:"be.loadingState",defaultMessage:"Please wait while the items load..."},errorBreadcrumb:{id:"be.errorBreadcrumb",defaultMessage:"Error"},rootBreadcrumb:{id:"be.rootBreadcrumb",defaultMessage:"All Files"},searchBreadcrumb:{id:"be.searchBreadcrumb",defaultMessage:"Search Results"},recentsBreadcrumb:{id:"be.recentsBreadcrumb",defaultMessage:"Recents"},selectedBreadcrumb:{id:"be.selectedBreadcrumb",defaultMessage:"Selected Items"},uploadsManagerUploadInProgress:{id:"be.uploadsManagerUploadInProgress",defaultMessage:"Uploading"},uploadsManagerUploadPrompt:{id:"be.uploadsManagerUploadPrompt",defaultMessage:"Drop files on this page to upload them into this folder."},uploadsManagerUploadComplete:{id:"be.uploadsManagerUploadComplete",defaultMessage:"Completed"},uploadsManagerUploadFailed:{id:"be.uploadsManagerUploadFailed",defaultMessage:"Some Uploads Failed"},uploadsCancelButtonTooltip:{id:"be.uploadsCancelButtonTooltip",defaultMessage:"Cancel this upload"},uploadsRetryButtonTooltip:{id:"be.uploadsRetryButtonTooltip",defaultMessage:"Retry upload"},uploadsFileSizeLimitExceededErrorMessage:{id:"be.uploadsFileSizeLimitExceededErrorMessage",defaultMessage:"File size exceeds the folder owner’s file size limit"},uploadsFileSizeLimitExceededErrorMessageForUpgradeCta:{id:"be.uploadsFileSizeLimitExceededErrorMessageForUpgradeCta",defaultMessage:"This file exceeds your plan’s upload limit. Upgrade now to store larger files."},uploadsFileSizeLimitExceededUpgradeMessageForUpgradeCta:{id:"be.uploadsFileSizeLimitExceededUpgradeMessageForUpgradeCta",defaultMessage:"Upgrade"},uploadsStorageLimitErrorMessage:{id:"be.uploadsStorageLimitErrorMessage",defaultMessage:"Account storage limit reached"},uploadsPendingFolderSizeLimitErrorMessage:{id:"be.uploadsPendingFolderSizeLimitErrorMessage",defaultMessage:"Pending app folder size limit exceeded"},uploadsItemNameInUseErrorMessage:{id:"be.uploadsItemNameInUseErrorMessage",defaultMessage:"A file with this name already exists."},uploadsProvidedFolderNameInvalidMessage:{id:"be.uploadsProvidedFolderNameInvalidMessage",defaultMessage:"Provided folder name, {name}, could not be used to create a folder."},uploadsOneOrMoreChildFoldersFailedToUploadMessage:{id:"be.uploadsOneOrMoreChildFoldersFailedToUploadMessage",defaultMessage:"One or more child folders failed to upload."},uploadsPackageUploadErrorMessage:{id:"be.uploadsPackageUploadErrorMessage",defaultMessage:"Failed to upload package file. Please retry by saving as a single file."},uploadsDefaultErrorMessage:{id:"be.uploadsDefaultErrorMessage",defaultMessage:"Something went wrong with the upload. Please try again."},errorOccured:{id:"be.errorOccured",defaultMessage:"An error occurred"},editLabel:{id:"be.editLabel",defaultMessage:"Edit"},getVersionInfo:{id:"be.getVersionInfo",defaultMessage:"Get version information"},keywordsApplied:{id:"be.keywordsAppliedList",defaultMessage:"Keywords were applied"},keywordsList:{id:"be.keywordsList",defaultMessage:"Keywords: {words}"},noActivity:{id:"be.noActivity",defaultMessage:"No activity to show"},noActivityAnnotationPrompt:{id:"be.noActivityAnnotationPrompt",defaultMessage:"Hover over the preview and use the controls at the bottom to annotate the file."},noActivityCommentPrompt:{id:"be.noActivityCommentPrompt",defaultMessage:"Comment and @mention people to notify them."},versionDeleted:{id:"be.versionDeleted",defaultMessage:"{name} deleted v{version_number}"},versionPromoted:{id:"be.versionPromoted",defaultMessage:"{name} promoted v{version_promoted} to v{version_number}"},versionRestored:{id:"be.versionRestored",defaultMessage:"{name} restored v{version_number}"},versionMultipleUsersUploaded:{id:"be.versionMultipleUsersUploaded",defaultMessage:"{numberOfCollaborators} collaborators uploaded v{versions}"},versionUploadCollapsed:{id:"be.versionUploadCollapsed",defaultMessage:"{name} uploaded v{versions}"},versionUploaded:{id:"be.versionUploaded",defaultMessage:"{name} uploaded v{version_number}"},fileRequestDisplayName:{id:"be.fileRequestDisplayName",defaultMessage:"File Request"},defaultInlineErrorContentMessage:{id:"be.defaultInlineErrorContentMessage",defaultMessage:"Please try again later."},fileDescriptionInlineErrorTitleMessage:{id:"be.fileDescriptionInlineErrorTitleMessage",defaultMessage:"Something went wrong when saving the description."},defaultErrorMaskHeaderMessage:{id:"be.defaultErrorMaskHeaderMessage",defaultMessage:"We’re sorry, something went wrong."},defaultErrorMaskSubHeaderMessage:{id:"be.defaultErrorMaskSubHeaderMessage",defaultMessage:"Please refresh the page or try again later."},fileAccessStatsErrorHeaderMessage:{id:"be.fileAccessStatsErrorHeaderMessage",defaultMessage:"Something went wrong when fetching the access stats."},fileAccessStatsPermissionsError:{id:"be.accessStatsPermissionsError",defaultMessage:"Sorry, you do not have permission to see the access stats for this file."},fileClassificationErrorHeaderMessage:{id:"be.fileClassificationErrorHeaderMessage",defaultMessage:"Something went wrong when fetching classification."},currentUserErrorHeaderMessage:{id:"be.currentUserErrorHeaderMessage",defaultMessage:"Something went wrong when fetching the current user."},activityFeedItemApiError:{id:"be.activityFeedItemApiError",defaultMessage:"There was a problem loading the activity feed. Please refresh the page or try again later."},nextFile:{id:"be.nextFile",defaultMessage:"Next File"},nextPage:{id:"be.pagination.nextPage",defaultMessage:"Next Page"},pageStatus:{id:"be.pagination.pageStatus",defaultMessage:"{pageNumber} of {pageCount}"},previousFile:{id:"be.previousFile",defaultMessage:"Previous File"},previousPage:{id:"be.pagination.previousPage",defaultMessage:"Previous Page"},previousSegment:{id:"be.previousSegment",defaultMessage:"Previous Segment"},nextSegment:{id:"be.nextSegment",defaultMessage:"Next Segment"},transcriptEdit:{id:"be.transcriptEdit",defaultMessage:"Click any section to edit."},emptyOpenWithDescription:{id:"be.emptyOpenWithDescription",defaultMessage:"No integrations are available for this file"},errorOpenWithDescription:{id:"be.errorOpenWithDescription",defaultMessage:"Opening this file with other services is currently unavailable"},defaultOpenWithDescription:{id:"be.defaultOpenWithDescription",defaultMessage:"Open this file with a partner service"},executeIntegrationOpenWithErrorHeader:{id:"be.executeIntegrationOpenWithErrorHeader",defaultMessage:"We’re sorry, this integration is currently unavailable."},executeIntegrationOpenWithErrorSubHeader:{id:"be.executeIntegrationOpenWithErrorSubHeader",defaultMessage:"Please try again later."},boxToolsInstallMessage:{id:"be.boxToolsInstallMessage",defaultMessage:"Install {boxTools} to open this file on your desktop"},boxToolsBlacklistedError:{id:"be.boxEditBlacklistedError",defaultMessage:"This file cannot be opened locally"},drawAnnotation:{id:"be.drawAnnotation",defaultMessage:"Drawing annotation mode"},pointAnnotation:{id:"be.pointAnnotation",defaultMessage:"Point annotation mode"},expand:{id:"be.expand",defaultMessage:"Expand"},collapse:{id:"be.collapse",defaultMessage:"Collapse"},back:{id:"be.back",defaultMessage:"Back"},priorCollaborator:{id:"be.priorCollaborator",defaultMessage:"A Prior Collaborator"},moreOptions:{id:"be.moreOptions",defaultMessage:"More options"},bookmark:{id:"be.bookmark",defaultMessage:"Bookmark"},collaboratedFolder:{id:"be.collaboratedFolder",defaultMessage:"Collaborated Folder"},externalFolder:{id:"be.externalFolder",defaultMessage:"External Folder"},file:{id:"be.file",defaultMessage:"File"},folder:{id:"be.folder",defaultMessage:"Folder"},personalFolder:{id:"be.personalFolder",defaultMessage:"Personal Folder"}};var Wn=__webpack_require__(64633),Xn=__webpack_require__.n(Wn);const Kn=["children","title"];class Qn extends e.Component{constructor(...e){var t,r,n;super(...e),t=this,r="id",n=rt()("icon"),(r=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(r))in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n}render(){const t=this.props,{children:r,title:n}=t,i=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(t,Kn),o=`${this.id}-title`,a=Xn()(i,["role","aria-labelledby"]);return a.focusable="false",n?(a["aria-labelledby"]=o,a.role="img"):(a["aria-hidden"]="true",a.role="presentation"),e.createElement("svg",a,n?e.createElement("title",{id:o},n):null,r)}}const Yn=Qn,Jn=({className:t="",color:r="#979797",height:n=64,title:i,width:o=64})=>e.createElement(Yn,{className:`icon-sad-cloud ${t}`,height:n,title:i,viewBox:"0 0 1224 792",width:o},e.createElement("g",{transform:"translate(1 1)"},e.createElement("path",{className:"fill-color",d:"M273.7 788.9c-142 0-257.6-116.5-257.6-259.7 0-140.3 110.9-255 249-259.6 4.6-70.2 33.9-135.4 83.6-185.3C402.8 29.7 475-.3 551.9-.3c56.8 0 110.7 11.3 156 32.7 43.7 20.7 78.4 50.5 101.3 86.9 7.8-1.9 16.2-2.9 25.1-2.9 43.4 0 97.3 23.8 128.2 56.6l.2.2c23.9 26 41.2 59.1 48.9 93.1 4.1 18.3 5 35.1 2.8 49.2 15.8 3.5 32.3 9.8 48.9 18.7 25.1 13.5 49.9 32.7 71.7 55.4 48.9 51.2 77 113.7 77 171.7 0 61.1-23.4 118.4-66 161.3-42.5 42.8-99.1 66.4-159.5 66.4l-712.8-.1zm0-479.5c-120 0-217.6 98.6-217.6 219.7 0 121.2 97.6 219.7 217.6 219.7h712.8c49.6 0 96.2-19.4 131.1-54.6 35.1-35.3 54.4-82.6 54.4-133.1 0-47.7-24-100.2-65.9-144-37.8-39.5-84.7-65-119.6-65-7.9 0-15.1-4.6-18.3-11.9-3.2-7.2-1.9-15.6 3.4-21.5 2.8-3.1 6.8-18 1-43.8-6.1-26.9-20.4-54.1-39.3-74.8-23.2-24.6-66.7-43.9-99-43.9-9.9 0-18.3 1.7-24.8 5.2-4.7 2.5-10.3 3-15.3 1.4-5.1-1.6-9.3-5.2-11.8-9.9-18.2-35.5-49.9-64.7-91.6-84.4-40-18.9-88-28.9-138.9-28.9-66.2 0-128.3 25.8-175 72.8-46.8 47.1-72.6 109.9-72.6 176.9 0 11-9 20-20 20h-10.6z",fill:r}),e.createElement("path",{className:"fill-color",d:"M442.7 585.5c-2.9 0-5.9-.6-8.7-2-10-4.8-14.1-16.7-9.3-26.7 15.4-32 39.7-59.1 70.3-78.1 31-19.3 66.9-29.5 104-29.5 75.5 0 141.4 40 176.2 107.1 5.1 9.8 1.3 21.9-8.5 27-9.8 5.1-21.9 1.3-27-8.5-27.8-53.6-80.3-85.5-140.6-85.5-29.6 0-58.2 8.1-82.8 23.5-24.1 15.1-43.3 36.3-55.4 61.5-3.6 7-10.7 11.2-18.2 11.2z",fill:r}),e.createElement("circle",{className:"fill-color",cx:"496.3",cy:"351.5",fill:r,r:"32.1"}),e.createElement("circle",{className:"fill-color",cx:"688.9",cy:"351.5",fill:r,r:"32.1"}))),Zn={id:"boxui.errorMask.iconSadCloudText",defaultMessage:"Sad Box Cloud"},ei=({errorHeader:t,errorSubHeader:r})=>e.createElement("div",{className:"error-mask"},e.createElement(Jn,{className:"error-mask-sad-cloud",height:50,title:e.createElement(on,Zn)}),e.createElement("h4",null,t),e.createElement("h5",null,r)),ti=()=>e.createElement("section",{className:"be-default-error"},e.createElement(ei,{errorHeader:e.createElement(on,Gn.defaultErrorMaskHeaderMessage),errorSubHeader:e.createElement(on,Gn.defaultErrorMaskSubHeaderMessage)})),ri=["children","errorComponent"];function ni(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ii(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ni(Object(r),!0).forEach((function(t){oi(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ni(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function oi(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class ai extends e.Component{constructor(...e){super(...e),oi(this,"state",{}),oi(this,"handleError",((e,t,r={},n=this.props.errorOrigin)=>{if(!e||!t||!n)return;const i={type:"error",code:t,message:e.message,origin:n,context_info:ii({[Oe]:!0},r)};this.props.onError(i)}))}componentDidCatch(e,t){this.setState({error:e},(()=>{this.handleError(e,"unexpected_exception_error",ii({},t),this.props.errorOrigin)}))}render(){const t=this.props,{children:r,errorComponent:n}=t,i=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(t,ri),{error:o}=this.state;return o?e.createElement(n,{error:o}):e.cloneElement(r,ii(ii({},i),{},{onError:this.handleError}))}}oi(ai,"defaultProps",{errorComponent:ti,onError:it()});const si=ai;function li(){return li=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},li.apply(null,arguments)}var ci=__webpack_require__(19474),ui=__webpack_require__.n(ci);const di=class{constructor(){this.cache={}}set(e,t){this.cache[e]=t}merge(e,t){if(!this.has(e))throw new Error(`Key ${e} not in cache!`);this.set(e,ui()({},this.get(e),t))}unset(e){delete this.cache[e]}unsetAll(e){Object.keys(this.cache).forEach((t=>{t.startsWith(e)&&delete this.cache[t]}))}has(e){return{}.hasOwnProperty.call(this.cache,e)}get(e){if(this.has(e))return this.cache[e]}};var hi=__webpack_require__(76519),fi=__webpack_require__.n(hi),pi=__webpack_require__(25358),mi=__webpack_require__.n(pi);function bi(e){const t=e.lastModified||e.lastModifiedDate;if(t&&("string"==typeof t||"number"==typeof t||t instanceof Date)){const e=new Date(t);if(r=e,"[object Date]"===Object.prototype.toString.call(r)&&!Number.isNaN(r.getTime()))return function(e){return e.toISOString().replace(/\.[0-9]{3}/,"")}(e)}var r;return null}function gi(e,t,r){const n=e*r**2;return n>t?t:n}function yi(e,t,r=0,n=1){let i=0,o=r;return new Promise(((r,a)=>{!function s(l){setTimeout((()=>{i+=1,new Promise(((t,r)=>{e(t,r,a)})).then(r).catch((e=>{if(i<t)return o*=n,void s(o);a(e)}))}),l)}(o)}))}var vi=__webpack_require__(5026),wi=__webpack_require__.n(vi);function Ei(e,t){const r=window.crypto||window.msCrypto;return r!==window.msCrypto?r.subtle.digest(e,t):new Promise(((n,i)=>{if("SHA-1"===e)try{const e=wi().arrayBuffer(t);n(e)}catch(e){i(e)}else{const o=r.subtle.digest({name:e},t);o.oncomplete=e=>{n(e.target.result)},o.onerror=i}}))}function Si(e,t,r){"use asm";var n=new e.Int32Array(r);function i(e,t){e=e|0;t=t|0;var r=0,i=0,o=0,a=0,s=0,l=0,c=0,u=0,d=0,h=0,f=0,p=0,m=0,b=0;o=n[t+320>>2]|0;s=n[t+324>>2]|0;c=n[t+328>>2]|0;d=n[t+332>>2]|0;f=n[t+336>>2]|0;for(r=0;(r|0)<(e|0);r=r+64|0){a=o;l=s;u=c;h=d;p=f;for(i=0;(i|0)<64;i=i+4|0){b=n[r+i>>2]|0;m=((o<<5|o>>>27)+(s&c|~s&d)|0)+((b+f|0)+1518500249|0)|0;f=d;d=c;c=s<<30|s>>>2;s=o;o=m;n[e+i>>2]=b}for(i=e+64|0;(i|0)<(e+80|0);i=i+4|0){b=(n[i-12>>2]^n[i-32>>2]^n[i-56>>2]^n[i-64>>2])<<1|(n[i-12>>2]^n[i-32>>2]^n[i-56>>2]^n[i-64>>2])>>>31;m=((o<<5|o>>>27)+(s&c|~s&d)|0)+((b+f|0)+1518500249|0)|0;f=d;d=c;c=s<<30|s>>>2;s=o;o=m;n[i>>2]=b}for(i=e+80|0;(i|0)<(e+160|0);i=i+4|0){b=(n[i-12>>2]^n[i-32>>2]^n[i-56>>2]^n[i-64>>2])<<1|(n[i-12>>2]^n[i-32>>2]^n[i-56>>2]^n[i-64>>2])>>>31;m=((o<<5|o>>>27)+(s^c^d)|0)+((b+f|0)+1859775393|0)|0;f=d;d=c;c=s<<30|s>>>2;s=o;o=m;n[i>>2]=b}for(i=e+160|0;(i|0)<(e+240|0);i=i+4|0){b=(n[i-12>>2]^n[i-32>>2]^n[i-56>>2]^n[i-64>>2])<<1|(n[i-12>>2]^n[i-32>>2]^n[i-56>>2]^n[i-64>>2])>>>31;m=((o<<5|o>>>27)+(s&c|s&d|c&d)|0)+((b+f|0)-1894007588|0)|0;f=d;d=c;c=s<<30|s>>>2;s=o;o=m;n[i>>2]=b}for(i=e+240|0;(i|0)<(e+320|0);i=i+4|0){b=(n[i-12>>2]^n[i-32>>2]^n[i-56>>2]^n[i-64>>2])<<1|(n[i-12>>2]^n[i-32>>2]^n[i-56>>2]^n[i-64>>2])>>>31;m=((o<<5|o>>>27)+(s^c^d)|0)+((b+f|0)-899497514|0)|0;f=d;d=c;c=s<<30|s>>>2;s=o;o=m;n[i>>2]=b}o=o+a|0;s=s+l|0;c=c+u|0;d=d+h|0;f=f+p|0}n[t+320>>2]=o;n[t+324>>2]=s;n[t+328>>2]=c;n[t+332>>2]=d;n[t+336>>2]=f}return{hash:i}}const Ci=()=>{const e=new Blob([`const RushaCore = ${Si.toString()}`,";\n",'function Rusha(e){for(var r=function(e){if("string"==typeof e)return"string";if(e instanceof Array)return"array";if("undefined"!=typeof global&&global.Buffer&&global.Buffer.isBuffer(e))return"buffer";if(e instanceof ArrayBuffer)return"arraybuffer";if(e.buffer instanceof ArrayBuffer)return"view";if(e instanceof Blob)return"blob";throw new Error("Unsupported data type.")},n={fill:0},t=function(e){for(e+=9;e%64>0;e+=1);return e},a=function(e,r,n,t,a){var f,s=this,i=a%4,h=(t+i)%4,u=t-h;switch(i){case 0:e[a]=s[n+3];case 1:e[a+1-(i<<1)|0]=s[n+2];case 2:e[a+2-(i<<1)|0]=s[n+1];case 3:e[a+3-(i<<1)|0]=s[n]}if(!(t<h+i)){for(f=4-i;f<u;f=f+4|0)r[a+f>>2|0]=s[n+f]<<24|s[n+f+1]<<16|s[n+f+2]<<8|s[n+f+3];switch(h){case 3:e[a+u+1|0]=s[n+u+2];case 2:e[a+u+2|0]=s[n+u+1];case 1:e[a+u+3|0]=s[n+u]}}},f=function(e){switch(r(e)){case"string":return function(e,r,n,t,a){var f,s=this,i=a%4,h=(t+i)%4,u=t-h;switch(i){case 0:e[a]=s.charCodeAt(n+3);case 1:e[a+1-(i<<1)|0]=s.charCodeAt(n+2);case 2:e[a+2-(i<<1)|0]=s.charCodeAt(n+1);case 3:e[a+3-(i<<1)|0]=s.charCodeAt(n)}if(!(t<h+i)){for(f=4-i;f<u;f=f+4|0)r[a+f>>2]=s.charCodeAt(n+f)<<24|s.charCodeAt(n+f+1)<<16|s.charCodeAt(n+f+2)<<8|s.charCodeAt(n+f+3);switch(h){case 3:e[a+u+1|0]=s.charCodeAt(n+u+2);case 2:e[a+u+2|0]=s.charCodeAt(n+u+1);case 1:e[a+u+3|0]=s.charCodeAt(n+u)}}}.bind(e);case"array":case"buffer":return a.bind(e);case"arraybuffer":return a.bind(new Uint8Array(e));case"view":return a.bind(new Uint8Array(e.buffer,e.byteOffset,e.byteLength));case"blob":return function(e,r,n,t,a){var f,s=a%4,i=(t+s)%4,h=t-i,u=new Uint8Array(reader.readAsArrayBuffer(this.slice(n,n+t)));switch(s){case 0:e[a]=u[3];case 1:e[a+1-(s<<1)|0]=u[2];case 2:e[a+2-(s<<1)|0]=u[1];case 3:e[a+3-(s<<1)|0]=u[0]}if(!(t<i+s)){for(f=4-s;f<h;f=f+4|0)r[a+f>>2|0]=u[f]<<24|u[f+1]<<16|u[f+2]<<8|u[f+3];switch(i){case 3:e[a+h+1|0]=u[h+2];case 2:e[a+h+2|0]=u[h+1];case 1:e[a+h+3|0]=u[h]}}}.bind(e)}},s=new Array(256),i=0;i<256;i++)s[i]=(i<16?"0":"")+i.toString(16);var h=function(e){for(var r=new Uint8Array(e),n=new Array(e.byteLength),t=0;t<n.length;t++)n[t]=s[r[t]];return n.join("")};!function(e){if(e%64>0)throw new Error("Chunk size must be a multiple of 128 bit");n.offset=0,n.maxChunkLen=e,n.padMaxChunkLen=t(e),n.heap=new ArrayBuffer(function(e){var r;if(e<=65536)return 65536;if(e<16777216)for(r=1;r<e;r<<=1);else for(r=16777216;r<e;r+=16777216);return r}(n.padMaxChunkLen+320+20)),n.h32=new Int32Array(n.heap),n.h8=new Int8Array(n.heap),n.core=new RushaCore({Int32Array:Int32Array,DataView:DataView},{},n.heap),n.buffer=null}(e||65536);var u=function(e,r){n.offset=0;var t=new Int32Array(e,r+320,5);t[0]=1732584193,t[1]=-271733879,t[2]=-1732584194,t[3]=271733878,t[4]=-1009589776},c=function(e,r){var a,f,s,i=t(e),h=new Int32Array(n.heap,0,i>>2);return function(e,r){var n=new Uint8Array(e.buffer),t=r%4,a=r-t;switch(t){case 0:n[a+3]=0;case 1:n[a+2]=0;case 2:n[a+1]=0;case 3:n[a+0]=0}for(var f=1+(r>>2);f<e.length;f++)e[f]=0}(h,e),s=r,(a=h)[(f=e)>>2]|=128<<24-(f%4<<3),a[14+(2+(f>>2)&-16)]=s/(1<<29)|0,a[15+(2+(f>>2)&-16)]=s<<3,i},o=function(e,r,t,a){f(e)(n.h8,n.h32,r,t,a||0)},d=function(e,r,t,a,f){var s=t;o(e,r,t),f&&(s=c(t,a)),n.core.hash(s,n.padMaxChunkLen)},y=function(e,r){var n=new Int32Array(e,r+320,5),t=new Int32Array(5),a=new DataView(t.buffer);return a.setInt32(0,n[0],!1),a.setInt32(4,n[1],!1),a.setInt32(8,n[2],!1),a.setInt32(12,n[3],!1),a.setInt32(16,n[4],!1),t},w=this.rawDigest=function(e){var r=e.byteLength||e.length||e.size||0;u(n.heap,n.padMaxChunkLen);var t=0,a=n.maxChunkLen;for(t=0;r>t+a;t+=a)d(e,t,a,r,!1);return d(e,t,r-t,r,!0),y(n.heap,n.padMaxChunkLen)};this.digest=this.digestFromString=this.digestFromBuffer=this.digestFromArrayBuffer=function(e){return h(w(e).buffer)},this.resetState=function(){return u(n.heap,n.padMaxChunkLen),this},this.append=function(e){var r,t=0,a=e.byteLength||e.length||e.size||0,f=n.offset%n.maxChunkLen;for(n.offset+=a;t<a;)r=Math.min(a-t,n.maxChunkLen-f),o(e,t,r,f),t+=r,(f+=r)===n.maxChunkLen&&(n.core.hash(n.maxChunkLen,n.padMaxChunkLen),f=0);return this},this.getState=function(){var e;if(n.offset%n.maxChunkLen)e=n.heap.slice(0);else{var r=new Int32Array(n.heap,n.padMaxChunkLen+320,5);e=r.buffer.slice(r.byteOffset,r.byteOffset+r.byteLength)}return{offset:n.offset,heap:e}},this.setState=function(e){(n.offset=e.offset,20===e.heap.byteLength)?new Int32Array(n.heap,n.padMaxChunkLen+320,5).set(new Int32Array(e.heap)):n.h32.set(new Int32Array(e.heap));return this};var p=this.rawEnd=function(){var e=n.offset,r=e%n.maxChunkLen,t=c(r,e);n.core.hash(t,n.padMaxChunkLen);var a=y(n.heap,n.padMaxChunkLen);return u(n.heap,n.padMaxChunkLen),a};this.end=function(){return h(p().buffer)}}',";\n","var setupWorker = ",function(){const e=new Rusha;e.resetState();let t=0;self.onmessage=r=>{const{data:n}=r,{part:i,fileSize:o,partContents:a}=n,s=Date.now();try{if(i.offset!==t)throw new Error("Out of order parts given to worker");if(e.append(a),self.postMessage({type:"partDone",part:n.part,duration:Date.now()-s,partContents:a},[a]),t+=i.size,i.offset+i.size===o){const t=e.end();self.postMessage({type:"done",sha1:t})}}catch(e){const t={type:"error",name:e.name,message:e.message,part:i};self.postMessage(t)}}}.toString(),";\n","setupWorker();"],{type:"text/javascript"}),t=(window.URL||window.webkitURL).createObjectURL(e),r=new Worker(t);return r.oldTerminate=r.terminate,r.terminate=()=>{(window.URL||window.webkitURL).revokeObjectURL(t),r.oldTerminate()},r};var ki=__webpack_require__(84708),xi=__webpack_require__.n(ki),Pi=__webpack_require__(53095),_i=__webpack_require__.n(Pi),Oi=__webpack_require__(69849),Ai=__webpack_require__.n(Oi),Ti=__webpack_require__(59315),Ii=__webpack_require__.n(Ti);const Mi=new Error("Bad id or auth token. ID should be typed id like file_123 or folder_123! Token should be a string or function.");class Di{static async getToken(e,t){if(null!=t&&"string"!=typeof t&&"function"!=typeof t||!e.startsWith(b)&&!e.startsWith(g))throw Mi;if(!t||"string"==typeof t)return t;const r=await t(e);if(!r||"string"==typeof r||"object"==typeof r&&(r.read||r.write))return r;throw Mi}static async getReadToken(e,t){const r=await Di.getToken(e,t);return r&&"object"==typeof r?r.read:r}static async getReadTokens(e,t){const r=Array.isArray(e)?e:[e],n=r.map((e=>Di.getReadToken(e,t))),i=await Promise.all(n),o={};return i.forEach(((e,t)=>{o[r[t]]=e})),Promise.resolve(o)}static async getWriteToken(e,t){const r=await Di.getToken(e,t);return r&&"object"==typeof r?r.write||r.read:r}static async cacheTokens(e,t){if(null!=t&&"string"!=typeof t&&"function"!=typeof t||!e.every((e=>e.startsWith(b)||e.startsWith(g))))throw Mi;return"function"==typeof t&&await t(e),Promise.resolve()}}const Ri=Di;function Fi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Li(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ji=[De,je,"HEAD"].map(Ii()),Ni=class{constructor({id:e,clientName:t,language:r,token:n,version:i,sharedLink:o,sharedLinkPassword:a,responseInterceptor:s,requestInterceptor:l,retryableStatusCodes:c=[Ne],shouldRetry:u=!0}={}){Li(this,"retryCount",0),Li(this,"errorInterceptor",(e=>{if(this.shouldRetryRequest(e)){this.retryCount+=1;const t=this.getExponentialRetryTimeoutInMs(this.retryCount);return new Promise(((r,n)=>{this.retryTimeout=setTimeout((()=>{this.axios(e.config).then(r,n)}),t)}))}const t=mi()(e,"response.data")||e;return this.responseInterceptor(t),Promise.reject(e)})),this.clientName=t,this.id=e,this.language=r,this.responseInterceptor=s||this.defaultResponseInterceptor,this.retryableStatusCodes=c,this.sharedLink=o,this.sharedLinkPassword=a,this.shouldRetry=u,this.token=n,this.version=i,this.axios=_i().create(),this.axiosSource=_i().CancelToken.source(),this.axios.interceptors.response.use(this.responseInterceptor,this.errorInterceptor),"function"==typeof l&&this.axios.interceptors.request.use(l)}defaultResponseInterceptor(e){return e}shouldRetryRequest(e){if(!this.shouldRetry||this.retryCount>=3)return!1;const{response:t,request:r,config:n}=e,i=mi()(t,"status"),o=mi()(n,"method"),a=r&&!t,s=i===Ne,l=Ai()(this.retryableStatusCodes,i)&&Ai()(ji,o);return a||s||l}getExponentialRetryTimeoutInMs(e){return 2**(e-1)*1e3+Math.ceil(1e3*Math.random())}getParsedUrl(e){const t=document.createElement("a");return t.href=e,{api:e.replace(`${t.origin}/2.0`,""),host:t.host,hostname:t.hostname,pathname:t.pathname,origin:t.origin,protocol:t.protocol,hash:t.hash,port:t.port}}async getHeaders(e,t={}){const r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Fi(Object(r),!0).forEach((function(t){Li(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fi(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({Accept:"application/json",[S]:"application/json"},t);this.language&&!r[C]&&(r[C]=this.language),this.sharedLink&&(r.BoxApi=`shared_link=${this.sharedLink}`,this.sharedLinkPassword&&(r.BoxApi=`${r.BoxApi}&shared_link_password=${this.sharedLinkPassword}`)),this.clientName&&(r["X-Box-Client-Name"]=this.clientName),this.version&&(r["X-Box-Client-Version"]=this.version);const n=e||this.id||"",i=await Ri.getWriteToken(n,this.token);return i&&(r.Authorization=`Bearer ${i}`),r}get({url:e,id:t,params:r={},headers:n={}}){return this.getHeaders(t,n).then((t=>this.axios.get(e,{cancelToken:this.axiosSource.token,params:r,headers:t,parsedUrl:this.getParsedUrl(e)})))}post({url:e,id:t,data:r,params:n,headers:i={},method:o=Re}){return this.getHeaders(t,i).then((t=>this.axios({url:e,data:r,params:n,method:o,parsedUrl:this.getParsedUrl(e),headers:t})))}put({url:e,id:t,data:r,params:n,headers:i={}}){return this.post({id:t,url:e,data:r,params:n,headers:i,method:Fe})}delete({url:e,id:t,data:r={},headers:n={}}){return this.post({id:t,url:e,data:r,headers:n,method:Le})}options({id:e,url:t,data:r,headers:n={},successHandler:i,errorHandler:o}){return this.getHeaders(e,n).then((e=>this.axios({url:t,data:r,method:je,headers:e}).then(i).catch(o))).catch(o)}uploadFile({id:e,url:t,data:r,headers:n={},method:i=Re,successHandler:o,errorHandler:a,progressHandler:s,withIdleTimeout:l=!1,idleTimeoutDuration:c=12e4,idleTimeoutHandler:u}){return this.getHeaders(e,n).then((e=>{let d,h=s;if(l){const e=()=>{this.abort(),u&&u()};d=setTimeout(e,c),h=t=>{clearTimeout(d),d=setTimeout(e,c),s(t)}}this.axios({url:t,data:r,transformRequest:(e,t)=>{if(delete t.Accept,delete t[S],n[S]&&(t[S]=n[S]),e&&!(e instanceof Blob)&&e.attributes){const t=new FormData;return Object.keys(e).forEach((r=>{t.append(r,e[r])})),t}return e},method:i,headers:e,onUploadProgress:h,cancelToken:this.axiosSource.token}).then((e=>{clearTimeout(d),o(e)})).catch((e=>{clearTimeout(d),a(e)}))})).catch(a)}abort(){this.retryTimeout&&clearTimeout(this.retryTimeout),this.axiosSource&&(this.axiosSource.cancel(),this.axiosSource=_i().CancelToken.source())}},Ui=class{constructor(){this.memoryStore=new di;try{this.localStorage=window.localStorage,this.isLocalStorageAvailable=this.canUseLocalStorage()}catch(e){this.isLocalStorageAvailable=!1}}buildKey(e){return`localStore/0/${e}`}canUseLocalStorage(){if(!this.localStorage)return!1;try{return this.localStorage.setItem(this.buildKey("TestKey"),"testValue"),this.localStorage.removeItem(this.buildKey("TestKey")),!0}catch(e){return!1}}setItem(e,t){if(this.isLocalStorageAvailable)try{this.localStorage.setItem(this.buildKey(e),JSON.stringify(t))}catch(e){}else this.memoryStore.set(e,t)}getItem(e){if(!this.isLocalStorageAvailable)return this.memoryStore.get(e);try{const t=this.localStorage.getItem(this.buildKey(e));return t?JSON.parse(t):null}catch(e){return null}}removeItem(e){if(this.isLocalStorageAvailable)try{this.localStorage.removeItem(this.buildKey(e))}catch(e){}else this.memoryStore.unset(e)}},Hi="bcu-uploads-reachability-cached-results",Bi=class{constructor(){this.localStore=new Ui,this.cachedResults={},this.populateCachedResultsWithValidLocalStoreValues(),this.saveCachedResultsToLocalStore()}getCachedResultsFromLocalStore(){return this.localStore.getItem(Hi)}saveCachedResultsToLocalStore(){this.localStore.setItem(Hi,this.cachedResults)}isCachedHostValid(e){return e.expirationTimestampMS>Date.now()}getCachedResult(e){if(e in this.cachedResults){const t=this.cachedResults[e];if(this.isCachedHostValid(t))return t}return null}updateCachedResult(e,t){this.cachedResults[e]={isReachable:t,expirationTimestampMS:Date.now()+864e5},this.saveCachedResultsToLocalStore()}populateCachedResultsWithValidLocalStoreValues(){const e=this.getCachedResultsFromLocalStore();e&&Object.keys(e).forEach((t=>{const r=e[t];this.isCachedHostValid(r)&&(this.cachedResults[t]=r)}))}getUnreachableHostsUrls(){const e=[];return this.cachedResults?(Object.keys(this.cachedResults).forEach((t=>{const r=this.cachedResults[t];this.isCachedHostValid(r)&&!r.isReachable&&e.push(t)})),e):e}async isReachable(e){if(e===`${ce}/`||e===`${ue}/`)return!0;const t=this.getCachedResult(e);if(t)return t.isReachable;const r=await this.makeReachabilityRequest(e);return this.updateCachedResult(e,r),r}async makeReachabilityRequest(e){const t=`${e}html5?reachability_test=run`,r={[S]:"application/x-www-form-urlencoded; charset=UTF-8","X-File-Name":"reachability_pseudofile.txt","X-File-Size":"1234"};try{await _i().post(t,"reachability_file=test_file_data",{headers:r})}catch(e){return!1}return!0}};function zi(e){return`${g}${e}`}function Vi(){return new Error("Bad box item!")}function $i(){return new Error("Insufficient Permissions!")}function qi(){return new Error("Bad box user!")}function Gi(){return new Error("Missing text or status!")}function Wi(e){return e===Ne||401===e||409===e||e>=500}function Xi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ki(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Xi(Object(r),!0).forEach((function(t){Qi(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xi(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Qi(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Yi=class{constructor(e){Qi(this,"successHandler",(e=>{this.isDestroyed()||"function"!=typeof this.successCallback||this.successCallback(e)})),Qi(this,"errorHandler",(e=>{if(!this.isDestroyed()&&"function"==typeof this.errorCallback){const{response:t}=e;t&&t.data?this.errorCallback(t.data,this.errorCode):this.errorCallback(e,this.errorCode)}})),this.cache=e.cache||new di,this.apiHost=e.apiHost||le,this.uploadHost=e.uploadHost||ce,this.options=Ki(Ki({},e),{},{apiHost:this.apiHost,uploadHost:this.uploadHost,cache:this.cache}),this.xhr=new Ni(this.options),this.destroyed=!1,this.consoleLog=e.consoleLog&&window.console&&window.console.log||it(),this.consoleError=e.consoleError&&window.console&&window.console.error||it(),this.uploadsReachability=new Bi}destroy(){this.xhr.abort(),this.destroyed=!0}isDestroyed(){return this.destroyed}checkApiCallValidity(e,t,r){if(!r||!t)throw Vi();if(!t[e])throw $i()}getBaseApiUrl(){const e=this.apiHost.endsWith("/")?"2.0":"/2.0";return`${this.apiHost}${e}`}getBaseUploadUrl(){const e=this.uploadHost.endsWith("/")?"api/2.0":"/api/2.0";return`${this.uploadHost}${e}`}getCache(){return this.cache}getUrl(e){throw new Error("Implement me!")}format(e){throw new Error("Implement me!")}get({id:e,successCallback:t,errorCallback:r,requestData:n,url:i}){const o=i||this.getUrl(e);return this.makeRequest(De,e,o,t,r,n)}post({id:e,url:t,data:r,successCallback:n,errorCallback:i}){return this.makeRequest(Re,e,t,n,i,r)}put({id:e,url:t,data:r,successCallback:n,errorCallback:i}){return this.makeRequest(Fe,e,t,n,i,r)}delete({id:e,url:t,data:r,successCallback:n,errorCallback:i}){return this.makeRequest(Le,e,t,n,i,r)}async makeRequest(e,t,r,n,i,o={}){if(this.isDestroyed())return;this.successCallback=n,this.errorCallback=i;const a=this.xhr[e.toLowerCase()].bind(this.xhr);try{const{data:e}=await a(Ki({id:zi(t),url:r},o));this.successHandler(e)}catch(e){this.errorHandler(e)}}};function Ji(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Zi=class extends Yi{constructor(...e){super(...e),Ji(this,"retryCount",0),Ji(this,"reachabilityRetryCount",0),Ji(this,"isUploadFallbackLogicEnabled",!1),Ji(this,"makePreflightRequest",(()=>{if(this.isDestroyed())return;let e=`${this.getBaseApiUrl()}/files/content`;if(this.fileId&&(e=e.replace("content",`${this.fileId}/content`)),this.isUploadFallbackLogicEnabled){const t=this.uploadsReachability.getUnreachableHostsUrls();0!==t.length&&(e+=`?unreachable_hosts=${t.join(",")}`)}const{size:t,name:r}=this.file,n={name:this.fileName||r,parent:{id:this.folderId},description:this.fileDescription,size:t};this.xhr.options({url:e,data:n,successHandler:e=>{this.isUploadFallbackLogicEnabled?this.preflightSuccessReachabilityHandler(e):this.preflightSuccessHandler(e)},errorHandler:this.preflightErrorHandler})})),Ji(this,"preflightSuccessReachabilityHandler",(async({data:e})=>{if(this.isDestroyed())return;const{upload_url:t}=e;if(!t)return void this.preflightSuccessHandler({data:e});const r=this.getUploadHostFromUrl(t);r!==`${ce}/`&&r!==`${ue}/`&&"https://upload.app.box-gov.com/"!==r?await this.uploadsReachability.isReachable(r)?this.preflightSuccessHandler({data:e}):this.reachabilityRetryCount>=10?this.preflightSuccessHandler({data:{}}):(this.reachabilityRetryCount+=1,this.makePreflightRequest()):this.preflightSuccessHandler({data:e})})),Ji(this,"preflightErrorHandler",(e=>{if(this.isDestroyed())return;this.fileName=this.file?this.file.name:"";let t=e;const{response:r}=e;if(r&&r.data&&(t=r.data),this.retryCount>=5)this.errorCallback(t);else if(t&&409===t.status){if(this.overwrite){const e=t.context_info.conflicts.id;!this.fileId&&e&&(this.fileId=e)}else if(this.conflictCallback)this.fileName=this.conflictCallback(this.fileName);else{const e=this.fileName.substr(this.fileName.lastIndexOf("."))||"";this.fileName=`${this.fileName.substr(0,this.fileName.lastIndexOf("."))}-${Date.now()}${e}`}this.makePreflightRequest(),this.retryCount+=1}else if(!t||429!==t.status&&"too_many_requests"!==t.code)t&&(t.status||"Failed to fetch"===t.message)&&"function"==typeof this.errorCallback?this.errorCallback(t):(this.retryTimeout=setTimeout(this.makePreflightRequest,2**this.retryCount*Ie),this.retryCount+=1);else{let e=Te;if(t.headers){const r=parseInt(t.headers["retry-after"]||t.headers.get("Retry-After"),10);Number.isNaN(r)||(e=r*Ie)}this.retryTimeout=setTimeout(this.makePreflightRequest,e),this.retryCount+=1}}))}readFile(e,t){return new Promise(((r,n)=>{e.readAsArrayBuffer(t),e.onload=()=>{r({buffer:e.result,readCompleteTimestamp:Date.now()})},e.onerror=n}))}getUploadHostFromUrl(e){const t=e.split("/");return`${t[0]}//${t[2]}/`}};function eo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function to(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?eo(Object(r),!0).forEach((function(t){ro(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eo(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ro(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const no={digestReadahead:5,initialRetryDelayMs:5e3,maxRetryDelayMs:6e4,parallelism:4,requestTimeoutMs:12e4,retries:5},io=class extends Zi{constructor(e,t,r){super(to(to({},e),{},{shouldRetry:!1})),ro(this,"logEvent",((e,t)=>{const r={event_type:e};return t&&(r.event_info=t),this.xhr.post({url:this.sessionEndpoints.logEvent,data:r})})),this.config=r||no,this.sessionEndpoints=t}};function oo(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ao=class extends io{constructor(e,t,r,n,i,o,a,s,l,c,u,d){super(e,a,s),oo(this,"toJSON",(()=>JSON.stringify({index:this.index,offset:this.offset,partSize:this.partSize,state:this.state,uploadedBytes:this.uploadedBytes,numUploadRetriesPerformed:this.numUploadRetriesPerformed,numDigestRetriesPerformed:this.numDigestRetriesPerformed,sha1:this.sha1,timing:this.timing}))),oo(this,"getPart",(()=>this.data.part||{})),oo(this,"upload",(()=>{if(this.isDestroyedOrPaused())return;if(!this.sha1)throw new Error("Part SHA-1 unavailable");if(!this.blob)throw new Error("Part blob unavailable");const e={documentHidden:document.hidden,digest_retries:this.numDigestRetriesPerformed,timing:this.timing,parts_uploading:this.getNumPartsUploading()},t={"Content-Type":"application/octet-stream",Digest:`sha=${this.sha1}`,"Content-Range":`bytes ${this.offset}-${this.rangeEnd}/${this.fileSize}`,"X-Box-Client-Event-Info":JSON.stringify(e)};this.state=2,this.startTimestamp=Date.now(),this.xhr.uploadFile({url:this.sessionEndpoints.uploadPart,data:this.blob,headers:t,method:Fe,successHandler:this.uploadSuccessHandler,errorHandler:this.uploadErrorHandler,progressHandler:this.uploadProgressHandler,withIdleTimeout:!0,idleTimeoutDuration:this.config.requestTimeoutMs})})),oo(this,"uploadSuccessHandler",(({data:e})=>{this.isDestroyedOrPaused()||(this.state=3,this.consoleLog(`Upload completed: ${this.toJSON()}.`),this.data=e,this.blob=null,this.timing.uploadTime=Date.now()-this.startTimestamp,this.onSuccess(this),this.uploadedBytes=this.partSize)})),oo(this,"uploadProgressHandler",(e=>{if(this.isDestroyedOrPaused())return;const t=parseInt(e.loaded,10),r=this.uploadedBytes;this.uploadedBytes=t,this.onProgress(r,t)})),oo(this,"uploadErrorHandler",(async e=>{if(this.isDestroyedOrPaused())return;const t=mi()(this.xhr,"xhr.readyState",null),r=mi()(this.xhr,"xhr.statusText","");this.consoleLog(`Upload failure ${e.message} for part ${this.toJSON()}. XHR state: ${t}.`);const n={message:e.message,part:{uploadedBytes:this.uploadedBytes,id:this.id,index:this.index,offset:this.offset},xhr_ready_state:t,xhr_status_text:r},i=JSON.stringify(n);if(this.sessionEndpoints.logEvent?yi(((e,t)=>{this.logEvent("part_failure",i).then(e).catch(t)}),this.config.retries,this.config.initialRetryDelayMs).catch((e=>this.consoleLog(`Failure in logEvent: ${e.message}`))):this.consoleLog("logEvent endpoint not found"),this.numUploadRetriesPerformed>=this.config.retries)return void this.onError(e,i);const o=gi(this.config.initialRetryDelayMs,this.config.maxRetryDelayMs,this.numUploadRetriesPerformed);this.numUploadRetriesPerformed+=1,this.consoleLog(`Retrying uploading part ${this.toJSON()} in ${o} ms`),this.retryTimeout=setTimeout(this.retryUpload,o)})),oo(this,"retryUpload",(async()=>{if(!this.isDestroyedOrPaused())try{const e=await this.listParts(this.index,1);if(e&&1===e.length&&e[0].offset===this.offset&&e[0].part_id)return this.consoleLog(`Part ${this.toJSON()} is available on server. Not re-uploading.`),this.id=e[0].part_id,void this.uploadSuccessHandler({data:{part:e[0]}});throw this.consoleLog(`Part ${this.toJSON()} is not available on server. Re-uploading.`),new Error("Part not found on the server")}catch(e){const{response:t}=e;t&&t.status&&this.consoleLog(`Error ${t.status} while listing part ${this.toJSON()}. Re-uploading.`),this.numUploadRetriesPerformed+=1,this.upload()}})),oo(this,"listParts",(async(e,t)=>{const r={offset:e,limit:t},n=function(e,t){if(!t)return e;const r=new(xi())(e);return Object.keys(t).forEach((e=>{const n=t[e];n&&(r.hasQueryParam(e)?r.replaceQueryParam(e,n):r.addQueryParam(e,n))})),r.toString()}(this.sessionEndpoints.listParts,r);return(await this.xhr.get({url:n})).data.entries})),this.index=t,this.numDigestRetriesPerformed=0,this.numUploadRetriesPerformed=0,this.offset=r,this.partSize=n,this.fileSize=i,this.state=0,this.timing={},this.uploadedBytes=0,this.data={},this.config=s,this.rangeEnd=r+n-1,this.rangeEnd>i-1&&(this.rangeEnd=i-1),this.isPaused=!1,this.onSuccess=c||it(),this.onError=d||it(),this.onProgress=u||it(),this.getNumPartsUploading=l}cancel(){clearTimeout(this.retryTimeout),this.blob=null,this.data={},this.destroy()}pause(){clearTimeout(this.retryTimeout),this.isPaused=!0,this.state=1,this.xhr.abort()}unpause(){this.isPaused=!1,this.state=2,this.retryUpload()}reset(){this.numUploadRetriesPerformed=0,this.timing={},this.uploadedBytes=0}isDestroyedOrPaused(){return this.isDestroyed()||this.isPaused}};function so(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function lo(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?so(Object(r),!0).forEach((function(t){co(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):so(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function co(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const uo=class extends io{constructor(e,t){super(e,{createSession:null,uploadPart:null,listParts:null,commit:null,abort:null,logEvent:null},t),co(this,"getBaseUploadUrlFromPreflightResponse",(({data:e})=>{if(!e||!e.upload_url)return this.getBaseUploadUrl();const t=e.upload_url.split("/");return this.uploadHost=`${t[0]}//${t[2]}`,this.getBaseUploadUrl()})),co(this,"preflightSuccessHandler",(async e=>{if(this.isDestroyed())return;let t=`${this.getBaseUploadUrlFromPreflightResponse(e)}/files/upload_sessions`;t.includes("fupload-ec2")&&(this.config.parallelism=1);const r={file_size:this.file.size,file_name:this.fileName};this.fileId?t=t.replace("upload_sessions",`${this.fileId}/upload_sessions`):r.folder_id=this.folderId;try{const e=await this.xhr.post({url:t,data:r});this.createSessionSuccessHandler(e.data)}catch(e){const t=this.getErrorResponse(e);if(t&&t.status>=500&&t.status<600)return void this.createSessionErrorHandler(e);if(t&&409===t.status&&"session_conflict"===t.code)return void this.createSessionSuccessHandler(t.context_info.session);if(t&&403===t.status&&"storage_limit_exceeded"===t.code||403===t.status&&"access_denied_insufficient_permissions"===t.code)return void this.errorCallback(t);if(t&&409===t.status)return this.resolveConflict(t),void this.createSessionRetry();this.sessionErrorHandler(e,"create_session_misc_error",JSON.stringify(e))}})),co(this,"createSessionErrorHandler",(e=>{this.isDestroyed()||(this.createSessionNumRetriesPerformed<this.config.retries?this.createSessionRetry():(this.consoleLog("Too many create session failures, failing upload"),this.sessionErrorHandler(e,"create_session_retries_exceeded",JSON.stringify(e))))})),co(this,"getSessionInfo",(async()=>{const e=`${this.getBaseUploadUrl()}/files/upload_sessions/${this.sessionId}`;try{const t=await this.xhr.get({url:e});this.getSessionSuccessHandler(t.data)}catch(e){this.getSessionErrorHandler(e)}})),co(this,"partUploadSuccessHandler",(e=>{this.numPartsUploading-=1,this.numPartsUploaded+=1,this.updateProgress(e.uploadedBytes,this.partSize),this.processNextParts()})),co(this,"partUploadErrorHandler",((e,t)=>{if(this.sessionErrorHandler(e,"part_upload_retries_exceeded",t),this.isResumableUploadsEnabled){let e=this.firstUnuploadedPartIndex;for(;this.numPartsUploading>0;){const t=this.parts[e];t&&2===t.state&&(t.reset(),t.pause(),this.numPartsUploading-=1,this.numPartsDigestReady+=1),e+=1}}})),co(this,"updateProgress",((e,t)=>{this.isDestroyed()||(this.totalUploadedBytes+=t-e,this.progressCallback({loaded:this.totalUploadedBytes,total:this.file.size}))})),co(this,"processNextParts",(()=>{if(!this.failSessionIfFileChangeDetected())if(this.numPartsUploaded===this.parts.length&&this.fileSha1)this.commitSession();else{for(this.updateFirstUnuploadedPartIndex();this.canStartMorePartUploads();)this.uploadNextPart();this.shouldComputeDigestForNextPart()&&this.computeDigestForNextPart()}})),co(this,"onWorkerMessage",(e=>{if(this.isDestroyed())return;const{data:t}=e;if("partDone"===t.type){const{part:e}=t;this.parts[e.index].timing.fileDigestTime=t.duration,this.processNextParts()}else"done"===t.type?(this.fileSha1=(r=t.sha1,btoa(String.fromCharCode.apply(null,r.replace(/\r|\n/g,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")))),this.sha1Worker.terminate(),this.processNextParts()):"error"===t.type&&this.sessionErrorHandler(null,"web_worker_error",JSON.stringify(t));var r})),co(this,"sendPartToWorker",((e,t)=>{if(this.isDestroyed())return;const r={index:e.index,offset:e.offset,size:e.partSize};this.sha1Worker.postMessage({part:r,fileSize:this.file.size,partContents:t},[t]),this.consoleLog(`Part sent to worker: ${JSON.stringify(e)}.}`)})),co(this,"onPartDigestError",((e,t)=>{if(this.consoleLog(`Error computing digest for part ${JSON.stringify(t)}: ${JSON.stringify(e)}`),"NotFoundError"===e.name||"NOT_FOUND_ERR"===e.name)return void this.sessionErrorHandler(null,"file_reader_received_not_found_error",JSON.stringify(e));if(this.failSessionIfFileChangeDetected())return;if(t.numDigestRetriesPerformed>=this.config.retries)return void this.sessionErrorHandler(null,"part_digest_retries_exceeded",JSON.stringify(e));const r=gi(this.config.initialRetryDelayMs,this.config.maxRetryDelayMs,t.numDigestRetriesPerformed);t.numDigestRetriesPerformed+=1,this.consoleLog(`Retrying digest work for part ${JSON.stringify(t)} in ${r} ms`),setTimeout((()=>{this.computeDigestForPart(t)}),r)})),co(this,"commitSession",(()=>{if(this.isDestroyed())return;const e={totalPartReadTime:0,totalPartDigestTime:0,totalFileDigestTime:0,totalPartUploadTime:0},t={parts:this.parts.map((t=>(e.totalPartReadTime+=t.timing.readTime,e.totalPartDigestTime+=t.timing.subtleCryptoTime,e.totalFileDigestTime+=t.timing.fileDigestTime,e.totalPartUploadTime+=t.timing.uploadTime,t.getPart()))).sort(((e,t)=>e.offset-t.offset)),attributes:{}},r=bi(this.file);r&&(t.attributes.content_modified_at=r),this.fileDescription&&(t.attributes.description=this.fileDescription);const n={avg_part_read_time:Math.round(e.totalPartReadTime/this.parts.length),avg_part_digest_time:Math.round(e.totalPartDigestTime/this.parts.length),avg_file_digest_time:Math.round(e.totalFileDigestTime/this.parts.length),avg_part_upload_time:Math.round(e.totalPartUploadTime/this.parts.length)},i={Digest:`sha=${this.fileSha1}`,"X-Box-Client-Event-Info":JSON.stringify(n)};this.xhr.post({url:this.sessionEndpoints.commit,data:t,headers:i}).then(this.commitSessionSuccessHandler).catch(this.commitSessionErrorHandler)})),co(this,"commitSessionSuccessHandler",(e=>{if(this.isDestroyed())return;const{status:t,data:r}=e;if(202===t)return void this.commitSessionRetry(e);let{entries:n}=r;!n&&r.id&&(n=[r]),this.destroy(),this.successCallback&&n&&this.successCallback(n)})),co(this,"commitSessionErrorHandler",(e=>{if(this.isDestroyed())return;const{response:t}=e;if(t)return this.commitRetryCount>=this.config.retries?(this.consoleLog("Too many commit failures, failing upload"),void this.sessionErrorHandler(e,"commit_retries_exceeded",JSON.stringify(e))):void this.commitSessionRetry(t);this.consoleError(e)})),co(this,"getNumPartsUploading",(()=>this.numPartsUploading)),this.parts=[],this.options=e,this.fileSha1=null,this.totalUploadedBytes=0,this.numPartsNotStarted=0,this.numPartsDigestComputing=0,this.numPartsDigestReady=0,this.numPartsUploading=0,this.numPartsUploaded=0,this.firstUnuploadedPartIndex=0,this.createSessionNumRetriesPerformed=0,this.partSize=0,this.commitRetryCount=0,this.clientId=null,this.isResumableUploadsEnabled=!1,this.numResumeRetries=0}reset(){this.parts=[],this.fileSha1=null,this.totalUploadedBytes=0,this.numPartsNotStarted=0,this.numPartsDigestComputing=0,this.numPartsDigestReady=0,this.numPartsUploading=0,this.numPartsUploaded=0,this.firstUnuploadedPartIndex=0,this.createSessionNumRetriesPerformed=0,this.partSize=0,this.commitRetryCount=0,this.numResumeRetries=0}setFileInfo({file:e,folderId:t,errorCallback:r,progressCallback:n,successCallback:i,overwrite:o=!0,conflictCallback:a,fileId:s}){this.file=e,this.fileName=this.file.name,this.folderId=t,this.errorCallback=r||it(),this.progressCallback=n||it(),this.successCallback=i||it(),this.overwrite=o,this.conflictCallback=a,this.fileId=s}upload({file:e,fileDescription:t,folderId:r,errorCallback:n,progressCallback:i,successCallback:o,overwrite:a=!0,conflictCallback:s,fileId:l}){this.file=e,this.fileName=this.file.name,this.initialFileSize=this.file.size,this.initialFileLastModified=bi(this.file),this.folderId=r,this.errorCallback=n||it(),this.progressCallback=i||it(),this.successCallback=o||it(),this.sha1Worker=Ci(),this.sha1Worker.addEventListener("message",this.onWorkerMessage),this.conflictCallback=s,this.overwrite=a,this.fileId=l,this.fileDescription=t,this.makePreflightRequest()}createSessionRetry(){const e=gi(this.config.initialRetryDelayMs,this.config.maxRetryDelayMs,this.createSessionNumRetriesPerformed);this.createSessionNumRetriesPerformed+=1,this.consoleLog(`Retrying create session in ${e} ms`),this.createSessionTimeout=setTimeout(this.makePreflightRequest,e)}createSessionSuccessHandler(e){if(this.isDestroyed())return;const{id:t,part_size:r,session_endpoints:n}=e;this.sessionId=t,this.partSize=r,this.sessionEndpoints=lo(lo({},this.sessionEndpoints),{},{uploadPart:n.upload_part,listParts:n.list_parts,commit:n.commit,abort:n.abort,logEvent:n.log_event}),this.populateParts(),this.processNextParts()}resume({file:e,folderId:t,errorCallback:r,progressCallback:n,sessionId:i,successCallback:o,overwrite:a=!0,conflictCallback:s,fileId:l}){this.setFileInfo({file:e,folderId:t,errorCallback:r,progressCallback:n,successCallback:o,conflictCallback:s,overwrite:a,fileId:l}),this.sessionId=i,this.sha1Worker||(this.sha1Worker=Ci()),this.sha1Worker.addEventListener("message",this.onWorkerMessage),this.getSessionInfo()}getSessionSuccessHandler(e){const{part_size:t,session_endpoints:r}=e;this.partSize=t,this.sessionEndpoints=lo(lo({},this.sessionEndpoints),{},{uploadPart:r.upload_part,listParts:r.list_parts,commit:r.commit,abort:r.abort,logEvent:r.log_event}),this.processNextParts()}getSessionErrorHandler(e){if(this.isDestroyed())return;const t=this.getErrorResponse(e);if(this.numResumeRetries>this.config.retries)this.errorCallback(t);else if(t&&429===t.status){let e=Te;if(t.headers){const r=parseInt(t.headers["retry-after"]||t.headers.get("Retry-After"),10);fi()(r)||(e=r*Ie)}this.retryTimeout=setTimeout(this.getSessionInfo,e),this.numResumeRetries+=1}else if(t&&t.status>=400&&t.status<500){this.parts.forEach((e=>{e.cancel()})),this.reset(),clearTimeout(this.createSessionTimeout),clearTimeout(this.commitSessionTimeout),this.abortSession();const e={file:this.file,folderId:this.folderId,errorCallback:this.errorCallback,progressCallback:this.progressCallback,successCallback:this.successCallback,overwrite:this.overwrite,fileId:this.fileId};this.upload(e)}else this.retryTimeout=setTimeout(this.getSessionInfo,2**this.numResumeRetries*Ie),this.numResumeRetries+=1}async sessionErrorHandler(e,t,r){this.isResumableUploadsEnabled||this.destroy();const n=this.getErrorResponse(e);this.errorCallback(n);try{if(!this.sessionEndpoints.logEvent)throw new Error("logEvent endpoint not found");await yi(((e,n)=>{this.logEvent(t,r).then(e).catch(n)}),this.config.retries,this.config.initialRetryDelayMs),this.isResumableUploadsEnabled||this.abortSession()}catch(e){this.isResumableUploadsEnabled||this.abortSession()}}abortSession(){this.sha1Worker&&this.sha1Worker.terminate(),this.sessionEndpoints.abort&&this.sessionId&&this.xhr.delete({url:this.sessionEndpoints.abort}).then((()=>{this.sessionId=""}))}shouldComputeDigestForNextPart(){return!this.isDestroyed()&&0===this.numPartsDigestComputing&&this.numPartsNotStarted>0&&this.numPartsDigestReady<this.config.digestReadahead}computeDigestForNextPart(){for(let e=this.firstUnuploadedPartIndex;e<this.parts.length;e+=1){const t=this.parts[e];if(0===t.state)return this.numPartsNotStarted-=1,this.numPartsDigestComputing+=1,void this.computeDigestForPart(t)}}async computeDigestForPart(e){const t=this.file.slice(e.offset,e.offset+this.partSize),r=new window.FileReader,n=Date.now();try{const{buffer:i,readCompleteTimestamp:o}=await this.readFile(r,t),a=await Ei("SHA-1",i),s=btoa([].reduce.call(new Uint8Array(a),((e,t)=>e+String.fromCharCode(t)),""));this.sendPartToWorker(e,i),e.sha1=s,e.state=1,e.blob=t,this.numPartsDigestReady+=1,this.numPartsDigestComputing-=1;const l=Date.now();e.timing={partDigestTime:l-n,readTime:o-n,subtleCryptoTime:l-o},this.processNextParts()}catch(t){this.onPartDigestError(t,e)}}commitSessionRetry(e){const{status:t,headers:r}=e;let n=Te;if(r){const e=parseInt(r["retry-after"],10);Number.isNaN(e)||(n=1e3*e)}const i=gi(this.config.initialRetryDelayMs,this.config.maxRetryDelayMs,this.commitRetryCount);202!==t&&(this.commitRetryCount+=1);const o=n||i;this.consoleLog(`Retrying commit in ${o} ms`),this.commitSessionTimeout=setTimeout(this.commitSession,o)}uploadNextPart(){for(let e=this.firstUnuploadedPartIndex;e<this.parts.length;e+=1){const t=this.parts[e];if(1===t.state){this.numPartsDigestReady-=1,this.numPartsUploading+=1,t.isPaused?t.unpause():t.upload();break}}}canStartMorePartUploads(){return!this.isDestroyed()&&this.numPartsUploading<this.config.parallelism&&this.numPartsDigestReady>0}updateFirstUnuploadedPartIndex(){let e=this.parts[this.firstUnuploadedPartIndex];for(;e&&3===e.state;)this.firstUnuploadedPartIndex+=1,e=this.parts[this.firstUnuploadedPartIndex]}populateParts(){this.numPartsNotStarted=Math.ceil(this.file.size/this.partSize);for(let e=0;e<this.numPartsNotStarted;e+=1){const t=e*this.partSize,r=Math.min(t+this.partSize,this.file.size)-t,n=new ao(this.options,e,t,r,this.file.size,this.sessionId,this.sessionEndpoints,this.config,this.getNumPartsUploading,this.partUploadSuccessHandler,this.updateProgress,this.partUploadErrorHandler);this.parts.push(n)}}failSessionIfFileChangeDetected(){const e=this.file.size,t=bi(this.file);if(e!==this.initialFileSize||t!==this.initialFileLastModified){const r=JSON.stringify({oldSize:this.initialFileSize,newSize:e,oldLastModified:this.initialFileLastModified,newLastModified:t});return c.isIE()?(this.sessionErrorHandler(null,"file_changed_during_upload",r),!0):(this.consoleLog(`file properties changed during upload: ${r}`),!1)}return!1}cancel(){this.isDestroyed()||(this.parts.forEach((e=>{e.cancel()})),this.parts=[],clearTimeout(this.createSessionTimeout),clearTimeout(this.commitSessionTimeout),this.abortSession(),this.destroy())}async resolveConflict(e){if(this.overwrite&&e.context_info)return void(this.fileId=e.context_info.conflicts.id);if(this.conflictCallback)return void(this.fileName=this.conflictCallback(this.fileName));const t=this.fileName.substr(this.fileName.lastIndexOf("."))||"";this.fileName=`${this.fileName.substr(0,this.fileName.lastIndexOf("."))}-${Date.now()}${t}`}getErrorResponse(e){if(!e)return{};const{response:t}=e;return t?401===t.status?t:t.data:{}}};function ho(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const fo="Content-MD5",po=class extends Zi{constructor(...e){super(...e),ho(this,"uploadSuccessHandler",(({data:e})=>{const{entries:t}=e;this.isDestroyed()||"function"==typeof this.successCallback&&this.successCallback(t)})),ho(this,"uploadProgressHandler",(e=>{this.isDestroyed()||"function"==typeof this.progressCallback&&this.progressCallback(e)})),ho(this,"preflightSuccessHandler",(async({data:e})=>{if(this.isDestroyed())return;let t=e.upload_url;t||(t=`${this.getBaseUploadUrl()}/files/content`,this.fileId&&(t=t.replace("content",`${this.fileId}/content`)));const r={url:t,data:{attributes:JSON.stringify({name:this.fileName,parent:{id:this.folderId},description:this.fileDescription,content_modified_at:bi(this.file)}),file:this.file},headers:{},successHandler:this.uploadSuccessHandler,errorHandler:this.preflightErrorHandler,progressHandler:this.uploadProgressHandler},n=await this.computeSHA1(this.file);n&&(r.headers={[fo]:n}),this.xhr.uploadFile(r)}))}upload({folderId:e,fileId:t,file:r,fileDescription:n,successCallback:i=it(),errorCallback:o=it(),progressCallback:a=it(),conflictCallback:s,overwrite:l=!0}){this.isDestroyed()||(this.folderId=e,this.fileId=t,this.file=r,this.fileDescription=n,this.fileName=this.file.name,this.successCallback=i,this.errorCallback=o,this.progressCallback=a,this.overwrite=l,this.conflictCallback=s,this.makePreflightRequest())}cancel(){this.isDestroyed()||(clearTimeout(this.retryTimeout),this.destroy())}async computeSHA1(e){let t="";try{const r=new window.FileReader,{buffer:n}=await this.readFile(r,e),i=await Ei("SHA-1",n);t=Array.from(new Uint8Array(i)).map((e=>`00${e.toString(16)}`.slice(-2))).join("")}catch(e){}return t}};function mo(e,t,r,n){const i=[];return e.forEach((e=>{const{id:o,type:a}=e;if(!o||!a)throw Vi();let s;switch(a){case u:s=t;break;case d:s=r;break;case h:s=n;break;default:throw new Error("Unknown Type!")}const l=s.getCache(),c=s.getCacheKey(o);l.has(c)?l.merge(c,e):l.set(c,e),i.push(c)})),i}var bo=__webpack_require__(75322),go=__webpack_require__.n(bo),yo=__webpack_require__(19170),vo=__webpack_require__.n(yo);function wo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Eo(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const So=[T,I,"type",M,"parent",D,R,"path_collection",F,N,B,"has_collaborations",U,"item_collection",G,X,q,"url"],Co=([T,I,M,D,W,"shared_link",R,"content_created_at","content_modified_at",N,H,F,B,"owned_by","description",J,"expires_at","version_limit",K,U,j,G,X,ee].concat(Y),[N,D,X,F,B,I,L,V,M,Z,$,ee,K]),ko=([W,F,B,j,M,z,ee,K].concat(Y),[G,N,D,X,F,B,I,R,z,L,V,"retention",M,Z,$,ee,K]),xo=["tagged_message","message",N,H,F,R],Po=["activity_template","app",H,"occurred_at","rendered_text"];function _o(e,t=[]){return e&&"object"==typeof e&&0!==Object.keys(e).length?t.filter((t=>!go()(e,t))):t}function Oo(e={},t){if(!Array.isArray(t)||0===t.length)return e;const r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?wo(Object(r),!0).forEach((function(t){Eo(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wo(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e);return _o(e,t).forEach((e=>{vo()(r,e,null)})),r}function Ao(){return Ao=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ao.apply(null,arguments)}function To(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Io=class extends Yi{constructor(...e){super(...e),To(this,"deleteSuccessHandler",(()=>{if(this.isDestroyed())return;const e=this.getParentCacheKey(this.parentId),t=this.getCache().get(e);if(!t)return void this.postDeleteCleanup();const{item_collection:r}=t;if(!r)return void this.postDeleteCleanup();const{entries:n,total_count:i}=r;if(!Array.isArray(n)||"number"!=typeof i)throw Vi();const o=this.getCacheKey(this.id),a=n.length,s=n.filter((e=>e!==o)),l=s.length,c=this.merge(e,"item_collection",Ao(r,{entries:s,total_count:i-(a-l)}));this.successCallback(c),this.postDeleteCleanup()})),To(this,"renameSuccessHandler",(({data:e})=>{if(!this.isDestroyed()){this.getCache().unsetAll(w);const t=this.merge(this.getCacheKey(this.id),"name",e.name);this.successCallback(t)}})),To(this,"shareSuccessHandler",((e,t)=>{if(!this.isDestroyed()){const r=t?Oo(e,t):e,n=this.getCache(),i=this.getCacheKey(this.id);n.has(i)?n.merge(i,r):n.set(i,r),this.successCallback(n.get(i))}}))}getParentCacheKey(e){return`${y}${e}`}getCacheKey(e){return`getCacheKey(${e}) should be overriden`}getUrl(e){return`getUrl(${e}) should be overriden`}merge(e,t,r){const n=this.getCache();return n.merge(e,vo()({},t,r)),n.get(e)}postDeleteCleanup(){this.isDestroyed()||(this.getCache().unsetAll(w),this.successCallback())}deleteItem(e,t,r=it()){if(this.isDestroyed())return Promise.reject();this.errorCode="delete_item_error";const{id:n,permissions:i,parent:o,type:a}=e;if(!(n&&i&&o&&a))return r(Vi(),this.errorCode),Promise.reject();const{id:s}=o,{can_delete:l}=i;if(!l||!s)return r($i(),this.errorCode),Promise.reject();this.id=n,this.parentId=s,this.successCallback=t,this.errorCallback=r;const c=`${this.getUrl(n)}${a===u?"?recursive=true":""}`;return this.xhr.delete({url:c}).then(this.deleteSuccessHandler).catch((e=>{this.errorHandler(e)}))}rename(e,t,r,n=it()){if(this.isDestroyed())return Promise.reject();this.errorCode="rename_item_error";const{id:i,permissions:o}=e;if(!i||!o)return n(Vi(),this.errorCode),Promise.reject();const{can_rename:a}=o;return a?(this.id=i,this.successCallback=r,this.errorCallback=n,this.xhr.put({url:`${this.getUrl(i)}`,data:{name:t}}).then(this.renameSuccessHandler).catch((e=>{this.errorHandler(e)}))):(n($i(),this.errorCode),Promise.reject())}validateSharedLinkRequest(e,t,r=!1){if(!e||!t)throw this.errorCode=_e,Vi();const{can_share:n,can_set_share_access:i}=t;if(!n||!r&&!i)throw this.errorCode=_e,$i()}async share(e,t,r,n=it(),i={}){if(this.isDestroyed())return Promise.reject();try{const{id:o,permissions:a,shared_link:s}=e;this.id=o,this.successCallback=r,this.errorCallback=n;const l=!s&&void 0===t;this.validateSharedLinkRequest(o,a,l);const{fields:c}=i,u={url:this.getUrl(this.id),data:{shared_link:"none"===t?null:{access:t}}};c&&(u.params={fields:c.toString()});const{data:d}=await this.xhr.put(u);return this.shareSuccessHandler(d,c)}catch(e){return this.errorHandler(e)}}async updateSharedLink(e,t,r,n=it(),i={}){if(this.isDestroyed())return Promise.reject();try{const{id:o,permissions:a}=e;this.id=o,this.successCallback=r,this.errorCallback=n,this.validateSharedLinkRequest(o,a);const{fields:s}=i,l={url:this.getUrl(this.id),data:{shared_link:t}};s&&(l.params={fields:s.toString()});const{data:c}=await this.xhr.put(l);return this.shareSuccessHandler(c,s)}catch(e){return this.errorHandler(e)}}};function Mo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Do(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Mo(Object(r),!0).forEach((function(t){Ro(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mo(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ro(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Fo=class extends Io{getCacheKey(e){return`${v}${e}`}getUrl(e){const t=e?`/${e}`:"";return`${this.getBaseApiUrl()}/files${t}`}async getDownloadUrl(e,t,r,n){this.errorCode="get_download_url_error",this.errorCallback=n,this.successCallback=r;const i=t[X],o=t[G],a=await Ri.getReadToken(zi(e),this.options.token);if(!i||!o||!a)return void this.errorHandler(new Error("Download is missing required fields or token."));const{query:s,url:l}=an.parseUrl(o),c=Do(Do({},s),{},{access_token:a}),u=an.stringify(c);this.successHandler(`${l}?${u}`)}isRepresentationsCallComplete(e){const t=mi()(e,"data.status.state");return!t||"error"===t||"success"===t||"viewable"===t}async generateRepresentation(e){const t=mi()(e,"info.url");return t?yi(((e,r)=>this.xhr.get({successCallback:e,errorCallback:r,url:t}).then((t=>this.isRepresentationsCallComplete(t)?e(t.data):r(t.data))).catch((e=>{r(e)}))),4,2e3,2):e}async getThumbnailUrl(e){const t=mi()(e,"representations.entries[0]"),r=mi()(t,"representation"),n=mi()(t,"content.url_template"),i=await Ri.getReadToken(zi(e.id),this.options.token);if(!r||!n||!i)return null;const o=n.replace("{+asset_path}","jpg"===r?"":"1.png"),{query:a,url:s}=an.parseUrl(o),l=Do(Do({},a),{},{access_token:i});return`${s}?${an.stringify(l)}`}setFileDescription(e,t,r,n){const{id:i,permissions:o}=e;return i&&o?o.can_rename?this.xhr.put({id:zi(i),url:this.getUrl(i),data:{description:t}}).then((({data:e})=>{if(!this.isDestroyed()){const t=this.merge(this.getCacheKey(i),"description",e.description);r(t)}})).catch((()=>{if(!this.isDestroyed()){const t=this.merge(this.getCacheKey(i),"description",e.description);n(t)}})):(n($i()),Promise.reject()):(n(Vi()),Promise.reject())}async getFile(e,t,r,n={}){if(this.isDestroyed())return;const i=this.getCache(),o=this.getCacheKey(e),a=!n.forceFetch&&i.has(o),s=a?i.get(o):{id:e};let l=_o(s,n.fields);const c={id:zi(e),url:this.getUrl(e),headers:{"X-Rep-Hints":Ae}};if(this.errorCode="fetch_file_error",this.successCallback=t,this.errorCallback=r,!a||0!==l.length||(t(s),l=n.fields||[],n.refreshCache)){l.length>0&&(c.params={fields:l.toString()});try{const{data:e}=await this.xhr.get(c);if(this.isDestroyed())return;const t=Oo(e,l);i.has(o)?i.merge(o,t):i.set(o,t),this.successHandler(i.get(o))}catch(e){this.errorHandler(e)}}}getFileExtension(e,t,r){this.isDestroyed()||this.getFile(e,t,r,{fields:[D]})}},Lo=class extends Io{getCacheKey(e){return`web_link_${e}`}getUrl(e){const t=e?`/${e}`:"";return`${this.getBaseApiUrl()}/web_links${t}`}async getWeblink(e,t,r,{fields:n}={}){if(this.isDestroyed())return;const i=this.getCache(),o=this.getCacheKey(e);if(this.errorCode="fetch_weblink_error",this.successCallback=t,this.errorCallback=r,i.has(o)&&0===_o(i.get(o),n).length)return void t(i.get(o));const a={url:this.getUrl(e)};n&&(a.params={fields:n.toString()});try{const{data:e}=await this.xhr.get(a);if(this.isDestroyed())return;i.has(o)?i.merge(o,e):i.set(o,e),this.successHandler(i.get(o))}catch(e){this.errorHandler(e)}}};function jo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function No(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?jo(Object(r),!0).forEach((function(t){Uo(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jo(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Uo(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class Ho extends Io{constructor(...e){super(...e),Uo(this,"folderSuccessHandler",(({data:e})=>{if(this.isDestroyed())return;const{item_collection:t}=e;if(!t)throw Vi();const{entries:r,total_count:n,limit:i,offset:o}=t;if(!Array.isArray(r)||"number"!=typeof n||"number"!=typeof i||"number"!=typeof o)throw Vi();const a=mo(r,new Ho(this.options),new Fo(this.options),new Lo(this.options));this.itemCache=(this.itemCache||[]).concat(a),this.getCache().set(this.key,No(No({},e),{},{item_collection:No(No({},t),{},{entries:this.itemCache})})),this.finish()})),Uo(this,"folderDetailsSuccessHandler",(({data:e})=>{if(this.isDestroyed())return;const t=No(No({},this.getCache().get(this.key)),e);this.getCache().set(this.key,t),this.successCallback(t)})),Uo(this,"createSuccessHandler",(({data:e})=>{const{id:t}=e;if(this.isDestroyed()||!t)return;const r=this.getCacheKey(t),n=this.getCache(),i=n.get(this.key);if(!i)return void this.successCallback(e);const{item_collection:o}=i;if(!o)throw Vi();const{total_count:a,entries:s}=o;if(!Array.isArray(s)||"number"!=typeof a)throw Vi();n.set(r,e),o.entries=[r].concat(s),o.total_count=a+1,this.successCallback(e)}))}getCacheKey(e){return`${y}${e}`}getUrl(e){const t=e?`/${e}`:"";return`${this.getBaseApiUrl()}/folders${t}`}isLoaded(){return this.getCache().has(this.key)}finish(){if(this.isDestroyed())return;const e=this.getCache(),t=e.get(this.key),{id:r,name:n,permissions:i,path_collection:o,item_collection:a}=t;if(!a||!o)throw Vi();const{entries:s,offset:l,total_count:c}=a;if(!Array.isArray(s)||"number"!=typeof c)throw Vi();const u={id:r,name:n,offset:l,percentLoaded:100,permissions:i,boxItem:t,breadcrumbs:o.entries,items:s.map((t=>e.get(t))),sortBy:this.sortBy,sortDirection:this.sortDirection,totalCount:c};this.successCallback(u)}folderRequest({fields:e,noPagination:t}={},r=this.folderSuccessHandler){if(this.isDestroyed())return Promise.reject();const n=e||So;this.errorCode="fetch_folder_error";let i={fields:n.toString()};return t||(i=No(No({},i),{},{direction:this.sortDirection.toLowerCase(),limit:this.limit,offset:this.offset,fields:n.toString(),sort:this.sortBy.toLowerCase()})),this.xhr.get({url:this.getUrl(this.id),params:i,headers:n.includes(q)?{"X-Rep-Hints":Me}:{}}).then(r).catch(this.errorHandler)}getFolderFields(e,t,r,n={}){this.isDestroyed()||(this.id=e,this.key=this.getCacheKey(e),this.successCallback=t,this.errorCallback=r,this.folderRequest(No(No({},n),{},{noPagination:!0}),this.folderDetailsSuccessHandler))}getFolder(e,t,r,n,i,o,a,s={}){this.isDestroyed()||(this.id=e,this.key=this.getCacheKey(e),this.limit=t,this.offset=r,this.sortBy=n,this.sortDirection=i,this.successCallback=o,this.errorCallback=a,s.forceFetch&&this.getCache().unset(this.key),this.isLoaded()?this.finish():this.folderRequest(s))}folderCreateRequest(e){if(this.isDestroyed())return Promise.reject();this.errorCode="create_folder_error";const t=`${this.getUrl()}?fields=${So.toString()}`;return this.xhr.post({url:t,data:{name:e,parent:{id:this.id}}}).then(this.createSuccessHandler).catch(this.errorHandler)}create(e,t,r,n=it()){this.isDestroyed()||(this.id=e,this.key=this.getCacheKey(e),this.successCallback=r,this.errorCallback=n,this.folderCreateRequest(t))}}const Bo=Ho;function zo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Vo(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?zo(Object(r),!0).forEach((function(t){$o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zo(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function $o(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const qo=class extends Yi{constructor(...e){super(...e),$o(this,"searchSuccessHandler",(({data:e})=>{if(this.isDestroyed())return;const{entries:t,total_count:r,limit:n,offset:i}=e;if(!Array.isArray(t)||"number"!=typeof r||"number"!=typeof n||"number"!=typeof i)throw Vi();const o=mo(t,new Bo(this.options),new Fo(this.options),new Lo(this.options));this.itemCache=(this.itemCache||[]).concat(o),this.getCache().set(this.key,{item_collection:Vo(Vo({},e),{},{entries:this.itemCache})}),this.finish()})),$o(this,"searchErrorHandler",(e=>{this.isDestroyed()||this.errorCallback(e,this.errorCode)}))}getEncodedQuery(e){return encodeURIComponent(e)}getCacheKey(e,t){return`${w}${e}|${t}`}getUrl(){return`${this.getBaseApiUrl()}/search`}isLoaded(){return this.getCache().has(this.key)}finish(){if(this.isDestroyed())return;const e=this.getCache(),t=e.get(this.key),{item_collection:r}=t;if(!r)throw Vi();const{entries:n,total_count:i}=r;if(!Array.isArray(n)||"number"!=typeof i)throw Vi();const o={id:this.id,items:n.map((t=>e.get(t))),offset:this.offset,percentLoaded:100,sortBy:"",sortDirection:E,totalCount:i};this.successCallback(o)}searchRequest(e={}){if(this.isDestroyed())return Promise.reject();const{fields:t}=e,r=t||So;return this.errorCode="search_error",this.xhr.get({url:this.getUrl(),params:{offset:this.offset,query:this.query,ancestor_folder_ids:this.id,limit:this.limit,fields:r.toString()},headers:r.includes(q)?{"X-Rep-Hints":Me}:{}}).then(this.searchSuccessHandler).catch(this.searchErrorHandler)}search(e,t,r,n,i,o,a={}){this.isDestroyed()||(this.limit=r,this.offset=n,this.query=t,this.id=e,this.key=this.getCacheKey(e,this.getEncodedQuery(this.query)),this.successCallback=i,this.errorCallback=o,a.forceFetch&&this.getCache().unset(this.key),this.isLoaded()?this.finish():this.searchRequest(a))}};function Go(){return Go=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Go.apply(null,arguments)}function Wo(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Xo=class extends Yi{constructor(...e){super(...e),Wo(this,"recentsSuccessHandler",(({data:e})=>{if(this.isDestroyed())return;const{entries:t,order:{by:r,direction:n}}=e,i=[];t.forEach((({item:e,interacted_at:t})=>{const{path_collection:r}=e;("0"===this.id||r&&-1!==r.entries.findIndex((e=>e.id===this.id)))&&i.push(Go(e,{interacted_at:t}))}));const o=mo(i,new Bo(this.options),new Fo(this.options),new Lo(this.options));this.getCache().set(this.key,{item_collection:{entries:o,order:[{by:r,direction:n}]}}),this.finish()})),Wo(this,"recentsErrorHandler",(e=>{this.isDestroyed()||this.errorCallback(e,this.errorCode)}))}getCacheKey(e){return`recents_${e}`}getUrl(){return`${this.getBaseApiUrl()}/recent_items`}finish(){if(this.isDestroyed())return;const e=this.getCache(),t=e.get(this.key),{item_collection:r}=t;if(!r)throw Vi();const{entries:n}=r;if(!Array.isArray(n))throw Vi();const i={id:this.id,items:n.map((t=>e.get(t))),percentLoaded:100,sortBy:"date",sortDirection:E};this.successCallback(i)}recentsRequest(e={}){if(this.isDestroyed())return Promise.reject();const{fields:t}=e,r=t||So;return this.errorCode="fetch_recents_error",this.xhr.get({url:this.getUrl(),params:{fields:r.toString()},headers:r.includes(q)?{"X-Rep-Hints":Me}:{}}).then(this.recentsSuccessHandler).catch(this.recentsErrorHandler)}recents(e,t,r,n={}){if(this.isDestroyed())return;this.id=e,this.successCallback=t,this.errorCallback=r;const i=this.getCache();this.key=this.getCacheKey(this.id),n.forceFetch&&i.unset(this.key),i.has(this.key)?this.finish():this.recentsRequest(n)}};function Ko(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Qo(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ko(Object(r),!0).forEach((function(t){Yo(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ko(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Yo(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Jo=class extends Yi{getQueryParameters(e,t,r){const n={offset:e,limit:t};return r&&r.length>0&&(n.fields=r.toString()),n}hasMoreItems(e,t){return void 0===t||e<t}async offsetGetRequest(e,t,r,n,i){if(!this.isDestroyed())try{const o=this.getQueryParameters(t,r,i),a=this.getUrl(e),{data:s}=await this.xhr.get({url:a,id:zi(e),params:o}),l=this.data?this.data.entries:[];this.data=Qo(Qo({},s),{},{entries:l.concat(s.entries)});const c=s.total_count,u=t+r;if(n&&this.hasMoreItems(u,c))return void this.offsetGetRequest(e,u,r,n,i);this.successHandler(this.data)}catch(e){this.errorHandler(e)}}async offsetGet(e,t,r,n=0,i=1e3,o,a=!0){return this.successCallback=t,this.errorCallback=r,this.offsetGetRequest(e,n,i,a,o)}},Zo=["permissions"];function ea(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ta(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ea(Object(r),!0).forEach((function(t){ra(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ea(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ra(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const na=class extends Jo{constructor(...e){super(...e),ra(this,"successHandler",(e=>{this.isDestroyed()||"function"!=typeof this.successCallback||this.successCallback(e)}))}getUrl(e){if(!e)throw new Error("Missing file id!");return`${this.getBaseApiUrl()}/files/${e}/versions`}getVersionUrl(e,t){if(!t)throw new Error("Missing version id!");return`${this.getUrl(e)}/${t}`}addPermissions(e,t){if(!e)return e;const{entries:r,total_count:n}=e,i=mi()(t,["permissions",ae],!1);return{entries:r.map((e=>{let{permissions:t}=e;return ta(ta({},function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,Zo)),{},{permissions:ta({can_upload:i},t)})})),total_count:n}}deleteVersion({errorCallback:e,fileId:t,permissions:r,successCallback:n,versionId:i}){this.errorCode="delete_version_error";try{this.checkApiCallValidity(ne,r,t)}catch(t){return void e(t,this.errorCode)}this.delete({id:t,url:this.getVersionUrl(t,i),successCallback:n,errorCallback:e})}getVersions(e,t,r,n=0,i=1e3,o=ko,a=!0){this.errorCode="fetch_versions_error",this.offsetGet(e,t,r,n,i,o,a)}getVersion(e,t,r,n){this.errorCode="fetch_version_error",this.get({id:e,successCallback:r,errorCallback:n,url:this.getVersionUrl(e,t),requestData:{params:{fields:ko.toString()}}})}addCurrentVersion(e,t,r){if(!e)return t||{entries:[],total_count:0};if(!t)return{entries:[e],total_count:1};const n=mi()(r,"restored_from.id"),i=t.entries.find((e=>e.id===n));return i&&(e.version_promoted=i.version_number),{entries:[...t.entries,e],total_count:t.total_count+1}}promoteVersion({errorCallback:e,fileId:t,permissions:r,successCallback:n,versionId:i}){this.errorCode="promote_version_error";try{this.checkApiCallValidity(ae,r,t)}catch(t){return void e(t,this.errorCode)}this.post({id:t,data:{data:{id:i,type:"file_version"}},url:this.getVersionUrl(t,"current"),successCallback:n,errorCallback:e})}restoreVersion({errorCallback:e,fileId:t,permissions:r,successCallback:n,versionId:i}){this.errorCode="restore_version_error";try{this.checkApiCallValidity(ne,r,t)}catch(t){return void e(t,this.errorCode)}this.put({id:t,data:{data:{trashed_at:null}},url:this.getVersionUrl(t,i),successCallback:n,errorCallback:e})}};function ia(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function oa(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ia(Object(r),!0).forEach((function(t){aa(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ia(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function aa(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const sa=class extends Jo{constructor(...e){super(...e),aa(this,"successHandler",(e=>{if(this.isDestroyed()||"function"!=typeof this.successCallback)return;if(!e)return void this.successCallback();if(!e.entries)return void this.successCallback(this.format(e));const t=e.entries.map(this.format);this.successCallback(oa(oa({},e),{},{entries:t}))}))}getUrl(e){if(!e)throw new Error("Missing file id!");return`${this.getBaseApiUrl()}/files/${e}/comments`}commentsUrl(e){const t=`${this.getBaseApiUrl()}/comments`;return e?`${t}/${e}`:t}format(e){return oa(oa({},e),{},{tagged_message:""!==e.tagged_message?e.tagged_message:e.message})}createComment({file:e,message:t,taggedMessage:r,successCallback:n,errorCallback:i}){this.errorCode=ge;const{id:o="",permissions:a}=e;try{this.checkApiCallValidity(te,a,o)}catch(e){return void i(e,this.errorCode)}const s={data:{item:{id:o,type:"file"},message:t,tagged_message:r},params:{fields:xo.toString()}};this.post({id:o,url:this.commentsUrl(),data:s,successCallback:n,errorCallback:i})}updateComment({file:e,commentId:t,message:r,tagged_message:n,permissions:i,successCallback:o,errorCallback:a}){this.errorCode=xe;const{id:s=""}=e;try{this.checkApiCallValidity(ie,i,s)}catch(e){return void a(e,this.errorCode)}const l={data:{message:r,tagged_message:n}};this.put({id:s,url:this.commentsUrl(t),data:l,successCallback:o,errorCallback:a})}deleteComment({file:e,commentId:t,permissions:r,successCallback:n,errorCallback:i}){this.errorCode=Se;const{id:o=""}=e;try{this.checkApiCallValidity(ne,r,o)}catch(e){return void i(e,this.errorCode)}this.delete({id:o,url:this.commentsUrl(t),successCallback:n,errorCallback:i})}getComments(e,t,r,n,i=xo,o,a,s){this.errorCode=he;try{this.checkApiCallValidity(te,t,e)}catch(e){return void n(e,this.errorCode)}this.offsetGet(e,r,n,o,a,i,s)}},la=["retryableStatusCodes"];function ca(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ua(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ca(Object(r),!0).forEach((function(t){da(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ca(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function da(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ha=[Ne,500,501,502,503,504],fa=class extends Yi{constructor(e){let{retryableStatusCodes:t=ha}=e;super(ua(ua({},function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,la)),{},{retryableStatusCodes:t}))}},pa=["id","addedAssignees","removedAssignees"];function ma(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ba(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ma(Object(r),!0).forEach((function(t){ga(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ma(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ga(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ya=class extends fa{getUrlForFileTasks(e){return`${this.getBaseApiUrl()}/undoc/files/${e}/linked_tasks?limit=1000`}getUrlForTaskCreateWithDeps(){return`${this.getBaseApiUrl()}/undoc/tasks/with_dependencies`}getUrlForTask(e){return`${this.getBaseApiUrl()}/undoc/tasks/${e}`}getUrlForTaskWithDeps(e){return`${this.getBaseApiUrl()}/undoc/tasks/${e}/with_dependencies`}updateTaskWithDeps({errorCallback:e,file:t,successCallback:r,task:n}){this.errorCode=ke;const i=n.addedAssignees.map((e=>({op:e.item&&"group"===e.item.type?"add_task_collaborators_expand_group":"add_task_collaborator",payload:{target:{type:e.item&&"group"===e.item.type?"group":"user",id:e.id}}}))),o=n.removedAssignees.map((e=>({op:"delete_task_collaborator",id:e.id}))),{id:a,addedAssignees:s,removedAssignees:l}=n,c=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(n,pa);this.put({id:t.id,url:this.getUrlForTaskWithDeps(n.id),data:{data:[{op:"update_task",payload:ba({},c)},...i,...o]},successCallback:r,errorCallback:e})}deleteTask({errorCallback:e,file:t,successCallback:r,task:n}){this.errorCode="delete_task_error",this.delete({id:t.id,url:this.getUrlForTask(n.id),successCallback:r,errorCallback:e})}getTasksForFile({errorCallback:e,file:t,successCallback:r}){this.errorCode=pe,this.get({id:t.id,url:this.getUrlForFileTasks(t.id),successCallback:r,errorCallback:e})}getTask({errorCallback:e,file:t,id:r,successCallback:n}){this.errorCode=pe,this.get({id:t.id,url:this.getUrlForTask(r),successCallback:n,errorCallback:e})}createTaskWithDeps({errorCallback:e,file:t,successCallback:r,task:n,assignees:i}){this.errorCode=ve;const o=i.map((e=>({target:{type:e.item&&"group"===e.item.type?"group":"user",id:e.id}}))),a=[{target:{id:t.id,type:"file"}}],s={task:ba({},n),assigned_to:o,task_links:a};this.post({id:t.id,url:this.getUrlForTaskCreateWithDeps(),data:{data:ba({},s)},successCallback:r,errorCallback:e})}};function va(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function wa(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?va(Object(r),!0).forEach((function(t){Ea(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):va(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ea(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Sa=class extends fa{getUrlForTaskCollaborators(e){return`${this.getBaseApiUrl()}/undoc/tasks/${e}/task_collaborators?role=ASSIGNEE&limit=1000`}getUrlForTaskCollaboratorCreate(){return`${this.getBaseApiUrl()}/undoc/task_collaborators`}getUrlForTaskCollaborator(e){return`${this.getBaseApiUrl()}/undoc/task_collaborators/${e}`}getUrlForTaskGroupCreate(){return`${this.getBaseApiUrl()}/undoc/task_collaborators/expand_group`}createTaskCollaborator({errorCallback:e,file:t,successCallback:r,task:n,user:i}){this.errorCode=we;const o={data:{task:{type:"task",id:n.id},target:{type:"user",id:i.id}}};this.post({id:t.id,url:this.getUrlForTaskCollaboratorCreate(),data:wa({},o),successCallback:r,errorCallback:e})}createTaskCollaboratorsforGroup({errorCallback:e,file:t,successCallback:r,task:n,group:i}){this.errorCode=we;const o={data:{task:{type:"task",id:n.id},target:{type:"group",id:i.id}}};this.post({id:t.id,url:this.getUrlForTaskGroupCreate(),data:wa({},o),successCallback:r,errorCallback:e})}getTaskCollaborators({errorCallback:e,file:t,successCallback:r,task:n}){this.errorCode="fetch_task_collaborator_error";const i=this.getUrlForTaskCollaborators(n.id);this.get({id:t.id,successCallback:r,errorCallback:e,url:i})}updateTaskCollaborator({errorCallback:e,file:t,successCallback:r,taskCollaborator:n}){this.errorCode="update_task_collaborator_error";const i={data:Xn()(n,"id")};this.put({id:t.id,url:this.getUrlForTaskCollaborator(n.id),data:wa({},i),successCallback:r,errorCallback:e})}deleteTaskCollaborator({errorCallback:e,file:t,successCallback:r,taskCollaborator:n}){this.errorCode="delete_task_collaborator_error",this.delete({id:t.id,url:this.getUrlForTaskCollaborator(n.id),successCallback:r,errorCallback:e})}};function Ca(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ka(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ca(Object(r),!0).forEach((function(t){xa(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ca(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function xa(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Pa=class extends fa{getUrlForTaskLinkCreate(){return`${this.getBaseApiUrl()}/undoc/task_links`}createTaskLink({errorCallback:e,file:t,successCallback:r,task:n}){this.errorCode="create_task_link_error";const i={data:{target:{id:t.id,type:"file"},task:{id:n.id,type:"task"}}};this.post({id:t.id,url:this.getUrlForTaskLinkCreate(),data:ka({},i),successCallback:r,errorCallback:e})}};function _a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Oa(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_a(Object(r),!0).forEach((function(t){Aa(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Aa(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Ta=class extends Yi{hasMoreItems(e){return null!==e&&""!==e}async markerGetRequest(e,t,r,n,i={}){if(!this.isDestroyed())try{const o=this.getUrl(e),a=Oa(Oa({},i),{},{marker:t,limit:r}),{data:s}=await this.xhr.get({url:o,id:zi(e),params:a}),l=this.data?this.data.entries:[];this.data=Oa(Oa({},s),{},{entries:l.concat(s.entries)});const c=s.next_marker;if(n&&this.hasMoreItems(c))return void this.markerGetRequest(e,c,r,n,i);this.successHandler(this.data)}catch(e){this.errorHandler(e)}}async markerGet({id:e,successCallback:t,errorCallback:r,marker:n="",limit:i=1e3,requestData:o,shouldFetchAll:a=!0}){return this.successCallback=t,this.errorCallback=r,this.markerGetRequest(e,n,i,a,o)}};function Ia(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ma(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ia(Object(r),!0).forEach((function(t){Da(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ia(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Da(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Ra=e=>{const t=Ma(Ma({},e),{},{tagged_message:e.message});return e.replies&&e.replies.length&&(t.replies=e.replies.map(Ra)),t},Fa=e=>{throw e.abort(),function(){class e extends Error{constructor(e){super(e),this.name="AbortError"}}return new e("Aborted")}()};function La(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ja(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?La(Object(r),!0).forEach((function(t){Na(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):La(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Na(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Ua=class extends Ta{constructor(...e){super(...e),Na(this,"successHandler",(e=>{if(this.isDestroyed()||"function"!=typeof this.successCallback)return;if(!e)return void this.successCallback();if(!e.entries)return void this.successCallback(Ra(e));const t=e.entries.map(Ra);this.successCallback(ja(ja({},e),{},{entries:t}))}))}getUrl(e){return`${this.getBaseApiUrl()}/undoc/comments${e?`?file_id=${e}`:""}`}getUrlForId(e){return`${this.getUrl()}/${e}`}getUrlWithRepliesForId(e,t){return`${this.getUrlForId(e)}/replies${t?`?file_id=${t}`:""}`}createComment({file:e,message:t,successCallback:r,errorCallback:n}){this.errorCode=ge;const{id:i,permissions:o}=e;try{this.checkApiCallValidity(te,o,i)}catch(e){return void n(e,this.errorCode)}this.post({id:i,url:this.getUrl(i),data:{data:{message:t}},successCallback:r,errorCallback:n})}updateComment({fileId:e,commentId:t,status:r,message:n,permissions:i,successCallback:o,errorCallback:a}){if(this.errorCode=xe,n)try{this.checkApiCallValidity(ie,i,e)}catch(e){return void a(e,this.errorCode)}if(r)try{this.checkApiCallValidity(oe,i,e)}catch(e){return void a(e,this.errorCode)}const s={data:{status:r,message:n}};this.put({id:e,url:this.getUrlForId(t),data:s,successCallback:o,errorCallback:a})}deleteComment({fileId:e,commentId:t,permissions:r,successCallback:n,errorCallback:i}){this.errorCode=Se;try{this.checkApiCallValidity(ne,r,e)}catch(e){return void i(e,this.errorCode)}this.delete({id:e,url:this.getUrlForId(t),successCallback:n,errorCallback:i})}getComment({commentId:e,errorCallback:t,fileId:r,permissions:n,successCallback:i}){this.errorCode="fetch_comment_error";try{this.checkApiCallValidity(te,n,r)}catch(e){return void t(e,this.errorCode)}this.get({id:r,errorCallback:t,successCallback:i,url:this.getUrlForId(e)})}getComments({fileId:e,permissions:t,successCallback:r,errorCallback:n,marker:i,limit:o,shouldFetchAll:a,repliesCount:s}){this.errorCode=he;try{this.checkApiCallValidity(te,t,e)}catch(e){return void n(e,this.errorCode)}this.markerGet({id:e,successCallback:r,errorCallback:n,marker:i,limit:o,requestData:ja({},s?{replies_count:s}:null),shouldFetchAll:a})}getCommentReplies({fileId:e,commentId:t,permissions:r,successCallback:n,errorCallback:i}){this.errorCode=fe;try{this.checkApiCallValidity(te,r,e)}catch(e){return void i(e,this.errorCode)}this.get({id:e,errorCallback:i,successCallback:n,url:this.getUrlWithRepliesForId(t)})}createCommentReply({fileId:e,commentId:t,permissions:r,successCallback:n,errorCallback:i,message:o}){this.errorCode=ye;try{this.checkApiCallValidity(te,r,e)}catch(e){return void i(e,this.errorCode)}this.post({id:e,data:{data:{message:o}},errorCallback:i,successCallback:n,url:this.getUrlWithRepliesForId(t,e)})}},Ha=class extends Yi{getUrl(e){if(!e)throw new Error("Missing file id!");return`${this.getBaseApiUrl()}/file_access_stats/${e}`}getFileAccessStats(e,t,r){this.errorCode="fetch_access_stats_error",this.get({id:e,successCallback:t,errorCallback:r})}};function Ba(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function za(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ba(Object(r),!0).forEach((function(t){Va(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ba(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Va(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const $a=class extends Yi{getFilteredUrl(e,t,r){return`${this.getBaseApiUrl()}${((e,t=[],r=!1)=>{const n=`&enable_replies=${r?"true":"false"}&reply_limit=1`;return`/file_activities?file_id=${e}${t&&t.length?`&activity_types=${t.join()}`:""}${n}`})(e,t,r)}`}getActivities({activityTypes:e,errorCallback:t,fileID:r,permissions:n,repliesCount:i,shouldShowReplies:o,successCallback:a}){this.errorCode="fetch_activity_error";try{if(!r)throw new Error("Missing file id!");e.includes(We)&&this.checkApiCallValidity(te,n,r),e.includes(qe)&&this.checkApiCallValidity(se,n,r)}catch(e){return void t(e,this.errorCode)}this.get({id:r,successCallback:a,errorCallback:t,requestData:za({},i?{replies_count:i}:null),url:this.getFilteredUrl(r,e,o)})}};function qa(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ga(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?qa(Object(r),!0).forEach((function(t){Wa(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qa(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Wa(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Xa=class extends Ta{getUrl(){return`${this.getBaseApiUrl()}/groups`}getGroupsInEnterprise(e,t,r,n,i=50){this.errorCode="fetch_enterprise_groups_error",this.markerGet({id:e,limit:i,successCallback:t,errorCallback:r,requestData:Ga({usemarker:!0},n),shouldFetchAll:!1})}};function Ka(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Qa(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ka(Object(r),!0).forEach((function(t){Ya(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ka(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ya(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Ja=class extends Ta{getUrl(){return`${this.getBaseApiUrl()}/users`}getUsersInEnterprise(e,t,r,n,i=50){this.errorCode="fetch_enterprise_users_error",this.markerGet({id:e,limit:i,successCallback:t,errorCallback:r,requestData:Qa({usemarker:!0},n),shouldFetchAll:!1})}},Za=class extends Yi{getUrlForGroupCount(e){return`${this.getBaseApiUrl()}/groups/${e}/memberships`}getGroupCount({errorCallback:e=it(),successCallback:t=it(),group:r,file:n}){return new Promise(((i,o)=>this.get({id:n.id,url:this.getUrlForGroupCount(r.id),successCallback:(...e)=>{t(...e),i(...e)},errorCallback:(...t)=>{e(...t),o()},requestData:{params:{limit:1}}})))}},es=class extends Yi{getUrl(){return`${this.getBaseApiUrl()}/users/me`}getAvatarUrl(e){if(!e)throw new Error("Missing user id");return`${this.getBaseApiUrl()}/users/${e}/avatar`}async getAvatarUrlWithAccessToken(e,t){if(!e)return null;const r=this.getCache();if(r.has(e))return r.get(e);const n=await Ri.getReadToken(zi(t),this.options.token);if("string"==typeof n){const t={access_token:n,pic_type:"large"},i=an.stringify(t),o=`${this.getAvatarUrl(e)}?${i}`;return r.set(e,o),o}return null}getUser(e,t,r,n={}){this.errorCode="fetch_current_user_error",this.get({id:e,successCallback:t,errorCallback:r,requestData:n})}};var ts=__webpack_require__(87579),rs=__webpack_require__.n(ts);function ns(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function is(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ns(Object(r),!0).forEach((function(t){os(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ns(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function os(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const as=class extends Fo{getMetadataCacheKey(e){return`metadata_${e}`}getSkillsCacheKey(e){return`${this.getMetadataCacheKey(e)}_skills`}getClassificationCacheKey(e){return`${this.getMetadataCacheKey(e)}_classification`}getMetadataUrl(e,t,r){const n=`${this.getUrl(e)}/metadata`;return t&&r?`${n}/${t}/${r}`:n}getMetadataTemplateUrl(){return`${this.getBaseApiUrl()}/metadata_templates`}getMetadataTemplateUrlForInstance(e){return`${this.getMetadataTemplateUrl()}?metadata_instance_id=${e}`}getMetadataTemplateSchemaUrl(e){return`${this.getMetadataTemplateUrl()}/enterprise/${e}/schema`}getMetadataTemplateUrlForScope(e){return`${this.getMetadataTemplateUrl()}/${e}`}getCustomPropertiesTemplate(){return{id:rt()("metadata_template_"),scope:_,templateKey:P,hidden:!1,fields:[]}}createEditor(e,t,r){const n={};return Object.keys(e).forEach((t=>{t.startsWith("$")||(n[t]=e[t])})),{template:t,instance:{id:e.$id,canEdit:e.$canEdit&&r,data:n}}}async getTemplates(e,t,r){this.errorCode="fetch_metadata_templates_error";let n={};const i=r?this.getMetadataTemplateUrlForInstance(r):this.getMetadataTemplateUrlForScope(t);try{n=await this.xhr.get({url:i,id:zi(e),params:{limit:1e3}})}catch(e){const{status:t}=e;if(Wi(t))throw e}return mi()(n,"data.entries",[])}getSchemaByTemplateKey(e){const t=this.getMetadataTemplateSchemaUrl(e);return this.xhr.get({url:t})}async getInstances(e){this.errorCode=me;let t={};try{t=await this.xhr.get({url:this.getMetadataUrl(e),id:zi(e)})}catch(e){const{status:t}=e;if(Wi(t))throw e}return mi()(t,"data.entries",[])}getUserAddableTemplates(e,t,r,n){let i=[];return r&&(i=n?[e]:[e].concat(t)),i.filter((e=>!e.hidden&&e.templateKey!==k))}extractClassification(e,t){const r=t.find((e=>e.$template===k));if(r){t.splice(t.indexOf(r),1);const n=this.getCache(),i=this.getClassificationCacheKey(e);n.set(i,r)}return t}async getTemplateForInstance(e,t,r){const n=t.$id,i=t.$template,o=t.$scope;let a=r.find((e=>e.templateKey===i&&e.scope===o));return!a&&o.startsWith(O)&&(a=(await this.getTemplates(e,o,n))[0]),a}async getEditors(e,t,r,n,i,o){const a=[r].concat(n,i),s=[];return await Promise.all(t.map((async t=>{const r=await this.getTemplateForInstance(e,t,a);r&&s.push(this.createEditor(t,r,o))}))),s}createTemplateInstance(e,t,r){const n=[];return t.templateKey!==P?(t.fields||[]).forEach((t=>{n.push(is(is({},t),{},{value:e[t.key]}))})):Object.keys(e).forEach((t=>{t.startsWith("$")||n.push({key:t,type:"string",value:e[t]})})),{canEdit:e.$canEdit&&r,displayName:t.displayName,hidden:t.hidden,id:t.id,fields:n,scope:t.scope,templateKey:t.templateKey,type:e.$type}}async getTemplateInstances(e,t,r,n,i,o){const a=[r].concat(n,i),s=[];return await Promise.all(t.map((async t=>{const r=await this.getTemplateForInstance(e,t,a);r&&s.push(this.createTemplateInstance(t,r,o))}))),s}async getMetadata(e,t,r,n,i={},o=!1){const{id:a,permissions:s,is_externally_owned:l}=e;if(this.errorCode=me,this.successCallback=t,this.errorCallback=r,!a||!s)return void this.errorHandler(Vi());const c=this.getCache(),u=this.getMetadataCacheKey(a);if(i.forceFetch&&c.unset(u),!c.has(u)||(this.successHandler(c.get(u)),i.refreshCache))try{const e=this.getCustomPropertiesTemplate(),[t,r,i]=await Promise.all([this.getInstances(a),this.getTemplates(a,_),n?this.getTemplates(a,O):Promise.resolve([])]),d=this.extractClassification(a,t),h=o?await this.getTemplateInstances(a,d,e,i,r,!!s.can_upload):[],f={editors:o?[]:await this.getEditors(a,d,e,i,r,!!s.can_upload),templateInstances:h,templates:this.getUserAddableTemplates(e,i,n,l)};c.set(u,f),this.isDestroyed()||this.successHandler(f)}catch(e){this.errorHandler(e)}}async getSkills(e,t,r,n=!1){this.errorCode="fetch_skills_error";const{id:i}=e;if(!i)return void r(Vi(),this.errorCode);const o=this.getCache(),a=this.getSkillsCacheKey(i);if(this.successCallback=t,this.errorCallback=r,n&&o.unset(a),o.has(a))return void this.successHandler(o.get(a));let s={data:mi()(e,J)};try{if(s.data||(s=await this.xhr.get({url:this.getMetadataUrl(i,_,x),id:zi(i)})),!this.isDestroyed()){const e=s.data.cards||[];o.set(a,e),this.successHandler(e)}}catch(e){this.errorHandler(e)}}async updateSkills(e,t,r,n){this.errorCode="update_skills_error";const{id:i,permissions:o}=e;if(i&&o)if(o.can_upload){this.successCallback=r,this.errorCallback=n;try{const e=await this.xhr.put({url:this.getMetadataUrl(i,_,x),headers:{[S]:"application/json-patch+json"},id:zi(i),data:t});if(!this.isDestroyed()){const t=e.data.cards||[];this.merge(this.getCacheKey(i),J,e.data),this.getCache().set(this.getSkillsCacheKey(i),t),this.successHandler(t)}}catch(e){this.errorHandler(e)}}else n($i(),this.errorCode);else n(Vi(),this.errorCode)}async updateMetadata(e,t,r,n,i){this.errorCode=Pe,this.successCallback=n,this.errorCallback=i;const{id:o,permissions:a}=e;if(!o||!a)return void this.errorHandler(Vi());const s=!!a.can_upload;if(s)try{const e=await this.xhr.put({url:this.getMetadataUrl(o,t.scope,t.templateKey),headers:{[S]:"application/json-patch+json"},id:zi(o),data:r});if(!this.isDestroyed()){const r=this.getCache(),n=this.getMetadataCacheKey(o),i=r.get(n),a=this.createEditor(e.data,t,s);i&&i.editors&&i.editors.splice(i.editors.findIndex((({instance:e})=>e.id===a.instance.id)),1,a),this.successHandler(a)}}catch(e){this.errorHandler(e)}else this.errorHandler($i())}async updateMetadataRedesign(e,t,r,n,i){this.errorCode=Pe,this.successCallback=n,this.errorCallback=i;const{id:o,permissions:a}=e;if(o&&a)if(a.can_upload)try{if(await this.xhr.put({url:this.getMetadataUrl(o,t.scope,t.templateKey),headers:{[S]:"application/json-patch+json"},id:zi(o),data:r}),!this.isDestroyed()){const e=this.getCache(),r=this.getMetadataCacheKey(o),n=e.get(r);n&&n.templateInstances&&n.templateInstances.splice(n.templateInstances.findIndex((e=>e.scope===t.scope&&e.templateKey===t.templateKey)),1,t),this.successHandler()}}catch(e){this.errorHandler(e)}else this.errorHandler($i());else this.errorHandler(Vi())}async createMetadata(e,t,r,n){if(this.errorCode=Ee,!e||!t)return void n(Vi(),this.errorCode);const{id:i,permissions:o,is_externally_owned:a}=e;if(!i||!o)return void n(Vi(),this.errorCode);const s=!!o.can_upload,l=t.templateKey===P&&t.scope===_;if(!s||a&&!l)n($i(),this.errorCode);else{this.successCallback=r,this.errorCallback=n;try{const e=await this.xhr.post({url:this.getMetadataUrl(i,t.scope,t.templateKey),id:zi(i),data:{}});if(!this.isDestroyed()){const r=this.getCache(),n=this.getMetadataCacheKey(i),o=r.get(n),a=this.createEditor(e.data,t,s);o.editors.push(a),this.successHandler(a)}}catch(e){this.errorHandler(e)}}}async createMetadataRedesign(e,t,r,n){if(this.errorCode=Ee,!e||!t)return void n(Vi(),this.errorCode);const{id:i,permissions:o,is_externally_owned:a}=e;if(!i||!o)return void n(Vi(),this.errorCode);const s=!!o.can_upload,l=t.templateKey===P&&t.scope===_;if(!s||a&&!l)n($i(),this.errorCode);else{this.successCallback=r,this.errorCallback=n;try{const e=t.fields.reduce(((e,t)=>{let{value:r}=t;return"float"===t.type&&r&&(r=parseFloat(t.value)),"enum"===t.type&&r&&0===r.length&&(r=void 0),e[t.key]=r,e}),{}),r=await this.xhr.post({url:this.getMetadataUrl(i,t.scope,t.templateKey),id:zi(i),data:e});if(!this.isDestroyed()){const e=this.getCache(),n=this.getMetadataCacheKey(i),o=e.get(n),a=is(is({},t),{},{type:r.data.$type});o.templateInstances.push(a),this.successHandler(a)}}catch(e){this.errorHandler(e)}}}async deleteMetadata(e,t,r,n,i=!1){if(this.errorCode="delete_metadata_error",!e||!t)return void n(Vi(),this.errorCode);const{scope:o,templateKey:a}=t,{id:s,permissions:l}=e;if(s&&l)if(l.can_upload){this.successCallback=r,this.errorCallback=n;try{if(await this.xhr.delete({url:this.getMetadataUrl(s,o,a),id:zi(s)}),!this.isDestroyed()){const e=this.getCache(),t=this.getMetadataCacheKey(s),r=e.get(t);i?r.templateInstances.splice(r.templateInstances.findIndex((e=>e.scope===o&&e.templateKey===a)),1):r.editors.splice(r.editors.findIndex((e=>e.template.scope===o&&e.template.templateKey===a)),1),this.successHandler()}}catch(e){this.errorHandler(e)}}else n($i(),this.errorCode);else n(Vi(),this.errorCode)}getMetadataSuggestionsUrl(){return`${this.getBaseApiUrl()}/metadata_instances/suggestions`}async getMetadataSuggestions(e,t,r,n,i=A){if(this.errorCode="fetch_metadata_suggestions_error",!e||t!==d)throw Vi();if(!r)throw new Error("Missing scope");if(!n)throw new Error("Missing templateKey");if(i!==A)throw new Error(`Invalid confidence level: "${i}"`);let o={};try{o=await this.xhr.get({url:this.getMetadataSuggestionsUrl(),id:zi(e),params:{item:`${t}_${e}`,scope:r,template_key:n,confidence:i}})}catch(e){const{status:t}=e;if(Wi(t))throw e}if(!rs()(o)&&0===mi()(o,"data.suggestions").length)throw this.errorCode="empty_metadata_suggestions_error",new Error("No suggestions found.");return mi()(o,"data.suggestions",[])}getMetadataOptionsUrl(e,t,r){return`${this.getBaseApiUrl()}/metadata_templates/${e}/${t}/fields/${r}/options`}async getMetadataOptions(e,t,r,n,i,o){if(this.errorCode="fetch_metadata_options_error",!e)throw Vi();if(!t)throw new Error("Missing scope");if(!r)throw new Error("Missing templateKey");if(!n)throw new Error("Missing fieldKey");if(!i&&0!==i)throw new Error("Missing level");const a=this.getMetadataOptionsUrl(t,r,n),{marker:s,searchInput:l,signal:c}=o,u=is(is(is({},s?{marker:s}:{}),l?{query_text:l}:{}),i||0===i?{level:i}:{});c&&(c.onabort=()=>Fa(this.xhr));const d=await this.xhr.get({url:a,id:zi(e),params:u});return mi()(d,"data",{})}};function ss(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ls(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ss(Object(r),!0).forEach((function(t){cs(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ss(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function cs(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const us=class extends Ta{constructor(...e){super(...e),cs(this,"successHandler",(e=>{if(this.isDestroyed()||"function"!=typeof this.successCallback)return;const t=e.entries.map((e=>{let t;return"group"===e.type?t=e:(t=e,t.email=t.login),{id:e.id,name:e.name,item:t}}));this.successCallback(ls(ls({},e),{},{entries:t}))})),cs(this,"getCollaboratorsWithQuery",((e,t,r,n,{includeGroups:i=!1}={})=>{n&&""!==n.trim()&&this.getFileCollaborators(e,t,r,{filter_term:n,include_groups:i,include_uploader_collabs:!1})}))}getUrl(e){if(!e)throw new Error("Missing file id!");return`${this.getBaseApiUrl()}/files/${e}/collaborators`}getFileCollaborators(e,t,r,n={},i=25){this.markerGet({id:e,limit:i,successCallback:t,errorCallback:r,requestData:n})}};function ds(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const hs=class extends Ta{constructor(...e){super(...e),ds(this,"getCollaborations",((e,t,r,n={},i=25)=>{this.markerGet({id:e,limit:i,successCallback:t,errorCallback:r,requestData:n})})),ds(this,"successHandler",(e=>{this.isDestroyed()||"function"!=typeof this.successCallback||this.successCallback(e)}))}getUrl(e){return`getUrl(${e}) should be overridden`}},fs=class extends hs{getUrl(e){if(!e)throw new Error("Missing file ID!");return`${this.getBaseApiUrl()}/files/${e}/collaborations`}},ps=class extends hs{getUrl(e){if(!e)throw new Error("Missing folder ID!");return`${this.getBaseApiUrl()}/folders/${e}/collaborations`}};function ms(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function bs(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ms(Object(r),!0).forEach((function(t){gs(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ms(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function gs(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ys=class extends Yi{constructor(...e){super(...e),gs(this,"addCollaboration",((e,t,r,n)=>{const{id:i}=e;this.post({id:i,data:{data:bs({item:e},t)},errorCallback:n,successCallback:r,url:this.getUrl()})}))}getUrl(){return`${this.getBaseApiUrl()}/collaborations`}},vs={appActivityDeleteErrorMessage:{id:"be.api.appActivityDeleteErrorMessage",defaultMessage:"There was an error deleting this item."},commentCreateErrorMessage:{id:"be.api.commentCreateErrorMessage",defaultMessage:"There was an error creating this comment."},commentCreateConflictMessage:{id:"be.api.commentCreateConflictMessage",defaultMessage:"This comment already exists."},commentDeleteErrorMessage:{id:"be.api.commentDeleteErrorMessage",defaultMessage:"There was an error deleting this comment."},commentUpdateErrorMessage:{id:"be.api.commentUpdateErrorMessage",defaultMessage:"This comment could not be modified."},repliesFetchErrorMessage:{id:"be.api.repliesFetchErrorMessage",defaultMessage:"The replies to this comment could not be loaded."},taskActionErrorTitle:{id:"be.api.taskActionErrorTitle",defaultMessage:"Error"},taskApproveErrorMessage:{id:"be.api.taskApproveErrorMessage",defaultMessage:"An error has occurred while approving this task. Please refresh the page and try again."},taskCompleteErrorMessage:{id:"be.api.taskCompleteErrorMessage",defaultMessage:"An error has occurred while completing this task. Please refresh the page and try again."},taskRejectErrorMessage:{id:"be.api.taskRejectErrorMessage",defaultMessage:"An error has occurred while rejecting this task. Please refresh the page and try again."},taskDeleteErrorMessage:{id:"be.api.taskDeleteErrorMessage",defaultMessage:"There was an error while deleting this task. Please refresh the page and try again."},taskCreateErrorMessage:{id:"be.api.taskCreateErrorMessage",defaultMessage:"An error occurred while creating this task. Please try again."},taskGroupExceedsLimitWarningMessage:{id:"be.api.taskGroupExceedsWarningTitle",defaultMessage:"One or more groups can not receive this task as a group size cannot exceed the limit of {max} assignees per group."}};function ws(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Es(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ws(Object(r),!0).forEach((function(t){Ss(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ws(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ss(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class Cs extends Ta{constructor(...e){super(...e),Ss(this,"successHandler",(e=>{if(this.isDestroyed()||"function"!=typeof this.successCallback)return;if(!e)return void this.successCallback();if(!e.entries)return e.type&&"comment"===e.type?void this.successCallback(Ra(e)):void this.successCallback(this.formatReplies(e));if(e.entries.length&&"comment"===e.entries[0].type){const t=e.entries.map(Ra);return void this.successCallback(Es(Es({},e),{},{entries:t}))}const t=e.entries.map(this.formatReplies);this.successCallback(Es(Es({},e),{},{entries:t}))}))}formatReplies(e){return e.replies&&e.replies.length?Es(Es({},e),{},{replies:e.replies.map(Ra)}):e}getUrl(){return`${this.getBaseApiUrl()}/undoc/annotations`}getUrlForId(e){return`${this.getUrl()}/${e}`}getUrlWithRepliesForId(e){return`${this.getUrlForId(e)}/replies`}createAnnotation(e,t,r,n,i,o){this.errorCode="create_annotation_error";try{this.checkApiCallValidity(re,n,e)}catch(e){return void o(e,this.errorCode)}const a={description:{type:"reply"},file_version:{id:t,type:"file_version"}};this.post({id:e,data:{data:ui()(a,r)},errorCallback:o,successCallback:i,url:this.getUrl()})}updateAnnotation(e,t,r,n,i,o){this.errorCode="edit_annotation_error";const{message:a,status:s}=n;if(a)try{this.checkApiCallValidity(ie,r,e)}catch(e){return void o(e,this.errorCode)}if(s)try{this.checkApiCallValidity(oe,r,e)}catch(e){return void o(e,this.errorCode)}this.put({id:e,data:{data:{description:a?{message:a}:void 0,status:s}},errorCallback:o,successCallback:i,url:this.getUrlForId(t)})}deleteAnnotation(e,t,r,n,i){this.errorCode="delete_annotation_error";try{this.checkApiCallValidity(ne,r,e)}catch(e){return void i(e,this.errorCode)}this.delete({id:e,errorCallback:i,successCallback:n,url:this.getUrlForId(t)})}getAnnotation(e,t,r,n,i,o){this.errorCode="fetch_annotation_error";try{this.checkApiCallValidity(se,r,e)}catch(e){return void i(e,this.errorCode)}const a=o?{params:{fields:"replies"}}:void 0;this.get({id:e,errorCallback:i,successCallback:n,url:this.getUrlForId(t),requestData:a})}getAnnotations(e,t,r,n,i,o,a,s){this.errorCode="fetch_annotations_error";try{this.checkApiCallValidity(se,r,e)}catch(e){return void i(e,this.errorCode)}const l=Es({file_id:e,file_version_id:t},s?{fields:"replies"}:null);this.markerGet({id:e,errorCallback:i,limit:o,requestData:l,shouldFetchAll:a,successCallback:n})}getAnnotationReplies(e,t,r,n,i){this.errorCode=fe;try{this.checkApiCallValidity(se,r,e)}catch(e){return void i(e,this.errorCode)}this.get({id:e,errorCallback:i,successCallback:n,url:this.getUrlWithRepliesForId(t)})}createAnnotationReply(e,t,r,n,i,o){this.errorCode=ye;try{this.checkApiCallValidity(re,r,e)}catch(e){return void o(e,this.errorCode)}this.post({id:e,data:{data:{message:n}},errorCallback:o,successCallback:i,url:`${this.getUrlWithRepliesForId(t)}?file_id=${e}`})}}function ks(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const xs=class extends Ta{constructor(...e){super(...e),ks(this,"permissions",{}),ks(this,"mapAppActivityItem",(e=>{const{activity_template:t,app:r,created_by:n,id:i,occurred_at:o,rendered_text:a,type:s}=e,{can_delete:l}=this.permissions;return{activity_template:t,app:r,created_at:o,created_by:n,id:i,permissions:{can_delete:l},rendered_text:a,type:s}})),ks(this,"successHandler",(({entries:e=[]})=>{if(this.isDestroyed()||"function"!=typeof this.successCallback)return;const t=e.map(this.mapAppActivityItem);this.successCallback({entries:t,total_count:t.length})})),ks(this,"errorHandler",(e=>{if(this.isDestroyed()&&"function"!=typeof this.errorCallback)return;const{response:t}=e;404===t.status?this.successHandler({entries:[],total_count:0}):this.errorCallback(e,t.status)}))}getUrl(){return`${this.getBaseApiUrl()}/app_activities`}getDeleteUrl(e){if(!e)throw new Error("Missing file id!");return`${this.getUrl()}/${e}`}getAppActivity(e,t,r,n){const i={item_id:e,item_type:"file",fields:Po.toString()};this.permissions=t,this.markerGet({id:e,successCallback:r,errorCallback:n,requestData:i})}deleteAppActivity({id:e,appActivityId:t,successCallback:r,errorCallback:n}){this.errorCode="delete_app_activity_error",this.delete({id:e,url:this.getDeleteUrl(t),successCallback:r,errorCallback:n})}},Ps=({restored_at:e,trashed_at:t,version_promoted:r})=>{let n=Ue;return t&&(n="delete"),e&&(n="restore"),r&&(n="promote"),n};function _s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Os(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_s(Object(r),!0).forEach((function(t){As(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function As(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Ts=m;function Is(e){return e?e.reduce(((e,t)=>{const r=e.pop();if(!r)return e.concat([t]);if(t.type===Ts&&r.type===Ts&&Ps(t)===Ue&&Ps(r)===Ue){const{modified_by:n,versions:i=[r],version_start:o=parseInt(r.version_number,10),version_end:a=parseInt(r.version_number,10)}=r,s=n||He,{modified_by:l,created_at:c,trashed_at:u,id:d,version_number:h}=t,f=parseInt(h,10),p=r.collaborators||{[s.id]:Os({},s)},m=l||He;return p[m.id]=Os({},m),e.concat([{collaborators:p,created_at:c,modified_by:m,trashed_at:u,id:d,type:Ts,version_number:h,versions:i.concat([t]),version_start:Math.min(o,f),version_end:Math.max(a,f)}])}return e.concat([r,t])}),[]):[]}const Ms=["replies"],Ds=["replies"],Rs=["replies","total_reply_count"],Fs=["replies","total_reply_count"];function Ls(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function js(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ls(Object(r),!0).forEach((function(t){Ns(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ls(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ns(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Us(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}const Hs=$e,Bs=e=>[...e].map((e=>js(js({},e),{},{tagged_message:e.tagged_message||e.message||""}))),zs=class extends Yi{constructor(e){super(e),Ns(this,"updateAnnotation",((e,t,r,n,i,o,a)=>{if(!e.id)throw Vi();if(!r&&!n)throw Gi();this.annotationsAPI=new Cs(this.options),this.file=e,this.errorCallback=a;const s={};r&&(s.message=r),n&&(s.status=n),this.updateFeedItem(js(js({},s),{},{isPending:!0}),t),this.annotationsAPI.updateAnnotation(this.file.id,t,i,s,(e=>{const{replies:r,total_reply_count:n}=e,i=Us(e,Rs);this.updateFeedItem(js(js({},i),{},{isPending:!1}),t),this.isDestroyed()||o(e)}),((e,r)=>{this.updateCommentErrorCallback(e,r,t)}))})),Ns(this,"updateCommentErrorCallback",((e,t,r)=>{this.updateFeedItem(this.createFeedError(vs.commentUpdateErrorMessage),r),this.feedErrorCallback(!0,e,t)})),Ns(this,"updateReplyErrorCallback",((e,t,r,n)=>{this.updateReplyItem(this.createFeedError(vs.commentUpdateErrorMessage),n,r),this.feedErrorCallback(!0,e,t)})),Ns(this,"fetchRepliesErrorCallback",((e,t,r)=>{this.updateFeedItem(this.createFeedError(vs.repliesFetchErrorMessage),r),this.feedErrorCallback(!0,e,t)})),Ns(this,"deleteAnnotation",((e,t,r,n,i)=>{if(this.annotationsAPI=new Cs(this.options),!e.id)throw Vi();this.file=e,this.errorCallback=i,this.updateFeedItem({isPending:!0},t),this.annotationsAPI.deleteAnnotation(this.file.id,t,r,this.deleteFeedItem.bind(this,t,n),((e,r)=>{this.deleteCommentErrorCallback(e,r,t)}))})),Ns(this,"fetchThreadedCommentSuccessCallback",((e,t,r)=>{t(r),e()})),Ns(this,"updateTaskCollaborator",((e,t,r,n,i,o)=>{if(!e.id)throw Vi();this.file=e,this.errorCallback=o,this.updateFeedItem({isPending:!0},t);const a=new Sa(this.options);this.taskCollaboratorsAPI.push(a);const s={id:r,status:n},l=(e,r)=>{let i;switch(n){case"APPROVED":i=vs.taskApproveErrorMessage;break;case"COMPLETED":default:i=vs.taskCompleteErrorMessage;break;case"REJECTED":i=vs.taskRejectErrorMessage}this.updateFeedItem(this.createFeedError(i,vs.taskActionErrorTitle),t),this.feedErrorCallback(!0,e,r)};a.updateTaskCollaborator({file:e,taskCollaborator:s,successCallback:r=>{this.updateTaskCollaboratorSuccessCallback(t,e,r,i,l)},errorCallback:l})})),Ns(this,"updateTaskCollaboratorSuccessCallback",((e,t,r,n,i)=>{this.tasksNewAPI=new ya(this.options),this.tasksNewAPI.getTask({id:e,file:t,successCallback:t=>{this.updateFeedItem(js(js({},t),{},{isPending:!1}),e),n(r)},errorCallback:i})})),Ns(this,"updateTaskNew",(async(e,t,r=it(),n=it())=>{if(!e.id)throw Vi();this.file=e,this.errorCallback=n,this.tasksNewAPI=new ya(this.options),this.updateFeedItem({isPending:!0},t.id);try{const n=t.addedAssignees.filter((e=>e.item&&"group"===e.item.type)).map((e=>e.id)).map((t=>new Za(this.options).getGroupCount({file:e,group:{id:t}}))),i=(await Promise.all(n)).some((e=>e.total_count>250)),o={code:Ce,type:"warning"};if(i)return void this.feedErrorCallback(!1,o,Ce);await new Promise(((r,n)=>{this.tasksNewAPI.updateTaskWithDeps({file:e,task:t,successCallback:r,errorCallback:n})})),await new Promise(((r,n)=>{this.tasksNewAPI.getTask({file:e,id:t.id,successCallback:e=>{this.updateFeedItem(js(js({},e),{},{isPending:!1}),t.id),r()},errorCallback:e=>{this.updateFeedItem({isPending:!1},t.id),this.feedErrorCallback(!1,e,ke),n()}})})),this.isDestroyed()||r()}catch(e){this.updateFeedItem({isPending:!1},t.id),this.feedErrorCallback(!1,e,ke)}})),Ns(this,"deleteComment",((e,t,r,n,i)=>{if(this.commentsAPI=new sa(this.options),!e.id)throw Vi();this.file=e,this.errorCallback=i,this.updateFeedItem({isPending:!0},t),this.commentsAPI.deleteComment({file:e,commentId:t,permissions:r,successCallback:this.deleteFeedItem.bind(this,t,n),errorCallback:(e,r)=>{this.deleteCommentErrorCallback(e,r,t)}})})),Ns(this,"deleteThreadedComment",((e,t,r,n,i)=>{if(!e.id)throw Vi();this.file=e,this.errorCallback=i,this.updateFeedItem({isPending:!0},t),this.threadedCommentsAPI=new Ua(this.options),this.threadedCommentsAPI.deleteComment({fileId:e.id,commentId:t,permissions:r,successCallback:this.deleteFeedItem.bind(this,t,n),errorCallback:(e,r)=>{this.deleteCommentErrorCallback(e,r,t)}})})),Ns(this,"deleteReply",((e,t,r,n,i,o)=>{if(!e.id)throw Vi();this.file=e,this.errorCallback=o,this.updateReplyItem({isPending:!0},r,t),this.threadedCommentsAPI=new Ua(this.options),this.threadedCommentsAPI.deleteComment({fileId:e.id,commentId:t,permissions:n,successCallback:this.deleteReplySuccessCallback.bind(this,t,r,i),errorCallback:(e,n)=>{this.deleteReplyErrorCallback(e,n,t,r)}})})),Ns(this,"deleteReplySuccessCallback",((e,t,r)=>{this.modifyFeedItemRepliesCountBy(t,-1),this.deleteReplyItem(e,t,r)})),Ns(this,"deleteCommentErrorCallback",((e,t,r)=>{this.updateFeedItem(this.createFeedError(vs.commentDeleteErrorMessage),r),this.feedErrorCallback(!0,e,t)})),Ns(this,"deleteReplyErrorCallback",((e,t,r,n)=>{this.updateReplyItem(this.createFeedError(vs.commentDeleteErrorMessage),n,r),this.feedErrorCallback(!0,e,t)})),Ns(this,"createTaskNew",((e,t,r,n,i,o,a,s,l)=>{if(!e.id)throw Vi();this.file=e,this.errorCallback=l;const c=rt()("task_");let u;o&&(u=new Date(o).toISOString());const d={created_by:{type:"task_collaborator",target:t,id:rt()(),role:"CREATOR",status:Hs},completion_rule:a,created_at:(new Date).toISOString(),due_at:u,id:c,description:r,type:"task",assigned_to:{entries:n.map((e=>({id:rt()(),target:js(js({},e),{},{avatar_url:"",type:"user"}),status:Hs,permissions:{can_delete:!1,can_update:!1},role:"ASSIGNEE",type:"task_collaborator"}))),limit:10,next_marker:null},permissions:{can_update:!1,can_delete:!1,can_create_task_collaborator:!1,can_create_task_link:!1},task_links:{entries:[{id:rt()(),type:"task_link",target:js({type:"file"},e),permissions:{can_delete:!1,can_update:!1}}],limit:1,next_marker:null},task_type:i,status:$e},h={description:r,due_at:u,task_type:i,completion_rule:a},f=n.filter((e=>"group"===(e.item&&e.item.type))).map((e=>e.id)).map((t=>new Za(this.options).getGroupCount({file:e,group:{id:t}})));Promise.all(f).then((r=>{const i=r.some((e=>e.total_count>250)),o={code:Ce,type:"warning"};i?this.feedErrorCallback(!1,o,Ce):(this.tasksNewAPI=new ya(this.options),this.tasksNewAPI.createTaskWithDeps({file:e,task:h,assignees:n,successCallback:e=>{this.addPendingItem(this.file.id,t,d),this.updateFeedItem(js(js({},e),{},{task_links:{entries:e.task_links,next_marker:null,limit:1},assigned_to:{entries:e.assigned_to,next_marker:null,limit:e.assigned_to.length},isPending:!1}),c),s(e)},errorCallback:(e,t)=>{this.feedErrorCallback(!1,e,t)}}))})).catch((e=>{this.feedErrorCallback(!1,e,ve)}))})),Ns(this,"deleteTaskNew",((e,t,r=it(),n=it())=>{if(!e.id)throw Vi();this.file=e,this.errorCallback=n,this.tasksNewAPI=new ya(this.options),this.updateFeedItem({isPending:!0},t.id),this.tasksNewAPI.deleteTask({file:e,task:t,successCallback:this.deleteFeedItem.bind(this,t.id,r),errorCallback:(e,r)=>{this.updateFeedItem(this.createFeedError(vs.taskDeleteErrorMessage),t.id),this.feedErrorCallback(!0,e,r)}})})),Ns(this,"deleteFeedItem",((e,t=it())=>{const r=this.getCachedItems(this.file.id);if(r){const n=r.items.filter((t=>t.id!==e));this.setCachedItems(this.file.id,n),this.isDestroyed()||t(e)}})),Ns(this,"deleteReplyItem",((e,t,r=it())=>{const n=(this.getCachedItems(this.file.id)||{items:[],errors:[]}).items.map((r=>r.id!==t?r:r.type===f||r.type===p?((e,t)=>{const{replies:r=[]}=e,n=Us(e,Ms);return js({replies:r.filter((({id:e})=>e!==t))},n)})(r,e):r));this.setCachedItems(this.file.id,n),this.isDestroyed()||r(e,t)})),Ns(this,"feedErrorCallback",((e=!1,t,r)=>{e&&this.errors.push(js(js({},t),{},{code:r})),!this.isDestroyed()&&this.errorCallback&&this.errorCallback(t,r,{error:t,[Oe]:e}),console.error(t)})),Ns(this,"addPendingItem",((e,t,r)=>{if(!t)throw qi();const n=(new Date).toISOString(),i=js({created_at:n,created_by:t,modified_at:n,isPending:!0},r),o=this.getCachedItems(this.file.id),a=[...o?o.items:[],i];return this.setCachedItems(e,a),i})),Ns(this,"addPendingReply",((e,t,r)=>{if(!this.file.id)throw Vi();if(!t)throw qi();const n=(new Date).toISOString(),i=js({created_at:n,created_by:t,modified_at:n,isPending:!0},r),o=this.getCachedItems(this.file.id);if(o){const t=o.items.map((t=>t.id===e&&t.type===p||t.id===e&&t.type===f?((e,t)=>{const{replies:r=[]}=e;return js({replies:[...r,t]},Us(e,Ds))})(t,i):t));this.setCachedItems(this.file.id,t)}return i})),Ns(this,"createCommentSuccessCallback",((e,t,r)=>{const{message:n="",tagged_message:i=""}=e;e.tagged_message=i||n,this.updateFeedItem(js(js({},e),{},{isPending:!1}),t),this.isDestroyed()||r(e)})),Ns(this,"createCommentErrorCallback",((e,t,r)=>{const n=409===e.status?vs.commentCreateConflictMessage:vs.commentCreateErrorMessage;this.updateFeedItem(this.createFeedError(n),r),this.feedErrorCallback(!1,e,t)})),Ns(this,"createReplySuccessCallback",((e,t,r,n)=>{this.updateReplyItem(js(js({},e),{},{isPending:!1}),t,r),this.isDestroyed()||n(e)})),Ns(this,"createReplyErrorCallback",((e,t,r,n)=>{const i=409===e.status?vs.commentCreateConflictMessage:vs.commentCreateErrorMessage;this.updateReplyItem(this.createFeedError(i),r,n),this.feedErrorCallback(!1,e,t)})),Ns(this,"updateFeedItem",((e,t)=>{if(!this.file.id)throw Vi();const r=this.getCachedItems(this.file.id);if(r){const n=r.items.map((r=>r.id===t?js(js({},r),e):r));return this.setCachedItems(this.file.id,n),n}return null})),Ns(this,"updateReplyItem",((e,t,r)=>{if(!this.file.id)throw Vi();const n=this.getCachedItems(this.file.id);if(n){const i=n.items.map((n=>n.id===t&&n.type===p||n.id===t&&n.type===f?((e,t,r)=>{const n=js({},e);return n.replies&&(n.replies=n.replies.map((e=>e.id===t?js(js({},e),r):e))),n})(n,r,e):n));this.setCachedItems(this.file.id,i)}})),Ns(this,"createComment",((e,t,r,n,i,o)=>{const a=rt()("comment_"),s={id:a,tagged_message:r,type:p};if(!e.id)throw Vi();this.file=e,this.errorCallback=o,this.addPendingItem(this.file.id,t,s);const l={};n?l.taggedMessage=r:l.message=r,this.commentsAPI=new sa(this.options),this.commentsAPI.createComment(js(js({file:e},l),{},{successCallback:e=>{this.createCommentSuccessCallback(e,a,i)},errorCallback:(e,t)=>{this.createCommentErrorCallback(e,t,a)}}))})),Ns(this,"createThreadedComment",((e,t,r,n,i)=>{if(!e.id)throw Vi();const o=rt()("comment_"),a={id:o,tagged_message:r,type:p};this.file=e,this.errorCallback=i,this.addPendingItem(this.file.id,t,a),this.threadedCommentsAPI=new Ua(this.options),this.threadedCommentsAPI.createComment({file:e,message:r,successCallback:e=>{this.createCommentSuccessCallback(e,o,n)},errorCallback:(e,t)=>{this.createCommentErrorCallback(e,t,o)}})})),Ns(this,"updateComment",((e,t,r,n,i,o,a)=>{const s={tagged_message:r};if(!e.id)throw Vi();this.file=e,this.errorCallback=a,this.updateFeedItem(js(js({},s),{},{isPending:!0}),t);const l={};n?l.tagged_message=r:l.message=r,this.commentsAPI=new sa(this.options),this.commentsAPI.updateComment(js(js({file:e,commentId:t,permissions:i},l),{},{successCallback:e=>{this.updateFeedItem(js(js({},l),{},{isPending:!1}),t),this.isDestroyed()||o(e)},errorCallback:(e,r)=>{this.updateCommentErrorCallback(e,r,t)}}))})),Ns(this,"updateThreadedComment",((e,t,r,n,i,o,a)=>{if(!e.id)throw Vi();if(!r&&!n)throw Gi();const s={};r&&(s.tagged_message=r),n&&(s.status=n),this.file=e,this.errorCallback=a,this.updateFeedItem(js(js({},s),{},{isPending:!0}),t),this.threadedCommentsAPI=new Ua(this.options),this.threadedCommentsAPI.updateComment({fileId:e.id,commentId:t,permissions:i,message:r,status:n,successCallback:e=>{const{replies:r,total_reply_count:n}=e,i=Us(e,Fs);this.updateFeedItem(js(js({},i),{},{isPending:!1}),t),this.isDestroyed()||o(e)},errorCallback:(e,r)=>{this.updateCommentErrorCallback(e,r,t)}})})),Ns(this,"updateReply",((e,t,r,n,i,o,a)=>{if(!e.id)throw Vi();this.file=e,this.errorCallback=a,this.updateReplyItem({tagged_message:n,isPending:!0},r,t),this.threadedCommentsAPI=new Ua(this.options),this.threadedCommentsAPI.updateComment({fileId:e.id,commentId:t,permissions:i,message:n,undefined:void 0,successCallback:e=>{this.updateReplyItem(js(js({},e),{},{isPending:!1}),r,t),this.isDestroyed()||o(e)},errorCallback:(e,n)=>{this.updateReplyErrorCallback(e,n,t,r)}})})),Ns(this,"modifyFeedItemRepliesCountBy",((e,t)=>{if(!this.file.id)throw Vi();const{items:r=[]}=this.getCachedItems(this.file.id)||{},n=r.find((({id:t})=>t===e));if(!n||"annotation"!==n.type&&"comment"!==n.type)return;const i=(n.total_reply_count||0)+t;i>=0&&this.updateFeedItem({total_reply_count:i},e)})),Ns(this,"deleteAppActivity",((e,t,r,n)=>{const{id:i}=e;if(!i)throw Vi();this.appActivityAPI=new xs(this.options),this.file=e,this.errorCallback=n,this.updateFeedItem({isPending:!0},t),this.appActivityAPI.deleteAppActivity({id:i,appActivityId:t,successCallback:this.deleteFeedItem.bind(this,t,r),errorCallback:(e,r)=>{this.deleteAppActivityErrorCallback(e,r,t)}})})),Ns(this,"deleteAppActivityErrorCallback",((e,t,r)=>{this.updateFeedItem(this.createFeedError(vs.appActivityDeleteErrorMessage),r),this.feedErrorCallback(!0,e,t)})),this.taskCollaboratorsAPI=[],this.taskLinksAPI=[],this.errors=[]}addAnnotation(e,t,r,n,i){if(!e.id)throw Vi();if(this.file=e,i){const e=js(js({},r),{},{created_by:t,id:n,type:f});this.addPendingItem(this.file.id,t,e)}else this.updateFeedItem(js(js({},r),{},{isPending:!1}),n)}getCacheKey(e){return`feedItems_${e}`}getCachedItems(e){const t=this.getCache(),r=this.getCacheKey(e);return t.get(r)}setCachedItems(e,t){const r=this.getCache(),n=this.getCacheKey(e);r.set(n,{errors:this.errors,items:t})}feedItems(e,t,r,n,i,{shouldShowAnnotations:o=!1,shouldShowAppActivity:a=!1,shouldShowReplies:s=!1,shouldShowTasks:l=!0,shouldShowVersions:c=!0,shouldUseUAA:u=!1}={},d){const{id:h,permissions:f={}}=e,p=this.getCachedItems(h);if(p){const{errors:e,items:i}=p;if(e.length?n(i,e):r(i),!t)return}this.file=e,this.errors=[],this.errorCallback=i;const b=o?this.fetchAnnotations(f,s):Promise.resolve(),g=l?this.fetchTasksNew():Promise.resolve(),y=a?this.fetchAppActivity(f):Promise.resolve(),v=c?this.fetchVersions():Promise.resolve(),w=c?this.fetchCurrentVersion():Promise.resolve(),E=o&&f[se]?[qe]:[],S=l?[Xe]:[],C=c?[Ke]:[],k=[...E,...a?[Ge]:[],...f[te]?[We]:[],...S,...C],x=u&&k.length?this.fetchFileActivities(f,k,s):Promise.resolve(),P=e=>{this.isDestroyed()||(this.setCachedItems(h,e),this.errors.length?n(e,this.errors):r(e))},_=[v,w,(()=>s?this.fetchThreadedComments(f):this.fetchComments(f))(),g,y,b],O=async e=>Promise.all(e).then((([e,t,...r])=>function(...e){return e.reduce(((e,t)=>t?e.concat(t.entries):e),[]).sort(((e,t)=>Date.parse(e.created_at)-Date.parse(t.created_at)))}(t?this.versionsAPI.addCurrentVersion(t,e,this.file):void 0,...r)));u?x.then((e=>{if(!e)return;const t=((e,t={})=>e&&e.entries&&e.entries.length?e.entries.map((e=>{if(!e.source)return null;const r=js({},e.source);switch(e.activity_type){case Xe:{const e=js({},r[Xe]);if(e.assigned_to?.entries){const t=e.assigned_to.entries.map((e=>{const t=js({},e);return t.role=e.role.toUpperCase(),t.status=e.status.toUpperCase(),t}));e.assigned_to.entries=t}return e.completion_rule&&(e.completion_rule=e.completion_rule.toUpperCase()),e.status&&(e.status=e.status.toUpperCase()),e.task_type&&(e.task_type=e.task_type.toUpperCase()),e.created_by={target:e.created_by},e}case We:{const e=js({},r[We]);if(e.replies&&e.replies.length){const t=Bs(e.replies);e.replies=t}return e.tagged_message=e.tagged_message||e.message||"",e}case qe:{const e=js({},r[qe]);if(e.replies&&e.replies.length){const t=Bs(e.replies);e.replies=t}return e}case Ge:{const e=js({},r[Ge]),{can_delete:n}=t;return e.created_at=e.occurred_at,e.permissions={can_delete:n},e}case Ke:{const e=js({},r[Ke]);if(e.type=m,e.action_by){const t={};1===e.action_by.length&&(e.uploader_display_name=e.action_by[0].name),e.action_by.map((e=>(t[e.id]=js({},e),e))),e.collaborators=t}return e.end?.number&&(e.version_end=e.end.number,e.id=e.end.id),e.start?.number&&(e.version_start=e.start.number),e.version_start===e.version_end&&(e.version_number=e.version_start,"created"===e.action_type&&e.start?.created_at&&e.start?.created_by&&(e.modified_at=e.start.created_at,e.modified_by=js({},e.start.created_by)),"trashed"===e.action_type&&e.start?.trashed_at&&e.start?.trashed_by&&(e.trashed_at=e.start.trashed_at,e.trashed_by=js({},e.start.trashed_by)),"restored"===e.action_type&&e.start?.restored_at&&e.start?.restored_by&&(e.restored_at=e.start.restored_at,e.restored_by=js({},e.start.restored_by))),e}default:return null}})).filter((e=>!!e)).reverse():[])(e,f);(async(e,t)=>{O(_).then((r=>{const n=Is(r),i=Is(e);d&&d({uaaResponse:t,uaaFeedItems:i,v2FeedItems:n})}))})(t,e),P(t)})):O(_).then((e=>{P(e)}))}fetchAnnotations(e,t){return this.annotationsAPI=new Cs(this.options),new Promise((r=>{this.annotationsAPI.getAnnotations(this.file.id,void 0,e,r,this.fetchFeedItemErrorCallback.bind(this,r),void 0,void 0,t)}))}fetchComments(e){return this.commentsAPI=new sa(this.options),new Promise((t=>{this.commentsAPI.getComments(this.file.id,e,t,this.fetchFeedItemErrorCallback.bind(this,t))}))}fetchThreadedComment(e,t,r,n){const{id:i,permissions:o}=e;if(!i||!o)throw Vi();return this.threadedCommentsAPI=new Ua(this.options),new Promise((e=>{this.threadedCommentsAPI.getComment({commentId:t,errorCallback:n,fileId:i,permissions:o,successCallback:this.fetchThreadedCommentSuccessCallback.bind(this,e,r)})}))}fetchThreadedComments(e){return this.threadedCommentsAPI=new Ua(this.options),new Promise((t=>{this.threadedCommentsAPI.getComments({errorCallback:this.fetchFeedItemErrorCallback.bind(this,t),fileId:this.file.id,permissions:e,successCallback:t})}))}fetchFileActivities(e,t,r=!1){return this.fileActivitiesAPI=new $a(this.options),new Promise((n=>{this.fileActivitiesAPI.getActivities({errorCallback:this.fetchFeedItemErrorCallback.bind(this,n),fileID:this.file.id,permissions:e,successCallback:n,activityTypes:t,shouldShowReplies:r})}))}fetchReplies(e,t,r,n,i){const{id:o,permissions:a}=e;if(!o||!a)throw Vi();this.file=e,this.errorCallback=i,this.updateFeedItem({isRepliesLoading:!0},t);const s=({entries:e})=>{this.updateFeedItem({isRepliesLoading:!1,replies:e,total_reply_count:e.length},t),n(e)},l=(e,r)=>{this.fetchRepliesErrorCallback(e,r,t)};r===f?(this.annotationsAPI=new Cs(this.options),this.annotationsAPI.getAnnotationReplies(e.id,t,a,s,l)):r===p&&(this.threadedCommentsAPI=new Ua(this.options),this.threadedCommentsAPI.getCommentReplies({fileId:e.id,commentId:t,permissions:a,successCallback:s,errorCallback:l}))}fetchVersions(){return this.versionsAPI=new na(this.options),new Promise((e=>{this.versionsAPI.getVersions(this.file.id,e,this.fetchFeedItemErrorCallback.bind(this,e),void 0,void 0,Co)}))}fetchCurrentVersion(){return this.versionsAPI=new na(this.options),new Promise((e=>{const{file_version:t={}}=this.file;this.versionsAPI.getVersion(this.file.id,t.id,e,this.fetchFeedItemErrorCallback.bind(this,e))}))}fetchTasksNew(){return this.tasksNewAPI=new ya(this.options),new Promise((e=>{this.tasksNewAPI.getTasksForFile({file:{id:this.file.id},successCallback:e,errorCallback:(t,r)=>this.fetchFeedItemErrorCallback(e,t,r)})}))}fetchFeedItemErrorCallback(e,t,r){const{status:n}=t,i=Wi(n);this.feedErrorCallback(i,t,r),e()}createTaskCollaboratorsforGroup(e,t,r){if(!e.id)throw Vi();return this.file=e,new Promise(((n,i)=>{const o=new Sa(this.options);this.taskCollaboratorsAPI.push(o),o.createTaskCollaboratorsforGroup({file:e,task:t,group:r,successCallback:n,errorCallback:e=>{i(e)}})}))}createTaskCollaborator(e,t,r){if(!e.id)throw Vi();return this.file=e,new Promise(((n,i)=>{const o=new Sa(this.options);this.taskCollaboratorsAPI.push(o),o.createTaskCollaborator({file:e,task:t,user:r,successCallback:n,errorCallback:e=>{i(e)}})}))}deleteTaskCollaborator(e,t,r){if(!e.id)throw Vi();return this.file.id=e.id,new Promise(((n,i)=>{const o=new Sa(this.options);this.taskCollaboratorsAPI.push(o),o.deleteTaskCollaborator({file:e,task:t,taskCollaborator:{id:r.id},successCallback:n,errorCallback:e=>{i(e)}})}))}createTaskLink(e,t){if(!e.id)throw Vi();return this.file=e,new Promise(((r,n)=>{const i=new Pa(this.options);this.taskLinksAPI.push(i),i.createTaskLink({file:e,task:t,successCallback:r,errorCallback:n})}))}createFeedError(e,t=Gn.errorOccured){return{error:{message:e,title:t}}}createReply(e,t,r,n,i,o,a){const{id:s,permissions:l}=e;if(!s||!l)throw Vi();const c=rt()("comment_"),u={id:c,tagged_message:i,type:p};this.file=e,this.errorCallback=a,this.addPendingReply(r,t,u),this.modifyFeedItemRepliesCountBy(r,1);const d=e=>{this.createReplySuccessCallback(e,r,c,o)},h=(e,t)=>{this.createReplyErrorCallback(e,t,r,c)};n===f?(this.annotationsAPI=new Cs(this.options),this.annotationsAPI.createAnnotationReply(e.id,r,l,i,d,h)):n===p&&(this.threadedCommentsAPI=new Ua(this.options),this.threadedCommentsAPI.createCommentReply({fileId:e.id,commentId:r,permissions:l,message:i,successCallback:d,errorCallback:h}))}destroyTaskCollaborators(){Array.isArray(this.taskCollaboratorsAPI)&&(this.taskCollaboratorsAPI.forEach((e=>e.destroy())),this.taskCollaboratorsAPI=[])}destroyTaskLinks(){Array.isArray(this.taskLinksAPI)&&(this.taskLinksAPI.forEach((e=>e.destroy())),this.taskLinksAPI=[])}fetchAppActivity(e){return this.appActivityAPI=new xs(this.options),new Promise((t=>{this.appActivityAPI.getAppActivity(this.file.id,e,t,this.fetchFeedItemErrorCallback.bind(this,t))}))}destroy(){super.destroy(),this.annotationsAPI&&(this.annotationsAPI.destroy(),delete this.annotationsAPI),this.commentsAPI&&(this.commentsAPI.destroy(),delete this.commentsAPI),this.threadedCommentsAPI&&(this.threadedCommentsAPI.destroy(),delete this.threadedCommentsAPI),this.versionsAPI&&(this.versionsAPI.destroy(),delete this.versionsAPI),this.appActivityAPI&&(this.appActivityAPI.destroy(),delete this.appActivityAPI),this.tasksNewAPI&&(this.tasksNewAPI.destroy(),delete this.tasksNewAPI),this.destroyTaskCollaborators(),this.destroyTaskLinks()}},Vs=class extends Yi{getUrl(e){if(!e)throw new Error("Missing app integration id!");return`${this.getBaseApiUrl()}/app_integrations/${e}`}execute(e,t,r,n){if(!e)throw new Error("Missing integration id!");if(!t)throw new Error("Missing file id!");this.errorCode=be;const i=`${this.getUrl(e)}/execute`,o={data:{item:{id:t,type:d}}};this.post({id:t,url:i,data:o,successCallback:r,errorCallback:n})}},$s=class extends Yi{getUrl(e){if(!e)throw new Error("Missing file id!");return`${this.getBaseApiUrl()}/files/${e}/open_with_integrations`}getOpenWithIntegrations(e,t,r){this.errorCode="fetch_integrations_error",this.get({id:e,successCallback:e=>{const r=this.formatOpenWithData(e),n=this.consolidateBoxEditIntegrations(r);t(n)},errorCallback:r})}consolidateBoxEditIntegrations(e){let t=[...e];return e.some((e=>e.appIntegrationId===Be))&&(t=e.filter((e=>e.appIntegrationId!==ze))),t}formatOpenWithData(e){const{items:t,default_app_integration:r}=e;return t.map((({app_integration:e,disabled_reasons:t,display_name:n,display_description:i,display_order:o,is_disabled:a,should_show_consent_popup:s})=>{const{id:l,type:c}=e;return{appIntegrationId:l,displayDescription:i,disabledReasons:t||[],displayOrder:o,isDefault:!!r&&l===r.id,isDisabled:a,displayName:n,requiresConsent:s,type:c}})).sort(((e,t)=>e.displayOrder-t.displayOrder))}};const qs=class extends Yi{constructor(...e){var t,r,n;super(...e),t=this,n=({data:e})=>{this.getCache().set(this.key,e),this.finish()},(r=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(r="queryMetadataSuccessHandler"))in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n}getCacheKey(e){return`metadata_query_${e}`}getUrl(){return`${this.getBaseApiUrl()}/metadata_queries/execute_read`}isLoaded(){return this.getCache().has(this.key)}finish(){if(this.isDestroyed())return;const e=this.getCache().get(this.key);this.successCallback(e)}queryMetadataRequest(e){this.isDestroyed()||(this.errorCode="metadata_query_error",this.xhr.post({url:this.getUrl(),data:e}).then(this.queryMetadataSuccessHandler).catch(this.errorHandler))}queryMetadata(e,t,r,n={}){if(this.isDestroyed())return;const{context:i={}}=n;this.key=this.getCacheKey(i.id),this.successCallback=t,this.errorCallback=r,n.forceFetch&&this.getCache().unset(this.key),this.isLoaded()?this.finish():this.queryMetadataRequest(e)}},Gs={CHROME:"Chrome",EDGE:"Edge",FIREFOX:"Firefox",MAC:"Mac",SAFARI:"Safari",IE:"Explorer"},Ws=[{key:"userAgent",subString:Gs.EDGE,identity:Gs.EDGE},{key:"userAgent",subString:Gs.CHROME,identity:Gs.CHROME},{key:"userAgent",subString:"criOS",identity:Gs.CHROME,versionSearch:"criOS"},{key:"vendor",subString:"Apple",identity:Gs.SAFARI,versionSearch:"Version"},{key:"userAgent",subString:Gs.FIREFOX,identity:Gs.FIREFOX},{key:"userAgent",subString:"MSIE",identity:"Explorer",versionSearch:"MSIE"},{key:"userAgent",subString:"Trident",identity:"Explorer",versionSearch:"rv"},{key:"userAgent",subString:"Gecko",identity:"Mozilla",versionSearch:"rv"}],Xs=[{key:"platform",subString:"Win",identity:"Windows"},{key:"userAgent",subString:"iPod",identity:"iOS",device:"iPod"},{key:"userAgent",subString:"iPhone",identity:"iOS",device:"iPhone"},{key:"userAgent",subString:"iPad",identity:"iOS",device:"iPad"},{key:"platform",subString:Gs.MAC,identity:Gs.MAC},{key:"userAgent",subString:"Android",identity:"Android"},{key:"platform",subString:"Linux",identity:"Linux"}];function Ks(e,t){let r,n=null,i=null,o="";for(let a=0,s=t.length;a<s;a+=1)if(r=e[t[a].key],o=t[a].versionSearch||t[a].identity,r&&-1!==r.indexOf(t[a].subString)){n=t[a].identity,i=t[a].device;break}return{identity:n,device:i,versionSearchString:o}}function Qs(e,t){const r=e.indexOf(t);if(-1===r)return"";const n=e.substring(r+t.length+1).match(/[0-9]+(?:\.[0-9]*)?/);return n&&n.length?n[0]:""}const Ys=new class{constructor(){const{navigator:e}=window,t=Ks(e,Ws),r=Ks(e,Xs);this.browser=t.identity||"unknown",this.version=Qs(e.userAgent,t.versionSearchString)||Qs(e.appVersion,t.versionSearchString)||"unknown",this.OS=r.identity||"unknown",this.device=r.device||"unknown"}getName(){return this.browser}getVersion(){return this.version}isMinBrowser(e,t){return this.browser.toLowerCase()===e.toLowerCase()&&parseFloat(this.version)>=parseFloat(t)}isSafari(){return this.browser===Gs.SAFARI}isFirefox(){return this.browser===Gs.FIREFOX}isChrome(){return this.browser===Gs.CHROME}isIE(){return this.browser===Gs.IE}isEdge(){return this.browser===Gs.EDGE}isIEAndSpecificBrowserPluginSupported(e){return this.isIE()&&function(e){const t=e||"htmlfile";let r=!1;try{if("ActiveXObject"in window){const{ActiveXObject:e}=window;r=!!new e(t)}}catch(e){r=!1}return r}(e)}},Js={SAFARI_CHANNEL_NAME:"safari_channel",SECRET_STORE_COOKIE_NAME:"box-edit-secret-cookie-name",BOX_EDIT_APP_NAME:"BoxEdit",BOX_EDIT_NOT_SUPPORTED_ERROR:"box_edit_not_supported_error",BOX_EDIT_UNINSTALLED_ERROR:"box_edit_uninstalled_error",BOX_EDIT_UPGRADE_BROWSER_ERROR:"box_edit_upgrade_browser_error",BOX_EDIT_SAFARI_ERROR:"box_edit_safari_error",BOX_EDIT_INSECURE_REQUESTS_UPGRADED_ERROR:"box_edit_insecure_requests_upgraded_error",BOX_TOOLS_PLUGIN_NAME:"Box.BoxTools",BOX_SECURE_LOCAL_BASE_URL:"https://edit.boxlocalhost.com:",BOX_UNSECURE_LOCAL_BASE_URL:"http://127.0.0.1:",ACTIVEX_CHANNEL_NAME:"activex_channel",HTTP_CHANNEL_NAME:"http_channel",HTTPS_CHANNEL_NAME:"https_channel",OPERATION_STATUS:"status",OPERATION_REQUEST:"application_request",OPERATION_COMMAND:"application_command",UNCREATED_STATUS:"uncreated",CREATED_STATUS:"created",ACTIVE_STATUS:"active",HIVE_TABLE_WEBAPP_BOXTOOLS_ANALYTICS:"webapp_boxtools_analytics",KEY_LENGTH:16,KEY_ID_LENGTH:8,IV:"75392C57F66CE7E7EF47110410280DD7",OUTPUT_EVENT:"box_extension_output",REQUEST_ID_PRE:"BOX-EXT-REQ-ID-",REQUEST_TIMEOUT_RESPONSE_CODE:408,EXTENSION_BLACKLIST:{A6P:1,AC:1,AS:1,ACR:1,ACTION:1,AIR:1,APP:1,AWK:1,BAT:1,BOXNOTE:1,CGI:1,CHM:1,CMD:1,COM:1,CSH:1,DEK:1,DLD:1,DS:1,EBM:1,ESH:1,EXE:1,EZS:1,FKY:1,FRS:1,FXP:1,GADGET:1,HMS:1,HTA:1,ICD:1,INX:1,IPF:1,ISU:1,JAR:1,JS:1,JSE:1,JSX:1,KIX:1,LNK:1,LUA:1,MCR:1,MEM:1,MPX:1,MS:1,MSI:1,MST:1,OBS:1,PAF:1,PEX:1,PIF:1,PL:1,PRC:1,PRG:1,PVD:1,PWC:1,PY:1,PYC:1,PYO:1,QPX:1,RBX:1,REG:1,RGS:1,ROX:1,RPJ:1,SCAR:1,SCR:1,SCRIPT:1,SCPT:1,SCT:1,SH:1,SHB:1,SHS:1,SPR:1,TLB:1,TMS:1,U3P:1,UDF:1,URL:1,VB:1,VBE:1,VBS:1,VBSCRIPT:1,WCM:1,WPK:1,WS:1,WSF:1,XQT:1}};function Zs(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const el=class{constructor(e){Zs(this,"buildNextRequestID",(()=>`${Js.REQUEST_ID_PRE}${this.window.performance.now()}`)),Zs(this,"buildDetailsObj",((e,t,r)=>{const n=r.toString(),i={data:void 0,operation:e,properties:{application:this.appName,timeout:n},req_id:this.buildNextRequestID()};if(e!==Js.OPERATION_STATUS){if(!t)throw new TypeError(`Data cannot be undefined for ${e}`);i.data=t}return i})),this.appName=e,this.window=window}sendCommand(e,t,r){return Promise.resolve("TODO")}sendRequest(e,t,r){return Promise.resolve("TODO")}getComServerStatus(e,t){return Promise.resolve("TODO")}destroy(){}};function tl(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const rl=class extends el{constructor(e,t){super(e),tl(this,"executeOperation",((e="",t={},r=0,n=0)=>new Promise(((i,o)=>{const a=this.buildDetailsObj(e,t,n),s=setTimeout((()=>{o(new Error({status_code:Js.REQUEST_TIMEOUT_RESPONSE_CODE}))}),r);this.reqIdToPromiseMap.set(a.req_id,{resolve:i,rejectTimeout:s}),this.executeActiveXEvent({detail:a})})))),tl(this,"repairActiveXConnection",(e=>{Ys.isIEAndSpecificBrowserPluginSupported(Js.BOX_TOOLS_PLUGIN_NAME)&&(this.retryAttempt>=2||(this.retryAttempt+=1,setTimeout((()=>{this.executeActiveXEvent(e)}),100)))})),tl(this,"executeActiveXEvent",(e=>{const t=this.createActiveXObjectJSRef(),r="ExecuteSync"in t;try{this.isSynchronous&&r?t.ExecuteSync(JSON.stringify(e)):t.Execute(JSON.stringify(e))}catch(t){this.repairActiveXConnection(e)}})),tl(this,"createActiveXObjectJSRef",(()=>{const{ActiveXObject:e}=this.window;return new e(Js.BOX_TOOLS_PLUGIN_NAME)})),tl(this,"setupActiveXCommunication",(()=>{this.isActiveXExtensionListenerAttached||(this.document.addEventListener(Js.OUTPUT_EVENT,this.appExtensionEventResponseHandler),this.isActiveXExtensionListenerAttached=!0)})),tl(this,"tearDownActiveXCommunication",(()=>{this.isActiveXExtensionListenerAttached&&(this.document.removeEventListener(Js.OUTPUT_EVENT,this.appExtensionEventResponseHandler),this.isActiveXExtensionListenerAttached=!1)})),tl(this,"appExtensionEventResponseHandler",(e=>{this.retryAttempt>0&&(this.retryAttempt=0);const t="string"==typeof e.detail?JSON.parse(e.detail):e.detail;if(this.reqIdToPromiseMap.has(t.req_id)){const e=this.reqIdToPromiseMap.get(t.req_id);if(e){clearTimeout(e.rejectTimeout),this.reqIdToPromiseMap.delete(t.req_id);const r="string"==typeof t.com_server_response.data?JSON.parse(t.com_server_response.data):t.com_server_response.data;e.resolve(r)}}})),tl(this,"getComServerStatus",((e,t)=>this.executeOperation(Js.OPERATION_STATUS,null,e,t))),tl(this,"sendRequest",((e,t,r)=>this.executeOperation(Js.OPERATION_REQUEST,e,t,r))),tl(this,"sendCommand",((e,t,r)=>this.executeOperation(Js.OPERATION_COMMAND,e,t,r))),tl(this,"destroy",(()=>{this.tearDownActiveXCommunication()})),this.isSynchronous=t,this.channelName=Js.ACTIVEX_CHANNEL_NAME,this.reqIdToPromiseMap=new Map,this.isActiveXExtensionListenerAttached=!1,this.retryAttempt=0,this.document=document,this.window=window,this.setupActiveXCommunication()}};function nl(e,t,r,n="/",i=""){const{document:o}=window,a=new Date,s=[];void 0===r&&(r=a.getTime()+5184e6),a.setTime(r),s.push(`${e}=${encodeURIComponent(t)}`),0!==r&&s.push(`; expires=${a.toUTCString()}`),s.push(`; path=${n}`),i&&s.push(`; domain=${i}`),s.push("; secure"),o.cookie=s.join("")}function il(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ol="POST",al=17223,sl="notrunning",ll=new Ui;function cl(){return ll.getItem("comUseFallback")?{primary:17224,fallback:al}:{primary:al,fallback:17224}}const ul=class extends el{constructor(e,t,r){super(e),il(this,"createCORSRequest",((e,t)=>{let r;try{const{XMLHttpRequest:n}=this.window;return r=new n,r.open(e,t,!0),r}catch(r){if(this.retryCounter<3)return this.retryCounter+=1,this.createCORSRequest(e,t);throw new Error("could not create xhr")}})),il(this,"getComServerStatusInstallationPromise",(e=>{let t,r;const n=new Promise(((e,n)=>{t=e,r=n})),i=(e,r)=>{this.currentPort=e,e===al?ll.removeItem("comUseFallback"):ll.setItem("comUseFallback",1),this.comServerInstallationPromiseRejected=!1,t(r)},o=cl(),a=o.primary,s=o.fallback;return this.checkInstallStatus(a,e).then(i.bind(this,a)).catch((t=>{if(t===sl)return this.comServerInstallationPromiseRejected=!0,void r();this.checkInstallStatus(s,e).then(i.bind(this,s)).catch((()=>{this.comServerInstallationPromiseRejected=!0,r()}))})),n})),il(this,"sendComServerRequest",((e,t,r,n)=>new Promise(((i,o)=>{try{const a=this.createCORSRequest(e,t);a.setRequestHeader("Content-Type","text/plain; charset=UTF-8"),a.onload=()=>{i(a)},a.onerror=()=>{o(a)},n>0&&(a.timeout=n,a.ontimeout=()=>{o(a)}),setTimeout((()=>{a.send(r)}),0)}catch(e){o()}})))),il(this,"checkInstallStatus",((e,t)=>this.sendComServerRequest("GET",`${this.url}${e}/status`,null,t).then((e=>{const t=JSON.parse(e.responseText);if(t.running)return t;throw this.comServerInstallationPromiseRejected=!0,new Error(sl)})))),il(this,"getComChannel",(e=>function(e){const{document:t}=window,r=t.cookie.split("; "),n=r.length;let i,o;for(o=0;o<n;o+=1)if(i=r[o].split("="),i[0]===e)return i[1]?decodeURIComponent(i[1]):"";return""}(`${e}-bgp-id`))),il(this,"setComChannel",(e=>{const t=this.getComChannel(e)||this.generateId(),r=`bgp-${t}`,n=(new Date).getTime()+31536e6;return nl(`${e}-bgp-id`,t,n),nl(`bgp-${t}`,"generic",n),r})),il(this,"getComServerStatus",(e=>!this.comServerInstallationPromise||this.comServerInstallationPromiseRejected?(this.comServerInstallationPromise=null,this.comServerInstallationPromise=this.getComServerStatusInstallationPromise(e),this.comServerInstallationPromise):this.comServerInstallationPromise)),il(this,"sendRequest",((e,t,r)=>{const n=`${this.url}${this.currentPort}/application_request?application=${this.appName}&com=${this.comChannelName}&timeout=${r}`;return this.sendComServerRequest(ol,n,e,t).then((e=>{const t=JSON.parse(e.responseText);if(t.response_type&&"error"===t.response_type)throw new Error(`Communication error: ${t.message}`);return t}))})),il(this,"sendCommand",((e,t,r)=>{const n=`${this.url}${this.currentPort}/application_command?application=${this.appName}&com=${this.comChannelName}&timeout=${r}`;return this.sendComServerRequest(ol,n,e,t).then((e=>JSON.parse(e.responseText)))})),il(this,"generateId",(()=>{const e=(new Date).getTime();return"xxxxxxxx".replace(/x/g,(()=>Math.floor((e+16*Math.random())%16).toString(16)))})),this.url=t,this.comChannelName=this.setComChannel(e),this.channelName=r,this.comServerInstallationPromise=null,this.comServerInstallationPromiseRejected=!1,this.retryCounter=0,this.sendCount=0,this.currentPort=cl().primary,this.window=window}};function dl(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const hl="box_extension_output",fl=class extends el{constructor(e){super(e),dl(this,"executeOperation",((e="",t={},r=0,n=0)=>new Promise(((i,o)=>{const a=this.buildDetailsObj(e,t,n),s=setTimeout((()=>{o(new Error({status_code:Js.REQUEST_TIMEOUT_RESPONSE_CODE}))}),r);this.reqIdToPromiseMap.set(a.req_id,{resolve:i,rejectTimeout:s}),this.createAndDispatchAppExtensionEvent({detail:a})})))),dl(this,"setupSafariExtensionCommunication",(()=>{this.isAppExtensionListenerAttached||(this.isAppExtensionListenerAttached=!0,this.document.addEventListener(hl,this.appExtensionEventResponseHandler))})),dl(this,"tearDownSafariExtensionCommunication",(()=>{this.isAppExtensionListenerAttached&&(this.isAppExtensionListenerAttached=!1,this.document.removeEventListener(hl,this.appExtensionEventResponseHandler))})),dl(this,"appExtensionEventResponseHandler",(e=>{const t="string"==typeof e.detail?JSON.parse(e.detail):e.detail;if(this.reqIdToPromiseMap.has(t.req_id)){const e=this.reqIdToPromiseMap.get(t.req_id);if(e){clearTimeout(e.rejectTimeout),this.reqIdToPromiseMap.delete(t.req_id);const r="string"==typeof t.com_server_response.data?JSON.parse(t.com_server_response.data):t.com_server_response.data;e.resolve(r)}}})),dl(this,"createAndDispatchAppExtensionEvent",(e=>{const{CustomEvent:t}=this.window,r=new t("box_extension_input",e);this.document.dispatchEvent(r)})),dl(this,"getComServerStatus",((e,t)=>this.executeOperation(Js.OPERATION_STATUS,null,e,t))),dl(this,"sendRequest",((e,t,r)=>this.executeOperation(Js.OPERATION_REQUEST,e,t,r))),dl(this,"sendCommand",((e,t,r)=>this.executeOperation(Js.OPERATION_COMMAND,e,t,r))),dl(this,"destroy",(()=>{this.tearDownSafariExtensionCommunication()})),this.reqIdToPromiseMap=new Map,this.channelName=Js.SAFARI_CHANNEL_NAME,this.window=window,this.document=document,this.setupSafariExtensionCommunication()}};const pl=55,ml="16.16299",bl="17.17134";let gl;function yl(e){const{BOX_UNSECURE_LOCAL_BASE_URL:t,CREATED_STATUS:r,HTTP_CHANNEL_NAME:n}=Js;return gl.http_channel_status=r,new ul(e,t,n)}function vl(e){const{CREATED_STATUS:t}=Js;return gl.safari_channel_status=t,new fl(e)}function wl(e){const{CREATED_STATUS:t}=Js;return gl.activex_channel_status=t,new rl(e,!0)}function El(){const{EDGE:e}=Gs;return Ys.isMinBrowser(e,bl)||Ys.isMinBrowser(e,ml)&&Ys.getVersion().startsWith("16.")}function Sl(){return Ys.isEdge()&&!El()}function Cl(){const{CHROME:e,FIREFOX:t}=Gs;return Ys.isMinBrowser(e,53)||Ys.isMinBrowser(t,pl)||El()}function kl(){return Ys.isMinBrowser(Gs.SAFARI,10)}function xl(){return Ys.isMinBrowser(Gs.IE,11)}function Pl(e){const{BOX_EDIT_NOT_SUPPORTED_ERROR:t,BOX_EDIT_SAFARI_ERROR:r,BOX_EDIT_UNINSTALLED_ERROR:n,BOX_EDIT_UPGRADE_BROWSER_ERROR:i}=Js;let o=t;return Cl()||xl()?o=n:Ys.isFirefox()||Ys.isChrome()||Ys.isSafari()&&!kl()||Sl()?o=i:kl()&&(o=r),gl.error_message=o,e(new Error(o))}function _l(e){let t=5e3;return"number"==typeof e&&e>=0&&(t=Math.floor(e)),t}function Ol(e){let t=+(e/1e3).toFixed(2);return e<2?t/=2:t-=1,t}const Al=class{constructor(e){var t,r,n;t=this,n=!1,(r=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(r="isInitialized"))in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,this.channels=[],this.isInitialized=!0,function(){const e=Ys.getName(),t=Ys.getVersion(),{UNCREATED_STATUS:r}=Js;gl={box_tools_version:null,browser_name:e,browser_version:t,error_message:null,installation_type:null,http_channel_status:r,https_channel_status:r,activex_channel_status:r,safari_channel_status:r}}(),Cl()?this.channels.push(yl(e)):kl()?this.channels.push(vl(e)):xl()&&Ys.isIEAndSpecificBrowserPluginSupported(Js.BOX_TOOLS_PLUGIN_NAME)?this.channels.push(function(e){const{CREATED_STATUS:t}=Js;return gl.activex_channel_status=t,new rl(e,!1)}(e)):Ys.isFirefox()&&!Ys.isMinBrowser(Gs.FIREFOX,pl)||Sl()||(this.channels=this.channels.concat([yl(e),vl(e),wl(e)]))}getComServerStatus(e){const{ACTIVE_STATUS:t}=Js,r=_l(e),n=Ol(r),i=Sl();return new Promise(((e,o)=>i?Pl.call(null,o):this.channels.length?function(e){const t=[];let r,n=0;return new Promise(((i,o)=>{e.forEach(((a,s)=>{a.then(i).catch((i=>a=>{t[i]=a,n+=1,n===e.length&&(r=new Error("no promises resolved"),o(r))})(s))}))}))}(this.channels.map((i=>i.getComServerStatus(r,n).then((r=>(this.activeChannel=i,r&&(gl.installation_type=r.installation_type,gl.box_tools_version=r.version),gl[`${i.channelName}_status`]=t,e(r))))))).catch(Pl.bind(null,o)):Pl.call(null,o)))}sendRequest(e,t,r){const n=_l(r),i=Ol(n);return this.activeChannel?this.activeChannel.sendRequest(e,n,i):this.getComServerStatus().then((()=>this.activeChannel.sendRequest(e,n,i)))}sendCommand(e,t){const r=_l(t),n=Ol(r);return this.activeChannel?this.activeChannel.sendCommand(e,r,n):this.getComServerStatus().then((()=>this.activeChannel.sendCommand(e,r,n)))}};let Tl,Il=null;class Ml{constructor(){return Il instanceof Ml||(Il=this),this.extensionRequestQueue=new Map,Il}queueGetNativeAppNameFromLocal(e){if(this.extensionRequestQueue.has(e)){const t=this.extensionRequestQueue.get(e);if(!t)throw new Error("Race condition re: queueGetNativeAppNameFromLocal");return t.promise}const t={},r=new Promise(((e,r)=>{t.resolve=e,t.reject=r}));return t.promise=r,this.extensionRequestQueue.set(e,t),r}checkBoxEditAvailability(){return this.getBoxEditAvailability()}getBoxEditAvailability(){return this.client=new Al(Js.BOX_EDIT_APP_NAME),this.client.getComServerStatus()}async canOpenWithBoxEdit(e){const t=await Promise.all(e.map((async e=>{try{return[e,await this.getAppForExtension(e)]}catch(t){return[e,""]}}))),r=new Map;return t.forEach((e=>r.set(...e))),Promise.resolve(r)}openFile(e,t){const r=function(e,t,r,n){return JSON.stringify({auth_code:r,auth_token:t,browser_type:Ys.getName(),command_type:"launch_application",file_id:e.toString(),token_scope:n})}(e,t.data.token,t.data.auth_code,t.data.token_scope);return this.client.sendCommand(r,5e3)}getAppForExtension(e){try{if(function(e){const{EXTENSION_BLACKLIST:t}=Js;let r=e.toUpperCase();return"."===r.charAt(0)&&(r=r.substr(1)),r in t}(e))throw new Error("blacklisted");const t=this.queueGetNativeAppNameFromLocal(e);return Tl||(Tl=setTimeout((()=>{this.processExtensionRequestQueue()}),100)),t}catch(e){return Promise.reject()}}processExtensionRequestQueue(){const e=new Map,t=[];this.extensionRequestQueue.forEach(((r,n)=>{e.set(n,r),t.push(n)})),this.extensionRequestQueue.clear(),Tl=null;const r=function(e){return JSON.stringify({request_type:"get_default_application",extension:e})}(t);return this.client.sendRequest(r).then((r=>{if(r&&r.default_application_name){let t=r.default_application_name;"[object Object]"===Object.prototype.toString.call(t)&&(t=[t]),t.forEach((t=>{const r=Object.keys(t)[0],n=decodeURIComponent(t[r]);if(n){const t=e.get(r);t&&(t.resolve(n),e.delete(r))}}))}t.forEach((t=>{const r=e.get(t);r&&r.reject()}))}))}}const Dl=Ml;function Rl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Fl(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Rl(Object(r),!0).forEach((function(t){Ll(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rl(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ll(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const jl=class extends Yi{async ask(e,t,r=[],n={}){const{prompt:i}=e;if(!i)throw new Error("Missing prompt!");if(!t||0===t.length)throw new Error("Missing items!");t.forEach((e=>{if(!e.id||!e.type)throw new Error("Invalid item!")}));const o=`${this.getBaseApiUrl()}/ai/ask`;return this.xhr.post({url:o,id:`file_${t[0].id}`,data:Fl({mode:"single_item_qa",prompt:i,items:t,dialogue_history:r},n)})}async extractStructured(e){this.errorCode="extract_structured_error";const t=`${this.getBaseApiUrl()}/ai/extract_structured`;let r={};try{r=await this.xhr.post({url:t,data:e,id:`file_${e.items[0].id}`})}catch(e){const{status:t}=e;if(Wi(t))throw e}return mi()(r,"data",{})}};function Nl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ul(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Nl(Object(r),!0).forEach((function(t){Hl(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nl(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Hl(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Bl=class{constructor(e){this.options=Ul(Ul({},e),{},{apiHost:e.apiHost||le,uploadHost:e.uploadHost||ce,cache:e.cache||new di,language:e.language})}destroy(e=!1){this.fileAPI&&(this.fileAPI.destroy(),delete this.fileAPI),this.weblinkAPI&&(this.weblinkAPI.destroy(),delete this.weblinkAPI),this.plainUploadAPI&&(this.plainUploadAPI.destroy(),delete this.plainUploadAPI),this.chunkedUploadAPI&&(this.chunkedUploadAPI.destroy(),delete this.chunkedUploadAPI),this.folderAPI&&(this.folderAPI.destroy(),delete this.folderAPI),this.searchAPI&&(this.searchAPI.destroy(),delete this.searchAPI),this.recentsAPI&&(this.recentsAPI.destroy(),delete this.recentsAPI),this.versionsAPI&&(this.versionsAPI.destroy(),delete this.versionsAPI),this.fileAccessStatsAPI&&(this.fileAccessStatsAPI.destroy(),delete this.fileAccessStatsAPI),this.fileActivitiesAPI&&(this.fileActivitiesAPI.destroy(),delete this.fileActivitiesAPI),this.tasksNewAPI&&(this.tasksNewAPI.destroy(),delete this.tasksNewAPI),this.taskCollaboratorsAPI&&(this.taskCollaboratorsAPI.destroy(),delete this.taskCollaboratorsAPI),this.taskLinksAPI&&(this.taskLinksAPI.destroy(),delete this.taskLinksAPI),this.commentsAPI&&(this.commentsAPI.destroy(),delete this.commentsAPI),this.threadedCommentsAPI&&(this.threadedCommentsAPI.destroy(),delete this.threadedCommentsAPI),this.markerBasedGroupsAPI&&(this.markerBasedGroupsAPI.destroy(),delete this.markerBasedGroupsAPI),this.markerBasedUsersAPI&&(this.markerBasedUsersAPI.destroy(),delete this.markerBasedUsersAPI),this.groupsAPI&&(this.groupsAPI.destroy(),delete this.groupsAPI),this.usersAPI&&(this.usersAPI.destroy(),delete this.usersAPI),this.metadataAPI&&(this.metadataAPI.destroy(),delete this.metadataAPI),this.fileCollaboratorsAPI&&(this.fileCollaboratorsAPI.destroy(),delete this.fileCollaboratorsAPI),this.fileCollaborationsAPI&&(this.fileCollaborationsAPI.destroy(),delete this.fileCollaborationsAPI),this.folderCollaborationsAPI&&(this.folderCollaborationsAPI.destroy(),delete this.folderCollaborationsAPI),this.collaborationsAPI&&(this.collaborationsAPI.destroy(),delete this.collaborationsAPI),this.appIntegrationsAPI&&(this.appIntegrationsAPI.destroy(),delete this.appIntegrationsAPI),this.metadataQueryAPI&&(this.metadataQueryAPI.destroy(),delete this.metadataQueryAPI),this.openWithAPI&&(this.openWithAPI.destroy(),delete this.openWithAPI),this.annotationsAPI&&(this.annotationsAPI.destroy(),delete this.annotationsAPI),this.intelligenceAPI&&(this.intelligenceAPI.destroy(),delete this.intelligenceAPI),e&&(this.options.cache=new di)}getCache(){return this.options.cache}getAPI(e){let t;switch(e){case u:t=this.getFolderAPI();break;case d:t=this.getFileAPI();break;case h:t=this.getWebLinkAPI();break;default:throw new Error("Unknown Type!")}return t}getFileAPI(e=!0){return e&&this.destroy(),this.fileAPI=new Fo(this.options),this.fileAPI}getWebLinkAPI(){return this.destroy(),this.weblinkAPI=new Lo(this.options),this.weblinkAPI}getPlainUploadAPI(){return this.destroy(),this.plainUploadAPI=new po(this.options),this.plainUploadAPI}getChunkedUploadAPI(){return this.destroy(),this.chunkedUploadAPI=new uo(this.options),this.chunkedUploadAPI}getFolderAPI(){return this.destroy(),this.folderAPI=new Bo(this.options),this.folderAPI}getSearchAPI(){return this.destroy(),this.searchAPI=new qo(this.options),this.searchAPI}getRecentsAPI(){return this.destroy(),this.recentsAPI=new Xo(this.options),this.recentsAPI}getMetadataAPI(e){return e&&this.destroy(),this.metadataAPI=new as(this.options),this.metadataAPI}getVersionsAPI(e){return e&&this.destroy(),this.versionsAPI=new na(this.options),this.versionsAPI}getCommentsAPI(e){return e&&this.destroy(),this.commentsAPI=new sa(this.options),this.commentsAPI}getThreadedCommentsAPI(e){return e&&this.destroy(),this.threadedCommentsAPI=new Ua(this.options),this.threadedCommentsAPI}getTasksNewAPI(e){return e&&this.destroy(),this.tasksNewAPI=new ya(this.options),this.tasksNewAPI}getTaskCollaboratorsAPI(e){return e&&this.destroy(),this.taskCollaboratorsAPI=new Sa(this.options),this.taskCollaboratorsAPI}getTaskLinksAPI(e){return e&&this.destroy(),this.taskLinksAPI=new Pa(this.options),this.taskLinksAPI}getFileAccessStatsAPI(e){return e&&this.destroy(),this.fileAccessStatsAPI=new Ha(this.options),this.fileAccessStatsAPI}getFileActivitiesAPI(e){return e&&this.destroy(),this.fileActivitiesAPI=new $a(this.options),this.fileActivitiesAPI}getFileCollaboratorsAPI(e){return e&&this.destroy(),this.fileCollaboratorsAPI=new us(this.options),this.fileCollaboratorsAPI}getFileCollaborationsAPI(e){return e&&this.destroy(),this.fileCollaborationsAPI=new fs(this.options),this.fileCollaborationsAPI}getFolderCollaborationsAPI(e){return e&&this.destroy(),this.folderCollaborationsAPI=new ps(this.options),this.folderCollaborationsAPI}getCollaborationsAPI(e){return e&&this.destroy(),this.collaborationsAPI=new ys(this.options),this.collaborationsAPI}getMarkerBasedGroupsAPI(e){return e&&this.destroy(),this.markerBasedGroupsAPI=new Xa(this.options),this.markerBasedGroupsAPI}getMarkerBasedUsersAPI(e){return e&&this.destroy(),this.markerBasedUsersAPI=new Ja(this.options),this.markerBasedUsersAPI}getGroupsAPI(e){return e&&this.destroy(),this.groupsAPI=new Za(this.options),this.groupsAPI}getUsersAPI(e){return e&&this.destroy(),this.usersAPI=new es(this.options),this.usersAPI}getFeedAPI(e){return e&&this.destroy(),this.feedItemsAPI=new zs(this.options),this.feedItemsAPI}getOpenWithAPI(e){return e&&this.destroy(),this.openWithAPI=new $s(this.options),this.openWithAPI}getAppIntegrationsAPI(e){return e&&this.destroy(),this.appIntegrationsAPI=new Vs(this.options),this.appIntegrationsAPI}getMetadataQueryAPI(e=!1){return e&&this.destroy(),this.metadataQueryAPI=new qs(this.options),this.metadataQueryAPI}getBoxEditAPI(){return this.boxEditAPI=new Dl,this.boxEditAPI}getAnnotationsAPI(e){return e&&this.destroy(),this.annotationsAPI=new Cs(this.options),this.annotationsAPI}getIntelligenceAPI(e){return e&&this.destroy(),this.intelligenceAPI=new jl(this.options),this.intelligenceAPI}};let zl=function(e){return e.SMALL="small",e.MEDIUM="medium",e.LARGE="large",e.DEFAULT="default",e}({});const Vl=({className:t="",size:r=zl.DEFAULT})=>e.createElement("div",{className:`crawler ${t} is-${r}`},e.createElement("div",null),e.createElement("div",null),e.createElement("div",null)),$l=({integrationWindow:e,children:r})=>{const n=e.document.createElement("div");return function(e,t){Array.from(e.styleSheets).forEach((e=>{if(!e.href)return;const r=t.document.createElement("link");r.rel="stylesheet",r.href=e.href,t.document.head.appendChild(r)})),t.document.body.style.margin=0,t.document.body.style.padding=0}(document,e),e.document.body.appendChild(n),(0,t.createPortal)(r,n)},ql=({hasError:t,integrationWindow:r})=>e.createElement($l,{integrationWindow:r},e.createElement("div",{className:"be bcow bcow-portal-container"},t?e.createElement(ei,{errorHeader:e.createElement(on,Gn.executeIntegrationOpenWithErrorHeader),errorSubHeader:e.createElement(on,Gn.executeIntegrationOpenWithErrorSubHeader)}):e.createElement(Vl,{className:"bcow-portal-loading-indicator",size:"large"})));var Gl=__webpack_require__(91695);function Wl(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class Xl extends e.Component{constructor(...e){super(...e),Wl(this,"menuID",rt()("menu")),Wl(this,"menuButtonID",rt()("menubutton")),Wl(this,"state",{initialFocusIndex:null,isOpen:!1}),Wl(this,"openMenuAndSetFocusIndex",(e=>{this.setState({initialFocusIndex:e,isOpen:!0})})),Wl(this,"closeMenu",(e=>{const{onMenuClose:t=it()}=this.props;this.setState({isOpen:!1},(()=>t(e)))})),Wl(this,"focusButton",(()=>{const e=document.getElementById(this.menuButtonID);e&&e.focus()})),Wl(this,"handleButtonClick",(e=>{const{isOpen:t}=this.state;e.stopPropagation(),e.preventDefault(),t?this.closeMenu(e):this.openMenuAndSetFocusIndex(null)})),Wl(this,"handleButtonKeyDown",(e=>{const{isOpen:t}=this.state;switch(e.key){case" ":case"Enter":case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.openMenuAndSetFocusIndex(0);break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.openMenuAndSetFocusIndex(-1);break;case"Escape":t&&e.stopPropagation(),e.preventDefault(),this.closeMenu(e)}})),Wl(this,"handleMenuClose",((e,t)=>{this.closeMenu(t),this.focusButton()})),Wl(this,"handleDocumentClick",(e=>{const t=document.getElementById(this.menuID),r=document.getElementById(this.menuButtonID);t&&r&&e.target instanceof Node&&!t.contains(e.target)&&!r.contains(e.target)&&this.closeMenu(e)}))}componentDidUpdate(e,t){const{useBubble:r}=this.props;if(!t.isOpen&&this.state.isOpen){document.addEventListener("click",this.handleDocumentClick,!r),document.addEventListener("contextmenu",this.handleDocumentClick,!r);const{onMenuOpen:e}=this.props;e&&e()}else t.isOpen&&!this.state.isOpen&&(document.removeEventListener("contextmenu",this.handleDocumentClick,!r),document.removeEventListener("click",this.handleDocumentClick,!r))}componentWillUnmount(){const{useBubble:e}=this.props;this.state.isOpen&&(document.removeEventListener("contextmenu",this.handleDocumentClick,!e),document.removeEventListener("click",this.handleDocumentClick,!e))}render(){const{bodyElement:t,children:r,className:n,constrainToScrollParent:i,constrainToWindow:o,constrainToWindowWithPin:a,isResponsive:s,isRightAligned:l,tetherAttachment:c,tetherTargetAttachment:u}=this.props,{isOpen:d,initialFocusIndex:h}=this.state,f=e.Children.toArray(r);if(2!==f.length)throw new Error("DropdownMenu must have exactly two children: A button component and a <Menu>");const p=f[0],m=f[1],b={id:this.menuButtonID,key:this.menuButtonID,onClick:this.handleButtonClick,onKeyDown:this.handleButtonKeyDown,"aria-expanded":d?"true":"false"};void 0===p.props["aria-haspopup"]&&(b["aria-haspopup"]="true"),d&&(b["aria-controls"]=this.menuID);const g={id:this.menuID,key:this.menuID,initialFocusIndex:h,onClose:this.handleMenuClose,"aria-labelledby":this.menuButtonID};let y="top left",v="bottom left";l&&(y="top right",v="bottom right");const w=[];i&&w.push({to:"scrollParent",attachment:"together"}),o&&w.push({to:"window",attachment:"together"}),a&&w.push({to:"window",attachment:"together",pin:!0});const E=t instanceof HTMLElement?t:document.body;return e.createElement(Gl.A,{attachment:c||y,bodyElement:E,className:et()({"bdl-DropdownMenu--responsive":s},n),classPrefix:"dropdown-menu",constraints:w,enabled:d,targetAttachment:u||v},e.cloneElement(p,b),d&&e.cloneElement(m,g))}}Wl(Xl,"defaultProps",{constrainToScrollParent:!1,constrainToWindow:!1,isResponsive:!1,isRightAligned:!1});const Kl=Xl,Ql=e.createContext({closeMenu:it()}),Yl=["children","className","isHidden","setRef","shouldOutlineFocus"];function Jl(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Zl=".menu-item:not([aria-disabled])",ec=`ul:not(.submenu) > ${Zl}, ul:not(.submenu) > li > ${Zl}, ul:not(.submenu) > span > ${Zl}`,tc=`ul.submenu > ${Zl}, ul.submenu > li > ${Zl}, ul.submenu > span > ${Zl}`;function rc(e){e.stopPropagation(),e.preventDefault()}class nc extends e.Component{constructor(e){super(e),Jl(this,"setInitialFocusIndex",((e=this.props)=>{const{initialFocusIndex:t,isHidden:r}=e;r||void 0===t||("number"==typeof t?setTimeout((()=>{this.setFocus(t)}),0):null===t&&setTimeout((()=>{this.menuEl&&this.menuEl.focus()}),0))})),Jl(this,"setMenuItemEls",(()=>{const{isSubmenu:e,menuItemSelector:t}=this.props,r=t||(e?tc:ec);this.menuItemEls=this.menuEl?[].slice.call(this.menuEl.querySelectorAll(r)):[]})),Jl(this,"getMenuItemElFromEventTarget",(e=>{let t=null,r=-1;for(let n=0;n<this.menuItemEls.length;n+=1)if(this.menuItemEls[n].contains(e)){t=this.menuItemEls[n],r=n;break}return{menuItemEl:t,menuIndex:r}})),Jl(this,"setFocus",(e=>{if(!this.menuItemEls.length)return;const t=this.menuItemEls.length;this.focusIndex=e>=t?0:e<0?t-1:e,this.menuItemEls[this.focusIndex].focus()})),Jl(this,"focusFirstItem",(()=>{this.setFocus(0)})),Jl(this,"focusLastItem",(()=>{this.setFocus(-1)})),Jl(this,"focusNextItem",(()=>{this.setFocus(this.focusIndex+1)})),Jl(this,"focusPreviousItem",(()=>{this.setFocus(this.focusIndex-1)})),Jl(this,"fireOnCloseHandler",((e,t)=>{const{onClose:r}=this.props;r&&r(e,t)})),Jl(this,"handleClick",(e=>{const{menuItemEl:t}=e.target instanceof Node?this.getMenuItemElFromEventTarget(e.target):{};t&&this.fireOnCloseHandler(!1,e)})),Jl(this,"handleKeyDown",(e=>{const{isSubmenu:t,initialFocusIndex:r}=this.props;switch(e.key){case"ArrowDown":rc(e),null!==r||this.keyboardPressed?this.focusNextItem():this.focusFirstItem();break;case"ArrowUp":rc(e),this.focusPreviousItem();break;case"ArrowLeft":if(!t)return;rc(e),this.fireOnCloseHandler(!0,e);break;case"Home":case"PageUp":rc(e),this.focusFirstItem();break;case"End":case"PageDown":rc(e),this.focusLastItem();break;case"Escape":rc(e),this.fireOnCloseHandler(!0,e);break;case"Tab":this.fireOnCloseHandler(!0,e);break;case" ":case"Enter":rc(e),e.target instanceof HTMLElement&&e.target.click()}this.keyboardPressed=!0})),this.focusIndex=0,this.menuEl=null,this.menuItemEls=[]}componentDidMount(){this.setMenuItemEls(),this.setInitialFocusIndex()}componentDidUpdate({isHidden:t,children:r}){const{children:n,isHidden:i,isSubmenu:o}=this.props;if(o&&t&&!i&&(this.setMenuItemEls(),this.setInitialFocusIndex(this.props)),e.Children.toArray(r).length!==e.Children.toArray(n).length){const e=this.menuItemEls[this.focusIndex];this.setMenuItemEls();const{menuIndex:t}=this.getMenuItemElFromEventTarget(e),r=-1===t,n=this.focusIndex>=this.menuItemEls.length;this.setFocus(r&&!n?this.focusIndex:t)}}render(){const t=this.props,{children:r,className:n,isHidden:i,setRef:o,shouldOutlineFocus:a}=t,s=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(t,Yl),l=Xn()(s,["onClose","initialFocusIndex","isSubmenu","menuItemSelector"]);return l.className=et()("aria-menu",n,{"is-hidden":i,"should-outline-focus":a}),l.ref=e=>{this.menuEl=e,o&&o(e)},void 0===l.role&&(l.role="menu"),l.tabIndex=-1,l.onClick=this.handleClick,l.onKeyDown=this.handleKeyDown,e.createElement("ul",l,e.createElement(Ql.Provider,{value:{closeMenu:this.fireOnCloseHandler}},r))}}Jl(nc,"defaultProps",{className:"",isSubmenu:!1,isHidden:!1});const ic=nc,oc=["children","className","constrainToScrollParent","constrainToWindow","position","isShown","offset","tetherElementClassName"];function ac(){return ac=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ac.apply(null,arguments)}function sc(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let lc=function(e){return e.BOTTOM_CENTER="bottom-center",e.BOTTOM_LEFT="bottom-left",e.BOTTOM_RIGHT="bottom-right",e.MIDDLE_CENTER="middle-center",e.MIDDLE_LEFT="middle-left",e.MIDDLE_RIGHT="middle-right",e.TOP_CENTER="top-center",e.TOP_LEFT="top-left",e.TOP_RIGHT="top-right",e}({});const cc={[lc.BOTTOM_CENTER]:{attachment:"top center",targetAttachment:"bottom center"},[lc.BOTTOM_LEFT]:{attachment:"top left",targetAttachment:"bottom left"},[lc.BOTTOM_RIGHT]:{attachment:"top right",targetAttachment:"bottom right"},[lc.MIDDLE_CENTER]:{attachment:"middle center",targetAttachment:"middle center"},[lc.MIDDLE_LEFT]:{attachment:"middle right",targetAttachment:"middle left"},[lc.MIDDLE_RIGHT]:{attachment:"middle left",targetAttachment:"middle right"},[lc.TOP_CENTER]:{attachment:"bottom center",targetAttachment:"top center"},[lc.TOP_LEFT]:{attachment:"bottom left",targetAttachment:"top left"},[lc.TOP_RIGHT]:{attachment:"bottom right",targetAttachment:"top right"}};class uc extends e.Component{constructor(...t){super(...t),sc(this,"tetherRef",e.createRef()),sc(this,"radarAnimationID",rt()("radarAnimation")),sc(this,"position",(()=>{const{isShown:e}=this.props;this.tetherRef.current&&e&&this.tetherRef.current.position()}))}render(){const t=this.props,{children:r,className:n="",constrainToScrollParent:i,constrainToWindow:o,position:a,isShown:s,offset:l,tetherElementClassName:c}=t,u=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(t,oc),d=[];i&&d.push({to:"scrollParent",attachment:"together"}),o&&d.push({to:"window",attachment:"together"});const{attachment:h,targetAttachment:f}=cc[a],p=e.Children.only(r),m=e.cloneElement(p,{"aria-describedby":this.radarAnimationID}),b={attachment:h,classPrefix:"radar-animation",constraints:d,targetAttachment:f};return c&&(b.className=c),l&&(b.offset=l),e.createElement(Gl.A,ac({ref:this.tetherRef},b),m,s&&e.createElement("div",ac({className:`radar ${n}`,id:this.radarAnimationID},u),e.createElement("div",{className:"radar-dot"}),e.createElement("div",{className:"radar-circle"})))}}sc(uc,"defaultProps",{constrainToScrollParent:!1,constrainToWindow:!0,isShown:!0,position:lc.MIDDLE_RIGHT});const dc=uc,hc=["children","className","isDisabled","isSelectItem","isSelected","showRadar"];class fc extends e.Component{constructor(...e){var t,r,n;super(...e),t=this,n=e=>{const{isDisabled:t,onClick:r}=this.props;if(t)return e.stopPropagation(),void e.preventDefault();r&&r(e)},(r=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(r="onClickHandler"))in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n}render(){const t=this.props,{children:r,className:n,isDisabled:i,isSelectItem:o,isSelected:a,showRadar:s}=t,l=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(t,hc),c=Xn()(l,["role","tabIndex","onClick"]);c.className=et()("menu-item",n,{"is-select-item":o,"is-selected":a}),c.role=o?"menuitemradio":"menuitem",c.tabIndex=-1,c.onClick=this.onClickHandler,o&&(c["aria-checked"]=a),i&&(c["aria-disabled"]="true");let u=e.createElement("li",c,r);return s&&(u=e.createElement(dc,null,u)),u}}const pc=fc;function mc(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const bc="icon-google-docs";class gc extends e.Component{constructor(...e){super(...e),mc(this,"idPrefix",`${rt()(bc)}-`)}render(){const{className:t,height:r,title:n,width:i}=this.props;return e.createElement(Yn,{className:`${bc} ${t}`,height:r,title:n,viewBox:"0 0 30 30",width:i},e.createElement("defs",null,e.createElement("linearGradient",{gradientTransform:"matrix(2.67 0 0 -2.67 596.67 1357)",gradientUnits:"userSpaceOnUse",id:`${this.idPrefix}a`,x1:"-215.49",x2:"-215.49",y1:"505.79",y2:"503.19"},e.createElement("stop",{offset:"0",stopColor:"#1a237e",stopOpacity:".2"}),e.createElement("stop",{offset:"1",stopColor:"#1a237e",stopOpacity:".02"}))),e.createElement("path",{d:"M17.64 0H6.05A2.05 2.05 0 0 0 4 2.05V28a2.05 2.05 0 0 0 2.05 2h17.72a2.05 2.05 0 0 0 2.05-2V8.18l-4.77-3.41z",fill:"#4285f4"}),e.createElement("path",{d:"M18.23 7.58l7.59 7.58V8.18l-7.59-.6z",fill:`url(#${this.idPrefix}a)`}),e.createElement("path",{d:"M9.45 21.82h10.91v-1.37H9.45zm0 2.73h8.19v-1.37H9.45zm0-9.55v1.36h10.91V15zm0 4.09h10.91v-1.36H9.45z",fill:"#f1f1f1"}),e.createElement("path",{d:"M17.64 0v6.14a2 2 0 0 0 2 2h6.14z",fill:"#a1c2fa"}),e.createElement("path",{d:"M6.05 0A2.05 2.05 0 0 0 4 2.05v.17A2.05 2.05 0 0 1 6.05.17h11.59V0z",fill:"#fff",fillOpacity:".2"}),e.createElement("path",{d:"M19.68 8.18a2 2 0 0 1-2-2v.17a2 2 0 0 0 2 2h6.14v-.17z",fill:"#1a237e",fillOpacity:".1"}))}}mc(gc,"defaultProps",{className:"",height:30,width:30});const yc=gc;function vc(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const wc="icon-google-sheets";class Ec extends e.Component{constructor(...e){super(...e),vc(this,"idPrefix",`${rt()(wc)}-`)}render(){const{className:t,height:r,title:n,width:i}=this.props;return e.createElement(Yn,{className:`${wc} ${t}`,height:r,title:n,viewBox:"0 0 30 30",width:i},e.createElement("defs",null,e.createElement("linearGradient",{gradientTransform:"matrix(2.67 0 0 -2.67 596.67 1357)",gradientUnits:"userSpaceOnUse",id:`${this.idPrefix}a`,x1:"-215.49",x2:"-215.49",y1:"505.79",y2:"503.19"},e.createElement("stop",{offset:"0",stopColor:"#208256"}),e.createElement("stop",{offset:".55",stopColor:"#19955a",stopOpacity:".2"}))),e.createElement("path",{d:"M17.64 0H6.05A2.05 2.05 0 0 0 4 2.05V28a2.05 2.05 0 0 0 2.05 2h17.72a2.05 2.05 0 0 0 2.05-2V8.18l-4.77-3.41z",fill:"#22a565"}),e.createElement("path",{d:"M18.23 7.58l7.59 7.58V8.18l-7.59-.6z",fill:`url(#${this.idPrefix}a)`}),e.createElement("path",{d:"M17.64 0v6.14a2 2 0 0 0 2 2h6.14z",fill:"#8ed1b1"}),e.createElement("path",{d:"M6.05 0A2.05 2.05 0 0 0 4 2.05v.17A2.05 2.05 0 0 1 6.05.17h11.59V0z",fill:"#fff",fillOpacity:".2"}),e.createElement("path",{d:"M19.68 8.18a2 2 0 0 1-2-2v.17a2 2 0 0 0 2 2h6.14v-.17z",fill:"#1a237e",fillOpacity:".1"}),e.createElement("path",{d:"M10 14v10h10V14zm1 1h3.5v2H11zm0 3h3.5v2H11zm0 5v-2h3.5v2zm8 0h-3.5v-2H19zm0-3h-3.5v-2H19zm0-3h-3.5v-2H19z",fill:"#f1f1f1"}))}}vc(Ec,"defaultProps",{className:"",height:30,width:30});const Sc=Ec;function Cc(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const kc="icon-google-slides";class xc extends e.Component{constructor(...e){super(...e),Cc(this,"idPrefix",`${rt()(kc)}-`)}render(){const{className:t,height:r,title:n,width:i}=this.props;return e.createElement(Yn,{className:`${kc} ${t}`,height:r,title:n,viewBox:"0 0 30 30",width:i},e.createElement("defs",null,e.createElement("linearGradient",{gradientTransform:"matrix(2.67 0 0 -2.67 596.67 1357)",gradientUnits:"userSpaceOnUse",id:`${this.idPrefix}a`,x1:"-215.49",x2:"-215.49",y1:"505.79",y2:"503.19"},e.createElement("stop",{offset:"0",stopColor:"#d08714",stopOpacity:".88"}),e.createElement("stop",{offset:".55",stopColor:"#cf8714",stopOpacity:".2"}))),e.createElement("path",{d:"M17.64 0H6.05A2.05 2.05 0 0 0 4 2.05V28a2.05 2.05 0 0 0 2.05 2h17.72a2.05 2.05 0 0 0 2.05-2V8.18l-4.77-3.41z",fill:"#f4b912"}),e.createElement("path",{d:"M18.23 7.58l7.59 7.58V8.18l-7.59-.6z",fill:`url(#${this.idPrefix}a)`}),e.createElement("path",{d:"M17.64 0v6.14a2 2 0 0 0 2 2h6.14z",fill:"#fadc87"}),e.createElement("path",{d:"M6.05 0A2.05 2.05 0 0 0 4 2.05v.17A2.05 2.05 0 0 1 6.05.17h11.59V0z",fill:"#fff",fillOpacity:".2"}),e.createElement("path",{d:"M19.68 8.18a2 2 0 0 1-2-2v.17a2 2 0 0 0 2 2h6.14v-.17z",fill:"#1a237e",fillOpacity:".1"}),e.createElement("path",{d:"M10 15v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-8a1 1 0 0 0-1-1h-8a1 1 0 0 0-1 1zm9 6h-8v-4h8z",fill:"#f1f1f1"}))}}Cc(xc,"defaultProps",{className:"",height:30,width:30});const Pc=xc,_c="#fff",Oc="#0061d5",Ac="#4e4e4e",Tc="#d3d3d3",Ic=["children","title"];class Mc extends e.Component{constructor(...e){var t,r,n;super(...e),t=this,r="id",n=rt()("icon"),(r=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(r))in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n}render(){const t=this.props,{children:r,title:n}=t,i=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(t,Ic),o=`${this.id}-title`,a=Xn()(i,["role","aria-labelledby"]);return a.focusable="false",n?(a["aria-labelledby"]=o,a.role="img"):(a["aria-hidden"]="true",a.role="presentation"),e.createElement("svg",a,n?e.createElement("title",{id:o},n):null,r)}}const Dc=Mc;function Rc(){return Rc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Rc.apply(null,arguments)}function Fc(){return Fc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Fc.apply(null,arguments)}function Lc(){return Lc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Lc.apply(null,arguments)}function jc(){return jc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},jc.apply(null,arguments)}function Nc(){return Nc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Nc.apply(null,arguments)}function Uc(){return Uc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Uc.apply(null,arguments)}function Hc(){return Hc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Hc.apply(null,arguments)}function Bc(){return Bc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Bc.apply(null,arguments)}function zc(){return zc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},zc.apply(null,arguments)}function Vc(){return Vc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Vc.apply(null,arguments)}function $c(){return $c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$c.apply(null,arguments)}function qc(){return qc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qc.apply(null,arguments)}function Gc(){return Gc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Gc.apply(null,arguments)}function Wc(){return Wc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Wc.apply(null,arguments)}function Xc(){return Xc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Xc.apply(null,arguments)}function Kc(){return Kc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Kc.apply(null,arguments)}function Qc(){return Qc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Qc.apply(null,arguments)}function Yc(){return Yc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Yc.apply(null,arguments)}function Jc(){return Jc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Jc.apply(null,arguments)}function Zc(){return Zc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Zc.apply(null,arguments)}function eu(){return eu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},eu.apply(null,arguments)}function tu(){return tu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},tu.apply(null,arguments)}const ru=t=>e.createElement(Dc,tu({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("path",{fill:Oc,fillRule:"nonzero",d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),e.createElement("path",{fill:_c,fillOpacity:.5,fillRule:"nonzero",d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),e.createElement("path",{fill:_c,d:"M17.5 21c.245 0 .45.183.492.412L18 21.5c0 .276-.23.5-.5.5h-7a.505.505 0 01-.5-.5c0-.276.23-.5.5-.5h7zm4-3c.245 0 .45.183.492.412L22 18.5c0 .276-.229.5-.5.5h-11a.505.505 0 01-.5-.5c0-.276.229-.5.5-.5h11zm-1.001-3c.246 0 .45.183.493.412L21 15.5c0 .276-.23.5-.501.5H10.5a.506.506 0 01-.501-.5c0-.276.23-.5.501-.5h10z"})));function nu(){return nu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},nu.apply(null,arguments)}function iu(){return iu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},iu.apply(null,arguments)}function ou(){return ou=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ou.apply(null,arguments)}function au(){return au=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},au.apply(null,arguments)}function su(){return su=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},su.apply(null,arguments)}function lu(){return lu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},lu.apply(null,arguments)}function cu(){return cu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},cu.apply(null,arguments)}const uu={IconFileAudio:t=>e.createElement(Dc,Rc({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("g",{fill:"none"},e.createElement("path",{fill:"#9f3fed",d:"M9 3h9.172a2 2 0 011.414.586l5.83 5.828A2 2 0 0126 10.83V26a3 3 0 01-3 3H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),e.createElement("path",{fill:_c,fillOpacity:.5,d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),e.createElement("path",{fill:_c,d:"M18.75 17h-5.5a.25.25 0 00-.25.25v4.25a1.5 1.5 0 11-1.5-1.5.9.9 0 01.5.1v-6.35a.75.75 0 01.75-.75h6.5a.75.75 0 01.75.75v7.75a1.5 1.5 0 11-1.5-1.5.9.9 0 01.5.1v-2.85a.25.25 0 00-.25-.25zm-5.5-1h5.5a.25.25 0 00.25-.25V14.5a.5.5 0 00-.5-.5h-5a.5.5 0 00-.5.5v1.25c0 .138.112.25.25.25z"}))),IconFileBoxCanvas:t=>e.createElement(Dc,Fc({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("path",{d:"M9 3h9.585a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26a3 3 0 01-3 3H9a3 3 0 01-3-3V6a3 3 0 013-3z",fill:"#f1811a"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15 15.5a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0zm3.729 4.521c.125-.016.44-.059.912.059l.09.022c.674.164 2.394.583 4.48 2.218.196.167.697.602.78.675.038.034.214.211.411.41.24.242.51.515.6.598V26a65.511 65.511 0 01-1.164-1.172c-.521-.541-.876-.87-1.345-1.3-.469-.43-1.733-1.361-2.488-1.675-.756-.313-1.08-.444-1.398-.49l.007.021a1.28 1.28 0 00.068.172c.016.034.028.06.039.104l.238.524.031.067.009.02.006.012.01.026.183.422c.266.613.465 1.108.594 1.473.177.502.27.925.153 1.285-.116.36-.398.508-.754.508-.537 0-1.303-.421-1.543-.567l-.086-.052a7.211 7.211 0 01-.621-.413c-.327-.234-.444-.362-.53-.455a2.335 2.335 0 00-.045-.049c-.094-.097-.319-.333-.359-.657-.023-.183.001-.398.107-.55.062-.088.16-.215.44-.25a.649.649 0 01.436.133c.051.036.151.137.27.255a6.17 6.17 0 00.608.555c.203.166.445.364.603.425-.032-.072-.09-.195-.147-.318v-.001a18.603 18.603 0 01-.137-.297 11.247 11.247 0 00-.194-.41c-.333-.684-.663-1.381-.807-1.814l-.024-.073c-.13-.387-.205-.612-.129-.884.052-.185.111-.32.337-.438.09-.047.23-.098.348-.113l.01-.002zm.71-6.778l2.483 3.974a.511.511 0 01-.44.783h-4.966a.515.515 0 01-.44-.783l2.484-3.974a.519.519 0 01.878 0zm-9.44 7.579c0-.454.368-.822.822-.822h3.356c.454 0 .822.368.822.822v3.356a.822.822 0 01-.822.822h-3.356a.822.822 0 01-.822-.822v-3.356z",fill:"#fff"}),e.createElement("path",{opacity:.5,d:"M19.285 3.286l6.421 6.421a1 1 0 01.204.293h-4.911a2 2 0 01-1.995-1.85L19 8V3.09a1 1 0 01.286.196z",fill:"#fff"})),IconFileBoxNote:t=>e.createElement(Dc,Lc({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("path",{fill:Tc,fillRule:"nonzero",d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),e.createElement("path",{fill:_c,fillOpacity:.5,fillRule:"nonzero",d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),e.createElement("path",{fill:"#9725DD",d:"M18.526 14.146l-.92 1.375h-6.92a.685.685 0 01-.686-.688c0-.38.31-.687.687-.687h7.839z"}),e.createElement("path",{fill:Oc,d:"M16.379 17.583l-.92 1.375h-4.762a.69.69 0 01-.697-.687c0-.38.31-.688.697-.688h5.682z"}),e.createElement("path",{fill:"#00C8C0",d:"M14.231 21.02l-.424.637a2.166 2.166 0 00-.229.493l-.031.118-.028.127H10.69a.687.687 0 110-1.374h3.541z"}),e.createElement("path",{fill:"#000",d:"M14.841 21.332l4.64-6.72.053.092c.074.114.235.322.538.541.456.329.797.374.797.374l-4.64 6.72a2.558 2.558 0 01-.461.483l-1.373 1.037c-.146.11-.234.054-.193-.14l.372-1.764c.04-.187.156-.46.267-.623zm6.648-8.163c.373.272.407.704.407.704a3.57 3.57 0 01-.314.607l-.28.417-.09-.016a1.714 1.714 0 01-.632-.282c-.35-.255-.628-.687-.628-.687l.28-.418c.106-.158.284-.397.448-.51l.074-.009c.14-.012.456-.01.735.194z"}))),IconFileCode:t=>e.createElement(Dc,jc({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("g",{fill:"none"},e.createElement("path",{fill:"#E33D55",d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),e.createElement("path",{fill:_c,fillOpacity:.5,d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),e.createElement("path",{fill:_c,d:"M17.553 13.776a.5.5 0 01.894.448l-4 8a.5.5 0 01-.894-.448zm-4.83 1.808a.5.5 0 11.554.832L10.901 18l2.376 1.584a.5.5 0 11-.554.832l-3-2a.5.5 0 010-.832zm6.554 0l3 2a.5.5 0 010 .832l-3 2a.5.5 0 11-.554-.832L21.099 18l-2.376-1.584a.5.5 0 01.554-.832z"}))),IconFileDefault:t=>e.createElement(Dc,Nc({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("g",{fill:"none"},e.createElement("path",{fill:Tc,d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),e.createElement("path",{fill:_c,fillOpacity:.5,d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}))),IconFileDocument:ru,IconFileDwg:t=>e.createElement(Dc,Uc({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("g",{fill:"none"},e.createElement("path",{fill:"#009AED",d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),e.createElement("path",{fill:_c,fillOpacity:.5,d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),e.createElement("path",{fill:_c,d:"M18 18v-2h-2v-4h-1v4h-2v2H9v1h4v2h2v4h1v-4h2v-2h4v-1h-4zm-1 2h-3v-3h3v3z"}))),IconFileExcelSpreadsheet:t=>e.createElement(Dc,Hc({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("g",{fill:"none"},e.createElement("path",{fill:"#107C41",d:"M9 3h9.586c.265 0 .52.105.707.293l6.415 6.414a1 1 0 01.293.707V26A3.002 3.002 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),e.createElement("path",{fill:"#87BDA0",d:"M19.286 3.286l6.422 6.421a.994.994 0 01.203.293H21a2.001 2.001 0 01-1.995-1.85L19 8V3.09c.105.048.202.114.286.196z"}),e.createElement("path",{fill:_c,d:"M20.25 25a.748.748 0 00.75-.75v-10.5a.748.748 0 00-.75-.75H12a.748.748 0 00-.75.75v1.5h-1.5A.748.748 0 009 16v6a.748.748 0 00.75.75h1.5v1.5A.748.748 0 0012 25h8.25zm-4.5-9.75H12v-1.5h3.75v1.5zm4.5 0H16.5v-1.5h3.75v1.5zm0 3H16.5V16h3.75v2.25zm-8.344 3.188h-1.511l1.582-2.45-1.442-2.425h1.518l.756 1.494.82-1.494h1.43l-1.483 2.42 1.518 2.454H13.6l-.838-1.564-.856 1.564zm8.344-.188H16.5V19h3.75v2.25zm0 3H16.5V22h3.75v2.25zm-4.5 0H12v-1.5h3.75v1.5z"}))),IconFileGoogleDocs:t=>e.createElement(Dc,Bc({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("path",{fill:"#4083F7",fillRule:"nonzero",d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),e.createElement("path",{fill:_c,fillOpacity:.5,fillRule:"nonzero",d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),e.createElement("path",{fill:_c,d:"M16 23v1h-6v-1h6zm5-3v1H10v-1h11zm0-3v1H10v-1h11zm0-3v1H10v-1h11z"}))),IconFileGoogleSheets:t=>e.createElement(Dc,zc({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("g",{fill:"none"},e.createElement("path",{fill:"#21A464",d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),e.createElement("path",{fill:_c,fillOpacity:.5,d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),e.createElement("path",{fill:_c,d:"M20.499 14c.277 0 .501.228.501.51v8.98c0 .282-.23.51-.501.51H10.5a.505.505 0 01-.501-.51v-8.98c0-.282.23-.51.501-.51h10zM11 21v2h4v-2.001L11 21zm5 0v2h4v-2h-4zm4-3h-4v2h4v-2zm0-3h-4v2h4v-2zm-5 0h-4v2l4-.001V15zm-4 5l4-.001v-2L11 18v2z"}))),IconFileGoogleSlides:t=>e.createElement(Dc,Vc({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("g",{fill:"none"},e.createElement("path",{fill:"#F7BA00",d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),e.createElement("path",{fill:_c,fillOpacity:.5,d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),e.createElement("path",{fill:_c,d:"M10 14v9c0 .6.4 1 1 1h9c.6 0 1-.4 1-1v-9c0-.6-.4-1-1-1h-9c-.6 0-1 .4-1 1zm10 7h-9v-5h9v5z"}))),IconFileIllustrator:t=>e.createElement(Dc,$c({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("path",{fill:"#051E25",fillRule:"nonzero",d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),e.createElement("path",{fill:_c,fillOpacity:.5,fillRule:"nonzero",d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),e.createElement("path",{fill:"#FF9400",d:"M20.42 15.805c.072 0 .108.027.108.107v6.982c0 .07-.018.106-.107.106h-1.393c-.09 0-.117-.044-.117-.115v-6.973h-.009c0-.071.027-.107.108-.107h1.41zm-5.813-2.557c.063 0 .09.017.108.088l2.857 9.549c.018.07 0 .115-.072.115h-1.49c-.072 0-.117-.018-.135-.08l-.737-2.663h-2.875l-.71 2.655c-.018.07-.045.088-.135.088h-1.32c-.09 0-.109-.027-.09-.133l2.551-8.796c.045-.16.072-.301.09-.735 0-.062.027-.088.072-.088h1.887zm-.917 1.416h-.018c-.188 1.035-.665 2.787-1.042 4.159h2.13c-.252-.982-.845-3.124-1.07-4.16zM19.72 13c.548 0 .916.363.916.903 0 .584-.386.902-.934.902-.521 0-.899-.318-.899-.902 0-.567.404-.903.917-.903z"}))),IconFileImage:t=>e.createElement(Dc,qc({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("path",{fill:"#3FB87F",fillRule:"nonzero",d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),e.createElement("path",{fill:_c,fillOpacity:.5,fillRule:"nonzero",d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),e.createElement("path",{fill:_c,d:"M14.754 18.128l3.102 3.204 1.327-1.625c.158-.193.415-.193.575 0l2.06 2.485c.37.446.159.808-.472.808H10.63c-.633 0-.82-.341-.414-.767a72386.439 72386.439 0 013.9-4.089.444.444 0 01.64-.016zM17.5 14a1.5 1.5 0 110 3 1.5 1.5 0 010-3z"}))),IconFileIndesign:t=>e.createElement(Dc,Gc({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("path",{fill:"#051E25",fillRule:"nonzero",d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),e.createElement("path",{fill:_c,fillOpacity:.5,fillRule:"nonzero",d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),e.createElement("path",{fill:"#FF57A1",d:"M19.866 13c.071 0 .09.027.09.072v8.385c0 .251 0 .565.044.906 0 .063-.018.072-.08.108a5.449 5.449 0 01-2.342.529c-1.975 0-3.387-1.229-3.387-3.73-.01-2.144 1.403-3.813 3.664-3.813.188 0 .295 0 .474.018V13.09c0-.063.044-.09.09-.09h1.447zm-7.364 0c.071 0 .107.027.107.108v9.64c0 .09-.018.117-.116.117h-1.377c-.09 0-.116-.044-.116-.116v-9.632c0-.09.045-.117.116-.117h1.386zm5.3 3.83c-1.154 0-1.958.888-1.958 2.367 0 1.686.822 2.368 1.85 2.368.224 0 .456-.027.635-.108V16.92a1.282 1.282 0 00-.528-.09z"}))),IconFileKeynote:t=>e.createElement(Dc,Wc({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("path",{d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z",fill:"#1A66EF"}),e.createElement("path",{d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z",fill:"#fff",fillOpacity:.5}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.991 16.925l-.697-4.338a.697.697 0 00-.688-.587h-8.212a.697.697 0 00-.688.587l-.697 4.338a.698.698 0 00.688.807h9.606a.698.698 0 00.688-.807zM17.979 24.225h-2.092V18.2h-.774v6.025H13.02c-.31 0-.465.155-.465.387 0 .233.155.388.465.388h4.958c.31 0 .465-.155.465-.387 0-.233-.155-.388-.465-.388z",fill:"#fff"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.5 14.169l-1.047 1.253c.294.186.656.296 1.047.296.391 0 .753-.11 1.047-.296.301-.19.53-.46.648-.774l-1.695-.479z",fill:"#66C155"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.805 14.648a1.365 1.365 0 010-.958l1.695.479-1.695.479z",fill:"#FA9E27"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.453 12.916a1.958 1.958 0 011.047-.296v1.549l-1.047-1.253z",fill:"#AB4287"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.195 13.69a1.584 1.584 0 00-.648-.774 1.957 1.957 0 00-1.047-.296v1.549l1.695.479a1.365 1.365 0 000-.958z",fill:"#61D9FE"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.453 15.422c-.301-.19-.53-.46-.648-.774l1.695-.479-1.047 1.253z",fill:"#FBCE5A"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.805 13.69c.117-.314.347-.584.648-.774l1.047 1.253-1.695-.479z",fill:"#E85A5E"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.311 16.338H11.69c-.248 0-.372.124-.372.31s.124.31.372.31h7.622c.248 0 .372-.124.372-.31s-.124-.31-.372-.31z",fill:"#C7E8FD"})),IconFileNumbers:t=>e.createElement(Dc,Xc({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("path",{d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z",fill:"#18D31D"}),e.createElement("path",{d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z",fill:"#fff",fillOpacity:.5}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 21.529v-.1l.001-.084c.002-.062.006-.123.017-.184a.616.616 0 01.164-.322.584.584 0 01.322-.165c.06-.011.123-.015.184-.017h.084l.1-.001h.47a16.617 16.617 0 01.185.001c.06.002.122.006.183.017a.616.616 0 01.322.165.585.585 0 01.165.322c.01.06.014.122.016.183a3.95 3.95 0 01.001.185v2.003l-.001.084a1.224 1.224 0 01-.016.183.618.618 0 01-.165.323.584.584 0 01-.322.165 1.21 1.21 0 01-.183.016l-.084.001H10.77l-.084-.001a1.207 1.207 0 01-.182-.016.616.616 0 01-.323-.165.587.587 0 01-.165-.323 1.24 1.24 0 01-.016-.183v-.084l-.001-.1v-1.903zM12.928 18.453v-.1l.002-.085c.001-.06.005-.122.016-.183a.62.62 0 01.165-.322.587.587 0 01.322-.166c.06-.01.122-.014.183-.016h.084l.1-.001h.471a16.584 16.584 0 01.184.001c.061.002.123.006.183.017a.616.616 0 01.322.165.588.588 0 01.165.322c.01.06.014.122.016.183l.001.085V23.616a1.237 1.237 0 01-.017.183.618.618 0 01-.165.323.585.585 0 01-.322.165 1.21 1.21 0 01-.183.016 3.93 3.93 0 01-.084.001H13.7l-.084-.001a1.208 1.208 0 01-.183-.016.616.616 0 01-.322-.165.585.585 0 01-.165-.323 1.212 1.212 0 01-.016-.183 3.93 3.93 0 01-.002-.084v-5.08zM15.857 12.873v-.1c0-.028 0-.056.002-.084.001-.062.005-.123.016-.184a.62.62 0 01.165-.322.586.586 0 01.322-.165c.06-.011.122-.015.183-.017h.084l.1-.001h.471a16.584 16.584 0 01.184.001c.06.002.122.006.183.017a.619.619 0 01.322.165.588.588 0 01.165.322c.01.06.014.122.016.184l.001.084V23.532l-.001.084a1.238 1.238 0 01-.016.183.62.62 0 01-.165.323.585.585 0 01-.322.165c-.06.01-.122.014-.183.016a3.93 3.93 0 01-.084.001H16.629l-.084-.001a1.234 1.234 0 01-.183-.016.619.619 0 01-.322-.165.585.585 0 01-.165-.323 1.21 1.21 0 01-.016-.183 3.93 3.93 0 01-.002-.084v-10.66zM18.785 16.02v-.1l.002-.084a1.21 1.21 0 01.016-.183.62.62 0 01.165-.323.587.587 0 01.322-.165c.06-.01.122-.014.183-.016l.084-.001h.571a16.584 16.584 0 01.184.001c.061.002.123.005.183.016a.615.615 0 01.322.165.587.587 0 01.165.323c.011.06.015.122.016.183l.002.085V23.53c0 .029 0 .057-.002.085a1.224 1.224 0 01-.016.183.62.62 0 01-.165.323.585.585 0 01-.322.165c-.06.01-.122.014-.183.016a3.92 3.92 0 01-.084.001H19.557l-.084-.001a1.208 1.208 0 01-.183-.016.617.617 0 01-.322-.165.585.585 0 01-.165-.323 1.213 1.213 0 01-.016-.183 3.94 3.94 0 01-.001-.084V16.02z",fill:"#fff"})),IconFilePages:t=>e.createElement(Dc,Kc({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("path",{d:"M9 3h9.586a1 1 0 01.707.293l6.414 6.414a1 1 0 01.293.707V26a3 3 0 01-3 3H9a3 3 0 01-3-3V6a3 3 0 013-3z",fill:"#FB8517"}),e.createElement("path",{d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z",fill:"#fff",fillOpacity:.5}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.686 24.179H11.52l-1.418.63h11.583c.173 0 .314-.14.314-.314v-.002a.314.314 0 00-.314-.314z",fill:"#FFC78A"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.42 23.653l-.399.683a.158.158 0 00.216.216l.683-.399-.5-.5zM9.653 23.256l.664.664c.049.05.124.06.185.028a7.674 7.674 0 001.863-1.368l3.427-3.427-1.372-1.372-3.427 3.427a7.677 7.677 0 00-1.368 1.863.158.158 0 00.028.185zM16.107 18.838a.158.158 0 00.223 0l.785-.804c4.412-4.412 4.727-5.515 4.333-5.91-.394-.393-1.497-.078-5.909 4.334l-.804.785a.158.158 0 000 .223l1.372 1.372z",fill:"#fff"})),IconFilePDF:t=>e.createElement(Dc,Qc({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("g",{fill:"none"},e.createElement("path",{fill:"#D0021B",d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),e.createElement("path",{fill:_c,fillOpacity:.5,d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),e.createElement("path",{fill:_c,d:"M13.133 16.998c0 .354-.054.66-.162.918a1.745 1.745 0 01-1.044 1.012 2.057 2.057 0 01-.693.122h-.621v2.322H9.2V15h1.98c.228 0 .457.033.688.099a1.655 1.655 0 011.089.945c.118.258.176.576.176.954zm-1.35.027c0-.288-.069-.495-.207-.621a.72.72 0 00-.504-.189h-.459v1.665h.459a.665.665 0 00.504-.22c.138-.148.207-.359.207-.635zm6.854 1.179c0 .48-.052.915-.157 1.305-.106.39-.266.723-.482.999a2.14 2.14 0 01-.824.639c-.333.15-.727.225-1.183.225H14.2V15h1.791c.456 0 .85.075 1.183.225.334.15.608.364.824.643.216.28.376.615.482 1.008.105.394.157.836.157 1.328zm-1.449 0c0-.642-.11-1.126-.328-1.454-.22-.327-.503-.49-.851-.49h-.351v3.852h.351c.348 0 .631-.163.85-.49.22-.328.329-.8.329-1.418zm3.961-1.899v1.296h1.521v1.233h-1.512v2.538H19.7V15h3.105v1.305h-1.656z"}))),IconFilePhotoshop:t=>e.createElement(Dc,Yc({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("path",{fill:"#051E25",fillRule:"nonzero",d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),e.createElement("path",{fill:_c,fillOpacity:.5,fillRule:"nonzero",d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),e.createElement("path",{fill:"#26C9FF",d:"M19.527 15.491c.79 0 1.34.116 1.643.25.074.045.092.116.092.179v1.223c0 .071-.046.116-.138.09-.403-.25-1-.403-1.597-.403-.725 0-.973.358-.973.652 0 .322.166.545 1.139 1.036 1.44.678 1.89 1.33 1.89 2.286 0 1.428-1.12 2.196-2.634 2.196-.798 0-1.487-.16-1.881-.384-.065-.027-.074-.071-.074-.143v-1.312c0-.09.046-.116.11-.072.579.366 1.24.527 1.845.527.725 0 1.028-.295 1.028-.696 0-.322-.211-.607-1.138-1.072-1.303-.607-1.845-1.223-1.845-2.25 0-1.152.927-2.107 2.533-2.107zM12.57 13c2.542 0 3.534 1.357 3.534 3.09 0 2.267-1.69 3.24-3.763 3.24-.35 0-.469-.017-.716-.017v3.428c0 .071-.028.107-.11.107H10.11c-.073 0-.11-.027-.11-.107v-9.59c0-.062.129-.106.202-.106.587-.027 1.46-.045 2.368-.045zm-.055 1.42c-.367 0-.716.018-.881.026v3.447c.21.018.376.018.743.018 1.074 0 2.084-.366 2.084-1.786 0-1.134-.725-1.705-1.946-1.705z"}))),IconFilePowerpointPresentation:t=>e.createElement(Dc,Jc({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("g",{fill:"none"},e.createElement("path",{fill:"#C43E1C",d:"M9 3h9.586c.265 0 .52.105.707.293l6.415 6.414a1 1 0 01.293.707V26A3.002 3.002 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),e.createElement("path",{fill:"#E19E8D",d:"M19.286 3.286l6.422 6.421a.994.994 0 01.203.293H21a2.001 2.001 0 01-1.995-1.85L19 8V3.09c.105.048.202.114.286.196z"}),e.createElement("path",{fill:_c,d:"M16 24a5.947 5.947 0 004.239-1.76 6.07 6.07 0 00.94-1.214c.262-.443.465-.92.607-1.432A5.862 5.862 0 0022 18a5.947 5.947 0 00-1.76-4.239 6.07 6.07 0 00-1.214-.94 5.894 5.894 0 00-1.432-.607A5.862 5.862 0 0016 12c-.457 0-.904.05-1.342.152a6.123 6.123 0 00-1.257.44c-.4.191-.776.427-1.128.706-.351.28-.67.597-.955.952h-.568A.748.748 0 0010 15v6a.748.748 0 00.75.75h.568c.286.355.604.673.955.952.352.28.728.515 1.128.706.4.192.82.338 1.257.44.438.101.885.152 1.342.152zm0-9.75h-3.668A5.186 5.186 0 0116 12.75v1.5zm5.197 3H17.5V15a.73.73 0 00-.219-.527.847.847 0 00-.241-.161.703.703 0 00-.29-.062v-1.447a5.086 5.086 0 011.617.512c.504.26.951.585 1.342.976.39.39.716.838.976 1.342.26.504.43 1.043.512 1.617zm-7.869 3.188h-1.213v-4.875h1.887c.258 0 .495.03.712.093.217.063.402.16.557.29.154.131.275.297.363.498.088.202.132.439.132.712 0 .266-.047.503-.141.712-.094.21-.223.386-.387.53a1.688 1.688 0 01-.577.331c-.22.077-.458.115-.712.115h-.62v1.593zm.527-2.655c.207 0 .369-.043.484-.129.115-.086.173-.24.173-.463 0-.214-.056-.36-.167-.439-.112-.078-.267-.117-.466-.117h-.55v1.148h.526zM16 23.25a5.186 5.186 0 01-3.668-1.5h4.418a.748.748 0 00.75-.75v-3.006h3.75c0 .485-.063.95-.188 1.395a5.251 5.251 0 01-1.353 2.32 5.258 5.258 0 01-2.317 1.353A5.155 5.155 0 0116 23.25z"}))),IconFilePresentation:t=>e.createElement(Dc,Zc({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("g",{fill:"none"},e.createElement("path",{fill:"#F7931D",d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),e.createElement("path",{fill:_c,fillOpacity:.5,d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),e.createElement("path",{fill:_c,d:"M15.643 20.354a.5.5 0 00.707 0l5.003-5a.5.5 0 10-.706-.708l-4.65 4.647-1.647-1.647a.5.5 0 00-.707 0L9.646 21.65a.5.5 0 10.708.707l3.643-3.649 1.646 1.647z"}))),IconFileSpreadsheet:t=>e.createElement(Dc,eu({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("g",{fill:"none"},e.createElement("path",{fill:"#3FB87F",d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),e.createElement("path",{fill:_c,fillOpacity:.5,d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),e.createElement("path",{fill:_c,d:"M22 23.49c0 .282-.229.51-.5.51h-11a.505.505 0 01-.5-.51v-8.98c0-.282.229-.51.5-.51h11c.276 0 .5.228.5.51v8.98zM11 23h2v-2h-2v2zm10-2h-7v2h7v-2zm0-1v-2h-7v2h7zm-10 0h2v-2h-2v2zm10-3v-2h-7v2h7zm-8-2h-2v2h2v-2z"}))),IconFileText:ru,IconFileThreeD:t=>e.createElement(Dc,nu({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("g",{fill:"none"},e.createElement("path",{fill:"#F7931D",d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),e.createElement("path",{fill:_c,fillOpacity:.5,d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),e.createElement("path",{fill:_c,d:"M20 14.068l-3.6-1.85c-.5-.291-1.3-.291-1.8 0l-3.6 1.85c-.6.292-1 .973-1 1.556v4.768c0 .681.4 1.265 1 1.557l3.6 1.849c.496.27 1.234.27 1.8 0l3.6-1.849c.6-.292 1-.973 1-1.557v-4.768c0-.583-.4-1.264-1-1.556zm-8.6 7.103c-.2-.098-.4-.487-.4-.681v-4.768c0-.292.2-.584.4-.681l3.6-1.85c.2-.096.6-.096.9 0l3.6 1.85c.1.061.154.134.2.194l-4.2 1.761v6.12c-.2 0-.282-.05-.4-.097l-3.7-1.848z"}))),IconFileVector:t=>e.createElement(Dc,iu({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("g",{fill:"none"},e.createElement("path",{fill:"#F7931D",d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),e.createElement("path",{fill:_c,fillOpacity:.5,d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),e.createElement("path",{fill:_c,d:"M13.195 17.07l.005.01c.12.312.292.6.504.851l-.424.254c-1.414.847-2.452 2.33-2.715 3.992a1 1 0 11-.999-.078c.289-1.994 1.516-3.763 3.2-4.772l.43-.257zm5.618.003l.429.256c1.687 1.008 2.91 2.77 3.197 4.77a1 1 0 11-1.002.073c-.26-1.664-1.293-3.14-2.708-3.985l-.43-.256.013-.019c.194-.235.354-.5.47-.787l.03-.052zM16 14a2 2 0 011.937 1.5h4.592c.26 0 .471.21.471.47v.06c0 .26-.21.47-.47.47l-4.593.001a2 2 0 01-3.874 0L9.471 16.5a.47.47 0 01-.47-.47v-.06c0-.26.21-.47.47-.47h4.592A2 2 0 0116 14zm0 1a1 1 0 00-1 .98v.039l.007.098A1 1 0 1016 15z"}))),IconFileVideo:t=>e.createElement(Dc,ou({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("path",{fill:"#009AED",fillRule:"nonzero",d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),e.createElement("path",{fill:_c,fillOpacity:.5,fillRule:"nonzero",d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),e.createElement("path",{fill:_c,d:"M19.723 18.973l-5.914 3.957a.543.543 0 01-.809-.473v-7.914a.543.543 0 01.809-.473l5.914 3.957a.543.543 0 010 .946z"}))),IconFileWordDocument:t=>e.createElement(Dc,au({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("g",{fill:"none"},e.createElement("path",{fill:"#185ABD",d:"M9 3h9.586c.265 0 .52.105.707.293l6.415 6.414a1 1 0 01.293.707V26A3.002 3.002 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),e.createElement("path",{fill:"#8BACDE",d:"M19.286 3.286l6.422 6.421a.994.994 0 01.203.293H21a2.001 2.001 0 01-1.995-1.85L19 8V3.09c.105.048.202.114.286.196z"}),e.createElement("path",{fill:_c,d:"M20.25 25a.748.748 0 00.75-.75v-10.5a.748.748 0 00-.75-.75H12a.748.748 0 00-.75.75v1.5h-1.5A.748.748 0 009 16v6a.748.748 0 00.75.75h1.5v1.5A.748.748 0 0012 25h8.25zm0-9.75H12v-1.5h8.25v1.5zm0 3H16.5V16h3.75v2.25zm-8.104 3.188h-1.26l-1.083-4.875h1.207l.55 2.8.61-2.8h1.184l.638 2.783.51-2.784h1.195l-1.078 4.875h-1.242l-.633-2.8-.598 2.8zm8.104-.188H16.5V19h3.75v2.25zm0 3H12v-1.5h3.75a.748.748 0 00.75-.75h3.75v2.25z"}))),IconFileXbd:t=>e.createElement(Dc,su({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("path",{d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z",fill:"#00838D"}),e.createElement("path",{d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z",fill:_c,fillOpacity:.5}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.583 16v5h2.122c.498 0 .913-.137 1.205-.395.294-.259.452-.63.452-1.076v-.007c0-.565-.34-1.026-.84-1.186.372-.18.625-.588.625-1.034v-.007c0-.394-.14-.722-.404-.95-.263-.227-.638-.345-1.09-.345h-2.07zm4.594 0v5h1.872c.697 0 1.255-.228 1.637-.667.38-.438.575-1.071.575-1.861v-.007c0-.767-.197-1.386-.58-1.813-.383-.429-.94-.652-1.632-.652h-1.872zm-2.765.948c.208 0 .358.054.455.14.095.084.15.21.15.38v.007c0 .171-.058.295-.163.38-.108.086-.279.14-.52.14h-.605v-1.047h.683zm.031 1.911c.265 0 .453.058.573.154.117.092.182.232.182.43v.006c0 .205-.064.348-.178.443-.116.098-.297.157-.555.157h-.737v-1.19h.715zm3.879 1.11V17.03h.578c.383 0 .677.132.878.37.203.24.32.602.32 1.08v.007c0 .498-.114.868-.315 1.11-.198.24-.492.37-.883.37h-.578zM9 20.996h1.35l1.033-1.62 1.035 1.62h1.415l-1.656-2.503L13.858 16H12.46l-.996 1.665L10.461 16H9.005l1.62 2.475L9 20.995z",fill:_c})),IconFileXdw:t=>e.createElement(Dc,lu({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("path",{d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z",fill:"#00838D"}),e.createElement("path",{d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z",fill:_c,fillOpacity:.5}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.352 21H8l1.627-2.523L8.005 16h1.457l1.004 1.666.997-1.666h1.4l-1.683 2.495L12.837 21H11.42l-1.036-1.62L9.352 21zm3.918 0v-5h2.035c.75 0 1.354.222 1.771.649.417.427.634 1.046.634 1.816v.007c0 .792-.214 1.427-.629 1.864-.416.438-1.021.664-1.776.664H13.27zm6.01 0l-1.356-5h1.283l.717 3.208.838-3.208h1.024l.854 3.21.71-3.21h1.277l-1.358 5h-1.117l-.88-3.057L20.405 21h-1.125zM14.5 17.031v2.938h.64c.433 0 .757-.133.975-.374.218-.243.342-.61.342-1.107v-.006c0-.476-.127-.837-.348-1.078-.22-.239-.545-.373-.969-.373h-.64z",fill:_c})),IconFileZip:t=>e.createElement(Dc,cu({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("g",{fill:"none"},e.createElement("path",{fill:Tc,d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),e.createElement("path",{fill:_c,fillOpacity:.5,d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),e.createElement("path",{fill:Ac,d:"M10 24h1v1h-1v-1zm0-2h1v1h-1v-1zm0-2h1v1h-1v-1zm0-2h1v1h-1v-1zm0-2h1v1h-1v-1zm0-2h1v1h-1v-1zm0-2h1v1h-1v-1zm0-2h1v1h-1v-1zm0-2h1v1h-1V8zm1 15h1v1h-1v-1zm0-2h1v1h-1v-1zm0-2h1v1h-1v-1zm0-2h1v1h-1v-1zm0-2h1v1h-1v-1zm0-2h1v1h-1v-1zm0-2h1v1h-1v-1zm0-2h1v1h-1V9z"})))},du=e=>e.reduce(((e,t)=>(e[t]=t,e)),{}),hu={IconFileAudio:du(["aac","aif","aifc","aiff","amr","au","flac","m3u","m4a","mid","mp3","ra","wav","wma","wpl"]),IconFileBoxCanvas:du(["boxcanvas"]),IconFileBoxNote:du(["boxnote"]),IconFileCode:du(["as","as3","asm","aspx","c","cpp","bat","c","cc","cmake","cs","css","cxx","db","diff","erb","groovy","h","haml","hh","htm","html","java","js","less","m","make","md","ml","mm","php","pl","plist","properties","py","rb","sass","scala","script","scm","sml","sql","sh","wabba","yaml"]),IconFileDocument:du(["dot","dotx","msg","odt","rtf","wpd","xhtml","xml","xsd","xsl"]),IconFileDwg:du(["dwg","dwgzip"]),IconFileExcelSpreadsheet:du(["xls","xlsx","xlsm","xlsb"]),IconFileGoogleDocs:du(["gdoc"]),IconFileGoogleSheets:du(["gsheet"]),IconFileGoogleSlides:du(["gslide","gslides"]),IconFileVector:du(["eps"]),IconFileIllustrator:du(["ai"]),IconFileIndesign:du(["idml","indd","indt","inx"]),IconFileKeynote:du(["key"]),IconFileNumbers:du(["numbers"]),IconFilePages:du(["pages"]),IconFileImage:du(["bmp","gif","gdraw","jpeg","jpg","png","ps","svs","svg","tif","tiff","heic","heif"]),IconFilePDF:du(["pdf"]),IconFilePresentation:du(["odp","otp","pot","potx"]),IconFilePowerpointPresentation:du(["ppt","pptx","pptm"]),IconFilePhotoshop:du(["psd"]),IconFileSpreadsheet:du(["csv","ods","tsv","xlt","xltx"]),IconFileText:du(["txt","vi","vim","webdoc"]),IconFileThreeD:du(["3ds","dae","fbx","obj","ply","stl"]),IconFileVideo:du(["3g2","3gp","avi","flv","m2v","m2ts","m4v","mkv","mov","mp4","mpeg","mpg","ogg","mts","qt","wmv"]),IconFileWordDocument:du(["docx","doc","docm"]),IconFileXbd:du(["xbd"]),IconFileXdw:du(["xdw"]),IconFileZip:du(["rar","tgz","zip"])},fu=({dimension:t=32,extension:r="",title:n})=>{const i=uu[((e="")=>Object.keys(hu).filter((t=>!!hu[t][e.toLowerCase()]))[0]||"IconFileDefault")(r)];return e.createElement(i,{height:t,title:n,width:t})},pu={"Google Docs":yc,"Google Docs (beta)":yc,"Google Sheets":Sc,"Google Sheets (beta)":Sc,"Google Slides":Pc,"Google Slides (beta)":Pc},mu=function(e){return pu[e]||fu};function bu(){return bu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},bu.apply(null,arguments)}const gu=({boxToolsName:t="Box Tools",boxToolsInstallUrl:r="https://cloud.box.com/v/installboxtools"})=>e.createElement(on,bu({},Gn.boxToolsInstallMessage,{values:{boxTools:e.createElement("a",{href:"#",onClick:()=>{window.open(r)},rel:"noopener noreferrer"},t)}})),yu=e=>mi()(e,"disabledReasons.0.type")===gu,vu=({integration:t,onClick:r})=>{const{displayName:n,displayDescription:i,isDisabled:o,extension:a,disabledReasons:s}=t,l=mu(n),c=o?function(t=[]){let r;const n=t[0],i=e.createElement(on,Gn.errorOpenWithDescription);switch(n){case"blocked_by_shield_access_policy":r=e.createElement(on,Gn.boxEditErrorBlockedByPolicy);break;case"collaborators_hidden":r=i;break;default:r=t[0]||i}return r}(s):i,u=et()({"bcow-box-tools-uninstalled":yu(t)});return e.createElement(pc,{className:u,isDisabled:o,onClick:()=>r(t)},e.createElement(l,{dimension:30,extension:a,height:30,width:30}),e.createElement("span",null,e.createElement("p",{className:"bcow-menu-item-title"},n),e.createElement("p",{className:"bcow-menu-item-description"},c)))},wu=({className:t="",color:r="#000",height:n=6,title:i,width:o=10})=>e.createElement(Yn,{className:`icon-caret-down ${t}`,height:n,title:i,viewBox:"0 0 10 6",width:o},e.createElement("path",{className:"fill-color",d:"M0 .5l5 5 5-5H0z",fill:r,fillRule:"evenodd"})),Eu=({children:t})=>e.createElement("span",{className:"menu-toggle"},t,e.createElement(wu,{className:"toggle-arrow",width:7})),Su=({className:t="",color:r=Ac,height:n=16,title:i,width:o=16})=>e.createElement(Yn,{className:`icon-open-with ${t}`,height:n,title:i,viewBox:"0 0 16 16",width:o},e.createElement("path",{className:"fill-color",fill:r,fillRule:"evenodd",d:"M12 2a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2zm0 1H4a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1zm-1 2v6h-1V6.71l-4.65 4.64-.7-.7L9.29 6H5V5h6z"})),Cu=["children","className","icon","isDisabled","isLoading","isSelected","setRef","size","type","showRadar"];function ku(){return ku=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ku.apply(null,arguments)}function xu(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let Pu=function(e){return e.BUTTON="button",e.RESET="reset",e.SUBMIT="submit",e}({});class _u extends e.Component{constructor(...e){super(...e),xu(this,"btnElement",null),xu(this,"handleClick",(e=>{const{isDisabled:t,onClick:r}=this.props;if(t||this.btnElement&&this.btnElement.classList.contains("is-disabled"))return e.preventDefault(),void e.stopPropagation();r&&r(e)}))}render(){const t=this.props,{children:r,className:n,icon:i,isDisabled:o,isLoading:a,isSelected:s,setRef:l,size:c,type:u,showRadar:d}=t,h=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(t,Cu),f=Xn()(h,["onClick"]);o&&(f["aria-disabled"]=!0);const p=et()("btn",{"is-disabled":o,"is-loading":a,"is-selected":s,"bdl-is-disabled":o,"bdl-btn--large":"large"===c,"bdl-has-icon":!!i},n);let m=e.createElement("button",ku({ref:e=>{this.btnElement=e,l&&l(e)},className:p,onClick:this.handleClick,type:u},f),r?e.createElement("span",{className:"btn-content"},r):null,i?e.createElement("span",{className:"bdl-btn-icon"},e.cloneElement(i,{width:i&&r?16:20,height:i&&r?16:20})):null,a&&e.createElement(Vl,{className:"btn-loading-indicator"}));return d&&(m=e.createElement(dc,null,m)),m}}xu(_u,"defaultProps",{className:"",isLoading:!1,showRadar:!1,type:Pu.SUBMIT});const Ou=_u;var Au=function(e){return e.TOP_LEFT="top left",e.TOP_CENTER="top center",e.TOP_RIGHT="top right",e.MIDDLE_LEFT="middle left",e.MIDDLE_CENTER="middle center",e.MIDDLE_RIGHT="middle right",e.BOTTOM_LEFT="bottom left",e.BOTTOM_CENTER="bottom center",e.BOTTOM_RIGHT="bottom right",e}(Au||{});const Tu=Au;function Iu(){return Iu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Iu.apply(null,arguments)}const Mu=t=>e.createElement(Dc,Iu({width:16,height:16,viewBox:"0 0 16 16"},t),e.createElement("path",{fill:"#909090",fillRule:"evenodd",d:"M8 6.586l4.182-4.182a.5.5 0 01.707 0l.707.707a.5.5 0 010 .707L9.414 8l4.182 4.182a.5.5 0 010 .707l-.707.707a.5.5 0 01-.707 0L8 9.414l-4.182 4.182a.5.5 0 01-.707 0l-.707-.707a.5.5 0 010-.707L6.586 8 2.404 3.818a.5.5 0 010-.707l.707-.707a.5.5 0 01.707 0L8 6.586z"})),Du=["children","className","getDOMRef","isDisabled","type"];function Ru(){return Ru=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ru.apply(null,arguments)}const Fu=t=>{let{children:r,className:n="",getDOMRef:i=it(),isDisabled:o=!1,type:a=Pu.SUBMIT}=t,s=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(t,Du);const l={};return o&&(l["aria-disabled"]=!0,l.onClick=e=>{e.preventDefault(),e.stopPropagation()}),e.createElement("button",Ru({className:`btn-plain ${n}`,ref:i,type:a},s,l),r)},Lu={id:"boxui.core.close",defaultMessage:"Close"},ju=function(t,r){var n,i={},o=i.intlPropName,a=void 0===o?"intl":o,s=i.forwardRef,l=void 0!==s&&s,c=i.enforceContext,u=void 0===c||c,d=function(r){return e.createElement(Yr,null,(function(n){var i;u&&Wr(n);var o=((i={})[a]=n,i);return e.createElement(t,st({},r,o,{ref:l?r.forwardedRef:null}))}))};return d.displayName="injectIntl(".concat((n=t).displayName||n.name||"Component",")"),d.WrappedComponent=t,l?pt()(e.forwardRef((function(t,r){return e.createElement(d,st({},t,{forwardedRef:r}))})),t):pt()(d,t)}((({intl:t,onClick:r})=>e.createElement(Fu,{"aria-label":t.formatMessage(Lu),className:"tooltip-close-button",onClick:r},e.createElement(Mu,{className:"bdl-Tooltip-iconClose",width:14,height:14}))));function Nu(){return Nu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Nu.apply(null,arguments)}function Uu(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let Hu=function(e){return e.CALLOUT="callout",e.DEFAULT="default",e.ERROR="error",e}({}),Bu=function(e){return e.BOTTOM_CENTER="bottom-center",e.BOTTOM_LEFT="bottom-left",e.BOTTOM_RIGHT="bottom-right",e.MIDDLE_LEFT="middle-left",e.MIDDLE_RIGHT="middle-right",e.TOP_CENTER="top-center",e.TOP_LEFT="top-left",e.TOP_RIGHT="top-right",e}({});const zu={[Bu.BOTTOM_CENTER]:{attachment:Tu.TOP_CENTER,targetAttachment:Tu.BOTTOM_CENTER},[Bu.BOTTOM_LEFT]:{attachment:Tu.TOP_RIGHT,targetAttachment:Tu.BOTTOM_RIGHT},[Bu.BOTTOM_RIGHT]:{attachment:Tu.TOP_LEFT,targetAttachment:Tu.BOTTOM_LEFT},[Bu.MIDDLE_LEFT]:{attachment:Tu.MIDDLE_RIGHT,targetAttachment:Tu.MIDDLE_LEFT},[Bu.MIDDLE_RIGHT]:{attachment:Tu.MIDDLE_LEFT,targetAttachment:Tu.MIDDLE_RIGHT},[Bu.TOP_CENTER]:{attachment:Tu.BOTTOM_CENTER,targetAttachment:Tu.TOP_CENTER},[Bu.TOP_LEFT]:{attachment:Tu.BOTTOM_RIGHT,targetAttachment:Tu.TOP_RIGHT},[Bu.TOP_RIGHT]:{attachment:Tu.BOTTOM_LEFT,targetAttachment:Tu.TOP_LEFT}};class Vu extends e.Component{constructor(t){super(t),Uu(this,"tooltipID",rt()("tooltip")),Uu(this,"tetherRef",e.createRef()),Uu(this,"position",(()=>{this.tetherRef.current&&this.isShown()&&this.tetherRef.current.position()})),Uu(this,"closeTooltip",(()=>{const{onDismiss:e}=this.props;this.setState({wasClosedByUser:!0}),e&&e()})),Uu(this,"fireChildEvent",((e,t)=>{const{children:r}=this.props,n=r.props[e];n&&n(t)})),Uu(this,"handleTooltipEvent",(e=>{e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()})),Uu(this,"handleMouseEnter",(e=>{this.setState({isShown:!0}),this.fireChildEvent("onMouseEnter",e)})),Uu(this,"handleMouseLeave",(e=>{this.setState({isShown:!1}),this.fireChildEvent("onMouseLeave",e)})),Uu(this,"handleFocus",(e=>{this.setState({isShown:!0}),this.fireChildEvent("onFocus",e)})),Uu(this,"handleBlur",(e=>{this.setState({isShown:!1}),this.fireChildEvent("onBlur",e)})),Uu(this,"isControlled",(()=>{const{isShown:e}=this.props;return void 0!==e})),Uu(this,"handleKeyDown",(e=>{"Escape"===e.key&&(e.stopPropagation(),this.setState({isShown:!1})),this.fireChildEvent("onKeyDown",e)})),Uu(this,"isShown",(()=>{const{isShown:e}=this.props;return(this.isControlled()?e:this.state.isShown)&&!this.state.wasClosedByUser&&this.state.hasRendered})),this.state={isShown:!!t.isShown,hasRendered:!1,wasClosedByUser:!1}}componentDidMount(){this.setState({hasRendered:!0})}componentDidUpdate(e,t){this.isControlled()?!e.isShown&&this.props.isShown&&this.setState({wasClosedByUser:!1}):(!t.isShown&&this.state.isShown&&document.addEventListener("keydown",this.handleKeyDown,!0),t.isShown&&!this.state.isShown&&document.removeEventListener("keydown",this.handleKeyDown,!0))}componentWillUnmount(){document.removeEventListener("keydown",this.handleKeyDown,!0)}render(){const{ariaHidden:t,bodyElement:r,children:n,className:i,constrainToScrollParent:o,constrainToWindow:a,isDisabled:s,isTabbable:l=!0,offset:c,position:u=Bu.TOP_CENTER,showCloseButton:d,stopBubble:h,tetherElementClassName:f,text:p,theme:m}=this.props,b=mi()(n,"props.aria-label"),g=!!b&&b===p;if(s)return e.Children.only(n);const y=this.isControlled(),v=this.isShown(),w=d&&y,E="string"==typeof u?zu[u]:u,S=[],C={};o&&S.push({to:"scrollParent",attachment:"together"}),a&&S.push({to:"window",attachment:"together"}),v&&!t&&(g&&void 0!==b||(C["aria-describedby"]=this.tooltipID),m===Hu.ERROR&&(C["aria-errormessage"]=this.tooltipID)),y||(C.onBlur=this.handleBlur,C.onFocus=this.handleFocus,C.onMouseEnter=this.handleMouseEnter,C.onMouseLeave=this.handleMouseLeave,l&&(C.tabIndex="0"));const k=r instanceof HTMLElement?r:document.body,x=et()("tooltip","bdl-Tooltip",i,{"is-callout":m===Hu.CALLOUT,"is-error":m===Hu.ERROR,"with-close-button":w}),P={attachment:E.attachment,bodyElement:k,classPrefix:"tooltip",constraints:S,enabled:v,targetAttachment:E.targetAttachment};f&&(P.className=f),c&&(P.offset=c);const _=e.createElement(e.Fragment,null,p,w&&e.createElement(ju,{onClick:this.closeTooltip})),O=h?e.createElement("div",{className:x,id:this.tooltipID,onClick:this.handleTooltipEvent,onContextMenu:this.handleTooltipEvent,onKeyPress:this.handleTooltipEvent,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,role:"presentation"},e.createElement("div",{role:m===Hu.ERROR?void 0:"tooltip","aria-live":"polite","aria-hidden":t||g,"data-testid":"bdl-Tooltip"},_)):e.createElement("div",{"aria-live":"polite","aria-hidden":t||g,className:x,"data-testid":"bdl-Tooltip",id:this.tooltipID,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,role:m===Hu.ERROR?void 0:"tooltip"},_);return e.createElement(Gl.A,Nu({ref:this.tetherRef},P),e.cloneElement(e.Children.only(n),C),v&&O)}}Uu(Vu,"defaultProps",{constrainToScrollParent:!1,constrainToWindow:!0,isDisabled:!1,position:Bu.TOP_CENTER,theme:Hu.DEFAULT});const $u=Vu,qu=["children","isDisabled","text"];function Gu(){return Gu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Gu.apply(null,arguments)}const Wu=t=>{let{children:r,isDisabled:n,text:i}=t,o=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(t,qu);return n||!i?r:e.createElement($u,Gu({text:i},o),r)},Xu=({children:t})=>e.createElement(e.Fragment,null,t,e.createElement("span",{className:"bcow-btn-header-text"},e.createElement(on,Gn.open)));function Ku(){return Ku=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ku.apply(null,arguments)}const Qu=t=>e.createElement(Wu,{position:"middle-left",text:e.createElement(on,Gn.defaultOpenWithDescription)},e.createElement(Ou,Ku({"data-testid":"multipleintegrationsbutton"},t),e.createElement(Eu,null,e.createElement(Xu,null,e.createElement(Su,{className:de,dimension:Ve,height:Ve,width:Ve}))))),Yu="right",Ju=({dropdownAlignment:t=Yu,integrations:r,onClick:n})=>e.createElement(Kl,{isRightAligned:t===Yu},e.createElement(Qu,null),e.createElement(ic,{className:"bcow-menu"},r.map((t=>e.createElement(vu,{key:t.appIntegrationId,integration:t,onClick:n})))));function Zu(){return Zu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Zu.apply(null,arguments)}const ed=(t,r,n,i=[])=>{if(r)return null;let o=e.createElement(on,Gn.emptyOpenWithDescription);return i.length>0?[o]=i:n?o=e.createElement(on,Gn.errorOpenWithDescription):t&&(o=t),o},td=({error:t,onClick:r=it(),displayIntegration:n,isLoading:i})=>{const{displayName:o,isDisabled:a,extension:s,disabledReasons:l,displayDescription:c}=n||{},u=!!a||!o,d=o?mu(o):Su,h=yu(n)?{isShown:!0,showCloseButton:!0}:{};return e.createElement(Wu,Zu({className:"bcow-tooltip",position:"bottom-center",text:ed(c,i,t,l)},h),e.createElement(Ou,{"data-testid":"singleintegrationbutton",isDisabled:u,onClick:()=>n?r(n):it()},e.createElement(Xu,null,e.createElement(d,{className:de,dimension:Ve,extension:s,height:Ve,width:Ve}))))};class rd extends e.PureComponent{constructor(t){super(t),this.ref=e.createRef()}componentDidMount(){const{onSubmit:e}=this.props;this.ref.current.submit(),e()}render(){const{executePostData:{url:t,params:r},id:n,windowName:i}=this.props;return e.createElement("form",{ref:this.ref,action:t,id:`bcow-execute-form-${n}`,method:Re,rel:"noreferrer noopener",target:i||"_blank"},r&&r.map((({key:t,value:r})=>e.createElement("input",{key:t,name:t,type:"hidden",value:r}))))}}const nd=rd;function id(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function od(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?id(Object(r),!0).forEach((function(t){ad(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):id(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ad(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const sd="boxToolsInstallErrorMessage",ld="executeIntegrationOpenWithErrorHeader";class cd extends e.PureComponent{constructor(t){super(t),ad(this,"initialState",{isDropdownOpen:!1,integrations:null,isLoading:!0,fetchError:null,executePostData:null,shouldRenderErrorIntegrationPortal:!1,shouldRenderLoadingIntegrationPortal:!1}),ad(this,"fetchOpenWithSuccessHandler",(async t=>{const{boxToolsName:r,boxToolsInstallUrl:n}=this.props,i=t.find((({appIntegrationId:e})=>this.isBoxEditIntegration(e)));if(i&&!i.isDisabled)try{const{extension:e}=await this.getIntegrationFileExtension();i.extension=e,await this.isBoxEditAvailable(),await this.canOpenExtensionWithBoxEdit(i)}catch(t){const o=Gn[t.message]||Gn[ld];let a=e.createElement(on,o);t.message===sd&&(a=e.createElement(gu,{boxToolsInstallUrl:n,boxToolsName:r})),i.disabledReasons.push(a),i.isDisabled=!0}this.setState({integrations:t,isLoading:!1})})),ad(this,"getIntegrationFileExtension",(()=>{const{fileId:e}=this.props;return new Promise(((t,r)=>{this.api.getFileAPI().getFileExtension(e,t,(()=>r(new Error(ld))))}))})),ad(this,"isBoxEditAvailable",(()=>this.api.getBoxEditAPI().checkBoxEditAvailability().catch((()=>{throw new Error(sd)})))),ad(this,"canOpenExtensionWithBoxEdit",(({extension:e=""})=>this.api.getBoxEditAPI().getAppForExtension(e).catch((()=>{throw new Error("boxToolsBlacklistedError")})))),ad(this,"fetchErrorHandler",((e,t)=>{this.props.onError(e,t,{error:e}),this.setState({fetchError:e,isLoading:!1})})),ad(this,"onIntegrationClick",(({appIntegrationId:e,displayName:t})=>{const{fileId:r}=this.props,n=this.isBoxEditIntegration(e);if(this.api.getAppIntegrationsAPI(!1).execute(e,r,this.executeIntegrationSuccessHandler.bind(this,e),n?this.executeBoxEditErrorHandler:this.executeIntegrationErrorHandler),n)return;const i=`left=${window.screenX},top=${window.screenY},height=${window.outerHeight},width=${window.innerWidth},toolbar=0`;this.integrationWindow=this.window.open("",`${rt()(e)}`,i),this.integrationWindow.document.title=t,this.integrationWindow.onunload=this.cleanupIntegrationWindow,this.setState({shouldRenderLoadingIntegrationPortal:!0,shouldRenderErrorIntegrationPortal:!1})})),ad(this,"cleanupIntegrationWindow",(()=>{this.setState({shouldRenderLoadingIntegrationPortal:!1,shouldRenderErrorIntegrationPortal:!1})})),ad(this,"executeIntegrationSuccessHandler",((e,t)=>{this.isBoxEditIntegration(e)?this.executeBoxEditSuccessHandler(e,t):this.executeOnlineIntegrationSuccessHandler(t),this.onExecute(e)})),ad(this,"executeOnlineIntegrationSuccessHandler",(e=>{const{method:t,url:r}=e;switch(t){case Re:this.setState({executePostData:e});break;case De:if(!this.integrationWindow)return;this.integrationWindow.location=r,this.integrationWindow.opener=null;break;default:this.executeIntegrationErrorHandler(Error("Integration invocation using this HTTP method type is not supported"),be)}this.integrationWindow=null})),ad(this,"executeBoxEditSuccessHandler",((e,{url:t})=>{const{fileId:r,token:n,onError:i}=this.props,o=an.parse(t).auth_code,a=this.isBoxEditSFCIntegration(e);this.api.getBoxEditAPI().openFile(r,{data:{auth_code:o,token:n,token_scope:a?d:u}}).catch((e=>{i(e,be,{error:e})}))})),ad(this,"onExecuteFormSubmit",(()=>{this.setState({executePostData:null})})),ad(this,"executeIntegrationErrorHandler",((e,t)=>{this.props.onError(e,t,{error:e}),console.error(e),this.setState({shouldRenderLoadingIntegrationPortal:!1,shouldRenderErrorIntegrationPortal:!0})})),ad(this,"executeBoxEditErrorHandler",(e=>{this.props.onError(e),console.error(e)}));const{token:r,apiHost:n,clientName:i,language:o,requestInterceptor:a,responseInterceptor:s}=t;this.id=rt()("bcow_"),this.api=new Bl({apiHost:n,clientName:i,language:o,requestInterceptor:a,responseInterceptor:s,token:r}),this.state=od({},this.initialState)}clearCache(){this.api.destroy(!0)}componentWillUnmount(){this.api.destroy(!1)}componentDidMount(){const{fileId:e}=this.props;e&&(this.window=window,this.fetchOpenWithData())}componentDidUpdate(e){const{fileId:t}=this.props,{fileId:r}=e;t&&t!==r&&(this.setState(od({},this.initialState)),this.fetchOpenWithData())}isBoxEditIntegration(e){return e===Be||this.isBoxEditSFCIntegration(e)}isBoxEditSFCIntegration(e){return e===ze}fetchOpenWithData(){const{fileId:e}=this.props;this.api.getOpenWithAPI(!1).getOpenWithIntegrations(e,this.fetchOpenWithSuccessHandler,this.fetchErrorHandler)}onExecute(e){this.props.onExecute(e),this.setState({shouldRenderLoadingIntegrationPortal:!1})}getDisplayIntegration(){const{integrations:e}=this.state;return Array.isArray(e)&&1===e.length?e[0]:null}render(){const{language:t,messages:r,dropdownAlignment:n}=this.props,{fetchError:i,isLoading:o,integrations:a,executePostData:s,shouldRenderLoadingIntegrationPortal:l,shouldRenderErrorIntegrationPortal:c}=this.state,u=et()("be bcow",this.props.className),d=this.getDisplayIntegration(),h=a?a.length:0;return e.createElement(Hn,{language:t,messages:r},e.createElement("div",{className:u,"data-testid":"bcow-content",id:this.id},h<=1?e.createElement(td,{displayIntegration:d,error:i,isLoading:o,onClick:this.onIntegrationClick}):e.createElement(Ju,{dropdownAlignment:n,integrations:a,onClick:this.onIntegrationClick}),(l||c)&&e.createElement(ql,{hasError:c,integrationWindow:this.integrationWindow}),s&&e.createElement(nd,{executePostData:s,id:this.id,onSubmit:this.onExecuteFormSubmit,windowName:this.integrationWindow&&this.integrationWindow.name})))}}ad(cd,"defaultProps",{apiHost:le,className:"",clientName:"ContentOpenWith",onExecute:it(),onError:it()});const ud=((t,r=ti)=>n=>e.forwardRef(((i,o)=>e.createElement(si,li({errorComponent:r,errorOrigin:t},i),e.createElement(n,{ref:o})))))("open_with",(({error:t})=>e.createElement("div",{className:"be bcow"},e.createElement(td,{error:t,isLoading:!1}))))(cd);function dd(){return dd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},dd.apply(null,arguments)}function hd(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}__webpack_require__.g.Box=__webpack_require__.g.Box||{},__webpack_require__.g.Box.ContentOpenWith=class extends Je{constructor(...e){super(...e),hd(this,"onExecute",(e=>{this.emit("execute",e)})),hd(this,"onError",(e=>{this.emit("error",e)}))}render(){(0,t.render)(e.createElement(ud,dd({componentRef:this.setComponent,fileId:this.id,language:this.language,messages:this.messages,onError:this.onError,onExecute:this.onExecute,onInteraction:this.onInteraction,token:this.token},this.options)),this.container)}}})()})();
|
|
2
|
+
(()=>{var __webpack_modules__={53095:(e,t,r)=>{e.exports=r(44569)},85846:(e,t,r)=>{"use strict";var n=r(40898),i=r(7184),o=r(50310),a=r(81036),s=r(42629),l=r(30902),c=r(27004),u=r(35449),d=r(47345),h=r(20918);e.exports=function(e){return new Promise((function(t,r){var f,p=e.data,m=e.headers,b=e.responseType;function g(){e.cancelToken&&e.cancelToken.unsubscribe(f),e.signal&&e.signal.removeEventListener("abort",f)}n.isFormData(p)&&delete m["Content-Type"];var y=new XMLHttpRequest;if(e.auth){var v=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";m.Authorization="Basic "+btoa(v+":"+w)}var E=s(e.baseURL,e.url);function S(){if(y){var n="getAllResponseHeaders"in y?l(y.getAllResponseHeaders()):null,o={data:b&&"text"!==b&&"json"!==b?y.response:y.responseText,status:y.status,statusText:y.statusText,headers:n,config:e,request:y};i((function(e){t(e),g()}),(function(e){r(e),g()}),o),y=null}}if(y.open(e.method.toUpperCase(),a(E,e.params,e.paramsSerializer),!0),y.timeout=e.timeout,"onloadend"in y?y.onloadend=S:y.onreadystatechange=function(){y&&4===y.readyState&&(0!==y.status||y.responseURL&&0===y.responseURL.indexOf("file:"))&&setTimeout(S)},y.onabort=function(){y&&(r(u("Request aborted",e,"ECONNABORTED",y)),y=null)},y.onerror=function(){r(u("Network Error",e,null,y)),y=null},y.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",n=e.transitional||d.transitional;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(u(t,e,n.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",y)),y=null},n.isStandardBrowserEnv()){var C=(e.withCredentials||c(E))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;C&&(m[e.xsrfHeaderName]=C)}"setRequestHeader"in y&&n.forEach(m,(function(e,t){void 0===p&&"content-type"===t.toLowerCase()?delete m[t]:y.setRequestHeader(t,e)})),n.isUndefined(e.withCredentials)||(y.withCredentials=!!e.withCredentials),b&&"json"!==b&&(y.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&y.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&y.upload&&y.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(f=function(e){y&&(r(!e||e&&e.type?new h("canceled"):e),y.abort(),y=null)},e.cancelToken&&e.cancelToken.subscribe(f),e.signal&&(e.signal.aborted?f():e.signal.addEventListener("abort",f))),p||(p=null),y.send(p)}))}},44569:(e,t,r)=>{"use strict";var n=r(40898),i=r(6654),o=r(28905),a=r(1441),s=function e(t){var r=new o(t),s=i(o.prototype.request,r);return n.extend(s,o.prototype,r),n.extend(s,r),s.create=function(r){return e(a(t,r))},s}(r(47345));s.Axios=o,s.Cancel=r(20918),s.CancelToken=r(87709),s.isCancel=r(7770),s.VERSION=r(78219).version,s.all=function(e){return Promise.all(e)},s.spread=r(27238),s.isAxiosError=r(75657),e.exports=s,e.exports.default=s},20918:e=>{"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},87709:(e,t,r)=>{"use strict";var n=r(20918);function i(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var r=this;this.promise.then((function(e){if(r._listeners){var t,n=r._listeners.length;for(t=0;t<n;t++)r._listeners[t](e);r._listeners=null}})),this.promise.then=function(e){var t,n=new Promise((function(e){r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e){r.reason||(r.reason=new n(e),t(r.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},i.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},i.source=function(){var e;return{token:new i((function(t){e=t})),cancel:e}},e.exports=i},7770:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},28905:(e,t,r)=>{"use strict";var n=r(40898),i=r(81036),o=r(761),a=r(68768),s=r(1441),l=r(89419),c=l.validators;function u(e){this.defaults=e,this.interceptors={request:new o,response:new o}}u.prototype.request=function(e,t){if("string"==typeof e?(t=t||{}).url=e:t=e||{},!t.url)throw new Error("Provided config url is not valid");(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;void 0!==r&&l.assertOptions(r,{silentJSONParsing:c.transitional(c.boolean),forcedJSONParsing:c.transitional(c.boolean),clarifyTimeoutError:c.transitional(c.boolean)},!1);var n=[],i=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(i=i&&e.synchronous,n.unshift(e.fulfilled,e.rejected))}));var o,u=[];if(this.interceptors.response.forEach((function(e){u.push(e.fulfilled,e.rejected)})),!i){var d=[a,void 0];for(Array.prototype.unshift.apply(d,n),d=d.concat(u),o=Promise.resolve(t);d.length;)o=o.then(d.shift(),d.shift());return o}for(var h=t;n.length;){var f=n.shift(),p=n.shift();try{h=f(h)}catch(e){p(e);break}}try{o=a(h)}catch(e){return Promise.reject(e)}for(;u.length;)o=o.then(u.shift(),u.shift());return o},u.prototype.getUri=function(e){if(!e.url)throw new Error("Provided config url is not valid");return e=s(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},n.forEach(["delete","get","head","options"],(function(e){u.prototype[e]=function(t,r){return this.request(s(r||{},{method:e,url:t,data:(r||{}).data}))}})),n.forEach(["post","put","patch"],(function(e){u.prototype[e]=function(t,r,n){return this.request(s(n||{},{method:e,url:t,data:r}))}})),e.exports=u},761:(e,t,r)=>{"use strict";var n=r(40898);function i(){this.handlers=[]}i.prototype.use=function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){n.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},42629:(e,t,r)=>{"use strict";var n=r(97571),i=r(51190);e.exports=function(e,t){return e&&!n(t)?i(e,t):t}},35449:(e,t,r)=>{"use strict";var n=r(9703);e.exports=function(e,t,r,i,o){var a=new Error(e);return n(a,t,r,i,o)}},68768:(e,t,r)=>{"use strict";var n=r(40898),i=r(35871),o=r(7770),a=r(47345),s=r(20918);function l(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s("canceled")}e.exports=function(e){return l(e),e.headers=e.headers||{},e.data=i.call(e,e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),n.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return l(e),t.data=i.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(l(e),t&&t.response&&(t.response.data=i.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},9703:e=>{"use strict";e.exports=function(e,t,r,n,i){return e.config=t,r&&(e.code=r),e.request=n,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e}},1441:(e,t,r)=>{"use strict";var n=r(40898);e.exports=function(e,t){t=t||{};var r={};function i(e,t){return n.isPlainObject(e)&&n.isPlainObject(t)?n.merge(e,t):n.isPlainObject(t)?n.merge({},t):n.isArray(t)?t.slice():t}function o(r){return n.isUndefined(t[r])?n.isUndefined(e[r])?void 0:i(void 0,e[r]):i(e[r],t[r])}function a(e){if(!n.isUndefined(t[e]))return i(void 0,t[e])}function s(r){return n.isUndefined(t[r])?n.isUndefined(e[r])?void 0:i(void 0,e[r]):i(void 0,t[r])}function l(r){return r in t?i(e[r],t[r]):r in e?i(void 0,e[r]):void 0}var c={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l};return n.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||o,i=t(e);n.isUndefined(i)&&t!==l||(r[e]=i)})),r}},7184:(e,t,r)=>{"use strict";var n=r(35449);e.exports=function(e,t,r){var i=r.config.validateStatus;r.status&&i&&!i(r.status)?t(n("Request failed with status code "+r.status,r.config,null,r.request,r)):e(r)}},35871:(e,t,r)=>{"use strict";var n=r(40898),i=r(47345);e.exports=function(e,t,r){var o=this||i;return n.forEach(r,(function(r){e=r.call(o,e,t)})),e}},47345:(e,t,r)=>{"use strict";var n=r(40898),i=r(41752),o=r(9703),a={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var l,c={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(l=r(85846)),l),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),n.isFormData(e)||n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e)?e:n.isArrayBufferView(e)?e.buffer:n.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):n.isObject(e)||t&&"application/json"===t["Content-Type"]?(s(t,"application/json"),function(e,t,r){if(n.isString(e))try{return(0,JSON.parse)(e),n.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||c.transitional,r=t&&t.silentJSONParsing,i=t&&t.forcedJSONParsing,a=!r&&"json"===this.responseType;if(a||i&&n.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(a){if("SyntaxError"===e.name)throw o(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),n.forEach(["post","put","patch"],(function(e){c.headers[e]=n.merge(a)})),e.exports=c},78219:e=>{e.exports={version:"0.25.0"}},6654:e=>{"use strict";e.exports=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return e.apply(t,r)}}},81036:(e,t,r)=>{"use strict";var n=r(40898);function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,r){if(!t)return e;var o;if(r)o=r(t);else if(n.isURLSearchParams(t))o=t.toString();else{var a=[];n.forEach(t,(function(e,t){null!=e&&(n.isArray(e)?t+="[]":e=[e],n.forEach(e,(function(e){n.isDate(e)?e=e.toISOString():n.isObject(e)&&(e=JSON.stringify(e)),a.push(i(t)+"="+i(e))})))})),o=a.join("&")}if(o){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},51190:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},50310:(e,t,r)=>{"use strict";var n=r(40898);e.exports=n.isStandardBrowserEnv()?{write:function(e,t,r,i,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),n.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),n.isString(i)&&s.push("path="+i),n.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},97571:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},75657:(e,t,r)=>{"use strict";var n=r(40898);e.exports=function(e){return n.isObject(e)&&!0===e.isAxiosError}},27004:(e,t,r)=>{"use strict";var n=r(40898);e.exports=n.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function i(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=i(window.location.href),function(t){var r=n.isString(t)?i(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0}},41752:(e,t,r)=>{"use strict";var n=r(40898);e.exports=function(e,t){n.forEach(e,(function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])}))}},30902:(e,t,r)=>{"use strict";var n=r(40898),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,r,o,a={};return e?(n.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=n.trim(e.substr(0,o)).toLowerCase(),r=n.trim(e.substr(o+1)),t){if(a[t]&&i.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([r]):a[t]?a[t]+", "+r:r}})),a):a}},27238:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},89419:(e,t,r)=>{"use strict";var n=r(78219).version,i={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){i[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));var o={};i.transitional=function(e,t,r){function i(e,t){return"[Axios v"+n+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,n,a){if(!1===e)throw new Error(i(n," has been removed"+(t?" in "+t:"")));return t&&!o[n]&&(o[n]=!0,console.warn(i(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,n,a)}},e.exports={assertOptions:function(e,t,r){if("object"!=typeof e)throw new TypeError("options must be an object");for(var n=Object.keys(e),i=n.length;i-- >0;){var o=n[i],a=t[o];if(a){var s=e[o],l=void 0===s||a(s,o,e);if(!0!==l)throw new TypeError("option "+o+" must be "+l)}else if(!0!==r)throw Error("Unknown option "+o)}},validators:i}},40898:(e,t,r)=>{"use strict";var n=r(6654),i=Object.prototype.toString;function o(e){return Array.isArray(e)}function a(e){return void 0===e}function s(e){return"[object ArrayBuffer]"===i.call(e)}function l(e){return null!==e&&"object"==typeof e}function c(e){if("[object Object]"!==i.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){return"[object Function]"===i.call(e)}function d(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),o(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}e.exports={isArray:o,isArrayBuffer:s,isBuffer:function(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"[object FormData]"===i.call(e)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&s(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:l,isPlainObject:c,isUndefined:a,isDate:function(e){return"[object Date]"===i.call(e)},isFile:function(e){return"[object File]"===i.call(e)},isBlob:function(e){return"[object Blob]"===i.call(e)},isFunction:u,isStream:function(e){return l(e)&&u(e.pipe)},isURLSearchParams:function(e){return"[object URLSearchParams]"===i.call(e)},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:d,merge:function e(){var t={};function r(r,n){c(t[n])&&c(r)?t[n]=e(t[n],r):c(r)?t[n]=e({},r):o(r)?t[n]=r.slice():t[n]=r}for(var n=0,i=arguments.length;n<i;n++)d(arguments[n],r);return t},extend:function(e,t,r){return d(t,(function(t,i){e[i]=r&&"function"==typeof t?n(t,r):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},6224:e=>{"use strict";var t="%[a-f0-9]{2}",r=new RegExp("("+t+")|([^%]+?)","gi"),n=new RegExp("("+t+")+","gi");function i(e,t){try{return[decodeURIComponent(e.join(""))]}catch(e){}if(1===e.length)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],i(r),i(n))}function o(e){try{return decodeURIComponent(e)}catch(o){for(var t=e.match(r)||[],n=1;n<t.length;n++)t=(e=i(t,n).join("")).match(r)||[];return e}}e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},r=n.exec(e);r;){try{t[r[0]]=decodeURIComponent(r[0])}catch(e){var i=o(r[0]);i!==r[0]&&(t[r[0]]=i)}r=n.exec(e)}t["%C2"]="�";for(var a=Object.keys(t),s=0;s<a.length;s++){var l=a[s];e=e.replace(new RegExp(l,"g"),t[l])}return e}(e)}}},57825:e=>{"use strict";var t,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(r,n){function i(r){e.removeListener(t,o),n(r)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),r([].slice.call(arguments))}m(e,t,o,{once:!0}),"error"!==t&&function(e,t,r){"function"==typeof e.on&&m(e,"error",t,{once:!0})}(e,i)}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function c(e,t,r,n){var i,o,a,c;if(s(r),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),a=o[t]),void 0===a)a=o[t]=r,++e._eventsCount;else if("function"==typeof a?a=o[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(i=l(e))>0&&a.length>i&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,c=u,console&&console.warn&&console.warn(c)}return e}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=u.bind(n);return i.listener=r,n.wrapFn=i,i}function h(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(i):p(i,i.length)}function f(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function p(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function m(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(o){n.once&&e.removeEventListener(t,i),r(o)}))}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return l(this)},o.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=o[e];if(void 0===l)return!1;if("function"==typeof l)n(l,this,t);else{var c=l.length,u=p(l,c);for(r=0;r<c;++r)n(u[r],this,t)}return!0},o.prototype.addListener=function(e,t){return c(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return c(this,e,t,!0)},o.prototype.once=function(e,t){return s(t),this.on(e,d(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,d(this,e,t)),this},o.prototype.removeListener=function(e,t){var r,n,i,o,a;if(s(t),void 0===(n=this._events))return this;if(void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(i=-1,o=r.length-1;o>=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,i),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,a||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var i,o=Object.keys(r);for(n=0;n<o.length;++n)"removeListener"!==(i=o[n])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},o.prototype.listeners=function(e){return h(this,e,!0)},o.prototype.rawListeners=function(e){return h(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):f.call(e,t)},o.prototype.listenerCount=f,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},57160:(e,t,r)=>{"use strict";var n=r(52305),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return n.isMemo(e)?a:s[e.$$typeof]||i}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(p){var i=f(r);i&&i!==p&&e(t,i,n)}var a=u(r);d&&(a=a.concat(d(r)));for(var s=l(t),m=l(r),b=0;b<a.length;++b){var g=a[b];if(!(o[g]||n&&n[g]||m&&m[g]||s&&s[g])){var y=h(r,g);try{c(t,g,y)}catch(e){}}}}return t}},5026:(module,exports,__webpack_require__)=>{var __WEBPACK_AMD_DEFINE_RESULT__;(function(){"use strict";var root="object"==typeof window?window:{},NODE_JS=!root.JS_SHA1_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;NODE_JS&&(root=__webpack_require__.g);var COMMON_JS=!root.JS_SHA1_NO_COMMON_JS&&module.exports,AMD=__webpack_require__.amdO,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"],blocks=[],createOutputMethod=function(e){return function(t){return new Sha1(!0).update(t)[e]()}},createMethod=function(){var e=createOutputMethod("hex");NODE_JS&&(e=nodeWrap(e)),e.create=function(){return new Sha1},e.update=function(t){return e.create().update(t)};for(var t=0;t<OUTPUT_TYPES.length;++t){var r=OUTPUT_TYPES[t];e[r]=createOutputMethod(r)}return e},nodeWrap=function(method){var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer"),nodeMethod=function(e){if("string"==typeof e)return crypto.createHash("sha1").update(e,"utf8").digest("hex");if(e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(void 0===e.length)return method(e);return crypto.createHash("sha1").update(new Buffer(e)).digest("hex")};return nodeMethod};function Sha1(e){e?(blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,this.blocks=blocks):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.h0=1732584193,this.h1=4023233417,this.h2=2562383102,this.h3=271733878,this.h4=3285377520,this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}Sha1.prototype.update=function(e){if(!this.finalized){var t="string"!=typeof e;t&&e.constructor===root.ArrayBuffer&&(e=new Uint8Array(e));for(var r,n,i=0,o=e.length||0,a=this.blocks;i<o;){if(this.hashed&&(this.hashed=!1,a[0]=this.block,a[16]=a[1]=a[2]=a[3]=a[4]=a[5]=a[6]=a[7]=a[8]=a[9]=a[10]=a[11]=a[12]=a[13]=a[14]=a[15]=0),t)for(n=this.start;i<o&&n<64;++i)a[n>>2]|=e[i]<<SHIFT[3&n++];else for(n=this.start;i<o&&n<64;++i)(r=e.charCodeAt(i))<128?a[n>>2]|=r<<SHIFT[3&n++]:r<2048?(a[n>>2]|=(192|r>>6)<<SHIFT[3&n++],a[n>>2]|=(128|63&r)<<SHIFT[3&n++]):r<55296||r>=57344?(a[n>>2]|=(224|r>>12)<<SHIFT[3&n++],a[n>>2]|=(128|r>>6&63)<<SHIFT[3&n++],a[n>>2]|=(128|63&r)<<SHIFT[3&n++]):(r=65536+((1023&r)<<10|1023&e.charCodeAt(++i)),a[n>>2]|=(240|r>>18)<<SHIFT[3&n++],a[n>>2]|=(128|r>>12&63)<<SHIFT[3&n++],a[n>>2]|=(128|r>>6&63)<<SHIFT[3&n++],a[n>>2]|=(128|63&r)<<SHIFT[3&n++]);this.lastByteIndex=n,this.bytes+=n-this.start,n>=64?(this.block=a[16],this.start=n-64,this.hash(),this.hashed=!0):this.start=n}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296|0,this.bytes=this.bytes%4294967296),this}},Sha1.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=EXTRA[3&t],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}},Sha1.prototype.hash=function(){var e,t,r=this.h0,n=this.h1,i=this.h2,o=this.h3,a=this.h4,s=this.blocks;for(e=16;e<80;++e)t=s[e-3]^s[e-8]^s[e-14]^s[e-16],s[e]=t<<1|t>>>31;for(e=0;e<20;e+=5)r=(t=(n=(t=(i=(t=(o=(t=(a=(t=r<<5|r>>>27)+(n&i|~n&o)+a+1518500249+s[e]|0)<<5|a>>>27)+(r&(n=n<<30|n>>>2)|~r&i)+o+1518500249+s[e+1]|0)<<5|o>>>27)+(a&(r=r<<30|r>>>2)|~a&n)+i+1518500249+s[e+2]|0)<<5|i>>>27)+(o&(a=a<<30|a>>>2)|~o&r)+n+1518500249+s[e+3]|0)<<5|n>>>27)+(i&(o=o<<30|o>>>2)|~i&a)+r+1518500249+s[e+4]|0,i=i<<30|i>>>2;for(;e<40;e+=5)r=(t=(n=(t=(i=(t=(o=(t=(a=(t=r<<5|r>>>27)+(n^i^o)+a+1859775393+s[e]|0)<<5|a>>>27)+(r^(n=n<<30|n>>>2)^i)+o+1859775393+s[e+1]|0)<<5|o>>>27)+(a^(r=r<<30|r>>>2)^n)+i+1859775393+s[e+2]|0)<<5|i>>>27)+(o^(a=a<<30|a>>>2)^r)+n+1859775393+s[e+3]|0)<<5|n>>>27)+(i^(o=o<<30|o>>>2)^a)+r+1859775393+s[e+4]|0,i=i<<30|i>>>2;for(;e<60;e+=5)r=(t=(n=(t=(i=(t=(o=(t=(a=(t=r<<5|r>>>27)+(n&i|n&o|i&o)+a-1894007588+s[e]|0)<<5|a>>>27)+(r&(n=n<<30|n>>>2)|r&i|n&i)+o-1894007588+s[e+1]|0)<<5|o>>>27)+(a&(r=r<<30|r>>>2)|a&n|r&n)+i-1894007588+s[e+2]|0)<<5|i>>>27)+(o&(a=a<<30|a>>>2)|o&r|a&r)+n-1894007588+s[e+3]|0)<<5|n>>>27)+(i&(o=o<<30|o>>>2)|i&a|o&a)+r-1894007588+s[e+4]|0,i=i<<30|i>>>2;for(;e<80;e+=5)r=(t=(n=(t=(i=(t=(o=(t=(a=(t=r<<5|r>>>27)+(n^i^o)+a-899497514+s[e]|0)<<5|a>>>27)+(r^(n=n<<30|n>>>2)^i)+o-899497514+s[e+1]|0)<<5|o>>>27)+(a^(r=r<<30|r>>>2)^n)+i-899497514+s[e+2]|0)<<5|i>>>27)+(o^(a=a<<30|a>>>2)^r)+n-899497514+s[e+3]|0)<<5|n>>>27)+(i^(o=o<<30|o>>>2)^a)+r-899497514+s[e+4]|0,i=i<<30|i>>>2;this.h0=this.h0+r|0,this.h1=this.h1+n|0,this.h2=this.h2+i|0,this.h3=this.h3+o|0,this.h4=this.h4+a|0},Sha1.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,r=this.h2,n=this.h3,i=this.h4;return HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>4&15]+HEX_CHARS[15&t]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[15&r]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[15&n]+HEX_CHARS[i>>28&15]+HEX_CHARS[i>>24&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>4&15]+HEX_CHARS[15&i]},Sha1.prototype.toString=Sha1.prototype.hex,Sha1.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,r=this.h2,n=this.h3,i=this.h4;return[e>>24&255,e>>16&255,e>>8&255,255&e,t>>24&255,t>>16&255,t>>8&255,255&t,r>>24&255,r>>16&255,r>>8&255,255&r,n>>24&255,n>>16&255,n>>8&255,255&n,i>>24&255,i>>16&255,i>>8&255,255&i]},Sha1.prototype.array=Sha1.prototype.digest,Sha1.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(20),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),e};var exports=createMethod();COMMON_JS?module.exports=exports:(root.sha1=exports,AMD&&(__WEBPACK_AMD_DEFINE_RESULT__=function(){return exports}.call(exports,__webpack_require__,exports,module),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)))})()},84708:function(e,t,r){var n;!function(i){var o={starts_with_slashes:/^\/+/,ends_with_slashes:/\/+$/,pluses:/\+/g,query_separator:/[&;]/,uri_parser:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@\/]*)(?::([^:@]*))?)?@)?(\[[0-9a-fA-F:.]+\]|[^:\/?#]*)(?::(\d+|(?=:)))?(:)?)((((?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/};function a(e){return e&&(e=e.toString().replace(o.pluses,"%20"),e=decodeURIComponent(e)),e}function s(e){var t,r,n,i,s,l,c,u=[];if(null==e||""===e)return u;for(0===e.indexOf("?")&&(e=e.substring(1)),t=0,c=(r=e.toString().split(o.query_separator)).length;t<c;t++)0!==(i=(n=r[t]).indexOf("="))&&(s=a(n.substring(0,i)),l=a(n.substring(i+1)),u.push(-1===i?[n,null]:[s,l]));return u}function l(e){this.uriParts=function(e){var t=o.uri_parser.exec(e||""),r={};return["source","protocol","authority","userInfo","user","password","host","port","isColonUri","relative","path","directory","file","query","anchor"].forEach((function(e,n){r[e]=t[n]||""})),r}(e),this.queryPairs=s(this.uriParts.query),this.hasAuthorityPrefixUserPref=null}Array.prototype.forEach||(Array.prototype.forEach=function(e,t){var r,n;if(null==this)throw new TypeError(" this is null or not defined");var i=Object(this),o=i.length>>>0;if("function"!=typeof e)throw new TypeError(e+" is not a function");for(arguments.length>1&&(r=t),n=0;n<o;){var a;n in i&&(a=i[n],e.call(r,a,n,i)),n++}}),["protocol","userInfo","host","port","path","anchor"].forEach((function(e){l.prototype[e]=function(t){return void 0!==t&&(this.uriParts[e]=t),this.uriParts[e]}})),l.prototype.hasAuthorityPrefix=function(e){return void 0!==e&&(this.hasAuthorityPrefixUserPref=e),null===this.hasAuthorityPrefixUserPref?-1!==this.uriParts.source.indexOf("//"):this.hasAuthorityPrefixUserPref},l.prototype.isColonUri=function(e){if(void 0===e)return!!this.uriParts.isColonUri;this.uriParts.isColonUri=!!e},l.prototype.query=function(e){var t,r,n,i="";for(void 0!==e&&(this.queryPairs=s(e)),t=0,n=this.queryPairs.length;t<n;t++)r=this.queryPairs[t],i.length>0&&(i+="&"),null===r[1]?i+=r[0]:(i+=r[0],i+="=",void 0!==r[1]&&(i+=encodeURIComponent(r[1])));return i.length>0?"?"+i:i},l.prototype.getQueryParamValue=function(e){var t,r,n;for(r=0,n=this.queryPairs.length;r<n;r++)if(e===(t=this.queryPairs[r])[0])return t[1]},l.prototype.getQueryParamValues=function(e){var t,r,n,i=[];for(t=0,n=this.queryPairs.length;t<n;t++)e===(r=this.queryPairs[t])[0]&&i.push(r[1]);return i},l.prototype.deleteQueryParam=function(e,t){var r,n,i,o,s,l=[];for(r=0,s=this.queryPairs.length;r<s;r++)i=a((n=this.queryPairs[r])[0])===a(e),o=n[1]===t,(1!==arguments.length||i)&&(2!==arguments.length||i&&o)||l.push(n);return this.queryPairs=l,this},l.prototype.addQueryParam=function(e,t,r){return 3===arguments.length&&-1!==r?(r=Math.min(r,this.queryPairs.length),this.queryPairs.splice(r,0,[e,t])):arguments.length>0&&this.queryPairs.push([e,t]),this},l.prototype.hasQueryParam=function(e){var t,r=this.queryPairs.length;for(t=0;t<r;t++)if(this.queryPairs[t][0]==e)return!0;return!1},l.prototype.replaceQueryParam=function(e,t,r){var n,i,o=-1,s=this.queryPairs.length;if(3===arguments.length){for(n=0;n<s;n++)if(a((i=this.queryPairs[n])[0])===a(e)&&decodeURIComponent(i[1])===a(r)){o=n;break}o>=0&&this.deleteQueryParam(e,a(r)).addQueryParam(e,t,o)}else{for(n=0;n<s;n++)if(a((i=this.queryPairs[n])[0])===a(e)){o=n;break}this.deleteQueryParam(e),this.addQueryParam(e,t,o)}return this},["protocol","hasAuthorityPrefix","isColonUri","userInfo","host","port","path","query","anchor"].forEach((function(e){var t="set"+e.charAt(0).toUpperCase()+e.slice(1);l.prototype[t]=function(t){return this[e](t),this}})),l.prototype.scheme=function(){var e="";return this.protocol()?(e+=this.protocol(),this.protocol().indexOf(":")!==this.protocol().length-1&&(e+=":"),e+="//"):this.hasAuthorityPrefix()&&this.host()&&(e+="//"),e},l.prototype.origin=function(){var e=this.scheme();return this.userInfo()&&this.host()&&(e+=this.userInfo(),this.userInfo().indexOf("@")!==this.userInfo().length-1&&(e+="@")),this.host()&&(e+=this.host(),(this.port()||this.path()&&this.path().substr(0,1).match(/[0-9]/))&&(e+=":"+this.port())),e},l.prototype.addTrailingSlash=function(){var e=this.path()||"";return"/"!==e.substr(-1)&&this.path(e+"/"),this},l.prototype.toString=function(){var e,t=this.origin();return this.isColonUri()?this.path()&&(t+=":"+this.path()):this.path()?(e=this.path(),o.ends_with_slashes.test(t)||o.starts_with_slashes.test(e)?(t&&t.replace(o.ends_with_slashes,"/"),e=e.replace(o.starts_with_slashes,"/")):t+="/",t+=e):this.host()&&(this.query().toString()||this.anchor())&&(t+="/"),this.query().toString()&&(t+=this.query().toString()),this.anchor()&&(0!==this.anchor().indexOf("#")&&(t+="#"),t+=this.anchor()),t},l.prototype.clone=function(){return new l(this.toString())},void 0===(n=function(){return l}.call(t,r,t,e))||(e.exports=n)}()},9438:(e,t,r)=>{var n=r(5264)(r(75619),"DataView");e.exports=n},22139:(e,t,r)=>{var n=r(45850),i=r(56988),o=r(71631),a=r(27699),s=r(76491);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},11649:(e,t,r)=>{var n=r(28924),i=r(48122),o=r(31381),a=r(14489),s=r(48721);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},56285:(e,t,r)=>{var n=r(5264)(r(75619),"Map");e.exports=n},22583:(e,t,r)=>{var n=r(40126),i=r(85464),o=r(45755),a=r(12343),s=r(55071);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},86974:(e,t,r)=>{var n=r(5264)(r(75619),"Promise");e.exports=n},75867:(e,t,r)=>{var n=r(5264)(r(75619),"Set");e.exports=n},66787:(e,t,r)=>{var n=r(11649),i=r(73634),o=r(91636),a=r(19719),s=r(98971),l=r(89987);function c(e){var t=this.__data__=new n(e);this.size=t.size}c.prototype.clear=i,c.prototype.delete=o,c.prototype.get=a,c.prototype.has=s,c.prototype.set=l,e.exports=c},75799:(e,t,r)=>{var n=r(75619).Symbol;e.exports=n},86882:(e,t,r)=>{var n=r(75619).Uint8Array;e.exports=n},53173:(e,t,r)=>{var n=r(5264)(r(75619),"WeakMap");e.exports=n},44375:e=>{e.exports=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}},7515:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}},18472:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,i=0,o=[];++r<n;){var a=e[r];t(a,r,e)&&(o[i++]=a)}return o}},74113:(e,t,r)=>{var n=r(41458),i=r(24254),o=r(37603),a=r(23470),s=r(68327),l=r(24373),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=o(e),u=!r&&i(e),d=!r&&!u&&a(e),h=!r&&!u&&!d&&l(e),f=r||u||d||h,p=f?n(e.length,String):[],m=p.length;for(var b in e)!t&&!c.call(e,b)||f&&("length"==b||d&&("offset"==b||"parent"==b)||h&&("buffer"==b||"byteLength"==b||"byteOffset"==b)||s(b,m))||p.push(b);return p}},22654:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}},81026:e=>{e.exports=function(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}},70104:e=>{e.exports=function(e,t,r,n){var i=-1,o=null==e?0:e.length;for(n&&o&&(r=e[++i]);++i<o;)r=t(r,e[i],i,e);return r}},25983:e=>{var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(t)||[]}},43379:(e,t,r)=>{var n=r(52162),i=r(91114);e.exports=function(e,t,r){(void 0!==r&&!i(e[t],r)||void 0===r&&!(t in e))&&n(e,t,r)}},40581:(e,t,r)=>{var n=r(52162),i=r(91114),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){var a=e[t];o.call(e,t)&&i(a,r)&&(void 0!==r||t in e)||n(e,t,r)}},98639:(e,t,r)=>{var n=r(91114);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},96239:(e,t,r)=>{var n=r(96945),i=r(45e3);e.exports=function(e,t){return e&&n(t,i(t),e)}},51412:(e,t,r)=>{var n=r(96945),i=r(83735);e.exports=function(e,t){return e&&n(t,i(t),e)}},52162:(e,t,r)=>{var n=r(72097);e.exports=function(e,t,r){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}},71649:(e,t,r)=>{var n=r(66787),i=r(7515),o=r(40581),a=r(96239),s=r(51412),l=r(71204),c=r(57861),u=r(47605),d=r(97478),h=r(23280),f=r(65279),p=r(42711),m=r(14503),b=r(9961),g=r(42631),y=r(37603),v=r(23470),w=r(31204),E=r(3715),S=r(13558),C=r(45e3),k=r(83735),x="[object Arguments]",P="[object Function]",_="[object Object]",O={};O[x]=O["[object Array]"]=O["[object ArrayBuffer]"]=O["[object DataView]"]=O["[object Boolean]"]=O["[object Date]"]=O["[object Float32Array]"]=O["[object Float64Array]"]=O["[object Int8Array]"]=O["[object Int16Array]"]=O["[object Int32Array]"]=O["[object Map]"]=O["[object Number]"]=O[_]=O["[object RegExp]"]=O["[object Set]"]=O["[object String]"]=O["[object Symbol]"]=O["[object Uint8Array]"]=O["[object Uint8ClampedArray]"]=O["[object Uint16Array]"]=O["[object Uint32Array]"]=!0,O["[object Error]"]=O[P]=O["[object WeakMap]"]=!1,e.exports=function e(t,r,A,T,I,M){var D,R=1&r,F=2&r,L=4&r;if(A&&(D=I?A(t,T,I,M):A(t)),void 0!==D)return D;if(!E(t))return t;var j=y(t);if(j){if(D=m(t),!R)return c(t,D)}else{var N=p(t),U=N==P||"[object GeneratorFunction]"==N;if(v(t))return l(t,R);if(N==_||N==x||U&&!I){if(D=F||U?{}:g(t),!R)return F?d(t,s(D,t)):u(t,a(D,t))}else{if(!O[N])return I?t:{};D=b(t,N,R)}}M||(M=new n);var H=M.get(t);if(H)return H;M.set(t,D),S(t)?t.forEach((function(n){D.add(e(n,r,A,n,t,M))})):w(t)&&t.forEach((function(n,i){D.set(i,e(n,r,A,i,t,M))}));var B=j?void 0:(L?F?f:h:F?k:C)(t);return i(B||t,(function(n,i){B&&(n=t[i=n]),o(D,i,e(n,r,A,i,t,M))})),D}},90938:(e,t,r)=>{var n=r(3715),i=Object.create,o=function(){function e(){}return function(t){if(!n(t))return{};if(i)return i(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();e.exports=o},17621:e=>{e.exports=function(e,t,r,n){for(var i=e.length,o=r+(n?1:-1);n?o--:++o<i;)if(t(e[o],o,e))return o;return-1}},18142:(e,t,r)=>{var n=r(81026),i=r(46609);e.exports=function e(t,r,o,a,s){var l=-1,c=t.length;for(o||(o=i),s||(s=[]);++l<c;){var u=t[l];r>0&&o(u)?r>1?e(u,r-1,o,a,s):n(s,u):a||(s[s.length]=u)}return s}},6043:(e,t,r)=>{var n=r(68119)();e.exports=n},99216:(e,t,r)=>{var n=r(62323),i=r(60299);e.exports=function(e,t){for(var r=0,o=(t=n(t,e)).length;null!=e&&r<o;)e=e[i(t[r++])];return r&&r==o?e:void 0}},51141:(e,t,r)=>{var n=r(81026),i=r(37603);e.exports=function(e,t,r){var o=t(e);return i(e)?o:n(o,r(e))}},33754:(e,t,r)=>{var n=r(75799),i=r(36969),o=r(11916),a=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},38868:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e,r){return null!=e&&t.call(e,r)}},73989:(e,t,r)=>{var n=r(17621),i=r(5641),o=r(5749);e.exports=function(e,t,r){return t==t?o(e,t,r):n(e,i,r)}},59720:(e,t,r)=>{var n=r(33754),i=r(34140);e.exports=function(e){return i(e)&&"[object Arguments]"==n(e)}},70422:(e,t,r)=>{var n=r(42711),i=r(34140);e.exports=function(e){return i(e)&&"[object Map]"==n(e)}},5641:e=>{e.exports=function(e){return e!=e}},12185:(e,t,r)=>{var n=r(51028),i=r(33014),o=r(3715),a=r(10839),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,h=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(n(e)?h:s).test(a(e))}},12068:(e,t,r)=>{var n=r(42711),i=r(34140);e.exports=function(e){return i(e)&&"[object Set]"==n(e)}},42875:(e,t,r)=>{var n=r(33754),i=r(25404),o=r(34140),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!a[n(e)]}},27914:(e,t,r)=>{var n=r(50469),i=r(64756),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return i(e);var t=[];for(var r in Object(e))o.call(e,r)&&"constructor"!=r&&t.push(r);return t}},28141:(e,t,r)=>{var n=r(3715),i=r(50469),o=r(83163),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return o(e);var t=i(e),r=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&r.push(s);return r}},59584:(e,t,r)=>{var n=r(66787),i=r(43379),o=r(6043),a=r(58686),s=r(3715),l=r(83735),c=r(47400);e.exports=function e(t,r,u,d,h){t!==r&&o(r,(function(o,l){if(h||(h=new n),s(o))a(t,r,l,u,e,d,h);else{var f=d?d(c(t,l),o,l+"",t,r,h):void 0;void 0===f&&(f=o),i(t,l,f)}}),l)}},58686:(e,t,r)=>{var n=r(43379),i=r(71204),o=r(90467),a=r(57861),s=r(42631),l=r(24254),c=r(37603),u=r(53739),d=r(23470),h=r(51028),f=r(3715),p=r(19961),m=r(24373),b=r(47400),g=r(43082);e.exports=function(e,t,r,y,v,w,E){var S=b(e,r),C=b(t,r),k=E.get(C);if(k)n(e,r,k);else{var x=w?w(S,C,r+"",e,t,E):void 0,P=void 0===x;if(P){var _=c(C),O=!_&&d(C),A=!_&&!O&&m(C);x=C,_||O||A?c(S)?x=S:u(S)?x=a(S):O?(P=!1,x=i(C,!0)):A?(P=!1,x=o(C,!0)):x=[]:p(C)||l(C)?(x=S,l(S)?x=g(S):f(S)&&!h(S)||(x=s(C))):P=!1}P&&(E.set(C,x),v(x,C,y,w,E),E.delete(C)),n(e,r,x)}}},35022:e=>{e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},84016:(e,t,r)=>{var n=r(97286),i=r(7539),o=r(81239);e.exports=function(e,t){return o(i(e,t,n),e+"")}},42612:(e,t,r)=>{var n=r(40581),i=r(62323),o=r(68327),a=r(3715),s=r(60299);e.exports=function(e,t,r,l){if(!a(e))return e;for(var c=-1,u=(t=i(t,e)).length,d=u-1,h=e;null!=h&&++c<u;){var f=s(t[c]),p=r;if("__proto__"===f||"constructor"===f||"prototype"===f)return e;if(c!=d){var m=h[f];void 0===(p=l?l(m,f,h):void 0)&&(p=a(m)?m:o(t[c+1])?[]:{})}n(h,f,p),h=h[f]}return e}},60280:(e,t,r)=>{var n=r(18620),i=r(72097),o=r(97286),a=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:o;e.exports=a},82982:e=>{e.exports=function(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(i);++n<i;)o[n]=e[n+t];return o}},41458:e=>{e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},12258:(e,t,r)=>{var n=r(75799),i=r(22654),o=r(37603),a=r(9924),s=n?n.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(a(t))return l?l.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r}},17406:(e,t,r)=>{var n=r(45362),i=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(i,""):e}},45083:e=>{e.exports=function(e){return function(t){return e(t)}}},2937:(e,t,r)=>{var n=r(62323),i=r(85272),o=r(75019),a=r(60299);e.exports=function(e,t){return t=n(t,e),null==(e=o(e,t))||delete e[a(i(t))]}},73292:(e,t,r)=>{var n=r(22654);e.exports=function(e,t){return n(t,(function(t){return e[t]}))}},62323:(e,t,r)=>{var n=r(37603),i=r(688),o=r(16648),a=r(96004);e.exports=function(e,t){return n(e)?e:i(e,t)?[e]:o(a(e))}},86451:(e,t,r)=>{var n=r(86882);e.exports=function(e){var t=new e.constructor(e.byteLength);return new n(t).set(new n(e)),t}},71204:(e,t,r)=>{e=r.nmd(e);var n=r(75619),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?n.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=s?s(r):new e.constructor(r);return e.copy(n),n}},99915:(e,t,r)=>{var n=r(86451);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}},90923:e=>{var t=/\w*$/;e.exports=function(e){var r=new e.constructor(e.source,t.exec(e));return r.lastIndex=e.lastIndex,r}},61310:(e,t,r)=>{var n=r(75799),i=n?n.prototype:void 0,o=i?i.valueOf:void 0;e.exports=function(e){return o?Object(o.call(e)):{}}},90467:(e,t,r)=>{var n=r(86451);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}},57861:e=>{e.exports=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}},96945:(e,t,r)=>{var n=r(40581),i=r(52162);e.exports=function(e,t,r,o){var a=!r;r||(r={});for(var s=-1,l=t.length;++s<l;){var c=t[s],u=o?o(r[c],e[c],c,r,e):void 0;void 0===u&&(u=e[c]),a?i(r,c,u):n(r,c,u)}return r}},47605:(e,t,r)=>{var n=r(96945),i=r(83270);e.exports=function(e,t){return n(e,i(e),t)}},97478:(e,t,r)=>{var n=r(96945),i=r(48145);e.exports=function(e,t){return n(e,i(e),t)}},80591:(e,t,r)=>{var n=r(75619)["__core-js_shared__"];e.exports=n},12317:(e,t,r)=>{var n=r(84016),i=r(14494);e.exports=function(e){return n((function(t,r){var n=-1,o=r.length,a=o>1?r[o-1]:void 0,s=o>2?r[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(r[0],r[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);++n<o;){var l=r[n];l&&e(t,l,n,a)}return t}))}},68119:e=>{e.exports=function(e){return function(t,r,n){for(var i=-1,o=Object(t),a=n(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===r(o[l],l,o))break}return t}}},78073:(e,t,r)=>{var n=r(70104),i=r(70794),o=r(43243),a=RegExp("['’]","g");e.exports=function(e){return function(t){return n(o(i(t).replace(a,"")),e,"")}}},77292:(e,t,r)=>{var n=r(19961);e.exports=function(e){return n(e)?void 0:e}},46177:(e,t,r)=>{var n=r(35022)({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"});e.exports=n},72097:(e,t,r)=>{var n=r(5264),i=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},63126:(e,t,r)=>{var n=r(11616),i=r(7539),o=r(81239);e.exports=function(e){return o(i(e,void 0,n),e+"")}},57326:(e,t,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},23280:(e,t,r)=>{var n=r(51141),i=r(83270),o=r(45e3);e.exports=function(e){return n(e,o,i)}},65279:(e,t,r)=>{var n=r(51141),i=r(48145),o=r(83735);e.exports=function(e){return n(e,o,i)}},60113:(e,t,r)=>{var n=r(63492);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},5264:(e,t,r)=>{var n=r(12185),i=r(28050);e.exports=function(e,t){var r=i(e,t);return n(r)?r:void 0}},86065:(e,t,r)=>{var n=r(38233)(Object.getPrototypeOf,Object);e.exports=n},36969:(e,t,r)=>{var n=r(75799),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=n?n.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),r=e[s];try{e[s]=void 0;var n=!0}catch(e){}var i=a.call(e);return n&&(t?e[s]=r:delete e[s]),i}},83270:(e,t,r)=>{var n=r(18472),i=r(94759),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),n(a(e),(function(t){return o.call(e,t)})))}:i;e.exports=s},48145:(e,t,r)=>{var n=r(81026),i=r(86065),o=r(83270),a=r(94759),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)n(t,o(e)),e=i(e);return t}:a;e.exports=s},42711:(e,t,r)=>{var n=r(9438),i=r(56285),o=r(86974),a=r(75867),s=r(53173),l=r(33754),c=r(10839),u="[object Map]",d="[object Promise]",h="[object Set]",f="[object WeakMap]",p="[object DataView]",m=c(n),b=c(i),g=c(o),y=c(a),v=c(s),w=l;(n&&w(new n(new ArrayBuffer(1)))!=p||i&&w(new i)!=u||o&&w(o.resolve())!=d||a&&w(new a)!=h||s&&w(new s)!=f)&&(w=function(e){var t=l(e),r="[object Object]"==t?e.constructor:void 0,n=r?c(r):"";if(n)switch(n){case m:return p;case b:return u;case g:return d;case y:return h;case v:return f}return t}),e.exports=w},28050:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},5256:(e,t,r)=>{var n=r(62323),i=r(24254),o=r(37603),a=r(68327),s=r(25404),l=r(60299);e.exports=function(e,t,r){for(var c=-1,u=(t=n(t,e)).length,d=!1;++c<u;){var h=l(t[c]);if(!(d=null!=e&&r(e,h)))break;e=e[h]}return d||++c!=u?d:!!(u=null==e?0:e.length)&&s(u)&&a(h,u)&&(o(e)||i(e))}},51856:e=>{var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return t.test(e)}},45850:(e,t,r)=>{var n=r(73180);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},56988:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},71631:(e,t,r)=>{var n=r(73180),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return i.call(t,e)?t[e]:void 0}},27699:(e,t,r)=>{var n=r(73180),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:i.call(t,e)}},76491:(e,t,r)=>{var n=r(73180);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},14503:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var r=e.length,n=new e.constructor(r);return r&&"string"==typeof e[0]&&t.call(e,"index")&&(n.index=e.index,n.input=e.input),n}},9961:(e,t,r)=>{var n=r(86451),i=r(99915),o=r(90923),a=r(61310),s=r(90467);e.exports=function(e,t,r){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return n(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return i(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,r);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return o(e);case"[object Symbol]":return a(e)}}},42631:(e,t,r)=>{var n=r(90938),i=r(86065),o=r(50469);e.exports=function(e){return"function"!=typeof e.constructor||o(e)?{}:n(i(e))}},46609:(e,t,r)=>{var n=r(75799),i=r(24254),o=r(37603),a=n?n.isConcatSpreadable:void 0;e.exports=function(e){return o(e)||i(e)||!!(a&&e&&e[a])}},68327:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}},14494:(e,t,r)=>{var n=r(91114),i=r(52284),o=r(68327),a=r(3715);e.exports=function(e,t,r){if(!a(r))return!1;var s=typeof t;return!!("number"==s?i(r)&&o(t,r.length):"string"==s&&t in r)&&n(r[t],e)}},688:(e,t,r)=>{var n=r(37603),i=r(9924),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(n(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!i(e))||a.test(e)||!o.test(e)||null!=t&&e in Object(t)}},63492:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},33014:(e,t,r)=>{var n,i=r(80591),o=(n=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!o&&o in e}},50469:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},28924:e=>{e.exports=function(){this.__data__=[],this.size=0}},48122:(e,t,r)=>{var n=r(98639),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0||(r==t.length-1?t.pop():i.call(t,r,1),--this.size,0))}},31381:(e,t,r)=>{var n=r(98639);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},14489:(e,t,r)=>{var n=r(98639);e.exports=function(e){return n(this.__data__,e)>-1}},48721:(e,t,r)=>{var n=r(98639);e.exports=function(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}},40126:(e,t,r)=>{var n=r(22139),i=r(11649),o=r(56285);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(o||i),string:new n}}},85464:(e,t,r)=>{var n=r(60113);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},45755:(e,t,r)=>{var n=r(60113);e.exports=function(e){return n(this,e).get(e)}},12343:(e,t,r)=>{var n=r(60113);e.exports=function(e){return n(this,e).has(e)}},55071:(e,t,r)=>{var n=r(60113);e.exports=function(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}},27722:(e,t,r)=>{var n=r(35446);e.exports=function(e){var t=n(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}},73180:(e,t,r)=>{var n=r(5264)(Object,"create");e.exports=n},64756:(e,t,r)=>{var n=r(38233)(Object.keys,Object);e.exports=n},83163:e=>{e.exports=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}},4187:(e,t,r)=>{e=r.nmd(e);var n=r(57326),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i&&n.process,s=function(){try{return o&&o.require&&o.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},11916:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},38233:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},7539:(e,t,r)=>{var n=r(44375),i=Math.max;e.exports=function(e,t,r){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),l=Array(s);++a<s;)l[a]=o[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=o[a];return c[t]=r(l),n(e,this,c)}}},75019:(e,t,r)=>{var n=r(99216),i=r(82982);e.exports=function(e,t){return t.length<2?e:n(e,i(t,0,-1))}},75619:(e,t,r)=>{var n=r(57326),i="object"==typeof self&&self&&self.Object===Object&&self,o=n||i||Function("return this")();e.exports=o},47400:e=>{e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},81239:(e,t,r)=>{var n=r(60280),i=r(84909)(n);e.exports=i},84909:e=>{var t=Date.now;e.exports=function(e){var r=0,n=0;return function(){var i=t(),o=16-(i-n);if(n=i,o>0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}},73634:(e,t,r)=>{var n=r(11649);e.exports=function(){this.__data__=new n,this.size=0}},91636:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},19719:e=>{e.exports=function(e){return this.__data__.get(e)}},98971:e=>{e.exports=function(e){return this.__data__.has(e)}},89987:(e,t,r)=>{var n=r(11649),i=r(56285),o=r(22583);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new o(a)}return r.set(e,t),this.size=r.size,this}},5749:e=>{e.exports=function(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}},16648:(e,t,r)=>{var n=r(27722),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=n((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,(function(e,r,n,i){t.push(n?i.replace(o,"$1"):r||e)})),t}));e.exports=a},60299:(e,t,r)=>{var n=r(9924);e.exports=function(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},10839:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},45362:e=>{var t=/\s/;e.exports=function(e){for(var r=e.length;r--&&t.test(e.charAt(r)););return r}},51095:e=>{var t="\\ud800-\\udfff",r="\\u2700-\\u27bf",n="a-z\\xdf-\\xf6\\xf8-\\xff",i="A-Z\\xc0-\\xd6\\xd8-\\xde",o="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",a="["+o+"]",s="\\d+",l="["+r+"]",c="["+n+"]",u="[^"+t+o+s+r+n+i+"]",d="(?:\\ud83c[\\udde6-\\uddff]){2}",h="[\\ud800-\\udbff][\\udc00-\\udfff]",f="["+i+"]",p="(?:"+c+"|"+u+")",m="(?:"+f+"|"+u+")",b="(?:['’](?:d|ll|m|re|s|t|ve))?",g="(?:['’](?:D|LL|M|RE|S|T|VE))?",y="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",v="[\\ufe0e\\ufe0f]?",w=v+y+"(?:\\u200d(?:"+["[^"+t+"]",d,h].join("|")+")"+v+y+")*",E="(?:"+[l,d,h].join("|")+")"+w,S=RegExp([f+"?"+c+"+"+b+"(?="+[a,f,"$"].join("|")+")",m+"+"+g+"(?="+[a,f+p,"$"].join("|")+")",f+"?"+p+"+"+b,f+"+"+g,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",s,E].join("|"),"g");e.exports=function(e){return e.match(S)||[]}},18620:e=>{e.exports=function(e){return function(){return e}}},70794:(e,t,r)=>{var n=r(46177),i=r(96004),o=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=i(e))&&e.replace(o,n).replace(a,"")}},91114:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},11616:(e,t,r)=>{var n=r(18142);e.exports=function(e){return null!=e&&e.length?n(e,1):[]}},25358:(e,t,r)=>{var n=r(99216);e.exports=function(e,t,r){var i=null==e?void 0:n(e,t);return void 0===i?r:i}},75322:(e,t,r)=>{var n=r(38868),i=r(5256);e.exports=function(e,t){return null!=e&&i(e,t,n)}},97286:e=>{e.exports=function(e){return e}},69849:(e,t,r)=>{var n=r(73989),i=r(52284),o=r(67373),a=r(20263),s=r(5570),l=Math.max;e.exports=function(e,t,r,c){e=i(e)?e:s(e),r=r&&!c?a(r):0;var u=e.length;return r<0&&(r=l(u+r,0)),o(e)?r<=u&&e.indexOf(t,r)>-1:!!u&&n(e,t,r)>-1}},24254:(e,t,r)=>{var n=r(59720),i=r(34140),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,l=n(function(){return arguments}())?n:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},37603:e=>{var t=Array.isArray;e.exports=t},52284:(e,t,r)=>{var n=r(51028),i=r(25404);e.exports=function(e){return null!=e&&i(e.length)&&!n(e)}},53739:(e,t,r)=>{var n=r(52284),i=r(34140);e.exports=function(e){return i(e)&&n(e)}},23470:(e,t,r)=>{e=r.nmd(e);var n=r(75619),i=r(55597),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?n.Buffer:void 0,l=(s?s.isBuffer:void 0)||i;e.exports=l},87579:(e,t,r)=>{var n=r(27914),i=r(42711),o=r(24254),a=r(37603),s=r(52284),l=r(23470),c=r(50469),u=r(24373),d=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||u(e)||o(e)))return!e.length;var t=i(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(c(e))return!n(e).length;for(var r in e)if(d.call(e,r))return!1;return!0}},51028:(e,t,r)=>{var n=r(33754),i=r(3715);e.exports=function(e){if(!i(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},25404:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},31204:(e,t,r)=>{var n=r(70422),i=r(45083),o=r(4187),a=o&&o.isMap,s=a?i(a):n;e.exports=s},76519:(e,t,r)=>{var n=r(91553);e.exports=function(e){return n(e)&&e!=+e}},91553:(e,t,r)=>{var n=r(33754),i=r(34140);e.exports=function(e){return"number"==typeof e||i(e)&&"[object Number]"==n(e)}},3715:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},34140:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},19961:(e,t,r)=>{var n=r(33754),i=r(86065),o=r(34140),a=Function.prototype,s=Object.prototype,l=a.toString,c=s.hasOwnProperty,u=l.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=n(e))return!1;var t=i(e);if(null===t)return!0;var r=c.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&l.call(r)==u}},13558:(e,t,r)=>{var n=r(12068),i=r(45083),o=r(4187),a=o&&o.isSet,s=a?i(a):n;e.exports=s},67373:(e,t,r)=>{var n=r(33754),i=r(37603),o=r(34140);e.exports=function(e){return"string"==typeof e||!i(e)&&o(e)&&"[object String]"==n(e)}},9924:(e,t,r)=>{var n=r(33754),i=r(34140);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==n(e)}},24373:(e,t,r)=>{var n=r(42875),i=r(45083),o=r(4187),a=o&&o.isTypedArray,s=a?i(a):n;e.exports=s},45e3:(e,t,r)=>{var n=r(74113),i=r(27914),o=r(52284);e.exports=function(e){return o(e)?n(e):i(e)}},83735:(e,t,r)=>{var n=r(74113),i=r(28141),o=r(52284);e.exports=function(e){return o(e)?n(e,!0):i(e)}},85272:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},59315:(e,t,r)=>{var n=r(78073)((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}));e.exports=n},35446:(e,t,r)=>{var n=r(22583);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(i.Cache||n),r}i.Cache=n,e.exports=i},19474:(e,t,r)=>{var n=r(59584),i=r(12317)((function(e,t,r){n(e,t,r)}));e.exports=i},18564:e=>{e.exports=function(){}},64633:(e,t,r)=>{var n=r(22654),i=r(71649),o=r(2937),a=r(62323),s=r(96945),l=r(77292),c=r(63126),u=r(65279),d=c((function(e,t){var r={};if(null==e)return r;var c=!1;t=n(t,(function(t){return t=a(t,e),c||(c=t.length>1),t})),s(e,u(e),r),c&&(r=i(r,7,l));for(var d=t.length;d--;)o(r,t[d]);return r}));e.exports=d},19170:(e,t,r)=>{var n=r(42612);e.exports=function(e,t,r){return null==e?e:n(e,t,r)}},94759:e=>{e.exports=function(){return[]}},55597:e=>{e.exports=function(){return!1}},95134:(e,t,r)=>{var n=r(41888),i=1/0;e.exports=function(e){return e?(e=n(e))===i||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},20263:(e,t,r)=>{var n=r(95134);e.exports=function(e){var t=n(e),r=t%1;return t==t?r?t-r:t:0}},41888:(e,t,r)=>{var n=r(17406),i=r(3715),o=r(9924),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var r=s.test(e);return r||l.test(e)?c(e.slice(2),r?2:8):a.test(e)?NaN:+e}},43082:(e,t,r)=>{var n=r(96945),i=r(83735);e.exports=function(e){return n(e,i(e))}},96004:(e,t,r)=>{var n=r(12258);e.exports=function(e){return null==e?"":n(e)}},70406:(e,t,r)=>{var n=r(96004),i=0;e.exports=function(e){var t=++i;return n(e)+t}},5570:(e,t,r)=>{var n=r(73292),i=r(45e3);e.exports=function(e){return null==e?[]:n(e,i(e))}},43243:(e,t,r)=>{var n=r(25983),i=r(51856),o=r(96004),a=r(51095);e.exports=function(e,t,r){return e=o(e),void 0===(t=r?void 0:t)?i(e)?a(e):n(e):e.match(t)||[]}},17466:e=>{"use strict";function t(){return t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},t.apply(null,arguments)}var r=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var r={},n=0;n<10;n++)r["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(r).map((function(e){return r[e]})).join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach((function(e){i[e]=e})),"abcdefghijklmnopqrst"===Object.keys(t({},i)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var o,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var c in o=Object(arguments[l]))n.call(o,c)&&(s[c]=o[c]);if(r){a=r(o);for(var u=0;u<a.length;u++)i.call(o,a[u])&&(s[a[u]]=o[a[u]])}}return s}},74836:(e,t,r)=>{"use strict";var n=r(25059);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,r,i,o,a){if(a!==n){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return r.PropTypes=r,r}},39970:(e,t,r)=>{e.exports=r(74836)()},25059:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},43165:(e,t,r)=>{"use strict";var n=r(12010),i=r(17466),o=r(6224);function a(e,t){return t.encode?t.strict?n(e):encodeURIComponent(e):e}function s(e){return Array.isArray(e)?e.sort():"object"==typeof e?s(Object.keys(e)).sort((function(e,t){return Number(e)-Number(t)})).map((function(t){return e[t]})):e}function l(e){var t=e.indexOf("?");return-1===t?"":e.slice(t+1)}function c(e,t){var r=function(e){var t;switch(e.arrayFormat){case"index":return function(e,r,n){t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===n[e]&&(n[e]={}),n[e][t[1]]=r):n[e]=r};case"bracket":return function(e,r,n){t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==n[e]?n[e]=[].concat(n[e],r):n[e]=[r]:n[e]=r};default:return function(e,t,r){void 0!==r[e]?r[e]=[].concat(r[e],t):r[e]=t}}}(t=i({arrayFormat:"none"},t)),n=Object.create(null);return"string"!=typeof e?n:(e=e.trim().replace(/^[?#&]/,""))?(e.split("&").forEach((function(e){var t=e.replace(/\+/g," ").split("="),i=t.shift(),a=t.length>0?t.join("="):void 0;a=void 0===a?null:o(a),r(o(i),a,n)})),Object.keys(n).sort().reduce((function(e,t){var r=n[t];return Boolean(r)&&"object"==typeof r&&!Array.isArray(r)?e[t]=s(r):e[t]=r,e}),Object.create(null))):n}t.extract=l,t.parse=c,t.stringify=function(e,t){!1===(t=i({encode:!0,strict:!0,arrayFormat:"none"},t)).sort&&(t.sort=function(){});var r=function(e){switch(e.arrayFormat){case"index":return function(t,r,n){return null===r?[a(t,e),"[",n,"]"].join(""):[a(t,e),"[",a(n,e),"]=",a(r,e)].join("")};case"bracket":return function(t,r){return null===r?a(t,e):[a(t,e),"[]=",a(r,e)].join("")};default:return function(t,r){return null===r?a(t,e):[a(t,e),"=",a(r,e)].join("")}}}(t);return e?Object.keys(e).sort(t.sort).map((function(n){var i=e[n];if(void 0===i)return"";if(null===i)return a(n,t);if(Array.isArray(i)){var o=[];return i.slice().forEach((function(e){void 0!==e&&o.push(r(n,e,o.length))})),o.join("&")}return a(n,t)+"="+a(i,t)})).filter((function(e){return e.length>0})).join("&"):""},t.parseUrl=function(e,t){return{url:e.split("?")[0]||"",query:c(l(e),t)}}},50213:(e,t,r)=>{"use strict";var n=r(1986),i=r(40552);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,s={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(s[e]=t,e=0;e<t.length;e++)a.add(t[e])}var u=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=Object.prototype.hasOwnProperty,h=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,f={},p={};function m(e,t,r,n,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var b={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){b[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];b[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){b[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){b[e]=new m(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){b[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){b[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){b[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){b[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){b[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var g=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function v(e,t,r,n){var i=b.hasOwnProperty(t)?b[t]:null;(null!==i?0!==i.type:n||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,r,n){if(null==t||function(e,t,r,n){if(null!==r&&0===r.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!n&&(null!==r?!r.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,r,n))return!0;if(n)return!1;if(null!==r)switch(r.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,r,i,n)&&(r=null),n||null===i?function(e){return!!d.call(p,e)||!d.call(f,e)&&(h.test(e)?p[e]=!0:(f[e]=!0,!1))}(t)&&(null===r?e.removeAttribute(t):e.setAttribute(t,""+r)):i.mustUseProperty?e[i.propertyName]=null===r?3!==i.type&&"":r:(t=i.attributeName,n=i.attributeNamespace,null===r?e.removeAttribute(t):(r=3===(i=i.type)||4===i&&!0===r?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(g,y);b[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(g,y);b[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(g,y);b[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){b[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),b.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){b[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,E=Symbol.for("react.element"),S=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),P=Symbol.for("react.provider"),_=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),M=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var D=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var R=Symbol.iterator;function F(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=R&&e[R]||e["@@iterator"])?e:null}var L,j=Object.assign;function N(e){if(void 0===L)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);L=t&&t[1]||""}return"\n"+L+e}var U=!1;function H(e,t){if(!e||U)return"";U=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var n=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){n=e}e.call(t.prototype)}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var i=t.stack.split("\n"),o=n.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s]){var l="\n"+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{U=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?N(e):""}function B(e){switch(e.tag){case 5:return N(e.type);case 16:return N("Lazy");case 13:return N("Suspense");case 19:return N("SuspenseList");case 0:case 2:case 15:return H(e.type,!1);case 11:return H(e.type.render,!1);case 1:return H(e.type,!0);default:return""}}function z(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case C:return"Fragment";case S:return"Portal";case x:return"Profiler";case k:return"StrictMode";case A:return"Suspense";case T:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case _:return(e.displayName||"Context")+".Consumer";case P:return(e._context.displayName||"Context")+".Provider";case O:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case I:return null!==(t=e.displayName||null)?t:z(e.type)||"Memo";case M:t=e._payload,e=e._init;try{return z(e(t))}catch(e){}}return null}function V(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return z(t);case 8:return t===k?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function $(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function q(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function G(e){e._valueTracker||(e._valueTracker=function(e){var t=q(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==r&&"function"==typeof r.get&&"function"==typeof r.set){var i=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function W(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=q(e)?e.checked?"true":"false":e.value),(e=n)!==r&&(t.setValue(e),!0)}function X(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function K(e,t){var r=t.checked;return j({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=r?r:e._wrapperState.initialChecked})}function Q(e,t){var r=null==t.defaultValue?"":t.defaultValue,n=null!=t.checked?t.checked:t.defaultChecked;r=$(null!=t.value?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Y(e,t){null!=(t=t.checked)&&v(e,"checked",t,!1)}function J(e,t){Y(e,t);var r=$(t.value),n=t.type;if(null!=r)"number"===n?(0===r&&""===e.value||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if("submit"===n||"reset"===n)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,r):t.hasOwnProperty("defaultValue")&&ee(e,t.type,$(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Z(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!("submit"!==n&&"reset"!==n||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}""!==(r=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==r&&(e.name=r)}function ee(e,t,r){"number"===t&&X(e.ownerDocument)===e||(null==r?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var te=Array.isArray;function re(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i<r.length;i++)t["$"+r[i]]=!0;for(r=0;r<e.length;r++)i=t.hasOwnProperty("$"+e[r].value),e[r].selected!==i&&(e[r].selected=i),i&&n&&(e[r].defaultSelected=!0)}else{for(r=""+$(r),t=null,i=0;i<e.length;i++){if(e[i].value===r)return e[i].selected=!0,void(n&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function ne(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return j({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ie(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(o(92));if(te(r)){if(1<r.length)throw Error(o(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:$(r)}}function oe(e,t){var r=$(t.value),n=$(t.defaultValue);null!=r&&((r=""+r)!==e.value&&(e.value=r),null==t.defaultValue&&e.defaultValue!==r&&(e.defaultValue=r)),null!=n&&(e.defaultValue=""+n)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,ue,de=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,r,n){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function he(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&3===r.nodeType)return void(r.nodeValue=t)}e.textContent=t}var fe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},pe=["Webkit","ms","Moz","O"];function me(e,t,r){return null==t||"boolean"==typeof t||""===t?"":r||"number"!=typeof t||0===t||fe.hasOwnProperty(e)&&fe[e]?(""+t).trim():t+"px"}function be(e,t){for(var r in e=e.style,t)if(t.hasOwnProperty(r)){var n=0===r.indexOf("--"),i=me(r,t[r],n);"float"===r&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}Object.keys(fe).forEach((function(e){pe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fe[t]=fe[e]}))}));var ge=j({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(ge[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(o(62))}}function ve(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function Ee(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Se=null,Ce=null,ke=null;function xe(e){if(e=vi(e)){if("function"!=typeof Se)throw Error(o(280));var t=e.stateNode;t&&(t=Ei(t),Se(e.stateNode,e.type,t))}}function Pe(e){Ce?ke?ke.push(e):ke=[e]:Ce=e}function _e(){if(Ce){var e=Ce,t=ke;if(ke=Ce=null,xe(e),t)for(e=0;e<t.length;e++)xe(t[e])}}function Oe(e,t){return e(t)}function Ae(){}var Te=!1;function Ie(e,t,r){if(Te)return e(t,r);Te=!0;try{return Oe(e,t,r)}finally{Te=!1,(null!==Ce||null!==ke)&&(Ae(),_e())}}function Me(e,t){var r=e.stateNode;if(null===r)return null;var n=Ei(r);if(null===n)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(n=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!n;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(o(231,t,typeof r));return r}var De=!1;if(u)try{var Re={};Object.defineProperty(Re,"passive",{get:function(){De=!0}}),window.addEventListener("test",Re,Re),window.removeEventListener("test",Re,Re)}catch(ue){De=!1}function Fe(e,t,r,n,i,o,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(r,c)}catch(e){this.onError(e)}}var Le=!1,je=null,Ne=!1,Ue=null,He={onError:function(e){Le=!0,je=e}};function Be(e,t,r,n,i,o,a,s,l){Le=!1,je=null,Fe.apply(He,arguments)}function ze(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(r=t.return),e=t.return}while(e)}return 3===t.tag?r:null}function Ve(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function $e(e){if(ze(e)!==e)throw Error(o(188))}function qe(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=ze(e)))throw Error(o(188));return t!==e?null:e}for(var r=e,n=t;;){var i=r.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(n=i.return)){r=n;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===r)return $e(i),e;if(a===n)return $e(i),t;a=a.sibling}throw Error(o(188))}if(r.return!==n.return)r=i,n=a;else{for(var s=!1,l=i.child;l;){if(l===r){s=!0,r=i,n=a;break}if(l===n){s=!0,n=i,r=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===r){s=!0,r=a,n=i;break}if(l===n){s=!0,n=a,r=i;break}l=l.sibling}if(!s)throw Error(o(189))}}if(r.alternate!==n)throw Error(o(190))}if(3!==r.tag)throw Error(o(188));return r.stateNode.current===r?e:t}(e))?Ge(e):null}function Ge(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ge(e);if(null!==t)return t;e=e.sibling}return null}var We=i.unstable_scheduleCallback,Xe=i.unstable_cancelCallback,Ke=i.unstable_shouldYield,Qe=i.unstable_requestPaint,Ye=i.unstable_now,Je=i.unstable_getCurrentPriorityLevel,Ze=i.unstable_ImmediatePriority,et=i.unstable_UserBlockingPriority,tt=i.unstable_NormalPriority,rt=i.unstable_LowPriority,nt=i.unstable_IdlePriority,it=null,ot=null,at=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2,ct=64,ut=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ht(e,t){var r=e.pendingLanes;if(0===r)return 0;var n=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&r;if(0!==a){var s=a&~i;0!==s?n=dt(s):0!=(o&=a)&&(n=dt(o))}else 0!=(a=r&~i)?n=dt(a):0!==o&&(n=dt(o));if(0===n)return 0;if(0!==t&&t!==n&&!(t&i)&&((i=n&-n)>=(o=t&-t)||16===i&&4194240&o))return t;if(4&n&&(n|=16&r),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=n;0<t;)i=1<<(r=31-at(t)),n|=e[r],t&=~i;return n}function ft(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function pt(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ct;return!(4194240&(ct<<=1))&&(ct=64),e}function bt(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function gt(e,t,r){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=r}function yt(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-at(r),i=1<<n;i&t|e[n]&t&&(e[n]|=t),r&=~i}}var vt=0;function wt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var Et,St,Ct,kt,xt,Pt=!1,_t=[],Ot=null,At=null,Tt=null,It=new Map,Mt=new Map,Dt=[],Rt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Ft(e,t){switch(e){case"focusin":case"focusout":Ot=null;break;case"dragenter":case"dragleave":At=null;break;case"mouseover":case"mouseout":Tt=null;break;case"pointerover":case"pointerout":It.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Mt.delete(t.pointerId)}}function Lt(e,t,r,n,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:o,targetContainers:[i]},null!==t&&null!==(t=vi(t))&&St(t),e):(e.eventSystemFlags|=n,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function jt(e){var t=yi(e.target);if(null!==t){var r=ze(t);if(null!==r)if(13===(t=r.tag)){if(null!==(t=Ve(r)))return e.blockedOn=t,void xt(e.priority,(function(){Ct(r)}))}else if(3===t&&r.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===r.tag?r.stateNode.containerInfo:null)}e.blockedOn=null}function Nt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var r=Kt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==r)return null!==(t=vi(r))&&St(t),e.blockedOn=r,!1;var n=new(r=e.nativeEvent).constructor(r.type,r);we=n,r.target.dispatchEvent(n),we=null,t.shift()}return!0}function Ut(e,t,r){Nt(e)&&r.delete(t)}function Ht(){Pt=!1,null!==Ot&&Nt(Ot)&&(Ot=null),null!==At&&Nt(At)&&(At=null),null!==Tt&&Nt(Tt)&&(Tt=null),It.forEach(Ut),Mt.forEach(Ut)}function Bt(e,t){e.blockedOn===t&&(e.blockedOn=null,Pt||(Pt=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Ht)))}function zt(e){function t(t){return Bt(t,e)}if(0<_t.length){Bt(_t[0],e);for(var r=1;r<_t.length;r++){var n=_t[r];n.blockedOn===e&&(n.blockedOn=null)}}for(null!==Ot&&Bt(Ot,e),null!==At&&Bt(At,e),null!==Tt&&Bt(Tt,e),It.forEach(t),Mt.forEach(t),r=0;r<Dt.length;r++)(n=Dt[r]).blockedOn===e&&(n.blockedOn=null);for(;0<Dt.length&&null===(r=Dt[0]).blockedOn;)jt(r),null===r.blockedOn&&Dt.shift()}var Vt=w.ReactCurrentBatchConfig,$t=!0;function qt(e,t,r,n){var i=vt,o=Vt.transition;Vt.transition=null;try{vt=1,Wt(e,t,r,n)}finally{vt=i,Vt.transition=o}}function Gt(e,t,r,n){var i=vt,o=Vt.transition;Vt.transition=null;try{vt=4,Wt(e,t,r,n)}finally{vt=i,Vt.transition=o}}function Wt(e,t,r,n){if($t){var i=Kt(e,t,r,n);if(null===i)$n(e,t,n,Xt,r),Ft(e,n);else if(function(e,t,r,n,i){switch(t){case"focusin":return Ot=Lt(Ot,e,t,r,n,i),!0;case"dragenter":return At=Lt(At,e,t,r,n,i),!0;case"mouseover":return Tt=Lt(Tt,e,t,r,n,i),!0;case"pointerover":var o=i.pointerId;return It.set(o,Lt(It.get(o)||null,e,t,r,n,i)),!0;case"gotpointercapture":return o=i.pointerId,Mt.set(o,Lt(Mt.get(o)||null,e,t,r,n,i)),!0}return!1}(i,e,t,r,n))n.stopPropagation();else if(Ft(e,n),4&t&&-1<Rt.indexOf(e)){for(;null!==i;){var o=vi(i);if(null!==o&&Et(o),null===(o=Kt(e,t,r,n))&&$n(e,t,n,Xt,r),o===i)break;i=o}null!==i&&n.stopPropagation()}else $n(e,t,n,null,r)}}var Xt=null;function Kt(e,t,r,n){if(Xt=null,null!==(e=yi(e=Ee(n))))if(null===(t=ze(e)))e=null;else if(13===(r=t.tag)){if(null!==(e=Ve(t)))return e;e=null}else if(3===r){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Xt=e,null}function Qt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Je()){case Ze:return 1;case et:return 4;case tt:case rt:return 16;case nt:return 536870912;default:return 16}default:return 16}}var Yt=null,Jt=null,Zt=null;function er(){if(Zt)return Zt;var e,t,r=Jt,n=r.length,i="value"in Yt?Yt.value:Yt.textContent,o=i.length;for(e=0;e<n&&r[e]===i[e];e++);var a=n-e;for(t=1;t<=a&&r[n-t]===i[o-t];t++);return Zt=i.slice(e,1<t?1-t:void 0)}function tr(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function rr(){return!0}function nr(){return!1}function ir(e){function t(t,r,n,i,o){for(var a in this._reactName=t,this._targetInst=n,this.type=r,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?rr:nr,this.isPropagationStopped=nr,this}return j(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=rr)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=rr)},persist:function(){},isPersistent:rr}),t}var or,ar,sr,lr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cr=ir(lr),ur=j({},lr,{view:0,detail:0}),dr=ir(ur),hr=j({},ur,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:kr,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==sr&&(sr&&"mousemove"===e.type?(or=e.screenX-sr.screenX,ar=e.screenY-sr.screenY):ar=or=0,sr=e),or)},movementY:function(e){return"movementY"in e?e.movementY:ar}}),fr=ir(hr),pr=ir(j({},hr,{dataTransfer:0})),mr=ir(j({},ur,{relatedTarget:0})),br=ir(j({},lr,{animationName:0,elapsedTime:0,pseudoElement:0})),gr=j({},lr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yr=ir(gr),vr=ir(j({},lr,{data:0})),wr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Er={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Sr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Cr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sr[e])&&!!t[e]}function kr(){return Cr}var xr=j({},ur,{key:function(e){if(e.key){var t=wr[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tr(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Er[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:kr,charCode:function(e){return"keypress"===e.type?tr(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tr(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Pr=ir(xr),_r=ir(j({},hr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Or=ir(j({},ur,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:kr})),Ar=ir(j({},lr,{propertyName:0,elapsedTime:0,pseudoElement:0})),Tr=j({},hr,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Ir=ir(Tr),Mr=[9,13,27,32],Dr=u&&"CompositionEvent"in window,Rr=null;u&&"documentMode"in document&&(Rr=document.documentMode);var Fr=u&&"TextEvent"in window&&!Rr,Lr=u&&(!Dr||Rr&&8<Rr&&11>=Rr),jr=String.fromCharCode(32),Nr=!1;function Ur(e,t){switch(e){case"keyup":return-1!==Mr.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hr(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Br=!1,zr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Vr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!zr[e.type]:"textarea"===t}function $r(e,t,r,n){Pe(n),0<(t=Gn(t,"onChange")).length&&(r=new cr("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var qr=null,Gr=null;function Wr(e){Nn(e,0)}function Xr(e){if(W(wi(e)))return e}function Kr(e,t){if("change"===e)return t}var Qr=!1;if(u){var Yr;if(u){var Jr="oninput"in document;if(!Jr){var Zr=document.createElement("div");Zr.setAttribute("oninput","return;"),Jr="function"==typeof Zr.oninput}Yr=Jr}else Yr=!1;Qr=Yr&&(!document.documentMode||9<document.documentMode)}function en(){qr&&(qr.detachEvent("onpropertychange",tn),Gr=qr=null)}function tn(e){if("value"===e.propertyName&&Xr(Gr)){var t=[];$r(t,Gr,e,Ee(e)),Ie(Wr,t)}}function rn(e,t,r){"focusin"===e?(en(),Gr=r,(qr=t).attachEvent("onpropertychange",tn)):"focusout"===e&&en()}function nn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Xr(Gr)}function on(e,t){if("click"===e)return Xr(t)}function an(e,t){if("input"===e||"change"===e)return Xr(t)}var sn="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function ln(e,t){if(sn(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var i=r[n];if(!d.call(t,i)||!sn(e[i],t[i]))return!1}return!0}function cn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function un(e,t){var r,n=cn(e);for(e=0;n;){if(3===n.nodeType){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=cn(n)}}function dn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function hn(){for(var e=window,t=X();t instanceof e.HTMLIFrameElement;){try{var r="string"==typeof t.contentWindow.location.href}catch(e){r=!1}if(!r)break;t=X((e=t.contentWindow).document)}return t}function fn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function pn(e){var t=hn(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&dn(r.ownerDocument.documentElement,r)){if(null!==n&&fn(r))if(t=n.start,void 0===(e=n.end)&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if((e=(t=r.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=r.textContent.length,o=Math.min(n.start,i);n=void 0===n.end?o:Math.min(n.end,i),!e.extend&&o>n&&(i=n,n=o,o=i),i=un(r,o);var a=un(r,n);i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>n?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=r;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof r.focus&&r.focus(),r=0;r<t.length;r++)(e=t[r]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mn=u&&"documentMode"in document&&11>=document.documentMode,bn=null,gn=null,yn=null,vn=!1;function wn(e,t,r){var n=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;vn||null==bn||bn!==X(n)||(n="selectionStart"in(n=bn)&&fn(n)?{start:n.selectionStart,end:n.selectionEnd}:{anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},yn&&ln(yn,n)||(yn=n,0<(n=Gn(gn,"onSelect")).length&&(t=new cr("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=bn)))}function En(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Sn={animationend:En("Animation","AnimationEnd"),animationiteration:En("Animation","AnimationIteration"),animationstart:En("Animation","AnimationStart"),transitionend:En("Transition","TransitionEnd")},Cn={},kn={};function xn(e){if(Cn[e])return Cn[e];if(!Sn[e])return e;var t,r=Sn[e];for(t in r)if(r.hasOwnProperty(t)&&t in kn)return Cn[e]=r[t];return e}u&&(kn=document.createElement("div").style,"AnimationEvent"in window||(delete Sn.animationend.animation,delete Sn.animationiteration.animation,delete Sn.animationstart.animation),"TransitionEvent"in window||delete Sn.transitionend.transition);var Pn=xn("animationend"),_n=xn("animationiteration"),On=xn("animationstart"),An=xn("transitionend"),Tn=new Map,In="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Mn(e,t){Tn.set(e,t),l(t,[e])}for(var Dn=0;Dn<In.length;Dn++){var Rn=In[Dn];Mn(Rn.toLowerCase(),"on"+(Rn[0].toUpperCase()+Rn.slice(1)))}Mn(Pn,"onAnimationEnd"),Mn(_n,"onAnimationIteration"),Mn(On,"onAnimationStart"),Mn("dblclick","onDoubleClick"),Mn("focusin","onFocus"),Mn("focusout","onBlur"),Mn(An,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Fn="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ln=new Set("cancel close invalid load scroll toggle".split(" ").concat(Fn));function jn(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,n,i,a,s,l,c){if(Be.apply(this,arguments),Le){if(!Le)throw Error(o(198));var u=je;Le=!1,je=null,Ne||(Ne=!0,Ue=u)}}(n,t,void 0,e),e.currentTarget=null}function Nn(e,t){t=!!(4&t);for(var r=0;r<e.length;r++){var n=e[r],i=n.event;n=n.listeners;e:{var o=void 0;if(t)for(var a=n.length-1;0<=a;a--){var s=n[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;jn(i,s,c),o=l}else for(a=0;a<n.length;a++){if(l=(s=n[a]).instance,c=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;jn(i,s,c),o=l}}}if(Ne)throw e=Ue,Ne=!1,Ue=null,e}function Un(e,t){var r=t[mi];void 0===r&&(r=t[mi]=new Set);var n=e+"__bubble";r.has(n)||(Vn(t,e,2,!1),r.add(n))}function Hn(e,t,r){var n=0;t&&(n|=4),Vn(r,e,n,t)}var Bn="_reactListening"+Math.random().toString(36).slice(2);function zn(e){if(!e[Bn]){e[Bn]=!0,a.forEach((function(t){"selectionchange"!==t&&(Ln.has(t)||Hn(t,!1,e),Hn(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Bn]||(t[Bn]=!0,Hn("selectionchange",!1,t))}}function Vn(e,t,r,n){switch(Qt(t)){case 1:var i=qt;break;case 4:i=Gt;break;default:i=Wt}r=i.bind(null,t,r,e),i=void 0,!De||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),n?void 0!==i?e.addEventListener(t,r,{capture:!0,passive:i}):e.addEventListener(t,r,!0):void 0!==i?e.addEventListener(t,r,{passive:i}):e.addEventListener(t,r,!1)}function $n(e,t,r,n,i){var o=n;if(!(1&t||2&t||null===n))e:for(;;){if(null===n)return;var a=n.tag;if(3===a||4===a){var s=n.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=n.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=yi(s)))return;if(5===(l=a.tag)||6===l){n=o=a;continue e}s=s.parentNode}}n=n.return}Ie((function(){var n=o,i=Ee(r),a=[];e:{var s=Tn.get(e);if(void 0!==s){var l=cr,c=e;switch(e){case"keypress":if(0===tr(r))break e;case"keydown":case"keyup":l=Pr;break;case"focusin":c="focus",l=mr;break;case"focusout":c="blur",l=mr;break;case"beforeblur":case"afterblur":l=mr;break;case"click":if(2===r.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=fr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=pr;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Or;break;case Pn:case _n:case On:l=br;break;case An:l=Ar;break;case"scroll":l=dr;break;case"wheel":l=Ir;break;case"copy":case"cut":case"paste":l=yr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=_r}var u=!!(4&t),d=!u&&"scroll"===e,h=u?null!==s?s+"Capture":null:s;u=[];for(var f,p=n;null!==p;){var m=(f=p).stateNode;if(5===f.tag&&null!==m&&(f=m,null!==h&&null!=(m=Me(p,h))&&u.push(qn(p,m,f))),d)break;p=p.return}0<u.length&&(s=new l(s,c,null,r,i),a.push({event:s,listeners:u}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||r===we||!(c=r.relatedTarget||r.fromElement)||!yi(c)&&!c[pi])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=n,null!==(c=(c=r.relatedTarget||r.toElement)?yi(c):null)&&(c!==(d=ze(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=n),l!==c)){if(u=fr,m="onMouseLeave",h="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(u=_r,m="onPointerLeave",h="onPointerEnter",p="pointer"),d=null==l?s:wi(l),f=null==c?s:wi(c),(s=new u(m,p+"leave",l,r,i)).target=d,s.relatedTarget=f,m=null,yi(i)===n&&((u=new u(h,p+"enter",c,r,i)).target=f,u.relatedTarget=d,m=u),d=m,l&&c)e:{for(h=c,p=0,f=u=l;f;f=Wn(f))p++;for(f=0,m=h;m;m=Wn(m))f++;for(;0<p-f;)u=Wn(u),p--;for(;0<f-p;)h=Wn(h),f--;for(;p--;){if(u===h||null!==h&&u===h.alternate)break e;u=Wn(u),h=Wn(h)}u=null}else u=null;null!==l&&Xn(a,s,l,u,!1),null!==c&&null!==d&&Xn(a,d,c,u,!0)}if("select"===(l=(s=n?wi(n):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var b=Kr;else if(Vr(s))if(Qr)b=an;else{b=nn;var g=rn}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(b=on);switch(b&&(b=b(e,n))?$r(a,b,r,i):(g&&g(e,s,n),"focusout"===e&&(g=s._wrapperState)&&g.controlled&&"number"===s.type&&ee(s,"number",s.value)),g=n?wi(n):window,e){case"focusin":(Vr(g)||"true"===g.contentEditable)&&(bn=g,gn=n,yn=null);break;case"focusout":yn=gn=bn=null;break;case"mousedown":vn=!0;break;case"contextmenu":case"mouseup":case"dragend":vn=!1,wn(a,r,i);break;case"selectionchange":if(mn)break;case"keydown":case"keyup":wn(a,r,i)}var y;if(Dr)e:{switch(e){case"compositionstart":var v="onCompositionStart";break e;case"compositionend":v="onCompositionEnd";break e;case"compositionupdate":v="onCompositionUpdate";break e}v=void 0}else Br?Ur(e,r)&&(v="onCompositionEnd"):"keydown"===e&&229===r.keyCode&&(v="onCompositionStart");v&&(Lr&&"ko"!==r.locale&&(Br||"onCompositionStart"!==v?"onCompositionEnd"===v&&Br&&(y=er()):(Jt="value"in(Yt=i)?Yt.value:Yt.textContent,Br=!0)),0<(g=Gn(n,v)).length&&(v=new vr(v,e,null,r,i),a.push({event:v,listeners:g}),(y||null!==(y=Hr(r)))&&(v.data=y))),(y=Fr?function(e,t){switch(e){case"compositionend":return Hr(t);case"keypress":return 32!==t.which?null:(Nr=!0,jr);case"textInput":return(e=t.data)===jr&&Nr?null:e;default:return null}}(e,r):function(e,t){if(Br)return"compositionend"===e||!Dr&&Ur(e,t)?(e=er(),Zt=Jt=Yt=null,Br=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Lr&&"ko"!==t.locale?null:t.data}}(e,r))&&0<(n=Gn(n,"onBeforeInput")).length&&(i=new vr("onBeforeInput","beforeinput",null,r,i),a.push({event:i,listeners:n}),i.data=y)}Nn(a,t)}))}function qn(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Gn(e,t){for(var r=t+"Capture",n=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=Me(e,r))&&n.unshift(qn(e,o,i)),null!=(o=Me(e,t))&&n.push(qn(e,o,i))),e=e.return}return n}function Wn(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Xn(e,t,r,n,i){for(var o=t._reactName,a=[];null!==r&&r!==n;){var s=r,l=s.alternate,c=s.stateNode;if(null!==l&&l===n)break;5===s.tag&&null!==c&&(s=c,i?null!=(l=Me(r,o))&&a.unshift(qn(r,l,s)):i||null!=(l=Me(r,o))&&a.push(qn(r,l,s))),r=r.return}0!==a.length&&e.push({event:t,listeners:a})}var Kn=/\r\n?/g,Qn=/\u0000|\uFFFD/g;function Yn(e){return("string"==typeof e?e:""+e).replace(Kn,"\n").replace(Qn,"")}function Jn(e,t,r){if(t=Yn(t),Yn(e)!==t&&r)throw Error(o(425))}function Zn(){}var ei=null,ti=null;function ri(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ni="function"==typeof setTimeout?setTimeout:void 0,ii="function"==typeof clearTimeout?clearTimeout:void 0,oi="function"==typeof Promise?Promise:void 0,ai="function"==typeof queueMicrotask?queueMicrotask:void 0!==oi?function(e){return oi.resolve(null).then(e).catch(si)}:ni;function si(e){setTimeout((function(){throw e}))}function li(e,t){var r=t,n=0;do{var i=r.nextSibling;if(e.removeChild(r),i&&8===i.nodeType)if("/$"===(r=i.data)){if(0===n)return e.removeChild(i),void zt(t);n--}else"$"!==r&&"$?"!==r&&"$!"!==r||n++;r=i}while(r);zt(t)}function ci(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ui(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var r=e.data;if("$"===r||"$!"===r||"$?"===r){if(0===t)return e;t--}else"/$"===r&&t++}e=e.previousSibling}return null}var di=Math.random().toString(36).slice(2),hi="__reactFiber$"+di,fi="__reactProps$"+di,pi="__reactContainer$"+di,mi="__reactEvents$"+di,bi="__reactListeners$"+di,gi="__reactHandles$"+di;function yi(e){var t=e[hi];if(t)return t;for(var r=e.parentNode;r;){if(t=r[pi]||r[hi]){if(r=t.alternate,null!==t.child||null!==r&&null!==r.child)for(e=ui(e);null!==e;){if(r=e[hi])return r;e=ui(e)}return t}r=(e=r).parentNode}return null}function vi(e){return!(e=e[hi]||e[pi])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function wi(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function Ei(e){return e[fi]||null}var Si=[],Ci=-1;function ki(e){return{current:e}}function xi(e){0>Ci||(e.current=Si[Ci],Si[Ci]=null,Ci--)}function Pi(e,t){Ci++,Si[Ci]=e.current,e.current=t}var _i={},Oi=ki(_i),Ai=ki(!1),Ti=_i;function Ii(e,t){var r=e.type.contextTypes;if(!r)return _i;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in r)o[i]=t[i];return n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Mi(e){return null!=e.childContextTypes}function Di(){xi(Ai),xi(Oi)}function Ri(e,t,r){if(Oi.current!==_i)throw Error(o(168));Pi(Oi,t),Pi(Ai,r)}function Fi(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,"function"!=typeof n.getChildContext)return r;for(var i in n=n.getChildContext())if(!(i in t))throw Error(o(108,V(e)||"Unknown",i));return j({},r,n)}function Li(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||_i,Ti=Oi.current,Pi(Oi,e),Pi(Ai,Ai.current),!0}function ji(e,t,r){var n=e.stateNode;if(!n)throw Error(o(169));r?(e=Fi(e,t,Ti),n.__reactInternalMemoizedMergedChildContext=e,xi(Ai),xi(Oi),Pi(Oi,e)):xi(Ai),Pi(Ai,r)}var Ni=null,Ui=!1,Hi=!1;function Bi(e){null===Ni?Ni=[e]:Ni.push(e)}function zi(){if(!Hi&&null!==Ni){Hi=!0;var e=0,t=vt;try{var r=Ni;for(vt=1;e<r.length;e++){var n=r[e];do{n=n(!0)}while(null!==n)}Ni=null,Ui=!1}catch(t){throw null!==Ni&&(Ni=Ni.slice(e+1)),We(Ze,zi),t}finally{vt=t,Hi=!1}}return null}var Vi=[],$i=0,qi=null,Gi=0,Wi=[],Xi=0,Ki=null,Qi=1,Yi="";function Ji(e,t){Vi[$i++]=Gi,Vi[$i++]=qi,qi=e,Gi=t}function Zi(e,t,r){Wi[Xi++]=Qi,Wi[Xi++]=Yi,Wi[Xi++]=Ki,Ki=e;var n=Qi;e=Yi;var i=32-at(n)-1;n&=~(1<<i),r+=1;var o=32-at(t)+i;if(30<o){var a=i-i%5;o=(n&(1<<a)-1).toString(32),n>>=a,i-=a,Qi=1<<32-at(t)+i|r<<i|n,Yi=o+e}else Qi=1<<o|r<<i|n,Yi=e}function eo(e){null!==e.return&&(Ji(e,1),Zi(e,1,0))}function to(e){for(;e===qi;)qi=Vi[--$i],Vi[$i]=null,Gi=Vi[--$i],Vi[$i]=null;for(;e===Ki;)Ki=Wi[--Xi],Wi[Xi]=null,Yi=Wi[--Xi],Wi[Xi]=null,Qi=Wi[--Xi],Wi[Xi]=null}var ro=null,no=null,io=!1,oo=null;function ao(e,t){var r=Ic(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,null===(t=e.deletions)?(e.deletions=[r],e.flags|=16):t.push(r)}function so(e,t){switch(e.tag){case 5:var r=e.type;return null!==(t=1!==t.nodeType||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ro=e,no=ci(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ro=e,no=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(r=null!==Ki?{id:Qi,overflow:Yi}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},(r=Ic(18,null,null,0)).stateNode=t,r.return=e,e.child=r,ro=e,no=null,!0);default:return!1}}function lo(e){return!(!(1&e.mode)||128&e.flags)}function co(e){if(io){var t=no;if(t){var r=t;if(!so(e,t)){if(lo(e))throw Error(o(418));t=ci(r.nextSibling);var n=ro;t&&so(e,t)?ao(n,r):(e.flags=-4097&e.flags|2,io=!1,ro=e)}}else{if(lo(e))throw Error(o(418));e.flags=-4097&e.flags|2,io=!1,ro=e}}}function uo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ro=e}function ho(e){if(e!==ro)return!1;if(!io)return uo(e),io=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ri(e.type,e.memoizedProps)),t&&(t=no)){if(lo(e))throw fo(),Error(o(418));for(;t;)ao(e,t),t=ci(t.nextSibling)}if(uo(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){no=ci(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}no=null}}else no=ro?ci(e.stateNode.nextSibling):null;return!0}function fo(){for(var e=no;e;)e=ci(e.nextSibling)}function po(){no=ro=null,io=!1}function mo(e){null===oo?oo=[e]:oo.push(e)}var bo=w.ReactCurrentBatchConfig;function go(e,t,r){if(null!==(e=r.ref)&&"function"!=typeof e&&"object"!=typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(o(309));var n=r.stateNode}if(!n)throw Error(o(147,e));var i=n,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=i.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(o(284));if(!r._owner)throw Error(o(290,e))}return e}function yo(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function vo(e){return(0,e._init)(e._payload)}function wo(e){function t(t,r){if(e){var n=t.deletions;null===n?(t.deletions=[r],t.flags|=16):n.push(r)}}function r(r,n){if(!e)return null;for(;null!==n;)t(r,n),n=n.sibling;return null}function n(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Dc(e,t)).index=0,e.sibling=null,e}function a(t,r,n){return t.index=n,e?null!==(n=t.alternate)?(n=n.index)<r?(t.flags|=2,r):n:(t.flags|=2,r):(t.flags|=1048576,r)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,r,n){return null===t||6!==t.tag?((t=jc(r,e.mode,n)).return=e,t):((t=i(t,r)).return=e,t)}function c(e,t,r,n){var o=r.type;return o===C?d(e,t,r.props.children,n,r.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===M&&vo(o)===t.type)?((n=i(t,r.props)).ref=go(e,t,r),n.return=e,n):((n=Rc(r.type,r.key,r.props,null,e.mode,n)).ref=go(e,t,r),n.return=e,n)}function u(e,t,r,n){return null===t||4!==t.tag||t.stateNode.containerInfo!==r.containerInfo||t.stateNode.implementation!==r.implementation?((t=Nc(r,e.mode,n)).return=e,t):((t=i(t,r.children||[])).return=e,t)}function d(e,t,r,n,o){return null===t||7!==t.tag?((t=Fc(r,e.mode,n,o)).return=e,t):((t=i(t,r)).return=e,t)}function h(e,t,r){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=jc(""+t,e.mode,r)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case E:return(r=Rc(t.type,t.key,t.props,null,e.mode,r)).ref=go(e,null,t),r.return=e,r;case S:return(t=Nc(t,e.mode,r)).return=e,t;case M:return h(e,(0,t._init)(t._payload),r)}if(te(t)||F(t))return(t=Fc(t,e.mode,r,null)).return=e,t;yo(e,t)}return null}function f(e,t,r,n){var i=null!==t?t.key:null;if("string"==typeof r&&""!==r||"number"==typeof r)return null!==i?null:l(e,t,""+r,n);if("object"==typeof r&&null!==r){switch(r.$$typeof){case E:return r.key===i?c(e,t,r,n):null;case S:return r.key===i?u(e,t,r,n):null;case M:return f(e,t,(i=r._init)(r._payload),n)}if(te(r)||F(r))return null!==i?null:d(e,t,r,n,null);yo(e,r)}return null}function p(e,t,r,n,i){if("string"==typeof n&&""!==n||"number"==typeof n)return l(t,e=e.get(r)||null,""+n,i);if("object"==typeof n&&null!==n){switch(n.$$typeof){case E:return c(t,e=e.get(null===n.key?r:n.key)||null,n,i);case S:return u(t,e=e.get(null===n.key?r:n.key)||null,n,i);case M:return p(e,t,r,(0,n._init)(n._payload),i)}if(te(n)||F(n))return d(t,e=e.get(r)||null,n,i,null);yo(t,n)}return null}function m(i,o,s,l){for(var c=null,u=null,d=o,m=o=0,b=null;null!==d&&m<s.length;m++){d.index>m?(b=d,d=null):b=d.sibling;var g=f(i,d,s[m],l);if(null===g){null===d&&(d=b);break}e&&d&&null===g.alternate&&t(i,d),o=a(g,o,m),null===u?c=g:u.sibling=g,u=g,d=b}if(m===s.length)return r(i,d),io&&Ji(i,m),c;if(null===d){for(;m<s.length;m++)null!==(d=h(i,s[m],l))&&(o=a(d,o,m),null===u?c=d:u.sibling=d,u=d);return io&&Ji(i,m),c}for(d=n(i,d);m<s.length;m++)null!==(b=p(d,i,m,s[m],l))&&(e&&null!==b.alternate&&d.delete(null===b.key?m:b.key),o=a(b,o,m),null===u?c=b:u.sibling=b,u=b);return e&&d.forEach((function(e){return t(i,e)})),io&&Ji(i,m),c}function b(i,s,l,c){var u=F(l);if("function"!=typeof u)throw Error(o(150));if(null==(l=u.call(l)))throw Error(o(151));for(var d=u=null,m=s,b=s=0,g=null,y=l.next();null!==m&&!y.done;b++,y=l.next()){m.index>b?(g=m,m=null):g=m.sibling;var v=f(i,m,y.value,c);if(null===v){null===m&&(m=g);break}e&&m&&null===v.alternate&&t(i,m),s=a(v,s,b),null===d?u=v:d.sibling=v,d=v,m=g}if(y.done)return r(i,m),io&&Ji(i,b),u;if(null===m){for(;!y.done;b++,y=l.next())null!==(y=h(i,y.value,c))&&(s=a(y,s,b),null===d?u=y:d.sibling=y,d=y);return io&&Ji(i,b),u}for(m=n(i,m);!y.done;b++,y=l.next())null!==(y=p(m,i,b,y.value,c))&&(e&&null!==y.alternate&&m.delete(null===y.key?b:y.key),s=a(y,s,b),null===d?u=y:d.sibling=y,d=y);return e&&m.forEach((function(e){return t(i,e)})),io&&Ji(i,b),u}return function e(n,o,a,l){if("object"==typeof a&&null!==a&&a.type===C&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case E:e:{for(var c=a.key,u=o;null!==u;){if(u.key===c){if((c=a.type)===C){if(7===u.tag){r(n,u.sibling),(o=i(u,a.props.children)).return=n,n=o;break e}}else if(u.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===M&&vo(c)===u.type){r(n,u.sibling),(o=i(u,a.props)).ref=go(n,u,a),o.return=n,n=o;break e}r(n,u);break}t(n,u),u=u.sibling}a.type===C?((o=Fc(a.props.children,n.mode,l,a.key)).return=n,n=o):((l=Rc(a.type,a.key,a.props,null,n.mode,l)).ref=go(n,o,a),l.return=n,n=l)}return s(n);case S:e:{for(u=a.key;null!==o;){if(o.key===u){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){r(n,o.sibling),(o=i(o,a.children||[])).return=n,n=o;break e}r(n,o);break}t(n,o),o=o.sibling}(o=Nc(a,n.mode,l)).return=n,n=o}return s(n);case M:return e(n,o,(u=a._init)(a._payload),l)}if(te(a))return m(n,o,a,l);if(F(a))return b(n,o,a,l);yo(n,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==o&&6===o.tag?(r(n,o.sibling),(o=i(o,a)).return=n,n=o):(r(n,o),(o=jc(a,n.mode,l)).return=n,n=o),s(n)):r(n,o)}}var Eo=wo(!0),So=wo(!1),Co=ki(null),ko=null,xo=null,Po=null;function _o(){Po=xo=ko=null}function Oo(e){var t=Co.current;xi(Co),e._currentValue=t}function Ao(e,t,r){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==n&&(n.childLanes|=t)):null!==n&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function To(e,t){ko=e,Po=xo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(vs=!0),e.firstContext=null)}function Io(e){var t=e._currentValue;if(Po!==e)if(e={context:e,memoizedValue:t,next:null},null===xo){if(null===ko)throw Error(o(308));xo=e,ko.dependencies={lanes:0,firstContext:e}}else xo=xo.next=e;return t}var Mo=null;function Do(e){null===Mo?Mo=[e]:Mo.push(e)}function Ro(e,t,r,n){var i=t.interleaved;return null===i?(r.next=r,Do(t)):(r.next=i.next,i.next=r),t.interleaved=r,Fo(e,n)}function Fo(e,t){e.lanes|=t;var r=e.alternate;for(null!==r&&(r.lanes|=t),r=e,e=e.return;null!==e;)e.childLanes|=t,null!==(r=e.alternate)&&(r.childLanes|=t),r=e,e=e.return;return 3===r.tag?r.stateNode:null}var Lo=!1;function jo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function No(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Uo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ho(e,t,r){var n=e.updateQueue;if(null===n)return null;if(n=n.shared,2&Ol){var i=n.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),n.pending=t,Fo(e,r)}return null===(i=n.interleaved)?(t.next=t,Do(n)):(t.next=i.next,i.next=t),n.interleaved=t,Fo(e,r)}function Bo(e,t,r){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&r)){var n=t.lanes;r|=n&=e.pendingLanes,t.lanes=r,yt(e,r)}}function zo(e,t){var r=e.updateQueue,n=e.alternate;if(null!==n&&r===(n=n.updateQueue)){var i=null,o=null;if(null!==(r=r.firstBaseUpdate)){do{var a={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};null===o?i=o=a:o=o.next=a,r=r.next}while(null!==r);null===o?i=o=t:o=o.next=t}else i=o=t;return r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:n.shared,effects:n.effects},void(e.updateQueue=r)}null===(e=r.lastBaseUpdate)?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Vo(e,t,r,n){var i=e.updateQueue;Lo=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,c=l.next;l.next=null,null===a?o=c:a.next=c,a=l;var u=e.alternate;null!==u&&(s=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l)}if(null!==o){var d=i.baseState;for(a=0,u=c=l=null,s=o;;){var h=s.lane,f=s.eventTime;if((n&h)===h){null!==u&&(u=u.next={eventTime:f,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,m=s;switch(h=t,f=r,m.tag){case 1:if("function"==typeof(p=m.payload)){d=p.call(f,d,h);break e}d=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null==(h="function"==typeof(p=m.payload)?p.call(f,d,h):p))break e;d=j({},d,h);break e;case 2:Lo=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(h=i.effects)?i.effects=[s]:h.push(s))}else f={eventTime:f,lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=f,l=d):u=u.next=f,a|=h;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(h=s).next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}if(null===u&&(l=d),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,null!==(t=i.shared.interleaved)){i=t;do{a|=i.lane,i=i.next}while(i!==t)}else null===o&&(i.shared.lanes=0);Ll|=a,e.lanes=a,e.memoizedState=d}}function $o(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var n=e[t],i=n.callback;if(null!==i){if(n.callback=null,n=r,"function"!=typeof i)throw Error(o(191,i));i.call(n)}}}var qo={},Go=ki(qo),Wo=ki(qo),Xo=ki(qo);function Ko(e){if(e===qo)throw Error(o(174));return e}function Qo(e,t){switch(Pi(Xo,t),Pi(Wo,e),Pi(Go,qo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}xi(Go),Pi(Go,t)}function Yo(){xi(Go),xi(Wo),xi(Xo)}function Jo(e){Ko(Xo.current);var t=Ko(Go.current),r=le(t,e.type);t!==r&&(Pi(Wo,e),Pi(Go,r))}function Zo(e){Wo.current===e&&(xi(Go),xi(Wo))}var ea=ki(0);function ta(e){for(var t=e;null!==t;){if(13===t.tag){var r=t.memoizedState;if(null!==r&&(null===(r=r.dehydrated)||"$?"===r.data||"$!"===r.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ra=[];function na(){for(var e=0;e<ra.length;e++)ra[e]._workInProgressVersionPrimary=null;ra.length=0}var ia=w.ReactCurrentDispatcher,oa=w.ReactCurrentBatchConfig,aa=0,sa=null,la=null,ca=null,ua=!1,da=!1,ha=0,fa=0;function pa(){throw Error(o(321))}function ma(e,t){if(null===t)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!sn(e[r],t[r]))return!1;return!0}function ba(e,t,r,n,i,a){if(aa=a,sa=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ia.current=null===e||null===e.memoizedState?Za:es,e=r(n,i),da){a=0;do{if(da=!1,ha=0,25<=a)throw Error(o(301));a+=1,ca=la=null,t.updateQueue=null,ia.current=ts,e=r(n,i)}while(da)}if(ia.current=Ja,t=null!==la&&null!==la.next,aa=0,ca=la=sa=null,ua=!1,t)throw Error(o(300));return e}function ga(){var e=0!==ha;return ha=0,e}function ya(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ca?sa.memoizedState=ca=e:ca=ca.next=e,ca}function va(){if(null===la){var e=sa.alternate;e=null!==e?e.memoizedState:null}else e=la.next;var t=null===ca?sa.memoizedState:ca.next;if(null!==t)ca=t,la=e;else{if(null===e)throw Error(o(310));e={memoizedState:(la=e).memoizedState,baseState:la.baseState,baseQueue:la.baseQueue,queue:la.queue,next:null},null===ca?sa.memoizedState=ca=e:ca=ca.next=e}return ca}function wa(e,t){return"function"==typeof t?t(e):t}function Ea(e){var t=va(),r=t.queue;if(null===r)throw Error(o(311));r.lastRenderedReducer=e;var n=la,i=n.baseQueue,a=r.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}n.baseQueue=i=a,r.pending=null}if(null!==i){a=i.next,n=n.baseState;var l=s=null,c=null,u=a;do{var d=u.lane;if((aa&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),n=u.hasEagerState?u.eagerState:e(n,u.action);else{var h={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(l=c=h,s=n):c=c.next=h,sa.lanes|=d,Ll|=d}u=u.next}while(null!==u&&u!==a);null===c?s=n:c.next=l,sn(n,t.memoizedState)||(vs=!0),t.memoizedState=n,t.baseState=s,t.baseQueue=c,r.lastRenderedState=n}if(null!==(e=r.interleaved)){i=e;do{a=i.lane,sa.lanes|=a,Ll|=a,i=i.next}while(i!==e)}else null===i&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Sa(e){var t=va(),r=t.queue;if(null===r)throw Error(o(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,a=t.memoizedState;if(null!==i){r.pending=null;var s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);sn(a,t.memoizedState)||(vs=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),r.lastRenderedState=a}return[a,n]}function Ca(){}function ka(e,t){var r=sa,n=va(),i=t(),a=!sn(n.memoizedState,i);if(a&&(n.memoizedState=i,vs=!0),n=n.queue,La(_a.bind(null,r,n,e),[e]),n.getSnapshot!==t||a||null!==ca&&1&ca.memoizedState.tag){if(r.flags|=2048,Ia(9,Pa.bind(null,r,n,i,t),void 0,null),null===Al)throw Error(o(349));30&aa||xa(r,t,i)}return i}function xa(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.stores=[e]):null===(r=t.stores)?t.stores=[e]:r.push(e)}function Pa(e,t,r,n){t.value=r,t.getSnapshot=n,Oa(t)&&Aa(e)}function _a(e,t,r){return r((function(){Oa(t)&&Aa(e)}))}function Oa(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!sn(e,r)}catch(e){return!0}}function Aa(e){var t=Fo(e,1);null!==t&&rc(t,e,1,-1)}function Ta(e){var t=ya();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:wa,lastRenderedState:e},t.queue=e,e=e.dispatch=Xa.bind(null,sa,e),[t.memoizedState,e]}function Ia(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.lastEffect=e.next=e):null===(r=t.lastEffect)?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e),e}function Ma(){return va().memoizedState}function Da(e,t,r,n){var i=ya();sa.flags|=e,i.memoizedState=Ia(1|t,r,void 0,void 0===n?null:n)}function Ra(e,t,r,n){var i=va();n=void 0===n?null:n;var o=void 0;if(null!==la){var a=la.memoizedState;if(o=a.destroy,null!==n&&ma(n,a.deps))return void(i.memoizedState=Ia(t,r,o,n))}sa.flags|=e,i.memoizedState=Ia(1|t,r,o,n)}function Fa(e,t){return Da(8390656,8,e,t)}function La(e,t){return Ra(2048,8,e,t)}function ja(e,t){return Ra(4,2,e,t)}function Na(e,t){return Ra(4,4,e,t)}function Ua(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ha(e,t,r){return r=null!=r?r.concat([e]):null,Ra(4,4,Ua.bind(null,t,e),r)}function Ba(){}function za(e,t){var r=va();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&ma(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function Va(e,t){var r=va();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&ma(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function $a(e,t,r){return 21&aa?(sn(r,t)||(r=mt(),sa.lanes|=r,Ll|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,vs=!0),e.memoizedState=r)}function qa(e,t){var r=vt;vt=0!==r&&4>r?r:4,e(!0);var n=oa.transition;oa.transition={};try{e(!1),t()}finally{vt=r,oa.transition=n}}function Ga(){return va().memoizedState}function Wa(e,t,r){var n=tc(e);r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},Ka(e)?Qa(t,r):null!==(r=Ro(e,t,r,n))&&(rc(r,e,n,ec()),Ya(r,t,n))}function Xa(e,t,r){var n=tc(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(Ka(e))Qa(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,r);if(i.hasEagerState=!0,i.eagerState=s,sn(s,a)){var l=t.interleaved;return null===l?(i.next=i,Do(t)):(i.next=l.next,l.next=i),void(t.interleaved=i)}}catch(e){}null!==(r=Ro(e,t,i,n))&&(rc(r,e,n,i=ec()),Ya(r,t,n))}}function Ka(e){var t=e.alternate;return e===sa||null!==t&&t===sa}function Qa(e,t){da=ua=!0;var r=e.pending;null===r?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function Ya(e,t,r){if(4194240&r){var n=t.lanes;r|=n&=e.pendingLanes,t.lanes=r,yt(e,r)}}var Ja={readContext:Io,useCallback:pa,useContext:pa,useEffect:pa,useImperativeHandle:pa,useInsertionEffect:pa,useLayoutEffect:pa,useMemo:pa,useReducer:pa,useRef:pa,useState:pa,useDebugValue:pa,useDeferredValue:pa,useTransition:pa,useMutableSource:pa,useSyncExternalStore:pa,useId:pa,unstable_isNewReconciler:!1},Za={readContext:Io,useCallback:function(e,t){return ya().memoizedState=[e,void 0===t?null:t],e},useContext:Io,useEffect:Fa,useImperativeHandle:function(e,t,r){return r=null!=r?r.concat([e]):null,Da(4194308,4,Ua.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Da(4194308,4,e,t)},useInsertionEffect:function(e,t){return Da(4,2,e,t)},useMemo:function(e,t){var r=ya();return t=void 0===t?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=ya();return t=void 0!==r?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=Wa.bind(null,sa,e),[n.memoizedState,e]},useRef:function(e){return e={current:e},ya().memoizedState=e},useState:Ta,useDebugValue:Ba,useDeferredValue:function(e){return ya().memoizedState=e},useTransition:function(){var e=Ta(!1),t=e[0];return e=qa.bind(null,e[1]),ya().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=sa,i=ya();if(io){if(void 0===r)throw Error(o(407));r=r()}else{if(r=t(),null===Al)throw Error(o(349));30&aa||xa(n,t,r)}i.memoizedState=r;var a={value:r,getSnapshot:t};return i.queue=a,Fa(_a.bind(null,n,a,e),[e]),n.flags|=2048,Ia(9,Pa.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=ya(),t=Al.identifierPrefix;if(io){var r=Yi;t=":"+t+"R"+(r=(Qi&~(1<<32-at(Qi)-1)).toString(32)+r),0<(r=ha++)&&(t+="H"+r.toString(32)),t+=":"}else t=":"+t+"r"+(r=fa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},es={readContext:Io,useCallback:za,useContext:Io,useEffect:La,useImperativeHandle:Ha,useInsertionEffect:ja,useLayoutEffect:Na,useMemo:Va,useReducer:Ea,useRef:Ma,useState:function(){return Ea(wa)},useDebugValue:Ba,useDeferredValue:function(e){return $a(va(),la.memoizedState,e)},useTransition:function(){return[Ea(wa)[0],va().memoizedState]},useMutableSource:Ca,useSyncExternalStore:ka,useId:Ga,unstable_isNewReconciler:!1},ts={readContext:Io,useCallback:za,useContext:Io,useEffect:La,useImperativeHandle:Ha,useInsertionEffect:ja,useLayoutEffect:Na,useMemo:Va,useReducer:Sa,useRef:Ma,useState:function(){return Sa(wa)},useDebugValue:Ba,useDeferredValue:function(e){var t=va();return null===la?t.memoizedState=e:$a(t,la.memoizedState,e)},useTransition:function(){return[Sa(wa)[0],va().memoizedState]},useMutableSource:Ca,useSyncExternalStore:ka,useId:Ga,unstable_isNewReconciler:!1};function rs(e,t){if(e&&e.defaultProps){for(var r in t=j({},t),e=e.defaultProps)void 0===t[r]&&(t[r]=e[r]);return t}return t}function ns(e,t,r,n){r=null==(r=r(n,t=e.memoizedState))?t:j({},t,r),e.memoizedState=r,0===e.lanes&&(e.updateQueue.baseState=r)}var is={isMounted:function(e){return!!(e=e._reactInternals)&&ze(e)===e},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=ec(),i=tc(e),o=Uo(n,i);o.payload=t,null!=r&&(o.callback=r),null!==(t=Ho(e,o,i))&&(rc(t,e,i,n),Bo(t,e,i))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=ec(),i=tc(e),o=Uo(n,i);o.tag=1,o.payload=t,null!=r&&(o.callback=r),null!==(t=Ho(e,o,i))&&(rc(t,e,i,n),Bo(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=ec(),n=tc(e),i=Uo(r,n);i.tag=2,null!=t&&(i.callback=t),null!==(t=Ho(e,i,n))&&(rc(t,e,n,r),Bo(t,e,n))}};function os(e,t,r,n,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(n,o,a):!(t.prototype&&t.prototype.isPureReactComponent&&ln(r,n)&&ln(i,o))}function as(e,t,r){var n=!1,i=_i,o=t.contextType;return"object"==typeof o&&null!==o?o=Io(o):(i=Mi(t)?Ti:Oi.current,o=(n=null!=(n=t.contextTypes))?Ii(e,i):_i),t=new t(r,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=is,e.stateNode=t,t._reactInternals=e,n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function ss(e,t,r,n){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(r,n),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&is.enqueueReplaceState(t,t.state,null)}function ls(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs={},jo(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=Io(o):(o=Mi(t)?Ti:Oi.current,i.context=Ii(e,o)),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(ns(e,t,o,r),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&is.enqueueReplaceState(i,i.state,null),Vo(e,r,i,n),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4194308)}function cs(e,t){try{var r="",n=t;do{r+=B(n),n=n.return}while(n);var i=r}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i,digest:null}}function us(e,t,r){return{value:e,source:null,stack:null!=r?r:null,digest:null!=t?t:null}}function ds(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var hs="function"==typeof WeakMap?WeakMap:Map;function fs(e,t,r){(r=Uo(-1,r)).tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){$l||($l=!0,ql=n),ds(0,t)},r}function ps(e,t,r){(r=Uo(-1,r)).tag=3;var n=e.type.getDerivedStateFromError;if("function"==typeof n){var i=t.value;r.payload=function(){return n(i)},r.callback=function(){ds(0,t)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(r.callback=function(){ds(0,t),"function"!=typeof n&&(null===Gl?Gl=new Set([this]):Gl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),r}function ms(e,t,r){var n=e.pingCache;if(null===n){n=e.pingCache=new hs;var i=new Set;n.set(t,i)}else void 0===(i=n.get(t))&&(i=new Set,n.set(t,i));i.has(r)||(i.add(r),e=xc.bind(null,e,t,r),t.then(e,e))}function bs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function gs(e,t,r,n,i){return 1&e.mode?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,1===r.tag&&(null===r.alternate?r.tag=17:((t=Uo(-1,1)).tag=2,Ho(r,t,1))),r.lanes|=1),e)}var ys=w.ReactCurrentOwner,vs=!1;function ws(e,t,r,n){t.child=null===e?So(t,null,r,n):Eo(t,e.child,r,n)}function Es(e,t,r,n,i){r=r.render;var o=t.ref;return To(t,i),n=ba(e,t,r,n,o,i),r=ga(),null===e||vs?(io&&r&&eo(t),t.flags|=1,ws(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,$s(e,t,i))}function Ss(e,t,r,n,i){if(null===e){var o=r.type;return"function"!=typeof o||Mc(o)||void 0!==o.defaultProps||null!==r.compare||void 0!==r.defaultProps?((e=Rc(r.type,null,n,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Cs(e,t,o,n,i))}if(o=e.child,!(e.lanes&i)){var a=o.memoizedProps;if((r=null!==(r=r.compare)?r:ln)(a,n)&&e.ref===t.ref)return $s(e,t,i)}return t.flags|=1,(e=Dc(o,n)).ref=t.ref,e.return=t,t.child=e}function Cs(e,t,r,n,i){if(null!==e){var o=e.memoizedProps;if(ln(o,n)&&e.ref===t.ref){if(vs=!1,t.pendingProps=n=o,!(e.lanes&i))return t.lanes=e.lanes,$s(e,t,i);131072&e.flags&&(vs=!0)}}return Ps(e,t,r,n,i)}function ks(e,t,r){var n=t.pendingProps,i=n.children,o=null!==e?e.memoizedState:null;if("hidden"===n.mode)if(1&t.mode){if(!(1073741824&r))return e=null!==o?o.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Pi(Dl,Ml),Ml|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=null!==o?o.baseLanes:r,Pi(Dl,Ml),Ml|=n}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Pi(Dl,Ml),Ml|=r;else null!==o?(n=o.baseLanes|r,t.memoizedState=null):n=r,Pi(Dl,Ml),Ml|=n;return ws(e,t,i,r),t.child}function xs(e,t){var r=t.ref;(null===e&&null!==r||null!==e&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function Ps(e,t,r,n,i){var o=Mi(r)?Ti:Oi.current;return o=Ii(t,o),To(t,i),r=ba(e,t,r,n,o,i),n=ga(),null===e||vs?(io&&n&&eo(t),t.flags|=1,ws(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,$s(e,t,i))}function _s(e,t,r,n,i){if(Mi(r)){var o=!0;Li(t)}else o=!1;if(To(t,i),null===t.stateNode)Vs(e,t),as(t,r,n),ls(t,r,n,i),n=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=r.contextType;c="object"==typeof c&&null!==c?Io(c):Ii(t,c=Mi(r)?Ti:Oi.current);var u=r.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==n||l!==c)&&ss(t,a,n,c),Lo=!1;var h=t.memoizedState;a.state=h,Vo(t,n,a,i),l=t.memoizedState,s!==n||h!==l||Ai.current||Lo?("function"==typeof u&&(ns(t,r,u,n),l=t.memoizedState),(s=Lo||os(t,r,s,n,h,l,c))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=l),a.props=n,a.state=l,a.context=c,n=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),n=!1)}else{a=t.stateNode,No(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:rs(t.type,s),a.props=c,d=t.pendingProps,h=a.context,l="object"==typeof(l=r.contextType)&&null!==l?Io(l):Ii(t,l=Mi(r)?Ti:Oi.current);var f=r.getDerivedStateFromProps;(u="function"==typeof f||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||h!==l)&&ss(t,a,n,l),Lo=!1,h=t.memoizedState,a.state=h,Vo(t,n,a,i);var p=t.memoizedState;s!==d||h!==p||Ai.current||Lo?("function"==typeof f&&(ns(t,r,f,n),p=t.memoizedState),(c=Lo||os(t,r,c,n,h,p,l)||!1)?(u||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(n,p,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(n,p,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=p),a.props=n,a.state=p,a.context=l,n=c):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),n=!1)}return Os(e,t,r,n,o,i)}function Os(e,t,r,n,i,o){xs(e,t);var a=!!(128&t.flags);if(!n&&!a)return i&&ji(t,r,!1),$s(e,t,o);n=t.stateNode,ys.current=t;var s=a&&"function"!=typeof r.getDerivedStateFromError?null:n.render();return t.flags|=1,null!==e&&a?(t.child=Eo(t,e.child,null,o),t.child=Eo(t,null,s,o)):ws(e,t,s,o),t.memoizedState=n.state,i&&ji(t,r,!0),t.child}function As(e){var t=e.stateNode;t.pendingContext?Ri(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ri(0,t.context,!1),Qo(e,t.containerInfo)}function Ts(e,t,r,n,i){return po(),mo(i),t.flags|=256,ws(e,t,r,n),t.child}var Is,Ms,Ds,Rs,Fs={dehydrated:null,treeContext:null,retryLane:0};function Ls(e){return{baseLanes:e,cachePool:null,transitions:null}}function js(e,t,r){var n,i=t.pendingProps,a=ea.current,s=!1,l=!!(128&t.flags);if((n=l)||(n=(null===e||null!==e.memoizedState)&&!!(2&a)),n?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Pi(ea,1&a),null===e)return co(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=i.children,e=i.fallback,s?(i=t.mode,s=t.child,l={mode:"hidden",children:l},1&i||null===s?s=Lc(l,i,0,null):(s.childLanes=0,s.pendingProps=l),e=Fc(e,i,r,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ls(r),t.memoizedState=Fs,e):Ns(t,l));if(null!==(a=e.memoizedState)&&null!==(n=a.dehydrated))return function(e,t,r,n,i,a,s){if(r)return 256&t.flags?(t.flags&=-257,Us(e,t,s,n=us(Error(o(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=n.fallback,i=t.mode,n=Lc({mode:"visible",children:n.children},i,0,null),(a=Fc(a,i,s,null)).flags|=2,n.return=t,a.return=t,n.sibling=a,t.child=n,1&t.mode&&Eo(t,e.child,null,s),t.child.memoizedState=Ls(s),t.memoizedState=Fs,a);if(!(1&t.mode))return Us(e,t,s,null);if("$!"===i.data){if(n=i.nextSibling&&i.nextSibling.dataset)var l=n.dgst;return n=l,Us(e,t,s,n=us(a=Error(o(419)),n,void 0))}if(l=!!(s&e.childLanes),vs||l){if(null!==(n=Al)){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=i&(n.suspendedLanes|s)?0:i)&&i!==a.retryLane&&(a.retryLane=i,Fo(e,i),rc(n,e,i,-1))}return mc(),Us(e,t,s,n=us(Error(o(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=_c.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,no=ci(i.nextSibling),ro=t,io=!0,oo=null,null!==e&&(Wi[Xi++]=Qi,Wi[Xi++]=Yi,Wi[Xi++]=Ki,Qi=e.id,Yi=e.overflow,Ki=t),(t=Ns(t,n.children)).flags|=4096,t)}(e,t,l,i,n,a,r);if(s){s=i.fallback,l=t.mode,n=(a=e.child).sibling;var c={mode:"hidden",children:i.children};return 1&l||t.child===a?(i=Dc(a,c)).subtreeFlags=14680064&a.subtreeFlags:((i=t.child).childLanes=0,i.pendingProps=c,t.deletions=null),null!==n?s=Dc(n,s):(s=Fc(s,l,r,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,l=null===(l=e.child.memoizedState)?Ls(r):{baseLanes:l.baseLanes|r,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~r,t.memoizedState=Fs,i}return e=(s=e.child).sibling,i=Dc(s,{mode:"visible",children:i.children}),!(1&t.mode)&&(i.lanes=r),i.return=t,i.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=i,t.memoizedState=null,i}function Ns(e,t){return(t=Lc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Us(e,t,r,n){return null!==n&&mo(n),Eo(t,e.child,null,r),(e=Ns(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Hs(e,t,r){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),Ao(e.return,t,r)}function Bs(e,t,r,n,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=n,o.tail=r,o.tailMode=i)}function zs(e,t,r){var n=t.pendingProps,i=n.revealOrder,o=n.tail;if(ws(e,t,n.children,r),2&(n=ea.current))n=1&n|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Hs(e,r,t);else if(19===e.tag)Hs(e,r,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(Pi(ea,n),1&t.mode)switch(i){case"forwards":for(r=t.child,i=null;null!==r;)null!==(e=r.alternate)&&null===ta(e)&&(i=r),r=r.sibling;null===(r=i)?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),Bs(t,!1,i,r,o);break;case"backwards":for(r=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===ta(e)){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}Bs(t,!0,r,null,o);break;case"together":Bs(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Vs(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function $s(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),Ll|=t.lanes,!(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(r=Dc(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Dc(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function qs(e,t){if(!io)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;null!==r;)null!==r.alternate&&(n=r),r=r.sibling;null===n?t||null===e.tail?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Gs(e){var t=null!==e.alternate&&e.alternate.child===e.child,r=0,n=0;if(t)for(var i=e.child;null!==i;)r|=i.lanes|i.childLanes,n|=14680064&i.subtreeFlags,n|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function Ws(e,t,r){var n=t.pendingProps;switch(to(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Gs(t),null;case 1:case 17:return Mi(t.type)&&Di(),Gs(t),null;case 3:return n=t.stateNode,Yo(),xi(Ai),xi(Oi),na(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(ho(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==oo&&(ac(oo),oo=null))),Ms(e,t),Gs(t),null;case 5:Zo(t);var i=Ko(Xo.current);if(r=t.type,null!==e&&null!=t.stateNode)Ds(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(null===t.stateNode)throw Error(o(166));return Gs(t),null}if(e=Ko(Go.current),ho(t)){n=t.stateNode,r=t.type;var a=t.memoizedProps;switch(n[hi]=t,n[fi]=a,e=!!(1&t.mode),r){case"dialog":Un("cancel",n),Un("close",n);break;case"iframe":case"object":case"embed":Un("load",n);break;case"video":case"audio":for(i=0;i<Fn.length;i++)Un(Fn[i],n);break;case"source":Un("error",n);break;case"img":case"image":case"link":Un("error",n),Un("load",n);break;case"details":Un("toggle",n);break;case"input":Q(n,a),Un("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!a.multiple},Un("invalid",n);break;case"textarea":ie(n,a),Un("invalid",n)}for(var l in ye(r,a),i=null,a)if(a.hasOwnProperty(l)){var c=a[l];"children"===l?"string"==typeof c?n.textContent!==c&&(!0!==a.suppressHydrationWarning&&Jn(n.textContent,c,e),i=["children",c]):"number"==typeof c&&n.textContent!==""+c&&(!0!==a.suppressHydrationWarning&&Jn(n.textContent,c,e),i=["children",""+c]):s.hasOwnProperty(l)&&null!=c&&"onScroll"===l&&Un("scroll",n)}switch(r){case"input":G(n),Z(n,a,!0);break;case"textarea":G(n),ae(n);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(n.onclick=Zn)}n=i,t.updateQueue=n,null!==n&&(t.flags|=4)}else{l=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(r)),"http://www.w3.org/1999/xhtml"===e?"script"===r?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof n.is?e=l.createElement(r,{is:n.is}):(e=l.createElement(r),"select"===r&&(l=e,n.multiple?l.multiple=!0:n.size&&(l.size=n.size))):e=l.createElementNS(e,r),e[hi]=t,e[fi]=n,Is(e,t,!1,!1),t.stateNode=e;e:{switch(l=ve(r,n),r){case"dialog":Un("cancel",e),Un("close",e),i=n;break;case"iframe":case"object":case"embed":Un("load",e),i=n;break;case"video":case"audio":for(i=0;i<Fn.length;i++)Un(Fn[i],e);i=n;break;case"source":Un("error",e),i=n;break;case"img":case"image":case"link":Un("error",e),Un("load",e),i=n;break;case"details":Un("toggle",e),i=n;break;case"input":Q(e,n),i=K(e,n),Un("invalid",e);break;case"option":default:i=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=j({},n,{value:void 0}),Un("invalid",e);break;case"textarea":ie(e,n),i=ne(e,n),Un("invalid",e)}for(a in ye(r,i),c=i)if(c.hasOwnProperty(a)){var u=c[a];"style"===a?be(e,u):"dangerouslySetInnerHTML"===a?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===a?"string"==typeof u?("textarea"!==r||""!==u)&&he(e,u):"number"==typeof u&&he(e,""+u):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=u&&"onScroll"===a&&Un("scroll",e):null!=u&&v(e,a,u,l))}switch(r){case"input":G(e),Z(e,n,!1);break;case"textarea":G(e),ae(e);break;case"option":null!=n.value&&e.setAttribute("value",""+$(n.value));break;case"select":e.multiple=!!n.multiple,null!=(a=n.value)?re(e,!!n.multiple,a,!1):null!=n.defaultValue&&re(e,!!n.multiple,n.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=Zn)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Gs(t),null;case 6:if(e&&null!=t.stateNode)Rs(e,t,e.memoizedProps,n);else{if("string"!=typeof n&&null===t.stateNode)throw Error(o(166));if(r=Ko(Xo.current),Ko(Go.current),ho(t)){if(n=t.stateNode,r=t.memoizedProps,n[hi]=t,(a=n.nodeValue!==r)&&null!==(e=ro))switch(e.tag){case 3:Jn(n.nodeValue,r,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Jn(n.nodeValue,r,!!(1&e.mode))}a&&(t.flags|=4)}else(n=(9===r.nodeType?r:r.ownerDocument).createTextNode(n))[hi]=t,t.stateNode=n}return Gs(t),null;case 13:if(xi(ea),n=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(io&&null!==no&&1&t.mode&&!(128&t.flags))fo(),po(),t.flags|=98560,a=!1;else if(a=ho(t),null!==n&&null!==n.dehydrated){if(null===e){if(!a)throw Error(o(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(o(317));a[hi]=t}else po(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Gs(t),a=!1}else null!==oo&&(ac(oo),oo=null),a=!0;if(!a)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=r,t):((n=null!==n)!=(null!==e&&null!==e.memoizedState)&&n&&(t.child.flags|=8192,1&t.mode&&(null===e||1&ea.current?0===Rl&&(Rl=3):mc())),null!==t.updateQueue&&(t.flags|=4),Gs(t),null);case 4:return Yo(),Ms(e,t),null===e&&zn(t.stateNode.containerInfo),Gs(t),null;case 10:return Oo(t.type._context),Gs(t),null;case 19:if(xi(ea),null===(a=t.memoizedState))return Gs(t),null;if(n=!!(128&t.flags),null===(l=a.rendering))if(n)qs(a,!1);else{if(0!==Rl||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(l=ta(e))){for(t.flags|=128,qs(a,!1),null!==(n=l.updateQueue)&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;null!==r;)e=n,(a=r).flags&=14680066,null===(l=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,a.type=l.type,e=l.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Pi(ea,1&ea.current|2),t.child}e=e.sibling}null!==a.tail&&Ye()>zl&&(t.flags|=128,n=!0,qs(a,!1),t.lanes=4194304)}else{if(!n)if(null!==(e=ta(l))){if(t.flags|=128,n=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),qs(a,!0),null===a.tail&&"hidden"===a.tailMode&&!l.alternate&&!io)return Gs(t),null}else 2*Ye()-a.renderingStartTime>zl&&1073741824!==r&&(t.flags|=128,n=!0,qs(a,!1),t.lanes=4194304);a.isBackwards?(l.sibling=t.child,t.child=l):(null!==(r=a.last)?r.sibling=l:t.child=l,a.last=l)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Ye(),t.sibling=null,r=ea.current,Pi(ea,n?1&r|2:1&r),t):(Gs(t),null);case 22:case 23:return dc(),n=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==n&&(t.flags|=8192),n&&1&t.mode?!!(1073741824&Ml)&&(Gs(t),6&t.subtreeFlags&&(t.flags|=8192)):Gs(t),null;case 24:case 25:return null}throw Error(o(156,t.tag))}function Xs(e,t){switch(to(t),t.tag){case 1:return Mi(t.type)&&Di(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Yo(),xi(Ai),xi(Oi),na(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Zo(t),null;case 13:if(xi(ea),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));po()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return xi(ea),null;case 4:return Yo(),null;case 10:return Oo(t.type._context),null;case 22:case 23:return dc(),null;default:return null}}Is=function(e,t){for(var r=t.child;null!==r;){if(5===r.tag||6===r.tag)e.appendChild(r.stateNode);else if(4!==r.tag&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===t)break;for(;null===r.sibling;){if(null===r.return||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},Ms=function(){},Ds=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,Ko(Go.current);var o,a=null;switch(r){case"input":i=K(e,i),n=K(e,n),a=[];break;case"select":i=j({},i,{value:void 0}),n=j({},n,{value:void 0}),a=[];break;case"textarea":i=ne(e,i),n=ne(e,n),a=[];break;default:"function"!=typeof i.onClick&&"function"==typeof n.onClick&&(e.onclick=Zn)}for(u in ye(r,n),r=null,i)if(!n.hasOwnProperty(u)&&i.hasOwnProperty(u)&&null!=i[u])if("style"===u){var l=i[u];for(o in l)l.hasOwnProperty(o)&&(r||(r={}),r[o]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(s.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in n){var c=n[u];if(l=null!=i?i[u]:void 0,n.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(o in l)!l.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(r||(r={}),r[o]="");for(o in c)c.hasOwnProperty(o)&&l[o]!==c[o]&&(r||(r={}),r[o]=c[o])}else r||(a||(a=[]),a.push(u,r)),r=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(a=a||[]).push(u,c)):"children"===u?"string"!=typeof c&&"number"!=typeof c||(a=a||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(s.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&Un("scroll",e),a||l===c||(a=[])):(a=a||[]).push(u,c))}r&&(a=a||[]).push("style",r);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},Rs=function(e,t,r,n){r!==n&&(t.flags|=4)};var Ks=!1,Qs=!1,Ys="function"==typeof WeakSet?WeakSet:Set,Js=null;function Zs(e,t){var r=e.ref;if(null!==r)if("function"==typeof r)try{r(null)}catch(r){kc(e,t,r)}else r.current=null}function el(e,t,r){try{r()}catch(r){kc(e,t,r)}}var tl=!1;function rl(e,t,r){var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var i=n=n.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&el(t,r,o)}i=i.next}while(i!==n)}}function nl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function il(e){var t=e.ref;if(null!==t){var r=e.stateNode;e.tag,e=r,"function"==typeof t?t(e):t.current=e}}function ol(e){var t=e.alternate;null!==t&&(e.alternate=null,ol(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[hi],delete t[fi],delete t[mi],delete t[bi],delete t[gi]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function al(e){return 5===e.tag||3===e.tag||4===e.tag}function sl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||al(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ll(e,t,r){var n=e.tag;if(5===n||6===n)e=e.stateNode,t?8===r.nodeType?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(8===r.nodeType?(t=r.parentNode).insertBefore(e,r):(t=r).appendChild(e),null!=(r=r._reactRootContainer)||null!==t.onclick||(t.onclick=Zn));else if(4!==n&&null!==(e=e.child))for(ll(e,t,r),e=e.sibling;null!==e;)ll(e,t,r),e=e.sibling}function cl(e,t,r){var n=e.tag;if(5===n||6===n)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(4!==n&&null!==(e=e.child))for(cl(e,t,r),e=e.sibling;null!==e;)cl(e,t,r),e=e.sibling}var ul=null,dl=!1;function hl(e,t,r){for(r=r.child;null!==r;)fl(e,t,r),r=r.sibling}function fl(e,t,r){if(ot&&"function"==typeof ot.onCommitFiberUnmount)try{ot.onCommitFiberUnmount(it,r)}catch(e){}switch(r.tag){case 5:Qs||Zs(r,t);case 6:var n=ul,i=dl;ul=null,hl(e,t,r),dl=i,null!==(ul=n)&&(dl?(e=ul,r=r.stateNode,8===e.nodeType?e.parentNode.removeChild(r):e.removeChild(r)):ul.removeChild(r.stateNode));break;case 18:null!==ul&&(dl?(e=ul,r=r.stateNode,8===e.nodeType?li(e.parentNode,r):1===e.nodeType&&li(e,r),zt(e)):li(ul,r.stateNode));break;case 4:n=ul,i=dl,ul=r.stateNode.containerInfo,dl=!0,hl(e,t,r),ul=n,dl=i;break;case 0:case 11:case 14:case 15:if(!Qs&&null!==(n=r.updateQueue)&&null!==(n=n.lastEffect)){i=n=n.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(2&o||4&o)&&el(r,t,a),i=i.next}while(i!==n)}hl(e,t,r);break;case 1:if(!Qs&&(Zs(r,t),"function"==typeof(n=r.stateNode).componentWillUnmount))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(e){kc(r,t,e)}hl(e,t,r);break;case 21:hl(e,t,r);break;case 22:1&r.mode?(Qs=(n=Qs)||null!==r.memoizedState,hl(e,t,r),Qs=n):hl(e,t,r);break;default:hl(e,t,r)}}function pl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var r=e.stateNode;null===r&&(r=e.stateNode=new Ys),t.forEach((function(t){var n=Oc.bind(null,e,t);r.has(t)||(r.add(t),t.then(n,n))}))}}function ml(e,t){var r=t.deletions;if(null!==r)for(var n=0;n<r.length;n++){var i=r[n];try{var a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:ul=l.stateNode,dl=!1;break e;case 3:case 4:ul=l.stateNode.containerInfo,dl=!0;break e}l=l.return}if(null===ul)throw Error(o(160));fl(a,s,i),ul=null,dl=!1;var c=i.alternate;null!==c&&(c.return=null),i.return=null}catch(e){kc(i,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)bl(t,e),t=t.sibling}function bl(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ml(t,e),gl(e),4&n){try{rl(3,e,e.return),nl(3,e)}catch(t){kc(e,e.return,t)}try{rl(5,e,e.return)}catch(t){kc(e,e.return,t)}}break;case 1:ml(t,e),gl(e),512&n&&null!==r&&Zs(r,r.return);break;case 5:if(ml(t,e),gl(e),512&n&&null!==r&&Zs(r,r.return),32&e.flags){var i=e.stateNode;try{he(i,"")}catch(t){kc(e,e.return,t)}}if(4&n&&null!=(i=e.stateNode)){var a=e.memoizedProps,s=null!==r?r.memoizedProps:a,l=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===l&&"radio"===a.type&&null!=a.name&&Y(i,a),ve(l,s);var u=ve(l,a);for(s=0;s<c.length;s+=2){var d=c[s],h=c[s+1];"style"===d?be(i,h):"dangerouslySetInnerHTML"===d?de(i,h):"children"===d?he(i,h):v(i,d,h,u)}switch(l){case"input":J(i,a);break;case"textarea":oe(i,a);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var p=a.value;null!=p?re(i,!!a.multiple,p,!1):f!==!!a.multiple&&(null!=a.defaultValue?re(i,!!a.multiple,a.defaultValue,!0):re(i,!!a.multiple,a.multiple?[]:"",!1))}i[fi]=a}catch(t){kc(e,e.return,t)}}break;case 6:if(ml(t,e),gl(e),4&n){if(null===e.stateNode)throw Error(o(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(t){kc(e,e.return,t)}}break;case 3:if(ml(t,e),gl(e),4&n&&null!==r&&r.memoizedState.isDehydrated)try{zt(t.containerInfo)}catch(t){kc(e,e.return,t)}break;case 4:default:ml(t,e),gl(e);break;case 13:ml(t,e),gl(e),8192&(i=e.child).flags&&(a=null!==i.memoizedState,i.stateNode.isHidden=a,!a||null!==i.alternate&&null!==i.alternate.memoizedState||(Bl=Ye())),4&n&&pl(e);break;case 22:if(d=null!==r&&null!==r.memoizedState,1&e.mode?(Qs=(u=Qs)||d,ml(t,e),Qs=u):ml(t,e),gl(e),8192&n){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&1&e.mode)for(Js=e,d=e.child;null!==d;){for(h=Js=d;null!==Js;){switch(p=(f=Js).child,f.tag){case 0:case 11:case 14:case 15:rl(4,f,f.return);break;case 1:Zs(f,f.return);var m=f.stateNode;if("function"==typeof m.componentWillUnmount){n=f,r=f.return;try{t=n,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){kc(n,r,e)}}break;case 5:Zs(f,f.return);break;case 22:if(null!==f.memoizedState){El(h);continue}}null!==p?(p.return=f,Js=p):El(h)}d=d.sibling}e:for(d=null,h=e;;){if(5===h.tag){if(null===d){d=h;try{i=h.stateNode,u?"function"==typeof(a=i.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=h.stateNode,s=null!=(c=h.memoizedProps.style)&&c.hasOwnProperty("display")?c.display:null,l.style.display=me("display",s))}catch(t){kc(e,e.return,t)}}}else if(6===h.tag){if(null===d)try{h.stateNode.nodeValue=u?"":h.memoizedProps}catch(t){kc(e,e.return,t)}}else if((22!==h.tag&&23!==h.tag||null===h.memoizedState||h===e)&&null!==h.child){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;null===h.sibling;){if(null===h.return||h.return===e)break e;d===h&&(d=null),h=h.return}d===h&&(d=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:ml(t,e),gl(e),4&n&&pl(e);case 21:}}function gl(e){var t=e.flags;if(2&t){try{e:{for(var r=e.return;null!==r;){if(al(r)){var n=r;break e}r=r.return}throw Error(o(160))}switch(n.tag){case 5:var i=n.stateNode;32&n.flags&&(he(i,""),n.flags&=-33),cl(e,sl(e),i);break;case 3:case 4:var a=n.stateNode.containerInfo;ll(e,sl(e),a);break;default:throw Error(o(161))}}catch(t){kc(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function yl(e,t,r){Js=e,vl(e,t,r)}function vl(e,t,r){for(var n=!!(1&e.mode);null!==Js;){var i=Js,o=i.child;if(22===i.tag&&n){var a=null!==i.memoizedState||Ks;if(!a){var s=i.alternate,l=null!==s&&null!==s.memoizedState||Qs;s=Ks;var c=Qs;if(Ks=a,(Qs=l)&&!c)for(Js=i;null!==Js;)l=(a=Js).child,22===a.tag&&null!==a.memoizedState?Sl(i):null!==l?(l.return=a,Js=l):Sl(i);for(;null!==o;)Js=o,vl(o,t,r),o=o.sibling;Js=i,Ks=s,Qs=c}wl(e)}else 8772&i.subtreeFlags&&null!==o?(o.return=i,Js=o):wl(e)}}function wl(e){for(;null!==Js;){var t=Js;if(8772&t.flags){var r=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Qs||nl(5,t);break;case 1:var n=t.stateNode;if(4&t.flags&&!Qs)if(null===r)n.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:rs(t.type,r.memoizedProps);n.componentDidUpdate(i,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&$o(t,a,n);break;case 3:var s=t.updateQueue;if(null!==s){if(r=null,null!==t.child)switch(t.child.tag){case 5:case 1:r=t.child.stateNode}$o(t,s,r)}break;case 5:var l=t.stateNode;if(null===r&&4&t.flags){r=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&r.focus();break;case"img":c.src&&(r.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var h=d.dehydrated;null!==h&&zt(h)}}}break;default:throw Error(o(163))}Qs||512&t.flags&&il(t)}catch(e){kc(t,t.return,e)}}if(t===e){Js=null;break}if(null!==(r=t.sibling)){r.return=t.return,Js=r;break}Js=t.return}}function El(e){for(;null!==Js;){var t=Js;if(t===e){Js=null;break}var r=t.sibling;if(null!==r){r.return=t.return,Js=r;break}Js=t.return}}function Sl(e){for(;null!==Js;){var t=Js;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{nl(4,t)}catch(e){kc(t,r,e)}break;case 1:var n=t.stateNode;if("function"==typeof n.componentDidMount){var i=t.return;try{n.componentDidMount()}catch(e){kc(t,i,e)}}var o=t.return;try{il(t)}catch(e){kc(t,o,e)}break;case 5:var a=t.return;try{il(t)}catch(e){kc(t,a,e)}}}catch(e){kc(t,t.return,e)}if(t===e){Js=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Js=s;break}Js=t.return}}var Cl,kl=Math.ceil,xl=w.ReactCurrentDispatcher,Pl=w.ReactCurrentOwner,_l=w.ReactCurrentBatchConfig,Ol=0,Al=null,Tl=null,Il=0,Ml=0,Dl=ki(0),Rl=0,Fl=null,Ll=0,jl=0,Nl=0,Ul=null,Hl=null,Bl=0,zl=1/0,Vl=null,$l=!1,ql=null,Gl=null,Wl=!1,Xl=null,Kl=0,Ql=0,Yl=null,Jl=-1,Zl=0;function ec(){return 6&Ol?Ye():-1!==Jl?Jl:Jl=Ye()}function tc(e){return 1&e.mode?2&Ol&&0!==Il?Il&-Il:null!==bo.transition?(0===Zl&&(Zl=mt()),Zl):0!==(e=vt)?e:e=void 0===(e=window.event)?16:Qt(e.type):1}function rc(e,t,r,n){if(50<Ql)throw Ql=0,Yl=null,Error(o(185));gt(e,r,n),2&Ol&&e===Al||(e===Al&&(!(2&Ol)&&(jl|=r),4===Rl&&sc(e,Il)),nc(e,n),1===r&&0===Ol&&!(1&t.mode)&&(zl=Ye()+500,Ui&&zi()))}function nc(e,t){var r=e.callbackNode;!function(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-at(o),s=1<<a,l=i[a];-1===l?s&r&&!(s&n)||(i[a]=ft(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var n=ht(e,e===Al?Il:0);if(0===n)null!==r&&Xe(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(null!=r&&Xe(r),1===t)0===e.tag?function(e){Ui=!0,Bi(e)}(lc.bind(null,e)):Bi(lc.bind(null,e)),ai((function(){!(6&Ol)&&zi()})),r=null;else{switch(wt(n)){case 1:r=Ze;break;case 4:r=et;break;case 16:default:r=tt;break;case 536870912:r=nt}r=Ac(r,ic.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function ic(e,t){if(Jl=-1,Zl=0,6&Ol)throw Error(o(327));var r=e.callbackNode;if(Sc()&&e.callbackNode!==r)return null;var n=ht(e,e===Al?Il:0);if(0===n)return null;if(30&n||n&e.expiredLanes||t)t=bc(e,n);else{t=n;var i=Ol;Ol|=2;var a=pc();for(Al===e&&Il===t||(Vl=null,zl=Ye()+500,hc(e,t));;)try{yc();break}catch(t){fc(e,t)}_o(),xl.current=a,Ol=i,null!==Tl?t=0:(Al=null,Il=0,t=Rl)}if(0!==t){if(2===t&&0!==(i=pt(e))&&(n=i,t=oc(e,i)),1===t)throw r=Fl,hc(e,0),sc(e,n),nc(e,Ye()),r;if(6===t)sc(e,n);else{if(i=e.current.alternate,!(30&n||function(e){for(var t=e;;){if(16384&t.flags){var r=t.updateQueue;if(null!==r&&null!==(r=r.stores))for(var n=0;n<r.length;n++){var i=r[n],o=i.getSnapshot;i=i.value;try{if(!sn(o(),i))return!1}catch(e){return!1}}}if(r=t.child,16384&t.subtreeFlags&&null!==r)r.return=t,t=r;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)||(t=bc(e,n),2===t&&(a=pt(e),0!==a&&(n=a,t=oc(e,a))),1!==t)))throw r=Fl,hc(e,0),sc(e,n),nc(e,Ye()),r;switch(e.finishedWork=i,e.finishedLanes=n,t){case 0:case 1:throw Error(o(345));case 2:case 5:Ec(e,Hl,Vl);break;case 3:if(sc(e,n),(130023424&n)===n&&10<(t=Bl+500-Ye())){if(0!==ht(e,0))break;if(((i=e.suspendedLanes)&n)!==n){ec(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ni(Ec.bind(null,e,Hl,Vl),t);break}Ec(e,Hl,Vl);break;case 4:if(sc(e,n),(4194240&n)===n)break;for(t=e.eventTimes,i=-1;0<n;){var s=31-at(n);a=1<<s,(s=t[s])>i&&(i=s),n&=~a}if(n=i,10<(n=(120>(n=Ye()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*kl(n/1960))-n)){e.timeoutHandle=ni(Ec.bind(null,e,Hl,Vl),n);break}Ec(e,Hl,Vl);break;default:throw Error(o(329))}}}return nc(e,Ye()),e.callbackNode===r?ic.bind(null,e):null}function oc(e,t){var r=Ul;return e.current.memoizedState.isDehydrated&&(hc(e,t).flags|=256),2!==(e=bc(e,t))&&(t=Hl,Hl=r,null!==t&&ac(t)),e}function ac(e){null===Hl?Hl=e:Hl.push.apply(Hl,e)}function sc(e,t){for(t&=~Nl,t&=~jl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-at(t),n=1<<r;e[r]=-1,t&=~n}}function lc(e){if(6&Ol)throw Error(o(327));Sc();var t=ht(e,0);if(!(1&t))return nc(e,Ye()),null;var r=bc(e,t);if(0!==e.tag&&2===r){var n=pt(e);0!==n&&(t=n,r=oc(e,n))}if(1===r)throw r=Fl,hc(e,0),sc(e,t),nc(e,Ye()),r;if(6===r)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ec(e,Hl,Vl),nc(e,Ye()),null}function cc(e,t){var r=Ol;Ol|=1;try{return e(t)}finally{0===(Ol=r)&&(zl=Ye()+500,Ui&&zi())}}function uc(e){null!==Xl&&0===Xl.tag&&!(6&Ol)&&Sc();var t=Ol;Ol|=1;var r=_l.transition,n=vt;try{if(_l.transition=null,vt=1,e)return e()}finally{vt=n,_l.transition=r,!(6&(Ol=t))&&zi()}}function dc(){Ml=Dl.current,xi(Dl)}function hc(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(-1!==r&&(e.timeoutHandle=-1,ii(r)),null!==Tl)for(r=Tl.return;null!==r;){var n=r;switch(to(n),n.tag){case 1:null!=(n=n.type.childContextTypes)&&Di();break;case 3:Yo(),xi(Ai),xi(Oi),na();break;case 5:Zo(n);break;case 4:Yo();break;case 13:case 19:xi(ea);break;case 10:Oo(n.type._context);break;case 22:case 23:dc()}r=r.return}if(Al=e,Tl=e=Dc(e.current,null),Il=Ml=t,Rl=0,Fl=null,Nl=jl=Ll=0,Hl=Ul=null,null!==Mo){for(t=0;t<Mo.length;t++)if(null!==(n=(r=Mo[t]).interleaved)){r.interleaved=null;var i=n.next,o=r.pending;if(null!==o){var a=o.next;o.next=i,n.next=a}r.pending=n}Mo=null}return e}function fc(e,t){for(;;){var r=Tl;try{if(_o(),ia.current=Ja,ua){for(var n=sa.memoizedState;null!==n;){var i=n.queue;null!==i&&(i.pending=null),n=n.next}ua=!1}if(aa=0,ca=la=sa=null,da=!1,ha=0,Pl.current=null,null===r||null===r.return){Rl=1,Fl=t,Tl=null;break}e:{var a=e,s=r.return,l=r,c=t;if(t=Il,l.flags|=32768,null!==c&&"object"==typeof c&&"function"==typeof c.then){var u=c,d=l,h=d.tag;if(!(1&d.mode||0!==h&&11!==h&&15!==h)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var p=bs(s);if(null!==p){p.flags&=-257,gs(p,s,l,0,t),1&p.mode&&ms(a,u,t),c=u;var m=(t=p).updateQueue;if(null===m){var b=new Set;b.add(c),t.updateQueue=b}else m.add(c);break e}if(!(1&t)){ms(a,u,t),mc();break e}c=Error(o(426))}else if(io&&1&l.mode){var g=bs(s);if(null!==g){!(65536&g.flags)&&(g.flags|=256),gs(g,s,l,0,t),mo(cs(c,l));break e}}a=c=cs(c,l),4!==Rl&&(Rl=2),null===Ul?Ul=[a]:Ul.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,zo(a,fs(0,c,t));break e;case 1:l=c;var y=a.type,v=a.stateNode;if(!(128&a.flags||"function"!=typeof y.getDerivedStateFromError&&(null===v||"function"!=typeof v.componentDidCatch||null!==Gl&&Gl.has(v)))){a.flags|=65536,t&=-t,a.lanes|=t,zo(a,ps(a,l,t));break e}}a=a.return}while(null!==a)}wc(r)}catch(e){t=e,Tl===r&&null!==r&&(Tl=r=r.return);continue}break}}function pc(){var e=xl.current;return xl.current=Ja,null===e?Ja:e}function mc(){0!==Rl&&3!==Rl&&2!==Rl||(Rl=4),null===Al||!(268435455&Ll)&&!(268435455&jl)||sc(Al,Il)}function bc(e,t){var r=Ol;Ol|=2;var n=pc();for(Al===e&&Il===t||(Vl=null,hc(e,t));;)try{gc();break}catch(t){fc(e,t)}if(_o(),Ol=r,xl.current=n,null!==Tl)throw Error(o(261));return Al=null,Il=0,Rl}function gc(){for(;null!==Tl;)vc(Tl)}function yc(){for(;null!==Tl&&!Ke();)vc(Tl)}function vc(e){var t=Cl(e.alternate,e,Ml);e.memoizedProps=e.pendingProps,null===t?wc(e):Tl=t,Pl.current=null}function wc(e){var t=e;do{var r=t.alternate;if(e=t.return,32768&t.flags){if(null!==(r=Xs(r,t)))return r.flags&=32767,void(Tl=r);if(null===e)return Rl=6,void(Tl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(r=Ws(r,t,Ml)))return void(Tl=r);if(null!==(t=t.sibling))return void(Tl=t);Tl=t=e}while(null!==t);0===Rl&&(Rl=5)}function Ec(e,t,r){var n=vt,i=_l.transition;try{_l.transition=null,vt=1,function(e,t,r,n){do{Sc()}while(null!==Xl);if(6&Ol)throw Error(o(327));r=e.finishedWork;var i=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var a=r.lanes|r.childLanes;if(function(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var i=31-at(r),o=1<<i;t[i]=0,n[i]=-1,e[i]=-1,r&=~o}}(e,a),e===Al&&(Tl=Al=null,Il=0),!(2064&r.subtreeFlags)&&!(2064&r.flags)||Wl||(Wl=!0,Ac(tt,(function(){return Sc(),null}))),a=!!(15990&r.flags),15990&r.subtreeFlags||a){a=_l.transition,_l.transition=null;var s=vt;vt=1;var l=Ol;Ol|=4,Pl.current=null,function(e,t){if(ei=$t,fn(e=hn())){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{var n=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(n&&0!==n.rangeCount){r=n.anchorNode;var i=n.anchorOffset,a=n.focusNode;n=n.focusOffset;try{r.nodeType,a.nodeType}catch(e){r=null;break e}var s=0,l=-1,c=-1,u=0,d=0,h=e,f=null;t:for(;;){for(var p;h!==r||0!==i&&3!==h.nodeType||(l=s+i),h!==a||0!==n&&3!==h.nodeType||(c=s+n),3===h.nodeType&&(s+=h.nodeValue.length),null!==(p=h.firstChild);)f=h,h=p;for(;;){if(h===e)break t;if(f===r&&++u===i&&(l=s),f===a&&++d===n&&(c=s),null!==(p=h.nextSibling))break;f=(h=f).parentNode}h=p}r=-1===l||-1===c?null:{start:l,end:c}}else r=null}r=r||{start:0,end:0}}else r=null;for(ti={focusedElem:e,selectionRange:r},$t=!1,Js=t;null!==Js;)if(e=(t=Js).child,1028&t.subtreeFlags&&null!==e)e.return=t,Js=e;else for(;null!==Js;){t=Js;try{var m=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var b=m.memoizedProps,g=m.memoizedState,y=t.stateNode,v=y.getSnapshotBeforeUpdate(t.elementType===t.type?b:rs(t.type,b),g);y.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(o(163))}}catch(e){kc(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Js=e;break}Js=t.return}m=tl,tl=!1}(e,r),bl(r,e),pn(ti),$t=!!ei,ti=ei=null,e.current=r,yl(r,e,i),Qe(),Ol=l,vt=s,_l.transition=a}else e.current=r;if(Wl&&(Wl=!1,Xl=e,Kl=i),0===(a=e.pendingLanes)&&(Gl=null),function(e){if(ot&&"function"==typeof ot.onCommitFiberRoot)try{ot.onCommitFiberRoot(it,e,void 0,!(128&~e.current.flags))}catch(e){}}(r.stateNode),nc(e,Ye()),null!==t)for(n=e.onRecoverableError,r=0;r<t.length;r++)n((i=t[r]).value,{componentStack:i.stack,digest:i.digest});if($l)throw $l=!1,e=ql,ql=null,e;!!(1&Kl)&&0!==e.tag&&Sc(),1&(a=e.pendingLanes)?e===Yl?Ql++:(Ql=0,Yl=e):Ql=0,zi()}(e,t,r,n)}finally{_l.transition=i,vt=n}return null}function Sc(){if(null!==Xl){var e=wt(Kl),t=_l.transition,r=vt;try{if(_l.transition=null,vt=16>e?16:e,null===Xl)var n=!1;else{if(e=Xl,Xl=null,Kl=0,6&Ol)throw Error(o(331));var i=Ol;for(Ol|=4,Js=e.current;null!==Js;){var a=Js,s=a.child;if(16&Js.flags){var l=a.deletions;if(null!==l){for(var c=0;c<l.length;c++){var u=l[c];for(Js=u;null!==Js;){var d=Js;switch(d.tag){case 0:case 11:case 15:rl(8,d,a)}var h=d.child;if(null!==h)h.return=d,Js=h;else for(;null!==Js;){var f=(d=Js).sibling,p=d.return;if(ol(d),d===u){Js=null;break}if(null!==f){f.return=p,Js=f;break}Js=p}}}var m=a.alternate;if(null!==m){var b=m.child;if(null!==b){m.child=null;do{var g=b.sibling;b.sibling=null,b=g}while(null!==b)}}Js=a}}if(2064&a.subtreeFlags&&null!==s)s.return=a,Js=s;else e:for(;null!==Js;){if(2048&(a=Js).flags)switch(a.tag){case 0:case 11:case 15:rl(9,a,a.return)}var y=a.sibling;if(null!==y){y.return=a.return,Js=y;break e}Js=a.return}}var v=e.current;for(Js=v;null!==Js;){var w=(s=Js).child;if(2064&s.subtreeFlags&&null!==w)w.return=s,Js=w;else e:for(s=v;null!==Js;){if(2048&(l=Js).flags)try{switch(l.tag){case 0:case 11:case 15:nl(9,l)}}catch(e){kc(l,l.return,e)}if(l===s){Js=null;break e}var E=l.sibling;if(null!==E){E.return=l.return,Js=E;break e}Js=l.return}}if(Ol=i,zi(),ot&&"function"==typeof ot.onPostCommitFiberRoot)try{ot.onPostCommitFiberRoot(it,e)}catch(e){}n=!0}return n}finally{vt=r,_l.transition=t}}return!1}function Cc(e,t,r){e=Ho(e,t=fs(0,t=cs(r,t),1),1),t=ec(),null!==e&&(gt(e,1,t),nc(e,t))}function kc(e,t,r){if(3===e.tag)Cc(e,e,r);else for(;null!==t;){if(3===t.tag){Cc(t,e,r);break}if(1===t.tag){var n=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof n.componentDidCatch&&(null===Gl||!Gl.has(n))){t=Ho(t,e=ps(t,e=cs(r,e),1),1),e=ec(),null!==t&&(gt(t,1,e),nc(t,e));break}}t=t.return}}function xc(e,t,r){var n=e.pingCache;null!==n&&n.delete(t),t=ec(),e.pingedLanes|=e.suspendedLanes&r,Al===e&&(Il&r)===r&&(4===Rl||3===Rl&&(130023424&Il)===Il&&500>Ye()-Bl?hc(e,0):Nl|=r),nc(e,t)}function Pc(e,t){0===t&&(1&e.mode?(t=ut,!(130023424&(ut<<=1))&&(ut=4194304)):t=1);var r=ec();null!==(e=Fo(e,t))&&(gt(e,t,r),nc(e,r))}function _c(e){var t=e.memoizedState,r=0;null!==t&&(r=t.retryLane),Pc(e,r)}function Oc(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;null!==i&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(o(314))}null!==n&&n.delete(t),Pc(e,r)}function Ac(e,t){return We(e,t)}function Tc(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ic(e,t,r,n){return new Tc(e,t,r,n)}function Mc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Dc(e,t){var r=e.alternate;return null===r?((r=Ic(e.tag,t,e.key,e.mode)).elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=14680064&e.flags,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Rc(e,t,r,n,i,a){var s=2;if(n=e,"function"==typeof e)Mc(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case C:return Fc(r.children,i,a,t);case k:s=8,i|=8;break;case x:return(e=Ic(12,r,t,2|i)).elementType=x,e.lanes=a,e;case A:return(e=Ic(13,r,t,i)).elementType=A,e.lanes=a,e;case T:return(e=Ic(19,r,t,i)).elementType=T,e.lanes=a,e;case D:return Lc(r,i,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case P:s=10;break e;case _:s=9;break e;case O:s=11;break e;case I:s=14;break e;case M:s=16,n=null;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Ic(s,r,t,i)).elementType=e,t.type=n,t.lanes=a,t}function Fc(e,t,r,n){return(e=Ic(7,e,n,t)).lanes=r,e}function Lc(e,t,r,n){return(e=Ic(22,e,n,t)).elementType=D,e.lanes=r,e.stateNode={isHidden:!1},e}function jc(e,t,r){return(e=Ic(6,e,null,t)).lanes=r,e}function Nc(e,t,r){return(t=Ic(4,null!==e.children?e.children:[],e.key,t)).lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Uc(e,t,r,n,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=bt(0),this.expirationTimes=bt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=bt(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Hc(e,t,r,n,i,o,a,s,l){return e=new Uc(e,t,r,s,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Ic(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},jo(o),e}function Bc(e){if(!e)return _i;e:{if(ze(e=e._reactInternals)!==e||1!==e.tag)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Mi(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(o(171))}if(1===e.tag){var r=e.type;if(Mi(r))return Fi(e,r,t)}return t}function zc(e,t,r,n,i,o,a,s,l){return(e=Hc(r,n,!0,e,0,o,0,s,l)).context=Bc(null),r=e.current,(o=Uo(n=ec(),i=tc(r))).callback=null!=t?t:null,Ho(r,o,i),e.current.lanes=i,gt(e,i,n),nc(e,n),e}function Vc(e,t,r,n){var i=t.current,o=ec(),a=tc(i);return r=Bc(r),null===t.context?t.context=r:t.pendingContext=r,(t=Uo(o,a)).payload={element:e},null!==(n=void 0===n?null:n)&&(t.callback=n),null!==(e=Ho(i,t,a))&&(rc(e,i,a,o),Bo(e,i,a)),a}function $c(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function qc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var r=e.retryLane;e.retryLane=0!==r&&r<t?r:t}}function Gc(e,t){qc(e,t),(e=e.alternate)&&qc(e,t)}Cl=function(e,t,r){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ai.current)vs=!0;else{if(!(e.lanes&r||128&t.flags))return vs=!1,function(e,t,r){switch(t.tag){case 3:As(t),po();break;case 5:Jo(t);break;case 1:Mi(t.type)&&Li(t);break;case 4:Qo(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,i=t.memoizedProps.value;Pi(Co,n._currentValue),n._currentValue=i;break;case 13:if(null!==(n=t.memoizedState))return null!==n.dehydrated?(Pi(ea,1&ea.current),t.flags|=128,null):r&t.child.childLanes?js(e,t,r):(Pi(ea,1&ea.current),null!==(e=$s(e,t,r))?e.sibling:null);Pi(ea,1&ea.current);break;case 19:if(n=!!(r&t.childLanes),128&e.flags){if(n)return zs(e,t,r);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),Pi(ea,ea.current),n)break;return null;case 22:case 23:return t.lanes=0,ks(e,t,r)}return $s(e,t,r)}(e,t,r);vs=!!(131072&e.flags)}else vs=!1,io&&1048576&t.flags&&Zi(t,Gi,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Vs(e,t),e=t.pendingProps;var i=Ii(t,Oi.current);To(t,r),i=ba(null,t,n,e,i,r);var a=ga();return t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Mi(n)?(a=!0,Li(t)):a=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,jo(t),i.updater=is,t.stateNode=i,i._reactInternals=t,ls(t,n,e,r),t=Os(null,t,n,!0,a,r)):(t.tag=0,io&&a&&eo(t),ws(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Vs(e,t),e=t.pendingProps,n=(i=n._init)(n._payload),t.type=n,i=t.tag=function(e){if("function"==typeof e)return Mc(e)?1:0;if(null!=e){if((e=e.$$typeof)===O)return 11;if(e===I)return 14}return 2}(n),e=rs(n,e),i){case 0:t=Ps(null,t,n,e,r);break e;case 1:t=_s(null,t,n,e,r);break e;case 11:t=Es(null,t,n,e,r);break e;case 14:t=Ss(null,t,n,rs(n.type,e),r);break e}throw Error(o(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,Ps(e,t,n,i=t.elementType===n?i:rs(n,i),r);case 1:return n=t.type,i=t.pendingProps,_s(e,t,n,i=t.elementType===n?i:rs(n,i),r);case 3:e:{if(As(t),null===e)throw Error(o(387));n=t.pendingProps,i=(a=t.memoizedState).element,No(e,t),Vo(t,n,null,r);var s=t.memoizedState;if(n=s.element,a.isDehydrated){if(a={element:n,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Ts(e,t,n,r,i=cs(Error(o(423)),t));break e}if(n!==i){t=Ts(e,t,n,r,i=cs(Error(o(424)),t));break e}for(no=ci(t.stateNode.containerInfo.firstChild),ro=t,io=!0,oo=null,r=So(t,null,n,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(po(),n===i){t=$s(e,t,r);break e}ws(e,t,n,r)}t=t.child}return t;case 5:return Jo(t),null===e&&co(t),n=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,s=i.children,ri(n,i)?s=null:null!==a&&ri(n,a)&&(t.flags|=32),xs(e,t),ws(e,t,s,r),t.child;case 6:return null===e&&co(t),null;case 13:return js(e,t,r);case 4:return Qo(t,t.stateNode.containerInfo),n=t.pendingProps,null===e?t.child=Eo(t,null,n,r):ws(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,Es(e,t,n,i=t.elementType===n?i:rs(n,i),r);case 7:return ws(e,t,t.pendingProps,r),t.child;case 8:case 12:return ws(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,a=t.memoizedProps,s=i.value,Pi(Co,n._currentValue),n._currentValue=s,null!==a)if(sn(a.value,s)){if(a.children===i.children&&!Ai.current){t=$s(e,t,r);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var c=l.firstContext;null!==c;){if(c.context===n){if(1===a.tag){(c=Uo(-1,r&-r)).tag=2;var u=a.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}a.lanes|=r,null!==(c=a.alternate)&&(c.lanes|=r),Ao(a.return,r,t),l.lanes|=r;break}c=c.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(o(341));s.lanes|=r,null!==(l=s.alternate)&&(l.lanes|=r),Ao(s,r,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}ws(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,To(t,r),n=n(i=Io(i)),t.flags|=1,ws(e,t,n,r),t.child;case 14:return i=rs(n=t.type,t.pendingProps),Ss(e,t,n,i=rs(n.type,i),r);case 15:return Cs(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:rs(n,i),Vs(e,t),t.tag=1,Mi(n)?(e=!0,Li(t)):e=!1,To(t,r),as(t,n,i),ls(t,n,i,r),Os(null,t,n,!0,e,r);case 19:return zs(e,t,r);case 22:return ks(e,t,r)}throw Error(o(156,t.tag))};var Wc="function"==typeof reportError?reportError:function(e){console.error(e)};function Xc(e){this._internalRoot=e}function Kc(e){this._internalRoot=e}function Qc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Yc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Jc(){}function Zc(e,t,r,n,i){var o=r._reactRootContainer;if(o){var a=o;if("function"==typeof i){var s=i;i=function(){var e=$c(a);s.call(e)}}Vc(t,a,e,i)}else a=function(e,t,r,n,i){if(i){if("function"==typeof n){var o=n;n=function(){var e=$c(a);o.call(e)}}var a=zc(t,n,e,0,null,!1,0,"",Jc);return e._reactRootContainer=a,e[pi]=a.current,zn(8===e.nodeType?e.parentNode:e),uc(),a}for(;i=e.lastChild;)e.removeChild(i);if("function"==typeof n){var s=n;n=function(){var e=$c(l);s.call(e)}}var l=Hc(e,0,!1,null,0,!1,0,"",Jc);return e._reactRootContainer=l,e[pi]=l.current,zn(8===e.nodeType?e.parentNode:e),uc((function(){Vc(t,l,r,n)})),l}(r,t,e,i,n);return $c(a)}Kc.prototype.render=Xc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(o(409));Vc(e,t,null,null)},Kc.prototype.unmount=Xc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;uc((function(){Vc(null,e,null,null)})),t[pi]=null}},Kc.prototype.unstable_scheduleHydration=function(e){if(e){var t=kt();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Dt.length&&0!==t&&t<Dt[r].priority;r++);Dt.splice(r,0,e),0===r&&jt(e)}},Et=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=dt(t.pendingLanes);0!==r&&(yt(t,1|r),nc(t,Ye()),!(6&Ol)&&(zl=Ye()+500,zi()))}break;case 13:uc((function(){var t=Fo(e,1);if(null!==t){var r=ec();rc(t,e,1,r)}})),Gc(e,1)}},St=function(e){if(13===e.tag){var t=Fo(e,134217728);null!==t&&rc(t,e,134217728,ec()),Gc(e,134217728)}},Ct=function(e){if(13===e.tag){var t=tc(e),r=Fo(e,t);null!==r&&rc(r,e,t,ec()),Gc(e,t)}},kt=function(){return vt},xt=function(e,t){var r=vt;try{return vt=e,t()}finally{vt=r}},Se=function(e,t,r){switch(t){case"input":if(J(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var i=Ei(n);if(!i)throw Error(o(90));W(n),J(n,i)}}}break;case"textarea":oe(e,r);break;case"select":null!=(t=r.value)&&re(e,!!r.multiple,t,!1)}},Oe=cc,Ae=uc;var eu={usingClientEntryPoint:!1,Events:[vi,wi,Ei,Pe,_e,cc]},tu={findFiberByHostInstance:yi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},ru={bundleType:tu.bundleType,version:tu.version,rendererPackageName:tu.rendererPackageName,rendererConfig:tu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=qe(e))?null:e.stateNode},findFiberByHostInstance:tu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var nu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!nu.isDisabled&&nu.supportsFiber)try{it=nu.inject(ru),ot=nu}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=eu,t.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Qc(t))throw Error(o(200));return function(e,t,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==n?null:""+n,children:e,containerInfo:t,implementation:r}}(e,t,null,r)},t.createRoot=function(e,t){if(!Qc(e))throw Error(o(299));var r=!1,n="",i=Wc;return null!=t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(n=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=Hc(e,1,!1,null,0,r,0,n,i),e[pi]=t.current,zn(8===e.nodeType?e.parentNode:e),new Xc(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(o(188));throw e=Object.keys(e).join(","),Error(o(268,e))}return null===(e=qe(t))?null:e.stateNode},t.flushSync=function(e){return uc(e)},t.hydrate=function(e,t,r){if(!Yc(t))throw Error(o(200));return Zc(null,e,t,!0,r)},t.hydrateRoot=function(e,t,r){if(!Qc(e))throw Error(o(405));var n=null!=r&&r.hydratedSources||null,i=!1,a="",s=Wc;if(null!=r&&(!0===r.unstable_strictMode&&(i=!0),void 0!==r.identifierPrefix&&(a=r.identifierPrefix),void 0!==r.onRecoverableError&&(s=r.onRecoverableError)),t=zc(t,null,e,1,null!=r?r:null,i,0,a,s),e[pi]=t.current,zn(e),n)for(e=0;e<n.length;e++)i=(i=(r=n[e])._getVersion)(r._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[r,i]:t.mutableSourceEagerHydrationData.push(r,i);return new Kc(t)},t.render=function(e,t,r){if(!Yc(t))throw Error(o(200));return Zc(null,e,t,!1,r)},t.unmountComponentAtNode=function(e){if(!Yc(e))throw Error(o(40));return!!e._reactRootContainer&&(uc((function(){Zc(null,null,e,!1,(function(){e._reactRootContainer=null,e[pi]=null}))})),!0)},t.unstable_batchedUpdates=cc,t.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Yc(r))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return Zc(e,t,r,!1,n)},t.version="18.3.1-next-f1338f8080-20240426"},62275:(e,t,r)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=r(50213)},10173:(e,t)=>{"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,u=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,h=r?Symbol.for("react.forward_ref"):60112,f=r?Symbol.for("react.suspense"):60113,p=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,b=r?Symbol.for("react.lazy"):60116,g=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,v=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case u:case d:case o:case s:case a:case f:return e;default:switch(e=e&&e.$$typeof){case c:case h:case b:case m:case l:return e;default:return t}}case i:return t}}}function S(e){return E(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=n,t.ForwardRef=h,t.Fragment=o,t.Lazy=b,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=f,t.isAsyncMode=function(e){return S(e)||E(e)===u},t.isConcurrentMode=S,t.isContextConsumer=function(e){return E(e)===c},t.isContextProvider=function(e){return E(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return E(e)===h},t.isFragment=function(e){return E(e)===o},t.isLazy=function(e){return E(e)===b},t.isMemo=function(e){return E(e)===m},t.isPortal=function(e){return E(e)===i},t.isProfiler=function(e){return E(e)===s},t.isStrictMode=function(e){return E(e)===a},t.isSuspense=function(e){return E(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===s||e===a||e===f||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===b||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===h||e.$$typeof===y||e.$$typeof===v||e.$$typeof===w||e.$$typeof===g)},t.typeOf=E},52305:(e,t,r)=>{"use strict";e.exports=r(10173)},86742:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]}return t.default=e,t}(r(1986)),i=s(r(39970)),o=s(r(62275)),a=s(r(88072));function s(e){return e&&e.__esModule?e:{default:e}}function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function c(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}a.default||console.error("It looks like Tether has not been included. Please load this dependency first https://github.com/HubSpot/tether");var m=void 0!==o.default.createPortal,b=[i.default.string,i.default.shape({appendChild:i.default.func.isRequired})],g=["auto auto","top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],y=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=function(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?f(e):t}(this,d(t).call(this,e)),p(f(f(r)),"_targetNode",null),p(f(f(r)),"_elementParentNode",null),p(f(f(r)),"_tether",null),p(f(f(r)),"_elementComponent",null),p(f(f(r)),"_targetComponent",null),r.updateChildrenComponents(r.props),r}var r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(t,e),r=t,i=[{key:"updateChildrenComponents",value:function(e){var t=n.Children.toArray(e.children);if(this._targetComponent=t[0],this._elementComponent=t[1],this._targetComponent&&this._elementComponent&&this._createContainer(),this._elementParentNode&&this.props.className!==e.className){var r,i,o=(this.props.className||"").split(" ").filter((function(e){return e.length>0})),a=(e.className||"").split(" ").filter((function(e){return e.length>0}));(r=this._elementParentNode.classList).remove.apply(r,c(o)),(i=this._elementParentNode.classList).add.apply(i,c(a))}}},{key:"componentDidMount",value:function(){this._update()}},{key:"componentDidUpdate",value:function(){this._update()}},{key:"componentWillUnmount",value:function(){this._destroy()}},{key:"getTetherInstance",value:function(){return this._tether}},{key:"disable",value:function(){this._tether.disable()}},{key:"enable",value:function(){this._tether.enable()}},{key:"on",value:function(e,t,r){this._tether.on(e,t,r)}},{key:"once",value:function(e,t,r){this._tether.once(e,t,r)}},{key:"off",value:function(e,t){this._tether.off(e,t)}},{key:"position",value:function(){this._tether.position()}},{key:"_registerEventListeners",value:function(){var e=this;this.on("update",(function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e.props.onUpdate&&e.props.onUpdate.apply(e,r)})),this.on("repositioned",(function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e.props.onRepositioned&&e.props.onRepositioned.apply(e,r)}))}},{key:"_destroy",value:function(){this._elementParentNode&&(m||o.default.unmountComponentAtNode(this._elementParentNode),this._elementParentNode.parentNode.removeChild(this._elementParentNode)),this._tether&&this._tether.destroy(),this._elementParentNode=null,this._tether=null,this._targetNode=null,this._targetComponent=null,this._elementComponent=null}},{key:"_createContainer",value:function(){if(!this._elementParentNode){var e=this.props,t=e.renderElementTag,r=e.className;this._elementParentNode=document.createElement(t),this._elementParentNode.className=r||"",this._renderNode.appendChild(this._elementParentNode)}}},{key:"_update",value:function(){var e=this,t=!this._elementComponent||!this._targetComponent;t||(this._targetNode=o.default.findDOMNode(this),t=!this._targetNode),t?this._destroy():m?this._updateTether():o.default.unstable_renderSubtreeIntoContainer(this,this._elementComponent,this._elementParentNode,(function(){e._elementParentNode&&e._updateTether()}))}},{key:"_updateTether",value:function(){var e=this.props,t=(e.children,e.renderElementTag,e.renderElementTo,e.id),r=(e.className,e.style),n=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["children","renderElementTag","renderElementTo","id","className","style"]),i=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){p(e,t,r[t])}))}return e}({target:this._targetNode,element:this._elementParentNode},n),o=t||"";if(this._elementParentNode.id!==o&&(this._elementParentNode.id=o),r){var s=this._elementParentNode.style;Object.keys(r).forEach((function(e){s[e]!==r[e]&&(s[e]=r[e])}))}this._tether?this._tether.setOptions(i):(this._tether=new a.default(i),this._registerEventListeners()),this._tether.position()}},{key:"render",value:function(){return this._targetComponent?m&&this._elementComponent?[this._targetComponent,o.default.createPortal(this._elementComponent,this._elementParentNode)]:this._targetComponent:null}},{key:"_renderNode",get:function(){var e=this.props.renderElementTo;return"string"==typeof e?document.querySelector(e):e||document.body}}],i&&u(r.prototype,i),t}(n.Component);function v(e){this.updateChildrenComponents(e)}p(y,"propTypes",{renderElementTag:i.default.string,renderElementTo:i.default.oneOfType(b),attachment:i.default.oneOf(g).isRequired,targetAttachment:i.default.oneOf(g),offset:i.default.string,targetOffset:i.default.string,targetModifier:i.default.string,enabled:i.default.bool,classes:i.default.object,classPrefix:i.default.string,optimizations:i.default.object,constraints:i.default.array,id:i.default.string,className:i.default.string,style:i.default.object,onUpdate:i.default.func,onRepositioned:i.default.func,children:function(e,t,r){var i=e.children,o=n.Children.count(i);return o<=0?new Error("".concat(r," expects at least one child to use as the target element.")):o>2?new Error("Only a max of two children allowed in ".concat(r,".")):void 0}}),p(y,"defaultProps",{renderElementTag:"div",renderElementTo:null});var w,E=function(e){if(Array.isArray(e))return e}(w=n.default.version.split(".").map(Number))||function(e,t){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),2!==r.length);n=!0);}catch(e){i=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return r}(w)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}(),S=E[0],C=E[1];S<16||16===S&&C<9?y.prototype.componentWillUpdate=v:y.prototype.UNSAFE_componentWillUpdate=v;var k=y;t.default=k},91695:(e,t,r)=>{"use strict";Object.defineProperty(t,"A",{enumerable:!0,get:function(){return i.default}});var n,i=(n=r(86742))&&n.__esModule?n:{default:n}},16109:(e,t)=>{"use strict";var r=Symbol.for("react.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),f=Symbol.iterator,p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,b={};function g(e,t,r){this.props=e,this.context=t,this.refs=b,this.updater=r||p}function y(){}function v(e,t,r){this.props=e,this.context=t,this.refs=b,this.updater=r||p}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=g.prototype;var w=v.prototype=new y;w.constructor=v,m(w,g.prototype),w.isPureReactComponent=!0;var E=Array.isArray,S=Object.prototype.hasOwnProperty,C={current:null},k={key:!0,ref:!0,__self:!0,__source:!0};function x(e,t,n){var i,o={},a=null,s=null;if(null!=t)for(i in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)S.call(t,i)&&!k.hasOwnProperty(i)&&(o[i]=t[i]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(i in l=e.defaultProps)void 0===o[i]&&(o[i]=l[i]);return{$$typeof:r,type:e,key:a,ref:s,props:o,_owner:C.current}}function P(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}var _=/\/+/g;function O(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function A(e,t,i,o,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case r:case n:l=!0}}if(l)return a=a(l=e),e=""===o?"."+O(l,0):o,E(a)?(i="",null!=e&&(i=e.replace(_,"$&/")+"/"),A(a,t,i,"",(function(e){return e}))):null!=a&&(P(a)&&(a=function(e,t){return{$$typeof:r,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,i+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(_,"$&/")+"/")+e)),t.push(a)),1;if(l=0,o=""===o?".":o+":",E(e))for(var c=0;c<e.length;c++){var u=o+O(s=e[c],c);l+=A(s,t,i,u,a)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=f&&e[f]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),c=0;!(s=e.next()).done;)l+=A(s=s.value,t,i,u=o+O(s,c++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function T(e,t,r){if(null==e)return e;var n=[],i=0;return A(e,n,"","",(function(e){return t.call(r,e,i++)})),n}function I(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var M={current:null},D={transition:null},R={ReactCurrentDispatcher:M,ReactCurrentBatchConfig:D,ReactCurrentOwner:C};function F(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:T,forEach:function(e,t,r){T(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return T(e,(function(){t++})),t},toArray:function(e){return T(e,(function(e){return e}))||[]},only:function(e){if(!P(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=g,t.Fragment=i,t.Profiler=a,t.PureComponent=v,t.StrictMode=o,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=R,t.act=F,t.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=m({},e.props),o=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=C.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)S.call(t,c)&&!k.hasOwnProperty(c)&&(i[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)i.children=n;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];i.children=l}return{$$typeof:r,type:e.type,key:o,ref:a,props:i,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=x,t.createFactory=function(e){var t=x.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=P,t.lazy=function(e){return{$$typeof:h,_payload:{_status:-1,_result:e},_init:I}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=D.transition;D.transition={};try{e()}finally{D.transition=t}},t.unstable_act=F,t.useCallback=function(e,t){return M.current.useCallback(e,t)},t.useContext=function(e){return M.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return M.current.useDeferredValue(e)},t.useEffect=function(e,t){return M.current.useEffect(e,t)},t.useId=function(){return M.current.useId()},t.useImperativeHandle=function(e,t,r){return M.current.useImperativeHandle(e,t,r)},t.useInsertionEffect=function(e,t){return M.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return M.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return M.current.useMemo(e,t)},t.useReducer=function(e,t,r){return M.current.useReducer(e,t,r)},t.useRef=function(e){return M.current.useRef(e)},t.useState=function(e){return M.current.useState(e)},t.useSyncExternalStore=function(e,t,r){return M.current.useSyncExternalStore(e,t,r)},t.useTransition=function(){return M.current.useTransition()},t.version="18.3.1"},1986:(e,t,r)=>{"use strict";e.exports=r(16109)},46414:e=>{var t=function(e){"use strict";var t,r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof g?t:g,a=Object.create(o.prototype),s=new T(n||[]);return i(a,"_invoke",{value:P(e,r,s)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var h="suspendedStart",f="suspendedYield",p="executing",m="completed",b={};function g(){}function y(){}function v(){}var w={};c(w,a,(function(){return this}));var E=Object.getPrototypeOf,S=E&&E(E(I([])));S&&S!==r&&n.call(S,a)&&(w=S);var C=v.prototype=g.prototype=Object.create(w);function k(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function r(i,o,a,s){var l=d(e[i],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==typeof u&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var o;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return o=o?o.then(i,i):i()}})}function P(e,r,n){var i=h;return function(o,a){if(i===p)throw new Error("Generator is already running");if(i===m){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var l=_(s,n);if(l){if(l===b)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=p;var c=d(e,r,n);if("normal"===c.type){if(i=n.done?m:f,c.arg===b)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=m,n.method="throw",n.arg=c.arg)}}}function _(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,_(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var o=d(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,b;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,b):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function I(e){if(null!=e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(typeof e+" is not iterable")}return y.prototype=v,i(C,"constructor",{value:v,configurable:!0}),i(v,"constructor",{value:y,configurable:!0}),y.displayName=c(v,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,l,"GeneratorFunction")),e.prototype=Object.create(C),e},e.awrap=function(e){return{__await:e}},k(x.prototype),c(x.prototype,s,(function(){return this})),e.AsyncIterator=x,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new x(u(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},k(C),c(C,l,"Generator"),c(C,a,(function(){return this})),c(C,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=I,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(A),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type="throw",s.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),A(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;A(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),b}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},97245:(e,t)=>{"use strict";function r(e,t){var r=e.length;e.push(t);e:for(;0<r;){var n=r-1>>>1,i=e[n];if(!(0<o(i,t)))break e;e[n]=t,e[r]=i,r=n}}function n(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],r=e.pop();if(r!==t){e[0]=r;e:for(var n=0,i=e.length,a=i>>>1;n<a;){var s=2*(n+1)-1,l=e[s],c=s+1,u=e[c];if(0>o(l,r))c<i&&0>o(u,l)?(e[n]=u,e[c]=r,n=c):(e[n]=l,e[s]=r,n=s);else{if(!(c<i&&0>o(u,r)))break e;e[n]=u,e[c]=r,n=c}}}return t}function o(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var c=[],u=[],d=1,h=null,f=3,p=!1,m=!1,b=!1,g="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=n(u);null!==t;){if(null===t.callback)i(u);else{if(!(t.startTime<=e))break;i(u),t.sortIndex=t.expirationTime,r(c,t)}t=n(u)}}function E(e){if(b=!1,w(e),!m)if(null!==n(c))m=!0,D(S);else{var t=n(u);null!==t&&R(E,t.startTime-e)}}function S(e,r){m=!1,b&&(b=!1,y(P),P=-1),p=!0;var o=f;try{for(w(r),h=n(c);null!==h&&(!(h.expirationTime>r)||e&&!A());){var a=h.callback;if("function"==typeof a){h.callback=null,f=h.priorityLevel;var s=a(h.expirationTime<=r);r=t.unstable_now(),"function"==typeof s?h.callback=s:h===n(c)&&i(c),w(r)}else i(c);h=n(c)}if(null!==h)var l=!0;else{var d=n(u);null!==d&&R(E,d.startTime-r),l=!1}return l}finally{h=null,f=o,p=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var C,k=!1,x=null,P=-1,_=5,O=-1;function A(){return!(t.unstable_now()-O<_)}function T(){if(null!==x){var e=t.unstable_now();O=e;var r=!0;try{r=x(!0,e)}finally{r?C():(k=!1,x=null)}}else k=!1}if("function"==typeof v)C=function(){v(T)};else if("undefined"!=typeof MessageChannel){var I=new MessageChannel,M=I.port2;I.port1.onmessage=T,C=function(){M.postMessage(null)}}else C=function(){g(T,0)};function D(e){x=e,k||(k=!0,C())}function R(e,r){P=g((function(){e(t.unstable_now())}),r)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||p||(m=!0,D(S))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):_=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_getFirstCallbackNode=function(){return n(c)},t.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var r=f;f=t;try{return e()}finally{f=r}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=f;f=e;try{return t()}finally{f=r}},t.unstable_scheduleCallback=function(e,i,o){var a=t.unstable_now();switch(o="object"==typeof o&&null!==o&&"number"==typeof(o=o.delay)&&0<o?a+o:a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:i,priorityLevel:e,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>a?(e.sortIndex=o,r(u,e),null===n(c)&&e===n(u)&&(b?(y(P),P=-1):b=!0,R(E,o-a))):(e.sortIndex=s,r(c,e),m||p||(m=!0,D(S))),e},t.unstable_shouldYield=A,t.unstable_wrapCallback=function(e){var t=f;return function(){var r=f;f=t;try{return e.apply(this,arguments)}finally{f=r}}}},40552:(e,t,r)=>{"use strict";e.exports=r(97245)},12010:e=>{"use strict";e.exports=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}},88072:function(e,t){var r,n;r=function(){"use strict";var e=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=void 0;void 0===r&&(r={modules:[]});var n=null;function i(e){var t=e.getBoundingClientRect(),r={};for(var n in t)r[n]=t[n];try{if(e.ownerDocument!==document){var o=e.ownerDocument.defaultView.frameElement;if(o){var a=i(o);r.top+=a.top,r.bottom+=a.top,r.left+=a.left,r.right+=a.left}}}catch(e){}return r}function o(e){var t=(getComputedStyle(e)||{}).position,r=[];if("fixed"===t)return[e];for(var n=e;(n=n.parentNode)&&n&&1===n.nodeType;){var i=void 0;try{i=getComputedStyle(n)}catch(e){}if(null==i)return r.push(n),r;var o=i,a=o.overflow,s=o.overflowX,l=o.overflowY;/(auto|scroll|overlay)/.test(a+l+s)&&("absolute"!==t||["relative","absolute","fixed"].indexOf(i.position)>=0)&&r.push(n)}return r.push(e.ownerDocument.body),e.ownerDocument!==document&&r.push(e.ownerDocument.defaultView),r}var a,s=(a=0,function(){return++a}),l={},c=function(){var e=n;e&&document.body.contains(e)||((e=document.createElement("div")).setAttribute("data-tether-id",s()),m(e.style,{top:0,left:0,position:"absolute"}),document.body.appendChild(e),n=e);var t=e.getAttribute("data-tether-id");return void 0===l[t]&&(l[t]=i(e),C((function(){delete l[t]}))),l[t]};function u(){n&&document.body.removeChild(n),n=null}function d(e){var t=void 0;e===document?(t=document,e=document.documentElement):t=e.ownerDocument;var r=t.documentElement,n=i(e),o=c();return n.top-=o.top,n.left-=o.left,void 0===n.width&&(n.width=document.body.scrollWidth-n.left-n.right),void 0===n.height&&(n.height=document.body.scrollHeight-n.top-n.bottom),n.top=n.top-r.clientTop,n.left=n.left-r.clientLeft,n.right=t.body.clientWidth-n.width-n.left,n.bottom=t.body.clientHeight-n.height-n.top,n}function h(e){return e.offsetParent||document.documentElement}var f=null;function p(){if(f)return f;var e=document.createElement("div");e.style.width="100%",e.style.height="200px";var t=document.createElement("div");m(t.style,{position:"absolute",top:0,left:0,pointerEvents:"none",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),t.appendChild(e),document.body.appendChild(t);var r=e.offsetWidth;t.style.overflow="scroll";var n=e.offsetWidth;r===n&&(n=t.clientWidth),document.body.removeChild(t);var i=r-n;return f={width:i,height:i}}function m(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],t=[];return Array.prototype.push.apply(t,arguments),t.slice(1).forEach((function(t){if(t)for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])})),e}function b(e,t){if(void 0!==e.classList)t.split(" ").forEach((function(t){t.trim()&&e.classList.remove(t)}));else{var r=new RegExp("(^| )"+t.split(" ").join("|")+"( |$)","gi"),n=v(e).replace(r," ");w(e,n)}}function g(e,t){if(void 0!==e.classList)t.split(" ").forEach((function(t){t.trim()&&e.classList.add(t)}));else{b(e,t);var r=v(e)+" "+t;w(e,r)}}function y(e,t){if(void 0!==e.classList)return e.classList.contains(t);var r=v(e);return new RegExp("(^| )"+t+"( |$)","gi").test(r)}function v(e){return e.className instanceof e.ownerDocument.defaultView.SVGAnimatedString?e.className.baseVal:e.className}function w(e,t){e.setAttribute("class",t)}function E(e,t,r){r.forEach((function(r){-1===t.indexOf(r)&&y(e,r)&&b(e,r)})),t.forEach((function(t){y(e,t)||g(e,t)}))}var S=[],C=function(e){S.push(e)},k=function(){for(var e=void 0;e=S.pop();)e()},x=function(){function r(){t(this,r)}return e(r,[{key:"on",value:function(e,t,r){var n=!(arguments.length<=3||void 0===arguments[3])&&arguments[3];void 0===this.bindings&&(this.bindings={}),void 0===this.bindings[e]&&(this.bindings[e]=[]),this.bindings[e].push({handler:t,ctx:r,once:n})}},{key:"once",value:function(e,t,r){this.on(e,t,r,!0)}},{key:"off",value:function(e,t){if(void 0!==this.bindings&&void 0!==this.bindings[e])if(void 0===t)delete this.bindings[e];else for(var r=0;r<this.bindings[e].length;)this.bindings[e][r].handler===t?this.bindings[e].splice(r,1):++r}},{key:"trigger",value:function(e){if(void 0!==this.bindings&&this.bindings[e]){for(var t=0,r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];for(;t<this.bindings[e].length;){var o=this.bindings[e][t],a=o.handler,s=o.ctx,l=o.once,c=s;void 0===c&&(c=this),a.apply(c,n),l?this.bindings[e].splice(t,1):++t}}}}]),r}();r.Utils={getActualBoundingClientRect:i,getScrollParents:o,getBounds:d,getOffsetParent:h,extend:m,addClass:g,removeClass:b,hasClass:y,updateClasses:E,defer:C,flush:k,uniqueId:s,Evented:x,getScrollBarSize:p,removeUtilElements:u};var P=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){i=!0,o=e}finally{try{!n&&s.return&&s.return()}finally{if(i)throw o}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},_=(e=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),function(e,t,r){for(var n=!0;n;){var i=e,o=t,a=r;n=!1,null===i&&(i=Function.prototype);var s=Object.getOwnPropertyDescriptor(i,o);if(void 0!==s){if("value"in s)return s.value;var l=s.get;if(void 0===l)return;return l.call(a)}var c=Object.getPrototypeOf(i);if(null===c)return;e=c,t=o,r=a,n=!0,s=c=void 0}});function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}if(void 0===r)throw new Error("You must include the utils.js file before tether.js");var o=(X=r.Utils).getScrollParents,h=(d=X.getBounds,X.getOffsetParent),g=(m=X.extend,X.addClass),b=X.removeClass,p=(E=X.updateClasses,C=X.defer,k=X.flush,X.getScrollBarSize),u=X.removeUtilElements;function O(e,t){var r=arguments.length<=2||void 0===arguments[2]?1:arguments[2];return e+r>=t&&t>=e-r}var A,T,I,M,D=function(){if("undefined"==typeof document)return"";for(var e=document.createElement("div"),t=["transform","WebkitTransform","OTransform","MozTransform","msTransform"],r=0;r<t.length;++r){var n=t[r];if(void 0!==e.style[n])return n}}(),R=[],F=function(){R.forEach((function(e){e.position(!1)})),k()};function L(){return"object"==typeof performance&&"function"==typeof performance.now?performance.now():+new Date}A=null,T=null,I=null,M=function e(){if(void 0!==T&&T>16)return T=Math.min(T-16,250),void(I=setTimeout(e,250));void 0!==A&&L()-A<10||(null!=I&&(clearTimeout(I),I=null),A=L(),F(),T=L()-A)},"undefined"!=typeof window&&void 0!==window.addEventListener&&["resize","scroll","touchmove"].forEach((function(e){window.addEventListener(e,M)}));var j={center:"center",left:"right",right:"left"},N={middle:"middle",top:"bottom",bottom:"top"},U={top:0,left:0,middle:"50%",center:"50%",bottom:"100%",right:"100%"},H=function(e){var t=e.left,r=e.top;return void 0!==U[e.left]&&(t=U[e.left]),void 0!==U[e.top]&&(r=U[e.top]),{left:t,top:r}};function B(){for(var e={top:0,left:0},t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return r.forEach((function(t){var r=t.top,n=t.left;"string"==typeof r&&(r=parseFloat(r,10)),"string"==typeof n&&(n=parseFloat(n,10)),e.top+=r,e.left+=n})),e}function z(e,t){return"string"==typeof e.left&&-1!==e.left.indexOf("%")&&(e.left=parseFloat(e.left,10)/100*t.width),"string"==typeof e.top&&-1!==e.top.indexOf("%")&&(e.top=parseFloat(e.top,10)/100*t.height),e}var V=function(e){var t=e.split(" "),r=P(t,2);return{top:r[0],left:r[1]}},$=V,q=function(n){function i(e){var n=this;t(this,i),_(Object.getPrototypeOf(i.prototype),"constructor",this).call(this),this.position=this.position.bind(this),R.push(this),this.history=[],this.setOptions(e,!1),r.modules.forEach((function(e){void 0!==e.initialize&&e.initialize.call(n)})),this.position()}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,n),e(i,[{key:"getClass",value:function(){var e=arguments.length<=0||void 0===arguments[0]?"":arguments[0],t=this.options.classes;return void 0!==t&&t[e]?this.options.classes[e]:this.options.classPrefix?this.options.classPrefix+"-"+e:e}},{key:"setOptions",value:function(e){var t=this,r=arguments.length<=1||void 0===arguments[1]||arguments[1];this.options=m({offset:"0 0",targetOffset:"0 0",targetAttachment:"auto auto",classPrefix:"tether"},e);var n=this.options,i=n.element,a=n.target,s=n.targetModifier;if(this.element=i,this.target=a,this.targetModifier=s,"viewport"===this.target?(this.target=document.body,this.targetModifier="visible"):"scroll-handle"===this.target&&(this.target=document.body,this.targetModifier="scroll-handle"),["element","target"].forEach((function(e){if(void 0===t[e])throw new Error("Tether Error: Both element and target must be defined");void 0!==t[e].jquery?t[e]=t[e][0]:"string"==typeof t[e]&&(t[e]=document.querySelector(t[e]))})),g(this.element,this.getClass("element")),!1!==this.options.addTargetClasses&&g(this.target,this.getClass("target")),!this.options.attachment)throw new Error("Tether Error: You must provide an attachment");this.targetAttachment=$(this.options.targetAttachment),this.attachment=$(this.options.attachment),this.offset=V(this.options.offset),this.targetOffset=V(this.options.targetOffset),void 0!==this.scrollParents&&this.disable(),"scroll-handle"===this.targetModifier?this.scrollParents=[this.target]:this.scrollParents=o(this.target),!1!==this.options.enabled&&this.enable(r)}},{key:"getTargetBounds",value:function(){if(void 0===this.targetModifier)return d(this.target);if("visible"===this.targetModifier)return this.target===document.body?{top:pageYOffset,left:pageXOffset,height:innerHeight,width:innerWidth}:((o={height:(e=d(this.target)).height,width:e.width,top:e.top,left:e.left}).height=Math.min(o.height,e.height-(pageYOffset-e.top)),o.height=Math.min(o.height,e.height-(e.top+e.height-(pageYOffset+innerHeight))),o.height=Math.min(innerHeight,o.height),o.height-=2,o.width=Math.min(o.width,e.width-(pageXOffset-e.left)),o.width=Math.min(o.width,e.width-(e.left+e.width-(pageXOffset+innerWidth))),o.width=Math.min(innerWidth,o.width),o.width-=2,o.top<pageYOffset&&(o.top=pageYOffset),o.left<pageXOffset&&(o.left=pageXOffset),o);if("scroll-handle"===this.targetModifier){var e=void 0,t=this.target;t===document.body?(t=document.documentElement,e={left:pageXOffset,top:pageYOffset,height:innerHeight,width:innerWidth}):e=d(t);var r=getComputedStyle(t),n=0;(t.scrollWidth>t.clientWidth||[r.overflow,r.overflowX].indexOf("scroll")>=0||this.target!==document.body)&&(n=15);var i=e.height-parseFloat(r.borderTopWidth)-parseFloat(r.borderBottomWidth)-n,o={width:15,height:.975*i*(i/t.scrollHeight),left:e.left+e.width-parseFloat(r.borderLeftWidth)-15},a=0;i<408&&this.target===document.body&&(a=-11e-5*Math.pow(i,2)-.00727*i+22.58),this.target!==document.body&&(o.height=Math.max(o.height,24));var s=this.target.scrollTop/(t.scrollHeight-i);return o.top=s*(i-o.height-a)+e.top+parseFloat(r.borderTopWidth),this.target===document.body&&(o.height=Math.max(o.height,24)),o}}},{key:"clearCache",value:function(){this._cache={}}},{key:"cache",value:function(e,t){return void 0===this._cache&&(this._cache={}),void 0===this._cache[e]&&(this._cache[e]=t.call(this)),this._cache[e]}},{key:"enable",value:function(){var e=this,t=arguments.length<=0||void 0===arguments[0]||arguments[0];!1!==this.options.addTargetClasses&&g(this.target,this.getClass("enabled")),g(this.element,this.getClass("enabled")),this.enabled=!0,this.scrollParents.forEach((function(t){t!==e.target.ownerDocument&&t.addEventListener("scroll",e.position)})),t&&this.position()}},{key:"disable",value:function(){var e=this;b(this.target,this.getClass("enabled")),b(this.element,this.getClass("enabled")),this.enabled=!1,void 0!==this.scrollParents&&this.scrollParents.forEach((function(t){t.removeEventListener("scroll",e.position)}))}},{key:"destroy",value:function(){var e=this;this.disable(),R.forEach((function(t,r){t===e&&R.splice(r,1)})),0===R.length&&u()}},{key:"updateAttachClasses",value:function(e,t){var r=this;e=e||this.attachment,t=t||this.targetAttachment;void 0!==this._addAttachClasses&&this._addAttachClasses.length&&this._addAttachClasses.splice(0,this._addAttachClasses.length),void 0===this._addAttachClasses&&(this._addAttachClasses=[]);var n=this._addAttachClasses;e.top&&n.push(this.getClass("element-attached")+"-"+e.top),e.left&&n.push(this.getClass("element-attached")+"-"+e.left),t.top&&n.push(this.getClass("target-attached")+"-"+t.top),t.left&&n.push(this.getClass("target-attached")+"-"+t.left);var i=[];["left","top","bottom","right","middle","center"].forEach((function(e){i.push(r.getClass("element-attached")+"-"+e),i.push(r.getClass("target-attached")+"-"+e)})),C((function(){void 0!==r._addAttachClasses&&(E(r.element,r._addAttachClasses,i),!1!==r.options.addTargetClasses&&E(r.target,r._addAttachClasses,i),delete r._addAttachClasses)}))}},{key:"position",value:function(){var e=this,t=arguments.length<=0||void 0===arguments[0]||arguments[0];if(this.enabled){this.clearCache();var n=function(e,t){var r=e.left,n=e.top;return"auto"===r&&(r=j[t.left]),"auto"===n&&(n=N[t.top]),{left:r,top:n}}(this.targetAttachment,this.attachment);this.updateAttachClasses(this.attachment,n);var i=this.cache("element-bounds",(function(){return d(e.element)})),o=i.width,a=i.height;if(0===o&&0===a&&void 0!==this.lastSize){var s=this.lastSize;o=s.width,a=s.height}else this.lastSize={width:o,height:a};var l=this.cache("target-bounds",(function(){return e.getTargetBounds()})),c=l,u=z(H(this.attachment),{width:o,height:a}),f=z(H(n),c),m=z(this.offset,{width:o,height:a}),b=z(this.targetOffset,c);u=B(u,m),f=B(f,b);for(var g=l.left+f.left-u.left,y=l.top+f.top-u.top,v=0;v<r.modules.length;++v){var w=r.modules[v].position.call(this,{left:g,top:y,targetAttachment:n,targetPos:l,elementPos:i,offset:u,targetOffset:f,manualOffset:m,manualTargetOffset:b,scrollbarSize:x,attachment:this.attachment});if(!1===w)return!1;void 0!==w&&"object"==typeof w&&(y=w.top,g=w.left)}var E={page:{top:y,left:g},viewport:{top:y-pageYOffset,bottom:pageYOffset-y-a+innerHeight,left:g-pageXOffset,right:pageXOffset-g-o+innerWidth}},S=this.target.ownerDocument,C=S.defaultView,x=void 0;return C.innerHeight>S.documentElement.clientHeight&&(x=this.cache("scrollbar-size",p),E.viewport.bottom-=x.height),C.innerWidth>S.documentElement.clientWidth&&(x=this.cache("scrollbar-size",p),E.viewport.right-=x.width),-1!==["","static"].indexOf(S.body.style.position)&&-1!==["","static"].indexOf(S.body.parentElement.style.position)||(E.page.bottom=S.body.scrollHeight-y-a,E.page.right=S.body.scrollWidth-g-o),void 0!==this.options.optimizations&&!1!==this.options.optimizations.moveElement&&void 0===this.targetModifier&&function(){var t=e.cache("target-offsetparent",(function(){return h(e.target)})),r=e.cache("target-offsetparent-bounds",(function(){return d(t)})),n=getComputedStyle(t),i=r,o={};if(["Top","Left","Bottom","Right"].forEach((function(e){o[e.toLowerCase()]=parseFloat(n["border"+e+"Width"])})),r.right=S.body.scrollWidth-r.left-i.width+o.right,r.bottom=S.body.scrollHeight-r.top-i.height+o.bottom,E.page.top>=r.top+o.top&&E.page.bottom>=r.bottom&&E.page.left>=r.left+o.left&&E.page.right>=r.right){var a=t.scrollTop,s=t.scrollLeft;E.offset={top:E.page.top-r.top+a-o.top,left:E.page.left-r.left+s-o.left}}}(),this.move(E),this.history.unshift(E),this.history.length>3&&this.history.pop(),t&&k(),!0}}},{key:"move",value:function(e){var t,r,n=this;if(void 0!==this.element.parentNode){var i={};for(var o in e)for(var a in i[o]={},e[o]){for(var s=!1,l=0;l<this.history.length;++l){var c=this.history[l];if(void 0!==c[o]&&!O(c[o][a],e[o][a])){s=!0;break}}s||(i[o][a]=!0)}var u={top:"",left:"",right:"",bottom:""},d=function(e,t){if(!1!==(void 0!==n.options.optimizations?n.options.optimizations.gpu:null)){var r=void 0,i=void 0;e.top?(u.top=0,r=t.top):(u.bottom=0,r=-t.bottom),e.left?(u.left=0,i=t.left):(u.right=0,i=-t.right),"number"==typeof window.devicePixelRatio&&devicePixelRatio%1==0&&(i=Math.round(i*devicePixelRatio)/devicePixelRatio,r=Math.round(r*devicePixelRatio)/devicePixelRatio),u[D]="translateX("+i+"px) translateY("+r+"px)","msTransform"!==D&&(u[D]+=" translateZ(0)")}else e.top?u.top=t.top+"px":u.bottom=t.bottom+"px",e.left?u.left=t.left+"px":u.right=t.right+"px"},f=!1;if((i.page.top||i.page.bottom)&&(i.page.left||i.page.right)?(u.position="absolute",d(i.page,e.page)):(i.viewport.top||i.viewport.bottom)&&(i.viewport.left||i.viewport.right)?(u.position="fixed",d(i.viewport,e.viewport)):void 0!==i.offset&&i.offset.top&&i.offset.left?function(){u.position="absolute";var t=n.cache("target-offsetparent",(function(){return h(n.target)}));h(n.element)!==t&&C((function(){n.element.parentNode.removeChild(n.element),t.appendChild(n.element)})),d(i.offset,e.offset),f=!0}():(u.position="absolute",d({top:!0,left:!0},e.page)),!f)if(this.options.bodyElement)this.element.parentNode!==this.options.bodyElement&&this.options.bodyElement.appendChild(this.element);else{for(var p=!0,b=this.element.parentNode;b&&1===b.nodeType&&"BODY"!==b.tagName&&(r=void 0,((r=(t=b).ownerDocument).fullscreenElement||r.webkitFullscreenElement||r.mozFullScreenElement||r.msFullscreenElement)!==t);){if("static"!==getComputedStyle(b).position){p=!1;break}b=b.parentNode}p||(this.element.parentNode.removeChild(this.element),this.element.ownerDocument.body.appendChild(this.element))}var g={},y=!1;for(var a in u){var v=u[a];this.element.style[a]!==v&&(y=!0,g[a]=v)}y&&C((function(){m(n.element.style,g),n.trigger("repositioned")}))}}}]),i}(x);q.modules=[],r.position=F;var G=m(q,r);P=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){i=!0,o=e}finally{try{!n&&s.return&&s.return()}finally{if(i)throw o}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},d=(X=r.Utils).getBounds;var m=X.extend,W=(E=X.updateClasses,C=X.defer,["left","top","right","bottom"]);r.modules.push({position:function(e){var t=this,r=e.top,n=e.left,i=e.targetAttachment;if(!this.options.constraints)return!0;var o=this.cache("element-bounds",(function(){return d(t.element)})),a=o.height,s=o.width;if(0===s&&0===a&&void 0!==this.lastSize){var l=this.lastSize;s=l.width,a=l.height}var c=this.cache("target-bounds",(function(){return t.getTargetBounds()})),u=c.height,h=c.width,f=[this.getClass("pinned"),this.getClass("out-of-bounds")];this.options.constraints.forEach((function(e){var t=e.outOfBoundsClass,r=e.pinnedClass;t&&f.push(t),r&&f.push(r)})),f.forEach((function(e){["left","top","right","bottom"].forEach((function(t){f.push(e+"-"+t)}))}));var p=[],b=m({},i),g=m({},this.attachment);return this.options.constraints.forEach((function(e){var o=e.to,l=e.attachment,c=e.pin;void 0===l&&(l="");var f=void 0,m=void 0;if(l.indexOf(" ")>=0){var y=l.split(" "),v=P(y,2);m=v[0],f=v[1]}else f=m=l;var w=function(e,t){return"scrollParent"===t?t=e.scrollParents[0]:"window"===t&&(t=[pageXOffset,pageYOffset,innerWidth+pageXOffset,innerHeight+pageYOffset]),t===document&&(t=t.documentElement),void 0!==t.nodeType&&function(){var e=t,r=d(t),n=r,i=getComputedStyle(t);if(t=[n.left,n.top,r.width+n.left,r.height+n.top],e.ownerDocument!==document){var o=e.ownerDocument.defaultView;t[0]+=o.pageXOffset,t[1]+=o.pageYOffset,t[2]+=o.pageXOffset,t[3]+=o.pageYOffset}W.forEach((function(e,r){"Top"===(e=e[0].toUpperCase()+e.substr(1))||"Left"===e?t[r]+=parseFloat(i["border"+e+"Width"]):t[r]-=parseFloat(i["border"+e+"Width"])}))}(),t}(t,o);"target"!==m&&"both"!==m||(r<w[1]&&"top"===b.top&&(r+=u,b.top="bottom"),r+a>w[3]&&"bottom"===b.top&&(r-=u,b.top="top")),"together"===m&&("top"===b.top&&("bottom"===g.top&&r<w[1]?(r+=u,b.top="bottom",r+=a,g.top="top"):"top"===g.top&&r+a>w[3]&&r-(a-u)>=w[1]&&(r-=a-u,b.top="bottom",g.top="bottom")),"bottom"===b.top&&("top"===g.top&&r+a>w[3]?(r-=u,b.top="top",r-=a,g.top="bottom"):"bottom"===g.top&&r<w[1]&&r+(2*a-u)<=w[3]&&(r+=a-u,b.top="top",g.top="top")),"middle"===b.top&&(r+a>w[3]&&"top"===g.top?(r-=a,g.top="bottom"):r<w[1]&&"bottom"===g.top&&(r+=a,g.top="top"))),"target"!==f&&"both"!==f||(n<w[0]&&"left"===b.left&&(n+=h,b.left="right"),n+s>w[2]&&"right"===b.left&&(n-=h,b.left="left")),"together"===f&&(n<w[0]&&"left"===b.left?"right"===g.left?(n+=h,b.left="right",n+=s,g.left="left"):"left"===g.left&&(n+=h,b.left="right",n-=s,g.left="right"):n+s>w[2]&&"right"===b.left?"left"===g.left?(n-=h,b.left="left",n-=s,g.left="right"):"right"===g.left&&(n-=h,b.left="left",n+=s,g.left="left"):"center"===b.left&&(n+s>w[2]&&"left"===g.left?(n-=s,g.left="right"):n<w[0]&&"right"===g.left&&(n+=s,g.left="left"))),"element"!==m&&"both"!==m||(r<w[1]&&"bottom"===g.top&&(r+=a,g.top="top"),r+a>w[3]&&"top"===g.top&&(r-=a,g.top="bottom")),"element"!==f&&"both"!==f||(n<w[0]&&("right"===g.left?(n+=s,g.left="left"):"center"===g.left&&(n+=s/2,g.left="left")),n+s>w[2]&&("left"===g.left?(n-=s,g.left="right"):"center"===g.left&&(n-=s/2,g.left="right"))),"string"==typeof c?c=c.split(",").map((function(e){return e.trim()})):!0===c&&(c=["top","left","right","bottom"]),c=c||[];var E,S,C=[],k=[];r<w[1]&&(c.indexOf("top")>=0?(r=w[1],C.push("top")):k.push("top")),r+a>w[3]&&(c.indexOf("bottom")>=0?(r=w[3]-a,C.push("bottom")):k.push("bottom")),n<w[0]&&(c.indexOf("left")>=0?(n=w[0],C.push("left")):k.push("left")),n+s>w[2]&&(c.indexOf("right")>=0?(n=w[2]-s,C.push("right")):k.push("right")),C.length&&(void 0,E=void 0!==t.options.pinnedClass?t.options.pinnedClass:t.getClass("pinned"),p.push(E),C.forEach((function(e){p.push(E+"-"+e)}))),k.length&&(void 0,S=void 0!==t.options.outOfBoundsClass?t.options.outOfBoundsClass:t.getClass("out-of-bounds"),p.push(S),k.forEach((function(e){p.push(S+"-"+e)}))),(C.indexOf("left")>=0||C.indexOf("right")>=0)&&(g.left=b.left=!1),(C.indexOf("top")>=0||C.indexOf("bottom")>=0)&&(g.top=b.top=!1),b.top===i.top&&b.left===i.left&&g.top===t.attachment.top&&g.left===t.attachment.left||(t.updateAttachClasses(g,b),t.trigger("update",{attachment:g,targetAttachment:b}))})),C((function(){!1!==t.options.addTargetClasses&&E(t.target,p,f),E(t.element,p,f)})),{top:r,left:n}}});var X,d=(X=r.Utils).getBounds,E=X.updateClasses;return C=X.defer,r.modules.push({position:function(e){var t=this,r=e.top,n=e.left,i=this.cache("element-bounds",(function(){return d(t.element)})),o=i.height,a=i.width,s=this.getTargetBounds(),l=r+o,c=n+a,u=[];r<=s.bottom&&l>=s.top&&["left","right"].forEach((function(e){var t=s[e];t!==n&&t!==c||u.push(e)})),n<=s.right&&c>=s.left&&["top","bottom"].forEach((function(e){var t=s[e];t!==r&&t!==l||u.push(e)}));var h=[],f=[];return h.push(this.getClass("abutted")),["left","top","right","bottom"].forEach((function(e){h.push(t.getClass("abutted")+"-"+e)})),u.length&&f.push(this.getClass("abutted")),u.forEach((function(e){f.push(t.getClass("abutted")+"-"+e)})),C((function(){!1!==t.options.addTargetClasses&&E(t.target,f,h),E(t.element,f,h)})),!0}}),P=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){i=!0,o=e}finally{try{!n&&s.return&&s.return()}finally{if(i)throw o}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r.modules.push({position:function(e){var t=e.top,r=e.left;if(this.options.shift){var n=this.options.shift;"function"==typeof this.options.shift&&(n=this.options.shift.call(this,{top:t,left:r}));var i=void 0,o=void 0;if("string"==typeof n){(n=n.split(" "))[1]=n[1]||n[0];var a=P(n,2);i=a[0],o=a[1],i=parseFloat(i,10),o=parseFloat(o,10)}else i=n.top,o=n.left;return{top:t+=i,left:r+=o}}}}),G},void 0===(n=r.apply(t,[]))||(e.exports=n)},78444:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=a(e,o(r)))}return e}function o(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)n.call(e,r)&&e[r]&&(t=a(t,r));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(r=function(){return i}.apply(t,[]))||(e.exports=r)}()}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.loaded=!0,r.exports}__webpack_require__.amdO={},__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var __webpack_exports__={};(()=>{"use strict";__webpack_require__(46414);var e=__webpack_require__(1986),t=__webpack_require__(62275),r=__webpack_require__(57825),n=__webpack_require__.n(r);function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const a={language:"en-US",messages:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},{"be.accessStatsPermissionsError":"Sorry, you do not have permission to see the access stats for this file.","be.activityFeed.fullDateTime":"{time, date, full} at {time, time, short}","be.activityFeedItemApiError":"There was a problem loading the activity feed. Please refresh the page or try again later.","be.activitySidebar.activityFeed.annotationMissingError":"This comment no longer exists","be.activitySidebar.activityFeed.commentMissingError":"This comment no longer exists","be.activitySidebar.activityFeed.feedInlineErrorTitle":"Error","be.activitySidebar.activityFeed.hideReplies":"Hide replies","be.activitySidebar.activityFeed.reply":"Reply","be.activitySidebar.activityFeed.replyInThread":"Reply in thread","be.activitySidebar.activityFeed.showReplies":"See {repliesToLoadCount, plural, one {# reply} other {# replies}}","be.activitySidebar.activityFeed.taskMissingError":"This task no longer exists","be.activitySidebarFilter.status.allActivity":"All Activity","be.activitySidebarFilter.status.allComments":"All Comments","be.activitySidebarFilter.status.open":"Unresolved Comments","be.activitySidebarFilter.status.resolved":"Resolved Comments","be.activitySidebarFilter.status.tasks":"Tasks","be.add":"Add","be.additionalTab.blockedByShieldAccessPolicy":"Use of this app is blocked due to a security policy.","be.annotationThread.errorDeleteAnnotation":"There was an error deleting this item.","be.annotationThread.errorEditAnnotation":"This annotation could not be modified.","be.annotattionThread.errorFetchAnnotation":"The annotation could not be fetched.","be.api.appActivityDeleteErrorMessage":"There was an error deleting this item.","be.api.commentCreateConflictMessage":"This comment already exists.","be.api.commentCreateErrorMessage":"There was an error creating this comment.","be.api.commentDeleteErrorMessage":"There was an error deleting this comment.","be.api.commentUpdateErrorMessage":"This comment could not be modified.","be.api.repliesFetchErrorMessage":"The replies to this comment could not be loaded.","be.api.taskActionErrorTitle":"Error","be.api.taskApproveErrorMessage":"An error has occurred while approving this task. Please refresh the page and try again.","be.api.taskCompleteErrorMessage":"An error has occurred while completing this task. Please refresh the page and try again.","be.api.taskCreateErrorMessage":"An error occurred while creating this task. Please try again.","be.api.taskDeleteErrorMessage":"There was an error while deleting this task. Please refresh the page and try again.","be.api.taskGroupExceedsWarningTitle":"One or more groups can not receive this task as a group size cannot exceed the limit of {max} assignees per group.","be.api.taskRejectErrorMessage":"An error has occurred while rejecting this task. Please refresh the page and try again.","be.appActivity.altIcon":"{appActivityName} Icon","be.appActivity.deleteMenuItem":"Delete","be.appActivity.deletePrompt":"Are you sure you want to permanently delete this app activity?","be.back":"Back","be.bookmark":"Bookmark","be.boxEditBlacklistedError":"This file cannot be opened locally","be.boxEditErrorBlockedByPolicy":"Local editing of this content has been disabled based on an access policy","be.boxToolsInstallMessage":"Install {boxTools} to open this file on your desktop","be.cancel":"Cancel","be.choose":"Choose","be.close":"Close","be.collaboratedFolder":"Collaborated Folder","be.collapse":"Collapse","be.complete":"Complete","be.contentInsights.contentAnalyticsErrorText":"There was a problem loading content insights. Please try again.","be.contentInsights.contentAnalyticsPermissionError":"Oops! You no longer have access to view content insights.","be.contentInsights.contentInsightsTitle":"Content Insights","be.contentInsights.downloadGraphLabel":"Chart displaying the number of downloads over the selected time period","be.contentInsights.downloadGraphType":"DOWNLOADS","be.contentInsights.openContentInsightsButton":"See Details","be.contentInsights.peopleGraphLabel":"Chart displaying the number of users over the selected time period","be.contentInsights.peopleTitle":"PEOPLE","be.contentInsights.previewGraphLabel":"Chart displaying the number of previews over the selected time period","be.contentInsights.previewGraphType":"PREVIEWS","be.contentInsights.trendDown":"Trending down","be.contentInsights.trendMonth":"PAST MONTH","be.contentInsights.trendThreeMonths":"PAST 3 MONTHS","be.contentInsights.trendUp":"Trending up","be.contentInsights.trendWeek":"PAST WEEK","be.contentInsights.trendYear":"PAST YEAR","be.contentSharing.badRequestError":"The request for this item was malformed.","be.contentSharing.collaboratorsLoadingError":"Could not retrieve collaborators for this item.","be.contentSharing.getContactsError":"Could not retrieve contacts.","be.contentSharing.loadingError":"Could not load shared link for this item.","be.contentSharing.noAccessError":"You do not have access to this item.","be.contentSharing.notFoundError":"Could not find shared link for this item.","be.contentSharing.sendInvitesError":"Could not send invites.","be.contentSharing.sendInvitesSuccess":"Successfully invited collaborators.","be.contentSharing.sharedLinkRemovalSuccess":"The shared link for this item was removed.","be.contentSharing.sharedLinkSettingsUpdateSuccess":"The shared link for this item was successfully updated.","be.contentSharing.sharedLinkUpdateError":"Could not update the shared link for this item.","be.contentSidebar.activityFeed.annotationActivity.annotationActivityDeleteMenuItem":"Delete","be.contentSidebar.activityFeed.annotationActivity.annotationActivityDeletePrompt":"Are you sure you want to permanently delete this comment?","be.contentSidebar.activityFeed.annotationActivity.annotationActivityEditMenuItem":"Modify","be.contentSidebar.activityFeed.annotationActivity.annotationActivityPostedFullDateTime":"{time, date, full} at {time, time, short}","be.contentSidebar.activityFeed.annotationActivity.annotationActivityResolveMenuItem":"Resolve","be.contentSidebar.activityFeed.annotationActivity.annotationActivityUnresolveMenuItem":"Unresolve","be.contentSidebar.activityFeed.annotationActivityPageItem":"Page {number}","be.contentSidebar.activityFeed.annotationActivityVersionLink":"Version {number}","be.contentSidebar.activityFeed.annotationActivityVersionUnavailable":"Version Unavailable","be.contentSidebar.activityFeed.comment.commentDeleteMenuItem":"Delete","be.contentSidebar.activityFeed.comment.commentDeletePrompt":"Are you sure you want to permanently delete this comment?","be.contentSidebar.activityFeed.comment.commentEditMenuItem":"Modify","be.contentSidebar.activityFeed.comment.commentPostedFullDateTime":"{time, date, full} at {time, time, short}","be.contentSidebar.activityFeed.comment.commentResolveMenuItem":"Resolve","be.contentSidebar.activityFeed.comment.commentUnresolveMenuItem":"Unresolve","be.contentSidebar.activityFeed.comment.hideReplies":"Hide replies","be.contentSidebar.activityFeed.comment.inlineCommentAnnotationIconTitle":"Inline Comment","be.contentSidebar.activityFeed.comment.reply":"Reply","be.contentSidebar.activityFeed.comment.replyInThread":"Reply in thread","be.contentSidebar.activityFeed.comment.showReplies":"See {repliesToLoadCount, plural, one {# reply} other {# replies}}","be.contentSidebar.activityFeed.commentForm.approvalAddAssignee":"Add an assignee","be.contentSidebar.activityFeed.commentForm.approvalAddTask":"Add Task","be.contentSidebar.activityFeed.commentForm.approvalAddTaskTooltip":"Assigning a task to someone will send them a notification with the message in the comment box and allow them to approve or deny.","be.contentSidebar.activityFeed.commentForm.approvalAssignees":"Assignees","be.contentSidebar.activityFeed.commentForm.approvalDueDate":"Due Date","be.contentSidebar.activityFeed.commentForm.approvalSelectDate":"Select a date","be.contentSidebar.activityFeed.commentForm.atMentionTip":"@mention users to notify them.","be.contentSidebar.activityFeed.commentForm.atMentionTipDescription":"Use the @ symbol to mention users and use the up and down arrow keys to scroll through autocomplete suggestions.","be.contentSidebar.activityFeed.commentForm.commentCancel":"Cancel","be.contentSidebar.activityFeed.commentForm.commentLabel":"Write a comment","be.contentSidebar.activityFeed.commentForm.commentPost":"Post","be.contentSidebar.activityFeed.commentForm.commentWrite":"Write a comment","be.contentSidebar.activityFeed.commmon.showOriginalMessage":"Show Original","be.contentSidebar.activityFeed.common.activityStatusResolved":"RESOLVED","be.contentSidebar.activityFeed.common.editedMessage":" (edited)","be.contentSidebar.activityFeed.common.seeLessMessage":"See less","be.contentSidebar.activityFeed.common.seeMoreMessage":"See more","be.contentSidebar.activityFeed.common.translateMessage":"Translate","be.contentSidebar.activityFeed.task.approvalTaskAnnotationIconTitle":"Approval Task","be.contentSidebar.activityFeed.task.generalTaskAnnotationIconTitle":"General Task","be.contentSidebar.activityFeed.task.taskAnyAffordanceTooltip":"Only one assignee is required to complete this task","be.contentSidebar.activityFeed.task.taskDeleteMenuItem":"Delete task","be.contentSidebar.activityFeed.task.taskDeletePrompt":"Are you sure you want to permanently delete this task?","be.contentSidebar.activityFeed.task.taskEditMenuItem":"Modify task","be.contentSidebar.activityFeed.task.taskMultipleFilesAffordanceTooltip":"There are multiple files associated with this task","be.contentSidebar.activityFeed.taskForm.taskAnyCheckboxLabel":"Only one assignee is required to complete this task","be.contentSidebar.activityFeed.taskForm.taskAnyInfoGroupTooltip":"Selecting this option will require only one assignee to complete this task. This will include assignees across all groups.","be.contentSidebar.activityFeed.taskForm.taskAnyInfoTooltip":"By default, all assignees are required to take action before a task is complete. Selecting this option will require only one assignee to complete this task.","be.contentSidebar.activityFeed.taskForm.taskApprovalAssigneeRemovalWarningMessage":"Unable to remove assignee(s) because the task is now approved.","be.contentSidebar.activityFeed.taskForm.taskCreateErrorTitle":"Error","be.contentSidebar.activityFeed.taskForm.taskCreateGroupLabel":"Group","be.contentSidebar.activityFeed.taskForm.taskEditWarningTitle":"Task Updated with Errors","be.contentSidebar.activityFeed.taskForm.taskGeneralAssigneeRemovalWarningMessage":"Unable to remove assignee(s) because the task is now completed.","be.contentSidebar.activityFeed.taskForm.taskGroupExceedsWarningTitle":"Exceeded max assignees per group","be.contentSidebar.activityFeed.taskForm.taskUpdateErrorMessage":"An error occurred while modifying this task. Please try again.","be.contentSidebar.activityFeed.taskForm.tasksAddTaskFormCancelLabel":"Cancel","be.contentSidebar.activityFeed.taskForm.tasksAddTaskFormDueDateLabel":"Due Date","be.contentSidebar.activityFeed.taskForm.tasksAddTaskFormMessageLabel":"Message","be.contentSidebar.activityFeed.taskForm.tasksAddTaskFormSelectAssigneesLabel":"Select Assignees","be.contentSidebar.activityFeed.taskForm.tasksAddTaskFormSubmitLabel":"Create","be.contentSidebar.activityFeed.taskForm.tasksEditTaskFormSubmitLabel":"Update","be.contentSidebar.activityFeed.taskNew.taskAssignmentCompleted":"Completed","be.contentSidebar.activityFeed.taskNew.taskCollaboratorLoadErrorMessage":"An error has occurred while loading collaborators for this task. Please try again.","be.contentSidebar.activityFeed.taskNew.taskDueDateLabel":"Due: {date}","be.contentSidebar.activityFeed.taskNew.taskFeedStatusDue":"DUE {dateTime}","be.contentSidebar.activityFeed.taskNew.taskShowLessAssignees":"Show Less","be.contentSidebar.activityFeed.taskNew.taskShowMoreAssignees":"Show {additionalAssigneeCount} More","be.contentSidebar.activityFeed.taskNew.taskShowMoreAssigneesOverflow":"{additionalAssigneeCount, plural, one {Show #+ More} other {Show #+ More}}","be.contentSidebar.activityFeed.taskNew.tasksFeedApproveAction":"Approve","be.contentSidebar.activityFeed.taskNew.tasksFeedApprovedLabel":"Approved","be.contentSidebar.activityFeed.taskNew.tasksFeedApprovedUppercaseLabel":"APPROVED","be.contentSidebar.activityFeed.taskNew.tasksFeedAssigneeListTitle":"Assignees","be.contentSidebar.activityFeed.taskNew.tasksFeedCompleteAction":"Mark as Complete","be.contentSidebar.activityFeed.taskNew.tasksFeedCompletedLabel":"Completed","be.contentSidebar.activityFeed.taskNew.tasksFeedCompletedUppercaseLabel":"COMPLETED","be.contentSidebar.activityFeed.taskNew.tasksFeedHeadlineApproval":"{user} assigned an Approval Task","be.contentSidebar.activityFeed.taskNew.tasksFeedHeadlineApprovalCurrentUser":"{user} assigned you an Approval Task","be.contentSidebar.activityFeed.taskNew.tasksFeedHeadlineGeneral":"{user} assigned a Task","be.contentSidebar.activityFeed.taskNew.tasksFeedHeadlineGeneralCurrentUser":"{user} assigned you a Task","be.contentSidebar.activityFeed.taskNew.tasksFeedInProgressLabel":"In Progress","be.contentSidebar.activityFeed.taskNew.tasksFeedInProgressUppercaseLabel":"IN PROGRESS","be.contentSidebar.activityFeed.taskNew.tasksFeedMoreAssigneesLabel":"See all assignees","be.contentSidebar.activityFeed.taskNew.tasksFeedRejectAction":"Reject","be.contentSidebar.activityFeed.taskNew.tasksFeedRejectedLabel":"Rejected","be.contentSidebar.activityFeed.taskNew.tasksFeedRejectedUppercaseLabel":"REJECTED","be.contentSidebar.activityFeed.taskNew.tasksFeedStatusApproved":"Approved {dateTime}","be.contentSidebar.activityFeed.taskNew.tasksFeedStatusCompleted":"Completed {dateTime}","be.contentSidebar.activityFeed.taskNew.tasksFeedStatusRejected":"Rejected {dateTime}","be.contentSidebar.activityFeed.taskNew.tasksFeedViewDetailsAction":"View Task Details","be.contentSidebar.addTask":"Add Task","be.contentSidebar.addTask.approval":"Approval Task","be.contentSidebar.addTask.approval.description":"Assignees will be responsible for approving or rejecting tasks","be.contentSidebar.addTask.approval.title":"Create Approval Task","be.contentSidebar.addTask.general":"General Task","be.contentSidebar.addTask.general.description":"Assignees will be responsible for marking tasks as complete","be.contentSidebar.addTask.general.title":"Create General Task","be.contentSidebar.boxAI.expand":"Expand","be.contentSidebar.boxSignFtuxBody":"Sign documents or send signature requests, right from where your content lives","be.contentSidebar.boxSignFtuxTitle":"Box Sign - Secure, seamless e-signatures in Box","be.contentSidebar.boxSignRequest":"Request Signature","be.contentSidebar.boxSignRequestSignature":"Request Signature","be.contentSidebar.boxSignSecurityBlockedTooltip":"This action is unavailable due to a security policy.","be.contentSidebar.boxSignSignMyself":"Sign Myself","be.contentSidebar.boxSignSignature":"Sign","be.contentSidebar.boxSignWatermarkBlockedTooltip":"This action is unavailable, because the file is watermarked.","be.contentSidebar.editTask.approval.title":"Modify Approval Task","be.contentSidebar.editTask.general.title":"Modify General Task","be.copy":"Copy","be.create":"Create","be.createDialogErrorInUse":"A folder with the same name already exists.","be.createDialogErrorInvalid":"This is an invalid folder name.","be.createDialogErrorTooLong":"This folder name is too long.","be.createDialogLabel":"New Folder","be.createDialogText":"Please enter a name.","be.currentUserErrorHeaderMessage":"Something went wrong when fetching the current user.","be.dateASC":"Date: Oldest → Newest","be.dateDESC":"Date: Newest → Oldest","be.defaultErrorMaskHeaderMessage":"We’re sorry, something went wrong.","be.defaultErrorMaskSubHeaderMessage":"Please refresh the page or try again later.","be.defaultInlineErrorContentMessage":"Please try again later.","be.defaultOpenWithDescription":"Open this file with a partner service","be.defaultSkill":"Skill Card","be.delete":"Delete","be.deleteDialogFileText":"Are you sure you want to delete {name}?","be.deleteDialogFolderText":"Are you sure you want to delete {name} and all its contents?","be.deleteDialogLabel":"Confirm Delete","be.description":"Description","be.descriptionPlaceholder":"Enter a description","be.docGenSidebar.docGenTags":"Doc Gen Tags","be.docGenSidebar.emptyTags":"This document has no tags","be.docGenSidebar.errorTags":"We couldn't load the tags","be.docGenSidebar.imageTags":"Image tags","be.docGenSidebar.refreshButton":"Refresh","be.docGenSidebar.refreshPrompt":"Please refresh the list.","be.docGenSidebar.textTags":"Text tags","be.download":"Download","be.drawAnnotation":"Drawing annotation mode","be.editLabel":"Edit","be.emptyOpenWithDescription":"No integrations are available for this file","be.error":"Error","be.errorBreadcrumb":"Error","be.errorOccured":"An error occurred","be.errorOpenWithDescription":"Opening this file with other services is currently unavailable","be.errorState":"A network error has occurred while trying to load.","be.executeIntegrationOpenWithErrorHeader":"We’re sorry, this integration is currently unavailable.","be.executeIntegrationOpenWithErrorSubHeader":"Please try again later.","be.expand":"Expand","be.externalFolder":"External Folder","be.faceSkill":"Faces","be.feedbackCtaText":"Click to provide feedback","be.feedbackFormDescription":"Beta Feedback Form","be.file":"File","be.fileAccessStatsErrorHeaderMessage":"Something went wrong when fetching the access stats.","be.fileClassificationErrorHeaderMessage":"Something went wrong when fetching classification.","be.fileDescriptionInlineErrorTitleMessage":"Something went wrong when saving the description.","be.fileRequestDisplayName":"File Request","be.folder":"Folder","be.folderState":"There are no items in this folder.","be.getVersionInfo":"Get version information","be.gridView":"Switch to Grid View","be.gridView.columnSize":"Column size","be.gridView.decreaseColumnSize":"Decrease column size","be.gridView.increaseColumnSize":"Increase column size","be.in":"In","be.interactedDate":"Last accessed on {date}","be.itemCreated":"Created","be.itemInteracted":"Last Accessed","be.itemModified":"Modified","be.itemName":"Name","be.itemOwner":"Owner","be.itemSize":"Size","be.itemUploader":"Uploader","be.keywordSkill":"Topics","be.keywordsAppliedList":"Keywords were applied","be.keywordsList":"Keywords: {words}","be.listView":"Switch to List View","be.loading":"Loading","be.loadingState":"Please wait while the items load...","be.logo":"Logo","be.max":"max","be.messageCenter.all":"All","be.messageCenter.boxEducation":"Box Education","be.messageCenter.errorFetchingPosts":"Sorry, we are having trouble showing posts at the moment. It may help to refresh the page.","be.messageCenter.events":"Events","be.messageCenter.noPosts":"There are no posts for this category at the moment.","be.messageCenter.previewError":"Sorry, we're having trouble showing this image. ","be.messageCenter.product":"Product","be.messageCenter.title":"What's New","be.metadataState":"There are no items in this folder.","be.modifiedDate":"Modified {date}","be.modifiedDateBy":"Modified {date} by {name}","be.moreOptions":"More options","be.nameASC":"Name: A → Z","be.nameDESC":"Name: Z → A","be.nameDate":"{date} by {name}","be.newFolder":"New Folder","be.nextFile":"Next File","be.nextSegment":"Next Segment","be.noActivity":"No activity to show","be.noActivityAnnotationPrompt":"Hover over the preview and use the controls at the bottom to annotate the file.","be.noActivityCommentPrompt":"Comment and @mention people to notify them.","be.open":"Open","be.pagination.nextPage":"Next Page","be.pagination.pageStatus":"{pageNumber} of {pageCount}","be.pagination.previousPage":"Previous Page","be.personalFolder":"Personal Folder","be.pointAnnotation":"Point annotation mode","be.preview":"Preview","be.previewError":"This preview didn’t load. Please try to open or download the file to view.","be.previewErrorBlockedByPolicy":"Your access to this content is restricted due to a security policy.","be.previewUpdate":"A new version of this file is available.","be.previousFile":"Previous File","be.previousSegment":"Previous Segment","be.print":"Print","be.priorCollaborator":"A Prior Collaborator","be.recentsBreadcrumb":"Recents","be.recentsState":"There are no recent items yet.","be.reload":"Reload","be.remove":"Remove","be.rename":"Rename","be.renameDialogErrorInUse":"An item with the same name already exists.","be.renameDialogErrorInvalid":"This name is invalid.","be.renameDialogErrorTooLong":"This name is too long.","be.renameDialogLabel":"Rename","be.renameDialogText":"Please enter a new name for {name}:","be.resume":"Resume","be.resumeAll":"Resume All","be.retry":"Retry","be.rootBreadcrumb":"All Files","be.save":"Save","be.searchBreadcrumb":"Search Results","be.searchPlaceholder":"Search files and folders","be.searchState":"Sorry, we couldn’t find what you’re looking for.","be.selected":"{count} Selected","be.selectedBreadcrumb":"Selected Items","be.selectedState":"You haven’t selected any items yet.","be.share":"Share","be.shareAccessCollab":"Access: People in this folder","be.shareAccessCompany":"People in this company","be.shareAccessNone":"No shared link","be.shareAccessOpen":"Access: People with the link","be.shareAccessRemove":"Remove shared link","be.shareDialogLabel":"Share","be.shareDialogNone":"None","be.shareDialogText":"Shared Link:","be.sidebarAccessStats":"Access Stats","be.sidebarActivityTitle":"Activity","be.sidebarBoxAITitle":"Box AI","be.sidebarContentInsights":"Content Insights","be.sidebarDetailsTitle":"Details","be.sidebarDocGenTitle":"Doc Gen Tags","be.sidebarDocGenTooltip":"Box Doc Gen","be.sidebarFileFetchingErrorContent":"An error has occurred while fetching your Box file. Please refresh the page and try again.","be.sidebarHide":"Hide Sidebar","be.sidebarMetadataEditingErrorContent":"An error has occurred while updating metadata. Please refresh the page and try again.","be.sidebarMetadataFetchingErrorContent":"An error has occurred while fetching metadata. Please refresh the page and try again.","be.sidebarMetadataTitle":"Metadata","be.sidebarNavLabel":"Sidebar","be.sidebarProperties":"File Properties","be.sidebarShow":"Show Sidebar","be.sidebarSkillsErrorContent":"An error has occurred while updating skills. Please refresh the page and try again.","be.sidebarSkillsErrorTitle":"Skills Error","be.sidebarSkillsTitle":"Skills","be.sidebarVersions.current":"Current Version","be.sidebarVersions.delete":"Delete","be.sidebarVersions.deleteError":"File version could not be deleted.","be.sidebarVersions.deletedBy":"Deleted by {name}","be.sidebarVersions.disabledByRetention":"Disabled by retention policy","be.sidebarVersions.download":"Download","be.sidebarVersions.downloadError":"File version could not be downloaded.","be.sidebarVersions.empty":"No prior versions are available for this file.","be.sidebarVersions.fetchError":"File versions could not be retrieved.","be.sidebarVersions.fileRequestDisplayName":"File Request","be.sidebarVersions.notAvailable":"Sorry, version history is not available with your current account plan. To access versioning, select from one of our paid plans.","be.sidebarVersions.preview":"Preview","be.sidebarVersions.priorWeek":"Last Week","be.sidebarVersions.promote":"Make Current","be.sidebarVersions.promoteError":"File version could not be made current.","be.sidebarVersions.promotedBy":"Promoted from v{versionPromoted} by {name}","be.sidebarVersions.restore":"Restore","be.sidebarVersions.restoreError":"File version could not be restored.","be.sidebarVersions.restoredBy":"Restored by {name}","be.sidebarVersions.serverError":"Server Error","be.sidebarVersions.thisMonth":"This Month","be.sidebarVersions.title":"Version History","be.sidebarVersions.today":"Today","be.sidebarVersions.toggle":"Toggle Actions Menu","be.sidebarVersions.upgradeButton":"Upgrade","be.sidebarVersions.upgradeLink":"Upgrade Now","be.sidebarVersions.uploadedBy":"Uploaded by {name}","be.sidebarVersions.versionLimitExceeded":"You are limited to the last {versionLimit, number} {versionLimit, plural, one {version} other {versions}}.","be.sidebarVersions.versionMaxEntries":"Version history is limited to the last {maxVersions} entries.","be.sidebarVersions.versionNumberBadge":"V{versionNumber}","be.sidebarVersions.versionNumberLabel":"Version number {versionNumber}","be.sidebarVersions.versionRetentionDelete":"Will be deleted {time} by retention policy.","be.sidebarVersions.versionRetentionIndefinite":"Retained indefinitely by retention policy.","be.sidebarVersions.versionRetentionRemove":"Retention policy expires on {time}.","be.sidebarVersions.versionUpsell":"Sorry, version history is not available with your current account plan. To access versioning, select from one of our paid plans.","be.sidebarVersions.versionUserUnknown":"Unknown","be.sidebarVersions.yesterday":"Yesterday","be.sizeASC":"Size: Smallest → Largest","be.sizeDESC":"Size: Largest → Smallest","be.skillFileProcessingError":"We’re sorry, something went wrong with processing the file.","be.skillInvalidFileExtensionError":"We’re sorry, no skills information was found. This file extension is currently not supported.","be.skillInvalidFileSizeError":"We’re sorry, no skills information was found. This file size is currently not supported.","be.skillInvokedStatus":"We’re preparing to process your file - please hold!","be.skillNoInfoFoundError":"We’re sorry, no skills information was found.","be.skillPendingStatus":"We’re working on processing your file - please hold!","be.skillUnknownError":"Something went wrong with running this skill or fetching its data.","be.sort":"Sort","be.statusSkill":"Status","be.today":"today","be.topicsSkill":"Topics","be.transcriptEdit":"Click any section to edit.","be.transcriptSkill":"Transcript","be.upload":"Upload","be.uploadEmptyFileInput":"Browse your device","be.uploadEmptyFolderInput":"Select Folders","be.uploadEmptyState":"Empty state","be.uploadEmptyWithFolderUploadDisabled":"Drag and drop files","be.uploadEmptyWithFolderUploadEnabled":"Drag and drop files and folders","be.uploadError":"A network error has occurred while trying to upload.","be.uploadErrorState":"Error state","be.uploadErrorTooManyFiles":"You can only upload up to {fileLimit} file(s) at a time.","be.uploadInProgress":"Drag and drop to add additional files","be.uploadNoDragDrop":"Select files from your device","be.uploadOptions":"{option1} or {option2}","be.uploadSuccess":"Success! Your files have been uploaded.","be.uploadSuccessFileInput":"Select More Files","be.uploadSuccessFolderInput":"Select More Folders","be.uploadSuccessState":"Success state","be.uploadsCancelButtonTooltip":"Cancel this upload","be.uploadsDefaultErrorMessage":"Something went wrong with the upload. Please try again.","be.uploadsFileSizeLimitExceededErrorMessage":"File size exceeds the folder owner’s file size limit","be.uploadsFileSizeLimitExceededErrorMessageForUpgradeCta":"This file exceeds your plan’s upload limit. Upgrade now to store larger files.","be.uploadsFileSizeLimitExceededUpgradeMessageForUpgradeCta":"Upgrade","be.uploadsItemNameInUseErrorMessage":"A file with this name already exists.","be.uploadsManagerUploadComplete":"Completed","be.uploadsManagerUploadFailed":"Some Uploads Failed","be.uploadsManagerUploadInProgress":"Uploading","be.uploadsManagerUploadPrompt":"Drop files on this page to upload them into this folder.","be.uploadsOneOrMoreChildFoldersFailedToUploadMessage":"One or more child folders failed to upload.","be.uploadsPackageUploadErrorMessage":"Failed to upload package file. Please retry by saving as a single file.","be.uploadsPendingFolderSizeLimitErrorMessage":"Pending app folder size limit exceeded","be.uploadsProvidedFolderNameInvalidMessage":"Provided folder name, {name}, could not be used to create a folder.","be.uploadsRetryButtonTooltip":"Retry upload","be.uploadsStorageLimitErrorMessage":"Account storage limit reached","be.versionDeleted":"{name} deleted v{version_number}","be.versionMultipleUsersUploaded":"{numberOfCollaborators} collaborators uploaded v{versions}","be.versionPromoted":"{name} promoted v{version_promoted} to v{version_number}","be.versionRestored":"{name} restored v{version_number}","be.versionUploadCollapsed":"{name} uploaded v{versions}","be.versionUploaded":"{name} uploaded v{version_number}","be.yesterday":"yesterday","boxui.accessStats.accessStatsComments":"Comments","boxui.accessStats.accessStatsDownloads":"Downloads","boxui.accessStats.accessStatsEdits":"Edits","boxui.accessStats.accessStatsPreviews":"Previews","boxui.accessStats.accessStatsViewDetails":"View Details","boxui.accessStats.accessStatsViews":"Views","boxui.advancedContentInsights.advancedContentInsightsDescription":"Get actionable insights into how viewers are engaging with this content. Measure average time spent, page-by-page engagement, per person and per visit details.","boxui.advancedContentInsights.advancedContentInsightsTitleDisabled":"Activate Engagement Insights","boxui.advancedContentInsights.advancedContentInsightsTitleEnabled":"Engagement Insights is activated","boxui.avatar.externalUser":"External user","boxui.badges.beta":"BETA","boxui.badges.trial":"TRIAL","boxui.badges.upgrade":"UPGRADE","boxui.base.nextMonth":"Next Month","boxui.base.previousMonth":"Previous Month","boxui.breadcrumb.breadcrumbLabel":"Breadcrumb","boxui.categorySelector.label.more":"More","boxui.checkboxTooltip.iconInfoText":"Info","boxui.classification.add":"Add","boxui.classification.classification":"Classification","boxui.classification.classificationDarkBlue":"Dark Blue","boxui.classification.classificationGreen":"Green","boxui.classification.classificationGrey":"Grey","boxui.classification.classificationLightBlue":"Light Blue","boxui.classification.classificationOrange":"Orange","boxui.classification.classificationPurple":"Purple","boxui.classification.classificationRed":"Red","boxui.classification.classificationYellow":"Yellow","boxui.classification.definition":"Definition","boxui.classification.edit":"Edit","boxui.classification.importedBy":"Imported from {modifiedBy} on {modifiedAt}","boxui.classification.missing":"Not classified","boxui.classification.modifiedBy":"Applied by {modifiedBy} on {modifiedAt}","boxui.classification.modifiedByLabel":"Classification Label","boxui.collaboratorAvatars.collaboration.pendingCollabText":"Pending","boxui.collaboratorAvatars.collaboratorAvatarsLabel":"Shared with","boxui.collaboratorAvatars.collaborators.expirationTooltipText":"Access expires on {date}","boxui.collaboratorAvatars.collaborators.externalCollabTooltipText":"{email} is from outside of your company","boxui.collaboratorAvatars.manageAllLinkText":"Manage All","boxui.collaboratorAvatars.viewAdditionalPeopleText":"View additional people","boxui.collapsiblesidebar.collapseBtnLabel":"Collapse","boxui.collapsiblesidebar.expandBtnLabel":"Expand","boxui.contentAnswers.contentAnswersTitle":"Box AI","boxui.contentAnswers.defaultTooltip":"Get instant answers about this document using Box AI","boxui.contentAnswers.disabledTooltipFileNotCompatible":"Box AI is not currently supported for this file type","boxui.contentAnswers.documentSuggestedQuestionLabel1":"Summarize this document","boxui.contentAnswers.documentSuggestedQuestionLabel2":"What are the key takeaways?","boxui.contentAnswers.documentSuggestedQuestionLabel3":"How can this document be improved?","boxui.contentAnswers.documentSuggestedQuestionLabel4":"Are there any next steps defined?","boxui.contentAnswers.documentSuggestedQuestionPrompt1":"Summarize this document","boxui.contentAnswers.documentSuggestedQuestionPrompt2":"What are the key takeaways?","boxui.contentAnswers.documentSuggestedQuestionPrompt3":"How can this document be improved?","boxui.contentAnswers.documentSuggestedQuestionPrompt4":"Are there any next steps defined?","boxui.contentAnswers.hasQuestionsTooltip":"Return to Box AI","boxui.contentAnswers.welcomeMessageSpreadsheetNotice":"Spreadsheet support works best for text dense files","boxui.contentAnswers.welcomeMessageSpreadsheetNoticeAriaLabel":"spreadsheet support notification banner","boxui.contentExplorer.breadcrumb":"Breadcrumb","boxui.contentExplorer.cancel":"Cancel","boxui.contentExplorer.choose":"Choose","boxui.contentExplorer.clickToGoBack":"Click to go back","boxui.contentExplorer.clickToViewPath":"Click to view path","boxui.contentExplorer.copy":"Copy","boxui.contentExplorer.emptyFolder":"There are no subfolders in this folder.","boxui.contentExplorer.emptySearch":"Sorry, we couldn't find what you're looking for.","boxui.contentExplorer.filepath":"File path","boxui.contentExplorer.folderTreeBreadcrumbsText":"{folderName} ({totalItems})","boxui.contentExplorer.includeSubfolders":"Include Subfolders","boxui.contentExplorer.infoNoticeIconAriaLabel":"Info icon","boxui.contentExplorer.move":"Move","boxui.contentExplorer.name":"Name","boxui.contentExplorer.newFolder":"New Folder","boxui.contentExplorer.numFoldersSelected":"{numSelected, plural, =0 {0 folders selected} one {1 folder selected} other {# folders selected} } ","boxui.contentExplorer.numItemsSelected":"{numSelected, plural, =0 {0 items selected} one {1 item selected} other {# items selected} } ","boxui.contentExplorer.numSelected":"{numSelected} Selected","boxui.contentExplorer.result":"{itemsCount} result","boxui.contentExplorer.results":"{itemsCount} results","boxui.contentExplorer.searchPlaceholder":"Search","boxui.contentExplorer.searchResults":"Search Results","boxui.contentExplorer.selectAll":"Select All","boxui.contentExplorer.selectItem":"Select {name}","boxui.contentexplorer.newFolder.forbidden":"You do not have permission to create a folder here.","boxui.core.cancel":"Cancel","boxui.core.close":"Close","boxui.core.copied":"Copied","boxui.core.copy":"Copy","boxui.core.done":"Done","boxui.core.guidetooltip.navigation":"{currentStepIndex} of {totalNumSteps}","boxui.core.hotkeys.altKey":"Alt","boxui.core.hotkeys.ctrlKey":"Ctrl","boxui.core.hotkeys.enterKey":"Enter","boxui.core.hotkeys.escKey":"Esc","boxui.core.hotkeys.hotkeyModalTitle":"Keyboard Shortcuts","boxui.core.hotkeys.hotkeySequence":"{key1} then {key2}","boxui.core.hotkeys.shiftKey":"Shift","boxui.core.hotkeys.spacebarKey":"Spacebar","boxui.core.okay":"Okay","boxui.core.optional":"optional","boxui.core.save":"Save","boxui.core.selection.deselectAllDescription":"Deselect all items","boxui.core.selection.downDescription":"Select next item","boxui.core.selection.selectAllDescription":"Select all items","boxui.core.selection.shiftDownDescription":"Add next item to current selection","boxui.core.selection.shiftUpDescription":"Add previous item to current selection","boxui.core.selection.shiftXDescription":"Select current item","boxui.core.selection.upDescription":"Select previous item","boxui.core.send":"Send","boxui.datePicker.chooseDate":"Choose Date","boxui.datePicker.dateClearButton":"Clear Date","boxui.datePicker.dateInputMaxError":"Please enter a date before {maxLocaleDate}","boxui.datePicker.dateInputMinError":"Please enter a date after {minLocaleDate}","boxui.datePicker.dateInputRangeError":"Please enter a date between {minLocaleDate} and {maxLocaleDate}","boxui.datePicker.iconAlertText":"Invalid Date","boxui.draftjs.mentionSelector.noUsersFound":"No users found","boxui.draftjs.mentionSelector.startMention":"Mention someone to notify them","boxui.draftjs.mentionSelector.usersFound":"{usersCount, plural, one {one user found} other {{usersCount} users found}}","boxui.errorMask.iconSadCloudText":"Sad Box Cloud","boxui.features.VirtualizedTableRenderers.allFiles":"All Files","boxui.features.VirtualizedTableRenderers.anonymousUser":"Anonymous User","boxui.features.VirtualizedTableRenderers.externalFile":"External File","boxui.features.VirtualizedTableRenderers.externalFolder":"External Folder","boxui.features.VirtualizedTableRenderers.lastModifiedBy":"{lastModified} by {user}","boxui.features.VirtualizedTableRenderers.unknownUser":"Unknown User","boxui.itemDetails.archived":"Archived","boxui.itemDetails.bookmarkExpiration":"This bookmark will be deleted on {expiration}.","boxui.itemDetails.created":"Created","boxui.itemDetails.deleted":"Deleted","boxui.itemDetails.description":"Description","boxui.itemDetails.descriptionPlaceholder":"Enter a description","boxui.itemDetails.enterpriseOwner":"Enterprise Owner","boxui.itemDetails.fileExpiration":"This file will be deleted on {expiration}.","boxui.itemDetails.folderExpiration":"This folder will be deleted on {expiration}.","boxui.itemDetails.modified":"Modified","boxui.itemDetails.owner":"Owner","boxui.itemDetails.retentionPolicyDescription":"Policy","boxui.itemDetails.retentionPolicyExpiration":"Policy Expiration","boxui.itemDetails.retentionPolicyExtend":"Extend","boxui.itemDetails.savedVersions":"{versionCount, number} Saved Versions","boxui.itemDetails.sharedLinkExpiration":"This shared link will be disabled on {expiration}.","boxui.itemDetails.size":"Size","boxui.itemDetails.uploader":"Uploader","boxui.itemDetails.url":"URL","boxui.itemDetails.urlPlaceholder":"Enter a valid url","boxui.media.menuButtonArialLabel":"Options","boxui.metadataInstanceEditor.allAttributesAreHidden":"All attributes in this template have been hidden.","boxui.metadataInstanceEditor.applyCascadePolicyText":"Apply template and its values to all new and existing items in this folder and its subfolders.","boxui.metadataInstanceEditor.cannotApplyCascadePolicyText":"Cascade policy cannot be applied to custom metadata at this time.","boxui.metadataInstanceEditor.cascadePolicyLearnMore":"Learn more","boxui.metadataInstanceEditor.cascadePolicyModeQuestion":"In the case of conflicts when applying this template and its values to existing items, what would you like to do? This is a one time action.","boxui.metadataInstanceEditor.cascadePolicyOverwriteMode":"Overwrite all existing template values","boxui.metadataInstanceEditor.cascadePolicySkipMode":"Skip and keep all existing template values","boxui.metadataInstanceEditor.customAdd":"Add","boxui.metadataInstanceEditor.customErrorDuplicateKey":"A field with that key already exists.","boxui.metadataInstanceEditor.customErrorInternalKey":"Keys cannot begin with a $.","boxui.metadataInstanceEditor.customErrorRequired":"A key is required.","boxui.metadataInstanceEditor.customKey":"Key","boxui.metadataInstanceEditor.customKeyPlaceholder":"e.g. Order Number","boxui.metadataInstanceEditor.customNewField":"New Field","boxui.metadataInstanceEditor.customNewFieldMessage":"Add a custom metadata field. Other people will be able to see and search for this field.","boxui.metadataInstanceEditor.customRemove":"Remove","boxui.metadataInstanceEditor.customTitle":"Custom Metadata","boxui.metadataInstanceEditor.customValue":"Value","boxui.metadataInstanceEditor.customValuePlaceholder":"e.g. 42","boxui.metadataInstanceEditor.editTooltip":"Edit Metadata","boxui.metadataInstanceEditor.enableCascadePolicy":"Enable Cascade Policy","boxui.metadataInstanceEditor.fileMetadataRemoveCustomTemplateConfirm":"Are you sure you want to delete this custom metadata and all of its values from this file?","boxui.metadataInstanceEditor.fileMetadataRemoveTemplateConfirm":'Are you sure you want to delete "{metadataName}" and all of its values from this file?',"boxui.metadataInstanceEditor.folderMetadataRemoveCustomTemplateConfirm":"Are you sure you want to delete this custom metadata and all of its values? Any metadata template values already applied to files in this folder will not be deleted.","boxui.metadataInstanceEditor.folderMetadataRemoveTemplateConfirm":'Are you sure you want to delete "{metadataName}" and all of its values? Any metadata template values already applied to files in this folder will not be deleted.',"boxui.metadataInstanceEditor.invalidValue":"Invalid Input!","boxui.metadataInstanceEditor.metadataCancel":"Cancel","boxui.metadataInstanceEditor.metadataCascadePolicyEnabledInfo":"This template and its values are being cascaded to all items in this folder and its subfolders.","boxui.metadataInstanceEditor.metadataSave":"Save","boxui.metadataInstanceEditor.noAttributesForTemplate":"There are no attributes in this template.","boxui.metadataInstanceEditor.noMetadata":"No Metadata Applied","boxui.metadataInstanceEditor.noMetadataAddTemplate":"Click 'Add' in the top right to add metadata to this item","boxui.metadataInstanceEditor.operationNotImmediate":"This operation is not immediate and may take some time.","boxui.metadataInstanceEditor.removeTemplate":"Remove","boxui.metadataInstanceEditor.templateAdd":"Add","boxui.metadataInstanceEditor.templateSearchPlaceholder":"Search all templates","boxui.metadataInstanceEditor.templatesFetchFailed":"Sorry! We could not fetch templates. Please contact your administrator","boxui.metadataInstanceEditor.templatesNoRemainingTemplates":"All templates have been added","boxui.metadataInstanceEditor.templatesNoResults":"No Results","boxui.metadataInstanceEditor.templatesServerHasNoTemplates":"Zero templates","boxui.metadataInstanceEditor.templatesTitle":"Templates","boxui.metadataInstanceFields.customAdd":"Add","boxui.metadataInstanceFields.customRemove":"Remove","boxui.metadataInstanceFields.fieldMultiSelectValue":"Select Values","boxui.metadataInstanceFields.fieldNoValue":"No Value","boxui.metadataInstanceFields.fieldSelectValue":"Select Value","boxui.metadataInstanceFields.fieldSetDate":"Set Date","boxui.metadataInstanceFields.fieldSetValue":"Set Value","boxui.metadataInstanceFields.invalidMetadataFieldType":"Invalid metadata field type!","boxui.modalDialog.backModalText":"Back","boxui.modalDialog.closeModalText":"Close Modal","boxui.newFolderModal.cancel":"Cancel","boxui.newFolderModal.create":"Create","boxui.newFolderModal.folderName.label":"Folder Name","boxui.newFolderModal.folderName.placeholder":"My New Folder","boxui.newFolderModal.title":'Create a New Folder in "{parentFolderName}"',"boxui.notification.clearNotification":"Clear Notification","boxui.presence.accessedInTheLastMinute":"Viewed less than a minute ago","boxui.presence.activeNow":"Active now","boxui.presence.commentedIntheLastMinute":"Commented less than a minute ago","boxui.presence.getLinkButton":"Get Link","boxui.presence.inviteButton":"Invite People","boxui.presence.modifiedIntheLastMinute":"Edited less than a minute ago","boxui.presence.previewPresenceFlyoutAccessStatsLink":"See all activity","boxui.presence.previewPresenceFlyoutActivityCTA":"View Recent Activity","boxui.presence.previewPresenceFlyoutCopy":"Quickly see who has commented on, edited, or viewed this file.","boxui.presence.previewedIntheLastMinute":"Previewed less than a minute ago","boxui.presence.recentActivity":"Recent Activity","boxui.presence.timeSinceLastAccessed":"Viewed {timeAgo}","boxui.presence.timeSinceLastCommented":"Commented {timeAgo}","boxui.presence.timeSinceLastModified":"Edited {timeAgo}","boxui.presence.timeSinceLastPreviewed":"Previewed {timeAgo}","boxui.presence.toggleButtonLabel":"Recent Activity","boxui.queryBar.addFilterButtonText":"+ Add Filter","boxui.queryBar.applyFiltersButtonText":"Apply","boxui.queryBar.columnsButtonText":"Columns","boxui.queryBar.columnsHiddenButtonText":"{count, plural, one {1 Column Hidden} other {{count} Columns Hidden}}","boxui.queryBar.connectorAndText":"AND","boxui.queryBar.connectorOrText":"OR","boxui.queryBar.connectorWhereText":"WHERE","boxui.queryBar.filtersButtonText":"Modify Filters","boxui.queryBar.metadataViewTemplateListHeaderTitle":"METADATA TEMPLATES","boxui.queryBar.multipleFiltersButtonText":"{number} Filters","boxui.queryBar.noFiltersAppliedText":"No Filters Applied","boxui.queryBar.noTemplatesText":"No Templates Available","boxui.queryBar.selectValuePlaceholderText":"Select value","boxui.queryBar.templatesButtonText":"Select Metadata","boxui.queryBar.templatesLoadingButtonText":"Template Name","boxui.queryBar.tooltipEnterValueError":"Please Enter a Value","boxui.queryBar.tooltipInvalidFloatError":"Please Enter a Decimal Number","boxui.queryBar.tooltipInvalidNumberError":"Please Enter an Integer","boxui.queryBar.tooltipSelectDateError":"Please Select a Date","boxui.queryBar.tooltipSelectValueError":"Please Select a Value","boxui.quickSearch.bookmark":"Bookmark","boxui.quickSearch.collaboratedFolder":"Collaborated Folder","boxui.quickSearch.externalFolder":"External Folder","boxui.quickSearch.file":"File","boxui.quickSearch.parentFolder":"Parent Folder","boxui.quickSearch.personalFolder":"Personal Folder","boxui.quickSearch.updatedText":"{date, date, medium} by {user}","boxui.quickSearch.updatedTextToday":"Today by {user}","boxui.quickSearch.updatedTextYesterday":"Yesterday by {user}","boxui.readableTime.eventTime":"{time, date, medium}","boxui.readableTime.eventTimeDate":"{time, date, medium} at {time, time, short}","boxui.readableTime.eventTimeDateShort":"{date} at {time, time, short}","boxui.readableTime.eventTimeToday":"Today at {time, time, short}","boxui.readableTime.eventTimeWeekdayLong":"{weekday}, {time, date, medium}","boxui.readableTime.eventTimeYesterday":"Yesterday at {time, time, short}","boxui.searchForm.clearButtonTitle":"Clear","boxui.searchForm.searchButtonTitle":"Search","boxui.searchForm.searchLabel":"Search query","boxui.securityCloudGame.accessibilityInstructions":"For security purposes, please drag the cloud object onto the target. You are on a {row} by {column} grid with a movable cloud object and a target area. Press spacebar to grab the cloud object, arrow keys to move, and spacebar to drop on the target.","boxui.securityCloudGame.cloudDropped":"Cloud object dropped.","boxui.securityCloudGame.cloudGrabbed":"Cloud object grabbed.","boxui.securityCloudGame.cloudObject":"Cloud object","boxui.securityCloudGame.currentPosition":"Current position: Row {row}, Column {column}.","boxui.securityCloudGame.instructions":"For security purposes, please drag the white cloud onto the dark cloud. Keyboard users: Press spacebar to grab the cloud, arrow keys to move, and spacebar to drop.","boxui.securityCloudGame.reachBottomEdge":"Reached bottom edge of grid.","boxui.securityCloudGame.reachLeftEdge":"Reached left edge of grid.","boxui.securityCloudGame.reachRightEdge":"Reached right edge of grid.","boxui.securityCloudGame.reachTopEdge":"Reached top edge of grid.","boxui.securityCloudGame.success":"Success!","boxui.securityCloudGame.target":"Target","boxui.securityCloudGame.targetInRange":"Target in range, you can drop the cloud object.","boxui.securityCloudGame.targetPosition":"Target position: Row {row}, Column {column}.","boxui.securityControls.allAppNames":"All applications: {appsList}","boxui.securityControls.appDownloadBlacklist":"Download restricted for some applications: {appNames}","boxui.securityControls.appDownloadBlacklistOverflow":"Download restricted for some applications: {appNames} +{remainingAppCount} more","boxui.securityControls.appDownloadRestricted":"Download restricted for some applications.","boxui.securityControls.appDownloadWhitelist":"Only select applications are allowed: {appNames}","boxui.securityControls.appDownloadWhitelistOverflow":"Only select applications are allowed: {appNames} +{remainingAppCount} more","boxui.securityControls.boxSignRequestRestricted":"Sign restrictions apply.","boxui.securityControls.desktopDownloadExternalOwners":"Download restricted on Box Drive, except Owners/Co-Owners. Also restricted for external users.","boxui.securityControls.desktopDownloadExternalOwnersEditors":"Download restricted on Box Drive, except Owners/Co-Owners/Editors. Also restricted for external users.","boxui.securityControls.desktopDownloadOwners":"Download restricted on Box Drive, except Owners/Co-Owners.","boxui.securityControls.desktopDownloadOwnersEditors":"Download restricted on Box Drive, except Owners/Co-Owners/Editors.","boxui.securityControls.downloadExternal":"Download restricted on Box Drive for external users.","boxui.securityControls.externalCollabBlock":"External collaboration restricted.","boxui.securityControls.externalCollabDomainList":"External collaboration limited to approved domains.","boxui.securityControls.mobileDownloadExternal":"Download restricted on mobile for external users.","boxui.securityControls.mobileDownloadExternalOwners":"Download restricted on mobile, except Owners/Co-Owners. Also restricted for external users.","boxui.securityControls.mobileDownloadExternalOwnersEditors":"Download restricted on mobile, except Owners/Co-Owners/Editors. Also restricted for external users.","boxui.securityControls.mobileDownloadOwners":"Download restricted on mobile, except Owners/Co-Owners.","boxui.securityControls.mobileDownloadOwnersEditors":"Download restricted on mobile, except Owners/Co-Owners/Editors.","boxui.securityControls.modalDescription":"Classification labels defined by your administrator can be used to label content and apply security policies.","boxui.securityControls.modalTitle":"View Classification for “{itemName}”","boxui.securityControls.securityControlsLabel":"Restrictions","boxui.securityControls.sharingCollabAndCompanyOnly":"Shared links cannot be made publicly accessible.","boxui.securityControls.sharingCollabOnly":"Shared links allowed for collaborators only.","boxui.securityControls.shortApp":"Application restrictions apply","boxui.securityControls.shortAppSign":"App and Sign restrictions apply","boxui.securityControls.shortDownload":"Download restrictions apply","boxui.securityControls.shortDownloadApp":"Download and app restrictions apply","boxui.securityControls.shortDownloadAppSign":"Download, app and Sign restrictions apply","boxui.securityControls.shortDownloadSign":"Download and Sign restrictions apply","boxui.securityControls.shortSharing":"Sharing restriction applies","boxui.securityControls.shortSharingApp":"Sharing and app restrictions apply","boxui.securityControls.shortSharingAppSign":"Sharing, app and Sign restrictions apply","boxui.securityControls.shortSharingDownload":"Sharing and download restrictions apply","boxui.securityControls.shortSharingDownloadApp":"Sharing, download and app restrictions apply","boxui.securityControls.shortSharingDownloadAppSign":"Sharing, download, app and Sign restrictions apply","boxui.securityControls.shortSharingDownloadSign":"Sharing, download and Sign restrictions apply","boxui.securityControls.shortSharingSign":"Sharing and Sign restrictions apply","boxui.securityControls.shortSign":"Sign restrictions apply","boxui.securityControls.shortWatermarking":"Watermarking applies","boxui.securityControls.viewAll":"View All","boxui.securityControls.watermarkingApplied":"Watermarking will be applied.","boxui.securityControls.webDownloadExternal":"Download restricted on web for external users.","boxui.securityControls.webDownloadExternalOwners":"Download restricted on web, except Owners/Co-Owners. Also restricted for external users.","boxui.securityControls.webDownloadExternalOwnersEditors":"Download restricted on web, except Owners/Co-Owners/Editors. Also restricted for external users.","boxui.securityControls.webDownloadOwners":"Download restricted on web, except Owners/Co-Owners.","boxui.securityControls.webDownloadOwnersEditors":"Download restricted on web, except Owners/Co-Owners/Editors.","boxui.select.moreInfo":"More Info","boxui.selectField.clearAll":"Clear All","boxui.selectField.noResults":"No Results","boxui.selectField.searchPlaceholder":"Search","boxui.share.accessType":"ACCESS TYPE","boxui.share.canEdit":"Can edit","boxui.share.canView":"Can view","boxui.share.coownerLevelText":"Co-owner","boxui.share.deleteTableHeaderText":"Delete","boxui.share.downloadTableHeaderText":"Download","boxui.share.editTableHeaderText":"Edit","boxui.share.editorLevelText":"Editor","boxui.share.emailSharedLink":"Email Shared Link","boxui.share.enterAtLeastOneEmail":"Enter at least one valid email","boxui.share.getLinkTableHeaderText":"Get Link","boxui.share.groupLabel":"Group","boxui.share.inviteCollaboratorsModalCancelButton":"Cancel","boxui.share.inviteCollaboratorsModalSendInvites":"Send Invites","boxui.share.inviteCollaboratorsModalTitle":"Invite to {itemName}","boxui.share.inviteFieldLabel":"Invite","boxui.share.inviteFileEditorsLabel":"Invite people to become editors of this file.","boxui.share.inviteePermissionsFieldLabel":"Invitee Permissions","boxui.share.inviteePermissionsLearnMore":"Learn More","boxui.share.message":"Message","boxui.share.messageSelectorPlaceholder":"Add a message","boxui.share.ownerTableHeaderText":"Owner","boxui.share.peopleInCompanyCanDownloadFile":"Anyone in your company with the link can view and download this file.","boxui.share.peopleInCompanyCanDownloadFolder":"Anyone in your company with the link can view this folder and download its contents.","boxui.share.peopleInCompanyCanEditFile":"Anyone in your company with the link can edit and download this file.","boxui.share.peopleInCompanyCanViewFile":"Anyone in your company with the link can view this file.","boxui.share.peopleInCompanyCanViewFolder":"Anyone in your company with the link can view this folder.","boxui.share.peopleInEnterprise":"People in {enterpriseName}","boxui.share.peopleInItemCanAccessFile":"Any collaborator on the file with the link can access this file.","boxui.share.peopleInItemCanAccessFolder":"Any collaborator on the folder with the link can access this folder.","boxui.share.peopleInItemCanDownloadFile":"Any collaborator on this file with the link can download this file.","boxui.share.peopleInItemCanDownloadFolder":"Any collaborator on this folder with the link can download this folder.","boxui.share.peopleInItemCanEditFile":"Any collaborator on this file with the link can edit this file and download its contents.","boxui.share.peopleInItemCanPreviewAndDownloadFile":"Any collaborator on this file with the link can view this file and download its contents.","boxui.share.peopleInItemCanPreviewAndDownloadFolder":"Any collaborator on this folder with the link can view this folder and download its contents.","boxui.share.peopleInItemCanPreviewFile":"Any collaborator on this file with the link can view this file.","boxui.share.peopleInItemCanPreviewFolder":"Any collaborator on this folder with the link can view this folder.","boxui.share.peopleInSpecifiedCompanyCanDownloadFile":"Anyone in {company} with the link can view and download this file.","boxui.share.peopleInSpecifiedCompanyCanDownloadFolder":"Anyone in {company} with the link can view this folder and download its contents.","boxui.share.peopleInSpecifiedCompanyCanEditFile":"Anyone in {company} with the link can edit and download this file.","boxui.share.peopleInSpecifiedCompanyCanViewFile":"Anyone in {company} with the link can view this file.","boxui.share.peopleInSpecifiedCompanyCanViewFolder":"Anyone in {company} with the link can view this folder.","boxui.share.peopleInThisFile":"People in this file","boxui.share.peopleInThisFolder":"People in this folder","boxui.share.peopleInYourCompany":"People in your company","boxui.share.peopleWithLinkCanDownloadFile":"Anyone with the link can view and download this file.","boxui.share.peopleWithLinkCanDownloadFolder":"Anyone with the link can view this folder and download its contents.","boxui.share.peopleWithLinkCanEditFile":"Anyone with the link can edit and download this file.","boxui.share.peopleWithLinkCanViewFile":"Anyone with the link can view this file.","boxui.share.peopleWithLinkCanViewFolder":"Anyone with the link can view this folder.","boxui.share.peopleWithTheLink":"People with the link","boxui.share.permissionLevelsTableHeaderText":"Permission Levels","boxui.share.personalMessageLabel":"Personal Message","boxui.share.pillSelectorPlaceholder":"Add names or email addresses","boxui.share.previewTableHeaderText":"Preview","boxui.share.previewerLevelText":"Previewer","boxui.share.previewerUploaderLevelText":"Previewer Uploader","boxui.share.referAFriendBadgeText":"REFER","boxui.share.referAFriendRewardCenterLinkText":"Click Here","boxui.share.referAFriendText":"Want a free month of Box? Refer your friend!","boxui.share.removeLink":"Remove Link","boxui.share.removeLinkConfirmationDescription":"This will permanently remove the shared link. If this item is embedded on other sites it will also become inaccessible. Any custom properties, settings and expirations will be removed as well. Do you want to continue?","boxui.share.removeLinkConfirmationTitle":"Remove Shared Link","boxui.share.settingsButtonLabel":"Open shared link settings popup","boxui.share.sharedLinkExpirationTooltip":"This link will expire on {expiration, date, long}","boxui.share.sharedLinkLabel":"Shared Link","boxui.share.sharedLinkModalTitle":"Shared Link for {itemName}","boxui.share.sharedLinkSettings.accessLevel.inCompanyView":"This content is available to anyone within your company with the link, and can be viewed.","boxui.share.sharedLinkSettings.accessLevel.inCompanyViewDownload":"This content is available to anyone within your company with the link, and can be viewed or downloaded.","boxui.share.sharedLinkSettings.accessLevel.inItem":"This content is available to invited collaborators with the link.","boxui.share.sharedLinkSettings.accessLevel.withLinkView":"This content is publicly available to anyone with the link, and can be viewed.","boxui.share.sharedLinkSettings.accessLevel.withLinkViewDownload":"This content is publicly available to anyone with the link, and can be viewed or downloaded.","boxui.share.sharedLinkSettings.allowDownloadLabel":"Allow users with the shared link to download this item","boxui.share.sharedLinkSettings.allowDownloadTitle":"Allow Download","boxui.share.sharedLinkSettings.customURLLabel":"Non-private custom URL","boxui.share.sharedLinkSettings.directDownloadBlockedByAccessPolicyWithClassification":"Download has been disabled for content due to the classification.","boxui.share.sharedLinkSettings.directDownloadBlockedByAccessPolicyWithoutClassification":"Download has been disabled for content without classification.","boxui.share.sharedLinkSettings.directDownloadBlockedByMaliciousContent":"Download for this content has been disabled due to a security policy.","boxui.share.sharedLinkSettings.directLinkLabel":"Direct Link","boxui.share.sharedLinkSettings.expirationLabel":"Disable Shared Link on","boxui.share.sharedLinkSettings.expirationTitle":"Link Expiration","boxui.share.sharedLinkSettings.inaccessibleSettingsNotice":"Certain settings may not be available for this item due to permissions.","boxui.share.sharedLinkSettings.modalTitle":"Shared Link Settings","boxui.share.sharedLinkSettings.passwordLabel":"Require password","boxui.share.sharedLinkSettings.passwordPlaceholder":"Enter a password","boxui.share.sharedLinkSettings.passwordTitle":"Password Protect","boxui.share.sharedLinkSettings.sharedLinkSettingWarningLinkText":"Learn more about shared link settings.","boxui.share.sharedLinkSettings.sharedLinkWarningText":"This content is publicly available to anyone with the link.","boxui.share.sharedLinkSettings.vanityNameNotSet":"The custom URL has not been set","boxui.share.sharedLinkSettings.vanityNamePlaceholder":"Enter a custom path (12 or more characters)","boxui.share.sharedLinkSettings.vanityURLWarning":"Custom URLs should not be used when sharing sensitive content.","boxui.share.sharedLinkURLLabel":"URL","boxui.share.upgradeGetMoreAccessControls":"Get More Access Controls","boxui.share.uploadTableHeaderText":"Upload","boxui.share.uploaderLevelText":"Uploader","boxui.share.vanityURLEnableText":"Publish content broadly with a custom, non-private URL","boxui.share.viewerLevelText":"Viewer","boxui.share.viewerUploaderLevelText":"Viewer Uploader","boxui.shareMenu.downloadOnly":"Download Only","boxui.shareMenu.editAndComment":"Edit and Comment","boxui.shareMenu.getSharedLink":"Get Shared Link","boxui.shareMenu.insufficientPermissionsMenuOption":"Insufficient sharing permissions. Please contact the folder owner.","boxui.shareMenu.insufficientPermissionsTooltip":"You have insufficient permissions to invite collaborators.","boxui.shareMenu.inviteCollabs":"Invite Collaborators","boxui.shareMenu.ownerCoownerOnlyTooltip":"You have insufficient permissions to invite collaborators. Only the owner and co-owners can invite collaborators.","boxui.shareMenu.shortcutOnly":"Shortcut Only","boxui.shareMenu.viewAndDownload":"View and Download","boxui.shareMenu.viewOnly":"View Only","boxui.timeInput.emptyTimeError":"Required field. Enter a time in the format HH:MM A.","boxui.timeInput.invalidTimeError":"Invalid time format. Enter a time in the format HH:MM A.","boxui.unifiedShare.collabAccess":"collaborator access","boxui.unifiedShare.collaboration.groupCollabText":"Group","boxui.unifiedShare.collaboration.userCollabText":"User","boxui.unifiedShare.collaboratorListTitle":"People in ‘{itemName}’","boxui.unifiedShare.collaborators.expirationTooltipClickableText":"Access expires on {date}. Click for details.","boxui.unifiedShare.contactEmailsTooltipText":"{emails}, and {remainingEmailsCount} more","boxui.unifiedShare.contactRestrictionNotice":"{count, plural, one {{count} invitation} other {{count} invitations}} cannot be sent because external collaboration is restricted due to the applied security policy.","boxui.unifiedShare.contactRestrictionNoticeInformationBarrier":"{count, plural, one {{count} invitation} other {{count} invitations}} cannot be sent due to a security policy.","boxui.unifiedShare.contactRestrictionNoticeInformationBarrierSingular":"Invitations cannot be sent to {email} due to a security policy.","boxui.unifiedShare.contactRestrictionNoticeInformationBarrierSingularGroup":'Invitations cannot be sent to "{groupName}" due to a security policy.',"boxui.unifiedShare.contactRestrictionNoticeSingular":"Invitations cannot be sent to {email} because external collaboration is restricted due to the applied security policy.","boxui.unifiedShare.contactRestrictionRemoveButtonLabel":"Remove to continue","boxui.unifiedShare.contactsExceedLimitError":"Oops! The maximum number of collaborators that can be added at once is {maxContacts} collaborators. Please try again by splitting your invitations into batches.","boxui.unifiedShare.contentSharedWithExternalCollaborators":"This content will be shared with external collaborators.","boxui.unifiedShare.coownerLevelButtonLabel":"Invite as Co-owner","boxui.unifiedShare.coownerLevelDescription":"Manage security, upload, download, preview, share, edit, and delete","boxui.unifiedShare.coownerLevelText":"Co-owner","boxui.unifiedShare.disabledCreateLinkTooltip":"You do not have permission to create the link.","boxui.unifiedShare.disabledMaliciousContentShareLinkPermission":"This option isn’t available for this item due to a security policy.","boxui.unifiedShare.disabledShareLinkPermission":"This option is not available due to a security policy.","boxui.unifiedShare.editorLevelButtonLabel":"Invite as Editor","boxui.unifiedShare.editorLevelDescription":"Upload, download, preview, share, edit, and delete","boxui.unifiedShare.editorLevelFileDescription":"Upload, download, preview, share, and edit","boxui.unifiedShare.editorLevelText":"Editor","boxui.unifiedShare.emailModalTitle":"Send Link to ‘{itemName}’","boxui.unifiedShare.enterAtLeastOneEmail":"Enter at least one valid email","boxui.unifiedShare.enterEmailAddressesCalloutText":"Share this item with coworkers by entering their email addresses","boxui.unifiedShare.expiresMessage":"Expires","boxui.unifiedShare.ftuxConfirmLabel":"Got it","boxui.unifiedShare.ftuxEditPermissionTooltipBody":"Select the new edit option to easily share your file with people or groups.","boxui.unifiedShare.ftuxEditPermissionTooltipTitle":"Collaboration made easy","boxui.unifiedShare.ftuxLinkText":"Read more about shared link security here.","boxui.unifiedShare.ftuxNewUSMUserBody":"We’ve simplified the sharing experience when you click 'Share'. Invite people to this item here and toggle the link on or off below for easy sharing.","boxui.unifiedShare.ftuxNewUsmUserTitle":"Simplified sharing for files and folders","boxui.unifiedShare.ftuxSharedLinkPermissionsEditTag":"NEW","boxui.unifiedShare.groupLabel":"Group","boxui.unifiedShare.inviteDisabledTooltip":"You do not have permission to invite collaborators.","boxui.unifiedShare.inviteDisabledWeblinkTooltip":"Collaborators cannot be added to bookmarks.","boxui.unifiedShare.inviteFieldLabel":"Invite People","boxui.unifiedShare.justifiableContactRestrictionNotice":"This content requires a business justification for {count, plural, one {{count} invitation} other {{count} invitations}}. Please select a business justification below.","boxui.unifiedShare.justifiableContactRestrictionNoticeSingular":"This content requires a business justification to invite {email}. Please select a business justification below.","boxui.unifiedShare.justifiableContactRestrictionRemoveButtonLabel":"Alternatively, remove to continue","boxui.unifiedShare.justificationRequiredError":"Select a justification or remove to continue","boxui.unifiedShare.justificationSelectPlaceholder":"Select Justification","boxui.unifiedShare.levelOfCollabAccess":"Set the level of {collaboratorAccess} and increase security through one of our paid plans. {upgradeLink}","boxui.unifiedShare.linkShareOff":"Create shared link","boxui.unifiedShare.linkShareOn":"Shared link is created","boxui.unifiedShare.message":"Message","boxui.unifiedShare.modalTitle":"Share ‘{itemName}’","boxui.unifiedShare.peopleInCompanyCanAccessFile":"Anyone in your company with the link or people invited to this file can access","boxui.unifiedShare.peopleInCompanyCanAccessFolder":"Anyone in your company with the link or people invited to this folder can access","boxui.unifiedShare.peopleInCompanyCanAccessHub":"Anyone in your company with the link or people invited to this hub can access","boxui.unifiedShare.peopleInEnterpriseName":"People in {enterpriseName}","boxui.unifiedShare.peopleInItemCanAccessFile":"Only invited people can access this file","boxui.unifiedShare.peopleInItemCanAccessFolder":"Only invited people can access this folder","boxui.unifiedShare.peopleInItemCanAccessHub":"Only invited people can access this hub","boxui.unifiedShare.peopleInSpecifiedCompanyCanAccessFile":"Anyone at {company} with the link or people invited to this file can access","boxui.unifiedShare.peopleInSpecifiedCompanyCanAccessFolder":"Anyone at {company} with the link or people invited to this folder can access","boxui.unifiedShare.peopleInSpecifiedCompanyCanAccessHub":"Anyone at {company} with the link or people invited to this hub can access","boxui.unifiedShare.peopleInThisFile":"Invited people only","boxui.unifiedShare.peopleInThisFolder":"Invited people only","boxui.unifiedShare.peopleInYourCompany":"People in your company","boxui.unifiedShare.peopleWithLinkDescription":"Publicly accessible and no sign-in required","boxui.unifiedShare.peopleWithTheLinkText":"People with the link","boxui.unifiedShare.previewerLevelButtonLabel":"Invite as Previewer","boxui.unifiedShare.previewerLevelDescription":"Preview only","boxui.unifiedShare.previewerLevelText":"Previewer","boxui.unifiedShare.previewerUploaderLevelButtonLabel":"Invite as Previewer Uploader","boxui.unifiedShare.previewerUploaderLevelDescription":"Upload and preview","boxui.unifiedShare.previewerUploaderLevelText":"Previewer Uploader","boxui.unifiedShare.recommendedSharingTooltipCalloutText":"Based on your usage, we think {fullName} would be interested in this file.","boxui.unifiedShare.removeLinkConfirmationDescription":"This will permanently remove the shared link. If this item is embedded on other sites it will also become inaccessible. Any custom properties, settings and expirations will be removed as well. Do you want to continue?","boxui.unifiedShare.removeLinkConfirmationTitle":"Remove Shared Link","boxui.unifiedShare.removeLinkTooltip":"You do not have permission to remove the link.","boxui.unifiedShare.restrictedContactsError":"Remove to continue","boxui.unifiedShare.sendSharedLink":"Send Shared Link","boxui.unifiedShare.sendSharedLinkFieldLabel":"Email Shared Link","boxui.unifiedShare.sharedLinkDisabledTooltipCopy":"Create and copy link for sharing","boxui.unifiedShare.sharedLinkEditablePubliclyAvailable":"Publicly available for anyone to view and download. Any logged in users with the link can edit.","boxui.unifiedShare.sharedLinkElevatedEditableCompanyAvailable":"People who have access to this link can edit.","boxui.unifiedShare.sharedLinkExpirationTooltip":"This link will expire and be inaccessible on {expiration, date, long}.","boxui.unifiedShare.sharedLinkPermissionsEdit":"Can edit","boxui.unifiedShare.sharedLinkPermissionsEditTooltip":"This permission can only be changed in Box Notes","boxui.unifiedShare.sharedLinkPermissionsViewDownload":"Can view and download","boxui.unifiedShare.sharedLinkPermissionsViewOnly":"Can view only","boxui.unifiedShare.sharedLinkPubliclyAvailable":"This content is publicly available to anyone with the link.","boxui.unifiedShare.sharedLinkSectionLabel":"Share Link","boxui.unifiedShare.sharedLinkSettings":"Link Settings","boxui.unifiedShare.sharedLinkSettingsCalloutText":"Create a custom URL, enable password protection, enable link expiration, and much more","boxui.unifiedShare.suggestedCollabsTitle":"Suggested","boxui.unifiedShare.upgradeGetMoreAccessControlsDescription":"62% of customers on your plan {upgradeGetMoreAccessControlsLink} to manage collaborators’ access and permission settings","boxui.unifiedShare.upgradeGetMoreAccessControlsLink":"upgrade","boxui.unifiedShare.upgradeInlineNoticeTitle":"Upgrade Your Plan","boxui.unifiedShare.upgradeLink":"Upgrade now","boxui.unifiedShare.uploaderLevelButtonLabel":"Invite as Uploader","boxui.unifiedShare.uploaderLevelDescription":"Upload only","boxui.unifiedShare.uploaderLevelText":"Uploader","boxui.unifiedShare.viewerLevelButtonLabel":"Invite as Viewer","boxui.unifiedShare.viewerLevelDescription":"Download, preview, and share","boxui.unifiedShare.viewerLevelText":"Viewer","boxui.unifiedShare.viewerUploaderLevelButtonLabel":"Invite as Viewer Uploader","boxui.unifiedShare.viewerUploaderLevelDescription":"Upload, download, preview, share, and edit","boxui.unifiedShare.viewerUploaderLevelText":"Viewer Uploader","boxui.validation.URLError":"Invalid URL","boxui.validation.emailError":"Invalid Email Address","boxui.validation.genericError":"Invalid Input","boxui.validation.invalidDateError":"Invalid Date","boxui.validation.invalidUserError":"Invalid User","boxui.validation.requiredError":"Required Field","boxui.validation.tooLongError":"Input cannot exceed {max} characters","boxui.validation.tooShortError":"Input must be at least {min} characters"})};let s;class l{static getUserAgent(){return __webpack_require__.g.navigator.userAgent}static isMobile(){const e=l.getUserAgent();return/iphone|ipad|ipod|android|blackberry|bb10|mini|windows\sce|palm/i.test(e)||/Mobi/i.test(e)}static isIE(){return/Trident/i.test(l.getUserAgent())}static isFirefox(){const e=l.getUserAgent();return/Firefox/i.test(e)&&!/Seamonkey\//i.test(e)}static isSafari(){const e=l.getUserAgent();return/AppleWebKit/i.test(e)&&!/Chrome\//i.test(e)}static isMobileSafari(){return l.isMobile()&&l.isSafari()&&!l.isMobileChromeOniOS()}static isMobileChromeOniOS(){const e=l.getUserAgent();return l.isMobile()&&/AppleWebKit/i.test(e)&&/CriOS\//i.test(e)}static canDownload(){return!l.isMobile()||!window.externalHost&&"download"in document.createElement("a")}static canPlayDash(e=!1){if(void 0===s||e){const e=__webpack_require__.g.MediaSource;s=!!e&&"function"==typeof e.isTypeSupported&&e.isTypeSupported('video/mp4; codecs="avc1.64001E"')}return s}static canWriteToClipboard(){return!(!__webpack_require__.g.navigator.clipboard||!__webpack_require__.g.navigator.clipboard.writeText)}static canReadFromClipboard(){return!(!__webpack_require__.g.navigator.clipboard||!__webpack_require__.g.navigator.clipboard.readText)}}const c=l,u="folder",d="file",h="web_link",f="annotation",p="comment",m="file_version",b="folder_",g="file_",y=b,v=g,w="search_",E="DESC",S="Content-Type",C="Accept-Language",k="securityClassification-6VMVochwUWo",x="boxSkillsCards",P="properties",_="global",O="enterprise",A="experimental",T="id",I="name",M="size",D="extension",R="permissions",F="modified_at",L="restored_at",j="restored_from",N="created_at",U="is_externally_owned",H="created_by",B="modified_by",z="promoted_by",V="restored_by",$="trashed_by",q="representations",G="authenticated_download_url",W="file_version",X="is_download_available",K="version_number",Q="metadata",Y=`${Q}.${_}.archivedItemTemplate`,J=`${Q}.${_}.${x}`,Z="trashed_at",ee="uploader_display_name",te="can_comment",re="can_create_annotations",ne="can_delete",ie="can_edit",oe="can_resolve",ae="can_upload",se="can_view_annotations",le="https://api.box.com",ce="https://upload.box.com",ue="https://upload.app.box.com",de="bcow-integration-icon",he="fetch_comments_error",fe="fetch_replies_error",pe="fetch_tasks_error",me="fetch_metadata_error",be="execute_integrations_error",ge="create_comment_error",ye="create_reply_error",ve="create_task_error",we="create_task_collaborator_error",Ee="create_metadata_error",Se="delete_comment_error",Ce="group_exceeds_limit",ke="update_task_error",xe="update_comment_error",Pe="update_metadata_error",_e="share_item_error",Oe="isErrorDisplayed",Ae="[3d][pdf][text][mp3][json][jpg?dimensions=1024x1024&paged=false][jpg?dimensions=2048x2048,png?dimensions=2048x2048]"+(c.canPlayDash()?"[dash,mp4][filmstrip]":"[mp4]"),Te=3e3,Ie=1e3,Me="[jpg?dimensions=1024x1024&paged=false,png?dimensions=1024x1024][pdf][text]",De="GET",Re="POST",Fe="PUT",Le="DELETE",je="OPTIONS",Ne=429,Ue="upload",He={type:"user",id:"2",name:""},Be="1338",ze="13418",Ve=26,$e="NOT_STARTED",qe="annotation",Ge="app_activity",We="comment",Xe="task",Ke="versions";function Qe(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class Ye extends(n()){constructor(...e){super(...e),Qe(this,"language",a.language),Qe(this,"messages",a.messages),Qe(this,"setComponent",(e=>{this.component=e})),Qe(this,"onInteraction",(e=>{this.emit("interaction",e)}))}show(e,t,r={}){this.id=e,this.token=t,this.options=r,this.options.version="0.0.0-semantically-released",this.emit=this.emit.bind(this);const n=r.container||"body";this.container=n instanceof HTMLElement?n:document.querySelector(n),this.render()}hide(){this.removeAllListeners(),t.unmountComponentAtNode(this.container),this.container&&(this.container.innerHTML="")}render(){throw new Error("Unimplemented!")}getComponent(){return this.component}clearCache(){const e=this.getComponent();e&&"function"==typeof e.clearCache&&e.clearCache()}emit(e,t){try{return super.emit(e,t)}catch(e){}return!1}}const Je=Ye;var Ze=__webpack_require__(78444),et=__webpack_require__.n(Ze),tt=__webpack_require__(70406),rt=__webpack_require__.n(tt),nt=__webpack_require__(18564),it=__webpack_require__.n(nt),ot=function(e,t){return ot=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},ot(e,t)};function at(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}ot(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var st=function(){return st=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},st.apply(this,arguments)};function lt(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}function ct(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var ut,dt,ht,ft=__webpack_require__(57160),pt=__webpack_require__.n(ft);function mt(e,t,r){if(void 0===r&&(r=Error),!e)throw new r(t)}function bt(e){return e.type===dt.literal}function gt(e){return e.type===dt.argument}function yt(e){return e.type===dt.number}function vt(e){return e.type===dt.date}function wt(e){return e.type===dt.time}function Et(e){return e.type===dt.select}function St(e){return e.type===dt.plural}function Ct(e){return e.type===dt.pound}function kt(e){return e.type===dt.tag}function xt(e){return!(!e||"object"!=typeof e||e.type!==ht.number)}function Pt(e){return!(!e||"object"!=typeof e||e.type!==ht.dateTime)}!function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(ut||(ut={})),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(dt||(dt={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(ht||(ht={}));var _t=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Ot=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function At(e){var t={};return e.replace(Ot,(function(e){var r=e.length;switch(e[0]){case"G":t.era=4===r?"long":5===r?"narrow":"short";break;case"y":t.year=2===r?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===r?"long":5===r?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}var Tt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,It=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Mt=/^(@+)?(\+|#+)?[rs]?$/g,Dt=/(\*)(0+)|(#+)(0+)|(0+)/g,Rt=/^(0+)$/;function Ft(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(Mt,(function(e,r,n){return"string"!=typeof n?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===n?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""})),t}function Lt(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function jt(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!Rt.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Nt(e){return Lt(e)||{}}function Ut(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=st(st(st({},t),{notation:"scientific"}),i.options.reduce((function(e,t){return st(st({},e),Nt(t))}),{}));continue;case"engineering":t=st(st(st({},t),{notation:"engineering"}),i.options.reduce((function(e,t){return st(st({},e),Nt(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Dt,(function(e,r,n,i,o,a){if(r)t.minimumIntegerDigits=n.length;else{if(i&&o)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(Rt.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if(It.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(It,(function(e,r,n,i,o,a){return"*"===n?t.minimumFractionDigits=r.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:o&&a?(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length+a.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""}));var o=i.options[0];"w"===o?t=st(st({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=st(st({},t),Ft(o)))}else if(Mt.test(i.stem))t=st(st({},t),Ft(i.stem));else{var a=Lt(i.stem);a&&(t=st(st({},t),a));var s=jt(i.stem);s&&(t=st(st({},t),s))}}return t}var Ht,Bt={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function zt(e){var t=e.hourCycle;if(void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r,n=e.language;return"root"!==n&&(r=e.maximize().region),(Bt[r||""]||Bt[n||""]||Bt["".concat(n,"-001")]||Bt["001"])[0]}var Vt=new RegExp("^".concat(_t.source,"*")),$t=new RegExp("".concat(_t.source,"*$"));function qt(e,t){return{start:e,end:t}}var Gt=!!String.prototype.startsWith&&"_a".startsWith("a",1),Wt=!!String.fromCodePoint,Xt=!!Object.fromEntries,Kt=!!String.prototype.codePointAt,Qt=!!String.prototype.trimStart,Yt=!!String.prototype.trimEnd,Jt=Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Zt=!0;try{Zt="a"===(null===(Ht=sr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Ht?void 0:Ht[0])}catch(e){Zt=!1}var er,tr=Gt?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},rr=Wt?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",i=e.length,o=0;i>o;){if((r=e[o++])>1114111)throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},nr=Xt?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r],o=i[0],a=i[1];t[o]=a}return t},ir=Kt?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||t>=r)){var n,i=e.charCodeAt(t);return i<55296||i>56319||t+1===r||(n=e.charCodeAt(t+1))<56320||n>57343?i:n-56320+(i-55296<<10)+65536}},or=Qt?function(e){return e.trimStart()}:function(e){return e.replace(Vt,"")},ar=Yt?function(e){return e.trimEnd()}:function(e){return e.replace($t,"")};function sr(e,t){return new RegExp(e,t)}if(Zt){var lr=sr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");er=function(e,t){var r;return lr.lastIndex=t,null!==(r=lr.exec(e)[1])&&void 0!==r?r:""}}else er=function(e,t){for(var r=[];;){var n=ir(e,t);if(void 0===n||dr(n)||hr(n))break;r.push(n),t+=n>=65536?2:1}return rr.apply(void 0,r)};var cr=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var i=this.char();if(123===i){if((o=this.parseArgument(e,r)).err)return o;n.push(o.val)}else{if(125===i&&e>0)break;if(35!==i||"plural"!==t&&"selectordinal"!==t){if(60===i&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(ut.UNMATCHED_CLOSING_TAG,qt(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&ur(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o;n.push(o.val)}else{var o;if((o=this.parseLiteral(e,t)).err)return o;n.push(o.val)}}else{var a=this.clonePosition();this.bump(),n.push({type:dt.pound,location:qt(a,this.clonePosition())})}}}return{val:n,err:null}},e.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:dt.literal,value:"<".concat(n,"/>"),location:qt(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var o=i.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!ur(this.char()))return this.error(ut.INVALID_TAG,qt(a,this.clonePosition()));var s=this.clonePosition();return n!==this.parseTagName()?this.error(ut.UNMATCHED_CLOSING_TAG,qt(s,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:dt.tag,value:n,children:o,location:qt(r,this.clonePosition())},err:null}:this.error(ut.INVALID_TAG,qt(a,this.clonePosition())))}return this.error(ut.UNCLOSED_TAG,qt(r,this.clonePosition()))}return this.error(ut.INVALID_TAG,qt(r,this.clonePosition()))},e.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var i=this.tryParseQuote(t);if(i)n+=i;else{var o=this.tryParseUnquoted(e,t);if(o)n+=o;else{var a=this.tryParseLeftAngleBracket();if(!a)break;n+=a}}}var s=qt(r,this.clonePosition());return{val:{type:dt.literal,value:n,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(ur(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return rr.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&e>0?null:(this.bump(),rr(r))},e.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(ut.EXPECT_ARGUMENT_CLOSING_BRACE,qt(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(ut.EMPTY_ARGUMENT,qt(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(ut.MALFORMED_ARGUMENT,qt(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(ut.EXPECT_ARGUMENT_CLOSING_BRACE,qt(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:dt.argument,value:n,location:qt(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(ut.EXPECT_ARGUMENT_CLOSING_BRACE,qt(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(ut.MALFORMED_ARGUMENT,qt(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=er(this.message,t),n=t+r.length;return this.bumpTo(n),{value:r,location:qt(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,r,n){var i,o=this.clonePosition(),a=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(a){case"":return this.error(ut.EXPECT_ARGUMENT_TYPE,qt(o,s));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((g=this.parseSimpleArgStyleIfPossible()).err)return g;if(0===(f=ar(g.val)).length)return this.error(ut.EXPECT_ARGUMENT_STYLE,qt(this.clonePosition(),this.clonePosition()));l={style:f,styleLocation:qt(c,this.clonePosition())}}if((y=this.tryParseArgumentClose(n)).err)return y;var u=qt(n,this.clonePosition());if(l&&tr(null==l?void 0:l.style,"::",0)){var d=or(l.style.slice(2));if("number"===a)return(g=this.parseNumberSkeletonFromString(d,l.styleLocation)).err?g:{val:{type:dt.number,value:r,location:u,style:g.val},err:null};if(0===d.length)return this.error(ut.EXPECT_DATE_TIME_SKELETON,u);var h=d;this.locale&&(h=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if("j"===i){for(var o=0;n+1<e.length&&e.charAt(n+1)===i;)o++,n++;var a=1+(1&o),s=o<2?1:3+(o>>1),l=zt(t);for("H"!=l&&"k"!=l||(s=0);s-- >0;)r+="a";for(;a-- >0;)r=l+r}else r+="J"===i?"H":i}return r}(d,this.locale));var f={type:ht.dateTime,pattern:h,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?At(h):{}};return{val:{type:"date"===a?dt.date:dt.time,value:r,location:u,style:f},err:null}}return{val:{type:"number"===a?dt.number:"date"===a?dt.date:dt.time,value:r,location:u,style:null!==(i=null==l?void 0:l.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":var p=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(ut.EXPECT_SELECT_ARGUMENT_OPTIONS,qt(p,st({},p)));this.bumpSpace();var m=this.parseIdentifierIfPossible(),b=0;if("select"!==a&&"offset"===m.value){if(!this.bumpIf(":"))return this.error(ut.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,qt(this.clonePosition(),this.clonePosition()));var g;if(this.bumpSpace(),(g=this.tryParseDecimalInteger(ut.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ut.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return g;this.bumpSpace(),m=this.parseIdentifierIfPossible(),b=g.val}var y,v=this.tryParsePluralOrSelectOptions(e,a,t,m);if(v.err)return v;if((y=this.tryParseArgumentClose(n)).err)return y;var w=qt(n,this.clonePosition());return"select"===a?{val:{type:dt.select,value:r,options:nr(v.val),location:w},err:null}:{val:{type:dt.plural,value:r,options:nr(v.val),offset:b,pluralType:"plural"===a?"cardinal":"ordinal",location:w},err:null};default:return this.error(ut.INVALID_ARGUMENT_TYPE,qt(o,s))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(ut.EXPECT_ARGUMENT_CLOSING_BRACE,qt(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(ut.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,qt(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],r=0,n=e.split(Tt).filter((function(e){return e.length>0}));r<n.length;r++){var i=n[r].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],a=i.slice(1),s=0,l=a;s<l.length;s++)if(0===l[s].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:a})}return t}(e)}catch(e){return this.error(ut.INVALID_NUMBER_SKELETON,t)}return{val:{type:ht.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?Ut(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var i,o=!1,a=[],s=new Set,l=n.value,c=n.location;;){if(0===l.length){var u=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var d=this.tryParseDecimalInteger(ut.EXPECT_PLURAL_ARGUMENT_SELECTOR,ut.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;c=qt(u,this.clonePosition()),l=this.message.slice(u.offset,this.offset())}if(s.has(l))return this.error("select"===t?ut.DUPLICATE_SELECT_ARGUMENT_SELECTOR:ut.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);"other"===l&&(o=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?ut.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:ut.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,qt(this.clonePosition(),this.clonePosition()));var f=this.parseMessage(e+1,t,r);if(f.err)return f;var p=this.tryParseArgumentClose(h);if(p.err)return p;a.push([l,{value:f.val,location:qt(h,this.clonePosition())}]),s.add(l),this.bumpSpace(),l=(i=this.parseIdentifierIfPossible()).value,c=i.location}return 0===a.length?this.error("select"===t?ut.EXPECT_SELECT_ARGUMENT_SELECTOR:ut.EXPECT_PLURAL_ARGUMENT_SELECTOR,qt(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(ut.MISSING_OTHER_CLAUSE,qt(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,o=0;!this.isEOF();){var a=this.char();if(!(a>=48&&a<=57))break;i=!0,o=10*o+(a-48),this.bump()}var s=qt(n,this.clonePosition());return i?Jt(o*=r)?{val:o,err:null}:this.error(t,s):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=ir(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(tr(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),r=this.message.indexOf(e,t);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&dr(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),r=this.message.charCodeAt(t+(e>=65536?2:1));return null!=r?r:null},e}();function ur(e){return e>=97&&e<=122||e>=65&&e<=90}function dr(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function hr(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function fr(e){e.forEach((function(e){if(delete e.location,Et(e)||St(e))for(var t in e.options)delete e.options[t].location,fr(e.options[t].value);else yt(e)&&xt(e.style)||(vt(e)||wt(e))&&Pt(e.style)?delete e.style.location:kt(e)&&fr(e.children)}))}function pr(e,t){void 0===t&&(t={}),t=st({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new cr(e,t).parse();if(r.err){var n=SyntaxError(ut[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return(null==t?void 0:t.captureLocation)||fr(r.val),r.val}function mr(e,t){var r=t&&t.cache?t.cache:kr,n=t&&t.serializer?t.serializer:wr;return(t&&t.strategy?t.strategy:vr)(e,{cache:r,serializer:n})}function br(e,t,r,n){var i,o=null==(i=n)||"number"==typeof i||"boolean"==typeof i?n:r(n),a=t.get(o);return void 0===a&&(a=e.call(this,n),t.set(o,a)),a}function gr(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),o=t.get(i);return void 0===o&&(o=e.apply(this,n),t.set(i,o)),o}function yr(e,t,r,n,i){return r.bind(t,e,n,i)}function vr(e,t){return yr(e,this,1===e.length?br:gr,t.cache.create(),t.serializer)}var wr=function(){return JSON.stringify(arguments)};function Er(){this.cache=Object.create(null)}Er.prototype.get=function(e){return this.cache[e]},Er.prototype.set=function(e,t){this.cache[e]=t};var Sr,Cr,kr={create:function(){return new Er}},xr={variadic:function(e,t){return yr(e,this,gr,t.cache.create(),t.serializer)},monadic:function(e,t){return yr(e,this,br,t.cache.create(),t.serializer)}};(Cr=Sr||(Sr={})).MISSING_VALUE="MISSING_VALUE",Cr.INVALID_VALUE="INVALID_VALUE",Cr.MISSING_INTL_API="MISSING_INTL_API";var Pr,_r=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.code=r,i.originalMessage=n,i}return at(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Or=function(e){function t(t,r,n,i){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(r,'". Options are "').concat(Object.keys(n).join('", "'),'"'),Sr.INVALID_VALUE,i)||this}return at(t,e),t}(_r),Ar=function(e){function t(t,r,n){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(r),Sr.INVALID_VALUE,n)||this}return at(t,e),t}(_r),Tr=function(e){function t(t,r){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(r,'"'),Sr.MISSING_VALUE,r)||this}return at(t,e),t}(_r);function Ir(e){return"function"==typeof e}function Mr(e,t,r,n,i,o,a){if(1===e.length&&bt(e[0]))return[{type:Pr.literal,value:e[0].value}];for(var s=[],l=0,c=e;l<c.length;l++){var u=c[l];if(bt(u))s.push({type:Pr.literal,value:u.value});else if(Ct(u))"number"==typeof o&&s.push({type:Pr.literal,value:r.getNumberFormat(t).format(o)});else{var d=u.value;if(!i||!(d in i))throw new Tr(d,a);var h=i[d];if(gt(u))h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),s.push({type:"string"==typeof h?Pr.literal:Pr.object,value:h});else if(vt(u)){var f="string"==typeof u.style?n.date[u.style]:Pt(u.style)?u.style.parsedOptions:void 0;s.push({type:Pr.literal,value:r.getDateTimeFormat(t,f).format(h)})}else if(wt(u))f="string"==typeof u.style?n.time[u.style]:Pt(u.style)?u.style.parsedOptions:n.time.medium,s.push({type:Pr.literal,value:r.getDateTimeFormat(t,f).format(h)});else if(yt(u))(f="string"==typeof u.style?n.number[u.style]:xt(u.style)?u.style.parsedOptions:void 0)&&f.scale&&(h*=f.scale||1),s.push({type:Pr.literal,value:r.getNumberFormat(t,f).format(h)});else{if(kt(u)){var p=u.children,m=u.value,b=i[m];if(!Ir(b))throw new Ar(m,"function",a);var g=b(Mr(p,t,r,n,i,o).map((function(e){return e.value})));Array.isArray(g)||(g=[g]),s.push.apply(s,g.map((function(e){return{type:"string"==typeof e?Pr.literal:Pr.object,value:e}})))}if(Et(u)){if(!(y=u.options[h]||u.options.other))throw new Or(u.value,h,Object.keys(u.options),a);s.push.apply(s,Mr(y.value,t,r,n,i))}else if(St(u)){var y;if(!(y=u.options["=".concat(h)])){if(!Intl.PluralRules)throw new _r('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Sr.MISSING_INTL_API,a);var v=r.getPluralRules(t,{type:u.pluralType}).select(h-(u.offset||0));y=u.options[v]||u.options.other}if(!y)throw new Or(u.value,h,Object.keys(u.options),a);s.push.apply(s,Mr(y.value,t,r,n,i,h-(u.offset||0)))}}}}return(w=s).length<2?w:w.reduce((function(e,t){var r=e[e.length-1];return r&&r.type===Pr.literal&&t.type===Pr.literal?r.value+=t.value:e.push(t),e}),[]);var w}function Dr(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(Pr||(Pr={}));var Rr,Fr=function(){function e(t,r,n,i){var o,a,s,l=this;if(void 0===r&&(r=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=l.formatToParts(e);if(1===t.length)return t[0].value;var r=t.reduce((function(e,t){return e.length&&t.type===Pr.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(e){return Mr(l.ast,l.locales,l.formatters,l.formats,e,void 0,l.message)},this.resolvedOptions=function(){var e;return{locale:(null===(e=l.resolvedLocale)||void 0===e?void 0:e.toString())||Intl.NumberFormat.supportedLocalesOf(l.locales)[0]}},this.getAst=function(){return l.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var c=i||{},u=(c.formatters,lt(c,["formatters"]));this.ast=e.__parse(t,st(st({},u),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(a=e.formats,(s=n)?Object.keys(a).reduce((function(e,t){var r,n;return e[t]=(r=a[t],(n=s[t])?st(st(st({},r||{}),n||{}),Object.keys(r).reduce((function(e,t){return e[t]=st(st({},r[t]),n[t]||{}),e}),{})):r),e}),st({},a)):a),this.formatters=i&&i.formatters||(void 0===(o=this.formatterCache)&&(o={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:mr((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,ct([void 0],t,!1)))}),{cache:Dr(o.number),strategy:xr.variadic}),getDateTimeFormat:mr((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,ct([void 0],t,!1)))}),{cache:Dr(o.dateTime),strategy:xr.variadic}),getPluralRules:mr((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,ct([void 0],t,!1)))}),{cache:Dr(o.pluralRules),strategy:xr.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){if(void 0!==Intl.Locale){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])}},e.__parse=pr,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();!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"}(Rr||(Rr={}));var Lr=function(e){function t(r,n,i){var o=this,a=i?i instanceof Error?i:new Error(String(i)):void 0;return(o=e.call(this,"[@formatjs/intl Error ".concat(r,"] ").concat(n,"\n").concat(a?"\n".concat(a.message,"\n").concat(a.stack):""))||this).code=r,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(o,t),o}return at(t,e),t}(Error),jr=function(e){function t(t,r){return e.call(this,Rr.UNSUPPORTED_FORMATTER,t,r)||this}return at(t,e),t}(Lr),Nr=function(e){function t(t,r){return e.call(this,Rr.INVALID_CONFIG,t,r)||this}return at(t,e),t}(Lr),Ur=function(e){function t(t,r){return e.call(this,Rr.MISSING_DATA,t,r)||this}return at(t,e),t}(Lr),Hr=function(e){function t(t,r,n){var i=e.call(this,Rr.FORMAT_ERROR,"".concat(t,"\nLocale: ").concat(r,"\n"),n)||this;return i.locale=r,i}return at(t,e),t}(Lr),Br=function(e){function t(t,r,n,i){var o=e.call(this,"".concat(t,"\nMessageID: ").concat(null==n?void 0:n.id,"\nDefault Message: ").concat(null==n?void 0:n.defaultMessage,"\nDescription: ").concat(null==n?void 0:n.description,"\n"),r,i)||this;return o.descriptor=n,o.locale=r,o}return at(t,e),t}(Hr),zr=function(e){function t(t,r){var n=e.call(this,Rr.MISSING_TRANSLATION,'Missing message: "'.concat(t.id,'" for locale "').concat(r,'", using ').concat(t.defaultMessage?"default message (".concat("string"==typeof t.defaultMessage?t.defaultMessage:t.defaultMessage.map((function(e){var t;return null!==(t=e.value)&&void 0!==t?t:JSON.stringify(e)})).join(),")"):"id"," as fallback."))||this;return n.descriptor=t,n}return at(t,e),t}(Lr);function Vr(e,t,r){return void 0===r&&(r={}),t.reduce((function(t,n){return n in e?t[n]=e[n]:n in r&&(t[n]=r[n]),t}),{})}var $r={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:function(e){},onWarn:function(e){}};function qr(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function Gr(e,t,r,n){var i,o=e&&e[t];if(o&&(i=o[r]),i)return i;n(new jr("No ".concat(t," format named: ").concat(r)))}function Wr(e){mt(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var Xr=st(st({},$r),{textComponent:e.Fragment});function Kr(e,t){if(e===t)return!0;if(!e||!t)return!1;var r=Object.keys(e),n=Object.keys(t),i=r.length;if(n.length!==i)return!1;for(var o=0;o<i;o++){var a=r[o];if(e[a]!==t[a]||!Object.prototype.hasOwnProperty.call(t,a))return!1}return!0}var Qr="undefined"==typeof window||window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?e.createContext(null):window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=e.createContext(null)),Yr=Qr.Consumer,Jr=Qr.Provider,Zr=Qr;function en(){var t=e.useContext(Zr);return Wr(t),t}function tn(e,t){var r=e.values,n=lt(e,["values"]),i=t.values,o=lt(t,["values"]);return Kr(i,r)&&Kr(n,o)}function rn(t){var r=en(),n=r.formatMessage,i=r.textComponent,o=void 0===i?e.Fragment:i,a=t.id,s=t.description,l=t.defaultMessage,c=t.values,u=t.children,d=t.tagName,h=void 0===d?o:d,f=n({id:a,description:s,defaultMessage:l},c,{ignoreTag:t.ignoreTag});return"function"==typeof u?u(Array.isArray(f)?f:[f]):h?e.createElement(h,null,e.Children.toArray(f)):e.createElement(e.Fragment,null,f)}rn.displayName="FormattedMessage";var nn=e.memo(rn,tn);nn.displayName="MemoizedFormattedMessage";const on=nn;var an=__webpack_require__(43165);function sn(e,t){return Object.keys(e).reduce((function(r,n){return r[n]=st({timeZone:t},e[n]),r}),{})}function ln(e,t){return Object.keys(st(st({},e),t)).reduce((function(r,n){return r[n]=st(st({},e[n]||{}),t[n]||{}),r}),{})}function cn(e,t){if(!t)return e;var r=Fr.formats;return st(st(st({},r),e),{date:ln(sn(r.date,t),sn(e.date||{},t)),time:ln(sn(r.time,t),sn(e.time||{},t))})}var un=function(e,t,r,n,i){var o=e.locale,a=e.formats,s=e.messages,l=e.defaultLocale,c=e.defaultFormats,u=e.fallbackOnEmptyString,d=e.onError,h=e.timeZone,f=e.defaultRichTextElements;void 0===r&&(r={id:""});var p=r.id,m=r.defaultMessage;mt(!!p,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var b=String(p),g=s&&Object.prototype.hasOwnProperty.call(s,b)&&s[b];if(Array.isArray(g)&&1===g.length&&g[0].type===dt.literal)return g[0].value;if(!n&&g&&"string"==typeof g&&!f)return g.replace(/'\{(.*?)\}'/gi,"{$1}");if(n=st(st({},f),n||{}),a=cn(a,h),c=cn(c,h),!g){if(!1===u&&""===g)return g;if((!m||o&&o.toLowerCase()!==l.toLowerCase())&&d(new zr(r,o)),m)try{return t.getMessageFormat(m,l,c,i).format(n)}catch(e){return d(new Br('Error formatting default message for: "'.concat(b,'", rendering default message verbatim'),o,r,e)),"string"==typeof m?m:b}return b}try{return t.getMessageFormat(g,o,a,st({formatters:t},i||{})).format(n)}catch(e){d(new Br('Error formatting message: "'.concat(b,'", using ').concat(m?"default message":"id"," as fallback."),o,r,e))}if(m)try{return t.getMessageFormat(m,l,c,i).format(n)}catch(e){d(new Br('Error formatting the default message for: "'.concat(b,'", rendering message verbatim'),o,r,e))}return"string"==typeof g?g:"string"==typeof m?m:b},dn=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function hn(e,t,r){var n=e.locale,i=e.formats,o=e.onError;void 0===r&&(r={});var a=r.format,s=a&&Gr(i,"number",a,o)||{};return t(n,Vr(r,dn,s))}function fn(e,t,r,n){void 0===n&&(n={});try{return hn(e,t,n).format(r)}catch(t){e.onError(new Hr("Error formatting number.",e.locale,t))}return String(r)}function pn(e,t,r,n){void 0===n&&(n={});try{return hn(e,t,n).formatToParts(r)}catch(t){e.onError(new Hr("Error formatting number.",e.locale,t))}return[]}var mn=["numeric","style"];function bn(e,t,r,n,i){void 0===i&&(i={}),n||(n="second"),Intl.RelativeTimeFormat||e.onError(new _r('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n',Sr.MISSING_INTL_API));try{return function(e,t,r){var n=e.locale,i=e.formats,o=e.onError;void 0===r&&(r={});var a=r.format,s=!!a&&Gr(i,"relative",a,o)||{};return t(n,Vr(r,mn,s))}(e,t,i).format(r,n)}catch(t){e.onError(new Hr("Error formatting relative time.",e.locale,t))}return String(r)}var gn=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function yn(e,t,r,n){var i=e.locale,o=e.formats,a=e.onError,s=e.timeZone;void 0===n&&(n={});var l=n.format,c=st(st({},s&&{timeZone:s}),l&&Gr(o,t,l,a)),u=Vr(n,gn,c);return"time"!==t||u.hour||u.minute||u.second||u.timeStyle||u.dateStyle||(u=st(st({},u),{hour:"numeric",minute:"numeric"})),r(i,u)}function vn(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=void 0===o?{}:o,s="string"==typeof i?new Date(i||0):i;try{return yn(e,"date",t,a).format(s)}catch(t){e.onError(new Hr("Error formatting date.",e.locale,t))}return String(s)}function wn(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=void 0===o?{}:o,s="string"==typeof i?new Date(i||0):i;try{return yn(e,"time",t,a).format(s)}catch(t){e.onError(new Hr("Error formatting time.",e.locale,t))}return String(s)}function En(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=r[2],s=void 0===a?{}:a,l=e.timeZone,c=e.locale,u=e.onError,d=Vr(s,gn,l?{timeZone:l}:{});try{return t(c,d).formatRange(i,o)}catch(t){u(new Hr("Error formatting date time range.",e.locale,t))}return String(i)}function Sn(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=void 0===o?{}:o,s="string"==typeof i?new Date(i||0):i;try{return yn(e,"date",t,a).formatToParts(s)}catch(t){e.onError(new Hr("Error formatting date.",e.locale,t))}return[]}function Cn(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=void 0===o?{}:o,s="string"==typeof i?new Date(i||0):i;try{return yn(e,"time",t,a).formatToParts(s)}catch(t){e.onError(new Hr("Error formatting time.",e.locale,t))}return[]}var kn=["type"];function xn(e,t,r,n){var i=e.locale,o=e.onError;void 0===n&&(n={}),Intl.PluralRules||o(new _r('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Sr.MISSING_INTL_API));var a=Vr(n,kn);try{return t(i,a).select(r)}catch(e){o(new Hr("Error formatting plural.",i,e))}return"other"}var Pn=["type","style"],_n=Date.now();function On(e,t,r,n){void 0===n&&(n={});var i=An(e,t,r,n).reduce((function(e,t){var r=t.value;return"string"!=typeof r?e.push(r):"string"==typeof e[e.length-1]?e[e.length-1]+=r:e.push(r),e}),[]);return 1===i.length?i[0]:0===i.length?"":i}function An(e,t,r,n){var i=e.locale,o=e.onError;void 0===n&&(n={}),Intl.ListFormat||o(new _r('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n',Sr.MISSING_INTL_API));var a=Vr(n,Pn);try{var s={},l=r.map((function(e,t){if("object"==typeof e){var r=function(e){return"".concat(_n,"_").concat(e,"_").concat(_n)}(t);return s[r]=e,r}return String(e)}));return t(i,a).formatToParts(l).map((function(e){return"literal"===e.type?e:st(st({},e),{value:s[e.value]||e.value})}))}catch(e){o(new Hr("Error formatting list.",i,e))}return r}var Tn,In=["style","type","fallback","languageDisplay"];function Mn(e,t,r,n){var i=e.locale,o=e.onError;Intl.DisplayNames||o(new _r('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n',Sr.MISSING_INTL_API));var a=Vr(n,In);try{return t(i,a).of(r)}catch(e){o(new Hr("Error formatting display name.",i,e))}}function Dn(e,t){var r=function(e){void 0===e&&(e={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}});var t=Intl.RelativeTimeFormat,r=Intl.ListFormat,n=Intl.DisplayNames,i=mr((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,ct([void 0],t,!1)))}),{cache:qr(e.dateTime),strategy:xr.variadic}),o=mr((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,ct([void 0],t,!1)))}),{cache:qr(e.number),strategy:xr.variadic}),a=mr((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,ct([void 0],t,!1)))}),{cache:qr(e.pluralRules),strategy:xr.variadic});return{getDateTimeFormat:i,getNumberFormat:o,getMessageFormat:mr((function(e,t,r,n){return new Fr(e,t,r,st({formatters:{getNumberFormat:o,getDateTimeFormat:i,getPluralRules:a}},n||{}))}),{cache:qr(e.message),strategy:xr.variadic}),getRelativeTimeFormat:mr((function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new(t.bind.apply(t,ct([void 0],e,!1)))}),{cache:qr(e.relativeTime),strategy:xr.variadic}),getPluralRules:a,getListFormat:mr((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(r.bind.apply(r,ct([void 0],e,!1)))}),{cache:qr(e.list),strategy:xr.variadic}),getDisplayNames:mr((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(n.bind.apply(n,ct([void 0],e,!1)))}),{cache:qr(e.displayNames),strategy:xr.variadic})}}(t),n=st(st({},$r),e),i=n.locale,o=n.defaultLocale,a=n.onError;return i?!Intl.NumberFormat.supportedLocalesOf(i).length&&a?a(new Ur('Missing locale data for locale: "'.concat(i,'" in Intl.NumberFormat. Using default locale: "').concat(o,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(i).length&&a&&a(new Ur('Missing locale data for locale: "'.concat(i,'" in Intl.DateTimeFormat. Using default locale: "').concat(o,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(a&&a(new Nr('"locale" was not configured, using "'.concat(o,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),n.locale=n.defaultLocale||"en"),function(e){var t;e.onWarn&&e.defaultRichTextElements&&"string"==typeof((t=e.messages||{})?t[Object.keys(t)[0]]:void 0)&&e.onWarn('[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled. \nPlease consider using "@formatjs/cli" to pre-compile your messages for performance.\nFor more details see https://formatjs.io/docs/getting-started/message-distribution')}(n),st(st({},n),{formatters:r,formatNumber:fn.bind(null,n,r.getNumberFormat),formatNumberToParts:pn.bind(null,n,r.getNumberFormat),formatRelativeTime:bn.bind(null,n,r.getRelativeTimeFormat),formatDate:vn.bind(null,n,r.getDateTimeFormat),formatDateToParts:Sn.bind(null,n,r.getDateTimeFormat),formatTime:wn.bind(null,n,r.getDateTimeFormat),formatDateTimeRange:En.bind(null,n,r.getDateTimeFormat),formatTimeToParts:Cn.bind(null,n,r.getDateTimeFormat),formatPlural:xn.bind(null,n,r.getPluralRules),formatMessage:un.bind(null,n,r),$t:un.bind(null,n,r),formatList:On.bind(null,n,r.getListFormat),formatListToParts:An.bind(null,n,r.getListFormat),formatDisplayName:Mn.bind(null,n,r.getDisplayNames)})}function Rn(t){return t?Object.keys(t).reduce((function(r,n){var i,o=t[n];return r[n]="function"==typeof o?(i=o,function(t){return i(e.Children.toArray(t))}):o,r}),{}):t}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(Tn||(Tn={}));var Fn=function(t,r,n,i){for(var o=[],a=4;a<arguments.length;a++)o[a-4]=arguments[a];var s=Rn(i),l=un.apply(void 0,ct([t,r,n,s],o,!1));return Array.isArray(l)?e.Children.toArray(l):l},Ln=function(e,t){var r=e.defaultRichTextElements,n=lt(e,["defaultRichTextElements"]),i=Rn(r),o=Dn(st(st(st({},Xr),n),{defaultRichTextElements:i}),t),a={locale:o.locale,timeZone:o.timeZone,fallbackOnEmptyString:o.fallbackOnEmptyString,formats:o.formats,defaultLocale:o.defaultLocale,defaultFormats:o.defaultFormats,messages:o.messages,onError:o.onError,defaultRichTextElements:i};return st(st({},o),{formatMessage:Fn.bind(null,a,o.formatters),$t:Fn.bind(null,a,o.formatters)})};function jn(e){return{locale:e.locale,timeZone:e.timeZone,fallbackOnEmptyString:e.fallbackOnEmptyString,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,onWarn:e.onWarn,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}var Nn=function(t){function r(){var e=null!==t&&t.apply(this,arguments)||this;return e.cache={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}},e.state={cache:e.cache,intl:Ln(jn(e.props),e.cache),prevConfig:jn(e.props)},e}return at(r,t),r.getDerivedStateFromProps=function(e,t){var r=t.prevConfig,n=t.cache,i=jn(e);return Kr(r,i)?null:{intl:Ln(i,n),prevConfig:i}},r.prototype.render=function(){return Wr(this.state.intl),e.createElement(Jr,{value:this.state.intl},this.props.children)},r.displayName="IntlProvider",r.defaultProps=Xr,r}(e.PureComponent);const Un=Nn,Hn=({language:t,messages:r,children:n})=>t&&r?e.createElement(Un,{locale:t,messages:r},n):e.Children.only(n);var Bn,zn;!function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"}(Bn||(Bn={})),function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"}(zn||(zn={}));var Vn=function(e){var t=en(),r=e.value,n=e.children,i=lt(e,["value","children"]);return n(t.formatNumberToParts(r,i))};function $n(e){var t=function(t){var r=en(),n=t.value,i=t.children,o=lt(t,["value","children"]),a="string"==typeof n?new Date(n||0):n;return i("formatDate"===e?r.formatDateToParts(a,o):r.formatTimeToParts(a,o))};return t.displayName=zn[e],t}function qn(t){var r=function(r){var n=en(),i=r.value,o=r.children,a=lt(r,["value","children"]),s=n[t](i,a);if("function"==typeof o)return o(s);var l=n.textComponent||e.Fragment;return e.createElement(l,null,s)};return r.displayName=Bn[t],r}Vn.displayName="FormattedNumberParts",Vn.displayName="FormattedNumberParts",qn("formatDate"),qn("formatTime"),qn("formatNumber"),qn("formatList"),qn("formatDisplayName"),$n("formatDate"),$n("formatTime");const Gn={today:{id:"be.today",defaultMessage:"today"},yesterday:{id:"be.yesterday",defaultMessage:"yesterday"},logo:{id:"be.logo",defaultMessage:"Logo"},error:{id:"be.error",defaultMessage:"Error"},preview:{id:"be.preview",defaultMessage:"Preview"},previewError:{id:"be.previewError",defaultMessage:"This preview didn’t load. Please try to open or download the file to view."},previewErrorBlockedByPolicy:{id:"be.previewErrorBlockedByPolicy",defaultMessage:"Your access to this content is restricted due to a security policy."},boxEditErrorBlockedByPolicy:{id:"be.boxEditErrorBlockedByPolicy",defaultMessage:"Local editing of this content has been disabled based on an access policy"},previewUpdate:{id:"be.previewUpdate",defaultMessage:"A new version of this file is available."},complete:{id:"be.complete",defaultMessage:"Complete"},loading:{id:"be.loading",defaultMessage:"Loading"},reload:{id:"be.reload",defaultMessage:"Reload"},open:{id:"be.open",defaultMessage:"Open"},close:{id:"be.close",defaultMessage:"Close"},copy:{id:"be.copy",defaultMessage:"Copy"},delete:{id:"be.delete",defaultMessage:"Delete"},rename:{id:"be.rename",defaultMessage:"Rename"},remove:{id:"be.remove",defaultMessage:"Remove"},resume:{id:"be.resume",defaultMessage:"Resume"},resumeAll:{id:"be.resumeAll",defaultMessage:"Resume All"},retry:{id:"be.retry",defaultMessage:"Retry"},share:{id:"be.share",defaultMessage:"Share"},download:{id:"be.download",defaultMessage:"Download"},save:{id:"be.save",defaultMessage:"Save"},cancel:{id:"be.cancel",defaultMessage:"Cancel"},create:{id:"be.create",defaultMessage:"Create"},choose:{id:"be.choose",defaultMessage:"Choose"},upload:{id:"be.upload",defaultMessage:"Upload"},uploadEmptyState:{id:"be.uploadEmptyState",defaultMessage:"Empty state"},uploadErrorState:{id:"be.uploadErrorState",defaultMessage:"Error state"},uploadSuccessState:{id:"be.uploadSuccessState",defaultMessage:"Success state"},add:{id:"be.add",defaultMessage:"Add"},gridView:{id:"be.gridView",defaultMessage:"Switch to Grid View"},gridViewColumnSize:{id:"be.gridView.columnSize",defaultMessage:"Column size"},gridViewIncreaseColumnSize:{id:"be.gridView.increaseColumnSize",defaultMessage:"Increase column size"},gridViewDecreaseColumnSize:{id:"be.gridView.decreaseColumnSize",defaultMessage:"Decrease column size"},listView:{id:"be.listView",defaultMessage:"Switch to List View"},sort:{id:"be.sort",defaultMessage:"Sort"},newFolder:{id:"be.newFolder",defaultMessage:"New Folder"},in:{id:"be.in",defaultMessage:"In"},print:{id:"be.print",defaultMessage:"Print"},selected:{id:"be.selected",defaultMessage:"{count} Selected"},max:{id:"be.max",defaultMessage:"max"},nameDate:{id:"be.nameDate",defaultMessage:"{date} by {name}"},modified:{id:"be.itemModified",defaultMessage:"Modified"},modifiedDateBy:{id:"be.modifiedDateBy",defaultMessage:"Modified {date} by {name}"},modifiedDate:{id:"be.modifiedDate",defaultMessage:"Modified {date}"},created:{id:"be.itemCreated",defaultMessage:"Created"},owner:{id:"be.itemOwner",defaultMessage:"Owner"},uploader:{id:"be.itemUploader",defaultMessage:"Uploader"},interacted:{id:"be.itemInteracted",defaultMessage:"Last Accessed"},interactedDate:{id:"be.interactedDate",defaultMessage:"Last accessed on {date}"},name:{id:"be.itemName",defaultMessage:"Name"},size:{id:"be.itemSize",defaultMessage:"Size"},deleteDialogLabel:{id:"be.deleteDialogLabel",defaultMessage:"Confirm Delete"},deleteDialogFileText:{id:"be.deleteDialogFileText",defaultMessage:"Are you sure you want to delete {name}?"},deleteDialogFolderText:{id:"be.deleteDialogFolderText",defaultMessage:"Are you sure you want to delete {name} and all its contents?"},renameDialogLabel:{id:"be.renameDialogLabel",defaultMessage:"Rename"},renameDialogText:{id:"be.renameDialogText",defaultMessage:"Please enter a new name for {name}:"},renameDialogErrorInvalid:{id:"be.renameDialogErrorInvalid",defaultMessage:"This name is invalid."},renameDialogErrorInUse:{id:"be.renameDialogErrorInUse",defaultMessage:"An item with the same name already exists."},renameDialogErrorTooLong:{id:"be.renameDialogErrorTooLong",defaultMessage:"This name is too long."},createDialogLabel:{id:"be.createDialogLabel",defaultMessage:"New Folder"},createDialogText:{id:"be.createDialogText",defaultMessage:"Please enter a name."},createDialogErrorInvalid:{id:"be.createDialogErrorInvalid",defaultMessage:"This is an invalid folder name."},createDialogErrorTooLong:{id:"be.createDialogErrorTooLong",defaultMessage:"This folder name is too long."},createDialogErrorInUse:{id:"be.createDialogErrorInUse",defaultMessage:"A folder with the same name already exists."},shareDialogLabel:{id:"be.shareDialogLabel",defaultMessage:"Share"},shareDialogText:{id:"be.shareDialogText",defaultMessage:"Shared Link:"},shareDialogNone:{id:"be.shareDialogNone",defaultMessage:"None"},shareAccessOpen:{id:"be.shareAccessOpen",defaultMessage:"Access: People with the link"},shareAccessCollab:{id:"be.shareAccessCollab",defaultMessage:"Access: People in this folder"},shareAccessCompany:{id:"be.shareAccessCompany",defaultMessage:"People in this company"},shareAccessNone:{id:"be.shareAccessNone",defaultMessage:"No shared link"},shareAccessRemove:{id:"be.shareAccessRemove",defaultMessage:"Remove shared link"},searchPlaceholder:{id:"be.searchPlaceholder",defaultMessage:"Search files and folders"},sidebarAccessStats:{id:"be.sidebarAccessStats",defaultMessage:"Access Stats"},sidebarContentInsights:{id:"be.sidebarContentInsights",defaultMessage:"Content Insights"},sidebarShow:{id:"be.sidebarShow",defaultMessage:"Show Sidebar"},sidebarHide:{id:"be.sidebarHide",defaultMessage:"Hide Sidebar"},description:{id:"be.description",defaultMessage:"Description"},descriptionPlaceholder:{id:"be.descriptionPlaceholder",defaultMessage:"Enter a description"},sidebarDetailsTitle:{id:"be.sidebarDetailsTitle",defaultMessage:"Details"},sidebarSkillsTitle:{id:"be.sidebarSkillsTitle",defaultMessage:"Skills"},sidebarSkillsErrorTitle:{id:"be.sidebarSkillsErrorTitle",defaultMessage:"Skills Error"},sidebarSkillsErrorContent:{id:"be.sidebarSkillsErrorContent",defaultMessage:"An error has occurred while updating skills. Please refresh the page and try again."},sidebarBoxAITitle:{id:"be.sidebarBoxAITitle",defaultMessage:"Box AI"},sidebarActivityTitle:{id:"be.sidebarActivityTitle",defaultMessage:"Activity"},sidebarDocGenTitle:{id:"be.sidebarDocGenTitle",defaultMessage:"Doc Gen Tags"},sidebarDocGenTooltip:{id:"be.sidebarDocGenTooltip",defaultMessage:"Box Doc Gen"},sidebarMetadataTitle:{id:"be.sidebarMetadataTitle",defaultMessage:"Metadata"},sidebarMetadataEditingErrorContent:{id:"be.sidebarMetadataEditingErrorContent",defaultMessage:"An error has occurred while updating metadata. Please refresh the page and try again."},sidebarMetadataFetchingErrorContent:{id:"be.sidebarMetadataFetchingErrorContent",defaultMessage:"An error has occurred while fetching metadata. Please refresh the page and try again."},sidebarFileFetchingErrorContent:{id:"be.sidebarFileFetchingErrorContent",defaultMessage:"An error has occurred while fetching your Box file. Please refresh the page and try again."},sidebarProperties:{id:"be.sidebarProperties",defaultMessage:"File Properties"},sidebarNavLabel:{id:"be.sidebarNavLabel",defaultMessage:"Sidebar"},defaultSkill:{id:"be.defaultSkill",defaultMessage:"Skill Card"},statusSkill:{id:"be.statusSkill",defaultMessage:"Status"},topicsSkill:{id:"be.topicsSkill",defaultMessage:"Topics"},keywordSkill:{id:"be.keywordSkill",defaultMessage:"Topics"},faceSkill:{id:"be.faceSkill",defaultMessage:"Faces"},transcriptSkill:{id:"be.transcriptSkill",defaultMessage:"Transcript"},skillPendingStatus:{id:"be.skillPendingStatus",defaultMessage:"We’re working on processing your file - please hold!"},skillInvokedStatus:{id:"be.skillInvokedStatus",defaultMessage:"We’re preparing to process your file - please hold!"},skillUnknownError:{id:"be.skillUnknownError",defaultMessage:"Something went wrong with running this skill or fetching its data."},skillInvalidFileSizeError:{id:"be.skillInvalidFileSizeError",defaultMessage:"We’re sorry, no skills information was found. This file size is currently not supported."},skillInvalidFileExtensionError:{id:"be.skillInvalidFileExtensionError",defaultMessage:"We’re sorry, no skills information was found. This file extension is currently not supported."},skillNoInfoFoundError:{id:"be.skillNoInfoFoundError",defaultMessage:"We’re sorry, no skills information was found."},skillFileProcessingError:{id:"be.skillFileProcessingError",defaultMessage:"We’re sorry, something went wrong with processing the file."},uploadErrorTooManyFiles:{id:"be.uploadErrorTooManyFiles",defaultMessage:"You can only upload up to {fileLimit} file(s) at a time."},uploadError:{id:"be.uploadError",defaultMessage:"A network error has occurred while trying to upload."},uploadEmptyWithFolderUploadEnabled:{id:"be.uploadEmptyWithFolderUploadEnabled",defaultMessage:"Drag and drop files and folders"},uploadEmptyWithFolderUploadDisabled:{id:"be.uploadEmptyWithFolderUploadDisabled",defaultMessage:"Drag and drop files"},uploadEmptyFileInput:{id:"be.uploadEmptyFileInput",defaultMessage:"Browse your device"},uploadEmptyFolderInput:{id:"be.uploadEmptyFolderInput",defaultMessage:"Select Folders"},uploadNoDragDrop:{id:"be.uploadNoDragDrop",defaultMessage:"Select files from your device"},uploadInProgress:{id:"be.uploadInProgress",defaultMessage:"Drag and drop to add additional files"},uploadSuccess:{id:"be.uploadSuccess",defaultMessage:"Success! Your files have been uploaded."},uploadSuccessFileInput:{id:"be.uploadSuccessFileInput",defaultMessage:"Select More Files"},uploadSuccessFolderInput:{id:"be.uploadSuccessFolderInput",defaultMessage:"Select More Folders"},uploadOptions:{id:"be.uploadOptions",defaultMessage:"{option1} or {option2}"},nameASC:{id:"be.nameASC",defaultMessage:"Name: A → Z"},nameDESC:{id:"be.nameDESC",defaultMessage:"Name: Z → A"},dateASC:{id:"be.dateASC",defaultMessage:"Date: Oldest → Newest"},dateDESC:{id:"be.dateDESC",defaultMessage:"Date: Newest → Oldest"},sizeASC:{id:"be.sizeASC",defaultMessage:"Size: Smallest → Largest"},sizeDESC:{id:"be.sizeDESC",defaultMessage:"Size: Largest → Smallest"},searchState:{id:"be.searchState",defaultMessage:"Sorry, we couldn’t find what you’re looking for."},selectedState:{id:"be.selectedState",defaultMessage:"You haven’t selected any items yet."},errorState:{id:"be.errorState",defaultMessage:"A network error has occurred while trying to load."},folderState:{id:"be.folderState",defaultMessage:"There are no items in this folder."},metadataState:{id:"be.metadataState",defaultMessage:"There are no items in this folder."},recentsState:{id:"be.recentsState",defaultMessage:"There are no recent items yet."},loadingState:{id:"be.loadingState",defaultMessage:"Please wait while the items load..."},errorBreadcrumb:{id:"be.errorBreadcrumb",defaultMessage:"Error"},rootBreadcrumb:{id:"be.rootBreadcrumb",defaultMessage:"All Files"},searchBreadcrumb:{id:"be.searchBreadcrumb",defaultMessage:"Search Results"},recentsBreadcrumb:{id:"be.recentsBreadcrumb",defaultMessage:"Recents"},selectedBreadcrumb:{id:"be.selectedBreadcrumb",defaultMessage:"Selected Items"},uploadsManagerUploadInProgress:{id:"be.uploadsManagerUploadInProgress",defaultMessage:"Uploading"},uploadsManagerUploadPrompt:{id:"be.uploadsManagerUploadPrompt",defaultMessage:"Drop files on this page to upload them into this folder."},uploadsManagerUploadComplete:{id:"be.uploadsManagerUploadComplete",defaultMessage:"Completed"},uploadsManagerUploadFailed:{id:"be.uploadsManagerUploadFailed",defaultMessage:"Some Uploads Failed"},uploadsCancelButtonTooltip:{id:"be.uploadsCancelButtonTooltip",defaultMessage:"Cancel this upload"},uploadsRetryButtonTooltip:{id:"be.uploadsRetryButtonTooltip",defaultMessage:"Retry upload"},uploadsFileSizeLimitExceededErrorMessage:{id:"be.uploadsFileSizeLimitExceededErrorMessage",defaultMessage:"File size exceeds the folder owner’s file size limit"},uploadsFileSizeLimitExceededErrorMessageForUpgradeCta:{id:"be.uploadsFileSizeLimitExceededErrorMessageForUpgradeCta",defaultMessage:"This file exceeds your plan’s upload limit. Upgrade now to store larger files."},uploadsFileSizeLimitExceededUpgradeMessageForUpgradeCta:{id:"be.uploadsFileSizeLimitExceededUpgradeMessageForUpgradeCta",defaultMessage:"Upgrade"},uploadsStorageLimitErrorMessage:{id:"be.uploadsStorageLimitErrorMessage",defaultMessage:"Account storage limit reached"},uploadsPendingFolderSizeLimitErrorMessage:{id:"be.uploadsPendingFolderSizeLimitErrorMessage",defaultMessage:"Pending app folder size limit exceeded"},uploadsItemNameInUseErrorMessage:{id:"be.uploadsItemNameInUseErrorMessage",defaultMessage:"A file with this name already exists."},uploadsProvidedFolderNameInvalidMessage:{id:"be.uploadsProvidedFolderNameInvalidMessage",defaultMessage:"Provided folder name, {name}, could not be used to create a folder."},uploadsOneOrMoreChildFoldersFailedToUploadMessage:{id:"be.uploadsOneOrMoreChildFoldersFailedToUploadMessage",defaultMessage:"One or more child folders failed to upload."},uploadsPackageUploadErrorMessage:{id:"be.uploadsPackageUploadErrorMessage",defaultMessage:"Failed to upload package file. Please retry by saving as a single file."},uploadsDefaultErrorMessage:{id:"be.uploadsDefaultErrorMessage",defaultMessage:"Something went wrong with the upload. Please try again."},errorOccured:{id:"be.errorOccured",defaultMessage:"An error occurred"},editLabel:{id:"be.editLabel",defaultMessage:"Edit"},getVersionInfo:{id:"be.getVersionInfo",defaultMessage:"Get version information"},keywordsApplied:{id:"be.keywordsAppliedList",defaultMessage:"Keywords were applied"},keywordsList:{id:"be.keywordsList",defaultMessage:"Keywords: {words}"},noActivity:{id:"be.noActivity",defaultMessage:"No activity to show"},noActivityAnnotationPrompt:{id:"be.noActivityAnnotationPrompt",defaultMessage:"Hover over the preview and use the controls at the bottom to annotate the file."},noActivityCommentPrompt:{id:"be.noActivityCommentPrompt",defaultMessage:"Comment and @mention people to notify them."},versionDeleted:{id:"be.versionDeleted",defaultMessage:"{name} deleted v{version_number}"},versionPromoted:{id:"be.versionPromoted",defaultMessage:"{name} promoted v{version_promoted} to v{version_number}"},versionRestored:{id:"be.versionRestored",defaultMessage:"{name} restored v{version_number}"},versionMultipleUsersUploaded:{id:"be.versionMultipleUsersUploaded",defaultMessage:"{numberOfCollaborators} collaborators uploaded v{versions}"},versionUploadCollapsed:{id:"be.versionUploadCollapsed",defaultMessage:"{name} uploaded v{versions}"},versionUploaded:{id:"be.versionUploaded",defaultMessage:"{name} uploaded v{version_number}"},fileRequestDisplayName:{id:"be.fileRequestDisplayName",defaultMessage:"File Request"},defaultInlineErrorContentMessage:{id:"be.defaultInlineErrorContentMessage",defaultMessage:"Please try again later."},fileDescriptionInlineErrorTitleMessage:{id:"be.fileDescriptionInlineErrorTitleMessage",defaultMessage:"Something went wrong when saving the description."},defaultErrorMaskHeaderMessage:{id:"be.defaultErrorMaskHeaderMessage",defaultMessage:"We’re sorry, something went wrong."},defaultErrorMaskSubHeaderMessage:{id:"be.defaultErrorMaskSubHeaderMessage",defaultMessage:"Please refresh the page or try again later."},fileAccessStatsErrorHeaderMessage:{id:"be.fileAccessStatsErrorHeaderMessage",defaultMessage:"Something went wrong when fetching the access stats."},fileAccessStatsPermissionsError:{id:"be.accessStatsPermissionsError",defaultMessage:"Sorry, you do not have permission to see the access stats for this file."},fileClassificationErrorHeaderMessage:{id:"be.fileClassificationErrorHeaderMessage",defaultMessage:"Something went wrong when fetching classification."},currentUserErrorHeaderMessage:{id:"be.currentUserErrorHeaderMessage",defaultMessage:"Something went wrong when fetching the current user."},activityFeedItemApiError:{id:"be.activityFeedItemApiError",defaultMessage:"There was a problem loading the activity feed. Please refresh the page or try again later."},nextFile:{id:"be.nextFile",defaultMessage:"Next File"},nextPage:{id:"be.pagination.nextPage",defaultMessage:"Next Page"},pageStatus:{id:"be.pagination.pageStatus",defaultMessage:"{pageNumber} of {pageCount}"},previousFile:{id:"be.previousFile",defaultMessage:"Previous File"},previousPage:{id:"be.pagination.previousPage",defaultMessage:"Previous Page"},previousSegment:{id:"be.previousSegment",defaultMessage:"Previous Segment"},nextSegment:{id:"be.nextSegment",defaultMessage:"Next Segment"},transcriptEdit:{id:"be.transcriptEdit",defaultMessage:"Click any section to edit."},emptyOpenWithDescription:{id:"be.emptyOpenWithDescription",defaultMessage:"No integrations are available for this file"},errorOpenWithDescription:{id:"be.errorOpenWithDescription",defaultMessage:"Opening this file with other services is currently unavailable"},defaultOpenWithDescription:{id:"be.defaultOpenWithDescription",defaultMessage:"Open this file with a partner service"},executeIntegrationOpenWithErrorHeader:{id:"be.executeIntegrationOpenWithErrorHeader",defaultMessage:"We’re sorry, this integration is currently unavailable."},executeIntegrationOpenWithErrorSubHeader:{id:"be.executeIntegrationOpenWithErrorSubHeader",defaultMessage:"Please try again later."},boxToolsInstallMessage:{id:"be.boxToolsInstallMessage",defaultMessage:"Install {boxTools} to open this file on your desktop"},boxToolsBlacklistedError:{id:"be.boxEditBlacklistedError",defaultMessage:"This file cannot be opened locally"},drawAnnotation:{id:"be.drawAnnotation",defaultMessage:"Drawing annotation mode"},pointAnnotation:{id:"be.pointAnnotation",defaultMessage:"Point annotation mode"},expand:{id:"be.expand",defaultMessage:"Expand"},collapse:{id:"be.collapse",defaultMessage:"Collapse"},back:{id:"be.back",defaultMessage:"Back"},priorCollaborator:{id:"be.priorCollaborator",defaultMessage:"A Prior Collaborator"},moreOptions:{id:"be.moreOptions",defaultMessage:"More options"},bookmark:{id:"be.bookmark",defaultMessage:"Bookmark"},collaboratedFolder:{id:"be.collaboratedFolder",defaultMessage:"Collaborated Folder"},externalFolder:{id:"be.externalFolder",defaultMessage:"External Folder"},file:{id:"be.file",defaultMessage:"File"},folder:{id:"be.folder",defaultMessage:"Folder"},personalFolder:{id:"be.personalFolder",defaultMessage:"Personal Folder"}};var Wn=__webpack_require__(64633),Xn=__webpack_require__.n(Wn);const Kn=["children","title"];class Qn extends e.Component{constructor(...e){var t,r,n;super(...e),t=this,r="id",n=rt()("icon"),(r=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(r))in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n}render(){const t=this.props,{children:r,title:n}=t,i=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(t,Kn),o=`${this.id}-title`,a=Xn()(i,["role","aria-labelledby"]);return a.focusable="false",n?(a["aria-labelledby"]=o,a.role="img"):(a["aria-hidden"]="true",a.role="presentation"),e.createElement("svg",a,n?e.createElement("title",{id:o},n):null,r)}}const Yn=Qn,Jn=({className:t="",color:r="#979797",height:n=64,title:i,width:o=64})=>e.createElement(Yn,{className:`icon-sad-cloud ${t}`,height:n,title:i,viewBox:"0 0 1224 792",width:o},e.createElement("g",{transform:"translate(1 1)"},e.createElement("path",{className:"fill-color",d:"M273.7 788.9c-142 0-257.6-116.5-257.6-259.7 0-140.3 110.9-255 249-259.6 4.6-70.2 33.9-135.4 83.6-185.3C402.8 29.7 475-.3 551.9-.3c56.8 0 110.7 11.3 156 32.7 43.7 20.7 78.4 50.5 101.3 86.9 7.8-1.9 16.2-2.9 25.1-2.9 43.4 0 97.3 23.8 128.2 56.6l.2.2c23.9 26 41.2 59.1 48.9 93.1 4.1 18.3 5 35.1 2.8 49.2 15.8 3.5 32.3 9.8 48.9 18.7 25.1 13.5 49.9 32.7 71.7 55.4 48.9 51.2 77 113.7 77 171.7 0 61.1-23.4 118.4-66 161.3-42.5 42.8-99.1 66.4-159.5 66.4l-712.8-.1zm0-479.5c-120 0-217.6 98.6-217.6 219.7 0 121.2 97.6 219.7 217.6 219.7h712.8c49.6 0 96.2-19.4 131.1-54.6 35.1-35.3 54.4-82.6 54.4-133.1 0-47.7-24-100.2-65.9-144-37.8-39.5-84.7-65-119.6-65-7.9 0-15.1-4.6-18.3-11.9-3.2-7.2-1.9-15.6 3.4-21.5 2.8-3.1 6.8-18 1-43.8-6.1-26.9-20.4-54.1-39.3-74.8-23.2-24.6-66.7-43.9-99-43.9-9.9 0-18.3 1.7-24.8 5.2-4.7 2.5-10.3 3-15.3 1.4-5.1-1.6-9.3-5.2-11.8-9.9-18.2-35.5-49.9-64.7-91.6-84.4-40-18.9-88-28.9-138.9-28.9-66.2 0-128.3 25.8-175 72.8-46.8 47.1-72.6 109.9-72.6 176.9 0 11-9 20-20 20h-10.6z",fill:r}),e.createElement("path",{className:"fill-color",d:"M442.7 585.5c-2.9 0-5.9-.6-8.7-2-10-4.8-14.1-16.7-9.3-26.7 15.4-32 39.7-59.1 70.3-78.1 31-19.3 66.9-29.5 104-29.5 75.5 0 141.4 40 176.2 107.1 5.1 9.8 1.3 21.9-8.5 27-9.8 5.1-21.9 1.3-27-8.5-27.8-53.6-80.3-85.5-140.6-85.5-29.6 0-58.2 8.1-82.8 23.5-24.1 15.1-43.3 36.3-55.4 61.5-3.6 7-10.7 11.2-18.2 11.2z",fill:r}),e.createElement("circle",{className:"fill-color",cx:"496.3",cy:"351.5",fill:r,r:"32.1"}),e.createElement("circle",{className:"fill-color",cx:"688.9",cy:"351.5",fill:r,r:"32.1"}))),Zn={id:"boxui.errorMask.iconSadCloudText",defaultMessage:"Sad Box Cloud"},ei=({errorHeader:t,errorSubHeader:r})=>e.createElement("div",{className:"error-mask"},e.createElement(Jn,{className:"error-mask-sad-cloud",height:50,title:e.createElement(on,Zn)}),e.createElement("h4",null,t),e.createElement("h5",null,r)),ti=()=>e.createElement("section",{className:"be-default-error"},e.createElement(ei,{errorHeader:e.createElement(on,Gn.defaultErrorMaskHeaderMessage),errorSubHeader:e.createElement(on,Gn.defaultErrorMaskSubHeaderMessage)})),ri=["children","errorComponent"];function ni(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ii(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ni(Object(r),!0).forEach((function(t){oi(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ni(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function oi(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class ai extends e.Component{constructor(...e){super(...e),oi(this,"state",{}),oi(this,"handleError",((e,t,r={},n=this.props.errorOrigin)=>{if(!e||!t||!n)return;const i={type:"error",code:t,message:e.message,origin:n,context_info:ii({[Oe]:!0},r)};this.props.onError(i)}))}componentDidCatch(e,t){this.setState({error:e},(()=>{this.handleError(e,"unexpected_exception_error",ii({},t),this.props.errorOrigin)}))}render(){const t=this.props,{children:r,errorComponent:n}=t,i=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(t,ri),{error:o}=this.state;return o?e.createElement(n,{error:o}):e.cloneElement(r,ii(ii({},i),{},{onError:this.handleError}))}}oi(ai,"defaultProps",{errorComponent:ti,onError:it()});const si=ai;function li(){return li=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},li.apply(null,arguments)}var ci=__webpack_require__(19474),ui=__webpack_require__.n(ci);const di=class{constructor(){this.cache={}}set(e,t){this.cache[e]=t}merge(e,t){if(!this.has(e))throw new Error(`Key ${e} not in cache!`);this.set(e,ui()({},this.get(e),t))}unset(e){delete this.cache[e]}unsetAll(e){Object.keys(this.cache).forEach((t=>{t.startsWith(e)&&delete this.cache[t]}))}has(e){return{}.hasOwnProperty.call(this.cache,e)}get(e){if(this.has(e))return this.cache[e]}};var hi=__webpack_require__(76519),fi=__webpack_require__.n(hi),pi=__webpack_require__(25358),mi=__webpack_require__.n(pi);function bi(e){const t=e.lastModified||e.lastModifiedDate;if(t&&("string"==typeof t||"number"==typeof t||t instanceof Date)){const e=new Date(t);if(r=e,"[object Date]"===Object.prototype.toString.call(r)&&!Number.isNaN(r.getTime()))return function(e){return e.toISOString().replace(/\.[0-9]{3}/,"")}(e)}var r;return null}function gi(e,t,r){const n=e*r**2;return n>t?t:n}function yi(e,t,r=0,n=1){let i=0,o=r;return new Promise(((r,a)=>{!function s(l){setTimeout((()=>{i+=1,new Promise(((t,r)=>{e(t,r,a)})).then(r).catch((e=>{if(i<t)return o*=n,void s(o);a(e)}))}),l)}(o)}))}var vi=__webpack_require__(5026),wi=__webpack_require__.n(vi);function Ei(e,t){const r=window.crypto||window.msCrypto;return r!==window.msCrypto?r.subtle.digest(e,t):new Promise(((n,i)=>{if("SHA-1"===e)try{const e=wi().arrayBuffer(t);n(e)}catch(e){i(e)}else{const o=r.subtle.digest({name:e},t);o.oncomplete=e=>{n(e.target.result)},o.onerror=i}}))}function Si(e,t,r){"use asm";var n=new e.Int32Array(r);function i(e,t){e=e|0;t=t|0;var r=0,i=0,o=0,a=0,s=0,l=0,c=0,u=0,d=0,h=0,f=0,p=0,m=0,b=0;o=n[t+320>>2]|0;s=n[t+324>>2]|0;c=n[t+328>>2]|0;d=n[t+332>>2]|0;f=n[t+336>>2]|0;for(r=0;(r|0)<(e|0);r=r+64|0){a=o;l=s;u=c;h=d;p=f;for(i=0;(i|0)<64;i=i+4|0){b=n[r+i>>2]|0;m=((o<<5|o>>>27)+(s&c|~s&d)|0)+((b+f|0)+1518500249|0)|0;f=d;d=c;c=s<<30|s>>>2;s=o;o=m;n[e+i>>2]=b}for(i=e+64|0;(i|0)<(e+80|0);i=i+4|0){b=(n[i-12>>2]^n[i-32>>2]^n[i-56>>2]^n[i-64>>2])<<1|(n[i-12>>2]^n[i-32>>2]^n[i-56>>2]^n[i-64>>2])>>>31;m=((o<<5|o>>>27)+(s&c|~s&d)|0)+((b+f|0)+1518500249|0)|0;f=d;d=c;c=s<<30|s>>>2;s=o;o=m;n[i>>2]=b}for(i=e+80|0;(i|0)<(e+160|0);i=i+4|0){b=(n[i-12>>2]^n[i-32>>2]^n[i-56>>2]^n[i-64>>2])<<1|(n[i-12>>2]^n[i-32>>2]^n[i-56>>2]^n[i-64>>2])>>>31;m=((o<<5|o>>>27)+(s^c^d)|0)+((b+f|0)+1859775393|0)|0;f=d;d=c;c=s<<30|s>>>2;s=o;o=m;n[i>>2]=b}for(i=e+160|0;(i|0)<(e+240|0);i=i+4|0){b=(n[i-12>>2]^n[i-32>>2]^n[i-56>>2]^n[i-64>>2])<<1|(n[i-12>>2]^n[i-32>>2]^n[i-56>>2]^n[i-64>>2])>>>31;m=((o<<5|o>>>27)+(s&c|s&d|c&d)|0)+((b+f|0)-1894007588|0)|0;f=d;d=c;c=s<<30|s>>>2;s=o;o=m;n[i>>2]=b}for(i=e+240|0;(i|0)<(e+320|0);i=i+4|0){b=(n[i-12>>2]^n[i-32>>2]^n[i-56>>2]^n[i-64>>2])<<1|(n[i-12>>2]^n[i-32>>2]^n[i-56>>2]^n[i-64>>2])>>>31;m=((o<<5|o>>>27)+(s^c^d)|0)+((b+f|0)-899497514|0)|0;f=d;d=c;c=s<<30|s>>>2;s=o;o=m;n[i>>2]=b}o=o+a|0;s=s+l|0;c=c+u|0;d=d+h|0;f=f+p|0}n[t+320>>2]=o;n[t+324>>2]=s;n[t+328>>2]=c;n[t+332>>2]=d;n[t+336>>2]=f}return{hash:i}}const Ci=()=>{const e=new Blob([`const RushaCore = ${Si.toString()}`,";\n",'function Rusha(e){for(var r=function(e){if("string"==typeof e)return"string";if(e instanceof Array)return"array";if("undefined"!=typeof global&&global.Buffer&&global.Buffer.isBuffer(e))return"buffer";if(e instanceof ArrayBuffer)return"arraybuffer";if(e.buffer instanceof ArrayBuffer)return"view";if(e instanceof Blob)return"blob";throw new Error("Unsupported data type.")},n={fill:0},t=function(e){for(e+=9;e%64>0;e+=1);return e},a=function(e,r,n,t,a){var f,s=this,i=a%4,h=(t+i)%4,u=t-h;switch(i){case 0:e[a]=s[n+3];case 1:e[a+1-(i<<1)|0]=s[n+2];case 2:e[a+2-(i<<1)|0]=s[n+1];case 3:e[a+3-(i<<1)|0]=s[n]}if(!(t<h+i)){for(f=4-i;f<u;f=f+4|0)r[a+f>>2|0]=s[n+f]<<24|s[n+f+1]<<16|s[n+f+2]<<8|s[n+f+3];switch(h){case 3:e[a+u+1|0]=s[n+u+2];case 2:e[a+u+2|0]=s[n+u+1];case 1:e[a+u+3|0]=s[n+u]}}},f=function(e){switch(r(e)){case"string":return function(e,r,n,t,a){var f,s=this,i=a%4,h=(t+i)%4,u=t-h;switch(i){case 0:e[a]=s.charCodeAt(n+3);case 1:e[a+1-(i<<1)|0]=s.charCodeAt(n+2);case 2:e[a+2-(i<<1)|0]=s.charCodeAt(n+1);case 3:e[a+3-(i<<1)|0]=s.charCodeAt(n)}if(!(t<h+i)){for(f=4-i;f<u;f=f+4|0)r[a+f>>2]=s.charCodeAt(n+f)<<24|s.charCodeAt(n+f+1)<<16|s.charCodeAt(n+f+2)<<8|s.charCodeAt(n+f+3);switch(h){case 3:e[a+u+1|0]=s.charCodeAt(n+u+2);case 2:e[a+u+2|0]=s.charCodeAt(n+u+1);case 1:e[a+u+3|0]=s.charCodeAt(n+u)}}}.bind(e);case"array":case"buffer":return a.bind(e);case"arraybuffer":return a.bind(new Uint8Array(e));case"view":return a.bind(new Uint8Array(e.buffer,e.byteOffset,e.byteLength));case"blob":return function(e,r,n,t,a){var f,s=a%4,i=(t+s)%4,h=t-i,u=new Uint8Array(reader.readAsArrayBuffer(this.slice(n,n+t)));switch(s){case 0:e[a]=u[3];case 1:e[a+1-(s<<1)|0]=u[2];case 2:e[a+2-(s<<1)|0]=u[1];case 3:e[a+3-(s<<1)|0]=u[0]}if(!(t<i+s)){for(f=4-s;f<h;f=f+4|0)r[a+f>>2|0]=u[f]<<24|u[f+1]<<16|u[f+2]<<8|u[f+3];switch(i){case 3:e[a+h+1|0]=u[h+2];case 2:e[a+h+2|0]=u[h+1];case 1:e[a+h+3|0]=u[h]}}}.bind(e)}},s=new Array(256),i=0;i<256;i++)s[i]=(i<16?"0":"")+i.toString(16);var h=function(e){for(var r=new Uint8Array(e),n=new Array(e.byteLength),t=0;t<n.length;t++)n[t]=s[r[t]];return n.join("")};!function(e){if(e%64>0)throw new Error("Chunk size must be a multiple of 128 bit");n.offset=0,n.maxChunkLen=e,n.padMaxChunkLen=t(e),n.heap=new ArrayBuffer(function(e){var r;if(e<=65536)return 65536;if(e<16777216)for(r=1;r<e;r<<=1);else for(r=16777216;r<e;r+=16777216);return r}(n.padMaxChunkLen+320+20)),n.h32=new Int32Array(n.heap),n.h8=new Int8Array(n.heap),n.core=new RushaCore({Int32Array:Int32Array,DataView:DataView},{},n.heap),n.buffer=null}(e||65536);var u=function(e,r){n.offset=0;var t=new Int32Array(e,r+320,5);t[0]=1732584193,t[1]=-271733879,t[2]=-1732584194,t[3]=271733878,t[4]=-1009589776},c=function(e,r){var a,f,s,i=t(e),h=new Int32Array(n.heap,0,i>>2);return function(e,r){var n=new Uint8Array(e.buffer),t=r%4,a=r-t;switch(t){case 0:n[a+3]=0;case 1:n[a+2]=0;case 2:n[a+1]=0;case 3:n[a+0]=0}for(var f=1+(r>>2);f<e.length;f++)e[f]=0}(h,e),s=r,(a=h)[(f=e)>>2]|=128<<24-(f%4<<3),a[14+(2+(f>>2)&-16)]=s/(1<<29)|0,a[15+(2+(f>>2)&-16)]=s<<3,i},o=function(e,r,t,a){f(e)(n.h8,n.h32,r,t,a||0)},d=function(e,r,t,a,f){var s=t;o(e,r,t),f&&(s=c(t,a)),n.core.hash(s,n.padMaxChunkLen)},y=function(e,r){var n=new Int32Array(e,r+320,5),t=new Int32Array(5),a=new DataView(t.buffer);return a.setInt32(0,n[0],!1),a.setInt32(4,n[1],!1),a.setInt32(8,n[2],!1),a.setInt32(12,n[3],!1),a.setInt32(16,n[4],!1),t},w=this.rawDigest=function(e){var r=e.byteLength||e.length||e.size||0;u(n.heap,n.padMaxChunkLen);var t=0,a=n.maxChunkLen;for(t=0;r>t+a;t+=a)d(e,t,a,r,!1);return d(e,t,r-t,r,!0),y(n.heap,n.padMaxChunkLen)};this.digest=this.digestFromString=this.digestFromBuffer=this.digestFromArrayBuffer=function(e){return h(w(e).buffer)},this.resetState=function(){return u(n.heap,n.padMaxChunkLen),this},this.append=function(e){var r,t=0,a=e.byteLength||e.length||e.size||0,f=n.offset%n.maxChunkLen;for(n.offset+=a;t<a;)r=Math.min(a-t,n.maxChunkLen-f),o(e,t,r,f),t+=r,(f+=r)===n.maxChunkLen&&(n.core.hash(n.maxChunkLen,n.padMaxChunkLen),f=0);return this},this.getState=function(){var e;if(n.offset%n.maxChunkLen)e=n.heap.slice(0);else{var r=new Int32Array(n.heap,n.padMaxChunkLen+320,5);e=r.buffer.slice(r.byteOffset,r.byteOffset+r.byteLength)}return{offset:n.offset,heap:e}},this.setState=function(e){(n.offset=e.offset,20===e.heap.byteLength)?new Int32Array(n.heap,n.padMaxChunkLen+320,5).set(new Int32Array(e.heap)):n.h32.set(new Int32Array(e.heap));return this};var p=this.rawEnd=function(){var e=n.offset,r=e%n.maxChunkLen,t=c(r,e);n.core.hash(t,n.padMaxChunkLen);var a=y(n.heap,n.padMaxChunkLen);return u(n.heap,n.padMaxChunkLen),a};this.end=function(){return h(p().buffer)}}',";\n","var setupWorker = ",function(){const e=new Rusha;e.resetState();let t=0;self.onmessage=r=>{const{data:n}=r,{part:i,fileSize:o,partContents:a}=n,s=Date.now();try{if(i.offset!==t)throw new Error("Out of order parts given to worker");if(e.append(a),self.postMessage({type:"partDone",part:n.part,duration:Date.now()-s,partContents:a},[a]),t+=i.size,i.offset+i.size===o){const t=e.end();self.postMessage({type:"done",sha1:t})}}catch(e){const t={type:"error",name:e.name,message:e.message,part:i};self.postMessage(t)}}}.toString(),";\n","setupWorker();"],{type:"text/javascript"}),t=(window.URL||window.webkitURL).createObjectURL(e),r=new Worker(t);return r.oldTerminate=r.terminate,r.terminate=()=>{(window.URL||window.webkitURL).revokeObjectURL(t),r.oldTerminate()},r};var ki=__webpack_require__(84708),xi=__webpack_require__.n(ki),Pi=__webpack_require__(53095),_i=__webpack_require__.n(Pi),Oi=__webpack_require__(69849),Ai=__webpack_require__.n(Oi),Ti=__webpack_require__(59315),Ii=__webpack_require__.n(Ti);const Mi=new Error("Bad id or auth token. ID should be typed id like file_123 or folder_123! Token should be a string or function.");class Di{static async getToken(e,t){if(null!=t&&"string"!=typeof t&&"function"!=typeof t||!e.startsWith(b)&&!e.startsWith(g))throw Mi;if(!t||"string"==typeof t)return t;const r=await t(e);if(!r||"string"==typeof r||"object"==typeof r&&(r.read||r.write))return r;throw Mi}static async getReadToken(e,t){const r=await Di.getToken(e,t);return r&&"object"==typeof r?r.read:r}static async getReadTokens(e,t){const r=Array.isArray(e)?e:[e],n=r.map((e=>Di.getReadToken(e,t))),i=await Promise.all(n),o={};return i.forEach(((e,t)=>{o[r[t]]=e})),Promise.resolve(o)}static async getWriteToken(e,t){const r=await Di.getToken(e,t);return r&&"object"==typeof r?r.write||r.read:r}static async cacheTokens(e,t){if(null!=t&&"string"!=typeof t&&"function"!=typeof t||!e.every((e=>e.startsWith(b)||e.startsWith(g))))throw Mi;return"function"==typeof t&&await t(e),Promise.resolve()}}const Ri=Di;function Fi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Li(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ji=[De,je,"HEAD"].map(Ii()),Ni=class{constructor({id:e,clientName:t,language:r,token:n,version:i,sharedLink:o,sharedLinkPassword:a,responseInterceptor:s,requestInterceptor:l,retryableStatusCodes:c=[Ne],shouldRetry:u=!0}={}){Li(this,"retryCount",0),Li(this,"errorInterceptor",(e=>{if(this.shouldRetryRequest(e)){this.retryCount+=1;const t=this.getExponentialRetryTimeoutInMs(this.retryCount);return new Promise(((r,n)=>{this.retryTimeout=setTimeout((()=>{this.axios(e.config).then(r,n)}),t)}))}const t=mi()(e,"response.data")||e;return this.responseInterceptor(t),Promise.reject(e)})),this.clientName=t,this.id=e,this.language=r,this.responseInterceptor=s||this.defaultResponseInterceptor,this.retryableStatusCodes=c,this.sharedLink=o,this.sharedLinkPassword=a,this.shouldRetry=u,this.token=n,this.version=i,this.axios=_i().create(),this.axiosSource=_i().CancelToken.source(),this.axios.interceptors.response.use(this.responseInterceptor,this.errorInterceptor),"function"==typeof l&&this.axios.interceptors.request.use(l)}defaultResponseInterceptor(e){return e}shouldRetryRequest(e){if(!this.shouldRetry||this.retryCount>=3)return!1;const{response:t,request:r,config:n}=e,i=mi()(t,"status"),o=mi()(n,"method"),a=r&&!t,s=i===Ne,l=Ai()(this.retryableStatusCodes,i)&&Ai()(ji,o);return a||s||l}getExponentialRetryTimeoutInMs(e){return 2**(e-1)*1e3+Math.ceil(1e3*Math.random())}getParsedUrl(e){const t=document.createElement("a");return t.href=e,{api:e.replace(`${t.origin}/2.0`,""),host:t.host,hostname:t.hostname,pathname:t.pathname,origin:t.origin,protocol:t.protocol,hash:t.hash,port:t.port}}async getHeaders(e,t={}){const r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Fi(Object(r),!0).forEach((function(t){Li(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fi(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({Accept:"application/json",[S]:"application/json"},t);this.language&&!r[C]&&(r[C]=this.language),this.sharedLink&&(r.BoxApi=`shared_link=${this.sharedLink}`,this.sharedLinkPassword&&(r.BoxApi=`${r.BoxApi}&shared_link_password=${this.sharedLinkPassword}`)),this.clientName&&(r["X-Box-Client-Name"]=this.clientName),this.version&&(r["X-Box-Client-Version"]=this.version);const n=e||this.id||"",i=await Ri.getWriteToken(n,this.token);return i&&(r.Authorization=`Bearer ${i}`),r}get({url:e,id:t,params:r={},headers:n={}}){return this.getHeaders(t,n).then((t=>this.axios.get(e,{cancelToken:this.axiosSource.token,params:r,headers:t,parsedUrl:this.getParsedUrl(e)})))}post({url:e,id:t,data:r,params:n,headers:i={},method:o=Re}){return this.getHeaders(t,i).then((t=>this.axios({url:e,data:r,params:n,method:o,parsedUrl:this.getParsedUrl(e),headers:t})))}put({url:e,id:t,data:r,params:n,headers:i={}}){return this.post({id:t,url:e,data:r,params:n,headers:i,method:Fe})}delete({url:e,id:t,data:r={},headers:n={}}){return this.post({id:t,url:e,data:r,headers:n,method:Le})}options({id:e,url:t,data:r,headers:n={},successHandler:i,errorHandler:o}){return this.getHeaders(e,n).then((e=>this.axios({url:t,data:r,method:je,headers:e}).then(i).catch(o))).catch(o)}uploadFile({id:e,url:t,data:r,headers:n={},method:i=Re,successHandler:o,errorHandler:a,progressHandler:s,withIdleTimeout:l=!1,idleTimeoutDuration:c=12e4,idleTimeoutHandler:u}){return this.getHeaders(e,n).then((e=>{let d,h=s;if(l){const e=()=>{this.abort(),u&&u()};d=setTimeout(e,c),h=t=>{clearTimeout(d),d=setTimeout(e,c),s(t)}}this.axios({url:t,data:r,transformRequest:(e,t)=>{if(delete t.Accept,delete t[S],n[S]&&(t[S]=n[S]),e&&!(e instanceof Blob)&&e.attributes){const t=new FormData;return Object.keys(e).forEach((r=>{t.append(r,e[r])})),t}return e},method:i,headers:e,onUploadProgress:h,cancelToken:this.axiosSource.token}).then((e=>{clearTimeout(d),o(e)})).catch((e=>{clearTimeout(d),a(e)}))})).catch(a)}abort(){this.retryTimeout&&clearTimeout(this.retryTimeout),this.axiosSource&&(this.axiosSource.cancel(),this.axiosSource=_i().CancelToken.source())}},Ui=class{constructor(){this.memoryStore=new di;try{this.localStorage=window.localStorage,this.isLocalStorageAvailable=this.canUseLocalStorage()}catch(e){this.isLocalStorageAvailable=!1}}buildKey(e){return`localStore/0/${e}`}canUseLocalStorage(){if(!this.localStorage)return!1;try{return this.localStorage.setItem(this.buildKey("TestKey"),"testValue"),this.localStorage.removeItem(this.buildKey("TestKey")),!0}catch(e){return!1}}setItem(e,t){if(this.isLocalStorageAvailable)try{this.localStorage.setItem(this.buildKey(e),JSON.stringify(t))}catch(e){}else this.memoryStore.set(e,t)}getItem(e){if(!this.isLocalStorageAvailable)return this.memoryStore.get(e);try{const t=this.localStorage.getItem(this.buildKey(e));return t?JSON.parse(t):null}catch(e){return null}}removeItem(e){if(this.isLocalStorageAvailable)try{this.localStorage.removeItem(this.buildKey(e))}catch(e){}else this.memoryStore.unset(e)}},Hi="bcu-uploads-reachability-cached-results",Bi=class{constructor(){this.localStore=new Ui,this.cachedResults={},this.populateCachedResultsWithValidLocalStoreValues(),this.saveCachedResultsToLocalStore()}getCachedResultsFromLocalStore(){return this.localStore.getItem(Hi)}saveCachedResultsToLocalStore(){this.localStore.setItem(Hi,this.cachedResults)}isCachedHostValid(e){return e.expirationTimestampMS>Date.now()}getCachedResult(e){if(e in this.cachedResults){const t=this.cachedResults[e];if(this.isCachedHostValid(t))return t}return null}updateCachedResult(e,t){this.cachedResults[e]={isReachable:t,expirationTimestampMS:Date.now()+864e5},this.saveCachedResultsToLocalStore()}populateCachedResultsWithValidLocalStoreValues(){const e=this.getCachedResultsFromLocalStore();e&&Object.keys(e).forEach((t=>{const r=e[t];this.isCachedHostValid(r)&&(this.cachedResults[t]=r)}))}getUnreachableHostsUrls(){const e=[];return this.cachedResults?(Object.keys(this.cachedResults).forEach((t=>{const r=this.cachedResults[t];this.isCachedHostValid(r)&&!r.isReachable&&e.push(t)})),e):e}async isReachable(e){if(e===`${ce}/`||e===`${ue}/`)return!0;const t=this.getCachedResult(e);if(t)return t.isReachable;const r=await this.makeReachabilityRequest(e);return this.updateCachedResult(e,r),r}async makeReachabilityRequest(e){const t=`${e}html5?reachability_test=run`,r={[S]:"application/x-www-form-urlencoded; charset=UTF-8","X-File-Name":"reachability_pseudofile.txt","X-File-Size":"1234"};try{await _i().post(t,"reachability_file=test_file_data",{headers:r})}catch(e){return!1}return!0}};function zi(e){return`${g}${e}`}function Vi(){return new Error("Bad box item!")}function $i(){return new Error("Insufficient Permissions!")}function qi(){return new Error("Bad box user!")}function Gi(){return new Error("Missing text or status!")}function Wi(e){return e===Ne||401===e||409===e||e>=500}function Xi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ki(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Xi(Object(r),!0).forEach((function(t){Qi(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xi(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Qi(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Yi=class{constructor(e){Qi(this,"successHandler",(e=>{this.isDestroyed()||"function"!=typeof this.successCallback||this.successCallback(e)})),Qi(this,"errorHandler",(e=>{if(!this.isDestroyed()&&"function"==typeof this.errorCallback){const{response:t}=e;t&&t.data?this.errorCallback(t.data,this.errorCode):this.errorCallback(e,this.errorCode)}})),this.cache=e.cache||new di,this.apiHost=e.apiHost||le,this.uploadHost=e.uploadHost||ce,this.options=Ki(Ki({},e),{},{apiHost:this.apiHost,uploadHost:this.uploadHost,cache:this.cache}),this.xhr=new Ni(this.options),this.destroyed=!1,this.consoleLog=e.consoleLog&&window.console&&window.console.log||it(),this.consoleError=e.consoleError&&window.console&&window.console.error||it(),this.uploadsReachability=new Bi}destroy(){this.xhr.abort(),this.destroyed=!0}isDestroyed(){return this.destroyed}checkApiCallValidity(e,t,r){if(!r||!t)throw Vi();if(!t[e])throw $i()}getBaseApiUrl(){const e=this.apiHost.endsWith("/")?"2.0":"/2.0";return`${this.apiHost}${e}`}getBaseUploadUrl(){const e=this.uploadHost.endsWith("/")?"api/2.0":"/api/2.0";return`${this.uploadHost}${e}`}getCache(){return this.cache}getUrl(e){throw new Error("Implement me!")}format(e){throw new Error("Implement me!")}get({id:e,successCallback:t,errorCallback:r,requestData:n,url:i}){const o=i||this.getUrl(e);return this.makeRequest(De,e,o,t,r,n)}post({id:e,url:t,data:r,successCallback:n,errorCallback:i}){return this.makeRequest(Re,e,t,n,i,r)}put({id:e,url:t,data:r,successCallback:n,errorCallback:i}){return this.makeRequest(Fe,e,t,n,i,r)}delete({id:e,url:t,data:r,successCallback:n,errorCallback:i}){return this.makeRequest(Le,e,t,n,i,r)}async makeRequest(e,t,r,n,i,o={}){if(this.isDestroyed())return;this.successCallback=n,this.errorCallback=i;const a=this.xhr[e.toLowerCase()].bind(this.xhr);try{const{data:e}=await a(Ki({id:zi(t),url:r},o));this.successHandler(e)}catch(e){this.errorHandler(e)}}};function Ji(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Zi=class extends Yi{constructor(...e){super(...e),Ji(this,"retryCount",0),Ji(this,"reachabilityRetryCount",0),Ji(this,"isUploadFallbackLogicEnabled",!1),Ji(this,"makePreflightRequest",(()=>{if(this.isDestroyed())return;let e=`${this.getBaseApiUrl()}/files/content`;if(this.fileId&&(e=e.replace("content",`${this.fileId}/content`)),this.isUploadFallbackLogicEnabled){const t=this.uploadsReachability.getUnreachableHostsUrls();0!==t.length&&(e+=`?unreachable_hosts=${t.join(",")}`)}const{size:t,name:r}=this.file,n={name:this.fileName||r,parent:{id:this.folderId},description:this.fileDescription,size:t};this.xhr.options({url:e,data:n,successHandler:e=>{this.isUploadFallbackLogicEnabled?this.preflightSuccessReachabilityHandler(e):this.preflightSuccessHandler(e)},errorHandler:this.preflightErrorHandler})})),Ji(this,"preflightSuccessReachabilityHandler",(async({data:e})=>{if(this.isDestroyed())return;const{upload_url:t}=e;if(!t)return void this.preflightSuccessHandler({data:e});const r=this.getUploadHostFromUrl(t);r!==`${ce}/`&&r!==`${ue}/`&&"https://upload.app.box-gov.com/"!==r?await this.uploadsReachability.isReachable(r)?this.preflightSuccessHandler({data:e}):this.reachabilityRetryCount>=10?this.preflightSuccessHandler({data:{}}):(this.reachabilityRetryCount+=1,this.makePreflightRequest()):this.preflightSuccessHandler({data:e})})),Ji(this,"preflightErrorHandler",(e=>{if(this.isDestroyed())return;this.fileName=this.file?this.file.name:"";let t=e;const{response:r}=e;if(r&&r.data&&(t=r.data),this.retryCount>=5)this.errorCallback(t);else if(t&&409===t.status){if(this.overwrite){const e=t.context_info.conflicts.id;!this.fileId&&e&&(this.fileId=e)}else if(this.conflictCallback)this.fileName=this.conflictCallback(this.fileName);else{const e=this.fileName.substr(this.fileName.lastIndexOf("."))||"";this.fileName=`${this.fileName.substr(0,this.fileName.lastIndexOf("."))}-${Date.now()}${e}`}this.makePreflightRequest(),this.retryCount+=1}else if(!t||429!==t.status&&"too_many_requests"!==t.code)t&&(t.status||"Failed to fetch"===t.message)&&"function"==typeof this.errorCallback?this.errorCallback(t):(this.retryTimeout=setTimeout(this.makePreflightRequest,2**this.retryCount*Ie),this.retryCount+=1);else{let e=Te;if(t.headers){const r=parseInt(t.headers["retry-after"]||t.headers.get("Retry-After"),10);Number.isNaN(r)||(e=r*Ie)}this.retryTimeout=setTimeout(this.makePreflightRequest,e),this.retryCount+=1}}))}readFile(e,t){return new Promise(((r,n)=>{e.readAsArrayBuffer(t),e.onload=()=>{r({buffer:e.result,readCompleteTimestamp:Date.now()})},e.onerror=n}))}getUploadHostFromUrl(e){const t=e.split("/");return`${t[0]}//${t[2]}/`}};function eo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function to(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?eo(Object(r),!0).forEach((function(t){ro(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eo(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ro(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const no={digestReadahead:5,initialRetryDelayMs:5e3,maxRetryDelayMs:6e4,parallelism:4,requestTimeoutMs:12e4,retries:5},io=class extends Zi{constructor(e,t,r){super(to(to({},e),{},{shouldRetry:!1})),ro(this,"logEvent",((e,t)=>{const r={event_type:e};return t&&(r.event_info=t),this.xhr.post({url:this.sessionEndpoints.logEvent,data:r})})),this.config=r||no,this.sessionEndpoints=t}};function oo(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ao=class extends io{constructor(e,t,r,n,i,o,a,s,l,c,u,d){super(e,a,s),oo(this,"toJSON",(()=>JSON.stringify({index:this.index,offset:this.offset,partSize:this.partSize,state:this.state,uploadedBytes:this.uploadedBytes,numUploadRetriesPerformed:this.numUploadRetriesPerformed,numDigestRetriesPerformed:this.numDigestRetriesPerformed,sha1:this.sha1,timing:this.timing}))),oo(this,"getPart",(()=>this.data.part||{})),oo(this,"upload",(()=>{if(this.isDestroyedOrPaused())return;if(!this.sha1)throw new Error("Part SHA-1 unavailable");if(!this.blob)throw new Error("Part blob unavailable");const e={documentHidden:document.hidden,digest_retries:this.numDigestRetriesPerformed,timing:this.timing,parts_uploading:this.getNumPartsUploading()},t={"Content-Type":"application/octet-stream",Digest:`sha=${this.sha1}`,"Content-Range":`bytes ${this.offset}-${this.rangeEnd}/${this.fileSize}`,"X-Box-Client-Event-Info":JSON.stringify(e)};this.state=2,this.startTimestamp=Date.now(),this.xhr.uploadFile({url:this.sessionEndpoints.uploadPart,data:this.blob,headers:t,method:Fe,successHandler:this.uploadSuccessHandler,errorHandler:this.uploadErrorHandler,progressHandler:this.uploadProgressHandler,withIdleTimeout:!0,idleTimeoutDuration:this.config.requestTimeoutMs})})),oo(this,"uploadSuccessHandler",(({data:e})=>{this.isDestroyedOrPaused()||(this.state=3,this.consoleLog(`Upload completed: ${this.toJSON()}.`),this.data=e,this.blob=null,this.timing.uploadTime=Date.now()-this.startTimestamp,this.onSuccess(this),this.uploadedBytes=this.partSize)})),oo(this,"uploadProgressHandler",(e=>{if(this.isDestroyedOrPaused())return;const t=parseInt(e.loaded,10),r=this.uploadedBytes;this.uploadedBytes=t,this.onProgress(r,t)})),oo(this,"uploadErrorHandler",(async e=>{if(this.isDestroyedOrPaused())return;const t=mi()(this.xhr,"xhr.readyState",null),r=mi()(this.xhr,"xhr.statusText","");this.consoleLog(`Upload failure ${e.message} for part ${this.toJSON()}. XHR state: ${t}.`);const n={message:e.message,part:{uploadedBytes:this.uploadedBytes,id:this.id,index:this.index,offset:this.offset},xhr_ready_state:t,xhr_status_text:r},i=JSON.stringify(n);if(this.sessionEndpoints.logEvent?yi(((e,t)=>{this.logEvent("part_failure",i).then(e).catch(t)}),this.config.retries,this.config.initialRetryDelayMs).catch((e=>this.consoleLog(`Failure in logEvent: ${e.message}`))):this.consoleLog("logEvent endpoint not found"),this.numUploadRetriesPerformed>=this.config.retries)return void this.onError(e,i);const o=gi(this.config.initialRetryDelayMs,this.config.maxRetryDelayMs,this.numUploadRetriesPerformed);this.numUploadRetriesPerformed+=1,this.consoleLog(`Retrying uploading part ${this.toJSON()} in ${o} ms`),this.retryTimeout=setTimeout(this.retryUpload,o)})),oo(this,"retryUpload",(async()=>{if(!this.isDestroyedOrPaused())try{const e=await this.listParts(this.index,1);if(e&&1===e.length&&e[0].offset===this.offset&&e[0].part_id)return this.consoleLog(`Part ${this.toJSON()} is available on server. Not re-uploading.`),this.id=e[0].part_id,void this.uploadSuccessHandler({data:{part:e[0]}});throw this.consoleLog(`Part ${this.toJSON()} is not available on server. Re-uploading.`),new Error("Part not found on the server")}catch(e){const{response:t}=e;t&&t.status&&this.consoleLog(`Error ${t.status} while listing part ${this.toJSON()}. Re-uploading.`),this.numUploadRetriesPerformed+=1,this.upload()}})),oo(this,"listParts",(async(e,t)=>{const r={offset:e,limit:t},n=function(e,t){if(!t)return e;const r=new(xi())(e);return Object.keys(t).forEach((e=>{const n=t[e];n&&(r.hasQueryParam(e)?r.replaceQueryParam(e,n):r.addQueryParam(e,n))})),r.toString()}(this.sessionEndpoints.listParts,r);return(await this.xhr.get({url:n})).data.entries})),this.index=t,this.numDigestRetriesPerformed=0,this.numUploadRetriesPerformed=0,this.offset=r,this.partSize=n,this.fileSize=i,this.state=0,this.timing={},this.uploadedBytes=0,this.data={},this.config=s,this.rangeEnd=r+n-1,this.rangeEnd>i-1&&(this.rangeEnd=i-1),this.isPaused=!1,this.onSuccess=c||it(),this.onError=d||it(),this.onProgress=u||it(),this.getNumPartsUploading=l}cancel(){clearTimeout(this.retryTimeout),this.blob=null,this.data={},this.destroy()}pause(){clearTimeout(this.retryTimeout),this.isPaused=!0,this.state=1,this.xhr.abort()}unpause(){this.isPaused=!1,this.state=2,this.retryUpload()}reset(){this.numUploadRetriesPerformed=0,this.timing={},this.uploadedBytes=0}isDestroyedOrPaused(){return this.isDestroyed()||this.isPaused}};function so(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function lo(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?so(Object(r),!0).forEach((function(t){co(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):so(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function co(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const uo=class extends io{constructor(e,t){super(e,{createSession:null,uploadPart:null,listParts:null,commit:null,abort:null,logEvent:null},t),co(this,"getBaseUploadUrlFromPreflightResponse",(({data:e})=>{if(!e||!e.upload_url)return this.getBaseUploadUrl();const t=e.upload_url.split("/");return this.uploadHost=`${t[0]}//${t[2]}`,this.getBaseUploadUrl()})),co(this,"preflightSuccessHandler",(async e=>{if(this.isDestroyed())return;let t=`${this.getBaseUploadUrlFromPreflightResponse(e)}/files/upload_sessions`;t.includes("fupload-ec2")&&(this.config.parallelism=1);const r={file_size:this.file.size,file_name:this.fileName};this.fileId?t=t.replace("upload_sessions",`${this.fileId}/upload_sessions`):r.folder_id=this.folderId;try{const e=await this.xhr.post({url:t,data:r});this.createSessionSuccessHandler(e.data)}catch(e){const t=this.getErrorResponse(e);if(t&&t.status>=500&&t.status<600)return void this.createSessionErrorHandler(e);if(t&&409===t.status&&"session_conflict"===t.code)return void this.createSessionSuccessHandler(t.context_info.session);if(t&&403===t.status&&"storage_limit_exceeded"===t.code||403===t.status&&"access_denied_insufficient_permissions"===t.code)return void this.errorCallback(t);if(t&&409===t.status)return this.resolveConflict(t),void this.createSessionRetry();this.sessionErrorHandler(e,"create_session_misc_error",JSON.stringify(e))}})),co(this,"createSessionErrorHandler",(e=>{this.isDestroyed()||(this.createSessionNumRetriesPerformed<this.config.retries?this.createSessionRetry():(this.consoleLog("Too many create session failures, failing upload"),this.sessionErrorHandler(e,"create_session_retries_exceeded",JSON.stringify(e))))})),co(this,"getSessionInfo",(async()=>{const e=`${this.getBaseUploadUrl()}/files/upload_sessions/${this.sessionId}`;try{const t=await this.xhr.get({url:e});this.getSessionSuccessHandler(t.data)}catch(e){this.getSessionErrorHandler(e)}})),co(this,"partUploadSuccessHandler",(e=>{this.numPartsUploading-=1,this.numPartsUploaded+=1,this.updateProgress(e.uploadedBytes,this.partSize),this.processNextParts()})),co(this,"partUploadErrorHandler",((e,t)=>{if(this.sessionErrorHandler(e,"part_upload_retries_exceeded",t),this.isResumableUploadsEnabled){let e=this.firstUnuploadedPartIndex;for(;this.numPartsUploading>0;){const t=this.parts[e];t&&2===t.state&&(t.reset(),t.pause(),this.numPartsUploading-=1,this.numPartsDigestReady+=1),e+=1}}})),co(this,"updateProgress",((e,t)=>{this.isDestroyed()||(this.totalUploadedBytes+=t-e,this.progressCallback({loaded:this.totalUploadedBytes,total:this.file.size}))})),co(this,"processNextParts",(()=>{if(!this.failSessionIfFileChangeDetected())if(this.numPartsUploaded===this.parts.length&&this.fileSha1)this.commitSession();else{for(this.updateFirstUnuploadedPartIndex();this.canStartMorePartUploads();)this.uploadNextPart();this.shouldComputeDigestForNextPart()&&this.computeDigestForNextPart()}})),co(this,"onWorkerMessage",(e=>{if(this.isDestroyed())return;const{data:t}=e;if("partDone"===t.type){const{part:e}=t;this.parts[e.index].timing.fileDigestTime=t.duration,this.processNextParts()}else"done"===t.type?(this.fileSha1=(r=t.sha1,btoa(String.fromCharCode.apply(null,r.replace(/\r|\n/g,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")))),this.sha1Worker.terminate(),this.processNextParts()):"error"===t.type&&this.sessionErrorHandler(null,"web_worker_error",JSON.stringify(t));var r})),co(this,"sendPartToWorker",((e,t)=>{if(this.isDestroyed())return;const r={index:e.index,offset:e.offset,size:e.partSize};this.sha1Worker.postMessage({part:r,fileSize:this.file.size,partContents:t},[t]),this.consoleLog(`Part sent to worker: ${JSON.stringify(e)}.}`)})),co(this,"onPartDigestError",((e,t)=>{if(this.consoleLog(`Error computing digest for part ${JSON.stringify(t)}: ${JSON.stringify(e)}`),"NotFoundError"===e.name||"NOT_FOUND_ERR"===e.name)return void this.sessionErrorHandler(null,"file_reader_received_not_found_error",JSON.stringify(e));if(this.failSessionIfFileChangeDetected())return;if(t.numDigestRetriesPerformed>=this.config.retries)return void this.sessionErrorHandler(null,"part_digest_retries_exceeded",JSON.stringify(e));const r=gi(this.config.initialRetryDelayMs,this.config.maxRetryDelayMs,t.numDigestRetriesPerformed);t.numDigestRetriesPerformed+=1,this.consoleLog(`Retrying digest work for part ${JSON.stringify(t)} in ${r} ms`),setTimeout((()=>{this.computeDigestForPart(t)}),r)})),co(this,"commitSession",(()=>{if(this.isDestroyed())return;const e={totalPartReadTime:0,totalPartDigestTime:0,totalFileDigestTime:0,totalPartUploadTime:0},t={parts:this.parts.map((t=>(e.totalPartReadTime+=t.timing.readTime,e.totalPartDigestTime+=t.timing.subtleCryptoTime,e.totalFileDigestTime+=t.timing.fileDigestTime,e.totalPartUploadTime+=t.timing.uploadTime,t.getPart()))).sort(((e,t)=>e.offset-t.offset)),attributes:{}},r=bi(this.file);r&&(t.attributes.content_modified_at=r),this.fileDescription&&(t.attributes.description=this.fileDescription);const n={avg_part_read_time:Math.round(e.totalPartReadTime/this.parts.length),avg_part_digest_time:Math.round(e.totalPartDigestTime/this.parts.length),avg_file_digest_time:Math.round(e.totalFileDigestTime/this.parts.length),avg_part_upload_time:Math.round(e.totalPartUploadTime/this.parts.length)},i={Digest:`sha=${this.fileSha1}`,"X-Box-Client-Event-Info":JSON.stringify(n)};this.xhr.post({url:this.sessionEndpoints.commit,data:t,headers:i}).then(this.commitSessionSuccessHandler).catch(this.commitSessionErrorHandler)})),co(this,"commitSessionSuccessHandler",(e=>{if(this.isDestroyed())return;const{status:t,data:r}=e;if(202===t)return void this.commitSessionRetry(e);let{entries:n}=r;!n&&r.id&&(n=[r]),this.destroy(),this.successCallback&&n&&this.successCallback(n)})),co(this,"commitSessionErrorHandler",(e=>{if(this.isDestroyed())return;const{response:t}=e;if(t)return this.commitRetryCount>=this.config.retries?(this.consoleLog("Too many commit failures, failing upload"),void this.sessionErrorHandler(e,"commit_retries_exceeded",JSON.stringify(e))):void this.commitSessionRetry(t);this.consoleError(e)})),co(this,"getNumPartsUploading",(()=>this.numPartsUploading)),this.parts=[],this.options=e,this.fileSha1=null,this.totalUploadedBytes=0,this.numPartsNotStarted=0,this.numPartsDigestComputing=0,this.numPartsDigestReady=0,this.numPartsUploading=0,this.numPartsUploaded=0,this.firstUnuploadedPartIndex=0,this.createSessionNumRetriesPerformed=0,this.partSize=0,this.commitRetryCount=0,this.clientId=null,this.isResumableUploadsEnabled=!1,this.numResumeRetries=0}reset(){this.parts=[],this.fileSha1=null,this.totalUploadedBytes=0,this.numPartsNotStarted=0,this.numPartsDigestComputing=0,this.numPartsDigestReady=0,this.numPartsUploading=0,this.numPartsUploaded=0,this.firstUnuploadedPartIndex=0,this.createSessionNumRetriesPerformed=0,this.partSize=0,this.commitRetryCount=0,this.numResumeRetries=0}setFileInfo({file:e,folderId:t,errorCallback:r,progressCallback:n,successCallback:i,overwrite:o=!0,conflictCallback:a,fileId:s}){this.file=e,this.fileName=this.file.name,this.folderId=t,this.errorCallback=r||it(),this.progressCallback=n||it(),this.successCallback=i||it(),this.overwrite=o,this.conflictCallback=a,this.fileId=s}upload({file:e,fileDescription:t,folderId:r,errorCallback:n,progressCallback:i,successCallback:o,overwrite:a=!0,conflictCallback:s,fileId:l}){this.file=e,this.fileName=this.file.name,this.initialFileSize=this.file.size,this.initialFileLastModified=bi(this.file),this.folderId=r,this.errorCallback=n||it(),this.progressCallback=i||it(),this.successCallback=o||it(),this.sha1Worker=Ci(),this.sha1Worker.addEventListener("message",this.onWorkerMessage),this.conflictCallback=s,this.overwrite=a,this.fileId=l,this.fileDescription=t,this.makePreflightRequest()}createSessionRetry(){const e=gi(this.config.initialRetryDelayMs,this.config.maxRetryDelayMs,this.createSessionNumRetriesPerformed);this.createSessionNumRetriesPerformed+=1,this.consoleLog(`Retrying create session in ${e} ms`),this.createSessionTimeout=setTimeout(this.makePreflightRequest,e)}createSessionSuccessHandler(e){if(this.isDestroyed())return;const{id:t,part_size:r,session_endpoints:n}=e;this.sessionId=t,this.partSize=r,this.sessionEndpoints=lo(lo({},this.sessionEndpoints),{},{uploadPart:n.upload_part,listParts:n.list_parts,commit:n.commit,abort:n.abort,logEvent:n.log_event}),this.populateParts(),this.processNextParts()}resume({file:e,folderId:t,errorCallback:r,progressCallback:n,sessionId:i,successCallback:o,overwrite:a=!0,conflictCallback:s,fileId:l}){this.setFileInfo({file:e,folderId:t,errorCallback:r,progressCallback:n,successCallback:o,conflictCallback:s,overwrite:a,fileId:l}),this.sessionId=i,this.sha1Worker||(this.sha1Worker=Ci()),this.sha1Worker.addEventListener("message",this.onWorkerMessage),this.getSessionInfo()}getSessionSuccessHandler(e){const{part_size:t,session_endpoints:r}=e;this.partSize=t,this.sessionEndpoints=lo(lo({},this.sessionEndpoints),{},{uploadPart:r.upload_part,listParts:r.list_parts,commit:r.commit,abort:r.abort,logEvent:r.log_event}),this.processNextParts()}getSessionErrorHandler(e){if(this.isDestroyed())return;const t=this.getErrorResponse(e);if(this.numResumeRetries>this.config.retries)this.errorCallback(t);else if(t&&429===t.status){let e=Te;if(t.headers){const r=parseInt(t.headers["retry-after"]||t.headers.get("Retry-After"),10);fi()(r)||(e=r*Ie)}this.retryTimeout=setTimeout(this.getSessionInfo,e),this.numResumeRetries+=1}else if(t&&t.status>=400&&t.status<500){this.parts.forEach((e=>{e.cancel()})),this.reset(),clearTimeout(this.createSessionTimeout),clearTimeout(this.commitSessionTimeout),this.abortSession();const e={file:this.file,folderId:this.folderId,errorCallback:this.errorCallback,progressCallback:this.progressCallback,successCallback:this.successCallback,overwrite:this.overwrite,fileId:this.fileId};this.upload(e)}else this.retryTimeout=setTimeout(this.getSessionInfo,2**this.numResumeRetries*Ie),this.numResumeRetries+=1}async sessionErrorHandler(e,t,r){this.isResumableUploadsEnabled||this.destroy();const n=this.getErrorResponse(e);this.errorCallback(n);try{if(!this.sessionEndpoints.logEvent)throw new Error("logEvent endpoint not found");await yi(((e,n)=>{this.logEvent(t,r).then(e).catch(n)}),this.config.retries,this.config.initialRetryDelayMs),this.isResumableUploadsEnabled||this.abortSession()}catch(e){this.isResumableUploadsEnabled||this.abortSession()}}abortSession(){this.sha1Worker&&this.sha1Worker.terminate(),this.sessionEndpoints.abort&&this.sessionId&&this.xhr.delete({url:this.sessionEndpoints.abort}).then((()=>{this.sessionId=""}))}shouldComputeDigestForNextPart(){return!this.isDestroyed()&&0===this.numPartsDigestComputing&&this.numPartsNotStarted>0&&this.numPartsDigestReady<this.config.digestReadahead}computeDigestForNextPart(){for(let e=this.firstUnuploadedPartIndex;e<this.parts.length;e+=1){const t=this.parts[e];if(0===t.state)return this.numPartsNotStarted-=1,this.numPartsDigestComputing+=1,void this.computeDigestForPart(t)}}async computeDigestForPart(e){const t=this.file.slice(e.offset,e.offset+this.partSize),r=new window.FileReader,n=Date.now();try{const{buffer:i,readCompleteTimestamp:o}=await this.readFile(r,t),a=await Ei("SHA-1",i),s=btoa([].reduce.call(new Uint8Array(a),((e,t)=>e+String.fromCharCode(t)),""));this.sendPartToWorker(e,i),e.sha1=s,e.state=1,e.blob=t,this.numPartsDigestReady+=1,this.numPartsDigestComputing-=1;const l=Date.now();e.timing={partDigestTime:l-n,readTime:o-n,subtleCryptoTime:l-o},this.processNextParts()}catch(t){this.onPartDigestError(t,e)}}commitSessionRetry(e){const{status:t,headers:r}=e;let n=Te;if(r){const e=parseInt(r["retry-after"],10);Number.isNaN(e)||(n=1e3*e)}const i=gi(this.config.initialRetryDelayMs,this.config.maxRetryDelayMs,this.commitRetryCount);202!==t&&(this.commitRetryCount+=1);const o=n||i;this.consoleLog(`Retrying commit in ${o} ms`),this.commitSessionTimeout=setTimeout(this.commitSession,o)}uploadNextPart(){for(let e=this.firstUnuploadedPartIndex;e<this.parts.length;e+=1){const t=this.parts[e];if(1===t.state){this.numPartsDigestReady-=1,this.numPartsUploading+=1,t.isPaused?t.unpause():t.upload();break}}}canStartMorePartUploads(){return!this.isDestroyed()&&this.numPartsUploading<this.config.parallelism&&this.numPartsDigestReady>0}updateFirstUnuploadedPartIndex(){let e=this.parts[this.firstUnuploadedPartIndex];for(;e&&3===e.state;)this.firstUnuploadedPartIndex+=1,e=this.parts[this.firstUnuploadedPartIndex]}populateParts(){this.numPartsNotStarted=Math.ceil(this.file.size/this.partSize);for(let e=0;e<this.numPartsNotStarted;e+=1){const t=e*this.partSize,r=Math.min(t+this.partSize,this.file.size)-t,n=new ao(this.options,e,t,r,this.file.size,this.sessionId,this.sessionEndpoints,this.config,this.getNumPartsUploading,this.partUploadSuccessHandler,this.updateProgress,this.partUploadErrorHandler);this.parts.push(n)}}failSessionIfFileChangeDetected(){const e=this.file.size,t=bi(this.file);if(e!==this.initialFileSize||t!==this.initialFileLastModified){const r=JSON.stringify({oldSize:this.initialFileSize,newSize:e,oldLastModified:this.initialFileLastModified,newLastModified:t});return c.isIE()?(this.sessionErrorHandler(null,"file_changed_during_upload",r),!0):(this.consoleLog(`file properties changed during upload: ${r}`),!1)}return!1}cancel(){this.isDestroyed()||(this.parts.forEach((e=>{e.cancel()})),this.parts=[],clearTimeout(this.createSessionTimeout),clearTimeout(this.commitSessionTimeout),this.abortSession(),this.destroy())}async resolveConflict(e){if(this.overwrite&&e.context_info)return void(this.fileId=e.context_info.conflicts.id);if(this.conflictCallback)return void(this.fileName=this.conflictCallback(this.fileName));const t=this.fileName.substr(this.fileName.lastIndexOf("."))||"";this.fileName=`${this.fileName.substr(0,this.fileName.lastIndexOf("."))}-${Date.now()}${t}`}getErrorResponse(e){if(!e)return{};const{response:t}=e;return t?401===t.status?t:t.data:{}}};function ho(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const fo="Content-MD5",po=class extends Zi{constructor(...e){super(...e),ho(this,"uploadSuccessHandler",(({data:e})=>{const{entries:t}=e;this.isDestroyed()||"function"==typeof this.successCallback&&this.successCallback(t)})),ho(this,"uploadProgressHandler",(e=>{this.isDestroyed()||"function"==typeof this.progressCallback&&this.progressCallback(e)})),ho(this,"preflightSuccessHandler",(async({data:e})=>{if(this.isDestroyed())return;let t=e.upload_url;t||(t=`${this.getBaseUploadUrl()}/files/content`,this.fileId&&(t=t.replace("content",`${this.fileId}/content`)));const r={url:t,data:{attributes:JSON.stringify({name:this.fileName,parent:{id:this.folderId},description:this.fileDescription,content_modified_at:bi(this.file)}),file:this.file},headers:{},successHandler:this.uploadSuccessHandler,errorHandler:this.preflightErrorHandler,progressHandler:this.uploadProgressHandler},n=await this.computeSHA1(this.file);n&&(r.headers={[fo]:n}),this.xhr.uploadFile(r)}))}upload({folderId:e,fileId:t,file:r,fileDescription:n,successCallback:i=it(),errorCallback:o=it(),progressCallback:a=it(),conflictCallback:s,overwrite:l=!0}){this.isDestroyed()||(this.folderId=e,this.fileId=t,this.file=r,this.fileDescription=n,this.fileName=this.file.name,this.successCallback=i,this.errorCallback=o,this.progressCallback=a,this.overwrite=l,this.conflictCallback=s,this.makePreflightRequest())}cancel(){this.isDestroyed()||(clearTimeout(this.retryTimeout),this.destroy())}async computeSHA1(e){let t="";try{const r=new window.FileReader,{buffer:n}=await this.readFile(r,e),i=await Ei("SHA-1",n);t=Array.from(new Uint8Array(i)).map((e=>`00${e.toString(16)}`.slice(-2))).join("")}catch(e){}return t}};function mo(e,t,r,n){const i=[];return e.forEach((e=>{const{id:o,type:a}=e;if(!o||!a)throw Vi();let s;switch(a){case u:s=t;break;case d:s=r;break;case h:s=n;break;default:throw new Error("Unknown Type!")}const l=s.getCache(),c=s.getCacheKey(o);l.has(c)?l.merge(c,e):l.set(c,e),i.push(c)})),i}var bo=__webpack_require__(75322),go=__webpack_require__.n(bo),yo=__webpack_require__(19170),vo=__webpack_require__.n(yo);function wo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Eo(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const So=[T,I,"type",M,"parent",D,R,"path_collection",F,N,B,"has_collaborations",U,"item_collection",G,X,q,"url"],Co=([T,I,M,D,W,"shared_link",R,"content_created_at","content_modified_at",N,H,F,B,"owned_by","description",J,"expires_at","version_limit",K,U,j,G,X,ee].concat(Y),[N,D,X,F,B,I,L,V,M,Z,$,ee,K]),ko=([W,F,B,j,M,z,ee,K].concat(Y),[G,N,D,X,F,B,I,R,z,L,V,"retention",M,Z,$,ee,K]),xo=["tagged_message","message",N,H,F,R],Po=["activity_template","app",H,"occurred_at","rendered_text"];function _o(e,t=[]){return e&&"object"==typeof e&&0!==Object.keys(e).length?t.filter((t=>!go()(e,t))):t}function Oo(e={},t){if(!Array.isArray(t)||0===t.length)return e;const r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?wo(Object(r),!0).forEach((function(t){Eo(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wo(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e);return _o(e,t).forEach((e=>{vo()(r,e,null)})),r}function Ao(){return Ao=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ao.apply(null,arguments)}function To(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Io=class extends Yi{constructor(...e){super(...e),To(this,"deleteSuccessHandler",(()=>{if(this.isDestroyed())return;const e=this.getParentCacheKey(this.parentId),t=this.getCache().get(e);if(!t)return void this.postDeleteCleanup();const{item_collection:r}=t;if(!r)return void this.postDeleteCleanup();const{entries:n,total_count:i}=r;if(!Array.isArray(n)||"number"!=typeof i)throw Vi();const o=this.getCacheKey(this.id),a=n.length,s=n.filter((e=>e!==o)),l=s.length,c=this.merge(e,"item_collection",Ao(r,{entries:s,total_count:i-(a-l)}));this.successCallback(c),this.postDeleteCleanup()})),To(this,"renameSuccessHandler",(({data:e})=>{if(!this.isDestroyed()){this.getCache().unsetAll(w);const t=this.merge(this.getCacheKey(this.id),"name",e.name);this.successCallback(t)}})),To(this,"shareSuccessHandler",((e,t)=>{if(!this.isDestroyed()){const r=t?Oo(e,t):e,n=this.getCache(),i=this.getCacheKey(this.id);n.has(i)?n.merge(i,r):n.set(i,r),this.successCallback(n.get(i))}}))}getParentCacheKey(e){return`${y}${e}`}getCacheKey(e){return`getCacheKey(${e}) should be overriden`}getUrl(e){return`getUrl(${e}) should be overriden`}merge(e,t,r){const n=this.getCache();return n.merge(e,vo()({},t,r)),n.get(e)}postDeleteCleanup(){this.isDestroyed()||(this.getCache().unsetAll(w),this.successCallback())}deleteItem(e,t,r=it()){if(this.isDestroyed())return Promise.reject();this.errorCode="delete_item_error";const{id:n,permissions:i,parent:o,type:a}=e;if(!(n&&i&&o&&a))return r(Vi(),this.errorCode),Promise.reject();const{id:s}=o,{can_delete:l}=i;if(!l||!s)return r($i(),this.errorCode),Promise.reject();this.id=n,this.parentId=s,this.successCallback=t,this.errorCallback=r;const c=`${this.getUrl(n)}${a===u?"?recursive=true":""}`;return this.xhr.delete({url:c}).then(this.deleteSuccessHandler).catch((e=>{this.errorHandler(e)}))}rename(e,t,r,n=it()){if(this.isDestroyed())return Promise.reject();this.errorCode="rename_item_error";const{id:i,permissions:o}=e;if(!i||!o)return n(Vi(),this.errorCode),Promise.reject();const{can_rename:a}=o;return a?(this.id=i,this.successCallback=r,this.errorCallback=n,this.xhr.put({url:`${this.getUrl(i)}`,data:{name:t}}).then(this.renameSuccessHandler).catch((e=>{this.errorHandler(e)}))):(n($i(),this.errorCode),Promise.reject())}validateSharedLinkRequest(e,t,r=!1){if(!e||!t)throw this.errorCode=_e,Vi();const{can_share:n,can_set_share_access:i}=t;if(!n||!r&&!i)throw this.errorCode=_e,$i()}async share(e,t,r,n=it(),i={}){if(this.isDestroyed())return Promise.reject();try{const{id:o,permissions:a,shared_link:s}=e;this.id=o,this.successCallback=r,this.errorCallback=n;const l=!s&&void 0===t;this.validateSharedLinkRequest(o,a,l);const{fields:c}=i,u={url:this.getUrl(this.id),data:{shared_link:"none"===t?null:{access:t}}};c&&(u.params={fields:c.toString()});const{data:d}=await this.xhr.put(u);return this.shareSuccessHandler(d,c)}catch(e){return this.errorHandler(e)}}async updateSharedLink(e,t,r,n=it(),i={}){if(this.isDestroyed())return Promise.reject();try{const{id:o,permissions:a}=e;this.id=o,this.successCallback=r,this.errorCallback=n,this.validateSharedLinkRequest(o,a);const{fields:s}=i,l={url:this.getUrl(this.id),data:{shared_link:t}};s&&(l.params={fields:s.toString()});const{data:c}=await this.xhr.put(l);return this.shareSuccessHandler(c,s)}catch(e){return this.errorHandler(e)}}};function Mo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Do(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Mo(Object(r),!0).forEach((function(t){Ro(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mo(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ro(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Fo=class extends Io{getCacheKey(e){return`${v}${e}`}getUrl(e){const t=e?`/${e}`:"";return`${this.getBaseApiUrl()}/files${t}`}async getDownloadUrl(e,t,r,n){this.errorCode="get_download_url_error",this.errorCallback=n,this.successCallback=r;const i=t[X],o=t[G],a=await Ri.getReadToken(zi(e),this.options.token);if(!i||!o||!a)return void this.errorHandler(new Error("Download is missing required fields or token."));const{query:s,url:l}=an.parseUrl(o),c=Do(Do({},s),{},{access_token:a}),u=an.stringify(c);this.successHandler(`${l}?${u}`)}isRepresentationsCallComplete(e){const t=mi()(e,"data.status.state");return!t||"error"===t||"success"===t||"viewable"===t}async generateRepresentation(e){const t=mi()(e,"info.url");return t?yi(((e,r)=>this.xhr.get({successCallback:e,errorCallback:r,url:t}).then((t=>this.isRepresentationsCallComplete(t)?e(t.data):r(t.data))).catch((e=>{r(e)}))),4,2e3,2):e}async getThumbnailUrl(e){const t=mi()(e,"representations.entries[0]"),r=mi()(t,"representation"),n=mi()(t,"content.url_template"),i=await Ri.getReadToken(zi(e.id),this.options.token);if(!r||!n||!i)return null;const o=n.replace("{+asset_path}","jpg"===r?"":"1.png"),{query:a,url:s}=an.parseUrl(o),l=Do(Do({},a),{},{access_token:i});return`${s}?${an.stringify(l)}`}setFileDescription(e,t,r,n){const{id:i,permissions:o}=e;return i&&o?o.can_rename?this.xhr.put({id:zi(i),url:this.getUrl(i),data:{description:t}}).then((({data:e})=>{if(!this.isDestroyed()){const t=this.merge(this.getCacheKey(i),"description",e.description);r(t)}})).catch((()=>{if(!this.isDestroyed()){const t=this.merge(this.getCacheKey(i),"description",e.description);n(t)}})):(n($i()),Promise.reject()):(n(Vi()),Promise.reject())}async getFile(e,t,r,n={}){if(this.isDestroyed())return;const i=this.getCache(),o=this.getCacheKey(e),a=!n.forceFetch&&i.has(o),s=a?i.get(o):{id:e};let l=_o(s,n.fields);const c={id:zi(e),url:this.getUrl(e),headers:{"X-Rep-Hints":Ae}};if(this.errorCode="fetch_file_error",this.successCallback=t,this.errorCallback=r,!a||0!==l.length||(t(s),l=n.fields||[],n.refreshCache)){l.length>0&&(c.params={fields:l.toString()});try{const{data:e}=await this.xhr.get(c);if(this.isDestroyed())return;const t=Oo(e,l);i.has(o)?i.merge(o,t):i.set(o,t),this.successHandler(i.get(o))}catch(e){this.errorHandler(e)}}}getFileExtension(e,t,r){this.isDestroyed()||this.getFile(e,t,r,{fields:[D]})}},Lo=class extends Io{getCacheKey(e){return`web_link_${e}`}getUrl(e){const t=e?`/${e}`:"";return`${this.getBaseApiUrl()}/web_links${t}`}async getWeblink(e,t,r,{fields:n}={}){if(this.isDestroyed())return;const i=this.getCache(),o=this.getCacheKey(e);if(this.errorCode="fetch_weblink_error",this.successCallback=t,this.errorCallback=r,i.has(o)&&0===_o(i.get(o),n).length)return void t(i.get(o));const a={url:this.getUrl(e)};n&&(a.params={fields:n.toString()});try{const{data:e}=await this.xhr.get(a);if(this.isDestroyed())return;i.has(o)?i.merge(o,e):i.set(o,e),this.successHandler(i.get(o))}catch(e){this.errorHandler(e)}}};function jo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function No(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?jo(Object(r),!0).forEach((function(t){Uo(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jo(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Uo(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class Ho extends Io{constructor(...e){super(...e),Uo(this,"folderSuccessHandler",(({data:e})=>{if(this.isDestroyed())return;const{item_collection:t}=e;if(!t)throw Vi();const{entries:r,total_count:n,limit:i,offset:o}=t;if(!Array.isArray(r)||"number"!=typeof n||"number"!=typeof i||"number"!=typeof o)throw Vi();const a=mo(r,new Ho(this.options),new Fo(this.options),new Lo(this.options));this.itemCache=(this.itemCache||[]).concat(a),this.getCache().set(this.key,No(No({},e),{},{item_collection:No(No({},t),{},{entries:this.itemCache})})),this.finish()})),Uo(this,"folderDetailsSuccessHandler",(({data:e})=>{if(this.isDestroyed())return;const t=No(No({},this.getCache().get(this.key)),e);this.getCache().set(this.key,t),this.successCallback(t)})),Uo(this,"createSuccessHandler",(({data:e})=>{const{id:t}=e;if(this.isDestroyed()||!t)return;const r=this.getCacheKey(t),n=this.getCache(),i=n.get(this.key);if(!i)return void this.successCallback(e);const{item_collection:o}=i;if(!o)throw Vi();const{total_count:a,entries:s}=o;if(!Array.isArray(s)||"number"!=typeof a)throw Vi();n.set(r,e),o.entries=[r].concat(s),o.total_count=a+1,this.successCallback(e)}))}getCacheKey(e){return`${y}${e}`}getUrl(e){const t=e?`/${e}`:"";return`${this.getBaseApiUrl()}/folders${t}`}isLoaded(){return this.getCache().has(this.key)}finish(){if(this.isDestroyed())return;const e=this.getCache(),t=e.get(this.key),{id:r,name:n,permissions:i,path_collection:o,item_collection:a}=t;if(!a||!o)throw Vi();const{entries:s,offset:l,total_count:c}=a;if(!Array.isArray(s)||"number"!=typeof c)throw Vi();const u={id:r,name:n,offset:l,percentLoaded:100,permissions:i,boxItem:t,breadcrumbs:o.entries,items:s.map((t=>e.get(t))),sortBy:this.sortBy,sortDirection:this.sortDirection,totalCount:c};this.successCallback(u)}folderRequest({fields:e,noPagination:t}={},r=this.folderSuccessHandler){if(this.isDestroyed())return Promise.reject();const n=e||So;this.errorCode="fetch_folder_error";let i={fields:n.toString()};return t||(i=No(No({},i),{},{direction:this.sortDirection.toLowerCase(),limit:this.limit,offset:this.offset,fields:n.toString(),sort:this.sortBy.toLowerCase()})),this.xhr.get({url:this.getUrl(this.id),params:i,headers:n.includes(q)?{"X-Rep-Hints":Me}:{}}).then(r).catch(this.errorHandler)}getFolderFields(e,t,r,n={}){this.isDestroyed()||(this.id=e,this.key=this.getCacheKey(e),this.successCallback=t,this.errorCallback=r,this.folderRequest(No(No({},n),{},{noPagination:!0}),this.folderDetailsSuccessHandler))}getFolder(e,t,r,n,i,o,a,s={}){this.isDestroyed()||(this.id=e,this.key=this.getCacheKey(e),this.limit=t,this.offset=r,this.sortBy=n,this.sortDirection=i,this.successCallback=o,this.errorCallback=a,s.forceFetch&&this.getCache().unset(this.key),this.isLoaded()?this.finish():this.folderRequest(s))}folderCreateRequest(e){if(this.isDestroyed())return Promise.reject();this.errorCode="create_folder_error";const t=`${this.getUrl()}?fields=${So.toString()}`;return this.xhr.post({url:t,data:{name:e,parent:{id:this.id}}}).then(this.createSuccessHandler).catch(this.errorHandler)}create(e,t,r,n=it()){this.isDestroyed()||(this.id=e,this.key=this.getCacheKey(e),this.successCallback=r,this.errorCallback=n,this.folderCreateRequest(t))}}const Bo=Ho;function zo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Vo(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?zo(Object(r),!0).forEach((function(t){$o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zo(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function $o(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const qo=class extends Yi{constructor(...e){super(...e),$o(this,"searchSuccessHandler",(({data:e})=>{if(this.isDestroyed())return;const{entries:t,total_count:r,limit:n,offset:i}=e;if(!Array.isArray(t)||"number"!=typeof r||"number"!=typeof n||"number"!=typeof i)throw Vi();const o=mo(t,new Bo(this.options),new Fo(this.options),new Lo(this.options));this.itemCache=(this.itemCache||[]).concat(o),this.getCache().set(this.key,{item_collection:Vo(Vo({},e),{},{entries:this.itemCache})}),this.finish()})),$o(this,"searchErrorHandler",(e=>{this.isDestroyed()||this.errorCallback(e,this.errorCode)}))}getEncodedQuery(e){return encodeURIComponent(e)}getCacheKey(e,t){return`${w}${e}|${t}`}getUrl(){return`${this.getBaseApiUrl()}/search`}isLoaded(){return this.getCache().has(this.key)}finish(){if(this.isDestroyed())return;const e=this.getCache(),t=e.get(this.key),{item_collection:r}=t;if(!r)throw Vi();const{entries:n,total_count:i}=r;if(!Array.isArray(n)||"number"!=typeof i)throw Vi();const o={id:this.id,items:n.map((t=>e.get(t))),offset:this.offset,percentLoaded:100,sortBy:"",sortDirection:E,totalCount:i};this.successCallback(o)}searchRequest(e={}){if(this.isDestroyed())return Promise.reject();const{fields:t}=e,r=t||So;return this.errorCode="search_error",this.xhr.get({url:this.getUrl(),params:{offset:this.offset,query:this.query,ancestor_folder_ids:this.id,limit:this.limit,fields:r.toString()},headers:r.includes(q)?{"X-Rep-Hints":Me}:{}}).then(this.searchSuccessHandler).catch(this.searchErrorHandler)}search(e,t,r,n,i,o,a={}){this.isDestroyed()||(this.limit=r,this.offset=n,this.query=t,this.id=e,this.key=this.getCacheKey(e,this.getEncodedQuery(this.query)),this.successCallback=i,this.errorCallback=o,a.forceFetch&&this.getCache().unset(this.key),this.isLoaded()?this.finish():this.searchRequest(a))}};function Go(){return Go=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Go.apply(null,arguments)}function Wo(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Xo=class extends Yi{constructor(...e){super(...e),Wo(this,"recentsSuccessHandler",(({data:e})=>{if(this.isDestroyed())return;const{entries:t,order:{by:r,direction:n}}=e,i=[];t.forEach((({item:e,interacted_at:t})=>{const{path_collection:r}=e;("0"===this.id||r&&-1!==r.entries.findIndex((e=>e.id===this.id)))&&i.push(Go(e,{interacted_at:t}))}));const o=mo(i,new Bo(this.options),new Fo(this.options),new Lo(this.options));this.getCache().set(this.key,{item_collection:{entries:o,order:[{by:r,direction:n}]}}),this.finish()})),Wo(this,"recentsErrorHandler",(e=>{this.isDestroyed()||this.errorCallback(e,this.errorCode)}))}getCacheKey(e){return`recents_${e}`}getUrl(){return`${this.getBaseApiUrl()}/recent_items`}finish(){if(this.isDestroyed())return;const e=this.getCache(),t=e.get(this.key),{item_collection:r}=t;if(!r)throw Vi();const{entries:n}=r;if(!Array.isArray(n))throw Vi();const i={id:this.id,items:n.map((t=>e.get(t))),percentLoaded:100,sortBy:"date",sortDirection:E};this.successCallback(i)}recentsRequest(e={}){if(this.isDestroyed())return Promise.reject();const{fields:t}=e,r=t||So;return this.errorCode="fetch_recents_error",this.xhr.get({url:this.getUrl(),params:{fields:r.toString()},headers:r.includes(q)?{"X-Rep-Hints":Me}:{}}).then(this.recentsSuccessHandler).catch(this.recentsErrorHandler)}recents(e,t,r,n={}){if(this.isDestroyed())return;this.id=e,this.successCallback=t,this.errorCallback=r;const i=this.getCache();this.key=this.getCacheKey(this.id),n.forceFetch&&i.unset(this.key),i.has(this.key)?this.finish():this.recentsRequest(n)}};function Ko(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Qo(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ko(Object(r),!0).forEach((function(t){Yo(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ko(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Yo(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Jo=class extends Yi{getQueryParameters(e,t,r){const n={offset:e,limit:t};return r&&r.length>0&&(n.fields=r.toString()),n}hasMoreItems(e,t){return void 0===t||e<t}async offsetGetRequest(e,t,r,n,i){if(!this.isDestroyed())try{const o=this.getQueryParameters(t,r,i),a=this.getUrl(e),{data:s}=await this.xhr.get({url:a,id:zi(e),params:o}),l=this.data?this.data.entries:[];this.data=Qo(Qo({},s),{},{entries:l.concat(s.entries)});const c=s.total_count,u=t+r;if(n&&this.hasMoreItems(u,c))return void this.offsetGetRequest(e,u,r,n,i);this.successHandler(this.data)}catch(e){this.errorHandler(e)}}async offsetGet(e,t,r,n=0,i=1e3,o,a=!0){return this.successCallback=t,this.errorCallback=r,this.offsetGetRequest(e,n,i,a,o)}},Zo=["permissions"];function ea(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ta(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ea(Object(r),!0).forEach((function(t){ra(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ea(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ra(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const na=class extends Jo{constructor(...e){super(...e),ra(this,"successHandler",(e=>{this.isDestroyed()||"function"!=typeof this.successCallback||this.successCallback(e)}))}getUrl(e){if(!e)throw new Error("Missing file id!");return`${this.getBaseApiUrl()}/files/${e}/versions`}getVersionUrl(e,t){if(!t)throw new Error("Missing version id!");return`${this.getUrl(e)}/${t}`}addPermissions(e,t){if(!e)return e;const{entries:r,total_count:n}=e,i=mi()(t,["permissions",ae],!1);return{entries:r.map((e=>{let{permissions:t}=e;return ta(ta({},function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,Zo)),{},{permissions:ta({can_upload:i},t)})})),total_count:n}}deleteVersion({errorCallback:e,fileId:t,permissions:r,successCallback:n,versionId:i}){this.errorCode="delete_version_error";try{this.checkApiCallValidity(ne,r,t)}catch(t){return void e(t,this.errorCode)}this.delete({id:t,url:this.getVersionUrl(t,i),successCallback:n,errorCallback:e})}getVersions(e,t,r,n=0,i=1e3,o=ko,a=!0){this.errorCode="fetch_versions_error",this.offsetGet(e,t,r,n,i,o,a)}getVersion(e,t,r,n){this.errorCode="fetch_version_error",this.get({id:e,successCallback:r,errorCallback:n,url:this.getVersionUrl(e,t),requestData:{params:{fields:ko.toString()}}})}addCurrentVersion(e,t,r){if(!e)return t||{entries:[],total_count:0};if(!t)return{entries:[e],total_count:1};const n=mi()(r,"restored_from.id"),i=t.entries.find((e=>e.id===n));return i&&(e.version_promoted=i.version_number),{entries:[...t.entries,e],total_count:t.total_count+1}}promoteVersion({errorCallback:e,fileId:t,permissions:r,successCallback:n,versionId:i}){this.errorCode="promote_version_error";try{this.checkApiCallValidity(ae,r,t)}catch(t){return void e(t,this.errorCode)}this.post({id:t,data:{data:{id:i,type:"file_version"}},url:this.getVersionUrl(t,"current"),successCallback:n,errorCallback:e})}restoreVersion({errorCallback:e,fileId:t,permissions:r,successCallback:n,versionId:i}){this.errorCode="restore_version_error";try{this.checkApiCallValidity(ne,r,t)}catch(t){return void e(t,this.errorCode)}this.put({id:t,data:{data:{trashed_at:null}},url:this.getVersionUrl(t,i),successCallback:n,errorCallback:e})}};function ia(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function oa(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ia(Object(r),!0).forEach((function(t){aa(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ia(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function aa(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const sa=class extends Jo{constructor(...e){super(...e),aa(this,"successHandler",(e=>{if(this.isDestroyed()||"function"!=typeof this.successCallback)return;if(!e)return void this.successCallback();if(!e.entries)return void this.successCallback(this.format(e));const t=e.entries.map(this.format);this.successCallback(oa(oa({},e),{},{entries:t}))}))}getUrl(e){if(!e)throw new Error("Missing file id!");return`${this.getBaseApiUrl()}/files/${e}/comments`}commentsUrl(e){const t=`${this.getBaseApiUrl()}/comments`;return e?`${t}/${e}`:t}format(e){return oa(oa({},e),{},{tagged_message:""!==e.tagged_message?e.tagged_message:e.message})}createComment({file:e,message:t,taggedMessage:r,successCallback:n,errorCallback:i}){this.errorCode=ge;const{id:o="",permissions:a}=e;try{this.checkApiCallValidity(te,a,o)}catch(e){return void i(e,this.errorCode)}const s={data:{item:{id:o,type:"file"},message:t,tagged_message:r},params:{fields:xo.toString()}};this.post({id:o,url:this.commentsUrl(),data:s,successCallback:n,errorCallback:i})}updateComment({file:e,commentId:t,message:r,tagged_message:n,permissions:i,successCallback:o,errorCallback:a}){this.errorCode=xe;const{id:s=""}=e;try{this.checkApiCallValidity(ie,i,s)}catch(e){return void a(e,this.errorCode)}const l={data:{message:r,tagged_message:n}};this.put({id:s,url:this.commentsUrl(t),data:l,successCallback:o,errorCallback:a})}deleteComment({file:e,commentId:t,permissions:r,successCallback:n,errorCallback:i}){this.errorCode=Se;const{id:o=""}=e;try{this.checkApiCallValidity(ne,r,o)}catch(e){return void i(e,this.errorCode)}this.delete({id:o,url:this.commentsUrl(t),successCallback:n,errorCallback:i})}getComments(e,t,r,n,i=xo,o,a,s){this.errorCode=he;try{this.checkApiCallValidity(te,t,e)}catch(e){return void n(e,this.errorCode)}this.offsetGet(e,r,n,o,a,i,s)}},la=["retryableStatusCodes"];function ca(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ua(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ca(Object(r),!0).forEach((function(t){da(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ca(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function da(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ha=[Ne,500,501,502,503,504],fa=class extends Yi{constructor(e){let{retryableStatusCodes:t=ha}=e;super(ua(ua({},function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,la)),{},{retryableStatusCodes:t}))}},pa=["id","addedAssignees","removedAssignees"];function ma(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ba(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ma(Object(r),!0).forEach((function(t){ga(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ma(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ga(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ya=class extends fa{getUrlForFileTasks(e){return`${this.getBaseApiUrl()}/undoc/files/${e}/linked_tasks?limit=1000`}getUrlForTaskCreateWithDeps(){return`${this.getBaseApiUrl()}/undoc/tasks/with_dependencies`}getUrlForTask(e){return`${this.getBaseApiUrl()}/undoc/tasks/${e}`}getUrlForTaskWithDeps(e){return`${this.getBaseApiUrl()}/undoc/tasks/${e}/with_dependencies`}updateTaskWithDeps({errorCallback:e,file:t,successCallback:r,task:n}){this.errorCode=ke;const i=n.addedAssignees.map((e=>({op:e.item&&"group"===e.item.type?"add_task_collaborators_expand_group":"add_task_collaborator",payload:{target:{type:e.item&&"group"===e.item.type?"group":"user",id:e.id}}}))),o=n.removedAssignees.map((e=>({op:"delete_task_collaborator",id:e.id}))),{id:a,addedAssignees:s,removedAssignees:l}=n,c=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(n,pa);this.put({id:t.id,url:this.getUrlForTaskWithDeps(n.id),data:{data:[{op:"update_task",payload:ba({},c)},...i,...o]},successCallback:r,errorCallback:e})}deleteTask({errorCallback:e,file:t,successCallback:r,task:n}){this.errorCode="delete_task_error",this.delete({id:t.id,url:this.getUrlForTask(n.id),successCallback:r,errorCallback:e})}getTasksForFile({errorCallback:e,file:t,successCallback:r}){this.errorCode=pe,this.get({id:t.id,url:this.getUrlForFileTasks(t.id),successCallback:r,errorCallback:e})}getTask({errorCallback:e,file:t,id:r,successCallback:n}){this.errorCode=pe,this.get({id:t.id,url:this.getUrlForTask(r),successCallback:n,errorCallback:e})}createTaskWithDeps({errorCallback:e,file:t,successCallback:r,task:n,assignees:i}){this.errorCode=ve;const o=i.map((e=>({target:{type:e.item&&"group"===e.item.type?"group":"user",id:e.id}}))),a=[{target:{id:t.id,type:"file"}}],s={task:ba({},n),assigned_to:o,task_links:a};this.post({id:t.id,url:this.getUrlForTaskCreateWithDeps(),data:{data:ba({},s)},successCallback:r,errorCallback:e})}};function va(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function wa(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?va(Object(r),!0).forEach((function(t){Ea(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):va(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ea(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Sa=class extends fa{getUrlForTaskCollaborators(e){return`${this.getBaseApiUrl()}/undoc/tasks/${e}/task_collaborators?role=ASSIGNEE&limit=1000`}getUrlForTaskCollaboratorCreate(){return`${this.getBaseApiUrl()}/undoc/task_collaborators`}getUrlForTaskCollaborator(e){return`${this.getBaseApiUrl()}/undoc/task_collaborators/${e}`}getUrlForTaskGroupCreate(){return`${this.getBaseApiUrl()}/undoc/task_collaborators/expand_group`}createTaskCollaborator({errorCallback:e,file:t,successCallback:r,task:n,user:i}){this.errorCode=we;const o={data:{task:{type:"task",id:n.id},target:{type:"user",id:i.id}}};this.post({id:t.id,url:this.getUrlForTaskCollaboratorCreate(),data:wa({},o),successCallback:r,errorCallback:e})}createTaskCollaboratorsforGroup({errorCallback:e,file:t,successCallback:r,task:n,group:i}){this.errorCode=we;const o={data:{task:{type:"task",id:n.id},target:{type:"group",id:i.id}}};this.post({id:t.id,url:this.getUrlForTaskGroupCreate(),data:wa({},o),successCallback:r,errorCallback:e})}getTaskCollaborators({errorCallback:e,file:t,successCallback:r,task:n}){this.errorCode="fetch_task_collaborator_error";const i=this.getUrlForTaskCollaborators(n.id);this.get({id:t.id,successCallback:r,errorCallback:e,url:i})}updateTaskCollaborator({errorCallback:e,file:t,successCallback:r,taskCollaborator:n}){this.errorCode="update_task_collaborator_error";const i={data:Xn()(n,"id")};this.put({id:t.id,url:this.getUrlForTaskCollaborator(n.id),data:wa({},i),successCallback:r,errorCallback:e})}deleteTaskCollaborator({errorCallback:e,file:t,successCallback:r,taskCollaborator:n}){this.errorCode="delete_task_collaborator_error",this.delete({id:t.id,url:this.getUrlForTaskCollaborator(n.id),successCallback:r,errorCallback:e})}};function Ca(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ka(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ca(Object(r),!0).forEach((function(t){xa(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ca(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function xa(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Pa=class extends fa{getUrlForTaskLinkCreate(){return`${this.getBaseApiUrl()}/undoc/task_links`}createTaskLink({errorCallback:e,file:t,successCallback:r,task:n}){this.errorCode="create_task_link_error";const i={data:{target:{id:t.id,type:"file"},task:{id:n.id,type:"task"}}};this.post({id:t.id,url:this.getUrlForTaskLinkCreate(),data:ka({},i),successCallback:r,errorCallback:e})}};function _a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Oa(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_a(Object(r),!0).forEach((function(t){Aa(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Aa(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Ta=class extends Yi{hasMoreItems(e){return null!==e&&""!==e}async markerGetRequest(e,t,r,n,i={}){if(!this.isDestroyed())try{const o=this.getUrl(e),a=Oa(Oa({},i),{},{marker:t,limit:r}),{data:s}=await this.xhr.get({url:o,id:zi(e),params:a}),l=this.data?this.data.entries:[];this.data=Oa(Oa({},s),{},{entries:l.concat(s.entries)});const c=s.next_marker;if(n&&this.hasMoreItems(c))return void this.markerGetRequest(e,c,r,n,i);this.successHandler(this.data)}catch(e){this.errorHandler(e)}}async markerGet({id:e,successCallback:t,errorCallback:r,marker:n="",limit:i=1e3,requestData:o,shouldFetchAll:a=!0}){return this.successCallback=t,this.errorCallback=r,this.markerGetRequest(e,n,i,a,o)}};function Ia(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ma(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ia(Object(r),!0).forEach((function(t){Da(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ia(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Da(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Ra=e=>{const t=Ma(Ma({},e),{},{tagged_message:e.message});return e.replies&&e.replies.length&&(t.replies=e.replies.map(Ra)),t},Fa=e=>{throw e.abort(),function(){class e extends Error{constructor(e){super(e),this.name="AbortError"}}return new e("Aborted")}()};function La(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ja(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?La(Object(r),!0).forEach((function(t){Na(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):La(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Na(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Ua=class extends Ta{constructor(...e){super(...e),Na(this,"successHandler",(e=>{if(this.isDestroyed()||"function"!=typeof this.successCallback)return;if(!e)return void this.successCallback();if(!e.entries)return void this.successCallback(Ra(e));const t=e.entries.map(Ra);this.successCallback(ja(ja({},e),{},{entries:t}))}))}getUrl(e){return`${this.getBaseApiUrl()}/undoc/comments${e?`?file_id=${e}`:""}`}getUrlForId(e){return`${this.getUrl()}/${e}`}getUrlWithRepliesForId(e,t){return`${this.getUrlForId(e)}/replies${t?`?file_id=${t}`:""}`}createComment({file:e,message:t,successCallback:r,errorCallback:n}){this.errorCode=ge;const{id:i,permissions:o}=e;try{this.checkApiCallValidity(te,o,i)}catch(e){return void n(e,this.errorCode)}this.post({id:i,url:this.getUrl(i),data:{data:{message:t}},successCallback:r,errorCallback:n})}updateComment({fileId:e,commentId:t,status:r,message:n,permissions:i,successCallback:o,errorCallback:a}){if(this.errorCode=xe,n)try{this.checkApiCallValidity(ie,i,e)}catch(e){return void a(e,this.errorCode)}if(r)try{this.checkApiCallValidity(oe,i,e)}catch(e){return void a(e,this.errorCode)}const s={data:{status:r,message:n}};this.put({id:e,url:this.getUrlForId(t),data:s,successCallback:o,errorCallback:a})}deleteComment({fileId:e,commentId:t,permissions:r,successCallback:n,errorCallback:i}){this.errorCode=Se;try{this.checkApiCallValidity(ne,r,e)}catch(e){return void i(e,this.errorCode)}this.delete({id:e,url:this.getUrlForId(t),successCallback:n,errorCallback:i})}getComment({commentId:e,errorCallback:t,fileId:r,permissions:n,successCallback:i}){this.errorCode="fetch_comment_error";try{this.checkApiCallValidity(te,n,r)}catch(e){return void t(e,this.errorCode)}this.get({id:r,errorCallback:t,successCallback:i,url:this.getUrlForId(e)})}getComments({fileId:e,permissions:t,successCallback:r,errorCallback:n,marker:i,limit:o,shouldFetchAll:a,repliesCount:s}){this.errorCode=he;try{this.checkApiCallValidity(te,t,e)}catch(e){return void n(e,this.errorCode)}this.markerGet({id:e,successCallback:r,errorCallback:n,marker:i,limit:o,requestData:ja({},s?{replies_count:s}:null),shouldFetchAll:a})}getCommentReplies({fileId:e,commentId:t,permissions:r,successCallback:n,errorCallback:i}){this.errorCode=fe;try{this.checkApiCallValidity(te,r,e)}catch(e){return void i(e,this.errorCode)}this.get({id:e,errorCallback:i,successCallback:n,url:this.getUrlWithRepliesForId(t)})}createCommentReply({fileId:e,commentId:t,permissions:r,successCallback:n,errorCallback:i,message:o}){this.errorCode=ye;try{this.checkApiCallValidity(te,r,e)}catch(e){return void i(e,this.errorCode)}this.post({id:e,data:{data:{message:o}},errorCallback:i,successCallback:n,url:this.getUrlWithRepliesForId(t,e)})}},Ha=class extends Yi{getUrl(e){if(!e)throw new Error("Missing file id!");return`${this.getBaseApiUrl()}/file_access_stats/${e}`}getFileAccessStats(e,t,r){this.errorCode="fetch_access_stats_error",this.get({id:e,successCallback:t,errorCallback:r})}};function Ba(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function za(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ba(Object(r),!0).forEach((function(t){Va(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ba(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Va(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const $a=class extends Yi{getFilteredUrl(e,t,r){return`${this.getBaseApiUrl()}${((e,t=[],r=!1)=>{const n=`&enable_replies=${r?"true":"false"}&reply_limit=1`;return`/file_activities?file_id=${e}${t&&t.length?`&activity_types=${t.join()}`:""}${n}`})(e,t,r)}`}getActivities({activityTypes:e,errorCallback:t,fileID:r,permissions:n,repliesCount:i,shouldShowReplies:o,successCallback:a}){this.errorCode="fetch_activity_error";try{if(!r)throw new Error("Missing file id!");e.includes(We)&&this.checkApiCallValidity(te,n,r),e.includes(qe)&&this.checkApiCallValidity(se,n,r)}catch(e){return void t(e,this.errorCode)}this.get({id:r,successCallback:a,errorCallback:t,requestData:za({},i?{replies_count:i}:null),url:this.getFilteredUrl(r,e,o)})}};function qa(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ga(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?qa(Object(r),!0).forEach((function(t){Wa(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qa(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Wa(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Xa=class extends Ta{getUrl(){return`${this.getBaseApiUrl()}/groups`}getGroupsInEnterprise(e,t,r,n,i=50){this.errorCode="fetch_enterprise_groups_error",this.markerGet({id:e,limit:i,successCallback:t,errorCallback:r,requestData:Ga({usemarker:!0},n),shouldFetchAll:!1})}};function Ka(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Qa(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ka(Object(r),!0).forEach((function(t){Ya(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ka(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ya(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Ja=class extends Ta{getUrl(){return`${this.getBaseApiUrl()}/users`}getUsersInEnterprise(e,t,r,n,i=50){this.errorCode="fetch_enterprise_users_error",this.markerGet({id:e,limit:i,successCallback:t,errorCallback:r,requestData:Qa({usemarker:!0},n),shouldFetchAll:!1})}},Za=class extends Yi{getUrlForGroupCount(e){return`${this.getBaseApiUrl()}/groups/${e}/memberships`}getGroupCount({errorCallback:e=it(),successCallback:t=it(),group:r,file:n}){return new Promise(((i,o)=>this.get({id:n.id,url:this.getUrlForGroupCount(r.id),successCallback:(...e)=>{t(...e),i(...e)},errorCallback:(...t)=>{e(...t),o()},requestData:{params:{limit:1}}})))}},es=class extends Yi{getUrl(){return`${this.getBaseApiUrl()}/users/me`}getAvatarUrl(e){if(!e)throw new Error("Missing user id");return`${this.getBaseApiUrl()}/users/${e}/avatar`}async getAvatarUrlWithAccessToken(e,t){if(!e)return null;const r=this.getCache();if(r.has(e))return r.get(e);const n=await Ri.getReadToken(zi(t),this.options.token);if("string"==typeof n){const t={access_token:n,pic_type:"large"},i=an.stringify(t),o=`${this.getAvatarUrl(e)}?${i}`;return r.set(e,o),o}return null}getUser(e,t,r,n={}){this.errorCode="fetch_current_user_error",this.get({id:e,successCallback:t,errorCallback:r,requestData:n})}};var ts=__webpack_require__(87579),rs=__webpack_require__.n(ts);function ns(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function is(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ns(Object(r),!0).forEach((function(t){os(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ns(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function os(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const as=class extends Fo{getMetadataCacheKey(e){return`metadata_${e}`}getSkillsCacheKey(e){return`${this.getMetadataCacheKey(e)}_skills`}getClassificationCacheKey(e){return`${this.getMetadataCacheKey(e)}_classification`}getMetadataUrl(e,t,r){const n=`${this.getUrl(e)}/metadata`;return t&&r?`${n}/${t}/${r}`:n}getMetadataTemplateUrl(){return`${this.getBaseApiUrl()}/metadata_templates`}getMetadataTemplateUrlForInstance(e){return`${this.getMetadataTemplateUrl()}?metadata_instance_id=${e}`}getMetadataTemplateSchemaUrl(e){return`${this.getMetadataTemplateUrl()}/enterprise/${e}/schema`}getMetadataTemplateUrlForScope(e){return`${this.getMetadataTemplateUrl()}/${e}`}getCustomPropertiesTemplate(){return{id:rt()("metadata_template_"),scope:_,templateKey:P,hidden:!1,fields:[]}}createEditor(e,t,r){const n={};return Object.keys(e).forEach((t=>{t.startsWith("$")||(n[t]=e[t])})),{template:t,instance:{id:e.$id,canEdit:e.$canEdit&&r,data:n}}}async getTemplates(e,t,r){this.errorCode="fetch_metadata_templates_error";let n={};const i=r?this.getMetadataTemplateUrlForInstance(r):this.getMetadataTemplateUrlForScope(t);try{n=await this.xhr.get({url:i,id:zi(e),params:{limit:1e3}})}catch(e){const{status:t}=e;if(Wi(t))throw e}return mi()(n,"data.entries",[])}getSchemaByTemplateKey(e){const t=this.getMetadataTemplateSchemaUrl(e);return this.xhr.get({url:t})}async getInstances(e,t=!1){this.errorCode=me;const r=this.getMetadataUrl(e),n=t?`${r}?view=hydrated`:r;let i={};try{i=await this.xhr.get({url:n,id:zi(e)})}catch(e){const{status:t}=e;if(Wi(t))throw e}return mi()(i,"data.entries",[])}getUserAddableTemplates(e,t,r,n){let i=[];return r&&(i=n?[e]:[e].concat(t)),i.filter((e=>!e.hidden&&e.templateKey!==k))}extractClassification(e,t){const r=t.find((e=>e.$template===k));if(r){t.splice(t.indexOf(r),1);const n=this.getCache(),i=this.getClassificationCacheKey(e);n.set(i,r)}return t}async getTemplateForInstance(e,t,r){const n=t.$id,i=t.$template,o=t.$scope;let a=r.find((e=>e.templateKey===i&&e.scope===o));return!a&&o.startsWith(O)&&(a=(await this.getTemplates(e,o,n))[0]),a}async getEditors(e,t,r,n,i,o){const a=[r].concat(n,i),s=[];return await Promise.all(t.map((async t=>{const r=await this.getTemplateForInstance(e,t,a);r&&s.push(this.createEditor(t,r,o))}))),s}createTemplateInstance(e,t,r){const n=[];return t.templateKey!==P?(t.fields||[]).forEach((t=>{const r=((e,t)=>"taxonomy"===e.type&&Array.isArray(t)?t.map((e=>({value:e.id,displayValue:e.displayName}))):t)(t,e[t.key]);n.push(is(is({},t),{},{value:r}))})):Object.keys(e).forEach((t=>{t.startsWith("$")||n.push({key:t,type:"string",value:e[t]})})),{canEdit:e.$canEdit&&r,displayName:t.displayName,hidden:t.hidden,id:t.id,fields:n,scope:t.scope,templateKey:t.templateKey,type:e.$type}}async getTemplateInstances(e,t,r,n,i,o){const a=[r].concat(n,i),s=[];return await Promise.all(t.map((async t=>{const r=await this.getTemplateForInstance(e,t,a);r&&s.push(this.createTemplateInstance(t,r,o))}))),s}async getMetadata(e,t,r,n,i={},o=!1){const{id:a,permissions:s,is_externally_owned:l}=e;if(this.errorCode=me,this.successCallback=t,this.errorCallback=r,!a||!s)return void this.errorHandler(Vi());const c=this.getCache(),u=this.getMetadataCacheKey(a);if(i.forceFetch&&c.unset(u),!c.has(u)||(this.successHandler(c.get(u)),i.refreshCache))try{const e=this.getCustomPropertiesTemplate(),[t,r,i]=await Promise.all([this.getInstances(a,o),this.getTemplates(a,_),n?this.getTemplates(a,O):Promise.resolve([])]),d=this.extractClassification(a,t),h=o?await this.getTemplateInstances(a,d,e,i,r,!!s.can_upload):[],f={editors:o?[]:await this.getEditors(a,d,e,i,r,!!s.can_upload),templateInstances:h,templates:this.getUserAddableTemplates(e,i,n,l)};c.set(u,f),this.isDestroyed()||this.successHandler(f)}catch(e){this.errorHandler(e)}}async getSkills(e,t,r,n=!1){this.errorCode="fetch_skills_error";const{id:i}=e;if(!i)return void r(Vi(),this.errorCode);const o=this.getCache(),a=this.getSkillsCacheKey(i);if(this.successCallback=t,this.errorCallback=r,n&&o.unset(a),o.has(a))return void this.successHandler(o.get(a));let s={data:mi()(e,J)};try{if(s.data||(s=await this.xhr.get({url:this.getMetadataUrl(i,_,x),id:zi(i)})),!this.isDestroyed()){const e=s.data.cards||[];o.set(a,e),this.successHandler(e)}}catch(e){this.errorHandler(e)}}async updateSkills(e,t,r,n){this.errorCode="update_skills_error";const{id:i,permissions:o}=e;if(i&&o)if(o.can_upload){this.successCallback=r,this.errorCallback=n;try{const e=await this.xhr.put({url:this.getMetadataUrl(i,_,x),headers:{[S]:"application/json-patch+json"},id:zi(i),data:t});if(!this.isDestroyed()){const t=e.data.cards||[];this.merge(this.getCacheKey(i),J,e.data),this.getCache().set(this.getSkillsCacheKey(i),t),this.successHandler(t)}}catch(e){this.errorHandler(e)}}else n($i(),this.errorCode);else n(Vi(),this.errorCode)}async updateMetadata(e,t,r,n,i){this.errorCode=Pe,this.successCallback=n,this.errorCallback=i;const{id:o,permissions:a}=e;if(!o||!a)return void this.errorHandler(Vi());const s=!!a.can_upload;if(s)try{const e=await this.xhr.put({url:this.getMetadataUrl(o,t.scope,t.templateKey),headers:{[S]:"application/json-patch+json"},id:zi(o),data:r});if(!this.isDestroyed()){const r=this.getCache(),n=this.getMetadataCacheKey(o),i=r.get(n),a=this.createEditor(e.data,t,s);i&&i.editors&&i.editors.splice(i.editors.findIndex((({instance:e})=>e.id===a.instance.id)),1,a),this.successHandler(a)}}catch(e){this.errorHandler(e)}else this.errorHandler($i())}async updateMetadataRedesign(e,t,r,n,i){this.errorCode=Pe,this.successCallback=n,this.errorCallback=i;const{id:o,permissions:a}=e;if(o&&a)if(a.can_upload)try{if(await this.xhr.put({url:this.getMetadataUrl(o,t.scope,t.templateKey),headers:{[S]:"application/json-patch+json"},id:zi(o),data:r}),!this.isDestroyed()){const e=this.getCache(),r=this.getMetadataCacheKey(o),n=e.get(r);n&&n.templateInstances&&n.templateInstances.splice(n.templateInstances.findIndex((e=>e.scope===t.scope&&e.templateKey===t.templateKey)),1,t),this.successHandler()}}catch(e){this.errorHandler(e)}else this.errorHandler($i());else this.errorHandler(Vi())}async createMetadata(e,t,r,n){if(this.errorCode=Ee,!e||!t)return void n(Vi(),this.errorCode);const{id:i,permissions:o,is_externally_owned:a}=e;if(!i||!o)return void n(Vi(),this.errorCode);const s=!!o.can_upload,l=t.templateKey===P&&t.scope===_;if(!s||a&&!l)n($i(),this.errorCode);else{this.successCallback=r,this.errorCallback=n;try{const e=await this.xhr.post({url:this.getMetadataUrl(i,t.scope,t.templateKey),id:zi(i),data:{}});if(!this.isDestroyed()){const r=this.getCache(),n=this.getMetadataCacheKey(i),o=r.get(n),a=this.createEditor(e.data,t,s);o.editors.push(a),this.successHandler(a)}}catch(e){this.errorHandler(e)}}}async createMetadataRedesign(e,t,r,n){if(this.errorCode=Ee,!e||!t)return void n(Vi(),this.errorCode);const{id:i,permissions:o,is_externally_owned:a}=e;if(!i||!o)return void n(Vi(),this.errorCode);const s=!!o.can_upload,l=t.templateKey===P&&t.scope===_;if(!s||a&&!l)n($i(),this.errorCode);else{this.successCallback=r,this.errorCallback=n;try{const e=t.fields.reduce(((e,t)=>{let{value:r}=t;return"float"===t.type&&r&&(r=parseFloat(t.value)),"enum"===t.type&&r&&0===r.length&&(r=void 0),"taxonomy"===t.type&&r&&Array.isArray(r)&&(r=r.map((e=>e.value))),e[t.key]=r,e}),{}),r=await this.xhr.post({url:this.getMetadataUrl(i,t.scope,t.templateKey),id:zi(i),data:e});if(!this.isDestroyed()){const e=this.getCache(),n=this.getMetadataCacheKey(i),o=e.get(n),a=is(is({},t),{},{type:r.data.$type});o.templateInstances.push(a),this.successHandler(a)}}catch(e){this.errorHandler(e)}}}async deleteMetadata(e,t,r,n,i=!1){if(this.errorCode="delete_metadata_error",!e||!t)return void n(Vi(),this.errorCode);const{scope:o,templateKey:a}=t,{id:s,permissions:l}=e;if(s&&l)if(l.can_upload){this.successCallback=r,this.errorCallback=n;try{if(await this.xhr.delete({url:this.getMetadataUrl(s,o,a),id:zi(s)}),!this.isDestroyed()){const e=this.getCache(),t=this.getMetadataCacheKey(s),r=e.get(t);i?r.templateInstances.splice(r.templateInstances.findIndex((e=>e.scope===o&&e.templateKey===a)),1):r.editors.splice(r.editors.findIndex((e=>e.template.scope===o&&e.template.templateKey===a)),1),this.successHandler()}}catch(e){this.errorHandler(e)}}else n($i(),this.errorCode);else n(Vi(),this.errorCode)}getMetadataSuggestionsUrl(){return`${this.getBaseApiUrl()}/metadata_instances/suggestions`}async getMetadataSuggestions(e,t,r,n,i=A){if(this.errorCode="fetch_metadata_suggestions_error",!e||t!==d)throw Vi();if(!r)throw new Error("Missing scope");if(!n)throw new Error("Missing templateKey");if(i!==A)throw new Error(`Invalid confidence level: "${i}"`);let o={};try{o=await this.xhr.get({url:this.getMetadataSuggestionsUrl(),id:zi(e),params:{item:`${t}_${e}`,scope:r,template_key:n,confidence:i}})}catch(e){const{status:t}=e;if(Wi(t))throw e}if(!rs()(o)&&0===mi()(o,"data.suggestions").length)throw this.errorCode="empty_metadata_suggestions_error",new Error("No suggestions found.");return mi()(o,"data.suggestions",[])}getMetadataOptionsUrl(e,t,r){return`${this.getBaseApiUrl()}/metadata_templates/${e}/${t}/fields/${r}/options`}async getMetadataOptions(e,t,r,n,i,o){if(this.errorCode="fetch_metadata_options_error",!e)throw Vi();if(!t)throw new Error("Missing scope");if(!r)throw new Error("Missing templateKey");if(!n)throw new Error("Missing fieldKey");if(!i&&0!==i)throw new Error("Missing level");const a=this.getMetadataOptionsUrl(t,r,n),{marker:s,searchInput:l,signal:c}=o,u=is(is(is({},s?{marker:s}:{}),l?{query_text:l}:{}),i||0===i?{level:i}:{});c&&(c.onabort=()=>Fa(this.xhr));const d=await this.xhr.get({url:a,id:zi(e),params:u});return mi()(d,"data",{})}};function ss(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ls(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ss(Object(r),!0).forEach((function(t){cs(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ss(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function cs(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const us=class extends Ta{constructor(...e){super(...e),cs(this,"successHandler",(e=>{if(this.isDestroyed()||"function"!=typeof this.successCallback)return;const t=e.entries.map((e=>{let t;return"group"===e.type?t=e:(t=e,t.email=t.login),{id:e.id,name:e.name,item:t}}));this.successCallback(ls(ls({},e),{},{entries:t}))})),cs(this,"getCollaboratorsWithQuery",((e,t,r,n,{includeGroups:i=!1}={})=>{n&&""!==n.trim()&&this.getFileCollaborators(e,t,r,{filter_term:n,include_groups:i,include_uploader_collabs:!1})}))}getUrl(e){if(!e)throw new Error("Missing file id!");return`${this.getBaseApiUrl()}/files/${e}/collaborators`}getFileCollaborators(e,t,r,n={},i=25){this.markerGet({id:e,limit:i,successCallback:t,errorCallback:r,requestData:n})}};function ds(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const hs=class extends Ta{constructor(...e){super(...e),ds(this,"getCollaborations",((e,t,r,n={},i=25)=>{this.markerGet({id:e,limit:i,successCallback:t,errorCallback:r,requestData:n})})),ds(this,"successHandler",(e=>{this.isDestroyed()||"function"!=typeof this.successCallback||this.successCallback(e)}))}getUrl(e){return`getUrl(${e}) should be overridden`}},fs=class extends hs{getUrl(e){if(!e)throw new Error("Missing file ID!");return`${this.getBaseApiUrl()}/files/${e}/collaborations`}},ps=class extends hs{getUrl(e){if(!e)throw new Error("Missing folder ID!");return`${this.getBaseApiUrl()}/folders/${e}/collaborations`}};function ms(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function bs(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ms(Object(r),!0).forEach((function(t){gs(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ms(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function gs(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ys=class extends Yi{constructor(...e){super(...e),gs(this,"addCollaboration",((e,t,r,n)=>{const{id:i}=e;this.post({id:i,data:{data:bs({item:e},t)},errorCallback:n,successCallback:r,url:this.getUrl()})}))}getUrl(){return`${this.getBaseApiUrl()}/collaborations`}},vs={appActivityDeleteErrorMessage:{id:"be.api.appActivityDeleteErrorMessage",defaultMessage:"There was an error deleting this item."},commentCreateErrorMessage:{id:"be.api.commentCreateErrorMessage",defaultMessage:"There was an error creating this comment."},commentCreateConflictMessage:{id:"be.api.commentCreateConflictMessage",defaultMessage:"This comment already exists."},commentDeleteErrorMessage:{id:"be.api.commentDeleteErrorMessage",defaultMessage:"There was an error deleting this comment."},commentUpdateErrorMessage:{id:"be.api.commentUpdateErrorMessage",defaultMessage:"This comment could not be modified."},repliesFetchErrorMessage:{id:"be.api.repliesFetchErrorMessage",defaultMessage:"The replies to this comment could not be loaded."},taskActionErrorTitle:{id:"be.api.taskActionErrorTitle",defaultMessage:"Error"},taskApproveErrorMessage:{id:"be.api.taskApproveErrorMessage",defaultMessage:"An error has occurred while approving this task. Please refresh the page and try again."},taskCompleteErrorMessage:{id:"be.api.taskCompleteErrorMessage",defaultMessage:"An error has occurred while completing this task. Please refresh the page and try again."},taskRejectErrorMessage:{id:"be.api.taskRejectErrorMessage",defaultMessage:"An error has occurred while rejecting this task. Please refresh the page and try again."},taskDeleteErrorMessage:{id:"be.api.taskDeleteErrorMessage",defaultMessage:"There was an error while deleting this task. Please refresh the page and try again."},taskCreateErrorMessage:{id:"be.api.taskCreateErrorMessage",defaultMessage:"An error occurred while creating this task. Please try again."},taskGroupExceedsLimitWarningMessage:{id:"be.api.taskGroupExceedsWarningTitle",defaultMessage:"One or more groups can not receive this task as a group size cannot exceed the limit of {max} assignees per group."}};function ws(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Es(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ws(Object(r),!0).forEach((function(t){Ss(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ws(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ss(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class Cs extends Ta{constructor(...e){super(...e),Ss(this,"successHandler",(e=>{if(this.isDestroyed()||"function"!=typeof this.successCallback)return;if(!e)return void this.successCallback();if(!e.entries)return e.type&&"comment"===e.type?void this.successCallback(Ra(e)):void this.successCallback(this.formatReplies(e));if(e.entries.length&&"comment"===e.entries[0].type){const t=e.entries.map(Ra);return void this.successCallback(Es(Es({},e),{},{entries:t}))}const t=e.entries.map(this.formatReplies);this.successCallback(Es(Es({},e),{},{entries:t}))}))}formatReplies(e){return e.replies&&e.replies.length?Es(Es({},e),{},{replies:e.replies.map(Ra)}):e}getUrl(){return`${this.getBaseApiUrl()}/undoc/annotations`}getUrlForId(e){return`${this.getUrl()}/${e}`}getUrlWithRepliesForId(e){return`${this.getUrlForId(e)}/replies`}createAnnotation(e,t,r,n,i,o){this.errorCode="create_annotation_error";try{this.checkApiCallValidity(re,n,e)}catch(e){return void o(e,this.errorCode)}const a={description:{type:"reply"},file_version:{id:t,type:"file_version"}};this.post({id:e,data:{data:ui()(a,r)},errorCallback:o,successCallback:i,url:this.getUrl()})}updateAnnotation(e,t,r,n,i,o){this.errorCode="edit_annotation_error";const{message:a,status:s}=n;if(a)try{this.checkApiCallValidity(ie,r,e)}catch(e){return void o(e,this.errorCode)}if(s)try{this.checkApiCallValidity(oe,r,e)}catch(e){return void o(e,this.errorCode)}this.put({id:e,data:{data:{description:a?{message:a}:void 0,status:s}},errorCallback:o,successCallback:i,url:this.getUrlForId(t)})}deleteAnnotation(e,t,r,n,i){this.errorCode="delete_annotation_error";try{this.checkApiCallValidity(ne,r,e)}catch(e){return void i(e,this.errorCode)}this.delete({id:e,errorCallback:i,successCallback:n,url:this.getUrlForId(t)})}getAnnotation(e,t,r,n,i,o){this.errorCode="fetch_annotation_error";try{this.checkApiCallValidity(se,r,e)}catch(e){return void i(e,this.errorCode)}const a=o?{params:{fields:"replies"}}:void 0;this.get({id:e,errorCallback:i,successCallback:n,url:this.getUrlForId(t),requestData:a})}getAnnotations(e,t,r,n,i,o,a,s){this.errorCode="fetch_annotations_error";try{this.checkApiCallValidity(se,r,e)}catch(e){return void i(e,this.errorCode)}const l=Es({file_id:e,file_version_id:t},s?{fields:"replies"}:null);this.markerGet({id:e,errorCallback:i,limit:o,requestData:l,shouldFetchAll:a,successCallback:n})}getAnnotationReplies(e,t,r,n,i){this.errorCode=fe;try{this.checkApiCallValidity(se,r,e)}catch(e){return void i(e,this.errorCode)}this.get({id:e,errorCallback:i,successCallback:n,url:this.getUrlWithRepliesForId(t)})}createAnnotationReply(e,t,r,n,i,o){this.errorCode=ye;try{this.checkApiCallValidity(re,r,e)}catch(e){return void o(e,this.errorCode)}this.post({id:e,data:{data:{message:n}},errorCallback:o,successCallback:i,url:`${this.getUrlWithRepliesForId(t)}?file_id=${e}`})}}function ks(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const xs=class extends Ta{constructor(...e){super(...e),ks(this,"permissions",{}),ks(this,"mapAppActivityItem",(e=>{const{activity_template:t,app:r,created_by:n,id:i,occurred_at:o,rendered_text:a,type:s}=e,{can_delete:l}=this.permissions;return{activity_template:t,app:r,created_at:o,created_by:n,id:i,permissions:{can_delete:l},rendered_text:a,type:s}})),ks(this,"successHandler",(({entries:e=[]})=>{if(this.isDestroyed()||"function"!=typeof this.successCallback)return;const t=e.map(this.mapAppActivityItem);this.successCallback({entries:t,total_count:t.length})})),ks(this,"errorHandler",(e=>{if(this.isDestroyed()&&"function"!=typeof this.errorCallback)return;const{response:t}=e;404===t.status?this.successHandler({entries:[],total_count:0}):this.errorCallback(e,t.status)}))}getUrl(){return`${this.getBaseApiUrl()}/app_activities`}getDeleteUrl(e){if(!e)throw new Error("Missing file id!");return`${this.getUrl()}/${e}`}getAppActivity(e,t,r,n){const i={item_id:e,item_type:"file",fields:Po.toString()};this.permissions=t,this.markerGet({id:e,successCallback:r,errorCallback:n,requestData:i})}deleteAppActivity({id:e,appActivityId:t,successCallback:r,errorCallback:n}){this.errorCode="delete_app_activity_error",this.delete({id:e,url:this.getDeleteUrl(t),successCallback:r,errorCallback:n})}},Ps=({restored_at:e,trashed_at:t,version_promoted:r})=>{let n=Ue;return t&&(n="delete"),e&&(n="restore"),r&&(n="promote"),n};function _s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Os(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_s(Object(r),!0).forEach((function(t){As(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function As(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Ts=m;function Is(e){return e?e.reduce(((e,t)=>{const r=e.pop();if(!r)return e.concat([t]);if(t.type===Ts&&r.type===Ts&&Ps(t)===Ue&&Ps(r)===Ue){const{modified_by:n,versions:i=[r],version_start:o=parseInt(r.version_number,10),version_end:a=parseInt(r.version_number,10)}=r,s=n||He,{modified_by:l,created_at:c,trashed_at:u,id:d,version_number:h}=t,f=parseInt(h,10),p=r.collaborators||{[s.id]:Os({},s)},m=l||He;return p[m.id]=Os({},m),e.concat([{collaborators:p,created_at:c,modified_by:m,trashed_at:u,id:d,type:Ts,version_number:h,versions:i.concat([t]),version_start:Math.min(o,f),version_end:Math.max(a,f)}])}return e.concat([r,t])}),[]):[]}const Ms=["replies"],Ds=["replies"],Rs=["replies","total_reply_count"],Fs=["replies","total_reply_count"];function Ls(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function js(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ls(Object(r),!0).forEach((function(t){Ns(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ls(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ns(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Us(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}const Hs=$e,Bs=e=>[...e].map((e=>js(js({},e),{},{tagged_message:e.tagged_message||e.message||""}))),zs=class extends Yi{constructor(e){super(e),Ns(this,"updateAnnotation",((e,t,r,n,i,o,a)=>{if(!e.id)throw Vi();if(!r&&!n)throw Gi();this.annotationsAPI=new Cs(this.options),this.file=e,this.errorCallback=a;const s={};r&&(s.message=r),n&&(s.status=n),this.updateFeedItem(js(js({},s),{},{isPending:!0}),t),this.annotationsAPI.updateAnnotation(this.file.id,t,i,s,(e=>{const{replies:r,total_reply_count:n}=e,i=Us(e,Rs);this.updateFeedItem(js(js({},i),{},{isPending:!1}),t),this.isDestroyed()||o(e)}),((e,r)=>{this.updateCommentErrorCallback(e,r,t)}))})),Ns(this,"updateCommentErrorCallback",((e,t,r)=>{this.updateFeedItem(this.createFeedError(vs.commentUpdateErrorMessage),r),this.feedErrorCallback(!0,e,t)})),Ns(this,"updateReplyErrorCallback",((e,t,r,n)=>{this.updateReplyItem(this.createFeedError(vs.commentUpdateErrorMessage),n,r),this.feedErrorCallback(!0,e,t)})),Ns(this,"fetchRepliesErrorCallback",((e,t,r)=>{this.updateFeedItem(this.createFeedError(vs.repliesFetchErrorMessage),r),this.feedErrorCallback(!0,e,t)})),Ns(this,"deleteAnnotation",((e,t,r,n,i)=>{if(this.annotationsAPI=new Cs(this.options),!e.id)throw Vi();this.file=e,this.errorCallback=i,this.updateFeedItem({isPending:!0},t),this.annotationsAPI.deleteAnnotation(this.file.id,t,r,this.deleteFeedItem.bind(this,t,n),((e,r)=>{this.deleteCommentErrorCallback(e,r,t)}))})),Ns(this,"fetchThreadedCommentSuccessCallback",((e,t,r)=>{t(r),e()})),Ns(this,"updateTaskCollaborator",((e,t,r,n,i,o)=>{if(!e.id)throw Vi();this.file=e,this.errorCallback=o,this.updateFeedItem({isPending:!0},t);const a=new Sa(this.options);this.taskCollaboratorsAPI.push(a);const s={id:r,status:n},l=(e,r)=>{let i;switch(n){case"APPROVED":i=vs.taskApproveErrorMessage;break;case"COMPLETED":default:i=vs.taskCompleteErrorMessage;break;case"REJECTED":i=vs.taskRejectErrorMessage}this.updateFeedItem(this.createFeedError(i,vs.taskActionErrorTitle),t),this.feedErrorCallback(!0,e,r)};a.updateTaskCollaborator({file:e,taskCollaborator:s,successCallback:r=>{this.updateTaskCollaboratorSuccessCallback(t,e,r,i,l)},errorCallback:l})})),Ns(this,"updateTaskCollaboratorSuccessCallback",((e,t,r,n,i)=>{this.tasksNewAPI=new ya(this.options),this.tasksNewAPI.getTask({id:e,file:t,successCallback:t=>{this.updateFeedItem(js(js({},t),{},{isPending:!1}),e),n(r)},errorCallback:i})})),Ns(this,"updateTaskNew",(async(e,t,r=it(),n=it())=>{if(!e.id)throw Vi();this.file=e,this.errorCallback=n,this.tasksNewAPI=new ya(this.options),this.updateFeedItem({isPending:!0},t.id);try{const n=t.addedAssignees.filter((e=>e.item&&"group"===e.item.type)).map((e=>e.id)).map((t=>new Za(this.options).getGroupCount({file:e,group:{id:t}}))),i=(await Promise.all(n)).some((e=>e.total_count>250)),o={code:Ce,type:"warning"};if(i)return void this.feedErrorCallback(!1,o,Ce);await new Promise(((r,n)=>{this.tasksNewAPI.updateTaskWithDeps({file:e,task:t,successCallback:r,errorCallback:n})})),await new Promise(((r,n)=>{this.tasksNewAPI.getTask({file:e,id:t.id,successCallback:e=>{this.updateFeedItem(js(js({},e),{},{isPending:!1}),t.id),r()},errorCallback:e=>{this.updateFeedItem({isPending:!1},t.id),this.feedErrorCallback(!1,e,ke),n()}})})),this.isDestroyed()||r()}catch(e){this.updateFeedItem({isPending:!1},t.id),this.feedErrorCallback(!1,e,ke)}})),Ns(this,"deleteComment",((e,t,r,n,i)=>{if(this.commentsAPI=new sa(this.options),!e.id)throw Vi();this.file=e,this.errorCallback=i,this.updateFeedItem({isPending:!0},t),this.commentsAPI.deleteComment({file:e,commentId:t,permissions:r,successCallback:this.deleteFeedItem.bind(this,t,n),errorCallback:(e,r)=>{this.deleteCommentErrorCallback(e,r,t)}})})),Ns(this,"deleteThreadedComment",((e,t,r,n,i)=>{if(!e.id)throw Vi();this.file=e,this.errorCallback=i,this.updateFeedItem({isPending:!0},t),this.threadedCommentsAPI=new Ua(this.options),this.threadedCommentsAPI.deleteComment({fileId:e.id,commentId:t,permissions:r,successCallback:this.deleteFeedItem.bind(this,t,n),errorCallback:(e,r)=>{this.deleteCommentErrorCallback(e,r,t)}})})),Ns(this,"deleteReply",((e,t,r,n,i,o)=>{if(!e.id)throw Vi();this.file=e,this.errorCallback=o,this.updateReplyItem({isPending:!0},r,t),this.threadedCommentsAPI=new Ua(this.options),this.threadedCommentsAPI.deleteComment({fileId:e.id,commentId:t,permissions:n,successCallback:this.deleteReplySuccessCallback.bind(this,t,r,i),errorCallback:(e,n)=>{this.deleteReplyErrorCallback(e,n,t,r)}})})),Ns(this,"deleteReplySuccessCallback",((e,t,r)=>{this.modifyFeedItemRepliesCountBy(t,-1),this.deleteReplyItem(e,t,r)})),Ns(this,"deleteCommentErrorCallback",((e,t,r)=>{this.updateFeedItem(this.createFeedError(vs.commentDeleteErrorMessage),r),this.feedErrorCallback(!0,e,t)})),Ns(this,"deleteReplyErrorCallback",((e,t,r,n)=>{this.updateReplyItem(this.createFeedError(vs.commentDeleteErrorMessage),n,r),this.feedErrorCallback(!0,e,t)})),Ns(this,"createTaskNew",((e,t,r,n,i,o,a,s,l)=>{if(!e.id)throw Vi();this.file=e,this.errorCallback=l;const c=rt()("task_");let u;o&&(u=new Date(o).toISOString());const d={created_by:{type:"task_collaborator",target:t,id:rt()(),role:"CREATOR",status:Hs},completion_rule:a,created_at:(new Date).toISOString(),due_at:u,id:c,description:r,type:"task",assigned_to:{entries:n.map((e=>({id:rt()(),target:js(js({},e),{},{avatar_url:"",type:"user"}),status:Hs,permissions:{can_delete:!1,can_update:!1},role:"ASSIGNEE",type:"task_collaborator"}))),limit:10,next_marker:null},permissions:{can_update:!1,can_delete:!1,can_create_task_collaborator:!1,can_create_task_link:!1},task_links:{entries:[{id:rt()(),type:"task_link",target:js({type:"file"},e),permissions:{can_delete:!1,can_update:!1}}],limit:1,next_marker:null},task_type:i,status:$e},h={description:r,due_at:u,task_type:i,completion_rule:a},f=n.filter((e=>"group"===(e.item&&e.item.type))).map((e=>e.id)).map((t=>new Za(this.options).getGroupCount({file:e,group:{id:t}})));Promise.all(f).then((r=>{const i=r.some((e=>e.total_count>250)),o={code:Ce,type:"warning"};i?this.feedErrorCallback(!1,o,Ce):(this.tasksNewAPI=new ya(this.options),this.tasksNewAPI.createTaskWithDeps({file:e,task:h,assignees:n,successCallback:e=>{this.addPendingItem(this.file.id,t,d),this.updateFeedItem(js(js({},e),{},{task_links:{entries:e.task_links,next_marker:null,limit:1},assigned_to:{entries:e.assigned_to,next_marker:null,limit:e.assigned_to.length},isPending:!1}),c),s(e)},errorCallback:(e,t)=>{this.feedErrorCallback(!1,e,t)}}))})).catch((e=>{this.feedErrorCallback(!1,e,ve)}))})),Ns(this,"deleteTaskNew",((e,t,r=it(),n=it())=>{if(!e.id)throw Vi();this.file=e,this.errorCallback=n,this.tasksNewAPI=new ya(this.options),this.updateFeedItem({isPending:!0},t.id),this.tasksNewAPI.deleteTask({file:e,task:t,successCallback:this.deleteFeedItem.bind(this,t.id,r),errorCallback:(e,r)=>{this.updateFeedItem(this.createFeedError(vs.taskDeleteErrorMessage),t.id),this.feedErrorCallback(!0,e,r)}})})),Ns(this,"deleteFeedItem",((e,t=it())=>{const r=this.getCachedItems(this.file.id);if(r){const n=r.items.filter((t=>t.id!==e));this.setCachedItems(this.file.id,n),this.isDestroyed()||t(e)}})),Ns(this,"deleteReplyItem",((e,t,r=it())=>{const n=(this.getCachedItems(this.file.id)||{items:[],errors:[]}).items.map((r=>r.id!==t?r:r.type===f||r.type===p?((e,t)=>{const{replies:r=[]}=e,n=Us(e,Ms);return js({replies:r.filter((({id:e})=>e!==t))},n)})(r,e):r));this.setCachedItems(this.file.id,n),this.isDestroyed()||r(e,t)})),Ns(this,"feedErrorCallback",((e=!1,t,r)=>{e&&this.errors.push(js(js({},t),{},{code:r})),!this.isDestroyed()&&this.errorCallback&&this.errorCallback(t,r,{error:t,[Oe]:e}),console.error(t)})),Ns(this,"addPendingItem",((e,t,r)=>{if(!t)throw qi();const n=(new Date).toISOString(),i=js({created_at:n,created_by:t,modified_at:n,isPending:!0},r),o=this.getCachedItems(this.file.id),a=[...o?o.items:[],i];return this.setCachedItems(e,a),i})),Ns(this,"addPendingReply",((e,t,r)=>{if(!this.file.id)throw Vi();if(!t)throw qi();const n=(new Date).toISOString(),i=js({created_at:n,created_by:t,modified_at:n,isPending:!0},r),o=this.getCachedItems(this.file.id);if(o){const t=o.items.map((t=>t.id===e&&t.type===p||t.id===e&&t.type===f?((e,t)=>{const{replies:r=[]}=e;return js({replies:[...r,t]},Us(e,Ds))})(t,i):t));this.setCachedItems(this.file.id,t)}return i})),Ns(this,"createCommentSuccessCallback",((e,t,r)=>{const{message:n="",tagged_message:i=""}=e;e.tagged_message=i||n,this.updateFeedItem(js(js({},e),{},{isPending:!1}),t),this.isDestroyed()||r(e)})),Ns(this,"createCommentErrorCallback",((e,t,r)=>{const n=409===e.status?vs.commentCreateConflictMessage:vs.commentCreateErrorMessage;this.updateFeedItem(this.createFeedError(n),r),this.feedErrorCallback(!1,e,t)})),Ns(this,"createReplySuccessCallback",((e,t,r,n)=>{this.updateReplyItem(js(js({},e),{},{isPending:!1}),t,r),this.isDestroyed()||n(e)})),Ns(this,"createReplyErrorCallback",((e,t,r,n)=>{const i=409===e.status?vs.commentCreateConflictMessage:vs.commentCreateErrorMessage;this.updateReplyItem(this.createFeedError(i),r,n),this.feedErrorCallback(!1,e,t)})),Ns(this,"updateFeedItem",((e,t)=>{if(!this.file.id)throw Vi();const r=this.getCachedItems(this.file.id);if(r){const n=r.items.map((r=>r.id===t?js(js({},r),e):r));return this.setCachedItems(this.file.id,n),n}return null})),Ns(this,"updateReplyItem",((e,t,r)=>{if(!this.file.id)throw Vi();const n=this.getCachedItems(this.file.id);if(n){const i=n.items.map((n=>n.id===t&&n.type===p||n.id===t&&n.type===f?((e,t,r)=>{const n=js({},e);return n.replies&&(n.replies=n.replies.map((e=>e.id===t?js(js({},e),r):e))),n})(n,r,e):n));this.setCachedItems(this.file.id,i)}})),Ns(this,"createComment",((e,t,r,n,i,o)=>{const a=rt()("comment_"),s={id:a,tagged_message:r,type:p};if(!e.id)throw Vi();this.file=e,this.errorCallback=o,this.addPendingItem(this.file.id,t,s);const l={};n?l.taggedMessage=r:l.message=r,this.commentsAPI=new sa(this.options),this.commentsAPI.createComment(js(js({file:e},l),{},{successCallback:e=>{this.createCommentSuccessCallback(e,a,i)},errorCallback:(e,t)=>{this.createCommentErrorCallback(e,t,a)}}))})),Ns(this,"createThreadedComment",((e,t,r,n,i)=>{if(!e.id)throw Vi();const o=rt()("comment_"),a={id:o,tagged_message:r,type:p};this.file=e,this.errorCallback=i,this.addPendingItem(this.file.id,t,a),this.threadedCommentsAPI=new Ua(this.options),this.threadedCommentsAPI.createComment({file:e,message:r,successCallback:e=>{this.createCommentSuccessCallback(e,o,n)},errorCallback:(e,t)=>{this.createCommentErrorCallback(e,t,o)}})})),Ns(this,"updateComment",((e,t,r,n,i,o,a)=>{const s={tagged_message:r};if(!e.id)throw Vi();this.file=e,this.errorCallback=a,this.updateFeedItem(js(js({},s),{},{isPending:!0}),t);const l={};n?l.tagged_message=r:l.message=r,this.commentsAPI=new sa(this.options),this.commentsAPI.updateComment(js(js({file:e,commentId:t,permissions:i},l),{},{successCallback:e=>{this.updateFeedItem(js(js({},l),{},{isPending:!1}),t),this.isDestroyed()||o(e)},errorCallback:(e,r)=>{this.updateCommentErrorCallback(e,r,t)}}))})),Ns(this,"updateThreadedComment",((e,t,r,n,i,o,a)=>{if(!e.id)throw Vi();if(!r&&!n)throw Gi();const s={};r&&(s.tagged_message=r),n&&(s.status=n),this.file=e,this.errorCallback=a,this.updateFeedItem(js(js({},s),{},{isPending:!0}),t),this.threadedCommentsAPI=new Ua(this.options),this.threadedCommentsAPI.updateComment({fileId:e.id,commentId:t,permissions:i,message:r,status:n,successCallback:e=>{const{replies:r,total_reply_count:n}=e,i=Us(e,Fs);this.updateFeedItem(js(js({},i),{},{isPending:!1}),t),this.isDestroyed()||o(e)},errorCallback:(e,r)=>{this.updateCommentErrorCallback(e,r,t)}})})),Ns(this,"updateReply",((e,t,r,n,i,o,a)=>{if(!e.id)throw Vi();this.file=e,this.errorCallback=a,this.updateReplyItem({tagged_message:n,isPending:!0},r,t),this.threadedCommentsAPI=new Ua(this.options),this.threadedCommentsAPI.updateComment({fileId:e.id,commentId:t,permissions:i,message:n,undefined:void 0,successCallback:e=>{this.updateReplyItem(js(js({},e),{},{isPending:!1}),r,t),this.isDestroyed()||o(e)},errorCallback:(e,n)=>{this.updateReplyErrorCallback(e,n,t,r)}})})),Ns(this,"modifyFeedItemRepliesCountBy",((e,t)=>{if(!this.file.id)throw Vi();const{items:r=[]}=this.getCachedItems(this.file.id)||{},n=r.find((({id:t})=>t===e));if(!n||"annotation"!==n.type&&"comment"!==n.type)return;const i=(n.total_reply_count||0)+t;i>=0&&this.updateFeedItem({total_reply_count:i},e)})),Ns(this,"deleteAppActivity",((e,t,r,n)=>{const{id:i}=e;if(!i)throw Vi();this.appActivityAPI=new xs(this.options),this.file=e,this.errorCallback=n,this.updateFeedItem({isPending:!0},t),this.appActivityAPI.deleteAppActivity({id:i,appActivityId:t,successCallback:this.deleteFeedItem.bind(this,t,r),errorCallback:(e,r)=>{this.deleteAppActivityErrorCallback(e,r,t)}})})),Ns(this,"deleteAppActivityErrorCallback",((e,t,r)=>{this.updateFeedItem(this.createFeedError(vs.appActivityDeleteErrorMessage),r),this.feedErrorCallback(!0,e,t)})),this.taskCollaboratorsAPI=[],this.taskLinksAPI=[],this.errors=[]}addAnnotation(e,t,r,n,i){if(!e.id)throw Vi();if(this.file=e,i){const e=js(js({},r),{},{created_by:t,id:n,type:f});this.addPendingItem(this.file.id,t,e)}else this.updateFeedItem(js(js({},r),{},{isPending:!1}),n)}getCacheKey(e){return`feedItems_${e}`}getCachedItems(e){const t=this.getCache(),r=this.getCacheKey(e);return t.get(r)}setCachedItems(e,t){const r=this.getCache(),n=this.getCacheKey(e);r.set(n,{errors:this.errors,items:t})}feedItems(e,t,r,n,i,{shouldShowAnnotations:o=!1,shouldShowAppActivity:a=!1,shouldShowReplies:s=!1,shouldShowTasks:l=!0,shouldShowVersions:c=!0,shouldUseUAA:u=!1}={},d){const{id:h,permissions:f={}}=e,p=this.getCachedItems(h);if(p){const{errors:e,items:i}=p;if(e.length?n(i,e):r(i),!t)return}this.file=e,this.errors=[],this.errorCallback=i;const b=o?this.fetchAnnotations(f,s):Promise.resolve(),g=l?this.fetchTasksNew():Promise.resolve(),y=a?this.fetchAppActivity(f):Promise.resolve(),v=c?this.fetchVersions():Promise.resolve(),w=c?this.fetchCurrentVersion():Promise.resolve(),E=o&&f[se]?[qe]:[],S=l?[Xe]:[],C=c?[Ke]:[],k=[...E,...a?[Ge]:[],...f[te]?[We]:[],...S,...C],x=u&&k.length?this.fetchFileActivities(f,k,s):Promise.resolve(),P=e=>{this.isDestroyed()||(this.setCachedItems(h,e),this.errors.length?n(e,this.errors):r(e))},_=[v,w,(()=>s?this.fetchThreadedComments(f):this.fetchComments(f))(),g,y,b],O=async e=>Promise.all(e).then((([e,t,...r])=>function(...e){return e.reduce(((e,t)=>t?e.concat(t.entries):e),[]).sort(((e,t)=>Date.parse(e.created_at)-Date.parse(t.created_at)))}(t?this.versionsAPI.addCurrentVersion(t,e,this.file):void 0,...r)));u?x.then((e=>{if(!e)return;const t=((e,t={})=>e&&e.entries&&e.entries.length?e.entries.map((e=>{if(!e.source)return null;const r=js({},e.source);switch(e.activity_type){case Xe:{const e=js({},r[Xe]);if(e.assigned_to?.entries){const t=e.assigned_to.entries.map((e=>{const t=js({},e);return t.role=e.role.toUpperCase(),t.status=e.status.toUpperCase(),t}));e.assigned_to.entries=t}return e.completion_rule&&(e.completion_rule=e.completion_rule.toUpperCase()),e.status&&(e.status=e.status.toUpperCase()),e.task_type&&(e.task_type=e.task_type.toUpperCase()),e.created_by={target:e.created_by},e}case We:{const e=js({},r[We]);if(e.replies&&e.replies.length){const t=Bs(e.replies);e.replies=t}return e.tagged_message=e.tagged_message||e.message||"",e}case qe:{const e=js({},r[qe]);if(e.replies&&e.replies.length){const t=Bs(e.replies);e.replies=t}return e}case Ge:{const e=js({},r[Ge]),{can_delete:n}=t;return e.created_at=e.occurred_at,e.permissions={can_delete:n},e}case Ke:{const e=js({},r[Ke]);if(e.type=m,e.action_by){const t={};1===e.action_by.length&&(e.uploader_display_name=e.action_by[0].name),e.action_by.map((e=>(t[e.id]=js({},e),e))),e.collaborators=t}return e.end?.number&&(e.version_end=e.end.number,e.id=e.end.id),e.start?.number&&(e.version_start=e.start.number),e.version_start===e.version_end&&(e.version_number=e.version_start,"created"===e.action_type&&e.start?.created_at&&e.start?.created_by&&(e.modified_at=e.start.created_at,e.modified_by=js({},e.start.created_by)),"trashed"===e.action_type&&e.start?.trashed_at&&e.start?.trashed_by&&(e.trashed_at=e.start.trashed_at,e.trashed_by=js({},e.start.trashed_by)),"restored"===e.action_type&&e.start?.restored_at&&e.start?.restored_by&&(e.restored_at=e.start.restored_at,e.restored_by=js({},e.start.restored_by))),e}default:return null}})).filter((e=>!!e)).reverse():[])(e,f);(async(e,t)=>{O(_).then((r=>{const n=Is(r),i=Is(e);d&&d({uaaResponse:t,uaaFeedItems:i,v2FeedItems:n})}))})(t,e),P(t)})):O(_).then((e=>{P(e)}))}fetchAnnotations(e,t){return this.annotationsAPI=new Cs(this.options),new Promise((r=>{this.annotationsAPI.getAnnotations(this.file.id,void 0,e,r,this.fetchFeedItemErrorCallback.bind(this,r),void 0,void 0,t)}))}fetchComments(e){return this.commentsAPI=new sa(this.options),new Promise((t=>{this.commentsAPI.getComments(this.file.id,e,t,this.fetchFeedItemErrorCallback.bind(this,t))}))}fetchThreadedComment(e,t,r,n){const{id:i,permissions:o}=e;if(!i||!o)throw Vi();return this.threadedCommentsAPI=new Ua(this.options),new Promise((e=>{this.threadedCommentsAPI.getComment({commentId:t,errorCallback:n,fileId:i,permissions:o,successCallback:this.fetchThreadedCommentSuccessCallback.bind(this,e,r)})}))}fetchThreadedComments(e){return this.threadedCommentsAPI=new Ua(this.options),new Promise((t=>{this.threadedCommentsAPI.getComments({errorCallback:this.fetchFeedItemErrorCallback.bind(this,t),fileId:this.file.id,permissions:e,successCallback:t})}))}fetchFileActivities(e,t,r=!1){return this.fileActivitiesAPI=new $a(this.options),new Promise((n=>{this.fileActivitiesAPI.getActivities({errorCallback:this.fetchFeedItemErrorCallback.bind(this,n),fileID:this.file.id,permissions:e,successCallback:n,activityTypes:t,shouldShowReplies:r})}))}fetchReplies(e,t,r,n,i){const{id:o,permissions:a}=e;if(!o||!a)throw Vi();this.file=e,this.errorCallback=i,this.updateFeedItem({isRepliesLoading:!0},t);const s=({entries:e})=>{this.updateFeedItem({isRepliesLoading:!1,replies:e,total_reply_count:e.length},t),n(e)},l=(e,r)=>{this.fetchRepliesErrorCallback(e,r,t)};r===f?(this.annotationsAPI=new Cs(this.options),this.annotationsAPI.getAnnotationReplies(e.id,t,a,s,l)):r===p&&(this.threadedCommentsAPI=new Ua(this.options),this.threadedCommentsAPI.getCommentReplies({fileId:e.id,commentId:t,permissions:a,successCallback:s,errorCallback:l}))}fetchVersions(){return this.versionsAPI=new na(this.options),new Promise((e=>{this.versionsAPI.getVersions(this.file.id,e,this.fetchFeedItemErrorCallback.bind(this,e),void 0,void 0,Co)}))}fetchCurrentVersion(){return this.versionsAPI=new na(this.options),new Promise((e=>{const{file_version:t={}}=this.file;this.versionsAPI.getVersion(this.file.id,t.id,e,this.fetchFeedItemErrorCallback.bind(this,e))}))}fetchTasksNew(){return this.tasksNewAPI=new ya(this.options),new Promise((e=>{this.tasksNewAPI.getTasksForFile({file:{id:this.file.id},successCallback:e,errorCallback:(t,r)=>this.fetchFeedItemErrorCallback(e,t,r)})}))}fetchFeedItemErrorCallback(e,t,r){const{status:n}=t,i=Wi(n);this.feedErrorCallback(i,t,r),e()}createTaskCollaboratorsforGroup(e,t,r){if(!e.id)throw Vi();return this.file=e,new Promise(((n,i)=>{const o=new Sa(this.options);this.taskCollaboratorsAPI.push(o),o.createTaskCollaboratorsforGroup({file:e,task:t,group:r,successCallback:n,errorCallback:e=>{i(e)}})}))}createTaskCollaborator(e,t,r){if(!e.id)throw Vi();return this.file=e,new Promise(((n,i)=>{const o=new Sa(this.options);this.taskCollaboratorsAPI.push(o),o.createTaskCollaborator({file:e,task:t,user:r,successCallback:n,errorCallback:e=>{i(e)}})}))}deleteTaskCollaborator(e,t,r){if(!e.id)throw Vi();return this.file.id=e.id,new Promise(((n,i)=>{const o=new Sa(this.options);this.taskCollaboratorsAPI.push(o),o.deleteTaskCollaborator({file:e,task:t,taskCollaborator:{id:r.id},successCallback:n,errorCallback:e=>{i(e)}})}))}createTaskLink(e,t){if(!e.id)throw Vi();return this.file=e,new Promise(((r,n)=>{const i=new Pa(this.options);this.taskLinksAPI.push(i),i.createTaskLink({file:e,task:t,successCallback:r,errorCallback:n})}))}createFeedError(e,t=Gn.errorOccured){return{error:{message:e,title:t}}}createReply(e,t,r,n,i,o,a){const{id:s,permissions:l}=e;if(!s||!l)throw Vi();const c=rt()("comment_"),u={id:c,tagged_message:i,type:p};this.file=e,this.errorCallback=a,this.addPendingReply(r,t,u),this.modifyFeedItemRepliesCountBy(r,1);const d=e=>{this.createReplySuccessCallback(e,r,c,o)},h=(e,t)=>{this.createReplyErrorCallback(e,t,r,c)};n===f?(this.annotationsAPI=new Cs(this.options),this.annotationsAPI.createAnnotationReply(e.id,r,l,i,d,h)):n===p&&(this.threadedCommentsAPI=new Ua(this.options),this.threadedCommentsAPI.createCommentReply({fileId:e.id,commentId:r,permissions:l,message:i,successCallback:d,errorCallback:h}))}destroyTaskCollaborators(){Array.isArray(this.taskCollaboratorsAPI)&&(this.taskCollaboratorsAPI.forEach((e=>e.destroy())),this.taskCollaboratorsAPI=[])}destroyTaskLinks(){Array.isArray(this.taskLinksAPI)&&(this.taskLinksAPI.forEach((e=>e.destroy())),this.taskLinksAPI=[])}fetchAppActivity(e){return this.appActivityAPI=new xs(this.options),new Promise((t=>{this.appActivityAPI.getAppActivity(this.file.id,e,t,this.fetchFeedItemErrorCallback.bind(this,t))}))}destroy(){super.destroy(),this.annotationsAPI&&(this.annotationsAPI.destroy(),delete this.annotationsAPI),this.commentsAPI&&(this.commentsAPI.destroy(),delete this.commentsAPI),this.threadedCommentsAPI&&(this.threadedCommentsAPI.destroy(),delete this.threadedCommentsAPI),this.versionsAPI&&(this.versionsAPI.destroy(),delete this.versionsAPI),this.appActivityAPI&&(this.appActivityAPI.destroy(),delete this.appActivityAPI),this.tasksNewAPI&&(this.tasksNewAPI.destroy(),delete this.tasksNewAPI),this.destroyTaskCollaborators(),this.destroyTaskLinks()}},Vs=class extends Yi{getUrl(e){if(!e)throw new Error("Missing app integration id!");return`${this.getBaseApiUrl()}/app_integrations/${e}`}execute(e,t,r,n){if(!e)throw new Error("Missing integration id!");if(!t)throw new Error("Missing file id!");this.errorCode=be;const i=`${this.getUrl(e)}/execute`,o={data:{item:{id:t,type:d}}};this.post({id:t,url:i,data:o,successCallback:r,errorCallback:n})}},$s=class extends Yi{getUrl(e){if(!e)throw new Error("Missing file id!");return`${this.getBaseApiUrl()}/files/${e}/open_with_integrations`}getOpenWithIntegrations(e,t,r){this.errorCode="fetch_integrations_error",this.get({id:e,successCallback:e=>{const r=this.formatOpenWithData(e),n=this.consolidateBoxEditIntegrations(r);t(n)},errorCallback:r})}consolidateBoxEditIntegrations(e){let t=[...e];return e.some((e=>e.appIntegrationId===Be))&&(t=e.filter((e=>e.appIntegrationId!==ze))),t}formatOpenWithData(e){const{items:t,default_app_integration:r}=e;return t.map((({app_integration:e,disabled_reasons:t,display_name:n,display_description:i,display_order:o,is_disabled:a,should_show_consent_popup:s})=>{const{id:l,type:c}=e;return{appIntegrationId:l,displayDescription:i,disabledReasons:t||[],displayOrder:o,isDefault:!!r&&l===r.id,isDisabled:a,displayName:n,requiresConsent:s,type:c}})).sort(((e,t)=>e.displayOrder-t.displayOrder))}};const qs=class extends Yi{constructor(...e){var t,r,n;super(...e),t=this,n=({data:e})=>{this.getCache().set(this.key,e),this.finish()},(r=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(r="queryMetadataSuccessHandler"))in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n}getCacheKey(e){return`metadata_query_${e}`}getUrl(){return`${this.getBaseApiUrl()}/metadata_queries/execute_read`}isLoaded(){return this.getCache().has(this.key)}finish(){if(this.isDestroyed())return;const e=this.getCache().get(this.key);this.successCallback(e)}queryMetadataRequest(e){this.isDestroyed()||(this.errorCode="metadata_query_error",this.xhr.post({url:this.getUrl(),data:e}).then(this.queryMetadataSuccessHandler).catch(this.errorHandler))}queryMetadata(e,t,r,n={}){if(this.isDestroyed())return;const{context:i={}}=n;this.key=this.getCacheKey(i.id),this.successCallback=t,this.errorCallback=r,n.forceFetch&&this.getCache().unset(this.key),this.isLoaded()?this.finish():this.queryMetadataRequest(e)}},Gs={CHROME:"Chrome",EDGE:"Edge",FIREFOX:"Firefox",MAC:"Mac",SAFARI:"Safari",IE:"Explorer"},Ws=[{key:"userAgent",subString:Gs.EDGE,identity:Gs.EDGE},{key:"userAgent",subString:Gs.CHROME,identity:Gs.CHROME},{key:"userAgent",subString:"criOS",identity:Gs.CHROME,versionSearch:"criOS"},{key:"vendor",subString:"Apple",identity:Gs.SAFARI,versionSearch:"Version"},{key:"userAgent",subString:Gs.FIREFOX,identity:Gs.FIREFOX},{key:"userAgent",subString:"MSIE",identity:"Explorer",versionSearch:"MSIE"},{key:"userAgent",subString:"Trident",identity:"Explorer",versionSearch:"rv"},{key:"userAgent",subString:"Gecko",identity:"Mozilla",versionSearch:"rv"}],Xs=[{key:"platform",subString:"Win",identity:"Windows"},{key:"userAgent",subString:"iPod",identity:"iOS",device:"iPod"},{key:"userAgent",subString:"iPhone",identity:"iOS",device:"iPhone"},{key:"userAgent",subString:"iPad",identity:"iOS",device:"iPad"},{key:"platform",subString:Gs.MAC,identity:Gs.MAC},{key:"userAgent",subString:"Android",identity:"Android"},{key:"platform",subString:"Linux",identity:"Linux"}];function Ks(e,t){let r,n=null,i=null,o="";for(let a=0,s=t.length;a<s;a+=1)if(r=e[t[a].key],o=t[a].versionSearch||t[a].identity,r&&-1!==r.indexOf(t[a].subString)){n=t[a].identity,i=t[a].device;break}return{identity:n,device:i,versionSearchString:o}}function Qs(e,t){const r=e.indexOf(t);if(-1===r)return"";const n=e.substring(r+t.length+1).match(/[0-9]+(?:\.[0-9]*)?/);return n&&n.length?n[0]:""}const Ys=new class{constructor(){const{navigator:e}=window,t=Ks(e,Ws),r=Ks(e,Xs);this.browser=t.identity||"unknown",this.version=Qs(e.userAgent,t.versionSearchString)||Qs(e.appVersion,t.versionSearchString)||"unknown",this.OS=r.identity||"unknown",this.device=r.device||"unknown"}getName(){return this.browser}getVersion(){return this.version}isMinBrowser(e,t){return this.browser.toLowerCase()===e.toLowerCase()&&parseFloat(this.version)>=parseFloat(t)}isSafari(){return this.browser===Gs.SAFARI}isFirefox(){return this.browser===Gs.FIREFOX}isChrome(){return this.browser===Gs.CHROME}isIE(){return this.browser===Gs.IE}isEdge(){return this.browser===Gs.EDGE}isIEAndSpecificBrowserPluginSupported(e){return this.isIE()&&function(e){const t=e||"htmlfile";let r=!1;try{if("ActiveXObject"in window){const{ActiveXObject:e}=window;r=!!new e(t)}}catch(e){r=!1}return r}(e)}},Js={SAFARI_CHANNEL_NAME:"safari_channel",SECRET_STORE_COOKIE_NAME:"box-edit-secret-cookie-name",BOX_EDIT_APP_NAME:"BoxEdit",BOX_EDIT_NOT_SUPPORTED_ERROR:"box_edit_not_supported_error",BOX_EDIT_UNINSTALLED_ERROR:"box_edit_uninstalled_error",BOX_EDIT_UPGRADE_BROWSER_ERROR:"box_edit_upgrade_browser_error",BOX_EDIT_SAFARI_ERROR:"box_edit_safari_error",BOX_EDIT_INSECURE_REQUESTS_UPGRADED_ERROR:"box_edit_insecure_requests_upgraded_error",BOX_TOOLS_PLUGIN_NAME:"Box.BoxTools",BOX_SECURE_LOCAL_BASE_URL:"https://edit.boxlocalhost.com:",BOX_UNSECURE_LOCAL_BASE_URL:"http://127.0.0.1:",ACTIVEX_CHANNEL_NAME:"activex_channel",HTTP_CHANNEL_NAME:"http_channel",HTTPS_CHANNEL_NAME:"https_channel",OPERATION_STATUS:"status",OPERATION_REQUEST:"application_request",OPERATION_COMMAND:"application_command",UNCREATED_STATUS:"uncreated",CREATED_STATUS:"created",ACTIVE_STATUS:"active",HIVE_TABLE_WEBAPP_BOXTOOLS_ANALYTICS:"webapp_boxtools_analytics",KEY_LENGTH:16,KEY_ID_LENGTH:8,IV:"75392C57F66CE7E7EF47110410280DD7",OUTPUT_EVENT:"box_extension_output",REQUEST_ID_PRE:"BOX-EXT-REQ-ID-",REQUEST_TIMEOUT_RESPONSE_CODE:408,EXTENSION_BLACKLIST:{A6P:1,AC:1,AS:1,ACR:1,ACTION:1,AIR:1,APP:1,AWK:1,BAT:1,BOXNOTE:1,CGI:1,CHM:1,CMD:1,COM:1,CSH:1,DEK:1,DLD:1,DS:1,EBM:1,ESH:1,EXE:1,EZS:1,FKY:1,FRS:1,FXP:1,GADGET:1,HMS:1,HTA:1,ICD:1,INX:1,IPF:1,ISU:1,JAR:1,JS:1,JSE:1,JSX:1,KIX:1,LNK:1,LUA:1,MCR:1,MEM:1,MPX:1,MS:1,MSI:1,MST:1,OBS:1,PAF:1,PEX:1,PIF:1,PL:1,PRC:1,PRG:1,PVD:1,PWC:1,PY:1,PYC:1,PYO:1,QPX:1,RBX:1,REG:1,RGS:1,ROX:1,RPJ:1,SCAR:1,SCR:1,SCRIPT:1,SCPT:1,SCT:1,SH:1,SHB:1,SHS:1,SPR:1,TLB:1,TMS:1,U3P:1,UDF:1,URL:1,VB:1,VBE:1,VBS:1,VBSCRIPT:1,WCM:1,WPK:1,WS:1,WSF:1,XQT:1}};function Zs(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const el=class{constructor(e){Zs(this,"buildNextRequestID",(()=>`${Js.REQUEST_ID_PRE}${this.window.performance.now()}`)),Zs(this,"buildDetailsObj",((e,t,r)=>{const n=r.toString(),i={data:void 0,operation:e,properties:{application:this.appName,timeout:n},req_id:this.buildNextRequestID()};if(e!==Js.OPERATION_STATUS){if(!t)throw new TypeError(`Data cannot be undefined for ${e}`);i.data=t}return i})),this.appName=e,this.window=window}sendCommand(e,t,r){return Promise.resolve("TODO")}sendRequest(e,t,r){return Promise.resolve("TODO")}getComServerStatus(e,t){return Promise.resolve("TODO")}destroy(){}};function tl(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const rl=class extends el{constructor(e,t){super(e),tl(this,"executeOperation",((e="",t={},r=0,n=0)=>new Promise(((i,o)=>{const a=this.buildDetailsObj(e,t,n),s=setTimeout((()=>{o(new Error({status_code:Js.REQUEST_TIMEOUT_RESPONSE_CODE}))}),r);this.reqIdToPromiseMap.set(a.req_id,{resolve:i,rejectTimeout:s}),this.executeActiveXEvent({detail:a})})))),tl(this,"repairActiveXConnection",(e=>{Ys.isIEAndSpecificBrowserPluginSupported(Js.BOX_TOOLS_PLUGIN_NAME)&&(this.retryAttempt>=2||(this.retryAttempt+=1,setTimeout((()=>{this.executeActiveXEvent(e)}),100)))})),tl(this,"executeActiveXEvent",(e=>{const t=this.createActiveXObjectJSRef(),r="ExecuteSync"in t;try{this.isSynchronous&&r?t.ExecuteSync(JSON.stringify(e)):t.Execute(JSON.stringify(e))}catch(t){this.repairActiveXConnection(e)}})),tl(this,"createActiveXObjectJSRef",(()=>{const{ActiveXObject:e}=this.window;return new e(Js.BOX_TOOLS_PLUGIN_NAME)})),tl(this,"setupActiveXCommunication",(()=>{this.isActiveXExtensionListenerAttached||(this.document.addEventListener(Js.OUTPUT_EVENT,this.appExtensionEventResponseHandler),this.isActiveXExtensionListenerAttached=!0)})),tl(this,"tearDownActiveXCommunication",(()=>{this.isActiveXExtensionListenerAttached&&(this.document.removeEventListener(Js.OUTPUT_EVENT,this.appExtensionEventResponseHandler),this.isActiveXExtensionListenerAttached=!1)})),tl(this,"appExtensionEventResponseHandler",(e=>{this.retryAttempt>0&&(this.retryAttempt=0);const t="string"==typeof e.detail?JSON.parse(e.detail):e.detail;if(this.reqIdToPromiseMap.has(t.req_id)){const e=this.reqIdToPromiseMap.get(t.req_id);if(e){clearTimeout(e.rejectTimeout),this.reqIdToPromiseMap.delete(t.req_id);const r="string"==typeof t.com_server_response.data?JSON.parse(t.com_server_response.data):t.com_server_response.data;e.resolve(r)}}})),tl(this,"getComServerStatus",((e,t)=>this.executeOperation(Js.OPERATION_STATUS,null,e,t))),tl(this,"sendRequest",((e,t,r)=>this.executeOperation(Js.OPERATION_REQUEST,e,t,r))),tl(this,"sendCommand",((e,t,r)=>this.executeOperation(Js.OPERATION_COMMAND,e,t,r))),tl(this,"destroy",(()=>{this.tearDownActiveXCommunication()})),this.isSynchronous=t,this.channelName=Js.ACTIVEX_CHANNEL_NAME,this.reqIdToPromiseMap=new Map,this.isActiveXExtensionListenerAttached=!1,this.retryAttempt=0,this.document=document,this.window=window,this.setupActiveXCommunication()}};function nl(e,t,r,n="/",i=""){const{document:o}=window,a=new Date,s=[];void 0===r&&(r=a.getTime()+5184e6),a.setTime(r),s.push(`${e}=${encodeURIComponent(t)}`),0!==r&&s.push(`; expires=${a.toUTCString()}`),s.push(`; path=${n}`),i&&s.push(`; domain=${i}`),s.push("; secure"),o.cookie=s.join("")}function il(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ol="POST",al=17223,sl="notrunning",ll=new Ui;function cl(){return ll.getItem("comUseFallback")?{primary:17224,fallback:al}:{primary:al,fallback:17224}}const ul=class extends el{constructor(e,t,r){super(e),il(this,"createCORSRequest",((e,t)=>{let r;try{const{XMLHttpRequest:n}=this.window;return r=new n,r.open(e,t,!0),r}catch(r){if(this.retryCounter<3)return this.retryCounter+=1,this.createCORSRequest(e,t);throw new Error("could not create xhr")}})),il(this,"getComServerStatusInstallationPromise",(e=>{let t,r;const n=new Promise(((e,n)=>{t=e,r=n})),i=(e,r)=>{this.currentPort=e,e===al?ll.removeItem("comUseFallback"):ll.setItem("comUseFallback",1),this.comServerInstallationPromiseRejected=!1,t(r)},o=cl(),a=o.primary,s=o.fallback;return this.checkInstallStatus(a,e).then(i.bind(this,a)).catch((t=>{if(t===sl)return this.comServerInstallationPromiseRejected=!0,void r();this.checkInstallStatus(s,e).then(i.bind(this,s)).catch((()=>{this.comServerInstallationPromiseRejected=!0,r()}))})),n})),il(this,"sendComServerRequest",((e,t,r,n)=>new Promise(((i,o)=>{try{const a=this.createCORSRequest(e,t);a.setRequestHeader("Content-Type","text/plain; charset=UTF-8"),a.onload=()=>{i(a)},a.onerror=()=>{o(a)},n>0&&(a.timeout=n,a.ontimeout=()=>{o(a)}),setTimeout((()=>{a.send(r)}),0)}catch(e){o()}})))),il(this,"checkInstallStatus",((e,t)=>this.sendComServerRequest("GET",`${this.url}${e}/status`,null,t).then((e=>{const t=JSON.parse(e.responseText);if(t.running)return t;throw this.comServerInstallationPromiseRejected=!0,new Error(sl)})))),il(this,"getComChannel",(e=>function(e){const{document:t}=window,r=t.cookie.split("; "),n=r.length;let i,o;for(o=0;o<n;o+=1)if(i=r[o].split("="),i[0]===e)return i[1]?decodeURIComponent(i[1]):"";return""}(`${e}-bgp-id`))),il(this,"setComChannel",(e=>{const t=this.getComChannel(e)||this.generateId(),r=`bgp-${t}`,n=(new Date).getTime()+31536e6;return nl(`${e}-bgp-id`,t,n),nl(`bgp-${t}`,"generic",n),r})),il(this,"getComServerStatus",(e=>!this.comServerInstallationPromise||this.comServerInstallationPromiseRejected?(this.comServerInstallationPromise=null,this.comServerInstallationPromise=this.getComServerStatusInstallationPromise(e),this.comServerInstallationPromise):this.comServerInstallationPromise)),il(this,"sendRequest",((e,t,r)=>{const n=`${this.url}${this.currentPort}/application_request?application=${this.appName}&com=${this.comChannelName}&timeout=${r}`;return this.sendComServerRequest(ol,n,e,t).then((e=>{const t=JSON.parse(e.responseText);if(t.response_type&&"error"===t.response_type)throw new Error(`Communication error: ${t.message}`);return t}))})),il(this,"sendCommand",((e,t,r)=>{const n=`${this.url}${this.currentPort}/application_command?application=${this.appName}&com=${this.comChannelName}&timeout=${r}`;return this.sendComServerRequest(ol,n,e,t).then((e=>JSON.parse(e.responseText)))})),il(this,"generateId",(()=>{const e=(new Date).getTime();return"xxxxxxxx".replace(/x/g,(()=>Math.floor((e+16*Math.random())%16).toString(16)))})),this.url=t,this.comChannelName=this.setComChannel(e),this.channelName=r,this.comServerInstallationPromise=null,this.comServerInstallationPromiseRejected=!1,this.retryCounter=0,this.sendCount=0,this.currentPort=cl().primary,this.window=window}};function dl(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const hl="box_extension_output",fl=class extends el{constructor(e){super(e),dl(this,"executeOperation",((e="",t={},r=0,n=0)=>new Promise(((i,o)=>{const a=this.buildDetailsObj(e,t,n),s=setTimeout((()=>{o(new Error({status_code:Js.REQUEST_TIMEOUT_RESPONSE_CODE}))}),r);this.reqIdToPromiseMap.set(a.req_id,{resolve:i,rejectTimeout:s}),this.createAndDispatchAppExtensionEvent({detail:a})})))),dl(this,"setupSafariExtensionCommunication",(()=>{this.isAppExtensionListenerAttached||(this.isAppExtensionListenerAttached=!0,this.document.addEventListener(hl,this.appExtensionEventResponseHandler))})),dl(this,"tearDownSafariExtensionCommunication",(()=>{this.isAppExtensionListenerAttached&&(this.isAppExtensionListenerAttached=!1,this.document.removeEventListener(hl,this.appExtensionEventResponseHandler))})),dl(this,"appExtensionEventResponseHandler",(e=>{const t="string"==typeof e.detail?JSON.parse(e.detail):e.detail;if(this.reqIdToPromiseMap.has(t.req_id)){const e=this.reqIdToPromiseMap.get(t.req_id);if(e){clearTimeout(e.rejectTimeout),this.reqIdToPromiseMap.delete(t.req_id);const r="string"==typeof t.com_server_response.data?JSON.parse(t.com_server_response.data):t.com_server_response.data;e.resolve(r)}}})),dl(this,"createAndDispatchAppExtensionEvent",(e=>{const{CustomEvent:t}=this.window,r=new t("box_extension_input",e);this.document.dispatchEvent(r)})),dl(this,"getComServerStatus",((e,t)=>this.executeOperation(Js.OPERATION_STATUS,null,e,t))),dl(this,"sendRequest",((e,t,r)=>this.executeOperation(Js.OPERATION_REQUEST,e,t,r))),dl(this,"sendCommand",((e,t,r)=>this.executeOperation(Js.OPERATION_COMMAND,e,t,r))),dl(this,"destroy",(()=>{this.tearDownSafariExtensionCommunication()})),this.reqIdToPromiseMap=new Map,this.channelName=Js.SAFARI_CHANNEL_NAME,this.window=window,this.document=document,this.setupSafariExtensionCommunication()}};const pl=55,ml="16.16299",bl="17.17134";let gl;function yl(e){const{BOX_UNSECURE_LOCAL_BASE_URL:t,CREATED_STATUS:r,HTTP_CHANNEL_NAME:n}=Js;return gl.http_channel_status=r,new ul(e,t,n)}function vl(e){const{CREATED_STATUS:t}=Js;return gl.safari_channel_status=t,new fl(e)}function wl(e){const{CREATED_STATUS:t}=Js;return gl.activex_channel_status=t,new rl(e,!0)}function El(){const{EDGE:e}=Gs;return Ys.isMinBrowser(e,bl)||Ys.isMinBrowser(e,ml)&&Ys.getVersion().startsWith("16.")}function Sl(){return Ys.isEdge()&&!El()}function Cl(){const{CHROME:e,FIREFOX:t}=Gs;return Ys.isMinBrowser(e,53)||Ys.isMinBrowser(t,pl)||El()}function kl(){return Ys.isMinBrowser(Gs.SAFARI,10)}function xl(){return Ys.isMinBrowser(Gs.IE,11)}function Pl(e){const{BOX_EDIT_NOT_SUPPORTED_ERROR:t,BOX_EDIT_SAFARI_ERROR:r,BOX_EDIT_UNINSTALLED_ERROR:n,BOX_EDIT_UPGRADE_BROWSER_ERROR:i}=Js;let o=t;return Cl()||xl()?o=n:Ys.isFirefox()||Ys.isChrome()||Ys.isSafari()&&!kl()||Sl()?o=i:kl()&&(o=r),gl.error_message=o,e(new Error(o))}function _l(e){let t=5e3;return"number"==typeof e&&e>=0&&(t=Math.floor(e)),t}function Ol(e){let t=+(e/1e3).toFixed(2);return e<2?t/=2:t-=1,t}const Al=class{constructor(e){var t,r,n;t=this,n=!1,(r=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(r="isInitialized"))in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,this.channels=[],this.isInitialized=!0,function(){const e=Ys.getName(),t=Ys.getVersion(),{UNCREATED_STATUS:r}=Js;gl={box_tools_version:null,browser_name:e,browser_version:t,error_message:null,installation_type:null,http_channel_status:r,https_channel_status:r,activex_channel_status:r,safari_channel_status:r}}(),Cl()?this.channels.push(yl(e)):kl()?this.channels.push(vl(e)):xl()&&Ys.isIEAndSpecificBrowserPluginSupported(Js.BOX_TOOLS_PLUGIN_NAME)?this.channels.push(function(e){const{CREATED_STATUS:t}=Js;return gl.activex_channel_status=t,new rl(e,!1)}(e)):Ys.isFirefox()&&!Ys.isMinBrowser(Gs.FIREFOX,pl)||Sl()||(this.channels=this.channels.concat([yl(e),vl(e),wl(e)]))}getComServerStatus(e){const{ACTIVE_STATUS:t}=Js,r=_l(e),n=Ol(r),i=Sl();return new Promise(((e,o)=>i?Pl.call(null,o):this.channels.length?function(e){const t=[];let r,n=0;return new Promise(((i,o)=>{e.forEach(((a,s)=>{a.then(i).catch((i=>a=>{t[i]=a,n+=1,n===e.length&&(r=new Error("no promises resolved"),o(r))})(s))}))}))}(this.channels.map((i=>i.getComServerStatus(r,n).then((r=>(this.activeChannel=i,r&&(gl.installation_type=r.installation_type,gl.box_tools_version=r.version),gl[`${i.channelName}_status`]=t,e(r))))))).catch(Pl.bind(null,o)):Pl.call(null,o)))}sendRequest(e,t,r){const n=_l(r),i=Ol(n);return this.activeChannel?this.activeChannel.sendRequest(e,n,i):this.getComServerStatus().then((()=>this.activeChannel.sendRequest(e,n,i)))}sendCommand(e,t){const r=_l(t),n=Ol(r);return this.activeChannel?this.activeChannel.sendCommand(e,r,n):this.getComServerStatus().then((()=>this.activeChannel.sendCommand(e,r,n)))}};let Tl,Il=null;class Ml{constructor(){return Il instanceof Ml||(Il=this),this.extensionRequestQueue=new Map,Il}queueGetNativeAppNameFromLocal(e){if(this.extensionRequestQueue.has(e)){const t=this.extensionRequestQueue.get(e);if(!t)throw new Error("Race condition re: queueGetNativeAppNameFromLocal");return t.promise}const t={},r=new Promise(((e,r)=>{t.resolve=e,t.reject=r}));return t.promise=r,this.extensionRequestQueue.set(e,t),r}checkBoxEditAvailability(){return this.getBoxEditAvailability()}getBoxEditAvailability(){return this.client=new Al(Js.BOX_EDIT_APP_NAME),this.client.getComServerStatus()}async canOpenWithBoxEdit(e){const t=await Promise.all(e.map((async e=>{try{return[e,await this.getAppForExtension(e)]}catch(t){return[e,""]}}))),r=new Map;return t.forEach((e=>r.set(...e))),Promise.resolve(r)}openFile(e,t){const r=function(e,t,r,n){return JSON.stringify({auth_code:r,auth_token:t,browser_type:Ys.getName(),command_type:"launch_application",file_id:e.toString(),token_scope:n})}(e,t.data.token,t.data.auth_code,t.data.token_scope);return this.client.sendCommand(r,5e3)}getAppForExtension(e){try{if(function(e){const{EXTENSION_BLACKLIST:t}=Js;let r=e.toUpperCase();return"."===r.charAt(0)&&(r=r.substr(1)),r in t}(e))throw new Error("blacklisted");const t=this.queueGetNativeAppNameFromLocal(e);return Tl||(Tl=setTimeout((()=>{this.processExtensionRequestQueue()}),100)),t}catch(e){return Promise.reject()}}processExtensionRequestQueue(){const e=new Map,t=[];this.extensionRequestQueue.forEach(((r,n)=>{e.set(n,r),t.push(n)})),this.extensionRequestQueue.clear(),Tl=null;const r=function(e){return JSON.stringify({request_type:"get_default_application",extension:e})}(t);return this.client.sendRequest(r).then((r=>{if(r&&r.default_application_name){let t=r.default_application_name;"[object Object]"===Object.prototype.toString.call(t)&&(t=[t]),t.forEach((t=>{const r=Object.keys(t)[0],n=decodeURIComponent(t[r]);if(n){const t=e.get(r);t&&(t.resolve(n),e.delete(r))}}))}t.forEach((t=>{const r=e.get(t);r&&r.reject()}))}))}}const Dl=Ml;function Rl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Fl(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Rl(Object(r),!0).forEach((function(t){Ll(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rl(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ll(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const jl=class extends Yi{async ask(e,t,r=[],n={}){const{prompt:i}=e;if(!i)throw new Error("Missing prompt!");if(!t||0===t.length)throw new Error("Missing items!");t.forEach((e=>{if(!e.id||!e.type)throw new Error("Invalid item!")}));const o=`${this.getBaseApiUrl()}/ai/ask`;return this.xhr.post({url:o,id:`file_${t[0].id}`,data:Fl({mode:"single_item_qa",prompt:i,items:t,dialogue_history:r},n)})}async extractStructured(e){this.errorCode="extract_structured_error";const t=`${this.getBaseApiUrl()}/ai/extract_structured`;let r={};try{r=await this.xhr.post({url:t,data:e,id:`file_${e.items[0].id}`})}catch(e){const{status:t}=e;if(Wi(t))throw e}return mi()(r,"data",{})}};function Nl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ul(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Nl(Object(r),!0).forEach((function(t){Hl(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nl(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Hl(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Bl=class{constructor(e){this.options=Ul(Ul({},e),{},{apiHost:e.apiHost||le,uploadHost:e.uploadHost||ce,cache:e.cache||new di,language:e.language})}destroy(e=!1){this.fileAPI&&(this.fileAPI.destroy(),delete this.fileAPI),this.weblinkAPI&&(this.weblinkAPI.destroy(),delete this.weblinkAPI),this.plainUploadAPI&&(this.plainUploadAPI.destroy(),delete this.plainUploadAPI),this.chunkedUploadAPI&&(this.chunkedUploadAPI.destroy(),delete this.chunkedUploadAPI),this.folderAPI&&(this.folderAPI.destroy(),delete this.folderAPI),this.searchAPI&&(this.searchAPI.destroy(),delete this.searchAPI),this.recentsAPI&&(this.recentsAPI.destroy(),delete this.recentsAPI),this.versionsAPI&&(this.versionsAPI.destroy(),delete this.versionsAPI),this.fileAccessStatsAPI&&(this.fileAccessStatsAPI.destroy(),delete this.fileAccessStatsAPI),this.fileActivitiesAPI&&(this.fileActivitiesAPI.destroy(),delete this.fileActivitiesAPI),this.tasksNewAPI&&(this.tasksNewAPI.destroy(),delete this.tasksNewAPI),this.taskCollaboratorsAPI&&(this.taskCollaboratorsAPI.destroy(),delete this.taskCollaboratorsAPI),this.taskLinksAPI&&(this.taskLinksAPI.destroy(),delete this.taskLinksAPI),this.commentsAPI&&(this.commentsAPI.destroy(),delete this.commentsAPI),this.threadedCommentsAPI&&(this.threadedCommentsAPI.destroy(),delete this.threadedCommentsAPI),this.markerBasedGroupsAPI&&(this.markerBasedGroupsAPI.destroy(),delete this.markerBasedGroupsAPI),this.markerBasedUsersAPI&&(this.markerBasedUsersAPI.destroy(),delete this.markerBasedUsersAPI),this.groupsAPI&&(this.groupsAPI.destroy(),delete this.groupsAPI),this.usersAPI&&(this.usersAPI.destroy(),delete this.usersAPI),this.metadataAPI&&(this.metadataAPI.destroy(),delete this.metadataAPI),this.fileCollaboratorsAPI&&(this.fileCollaboratorsAPI.destroy(),delete this.fileCollaboratorsAPI),this.fileCollaborationsAPI&&(this.fileCollaborationsAPI.destroy(),delete this.fileCollaborationsAPI),this.folderCollaborationsAPI&&(this.folderCollaborationsAPI.destroy(),delete this.folderCollaborationsAPI),this.collaborationsAPI&&(this.collaborationsAPI.destroy(),delete this.collaborationsAPI),this.appIntegrationsAPI&&(this.appIntegrationsAPI.destroy(),delete this.appIntegrationsAPI),this.metadataQueryAPI&&(this.metadataQueryAPI.destroy(),delete this.metadataQueryAPI),this.openWithAPI&&(this.openWithAPI.destroy(),delete this.openWithAPI),this.annotationsAPI&&(this.annotationsAPI.destroy(),delete this.annotationsAPI),this.intelligenceAPI&&(this.intelligenceAPI.destroy(),delete this.intelligenceAPI),e&&(this.options.cache=new di)}getCache(){return this.options.cache}getAPI(e){let t;switch(e){case u:t=this.getFolderAPI();break;case d:t=this.getFileAPI();break;case h:t=this.getWebLinkAPI();break;default:throw new Error("Unknown Type!")}return t}getFileAPI(e=!0){return e&&this.destroy(),this.fileAPI=new Fo(this.options),this.fileAPI}getWebLinkAPI(){return this.destroy(),this.weblinkAPI=new Lo(this.options),this.weblinkAPI}getPlainUploadAPI(){return this.destroy(),this.plainUploadAPI=new po(this.options),this.plainUploadAPI}getChunkedUploadAPI(){return this.destroy(),this.chunkedUploadAPI=new uo(this.options),this.chunkedUploadAPI}getFolderAPI(){return this.destroy(),this.folderAPI=new Bo(this.options),this.folderAPI}getSearchAPI(){return this.destroy(),this.searchAPI=new qo(this.options),this.searchAPI}getRecentsAPI(){return this.destroy(),this.recentsAPI=new Xo(this.options),this.recentsAPI}getMetadataAPI(e){return e&&this.destroy(),this.metadataAPI=new as(this.options),this.metadataAPI}getVersionsAPI(e){return e&&this.destroy(),this.versionsAPI=new na(this.options),this.versionsAPI}getCommentsAPI(e){return e&&this.destroy(),this.commentsAPI=new sa(this.options),this.commentsAPI}getThreadedCommentsAPI(e){return e&&this.destroy(),this.threadedCommentsAPI=new Ua(this.options),this.threadedCommentsAPI}getTasksNewAPI(e){return e&&this.destroy(),this.tasksNewAPI=new ya(this.options),this.tasksNewAPI}getTaskCollaboratorsAPI(e){return e&&this.destroy(),this.taskCollaboratorsAPI=new Sa(this.options),this.taskCollaboratorsAPI}getTaskLinksAPI(e){return e&&this.destroy(),this.taskLinksAPI=new Pa(this.options),this.taskLinksAPI}getFileAccessStatsAPI(e){return e&&this.destroy(),this.fileAccessStatsAPI=new Ha(this.options),this.fileAccessStatsAPI}getFileActivitiesAPI(e){return e&&this.destroy(),this.fileActivitiesAPI=new $a(this.options),this.fileActivitiesAPI}getFileCollaboratorsAPI(e){return e&&this.destroy(),this.fileCollaboratorsAPI=new us(this.options),this.fileCollaboratorsAPI}getFileCollaborationsAPI(e){return e&&this.destroy(),this.fileCollaborationsAPI=new fs(this.options),this.fileCollaborationsAPI}getFolderCollaborationsAPI(e){return e&&this.destroy(),this.folderCollaborationsAPI=new ps(this.options),this.folderCollaborationsAPI}getCollaborationsAPI(e){return e&&this.destroy(),this.collaborationsAPI=new ys(this.options),this.collaborationsAPI}getMarkerBasedGroupsAPI(e){return e&&this.destroy(),this.markerBasedGroupsAPI=new Xa(this.options),this.markerBasedGroupsAPI}getMarkerBasedUsersAPI(e){return e&&this.destroy(),this.markerBasedUsersAPI=new Ja(this.options),this.markerBasedUsersAPI}getGroupsAPI(e){return e&&this.destroy(),this.groupsAPI=new Za(this.options),this.groupsAPI}getUsersAPI(e){return e&&this.destroy(),this.usersAPI=new es(this.options),this.usersAPI}getFeedAPI(e){return e&&this.destroy(),this.feedItemsAPI=new zs(this.options),this.feedItemsAPI}getOpenWithAPI(e){return e&&this.destroy(),this.openWithAPI=new $s(this.options),this.openWithAPI}getAppIntegrationsAPI(e){return e&&this.destroy(),this.appIntegrationsAPI=new Vs(this.options),this.appIntegrationsAPI}getMetadataQueryAPI(e=!1){return e&&this.destroy(),this.metadataQueryAPI=new qs(this.options),this.metadataQueryAPI}getBoxEditAPI(){return this.boxEditAPI=new Dl,this.boxEditAPI}getAnnotationsAPI(e){return e&&this.destroy(),this.annotationsAPI=new Cs(this.options),this.annotationsAPI}getIntelligenceAPI(e){return e&&this.destroy(),this.intelligenceAPI=new jl(this.options),this.intelligenceAPI}};let zl=function(e){return e.SMALL="small",e.MEDIUM="medium",e.LARGE="large",e.DEFAULT="default",e}({});const Vl=({className:t="",size:r=zl.DEFAULT})=>e.createElement("div",{className:`crawler ${t} is-${r}`},e.createElement("div",null),e.createElement("div",null),e.createElement("div",null)),$l=({integrationWindow:e,children:r})=>{const n=e.document.createElement("div");return function(e,t){Array.from(e.styleSheets).forEach((e=>{if(!e.href)return;const r=t.document.createElement("link");r.rel="stylesheet",r.href=e.href,t.document.head.appendChild(r)})),t.document.body.style.margin=0,t.document.body.style.padding=0}(document,e),e.document.body.appendChild(n),(0,t.createPortal)(r,n)},ql=({hasError:t,integrationWindow:r})=>e.createElement($l,{integrationWindow:r},e.createElement("div",{className:"be bcow bcow-portal-container"},t?e.createElement(ei,{errorHeader:e.createElement(on,Gn.executeIntegrationOpenWithErrorHeader),errorSubHeader:e.createElement(on,Gn.executeIntegrationOpenWithErrorSubHeader)}):e.createElement(Vl,{className:"bcow-portal-loading-indicator",size:"large"})));var Gl=__webpack_require__(91695);function Wl(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class Xl extends e.Component{constructor(...e){super(...e),Wl(this,"menuID",rt()("menu")),Wl(this,"menuButtonID",rt()("menubutton")),Wl(this,"state",{initialFocusIndex:null,isOpen:!1}),Wl(this,"openMenuAndSetFocusIndex",(e=>{this.setState({initialFocusIndex:e,isOpen:!0})})),Wl(this,"closeMenu",(e=>{const{onMenuClose:t=it()}=this.props;this.setState({isOpen:!1},(()=>t(e)))})),Wl(this,"focusButton",(()=>{const e=document.getElementById(this.menuButtonID);e&&e.focus()})),Wl(this,"handleButtonClick",(e=>{const{isOpen:t}=this.state;e.stopPropagation(),e.preventDefault(),t?this.closeMenu(e):this.openMenuAndSetFocusIndex(null)})),Wl(this,"handleButtonKeyDown",(e=>{const{isOpen:t}=this.state;switch(e.key){case" ":case"Enter":case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.openMenuAndSetFocusIndex(0);break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.openMenuAndSetFocusIndex(-1);break;case"Escape":t&&e.stopPropagation(),e.preventDefault(),this.closeMenu(e)}})),Wl(this,"handleMenuClose",((e,t)=>{this.closeMenu(t),this.focusButton()})),Wl(this,"handleDocumentClick",(e=>{const t=document.getElementById(this.menuID),r=document.getElementById(this.menuButtonID);t&&r&&e.target instanceof Node&&!t.contains(e.target)&&!r.contains(e.target)&&this.closeMenu(e)}))}componentDidUpdate(e,t){const{useBubble:r}=this.props;if(!t.isOpen&&this.state.isOpen){document.addEventListener("click",this.handleDocumentClick,!r),document.addEventListener("contextmenu",this.handleDocumentClick,!r);const{onMenuOpen:e}=this.props;e&&e()}else t.isOpen&&!this.state.isOpen&&(document.removeEventListener("contextmenu",this.handleDocumentClick,!r),document.removeEventListener("click",this.handleDocumentClick,!r))}componentWillUnmount(){const{useBubble:e}=this.props;this.state.isOpen&&(document.removeEventListener("contextmenu",this.handleDocumentClick,!e),document.removeEventListener("click",this.handleDocumentClick,!e))}render(){const{bodyElement:t,children:r,className:n,constrainToScrollParent:i,constrainToWindow:o,constrainToWindowWithPin:a,isResponsive:s,isRightAligned:l,tetherAttachment:c,tetherTargetAttachment:u}=this.props,{isOpen:d,initialFocusIndex:h}=this.state,f=e.Children.toArray(r);if(2!==f.length)throw new Error("DropdownMenu must have exactly two children: A button component and a <Menu>");const p=f[0],m=f[1],b={id:this.menuButtonID,key:this.menuButtonID,onClick:this.handleButtonClick,onKeyDown:this.handleButtonKeyDown,"aria-expanded":d?"true":"false"};void 0===p.props["aria-haspopup"]&&(b["aria-haspopup"]="true"),d&&(b["aria-controls"]=this.menuID);const g={id:this.menuID,key:this.menuID,initialFocusIndex:h,onClose:this.handleMenuClose,"aria-labelledby":this.menuButtonID};let y="top left",v="bottom left";l&&(y="top right",v="bottom right");const w=[];i&&w.push({to:"scrollParent",attachment:"together"}),o&&w.push({to:"window",attachment:"together"}),a&&w.push({to:"window",attachment:"together",pin:!0});const E=t instanceof HTMLElement?t:document.body;return e.createElement(Gl.A,{attachment:c||y,bodyElement:E,className:et()({"bdl-DropdownMenu--responsive":s},n),classPrefix:"dropdown-menu",constraints:w,enabled:d,targetAttachment:u||v},e.cloneElement(p,b),d&&e.cloneElement(m,g))}}Wl(Xl,"defaultProps",{constrainToScrollParent:!1,constrainToWindow:!1,isResponsive:!1,isRightAligned:!1});const Kl=Xl,Ql=e.createContext({closeMenu:it()}),Yl=["children","className","isHidden","setRef","shouldOutlineFocus"];function Jl(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Zl=".menu-item:not([aria-disabled])",ec=`ul:not(.submenu) > ${Zl}, ul:not(.submenu) > li > ${Zl}, ul:not(.submenu) > span > ${Zl}`,tc=`ul.submenu > ${Zl}, ul.submenu > li > ${Zl}, ul.submenu > span > ${Zl}`;function rc(e){e.stopPropagation(),e.preventDefault()}class nc extends e.Component{constructor(e){super(e),Jl(this,"setInitialFocusIndex",((e=this.props)=>{const{initialFocusIndex:t,isHidden:r}=e;r||void 0===t||("number"==typeof t?setTimeout((()=>{this.setFocus(t)}),0):null===t&&setTimeout((()=>{this.menuEl&&this.menuEl.focus()}),0))})),Jl(this,"setMenuItemEls",(()=>{const{isSubmenu:e,menuItemSelector:t}=this.props,r=t||(e?tc:ec);this.menuItemEls=this.menuEl?[].slice.call(this.menuEl.querySelectorAll(r)):[]})),Jl(this,"getMenuItemElFromEventTarget",(e=>{let t=null,r=-1;for(let n=0;n<this.menuItemEls.length;n+=1)if(this.menuItemEls[n].contains(e)){t=this.menuItemEls[n],r=n;break}return{menuItemEl:t,menuIndex:r}})),Jl(this,"setFocus",(e=>{if(!this.menuItemEls.length)return;const t=this.menuItemEls.length;this.focusIndex=e>=t?0:e<0?t-1:e,this.menuItemEls[this.focusIndex].focus()})),Jl(this,"focusFirstItem",(()=>{this.setFocus(0)})),Jl(this,"focusLastItem",(()=>{this.setFocus(-1)})),Jl(this,"focusNextItem",(()=>{this.setFocus(this.focusIndex+1)})),Jl(this,"focusPreviousItem",(()=>{this.setFocus(this.focusIndex-1)})),Jl(this,"fireOnCloseHandler",((e,t)=>{const{onClose:r}=this.props;r&&r(e,t)})),Jl(this,"handleClick",(e=>{const{menuItemEl:t}=e.target instanceof Node?this.getMenuItemElFromEventTarget(e.target):{};t&&this.fireOnCloseHandler(!1,e)})),Jl(this,"handleKeyDown",(e=>{const{isSubmenu:t,initialFocusIndex:r}=this.props;switch(e.key){case"ArrowDown":rc(e),null!==r||this.keyboardPressed?this.focusNextItem():this.focusFirstItem();break;case"ArrowUp":rc(e),this.focusPreviousItem();break;case"ArrowLeft":if(!t)return;rc(e),this.fireOnCloseHandler(!0,e);break;case"Home":case"PageUp":rc(e),this.focusFirstItem();break;case"End":case"PageDown":rc(e),this.focusLastItem();break;case"Escape":rc(e),this.fireOnCloseHandler(!0,e);break;case"Tab":this.fireOnCloseHandler(!0,e);break;case" ":case"Enter":rc(e),e.target instanceof HTMLElement&&e.target.click()}this.keyboardPressed=!0})),this.focusIndex=0,this.menuEl=null,this.menuItemEls=[]}componentDidMount(){this.setMenuItemEls(),this.setInitialFocusIndex()}componentDidUpdate({isHidden:t,children:r}){const{children:n,isHidden:i,isSubmenu:o}=this.props;if(o&&t&&!i&&(this.setMenuItemEls(),this.setInitialFocusIndex(this.props)),e.Children.toArray(r).length!==e.Children.toArray(n).length){const e=this.menuItemEls[this.focusIndex];this.setMenuItemEls();const{menuIndex:t}=this.getMenuItemElFromEventTarget(e),r=-1===t,n=this.focusIndex>=this.menuItemEls.length;this.setFocus(r&&!n?this.focusIndex:t)}}render(){const t=this.props,{children:r,className:n,isHidden:i,setRef:o,shouldOutlineFocus:a}=t,s=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(t,Yl),l=Xn()(s,["onClose","initialFocusIndex","isSubmenu","menuItemSelector"]);return l.className=et()("aria-menu",n,{"is-hidden":i,"should-outline-focus":a}),l.ref=e=>{this.menuEl=e,o&&o(e)},void 0===l.role&&(l.role="menu"),l.tabIndex=-1,l.onClick=this.handleClick,l.onKeyDown=this.handleKeyDown,e.createElement("ul",l,e.createElement(Ql.Provider,{value:{closeMenu:this.fireOnCloseHandler}},r))}}Jl(nc,"defaultProps",{className:"",isSubmenu:!1,isHidden:!1});const ic=nc,oc=["children","className","constrainToScrollParent","constrainToWindow","position","isShown","offset","tetherElementClassName"];function ac(){return ac=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ac.apply(null,arguments)}function sc(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let lc=function(e){return e.BOTTOM_CENTER="bottom-center",e.BOTTOM_LEFT="bottom-left",e.BOTTOM_RIGHT="bottom-right",e.MIDDLE_CENTER="middle-center",e.MIDDLE_LEFT="middle-left",e.MIDDLE_RIGHT="middle-right",e.TOP_CENTER="top-center",e.TOP_LEFT="top-left",e.TOP_RIGHT="top-right",e}({});const cc={[lc.BOTTOM_CENTER]:{attachment:"top center",targetAttachment:"bottom center"},[lc.BOTTOM_LEFT]:{attachment:"top left",targetAttachment:"bottom left"},[lc.BOTTOM_RIGHT]:{attachment:"top right",targetAttachment:"bottom right"},[lc.MIDDLE_CENTER]:{attachment:"middle center",targetAttachment:"middle center"},[lc.MIDDLE_LEFT]:{attachment:"middle right",targetAttachment:"middle left"},[lc.MIDDLE_RIGHT]:{attachment:"middle left",targetAttachment:"middle right"},[lc.TOP_CENTER]:{attachment:"bottom center",targetAttachment:"top center"},[lc.TOP_LEFT]:{attachment:"bottom left",targetAttachment:"top left"},[lc.TOP_RIGHT]:{attachment:"bottom right",targetAttachment:"top right"}};class uc extends e.Component{constructor(...t){super(...t),sc(this,"tetherRef",e.createRef()),sc(this,"radarAnimationID",rt()("radarAnimation")),sc(this,"position",(()=>{const{isShown:e}=this.props;this.tetherRef.current&&e&&this.tetherRef.current.position()}))}render(){const t=this.props,{children:r,className:n="",constrainToScrollParent:i,constrainToWindow:o,position:a,isShown:s,offset:l,tetherElementClassName:c}=t,u=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(t,oc),d=[];i&&d.push({to:"scrollParent",attachment:"together"}),o&&d.push({to:"window",attachment:"together"});const{attachment:h,targetAttachment:f}=cc[a],p=e.Children.only(r),m=e.cloneElement(p,{"aria-describedby":this.radarAnimationID}),b={attachment:h,classPrefix:"radar-animation",constraints:d,targetAttachment:f};return c&&(b.className=c),l&&(b.offset=l),e.createElement(Gl.A,ac({ref:this.tetherRef},b),m,s&&e.createElement("div",ac({className:`radar ${n}`,id:this.radarAnimationID},u),e.createElement("div",{className:"radar-dot"}),e.createElement("div",{className:"radar-circle"})))}}sc(uc,"defaultProps",{constrainToScrollParent:!1,constrainToWindow:!0,isShown:!0,position:lc.MIDDLE_RIGHT});const dc=uc,hc=["children","className","isDisabled","isSelectItem","isSelected","showRadar"];class fc extends e.Component{constructor(...e){var t,r,n;super(...e),t=this,n=e=>{const{isDisabled:t,onClick:r}=this.props;if(t)return e.stopPropagation(),void e.preventDefault();r&&r(e)},(r=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(r="onClickHandler"))in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n}render(){const t=this.props,{children:r,className:n,isDisabled:i,isSelectItem:o,isSelected:a,showRadar:s}=t,l=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(t,hc),c=Xn()(l,["role","tabIndex","onClick"]);c.className=et()("menu-item",n,{"is-select-item":o,"is-selected":a}),c.role=o?"menuitemradio":"menuitem",c.tabIndex=-1,c.onClick=this.onClickHandler,o&&(c["aria-checked"]=a),i&&(c["aria-disabled"]="true");let u=e.createElement("li",c,r);return s&&(u=e.createElement(dc,null,u)),u}}const pc=fc;function mc(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const bc="icon-google-docs";class gc extends e.Component{constructor(...e){super(...e),mc(this,"idPrefix",`${rt()(bc)}-`)}render(){const{className:t,height:r,title:n,width:i}=this.props;return e.createElement(Yn,{className:`${bc} ${t}`,height:r,title:n,viewBox:"0 0 30 30",width:i},e.createElement("defs",null,e.createElement("linearGradient",{gradientTransform:"matrix(2.67 0 0 -2.67 596.67 1357)",gradientUnits:"userSpaceOnUse",id:`${this.idPrefix}a`,x1:"-215.49",x2:"-215.49",y1:"505.79",y2:"503.19"},e.createElement("stop",{offset:"0",stopColor:"#1a237e",stopOpacity:".2"}),e.createElement("stop",{offset:"1",stopColor:"#1a237e",stopOpacity:".02"}))),e.createElement("path",{d:"M17.64 0H6.05A2.05 2.05 0 0 0 4 2.05V28a2.05 2.05 0 0 0 2.05 2h17.72a2.05 2.05 0 0 0 2.05-2V8.18l-4.77-3.41z",fill:"#4285f4"}),e.createElement("path",{d:"M18.23 7.58l7.59 7.58V8.18l-7.59-.6z",fill:`url(#${this.idPrefix}a)`}),e.createElement("path",{d:"M9.45 21.82h10.91v-1.37H9.45zm0 2.73h8.19v-1.37H9.45zm0-9.55v1.36h10.91V15zm0 4.09h10.91v-1.36H9.45z",fill:"#f1f1f1"}),e.createElement("path",{d:"M17.64 0v6.14a2 2 0 0 0 2 2h6.14z",fill:"#a1c2fa"}),e.createElement("path",{d:"M6.05 0A2.05 2.05 0 0 0 4 2.05v.17A2.05 2.05 0 0 1 6.05.17h11.59V0z",fill:"#fff",fillOpacity:".2"}),e.createElement("path",{d:"M19.68 8.18a2 2 0 0 1-2-2v.17a2 2 0 0 0 2 2h6.14v-.17z",fill:"#1a237e",fillOpacity:".1"}))}}mc(gc,"defaultProps",{className:"",height:30,width:30});const yc=gc;function vc(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const wc="icon-google-sheets";class Ec extends e.Component{constructor(...e){super(...e),vc(this,"idPrefix",`${rt()(wc)}-`)}render(){const{className:t,height:r,title:n,width:i}=this.props;return e.createElement(Yn,{className:`${wc} ${t}`,height:r,title:n,viewBox:"0 0 30 30",width:i},e.createElement("defs",null,e.createElement("linearGradient",{gradientTransform:"matrix(2.67 0 0 -2.67 596.67 1357)",gradientUnits:"userSpaceOnUse",id:`${this.idPrefix}a`,x1:"-215.49",x2:"-215.49",y1:"505.79",y2:"503.19"},e.createElement("stop",{offset:"0",stopColor:"#208256"}),e.createElement("stop",{offset:".55",stopColor:"#19955a",stopOpacity:".2"}))),e.createElement("path",{d:"M17.64 0H6.05A2.05 2.05 0 0 0 4 2.05V28a2.05 2.05 0 0 0 2.05 2h17.72a2.05 2.05 0 0 0 2.05-2V8.18l-4.77-3.41z",fill:"#22a565"}),e.createElement("path",{d:"M18.23 7.58l7.59 7.58V8.18l-7.59-.6z",fill:`url(#${this.idPrefix}a)`}),e.createElement("path",{d:"M17.64 0v6.14a2 2 0 0 0 2 2h6.14z",fill:"#8ed1b1"}),e.createElement("path",{d:"M6.05 0A2.05 2.05 0 0 0 4 2.05v.17A2.05 2.05 0 0 1 6.05.17h11.59V0z",fill:"#fff",fillOpacity:".2"}),e.createElement("path",{d:"M19.68 8.18a2 2 0 0 1-2-2v.17a2 2 0 0 0 2 2h6.14v-.17z",fill:"#1a237e",fillOpacity:".1"}),e.createElement("path",{d:"M10 14v10h10V14zm1 1h3.5v2H11zm0 3h3.5v2H11zm0 5v-2h3.5v2zm8 0h-3.5v-2H19zm0-3h-3.5v-2H19zm0-3h-3.5v-2H19z",fill:"#f1f1f1"}))}}vc(Ec,"defaultProps",{className:"",height:30,width:30});const Sc=Ec;function Cc(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const kc="icon-google-slides";class xc extends e.Component{constructor(...e){super(...e),Cc(this,"idPrefix",`${rt()(kc)}-`)}render(){const{className:t,height:r,title:n,width:i}=this.props;return e.createElement(Yn,{className:`${kc} ${t}`,height:r,title:n,viewBox:"0 0 30 30",width:i},e.createElement("defs",null,e.createElement("linearGradient",{gradientTransform:"matrix(2.67 0 0 -2.67 596.67 1357)",gradientUnits:"userSpaceOnUse",id:`${this.idPrefix}a`,x1:"-215.49",x2:"-215.49",y1:"505.79",y2:"503.19"},e.createElement("stop",{offset:"0",stopColor:"#d08714",stopOpacity:".88"}),e.createElement("stop",{offset:".55",stopColor:"#cf8714",stopOpacity:".2"}))),e.createElement("path",{d:"M17.64 0H6.05A2.05 2.05 0 0 0 4 2.05V28a2.05 2.05 0 0 0 2.05 2h17.72a2.05 2.05 0 0 0 2.05-2V8.18l-4.77-3.41z",fill:"#f4b912"}),e.createElement("path",{d:"M18.23 7.58l7.59 7.58V8.18l-7.59-.6z",fill:`url(#${this.idPrefix}a)`}),e.createElement("path",{d:"M17.64 0v6.14a2 2 0 0 0 2 2h6.14z",fill:"#fadc87"}),e.createElement("path",{d:"M6.05 0A2.05 2.05 0 0 0 4 2.05v.17A2.05 2.05 0 0 1 6.05.17h11.59V0z",fill:"#fff",fillOpacity:".2"}),e.createElement("path",{d:"M19.68 8.18a2 2 0 0 1-2-2v.17a2 2 0 0 0 2 2h6.14v-.17z",fill:"#1a237e",fillOpacity:".1"}),e.createElement("path",{d:"M10 15v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-8a1 1 0 0 0-1-1h-8a1 1 0 0 0-1 1zm9 6h-8v-4h8z",fill:"#f1f1f1"}))}}Cc(xc,"defaultProps",{className:"",height:30,width:30});const Pc=xc,_c="#fff",Oc="#0061d5",Ac="#4e4e4e",Tc="#d3d3d3",Ic=["children","title"];class Mc extends e.Component{constructor(...e){var t,r,n;super(...e),t=this,r="id",n=rt()("icon"),(r=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(r))in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n}render(){const t=this.props,{children:r,title:n}=t,i=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(t,Ic),o=`${this.id}-title`,a=Xn()(i,["role","aria-labelledby"]);return a.focusable="false",n?(a["aria-labelledby"]=o,a.role="img"):(a["aria-hidden"]="true",a.role="presentation"),e.createElement("svg",a,n?e.createElement("title",{id:o},n):null,r)}}const Dc=Mc;function Rc(){return Rc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Rc.apply(null,arguments)}function Fc(){return Fc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Fc.apply(null,arguments)}function Lc(){return Lc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Lc.apply(null,arguments)}function jc(){return jc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},jc.apply(null,arguments)}function Nc(){return Nc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Nc.apply(null,arguments)}function Uc(){return Uc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Uc.apply(null,arguments)}function Hc(){return Hc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Hc.apply(null,arguments)}function Bc(){return Bc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Bc.apply(null,arguments)}function zc(){return zc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},zc.apply(null,arguments)}function Vc(){return Vc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Vc.apply(null,arguments)}function $c(){return $c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$c.apply(null,arguments)}function qc(){return qc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qc.apply(null,arguments)}function Gc(){return Gc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Gc.apply(null,arguments)}function Wc(){return Wc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Wc.apply(null,arguments)}function Xc(){return Xc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Xc.apply(null,arguments)}function Kc(){return Kc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Kc.apply(null,arguments)}function Qc(){return Qc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Qc.apply(null,arguments)}function Yc(){return Yc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Yc.apply(null,arguments)}function Jc(){return Jc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Jc.apply(null,arguments)}function Zc(){return Zc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Zc.apply(null,arguments)}function eu(){return eu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},eu.apply(null,arguments)}function tu(){return tu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},tu.apply(null,arguments)}const ru=t=>e.createElement(Dc,tu({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("path",{fill:Oc,fillRule:"nonzero",d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),e.createElement("path",{fill:_c,fillOpacity:.5,fillRule:"nonzero",d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),e.createElement("path",{fill:_c,d:"M17.5 21c.245 0 .45.183.492.412L18 21.5c0 .276-.23.5-.5.5h-7a.505.505 0 01-.5-.5c0-.276.23-.5.5-.5h7zm4-3c.245 0 .45.183.492.412L22 18.5c0 .276-.229.5-.5.5h-11a.505.505 0 01-.5-.5c0-.276.229-.5.5-.5h11zm-1.001-3c.246 0 .45.183.493.412L21 15.5c0 .276-.23.5-.501.5H10.5a.506.506 0 01-.501-.5c0-.276.23-.5.501-.5h10z"})));function nu(){return nu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},nu.apply(null,arguments)}function iu(){return iu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},iu.apply(null,arguments)}function ou(){return ou=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ou.apply(null,arguments)}function au(){return au=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},au.apply(null,arguments)}function su(){return su=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},su.apply(null,arguments)}function lu(){return lu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},lu.apply(null,arguments)}function cu(){return cu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},cu.apply(null,arguments)}const uu={IconFileAudio:t=>e.createElement(Dc,Rc({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("g",{fill:"none"},e.createElement("path",{fill:"#9f3fed",d:"M9 3h9.172a2 2 0 011.414.586l5.83 5.828A2 2 0 0126 10.83V26a3 3 0 01-3 3H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),e.createElement("path",{fill:_c,fillOpacity:.5,d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),e.createElement("path",{fill:_c,d:"M18.75 17h-5.5a.25.25 0 00-.25.25v4.25a1.5 1.5 0 11-1.5-1.5.9.9 0 01.5.1v-6.35a.75.75 0 01.75-.75h6.5a.75.75 0 01.75.75v7.75a1.5 1.5 0 11-1.5-1.5.9.9 0 01.5.1v-2.85a.25.25 0 00-.25-.25zm-5.5-1h5.5a.25.25 0 00.25-.25V14.5a.5.5 0 00-.5-.5h-5a.5.5 0 00-.5.5v1.25c0 .138.112.25.25.25z"}))),IconFileBoxCanvas:t=>e.createElement(Dc,Fc({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("path",{d:"M9 3h9.585a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26a3 3 0 01-3 3H9a3 3 0 01-3-3V6a3 3 0 013-3z",fill:"#f1811a"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15 15.5a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0zm3.729 4.521c.125-.016.44-.059.912.059l.09.022c.674.164 2.394.583 4.48 2.218.196.167.697.602.78.675.038.034.214.211.411.41.24.242.51.515.6.598V26a65.511 65.511 0 01-1.164-1.172c-.521-.541-.876-.87-1.345-1.3-.469-.43-1.733-1.361-2.488-1.675-.756-.313-1.08-.444-1.398-.49l.007.021a1.28 1.28 0 00.068.172c.016.034.028.06.039.104l.238.524.031.067.009.02.006.012.01.026.183.422c.266.613.465 1.108.594 1.473.177.502.27.925.153 1.285-.116.36-.398.508-.754.508-.537 0-1.303-.421-1.543-.567l-.086-.052a7.211 7.211 0 01-.621-.413c-.327-.234-.444-.362-.53-.455a2.335 2.335 0 00-.045-.049c-.094-.097-.319-.333-.359-.657-.023-.183.001-.398.107-.55.062-.088.16-.215.44-.25a.649.649 0 01.436.133c.051.036.151.137.27.255a6.17 6.17 0 00.608.555c.203.166.445.364.603.425-.032-.072-.09-.195-.147-.318v-.001a18.603 18.603 0 01-.137-.297 11.247 11.247 0 00-.194-.41c-.333-.684-.663-1.381-.807-1.814l-.024-.073c-.13-.387-.205-.612-.129-.884.052-.185.111-.32.337-.438.09-.047.23-.098.348-.113l.01-.002zm.71-6.778l2.483 3.974a.511.511 0 01-.44.783h-4.966a.515.515 0 01-.44-.783l2.484-3.974a.519.519 0 01.878 0zm-9.44 7.579c0-.454.368-.822.822-.822h3.356c.454 0 .822.368.822.822v3.356a.822.822 0 01-.822.822h-3.356a.822.822 0 01-.822-.822v-3.356z",fill:"#fff"}),e.createElement("path",{opacity:.5,d:"M19.285 3.286l6.421 6.421a1 1 0 01.204.293h-4.911a2 2 0 01-1.995-1.85L19 8V3.09a1 1 0 01.286.196z",fill:"#fff"})),IconFileBoxNote:t=>e.createElement(Dc,Lc({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("path",{fill:Tc,fillRule:"nonzero",d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),e.createElement("path",{fill:_c,fillOpacity:.5,fillRule:"nonzero",d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),e.createElement("path",{fill:"#9725DD",d:"M18.526 14.146l-.92 1.375h-6.92a.685.685 0 01-.686-.688c0-.38.31-.687.687-.687h7.839z"}),e.createElement("path",{fill:Oc,d:"M16.379 17.583l-.92 1.375h-4.762a.69.69 0 01-.697-.687c0-.38.31-.688.697-.688h5.682z"}),e.createElement("path",{fill:"#00C8C0",d:"M14.231 21.02l-.424.637a2.166 2.166 0 00-.229.493l-.031.118-.028.127H10.69a.687.687 0 110-1.374h3.541z"}),e.createElement("path",{fill:"#000",d:"M14.841 21.332l4.64-6.72.053.092c.074.114.235.322.538.541.456.329.797.374.797.374l-4.64 6.72a2.558 2.558 0 01-.461.483l-1.373 1.037c-.146.11-.234.054-.193-.14l.372-1.764c.04-.187.156-.46.267-.623zm6.648-8.163c.373.272.407.704.407.704a3.57 3.57 0 01-.314.607l-.28.417-.09-.016a1.714 1.714 0 01-.632-.282c-.35-.255-.628-.687-.628-.687l.28-.418c.106-.158.284-.397.448-.51l.074-.009c.14-.012.456-.01.735.194z"}))),IconFileCode:t=>e.createElement(Dc,jc({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("g",{fill:"none"},e.createElement("path",{fill:"#E33D55",d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),e.createElement("path",{fill:_c,fillOpacity:.5,d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),e.createElement("path",{fill:_c,d:"M17.553 13.776a.5.5 0 01.894.448l-4 8a.5.5 0 01-.894-.448zm-4.83 1.808a.5.5 0 11.554.832L10.901 18l2.376 1.584a.5.5 0 11-.554.832l-3-2a.5.5 0 010-.832zm6.554 0l3 2a.5.5 0 010 .832l-3 2a.5.5 0 11-.554-.832L21.099 18l-2.376-1.584a.5.5 0 01.554-.832z"}))),IconFileDefault:t=>e.createElement(Dc,Nc({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("g",{fill:"none"},e.createElement("path",{fill:Tc,d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),e.createElement("path",{fill:_c,fillOpacity:.5,d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}))),IconFileDocument:ru,IconFileDwg:t=>e.createElement(Dc,Uc({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("g",{fill:"none"},e.createElement("path",{fill:"#009AED",d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),e.createElement("path",{fill:_c,fillOpacity:.5,d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),e.createElement("path",{fill:_c,d:"M18 18v-2h-2v-4h-1v4h-2v2H9v1h4v2h2v4h1v-4h2v-2h4v-1h-4zm-1 2h-3v-3h3v3z"}))),IconFileExcelSpreadsheet:t=>e.createElement(Dc,Hc({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("g",{fill:"none"},e.createElement("path",{fill:"#107C41",d:"M9 3h9.586c.265 0 .52.105.707.293l6.415 6.414a1 1 0 01.293.707V26A3.002 3.002 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),e.createElement("path",{fill:"#87BDA0",d:"M19.286 3.286l6.422 6.421a.994.994 0 01.203.293H21a2.001 2.001 0 01-1.995-1.85L19 8V3.09c.105.048.202.114.286.196z"}),e.createElement("path",{fill:_c,d:"M20.25 25a.748.748 0 00.75-.75v-10.5a.748.748 0 00-.75-.75H12a.748.748 0 00-.75.75v1.5h-1.5A.748.748 0 009 16v6a.748.748 0 00.75.75h1.5v1.5A.748.748 0 0012 25h8.25zm-4.5-9.75H12v-1.5h3.75v1.5zm4.5 0H16.5v-1.5h3.75v1.5zm0 3H16.5V16h3.75v2.25zm-8.344 3.188h-1.511l1.582-2.45-1.442-2.425h1.518l.756 1.494.82-1.494h1.43l-1.483 2.42 1.518 2.454H13.6l-.838-1.564-.856 1.564zm8.344-.188H16.5V19h3.75v2.25zm0 3H16.5V22h3.75v2.25zm-4.5 0H12v-1.5h3.75v1.5z"}))),IconFileGoogleDocs:t=>e.createElement(Dc,Bc({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("path",{fill:"#4083F7",fillRule:"nonzero",d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),e.createElement("path",{fill:_c,fillOpacity:.5,fillRule:"nonzero",d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),e.createElement("path",{fill:_c,d:"M16 23v1h-6v-1h6zm5-3v1H10v-1h11zm0-3v1H10v-1h11zm0-3v1H10v-1h11z"}))),IconFileGoogleSheets:t=>e.createElement(Dc,zc({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("g",{fill:"none"},e.createElement("path",{fill:"#21A464",d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),e.createElement("path",{fill:_c,fillOpacity:.5,d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),e.createElement("path",{fill:_c,d:"M20.499 14c.277 0 .501.228.501.51v8.98c0 .282-.23.51-.501.51H10.5a.505.505 0 01-.501-.51v-8.98c0-.282.23-.51.501-.51h10zM11 21v2h4v-2.001L11 21zm5 0v2h4v-2h-4zm4-3h-4v2h4v-2zm0-3h-4v2h4v-2zm-5 0h-4v2l4-.001V15zm-4 5l4-.001v-2L11 18v2z"}))),IconFileGoogleSlides:t=>e.createElement(Dc,Vc({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("g",{fill:"none"},e.createElement("path",{fill:"#F7BA00",d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),e.createElement("path",{fill:_c,fillOpacity:.5,d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),e.createElement("path",{fill:_c,d:"M10 14v9c0 .6.4 1 1 1h9c.6 0 1-.4 1-1v-9c0-.6-.4-1-1-1h-9c-.6 0-1 .4-1 1zm10 7h-9v-5h9v5z"}))),IconFileIllustrator:t=>e.createElement(Dc,$c({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("path",{fill:"#051E25",fillRule:"nonzero",d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),e.createElement("path",{fill:_c,fillOpacity:.5,fillRule:"nonzero",d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),e.createElement("path",{fill:"#FF9400",d:"M20.42 15.805c.072 0 .108.027.108.107v6.982c0 .07-.018.106-.107.106h-1.393c-.09 0-.117-.044-.117-.115v-6.973h-.009c0-.071.027-.107.108-.107h1.41zm-5.813-2.557c.063 0 .09.017.108.088l2.857 9.549c.018.07 0 .115-.072.115h-1.49c-.072 0-.117-.018-.135-.08l-.737-2.663h-2.875l-.71 2.655c-.018.07-.045.088-.135.088h-1.32c-.09 0-.109-.027-.09-.133l2.551-8.796c.045-.16.072-.301.09-.735 0-.062.027-.088.072-.088h1.887zm-.917 1.416h-.018c-.188 1.035-.665 2.787-1.042 4.159h2.13c-.252-.982-.845-3.124-1.07-4.16zM19.72 13c.548 0 .916.363.916.903 0 .584-.386.902-.934.902-.521 0-.899-.318-.899-.902 0-.567.404-.903.917-.903z"}))),IconFileImage:t=>e.createElement(Dc,qc({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("path",{fill:"#3FB87F",fillRule:"nonzero",d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),e.createElement("path",{fill:_c,fillOpacity:.5,fillRule:"nonzero",d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),e.createElement("path",{fill:_c,d:"M14.754 18.128l3.102 3.204 1.327-1.625c.158-.193.415-.193.575 0l2.06 2.485c.37.446.159.808-.472.808H10.63c-.633 0-.82-.341-.414-.767a72386.439 72386.439 0 013.9-4.089.444.444 0 01.64-.016zM17.5 14a1.5 1.5 0 110 3 1.5 1.5 0 010-3z"}))),IconFileIndesign:t=>e.createElement(Dc,Gc({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("path",{fill:"#051E25",fillRule:"nonzero",d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),e.createElement("path",{fill:_c,fillOpacity:.5,fillRule:"nonzero",d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),e.createElement("path",{fill:"#FF57A1",d:"M19.866 13c.071 0 .09.027.09.072v8.385c0 .251 0 .565.044.906 0 .063-.018.072-.08.108a5.449 5.449 0 01-2.342.529c-1.975 0-3.387-1.229-3.387-3.73-.01-2.144 1.403-3.813 3.664-3.813.188 0 .295 0 .474.018V13.09c0-.063.044-.09.09-.09h1.447zm-7.364 0c.071 0 .107.027.107.108v9.64c0 .09-.018.117-.116.117h-1.377c-.09 0-.116-.044-.116-.116v-9.632c0-.09.045-.117.116-.117h1.386zm5.3 3.83c-1.154 0-1.958.888-1.958 2.367 0 1.686.822 2.368 1.85 2.368.224 0 .456-.027.635-.108V16.92a1.282 1.282 0 00-.528-.09z"}))),IconFileKeynote:t=>e.createElement(Dc,Wc({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("path",{d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z",fill:"#1A66EF"}),e.createElement("path",{d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z",fill:"#fff",fillOpacity:.5}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.991 16.925l-.697-4.338a.697.697 0 00-.688-.587h-8.212a.697.697 0 00-.688.587l-.697 4.338a.698.698 0 00.688.807h9.606a.698.698 0 00.688-.807zM17.979 24.225h-2.092V18.2h-.774v6.025H13.02c-.31 0-.465.155-.465.387 0 .233.155.388.465.388h4.958c.31 0 .465-.155.465-.387 0-.233-.155-.388-.465-.388z",fill:"#fff"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.5 14.169l-1.047 1.253c.294.186.656.296 1.047.296.391 0 .753-.11 1.047-.296.301-.19.53-.46.648-.774l-1.695-.479z",fill:"#66C155"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.805 14.648a1.365 1.365 0 010-.958l1.695.479-1.695.479z",fill:"#FA9E27"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.453 12.916a1.958 1.958 0 011.047-.296v1.549l-1.047-1.253z",fill:"#AB4287"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.195 13.69a1.584 1.584 0 00-.648-.774 1.957 1.957 0 00-1.047-.296v1.549l1.695.479a1.365 1.365 0 000-.958z",fill:"#61D9FE"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.453 15.422c-.301-.19-.53-.46-.648-.774l1.695-.479-1.047 1.253z",fill:"#FBCE5A"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.805 13.69c.117-.314.347-.584.648-.774l1.047 1.253-1.695-.479z",fill:"#E85A5E"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.311 16.338H11.69c-.248 0-.372.124-.372.31s.124.31.372.31h7.622c.248 0 .372-.124.372-.31s-.124-.31-.372-.31z",fill:"#C7E8FD"})),IconFileNumbers:t=>e.createElement(Dc,Xc({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("path",{d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z",fill:"#18D31D"}),e.createElement("path",{d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z",fill:"#fff",fillOpacity:.5}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 21.529v-.1l.001-.084c.002-.062.006-.123.017-.184a.616.616 0 01.164-.322.584.584 0 01.322-.165c.06-.011.123-.015.184-.017h.084l.1-.001h.47a16.617 16.617 0 01.185.001c.06.002.122.006.183.017a.616.616 0 01.322.165.585.585 0 01.165.322c.01.06.014.122.016.183a3.95 3.95 0 01.001.185v2.003l-.001.084a1.224 1.224 0 01-.016.183.618.618 0 01-.165.323.584.584 0 01-.322.165 1.21 1.21 0 01-.183.016l-.084.001H10.77l-.084-.001a1.207 1.207 0 01-.182-.016.616.616 0 01-.323-.165.587.587 0 01-.165-.323 1.24 1.24 0 01-.016-.183v-.084l-.001-.1v-1.903zM12.928 18.453v-.1l.002-.085c.001-.06.005-.122.016-.183a.62.62 0 01.165-.322.587.587 0 01.322-.166c.06-.01.122-.014.183-.016h.084l.1-.001h.471a16.584 16.584 0 01.184.001c.061.002.123.006.183.017a.616.616 0 01.322.165.588.588 0 01.165.322c.01.06.014.122.016.183l.001.085V23.616a1.237 1.237 0 01-.017.183.618.618 0 01-.165.323.585.585 0 01-.322.165 1.21 1.21 0 01-.183.016 3.93 3.93 0 01-.084.001H13.7l-.084-.001a1.208 1.208 0 01-.183-.016.616.616 0 01-.322-.165.585.585 0 01-.165-.323 1.212 1.212 0 01-.016-.183 3.93 3.93 0 01-.002-.084v-5.08zM15.857 12.873v-.1c0-.028 0-.056.002-.084.001-.062.005-.123.016-.184a.62.62 0 01.165-.322.586.586 0 01.322-.165c.06-.011.122-.015.183-.017h.084l.1-.001h.471a16.584 16.584 0 01.184.001c.06.002.122.006.183.017a.619.619 0 01.322.165.588.588 0 01.165.322c.01.06.014.122.016.184l.001.084V23.532l-.001.084a1.238 1.238 0 01-.016.183.62.62 0 01-.165.323.585.585 0 01-.322.165c-.06.01-.122.014-.183.016a3.93 3.93 0 01-.084.001H16.629l-.084-.001a1.234 1.234 0 01-.183-.016.619.619 0 01-.322-.165.585.585 0 01-.165-.323 1.21 1.21 0 01-.016-.183 3.93 3.93 0 01-.002-.084v-10.66zM18.785 16.02v-.1l.002-.084a1.21 1.21 0 01.016-.183.62.62 0 01.165-.323.587.587 0 01.322-.165c.06-.01.122-.014.183-.016l.084-.001h.571a16.584 16.584 0 01.184.001c.061.002.123.005.183.016a.615.615 0 01.322.165.587.587 0 01.165.323c.011.06.015.122.016.183l.002.085V23.53c0 .029 0 .057-.002.085a1.224 1.224 0 01-.016.183.62.62 0 01-.165.323.585.585 0 01-.322.165c-.06.01-.122.014-.183.016a3.92 3.92 0 01-.084.001H19.557l-.084-.001a1.208 1.208 0 01-.183-.016.617.617 0 01-.322-.165.585.585 0 01-.165-.323 1.213 1.213 0 01-.016-.183 3.94 3.94 0 01-.001-.084V16.02z",fill:"#fff"})),IconFilePages:t=>e.createElement(Dc,Kc({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("path",{d:"M9 3h9.586a1 1 0 01.707.293l6.414 6.414a1 1 0 01.293.707V26a3 3 0 01-3 3H9a3 3 0 01-3-3V6a3 3 0 013-3z",fill:"#FB8517"}),e.createElement("path",{d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z",fill:"#fff",fillOpacity:.5}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.686 24.179H11.52l-1.418.63h11.583c.173 0 .314-.14.314-.314v-.002a.314.314 0 00-.314-.314z",fill:"#FFC78A"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.42 23.653l-.399.683a.158.158 0 00.216.216l.683-.399-.5-.5zM9.653 23.256l.664.664c.049.05.124.06.185.028a7.674 7.674 0 001.863-1.368l3.427-3.427-1.372-1.372-3.427 3.427a7.677 7.677 0 00-1.368 1.863.158.158 0 00.028.185zM16.107 18.838a.158.158 0 00.223 0l.785-.804c4.412-4.412 4.727-5.515 4.333-5.91-.394-.393-1.497-.078-5.909 4.334l-.804.785a.158.158 0 000 .223l1.372 1.372z",fill:"#fff"})),IconFilePDF:t=>e.createElement(Dc,Qc({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("g",{fill:"none"},e.createElement("path",{fill:"#D0021B",d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),e.createElement("path",{fill:_c,fillOpacity:.5,d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),e.createElement("path",{fill:_c,d:"M13.133 16.998c0 .354-.054.66-.162.918a1.745 1.745 0 01-1.044 1.012 2.057 2.057 0 01-.693.122h-.621v2.322H9.2V15h1.98c.228 0 .457.033.688.099a1.655 1.655 0 011.089.945c.118.258.176.576.176.954zm-1.35.027c0-.288-.069-.495-.207-.621a.72.72 0 00-.504-.189h-.459v1.665h.459a.665.665 0 00.504-.22c.138-.148.207-.359.207-.635zm6.854 1.179c0 .48-.052.915-.157 1.305-.106.39-.266.723-.482.999a2.14 2.14 0 01-.824.639c-.333.15-.727.225-1.183.225H14.2V15h1.791c.456 0 .85.075 1.183.225.334.15.608.364.824.643.216.28.376.615.482 1.008.105.394.157.836.157 1.328zm-1.449 0c0-.642-.11-1.126-.328-1.454-.22-.327-.503-.49-.851-.49h-.351v3.852h.351c.348 0 .631-.163.85-.49.22-.328.329-.8.329-1.418zm3.961-1.899v1.296h1.521v1.233h-1.512v2.538H19.7V15h3.105v1.305h-1.656z"}))),IconFilePhotoshop:t=>e.createElement(Dc,Yc({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("path",{fill:"#051E25",fillRule:"nonzero",d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),e.createElement("path",{fill:_c,fillOpacity:.5,fillRule:"nonzero",d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),e.createElement("path",{fill:"#26C9FF",d:"M19.527 15.491c.79 0 1.34.116 1.643.25.074.045.092.116.092.179v1.223c0 .071-.046.116-.138.09-.403-.25-1-.403-1.597-.403-.725 0-.973.358-.973.652 0 .322.166.545 1.139 1.036 1.44.678 1.89 1.33 1.89 2.286 0 1.428-1.12 2.196-2.634 2.196-.798 0-1.487-.16-1.881-.384-.065-.027-.074-.071-.074-.143v-1.312c0-.09.046-.116.11-.072.579.366 1.24.527 1.845.527.725 0 1.028-.295 1.028-.696 0-.322-.211-.607-1.138-1.072-1.303-.607-1.845-1.223-1.845-2.25 0-1.152.927-2.107 2.533-2.107zM12.57 13c2.542 0 3.534 1.357 3.534 3.09 0 2.267-1.69 3.24-3.763 3.24-.35 0-.469-.017-.716-.017v3.428c0 .071-.028.107-.11.107H10.11c-.073 0-.11-.027-.11-.107v-9.59c0-.062.129-.106.202-.106.587-.027 1.46-.045 2.368-.045zm-.055 1.42c-.367 0-.716.018-.881.026v3.447c.21.018.376.018.743.018 1.074 0 2.084-.366 2.084-1.786 0-1.134-.725-1.705-1.946-1.705z"}))),IconFilePowerpointPresentation:t=>e.createElement(Dc,Jc({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("g",{fill:"none"},e.createElement("path",{fill:"#C43E1C",d:"M9 3h9.586c.265 0 .52.105.707.293l6.415 6.414a1 1 0 01.293.707V26A3.002 3.002 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),e.createElement("path",{fill:"#E19E8D",d:"M19.286 3.286l6.422 6.421a.994.994 0 01.203.293H21a2.001 2.001 0 01-1.995-1.85L19 8V3.09c.105.048.202.114.286.196z"}),e.createElement("path",{fill:_c,d:"M16 24a5.947 5.947 0 004.239-1.76 6.07 6.07 0 00.94-1.214c.262-.443.465-.92.607-1.432A5.862 5.862 0 0022 18a5.947 5.947 0 00-1.76-4.239 6.07 6.07 0 00-1.214-.94 5.894 5.894 0 00-1.432-.607A5.862 5.862 0 0016 12c-.457 0-.904.05-1.342.152a6.123 6.123 0 00-1.257.44c-.4.191-.776.427-1.128.706-.351.28-.67.597-.955.952h-.568A.748.748 0 0010 15v6a.748.748 0 00.75.75h.568c.286.355.604.673.955.952.352.28.728.515 1.128.706.4.192.82.338 1.257.44.438.101.885.152 1.342.152zm0-9.75h-3.668A5.186 5.186 0 0116 12.75v1.5zm5.197 3H17.5V15a.73.73 0 00-.219-.527.847.847 0 00-.241-.161.703.703 0 00-.29-.062v-1.447a5.086 5.086 0 011.617.512c.504.26.951.585 1.342.976.39.39.716.838.976 1.342.26.504.43 1.043.512 1.617zm-7.869 3.188h-1.213v-4.875h1.887c.258 0 .495.03.712.093.217.063.402.16.557.29.154.131.275.297.363.498.088.202.132.439.132.712 0 .266-.047.503-.141.712-.094.21-.223.386-.387.53a1.688 1.688 0 01-.577.331c-.22.077-.458.115-.712.115h-.62v1.593zm.527-2.655c.207 0 .369-.043.484-.129.115-.086.173-.24.173-.463 0-.214-.056-.36-.167-.439-.112-.078-.267-.117-.466-.117h-.55v1.148h.526zM16 23.25a5.186 5.186 0 01-3.668-1.5h4.418a.748.748 0 00.75-.75v-3.006h3.75c0 .485-.063.95-.188 1.395a5.251 5.251 0 01-1.353 2.32 5.258 5.258 0 01-2.317 1.353A5.155 5.155 0 0116 23.25z"}))),IconFilePresentation:t=>e.createElement(Dc,Zc({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("g",{fill:"none"},e.createElement("path",{fill:"#F7931D",d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),e.createElement("path",{fill:_c,fillOpacity:.5,d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),e.createElement("path",{fill:_c,d:"M15.643 20.354a.5.5 0 00.707 0l5.003-5a.5.5 0 10-.706-.708l-4.65 4.647-1.647-1.647a.5.5 0 00-.707 0L9.646 21.65a.5.5 0 10.708.707l3.643-3.649 1.646 1.647z"}))),IconFileSpreadsheet:t=>e.createElement(Dc,eu({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("g",{fill:"none"},e.createElement("path",{fill:"#3FB87F",d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),e.createElement("path",{fill:_c,fillOpacity:.5,d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),e.createElement("path",{fill:_c,d:"M22 23.49c0 .282-.229.51-.5.51h-11a.505.505 0 01-.5-.51v-8.98c0-.282.229-.51.5-.51h11c.276 0 .5.228.5.51v8.98zM11 23h2v-2h-2v2zm10-2h-7v2h7v-2zm0-1v-2h-7v2h7zm-10 0h2v-2h-2v2zm10-3v-2h-7v2h7zm-8-2h-2v2h2v-2z"}))),IconFileText:ru,IconFileThreeD:t=>e.createElement(Dc,nu({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("g",{fill:"none"},e.createElement("path",{fill:"#F7931D",d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),e.createElement("path",{fill:_c,fillOpacity:.5,d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),e.createElement("path",{fill:_c,d:"M20 14.068l-3.6-1.85c-.5-.291-1.3-.291-1.8 0l-3.6 1.85c-.6.292-1 .973-1 1.556v4.768c0 .681.4 1.265 1 1.557l3.6 1.849c.496.27 1.234.27 1.8 0l3.6-1.849c.6-.292 1-.973 1-1.557v-4.768c0-.583-.4-1.264-1-1.556zm-8.6 7.103c-.2-.098-.4-.487-.4-.681v-4.768c0-.292.2-.584.4-.681l3.6-1.85c.2-.096.6-.096.9 0l3.6 1.85c.1.061.154.134.2.194l-4.2 1.761v6.12c-.2 0-.282-.05-.4-.097l-3.7-1.848z"}))),IconFileVector:t=>e.createElement(Dc,iu({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("g",{fill:"none"},e.createElement("path",{fill:"#F7931D",d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),e.createElement("path",{fill:_c,fillOpacity:.5,d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),e.createElement("path",{fill:_c,d:"M13.195 17.07l.005.01c.12.312.292.6.504.851l-.424.254c-1.414.847-2.452 2.33-2.715 3.992a1 1 0 11-.999-.078c.289-1.994 1.516-3.763 3.2-4.772l.43-.257zm5.618.003l.429.256c1.687 1.008 2.91 2.77 3.197 4.77a1 1 0 11-1.002.073c-.26-1.664-1.293-3.14-2.708-3.985l-.43-.256.013-.019c.194-.235.354-.5.47-.787l.03-.052zM16 14a2 2 0 011.937 1.5h4.592c.26 0 .471.21.471.47v.06c0 .26-.21.47-.47.47l-4.593.001a2 2 0 01-3.874 0L9.471 16.5a.47.47 0 01-.47-.47v-.06c0-.26.21-.47.47-.47h4.592A2 2 0 0116 14zm0 1a1 1 0 00-1 .98v.039l.007.098A1 1 0 1016 15z"}))),IconFileVideo:t=>e.createElement(Dc,ou({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("path",{fill:"#009AED",fillRule:"nonzero",d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),e.createElement("path",{fill:_c,fillOpacity:.5,fillRule:"nonzero",d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),e.createElement("path",{fill:_c,d:"M19.723 18.973l-5.914 3.957a.543.543 0 01-.809-.473v-7.914a.543.543 0 01.809-.473l5.914 3.957a.543.543 0 010 .946z"}))),IconFileWordDocument:t=>e.createElement(Dc,au({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("g",{fill:"none"},e.createElement("path",{fill:"#185ABD",d:"M9 3h9.586c.265 0 .52.105.707.293l6.415 6.414a1 1 0 01.293.707V26A3.002 3.002 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),e.createElement("path",{fill:"#8BACDE",d:"M19.286 3.286l6.422 6.421a.994.994 0 01.203.293H21a2.001 2.001 0 01-1.995-1.85L19 8V3.09c.105.048.202.114.286.196z"}),e.createElement("path",{fill:_c,d:"M20.25 25a.748.748 0 00.75-.75v-10.5a.748.748 0 00-.75-.75H12a.748.748 0 00-.75.75v1.5h-1.5A.748.748 0 009 16v6a.748.748 0 00.75.75h1.5v1.5A.748.748 0 0012 25h8.25zm0-9.75H12v-1.5h8.25v1.5zm0 3H16.5V16h3.75v2.25zm-8.104 3.188h-1.26l-1.083-4.875h1.207l.55 2.8.61-2.8h1.184l.638 2.783.51-2.784h1.195l-1.078 4.875h-1.242l-.633-2.8-.598 2.8zm8.104-.188H16.5V19h3.75v2.25zm0 3H12v-1.5h3.75a.748.748 0 00.75-.75h3.75v2.25z"}))),IconFileXbd:t=>e.createElement(Dc,su({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("path",{d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z",fill:"#00838D"}),e.createElement("path",{d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z",fill:_c,fillOpacity:.5}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.583 16v5h2.122c.498 0 .913-.137 1.205-.395.294-.259.452-.63.452-1.076v-.007c0-.565-.34-1.026-.84-1.186.372-.18.625-.588.625-1.034v-.007c0-.394-.14-.722-.404-.95-.263-.227-.638-.345-1.09-.345h-2.07zm4.594 0v5h1.872c.697 0 1.255-.228 1.637-.667.38-.438.575-1.071.575-1.861v-.007c0-.767-.197-1.386-.58-1.813-.383-.429-.94-.652-1.632-.652h-1.872zm-2.765.948c.208 0 .358.054.455.14.095.084.15.21.15.38v.007c0 .171-.058.295-.163.38-.108.086-.279.14-.52.14h-.605v-1.047h.683zm.031 1.911c.265 0 .453.058.573.154.117.092.182.232.182.43v.006c0 .205-.064.348-.178.443-.116.098-.297.157-.555.157h-.737v-1.19h.715zm3.879 1.11V17.03h.578c.383 0 .677.132.878.37.203.24.32.602.32 1.08v.007c0 .498-.114.868-.315 1.11-.198.24-.492.37-.883.37h-.578zM9 20.996h1.35l1.033-1.62 1.035 1.62h1.415l-1.656-2.503L13.858 16H12.46l-.996 1.665L10.461 16H9.005l1.62 2.475L9 20.995z",fill:_c})),IconFileXdw:t=>e.createElement(Dc,lu({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("path",{d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z",fill:"#00838D"}),e.createElement("path",{d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z",fill:_c,fillOpacity:.5}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.352 21H8l1.627-2.523L8.005 16h1.457l1.004 1.666.997-1.666h1.4l-1.683 2.495L12.837 21H11.42l-1.036-1.62L9.352 21zm3.918 0v-5h2.035c.75 0 1.354.222 1.771.649.417.427.634 1.046.634 1.816v.007c0 .792-.214 1.427-.629 1.864-.416.438-1.021.664-1.776.664H13.27zm6.01 0l-1.356-5h1.283l.717 3.208.838-3.208h1.024l.854 3.21.71-3.21h1.277l-1.358 5h-1.117l-.88-3.057L20.405 21h-1.125zM14.5 17.031v2.938h.64c.433 0 .757-.133.975-.374.218-.243.342-.61.342-1.107v-.006c0-.476-.127-.837-.348-1.078-.22-.239-.545-.373-.969-.373h-.64z",fill:_c})),IconFileZip:t=>e.createElement(Dc,cu({width:32,height:32,viewBox:"0 0 32 32"},t),e.createElement("g",{fill:"none"},e.createElement("path",{fill:Tc,d:"M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"}),e.createElement("path",{fill:_c,fillOpacity:.5,d:"M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"}),e.createElement("path",{fill:Ac,d:"M10 24h1v1h-1v-1zm0-2h1v1h-1v-1zm0-2h1v1h-1v-1zm0-2h1v1h-1v-1zm0-2h1v1h-1v-1zm0-2h1v1h-1v-1zm0-2h1v1h-1v-1zm0-2h1v1h-1v-1zm0-2h1v1h-1V8zm1 15h1v1h-1v-1zm0-2h1v1h-1v-1zm0-2h1v1h-1v-1zm0-2h1v1h-1v-1zm0-2h1v1h-1v-1zm0-2h1v1h-1v-1zm0-2h1v1h-1v-1zm0-2h1v1h-1V9z"})))},du=e=>e.reduce(((e,t)=>(e[t]=t,e)),{}),hu={IconFileAudio:du(["aac","aif","aifc","aiff","amr","au","flac","m3u","m4a","mid","mp3","ra","wav","wma","wpl"]),IconFileBoxCanvas:du(["boxcanvas"]),IconFileBoxNote:du(["boxnote"]),IconFileCode:du(["as","as3","asm","aspx","c","cpp","bat","c","cc","cmake","cs","css","cxx","db","diff","erb","groovy","h","haml","hh","htm","html","java","js","less","m","make","md","ml","mm","php","pl","plist","properties","py","rb","sass","scala","script","scm","sml","sql","sh","wabba","yaml"]),IconFileDocument:du(["dot","dotx","msg","odt","rtf","wpd","xhtml","xml","xsd","xsl"]),IconFileDwg:du(["dwg","dwgzip"]),IconFileExcelSpreadsheet:du(["xls","xlsx","xlsm","xlsb"]),IconFileGoogleDocs:du(["gdoc"]),IconFileGoogleSheets:du(["gsheet"]),IconFileGoogleSlides:du(["gslide","gslides"]),IconFileVector:du(["eps"]),IconFileIllustrator:du(["ai"]),IconFileIndesign:du(["idml","indd","indt","inx"]),IconFileKeynote:du(["key"]),IconFileNumbers:du(["numbers"]),IconFilePages:du(["pages"]),IconFileImage:du(["bmp","gif","gdraw","jpeg","jpg","png","ps","svs","svg","tif","tiff","heic","heif"]),IconFilePDF:du(["pdf"]),IconFilePresentation:du(["odp","otp","pot","potx"]),IconFilePowerpointPresentation:du(["ppt","pptx","pptm"]),IconFilePhotoshop:du(["psd"]),IconFileSpreadsheet:du(["csv","ods","tsv","xlt","xltx"]),IconFileText:du(["txt","vi","vim","webdoc"]),IconFileThreeD:du(["3ds","dae","fbx","obj","ply","stl"]),IconFileVideo:du(["3g2","3gp","avi","flv","m2v","m2ts","m4v","mkv","mov","mp4","mpeg","mpg","ogg","mts","qt","wmv"]),IconFileWordDocument:du(["docx","doc","docm"]),IconFileXbd:du(["xbd"]),IconFileXdw:du(["xdw"]),IconFileZip:du(["rar","tgz","zip"])},fu=({dimension:t=32,extension:r="",title:n})=>{const i=uu[((e="")=>Object.keys(hu).filter((t=>!!hu[t][e.toLowerCase()]))[0]||"IconFileDefault")(r)];return e.createElement(i,{height:t,title:n,width:t})},pu={"Google Docs":yc,"Google Docs (beta)":yc,"Google Sheets":Sc,"Google Sheets (beta)":Sc,"Google Slides":Pc,"Google Slides (beta)":Pc},mu=function(e){return pu[e]||fu};function bu(){return bu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},bu.apply(null,arguments)}const gu=({boxToolsName:t="Box Tools",boxToolsInstallUrl:r="https://cloud.box.com/v/installboxtools"})=>e.createElement(on,bu({},Gn.boxToolsInstallMessage,{values:{boxTools:e.createElement("a",{href:"#",onClick:()=>{window.open(r)},rel:"noopener noreferrer"},t)}})),yu=e=>mi()(e,"disabledReasons.0.type")===gu,vu=({integration:t,onClick:r})=>{const{displayName:n,displayDescription:i,isDisabled:o,extension:a,disabledReasons:s}=t,l=mu(n),c=o?function(t=[]){let r;const n=t[0],i=e.createElement(on,Gn.errorOpenWithDescription);switch(n){case"blocked_by_shield_access_policy":r=e.createElement(on,Gn.boxEditErrorBlockedByPolicy);break;case"collaborators_hidden":r=i;break;default:r=t[0]||i}return r}(s):i,u=et()({"bcow-box-tools-uninstalled":yu(t)});return e.createElement(pc,{className:u,isDisabled:o,onClick:()=>r(t)},e.createElement(l,{dimension:30,extension:a,height:30,width:30}),e.createElement("span",null,e.createElement("p",{className:"bcow-menu-item-title"},n),e.createElement("p",{className:"bcow-menu-item-description"},c)))},wu=({className:t="",color:r="#000",height:n=6,title:i,width:o=10})=>e.createElement(Yn,{className:`icon-caret-down ${t}`,height:n,title:i,viewBox:"0 0 10 6",width:o},e.createElement("path",{className:"fill-color",d:"M0 .5l5 5 5-5H0z",fill:r,fillRule:"evenodd"})),Eu=({children:t})=>e.createElement("span",{className:"menu-toggle"},t,e.createElement(wu,{className:"toggle-arrow",width:7})),Su=({className:t="",color:r=Ac,height:n=16,title:i,width:o=16})=>e.createElement(Yn,{className:`icon-open-with ${t}`,height:n,title:i,viewBox:"0 0 16 16",width:o},e.createElement("path",{className:"fill-color",fill:r,fillRule:"evenodd",d:"M12 2a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2zm0 1H4a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1zm-1 2v6h-1V6.71l-4.65 4.64-.7-.7L9.29 6H5V5h6z"})),Cu=["children","className","icon","isDisabled","isLoading","isSelected","setRef","size","type","showRadar"];function ku(){return ku=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ku.apply(null,arguments)}function xu(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let Pu=function(e){return e.BUTTON="button",e.RESET="reset",e.SUBMIT="submit",e}({});class _u extends e.Component{constructor(...e){super(...e),xu(this,"btnElement",null),xu(this,"handleClick",(e=>{const{isDisabled:t,onClick:r}=this.props;if(t||this.btnElement&&this.btnElement.classList.contains("is-disabled"))return e.preventDefault(),void e.stopPropagation();r&&r(e)}))}render(){const t=this.props,{children:r,className:n,icon:i,isDisabled:o,isLoading:a,isSelected:s,setRef:l,size:c,type:u,showRadar:d}=t,h=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(t,Cu),f=Xn()(h,["onClick"]);o&&(f["aria-disabled"]=!0);const p=et()("btn",{"is-disabled":o,"is-loading":a,"is-selected":s,"bdl-is-disabled":o,"bdl-btn--large":"large"===c,"bdl-has-icon":!!i},n);let m=e.createElement("button",ku({ref:e=>{this.btnElement=e,l&&l(e)},className:p,onClick:this.handleClick,type:u},f),r?e.createElement("span",{className:"btn-content"},r):null,i?e.createElement("span",{className:"bdl-btn-icon"},e.cloneElement(i,{width:i&&r?16:20,height:i&&r?16:20})):null,a&&e.createElement(Vl,{className:"btn-loading-indicator"}));return d&&(m=e.createElement(dc,null,m)),m}}xu(_u,"defaultProps",{className:"",isLoading:!1,showRadar:!1,type:Pu.SUBMIT});const Ou=_u;var Au=function(e){return e.TOP_LEFT="top left",e.TOP_CENTER="top center",e.TOP_RIGHT="top right",e.MIDDLE_LEFT="middle left",e.MIDDLE_CENTER="middle center",e.MIDDLE_RIGHT="middle right",e.BOTTOM_LEFT="bottom left",e.BOTTOM_CENTER="bottom center",e.BOTTOM_RIGHT="bottom right",e}(Au||{});const Tu=Au;function Iu(){return Iu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Iu.apply(null,arguments)}const Mu=t=>e.createElement(Dc,Iu({width:16,height:16,viewBox:"0 0 16 16"},t),e.createElement("path",{fill:"#909090",fillRule:"evenodd",d:"M8 6.586l4.182-4.182a.5.5 0 01.707 0l.707.707a.5.5 0 010 .707L9.414 8l4.182 4.182a.5.5 0 010 .707l-.707.707a.5.5 0 01-.707 0L8 9.414l-4.182 4.182a.5.5 0 01-.707 0l-.707-.707a.5.5 0 010-.707L6.586 8 2.404 3.818a.5.5 0 010-.707l.707-.707a.5.5 0 01.707 0L8 6.586z"})),Du=["children","className","getDOMRef","isDisabled","type"];function Ru(){return Ru=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ru.apply(null,arguments)}const Fu=t=>{let{children:r,className:n="",getDOMRef:i=it(),isDisabled:o=!1,type:a=Pu.SUBMIT}=t,s=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(t,Du);const l={};return o&&(l["aria-disabled"]=!0,l.onClick=e=>{e.preventDefault(),e.stopPropagation()}),e.createElement("button",Ru({className:`btn-plain ${n}`,ref:i,type:a},s,l),r)},Lu={id:"boxui.core.close",defaultMessage:"Close"},ju=function(t,r){var n,i={},o=i.intlPropName,a=void 0===o?"intl":o,s=i.forwardRef,l=void 0!==s&&s,c=i.enforceContext,u=void 0===c||c,d=function(r){return e.createElement(Yr,null,(function(n){var i;u&&Wr(n);var o=((i={})[a]=n,i);return e.createElement(t,st({},r,o,{ref:l?r.forwardedRef:null}))}))};return d.displayName="injectIntl(".concat((n=t).displayName||n.name||"Component",")"),d.WrappedComponent=t,l?pt()(e.forwardRef((function(t,r){return e.createElement(d,st({},t,{forwardedRef:r}))})),t):pt()(d,t)}((({intl:t,onClick:r})=>e.createElement(Fu,{"aria-label":t.formatMessage(Lu),className:"tooltip-close-button",onClick:r},e.createElement(Mu,{className:"bdl-Tooltip-iconClose",width:14,height:14}))));function Nu(){return Nu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Nu.apply(null,arguments)}function Uu(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let Hu=function(e){return e.CALLOUT="callout",e.DEFAULT="default",e.ERROR="error",e}({}),Bu=function(e){return e.BOTTOM_CENTER="bottom-center",e.BOTTOM_LEFT="bottom-left",e.BOTTOM_RIGHT="bottom-right",e.MIDDLE_LEFT="middle-left",e.MIDDLE_RIGHT="middle-right",e.TOP_CENTER="top-center",e.TOP_LEFT="top-left",e.TOP_RIGHT="top-right",e}({});const zu={[Bu.BOTTOM_CENTER]:{attachment:Tu.TOP_CENTER,targetAttachment:Tu.BOTTOM_CENTER},[Bu.BOTTOM_LEFT]:{attachment:Tu.TOP_RIGHT,targetAttachment:Tu.BOTTOM_RIGHT},[Bu.BOTTOM_RIGHT]:{attachment:Tu.TOP_LEFT,targetAttachment:Tu.BOTTOM_LEFT},[Bu.MIDDLE_LEFT]:{attachment:Tu.MIDDLE_RIGHT,targetAttachment:Tu.MIDDLE_LEFT},[Bu.MIDDLE_RIGHT]:{attachment:Tu.MIDDLE_LEFT,targetAttachment:Tu.MIDDLE_RIGHT},[Bu.TOP_CENTER]:{attachment:Tu.BOTTOM_CENTER,targetAttachment:Tu.TOP_CENTER},[Bu.TOP_LEFT]:{attachment:Tu.BOTTOM_RIGHT,targetAttachment:Tu.TOP_RIGHT},[Bu.TOP_RIGHT]:{attachment:Tu.BOTTOM_LEFT,targetAttachment:Tu.TOP_LEFT}};class Vu extends e.Component{constructor(t){super(t),Uu(this,"tooltipID",rt()("tooltip")),Uu(this,"tetherRef",e.createRef()),Uu(this,"position",(()=>{this.tetherRef.current&&this.isShown()&&this.tetherRef.current.position()})),Uu(this,"closeTooltip",(()=>{const{onDismiss:e}=this.props;this.setState({wasClosedByUser:!0}),e&&e()})),Uu(this,"fireChildEvent",((e,t)=>{const{children:r}=this.props,n=r.props[e];n&&n(t)})),Uu(this,"handleTooltipEvent",(e=>{e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()})),Uu(this,"handleMouseEnter",(e=>{this.setState({isShown:!0}),this.fireChildEvent("onMouseEnter",e)})),Uu(this,"handleMouseLeave",(e=>{this.setState({isShown:!1}),this.fireChildEvent("onMouseLeave",e)})),Uu(this,"handleFocus",(e=>{this.setState({isShown:!0}),this.fireChildEvent("onFocus",e)})),Uu(this,"handleBlur",(e=>{this.setState({isShown:!1}),this.fireChildEvent("onBlur",e)})),Uu(this,"isControlled",(()=>{const{isShown:e}=this.props;return void 0!==e})),Uu(this,"handleKeyDown",(e=>{"Escape"===e.key&&(e.stopPropagation(),this.setState({isShown:!1})),this.fireChildEvent("onKeyDown",e)})),Uu(this,"isShown",(()=>{const{isShown:e}=this.props;return(this.isControlled()?e:this.state.isShown)&&!this.state.wasClosedByUser&&this.state.hasRendered})),this.state={isShown:!!t.isShown,hasRendered:!1,wasClosedByUser:!1}}componentDidMount(){this.setState({hasRendered:!0})}componentDidUpdate(e,t){this.isControlled()?!e.isShown&&this.props.isShown&&this.setState({wasClosedByUser:!1}):(!t.isShown&&this.state.isShown&&document.addEventListener("keydown",this.handleKeyDown,!0),t.isShown&&!this.state.isShown&&document.removeEventListener("keydown",this.handleKeyDown,!0))}componentWillUnmount(){document.removeEventListener("keydown",this.handleKeyDown,!0)}render(){const{ariaHidden:t,bodyElement:r,children:n,className:i,constrainToScrollParent:o,constrainToWindow:a,isDisabled:s,isTabbable:l=!0,offset:c,position:u=Bu.TOP_CENTER,showCloseButton:d,stopBubble:h,tetherElementClassName:f,text:p,theme:m}=this.props,b=mi()(n,"props.aria-label"),g=!!b&&b===p;if(s)return e.Children.only(n);const y=this.isControlled(),v=this.isShown(),w=d&&y,E="string"==typeof u?zu[u]:u,S=[],C={};o&&S.push({to:"scrollParent",attachment:"together"}),a&&S.push({to:"window",attachment:"together"}),v&&!t&&(g&&void 0!==b||(C["aria-describedby"]=this.tooltipID),m===Hu.ERROR&&(C["aria-errormessage"]=this.tooltipID)),y||(C.onBlur=this.handleBlur,C.onFocus=this.handleFocus,C.onMouseEnter=this.handleMouseEnter,C.onMouseLeave=this.handleMouseLeave,l&&(C.tabIndex="0"));const k=r instanceof HTMLElement?r:document.body,x=et()("tooltip","bdl-Tooltip",i,{"is-callout":m===Hu.CALLOUT,"is-error":m===Hu.ERROR,"with-close-button":w}),P={attachment:E.attachment,bodyElement:k,classPrefix:"tooltip",constraints:S,enabled:v,targetAttachment:E.targetAttachment};f&&(P.className=f),c&&(P.offset=c);const _=e.createElement(e.Fragment,null,p,w&&e.createElement(ju,{onClick:this.closeTooltip})),O=h?e.createElement("div",{className:x,id:this.tooltipID,onClick:this.handleTooltipEvent,onContextMenu:this.handleTooltipEvent,onKeyPress:this.handleTooltipEvent,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,role:"presentation"},e.createElement("div",{role:m===Hu.ERROR?void 0:"tooltip","aria-live":"polite","aria-hidden":t||g,"data-testid":"bdl-Tooltip"},_)):e.createElement("div",{"aria-live":"polite","aria-hidden":t||g,className:x,"data-testid":"bdl-Tooltip",id:this.tooltipID,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,role:m===Hu.ERROR?void 0:"tooltip"},_);return e.createElement(Gl.A,Nu({ref:this.tetherRef},P),e.cloneElement(e.Children.only(n),C),v&&O)}}Uu(Vu,"defaultProps",{constrainToScrollParent:!1,constrainToWindow:!0,isDisabled:!1,position:Bu.TOP_CENTER,theme:Hu.DEFAULT});const $u=Vu,qu=["children","isDisabled","text"];function Gu(){return Gu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Gu.apply(null,arguments)}const Wu=t=>{let{children:r,isDisabled:n,text:i}=t,o=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(t,qu);return n||!i?r:e.createElement($u,Gu({text:i},o),r)},Xu=({children:t})=>e.createElement(e.Fragment,null,t,e.createElement("span",{className:"bcow-btn-header-text"},e.createElement(on,Gn.open)));function Ku(){return Ku=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ku.apply(null,arguments)}const Qu=t=>e.createElement(Wu,{position:"middle-left",text:e.createElement(on,Gn.defaultOpenWithDescription)},e.createElement(Ou,Ku({"data-testid":"multipleintegrationsbutton"},t),e.createElement(Eu,null,e.createElement(Xu,null,e.createElement(Su,{className:de,dimension:Ve,height:Ve,width:Ve}))))),Yu="right",Ju=({dropdownAlignment:t=Yu,integrations:r,onClick:n})=>e.createElement(Kl,{isRightAligned:t===Yu},e.createElement(Qu,null),e.createElement(ic,{className:"bcow-menu"},r.map((t=>e.createElement(vu,{key:t.appIntegrationId,integration:t,onClick:n})))));function Zu(){return Zu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Zu.apply(null,arguments)}const ed=(t,r,n,i=[])=>{if(r)return null;let o=e.createElement(on,Gn.emptyOpenWithDescription);return i.length>0?[o]=i:n?o=e.createElement(on,Gn.errorOpenWithDescription):t&&(o=t),o},td=({error:t,onClick:r=it(),displayIntegration:n,isLoading:i})=>{const{displayName:o,isDisabled:a,extension:s,disabledReasons:l,displayDescription:c}=n||{},u=!!a||!o,d=o?mu(o):Su,h=yu(n)?{isShown:!0,showCloseButton:!0}:{};return e.createElement(Wu,Zu({className:"bcow-tooltip",position:"bottom-center",text:ed(c,i,t,l)},h),e.createElement(Ou,{"data-testid":"singleintegrationbutton",isDisabled:u,onClick:()=>n?r(n):it()},e.createElement(Xu,null,e.createElement(d,{className:de,dimension:Ve,extension:s,height:Ve,width:Ve}))))};class rd extends e.PureComponent{constructor(t){super(t),this.ref=e.createRef()}componentDidMount(){const{onSubmit:e}=this.props;this.ref.current.submit(),e()}render(){const{executePostData:{url:t,params:r},id:n,windowName:i}=this.props;return e.createElement("form",{ref:this.ref,action:t,id:`bcow-execute-form-${n}`,method:Re,rel:"noreferrer noopener",target:i||"_blank"},r&&r.map((({key:t,value:r})=>e.createElement("input",{key:t,name:t,type:"hidden",value:r}))))}}const nd=rd;function id(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function od(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?id(Object(r),!0).forEach((function(t){ad(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):id(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ad(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const sd="boxToolsInstallErrorMessage",ld="executeIntegrationOpenWithErrorHeader";class cd extends e.PureComponent{constructor(t){super(t),ad(this,"initialState",{isDropdownOpen:!1,integrations:null,isLoading:!0,fetchError:null,executePostData:null,shouldRenderErrorIntegrationPortal:!1,shouldRenderLoadingIntegrationPortal:!1}),ad(this,"fetchOpenWithSuccessHandler",(async t=>{const{boxToolsName:r,boxToolsInstallUrl:n}=this.props,i=t.find((({appIntegrationId:e})=>this.isBoxEditIntegration(e)));if(i&&!i.isDisabled)try{const{extension:e}=await this.getIntegrationFileExtension();i.extension=e,await this.isBoxEditAvailable(),await this.canOpenExtensionWithBoxEdit(i)}catch(t){const o=Gn[t.message]||Gn[ld];let a=e.createElement(on,o);t.message===sd&&(a=e.createElement(gu,{boxToolsInstallUrl:n,boxToolsName:r})),i.disabledReasons.push(a),i.isDisabled=!0}this.setState({integrations:t,isLoading:!1})})),ad(this,"getIntegrationFileExtension",(()=>{const{fileId:e}=this.props;return new Promise(((t,r)=>{this.api.getFileAPI().getFileExtension(e,t,(()=>r(new Error(ld))))}))})),ad(this,"isBoxEditAvailable",(()=>this.api.getBoxEditAPI().checkBoxEditAvailability().catch((()=>{throw new Error(sd)})))),ad(this,"canOpenExtensionWithBoxEdit",(({extension:e=""})=>this.api.getBoxEditAPI().getAppForExtension(e).catch((()=>{throw new Error("boxToolsBlacklistedError")})))),ad(this,"fetchErrorHandler",((e,t)=>{this.props.onError(e,t,{error:e}),this.setState({fetchError:e,isLoading:!1})})),ad(this,"onIntegrationClick",(({appIntegrationId:e,displayName:t})=>{const{fileId:r}=this.props,n=this.isBoxEditIntegration(e);if(this.api.getAppIntegrationsAPI(!1).execute(e,r,this.executeIntegrationSuccessHandler.bind(this,e),n?this.executeBoxEditErrorHandler:this.executeIntegrationErrorHandler),n)return;const i=`left=${window.screenX},top=${window.screenY},height=${window.outerHeight},width=${window.innerWidth},toolbar=0`;this.integrationWindow=this.window.open("",`${rt()(e)}`,i),this.integrationWindow.document.title=t,this.integrationWindow.onunload=this.cleanupIntegrationWindow,this.setState({shouldRenderLoadingIntegrationPortal:!0,shouldRenderErrorIntegrationPortal:!1})})),ad(this,"cleanupIntegrationWindow",(()=>{this.setState({shouldRenderLoadingIntegrationPortal:!1,shouldRenderErrorIntegrationPortal:!1})})),ad(this,"executeIntegrationSuccessHandler",((e,t)=>{this.isBoxEditIntegration(e)?this.executeBoxEditSuccessHandler(e,t):this.executeOnlineIntegrationSuccessHandler(t),this.onExecute(e)})),ad(this,"executeOnlineIntegrationSuccessHandler",(e=>{const{method:t,url:r}=e;switch(t){case Re:this.setState({executePostData:e});break;case De:if(!this.integrationWindow)return;this.integrationWindow.location=r,this.integrationWindow.opener=null;break;default:this.executeIntegrationErrorHandler(Error("Integration invocation using this HTTP method type is not supported"),be)}this.integrationWindow=null})),ad(this,"executeBoxEditSuccessHandler",((e,{url:t})=>{const{fileId:r,token:n,onError:i}=this.props,o=an.parse(t).auth_code,a=this.isBoxEditSFCIntegration(e);this.api.getBoxEditAPI().openFile(r,{data:{auth_code:o,token:n,token_scope:a?d:u}}).catch((e=>{i(e,be,{error:e})}))})),ad(this,"onExecuteFormSubmit",(()=>{this.setState({executePostData:null})})),ad(this,"executeIntegrationErrorHandler",((e,t)=>{this.props.onError(e,t,{error:e}),console.error(e),this.setState({shouldRenderLoadingIntegrationPortal:!1,shouldRenderErrorIntegrationPortal:!0})})),ad(this,"executeBoxEditErrorHandler",(e=>{this.props.onError(e),console.error(e)}));const{token:r,apiHost:n,clientName:i,language:o,requestInterceptor:a,responseInterceptor:s}=t;this.id=rt()("bcow_"),this.api=new Bl({apiHost:n,clientName:i,language:o,requestInterceptor:a,responseInterceptor:s,token:r}),this.state=od({},this.initialState)}clearCache(){this.api.destroy(!0)}componentWillUnmount(){this.api.destroy(!1)}componentDidMount(){const{fileId:e}=this.props;e&&(this.window=window,this.fetchOpenWithData())}componentDidUpdate(e){const{fileId:t}=this.props,{fileId:r}=e;t&&t!==r&&(this.setState(od({},this.initialState)),this.fetchOpenWithData())}isBoxEditIntegration(e){return e===Be||this.isBoxEditSFCIntegration(e)}isBoxEditSFCIntegration(e){return e===ze}fetchOpenWithData(){const{fileId:e}=this.props;this.api.getOpenWithAPI(!1).getOpenWithIntegrations(e,this.fetchOpenWithSuccessHandler,this.fetchErrorHandler)}onExecute(e){this.props.onExecute(e),this.setState({shouldRenderLoadingIntegrationPortal:!1})}getDisplayIntegration(){const{integrations:e}=this.state;return Array.isArray(e)&&1===e.length?e[0]:null}render(){const{language:t,messages:r,dropdownAlignment:n}=this.props,{fetchError:i,isLoading:o,integrations:a,executePostData:s,shouldRenderLoadingIntegrationPortal:l,shouldRenderErrorIntegrationPortal:c}=this.state,u=et()("be bcow",this.props.className),d=this.getDisplayIntegration(),h=a?a.length:0;return e.createElement(Hn,{language:t,messages:r},e.createElement("div",{className:u,"data-testid":"bcow-content",id:this.id},h<=1?e.createElement(td,{displayIntegration:d,error:i,isLoading:o,onClick:this.onIntegrationClick}):e.createElement(Ju,{dropdownAlignment:n,integrations:a,onClick:this.onIntegrationClick}),(l||c)&&e.createElement(ql,{hasError:c,integrationWindow:this.integrationWindow}),s&&e.createElement(nd,{executePostData:s,id:this.id,onSubmit:this.onExecuteFormSubmit,windowName:this.integrationWindow&&this.integrationWindow.name})))}}ad(cd,"defaultProps",{apiHost:le,className:"",clientName:"ContentOpenWith",onExecute:it(),onError:it()});const ud=((t,r=ti)=>n=>e.forwardRef(((i,o)=>e.createElement(si,li({errorComponent:r,errorOrigin:t},i),e.createElement(n,{ref:o})))))("open_with",(({error:t})=>e.createElement("div",{className:"be bcow"},e.createElement(td,{error:t,isLoading:!1}))))(cd);function dd(){return dd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},dd.apply(null,arguments)}function hd(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}__webpack_require__.g.Box=__webpack_require__.g.Box||{},__webpack_require__.g.Box.ContentOpenWith=class extends Je{constructor(...e){super(...e),hd(this,"onExecute",(e=>{this.emit("execute",e)})),hd(this,"onError",(e=>{this.emit("error",e)}))}render(){(0,t.render)(e.createElement(ud,dd({componentRef:this.setComponent,fileId:this.id,language:this.language,messages:this.messages,onError:this.onError,onExecute:this.onExecute,onInteraction:this.onInteraction,token:this.token},this.options)),this.container)}}})()})();
|