/*! For license information please see dash_renderer.min.js.LICENSE.txt */ (()=>{var t={296(t,e,r){var n;window,t.exports=(n=r(609),function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=1)}([function(t,e){t.exports=n},function(t,e,r){"use strict";r.r(e),r.d(e,"asyncDecorator",function(){return i}),r.d(e,"inheritAsyncDecorator",function(){return u}),r.d(e,"isReady",function(){return c}),r.d(e,"History",function(){return f});var n=r(0);function o(t,e,r,n,o,a,i){try{var u=t[a](i),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function a(t){return function(){var e=this,r=arguments;return new Promise(function(n,a){var i=t.apply(e,r);function u(t){o(i,n,a,u,c,"next",t)}function c(t){o(i,n,a,u,c,"throw",t)}u(void 0)})}}var i=function(t,e){var r,o={isReady:new Promise(function(t){r=t}),get:Object(n.lazy)(function(){return Promise.resolve(e()).then(function(t){return setTimeout(a(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r(!0);case 2:o.isReady=!0;case 3:case"end":return t.stop()}},t)})),0),t})})};return Object.defineProperty(t,"_dashprivate_isLazyComponentReady",{get:function(){return o.isReady}}),o.get},u=function(t,e){Object.defineProperty(t,"_dashprivate_isLazyComponentReady",{get:function(){return c(e)}})},c=function(t){return t&&t._dashprivate_isLazyComponentReady};function s(t,e){for(var r=0;rp)l=t.lastIndexOf(";",f-1)+1;else{var d=a(t,l,f);void 0===u[d]&&(u[d]=s(a(t,f+1,p))),l=p+1}}while(l{var t=function(){};return t.prototype=Object.create(null),t})();function n(t,e,r){var n=t.indexOf(";",e);return-1===n?r:n}function o(t,e,r){var n=t.indexOf("=",e);return nn;){var i=t.charCodeAt(o-1);if(32!==i&&9!==i)break;o--}return t.slice(n,o)}function i(t){if(-1===t.indexOf("%"))return t;try{return decodeURIComponent(t)}catch(e){return t}}},712(t,e){"use strict";var r=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),c=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy");Symbol.for("react.offscreen");Symbol.for("react.module.reference"),e.isContextConsumer=function(t){return function(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case r:switch(t=t.type){case o:case i:case a:case f:case p:return t;default:switch(t=t&&t.$$typeof){case s:case c:case l:case h:case d:case u:return t;default:return e}}case n:return e}}}(t)===c}},516(t,e,r){"use strict";t.exports=r(712)},217(t,e,r){"use strict";var n=r(601),o=r.n(n),a=r(314),i=r.n(a)()(o());i.push([t.id,"._dash-undo-redo {\n position: fixed;\n bottom: 30px;\n left: 30px;\n font-size: 20px;\n text-align: center;\n z-index: 9999;\n background-color: rgba(255, 255, 255, 0.9);\n}\n._dash-undo-redo > div {\n position: relative;\n}\n._dash-undo-redo-link {\n color: #0074d9;\n cursor: pointer;\n margin-left: 10px;\n margin-right: 10px;\n display: inline-block;\n opacity: 0.2;\n}\n._dash-undo-redo-link:hover {\n opacity: 1;\n}\n._dash-undo-redo-link ._dash-icon-undo {\n font-size: 20px;\n transform: rotate(270deg);\n}\n._dash-undo-redo-link ._dash-icon-redo {\n font-size: 20px;\n transform: rotate(90deg);\n}\n._dash-undo-redo-link ._dash-undo-redo-label {\n font-size: 15px;\n}\n",""]),e.A=i},314(t){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var r="",n=void 0!==e[5];return e[4]&&(r+="@supports (".concat(e[4],") {")),e[2]&&(r+="@media ".concat(e[2]," {")),n&&(r+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),r+=t(e),n&&(r+="}"),e[2]&&(r+="}"),e[4]&&(r+="}"),r}).join("")},e.i=function(t,r,n,o,a){"string"==typeof t&&(t=[[null,t,void 0]]);var i={};if(n)for(var u=0;u0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=a),r&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=r):l[2]=r),o&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=o):l[4]="".concat(o)),e.push(l))}},e}},601(t){"use strict";t.exports=function(t){return t[1]}},131(t,e){function r(t,e,r,n){var a={};return function(i){if(!a[i]){var u={},c=[],s=[];for(s.push({node:i,processed:!1});s.length>0;){var l=s[s.length-1],f=l.processed,p=l.node;if(f)s.pop(),c.pop(),u[p]=!1,a[p]=!0,e&&0!==t[p].length||r.push(p);else{if(a[p]){s.pop();continue}if(u[p]){if(n){s.pop();continue}throw c.push(p),new o(c)}u[p]=!0,c.push(p);for(var d=t[p],h=d.length-1;h>=0;h--)s.push({node:d[h],processed:!1});l.processed=!0}}}}}var n=e.w=function(t){this.nodes={},this.outgoingEdges={},this.incomingEdges={},this.circular=t&&!!t.circular};n.prototype={size:function(){return Object.keys(this.nodes).length},addNode:function(t,e){this.hasNode(t)||(this.nodes[t]=2===arguments.length?e:t,this.outgoingEdges[t]=[],this.incomingEdges[t]=[])},removeNode:function(t){this.hasNode(t)&&(delete this.nodes[t],delete this.outgoingEdges[t],delete this.incomingEdges[t],[this.incomingEdges,this.outgoingEdges].forEach(function(e){Object.keys(e).forEach(function(r){var n=e[r].indexOf(t);n>=0&&e[r].splice(n,1)},this)}))},hasNode:function(t){return this.nodes.hasOwnProperty(t)},getNodeData:function(t){if(this.hasNode(t))return this.nodes[t];throw new Error("Node does not exist: "+t)},setNodeData:function(t,e){if(!this.hasNode(t))throw new Error("Node does not exist: "+t);this.nodes[t]=e},addDependency:function(t,e){if(!this.hasNode(t))throw new Error("Node does not exist: "+t);if(!this.hasNode(e))throw new Error("Node does not exist: "+e);return-1===this.outgoingEdges[t].indexOf(e)&&this.outgoingEdges[t].push(e),-1===this.incomingEdges[e].indexOf(t)&&this.incomingEdges[e].push(t),!0},removeDependency:function(t,e){var r;this.hasNode(t)&&(r=this.outgoingEdges[t].indexOf(e))>=0&&this.outgoingEdges[t].splice(r,1),this.hasNode(e)&&(r=this.incomingEdges[e].indexOf(t))>=0&&this.incomingEdges[e].splice(r,1)},clone:function(){var t=this,e=new n;return Object.keys(t.nodes).forEach(function(r){e.nodes[r]=t.nodes[r],e.outgoingEdges[r]=t.outgoingEdges[r].slice(0),e.incomingEdges[r]=t.incomingEdges[r].slice(0)}),e},directDependenciesOf:function(t){if(this.hasNode(t))return this.outgoingEdges[t].slice(0);throw new Error("Node does not exist: "+t)},directDependantsOf:function(t){if(this.hasNode(t))return this.incomingEdges[t].slice(0);throw new Error("Node does not exist: "+t)},dependenciesOf:function(t,e){if(this.hasNode(t)){var n=[];r(this.outgoingEdges,e,n,this.circular)(t);var o=n.indexOf(t);return o>=0&&n.splice(o,1),n}throw new Error("Node does not exist: "+t)},dependantsOf:function(t,e){if(this.hasNode(t)){var n=[];r(this.incomingEdges,e,n,this.circular)(t);var o=n.indexOf(t);return o>=0&&n.splice(o,1),n}throw new Error("Node does not exist: "+t)},overallOrder:function(t){var e=this,n=[],o=Object.keys(this.nodes);if(0===o.length)return n;if(!this.circular){var a=r(this.outgoingEdges,!1,[],this.circular);o.forEach(function(t){a(t)})}var i=r(this.outgoingEdges,t,n,this.circular);return o.filter(function(t){return 0===e.incomingEdges[t].length}).forEach(function(t){i(t)}),this.circular&&o.filter(function(t){return-1===n.indexOf(t)}).forEach(function(t){i(t)}),n},entryNodes:function(){var t=this;return Object.keys(this.nodes).filter(function(e){return 0===t.incomingEdges[e].length})}},n.prototype.directDependentsOf=n.prototype.directDependantsOf,n.prototype.dependentsOf=n.prototype.dependantsOf;var o=function(t){var e="Dependency Cycle Found: "+t.join(" -> "),r=new Error(e);return r.cyclePath=t,Object.setPrototypeOf(r,Object.getPrototypeOf(this)),Error.captureStackTrace&&Error.captureStackTrace(r,o),r};o.prototype=Object.create(Error.prototype,{constructor:{value:Error,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf(o,Error)},365(t,e,r){"use strict";var n=r(886);t.exports=function(t){var e=typeof t;if("string"===e){var r=t;if(0===(t=+t)&&n(r))return!1}else if("number"!==e)return!1;return t-t<1}},146(t,e,r){"use strict";var n=r(363),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},u={};function c(t){return n.isMemo(t)?i:u[t.$$typeof]||o}u[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u[n.Memo]=i;var s=Object.defineProperty,l=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,h=Object.prototype;t.exports=function t(e,r,n){if("string"!=typeof r){if(h){var o=d(r);o&&o!==h&&t(e,o,n)}var i=l(r);f&&(i=i.concat(f(r)));for(var u=c(e),y=c(r),v=0;v13)&&32!==e&&133!==e&&160!==e&&5760!==e&&6158!==e&&(e<8192||e>8205)&&8232!==e&&8233!==e&&8239!==e&&8287!==e&&8288!==e&&12288!==e&&65279!==e)return!1;return!0}},925(t){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},799(t,e){"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,i=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,s=r?Symbol.for("react.context"):60110,l=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,d=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,y=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116,b=r?Symbol.for("react.block"):60121,m=r?Symbol.for("react.fundamental"):60117,g=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function O(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case n:switch(t=t.type){case l:case f:case a:case u:case i:case d:return t;default:switch(t=t&&t.$$typeof){case s:case p:case v:case y:case c:return t;default:return e}}case o:return e}}}function _(t){return O(t)===f}e.AsyncMode=l,e.ConcurrentMode=f,e.ContextConsumer=s,e.ContextProvider=c,e.Element=n,e.ForwardRef=p,e.Fragment=a,e.Lazy=v,e.Memo=y,e.Portal=o,e.Profiler=u,e.StrictMode=i,e.Suspense=d,e.isAsyncMode=function(t){return _(t)||O(t)===l},e.isConcurrentMode=_,e.isContextConsumer=function(t){return O(t)===s},e.isContextProvider=function(t){return O(t)===c},e.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===n},e.isForwardRef=function(t){return O(t)===p},e.isFragment=function(t){return O(t)===a},e.isLazy=function(t){return O(t)===v},e.isMemo=function(t){return O(t)===y},e.isPortal=function(t){return O(t)===o},e.isProfiler=function(t){return O(t)===u},e.isStrictMode=function(t){return O(t)===i},e.isSuspense=function(t){return O(t)===d},e.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===a||t===f||t===u||t===i||t===d||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===v||t.$$typeof===y||t.$$typeof===c||t.$$typeof===s||t.$$typeof===p||t.$$typeof===m||t.$$typeof===g||t.$$typeof===w||t.$$typeof===b)},e.typeOf=O},363(t,e,r){"use strict";t.exports=r(799)},72(t){"use strict";var e=[];function r(t){for(var r=-1,n=0;n0?" ".concat(r.layer):""," {")),n+=r.css,o&&(n+="}"),r.media&&(n+="}"),r.supports&&(n+="}");var a=r.sourceMap;a&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),e.styleTagTransform(n,t,e.options)}(e,t,r)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}},113(t){"use strict";t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}},63(t,e,r){"use strict";var n=r(609),o="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},a=n.useState,i=n.useEffect,u=n.useLayoutEffect,c=n.useDebugValue;function s(t){var e=t.getSnapshot;t=t.value;try{var r=e();return!o(t,r)}catch(t){return!0}}var l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(t,e){return e()}:function(t,e){var r=e(),n=a({inst:{value:r,getSnapshot:e}}),o=n[0].inst,l=n[1];return u(function(){o.value=r,o.getSnapshot=e,s(o)&&l({inst:o})},[t,r,e]),i(function(){return s(o)&&l({inst:o}),t(function(){s(o)&&l({inst:o})})},[t]),c(r),r};e.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:l},940(t,e,r){"use strict";var n=r(609),o=r(888),a="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},i=o.useSyncExternalStore,u=n.useRef,c=n.useEffect,s=n.useMemo,l=n.useDebugValue;e.useSyncExternalStoreWithSelector=function(t,e,r,n,o){var f=u(null);if(null===f.current){var p={hasValue:!1,value:null};f.current=p}else p=f.current;f=s(function(){function t(t){if(!c){if(c=!0,i=t,t=n(t),void 0!==o&&p.hasValue){var e=p.value;if(o(e,t))return u=e}return u=t}if(e=u,a(i,t))return e;var r=n(t);return void 0!==o&&o(e,r)?e:(i=t,u=r)}var i,u,c=!1,s=void 0===r?null:r;return[function(){return t(e())},null===s?void 0:function(){return t(s())}]},[e,r,n,o]);var d=i(t,f[0],f[1]);return c(function(){p.hasValue=!0,p.value=d},[d]),l(d),d}},888(t,e,r){"use strict";t.exports=r(63)},242(t,e,r){"use strict";t.exports=r(940)},609(t){"use strict";t.exports=window.React}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var a=e[n]={id:n,exports:{}};return t[n](a,a.exports,r),a.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.nc=void 0,(()=>{"use strict";var t="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==r.g&&r.g||{},e="URLSearchParams"in t,n="Symbol"in t&&"iterator"in Symbol,o="FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),a="FormData"in t,i="ArrayBuffer"in t;if(i)var u=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(t){return t&&u.indexOf(Object.prototype.toString.call(t))>-1};function s(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function l(t){return"string"!=typeof t&&(t=String(t)),t}function f(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return n&&(e[Symbol.iterator]=function(){return e}),e}function p(t){this.map={},t instanceof p?t.forEach(function(t,e){this.append(e,t)},this):Array.isArray(t)?t.forEach(function(t){if(2!=t.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+t.length);this.append(t[0],t[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function d(t){if(!t._noBody)return t.bodyUsed?Promise.reject(new TypeError("Already read")):void(t.bodyUsed=!0)}function h(t){return new Promise(function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}})}function y(t){var e=new FileReader,r=h(e);return e.readAsArrayBuffer(t),r}function v(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(t){var r;this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:o&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:a&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:e&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():i&&o&&(r=t)&&DataView.prototype.isPrototypeOf(r)?(this._bodyArrayBuffer=v(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):i&&(ArrayBuffer.prototype.isPrototypeOf(t)||c(t))?this._bodyArrayBuffer=v(t):this._bodyText=t=Object.prototype.toString.call(t):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):e&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var t=d(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer)return d(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer));if(o)return this.blob().then(y);throw new Error("could not read as ArrayBuffer")},this.text=function(){var t,e,r,n,o,a=d(this);if(a)return a;if(this._bodyBlob)return t=this._bodyBlob,r=h(e=new FileReader),o=(n=/charset=([A-Za-z0-9_-]+)/.exec(t.type))?n[1]:"utf-8",e.readAsText(t,o),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n-1?o:n),this.mode=r.mode||this.mode||null,this.signal=r.signal||this.signal||function(){if("AbortController"in t)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&a)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(a),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==r.cache&&"no-cache"!==r.cache)){var i=/([?&])_=[^&]*/;i.test(this.url)?this.url=this.url.replace(i,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function w(t){var e=new FormData;return t.trim().split("&").forEach(function(t){if(t){var r=t.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(o))}}),e}function O(t,e){if(!(this instanceof O))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new p(e.headers),this.url=e.url||"",this._initBody(t)}g.prototype.clone=function(){return new g(this,{body:this._bodyInit})},b.call(g.prototype),b.call(O.prototype),O.prototype.clone=function(){return new O(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},O.error=function(){var t=new O(null,{status:200,statusText:""});return t.ok=!1,t.status=0,t.type="error",t};var _=[301,302,303,307,308];O.redirect=function(t,e){if(-1===_.indexOf(e))throw new RangeError("Invalid status code");return new O(null,{status:e,headers:{location:t}})};var j=t.DOMException;try{new j}catch(t){(j=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack}).prototype=Object.create(Error.prototype),j.prototype.constructor=j}function E(e,r){return new Promise(function(n,a){var u=new g(e,r);if(u.signal&&u.signal.aborted)return a(new j("Aborted","AbortError"));var c=new XMLHttpRequest;function f(){c.abort()}if(c.onload=function(){var t,e,r={statusText:c.statusText,headers:(t=c.getAllResponseHeaders()||"",e=new p,t.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t}).forEach(function(t){var r=t.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();try{e.append(n,o)}catch(t){console.warn("Response "+t.message)}}}),e)};0===u.url.indexOf("file://")&&(c.status<200||c.status>599)?r.status=200:r.status=c.status,r.url="responseURL"in c?c.responseURL:r.headers.get("X-Request-URL");var o="response"in c?c.response:c.responseText;setTimeout(function(){n(new O(o,r))},0)},c.onerror=function(){setTimeout(function(){a(new TypeError("Network request failed"))},0)},c.ontimeout=function(){setTimeout(function(){a(new TypeError("Network request timed out"))},0)},c.onabort=function(){setTimeout(function(){a(new j("Aborted","AbortError"))},0)},c.open(u.method,function(e){try{return""===e&&t.location.href?t.location.href:e}catch(t){return e}}(u.url),!0),"include"===u.credentials?c.withCredentials=!0:"omit"===u.credentials&&(c.withCredentials=!1),"responseType"in c&&(o?c.responseType="blob":i&&(c.responseType="arraybuffer")),r&&"object"==typeof r.headers&&!(r.headers instanceof p||t.Headers&&r.headers instanceof t.Headers)){var d=[];Object.getOwnPropertyNames(r.headers).forEach(function(t){d.push(s(t)),c.setRequestHeader(t,l(r.headers[t]))}),u.headers.forEach(function(t,e){-1===d.indexOf(e)&&c.setRequestHeader(e,t)})}else u.headers.forEach(function(t,e){c.setRequestHeader(e,t)});u.signal&&(u.signal.addEventListener("abort",f),c.onreadystatechange=function(){4===c.readyState&&u.signal.removeEventListener("abort",f)}),c.send(void 0===u._bodyInit?null:u._bodyInit)})}E.polyfill=!0,t.fetch||(t.fetch=E,t.Headers=p,t.Request=g,t.Response=O)})(),(()=>{"use strict";var t=r(609),e=r.n(t),n=window.ReactDOM,o=r.n(n),a=window.PropTypes,i=r.n(a),u=r(888),c=r(242),s=function(t){t()},l=()=>s,f=(0,t.createContext)(null);function p(){return(0,t.useContext)(f)}var d=()=>{throw new Error("uSES not initialized!")},h=d,y=(t,e)=>t===e;function v(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f,r=e===f?p:()=>(0,t.useContext)(e);return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:y,o=r(),a=o.store,i=o.subscription,u=o.getServerState,c=h(i.addNestedSub,a.getState,u||a.getState,e,n);return(0,t.useDebugValue)(c),c}}var b=v();function m(){return m=Object.assign?Object.assign.bind():function(t){for(var e=1;e{throw new Error("Invalid value of type ".concat(typeof t," for ").concat(e," argument when connecting component ").concat(n.wrappedComponentName,"."))}}function T(t,e,r){return m({},r,t,e)}var x={notify(){},get:()=>[]};function C(t,e){var r,n=x;function o(){i.onStateChange&&i.onStateChange()}function a(){r||(r=e?e.addNestedSub(o):t.subscribe(o),n=function(){var t=l(),e=null,r=null;return{clear(){e=null,r=null},notify(){t(()=>{for(var t=e;t;)t.callback(),t=t.next})},get(){for(var t=[],r=e;r;)t.push(r),r=r.next;return t},subscribe(t){var n=!0,o=r={callback:t,next:null,prev:r};return o.prev?o.prev.next=o:e=o,function(){n&&null!==e&&(n=!1,o.next?o.next.prev=o.prev:r=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}())}var i={addNestedSub:function(t){return a(),n.subscribe(t)},notifyNestedSubs:function(){n.notify()},handleChangeWrapper:o,isSubscribed:function(){return Boolean(r)},trySubscribe:a,tryUnsubscribe:function(){r&&(r(),r=void 0,n.clear(),n=x)},getListeners:()=>n};return i}var I="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?t.useLayoutEffect:t.useEffect;function R(t,e){return t===e?0!==t||0!==e||1/t==1/e:t!=t&&e!=e}function D(t,e){if(R(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;var r=Object.keys(t),n=Object.keys(e);if(r.length!==n.length)return!1;for(var o=0;ot.length)&&(e=t.length);for(var r=0,n=Array(e);r3&&void 0!==arguments[3]?arguments[3]:{},i=(a.pure,a.areStatesEqual),u=void 0===i?B:i,c=a.areOwnPropsEqual,s=void 0===c?D:c,l=a.areStatePropsEqual,p=void 0===l?D:l,d=a.areMergedPropsEqual,h=void 0===d?D:d,y=a.forwardRef,v=void 0!==y&&y,b=a.context,w=void 0===b?f:b,P=function(t){return t?"function"==typeof t?A(t):k(t,"mapStateToProps"):S(()=>({}))}(r),x=function(t){return t&&"object"==typeof t?S(e=>function(t,e){var r={},n=function(){var n=t[o];"function"==typeof n&&(r[o]=function(){return e(n(...arguments))})};for(var o in t)n();return r}(t,e)):t?"function"==typeof t?A(t):k(t,"mapDispatchToProps"):S(t=>({dispatch:t}))}(n),R=function(t){return t?"function"==typeof t?function(t){return function(e,r){r.displayName;var n,o=r.areMergedPropsEqual,a=!1;return function(e,r,i){var u=t(e,r,i);return a?o(u,n)||(n=u):(a=!0,n=u),n}}}(t):k(t,"mergeProps"):()=>T}(o),M=Boolean(r);return r=>{var n=r.displayName||r.name||"Component",o="Connect(".concat(n,")"),a={shouldHandleStateChanges:M,displayName:o,wrappedComponentName:n,WrappedComponent:r,initMapStateToProps:P,initMapDispatchToProps:x,initMergeProps:R,areStatesEqual:u,areStatePropsEqual:p,areOwnPropsEqual:s,areMergedPropsEqual:h};function i(n){var o=(0,t.useMemo)(()=>{var t=n.reactReduxForwardedRef,e=g(n,U);return[n.context,t,e]},[n]),i=N(o,3),u=i[0],c=i[1],s=i[2],l=(0,t.useMemo)(()=>u&&u.Consumer&&(0,_.isContextConsumer)(e().createElement(u.Consumer,null))?u:w,[u,w]),f=(0,t.useContext)(l),p=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch),d=Boolean(f)&&Boolean(f.store),h=p?n.store:f.store,y=d?f.getServerState:h.getState,v=(0,t.useMemo)(()=>function(t,e){var r=e.initMapStateToProps,n=e.initMapDispatchToProps,o=e.initMergeProps,a=g(e,j);return E(r(t,a),n(t,a),o(t,a),t,a)}(h.dispatch,a),[h]),b=(0,t.useMemo)(()=>{if(!M)return q;var t=C(h,p?void 0:f.subscription),e=t.notifyNestedSubs.bind(t);return[t,e]},[h,p,f]),O=N(b,2),S=O[0],P=O[1],A=(0,t.useMemo)(()=>p?f:m({},f,{subscription:S}),[p,f,S]),k=(0,t.useRef)(),T=(0,t.useRef)(s),x=(0,t.useRef)(),R=(0,t.useRef)(!1),D=((0,t.useRef)(!1),(0,t.useRef)(!1)),B=(0,t.useRef)();I(()=>(D.current=!0,()=>{D.current=!1}),[]);var F,H,$,J=(0,t.useMemo)(()=>()=>x.current&&s===T.current?x.current:v(h.getState(),s),[h,s]),W=(0,t.useMemo)(()=>t=>S?function(t,e,r,n,o,a,i,u,c,s,l){if(!t)return()=>{};var f=!1,p=null,d=()=>{if(!f&&u.current){var t,r,d=e.getState();try{t=n(d,o.current)}catch(t){r=t,p=t}r||(p=null),t===a.current?i.current||s():(a.current=t,c.current=t,i.current=!0,l())}};return r.onStateChange=d,r.trySubscribe(),d(),()=>{if(f=!0,r.tryUnsubscribe(),r.onStateChange=null,p)throw p}}(M,h,S,v,T,k,R,D,x,P,t):()=>{},[S]);F=G,H=[T,k,R,s,x,P],I(()=>F(...H),void 0);try{$=L(W,J,y?()=>v(y(),s):J)}catch(t){throw B.current&&(t.message+="\nThe error may be correlated with this previous error:\n".concat(B.current.stack,"\n\n")),t}I(()=>{B.current=void 0,x.current=void 0,k.current=$});var z=(0,t.useMemo)(()=>e().createElement(r,m({},$,{ref:c})),[c,r,$]);return(0,t.useMemo)(()=>M?e().createElement(l.Provider,{value:A},z):z,[l,z,A])}var c=e().memo(i);if(c.WrappedComponent=r,c.displayName=i.displayName=o,v){var l=e().forwardRef(function(t,r){return e().createElement(c,m({},t,{reactReduxForwardedRef:r}))});return l.displayName=o,l.WrappedComponent=r,O()(l,r)}return O()(c,r)}},H=function(r){var n=r.store,o=r.context,a=r.children,i=r.serverState,u=(0,t.useMemo)(()=>{var t=C(n);return{store:n,subscription:t,getServerState:i?()=>i:void 0}},[n,i]),c=(0,t.useMemo)(()=>n.getState(),[n]);I(()=>{var t=u.subscription;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),c!==n.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}},[u,c]);var s=o||f;return e().createElement(s.Provider,{value:u},a)};function $(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f,r=e===f?p:()=>(0,t.useContext)(e);return function(){return r().store}}var J=$();function W(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f,e=t===f?J:$(t);return function(){return e().dispatch}}var z,V,K=W();function Y(t,e){switch(t){case 0:return function(){return e.apply(this,arguments)};case 1:return function(t){return e.apply(this,arguments)};case 2:return function(t,r){return e.apply(this,arguments)};case 3:return function(t,r,n){return e.apply(this,arguments)};case 4:return function(t,r,n,o){return e.apply(this,arguments)};case 5:return function(t,r,n,o,a){return e.apply(this,arguments)};case 6:return function(t,r,n,o,a,i){return e.apply(this,arguments)};case 7:return function(t,r,n,o,a,i,u){return e.apply(this,arguments)};case 8:return function(t,r,n,o,a,i,u,c){return e.apply(this,arguments)};case 9:return function(t,r,n,o,a,i,u,c,s){return e.apply(this,arguments)};case 10:return function(t,r,n,o,a,i,u,c,s,l){return e.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function Q(t){return null!=t&&"object"==typeof t&&!0===t["@@functional/placeholder"]}function X(t){return function e(r){return 0===arguments.length||Q(r)?e:t.apply(this,arguments)}}z=c.useSyncExternalStoreWithSelector,h=z,(t=>{L=t})(u.useSyncExternalStore),V=n.unstable_batchedUpdates,s=V;var Z=X(function(t){var e,r=!1;return Y(t.length,function(){return r?e:(r=!0,e=t.apply(this,arguments))})}),tt=Z;function et(t){return et="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},et(t)}function rt(t,e,r){return(e=function(t){var e=function(t){if("object"!=et(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=et(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==et(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function nt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function ot(t){for(var e=1;e=0;)mt(e=jt[r],t)&&!St(n,e)&&(n[n.length]=e),r-=1;return n}):X(function(t){return Object(t)!==t?[]:Object.keys(t)}),At=X(function(t){return null===t?"Null":void 0===t?"Undefined":Object.prototype.toString.call(t).slice(8,-1)});function kt(t,e,r,n){var o=vt(t);function a(t,e){return Tt(t,e,r.slice(),n.slice())}return!bt(function(t,e){return!bt(a,e,t)},vt(e),o)}function Tt(t,e,r,n){if(gt(t,e))return!0;var o,a,i=At(t);if(i!==At(e))return!1;if("function"==typeof t["fantasy-land/equals"]||"function"==typeof e["fantasy-land/equals"])return"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e)&&"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t);if("function"==typeof t.equals||"function"==typeof e.equals)return"function"==typeof t.equals&&t.equals(e)&&"function"==typeof e.equals&&e.equals(t);switch(i){case"Arguments":case"Array":case"Object":if("function"==typeof t.constructor&&"Promise"===(o=t.constructor,null==(a=String(o).match(/^function (\w*)/))?"":a[1]))return t===e;break;case"Boolean":case"Number":case"String":if(typeof t!=typeof e||!gt(t.valueOf(),e.valueOf()))return!1;break;case"Date":if(!gt(t.valueOf(),e.valueOf()))return!1;break;case"Error":return t.name===e.name&&t.message===e.message;case"RegExp":if(t.source!==e.source||t.global!==e.global||t.ignoreCase!==e.ignoreCase||t.multiline!==e.multiline||t.sticky!==e.sticky||t.unicode!==e.unicode)return!1}for(var u=r.length-1;u>=0;){if(r[u]===t)return n[u]===e;u-=1}switch(i){case"Map":return t.size===e.size&&kt(t.entries(),e.entries(),r.concat([t]),n.concat([e]));case"Set":return t.size===e.size&&kt(t.values(),e.values(),r.concat([t]),n.concat([e]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var c=Pt(t);if(c.length!==Pt(e).length)return!1;var s=r.concat([t]),l=n.concat([e]);for(u=c.length-1;u>=0;){var f=c[u];if(!mt(f,e)||!Tt(e[f],t[f],s,l))return!1;u-=1}return!0}var xt=yt(function(t,e){return Tt(t,e,[],[])});function Ct(t,e,r){var n,o;if("function"==typeof t.indexOf)switch(typeof e){case"number":if(0===e){for(n=1/e;r=0}var Rt=yt(It);function Dt(t){return function e(r,n,o){switch(arguments.length){case 0:return e;case 1:return Q(r)?e:yt(function(e,n){return t(r,e,n)});case 2:return Q(r)&&Q(n)?e:Q(r)?yt(function(e,r){return t(e,n,r)}):Q(n)?yt(function(e,n){return t(r,e,n)}):X(function(e){return t(r,n,e)});default:return Q(r)&&Q(n)&&Q(o)?e:Q(r)&&Q(n)?yt(function(e,r){return t(e,r,o)}):Q(r)&&Q(o)?yt(function(e,r){return t(e,n,r)}):Q(n)&&Q(o)?yt(function(e,n){return t(r,e,n)}):Q(r)?X(function(e){return t(e,n,o)}):Q(n)?X(function(e){return t(r,e,o)}):Q(o)?X(function(e){return t(r,n,e)}):t(r,n,o)}}}var Nt=Number.isInteger||function(t){return(0|t)===t};function Mt(t){return"[object String]"===Object.prototype.toString.call(t)}function Ut(t,e){var r=t<0?e.length+t:t;return Mt(e)?e.charAt(r):e[r]}function Lt(t,e){for(var r=e,n=0;n=0&&"[object Array]"===Object.prototype.toString.call(t)},Ft=X(function(t){return null==t}),Ht=Dt(function t(e,r,n){if(0===e.length)return r;var o=e[0];if(e.length>1){var a=!Ft(n)&&mt(o,n)&&"object"==typeof n[o]?n[o]:Nt(e[1])?[]:{};r=t(Array.prototype.slice.call(e,1),r,a)}return function(t,e,r){if(Nt(t)&&Bt(r)){var n=[].concat(r);return n[t]=e,n}var o={};for(var a in r)o[a]=r[a];return o[t]=e,o}(o,r,n)}),$t=Dt(function(t,e,r){return Ht([t],e,r)});function Jt(t,e){return function(){var r=arguments.length;if(0===r)return e();var n=arguments[r-1];return Bt(n)||"function"!=typeof n[t]?e.apply(this,arguments):n[t].apply(n,Array.prototype.slice.call(arguments,0,r-1))}}var Wt=yt(Jt("forEach",function(t,e){for(var r=e.length,n=0;n0&&t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1))});function de(t){return function e(r){for(var n,o,a,i=[],u=0,c=r.length;u=arguments.length)?c=e[i]:(c=arguments[o],o+=1),n[i]=c,Q(c)?u=!0:a-=1,i+=1}return!u&&a<=0?r.apply(this,n):Y(Math.max(0,a),me(t,n,r))}}var ge=yt(function(t,e){return 1===t?X(e):Y(t,me(t,[],e))}),we=ge,Oe=yt(ae(["fantasy-land/map","map"],be,function(t,e){switch(Object.prototype.toString.call(e)){case"[object Function]":return we(e.length,function(){return t.call(this,e.apply(this,arguments))});case"[object Object]":return oe(function(r,n){return r[n]=t(e[n]),r},{},Pt(e));default:return ye(t,e)}})),_e=Oe,je="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function Ee(t,e,r){return function(n,o,a){if(pe(a))return t(n,o,a);if(null==a)return o;if("function"==typeof a["fantasy-land/reduce"])return e(n,o,a,"fantasy-land/reduce");if(null!=a[je])return r(n,o,a[je]());if("function"==typeof a.next)return r(n,o,a);if("function"==typeof a.reduce)return e(n,o,a,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function Se(t,e,r){for(var n=0,o=r.length;n":qe(r,n)},n=function(t,e){return ye(function(e){return Ne(e)+": "+r(t[e])},e.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+ye(r,t).join(", ")+"))";case"[object Array]":return"["+ye(r,t).concat(n(t,Le(function(t){return/^\d+$/.test(t)},Pt(t)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof t?"new Boolean("+r(t.valueOf())+")":t.toString();case"[object Date]":return"new Date("+(isNaN(t.valueOf())?r(NaN):Ne(Ue(t)))+")";case"[object Map]":return"new Map("+r(Array.from(t))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof t?"new Number("+r(t.valueOf())+")":1/t==-1/0?"-0":t.toString(10);case"[object Set]":return"new Set("+r(Array.from(t).sort())+")";case"[object String]":return"object"==typeof t?"new String("+r(t.valueOf())+")":Ne(t);case"[object Undefined]":return"undefined";default:if("function"==typeof t.toString){var o=t.toString();if("[object Object]"!==o)return o}return"{"+n(t,Pt(t)).join(", ")+"}"}}var Ge=X(function(t){return qe(t,[])}),Be=yt(function(t,e){if(Bt(t)){if(Bt(e))return t.concat(e);throw new TypeError(Ge(e)+" is not an array")}if(Mt(t)){if(Mt(e))return t+e;throw new TypeError(Ge(e)+" is not a string")}if(null!=t&&De(t["fantasy-land/concat"]))return t["fantasy-land/concat"](e);if(null!=t&&De(t.concat))return t.concat(e);throw new TypeError(Ge(t)+' does not have a method named "concat" or "fantasy-land/concat"')});function Fe(t){return t&&t["@@transducer/reduced"]?t:{"@@transducer/value":t,"@@transducer/reduced":!0}}var He=function(){function t(t,e){this.xf=e,this.f=t,this.all=!0}return t.prototype["@@transducer/init"]=ue,t.prototype["@@transducer/result"]=function(t){return this.all&&(t=this.xf["@@transducer/step"](t,!0)),this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,e){return this.f(e)||(this.all=!1,t=Fe(this.xf["@@transducer/step"](t,!1))),t},t}();function $e(t){return function(e){return new He(t,e)}}var Je=yt(ae(["all"],$e,function(t,e){for(var r=0;re!=e>t)return e>t?e:t}var n=r(t,e);if(void 0!==n)return n;var o=r(typeof t,typeof e);if(void 0!==o)return o===typeof t?t:e;var a=Ge(t),i=r(a,Ge(e));return void 0!==i&&i===a?t:e}),Ve=yt(function(t,e){return _e(re(t),e)}),Ke=yt(function(t,e){return we(Re(ze,0,Ve("length",e)),function(){var r=arguments,n=this;return t.apply(n,ye(function(t){return t.apply(n,r)},e))})}),Ye=Ke,Qe=X(function(t){return Ye(function(){return Array.prototype.slice.call(arguments,0)},t)})([fe,Le]);function Xe(t,e,r){var n,o=typeof t;switch(o){case"string":case"number":return 0===t&&1/t==-1/0?!!r._items["-0"]||(e&&(r._items["-0"]=!0),!1):null!==r._nativeSet?e?(n=r._nativeSet.size,r._nativeSet.add(t),r._nativeSet.size===n):r._nativeSet.has(t):o in r._items?t in r._items[o]||(e&&(r._items[o][t]=!0),!1):(e&&(r._items[o]={},r._items[o][t]=!0),!1);case"boolean":if(o in r._items){var a=t?1:0;return!!r._items[o][a]||(e&&(r._items[o][a]=!0),!1)}return e&&(r._items[o]=t?[!1,!0]:[!0,!1]),!1;case"function":return null!==r._nativeSet?e?(n=r._nativeSet.size,r._nativeSet.add(t),r._nativeSet.size===n):r._nativeSet.has(t):o in r._items?!!It(t,r._items[o])||(e&&r._items[o].push(t),!1):(e&&(r._items[o]=[t]),!1);case"undefined":return!!r._items[o]||(e&&(r._items[o]=!0),!1);case"object":if(null===t)return!!r._items.null||(e&&(r._items.null=!0),!1);default:return(o=Object.prototype.toString.call(t))in r._items?!!It(t,r._items[o])||(e&&r._items[o].push(t),!1):(e&&(r._items[o]=[t]),!1)}}var Ze=function(){function t(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return t.prototype.add=function(t){return!Xe(t,!0,this)},t.prototype.has=function(t){return Xe(t,!1,this)},t}(),tr=yt(function(t,e){for(var r=[],n=0,o=t.length,a=e.length,i=new Ze,u=0;u=0&&this.i>=this.n?Fe(r):r},t}();function Nr(t){return function(e){return new Dr(t,e)}}var Mr=Dt(Jt("slice",function(t,e,r){return Array.prototype.slice.call(r,t,e)})),Ur=yt(ae(["take"],Nr,function(t,e){return Mr(0,t<0?1/0:t,e)})),Lr=yt(function(t,e){return xt(Ur(t.length,e),t)}),qr=yt(function(t,e){return"function"!=typeof e.indexOf||Bt(e)?Ct(e,t,0):e.indexOf(t)}),Gr=Dt(function(t,e,r){t=t=0?t:r.length;var n=Array.prototype.slice.call(r,0);return n.splice(t,0,e),n}),Br=function(){function t(t,e){this.xf=e,this.f=t,this.found=!1}return t.prototype["@@transducer/init"]=ue,t.prototype["@@transducer/result"]=function(t){return this.found||(t=this.xf["@@transducer/step"](t,void 0)),this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,e){return this.f(e)&&(this.found=!0,t=Fe(this.xf["@@transducer/step"](t,e))),t},t}();function Fr(t){return function(e){return new Br(t,e)}}var Hr=yt(ae(["find"],Fr,function(t,e){for(var r=0,n=e.length;rt.length)&&(e=t.length);for(var r=0,n=Array(e);r2&&void 0!==arguments[2]?arguments[2]:[],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;if(Array.isArray(t))t.forEach((t,o)=>{if(n){var a=Ar(t=>Rt("{}",t),n);if(-1!==a){var i=Mr(0,a,n),u=Mr(a,n.length,n);if(i.length)Zr(Vt(i,t),e,Be(r,Be([o],i)),u);else{var c,s=u.map(t=>t.replace("{}","")).filter(t=>t),l=Be([o],s);for(var f in c=s.length?Vt(s,t):t){var p=c[f];Zr(p,e,Be(r,l.concat([f])))}}}else Zr(Vt(n,t),e,Be(r,Be([o],n)))}else Zr(t,e,Kr(o,r))});else if("Object"===At(t)){e(t,r);var o=Vt(Xr,t);if(o){var a=Be(r,Xr);Zr(o,e,a)}Gt([],[t.namespace,t.type],window.__dashprivate_childrenProps).forEach(n=>{if(n.includes("[]")){var o=(w=n.split("[]").map(t=>t.split(".").filter(t=>t)),O=2,function(t){if(Array.isArray(t))return t}(w)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,u=[],c=!0,s=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw o}}return u}}(w,O)||function(t,e){if(t){if("string"==typeof t)return Yr(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Yr(t,e):void 0}}(w,O)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=o[0],i=o[1],u=Be(["props"],a),c=Be(r,u);Zr(Vt(u,t),e,c,i)}else if(n.includes("{}")){for(var s=n.split("."),l=[],f=[],p=!1,d=0;dthis.removeListener(t,e)}removeListener(t,e){var r=this._ev[t];if(r){var n=r.indexOf(e);n>-1&&r.splice(n,1)}}emit(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;nt.apply(this,r))}once(t,e){var r=this,n=this.on(t,function(){n();for(var t=arguments.length,o=new Array(t),a=0;ae.some((e,r)=>t[r]!==e),c=e.length,s=c?fe(u,a):{},l={};return c&&cr((t,e)=>{var r=fe(t=>{var e=t.path;return u(e)},t);r.length&&(l[e]=r)},i),Zr(t,(t,r)=>{var n=Vt(["props","id"],t);if(n)if("object"==typeof n){var o=Object.keys(n).sort(),a=ne(o,n),u=o.join(","),c=l[u]=l[u]||[],f=i[u]||[],p={values:a,path:Be(e,r)},d=qr(p,f);-1===d?c.push(p):l[u]=Gr(d,p,c)}else s[n]=Be(e,r)}),{strs:s,objs:l,events:n||r.events}}function rn(t,e){if("object"==typeof e){var r=Object.keys(e).sort(),n=r.join(","),o=t.objs[n];if(!o)return!1;var a=ne(r,e),i=$r(Jr(a,"values"),o);return i&&i.path}return t.strs[e]}var nn=t=>{var e=t.type,r=t.namespace,n=window[r];if(n){if(n[e])return n[e];throw new Error("Component ".concat(e," not found in ").concat(r))}throw new Error("".concat(r," was not found."))};function on(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function an(t){for(var e=1;e=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){u=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(u)throw a}}}}function ln(t,e){if(t){if("string"==typeof t)return fn(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?fn(t,e):void 0}}function fn(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);rt.startsWith(".."),dn={wild:"ALL",multi:1},hn={wild:"MATCH"},yn={wild:"ALLSMALLER",multi:1,expand:1},vn={ALL:dn,MATCH:hn,ALLSMALLER:yn},bn={Output:{ALL:dn,MATCH:hn},Input:vn,State:vn},mn=["string","number","boolean"],gn=[".","{"];function wn(t){var e=t.lastIndexOf(".");return{id:On(t.substr(0,e)),property:t.substr(e+1)}}function On(t){return(t=>t.startsWith("{"))(t)?function(t){return _e(t=>Array.isArray(t)&&vn[t[0]]||t,JSON.parse(t))}(t):t}function _n(t){return"object"!=typeof t?t:"{"+Object.keys(t).sort().map(e=>{return JSON.stringify(e)+":"+((r=t[e])&&r.wild||JSON.stringify(r));var r}).join(",")+"}"}function jn(t,e){var r=ir()(e);if(ir()(t)){if(r){var n=Number(t),o=Number(e);return n>o?1:ne?1:tir()(t)?t-1:0,Sn=t=>"string"==typeof t?t+"z":"z";function Pn(t,e,r,n){var o=t[e]=t[e]||{};(o[r]=o[r]||[]).push(n)}function An(t,e,r,n){var o=Object.keys(e).sort(),a=o.join(","),i=ne(o,e),u=i.map(t=>"object"==typeof t&&null!==t?t.wild?t.wild:JSON.stringify(t):String(t)).join("|");t.has(a)||t.set(a,new Map);var c=t.get(a);c.has(r)||c.set(r,new Map);var s=c.get(r),l=s.get(u);l||(l={keys:o,values:i,callbacks:[]},s.set(u,l)),l.callbacks.push(n)}function kn(t,e){var r,n=sn(t.entries());try{for(n.s();!(r=n.n()).done;){var o=cn(r.value,2),a=o[0],i=o[1];e[a]={};var u,c=sn(i.entries());try{for(c.s();!(u=c.n()).done;){var s=cn(u.value,2),l=s[0],f=s[1];e[a][l]=Array.from(f.values())}}catch(t){c.e(t)}finally{c.f()}}}catch(t){n.e(t)}finally{n.f()}}var Tn=t=>{var e=cn(t,2),r=e[0],n=e[1],o=r&&r.wild,a=n&&n.wild;return o&&a?!(r===hn&&n===yn||r===yn&&n===hn):r===n||o||a};function xn(t,e){var r,n=t.id,o=t.property,a=Pt(n).sort(),i=ne(a,n),u=sn(e);try{for(u.s();!(r=u.n()).done;){var c=r.value,s=c.id;if(c.property===o&&"string"!=typeof s&&xt(Pt(s).sort(),a)&&We(Tn,sr(i,ne(a,s))))return c}}catch(t){u.e(t)}finally{u.f()}return!1}function Cn(t,e,r){var n=new or.w,o=performance.now(),a={},i=_e(mr({id:On})),u=_e(t=>{var e,r=t.output,n=t.no_output,o=mr({inputs:i,state:i},t);return n?(o.outputs=[],o.noOutput=!0):o.outputs=_e(t=>$t("out",!0,wn(t)),pn(r)?(e=r).substr(2,e.length-4).split("..."):[r]),o},t),c=!1;r.validate_callbacks&&function(t,e){var r={},n=[];t.forEach(t=>{var o=t.inputs,a=t.outputs,i=t.state,u=!0;1!==a.length||a[0].id||a[0].property||(u=!1);var c="In the callback for output(s):\n "+a.map(zn).join("\n ");!o.length&&t.prevent_initial_call&&e("A callback is missing Inputs",[c,"there are no `Input` elements.","Without `Input` elements, it will never get called.","","Subscribing to `Input` components will cause the","callback to be called whenever their values change.","","If you want a callback without inputs that fires on initial load,","set prevent_initial_call=False."]),[[a,"Output"],[o,"Input"],[i,"State"]].forEach(t=>{var r=cn(t,2),n=r[0],o=r[1];("Output"!==o||u)&&(Array.isArray(n)||e("Callback ".concat(o,"(s) must be an Array"),[c,"For ".concat(o,"(s) we found:"),JSON.stringify(n),"but we expected an Array."]),n.forEach((t,r)=>{!function(t,e,r,n,o){var a=t.id,i=t.property;if("string"==typeof i&&i||o("Callback property error",[e,"".concat(r,"[").concat(n,"].property = ").concat(JSON.stringify(i)),"but we expected `property` to be a non-empty string."]),"object"==typeof a)Qt(a)&&o("Callback item missing ID",[e,"".concat(r,"[").concat(n,"].id = {}"),"Every item linked to a callback needs an ID"]),cr((t,a)=>{a||o("Callback wildcard ID error",[e,"".concat(r,"[").concat(n,'].id has key "').concat(a,'"'),"Keys must be non-empty strings."]),"object"==typeof t&&t.wild?bn[r][t.wild]!==t&&o("Callback wildcard ID error",[e,"".concat(r,"[").concat(n,'].id["').concat(a,'"] = ').concat(t.wild),"Allowed wildcards for ".concat(r,"s are:"),Pt(bn[r]).join(", ")]):Rt(typeof t,mn)||o("Callback wildcard ID error",[e,"".concat(r,"[").concat(n,'].id["').concat(a,'"] = ').concat(JSON.stringify(t)),"Wildcard callback ID values must be either wildcards","or constants of one of these types:",mn.join(", ")])},a);else if("string"==typeof a){a||o("Callback item missing ID",[e,"".concat(r,"[").concat(n,'].id = "').concat(a,'"'),"Every item linked to a callback needs an ID"]);var u=gn.filter(t=>Rt(t,a));u.length&&o("Callback invalid ID string",[e,"".concat(r,"[").concat(n,"].id = '").concat(a,"'"),"characters '".concat(u.join("', '"),"' are not allowed.")])}else o("Callback ID type error",[e,"".concat(r,"[").concat(n,"].id = ").concat(JSON.stringify(a)),"IDs must be strings or wildcard-compatible objects."])}(t,c,o,r,e)}))}),u&&(function(t,e,r,n,o){var a={},i=[];t.forEach((t,u)=>{var c=t.id,s=t.property;if("string"==typeof c){var l=zn({id:c,property:s});a[l]?r("Duplicate callback Outputs",[e,"Output ".concat(u," (").concat(l,") is already used by this callback.")]):n[l]?r("Duplicate callback outputs",[e,"Output ".concat(u," (").concat(l,") is already in use."),"To resolve this, set `allow_duplicate=True` on","duplicate outputs, or combine the outputs into","one callback function, distinguishing the trigger","by using `dash.callback_context` if necessary."]):a[l]=1}else{var f={id:c,property:s},p=xn(f,i),d=p||xn(f,o);if(p||d){var h=zn(f),y=zn(p||d);r("Overlapping wildcard callback outputs",[e,"Output ".concat(u," (").concat(h,")"),"overlaps another output (".concat(y,")"),"used in ".concat(p?"this":"a different"," callback.")])}else i.push(f)}}),Pt(a).forEach(t=>{n[t]=1}),i.forEach(t=>{o.push(t)})}(a,c,e,r,n),function(t,e,r,n,o){var a=In(t.length?t[0].id:void 0).matchKeys;t.forEach((e,r)=>{r&&!xt(In(e.id).matchKeys,a)&&o("Mismatched `MATCH` wildcards across `Output`s",[n,"Output ".concat(r," (").concat(zn(e),")"),"does not have MATCH wildcards on the same keys as","Output 0 (".concat(zn(t[0]),")."),"MATCH wildcards must be on the same keys for all Outputs.","ALL wildcards need not match, only MATCH."])});var i=a.length>0;[[e,"Input"],[r,"State"]].forEach(e=>{var r=cn(e,2),u=r[0],c=r[1];u.forEach((e,r)=>{var u=In(e.id),s=u.matchKeys,l=u.allsmallerKeys,f=i?s.concat(l):l,p=tr(f,a);if(p.length){p.sort();var d=t.length?"Output 0 (".concat(zn(t[0]),")"):"the (absent) Output";o("`Input` / `State` wildcards not in `Output`s",[n,"".concat(c," ").concat(r," (").concat(zn(e),")"),"has MATCH or ALLSMALLER on key(s) ".concat(p.join(", ")),"where ".concat(d),"does not have a MATCH wildcard. Inputs and State do not","need every MATCH from the Output(s), but ALLSMALLER","requires a matching MATCH in the Output(s), and when","the Output(s) have any MATCH, Input/State MATCH keys","must be a subset of them."])}})})}(a,o,i,c,e))})}(u,(t,r)=>{c=!0,e(t,r)});var s={},l={},f=new Map,p=new Map,d={},h={},y={MultiGraph:n,outputMap:s,inputMap:l,outputPatterns:d,inputPatterns:h,callbacks:u};if(c)return y;function v(t,e){var r=[{}];return cr((t,n)=>{var o=a[n].vals,i=o.indexOf(e[n]),u=[t];t&&t.wild&&(u=t===yn?i>0?o.slice(0,i):[]:-1===i||t===dn?o:[e[n]]),r=jr(jr([$t(n)],u),r)},t),r}u.forEach(t=>{var e=t.outputs,r=t.inputs;e.concat(r).filter(t=>"object"==typeof t.id).forEach(t=>{cr((t,e)=>{a[e]||(a[e]={exact:[],expand:0});var r=a[e];t&&t.wild?t.expand&&(r.expand+=1):-1===r.exact.indexOf(t)&&r.exact.push(t)},t.id)})}),cr(t=>{var e=t.exact,r=t.expand,n=e.slice().sort(jn);if(r)for(var o=0;o2&&void 0!==arguments[2])||arguments[2];r.validate_callbacks&&(n.addNode(t),n.addDependency(t,e),o&&(g[g.length-1].push(t),w[w.length-1].push(e)))}u.forEach(t=>{var e=t.outputs,o=t.inputs;function a(t,e){r.validate_callbacks&&(n.addNode(e),o.forEach(r=>{var n=r.id,o=r.property;"object"==typeof n?v(n,t).forEach(t=>{O(zn({id:t,property:o}),e)}):O(zn(r),e)}))}g.push([]),w.push([]);var i=In(e.length?e[0].id:void 0).matchKeys,u=Ar(t=>!Nn(t.id),e),c=Tr({matchKeys:i,firstSingleOutput:u,outputs:e},t);e.forEach(t=>{var e,n=t.id,i=t.property;if(r.validate_callbacks&&(e=function(t,e){var r=t.id,n=t.property;return e.some(e=>{var o=e.id,a=e.property;if(n!==a||typeof r!=typeof o)return!1;if("string"==typeof r){if(r===o)return!0}else if(xn(e,[t]))return!0;return!1})}(t,o)),"object"==typeof n)r.validate_callbacks&&v(n,{}).forEach(t=>{var r={id:t,property:i},n=zn(r);e&&(m.push(r),n+=b),a(t,n)}),An(f,n,i,c);else{if(r.validate_callbacks){var u=zn(t);e&&(m.push(t),u+=b),a({},u)}Pn(s,n,i,c)}}),o.forEach(t=>{var e=t.id,r=t.property;"object"==typeof e?An(p,e,r,c):Pn(l,e,r,c)})}),d=kn(f,d),h=kn(p,h),m.forEach(t=>{for(var e=zn(t),r=e.concat(b),n=0;nt===e)&&(w[n].some(t=>t===r)||w[n].forEach(t=>{O(r,t,!1)}))});var _=performance.now();return window.dash_component_api||(window.dash_component_api={}),window.dash_component_api.callbackGraphTime=(_-o).toFixed(2),y}function In(t){var e=[],r=[];return"object"==typeof t&&(cr((t,n)=>{t===hn?e.push(n):t===yn&&r.push(n)},t),e.sort(),r.sort()),{matchKeys:e,allsmallerKeys:r}}function Rn(t,e,r,n,o,a){for(var i=0;it.multi,br(e))}function Mn(t,e,r,n){var o,a,i="";if("string"==typeof r){var u=(t.outputMap[r]||{})[n];u&&(a=u[0],o=ro())}else{var c=Object.keys(r).sort(),s=ne(c,r),l=c.join(","),f=(t.outputPatterns[l]||{})[n];if(f)for(var p=0;p{var r=e.id,u=ne(o,r),c=to(t,ro(o,u,a),Dn(a,u)),s=c.resolvedId;i[s]||(n.push(c),i[s]=!0)})}function Ln(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";return o=>{var a=o.matchKeys,i=o.firstSingleOutput,u=o.outputs;if(a.length){var c=u[i];if(c)Un(o,c,t(e)(c),r);else{var s={};u.forEach(n=>{var i=t(e)(n).filter(t=>{var e=JSON.stringify(ne(a,t.id));return!s[e]&&(s[e]=1,!0)});Un(o,n,i,r)})}}else{var l=to(o,t,n);r.push(l)}}}function qn(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function Gn(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=Array(e);r{var e=t.id,r=t.property;return"".concat(_n(e),".").concat(r)};function Vn(t,e,r,n,o){var a=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],i=[],u=zn({id:r,property:n});if("string"==typeof r){var c=(t.inputMap[r]||{})[n];if(!c)return[];c.forEach(Ln(ro(),e,i))}else{var s=Object.keys(r).sort(),l=ne(s,r),f=s.join(","),p=(t.inputPatterns[f]||{})[n];if(!p)return[];p.forEach(t=>{if(Rn(s,l,t.values)){var r=Dn(t.values,l);t.callbacks.forEach(Ln(ro(s,l,t.values),e,i,r))}})}return i.forEach(r=>{r.changedPropIds[u]=o||$n,a&&(r.priority=Kn(t,e,r))}),i}function Kn(t,e,r){for(var n=[r],o={},a={},i=[];n.length;){n=fe(t=>{var e=a[t.resolvedId];return a[t.resolvedId]=!0,e},n);var u=fe(t=>!o[zn(t)],he(_e(t=>he(t.getOutputs(e)),n)));u.forEach(t=>o[zn(t)]=!0),(n=he(_e(r=>{var n=r.id,o=r.property;return Vn(t,e,n,o,Jn,!1)},u))).length&&i.push(n.length)}return i.unshift(i.length),_e(t=>Math.min(t,35).toString(36),i).join("")}var Yn=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!e.length)return[];var o=_e(zn,Re((e,r)=>Be(e,he(r.getOutputs(t))),[],r)),a={};if(o.forEach(t=>a[t]=!0),Object.keys(n).length){var i=he(_e(e=>function(t,e,r){for(var n=[r],o={};n.length;){var a=fe(t=>!o[zn(t)],he(_e(t=>he(t.getOutputs(e)),n)));o=Re((t,e)=>$t(zn(e),!0,t),o,a),n=he(_e(r=>{var n=r.id,o=r.property;return Vn(t,e,n,o,Jn,!1)},a))}return o}(n,t,e),r));i.length>0&&(a=Object.assign(i[0],...i))}return fe(e=>We(t=>!a[zn(t)],((t,e)=>t.filter(t=>!e.some(e=>zn(t)===zn(e))))(he(e.getInputs(t)),he(e.getOutputs(t)))),e)},Qn=(t,e,r,n)=>{for(var o=[],a=function(t,e,r,n){var o=n.outputsOnly,a=n.removedArrayInputsOnly,i=n.newPaths,u=n.chunkPath,c={},s=[];function l(t){if(t){var e=c[t.resolvedId];if(void 0!==e){var r=s[e];r.changedPropIds=Wn(r.changedPropIds,t.changedPropIds),t.initialCall&&(r.initialCall=!0)}else c[t.resolvedId]=s.length,s.push(t)}}function f(r,n,c){if(n)for(var s in n){var f=Mn(t,0,r,s);f&&(f.callback.prevent_initial_call||(f.initialCall=!0,l(f)))}if(!o&&c){var p=a?(y=_n(r),t=>t.getInputs(e).some(e=>!(!Array.isArray(e)||!e.some(t=>_n(t.id)===y)||(he(t.getOutputs(i)).length&&(t.initialCall=!0,t.changedPropIds={},l(t)),0)))):l,d=p;for(var h in u&&(d=t=>{We(Lr(u),Ve("path",he(t.getOutputs(e))))||p(t)}),c)Vn(t,e,r,h,Jn).forEach(d)}var y}return Zr(r,e=>{var r=Vt(["props","id"],e);if(r)if("string"!=typeof r||a){var n=Object.keys(r).sort().join(",");f(r,!a&&t.outputPatterns[n],t.inputPatterns[n])}else f(r,t.outputMap[r],t.inputMap[r])}),_e(r=>an(an({},r),{},{priority:Kn(t,e,r)}),s)}(t,e,r,n);;){var i=Fn(Qe(t=>{var r=t.callback.inputs,n=t.getInputs;return We(Nn,r)||!Qt(tr(_e(zn,he(n(e))),o))},a),2),u=i[0],c=i[1];if(!c.length)break;a=u,o=Be(o,_e(zn,he(_e(t=>(0,t.getOutputs)(e),c))))}if(n.filterRoot){var s=Vt(["props","id"],r);s&&(s=_n(s),a=a.filter(t=>t.callback.inputs.reduce((t,e)=>t||_n(e.id)==s&&n.filterRoot.includes(e.property),!1)))}var l=Math.random().toString(16);return _e(t=>Gn(Gn({},t),{},{executionGroup:l}),a)},Xn=t=>{var e=t.anyVals,r=t.callback,n=r.inputs,o=r.outputs,a=r.state,i=r.output,u=_e(zn,[...n,...o,...a]);return 0===o.length&&i&&u.push(i),Be(u,Array.isArray(e)?e:""===e?[]:[e]).join(",")};function Zn(t,e,r,n){return he(_e(e=>Vn(r,n,t,e),Pt(e)))}var to=(t,e,r)=>({callback:t,anyVals:r,resolvedId:t.output+r,getOutputs:r=>t.outputs.map(e(r)),getInputs:r=>t.inputs.map(e(r)),getState:r=>t.state.map(e(r)),changedPropIds:{},initialCall:!1});function eo(t,e){var r=Fn(Qe(t=>{var r=t.getOutputs,n=t.callback.outputs;return he(r(e)).length===n.length},t),2)[1],n=Fn(Qe(t=>{var r=t.getOutputs;return!he(r(e)).length},r),2)[1];return{added:_e(t=>$t("changedPropIds",er((t,r)=>rn(e,wn(r).id),t.changedPropIds),t),n),removed:r}}function ro(t,e,r){return n=>o=>{var a=o.id,i=o.property;if("string"==typeof a){var u=rn(n,a);return u?[{id:a,property:i,path:u}]:[]}var c=Object.keys(a).sort(),s=ne(c,a),l=c.join(","),f=n.objs[l];if(!f)return[];var p=[];return f.forEach(n=>{var o=n.values,a=n.path;Rn(c,o,s,t,e,r)&&p.push({id:nr(c,o),property:i,path:a})}),p}}var no={ON_PROP_CHANGE:1,SET_REQUEST_QUEUE:1,SET_GRAPHS:1,SET_PATHS:1,SET_LAYOUT:1,SET_APP_LIFECYCLE:1,SET_CONFIG:1,ADD_HTTP_HEADERS:1,ON_ERROR:1,SET_HOOKS:1,INSERT_COMPONENT:1,REMOVE_COMPONENT:1,RESET_COMPONENT_STATE:1},oo=t=>{if(no[t])return t;throw new Error("".concat(t," is not defined."))};function ao(t){var e={STARTED:"STARTED",HYDRATED:"HYDRATED",DESTROYED:"DESTROYED"};if(e[t])return e[t];throw new Error("".concat(t," is not a valid app state."))}var io,uo,co=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ao("STARTED"),e=arguments.length>1?arguments[1]:void 0;return e.type===oo("SET_APP_LIFECYCLE")?ao(e.payload):t};function so(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function lo(t){for(var e=1;e1?arguments[1]:void 0;return Re((t,e)=>null===e?t:e.type===uo.AddCompleted?((t,e)=>lo(lo({},t),{},{completed:t.completed+e.payload}))(t,e):((t,e)=>{var r=ho[e.type],n=yo[e.type];return r&&n&&0!==e.payload.length?lo(lo({},t),{},{[n]:r(t[n],e.payload)}):t})(t,e),arguments.length>0&&void 0!==arguments[0]?arguments[0]:po,t.type===uo.Aggregate?t.payload:[t])},bo=Dt(function t(e,r,n){return Zt(function(r,n,o){return Kt(n)&&Kt(o)?t(e,n,o):e(r,n,o)},r,n)}),mo=bo,go=yt(function(t,e){return mo(function(t,e,r){return r},t,e)});function wo(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1?arguments[1]:void 0;return e.type===oo("SET_CONFIG")?(window.__dashprivate_childrenProps=go(window.__dashprivate_childrenProps||{},e.payload.children_props),e.payload):e.type===oo("ADD_HTTP_HEADERS")?go(t,{fetch:{headers:e.payload}}):t}var Oo={},_o=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Oo,e=arguments.length>1?arguments[1]:void 0;return"SET_GRAPHS"===e.type?e.payload:t},jo={frontEnd:[],backEnd:[],backEndConnected:!0};function Eo(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:jo,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"ON_ERROR":var r=t.frontEnd,n=t.backEnd,o=t.backEndConnected;return console.error(e.payload.error),"frontEnd"===e.payload.type?{frontEnd:[Tr(e.payload,{timestamp:new Date}),...r],backEnd:n,backEndConnected:o}:"backEnd"===e.payload.type?{frontEnd:r,backEnd:[Tr(e.payload,{timestamp:new Date}),...n],backEndConnected:o}:t;case"SET_CONNECTION_STATUS":return Tr(t,{backEndConnected:e.payload});default:return t}}var So={past:[],present:{},future:[]},Po=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:So;switch((arguments.length>1?arguments[1]:void 0).type){case"UNDO":var e=t.past,r=t.present,n=t.future,o=e[e.length-1];return{past:e.slice(0,e.length-1),present:o,future:[r,...n]};case"REDO":var a=t.past,i=t.present,u=t.future;return{past:[...a,i],present:u[0],future:u.slice(1)};case"REVERT":var c=t.past,s=t.future,l=c[c.length-1];return{past:c.slice(0,c.length-1),present:l,future:[...s]};default:return t}},Ao=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{layout_pre:null,layout_post:null,request_pre:null,request_post:null,callback_resolved:null,request_refresh_jwt:null,bear:!1},e=arguments.length>1?arguments[1]:void 0;return"SET_HOOKS"===e.type?e.payload:t};function ko(t,e,r){if(r||(r=new xo),o=typeof(n=t),null==n||"object"!=o&&"function"!=o)return t;var n,o,a,i=function(n){var o=r.get(t);if(o)return o;for(var a in r.set(t,n),t)Object.prototype.hasOwnProperty.call(t,a)&&(n[a]=e?ko(t[a],!0,r):t[a]);return n};switch(At(t)){case"Object":return i(Object.create(Object.getPrototypeOf(t)));case"Array":return i(Array(t.length));case"Date":return new Date(t.valueOf());case"RegExp":return a=t,new RegExp(a.source,a.flags?a.flags:(a.global?"g":"")+(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.sticky?"y":"")+(a.unicode?"u":"")+(a.dotAll?"s":""));case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":return t.slice();default:return t}}var To,xo=function(){function t(){this.map={},this.length=0}return t.prototype.set=function(t,e){var r=this.hash(t),n=this.map[r];n||(this.map[r]=n=[]),n.push([t,e]),this.length+=1},t.prototype.hash=function(t){var e=[];for(var r in t)e.push(Object.prototype.toString.call(t[r]));return e.join()},t.prototype.get=function(t){if(this.length<=180){for(var e in this.map)for(var r=this.map[e],n=0;n0&&void 0!==arguments[0]?arguments[0]:qo,e=arguments.length>1?arguments[1]:void 0;if("UPDATE_RESOURCE_USAGE"===e.type){var r=e.payload,n=r.id,o=r.usage,a=r.status,i=Mo[a]||a,u={updated:[n],resources:t.resources,callbacks:t.callbacks,graphLayout:t.graphLayout};u.callbacks[n]=u.callbacks[n]||Co(Lo);var c=u.callbacks[n],s=c.resources,l=u.resources;if(c.count+=1,c.status.latest=i,c.status[i]=(c.status[i]||0)+1,c.result=e.payload.result,c.inputs=e.payload.inputs,c.state=e.payload.state,o){var f=o.__dash_client,p=o.__dash_server,d=o.__dash_upload,h=o.__dash_download,y=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(n=0;n0&&void 0!==arguments[0]?arguments[0]:Bo};!function(t){t.Set="IsLoading.Set"}(To||(To={}));var Ho=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=arguments.length>1?arguments[1]:void 0;return e.type===To.Set?e.payload:t},$o=function(t){return{value:t,"fantasy-land/map":function(){return this}}},Jo=yt(function(t,e){return t($o)(e).value}),Wo=yt(function(t,e){return function(r){return function(n){return _e(function(t){return e(t,n)},r(t(n)))}}}),zo=X(function(t){return Wo(function(e){return Lt(t,e)},Ht(t))}),Vo=Dt(function(t,e,r){var n=Array.prototype.slice.call(r,0);return n.splice(t,e),n}),Ko=yt(function t(e,r){if(null==r)return r;switch(e.length){case 0:return r;case 1:return function(t,e){if(null==e)return e;if(Nt(t)&&Bt(e))return Vo(t,1,e);var r={};for(var n in e)r[n]=e[n];return delete r[t],r}(e[0],r);default:var n=e[0],o=Array.prototype.slice.call(e,1);return null==r[n]?function(t,e){if(Nt(t)&&Bt(e))return[].concat(e);var r={};for(var n in e)r[n]=e[n];return r}(n,r):$t(n,t(o,r[n]),r)}});function Yo(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function Qo(t,e,r){return(e=function(t){var e=function(t){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Xo=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{components:[]},e=arguments.length>1?arguments[1]:void 0;if(e.type===oo("SET_LAYOUT"))return Array.isArray(e.payload)?t.components=[...e.payload]:t.components=function(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:Zo,e=arguments.length>1?arguments[1]:void 0;return e.type===oo("SET_PATHS")?e.payload:t},ea=yt(function(t,e){return Ko([t],e)});function ra(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"ADD_CALLBACK_JOB":return((t,e)=>$t(t.jobId,t,e))(e.payload,t);case"REMOVE_CALLBACK_JOB":return((t,e)=>ea(t,e))(e.payload.jobId,t);case"CALLBACK_JOB_OUTDATED":return((t,e)=>Ht([t,"outdated"],!0,e))(e.payload.jobId,t);default:return t}}function na(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"LOADED":return e.payload.reduce((t,e)=>{var r=[JSON.stringify(e.path)],n=Gt([],r,t);return Ht(r,n.filter(t=>t.property!==e.property),t)},t);case"LOADING":return e.payload.reduce((t,e)=>{var r=[JSON.stringify(e.path)],n=Gt([],r,t);return Rt(e,n)||n.push(e),Ht(r,n,t)},t);default:return t}}var oa=yt(function(t,e){return we(t+1,function(){var r=arguments[t];if(null!=r&&De(r[e]))return r[e].apply(r,Array.prototype.slice.call(arguments,0,t));throw new TypeError(Ge(r)+' does not have a method named "'+e+'"')})})(1,"join");function aa(t,r,n,o){var a=Tr(r,n);return Array.isArray(o)?e().createElement(t,a,...o):e().createElement(t,a,o)}function ia(t){return"Object"===At(t)&&Vr("type",t)&&Vr("namespace",t)&&Vr("props",t)}function ua(t){return oa(",",t)}function ca(t,e){return Vt(t,e.layout)}function sa(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;if(Rt(e.type,["UNDO_PROP_CHANGE","REDO_PROP_CHANGE","ON_PROP_CHANGE"])){var r=ua(e.payload.itempath),n=Gt(0,[r,"hash"],t);t=$t(r,{hash:n+1,changedProps:e.payload.props,renderType:e.payload.renderType},t)}else if("RESET_COMPONENT_STATE"===e.type){var o=e.payload.itempath;if(o){var a=ua(o);return Object.fromEntries(Object.entries(t).filter(t=>{return!(e=t,r=1,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,u=[],c=!0,s=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw o}}return u}}(e,r)||function(t,e){if(t){if("string"==typeof t)return sa(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?sa(t,e):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0].startsWith(a);var e,r}))}}return t};function pa(){var t={appLifecycle:co,callbacks:vo,config:wo,error:Eo,graphs:_o,history:Po,hooks:Ao,profile:Go,changed:Fo,isLoading:Ho,layout:Xo,paths:ta,layoutHashes:fa,loading:na};return zt(e=>{var r;t[e]=(r=e,function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,n=t;if(e.type===r){var o=e.payload,a=o.id,i={status:o.status,content:o.content};n=Array.isArray(a)?Ht(a,i,t):a?$t(a,i,t):Tr(t,i)}return n})},la),t.callbackJobs=ra,function(t){for(var e=Object.keys(t),r={},n=0;n{Vn(o,a,l,t).length&&(n.props[t]=s[t])})),n}function ha(t,e,r){return(e=function(t){var e=function(t){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class ya{constructor(t){ha(this,"_store",void 0),ha(this,"_unsubscribe",void 0),ha(this,"_observers",[]),ha(this,"observe",(t,e)=>{if("function"==typeof t){if(!Array.isArray(e))throw new Error("inputs must be an array");return this.add(t,e),()=>this.remove(t)}return this.add(t.observer,t.inputs),()=>this.remove(t.observer)}),ha(this,"setStore",t=>{this.__finalize__(),this.__init__(t)}),ha(this,"__finalize__",()=>{var t;return null===(t=this._unsubscribe)||void 0===t?void 0:t.call(this)}),ha(this,"__init__",t=>{this._store=t,t&&(this._unsubscribe=t.subscribe(this.notify)),this._observers.forEach(t=>{t.lastState=null})}),ha(this,"add",(t,e)=>this._observers.push({inputPaths:_e(t=>t.split("."),e),lastState:null,observer:t,triggered:!1})),ha(this,"notify",()=>{var t=this._store;if(t){var e=t.getState(),r=fe(t=>!t.triggered&&Rr(r=>Vt(r,e)!==Vt(r,t.lastState),t.inputPaths),this._observers);r.forEach(t=>{t.triggered=!0}),r.forEach(e=>{e.lastState=t.getState(),e.observer(t),e.triggered=!1})}}),ha(this,"remove",t=>this._observers.splice(this._observers.findIndex(e=>t===e.observer,this._observers),1)),this.__init__(t)}}var va=t=>{var e=t(),r=e.config,n=e.isLoading,o=null==r?void 0:r.update_title;o&&(n?document.title!==o&&(ba.title=document.title,document.title=o):document.title===o?document.title=ba.title:ba.title=document.title)},ba={inputs:["isLoading"],mutationObserver:void 0,observer:t=>{var e=t.getState,r=e().config;if(ba.config!==r){var n;ba.config=r,null===(n=ba.mutationObserver)||void 0===n||n.disconnect(),ba.mutationObserver=new MutationObserver(()=>va(e));var o=document.querySelector("title");o&&ba.mutationObserver.observe(o,{subtree:!0,childList:!0,attributes:!0,characterData:!0})}va(e)}},ma=ba,ga=X(function(t){var e=[];for(var r in t)mt(r,t)&&(e[e.length]=[r,t[r]]);return e}),wa=yt(function(t,e){for(var r={},n=0;n1?r-1:0),o=1;ot.length)&&(e=t.length);for(var r=0,n=Array(e);re===t||e.substr(0,n)===r}var Ua=t=>"U"===t?void 0:JSON.parse(t||null),La=t=>void 0===t?"U":JSON.stringify(t);class qa{constructor(t){this._name=t,this._storage=window[t]}hasItem(t){return null!==this._storage.getItem(Da+t)}getItem(t){return Ua(this._storage.getItem(Da+t))}_setItem(t,e){this._storage.setItem(Da+t,La(e))}setItem(t,e,r){try{this._setItem(t,e)}catch(e){r(Na("".concat(t," failed to save in ").concat(this._name,". Persisted props may be lost.")))}}removeItem(t){this._storage.removeItem(Da+t)}clear(t){for(var e=Ma(Da+(t||""),t?".":""),r=[],n=0;nthis._storage.removeItem(t),r)}}var Ga={memory:new class{constructor(){this._data={}}hasItem(t){return t in this._data}getItem(t){return Ua(this._data[t])}setItem(t,e){this._data[t]=La(e)}removeItem(t){delete this._data[t]}clear(t){t?zt(t=>delete this._data[t],fe(Ma(t,"."),Pt(this._data))):this._data={}}}},Ba={local:"localStorage",session:"sessionStorage"};function Fa(t,e){return Ga[t]||(Ga[t]=function(t,e){var r=new qa(t),n=Ga.memory,o=function(){for(var t="Spam",e=2;e<16;e++)t+=t;return t}(),a=Da+"x.x";try{return r._setItem(a,o),r.getItem(a)!==o?(e(Na("".concat(t," init failed set/get, falling back to memory"))),n):(r.removeItem(a),r)}catch(r){e(Na("".concat(t," init first try failed; clearing and retrying")))}try{if(r.clear(),r._setItem(a,o),r.getItem(a)!==o)throw new Error("nope");return r.removeItem(a),e(Na("".concat(t," init set/get succeeded after clearing!"))),r}catch(r){return e(Na("".concat(t," init still failed, falling back to memory"))),n}}(Ba[t],e)),Ga[t]}var Ha={extract:t=>t,apply:(t,e)=>t},$a=(t,e,r)=>t.persistenceTransforms&&t.persistenceTransforms[e]?r?t.persistenceTransforms[e][r]:t.persistenceTransforms[e]:Ha,Ja=(t,e,r)=>"".concat(_n(t),".").concat(e,".").concat(JSON.stringify(r)),Wa=t=>{var e=t.props,r=t.type,n=t.namespace;if(!r||!n)return{props:e};var o=e.id,a=e.persistence,i=nn(t),u=t=>e[t]||(i.defaultProps||i.dashPersistence||{})[t],c=u("persisted_props"),s=u("persistence_type");return{canPersist:o&&c&&s,id:o,props:e,element:i,persistence:a,persisted_props:c,persistence_type:s}};function za(t,e){return Array.isArray(t)?t.map(t=>ia(t)?Ka(t,t,[],e):t):Ka(t,t,[],e)}function Va(t,e,r,n,o,a,i){if(e.hasItem(t)){var u=Ia(e.getItem(t),2),c=u[0],s=u[1],l=i?c:s,f=i?s:c,p=Ia(o.split("."),2),d=p[0],h=p[1],y=$a(r,d,h);xt(l,y.extract(n[d]))?a[d]=y.apply(f,d in a?a[d]:n[d]):e.removeItem(t)}}function Ka(t,e,r,n){var o=Wa(e),a=o.canPersist,i=o.id,u=o.props,c=o.element,s=o.persistence,l=o.persisted_props,f=o.persistence_type,p=t;if(a&&s){var d=Fa(f,n),h={};for(var y in zt(t=>Va(Ja(i,t,s),d,c,u,t,h),l),h)p=Ca(zo(r.concat("props",y)),h[y],p)}var v=u.children;return Array.isArray(v)?v.forEach((t,e)=>{"Object"===At(t)&&t.props&&(p=Ka(p,t,r.concat("props","children",e),n))}):"Object"===At(v)&&v.props&&(p=Ka(p,v,r.concat("props","children"),n)),p}function Ya(){var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function a(r,n,o,a){var c=n&&n.prototype instanceof u?n:u,s=Object.create(c.prototype);return Qa(s,"_invoke",function(r,n,o){var a,u,c,s=0,l=o||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return a=e,u=0,c=t,p.n=r,i}};function d(r,n){for(u=r,c=n,e=0;!f&&s&&!o&&e3?(o=h===n)&&(c=a[(u=a[4])?5:(u=3,3)],a[4]=a[5]=t):a[0]<=d&&((o=r<2&&dn||n>h)&&(a[4]=r,a[5]=n,p.n=h,u=0))}if(o||r>1)return i;throw f=!0,n}return function(o,l,h){if(s>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),u=l,c=h;(e=u<2?t:c)||!f;){a||(u?u<3?(u>1&&(p.n=-1),d(u,c)):p.n=c:p.v=c);try{if(s=2,a){if(u||(o="next"),e=a[o]){if(!(e=e.call(a,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,u<2&&(u=0)}else 1===u&&(e=a.return)&&e.call(a),u<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),u=1);a=t}else if((e=(f=p.n<0)?c:r.call(n,p))!==i)break}catch(e){a=t,u=1,c=e}finally{s=1}}return{value:e,done:f}}}(r,o,a),!0),s}var i={};function u(){}function c(){}function s(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(Qa(e={},n,function(){return this}),e),f=s.prototype=u.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,Qa(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return c.prototype=s,Qa(f,"constructor",s),Qa(s,"constructor",c),c.displayName="GeneratorFunction",Qa(s,o,"GeneratorFunction"),Qa(f),Qa(f,o,"Generator"),Qa(f,n,function(){return this}),Qa(f,"toString",function(){return"[object Generator]"}),(Ya=function(){return{w:a,m:p}})()}function Qa(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}Qa=function(t,e,r,n){function a(e,r){Qa(t,e,function(t){return this._invoke(e,r,t)})}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))},Qa(t,e,r,n)}function Xa(t,e,r,n,o,a,i){try{var u=t[a](i),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}var Za=Pa(oo("ON_ERROR")),ti=Pa(oo("SET_APP_LIFECYCLE")),ei=Pa(oo("SET_CONFIG")),ri=Pa(oo("ADD_HTTP_HEADERS")),ni=Pa(oo("SET_GRAPHS")),oi=Pa(oo("SET_HOOKS")),ai=Pa(oo("SET_LAYOUT")),ii=Pa(oo("SET_PATHS")),ui=(Pa(oo("SET_REQUEST_QUEUE")),Pa(oo("INSERT_COMPONENT"))),ci=Pa(oo("REMOVE_COMPONENT")),si=Pa(oo("ON_PROP_CHANGE")),li=Pa(oo("RESET_COMPONENT_STATE"));function fi(t){return(e,r)=>{!function(t,e,r){var n=Wa(t),o=n.canPersist,a=n.id,i=n.props,u=n.element,c=n.persistence,s=n.persisted_props,l=n.persistence_type,f=void 0!==(null==e?void 0:e.persistence)&&e.persistence!==c;o&&c&&!f&&zt(t=>{var n=Ia(t.split("."),2),o=n[0],s=n[1];if(void 0!==e[o]){var f=Fa(l,r),p=$a(u,o,s).extract,d=Ja(a,t,c),h=p(i[o]),y=p(e[o]);if(h!==y){f.hasItem(d)&&(h=f.getItem(d)[1]);var v=void 0===h?[y]:[y,h];f.setItem(d,v,r)}}},s)}(Vt(t.itempath,r().layout),t.props,e),e(si(t))}}var pi=t=>(e,r)=>t(Za({type:"backEnd",error:{message:e,html:r.join("\n")}}));var di=tt(console.warn);function hi(t){try{var e=t&&t.csrf_token_name||"_csrf_token",r=t&&t.csrf_header_name||"X-CSRFToken",n=Aa.qg(document.cookie)[e];return n?{[r]:n}:{}}catch(t){return di(t),{}}}var yi=mi("REDO"),vi=mi("UNDO"),bi=mi("REVERT");function mi(t){return function(e,r){var n=r(),o=n.history,a=n.paths;e(Pa(t)());var i=("REDO"===t?o.future[0]:o.past[o.past.length-1])||{},u=i.id,c=i.props;u&&(e(Pa("UNDO_PROP_CHANGE")({itempath:rn(a,u),props:c})),e(gi({id:u,props:c})))}}function gi(t){var e=t.id,r=t.props;return function(){var t,n=(t=Ya().m(function t(n,o){var a,i,u;return Ya().w(function(t){for(;;)switch(t.n){case 0:a=o(),i=a.graphs,u=a.paths,n(Su(Zn(e,r,i,u)));case 1:return t.a(2)}},t)}),function(){var e=this,r=arguments;return new Promise(function(n,o){var a=t.apply(e,r);function i(t){Xa(a,n,o,i,u,"next",t)}function u(t){Xa(a,n,o,i,u,"throw",t)}i(void 0)})});return function(t,e){return n.apply(this,arguments)}}()}function wi(t,e,r){if(t&&"function"==typeof t.text)t.text().then(t=>{r(Za({type:"backEnd",error:{message:e,html:t}}))});else{var n=t instanceof Error?t:{message:e,html:t};r(Za({type:"backEnd",error:n}))}}var Oi=yt(function(t,e){return e instanceof t||null!=e&&(e.constructor===t||"Object"===t.name&&"object"==typeof e)}),_i=yt(function(t,e){return gr([t],e)}),ji=X(function(t){return Mt(t)?t.split("").reverse().join(""):Array.prototype.slice.call(t,0).reverse()});function Ei(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function Si(t){for(var e=1;e{var r=e.params,n=e.location;return Ht(n,r.value,t)},Merge:(t,e)=>{var r=Vt(e.location,t);return Ht(e.location,Si(Si({},r),e.params.value),t)},Extend:(t,e)=>{var r=Vt(e.location,t);return Ht(e.location,Be(r,e.params.value),t)},Delete:(t,e)=>Ko(e.location,t),Insert:(t,e)=>{var r=Vt(e.location,t);return Ht(e.location,Gr(ki(e.params.index,r),e.params.value,r),t)},Append:(t,e)=>{var r=Vt(e.location,t);return Ht(e.location,Kr(e.params.value,r),t)},Prepend:(t,e)=>{var r=Vt(e.location,t);return Ht(e.location,_i(e.params.value,r),t)},Add:(t,e)=>{var r=Vt(e.location,t);return Ht(e.location,r+e.params.value,t)},Sub:(t,e)=>{var r=Vt(e.location,t);return Ht(e.location,r-e.params.value,t)},Mul:(t,e)=>{var r=Vt(e.location,t);return Ht(e.location,r*e.params.value,t)},Div:(t,e)=>{var r=Vt(e.location,t);return Ht(e.location,r/e.params.value,t)},Clear:(t,e)=>{var r=Vt(e.location,t);return Ht(e.location,Yt(r),t)},Reverse:(t,e)=>{var r=Vt(e.location,t);return Ht(e.location,ji(r),t)},Remove:(t,e)=>{var r=Vt(e.location,t);return Ht(e.location,r.filter(t=>!xt(t,e.params.value)),t)}};function Ci(t,e){for(var r=t,n=0;n3?(o=h===n)&&(c=a[(u=a[4])?5:(u=3,3)],a[4]=a[5]=t):a[0]<=d&&((o=r<2&&dn||n>h)&&(a[4]=r,a[5]=n,p.n=h,u=0))}if(o||r>1)return i;throw f=!0,n}return function(o,l,h){if(s>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),u=l,c=h;(e=u<2?t:c)||!f;){a||(u?u<3?(u>1&&(p.n=-1),d(u,c)):p.n=c:p.v=c);try{if(s=2,a){if(u||(o="next"),e=a[o]){if(!(e=e.call(a,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,u<2&&(u=0)}else 1===u&&(e=a.return)&&e.call(a),u<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),u=1);a=t}else if((e=(f=p.n<0)?c:r.call(n,p))!==i)break}catch(e){a=t,u=1,c=e}finally{s=1}}return{value:e,done:f}}}(r,o,a),!0),s}var i={};function u(){}function c(){}function s(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(Di(e={},n,function(){return this}),e),f=s.prototype=u.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,Di(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return c.prototype=s,Di(f,"constructor",s),Di(s,"constructor",c),c.displayName="GeneratorFunction",Di(s,o,"GeneratorFunction"),Di(f),Di(f,o,"Generator"),Di(f,n,function(){return this}),Di(f,"toString",function(){return"[object Generator]"}),(Ri=function(){return{w:a,m:p}})()}function Di(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}Di=function(t,e,r,n){function a(e,r){Di(t,e,function(t){return this._invoke(e,r,t)})}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))},Di(t,e,r,n)}function Ni(t,e,r,n,o,a,i){try{var u=t[a](i),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}var Mi=tt(console.warn),Ui={GET:function(t,e,r,n){return fetch(t,go(e,{method:"GET",headers:hi(n)}))},POST:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return fetch(t,go(e,{method:"POST",headers:hi(arguments.length>3?arguments[3]:void 0),body:r?JSON.stringify(r):null}))}};function Li(t,e,r,n,o){return function(){var a,i=(a=Ri().m(function a(i,u){var c,s,l,f,p,d,h,y,v,b,m;return Ri().w(function(a){for(;;)switch(a.p=a.n){case 0:d=function(t){u().error.backEndConnected!==t&&i({type:"SET_CONNECTION_STATUS",payload:t})},c=u(),s=c.config,l=c.hooks,f=null,p="".concat(Qr(s)).concat(t),i({type:r,payload:{id:n,status:"loading"}}),a.p=1,y=0;case 2:if(!(y<=1)){a.n=11;break}return a.p=3,a.n=4,Ui[e](p,s.fetch,o,s);case 4:h=a.v,a.n=6;break;case 5:return a.p=5,a.v,console.log("fetch error",h),d(!1),a.a(2);case 6:if(401!==h.status&&400!==h.status){a.n=9;break}if(!l.request_refresh_jwt){a.n=9;break}return a.n=7,h.text();case 7:if(!a.v.includes(Io)){a.n=9;break}return a.n=8,l.request_refresh_jwt(s.fetch.headers.Authorization.substr(7));case 8:if(!(v=a.v)){a.n=9;break}return f={Authorization:"Bearer ".concat(v)},s=go(s,{fetch:{headers:f}}),a.a(3,10);case 9:return a.a(3,11);case 10:y++,a.n=2;break;case 11:if(b=h.headers.get("content-type"),f&&i(ri(f)),d(!0),!b||-1===b.indexOf("application/json")){a.n=12;break}return a.a(2,h.json().then(t=>(i({type:r,payload:{status:h.status,content:t,id:n}}),t)));case 12:return a.n=13,h.text();case 13:return m=a.v,Mi("Response is missing header: content-type: application/json"),a.a(2,i({type:r,payload:{id:n,status:h.status,content:m}}));case 14:a.p=14,wi(a.v,"Error from API call: "+t,i);case 15:return a.a(2)}},a,null,[[3,5],[1,14]])}),function(){var t=this,e=arguments;return new Promise(function(r,n){var o=a.apply(t,e);function i(t){Ni(o,r,n,i,u,"next",t)}function u(t){Ni(o,r,n,i,u,"throw",t)}i(void 0)})});return function(t,e){return i.apply(this,arguments)}}()}function qi(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function Gi(t){for(var e=1;e{n.onload=()=>{t()},n.onerror=t=>e(t)}),null==r||r.appendChild(n)}else if("_css_dist"===t.type){var o=document.createElement("link");o.href=t.url,o.rel="stylesheet",e=new Promise((t,e)=>{o.onload=()=>{t()},o.onerror=t=>e(t)}),null==r||r.appendChild(o)}return e}function Hi(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);rn.reduce((e,r,n)=>(e[r]=t.values[n],e),{})).filter(e=>xt(ea(r,e),ea(r,t)))}var Wi,zi=Pa("LOADING"),Vi=Pa("LOADED"),Ki=null;function Yi(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,u=[],c=!0,s=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw o}}return u}}(t,e)||Xi(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qi(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=Xi(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){u=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(u)throw a}}}}function Xi(t,e){if(t){if("string"==typeof t)return Zi(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Zi(t,e):void 0}}function Zi(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r3?(o=h===n)&&(c=a[(u=a[4])?5:(u=3,3)],a[4]=a[5]=t):a[0]<=d&&((o=r<2&&dn||n>h)&&(a[4]=r,a[5]=n,p.n=h,u=0))}if(o||r>1)return i;throw f=!0,n}return function(o,l,h){if(s>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),u=l,c=h;(e=u<2?t:c)||!f;){a||(u?u<3?(u>1&&(p.n=-1),d(u,c)):p.n=c:p.v=c);try{if(s=2,a){if(u||(o="next"),e=a[o]){if(!(e=e.call(a,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,u<2&&(u=0)}else 1===u&&(e=a.return)&&e.call(a),u<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),u=1);a=t}else if((e=(f=p.n<0)?c:r.call(n,p))!==i)break}catch(e){a=t,u=1,c=e}finally{s=1}}return{value:e,done:f}}}(r,o,a),!0),s}var i={};function u(){}function c(){}function s(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(eu(e={},n,function(){return this}),e),f=s.prototype=u.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,eu(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return c.prototype=s,eu(f,"constructor",s),eu(s,"constructor",c),c.displayName="GeneratorFunction",eu(s,o,"GeneratorFunction"),eu(f),eu(f,o,"Generator"),eu(f,n,function(){return this}),eu(f,"toString",function(){return"[object Generator]"}),(tu=function(){return{w:a,m:p}})()}function eu(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}eu=function(t,e,r,n){function a(e,r){eu(t,e,function(t){return this._invoke(e,r,t)})}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))},eu(t,e,r,n)}function ru(t,e,r,n,o,a,i){try{var u=t[a](i),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function nu(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var a=t.apply(e,r);function i(t){ru(a,n,o,i,u,"next",t)}function u(t){ru(a,n,o,i,u,"throw",t)}i(void 0)})}}function ou(t,e,r){return(e=function(t){var e=function(t){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}!function(t){t.CONNECT="connect",t.DISCONNECT="disconnect",t.CALLBACK_REQUEST="callback_request",t.GET_PROPS_RESPONSE="get_props_response",t.TAB_VISIBLE="tab_visible",t.CONNECTED="connected",t.DISCONNECTED="disconnected",t.CALLBACK_RESPONSE="callback_response",t.SET_PROPS="set_props",t.SET_PROPS_BATCH="set_props_batch",t.GET_PROPS_REQUEST="get_props_request",t.ERROR="error"}(Wi||(Wi={}));class au{constructor(){ou(this,"worker",null),ou(this,"rendererId",void 0),ou(this,"pendingCallbacks",new Map),ou(this,"requestCounter",0),ou(this,"isConnected",!1),ou(this,"connectionPromise",null),ou(this,"connectionResolve",null),ou(this,"onSetProps",null),ou(this,"onSetPropsBatch",null),ou(this,"onGetPropsRequest",null),ou(this,"onConnected",null),ou(this,"onDisconnected",null),ou(this,"onError",null),this.rendererId=(Ki||(Ki="undefined"!=typeof crypto&&crypto.randomUUID?crypto.randomUUID():"".concat(Date.now(),"-").concat(Math.random().toString(36).slice(2))),Ki)}connect(t,e,r,n){var o=this;return nu(tu().m(function a(){return tu().w(function(a){for(;;)switch(a.n){case 0:if(!o.worker){a.n=1;break}return a.a(2);case 1:return o.worker=new SharedWorker(t,{name:"dash-ws-worker"}),o.worker.port.onmessage=o.handleMessage.bind(o),o.connectionPromise=new Promise(t=>{o.connectionResolve=t}),o.worker.port.start(),o.worker.port.postMessage({type:Wi.CONNECT,rendererId:o.rendererId,payload:{serverUrl:e,inactivityTimeout:r,heartbeatInterval:n}}),a.n=2,o.connectionPromise;case 2:return a.a(2)}},a)}))()}disconnect(){this.worker&&(this.worker.port.postMessage({type:Wi.DISCONNECT,rendererId:this.rendererId}),this.worker.port.close(),this.worker=null),this.isConnected=!1,this.connectionPromise=null,this.connectionResolve=null;var t,e=Qi(this.pendingCallbacks);try{for(e.s();!(t=e.n()).done;)Yi(t.value,2)[1].resolve({status:"prevent_update"})}catch(t){e.e(t)}finally{e.f()}this.pendingCallbacks.clear()}ensureConnected(t){var e=this;return nu(tu().m(function r(){var n,o,a,i,u;return tu().w(function(r){for(;;)switch(r.n){case 0:if(!e.isConnected){r.n=1;break}return r.a(2);case 1:if(!e.connectionPromise){r.n=3;break}return r.n=2,e.connectionPromise;case 2:case 6:return r.a(2);case 3:if(null!==(n=t.websocket)&&void 0!==n&&n.url&&null!==(o=t.websocket)&&void 0!==o&&o.worker_url){r.n=4;break}throw new Error("WebSocket config not available");case 4:if("undefined"!=typeof SharedWorker){r.n=5;break}throw new Error("SharedWorker not supported");case 5:return a="https:"===window.location.protocol?"wss:":"ws:",i=window.location.host,u="".concat(a,"//").concat(i).concat(t.websocket.url),r.n=6,e.connect(t.websocket.worker_url,u,t.websocket.inactivity_timeout,t.websocket.heartbeat_interval)}},r)}))()}sendCallback(t){var e=this;return nu(tu().m(function r(){var n;return tu().w(function(r){for(;;)switch(r.n){case 0:if(!e.connectionPromise||e.isConnected){r.n=1;break}return r.n=1,e.connectionPromise;case 1:if(e.worker){r.n=2;break}throw new Error("Worker not connected");case 2:return n="".concat(e.rendererId,"-").concat(++e.requestCounter),r.a(2,new Promise((r,o)=>{e.pendingCallbacks.set(n,{resolve:r,reject:o}),e.worker.port.postMessage({type:Wi.CALLBACK_REQUEST,rendererId:e.rendererId,requestId:n,payload:t})}))}},r)}))()}sendGetPropsResponse(t,e){this.worker&&this.isConnected&&this.worker.port.postMessage({type:Wi.GET_PROPS_RESPONSE,rendererId:this.rendererId,requestId:t,payload:e})}get connected(){return this.isConnected}notifyTabVisible(){this.worker&&this.isConnected&&this.worker.port.postMessage({type:Wi.TAB_VISIBLE,rendererId:this.rendererId})}handleMessage(t){var e=t.data;switch(e.type){case Wi.CONNECTED:this.isConnected=!0,this.connectionResolve&&(this.connectionResolve(),this.connectionResolve=null),this.onConnected&&this.onConnected();break;case Wi.DISCONNECTED:this.isConnected=!1;var r,n,o=Qi(this.pendingCallbacks);try{for(o.s();!(r=o.n()).done;)Yi(r.value,2)[1].resolve({status:"prevent_update"})}catch(t){o.e(t)}finally{o.f()}this.pendingCallbacks.clear(),this.onDisconnected&&this.onDisconnected(null===(n=e.payload)||void 0===n?void 0:n.reason);break;case Wi.CALLBACK_RESPONSE:var a=e.requestId,i=this.pendingCallbacks.get(a);i&&(this.pendingCallbacks.delete(a),i.resolve(e.payload));break;case Wi.SET_PROPS:this.onSetProps&&this.onSetProps(e.payload);break;case Wi.SET_PROPS_BATCH:this.onSetPropsBatch&&this.onSetPropsBatch(e.payload);break;case Wi.GET_PROPS_REQUEST:this.onGetPropsRequest&&this.onGetPropsRequest(e.requestId,e.payload);break;case Wi.ERROR:var u,c;this.onError&&this.onError((null===(u=e.payload)||void 0===u?void 0:u.message)||"Unknown error",null===(c=e.payload)||void 0===c?void 0:c.code)}}}var iu=null;function uu(){return iu||(iu=new au),iu}function cu(t){var e;return!(null===(e=t.websocket)||void 0===e||!e.enabled||"undefined"==typeof SharedWorker)}function su(t){var e,r;return!(null===(e=t.websocket)||void 0===e||!e.url||null===(r=t.websocket)||void 0===r||!r.worker_url||"undefined"==typeof SharedWorker)}function lu(t){if(null!=t){var e=t["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}}}throw new TypeError(typeof t+" is not iterable")}function fu(){var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function a(r,n,o,a){var c=n&&n.prototype instanceof u?n:u,s=Object.create(c.prototype);return pu(s,"_invoke",function(r,n,o){var a,u,c,s=0,l=o||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return a=e,u=0,c=t,p.n=r,i}};function d(r,n){for(u=r,c=n,e=0;!f&&s&&!o&&e3?(o=h===n)&&(c=a[(u=a[4])?5:(u=3,3)],a[4]=a[5]=t):a[0]<=d&&((o=r<2&&dn||n>h)&&(a[4]=r,a[5]=n,p.n=h,u=0))}if(o||r>1)return i;throw f=!0,n}return function(o,l,h){if(s>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),u=l,c=h;(e=u<2?t:c)||!f;){a||(u?u<3?(u>1&&(p.n=-1),d(u,c)):p.n=c:p.v=c);try{if(s=2,a){if(u||(o="next"),e=a[o]){if(!(e=e.call(a,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,u<2&&(u=0)}else 1===u&&(e=a.return)&&e.call(a),u<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),u=1);a=t}else if((e=(f=p.n<0)?c:r.call(n,p))!==i)break}catch(e){a=t,u=1,c=e}finally{s=1}}return{value:e,done:f}}}(r,o,a),!0),s}var i={};function u(){}function c(){}function s(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(pu(e={},n,function(){return this}),e),f=s.prototype=u.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,pu(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return c.prototype=s,pu(f,"constructor",s),pu(s,"constructor",c),c.displayName="GeneratorFunction",pu(s,o,"GeneratorFunction"),pu(f),pu(f,o,"Generator"),pu(f,n,function(){return this}),pu(f,"toString",function(){return"[object Generator]"}),(fu=function(){return{w:a,m:p}})()}function pu(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}pu=function(t,e,r,n){function a(e,r){pu(t,e,function(t){return this._invoke(e,r,t)})}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))},pu(t,e,r,n)}function du(t,e,r,n,o,a,i){try{var u=t[a](i),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function hu(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var a=t.apply(e,r);function i(t){du(a,n,o,i,u,"next",t)}function u(t){du(a,n,o,i,u,"throw",t)}i(void 0)})}}function yu(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,u=[],c=!0,s=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw o}}return u}}(t,e)||function(t,e){if(t){if("string"==typeof t)return vu(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?vu(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vu(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r5&&void 0!==arguments[5]&&arguments[5],i="Input"===o?r.getInputs:r.getState,u=[],c=0,s=i(t).map((a,i)=>{var s=yu(Gu(t,a.map(t=>{var r=t.id,n=t.property,o=t.path;return{id:r,property:n,value:Vt([...o,"props",n],e)}}),n[i],r.anyVals,o),2),l=s[0],f=s[1];return Nn(n[i])&&!l.length&&c++,f&&u.push(f),l});if(u.length){if(a&&u.length+c===s.length)return null;Fu(u,t)}return s}function Fu(t,e){var r=t[0];throw-1!==r.indexOf("logged above")&&console.error(e.objs),new ReferenceError(r)}var Hu=t=>Array.isArray(t)?Ve("value",t):t.value,$u=(t,e)=>Array.isArray(t)?e===window.dash_clientside.no_update?sr(t,[e]):sr(t,e):[[t,e]];function Ju(t){return t.split("@")[0]}function Wu(t,e,r,n){return zu.apply(this,arguments)}function zu(){return zu=hu(fu().m(function t(e,r,n,o){var a,i,u,c,s,l,f,p,d,h,y,v,b,m,g,w,O;return fu().w(function(t){for(;;)switch(t.p=t.n){case 0:if((a=window.dash_clientside=window.dash_clientside||{}).no_update||(Object.defineProperty(a,"no_update",{value:{description:"Return to prevent updating an Output."},writable:!1}),Object.defineProperty(a,"PreventUpdate",{value:{description:"Throw to prevent updating all Outputs."},writable:!1})),i=o.inputs,u=o.outputs,c=o.state,s=Date.now(),l=Xu(i),f=Xu(c),p={},d=Ro,t.p=1,y=r.namespace,v=r.function_name,b=i.map(Hu),c&&(b=Be(b,c.map(Hu))),a.callback_context={},a.callback_context.triggered=o.changedPropIds.map(t=>({prop_id:t,value:l[t]})),a.callback_context.triggered_id=Zu(o.changedPropIds),a.callback_context.inputs_list=i,a.callback_context.inputs=l,a.callback_context.states_list=c,a.callback_context.states=f,a.callback_context.outputs_list=u,m=a[y][v](...b),delete a.callback_context,"function"!=typeof(null===(h=m)||void 0===h?void 0:h.then)){t.n=3;break}return t.n=2,m;case 2:m=t.v;case 3:u&&$u(u,m).forEach(t=>{var e=yu(t,2),r=e[0],n=e[1];$u(r,n).forEach(t=>{var e=yu(t,2),r=e[0],n=e[1],o=r.id,i=r.property,u=_n(o),c=p[u]=p[u]||{};n!==a.no_update&&(c[Ju(i)]=n)})}),t.n=6;break;case 4:if(t.p=4,(O=t.v)!==a.PreventUpdate){t.n=5;break}d=Do,t.n=6;break;case 5:throw d="CLIENTSIDE_ERROR",O;case 6:return t.p=6,delete a.callback_context,g=Date.now()-s,w={__dash_server:g,__dash_client:g,__dash_upload:0,__dash_download:0},n.ui&&e(Mu({id:o.output,usage:w,status:d,result:p,inputs:i,state:c})),t.f(6);case 7:return t.a(2,p)}},t,null,[[1,4,6,7]])})),zu.apply(this,arguments)}function Vu(t,e){return function(r,n){ga(t).reduce((t,r,o)=>{var a,i=yu(r,2),u=i[0],c=i[1],s=u,l=[];if(u.startsWith("{")){var f=yu($i(u),2);s=f[0],a=f[1],l=function(t,e,r,n){var o=[],a={};return ga(t).forEach(i=>{var u,c,s=(c=2,function(t){if(Array.isArray(t))return t}(u=i)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,u=[],c=!0,s=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw o}}return u}}(u,c)||function(t,e){if(t){if("string"==typeof t)return Hi(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Hi(t,e):void 0}}(u,c)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l=s[0],f=s[1];if(!o.length)if(Array.isArray(f)){var p=(e.parsedChangedPropsIds[r]||e.parsedChangedPropsIds[0])[l];f.includes("MATCH")?a[l]=p:f.includes("ALL")?o=Ji(t,n(),l):f.includes("ALLSMALLER")&&(o=Ji(t,n(),l).filter(t=>t[l]{t.push([e,d])}),t},[]).forEach(t=>{var o,a=yu(t,2),i=a[0],u=a[1],c=n(),s=rn(c.paths,i),l={props:{}};s&&(l=ca(s,c));var f=Ii(u,(null===(o=l)||void 0===o?void 0:o.props)||{});r(function(t,e,r){return function(n,o){var a=o(),i=a.paths,u=a.config,c=rn(i,t);c?(n(fi({props:e,itempath:c,renderType:"callback"})),n(gi({id:t,props:e}))):u.suppress_callback_exceptions||pi(n)("ID running component not found in layout",["Component defined in running keyword not found in layout.",'Component id: "'.concat(_n(t),'"'),"This ID was used in the callback(s) for Output(s):","".concat(r.output),"You can suppress this exception by setting","`suppress_callback_exceptions=True`."])}}(i,f,e)),s&&r(ii(en(mu(mu({},l),{},{props:mu(mu({},l.props),f)}),[...s],c.paths,c.paths.events)))})}}function Ku(t,e,r,n,o,a,i,u){e.request_pre&&e.request_pre(n);var c,s,l,f,p=Date.now(),d=JSON.stringify(n),h=a;return u&&(t(Vu(u.running,n)),l=u.runningOff),new Promise((a,u)=>{var y=h=>{var y=h.status;if(s){var v=i().callbackJobs[s];if(null!=v&&v.outdated)return t(Lu({jobId:s})),a({})}function m(e){if(r.ui){var o={__dash_server:0,__dash_client:Date.now()-p,__dash_upload:d.length,__dash_download:Number(h.headers.get("Content-Length"))};(h.headers.get("Server-Timing")||"").split(",").forEach(t=>{var e=t.split(";")[0],r=t.match(/;dur=[0-9.]+/);r&&(o[e]=Number(r[0].slice(5)))}),t(Mu({id:n.output,usage:o,status:y,result:e,inputs:n.inputs,state:n.state}))}}var g=t=>{var r,o=t.multi,i=t.response;if(e.request_post&&e.request_post(n,i),o)r=i;else{var u=n.output,c=u.substr(0,u.lastIndexOf("."));r={[c]:i.props}}m(r),a(r)},w=()=>{s&&t(Lu({jobId:s})),l&&t(Vu(l,n)),f&&t(Vu(f,n))};y===Ro?h.json().then(e=>{if(!c&&e.cacheKey&&(c=e.cacheKey),!s&&e.job){var r={jobId:e.job,cacheKey:e.cacheKey,cancelInputs:e.cancel,progressDefault:e.progressDefault,output:JSON.stringify(n.outputs)};t(Uu(r)),s=e.job}e.sideUpdate&&t(Vu(e.sideUpdate,n)),e.progress&&t(Vu(e.progress,n)),!f&&e.progressDefault&&(f=e.progressDefault),o&&void 0===e.response?setTimeout(b,void 0!==o.interval?o.interval:500):e.dist?Promise.all(e.dist.map(Fi)).then(()=>{w(),g(e)}):(w(),g(e))}):y===Do?(w(),m({}),a({})):(w(),u(h))},v=()=>{r.ui&&t(Mu({id:n.output,status:No,result:{},inputs:n.inputs,state:n.state})),u(new Error("Callback failed: the server did not respond."))},b=()=>{(()=>{var t=hi(r),e="".concat(Qr(r),"_dash-update-component"),n=d,o=(t,r)=>{var n="?";e.includes("?")&&(n="&"),e="".concat(e).concat(n).concat(t,"=").concat(r)};if(c||s){c&&o("cacheKey",c),s&&o("job",s);for(var a=JSON.parse(n),i=0;i{var e=yu(t,2),r=e[0],n=e[1];return o(r,n)}),h=h.filter(t=>{var e=yu(t,3);return e[0],e[1],!e[2]})),fetch(e,go(r.fetch,{method:"POST",headers:t,body:n}))})().then(y,v)};b()})}function Yu(t,e,r,n,o){return Qu.apply(this,arguments)}function Qu(){return Qu=hu(fu().m(function t(e,r,n,o,a){var i,u,c,s,l,f,p,d,h,y,v,b,m,g;return fu().w(function(t){for(;;)switch(t.p=t.n){case 0:return r.request_pre&&r.request_pre(o),i=Date.now(),a&&(e(Vu(a.running,o)),u=a.runningOff),c=uu(),t.p=1,t.n=2,c.ensureConnected(n);case 2:return t.n=3,c.sendCallback(o);case 3:if(s=t.v,u&&e(Vu(u,o)),"prevent_update"!==s.status){t.n=4;break}return n.ui&&(l=Date.now()-i,e(Mu({id:o.output,usage:{__dash_server:l,__dash_client:l,__dash_upload:0,__dash_download:0},status:Do,result:{},inputs:o.inputs,state:o.state}))),t.a(2,{});case 4:if("error"!==s.status){t.n=5;break}throw new Error(s.message||"Callback error");case 5:return null!=(f=s.data)&&f.sideUpdate&&e(Vu(f.sideUpdate,o)),h=(d=f||{}).multi,y=d.response,r.request_post&&r.request_post(o,y),h?p=y:(v=o.output,b=v.substr(0,v.lastIndexOf(".")),p={[b]:null==y?void 0:y.props}),n.ui&&(m=Date.now()-i,e(Mu({id:o.output,usage:{__dash_server:m,__dash_client:m,__dash_upload:0,__dash_download:0},status:Ro,result:p||{},inputs:o.inputs,state:o.state}))),t.a(2,p||{});case 6:throw t.p=6,g=t.v,u&&e(Vu(u,o)),n.ui&&e(Mu({id:o.output,status:No,result:{},inputs:o.inputs,state:o.state})),g;case 7:return t.a(2)}},t,null,[[1,6]])})),Qu.apply(this,arguments)}function Xu(t){if(!t)return{};for(var e={},r=0;r{var n=yu(Gu(o,_e(wa(["id","property"]),e),t.callback.outputs[r],t.anyVals,"Output"),2),a=n[0],i=n[1];m.push(a),i&&g.push(i)}),g.length)return he(b).length&&Fu(g,o),mu(mu({},t),{},{executionPromise:null});var w=function(){var i=hu(fu().m(function i(){var s,l,p,g,w,O,_,j,E,S,P,A,k,T,x,C,I;return fu().w(function(i){for(;;)switch(i.p=i.n){case 0:if(s=he(m).map(t=>{var e;return{path:rn(o,t.id),property:null===(e=t.property)||void 0===e?void 0:e.split("@")[0],id:_n(t.id)}}),u(zi(s)),i.p=1,l=Pt(t.changedPropIds),p=l.map(t=>t.startsWith("{")?$i(t)[0]:t),g={output:f,outputs:pn(f)?m:m[0],inputs:b,changedPropIds:l,parsedChangedPropsIds:p,state:t.callback.state.length?Bu(o,a,t,d,"State"):void 0},!h){i.n=5;break}return i.p=2,i.n=3,Wu(u,h,e,g);case 3:return w=i.v,O=c().layout,he(m).forEach(t=>{var e=Ju(t.property),r=rn(o,t.id),n=[_n(t.id),e],a=Vt(n,w);if(void 0!==a){var i=Vt(r.concat(["props"]),O)||{},u=Ii({[e]:a},i);w=Ht(n,u[e],w)}}),i.a(2,{data:w,payload:g});case 4:return i.p=4,C=i.v,i.a(2,{error:C,payload:g});case 5:_=e,j=null,S=[],P=JSON.stringify(g.outputs),br(c().callbackJobs).forEach(e=>{P===e.output&&(S.push(["oldJob",e.jobId,!0]),u(qu({jobId:e.jobId}))),e.cancelInputs&&vr(e.cancelInputs,t.callback.inputs).length&&(S.push(["cancelJob",e.jobId]),e.progressDefault&&u(Vu(e.progressDefault,g)))}),A=!y&&(cu(e)||t.callback.websocket&&su(e)),k=fu().m(function a(){var i,s,l,f,p;return fu().w(function(a){for(;;)switch(a.p=a.n){case 0:if(a.p=0,!A){a.n=2;break}return a.n=1,Yu(u,r,_,g,t.callback.running);case 1:i=a.v,a.n=4;break;case 2:return a.n=3,Ku(u,r,_,g,y,S.length?S:void 0,c,t.callback.running);case 3:i=a.v;case 4:return j&&u(ri(j)),s=c().layout,he(m).forEach(t=>{var e=Ju(t.property),r=rn(o,t.id),n=[_n(t.id),e],a=Vt(n,i);if(void 0!==a){var u=Vt(r.concat(["props"]),s)||{},c=Ii({[e]:a},u);i=Ht(n,c[e],i)}}),v&&setTimeout(()=>u((t,e)=>{(0,n.unstable_batchedUpdates)(()=>{var r=e().graphs;t(ni(Gi(Gi({},r),{},{reset:!0}))),t(Li("_dash-dependencies","GET","dependenciesRequest"))})}),0),a.a(2,{v:{data:i,payload:g}});case 5:if(a.p=5,p=a.v,E=p,!(x<=1)||401!==p.status&&400!==p.status){a.n=8;break}return a.n=6,p.text();case 6:if(!a.v.includes(Io)){a.n=8;break}if(null===r.request_refresh_jwt){a.n=8;break}return l=null,e.fetch.headers.Authorization&&(l=e.fetch.headers.Authorization.substr(7)),a.n=7,r.request_refresh_jwt(l);case 7:if(!(f=a.v)){a.n=8;break}return j={Authorization:"Bearer ".concat(f)},_=go(e,{fetch:{headers:j}}),a.a(2,0);case 8:return a.a(2,1)}},a,null,[[0,5]])}),x=0;case 6:if(!(x<=1)){i.n=11;break}return i.d(lu(k()),7);case 7:if(0!==(T=i.v)){i.n=8;break}return i.a(3,10);case 8:if(1!==T){i.n=9;break}return i.a(3,11);case 9:if(!T){i.n=10;break}return i.a(2,T.v);case 10:x++,i.n=6;break;case 11:return i.a(2,{error:E,payload:null});case 12:return i.p=12,I=i.v,i.a(2,{error:I,payload:null});case 13:return i.p=13,u(Vi(s)),i.f(13);case 14:return i.a(2)}},i,null,[[2,4],[1,12,13,14]])}));return function(){return i.apply(this,arguments)}}();return mu(mu({},t),{},{executionPromise:w()})}catch(e){return mu(mu({},t),{},{executionPromise:{error:e,payload:null}})}}function ec(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function rc(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=Array(e);r{var e=t.dispatch,r=t.getState,n=r().callbacks.executed;var o=[],a=[];n.forEach(t=>{var n,i=Be(null!==(n=t.predecessors)&&void 0!==n?n:[],[t.callback]),u=t.callback,c=u.clientside_function,s=u.output,l=t.executionResult;if(!Ft(l)){var f=l.data,p=l.error,d=l.payload;if(void 0!==f&&(Object.entries(f).forEach(t=>{var n=oc(t,2),a=n[0],u=n[1],c=On(a),s=r(),l=s.graphs,f=s.layout,p=s.paths,d=function(t,n){var o=r(),a=o.layout,i=rn(o.paths,t);if(!i)return!1;n=function(t,e,r){var n=Wa(t),o=n.canPersist,a=n.id,i=n.props,u=n.persistence,c=n.persisted_props,s=n.persistence_type,l=n.element,f=(t,r)=>t in e?e[t]:r,p=f("persistence",u);if(!o||!u&&!p)return e;var d=f("persistence_type",s),h=f("persisted_props",c),y=p!==u||d!==s||h!==c,v=t=>!(t.split(".")[0]in e),b={},m=i;if(y&&u){var g=Fa(s,r);zt(t=>Va(Ja(a,t,u),g,l,i,t,b,!0),fe(v,c)),m=Tr(i,b)}if(p&&y){var w=Fa(d,r);zt(t=>Va(Ja(a,t,p),w,l,m,t,b),fe(v,h))}return y?Tr(e,b):e}(Vt(i,a),n,e);var u=za({props:n},e).props;return e(fi({itempath:i,props:u,source:"response",renderType:"callback"})),u}(c,u);o=Be(o,he(_e(t=>Vn(l,p,c,t,!0),Pt(u))).map(t=>rc(rc({},t),{},{predecessors:i})));var h=rn(p,c);if(h){var y=Vt(h,f),v=Gt("defaultValue",[y.namespace,y.type],window.__dashprivate_childrenProps),b=function(t,n,a){var u=arguments.length>3&&void 0!==arguments[3]&&arguments[3],c=en(t,a,r().paths);e(ii(c)),o=Be(o,Qn(l,c,t,{chunkPath:a,filterRoot:u}).map(t=>rc(rc({},t),{},{predecessors:i}))),o=Be(o,Qn(l,p,n,{removedArrayInputsOnly:!0,newPaths:c,chunkPath:a,filterRoot:u}).map(t=>rc(rc({},t),{},{predecessors:i})))},m=!1;["children"].concat(v).forEach(t=>{if(!m)if(t.includes("[]")){var e=oc(t.split("[]").map(t=>t.split(".").filter(t=>t)),1)[0];if(!Vt(e,d))return;b(rc(rc({},y),{},{props:rc(rc({},y.props),d)}),y,h,Pt(d)),m=!0}else{var r=t.split("."),n=Vt(r,d);if(!n)return;var o=Be(rn(p,c),["props"].concat(r)),a=Vt(o,f);b(n,a,o)}});var g=er((t,e)=>!(e in u),d);if(!Qt(g)){var w=r(),O=w.graphs,_=w.paths;o=Be(o,Zn(a,g,O,_).map(t=>rc(rc({},t),{},{predecessors:i})))}}}),a.push(rc(rc({},t),{},{executionMeta:{allProps:_e(zn,he(t.getOutputs(r().paths))),updatedProps:he(_e(t=>{var e=oc(t,2),r=e[0],n=e[1];return _e(t=>zn({id:r,property:t}),Pt(n))},ga(f)))}}))),void 0!==p){var h;if(t.callback.no_output){var y=Pt(t.changedPropIds).join(", ");h="Callback error with no output from input ".concat(y)}else{var v=d?_e(zn,he([d.outputs])).join(", "):s;h="Callback error updating ".concat(v)}if(c){var b=c.namespace,m=c.function_name;h+=" via clientside function ".concat(b,".").concat(m)}wi(p,h,e),a.push(rc(rc({},t),{},{executionMeta:{allProps:_e(zn,he(t.getOutputs(r().paths))),updatedProps:[]}}))}}}),e(Nu([n.length?ku(n):null,n.length?Ou(n.length):null,a.length?Pu(a):null,o.length?Su(o):null]))},inputs:["callbacks.executed"]},uc=ic;function cc(){var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function a(r,n,o,a){var c=n&&n.prototype instanceof u?n:u,s=Object.create(c.prototype);return sc(s,"_invoke",function(r,n,o){var a,u,c,s=0,l=o||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return a=e,u=0,c=t,p.n=r,i}};function d(r,n){for(u=r,c=n,e=0;!f&&s&&!o&&e3?(o=h===n)&&(c=a[(u=a[4])?5:(u=3,3)],a[4]=a[5]=t):a[0]<=d&&((o=r<2&&dn||n>h)&&(a[4]=r,a[5]=n,p.n=h,u=0))}if(o||r>1)return i;throw f=!0,n}return function(o,l,h){if(s>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),u=l,c=h;(e=u<2?t:c)||!f;){a||(u?u<3?(u>1&&(p.n=-1),d(u,c)):p.n=c:p.v=c);try{if(s=2,a){if(u||(o="next"),e=a[o]){if(!(e=e.call(a,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,u<2&&(u=0)}else 1===u&&(e=a.return)&&e.call(a),u<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),u=1);a=t}else if((e=(f=p.n<0)?c:r.call(n,p))!==i)break}catch(e){a=t,u=1,c=e}finally{s=1}}return{value:e,done:f}}}(r,o,a),!0),s}var i={};function u(){}function c(){}function s(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(sc(e={},n,function(){return this}),e),f=s.prototype=u.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,sc(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return c.prototype=s,sc(f,"constructor",s),sc(s,"constructor",c),c.displayName="GeneratorFunction",sc(s,o,"GeneratorFunction"),sc(f),sc(f,o,"Generator"),sc(f,n,function(){return this}),sc(f,"toString",function(){return"[object Generator]"}),(cc=function(){return{w:a,m:p}})()}function sc(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}sc=function(t,e,r,n){function a(e,r){sc(t,e,function(t){return this._invoke(e,r,t)})}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))},sc(t,e,r,n)}function lc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function fc(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=Array(e);r{var e,r,n=t.dispatch,o=t.getState,a=o().callbacks.executing,i=(e=Qe(t=>t.executionPromise instanceof Promise,a),r=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,u=[],c=!0,s=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw o}}return u}}(e,r)||function(t,e){if(t){if("string"==typeof t)return hc(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?hc(t,e):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=i[0],c=i[1];n(Nu([a.length?xu(a):null,u.length?Au(u):null,c.length?_u(c.map(t=>$t("executionResult",t.executionPromise,t))):null])),u.forEach(function(){var t,e=(t=cc().m(function t(e){var r,a,i,u,c,s;return cc().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,e.executionPromise;case 1:if(r=t.v,a=o(),i=a.callbacks.watched,u=a.appLifecycle,c=a.hooks.callback_resolved,u===ao("HYDRATED")){t.n=2;break}return t.a(2);case 2:if(c&&c(e.callback,r),s=$r(t=>t===e||t.executionPromise===e.executionPromise,i)){t.n=3;break}return t.a(2);case 3:n(Nu([Du([s]),_u([fc(fc({},s),{},{executionResult:r})])]));case 4:return t.a(2)}},t)}),function(){var e=this,r=arguments;return new Promise(function(n,o){var a=t.apply(e,r);function i(t){dc(a,n,o,i,u,"next",t)}function u(t){dc(a,n,o,i,u,"throw",t)}i(void 0)})});return function(t){return e.apply(this,arguments)}}())},inputs:["callbacks.executing"]},vc=yt(function(t,e){for(var r={},n={},o=0,a=t.length;oArray().concat(...br(vc(["stored","completed"],t))),mc=Pa(To.Set),gc={observer:t=>{var e=t.dispatch,r=(0,t.getState)(),n=r.callbacks,o=r.isLoading,a=bc(n).filter(t=>!t.callback.persistent),i=Boolean(a.length);o!==i&&e(mc(i))},inputs:["callbacks"]},wc=gc,Oc=yt(function(t,e){return Array.prototype.slice.call(e,0).sort(t)}),_c=r(296),jc=(t,e,r)=>{if(!r.length)return!0;var n=[],o=e.events,a=new Promise(t=>{o.once("rendered",t)});return r.forEach(r=>{var o=rn(e,r);if(o){var i=Vt(o,t);if(i){var u=nn(i),c=(0,_c.isReady)(u);c&&"function"==typeof c.then&&n.push(Promise.race([c,a.then(()=>document.getElementById(_n(r))&&c)]))}}}),!n.length||Promise.all(n)};function Ec(){var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function a(r,n,o,a){var c=n&&n.prototype instanceof u?n:u,s=Object.create(c.prototype);return Sc(s,"_invoke",function(r,n,o){var a,u,c,s=0,l=o||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return a=e,u=0,c=t,p.n=r,i}};function d(r,n){for(u=r,c=n,e=0;!f&&s&&!o&&e3?(o=h===n)&&(c=a[(u=a[4])?5:(u=3,3)],a[4]=a[5]=t):a[0]<=d&&((o=r<2&&dn||n>h)&&(a[4]=r,a[5]=n,p.n=h,u=0))}if(o||r>1)return i;throw f=!0,n}return function(o,l,h){if(s>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),u=l,c=h;(e=u<2?t:c)||!f;){a||(u?u<3?(u>1&&(p.n=-1),d(u,c)):p.n=c:p.v=c);try{if(s=2,a){if(u||(o="next"),e=a[o]){if(!(e=e.call(a,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,u<2&&(u=0)}else 1===u&&(e=a.return)&&e.call(a),u<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),u=1);a=t}else if((e=(f=p.n<0)?c:r.call(n,p))!==i)break}catch(e){a=t,u=1,c=e}finally{s=1}}return{value:e,done:f}}}(r,o,a),!0),s}var i={};function u(){}function c(){}function s(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(Sc(e={},n,function(){return this}),e),f=s.prototype=u.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,Sc(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return c.prototype=s,Sc(f,"constructor",s),Sc(s,"constructor",c),c.displayName="GeneratorFunction",Sc(s,o,"GeneratorFunction"),Sc(f),Sc(f,o,"Generator"),Sc(f,n,function(){return this}),Sc(f,"toString",function(){return"[object Generator]"}),(Ec=function(){return{w:a,m:p}})()}function Sc(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}Sc=function(t,e,r,n){function a(e,r){Sc(t,e,function(t){return this._invoke(e,r,t)})}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))},Sc(t,e,r,n)}function Pc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function Ac(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=Array(e);r{var r,n;return(null!==(r=t.priority)&&void 0!==r?r:"")>(null!==(n=e.priority)&&void 0!==n?n:"")?-1:1},Dc=(t,e)=>{var r=(0,t.getOutputs)(e),n=he(r),o=[],a={};return n.forEach(t=>{var e=t.id,r=t.property,n=_n(e);(a[n]=a[n]||[]).push(r),o.push(zn({id:n,property:r}))}),{allOutputs:r,allPropIds:o}},Nc=(t,e)=>{var r=[...he(t.getInputs(e)),...he(t.getState(e))],n=new Map(r.map(t=>[_n(t.id),t]));return Array.from(n.values())},Mc={observer:function(){var t=Ic(Ec().m(function t(e){var r,n,o,a,i,u,c,s,l,f,p,d,h,y,v,b,m,g,w,O,_;return Ec().w(function(t){for(;;)switch(t.n){case 0:if(r=e.dispatch,n=e.getState,o=n(),a=o.callbacks,i=a.executing,u=a.watched,c=o.config,s=o.hooks,l=o.layout,f=o.paths,p=o.appLifecycle,d=n(),h=d.callbacks.prioritized,p===ao("HYDRATED")){t.n=1;break}return t.a(2);case 1:y=Math.max(0,12-i.length-u.length),h=Oc(Rc,h),v=Qe(t=>!0===jc(l,f,Nc(t,f)),h),b=Tc(v,2),m=b[0],g=b[1],w=m.slice(0,y),O=g.slice(0,y-w.length),w.length&&r(Nu([Cu(w),ju(_e(t=>tc(t,c,s,f,l,Dc(t,f),r,n),w))])),O.length&&(_=_e(t=>Ac(Ac(Ac({},t),Dc(t,f)),{},{isReady:jc(l,f,Nc(t,f))}),O),r(Nu([Cu(O),wu(_)])),_.forEach(function(){var t=Ic(Ec().m(function t(e){var o,a,i;return Ec().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,e.isReady;case 1:if(o=n(),a=o.callbacks.blocked,$r(t=>t===e||t.isReady===e.isReady,a)){t.n=2;break}return t.a(2);case 2:i=tc(e,c,s,f,l,e,r,n),r(Nu([Tu([e]),ju([i])]));case 3:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}()));case 2:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}(),inputs:["callbacks.prioritized","callbacks.completed"]},Uc=Mc,Lc=function(){function t(t,e,r,n){this.valueFn=t,this.valueAcc=e,this.keyFn=r,this.xf=n,this.inputs={}}return t.prototype["@@transducer/init"]=ue,t.prototype["@@transducer/result"]=function(t){var e;for(e in this.inputs)if(mt(e,this.inputs)&&(t=this.xf["@@transducer/step"](t,this.inputs[e]))["@@transducer/reduced"]){t=t["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,e){var r=this.keyFn(e);return this.inputs[r]=this.inputs[r]||[r,ko(this.valueAcc,!1)],this.inputs[r][1]=this.valueFn(this.inputs[r][1],e),t},t}();function qc(t,e,r){return function(n){return new Lc(t,e,r,n)}}var Gc=yt(Jt("groupBy",me(4,[],ae([],qc,function(t,e,r,n){var o=Ie(function(n,o){var a=r(o),i=t(mt(a,n)?n[a]:ko(e,!1),o);return i&&i["@@transducer/reduced"]?Fe(n):(n[a]=i,n)});return xe(o,{},n)}))(function(t,e){return t.push(e),t},[]))),Bc=yt(function(t,e){return kr({},e,t)});function Fc(){var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function a(r,n,o,a){var c=n&&n.prototype instanceof u?n:u,s=Object.create(c.prototype);return Hc(s,"_invoke",function(r,n,o){var a,u,c,s=0,l=o||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return a=e,u=0,c=t,p.n=r,i}};function d(r,n){for(u=r,c=n,e=0;!f&&s&&!o&&e3?(o=h===n)&&(c=a[(u=a[4])?5:(u=3,3)],a[4]=a[5]=t):a[0]<=d&&((o=r<2&&dn||n>h)&&(a[4]=r,a[5]=n,p.n=h,u=0))}if(o||r>1)return i;throw f=!0,n}return function(o,l,h){if(s>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),u=l,c=h;(e=u<2?t:c)||!f;){a||(u?u<3?(u>1&&(p.n=-1),d(u,c)):p.n=c:p.v=c);try{if(s=2,a){if(u||(o="next"),e=a[o]){if(!(e=e.call(a,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,u<2&&(u=0)}else 1===u&&(e=a.return)&&e.call(a),u<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),u=1);a=t}else if((e=(f=p.n<0)?c:r.call(n,p))!==i)break}catch(e){a=t,u=1,c=e}finally{s=1}}return{value:e,done:f}}}(r,o,a),!0),s}var i={};function u(){}function c(){}function s(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(Hc(e={},n,function(){return this}),e),f=s.prototype=u.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,Hc(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return c.prototype=s,Hc(f,"constructor",s),Hc(s,"constructor",c),c.displayName="GeneratorFunction",Hc(s,o,"GeneratorFunction"),Hc(f),Hc(f,o,"Generator"),Hc(f,n,function(){return this}),Hc(f,"toString",function(){return"[object Generator]"}),(Fc=function(){return{w:a,m:p}})()}function Hc(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}Hc=function(t,e,r,n){function a(e,r){Hc(t,e,function(t){return this._invoke(e,r,t)})}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))},Hc(t,e,r,n)}function $c(t,e,r,n,o,a,i){try{var u=t[a](i),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}var Jc=function(){var t,e=(t=Fc().m(function t(e){var r,n;return Fc().w(function(t){for(;;)if(0===t.n)return n=new Promise(t=>r=t),setTimeout(r,e),t.a(2,n)},t)}),function(){var e=this,r=arguments;return new Promise(function(n,o){var a=t.apply(e,r);function i(t){$c(a,n,o,i,u,"next",t)}function u(t){$c(a,n,o,i,u,"throw",t)}i(void 0)})});return function(t){return e.apply(this,arguments)}}();function Wc(t){if(null!=t){var e=t["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}}}throw new TypeError(typeof t+" is not iterable")}function zc(){var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function a(r,n,o,a){var c=n&&n.prototype instanceof u?n:u,s=Object.create(c.prototype);return Vc(s,"_invoke",function(r,n,o){var a,u,c,s=0,l=o||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return a=e,u=0,c=t,p.n=r,i}};function d(r,n){for(u=r,c=n,e=0;!f&&s&&!o&&e3?(o=h===n)&&(c=a[(u=a[4])?5:(u=3,3)],a[4]=a[5]=t):a[0]<=d&&((o=r<2&&dn||n>h)&&(a[4]=r,a[5]=n,p.n=h,u=0))}if(o||r>1)return i;throw f=!0,n}return function(o,l,h){if(s>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),u=l,c=h;(e=u<2?t:c)||!f;){a||(u?u<3?(u>1&&(p.n=-1),d(u,c)):p.n=c:p.v=c);try{if(s=2,a){if(u||(o="next"),e=a[o]){if(!(e=e.call(a,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,u<2&&(u=0)}else 1===u&&(e=a.return)&&e.call(a),u<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),u=1);a=t}else if((e=(f=p.n<0)?c:r.call(n,p))!==i)break}catch(e){a=t,u=1,c=e}finally{s=1}}return{value:e,done:f}}}(r,o,a),!0),s}var i={};function u(){}function c(){}function s(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(Vc(e={},n,function(){return this}),e),f=s.prototype=u.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,Vc(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return c.prototype=s,Vc(f,"constructor",s),Vc(s,"constructor",c),c.displayName="GeneratorFunction",Vc(s,o,"GeneratorFunction"),Vc(f),Vc(f,o,"Generator"),Vc(f,n,function(){return this}),Vc(f,"toString",function(){return"[object Generator]"}),(zc=function(){return{w:a,m:p}})()}function Vc(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}Vc=function(t,e,r,n){function a(e,r){Vc(t,e,function(t){return this._invoke(e,r,t)})}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))},Vc(t,e,r,n)}function Kc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function Yc(t){for(var e=1;e{var e;return Rt(t.callback,null!==(e=t.predecessors)&&void 0!==e?e:[])},y),y=tr(y,m),g=[],w=[],br(Gc(Xn,y)).forEach(t=>{if(1===t.length)w.push(t[0]);else{var e=t.find(t=>t.initialCall);e&&g.push(e);var r=t.filter(t=>t!==e);1===r.length?w.push(r[0]):(g=Be(g,r),w.push(Bc({changedPropIds:Re(ee(Math.max),{},Ve("changedPropIds",r)),executionGroup:fe(t=>Boolean(t),Ve("executionGroup",r)).slice(-1)[0]},r.slice(-1)[0])))}}),O=he(_e(t=>t.slice(0,-1),br(Gc(Xn,Be(u,y=w))))),_=he(_e(t=>t.slice(0,-1),br(Gc(Xn,Be(c,y))))),j=he(_e(t=>t.slice(0,-1),br(Gc(Xn,Be(s,y))))),E=he(_e(t=>t.slice(0,-1),br(Gc(Xn,Be(l,y))))),S=eo(y,p),P=S.added,A=S.removed,k=eo(u,p),T=k.added,x=k.removed,C=eo(c,p),I=C.added,R=C.removed,D=eo(s,p),N=D.added,M=D.removed,U=eo(l,p),L=U.added,q=U.removed,y=Be(tr(y,A),P),G=Yn(p,y,b,d),B=[],F=[],G.length||!y.length||y.length!==b.length){t.n=4;break}H=y.slice(0),$=zc().m(function t(){var e,r,n;return zc().w(function(t){for(;;)switch(t.n){case 0:e=H[0],G.push(e),H=H.slice(1),H=Yn(p,H,G),r=tr(H,H),n=fe(t=>!t.predecessors||!Rt(e.callback,t.predecessors),r),B=Be(B,n),F=Be(F,n.map(t=>{var r;return Yc(Yc({},t),{},{predecessors:Be(null!==(r=t.predecessors)&&void 0!==r?r:[],[e.callback])})}));case 1:return t.a(2)}},t)});case 2:if(!H.length){t.n=4;break}return t.d(Wc($()),3);case 3:t.n=2;break;case 4:y=Be(tr(y,B),F),J=Gc(t=>t.executionGroup,fe(t=>!Ft(t.executionGroup),f)),W=fe(t=>{if(!t.executionGroup||!J[t.executionGroup]||!J[t.executionGroup].length)return!1;var e=_e(zn,he(t.getInputs(p))),r=he(_e(t=>t.executionMeta.allProps,J[t.executionGroup])),n=he(_e(t=>t.executionMeta.updatedProps,J[t.executionGroup]));return Qt(vr(e,n))&&Qt(tr(e,r))&&!We(Nn,t.callback.inputs)},G),y=tr(y,W),G=tr(G,W),y=tr(y,G),z=tr(y,v),V=tr(v,y),r(Nu([z.length?Su(z):null,V.length?Iu(V):null,O.length?Cu(O):null,_.length?Tu(_):null,j.length?xu(j):null,E.length?Du(E):null,x.length?Cu(x):null,T.length?Eu(T):null,R.length?Tu(R):null,I.length?wu(I):null,M.length?xu(M):null,N.length?ju(N):null,q.length?Du(q):null,L.length?Au(L):null,G.length?Eu(G):null]));case 5:return t.a(2)}},t)}),function(){var e=this,r=arguments;return new Promise(function(n,o){var a=t.apply(e,r);function i(t){Xc(a,n,o,i,u,"next",t)}function u(t){Xc(a,n,o,i,u,"throw",t)}i(void 0)})});return function(t){return e.apply(this,arguments)}}(),inputs:["callbacks.requested","callbacks.completed"]},ts=Zc;function es(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,u=[],c=!0,s=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw o}}return u}}(t,e)||function(t,e){if(t){if("string"==typeof t)return rs(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?rs(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rs(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r{var e=t.dispatch,r=t.getState,n=r().callbacks,o=bc(n),a=r().callbacks.stored,i=es(Qe(t=>Ft(t.executionGroup),a),2),u=i[0],c=i[1],s=Gc(t=>t.executionGroup,c),l=Gc(t=>t.executionGroup,fe(t=>!Ft(t.executionGroup),o)),f=Re((t,e)=>{var r=es(e,2),n=r[0],o=r[1];return l[n]?t:Be(t,o)},[],ga(s));e(Nu([u.length?Ru(u):null,f.length?Ru(f):null]))},inputs:["callbacks.stored","callbacks.completed"]},os=ns;function as(t,e,r){return(e=function(t){var e=function(t){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class is{constructor(){as(this,"__store",void 0),as(this,"storeObserver",new ya),as(this,"setObservers",tt(()=>{var t=this.storeObserver.observe;t(ma),t(wc),t(ts),t(Uc),t(yc),t(uc),t(os)})),as(this,"createAppStore",(t,e)=>{this.__store=st(t,e),this.storeObserver.setStore(this.__store);var r=window.dash_stores=window.dash_stores||[];r.includes(this.__store)||r.push(this.__store),this.setObservers()}),as(this,"initializeStore",t=>{if(this.__store&&!t)return this.__store;var e=function(){return function(t){return function(e,r){var n=e||{},o=n.history,a=n.config,i=n.hooks,u=e;return"RELOAD"===r.type?u={history:o,config:a,hooks:i}:"SET_CONFIG"===r.type&&(u={hooks:i}),t(u,r)}}((t=pa(),function(e,r){var n=r.type,o=r.payload;if("ON_PROP_CHANGE"===n){var a=da(o,e,!0);a&&!Qt(a.props)&&(e.history.present=a)}var i=t(e,r);if("ON_PROP_CHANGE"===n&&"response"!==o.source){var u=da(o,i);u&&!Qt(u.props)&&(i.history={past:[...i.history.past,e.history.present],present:u,future:[]})}return i}));var t}();return this.createAppStore(e,ft(ht)),t||(window.store=this.__store),this.__store}),this.__store=this.initializeStore()}get store(){return this.__store}}class us extends t.Component{constructor(t){super(t)}render(){return e().createElement("div",{id:"_dash-app-content"},this.props.children)}}us.propTypes={children:i().object};var cs=us,ss=["String","Number","Null","Boolean"],ls=t=>Rt(At(t),ss),fs=yt(function(t,e){return oe(function(r,n){return r[n]=t(e[n],n,e),r},{},Pt(e))}),ps=fs;class ds extends t.Component{constructor(t){super(t),this.state={myID:t.componentId,oldChildren:null,hasError:!1}}static getDerivedStateFromError(t){return{hasError:!0}}componentDidCatch(t,e){var r=this.props.dispatch;r(Za({myID:this.state.myID,type:"frontEnd",error:t,info:e})),r(bi)}componentDidUpdate(t,e){var r=t.children;this.state.hasError||r===e.oldChildren||r===this.props.children||this.setState({oldChildren:r})}render(){var t=this.state,e=t.hasError,r=t.oldChildren;return e?r:this.props.children}}ds.propTypes={children:i().object,componentId:i().string,error:i().object,dispatch:i().func};var hs=ds;function ys(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,u=[],c=!0,s=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw o}}return u}}(t,e)||function(t,e){if(t){if("string"==typeof t)return vs(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?vs(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vs(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r4&&void 0!==arguments[4]?arguments[4]:null,a=[];for(var i in t)if(t.hasOwnProperty(i)){var u=void 0;try{"function"!=typeof t[i]?(u=Error((n||"React class")+": "+r+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[i]+"`.")).name="Invariant Violation":u=t[i](e,i,n,r,null,Os())}catch(t){u=t}if(!u||u instanceof Error||a.push((n||"React class")+": type specification of "+r+" `"+i+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error){var c=o&&o()||"";a.push("Failed "+r+" type: "+u.message+c)}}return a.join("\n\n")}(e.propTypes,r,"component prop",e);return a&&function(t,e,r){var n,o=t.split("`");if(Rt("is marked as required",t)){var a=o[1];n="".concat(a," in ").concat(r),e.id&&(n+=' with ID "'.concat(e.id,'"')),n+=" is required but it was not provided."}else if(Rt("Bad object",t))n=t.split("supplied to ")[0]+"supplied to ".concat(r)+".\nBad"+t.split(".\nBad")[1];else{if(!Rt("Invalid ",t)||!Rt(" supplied to ",t))throw new Error(t);var i=o[1];if(n="Invalid argument `".concat(i,"` passed into ").concat(r),e.id&&(n+=' with ID "'.concat(e.id,'"')),n+=".",Rt(", expected ",t)){var u=t.split(", expected ")[1];n+="\nExpected ".concat(u)}if(Rt(" of type `",t)){var c=t.split(" of type `")[1].split("`")[0];n+="\nWas supplied type `".concat(c,"`.")}if(Vr(i,e)){var s=JSON.stringify(e[i],null,2);s&&(Rt("\n",s)?n+="\nValue provided: \n".concat(s):n+="\nValue provided: ".concat(s))}}throw new Error(n)}(a,r,o.type),n}var js=e().createContext({});function Es(r){var n=r.children,o=r.componentPath,a=(0,t.useMemo)(()=>JSON.stringify(o),[o]),i=J(),u=(0,t.useCallback)(t=>{var e=t||{},r=e.extraPath,n=e.rawPath,u=e.filterFunc,c=[a];r?c=[JSON.stringify(Be(o,r))]:n&&(c=[JSON.stringify(n)]);var s=Gt([],c,i.getState().loading);return u?s.filter(u).length>0:s.length>0},[a]),c=(0,t.useCallback)(t=>{var e=t||{},r=e.filterFunc,n=e.extraPath,i=e.rawPath;return b(t=>{var e=[a];n?e=[JSON.stringify(Be(o,n))]:i&&(e=[JSON.stringify(i)]);var u=Gt([],e,t.loading);return r?u.filter(r).length>0:u.length>0})},[a]),s=(0,t.useMemo)(()=>({componentPath:o,isLoading:u,useLoading:c,useSelector:b,useStore:J,useDispatch:K}),[a]);return e().createElement(js.Provider,{value:s},n)}var Ss=["componentPath","_dashprivate_error","_passedComponent","_newRender"],Ps=["_dash_error"];function As(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function ks(t,e,r){return(e=function(t){var e=function(t){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ts(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);re=>{var r,n,o=ca(t,e),a=ua(t);r="dashChildrenUpdate"in Gt({},[null==(n=o)?void 0:n.namespace,null==n?void 0:n.type],window)?function(t,e){var r,n=0,o={};return Object.entries(t.layoutHashes).forEach(t=>{var a=ys(t,2),i=a[0],u=a[1],c=((t,e)=>{var r=t.split(","),n=e.split(",");if(!n.every((t,e)=>r[e]===t))return[!1,[]];var o=r.slice(n.length);return[o.filter(t=>"props"===t).length<2,o]})(i,e),s=ys(c,2),l=s[0],f=s[1];if(l){var p=Gt({},[i],bs);n+=Gt(0,["hash"],u),p!==u&&(i!==e?(Object.assign(o,{[f[1]]:!0}),r="components"):(Object.assign(o,Gt({},["changedProps"],u)),r=Gt({},["renderType"],u)),bs[i]=u)}}),{hash:n,changedProps:o,renderType:r}}(e,a):e.layoutHashes[a];var i=0,u={},c="";return r&&(i=r.hash,u=r.changedProps,c=r.renderType),[o,null==o?void 0:o.props,i,u,c]})(u),ms),i=5,function(t){if(Array.isArray(t))return t}(a)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,u=[],c=!0,s=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw o}}return u}}(a,i)||function(t,e){if(t){if("string"==typeof t)return Ts(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ts(t,e):void 0}}(a,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),j=_[0],E=_[1],S=_[2],P=_[3],A=_[4];m=j,g=E,w=S,(0,t.useMemo)(()=>{l?(h.current=!0,w=0,y.current+=1,w in d.current&&delete d.current[w]):h.current=!1,v.current=u},[l]);var k,T=(0,t.useCallback)((t,n,o)=>{var a;return ls(m)?m:e().createElement(r,{key:null!=t&&null!==(a=t.props)&&void 0!==a&&a.id?_n(t.props.id):ua(n),_dashprivate_error:c,componentPath:n,_passedComponent:t,_newRender:o})},[]),x=(0,t.useCallback)((t,e,r)=>Array.isArray(t)?t.map((t,n)=>ia(t)?T(t,Be(u,["props",...e,n]),r):t):ia(t)?T(t,Be(u,["props",...e]),r):t,[u]),C=function(t){for(var e=1;e{var e=g.id,r=t._dash_error,o=xs(t,Ps);p((t,a)=>{var i=a(),u=i.graphs,c=ca(v.current,i);if(c){var s=c.props;if(s){var l=er((t,e)=>!xt(t,s[e]),o);if(r&&t(Za({type:"frontEnd",error:r})),!Qt(l)){var f=function(t,e,r){if(!(t&&r&&e.length))return[];if("string"==typeof t){var n=r.inputMap[t];return n?e.filter(t=>n[t]):[]}var o=Object.keys(t).sort(),a=ne(o,t),i=o.join(","),u=r.inputPatterns[i];return u?e.filter(t=>{var e=u[t];return e&&e.some(t=>Rn(o,a,t.values))}):[]}(e,Pt(l),u);(0,n.unstable_batchedUpdates)(()=>{f.length&&t(gi({id:e,props:wa(f,l)})),t(fi({props:l,itempath:v.current,renderType:"internal"}))})}}}})}},f);"dashRenderType"in Gt({},[null==(k=m)?void 0:k.namespace,null==k?void 0:k.type],window)&&(C.dashRenderType=h.current?"parent":P?A:"parent"),(0,t.useEffect)(()=>{l&&p(li({itempath:u}))},[l]);var I=null;return w in d.current&&!h.current&&(I=e().isValidElement(d.current[w])?d.current[w]:null),I||(I=(()=>{if(h.current&&(m=s,g=null==s?void 0:s.props),!m)return null;var t,r=nn(m),n=((t,e)=>{for(var r=Gt([],["children_props",null==t?void 0:t.namespace,null==t?void 0:t.type],O),n=Tr(ea("children",e),C),o=function(){var t=r[a],e=0;(t.split(".")[0].replace("[]","").replace("{}","")in P||h.current||!w)&&(e={});var o=(t,r)=>ps((t,n)=>x(t,[...r,n],e),t);if(t.includes(".")){var i,u,c=t.split(".");if(t.includes("[]")){var s,l=[],f=[],p=!1,d=!1;if(c.forEach(t=>{p?t.includes("{}")?(d=!0,f.push(t.replace("{}",""))):f.push(t):t.includes("[]")?(p=!0,t.includes("{}")?(d=!0,l.push(t.replace("{}","").replace("[]",""))):l.push(t.replace("[]",""))):t.includes("{}")?(d=!0,l.push(t.replace("{}",""))):l.push(t)}),void 0===(i=Vt(l,n))||null===(s=i)||void 0===s||!s.length)return 0;if(!Vt(f,i[0]))return 0;u=i.map((t,r)=>{var n,a=Be(l,Be([r],f));return n=d?f.length?o(Vt(f,t),a):o(t,a):x(Vt(f,t),a,e),Ht(f,n,t)}),c=l}else if(t.includes("{}")){for(var y=[],v=[],b=!1,m=[],g=0;gx(b?Vt(m,t):t,Be(v,b?Be([r],m):[r]),e),_),c=v)}else{if(void 0===(i=Vt(c,n)))return 0;u=x(i,c,e)}n=Ht(c,u,n)}else if(t.includes("{}")){var j=t.replace("{}",""),E=t.includes("[]");E&&(j=j.replace("[]",""));var S=n[j];if(void 0!==S)if(E)for(var A=0;A3?(o=h===n)&&(c=a[(u=a[4])?5:(u=3,3)],a[4]=a[5]=t):a[0]<=d&&((o=r<2&&dn||n>h)&&(a[4]=r,a[5]=n,p.n=h,u=0))}if(o||r>1)return i;throw f=!0,n}return function(o,l,h){if(s>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),u=l,c=h;(e=u<2?t:c)||!f;){a||(u?u<3?(u>1&&(p.n=-1),d(u,c)):p.n=c:p.v=c);try{if(s=2,a){if(u||(o="next"),e=a[o]){if(!(e=e.call(a,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,u<2&&(u=0)}else 1===u&&(e=a.return)&&e.call(a),u<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),u=1);a=t}else if((e=(f=p.n<0)?c:r.call(n,p))!==i)break}catch(e){a=t,u=1,c=e}finally{s=1}}return{value:e,done:f}}}(r,o,a),!0),s}var i={};function u(){}function c(){}function s(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(Rs(e={},n,function(){return this}),e),f=s.prototype=u.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,Rs(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return c.prototype=s,Rs(f,"constructor",s),Rs(s,"constructor",c),c.displayName="GeneratorFunction",Rs(s,o,"GeneratorFunction"),Rs(f),Rs(f,o,"Generator"),Rs(f,n,function(){return this}),Rs(f,"toString",function(){return"[object Generator]"}),(Is=function(){return{w:a,m:p}})()}function Rs(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}Rs=function(t,e,r,n){function a(e,r){Rs(t,e,function(t){return this._invoke(e,r,t)})}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))},Rs(t,e,r,n)}function Ds(t,e,r,n,o,a,i){try{var u=t[a](i),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function Ns(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r{var n,o,a=r.appLifecycle,i=r.config,u=r.dependenciesRequest,c=r.error,s=r.layoutRequest,l=r.layout,f=(n=(0,t.useState)(!1),o=2,function(t){if(Array.isArray(t))return t}(n)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,u=[],c=!0,s=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw o}}return u}}(n,o)||function(t,e){if(t){if("string"==typeof t)return Ns(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ns(t,e):void 0}}(n,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),p=f[0],d=f[1],h=(0,t.useRef)(null);h.current||(h.current=new tn);var y,v=(0,t.useRef)(!1);return(0,t.useEffect)(Us.bind(null,r,h,d)),(0,t.useEffect)(()=>{var t;v.current&&(t=Is().m(function t(){return Is().w(function(t){for(;;)switch(t.n){case 0:return v.current=!1,t.n=1,Jc(0);case 1:h.current.emit("rendered");case 2:return t.a(2)}},t)}),function(){var e=this,r=arguments;return new Promise(function(n,o){var a=t.apply(e,r);function i(t){Ds(a,n,o,i,u,"next",t)}function u(t){Ds(a,n,o,i,u,"throw",t)}i(void 0)})})()}),(0,t.useEffect)(()=>{i.serve_locally?window._dashPlotlyJSURL="".concat(i.requests_pathname_prefix,"_dash-component-suites/plotly/package_data/plotly.min.js"):window._dashPlotlyJSURL=i.plotlyjs_url},[]),s.status&&!Rt(s.status,[Ro,"loading"])?y=i.ui?e().createElement("div",{dangerouslySetInnerHTML:{__html:s.content}}):e().createElement("div",{className:"_dash-error"},"Error loading layout"):p||u.status&&!Rt(u.status,[Ro,"loading"])?y=i.ui?e().createElement("div",{dangerouslySetInnerHTML:{__html:u.content}}):e().createElement("div",{className:"_dash-error"},"Error loading dependencies"):a===ao("HYDRATED")?(v.current=!0,y=e().createElement(e().Fragment,null,Array.isArray(l.components)?l.components.map((t,r)=>ls(t)?t:e().createElement(Cs,{_dashprivate_error:c,componentPath:["components",r],key:r})):e().createElement(Cs,{_dashprivate_error:c,componentPath:["components"]}))):y=e().createElement("div",{className:"_dash-loading"},"Loading..."),i&&!0===i.ui?e().createElement(cs,null,y):y};function Us(t,e,r){var o=t.appLifecycle,a=t.dependenciesRequest,i=t.dispatch,u=t.error,c=t.graphs,s=t.hooks,l=t.layout,f=t.layoutRequest,p=t.config;(0,n.unstable_batchedUpdates)(()=>{if(Qt(f))"function"==typeof s.layout_pre&&s.layout_pre(),i(Li("_dash-layout","GET","layoutRequest"));else if(f.status===Ro&&Qt(l.components)){"function"==typeof s.layout_post&&s.layout_post(f.content);var t=za(f.content,i);i(ii(en(t,["components"],null,e.current))),i(ai(t))}if(Qt(a)?i(Li("_dash-dependencies","GET","dependenciesRequest")):a.status===Ro&&(Qt(c)||c.reset)&&i(ni(Cn(a.content,pi(i),p))),a.status===Ro&&!Qt(c)&&f.status===Ro&&!Qt(l.components)&&o===ao("STARTED")){var n=!1;try{i((pi(i),function(t,e){!function(t,e){var r,n,o=t.config,a=t.graphs,i=t.layout,u=t.paths,c=!o.suppress_callback_exceptions;c&&o.validation_layout?(r=o.validation_layout,n=en(r,[],null,u.events)):(r=i,n=u);var s=a.outputMap,l=a.inputMap,f=a.outputPatterns,p=a.inputPatterns;function d(t){return"This ID was used in the callback(s) for Output(s):\n "+t.map(t=>t.outputs.map(zn).join(", ")).join("\n ")}function h(t,r,n){e("ID not found in layout",["Attempting to connect a callback ".concat(r," item to component:"),' "'.concat(_n(t),'"'),"but no components with that id exist in the layout.","","If you are assigning callbacks to components that are","generated by other callbacks (and therefore not in the","initial layout), you can suppress this exception by setting","`suppress_callback_exceptions=True`.",d(n)])}function y(t,n,o,a,i){var u=o.split("@")[0],c=Vt(n,r),s=nn(c);if(s&&s.propTypes&&!s.propTypes[u]){for(var l in s.propTypes){var f=l.length-1;if("*"===l.charAt(f)&&u.substr(0,f)===l.substr(0,f))return}var p=c.type,h=c.namespace;e("Invalid prop for this component",['Property "'.concat(u,'" was used with component ID:')," ".concat(JSON.stringify(t)),"in one of the ".concat(a," items of a callback."),"This ID is assigned to a ".concat(h,".").concat(p," component"),"in the layout, which does not support this property.",d(i)])}}function v(t,e,r,o){ro()(n)({id:t,property:e}).forEach(t=>{y(t.id,t.path,e,r,o)})}var b={};function m(t){var e=t.state,r=t.output;if(!b[r]){b[r]=1;var o="State";e.forEach(e=>{var r=e.id,a=e.property;if("string"==typeof r){var i=rn(n,r);i?y(r,i,a,o,[t]):c&&h(r,o,[t])}else vr([hn,yn],br(r)).length||v(r,a,o,[t])})}}function g(t,e,r){var o=function(o){var a=t[o],i=he(br(a));if(i.reduce((t,e)=>{if(!1===t||e.optional)return t;var r=Be(e.outputs,e.inputs,e.states).filter(t=>t.id===o);return!r.length||We(t=>t.allow_optional,r)},!0))return 1;var u=rn(n,o);if(u)for(var s in a){var l=a[s];y(o,u,s,e,l),r&&l.forEach(m)}else c&&h(o,e,i)};for(var a in t)o(a)}function w(t,e,r){for(var n in t){var o=t[n],a=function(t){o[t].forEach(n=>{var o=n.keys,a=n.values,i=n.callbacks;v(nr(o,a),t,e,i),r&&i.forEach(m)})};for(var i in o)a(i)}}g(s,"Output",!0),g(l,"Input"),w(f,"Output",!0),w(p,"Input")}(e(),pi(t)),function(t,e){var r=e(),n=r.graphs,o=r.paths,a=r.layout;try{n.MultiGraph.overallOrder()}catch(e){t(Za({type:"backEnd",error:{message:"Circular Dependencies",html:e.toString()}}))}var i=Qn(n,o,a.components,{outputsOnly:!0}),u=(n.callbacks||[]).reduce((t,e)=>{if(e.prevent_initial_call)return t;var r=e.noOutput,n=!e.noOutput&&0===e.inputs.length;if(!r&&!n)return t;var a=to(e,ro(),"");return a.initialCall=!0,r?(0===e.inputs.length||a.getInputs(o).some(t=>Array.isArray(t)?t.length>0:t))&&t.push(a):a.getOutputs(o).some(t=>Array.isArray(t)?t.length>0:t)&&t.push(a),t},[]);t(Su([...i,...u]))}(t,e),t(ti(ao("HYDRATED")))}))}catch(t){u.frontEnd.length||u.backEnd.length||i(Za({type:"backEnd",error:t})),n=!0}finally{r(n)}}})}Ms.propTypes={appLifecycle:i().oneOf([ao("STARTED"),ao("HYDRATED"),ao("DESTROYED")]),dispatch:i().func,dependenciesRequest:i().object,graphs:i().object,hooks:i().object,layoutRequest:i().object,layout:i().any,history:i().any,error:i().object,config:i().object};var Ls=F(t=>({appLifecycle:t.appLifecycle,dependenciesRequest:t.dependenciesRequest,hooks:t.hooks,layoutRequest:t.layoutRequest,layout:t.layout,graphs:t.graphs,history:t.history,error:t.error,config:t.config}),t=>({dispatch:t}))(Ms);function qs(t){return t.isLoading?e().createElement("div",{className:"_dash-loading-callback"}):null}qs.propTypes={isLoading:i().bool.isRequired};var Gs=F(t=>({isLoading:t.isLoading}))(qs),Bs=r(72),Fs=r.n(Bs),Hs=r(825),$s=r.n(Hs),Js=r(659),Ws=r.n(Js),zs=r(56),Vs=r.n(zs),Ks=r(540),Ys=r.n(Ks),Qs=r(113),Xs=r.n(Qs),Zs=r(217),tl={};function el(t){var r=t.dispatch,n=t.history,o=e().createElement("span",{key:"undoLink",className:"_dash-undo-redo-link",onClick:()=>r(vi)},e().createElement("div",{className:"_dash-icon-undo"},"↺"),e().createElement("div",{className:"_dash-undo-redo-label"},"undo")),a=e().createElement("span",{key:"redoLink",className:"_dash-undo-redo-link",onClick:()=>r(yi)},e().createElement("div",{className:"_dash-icon-redo"},"↻"),e().createElement("div",{className:"_dash-undo-redo-label"},"redo"));return e().createElement("div",{className:"_dash-undo-redo"},e().createElement("div",null,n.past.length>0?o:null,n.future.length>0?a:null))}tl.styleTagTransform=Xs(),tl.setAttributes=Vs(),tl.insert=Ws().bind(null,"head"),tl.domAPI=$s(),tl.insertStyleElement=Ys(),Fs()(Zs.A,tl),Zs.A&&Zs.A.locals&&Zs.A.locals,el.propTypes={history:i().object,dispatch:i().func};var rl=F(t=>({history:t.history}),t=>({dispatch:t}))(el),nl=X(function(t){return function(e,r){return t(e,r)?-1:t(r,e)?1:0}}),ol=yt(function(t,e){return tt.length)&&(e=t.length);for(var r=0,n=Array(e);r=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){u=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(u)throw a}}}}(r.content.files);try{for(i.s();!(o=i.n()).done;){var u=o.value;if(!u.is_css){a=!1;break}a=!0;for(var c=[],s=document.evaluate('//link[contains(@href, "'.concat(u.url,'")]'),this._head),l=s.iterateNext();l;)c.push(l),l=s.iterateNext();if(zt(t=>t.setAttribute("disabled","disabled"),c),u.modified>0){var f=document.createElement("link");f.href="".concat(u.url,"?m=").concat(u.modified),f.type="text/css",f.rel="stylesheet",this._head.appendChild(f)}}}catch(t){i.e(t)}finally{i.f()}a||window.location.reload()}else null!==this.state.intervalId&&500===r.status&&(this._retry>this.state.max_retry&&(this.clearInterval(),window.alert("Hot reloading is disabled after failing ".concat(this._retry," times. ")+"Please check your application for errors, then refresh the page.")),this._retry++)}componentDidMount(){var t=this.props,e=t.dispatch,r=t.reloadRequest,n=this.state,o=n.disabled,a=n.interval;if(!o&&!this.state.intervalId){var i=window.setInterval(()=>{"loading"!==r.status&&e(Li("_reload-hash","GET","reloadRequest"))},a);this.setState({intervalId:i})}}componentWillUnmount(){!this.state.disabled&&this.state.intervalId&&this.clearInterval()}render(){return null}}il.defaultProps={},il.propTypes={id:i().string,config:i().object,reloadRequest:i().object,dispatch:i().func,interval:i().number};var ul=F(t=>({config:t.config,reloadRequest:t.reloadRequest}),t=>({dispatch:t}))(il);function cl(){var t=document.getElementById("_dash-config");return JSON.parse(null!=t&&t.textContent?null==t?void 0:t.textContent:"{}")}var sl=yt(function(t,e){var r={};return Y(e.length,function(){var n=t.apply(this,arguments);return mt(n,r)||(r[n]=e.apply(this,arguments)),r[n]})}),ll=sl;function fl(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function pl(t){for(var e=1;e({history:t.history,config:t.config}),t=>({dispatch:t}))(hl);function vl(){var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function a(r,n,o,a){var c=n&&n.prototype instanceof u?n:u,s=Object.create(c.prototype);return bl(s,"_invoke",function(r,n,o){var a,u,c,s=0,l=o||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,r){return a=e,u=0,c=t,p.n=r,i}};function d(r,n){for(u=r,c=n,e=0;!f&&s&&!o&&e3?(o=h===n)&&(c=a[(u=a[4])?5:(u=3,3)],a[4]=a[5]=t):a[0]<=d&&((o=r<2&&dn||n>h)&&(a[4]=r,a[5]=n,p.n=h,u=0))}if(o||r>1)return i;throw f=!0,n}return function(o,l,h){if(s>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),u=l,c=h;(e=u<2?t:c)||!f;){a||(u?u<3?(u>1&&(p.n=-1),d(u,c)):p.n=c:p.v=c);try{if(s=2,a){if(u||(o="next"),e=a[o]){if(!(e=e.call(a,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,u<2&&(u=0)}else 1===u&&(e=a.return)&&e.call(a),u<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),u=1);a=t}else if((e=(f=p.n<0)?c:r.call(n,p))!==i)break}catch(e){a=t,u=1,c=e}finally{s=1}}return{value:e,done:f}}}(r,o,a),!0),s}var i={};function u(){}function c(){}function s(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(bl(e={},n,function(){return this}),e),f=s.prototype=u.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,bl(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return c.prototype=s,bl(f,"constructor",s),bl(s,"constructor",c),c.displayName="GeneratorFunction",bl(s,o,"GeneratorFunction"),bl(f),bl(f,o,"Generator"),bl(f,n,function(){return this}),bl(f,"toString",function(){return"[object Generator]"}),(vl=function(){return{w:a,m:p}})()}function bl(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}bl=function(t,e,r,n){function a(e,r){bl(t,e,function(t){return this._invoke(e,r,t)})}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))},bl(t,e,r,n)}function ml(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return gl(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?gl(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){u=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(u)throw a}}}}function gl(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r{var r=t.componentId,n=t.props,o=El(r),a=e.getState(),i=rn(a.paths,o);if(i){var u=Vt(i,a.layout),c=(null==u?void 0:u.props)||{},s=Ii(n,c);if(e.dispatch(fi({props:s,itempath:i,renderType:"websocket"})),e.dispatch(gi({id:o,props:s})),u){var l=e.getState();e.dispatch(ii(en(Ol(Ol({},u),{},{props:Ol(Ol({},c),s)}),[...i],l.paths,l.paths.events)))}}else console.warn("SET_PROPS: Component ".concat(r," not found in layout"))},i.onSetProps=u,i.onSetPropsBatch=t=>{(0,n.unstable_batchedUpdates)(()=>{var e,r=ml(t);try{for(r.s();!(e=r.n()).done;){var n=e.value;u(n)}}catch(t){r.e(t)}finally{r.f()}})},i.onGetPropsRequest=(t,r)=>{var n=r.componentId,o=r.properties,a=El(n),u=e.getState(),c=rn(u.paths,a),s={};if(c){var l=Vt([...c,"props"],u.layout);if(l){var f,p=ml(o);try{for(p.s();!(f=p.n()).done;){var d=f.value;s[d]=l[d]}}catch(t){p.e(t)}finally{p.f()}}}else console.warn("GET_PROPS_REQUEST: Component ".concat(n," not found in layout"));i.sendGetPropsResponse(t,s)},c=!1,i.onConnected=()=>{if(console.log("[Dash] WebSocket connected"),c){console.log("[Dash] Reconnected - re-triggering persistent callbacks");var t=e.getState().graphs;if(null!=t&&t.callbacks){var r=t.callbacks.reduce((t,e)=>{if(e.noOutput&&0===e.inputs.length){var r=to(e,ro(),"");r.initialCall=!0,t.push(r)}return t},[]);r.length>0&&(console.log("[Dash] Re-triggering ".concat(r.length," persistent callback(s)")),e.dispatch(Su(r)))}}},i.onDisconnected=t=>{console.log("[Dash] WebSocket disconnected: ".concat(t)),c=!0},i.onError=(t,e)=>{console.error("[Dash] WebSocket error: ".concat(t),e)},s=Pl(r),t.p=3,t.n=4,i.connect(r.websocket.worker_url,s,r.websocket.inactivity_timeout);case 4:t.n=6;break;case 5:t.p=5,l=t.v,console.error("[Dash] Failed to connect to WebSocket worker:",l);case 6:document.addEventListener("visibilitychange",()=>{"visible"===document.visibilityState&&(i.connected?i.notifyTabVisible():(console.log("[Dash] Tab visible, reconnecting WebSocket..."),i.ensureConnected(r).catch(t=>console.error("[Dash] Failed to reconnect:",t))))});case 7:return t.a(2)}},t,null,[[3,5]])}),Sl=function(){var e=this,r=arguments;return new Promise(function(n,o){var a=t.apply(e,r);function i(t){jl(a,n,o,i,u,"next",t)}function u(t){jl(a,n,o,i,u,"throw",t)}i(void 0)})},Sl.apply(this,arguments)}function Pl(t){var e;if(null===(e=t.websocket)||void 0===e||!e.url)throw new Error("WebSocket URL not configured");var r="https:"===window.location.protocol?"wss:":"ws:",n=window.location.host;return"".concat(r,"//").concat(n).concat(t.websocket.url)}function Al(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function kl(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=Array(e);r{var n,o,a=r.hooks,i=void 0===a?{layout_pre:null,layout_post:null,request_pre:null,request_post:null,callback_resolved:null,request_refresh_jwt:null}:a,u=(n=(0,t.useState)(()=>new is),o=1,function(t){if(Array.isArray(t))return t}(n)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,u=[],c=!0,s=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw o}}return u}}(n,o)||function(t,e){if(t){if("string"==typeof t)return xl(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?xl(t,e):void 0}}(n,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0].store;return(0,t.useEffect)(()=>{var t,e,r,n=cl();if(null!==(t=n.websocket)&&void 0!==t&&t.enabled||null!==(e=n.websocket)&&void 0!==e&&e.url&&null!==(r=n.websocket)&&void 0!==r&&r.worker_url){var o=kl(kl({},n),{},{fetch:{credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"}}});!function(t,e){Sl.apply(this,arguments)}(u,o)}return()=>{uu().disconnect()}},[u]),e().createElement(H,{store:u},e().createElement(yl,{hooks:i}))};Cl.propTypes={hooks:i().shape({layout_pre:i().func,layout_post:i().func,request_pre:i().func,request_post:i().func,callback_resolved:i().func,request_refresh_jwt:i().func})};var Il=Cl;function Rl(){return window.dash_stores=window.dash_stores||[]}function Dl(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r(0,t.useContext)(Nl);function Ul(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function Ll(t){for(var e=1;e{var t;return l((t={component:i,componentPath:u},(e,r)=>{var n=r().paths;e(ui(t)),e(ii(en(t.component,t.componentPath,n)))})),d(!0),()=>{s&&l(ci({componentPath:u}))}},[]),(0,t.useEffect)(()=>{(0,n.unstable_batchedUpdates)(()=>{l(fi({itempath:u,props:i.props})),i.props.id&&l(gi({id:i.props.id,props:i.props}))})},[i.props]),p?e().createElement(Cs,{componentPath:u}):null},DashContext:js,useDashContext:function(){var e=(0,t.useContext)(js);return e||console.error("Dash Context was not found, component was rendered without a wrapper. Use `window.dash_component_api.ExternalWrapper` to make sure the component is properly connected."),e||{}},getLayout:function(t){for(var e=Rl(),r=0;r{var r=Ml().popup;return(0,t.useMemo)(()=>{var t="dash-debug-menu__button";return r===e?t+" dash-debug-menu__button--selected":t},[r])}}});var Gl=/^([^\w]*)(javascript|vbscript)/im,Bl=/&(tab|newline);/gi,Fl=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,Hl=/&#(\w+)(^\w|;)?/g,$l=window.dash_clientside=window.dash_clientside||{};$l.set_props=function(t,e){for(var r=Rl(),n=0;n1&&void 0!==arguments[1]?arguments[1]:"about:blank";if(""===t)return t;var r=t.replace(Bl,"").replace(Fl,"").replace(Hl,(t,e)=>String.fromCharCode(e)).trim();return Gl.test(r)?e:t}:$l.clean_url,$l.Patch=class{constructor(){Pi(this,"operations",[])}assign(t,e){return this.operations.push({operation:"Assign",location:t,params:{value:e}}),this}merge(t,e){return this.operations.push({operation:"Merge",location:t,params:{value:e}}),this}extend(t,e){return this.operations.push({operation:"Extend",location:t,params:{value:e}}),this}delete(t){return this.operations.push({operation:"Delete",location:t,params:{}}),this}insert(t,e,r){return this.operations.push({operation:"Insert",location:t,params:{index:e,value:r}}),this}append(t,e){return this.operations.push({operation:"Append",location:t,params:{value:e}}),this}prepend(t,e){return this.operations.push({operation:"Prepend",location:t,params:{value:e}}),this}add(t,e){return this.operations.push({operation:"Add",location:t,params:{value:e}}),this}sub(t,e){return this.operations.push({operation:"Sub",location:t,params:{value:e}}),this}mul(t,e){return this.operations.push({operation:"Mul",location:t,params:{value:e}}),this}div(t,e){return this.operations.push({operation:"Div",location:t,params:{value:e}}),this}clear(t){return this.operations.push({operation:"Clear",location:t,params:{}}),this}reverse(t){return this.operations.push({operation:"Reverse",location:t,params:{}}),this}remove(t,e){return this.operations.push({operation:"Remove",location:t,params:{value:e}}),this}build(){return{__dash_patch_update:"__dash_patch_update",operations:this.operations}}},window.DashRenderer=class{constructor(t){var r=document.getElementById("react-entry-point");o().createRoot?o().createRoot(r).render(e().createElement(Il,{hooks:t})):o().render(e().createElement(Il,{hooks:t}),r)}}})(),window.dash_renderer={}})();