[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@18.191.186.194: ~ $
!function(){var e={9669:function(e,t,n){e.exports=n(1609)},5448:function(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 D=s(e.baseURL,e.url);function E(){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(D,e.params,e.paramsSerializer),!0),b.timeout=e.timeout,"onloadend"in b?b.onloadend=E:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(E)},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(D))&&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(D);S&&-1===["http","https","file"].indexOf(S)?n(new p("Unsupported protocol "+S+":",p.ERR_BAD_REQUEST,e)):b.send(m)}))}},1609:function(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:function(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:function(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:function(e){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},321:function(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:function(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:function(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:function(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:function(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:function(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:function(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:function(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:function(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:function(e){"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},7288:function(e){e.exports={version:"0.27.2"}},1849:function(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:function(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:function(e){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},4372:function(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:function(e){"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},6268:function(e,t,n){"use strict";var r=n(4867);e.exports=function(e){return r.isObject(e)&&!0===e.isAxiosError}},7985:function(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:function(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:function(e){e.exports=null},4109:function(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:function(e){"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},8713:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},7675:function(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:function(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:function(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:function(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:function(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:function(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)}()},4779:function(e,t,n){n(6660),e.exports=n(4579).Date.now},6989:function(e,t,n){n(9846),n(4579).Number.isInteger},6981:function(e,t,n){n(2699),e.exports=n(4579).Object.assign},5627:function(e,t,n){n(6760);var r=n(4579).Object;e.exports=function(e,t){return r.create(e,t)}},8613:function(e,t,n){n(961),e.exports=n(4579).Object.keys},433:function(e,t,n){n(9349),e.exports=n(4579).Object.setPrototypeOf},8056:function(e,t,n){n(1013),e.exports=n(4579).Object.values},5663:function(e){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},2159:function(e,t,n){var r=n(6727);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},7428:function(e,t,n){var r=n(7932),o=n(8728),i=n(6531);e.exports=function(e){return function(t,n,a){var s,l=r(t),u=o(l.length),c=i(a,u);if(e&&n!=n){for(;u>c;)if((s=l[c++])!=s)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}}},2894:function(e){var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},4579:function(e){var t=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=t)},9216:function(e,t,n){var r=n(5663);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},8333:function(e){e.exports=function(e){if(null==e)throw TypeError("Can't call method on  "+e);return e}},9666:function(e,t,n){e.exports=!n(7929)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},7467:function(e,t,n){var r=n(6727),o=n(3938).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},3338:function(e){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},3856:function(e,t,n){var r=n(3938),o=n(4579),i=n(9216),a=n(1818),s=n(7069),l="prototype",u=function(e,t,n){var c,p,d,f=e&u.F,h=e&u.G,m=e&u.S,y=e&u.P,g=e&u.B,v=e&u.W,b=h?o:o[t]||(o[t]={}),w=b[l],_=h?r:m?r[t]:(r[t]||{})[l];for(c in h&&(n=t),n)(p=!f&&_&&void 0!==_[c])&&s(b,c)||(d=p?_[c]:n[c],b[c]=h&&"function"!=typeof _[c]?n[c]:g&&p?i(d,r):v&&_[c]==d?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t[l]=e[l],t}(d):y&&"function"==typeof d?i(Function.call,d):d,y&&((b.virtual||(b.virtual={}))[c]=d,e&u.R&&w&&!w[c]&&a(w,c,d)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},7929:function(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},3938:function(e){var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},7069:function(e){var t={}.hasOwnProperty;e.exports=function(e,n){return t.call(e,n)}},1818:function(e,t,n){var r=n(4743),o=n(3101);e.exports=n(9666)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},4881:function(e,t,n){var r=n(3938).document;e.exports=r&&r.documentElement},3758:function(e,t,n){e.exports=!n(9666)&&!n(7929)((function(){return 7!=Object.defineProperty(n(7467)("div"),"a",{get:function(){return 7}}).a}))},799:function(e,t,n){var r=n(2894);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},6732:function(e,t,n){var r=n(6727),o=Math.floor;e.exports=function(e){return!r(e)&&isFinite(e)&&o(e)===e}},6727:function(e){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},6227:function(e){e.exports=!0},8082:function(e,t,n){"use strict";var r=n(9666),o=n(6162),i=n(8195),a=n(6274),s=n(6530),l=n(799),u=Object.assign;e.exports=!u||n(7929)((function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=u({},e)[n]||Object.keys(u({},t)).join("")!=r}))?function(e,t){for(var n=s(e),u=arguments.length,c=1,p=i.f,d=a.f;u>c;)for(var f,h=l(arguments[c++]),m=p?o(h).concat(p(h)):o(h),y=m.length,g=0;y>g;)f=m[g++],r&&!d.call(h,f)||(n[f]=h[f]);return n}:u},526:function(e,t,n){var r=n(2159),o=n(7856),i=n(3338),a=n(8989)("IE_PROTO"),s=function(){},l="prototype",u=function(){var e,t=n(7467)("iframe"),r=i.length;for(t.style.display="none",n(4881).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),u=e.F;r--;)delete u[l][i[r]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[l]=r(e),n=new s,s[l]=null,n[a]=e):n=u(),void 0===t?n:o(n,t)}},4743:function(e,t,n){var r=n(2159),o=n(3758),i=n(3206),a=Object.defineProperty;t.f=n(9666)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},7856:function(e,t,n){var r=n(4743),o=n(2159),i=n(6162);e.exports=n(9666)?Object.defineProperties:function(e,t){o(e);for(var n,a=i(t),s=a.length,l=0;s>l;)r.f(e,n=a[l++],t[n]);return e}},6183:function(e,t,n){var r=n(6274),o=n(3101),i=n(7932),a=n(3206),s=n(7069),l=n(3758),u=Object.getOwnPropertyDescriptor;t.f=n(9666)?u:function(e,t){if(e=i(e),t=a(t,!0),l)try{return u(e,t)}catch(e){}if(s(e,t))return o(!r.f.call(e,t),e[t])}},8195:function(e,t){t.f=Object.getOwnPropertySymbols},2963:function(e,t,n){var r=n(7069),o=n(7932),i=n(7428)(!1),a=n(8989)("IE_PROTO");e.exports=function(e,t){var n,s=o(e),l=0,u=[];for(n in s)n!=a&&r(s,n)&&u.push(n);for(;t.length>l;)r(s,n=t[l++])&&(~i(u,n)||u.push(n));return u}},6162:function(e,t,n){var r=n(2963),o=n(3338);e.exports=Object.keys||function(e){return r(e,o)}},6274:function(e,t){t.f={}.propertyIsEnumerable},2584:function(e,t,n){var r=n(3856),o=n(4579),i=n(7929);e.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*i((function(){n(1)})),"Object",a)}},2050:function(e,t,n){var r=n(9666),o=n(6162),i=n(7932),a=n(6274).f;e.exports=function(e){return function(t){for(var n,s=i(t),l=o(s),u=l.length,c=0,p=[];u>c;)n=l[c++],r&&!a.call(s,n)||p.push(e?[n,s[n]]:s[n]);return p}}},3101:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},2906:function(e,t,n){var r=n(6727),o=n(2159),i=function(e,t){if(o(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{(r=n(9216)(Function.call,n(6183).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return i(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:i}},8989:function(e,t,n){var r=n(250)("keys"),o=n(5730);e.exports=function(e){return r[e]||(r[e]=o(e))}},250:function(e,t,n){var r=n(4579),o=n(3938),i="__core-js_shared__",a=o[i]||(o[i]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(6227)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},6531:function(e,t,n){var r=n(1052),o=Math.max,i=Math.min;e.exports=function(e,t){return(e=r(e))<0?o(e+t,0):i(e,t)}},1052:function(e){var t=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:t)(e)}},7932:function(e,t,n){var r=n(799),o=n(8333);e.exports=function(e){return r(o(e))}},8728:function(e,t,n){var r=n(1052),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},6530:function(e,t,n){var r=n(8333);e.exports=function(e){return Object(r(e))}},3206:function(e,t,n){var r=n(6727);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},5730:function(e){var t=0,n=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++t+n).toString(36))}},6660:function(e,t,n){var r=n(3856);r(r.S,"Date",{now:function(){return(new Date).getTime()}})},9846:function(e,t,n){var r=n(3856);r(r.S,"Number",{isInteger:n(6732)})},2699:function(e,t,n){var r=n(3856);r(r.S+r.F,"Object",{assign:n(8082)})},6760:function(e,t,n){var r=n(3856);r(r.S,"Object",{create:n(526)})},961:function(e,t,n){var r=n(6530),o=n(6162);n(2584)("keys",(function(){return function(e){return o(r(e))}}))},9349:function(e,t,n){var r=n(3856);r(r.S,"Object",{setPrototypeOf:n(2906).set})},1013:function(e,t,n){var r=n(3856),o=n(2050)(!1);r(r.S,"Object",{values:function(e){return o(e)}})},7648:function(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:function(e,t,n){"use strict";var r=n(7648);e.exports=Function.prototype.bind||r},210:function(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=n(8185)(),f=Object.getPrototypeOf||(d?function(e){return e.__proto__}:null),h={},m="undefined"!=typeof Uint8Array&&f?f(Uint8Array):r,y={"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":p&&f?f([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%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%":h,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":p&&f?f(f([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&p&&f?f((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&&f?f((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":p&&f?f(""[Symbol.iterator]()):r,"%Symbol%":p?Symbol:r,"%SyntaxError%":o,"%ThrowTypeError%":c,"%TypedArray%":m,"%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};if(f)try{null.error}catch(e){var g=f(f(e));y["%Error.prototype%"]=g}var v=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&&f&&(n=f(o.prototype))}return y[t]=n,n},b={"%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"]},w=n(2514),_=n(7642),D=w.call(Function.call,Array.prototype.concat),E=w.call(Function.apply,Array.prototype.splice),x=w.call(Function.call,String.prototype.replace),S=w.call(Function.call,String.prototype.slice),O=w.call(Function.call,RegExp.prototype.exec),k=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,I=/\\(\\)?/g,P=function(e,t){var n,r=e;if(_(b,r)&&(r="%"+(n=b[r])[0]+"%"),_(y,r)){var i=y[r];if(i===h&&(i=v(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===O(/^%?[^%]*%?$/,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=S(e,0,1),n=S(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 x(e,k,(function(e,t,n,o){r[r.length]=n?x(o,I,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",i=P("%"+r+"%",t),s=i.name,u=i.value,c=!1,p=i.alias;p&&(r=p[0],E(n,D([0,1],p)));for(var d=1,f=!0;d<n.length;d+=1){var h=n[d],m=S(h,0,1),g=S(h,-1);if(('"'===m||"'"===m||"`"===m||'"'===g||"'"===g||"`"===g)&&m!==g)throw new o("property names with quotes must have matching quotes");if("constructor"!==h&&f||(c=!0),_(y,s="%"+(r+="."+h)+"%"))u=y[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=_(u,h),u=u[h];f&&!c&&(y[s]=u)}}return u}},8185:function(e){"use strict";var t={foo:{}},n=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!({__proto__:null}instanceof n)}},1405:function(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:function(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:function(e,t,n){"use strict";var r=n(2514);e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},8679:function(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}},1143:function(e){"use strict";e.exports=function(e,t,n,r,o,i,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,i,a,s],c=0;(l=new Error(t.replace(/%s/g,(function(){return u[c++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},8552:function(e,t,n){var r=n(852)(n(5639),"DataView");e.exports=r},1989:function(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:function(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:function(e,t,n){var r=n(852)(n(5639),"Map");e.exports=r},3369:function(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:function(e,t,n){var r=n(852)(n(5639),"Promise");e.exports=r},8525:function(e,t,n){var r=n(852)(n(5639),"Set");e.exports=r},8668:function(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:function(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:function(e,t,n){var r=n(5639).Symbol;e.exports=r},1149:function(e,t,n){var r=n(5639).Uint8Array;e.exports=r},577:function(e,t,n){var r=n(852)(n(5639),"WeakMap");e.exports=r},4963:function(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:function(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:function(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:function(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:function(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:function(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:function(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:function(e,t,n){var r=n(5063)();e.exports=r},7816:function(e,t,n){var r=n(8483),o=n(3674);e.exports=function(e,t){return e&&r(e,t,o)}},7786:function(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:function(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:function(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:function(e){e.exports=function(e,t){return null!=e&&t in Object(e)}},9454:function(e,t,n){var r=n(4239),o=n(7005);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},939:function(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:function(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),D=(w=w==p?f:w)==f,E=(_=_==p?f:_)==f,x=w==_;if(x&&u(e)){if(!u(t))return!1;v=!0,D=!1}if(x&&!D)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=D&&h.call(e,"__wrapped__"),O=E&&h.call(t,"__wrapped__");if(S||O){var k=S?e.value():e,I=O?t.value():t;return g||(g=new r),y(k,I,n,m,g)}}return!!x&&(g||(g=new r),a(e,t,n,m,y,g))}},2958:function(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:function(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:function(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:function(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:function(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:function(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:function(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:function(e){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},9152:function(e,t,n){var r=n(7786);e.exports=function(e){return function(t){return r(t,e)}}},2545:function(e){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},531:function(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:function(e){e.exports=function(e){return function(t){return e(t)}}},4757:function(e){e.exports=function(e,t){return e.has(t)}},1811:function(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:function(e,t,n){var r=n(5639)["__core-js_shared__"];e.exports=r},5063:function(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:function(e,t,n){var r=n(852),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},7114:function(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:function(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:function(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:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},8234:function(e,t,n){var r=n(8866),o=n(9551),i=n(3674);e.exports=function(e){return r(e,i,o)}},5050:function(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:function(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:function(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:function(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:function(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:function(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:function(e){e.exports=function(e,t){return null==e?void 0:e[t]}},222:function(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:function(e,t,n){var r=n(4536);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},401:function(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},7667:function(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:function(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:function(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:function(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:function(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:function(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},5346:function(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:function(e){var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},9162:function(e,t,n){var r=n(3218);e.exports=function(e){return e==e&&!r(e)}},7040:function(e){e.exports=function(){this.__data__=[],this.size=0}},4125:function(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:function(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:function(e,t,n){var r=n(8470);e.exports=function(e){return r(this.__data__,e)>-1}},4705:function(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:function(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:function(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:function(e,t,n){var r=n(5050);e.exports=function(e){return r(this,e).get(e)}},9916:function(e,t,n){var r=n(5050);e.exports=function(e){return r(this,e).has(e)}},5265:function(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:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},2634:function(e){e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},4523:function(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:function(e,t,n){var r=n(852)(Object,"create");e.exports=r},6916:function(e,t,n){var r=n(5569)(Object.keys,Object);e.exports=r},1167:function(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:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5569:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},5639:function(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:function(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},2385:function(e){e.exports=function(e){return this.__data__.has(e)}},1814:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},7465:function(e,t,n){var r=n(8407);e.exports=function(){this.__data__=new r,this.size=0}},3779:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},7599:function(e){e.exports=function(e){return this.__data__.get(e)}},4758:function(e){e.exports=function(e){return this.__data__.has(e)}},4309:function(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:function(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:function(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:function(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:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},7361:function(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:function(e,t,n){var r=n(13),o=n(222);e.exports=function(e,t){return null!=e&&o(e,t,r)}},6557:function(e){e.exports=function(e){return e}},5694:function(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:function(e){var t=Array.isArray;e.exports=t},8612:function(e,t,n){var r=n(3560),o=n(1780);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},4144:function(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:function(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:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},3218:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},7005:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},3448:function(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:function(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:function(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:function(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:function(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:function(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:function(e){e.exports=function(){return[]}},5062:function(e){e.exports=function(){return!1}},9833:function(e,t,n){var r=n(531);e.exports=function(e){return null==e?"":r(e)}},7418:function(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:function(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,D=RegExp.prototype.test,E=Array.prototype.concat,x=Array.prototype.join,S=Array.prototype.slice,O=Math.floor,k="function"==typeof BigInt?BigInt.prototype.valueOf:null,I=Object.getOwnPropertySymbols,P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,T="function"==typeof Symbol&&"object"==typeof Symbol.iterator,C="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===T||"symbol")?Symbol.toStringTag:null,N=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||D.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),M=L.custom,z=U(M)?M:null;function R(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function q(e){return b.call(String(e),/"/g,"&quot;")}function F(e){return!("[object Array]"!==H(e)||C&&"object"==typeof e&&C in e)}function B(e){return!("[object RegExp]"!==H(e)||C&&"object"==typeof e&&C 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(W(s,"quoteStyle")&&"single"!==s.quoteStyle&&"double"!==s.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(W(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=!W(s,"customInspect")||s.customInspect;if("boolean"!=typeof l&&"symbol"!==l)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(W(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(W(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 V(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 D=String(t)+"n";return m?A(t,D):D}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 I=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(Q(o,t)>=0)return"[Circular]";function M(t,n,i){if(n&&(o=S.call(o)).push(n),i){var a={depth:s.depth};return W(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),G=Z(t,M);return"[Function"+($?": "+$:" (anonymous)")+"]"+(G.length>0?" { "+x.call(G,", ")+" }":"")}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+"="+R(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,M);return I&&!function(e){for(var t=0;t<e.length;t++)if(Q(e[t],"\n")>=0)return!1;return!0}(oe)?"["+X(oe,I)+"]":"[ "+x.call(oe,", ")+" ]"}if(function(e){return!("[object Error]"!==H(e)||C&&"object"==typeof e&&C in e)}(t)){var ie=Z(t,M);return"cause"in Error.prototype||!("cause"in t)||N.call(t,"cause")?0===ie.length?"["+String(t)+"]":"{ ["+String(t)+"] "+x.call(ie,", ")+" }":"{ ["+String(t)+"] "+x.call(E.call("[cause]: "+M(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(M(n,t,!0)+" => "+M(e,t))})),Y("Map",i.call(t),ae,I)}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(M(e,t))})),Y("Set",u.call(t),se,I)}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]"!==H(e)||C&&"object"==typeof e&&C in e)}(t))return K(M(Number(t)));if(function(e){if(!e||"object"!=typeof e||!k)return!1;try{return k.call(e),!0}catch(e){}return!1}(t))return K(M(k.call(t)));if(function(e){return!("[object Boolean]"!==H(e)||C&&"object"==typeof e&&C in e)}(t))return K(h.call(t));if(function(e){return!("[object String]"!==H(e)||C&&"object"==typeof e&&C in e)}(t))return K(M(String(t)));if(!function(e){return!("[object Date]"!==H(e)||C&&"object"==typeof e&&C in e)}(t)&&!B(t)){var le=Z(t,M),ue=j?j(t)===Object.prototype:t instanceof Object||t.constructor===Object,ce=t instanceof Object?"":"null prototype",pe=!ue&&C&&Object(t)===t&&C in t?v.call(H(t),8,-1):ce?"Object":"",de=(ue||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(pe||ce?"["+x.call(E.call([],pe||[],ce||[]),": ")+"] ":"");return 0===le.length?de+"{}":I?de+"{"+X(le,I)+"}":de+"{ "+x.call(le,", ")+" }"}return String(t)};var $=Object.prototype.hasOwnProperty||function(e){return e in this};function W(e,t){return $.call(e,t)}function H(e){return m.call(e)}function Q(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 V(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return V(v.call(e,0,t.maxStringLength),t)+r}return R(b.call(b.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,G),"single",t)}function G(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]=W(e,o)?t(e[o],e):""}var i,a="function"==typeof I?I(e):[];if(T){i={};for(var s=0;s<a.length;s++)i["$"+a[s]]=a[s]}for(var l in e)W(e,l)&&(n&&String(Number(l))===l&&l<e.length||T&&i["$"+l]instanceof Symbol||(D.call(/[^\w$]/,l)?r.push(t(l,e)+": "+t(e[l],e)):r.push(l+": "+t(e[l],e))));if("function"==typeof I)for(var u=0;u<a.length;u++)N.call(e,a[u])&&r.push("["+t(a[u])+"]: "+t(e[a[u]],e));return r}},2703:function(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:function(e,t,n){e.exports=n(2703)()},414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},5798:function(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:function(e,t,n){"use strict";var r=n(8261),o=n(5235),i=n(5798);e.exports={formats:i,parse:o,stringify:r}},5235:function(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:function(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,_,D){for(var E,x=t,S=D,O=0,k=!1;void 0!==(S=S.get(h))&&!k;){var I=S.get(t);if(O+=1,void 0!==I){if(I===O)throw new RangeError("Cyclic object value");k=!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(E=x)||"number"==typeof E||"boolean"==typeof E||"symbol"==typeof E||"bigint"==typeof E||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 C=Object.keys(x);P=m?C.sort(m):C}for(var N=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 M=l(x)?"function"==typeof i?i(N,A):N:N+(y?"."+A:"["+A+"]");D.set(t,O);var z=r();z.set(h,D),c(T,e(L,M,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:function(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)}}},4448:function(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(!D[n]){if(!t.extractEvents)throw Error(a(97,e));for(var r in D[n]=t,n=t.eventTypes){var o=void 0,i=n[r],s=t,l=r;if(E.hasOwnProperty(l))throw Error(a(99,l));E[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 D=[],E={},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 k=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),I=null,P=null,T=null;function C(e){if(e=m(e)){if("function"!=typeof I)throw Error(a(280));var t=e.stateNode;t&&(t=h(t),I(e.stateNode,e.type,t))}}function N(e){P?T?T.push(e):T=[e]:P=e}function j(){if(P){var e=P,t=T;if(T=P=null,C(e),t)for(e=0;e<t.length;e++)C(t[e])}}function A(e,t){return e(t)}function L(e,t,n,r,o){return e(t,n,r,o)}function M(){}var z=A,R=!1,q=!1;function F(){null===P&&null===T||(M(),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,W={},H={};function Q(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 V={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){V[e]=new Q(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];V[t]=new Q(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){V[e]=new Q(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){V[e]=new Q(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){V[e]=new Q(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){V[e]=new Q(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){V[e]=new Q(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){V[e]=new Q(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){V[e]=new Q(e,5,!1,e.toLowerCase(),null,!1)}));var G=/[\-:]([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(G,K);V[t]=new Q(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(G,K);V[t]=new Q(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(G,K);V[t]=new Q(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){V[e]=new Q(e,1,!1,e.toLowerCase(),null,!1)})),V.xlinkHref=new Q("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){V[e]=new Q(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=V.hasOwnProperty(t)?V[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(H,e)||!$.call(W,e)&&(U.test(e)?H[e]=!0:(W[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 De(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 Ee(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")?ke(e,t.type,n):t.hasOwnProperty("defaultValue")&&ke(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 ke(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function Ie(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 Ce(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 Ne(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 Me(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?Me(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Re,qe,Fe=(qe=function(e,t){if(e.namespaceURI!==Le||"innerHTML"in e)e.innerHTML=t;else{for((Re=Re||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Re.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")},We={},He={};function Qe(e){if(We[e])return We[e];if(!$e[e])return e;var t,n=$e[e];for(t in n)if(n.hasOwnProperty(t)&&t in He)return We[e]=n[t];return e}k&&(He=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 Ve=Qe("animationend"),Ge=Qe("animationiteration"),Ke=Qe("animationstart"),Je=Qe("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(!k)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<D.length;l++){var u=D[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)&&Gt(e,t)}n.set(e,null)}}var yt,gt,vt,bt=!1,wt=[],_t=null,Dt=null,Et=null,xt=new Map,St=new Map,Ot=[],kt="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(" "),It="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":Dt=null;break;case"mouseover":case"mouseout":Et=null;break;case"pointerover":case"pointerout":xt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":St.delete(t.pointerId)}}function Ct(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))&&gt(t)),e):(e.eventSystemFlags|=r,e)}function Nt(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&&gt(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!==Dt&&jt(Dt)&&(Dt=null),null!==Et&&jt(Et)&&(Et=null),xt.forEach(At),St.forEach(At)}function Mt(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 Mt(t,e)}if(0<wt.length){Mt(wt[0],e);for(var n=1;n<wt.length;n++){var r=wt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==_t&&Mt(_t,e),null!==Dt&&Mt(Dt,e),null!==Et&&Mt(Et,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;)Nt(n),null===n.blockedOn&&Ot.shift()}var Rt={},qt=new Map,Ft=new Map,Bt=["abort","abort",Ve,"animationEnd",Ge,"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),Rt[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(" "),Wt=0;Wt<$t.length;Wt++)Ft.set($t[Wt],0);var Ht=i.unstable_UserBlockingPriority,Qt=i.unstable_runWithPriority,Vt=!0;function Gt(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){R||M();var o=Xt,i=R;R=!0;try{L(o,e,t,n,r)}finally{(R=i)||F()}}function Yt(e,t,n,r){Qt(Ht,Xt.bind(null,e,t,n,r))}function Xt(e,t,n,r){if(Vt)if(0<wt.length&&-1<kt.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<kt.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=Ct(_t,e,t,n,r,o),!0;case"dragenter":return Dt=Ct(Dt,e,t,n,r,o),!0;case"mouseover":return Et=Ct(Et,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return xt.set(i,Ct(xt.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,St.set(i,Ct(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,Dn=null;function En(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 kn(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function In(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,Cn="__reactEventHandlers$"+Pn,Nn="__reactContainere$"+Pn;function jn(e){var t=e[Tn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Nn]||n[Tn]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=In(e);null!==e;){if(n=e[Tn])return n;e=In(e)}return t}n=(e=n).parentNode}return null}function An(e){return!(e=e[Tn]||e[Nn])||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 Mn(e){return e[Cn]||null}function zn(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function Rn(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=Rn(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=Rn(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 Wn=null,Hn=null,Qn=null;function Vn(){if(Qn)return Qn;var e,t,n=Hn,r=n.length,o="value"in Wn?Wn.value:Wn.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 Qn=o.slice(e,1<t?1-t:void 0)}function Gn(){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)?Gn: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=Gn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Gn)},persist:function(){this.isPersistent=Gn},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=k&&"CompositionEvent"in window,or=null;k&&"documentMode"in document&&(or=document.documentMode);var ir=k&&"TextEvent"in window&&!or,ar=k&&(!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=Vn()):(Hn="value"in(Wn=r)?Wn.value:Wn.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=Vn(),Qn=Hn=Wn=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",N(n),$n(e),e}var vr=null,br=null;function wr(e){lt(e)}function _r(e){if(_e(Ln(e)))return e}function Dr(e,t){if("change"===e)return t}var Er=!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)),R)lt(e);else{R=!0;try{A(wr,e)}finally{R=!1,F()}}}function Or(e,t,n){"focus"===e?(xr(),br=n,(vr=t).attachEvent("onpropertychange",Sr)):"blur"===e&&xr()}function kr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return _r(br)}function Ir(e,t){if("click"===e)return _r(t)}function Pr(e,t){if("input"===e||"change"===e)return _r(t)}k&&(Er=ct("input")&&(!document.documentMode||9<document.documentMode));var Tr={eventTypes:yr,_isInputEventSupported:Er,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=Dr;else if(mr(o))if(Er)a=Pr;else{a=kr;var s=Or}else(i=o.nodeName)&&"input"===i.toLowerCase()&&("checkbox"===o.type||"radio"===o.type)&&(a=Ir);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&&ke(o,"number",o.value)}},Cr=Jn.extend({view:null,detail:null}),Nr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function jr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Nr[e])&&!!t[e]}function Ar(){return jr}var Lr=0,Mr=0,zr=!1,Rr=!1,qr=Cr.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=Mr;return Mr=e.screenY,Rr?"mousemove"===e.type?e.screenY-t:0:(Rr=!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},Wr=Object.prototype.hasOwnProperty;function Hr(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(!Wr.call(t,n[r])||!$r(e[n[r]],t[n[r]]))return!1;return!0}var Qr=k&&"documentMode"in document&&11>=document.documentMode,Vr={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Gr=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==Gr||Gr!==pn(n)?null:("selectionStart"in(n=Gr)&&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&&Hr(Jr,n)?null:(Jr=n,(e=Jn.getPooled(Vr.select,Kr,e,t)).type="select",e.target=Gr,$n(e),e))}var Zr={eventTypes:Vr,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)&&(Gr=o,Kr=t,Jr=null);break;case"blur":Jr=Kr=Gr=null;break;case"mousedown":Yr=!0;break;case"contextmenu":case"mouseup":case"dragend":return Yr=!1,Xr(n,r);case"selectionchange":if(Qr)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=Cr.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=Cr.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=Cr.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:Rt,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 Ve:case Ge:case Ke:e=eo;break;case Je:e=uo;break;case"scroll":e=Cr;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=Mn,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 Do(e){return null!=(e=e.childContextTypes)}function Eo(){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 ko(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 Io=i.unstable_runWithPriority,Po=i.unstable_scheduleCallback,To=i.unstable_cancelCallback,Co=i.unstable_requestPaint,No=i.unstable_now,jo=i.unstable_getCurrentPriorityLevel,Ao=i.unstable_ImmediatePriority,Lo=i.unstable_UserBlockingPriority,Mo=i.unstable_NormalPriority,zo=i.unstable_LowPriority,Ro=i.unstable_IdlePriority,qo={},Fo=i.unstable_shouldYield,Bo=void 0!==Co?Co:function(){},Uo=null,$o=null,Wo=!1,Ho=No(),Qo=1e4>Ho?No:function(){return No()-Ho};function Vo(){switch(jo()){case Ao:return 99;case Lo:return 98;case Mo:return 97;case zo:return 96;case Ro:return 95;default:throw Error(a(332))}}function Go(e){switch(e){case 99:return Ao;case 98:return Lo;case 97:return Mo;case 96:return zo;case 95:return Ro;default:throw Error(a(332))}}function Ko(e,t){return e=Go(e),Io(e,t)}function Jo(e,t,n){return e=Go(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(!Wo&&null!==Uo){Wo=!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{Wo=!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&&(Ma=!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}),Dl(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,El(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 Di={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 Ei(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!Hr(n,r)||!Hr(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=Do(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=Di,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&&Di.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=Do(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&&Di.enqueueReplaceState(o,o.state,null),gi(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.effectTag|=4)}var ki=Array.isArray;function Ii(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=Ql(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=Ii(e,t,n),r.return=e,r):((r=Wl(n.type,n.key,n.props,null,e.mode,r)).ref=Ii(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=Vl(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=Hl(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=Ql(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case ee:return(n=Wl(t.type,t.key,t.props,null,e.mode,n)).ref=Ii(e,null,t),n.return=e,n;case te:return(t=Vl(t,e.mode,n)).return=e,t}if(ki(t)||me(t))return(t=Hl(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(ki(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(ki(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=Ii(e,u,i),r.return=e,e=r;break e}n(e,u);break}t(e,u),u=u.sibling}i.type===ne?((r=Hl(i.props.children,e.mode,l,i.key)).return=e,e=r):((l=Wl(i.type,i.key,i.props,null,e.mode,l)).ref=Ii(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=Vl(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=Ql(i,e.mode,l)).return=e,e=r),s(e);if(ki(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 Ci=Ti(!0),Ni=Ti(!1),ji={},Ai={current:ji},Li={current:ji},Mi={current:ji};function zi(e){if(e===ji)throw Error(a(174));return e}function Ri(e,t){switch(yo(Mi,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(Mi)}function Fi(e){zi(Mi.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 Wi(e,t){return{responder:e,props:t}}var Hi=J.ReactCurrentDispatcher,Qi=J.ReactCurrentBatchConfig,Vi=0,Gi=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(Vi=i,Gi=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,Hi.current=null===e||null===e.memoizedState?Ea:xa,e=n(r,o),t.expirationTime===Vi){i=0;do{if(t.expirationTime=0,!(25>i))throw Error(a(301));i+=1,Ji=Ki=null,t.updateQueue=null,Hi.current=Sa,e=n(r,o)}while(t.expirationTime===Vi)}if(Hi.current=Da,t=null!==Ki&&null!==Ki.next,Vi=0,Ji=Ki=Gi=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?Gi.memoizedState=Ji=e:Ji=Ji.next=e,Ji}function na(){if(null===Ki){var e=Gi.alternate;e=null!==e?e.memoizedState:null}else e=Ki.next;var t=null===Ji?Gi.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?Gi.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<Vi){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>Gi.expirationTime&&(Gi.expirationTime=c,El(c))}else null!==l&&(l=l.next={expirationTime:1073741823,suspenseConfig:u.suspenseConfig,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),Dl(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)||(Ma=!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)||(Ma=!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,Gi,e),[t.memoizedState,e]}function sa(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Gi.updateQueue)?(t={lastEffect:null},Gi.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();Gi.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)}Gi.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=Vo();Ko(98>r?98:r,(function(){e(!0)})),Ko(97<r?97:r,(function(){var r=Qi.suspense;Qi.suspense=void 0===t?null:t;try{e(!1),n()}finally{Qi.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===Gi||null!==i&&i===Gi)Yi=!0,o.expirationTime=Vi,Gi.expirationTime=Vi;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 Da={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},Ea={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,Gi,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ta().memoizedState=e},useState:aa,useDebugValue:ya,useResponder:Wi,useDeferredValue:function(e,t){var n=aa(e),r=n[0],o=n[1];return pa((function(){var n=Qi.suspense;Qi.suspense=void 0===t?null:t;try{o(e)}finally{Qi.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:Wi,useDeferredValue:function(e,t){var n=oa(ra),r=n[0],o=n[1];return da((function(){var n=Qi.suspense;Qi.suspense=void 0===t?null:t;try{o(e)}finally{Qi.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:Wi,useDeferredValue:function(e,t){var n=ia(ra),r=n[0],o=n[1];return da((function(){var n=Qi.suspense;Qi.suspense=void 0===t?null:t;try{o(e)}finally{Qi.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,ka=null,Ia=!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 Ca(e){if(Ia){var t=ka;if(t){var n=t;if(!Ta(e,t)){if(!(t=kn(n.nextSibling))||!Ta(e,t))return e.effectTag=-1025&e.effectTag|2,Ia=!1,void(Oa=e);Pa(Oa,n)}Oa=e,ka=kn(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,Ia=!1,Oa=e}}function Na(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(!Ia)return Na(e),Ia=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!xn(t,e.memoizedProps))for(t=ka;t;)Pa(e,t),t=kn(t.nextSibling);if(Na(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){ka=kn(e.nextSibling);break e}t--}else n!==gn&&n!==wn&&n!==bn||t++}e=e.nextSibling}ka=null}}else ka=Oa?kn(e.stateNode.nextSibling):null;return!0}function Aa(){ka=Oa=null,Ia=!1}var La=J.ReactCurrentOwner,Ma=!1;function za(e,t,n,r){t.child=null===e?Ni(t,null,n,r):Ci(t,e.child,n,r)}function Ra(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||Ma?(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=Wl(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:Hr)(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&&Hr(e.memoizedProps,r)&&e.ref===t.ref&&(Ma=!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=Do(n)?wo:vo.current;return i=_o(t,i),ui(t,o),n=ea(e,t,n,r,i,o),null===e||Ma?(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(Do(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=Do(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||Ei(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=Do(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||Ei(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 Wa(e,t,n,r,i,o)}function Wa(e,t,n,r,o,i){Ba(e,t);var a=0!=(64&t.effectTag);if(!r&&!a)return o&&ko(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=Ci(t,e.child,null,i),t.child=Ci(t,null,s,i)):za(e,t,s,i),t.memoizedState=r.state,o&&ko(t,n,!0),t.child}function Ha(e){var t=e.stateNode;t.pendingContext?xo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&xo(0,t.context,!1),Ri(e,t.containerInfo)}var Qa,Va,Ga,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&&Ca(t),s){if(s=i.fallback,(i=Hl(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=Hl(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=Ni(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=Ci(t,e.child,i.children,n),t.memoizedState=null,t.child=n}if(e=e.child,s){if(s=i.fallback,(i=Hl(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=Hl(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=Ci(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&&El(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 Do(t.type)&&Eo(),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),Va(t),null;case 5:Bi(t),n=zi(Mi.current);var i=t.type;if(null!==e&&null!=t.stateNode)Ga(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[Cn]=s,i){case"iframe":case"object":case"embed":Gt("load",r);break;case"video":case"audio":for(e=0;e<Ye.length;e++)Gt(Ye[e],r);break;case"source":Gt("error",r);break;case"img":case"image":case"link":Gt("error",r),Gt("load",r);break;case"form":Gt("reset",r),Gt("submit",r);break;case"details":Gt("toggle",r);break;case"input":Ee(r,s),Gt("invalid",r),un(n,"onChange");break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Gt("invalid",r),un(n,"onChange");break;case"textarea":Ce(r,s),Gt("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=Me(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[Cn]=r,Qa(e,t,!1,!1),t.stateNode=e,l=sn(i,r),i){case"iframe":case"object":case"embed":Gt("load",e),u=r;break;case"video":case"audio":for(u=0;u<Ye.length;u++)Gt(Ye[u],e);u=r;break;case"source":Gt("error",e),u=r;break;case"img":case"image":case"link":Gt("error",e),Gt("load",e),u=r;break;case"form":Gt("reset",e),Gt("submit",e),u=r;break;case"details":Gt("toggle",e),u=r;break;case"input":Ee(e,r),u=De(e,r),Gt("invalid",e),un(n,"onChange");break;case"option":u=Ie(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},u=o({},r,{value:void 0}),Gt("invalid",e),un(n,"onChange");break;case"textarea":Ce(e,r),u=Te(e,r),Gt("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)}En(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(Mi.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=Ms):($s!==js&&$s!==Ms||($s=zs),0!==Gs&&null!==Fs&&(Jl(Fs,Us),Yl(Fs,Gs)))),(n||r)&&(t.effectTag|=4),null);case 4:return qi(),Va(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*Qo()-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=Qo()+500),n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Qo(),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:Do(e.type)&&Eo();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)}}Qa=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}},Va=function(){},Ga=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=De(u,a),r=De(u,r),e=[];break;case"option":a=Ie(u,a),r=Ie(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&&En(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[Cn]=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":Ne(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=Qo()),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 Ds="function"==typeof WeakMap?WeakMap:Map;function Es(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,ks=J.ReactCurrentDispatcher,Is=J.ReactCurrentOwner,Ps=0,Ts=8,Cs=16,Ns=32,js=0,As=1,Ls=2,Ms=3,zs=4,Rs=5,qs=Ps,Fs=null,Bs=null,Us=0,$s=js,Ws=null,Hs=1073741823,Qs=1073741823,Vs=null,Gs=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&(Cs|Ns))!==Ps?1073741821-(Qo()/10|0):0!==ll?ll:ll=1073741821-(Qo()/10|0)}function cl(e,t,n){if(0==(2&(t=t.mode)))return 1073741823;var r=Vo();if(0==(4&t))return 99===r?1073741823:1073741822;if((qs&Cs)!==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=Vo();1073741823===t?(qs&Ts)!==Ps&&(qs&(Cs|Ns))===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&&(El(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)-Qo()}),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&(Cs|Ns))!==Ps)throw Error(a(327));if(Nl(),e===Fs&&n===Us||bl(e,n),null!==Bs){var r=qs;qs|=Cs;for(var o=_l();;)try{Sl();break}catch(t){wl(e,t)}if(ai(),qs=r,ks.current=o,$s===As)throw t=Ws,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 Ms:if(Jl(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=Il(o)),1073741823===Hs&&10<(o=Js+Ys-Qo())){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=Il(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!==Qs?r=10*(1073741821-Qs)-Qo():1073741823===Hs?r=0:(r=10*(1073741821-Hs)-5e3,0>(r=(o=Qo())-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 Rs:if(1073741823!==Hs&&null!==Vs){i=Hs;var s=Vs;if(0>=(r=0|s.busyMinDurationMs)?r=0:(o=0|s.busyDelayMs,r=(i=Qo()-(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&(Cs|Ns))!==Ps)throw Error(a(327));if(Nl(),e===Fs&&t===Us||bl(e,t),null!==Bs){var n=qs;qs|=Cs;for(var r=_l();;)try{xl();break}catch(t){wl(e,t)}if(ai(),qs=n,ks.current=r,$s===As)throw n=Ws,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)&&Eo();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,Ws=null,Qs=Hs=1073741823,Vs=null,Gs=0,Ks=!1}function wl(e,t){for(;;){try{if(ai(),Hi.current=Da,Yi)for(var n=Gi.memoizedState;null!==n;){var r=n.queue;null!==r&&(r.pending=null),n=n.next}if(Vi=0,Ji=Ki=Gi=null,Yi=!1,null===Bs||null===Bs.return)return $s=As,Ws=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 Ds,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=Ml.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!==Rs&&($s=Ls),s=is(s,a),p=i;do{switch(p.tag){case 3:l=s,p.effectTag|=4096,p.expirationTime=t,yi(p,Es(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=kl(Bs)}catch(e){t=e;continue}break}}function _l(){var e=ks.current;return ks.current=Da,null===e?Da:e}function Dl(e,t){e<Hs&&2<e&&(Hs=e),null!==t&&e<Qs&&2<e&&(Qs=e,Vs=t)}function El(e){e>Gs&&(Gs=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=kl(e)),Is.current=null,t}function kl(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=Rs),null}function Il(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function Pl(e){var t=Vo();return Ko(99,Tl.bind(null,e,t)),null}function Tl(e,t){do{Nl()}while(null!==rl);if((qs&(Cs|Ns))!==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=Il(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|=Ns,Is.current=null,_n=Vt;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;Dn={activeElementDetached:null,focusedElem:s,selectionRange:l},Vt=!1,Xs=o;do{try{Cl()}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 D=_.ref;null!==D&&("function"==typeof D?D(null):D.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(D=Dn,_=mn(),w=D.focusedElem,l=D.selectionRange,_!==w&&w&&w.ownerDocument&&hn(w.ownerDocument.documentElement,w)){null!==l&&yn(w)&&(_=l.start,void 0===(D=l.end)&&(D=_),"selectionStart"in w?(w.selectionStart=_,w.selectionEnd=Math.min(D,w.value.length)):(D=(_=w.ownerDocument||document)&&_.defaultView||window).getSelection&&(D=D.getSelection(),c=w.textContent.length,s=Math.min(l.start,c),l=void 0===l.end?s:Math.min(l.end,c),!D.extend&&s>l&&(c=l,l=s,s=c),c=fn(w,s),p=fn(w,l),c&&p&&(1!==D.rangeCount||D.anchorNode!==c.node||D.anchorOffset!==c.offset||D.focusNode!==p.node||D.focusOffset!==p.offset)&&((_=_.createRange()).setStart(c.node,c.offset),D.removeAllRanges(),s>l?(D.addRange(_),D.extend(p.node,p.offset)):(_.setEnd(p.node,p.offset),D.addRange(_))))),_=[];for(D=w;D=D.parentNode;)1===D.nodeType&&_.push({element:D,left:D.scrollLeft,top:D.scrollTop});for("function"==typeof w.focus&&w.focus(),w=0;w<_.length;w++)(D=_[w]).element.scrollLeft=D.left,D.element.scrollTop=D.top}Vt=!!_n,Dn=_n=null,e.current=n,Xs=o;do{try{for(w=e;null!==Xs;){var E=Xs.effectTag;if(36&E&&ds(w,Xs.alternate,Xs),128&E){_=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 Rl&&Rl(n.stateNode,r),hl(e),Zs)throw Zs=!1,e=el,el=null,e;return(qs&Ts)!==Ps||Xo(),null}function Cl(){for(;null!==Xs;){var e=Xs.effectTag;0!=(256&e)&&us(Xs.alternate,Xs),0==(512&e)||nl||(nl=!0,Jo(97,(function(){return Nl(),null}))),Xs=Xs.nextEffect}}function Nl(){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&(Cs|Ns))!==Ps)throw Error(a(331));var t=qs;for(qs|=Ns,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=Es(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 Ml(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),Fs===e&&Us===n?$s===zs||$s===Ms&&1073741823===Hs&&Qo()-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)Ma=!0;else{if(r<n){switch(Ma=!1,t.tag){case 3:Ha(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:Do(t.type)&&Oo(t);break;case 4:Ri(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)}Ma=!1}}else Ma=!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,Do(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=Di,t.stateNode=o,o._reactInternalFiber=t,Oi(t,r,e,n),t=Wa(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=Ra(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(Ha(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)&&(ka=kn(t.stateNode.containerInfo.firstChild),Oa=t,o=Ia=!0),o)for(n=Ni(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&&Ca(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&&Ca(t),null;case 13:return Ya(e,t,n);case 4:return Ri(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Ci(t,null,r,n):za(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Ra(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,Do(r)?(e=!0,Oo(t)):e=!1,ui(t,n),xi(t,r,o),Oi(t,r,o,n),Wa(null,t,r,!0,e,n);case 19:return es(e,t,n)}throw Error(a(156,t.tag))};var Rl=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 Wl(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 Hl(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 Hl(e,t,n,r){return(e=Bl(7,e,r,t)).expirationTime=n,e}function Ql(e,t,n){return(e=Bl(6,e,null,t)).expirationTime=n,e}function Vl(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 Gl(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(Do(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(Do(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 Gl(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[Nn]=r.current,n&&0!==t&&function(e,t){var n=Ze(t);kt.forEach((function(e){mt(e,t,n)})),It.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[Nn]=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)}},I=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=Mn(r);if(!o)throw Error(a(90));_e(r),Se(r,o)}}}break;case"textarea":Ne(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()}},M=function(){(qs&(1|Cs|Ns))===Ps&&(function(){if(null!==il){var e=il;il=null,e.forEach((function(e,t){Xl(t,e),hl(t)})),Xo()}}(),Nl())},z=function(e,t){var n=qs;qs|=2;try{return e(t)}finally{(qs=n)===Ps&&Xo()}};var su={Events:[An,Ln,Mn,O,E,$n,function(e){it(e,Un)},N,j,Xt,lt,Nl,{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);Rl=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&(Cs|Ns))!==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[Nn]=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:function(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:function(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 D(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 D(e)||_(e)===c},t.isConcurrentMode=D,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:function(e,t,n){"use strict";e.exports=n(9921)},8359:function(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:function(e,t,n){"use strict";e.exports=n(8359)},2408:function(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 D(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 E=D.prototype=new _;E.constructor=D,r(E,w.prototype),E.isPureReactComponent=!0;var x={current:null},S=Object.prototype.hasOwnProperty,O={key:!0,ref:!0,__self:!0,__source:!0};function k(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 I(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var P=/\/+/g,T=[];function C(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 N(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 M(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)?R(e,r,n,(function(e){return e})):null!=e&&(I(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 R(e,t,n,r,o){var i="";null!=n&&(i=(""+n).replace(P,"$&/")+"/"),A(e,z,t=C(t,i,r,o)),N(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 R(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;A(e,M,t=C(null,null,t,n)),N(t)},count:function(e){return A(e,(function(){return null}),null)},toArray:function(e){var t=[];return R(e,t,null,(function(e){return e})),t},only:function(e){if(!I(e))throw Error(g(143));return e}},t.Component=w,t.Fragment=s,t.Profiler=u,t.PureComponent=D,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=k,t.createFactory=function(e){var t=k.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=I,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:function(e,t,n){"use strict";e.exports=n(2408)},2236:function(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:function(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:function(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:function(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:function(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:function(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 D=new MessageChannel,E=D.port2;D.port1.onmessage=function(){if(null!==v){var e=t.unstable_now();_=e+w;try{v(!0,e)?E.postMessage(null):(g=!1,v=null)}catch(e){throw E.postMessage(null),e}}else g=!1},n=function(e){v=e,g||(g=!0,E.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<k(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>k(a,n))void 0!==l&&0>k(l,a)?(e[r]=l,e[s]=n,r=s):(e[r]=a,e[i]=n,r=i);else{if(!(void 0!==l&&0>k(l,n)))break e;e[r]=l,e[s]=n,r=s}}}return t}return null}function k(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var I=[],P=[],T=1,C=null,N=3,j=!1,A=!1,L=!1;function M(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(I,t)}t=S(P)}}function z(e){if(L=!1,M(e),!A)if(null!==S(I))A=!0,n(R);else{var t=S(P);null!==t&&r(z,t.startTime-e)}}function R(e,n){A=!1,L&&(L=!1,o()),j=!0;var a=N;try{for(M(n),C=S(I);null!==C&&(!(C.expirationTime>n)||e&&!i());){var s=C.callback;if(null!==s){C.callback=null,N=C.priorityLevel;var l=s(C.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?C.callback=l:C===S(I)&&O(I),M(n)}else O(I);C=S(I)}if(null!==C)var u=!0;else{var c=S(P);null!==c&&r(z,c.startTime-n),u=!1}return u}finally{C=null,N=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(R))},t.unstable_getCurrentPriorityLevel=function(){return N},t.unstable_getFirstCallbackNode=function(){return S(I)},t.unstable_next=function(e){switch(N){case 1:case 2:case 3:var t=3;break;default:t=N}var n=N;N=t;try{return e()}finally{N=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=N;N=e;try{return t()}finally{N=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(I)&&e===S(P)&&(L?o():L=!0,r(z,l-s))):(e.sortIndex=a,x(I,e),A||j||(A=!0,n(R))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();M(e);var n=S(I);return n!==C&&null!==C&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<C.expirationTime||i()},t.unstable_wrapCallback=function(e){var t=N;return function(){var n=N;N=t;try{return e.apply(this,arguments)}finally{N=n}}}},3840:function(e,t,n){"use strict";e.exports=n(53)},7478:function(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),D=o.countChildren(u,a),E=r({},u,{nodeData:{parent:d,prev:h,prevSibling:g,next:m,nextSibling:v,siblingIndex:f,ancestors:y,numDescendants:_,numChildren:D}});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),[E]),n,a);E[a]=x.map(S)}return E}};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:function(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:function(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:function(e,t,n){"use strict";e.exports=n(3250)},2798:function(e,t,n){"use strict";e.exports=n(139)},4654:function(){},6130:function(e,t,n){e.exports=n(4779)},5733:function(e,t,n){n(6989)},8428:function(e,t,n){e.exports=n(6981)},6243:function(e,t,n){e.exports=n(8613)},8433:function(e,t,n){e.exports=n(8056)}},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=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(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=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},function(){"use strict";var e=n(7294),t=n(3935),r=n(1688),o=n(2798);let i=function(e){e()};const a=()=>i,s=Symbol.for("react-redux-context"),l="undefined"!=typeof globalThis?globalThis:{};function u(){var t;if(!e.createContext)return{};const n=null!=(t=l[s])?t:l[s]=new Map;let r=n.get(e.createContext);return r||(r=e.createContext(null),n.set(e.createContext,r)),r}const c=u();let p=null;function d(){return d=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},d.apply(this,arguments)}function f(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 h=n(8679),m=n.n(h),y=n(2973);const g=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function v(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 b(e){return function(t){const n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function w(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function _(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=w(e);let o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=w(o),o=r(t,n)),o},r}}function D(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function E(e,t,n){return d({},n,e,t)}const x={notify(){},get:()=>[]};function S(e,t){let n,r=x;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=x)},getListeners:()=>r};return s}const O=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement)?e.useLayoutEffect:e.useEffect;function k(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function I(e,t){if(k(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])||!k(e[n[r]],t[n[r]]))return!1;return!0}const P=["reactReduxForwardedRef"];let T=()=>{throw new Error("uSES not initialized!")};const C=[null,null];function N(e,t,n,r,o,i){e.current=r,n.current=!1,o.current&&(o.current=null,i())}function j(e,t){return e===t}var A=function(t,n,r,{pure:o,areStatesEqual:i=j,areOwnPropsEqual:a=I,areStatePropsEqual:s=I,areMergedPropsEqual:l=I,forwardRef:u=!1,context:p=c}={}){const h=p,w=function(e){return e?"function"==typeof e?_(e):D(e,"mapStateToProps"):b((()=>({})))}(t),x=function(e){return e&&"object"==typeof e?b((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?_(e):D(e,"mapDispatchToProps"):b((e=>({dispatch:e})))}(n),k=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):D(e,"mergeProps"):()=>E}(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:w,initMapDispatchToProps:x,initMergeProps:k,areStatesEqual:i,areStatePropsEqual:s,areOwnPropsEqual:a,areMergedPropsEqual:l};function c(n){const[r,i,a]=e.useMemo((()=>{const{reactReduxForwardedRef:e}=n,t=f(n,P);return[n.context,e,t]}),[n]),s=e.useMemo((()=>r&&r.Consumer&&(0,y.isContextConsumer)(e.createElement(r.Consumer,null))?r:h),[r,h]),l=e.useContext(s),u=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch),c=Boolean(l)&&Boolean(l.store);const p=u?n.store:l.store,m=c?l.getServerState:p.getState,b=e.useMemo((()=>function(e,t){let{initMapStateToProps:n,initMapDispatchToProps:r,initMergeProps:o}=t,i=f(t,g);return v(n(e,i),r(e,i),o(e,i),e,i)}(p.dispatch,o)),[p]),[w,_]=e.useMemo((()=>{if(!A)return C;const e=S(p,u?void 0:l.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[p,u,l]),D=e.useMemo((()=>u?l:d({},l,{subscription:w})),[u,l,w]),E=e.useRef(),x=e.useRef(a),k=e.useRef(),I=e.useRef(!1),j=(e.useRef(!1),e.useRef(!1)),L=e.useRef();O((()=>(j.current=!0,()=>{j.current=!1})),[]);const M=e.useMemo((()=>()=>k.current&&a===x.current?k.current:b(p.getState(),a)),[p,a]),z=e.useMemo((()=>e=>w?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,p,w,b,x,E,I,j,k,_,e):()=>{}),[w]);var R,q,F;let B;R=N,q=[x,E,I,a,k,_],O((()=>R(...q)),F);try{B=T(z,M,m?()=>b(m(),a):M)}catch(e){throw L.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${L.current.stack}\n\n`),e}O((()=>{L.current=void 0,k.current=void 0,E.current=B}));const U=e.useMemo((()=>e.createElement(t,d({},B,{ref:i}))),[i,t,B]);return e.useMemo((()=>A?e.createElement(s.Provider,{value:D},U):U),[s,U,D])}const p=e.memo(c);if(p.WrappedComponent=t,p.displayName=c.displayName=r,u){const n=e.forwardRef((function(t,n){return e.createElement(p,d({},t,{reactReduxForwardedRef:n}))}));return n.displayName=r,n.WrappedComponent=t,m()(n,t)}return m()(p,t)}};var L=function({store:t,context:n,children:r,serverState:o,stabilityCheck:i="once",noopCheck:a="once"}){const s=e.useMemo((()=>{const e=S(t);return{store:t,subscription:e,getServerState:o?()=>o:void 0,stabilityCheck:i,noopCheck:a}}),[t,o,i,a]),l=e.useMemo((()=>t.getState()),[t]);O((()=>{const{subscription:e}=s;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),l!==t.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}}),[s,l]);const u=n||c;return e.createElement(u.Provider,{value:s},r)};var M,z;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)}function q(e){var t=function(e,t){if("object"!==R(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==R(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===R(t)?t:String(t)}function F(e,t,n){return(t=q(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function B(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?B(Object(n),!0).forEach((function(t){F(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $(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. "}M=o.useSyncExternalStoreWithSelector,p=M,(e=>{T=e})(r.useSyncExternalStore),z=t.unstable_batchedUpdates,i=z;var W="function"==typeof Symbol&&Symbol.observable||"@@observable",H=function(){return Math.random().toString(36).substring(7).split("").join(".")},Q={INIT:"@@redux/INIT"+H(),REPLACE:"@@redux/REPLACE"+H(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+H()}};function V(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 G(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error($(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error($(1));return n(G)(e,t)}if("function"!=typeof e)throw new Error($(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($(3));return i}function p(e){if("function"!=typeof e)throw new Error($(4));if(l)throw new Error($(5));var t=!0;return u(),s.push(e),function(){if(t){if(l)throw new Error($(6));t=!1,u();var n=s.indexOf(e);s.splice(n,1),a=null}}}function d(e){if(!V(e))throw new Error($(7));if(void 0===e.type)throw new Error($(8));if(l)throw new Error($(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:Q.INIT}),(r={dispatch:d,subscribe:p,getState:c,replaceReducer:function(e){if("function"!=typeof e)throw new Error($(10));o=e,d({type:Q.REPLACE})}})[W]=function(){var e,t=p;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error($(11));function n(){e.next&&e.next(c())}return n(),{unsubscribe:t(n)}}})[W]=function(){return this},e},r}function K(e,t){return function(){return t(e.apply(this,arguments))}}function J(e,t){if("function"==typeof e)return K(e,t);if("object"!=typeof e||null===e)throw new Error($(16));var n={};for(var r in e){var o=e[r];"function"==typeof o&&(n[r]=K(o,t))}return n}function Y(){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 X=n(7523),Z=n.n(X),ee=n(8619),te=n.n(ee),ne="delete",re=5,oe=1<<re,ie=oe-1,ae={};function se(e){e&&(e.value=!0)}function le(){}function ue(e){return void 0===e.size&&(e.size=e.__iterate(pe)),e.size}function ce(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?ue(e)+t:t}function pe(){return!0}function de(e,t,n){return(0===e&&!ye(e)||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function fe(e,t){return me(e,t,0)}function he(e,t){return me(e,t,t)}function me(e,t,n){return void 0===e?n:ye(e)?t===1/0?t:0|Math.max(0,t+e):void 0===t||t===e?e:0|Math.min(t,e)}function ye(e){return e<0||0===e&&1/e==-1/0}var ge="@@__IMMUTABLE_ITERABLE__@@";function ve(e){return Boolean(e&&e[ge])}var be="@@__IMMUTABLE_KEYED__@@";function we(e){return Boolean(e&&e[be])}var _e="@@__IMMUTABLE_INDEXED__@@";function De(e){return Boolean(e&&e[_e])}function Ee(e){return we(e)||De(e)}var xe=function(e){return ve(e)?e:Je(e)},Se=function(e){function t(e){return we(e)?e:Ye(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(xe),Oe=function(e){function t(e){return De(e)?e:Xe(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(xe),ke=function(e){function t(e){return ve(e)&&!Ee(e)?e:Ze(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(xe);xe.Keyed=Se,xe.Indexed=Oe,xe.Set=ke;var Ie="@@__IMMUTABLE_SEQ__@@";function Pe(e){return Boolean(e&&e[Ie])}var Te="@@__IMMUTABLE_RECORD__@@";function Ce(e){return Boolean(e&&e[Te])}function Ne(e){return ve(e)||Ce(e)}var je="@@__IMMUTABLE_ORDERED__@@";function Ae(e){return Boolean(e&&e[je])}var Le=0,Me=1,ze=2,Re="function"==typeof Symbol&&Symbol.iterator,qe="@@iterator",Fe=Re||qe,Be=function(e){this.next=e};function Ue(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 $e(){return{value:void 0,done:!0}}function We(e){return!!Array.isArray(e)||!!Ve(e)}function He(e){return e&&"function"==typeof e.next}function Qe(e){var t=Ve(e);return t&&t.call(e)}function Ve(e){var t=e&&(Re&&e[Re]||e[qe]);if("function"==typeof t)return t}Be.prototype.toString=function(){return"[Iterator]"},Be.KEYS=Le,Be.VALUES=Me,Be.ENTRIES=ze,Be.prototype.inspect=Be.prototype.toSource=function(){return this.toString()},Be.prototype[Fe]=function(){return this};var Ge=Object.prototype.hasOwnProperty;function Ke(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 Je=function(e){function t(e){return null==e?ot():Ne(e)?e.toSeq():function(e){var t=st(e);if(t)return(r=Ve(n=e))&&r===n.entries?t.fromEntrySeq():function(e){var t=Ve(e);return t&&t===e.keys}(e)?t.toSetSeq():t;var n,r;if("object"==typeof e)return new tt(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 Be((function(){if(o===r)return{value:void 0,done:!0};var i=n[t?r-++o:o++];return Ue(e,i[0],i[1])}))}return this.__iteratorUncached(e,t)},t}(xe),Ye=function(e){function t(e){return null==e?ot().toKeyedSeq():ve(e)?we(e)?e.toSeq():e.fromEntrySeq():Ce(e)?e.toSeq():it(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toKeyedSeq=function(){return this},t}(Je),Xe=function(e){function t(e){return null==e?ot():ve(e)?we(e)?e.entrySeq():e.toIndexedSeq():Ce(e)?e.toSeq().entrySeq():at(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}(Je),Ze=function(e){function t(e){return(ve(e)&&!Ee(e)?e:Xe(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}(Je);Je.isSeq=Pe,Je.Keyed=Ye,Je.Set=Ze,Je.Indexed=Xe,Je.prototype[Ie]=!0;var et=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[ce(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 Be((function(){if(o===r)return{value:void 0,done:!0};var i=t?r-++o:o++;return Ue(e,i,n[i])}))},t}(Xe),tt=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 Ge.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 Be((function(){if(i===o)return{value:void 0,done:!0};var a=r[t?o-++i:i++];return Ue(e,a,n[a])}))},t}(Ye);tt.prototype[je]=!0;var nt,rt=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=Qe(this._collection),r=0;if(He(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=Qe(this._collection);if(!He(n))return new Be($e);var r=0;return new Be((function(){var t=n.next();return t.done?t:Ue(e,r++,t.value)}))},t}(Xe);function ot(){return nt||(nt=new et([]))}function it(e){var t=st(e);if(t)return t.fromEntrySeq();if("object"==typeof e)return new tt(e);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+e)}function at(e){var t=st(e);if(t)return t;throw new TypeError("Expected Array or collection object of values: "+e)}function st(e){return Ke(e)?new et(e):We(e)?new rt(e):void 0}var lt="@@__IMMUTABLE_MAP__@@";function ut(e){return Boolean(e&&e[lt])}function ct(e){return ut(e)&&Ae(e)}function pt(e){return Boolean(e&&"function"==typeof e.equals&&"function"==typeof e.hashCode)}function dt(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!!(pt(e)&&pt(t)&&e.equals(t))}var ft="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 ht(e){return e>>>1&1073741824|3221225471&e}var mt=Object.prototype.valueOf;function yt(e){if(null==e)return gt(e);if("function"==typeof e.hashCode)return ht(e.hashCode(e));var t,n=(t=e).valueOf!==mt&&"function"==typeof t.valueOf?t.valueOf(t):t;if(null==n)return gt(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 ht(t)}(n);case"string":return n.length>kt?function(e){var t=Tt[e];void 0===t&&(t=vt(e),Pt===It&&(Pt=0,Tt={}),Pt++,Tt[e]=t);return t}(n):vt(n);case"object":case"function":return function(e){var t;if(Et&&void 0!==(t=Dt.get(e)))return t;if(t=e[Ot],void 0!==t)return t;if(!wt){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Ot]))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=_t(),Et)Dt.set(e,t);else{if(void 0!==bt&&!1===bt(e))throw new Error("Non-extensible objects are not allowed as keys.");if(wt)Object.defineProperty(e,Ot,{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[Ot]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Ot]=t}}return t}(n);case"symbol":return function(e){var t=xt[e];if(void 0!==t)return t;return t=_t(),xt[e]=t,t}(n);default:if("function"==typeof n.toString)return vt(n.toString());throw new Error("Value type "+typeof n+" cannot be hashed.")}}function gt(e){return null===e?1108378658:1108378659}function vt(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return ht(t)}var bt=Object.isExtensible,wt=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();function _t(){var e=++St;return 1073741824&St&&(St=0),e}var Dt,Et="function"==typeof WeakMap;Et&&(Dt=new WeakMap);var xt=Object.create(null),St=0,Ot="__immutablehash__";"function"==typeof Symbol&&(Ot=Symbol(Ot));var kt=16,It=255,Pt=0,Tt={},Ct=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=zt(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},t.prototype.map=function(e,t){var n=this,r=Mt(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}(Ye);Ct.prototype[je]=!0;var 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.includes=function(e){return this._iter.includes(e)},t.prototype.__iterate=function(e,t){var n=this,r=0;return t&&ue(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(Me,t),o=0;return t&&ue(this),new Be((function(){var i=r.next();return i.done?i:Ue(e,t?n.size-++o:o++,i.value,i)}))},t}(Xe),jt=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(Me,t);return new Be((function(){var t=n.next();return t.done?t:Ue(e,t.value,t.value,t)}))},t}(Ze),At=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){Vt(t);var r=ve(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(Me,t);return new Be((function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){Vt(r);var o=ve(r);return Ue(e,o?r.get(0):r[0],o?r.get(1):r[1],t)}}}))},t}(Ye);function Lt(e){var t=Kt(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=Jt,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===ze){var r=e.__iterator(t,n);return new Be((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===Me?Le:Me,n)},t}function Mt(e,t,n){var r=Kt(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,o){var i=e.get(r,ae);return i===ae?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(ze,o);return new Be((function(){var o=i.next();if(o.done)return o;var a=o.value,s=a[0];return Ue(r,s,t.call(n,a[1],s,e),o)}))},r}function zt(e,t){var n=this,r=Kt(e);return r._iter=e,r.size=e.size,r.reverse=function(){return e},e.flip&&(r.flip=function(){var t=Lt(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=Jt,r.__iterate=function(n,r){var o=this,i=0;return r&&ue(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&&ue(e);var a=e.__iterator(ze,!o);return new Be((function(){var e=a.next();if(e.done)return e;var s=e.value;return Ue(r,t?s[0]:o?n.size-++i:i++,s[1],e)}))},r}function Rt(e,t,n,r){var o=Kt(e);return r&&(o.has=function(r){var o=e.get(r,ae);return o!==ae&&!!t.call(n,o,r,e)},o.get=function(r,o){var i=e.get(r,ae);return i!==ae&&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(ze,i),s=0;return new Be((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 Ue(o,r?u:s++,c,i)}}))},o}function qt(e,t,n,r){var o=e.size;if(de(t,n,o))return e;var i=fe(t,o),a=he(n,o);if(i!=i||a!=a)return qt(e.toSeq().cacheResult(),t,n,r);var s,l=a-i;l==l&&(s=l<0?0:l);var u=Kt(e);return u.size=0===s?s:e.size&&s||void 0,!r&&Pe(e)&&s>=0&&(u.get=function(t,n){return(t=ce(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 Be($e);var o=e.__iterator(t,n),a=0,l=0;return new Be((function(){for(;a++<i;)o.next();if(++l>s)return{value:void 0,done:!0};var e=o.next();return r||t===Me||e.done?e:Ue(t,l-1,t===Le?void 0:e.value[1],e)}))},u}function Ft(e,t,n,r){var o=Kt(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(ze,i),l=!0,u=0;return new Be((function(){var e,i,c;do{if((e=s.next()).done)return r||o===Me?e:Ue(o,u++,o===Le?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===ze?e:Ue(o,i,c,e)}))},o}function Bt(e,t,n){var r=Kt(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)&&ve(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 Be((function(){for(;i;){var e=i.next();if(!1===e.done){var l=e.value;if(r===ze&&(l=l[1]),t&&!(a.length<t)||!ve(l))return n?e:Ue(r,s++,l,e);a.push(i),i=l.__iterator(r,o)}else i=a.pop()}return{value:void 0,done:!0}}))},r}function Ut(e,t,n){t||(t=Yt);var r=we(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?Ye(i):De(e)?Xe(i):Ze(i)}function $t(e,t,n){if(t||(t=Yt),n){var r=e.toSeq().map((function(t,r){return[t,n(t,r,e)]})).reduce((function(e,n){return Wt(t,e[1],n[1])?n:e}));return r&&r[0]}return e.reduce((function(e,n){return Wt(t,e,n)?n:e}))}function Wt(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(null==n||n!=n)||r>0}function Ht(e,t,n,r){var o=Kt(e),i=new et(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(Me,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=xe(e),Qe(o?e.reverse():e)})),a=0,s=!1;return new Be((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}:Ue(e,a++,t.apply(null,n.map((function(e){return e.value}))))}))},o}function Qt(e,t){return e===t?e:Pe(e)?t:e.constructor(t)}function Vt(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function Gt(e){return we(e)?Se:De(e)?Oe:ke}function Kt(e){return Object.create((we(e)?Ye:De(e)?Xe:Ze).prototype)}function Jt(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Je.prototype.cacheResult.call(this)}function Yt(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 Xt(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 Zt(e,t){if(!e)throw new Error(t)}function en(e){Zt(e!==1/0,"Cannot perform this action with an infinite size.")}function tn(e){if(Ke(e)&&"string"!=typeof e)return e;if(Ae(e))return e.toArray();throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: "+e)}Nt.prototype.cacheResult=Ct.prototype.cacheResult=jt.prototype.cacheResult=At.prototype.cacheResult=Jt;var nn=Object.prototype.toString;function rn(e){if(!e||"object"!=typeof e||"[object Object]"!==nn.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 on(e){return"object"==typeof e&&(Ne(e)||Array.isArray(e)||rn(e))}function an(e){try{return"string"==typeof e?JSON.stringify(e):String(e)}catch(t){return JSON.stringify(e)}}function sn(e,t){return Ne(e)?e.has(t):on(e)&&Ge.call(e,t)}function ln(e,t,n){return Ne(e)?e.get(t,n):sn(e,t)?"function"==typeof e.get?e.get(t):e[t]:n}function un(e){if(Array.isArray(e))return Xt(e);var t={};for(var n in e)Ge.call(e,n)&&(t[n]=e[n]);return t}function cn(e,t){if(!on(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(Ne(e)){if(!e.remove)throw new TypeError("Cannot update immutable value without .remove() method: "+e);return e.remove(t)}if(!Ge.call(e,t))return e;var n=un(e);return Array.isArray(n)?n.splice(t,1):delete n[t],n}function pn(e,t,n){if(!on(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(Ne(e)){if(!e.set)throw new TypeError("Cannot update immutable value without .set() method: "+e);return e.set(t,n)}if(Ge.call(e,t)&&n===e[t])return e;var r=un(e);return r[t]=n,r}function dn(e,t,n,r){r||(r=n,n=void 0);var o=fn(Ne(e),e,tn(t),0,n,r);return o===ae?n:o}function fn(e,t,n,r,o,i){var a=t===ae;if(r===n.length){var s=a?o:t,l=i(s);return l===s?t:l}if(!a&&!on(t))throw new TypeError("Cannot update within non-data-structure value in path ["+n.slice(0,r).map(an)+"]: "+t);var u=n[r],c=a?ae:ln(t,u,ae),p=fn(c===ae?e:Ne(c),c,n,r+1,o,i);return p===c?t:p===ae?cn(t,u):pn(a?e?Qn():{}:t,u,p)}function hn(e,t,n){return dn(e,t,ae,(function(){return n}))}function mn(e,t){return hn(this,e,t)}function yn(e,t){return dn(e,t,(function(){return ae}))}function gn(e){return yn(this,e)}function vn(e,t,n,r){return dn(e,[t],n,r)}function bn(e,t,n){return 1===arguments.length?e(this):vn(this,e,t,n)}function wn(e,t,n){return dn(this,e,t,n)}function _n(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return En(this,e)}function Dn(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 En(this,t,e)}function En(e,t,n){for(var r=[],o=0;o<t.length;o++){var i=Se(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){vn(e,r,ae,(function(e){return e===ae?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 xn(e,t,n){return Sn(e,t,function(e){function t(n,r,o){return on(n)&&on(r)&&(i=r,a=Je(n),s=Je(i),De(a)===De(s)&&we(a)===we(s))?Sn(n,[r],t):e?e(n,r,o):r;var i,a,s}return t}(n))}function Sn(e,t,n){if(!on(e))throw new TypeError("Cannot merge into non-data-structure value: "+e);if(Ne(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?Oe:Se,a=r?function(t){o===e&&(o=un(o)),o.push(t)}:function(t,r){var i=Ge.call(o,r),a=i&&n?n(o[r],t,r):t;i&&a===o[r]||(o===e&&(o=un(o)),o[r]=a)},s=0;s<t.length;s++)i(t[s]).forEach(a);return o}function On(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return xn(this,e)}function kn(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return xn(this,t,e)}function In(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return dn(this,e,Qn(),(function(e){return Sn(e,t)}))}function Pn(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return dn(this,e,Qn(),(function(e){return xn(e,t)}))}function Tn(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this}function Cn(){return this.__ownerID?this:this.__ensureOwner(new le)}function Nn(){return this.__ensureOwner()}function jn(){return this.__altered}var An=function(e){function t(t){return null==t?Qn():ut(t)&&!Ae(t)?t:Qn().withMutations((function(n){var r=e(t);en(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 Qn().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 Vn(this,e,t)},t.prototype.remove=function(e){return Vn(this,e,ae)},t.prototype.deleteAll=function(e){var t=xe(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):Qn()},t.prototype.sort=function(e){return vr(Ut(this,e))},t.prototype.sortBy=function(e,t){return vr(Ut(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 Un(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?Hn(this.size,this._root,e,this.__hash):0===this.size?Qn():(this.__ownerID=e,this.__altered=!1,this)},t}(Se);An.isMap=ut;var Ln=An.prototype;Ln[lt]=!0,Ln[ne]=Ln.remove,Ln.removeAll=Ln.deleteAll,Ln.setIn=mn,Ln.removeIn=Ln.deleteIn=gn,Ln.update=bn,Ln.updateIn=wn,Ln.merge=Ln.concat=_n,Ln.mergeWith=Dn,Ln.mergeDeep=On,Ln.mergeDeepWith=kn,Ln.mergeIn=In,Ln.mergeDeepIn=Pn,Ln.withMutations=Tn,Ln.wasAltered=jn,Ln.asImmutable=Nn,Ln["@@transducer/init"]=Ln.asMutable=Cn,Ln["@@transducer/step"]=function(e,t){return e.set(t[0],t[1])},Ln["@@transducer/result"]=function(e){return e.asImmutable()};var Mn=function(e,t){this.ownerID=e,this.entries=t};Mn.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(dt(n,o[i][0]))return o[i][1];return r},Mn.prototype.update=function(e,t,n,r,o,i,a){for(var s=o===ae,l=this.entries,u=0,c=l.length;u<c&&!dt(r,l[u][0]);u++);var p=u<c;if(p?l[u][1]===o:s)return this;if(se(a),(s||!p)&&se(i),!s||1!==l.length){if(!p&&!s&&l.length>=Zn)return function(e,t,n,r){e||(e=new le);for(var o=new Fn(e,yt(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:Xt(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 Mn(e,f)}};var zn=function(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n};zn.prototype.get=function(e,t,n,r){void 0===t&&(t=yt(n));var o=1<<((0===e?t:t>>>e)&ie),i=this.bitmap;return 0==(i&o)?r:this.nodes[Yn(i&o-1)].get(e+re,t,n,r)},zn.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=yt(r));var s=(0===t?n:n>>>t)&ie,l=1<<s,u=this.bitmap,c=0!=(u&l);if(!c&&o===ae)return this;var p=Yn(u&l-1),d=this.nodes,f=c?d[p]:void 0,h=Gn(f,e,t+re,n,r,o,i,a);if(h===f)return this;if(!c&&h&&d.length>=er)return function(e,t,n,r,o){for(var i=0,a=new Array(oe),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[i++]:void 0;return a[r]=o,new Rn(e,i+1,a)}(e,d,u,s,h);if(c&&!h&&2===d.length&&Kn(d[1^p]))return d[1^p];if(c&&h&&1===d.length&&Kn(h))return h;var m=e&&e===this.ownerID,y=c?h?u:u^l:u|l,g=c?h?Xn(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 zn(e,y,g)};var Rn=function(e,t,n){this.ownerID=e,this.count=t,this.nodes=n};Rn.prototype.get=function(e,t,n,r){void 0===t&&(t=yt(n));var o=(0===e?t:t>>>e)&ie,i=this.nodes[o];return i?i.get(e+re,t,n,r):r},Rn.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=yt(r));var s=(0===t?n:n>>>t)&ie,l=o===ae,u=this.nodes,c=u[s];if(l&&!c)return this;var p=Gn(c,e,t+re,n,r,o,i,a);if(p===c)return this;var d=this.count;if(c){if(!p&&--d<tr)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 zn(e,o,a)}(e,u,d,s)}else d++;var f=e&&e===this.ownerID,h=Xn(u,s,p,f);return f?(this.count=d,this.nodes=h,this):new Rn(e,d,h)};var qn=function(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n};qn.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(dt(n,o[i][0]))return o[i][1];return r},qn.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=yt(r));var s=o===ae;if(n!==this.keyHash)return s?this:(se(a),se(i),Jn(this,e,t,n,[r,o]));for(var l=this.entries,u=0,c=l.length;u<c&&!dt(r,l[u][0]);u++);var p=u<c;if(p?l[u][1]===o:s)return this;if(se(a),(s||!p)&&se(i),s&&2===c)return new Fn(e,this.keyHash,l[1^u]);var d=e&&e===this.ownerID,f=d?l:Xt(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 qn(e,this.keyHash,f)};var Fn=function(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n};Fn.prototype.get=function(e,t,n,r){return dt(n,this.entry[0])?this.entry[1]:r},Fn.prototype.update=function(e,t,n,r,o,i,a){var s=o===ae,l=dt(r,this.entry[0]);return(l?o===this.entry[1]:s)?this:(se(a),s?void se(i):l?e&&e===this.ownerID?(this.entry[1]=o,this):new Fn(e,this.keyHash,[r,o]):(se(i),Jn(this,e,t,yt(r),[r,o])))},Mn.prototype.iterate=qn.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},zn.prototype.iterate=Rn.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}},Fn.prototype.iterate=function(e,t){return e(this.entry)};var Bn,Un=function(e){function t(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&Wn(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 $n(e,n.entry)}else if(n.entries){if(r<=(o=n.entries.length-1))return $n(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 $n(e,i.entry);t=this._stack=Wn(i,t)}continue}t=this._stack=this._stack.__prev}return{value:void 0,done:!0}},t}(Be);function $n(e,t){return Ue(e,t[0],t[1])}function Wn(e,t){return{node:e,index:0,__prev:t}}function Hn(e,t,n,r){var o=Object.create(Ln);return o.size=e,o._root=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Qn(){return Bn||(Bn=Hn(0))}function Vn(e,t,n){var r,o;if(e._root){var i={value:!1},a={value:!1};if(r=Gn(e._root,e.__ownerID,0,void 0,t,n,i,a),!a.value)return e;o=e.size+(i.value?n===ae?-1:1:0)}else{if(n===ae)return e;o=1,r=new Mn(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=o,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?Hn(o,r):Qn()}function Gn(e,t,n,r,o,i,a,s){return e?e.update(t,n,r,o,i,a,s):i===ae?e:(se(s),se(a),new Fn(t,r,[o,i]))}function Kn(e){return e.constructor===Fn||e.constructor===qn}function Jn(e,t,n,r,o){if(e.keyHash===r)return new qn(t,r,[e.entry,o]);var i,a=(0===n?e.keyHash:e.keyHash>>>n)&ie,s=(0===n?r:r>>>n)&ie,l=a===s?[Jn(e,t,n+re,r,o)]:(i=new Fn(t,r,o),a<s?[e,i]:[i,e]);return new zn(t,1<<a|1<<s,l)}function Yn(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function Xn(e,t,n,r){var o=r?e:Xt(e);return o[t]=n,o}var Zn=oe/4,er=oe/2,tr=oe/4,nr="@@__IMMUTABLE_LIST__@@";function rr(e){return Boolean(e&&e[nr])}var or=function(e){function t(t){var n=pr();if(null==t)return n;if(rr(t))return t;var r=e(t),o=r.size;return 0===o?n:(en(o),o>0&&o<oe?cr(0,o,re,null,new ar(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=ce(this,e))>=0&&e<this.size){var n=hr(this,e+=this._origin);return n&&n.array[e&ie]}return t},t.prototype.set=function(e,t){return function(e,t,n){if(t=ce(e,t),t!=t)return e;if(t>=e.size||t<0)return e.withMutations((function(e){t<0?mr(e,t).set(0,n):mr(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,o=e._root,i={value:!1};t>=yr(e._capacity)?r=dr(r,e.__ownerID,0,t,n,i):o=dr(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 cr(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=re,this._root=this._tail=this.__hash=void 0,this.__altered=!0,this):pr()},t.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){mr(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])}))},t.prototype.pop=function(){return mr(this,0,-1)},t.prototype.unshift=function(){var e=arguments;return this.withMutations((function(t){mr(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])}))},t.prototype.shift=function(){return mr(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&&We(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 mr(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 de(e,t,n)?this:mr(this,fe(e,n),he(t,n))},t.prototype.__iterator=function(e,t){var n=t?this.size:0,r=ur(this,t);return new Be((function(){var o=r();return o===lr?{value:void 0,done:!0}:Ue(e,t?--n:n++,o)}))},t.prototype.__iterate=function(e,t){for(var n,r=t?this.size:0,o=ur(this,t);(n=o())!==lr&&!1!==e(n,t?--r:r++,this););return r},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?cr(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):0===this.size?pr():(this.__ownerID=e,this.__altered=!1,this)},t}(Oe);or.isList=rr;var ir=or.prototype;ir[nr]=!0,ir[ne]=ir.remove,ir.merge=ir.concat,ir.setIn=mn,ir.deleteIn=ir.removeIn=gn,ir.update=bn,ir.updateIn=wn,ir.mergeIn=In,ir.mergeDeepIn=Pn,ir.withMutations=Tn,ir.wasAltered=jn,ir.asImmutable=Nn,ir["@@transducer/init"]=ir.asMutable=Cn,ir["@@transducer/step"]=function(e,t){return e.push(t)},ir["@@transducer/result"]=function(e){return e.asImmutable()};var ar=function(e,t){this.array=e,this.ownerID=t};ar.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&ie;if(r>=this.array.length)return new ar([],e);var o,i=0===r;if(t>0){var a=this.array[r];if((o=a&&a.removeBefore(e,t-re,n))===a&&i)return this}if(i&&!o)return this;var s=fr(this,e);if(!i)for(var l=0;l<r;l++)s.array[l]=void 0;return o&&(s.array[r]=o),s},ar.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r,o=n-1>>>t&ie;if(o>=this.array.length)return this;if(t>0){var i=this.array[o];if((r=i&&i.removeAfter(e,t-re,n))===i&&o===this.array.length-1)return this}var a=fr(this,e);return a.array.splice(o+1),r&&(a.array[o]=r),a};var sr,lr={};function ur(e,t){var n=e._origin,r=e._capacity,o=yr(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>oe&&(u=oe);return function(){if(l===u)return lr;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>oe&&(c=oe);return function(){for(;;){if(s){var e=s();if(e!==lr)return e;s=null}if(u===c)return lr;var n=t?--c:u++;s=a(l&&l[n],o-re,i+(n<<o))}}}(e,s,l)}}function cr(e,t,n,r,o,i,a){var s=Object.create(ir);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 pr(){return sr||(sr=cr(0,0,re))}function dr(e,t,n,r,o,i){var a,s=r>>>n&ie,l=e&&s<e.array.length;if(!l&&void 0===o)return e;if(n>0){var u=e&&e.array[s],c=dr(u,t,n-re,r,o,i);return c===u?e:((a=fr(e,t)).array[s]=c,a)}return l&&e.array[s]===o?e:(i&&se(i),a=fr(e,t),void 0===o&&s===a.array.length-1?a.array.pop():a.array[s]=o,a)}function fr(e,t){return t&&e&&t===e.ownerID?e:new ar(e?e.array.slice():[],t)}function hr(e,t){if(t>=yr(e._capacity))return e._tail;if(t<1<<e._level+re){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&ie],r-=re;return n}}function mr(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new le,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 ar(u&&u.array.length?[void 0,u]:[],r),c+=1<<(l+=re);c&&(a+=c,o+=c,s+=c,i+=c);for(var p=yr(i),d=yr(s);d>=1<<l+re;)u=new ar(u&&u.array.length?[u]:[],r),l+=re;var f=e._tail,h=d<p?hr(e,s-1):d>p?new ar([],r):f;if(f&&d>p&&a<i&&f.array.length){for(var m=u=fr(u,r),y=l;y>re;y-=re){var g=p>>>y&ie;m=m.array[g]=fr(m.array[g],r)}m.array[p>>>re&ie]=f}if(s<i&&(h=h&&h.removeAfter(r,0,s)),a>=d)a-=d,s-=d,l=re,u=null,h=h&&h.removeBefore(r,0,a);else if(a>o||d<p){for(c=0;u;){var v=a>>>l&ie;if(v!==d>>>l&ie)break;v&&(c+=(1<<l)*v),l-=re,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):cr(a,s,l,u,h)}function yr(e){return e<oe?0:e-1>>>re<<re}var gr,vr=function(e){function t(e){return null==e?wr():ct(e)?e:wr().withMutations((function(t){var n=Se(e);en(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):wr()},t.prototype.set=function(e,t){return _r(this,e,t)},t.prototype.remove=function(e){return _r(this,e,ae)},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?br(t,n,e,this.__hash):0===this.size?wr():(this.__ownerID=e,this.__altered=!1,this._map=t,this._list=n,this)},t}(An);function br(e,t,n,r){var o=Object.create(vr.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 wr(){return gr||(gr=br(Qn(),pr()))}function _r(e,t,n){var r,o,i=e._map,a=e._list,s=i.get(t),l=void 0!==s;if(n===ae){if(!l)return e;a.size>=oe&&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):br(r,o)}vr.isOrderedMap=ct,vr.prototype[je]=!0,vr.prototype[ne]=vr.prototype.remove;var Dr="@@__IMMUTABLE_STACK__@@";function Er(e){return Boolean(e&&e[Dr])}var xr=function(e){function t(e){return null==e?Ir():Er(e)?e:Ir().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=ce(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):kr(t,n)},t.prototype.pushAll=function(t){if(0===(t=e(t)).size)return this;if(0===this.size&&Er(t))return t;en(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):kr(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):Ir()},t.prototype.slice=function(t,n){if(de(t,n,this.size))return this;var r=fe(t,this.size);if(he(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):kr(o,i)},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?kr(this.size,this._head,e,this.__hash):0===this.size?Ir():(this.__ownerID=e,this.__altered=!1,this)},t.prototype.__iterate=function(e,t){var n=this;if(t)return new et(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 et(this.toArray()).__iterator(e,t);var n=0,r=this._head;return new Be((function(){if(r){var t=r.value;return r=r.next,Ue(e,n++,t)}return{value:void 0,done:!0}}))},t}(Oe);xr.isStack=Er;var Sr,Or=xr.prototype;function kr(e,t,n,r){var o=Object.create(Or);return o.size=e,o._head=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Ir(){return Sr||(Sr=kr(0))}Or[Dr]=!0,Or.shift=Or.pop,Or.unshift=Or.push,Or.unshiftAll=Or.pushAll,Or.withMutations=Tn,Or.wasAltered=jn,Or.asImmutable=Nn,Or["@@transducer/init"]=Or.asMutable=Cn,Or["@@transducer/step"]=function(e,t){return e.unshift(t)},Or["@@transducer/result"]=function(e){return e.asImmutable()};var Pr="@@__IMMUTABLE_SET__@@";function Tr(e){return Boolean(e&&e[Pr])}function Cr(e){return Tr(e)&&Ae(e)}function Nr(e,t){if(e===t)return!0;if(!ve(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||we(e)!==we(t)||De(e)!==De(t)||Ae(e)!==Ae(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!Ee(e);if(Ae(e)){var r=e.entries();return t.every((function(e,t){var o=r.next().value;return o&&dt(o[1],e)&&(n||dt(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?!dt(t,e.get(r,ae)):!dt(e.get(r,ae),t))return a=!1,!1}));return a&&e.size===s}function jr(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 Ar(e){if(!e||"object"!=typeof e)return e;if(!ve(e)){if(!on(e))return e;e=Je(e)}if(we(e)){var t={};return e.__iterate((function(e,n){t[n]=Ar(e)})),t}var n=[];return e.__iterate((function(e){n.push(Ar(e))})),n}var Lr=function(e){function t(t){return null==t?Fr():Tr(t)&&!Ae(t)?t:Fr().withMutations((function(n){var r=e(t);en(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(Se(e).keySeq())},t.intersect=function(e){return(e=xe(e).toArray()).length?zr.intersect.apply(t(e.pop()),e):Fr()},t.union=function(e){return(e=xe(e).toArray()).length?zr.union.apply(t(e.pop()),e):Fr()},t.prototype.toString=function(){return this.__toString("Set {","}")},t.prototype.has=function(e){return this._map.has(e)},t.prototype.add=function(e){return Rr(this,this._map.set(e,e))},t.prototype.remove=function(e){return Rr(this,this._map.remove(e))},t.prototype.clear=function(){return Rr(this,this._map.clear())},t.prototype.map=function(e,t){var n=this,r=!1,o=Rr(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 io(Ut(this,e))},t.prototype.sortBy=function(e,t){return io(Ut(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}(ke);Lr.isSet=Tr;var Mr,zr=Lr.prototype;function Rr(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 qr(e,t){var n=Object.create(zr);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Fr(){return Mr||(Mr=qr(Qn()))}zr[Pr]=!0,zr[ne]=zr.remove,zr.merge=zr.concat=zr.union,zr.withMutations=Tn,zr.asImmutable=Nn,zr["@@transducer/init"]=zr.asMutable=Cn,zr["@@transducer/step"]=function(e,t){return e.add(t)},zr["@@transducer/result"]=function(e){return e.asImmutable()},zr.__empty=Fr,zr.__make=qr;var Br,Ur=function(e){function t(e,n,r){if(!(this instanceof t))return new t(e,n,r);if(Zt(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(Br)return Br;Br=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+ce(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 de(e,n,this.size)?this:(e=fe(e,this.size),(n=he(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 Be((function(){if(i===n)return{value:void 0,done:!0};var a=o;return o+=t?-r:r,Ue(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:Nr(this,e)},t}(Xe);function $r(e,t,n){for(var r=tn(t),o=0;o!==r.length;)if((e=ln(e,r[o++],ae))===ae)return n;return e}function Wr(e,t){return $r(this,e,t)}function Hr(e,t){return $r(e,t,ae)!==ae}function Qr(){en(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e}xe.isIterable=ve,xe.isKeyed=we,xe.isIndexed=De,xe.isAssociative=Ee,xe.isOrdered=Ae,xe.Iterator=Be,jr(xe,{toArray:function(){en(this.size);var e=new Array(this.size||0),t=we(this),n=0;return this.__iterate((function(r,o){e[n++]=t?[o,r]:r})),e},toIndexedSeq:function(){return new Nt(this)},toJS:function(){return Ar(this)},toKeyedSeq:function(){return new Ct(this,!0)},toMap:function(){return An(this.toKeyedSeq())},toObject:Qr,toOrderedMap:function(){return vr(this.toKeyedSeq())},toOrderedSet:function(){return io(we(this)?this.valueSeq():this)},toSet:function(){return Lr(we(this)?this.valueSeq():this)},toSetSeq:function(){return new jt(this)},toSeq:function(){return De(this)?this.toIndexedSeq():we(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return xr(we(this)?this.valueSeq():this)},toList:function(){return or(we(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 Qt(this,function(e,t){var n=we(e),r=[e].concat(t).map((function(e){return ve(e)?n&&(e=Se(e)):e=n?it(e):at(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&&we(o)||De(e)&&De(o))return o}var i=new et(r);return n?i=i.toKeyedSeq():De(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 dt(t,e)}))},entries:function(){return this.__iterator(ze)},every:function(e,t){en(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 Qt(this,Rt(this,e,t,!0))},partition:function(e,t){return function(e,t,n){var r=we(e),o=[[],[]];e.__iterate((function(i,a){o[t.call(n,i,a,e)?1:0].push(r?[a,i]:i)}));var i=Gt(e);return o.map((function(t){return Qt(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 en(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){en(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(Le)},map:function(e,t){return Qt(this,Mt(this,e,t))},reduce:function(e,t,n){return Yr(this,e,t,n,arguments.length<2,!1)},reduceRight:function(e,t,n){return Yr(this,e,t,n,arguments.length<2,!0)},reverse:function(){return Qt(this,zt(this,!0))},slice:function(e,t){return Qt(this,qt(this,e,t,!0))},some:function(e,t){return!this.every(eo(e),t)},sort:function(e){return Qt(this,Ut(this,e))},values:function(){return this.__iterator(Me)},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 ue(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var r=An().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 Nr(this,e)},entrySeq:function(){var e=this;if(e._cache)return new et(e._cache);var t=e.toSeq().map(Zr).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(eo(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(pe,null,e)},flatMap:function(e,t){return Qt(this,function(e,t,n){var r=Gt(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 Qt(this,Bt(this,e,!0))},fromEntrySeq:function(){return new At(this)},get:function(e,t){return this.find((function(t,n){return dt(n,e)}),void 0,t)},getIn:Wr,groupBy:function(e,t){return function(e,t,n){var r=we(e),o=(Ae(e)?vr():An()).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=Gt(e);return o.map((function(t){return Qt(e,i(t))})).asImmutable()}(this,e,t)},has:function(e){return this.get(e,ae)!==ae},hasIn:function(e){return Hr(this,e)},isSubset:function(e){return e="function"==typeof e.includes?e:xe(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:xe(e)).isSubset(this)},keyOf:function(e){return this.findKey((function(t){return dt(t,e)}))},keySeq:function(){return this.toSeq().map(Xr).toIndexedSeq()},last:function(e){return this.toSeq().reverse().first(e)},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return $t(this,e)},maxBy:function(e,t){return $t(this,t,e)},min:function(e){return $t(this,e?to(e):ro)},minBy:function(e,t){return $t(this,t?to(t):ro,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 Qt(this,Ft(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(eo(e),t)},sortBy:function(e,t){return Qt(this,Ut(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 Qt(this,function(e,t,n){var r=Kt(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(ze,o),s=!0;return new Be((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===ze?e:Ue(r,l,u,e):(s=!1,{value:void 0,done:!0})}))},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(eo(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=Ae(e),n=we(e),r=t?1:0;return function(e,t){return t=ft(t,3432918353),t=ft(t<<15|t>>>-15,461845907),t=ft(t<<13|t>>>-13,5),t=(t+3864292196|0)^e,t=ft(t^t>>>16,2246822507),t=ft(t^t>>>13,3266489909),t=ht(t^t>>>16),t}(e.__iterate(n?t?function(e,t){r=31*r+oo(yt(e),yt(t))|0}:function(e,t){r=r+oo(yt(e),yt(t))|0}:t?function(e){r=31*r+yt(e)|0}:function(e){r=r+yt(e)|0}),r)}(this))}});var Vr=xe.prototype;Vr[ge]=!0,Vr[Fe]=Vr.values,Vr.toJSON=Vr.toArray,Vr.__toStringMapper=an,Vr.inspect=Vr.toSource=function(){return this.toString()},Vr.chain=Vr.flatMap,Vr.contains=Vr.includes,jr(Se,{flip:function(){return Qt(this,Lt(this))},mapEntries:function(e,t){var n=this,r=0;return Qt(this,this.toSeq().map((function(o,i){return e.call(t,[i,o],r++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return Qt(this,this.toSeq().flip().map((function(r,o){return e.call(t,r,o,n)})).flip())}});var Gr=Se.prototype;Gr[be]=!0,Gr[Fe]=Vr.entries,Gr.toJSON=Qr,Gr.__toStringMapper=function(e,t){return an(t)+": "+an(e)},jr(Oe,{toKeyedSeq:function(){return new Ct(this,!1)},filter:function(e,t){return Qt(this,Rt(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 Qt(this,zt(this,!1))},slice:function(e,t){return Qt(this,qt(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=fe(e,e<0?this.count():this.size);var r=this.slice(0,e);return Qt(this,1===n?r:r.concat(Xt(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 Qt(this,Bt(this,e,!1))},get:function(e,t){return(e=ce(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=ce(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return Qt(this,function(e,t){var n=Kt(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(Me,r),a=0;return new Be((function(){return(!o||a%2)&&(o=i.next()).done?o:a%2?Ue(n,a++,t):Ue(n,a++,o.value,o)}))},n}(this,e))},interleave:function(){var e=[this].concat(Xt(arguments)),t=Ht(this.toSeq(),Xe.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),Qt(this,n)},keySeq:function(){return Ur(0,this.size)},last:function(e){return this.get(-1,e)},skipWhile:function(e,t){return Qt(this,Ft(this,e,t,!1))},zip:function(){return Qt(this,Ht(this,no,[this].concat(Xt(arguments))))},zipAll:function(){return Qt(this,Ht(this,no,[this].concat(Xt(arguments)),!0))},zipWith:function(e){var t=Xt(arguments);return t[0]=this,Qt(this,Ht(this,e,t))}});var Kr=Oe.prototype;Kr[_e]=!0,Kr[je]=!0,jr(ke,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}});var Jr=ke.prototype;function Yr(e,t,n,r,o,i){return en(e.size),e.__iterate((function(e,i,a){o?(o=!1,n=e):n=t.call(r,n,e,i,a)}),i),n}function Xr(e,t){return t}function Zr(e,t){return[t,e]}function eo(e){return function(){return!e.apply(this,arguments)}}function to(e){return function(){return-e.apply(this,arguments)}}function no(){return Xt(arguments)}function ro(e,t){return e<t?1:e>t?-1:0}function oo(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}Jr.has=Vr.includes,Jr.contains=Jr.includes,Jr.keys=Jr.values,jr(Ye,Gr),jr(Xe,Kr),jr(Ze,Jr);var io=function(e){function t(e){return null==e?uo():Cr(e)?e:uo().withMutations((function(t){var n=ke(e);en(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(Se(e).keySeq())},t.prototype.toString=function(){return this.__toString("OrderedSet {","}")},t}(Lr);io.isOrderedSet=Cr;var ao,so=io.prototype;function lo(e,t){var n=Object.create(so);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function uo(){return ao||(ao=lo(wr()))}so[je]=!0,so.zip=Kr.zip,so.zipWith=Kr.zipWith,so.zipAll=Kr.zipAll,so.__empty=uo,so.__make=lo;var co=function(e,t){var n;!function(e){if(Ce(e))throw new Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(Ne(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 "+ho(this)+' with property "'+c+'" since that property name is part of the Record API.'):yo(o,c)}}return this.__ownerID=void 0,this._values=or().withMutations((function(e){e.setSize(a._keys.length),Se(i).forEach((function(t,n){e.set(a._indices[n],t===a._defaultValues[n]?void 0:t)}))})),this},o=r.prototype=Object.create(po);return o.constructor=r,t&&(r.displayName=t),r};co.prototype.toString=function(){for(var e,t=ho(this)+" { ",n=this._keys,r=0,o=n.length;r!==o;r++)t+=(r?", ":"")+(e=n[r])+": "+an(this.get(e));return t+" }"},co.prototype.equals=function(e){return this===e||Ce(e)&&mo(this).equals(mo(e))},co.prototype.hashCode=function(){return mo(this).hashCode()},co.prototype.has=function(e){return this._indices.hasOwnProperty(e)},co.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},co.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 fo(this,n)}return this},co.prototype.remove=function(e){return this.set(e)},co.prototype.clear=function(){var e=this._values.clear().setSize(this._keys.length);return this.__ownerID?this:fo(this,e)},co.prototype.wasAltered=function(){return this._values.wasAltered()},co.prototype.toSeq=function(){return mo(this)},co.prototype.toJS=function(){return Ar(this)},co.prototype.entries=function(){return this.__iterator(ze)},co.prototype.__iterator=function(e,t){return mo(this).__iterator(e,t)},co.prototype.__iterate=function(e,t){return mo(this).__iterate(e,t)},co.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._values.__ensureOwner(e);return e?fo(this,t,e):(this.__ownerID=e,this._values=t,this)},co.isRecord=Ce,co.getDescriptiveName=ho;var po=co.prototype;function fo(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._values=t,r.__ownerID=n,r}function ho(e){return e.constructor.displayName||e.constructor.name||"Record"}function mo(e){return it(e._keys.map((function(t){return[t,e.get(t)]})))}function yo(e,t){try{Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){Zt(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}catch(e){}}po[Te]=!0,po[ne]=po.remove,po.deleteIn=po.removeIn=gn,po.getIn=Wr,po.hasIn=Vr.hasIn,po.merge=_n,po.mergeWith=Dn,po.mergeIn=In,po.mergeDeep=On,po.mergeDeepWith=kn,po.mergeDeepIn=Pn,po.setIn=mn,po.update=bn,po.updateIn=wn,po.withMutations=Tn,po.asMutable=Cn,po.asImmutable=Nn,po[Fe]=po.entries,po.toJSON=po.toObject=Vr.toObject,po.inspect=po.toSource=function(){return this.toString()};function go(e,t){return vo([],t||bo,e,"",t&&t.length>2?[]:void 0,{"":e})}function vo(e,t,n,r,o,i){if("string"!=typeof n&&!Ne(n)&&(Ke(n)||We(n)||rn(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,Je(n).map((function(r,i){return vo(e,t,r,i,o,n)})),o&&o.slice());return e.pop(),o&&o.pop(),a}return n}function bo(e,t){return De(t)?t.toList():we(t)?t.toMap():t.toSet()}const wo=e=>e.map((e=>Z()(e,((e,t)=>"_"+t)))),_o={childrenField:"tree",keyField:"ID"},Do=new(te())(_o),Eo=(e,t)=>(t.forEach((t=>{-1===e.findIndex((e=>e.ID===t.ID))&&(e=[...e,t])})),e),xo=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=go(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},So=(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 Oo=n(1090);const ko="INIT_DATA",Io="ADD_LESSON_ENTITY",Po="ADD_SECTION_HEADING_ENTITY",To="UPDATE_LESSONS",Co="UPDATE_SECTION_HEADINGS",No="SET_ACTIVE_LESSON",jo="ADD_TOPIC_ENTITY",Ao="SET_DRAGGABLE_ENTITY",Lo="SET_IS_DROP_DISABLED_LESSON",Mo="ADD_QUIZ_ENTITY",zo="UPDATE_QUESTIONS",Ro="ADD_QUESTION_ENTITY",qo="ADD_ANSWER_ENTITY",Fo="REMOVE_ANSWER_ENTITY",Bo="ADD_LESSON",Uo="ADD_TOPIC",$o="ADD_QUIZ",Wo="ADD_QUESTION",Ho="UPDATE_WORKSPACE_NODE_TITLE",Qo="UPDATE_NODE_TITLE",Vo="TOGGLE_EXPAND_ALL",Go="TOGGLE_EXPAND_ENTITY",Ko="ADD_FINAL_QUIZ_ENTITY",Jo="SORT_FINAL_QUIZZES_OUTLINE",Yo="REMOVE_ENTITY",Xo="REMOVE_SECTION_HEADING_ENTITY",Zo="MOVE_ENTITY",ei="REMOVE_EXISTING_ENTITY",ti="UPDATE_QUESTION_TYPE",ni="UPDATE_QUESTION_ANSWERS";function ri(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 oi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ri(Object(n),!0).forEach((function(t){ii(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ri(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ii(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 ai={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]&&(ai.activeLesson=LearnDashData.outline.lessons[e].ID)}}else LearnDashData.outline&&LearnDashData.outline.questions&&LearnDashData.outline.questions.length&&(ai.activeLesson=LearnDashData.outline.questions[0].ID,LearnDashData.outline.questions[0].expanded=!0);const si=(0,Oo.ZP)((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ai,t=arguments.length>1?arguments[1]:void 0;const n=go(e.lessons),r=go(e.quizzes),o=go(e.questions),i=e.sections?go(e.sections):go([]);switch(t.type){case To:return oi(oi({},e),{},{lessons:t.payload});case Co:return oi(oi({},e),{},{sections:t.payload});case Io:{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 oi(oi({},e),{},{lessons:o,activeLesson:i,refresh:a})}case Po:{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 oi(oi({},e),{},{lessons:a,sections:s,refresh:l})}case No:return oi(oi({},e),{},{activeLesson:parseInt(t.payload.activeLesson)});case jo:{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 oi(oi({},e),{},{lessons:a,activeLesson:i,refresh:s})}case Mo:{let o=-1,i=e.activeLesson;if(t.payload.type="sfwd-quiz",t.payload.expanded=!1,t.parent?(o=xo(e.lessons,t.parent,!0),i=t.parent):e.activeLesson&&(o=xo(e.lessons,e.activeLesson,!0)),-1!==o){const r=n.updateIn(o,(e=>e.push(t.payload))).toJS(),a="quiz";return oi(oi({},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 oi(oi({},e),{},{quizzes:s})}case zo:return oi(oi({},e),{},{questions:t.payload});case Ro:{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,correctMsg:t.payload.correctMsg??"",incorrectMsg:t.payload.incorrectMsg??"",correctSameText:t.payload.correctSameText??!1,tipEnabled:t.payload.tipEnabled??!1,tipMsg:t.payload.tipMsg??"",answerPointsActivated:t.payload.answerPointsActivated??!1}).toJS(),s=t.payload.ID,l="question";return oi(oi({},e),{},{questions:a,activeLesson:s,refresh:l})}case qo:{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(),oi(oi({},e),{},{questions:n})}return e}case Fo:{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(),oi(oi({},e),{},{questions:n})}return e}case Ho: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=Do.getNodeByKey(o,t.payload.ID);if(i)return i.post_title=t.payload.post_title,oi(oi({},e),{},{[n]:r[n]});const a=Object.values(e.quizzes),s=Do.getNodeByKey(a,t.payload.ID);return s?(s.post_title=t.payload.post_title,oi(oi({},e),{},{quizzes:a})):e}return e;case Ko:{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 oi(oi({},e),{},{quizzes:o})}case Jo:return oi(oi({},e),{},{quizzes:t.payload});case ei:case Xo:case Yo: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=xo(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 oi(oi({},e),{},{[a]:s[a],activeLesson:t})}if("sfwd-quiz"!==LearnDashData.post_data.builder_post_type&&!u){const n=xo(e.quizzes,t.payload.ID);return-1!==n&&(i=r.deleteIn(n).toJS()),oi(oi({},e),{},{quizzes:i})}return oi(oi({},e),{},{[a]:s[a],quizzes:i})}return e;case Zo:{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=xo(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 oi(oi({},e),{},{[r]:a[r]})}return e}case Ao:return oi(oi({},e),{},{currentDraggableEntity:t.payload.currentDraggableEntity,currentDroppableEntity:t.payload.currentDroppableEntity});case Lo:return oi(oi({},e),{},{isDropDisabledLesson:t.payload.isDropDisabledLesson});case Vo:{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?oi(oi({},e),{},{expandedItems:[],expandAll:!1}):oi(oi({},e),{},{expandedItems:r.map((e=>e.ID)),expandAll:!0})}case Go: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 oi(oi({},e),{},{expandedItems:n,expandAll:i.length===n.length})}if("sfwd-topic"===t.payload.type){r=Object.values(o[n][t.parent].tree);const i=Do.getNodeByKey(r,t.payload.ID);if(i)return i.expanded=!t.payload.expanded,oi(oi({},e),{},{[n]:o[n]})}return e}return e;case ti: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 oi(oi({},e),{},{questions:r})}return e}return e;case ni: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 oi(oi({},e),{},{questions:r})}}return e;default:return e}}),{filter:(0,Oo.kw)([ko,Ao,No,Lo,Bo,Vo,Go,ei,ti,Po,Xo,Co])});function li(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 ui(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?li(Object(n),!0).forEach((function(t){ci(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):li(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ci(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 pi={currentTab:LearnDashData.currentTab&&LearnDashData.currentTab,tabs:LearnDashData.tabs&&LearnDashData.tabs||"",buttons:LearnDashData.buttons||[],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||""};var di=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:Q.INIT}))throw new Error($(12));if(void 0===n(void 0,{type:Q.PROBE_UNKNOWN_ACTION()}))throw new Error($(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($(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]:pi,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case ko:return ui(ui({},e),{},{[t.payload.field]:t.payload.data});case Bo:{const n=Object.values(e.lessons);return n.unshift(t.payload),ui(ui({},e),{},{lessons:n})}case Uo:{const n=Object.values(e.topics);return n.unshift(t.payload),ui(ui({},e),{},{topics:n})}case $o:{const n=Object.values(e.quizzes);return n.unshift(t.payload),ui(ui({},e),{},{quizzes:n})}case Wo:case Ro:{const n=Object.values(e.questions);return n.unshift(t.payload),ui(ui({},e),{},{questions:n})}case Qo: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=Do.getNodeByKey(r,t.payload.ID);if(o&&(o.post_title=t.payload.post_title),"lesson"===t.payload.type)return ui(ui({},e),{},{lessons:r});if("topic"===t.payload.type)return ui(ui({},e),{},{topics:r});if("quiz"===t.payload.type)return ui(ui({},e),{},{quizzes:r});if("question"===t.payload.type)return ui(ui({},e),{},{questions:r})}return e;default:return e}},workspace:si});const fi=G(di);var hi=n(5697),mi=n.n(hi),yi=n(6981);function gi(){return gi=yi?yi.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},gi.apply(this,arguments)}var vi=n(5627),bi=n(433);function wi(e,t){return wi=bi?bi.bind():function(e,t){return e.__proto__=t,e},wi(e,t)}function _i(e,t){e.prototype=vi(t.prototype),e.prototype.constructor=e,wi(e,t)}var Di="Invariant failed";function Ei(e,t){if(!e)throw new Error(Di)}var xi=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}}},Si=function(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}},Oi=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},ki={top:0,right:0,bottom:0,left:0},Ii=function(e){var t=e.borderBox,n=e.margin,r=void 0===n?ki:n,o=e.border,i=void 0===o?ki:o,a=e.padding,s=void 0===a?ki:a,l=xi(Si(t,r)),u=xi(Oi(t,i)),c=xi(Oi(u,s));return{marginBox:l,borderBox:xi(t),paddingBox:u,contentBox:c,margin:r,border:i,padding:s}},Pi=function(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var n=Number(t);return isNaN(n)&&Ei(!1),n},Ti=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 Ii({borderBox:l,border:i,margin:a,padding:s})},Ci=function(e,t){return void 0===t&&(t={x:window.pageXOffset,y:window.pageYOffset}),Ti(e,t)},Ni=function(e,t){var n={top:Pi(t.marginTop),right:Pi(t.marginRight),bottom:Pi(t.marginBottom),left:Pi(t.marginLeft)},r={top:Pi(t.paddingTop),right:Pi(t.paddingRight),bottom:Pi(t.paddingBottom),left:Pi(t.paddingLeft)},o={top:Pi(t.borderTopWidth),right:Pi(t.borderRightWidth),bottom:Pi(t.borderBottomWidth),left:Pi(t.borderLeftWidth)};return Ii({borderBox:e,margin:n,padding:r,border:o})},ji=function(e){var t=e.getBoundingClientRect(),n=window.getComputedStyle(e);return Ni(t,n)},Ai=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Li(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||Ai(r)&&Ai(o)))return!1;var r,o;return!0}var Mi=function(e,t){var n;void 0===t&&(t=Li);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}},zi=n(8433),Ri=n.n(zi),qi=n(6243),Fi=n.n(qi),Bi=n(8428),Ui=n.n(Bi),$i=n(6130),Wi=n.n($i),Hi=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 Qi(e,t){return Qi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Qi(e,t)}function Vi(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Qi(e,t)}var Gi=mi().shape({trySubscribe:mi().func.isRequired,tryUnsubscribe:mi().func.isRequired,notifyNestedSubs:mi().func.isRequired,isSubscribed:mi().func.isRequired}),Ki=mi().shape({subscribe:mi().func.isRequired,dispatch:mi().func.isRequired,getState:mi().func.isRequired});e.forwardRef;!function(t){var n;void 0===t&&(t="store");var r=t+"Subscription",o=function(n){Vi(i,n);var o=i.prototype;function i(e,r){var o;return(o=n.call(this,e,r)||this)[t]=e.store,o}return o.getChildContext=function(){var e;return(e={})[t]=this[t],e[r]=null,e},o.render=function(){return e.Children.only(this.props.children)},i}(e.Component);o.propTypes={store:Ki.isRequired,children:mi().element.isRequired},o.childContextTypes=((n={})[t]=Ki.isRequired,n[r]=Gi,n)}();function Ji(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Yi=n(1143),Xi=n.n(Yi),Zi=n(9864),ea=null,ta={notify:function(){}};var na=function(){function e(e,t,n){this.store=e,this.parentSub=t,this.onStateChange=n,this.unsubscribe=null,this.listeners=ta}var t=e.prototype;return t.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},t.notifyNestedSubs=function(){this.listeners.notify()},t.isSubscribed=function(){return Boolean(this.unsubscribe)},t.trySubscribe=function(){var e,t;this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.onStateChange):this.store.subscribe(this.onStateChange),this.listeners=(e=[],t=[],{clear:function(){t=ea,e=ea},notify:function(){for(var n=e=t,r=0;r<n.length;r++)n[r]()},get:function(){return t},subscribe:function(n){var r=!0;return t===e&&(t=e.slice()),t.push(n),function(){r&&e!==ea&&(r=!1,t===e&&(t=e.slice()),t.splice(t.indexOf(n),1))}}}))},t.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=ta)},e}(),ra=void 0!==e.forwardRef,oa=0,ia={};function aa(){}function sa(t,n){var r,o;void 0===n&&(n={});var i=n,a=i.getDisplayName,s=void 0===a?function(e){return"ConnectAdvanced("+e+")"}:a,l=i.methodName,u=void 0===l?"connectAdvanced":l,c=i.renderCountProp,p=void 0===c?void 0:c,h=i.shouldHandleStateChanges,y=void 0===h||h,g=i.storeKey,v=void 0===g?"store":g,b=i.withRef,w=void 0!==b&&b,_=f(i,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]),D=v+"Subscription",E=oa++,x=((r={})[v]=Ki,r[D]=Gi,r),S=((o={})[D]=Gi,o);return function(n){Xi()((0,Zi.isValidElementType)(n),"You must pass a component to the function returned by "+u+". Instead received "+JSON.stringify(n));var r=n.displayName||n.name||"Component",o=s(r),i=d({},_,{getDisplayName:s,methodName:u,renderCountProp:p,shouldHandleStateChanges:y,storeKey:v,withRef:w,displayName:o,wrappedComponentName:r,WrappedComponent:n}),a=function(r){function a(e,t){var n;return(n=r.call(this,e,t)||this).version=E,n.state={},n.renderCount=0,n.store=e[v]||t[v],n.propsMode=Boolean(e[v]),n.setWrappedInstance=n.setWrappedInstance.bind(Ji(Ji(n))),Xi()(n.store,'Could not find "'+v+'" in either the context or props of "'+o+'". Either wrap the root component in a <Provider>, or explicitly pass "'+v+'" as a prop to "'+o+'".'),n.initSelector(),n.initSubscription(),n}Vi(a,r);var s=a.prototype;return s.getChildContext=function(){var e,t=this.propsMode?null:this.subscription;return(e={})[D]=t||this.context[D],e},s.componentDidMount=function(){y&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},s.componentWillReceiveProps=function(e){this.selector.run(e)},s.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},s.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.notifyNestedSubs=aa,this.store=null,this.selector.run=aa,this.selector.shouldComponentUpdate=!1},s.getWrappedInstance=function(){return Xi()(w,"To access the wrapped instance, you need to specify { withRef: true } in the options argument of the "+u+"() call."),this.wrappedInstance},s.setWrappedInstance=function(e){this.wrappedInstance=e},s.initSelector=function(){var e=t(this.store.dispatch,i);this.selector=function(e,t){var n={run:function(r){try{var o=e(t.getState(),r);(o!==n.props||n.error)&&(n.shouldComponentUpdate=!0,n.props=o,n.error=null)}catch(e){n.shouldComponentUpdate=!0,n.error=e}}};return n}(e,this.store),this.selector.run(this.props)},s.initSubscription=function(){if(y){var e=(this.propsMode?this.props:this.context)[D];this.subscription=new na(this.store,e,this.onStateChange.bind(this)),this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)}},s.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate,this.setState(ia)):this.notifyNestedSubs()},s.notifyNestedSubsOnComponentDidUpdate=function(){this.componentDidUpdate=void 0,this.notifyNestedSubs()},s.isSubscribed=function(){return Boolean(this.subscription)&&this.subscription.isSubscribed()},s.addExtraProps=function(e){if(!(w||p||this.propsMode&&this.subscription))return e;var t=d({},e);return w&&(t.ref=this.setWrappedInstance),p&&(t[p]=this.renderCount++),this.propsMode&&this.subscription&&(t[D]=this.subscription),t},s.render=function(){var t=this.selector;if(t.shouldComponentUpdate=!1,t.error)throw t.error;return(0,e.createElement)(n,this.addExtraProps(t.props))},a}(e.Component);return ra&&(a.prototype.UNSAFE_componentWillReceiveProps=a.prototype.componentWillReceiveProps,delete a.prototype.componentWillReceiveProps),a.WrappedComponent=n,a.displayName=o,a.childContextTypes=S,a.contextTypes=x,a.propTypes=x,m()(a,n)}}var la=Object.prototype.hasOwnProperty;function ua(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function ca(e,t){if(ua(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(!la.call(t,n[o])||!ua(e[n[o]],t[n[o]]))return!1;return!0}function pa(e){return function(t,n){var r=e(t,n);function o(){return r}return o.dependsOnOwnProps=!1,o}}function da(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function fa(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=da(e);var o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=da(o),o=r(t,n)),o},r}}var ha=[function(e){return"function"==typeof e?fa(e):void 0},function(e){return e?void 0:pa((function(e){return{dispatch:e}}))},function(e){return e&&"object"==typeof e?pa((function(t){return J(e,t)})):void 0}];var ma=[function(e){return"function"==typeof e?fa(e):void 0},function(e){return e?void 0:pa((function(){return{}}))}];function ya(e,t,n){return d({},n,e,t)}var ga=[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 ya}}];function va(e,t,n,r){return function(o,i){return n(e(o,i),t(r,i),i)}}function ba(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);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 wa(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,o=t.initMergeProps,i=f(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),a=n(e,i),s=r(e,i),l=o(e,i);return(i.pure?ba:va)(a,s,l,e,i)}function _a(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 Da(e,t){return e===t}var Ea,xa,Sa,Oa,ka,Ia,Pa,Ta,Ca,Na,ja,Aa,La=(Sa=(xa=void 0===Ea?{}:Ea).connectHOC,Oa=void 0===Sa?sa:Sa,ka=xa.mapStateToPropsFactories,Ia=void 0===ka?ma:ka,Pa=xa.mapDispatchToPropsFactories,Ta=void 0===Pa?ha:Pa,Ca=xa.mergePropsFactories,Na=void 0===Ca?ga:Ca,ja=xa.selectorFactory,Aa=void 0===ja?wa:ja,function(e,t,n,r){void 0===r&&(r={});var o=r,i=o.pure,a=void 0===i||i,s=o.areStatesEqual,l=void 0===s?Da:s,u=o.areOwnPropsEqual,c=void 0===u?ca:u,p=o.areStatePropsEqual,h=void 0===p?ca:p,m=o.areMergedPropsEqual,y=void 0===m?ca:m,g=f(o,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),v=_a(e,Ia,"mapStateToProps"),b=_a(t,Ta,"mapDispatchToProps"),w=_a(n,Na,"mergeProps");return Oa(Aa,d({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:v,initMapDispatchToProps:b,initMergeProps:w,pure:a,areStatesEqual:l,areOwnPropsEqual:c,areStatePropsEqual:h,areMergedPropsEqual:y},g))}),Ma=(n(5733),{x:0,y:0}),za=function(e,t){return{x:e.x+t.x,y:e.y+t.y}},Ra=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},qa=function(e,t){return e.x===t.x&&e.y===t.y},Fa=function(e){return{x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}},Ba=function(e,t,n){var r;return void 0===n&&(n=0),(r={})[e]=t,r["x"===e?"y":"x"]=n,r},Ua=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},$a=function(e,t){return Math.min.apply(Math,t.map((function(t){return Ua(e,t)})))},Wa=function(e){return function(t){return{x:e(t.x),y:e(t.y)}}},Ha=function(e,t){return{top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}},Qa=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}]},Va=function(e,t){return t&&t.shouldClipSubject?function(e,t){var n=xi({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):xi(e)},Ga=function(e){var t=e.page,n=e.withPlaceholder,r=e.axis,o=e.frame,i=function(e,t){return t?Ha(e,t.scroll.diff.displacement):e}(t.marginBox,o),a=function(e,t,n){var r;return n&&n.increasedBy?gi({},e,((r={})[t.end]=e[t.end]+n.increasedBy[t.line],r)):e}(i,r,n);return{page:t,withPlaceholder:n,active:Va(a,o)}},Ka=function(e,t){e.frame||Ei(!1);var n=e.frame,r=Ra(t,n.scroll.initial),o=Fa(r),i=gi({},n,{scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:o},max:n.scroll.max}});return gi({},e,{frame:i,subject:Ga({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:i})})},Ja=function(e){var t=e.merge,n=e.destination;return n?n.droppableId:t?t.combine.droppableId:null};function Ya(e){return Ri()(e)}function Xa(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 Za(e,t){if(e.find)return e.find(t);var n=Xa(e,t);return-1!==n?e[n]:void 0}var es=Mi((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),ts=Mi((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),ns=Mi((function(e){return Ya(e)})),rs=Mi((function(e){return Ya(e)})),os=function(e,t){return function(n){return e<=n&&n<=t}},is=function(e){var t=os(e.top,e.bottom),n=os(e.left,e.right);return function(e){return t(e.y)&&t(e.y)&&n(e.x)&&n(e.x)}},as=Mi((function(e,t){var n=rs(t).filter((function(t){return e===t.descriptor.droppableId})).sort((function(e,t){return e.descriptor.index-t.descriptor.index}));return n})),ss={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},ls={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},us=function(e,t){return e===ss?"down"===t.vertical:"right"===t.horizontal},cs=function(e,t){return Boolean(t.wasDisplaced[e])},ps=function(e){var t=e.displaced,n=e.onLift,r=e.combineWith,o=e.displacedBy,i=Boolean(t[r]);return cs(r,n)?i?Ma:Fa(o.point):i?o.point:Ma},ds=function(e,t,n){return n?e!==n.combine.draggableId?t:n.whenEntered:t},fs=function(e){var t=e.pageBorderBoxCenterWithDroppableScrollChange,n=e.previousImpact,r=e.destination,o=e.insideDestinationWithoutDraggable,i=e.userDirection,a=e.onLift;if(!r.isCombineEnabled)return null;var s=r.axis,l=n.movement.map,u=n.movement.displacedBy,c=n.merge,p=Za(o,(function(e){var n=e.descriptor.id,r=ps({displaced:l,onLift:a,combineWith:n,displacedBy:u});return function(e){var t=e.id,n=e.currentCenter,r=e.axis,o=e.borderBox,i=e.displaceBy,a=e.currentUserDirection,s=e.oldMerge,l=o[r.start]+i[r.line],u=o[r.end]+i[r.line],c=.666*o[r.size],p=ds(t,a,s),d=us(r,p),f=n[r.line];return d?os(l,l+c)(f):os(u-c,u)(f)}({id:n,currentCenter:t,axis:s,borderBox:e.page.borderBox,displaceBy:r,currentUserDirection:i,oldMerge:c})}));return p?gi({},n,{destination:null,merge:{whenEntered:ds(p.descriptor.id,i,c),combine:{draggableId:p.descriptor.id,droppableId:r.descriptor.id}}}):null},hs=function(e){var t=os(e.top,e.bottom),n=os(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)}},ms=function(e){var t=os(e.top,e.bottom),n=os(e.left,e.right);return function(e){return t(e.top)&&t(e.bottom)&&n(e.left)&&n(e.right)}},ys=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:Ma;return Ha(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)},gs=function(e){return ys(gi({},e,{isVisibleThroughFrameFn:hs}))},vs=function(e){return ys(gi({},e,{isVisibleThroughFrameFn:ms}))},bs=function(e){var t=e.draggable,n=e.destination,r=e.previousImpact,o=e.viewport,i=e.onLift,a=e.forceShouldAnimate,s=t.descriptor.id,l=r.movement.map,u=function(e,t){var n=e.page.marginBox;if(!cs(e.descriptor.id,t))return n;var r={top:t.displacedBy.point.y,right:t.displacedBy.point.x,bottom:0,left:0};return xi(Si(n,r))}(t,i),c=gs({target:u,destination:n,viewport:o,withDroppableDisplacement:!0}),p=function(e,t,n){return"boolean"==typeof e?e:!!t&&(!n||n.shouldAnimate)}(a,c,l[s]);return{draggableId:s,isVisible:c,shouldAnimate:p}},ws=Mi((function(e){return e.reduce((function(e,t){return e[t.draggableId]=t,e}),{})})),_s=Mi((function(e,t){var n=t[e.line];return{value:n,point:Ba(e.line,n)}})),Ds={displaced:[],map:{},displacedBy:{point:Ma,value:0}},Es={movement:Ds,destination:null,merge:null},xs=Mi((function(e,t){return t.filter((function(t){return t.descriptor.id!==e.descriptor.id}))})),Ss=function(e){var t=e.pageBorderBoxCenter,n=e.draggable,r=e.draggables,o=e.droppables,i=e.previousImpact,a=e.viewport,s=e.userDirection,l=e.onLift,u=function(e){var t=e.target,n=e.droppables,r=Za(ns(n),(function(e){if(!e.isEnabled)return!1;var n=e.subject.active;return!!n&&is(n)(t)}));return r?r.descriptor.id:null}({target:t,droppables:o});if(!u)return Es;var c=o[u],p=as(c.descriptor.id,r),d=xs(n,p),f=function(e,t){var n=e.frame;return n?za(t,n.scroll.diff.value):t}(c,t),h=fs({pageBorderBoxCenterWithDroppableScrollChange:f,previousImpact:i,destination:c,insideDestinationWithoutDraggable:d,userDirection:s,onLift:l});return h||function(e){var t=e.pageBorderBoxCenterWithDroppableScrollChange,n=e.draggable,r=e.destination,o=e.insideDestinationWithoutDraggable,i=e.previousImpact,a=e.viewport,s=e.userDirection,l=e.onLift,u=r.axis,c=us(r.axis,s),p=_s(r.axis,n.displaceBy),d=t[u.line],f=p.value,h=o.filter((function(e){var t=e.page.borderBox,n=t[u.start],r=t[u.end],o=cs(e.descriptor.id,l);return c?o?d<n:d<n+f:o?d<=r-f:d<=r})).map((function(e){return bs({draggable:e,destination:r,previousImpact:i,viewport:a.frame,onLift:l})})),m=o.length-h.length;return{movement:{displacedBy:p,displaced:h,map:ws(h)},destination:{droppableId:r.descriptor.id,index:m},merge:null}}({pageBorderBoxCenterWithDroppableScrollChange:f,destination:c,draggable:n,insideDestinationWithoutDraggable:d,previousImpact:i,viewport:a,userDirection:s,onLift:l})},Os=function(e){var t,n=e.draggable,r=e.home,o=e.draggables,i=e.viewport,a=_s(r.axis,n.displaceBy),s=as(r.descriptor.id,o).slice(n.descriptor.index+1),l={displacedBy:a,wasDisplaced:s.reduce((function(e,t){return e[t.descriptor.id]=!0,e}),{})},u=s.map((function(e){return bs({draggable:e,destination:r,previousImpact:Es,viewport:i.frame,forceShouldAnimate:!1,onLift:l})}));return{impact:{movement:{displaced:u,map:ws(u),displacedBy:a},destination:(t=n.descriptor,{index:t.index,droppableId:t.droppableId}),merge:null},onLift:l}},ks=function(e){var t=e.draggable,n=e.offset,r=e.initialWindowScroll,o=Ti(t.client,n),i=Ci(o,r);return gi({},t,{placeholder:gi({},t.placeholder,{client:o}),client:o,page:i})},Is=function(e){var t=e.updatedDroppables,n=e.criticalId,r=e.existing,o=e.additions,i=e.removals,a=e.viewport,s=function(e){var t=e.existing,n=e.droppables,r=e.additions,o=e.removals,i=e.viewport,a={};return ns(n).forEach((function(e){var n=e.axis,s=as(e.descriptor.id,t),l={},u=function(e,t){var n=l[e];l[e]=n?{indexChange:n.indexChange+t.indexChange,offset:za(n.offset,t.offset)}:t},c=ts(o.map((function(e){var n=t[e];return n||Ei(!1),n})).filter((function(t){return t.descriptor.droppableId===e.descriptor.id}))),p=s.filter((function(e,t){if(!Boolean(c[e.descriptor.id]))return!0;var r=Fa(Ba(n.line,e.displaceBy[n.line]));return s.slice(t).forEach((function(e){c[e.descriptor.id]||u(e.descriptor.id,{indexChange:-1,offset:r})})),!1})),d=r.filter((function(t){return t.descriptor.droppableId===e.descriptor.id})),f=p.slice(0);d.forEach((function(e){f.splice(e.descriptor.index,0,e)}));var h=ts(d);f.forEach((function(e,t){if(Boolean(h[e.descriptor.id])){var r=Ba(n.line,e.client.marginBox[n.size]);f.slice(t).forEach((function(e){h[e.descriptor.id]||u(e.descriptor.id,{indexChange:1,offset:r})}))}})),f.forEach((function(e){if(!h[e.descriptor.id]){var t=l[e.descriptor.id];if(t){var n=ks({draggable:e,offset:t.offset,initialWindowScroll:i.scroll.initial}),r=e.descriptor.index+t.indexChange,o=gi({},n,{descriptor:gi({},e.descriptor,{index:r})});a[n.descriptor.id]=o}}}))})),gi({},t,a)}({droppables:t,existing:r,additions:o,removals:i,viewport:a}),l=s[n],u=t[l.descriptor.droppableId],c=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=n[t].frame;i||Ei(!1);var a=i.scroll.diff.value,s=za(o,a);return ks({draggable:e,offset:s,initialWindowScroll:r.scroll.initial})}))}({additions:o,updatedDroppables:t,viewport:a}),p=function(e){var t=e.additions,n=e.dragging,r=e.home,o=e.viewport,i=_s(r.axis,n.displaceBy);return t.map((function(e){return e.descriptor.droppableId!==r.descriptor.id||e.descriptor.index<n.descriptor.index?e:ks({draggable:e,offset:i.point,initialWindowScroll:o.scroll.initial})}))}({additions:c,dragging:l,home:u,viewport:a}),d=gi({},s,ts(p));return i.forEach((function(e){delete d[e]})),d},Ps=function(e){var t=e.scrollHeight,n=e.scrollWidth,r=e.height,o=e.width,i=Ra({x:n,y:t},{x:o,y:r});return{x:Math.max(0,i.x),y:Math.max(0,i.y)}},Ts=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=Ps({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:Ma,displacement:Ma}}}}(),c="vertical"===i?ss:ls;return{descriptor:t,isCombineEnabled:r,isFixedOnPage:o,axis:c,isEnabled:n,client:a,page:s,frame:u,subject:Ga({page:s,withPlaceholder:null,axis:c,frame:u})}},Cs=function(e,t){return e.descriptor.droppableId===t.descriptor.id},Ns=function(e,t){return gi({},e,{scroll:gi({},e.scroll,{max:t})})},js=function(e,t,n){var r=e.frame;Cs(t,e)&&Ei(!1),e.subject.withPlaceholder&&Ei(!1);var o=_s(e.axis,t.displaceBy).point,i=function(e,t,n){var r=e.axis,o=e.subject.page.contentBox[r.size],i=as(e.descriptor.id,n).reduce((function(e,t){return e+t.client.marginBox[r.size]}),0)+t[r.line]-o;return i<=0?null:Ba(r.line,i)}(e,o,n),a={placeholderSize:o,increasedBy:i,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!r)return gi({},e,{subject:Ga({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:e.frame})});var s=i?za(r.scroll.max,i):r.scroll.max,l=Ns(r,s);return gi({},e,{subject:Ga({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:l}),frame:l})},As=function(e){var t=e.subject.withPlaceholder;t||Ei(!1);var n=e.frame;if(!n)return gi({},e,{subject:Ga({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null})});var r=t.oldFrameMaxScroll;r||Ei(!1);var o=Ns(n,r);return gi({},e,{subject:Ga({page:e.subject.page,axis:e.axis,frame:o,withPlaceholder:null}),frame:o})},Ls=function(e){var t=e.frame;return t||Ei(!1),t},Ms=function(e,t){var n;return gi({},e,((n={})[t.descriptor.id]=t,n))},zs=function(e){var t=e.draggable,n=e.draggables,r=e.droppables,o=e.previousImpact,i=e.impact,a=function(e){var t=e.previousImpact,n=e.impact,r=e.droppables,o=Ja(t),i=Ja(n);if(!o)return r;if(o===i)return r;var a=r[o];if(!a.subject.withPlaceholder)return r;var s=As(a);return Ms(r,s)}({previousImpact:o,impact:i,droppables:r}),s=Ja(i);if(!s)return a;var l=r[s];if(Cs(t,l))return a;if(l.subject.withPlaceholder)return a;var u=js(l,t,n);return Ms(a,u)},Rs=function(e){var t,n,r=e.state,o=e.published,i=function(e){var t=e.modified,n=e.existing,r=e.viewport;if(!t.length)return n;var o=t.map((function(e){var t=n[e.descriptor.id];t||Ei(!1);var o,i,a=Boolean(t.subject.withPlaceholder)?As(t):t,s=a.client,l=e.client,u=Ls(a),c=Ls(e),p=Ii({borderBox:(a.axis,o=s.borderBox,i=l.borderBox,{top:o.top,left:o.left,right:o.left+i.width,bottom:o.top+i.height}),margin:s.margin,border:s.border,padding:s.padding}),d={client:u.frameClient,page:Ci(u.frameClient,r.scroll.initial),shouldClipSubject:u.shouldClipSubject,scrollSize:c.scrollSize,scroll:u.scroll.initial},f=Ts({descriptor:e.descriptor,isEnabled:e.isEnabled,isCombineEnabled:e.isCombineEnabled,isFixedOnPage:e.isFixedOnPage,direction:e.axis.direction,client:p,page:Ci(p,r.scroll.initial),closest:d});return Ka(f,c.scroll.current)}));return gi({},n,es(o))}({modified:o.modified,existing:r.dimensions.droppables,viewport:r.viewport}),a=Is({updatedDroppables:i,criticalId:r.critical.draggable.id,existing:r.dimensions.draggables,additions:o.additions,removals:o.removals,viewport:r.viewport}),s={draggable:a[r.critical.draggable.id].descriptor,droppable:i[r.critical.droppable.id].descriptor},l=r.dimensions.draggables[s.draggable.id],u=a[s.draggable.id],c={draggables:a,droppables:zs({draggable:u,draggables:a,droppables:i,previousImpact:r.impact,impact:r.impact})},p=function(e){var t,n=e.initial,r=e.current,o=e.oldClientBorderBoxCenter,i=e.newClientBorderBoxCenter,a=e.viewport,s=Ra(i,o),l={client:t={selection:za(n.client.selection,s),borderBoxCenter:i,offset:Ma},page:{selection:za(t.selection,a.scroll.initial),borderBoxCenter:za(t.selection,a.scroll.initial)}},u=function(){var e=Fa(s),t=za(r.client.offset,e),n={selection:za(l.client.selection,t),borderBoxCenter:za(l.client.borderBoxCenter,t),offset:t},o={selection:za(n.selection,a.scroll.current),borderBoxCenter:za(n.borderBoxCenter,a.scroll.current)};return qa(r.client.borderBoxCenter,n.borderBoxCenter)||Ei(!1),{client:n,page:o}}();return{current:u,initial:l}}({initial:r.initial,current:r.current,oldClientBorderBoxCenter:l.client.borderBox.center,newClientBorderBoxCenter:u.client.borderBox.center,viewport:r.viewport}),d=p.initial,f=p.current,h=Os({draggable:u,home:c.droppables[s.droppable.id],draggables:c.draggables,viewport:r.viewport}),m=h.impact,y=h.onLift,g=function(e){var t=e.movement.displaced;if(!t.length)return e;var n=t.map((function(e){return e.isVisible&&e.shouldAnimate?gi({},e,{shouldAnimate:!1}):e}));return gi({},e,{movement:gi({},e.movement,{displaced:n,map:ws(n)})})}(Ss({pageBorderBoxCenter:f.page.borderBoxCenter,draggable:u,draggables:c.draggables,droppables:c.droppables,previousImpact:m,viewport:r.viewport,userDirection:r.userDirection,onLift:y}));Boolean("SNAP"===r.movementMode&&!Ja(g))&&Ei(!1);var v=gi({phase:"DRAGGING"},r,((t={}).phase="DRAGGING",t.critical=s,t.current=f,t.initial=d,t.impact=g,t.dimensions=c,t.onLift=y,t.onLiftImpact=m,t.forceShouldAnimate=!1,t));return"COLLECTING"===r.phase?v:gi({phase:"DROP_PENDING"},v,((n={}).phase="DROP_PENDING",n.reason=r.reason,n.isWaiting=!1,n))},qs={vertical:"down",horizontal:"right"},Fs={vertical:"up",horizontal:"left"},Bs=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.onLift,u=s.destination?function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.draggable,o=e.insideDestination,i=e.location,a=o.slice(),s=i.index;!n&&a.splice(i.index,0,r);var l=t?s+1:s-1;return l<0||l>a.length-1?null:{proposedIndex:l,modifyDisplacement:!0}}({isMovingForward:t,isInHomeList:n,draggable:r,location:s.destination,insideDestination:a}):s.merge?function(e){var t=e.isMovingForward,n=e.destination,r=e.previousImpact,o=e.draggables,i=e.merge,a=e.onLift;if(!n.isCombineEnabled)return null;var s=r.movement,l=i.combine.draggableId,u=o[l].descriptor.index;return cs(l,a)?s.map[l]?t?{proposedIndex:u,modifyDisplacement:!0}:{proposedIndex:u-1,modifyDisplacement:!1}:t?{proposedIndex:u,modifyDisplacement:!1}:{proposedIndex:u-1,modifyDisplacement:!0}:Boolean(s.map[l])?t?{proposedIndex:u+1,modifyDisplacement:!0}:{proposedIndex:u,modifyDisplacement:!1}:t?{proposedIndex:u+1,modifyDisplacement:!1}:{proposedIndex:u,modifyDisplacement:!0}}({isMovingForward:t,destination:i,previousImpact:s,draggables:o,merge:s.merge,onLift:l}):null;if(null==u)return null;var c,p=u.proposedIndex,d=u.modifyDisplacement,f=_s(i.axis,r.displaceBy),h=(c=s.movement.displaced,d?t?function(e){return e.slice(1)}(c):function(e,t){return[{draggableId:e.descriptor.id,isVisible:!0,shouldAnimate:!0}].concat(t)}(xs(r,a)[p],c):c);return{movement:{displacedBy:f,displaced:h,map:ws(h)},destination:{droppableId:i.descriptor.id,index:p},merge:null}},Us=function(e,t){return t.margin[e.start]+t.borderBox[e.size]/2},$s=function(e,t,n){return t[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2},Ws=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return Ba(t.line,n.marginBox[t.end]+Us(t,r),$s(t,n.marginBox,r))},Hs=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return Ba(t.line,n.marginBox[t.start]-function(e,t){return t.margin[e.end]+t.borderBox[e.size]/2}(t,r),$s(t,n.marginBox,r))},Qs=function(e){var t=e.movement,n=e.draggable,r=e.draggables,o=e.droppable,i=e.onLift,a=as(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 Ba(t.line,n.contentBox[t.start]+Us(t,r),$s(t,n.contentBox,r))}({axis:l,moveInto:o.page,isMoving:s});var u=t.displaced,c=t.displacedBy;if(u.length){var p=r[u[0].draggableId];if(cs(p.descriptor.id,i))return Hs({axis:l,moveRelativeTo:p.page,isMoving:s});var d=Ti(p.page,c.point);return Hs({axis:l,moveRelativeTo:d,isMoving:s})}var f=a[a.length-1];if(f.descriptor.id===n.descriptor.id)return s.borderBox.center;if(cs(f.descriptor.id,i)){var h=Ti(f.page,Fa(i.displacedBy.point));return Ws({axis:l,moveRelativeTo:h,isMoving:s})}return Ws({axis:l,moveRelativeTo:f.page,isMoving:s})},Vs=function(e,t){var n=e.frame;return n?za(t,n.scroll.diff.displacement):t},Gs=function(e){var t=e.impact,n=e.draggable,r=e.droppable,o=e.draggables,i=e.onLift,a=t.merge,s=t.destination,l=n.page.borderBox.center;return r?s?Qs({movement:t.movement,draggable:n,draggables:o,droppable:r,onLift:i}):a?function(e){var t=e.combine,n=e.onLift,r=e.movement,o=e.draggables,i=t.draggableId,a=o[i].page.borderBox.center,s=ps({displaced:r.map,onLift:n,combineWith:i,displacedBy:r.displacedBy});return za(a,s)}({movement:t.movement,combine:a.combine,draggables:o,onLift:i}):l:l},Ks=function(e){var t=Gs(e),n=e.droppable;return n?Vs(n,t):t},Js=function(e,t){var n=Ra(t,e.scroll.initial),r=Fa(n);return{frame:xi({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}}}},Ys=function(e,t){return gi({},e,{movement:gi({},e.movement,{displaced:t,map:ws(t)})})},Xs=function(e){var t=e.pageBorderBoxCenter,n=e.draggable,r=function(e,t){return za(e.scroll.diff.displacement,t)}(e.viewport,t),o=Ra(r,n.page.borderBox.center);return za(n.client.borderBox.center,o)},Zs=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=Ra(r,t.page.borderBox.center),u={target:Ha(t.page.borderBox,l),destination:n,withDroppableDisplacement:i,viewport:o};return s?function(e){return ys(gi({},e,{isVisibleThroughFrameFn:(t=e.destination.axis,function(e){var n=os(e.top,e.bottom),r=os(e.left,e.right);return function(e){return t===ss?n(e.top)&&n(e.bottom):r(e.left)&&r(e.right)}})}));var t}(u):vs(u)},el=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,u=e.onLift;if(!r.isEnabled)return null;var c=as(r.descriptor.id,o),p=Cs(n,r),d=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.draggable,o=e.destination,i=e.insideDestination,a=e.previousImpact;if(!o.isCombineEnabled)return null;if(a.merge)return null;var s=a.destination;s||Ei(!1);var l,u=s.index,c=(l=i.slice(),n&&l.splice(r.descriptor.index,1),l.splice(s.index,0,r),l),p=t?u+1:u-1;if(p<0)return null;if(p>c.length-1)return null;var d=c[p];d===r&&Ei(!1);var f={whenEntered:t?qs:Fs,combine:{draggableId:d.descriptor.id,droppableId:o.descriptor.id}};return{movement:a.movement,destination:null,merge:f}}({isInHomeList:p,isMovingForward:t,draggable:n,destination:r,insideDestination:c,previousImpact:i})||Bs({isMovingForward:t,isInHomeList:p,draggable:n,draggables:o,destination:r,insideDestination:c,previousImpact:i,onLift:u});if(!d)return null;var f=Ks({impact:d,draggable:n,droppable:r,draggables:o,onLift:u});if(Zs({draggable:n,destination:r,newPageBorderBoxCenter:f,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:Xs({pageBorderBoxCenter:f,draggable:n,viewport:a}),impact:d,scrollJumpRequest:null};var h=Ra(f,s),m=function(e){var t=e.impact,n=e.viewport,r=e.destination,o=e.draggables,i=e.maxScrollChange,a=e.onLift,s=t.movement.displaced,l=Js(n,za(n.scroll.current,i)),u=r.frame?Ka(r,za(r.frame.scroll.current,i)):r,c=s.map((function(e){if(e.isVisible)return e;var i=o[e.draggableId],s=bs({draggable:i,destination:r,previousImpact:t,viewport:l.frame,onLift:a,forceShouldAnimate:!1});if(s.isVisible)return s;var c=bs({draggable:i,destination:u,previousImpact:t,viewport:n.frame,onLift:a,forceShouldAnimate:!1});return c.isVisible?c:e}));return Ys(t,c)}({impact:d,viewport:a,destination:r,draggables:o,maxScrollChange:h,onLift:u});return{clientSelection:l,impact:m,scrollJumpRequest:h}},tl=function(e){var t=e.subject.active;return t||Ei(!1),t},nl=function(e,t){var n=e.page.borderBox.center;return cs(e.descriptor.id,t)?Ra(n,t.displacedBy.point):n},rl=function(e,t){var n=e.page.borderBox;return cs(e.descriptor.id,t)?Ha(n,Fa(t.displacedBy.point)):n},ol=function(e){var t=e.isMovingForward,n=e.previousPageBorderBoxCenter,r=e.draggable,o=e.isOver,i=e.draggables,a=e.droppables,s=e.previousImpact,l=e.viewport,u=e.onLift,c=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=os(a[s.start],a[s.end]),u=ns(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 hs(i.frame)(tl(e))})).filter((function(e){var n=tl(e);return t?a[s.crossAxisEnd]<n[s.crossAxisEnd]:n[s.crossAxisStart]<a[s.crossAxisStart]})).filter((function(e){var t=tl(e),n=os(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=tl(e)[s.crossAxisStart],o=tl(n)[s.crossAxisStart];return t?r-o:o-r})).filter((function(e,t,n){return tl(e)[s.crossAxisStart]===tl(n[0])[s.crossAxisStart]}));if(!u.length)return null;if(1===u.length)return u[0];var c=u.filter((function(e){return os(tl(e)[s.start],tl(e)[s.end])(n[s.line])}));return 1===c.length?c[0]:c.length>1?c.sort((function(e,t){return tl(e)[s.start]-tl(t)[s.start]}))[0]:u.sort((function(e,t){var r=$a(n,Qa(tl(e))),o=$a(n,Qa(tl(t)));return r!==o?r-o:tl(e)[s.start]-tl(t)[s.start]}))[0]}({isMovingForward:t,pageBorderBoxCenter:n,source:o,droppables:a,viewport:l});if(!c)return null;var p=as(c.descriptor.id,i),d=function(e){var t=e.pageBorderBoxCenter,n=e.viewport,r=e.destination,o=e.insideDestination,i=e.onLift,a=o.filter((function(e){return vs({target:rl(e,i),destination:r,viewport:n.frame,withDroppableDisplacement:!0})})).sort((function(e,n){var o=Ua(t,Vs(r,nl(e,i))),a=Ua(t,Vs(r,nl(n,i)));return o<a?-1:a<o?1:e.descriptor.index-n.descriptor.index}));return a[0]||null}({pageBorderBoxCenter:n,viewport:l,destination:c,insideDestination:p,onLift:u}),f=function(e){var t=e.previousPageBorderBoxCenter,n=e.moveRelativeTo,r=e.insideDestination,o=e.draggable,i=e.draggables,a=e.destination,s=e.previousImpact,l=e.viewport,u=e.onLift;if(!n){if(r.length)return null;var c={movement:Ds,destination:{droppableId:a.descriptor.id,index:0},merge:null},p=Ks({impact:c,draggable:o,droppable:a,draggables:i,onLift:u}),d=Cs(o,a)?a:js(a,o,i);return Zs({draggable:o,destination:d,newPageBorderBoxCenter:p,viewport:l.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?c:null}var f=Boolean(t[a.axis.line]<n.page.borderBox.center[a.axis.line]),h=r.indexOf(n);-1===h&&Ei(!1);var m=n.descriptor.id===o.descriptor.id||f?h:h+1,y=xs(o,r).slice(m).map((function(e){return bs({draggable:e,destination:a,viewport:l.frame,previousImpact:s,onLift:u})}));return{movement:{displacedBy:_s(a.axis,o.displaceBy),displaced:y,map:ws(y)},destination:{droppableId:a.descriptor.id,index:m},merge:null}}({previousPageBorderBoxCenter:n,destination:c,draggable:r,draggables:i,moveRelativeTo:d,insideDestination:p,previousImpact:s,viewport:l,onLift:u});if(!f)return null;var h=Ks({impact:f,draggable:r,droppable:c,draggables:i,onLift:u});return{clientSelection:Xs({pageBorderBoxCenter:h,draggable:r,viewport:l}),impact:f,scrollJumpRequest:null}},il=function(e){var t=e.state,n=e.type,r=function(e,t){var n=Ja(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?el({isMovingForward:u,previousPageBorderBoxCenter:p,draggable:c,destination:a,draggables:f,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,onLift:t.onLift}):ol({isMovingForward:u,previousPageBorderBoxCenter:p,draggable:c,isOver:a,draggables:f,droppables:h,previousImpact:t.impact,viewport:t.viewport,onLift:t.onLift})};function al(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}var sl,ll=function(e,t){return 0===t?e:t>0?"down":"up"},ul=function(e,t){return 0===t?e:t>0?"right":"left"},cl=function(e){var t,n,r,o,i=e.state,a=e.clientSelection,s=e.dimensions,l=e.viewport,u=e.impact,c=e.scrollJumpRequest,p=l||i.viewport,d=p.scroll.current,f=s||i.dimensions,h=a||i.current.client.selection,m=Ra(h,i.initial.client.selection),y={offset:m,selection:h,borderBoxCenter:za(i.initial.client.borderBoxCenter,m)},g={selection:za(y.selection,d),borderBoxCenter:za(y.borderBoxCenter,d)},v={client:y,page:g},b=(t=i.userDirection,n=i.current.page.borderBoxCenter,r=v.page.borderBoxCenter,o=Ra(r,n),{horizontal:ul(t.horizontal,o.x),vertical:ll(t.vertical,o.y)});if("COLLECTING"===i.phase)return gi({phase:"COLLECTING"},i,{dimensions:f,viewport:p,current:v,userDirection:b});var w=f.draggables[i.critical.draggable.id],_=u||Ss({pageBorderBoxCenter:g.borderBoxCenter,draggable:w,draggables:f.draggables,droppables:f.droppables,previousImpact:i.impact,viewport:p,userDirection:b,onLift:i.onLift}),D=zs({draggable:w,impact:_,previousImpact:i.impact,draggables:f.draggables,droppables:f.droppables});return gi({},i,{current:v,userDirection:b,dimensions:{draggables:f.draggables,droppables:D},impact:_,viewport:p,scrollJumpRequest:c||null,forceShouldAnimate:!c&&null})},pl=function(e){var t=e.impact,n=e.viewport,r=e.destination,o=e.draggables,i=e.onLift,a=e.forceShouldAnimate,s=t.movement.displaced.map((function(e){return bs({draggable:o[e.draggableId],destination:r,previousImpact:t,viewport:n.frame,onLift:i,forceShouldAnimate:a})}));return Ys(t,s)},dl=function(e){var t=e.impact,n=e.draggable,r=e.droppable,o=e.draggables,i=e.viewport,a=e.onLift,s=Ks({impact:t,draggable:n,draggables:o,droppable:r,onLift:a});return Xs({pageBorderBoxCenter:s,draggable:n,viewport:i})},fl=function(e){var t=e.state,n=e.dimensions,r=e.viewport;"SNAP"!==t.movementMode&&Ei(!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=Ja(o);c||Ei(!1);var p=l[c],d=pl({impact:o,viewport:i,destination:p,draggables:s,onLift:t.onLift}),f=dl({impact:d,draggable:u,droppable:p,draggables:s,viewport:i,onLift:t.onLift});return cl({impact:d,clientSelection:f,state:t,dimensions:a,viewport:i})},hl=function(e){return"SNAP"===e.movementMode},ml=function(e,t,n){var r=function(e,t){return{draggables:e.draggables,droppables:Ms(e.droppables,t)}}(e.dimensions,t);return!hl(e)||n?cl({state:e,dimensions:r}):fl({state:e,dimensions:r})},yl={phase:"IDLE",completed:null,shouldFlush:!1},gl=function(e,t){if(void 0===e&&(e=yl),"CLEAN"===t.type)return yl;if("INITIAL_PUBLISH"===t.type){"IDLE"!==e.phase&&Ei(!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],u=a.droppables[r.droppable.id],c={selection:o,borderBoxCenter:l.client.borderBox.center,offset:Ma},p={client:c,page:{selection:za(c.selection,i.scroll.initial),borderBoxCenter:za(c.selection,i.scroll.initial)}},d=ns(a.droppables).every((function(e){return!e.isFixedOnPage})),f=Os({draggable:l,home:u,draggables:a.draggables,viewport:i}),h=f.impact;return{phase:"DRAGGING",isDragging:!0,critical:r,movementMode:s,dimensions:a,initial:p,current:p,isWindowScrollAllowed:d,impact:h,onLift:f.onLift,onLiftImpact:h,viewport:i,userDirection:qs,scrollJumpRequest:null,forceShouldAnimate:null}}var m;if("COLLECTION_STARTING"===t.type)return"COLLECTING"===e.phase||"DROP_PENDING"===e.phase?e:("DRAGGING"!==e.phase&&Ei(!1),gi({phase:"COLLECTING"},e,((m={}).phase="COLLECTING",m)));if("PUBLISH_WHILE_DRAGGING"===t.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&Ei(!1),Rs({state:e,published:t.payload});if("MOVE"===t.type){if("DROP_PENDING"===e.phase)return e;al(e)||Ei(!1);var y=t.payload.client;return qa(y,e.current.client.selection)?e:cl({state:e,clientSelection:y,impact:hl(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===t.type){if("DROP_PENDING"===e.phase)return e;if("COLLECTING"===e.phase)return e;al(e)||Ei(!1);var g=t.payload,v=g.id,b=g.offset,w=e.dimensions.droppables[v];if(!w)return e;var _=Ka(w,b);return ml(e,_,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;al(e)||Ei(!1);var D=t.payload,E=D.id,x=D.isEnabled,S=e.dimensions.droppables[E];S||Ei(!1),S.isEnabled===x&&Ei(!1);var O=gi({},S,{isEnabled:x});return ml(e,O,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;al(e)||Ei(!1);var k=t.payload,I=k.id,P=k.isCombineEnabled,T=e.dimensions.droppables[I];T||Ei(!1),T.isCombineEnabled===P&&Ei(!1);var C=gi({},T,{isCombineEnabled:P});return ml(e,C,!0)}if("MOVE_BY_WINDOW_SCROLL"===t.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;al(e)||Ei(!1),e.isWindowScrollAllowed||Ei(!1);var N=t.payload.newScroll;if(qa(e.viewport.scroll.current,N))return e;var j=Js(e.viewport,N);return hl(e)?fl({state:e,viewport:j}):cl({state:e,viewport:j})}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type){if(!al(e))return e;var A=t.payload.maxScroll;if(qa(A,e.viewport.scroll.max))return e;var L=gi({},e.viewport,{scroll:gi({},e.viewport.scroll,{max:A})});return gi({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&&Ei(!1);var M=il({state:e,type:t.type});return M?cl({state:e,impact:M.impact,clientSelection:M.clientSelection,scrollJumpRequest:M.scrollJumpRequest}):e}if("DROP_PENDING"===t.type){var z,R=t.payload.reason;return"COLLECTING"!==e.phase&&Ei(!1),gi({phase:"DROP_PENDING"},e,((z={}).phase="DROP_PENDING",z.isWaiting=!0,z.reason=R,z))}if("DROP_ANIMATE"===t.type){var q=t.payload,F=q.completed,B=q.dropDuration,U=q.newHomeClientOffset;return"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&Ei(!1),{phase:"DROP_ANIMATING",dimensions:e.dimensions,completed:F,dropDuration:B,newHomeClientOffset:U}}if("DROP_COMPLETE"===t.type){var $=t.payload;return{phase:"IDLE",completed:$.completed,shouldFlush:$.shouldFlush}}return e},vl=function(e){return{type:"PUBLISH_WHILE_DRAGGING",payload:e}},bl=function(){return{type:"COLLECTION_STARTING",payload:null}},wl=function(e){return{type:"UPDATE_DROPPABLE_SCROLL",payload:e}},_l=function(e){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}},Dl=function(e){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}},El=function(e){return{type:"MOVE",payload:e}},xl=function(e){return{type:"DROP_COMPLETE",payload:e}},Sl=function(e){return{type:"DROP",payload:e}},Ol="cubic-bezier(.2,1,.1,1)",kl={drop:0,combining:.7},Il={drop:.75},Pl=.2+"s "+"cubic-bezier(0.2, 0, 0, 1)",Tl={fluid:"opacity "+Pl,snap:"transform "+Pl+", opacity "+Pl,drop:function(e){var t=e+"s "+Ol;return"transform "+t+", opacity "+t},outOfTheWay:"transform "+Pl,placeholder:"height "+Pl+", width "+Pl+", margin "+Pl},Cl=function(e){return qa(e,Ma)?null:"translate("+e.x+"px, "+e.y+"px)"},Nl={moveTo:Cl,drop:function(e,t){var n=Cl(e);return n?t?n+" scale("+Il.drop+")":n:null}},jl=.33,Al=.55,Ll=Al-jl,Ml=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&&Ei(!1),"DRAGGING"!==o.phase&&"DROP_PENDING"!==o.phase&&Ei(!1);var a=o.critical,s=o.dimensions,l=function(e){var t=e.reason,n=e.lastImpact,r=e.home,o=e.viewport,i=e.draggables,a=e.onLiftImpact,s=e.onLift,l="DROP"===t&&Boolean(Ja(n));return l?n.destination?{impact:n,didDropInsideDroppable:l}:{impact:gi({},n,{movement:Ds}),didDropInsideDroppable:l}:{impact:pl({impact:a,destination:r,viewport:o,draggables:i,onLift:s,forceShouldAnimate:!0}),didDropInsideDroppable:l}}({reason:i,lastImpact:o.impact,onLift:o.onLift,onLiftImpact:o.onLiftImpact,home:o.dimensions.droppables[o.critical.droppable.id],viewport:o.viewport,draggables:o.dimensions.draggables}),u=l.impact,c=l.didDropInsideDroppable,p=s.draggables[o.critical.draggable.id],d=c?u.destination:null,f=c&&u.merge?u.merge.combine:null,h={index:a.draggable.index,droppableId:a.droppable.id},m={draggableId:p.descriptor.id,type:p.descriptor.type,source:h,reason:i,mode:o.movementMode,destination:d,combine:f},y=function(e){var t=e.impact,n=e.draggable,r=e.dimensions,o=e.viewport,i=e.onLift,a=r.draggables,s=r.droppables,l=Ja(t),u=l?s[l]:null,c=s[n.descriptor.droppableId],p=dl({impact:t,draggable:n,draggables:a,onLift:i,droppable:u||c,viewport:o}),d=Ra(p,n.client.borderBox.center),f=t.merge;return f&&cs(f.combine.draggableId,i)?Ra(d,i.displacedBy.point):d}({impact:u,draggable:p,dimensions:s,viewport:o.viewport,onLift:o.onLift}),g={critical:o.critical,result:m,impact:u};if(!qa(o.current.client.offset,y)||Boolean(m.combine)){var v=function(e){var t=e.current,n=e.destination,r=e.reason,o=Ua(t,n);if(o<=0)return jl;if(o>=1500)return Al;var i=jl+Ll*(o/1500);return Number(("CANCEL"===r?.6*i:i).toFixed(2))}({current:o.current.client.offset,destination:y,reason:i});n(function(e){return{type:"DROP_ANIMATE",payload:e}}({newHomeClientOffset:y,dropDuration:v,completed:g}))}else n(xl({completed:g,shouldFlush:!1}))}}else n(function(e){return{type:"DROP_PENDING",payload:e}}({reason:i}))}else e(r)}}},zl=function(e){return e+1},Rl=function(e,t){var n=e.droppableId===t.droppableId,r=zl(e.index),o=zl(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  "},ql=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    "},Fl=function(e){return"\n  The item has returned to its starting position\n  of "+zl(e.index)+"\n"},Bl=function(e){return"\n  You have lifted an item in position "+zl(e.source.index)+".\n  Use the arrow keys to move, space bar to drop, and escape to cancel.\n"},Ul=function(e){var t=e.destination;if(t)return Rl(e.source,t);var n=e.combine;return n?ql(e.draggableId,e.source,n):"You are over an area that cannot be dropped on"},$l=function(e){if("CANCEL"===e.reason)return"\n      Movement cancelled.\n      "+Fl(e.source)+"\n    ";var t=e.destination,n=e.combine;return t?"\n      You have dropped the item.\n      "+Rl(e.source,t)+"\n    ":n?"\n      You have dropped the item.\n      "+ql(e.draggableId,e.source,n)+"\n    ":"\n    The item has been dropped while not over a drop area.\n    "+Fl(e.source)+"\n  "},Wl=function(){var e=[];return{add:function(t){var n=setTimeout((function(){return function(t){var n=Xa(e,(function(e){return e.timerId===t}));-1===n&&Ei(!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()}))}}}},Hl=function(e,t){t()},Ql=function(e,t){return{draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t}},Vl=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))},Gl=function(e,t){var n=function(e,t){var n=Wl(),r=null,o=function(n){r||Ei(!1),r=null,Hl(0,(function(){return Vl(e().onDragEnd,n,t,$l)}))};return{beforeStart:function(t,n){r&&Ei(!1),Hl(0,(function(){var r=e().onBeforeDragStart;r&&r(Ql(t,n))}))},start:function(o,i){r&&Ei(!1);var a=Ql(o,i);r={mode:i,lastCritical:o,lastLocation:a.source,lastCombine:null},n.add((function(){Hl(0,(function(){return Vl(e().onDragStart,a,t,Bl)}))}))},update:function(o,i){var a=i.destination,s=i.merge?i.merge.combine:null;r||Ei(!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 u,c,p=(c=a,!(null==(u=r.lastLocation)&&null==c||null!=u&&null!=c&&u.droppableId===c.droppableId&&u.index===c.index));p&&(r.lastLocation=a);var d=!function(e,t){return null==e&&null==t||null!=e&&null!=t&&e.draggableId===t.draggableId&&e.droppableId===t.droppableId}(r.lastCombine,s);if(d&&(r.lastCombine=s),l||p||d){var f=gi({},Ql(o,r.mode),{combine:s,destination:a});n.add((function(){Hl(0,(function(){return Vl(e().onDragUpdate,f,t,Ul)}))}))}},flush:function(){r||Ei(!1),n.flush()},drop:o,abort:function(){if(r){var e=gi({},Ql(r.lastCritical,r.mode),{combine:null,destination:null,reason:"CANCEL"});o(e)}}}}(e,t);return function(e){return function(t){return function(r){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),"CLEAN"!==r.type){var a=e.getState();"DRAGGING"===a.phase&&n.update(a.critical,a.impact)}else n.abort()}}}},Kl=function(e){return function(t){return function(n){if("DROP_ANIMATION_FINISHED"===n.type){var r=e.getState();"DROP_ANIMATING"!==r.phase&&Ei(!1),e.dispatch(xl({completed:r.completed,shouldFlush:!1}))}else t(n)}}},Jl=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(Sl({reason:r.reason})))}}}},Yl=Y,Xl=function(e){var t,n,r=e.getDimensionMarshal,o=e.styleMarshal,i=e.getResponders,a=e.announce,s=e.getScroller;return G(gl,Yl(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($(15))},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=t.map((function(e){return e(o)}));return r=Y.apply(void 0,i)(n.dispatch),U(U({},n),{},{dispatch:r})}}}((n=o,function(){return function(e){return function(t){"INITIAL_PUBLISH"===t.type&&n.dragging(),"DROP_ANIMATE"===t.type&&n.dropping(t.payload.completed.result.reason),"CLEAN"!==t.type&&"DROP_COMPLETE"!==t.type||n.resting(),e(t)}}}),(t=r,function(){return function(e){return function(n){"DROP_COMPLETE"!==n.type&&"CLEAN"!==n.type&&"DROP_ANIMATE"!==n.type||t().stopPublishing(),e(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=e(),a=o.payload,s=a.id,l=a.clientSelection,u=a.movementMode,c=n();"DROP_ANIMATING"===c.phase&&r(xl({completed:c.completed,shouldFlush:!0})),"IDLE"!==n().phase&&Ei(!1);var p={draggableId:s,scrollOptions:{shouldPublishImmediately:"SNAP"===u}},d=i.startPublishing(p),f=d.critical,h=d.dimensions,m=d.viewport;r({type:"INITIAL_PUBLISH",payload:{critical:f,dimensions:h,clientSelection:l,movementMode:u,viewport:m}})}else t(o)}}}}(r),Ml,Kl,Jl,function(e){return function(t){return function(n){return function(r){if(function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"CLEAN"===e.type}(r))return e().stop(),void n(r);if(function(e){return"COLLECTION_STARTING"===e.type}(r))return e().cancelPending(),void n(r);if("INITIAL_PUBLISH"===r.type){n(r);var o=t.getState();return"DRAGGING"!==o.phase&&Ei(!1),void e().start(o)}n(r),e().scroll(t.getState())}}}}(s),Gl(i,a))))},Zl=function(){return{x:window.pageXOffset,y:window.pageYOffset}},eu=function(){var e=document.documentElement;return e||Ei(!1),e},tu=function(){var e=eu();return Ps({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},nu=function(e){var t,n,r,o,i,a,s,l=e.critical,u=e.scrollOptions,c=e.entries,p=(t=Zl(),n=tu(),r=t.y,o=t.x,i=eu(),a=i.clientWidth,s=i.clientHeight,{frame:xi({top:r,left:o,right:o+a,bottom:r+s}),scroll:{initial:t,current:t,max:n,diff:{value:Ma,displacement:Ma}}}),d=p.scroll.current,f=l.droppable,h=Ya(c.droppables).filter((function(e){return e.descriptor.type===f.type})).map((function(e){return e.callbacks.getDimensionAndWatchScroll(d,u)})),m=Ya(c.draggables).filter((function(e){return e.descriptor.type===l.draggable.type})).map((function(e){return e.getDimension(d)}));return{dimensions:{draggables:ts(m),droppables:es(h)},critical:l,viewport:p}},ru=function(e,t){e.critical.draggable.type!==t.type&&Ei(!1)},ou=function(e){var t={droppables:{},draggables:{}},n=null,r=function(e){var t=e.getEntries,n=e.callbacks,r=function(){},o={additions:{},removals:{},modified:{}},i=null,a=function(){r(),i||(i=requestAnimationFrame((function(){i=null,n.collectionStarting();var e=n.getCritical(),r=t(),a=o,s=a.additions,l=a.removals,u=a.modified,c=Fi()(s).map((function(e){return r.draggables[e].getDimension(Ma)})).sort((function(e,t){return e.descriptor.index-t.descriptor.index})),p=Fi()(u).map((function(t){var n=r.droppables[t];n||Ei(!1);var o={withoutPlaceholder:!(n.descriptor.id===e.droppable.id)};return n.callbacks.recollect(o)})),d={additions:c,removals:Fi()(l),modified:p};o={additions:{},removals:{},modified:{}},n.publish(d)})))};return{add:function(e){o.additions[e.id]=e,o.modified[e.droppableId]=!0,o.removals[e.id]&&delete o.removals[e.id],a()},remove:function(e){o.removals[e.id]=e,o.modified[e.droppableId]=!0,o.additions[e.id]&&delete o.additions[e.id],a()},stop:function(){i&&(cancelAnimationFrame(i),i=null,o={additions:{},removals:{},modified:{}})}}}({callbacks:{publish:e.publishWhileDragging,collectionStarting:e.collectionStarting,getCritical:function(){return n||Ei(!1),n.critical}},getEntries:function(){return t}}),o={registerDraggable:function(e,o){var i={descriptor:e,getDimension:o};t.draggables[e.id]=i,n&&(ru(n,e),r.add(e))},updateDraggable:function(e,n,r){t.draggables[e.id]||Ei(!1),delete t.draggables[e.id];var o={descriptor:n,getDimension:r};t.draggables[n.id]=o},unregisterDraggable:function(e){var o=t.draggables[e.id];o||Ei(!1),o.descriptor===e&&(delete t.draggables[e.id],n&&(n.critical.draggable.id===e.id&&Ei(!1),ru(n,e),r.remove(e)))},registerDroppable:function(e,r){var o=e.id;t.droppables[o]={descriptor:e,callbacks:r},n&&Ei(!1)},updateDroppable:function(e,r,o){t.droppables[e.id]||Ei(!1),delete t.droppables[e.id];var i={descriptor:r,callbacks:o};t.droppables[r.id]=i,n&&Ei(!1)},unregisterDroppable:function(e){var r=t.droppables[e.id];r||Ei(!1),r.descriptor===e&&(delete t.droppables[e.id],n&&Ei(!1))},updateDroppableIsEnabled:function(r,o){t.droppables[r]||Ei(!1),n&&e.updateDroppableIsEnabled({id:r,isEnabled:o})},updateDroppableIsCombineEnabled:function(r,o){t.droppables[r]||Ei(!1),n&&e.updateDroppableIsCombineEnabled({id:r,isCombineEnabled:o})},scrollDroppable:function(e,r){var o=t.droppables[e];o||Ei(!1),n&&o.callbacks.scroll(r)},updateDroppableScroll:function(r,o){t.droppables[r]||Ei(!1),n&&e.updateDroppableScroll({id:r,offset:o})},startPublishing:function(e){n&&Ei(!1);var r=t.draggables[e.draggableId];r||Ei(!1);var o=t.droppables[r.descriptor.droppableId];o||Ei(!1);var i={draggable:r.descriptor,droppable:o.descriptor};return n={critical:i},nu({critical:i,entries:t,scrollOptions:e.scrollOptions})},stopPublishing:function(){if(n){r.stop();var e=n.critical.droppable;Ya(t.droppables).filter((function(t){return t.descriptor.type===e.type})).forEach((function(e){return e.callbacks.dragStopped()})),n=null}}};return o},iu="data-react-beautiful-dnd",au=iu+"-drag-handle",su=iu+"-draggable",lu=iu+"-droppable",uu=function(e,t){return e.map((function(e){var n=e.styles[t];return n?e.selector+" { "+n+" }":""})).join(" ")},cu=0,pu=function(){var e=document.querySelector("head");return e||Ei(!1),e},du=function(){var e=document.createElement("style");return e.type="text/css",e},fu=function(){var e=""+cu++,t=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(au),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: "+Tl.outOfTheWay+";\n    ",{selector:o(su),styles:{dragging:r,dropAnimating:r,userCancel:r}}),i,{selector:o(lu),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:uu(a,"always"),resting:uu(a,"resting"),dragging:uu(a,"dragging"),dropAnimating:uu(a,"dropAnimating"),userCancel:uu(a,"userCancel")}}(e),n=null,r=null,o=Mi((function(e,t){e||Ei(!1),e.innerHTML=t}));return{dragging:function(){return o(r,t.dragging)},dropping:function(e){o(r,"DROP"!==e?t.userCancel:t.dropAnimating)},resting:function(){return o(r,t.resting)},styleContext:e,mount:function(){(n||r)&&Ei(!1),n=du(),r=du(),n.setAttribute(iu+"-always",e),r.setAttribute(iu+"-dynamic",e),pu().appendChild(n),pu().appendChild(r),o(n,t.always),o(r,t.resting)},unmount:function(){n&&r||Ei(!1),pu().removeChild(n),pu().removeChild(r),n=null,r=null}}},hu=function(e){window.scrollBy(e.x,e.y)},mu=function(){var e=document.body;return e||Ei(!1),e},yu=0,gu={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},vu=Mi((function(e){return ns(e).filter((function(e){return!!e.isEnabled&&!!e.frame}))})),bu=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=Za(vu(t),(function(t){return t.frame||Ei(!1),is(t.frame.pageMarginBox)(e)}));return n}(t,r);return i},wu=.25,_u=.05,Du=28,Eu=function(e){return Math.pow(e,2)},xu={stopDampeningAt:1200,accelerateAt:360},Su=function(e){var t=e.startOfRange,n=e.endOfRange,r=e.current,o=n-t;return 0===o?0:(r-t)/o},Ou=xu.accelerateAt,ku=xu.stopDampeningAt,Iu=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 Du;if(e===t.startScrollingFrom)return 1;var n=Su({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),r=Du*Eu(1-n);return Math.ceil(r)}(t,n);return 0===i?0:o?Math.max(function(e,t){var n=t,r=ku,o=Wi()()-n;if(o>=ku)return e;if(o<Ou)return 1;var i=Su({startOfRange:Ou,endOfRange:r,current:o}),a=e*Eu(i);return Math.ceil(a)}(i,r),1):i},Pu=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]*wu,maxScrollValueAt:e[t.size]*_u}}(t,o);return n[o.end]<n[o.start]?Iu({distanceToEdge:n[o.end],thresholds:a,dragStartTime:r,shouldUseTimeDampening:i}):-1*Iu({distanceToEdge:n[o.start],thresholds:a,dragStartTime:r,shouldUseTimeDampening:i})},Tu=Wa((function(e){return 0===e?0:e})),Cu=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=Pu({container:n,distanceToEdges:a,dragStartTime:t,axis:ss,shouldUseTimeDampening:i}),l=Pu({container:n,distanceToEdges:a,dragStartTime:t,axis:ls,shouldUseTimeDampening:i}),u=Tu({x:l,y:s});if(qa(u,Ma))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?qa(c,Ma)?null:c:null},Nu=Wa((function(e){return 0===e?0:e>0?1:-1})),ju=(sl=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=za(t,r),i={x:sl(o.x,n.x),y:sl(o.y,n.y)};return qa(i,Ma)?null:i}),Au=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=Nu(r),a=ju({max:o,current:n,change:i});return!a||(0!==i.x&&0===a.x||0!==i.y&&0===a.y)},Lu=function(e,t){return Au({current:e.scroll.current,max:e.scroll.max,change:t})},Mu=function(e,t){var n=e.frame;return!!n&&Au({current:n.scroll.current,max:n.scroll.max,change:t})},zu=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=Cu({dragStartTime:o,container:t.frame,subject:n,center:r,shouldUseTimeDampening:i});return a&&Lu(t,a)?a:null}({dragStartTime:n,viewport:t.viewport,subject:s,center:a,shouldUseTimeDampening:r});if(l)return void o(l)}var u=bu({center:a,destination:Ja(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=Cu({dragStartTime:o,container:a.pageMarginBox,subject:n,center:r,shouldUseTimeDampening:i});return s&&Mu(t,s)?s:null}({dragStartTime:n,droppable:u,subject:s,center:a,shouldUseTimeDampening:r});c&&i(u.descriptor.id,c)}},Ru=function(e){var t=e.move,n=e.scrollDroppable,r=e.scrollWindow,o=function(e,t){if(!Mu(e,t))return t;var r=function(e,t){var n=e.frame;return n&&Mu(e,t)?ju({current:n.scroll.current,max:n.scroll.max,change:t}):null}(e,t);if(!r)return n(e.descriptor.id,t),null;var o=Ra(t,r);return n(e.descriptor.id,o),Ra(t,o)},i=function(e,t,n){if(!e)return n;if(!Lu(t,n))return n;var o=function(e,t){if(!Lu(e,t))return null;var n=e.scroll.max,r=e.scroll.current;return ju({current:r,max:n,change:t})}(t,n);if(!o)return r(n),null;var i=Ra(n,o);return r(i),Ra(n,i)};return function(e){var n=e.scrollJumpRequest;if(n){var r=Ja(e.impact);r||Ei(!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=za(e.current.client.selection,n);t({client:r})}(e,l)}}}},qu=function(e){var t=e.scrollDroppable,n=e.scrollWindow,r=e.move,o=function(e){var t=e.scrollWindow,n=e.scrollDroppable,r=Hi(t),o=Hi(n),i=null,a=function(e){i||Ei(!1);var t=i,n=t.shouldUseTimeDampening,a=t.dragStartTime;zu({state:e,scrollWindow:r,scrollDroppable:o,dragStartTime:a,shouldUseTimeDampening:n})},s=function(){i||Ei(!1),r.cancel(),o.cancel()};return{start:function(e){i&&Ei(!1);var t=Wi()(),n=!1,r=function(){n=!0};zu({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:r,scrollDroppable:r}),i={dragStartTime:t,shouldUseTimeDampening:n},n&&a(e)},stop:function(){i&&(s(),i=null)},cancelPending:s,scroll:a}}({scrollWindow:n,scrollDroppable:t}),i=Ru({move:r,scrollWindow:n,scrollDroppable:t});return{scroll:function(e){"DRAGGING"===e.phase&&("FLUID"!==e.movementMode?e.scrollJumpRequest&&i(e):o.scroll(e))},cancelPending:o.cancelPending,start:o.start,stop:o.stop}},Fu=function(e){return"private-react-beautiful-dnd-key-do-not-use-"+e},Bu=Fu("store"),Uu=Fu("droppable-id"),$u=Fu("droppable-type"),Wu=Fu("dimension-marshal"),Hu=Fu("style"),Qu=Fu("can-lift"),Vu=Fu("is-movement-allowed");var Gu,Ku=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).onFatalError=function(e){if(t.props.onError(),-1===e.message.indexOf("Invariant failed"))throw e;t.setState({})},t}_i(t,e);var n=t.prototype;return n.componentDidMount=function(){window.addEventListener("error",this.onFatalError)},n.componentWillUnmount=function(){window.removeEventListener("error",this.onFatalError)},n.componentDidCatch=function(e){this.onFatalError(e)},n.render=function(){return this.props.children},t}(e.Component),Ju=function(t){function n(e,n){var r,o,i;(r=t.call(this,e,n)||this).store=void 0,r.dimensionMarshal=void 0,r.styleMarshal=void 0,r.autoScroller=void 0,r.announcer=void 0,r.unsubscribe=void 0,r.canLift=function(e){return function(e,t){return"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&e.completed.result.draggableId!==t&&"DROP"===e.completed.result.reason}(r.store.getState(),e)},r.getIsMovementAllowed=function(){return al(r.store.getState())},r.tryResetStore=function(){"IDLE"!==r.store.getState().phase&&r.store.dispatch({type:"CLEAN",payload:null})},r.announcer=(o="react-beautiful-dnd-announcement-"+yu++,i=null,{announce:function(e){i&&(i.textContent=e)},id:o,mount:function(){i&&Ei(!1),(i=document.createElement("div")).id=o,i.setAttribute("aria-live","assertive"),i.setAttribute("role","log"),i.setAttribute("aria-atomic","true"),Ui()(i.style,gu),mu().appendChild(i)},unmount:function(){i||Ei(!1),mu().removeChild(i),i=null}}),r.styleMarshal=fu(),r.store=Xl({getDimensionMarshal:function(){return r.dimensionMarshal},styleMarshal:r.styleMarshal,getResponders:function(){return{onBeforeDragStart:r.props.onBeforeDragStart,onDragStart:r.props.onDragStart,onDragEnd:r.props.onDragEnd,onDragUpdate:r.props.onDragUpdate}},announce:r.announcer.announce,getScroller:function(){return r.autoScroller}});var a=J({publishWhileDragging:vl,updateDroppableScroll:wl,updateDroppableIsEnabled:_l,updateDroppableIsCombineEnabled:Dl,collectionStarting:bl},r.store.dispatch);return r.dimensionMarshal=ou(a),r.autoScroller=qu(gi({scrollWindow:hu,scrollDroppable:r.dimensionMarshal.scrollDroppable},J({move:El},r.store.dispatch))),r}_i(n,t);var r=n.prototype;return r.getChildContext=function(){var e;return(e={})[Bu]=this.store,e[Wu]=this.dimensionMarshal,e[Hu]=this.styleMarshal.styleContext,e[Qu]=this.canLift,e[Vu]=this.getIsMovementAllowed,e},r.componentDidMount=function(){this.styleMarshal.mount(),this.announcer.mount()},r.componentWillUnmount=function(){this.tryResetStore(),this.styleMarshal.unmount(),this.announcer.unmount()},r.render=function(){return e.createElement(Ku,{onError:this.tryResetStore},this.props.children)},n}(e.Component);Ju.childContextTypes=((Gu={})[Bu]=mi().shape({dispatch:mi().func.isRequired,subscribe:mi().func.isRequired,getState:mi().func.isRequired}).isRequired,Gu[Wu]=mi().object.isRequired,Gu[Hu]=mi().string.isRequired,Gu[Qu]=mi().func.isRequired,Gu[Vu]=mi().func.isRequired,Gu);var Yu,Xu=function(e){return function(t){return e===t}},Zu=Xu("scroll"),ec=Xu("auto"),tc=(Xu("visible"),function(e,t){return t(e.overflowX)||t(e.overflowY)}),nc=function(e){var t=window.getComputedStyle(e),n={overflowX:t.overflowX,overflowY:t.overflowY};return tc(n,Zu)||tc(n,ec)},rc=function e(t){return null==t||t===document.body||t===document.documentElement?null:nc(t)?t:e(t.parentElement)},oc=function(e){return{x:e.scrollLeft,y:e.scrollTop}},ic=function e(t){return!!t&&("fixed"===window.getComputedStyle(t).position||e(t.parentElement))},ac=function(e){return{closestScrollable:rc(e),isFixedOnPage:ic(e)}},sc=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=ji(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=Si({top:r,right:a,bottom:i,left:o},n.border);return Ii({borderBox:s,margin:n.margin,border:n.border,padding:n.padding})}(t,u),p=Ci(c,o),d=function(){if(!u)return null;var e=ji(u),t={scrollHeight:u.scrollHeight,scrollWidth:u.scrollWidth};return{client:e,page:Ci(e,o),scroll:oc(u),scrollSize:t,shouldClipSubject:l}}();return Ts({descriptor:n,isEnabled:!a,isCombineEnabled:s,isFixedOnPage:r.isFixedOnPage,direction:i,client:c,page:p,closest:d})},lc=function(e){return e&&e.env.closestScrollable||null},uc={passive:!1},cc={passive:!0},pc=function(e){return e.shouldPublishImmediately?uc:cc},dc=function(e){function t(t,n){var r;(r=e.call(this,t,n)||this).dragging=void 0,r.callbacks=void 0,r.publishedDescriptor=null,r.getClosestScroll=function(){var e=r.dragging;return e&&e.env.closestScrollable?oc(e.env.closestScrollable):Ma},r.memoizedUpdateScroll=Mi((function(e,t){r.publishedDescriptor||Ei(!1);var n={x:e,y:t};r.context[Wu].updateDroppableScroll(r.publishedDescriptor.id,n)})),r.updateScroll=function(){var e=r.getClosestScroll();r.memoizedUpdateScroll(e.x,e.y)},r.scheduleScrollUpdate=Hi(r.updateScroll),r.onClosestScroll=function(){var e=r.dragging,t=lc(r.dragging);e&&t||Ei(!1),e.scrollOptions.shouldPublishImmediately?r.updateScroll():r.scheduleScrollUpdate()},r.scroll=function(e){var t=lc(r.dragging);t||Ei(!1),t.scrollTop+=e.y,t.scrollLeft+=e.x},r.dragStopped=function(){var e=r.dragging;e||Ei(!1);var t=lc(e);r.dragging=null,t&&(r.scheduleScrollUpdate.cancel(),t.removeEventListener("scroll",r.onClosestScroll,pc(e.scrollOptions)))},r.getMemoizedDescriptor=Mi((function(e,t){return{id:e,type:t}})),r.publish=function(){var e=r.context[Wu],t=r.getMemoizedDescriptor(r.props.droppableId,r.props.type);if(!r.publishedDescriptor)return e.registerDroppable(t,r.callbacks),void(r.publishedDescriptor=t);r.publishedDescriptor!==t&&(e.updateDroppable(r.publishedDescriptor,t,r.callbacks),r.publishedDescriptor=t)},r.unpublish=function(){r.publishedDescriptor||Ei(!1),r.context[Wu].unregisterDroppable(r.publishedDescriptor),r.publishedDescriptor=null},r.recollect=function(e){var t=r.dragging,n=lc(t);t&&n||Ei(!1);var o=function(){return sc({ref:t.ref,descriptor:t.descriptor,env:t.env,windowScroll:Ma,direction:r.props.direction,isDropDisabled:r.props.isDropDisabled,isCombineEnabled:r.props.isCombineEnabled,shouldClipSubject:!r.props.ignoreContainerClipping})};return e.withoutPlaceholder?function(e,t){if(!e)return t();var n=e.style.display;e.style.display="none";var r=t();return e.style.display=n,r}(r.props.getPlaceholderRef(),o):o()},r.getDimensionAndWatchScroll=function(e,t){r.dragging&&Ei(!1);var n=r.publishedDescriptor;n||Ei(!1);var o=r.props.getDroppableRef();o||Ei(!1);var i=ac(o),a={ref:o,descriptor:n,env:i,scrollOptions:t};r.dragging=a;var s=sc({ref:o,descriptor:n,env:i,windowScroll:e,direction:r.props.direction,isDropDisabled:r.props.isDropDisabled,isCombineEnabled:r.props.isCombineEnabled,shouldClipSubject:!r.props.ignoreContainerClipping});return i.closestScrollable&&i.closestScrollable.addEventListener("scroll",r.onClosestScroll,pc(a.scrollOptions)),s};var o={getDimensionAndWatchScroll:r.getDimensionAndWatchScroll,recollect:r.recollect,dragStopped:r.dragStopped,scroll:r.scroll};return r.callbacks=o,r}_i(t,e);var n=t.prototype;return n.componentDidMount=function(){this.publish()},n.componentDidUpdate=function(e){if(this.publish(),this.dragging){var t=this.props.isDropDisabled!==e.isDropDisabled,n=this.props.isCombineEnabled!==e.isCombineEnabled;if(t||n){var r=this.context[Wu];t&&r.updateDroppableIsEnabled(this.props.droppableId,!this.props.isDropDisabled),n&&r.updateDroppableIsCombineEnabled(this.props.droppableId,this.props.isCombineEnabled)}}},n.componentWillUnmount=function(){this.dragging&&this.dragStopped(),this.unpublish()},n.render=function(){return this.props.children},t}(e.Component);dc.contextTypes=((Yu={})[Wu]=mi().object.isRequired,Yu);var fc={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}},hc=function(t){function n(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))||this).mountTimerId=null,e.state={isAnimatingOpenOnMount:"open"===e.props.animate},e.onTransitionEnd=function(t){"height"===t.propertyName&&(e.props.onTransitionEnd(),"close"===e.props.animate&&e.props.onClose())},e}_i(n,t),n.getDerivedStateFromProps=function(e,t){return t.isAnimatingOpenOnMount&&"open"!==e.animate?{isAnimatingOpenOnMount:!1}:t};var r=n.prototype;return r.componentDidMount=function(){var e=this;this.state.isAnimatingOpenOnMount&&(this.mountTimerId=setTimeout((function(){e.mountTimerId=null,e.state.isAnimatingOpenOnMount&&e.setState({isAnimatingOpenOnMount:!1})})))},r.componentWillUnmount=function(){this.mountTimerId&&(clearTimeout(this.mountTimerId),this.mountTimerId=null)},r.getSize=function(){if(this.state.isAnimatingOpenOnMount)return fc;if("close"===this.props.animate)return fc;var e=this.props.placeholder;return{height:e.client.borderBox.height,width:e.client.borderBox.width,margin:e.client.margin}},r.render=function(){var t=this.props.placeholder,n=this.getSize(),r=t.display,o=t.tagName,i={display:r,boxSizing:"border-box",width:n.width,height:n.height,marginTop:n.margin.top,marginRight:n.margin.right,marginBottom:n.margin.bottom,marginLeft:n.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:Tl.placeholder};return e.createElement(o,{style:i,onTransitionEnd:this.onTransitionEnd,ref:this.props.innerRef})},n}(e.PureComponent),mc=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function yc(e){return e instanceof mc(e).HTMLElement}var gc,vc,bc=function(e){e&&yc(e)||Ei(!1)},wc=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 _i(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),_c=function(t){function n(e,n){var r;return(r=t.call(this,e,n)||this).styleContext=void 0,r.ref=null,r.placeholderRef=null,r.setPlaceholderRef=function(e){r.placeholderRef=e},r.getPlaceholderRef=function(){return r.placeholderRef},r.setRef=function(e){null!==e&&e!==r.ref&&(r.ref=e,bc(e))},r.getDroppableRef=function(){return r.ref},r.onPlaceholderTransitionEnd=function(){r.context[Vu]()&&r.props.updateViewportMaxScroll({maxScroll:tu()})},r.styleContext=n[Hu],r}_i(n,t);var r=n.prototype;return r.getChildContext=function(){var e;return(e={})[Uu]=this.props.droppableId,e[$u]=this.props.type,e},r.componentDidMount=function(){bc(this.ref),this.warnIfPlaceholderNotMounted()},r.componentDidUpdate=function(){this.warnIfPlaceholderNotMounted()},r.componentWillUnmount=function(){this.ref=null,this.placeholderRef=null},r.warnIfPlaceholderNotMounted=function(){},r.getPlaceholder=function(){var t=this;return e.createElement(wc,{on:this.props.placeholder,shouldAnimate:this.props.shouldAnimatePlaceholder},(function(n){var r=n.onClose,o=n.data,i=n.animate;return e.createElement(hc,{placeholder:o,onClose:r,innerRef:t.setPlaceholderRef,animate:i,onTransitionEnd:t.onPlaceholderTransitionEnd})}))},r.render=function(){var t=this.props,n=t.children,r=t.direction,o=t.type,i=t.droppableId,a=t.isDropDisabled,s=t.isCombineEnabled,l=t.ignoreContainerClipping,u=t.snapshot,c={innerRef:this.setRef,placeholder:this.getPlaceholder(),droppableProps:{"data-react-beautiful-dnd-droppable":this.styleContext}};return e.createElement(dc,{droppableId:i,type:o,direction:r,ignoreContainerClipping:l,isDropDisabled:a,isCombineEnabled:s,getDroppableRef:this.getDroppableRef,getPlaceholderRef:this.getPlaceholderRef},n(c,u))},n}(e.Component);_c.contextTypes=((gc={})[Hu]=mi().string.isRequired,gc[Vu]=mi().func.isRequired,gc),_c.childContextTypes=((vc={})[Uu]=mi().string.isRequired,vc[$u]=mi().string.isRequired,vc);var Dc,Ec=function(e,t){return e===t},xc=function(e){var t=e.combine,n=e.destination;return n?n.droppableId:t?t.droppableId:null},Sc=function(e,t){return e===t.droppable.type},Oc=function(e,t){return t.draggables[e.draggable.id]},kc=La((function(){var e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null}},t=gi({},e,{shouldAnimatePlaceholder:!1}),n=Mi((function(t,n,r,o){return r.descriptor.droppableId===t?{placeholder:r.placeholder,shouldAnimatePlaceholder:!1,snapshot:o}:n?{placeholder:r.placeholder,shouldAnimatePlaceholder:!0,snapshot:o}:e})),r=Mi((function(e,t,n){var r=n.descriptor.id;return{isDraggingOver:t,draggingOverWith:t?r:null,draggingFromThisWith:n.descriptor.droppableId===e?r:null}}));return function(o,i){var a=i.droppableId,s=i.type;if(o.isDragging){var l=o.critical;if(!Sc(s,l))return e;var u=Oc(l,o.dimensions),c=Ja(o.impact)===a,p=r(a,c,u);return n(a,c,u,p)}if("DROP_ANIMATING"===o.phase){var d=o.completed;if(!Sc(s,d.critical))return e;var f=Oc(d.critical,o.dimensions),h=r(a,xc(d.result)===a,f);return n(a,Ja(d.impact)===a,f,h)}if("IDLE"===o.phase&&o.completed){var m=o.completed;if(!Sc(s,m.critical))return e;var y=Ja(m.impact)===a,g=Boolean(m.impact.merge);return o.shouldFlush?t:y?g?e:t:e}return e}}),{updateViewportMaxScroll:function(e){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}}},null,{storeKey:Bu,pure:!0,areStatePropsEqual:Ec})(_c);kc.defaultProps={type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1};var Ic=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).publishedDescriptor=null,t.getMemoizedDescriptor=Mi((function(e,t,n,r){return{id:e,index:t,droppableId:n,type:r}})),t.publish=function(){var e=t.context[Wu],n=t.getMemoizedDescriptor(t.props.draggableId,t.props.index,t.props.droppableId,t.props.type);if(!t.publishedDescriptor)return e.registerDraggable(n,t.getDimension),void(t.publishedDescriptor=n);n!==t.publishedDescriptor&&(e.updateDraggable(t.publishedDescriptor,n,t.getDimension),t.publishedDescriptor=n)},t.unpublish=function(){t.publishedDescriptor||Ei(!1),t.context[Wu].unregisterDraggable(t.publishedDescriptor),t.publishedDescriptor=null},t.getDimension=function(e){void 0===e&&(e=Ma);var n=t.props.getDraggableRef(),r=t.publishedDescriptor;n||Ei(!1),r||Ei(!1);var o=window.getComputedStyle(n),i=n.getBoundingClientRect(),a=Ni(i,o),s=Ci(a,e);return{descriptor:r,placeholder:{client:a,tagName:n.tagName.toLowerCase(),display:o.display},displaceBy:{x:a.marginBox.width,y:a.marginBox.height},client:a,page:s}},t}_i(t,e);var n=t.prototype;return n.componentDidMount=function(){this.publish()},n.componentDidUpdate=function(){this.publish()},n.componentWillUnmount=function(){this.unpublish()},n.render=function(){return this.props.children},t}(e.Component);Ic.contextTypes=((Dc={})[Wu]=mi().object.isRequired,Dc);var Pc,Tc,Cc,Nc,jc="["+au+"]",Ac=function(e){!function(e){return e instanceof mc(e).SVGElement}(e)||Ei(!1)},Lc=function(e){if(e.hasAttribute(au))return Ac(e),e;var t=e.querySelector(jc);return Ac(e),t||Ei(!1),yc(t)||Ei(!1),t},Mc=null,zc={capture:!0},Rc=(Pc=!1,Tc=function(){Pc&&(Pc=!1,window.removeEventListener("focus",Cc,zc))},Cc=function(){Tc(),Mc=null},(Nc=function(){Pc||(Pc=!0,window.addEventListener("focus",Cc,zc))}).cancel=function(){return Tc()},Nc),qc=function(e){Mc=e,Rc()},Fc=function(e,t){if(Mc&&e===Mc){Mc=null,Rc.cancel();var n=Lc(t);n&&n.focus()}};function Bc(e){return e instanceof mc(e).Element}var Uc,$c,Wc,Hc,Qc={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0},Vc=function e(t,n){if(null==n)return!1;if(Boolean(Qc[n.tagName.toLowerCase()]))return!0;var r=n.getAttribute("contenteditable");return"true"===r||""===r||n!==t&&e(t,n.parentElement)},Gc=function(e,t){if(t.canDragInteractiveElements)return!0;var n=e.target,r=e.currentTarget;return!Bc(n)||!Bc(r)||!Vc(r,n)},Kc=function(e){var t=Mi((function(t,n){var r={x:t,y:n};e.onMove(r)})),n=Hi((function(e){return t(e.x,e.y)})),r=Hi(e.onMoveUp),o=Hi(e.onMoveDown),i=Hi(e.onMoveRight),a=Hi(e.onMoveLeft),s=Hi(e.onWindowScroll);return{move:n,moveUp:r,moveDown:o,moveRight:i,moveLeft:a,windowScrollMove:s,cancel:function(){n.cancel(),r.cancel(),o.cancel(),i.cancel(),a.cancel(),s.cancel()}}},Jc=((Uc={})[13]=!0,Uc[9]=!0,Uc),Yc=function(e){Jc[e.keyCode]&&e.preventDefault()},Xc=function(e,t){return gi({},e,t)},Zc=function(e,t,n){t.forEach((function(t){var r=Xc(n,t.options);e.addEventListener(t.eventName,t.fn,r)}))},ep=function(e,t,n){t.forEach((function(t){var r=Xc(n,t.options);e.removeEventListener(t.eventName,t.fn,r)}))},tp={capture:!0},np=function(e){var t=!1,n=function(){t&&(t=!1,ep(e(),r,tp))},r=[{eventName:"click",fn:function(e){e.preventDefault(),n()}},{eventName:"mousedown",fn:n},{eventName:"touchstart",fn:n}];return{preventNext:function(){t&&n(),t||(t=!0,Zc(e(),r,tp))},abort:n}},rp=function(){var e=!1;return{handle:function(){e&&Ei(!1),e=!0},isHandled:function(){return e},reset:function(){e=!1}}},op=($c="visibilitychange","undefined"==typeof document?$c:Za([$c,"ms"+$c,"webkit"+$c,"moz"+$c,"o"+$c],(function(e){return"on"+e in document}))||$c),ip=function(){},ap=rp(),sp=function(e){var t=e.callbacks,n=e.getWindow,r=e.canStartCapturing,o=e.getShouldRespectForceTouch,i={isDragging:!1,pending:null},a=function(e){i=e},s=function(){return Boolean(i.pending||i.isDragging)},l=Kc(t),u=np(n),c=function(e,t){void 0===e&&(e=ip),void 0===t&&(t=!0),l.cancel(),y(),ap.reset(),t&&u.preventNext(),a({isDragging:!1,pending:null}),e()},p=function(){c(ip,!1)},d=function(e){void 0===e&&(e=ip),i.pending?p():i.isDragging&&c(e)},f=function(){d(t.onCancel)},h=[{eventName:"mousemove",fn:function(e){var n=e.button,r=e.clientX,o=e.clientY;if(0===n){var s,u,c={x:r,y:o};if(i.isDragging)return e.preventDefault(),void l.move(c);if(i.pending||(p(),Ei(!1)),s=i.pending,u=c,Math.abs(u.x-s.x)>=5||Math.abs(u.y-s.y)>=5)e.preventDefault(),function(e){void 0===e&&(e=ip),a({pending:null,isDragging:!0}),e()}((function(){return t.onLift({clientSelection:c,movementMode:"FLUID"})}))}}},{eventName:"mouseup",fn:function(e){i.pending?p():(e.preventDefault(),c(t.onDrop))}},{eventName:"mousedown",fn:function(e){i.isDragging&&e.preventDefault(),c(t.onCancel)}},{eventName:"keydown",fn:function(e){if(i.isDragging)return 27===e.keyCode?(e.preventDefault(),void f()):void Yc(e);f()}},{eventName:"resize",fn:f},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(e){e.currentTarget===n()&&(i.pending?p():l.windowScrollMove())}},{eventName:"webkitmouseforcechanged",fn:function(e){if(null!=e.webkitForce&&null!=MouseEvent.WEBKIT_FORCE_AT_FORCE_MOUSE_DOWN){var t=MouseEvent.WEBKIT_FORCE_AT_FORCE_MOUSE_DOWN,n=e.webkitForce>=t;o()?n&&f():e.preventDefault()}}},{eventName:op,fn:f}],m=function(){var e=n();Zc(e,h,{capture:!0})},y=function(){var e=n();ep(e,h,{capture:!0})};return{onMouseDown:function(e){ap.isHandled()||(s()&&Ei(!1),r(e)&&0===e.button&&(e.ctrlKey||e.metaKey||e.shiftKey||e.altKey||(ap.handle(),e.preventDefault(),function(e){a({pending:e,isDragging:!1}),m()}({x:e.clientX,y:e.clientY}))))},kill:d,isCapturing:s,isDragging:function(){return i.isDragging},unmount:function(){d(),u.abort()}}},lp=((Wc={})[34]=!0,Wc[33]=!0,Wc[36]=!0,Wc[35]=!0,Wc),up=function(){},cp=function(e){var t=e.callbacks,n=e.getWindow,r=e.getDraggableRef,o=e.canStartCapturing,i={isDragging:!1},a=function(e){i=e},s=function(e){void 0===e&&(e=up),p.cancel(),h(),a({isDragging:!1}),e()},l=function(){i.isDragging&&s()},u=function(){s(t.onCancel)},c=function(){return i.isDragging},p=Kc(t),d=[{eventName:"mousedown",fn:u},{eventName:"mouseup",fn:u},{eventName:"click",fn:u},{eventName:"touchstart",fn:u},{eventName:"resize",fn:u},{eventName:"wheel",fn:u,options:{passive:!0}},{eventName:"scroll",options:{capture:!1},fn:function(e){e.currentTarget===n()&&t.onWindowScroll()}},{eventName:op,fn:u}],f=function(){Zc(n(),d,{capture:!0})},h=function(){ep(n(),d,{capture:!0})},m={onKeyDown:function(e){if(!c()){if(e.defaultPrevented)return;if(!o(e))return;if(32!==e.keyCode)return;var n=r();n||Ei(!1);var i=xi(n.getBoundingClientRect()).center;return e.preventDefault(),void function(e){void 0===e&&(e=up),a({isDragging:!0}),f(),e()}((function(){return t.onLift({clientSelection:i,movementMode:"SNAP"})}))}return 27===e.keyCode?(e.preventDefault(),void u()):32===e.keyCode?(e.preventDefault(),void s(t.onDrop)):40===e.keyCode?(e.preventDefault(),void p.moveDown()):38===e.keyCode?(e.preventDefault(),void p.moveUp()):39===e.keyCode?(e.preventDefault(),void p.moveRight()):37===e.keyCode?(e.preventDefault(),void p.moveLeft()):void(lp[e.keyCode]?e.preventDefault():Yc(e))},kill:l,isDragging:c,isCapturing:c,unmount:l};return m},pp=rp(),dp=function(){},fp=function(){var e={preventTouchMove:dp,releaseTouchMove:dp};if("undefined"==typeof window)return e;if(!("ontouchstart"in window))return e;var t=!1;window.addEventListener("touchmove",(function(e){t&&(e.defaultPrevented||e.preventDefault())}),{passive:!1,capture:!1});return{preventTouchMove:function(){t=!0},releaseTouchMove:function(){t=!1}}}(),hp={isDragging:!1,pending:null,hasMoved:!1,longPressTimerId:null},mp=function(e){var t=e.callbacks,n=e.getWindow,r=e.canStartCapturing,o=e.getShouldRespectForceTouch,i=hp,a=function(e){i=gi({},i,e)},s=function(){return Boolean(i.pending||i.isDragging||i.longPressTimerId)},l=Kc(t),u=np(n),c=function(){var e=i.pending;e||(d(),Ei(!1)),a({isDragging:!0,hasMoved:!1,pending:null,longPressTimerId:null}),t.onLift({clientSelection:e,movementMode:"FLUID"})},p=function(e){void 0===e&&(e=dp),l.cancel(),pp.reset(),fp.releaseTouchMove(),g(),u.preventNext(),a(hp),e()},d=function(){i.longPressTimerId&&clearTimeout(i.longPressTimerId),l.cancel(),pp.reset(),fp.releaseTouchMove(),g(),a(hp)},f=function(e){void 0===e&&(e=dp),i.pending?d():i.isDragging&&p(e)},h=function(){f(t.onCancel)},m=[{eventName:"touchmove",options:{passive:!1},fn:function(e){if(i.isDragging){i.hasMoved||a({hasMoved:!0});var t=e.touches[0],n={x:t.clientX,y:t.clientY};e.preventDefault(),l.move(n)}else d()}},{eventName:"touchend",fn:function(e){i.isDragging?(e.preventDefault(),p(t.onDrop)):d()}},{eventName:"touchcancel",fn:function(e){i.isDragging?(e.preventDefault(),p(t.onCancel)):d()}},{eventName:"touchstart",fn:h},{eventName:"orientationchange",fn:h},{eventName:"resize",fn:h},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){i.pending?d():l.windowScrollMove()}},{eventName:"contextmenu",fn:function(e){e.preventDefault()}},{eventName:"keydown",fn:function(e){i.isDragging?(27===e.keyCode&&e.preventDefault(),h()):h()}},{eventName:"touchforcechange",fn:function(e){(i.isDragging||i.pending)&&(i.hasMoved?e.preventDefault():o()?e.touches[0].force>=.15&&h():e.preventDefault())}},{eventName:op,fn:h}],y=function(){Zc(n(),m,{capture:!0})},g=function(){ep(n(),m,{capture:!0})};return{onTouchStart:function(e){pp.isHandled()||(s()&&Ei(!1),r(e)&&(pp.handle(),fp.preventTouchMove(),function(e){var t=e.touches[0],n={x:t.clientX,y:t.clientY},r=setTimeout(c,150);a({longPressTimerId:r,pending:n,isDragging:!1,hasMoved:!1}),y()}(e)))},kill:f,isCapturing:s,isDragging:function(){return i.isDragging},unmount:function(){f(),u.abort()}}},yp=function(e){e.preventDefault()},gp=function(e){function t(t,n){var r;(r=e.call(this,t,n)||this).mouseSensor=void 0,r.keyboardSensor=void 0,r.touchSensor=void 0,r.sensors=void 0,r.styleContext=void 0,r.canLift=void 0,r.isFocused=!1,r.lastDraggableRef=void 0,r.onFocus=function(){r.isFocused=!0},r.onBlur=function(){r.isFocused=!1},r.onKeyDown=function(e){r.mouseSensor.isCapturing()||r.touchSensor.isCapturing()||r.keyboardSensor.onKeyDown(e)},r.onMouseDown=function(e){r.keyboardSensor.isCapturing()||r.mouseSensor.isCapturing()||r.mouseSensor.onMouseDown(e)},r.onTouchStart=function(e){r.mouseSensor.isCapturing()||r.keyboardSensor.isCapturing()||r.touchSensor.onTouchStart(e)},r.canStartCapturing=function(e){return!r.isAnySensorCapturing()&&(!!r.canLift(r.props.draggableId)&&Gc(e,r.props))},r.isAnySensorCapturing=function(){return r.sensors.some((function(e){return e.isCapturing()}))},r.getProvided=Mi((function(e){return e?{onMouseDown:r.onMouseDown,onKeyDown:r.onKeyDown,onTouchStart:r.onTouchStart,onFocus:r.onFocus,onBlur:r.onBlur,tabIndex:0,"data-react-beautiful-dnd-drag-handle":r.styleContext,"aria-roledescription":"Draggable item. Press space bar to lift",draggable:!1,onDragStart:yp}:null}));var o={callbacks:r.props.callbacks,getDraggableRef:r.props.getDraggableRef,getWindow:function(){return mc(r.props.getDraggableRef())},canStartCapturing:r.canStartCapturing,getShouldRespectForceTouch:r.props.getShouldRespectForceTouch};return r.mouseSensor=sp(o),r.keyboardSensor=cp(o),r.touchSensor=mp(o),r.sensors=[r.mouseSensor,r.keyboardSensor,r.touchSensor],r.styleContext=n[Hu],r.canLift=n[Qu],r}_i(t,e);var n=t.prototype;return n.componentDidMount=function(){var e=this.props.getDraggableRef();if(this.lastDraggableRef=e,e||Ei(!1),this.props.isEnabled){var t=Lc(e);Fc(this.props.draggableId,t)}},n.componentDidUpdate=function(e){var t=this,n=this.props.getDraggableRef();(n!==this.lastDraggableRef&&(this.lastDraggableRef=n,n&&this.isFocused&&this.props.isEnabled&&Lc(n).focus()),this.isAnySensorCapturing())&&(e.isEnabled&&!this.props.isEnabled&&this.sensors.forEach((function(e){if(e.isCapturing()){var n=e.isDragging();e.kill(),n&&t.props.callbacks.onCancel()}})),e.isDragging&&!this.props.isDragging&&this.sensors.forEach((function(e){e.isCapturing()&&e.kill()})))},n.componentWillUnmount=function(){var e=this;this.sensors.forEach((function(t){var n=t.isDragging();t.unmount(),n&&e.props.callbacks.onCancel()})),!!e.props.isEnabled&&!!e.isFocused&&(e.props.isDragging||e.props.isDropAnimating)&&qc(this.props.draggableId)},n.render=function(){var e=this.props,t=e.children,n=e.isEnabled;return t(this.getProvided(n))},t}(e.Component);gp.contextTypes=((Hc={})[Hu]=mi().string.isRequired,Hc[Qu]=mi().func.isRequired,Hc);var vp={dragging:5e3,dropAnimating:4500},bp=function(e,t){return t?Tl.drop(t.duration):e?Tl.snap:Tl.fluid},wp=function(e,t){return e?t?kl.drop:kl.combining:null},_p=function(e){return null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode};function Dp(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=_p(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:bp(a,o),transform:l,opacity:wp(i,s),zIndex:s?vp.dropAnimating:vp.dragging,pointerEvents:"none"}}(e):(t=e,{transform:Nl.moveTo(t.offset),transition:t.shouldAnimateDisplacement?null:"none"});var t}var Ep,xp=function(t){function n(e,n){var r;(r=t.call(this,e,n)||this).callbacks=void 0,r.styleContext=void 0,r.ref=null,r.onMoveEnd=function(e){var t=r.props.mapped;"DRAGGING"===t.type&&Boolean(t.dropping)&&"transform"===e.propertyName&&r.props.dropAnimationFinished()},r.onLift=function(e){r.ref||Ei(!1),r.props.isDragDisabled&&Ei(!1);var t=e.clientSelection,n=e.movementMode,o=r.props;(0,o.lift)({id:o.draggableId,clientSelection:t,movementMode:n})},r.setRef=function(e){null!==e&&e!==r.ref&&(r.ref=e,bc(e))},r.getDraggableRef=function(){return r.ref},r.getShouldRespectForceTouch=function(){return r.props.shouldRespectForceTouch},r.getProvided=Mi((function(e,t){var n=Dp(e),o="DRAGGING"===e.type&&Boolean(e.dropping)?r.onMoveEnd:null;return{innerRef:r.setRef,draggableProps:{"data-react-beautiful-dnd-draggable":r.styleContext,style:n,onTransitionEnd:o},dragHandleProps:t}})),r.renderChildren=function(e){var t=r.props,n=t.children,o=t.mapped;return n(r.getProvided(o,e),o.snapshot)};var o={onLift:r.onLift,onMove:function(t){return e.move({client:t})},onDrop:function(){return e.drop({reason:"DROP"})},onCancel:function(){return e.drop({reason:"CANCEL"})},onMoveUp:e.moveUp,onMoveDown:e.moveDown,onMoveRight:e.moveRight,onMoveLeft:e.moveLeft,onWindowScroll:function(){return e.moveByWindowScroll({newScroll:Zl()})}};return r.callbacks=o,r.styleContext=n[Hu],r}_i(n,t);var r=n.prototype;return r.componentWillUnmount=function(){this.ref=null},r.render=function(){var t=this.props,n=t.draggableId,r=t.index,o=t.mapped,i=t.isDragDisabled,a=t.disableInteractiveElementBlocking,s=this.context[Uu],l=this.context[$u],u="DRAGGING"===o.type,c="DRAGGING"===o.type&&Boolean(o.dropping);return e.createElement(Ic,{key:n,draggableId:n,droppableId:s,type:l,index:r,getDraggableRef:this.getDraggableRef},e.createElement(gp,{draggableId:n,isDragging:u,isDropAnimating:c,isEnabled:!i,callbacks:this.callbacks,getDraggableRef:this.getDraggableRef,getShouldRespectForceTouch:this.getShouldRespectForceTouch,canDragInteractiveElements:a},this.renderChildren))},n}(e.Component);xp.contextTypes=((Ep={})[Uu]=mi().string.isRequired,Ep[$u]=mi().string.isRequired,Ep[Hu]=mi().string.isRequired,Ep);var Sp=La((function(){var e=Mi((function(e,t,n,r){return{isDragging:!0,isDropAnimating:Boolean(r),dropAnimation:r,mode:e,draggingOver:t,combineWith:n,combineTargetFor:null}})),t=Mi((function(e){return{isDragging:!1,isDropAnimating:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}})),n={mapped:{type:"SECONDARY",offset:Ma,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:t(null)}},r=Mi((function(e,t){return{x:e,y:t}})),o=Mi((function(t,n,r,o,i,a){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:o,combineWith:i,mode:n,offset:t,dimension:r,forceShouldAnimate:a,snapshot:e(n,o,i,null)}}})),i=Mi((function(e,n,r){return void 0===n&&(n=null),{mapped:{type:"SECONDARY",offset:e,combineTargetFor:n,shouldAnimateDisplacement:r,snapshot:t(n)}}})),a=function(e,t,n){var o=n.movement.map[e],a=n.movement,s=n.merge,l=Boolean(s&&s.combine.draggableId===e),u=a.displacedBy.point,c=r(u.x,u.y);return l?i(o?c:Ma,t,!o||o.shouldAnimate):o&&o.isVisible?i(c,null,o.shouldAnimate):null};return function(t,i){return function(t,n){if(t.isDragging){if(t.critical.draggable.id!==n.draggableId)return null;var i=t.current.client.offset,a=t.dimensions.draggables[n.draggableId],s=t.movementMode,l=Ja(t.impact),u=(p=t.impact).merge?p.merge.combine.draggableId:null,c=t.forceShouldAnimate;return o(r(i.x,i.y),s,a,l,u,c)}var p;if("DROP_ANIMATING"===t.phase){var d=t.completed;if(d.result.draggableId!==n.draggableId)return null;var f=t.dimensions.draggables[n.draggableId],h=d.result,m=h.mode,y=xc(h),g=function(e){return e.combine?e.combine.draggableId:null}(h),v={duration:t.dropDuration,curve:Ol,moveTo:t.newHomeClientOffset,opacity:g?kl.drop:null,scale:g?Il.drop:null};return{mapped:{type:"DRAGGING",offset:t.newHomeClientOffset,dimension:f,dropping:v,draggingOver:y,combineWith:g,mode:m,forceShouldAnimate:null,snapshot:e(m,y,g,v)}}}return null}(t,i)||function(e,t){if(e.isDragging)return e.critical.draggable.id===t.draggableId?null:a(t.draggableId,e.critical.draggable.id,e.impact);if("DROP_ANIMATING"===e.phase){var n=e.completed;return n.result.draggableId===t.draggableId?null:a(t.draggableId,n.result.draggableId,n.impact)}return null}(t,i)||n}}),{lift:function(e){return{type:"LIFT",payload:e}},move:El,moveUp:function(){return{type:"MOVE_UP",payload:null}},moveDown:function(){return{type:"MOVE_DOWN",payload:null}},moveLeft:function(){return{type:"MOVE_LEFT",payload:null}},moveRight:function(){return{type:"MOVE_RIGHT",payload:null}},moveByWindowScroll:function(e){return{type:"MOVE_BY_WINDOW_SCROLL",payload:e}},drop:Sl,dropAnimationFinished:function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}}},null,{storeKey:Bu,pure:!0,areStatePropsEqual:Ec})(xp);Sp.defaultProps={isDragDisabled:!1,disableInteractiveElementBlocking:!1,shouldRespectForceTouch:!0};var Op=n(2392),kp=n.n(Op);const Ip=e=>({type:To,payload:e}),Pp=e=>({type:Io,payload:e}),Tp=e=>({type:Co,payload:e}),Cp=e=>({type:No,payload:e}),Np=(e,t,n)=>({type:jo,parent:e,destinationIndex:t,payload:n}),jp=(e,t,n)=>({type:Mo,parent:e,destinationIndex:t,payload:n}),Ap=e=>({type:zo,payload:e}),Lp=e=>({type:Ro,payload:e}),Mp=(e,t)=>({type:qo,payload:e,parent:t}),zp=e=>({type:Ao,payload:e}),Rp=e=>({type:Lo,payload:e}),qp=e=>({type:Vo,payload:e}),Fp=(e,t)=>({type:Go,parent:e,payload:t}),Bp=(e,t)=>({type:Ko,index:e,payload:t}),Up=e=>({type:Yo,payload:e}),$p=e=>({type:Zo,direction:"up",payload:e}),Wp=e=>({type:Zo,direction:"down",payload:e}),Hp=e=>({type:ti,payload:e});var Qp=n(9669),Vp=n.n(Qp),Gp=n(129),Kp=n.n(Gp);const Jp=`${LearnDashData.rest.root}${LearnDashData.rest.namespace}/${LearnDashData.rest.base.question}`,Yp=`${LearnDashData.rest.root}${LearnDashData.rest.namespace}/${LearnDashData.rest.base.lessons}`,Xp=`${LearnDashData.rest.root}${LearnDashData.rest.namespace}/${LearnDashData.rest.base.topic}`,Zp=`${LearnDashData.rest.root}${LearnDashData.rest.namespace}/${LearnDashData.rest.base.quiz}`,ed={question:Jp,lesson:Yp,topic:Xp,quiz:Zp},td=async(e,t)=>await Vp().post(`${Jp}/${e}`,t,{headers:{"X-WP-Nonce":LearnDashData.rest.nonce}}),nd=async function(e,t){return arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&console.warn('"shouldCalculatePoints" argument is deprecated.'),await Vp().post(`${Jp}/${e}`,{_answerData:wo(t)},{headers:{"X-WP-Nonce":LearnDashData.rest.nonce}})},rd=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return await Vp().post(LearnDashData.ajaxurl,Kp().stringify(e),t)},od=async(e,t)=>200;function id(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?id(Object(n),!0).forEach((function(t){sd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):id(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sd(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 ld=(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))},ud=e=>e.map(((e,t)=>"section-heading"===e.type?ad(ad({},e),{},{order:t}):e)),cd=e=>e.filter((e=>"section-heading"===e.type)),pd=e=>{const{draggableId:t}=e,n=JSON.parse(t);fi.dispatch(zp({currentDraggableEntity:n,currentDroppableEntity:null}))},dd=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=fi.getState(),l=Object.values(s.workspace.present.lessons),u=kp()(l,_o);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=ld(e,t.index,n.index),i=ud(r),a=cd(i);fi.dispatch(Ip(i)),fi.dispatch(Tp(a)),od(LearnDashData.post_data.builder_post_id),"section-heading"!==s.workspace.present.currentDraggableEntity.type&&fi.dispatch(Cp({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,fi.dispatch(Pp(e))}if("topic"===o.type||"sfwd-topic"===o.type){const e=Do.getNodeByKey(l,parseInt(a.ID)),r=Do.getNodeByKey(u,parseInt(a.ID));if(e){const s=o;s&&(i.ID!==a.ID?("droppable-topic"!==i.ID&&fi.dispatch(Up({ID:parseInt(o.ID)})),fi.dispatch(Np(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=ld(e.tree,t.index,n.index),fi.dispatch(Ip(l))),r.ID&&!r.nodeData.parent&&fi.dispatch(Cp({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=Do.getNodeByKey(l,parseInt(a.ID)),r=Do.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=ld(e.tree,t.index,n.index),fi.dispatch(Ip(l))}else if("course-workspace-quiz-droppable"===i.ID&&fi.dispatch(Up({ID:o.ID})),"lesson"!==a.type||"sfwd-lessons"!==a.type)i.ID!==a.ID&&(fi.dispatch((e=>({type:ei,payload:e}))({ID:o.ID})),fi.dispatch(jp(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);fi.dispatch(jp(parseInt(a.ID),e,s))}let u=e.ID;"lesson"!==e.type&&"sfwd-lessons"!==e.type&&(u=r.nodeData.ancestors[0]),fi.dispatch(Cp({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=ld(e,t.index,n.index);fi.dispatch({type:Jo,payload:r})}else"droppable-quiz"!==i.ID&&fi.dispatch(Up({ID:o.ID})),fi.dispatch(Bp(n.index,o));fi.dispatch(Rp({isDropDisabledLesson:null})),fi.dispatch(zp({currentDraggableEntity:null}))},fd=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=fi.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=kp()(l,_o);if(!("quiz"!==r.type&&"sfwd-quiz"!==r.type||"lesson"!==o.type&&"sfwd-lessons"!==o.type)){const e=Do.getNodeByKey(u,parseInt(o.ID));!e.tree[i]||"topic"!==e.tree[i].type&&"sfwd-topic"!==e.tree[i].type?fi.dispatch(Rp({isDropDisabledLesson:null})):fi.dispatch(Rp({isDropDisabledLesson:e.ID}))}if("topic"===r.type||"sfwd-topic"===r.type){const e=Do.getNodeByKey(u,parseInt(o.ID));!e.tree[i]||"quiz"!==e.tree[i].type&&"sfwd-quiz"!==e.tree[i].type?fi.dispatch(Rp({isDropDisabledLesson:null})):fi.dispatch(Rp({isDropDisabledLesson:e.ID}))}if("answer"===r.type){const e=Do.getNodeByKey(u,parseInt(o.ID));e.answers[s[e.question_type]][i]&&"answer"===e.answers[s[e.question_type]][i].type?fi.dispatch(Rp({isDropDisabledLesson:e.ID})):fi.dispatch(Rp({isDropDisabledLesson:null}))}return!1},hd=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 md=n(4184),yd=n.n(md);const gd=e=>({type:Bo,payload:e});function vd(){return vd=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},vd.apply(this,arguments)}function bd(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 wd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bd(Object(n),!0).forEach((function(t){_d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _d(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 Dd 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=So(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){if(e!==this.props){const t=[],n=new Set;for(const r of this.props.data[e.content])n.has(r.ID)||(n.add(r.ID),t.push(r));this.setState({list:t})}}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 rd(r);if(200===o.status){let e=o.data.selector_rows;1!==t&&(e=Eo(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 rd(r);if(200===o.status){let t=o.data.selector_rows;1!==e&&(t=Eo(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 rd(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(Do.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=Do.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:yd()({"ld__builder-sidebar-header-active":"latest"===r})},`${LearnDashData.i18n.recent}`),e.createElement("button",{onClick:()=>{this.setState({mode:"all",searchString:""}),this.allQuery()},className:yd()({"ld__builder-sidebar-header-active":"all"===r})},`${LearnDashData.i18n.view_all}`))),e.createElement(kc,{droppableId:JSON.stringify({ID:`droppable-${l}`,dnd:"droppable"}),isDropDisabled:!0},(t=>e.createElement("ul",{ref:t.innerRef,className:yd()({"-recently-edited":"latest"===r})},o&&o.map(((t,n)=>this.canAddEntity(t.ID)&&e.createElement(Sp,{draggableId:JSON.stringify(wd({},t)),index:n,key:t.ID},((n,r)=>e.createElement("li",vd({key:`${l}-${t.ID}`,ref:n.innerRef},n.draggableProps,n.dragHandleProps,{className:yd()({"-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 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}`))}}Dd.propTypes={title:mi().string,content:mi().string,data:mi().object,type:mi().string,workspace:mi().object,initData:mi().func,addLessonEntity:mi().func,addTopicEntity:mi().func,addQuizEntity:mi().func,addQuestionEntity:mi().func,addFinalQuizEntity:mi().func};var Ed=A((e=>wd({},e)),(e=>({addLessonEntity:t=>e(Pp(t)),addTopicEntity:t=>e(Np(null,null,t)),addQuizEntity:t=>e(jp(null,null,t)),addQuestionEntity:t=>e(Lp(t)),addFinalQuizEntity:(t,n)=>e(Bp(t,n)),initData:t=>e({type:ko,payload:t})})))(Dd);class xd 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))}}xd.propTypes={el:mi().string,title:mi().string,content:mi().string,type:mi().string};var Sd=xd;const Od=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};Od.propTypes={icon:mi().string,stroke:mi().string};var kd=Od;const Id=t=>{let{undoActionHandler:n}=t;return e.createElement("button",{onClick:n,className:"ld-undo-button"},e.createElement(kd,{icon:"undo"}),`${LearnDashData.i18n.undo}`)};Id.propTypes={undoActionHandler:mi().func};var Pd=Id;const Td=t=>{let{workspace:n,toggleExpandAll:r}=t;return e.createElement("div",{className:yd()({"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(kd,{icon:"dropdown",stroke:"#0073aa"}))))};Td.propTypes={workspace:mi().shape({present:mi().object}),toggleExpandAll:mi().func};var Cd=A((e=>({workspace:e.workspace})),(e=>({toggleExpandAll:()=>e(qp())})))(Td);const 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(Pd,{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&&od(LearnDashData.post_data.builder_post_id,l.past[l.past.length-1].sections)}}),0!==n&&e.createElement(Cd,null))};Nd.propTypes={workspace:mi().shape({present:mi().object,past:mi().array}),totalEntities:mi().number,type:mi().string,singular:mi().string,plural:mi().string,onUndo:mi().func,showUndo:mi().bool};var jd=A((e=>({workspace:e.workspace})),(e=>({onUndo:()=>e(Oo.zF.undo())})))(Nd);function Ad(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 Ld(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ad(Object(n),!0).forEach((function(t){Md(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ad(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Md(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 zd extends e.Component{constructor(e){super(e),this.signal=Vp().CancelToken.source(),this.state={showForm:!1,showPointsForm:!1,is_loading:!1,error:null,value:"",type:this.props.type,points:this.props.node.points?parseFloat(this.props.node.points):0,points_temp:this.props.node.points?parseFloat(this.props.node.points):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 rd(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?Ld(Ld({},e),{},{post_title:t}):e));od(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;this.setState({showPointsForm:!1});200===(await td(r.ID,{_answerType:t})).status&&o(Ld(Ld({},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=isNaN(n)?t:n;i=parseFloat(i),i=isNaN(i)?0:i,this.setState({showPointsForm:!1,points:i,points_temp:i});200===(await td(r.ID,{_points:i})).status&&o(Ld(Ld({},r),{},{points:i}))}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=ld(r.present.lessons,o,parseInt(o-1,10)),t=ud(e),n=cd(t);i(n),od(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=ld(r.present.lessons,o,parseInt(o+1,10)),t=ud(e),n=cd(t);i(n),od(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=hd(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(kd,{icon:"chevron-up"})),e.createElement("span",{className:"ld-node-header__drag-handle"},e.createElement("span",p.dragHandleProps,e.createElement(kd,{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(kd,{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(kd,{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(kd,{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(/&amp;/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),od(LearnDashData.post_data.builder_post_id),h(l.ID)}else f(l.ID)}},`${LearnDashData.i18n.remove}`))),"sfwd-quiz"===LearnDashData.post_data.builder_post_type&&!d&&e.createElement("div",null,e.createElement("span",{dangerouslySetInnerHTML:{__html:LearnDashData.labels.questions_types[l.question_type]}}),0!==a&&e.createElement(e.Fragment,null,": ",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&&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",disabled:!0===this.props.node.answerPointsActivated},`${a.toFixed(2)} `,1===Math.abs(parseFloat(a))?LearnDashData.labels.points.singular:LearnDashData.labels.points.plural,!1===this.props.node.answerPointsActivated&&e.createElement(kd,{icon:"pencil"})),!n&&"assessment_answer"===l.question_type&&e.createElement("span",null,`${a} `,1===Math.abs(parseFloat(a))?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",name:"points",value:s,onChange:this.handleChangePoints,className:"ld-question-points",min:"0.0",step:"any"}),1===Math.abs(parseFloat(a))?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:yd()({"ld-button-reset":!0,toggle:!0,"-expanded":d}),onClick:m},e.createElement(kd,{icon:"dropdown",stroke:"#0073aa"})))}}zd.propTypes={workspace:mi().shape({present:mi().object}),provided:mi().object,toggleNode:mi().func,node:mi().shape({ID:mi().number,post_title:mi().string,tree:mi().array,type:mi().string,points:mi().oneOfType([mi().string,mi().number])}),className:mi().string,type:mi().string,expanded:mi().bool,data:mi().object,index:mi().number,moveUp:mi().func,moveDown:mi().func,removeEntity:mi().func,removeSectionHeadingEntity:mi().func,updateWorkspaceNodeTitle:mi().func,updateNodeTitle:mi().func,updateQuestionType:mi().func,updateSectionHeadings:mi().func};var Rd=A((e=>Ld({},e)),(e=>({moveUp:t=>e($p({ID:t})),moveDown:t=>e(Wp({ID:t})),removeEntity:t=>e(Up({ID:t})),removeSectionHeadingEntity:t=>e({type:Xo,payload:{ID:t}}),updateWorkspaceNodeTitle:t=>e({type:Ho,payload:t}),updateNodeTitle:t=>e({type:Qo,payload:t}),updateQuestionType:t=>e(Hp(t)),updateSectionHeadings:t=>e(Tp(t))})))(zd);function qd(){return qd=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},qd.apply(this,arguments)}function Fd(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?Fd(Object(n),!0).forEach((function(t){Ud(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ud(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 $d=t=>{let{node:n,indexLesson:r,index:o}=t;return e.createElement(Sp,{draggableId:JSON.stringify(Bd({},n)),index:o,key:n.ID},(t=>e.createElement("div",qd({key:n.ID,ref:t.innerRef},t.draggableProps,{className:yd()({"ld__builder--grandchild-item":!0})}),e.createElement(Rd,{node:n,provided:t,expanded:!0,className:yd()({"ld__builder-row-type":!0,"-grand-child":!0}),indexLesson:r,index:o,toggleNode:e=>{e.preventDefault()}}))))};$d.propTypes={node:mi().object,index:mi().number,indexLesson:mi().number};var Wd=A((e=>Bd({},e)),(()=>({})))($d);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 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 Vd(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){Gd(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 Gd(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 Kd 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(Sp,{draggableId:JSON.stringify(Vd({},t)),index:n,key:t.ID},(i=>e.createElement("div",Hd({key:t.ID,ref:i.innerRef},i.draggableProps,{className:yd()({"ld__builder--child-item":!0,"-disable-sort":this.state.isDragDisabled})}),e.createElement(Rd,{node:t,provided:i,expanded:this.state.expanded,className:yd()({"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(kc,{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:yd()({"ld__builder--grandchild":!0,"-is-dragging-over":o.isDraggingOver})},t.tree.map(((t,r)=>e.createElement(Wd,{node:t,key:t.ID,index:r,indexLesson:n}))),e.createElement("div",{className:"ld__builder--placeholder","data-label":`${LearnDashData.i18n.drop_quizzes}`},r.placeholder)))))))}}Kd.propTypes={node:mi().object,indexLesson:mi().number,index:mi().number,toggleExpandEntity:mi().func,workspace:mi().shape({present:mi().object}),data:mi().shape({labels:mi().object})};var Jd=A((e=>Vd({},e)),(e=>({toggleExpandEntity:(t,n)=>e(Fp(t,n))})))(Kd);function Yd(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 Xd(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 Zd extends e.Component{constructor(e){super(e),this.signal=Vp().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 rd(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 od()&&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 nd(l,r)).status&&(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 rd(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 Vp().delete(`${ed[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(kd,{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))))}}Zd.propTypes={workspace:mi().shape({present:mi().object}),type:mi().string,position:mi().string,parentNode:mi().number,addLesson:mi().func,addSectionHeadingEntity:mi().func,addTopic:mi().func,addQuiz:mi().func,addLessonEntity:mi().func,addTopicEntity:mi().func,addQuizEntity:mi().func,addFinalQuizEntity:mi().func,addQuestionEntity:mi().func,addQuestion:mi().func,addAnswerEntity:mi().func,setActiveLesson:mi().func,parentLesson:mi().number,question:mi().object,data:mi().shape({labels:mi().object})};var ef=A((e=>function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yd(Object(n),!0).forEach((function(t){Xd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e)),(e=>({addLesson:t=>e(gd(t)),addTopic:t=>e({type:Uo,payload:t}),addQuiz:t=>e({type:$o,payload:t}),addQuestion:e=>{return t=gd(e),{type:Wo,payload:t};var t},addLessonEntity:t=>e(Pp(t)),addSectionHeadingEntity:t=>e({type:Po,payload:t}),addTopicEntity:(t,n,r)=>e(Np(t,n,r)),addQuizEntity:(t,n,r)=>e(jp(t,n,r)),addFinalQuizEntity:(t,n)=>e(Bp(t,n)),addQuestionEntity:t=>e(Lp(t)),addAnswerEntity:(t,n)=>e(Mp(t,n)),setActiveLesson:t=>e(Cp(t))})))(Zd);class tf 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(kc,{droppableId:JSON.stringify({ID:"course-workspace-quiz-droppable",type:"course"}),isDropDisabled:this.state.isDropDisabled},((t,r)=>e.createElement("div",{ref:t.innerRef,className:yd()({"-is-dragging-over":r.isDraggingOver})},n.present.quizzes.map(((t,n)=>e.createElement(Jd,{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(ef,{type:"quiz",position:"footer"}))))))}}tf.propTypes={workspace:mi().shape({present:mi().object}),data:mi().shape({labels:mi().object})};var nf=A((e=>({workspace:e.workspace,data:e.data})),(e=>({toggleExpandAll:()=>e(qp())})))(tf);var rf=()=>e.createElement("footer",{className:"ld__builder--footer"},e.createElement(nf,null));function of(){return of=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},of.apply(this,arguments)}function af(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 sf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?af(Object(n),!0).forEach((function(t){lf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):af(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function lf(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 uf 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(Sp,{draggableId:JSON.stringify(sf({},n)),index:r,key:n.ID},(s=>e.createElement("div",of({key:n.ID,ref:s.innerRef},s.draggableProps,{className:yd()({"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(Rd,{node:n,index:r,provided:s,expanded:t,className:yd()({"ld__builder-row-type":!0,"-parent":!0}),toggleNode:e=>{e.preventDefault(),a(r,n)}}),"section-heading"!==n.type&&e.createElement("div",{className:yd()({"ld__builder--child":!0,"-expanded":t}),key:n.ID},e.createElement(kc,{droppableId:JSON.stringify({ID:n.ID,type:"lesson",dnd:"droppable-topic"}),isDropDisabled:this.state.isDropDisabled},((t,o)=>e.createElement("div",{ref:t.innerRef,className:yd()({"-is-dragging-over":o.isDraggingOver})},n.tree.map(((t,n)=>e.createElement(Jd,{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(ef,{type:"topic",parentLesson:n.ID}),e.createElement(ef,{type:"quiz",parentLesson:n.ID}))))))}}uf.propTypes={lesson:mi().object,index:mi().number,setActiveLesson:mi().func,toggleExpandEntity:mi().func,workspace:mi().shape({present:mi().object}),data:mi().shape({labels:mi().object})};var cf=A((e=>sf({},e)),(e=>({setActiveLesson:t=>e(Cp(t)),toggleExpandEntity:(t,n)=>e(Fp(t,n))})))(uf);const pf=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}`))};pf.propTypes={type:mi().string,content:mi().string};var df=pf;function ff(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 hf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ff(Object(n),!0).forEach((function(t){mf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ff(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mf(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 yf 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=ud(t.lessons),r=cd(n).reduce(((e,t)=>{if("section-heading"===t.type){e[`${t.type}:${t.ID}`]=t}return e}),{}),o=hf(hf({},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(kc,{droppableId:JSON.stringify({ID:"course-workspace-droppable",type:"course"}),isDropDisabled:this.state.isDropDisabled},((t,o)=>e.createElement("div",{ref:t.innerRef,className:yd()({"-is-dragging-over":o.isDraggingOver})},r.lessons.map(((n,r)=>e.createElement(cf,{key:n.ID,lesson:n,index:r,provided:t}))),e.createElement("ul",{className:yd()({"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(df,{type:"course",content:"lesson"})))))),e.createElement("div",{className:"ld__builder--new-entities"},e.createElement(ef,{type:"lesson"}),e.createElement(ef,{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}))}}yf.propTypes={workspace:mi().shape({present:mi().object}),data:mi().shape({labels:mi().object}),totalLessons:mi().number,hooks:mi().object};var gf=A((e=>({workspace:e.workspace,data:e.data})),(()=>({})))(yf);function vf(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 bf(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 wf=t=>{let{workspace:n,data:r}=t;const o=new(te())({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(Ju,{onDragStart:e=>{pd(e)},onDragEnd:e=>{dd(e)},onDragUpdate:e=>{fd(e)}},e.createElement("div",{className:"ld__builder--app"},e.createElement("main",null,e.createElement(jd,{totalEntities:c,type:r.labels.course,singular:LearnDashData.i18n.step,plural:LearnDashData.i18n.steps,showUndo:0<n.past.length}),e.createElement(gf,{totalLessons:n.present.lessons.length}),e.createElement(rf,null))),e.createElement(Sd,{title:"Lessons",content:"lessons",type:"lesson",el:"sfwd-lessons-app"}),e.createElement(Sd,{title:"Topics",content:"topics",type:"topic",el:"sfwd-topics-app"}),e.createElement(Sd,{title:"Quizzes",content:"quizzes",type:"quiz",el:"sfwd-quizzes-app"}))};wf.propTypes={workspace:mi().object,data:mi().shape({labels:mi().object})};var _f=A((e=>function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vf(Object(n),!0).forEach((function(t){bf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e)),(()=>({})))(wf);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 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 xf extends e.Component{constructor(e){super(e),this.state={showForm:!1,answer:"",sortString:""},this.signal=Vp().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 nd(o,r)).status&&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(kd,{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"})))))}}xf.propTypes={type:mi().string,addAnswerEntity:mi().func,parentLesson:mi().number,question:mi().object,data:mi().shape({labels:mi().object})};var Sf=A((e=>function(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){Ef(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}({},e)),(e=>({addAnswerEntity:(t,n)=>e(Mp(t,n))})))(xf);const{wp:Of}=window;class kf 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=Of.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))}}kf.propTypes={buttonLabel:mi().string,onSelect:mi().func},kf.defaultProps={buttonLabel:"Add Media",onSelect:()=>{}};var If=kf;const Pf=t=>{let{handleAnswerUpdate:n,handleAnswerRemove:r,handleCheckboxChange:o,handleInputChange:i,handleShowForm:a,handleAddMedia:s,handleCorrectChange:l,questionType:u,questionID:c,questionAnswerPointsActivated:p,index:d,showFormIndividual:f,answer:h,correct:m,points:y,html:g}=t;return e.createElement(e.Fragment,null,e.createElement("span",{className:"ld__builder-row-type -child sfwd-answer"},"A"),!f&&e.createElement("button",{onClick:a,className:"ld-button-reset"},!0===g?e.createElement("span",{className:"ld-answer-value "+(m?"-correct":""),dangerouslySetInnerHTML:{__html:""===h?`${LearnDashData.i18n.edit_answer}`:h}}):e.createElement("span",{className:"ld-answer-value "+(m?"-correct":"")},""===h?`${LearnDashData.i18n.edit_answer}`:h),e.createElement("span",{className:"edit"},e.createElement(kd,{icon:"pencil"}),e.createElement("span",{className:"screen-reader-text"},`${LearnDashData.i18n.edit}`))),f&&e.createElement("div",{className:"ld-answer-editor"},e.createElement("textarea",{name:"answer",value:h,onChange:i}),p&&e.createElement("div",{className:"ld-question-answer-points-wrapper"},e.createElement("input",{type:"number",name:"points",value:y,onChange:i,className:"ld-question-answer-points"}),e.createElement("span",null,LearnDashData.labels.points.plural)),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:g,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(d+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(d+1,10)}${LearnDashData.i18n.correct_nth}`}})()}})),"sort_answer"!==u&&!f&&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-${d}-${c}`,name:`correct-answer-${c}`,checked:m,onChange:l}),e.createElement("label",{className:"multiple"===u?"ld-checkbox-input__label":"ld-radio-input__label",htmlFor:`answer-${d}-${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}`))))};Pf.propTypes={handleAnswerUpdate:mi().func,handleAnswerRemove:mi().func,handleCheckboxChange:mi().func,handleInputChange:mi().func,handleShowForm:mi().func,handleAddMedia:mi().func,handleCorrectChange:mi().func,questionType:mi().string,questionID:mi().number,questionAnswerPointsActivated:mi().bool,index:mi().number,showFormIndividual:mi().bool,answer:mi().string,correct:mi().bool,points:mi().number,html:mi().bool};var Tf=Pf;const Cf=t=>{let{handleAnswerUpdate:n,handleAnswerRemove:r,handleCheckboxChange:o,handleInputChange:i,handleShowForm:a,handleAddMedia:s,showFormIndividual:l,questionAnswerPointsActivated:u,answer:c,points:p,html:d,sortString:f,sortStringHtml:h}=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:""===c?`${LearnDashData.i18n.edit_matrix}`:c}}),""!==f?e.createElement(kd,{icon:"chevron-right"}):"",e.createElement("span",{className:"ld-answer-value",dangerouslySetInnerHTML:{__html:f}}),e.createElement("span",{className:"edit"},e.createElement(kd,{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:c,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: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(If,{onSelect:s})),e.createElement(kd,{icon:"chevron-right"})),e.createElement("div",null,e.createElement("textarea",{name:"sortString",value:f,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:h,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}`))))),u&&e.createElement("div",{className:"ld-answer-editor-actions"},e.createElement("div",{className:"ld-question-answer-points-wrapper"},e.createElement("input",{type:"number",name:"points",value:p,onChange:i,className:"ld-question-answer-points"}),e.createElement("span",null,LearnDashData.labels.points.plural))),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}`))))};Cf.propTypes={handleAnswerUpdate:mi().func,handleAnswerRemove:mi().func,handleCheckboxChange:mi().func,handleInputChange:mi().func,handleShowForm:mi().func,handleAddMedia:mi().func,showFormIndividual:mi().bool,questionAnswerPointsActivated:mi().bool,answer:mi().string,points:mi().number,html:mi().bool,sortString:mi().string,sortStringHtml:mi().bool};var Nf=Cf;const jf=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",null,i),e.createElement(kd,{icon:"pencil"}),e.createElement("span",{className:"screen-reader-text"},`${LearnDashData.i18n.edit}`)))};jf.propTypes={handleShowForm:mi().func,handleAnswerUpdate:mi().func,handleInputChange:mi().func,answer:mi().string,updated:mi().bool,showForm:mi().bool};var Af=jf;const{wp:Lf}=window;class Mf 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((()=>{Lf.editor.initialize&&Lf.oldEditor.initialize&&Lf.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}),!Lf.editor.initialize&&Lf.oldEditor.initialize&&Lf.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(){Lf.editor.remove&&Lf.oldEditor.remove&&Lf.editor.remove(this.props.id),!Lf.editor.remove&&Lf.oldEditor.remove&&Lf.oldEditor.remove(this.props.id)}onTextAreaChange(e){const{onChange:t}=this.props;Lf.editor.initialize||t(e.target.value),Lf.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}))}}Mf.propTypes={id:mi().string,value:mi().string,onChange:mi().func};var zf=Mf;const Rf=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(zf,{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(kd,{icon:"pencil"}),e.createElement("span",{className:"screen-reader-text"},`${LearnDashData.i18n.edit}`)))};Rf.propTypes={handleShowForm:mi().func,handleAnswerUpdate:mi().func,handleRichtextChange:mi().func,questionType:mi().string,questionID:mi().number,answer:mi().string,updated:mi().bool,showForm:mi().bool};var qf=Rf;const Ff=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(kd,{icon:"pencil"})),e.createElement("span",{className:"screen-reader-text"},`${LearnDashData.i18n.edit}`)))};Ff.propTypes={handleShowForm:mi().func,handleAnswerUpdate:mi().func,handleInputChange:mi().func,gradedType:mi().string,gradingProgression:mi().string,updated:mi().bool,showForm:mi().bool};var Bf=Ff;function Uf(){return Uf=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},Uf.apply(this,arguments)}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 Wf(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){Hf(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}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 Qf extends e.Component{constructor(e){super(e);const{node:t}=this.props;this.state={showFormIndividual:!1,answer:t.answer,correct:t.correct,points:t.points,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)),a=await nd(t.ID,i);200===a.status&&(this.props.unlockQuestion(),o(r,t),Hp(Wf(Wf({},t),{},{points:a.data._points})))}async handleCorrectChange(e){const{question:t,node:n,updateQuestionAnswers:r,updateQuestionType:o}=this.props,{checked:i}=e.target,a=i,s=t.answers[LearnDashData.questions_types_map[t.question_type]].map((e=>e===n?Wf(Wf({},e),{},{correct:a}):"multiple"!==t.question_type?Wf(Wf({},e),{},{correct:!1}):e)),l=await nd(t.ID,s);200===l.status&&(r(t,s),o(Wf(Wf({},t),{},{points:l.data._points})))}async handleAnswerUpdate(e){e.preventDefault();const{answer:t,correct:n,points:r,html:o,gradedType:i,gradingProgression:a,sortString:s,sortStringHtml:l}=this.state,{question:u,index:c,updateQuestionType:p}=this.props,d={answer:t,correct:n,points:r,html:o,graded:"1",gradedType:i,gradingProgression:a,sortString:s,sortStringHtml:l,answerType:u.question_type},f=Wf(Wf({},u.answers[LearnDashData.questions_types_map[u.question_type]][c]),d);u.answers[LearnDashData.questions_types_map[u.question_type]][c]=f;const h=u.answers[LearnDashData.questions_types_map[u.question_type]],m=await nd(u.ID,h);this.props.handleShowForm(),this.handleShowFormIndividual(),200===m.status&&(p(Wf(Wf({},u),{},{points:m.data._points})),this._isMounted&&this.setState((()=>({updated:!0}))))}async handleMoveUp(e){e.preventDefault();const{question:t,node:n,index:r,moveUp:o}=this.props,i=ld(t.answers[LearnDashData.questions_types_map[t.question_type]],r,parseInt(r-1,10));o(n,r,t),await nd(t.ID,i)}async handleMoveDown(e){e.preventDefault();const{question:t,node:n,index:r,moveDown:o}=this.props,i=ld(t.answers[LearnDashData.questions_types_map[t.question_type]],r,parseInt(r+1,10));o(n,r,t),await nd(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,points:r,html:o,sortString:i,sortStringHtml:a,gradedType:s,gradingProgression:l,updated:u}=this.state,{showForm:c,question:p,index:d,node:f,key:h,handleShowForm:m}=this.props,{question_type:y,ID:g,post_content:v}=p;return"single"===y||"multiple"===y||"sort_answer"===y||"matrix_sort_answer"===y?e.createElement(Sp,{draggableId:JSON.stringify(Wf({},f)),index:d,key:h},(s=>e.createElement("li",Uf({key:h,ref:s.innerRef},s.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",s.dragHandleProps,e.createElement(kd,{icon:"drag"})))),("single"===y||"multiple"===y||"sort_answer"===y)&&e.createElement(Tf,{showFormIndividual:t,handleAnswerUpdate:this.handleAnswerUpdate,handleAnswerRemove:this.handleAnswerRemove,handleShowForm:e=>{e.preventDefault(),this.handleShowFormIndividual(),m()},handleCheckboxChange:this.handleCheckboxChange,handleInputChange:this.handleInputChange,handleAddMedia:this.handleAddMedia,handleCorrectChange:this.handleCorrectChange,questionType:y,questionID:g,questionContent:v,questionAnswerPointsActivated:p.answerPointsActivated,index:d,answer:n,correct:f.correct,points:r,html:o}),"matrix_sort_answer"===y&&e.createElement(Nf,{handleAnswerUpdate:this.handleAnswerUpdate,handleAnswerRemove:this.handleAnswerRemove,handleShowForm:e=>{e.preventDefault(),this.handleShowFormIndividual(),m()},handleCheckboxChange:this.handleCheckboxChange,handleInputChange:this.handleInputChange,handleAddMedia:this.handleAddMedia,showFormIndividual:t,questionAnswerPointsActivated:p.answerPointsActivated,answer:n,points:r,html:o,sortString:i,sortStringHtml:a}),s.placeholder))):"cloze_answer"===y||"assessment_answer"===y?e.createElement("li",{key:h,className:"ld__builder--child-item ld-question-answer ld-node-header sfwd_options "+(c?"-showform -editing":"")},e.createElement(qf,{handleAnswerUpdate:this.handleAnswerUpdate,handleRichtextChange:this.handleRichtextChange,handleShowForm:m,questionType:y,questionID:g,answer:n,updated:u,showForm:c})):"essay"===y?e.createElement("li",{key:h,className:"ld__builder--child-item ld-question-answer ld-node-header sfwd_options "+(c?"-showform -editing":"")},e.createElement(Bf,{handleAnswerUpdate:this.handleAnswerUpdate,handleInputChange:this.handleInputChange,handleShowForm:m,gradedType:s,gradingProgression:l,updated:u,showForm:c})):"free_answer"===y&&e.createElement("li",{key:h,className:"ld__builder--child-item ld-question-answer ld-node-header sfwd_options "+(c?"-showform -editing":"")},e.createElement(Af,{handleAnswerUpdate:this.handleAnswerUpdate,handleInputChange:this.handleInputChange,handleShowForm:m,answer:n,updated:u,showForm:c}))}}Qf.propTypes={showForm:mi().bool,node:mi().object,question:mi().object,index:mi().number,moveUp:mi().func,moveDown:mi().func,removeAnswerEntity:mi().func,updateQuestionAnswers:mi().func,workspace:mi().object,key:mi().string,handleShowForm:mi().func,lockQuestion:mi().func,unlockQuestion:mi().func,updateQuestionType:mi().func};var Vf=A((e=>Wf({},e)),(e=>({moveUp:(t,n,r)=>e($p(Wf(Wf({},t),{},{index:n,parentID:r.ID,answerType:LearnDashData.questions_types_map[r.question_type]}))),moveDown:(t,n,r)=>e(Wp(Wf(Wf({},t),{},{index:n,parentID:r.ID,answerType:LearnDashData.questions_types_map[r.question_type]}))),removeAnswerEntity:(t,n)=>e(((e,t)=>({type:Fo,payload:e,parent:t}))(t,n)),updateQuestionAnswers:(t,n)=>e(((e,t)=>({type:ni,question:e,answers:t}))(t,n)),updateQuestionType:t=>e(Hp(t))})))(Qf);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 Kf(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){Jf(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}function Jf(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 Yf 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,answerPointsActivated:this.props.question.answerPointsActivated,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{updateQuestionType:t}=this.props,{correctMessage:n,incorrectMessage:r,useSameMessage:o,solutionHint:i,solutionHintMessage:a,answerPointsActivated:s}=this.state,l=await td(this.props.question.ID,{_correctMsg:n,_incorrectMsg:r,_correctSameText:o,_tipEnabled:i,_tipMsg:a,_answerPointsActivated:s});200===l.status&&(this.props.question.answerPointsActivated=s,t(Kf(Kf({},this.props.question),{},{points:l.data._points})),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,answerPointsActivated:u,is_loading:c,error:p}=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(kd,{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(zf,{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(zf,{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(zf,{id:`text-area-hint-${n.ID}`,value:l,onChange:this.handleSolutionHintMessage}),["single","multiple","free_answer","sort_answer","matrix_sort_answer","cloze_answer"].includes(n.question_type)&&e.createElement("div",{className:"ld__builder--question-label-value"},e.createElement("div",null,e.createElement("label",{htmlFor:`check-answer-points-activated-${n.ID}`},LearnDashData.i18n.different_points_for_each_answer)),e.createElement("div",null,e.createElement("div",{className:"ld-switch-wrapper"},e.createElement("span",{className:"ld-switch"},e.createElement("input",{id:`check-answer-points-activated-${n.ID}`,type:"checkbox",name:"answerPointsActivated",checked:u,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"}))))),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}`),c&&e.createElement("span",{className:"ld__builder--form-notice"},`${LearnDashData.i18n.please_wait}`),p&&e.createElement("span",{className:"ld__builder--form-error"},p))))}}Yf.propTypes={showSettings:mi().bool,question:mi().object,handleSettingsForm:mi().func,unlockQuestion:mi().func,updateQuestionType:mi().func};var Xf=A(null,(e=>({updateQuestionType:t=>e(Hp(t))})))((0,e.memo)(Yf));function Zf(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 eh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zf(Object(n),!0).forEach((function(t){th(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function th(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 nh 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 td(r.ID,{_question:t})).status&&(n(eh(eh({},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(kd,{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(kd,{icon:"pencil"}),e.createElement("span",{className:"screen-reader-text"},`${LearnDashData.i18n.edit}`)),r&&e.createElement(e.Fragment,null,e.createElement(zf,{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))}}nh.propTypes={editQuestionForm:mi().bool,question:mi().object,updateQuestionType:mi().func,handleQuestionForm:mi().func,lockQuestion:mi().func,unlockQuestion:mi().func,data:mi().shape({labels:mi().object})};var rh=A((e=>eh({},e)),(e=>({updateQuestionType:t=>e(Hp(t))})))(nh);function oh(){return oh=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},oh.apply(this,arguments)}function ih(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 ah(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ih(Object(n),!0).forEach((function(t){sh(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ih(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sh(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 lh 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=hd(t);return e.createElement(Sp,{draggableId:JSON.stringify(ah({},t)),index:n,key:t.ID},(f=>e.createElement("div",oh({key:t.ID,ref:f.innerRef},f.draggableProps,{className:yd()({"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(Rd,{node:t,provided:f,expanded:a,className:yd()({"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:yd()({"ld__builder--child":!0,"-question":!0,"-expanded":a}),key:t.ID},t&&e.createElement(rh,{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(kd,{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(kd,{icon:"warning"}))," ",e.createElement("span",{className:"warning description-red"},`${LearnDashData.i18n.correct_answer_missing}`,".")),t.answers&&0!==t.answers.length&&e.createElement(kc,{droppableId:JSON.stringify({ID:t.ID,type:"question",dnd:"droppable-answer"}),isDropDisabled:this.state.isDropDisabled},((n,r)=>e.createElement("ul",{ref:n.innerRef,className:yd()({"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(Vf,{key:`answer-${r}-`+JSON.stringify(ah({},n)),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(ef,{type:"answer",parentLesson:t.ID,question:t})),"matrix_sort_answer"===t.question_type&&e.createElement("div",{className:"ld__builder--new-entities -question"},e.createElement(Sf,{type:"answer",parentLesson:t.ID,question:t})),t&&e.createElement(Xf,{question:t,showSettings:l,handleSettingsForm:this.handleSettingsForm,unlockQuestion:this.unlockQuestion})))))}}lh.propTypes={questions:mi().object,index:mi().number,setActiveLesson:mi().func,toggleExpandEntity:mi().func,question:mi().object,workspace:mi().object};var uh=A((e=>ah({},e)),(e=>({setActiveLesson:t=>e(Cp(t)),toggleExpandEntity:(t,n)=>e(Fp(t,n))})))(lh);class ch extends e.Component{constructor(e){super(e);let t=0;this.props.workspace.present.questions.map((e=>t+=parseFloat(e.points))),this.state={isDropDisabled:!0,serializedData:"",savedSerializedData:"",totalPoints:parseFloat(t),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+=parseFloat(t.points)));const n=t.questions.reduce(((e,t)=>(e[`${t.type}:${t.ID}`]={},e)),{});this.setState({serializedData:JSON.stringify(n),totalPoints:parseFloat(e)})}}render(){const{isDropDisabled:t,totalPoints:n}=this.state,{workspace:r,totalLessons:o}=this.props;return e.createElement("div",{className:"ld__builder--content"},e.createElement(kc,{droppableId:JSON.stringify({ID:"quiz-workspace-droppable",type:"quiz"}),isDropDisabled:t},((t,n)=>e.createElement("div",{ref:t.innerRef,className:yd()({"-is-dragging-over":n.isDraggingOver})},r.present.questions.map(((n,r)=>e.createElement(uh,{key:n.ID,question:n,index:r,provided:t}))),e.createElement("ul",{className:yd()({"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(df,{type:"quiz",content:"question"})))))),e.createElement("div",{className:"ld__builder--quiz-footer"},e.createElement("div",{className:"ld__builder--new-entities"},e.createElement(ef,{type:"question"})),e.createElement("div",{className:"ld__builder--quiz-total"},`${LearnDashData.i18n.total_points} ${n.toFixed(2)}`," ",1===Math.abs(parseFloat(n))?`${LearnDashData.labels.points.singular}`:`${LearnDashData.labels.points.plural}`)),e.createElement("input",{type:"hidden",id:"learndash_builder_data",name:`learndash_builder[sfwd-quiz][${LearnDashData.post_data.builder_post_id}]`,value:this.state.serializedData}))}}ch.propTypes={workspace:mi().shape({present:mi().object}),data:mi().shape({labels:mi().object}),totalLessons:mi().number};var ph=A((e=>({workspace:e.workspace,data:e.data})),(()=>({})))(ch);function dh(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 fh(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 hh=t=>{let{workspace:n,data:r}=t;return e.createElement(Ju,{onDragStart:e=>{pd(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=fi.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=ld(e,t.index,n.index);fi.dispatch(Ap(r)),fi.dispatch(Cp({activeLesson:o.ID}))}else if("answer"===s.workspace.present.currentDraggableEntity.type){const e=Object.values(s.workspace.present.questions),r=kp()(e,_o),u=Do.getNodeByKey(e,parseInt(a.ID)),c=Do.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]]=ld(u.answers[l[u.question_type]],t.index,n.index),fi.dispatch(Ap(e)),await nd(u.ID,u.answers[l[u.question_type]])),c.ID&&!c.nodeData.parent&&fi.dispatch(Cp({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,fi.dispatch(Lp(e))}fi.dispatch(zp({currentDraggableEntity:null}))})(e)},onDragUpdate:e=>{fd(e)}},e.createElement("div",{className:"ld__builder--app"},e.createElement("main",null,e.createElement(jd,{totalEntities:n.present.questions.length,type:r.labels.quiz,singular:r.labels.question,plural:r.labels.questions,showUndo:0<n.past.length}),e.createElement(ph,{totalLessons:n.present.questions.length}))),e.createElement(Sd,{title:"Questions",content:"questions",type:"question",el:"sfwd-questions-app"}))};hh.propTypes={workspace:mi().object,data:mi().shape({labels:mi().object})};var mh=A((e=>function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dh(Object(n),!0).forEach((function(t){fh(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e)),(()=>({})))(hh);class yh 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}}yh.propTypes={children:mi().node.isRequired,message:mi().string.isRequired,className:mi().string},yh.defaultProps={message:`${LearnDashData.i18n.error}`,className:""};var gh=yh;const vh="undefined"!=typeof LearnDashData?LearnDashData.error_messages&&LearnDashData.error_messages.header&&LearnDashData.error_messages.header:"Sorry, something went wrong with LearnDash.";t.render(e.createElement(gh,{message:vh,className:"builder-boundary"},e.createElement(L,{store:fi},"sfwd-quiz"===LearnDashData.post_data.builder_post_type?e.createElement(mh,null):e.createElement(_f,null))),document.getElementById("learndash_builder_box_wrap"))}()}();

Filemanager

Name Type Size Permission Actions
builder-rtl.css File 26.99 KB 0644
builder.css File 27.02 KB 0644
builder.js File 2.28 MB 0644
builder.min-rtl.css File 22.78 KB 0644
builder.min.css File 22.77 KB 0644
builder.min.js File 526.27 KB 0644
header-rtl.css File 43.13 KB 0644
header.css File 43.17 KB 0644
header.js File 1.49 MB 0644
header.min-rtl.css File 36 KB 0644
header.min.css File 36 KB 0644
header.min.js File 267 KB 0644
metaboxes.js File 47.13 KB 0644
metaboxes.min.js File 19.88 KB 0644