builder.min.js
515 KB
(()=>{var e={9669:(e,t,n)=>{e.exports=n(1609)},5448:(e,t,n)=>{"use strict";var r=n(4867),o=n(6026),i=n(4372),a=n(5327),s=n(4097),l=n(4109),u=n(7985),c=n(7874),p=n(2648),d=n(644),f=n(205);e.exports=function(e){return new Promise((function(t,n){var h,m=e.data,y=e.headers,g=e.responseType;function v(){e.cancelToken&&e.cancelToken.unsubscribe(h),e.signal&&e.signal.removeEventListener("abort",h)}r.isFormData(m)&&r.isStandardBrowserEnv()&&delete y["Content-Type"];var b=new XMLHttpRequest;if(e.auth){var w=e.auth.username||"",_=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";y.Authorization="Basic "+btoa(w+":"+_)}var E=s(e.baseURL,e.url);function D(){if(b){var r="getAllResponseHeaders"in b?l(b.getAllResponseHeaders()):null,i={data:g&&"text"!==g&&"json"!==g?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:r,config:e,request:b};o((function(e){t(e),v()}),(function(e){n(e),v()}),i),b=null}}if(b.open(e.method.toUpperCase(),a(E,e.params,e.paramsSerializer),!0),b.timeout=e.timeout,"onloadend"in b?b.onloadend=D:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(D)},b.onabort=function(){b&&(n(new p("Request aborted",p.ECONNABORTED,e,b)),b=null)},b.onerror=function(){n(new p("Network Error",p.ERR_NETWORK,e,b,b)),b=null},b.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||c;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new p(t,r.clarifyTimeoutError?p.ETIMEDOUT:p.ECONNABORTED,e,b)),b=null},r.isStandardBrowserEnv()){var x=(e.withCredentials||u(E))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;x&&(y[e.xsrfHeaderName]=x)}"setRequestHeader"in b&&r.forEach(y,(function(e,t){void 0===m&&"content-type"===t.toLowerCase()?delete y[t]:b.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(b.withCredentials=!!e.withCredentials),g&&"json"!==g&&(b.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&b.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&b.upload&&b.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(h=function(e){b&&(n(!e||e&&e.type?new d:e),b.abort(),b=null)},e.cancelToken&&e.cancelToken.subscribe(h),e.signal&&(e.signal.aborted?h():e.signal.addEventListener("abort",h))),m||(m=null);var S=f(E);S&&-1===["http","https","file"].indexOf(S)?n(new p("Unsupported protocol "+S+":",p.ERR_BAD_REQUEST,e)):b.send(m)}))}},1609:(e,t,n)=>{"use strict";var r=n(4867),o=n(1849),i=n(321),a=n(7185);var s=function e(t){var n=new i(t),s=o(i.prototype.request,n);return r.extend(s,i.prototype,n),r.extend(s,n),s.create=function(n){return e(a(t,n))},s}(n(5546));s.Axios=i,s.CanceledError=n(644),s.CancelToken=n(4972),s.isCancel=n(6502),s.VERSION=n(7288).version,s.toFormData=n(7675),s.AxiosError=n(2648),s.Cancel=s.CanceledError,s.all=function(e){return Promise.all(e)},s.spread=n(8713),s.isAxiosError=n(6268),e.exports=s,e.exports.default=s},4972:(e,t,n)=>{"use strict";var r=n(644);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t<r;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,r=new Promise((function(e){n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},o.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},644:(e,t,n)=>{"use strict";var r=n(2648);function o(e){r.call(this,null==e?"canceled":e,r.ERR_CANCELED),this.name="CanceledError"}n(4867).inherits(o,r,{__CANCEL__:!0}),e.exports=o},6502:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},321:(e,t,n)=>{"use strict";var r=n(4867),o=n(5327),i=n(782),a=n(3572),s=n(7185),l=n(4097),u=n(4875),c=u.validators;function p(e){this.defaults=e,this.interceptors={request:new i,response:new i}}p.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&u.assertOptions(n,{silentJSONParsing:c.transitional(c.boolean),forcedJSONParsing:c.transitional(c.boolean),clarifyTimeoutError:c.transitional(c.boolean)},!1);var r=[],o=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var i,l=[];if(this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)})),!o){var p=[a,void 0];for(Array.prototype.unshift.apply(p,r),p=p.concat(l),i=Promise.resolve(t);p.length;)i=i.then(p.shift(),p.shift());return i}for(var d=t;r.length;){var f=r.shift(),h=r.shift();try{d=f(d)}catch(e){h(e);break}}try{i=a(d)}catch(e){return Promise.reject(e)}for(;l.length;)i=i.then(l.shift(),l.shift());return i},p.prototype.getUri=function(e){e=s(this.defaults,e);var t=l(e.baseURL,e.url);return o(t,e.params,e.paramsSerializer)},r.forEach(["delete","get","head","options"],(function(e){p.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(s(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}p.prototype[e]=t(),p.prototype[e+"Form"]=t(!0)})),e.exports=p},2648:(e,t,n)=>{"use strict";var r=n(4867);function o(e,t,n,r,o){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}r.inherits(o,Error,{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}}});var i=o.prototype,a={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){a[e]={value:e}})),Object.defineProperties(o,a),Object.defineProperty(i,"isAxiosError",{value:!0}),o.from=function(e,t,n,a,s,l){var u=Object.create(i);return r.toFlatObject(e,u,(function(e){return e!==Error.prototype})),o.call(u,e.message,t,n,a,s),u.name=e.name,l&&Object.assign(u,l),u},e.exports=o},782:(e,t,n)=>{"use strict";var r=n(4867);function o(){this.handlers=[]}o.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},4097:(e,t,n)=>{"use strict";var r=n(1793),o=n(7303);e.exports=function(e,t){return e&&!r(t)?o(e,t):t}},3572:(e,t,n)=>{"use strict";var r=n(4867),o=n(8527),i=n(6502),a=n(5546),s=n(644);function l(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s}e.exports=function(e){return l(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.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=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(l(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},7185:(e,t,n)=>{"use strict";var r=n(4867);e.exports=function(e,t){t=t||{};var n={};function o(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function i(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(e[n],t[n])}function a(e){if(!r.isUndefined(t[e]))return o(void 0,t[e])}function s(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(void 0,t[n])}function l(n){return n in t?o(e[n],t[n]):n in e?o(void 0,e[n]):void 0}var u={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,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l};return r.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=u[e]||i,o=t(e);r.isUndefined(o)&&t!==l||(n[e]=o)})),n}},6026:(e,t,n)=>{"use strict";var r=n(2648);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(new r("Request failed with status code "+n.status,[r.ERR_BAD_REQUEST,r.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}},8527:(e,t,n)=>{"use strict";var r=n(4867),o=n(5546);e.exports=function(e,t,n){var i=this||o;return r.forEach(n,(function(n){e=n.call(i,e,t)})),e}},5546:(e,t,n)=>{"use strict";var r=n(4867),o=n(6016),i=n(2648),a=n(7874),s=n(7675),l={"Content-Type":"application/x-www-form-urlencoded"};function u(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var c,p={transitional:a,adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(c=n(5448)),c),transformRequest:[function(e,t){if(o(t,"Accept"),o(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e))return e;if(r.isArrayBufferView(e))return e.buffer;if(r.isURLSearchParams(e))return u(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var n,i=r.isObject(e),a=t&&t["Content-Type"];if((n=r.isFileList(e))||i&&"multipart/form-data"===a){var l=this.env&&this.env.FormData;return s(n?{"files[]":e}:e,l&&new l)}return i||"application/json"===a?(u(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(t||JSON.parse)(e),r.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||p.transitional,n=t&&t.silentJSONParsing,o=t&&t.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||o&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(a){if("SyntaxError"===e.name)throw i.from(e,i.ERR_BAD_RESPONSE,this,null,this.response);throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:n(1623)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){p.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){p.headers[e]=r.merge(l)})),e.exports=p},7874:e=>{"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},7288:e=>{e.exports={version:"0.27.2"}},1849:e=>{"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},5327:(e,t,n)=>{"use strict";var r=n(4867);function o(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,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))})))})),i=a.join("&")}if(i){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},7303:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},4372:(e,t,n)=>{"use strict";var r=n(4867);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,i,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(i)&&s.push("domain="+i),!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(){}}},1793:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},6268:(e,t,n)=>{"use strict";var r=n(4867);e.exports=function(e){return r.isObject(e)&&!0===e.isAxiosError}},7985:(e,t,n)=>{"use strict";var r=n(4867);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},6016:(e,t,n)=>{"use strict";var r=n(4867);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},1623:e=>{e.exports=null},4109:(e,t,n)=>{"use strict";var r=n(4867),o=["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,n,i,a={};return e?(r.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},205:e=>{"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},8713:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},7675:(e,t,n)=>{"use strict";var r=n(4867);e.exports=function(e,t){t=t||new FormData;var n=[];function o(e){return null===e?"":r.isDate(e)?e.toISOString():r.isArrayBuffer(e)||r.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}return function e(i,a){if(r.isPlainObject(i)||r.isArray(i)){if(-1!==n.indexOf(i))throw Error("Circular reference detected in "+a);n.push(i),r.forEach(i,(function(n,i){if(!r.isUndefined(n)){var s,l=a?a+"."+i:i;if(n&&!a&&"object"==typeof n)if(r.endsWith(i,"{}"))n=JSON.stringify(n);else if(r.endsWith(i,"[]")&&(s=r.toArray(n)))return void s.forEach((function(e){!r.isUndefined(e)&&t.append(l,o(e))}));e(n,l)}})),n.pop()}else t.append(a,o(i))}(e),t}},4875:(e,t,n)=>{"use strict";var r=n(7288).version,o=n(2648),i={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){i[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var a={};i.transitional=function(e,t,n){function i(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,s){if(!1===e)throw new o(i(r," has been removed"+(t?" in "+t:"")),o.ERR_DEPRECATED);return t&&!a[r]&&(a[r]=!0,console.warn(i(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,s)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw new o("options must be an object",o.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),i=r.length;i-- >0;){var a=r[i],s=t[a];if(s){var l=e[a],u=void 0===l||s(l,a,e);if(!0!==u)throw new o("option "+a+" must be "+u,o.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new o("Unknown option "+a,o.ERR_BAD_OPTION)}},validators:i}},4867:(e,t,n)=>{"use strict";var r,o=n(1849),i=Object.prototype.toString,a=(r=Object.create(null),function(e){var t=i.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())});function s(e){return e=e.toLowerCase(),function(t){return a(t)===e}}function l(e){return Array.isArray(e)}function u(e){return void 0===e}var c=s("ArrayBuffer");function p(e){return null!==e&&"object"==typeof e}function d(e){if("object"!==a(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var f=s("Date"),h=s("File"),m=s("Blob"),y=s("FileList");function g(e){return"[object Function]"===i.call(e)}var v=s("URLSearchParams");function b(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),l(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}var w,_=(w="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return w&&e instanceof w});e.exports={isArray:l,isArrayBuffer:c,isBuffer:function(e){return null!==e&&!u(e)&&null!==e.constructor&&!u(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||i.call(e)===t||g(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&c(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:p,isPlainObject:d,isUndefined:u,isDate:f,isFile:h,isBlob:m,isFunction:g,isStream:function(e){return p(e)&&g(e.pipe)},isURLSearchParams:v,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:b,merge:function e(){var t={};function n(n,r){d(t[r])&&d(n)?t[r]=e(t[r],n):d(n)?t[r]=e({},n):l(n)?t[r]=n.slice():t[r]=n}for(var r=0,o=arguments.length;r<o;r++)b(arguments[r],n);return t},extend:function(e,t,n){return b(t,(function(t,r){e[r]=n&&"function"==typeof t?o(t,n):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},inherits:function(e,t,n,r){e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n){var r,o,i,a={};t=t||{};do{for(o=(r=Object.getOwnPropertyNames(e)).length;o-- >0;)a[i=r[o]]||(t[i]=e[i],a[i]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:a,kindOfTest:s,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n},toArray:function(e){if(!e)return null;var t=e.length;if(u(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:_,isFileList:y}},1924:(e,t,n)=>{"use strict";var r=n(210),o=n(5559),i=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&i(e,".prototype.")>-1?o(n):n}},5559:(e,t,n)=>{"use strict";var r=n(2514),o=n(210),i=o("%Function.prototype.apply%"),a=o("%Function.prototype.call%"),s=o("%Reflect.apply%",!0)||r.call(a,i),l=o("%Object.getOwnPropertyDescriptor%",!0),u=o("%Object.defineProperty%",!0),c=o("%Math.max%");if(u)try{u({},"a",{value:1})}catch(e){u=null}e.exports=function(e){var t=s(r,a,arguments);l&&u&&(l(t,"length").configurable&&u(t,"length",{value:1+c(0,e.length-(arguments.length-1))}));return t};var p=function(){return s(r,i,arguments)};u?u(e.exports,"apply",{value:p}):e.exports.apply=p},4184:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&e.push(a)}}else if("object"===i){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var s in n)r.call(n,s)&&n[s]&&e.push(s)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},7648:e=>{"use strict";var t=Array.prototype.slice,n=Object.prototype.toString;e.exports=function(e){var r=this;if("function"!=typeof r||"[object Function]"!==n.call(r))throw new TypeError("Function.prototype.bind called on incompatible "+r);for(var o,i=t.call(arguments,1),a=Math.max(0,r.length-i.length),s=[],l=0;l<a;l++)s.push("$"+l);if(o=Function("binder","return function ("+s.join(",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof o){var n=r.apply(this,i.concat(t.call(arguments)));return Object(n)===n?n:this}return r.apply(e,i.concat(t.call(arguments)))})),r.prototype){var u=function(){};u.prototype=r.prototype,o.prototype=new u,u.prototype=null}return o}},2514:(e,t,n)=>{"use strict";var r=n(7648);e.exports=Function.prototype.bind||r},210:(e,t,n)=>{"use strict";var r,o=SyntaxError,i=Function,a=TypeError,s=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(e){}},l=Object.getOwnPropertyDescriptor;if(l)try{l({},"")}catch(e){l=null}var u=function(){throw new a},c=l?function(){try{return u}catch(e){try{return l(arguments,"callee").get}catch(e){return u}}}():u,p=n(1405)(),d=Object.getPrototypeOf||function(e){return e.__proto__},f={},h="undefined"==typeof Uint8Array?r:d(Uint8Array),m={"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":p?d([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":f,"%AsyncGenerator%":f,"%AsyncGeneratorFunction%":f,"%AsyncIteratorPrototype%":f,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":f,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":p?d(d([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&p?d((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&p?d((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":p?d(""[Symbol.iterator]()):r,"%Symbol%":p?Symbol:r,"%SyntaxError%":o,"%ThrowTypeError%":c,"%TypedArray%":h,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};try{null.error}catch(e){var y=d(d(e));m["%Error.prototype%"]=y}var g=function e(t){var n;if("%AsyncFunction%"===t)n=s("async function () {}");else if("%GeneratorFunction%"===t)n=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=s("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&(n=d(o.prototype))}return m[t]=n,n},v={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},b=n(2514),w=n(7642),_=b.call(Function.call,Array.prototype.concat),E=b.call(Function.apply,Array.prototype.splice),D=b.call(Function.call,String.prototype.replace),x=b.call(Function.call,String.prototype.slice),S=b.call(Function.call,RegExp.prototype.exec),O=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,I=/\\(\\)?/g,k=function(e,t){var n,r=e;if(w(v,r)&&(r="%"+(n=v[r])[0]+"%"),w(m,r)){var i=m[r];if(i===f&&(i=g(r)),void 0===i&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new o("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===S(/^%?[^%]*%?$/,e))throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=x(e,0,1),n=x(e,-1);if("%"===t&&"%"!==n)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new o("invalid intrinsic syntax, expected opening `%`");var r=[];return D(e,O,(function(e,t,n,o){r[r.length]=n?D(o,I,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",i=k("%"+r+"%",t),s=i.name,u=i.value,c=!1,p=i.alias;p&&(r=p[0],E(n,_([0,1],p)));for(var d=1,f=!0;d<n.length;d+=1){var h=n[d],y=x(h,0,1),g=x(h,-1);if(('"'===y||"'"===y||"`"===y||'"'===g||"'"===g||"`"===g)&&y!==g)throw new o("property names with quotes must have matching quotes");if("constructor"!==h&&f||(c=!0),w(m,s="%"+(r+="."+h)+"%"))u=m[s];else if(null!=u){if(!(h in u)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(l&&d+1>=n.length){var v=l(u,h);u=(f=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:u[h]}else f=w(u,h),u=u[h];f&&!c&&(m[s]=u)}}return u}},1405:(e,t,n)=>{"use strict";var r="undefined"!=typeof Symbol&&Symbol,o=n(5419);e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}},5419:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},7642:(e,t,n)=>{"use strict";var r=n(2514);e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},8679:(e,t,n)=>{"use strict";var r=n(9864),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={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 r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=f(n);o&&o!==h&&e(t,o,r)}var a=c(n);p&&(a=a.concat(p(n)));for(var s=l(t),m=l(n),y=0;y<a.length;++y){var g=a[y];if(!(i[g]||r&&r[g]||m&&m[g]||s&&s[g])){var v=d(n,g);try{u(t,g,v)}catch(e){}}}}return t}},8552:(e,t,n)=>{var r=n(852)(n(5639),"DataView");e.exports=r},1989:(e,t,n)=>{var r=n(1789),o=n(401),i=n(7667),a=n(1327),s=n(1866);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},8407:(e,t,n)=>{var r=n(7040),o=n(4125),i=n(2117),a=n(7529),s=n(4705);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},7071:(e,t,n)=>{var r=n(852)(n(5639),"Map");e.exports=r},3369:(e,t,n)=>{var r=n(4785),o=n(1285),i=n(6e3),a=n(9916),s=n(5265);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},3818:(e,t,n)=>{var r=n(852)(n(5639),"Promise");e.exports=r},8525:(e,t,n)=>{var r=n(852)(n(5639),"Set");e.exports=r},8668:(e,t,n)=>{var r=n(3369),o=n(619),i=n(2385);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},6384:(e,t,n)=>{var r=n(8407),o=n(7465),i=n(3779),a=n(7599),s=n(4758),l=n(4309);function u(e){var t=this.__data__=new r(e);this.size=t.size}u.prototype.clear=o,u.prototype.delete=i,u.prototype.get=a,u.prototype.has=s,u.prototype.set=l,e.exports=u},2705:(e,t,n)=>{var r=n(5639).Symbol;e.exports=r},1149:(e,t,n)=>{var r=n(5639).Uint8Array;e.exports=r},577:(e,t,n)=>{var r=n(852)(n(5639),"WeakMap");e.exports=r},4963:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}},4636:(e,t,n)=>{var r=n(2545),o=n(5694),i=n(1469),a=n(4144),s=n(5776),l=n(6719),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),c=!n&&o(e),p=!n&&!c&&a(e),d=!n&&!c&&!p&&l(e),f=n||c||p||d,h=f?r(e.length,String):[],m=h.length;for(var y in e)!t&&!u.call(e,y)||f&&("length"==y||p&&("offset"==y||"parent"==y)||d&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||s(y,m))||h.push(y);return h}},9932:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},2488:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},2908:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},8470:(e,t,n)=>{var r=n(7813);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},9465:(e,t,n)=>{var r=n(8777);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},8483:(e,t,n)=>{var r=n(5063)();e.exports=r},7816:(e,t,n)=>{var r=n(8483),o=n(3674);e.exports=function(e,t){return e&&r(e,t,o)}},7786:(e,t,n)=>{var r=n(1811),o=n(327);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[o(t[n++])];return n&&n==i?e:void 0}},8866:(e,t,n)=>{var r=n(2488),o=n(1469);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},4239:(e,t,n)=>{var r=n(2705),o=n(9607),i=n(2333),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},13:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},9454:(e,t,n)=>{var r=n(4239),o=n(7005);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},939:(e,t,n)=>{var r=n(2492),o=n(7005);e.exports=function e(t,n,i,a,s){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,i,a,e,s))}},2492:(e,t,n)=>{var r=n(6384),o=n(7114),i=n(8351),a=n(6096),s=n(4160),l=n(1469),u=n(4144),c=n(6719),p="[object Arguments]",d="[object Array]",f="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,m,y,g){var v=l(e),b=l(t),w=v?d:s(e),_=b?d:s(t),E=(w=w==p?f:w)==f,D=(_=_==p?f:_)==f,x=w==_;if(x&&u(e)){if(!u(t))return!1;v=!0,E=!1}if(x&&!E)return g||(g=new r),v||c(e)?o(e,t,n,m,y,g):i(e,t,w,n,m,y,g);if(!(1&n)){var S=E&&h.call(e,"__wrapped__"),O=D&&h.call(t,"__wrapped__");if(S||O){var I=S?e.value():e,k=O?t.value():t;return g||(g=new r),y(I,k,n,m,g)}}return!!x&&(g||(g=new r),a(e,t,n,m,y,g))}},2958:(e,t,n)=>{var r=n(6384),o=n(939);e.exports=function(e,t,n,i){var a=n.length,s=a,l=!i;if(null==e)return!s;for(e=Object(e);a--;){var u=n[a];if(l&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++a<s;){var c=(u=n[a])[0],p=e[c],d=u[1];if(l&&u[2]){if(void 0===p&&!(c in e))return!1}else{var f=new r;if(i)var h=i(p,d,c,e,t,f);if(!(void 0===h?o(d,p,3,i,f):h))return!1}}return!0}},8458:(e,t,n)=>{var r=n(3560),o=n(5346),i=n(3218),a=n(346),s=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,c=l.toString,p=u.hasOwnProperty,d=RegExp("^"+c.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?d:s).test(a(e))}},8749:(e,t,n)=>{var r=n(4239),o=n(1780),i=n(7005),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 i(e)&&o(e.length)&&!!a[r(e)]}},7206:(e,t,n)=>{var r=n(1573),o=n(6432),i=n(6557),a=n(1469),s=n(9601);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?a(e)?o(e[0],e[1]):r(e):s(e)}},280:(e,t,n)=>{var r=n(5726),o=n(6916),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},1573:(e,t,n)=>{var r=n(2958),o=n(1499),i=n(2634);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},6432:(e,t,n)=>{var r=n(939),o=n(7361),i=n(9095),a=n(5403),s=n(9162),l=n(2634),u=n(327);e.exports=function(e,t){return a(e)&&s(t)?l(u(e),t):function(n){var a=o(n,e);return void 0===a&&a===t?i(n,e):r(t,a,3)}}},371:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},9152:(e,t,n)=>{var r=n(7786);e.exports=function(e){return function(t){return r(t,e)}}},2545:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},531:(e,t,n)=>{var r=n(2705),o=n(9932),i=n(1469),a=n(3448),s=r?r.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n}},7518:e=>{e.exports=function(e){return function(t){return e(t)}}},4757:e=>{e.exports=function(e,t){return e.has(t)}},1811:(e,t,n)=>{var r=n(1469),o=n(5403),i=n(5514),a=n(9833);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(e))}},4429:(e,t,n)=>{var r=n(5639)["__core-js_shared__"];e.exports=r},5063:e=>{e.exports=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===n(i[l],l,i))break}return t}}},8777:(e,t,n)=>{var r=n(852),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},7114:(e,t,n)=>{var r=n(8668),o=n(2908),i=n(4757);e.exports=function(e,t,n,a,s,l){var u=1&n,c=e.length,p=t.length;if(c!=p&&!(u&&p>c))return!1;var d=l.get(e),f=l.get(t);if(d&&f)return d==t&&f==e;var h=-1,m=!0,y=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++h<c;){var g=e[h],v=t[h];if(a)var b=u?a(v,g,h,t,e,l):a(g,v,h,e,t,l);if(void 0!==b){if(b)continue;m=!1;break}if(y){if(!o(t,(function(e,t){if(!i(y,t)&&(g===e||s(g,e,n,a,l)))return y.push(t)}))){m=!1;break}}else if(g!==v&&!s(g,v,n,a,l)){m=!1;break}}return l.delete(e),l.delete(t),m}},8351:(e,t,n)=>{var r=n(2705),o=n(1149),i=n(7813),a=n(7114),s=n(8776),l=n(1814),u=r?r.prototype:void 0,c=u?u.valueOf:void 0;e.exports=function(e,t,n,r,u,p,d){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!p(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var f=s;case"[object Set]":var h=1&r;if(f||(f=l),e.size!=t.size&&!h)return!1;var m=d.get(e);if(m)return m==t;r|=2,d.set(e,t);var y=a(f(e),f(t),r,u,p,d);return d.delete(e),y;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},6096:(e,t,n)=>{var r=n(8234),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,a,s){var l=1&n,u=r(e),c=u.length;if(c!=r(t).length&&!l)return!1;for(var p=c;p--;){var d=u[p];if(!(l?d in t:o.call(t,d)))return!1}var f=s.get(e),h=s.get(t);if(f&&h)return f==t&&h==e;var m=!0;s.set(e,t),s.set(t,e);for(var y=l;++p<c;){var g=e[d=u[p]],v=t[d];if(i)var b=l?i(v,g,d,t,e,s):i(g,v,d,e,t,s);if(!(void 0===b?g===v||a(g,v,n,i,s):b)){m=!1;break}y||(y="constructor"==d)}if(m&&!y){var w=e.constructor,_=t.constructor;w==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof _&&_ instanceof _||(m=!1)}return s.delete(e),s.delete(t),m}},1957:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},8234:(e,t,n)=>{var r=n(8866),o=n(9551),i=n(3674);e.exports=function(e){return r(e,i,o)}},5050:(e,t,n)=>{var r=n(7019);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},1499:(e,t,n)=>{var r=n(9162),o=n(3674);e.exports=function(e){for(var t=o(e),n=t.length;n--;){var i=t[n],a=e[i];t[n]=[i,a,r(a)]}return t}},852:(e,t,n)=>{var r=n(8458),o=n(7801);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},9607:(e,t,n)=>{var r=n(2705),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o}},9551:(e,t,n)=>{var r=n(4963),o=n(479),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return i.call(e,t)})))}:o;e.exports=s},4160:(e,t,n)=>{var r=n(8552),o=n(7071),i=n(3818),a=n(8525),s=n(577),l=n(4239),u=n(346),c="[object Map]",p="[object Promise]",d="[object Set]",f="[object WeakMap]",h="[object DataView]",m=u(r),y=u(o),g=u(i),v=u(a),b=u(s),w=l;(r&&w(new r(new ArrayBuffer(1)))!=h||o&&w(new o)!=c||i&&w(i.resolve())!=p||a&&w(new a)!=d||s&&w(new s)!=f)&&(w=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?u(n):"";if(r)switch(r){case m:return h;case y:return c;case g:return p;case v:return d;case b:return f}return t}),e.exports=w},7801:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},222:(e,t,n)=>{var r=n(1811),o=n(5694),i=n(1469),a=n(5776),s=n(1780),l=n(327);e.exports=function(e,t,n){for(var u=-1,c=(t=r(t,e)).length,p=!1;++u<c;){var d=l(t[u]);if(!(p=null!=e&&n(e,d)))break;e=e[d]}return p||++u!=c?p:!!(c=null==e?0:e.length)&&s(c)&&a(d,c)&&(i(e)||o(e))}},1789:(e,t,n)=>{var r=n(4536);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},401:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},7667:(e,t,n)=>{var r=n(4536),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},1327:(e,t,n)=>{var r=n(4536),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},1866:(e,t,n)=>{var r=n(4536);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},5776:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},5403:(e,t,n)=>{var r=n(1469),o=n(3448),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||(a.test(e)||!i.test(e)||null!=t&&e in Object(t))}},7019:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},5346:(e,t,n)=>{var r,o=n(4429),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},5726:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},9162:(e,t,n)=>{var r=n(3218);e.exports=function(e){return e==e&&!r(e)}},7040:e=>{e.exports=function(){this.__data__=[],this.size=0}},4125:(e,t,n)=>{var r=n(8470),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}},2117:(e,t,n)=>{var r=n(8470);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},7529:(e,t,n)=>{var r=n(8470);e.exports=function(e){return r(this.__data__,e)>-1}},4705:(e,t,n)=>{var r=n(8470);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},4785:(e,t,n)=>{var r=n(1989),o=n(8407),i=n(7071);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},1285:(e,t,n)=>{var r=n(5050);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},6e3:(e,t,n)=>{var r=n(5050);e.exports=function(e){return r(this,e).get(e)}},9916:(e,t,n)=>{var r=n(5050);e.exports=function(e){return r(this,e).has(e)}},5265:(e,t,n)=>{var r=n(5050);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},8776:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},2634:e=>{e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},4523:(e,t,n)=>{var r=n(8306);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},4536:(e,t,n)=>{var r=n(852)(Object,"create");e.exports=r},6916:(e,t,n)=>{var r=n(5569)(Object.keys,Object);e.exports=r},1167:(e,t,n)=>{e=n.nmd(e);var r=n(1957),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,s=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},2333:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5569:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},5639:(e,t,n)=>{var r=n(1957),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},619:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},2385:e=>{e.exports=function(e){return this.__data__.has(e)}},1814:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},7465:(e,t,n)=>{var r=n(8407);e.exports=function(){this.__data__=new r,this.size=0}},3779:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},7599:e=>{e.exports=function(e){return this.__data__.get(e)}},4758:e=>{e.exports=function(e){return this.__data__.has(e)}},4309:(e,t,n)=>{var r=n(8407),o=n(7071),i=n(3369);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(e,t),this.size=n.size,this}},5514:(e,t,n)=>{var r=n(4523),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)})),t}));e.exports=a},327:(e,t,n)=>{var r=n(3448);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}},346: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""}},7813:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},7361:(e,t,n)=>{var r=n(7786);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},9095:(e,t,n)=>{var r=n(13),o=n(222);e.exports=function(e,t){return null!=e&&o(e,t,r)}},6557:e=>{e.exports=function(e){return e}},5694:(e,t,n)=>{var r=n(9454),o=n(7005),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},1469:e=>{var t=Array.isArray;e.exports=t},8612:(e,t,n)=>{var r=n(3560),o=n(1780);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},4144:(e,t,n)=>{e=n.nmd(e);var r=n(5639),o=n(5062),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,s=a&&a.exports===i?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||o;e.exports=l},3560:(e,t,n)=>{var r=n(4239),o=n(3218);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1780:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},3218:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},7005:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},3448:(e,t,n)=>{var r=n(4239),o=n(7005);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},6719:(e,t,n)=>{var r=n(8749),o=n(7518),i=n(1167),a=i&&i.isTypedArray,s=a?o(a):r;e.exports=s},3674:(e,t,n)=>{var r=n(4636),o=n(280),i=n(8612);e.exports=function(e){return i(e)?r(e):o(e)}},7523:(e,t,n)=>{var r=n(9465),o=n(7816),i=n(7206);e.exports=function(e,t){var n={};return t=i(t,3),o(e,(function(e,o,i){r(n,t(e,o,i),e)})),n}},8306:(e,t,n)=>{var r=n(3369);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},9601:(e,t,n)=>{var r=n(371),o=n(9152),i=n(5403),a=n(327);e.exports=function(e){return i(e)?r(a(e)):o(e)}},479:e=>{e.exports=function(){return[]}},5062:e=>{e.exports=function(){return!1}},9833:(e,t,n)=>{var r=n(531);e.exports=function(e){return null==e?"":r(e)}},7418:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=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 t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var i,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 u in i=Object(arguments[l]))n.call(i,u)&&(s[u]=i[u]);if(t){a=t(i);for(var c=0;c<a.length;c++)r.call(i,a[c])&&(s[a[c]]=i[a[c]])}}return s}},631:(e,t,n)=>{var r="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=r&&o&&"function"==typeof o.get?o.get:null,a=r&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=s&&l&&"function"==typeof l.get?l.get:null,c=s&&Set.prototype.forEach,p="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,d="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,f="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,m=Object.prototype.toString,y=Function.prototype.toString,g=String.prototype.match,v=String.prototype.slice,b=String.prototype.replace,w=String.prototype.toUpperCase,_=String.prototype.toLowerCase,E=RegExp.prototype.test,D=Array.prototype.concat,x=Array.prototype.join,S=Array.prototype.slice,O=Math.floor,I="function"==typeof BigInt?BigInt.prototype.valueOf:null,k=Object.getOwnPropertySymbols,P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,T="function"==typeof Symbol&&"object"==typeof Symbol.iterator,N="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===T||"symbol")?Symbol.toStringTag:null,C=Object.prototype.propertyIsEnumerable,j=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function A(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||E.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var r=e<0?-O(-e):O(e);if(r!==e){var o=String(r),i=v.call(t,o.length+1);return b.call(o,n,"$&_")+"."+b.call(b.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(t,n,"$&_")}var L=n(4654),R=L.custom,z=U(R)?R:null;function M(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function q(e){return b.call(String(e),/"/g,""")}function F(e){return!("[object Array]"!==W(e)||N&&"object"==typeof e&&N in e)}function B(e){return!("[object RegExp]"!==W(e)||N&&"object"==typeof e&&N in e)}function U(e){if(T)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!P)return!1;try{return P.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,r,o){var s=n||{};if(H(s,"quoteStyle")&&"single"!==s.quoteStyle&&"double"!==s.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(H(s,"maxStringLength")&&("number"==typeof s.maxStringLength?s.maxStringLength<0&&s.maxStringLength!==1/0:null!==s.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var l=!H(s,"customInspect")||s.customInspect;if("boolean"!=typeof l&&"symbol"!==l)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(H(s,"indent")&&null!==s.indent&&"\t"!==s.indent&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(H(s,"numericSeparator")&&"boolean"!=typeof s.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var m=s.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return Q(t,s);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var w=String(t);return m?A(t,w):w}if("bigint"==typeof t){var E=String(t)+"n";return m?A(t,E):E}var O=void 0===s.depth?5:s.depth;if(void 0===r&&(r=0),r>=O&&O>0&&"object"==typeof t)return F(t)?"[Array]":"[Object]";var k=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=x.call(Array(e.indent+1)," ")}return{base:n,prev:x.call(Array(t+1),n)}}(s,r);if(void 0===o)o=[];else if(G(o,t)>=0)return"[Circular]";function R(t,n,i){if(n&&(o=S.call(o)).push(n),i){var a={depth:s.depth};return H(s,"quoteStyle")&&(a.quoteStyle=s.quoteStyle),e(t,a,r+1,o)}return e(t,s,r+1,o)}if("function"==typeof t&&!B(t)){var $=function(e){if(e.name)return e.name;var t=g.call(y.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),V=Z(t,R);return"[Function"+($?": "+$:" (anonymous)")+"]"+(V.length>0?" { "+x.call(V,", ")+" }":"")}if(U(t)){var ee=T?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):P.call(t);return"object"!=typeof t||T?ee:K(ee)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var te="<"+_.call(String(t.nodeName)),ne=t.attributes||[],re=0;re<ne.length;re++)te+=" "+ne[re].name+"="+M(q(ne[re].value),"double",s);return te+=">",t.childNodes&&t.childNodes.length&&(te+="..."),te+="</"+_.call(String(t.nodeName))+">"}if(F(t)){if(0===t.length)return"[]";var oe=Z(t,R);return k&&!function(e){for(var t=0;t<e.length;t++)if(G(e[t],"\n")>=0)return!1;return!0}(oe)?"["+X(oe,k)+"]":"[ "+x.call(oe,", ")+" ]"}if(function(e){return!("[object Error]"!==W(e)||N&&"object"==typeof e&&N in e)}(t)){var ie=Z(t,R);return"cause"in Error.prototype||!("cause"in t)||C.call(t,"cause")?0===ie.length?"["+String(t)+"]":"{ ["+String(t)+"] "+x.call(ie,", ")+" }":"{ ["+String(t)+"] "+x.call(D.call("[cause]: "+R(t.cause),ie),", ")+" }"}if("object"==typeof t&&l){if(z&&"function"==typeof t[z]&&L)return L(t,{depth:O-r});if("symbol"!==l&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{u.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var ae=[];return a&&a.call(t,(function(e,n){ae.push(R(n,t,!0)+" => "+R(e,t))})),Y("Map",i.call(t),ae,k)}if(function(e){if(!u||!e||"object"!=typeof e)return!1;try{u.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var se=[];return c&&c.call(t,(function(e){se.push(R(e,t))})),Y("Set",u.call(t),se,k)}if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e,p);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return J("WeakMap");if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{p.call(e,p)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return J("WeakSet");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{return f.call(e),!0}catch(e){}return!1}(t))return J("WeakRef");if(function(e){return!("[object Number]"!==W(e)||N&&"object"==typeof e&&N in e)}(t))return K(R(Number(t)));if(function(e){if(!e||"object"!=typeof e||!I)return!1;try{return I.call(e),!0}catch(e){}return!1}(t))return K(R(I.call(t)));if(function(e){return!("[object Boolean]"!==W(e)||N&&"object"==typeof e&&N in e)}(t))return K(h.call(t));if(function(e){return!("[object String]"!==W(e)||N&&"object"==typeof e&&N in e)}(t))return K(R(String(t)));if(!function(e){return!("[object Date]"!==W(e)||N&&"object"==typeof e&&N in e)}(t)&&!B(t)){var le=Z(t,R),ue=j?j(t)===Object.prototype:t instanceof Object||t.constructor===Object,ce=t instanceof Object?"":"null prototype",pe=!ue&&N&&Object(t)===t&&N in t?v.call(W(t),8,-1):ce?"Object":"",de=(ue||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(pe||ce?"["+x.call(D.call([],pe||[],ce||[]),": ")+"] ":"");return 0===le.length?de+"{}":k?de+"{"+X(le,k)+"}":de+"{ "+x.call(le,", ")+" }"}return String(t)};var $=Object.prototype.hasOwnProperty||function(e){return e in this};function H(e,t){return $.call(e,t)}function W(e){return m.call(e)}function G(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function Q(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return Q(v.call(e,0,t.maxStringLength),t)+r}return M(b.call(b.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,V),"single",t)}function V(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+w.call(t.toString(16))}function K(e){return"Object("+e+")"}function J(e){return e+" { ? }"}function Y(e,t,n,r){return e+" ("+t+") {"+(r?X(n,r):x.call(n,", "))+"}"}function X(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+x.call(e,","+n)+"\n"+t.prev}function Z(e,t){var n=F(e),r=[];if(n){r.length=e.length;for(var o=0;o<e.length;o++)r[o]=H(e,o)?t(e[o],e):""}var i,a="function"==typeof k?k(e):[];if(T){i={};for(var s=0;s<a.length;s++)i["$"+a[s]]=a[s]}for(var l in e)H(e,l)&&(n&&String(Number(l))===l&&l<e.length||T&&i["$"+l]instanceof Symbol||(E.call(/[^\w$]/,l)?r.push(t(l,e)+": "+t(e[l],e)):r.push(l+": "+t(e[l],e))));if("function"==typeof k)for(var u=0;u<a.length;u++)C.call(e,a[u])&&r.push("["+t(a[u])+"]: "+t(e[a[u]],e));return r}},2703:(e,t,n)=>{"use strict";var r=n(414);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){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 n={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:i,resetWarningCache:o};return n.PropTypes=n,n}},5697:(e,t,n)=>{e.exports=n(2703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},5798:e=>{"use strict";var t=String.prototype.replace,n=/%20/g,r="RFC1738",o="RFC3986";e.exports={default:o,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:r,RFC3986:o}},129:(e,t,n)=>{"use strict";var r=n(8261),o=n(5235),i=n(5798);e.exports={formats:i,parse:o,stringify:r}},5235:(e,t,n)=>{"use strict";var r=n(2769),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},l=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},u=function(e,t,n,r){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(i),u=s?i.slice(0,s.index):i,c=[];if(u){if(!n.plainObjects&&o.call(Object.prototype,u)&&!n.allowPrototypes)return;c.push(u)}for(var p=0;n.depth>0&&null!==(s=a.exec(i))&&p<n.depth;){if(p+=1,!n.plainObjects&&o.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;c.push(s[1])}return s&&c.push("["+i.slice(s.index)+"]"),function(e,t,n,r){for(var o=r?t:l(t,n),i=e.length-1;i>=0;--i){var a,s=e[i];if("[]"===s&&n.parseArrays)a=[].concat(o);else{a=n.plainObjects?Object.create(null):{};var u="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,c=parseInt(u,10);n.parseArrays||""!==u?!isNaN(c)&&s!==u&&String(c)===u&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(a=[])[c]=o:"__proto__"!==u&&(a[u]=o):a={0:o}}o=a}return o}(c,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var c="string"==typeof e?function(e,t){var n,u={},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,p=t.parameterLimit===1/0?void 0:t.parameterLimit,d=c.split(t.delimiter,p),f=-1,h=t.charset;if(t.charsetSentinel)for(n=0;n<d.length;++n)0===d[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===d[n]?h="utf-8":"utf8=%26%2310003%3B"===d[n]&&(h="iso-8859-1"),f=n,n=d.length);for(n=0;n<d.length;++n)if(n!==f){var m,y,g=d[n],v=g.indexOf("]="),b=-1===v?g.indexOf("="):v+1;-1===b?(m=t.decoder(g,a.decoder,h,"key"),y=t.strictNullHandling?null:""):(m=t.decoder(g.slice(0,b),a.decoder,h,"key"),y=r.maybeMap(l(g.slice(b+1),t),(function(e){return t.decoder(e,a.decoder,h,"value")}))),y&&t.interpretNumericEntities&&"iso-8859-1"===h&&(y=s(y)),g.indexOf("[]=")>-1&&(y=i(y)?[y]:y),o.call(u,m)?u[m]=r.combine(u[m],y):u[m]=y}return u}(e,n):e,p=n.plainObjects?Object.create(null):{},d=Object.keys(c),f=0;f<d.length;++f){var h=d[f],m=u(h,c[h],n,"string"==typeof e);p=r.merge(p,m,n)}return!0===n.allowSparse?p:r.compact(p)}},8261:(e,t,n)=>{"use strict";var r=n(7478),o=n(2769),i=n(5798),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,u=Array.prototype.push,c=function(e,t){u.apply(e,l(t)?t:[t])},p=Date.prototype.toISOString,d=i.default,f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return p.call(e)},skipNulls:!1,strictNullHandling:!1},h={},m=function e(t,n,i,a,s,u,p,d,m,y,g,v,b,w,_,E){for(var D,x=t,S=E,O=0,I=!1;void 0!==(S=S.get(h))&&!I;){var k=S.get(t);if(O+=1,void 0!==k){if(k===O)throw new RangeError("Cyclic object value");I=!0}void 0===S.get(h)&&(O=0)}if("function"==typeof d?x=d(n,x):x instanceof Date?x=g(x):"comma"===i&&l(x)&&(x=o.maybeMap(x,(function(e){return e instanceof Date?g(e):e}))),null===x){if(s)return p&&!w?p(n,f.encoder,_,"key",v):n;x=""}if("string"==typeof(D=x)||"number"==typeof D||"boolean"==typeof D||"symbol"==typeof D||"bigint"==typeof D||o.isBuffer(x))return p?[b(w?n:p(n,f.encoder,_,"key",v))+"="+b(p(x,f.encoder,_,"value",v))]:[b(n)+"="+b(String(x))];var P,T=[];if(void 0===x)return T;if("comma"===i&&l(x))w&&p&&(x=o.maybeMap(x,p)),P=[{value:x.length>0?x.join(",")||null:void 0}];else if(l(d))P=d;else{var N=Object.keys(x);P=m?N.sort(m):N}for(var C=a&&l(x)&&1===x.length?n+"[]":n,j=0;j<P.length;++j){var A=P[j],L="object"==typeof A&&void 0!==A.value?A.value:x[A];if(!u||null!==L){var R=l(x)?"function"==typeof i?i(C,A):C:C+(y?"."+A:"["+A+"]");E.set(t,O);var z=r();z.set(h,E),c(T,e(L,R,i,a,s,u,"comma"===i&&w&&l(x)?null:p,d,m,y,g,v,b,w,_,z))}}return T};e.exports=function(e,t){var n,o=e,u=function(e){if(!e)return f;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||f.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=i.default;if(void 0!==e.format){if(!a.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=i.formatters[n],o=f.filter;return("function"==typeof e.filter||l(e.filter))&&(o=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:f.addQueryPrefix,allowDots:void 0===e.allowDots?f.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:f.charsetSentinel,delimiter:void 0===e.delimiter?f.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:f.encode,encoder:"function"==typeof e.encoder?e.encoder:f.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:f.encodeValuesOnly,filter:o,format:n,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:f.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:f.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:f.strictNullHandling}}(t);"function"==typeof u.filter?o=(0,u.filter)("",o):l(u.filter)&&(n=u.filter);var p,d=[];if("object"!=typeof o||null===o)return"";p=t&&t.arrayFormat in s?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var h=s[p];if(t&&"commaRoundTrip"in t&&"boolean"!=typeof t.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var y="comma"===h&&t&&t.commaRoundTrip;n||(n=Object.keys(o)),u.sort&&n.sort(u.sort);for(var g=r(),v=0;v<n.length;++v){var b=n[v];u.skipNulls&&null===o[b]||c(d,m(o[b],b,h,y,u.strictNullHandling,u.skipNulls,u.encode?u.encoder:null,u.filter,u.sort,u.allowDots,u.serializeDate,u.format,u.formatter,u.encodeValuesOnly,u.charset,g))}var w=d.join(u.delimiter),_=!0===u.addQueryPrefix?"?":"";return u.charsetSentinel&&("iso-8859-1"===u.charset?_+="utf8=%26%2310003%3B&":_+="utf8=%E2%9C%93&"),w.length>0?_+w:""}},2769:(e,t,n)=>{"use strict";var r=n(5798),o=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n};e.exports={arrayToObject:s,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var o=t[r],a=o.obj[o.prop],s=Object.keys(a),l=0;l<s.length;++l){var u=s[l],c=a[u];"object"==typeof c&&null!==c&&-1===n.indexOf(c)&&(t.push({obj:a,prop:u}),n.push(c))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],o=0;o<n.length;++o)void 0!==n[o]&&r.push(n[o]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(e){return r}},encode:function(e,t,n,o,i){if(0===e.length)return e;var s=e;if("symbol"==typeof e?s=Symbol.prototype.toString.call(e):"string"!=typeof e&&(s=String(e)),"iso-8859-1"===n)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var l="",u=0;u<s.length;++u){var c=s.charCodeAt(u);45===c||46===c||95===c||126===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||i===r.RFC1738&&(40===c||41===c)?l+=s.charAt(u):c<128?l+=a[c]:c<2048?l+=a[192|c>>6]+a[128|63&c]:c<55296||c>=57344?l+=a[224|c>>12]+a[128|c>>6&63]+a[128|63&c]:(u+=1,c=65536+((1023&c)<<10|1023&s.charCodeAt(u)),l+=a[240|c>>18]+a[128|c>>12&63]+a[128|c>>6&63]+a[128|63&c])}return l},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!=typeof n){if(i(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!o.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var a=t;return i(t)&&!i(n)&&(a=s(t,r)),i(t)&&i(n)?(n.forEach((function(n,i){if(o.call(t,i)){var a=t[i];a&&"object"==typeof a&&n&&"object"==typeof n?t[i]=e(a,n,r):t.push(n)}else t[i]=n})),t):Object.keys(n).reduce((function(t,i){var a=n[i];return o.call(t,i)?t[i]=e(t[i],a,r):t[i]=a,t}),a)}}},1693:(e,t)=>{"use strict";var n=60103,r=60106,o=60107,i=60108,a=60114,s=60109,l=60110,u=60112,c=60113,p=60120,d=60115,f=60116,h=60121,m=60122,y=60117,g=60129,v=60131;if("function"==typeof Symbol&&Symbol.for){var b=Symbol.for;n=b("react.element"),r=b("react.portal"),o=b("react.fragment"),i=b("react.strict_mode"),a=b("react.profiler"),s=b("react.provider"),l=b("react.context"),u=b("react.forward_ref"),c=b("react.suspense"),p=b("react.suspense_list"),d=b("react.memo"),f=b("react.lazy"),h=b("react.block"),m=b("react.server.block"),y=b("react.fundamental"),g=b("react.debug_trace_mode"),v=b("react.legacy_hidden")}function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case a:case i:case c:case p:return e;default:switch(e=e&&e.$$typeof){case l:case u:case f:case d:case s:return e;default:return t}}case r:return t}}}t.isContextConsumer=function(e){return w(e)===l}},6001:(e,t,n)=>{"use strict";e.exports=n(1693)},4448:(e,t,n)=>{"use strict";var r=n(7294),o=n(7418),i=n(3840);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);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."}if(!r)throw Error(a(227));function s(e,t,n,r,o,i,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var l=!1,u=null,c=!1,p=null,d={onError:function(e){l=!0,u=e}};function f(e,t,n,r,o,i,a,c,p){l=!1,u=null,s.apply(d,arguments)}var h=null,m=null,y=null;function g(e,t,n){var r=e.type||"unknown-event";e.currentTarget=y(n),function(e,t,n,r,o,i,s,d,h){if(f.apply(this,arguments),l){if(!l)throw Error(a(198));var m=u;l=!1,u=null,c||(c=!0,p=m)}}(r,t,void 0,e),e.currentTarget=null}var v=null,b={};function w(){if(v)for(var e in b){var t=b[e],n=v.indexOf(e);if(!(-1<n))throw Error(a(96,e));if(!E[n]){if(!t.extractEvents)throw Error(a(97,e));for(var r in E[n]=t,n=t.eventTypes){var o=void 0,i=n[r],s=t,l=r;if(D.hasOwnProperty(l))throw Error(a(99,l));D[l]=i;var u=i.phasedRegistrationNames;if(u){for(o in u)u.hasOwnProperty(o)&&_(u[o],s,l);o=!0}else i.registrationName?(_(i.registrationName,s,l),o=!0):o=!1;if(!o)throw Error(a(98,r,e))}}}}function _(e,t,n){if(x[e])throw Error(a(100,e));x[e]=t,S[e]=t.eventTypes[n].dependencies}var E=[],D={},x={},S={};function O(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];if(!b.hasOwnProperty(t)||b[t]!==r){if(b[t])throw Error(a(102,t));b[t]=r,n=!0}}n&&w()}var I=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),k=null,P=null,T=null;function N(e){if(e=m(e)){if("function"!=typeof k)throw Error(a(280));var t=e.stateNode;t&&(t=h(t),k(e.stateNode,e.type,t))}}function C(e){P?T?T.push(e):T=[e]:P=e}function j(){if(P){var e=P,t=T;if(T=P=null,N(e),t)for(e=0;e<t.length;e++)N(t[e])}}function A(e,t){return e(t)}function L(e,t,n,r,o){return e(t,n,r,o)}function R(){}var z=A,M=!1,q=!1;function F(){null===P&&null===T||(R(),j())}function B(e,t,n){if(q)return e(t,n);q=!0;try{return z(e,t,n)}finally{q=!1,F()}}var U=/^[: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]*$/,$=Object.prototype.hasOwnProperty,H={},W={};function G(e,t,n,r,o,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i}var Q={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){Q[e]=new G(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];Q[t]=new G(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){Q[e]=new G(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){Q[e]=new G(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){Q[e]=new G(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){Q[e]=new G(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){Q[e]=new G(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){Q[e]=new G(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){Q[e]=new G(e,5,!1,e.toLowerCase(),null,!1)}));var V=/[\-:]([a-z])/g;function K(e){return e[1].toUpperCase()}"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(V,K);Q[t]=new G(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(V,K);Q[t]=new G(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(V,K);Q[t]=new G(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){Q[e]=new G(e,1,!1,e.toLowerCase(),null,!1)})),Q.xlinkHref=new G("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){Q[e]=new G(e,1,!1,e.toLowerCase(),null,!0)}));var J=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function Y(e,t,n,r){var o=Q.hasOwnProperty(t)?Q[t]:null;(null!==o?0===o.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.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,n,o,r)&&(n=null),r||null===o?function(e){return!!$.call(W,e)||!$.call(H,e)&&(U.test(e)?W[e]=!0:(H[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}J.hasOwnProperty("ReactCurrentDispatcher")||(J.ReactCurrentDispatcher={current:null}),J.hasOwnProperty("ReactCurrentBatchConfig")||(J.ReactCurrentBatchConfig={suspense:null});var X=/^(.*)[\\\/]/,Z="function"==typeof Symbol&&Symbol.for,ee=Z?Symbol.for("react.element"):60103,te=Z?Symbol.for("react.portal"):60106,ne=Z?Symbol.for("react.fragment"):60107,re=Z?Symbol.for("react.strict_mode"):60108,oe=Z?Symbol.for("react.profiler"):60114,ie=Z?Symbol.for("react.provider"):60109,ae=Z?Symbol.for("react.context"):60110,se=Z?Symbol.for("react.concurrent_mode"):60111,le=Z?Symbol.for("react.forward_ref"):60112,ue=Z?Symbol.for("react.suspense"):60113,ce=Z?Symbol.for("react.suspense_list"):60120,pe=Z?Symbol.for("react.memo"):60115,de=Z?Symbol.for("react.lazy"):60116,fe=Z?Symbol.for("react.block"):60121,he="function"==typeof Symbol&&Symbol.iterator;function me(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=he&&e[he]||e["@@iterator"])?e:null}function ye(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 ne:return"Fragment";case te:return"Portal";case oe:return"Profiler";case re:return"StrictMode";case ue:return"Suspense";case ce:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case ae:return"Context.Consumer";case ie:return"Context.Provider";case le:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case pe:return ye(e.type);case fe:return ye(e.render);case de:if(e=1===e._status?e._result:null)return ye(e)}return null}function ge(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var r=e._debugOwner,o=e._debugSource,i=ye(e.type);n=null,r&&(n=ye(r.type)),r=i,i="",o?i=" (at "+o.fileName.replace(X,"")+":"+o.lineNumber+")":n&&(i=" (created by "+n+")"),n="\n in "+(r||"Unknown")+i}t+=n,e=e.return}while(e);return t}function ve(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function be(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function we(e){e._valueTracker||(e._valueTracker=function(e){var t=be(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function _e(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=be(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Ee(e,t){var n=t.checked;return o({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function De(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=ve(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function xe(e,t){null!=(t=t.checked)&&Y(e,"checked",t,!1)}function Se(e,t){xe(e,t);var n=ve(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?Ie(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ie(e,t.type,ve(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Oe(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Ie(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function ke(e,t){return e=o({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function Pe(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ve(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function Te(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return o({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ne(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:ve(n)}}function Ce(e,t){var n=ve(t.value),r=ve(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function je(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var Ae="http://www.w3.org/1999/xhtml",Le="http://www.w3.org/2000/svg";function Re(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 ze(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Re(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Me,qe,Fe=(qe=function(e,t){if(e.namespaceURI!==Le||"innerHTML"in e)e.innerHTML=t;else{for((Me=Me||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Me.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return qe(e,t)}))}:qe);function Be(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function Ue(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var $e={animationend:Ue("Animation","AnimationEnd"),animationiteration:Ue("Animation","AnimationIteration"),animationstart:Ue("Animation","AnimationStart"),transitionend:Ue("Transition","TransitionEnd")},He={},We={};function Ge(e){if(He[e])return He[e];if(!$e[e])return e;var t,n=$e[e];for(t in n)if(n.hasOwnProperty(t)&&t in We)return He[e]=n[t];return e}I&&(We=document.createElement("div").style,"AnimationEvent"in window||(delete $e.animationend.animation,delete $e.animationiteration.animation,delete $e.animationstart.animation),"TransitionEvent"in window||delete $e.transitionend.transition);var Qe=Ge("animationend"),Ve=Ge("animationiteration"),Ke=Ge("animationstart"),Je=Ge("transitionend"),Ye="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Xe=new("function"==typeof WeakMap?WeakMap:Map);function Ze(e){var t=Xe.get(e);return void 0===t&&(t=new Map,Xe.set(e,t)),t}function et(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function tt(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 nt(e){if(et(e)!==e)throw Error(a(188))}function rt(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=et(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return nt(o),e;if(i===r)return nt(o),t;i=i.sibling}throw Error(a(188))}if(n.return!==r.return)n=o,r=i;else{for(var s=!1,l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s){for(l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function ot(e,t){if(null==t)throw Error(a(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function it(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var at=null;function st(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)g(e,t[r],n[r]);else t&&g(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function lt(e){if(null!==e&&(at=ot(at,e)),e=at,at=null,e){if(it(e,st),at)throw Error(a(95));if(c)throw e=p,c=!1,p=null,e}}function ut(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function ct(e){if(!I)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}var pt=[];function dt(e){e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>pt.length&&pt.push(e)}function ft(e,t,n,r){if(pt.length){var o=pt.pop();return o.topLevelType=e,o.eventSystemFlags=r,o.nativeEvent=t,o.targetInst=n,o}return{topLevelType:e,eventSystemFlags:r,nativeEvent:t,targetInst:n,ancestors:[]}}function ht(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r=n;if(3===r.tag)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=3!==r.tag?null:r.stateNode.containerInfo}if(!r)break;5!==(t=n.tag)&&6!==t||e.ancestors.push(n),n=jn(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var o=ut(e.nativeEvent);r=e.topLevelType;var i=e.nativeEvent,a=e.eventSystemFlags;0===n&&(a|=64);for(var s=null,l=0;l<E.length;l++){var u=E[l];u&&(u=u.extractEvents(r,t,i,o,a))&&(s=ot(s,u))}lt(s)}}function mt(e,t,n){if(!n.has(e)){switch(e){case"scroll":Kt(t,"scroll",!0);break;case"focus":case"blur":Kt(t,"focus",!0),Kt(t,"blur",!0),n.set("blur",null),n.set("focus",null);break;case"cancel":case"close":ct(e)&&Kt(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Ye.indexOf(e)&&Vt(e,t)}n.set(e,null)}}var yt,gt,vt,bt=!1,wt=[],_t=null,Et=null,Dt=null,xt=new Map,St=new Map,Ot=[],It="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),kt="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function Pt(e,t,n,r,o){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|n,nativeEvent:o,container:r}}function Tt(e,t){switch(e){case"focus":case"blur":_t=null;break;case"dragenter":case"dragleave":Et=null;break;case"mouseover":case"mouseout":Dt=null;break;case"pointerover":case"pointerout":xt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":St.delete(t.pointerId)}}function Nt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e=Pt(t,n,r,o,i),null!==t&&(null!==(t=An(t))&>(t)),e):(e.eventSystemFlags|=r,e)}function Ct(e){var t=jn(e.target);if(null!==t){var n=et(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=tt(n)))return e.blockedOn=t,void i.unstable_runWithPriority(e.priority,(function(){vt(n)}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function jt(e){if(null!==e.blockedOn)return!1;var t=Zt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);if(null!==t){var n=An(t);return null!==n&>(n),e.blockedOn=t,!1}return!0}function At(e,t,n){jt(e)&&n.delete(t)}function Lt(){for(bt=!1;0<wt.length;){var e=wt[0];if(null!==e.blockedOn){null!==(e=An(e.blockedOn))&&yt(e);break}var t=Zt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);null!==t?e.blockedOn=t:wt.shift()}null!==_t&&jt(_t)&&(_t=null),null!==Et&&jt(Et)&&(Et=null),null!==Dt&&jt(Dt)&&(Dt=null),xt.forEach(At),St.forEach(At)}function Rt(e,t){e.blockedOn===t&&(e.blockedOn=null,bt||(bt=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Lt)))}function zt(e){function t(t){return Rt(t,e)}if(0<wt.length){Rt(wt[0],e);for(var n=1;n<wt.length;n++){var r=wt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==_t&&Rt(_t,e),null!==Et&&Rt(Et,e),null!==Dt&&Rt(Dt,e),xt.forEach(t),St.forEach(t),n=0;n<Ot.length;n++)(r=Ot[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Ot.length&&null===(n=Ot[0]).blockedOn;)Ct(n),null===n.blockedOn&&Ot.shift()}var Mt={},qt=new Map,Ft=new Map,Bt=["abort","abort",Qe,"animationEnd",Ve,"animationIteration",Ke,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Je,"transitionEnd","waiting","waiting"];function Ut(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],o=e[n+1],i="on"+(o[0].toUpperCase()+o.slice(1));i={phasedRegistrationNames:{bubbled:i,captured:i+"Capture"},dependencies:[r],eventPriority:t},Ft.set(r,t),qt.set(r,i),Mt[o]=i}}Ut("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Ut("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Ut(Bt,2);for(var $t="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Ht=0;Ht<$t.length;Ht++)Ft.set($t[Ht],0);var Wt=i.unstable_UserBlockingPriority,Gt=i.unstable_runWithPriority,Qt=!0;function Vt(e,t){Kt(t,e,!1)}function Kt(e,t,n){var r=Ft.get(t);switch(void 0===r?2:r){case 0:r=Jt.bind(null,t,1,e);break;case 1:r=Yt.bind(null,t,1,e);break;default:r=Xt.bind(null,t,1,e)}n?e.addEventListener(t,r,!0):e.addEventListener(t,r,!1)}function Jt(e,t,n,r){M||R();var o=Xt,i=M;M=!0;try{L(o,e,t,n,r)}finally{(M=i)||F()}}function Yt(e,t,n,r){Gt(Wt,Xt.bind(null,e,t,n,r))}function Xt(e,t,n,r){if(Qt)if(0<wt.length&&-1<It.indexOf(e))e=Pt(null,e,t,n,r),wt.push(e);else{var o=Zt(e,t,n,r);if(null===o)Tt(e,r);else if(-1<It.indexOf(e))e=Pt(o,e,t,n,r),wt.push(e);else if(!function(e,t,n,r,o){switch(t){case"focus":return _t=Nt(_t,e,t,n,r,o),!0;case"dragenter":return Et=Nt(Et,e,t,n,r,o),!0;case"mouseover":return Dt=Nt(Dt,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return xt.set(i,Nt(xt.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,St.set(i,Nt(St.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r)){Tt(e,r),e=ft(e,r,null,t);try{B(ht,e)}finally{dt(e)}}}}function Zt(e,t,n,r){if(null!==(n=jn(n=ut(r)))){var o=et(n);if(null===o)n=null;else{var i=o.tag;if(13===i){if(null!==(n=tt(o)))return n;n=null}else if(3===i){if(o.stateNode.hydrate)return 3===o.tag?o.stateNode.containerInfo:null;n=null}else o!==n&&(n=null)}}e=ft(e,r,n,t);try{B(ht,e)}finally{dt(e)}return null}var en={animationIterationCount:!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},tn=["Webkit","ms","Moz","O"];function nn(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||en.hasOwnProperty(e)&&en[e]?(""+t).trim():t+"px"}function rn(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=nn(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(en).forEach((function(e){tn.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),en[t]=en[e]}))}));var on=o({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 an(e,t){if(t){if(on[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e,""));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62,""))}}function sn(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 ln=Ae;function un(e,t){var n=Ze(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=S[t];for(var r=0;r<t.length;r++)mt(t[r],e,n)}function cn(){}function pn(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 dn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function fn(e,t){var n,r=dn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=dn(r)}}function hn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?hn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function mn(){for(var e=window,t=pn();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=pn((e=t.contentWindow).document)}return t}function yn(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)}var gn="$",vn="/$",bn="$?",wn="$!",_n=null,En=null;function Dn(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function xn(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Sn="function"==typeof setTimeout?setTimeout:void 0,On="function"==typeof clearTimeout?clearTimeout:void 0;function In(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function kn(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if(n===gn||n===wn||n===bn){if(0===t)return e;t--}else n===vn&&t++}e=e.previousSibling}return null}var Pn=Math.random().toString(36).slice(2),Tn="__reactInternalInstance$"+Pn,Nn="__reactEventHandlers$"+Pn,Cn="__reactContainere$"+Pn;function jn(e){var t=e[Tn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Cn]||n[Tn]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=kn(e);null!==e;){if(n=e[Tn])return n;e=kn(e)}return t}n=(e=n).parentNode}return null}function An(e){return!(e=e[Tn]||e[Cn])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Ln(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function Rn(e){return e[Nn]||null}function zn(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function Mn(e,t){var n=e.stateNode;if(!n)return null;var r=h(n);if(!r)return null;n=r[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":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}function qn(e,t,n){(t=Mn(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=ot(n._dispatchListeners,t),n._dispatchInstances=ot(n._dispatchInstances,e))}function Fn(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=zn(t);for(t=n.length;0<t--;)qn(n[t],"captured",e);for(t=0;t<n.length;t++)qn(n[t],"bubbled",e)}}function Bn(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=Mn(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=ot(n._dispatchListeners,t),n._dispatchInstances=ot(n._dispatchInstances,e))}function Un(e){e&&e.dispatchConfig.registrationName&&Bn(e._targetInst,null,e)}function $n(e){it(e,Fn)}var Hn=null,Wn=null,Gn=null;function Qn(){if(Gn)return Gn;var e,t,n=Wn,r=n.length,o="value"in Hn?Hn.value:Hn.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Gn=o.slice(e,1<t?1-t:void 0)}function Vn(){return!0}function Kn(){return!1}function Jn(e,t,n,r){for(var o in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(o)&&((t=e[o])?this[o]=t(n):"target"===o?this.target=r:this[o]=n[o]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?Vn:Kn,this.isPropagationStopped=Kn,this}function Yn(e,t,n,r){if(this.eventPool.length){var o=this.eventPool.pop();return this.call(o,e,t,n,r),o}return new this(e,t,n,r)}function Xn(e){if(!(e instanceof this))throw Error(a(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function Zn(e){e.eventPool=[],e.getPooled=Yn,e.release=Xn}o(Jn.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Vn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Vn)},persist:function(){this.isPersistent=Vn},isPersistent:Kn,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=Kn,this._dispatchInstances=this._dispatchListeners=null}}),Jn.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},Jn.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var i=new t;return o(i,n.prototype),n.prototype=i,n.prototype.constructor=n,n.Interface=o({},r.Interface,e),n.extend=r.extend,Zn(n),n},Zn(Jn);var er=Jn.extend({data:null}),tr=Jn.extend({data:null}),nr=[9,13,27,32],rr=I&&"CompositionEvent"in window,or=null;I&&"documentMode"in document&&(or=document.documentMode);var ir=I&&"TextEvent"in window&&!or,ar=I&&(!rr||or&&8<or&&11>=or),sr=String.fromCharCode(32),lr={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},ur=!1;function cr(e,t){switch(e){case"keyup":return-1!==nr.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function pr(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var dr=!1;var fr={eventTypes:lr,extractEvents:function(e,t,n,r){var o;if(rr)e:{switch(e){case"compositionstart":var i=lr.compositionStart;break e;case"compositionend":i=lr.compositionEnd;break e;case"compositionupdate":i=lr.compositionUpdate;break e}i=void 0}else dr?cr(e,n)&&(i=lr.compositionEnd):"keydown"===e&&229===n.keyCode&&(i=lr.compositionStart);return i?(ar&&"ko"!==n.locale&&(dr||i!==lr.compositionStart?i===lr.compositionEnd&&dr&&(o=Qn()):(Wn="value"in(Hn=r)?Hn.value:Hn.textContent,dr=!0)),i=er.getPooled(i,t,n,r),o?i.data=o:null!==(o=pr(n))&&(i.data=o),$n(i),o=i):o=null,(e=ir?function(e,t){switch(e){case"compositionend":return pr(t);case"keypress":return 32!==t.which?null:(ur=!0,sr);case"textInput":return(e=t.data)===sr&&ur?null:e;default:return null}}(e,n):function(e,t){if(dr)return"compositionend"===e||!rr&&cr(e,t)?(e=Qn(),Gn=Wn=Hn=null,dr=!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 ar&&"ko"!==t.locale?null:t.data}}(e,n))?((t=tr.getPooled(lr.beforeInput,t,n,r)).data=e,$n(t)):t=null,null===o?t:null===t?o:[o,t]}},hr={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 mr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!hr[e.type]:"textarea"===t}var yr={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function gr(e,t,n){return(e=Jn.getPooled(yr.change,e,t,n)).type="change",C(n),$n(e),e}var vr=null,br=null;function wr(e){lt(e)}function _r(e){if(_e(Ln(e)))return e}function Er(e,t){if("change"===e)return t}var Dr=!1;function xr(){vr&&(vr.detachEvent("onpropertychange",Sr),br=vr=null)}function Sr(e){if("value"===e.propertyName&&_r(br))if(e=gr(br,e,ut(e)),M)lt(e);else{M=!0;try{A(wr,e)}finally{M=!1,F()}}}function Or(e,t,n){"focus"===e?(xr(),br=n,(vr=t).attachEvent("onpropertychange",Sr)):"blur"===e&&xr()}function Ir(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return _r(br)}function kr(e,t){if("click"===e)return _r(t)}function Pr(e,t){if("input"===e||"change"===e)return _r(t)}I&&(Dr=ct("input")&&(!document.documentMode||9<document.documentMode));var Tr={eventTypes:yr,_isInputEventSupported:Dr,extractEvents:function(e,t,n,r){var o=t?Ln(t):window,i=o.nodeName&&o.nodeName.toLowerCase();if("select"===i||"input"===i&&"file"===o.type)var a=Er;else if(mr(o))if(Dr)a=Pr;else{a=Ir;var s=Or}else(i=o.nodeName)&&"input"===i.toLowerCase()&&("checkbox"===o.type||"radio"===o.type)&&(a=kr);if(a&&(a=a(e,t)))return gr(a,n,r);s&&s(e,o,t),"blur"===e&&(e=o._wrapperState)&&e.controlled&&"number"===o.type&&Ie(o,"number",o.value)}},Nr=Jn.extend({view:null,detail:null}),Cr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function jr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Cr[e])&&!!t[e]}function Ar(){return jr}var Lr=0,Rr=0,zr=!1,Mr=!1,qr=Nr.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Ar,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Lr;return Lr=e.screenX,zr?"mousemove"===e.type?e.screenX-t:0:(zr=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Rr;return Rr=e.screenY,Mr?"mousemove"===e.type?e.screenY-t:0:(Mr=!0,0)}}),Fr=qr.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Br={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Ur={eventTypes:Br,extractEvents:function(e,t,n,r,o){var i="mouseover"===e||"pointerover"===e,a="mouseout"===e||"pointerout"===e;if(i&&0==(32&o)&&(n.relatedTarget||n.fromElement)||!a&&!i)return null;(i=r.window===r?r:(i=r.ownerDocument)?i.defaultView||i.parentWindow:window,a)?(a=t,null!==(t=(t=n.relatedTarget||n.toElement)?jn(t):null)&&(t!==et(t)||5!==t.tag&&6!==t.tag)&&(t=null)):a=null;if(a===t)return null;if("mouseout"===e||"mouseover"===e)var s=qr,l=Br.mouseLeave,u=Br.mouseEnter,c="mouse";else"pointerout"!==e&&"pointerover"!==e||(s=Fr,l=Br.pointerLeave,u=Br.pointerEnter,c="pointer");if(e=null==a?i:Ln(a),i=null==t?i:Ln(t),(l=s.getPooled(l,a,n,r)).type=c+"leave",l.target=e,l.relatedTarget=i,(n=s.getPooled(u,t,n,r)).type=c+"enter",n.target=i,n.relatedTarget=e,c=t,(r=a)&&c)e:{for(u=c,a=0,e=s=r;e;e=zn(e))a++;for(e=0,t=u;t;t=zn(t))e++;for(;0<a-e;)s=zn(s),a--;for(;0<e-a;)u=zn(u),e--;for(;a--;){if(s===u||s===u.alternate)break e;s=zn(s),u=zn(u)}s=null}else s=null;for(u=s,s=[];r&&r!==u&&(null===(a=r.alternate)||a!==u);)s.push(r),r=zn(r);for(r=[];c&&c!==u&&(null===(a=c.alternate)||a!==u);)r.push(c),c=zn(c);for(c=0;c<s.length;c++)Bn(s[c],"bubbled",l);for(c=r.length;0<c--;)Bn(r[c],"captured",n);return 0==(64&o)?[l]:[l,n]}};var $r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},Hr=Object.prototype.hasOwnProperty;function Wr(e,t){if($r(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!Hr.call(t,n[r])||!$r(e[n[r]],t[n[r]]))return!1;return!0}var Gr=I&&"documentMode"in document&&11>=document.documentMode,Qr={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Vr=null,Kr=null,Jr=null,Yr=!1;function Xr(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Yr||null==Vr||Vr!==pn(n)?null:("selectionStart"in(n=Vr)&&yn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},Jr&&Wr(Jr,n)?null:(Jr=n,(e=Jn.getPooled(Qr.select,Kr,e,t)).type="select",e.target=Vr,$n(e),e))}var Zr={eventTypes:Qr,extractEvents:function(e,t,n,r,o,i){if(!(i=!(o=i||(r.window===r?r.document:9===r.nodeType?r:r.ownerDocument)))){e:{o=Ze(o),i=S.onSelect;for(var a=0;a<i.length;a++)if(!o.has(i[a])){o=!1;break e}o=!0}i=!o}if(i)return null;switch(o=t?Ln(t):window,e){case"focus":(mr(o)||"true"===o.contentEditable)&&(Vr=o,Kr=t,Jr=null);break;case"blur":Jr=Kr=Vr=null;break;case"mousedown":Yr=!0;break;case"contextmenu":case"mouseup":case"dragend":return Yr=!1,Xr(n,r);case"selectionchange":if(Gr)break;case"keydown":case"keyup":return Xr(n,r)}return null}},eo=Jn.extend({animationName:null,elapsedTime:null,pseudoElement:null}),to=Jn.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),no=Nr.extend({relatedTarget:null});function ro(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}var oo={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},io={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"},ao=Nr.extend({key:function(e){if(e.key){var t=oo[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=ro(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?io[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Ar,charCode:function(e){return"keypress"===e.type?ro(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?ro(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),so=qr.extend({dataTransfer:null}),lo=Nr.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Ar}),uo=Jn.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),co=qr.extend({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:null,deltaMode:null}),po={eventTypes:Mt,extractEvents:function(e,t,n,r){var o=qt.get(e);if(!o)return null;switch(e){case"keypress":if(0===ro(n))return null;case"keydown":case"keyup":e=ao;break;case"blur":case"focus":e=no;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=qr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=so;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=lo;break;case Qe:case Ve:case Ke:e=eo;break;case Je:e=uo;break;case"scroll":e=Nr;break;case"wheel":e=co;break;case"copy":case"cut":case"paste":e=to;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Fr;break;default:e=Jn}return $n(t=e.getPooled(o,t,n,r)),t}};if(v)throw Error(a(101));v=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),w(),h=Rn,m=An,y=Ln,O({SimpleEventPlugin:po,EnterLeaveEventPlugin:Ur,ChangeEventPlugin:Tr,SelectEventPlugin:Zr,BeforeInputEventPlugin:fr});var fo=[],ho=-1;function mo(e){0>ho||(e.current=fo[ho],fo[ho]=null,ho--)}function yo(e,t){ho++,fo[ho]=e.current,e.current=t}var go={},vo={current:go},bo={current:!1},wo=go;function _o(e,t){var n=e.type.contextTypes;if(!n)return go;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Eo(e){return null!=(e=e.childContextTypes)}function Do(){mo(bo),mo(vo)}function xo(e,t,n){if(vo.current!==go)throw Error(a(168));yo(vo,t),yo(bo,n)}function So(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in e))throw Error(a(108,ye(t)||"Unknown",i));return o({},n,{},r)}function Oo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||go,wo=vo.current,yo(vo,e),yo(bo,bo.current),!0}function Io(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=So(e,t,wo),r.__reactInternalMemoizedMergedChildContext=e,mo(bo),mo(vo),yo(vo,e)):mo(bo),yo(bo,n)}var ko=i.unstable_runWithPriority,Po=i.unstable_scheduleCallback,To=i.unstable_cancelCallback,No=i.unstable_requestPaint,Co=i.unstable_now,jo=i.unstable_getCurrentPriorityLevel,Ao=i.unstable_ImmediatePriority,Lo=i.unstable_UserBlockingPriority,Ro=i.unstable_NormalPriority,zo=i.unstable_LowPriority,Mo=i.unstable_IdlePriority,qo={},Fo=i.unstable_shouldYield,Bo=void 0!==No?No:function(){},Uo=null,$o=null,Ho=!1,Wo=Co(),Go=1e4>Wo?Co:function(){return Co()-Wo};function Qo(){switch(jo()){case Ao:return 99;case Lo:return 98;case Ro:return 97;case zo:return 96;case Mo:return 95;default:throw Error(a(332))}}function Vo(e){switch(e){case 99:return Ao;case 98:return Lo;case 97:return Ro;case 96:return zo;case 95:return Mo;default:throw Error(a(332))}}function Ko(e,t){return e=Vo(e),ko(e,t)}function Jo(e,t,n){return e=Vo(e),Po(e,t,n)}function Yo(e){return null===Uo?(Uo=[e],$o=Po(Ao,Zo)):Uo.push(e),qo}function Xo(){if(null!==$o){var e=$o;$o=null,To(e)}Zo()}function Zo(){if(!Ho&&null!==Uo){Ho=!0;var e=0;try{var t=Uo;Ko(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Uo=null}catch(t){throw null!==Uo&&(Uo=Uo.slice(e+1)),Po(Ao,Xo),t}finally{Ho=!1}}}function ei(e,t,n){return 1073741821-(1+((1073741821-e+t/10)/(n/=10)|0))*n}function ti(e,t){if(e&&e.defaultProps)for(var n in t=o({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var ni={current:null},ri=null,oi=null,ii=null;function ai(){ii=oi=ri=null}function si(e){var t=ni.current;mo(ni),e.type._context._currentValue=t}function li(e,t){for(;null!==e;){var n=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t);else{if(!(null!==n&&n.childExpirationTime<t))break;n.childExpirationTime=t}e=e.return}}function ui(e,t){ri=e,ii=oi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(Ra=!0),e.firstContext=null)}function ci(e,t){if(ii!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(ii=e,t=1073741823),t={context:e,observedBits:t,next:null},null===oi){if(null===ri)throw Error(a(308));oi=t,ri.dependencies={expirationTime:0,firstContext:t,responders:null}}else oi=oi.next=t;return e._currentValue}var pi=!1;function di(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function fi(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function hi(e,t){return(e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null}).next=e}function mi(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function yi(e,t){var n=e.alternate;null!==n&&fi(n,e),null===(n=(e=e.updateQueue).baseQueue)?(e.baseQueue=t.next=t,t.next=t):(t.next=n.next,n.next=t)}function gi(e,t,n,r){var i=e.updateQueue;pi=!1;var a=i.baseQueue,s=i.shared.pending;if(null!==s){if(null!==a){var l=a.next;a.next=s.next,s.next=l}a=s,i.shared.pending=null,null!==(l=e.alternate)&&(null!==(l=l.updateQueue)&&(l.baseQueue=s))}if(null!==a){l=a.next;var u=i.baseState,c=0,p=null,d=null,f=null;if(null!==l)for(var h=l;;){if((s=h.expirationTime)<r){var m={expirationTime:h.expirationTime,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null};null===f?(d=f=m,p=u):f=f.next=m,s>c&&(c=s)}else{null!==f&&(f=f.next={expirationTime:1073741823,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null}),El(s,h.suspenseConfig);e:{var y=e,g=h;switch(s=t,m=n,g.tag){case 1:if("function"==typeof(y=g.payload)){u=y.call(m,u,s);break e}u=y;break e;case 3:y.effectTag=-4097&y.effectTag|64;case 0:if(null==(s="function"==typeof(y=g.payload)?y.call(m,u,s):y))break e;u=o({},u,s);break e;case 2:pi=!0}}null!==h.callback&&(e.effectTag|=32,null===(s=i.effects)?i.effects=[h]:s.push(h))}if(null===(h=h.next)||h===l){if(null===(s=i.shared.pending))break;h=a.next=s.next,s.next=l,i.baseQueue=a=s,i.shared.pending=null}}null===f?p=u:f.next=d,i.baseState=p,i.baseQueue=f,Dl(c),e.expirationTime=c,e.memoizedState=u}}function vi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=o,o=n,"function"!=typeof r)throw Error(a(191,r));r.call(o)}}}var bi=J.ReactCurrentBatchConfig,wi=(new r.Component).refs;function _i(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:o({},t,n),e.memoizedState=n,0===e.expirationTime&&(e.updateQueue.baseState=n)}var Ei={isMounted:function(e){return!!(e=e._reactInternalFiber)&&et(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=ul(),o=bi.suspense;(o=hi(r=cl(r,e,o),o)).payload=t,null!=n&&(o.callback=n),mi(e,o),pl(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=ul(),o=bi.suspense;(o=hi(r=cl(r,e,o),o)).tag=1,o.payload=t,null!=n&&(o.callback=n),mi(e,o),pl(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=ul(),r=bi.suspense;(r=hi(n=cl(n,e,r),r)).tag=2,null!=t&&(r.callback=t),mi(e,r),pl(e,n)}};function Di(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!Wr(n,r)||!Wr(o,i))}function xi(e,t,n){var r=!1,o=go,i=t.contextType;return"object"==typeof i&&null!==i?i=ci(i):(o=Eo(t)?wo:vo.current,i=(r=null!=(r=t.contextTypes))?_o(e,o):go),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Ei,e.stateNode=t,t._reactInternalFiber=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Si(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ei.enqueueReplaceState(t,t.state,null)}function Oi(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=wi,di(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=ci(i):(i=Eo(t)?wo:vo.current,o.context=_o(e,i)),gi(e,n,o,r),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(_i(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&Ei.enqueueReplaceState(o,o.state,null),gi(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.effectTag|=4)}var Ii=Array.isArray;function ki(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=r.refs;t===wi&&(t=r.refs={}),null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function Pi(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function Ti(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(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 o(e,t){return(e=$l(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.effectTag=2,n):r:(t.effectTag=2,n):n}function s(t){return e&&null===t.alternate&&(t.effectTag=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Gl(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function u(e,t,n,r){return null!==t&&t.elementType===n.type?((r=o(t,n.props)).ref=ki(e,t,n),r.return=e,r):((r=Hl(n.type,n.key,n.props,null,e.mode,r)).ref=ki(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Ql(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function p(e,t,n,r,i){return null===t||7!==t.tag?((t=Wl(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Gl(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case ee:return(n=Hl(t.type,t.key,t.props,null,e.mode,n)).ref=ki(e,null,t),n.return=e,n;case te:return(t=Ql(t,e.mode,n)).return=e,t}if(Ii(t)||me(t))return(t=Wl(t,e.mode,n,null)).return=e,t;Pi(e,t)}return null}function f(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case ee:return n.key===o?n.type===ne?p(e,t,n.props.children,r,o):u(e,t,n,r):null;case te:return n.key===o?c(e,t,n,r):null}if(Ii(n)||me(n))return null!==o?null:p(e,t,n,r,null);Pi(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case ee:return e=e.get(null===r.key?n:r.key)||null,r.type===ne?p(t,e,r.props.children,o,r.key):u(t,e,r,o);case te:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o)}if(Ii(r)||me(r))return p(t,e=e.get(n)||null,r,o,null);Pi(t,r)}return null}function m(o,a,s,l){for(var u=null,c=null,p=a,m=a=0,y=null;null!==p&&m<s.length;m++){p.index>m?(y=p,p=null):y=p.sibling;var g=f(o,p,s[m],l);if(null===g){null===p&&(p=y);break}e&&p&&null===g.alternate&&t(o,p),a=i(g,a,m),null===c?u=g:c.sibling=g,c=g,p=y}if(m===s.length)return n(o,p),u;if(null===p){for(;m<s.length;m++)null!==(p=d(o,s[m],l))&&(a=i(p,a,m),null===c?u=p:c.sibling=p,c=p);return u}for(p=r(o,p);m<s.length;m++)null!==(y=h(p,o,m,s[m],l))&&(e&&null!==y.alternate&&p.delete(null===y.key?m:y.key),a=i(y,a,m),null===c?u=y:c.sibling=y,c=y);return e&&p.forEach((function(e){return t(o,e)})),u}function y(o,s,l,u){var c=me(l);if("function"!=typeof c)throw Error(a(150));if(null==(l=c.call(l)))throw Error(a(151));for(var p=c=null,m=s,y=s=0,g=null,v=l.next();null!==m&&!v.done;y++,v=l.next()){m.index>y?(g=m,m=null):g=m.sibling;var b=f(o,m,v.value,u);if(null===b){null===m&&(m=g);break}e&&m&&null===b.alternate&&t(o,m),s=i(b,s,y),null===p?c=b:p.sibling=b,p=b,m=g}if(v.done)return n(o,m),c;if(null===m){for(;!v.done;y++,v=l.next())null!==(v=d(o,v.value,u))&&(s=i(v,s,y),null===p?c=v:p.sibling=v,p=v);return c}for(m=r(o,m);!v.done;y++,v=l.next())null!==(v=h(m,o,y,v.value,u))&&(e&&null!==v.alternate&&m.delete(null===v.key?y:v.key),s=i(v,s,y),null===p?c=v:p.sibling=v,p=v);return e&&m.forEach((function(e){return t(o,e)})),c}return function(e,r,i,l){var u="object"==typeof i&&null!==i&&i.type===ne&&null===i.key;u&&(i=i.props.children);var c="object"==typeof i&&null!==i;if(c)switch(i.$$typeof){case ee:e:{for(c=i.key,u=r;null!==u;){if(u.key===c){if(7===u.tag){if(i.type===ne){n(e,u.sibling),(r=o(u,i.props.children)).return=e,e=r;break e}}else if(u.elementType===i.type){n(e,u.sibling),(r=o(u,i.props)).ref=ki(e,u,i),r.return=e,e=r;break e}n(e,u);break}t(e,u),u=u.sibling}i.type===ne?((r=Wl(i.props.children,e.mode,l,i.key)).return=e,e=r):((l=Hl(i.type,i.key,i.props,null,e.mode,l)).ref=ki(e,r,i),l.return=e,e=l)}return s(e);case te:e:{for(u=i.key;null!==r;){if(r.key===u){if(4===r.tag&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),(r=o(r,i.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Ql(i,e.mode,l)).return=e,e=r}return s(e)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==r&&6===r.tag?(n(e,r.sibling),(r=o(r,i)).return=e,e=r):(n(e,r),(r=Gl(i,e.mode,l)).return=e,e=r),s(e);if(Ii(i))return m(e,r,i,l);if(me(i))return y(e,r,i,l);if(c&&Pi(e,i),void 0===i&&!u)switch(e.tag){case 1:case 0:throw e=e.type,Error(a(152,e.displayName||e.name||"Component"))}return n(e,r)}}var Ni=Ti(!0),Ci=Ti(!1),ji={},Ai={current:ji},Li={current:ji},Ri={current:ji};function zi(e){if(e===ji)throw Error(a(174));return e}function Mi(e,t){switch(yo(Ri,t),yo(Li,e),yo(Ai,ji),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ze(null,"");break;default:t=ze(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}mo(Ai),yo(Ai,t)}function qi(){mo(Ai),mo(Li),mo(Ri)}function Fi(e){zi(Ri.current);var t=zi(Ai.current),n=ze(t,e.type);t!==n&&(yo(Li,e),yo(Ai,n))}function Bi(e){Li.current===e&&(mo(Ai),mo(Li))}var Ui={current:0};function $i(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||n.data===bn||n.data===wn))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.effectTag))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}function Hi(e,t){return{responder:e,props:t}}var Wi=J.ReactCurrentDispatcher,Gi=J.ReactCurrentBatchConfig,Qi=0,Vi=null,Ki=null,Ji=null,Yi=!1;function Xi(){throw Error(a(321))}function Zi(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!$r(e[n],t[n]))return!1;return!0}function ea(e,t,n,r,o,i){if(Qi=i,Vi=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,Wi.current=null===e||null===e.memoizedState?Da:xa,e=n(r,o),t.expirationTime===Qi){i=0;do{if(t.expirationTime=0,!(25>i))throw Error(a(301));i+=1,Ji=Ki=null,t.updateQueue=null,Wi.current=Sa,e=n(r,o)}while(t.expirationTime===Qi)}if(Wi.current=Ea,t=null!==Ki&&null!==Ki.next,Qi=0,Ji=Ki=Vi=null,Yi=!1,t)throw Error(a(300));return e}function ta(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Ji?Vi.memoizedState=Ji=e:Ji=Ji.next=e,Ji}function na(){if(null===Ki){var e=Vi.alternate;e=null!==e?e.memoizedState:null}else e=Ki.next;var t=null===Ji?Vi.memoizedState:Ji.next;if(null!==t)Ji=t,Ki=e;else{if(null===e)throw Error(a(310));e={memoizedState:(Ki=e).memoizedState,baseState:Ki.baseState,baseQueue:Ki.baseQueue,queue:Ki.queue,next:null},null===Ji?Vi.memoizedState=Ji=e:Ji=Ji.next=e}return Ji}function ra(e,t){return"function"==typeof t?t(e):t}function oa(e){var t=na(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=Ki,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var s=o.next;o.next=i.next,i.next=s}r.baseQueue=o=i,n.pending=null}if(null!==o){o=o.next,r=r.baseState;var l=s=i=null,u=o;do{var c=u.expirationTime;if(c<Qi){var p={expirationTime:u.expirationTime,suspenseConfig:u.suspenseConfig,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};null===l?(s=l=p,i=r):l=l.next=p,c>Vi.expirationTime&&(Vi.expirationTime=c,Dl(c))}else null!==l&&(l=l.next={expirationTime:1073741823,suspenseConfig:u.suspenseConfig,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),El(c,u.suspenseConfig),r=u.eagerReducer===e?u.eagerState:e(r,u.action);u=u.next}while(null!==u&&u!==o);null===l?i=r:l.next=s,$r(r,t.memoizedState)||(Ra=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function ia(e){var t=na(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var s=o=o.next;do{i=e(i,s.action),s=s.next}while(s!==o);$r(i,t.memoizedState)||(Ra=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function aa(e){var t=ta();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:ra,lastRenderedState:e}).dispatch=_a.bind(null,Vi,e),[t.memoizedState,e]}function sa(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Vi.updateQueue)?(t={lastEffect:null},Vi.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function la(){return na().memoizedState}function ua(e,t,n,r){var o=ta();Vi.effectTag|=e,o.memoizedState=sa(1|t,n,void 0,void 0===r?null:r)}function ca(e,t,n,r){var o=na();r=void 0===r?null:r;var i=void 0;if(null!==Ki){var a=Ki.memoizedState;if(i=a.destroy,null!==r&&Zi(r,a.deps))return void sa(t,n,i,r)}Vi.effectTag|=e,o.memoizedState=sa(1|t,n,i,r)}function pa(e,t){return ua(516,4,e,t)}function da(e,t){return ca(516,4,e,t)}function fa(e,t){return ca(4,2,e,t)}function ha(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 ma(e,t,n){return n=null!=n?n.concat([e]):null,ca(4,2,ha.bind(null,t,e),n)}function ya(){}function ga(e,t){return ta().memoizedState=[e,void 0===t?null:t],e}function va(e,t){var n=na();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Zi(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ba(e,t){var n=na();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Zi(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function wa(e,t,n){var r=Qo();Ko(98>r?98:r,(function(){e(!0)})),Ko(97<r?97:r,(function(){var r=Gi.suspense;Gi.suspense=void 0===t?null:t;try{e(!1),n()}finally{Gi.suspense=r}}))}function _a(e,t,n){var r=ul(),o=bi.suspense;o={expirationTime:r=cl(r,e,o),suspenseConfig:o,action:n,eagerReducer:null,eagerState:null,next:null};var i=t.pending;if(null===i?o.next=o:(o.next=i.next,i.next=o),t.pending=o,i=e.alternate,e===Vi||null!==i&&i===Vi)Yi=!0,o.expirationTime=Qi,Vi.expirationTime=Qi;else{if(0===e.expirationTime&&(null===i||0===i.expirationTime)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=i(a,n);if(o.eagerReducer=i,o.eagerState=s,$r(s,a))return}catch(e){}pl(e,r)}}var Ea={readContext:ci,useCallback:Xi,useContext:Xi,useEffect:Xi,useImperativeHandle:Xi,useLayoutEffect:Xi,useMemo:Xi,useReducer:Xi,useRef:Xi,useState:Xi,useDebugValue:Xi,useResponder:Xi,useDeferredValue:Xi,useTransition:Xi},Da={readContext:ci,useCallback:ga,useContext:ci,useEffect:pa,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,ua(4,2,ha.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ua(4,2,e,t)},useMemo:function(e,t){var n=ta();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ta();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=_a.bind(null,Vi,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ta().memoizedState=e},useState:aa,useDebugValue:ya,useResponder:Hi,useDeferredValue:function(e,t){var n=aa(e),r=n[0],o=n[1];return pa((function(){var n=Gi.suspense;Gi.suspense=void 0===t?null:t;try{o(e)}finally{Gi.suspense=n}}),[e,t]),r},useTransition:function(e){var t=aa(!1),n=t[0];return t=t[1],[ga(wa.bind(null,t,e),[t,e]),n]}},xa={readContext:ci,useCallback:va,useContext:ci,useEffect:da,useImperativeHandle:ma,useLayoutEffect:fa,useMemo:ba,useReducer:oa,useRef:la,useState:function(){return oa(ra)},useDebugValue:ya,useResponder:Hi,useDeferredValue:function(e,t){var n=oa(ra),r=n[0],o=n[1];return da((function(){var n=Gi.suspense;Gi.suspense=void 0===t?null:t;try{o(e)}finally{Gi.suspense=n}}),[e,t]),r},useTransition:function(e){var t=oa(ra),n=t[0];return t=t[1],[va(wa.bind(null,t,e),[t,e]),n]}},Sa={readContext:ci,useCallback:va,useContext:ci,useEffect:da,useImperativeHandle:ma,useLayoutEffect:fa,useMemo:ba,useReducer:ia,useRef:la,useState:function(){return ia(ra)},useDebugValue:ya,useResponder:Hi,useDeferredValue:function(e,t){var n=ia(ra),r=n[0],o=n[1];return da((function(){var n=Gi.suspense;Gi.suspense=void 0===t?null:t;try{o(e)}finally{Gi.suspense=n}}),[e,t]),r},useTransition:function(e){var t=ia(ra),n=t[0];return t=t[1],[va(wa.bind(null,t,e),[t,e]),n]}},Oa=null,Ia=null,ka=!1;function Pa(e,t){var n=Bl(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Ta(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function Na(e){if(ka){var t=Ia;if(t){var n=t;if(!Ta(e,t)){if(!(t=In(n.nextSibling))||!Ta(e,t))return e.effectTag=-1025&e.effectTag|2,ka=!1,void(Oa=e);Pa(Oa,n)}Oa=e,Ia=In(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,ka=!1,Oa=e}}function Ca(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Oa=e}function ja(e){if(e!==Oa)return!1;if(!ka)return Ca(e),ka=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!xn(t,e.memoizedProps))for(t=Ia;t;)Pa(e,t),t=In(t.nextSibling);if(Ca(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if(n===vn){if(0===t){Ia=In(e.nextSibling);break e}t--}else n!==gn&&n!==wn&&n!==bn||t++}e=e.nextSibling}Ia=null}}else Ia=Oa?In(e.stateNode.nextSibling):null;return!0}function Aa(){Ia=Oa=null,ka=!1}var La=J.ReactCurrentOwner,Ra=!1;function za(e,t,n,r){t.child=null===e?Ci(t,null,n,r):Ni(t,e.child,n,r)}function Ma(e,t,n,r,o){n=n.render;var i=t.ref;return ui(t,o),r=ea(e,t,n,r,i,o),null===e||Ra?(t.effectTag|=1,za(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),ts(e,t,o))}function qa(e,t,n,r,o,i){if(null===e){var a=n.type;return"function"!=typeof a||Ul(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Hl(n.type,null,r,null,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Fa(e,t,a,r,o,i))}return a=e.child,o<i&&(o=a.memoizedProps,(n=null!==(n=n.compare)?n:Wr)(o,r)&&e.ref===t.ref)?ts(e,t,i):(t.effectTag|=1,(e=$l(a,r)).ref=t.ref,e.return=t,t.child=e)}function Fa(e,t,n,r,o,i){return null!==e&&Wr(e.memoizedProps,r)&&e.ref===t.ref&&(Ra=!1,o<i)?(t.expirationTime=e.expirationTime,ts(e,t,i)):Ua(e,t,n,r,i)}function Ba(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function Ua(e,t,n,r,o){var i=Eo(n)?wo:vo.current;return i=_o(t,i),ui(t,o),n=ea(e,t,n,r,i,o),null===e||Ra?(t.effectTag|=1,za(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),ts(e,t,o))}function $a(e,t,n,r,o){if(Eo(n)){var i=!0;Oo(t)}else i=!1;if(ui(t,o),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),xi(t,n,r),Oi(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;"object"==typeof u&&null!==u?u=ci(u):u=_o(t,u=Eo(n)?wo:vo.current);var c=n.getDerivedStateFromProps,p="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;p||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&Si(t,a,r,u),pi=!1;var d=t.memoizedState;a.state=d,gi(t,r,a,o),l=t.memoizedState,s!==r||d!==l||bo.current||pi?("function"==typeof c&&(_i(t,n,c,r),l=t.memoizedState),(s=pi||Di(t,n,s,r,d,l,u))?(p||"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.effectTag|=4)):("function"==typeof a.componentDidMount&&(t.effectTag|=4),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):("function"==typeof a.componentDidMount&&(t.effectTag|=4),r=!1)}else a=t.stateNode,fi(e,t),s=t.memoizedProps,a.props=t.type===t.elementType?s:ti(t.type,s),l=a.context,"object"==typeof(u=n.contextType)&&null!==u?u=ci(u):u=_o(t,u=Eo(n)?wo:vo.current),(p="function"==typeof(c=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&Si(t,a,r,u),pi=!1,l=t.memoizedState,a.state=l,gi(t,r,a,o),d=t.memoizedState,s!==r||l!==d||bo.current||pi?("function"==typeof c&&(_i(t,n,c,r),d=t.memoizedState),(c=pi||Di(t,n,s,r,l,d,u))?(p||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,d,u),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,d,u)),"function"==typeof a.componentDidUpdate&&(t.effectTag|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),t.memoizedProps=r,t.memoizedState=d),a.props=r,a.state=d,a.context=u,r=c):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),r=!1);return Ha(e,t,n,r,i,o)}function Ha(e,t,n,r,o,i){Ba(e,t);var a=0!=(64&t.effectTag);if(!r&&!a)return o&&Io(t,n,!1),ts(e,t,i);r=t.stateNode,La.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&a?(t.child=Ni(t,e.child,null,i),t.child=Ni(t,null,s,i)):za(e,t,s,i),t.memoizedState=r.state,o&&Io(t,n,!0),t.child}function Wa(e){var t=e.stateNode;t.pendingContext?xo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&xo(0,t.context,!1),Mi(e,t.containerInfo)}var Ga,Qa,Va,Ka,Ja={dehydrated:null,retryTime:0};function Ya(e,t,n){var r,o=t.mode,i=t.pendingProps,a=Ui.current,s=!1;if((r=0!=(64&t.effectTag))||(r=0!=(2&a)&&(null===e||null!==e.memoizedState)),r?(s=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(a|=1),yo(Ui,1&a),null===e){if(void 0!==i.fallback&&Na(t),s){if(s=i.fallback,(i=Wl(null,o,0,null)).return=t,0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,i.child=e;null!==e;)e.return=i,e=e.sibling;return(n=Wl(s,o,n,null)).return=t,i.sibling=n,t.memoizedState=Ja,t.child=i,n}return o=i.children,t.memoizedState=null,t.child=Ci(t,null,o,n)}if(null!==e.memoizedState){if(o=(e=e.child).sibling,s){if(i=i.fallback,(n=$l(e,e.pendingProps)).return=t,0==(2&t.mode)&&(s=null!==t.memoizedState?t.child.child:t.child)!==e.child)for(n.child=s;null!==s;)s.return=n,s=s.sibling;return(o=$l(o,i)).return=t,n.sibling=o,n.childExpirationTime=0,t.memoizedState=Ja,t.child=n,o}return n=Ni(t,e.child,i.children,n),t.memoizedState=null,t.child=n}if(e=e.child,s){if(s=i.fallback,(i=Wl(null,o,0,null)).return=t,i.child=e,null!==e&&(e.return=i),0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,i.child=e;null!==e;)e.return=i,e=e.sibling;return(n=Wl(s,o,n,null)).return=t,i.sibling=n,n.effectTag|=2,i.childExpirationTime=0,t.memoizedState=Ja,t.child=i,n}return t.memoizedState=null,t.child=Ni(t,e,i.children,n)}function Xa(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t),li(e.return,t)}function Za(e,t,n,r,o,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailExpiration:0,tailMode:o,lastEffect:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailExpiration=0,a.tailMode=o,a.lastEffect=i)}function es(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(za(e,t,r.children,n),0!=(2&(r=Ui.current)))r=1&r|2,t.effectTag|=64;else{if(null!==e&&0!=(64&e.effectTag))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Xa(e,n);else if(19===e.tag)Xa(e,n);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}r&=1}if(yo(Ui,r),0==(2&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===$i(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Za(t,!1,o,n,i,t.lastEffect);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===$i(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Za(t,!0,n,null,i,t.lastEffect);break;case"together":Za(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function ts(e,t,n){null!==e&&(t.dependencies=e.dependencies);var r=t.expirationTime;if(0!==r&&Dl(r),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=$l(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=$l(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function ns(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function rs(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return Eo(t.type)&&Do(),null;case 3:return qi(),mo(bo),mo(vo),(n=t.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||!ja(t)||(t.effectTag|=4),Qa(t),null;case 5:Bi(t),n=zi(Ri.current);var i=t.type;if(null!==e&&null!=t.stateNode)Va(e,t,i,r,n),e.ref!==t.ref&&(t.effectTag|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=zi(Ai.current),ja(t)){r=t.stateNode,i=t.type;var s=t.memoizedProps;switch(r[Tn]=t,r[Nn]=s,i){case"iframe":case"object":case"embed":Vt("load",r);break;case"video":case"audio":for(e=0;e<Ye.length;e++)Vt(Ye[e],r);break;case"source":Vt("error",r);break;case"img":case"image":case"link":Vt("error",r),Vt("load",r);break;case"form":Vt("reset",r),Vt("submit",r);break;case"details":Vt("toggle",r);break;case"input":De(r,s),Vt("invalid",r),un(n,"onChange");break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Vt("invalid",r),un(n,"onChange");break;case"textarea":Ne(r,s),Vt("invalid",r),un(n,"onChange")}for(var l in an(i,s),e=null,s)if(s.hasOwnProperty(l)){var u=s[l];"children"===l?"string"==typeof u?r.textContent!==u&&(e=["children",u]):"number"==typeof u&&r.textContent!==""+u&&(e=["children",""+u]):x.hasOwnProperty(l)&&null!=u&&un(n,l)}switch(i){case"input":we(r),Oe(r,s,!0);break;case"textarea":we(r),je(r);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(r.onclick=cn)}n=e,t.updateQueue=n,null!==n&&(t.effectTag|=4)}else{switch(l=9===n.nodeType?n:n.ownerDocument,e===ln&&(e=Re(i)),e===ln?"script"===i?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(i,{is:r.is}):(e=l.createElement(i),"select"===i&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,i),e[Tn]=t,e[Nn]=r,Ga(e,t,!1,!1),t.stateNode=e,l=sn(i,r),i){case"iframe":case"object":case"embed":Vt("load",e),u=r;break;case"video":case"audio":for(u=0;u<Ye.length;u++)Vt(Ye[u],e);u=r;break;case"source":Vt("error",e),u=r;break;case"img":case"image":case"link":Vt("error",e),Vt("load",e),u=r;break;case"form":Vt("reset",e),Vt("submit",e),u=r;break;case"details":Vt("toggle",e),u=r;break;case"input":De(e,r),u=Ee(e,r),Vt("invalid",e),un(n,"onChange");break;case"option":u=ke(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},u=o({},r,{value:void 0}),Vt("invalid",e),un(n,"onChange");break;case"textarea":Ne(e,r),u=Te(e,r),Vt("invalid",e),un(n,"onChange");break;default:u=r}an(i,u);var c=u;for(s in c)if(c.hasOwnProperty(s)){var p=c[s];"style"===s?rn(e,p):"dangerouslySetInnerHTML"===s?null!=(p=p?p.__html:void 0)&&Fe(e,p):"children"===s?"string"==typeof p?("textarea"!==i||""!==p)&&Be(e,p):"number"==typeof p&&Be(e,""+p):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(x.hasOwnProperty(s)?null!=p&&un(n,s):null!=p&&Y(e,s,p,l))}switch(i){case"input":we(e),Oe(e,r,!1);break;case"textarea":we(e),je(e);break;case"option":null!=r.value&&e.setAttribute("value",""+ve(r.value));break;case"select":e.multiple=!!r.multiple,null!=(n=r.value)?Pe(e,!!r.multiple,n,!1):null!=r.defaultValue&&Pe(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof u.onClick&&(e.onclick=cn)}Dn(i,r)&&(t.effectTag|=4)}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)Ka(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(a(166));n=zi(Ri.current),zi(Ai.current),ja(t)?(n=t.stateNode,r=t.memoizedProps,n[Tn]=t,n.nodeValue!==r&&(t.effectTag|=4)):((n=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Tn]=t,t.stateNode=n)}return null;case 13:return mo(Ui),r=t.memoizedState,0!=(64&t.effectTag)?(t.expirationTime=n,t):(n=null!==r,r=!1,null===e?void 0!==t.memoizedProps.fallback&&ja(t):(r=null!==(i=e.memoizedState),n||null===i||null!==(i=e.child.sibling)&&(null!==(s=t.firstEffect)?(t.firstEffect=i,i.nextEffect=s):(t.firstEffect=t.lastEffect=i,i.nextEffect=null),i.effectTag=8)),n&&!r&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Ui.current)?$s===js&&($s=Rs):($s!==js&&$s!==Rs||($s=zs),0!==Vs&&null!==Fs&&(Jl(Fs,Us),Yl(Fs,Vs)))),(n||r)&&(t.effectTag|=4),null);case 4:return qi(),Qa(t),null;case 10:return si(t),null;case 19:if(mo(Ui),null===(r=t.memoizedState))return null;if(i=0!=(64&t.effectTag),null===(s=r.rendering)){if(i)ns(r,!1);else if($s!==js||null!==e&&0!=(64&e.effectTag))for(s=t.child;null!==s;){if(null!==(e=$i(s))){for(t.effectTag|=64,ns(r,!1),null!==(i=e.updateQueue)&&(t.updateQueue=i,t.effectTag|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=t.child;null!==r;)s=n,(i=r).effectTag&=2,i.nextEffect=null,i.firstEffect=null,i.lastEffect=null,null===(e=i.alternate)?(i.childExpirationTime=0,i.expirationTime=s,i.child=null,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null):(i.childExpirationTime=e.childExpirationTime,i.expirationTime=e.expirationTime,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,s=e.dependencies,i.dependencies=null===s?null:{expirationTime:s.expirationTime,firstContext:s.firstContext,responders:s.responders}),r=r.sibling;return yo(Ui,1&Ui.current|2),t.child}s=s.sibling}}else{if(!i)if(null!==(e=$i(s))){if(t.effectTag|=64,i=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.effectTag|=4),ns(r,!0),null===r.tail&&"hidden"===r.tailMode&&!s.alternate)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Go()-r.renderingStartTime>r.tailExpiration&&1<n&&(t.effectTag|=64,i=!0,ns(r,!1),t.expirationTime=t.childExpirationTime=n-1);r.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=r.last)?n.sibling=s:t.child=s,r.last=s)}return null!==r.tail?(0===r.tailExpiration&&(r.tailExpiration=Go()+500),n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Go(),n.sibling=null,t=Ui.current,yo(Ui,i?1&t|2:1&t),n):null}throw Error(a(156,t.tag))}function os(e){switch(e.tag){case 1:Eo(e.type)&&Do();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(qi(),mo(bo),mo(vo),0!=(64&(t=e.effectTag)))throw Error(a(285));return e.effectTag=-4097&t|64,e;case 5:return Bi(e),null;case 13:return mo(Ui),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return mo(Ui),null;case 4:return qi(),null;case 10:return si(e),null;default:return null}}function is(e,t){return{value:e,source:t,stack:ge(t)}}Ga=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Qa=function(){},Va=function(e,t,n,r,i){var a=e.memoizedProps;if(a!==r){var s,l,u=t.stateNode;switch(zi(Ai.current),e=null,n){case"input":a=Ee(u,a),r=Ee(u,r),e=[];break;case"option":a=ke(u,a),r=ke(u,r),e=[];break;case"select":a=o({},a,{value:void 0}),r=o({},r,{value:void 0}),e=[];break;case"textarea":a=Te(u,a),r=Te(u,r),e=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(u.onclick=cn)}for(s in an(n,r),n=null,a)if(!r.hasOwnProperty(s)&&a.hasOwnProperty(s)&&null!=a[s])if("style"===s)for(l in u=a[s])u.hasOwnProperty(l)&&(n||(n={}),n[l]="");else"dangerouslySetInnerHTML"!==s&&"children"!==s&&"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(x.hasOwnProperty(s)?e||(e=[]):(e=e||[]).push(s,null));for(s in r){var c=r[s];if(u=null!=a?a[s]:void 0,r.hasOwnProperty(s)&&c!==u&&(null!=c||null!=u))if("style"===s)if(u){for(l in u)!u.hasOwnProperty(l)||c&&c.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in c)c.hasOwnProperty(l)&&u[l]!==c[l]&&(n||(n={}),n[l]=c[l])}else n||(e||(e=[]),e.push(s,n)),n=c;else"dangerouslySetInnerHTML"===s?(c=c?c.__html:void 0,u=u?u.__html:void 0,null!=c&&u!==c&&(e=e||[]).push(s,c)):"children"===s?u===c||"string"!=typeof c&&"number"!=typeof c||(e=e||[]).push(s,""+c):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&(x.hasOwnProperty(s)?(null!=c&&un(i,s),e||u===c||(e=[])):(e=e||[]).push(s,c))}n&&(e=e||[]).push("style",n),i=e,(t.updateQueue=i)&&(t.effectTag|=4)}},Ka=function(e,t,n,r){n!==r&&(t.effectTag|=4)};var as="function"==typeof WeakSet?WeakSet:Set;function ss(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=ge(n)),null!==n&&ye(n.type),t=t.value,null!==e&&1===e.tag&&ye(e.type);try{console.error(t)}catch(e){setTimeout((function(){throw e}))}}function ls(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Ll(e,t)}else t.current=null}function us(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 3:case 5:case 6:case 4:case 17:return;case 1:if(256&t.effectTag&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:ti(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return}throw Error(a(163))}function cs(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==t)}}function ps(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ds(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:return void ps(3,n);case 1:if(e=n.stateNode,4&n.effectTag)if(null===t)e.componentDidMount();else{var r=n.elementType===n.type?t.memoizedProps:ti(n.type,t.memoizedProps);e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate)}return void(null!==(t=n.updateQueue)&&vi(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}vi(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.effectTag&&Dn(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&zt(n)))))}throw Error(a(163))}function fs(e,t,n){switch("function"==typeof ql&&ql(t),t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var r=e.next;Ko(97<n?97:n,(function(){var e=r;do{var n=e.destroy;if(void 0!==n){var o=t;try{n()}catch(e){Ll(o,e)}}e=e.next}while(e!==r)}))}break;case 1:ls(t),"function"==typeof(n=t.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){Ll(e,t)}}(t,n);break;case 5:ls(t);break;case 4:bs(e,t,n)}}function hs(e){var t=e.alternate;e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingProps=null,e.memoizedProps=null,e.stateNode=null,null!==t&&hs(t)}function ms(e){return 5===e.tag||3===e.tag||4===e.tag}function ys(e){e:{for(var t=e.return;null!==t;){if(ms(t)){var n=t;break e}t=t.return}throw Error(a(160))}switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.effectTag&&(Be(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||ms(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}r?gs(e,n,t):vs(e,n,t)}function gs(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=cn));else if(4!==r&&null!==(e=e.child))for(gs(e,t,n),e=e.sibling;null!==e;)gs(e,t,n),e=e.sibling}function vs(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(vs(e,t,n),e=e.sibling;null!==e;)vs(e,t,n),e=e.sibling}function bs(e,t,n){for(var r,o,i=t,s=!1;;){if(!s){s=i.return;e:for(;;){if(null===s)throw Error(a(160));switch(r=s.stateNode,s.tag){case 5:o=!1;break e;case 3:case 4:r=r.containerInfo,o=!0;break e}s=s.return}s=!0}if(5===i.tag||6===i.tag){e:for(var l=e,u=i,c=n,p=u;;)if(fs(l,p,c),null!==p.child&&4!==p.tag)p.child.return=p,p=p.child;else{if(p===u)break e;for(;null===p.sibling;){if(null===p.return||p.return===u)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}o?(l=r,u=i.stateNode,8===l.nodeType?l.parentNode.removeChild(u):l.removeChild(u)):r.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){r=i.stateNode.containerInfo,o=!0,i.child.return=i,i=i.child;continue}}else if(fs(e,i,n),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(s=!1)}i.sibling.return=i.return,i=i.sibling}}function ws(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void cs(3,t);case 1:case 12:case 17:return;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps,o=null!==e?e.memoizedProps:r;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(n[Nn]=r,"input"===e&&"radio"===r.type&&null!=r.name&&xe(n,r),sn(e,o),t=sn(e,r),o=0;o<i.length;o+=2){var s=i[o],l=i[o+1];"style"===s?rn(n,l):"dangerouslySetInnerHTML"===s?Fe(n,l):"children"===s?Be(n,l):Y(n,s,l,t)}switch(e){case"input":Se(n,r);break;case"textarea":Ce(n,r);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(e=r.value)?Pe(n,!!r.multiple,e,!1):t!==!!r.multiple&&(null!=r.defaultValue?Pe(n,!!r.multiple,r.defaultValue,!0):Pe(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((t=t.stateNode).hydrate&&(t.hydrate=!1,zt(t.containerInfo)));case 13:if(n=t,null===t.memoizedState?r=!1:(r=!0,n=t.child,Js=Go()),null!==n)e:for(e=n;;){if(5===e.tag)i=e.stateNode,r?"function"==typeof(i=i.style).setProperty?i.setProperty("display","none","important"):i.display="none":(i=e.stateNode,o=null!=(o=e.memoizedProps.style)&&o.hasOwnProperty("display")?o.display:null,i.style.display=nn("display",o));else if(6===e.tag)e.stateNode.nodeValue=r?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState&&null===e.memoizedState.dehydrated){(i=e.child.sibling).return=e,e=i;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===n)break;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}return void _s(t);case 19:return void _s(t)}throw Error(a(163))}function _s(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new as),t.forEach((function(t){var r=zl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}var Es="function"==typeof WeakMap?WeakMap:Map;function Ds(e,t,n){(n=hi(n,null)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Zs||(Zs=!0,el=r),ss(e,t)},n}function xs(e,t,n){(n=hi(n,null)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return ss(e,t),r(o)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===tl?tl=new Set([this]):tl.add(this),ss(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}var Ss,Os=Math.ceil,Is=J.ReactCurrentDispatcher,ks=J.ReactCurrentOwner,Ps=0,Ts=8,Ns=16,Cs=32,js=0,As=1,Ls=2,Rs=3,zs=4,Ms=5,qs=Ps,Fs=null,Bs=null,Us=0,$s=js,Hs=null,Ws=1073741823,Gs=1073741823,Qs=null,Vs=0,Ks=!1,Js=0,Ys=500,Xs=null,Zs=!1,el=null,tl=null,nl=!1,rl=null,ol=90,il=null,al=0,sl=null,ll=0;function ul(){return(qs&(Ns|Cs))!==Ps?1073741821-(Go()/10|0):0!==ll?ll:ll=1073741821-(Go()/10|0)}function cl(e,t,n){if(0==(2&(t=t.mode)))return 1073741823;var r=Qo();if(0==(4&t))return 99===r?1073741823:1073741822;if((qs&Ns)!==Ps)return Us;if(null!==n)e=ei(e,0|n.timeoutMs||5e3,250);else switch(r){case 99:e=1073741823;break;case 98:e=ei(e,150,100);break;case 97:case 96:e=ei(e,5e3,250);break;case 95:e=2;break;default:throw Error(a(326))}return null!==Fs&&e===Us&&--e,e}function pl(e,t){if(50<al)throw al=0,sl=null,Error(a(185));if(null!==(e=dl(e,t))){var n=Qo();1073741823===t?(qs&Ts)!==Ps&&(qs&(Ns|Cs))===Ps?yl(e):(hl(e),qs===Ps&&Xo()):hl(e),(4&qs)===Ps||98!==n&&99!==n||(null===il?il=new Map([[e,t]]):(void 0===(n=il.get(e))||n>t)&&il.set(e,t))}}function dl(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var r=e.return,o=null;if(null===r&&3===e.tag)o=e.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<t&&(r.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===r.return&&3===r.tag){o=r.stateNode;break}r=r.return}return null!==o&&(Fs===o&&(Dl(t),$s===zs&&Jl(o,Us)),Yl(o,t)),o}function fl(e){var t=e.lastExpiredTime;if(0!==t)return t;if(!Kl(e,t=e.firstPendingTime))return t;var n=e.lastPingedTime;return 2>=(e=n>(e=e.nextKnownPendingLevel)?n:e)&&t!==e?0:e}function hl(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=Yo(yl.bind(null,e));else{var t=fl(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var r=ul();if(1073741823===t?r=99:1===t||2===t?r=95:r=0>=(r=10*(1073741821-t)-10*(1073741821-r))?99:250>=r?98:5250>=r?97:95,null!==n){var o=e.callbackPriority;if(e.callbackExpirationTime===t&&o>=r)return;n!==qo&&To(n)}e.callbackExpirationTime=t,e.callbackPriority=r,t=1073741823===t?Yo(yl.bind(null,e)):Jo(r,ml.bind(null,e),{timeout:10*(1073741821-t)-Go()}),e.callbackNode=t}}}function ml(e,t){if(ll=0,t)return Xl(e,t=ul()),hl(e),null;var n=fl(e);if(0!==n){if(t=e.callbackNode,(qs&(Ns|Cs))!==Ps)throw Error(a(327));if(Cl(),e===Fs&&n===Us||bl(e,n),null!==Bs){var r=qs;qs|=Ns;for(var o=_l();;)try{Sl();break}catch(t){wl(e,t)}if(ai(),qs=r,Is.current=o,$s===As)throw t=Hs,bl(e,n),Jl(e,n),hl(e),t;if(null===Bs)switch(o=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,r=$s,Fs=null,r){case js:case As:throw Error(a(345));case Ls:Xl(e,2<n?2:n);break;case Rs:if(Jl(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=kl(o)),1073741823===Ws&&10<(o=Js+Ys-Go())){if(Ks){var i=e.lastPingedTime;if(0===i||i>=n){e.lastPingedTime=n,bl(e,n);break}}if(0!==(i=fl(e))&&i!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}e.timeoutHandle=Sn(Pl.bind(null,e),o);break}Pl(e);break;case zs:if(Jl(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=kl(o)),Ks&&(0===(o=e.lastPingedTime)||o>=n)){e.lastPingedTime=n,bl(e,n);break}if(0!==(o=fl(e))&&o!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}if(1073741823!==Gs?r=10*(1073741821-Gs)-Go():1073741823===Ws?r=0:(r=10*(1073741821-Ws)-5e3,0>(r=(o=Go())-r)&&(r=0),(n=10*(1073741821-n)-o)<(r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Os(r/1960))-r)&&(r=n)),10<r){e.timeoutHandle=Sn(Pl.bind(null,e),r);break}Pl(e);break;case Ms:if(1073741823!==Ws&&null!==Qs){i=Ws;var s=Qs;if(0>=(r=0|s.busyMinDurationMs)?r=0:(o=0|s.busyDelayMs,r=(i=Go()-(10*(1073741821-i)-(0|s.timeoutMs||5e3)))<=o?0:o+r-i),10<r){Jl(e,n),e.timeoutHandle=Sn(Pl.bind(null,e),r);break}}Pl(e);break;default:throw Error(a(329))}if(hl(e),e.callbackNode===t)return ml.bind(null,e)}}return null}function yl(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,(qs&(Ns|Cs))!==Ps)throw Error(a(327));if(Cl(),e===Fs&&t===Us||bl(e,t),null!==Bs){var n=qs;qs|=Ns;for(var r=_l();;)try{xl();break}catch(t){wl(e,t)}if(ai(),qs=n,Is.current=r,$s===As)throw n=Hs,bl(e,t),Jl(e,t),hl(e),n;if(null!==Bs)throw Error(a(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,Fs=null,Pl(e),hl(e)}return null}function gl(e,t){var n=qs;qs|=1;try{return e(t)}finally{(qs=n)===Ps&&Xo()}}function vl(e,t){var n=qs;qs&=-2,qs|=Ts;try{return e(t)}finally{(qs=n)===Ps&&Xo()}}function bl(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,On(n)),null!==Bs)for(n=Bs.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&Do();break;case 3:qi(),mo(bo),mo(vo);break;case 5:Bi(r);break;case 4:qi();break;case 13:case 19:mo(Ui);break;case 10:si(r)}n=n.return}Fs=e,Bs=$l(e.current,null),Us=t,$s=js,Hs=null,Gs=Ws=1073741823,Qs=null,Vs=0,Ks=!1}function wl(e,t){for(;;){try{if(ai(),Wi.current=Ea,Yi)for(var n=Vi.memoizedState;null!==n;){var r=n.queue;null!==r&&(r.pending=null),n=n.next}if(Qi=0,Ji=Ki=Vi=null,Yi=!1,null===Bs||null===Bs.return)return $s=As,Hs=t,Bs=null;e:{var o=e,i=Bs.return,a=Bs,s=t;if(t=Us,a.effectTag|=2048,a.firstEffect=a.lastEffect=null,null!==s&&"object"==typeof s&&"function"==typeof s.then){var l=s;if(0==(2&a.mode)){var u=a.alternate;u?(a.updateQueue=u.updateQueue,a.memoizedState=u.memoizedState,a.expirationTime=u.expirationTime):(a.updateQueue=null,a.memoizedState=null)}var c=0!=(1&Ui.current),p=i;do{var d;if(d=13===p.tag){var f=p.memoizedState;if(null!==f)d=null!==f.dehydrated;else{var h=p.memoizedProps;d=void 0!==h.fallback&&(!0!==h.unstable_avoidThisFallback||!c)}}if(d){var m=p.updateQueue;if(null===m){var y=new Set;y.add(l),p.updateQueue=y}else m.add(l);if(0==(2&p.mode)){if(p.effectTag|=64,a.effectTag&=-2981,1===a.tag)if(null===a.alternate)a.tag=17;else{var g=hi(1073741823,null);g.tag=2,mi(a,g)}a.expirationTime=1073741823;break e}s=void 0,a=t;var v=o.pingCache;if(null===v?(v=o.pingCache=new Es,s=new Set,v.set(l,s)):void 0===(s=v.get(l))&&(s=new Set,v.set(l,s)),!s.has(a)){s.add(a);var b=Rl.bind(null,o,l,a);l.then(b,b)}p.effectTag|=4096,p.expirationTime=t;break e}p=p.return}while(null!==p);s=Error((ye(a.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+ge(a))}$s!==Ms&&($s=Ls),s=is(s,a),p=i;do{switch(p.tag){case 3:l=s,p.effectTag|=4096,p.expirationTime=t,yi(p,Ds(p,l,t));break e;case 1:l=s;var w=p.type,_=p.stateNode;if(0==(64&p.effectTag)&&("function"==typeof w.getDerivedStateFromError||null!==_&&"function"==typeof _.componentDidCatch&&(null===tl||!tl.has(_)))){p.effectTag|=4096,p.expirationTime=t,yi(p,xs(p,l,t));break e}}p=p.return}while(null!==p)}Bs=Il(Bs)}catch(e){t=e;continue}break}}function _l(){var e=Is.current;return Is.current=Ea,null===e?Ea:e}function El(e,t){e<Ws&&2<e&&(Ws=e),null!==t&&e<Gs&&2<e&&(Gs=e,Qs=t)}function Dl(e){e>Vs&&(Vs=e)}function xl(){for(;null!==Bs;)Bs=Ol(Bs)}function Sl(){for(;null!==Bs&&!Fo();)Bs=Ol(Bs)}function Ol(e){var t=Ss(e.alternate,e,Us);return e.memoizedProps=e.pendingProps,null===t&&(t=Il(e)),ks.current=null,t}function Il(e){Bs=e;do{var t=Bs.alternate;if(e=Bs.return,0==(2048&Bs.effectTag)){if(t=rs(t,Bs,Us),1===Us||1!==Bs.childExpirationTime){for(var n=0,r=Bs.child;null!==r;){var o=r.expirationTime,i=r.childExpirationTime;o>n&&(n=o),i>n&&(n=i),r=r.sibling}Bs.childExpirationTime=n}if(null!==t)return t;null!==e&&0==(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=Bs.firstEffect),null!==Bs.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=Bs.firstEffect),e.lastEffect=Bs.lastEffect),1<Bs.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=Bs:e.firstEffect=Bs,e.lastEffect=Bs))}else{if(null!==(t=os(Bs)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}if(null!==(t=Bs.sibling))return t;Bs=e}while(null!==Bs);return $s===js&&($s=Ms),null}function kl(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function Pl(e){var t=Qo();return Ko(99,Tl.bind(null,e,t)),null}function Tl(e,t){do{Cl()}while(null!==rl);if((qs&(Ns|Cs))!==Ps)throw Error(a(327));var n=e.finishedWork,r=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var o=kl(n);if(e.firstPendingTime=o,r<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:r<=e.firstSuspendedTime&&(e.firstSuspendedTime=r-1),r<=e.lastPingedTime&&(e.lastPingedTime=0),r<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===Fs&&(Bs=Fs=null,Us=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,o=n.firstEffect):o=n:o=n.firstEffect,null!==o){var i=qs;qs|=Cs,ks.current=null,_n=Qt;var s=mn();if(yn(s)){if("selectionStart"in s)var l={start:s.selectionStart,end:s.selectionEnd};else e:{var u=(l=(l=s.ownerDocument)&&l.defaultView||window).getSelection&&l.getSelection();if(u&&0!==u.rangeCount){l=u.anchorNode;var c=u.anchorOffset,p=u.focusNode;u=u.focusOffset;try{l.nodeType,p.nodeType}catch(e){l=null;break e}var d=0,f=-1,h=-1,m=0,y=0,g=s,v=null;t:for(;;){for(var b;g!==l||0!==c&&3!==g.nodeType||(f=d+c),g!==p||0!==u&&3!==g.nodeType||(h=d+u),3===g.nodeType&&(d+=g.nodeValue.length),null!==(b=g.firstChild);)v=g,g=b;for(;;){if(g===s)break t;if(v===l&&++m===c&&(f=d),v===p&&++y===u&&(h=d),null!==(b=g.nextSibling))break;v=(g=v).parentNode}g=b}l=-1===f||-1===h?null:{start:f,end:h}}else l=null}l=l||{start:0,end:0}}else l=null;En={activeElementDetached:null,focusedElem:s,selectionRange:l},Qt=!1,Xs=o;do{try{Nl()}catch(e){if(null===Xs)throw Error(a(330));Ll(Xs,e),Xs=Xs.nextEffect}}while(null!==Xs);Xs=o;do{try{for(s=e,l=t;null!==Xs;){var w=Xs.effectTag;if(16&w&&Be(Xs.stateNode,""),128&w){var _=Xs.alternate;if(null!==_){var E=_.ref;null!==E&&("function"==typeof E?E(null):E.current=null)}}switch(1038&w){case 2:ys(Xs),Xs.effectTag&=-3;break;case 6:ys(Xs),Xs.effectTag&=-3,ws(Xs.alternate,Xs);break;case 1024:Xs.effectTag&=-1025;break;case 1028:Xs.effectTag&=-1025,ws(Xs.alternate,Xs);break;case 4:ws(Xs.alternate,Xs);break;case 8:bs(s,c=Xs,l),hs(c)}Xs=Xs.nextEffect}}catch(e){if(null===Xs)throw Error(a(330));Ll(Xs,e),Xs=Xs.nextEffect}}while(null!==Xs);if(E=En,_=mn(),w=E.focusedElem,l=E.selectionRange,_!==w&&w&&w.ownerDocument&&hn(w.ownerDocument.documentElement,w)){null!==l&&yn(w)&&(_=l.start,void 0===(E=l.end)&&(E=_),"selectionStart"in w?(w.selectionStart=_,w.selectionEnd=Math.min(E,w.value.length)):(E=(_=w.ownerDocument||document)&&_.defaultView||window).getSelection&&(E=E.getSelection(),c=w.textContent.length,s=Math.min(l.start,c),l=void 0===l.end?s:Math.min(l.end,c),!E.extend&&s>l&&(c=l,l=s,s=c),c=fn(w,s),p=fn(w,l),c&&p&&(1!==E.rangeCount||E.anchorNode!==c.node||E.anchorOffset!==c.offset||E.focusNode!==p.node||E.focusOffset!==p.offset)&&((_=_.createRange()).setStart(c.node,c.offset),E.removeAllRanges(),s>l?(E.addRange(_),E.extend(p.node,p.offset)):(_.setEnd(p.node,p.offset),E.addRange(_))))),_=[];for(E=w;E=E.parentNode;)1===E.nodeType&&_.push({element:E,left:E.scrollLeft,top:E.scrollTop});for("function"==typeof w.focus&&w.focus(),w=0;w<_.length;w++)(E=_[w]).element.scrollLeft=E.left,E.element.scrollTop=E.top}Qt=!!_n,En=_n=null,e.current=n,Xs=o;do{try{for(w=e;null!==Xs;){var D=Xs.effectTag;if(36&D&&ds(w,Xs.alternate,Xs),128&D){_=void 0;var x=Xs.ref;if(null!==x){var S=Xs.stateNode;Xs.tag,_=S,"function"==typeof x?x(_):x.current=_}}Xs=Xs.nextEffect}}catch(e){if(null===Xs)throw Error(a(330));Ll(Xs,e),Xs=Xs.nextEffect}}while(null!==Xs);Xs=null,Bo(),qs=i}else e.current=n;if(nl)nl=!1,rl=e,ol=t;else for(Xs=o;null!==Xs;)t=Xs.nextEffect,Xs.nextEffect=null,Xs=t;if(0===(t=e.firstPendingTime)&&(tl=null),1073741823===t?e===sl?al++:(al=0,sl=e):al=0,"function"==typeof Ml&&Ml(n.stateNode,r),hl(e),Zs)throw Zs=!1,e=el,el=null,e;return(qs&Ts)!==Ps||Xo(),null}function Nl(){for(;null!==Xs;){var e=Xs.effectTag;0!=(256&e)&&us(Xs.alternate,Xs),0==(512&e)||nl||(nl=!0,Jo(97,(function(){return Cl(),null}))),Xs=Xs.nextEffect}}function Cl(){if(90!==ol){var e=97<ol?97:ol;return ol=90,Ko(e,jl)}}function jl(){if(null===rl)return!1;var e=rl;if(rl=null,(qs&(Ns|Cs))!==Ps)throw Error(a(331));var t=qs;for(qs|=Cs,e=e.current.firstEffect;null!==e;){try{var n=e;if(0!=(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:case 22:cs(5,n),ps(5,n)}}catch(t){if(null===e)throw Error(a(330));Ll(e,t)}n=e.nextEffect,e.nextEffect=null,e=n}return qs=t,Xo(),!0}function Al(e,t,n){mi(e,t=Ds(e,t=is(n,t),1073741823)),null!==(e=dl(e,1073741823))&&hl(e)}function Ll(e,t){if(3===e.tag)Al(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Al(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===tl||!tl.has(r))){mi(n,e=xs(n,e=is(t,e),1073741823)),null!==(n=dl(n,1073741823))&&hl(n);break}}n=n.return}}function Rl(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),Fs===e&&Us===n?$s===zs||$s===Rs&&1073741823===Ws&&Go()-Js<Ys?bl(e,Us):Ks=!0:Kl(e,n)&&(0!==(t=e.lastPingedTime)&&t<n||(e.lastPingedTime=n,hl(e)))}function zl(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(t=cl(t=ul(),e,null)),null!==(e=dl(e,t))&&hl(e)}Ss=function(e,t,n){var r=t.expirationTime;if(null!==e){var o=t.pendingProps;if(e.memoizedProps!==o||bo.current)Ra=!0;else{if(r<n){switch(Ra=!1,t.tag){case 3:Wa(t),Aa();break;case 5:if(Fi(t),4&t.mode&&1!==n&&o.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:Eo(t.type)&&Oo(t);break;case 4:Mi(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value,o=t.type._context,yo(ni,o._currentValue),o._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(r=t.child.childExpirationTime)&&r>=n?Ya(e,t,n):(yo(Ui,1&Ui.current),null!==(t=ts(e,t,n))?t.sibling:null);yo(Ui,1&Ui.current);break;case 19:if(r=t.childExpirationTime>=n,0!=(64&e.effectTag)){if(r)return es(e,t,n);t.effectTag|=64}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null),yo(Ui,Ui.current),!r)return null}return ts(e,t,n)}Ra=!1}}else Ra=!1;switch(t.expirationTime=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,o=_o(t,vo.current),ui(t,n),o=ea(null,t,r,e,o,n),t.effectTag|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,Eo(r)){var i=!0;Oo(t)}else i=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,di(t);var s=r.getDerivedStateFromProps;"function"==typeof s&&_i(t,r,s,e),o.updater=Ei,t.stateNode=o,o._reactInternalFiber=t,Oi(t,r,e,n),t=Ha(null,t,r,!0,i,n)}else t.tag=0,za(null,t,o,n),t=t.child;return t;case 16:e:{if(o=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}(o),1!==o._status)throw o._result;switch(o=o._result,t.type=o,i=t.tag=function(e){if("function"==typeof e)return Ul(e)?1:0;if(null!=e){if((e=e.$$typeof)===le)return 11;if(e===pe)return 14}return 2}(o),e=ti(o,e),i){case 0:t=Ua(null,t,o,e,n);break e;case 1:t=$a(null,t,o,e,n);break e;case 11:t=Ma(null,t,o,e,n);break e;case 14:t=qa(null,t,o,ti(o.type,e),r,n);break e}throw Error(a(306,o,""))}return t;case 0:return r=t.type,o=t.pendingProps,Ua(e,t,r,o=t.elementType===r?o:ti(r,o),n);case 1:return r=t.type,o=t.pendingProps,$a(e,t,r,o=t.elementType===r?o:ti(r,o),n);case 3:if(Wa(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,o=null!==(o=t.memoizedState)?o.element:null,fi(e,t),gi(t,r,null,n),(r=t.memoizedState.element)===o)Aa(),t=ts(e,t,n);else{if((o=t.stateNode.hydrate)&&(Ia=In(t.stateNode.containerInfo.firstChild),Oa=t,o=ka=!0),o)for(n=Ci(t,null,r,n),t.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else za(e,t,r,n),Aa();t=t.child}return t;case 5:return Fi(t),null===e&&Na(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,s=o.children,xn(r,o)?s=null:null!==i&&xn(r,i)&&(t.effectTag|=16),Ba(e,t),4&t.mode&&1!==n&&o.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(za(e,t,s,n),t=t.child),t;case 6:return null===e&&Na(t),null;case 13:return Ya(e,t,n);case 4:return Mi(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Ni(t,null,r,n):za(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Ma(e,t,r,o=t.elementType===r?o:ti(r,o),n);case 7:return za(e,t,t.pendingProps,n),t.child;case 8:case 12:return za(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,o=t.pendingProps,s=t.memoizedProps,i=o.value;var l=t.type._context;if(yo(ni,l._currentValue),l._currentValue=i,null!==s)if(l=s.value,0===(i=$r(l,i)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(l,i):1073741823))){if(s.children===o.children&&!bo.current){t=ts(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var u=l.dependencies;if(null!==u){s=l.child;for(var c=u.firstContext;null!==c;){if(c.context===r&&0!=(c.observedBits&i)){1===l.tag&&((c=hi(n,null)).tag=2,mi(l,c)),l.expirationTime<n&&(l.expirationTime=n),null!==(c=l.alternate)&&c.expirationTime<n&&(c.expirationTime=n),li(l.return,n),u.expirationTime<n&&(u.expirationTime=n);break}c=c.next}}else s=10===l.tag&&l.type===t.type?null:l.child;if(null!==s)s.return=l;else for(s=l;null!==s;){if(s===t){s=null;break}if(null!==(l=s.sibling)){l.return=s.return,s=l;break}s=s.return}l=s}za(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=(i=t.pendingProps).children,ui(t,n),r=r(o=ci(o,i.unstable_observedBits)),t.effectTag|=1,za(e,t,r,n),t.child;case 14:return i=ti(o=t.type,t.pendingProps),qa(e,t,o,i=ti(o.type,i),r,n);case 15:return Fa(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ti(r,o),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,Eo(r)?(e=!0,Oo(t)):e=!1,ui(t,n),xi(t,r,o),Oi(t,r,o,n),Ha(null,t,r,!0,e,n);case 19:return es(e,t,n)}throw Error(a(156,t.tag))};var Ml=null,ql=null;function Fl(e,t,n,r){this.tag=e,this.key=n,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=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function Bl(e,t,n,r){return new Fl(e,t,n,r)}function Ul(e){return!(!(e=e.prototype)||!e.isReactComponent)}function $l(e,t){var n=e.alternate;return null===n?((n=Bl(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Hl(e,t,n,r,o,i){var s=2;if(r=e,"function"==typeof e)Ul(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case ne:return Wl(n.children,o,i,t);case se:s=8,o|=7;break;case re:s=8,o|=1;break;case oe:return(e=Bl(12,n,t,8|o)).elementType=oe,e.type=oe,e.expirationTime=i,e;case ue:return(e=Bl(13,n,t,o)).type=ue,e.elementType=ue,e.expirationTime=i,e;case ce:return(e=Bl(19,n,t,o)).elementType=ce,e.expirationTime=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case ie:s=10;break e;case ae:s=9;break e;case le:s=11;break e;case pe:s=14;break e;case de:s=16,r=null;break e;case fe:s=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Bl(s,n,t,o)).elementType=e,t.type=r,t.expirationTime=i,t}function Wl(e,t,n,r){return(e=Bl(7,e,r,t)).expirationTime=n,e}function Gl(e,t,n){return(e=Bl(6,e,null,t)).expirationTime=n,e}function Ql(e,t,n){return(t=Bl(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Vl(e,t,n){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function Kl(e,t){var n=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==n&&n>=t&&e<=t}function Jl(e,t){var n=e.firstSuspendedTime,r=e.lastSuspendedTime;n<t&&(e.firstSuspendedTime=t),(r>t||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function Yl(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function Xl(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function Zl(e,t,n,r){var o=t.current,i=ul(),s=bi.suspense;i=cl(i,o,s);e:if(n){t:{if(et(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(a(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(Eo(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(a(171))}if(1===n.tag){var u=n.type;if(Eo(u)){n=So(n,u,l);break e}}n=l}else n=go;return null===t.context?t.context=n:t.pendingContext=n,(t=hi(i,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),mi(o,t),pl(o,i),i}function eu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function tu(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function nu(e,t){tu(e,t),(e=e.alternate)&&tu(e,t)}function ru(e,t,n){var r=new Vl(e,t,n=null!=n&&!0===n.hydrate),o=Bl(3,null,null,2===t?7:1===t?3:0);r.current=o,o.stateNode=r,di(o),e[Cn]=r.current,n&&0!==t&&function(e,t){var n=Ze(t);It.forEach((function(e){mt(e,t,n)})),kt.forEach((function(e){mt(e,t,n)}))}(0,9===e.nodeType?e:e.ownerDocument),this._internalRoot=r}function ou(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function iu(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i._internalRoot;if("function"==typeof o){var s=o;o=function(){var e=eu(a);s.call(e)}}Zl(t,a,e,o)}else{if(i=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new ru(e,0,t?{hydrate:!0}:void 0)}(n,r),a=i._internalRoot,"function"==typeof o){var l=o;o=function(){var e=eu(a);l.call(e)}}vl((function(){Zl(t,a,e,o)}))}return eu(a)}function au(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!ou(t))throw Error(a(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:te,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}ru.prototype.render=function(e){Zl(e,this._internalRoot,null,null)},ru.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Zl(null,e,null,(function(){t[Cn]=null}))},yt=function(e){if(13===e.tag){var t=ei(ul(),150,100);pl(e,t),nu(e,t)}},gt=function(e){13===e.tag&&(pl(e,3),nu(e,3))},vt=function(e){if(13===e.tag){var t=ul();pl(e,t=cl(t,e,null)),nu(e,t)}},k=function(e,t,n){switch(t){case"input":if(Se(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Rn(r);if(!o)throw Error(a(90));_e(r),Se(r,o)}}}break;case"textarea":Ce(e,n);break;case"select":null!=(t=n.value)&&Pe(e,!!n.multiple,t,!1)}},A=gl,L=function(e,t,n,r,o){var i=qs;qs|=4;try{return Ko(98,e.bind(null,t,n,r,o))}finally{(qs=i)===Ps&&Xo()}},R=function(){(qs&(1|Ns|Cs))===Ps&&(function(){if(null!==il){var e=il;il=null,e.forEach((function(e,t){Xl(t,e),hl(t)})),Xo()}}(),Cl())},z=function(e,t){var n=qs;qs|=2;try{return e(t)}finally{(qs=n)===Ps&&Xo()}};var su={Events:[An,Ln,Rn,O,D,$n,function(e){it(e,Un)},C,j,Xt,lt,Cl,{current:!1}]};!function(e){var t=e.findFiberByHostInstance;(function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);Ml=function(e){try{t.onCommitFiberRoot(n,e,void 0,64==(64&e.current.effectTag))}catch(e){}},ql=function(e){try{t.onCommitFiberUnmount(n,e)}catch(e){}}}catch(e){}})(o({},e,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:J.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=rt(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}))}({findFiberByHostInstance:jn,bundleType:0,version:"16.14.0",rendererPackageName:"react-dom"}),t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=su,t.createPortal=au,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return e=null===(e=rt(t))?null:e.stateNode},t.flushSync=function(e,t){if((qs&(Ns|Cs))!==Ps)throw Error(a(187));var n=qs;qs|=1;try{return Ko(99,e.bind(null,t))}finally{qs=n,Xo()}},t.hydrate=function(e,t,n){if(!ou(t))throw Error(a(200));return iu(null,e,t,!0,n)},t.render=function(e,t,n){if(!ou(t))throw Error(a(200));return iu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!ou(e))throw Error(a(40));return!!e._reactRootContainer&&(vl((function(){iu(null,null,e,!1,(function(){e._reactRootContainer=null,e[Cn]=null}))})),!0)},t.unstable_batchedUpdates=gl,t.unstable_createPortal=function(e,t){return au(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ou(n))throw Error(a(200));if(null==e||void 0===e._reactInternalFiber)throw Error(a(38));return iu(e,t,n,!1,r)},t.version="16.14.0"},3935:(e,t,n)=>{"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=n(4448)},9921:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,p=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,y=n?Symbol.for("react.lazy"):60116,g=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function _(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case p:case i:case s:case a:case f:return e;default:switch(e=e&&e.$$typeof){case u:case d:case y:case m:case l:return e;default:return t}}case o:return t}}}function E(e){return _(e)===p}t.AsyncMode=c,t.ConcurrentMode=p,t.ContextConsumer=u,t.ContextProvider=l,t.Element=r,t.ForwardRef=d,t.Fragment=i,t.Lazy=y,t.Memo=m,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=f,t.isAsyncMode=function(e){return E(e)||_(e)===c},t.isConcurrentMode=E,t.isContextConsumer=function(e){return _(e)===u},t.isContextProvider=function(e){return _(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return _(e)===d},t.isFragment=function(e){return _(e)===i},t.isLazy=function(e){return _(e)===y},t.isMemo=function(e){return _(e)===m},t.isPortal=function(e){return _(e)===o},t.isProfiler=function(e){return _(e)===s},t.isStrictMode=function(e){return _(e)===a},t.isSuspense=function(e){return _(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===p||e===s||e===a||e===f||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===m||e.$$typeof===l||e.$$typeof===u||e.$$typeof===d||e.$$typeof===v||e.$$typeof===b||e.$$typeof===w||e.$$typeof===g)},t.typeOf=_},9864:(e,t,n)=>{"use strict";e.exports=n(9921)},8359:(e,t)=>{"use strict";var n,r=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.server_context"),p=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen");function g(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case i:case s:case a:case d:case f:return e;default:switch(e=e&&e.$$typeof){case c:case u:case p:case m:case h:case l:return e;default:return t}}case o:return t}}}n=Symbol.for("react.module.reference"),t.isContextConsumer=function(e){return g(e)===u}},2973:(e,t,n)=>{"use strict";e.exports=n(8359)},2408:(e,t,n)=>{"use strict";var r=n(7418),o="function"==typeof Symbol&&Symbol.for,i=o?Symbol.for("react.element"):60103,a=o?Symbol.for("react.portal"):60106,s=o?Symbol.for("react.fragment"):60107,l=o?Symbol.for("react.strict_mode"):60108,u=o?Symbol.for("react.profiler"):60114,c=o?Symbol.for("react.provider"):60109,p=o?Symbol.for("react.context"):60110,d=o?Symbol.for("react.forward_ref"):60112,f=o?Symbol.for("react.suspense"):60113,h=o?Symbol.for("react.memo"):60115,m=o?Symbol.for("react.lazy"):60116,y="function"==typeof Symbol&&Symbol.iterator;function g(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);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 v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b={};function w(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||v}function _(){}function E(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||v}w.prototype.isReactComponent={},w.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(g(85));this.updater.enqueueSetState(this,e,t,"setState")},w.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},_.prototype=w.prototype;var D=E.prototype=new _;D.constructor=E,r(D,w.prototype),D.isPureReactComponent=!0;var x={current:null},S=Object.prototype.hasOwnProperty,O={key:!0,ref:!0,__self:!0,__source:!0};function I(e,t,n){var r,o={},a=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)S.call(t,r)&&!O.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];o.children=u}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:i,type:e,key:a,ref:s,props:o,_owner:x.current}}function k(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var P=/\/+/g,T=[];function N(e,t,n,r){if(T.length){var o=T.pop();return o.result=e,o.keyPrefix=t,o.func=n,o.context=r,o.count=0,o}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function C(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>T.length&&T.push(e)}function j(e,t,n,r){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var s=!1;if(null===e)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case i:case a:s=!0}}if(s)return n(r,e,""===t?"."+L(e,0):t),1;if(s=0,t=""===t?".":t+":",Array.isArray(e))for(var l=0;l<e.length;l++){var u=t+L(o=e[l],l);s+=j(o,u,n,r)}else if(null===e||"object"!=typeof e?u=null:u="function"==typeof(u=y&&e[y]||e["@@iterator"])?u:null,"function"==typeof u)for(e=u.call(e),l=0;!(o=e.next()).done;)s+=j(o=o.value,u=t+L(o,l++),n,r);else if("object"===o)throw n=""+e,Error(g(31,"[object Object]"===n?"object with keys {"+Object.keys(e).join(", ")+"}":n,""));return s}function A(e,t,n){return null==e?0:j(e,"",t,n)}function L(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 R(e,t){e.func.call(e.context,t,e.count++)}function z(e,t,n){var r=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?M(e,r,n,(function(e){return e})):null!=e&&(k(e)&&(e=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,o+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(P,"$&/")+"/")+n)),r.push(e))}function M(e,t,n,r,o){var i="";null!=n&&(i=(""+n).replace(P,"$&/")+"/"),A(e,z,t=N(t,i,r,o)),C(t)}var q={current:null};function F(){var e=q.current;if(null===e)throw Error(g(321));return e}var B={ReactCurrentDispatcher:q,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:x,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:function(e,t,n){if(null==e)return e;var r=[];return M(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;A(e,R,t=N(null,null,t,n)),C(t)},count:function(e){return A(e,(function(){return null}),null)},toArray:function(e){var t=[];return M(e,t,null,(function(e){return e})),t},only:function(e){if(!k(e))throw Error(g(143));return e}},t.Component=w,t.Fragment=s,t.Profiler=u,t.PureComponent=E,t.StrictMode=l,t.Suspense=f,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=B,t.cloneElement=function(e,t,n){if(null==e)throw Error(g(267,e));var o=r({},e.props),a=e.key,s=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,l=x.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in t)S.call(t,c)&&!O.hasOwnProperty(c)&&(o[c]=void 0===t[c]&&void 0!==u?u[c]:t[c])}var c=arguments.length-2;if(1===c)o.children=n;else if(1<c){u=Array(c);for(var p=0;p<c;p++)u[p]=arguments[p+2];o.children=u}return{$$typeof:i,type:e.type,key:a,ref:s,props:o,_owner:l}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:p,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:c,_context:e},e.Consumer=e},t.createElement=I,t.createFactory=function(e){var t=I.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:d,render:e}},t.isValidElement=k,t.lazy=function(e){return{$$typeof:m,_ctor:e,_status:-1,_result:null}},t.memo=function(e,t){return{$$typeof:h,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return F().useCallback(e,t)},t.useContext=function(e,t){return F().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return F().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return F().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return F().useLayoutEffect(e,t)},t.useMemo=function(e,t){return F().useMemo(e,t)},t.useReducer=function(e,t,n){return F().useReducer(e,t,n)},t.useRef=function(e){return F().useRef(e)},t.useState=function(e){return F().useState(e)},t.version="16.14.0"},7294:(e,t,n)=>{"use strict";e.exports=n(2408)},2236:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActionCreators=t.ActionTypes=void 0;var n={UNDO:"@@redux-undo/UNDO",REDO:"@@redux-undo/REDO",JUMP_TO_FUTURE:"@@redux-undo/JUMP_TO_FUTURE",JUMP_TO_PAST:"@@redux-undo/JUMP_TO_PAST",JUMP:"@@redux-undo/JUMP",CLEAR_HISTORY:"@@redux-undo/CLEAR_HISTORY"};t.ActionTypes=n;var r={undo:function(){return{type:n.UNDO}},redo:function(){return{type:n.REDO}},jumpToFuture:function(e){return{type:n.JUMP_TO_FUTURE,index:e}},jumpToPast:function(e){return{type:n.JUMP_TO_PAST,index:e}},jump:function(e){return{type:n.JUMP,index:e}},clearHistory:function(){return{type:n.CLEAR_HISTORY}}};t.ActionCreators=r},8823:(e,t)=>{"use strict";function n(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(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")}()}var r,o;Object.defineProperty(t,"__esModule",{value:!0}),t.set=function(e){r=e},t.start=function(e,t){void(o={header:[],prev:[],action:[],next:[],msgs:[]}),r&&(console.group?(o.header=["%credux-undo","font-style: italic","action",e.type],o.action=a("action",i.action,e),o.prev=a("prev history",i.prevState,t)):(o.header=["redux-undo action",e.type],o.action=["action",e],o.prev=["prev history",t]))},t.end=function(e){r&&(console.group?o.next=a("next history",i.nextState,e):o.next=["next history",e],function(){var e=o,t=e.header,r=e.prev,i=e.next,a=e.action,s=e.msgs;if(console.group){var l,u,c,p,d;(l=console).groupCollapsed.apply(l,n(t)),(u=console).log.apply(u,n(r)),(c=console).log.apply(c,n(a)),(p=console).log.apply(p,n(i)),(d=console).log.apply(d,n(s)),console.groupEnd()}else{var f,h,m,y,g;(f=console).log.apply(f,n(t)),(h=console).log.apply(h,n(r)),(m=console).log.apply(m,n(a)),(y=console).log.apply(y,n(i)),(g=console).log.apply(g,n(s))}}())},t.log=function(){if(r){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];o.msgs=o.msgs.concat([].concat(t,["\n"]))}};var i={prevState:"#9E9E9E",action:"#03A9F4",nextState:"#4CAF50"};function a(e,t,n){return["%c".concat(e),"color: ".concat(t,"; font-weight: bold"),n]}},1619:(e,t)=>{"use strict";function n(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return Array.isArray(e)?e:"string"==typeof e?[e]:t}Object.defineProperty(t,"__esModule",{value:!0}),t.parseActions=n,t.isHistory=function(e){return void 0!==e.present&&void 0!==e.future&&void 0!==e.past&&Array.isArray(e.future)&&Array.isArray(e.past)},t.includeAction=function(e){var t=n(e);return function(e){return t.indexOf(e.type)>=0}},t.excludeAction=function(e){var t=n(e);return function(e){return t.indexOf(e.type)<0}},t.combineFilters=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return function(n,r,o){return e(n,r,o)&&t(n,r,o)}}),(function(){return!0}))},t.groupByActionTypes=function(e){var t=n(e);return function(e){return t.indexOf(e.type)>=0?e.type:null}},t.newHistory=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return{past:e,present:t,future:n,group:r,_latestUnfiltered:t,index:e.length,limit:e.length+n.length+1}}},1090:(e,t,n)=>{"use strict";Object.defineProperty(t,"zF",{enumerable:!0,get:function(){return o.ActionCreators}}),Object.defineProperty(t,"kw",{enumerable:!0,get:function(){return i.excludeAction}}),Object.defineProperty(t,"ZP",{enumerable:!0,get:function(){return a.default}});var r,o=n(2236),i=n(1619),a=(r=n(2479))&&r.__esModule?r:{default:r}},2479:(e,t,n)=>{"use strict";function r(e){return r="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},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o.set(t.debug);var n,r=u({limit:void 0,filter:function(){return!0},groupBy:function(){return null},undoType:i.ActionTypes.UNDO,redoType:i.ActionTypes.REDO,jumpToPastType:i.ActionTypes.JUMP_TO_PAST,jumpToFutureType:i.ActionTypes.JUMP_TO_FUTURE,jumpType:i.ActionTypes.JUMP,neverSkipReducer:!1,ignoreInitialState:!1,syncFilter:!1},t,{initTypes:(0,a.parseActions)(t.initTypes,["@@redux-undo/INIT"]),clearHistoryType:(0,a.parseActions)(t.clearHistoryType,[i.ActionTypes.CLEAR_HISTORY])}),s=r.neverSkipReducer?function(t,n){for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];return u({},t,{present:e.apply(void 0,[t.present,n].concat(o))})}:function(e){return e};return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o.start(i,t);for(var l,u,c=t,y=arguments.length,g=new Array(y>2?y-2:0),v=2;v<y;v++)g[v-2]=arguments[v];if(!n){if(o.log("history is uninitialized"),void 0===t){return c=d(e.apply(void 0,[t,{type:"@@redux-undo/CREATE_HISTORY"}].concat(g)),r.ignoreInitialState),o.log("do not set initialState on probe actions"),o.end(c),c}(0,a.isHistory)(t)?(c=n=r.ignoreInitialState?t:(0,a.newHistory)(t.past,t.present,t.future),o.log("initialHistory initialized: initialState is a history",n)):(c=n=d(t,r.ignoreInitialState),o.log("initialHistory initialized: initialState is not a history",n))}switch(i.type){case void 0:return c;case r.undoType:return l=m(c,-1),o.log("perform undo"),o.end(l),s.apply(void 0,[l,i].concat(g));case r.redoType:return l=m(c,1),o.log("perform redo"),o.end(l),s.apply(void 0,[l,i].concat(g));case r.jumpToPastType:return l=h(c,i.index),o.log("perform jumpToPast to ".concat(i.index)),o.end(l),s.apply(void 0,[l,i].concat(g));case r.jumpToFutureType:return l=f(c,i.index),o.log("perform jumpToFuture to ".concat(i.index)),o.end(l),s.apply(void 0,[l,i].concat(g));case r.jumpType:return l=m(c,i.index),o.log("perform jump to ".concat(i.index)),o.end(l),s.apply(void 0,[l,i].concat(g));case u=i.type,r.clearHistoryType.indexOf(u)>-1?u:!u:return l=d(c.present,r.ignoreInitialState),o.log("perform clearHistory"),o.end(l),s.apply(void 0,[l,i].concat(g));default:if(l=e.apply(void 0,[c.present,i].concat(g)),r.initTypes.some((function(e){return e===i.type})))return o.log("reset history due to init action"),o.end(n),n;if(c._latestUnfiltered===l)return c;if("function"==typeof r.filter&&!r.filter(i,l,c)){var b=(0,a.newHistory)(c.past,l,c.future,c.group);return r.syncFilter||(b._latestUnfiltered=c._latestUnfiltered),o.log("filter ignored action, not storing it in past"),o.end(b),b}var w=r.groupBy(i,l,c);if(null!=w&&w===c.group){var _=(0,a.newHistory)(c.past,l,c.future,c.group);return o.log("groupBy grouped the action with the previous action"),o.end(_),_}return c=function(e,t,n,r){var i=e.past.length+1;o.log("inserting",t),o.log("new free: ",n-i);var s=e.past,l=e._latestUnfiltered,u=n&&n<=i,c=s.slice(u?1:0),d=null!=l?[].concat(p(c),[l]):c;return(0,a.newHistory)(d,t,[],r)}(c,l,r.limit,w),o.log("inserted new state into history"),o.end(c),c}}};var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(8823)),i=n(2236),a=n(1619);function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(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 d(e,t){var n=(0,a.newHistory)([],e,[]);return t&&(n._latestUnfiltered=null),n}function f(e,t){if(t<0||t>=e.future.length)return e;var n=e.past,r=e.future,o=e._latestUnfiltered,i=[].concat(p(n),[o],p(r.slice(0,t))),s=r[t],l=r.slice(t+1);return(0,a.newHistory)(i,s,l)}function h(e,t){if(t<0||t>=e.past.length)return e;var n=e.past,r=e.future,o=e._latestUnfiltered,i=n.slice(0,t),s=[].concat(p(n.slice(t+1)),[o],p(r)),l=n[t];return(0,a.newHistory)(i,l,s)}function m(e,t){return t>0?f(e,t-1):t<0?h(e,e.past.length+t):e}},53:(e,t)=>{"use strict";var n,r,o,i,a;if("undefined"==typeof window||"function"!=typeof MessageChannel){var s=null,l=null,u=function(){if(null!==s)try{var e=t.unstable_now();s(!0,e),s=null}catch(e){throw setTimeout(u,0),e}},c=Date.now();t.unstable_now=function(){return Date.now()-c},n=function(e){null!==s?setTimeout(n,0,e):(s=e,setTimeout(u,0))},r=function(e,t){l=setTimeout(e,t)},o=function(){clearTimeout(l)},i=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var p=window.performance,d=window.Date,f=window.setTimeout,h=window.clearTimeout;if("undefined"!=typeof console){var m=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof m&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof p&&"function"==typeof p.now)t.unstable_now=function(){return p.now()};else{var y=d.now();t.unstable_now=function(){return d.now()-y}}var g=!1,v=null,b=-1,w=5,_=0;i=function(){return t.unstable_now()>=_},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):w=0<e?Math.floor(1e3/e):5};var E=new MessageChannel,D=E.port2;E.port1.onmessage=function(){if(null!==v){var e=t.unstable_now();_=e+w;try{v(!0,e)?D.postMessage(null):(g=!1,v=null)}catch(e){throw D.postMessage(null),e}}else g=!1},n=function(e){v=e,g||(g=!0,D.postMessage(null))},r=function(e,n){b=f((function(){e(t.unstable_now())}),n)},o=function(){h(b),b=-1}}function x(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,o=e[r];if(!(void 0!==o&&0<I(o,t)))break e;e[r]=t,e[n]=o,n=r}}function S(e){return void 0===(e=e[0])?null:e}function O(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length;r<o;){var i=2*(r+1)-1,a=e[i],s=i+1,l=e[s];if(void 0!==a&&0>I(a,n))void 0!==l&&0>I(l,a)?(e[r]=l,e[s]=n,r=s):(e[r]=a,e[i]=n,r=i);else{if(!(void 0!==l&&0>I(l,n)))break e;e[r]=l,e[s]=n,r=s}}}return t}return null}function I(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var k=[],P=[],T=1,N=null,C=3,j=!1,A=!1,L=!1;function R(e){for(var t=S(P);null!==t;){if(null===t.callback)O(P);else{if(!(t.startTime<=e))break;O(P),t.sortIndex=t.expirationTime,x(k,t)}t=S(P)}}function z(e){if(L=!1,R(e),!A)if(null!==S(k))A=!0,n(M);else{var t=S(P);null!==t&&r(z,t.startTime-e)}}function M(e,n){A=!1,L&&(L=!1,o()),j=!0;var a=C;try{for(R(n),N=S(k);null!==N&&(!(N.expirationTime>n)||e&&!i());){var s=N.callback;if(null!==s){N.callback=null,C=N.priorityLevel;var l=s(N.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?N.callback=l:N===S(k)&&O(k),R(n)}else O(k);N=S(k)}if(null!==N)var u=!0;else{var c=S(P);null!==c&&r(z,c.startTime-n),u=!1}return u}finally{N=null,C=a,j=!1}}function q(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var F=a;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(){A||j||(A=!0,n(M))},t.unstable_getCurrentPriorityLevel=function(){return C},t.unstable_getFirstCallbackNode=function(){return S(k)},t.unstable_next=function(e){switch(C){case 1:case 2:case 3:var t=3;break;default:t=C}var n=C;C=t;try{return e()}finally{C=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=F,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=C;C=e;try{return t()}finally{C=n}},t.unstable_scheduleCallback=function(e,i,a){var s=t.unstable_now();if("object"==typeof a&&null!==a){var l=a.delay;l="number"==typeof l&&0<l?s+l:s,a="number"==typeof a.timeout?a.timeout:q(e)}else a=q(e),l=s;return e={id:T++,callback:i,priorityLevel:e,startTime:l,expirationTime:a=l+a,sortIndex:-1},l>s?(e.sortIndex=l,x(P,e),null===S(k)&&e===S(P)&&(L?o():L=!0,r(z,l-s))):(e.sortIndex=a,x(k,e),A||j||(A=!0,n(M))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();R(e);var n=S(k);return n!==N&&null!==N&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<N.expirationTime||i()},t.unstable_wrapCallback=function(e){var t=C;return function(){var n=C;C=t;try{return e.apply(this,arguments)}finally{C=n}}}},3840:(e,t,n)=>{"use strict";e.exports=n(53)},7478:(e,t,n)=>{"use strict";var r=n(210),o=n(1924),i=n(631),a=r("%TypeError%"),s=r("%WeakMap%",!0),l=r("%Map%",!0),u=o("WeakMap.prototype.get",!0),c=o("WeakMap.prototype.set",!0),p=o("WeakMap.prototype.has",!0),d=o("Map.prototype.get",!0),f=o("Map.prototype.set",!0),h=o("Map.prototype.has",!0),m=function(e,t){for(var n,r=e;null!==(n=r.next);r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n};e.exports=function(){var e,t,n,r={assert:function(e){if(!r.has(e))throw new a("Side channel does not contain "+i(e))},get:function(r){if(s&&r&&("object"==typeof r||"function"==typeof r)){if(e)return u(e,r)}else if(l){if(t)return d(t,r)}else if(n)return function(e,t){var n=m(e,t);return n&&n.value}(n,r)},has:function(r){if(s&&r&&("object"==typeof r||"function"==typeof r)){if(e)return p(e,r)}else if(l){if(t)return h(t,r)}else if(n)return function(e,t){return!!m(e,t)}(n,r);return!1},set:function(r,o){s&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new s),c(e,r,o)):l?(t||(t=new l),f(t,r,o)):(n||(n={key:{},next:null}),function(e,t,n){var r=m(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(n,r,o))}};return r}},2392:function(e){var t;"undefined"!=typeof self&&self,t=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return(e=r,e&&e.__esModule?e:{default:e}).default;var e}}),e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(e,t){var n=t&&t.keyField||"key",r=t&&t.childrenField||"children",o=i(e),s=a([],n,r);return o.map(s)};var o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(2)),i=function(e){return e.map((function(t,n){return{prevNode:e[n-1]||null,currentNode:t,nextNode:e[n+1]||null}}))},a=function e(t,n,a){return function(s){var l=s.prevNode,u=s.currentNode,c=s.nextNode,p=t&&t[t.length-1]||null,d=null,f=null,h=null,m=null,y=[],g=l?l[n]:null,v=c?c[n]:null;if(p&&(d=p[n],y=p.nodeData.ancestors.concat([d]),f=p[a].indexOf(u)),o.hasChildren(u,a))m=u[a][0][n];else if(v)m=v;else{var b=t.filter((function(e){return!!e.nodeData.nextSibling})).map((function(e){return e.nodeData.nextSibling}));m=b.length>0?b.pop():null}if(l&&o.hasChildren(l,a)){var w=l[a];h=w[w.length-1][n]}else h=g||p&&p[n];var _=o.countDescendants(u,a),E=o.countChildren(u,a),D=r({},u,{nodeData:{parent:d,prev:h,prevSibling:g,next:m,nextSibling:v,siblingIndex:f,ancestors:y,numDescendants:_,numChildren:E}});if(o.hasChildren(u,a)){var x=i(u[a]),S=e([].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(t),[D]),n,a);D[a]=x.map(S)}return D}};e.exports=t.default},function(e,t,n){"use strict";function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"children";return!!e[t]&&e[t].length>=0}Object.defineProperty(t,"__esModule",{value:!0}),t.hasChildren=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"children";return!!e[t]&&e[t].length>0},t.isBranch=r,t.countDescendants=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"children";return r(t,n)?t[n].reduce((function(t,o){return r(o,n)?t+e(o,n):t+1}),0):0},t.countChildren=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"children";return r(e,t)?e[t].length:0}}])},e.exports=t()},8619:function(e){var t;"undefined"!=typeof self&&self,t=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return(e=r,e&&e.__esModule?e:{default:e}).default;var e}}),e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var s=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.keyField=t.keyField||"key",this.childrenField=t.childrenField||"children"}return o(e,[{key:"hasChildren",value:function(e){var t=e&&e[this.childrenField];return t&&t.length>0}},{key:"isBranch",value:function(e){var t=e&&e[this.childrenField];return t&&t.length>=0}},{key:"getNodeByKey",value:function(e,t){var n=null,r=this,o=!0,i=!1,a=void 0;try{for(var s,l=e[Symbol.iterator]();!(o=(s=l.next()).done);o=!0){var u=s.value;if(u[r.keyField]===t?n=u:r.hasChildren(u)&&(n=r.getNodeByKey(u[r.childrenField],t)),n)break}}catch(e){i=!0,a=e}finally{try{!o&&l.return&&l.return()}finally{if(i)throw a}}return n}},{key:"findNodes",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=[],o=this,i=!0,s=!1,l=void 0;try{for(var u,c=e[Symbol.iterator]();!(i=(u=c.next()).done);i=!0){var p=u.value;if(t(p,n)&&(r=[].concat(a(r),[p])),o.hasChildren(p)){var d=o.findNodes(p[o.childrenField],t,[].concat(a(n),[p]));r=[].concat(a(r),a(d))}}}catch(e){s=!0,l=e}finally{try{!i&&c.return&&c.return()}finally{if(s)throw l}}return r}},{key:"filterNode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=null,o=this,s=o.isBranch(e)?e[o.childrenField].map((function(r){return o.filterNode(r,t,[].concat(a(n),[e]))})).filter((function(e){return null!==e})):null,l=s&&s.length>0;if(t(e,n)||l){var u=s?i({},o.childrenField,s):{};r=Object.assign({},e,u)}return r}},{key:"filterNodes",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return e.map((function(e){return n.filterNode(e,t,r)})).filter((function(e){return null!==e}))}},{key:"sortNode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=this;if(o.hasChildren(e)){var s=[].concat(a(e[o.childrenField])).sort((function(){for(var r=arguments.length,o=Array(r),i=0;i<r;i++)o[i]=arguments[i];return t.apply(void 0,o.concat([[].concat(a(n),[e])]))})).map((function(r){return o.sortNode(r,t,[].concat(a(n),[e,r]))}));return r({},e,i({},o.childrenField,s))}return e}},{key:"sortNodes",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return e.sort((function(){for(var e=arguments.length,n=Array(e),o=0;o<e;o++)n[o]=arguments[o];return t.apply(void 0,n.concat([r]))})).map((function(e){return n.sortNode(e,t,r)}))}},{key:"mapNode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=this,i=t(r({},e),n);if(o.hasChildren(e)){var s=e[o.childrenField].map((function(e){return o.mapNode(e,t,[].concat(a(n),[i]))}));i[o.childrenField]=s}return i}},{key:"mapNodes",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return e.map((function(e){return n.mapNode(e,t,r)}))}},{key:"renameChildrenFieldForNode",value:function(e,t){var n=this,o=e[n.childrenField],i=r({},e);return n.hasChildren(e)&&(delete i[n.childrenField],i[t]=o.map((function(e){return n.renameChildrenFieldForNode(e,t)}))),i}},{key:"renameChildrenFieldForNodes",value:function(e,t){var n=this;return e.map((function(e){return n.renameChildrenFieldForNode(e,t)}))}}]),e}();t.default=s,e.exports=t.default}])},e.exports=t()},3250:(e,t,n)=>{"use strict";var r=n(7294);var o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,a=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,c=r[1];return s((function(){o.value=n,o.getSnapshot=t,u(o)&&c({inst:o})}),[e,n,t]),a((function(){return u(o)&&c({inst:o}),e((function(){u(o)&&c({inst:o})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},139:(e,t,n)=>{"use strict";var r=n(7294),o=n(1688);var i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=o.useSyncExternalStore,s=r.useRef,l=r.useEffect,u=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var p=s(null);if(null===p.current){var d={hasValue:!1,value:null};p.current=d}else d=p.current;p=u((function(){function e(e){if(!l){if(l=!0,a=e,e=r(e),void 0!==o&&d.hasValue){var t=d.value;if(o(t,e))return s=t}return s=e}if(t=s,i(a,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(a=e,s=n)}var a,s,l=!1,u=void 0===n?null:n;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]}),[t,n,r,o]);var f=a(e,p[0],p[1]);return l((function(){d.hasValue=!0,d.value=f}),[f]),c(f),f}},1688:(e,t,n)=>{"use strict";e.exports=n(3250)},2798:(e,t,n)=>{"use strict";e.exports=n(139)},4654:()=>{}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{"use strict";var e=n(7294),t=n(3935),r=n(1688),o=n(2798);let i=function(e){e()};const a=()=>i,s=(0,e.createContext)(null);let l=null;function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(this,arguments)}function c(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var p=n(8679),d=n.n(p),f=n(2973);const h=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function m(e,t,n,r,{areStatesEqual:o,areOwnPropsEqual:i,areStatePropsEqual:a}){let s,l,u,c,p,d=!1;function f(d,f){const h=!i(f,l),m=!o(d,s,f,l);return s=d,l=f,h&&m?(u=e(s,l),t.dependsOnOwnProps&&(c=t(r,l)),p=n(u,c,l),p):h?(e.dependsOnOwnProps&&(u=e(s,l)),t.dependsOnOwnProps&&(c=t(r,l)),p=n(u,c,l),p):m?function(){const t=e(s,l),r=!a(t,u);return u=t,r&&(p=n(u,c,l)),p}():p}return function(o,i){return d?f(o,i):(s=o,l=i,u=e(s,l),c=t(r,l),p=n(u,c,l),d=!0,p)}}function y(e){return function(t){const n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function g(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function v(e,t){return function(t,{displayName:n}){const r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e,void 0)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=g(e);let o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=g(o),o=r(t,n)),o},r}}function b(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function w(e,t,n){return u({},n,e,t)}const _={notify(){},get:()=>[]};function E(e,t){let n,r=_;function o(){s.onStateChange&&s.onStateChange()}function i(){n||(n=t?t.addNestedSub(o):e.subscribe(o),r=function(){const e=a();let t=null,n=null;return{clear(){t=null,n=null},notify(){e((()=>{let e=t;for(;e;)e.callback(),e=e.next}))},get(){let e=[],n=t;for(;n;)e.push(n),n=n.next;return e},subscribe(e){let r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}())}const s={addNestedSub:function(e){return i(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:o,isSubscribed:function(){return Boolean(n)},trySubscribe:i,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=_)},getListeners:()=>r};return s}const D=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement)?e.useLayoutEffect:e.useEffect;function x(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function S(e,t){if(x(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!x(e[n[r]],t[n[r]]))return!1;return!0}const O=["reactReduxForwardedRef"];let I=()=>{throw new Error("uSES not initialized!")};const k=[null,null];function P(e,t,n,r,o,i){e.current=r,n.current=!1,o.current&&(o.current=null,i())}function T(e,t){return e===t}const N=function(t,n,r,{pure:o,areStatesEqual:i=T,areOwnPropsEqual:a=S,areStatePropsEqual:l=S,areMergedPropsEqual:p=S,forwardRef:g=!1,context:_=s}={}){const x=_,N=function(e){return e?"function"==typeof e?v(e):b(e,"mapStateToProps"):y((()=>({})))}(t),C=function(e){return e&&"object"==typeof e?y((t=>function(e,t){const n={};for(const r in e){const o=e[r];"function"==typeof o&&(n[r]=(...e)=>t(o(...e)))}return n}(e,t))):e?"function"==typeof e?v(e):b(e,"mapDispatchToProps"):y((e=>({dispatch:e})))}(n),j=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:n,areMergedPropsEqual:r}){let o,i=!1;return function(t,n,a){const s=e(t,n,a);return i?r(s,o)||(o=s):(i=!0,o=s),o}}}(e):b(e,"mergeProps"):()=>w}(r),A=Boolean(t);return t=>{const n=t.displayName||t.name||"Component",r=`Connect(${n})`,o={shouldHandleStateChanges:A,displayName:r,wrappedComponentName:n,WrappedComponent:t,initMapStateToProps:N,initMapDispatchToProps:C,initMergeProps:j,areStatesEqual:i,areStatePropsEqual:l,areOwnPropsEqual:a,areMergedPropsEqual:p};function s(n){const[r,i,a]=(0,e.useMemo)((()=>{const{reactReduxForwardedRef:e}=n,t=c(n,O);return[n.context,e,t]}),[n]),s=(0,e.useMemo)((()=>r&&r.Consumer&&(0,f.isContextConsumer)(e.createElement(r.Consumer,null))?r:x),[r,x]),l=(0,e.useContext)(s),p=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch),d=Boolean(l)&&Boolean(l.store);const y=p?n.store:l.store,g=d?l.getServerState:y.getState,v=(0,e.useMemo)((()=>function(e,t){let{initMapStateToProps:n,initMapDispatchToProps:r,initMergeProps:o}=t,i=c(t,h);return m(n(e,i),r(e,i),o(e,i),e,i)}(y.dispatch,o)),[y]),[b,w]=(0,e.useMemo)((()=>{if(!A)return k;const e=E(y,p?void 0:l.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[y,p,l]),_=(0,e.useMemo)((()=>p?l:u({},l,{subscription:b})),[p,l,b]),S=(0,e.useRef)(),T=(0,e.useRef)(a),N=(0,e.useRef)(),C=(0,e.useRef)(!1),j=((0,e.useRef)(!1),(0,e.useRef)(!1)),L=(0,e.useRef)();D((()=>(j.current=!0,()=>{j.current=!1})),[]);const R=(0,e.useMemo)((()=>()=>N.current&&a===T.current?N.current:v(y.getState(),a)),[y,a]),z=(0,e.useMemo)((()=>e=>b?function(e,t,n,r,o,i,a,s,l,u,c){if(!e)return()=>{};let p=!1,d=null;const f=()=>{if(p||!s.current)return;const e=t.getState();let n,f;try{n=r(e,o.current)}catch(e){f=e,d=e}f||(d=null),n===i.current?a.current||u():(i.current=n,l.current=n,a.current=!0,c())};return n.onStateChange=f,n.trySubscribe(),f(),()=>{if(p=!0,n.tryUnsubscribe(),n.onStateChange=null,d)throw d}}(A,y,b,v,T,S,C,j,N,w,e):()=>{}),[b]);var M,q,F;let B;M=P,q=[T,S,C,a,N,w],D((()=>M(...q)),F);try{B=I(z,R,g?()=>v(g(),a):R)}catch(e){throw L.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${L.current.stack}\n\n`),e}D((()=>{L.current=void 0,N.current=void 0,S.current=B}));const U=(0,e.useMemo)((()=>e.createElement(t,u({},B,{ref:i}))),[i,t,B]);return(0,e.useMemo)((()=>A?e.createElement(s.Provider,{value:_},U):U),[s,U,_])}const y=e.memo(s);if(y.WrappedComponent=t,y.displayName=s.displayName=r,g){const n=e.forwardRef((function(t,n){return e.createElement(y,u({},t,{reactReduxForwardedRef:n}))}));return n.displayName=r,n.WrappedComponent=t,d()(n,t)}return d()(y,t)}};const C=function({store:t,context:n,children:r,serverState:o}){const i=(0,e.useMemo)((()=>{const e=E(t);return{store:t,subscription:e,getServerState:o?()=>o:void 0}}),[t,o]),a=(0,e.useMemo)((()=>t.getState()),[t]);D((()=>{const{subscription:e}=i;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),a!==t.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}}),[i,a]);const l=n||s;return e.createElement(l.Provider,{value:i},r)};var j,A;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 R(e){var t=function(e,t){if("object"!==L(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==L(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===L(t)?t:String(t)}function z(e,t,n){return(t=R(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?M(Object(n),!0).forEach((function(t){z(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function F(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}j=o.useSyncExternalStoreWithSelector,l=j,(e=>{I=e})(r.useSyncExternalStore),A=t.unstable_batchedUpdates,i=A;var B="function"==typeof Symbol&&Symbol.observable||"@@observable",U=function(){return Math.random().toString(36).substring(7).split("").join(".")},$={INIT:"@@redux/INIT"+U(),REPLACE:"@@redux/REPLACE"+U(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+U()}};function H(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function W(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(F(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(F(1));return n(W)(e,t)}if("function"!=typeof e)throw new Error(F(2));var o=e,i=t,a=[],s=a,l=!1;function u(){s===a&&(s=a.slice())}function c(){if(l)throw new Error(F(3));return i}function p(e){if("function"!=typeof e)throw new Error(F(4));if(l)throw new Error(F(5));var t=!0;return u(),s.push(e),function(){if(t){if(l)throw new Error(F(6));t=!1,u();var n=s.indexOf(e);s.splice(n,1),a=null}}}function d(e){if(!H(e))throw new Error(F(7));if(void 0===e.type)throw new Error(F(8));if(l)throw new Error(F(9));try{l=!0,i=o(i,e)}finally{l=!1}for(var t=a=s,n=0;n<t.length;n++){(0,t[n])()}return e}return d({type:$.INIT}),(r={dispatch:d,subscribe:p,getState:c,replaceReducer:function(e){if("function"!=typeof e)throw new Error(F(10));o=e,d({type:$.REPLACE})}})[B]=function(){var e,t=p;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(F(11));function n(){e.next&&e.next(c())}return n(),{unsubscribe:t(n)}}})[B]=function(){return this},e},r}function G(e,t){return function(){return t(e.apply(this,arguments))}}function Q(e,t){if("function"==typeof e)return G(e,t);if("object"!=typeof e||null===e)throw new Error(F(16));var n={};for(var r in e){var o=e[r];"function"==typeof o&&(n[r]=G(o,t))}return n}function V(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}var K=n(7523),J=n.n(K),Y=n(8619),X=n.n(Y),Z="delete",ee=5,te=1<<ee,ne=te-1,re={};function oe(e){e&&(e.value=!0)}function ie(){}function ae(e){return void 0===e.size&&(e.size=e.__iterate(le)),e.size}function se(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?ae(e)+t:t}function le(){return!0}function ue(e,t,n){return(0===e&&!fe(e)||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function ce(e,t){return de(e,t,0)}function pe(e,t){return de(e,t,t)}function de(e,t,n){return void 0===e?n:fe(e)?t===1/0?t:0|Math.max(0,t+e):void 0===t||t===e?e:0|Math.min(t,e)}function fe(e){return e<0||0===e&&1/e==-1/0}var he="@@__IMMUTABLE_ITERABLE__@@";function me(e){return Boolean(e&&e[he])}var ye="@@__IMMUTABLE_KEYED__@@";function ge(e){return Boolean(e&&e[ye])}var ve="@@__IMMUTABLE_INDEXED__@@";function be(e){return Boolean(e&&e[ve])}function we(e){return ge(e)||be(e)}var _e=function(e){return me(e)?e:Qe(e)},Ee=function(e){function t(e){return ge(e)?e:Ve(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(_e),De=function(e){function t(e){return be(e)?e:Ke(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(_e),xe=function(e){function t(e){return me(e)&&!we(e)?e:Je(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(_e);_e.Keyed=Ee,_e.Indexed=De,_e.Set=xe;var Se="@@__IMMUTABLE_SEQ__@@";function Oe(e){return Boolean(e&&e[Se])}var Ie="@@__IMMUTABLE_RECORD__@@";function ke(e){return Boolean(e&&e[Ie])}function Pe(e){return me(e)||ke(e)}var Te="@@__IMMUTABLE_ORDERED__@@";function Ne(e){return Boolean(e&&e[Te])}var Ce=0,je=1,Ae=2,Le="function"==typeof Symbol&&Symbol.iterator,Re="@@iterator",ze=Le||Re,Me=function(e){this.next=e};function qe(e,t,n,r){var o=0===e?t:1===e?n:[t,n];return r?r.value=o:r={value:o,done:!1},r}function Fe(){return{value:void 0,done:!0}}function Be(e){return!!Array.isArray(e)||!!He(e)}function Ue(e){return e&&"function"==typeof e.next}function $e(e){var t=He(e);return t&&t.call(e)}function He(e){var t=e&&(Le&&e[Le]||e[Re]);if("function"==typeof t)return t}Me.prototype.toString=function(){return"[Iterator]"},Me.KEYS=Ce,Me.VALUES=je,Me.ENTRIES=Ae,Me.prototype.inspect=Me.prototype.toSource=function(){return this.toString()},Me.prototype[ze]=function(){return this};var We=Object.prototype.hasOwnProperty;function Ge(e){return!(!Array.isArray(e)&&"string"!=typeof e)||e&&"object"==typeof e&&Number.isInteger(e.length)&&e.length>=0&&(0===e.length?1===Object.keys(e).length:e.hasOwnProperty(e.length-1))}var Qe=function(e){function t(e){return null==e?tt():Pe(e)?e.toSeq():function(e){var t=ot(e);if(t)return(r=He(n=e))&&r===n.entries?t.fromEntrySeq():function(e){var t=He(e);return t&&t===e.keys}(e)?t.toSetSeq():t;var n,r;if("object"==typeof e)return new Xe(e);throw new TypeError("Expected Array or collection object of values, or keyed object: "+e)}(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq {","}")},t.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},t.prototype.__iterate=function(e,t){var n=this._cache;if(n){for(var r=n.length,o=0;o!==r;){var i=n[t?r-++o:o++];if(!1===e(i[1],i[0],this))break}return o}return this.__iterateUncached(e,t)},t.prototype.__iterator=function(e,t){var n=this._cache;if(n){var r=n.length,o=0;return new Me((function(){if(o===r)return{value:void 0,done:!0};var i=n[t?r-++o:o++];return qe(e,i[0],i[1])}))}return this.__iteratorUncached(e,t)},t}(_e),Ve=function(e){function t(e){return null==e?tt().toKeyedSeq():me(e)?ge(e)?e.toSeq():e.fromEntrySeq():ke(e)?e.toSeq():nt(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toKeyedSeq=function(){return this},t}(Qe),Ke=function(e){function t(e){return null==e?tt():me(e)?ge(e)?e.entrySeq():e.toIndexedSeq():ke(e)?e.toSeq().entrySeq():rt(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toIndexedSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq [","]")},t}(Qe),Je=function(e){function t(e){return(me(e)&&!we(e)?e:Ke(e)).toSetSeq()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toSetSeq=function(){return this},t}(Qe);Qe.isSeq=Oe,Qe.Keyed=Ve,Qe.Set=Je,Qe.Indexed=Ke,Qe.prototype[Se]=!0;var Ye=function(e){function t(e){this._array=e,this.size=e.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return this.has(e)?this._array[se(this,e)]:t},t.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length,o=0;o!==r;){var i=t?r-++o:o++;if(!1===e(n[i],i,this))break}return o},t.prototype.__iterator=function(e,t){var n=this._array,r=n.length,o=0;return new Me((function(){if(o===r)return{value:void 0,done:!0};var i=t?r-++o:o++;return qe(e,i,n[i])}))},t}(Ke),Xe=function(e){function t(e){var t=Object.keys(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[]);this._object=e,this._keys=t,this.size=t.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},t.prototype.has=function(e){return We.call(this._object,e)},t.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length,i=0;i!==o;){var a=r[t?o-++i:i++];if(!1===e(n[a],a,this))break}return i},t.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length,i=0;return new Me((function(){if(i===o)return{value:void 0,done:!0};var a=r[t?o-++i:i++];return qe(e,a,n[a])}))},t}(Ve);Xe.prototype[Te]=!0;var Ze,et=function(e){function t(e){this._collection=e,this.size=e.length||e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=$e(this._collection),r=0;if(Ue(n))for(var o;!(o=n.next()).done&&!1!==e(o.value,r++,this););return r},t.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=$e(this._collection);if(!Ue(n))return new Me(Fe);var r=0;return new Me((function(){var t=n.next();return t.done?t:qe(e,r++,t.value)}))},t}(Ke);function tt(){return Ze||(Ze=new Ye([]))}function nt(e){var t=ot(e);if(t)return t.fromEntrySeq();if("object"==typeof e)return new Xe(e);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+e)}function rt(e){var t=ot(e);if(t)return t;throw new TypeError("Expected Array or collection object of values: "+e)}function ot(e){return Ge(e)?new Ye(e):Be(e)?new et(e):void 0}var it="@@__IMMUTABLE_MAP__@@";function at(e){return Boolean(e&&e[it])}function st(e){return at(e)&&Ne(e)}function lt(e){return Boolean(e&&"function"==typeof e.equals&&"function"==typeof e.hashCode)}function ut(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!!(lt(e)&<(t)&&e.equals(t))}var ct="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function pt(e){return e>>>1&1073741824|3221225471&e}var dt=Object.prototype.valueOf;function ft(e){if(null==e)return ht(e);if("function"==typeof e.hashCode)return pt(e.hashCode(e));var t,n=(t=e).valueOf!==dt&&"function"==typeof t.valueOf?t.valueOf(t):t;if(null==n)return ht(n);switch(typeof n){case"boolean":return n?1108378657:1108378656;case"number":return function(e){if(e!=e||e===1/0)return 0;var t=0|e;t!==e&&(t^=4294967295*e);for(;e>4294967295;)t^=e/=4294967295;return pt(t)}(n);case"string":return n.length>xt?function(e){var t=It[e];void 0===t&&(t=mt(e),Ot===St&&(Ot=0,It={}),Ot++,It[e]=t);return t}(n):mt(n);case"object":case"function":return function(e){var t;if(wt&&void 0!==(t=bt.get(e)))return t;if(t=e[Dt],void 0!==t)return t;if(!gt){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Dt]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=vt(),wt)bt.set(e,t);else{if(void 0!==yt&&!1===yt(e))throw new Error("Non-extensible objects are not allowed as keys.");if(gt)Object.defineProperty(e,Dt,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[Dt]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Dt]=t}}return t}(n);case"symbol":return function(e){var t=_t[e];if(void 0!==t)return t;return t=vt(),_t[e]=t,t}(n);default:if("function"==typeof n.toString)return mt(n.toString());throw new Error("Value type "+typeof n+" cannot be hashed.")}}function ht(e){return null===e?1108378658:1108378659}function mt(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return pt(t)}var yt=Object.isExtensible,gt=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();function vt(){var e=++Et;return 1073741824&Et&&(Et=0),e}var bt,wt="function"==typeof WeakMap;wt&&(bt=new WeakMap);var _t=Object.create(null),Et=0,Dt="__immutablehash__";"function"==typeof Symbol&&(Dt=Symbol(Dt));var xt=16,St=255,Ot=0,It={},kt=function(e){function t(e,t){this._iter=e,this._useKeys=t,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return this._iter.get(e,t)},t.prototype.has=function(e){return this._iter.has(e)},t.prototype.valueSeq=function(){return this._iter.valueSeq()},t.prototype.reverse=function(){var e=this,t=At(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},t.prototype.map=function(e,t){var n=this,r=jt(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t,r){return e(t,r,n)}),t)},t.prototype.__iterator=function(e,t){return this._iter.__iterator(e,t)},t}(Ve);kt.prototype[Te]=!0;var Pt=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.includes=function(e){return this._iter.includes(e)},t.prototype.__iterate=function(e,t){var n=this,r=0;return t&&ae(this),this._iter.__iterate((function(o){return e(o,t?n.size-++r:r++,n)}),t)},t.prototype.__iterator=function(e,t){var n=this,r=this._iter.__iterator(je,t),o=0;return t&&ae(this),new Me((function(){var i=r.next();return i.done?i:qe(e,t?n.size-++o:o++,i.value,i)}))},t}(Ke),Tt=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.has=function(e){return this._iter.includes(e)},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){return e(t,t,n)}),t)},t.prototype.__iterator=function(e,t){var n=this._iter.__iterator(je,t);return new Me((function(){var t=n.next();return t.done?t:qe(e,t.value,t.value,t)}))},t}(Je),Nt=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.entrySeq=function(){return this._iter.toSeq()},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){if(t){Ht(t);var r=me(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}}),t)},t.prototype.__iterator=function(e,t){var n=this._iter.__iterator(je,t);return new Me((function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){Ht(r);var o=me(r);return qe(e,o?r.get(0):r[0],o?r.get(1):r[1],t)}}}))},t}(Ve);function Ct(e){var t=Gt(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=Qt,t.__iterateUncached=function(t,n){var r=this;return e.__iterate((function(e,n){return!1!==t(n,e,r)}),n)},t.__iteratorUncached=function(t,n){if(t===Ae){var r=e.__iterator(t,n);return new Me((function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(t===je?Ce:je,n)},t}function jt(e,t,n){var r=Gt(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,o){var i=e.get(r,re);return i===re?o:t.call(n,i,r,e)},r.__iterateUncached=function(r,o){var i=this;return e.__iterate((function(e,o,a){return!1!==r(t.call(n,e,o,a),o,i)}),o)},r.__iteratorUncached=function(r,o){var i=e.__iterator(Ae,o);return new Me((function(){var o=i.next();if(o.done)return o;var a=o.value,s=a[0];return qe(r,s,t.call(n,a[1],s,e),o)}))},r}function At(e,t){var n=this,r=Gt(e);return r._iter=e,r.size=e.size,r.reverse=function(){return e},e.flip&&(r.flip=function(){var t=Ct(e);return t.reverse=function(){return e.flip()},t}),r.get=function(n,r){return e.get(t?n:-1-n,r)},r.has=function(n){return e.has(t?n:-1-n)},r.includes=function(t){return e.includes(t)},r.cacheResult=Qt,r.__iterate=function(n,r){var o=this,i=0;return r&&ae(e),e.__iterate((function(e,a){return n(e,t?a:r?o.size-++i:i++,o)}),!r)},r.__iterator=function(r,o){var i=0;o&&ae(e);var a=e.__iterator(Ae,!o);return new Me((function(){var e=a.next();if(e.done)return e;var s=e.value;return qe(r,t?s[0]:o?n.size-++i:i++,s[1],e)}))},r}function Lt(e,t,n,r){var o=Gt(e);return r&&(o.has=function(r){var o=e.get(r,re);return o!==re&&!!t.call(n,o,r,e)},o.get=function(r,o){var i=e.get(r,re);return i!==re&&t.call(n,i,r,e)?i:o}),o.__iterateUncached=function(o,i){var a=this,s=0;return e.__iterate((function(e,i,l){if(t.call(n,e,i,l))return s++,o(e,r?i:s-1,a)}),i),s},o.__iteratorUncached=function(o,i){var a=e.__iterator(Ae,i),s=0;return new Me((function(){for(;;){var i=a.next();if(i.done)return i;var l=i.value,u=l[0],c=l[1];if(t.call(n,c,u,e))return qe(o,r?u:s++,c,i)}}))},o}function Rt(e,t,n,r){var o=e.size;if(ue(t,n,o))return e;var i=ce(t,o),a=pe(n,o);if(i!=i||a!=a)return Rt(e.toSeq().cacheResult(),t,n,r);var s,l=a-i;l==l&&(s=l<0?0:l);var u=Gt(e);return u.size=0===s?s:e.size&&s||void 0,!r&&Oe(e)&&s>=0&&(u.get=function(t,n){return(t=se(this,t))>=0&&t<s?e.get(t+i,n):n}),u.__iterateUncached=function(t,n){var o=this;if(0===s)return 0;if(n)return this.cacheResult().__iterate(t,n);var a=0,l=!0,u=0;return e.__iterate((function(e,n){if(!l||!(l=a++<i))return u++,!1!==t(e,r?n:u-1,o)&&u!==s})),u},u.__iteratorUncached=function(t,n){if(0!==s&&n)return this.cacheResult().__iterator(t,n);if(0===s)return new Me(Fe);var o=e.__iterator(t,n),a=0,l=0;return new Me((function(){for(;a++<i;)o.next();if(++l>s)return{value:void 0,done:!0};var e=o.next();return r||t===je||e.done?e:qe(t,l-1,t===Ce?void 0:e.value[1],e)}))},u}function zt(e,t,n,r){var o=Gt(e);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var s=!0,l=0;return e.__iterate((function(e,i,u){if(!s||!(s=t.call(n,e,i,u)))return l++,o(e,r?i:l-1,a)})),l},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var s=e.__iterator(Ae,i),l=!0,u=0;return new Me((function(){var e,i,c;do{if((e=s.next()).done)return r||o===je?e:qe(o,u++,o===Ce?void 0:e.value[1],e);var p=e.value;i=p[0],c=p[1],l&&(l=t.call(n,c,i,a))}while(l);return o===Ae?e:qe(o,i,c,e)}))},o}function Mt(e,t,n){var r=Gt(e);return r.__iterateUncached=function(o,i){if(i)return this.cacheResult().__iterate(o,i);var a=0,s=!1;return function e(l,u){l.__iterate((function(i,l){return(!t||u<t)&&me(i)?e(i,u+1):(a++,!1===o(i,n?l:a-1,r)&&(s=!0)),!s}),i)}(e,0),a},r.__iteratorUncached=function(r,o){if(o)return this.cacheResult().__iterator(r,o);var i=e.__iterator(r,o),a=[],s=0;return new Me((function(){for(;i;){var e=i.next();if(!1===e.done){var l=e.value;if(r===Ae&&(l=l[1]),t&&!(a.length<t)||!me(l))return n?e:qe(r,s++,l,e);a.push(i),i=l.__iterator(r,o)}else i=a.pop()}return{value:void 0,done:!0}}))},r}function qt(e,t,n){t||(t=Vt);var r=ge(e),o=0,i=e.toSeq().map((function(t,r){return[r,t,o++,n?n(t,r,e):t]})).valueSeq().toArray();return i.sort((function(e,n){return t(e[3],n[3])||e[2]-n[2]})).forEach(r?function(e,t){i[t].length=2}:function(e,t){i[t]=e[1]}),r?Ve(i):be(e)?Ke(i):Je(i)}function Ft(e,t,n){if(t||(t=Vt),n){var r=e.toSeq().map((function(t,r){return[t,n(t,r,e)]})).reduce((function(e,n){return Bt(t,e[1],n[1])?n:e}));return r&&r[0]}return e.reduce((function(e,n){return Bt(t,e,n)?n:e}))}function Bt(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(null==n||n!=n)||r>0}function Ut(e,t,n,r){var o=Gt(e),i=new Ye(n).map((function(e){return e.size}));return o.size=r?i.max():i.min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(je,t),o=0;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},o.__iteratorUncached=function(e,o){var i=n.map((function(e){return e=_e(e),$e(o?e.reverse():e)})),a=0,s=!1;return new Me((function(){var n;return s||(n=i.map((function(e){return e.next()})),s=r?n.every((function(e){return e.done})):n.some((function(e){return e.done}))),s?{value:void 0,done:!0}:qe(e,a++,t.apply(null,n.map((function(e){return e.value}))))}))},o}function $t(e,t){return e===t?e:Oe(e)?t:e.constructor(t)}function Ht(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function Wt(e){return ge(e)?Ee:be(e)?De:xe}function Gt(e){return Object.create((ge(e)?Ve:be(e)?Ke:Je).prototype)}function Qt(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Qe.prototype.cacheResult.call(this)}function Vt(e,t){return void 0===e&&void 0===t?0:void 0===e?1:void 0===t?-1:e>t?1:e<t?-1:0}function Kt(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),o=0;o<n;o++)r[o]=e[o+t];return r}function Jt(e,t){if(!e)throw new Error(t)}function Yt(e){Jt(e!==1/0,"Cannot perform this action with an infinite size.")}function Xt(e){if(Ge(e)&&"string"!=typeof e)return e;if(Ne(e))return e.toArray();throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: "+e)}Pt.prototype.cacheResult=kt.prototype.cacheResult=Tt.prototype.cacheResult=Nt.prototype.cacheResult=Qt;var Zt=Object.prototype.toString;function en(e){if(!e||"object"!=typeof e||"[object Object]"!==Zt.call(e))return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;for(var n=t,r=Object.getPrototypeOf(t);null!==r;)n=r,r=Object.getPrototypeOf(n);return n===t}function tn(e){return"object"==typeof e&&(Pe(e)||Array.isArray(e)||en(e))}function nn(e){try{return"string"==typeof e?JSON.stringify(e):String(e)}catch(t){return JSON.stringify(e)}}function rn(e,t){return Pe(e)?e.has(t):tn(e)&&We.call(e,t)}function on(e,t,n){return Pe(e)?e.get(t,n):rn(e,t)?"function"==typeof e.get?e.get(t):e[t]:n}function an(e){if(Array.isArray(e))return Kt(e);var t={};for(var n in e)We.call(e,n)&&(t[n]=e[n]);return t}function sn(e,t){if(!tn(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(Pe(e)){if(!e.remove)throw new TypeError("Cannot update immutable value without .remove() method: "+e);return e.remove(t)}if(!We.call(e,t))return e;var n=an(e);return Array.isArray(n)?n.splice(t,1):delete n[t],n}function ln(e,t,n){if(!tn(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(Pe(e)){if(!e.set)throw new TypeError("Cannot update immutable value without .set() method: "+e);return e.set(t,n)}if(We.call(e,t)&&n===e[t])return e;var r=an(e);return r[t]=n,r}function un(e,t,n,r){r||(r=n,n=void 0);var o=cn(Pe(e),e,Xt(t),0,n,r);return o===re?n:o}function cn(e,t,n,r,o,i){var a=t===re;if(r===n.length){var s=a?o:t,l=i(s);return l===s?t:l}if(!a&&!tn(t))throw new TypeError("Cannot update within non-data-structure value in path ["+n.slice(0,r).map(nn)+"]: "+t);var u=n[r],c=a?re:on(t,u,re),p=cn(c===re?e:Pe(c),c,n,r+1,o,i);return p===c?t:p===re?sn(t,u):ln(a?e?$n():{}:t,u,p)}function pn(e,t,n){return un(e,t,re,(function(){return n}))}function dn(e,t){return pn(this,e,t)}function fn(e,t){return un(e,t,(function(){return re}))}function hn(e){return fn(this,e)}function mn(e,t,n,r){return un(e,[t],n,r)}function yn(e,t,n){return 1===arguments.length?e(this):mn(this,e,t,n)}function gn(e,t,n){return un(this,e,t,n)}function vn(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return wn(this,e)}function bn(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];if("function"!=typeof e)throw new TypeError("Invalid merger function: "+e);return wn(this,t,e)}function wn(e,t,n){for(var r=[],o=0;o<t.length;o++){var i=Ee(t[o]);0!==i.size&&r.push(i)}return 0===r.length?e:0!==e.toSeq().size||e.__ownerID||1!==r.length?e.withMutations((function(e){for(var t=n?function(t,r){mn(e,r,re,(function(e){return e===re?t:n(e,t,r)}))}:function(t,n){e.set(n,t)},o=0;o<r.length;o++)r[o].forEach(t)})):e.constructor(r[0])}function _n(e,t,n){return En(e,t,function(e){function t(n,r,o){return tn(n)&&tn(r)&&(i=r,a=Qe(n),s=Qe(i),be(a)===be(s)&&ge(a)===ge(s))?En(n,[r],t):e?e(n,r,o):r;var i,a,s}return t}(n))}function En(e,t,n){if(!tn(e))throw new TypeError("Cannot merge into non-data-structure value: "+e);if(Pe(e))return"function"==typeof n&&e.mergeWith?e.mergeWith.apply(e,[n].concat(t)):e.merge?e.merge.apply(e,t):e.concat.apply(e,t);for(var r=Array.isArray(e),o=e,i=r?De:Ee,a=r?function(t){o===e&&(o=an(o)),o.push(t)}:function(t,r){var i=We.call(o,r),a=i&&n?n(o[r],t,r):t;i&&a===o[r]||(o===e&&(o=an(o)),o[r]=a)},s=0;s<t.length;s++)i(t[s]).forEach(a);return o}function Dn(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return _n(this,e)}function xn(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return _n(this,t,e)}function Sn(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return un(this,e,$n(),(function(e){return En(e,t)}))}function On(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return un(this,e,$n(),(function(e){return _n(e,t)}))}function In(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this}function kn(){return this.__ownerID?this:this.__ensureOwner(new ie)}function Pn(){return this.__ensureOwner()}function Tn(){return this.__altered}var Nn=function(e){function t(t){return null==t?$n():at(t)&&!Ne(t)?t:$n().withMutations((function(n){var r=e(t);Yt(r.size),r.forEach((function(e,t){return n.set(t,e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return $n().withMutations((function(t){for(var n=0;n<e.length;n+=2){if(n+1>=e.length)throw new Error("Missing value for key: "+e[n]);t.set(e[n],e[n+1])}}))},t.prototype.toString=function(){return this.__toString("Map {","}")},t.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},t.prototype.set=function(e,t){return Hn(this,e,t)},t.prototype.remove=function(e){return Hn(this,e,re)},t.prototype.deleteAll=function(e){var t=_e(e);return 0===t.size?this:this.withMutations((function(e){t.forEach((function(t){return e.remove(t)}))}))},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):$n()},t.prototype.sort=function(e){return mr(qt(this,e))},t.prototype.sortBy=function(e,t){return mr(qt(this,t,e))},t.prototype.map=function(e,t){var n=this;return this.withMutations((function(r){r.forEach((function(o,i){r.set(i,e.call(t,o,i,n))}))}))},t.prototype.__iterator=function(e,t){return new qn(this,e,t)},t.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate((function(t){return r++,e(t[1],t[0],n)}),t),r},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Un(this.size,this._root,e,this.__hash):0===this.size?$n():(this.__ownerID=e,this.__altered=!1,this)},t}(Ee);Nn.isMap=at;var Cn=Nn.prototype;Cn[it]=!0,Cn[Z]=Cn.remove,Cn.removeAll=Cn.deleteAll,Cn.setIn=dn,Cn.removeIn=Cn.deleteIn=hn,Cn.update=yn,Cn.updateIn=gn,Cn.merge=Cn.concat=vn,Cn.mergeWith=bn,Cn.mergeDeep=Dn,Cn.mergeDeepWith=xn,Cn.mergeIn=Sn,Cn.mergeDeepIn=On,Cn.withMutations=In,Cn.wasAltered=Tn,Cn.asImmutable=Pn,Cn["@@transducer/init"]=Cn.asMutable=kn,Cn["@@transducer/step"]=function(e,t){return e.set(t[0],t[1])},Cn["@@transducer/result"]=function(e){return e.asImmutable()};var jn=function(e,t){this.ownerID=e,this.entries=t};jn.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(ut(n,o[i][0]))return o[i][1];return r},jn.prototype.update=function(e,t,n,r,o,i,a){for(var s=o===re,l=this.entries,u=0,c=l.length;u<c&&!ut(r,l[u][0]);u++);var p=u<c;if(p?l[u][1]===o:s)return this;if(oe(a),(s||!p)&&oe(i),!s||1!==l.length){if(!p&&!s&&l.length>=Jn)return function(e,t,n,r){e||(e=new ie);for(var o=new zn(e,ft(n),[n,r]),i=0;i<t.length;i++){var a=t[i];o=o.update(e,0,void 0,a[0],a[1])}return o}(e,l,r,o);var d=e&&e===this.ownerID,f=d?l:Kt(l);return p?s?u===c-1?f.pop():f[u]=f.pop():f[u]=[r,o]:f.push([r,o]),d?(this.entries=f,this):new jn(e,f)}};var An=function(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n};An.prototype.get=function(e,t,n,r){void 0===t&&(t=ft(n));var o=1<<((0===e?t:t>>>e)&ne),i=this.bitmap;return 0==(i&o)?r:this.nodes[Vn(i&o-1)].get(e+ee,t,n,r)},An.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=ft(r));var s=(0===t?n:n>>>t)&ne,l=1<<s,u=this.bitmap,c=0!=(u&l);if(!c&&o===re)return this;var p=Vn(u&l-1),d=this.nodes,f=c?d[p]:void 0,h=Wn(f,e,t+ee,n,r,o,i,a);if(h===f)return this;if(!c&&h&&d.length>=Yn)return function(e,t,n,r,o){for(var i=0,a=new Array(te),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[i++]:void 0;return a[r]=o,new Ln(e,i+1,a)}(e,d,u,s,h);if(c&&!h&&2===d.length&&Gn(d[1^p]))return d[1^p];if(c&&h&&1===d.length&&Gn(h))return h;var m=e&&e===this.ownerID,y=c?h?u:u^l:u|l,g=c?h?Kn(d,p,h,m):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),i=0,a=0;a<r;a++)a===t&&(i=1),o[a]=e[a+i];return o}(d,p,m):function(e,t,n,r){var o=e.length+1;if(r&&t+1===o)return e[t]=n,e;for(var i=new Array(o),a=0,s=0;s<o;s++)s===t?(i[s]=n,a=-1):i[s]=e[s+a];return i}(d,p,h,m);return m?(this.bitmap=y,this.nodes=g,this):new An(e,y,g)};var Ln=function(e,t,n){this.ownerID=e,this.count=t,this.nodes=n};Ln.prototype.get=function(e,t,n,r){void 0===t&&(t=ft(n));var o=(0===e?t:t>>>e)&ne,i=this.nodes[o];return i?i.get(e+ee,t,n,r):r},Ln.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=ft(r));var s=(0===t?n:n>>>t)&ne,l=o===re,u=this.nodes,c=u[s];if(l&&!c)return this;var p=Wn(c,e,t+ee,n,r,o,i,a);if(p===c)return this;var d=this.count;if(c){if(!p&&--d<Xn)return function(e,t,n,r){for(var o=0,i=0,a=new Array(n),s=0,l=1,u=t.length;s<u;s++,l<<=1){var c=t[s];void 0!==c&&s!==r&&(o|=l,a[i++]=c)}return new An(e,o,a)}(e,u,d,s)}else d++;var f=e&&e===this.ownerID,h=Kn(u,s,p,f);return f?(this.count=d,this.nodes=h,this):new Ln(e,d,h)};var Rn=function(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n};Rn.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(ut(n,o[i][0]))return o[i][1];return r},Rn.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=ft(r));var s=o===re;if(n!==this.keyHash)return s?this:(oe(a),oe(i),Qn(this,e,t,n,[r,o]));for(var l=this.entries,u=0,c=l.length;u<c&&!ut(r,l[u][0]);u++);var p=u<c;if(p?l[u][1]===o:s)return this;if(oe(a),(s||!p)&&oe(i),s&&2===c)return new zn(e,this.keyHash,l[1^u]);var d=e&&e===this.ownerID,f=d?l:Kt(l);return p?s?u===c-1?f.pop():f[u]=f.pop():f[u]=[r,o]:f.push([r,o]),d?(this.entries=f,this):new Rn(e,this.keyHash,f)};var zn=function(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n};zn.prototype.get=function(e,t,n,r){return ut(n,this.entry[0])?this.entry[1]:r},zn.prototype.update=function(e,t,n,r,o,i,a){var s=o===re,l=ut(r,this.entry[0]);return(l?o===this.entry[1]:s)?this:(oe(a),s?void oe(i):l?e&&e===this.ownerID?(this.entry[1]=o,this):new zn(e,this.keyHash,[r,o]):(oe(i),Qn(this,e,t,ft(r),[r,o])))},jn.prototype.iterate=Rn.prototype.iterate=function(e,t){for(var n=this.entries,r=0,o=n.length-1;r<=o;r++)if(!1===e(n[t?o-r:r]))return!1},An.prototype.iterate=Ln.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,o=n.length-1;r<=o;r++){var i=n[t?o-r:r];if(i&&!1===i.iterate(e,t))return!1}},zn.prototype.iterate=function(e,t){return e(this.entry)};var Mn,qn=function(e){function t(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&Bn(e._root)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n=t.node,r=t.index++,o=void 0;if(n.entry){if(0===r)return Fn(e,n.entry)}else if(n.entries){if(r<=(o=n.entries.length-1))return Fn(e,n.entries[this._reverse?o-r:r])}else if(r<=(o=n.nodes.length-1)){var i=n.nodes[this._reverse?o-r:r];if(i){if(i.entry)return Fn(e,i.entry);t=this._stack=Bn(i,t)}continue}t=this._stack=this._stack.__prev}return{value:void 0,done:!0}},t}(Me);function Fn(e,t){return qe(e,t[0],t[1])}function Bn(e,t){return{node:e,index:0,__prev:t}}function Un(e,t,n,r){var o=Object.create(Cn);return o.size=e,o._root=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function $n(){return Mn||(Mn=Un(0))}function Hn(e,t,n){var r,o;if(e._root){var i={value:!1},a={value:!1};if(r=Wn(e._root,e.__ownerID,0,void 0,t,n,i,a),!a.value)return e;o=e.size+(i.value?n===re?-1:1:0)}else{if(n===re)return e;o=1,r=new jn(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=o,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?Un(o,r):$n()}function Wn(e,t,n,r,o,i,a,s){return e?e.update(t,n,r,o,i,a,s):i===re?e:(oe(s),oe(a),new zn(t,r,[o,i]))}function Gn(e){return e.constructor===zn||e.constructor===Rn}function Qn(e,t,n,r,o){if(e.keyHash===r)return new Rn(t,r,[e.entry,o]);var i,a=(0===n?e.keyHash:e.keyHash>>>n)&ne,s=(0===n?r:r>>>n)&ne,l=a===s?[Qn(e,t,n+ee,r,o)]:(i=new zn(t,r,o),a<s?[e,i]:[i,e]);return new An(t,1<<a|1<<s,l)}function Vn(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function Kn(e,t,n,r){var o=r?e:Kt(e);return o[t]=n,o}var Jn=te/4,Yn=te/2,Xn=te/4,Zn="@@__IMMUTABLE_LIST__@@";function er(e){return Boolean(e&&e[Zn])}var tr=function(e){function t(t){var n=lr();if(null==t)return n;if(er(t))return t;var r=e(t),o=r.size;return 0===o?n:(Yt(o),o>0&&o<te?sr(0,o,ee,null,new rr(r.toArray())):n.withMutations((function(e){e.setSize(o),r.forEach((function(t,n){return e.set(n,t)}))})))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("List [","]")},t.prototype.get=function(e,t){if((e=se(this,e))>=0&&e<this.size){var n=pr(this,e+=this._origin);return n&&n.array[e&ne]}return t},t.prototype.set=function(e,t){return function(e,t,n){if(t=se(e,t),t!=t)return e;if(t>=e.size||t<0)return e.withMutations((function(e){t<0?dr(e,t).set(0,n):dr(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,o=e._root,i={value:!1};t>=fr(e._capacity)?r=ur(r,e.__ownerID,0,t,n,i):o=ur(o,e.__ownerID,e._level,t,n,i);if(!i.value)return e;if(e.__ownerID)return e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e;return sr(e._origin,e._capacity,e._level,o,r)}(this,e,t)},t.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},t.prototype.insert=function(e,t){return this.splice(e,0,t)},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=ee,this._root=this._tail=this.__hash=void 0,this.__altered=!0,this):lr()},t.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){dr(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])}))},t.prototype.pop=function(){return dr(this,0,-1)},t.prototype.unshift=function(){var e=arguments;return this.withMutations((function(t){dr(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])}))},t.prototype.shift=function(){return dr(this,1)},t.prototype.concat=function(){for(var t=arguments,n=[],r=0;r<arguments.length;r++){var o=t[r],i=e("string"!=typeof o&&Be(o)?o:[o]);0!==i.size&&n.push(i)}return 0===n.length?this:0!==this.size||this.__ownerID||1!==n.length?this.withMutations((function(e){n.forEach((function(t){return t.forEach((function(t){return e.push(t)}))}))})):this.constructor(n[0])},t.prototype.setSize=function(e){return dr(this,0,e)},t.prototype.map=function(e,t){var n=this;return this.withMutations((function(r){for(var o=0;o<n.size;o++)r.set(o,e.call(t,r.get(o),o,n))}))},t.prototype.slice=function(e,t){var n=this.size;return ue(e,t,n)?this:dr(this,ce(e,n),pe(t,n))},t.prototype.__iterator=function(e,t){var n=t?this.size:0,r=ar(this,t);return new Me((function(){var o=r();return o===ir?{value:void 0,done:!0}:qe(e,t?--n:n++,o)}))},t.prototype.__iterate=function(e,t){for(var n,r=t?this.size:0,o=ar(this,t);(n=o())!==ir&&!1!==e(n,t?--r:r++,this););return r},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?sr(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):0===this.size?lr():(this.__ownerID=e,this.__altered=!1,this)},t}(De);tr.isList=er;var nr=tr.prototype;nr[Zn]=!0,nr[Z]=nr.remove,nr.merge=nr.concat,nr.setIn=dn,nr.deleteIn=nr.removeIn=hn,nr.update=yn,nr.updateIn=gn,nr.mergeIn=Sn,nr.mergeDeepIn=On,nr.withMutations=In,nr.wasAltered=Tn,nr.asImmutable=Pn,nr["@@transducer/init"]=nr.asMutable=kn,nr["@@transducer/step"]=function(e,t){return e.push(t)},nr["@@transducer/result"]=function(e){return e.asImmutable()};var rr=function(e,t){this.array=e,this.ownerID=t};rr.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t≠if(r>=this.array.length)return new rr([],e);var o,i=0===r;if(t>0){var a=this.array[r];if((o=a&&a.removeBefore(e,t-ee,n))===a&&i)return this}if(i&&!o)return this;var s=cr(this,e);if(!i)for(var l=0;l<r;l++)s.array[l]=void 0;return o&&(s.array[r]=o),s},rr.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r,o=n-1>>>t≠if(o>=this.array.length)return this;if(t>0){var i=this.array[o];if((r=i&&i.removeAfter(e,t-ee,n))===i&&o===this.array.length-1)return this}var a=cr(this,e);return a.array.splice(o+1),r&&(a.array[o]=r),a};var or,ir={};function ar(e,t){var n=e._origin,r=e._capacity,o=fr(r),i=e._tail;return a(e._root,e._level,0);function a(e,s,l){return 0===s?function(e,a){var s=a===o?i&&i.array:e&&e.array,l=a>n?0:n-a,u=r-a;u>te&&(u=te);return function(){if(l===u)return ir;var e=t?--u:l++;return s&&s[e]}}(e,l):function(e,o,i){var s,l=e&&e.array,u=i>n?0:n-i>>o,c=1+(r-i>>o);c>te&&(c=te);return function(){for(;;){if(s){var e=s();if(e!==ir)return e;s=null}if(u===c)return ir;var n=t?--c:u++;s=a(l&&l[n],o-ee,i+(n<<o))}}}(e,s,l)}}function sr(e,t,n,r,o,i,a){var s=Object.create(nr);return s.size=t-e,s._origin=e,s._capacity=t,s._level=n,s._root=r,s._tail=o,s.__ownerID=i,s.__hash=a,s.__altered=!1,s}function lr(){return or||(or=sr(0,0,ee))}function ur(e,t,n,r,o,i){var a,s=r>>>n&ne,l=e&&s<e.array.length;if(!l&&void 0===o)return e;if(n>0){var u=e&&e.array[s],c=ur(u,t,n-ee,r,o,i);return c===u?e:((a=cr(e,t)).array[s]=c,a)}return l&&e.array[s]===o?e:(i&&oe(i),a=cr(e,t),void 0===o&&s===a.array.length-1?a.array.pop():a.array[s]=o,a)}function cr(e,t){return t&&e&&t===e.ownerID?e:new rr(e?e.array.slice():[],t)}function pr(e,t){if(t>=fr(e._capacity))return e._tail;if(t<1<<e._level+ee){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&ne],r-=ee;return n}}function dr(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new ie,o=e._origin,i=e._capacity,a=o+t,s=void 0===n?i:n<0?i+n:o+n;if(a===o&&s===i)return e;if(a>=s)return e.clear();for(var l=e._level,u=e._root,c=0;a+c<0;)u=new rr(u&&u.array.length?[void 0,u]:[],r),c+=1<<(l+=ee);c&&(a+=c,o+=c,s+=c,i+=c);for(var p=fr(i),d=fr(s);d>=1<<l+ee;)u=new rr(u&&u.array.length?[u]:[],r),l+=ee;var f=e._tail,h=d<p?pr(e,s-1):d>p?new rr([],r):f;if(f&&d>p&&a<i&&f.array.length){for(var m=u=cr(u,r),y=l;y>ee;y-=ee){var g=p>>>y≠m=m.array[g]=cr(m.array[g],r)}m.array[p>>>ee&ne]=f}if(s<i&&(h=h&&h.removeAfter(r,0,s)),a>=d)a-=d,s-=d,l=ee,u=null,h=h&&h.removeBefore(r,0,a);else if(a>o||d<p){for(c=0;u;){var v=a>>>l≠if(v!==d>>>l&ne)break;v&&(c+=(1<<l)*v),l-=ee,u=u.array[v]}u&&a>o&&(u=u.removeBefore(r,l,a-c)),u&&d<p&&(u=u.removeAfter(r,l,d-c)),c&&(a-=c,s-=c)}return e.__ownerID?(e.size=s-a,e._origin=a,e._capacity=s,e._level=l,e._root=u,e._tail=h,e.__hash=void 0,e.__altered=!0,e):sr(a,s,l,u,h)}function fr(e){return e<te?0:e-1>>>ee<<ee}var hr,mr=function(e){function t(e){return null==e?gr():st(e)?e:gr().withMutations((function(t){var n=Ee(e);Yt(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("OrderedMap {","}")},t.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this.__altered=!0,this):gr()},t.prototype.set=function(e,t){return vr(this,e,t)},t.prototype.remove=function(e){return vr(this,e,re)},t.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate((function(t){return t&&e(t[1],t[0],n)}),t)},t.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},t.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?yr(t,n,e,this.__hash):0===this.size?gr():(this.__ownerID=e,this.__altered=!1,this._map=t,this._list=n,this)},t}(Nn);function yr(e,t,n,r){var o=Object.create(mr.prototype);return o.size=e?e.size:0,o._map=e,o._list=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function gr(){return hr||(hr=yr($n(),lr()))}function vr(e,t,n){var r,o,i=e._map,a=e._list,s=i.get(t),l=void 0!==s;if(n===re){if(!l)return e;a.size>=te&&a.size>=2*i.size?(r=(o=a.filter((function(e,t){return void 0!==e&&s!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(r.__ownerID=o.__ownerID=e.__ownerID)):(r=i.remove(t),o=s===a.size-1?a.pop():a.set(s,void 0))}else if(l){if(n===a.get(s)[1])return e;r=i,o=a.set(s,[t,n])}else r=i.set(t,a.size),o=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=o,e.__hash=void 0,e.__altered=!0,e):yr(r,o)}mr.isOrderedMap=st,mr.prototype[Te]=!0,mr.prototype[Z]=mr.prototype.remove;var br="@@__IMMUTABLE_STACK__@@";function wr(e){return Boolean(e&&e[br])}var _r=function(e){function t(e){return null==e?Sr():wr(e)?e:Sr().pushAll(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("Stack [","]")},t.prototype.get=function(e,t){var n=this._head;for(e=se(this,e);n&&e--;)n=n.next;return n?n.value:t},t.prototype.peek=function(){return this._head&&this._head.value},t.prototype.push=function(){var e=arguments;if(0===arguments.length)return this;for(var t=this.size+arguments.length,n=this._head,r=arguments.length-1;r>=0;r--)n={value:e[r],next:n};return this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):xr(t,n)},t.prototype.pushAll=function(t){if(0===(t=e(t)).size)return this;if(0===this.size&&wr(t))return t;Yt(t.size);var n=this.size,r=this._head;return t.__iterate((function(e){n++,r={value:e,next:r}}),!0),this.__ownerID?(this.size=n,this._head=r,this.__hash=void 0,this.__altered=!0,this):xr(n,r)},t.prototype.pop=function(){return this.slice(1)},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Sr()},t.prototype.slice=function(t,n){if(ue(t,n,this.size))return this;var r=ce(t,this.size);if(pe(n,this.size)!==this.size)return e.prototype.slice.call(this,t,n);for(var o=this.size-r,i=this._head;r--;)i=i.next;return this.__ownerID?(this.size=o,this._head=i,this.__hash=void 0,this.__altered=!0,this):xr(o,i)},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?xr(this.size,this._head,e,this.__hash):0===this.size?Sr():(this.__ownerID=e,this.__altered=!1,this)},t.prototype.__iterate=function(e,t){var n=this;if(t)return new Ye(this.toArray()).__iterate((function(t,r){return e(t,r,n)}),t);for(var r=0,o=this._head;o&&!1!==e(o.value,r++,this);)o=o.next;return r},t.prototype.__iterator=function(e,t){if(t)return new Ye(this.toArray()).__iterator(e,t);var n=0,r=this._head;return new Me((function(){if(r){var t=r.value;return r=r.next,qe(e,n++,t)}return{value:void 0,done:!0}}))},t}(De);_r.isStack=wr;var Er,Dr=_r.prototype;function xr(e,t,n,r){var o=Object.create(Dr);return o.size=e,o._head=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Sr(){return Er||(Er=xr(0))}Dr[br]=!0,Dr.shift=Dr.pop,Dr.unshift=Dr.push,Dr.unshiftAll=Dr.pushAll,Dr.withMutations=In,Dr.wasAltered=Tn,Dr.asImmutable=Pn,Dr["@@transducer/init"]=Dr.asMutable=kn,Dr["@@transducer/step"]=function(e,t){return e.unshift(t)},Dr["@@transducer/result"]=function(e){return e.asImmutable()};var Or="@@__IMMUTABLE_SET__@@";function Ir(e){return Boolean(e&&e[Or])}function kr(e){return Ir(e)&&Ne(e)}function Pr(e,t){if(e===t)return!0;if(!me(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||ge(e)!==ge(t)||be(e)!==be(t)||Ne(e)!==Ne(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!we(e);if(Ne(e)){var r=e.entries();return t.every((function(e,t){var o=r.next().value;return o&&ut(o[1],e)&&(n||ut(o[0],t))}))&&r.next().done}var o=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{o=!0;var i=e;e=t,t=i}var a=!0,s=t.__iterate((function(t,r){if(n?!e.has(t):o?!ut(t,e.get(r,re)):!ut(e.get(r,re),t))return a=!1,!1}));return a&&e.size===s}function Tr(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}function Nr(e){if(!e||"object"!=typeof e)return e;if(!me(e)){if(!tn(e))return e;e=Qe(e)}if(ge(e)){var t={};return e.__iterate((function(e,n){t[n]=Nr(e)})),t}var n=[];return e.__iterate((function(e){n.push(Nr(e))})),n}var Cr=function(e){function t(t){return null==t?zr():Ir(t)&&!Ne(t)?t:zr().withMutations((function(n){var r=e(t);Yt(r.size),r.forEach((function(e){return n.add(e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(Ee(e).keySeq())},t.intersect=function(e){return(e=_e(e).toArray()).length?Ar.intersect.apply(t(e.pop()),e):zr()},t.union=function(e){return(e=_e(e).toArray()).length?Ar.union.apply(t(e.pop()),e):zr()},t.prototype.toString=function(){return this.__toString("Set {","}")},t.prototype.has=function(e){return this._map.has(e)},t.prototype.add=function(e){return Lr(this,this._map.set(e,e))},t.prototype.remove=function(e){return Lr(this,this._map.remove(e))},t.prototype.clear=function(){return Lr(this,this._map.clear())},t.prototype.map=function(e,t){var n=this,r=!1,o=Lr(this,this._map.mapEntries((function(o){var i=o[1],a=e.call(t,i,i,n);return a!==i&&(r=!0),[a,a]}),t));return r?o:this},t.prototype.union=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return 0===(t=t.filter((function(e){return 0!==e.size}))).length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations((function(n){for(var r=0;r<t.length;r++)"string"==typeof t[r]?n.add(t[r]):e(t[r]).forEach((function(e){return n.add(e)}))})):this.constructor(t[0])},t.prototype.intersect=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(0===t.length)return this;t=t.map((function(t){return e(t)}));var r=[];return this.forEach((function(e){t.every((function(t){return t.includes(e)}))||r.push(e)})),this.withMutations((function(e){r.forEach((function(t){e.remove(t)}))}))},t.prototype.subtract=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(0===t.length)return this;t=t.map((function(t){return e(t)}));var r=[];return this.forEach((function(e){t.some((function(t){return t.includes(e)}))&&r.push(e)})),this.withMutations((function(e){r.forEach((function(t){e.remove(t)}))}))},t.prototype.sort=function(e){return no(qt(this,e))},t.prototype.sortBy=function(e,t){return no(qt(this,t,e))},t.prototype.wasAltered=function(){return this._map.wasAltered()},t.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate((function(t){return e(t,t,n)}),t)},t.prototype.__iterator=function(e,t){return this._map.__iterator(e,t)},t.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):0===this.size?this.__empty():(this.__ownerID=e,this._map=t,this)},t}(xe);Cr.isSet=Ir;var jr,Ar=Cr.prototype;function Lr(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function Rr(e,t){var n=Object.create(Ar);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function zr(){return jr||(jr=Rr($n()))}Ar[Or]=!0,Ar[Z]=Ar.remove,Ar.merge=Ar.concat=Ar.union,Ar.withMutations=In,Ar.asImmutable=Pn,Ar["@@transducer/init"]=Ar.asMutable=kn,Ar["@@transducer/step"]=function(e,t){return e.add(t)},Ar["@@transducer/result"]=function(e){return e.asImmutable()},Ar.__empty=zr,Ar.__make=Rr;var Mr,qr=function(e){function t(e,n,r){if(!(this instanceof t))return new t(e,n,r);if(Jt(0!==r,"Cannot step a Range by 0"),e=e||0,void 0===n&&(n=1/0),r=void 0===r?1:Math.abs(r),n<e&&(r=-r),this._start=e,this._end=n,this._step=r,this.size=Math.max(0,Math.ceil((n-e)/r-1)+1),0===this.size){if(Mr)return Mr;Mr=this}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},t.prototype.get=function(e,t){return this.has(e)?this._start+se(this,e)*this._step:t},t.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},t.prototype.slice=function(e,n){return ue(e,n,this.size)?this:(e=ce(e,this.size),(n=pe(n,this.size))<=e?new t(0,0):new t(this.get(e,this._end),this.get(n,this._end),this._step))},t.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step==0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},t.prototype.lastIndexOf=function(e){return this.indexOf(e)},t.prototype.__iterate=function(e,t){for(var n=this.size,r=this._step,o=t?this._start+(n-1)*r:this._start,i=0;i!==n&&!1!==e(o,t?n-++i:i++,this);)o+=t?-r:r;return i},t.prototype.__iterator=function(e,t){var n=this.size,r=this._step,o=t?this._start+(n-1)*r:this._start,i=0;return new Me((function(){if(i===n)return{value:void 0,done:!0};var a=o;return o+=t?-r:r,qe(e,t?n-++i:i++,a)}))},t.prototype.equals=function(e){return e instanceof t?this._start===e._start&&this._end===e._end&&this._step===e._step:Pr(this,e)},t}(Ke);function Fr(e,t,n){for(var r=Xt(t),o=0;o!==r.length;)if((e=on(e,r[o++],re))===re)return n;return e}function Br(e,t){return Fr(this,e,t)}function Ur(e,t){return Fr(e,t,re)!==re}function $r(){Yt(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e}_e.isIterable=me,_e.isKeyed=ge,_e.isIndexed=be,_e.isAssociative=we,_e.isOrdered=Ne,_e.Iterator=Me,Tr(_e,{toArray:function(){Yt(this.size);var e=new Array(this.size||0),t=ge(this),n=0;return this.__iterate((function(r,o){e[n++]=t?[o,r]:r})),e},toIndexedSeq:function(){return new Pt(this)},toJS:function(){return Nr(this)},toKeyedSeq:function(){return new kt(this,!0)},toMap:function(){return Nn(this.toKeyedSeq())},toObject:$r,toOrderedMap:function(){return mr(this.toKeyedSeq())},toOrderedSet:function(){return no(ge(this)?this.valueSeq():this)},toSet:function(){return Cr(ge(this)?this.valueSeq():this)},toSetSeq:function(){return new Tt(this)},toSeq:function(){return be(this)?this.toIndexedSeq():ge(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return _r(ge(this)?this.valueSeq():this)},toList:function(){return tr(ge(this)?this.valueSeq():this)},toString:function(){return"[Collection]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return $t(this,function(e,t){var n=ge(e),r=[e].concat(t).map((function(e){return me(e)?n&&(e=Ee(e)):e=n?nt(e):rt(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===r.length)return e;if(1===r.length){var o=r[0];if(o===e||n&&ge(o)||be(e)&&be(o))return o}var i=new Ye(r);return n?i=i.toKeyedSeq():be(e)||(i=i.toSetSeq()),(i=i.flatten(!0)).size=r.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),i}(this,e))},includes:function(e){return this.some((function(t){return ut(t,e)}))},entries:function(){return this.__iterator(Ae)},every:function(e,t){Yt(this.size);var n=!0;return this.__iterate((function(r,o,i){if(!e.call(t,r,o,i))return n=!1,!1})),n},filter:function(e,t){return $t(this,Lt(this,e,t,!0))},partition:function(e,t){return function(e,t,n){var r=ge(e),o=[[],[]];e.__iterate((function(i,a){o[t.call(n,i,a,e)?1:0].push(r?[a,i]:i)}));var i=Wt(e);return o.map((function(t){return $t(e,i(t))}))}(this,e,t)},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},forEach:function(e,t){return Yt(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Yt(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate((function(r){n?n=!1:t+=e,t+=null!=r?r.toString():""})),t},keys:function(){return this.__iterator(Ce)},map:function(e,t){return $t(this,jt(this,e,t))},reduce:function(e,t,n){return Vr(this,e,t,n,arguments.length<2,!1)},reduceRight:function(e,t,n){return Vr(this,e,t,n,arguments.length<2,!0)},reverse:function(){return $t(this,At(this,!0))},slice:function(e,t){return $t(this,Rt(this,e,t,!0))},some:function(e,t){return!this.every(Yr(e),t)},sort:function(e){return $t(this,qt(this,e))},values:function(){return this.__iterator(je)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(e,t){return ae(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var r=Nn().asMutable();return e.__iterate((function(o,i){r.update(t.call(n,o,i,e),0,(function(e){return e+1}))})),r.asImmutable()}(this,e,t)},equals:function(e){return Pr(this,e)},entrySeq:function(){var e=this;if(e._cache)return new Ye(e._cache);var t=e.toSeq().map(Jr).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(Yr(e),t)},findEntry:function(e,t,n){var r=n;return this.__iterate((function(n,o,i){if(e.call(t,n,o,i))return r=[o,n],!1})),r},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},findLastEntry:function(e,t,n){return this.toKeyedSeq().reverse().findEntry(e,t,n)},findLastKey:function(e,t){return this.toKeyedSeq().reverse().findKey(e,t)},first:function(e){return this.find(le,null,e)},flatMap:function(e,t){return $t(this,function(e,t,n){var r=Wt(e);return e.toSeq().map((function(o,i){return r(t.call(n,o,i,e))})).flatten(!0)}(this,e,t))},flatten:function(e){return $t(this,Mt(this,e,!0))},fromEntrySeq:function(){return new Nt(this)},get:function(e,t){return this.find((function(t,n){return ut(n,e)}),void 0,t)},getIn:Br,groupBy:function(e,t){return function(e,t,n){var r=ge(e),o=(Ne(e)?mr():Nn()).asMutable();e.__iterate((function(i,a){o.update(t.call(n,i,a,e),(function(e){return(e=e||[]).push(r?[a,i]:i),e}))}));var i=Wt(e);return o.map((function(t){return $t(e,i(t))})).asImmutable()}(this,e,t)},has:function(e){return this.get(e,re)!==re},hasIn:function(e){return Ur(this,e)},isSubset:function(e){return e="function"==typeof e.includes?e:_e(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:_e(e)).isSubset(this)},keyOf:function(e){return this.findKey((function(t){return ut(t,e)}))},keySeq:function(){return this.toSeq().map(Kr).toIndexedSeq()},last:function(e){return this.toSeq().reverse().first(e)},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return Ft(this,e)},maxBy:function(e,t){return Ft(this,t,e)},min:function(e){return Ft(this,e?Xr(e):eo)},minBy:function(e,t){return Ft(this,t?Xr(t):eo,e)},rest:function(){return this.slice(1)},skip:function(e){return 0===e?this:this.slice(Math.max(0,e))},skipLast:function(e){return 0===e?this:this.slice(0,-Math.max(0,e))},skipWhile:function(e,t){return $t(this,zt(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(Yr(e),t)},sortBy:function(e,t){return $t(this,qt(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return this.slice(-Math.max(0,e))},takeWhile:function(e,t){return $t(this,function(e,t,n){var r=Gt(e);return r.__iterateUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterate(r,o);var a=0;return e.__iterate((function(e,o,s){return t.call(n,e,o,s)&&++a&&r(e,o,i)})),a},r.__iteratorUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterator(r,o);var a=e.__iterator(Ae,o),s=!0;return new Me((function(){if(!s)return{value:void 0,done:!0};var e=a.next();if(e.done)return e;var o=e.value,l=o[0],u=o[1];return t.call(n,u,l,i)?r===Ae?e:qe(r,l,u,e):(s=!1,{value:void 0,done:!0})}))},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(Yr(e),t)},update:function(e){return e(this)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(e){if(e.size===1/0)return 0;var t=Ne(e),n=ge(e),r=t?1:0;return function(e,t){return t=ct(t,3432918353),t=ct(t<<15|t>>>-15,461845907),t=ct(t<<13|t>>>-13,5),t=(t+3864292196|0)^e,t=ct(t^t>>>16,2246822507),t=ct(t^t>>>13,3266489909),t=pt(t^t>>>16),t}(e.__iterate(n?t?function(e,t){r=31*r+to(ft(e),ft(t))|0}:function(e,t){r=r+to(ft(e),ft(t))|0}:t?function(e){r=31*r+ft(e)|0}:function(e){r=r+ft(e)|0}),r)}(this))}});var Hr=_e.prototype;Hr[he]=!0,Hr[ze]=Hr.values,Hr.toJSON=Hr.toArray,Hr.__toStringMapper=nn,Hr.inspect=Hr.toSource=function(){return this.toString()},Hr.chain=Hr.flatMap,Hr.contains=Hr.includes,Tr(Ee,{flip:function(){return $t(this,Ct(this))},mapEntries:function(e,t){var n=this,r=0;return $t(this,this.toSeq().map((function(o,i){return e.call(t,[i,o],r++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return $t(this,this.toSeq().flip().map((function(r,o){return e.call(t,r,o,n)})).flip())}});var Wr=Ee.prototype;Wr[ye]=!0,Wr[ze]=Hr.entries,Wr.toJSON=$r,Wr.__toStringMapper=function(e,t){return nn(t)+": "+nn(e)},Tr(De,{toKeyedSeq:function(){return new kt(this,!1)},filter:function(e,t){return $t(this,Lt(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return $t(this,At(this,!1))},slice:function(e,t){return $t(this,Rt(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(t||0,0),0===n||2===n&&!t)return this;e=ce(e,e<0?this.count():this.size);var r=this.slice(0,e);return $t(this,1===n?r:r.concat(Kt(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(e){return this.get(0,e)},flatten:function(e){return $t(this,Mt(this,e,!1))},get:function(e,t){return(e=se(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,n){return n===e}),void 0,t)},has:function(e){return(e=se(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return $t(this,function(e,t){var n=Gt(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,r){var o=this,i=0;return e.__iterate((function(e){return(!i||!1!==n(t,i++,o))&&!1!==n(e,i++,o)}),r),i},n.__iteratorUncached=function(n,r){var o,i=e.__iterator(je,r),a=0;return new Me((function(){return(!o||a%2)&&(o=i.next()).done?o:a%2?qe(n,a++,t):qe(n,a++,o.value,o)}))},n}(this,e))},interleave:function(){var e=[this].concat(Kt(arguments)),t=Ut(this.toSeq(),Ke.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),$t(this,n)},keySeq:function(){return qr(0,this.size)},last:function(e){return this.get(-1,e)},skipWhile:function(e,t){return $t(this,zt(this,e,t,!1))},zip:function(){return $t(this,Ut(this,Zr,[this].concat(Kt(arguments))))},zipAll:function(){return $t(this,Ut(this,Zr,[this].concat(Kt(arguments)),!0))},zipWith:function(e){var t=Kt(arguments);return t[0]=this,$t(this,Ut(this,e,t))}});var Gr=De.prototype;Gr[ve]=!0,Gr[Te]=!0,Tr(xe,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}});var Qr=xe.prototype;function Vr(e,t,n,r,o,i){return Yt(e.size),e.__iterate((function(e,i,a){o?(o=!1,n=e):n=t.call(r,n,e,i,a)}),i),n}function Kr(e,t){return t}function Jr(e,t){return[t,e]}function Yr(e){return function(){return!e.apply(this,arguments)}}function Xr(e){return function(){return-e.apply(this,arguments)}}function Zr(){return Kt(arguments)}function eo(e,t){return e<t?1:e>t?-1:0}function to(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}Qr.has=Hr.includes,Qr.contains=Qr.includes,Qr.keys=Qr.values,Tr(Ve,Wr),Tr(Ke,Gr),Tr(Je,Qr);var no=function(e){function t(e){return null==e?ao():kr(e)?e:ao().withMutations((function(t){var n=xe(e);Yt(n.size),n.forEach((function(e){return t.add(e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(Ee(e).keySeq())},t.prototype.toString=function(){return this.__toString("OrderedSet {","}")},t}(Cr);no.isOrderedSet=kr;var ro,oo=no.prototype;function io(e,t){var n=Object.create(oo);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function ao(){return ro||(ro=io(gr()))}oo[Te]=!0,oo.zip=Gr.zip,oo.zipWith=Gr.zipWith,oo.zipAll=Gr.zipAll,oo.__empty=ao,oo.__make=io;var so=function(e,t){var n;!function(e){if(ke(e))throw new Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(Pe(e))throw new Error("Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.");if(null===e||"object"!=typeof e)throw new Error("Can not call `Record` with a non-object as default values. Use a plain javascript object instead.")}(e);var r=function(i){var a=this;if(i instanceof r)return i;if(!(this instanceof r))return new r(i);if(!n){n=!0;var s=Object.keys(e),l=o._indices={};o._name=t,o._keys=s,o._defaultValues=e;for(var u=0;u<s.length;u++){var c=s[u];l[c]=u,o[c]?"object"==typeof console&&console.warn&&console.warn("Cannot define "+co(this)+' with property "'+c+'" since that property name is part of the Record API.'):fo(o,c)}}return this.__ownerID=void 0,this._values=tr().withMutations((function(e){e.setSize(a._keys.length),Ee(i).forEach((function(t,n){e.set(a._indices[n],t===a._defaultValues[n]?void 0:t)}))})),this},o=r.prototype=Object.create(lo);return o.constructor=r,t&&(r.displayName=t),r};so.prototype.toString=function(){for(var e,t=co(this)+" { ",n=this._keys,r=0,o=n.length;r!==o;r++)t+=(r?", ":"")+(e=n[r])+": "+nn(this.get(e));return t+" }"},so.prototype.equals=function(e){return this===e||ke(e)&&po(this).equals(po(e))},so.prototype.hashCode=function(){return po(this).hashCode()},so.prototype.has=function(e){return this._indices.hasOwnProperty(e)},so.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._indices[e],r=this._values.get(n);return void 0===r?this._defaultValues[e]:r},so.prototype.set=function(e,t){if(this.has(e)){var n=this._values.set(this._indices[e],t===this._defaultValues[e]?void 0:t);if(n!==this._values&&!this.__ownerID)return uo(this,n)}return this},so.prototype.remove=function(e){return this.set(e)},so.prototype.clear=function(){var e=this._values.clear().setSize(this._keys.length);return this.__ownerID?this:uo(this,e)},so.prototype.wasAltered=function(){return this._values.wasAltered()},so.prototype.toSeq=function(){return po(this)},so.prototype.toJS=function(){return Nr(this)},so.prototype.entries=function(){return this.__iterator(Ae)},so.prototype.__iterator=function(e,t){return po(this).__iterator(e,t)},so.prototype.__iterate=function(e,t){return po(this).__iterate(e,t)},so.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._values.__ensureOwner(e);return e?uo(this,t,e):(this.__ownerID=e,this._values=t,this)},so.isRecord=ke,so.getDescriptiveName=co;var lo=so.prototype;function uo(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._values=t,r.__ownerID=n,r}function co(e){return e.constructor.displayName||e.constructor.name||"Record"}function po(e){return nt(e._keys.map((function(t){return[t,e.get(t)]})))}function fo(e,t){try{Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){Jt(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}catch(e){}}lo[Ie]=!0,lo[Z]=lo.remove,lo.deleteIn=lo.removeIn=hn,lo.getIn=Br,lo.hasIn=Hr.hasIn,lo.merge=vn,lo.mergeWith=bn,lo.mergeIn=Sn,lo.mergeDeep=Dn,lo.mergeDeepWith=xn,lo.mergeDeepIn=On,lo.setIn=dn,lo.update=yn,lo.updateIn=gn,lo.withMutations=In,lo.asMutable=kn,lo.asImmutable=Pn,lo[ze]=lo.entries,lo.toJSON=lo.toObject=Hr.toObject,lo.inspect=lo.toSource=function(){return this.toString()};function ho(e,t){return mo([],t||yo,e,"",t&&t.length>2?[]:void 0,{"":e})}function mo(e,t,n,r,o,i){if("string"!=typeof n&&!Pe(n)&&(Ge(n)||Be(n)||en(n))){if(~e.indexOf(n))throw new TypeError("Cannot convert circular structure to Immutable");e.push(n),o&&""!==r&&o.push(r);var a=t.call(i,r,Qe(n).map((function(r,i){return mo(e,t,r,i,o,n)})),o&&o.slice());return e.pop(),o&&o.pop(),a}return n}function yo(e,t){return be(t)?t.toList():ge(t)?t.toMap():t.toSet()}const go=e=>{const t=e[0];let n=1,r=0;if(t)if("assessment_answer"===t.answerType){const e=t.answer.match(/{(.*?)}/im);e&&0!==e.length&&e[1]&&(n=e[1].match(/\[([^|\]]+)(?:\|(\d+))?\]/gim).length,r=Math.max(r,n))}else n=t.points;return{points:n,maxPoints:r}},vo={childrenField:"tree",keyField:"ID"},bo=new(X())(vo),wo=(e,t)=>(t.forEach((t=>{-1===e.findIndex((e=>e.ID===t.ID))&&(e=[...e,t])})),e),_o=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=ho(e),o=r.findIndex((e=>e.get("ID")===t));let i=-1;return-1===o?r.forEach(((e,n)=>{const r=e.get("tree");if(r.size){const o=r.findIndex((e=>e.get("ID")===t));-1!==o?i=[n,"tree",o]:e.get("tree").forEach(((e,r)=>{const o=e.get("tree");if(o&&o.size){const e=o.findIndex((e=>e.get("ID")===t));-1!==e&&(i=[n,"tree",r,"tree",e])}}))}})):i=[o],-1!==i&&n&&i.push("tree"),i},Eo=(e,t)=>{let n;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];clearTimeout(n),n=setTimeout((()=>{e.apply(this,o)}),t)}};var Do=n(1090);const xo="INIT_DATA",So="ADD_LESSON_ENTITY",Oo="ADD_SECTION_HEADING_ENTITY",Io="UPDATE_LESSONS",ko="UPDATE_SECTION_HEADINGS",Po="SET_ACTIVE_LESSON",To="ADD_TOPIC_ENTITY",No="SET_DRAGGABLE_ENTITY",Co="SET_IS_DROP_DISABLED_LESSON",jo="ADD_QUIZ_ENTITY",Ao="UPDATE_QUESTIONS",Lo="ADD_QUESTION_ENTITY",Ro="ADD_ANSWER_ENTITY",zo="REMOVE_ANSWER_ENTITY",Mo="ADD_LESSON",qo="ADD_TOPIC",Fo="ADD_QUIZ",Bo="ADD_QUESTION",Uo="UPDATE_WORKSPACE_NODE_TITLE",$o="UPDATE_NODE_TITLE",Ho="TOGGLE_EXPAND_ALL",Wo="TOGGLE_EXPAND_ENTITY",Go="ADD_FINAL_QUIZ_ENTITY",Qo="SORT_FINAL_QUIZZES_OUTLINE",Vo="REMOVE_ENTITY",Ko="REMOVE_SECTION_HEADING_ENTITY",Jo="MOVE_ENTITY",Yo="REMOVE_EXISTING_ENTITY",Xo="UPDATE_QUESTION_TYPE",Zo="UPDATE_QUESTION_ANSWERS";function ei(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ti(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ei(Object(n),!0).forEach((function(t){ni(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ei(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ni(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ri={disabledDrop:!1,currentDraggableEntity:null,currentDroppableEntity:null,activeLesson:null,isDropDisabledLesson:null,lessons:void 0!==LearnDashData.outline&&void 0!==LearnDashData.outline.lessons?LearnDashData.outline.lessons:[],quizzes:void 0!==LearnDashData.outline&&void 0!==LearnDashData.outline.quizzes?LearnDashData.outline.quizzes:[],questions:void 0!==LearnDashData.outline&&void 0!==LearnDashData.outline.questions?LearnDashData.outline.questions:[],sections:void 0!==LearnDashData.outline&&void 0!==LearnDashData.outline.sections?LearnDashData.outline.sections:[],expandAll:!1,expandedItems:[],refresh:null};if(LearnDashData.post_data&&"sfwd-quiz"!==LearnDashData.post_data.builder_post_type){if(LearnDashData.outline&&LearnDashData.outline.lessons&&LearnDashData.outline.lessons.length){const e=LearnDashData.outline.lessons.findIndex((e=>"sfwd-lessons"===e.type));LearnDashData.outline.lessons[e]&&(ri.activeLesson=LearnDashData.outline.lessons[e].ID)}}else LearnDashData.outline&&LearnDashData.outline.questions&&LearnDashData.outline.questions.length&&(ri.activeLesson=LearnDashData.outline.questions[0].ID,LearnDashData.outline.questions[0].expanded=!0);const oi=(0,Do.ZP)((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ri,t=arguments.length>1?arguments[1]:void 0;const n=ho(e.lessons),r=ho(e.quizzes),o=ho(e.questions),i=e.sections?ho(e.sections):ho([]);switch(t.type){case Io:return ti(ti({},e),{},{lessons:t.payload});case ko:return ti(ti({},e),{},{sections:t.payload});case So:{let r=t.payload.index;(void 0===r||isNaN(r))&&(r=e.lessons.length);const o=n.insert(r,{ID:t.payload.ID,post_title:t.payload.post_title,url:t.payload.url,edit_link:t.payload.edit_link,tree:[],expanded:!1,type:"sfwd-lessons",post_status:t.payload.post_status}).toJS(),i=t.payload.ID,a="lesson";return ti(ti({},e),{},{lessons:o,activeLesson:i,refresh:a})}case Oo:{let r=t.payload.index,o=0;(void 0===r||isNaN(r))&&(r=e.lessons.length),o=e.activeLesson?n.findIndex((t=>t.get("ID")===e.activeLesson)):r;const a=n.insert(parseInt(o+1,10),{order:t.payload.order,ID:t.payload.ID,post_title:t.payload.post_title,url:t.payload.url,edit_link:t.payload.edit_link,tree:[],expanded:!1,type:"section-heading"}).toJS(),s=i.insert(r,{order:t.payload.order,ID:t.payload.ID,post_title:t.payload.post_title,url:t.payload.url,edit_link:t.payload.edit_link,tree:[],expanded:!1,type:"section-heading"}).toJS(),l="lesson";return ti(ti({},e),{},{lessons:a,sections:s,refresh:l})}case Po:return ti(ti({},e),{},{activeLesson:parseInt(t.payload.activeLesson)});case To:{let r=0,o=null,i=e.activeLesson;if(t.parent){if(o=n.findIndex((e=>e.get("ID")===t.parent)),-1!==o){const e=n.get(o).get("tree");if(r=t.destinationIndex,i=t.parent,0<r||null===r){const t=e.findIndex((e=>"quiz"===e.get("type")||"sfwd-quiz"===e.get("type")));r=-1!==t?t:e.size}}}else if(e.activeLesson&&(o=n.findIndex((t=>t.get("ID")===e.activeLesson)),-1!==o)){const e=n.get(o).get("tree");if(r=e.size,void 0===t.payload.destinationIndex){const t=e.findIndex((e=>"quiz"===e.get("type")||"sfwd-quiz"===e.get("type")));-1!==t&&(r=t)}}t.payload.type="sfwd-topic",t.payload.tree=[],t.payload.expanded=!1;const a=n.updateIn([o,"tree"],(e=>e.insert(r,t.payload))).toJS(),s="topic";return ti(ti({},e),{},{lessons:a,activeLesson:i,refresh:s})}case jo:{let o=-1,i=e.activeLesson;if(t.payload.type="sfwd-quiz",t.payload.expanded=!1,t.parent?(o=_o(e.lessons,t.parent,!0),i=t.parent):e.activeLesson&&(o=_o(e.lessons,e.activeLesson,!0)),-1!==o){const r=n.updateIn(o,(e=>e.push(t.payload))).toJS(),a="quiz";return ti(ti({},e),{},{lessons:r,activeLesson:i,refresh:a})}const a=e.quizzes.length,s=r.insert(a,{ID:t.payload.ID,post_title:t.payload.post_title,edit_link:t.payload.edit_link,url:t.payload.url,tree:[],expanded:!0,type:"sfwd-quiz"}).toJS();return ti(ti({},e),{},{quizzes:s})}case Ao:return ti(ti({},e),{},{questions:t.payload});case Lo:{let n=t.payload.index;(void 0===n||isNaN(n))&&(n=e.questions.length);const r={answer:"",correct:!1,graded:"1",gradedType:"text",gradingProgression:"",html:!1,points:1,sortString:"",sortStringHtml:!1,type:"answer"},i={assessment_answer:[r],classic_answer:[r],cloze_answer:[r],essay:[r],free_answer:[r],matrix_sort_answer:[r],sort_answer:[r]},a=o.insert(n,{ID:t.payload.ID,post_title:t.payload.post_title,url:t.payload.url,edit_link:t.payload.edit_link,answers:t.payload.answers?t.payload.answers:i,question_type:t.payload.question_type?t.payload.question_type:"single",post_content:t.payload.post_content?t.payload.post_content:"",points:t.payload.points?t.payload.points:1,expanded:!1,type:"sfwd-question",post_status:t.payload.post_status}).toJS(),s=t.payload.ID,l="question";return ti(ti({},e),{},{questions:a,activeLesson:s,refresh:l})}case Ro:{let n=e.questions;const r=LearnDashData.questions_types_map[t.parent.question_type],i=o.findIndex((e=>e.get("ID")===t.parent.ID)),a=e.questions[i].answers[r].length+1,s=[i,"answers",r,t.payload.index];if(s.length){const r=s.slice(0,s.length-1);return n=o.updateIn(r,(e=>e.insert(a,t.payload))).toJS(),ti(ti({},e),{},{questions:n})}return e}case zo:{let n=e.questions;const r=LearnDashData.questions_types_map[t.parent.question_type],i=[o.findIndex((e=>e.get("ID")===t.parent.ID)),"answers",r,t.payload];if(i.length){const r=i.slice(0,i.length-1);return n=o.updateIn(r,(e=>e.delete(t.payload).toJS())).toJS(),ti(ti({},e),{},{questions:n})}return e}case Uo:if(t.payload.ID&&t.payload.post_title){let n="";const r={lessons:e.lessons,questions:e.questions};n="sfwd-quiz"===LearnDashData.post_data.builder_post_type?"questions":"lessons";const o=Object.values(r[n]),i=bo.getNodeByKey(o,t.payload.ID);if(i)return i.post_title=t.payload.post_title,ti(ti({},e),{},{[n]:r[n]});const a=Object.values(e.quizzes),s=bo.getNodeByKey(a,t.payload.ID);return s?(s.post_title=t.payload.post_title,ti(ti({},e),{},{quizzes:a})):e}return e;case Go:{let n=t.index;(void 0===n||isNaN(n))&&(n=e.quizzes.length);const o=r.insert(n,{ID:t.payload.ID,post_title:t.payload.post_title,edit_link:t.payload.edit_link,url:t.payload.url,tree:[],expanded:!0,type:"sfwd-quiz"}).toJS();return ti(ti({},e),{},{quizzes:o})}case Qo:return ti(ti({},e),{},{quizzes:t.payload});case Yo:case Ko:case Vo:if(t.payload.ID){let i=e.quizzes,a="";const s={lessons:e.lessons,questions:e.questions};let l=null;"sfwd-quiz"===LearnDashData.post_data.builder_post_type?(a="questions",l=o):(a="lessons",l=n);let u=!1;const c=_o(s[a],t.payload.ID);if(-1!==c){s[a]=l.deleteIn(c).toJS(),u=!0;const t=0<s[a].length?s[a][0].ID:null;return ti(ti({},e),{},{[a]:s[a],activeLesson:t})}if("sfwd-quiz"!==LearnDashData.post_data.builder_post_type&&!u){const n=_o(e.quizzes,t.payload.ID);return-1!==n&&(i=r.deleteIn(n).toJS()),ti(ti({},e),{},{quizzes:i})}return ti(ti({},e),{},{[a]:s[a],quizzes:i})}return e;case Jo:{if(!t.payload)return e;let r="",i=[];const a={questions:e.questions,lessons:e.lessons};let s=null;if("sfwd-quiz"===LearnDashData.post_data.builder_post_type?(r="questions",s=o):(r="lessons",s=n),"answer"===t.payload.type){i=[s.findIndex((e=>e.get("ID")===t.payload.parentID)),"answers",t.payload.answerType,t.payload.index]}else i=_o(a[r],t.payload.ID,!1);if(i.length){const n=i[i.length-1],o=s.getIn(i);let l=n+1;if("up"===t.direction&&(l=n-1),1===i.length)a[r]=s.deleteIn(i).insert(l,o).toJS();else{const e=i.slice(0,i.length-1);a[r]=s.updateIn(e,(e=>e.delete(n).insert(l,o))).toJS()}return ti(ti({},e),{},{[r]:a[r]})}return e}case No:return ti(ti({},e),{},{currentDraggableEntity:t.payload.currentDraggableEntity,currentDroppableEntity:t.payload.currentDroppableEntity});case Co:return ti(ti({},e),{},{isDropDisabledLesson:t.payload.isDropDisabledLesson});case Ho:{let t="";const n={questions:e.questions,lessons:e.lessons};t="sfwd-quiz"===LearnDashData.post_data.builder_post_type?"questions":"lessons";const r=n[t].filter((e=>"sfwd-lessons"===e.type||"sfwd-question"===e.type));return e.expandAll?ti(ti({},e),{},{expandedItems:[],expandAll:!1}):ti(ti({},e),{},{expandedItems:r.map((e=>e.ID)),expandAll:!0})}case Wo:if(t.payload.ID){let n="",r=null;const o={questions:e.questions,lessons:e.lessons};n="sfwd-quiz"===LearnDashData.post_data.builder_post_type?"questions":"lessons";const i=o[n].filter((e=>"sfwd-lessons"===e.type||"sfwd-question"===e.type));if("sfwd-lessons"===t.payload.type||"sfwd-question"===t.payload.type){const n=-1!==e.expandedItems.indexOf(t.payload.ID)?e.expandedItems.filter((e=>e!==t.payload.ID)):[...e.expandedItems,t.payload.ID];return ti(ti({},e),{},{expandedItems:n,expandAll:i.length===n.length})}if("sfwd-topic"===t.payload.type){r=Object.values(o[n][t.parent].tree);const i=bo.getNodeByKey(r,t.payload.ID);if(i)return i.expanded=!t.payload.expanded,ti(ti({},e),{},{[n]:o[n]})}return e}return e;case Xo:if(t.payload.ID){const n=o.findIndex((e=>e.get("ID")===t.payload.ID));if(-1!==n){const r=o.update(n,(e=>e.set("question_type",t.payload.question_type).set("points",t.payload.points).set("post_content",t.payload.post_content))).toJS();return ti(ti({},e),{},{questions:r})}return e}return e;case Zo:if(t.question.ID){const n=o.findIndex((e=>e.get("ID")===t.question.ID));if(-1!==n){const r=o.update(n,(e=>e.setIn(["answers",LearnDashData.questions_types_map[t.question.question_type]],t.answers))).toJS();return ti(ti({},e),{},{questions:r})}}return e;default:return e}}),{filter:(0,Do.kw)([xo,No,Po,Co,Mo,Ho,Wo,Yo,Xo,Oo,Ko,ko])});function ii(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ai(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ii(Object(n),!0).forEach((function(t){si(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ii(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function si(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const li={currentTab:LearnDashData.currentTab&&LearnDashData.currentTab,tabs:LearnDashData.tabs&&LearnDashData.tabs||"",editing:LearnDashData.editing&&LearnDashData.editing,courses:LearnDashData.courses&&LearnDashData.courses,lessons:LearnDashData.lessons&&LearnDashData.lessons,topics:LearnDashData.topics&&LearnDashData.topics,quizzes:LearnDashData.quizzes&&LearnDashData.quizzes,labels:LearnDashData.labels&&LearnDashData.labels,questions:LearnDashData.questions&&LearnDashData.questions||""},ui=function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];0,"function"==typeof e[o]&&(n[o]=e[o])}var i,a=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:$.INIT}))throw new Error(F(12));if(void 0===n(void 0,{type:$.PROBE_UNKNOWN_ACTION()}))throw new Error(F(13))}))}(n)}catch(e){i=e}return function(e,t){if(void 0===e&&(e={}),i)throw i;for(var r=!1,o={},s=0;s<a.length;s++){var l=a[s],u=n[l],c=e[l],p=u(c,t);if(void 0===p){t&&t.type;throw new Error(F(14))}o[l]=p,r=r||p!==c}return(r=r||a.length!==Object.keys(e).length)?o:e}}({data:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:li,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case xo:return ai(ai({},e),{},{[t.payload.field]:t.payload.data});case Mo:{const n=Object.values(e.lessons);return n.unshift(t.payload),ai(ai({},e),{},{lessons:n})}case qo:{const n=Object.values(e.topics);return n.unshift(t.payload),ai(ai({},e),{},{topics:n})}case Fo:{const n=Object.values(e.quizzes);return n.unshift(t.payload),ai(ai({},e),{},{quizzes:n})}case Bo:case Lo:{const n=Object.values(e.questions);return n.unshift(t.payload),ai(ai({},e),{},{questions:n})}case $o:if(t.payload.ID&&t.payload.post_title){const n={lesson:"lessons","sfwd-lessons":"lessons",topic:"topics","sfwd-topic":"topics",quiz:"quizzes","sfwd-quiz":"quizzes",question:"questions","sfwd-question":"questions"},r=Object.values(e[n[t.payload.type]]),o=bo.getNodeByKey(r,t.payload.ID);if(o&&(o.post_title=t.payload.post_title),"lesson"===t.payload.type)return ai(ai({},e),{},{lessons:r});if("topic"===t.payload.type)return ai(ai({},e),{},{topics:r});if("quiz"===t.payload.type)return ai(ai({},e),{},{quizzes:r});if("question"===t.payload.type)return ai(ai({},e),{},{questions:r})}return e;default:return e}},workspace:oi}),ci=W(ui);var pi=n(5697),di=n.n(pi);function fi(e,t){return fi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fi(e,t)}function hi(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,fi(e,t)}var mi=e.createContext(null);var yi=function(e){e()},gi=function(){return yi};var vi={notify:function(){},get:function(){return[]}};function bi(e,t){var n,r=vi;function o(){a.onStateChange&&a.onStateChange()}function i(){n||(n=t?t.addNestedSub(o):e.subscribe(o),r=function(){var e=gi(),t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}())}var a={addNestedSub:function(e){return i(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:o,isSubscribed:function(){return Boolean(n)},trySubscribe:i,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=vi)},getListeners:function(){return r}};return a}var wi="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?e.useLayoutEffect:e.useEffect;const _i=function(t){var n=t.store,r=t.context,o=t.children,i=(0,e.useMemo)((function(){var e=bi(n);return{store:n,subscription:e}}),[n]),a=(0,e.useMemo)((function(){return n.getState()}),[n]);wi((function(){var e=i.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),a!==n.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[i,a]);var s=r||mi;return e.createElement(s.Provider,{value:i},o)};var Ei=n(6001),Di=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],xi=["reactReduxForwardedRef"],Si=[],Oi=[null,null];function Ii(e,t){var n=e[1];return[t.payload,n+1]}function ki(e,t,n){wi((function(){return e.apply(void 0,t)}),n)}function Pi(e,t,n,r,o,i,a){e.current=r,t.current=o,n.current=!1,i.current&&(i.current=null,a())}function Ti(e,t,n,r,o,i,a,s,l,u){if(e){var c=!1,p=null,d=function(){if(!c){var e,n,d=t.getState();try{e=r(d,o.current)}catch(e){n=e,p=e}n||(p=null),e===i.current?a.current||l():(i.current=e,s.current=e,a.current=!0,u({type:"STORE_UPDATED",payload:{error:n}}))}};n.onStateChange=d,n.trySubscribe(),d();return function(){if(c=!0,n.tryUnsubscribe(),n.onStateChange=null,p)throw p}}}var Ni=function(){return[null,0]};function Ci(t,n){void 0===n&&(n={});var r=n,o=r.getDisplayName,i=void 0===o?function(e){return"ConnectAdvanced("+e+")"}:o,a=r.methodName,s=void 0===a?"connectAdvanced":a,l=r.renderCountProp,p=void 0===l?void 0:l,f=r.shouldHandleStateChanges,h=void 0===f||f,m=r.storeKey,y=void 0===m?"store":m,g=(r.withRef,r.forwardRef),v=void 0!==g&&g,b=r.context,w=void 0===b?mi:b,_=c(r,Di),E=w;return function(n){var r=n.displayName||n.name||"Component",o=i(r),a=u({},_,{getDisplayName:i,methodName:s,renderCountProp:p,shouldHandleStateChanges:h,storeKey:y,displayName:o,wrappedComponentName:r,WrappedComponent:n}),l=_.pure;var f=l?e.useMemo:function(e){return e()};function m(r){var o=(0,e.useMemo)((function(){var e=r.reactReduxForwardedRef,t=c(r,xi);return[r.context,e,t]}),[r]),i=o[0],s=o[1],l=o[2],p=(0,e.useMemo)((function(){return i&&i.Consumer&&(0,Ei.isContextConsumer)(e.createElement(i.Consumer,null))?i:E}),[i,E]),d=(0,e.useContext)(p),m=Boolean(r.store)&&Boolean(r.store.getState)&&Boolean(r.store.dispatch);Boolean(d)&&Boolean(d.store);var y=m?r.store:d.store,g=(0,e.useMemo)((function(){return function(e){return t(e.dispatch,a)}(y)}),[y]),v=(0,e.useMemo)((function(){if(!h)return Oi;var e=bi(y,m?null:d.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[y,m,d]),b=v[0],w=v[1],_=(0,e.useMemo)((function(){return m?d:u({},d,{subscription:b})}),[m,d,b]),D=(0,e.useReducer)(Ii,Si,Ni),x=D[0][0],S=D[1];if(x&&x.error)throw x.error;var O=(0,e.useRef)(),I=(0,e.useRef)(l),k=(0,e.useRef)(),P=(0,e.useRef)(!1),T=f((function(){return k.current&&l===I.current?k.current:g(y.getState(),l)}),[y,x,l]);ki(Pi,[I,O,P,l,T,k,w]),ki(Ti,[h,y,b,g,I,O,P,k,w,S],[y,b,g]);var N=(0,e.useMemo)((function(){return e.createElement(n,u({},T,{ref:s}))}),[s,n,T]);return(0,e.useMemo)((function(){return h?e.createElement(p.Provider,{value:_},N):N}),[p,N,_])}var g=l?e.memo(m):m;if(g.WrappedComponent=n,g.displayName=m.displayName=o,v){var b=e.forwardRef((function(t,n){return e.createElement(g,u({},t,{reactReduxForwardedRef:n}))}));return b.displayName=o,b.WrappedComponent=n,d()(b,n)}return d()(g,n)}}function ji(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function Ai(e,t){if(ji(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++)if(!Object.prototype.hasOwnProperty.call(t,n[o])||!ji(e[n[o]],t[n[o]]))return!1;return!0}function Li(e){return function(t,n){var r=e(t,n);function o(){return r}return o.dependsOnOwnProps=!1,o}}function Ri(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function zi(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=Ri(e);var o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=Ri(o),o=r(t,n)),o},r}}const Mi=[function(e){return"function"==typeof e?zi(e):void 0},function(e){return e?void 0:Li((function(e){return{dispatch:e}}))},function(e){return e&&"object"==typeof e?Li((function(t){return function(e,t){var n={},r=function(r){var o=e[r];"function"==typeof o&&(n[r]=function(){return t(o.apply(void 0,arguments))})};for(var o in e)r(o);return n}(e,t)})):void 0}];const qi=[function(e){return"function"==typeof e?zi(e):void 0},function(e){return e?void 0:Li((function(){return{}}))}];function Fi(e,t,n){return u({},n,e,t)}const Bi=[function(e){return"function"==typeof e?function(e){return function(t,n){n.displayName;var r,o=n.pure,i=n.areMergedPropsEqual,a=!1;return function(t,n,s){var l=e(t,n,s);return a?o&&i(l,r)||(r=l):(a=!0,r=l),r}}}(e):void 0},function(e){return e?void 0:function(){return Fi}}];var Ui=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function $i(e,t,n,r){return function(o,i){return n(e(o,i),t(r,i),i)}}function Hi(e,t,n,r,o){var i,a,s,l,u,c=o.areStatesEqual,p=o.areOwnPropsEqual,d=o.areStatePropsEqual,f=!1;function h(o,f){var h,m,y=!p(f,a),g=!c(o,i,f,a);return i=o,a=f,y&&g?(s=e(i,a),t.dependsOnOwnProps&&(l=t(r,a)),u=n(s,l,a)):y?(e.dependsOnOwnProps&&(s=e(i,a)),t.dependsOnOwnProps&&(l=t(r,a)),u=n(s,l,a)):g?(h=e(i,a),m=!d(h,s),s=h,m&&(u=n(s,l,a)),u):u}return function(o,c){return f?h(o,c):(s=e(i=o,a=c),l=t(r,a),u=n(s,l,a),f=!0,u)}}function Wi(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,o=t.initMergeProps,i=c(t,Ui),a=n(e,i),s=r(e,i),l=o(e,i);return(i.pure?Hi:$i)(a,s,l,e,i)}var Gi=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function Qi(e,t,n){for(var r=t.length-1;r>=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function Vi(e,t){return e===t}function Ki(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?Ci:n,o=t.mapStateToPropsFactories,i=void 0===o?qi:o,a=t.mapDispatchToPropsFactories,s=void 0===a?Mi:a,l=t.mergePropsFactories,p=void 0===l?Bi:l,d=t.selectorFactory,f=void 0===d?Wi:d;return function(e,t,n,o){void 0===o&&(o={});var a=o,l=a.pure,d=void 0===l||l,h=a.areStatesEqual,m=void 0===h?Vi:h,y=a.areOwnPropsEqual,g=void 0===y?Ai:y,v=a.areStatePropsEqual,b=void 0===v?Ai:v,w=a.areMergedPropsEqual,_=void 0===w?Ai:w,E=c(a,Gi),D=Qi(e,i,"mapStateToProps"),x=Qi(t,s,"mapDispatchToProps"),S=Qi(n,p,"mergeProps");return r(f,u({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:D,initMapDispatchToProps:x,initMergeProps:S,pure:d,areStatesEqual:m,areOwnPropsEqual:g,areStatePropsEqual:b,areMergedPropsEqual:_},E))}}const Ji=Ki();function Yi(t,n){var r=(0,e.useState)((function(){return{inputs:n,result:t()}}))[0],o=(0,e.useRef)(!0),i=(0,e.useRef)(r),a=o.current||Boolean(n&&i.current.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(n,i.current.inputs))?i.current:{inputs:n,result:t()};return(0,e.useEffect)((function(){o.current=!1,i.current=a}),[a]),a.result}!function(e){yi=e}(t.unstable_batchedUpdates);var Xi=Yi,Zi=function(e,t){return Yi((function(){return e}),t)},ea="Invariant failed";var ta=function(e){var t=e.top,n=e.right,r=e.bottom,o=e.left;return{top:t,right:n,bottom:r,left:o,width:n-o,height:r-t,x:o,y:t,center:{x:(n+o)/2,y:(r+t)/2}}},na=function(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}},ra=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},oa={top:0,right:0,bottom:0,left:0},ia=function(e){var t=e.borderBox,n=e.margin,r=void 0===n?oa:n,o=e.border,i=void 0===o?oa:o,a=e.padding,s=void 0===a?oa:a,l=ta(na(t,r)),u=ta(ra(t,i)),c=ta(ra(u,s));return{marginBox:l,borderBox:ta(t),paddingBox:u,contentBox:c,margin:r,border:i,padding:s}},aa=function(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var n=Number(t);return isNaN(n)&&function(e,t){if(!e)throw new Error(ea)}(!1),n},sa=function(e,t){var n,r,o=e.borderBox,i=e.border,a=e.margin,s=e.padding,l=(r=t,{top:(n=o).top+r.y,left:n.left+r.x,bottom:n.bottom+r.y,right:n.right+r.x});return ia({borderBox:l,border:i,margin:a,padding:s})},la=function(e,t){return void 0===t&&(t={x:window.pageXOffset,y:window.pageYOffset}),sa(e,t)},ua=function(e,t){var n={top:aa(t.marginTop),right:aa(t.marginRight),bottom:aa(t.marginBottom),left:aa(t.marginLeft)},r={top:aa(t.paddingTop),right:aa(t.paddingRight),bottom:aa(t.paddingBottom),left:aa(t.paddingLeft)},o={top:aa(t.borderTopWidth),right:aa(t.borderRightWidth),bottom:aa(t.borderBottomWidth),left:aa(t.borderLeftWidth)};return ia({borderBox:e,margin:n,padding:r,border:o})},ca=function(e){var t=e.getBoundingClientRect(),n=window.getComputedStyle(e);return ua(t,n)},pa=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function da(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||pa(r)&&pa(o)))return!1;var r,o;return!0}const fa=function(e,t){var n;void 0===t&&(t=da);var r,o=[],i=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}};const ha=function(e){var t=[],n=null,r=function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];t=o,n||(n=requestAnimationFrame((function(){n=null,e.apply(void 0,t)})))};return r.cancel=function(){n&&(cancelAnimationFrame(n),n=null)},r};function ma(e,t){}ma.bind(null,"warn"),ma.bind(null,"error");function ya(){}function ga(e,t,n){var r=t.map((function(t){var r=function(e,t){return u({},e,{},t)}(n,t.options);return e.addEventListener(t.eventName,t.fn,r),function(){e.removeEventListener(t.eventName,t.fn,r)}}));return function(){r.forEach((function(e){e()}))}}var va=!0,ba="Invariant failed";function wa(e){this.message=e}function _a(e,t){if(!e)throw new wa(va?ba:ba+": "+(t||""))}wa.prototype.toString=function(){return this.message};var Ea=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).callbacks=null,t.unbind=ya,t.onWindowError=function(e){var n=t.getCallbacks();n.isDragging()&&n.tryAbort(),e.error instanceof wa&&e.preventDefault()},t.getCallbacks=function(){if(!t.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return t.callbacks},t.setCallbacks=function(e){t.callbacks=e},t}hi(t,e);var n=t.prototype;return n.componentDidMount=function(){this.unbind=ga(window,[{eventName:"error",fn:this.onWindowError}])},n.componentDidCatch=function(e){if(!(e instanceof wa))throw e;this.setState({})},n.componentWillUnmount=function(){this.unbind()},n.render=function(){return this.props.children(this.setCallbacks)},t}(e.Component),Da=function(e){return e+1},xa=function(e,t){var n=e.droppableId===t.droppableId,r=Da(e.index),o=Da(t.index);return n?"\n You have moved the item from position "+r+"\n to position "+o+"\n ":"\n You have moved the item from position "+r+"\n in list "+e.droppableId+"\n to list "+t.droppableId+"\n in position "+o+"\n "},Sa=function(e,t,n){return t.droppableId===n.droppableId?"\n The item "+e+"\n has been combined with "+n.draggableId:"\n The item "+e+"\n in list "+t.droppableId+"\n has been combined with "+n.draggableId+"\n in list "+n.droppableId+"\n "},Oa=function(e){return"\n The item has returned to its starting position\n of "+Da(e.index)+"\n"},Ia="\n Press space bar to start a drag.\n When dragging you can use the arrow keys to move the item around and escape to cancel.\n Some screen readers may require you to be in focus mode or to use your pass through key\n",ka=function(e){return"\n You have lifted an item in position "+Da(e.source.index)+"\n"},Pa=function(e){var t=e.destination;if(t)return xa(e.source,t);var n=e.combine;return n?Sa(e.draggableId,e.source,n):"You are over an area that cannot be dropped on"},Ta=function(e){if("CANCEL"===e.reason)return"\n Movement cancelled.\n "+Oa(e.source)+"\n ";var t=e.destination,n=e.combine;return t?"\n You have dropped the item.\n "+xa(e.source,t)+"\n ":n?"\n You have dropped the item.\n "+Sa(e.draggableId,e.source,n)+"\n ":"\n The item has been dropped while not over a drop area.\n "+Oa(e.source)+"\n "},Na={x:0,y:0},Ca=function(e,t){return{x:e.x+t.x,y:e.y+t.y}},ja=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},Aa=function(e,t){return e.x===t.x&&e.y===t.y},La=function(e){return{x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}},Ra=function(e,t,n){var r;return void 0===n&&(n=0),(r={})[e]=t,r["x"===e?"y":"x"]=n,r},za=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},Ma=function(e,t){return Math.min.apply(Math,t.map((function(t){return za(e,t)})))},qa=function(e){return function(t){return{x:e(t.x),y:e(t.y)}}},Fa=function(e,t){return{top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}},Ba=function(e){return[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}]},Ua=function(e,t){return t&&t.shouldClipSubject?function(e,t){var n=ta({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return n.width<=0||n.height<=0?null:n}(t.pageMarginBox,e):ta(e)},$a=function(e){var t=e.page,n=e.withPlaceholder,r=e.axis,o=e.frame,i=function(e,t){return t?Fa(e,t.scroll.diff.displacement):e}(t.marginBox,o),a=function(e,t,n){var r;return n&&n.increasedBy?u({},e,((r={})[t.end]=e[t.end]+n.increasedBy[t.line],r)):e}(i,r,n);return{page:t,withPlaceholder:n,active:Ua(a,o)}},Ha=function(e,t){e.frame||_a(!1);var n=e.frame,r=ja(t,n.scroll.initial),o=La(r),i=u({},n,{scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:o},max:n.scroll.max}});return u({},e,{frame:i,subject:$a({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:i})})};function Wa(e){return Object.values?Object.values(e):Object.keys(e).map((function(t){return e[t]}))}function Ga(e,t){if(e.findIndex)return e.findIndex(t);for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1}function Qa(e,t){if(e.find)return e.find(t);var n=Ga(e,t);return-1!==n?e[n]:void 0}function Va(e){return Array.prototype.slice.call(e)}var Ka=fa((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),Ja=fa((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),Ya=fa((function(e){return Wa(e)})),Xa=fa((function(e){return Wa(e)})),Za=fa((function(e,t){var n=Xa(t).filter((function(t){return e===t.descriptor.droppableId})).sort((function(e,t){return e.descriptor.index-t.descriptor.index}));return n}));function es(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function ts(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var ns=fa((function(e,t){return t.filter((function(t){return t.descriptor.id!==e.descriptor.id}))})),rs=function(e,t){return e.descriptor.droppableId===t.descriptor.id},os={point:Na,value:0},is={invisible:{},visible:{},all:[]},as={displaced:is,displacedBy:os,at:null},ss=function(e,t){return function(n){return e<=n&&n<=t}},ls=function(e){var t=ss(e.top,e.bottom),n=ss(e.left,e.right);return function(r){if(t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right))return!0;var o=t(r.top)||t(r.bottom),i=n(r.left)||n(r.right);if(o&&i)return!0;var a=r.top<e.top&&r.bottom>e.bottom,s=r.left<e.left&&r.right>e.right;return!(!a||!s)||(a&&i||s&&o)}},us=function(e){var t=ss(e.top,e.bottom),n=ss(e.left,e.right);return function(e){return t(e.top)&&t(e.bottom)&&n(e.left)&&n(e.right)}},cs={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},ps={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},ds=function(e){var t=e.target,n=e.destination,r=e.viewport,o=e.withDroppableDisplacement,i=e.isVisibleThroughFrameFn,a=o?function(e,t){var n=t.frame?t.frame.scroll.diff.displacement:Na;return Fa(e,n)}(t,n):t;return function(e,t,n){return!!t.subject.active&&n(t.subject.active)(e)}(a,n,i)&&function(e,t,n){return n(t)(e)}(a,r,i)},fs=function(e){return ds(u({},e,{isVisibleThroughFrameFn:ls}))},hs=function(e){return ds(u({},e,{isVisibleThroughFrameFn:us}))},ms=function(e,t,n){if("boolean"==typeof n)return n;if(!t)return!0;var r=t.invisible,o=t.visible;if(r[e])return!1;var i=o[e];return!i||i.shouldAnimate};function ys(e){var t=e.afterDragging,n=e.destination,r=e.displacedBy,o=e.viewport,i=e.forceShouldAnimate,a=e.last;return t.reduce((function(e,t){var s=function(e,t){var n=e.page.marginBox,r={top:t.point.y,right:0,bottom:0,left:t.point.x};return ta(na(n,r))}(t,r),l=t.descriptor.id;if(e.all.push(l),!fs({target:s,destination:n,viewport:o,withDroppableDisplacement:!0}))return e.invisible[t.descriptor.id]=!0,e;var u={draggableId:l,shouldAnimate:ms(l,a,i)};return e.visible[l]=u,e}),{all:[],visible:{},invisible:{}})}function gs(e){var t=e.insideDestination,n=e.inHomeList,r=e.displacedBy,o=e.destination,i=function(e,t){if(!e.length)return 0;var n=e[e.length-1].descriptor.index;return t.inHomeList?n:n+1}(t,{inHomeList:n});return{displaced:is,displacedBy:r,at:{type:"REORDER",destination:{droppableId:o.descriptor.id,index:i}}}}function vs(e){var t=e.draggable,n=e.insideDestination,r=e.destination,o=e.viewport,i=e.displacedBy,a=e.last,s=e.index,l=e.forceShouldAnimate,u=rs(t,r);if(null==s)return gs({insideDestination:n,inHomeList:u,displacedBy:i,destination:r});var c=Qa(n,(function(e){return e.descriptor.index===s}));if(!c)return gs({insideDestination:n,inHomeList:u,displacedBy:i,destination:r});var p=ns(t,n),d=n.indexOf(c);return{displaced:ys({afterDragging:p.slice(d),destination:r,displacedBy:i,last:a,viewport:o.frame,forceShouldAnimate:l}),displacedBy:i,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:s}}}}function bs(e,t){return Boolean(t.effected[e])}var ws=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.draggable,o=e.draggables,i=e.destination,a=e.insideDestination,s=e.previousImpact,l=e.viewport,u=e.afterCritical,c=s.at;if(c||_a(!1),"REORDER"===c.type){var p=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.insideDestination,o=e.location;if(!r.length)return null;var i=o.index,a=t?i+1:i-1,s=r[0].descriptor.index,l=r[r.length-1].descriptor.index;return a<s||a>(n?l:l+1)?null:a}({isMovingForward:t,isInHomeList:n,location:c.destination,insideDestination:a});return null==p?null:vs({draggable:r,insideDestination:a,destination:i,viewport:l,last:s.displaced,displacedBy:s.displacedBy,index:p})}var d=function(e){var t=e.isMovingForward,n=e.destination,r=e.draggables,o=e.combine,i=e.afterCritical;if(!n.isCombineEnabled)return null;var a=o.draggableId,s=r[a].descriptor.index;return bs(a,i)?t?s:s-1:t?s+1:s}({isMovingForward:t,destination:i,displaced:s.displaced,draggables:o,combine:c.combine,afterCritical:u});return null==d?null:vs({draggable:r,insideDestination:a,destination:i,viewport:l,last:s.displaced,displacedBy:s.displacedBy,index:d})},_s=function(e){var t=e.afterCritical,n=e.impact,r=e.draggables,o=ts(n);o||_a(!1);var i=o.draggableId,a=r[i].page.borderBox.center,s=function(e){var t=e.displaced,n=e.afterCritical,r=e.combineWith,o=e.displacedBy,i=Boolean(t.visible[r]||t.invisible[r]);return bs(r,n)?i?Na:La(o.point):i?o.point:Na}({displaced:n.displaced,afterCritical:t,combineWith:i,displacedBy:n.displacedBy});return Ca(a,s)},Es=function(e,t){return t.margin[e.start]+t.borderBox[e.size]/2},Ds=function(e,t,n){return t[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2},xs=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return Ra(t.line,n.marginBox[t.end]+Es(t,r),Ds(t,n.marginBox,r))},Ss=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return Ra(t.line,n.marginBox[t.start]-function(e,t){return t.margin[e.end]+t.borderBox[e.size]/2}(t,r),Ds(t,n.marginBox,r))},Os=function(e){var t=e.impact,n=e.draggable,r=e.draggables,o=e.droppable,i=e.afterCritical,a=Za(o.descriptor.id,r),s=n.page,l=o.axis;if(!a.length)return function(e){var t=e.axis,n=e.moveInto,r=e.isMoving;return Ra(t.line,n.contentBox[t.start]+Es(t,r),Ds(t,n.contentBox,r))}({axis:l,moveInto:o.page,isMoving:s});var u=t.displaced,c=t.displacedBy,p=u.all[0];if(p){var d=r[p];if(bs(p,i))return Ss({axis:l,moveRelativeTo:d.page,isMoving:s});var f=sa(d.page,c.point);return Ss({axis:l,moveRelativeTo:f,isMoving:s})}var h=a[a.length-1];if(h.descriptor.id===n.descriptor.id)return s.borderBox.center;if(bs(h.descriptor.id,i)){var m=sa(h.page,La(i.displacedBy.point));return xs({axis:l,moveRelativeTo:m,isMoving:s})}return xs({axis:l,moveRelativeTo:h.page,isMoving:s})},Is=function(e,t){var n=e.frame;return n?Ca(t,n.scroll.diff.displacement):t},ks=function(e){var t=function(e){var t=e.impact,n=e.draggable,r=e.droppable,o=e.draggables,i=e.afterCritical,a=n.page.borderBox.center,s=t.at;return r&&s?"REORDER"===s.type?Os({impact:t,draggable:n,draggables:o,droppable:r,afterCritical:i}):_s({impact:t,draggables:o,afterCritical:i}):a}(e),n=e.droppable;return n?Is(n,t):t},Ps=function(e,t){var n=ja(t,e.scroll.initial),r=La(n);return{frame:ta({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:n,displacement:r}}}};function Ts(e,t){return e.map((function(e){return t[e]}))}var Ns=function(e){var t=e.pageBorderBoxCenter,n=e.draggable,r=function(e,t){return Ca(e.scroll.diff.displacement,t)}(e.viewport,t),o=ja(r,n.page.borderBox.center);return Ca(n.client.borderBox.center,o)},Cs=function(e){var t=e.draggable,n=e.destination,r=e.newPageBorderBoxCenter,o=e.viewport,i=e.withDroppableDisplacement,a=e.onlyOnMainAxis,s=void 0!==a&&a,l=ja(r,t.page.borderBox.center),c={target:Fa(t.page.borderBox,l),destination:n,withDroppableDisplacement:i,viewport:o};return s?function(e){return ds(u({},e,{isVisibleThroughFrameFn:(t=e.destination.axis,function(e){var n=ss(e.top,e.bottom),r=ss(e.left,e.right);return function(e){return t===cs?n(e.top)&&n(e.bottom):r(e.left)&&r(e.right)}})}));var t}(c):hs(c)},js=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,o=e.draggables,i=e.previousImpact,a=e.viewport,s=e.previousPageBorderBoxCenter,l=e.previousClientSelection,c=e.afterCritical;if(!r.isEnabled)return null;var p=Za(r.descriptor.id,o),d=rs(n,r),f=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,o=e.insideDestination,i=e.previousImpact;if(!r.isCombineEnabled)return null;if(!es(i))return null;function a(e){var t={type:"COMBINE",combine:{draggableId:e,droppableId:r.descriptor.id}};return u({},i,{at:t})}var s=i.displaced.all,l=s.length?s[0]:null;if(t)return l?a(l):null;var c=ns(n,o);if(!l)return c.length?a(c[c.length-1].descriptor.id):null;var p=Ga(c,(function(e){return e.descriptor.id===l}));-1===p&&_a(!1);var d=p-1;return d<0?null:a(c[d].descriptor.id)}({isMovingForward:t,draggable:n,destination:r,insideDestination:p,previousImpact:i})||ws({isMovingForward:t,isInHomeList:d,draggable:n,draggables:o,destination:r,insideDestination:p,previousImpact:i,viewport:a,afterCritical:c});if(!f)return null;var h=ks({impact:f,draggable:n,droppable:r,draggables:o,afterCritical:c});if(Cs({draggable:n,destination:r,newPageBorderBoxCenter:h,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:Ns({pageBorderBoxCenter:h,draggable:n,viewport:a}),impact:f,scrollJumpRequest:null};var m=ja(h,s),y=function(e){var t=e.impact,n=e.viewport,r=e.destination,o=e.draggables,i=e.maxScrollChange,a=Ps(n,Ca(n.scroll.current,i)),s=r.frame?Ha(r,Ca(r.frame.scroll.current,i)):r,l=t.displaced,c=ys({afterDragging:Ts(l.all,o),destination:r,displacedBy:t.displacedBy,viewport:a.frame,last:l,forceShouldAnimate:!1}),p=ys({afterDragging:Ts(l.all,o),destination:s,displacedBy:t.displacedBy,viewport:n.frame,last:l,forceShouldAnimate:!1}),d={},f={},h=[l,c,p];return l.all.forEach((function(e){var t=function(e,t){for(var n=0;n<t.length;n++){var r=t[n].visible[e];if(r)return r}return null}(e,h);t?f[e]=t:d[e]=!0})),u({},t,{displaced:{all:l.all,invisible:d,visible:f}})}({impact:f,viewport:a,destination:r,draggables:o,maxScrollChange:m});return{clientSelection:l,impact:y,scrollJumpRequest:m}},As=function(e){var t=e.subject.active;return t||_a(!1),t},Ls=function(e,t){var n=e.page.borderBox.center;return bs(e.descriptor.id,t)?ja(n,t.displacedBy.point):n},Rs=function(e,t){var n=e.page.borderBox;return bs(e.descriptor.id,t)?Fa(n,La(t.displacedBy.point)):n},zs=fa((function(e,t){var n=t[e.line];return{value:n,point:Ra(e.line,n)}})),Ms=function(e,t){return u({},e,{scroll:u({},e.scroll,{max:t})})},qs=function(e,t,n){var r=e.frame;rs(t,e)&&_a(!1),e.subject.withPlaceholder&&_a(!1);var o=zs(e.axis,t.displaceBy).point,i=function(e,t,n){var r=e.axis;if("virtual"===e.descriptor.mode)return Ra(r.line,t[r.line]);var o=e.subject.page.contentBox[r.size],i=Za(e.descriptor.id,n).reduce((function(e,t){return e+t.client.marginBox[r.size]}),0)+t[r.line]-o;return i<=0?null:Ra(r.line,i)}(e,o,n),a={placeholderSize:o,increasedBy:i,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!r)return u({},e,{subject:$a({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:e.frame})});var s=i?Ca(r.scroll.max,i):r.scroll.max,l=Ms(r,s);return u({},e,{subject:$a({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:l}),frame:l})},Fs=function(e){var t=e.isMovingForward,n=e.previousPageBorderBoxCenter,r=e.draggable,o=e.isOver,i=e.draggables,a=e.droppables,s=e.viewport,l=e.afterCritical,u=function(e){var t=e.isMovingForward,n=e.pageBorderBoxCenter,r=e.source,o=e.droppables,i=e.viewport,a=r.subject.active;if(!a)return null;var s=r.axis,l=ss(a[s.start],a[s.end]),u=Ya(o).filter((function(e){return e!==r})).filter((function(e){return e.isEnabled})).filter((function(e){return Boolean(e.subject.active)})).filter((function(e){return ls(i.frame)(As(e))})).filter((function(e){var n=As(e);return t?a[s.crossAxisEnd]<n[s.crossAxisEnd]:n[s.crossAxisStart]<a[s.crossAxisStart]})).filter((function(e){var t=As(e),n=ss(t[s.start],t[s.end]);return l(t[s.start])||l(t[s.end])||n(a[s.start])||n(a[s.end])})).sort((function(e,n){var r=As(e)[s.crossAxisStart],o=As(n)[s.crossAxisStart];return t?r-o:o-r})).filter((function(e,t,n){return As(e)[s.crossAxisStart]===As(n[0])[s.crossAxisStart]}));if(!u.length)return null;if(1===u.length)return u[0];var c=u.filter((function(e){return ss(As(e)[s.start],As(e)[s.end])(n[s.line])}));return 1===c.length?c[0]:c.length>1?c.sort((function(e,t){return As(e)[s.start]-As(t)[s.start]}))[0]:u.sort((function(e,t){var r=Ma(n,Ba(As(e))),o=Ma(n,Ba(As(t)));return r!==o?r-o:As(e)[s.start]-As(t)[s.start]}))[0]}({isMovingForward:t,pageBorderBoxCenter:n,source:o,droppables:a,viewport:s});if(!u)return null;var c=Za(u.descriptor.id,i),p=function(e){var t=e.pageBorderBoxCenter,n=e.viewport,r=e.destination,o=e.insideDestination,i=e.afterCritical,a=o.filter((function(e){return hs({target:Rs(e,i),destination:r,viewport:n.frame,withDroppableDisplacement:!0})})).sort((function(e,n){var o=za(t,Is(r,Ls(e,i))),a=za(t,Is(r,Ls(n,i)));return o<a?-1:a<o?1:e.descriptor.index-n.descriptor.index}));return a[0]||null}({pageBorderBoxCenter:n,viewport:s,destination:u,insideDestination:c,afterCritical:l}),d=function(e){var t=e.previousPageBorderBoxCenter,n=e.moveRelativeTo,r=e.insideDestination,o=e.draggable,i=e.draggables,a=e.destination,s=e.viewport,l=e.afterCritical;if(!n){if(r.length)return null;var u={displaced:is,displacedBy:os,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:0}}},c=ks({impact:u,draggable:o,droppable:a,draggables:i,afterCritical:l}),p=rs(o,a)?a:qs(a,o,i);return Cs({draggable:o,destination:p,newPageBorderBoxCenter:c,viewport:s.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?u:null}var d,f=Boolean(t[a.axis.line]<=n.page.borderBox.center[a.axis.line]),h=(d=n.descriptor.index,n.descriptor.id===o.descriptor.id||f?d:d+1),m=zs(a.axis,o.displaceBy);return vs({draggable:o,insideDestination:r,destination:a,viewport:s,displacedBy:m,last:is,index:h})}({previousPageBorderBoxCenter:n,destination:u,draggable:r,draggables:i,moveRelativeTo:p,insideDestination:c,viewport:s,afterCritical:l});if(!d)return null;var f=ks({impact:d,draggable:r,droppable:u,draggables:i,afterCritical:l});return{clientSelection:Ns({pageBorderBoxCenter:f,draggable:r,viewport:s}),impact:d,scrollJumpRequest:null}},Bs=function(e){var t=e.at;return t?"REORDER"===t.type?t.destination.droppableId:t.combine.droppableId:null},Us=function(e){var t=e.state,n=e.type,r=function(e,t){var n=Bs(e);return n?t[n]:null}(t.impact,t.dimensions.droppables),o=Boolean(r),i=t.dimensions.droppables[t.critical.droppable.id],a=r||i,s=a.axis.direction,l="vertical"===s&&("MOVE_UP"===n||"MOVE_DOWN"===n)||"horizontal"===s&&("MOVE_LEFT"===n||"MOVE_RIGHT"===n);if(l&&!o)return null;var u="MOVE_DOWN"===n||"MOVE_RIGHT"===n,c=t.dimensions.draggables[t.critical.draggable.id],p=t.current.page.borderBoxCenter,d=t.dimensions,f=d.draggables,h=d.droppables;return l?js({isMovingForward:u,previousPageBorderBoxCenter:p,draggable:c,destination:a,draggables:f,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,afterCritical:t.afterCritical}):Fs({isMovingForward:u,previousPageBorderBoxCenter:p,draggable:c,isOver:a,draggables:f,droppables:h,viewport:t.viewport,afterCritical:t.afterCritical})};function $s(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function Hs(e){var t=ss(e.top,e.bottom),n=ss(e.left,e.right);return function(e){return t(e.y)&&n(e.x)}}function Ws(e){var t=e.pageBorderBox,n=e.draggable,r=e.droppables,o=Ya(r).filter((function(e){if(!e.isEnabled)return!1;var n,r,o=e.subject.active;if(!o)return!1;if(r=o,!((n=t).left<r.right&&n.right>r.left&&n.top<r.bottom&&n.bottom>r.top))return!1;if(Hs(o)(t.center))return!0;var i=e.axis,a=o.center[i.crossAxisLine],s=t[i.crossAxisStart],l=t[i.crossAxisEnd],u=ss(o[i.crossAxisStart],o[i.crossAxisEnd]),c=u(s),p=u(l);return!c&&!p||(c?s<a:l>a)}));return o.length?1===o.length?o[0].descriptor.id:function(e){var t=e.pageBorderBox,n=e.draggable,r=e.candidates,o=n.page.borderBox.center,i=r.map((function(e){var n=e.axis,r=Ra(e.axis.line,t.center[n.line],e.page.borderBox.center[n.crossAxisLine]);return{id:e.descriptor.id,distance:za(o,r)}})).sort((function(e,t){return t.distance-e.distance}));return i[0]?i[0].id:null}({pageBorderBox:t,draggable:n,candidates:o}):null}var Gs=function(e,t){return ta(Fa(e,t))};function Qs(e){var t=e.displaced,n=e.id;return Boolean(t.visible[n]||t.invisible[n])}var Vs=function(e){var t=e.pageOffset,n=e.draggable,r=e.draggables,o=e.droppables,i=e.previousImpact,a=e.viewport,s=e.afterCritical,l=Gs(n.page.borderBox,t),u=Ws({pageBorderBox:l,draggable:n,droppables:o});if(!u)return as;var c=o[u],p=Za(c.descriptor.id,r),d=function(e,t){var n=e.frame;return n?Gs(t,n.scroll.diff.value):t}(c,l);return function(e){var t=e.draggable,n=e.pageBorderBoxWithDroppableScroll,r=e.previousImpact,o=e.destination,i=e.insideDestination,a=e.afterCritical;if(!o.isCombineEnabled)return null;var s=o.axis,l=zs(o.axis,t.displaceBy),u=l.value,c=n[s.start],p=n[s.end],d=Qa(ns(t,i),(function(e){var t=e.descriptor.id,n=e.page.borderBox,o=n[s.size]/4,i=bs(t,a),l=Qs({displaced:r.displaced,id:t});return i?l?p>n[s.start]+o&&p<n[s.end]-o:c>n[s.start]-u+o&&c<n[s.end]-u-o:l?p>n[s.start]+u+o&&p<n[s.end]+u-o:c>n[s.start]+o&&c<n[s.end]-o}));return d?{displacedBy:l,displaced:r.displaced,at:{type:"COMBINE",combine:{draggableId:d.descriptor.id,droppableId:o.descriptor.id}}}:null}({pageBorderBoxWithDroppableScroll:d,draggable:n,previousImpact:i,destination:c,insideDestination:p,afterCritical:s})||function(e){var t=e.pageBorderBoxWithDroppableScroll,n=e.draggable,r=e.destination,o=e.insideDestination,i=e.last,a=e.viewport,s=e.afterCritical,l=r.axis,u=zs(r.axis,n.displaceBy),c=u.value,p=t[l.start],d=t[l.end],f=function(e){var t=e.draggable,n=e.closest,r=e.inHomeList;return n?r&&n.descriptor.index>t.descriptor.index?n.descriptor.index-1:n.descriptor.index:null}({draggable:n,closest:Qa(ns(n,o),(function(e){var t=e.descriptor.id,n=e.page.borderBox.center[l.line],r=bs(t,s),o=Qs({displaced:i,id:t});return r?o?d<=n:p<n-c:o?d<=n+c:p<n})),inHomeList:rs(n,r)});return vs({draggable:n,insideDestination:o,destination:r,viewport:a,last:i,displacedBy:u,index:f})}({pageBorderBoxWithDroppableScroll:d,draggable:n,destination:c,insideDestination:p,last:i.displaced,viewport:a,afterCritical:s})},Ks=function(e,t){var n;return u({},e,((n={})[t.descriptor.id]=t,n))},Js=function(e){var t=e.previousImpact,n=e.impact,r=e.droppables,o=Bs(t),i=Bs(n);if(!o)return r;if(o===i)return r;var a=r[o];if(!a.subject.withPlaceholder)return r;var s=function(e){var t=e.subject.withPlaceholder;t||_a(!1);var n=e.frame;if(!n)return u({},e,{subject:$a({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null})});var r=t.oldFrameMaxScroll;r||_a(!1);var o=Ms(n,r);return u({},e,{subject:$a({page:e.subject.page,axis:e.axis,frame:o,withPlaceholder:null}),frame:o})}(a);return Ks(r,s)},Ys=function(e){var t=e.state,n=e.clientSelection,r=e.dimensions,o=e.viewport,i=e.impact,a=e.scrollJumpRequest,s=o||t.viewport,l=r||t.dimensions,c=n||t.current.client.selection,p=ja(c,t.initial.client.selection),d={offset:p,selection:c,borderBoxCenter:Ca(t.initial.client.borderBoxCenter,p)},f={selection:Ca(d.selection,s.scroll.current),borderBoxCenter:Ca(d.borderBoxCenter,s.scroll.current),offset:Ca(d.offset,s.scroll.diff.value)},h={client:d,page:f};if("COLLECTING"===t.phase)return u({phase:"COLLECTING"},t,{dimensions:l,viewport:s,current:h});var m=l.draggables[t.critical.draggable.id],y=i||Vs({pageOffset:f.offset,draggable:m,draggables:l.draggables,droppables:l.droppables,previousImpact:t.impact,viewport:s,afterCritical:t.afterCritical}),g=function(e){var t=e.draggable,n=e.draggables,r=e.droppables,o=e.previousImpact,i=e.impact,a=Js({previousImpact:o,impact:i,droppables:r}),s=Bs(i);if(!s)return a;var l=r[s];if(rs(t,l))return a;if(l.subject.withPlaceholder)return a;var u=qs(l,t,n);return Ks(a,u)}({draggable:m,impact:y,previousImpact:t.impact,draggables:l.draggables,droppables:l.droppables});return u({},t,{current:h,dimensions:{draggables:l.draggables,droppables:g},impact:y,viewport:s,scrollJumpRequest:a||null,forceShouldAnimate:!a&&null})};var Xs=function(e){var t=e.impact,n=e.viewport,r=e.draggables,o=e.destination,i=e.forceShouldAnimate,a=t.displaced,s=function(e,t){return e.map((function(e){return t[e]}))}(a.all,r);return u({},t,{displaced:ys({afterDragging:s,destination:o,displacedBy:t.displacedBy,viewport:n.frame,forceShouldAnimate:i,last:a})})},Zs=function(e){var t=e.impact,n=e.draggable,r=e.droppable,o=e.draggables,i=e.viewport,a=e.afterCritical,s=ks({impact:t,draggable:n,draggables:o,droppable:r,afterCritical:a});return Ns({pageBorderBoxCenter:s,draggable:n,viewport:i})},el=function(e){var t=e.state,n=e.dimensions,r=e.viewport;"SNAP"!==t.movementMode&&_a(!1);var o=t.impact,i=r||t.viewport,a=n||t.dimensions,s=a.draggables,l=a.droppables,u=s[t.critical.draggable.id],c=Bs(o);c||_a(!1);var p=l[c],d=Xs({impact:o,viewport:i,destination:p,draggables:s}),f=Zs({impact:d,draggable:u,droppable:p,draggables:s,viewport:i,afterCritical:t.afterCritical});return Ys({impact:d,clientSelection:f,state:t,dimensions:a,viewport:i})},tl=function(e){var t=e.draggable,n=e.home,r=e.draggables,o=e.viewport,i=zs(n.axis,t.displaceBy),a=Za(n.descriptor.id,r),s=a.indexOf(t);-1===s&&_a(!1);var l,u=a.slice(s+1),c=u.reduce((function(e,t){return e[t.descriptor.id]=!0,e}),{}),p={inVirtualList:"virtual"===n.descriptor.mode,displacedBy:i,effected:c};return{impact:{displaced:ys({afterDragging:u,destination:n,displacedBy:i,last:null,viewport:o.frame,forceShouldAnimate:!1}),displacedBy:i,at:{type:"REORDER",destination:(l=t.descriptor,{index:l.index,droppableId:l.droppableId})}},afterCritical:p}},nl=function(e){0},rl=function(e){0},ol=function(e){var t=e.additions,n=e.updatedDroppables,r=e.viewport,o=r.scroll.diff.value;return t.map((function(e){var t=e.descriptor.droppableId,i=function(e){var t=e.frame;return t||_a(!1),t}(n[t]),a=i.scroll.diff.value,s=function(e){var t=e.draggable,n=e.offset,r=e.initialWindowScroll,o=sa(t.client,n),i=la(o,r);return u({},t,{placeholder:u({},t.placeholder,{client:o}),client:o,page:i})}({draggable:e,offset:Ca(o,a),initialWindowScroll:r.scroll.initial});return s}))},il=function(e){return"SNAP"===e.movementMode},al=function(e,t,n){var r=function(e,t){return{draggables:e.draggables,droppables:Ks(e.droppables,t)}}(e.dimensions,t);return!il(e)||n?Ys({state:e,dimensions:r}):el({state:e,dimensions:r})};function sl(e){return e.isDragging&&"SNAP"===e.movementMode?u({phase:"DRAGGING"},e,{scrollJumpRequest:null}):e}var ll={phase:"IDLE",completed:null,shouldFlush:!1},ul=function(e,t){if(void 0===e&&(e=ll),"FLUSH"===t.type)return u({},ll,{shouldFlush:!0});if("INITIAL_PUBLISH"===t.type){"IDLE"!==e.phase&&_a(!1);var n=t.payload,r=n.critical,o=n.clientSelection,i=n.viewport,a=n.dimensions,s=n.movementMode,l=a.draggables[r.draggable.id],c=a.droppables[r.droppable.id],p={selection:o,borderBoxCenter:l.client.borderBox.center,offset:Na},d={client:p,page:{selection:Ca(p.selection,i.scroll.initial),borderBoxCenter:Ca(p.selection,i.scroll.initial),offset:Ca(p.selection,i.scroll.diff.value)}},f=Ya(a.droppables).every((function(e){return!e.isFixedOnPage})),h=tl({draggable:l,home:c,draggables:a.draggables,viewport:i}),m=h.impact;return{phase:"DRAGGING",isDragging:!0,critical:r,movementMode:s,dimensions:a,initial:d,current:d,isWindowScrollAllowed:f,impact:m,afterCritical:h.afterCritical,onLiftImpact:m,viewport:i,scrollJumpRequest:null,forceShouldAnimate:null}}if("COLLECTION_STARTING"===t.type)return"COLLECTING"===e.phase||"DROP_PENDING"===e.phase?e:("DRAGGING"!==e.phase&&_a(!1),u({phase:"COLLECTING"},e,{phase:"COLLECTING"}));if("PUBLISH_WHILE_DRAGGING"===t.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&_a(!1),function(e){var t=e.state,n=e.published;nl();var r=n.modified.map((function(e){var n=t.dimensions.droppables[e.droppableId];return Ha(n,e.scroll)})),o=u({},t.dimensions.droppables,{},Ka(r)),i=Ja(ol({additions:n.additions,updatedDroppables:o,viewport:t.viewport})),a=u({},t.dimensions.draggables,{},i);n.removals.forEach((function(e){delete a[e]}));var s={droppables:o,draggables:a},l=Bs(t.impact),c=l?s.droppables[l]:null,p=s.draggables[t.critical.draggable.id],d=s.droppables[t.critical.droppable.id],f=tl({draggable:p,home:d,draggables:a,viewport:t.viewport}),h=f.impact,m=f.afterCritical,y=c&&c.isCombineEnabled?t.impact:h,g=Vs({pageOffset:t.current.page.offset,draggable:s.draggables[t.critical.draggable.id],draggables:s.draggables,droppables:s.droppables,previousImpact:y,viewport:t.viewport,afterCritical:m});rl();var v=u({phase:"DRAGGING"},t,{phase:"DRAGGING",impact:g,onLiftImpact:h,dimensions:s,afterCritical:m,forceShouldAnimate:!1});return"COLLECTING"===t.phase?v:u({phase:"DROP_PENDING"},v,{phase:"DROP_PENDING",reason:t.reason,isWaiting:!1})}({state:e,published:t.payload});if("MOVE"===t.type){if("DROP_PENDING"===e.phase)return e;$s(e)||_a(!1);var y=t.payload.client;return Aa(y,e.current.client.selection)?e:Ys({state:e,clientSelection:y,impact:il(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===t.type){if("DROP_PENDING"===e.phase)return sl(e);if("COLLECTING"===e.phase)return sl(e);$s(e)||_a(!1);var g=t.payload,v=g.id,b=g.newScroll,w=e.dimensions.droppables[v];if(!w)return e;var _=Ha(w,b);return al(e,_,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;$s(e)||_a(!1);var E=t.payload,D=E.id,x=E.isEnabled,S=e.dimensions.droppables[D];S||_a(!1),S.isEnabled===x&&_a(!1);var O=u({},S,{isEnabled:x});return al(e,O,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;$s(e)||_a(!1);var I=t.payload,k=I.id,P=I.isCombineEnabled,T=e.dimensions.droppables[k];T||_a(!1),T.isCombineEnabled===P&&_a(!1);var N=u({},T,{isCombineEnabled:P});return al(e,N,!0)}if("MOVE_BY_WINDOW_SCROLL"===t.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;$s(e)||_a(!1),e.isWindowScrollAllowed||_a(!1);var C=t.payload.newScroll;if(Aa(e.viewport.scroll.current,C))return sl(e);var j=Ps(e.viewport,C);return il(e)?el({state:e,viewport:j}):Ys({state:e,viewport:j})}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type){if(!$s(e))return e;var A=t.payload.maxScroll;if(Aa(A,e.viewport.scroll.max))return e;var L=u({},e.viewport,{scroll:u({},e.viewport.scroll,{max:A})});return u({phase:"DRAGGING"},e,{viewport:L})}if("MOVE_UP"===t.type||"MOVE_DOWN"===t.type||"MOVE_LEFT"===t.type||"MOVE_RIGHT"===t.type){if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&_a(!1);var R=Us({state:e,type:t.type});return R?Ys({state:e,impact:R.impact,clientSelection:R.clientSelection,scrollJumpRequest:R.scrollJumpRequest}):e}if("DROP_PENDING"===t.type){var z=t.payload.reason;return"COLLECTING"!==e.phase&&_a(!1),u({phase:"DROP_PENDING"},e,{phase:"DROP_PENDING",isWaiting:!0,reason:z})}if("DROP_ANIMATE"===t.type){var M=t.payload,q=M.completed,F=M.dropDuration,B=M.newHomeClientOffset;return"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&_a(!1),{phase:"DROP_ANIMATING",completed:q,dropDuration:F,newHomeClientOffset:B,dimensions:e.dimensions}}return"DROP_COMPLETE"===t.type?{phase:"IDLE",completed:t.payload.completed,shouldFlush:!1}:e},cl=function(e){return{type:"LIFT",payload:e}},pl=function(e){return{type:"PUBLISH_WHILE_DRAGGING",payload:e}},dl=function(){return{type:"COLLECTION_STARTING",payload:null}},fl=function(e){return{type:"UPDATE_DROPPABLE_SCROLL",payload:e}},hl=function(e){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}},ml=function(e){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}},yl=function(e){return{type:"MOVE",payload:e}},gl=function(){return{type:"MOVE_UP",payload:null}},vl=function(){return{type:"MOVE_DOWN",payload:null}},bl=function(){return{type:"MOVE_RIGHT",payload:null}},wl=function(){return{type:"MOVE_LEFT",payload:null}},_l=function(){return{type:"FLUSH",payload:null}},El=function(e){return{type:"DROP_COMPLETE",payload:e}},Dl=function(e){return{type:"DROP",payload:e}},xl=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};var Sl="cubic-bezier(.2,1,.1,1)",Ol={drop:0,combining:.7},Il={drop:.75},kl=.2+"s "+"cubic-bezier(0.2, 0, 0, 1)",Pl={fluid:"opacity "+kl,snap:"transform "+kl+", opacity "+kl,drop:function(e){var t=e+"s "+Sl;return"transform "+t+", opacity "+t},outOfTheWay:"transform "+kl,placeholder:"height "+kl+", width "+kl+", margin "+kl},Tl=function(e){return Aa(e,Na)?null:"translate("+e.x+"px, "+e.y+"px)"},Nl={moveTo:Tl,drop:function(e,t){var n=Tl(e);return n?t?n+" scale("+Il.drop+")":n:null}},Cl=.33,jl=.55,Al=jl-Cl,Ll=function(e){var t=e.getState,n=e.dispatch;return function(e){return function(r){if("DROP"===r.type){var o=t(),i=r.payload.reason;if("COLLECTING"!==o.phase){if("IDLE"!==o.phase){"DROP_PENDING"===o.phase&&o.isWaiting&&_a(!1),"DRAGGING"!==o.phase&&"DROP_PENDING"!==o.phase&&_a(!1);var a=o.critical,s=o.dimensions,l=s.draggables[o.critical.draggable.id],c=function(e){var t=e.draggables,n=e.reason,r=e.lastImpact,o=e.home,i=e.viewport,a=e.onLiftImpact;return r.at&&"DROP"===n?"REORDER"===r.at.type?{impact:r,didDropInsideDroppable:!0}:{impact:u({},r,{displaced:is}),didDropInsideDroppable:!0}:{impact:Xs({draggables:t,impact:a,destination:o,viewport:i,forceShouldAnimate:!0}),didDropInsideDroppable:!1}}({reason:i,lastImpact:o.impact,afterCritical:o.afterCritical,onLiftImpact:o.onLiftImpact,home:o.dimensions.droppables[o.critical.droppable.id],viewport:o.viewport,draggables:o.dimensions.draggables}),p=c.impact,d=c.didDropInsideDroppable,f=d?es(p):null,h=d?ts(p):null,m={index:a.draggable.index,droppableId:a.droppable.id},y={draggableId:l.descriptor.id,type:l.descriptor.type,source:m,reason:i,mode:o.movementMode,destination:f,combine:h},g=function(e){var t=e.impact,n=e.draggable,r=e.dimensions,o=e.viewport,i=e.afterCritical,a=r.draggables,s=r.droppables,l=Bs(t),u=l?s[l]:null,c=s[n.descriptor.droppableId],p=Zs({impact:t,draggable:n,draggables:a,afterCritical:i,droppable:u||c,viewport:o});return ja(p,n.client.borderBox.center)}({impact:p,draggable:l,dimensions:s,viewport:o.viewport,afterCritical:o.afterCritical}),v={critical:o.critical,afterCritical:o.afterCritical,result:y,impact:p};if(!Aa(o.current.client.offset,g)||Boolean(y.combine)){var b=function(e){var t=e.current,n=e.destination,r=e.reason,o=za(t,n);if(o<=0)return Cl;if(o>=1500)return jl;var i=Cl+Al*(o/1500);return Number(("CANCEL"===r?.6*i:i).toFixed(2))}({current:o.current.client.offset,destination:g,reason:i});n(function(e){return{type:"DROP_ANIMATE",payload:e}}({newHomeClientOffset:g,dropDuration:b,completed:v}))}else n(El({completed:v}))}}else n(function(e){return{type:"DROP_PENDING",payload:e}}({reason:i}))}else e(r)}}},Rl=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function zl(e){var t=e.onWindowScroll;var n=ha((function(){t(Rl())})),r=function(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(t){t.target!==window&&t.target!==window.document||e()}}}(n),o=ya;function i(){return o!==ya}return{start:function(){i()&&_a(!1),o=ga(window,[r])},stop:function(){i()||_a(!1),n.cancel(),o(),o=ya},isActive:i}}var Ml=function(e){var t=zl({onWindowScroll:function(t){e.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:t}})}});return function(e){return function(n){t.isActive()||"INITIAL_PUBLISH"!==n.type||t.start(),t.isActive()&&function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(n)&&t.stop(),e(n)}}},ql=function(){var e=[];return{add:function(t){var n=setTimeout((function(){return function(t){var n=Ga(e,(function(e){return e.timerId===t}));-1===n&&_a(!1),e.splice(n,1)[0].callback()}(n)})),r={timerId:n,callback:t};e.push(r)},flush:function(){if(e.length){var t=[].concat(e);e.length=0,t.forEach((function(e){clearTimeout(e.timerId),e.callback()}))}}}},Fl=function(e,t){nl(),t(),rl()},Bl=function(e,t){return{draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t}},Ul=function(e,t,n,r){if(e){var o=function(e){var t=!1,n=!1,r=setTimeout((function(){n=!0})),o=function(o){t||n||(t=!0,e(o),clearTimeout(r))};return o.wasCalled=function(){return t},o}(n);e(t,{announce:o}),o.wasCalled()||n(r(t))}else n(r(t))},$l=function(e,t){var n=function(e,t){var n=ql(),r=null,o=function(n){r||_a(!1),r=null,Fl(0,(function(){return Ul(e().onDragEnd,n,t,Ta)}))};return{beforeCapture:function(t,n){r&&_a(!1),Fl(0,(function(){var r=e().onBeforeCapture;r&&r({draggableId:t,mode:n})}))},beforeStart:function(t,n){r&&_a(!1),Fl(0,(function(){var r=e().onBeforeDragStart;r&&r(Bl(t,n))}))},start:function(o,i){r&&_a(!1);var a=Bl(o,i);r={mode:i,lastCritical:o,lastLocation:a.source,lastCombine:null},n.add((function(){Fl(0,(function(){return Ul(e().onDragStart,a,t,ka)}))}))},update:function(o,i){var a=es(i),s=ts(i);r||_a(!1);var l=!function(e,t){if(e===t)return!0;var n=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,r=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return n&&r}(o,r.lastCritical);l&&(r.lastCritical=o);var c,p,d=(p=a,!(null==(c=r.lastLocation)&&null==p||null!=c&&null!=p&&c.droppableId===p.droppableId&&c.index===p.index));d&&(r.lastLocation=a);var f=!function(e,t){return null==e&&null==t||null!=e&&null!=t&&e.draggableId===t.draggableId&&e.droppableId===t.droppableId}(r.lastCombine,s);if(f&&(r.lastCombine=s),l||d||f){var h=u({},Bl(o,r.mode),{combine:s,destination:a});n.add((function(){Fl(0,(function(){return Ul(e().onDragUpdate,h,t,Pa)}))}))}},flush:function(){r||_a(!1),n.flush()},drop:o,abort:function(){if(r){var e=u({},Bl(r.lastCritical,r.mode),{combine:null,destination:null,reason:"CANCEL"});o(e)}}}}(e,t);return function(e){return function(t){return function(r){if("BEFORE_INITIAL_CAPTURE"!==r.type){if("INITIAL_PUBLISH"===r.type){var o=r.payload.critical;return n.beforeStart(o,r.payload.movementMode),t(r),void n.start(o,r.payload.movementMode)}if("DROP_COMPLETE"===r.type){var i=r.payload.completed.result;return n.flush(),t(r),void n.drop(i)}if(t(r),"FLUSH"!==r.type){var a=e.getState();"DRAGGING"===a.phase&&n.update(a.critical,a.impact)}else n.abort()}else n.beforeCapture(r.payload.draggableId,r.payload.movementMode)}}}},Hl=function(e){return function(t){return function(n){if("DROP_ANIMATION_FINISHED"===n.type){var r=e.getState();"DROP_ANIMATING"!==r.phase&&_a(!1),e.dispatch(El({completed:r.completed}))}else t(n)}}},Wl=function(e){var t=null,n=null;return function(r){return function(o){if("FLUSH"!==o.type&&"DROP_COMPLETE"!==o.type&&"DROP_ANIMATION_FINISHED"!==o.type||(n&&(cancelAnimationFrame(n),n=null),t&&(t(),t=null)),r(o),"DROP_ANIMATE"===o.type){var i={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===e.getState().phase&&e.dispatch({type:"DROP_ANIMATION_FINISHED",payload:null})}};n=requestAnimationFrame((function(){n=null,t=ga(window,[i])}))}}}},Gl=function(e){return function(t){return function(n){if(t(n),"PUBLISH_WHILE_DRAGGING"===n.type){var r=e.getState();"DROP_PENDING"===r.phase&&(r.isWaiting||e.dispatch(Dl({reason:r.reason})))}}}},Ql=V,Vl=function(e){var t,n=e.dimensionMarshal,r=e.focusMarshal,o=e.styleMarshal,i=e.getResponders,a=e.announce,s=e.autoScroller;return W(ul,Ql(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(F(15))},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=t.map((function(e){return e(o)}));return r=V.apply(void 0,i)(n.dispatch),q(q({},n),{},{dispatch:r})}}}((t=o,function(){return function(e){return function(n){"INITIAL_PUBLISH"===n.type&&t.dragging(),"DROP_ANIMATE"===n.type&&t.dropping(n.payload.completed.result.reason),"FLUSH"!==n.type&&"DROP_COMPLETE"!==n.type||t.resting(),e(n)}}}),function(e){return function(){return function(t){return function(n){"DROP_COMPLETE"!==n.type&&"FLUSH"!==n.type&&"DROP_ANIMATE"!==n.type||e.stopPublishing(),t(n)}}}}(n),function(e){return function(t){var n=t.getState,r=t.dispatch;return function(t){return function(o){if("LIFT"===o.type){var i=o.payload,a=i.id,s=i.clientSelection,l=i.movementMode,u=n();"DROP_ANIMATING"===u.phase&&r(El({completed:u.completed})),"IDLE"!==n().phase&&_a(!1),r(_l()),r({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:a,movementMode:l}});var c={draggableId:a,scrollOptions:{shouldPublishImmediately:"SNAP"===l}},p=e.startPublishing(c),d=p.critical,f=p.dimensions,h=p.viewport;r({type:"INITIAL_PUBLISH",payload:{critical:d,dimensions:f,clientSelection:s,movementMode:l,viewport:h}})}else t(o)}}}}(n),Ll,Hl,Wl,Gl,function(e){return function(t){return function(n){return function(r){if(function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(r))return e.stop(),void n(r);if("INITIAL_PUBLISH"===r.type){n(r);var o=t.getState();return"DRAGGING"!==o.phase&&_a(!1),void e.start(o)}n(r),e.scroll(t.getState())}}}}(s),Ml,function(e){var t=!1;return function(){return function(n){return function(r){if("INITIAL_PUBLISH"===r.type)return t=!0,e.tryRecordFocus(r.payload.critical.draggable.id),n(r),void e.tryRestoreFocusRecorded();if(n(r),t){if("FLUSH"===r.type)return t=!1,void e.tryRestoreFocusRecorded();if("DROP_COMPLETE"===r.type){t=!1;var o=r.payload.completed.result;o.combine&&e.tryShiftRecord(o.draggableId,o.combine.draggableId),e.tryRestoreFocusRecorded()}}}}}}(r),$l(i,a))))};var Kl=function(e){var t=e.scrollHeight,n=e.scrollWidth,r=e.height,o=e.width,i=ja({x:n,y:t},{x:o,y:r});return{x:Math.max(0,i.x),y:Math.max(0,i.y)}},Jl=function(){var e=document.documentElement;return e||_a(!1),e},Yl=function(){var e=Jl();return Kl({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},Xl=function(e){var t=e.critical,n=e.scrollOptions,r=e.registry;nl();var o,i,a,s,l,u,c,p=(o=Rl(),i=Yl(),a=o.y,s=o.x,l=Jl(),u=l.clientWidth,c=l.clientHeight,{frame:ta({top:a,left:s,right:s+u,bottom:a+c}),scroll:{initial:o,current:o,max:i,diff:{value:Na,displacement:Na}}}),d=p.scroll.current,f=t.droppable,h=r.droppable.getAllByType(f.type).map((function(e){return e.callbacks.getDimensionAndWatchScroll(d,n)})),m=r.draggable.getAllByType(t.draggable.type).map((function(e){return e.getDimension(d)})),y={draggables:Ja(m),droppables:Ka(h)};return rl(),{dimensions:y,critical:t,viewport:p}};function Zl(e,t,n){return n.descriptor.id!==t.id&&(n.descriptor.type===t.type&&"virtual"===e.droppable.getById(n.descriptor.droppableId).descriptor.mode)}var eu,tu,nu=function(e,t){var n=null,r=function(e){var t=e.registry,n=e.callbacks,r={additions:{},removals:{},modified:{}},o=null,i=function(){o||(n.collectionStarting(),o=requestAnimationFrame((function(){o=null,nl();var e=r,i=e.additions,a=e.removals,s=e.modified,l=Object.keys(i).map((function(e){return t.draggable.getById(e).getDimension(Na)})).sort((function(e,t){return e.descriptor.index-t.descriptor.index})),u=Object.keys(s).map((function(e){return{droppableId:e,scroll:t.droppable.getById(e).callbacks.getScrollWhileDragging()}})),c={additions:l,removals:Object.keys(a),modified:u};r={additions:{},removals:{},modified:{}},rl(),n.publish(c)})))};return{add:function(e){var t=e.descriptor.id;r.additions[t]=e,r.modified[e.descriptor.droppableId]=!0,r.removals[t]&&delete r.removals[t],i()},remove:function(e){var t=e.descriptor;r.removals[t.id]=!0,r.modified[t.droppableId]=!0,r.additions[t.id]&&delete r.additions[t.id],i()},stop:function(){o&&(cancelAnimationFrame(o),o=null,r={additions:{},removals:{},modified:{}})}}}({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),o=function(t){n||_a(!1);var o=n.critical.draggable;"ADDITION"===t.type&&Zl(e,o,t.value)&&r.add(t.value),"REMOVAL"===t.type&&Zl(e,o,t.value)&&r.remove(t.value)},i={updateDroppableIsEnabled:function(r,o){e.droppable.exists(r)||_a(!1),n&&t.updateDroppableIsEnabled({id:r,isEnabled:o})},updateDroppableIsCombineEnabled:function(r,o){n&&(e.droppable.exists(r)||_a(!1),t.updateDroppableIsCombineEnabled({id:r,isCombineEnabled:o}))},scrollDroppable:function(t,r){n&&e.droppable.getById(t).callbacks.scroll(r)},updateDroppableScroll:function(r,o){n&&(e.droppable.exists(r)||_a(!1),t.updateDroppableScroll({id:r,newScroll:o}))},startPublishing:function(t){n&&_a(!1);var r=e.draggable.getById(t.draggableId),i=e.droppable.getById(r.descriptor.droppableId),a={draggable:r.descriptor,droppable:i.descriptor},s=e.subscribe(o);return n={critical:a,unsubscribe:s},Xl({critical:a,registry:e,scrollOptions:t.scrollOptions})},stopPublishing:function(){if(n){r.stop();var t=n.critical.droppable;e.droppable.getAllByType(t.type).forEach((function(e){return e.callbacks.dragStopped()})),n.unsubscribe(),n=null}}};return i},ru=function(e,t){return"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&(e.completed.result.draggableId!==t&&"DROP"===e.completed.result.reason)},ou=function(e){window.scrollBy(e.x,e.y)},iu=fa((function(e){return Ya(e).filter((function(e){return!!e.isEnabled&&!!e.frame}))})),au=function(e){var t=e.center,n=e.destination,r=e.droppables;if(n){var o=r[n];return o.frame?o:null}var i=function(e,t){var n=Qa(iu(t),(function(t){return t.frame||_a(!1),Hs(t.frame.pageMarginBox)(e)}));return n}(t,r);return i},su=.25,lu=.05,uu=28,cu=function(e){return Math.pow(e,2)},pu={stopDampeningAt:1200,accelerateAt:360},du=function(e){var t=e.startOfRange,n=e.endOfRange,r=e.current,o=n-t;return 0===o?0:(r-t)/o},fu=pu.accelerateAt,hu=pu.stopDampeningAt,mu=function(e){var t=e.distanceToEdge,n=e.thresholds,r=e.dragStartTime,o=e.shouldUseTimeDampening,i=function(e,t){if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return uu;if(e===t.startScrollingFrom)return 1;var n=du({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),r=uu*cu(1-n);return Math.ceil(r)}(t,n);return 0===i?0:o?Math.max(function(e,t){var n=t,r=hu,o=Date.now()-n;if(o>=hu)return e;if(o<fu)return 1;var i=du({startOfRange:fu,endOfRange:r,current:o}),a=e*cu(i);return Math.ceil(a)}(i,r),1):i},yu=function(e){var t=e.container,n=e.distanceToEdges,r=e.dragStartTime,o=e.axis,i=e.shouldUseTimeDampening,a=function(e,t){return{startScrollingFrom:e[t.size]*su,maxScrollValueAt:e[t.size]*lu}}(t,o);return n[o.end]<n[o.start]?mu({distanceToEdge:n[o.end],thresholds:a,dragStartTime:r,shouldUseTimeDampening:i}):-1*mu({distanceToEdge:n[o.start],thresholds:a,dragStartTime:r,shouldUseTimeDampening:i})},gu=qa((function(e){return 0===e?0:e})),vu=function(e){var t=e.dragStartTime,n=e.container,r=e.subject,o=e.center,i=e.shouldUseTimeDampening,a={top:o.y-n.top,right:n.right-o.x,bottom:n.bottom-o.y,left:o.x-n.left},s=yu({container:n,distanceToEdges:a,dragStartTime:t,axis:cs,shouldUseTimeDampening:i}),l=yu({container:n,distanceToEdges:a,dragStartTime:t,axis:ps,shouldUseTimeDampening:i}),u=gu({x:l,y:s});if(Aa(u,Na))return null;var c=function(e){var t=e.container,n=e.subject,r=e.proposedScroll,o=n.height>t.height,i=n.width>t.width;return i||o?i&&o?null:{x:i?0:r.x,y:o?0:r.y}:r}({container:n,subject:r,proposedScroll:u});return c?Aa(c,Na)?null:c:null},bu=qa((function(e){return 0===e?0:e>0?1:-1})),wu=(eu=function(e,t){return e<0?e:e>t?e-t:0},function(e){var t=e.current,n=e.max,r=e.change,o=Ca(t,r),i={x:eu(o.x,n.x),y:eu(o.y,n.y)};return Aa(i,Na)?null:i}),_u=function(e){var t=e.max,n=e.current,r=e.change,o={x:Math.max(n.x,t.x),y:Math.max(n.y,t.y)},i=bu(r),a=wu({max:o,current:n,change:i});return!a||(0!==i.x&&0===a.x||0!==i.y&&0===a.y)},Eu=function(e,t){return _u({current:e.scroll.current,max:e.scroll.max,change:t})},Du=function(e,t){var n=e.frame;return!!n&&_u({current:n.scroll.current,max:n.scroll.max,change:t})},xu=function(e){var t=e.state,n=e.dragStartTime,r=e.shouldUseTimeDampening,o=e.scrollWindow,i=e.scrollDroppable,a=t.current.page.borderBoxCenter,s=t.dimensions.draggables[t.critical.draggable.id].page.marginBox;if(t.isWindowScrollAllowed){var l=function(e){var t=e.viewport,n=e.subject,r=e.center,o=e.dragStartTime,i=e.shouldUseTimeDampening,a=vu({dragStartTime:o,container:t.frame,subject:n,center:r,shouldUseTimeDampening:i});return a&&Eu(t,a)?a:null}({dragStartTime:n,viewport:t.viewport,subject:s,center:a,shouldUseTimeDampening:r});if(l)return void o(l)}var u=au({center:a,destination:Bs(t.impact),droppables:t.dimensions.droppables});if(u){var c=function(e){var t=e.droppable,n=e.subject,r=e.center,o=e.dragStartTime,i=e.shouldUseTimeDampening,a=t.frame;if(!a)return null;var s=vu({dragStartTime:o,container:a.pageMarginBox,subject:n,center:r,shouldUseTimeDampening:i});return s&&Du(t,s)?s:null}({dragStartTime:n,droppable:u,subject:s,center:a,shouldUseTimeDampening:r});c&&i(u.descriptor.id,c)}},Su=function(e){var t=e.move,n=e.scrollDroppable,r=e.scrollWindow,o=function(e,t){if(!Du(e,t))return t;var r=function(e,t){var n=e.frame;return n&&Du(e,t)?wu({current:n.scroll.current,max:n.scroll.max,change:t}):null}(e,t);if(!r)return n(e.descriptor.id,t),null;var o=ja(t,r);return n(e.descriptor.id,o),ja(t,o)},i=function(e,t,n){if(!e)return n;if(!Eu(t,n))return n;var o=function(e,t){if(!Eu(e,t))return null;var n=e.scroll.max,r=e.scroll.current;return wu({current:r,max:n,change:t})}(t,n);if(!o)return r(n),null;var i=ja(n,o);return r(i),ja(n,i)};return function(e){var n=e.scrollJumpRequest;if(n){var r=Bs(e.impact);r||_a(!1);var a=o(e.dimensions.droppables[r],n);if(a){var s=e.viewport,l=i(e.isWindowScrollAllowed,s,a);l&&function(e,n){var r=Ca(e.current.client.selection,n);t({client:r})}(e,l)}}}},Ou=function(e){var t=e.scrollDroppable,n=e.scrollWindow,r=e.move,o=function(e){var t=e.scrollWindow,n=e.scrollDroppable,r=ha(t),o=ha(n),i=null,a=function(e){i||_a(!1);var t=i,n=t.shouldUseTimeDampening,a=t.dragStartTime;xu({state:e,scrollWindow:r,scrollDroppable:o,dragStartTime:a,shouldUseTimeDampening:n})};return{start:function(e){nl(),i&&_a(!1);var t=Date.now(),n=!1,r=function(){n=!0};xu({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:r,scrollDroppable:r}),i={dragStartTime:t,shouldUseTimeDampening:n},rl(),n&&a(e)},stop:function(){i&&(r.cancel(),o.cancel(),i=null)},scroll:a}}({scrollWindow:n,scrollDroppable:t}),i=Su({move:r,scrollWindow:n,scrollDroppable:t});return{scroll:function(e){"DRAGGING"===e.phase&&("FLUID"!==e.movementMode?e.scrollJumpRequest&&i(e):o.scroll(e))},start:o.start,stop:o.stop}},Iu="data-rbd",ku={base:tu=Iu+"-drag-handle",draggableId:tu+"-draggable-id",contextId:tu+"-context-id"},Pu=function(){var e=Iu+"-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),Tu=function(){var e=Iu+"-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),Nu={contextId:Iu+"-scroll-container-context-id"},Cu=function(e,t){return e.map((function(e){var n=e.styles[t];return n?e.selector+" { "+n+" }":""})).join(" ")},ju=function(e){var t,n,r,o=(t=e,function(e){return"["+e+'="'+t+'"]'}),i=(n="\n cursor: -webkit-grab;\n cursor: grab;\n ",{selector:o(ku.contextId),styles:{always:"\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n touch-action: manipulation;\n ",resting:n,dragging:"pointer-events: none;",dropAnimating:n}}),a=[(r="\n transition: "+Pl.outOfTheWay+";\n ",{selector:o(Pu.contextId),styles:{dragging:r,dropAnimating:r,userCancel:r}}),i,{selector:o(Tu.contextId),styles:{always:"overflow-anchor: none;"}},{selector:"body",styles:{dragging:"\n cursor: grabbing;\n cursor: -webkit-grabbing;\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n overflow-anchor: none;\n "}}];return{always:Cu(a,"always"),resting:Cu(a,"resting"),dragging:Cu(a,"dragging"),dropAnimating:Cu(a,"dropAnimating"),userCancel:Cu(a,"userCancel")}},Au="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?e.useLayoutEffect:e.useEffect,Lu=function(){var e=document.querySelector("head");return e||_a(!1),e},Ru=function(e){var t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};var zu=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function Mu(e){return e instanceof zu(e).HTMLElement}function qu(e,t){var n="["+ku.contextId+'="'+e+'"]',r=Va(document.querySelectorAll(n));if(!r.length)return null;var o=Qa(r,(function(e){return e.getAttribute(ku.draggableId)===t}));return o&&Mu(o)?o:null}function Fu(){var e={draggables:{},droppables:{}},t=[];function n(e){t.length&&t.forEach((function(t){return t(e)}))}function r(t){return e.draggables[t]||null}function o(t){return e.droppables[t]||null}return{draggable:{register:function(t){e.draggables[t.descriptor.id]=t,n({type:"ADDITION",value:t})},update:function(t,n){var r=e.draggables[n.descriptor.id];r&&r.uniqueId===t.uniqueId&&(delete e.draggables[n.descriptor.id],e.draggables[t.descriptor.id]=t)},unregister:function(t){var o=t.descriptor.id,i=r(o);i&&t.uniqueId===i.uniqueId&&(delete e.draggables[o],n({type:"REMOVAL",value:t}))},getById:function(e){var t=r(e);return t||_a(!1),t},findById:r,exists:function(e){return Boolean(r(e))},getAllByType:function(t){return Wa(e.draggables).filter((function(e){return e.descriptor.type===t}))}},droppable:{register:function(t){e.droppables[t.descriptor.id]=t},unregister:function(t){var n=o(t.descriptor.id);n&&t.uniqueId===n.uniqueId&&delete e.droppables[t.descriptor.id]},getById:function(e){var t=o(e);return t||_a(!1),t},findById:o,exists:function(e){return Boolean(o(e))},getAllByType:function(t){return Wa(e.droppables).filter((function(e){return e.descriptor.type===t}))}},subscribe:function(e){return t.push(e),function(){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},clean:function(){e.draggables={},e.droppables={},t.length=0}}}var Bu=e.createContext(null),Uu=function(){var e=document.body;return e||_a(!1),e},$u={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},Hu=function(e){return"rbd-announcement-"+e};var Wu=0,Gu={separator:"::"};function Qu(e,t){return void 0===t&&(t=Gu),Xi((function(){return""+e+t.separator+Wu++}),[t.separator,e])}var Vu=e.createContext(null);function Ku(e){0}function Ju(e,t){Ku()}function Yu(t){var n=(0,e.useRef)(t);return(0,e.useEffect)((function(){n.current=t})),n}var Xu,Zu=27,ec=32,tc=37,nc=38,rc=39,oc=40,ic=((Xu={})[13]=!0,Xu[9]=!0,Xu),ac=function(e){ic[e.keyCode]&&e.preventDefault()},sc=function(){var e="visibilitychange";return"undefined"==typeof document?e:Qa([e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],(function(e){return"on"+e in document}))||e}(),lc=0,uc=5;var cc,pc={type:"IDLE"};function dc(e){var t=e.cancel,n=e.completed,r=e.getPhase,o=e.setPhase;return[{eventName:"mousemove",fn:function(e){var t=e.button,n=e.clientX,i=e.clientY;if(t===lc){var a={x:n,y:i},s=r();if("DRAGGING"===s.type)return e.preventDefault(),void s.actions.move(a);"PENDING"!==s.type&&_a(!1);var l=s.point;if(u=l,c=a,Math.abs(c.x-u.x)>=uc||Math.abs(c.y-u.y)>=uc){var u,c;e.preventDefault();var p=s.actions.fluidLift(a);o({type:"DRAGGING",actions:p})}}}},{eventName:"mouseup",fn:function(e){var o=r();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"mousedown",fn:function(e){"DRAGGING"===r().type&&e.preventDefault(),t()}},{eventName:"keydown",fn:function(e){if("PENDING"!==r().type)return e.keyCode===Zu?(e.preventDefault(),void t()):void ac(e);t()}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){"PENDING"===r().type&&t()}},{eventName:"webkitmouseforcedown",fn:function(e){var n=r();"IDLE"===n.type&&_a(!1),n.actions.shouldRespectForcePress()?t():e.preventDefault()}},{eventName:sc,fn:t}]}function fc(){}var hc=((cc={})[34]=!0,cc[33]=!0,cc[36]=!0,cc[35]=!0,cc);function mc(e,t){function n(){t(),e.cancel()}return[{eventName:"keydown",fn:function(r){return r.keyCode===Zu?(r.preventDefault(),void n()):r.keyCode===ec?(r.preventDefault(),t(),void e.drop()):r.keyCode===oc?(r.preventDefault(),void e.moveDown()):r.keyCode===nc?(r.preventDefault(),void e.moveUp()):r.keyCode===rc?(r.preventDefault(),void e.moveRight()):r.keyCode===tc?(r.preventDefault(),void e.moveLeft()):void(hc[r.keyCode]?r.preventDefault():ac(r))}},{eventName:"mousedown",fn:n},{eventName:"mouseup",fn:n},{eventName:"click",fn:n},{eventName:"touchstart",fn:n},{eventName:"resize",fn:n},{eventName:"wheel",fn:n,options:{passive:!0}},{eventName:sc,fn:n}]}var yc={type:"IDLE"},gc=.15;var vc={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function bc(e,t){if(null==t)return!1;if(Boolean(vc[t.tagName.toLowerCase()]))return!0;var n=t.getAttribute("contenteditable");return"true"===n||""===n||t!==e&&bc(e,t.parentElement)}function wc(e,t){var n=t.target;return!!Mu(n)&&bc(e,n)}var _c=function(e){return ta(e.getBoundingClientRect()).center};var Ec=function(){var e="matches";return"undefined"==typeof document?e:Qa([e,"msMatchesSelector","webkitMatchesSelector"],(function(e){return e in Element.prototype}))||e}();function Dc(e,t){return null==e?null:e[Ec](t)?e:Dc(e.parentElement,t)}function xc(e,t){return e.closest?e.closest(t):Dc(e,t)}function Sc(e,t){var n,r=t.target;if(!((n=r)instanceof zu(n).Element))return null;var o=function(e){return"["+ku.contextId+'="'+e+'"]'}(e),i=xc(r,o);return i&&Mu(i)?i:null}function Oc(e){e.preventDefault()}function Ic(e){var t=e.expected,n=e.phase,r=e.isLockActive;e.shouldWarn;return!!r()&&t===n}function kc(e){var t=e.lockAPI,n=e.store,r=e.registry,o=e.draggableId;if(t.isClaimed())return!1;var i=r.draggable.findById(o);return!!i&&(!!i.options.isEnabled&&!!ru(n.getState(),o))}function Pc(e){var t=e.lockAPI,n=e.contextId,r=e.store,o=e.registry,i=e.draggableId,a=e.forceSensorStop,s=e.sourceEvent;if(!kc({lockAPI:t,store:r,registry:o,draggableId:i}))return null;var l=o.draggable.getById(i),c=function(e,t){var n="["+Pu.contextId+'="'+e+'"]',r=Qa(Va(document.querySelectorAll(n)),(function(e){return e.getAttribute(Pu.id)===t}));return r&&Mu(r)?r:null}(n,l.descriptor.id);if(!c)return null;if(s&&!l.options.canDragInteractiveElements&&wc(c,s))return null;var p=t.claim(a||ya),d="PRE_DRAG";function f(){return l.options.shouldRespectForcePress}function h(){return t.isActive(p)}var m=function(e,t){Ic({expected:e,phase:d,isLockActive:h,shouldWarn:!0})&&r.dispatch(t())}.bind(null,"DRAGGING");function y(e){function n(){t.release(),d="COMPLETED"}function o(t,o){if(void 0===o&&(o={shouldBlockNextClick:!1}),e.cleanup(),o.shouldBlockNextClick){var i=ga(window,[{eventName:"click",fn:Oc,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(i)}n(),r.dispatch(Dl({reason:t}))}return"PRE_DRAG"!==d&&(n(),"PRE_DRAG"!==d&&_a(!1)),r.dispatch(cl(e.liftActionArgs)),d="DRAGGING",u({isActive:function(){return Ic({expected:"DRAGGING",phase:d,isLockActive:h,shouldWarn:!1})},shouldRespectForcePress:f,drop:function(e){return o("DROP",e)},cancel:function(e){return o("CANCEL",e)}},e.actions)}return{isActive:function(){return Ic({expected:"PRE_DRAG",phase:d,isLockActive:h,shouldWarn:!1})},shouldRespectForcePress:f,fluidLift:function(e){var t=ha((function(e){m((function(){return yl({client:e})}))}));return u({},y({liftActionArgs:{id:i,clientSelection:e,movementMode:"FLUID"},cleanup:function(){return t.cancel()},actions:{move:t}}),{move:t})},snapLift:function(){var e={moveUp:function(){return m(gl)},moveRight:function(){return m(bl)},moveDown:function(){return m(vl)},moveLeft:function(){return m(wl)}};return y({liftActionArgs:{id:i,clientSelection:_c(c),movementMode:"SNAP"},cleanup:ya,actions:e})},abort:function(){Ic({expected:"PRE_DRAG",phase:d,isLockActive:h,shouldWarn:!0})&&t.release()}}}var Tc=[function(t){var n=(0,e.useRef)(pc),r=(0,e.useRef)(ya),o=Xi((function(){return{eventName:"mousedown",fn:function(e){if(!e.defaultPrevented&&e.button===lc&&!(e.ctrlKey||e.metaKey||e.shiftKey||e.altKey)){var n=t.findClosestDraggableId(e);if(n){var o=t.tryGetLock(n,s,{sourceEvent:e});if(o){e.preventDefault();var i={x:e.clientX,y:e.clientY};r.current(),c(o,i)}}}}}}),[t]),i=Xi((function(){return{eventName:"webkitmouseforcewillbegin",fn:function(e){if(!e.defaultPrevented){var n=t.findClosestDraggableId(e);if(n){var r=t.findOptionsForDraggable(n);r&&(r.shouldRespectForcePress||t.canGetLock(n)&&e.preventDefault())}}}}}),[t]),a=Zi((function(){r.current=ga(window,[i,o],{passive:!1,capture:!0})}),[i,o]),s=Zi((function(){"IDLE"!==n.current.type&&(n.current=pc,r.current(),a())}),[a]),l=Zi((function(){var e=n.current;s(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[s]),u=Zi((function(){var e=dc({cancel:l,completed:s,getPhase:function(){return n.current},setPhase:function(e){n.current=e}});r.current=ga(window,e,{capture:!0,passive:!1})}),[l,s]),c=Zi((function(e,t){"IDLE"!==n.current.type&&_a(!1),n.current={type:"PENDING",point:t,actions:e},u()}),[u]);Au((function(){return a(),function(){r.current()}}),[a])},function(t){var n=(0,e.useRef)(fc),r=Xi((function(){return{eventName:"keydown",fn:function(e){if(!e.defaultPrevented&&e.keyCode===ec){var r=t.findClosestDraggableId(e);if(r){var i=t.tryGetLock(r,l,{sourceEvent:e});if(i){e.preventDefault();var a=!0,s=i.snapLift();n.current(),n.current=ga(window,mc(s,l),{capture:!0,passive:!1})}}}function l(){a||_a(!1),a=!1,n.current(),o()}}}}),[t]),o=Zi((function(){n.current=ga(window,[r],{passive:!1,capture:!0})}),[r]);Au((function(){return o(),function(){n.current()}}),[o])},function(t){var n=(0,e.useRef)(yc),r=(0,e.useRef)(ya),o=Zi((function(){return n.current}),[]),i=Zi((function(e){n.current=e}),[]),a=Xi((function(){return{eventName:"touchstart",fn:function(e){if(!e.defaultPrevented){var n=t.findClosestDraggableId(e);if(n){var o=t.tryGetLock(n,l,{sourceEvent:e});if(o){var i=e.touches[0],a={x:i.clientX,y:i.clientY};r.current(),d(o,a)}}}}}}),[t]),s=Zi((function(){r.current=ga(window,[a],{capture:!0,passive:!1})}),[a]),l=Zi((function(){var e=n.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),i(yc),r.current(),s())}),[s,i]),u=Zi((function(){var e=n.current;l(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[l]),c=Zi((function(){var e={capture:!0,passive:!1},t={cancel:u,completed:l,getPhase:o},n=ga(window,function(e){var t=e.cancel,n=e.completed,r=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(e){var n=r();if("DRAGGING"===n.type){n.hasMoved=!0;var o=e.touches[0],i={x:o.clientX,y:o.clientY};e.preventDefault(),n.actions.move(i)}else t()}},{eventName:"touchend",fn:function(e){var o=r();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"touchcancel",fn:function(e){"DRAGGING"===r().type?(e.preventDefault(),t()):t()}},{eventName:"touchforcechange",fn:function(e){var n=r();"IDLE"===n.type&&_a(!1);var o=e.touches[0];if(o&&o.force>=gc){var i=n.actions.shouldRespectForcePress();if("PENDING"!==n.type)return i?n.hasMoved?void e.preventDefault():void t():void e.preventDefault();i&&t()}}},{eventName:sc,fn:t}]}(t),e),i=ga(window,function(e){var t=e.cancel,n=e.getPhase;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:function(e){e.preventDefault()}},{eventName:"keydown",fn:function(e){"DRAGGING"===n().type?(e.keyCode===Zu&&e.preventDefault(),t()):t()}},{eventName:sc,fn:t}]}(t),e);r.current=function(){n(),i()}}),[u,o,l]),p=Zi((function(){var e=o();"PENDING"!==e.type&&_a(!1);var t=e.actions.fluidLift(e.point);i({type:"DRAGGING",actions:t,hasMoved:!1})}),[o,i]),d=Zi((function(e,t){"IDLE"!==o().type&&_a(!1);var n=setTimeout(p,120);i({type:"PENDING",point:t,actions:e,longPressTimerId:n}),c()}),[c,o,i,p]);Au((function(){return s(),function(){r.current();var e=o();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),i(yc))}}),[o,s,i]),Au((function(){return ga(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}])}),[])}];function Nc(t){var n=t.contextId,r=t.store,o=t.registry,i=t.customSensors,a=t.enableDefaultSensors,s=[].concat(a?Tc:[],i||[]),l=(0,e.useState)((function(){return function(){var e=null;function t(){e||_a(!1),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(t){return t===e},claim:function(t){e&&_a(!1);var n={abandon:t};return e=n,n},release:t,tryAbandon:function(){e&&(e.abandon(),t())}}}()}))[0],u=Zi((function(e,t){e.isDragging&&!t.isDragging&&l.tryAbandon()}),[l]);Au((function(){var e=r.getState();return r.subscribe((function(){var t=r.getState();u(e,t),e=t}))}),[l,r,u]),Au((function(){return l.tryAbandon}),[l.tryAbandon]);var c=Zi((function(e){return kc({lockAPI:l,registry:o,store:r,draggableId:e})}),[l,o,r]),p=Zi((function(e,t,i){return Pc({lockAPI:l,registry:o,contextId:n,store:r,draggableId:e,forceSensorStop:t,sourceEvent:i&&i.sourceEvent?i.sourceEvent:null})}),[n,l,o,r]),d=Zi((function(e){return function(e,t){var n=Sc(e,t);return n?n.getAttribute(ku.draggableId):null}(n,e)}),[n]),f=Zi((function(e){var t=o.draggable.findById(e);return t?t.options:null}),[o.draggable]),h=Zi((function(){l.isClaimed()&&(l.tryAbandon(),"IDLE"!==r.getState().phase&&r.dispatch(_l()))}),[l,r]),m=Zi(l.isClaimed,[l]),y=Xi((function(){return{canGetLock:c,tryGetLock:p,findClosestDraggableId:d,findOptionsForDraggable:f,tryReleaseLock:h,isLockClaimed:m}}),[c,p,d,f,h,m]);Ku();for(var g=0;g<s.length;g++)s[g](y)}var Cc=function(e){return{onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}};function jc(e){return e.current||_a(!1),e.current}function Ac(t){var n=t.contextId,r=t.setCallbacks,o=t.sensors,i=t.nonce,a=t.dragHandleUsageInstructions,s=(0,e.useRef)(null);Ju();var l=Yu(t),c=Zi((function(){return Cc(l.current)}),[l]),p=function(t){var n=Xi((function(){return Hu(t)}),[t]),r=(0,e.useRef)(null);return(0,e.useEffect)((function(){var e=document.createElement("div");return r.current=e,e.id=n,e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),u(e.style,$u),Uu().appendChild(e),function(){setTimeout((function(){var t=Uu();t.contains(e)&&t.removeChild(e),e===r.current&&(r.current=null)}))}}),[n]),Zi((function(e){var t=r.current;t&&(t.textContent=e)}),[])}(n),d=function(t){var n=t.contextId,r=t.text,o=Qu("hidden-text",{separator:"-"}),i=Xi((function(){return"rbd-hidden-text-"+(e={contextId:n,uniqueId:o}).contextId+"-"+e.uniqueId;var e}),[o,n]);return(0,e.useEffect)((function(){var e=document.createElement("div");return e.id=i,e.textContent=r,e.style.display="none",Uu().appendChild(e),function(){var t=Uu();t.contains(e)&&t.removeChild(e)}}),[i,r]),i}({contextId:n,text:a}),f=function(t,n){var r=Xi((function(){return ju(t)}),[t]),o=(0,e.useRef)(null),i=(0,e.useRef)(null),a=Zi(fa((function(e){var t=i.current;t||_a(!1),t.textContent=e})),[]),s=Zi((function(e){var t=o.current;t||_a(!1),t.textContent=e}),[]);Au((function(){(o.current||i.current)&&_a(!1);var e=Ru(n),l=Ru(n);return o.current=e,i.current=l,e.setAttribute(Iu+"-always",t),l.setAttribute(Iu+"-dynamic",t),Lu().appendChild(e),Lu().appendChild(l),s(r.always),a(r.resting),function(){var e=function(e){var t=e.current;t||_a(!1),Lu().removeChild(t),e.current=null};e(o),e(i)}}),[n,s,a,r.always,r.resting,t]);var l=Zi((function(){return a(r.dragging)}),[a,r.dragging]),u=Zi((function(e){a("DROP"!==e?r.userCancel:r.dropAnimating)}),[a,r.dropAnimating,r.userCancel]),c=Zi((function(){i.current&&a(r.resting)}),[a,r.resting]);return Xi((function(){return{dragging:l,dropping:u,resting:c}}),[l,u,c])}(n,i),h=Zi((function(e){jc(s).dispatch(e)}),[]),m=Xi((function(){return Q({publishWhileDragging:pl,updateDroppableScroll:fl,updateDroppableIsEnabled:hl,updateDroppableIsCombineEnabled:ml,collectionStarting:dl},h)}),[h]),y=function(){var t=Xi(Fu,[]);return(0,e.useEffect)((function(){return function(){requestAnimationFrame(t.clean)}}),[t]),t}(),g=Xi((function(){return nu(y,m)}),[y,m]),v=Xi((function(){return Ou(u({scrollWindow:ou,scrollDroppable:g.scrollDroppable},Q({move:yl},h)))}),[g.scrollDroppable,h]),b=function(t){var n=(0,e.useRef)({}),r=(0,e.useRef)(null),o=(0,e.useRef)(null),i=(0,e.useRef)(!1),a=Zi((function(e,t){var r={id:e,focus:t};return n.current[e]=r,function(){var t=n.current;t[e]!==r&&delete t[e]}}),[]),s=Zi((function(e){var n=qu(t,e);n&&n!==document.activeElement&&n.focus()}),[t]),l=Zi((function(e,t){r.current===e&&(r.current=t)}),[]),u=Zi((function(){o.current||i.current&&(o.current=requestAnimationFrame((function(){o.current=null;var e=r.current;e&&s(e)})))}),[s]),c=Zi((function(e){r.current=null;var t=document.activeElement;t&&t.getAttribute(ku.draggableId)===e&&(r.current=e)}),[]);return Au((function(){return i.current=!0,function(){i.current=!1;var e=o.current;e&&cancelAnimationFrame(e)}}),[]),Xi((function(){return{register:a,tryRecordFocus:c,tryRestoreFocusRecorded:u,tryShiftRecord:l}}),[a,c,u,l])}(n),w=Xi((function(){return Vl({announce:p,autoScroller:v,dimensionMarshal:g,focusMarshal:b,getResponders:c,styleMarshal:f})}),[p,v,g,b,c,f]);s.current=w;var _=Zi((function(){var e=jc(s);"IDLE"!==e.getState().phase&&e.dispatch(_l())}),[]),E=Zi((function(){var e=jc(s).getState();return e.isDragging||"DROP_ANIMATING"===e.phase}),[]);r(Xi((function(){return{isDragging:E,tryAbort:_}}),[E,_]));var D=Zi((function(e){return ru(jc(s).getState(),e)}),[]),x=Zi((function(){return $s(jc(s).getState())}),[]),S=Xi((function(){return{marshal:g,focus:b,contextId:n,canLift:D,isMovementAllowed:x,dragHandleUsageInstructionsId:d,registry:y}}),[n,g,d,b,D,x,y]);return Nc({contextId:n,store:w,registry:y,customSensors:o,enableDefaultSensors:!1!==t.enableDefaultSensors}),(0,e.useEffect)((function(){return _}),[_]),e.createElement(Vu.Provider,{value:S},e.createElement(_i,{context:Bu,store:w},t.children))}var Lc=0;function Rc(t){var n=Xi((function(){return""+Lc++}),[]),r=t.dragHandleUsageInstructions||Ia;return e.createElement(Ea,null,(function(o){return e.createElement(Ac,{nonce:t.nonce,contextId:n,setCallbacks:o,dragHandleUsageInstructions:r,enableDefaultSensors:t.enableDefaultSensors,sensors:t.sensors,onBeforeCapture:t.onBeforeCapture,onBeforeDragStart:t.onBeforeDragStart,onDragStart:t.onDragStart,onDragUpdate:t.onDragUpdate,onDragEnd:t.onDragEnd},t.children)}))}var zc=function(e){return function(t){return e===t}},Mc=zc("scroll"),qc=zc("auto"),Fc=(zc("visible"),function(e,t){return t(e.overflowX)||t(e.overflowY)}),Bc=function(e){var t=window.getComputedStyle(e),n={overflowX:t.overflowX,overflowY:t.overflowY};return Fc(n,Mc)||Fc(n,qc)},Uc=function e(t){return null==t||t===document.body||t===document.documentElement?null:Bc(t)?t:e(t.parentElement)},$c=function(e){return{x:e.scrollLeft,y:e.scrollTop}},Hc=function e(t){return!!t&&("fixed"===window.getComputedStyle(t).position||e(t.parentElement))},Wc=function(e){return{closestScrollable:Uc(e),isFixedOnPage:Hc(e)}},Gc=function(e){var t=e.ref,n=e.descriptor,r=e.env,o=e.windowScroll,i=e.direction,a=e.isDropDisabled,s=e.isCombineEnabled,l=e.shouldClipSubject,u=r.closestScrollable,c=function(e,t){var n=ca(e);if(!t)return n;if(e!==t)return n;var r=n.paddingBox.top-t.scrollTop,o=n.paddingBox.left-t.scrollLeft,i=r+t.scrollHeight,a=o+t.scrollWidth,s=na({top:r,right:a,bottom:i,left:o},n.border);return ia({borderBox:s,margin:n.margin,border:n.border,padding:n.padding})}(t,u),p=la(c,o),d=function(){if(!u)return null;var e=ca(u),t={scrollHeight:u.scrollHeight,scrollWidth:u.scrollWidth};return{client:e,page:la(e,o),scroll:$c(u),scrollSize:t,shouldClipSubject:l}}(),f=function(e){var t=e.descriptor,n=e.isEnabled,r=e.isCombineEnabled,o=e.isFixedOnPage,i=e.direction,a=e.client,s=e.page,l=e.closest,u=function(){if(!l)return null;var e=l.scrollSize,t=l.client,n=Kl({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,height:t.paddingBox.height,width:t.paddingBox.width});return{pageMarginBox:l.page.marginBox,frameClient:t,scrollSize:e,shouldClipSubject:l.shouldClipSubject,scroll:{initial:l.scroll,current:l.scroll,max:n,diff:{value:Na,displacement:Na}}}}(),c="vertical"===i?cs:ps;return{descriptor:t,isCombineEnabled:r,isFixedOnPage:o,axis:c,isEnabled:n,client:a,page:s,frame:u,subject:$a({page:s,withPlaceholder:null,axis:c,frame:u})}}({descriptor:n,isEnabled:!a,isCombineEnabled:s,isFixedOnPage:r.isFixedOnPage,direction:i,client:c,page:p,closest:d});return f},Qc={passive:!1},Vc={passive:!0},Kc=function(e){return e.shouldPublishImmediately?Qc:Vc};function Jc(t){var n=(0,e.useContext)(t);return n||_a(!1),n}var Yc=function(e){return e&&e.env.closestScrollable||null};function Xc(){}var Zc={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}},ep=function(e){var t=e.isAnimatingOpenOnMount,n=e.placeholder,r=e.animate,o=function(e){var t=e.isAnimatingOpenOnMount,n=e.placeholder,r=e.animate;return t||"close"===r?Zc:{height:n.client.borderBox.height,width:n.client.borderBox.width,margin:n.client.margin}}({isAnimatingOpenOnMount:t,placeholder:n,animate:r});return{display:n.display,boxSizing:"border-box",width:o.width,height:o.height,marginTop:o.margin.top,marginRight:o.margin.right,marginBottom:o.margin.bottom,marginLeft:o.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:"none"!==r?Pl.placeholder:null}};var tp=e.memo((function(t){var n=(0,e.useRef)(null),r=Zi((function(){n.current&&(clearTimeout(n.current),n.current=null)}),[]),o=t.animate,i=t.onTransitionEnd,a=t.onClose,s=t.contextId,l=(0,e.useState)("open"===t.animate),u=l[0],c=l[1];(0,e.useEffect)((function(){return u?"open"!==o?(r(),c(!1),Xc):n.current?Xc:(n.current=setTimeout((function(){n.current=null,c(!1)})),r):Xc}),[o,u,r]);var p=Zi((function(e){"height"===e.propertyName&&(i(),"close"===o&&a())}),[o,a,i]),d=ep({isAnimatingOpenOnMount:u,animate:t.animate,placeholder:t.placeholder});return e.createElement(t.placeholder.tagName,{style:d,"data-rbd-placeholder-context-id":s,onTransitionEnd:p,ref:t.innerRef})})),np=e.createContext(null);var rp=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).state={isVisible:Boolean(t.props.on),data:t.props.on,animate:t.props.shouldAnimate&&t.props.on?"open":"none"},t.onClose=function(){"close"===t.state.animate&&t.setState({isVisible:!1})},t}return hi(t,e),t.getDerivedStateFromProps=function(e,t){return e.shouldAnimate?e.on?{isVisible:!0,data:e.on,animate:"open"}:t.isVisible?{isVisible:!0,data:t.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(e.on),data:e.on,animate:"none"}},t.prototype.render=function(){if(!this.state.isVisible)return null;var e={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(e)},t}(e.PureComponent),op={dragging:5e3,dropAnimating:4500},ip=function(e,t){return t?Pl.drop(t.duration):e?Pl.snap:Pl.fluid},ap=function(e,t){return e?t?Ol.drop:Ol.combining:null},sp=function(e){return null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode};function lp(e){return"DRAGGING"===e.type?function(e){var t=e.dimension.client,n=e.offset,r=e.combineWith,o=e.dropping,i=Boolean(r),a=sp(e),s=Boolean(o),l=s?Nl.drop(n,i):Nl.moveTo(n);return{position:"fixed",top:t.marginBox.top,left:t.marginBox.left,boxSizing:"border-box",width:t.borderBox.width,height:t.borderBox.height,transition:ip(a,o),transform:l,opacity:ap(i,s),zIndex:s?op.dropAnimating:op.dragging,pointerEvents:"none"}}(e):(t=e,{transform:Nl.moveTo(t.offset),transition:t.shouldAnimateDisplacement?null:"none"});var t}function up(t){var n=Qu("draggable"),r=t.descriptor,o=t.registry,i=t.getDraggableRef,a=t.canDragInteractiveElements,s=t.shouldRespectForcePress,l=t.isEnabled,u=Xi((function(){return{canDragInteractiveElements:a,shouldRespectForcePress:s,isEnabled:l}}),[a,l,s]),c=Zi((function(e){var t=i();return t||_a(!1),function(e,t,n){void 0===n&&(n=Na);var r=window.getComputedStyle(t),o=t.getBoundingClientRect(),i=ua(o,r),a=la(i,n);return{descriptor:e,placeholder:{client:i,tagName:t.tagName.toLowerCase(),display:r.display},displaceBy:{x:i.marginBox.width,y:i.marginBox.height},client:i,page:a}}(r,t,e)}),[r,i]),p=Xi((function(){return{uniqueId:n,descriptor:r,options:u,getDimension:c}}),[r,c,u,n]),d=(0,e.useRef)(p),f=(0,e.useRef)(!0);Au((function(){return o.draggable.register(d.current),function(){return o.draggable.unregister(d.current)}}),[o.draggable]),Au((function(){if(f.current)f.current=!1;else{var e=d.current;d.current=p,o.draggable.update(p,e)}}),[p,o.draggable])}function cp(e,t,n){Ju()}function pp(e){e.preventDefault()}var dp=function(e,t){return e===t},fp=function(e){var t=e.combine,n=e.destination;return n?n.droppableId:t?t.droppableId:null};function hp(e){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}var mp={mapped:{type:"SECONDARY",offset:Na,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:hp(null)}};var yp=Ji((function(){var e,t,n,r=(e=fa((function(e,t){return{x:e,y:t}})),t=fa((function(e,t,n,r,o){return{isDragging:!0,isClone:t,isDropAnimating:Boolean(o),dropAnimation:o,mode:e,draggingOver:n,combineWith:r,combineTargetFor:null}})),n=fa((function(e,n,r,o,i,a,s){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:i,combineWith:a,mode:n,offset:e,dimension:r,forceShouldAnimate:s,snapshot:t(n,o,i,a,null)}}})),function(r,o){if(r.isDragging){if(r.critical.draggable.id!==o.draggableId)return null;var i=r.current.client.offset,a=r.dimensions.draggables[o.draggableId],s=Bs(r.impact),l=(c=r.impact).at&&"COMBINE"===c.at.type?c.at.combine.draggableId:null,u=r.forceShouldAnimate;return n(e(i.x,i.y),r.movementMode,a,o.isClone,s,l,u)}var c;if("DROP_ANIMATING"===r.phase){var p=r.completed;if(p.result.draggableId!==o.draggableId)return null;var d=o.isClone,f=r.dimensions.draggables[o.draggableId],h=p.result,m=h.mode,y=fp(h),g=function(e){return e.combine?e.combine.draggableId:null}(h),v={duration:r.dropDuration,curve:Sl,moveTo:r.newHomeClientOffset,opacity:g?Ol.drop:null,scale:g?Il.drop:null};return{mapped:{type:"DRAGGING",offset:r.newHomeClientOffset,dimension:f,dropping:v,draggingOver:y,combineWith:g,mode:m,forceShouldAnimate:null,snapshot:t(m,d,y,g,v)}}}return null}),o=function(){var e=fa((function(e,t){return{x:e,y:t}})),t=fa(hp),n=fa((function(e,n,r){return void 0===n&&(n=null),{mapped:{type:"SECONDARY",offset:e,combineTargetFor:n,shouldAnimateDisplacement:r,snapshot:t(n)}}})),r=function(e){return e?n(Na,e,!0):null},o=function(t,o,i,a){var s=i.displaced.visible[t],l=Boolean(a.inVirtualList&&a.effected[t]),u=ts(i),c=u&&u.draggableId===t?o:null;if(!s){if(!l)return r(c);if(i.displaced.invisible[t])return null;var p=La(a.displacedBy.point),d=e(p.x,p.y);return n(d,c,!0)}if(l)return r(c);var f=i.displacedBy.point,h=e(f.x,f.y);return n(h,c,s.shouldAnimate)};return function(e,t){if(e.isDragging)return e.critical.draggable.id===t.draggableId?null:o(t.draggableId,e.critical.draggable.id,e.impact,e.afterCritical);if("DROP_ANIMATING"===e.phase){var n=e.completed;return n.result.draggableId===t.draggableId?null:o(t.draggableId,n.result.draggableId,n.impact,n.afterCritical)}return null}}();return function(e,t){return r(e,t)||o(e,t)||mp}}),{dropAnimationFinished:xl},null,{context:Bu,pure:!0,areStatePropsEqual:dp})((function(t){var n=(0,e.useRef)(null),r=Zi((function(e){n.current=e}),[]),o=Zi((function(){return n.current}),[]),i=Jc(Vu),a=i.contextId,s=i.dragHandleUsageInstructionsId,l=i.registry,u=Jc(np),c=u.type,p=u.droppableId,d=Xi((function(){return{id:t.draggableId,index:t.index,type:c,droppableId:p}}),[t.draggableId,t.index,c,p]),f=t.children,h=t.draggableId,m=t.isEnabled,y=t.shouldRespectForcePress,g=t.canDragInteractiveElements,v=t.isClone,b=t.mapped,w=t.dropAnimationFinished;cp(),Ku(),v||up(Xi((function(){return{descriptor:d,registry:l,getDraggableRef:o,canDragInteractiveElements:g,shouldRespectForcePress:y,isEnabled:m}}),[d,l,o,g,y,m]));var _=Xi((function(){return m?{tabIndex:0,role:"button","aria-describedby":s,"data-rbd-drag-handle-draggable-id":h,"data-rbd-drag-handle-context-id":a,draggable:!1,onDragStart:pp}:null}),[a,s,h,m]),E=Zi((function(e){"DRAGGING"===b.type&&b.dropping&&"transform"===e.propertyName&&w()}),[w,b]),D=Xi((function(){var e=lp(b),t="DRAGGING"===b.type&&b.dropping?E:null;return{innerRef:r,draggableProps:{"data-rbd-draggable-context-id":a,"data-rbd-draggable-id":h,style:e,onTransitionEnd:t},dragHandleProps:_}}),[a,_,h,b,E,r]),x=Xi((function(){return{draggableId:d.id,type:d.type,source:{index:d.index,droppableId:d.droppableId}}}),[d.droppableId,d.id,d.index,d.type]);return f(D,b.snapshot,x)}));function gp(t){return Jc(np).isUsingCloneFor!==t.draggableId||t.isClone?e.createElement(yp,t):null}function vp(t){var n="boolean"!=typeof t.isDragDisabled||!t.isDragDisabled,r=Boolean(t.disableInteractiveElementBlocking),o=Boolean(t.shouldRespectForcePress);return e.createElement(gp,u({},t,{isClone:!1,isEnabled:n,canDragInteractiveElements:r,shouldRespectForcePress:o}))}var bp=function(e,t){return e===t.droppable.type},wp=function(e,t){return t.draggables[e.draggable.id]};var _p={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||_a(!1),document.body}},Ep=Ji((function(){var e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t=u({},e,{shouldAnimatePlaceholder:!1}),n=fa((function(e){return{draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}}})),r=fa((function(r,o,i,a,s,l){var u=s.descriptor.id;if(s.descriptor.droppableId===r){var c=l?{render:l,dragging:n(s.descriptor)}:null,p={isDraggingOver:i,draggingOverWith:i?u:null,draggingFromThisWith:u,isUsingPlaceholder:!0};return{placeholder:s.placeholder,shouldAnimatePlaceholder:!1,snapshot:p,useClone:c}}if(!o)return t;if(!a)return e;var d={isDraggingOver:i,draggingOverWith:u,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:s.placeholder,shouldAnimatePlaceholder:!0,snapshot:d,useClone:null}}));return function(n,o){var i=o.droppableId,a=o.type,s=!o.isDropDisabled,l=o.renderClone;if(n.isDragging){var u=n.critical;if(!bp(a,u))return t;var c=wp(u,n.dimensions),p=Bs(n.impact)===i;return r(i,s,p,p,c,l)}if("DROP_ANIMATING"===n.phase){var d=n.completed;if(!bp(a,d.critical))return t;var f=wp(d.critical,n.dimensions);return r(i,s,fp(d.result)===i,Bs(d.impact)===i,f,l)}if("IDLE"===n.phase&&n.completed&&!n.shouldFlush){var h=n.completed;if(!bp(a,h.critical))return t;var m=Bs(h.impact)===i,y=Boolean(h.impact.at&&"COMBINE"===h.impact.at.type),g=h.critical.droppable.id===i;return m?y?e:t:g?e:t}return t}}),{updateViewportMaxScroll:function(e){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}}},null,{context:Bu,pure:!0,areStatePropsEqual:dp})((function(n){var r=(0,e.useContext)(Vu);r||_a(!1);var o=r.contextId,i=r.isMovementAllowed,a=(0,e.useRef)(null),s=(0,e.useRef)(null),l=n.children,u=n.droppableId,c=n.type,p=n.mode,d=n.direction,f=n.ignoreContainerClipping,h=n.isDropDisabled,m=n.isCombineEnabled,y=n.snapshot,g=n.useClone,v=n.updateViewportMaxScroll,b=n.getContainerForClone,w=Zi((function(){return a.current}),[]),_=Zi((function(e){a.current=e}),[]),E=(Zi((function(){return s.current}),[]),Zi((function(e){s.current=e}),[]));Ju();var D=Zi((function(){i()&&v({maxScroll:Yl()})}),[i,v]);!function(t){var n=(0,e.useRef)(null),r=Jc(Vu),o=Qu("droppable"),i=r.registry,a=r.marshal,s=Yu(t),l=Xi((function(){return{id:t.droppableId,type:t.type,mode:t.mode}}),[t.droppableId,t.mode,t.type]),u=(0,e.useRef)(l),c=Xi((function(){return fa((function(e,t){n.current||_a(!1);var r={x:e,y:t};a.updateDroppableScroll(l.id,r)}))}),[l.id,a]),p=Zi((function(){var e=n.current;return e&&e.env.closestScrollable?$c(e.env.closestScrollable):Na}),[]),d=Zi((function(){var e=p();c(e.x,e.y)}),[p,c]),f=Xi((function(){return ha(d)}),[d]),h=Zi((function(){var e=n.current,t=Yc(e);e&&t||_a(!1),e.scrollOptions.shouldPublishImmediately?d():f()}),[f,d]),m=Zi((function(e,t){n.current&&_a(!1);var o=s.current,i=o.getDroppableRef();i||_a(!1);var a=Wc(i),u={ref:i,descriptor:l,env:a,scrollOptions:t};n.current=u;var c=Gc({ref:i,descriptor:l,env:a,windowScroll:e,direction:o.direction,isDropDisabled:o.isDropDisabled,isCombineEnabled:o.isCombineEnabled,shouldClipSubject:!o.ignoreContainerClipping}),p=a.closestScrollable;return p&&(p.setAttribute(Nu.contextId,r.contextId),p.addEventListener("scroll",h,Kc(u.scrollOptions))),c}),[r.contextId,l,h,s]),y=Zi((function(){var e=n.current,t=Yc(e);return e&&t||_a(!1),$c(t)}),[]),g=Zi((function(){var e=n.current;e||_a(!1);var t=Yc(e);n.current=null,t&&(f.cancel(),t.removeAttribute(Nu.contextId),t.removeEventListener("scroll",h,Kc(e.scrollOptions)))}),[h,f]),v=Zi((function(e){var t=n.current;t||_a(!1);var r=Yc(t);r||_a(!1),r.scrollTop+=e.y,r.scrollLeft+=e.x}),[]),b=Xi((function(){return{getDimensionAndWatchScroll:m,getScrollWhileDragging:y,dragStopped:g,scroll:v}}),[g,m,y,v]),w=Xi((function(){return{uniqueId:o,descriptor:l,callbacks:b}}),[b,l,o]);Au((function(){return u.current=w.descriptor,i.droppable.register(w),function(){n.current&&g(),i.droppable.unregister(w)}}),[b,l,g,w,a,i.droppable]),Au((function(){n.current&&a.updateDroppableIsEnabled(u.current.id,!t.isDropDisabled)}),[t.isDropDisabled,a]),Au((function(){n.current&&a.updateDroppableIsCombineEnabled(u.current.id,t.isCombineEnabled)}),[t.isCombineEnabled,a])}({droppableId:u,type:c,mode:p,direction:d,isDropDisabled:h,isCombineEnabled:m,ignoreContainerClipping:f,getDroppableRef:w});var x=e.createElement(rp,{on:n.placeholder,shouldAnimate:n.shouldAnimatePlaceholder},(function(t){var n=t.onClose,r=t.data,i=t.animate;return e.createElement(tp,{placeholder:r,onClose:n,innerRef:E,animate:i,contextId:o,onTransitionEnd:D})})),S=Xi((function(){return{innerRef:_,placeholder:x,droppableProps:{"data-rbd-droppable-id":u,"data-rbd-droppable-context-id":o}}}),[o,u,x,_]),O=g?g.dragging.draggableId:null,I=Xi((function(){return{droppableId:u,type:c,isUsingCloneFor:O}}),[u,O,c]);return e.createElement(np.Provider,{value:I},l(S,y),function(){if(!g)return null;var n=g.dragging,r=g.render,o=e.createElement(gp,{draggableId:n.draggableId,index:n.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(function(e,t){return r(e,t,n)}));return t.createPortal(o,b())}())}));Ep.defaultProps=_p;var Dp=n(2392),xp=n.n(Dp);const Sp=e=>({type:Io,payload:e}),Op=e=>({type:So,payload:e}),Ip=e=>({type:ko,payload:e}),kp=e=>({type:Po,payload:e}),Pp=(e,t,n)=>({type:To,parent:e,destinationIndex:t,payload:n}),Tp=(e,t,n)=>({type:jo,parent:e,destinationIndex:t,payload:n}),Np=e=>({type:Ao,payload:e}),Cp=e=>({type:Lo,payload:e}),jp=(e,t)=>({type:Ro,payload:e,parent:t}),Ap=e=>({type:No,payload:e}),Lp=e=>({type:Co,payload:e}),Rp=e=>({type:Ho,payload:e}),zp=(e,t)=>({type:Wo,parent:e,payload:t}),Mp=(e,t)=>({type:Go,index:e,payload:t}),qp=e=>({type:Vo,payload:e}),Fp=e=>({type:Jo,direction:"up",payload:e}),Bp=e=>({type:Jo,direction:"down",payload:e}),Up=e=>({type:Xo,payload:e});var $p=n(9669),Hp=n.n($p),Wp=n(129),Gp=n.n(Wp);function Qp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vp(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Kp=`${LearnDashData.rest.root}${LearnDashData.rest.namespace}/${LearnDashData.rest.base.question}`,Jp=`${LearnDashData.rest.root}${LearnDashData.rest.namespace}/${LearnDashData.rest.base.lessons}`,Yp=`${LearnDashData.rest.root}${LearnDashData.rest.namespace}/${LearnDashData.rest.base.topic}`,Xp=`${LearnDashData.rest.root}${LearnDashData.rest.namespace}/${LearnDashData.rest.base.quiz}`,Zp={question:Kp,lesson:Jp,topic:Yp,quiz:Xp},ed=async(e,t)=>(await Hp().post(`${Kp}/${e}`,t,{headers:{"X-WP-Nonce":LearnDashData.rest.nonce}})).status,td=async function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=(e=>e.map((e=>J()(e,((e,t)=>"_"+t)))))(t);let o;if(n){const{points:e,maxPoints:n}=go(t);o={_points:e,_maxPoints:n,_answerData:r}}else o={_answerData:r};const i=await Hp().post(`${Kp}/${e}`,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qp(Object(n),!0).forEach((function(t){Vp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},o),{headers:{"X-WP-Nonce":LearnDashData.rest.nonce}});return i.status},nd=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return await Hp().post(LearnDashData.ajaxurl,Gp().stringify(e),t)},rd=async(e,t)=>200;function od(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function id(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?od(Object(n),!0).forEach((function(t){ad(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):od(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ad(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const sd=(e,t,n)=>{const r=Array.from(e),[o]=r.splice(t,1);return r.splice(n,0,o),r.filter((e=>void 0!==e))},ld=e=>e.map(((e,t)=>"section-heading"===e.type?id(id({},e),{},{order:t}):e)),ud=e=>e.filter((e=>"section-heading"===e.type)),cd=e=>{const{draggableId:t}=e,n=JSON.parse(t);ci.dispatch(Ap({currentDraggableEntity:n,currentDroppableEntity:null}))},pd=e=>{const{source:t,destination:n,draggableId:r}=e;if(!n)return!1;const o=JSON.parse(r),i=JSON.parse(t.droppableId),a=JSON.parse(n.droppableId),s=ci.getState(),l=Object.values(s.workspace.present.lessons),u=xp()(l,vo);if(i.ID===a.ID&&t.index!==n.index&&("lesson"===s.workspace.present.currentDraggableEntity.type||"sfwd-lessons"===s.workspace.present.currentDraggableEntity.type||"section-heading"===s.workspace.present.currentDraggableEntity.type)){const e=Object.values(s.workspace.present.lessons),r=sd(e,t.index,n.index),i=ld(r),a=ud(i);ci.dispatch(Sp(i)),ci.dispatch(Ip(a)),rd(LearnDashData.post_data.builder_post_id),"section-heading"!==s.workspace.present.currentDraggableEntity.type&&ci.dispatch(kp({activeLesson:o.ID}))}if("course-workspace-droppable"===a.ID&&"droppable-lesson"===i.ID&&("lesson"===s.workspace.present.currentDraggableEntity.type||"sfwd-lessons"===s.workspace.present.currentDraggableEntity.type)&&o.ID){const e=s.data.lessons.find((e=>e.ID===o.ID));e.index=n.index,ci.dispatch(Op(e))}if("topic"===o.type||"sfwd-topic"===o.type){const e=bo.getNodeByKey(l,parseInt(a.ID)),r=bo.getNodeByKey(u,parseInt(a.ID));if(e){const s=o;s&&(i.ID!==a.ID?("droppable-topic"!==i.ID&&ci.dispatch(qp({ID:parseInt(o.ID)})),ci.dispatch(Pp(parseInt(a.ID),n.index,s))):i.ID===a.ID&&t.index!==n.index&&e.tree[t.index].type===e.tree[n.index].type&&(e.tree=sd(e.tree,t.index,n.index),ci.dispatch(Sp(l))),r.ID&&!r.nodeData.parent&&ci.dispatch(kp({activeLesson:r.ID})))}}if("quiz"!==o.type&&"sfwd-quiz"!==o.type||"course-workspace-quiz-droppable"!==a.ID){if("quiz"===o.type||"sfwd-quiz"===o.type){const e=bo.getNodeByKey(l,parseInt(a.ID)),r=bo.getNodeByKey(u,parseInt(a.ID));if(e){const s=o;if(s){if(i.ID===a.ID&&t.index!==n.index){const o=r.tree.findIndex((e=>"quiz"===e.type||"sfwd-quiz"===e.type));if(-1!==o&&n.index<o-1)return!1;e.tree=sd(e.tree,t.index,n.index),ci.dispatch(Sp(l))}else if("course-workspace-quiz-droppable"===i.ID&&ci.dispatch(qp({ID:o.ID})),"lesson"!==a.type||"sfwd-lessons"!==a.type)i.ID!==a.ID&&(ci.dispatch((e=>({type:Yo,payload:e}))({ID:o.ID})),ci.dispatch(Tp(parseInt(a.ID),n.index,s)));else{let e=n.index;if(0<n.index){if("topic"===r.tree[n.index-1].type||"topic"===r.tree[n.index].type||"sfwd-topic"===r.tree[n.index-1].type||"sfwd-topic"===r.tree[n.index].type){const t=r.tree.findIndex((e=>"quiz"===e.type||"sfwd-quiz"===e.type));e=-1!==t?t:r.tree.length}}else 0!==n.index||!r.tree[n.index]||"topic"!==r.tree[n.index].type&&"sfwd-topic"!==r.tree[n.index].type||(e=1);ci.dispatch(Tp(parseInt(a.ID),e,s))}let u=e.ID;"lesson"!==e.type&&"sfwd-lessons"!==e.type&&(u=r.nodeData.ancestors[0]),ci.dispatch(kp({activeLesson:u}))}}}}else if(("quiz"===s.workspace.present.currentDraggableEntity.type||"sfwd-quiz"===s.workspace.present.currentDraggableEntity.type)&&o.ID)if(i.ID===a.ID&&t.index!==n.index){const e=Object.values(s.workspace.present.quizzes),r=sd(e,t.index,n.index);ci.dispatch({type:Qo,payload:r})}else"droppable-quiz"!==i.ID&&ci.dispatch(qp({ID:o.ID})),ci.dispatch(Mp(n.index,o));ci.dispatch(Lp({isDropDisabledLesson:null})),ci.dispatch(Ap({currentDraggableEntity:null}))},dd=e=>{const{draggableId:t,destination:n}=e;if(!n)return!1;const r=JSON.parse(t),o=JSON.parse(n.droppableId),i=n.index,a=ci.getState(),s=LearnDashData.questions_types_map;let l=[];l="sfwd-quiz"!==LearnDashData.post_data.builder_post_type?Object.values(a.workspace.present.lessons):Object.values(a.workspace.present.questions);const u=xp()(l,vo);if(!("quiz"!==r.type&&"sfwd-quiz"!==r.type||"lesson"!==o.type&&"sfwd-lessons"!==o.type)){const e=bo.getNodeByKey(u,parseInt(o.ID));!e.tree[i]||"topic"!==e.tree[i].type&&"sfwd-topic"!==e.tree[i].type?ci.dispatch(Lp({isDropDisabledLesson:null})):ci.dispatch(Lp({isDropDisabledLesson:e.ID}))}if("topic"===r.type||"sfwd-topic"===r.type){const e=bo.getNodeByKey(u,parseInt(o.ID));!e.tree[i]||"quiz"!==e.tree[i].type&&"sfwd-quiz"!==e.tree[i].type?ci.dispatch(Lp({isDropDisabledLesson:null})):ci.dispatch(Lp({isDropDisabledLesson:e.ID}))}if("answer"===r.type){const e=bo.getNodeByKey(u,parseInt(o.ID));e.answers[s[e.question_type]][i]&&"answer"===e.answers[s[e.question_type]][i].type?ci.dispatch(Lp({isDropDisabledLesson:e.ID})):ci.dispatch(Lp({isDropDisabledLesson:null}))}return!1},fd=e=>{let t=0,n=0;if("sfwd-question"===e.type){const r=LearnDashData.questions_types_map,o=e.answers&&e.answers[r[e.question_type]];o.map((e=>{""!==e.answer&&t++})),"single"===e.question_type||"multiple"===e.question_type?o.map((e=>{!0===e.correct&&n++})):n=1}return{validAnswersCount:t,correctAnswersCount:n}};var hd=n(4184),md=n.n(hd);const yd=e=>({type:Mo,payload:e});function gd(){return gd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gd.apply(this,arguments)}function vd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vd(Object(n),!0).forEach((function(t){wd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wd(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class _d extends e.Component{constructor(e){super(e),this.state={checkedItems:[],searchString:"",mode:"latest",list:this.props.data[this.props.content],search_list:[],search_pagination:[],latest_list:[],all_list:[],all_list_pagination:[]},this.filterListDebounced=Eo(this.filterList,500),this.filterList=this.filterList.bind(this),this.handleInputChange=this.handleInputChange.bind(this),this.getRecentlyAddedTopicCount=this.getRecentlyAddedTopicCount.bind(this)}componentDidMount(){this.latestQuery()}componentDidUpdate(e){e!==this.props&&this.setState({list:this.props.data[e.content]})}toggleCheckboxChange(e,t){const{target:n}=t,{name:r,checked:o}=n;this.setState((t=>({[r]:o?[...t[r],e]:t[r].filter((t=>t!==e))})))}handleInputChange(e){const t=e.target.value.toLowerCase();0!==t.length?(this.setState({searchString:t,mode:"search"}),this.filterListDebounced(t)):(this.setState({searchString:"",mode:"latest"}),this.props.initData({field:this.props.content,data:this.state.all_list}))}getBuilderNonce(){const e=document.getElementById("learndash_builder_nonce");let t;return e&&(t=e.value),t}filterList(e){this.searchQuery(e)}async searchQuery(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=learndash_builder_assets[LearnDashData.post_data.builder_post_type].post_data;n.builder_nonce=this.getBuilderNonce();const r={action:"learndash_builder_selector_search",builder_data:n,builder_query_args:{post_type:LearnDashData.sfwdMap[this.props.type],format:"json",s:e,posts_per_page:LearnDashData.posts_per_page,orderby:"title",order:"ASC",paged:t}},o=await nd(r);if(200===o.status){let e=o.data.selector_rows;1!==t&&(e=wo(this.props.data[this.props.content],o.data.selector_rows)),this.props.initData({field:this.props.content,data:e}),this.setState({search_list:e,search_pagination:o.data.selector_pager})}}async allQuery(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;const t=learndash_builder_assets[LearnDashData.post_data.builder_post_type].post_data;t.builder_nonce=this.getBuilderNonce();const n=this.getEntitiesInBuilder(),r={action:"learndash_builder_selector_pager",builder_data:t,builder_query_args:{post_type:LearnDashData.sfwdMap[this.props.type],orderby:"title",order:"ASC",posts_per_page:LearnDashData.posts_per_page,paged:e,format:"json",post__not_in:n}},o=await nd(r);if(200===o.status){let t=o.data.selector_rows;1!==e&&(t=wo(this.props.data[this.props.content],o.data.selector_rows)),this.props.initData({field:this.props.content,data:t}),this.setState({all_list:t,all_list_pagination:o.data.selector_pager})}}getRecentlyAddedTopicCount(e){let t=0;return e.forEach((e=>{t+=e.tree.length})),t}async latestQuery(){const e=learndash_builder_assets[LearnDashData.post_data.builder_post_type].post_data;e.builder_nonce=this.getBuilderNonce();const t=this.getEntitiesInBuilder(),n={action:"learndash_builder_selector_pager",builder_data:e,builder_query_args:{post_type:LearnDashData.sfwdMap[this.props.type],orderby:"post_date",order:"DESC",posts_per_page:LearnDashData.posts_per_page,paged:1,format:"json",post__not_in:t}},r=await nd(n);if(200===r.status){const e=r.data.selector_rows;this.props.initData({field:this.props.content,data:e}),this.setState({latest_list:e})}}loadMore(){"search"===this.state.mode?this.searchQuery(this.state.searchString,this.state.search_pagination.next_page):"all"===this.state.mode&&this.allQuery(this.state.all_list_pagination.next_page)}addEntity(e,t){t.preventDefault();const{type:n,addLessonEntity:r,addTopicEntity:o,addQuizEntity:i,addQuestionEntity:a,addFinalQuizEntity:s,workspace:l}=this.props;"lesson"===n?r(e):"topic"===n?o(e):"quiz"===n?null===l.present.activeLesson&&"sfwd-quiz"!==LearnDashData.post_data.builder_post_type?s(l.present.quizzes.length,e):i(e):"question"===n&&a(e)}canAddTopic(e){const{present:t}=this.props.workspace;let n=[];for(const r of t.lessons)if(n=r.tree.filter((t=>t.ID===e.ID)),0<n.length)break;return 0===n.length}canAddQuiz(e){const{present:t}=this.props.workspace,n=Object.values(t.quizzes);if(bo.getNodeByKey(n,parseInt(e)))return!1;let r=[];for(const n of t.lessons){if(r=n.tree.filter((t=>"sfwd-quiz"===t.type&&e===t.ID)),0<r.length)break;const t=n.tree.filter((e=>"sfwd-topic"===e.type));for(const n of t)if(r=n.tree.filter((t=>e===t.ID)),0<r.length)break;if(0<r.length)break}return 0===r.length}canAddEntity(e){const{present:t}=this.props.workspace;let n=null;n="sfwd-quiz"!==LearnDashData.post_data.builder_post_type?Object.values(t.lessons):Object.values(t.questions);const r=bo.getNodeByKey(n,parseInt(e));return"sfwd-quiz"!==LearnDashData.post_data.builder_post_type&&"lessons"===this.props.content?null===r:"sfwd-quiz"===LearnDashData.post_data.builder_post_type||"quizzes"!==this.props.content||r?"sfwd-quiz"!==LearnDashData.post_data.builder_post_type&&"topics"===this.props.content&&r?this.canAddTopic(r):null===r:this.canAddQuiz(e)}getEntitiesInBuilder(){const{present:e}=this.props.workspace;let t=[];if("sfwd-quiz"!==LearnDashData.post_data.builder_post_type)if("lessons"===this.props.content)t=Object.values(e.lessons);else if("topics"===this.props.content)for(const n of e.lessons){const e=n.tree.reduce(((e,t)=>("sfwd-topic"===t.type&&e.push(t),e)),[]);t.push(...e)}else"quizzes"===this.props.content&&(t=[...e.quizzes],e.lessons.forEach((e=>{t=[...t,...e.tree.filter((e=>"sfwd-quiz"===e.type))],e.tree.forEach((e=>{const n=e.tree||[];t=[...t,...n.filter((e=>"sfwd-quiz"===e.type))]}))})));else t=Object.values(e.questions);return t.map((e=>e.ID))}showAllOrNoElementAddedText(e,t,n,r){return"lesson"===e?0===t?`<div className="editor-block-inspector__no-blocks"><p>${LearnDashData.i18n.start_adding_element_labels[e]}.</p></div>`:`<div className="editor-block-inspector__no-blocks"><p>${LearnDashData.i18n.all_elements_added_labels[e]}</p></div>`:"quiz"===e?0===n?`<div className="editor-block-inspector__no-blocks"><p>${LearnDashData.i18n.start_adding_element_labels[e]}.</p></div>`:`<div className="editor-block-inspector__no-blocks"><p>${LearnDashData.i18n.all_elements_added_labels[e]}</p></div>`:"topic"===e?0===this.getRecentlyAddedTopicCount(this.props.workspace.present.lessons)?`<div className="editor-block-inspector__no-blocks"><p>${LearnDashData.i18n.start_adding_element_labels[e]}.</p></div>`:`<div className="editor-block-inspector__no-blocks"><p>${LearnDashData.i18n.all_elements_added_labels[e]}</p></div>`:"question"===e?0===r?`<div className="editor-block-inspector__no-blocks"><p>${LearnDashData.i18n.start_adding_element_labels[e]}.</p></div>`:`<div className="editor-block-inspector__no-blocks"><p>${LearnDashData.i18n.all_elements_added_labels[e]}</p></div>`:void 0}maybeShowForm(){const{latest_list:e,mode:t,all_list:n,list:r}=this.state;return"latest"===t&&e&&0!==e.length||r&&0!==r.length||n&&0!==n.length||"search"===t&&r&&0!==r.length||e&&0!==e.length||"all"===t&&n&&0!==n.length}render(){const{searchString:t,latest_list:n,mode:r,list:o,checkedItems:i,search_pagination:a,all_list_pagination:s}=this.state,{type:l,workspace:u}=this.props,c=u.present.lessons.filter((e=>"section-heading"!==e.type)).length,p=u.present.quizzes.length,d=u.present.questions.length;return 0===c&&"topic"===l&&"sfwd-quiz"!==LearnDashData.post_data.builder_post_type?e.createElement("div",{className:"editor-block-inspector__no-blocks"},e.createElement("p",null,LearnDashData.labels["start-adding-lesson"])):e.createElement("div",{className:"ld__builder-sidebar-widget"},this.maybeShowForm()&&e.createElement("form",{className:"ld__builder-sidebar-form",onSubmit:e=>e.preventDefault()},e.createElement("input",{type:"text",name:"searchString",placeholder:`${LearnDashData.i18n.search_element_labels[l]}`,value:t,onChange:this.handleInputChange}),e.createElement("div",{className:"ld__builder-sidebar-header"},e.createElement("button",{onClick:()=>{this.setState({mode:"latest",searchString:""}),this.latestQuery()},className:md()({"ld__builder-sidebar-header-active":"latest"===r})},`${LearnDashData.i18n.recent}`),e.createElement("button",{onClick:()=>{this.setState({mode:"all",searchString:""}),this.allQuery()},className:md()({"ld__builder-sidebar-header-active":"all"===r})},`${LearnDashData.i18n.view_all}`))),e.createElement(Ep,{droppableId:JSON.stringify({ID:`droppable-${l}`,dnd:"droppable"}),isDropDisabled:!0},(t=>e.createElement("ul",{ref:t.innerRef,className:md()({"-recently-edited":"latest"===r})},o&&o.map(((t,n)=>this.canAddEntity(t.ID)&&e.createElement(vp,{draggableId:JSON.stringify(bd({},t)),index:n,key:t.ID},((n,r)=>e.createElement("li",gd({key:`${l}-${t.ID}`,ref:n.innerRef},n.draggableProps,n.dragHandleProps,{className:md()({"-is-dragging":r.isDragging})}),e.createElement("div",{className:"ld__builder-sidebar-item"},e.createElement("div",null,e.createElement("input",{id:`${l}-${t.ID}`,type:"checkbox",className:"components-checkbox-control__input",onChange:this.toggleCheckboxChange.bind(this,t),name:"checkedItems",value:t,checked:i.includes(t)}),e.createElement("label",{htmlFor:`${this.props.type}-${t.ID}`,dangerouslySetInnerHTML:{__html:t.post_title}}),t.post_status&&"publish"!==t.post_status&&LearnDashData.post_statuses[t.post_status]&&e.createElement("span",{className:`ld-node-status ld-node-status-${t.post_status}`},` – ${LearnDashData.post_statuses[t.post_status]} `)),e.createElement("button",{onClick:e=>{this.addEntity.call(this,t,e),this.setState({checkedItems:[]})},className:"is-button is-primary components-button button button-primary"},`${LearnDashData.i18n.add_element}`))))))),"search"===r&&o&&0===o.length&&e.createElement("div",null,`${LearnDashData.i18n.nothing_found}`),!this.maybeShowForm()&&e.createElement("span",{dangerouslySetInnerHTML:{__html:this.showAllOrNoElementAddedText(l,c,p,d)}}),"latest"===r&&n&&0!==n.length&&e.createElement("button",{href:"#",className:"ld__builder-sidebar-refresh",onClick:e=>{e.preventDefault(),this.latestQuery()}},`${LearnDashData.i18n.refresh}`),("search"===r&&a.has_next||"all"===r&&s.has_next)&&e.createElement("button",{href:"#",className:"ld__builder-sidebar-more",onClick:e=>{e.preventDefault(),this.loadMore()}},`${LearnDashData.i18n.load_more}`),t.placeholder))),2<=i.length&&e.createElement("button",{disabled:!i.length,className:"is-primary",onClick:e=>{i.map((t=>this.addEntity.call(this,t,e))),this.setState({checkedItems:[]})}},`${LearnDashData.i18n.add_selected}`))}}_d.propTypes={title:di().string,content:di().string,data:di().object,type:di().string,workspace:di().object,initData:di().func,addLessonEntity:di().func,addTopicEntity:di().func,addQuizEntity:di().func,addQuestionEntity:di().func,addFinalQuizEntity:di().func};const Ed=N((e=>bd({},e)),(e=>({addLessonEntity:t=>e(Op(t)),addTopicEntity:t=>e(Pp(null,null,t)),addQuizEntity:t=>e(Tp(null,null,t)),addQuestionEntity:t=>e(Cp(t)),addFinalQuizEntity:(t,n)=>e(Mp(t,n)),initData:t=>e({type:xo,payload:t})})))(_d);class Dd extends e.Component{render(){return t.createPortal(e.createElement(Ed,{title:this.props.title,content:this.props.content,type:this.props.type}),document.getElementById(this.props.el))}}Dd.propTypes={el:di().string,title:di().string,content:di().string,type:di().string};const xd=Dd,Sd=t=>{let{icon:n,stroke:r}=t;return"plus"===n?e.createElement("svg",{width:"256",height:"256",viewBox:"0 0 256 256",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M185.066 128c0 3.534-2.866 6-6.4 6H134v44.666c0 3.534-2.467 6.399-6 6.399-3.534 0-6-2.865-6-6.399V134H77.332c-3.535 0-6.4-2.466-6.4-6s2.866-6 6.4-6H122V77.331c0-3.534 2.466-6.4 6-6.4 3.533 0 6 2.866 6 6.4V122h44.666c3.534 0 6.4 2.466 6.4 6zM256 128C256 57.42 198.58 0 128 0S0 57.42 0 128s57.42 128 128 128 128-57.42 128-128zm-12.8 0c0 63.521-51.679 115.2-115.2 115.2-63.522 0-115.2-51.679-115.2-115.2C12.8 64.478 64.478 12.8 128 12.8c63.521 0 115.2 51.678 115.2 115.2z",fillRule:"nonzero"})):"drag"===n?e.createElement("svg",{width:"10",height:"6",xmlns:"http://www.w3.org/2000/svg",viewBox:"4 6 10 6",role:"img","aria-hidden":"true",focusable:"false"},e.createElement("path",{d:"M13,8c0.6,0,1-0.4,1-1s-0.4-1-1-1s-1,0.4-1,1S12.4,8,13,8z M5,6C4.4,6,4,6.4,4,7s0.4,1,1,1s1-0.4,1-1S5.6,6,5,6z M5,10 c-0.6,0-1,0.4-1,1s0.4,1,1,1s1-0.4,1-1S5.6,10,5,10z M13,10c-0.6,0-1,0.4-1,1s0.4,1,1,1s1-0.4,1-1S13.6,10,13,10z M9,6 C8.4,6,8,6.4,8,7s0.4,1,1,1s1-0.4,1-1S9.6,6,9,6z M9,10c-0.6,0-1,0.4-1,1s0.4,1,1,1s1-0.4,1-1S9.6,10,9,10z"})):"chevron-up"===n?e.createElement("svg",{width:"12",height:"7",xmlns:"http://www.w3.org/2000/svg",viewBox:"3.3 4.5 11.4 7",role:"img","aria-hidden":"true",focusable:"false"},e.createElement("polygon",{points:"9,4.5 3.3,10.1 4.8,11.5 9,7.3 13.2,11.5 14.7,10.1 "})):"chevron-down"===n?e.createElement("svg",{width:"12",height:"7",xmlns:"http://www.w3.org/2000/svg",viewBox:"3.3 6.5 11.4 7",role:"img","aria-hidden":"true",focusable:"false"},e.createElement("polygon",{points:"9,13.5 14.7,7.9 13.2,6.5 9,10.7 4.8,6.5 3.3,7.9 "})):"chevron-right"===n?e.createElement("svg",{focusable:"false",xmlns:"http://www.w3.org/2000/svg",width:"7",height:"11.4",viewBox:"5.8 2.3 7 11.4"},e.createElement("polygon",{points:"12.8,8 7.2,2.3 5.8,3.8 10,8 5.8,12.2 7.2,13.7 "})):"pencil"===n?e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",width:"16",height:"16",className:"edit-svg"},e.createElement("rect",{x:"0",fill:"none",width:"20",height:"20"}),e.createElement("g",null,e.createElement("path",{d:"M13.89 3.39l2.71 2.72c.46.46.42 1.24.03 1.64l-8.01 8.02-5.56 1.16 1.16-5.58s7.6-7.63 7.99-8.03c.39-.39 1.22-.39 1.68.07zm-2.73 2.79l-5.59 5.61 1.11 1.11 5.54-5.65zm-2.97 8.23l5.58-5.6-1.07-1.08-5.59 5.6z"}))):"undo"===n?e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},e.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),e.createElement("path",{d:"M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"})):"dropdown"===n?e.createElement("svg",{width:"11",height:"8",viewBox:"0 0 14 8",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M1 1l6 6 6-6",stroke:r||"#006799",strokeWidth:"2",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"})):"warning"===n?e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0",y:"0",width:"554.2",height:"554.199",viewBox:"0 0 554.2 554.199"},e.createElement("title",null,`${LearnDashData.i18n.question_data_invalid}`),e.createElement("path",{d:"M538.5,386.199L356.5,70.8c-16.4-28.4-46.7-45.9-79.501-45.9c-32.8,0-63.1,17.5-79.5,45.9L12.3,391.6 c-16.4,28.4-16.4,63.4,0,91.8C28.7,511.8,59,529.3,91.8,529.3H462.2c0.101,0,0.2,0,0.2,0c50.7,0,91.8-41.101,91.8-91.8 C554.2,418.5,548.4,400.8,538.5,386.199z M316.3,416.899c0,21.7-16.7,38.3-39.2,38.3s-39.2-16.6-39.2-38.3V416 c0-21.601,16.7-38.301,39.2-38.301S316.3,394.3,316.3,416V416.899z M317.2,158.7L297.8,328.1c-1.3,12.2-9.4,19.8-20.7,19.8 s-19.4-7.7-20.7-19.8L237,158.6c-1.3-13.1,5.801-23,18-23H299.1C311.3,135.7,318.5,145.6,317.2,158.7z"})):null};Sd.propTypes={icon:di().string,stroke:di().string};const Od=Sd,Id=t=>{let{undoActionHandler:n}=t;return e.createElement("button",{onClick:n,className:"ld-undo-button"},e.createElement(Od,{icon:"undo"}),`${LearnDashData.i18n.undo}`)};Id.propTypes={undoActionHandler:di().func};const kd=Id,Pd=t=>{let{workspace:n,toggleExpandAll:r}=t;return e.createElement("div",{className:md()({"ld-expand-collapse-all":!0,"-collapsed":!n.present.expandAll})},e.createElement("button",{className:"ld-expand-collapse-all-button",onClick:()=>{r()}},n.present.expandAll?LearnDashData.i18n.collapse:LearnDashData.i18n.expand,e.createElement("span",null,e.createElement(Od,{icon:"dropdown",stroke:"#0073aa"}))))};Pd.propTypes={workspace:di().shape({present:di().object}),toggleExpandAll:di().func};const Td=N((e=>({workspace:e.workspace})),(e=>({toggleExpandAll:()=>e(Rp())})))(Pd),Nd=t=>{let{totalEntities:n,type:r,singular:o,plural:i,showUndo:a,onUndo:s,workspace:l}=t;return e.createElement("header",{className:"ld-entity-builder-header"},e.createElement("div",null,e.createElement("h2",null,n," ",1===n?o:i," ",`${LearnDashData.i18n.in_this} ${r}`)),a&&e.createElement(kd,{undoActionHandler:e=>{e.preventDefault(),s(),"sfwd-quiz"!==LearnDashData.post_data.builder_post_type&&0<l.past[l.past.length-1].sections.length&&l.past[l.past.length-1].sections!==l.present.sections&&rd(LearnDashData.post_data.builder_post_id,l.past[l.past.length-1].sections)}}),0!==n&&e.createElement(Td,null))};Nd.propTypes={workspace:di().shape({present:di().object,past:di().array}),totalEntities:di().number,type:di().string,singular:di().string,plural:di().string,onUndo:di().func,showUndo:di().bool};const Cd=N((e=>({workspace:e.workspace})),(e=>({onUndo:()=>e(Do.zF.undo())})))(Nd);function jd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ad(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jd(Object(n),!0).forEach((function(t){Ld(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ld(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Rd extends e.Component{constructor(e){super(e),this.signal=Hp().CancelToken.source(),this.state={showForm:!1,showPointsForm:!1,is_loading:!1,error:null,value:"",type:this.props.type,points:this.props.node.points?parseInt(this.props.node.points,10):0,points_temp:this.props.node.points?parseInt(this.props.node.points,10):0},this.handleSelectChange=this.handleSelectChange.bind(this),this.handleChangePoints=this.handleChangePoints.bind(this),this.handleShowPointsForm=this.handleShowPointsForm.bind(this),this.handleSavePoints=this.handleSavePoints.bind(this),this.moveEntityUp=this.moveEntityUp.bind(this),this.moveEntityDown=this.moveEntityDown.bind(this)}componentWillUnmount(){this.signal.cancel()}componentDidMount(){this.setState({value:this.props.node.post_title})}async handleSubmit(e){e.preventDefault();const{value:t}=this.state,{workspace:n,node:r,updateWorkspaceNodeTitle:o,updateNodeTitle:i}=this.props,a=document.getElementById("learndash_builder_nonce");let s;a&&(s=a.value);const l=learndash_builder_assets[LearnDashData.post_data.builder_post_type].post_data;if(l.builder_nonce=s,t){if(this.setState({is_loading:!0,error:null}),"section-heading"!==r.type){const e={action:"learndash_builder_selector_step_title",builder_data:l,builder_query_args:{new_title:t,post_id:r.ID,post_type:r.type}};(await nd(e,{cancelToken:this.signal.token})).data.status?(o({ID:r.ID,post_title:t}),i({ID:r.ID,post_title:t,type:r.type}),this.setState({showForm:!1})):this.setState({error:`${LearnDashData.i18n.error}`})}else{(0<n.present.sections.length?n.present.sections:[]).map((e=>e.ID===r.ID?Ad(Ad({},e),{},{post_title:t}):e));rd(LearnDashData.post_data.builder_post_id),o({ID:r.ID,post_title:t}),this.setState({showForm:!1})}this.setState({is_loading:!1})}}handleChange(e){this.setState({value:e.target.value})}handleShowPointsForm(){this.setState((e=>{let{showPointsForm:t}=e;return{showPointsForm:!t}}))}async handleSelectChange(e){const{value:t}=e.target,{points:n}=this.state,{node:r,updateQuestionType:o}=this.props;let i="";const a="assessment_answer"===t;this.setState({showPointsForm:!1});const s=await ed(r.ID,{_answerType:t,_answerPointsActivated:a});if("essay"===t||"free_answer"===t||"cloze_answer"===t||"assessment_answer"===t){const e={points:n},o=Ad(Ad({},r.answers[LearnDashData.questions_types_map[t]][0]),e);r.answers[LearnDashData.questions_types_map[t]][0]=o;const a=r.answers[LearnDashData.questions_types_map[t]];i=await td(r.ID,a)}200!==s&&200!==i||o(Ad(Ad({},r),{},{question_type:t,points:n}))}async handleSavePoints(e){e.preventDefault();const{points:t,points_temp:n}=this.state,{node:r,updateQuestionType:o}=this.props;let i="";const a=isNaN(n)?t:n;if(this.setState({showPointsForm:!1,points:parseInt(a,10),points_temp:parseInt(a,10)}),0<=t){const e=await ed(r.ID,{_points:parseInt(a,10)});if("essay"===r.question_type||"free_answer"===r.question_type||"cloze_answer"===r.question_type||"assessment_answer"===r.question_type){const e={points:parseInt(a,10)},t=Ad(Ad({},r.answers[LearnDashData.questions_types_map[r.question_type]][0]),e);r.answers[LearnDashData.questions_types_map[r.question_type]][0]=t;const n=r.answers[LearnDashData.questions_types_map[r.question_type]];i=await td(r.ID,n)}200!==e&&200!==i||o(Ad(Ad({},r),{},{points:parseInt(a,10)}))}}handleChangePoints(e){const{value:t}=e.target;this.setState({points_temp:t})}moveEntityUp(e){const{node:t,moveUp:n,workspace:r,index:o,updateSectionHeadings:i}=this.props;if(e.preventDefault(),n(t.ID),("sfwd-lessons"===t.type||"section-heading"===t.type)&&0<r.present.sections.length){const e=sd(r.present.lessons,o,parseInt(o-1,10)),t=ld(e),n=ud(t);i(n),rd(LearnDashData.post_data.builder_post_id)}}moveEntityDown(e){const{node:t,moveDown:n,workspace:r,index:o,updateSectionHeadings:i}=this.props;if(e.preventDefault(),n(t.ID),("sfwd-lessons"===t.type||"section-heading"===t.type)&&0<r.present.sections.length){const e=sd(r.present.lessons,o,parseInt(o+1,10)),t=ld(e),n=ud(t);i(n),rd(LearnDashData.post_data.builder_post_id)}}maybeShowToggle(e){return!(!e||!e.type||"sfwd-quiz"===e.type||"section-heading"===e.type)&&!!("sfwd-question"!==e.type||"sfwd-question"===e.type&&e.edit_link)}render(){const{showForm:t,showPointsForm:n,value:r,is_loading:o,error:i,points:a,points_temp:s}=this.state,{node:l,className:u,data:c,provided:p,expanded:d,removeEntity:f,removeSectionHeadingEntity:h,toggleNode:m,type:y,updateSectionHeadings:g}=this.props,v=fd(l);return e.createElement("div",{className:"ld-node-header"},e.createElement("div",{className:"ld-node-header__order"},("sfwd-lessons"===l.type||"sfwd-question"===l.type||"section-heading"===l.type)&&e.createElement("button",{onClick:this.moveEntityUp,"aria-label":`${LearnDashData.i18n.move_up}`},e.createElement(Od,{icon:"chevron-up"})),e.createElement("span",{className:"ld-node-header__drag-handle"},e.createElement("span",p.dragHandleProps,e.createElement(Od,{icon:"drag"}))),("sfwd-lessons"===l.type||"sfwd-question"===l.type||"section-heading"===l.type)&&e.createElement("button",{onClick:this.moveEntityDown,"aria-label":`${LearnDashData.i18n.move_down}`},e.createElement(Od,{icon:"chevron-down"}))),"section-heading"!==l.type&&e.createElement("span",{className:`${u} ${l.type}`},c.labels[l.type].charAt(0)),e.createElement("h3",null,!t&&!l.edit_link&&"section-heading"!==l.type&&e.createElement("span",null,e.createElement("span",{dangerouslySetInnerHTML:{__html:l.post_title}})),!t&&(!l.edit_link&&"section-heading"===l.type||l.edit_link)&&e.createElement("span",null,e.createElement("button",{className:"ld-button-reset",onClick:e=>{e.preventDefault(),this.setState({showForm:!0})}},e.createElement("span",{dangerouslySetInnerHTML:{__html:l.post_title}}),l.post_status&&"publish"!==l.post_status&&LearnDashData.post_statuses[l.post_status]&&e.createElement("span",{className:`ld-node-status ld-node-status-${l.post_status}`},` – ${LearnDashData.post_statuses[l.post_status]} `),l.sample_lesson&&"false"!==l.sample_lesson&&e.createElement("span",{className:"ld-node-status ld-node-sample-lesson"}," - Sample"),l.tree&&0<l.tree.length?e.createElement("span",{className:"ld-node-header__counter"},` (${l.tree.length})`):"",e.createElement("span",{className:"row-actions"},e.createElement("span",{className:"edit"},e.createElement(Od,{icon:"pencil"}),e.createElement("span",{className:"screen-reader-text"},`${LearnDashData.i18n.rename}`))))),t&&e.createElement("div",null,e.createElement("form",{onSubmit:e=>{this.handleSubmit(e)}},e.createElement("input",{type:"text",value:r,placeholder:`${LearnDashData.i18n.new_element_labels[y]}`,onChange:e=>{this.handleChange(e)}}),e.createElement("input",{type:"submit",value:`${LearnDashData.i18n.save}`,className:"is-button is-primary components-button ld__builder--new-entity-button"}),e.createElement("input",{type:"button",onClick:e=>{e.preventDefault(),this.setState({showForm:!1})},value:`${LearnDashData.i18n.cancel}`,className:"is-button components-button is-default ld__builder--new-entity-button"}),o&&e.createElement("span",{className:"ld__builder--form-notice"},`${LearnDashData.i18n.please_wait}`),i&&e.createElement("span",{className:"ld__builder--form-error"},i))),"sfwd-question"===l.type&&"essay"!==l.question_type&&(""===l.post_content||0===v.validAnswersCount||0===v.correctAnswersCount)&&e.createElement("button",{className:"ld-button-reset warning-expand",onClick:m},e.createElement("div",{className:"warning-icon -header"},e.createElement(Od,{icon:"warning"})),""===l.post_content&&e.createElement("span",{className:"screen-reader-text"},`${LearnDashData.i18n.question_empty}`),0===v.validAnswersCount&&e.createElement("span",{className:"screen-reader-text"},`${LearnDashData.i18n.answer_missing}`),0===v.correctAnswersCount&&e.createElement("span",{className:"screen-reader-text"},`${LearnDashData.i18n.correct_answer_missing}`))),!t&&e.createElement("div",{className:"row-actions -right"},"section-heading"!==l.type&&l.edit_link&&e.createElement("span",{className:"edit"},e.createElement("a",{href:l.edit_link.replace(/&/g,"&")},`${LearnDashData.i18n.edit}`)," ","|"," "),e.createElement("span",{className:"trash"},e.createElement("button",{className:"submitdelete",onClick:()=>{if("section-heading"===l.type){const e=(0<this.props.workspace.present.sections.length?this.props.workspace.present.sections:[]).filter((e=>e.ID!==l.ID));g(e),rd(LearnDashData.post_data.builder_post_id),h(l.ID)}else f(l.ID)}},`${LearnDashData.i18n.remove}`))),"sfwd-quiz"===LearnDashData.post_data.builder_post_type&&0<=a&&!d&&e.createElement("div",null,e.createElement("span",{dangerouslySetInnerHTML:{__html:LearnDashData.labels.questions_types[l.question_type]}}),": ",a),"sfwd-quiz"===LearnDashData.post_data.builder_post_type&&d&&e.createElement("div",{className:"ld-node-header__quiz-actions"},e.createElement("select",{className:"select-question-type",name:"question_type",onChange:this.handleSelectChange,defaultValue:l.question_type},Object.entries(LearnDashData.labels.questions_types).map(((t,n)=>e.createElement("option",{key:`type-${n}`,value:t[0],dangerouslySetInnerHTML:{__html:t[1]}})))),LearnDashData.labels.points&&""!==a&&e.createElement("span",null,!n&&"assessment_answer"!==l.question_type&&e.createElement("button",{onClick:this.handleShowPointsForm,className:"ld-node-header__points-form-toggle ld-button-reset"},`${a} `,1===parseInt(a,10)?LearnDashData.labels.points.singular:LearnDashData.labels.points.plural,e.createElement(Od,{icon:"pencil"})),!n&&"assessment_answer"===l.question_type&&e.createElement("span",null,`${a} `,1===parseInt(a,10)?LearnDashData.labels.points.singular:LearnDashData.labels.points.plural),n&&e.createElement("span",null,e.createElement("form",{onSubmit:this.handleSavePoints,className:"ld-node-header__points-form"},e.createElement("input",{type:"number",min:"0",name:"points",value:s,onChange:this.handleChangePoints,className:"ld-question-points"}),1===parseInt(a,10)?LearnDashData.labels.points.singular:LearnDashData.labels.points.plural,e.createElement("input",{type:"submit",className:"is-button is-primary",value:`${LearnDashData.i18n.save}`}),e.createElement("input",{type:"button",onClick:e=>{e.preventDefault(),this.setState({showPointsForm:!1,points_temp:a})},value:`${LearnDashData.i18n.cancel}`,className:"is-button components-button is-default"}))))),this.maybeShowToggle(l)&&e.createElement("button",{className:md()({"ld-button-reset":!0,toggle:!0,"-expanded":d}),onClick:m},e.createElement(Od,{icon:"dropdown",stroke:"#0073aa"})))}}Rd.propTypes={workspace:di().shape({present:di().object}),provided:di().object,toggleNode:di().func,node:di().shape({ID:di().number,post_title:di().string,tree:di().array,type:di().string,points:di().oneOfType([di().string,di().number])}),className:di().string,type:di().string,expanded:di().bool,data:di().object,index:di().number,moveUp:di().func,moveDown:di().func,removeEntity:di().func,removeSectionHeadingEntity:di().func,updateWorkspaceNodeTitle:di().func,updateNodeTitle:di().func,updateQuestionType:di().func,updateSectionHeadings:di().func};const zd=N((e=>Ad({},e)),(e=>({moveUp:t=>e(Fp({ID:t})),moveDown:t=>e(Bp({ID:t})),removeEntity:t=>e(qp({ID:t})),removeSectionHeadingEntity:t=>e({type:Ko,payload:{ID:t}}),updateWorkspaceNodeTitle:t=>e({type:Uo,payload:t}),updateNodeTitle:t=>e({type:$o,payload:t}),updateQuestionType:t=>e(Up(t)),updateSectionHeadings:t=>e(Ip(t))})))(Rd);function Md(){return Md=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Md.apply(this,arguments)}function qd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qd(Object(n),!0).forEach((function(t){Bd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Bd(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ud=t=>{let{node:n,indexLesson:r,index:o}=t;return e.createElement(vp,{draggableId:JSON.stringify(Fd({},n)),index:o,key:n.ID},(t=>e.createElement("div",Md({key:n.ID,ref:t.innerRef},t.draggableProps,{className:md()({"ld__builder--grandchild-item":!0})}),e.createElement(zd,{node:n,provided:t,expanded:!0,className:md()({"ld__builder-row-type":!0,"-grand-child":!0}),indexLesson:r,index:o,toggleNode:e=>{e.preventDefault()}}))))};Ud.propTypes={node:di().object,index:di().number,indexLesson:di().number};const $d=N((e=>Fd({},e)),(()=>({})))(Ud);function Hd(){return Hd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hd.apply(this,arguments)}function Wd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wd(Object(n),!0).forEach((function(t){Qd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Qd(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Vd extends e.Component{constructor(e){super(e),this.state={expanded:this.props.node.expanded,isDropDisabled:!0,isDragDisabled:!1,workspace:this.props.workspace.present}}static getDerivedStateFromProps(e,t){const n=e.workspace.present,r=t.workspace,o={workspace:n};let i=!0,a=!1;return n.expandAll!==r.expandAll&&(o.expanded=n.expandAll),n.currentDraggableEntity!==t.currentDraggableEntity&&n.currentDraggableEntity&&("quiz"!==n.currentDraggableEntity.type&&"sfwd-quiz"!==n.currentDraggableEntity.type||(i=!1),"quiz"===n.currentDraggableEntity.type||"sfwd-quiz"===n.currentDraggableEntity.type?"topic"!==e.node.type&&"sfwd-topic"!==e.node.type||(a=!0):"topic"!==n.currentDraggableEntity.type&&"sfwd-topic"!==n.currentDraggableEntity.type||"quiz"!==e.node.type&&"sfwd-quiz"!==e.node.type||(a=!0)),o.isDropDisabled=i,o.isDragDisabled=a,o}render(){const{node:t,indexLesson:n,index:r,toggleExpandEntity:o}=this.props;return e.createElement(vp,{draggableId:JSON.stringify(Gd({},t)),index:n,key:t.ID},(i=>e.createElement("div",Hd({key:t.ID,ref:i.innerRef},i.draggableProps,{className:md()({"ld__builder--child-item":!0,"-disable-sort":this.state.isDragDisabled})}),e.createElement(zd,{node:t,provided:i,expanded:this.state.expanded,className:md()({"ld__builder-row-type":!0,"-child":!0}),indexLesson:n,index:r,toggleNode:e=>{e.preventDefault(),o(r,t),this.setState((e=>{let{expanded:t}=e;return{expanded:!t}}))}}),("topic"===t.type||"sfwd-topic"===t.type)&&this.state.expanded&&e.createElement(Ep,{droppableId:JSON.stringify({ID:t.ID,type:"topic-quiz"}),key:t.ID,isDropDisabled:this.state.isDropDisabled},((r,o)=>e.createElement("div",{ref:r.innerRef,className:md()({"ld__builder--grandchild":!0,"-is-dragging-over":o.isDraggingOver})},t.tree.map(((t,r)=>e.createElement($d,{node:t,key:t.ID,index:r,indexLesson:n}))),e.createElement("div",{className:"ld__builder--placeholder","data-label":`${LearnDashData.i18n.drop_quizzes}`},r.placeholder)))))))}}Vd.propTypes={node:di().object,indexLesson:di().number,index:di().number,toggleExpandEntity:di().func,workspace:di().shape({present:di().object}),data:di().shape({labels:di().object})};const Kd=N((e=>Gd({},e)),(e=>({toggleExpandEntity:(t,n)=>e(zp(t,n))})))(Vd);function Jd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yd(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Xd extends e.Component{constructor(e){super(e),this.signal=Hp().CancelToken.source(),this.state={showForm:!1,value:"",is_loading:!1,error:null,post_id:null,view_url:null,edit_url:null},this.handleShowForm=this.handleShowForm.bind(this),this.handleChange=this.handleChange.bind(this),this.handleSubmit=this.handleSubmit.bind(this),this.handleCancelAddNew=this.handleCancelAddNew.bind(this),this._isMounted=!1}componentDidMount(){this._isMounted=!0}componentWillUnmount(){this.signal.cancel(),this._isMounted=!1}async handleSubmit(e){e.preventDefault();const{value:t,post_id:n,view_url:r,edit_url:o,post_status:i}=this.state,{workspace:a,type:s,parentLesson:l,setActiveLesson:u,addLessonEntity:c,addSectionHeadingEntity:p,addTopicEntity:d,addQuizEntity:f,addQuestionEntity:h,addAnswerEntity:m,addFinalQuizEntity:y,position:g,addLesson:v,addTopic:b,addQuiz:w,addQuestion:_}=this.props;if(t&&n){if(this._isMounted&&this.setState({is_loading:!0,error:null}),"answer"!==s&&"section-heading"!==s){const e={action:"learndash_builder_selector_step_title",builder_data:learndash_builder_assets[LearnDashData.post_data.builder_post_type].post_data,builder_query_args:{new_title:t,post_id:n,post_type:LearnDashData.sfwdMap[s]}},p=await nd(e,{cancelToken:this.signal.token});if(this.setState({is_loading:!1}),p.data.status){const e={ID:n,post_title:t,type:s,url:r,edit_link:o,post_status:i};l&&u({activeLesson:l}),"lesson"===s?(c(e),v(e)):"topic"===s?(d(l,null,e),b(e)):"quiz"===s?("footer"===g?y(a.present.quizzes.length,e):f(l,null,e),w(e)):"question"===s&&(h(e),_(e)),this._isMounted&&this.setState({showForm:!1,value:""})}else this._isMounted&&this.setState({error:"An error occurred while submitting your request. Please try again."})}}else if(t&&"section-heading"===s){let e=a.present.sections&&0<a.present.sections.length?a.present.sections:[];LearnDashData.post_data.builder_post_id;const n=(new Date).getTime(),r=a.present.lessons.findIndex((e=>e.ID===a.present.activeLesson)),o={order:-1!==r?parseInt(r+1,10):a.present.lessons.length,ID:n,post_title:t,type:s,url:"",edit_link:"",tree:[],expanded:!1};e=[...e,o],p(o);200===await rd()&&this._isMounted&&this.setState({showForm:!1,value:""})}else if(t&&"answer"===s){const e=this.props.question,n={answer:t,html:!1,points:0,correct:!1,sortString:"",sortStringHtml:!1,graded:"1",gradingProgression:"",gradedType:"text",type:"answer",answerType:"single"},r=[...e.answers[LearnDashData.questions_types_map[e.question_type]],n];200===await td(l,r)&&(m(n,e),this._isMounted&&this.setState({showForm:!1,value:""}))}}async handleShowForm(e){e.preventDefault();const{type:t}=this.props;if("answer"!==t&&"section-heading"!==t){const e=`new-step-${(new Date).getTime()}`,n={action:"learndash_builder_selector_step_new",builder_data:learndash_builder_assets[LearnDashData.post_data.builder_post_type].post_data,builder_query_args:{new_steps:{}}};n.builder_query_args.new_steps[e]={item_id:e,post_type:LearnDashData.sfwdMap[t],post_title:LearnDashData.labels[t]};const r=await nd(n,{cancelToken:this.signal.token});r.data.status?this.setState({post_id:r.data.new_steps[e].post_id,edit_url:r.data.new_steps[e].edit_url,view_url:r.data.new_steps[e].view_url,post_status:r.data.new_steps[e].post_status}):this._isMounted&&this.setState({error:`${LearnDashData.i18n.error}`})}this.setState({showForm:!0})}handleChange(e){e.preventDefault(),this.setState({value:e.target.value})}handleCancelAddNew(e){e.preventDefault();const{post_id:t}=this.state,{type:n}=this.props;this.setState({showForm:!1}),"answer"!==n&&t&&(async(e,t)=>{(await Hp().delete(`${Zp[t]}/${e}?force=true`,{headers:{"X-WP-Nonce":LearnDashData.rest.nonce}})).status})(t,n)}render(){const{showForm:t,value:n,is_loading:r,error:o}=this.state,{type:i}=this.props,a="answer"!==i?LearnDashData.i18n.enter_title:LearnDashData.i18n.enter_answer;return e.createElement("div",{className:"ld__builder--new-entity "+(t?"-expanded":"-collapsed")},!t&&e.createElement("button",{className:"ld__builder--new-entity-add-button",onClick:this.handleShowForm},e.createElement(Od,{icon:"plus"}),`${LearnDashData.i18n.new_element_labels[i]}`),t&&e.createElement("div",null,e.createElement("form",{onSubmit:this.handleSubmit},e.createElement("input",{type:"text",value:n,placeholder:a,onChange:this.handleChange}),r&&e.createElement("span",{className:"ld__builder--form-notice"},`${LearnDashData.i18n.please_wait}`),!r&&e.createElement("span",null,e.createElement("input",{type:"submit",value:`${LearnDashData.i18n.add_element_labels[i]}`,className:"is-primary ld__builder--new-entity-button"}),e.createElement("input",{type:"button",onClick:this.handleCancelAddNew,value:`${LearnDashData.i18n.cancel}`,className:"is-default ld__builder--new-entity-button"})),o&&e.createElement("span",{className:"ld__builder--form-error"},o))))}}Xd.propTypes={workspace:di().shape({present:di().object}),type:di().string,position:di().string,parentNode:di().number,addLesson:di().func,addSectionHeadingEntity:di().func,addTopic:di().func,addQuiz:di().func,addLessonEntity:di().func,addTopicEntity:di().func,addQuizEntity:di().func,addFinalQuizEntity:di().func,addQuestionEntity:di().func,addQuestion:di().func,addAnswerEntity:di().func,setActiveLesson:di().func,parentLesson:di().number,question:di().object,data:di().shape({labels:di().object})};const Zd=N((e=>function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jd(Object(n),!0).forEach((function(t){Yd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e)),(e=>({addLesson:t=>e(yd(t)),addTopic:t=>e({type:qo,payload:t}),addQuiz:t=>e({type:Fo,payload:t}),addQuestion:e=>{return t=yd(e),{type:Bo,payload:t};var t},addLessonEntity:t=>e(Op(t)),addSectionHeadingEntity:t=>e({type:Oo,payload:t}),addTopicEntity:(t,n,r)=>e(Pp(t,n,r)),addQuizEntity:(t,n,r)=>e(Tp(t,n,r)),addFinalQuizEntity:(t,n)=>e(Mp(t,n)),addQuestionEntity:t=>e(Cp(t)),addAnswerEntity:(t,n)=>e(jp(t,n)),setActiveLesson:t=>e(kp(t))})))(Xd);class ef extends e.Component{constructor(e){super(e),this.state={isDropDisabled:!0,workspace:this.props.workspace.present}}static getDerivedStateFromProps(e,t){const n=e.workspace.present,r=t.workspace,o={workspace:n};if(n.currentDraggableEntity!==r.currentDraggableEntity&&n.currentDraggableEntity){let e=!0;"quiz"!==n.currentDraggableEntity.type&&"sfwd-quiz"!==n.currentDraggableEntity.type||(e=!1),o.isDropDisabled=e}return o}render(){const{data:t,workspace:n}=this.props;return e.createElement("div",{className:"ld__builder--final-quizzes"},e.createElement("h3",null,LearnDashData.i18n.final_quiz," ",t.labels.quizzes),e.createElement(Ep,{droppableId:JSON.stringify({ID:"course-workspace-quiz-droppable",type:"course"}),isDropDisabled:this.state.isDropDisabled},((t,r)=>e.createElement("div",{ref:t.innerRef,className:md()({"-is-dragging-over":r.isDraggingOver})},n.present.quizzes.map(((t,n)=>e.createElement(Kd,{key:t.ID,node:t,index:n,indexLesson:n}))),e.createElement("ul",{className:"ld__builder--placeholder -quiz","data-label":`${LearnDashData.i18n.drop_quizzes}`},t.placeholder),e.createElement("div",{className:"ld__builder--new-entities"},e.createElement(Zd,{type:"quiz",position:"footer"}))))))}}ef.propTypes={workspace:di().shape({present:di().object}),data:di().shape({labels:di().object})};const tf=N((e=>({workspace:e.workspace,data:e.data})),(e=>({toggleExpandAll:()=>e(Rp())})))(ef),nf=()=>e.createElement("footer",{className:"ld__builder--footer"},e.createElement(tf,null));function rf(){return rf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rf.apply(this,arguments)}function of(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function af(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?of(Object(n),!0).forEach((function(t){sf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):of(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sf(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class lf extends e.PureComponent{constructor(e){super(e),this.state={ID:this.props.lesson.ID,expanded:-1!==this.props.workspace.present.expandedItems.indexOf(this.props.lesson.ID),isDropDisabled:this.props.lesson.isLessonDropDisabled,workspace:this.props.workspace.present}}static getDerivedStateFromProps(e,t){const n=e.workspace.present,r=t.workspace,o={workspace:n};if(n.expandedItems!==r.expandedItems&&(o.expanded=-1!==n.expandedItems.indexOf(t.ID)),n.currentDraggableEntity!==t.currentDraggableEntity&&n.currentDraggableEntity){let e=!0;"topic"!==n.currentDraggableEntity.type&&"quiz"!==n.currentDraggableEntity.type&&"sfwd-topic"!==n.currentDraggableEntity.type&&"sfwd-quiz"!==n.currentDraggableEntity.type||(e=!1),o.isDropDisabled=e}return o}render(){const{expanded:t}=this.state,{lesson:n,index:r,workspace:o,setActiveLesson:i,toggleExpandEntity:a}=this.props;return e.createElement(vp,{draggableId:JSON.stringify(af({},n)),index:r,key:n.ID},(s=>e.createElement("div",rf({key:n.ID,ref:s.innerRef},s.draggableProps,{className:md()({"ld__builder--parent":!0,"ld__builder--lesson":!0,"ld__builder--section-heading":"section-heading"===n.type,"-active":o.present.activeLesson===n.ID,"-expanded":t}),role:"textbox",tabIndex:"0",onClick:()=>{"section-heading"!==n.type&&i({activeLesson:n.ID})},onKeyDown:()=>{"section-heading"!==n.type&&i({activeLesson:n.ID})}}),e.createElement(zd,{node:n,index:r,provided:s,expanded:t,className:md()({"ld__builder-row-type":!0,"-parent":!0}),toggleNode:e=>{e.preventDefault(),a(r,n)}}),"section-heading"!==n.type&&e.createElement("div",{className:md()({"ld__builder--child":!0,"-expanded":t}),key:n.ID},e.createElement(Ep,{droppableId:JSON.stringify({ID:n.ID,type:"lesson",dnd:"droppable-topic"}),isDropDisabled:this.state.isDropDisabled},((t,o)=>e.createElement("div",{ref:t.innerRef,className:md()({"-is-dragging-over":o.isDraggingOver})},n.tree.map(((t,n)=>e.createElement(Kd,{key:t.ID,node:t,indexLesson:n,index:r}))),e.createElement("div",{className:"ld__builder--placeholder","data-label":`${LearnDashData.i18n.drop_quizzes_topics}`},t.placeholder)))),e.createElement("div",{className:"ld__builder--new-entities"},e.createElement(Zd,{type:"topic",parentLesson:n.ID}),e.createElement(Zd,{type:"quiz",parentLesson:n.ID}))))))}}lf.propTypes={lesson:di().object,index:di().number,setActiveLesson:di().func,toggleExpandEntity:di().func,workspace:di().shape({present:di().object}),data:di().shape({labels:di().object})};const uf=N((e=>af({},e)),(e=>({setActiveLesson:t=>e(kp(t)),toggleExpandEntity:(t,n)=>e(zp(t,n))})))(lf),cf=t=>{let{type:n,content:r}=t;return e.createElement("div",{className:"ld__builder--empty-entity"},e.createElement("p",null,`${LearnDashData.labels[n]} ${LearnDashData.i18n.no_content}`),e.createElement("p",null,`${LearnDashData.i18n.add_content} ${LearnDashData.labels[r]} ${LearnDashData.i18n.add_from_sidebar}`))};cf.propTypes={type:di().string,content:di().string};const pf=cf;function df(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ff(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?df(Object(n),!0).forEach((function(t){hf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):df(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function hf(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class mf extends e.Component{constructor(e){super(e),this.state={isDropDisabled:!0,serializedData:"",savedSerializedData:"",workspace:this.props.workspace.present},this.maybeShowAlert=this.maybeShowAlert.bind(this);let t=!1,n=!1;window.wp.data.subscribe((()=>{!1===t&&(t=window.wp.data.select("core/editor")&&!0===window.wp.data.select("core/editor").isSavingPost()),t&&!1===window.wp.data.select("core/editor").isSavingPost()&&!1===n&&(t=!1,n=!0,this.setState({savedSerializedData:this.state.serializedData},(()=>{n=!1})))}))}static getDerivedStateFromProps(e,t){const n=e.workspace.present;if(n.currentDraggableEntity!==t.currentDraggableEntity&&n.currentDraggableEntity){let e=!0;return"lesson"!==n.currentDraggableEntity.type&&"sfwd-lessons"!==n.currentDraggableEntity.type&&"section-heading"!==n.currentDraggableEntity.type||(e=!1),{isDropDisabled:e,workspace:n}}return null}maybeShowAlert(e){if(window.adminpage&&"sfwd-courses_page_courses-builder"===window.adminpage){if(""!==this.state.serializedData&&"submit"!==e.target.activeElement.id)return e.returnValue=LearnDashData.i18n.unsaved_changes,e.returnValue}else if(this.state.savedSerializedData!==this.state.serializedData)return e.returnValue=LearnDashData.i18n.unsaved_changes,e.returnValue}componentDidMount(){window.postL10n?window.jQuery(window).on("beforeunload.edit-post",this.maybeShowAlert):window.addEventListener("beforeunload",this.maybeShowAlert)}componentWillUnmount(){window.postL10n?window.jQuery(window).off("beforeunload.edit-post",this.maybeShowAlert):window.removeEventListener("beforeunload",this.maybeShowAlert)}componentDidUpdate(e){const t=this.props.workspace.present;if(t!==e.workspace.present){let e=t.lessons.reduce(((e,t)=>{if("sfwd-lessons"===t.type){const n=`${t.type}:${t.ID}`;e[n]={},t.tree&&t.tree.length&&t.tree.forEach((t=>{if(t){const r=`${t.type}:${t.ID}`;e[n][r]={},t.tree&&t.tree.length&&t.tree.forEach((t=>{if(t){const o=`${t.type}:${t.ID}`;e[n][r][o]={}}}))}}))}return e}),{});e=t.quizzes.reduce(((e,t)=>(e[`${t.type}:${t.ID}`]={},e)),e);const n=ld(t.lessons),r=ud(n).reduce(((e,t)=>{if("section-heading"===t.type){e[`${t.type}:${t.ID}`]=t}return e}),{}),o=ff(ff({},e),r);this.setState({serializedData:JSON.stringify(o)})}}render(){const{workspace:t,totalLessons:n}=this.props,{present:r}=t;return e.createElement("div",{className:"ld__builder--content"},e.createElement(Ep,{droppableId:JSON.stringify({ID:"course-workspace-droppable",type:"course"}),isDropDisabled:this.state.isDropDisabled},((t,o)=>e.createElement("div",{ref:t.innerRef,className:md()({"-is-dragging-over":o.isDraggingOver})},r.lessons.map(((n,r)=>e.createElement(uf,{key:n.ID,lesson:n,index:r,provided:t}))),e.createElement("ul",{className:md()({"ld__builder--placeholder":!0,"-lesson":!0,"-is-empty":0===n}),"data-label":`${LearnDashData.i18n.drop_lessons}`},t.placeholder,0===n&&e.createElement("li",null,e.createElement(pf,{type:"course",content:"lesson"})))))),e.createElement("div",{className:"ld__builder--new-entities"},e.createElement(Zd,{type:"lesson"}),e.createElement(Zd,{type:"section-heading"})),e.createElement("input",{type:"hidden",id:"learndash_builder_data",name:`learndash_builder[sfwd-courses][${LearnDashData.post_data.builder_post_id}]`,value:this.state.serializedData}))}}mf.propTypes={workspace:di().shape({present:di().object}),data:di().shape({labels:di().object}),totalLessons:di().number,hooks:di().object};const yf=N((e=>({workspace:e.workspace,data:e.data})),(()=>({})))(mf);function gf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vf(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const bf=t=>{let{workspace:n,data:r}=t;const o=new(X())({childrenField:"tree",keyField:"type"}).findNodes(n.present.lessons,(i="sfwd-topic",e=>{const t=i.split(/\s+/),n=e.type;return 0<=t.findIndex((e=>n.includes(e)))}));var i;const a=0===n.present.quizzes.length?0:1,s=n.present.lessons?n.present.lessons.length:0,l=o?o.length:0,u=n.present.sections?n.present.sections.length:0,c=parseInt(s+l+a-u,10);return e.createElement(Rc,{onDragStart:e=>{cd(e)},onDragEnd:e=>{pd(e)},onDragUpdate:e=>{dd(e)}},e.createElement("div",{className:"ld__builder--app"},e.createElement("main",null,e.createElement(Cd,{totalEntities:c,type:r.labels.course,singular:LearnDashData.i18n.step,plural:LearnDashData.i18n.steps,showUndo:0<n.past.length}),e.createElement(yf,{totalLessons:n.present.lessons.length}),e.createElement(nf,null))),e.createElement(xd,{title:"Lessons",content:"lessons",type:"lesson",el:"sfwd-lessons-app"}),e.createElement(xd,{title:"Topics",content:"topics",type:"topic",el:"sfwd-topics-app"}),e.createElement(xd,{title:"Quizzes",content:"quizzes",type:"quiz",el:"sfwd-quizzes-app"}))};bf.propTypes={workspace:di().object,data:di().shape({labels:di().object})};const wf=N((e=>function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gf(Object(n),!0).forEach((function(t){vf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e)),(()=>({})))(bf);function _f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ef(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Df extends e.Component{constructor(e){super(e),this.state={showForm:!1,answer:"",sortString:""},this.signal=Hp().CancelToken.source(),this.handleShowForm=this.handleShowForm.bind(this),this.handleChange=this.handleChange.bind(this),this.handleSubmit=this.handleSubmit.bind(this),this._isMounted=!1}componentDidMount(){this._isMounted=!0}componentWillUnmount(){this.signal.cancel(),this._isMounted=!1}async handleSubmit(e){e.preventDefault();const{answer:t,sortString:n}=this.state,{type:r,parentLesson:o,addAnswerEntity:i,question:a}=this.props;if("answer"===r){const e={answer:t,html:!1,points:0,correct:!1,sortString:n,sortStringHtml:!1,graded:"1",gradingProgression:"",gradedType:"text",type:"answer",answerType:a.question_type},r=[...a.answers[LearnDashData.questions_types_map[a.question_type]],e];200===await td(o,r)&&i(e,a)}}handleShowForm(e){e.preventDefault(),this.setState((e=>{let{showForm:t}=e;return{showForm:!t}}))}handleChange(e){const{target:t}=e,{name:n,value:r}=t;this.setState({[n]:r})}render(){const{showForm:t,answer:n,sortString:r}=this.state,{type:o}=this.props;return e.createElement("div",{className:"ld__builder--new-entity -matrix "+(t?"-expanded":"-collapsed")},!t&&e.createElement("button",{className:"ld__builder--new-entity-add-button",onClick:this.handleShowForm},e.createElement(Od,{icon:"plus"}),`${LearnDashData.i18n.new_element_labels[o]}`),t&&e.createElement("div",null,e.createElement("form",{onSubmit:this.handleSubmit},e.createElement("input",{type:"text",name:"answer",value:n,placeholder:`${LearnDashData.i18n.criterion}`,onChange:this.handleChange}),e.createElement("input",{type:"text",name:"sortString",value:r,placeholder:`${LearnDashData.i18n.sort_element}`,onChange:this.handleChange}),e.createElement("span",null,e.createElement("input",{type:"submit",value:`${LearnDashData.i18n.add_element_labels[o]}`,className:"is-primary ld__builder--new-entity-button"}),e.createElement("input",{type:"button",onClick:this.handleShowForm,value:`${LearnDashData.i18n.cancel}`,className:"is-default ld__builder--new-entity-button"})))))}}Df.propTypes={type:di().string,addAnswerEntity:di().func,parentLesson:di().number,question:di().object,data:di().shape({labels:di().object})};const xf=N((e=>function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_f(Object(n),!0).forEach((function(t){Ef(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e)),(e=>({addAnswerEntity:(t,n)=>e(jp(t,n))})))(Df),{wp:Sf}=window;class Of extends e.PureComponent{constructor(e){super(e),this.frame=null,this.open=this.open.bind(this)}open(){this.frame&&this.frame.open()}componentDidMount(){this.frame=Sf.media({title:"Select or Upload Media",button:{text:"Select"},multiple:!1}),this.frame.on("select",(()=>{const e=this.frame.state().get("selection").first().toJSON();this.props.onSelect(e)}))}render(){return e.createElement(e.Fragment,null,e.createElement("button",{onClick:this.open,className:"components-button is-button is-default"},e.createElement("i",{className:"mce-ico mce-i-dashicon dashicons-admin-media",style:{verticalAlign:"middle",marginTop:"3px",marginRight:"10px"}}),this.props.buttonLabel))}}Of.propTypes={buttonLabel:di().string,onSelect:di().func},Of.defaultProps={buttonLabel:"Add Media",onSelect:()=>{}};const If=Of,kf=t=>{let{handleAnswerUpdate:n,handleAnswerRemove:r,handleCheckboxChange:o,handleInputChange:i,handleShowForm:a,handleAddMedia:s,handleCorrectChange:l,questionType:u,questionID:c,index:p,showFormIndividual:d,answer:f,correct:h,html:m}=t;return e.createElement(e.Fragment,null,e.createElement("span",{className:"ld__builder-row-type -child sfwd-answer"},"A"),!d&&e.createElement("button",{onClick:a,className:"ld-button-reset"},!0===m?e.createElement("span",{className:"ld-answer-value "+(h?"-correct":""),dangerouslySetInnerHTML:{__html:""===f?`${LearnDashData.i18n.edit_answer}`:f}}):e.createElement("span",{className:"ld-answer-value "+(h?"-correct":"")},""===f?`${LearnDashData.i18n.edit_answer}`:f),e.createElement("span",{className:"edit"},e.createElement(Od,{icon:"pencil"}),e.createElement("span",{className:"screen-reader-text"},`${LearnDashData.i18n.edit}`))),d&&e.createElement("div",{className:"ld-answer-editor"},e.createElement("textarea",{name:"answer",value:f,onChange:i}),e.createElement("div",{className:"ld-answer-editor-actions"},e.createElement("button",{className:"is-button is-primary",onClick:n},`${LearnDashData.i18n.update_answer}`),e.createElement("span",{className:"ld-trash"},e.createElement("button",{className:"is-button components-button is-default",onClick:a},`${LearnDashData.i18n.cancel}`)),e.createElement("label",{htmlFor:"allow-html-switch",className:"ld-switch-wrapper html"},e.createElement("span",{className:"ld-switch"},e.createElement("input",{id:"allow-html-switch",type:"checkbox",name:"html",checked:m,onChange:o,className:"ld-switch__input"}),e.createElement("span",{className:"ld-switch__track"}),e.createElement("span",{className:"ld-switch__thumb"}),e.createElement("span",{className:"ld-switch__on-off"})),e.createElement("span",{className:"label-text"},`${LearnDashData.i18n.allow_html}`)),e.createElement(If,{onSelect:s}))),"sort_answer"===u&&e.createElement("div",{className:"ld-radio-input-wrapper",style:{marginRight:"10px"}},e.createElement("span",{dangerouslySetInnerHTML:{__html:(()=>{switch(parseInt(p+1,10)){case 1:return`${LearnDashData.i18n.correct} ${LearnDashData.i18n.correct_1st}`;case 2:return`${LearnDashData.i18n.correct} ${LearnDashData.i18n.correct_2nd}`;case 3:return`${LearnDashData.i18n.correct} ${LearnDashData.i18n.correct_3rd}`;default:return`${LearnDashData.i18n.correct} ${parseInt(p+1,10)}${LearnDashData.i18n.correct_nth}`}})()}})),"sort_answer"!==u&&!d&&e.createElement("span",{className:"ld-radio-input-wrapper"},e.createElement("input",{className:"multiple"===u?"ld-checkbox-input":"ld-radio-input",type:"multiple"===u?"checkbox":"radio",id:`answer-${p}-${c}`,name:`correct-answer-${c}`,checked:h,onChange:l}),e.createElement("label",{className:"multiple"===u?"ld-checkbox-input__label":"ld-radio-input__label",htmlFor:`answer-${p}-${c}`},e.createElement("span",null,`${LearnDashData.i18n.correct}`))),e.createElement("div",{className:"row-actions"},e.createElement("span",{className:"trash"},e.createElement("button",{className:"submitdelete",onClick:r},`${LearnDashData.i18n.remove}`))))};kf.propTypes={handleAnswerUpdate:di().func,handleAnswerRemove:di().func,handleCheckboxChange:di().func,handleInputChange:di().func,handleShowForm:di().func,handleAddMedia:di().func,handleCorrectChange:di().func,questionType:di().string,questionID:di().number,index:di().number,showFormIndividual:di().bool,answer:di().string,correct:di().bool,html:di().bool};const Pf=kf,Tf=t=>{let{handleAnswerUpdate:n,handleAnswerRemove:r,handleCheckboxChange:o,handleInputChange:i,handleShowForm:a,handleAddMedia:s,showFormIndividual:l,answer:u,html:c,sortString:p,sortStringHtml:d}=t;return e.createElement(e.Fragment,null,e.createElement("span",{className:"ld__builder-row-type -child sfwd-answer"},"A"),!l&&e.createElement("button",{onClick:a,className:"ld-button-reset ld-button-matrix-edit"},e.createElement("span",{className:"ld-answer-value",dangerouslySetInnerHTML:{__html:""===u?`${LearnDashData.i18n.edit_matrix}`:u}}),""!==p?e.createElement(Od,{icon:"chevron-right"}):"",e.createElement("span",{className:"ld-answer-value",dangerouslySetInnerHTML:{__html:p}}),e.createElement("span",{className:"edit"},e.createElement(Od,{icon:"pencil"}),e.createElement("span",{className:"screen-reader-text"},`${LearnDashData.i18n.edit}`))),l&&e.createElement("div",{className:"ld-answer-editor"},e.createElement("div",{className:"ld-answer-editor-table"},e.createElement("div",null,e.createElement("textarea",{name:"answer",value:u,onChange:i}),e.createElement("div",{className:"ld-answer-editor-actions -matrix"},e.createElement("label",{htmlFor:"allow-html-input",className:"ld-switch-wrapper html"},e.createElement("span",{className:"ld-switch"},e.createElement("input",{id:"allow-html-input",type:"checkbox",name:"html",checked:c,onChange:o,className:"ld-switch__input"}),e.createElement("span",{className:"ld-switch__track"}),e.createElement("span",{className:"ld-switch__thumb"}),e.createElement("span",{className:"ld-switch__on-off"})),e.createElement("span",{className:"label-text"},`${LearnDashData.i18n.allow_html}`)),e.createElement(If,{onSelect:s})),e.createElement(Od,{icon:"chevron-right"})),e.createElement("div",null,e.createElement("textarea",{name:"sortString",value:p,onChange:i}),e.createElement("div",{className:"ld-answer-editor-actions -matrix"},e.createElement("label",{htmlFor:"allow-html-sort-string",className:"ld-switch-wrapper html"},e.createElement("span",{className:"ld-switch"},e.createElement("input",{id:"allow-html-sort-string",type:"checkbox",name:"sortStringHtml",checked:d,onChange:o,className:"ld-switch__input"}),e.createElement("span",{className:"ld-switch__track"}),e.createElement("span",{className:"ld-switch__thumb"}),e.createElement("span",{className:"ld-switch__on-off"})),e.createElement("span",{className:"label-text"},`${LearnDashData.i18n.allow_html}`))))),e.createElement("div",{className:"ld-answer-editor-actions"},e.createElement("button",{className:"is-button is-primary",onClick:n},`${LearnDashData.i18n.update_answer}`),e.createElement("span",{className:"ld-trash"},e.createElement("button",{className:"is-button components-button is-default",onClick:a},`${LearnDashData.i18n.cancel}`)))),e.createElement("div",{className:"row-actions -right"},e.createElement("span",{className:"trash"},e.createElement("button",{className:"submitdelete",onClick:r},`${LearnDashData.i18n.remove}`))))};Tf.propTypes={handleAnswerUpdate:di().func,handleAnswerRemove:di().func,handleCheckboxChange:di().func,handleInputChange:di().func,handleShowForm:di().func,handleAddMedia:di().func,showFormIndividual:di().bool,answer:di().string,html:di().bool,sortString:di().string,sortStringHtml:di().bool};const Nf=Tf,Cf=t=>{let{handleAnswerUpdate:n,handleInputChange:r,handleShowForm:o,answer:i,updated:a,showForm:s}=t;return e.createElement("div",{className:"ld-answer-editor"},s?e.createElement(e.Fragment,null,LearnDashData.labels.questions_types_description.free_answer&&e.createElement("p",{className:"description"},LearnDashData.labels.questions_types_description.free_answer),e.createElement("textarea",{name:"answer",className:"ld-answer-editor-free-answer",rows:"8",value:i,onChange:r}),e.createElement("div",{className:"ld-answer-editor-actions"},e.createElement("button",{className:"is-button is-primary",onClick:n},`${LearnDashData.i18n.update_answer}`),e.createElement("span",{className:"ld-trash"},e.createElement("button",{className:"is-button components-button is-default",onClick:o},`${LearnDashData.i18n.cancel}`)),a&&e.createElement("span",{className:"ld-answer-updated"},`${LearnDashData.i18n.answer_updated}`))):e.createElement("button",{className:"ld-answer-read-only ld-button-reset",onClick:o},e.createElement("span",null,`${LearnDashData.i18n.answer}`),""===i&&e.createElement("div",{dangerouslySetInnerHTML:{__html:`${LearnDashData.i18n.edit_answer}`}}),""!==i&&e.createElement("pre",{dangerouslySetInnerHTML:{__html:i}}),e.createElement(Od,{icon:"pencil"}),e.createElement("span",{className:"screen-reader-text"},`${LearnDashData.i18n.edit}`)))};Cf.propTypes={handleShowForm:di().func,handleAnswerUpdate:di().func,handleInputChange:di().func,answer:di().string,updated:di().bool,showForm:di().bool};const jf=Cf,{wp:Af}=window;class Lf extends e.PureComponent{constructor(e){super(e),this.onTextAreaChange=this.onTextAreaChange.bind(this)}componentDidMount(){const{onChange:e,id:t}=this.props,n=document.querySelector(".ld-answer-rt-editor");if(n){const r=new MutationObserver((()=>{n.addEventListener("click",(function(r){if("BUTTON"===r.target.tagName&&r.target.classList.contains("switch-html")){n.addEventListener("input",(function(r){const o=n.querySelector(`#${t}`);r.target.id===o.id&&e(r.target.value)}));const r=n.querySelector(".quicktags-toolbar");r&&r.addEventListener("click",(function(r){if("INPUT"===r.target.tagName){const r=n.querySelector(`#${t}`);e(r.value)}}))}})),r.disconnect()})),o={attributes:!0,childList:!0,characterData:!1};r.observe(n,o)}setTimeout((()=>{Af.editor.initialize&&Af.oldEditor.initialize&&Af.editor.initialize(t,{tinymce:{setup:t=>{t.on("keyup",(()=>{e(t.getContent())})),t.on("change",(()=>{e(t.getContent())})),t.on("init",(()=>{t.focus()}))},wpautop:!0,plugins:"charmap colorpicker compat3x directionality fullscreen hr image lists media paste tabfocus textcolor wordpress wpautoresize wpdialogs wpeditimage wpemoji wpgallery wplink wptextpattern wpview",toolbar1:"formatselect bold italic | bullist numlist | blockquote | alignleft aligncenter alignright | link unlink | wp_more | spellchecker"},mediaButtons:!0,quicktags:!0}),!Af.editor.initialize&&Af.oldEditor.initialize&&Af.oldEditor.initialize(t,{tinymce:{setup:t=>{t.on("keyup",(()=>{e(t.getContent())})),t.on("change",(()=>{e(t.getContent())})),t.on("init",(()=>{t.focus()}))},wpautop:!0,plugins:"charmap colorpicker compat3x directionality fullscreen hr image lists media paste tabfocus textcolor wordpress wpautoresize wpdialogs wpeditimage wpemoji wpgallery wplink wptextpattern wpview",toolbar1:"formatselect bold italic | bullist numlist | blockquote | alignleft aligncenter alignright | link unlink | wp_more | spellchecker"},mediaButtons:!0,quicktags:!0})}),30)}componentWillUnmount(){Af.editor.remove&&Af.oldEditor.remove&&Af.editor.remove(this.props.id),!Af.editor.remove&&Af.oldEditor.remove&&Af.oldEditor.remove(this.props.id)}onTextAreaChange(e){const{onChange:t}=this.props;Af.editor.initialize||t(e.target.value),Af.oldEditor.initialize||t(e.target.value)}render(){const{id:t,value:n}=this.props;return e.createElement("div",{className:"ld-answer-rt-editor"},e.createElement("textarea",{id:t,defaultValue:n,onChange:this.onTextAreaChange}))}}Lf.propTypes={id:di().string,value:di().string,onChange:di().func};const Rf=Lf,zf=t=>{let{handleAnswerUpdate:n,handleRichtextChange:r,handleShowForm:o,questionType:i,questionID:a,answer:s,updated:l,showForm:u}=t;return e.createElement("div",{className:"ld-answer-editor"},u?e.createElement(e.Fragment,null,e.createElement("div",{className:"ld-answer-richtext-description"},e.createElement(Rf,{id:`text-area-question-${a}`,value:s,onChange:r}),e.createElement("div",{className:"ld-answer-descriptions"},LearnDashData.labels.questions_types_description[i]&&LearnDashData.labels.questions_types_description[i].map(((t,n)=>e.createElement("p",{key:`description-${n}`,className:"description",dangerouslySetInnerHTML:{__html:t}}))))),e.createElement("div",{className:"ld-answer-editor-actions"},e.createElement("button",{className:"is-button is-primary",onClick:n},`${LearnDashData.i18n.update_answer}`),e.createElement("span",{className:"ld-trash"},e.createElement("button",{className:"is-button components-button is-default",onClick:o},`${LearnDashData.i18n.cancel}`)),l&&e.createElement("span",{className:"ld-answer-updated"},`${LearnDashData.i18n.answer_updated}`))):e.createElement("button",{className:"ld-answer-read-only ld-button-reset",onClick:o},e.createElement("span",null,`${LearnDashData.i18n.answer}`),e.createElement("div",{dangerouslySetInnerHTML:{__html:""===s?`${LearnDashData.i18n.edit_answer}`:s}}),e.createElement(Od,{icon:"pencil"}),e.createElement("span",{className:"screen-reader-text"},`${LearnDashData.i18n.edit}`)))};zf.propTypes={handleShowForm:di().func,handleAnswerUpdate:di().func,handleRichtextChange:di().func,questionType:di().string,questionID:di().number,answer:di().string,updated:di().bool,showForm:di().bool};const Mf=zf,qf=t=>{let{handleAnswerUpdate:n,handleInputChange:r,handleShowForm:o,gradedType:i,gradingProgression:a,updated:s,showForm:l}=t;return e.createElement("div",{className:"ld-answer-editor"},l?e.createElement(e.Fragment,null,e.createElement("div",{className:"ld-answer-editor-actions -essay"},e.createElement("div",{className:"ld-answer-group"},e.createElement("p",null,`${LearnDashData.i18n.essay_answer_format}`),e.createElement("span",{className:"ld-radio-input-wrapper"},e.createElement("input",{className:"ld-radio-input",type:"radio",id:"ld-gradedtype-text",name:"gradedType",checked:"text"===i,onChange:r,value:"text"}),e.createElement("label",{className:"ld-radio-input__label",htmlFor:"ld-gradedtype-text"},e.createElement("span",null,`${LearnDashData.i18n.essay_text_answer}`))),e.createElement("br",null),e.createElement("span",{className:"ld-radio-input-wrapper"},e.createElement("input",{className:"ld-radio-input",type:"radio",id:"ld-gradedtype-upload",name:"gradedType",checked:"upload"===i,onChange:r,value:"upload"}),e.createElement("label",{className:"ld-radio-input__label",htmlFor:"ld-gradedtype-upload"},e.createElement("span",null,`${LearnDashData.i18n.essay_file_upload_answer}`)))),e.createElement("div",{className:"ld-answer-group"},e.createElement("p",null,`${LearnDashData.i18n.essay_after_submission}`),e.createElement("span",{className:"ld-radio-input-wrapper"},e.createElement("input",{className:"ld-radio-input",type:"radio",id:"ld-gradedtype-not-graded-none",name:"gradingProgression",checked:"not-graded-none"===a,onChange:r,value:"not-graded-none"}),e.createElement("label",{className:"ld-radio-input__label",htmlFor:"ld-gradedtype-not-graded-none"},e.createElement("span",null,`${LearnDashData.i18n.essay_not_graded_no_points}`))),e.createElement("br",null),e.createElement("span",{className:"ld-radio-input-wrapper"},e.createElement("input",{className:"ld-radio-input",type:"radio",id:"ld-gradedtype-not-graded-full",name:"gradingProgression",checked:"not-graded-full"===a,onChange:r,value:"not-graded-full"}),e.createElement("label",{className:"ld-radio-input__label",htmlFor:"ld-gradedtype-not-graded-full"},e.createElement("span",null,`${LearnDashData.i18n.essay_not_graded_full_points}`))),e.createElement("br",null),e.createElement("span",{className:"ld-radio-input-wrapper"},e.createElement("input",{className:"ld-radio-input",type:"radio",id:"ld-gradedtype-graded-full",name:"gradingProgression",checked:"graded-full"===a,onChange:r,value:"graded-full"}),e.createElement("label",{className:"ld-radio-input__label",htmlFor:"ld-gradedtype-graded-full"},e.createElement("span",null,`${LearnDashData.i18n.essay_graded_full_points}`))))),e.createElement("div",{className:"ld-answer-editor-actions"},e.createElement("button",{className:"is-button is-primary",onClick:n},`${LearnDashData.i18n.update_answer}`),e.createElement("span",{className:"ld-trash"},e.createElement("button",{className:"is-button components-button is-default",onClick:o},`${LearnDashData.i18n.cancel}`)),s&&e.createElement("span",{className:"ld-answer-updated"},`${LearnDashData.i18n.answer_updated}`))):e.createElement("button",{className:"ld-answer-read-only -essay ld-button-reset",onClick:o},e.createElement("div",{className:"ld-answer-editor-actions -essay"},e.createElement("div",{className:"ld-answer-essay-settings ld-answer-group"},e.createElement("p",null,e.createElement("strong",null,`${LearnDashData.i18n.essay_answer_format}`)),"text"===i?`${LearnDashData.i18n.essay_text_answer}`:`${LearnDashData.i18n.essay_file_upload_answer}`),e.createElement("div",{className:"ld-answer-essay-settings ld-answer-group"},e.createElement("p",null,e.createElement("strong",null,`${LearnDashData.i18n.essay_after_submission}`)),(()=>{switch(a){case"not-graded-none":return`${LearnDashData.i18n.essay_not_graded_no_points}`;case"not-graded-full":return`${LearnDashData.i18n.essay_not_graded_full_points}`;case"graded-full":return`${LearnDashData.i18n.essay_graded_full_points}`;default:return`${LearnDashData.i18n.essay_not_set}`}})())),e.createElement("div",{style:{paddingTop:"10px"}},`${LearnDashData.i18n.edit_answer_settings}`," ",e.createElement(Od,{icon:"pencil"})),e.createElement("span",{className:"screen-reader-text"},`${LearnDashData.i18n.edit}`)))};qf.propTypes={handleShowForm:di().func,handleAnswerUpdate:di().func,handleInputChange:di().func,gradedType:di().string,gradingProgression:di().string,updated:di().bool,showForm:di().bool};const Ff=qf;function Bf(){return Bf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bf.apply(this,arguments)}function Uf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Uf(Object(n),!0).forEach((function(t){Hf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Hf(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Wf extends e.Component{constructor(e){super(e);const{node:t}=this.props;this.state={showFormIndividual:!1,answer:t.answer,correct:t.correct,html:t.html,mediaID:"",updated:!1,gradedType:t.gradedType?t.gradedType:"text",gradingProgression:t.gradingProgression?t.gradingProgression:"not-graded-none",sortString:t.sortString,sortStringHtml:t.sortStringHtml,expandAll:this.props.workspace.present.expandAll},this.handleShowFormIndividual=this.handleShowFormIndividual.bind(this),this.handleAnswerRemove=this.handleAnswerRemove.bind(this),this.handleAnswerUpdate=this.handleAnswerUpdate.bind(this),this.handleCheckboxChange=this.handleCheckboxChange.bind(this),this.handleInputChange=this.handleInputChange.bind(this),this.handleRichtextChange=this.handleRichtextChange.bind(this),this.handleAddMedia=this.handleAddMedia.bind(this),this.handleCorrectChange=this.handleCorrectChange.bind(this),this.handleMoveUp=this.handleMoveUp.bind(this),this.handleMoveDown=this.handleMoveDown.bind(this),this._isMounted=!1}handleCheckboxChange(e){const{target:t}=e,{name:n,checked:r}=t;this.setState({[n]:r})}handleInputChange(e){const{target:t}=e,{name:n,value:r}=t;this.setState({[n]:r})}handleRichtextChange(e){this.setState({answer:e})}handleAddMedia(e){let t=`${LearnDashData.i18n.supported_media_in_answers}`;"image"===e.type&&(t=` <img src="${e.url}" alt=${e.alt} />`),"audio"===e.type&&(t=` [audio src="${e.url}"]`),"video"===e.type&&(t=` [video src="${e.url}"]`),this.setState((n=>{let{answer:r}=n;return{mediaID:e.id,html:!0,answer:r+t}}))}async handleAnswerRemove(e){e.preventDefault();const{question:t,node:n,index:r,removeAnswerEntity:o}=this.props,i=t.answers[LearnDashData.questions_types_map[t.question_type]].filter((e=>e!==n));200===await td(t.ID,i)&&(this.props.unlockQuestion(),o(r,t))}async handleCorrectChange(e){const{question:t,node:n,updateQuestionAnswers:r}=this.props,{checked:o}=e.target,i=o,a=t.answers[LearnDashData.questions_types_map[t.question_type]].map((e=>e===n?$f($f({},e),{},{correct:i}):"multiple"!==t.question_type?$f($f({},e),{},{correct:!1}):e));200===await td(t.ID,a)&&r(t,a)}async handleAnswerUpdate(e){e.preventDefault();const{answer:t,correct:n,html:r,gradedType:o,gradingProgression:i,sortString:a,sortStringHtml:s}=this.state,{question:l,index:u,updateQuestionType:c}=this.props,p={answer:t,correct:n,html:r,graded:"1",gradedType:o,gradingProgression:i,sortString:a,sortStringHtml:s,answerType:l.question_type},d=$f($f({},l.answers[LearnDashData.questions_types_map[l.question_type]][u]),p);l.answers[LearnDashData.questions_types_map[l.question_type]][u]=d;const f=l.answers[LearnDashData.questions_types_map[l.question_type]],h="assessment_answer"===l.question_type,m=await td(l.ID,f,h);if(this.props.handleShowForm(),this.handleShowFormIndividual(),h){const{points:e}=go(f);c($f($f({},l),{},{points:e}))}else c($f({},l));200===m&&this._isMounted&&this.setState((()=>({updated:!0})))}async handleMoveUp(e){e.preventDefault();const{question:t,node:n,index:r,moveUp:o}=this.props,i=sd(t.answers[LearnDashData.questions_types_map[t.question_type]],r,parseInt(r-1,10));o(n,r,t),await td(t.ID,i)}async handleMoveDown(e){e.preventDefault();const{question:t,node:n,index:r,moveDown:o}=this.props,i=sd(t.answers[LearnDashData.questions_types_map[t.question_type]],r,parseInt(r+1,10));o(n,r,t),await td(t.ID,i)}componentDidMount(){this._isMounted=!0}componentWillUnmount(){this._isMounted=!1}handleShowFormIndividual(e){e&&e.preventDefault(),this.setState((e=>{let{showFormIndividual:t}=e;return{showFormIndividual:!t}}))}render(){const{showFormIndividual:t,answer:n,html:r,sortString:o,sortStringHtml:i,gradedType:a,gradingProgression:s,updated:l}=this.state,{showForm:u,question:c,index:p,node:d,key:f,handleShowForm:h}=this.props,{question_type:m,ID:y,post_content:g}=c;return"single"===m||"multiple"===m||"sort_answer"===m||"matrix_sort_answer"===m?e.createElement(vp,{draggableId:JSON.stringify($f({},d)),index:p,key:f},(a=>e.createElement("li",Bf({key:f,ref:a.innerRef},a.draggableProps,{className:"ld__builder--child-item ld-question-answer ld-node-header sfwd_options "+(t?"-showform -editing":"")}),e.createElement("div",{className:"ld-question-answer__order"},e.createElement("span",{className:"ld-node-header__drag-handle"},e.createElement("span",a.dragHandleProps,e.createElement(Od,{icon:"drag"})))),("single"===m||"multiple"===m||"sort_answer"===m)&&e.createElement(Pf,{showFormIndividual:t,handleAnswerUpdate:this.handleAnswerUpdate,handleAnswerRemove:this.handleAnswerRemove,handleShowForm:e=>{e.preventDefault(),this.handleShowFormIndividual(),h()},handleCheckboxChange:this.handleCheckboxChange,handleInputChange:this.handleInputChange,handleAddMedia:this.handleAddMedia,handleCorrectChange:this.handleCorrectChange,questionType:m,questionID:y,questionContent:g,index:p,answer:n,correct:d.correct,html:r}),"matrix_sort_answer"===m&&e.createElement(Nf,{showFormIndividual:t,handleAnswerUpdate:this.handleAnswerUpdate,handleAnswerRemove:this.handleAnswerRemove,handleShowForm:e=>{e.preventDefault(),this.handleShowFormIndividual(),h()},handleCheckboxChange:this.handleCheckboxChange,handleInputChange:this.handleInputChange,handleAddMedia:this.handleAddMedia,answer:n,html:r,sortString:o,sortStringHtml:i}),a.placeholder))):"cloze_answer"===m||"assessment_answer"===m?e.createElement("li",{key:f,className:"ld__builder--child-item ld-question-answer ld-node-header sfwd_options "+(u?"-showform -editing":"")},e.createElement(Mf,{handleAnswerUpdate:this.handleAnswerUpdate,handleRichtextChange:this.handleRichtextChange,handleShowForm:h,questionType:m,questionID:y,answer:n,updated:l,showForm:u})):"essay"===m?e.createElement("li",{key:f,className:"ld__builder--child-item ld-question-answer ld-node-header sfwd_options "+(u?"-showform -editing":"")},e.createElement(Ff,{handleAnswerUpdate:this.handleAnswerUpdate,handleInputChange:this.handleInputChange,handleShowForm:h,gradedType:a,gradingProgression:s,updated:l,showForm:u})):"free_answer"===m&&e.createElement("li",{key:f,className:"ld__builder--child-item ld-question-answer ld-node-header sfwd_options "+(u?"-showform -editing":"")},e.createElement(jf,{handleAnswerUpdate:this.handleAnswerUpdate,handleInputChange:this.handleInputChange,handleShowForm:h,answer:n,updated:l,showForm:u}))}}Wf.propTypes={showForm:di().bool,node:di().object,question:di().object,index:di().number,moveUp:di().func,moveDown:di().func,removeAnswerEntity:di().func,updateQuestionAnswers:di().func,workspace:di().object,key:di().string,handleShowForm:di().func,lockQuestion:di().func,unlockQuestion:di().func,updateQuestionType:di().func};const Gf=N((e=>$f({},e)),(e=>({moveUp:(t,n,r)=>e(Fp($f($f({},t),{},{index:n,parentID:r.ID,answerType:LearnDashData.questions_types_map[r.question_type]}))),moveDown:(t,n,r)=>e(Bp($f($f({},t),{},{index:n,parentID:r.ID,answerType:LearnDashData.questions_types_map[r.question_type]}))),removeAnswerEntity:(t,n)=>e(((e,t)=>({type:zo,payload:e,parent:t}))(t,n)),updateQuestionAnswers:(t,n)=>e(((e,t)=>({type:Zo,question:e,answers:t}))(t,n)),updateQuestionType:t=>e(Up(t))})))(Wf);class Qf extends e.PureComponent{constructor(e){super(e),this.state={correctMessage:this.props.question.correctMsg,incorrectMessage:this.props.question.incorrectMsg,useSameMessage:this.props.question.correctSameText,solutionHint:this.props.question.tipEnabled,solutionHintMessage:this.props.question.tipMsg,is_loading:!1,error:null},this.handleCorrectMessage=this.handleCorrectMessage.bind(this),this.handleIncorrectMessage=this.handleIncorrectMessage.bind(this),this.handleCheckChange=this.handleCheckChange.bind(this),this.handleSolutionHintMessage=this.handleSolutionHintMessage.bind(this),this.handleSaveSettings=this.handleSaveSettings.bind(this)}handleCheckChange(e){const t=e.target.name;this.setState((e=>({[t]:!e[t]})))}handleCorrectMessage(e){this.setState({correctMessage:e}),this.props.question.correctMsg=e}handleIncorrectMessage(e){this.setState({incorrectMessage:e}),this.props.question.incorrectMsg=e}handleSolutionHintMessage(e){this.setState({solutionHintMessage:e})}async handleSaveSettings(e){e.persist(),e.preventDefault();const{correctMessage:t,incorrectMessage:n,useSameMessage:r,solutionHint:o,solutionHintMessage:i}=this.state;200===await ed(this.props.question.ID,{_correctMsg:t,_incorrectMsg:n,_correctSameText:r,_tipEnabled:o,_tipMsg:i})&&this.props.handleSettingsForm(e)}componentWillUnmount(){this.props.unlockQuestion()}render(){const{showSettings:t,question:n,handleSettingsForm:r}=this.props,{correctMessage:o,incorrectMessage:i,useSameMessage:a,solutionHint:s,solutionHintMessage:l,is_loading:u,error:c}=this.state;return e.createElement("div",{className:"ld__builder--question-settings "+(t?"-editing":"")},!t&&e.createElement("button",{className:"ld__builder--show-settings ld-button-reset",onClick:r},`${LearnDashData.labels.question} ${LearnDashData.i18n.settings}`," ",e.createElement(Od,{icon:"dropdown"})),t&&e.createElement(e.Fragment,null,e.createElement("hr",null),"essay"!==n.question_type&&e.createElement("h4",null,`${LearnDashData.i18n.correct_answer_message}`),"essay"===n.question_type&&e.createElement("h4",null,`${LearnDashData.i18n.essay_answer_message}`),e.createElement(Rf,{id:`text-area-question-correct-${n.ID}`,value:o,onChange:this.handleCorrectMessage}),"essay"!==n.question_type&&e.createElement("div",{className:"ld__builder--question-label-value"},e.createElement("div",null,e.createElement("label",{htmlFor:`check-same-message-${n.ID}`},`${LearnDashData.i18n.different_incorrect_answer_message}`)),e.createElement("div",null,e.createElement("div",{className:"ld-switch-wrapper"},e.createElement("span",{className:"ld-switch"},e.createElement("input",{id:`check-same-message-${n.ID}`,type:"checkbox",name:"useSameMessage",checked:!a,onChange:this.handleCheckChange,className:"ld-switch__input"}),e.createElement("span",{className:"ld-switch__track"}),e.createElement("span",{className:"ld-switch__thumb"}),e.createElement("span",{className:"ld-switch__on-off"}))),a&&e.createElement("span",null,`${LearnDashData.i18n.same_answer_message}`))),"essay"!==n.question_type&&!a&&e.createElement(e.Fragment,null,e.createElement("h4",null,`${LearnDashData.i18n.incorrect_answer_message}`),e.createElement(Rf,{id:`text-area-question-incorrect-${n.ID}`,value:i,onChange:this.handleIncorrectMessage})),e.createElement("div",{className:"ld__builder--question-label-value"},e.createElement("div",null,e.createElement("label",{htmlFor:`check-solution-hint-${n.ID}`},`${LearnDashData.i18n.solution_hint}`)),e.createElement("div",null,e.createElement("div",{className:"ld-switch-wrapper"},e.createElement("span",{className:"ld-switch"},e.createElement("input",{id:`check-solution-hint-${n.ID}`,type:"checkbox",name:"solutionHint",checked:s,onChange:this.handleCheckChange,className:"ld-switch__input"}),e.createElement("span",{className:"ld-switch__track"}),e.createElement("span",{className:"ld-switch__thumb"}),e.createElement("span",{className:"ld-switch__on-off"}))))),s&&e.createElement(Rf,{id:`text-area-hint-${n.ID}`,value:l,onChange:this.handleSolutionHintMessage}),e.createElement("div",{className:"ld__builder--settings-actions"},e.createElement("button",{className:"is-primary",onClick:this.handleSaveSettings},`${LearnDashData.i18n.save}`),e.createElement("button",{className:"is-default",onClick:r},`${LearnDashData.i18n.cancel}`),u&&e.createElement("span",{className:"ld__builder--form-notice"},`${LearnDashData.i18n.please_wait}`),c&&e.createElement("span",{className:"ld__builder--form-error"},c))))}}Qf.propTypes={showSettings:di().bool,question:di().object,handleSettingsForm:di().func,unlockQuestion:di().func};const Vf=(0,e.memo)(Qf);function Kf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kf(Object(n),!0).forEach((function(t){Yf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Yf(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Xf extends e.PureComponent{constructor(e){super(e),this.state={content:this.props.question.post_content,is_loading:!1,error:null},this.handleQuestionContent=this.handleQuestionContent.bind(this),this.handleSaveSettings=this.handleSaveSettings.bind(this)}handleQuestionContent(e){this._isMounted&&this.setState({content:e})}async handleSaveSettings(e){e.preventDefault();const{content:t}=this.state,{updateQuestionType:n,question:r}=this.props;200===await ed(r.ID,{_question:t})&&(n(Jf(Jf({},r),{},{post_content:t})),this.props.handleQuestionForm())}componentDidMount(){this._isMounted=!0}componentWillUnmount(){this._isMounted=!1}render(){const{question:t,data:n,editQuestionForm:r,handleQuestionForm:o}=this.props,{content:i,is_loading:a,error:s}=this.state;return e.createElement("div",{className:"ld__builder--question-content "+(r?"-editing":"")},!r&&e.createElement("button",{className:"ld__builder--edit-content ld-button-reset",onClick:o},e.createElement("span",null,n.labels.question,": "),""===i?e.createElement("div",{className:"ld__builder--edit-content-value"},e.createElement("div",{className:"warning-icon -question"},e.createElement(Od,{icon:"warning"}))," ",e.createElement("span",{className:"warning"},`${LearnDashData.i18n.question_empty_edit}`)):e.createElement("div",{className:"ld__builder--edit-content-value",dangerouslySetInnerHTML:{__html:i}}),e.createElement(Od,{icon:"pencil"}),e.createElement("span",{className:"screen-reader-text"},`${LearnDashData.i18n.edit}`)),r&&e.createElement(e.Fragment,null,e.createElement(Rf,{id:`text-area-question-content-${t.ID}`,value:i,onChange:this.handleQuestionContent}),e.createElement("div",{className:"ld__builder--settings-actions"},e.createElement("button",{className:"is-primary",onClick:this.handleSaveSettings},`${LearnDashData.i18n.save}`),e.createElement("button",{className:"is-default",onClick:o},`${LearnDashData.i18n.cancel}`),a&&e.createElement("span",{className:"ld__builder--form-notice"},`${LearnDashData.i18n.please_wait}`),s&&e.createElement("span",{className:"ld__builder--form-error"},s))),e.createElement("hr",null))}}Xf.propTypes={editQuestionForm:di().bool,question:di().object,updateQuestionType:di().func,handleQuestionForm:di().func,lockQuestion:di().func,unlockQuestion:di().func,data:di().shape({labels:di().object})};const Zf=N((e=>Jf({},e)),(e=>({updateQuestionType:t=>e(Up(t))})))(Xf);function eh(){return eh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},eh.apply(this,arguments)}function th(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?th(Object(n),!0).forEach((function(t){rh(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):th(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function rh(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class oh extends e.Component{constructor(e){super(e),this.state={ID:this.props.question.ID,expanded:-1!==this.props.workspace.present.expandedItems.indexOf(this.props.question.ID),isDropDisabled:this.props.question.isLessonDropDisabled,workspace:this.props.workspace.present,locked:!1,editQuestionForm:!1,showSettings:!1,showForm:!1},this.lockQuestion=this.lockQuestion.bind(this),this.unlockQuestion=this.unlockQuestion.bind(this),this.handleSettingsForm=this.handleSettingsForm.bind(this),this.handleShowForm=this.handleShowForm.bind(this),this.handleQuestionForm=this.handleQuestionForm.bind(this)}static getDerivedStateFromProps(e,t){const n=e.workspace.present,r=t.workspace,o={workspace:n};if(n.expandedItems!==r.expandedItems&&(o.expanded=-1!==n.expandedItems.indexOf(t.ID),o.expanded?(!0===t.showSettings&&(o.locked=!0),!0===t.showForm&&(o.locked=!0),!0===t.editQuestionForm&&(o.locked=!0)):o.locked=!1),n.currentDraggableEntity!==t.currentDraggableEntity&&n.currentDraggableEntity){let e=!0;"answer"===n.currentDraggableEntity.type&&(e=!1),o.isDropDisabled=e}return o}lockQuestion(){this.setState({locked:!0})}unlockQuestion(){this.setState({locked:!1})}handleSettingsForm(e){e&&e.preventDefault(),this.state.showSettings?this.unlockQuestion():this.lockQuestion(),this.setState((e=>{let{showSettings:t}=e;return{showSettings:!t}}))}handleShowForm(e){e&&e.preventDefault(),this.state.showForm?this.unlockQuestion():this.lockQuestion(),this.setState((e=>{let{showForm:t}=e;return{showForm:!t}}))}handleQuestionForm(e){e&&e.preventDefault(),this.state.editQuestionForm?this.unlockQuestion():this.lockQuestion(),this.setState((e=>{let{editQuestionForm:t}=e;return{editQuestionForm:!t}}))}render(){const{question:t,index:n,workspace:r,setActiveLesson:o,toggleExpandEntity:i}=this.props,{expanded:a,locked:s,showSettings:l,showForm:u,editQuestionForm:c}=this.state,p=LearnDashData.questions_types_map,d=fd(t);return e.createElement(vp,{draggableId:JSON.stringify(nh({},t)),index:n,key:t.ID},(f=>e.createElement("div",eh({key:t.ID,ref:f.innerRef},f.draggableProps,{className:md()({"ld__builder--parent":!0,"ld__builder--question":!0,"-active":r.present.activeLesson===t.ID,"-expanded":a,"-locked":s}),role:"textbox",tabIndex:"0",onClick:()=>o({activeLesson:t.ID}),onKeyDown:()=>o({activeLesson:t.ID})}),e.createElement(zd,{node:t,provided:f,expanded:a,className:md()({"ld__builder-row-type":!0,"-parent":!0}),toggleNode:e=>{e.preventDefault(),i(n,t)},type:p[t.question_type]}),t.edit_link&&e.createElement("div",{className:md()({"ld__builder--child":!0,"-question":!0,"-expanded":a}),key:t.ID},t&&e.createElement(Zf,{question:t,editQuestionForm:c,handleQuestionForm:this.handleQuestionForm,lockQuestion:this.lockQuestion,unlockQuestion:this.unlockQuestion}),"sort_answer"===t.question_type&&LearnDashData.labels.questions_types_description.sort_answer&&e.createElement("p",{className:"description",dangerouslySetInnerHTML:{__html:LearnDashData.labels.questions_types_description.sort_answer}}),"essay"!==t.question_type&&0===d.validAnswersCount&&e.createElement("div",{className:"ld__builder--edit-content-value"},e.createElement("div",{className:"warning-icon -answer"},e.createElement(Od,{icon:"warning"}))," ",e.createElement("span",{className:"warning description-red"},`${LearnDashData.i18n.answer_missing}`,".")),("single"===t.question_type||"multiple"===t.question_type)&&0!==d.validAnswersCount&&0===d.correctAnswersCount&&e.createElement("div",{className:"ld__builder--edit-content-value"},e.createElement("div",{className:"warning-icon -answer"},e.createElement(Od,{icon:"warning"}))," ",e.createElement("span",{className:"warning description-red"},`${LearnDashData.i18n.correct_answer_missing}`,".")),t.answers&&0!==t.answers.length&&e.createElement(Ep,{droppableId:JSON.stringify({ID:t.ID,type:"question",dnd:"droppable-answer"}),isDropDisabled:this.state.isDropDisabled},((n,r)=>e.createElement("ul",{ref:n.innerRef,className:md()({"ld-question-answers-list":!0,"-is-dragging-over":r.isDraggingOver})},Object.entries(t.answers).map((n=>{let[r,o]=n;return r===p[t.question_type]?o&&0!==o.length&&o.map(((n,r)=>e.createElement(Gf,{key:`answer-${r}`,node:n,question:t,index:r,showForm:u,handleShowForm:this.handleShowForm,lockQuestion:this.lockQuestion,unlockQuestion:this.unlockQuestion}))):null})),n.placeholder))),("single"===t.question_type||"multiple"===t.question_type||"sort_answer"===t.question_type)&&e.createElement("div",{className:"ld__builder--new-entities -question"},e.createElement(Zd,{type:"answer",parentLesson:t.ID,question:t})),"matrix_sort_answer"===t.question_type&&e.createElement("div",{className:"ld__builder--new-entities -question"},e.createElement(xf,{type:"answer",parentLesson:t.ID,question:t})),t&&e.createElement(Vf,{question:t,showSettings:l,handleSettingsForm:this.handleSettingsForm,unlockQuestion:this.unlockQuestion})))))}}oh.propTypes={questions:di().object,index:di().number,setActiveLesson:di().func,toggleExpandEntity:di().func,question:di().object,workspace:di().object};const ih=N((e=>nh({},e)),(e=>({setActiveLesson:t=>e(kp(t)),toggleExpandEntity:(t,n)=>e(zp(t,n))})))(oh);class ah extends e.Component{constructor(e){super(e);let t=0;this.props.workspace.present.questions.map((e=>t=parseInt(t+e.points,10))),this.state={isDropDisabled:!0,serializedData:"",savedSerializedData:"",totalPoints:parseInt(t,10),workspace:this.props.workspace.present},this.maybeShowAlert=this.maybeShowAlert.bind(this);let n=!1,r=!1;window.wp.data.subscribe((()=>{!1===n&&(n=window.wp.data.select("core/editor")&&!0===window.wp.data.select("core/editor").isSavingPost()),n&&!1===window.wp.data.select("core/editor").isSavingPost()&&!1===r&&(n=!1,r=!0,this.setState({savedSerializedData:this.state.serializedData},(()=>{r=!1})))}))}static getDerivedStateFromProps(e,t){const n=e.workspace.present;if(n.currentDraggableEntity!==t.currentDraggableEntity&&n.currentDraggableEntity){let e=!0;return"question"!==n.currentDraggableEntity.type&&"sfwd-question"!==n.currentDraggableEntity.type||(e=!1),{isDropDisabled:e,workspace:n}}return null}maybeShowAlert(e){if(window.adminpage&&"sfwd-quiz_page_quizzes-builder"===window.adminpage){if(""!==this.state.serializedData&&"submit"!==e.target.activeElement.id)return e.returnValue=`${LearnDashData.i18n.unsaved_changes}`,e.returnValue}else if(this.state.savedSerializedData!==this.state.serializedData)return e.returnValue=`${LearnDashData.i18n.unsaved_changes}`,e.returnValue}componentDidMount(){window.postL10n?window.jQuery(window).on("beforeunload.edit-post",this.maybeShowAlert):window.addEventListener("beforeunload",this.maybeShowAlert)}componentWillUnmount(){window.postL10n?window.jQuery(window).off("beforeunload.edit-post",this.maybeShowAlert):window.removeEventListener("beforeunload",this.maybeShowAlert)}componentDidUpdate(e){const t=this.props.workspace.present;if(t!==e.workspace.present){let e=0;t.questions.map((t=>e=parseInt(e+t.points,10)));const n=t.questions.reduce(((e,t)=>(e[`${t.type}:${t.ID}`]={},e)),{});this.setState({serializedData:JSON.stringify(n),totalPoints:parseInt(e,10)})}}render(){const{isDropDisabled:t,totalPoints:n}=this.state,{workspace:r,totalLessons:o}=this.props;return e.createElement("div",{className:"ld__builder--content"},e.createElement(Ep,{droppableId:JSON.stringify({ID:"quiz-workspace-droppable",type:"quiz"}),isDropDisabled:t},((t,n)=>e.createElement("div",{ref:t.innerRef,className:md()({"-is-dragging-over":n.isDraggingOver})},r.present.questions.map(((n,r)=>e.createElement(ih,{key:n.ID,question:n,index:r,provided:t}))),e.createElement("ul",{className:md()({"ld__builder--placeholder":!0,"-question":!0,"-is-empty":0===this.props.totalLessons}),"data-label":`${LearnDashData.i18n.drop_question}`},t.placeholder,0===o&&e.createElement("li",null,e.createElement(pf,{type:"quiz",content:"question"})))))),e.createElement("div",{className:"ld__builder--quiz-footer"},e.createElement("div",{className:"ld__builder--new-entities"},e.createElement(Zd,{type:"question"})),e.createElement("div",{className:"ld__builder--quiz-total"},`${LearnDashData.i18n.total_points} ${n}`," ",1<n?`${LearnDashData.labels.points.plural}`:`${LearnDashData.labels.points.singular}`)),e.createElement("input",{type:"hidden",id:"learndash_builder_data",name:`learndash_builder[sfwd-quiz][${LearnDashData.post_data.builder_post_id}]`,value:this.state.serializedData}))}}ah.propTypes={workspace:di().shape({present:di().object}),data:di().shape({labels:di().object}),totalLessons:di().number};const sh=N((e=>({workspace:e.workspace,data:e.data})),(()=>({})))(ah);function lh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function uh(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ch=t=>{let{workspace:n,data:r}=t;return e.createElement(Rc,{onDragStart:e=>{cd(e)},onDragEnd:e=>{(async e=>{const{source:t,destination:n,draggableId:r}=e;if(!n)return!1;const o=JSON.parse(r),i=JSON.parse(t.droppableId),a=JSON.parse(n.droppableId),s=ci.getState(),l=LearnDashData.questions_types_map;if(i.ID===a.ID&&t.index!==n.index)if("question"===s.workspace.present.currentDraggableEntity.type||"sfwd-question"===s.workspace.present.currentDraggableEntity.type){const e=Object.values(s.workspace.present.questions),r=sd(e,t.index,n.index);ci.dispatch(Np(r)),ci.dispatch(kp({activeLesson:o.ID}))}else if("answer"===s.workspace.present.currentDraggableEntity.type){const e=Object.values(s.workspace.present.questions),r=xp()(e,vo),u=bo.getNodeByKey(e,parseInt(a.ID)),c=bo.getNodeByKey(r,parseInt(a.ID));u&&o&&(i.ID===a.ID&&t.index!==n.index&&u.answers[l[u.question_type]][t.index].type===u.answers[l[u.question_type]][n.index].type&&(u.answers[l[u.question_type]]=sd(u.answers[l[u.question_type]],t.index,n.index),ci.dispatch(Np(e)),await td(u.ID,u.answers[l[u.question_type]])),c.ID&&!c.nodeData.parent&&ci.dispatch(kp({activeLesson:c.ID})))}if("quiz-workspace-droppable"===a.ID&&"droppable-question"===i.ID&&("question"===s.workspace.present.currentDraggableEntity.type||"sfwd-question"===s.workspace.present.currentDraggableEntity.type)&&o.ID){const e=s.data.questions.find((e=>e.ID===o.ID));e.index=n.index,ci.dispatch(Cp(e))}ci.dispatch(Ap({currentDraggableEntity:null}))})(e)},onDragUpdate:e=>{dd(e)}},e.createElement("div",{className:"ld__builder--app"},e.createElement("main",null,e.createElement(Cd,{totalEntities:n.present.questions.length,type:r.labels.quiz,singular:r.labels.question,plural:r.labels.questions,showUndo:0<n.past.length}),e.createElement(sh,{totalLessons:n.present.questions.length}))),e.createElement(xd,{title:"Questions",content:"questions",type:"question",el:"sfwd-questions-app"}))};ch.propTypes={workspace:di().object,data:di().shape({labels:di().object})};const ph=N((e=>function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lh(Object(n),!0).forEach((function(t){uh(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e)),(()=>({})))(ch);class dh extends e.Component{constructor(e){super(e),this.state={hasError:!1}}componentDidCatch(e,t){this.setState({hasError:!0,error:e,info:t})}render(){return this.state.hasError?e.createElement("div",{className:this.props.className},e.createElement("h2",null,this.props.message)):this.props.children}}dh.propTypes={children:di().node.isRequired,message:di().string.isRequired,className:di().string},dh.defaultProps={message:`${LearnDashData.i18n.error}`,className:""};const fh=dh,hh="undefined"!=typeof LearnDashData?LearnDashData.error_messages&&LearnDashData.error_messages.header&&LearnDashData.error_messages.header:"Sorry, something went wrong with LearnDash.";t.render(e.createElement(fh,{message:hh,className:"builder-boundary"},e.createElement(C,{store:ci},"sfwd-quiz"===LearnDashData.post_data.builder_post_type?e.createElement(ph,null):e.createElement(wf,null))),document.getElementById("learndash_builder_box_wrap"))})()})();